Releases: techniq/svelte-ux
[email protected]
Patch Changes
-
Add
step()
number util which combinesround()
anddecimalCount()
to simplify handling floating point handling with stepping (#319) -
[ToggleGroup] Use border instead of space for
variant="outline"
andgap
(0c30818e9ddbaaf1bc0713a3225e17eb6e7c0a71
) -
[TextField/Input] Add
min
/max
/step
support (forinteger
/decimal
types) (#319) -
[NumberStepper / TextField] Fix handling of initial
0
(111c67aa5d0a03b33b727c89db8d432143ed1b55
) -
[NumberStepper] Add
step
support (to supportdecimal
including HTML form validation) (#319)
[email protected]
Patch Changes
- [MultiSelect Menu/Field] Refine default styles and add additional classes to customize inner elements/components (
4d4950aa715394b649a6df60eadc37939d1b82e8
)
[email protected]
Patch Changes
-
[Checkbox / Radio] Add
fullWidth
prop. Addinput
to classes, and class names to all internal elements for easier devtool recognition and CSS targeting (#310) -
[MultiSelect] Remove default outer padding (add to MultiSelectMenu) and add
classes.action
(#310) -
[MultiSelectOption] Improve default styling (align with SelectField) including
:hover
. Leverage recent Checkbox fullWidth changes for better pointer targets (full width and height). Support passing allCheckbox
classes. (#310)
[email protected]
Patch Changes
[email protected]
Patch Changes
- [tableOrderStore] Process
columns
usinggetRowColumns()
to get "leaf columns" when columns are nested (b805bc45381485edfdf875ad3bff24561e529690
)
[email protected]
Patch Changes
- Make options optional
scrollFade
,scrollShadow
, andsticky
actions (#301)
[email protected]
Minor Changes
-
Breaking change:
tableOrderStore
now takes in the full event withe.detail.column
instead of justcolumn
to simplify usage. (341b51a47df0db4774a6470ecbcee36e21002188
)Before
<Table on:headerClick={(e) => tableOrder.onHeaderClick(e.detail.column)} />
After
<Table on:headerClick={tableOrder.onHeaderClick} />
-
Breaking change: Simplify Table ordering by passing instance of
tableOrderStore
instead oforderBy
,orderDirection
, and handlingon:headerClick
. Also fixes display of clickable headers when order is not used, and improves sort arrow size. (e72a154524d0a8583717f58617984b1ea46f187b
)Before
<script> const order = tableOrderStore(); </script> <Table orderBy={$order.by} orderDirection={$order.direction} on:headerClick={order.onHeaderClick} />
After
<script> const order = tableOrderStore(); </script> <Table {order} />
-
Breaking change: [Paginate] Rename
items
todata
andpageItems
slot prop topageData
to better integrate withTable
. Maintaindata
type topageData
. (fc50ca2d5670596dd9c125725fff1ad38c07e723
)
Patch Changes
-
Add support for the Map iterable type in the entries function (#300)
-
[Dialog / Drawer] Only stop keydown event propagation for
Escape
key (allow arrow keys, etc) (4b9824f6e2a7fef4621c0aeaf3a4f3080ba8e124
) -
[tableOrderStore] Support passing
columns
to simplify creating initialHandler for complex columns (using value, orderBy, etc) (772699ea0940cea2b350e10a9848df69cade1b15
) -
Improve types for Table, Paginate, Selection, Steps, and InfiniteScroll (
fc50ca2d5670596dd9c125725fff1ad38c07e723
) -
Add
isEmptyObject()
util (e2b97b616cd1bdbfd5a6d480c829351a66b30251
) -
[tableOrderStore] Use
initialDirection
when changing column sorted by (8ea0a4dd4680dc31495b5d4b521b11624760f5e2
)
[email protected]
Patch Changes
-
[Switch] Fix height on mobile Safari (
c6587f649212acd71bf0679f787780b4e9a9c973
) -
Implement type-safe fromEntries type helper for Object.fromEntries (#297)
-
[ToggleGroup] Support passing
name
prop to group underlying radio options. Improves keyboard navigation and form support (e4b66e85d07d994b3203208f78dd1b76c4018077
)
[email protected]
Patch Changes
- Fix ToggleOption value sometimes being converted to string due to bind:value (#294)
[email protected]
Patch Changes
- [NavItem] Pass
classes
to icon instead of singleclass
(i.e. support path class(es)) (f8338570a1a09e7acbb676d3cec39c7b2db223b0
)