Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f4f963b
fix(tasty): cleanup method
tenphi Sep 1, 2025
d6119f5
fix(tasty): cleanup method * 2
tenphi Sep 2, 2025
2b2754f
feat(tasty): improved caching and consistent dev mode
tenphi Sep 2, 2025
218ca67
fix(ComboBox): trigger button styles
tenphi Sep 2, 2025
71f8ed5
fix(FilterPicker): correctly pass all props to FilterListBox
tenphi Sep 2, 2025
a7d3035
feat(tasty): new debug tools and improved injector for global styles
tenphi Sep 2, 2025
2f43788
feat(tasty): new debug tools and improved injector for global styles * 2
tenphi Sep 2, 2025
b6a1af1
chore: increase size limit
tenphi Sep 2, 2025
21bf21b
chore: add changelog
tenphi Sep 2, 2025
df35834
fix(tasty): cleanup
tenphi Sep 2, 2025
167f58f
fix(tasty): cleanup
tenphi Sep 2, 2025
2283ed1
fix(FilterListBox): props passing
tenphi Sep 2, 2025
d9b6643
fix(tasty): improve caching for responsive styles
tenphi Sep 2, 2025
adfb7b3
fix(tasty): optimizations
tenphi Sep 3, 2025
128002c
fix(tasty): optimizations * 2
tenphi Sep 3, 2025
450e617
fix(tasty): deleteRule bug
tenphi Sep 3, 2025
2b20463
fix(tasty): cache optimizations
tenphi Sep 3, 2025
4694299
fix(tasty): injector optimizations
tenphi Sep 3, 2025
781e245
fix(tasty): injector optimizations
tenphi Sep 3, 2025
e3c6fae
fix(tasty): injector optimizations * 2
tenphi Sep 3, 2025
230036c
fix(tasty): injection optimizations
tenphi Sep 3, 2025
5129e72
fix(tasty): optimize caching
tenphi Sep 3, 2025
cfa41d5
fix(tasty): optimizations
tenphi Sep 3, 2025
b5e9e10
fix(tasty): optimize disposal
tenphi Sep 3, 2025
73bc85a
fix(tasty): optimize config definition
tenphi Sep 3, 2025
375c2f8
chore(tasty): add global tests
tenphi Sep 3, 2025
138eff7
fix(tasty): finalize injector
tenphi Sep 3, 2025
6169751
chore: increase size limit
tenphi Sep 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/breezy-planes-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cube-dev/ui-kit": patch
---

Fix cleanup of style in the new style injector.
5 changes: 5 additions & 0 deletions .changeset/chatty-radios-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cube-dev/ui-kit": minor
---

Improved debug tools with better DX and simpler API.
5 changes: 5 additions & 0 deletions .changeset/curly-vans-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cube-dev/ui-kit": patch
---

Optimize rule generation by sorting in cache keys.
5 changes: 5 additions & 0 deletions .changeset/perfect-jars-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cube-dev/ui-kit": patch
---

Improve cache cleanup logic and cache checks.
6 changes: 3 additions & 3 deletions .size-limit.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ module.exports = [
}),
);
},
limit: '305kB',
limit: '310kB',
},
{
name: 'Tree shaking (just a Button)',
path: './dist/es/index.js',
webpack: true,
import: '{ Button }',
limit: '32 kB',
limit: '33 kB',
},
{
name: 'Tree shaking (just an Icon)',
path: './dist/es/index.js',
webpack: true,
import: '{ AiIcon }',
limit: '19 kB',
limit: '20 kB',
},
];
4 changes: 2 additions & 2 deletions .storybook/preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ configure({ testIdAttribute: 'data-qa', asyncUtilTimeout: 10000 });

// Load tasty debug utilities in local Storybook only (exclude Chromatic)
if (!isChromatic() && import.meta.env.DEV) {
import('../src/tasty/debug').then(({ installGlobalDebug }) => {
import('../src/tasty/debug').then(({ tastyDebug }) => {
try {
installGlobalDebug({ force: true });
tastyDebug.install();
} catch (e) {
console.warn('tastyDebug installation failed:', e);
}
Expand Down
9 changes: 2 additions & 7 deletions src/components/fields/ComboBox/ComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
ForwardedRef,
forwardRef,
ReactElement,
ReactNode,
RefObject,
useEffect,
useMemo,
Expand Down Expand Up @@ -71,18 +70,14 @@ const TriggerElement = tasty({
placeContent: 'center',
placeSelf: 'stretch',
radius: '(1r - 1bw) right',
width: {
'': '4x',
'[data-size="small"]': '3x',
'[data-size="medium"]': '4x',
},
width: '3x',
color: {
'': '#dark-02',
hovered: '#dark-02',
pressed: '#purple',
'[disabled]': '#dark.30',
},
border: 0,
border: 'left',
reset: 'button',
margin: 0,
fill: {
Expand Down
26 changes: 26 additions & 0 deletions src/components/fields/FilterPicker/FilterPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,21 @@ export const FilterPicker = forwardRef(function FilterPicker<T extends object>(
allValueProps,
customValueProps,
newCustomValueProps,
searchPlaceholder,
autoFocus,
filter,
emptyLabel,
searchInputStyles,
searchInputRef,
listStyles,
optionStyles,
sectionStyles,
headingStyles,
listRef,
disallowEmptySelection,
shouldUseVirtualFocus,
onEscape,
onOptionClick,
...otherProps
} = props;

Expand Down Expand Up @@ -1005,6 +1020,17 @@ export const FilterPicker = forwardRef(function FilterPicker<T extends object>(
selectedKeys={
selectionMode === 'multiple' ? mappedSelectedKeys : undefined
}
searchPlaceholder={searchPlaceholder}
filter={filter}
listStyles={listStyles}
optionStyles={optionStyles}
sectionStyles={sectionStyles}
headingStyles={headingStyles}
listRef={listRef}
disallowEmptySelection={disallowEmptySelection}
emptyLabel={emptyLabel}
searchInputStyles={searchInputStyles}
searchInputRef={searchInputRef}
disabledKeys={disabledKeys}
focusOnHover={focusOnHover}
shouldFocusWrap={shouldFocusWrap}
Expand Down
Loading
Loading