bits-ui 1.0.0-next.8 → 1.0.0-next.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +14 -0
- package/dist/bits/accordion/accordion.svelte.d.ts +15 -16
- package/dist/bits/accordion/accordion.svelte.js +40 -41
- package/dist/bits/accordion/components/accordion-content.svelte +3 -4
- package/dist/bits/accordion/components/accordion-content.svelte.d.ts +2 -17
- package/dist/bits/accordion/components/accordion-header.svelte +2 -3
- package/dist/bits/accordion/components/accordion-header.svelte.d.ts +2 -17
- package/dist/bits/accordion/components/accordion-item.svelte +2 -3
- package/dist/bits/accordion/components/accordion-item.svelte.d.ts +2 -17
- package/dist/bits/accordion/components/accordion-trigger.svelte +2 -3
- package/dist/bits/accordion/components/accordion-trigger.svelte.d.ts +2 -17
- package/dist/bits/accordion/components/accordion.svelte +8 -13
- package/dist/bits/accordion/components/accordion.svelte.d.ts +3 -18
- package/dist/bits/accordion/exports.d.ts +6 -0
- package/dist/bits/accordion/exports.js +5 -0
- package/dist/bits/accordion/index.d.ts +1 -6
- package/dist/bits/accordion/index.js +1 -5
- package/dist/bits/accordion/types.d.ts +9 -18
- package/dist/bits/alert-dialog/components/alert-dialog-action.svelte +4 -5
- package/dist/bits/alert-dialog/components/alert-dialog-action.svelte.d.ts +2 -17
- package/dist/bits/alert-dialog/components/alert-dialog-cancel.svelte +6 -5
- package/dist/bits/alert-dialog/components/alert-dialog-cancel.svelte.d.ts +2 -17
- package/dist/bits/alert-dialog/components/alert-dialog-content.svelte +20 -17
- package/dist/bits/alert-dialog/components/alert-dialog-content.svelte.d.ts +2 -17
- package/dist/bits/alert-dialog/components/alert-dialog.svelte +5 -14
- package/dist/bits/alert-dialog/components/alert-dialog.svelte.d.ts +2 -17
- package/dist/bits/alert-dialog/exports.d.ts +10 -0
- package/dist/bits/alert-dialog/exports.js +9 -0
- package/dist/bits/alert-dialog/index.d.ts +1 -10
- package/dist/bits/alert-dialog/index.js +1 -9
- package/dist/bits/alert-dialog/types.d.ts +1 -1
- package/dist/bits/aspect-ratio/aspect-ratio.svelte.js +1 -1
- package/dist/bits/aspect-ratio/components/aspect-ratio.svelte +4 -5
- package/dist/bits/aspect-ratio/components/aspect-ratio.svelte.d.ts +3 -18
- package/dist/bits/aspect-ratio/exports.d.ts +2 -0
- package/dist/bits/aspect-ratio/exports.js +1 -0
- package/dist/bits/aspect-ratio/index.d.ts +1 -2
- package/dist/bits/aspect-ratio/index.js +1 -1
- package/dist/bits/aspect-ratio/types.d.ts +3 -3
- package/dist/bits/avatar/avatar.svelte.d.ts +1 -3
- package/dist/bits/avatar/avatar.svelte.js +11 -17
- package/dist/bits/avatar/components/avatar-fallback.svelte +4 -5
- package/dist/bits/avatar/components/avatar-fallback.svelte.d.ts +3 -18
- package/dist/bits/avatar/components/avatar-image.svelte +4 -5
- package/dist/bits/avatar/components/avatar-image.svelte.d.ts +3 -18
- package/dist/bits/avatar/components/avatar.svelte +4 -5
- package/dist/bits/avatar/components/avatar.svelte.d.ts +3 -18
- package/dist/bits/avatar/exports.d.ts +4 -0
- package/dist/bits/avatar/exports.js +3 -0
- package/dist/bits/avatar/index.d.ts +1 -4
- package/dist/bits/avatar/index.js +1 -3
- package/dist/bits/avatar/types.d.ts +4 -4
- package/dist/bits/button/components/button.svelte +14 -4
- package/dist/bits/button/components/button.svelte.d.ts +3 -18
- package/dist/bits/button/exports.d.ts +2 -0
- package/dist/bits/button/exports.js +1 -0
- package/dist/bits/button/index.d.ts +1 -2
- package/dist/bits/button/index.js +1 -1
- package/dist/bits/button/types.d.ts +6 -4
- package/dist/bits/calendar/calendar.svelte.d.ts +36 -76
- package/dist/bits/calendar/calendar.svelte.js +77 -89
- package/dist/bits/calendar/components/calendar-cell.svelte +4 -5
- package/dist/bits/calendar/components/calendar-cell.svelte.d.ts +3 -18
- package/dist/bits/calendar/components/calendar-day.svelte +10 -5
- package/dist/bits/calendar/components/calendar-day.svelte.d.ts +3 -18
- package/dist/bits/calendar/components/calendar-grid-body.svelte +4 -5
- package/dist/bits/calendar/components/calendar-grid-body.svelte.d.ts +3 -18
- package/dist/bits/calendar/components/calendar-grid-head.svelte +4 -5
- package/dist/bits/calendar/components/calendar-grid-head.svelte.d.ts +3 -18
- package/dist/bits/calendar/components/calendar-grid-row.svelte +4 -5
- package/dist/bits/calendar/components/calendar-grid-row.svelte.d.ts +3 -18
- package/dist/bits/calendar/components/calendar-grid.svelte +4 -5
- package/dist/bits/calendar/components/calendar-grid.svelte.d.ts +3 -18
- package/dist/bits/calendar/components/calendar-head-cell.svelte +4 -5
- package/dist/bits/calendar/components/calendar-head-cell.svelte.d.ts +3 -18
- package/dist/bits/calendar/components/calendar-header.svelte +4 -5
- package/dist/bits/calendar/components/calendar-header.svelte.d.ts +3 -18
- package/dist/bits/calendar/components/calendar-heading.svelte +4 -5
- package/dist/bits/calendar/components/calendar-heading.svelte.d.ts +3 -18
- package/dist/bits/calendar/components/calendar-next-button.svelte +4 -5
- package/dist/bits/calendar/components/calendar-next-button.svelte.d.ts +3 -18
- package/dist/bits/calendar/components/calendar-prev-button.svelte +4 -5
- package/dist/bits/calendar/components/calendar-prev-button.svelte.d.ts +3 -18
- package/dist/bits/calendar/components/calendar.svelte +18 -23
- package/dist/bits/calendar/components/calendar.svelte.d.ts +3 -18
- package/dist/bits/calendar/exports.d.ts +13 -0
- package/dist/bits/calendar/exports.js +12 -0
- package/dist/bits/calendar/index.d.ts +1 -13
- package/dist/bits/calendar/index.js +1 -12
- package/dist/bits/calendar/types.d.ts +15 -33
- package/dist/bits/checkbox/checkbox.svelte.d.ts +63 -12
- package/dist/bits/checkbox/checkbox.svelte.js +180 -44
- package/dist/bits/checkbox/components/checkbox-group-label.svelte +32 -0
- package/dist/bits/checkbox/components/checkbox-group-label.svelte.d.ts +4 -0
- package/dist/bits/checkbox/components/checkbox-group.svelte +45 -0
- package/dist/bits/checkbox/components/checkbox-group.svelte.d.ts +4 -0
- package/dist/bits/checkbox/components/checkbox.svelte +22 -16
- package/dist/bits/checkbox/components/checkbox.svelte.d.ts +3 -18
- package/dist/bits/checkbox/exports.d.ts +4 -0
- package/dist/bits/checkbox/exports.js +3 -0
- package/dist/bits/checkbox/index.d.ts +1 -2
- package/dist/bits/checkbox/index.js +1 -1
- package/dist/bits/checkbox/types.d.ts +54 -12
- package/dist/bits/collapsible/collapsible.svelte.d.ts +6 -5
- package/dist/bits/collapsible/collapsible.svelte.js +29 -23
- package/dist/bits/collapsible/components/collapsible-content.svelte +3 -4
- package/dist/bits/collapsible/components/collapsible-content.svelte.d.ts +5 -27
- package/dist/bits/collapsible/components/collapsible-trigger.svelte +4 -5
- package/dist/bits/collapsible/components/collapsible-trigger.svelte.d.ts +3 -18
- package/dist/bits/collapsible/components/collapsible.svelte +7 -13
- package/dist/bits/collapsible/components/collapsible.svelte.d.ts +3 -18
- package/dist/bits/collapsible/exports.d.ts +4 -0
- package/dist/bits/collapsible/exports.js +3 -0
- package/dist/bits/collapsible/index.d.ts +1 -4
- package/dist/bits/collapsible/index.js +1 -3
- package/dist/bits/collapsible/types.d.ts +6 -14
- package/dist/bits/combobox/components/combobox-input.svelte +6 -7
- package/dist/bits/combobox/components/combobox-input.svelte.d.ts +3 -18
- package/dist/bits/combobox/components/combobox-trigger.svelte +8 -8
- package/dist/bits/combobox/components/combobox-trigger.svelte.d.ts +3 -18
- package/dist/bits/combobox/components/combobox.svelte +23 -34
- package/dist/bits/combobox/components/combobox.svelte.d.ts +2 -17
- package/dist/bits/combobox/exports.d.ts +15 -0
- package/dist/bits/combobox/exports.js +14 -0
- package/dist/bits/combobox/index.d.ts +1 -8
- package/dist/bits/combobox/index.js +1 -7
- package/dist/bits/combobox/types.d.ts +3 -3
- package/dist/bits/command/command-score.js +1 -2
- package/dist/bits/command/command.svelte.d.ts +21 -27
- package/dist/bits/command/command.svelte.js +108 -122
- package/dist/bits/command/components/_command-label.svelte +2 -2
- package/dist/bits/command/components/_command-label.svelte.d.ts +3 -18
- package/dist/bits/command/components/command-empty.svelte +4 -5
- package/dist/bits/command/components/command-empty.svelte.d.ts +3 -18
- package/dist/bits/command/components/command-group-heading.svelte +4 -5
- package/dist/bits/command/components/command-group-heading.svelte.d.ts +3 -18
- package/dist/bits/command/components/command-group-items.svelte +4 -5
- package/dist/bits/command/components/command-group-items.svelte.d.ts +3 -18
- package/dist/bits/command/components/command-group.svelte +2 -3
- package/dist/bits/command/components/command-group.svelte.d.ts +2 -17
- package/dist/bits/command/components/command-input.svelte +4 -5
- package/dist/bits/command/components/command-input.svelte.d.ts +3 -18
- package/dist/bits/command/components/command-item.svelte +7 -8
- package/dist/bits/command/components/command-item.svelte.d.ts +3 -18
- package/dist/bits/command/components/command-link-item.svelte +7 -8
- package/dist/bits/command/components/command-link-item.svelte.d.ts +3 -18
- package/dist/bits/command/components/command-list.svelte +4 -5
- package/dist/bits/command/components/command-list.svelte.d.ts +3 -18
- package/dist/bits/command/components/command-loading.svelte +4 -5
- package/dist/bits/command/components/command-loading.svelte.d.ts +3 -18
- package/dist/bits/command/components/command-separator.svelte +4 -5
- package/dist/bits/command/components/command-separator.svelte.d.ts +3 -18
- package/dist/bits/command/components/command-viewport.svelte +3 -3
- package/dist/bits/command/components/command-viewport.svelte.d.ts +3 -18
- package/dist/bits/command/components/command.svelte +9 -13
- package/dist/bits/command/components/command.svelte.d.ts +3 -18
- package/dist/bits/command/exports.d.ts +13 -0
- package/dist/bits/command/exports.js +12 -0
- package/dist/bits/command/index.d.ts +1 -13
- package/dist/bits/command/index.js +1 -12
- package/dist/bits/command/types.d.ts +17 -21
- package/dist/bits/context-menu/components/context-menu-content-static.svelte +80 -45
- package/dist/bits/context-menu/components/context-menu-content-static.svelte.d.ts +3 -18
- package/dist/bits/context-menu/components/context-menu-content.svelte +79 -51
- package/dist/bits/context-menu/components/context-menu-content.svelte.d.ts +3 -18
- package/dist/bits/context-menu/components/context-menu-trigger.svelte +4 -5
- package/dist/bits/context-menu/components/context-menu-trigger.svelte.d.ts +3 -18
- package/dist/bits/context-menu/components/context-menu.svelte +10 -19
- package/dist/bits/context-menu/components/context-menu.svelte.d.ts +2 -18
- package/dist/bits/context-menu/exports.d.ts +18 -0
- package/dist/bits/context-menu/exports.js +17 -0
- package/dist/bits/context-menu/index.d.ts +1 -18
- package/dist/bits/context-menu/index.js +1 -17
- package/dist/bits/context-menu/types.d.ts +3 -3
- package/dist/bits/date-field/components/date-field-input.svelte +4 -5
- package/dist/bits/date-field/components/date-field-input.svelte.d.ts +3 -18
- package/dist/bits/date-field/components/date-field-label.svelte +4 -5
- package/dist/bits/date-field/components/date-field-label.svelte.d.ts +3 -18
- package/dist/bits/date-field/components/date-field-segment.svelte +4 -5
- package/dist/bits/date-field/components/date-field-segment.svelte.d.ts +3 -18
- package/dist/bits/date-field/components/date-field.svelte +9 -23
- package/dist/bits/date-field/components/date-field.svelte.d.ts +2 -17
- package/dist/bits/date-field/date-field.svelte.d.ts +83 -77
- package/dist/bits/date-field/date-field.svelte.js +167 -150
- package/dist/bits/date-field/exports.d.ts +5 -0
- package/dist/bits/date-field/exports.js +4 -0
- package/dist/bits/date-field/index.d.ts +1 -5
- package/dist/bits/date-field/index.js +1 -4
- package/dist/bits/date-field/types.d.ts +8 -26
- package/dist/bits/date-picker/components/date-picker-calendar.svelte +6 -7
- package/dist/bits/date-picker/components/date-picker-calendar.svelte.d.ts +3 -18
- package/dist/bits/date-picker/components/date-picker-content-static.svelte +8 -4
- package/dist/bits/date-picker/components/date-picker-content-static.svelte.d.ts +3 -18
- package/dist/bits/date-picker/components/date-picker-content.svelte +5 -5
- package/dist/bits/date-picker/components/date-picker-content.svelte.d.ts +3 -18
- package/dist/bits/date-picker/components/date-picker-trigger.svelte +8 -5
- package/dist/bits/date-picker/components/date-picker-trigger.svelte.d.ts +3 -18
- package/dist/bits/date-picker/components/date-picker.svelte +13 -36
- package/dist/bits/date-picker/components/date-picker.svelte.d.ts +2 -17
- package/dist/bits/date-picker/date-picker.svelte.d.ts +4 -3
- package/dist/bits/date-picker/date-picker.svelte.js +3 -3
- package/dist/bits/date-picker/exports.d.ts +22 -0
- package/dist/bits/date-picker/exports.js +21 -0
- package/dist/bits/date-picker/index.d.ts +1 -22
- package/dist/bits/date-picker/index.js +1 -21
- package/dist/bits/date-picker/types.d.ts +4 -30
- package/dist/bits/date-range-field/components/date-range-field-input.svelte +4 -5
- package/dist/bits/date-range-field/components/date-range-field-input.svelte.d.ts +3 -18
- package/dist/bits/date-range-field/components/date-range-field-label.svelte +4 -5
- package/dist/bits/date-range-field/components/date-range-field-label.svelte.d.ts +3 -18
- package/dist/bits/date-range-field/components/date-range-field.svelte +13 -31
- package/dist/bits/date-range-field/components/date-range-field.svelte.d.ts +3 -18
- package/dist/bits/date-range-field/date-range-field.svelte.d.ts +9 -29
- package/dist/bits/date-range-field/date-range-field.svelte.js +37 -60
- package/dist/bits/date-range-field/exports.d.ts +5 -0
- package/dist/bits/date-range-field/exports.js +4 -0
- package/dist/bits/date-range-field/index.d.ts +1 -5
- package/dist/bits/date-range-field/index.js +1 -4
- package/dist/bits/date-range-field/types.d.ts +9 -26
- package/dist/bits/date-range-picker/components/date-range-picker-calendar.svelte +6 -7
- package/dist/bits/date-range-picker/components/date-range-picker-calendar.svelte.d.ts +3 -18
- package/dist/bits/date-range-picker/components/date-range-picker-trigger.svelte +8 -5
- package/dist/bits/date-range-picker/components/date-range-picker-trigger.svelte.d.ts +3 -18
- package/dist/bits/date-range-picker/components/date-range-picker.svelte +20 -47
- package/dist/bits/date-range-picker/components/date-range-picker.svelte.d.ts +3 -18
- package/dist/bits/date-range-picker/date-range-picker.svelte.d.ts +4 -3
- package/dist/bits/date-range-picker/date-range-picker.svelte.js +3 -3
- package/dist/bits/date-range-picker/exports.d.ts +21 -0
- package/dist/bits/date-range-picker/exports.js +20 -0
- package/dist/bits/date-range-picker/index.d.ts +1 -21
- package/dist/bits/date-range-picker/index.js +1 -20
- package/dist/bits/date-range-picker/types.d.ts +5 -32
- package/dist/bits/dialog/components/dialog-close.svelte +6 -5
- package/dist/bits/dialog/components/dialog-close.svelte.d.ts +2 -17
- package/dist/bits/dialog/components/dialog-content.svelte +20 -17
- package/dist/bits/dialog/components/dialog-content.svelte.d.ts +3 -18
- package/dist/bits/dialog/components/dialog-description.svelte +4 -5
- package/dist/bits/dialog/components/dialog-description.svelte.d.ts +3 -18
- package/dist/bits/dialog/components/dialog-overlay.svelte +4 -5
- package/dist/bits/dialog/components/dialog-overlay.svelte.d.ts +3 -18
- package/dist/bits/dialog/components/dialog-title.svelte +4 -5
- package/dist/bits/dialog/components/dialog-title.svelte.d.ts +3 -18
- package/dist/bits/dialog/components/dialog-trigger.svelte +6 -5
- package/dist/bits/dialog/components/dialog-trigger.svelte.d.ts +3 -18
- package/dist/bits/dialog/components/dialog.svelte +5 -14
- package/dist/bits/dialog/components/dialog.svelte.d.ts +2 -17
- package/dist/bits/dialog/dialog.svelte.d.ts +34 -18
- package/dist/bits/dialog/dialog.svelte.js +106 -54
- package/dist/bits/dialog/exports.d.ts +9 -0
- package/dist/bits/dialog/exports.js +8 -0
- package/dist/bits/dialog/index.d.ts +1 -9
- package/dist/bits/dialog/index.js +1 -8
- package/dist/bits/dialog/types.d.ts +9 -18
- package/dist/bits/dropdown-menu/components/dropdown-menu-content-static.svelte +67 -33
- package/dist/bits/dropdown-menu/components/dropdown-menu-content-static.svelte.d.ts +3 -18
- package/dist/bits/dropdown-menu/components/dropdown-menu-content.svelte +68 -34
- package/dist/bits/dropdown-menu/components/dropdown-menu-content.svelte.d.ts +3 -18
- package/dist/bits/dropdown-menu/exports.d.ts +18 -0
- package/dist/bits/dropdown-menu/exports.js +17 -0
- package/dist/bits/dropdown-menu/index.d.ts +1 -18
- package/dist/bits/dropdown-menu/index.js +1 -17
- package/dist/bits/dropdown-menu/types.d.ts +1 -1
- package/dist/bits/index.d.ts +38 -38
- package/dist/bits/index.js +38 -38
- package/dist/bits/label/components/label.svelte +4 -5
- package/dist/bits/label/components/label.svelte.d.ts +3 -18
- package/dist/bits/label/exports.d.ts +2 -0
- package/dist/bits/label/exports.js +1 -0
- package/dist/bits/label/index.d.ts +1 -2
- package/dist/bits/label/index.js +1 -1
- package/dist/bits/label/label.svelte.d.ts +4 -3
- package/dist/bits/label/label.svelte.js +5 -4
- package/dist/bits/label/types.d.ts +2 -2
- package/dist/bits/link-preview/components/link-preview-content-static.svelte +72 -33
- package/dist/bits/link-preview/components/link-preview-content-static.svelte.d.ts +3 -18
- package/dist/bits/link-preview/components/link-preview-content.svelte +75 -35
- package/dist/bits/link-preview/components/link-preview-content.svelte.d.ts +3 -18
- package/dist/bits/link-preview/components/link-preview-trigger.svelte +4 -5
- package/dist/bits/link-preview/components/link-preview-trigger.svelte.d.ts +3 -18
- package/dist/bits/link-preview/components/link-preview.svelte +5 -10
- package/dist/bits/link-preview/components/link-preview.svelte.d.ts +2 -17
- package/dist/bits/link-preview/exports.d.ts +7 -0
- package/dist/bits/link-preview/exports.js +6 -0
- package/dist/bits/link-preview/index.d.ts +1 -7
- package/dist/bits/link-preview/index.js +1 -6
- package/dist/bits/link-preview/link-preview.svelte.d.ts +22 -19
- package/dist/bits/link-preview/link-preview.svelte.js +67 -57
- package/dist/bits/link-preview/types.d.ts +10 -24
- package/dist/bits/menu/components/menu-arrow.svelte +5 -5
- package/dist/bits/menu/components/menu-arrow.svelte.d.ts +2 -17
- package/dist/bits/menu/components/menu-checkbox-item.svelte +20 -15
- package/dist/bits/menu/components/menu-checkbox-item.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu-content-static.svelte +73 -48
- package/dist/bits/menu/components/menu-content-static.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu-content.svelte +74 -48
- package/dist/bits/menu/components/menu-content.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu-group-heading.svelte +4 -5
- package/dist/bits/menu/components/menu-group-heading.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu-group.svelte +4 -5
- package/dist/bits/menu/components/menu-group.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu-item.svelte +7 -6
- package/dist/bits/menu/components/menu-item.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu-radio-group.svelte +7 -13
- package/dist/bits/menu/components/menu-radio-group.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu-radio-item.svelte +7 -6
- package/dist/bits/menu/components/menu-radio-item.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu-separator.svelte +4 -5
- package/dist/bits/menu/components/menu-separator.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu-sub-content-static.svelte +89 -56
- package/dist/bits/menu/components/menu-sub-content-static.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu-sub-content.svelte +102 -59
- package/dist/bits/menu/components/menu-sub-content.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu-sub-trigger.svelte +7 -8
- package/dist/bits/menu/components/menu-sub-trigger.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu-sub.svelte +8 -17
- package/dist/bits/menu/components/menu-sub.svelte.d.ts +2 -18
- package/dist/bits/menu/components/menu-trigger.svelte +9 -9
- package/dist/bits/menu/components/menu-trigger.svelte.d.ts +3 -18
- package/dist/bits/menu/components/menu.svelte +10 -19
- package/dist/bits/menu/components/menu.svelte.d.ts +5 -25
- package/dist/bits/menu/menu.svelte.d.ts +115 -111
- package/dist/bits/menu/menu.svelte.js +258 -296
- package/dist/bits/menu/types.d.ts +50 -59
- package/dist/bits/menubar/components/menubar-content-static.svelte +4 -5
- package/dist/bits/menubar/components/menubar-content-static.svelte.d.ts +3 -18
- package/dist/bits/menubar/components/menubar-content.svelte +4 -5
- package/dist/bits/menubar/components/menubar-content.svelte.d.ts +3 -18
- package/dist/bits/menubar/components/menubar-menu.svelte +3 -3
- package/dist/bits/menubar/components/menubar-menu.svelte.d.ts +2 -17
- package/dist/bits/menubar/components/menubar-trigger.svelte +4 -5
- package/dist/bits/menubar/components/menubar-trigger.svelte.d.ts +3 -18
- package/dist/bits/menubar/components/menubar.svelte +7 -13
- package/dist/bits/menubar/components/menubar.svelte.d.ts +3 -18
- package/dist/bits/menubar/exports.d.ts +20 -0
- package/dist/bits/menubar/exports.js +18 -0
- package/dist/bits/menubar/index.d.ts +1 -19
- package/dist/bits/menubar/index.js +1 -17
- package/dist/bits/menubar/menubar.svelte.d.ts +35 -33
- package/dist/bits/menubar/menubar.svelte.js +78 -85
- package/dist/bits/menubar/types.d.ts +5 -13
- package/dist/bits/navigation-menu/components/navigation-menu-content.svelte +5 -6
- package/dist/bits/navigation-menu/components/navigation-menu-content.svelte.d.ts +3 -18
- package/dist/bits/navigation-menu/components/navigation-menu-indicator.svelte +4 -5
- package/dist/bits/navigation-menu/components/navigation-menu-indicator.svelte.d.ts +3 -18
- package/dist/bits/navigation-menu/components/navigation-menu-item.svelte +4 -5
- package/dist/bits/navigation-menu/components/navigation-menu-item.svelte.d.ts +3 -18
- package/dist/bits/navigation-menu/components/navigation-menu-link.svelte +5 -6
- package/dist/bits/navigation-menu/components/navigation-menu-link.svelte.d.ts +3 -18
- package/dist/bits/navigation-menu/components/navigation-menu-list.svelte +4 -5
- package/dist/bits/navigation-menu/components/navigation-menu-list.svelte.d.ts +3 -18
- package/dist/bits/navigation-menu/components/navigation-menu-trigger.svelte +4 -5
- package/dist/bits/navigation-menu/components/navigation-menu-trigger.svelte.d.ts +3 -18
- package/dist/bits/navigation-menu/components/navigation-menu-viewport.svelte +4 -5
- package/dist/bits/navigation-menu/components/navigation-menu-viewport.svelte.d.ts +3 -18
- package/dist/bits/navigation-menu/components/navigation-menu.svelte +7 -13
- package/dist/bits/navigation-menu/components/navigation-menu.svelte.d.ts +3 -18
- package/dist/bits/navigation-menu/exports.d.ts +9 -0
- package/dist/bits/navigation-menu/exports.js +8 -0
- package/dist/bits/navigation-menu/index.d.ts +1 -9
- package/dist/bits/navigation-menu/index.js +1 -8
- package/dist/bits/navigation-menu/navigation-menu.svelte.d.ts +53 -61
- package/dist/bits/navigation-menu/navigation-menu.svelte.js +138 -170
- package/dist/bits/navigation-menu/types.d.ts +11 -18
- package/dist/bits/pagination/components/pagination-next-button.svelte +6 -5
- package/dist/bits/pagination/components/pagination-next-button.svelte.d.ts +3 -18
- package/dist/bits/pagination/components/pagination-page.svelte +6 -5
- package/dist/bits/pagination/components/pagination-page.svelte.d.ts +3 -18
- package/dist/bits/pagination/components/pagination-prev-button.svelte +6 -5
- package/dist/bits/pagination/components/pagination-prev-button.svelte.d.ts +3 -18
- package/dist/bits/pagination/components/pagination.svelte +7 -13
- package/dist/bits/pagination/components/pagination.svelte.d.ts +3 -18
- package/dist/bits/pagination/exports.d.ts +5 -0
- package/dist/bits/pagination/exports.js +4 -0
- package/dist/bits/pagination/index.d.ts +1 -5
- package/dist/bits/pagination/index.js +1 -4
- package/dist/bits/pagination/pagination.svelte.d.ts +24 -15
- package/dist/bits/pagination/pagination.svelte.js +82 -43
- package/dist/bits/pagination/types.d.ts +6 -13
- package/dist/bits/pin-input/components/pin-input-cell.svelte +4 -5
- package/dist/bits/pin-input/components/pin-input-cell.svelte.d.ts +3 -18
- package/dist/bits/pin-input/components/pin-input.svelte +9 -15
- package/dist/bits/pin-input/components/pin-input.svelte.d.ts +3 -18
- package/dist/bits/pin-input/exports.d.ts +3 -0
- package/dist/bits/pin-input/exports.js +2 -0
- package/dist/bits/pin-input/index.d.ts +1 -3
- package/dist/bits/pin-input/index.js +1 -2
- package/dist/bits/pin-input/pin-input.svelte.d.ts +19 -17
- package/dist/bits/pin-input/pin-input.svelte.js +82 -27
- package/dist/bits/pin-input/types.d.ts +3 -12
- package/dist/bits/pin-input/usePasswordManager.svelte.js +6 -6
- package/dist/bits/popover/components/popover-arrow.svelte +4 -4
- package/dist/bits/popover/components/popover-arrow.svelte.d.ts +2 -17
- package/dist/bits/popover/components/popover-close.svelte +4 -5
- package/dist/bits/popover/components/popover-close.svelte.d.ts +3 -18
- package/dist/bits/popover/components/popover-content-static.svelte +67 -44
- package/dist/bits/popover/components/popover-content-static.svelte.d.ts +3 -18
- package/dist/bits/popover/components/popover-content.svelte +66 -44
- package/dist/bits/popover/components/popover-content.svelte.d.ts +3 -18
- package/dist/bits/popover/components/popover-trigger.svelte +9 -8
- package/dist/bits/popover/components/popover-trigger.svelte.d.ts +3 -18
- package/dist/bits/popover/components/popover.svelte +8 -17
- package/dist/bits/popover/components/popover.svelte.d.ts +2 -17
- package/dist/bits/popover/exports.d.ts +9 -0
- package/dist/bits/popover/exports.js +7 -0
- package/dist/bits/popover/index.d.ts +1 -9
- package/dist/bits/popover/index.js +1 -7
- package/dist/bits/popover/popover.svelte.d.ts +34 -18
- package/dist/bits/popover/popover.svelte.js +92 -42
- package/dist/bits/popover/types.d.ts +9 -23
- package/dist/bits/progress/components/progress.svelte +4 -5
- package/dist/bits/progress/components/progress.svelte.d.ts +3 -18
- package/dist/bits/progress/exports.d.ts +2 -0
- package/dist/bits/progress/exports.js +1 -0
- package/dist/bits/progress/index.d.ts +1 -2
- package/dist/bits/progress/index.js +1 -1
- package/dist/bits/progress/progress.svelte.js +1 -7
- package/dist/bits/progress/types.d.ts +2 -2
- package/dist/bits/radio-group/components/radio-group-item.svelte +4 -5
- package/dist/bits/radio-group/components/radio-group-item.svelte.d.ts +3 -18
- package/dist/bits/radio-group/components/radio-group.svelte +8 -13
- package/dist/bits/radio-group/components/radio-group.svelte.d.ts +3 -18
- package/dist/bits/radio-group/exports.d.ts +3 -0
- package/dist/bits/radio-group/exports.js +2 -0
- package/dist/bits/radio-group/index.d.ts +1 -3
- package/dist/bits/radio-group/index.js +1 -2
- package/dist/bits/radio-group/radio-group.svelte.d.ts +13 -11
- package/dist/bits/radio-group/radio-group.svelte.js +42 -33
- package/dist/bits/radio-group/types.d.ts +3 -11
- package/dist/bits/range-calendar/components/range-calendar-cell.svelte +4 -5
- package/dist/bits/range-calendar/components/range-calendar-cell.svelte.d.ts +3 -18
- package/dist/bits/range-calendar/components/range-calendar-day.svelte +10 -5
- package/dist/bits/range-calendar/components/range-calendar-day.svelte.d.ts +3 -18
- package/dist/bits/range-calendar/components/range-calendar.svelte +12 -34
- package/dist/bits/range-calendar/components/range-calendar.svelte.d.ts +3 -18
- package/dist/bits/range-calendar/exports.d.ts +13 -0
- package/dist/bits/range-calendar/exports.js +12 -0
- package/dist/bits/range-calendar/index.d.ts +1 -13
- package/dist/bits/range-calendar/index.js +1 -12
- package/dist/bits/range-calendar/range-calendar.svelte.d.ts +33 -41
- package/dist/bits/range-calendar/range-calendar.svelte.js +158 -162
- package/dist/bits/range-calendar/types.d.ts +3 -21
- package/dist/bits/scroll-area/components/scroll-area-corner-impl.svelte +3 -4
- package/dist/bits/scroll-area/components/scroll-area-corner-impl.svelte.d.ts +5 -19
- package/dist/bits/scroll-area/components/scroll-area-corner.svelte +5 -5
- package/dist/bits/scroll-area/components/scroll-area-corner.svelte.d.ts +3 -18
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-auto.svelte +2 -2
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-auto.svelte.d.ts +2 -17
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-hover.svelte +2 -2
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-hover.svelte.d.ts +2 -17
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-scroll.svelte +2 -2
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-scroll.svelte.d.ts +2 -17
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-shared.svelte +1 -1
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-shared.svelte.d.ts +2 -17
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-visible.svelte.d.ts +2 -17
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-x.svelte +3 -3
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-x.svelte.d.ts +2 -17
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-y.svelte +3 -3
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-y.svelte.d.ts +2 -17
- package/dist/bits/scroll-area/components/scroll-area-scrollbar.svelte +3 -3
- package/dist/bits/scroll-area/components/scroll-area-scrollbar.svelte.d.ts +3 -18
- package/dist/bits/scroll-area/components/scroll-area-thumb-impl.svelte +3 -4
- package/dist/bits/scroll-area/components/scroll-area-thumb-impl.svelte.d.ts +5 -19
- package/dist/bits/scroll-area/components/scroll-area-thumb.svelte +6 -6
- package/dist/bits/scroll-area/components/scroll-area-thumb.svelte.d.ts +3 -18
- package/dist/bits/scroll-area/components/scroll-area-viewport.svelte +18 -5
- package/dist/bits/scroll-area/components/scroll-area-viewport.svelte.d.ts +3 -18
- package/dist/bits/scroll-area/components/scroll-area.svelte +4 -5
- package/dist/bits/scroll-area/components/scroll-area.svelte.d.ts +3 -18
- package/dist/bits/scroll-area/exports.d.ts +6 -0
- package/dist/bits/scroll-area/exports.js +5 -0
- package/dist/bits/scroll-area/index.d.ts +1 -6
- package/dist/bits/scroll-area/index.js +1 -5
- package/dist/bits/scroll-area/scroll-area.svelte.d.ts +51 -51
- package/dist/bits/scroll-area/scroll-area.svelte.js +113 -129
- package/dist/bits/scroll-area/types.d.ts +6 -6
- package/dist/bits/select/components/select-content-static.svelte +100 -0
- package/dist/bits/select/components/select-content-static.svelte.d.ts +4 -0
- package/dist/bits/select/components/select-content.svelte +87 -36
- package/dist/bits/select/components/select-content.svelte.d.ts +3 -18
- package/dist/bits/select/components/select-group-heading.svelte +7 -8
- package/dist/bits/select/components/select-group-heading.svelte.d.ts +3 -18
- package/dist/bits/select/components/select-group.svelte +7 -7
- package/dist/bits/select/components/select-group.svelte.d.ts +3 -18
- package/dist/bits/{listbox/components/listbox-hidden-input.svelte → select/components/select-hidden-input.svelte} +4 -4
- package/dist/bits/select/components/select-hidden-input.svelte.d.ts +6 -0
- package/dist/bits/select/components/select-item.svelte +24 -13
- package/dist/bits/select/components/select-item.svelte.d.ts +3 -18
- package/dist/bits/select/components/select-scroll-down-button.svelte +22 -12
- package/dist/bits/select/components/select-scroll-down-button.svelte.d.ts +3 -18
- package/dist/bits/select/components/select-scroll-up-button.svelte +24 -14
- package/dist/bits/select/components/select-scroll-up-button.svelte.d.ts +3 -18
- package/dist/bits/select/components/select-trigger.svelte +7 -9
- package/dist/bits/select/components/select-trigger.svelte.d.ts +3 -18
- package/dist/bits/select/components/select-viewport.svelte +14 -5
- package/dist/bits/select/components/select-viewport.svelte.d.ts +3 -18
- package/dist/bits/select/components/select.svelte +52 -66
- package/dist/bits/select/components/select.svelte.d.ts +2 -17
- package/dist/bits/select/exports.d.ts +12 -0
- package/dist/bits/select/exports.js +11 -0
- package/dist/bits/select/index.d.ts +1 -15
- package/dist/bits/select/index.js +1 -14
- package/dist/bits/select/select.svelte.d.ts +320 -286
- package/dist/bits/select/select.svelte.js +830 -918
- package/dist/bits/select/types.d.ts +123 -91
- package/dist/bits/separator/components/separator.svelte +4 -5
- package/dist/bits/separator/components/separator.svelte.d.ts +3 -18
- package/dist/bits/separator/exports.d.ts +2 -0
- package/dist/bits/separator/exports.js +1 -0
- package/dist/bits/separator/index.d.ts +1 -2
- package/dist/bits/separator/index.js +1 -1
- package/dist/bits/separator/separator.svelte.js +1 -1
- package/dist/bits/separator/types.d.ts +2 -2
- package/dist/bits/slider/components/slider-range.svelte +4 -5
- package/dist/bits/slider/components/slider-range.svelte.d.ts +3 -18
- package/dist/bits/slider/components/slider-thumb.svelte +4 -5
- package/dist/bits/slider/components/slider-thumb.svelte.d.ts +3 -18
- package/dist/bits/slider/components/slider-tick.svelte +4 -5
- package/dist/bits/slider/components/slider-tick.svelte.d.ts +3 -18
- package/dist/bits/slider/components/slider.svelte +19 -17
- package/dist/bits/slider/components/slider.svelte.d.ts +3 -18
- package/dist/bits/slider/exports.d.ts +5 -0
- package/dist/bits/slider/exports.js +4 -0
- package/dist/bits/slider/index.d.ts +1 -5
- package/dist/bits/slider/index.js +1 -4
- package/dist/bits/slider/slider.svelte.d.ts +119 -48
- package/dist/bits/slider/slider.svelte.js +281 -95
- package/dist/bits/slider/types.d.ts +54 -28
- package/dist/bits/switch/components/switch-thumb.svelte +4 -5
- package/dist/bits/switch/components/switch-thumb.svelte.d.ts +3 -18
- package/dist/bits/switch/components/switch.svelte +7 -13
- package/dist/bits/switch/components/switch.svelte.d.ts +3 -18
- package/dist/bits/switch/exports.d.ts +3 -0
- package/dist/bits/switch/exports.js +2 -0
- package/dist/bits/switch/index.d.ts +1 -3
- package/dist/bits/switch/index.js +1 -2
- package/dist/bits/switch/switch.svelte.d.ts +7 -7
- package/dist/bits/switch/switch.svelte.js +16 -24
- package/dist/bits/switch/types.d.ts +3 -12
- package/dist/bits/tabs/components/tabs-content.svelte +4 -5
- package/dist/bits/tabs/components/tabs-content.svelte.d.ts +3 -18
- package/dist/bits/tabs/components/tabs-list.svelte +4 -5
- package/dist/bits/tabs/components/tabs-list.svelte.d.ts +3 -18
- package/dist/bits/tabs/components/tabs-trigger.svelte +4 -5
- package/dist/bits/tabs/components/tabs-trigger.svelte.d.ts +3 -18
- package/dist/bits/tabs/components/tabs.svelte +7 -13
- package/dist/bits/tabs/components/tabs.svelte.d.ts +3 -18
- package/dist/bits/tabs/exports.d.ts +5 -0
- package/dist/bits/tabs/exports.js +4 -0
- package/dist/bits/tabs/index.d.ts +1 -5
- package/dist/bits/tabs/index.js +1 -4
- package/dist/bits/tabs/tabs.svelte.d.ts +12 -13
- package/dist/bits/tabs/tabs.svelte.js +44 -71
- package/dist/bits/tabs/types.d.ts +5 -13
- package/dist/bits/toggle/components/toggle.svelte +7 -13
- package/dist/bits/toggle/components/toggle.svelte.d.ts +3 -18
- package/dist/bits/toggle/exports.d.ts +2 -0
- package/dist/bits/toggle/exports.js +1 -0
- package/dist/bits/toggle/index.d.ts +1 -2
- package/dist/bits/toggle/index.js +1 -1
- package/dist/bits/toggle/toggle.svelte.d.ts +6 -5
- package/dist/bits/toggle/toggle.svelte.js +9 -19
- package/dist/bits/toggle/types.d.ts +2 -11
- package/dist/bits/toggle-group/components/toggle-group-item.svelte +4 -5
- package/dist/bits/toggle-group/components/toggle-group-item.svelte.d.ts +3 -18
- package/dist/bits/toggle-group/components/toggle-group.svelte +10 -17
- package/dist/bits/toggle-group/components/toggle-group.svelte.d.ts +3 -18
- package/dist/bits/toggle-group/exports.d.ts +3 -0
- package/dist/bits/toggle-group/exports.js +2 -0
- package/dist/bits/toggle-group/index.d.ts +1 -3
- package/dist/bits/toggle-group/index.js +1 -2
- package/dist/bits/toggle-group/toggle-group.svelte.d.ts +14 -13
- package/dist/bits/toggle-group/toggle-group.svelte.js +38 -32
- package/dist/bits/toggle-group/types.d.ts +5 -13
- package/dist/bits/toolbar/components/toolbar-button.svelte +4 -5
- package/dist/bits/toolbar/components/toolbar-button.svelte.d.ts +3 -18
- package/dist/bits/toolbar/components/toolbar-group-item.svelte +4 -5
- package/dist/bits/toolbar/components/toolbar-group-item.svelte.d.ts +2 -17
- package/dist/bits/toolbar/components/toolbar-group.svelte +9 -17
- package/dist/bits/toolbar/components/toolbar-group.svelte.d.ts +3 -18
- package/dist/bits/toolbar/components/toolbar-link.svelte +4 -5
- package/dist/bits/toolbar/components/toolbar-link.svelte.d.ts +3 -18
- package/dist/bits/toolbar/components/toolbar.svelte +4 -5
- package/dist/bits/toolbar/components/toolbar.svelte.d.ts +3 -18
- package/dist/bits/toolbar/exports.d.ts +6 -0
- package/dist/bits/toolbar/exports.js +5 -0
- package/dist/bits/toolbar/index.d.ts +1 -6
- package/dist/bits/toolbar/index.js +1 -5
- package/dist/bits/toolbar/toolbar.svelte.d.ts +17 -19
- package/dist/bits/toolbar/toolbar.svelte.js +57 -59
- package/dist/bits/toolbar/types.d.ts +5 -5
- package/dist/bits/tooltip/components/tooltip-arrow.svelte +4 -4
- package/dist/bits/tooltip/components/tooltip-arrow.svelte.d.ts +2 -17
- package/dist/bits/tooltip/components/tooltip-content-static.svelte +71 -32
- package/dist/bits/tooltip/components/tooltip-content-static.svelte.d.ts +3 -18
- package/dist/bits/tooltip/components/tooltip-content.svelte +71 -33
- package/dist/bits/tooltip/components/tooltip-content.svelte.d.ts +3 -18
- package/dist/bits/tooltip/components/tooltip-provider.svelte +2 -2
- package/dist/bits/tooltip/components/tooltip-provider.svelte.d.ts +2 -18
- package/dist/bits/tooltip/components/tooltip-trigger.svelte +7 -8
- package/dist/bits/tooltip/components/tooltip-trigger.svelte.d.ts +3 -18
- package/dist/bits/tooltip/components/tooltip.svelte +11 -16
- package/dist/bits/tooltip/components/tooltip.svelte.d.ts +2 -18
- package/dist/bits/tooltip/exports.d.ts +9 -0
- package/dist/bits/tooltip/exports.js +7 -0
- package/dist/bits/tooltip/index.d.ts +1 -9
- package/dist/bits/tooltip/index.js +1 -7
- package/dist/bits/tooltip/tooltip.svelte.d.ts +14 -10
- package/dist/bits/tooltip/tooltip.svelte.js +42 -52
- package/dist/bits/tooltip/types.d.ts +10 -24
- package/dist/bits/utilities/arrow/arrow.svelte +3 -3
- package/dist/bits/utilities/arrow/arrow.svelte.d.ts +2 -17
- package/dist/bits/utilities/arrow/types.d.ts +2 -2
- package/dist/bits/utilities/dismissible-layer/dismissible-layer.svelte +1 -3
- package/dist/bits/utilities/dismissible-layer/dismissible-layer.svelte.d.ts +2 -17
- package/dist/bits/utilities/dismissible-layer/types.d.ts +3 -14
- package/dist/bits/utilities/dismissible-layer/{useDismissibleLayer.svelte.js → use-dismissable-layer.svelte.js} +95 -78
- package/dist/bits/utilities/escape-layer/escape-layer.svelte +1 -1
- package/dist/bits/utilities/escape-layer/escape-layer.svelte.d.ts +2 -17
- package/dist/bits/utilities/escape-layer/{useEscapeLayer.svelte.js → use-escape-layer.svelte.js} +10 -10
- package/dist/bits/utilities/floating-layer/components/floating-layer-anchor.svelte +1 -1
- package/dist/bits/utilities/floating-layer/components/floating-layer-anchor.svelte.d.ts +2 -17
- package/dist/bits/utilities/floating-layer/components/floating-layer-arrow.svelte +4 -6
- package/dist/bits/utilities/floating-layer/components/floating-layer-arrow.svelte.d.ts +2 -17
- package/dist/bits/utilities/floating-layer/components/floating-layer-content-static.svelte +4 -2
- package/dist/bits/utilities/floating-layer/components/floating-layer-content-static.svelte.d.ts +10 -21
- package/dist/bits/utilities/floating-layer/components/floating-layer-content.svelte +4 -7
- package/dist/bits/utilities/floating-layer/components/floating-layer-content.svelte.d.ts +2 -17
- package/dist/bits/utilities/floating-layer/components/floating-layer.svelte +1 -1
- package/dist/bits/utilities/floating-layer/components/floating-layer.svelte.d.ts +4 -18
- package/dist/bits/utilities/floating-layer/types.d.ts +9 -1
- package/dist/bits/utilities/floating-layer/{useFloatingLayer.svelte.d.ts → use-floating-layer.svelte.d.ts} +10 -13
- package/dist/bits/utilities/floating-layer/{useFloatingLayer.svelte.js → use-floating-layer.svelte.js} +19 -42
- package/dist/bits/utilities/focus-scope/focus-scope-stack.svelte.js +2 -2
- package/dist/bits/utilities/focus-scope/focus-scope.svelte +4 -2
- package/dist/bits/utilities/focus-scope/focus-scope.svelte.d.ts +2 -17
- package/dist/bits/utilities/focus-scope/types.d.ts +5 -1
- package/dist/bits/utilities/focus-scope/{useFocusScope.svelte.d.ts → use-focus-scope.svelte.d.ts} +5 -1
- package/dist/bits/utilities/focus-scope/{useFocusScope.svelte.js → use-focus-scope.svelte.js} +74 -65
- package/dist/bits/utilities/is-using-keyboard/is-using-keyboard.svelte.d.ts +13 -0
- package/dist/bits/utilities/is-using-keyboard/is-using-keyboard.svelte.js +51 -0
- package/dist/bits/utilities/mounted.svelte +5 -7
- package/dist/bits/utilities/mounted.svelte.d.ts +4 -18
- package/dist/bits/utilities/popper-layer/popper-content.svelte.d.ts +5 -23
- package/dist/bits/utilities/popper-layer/popper-layer-force-mount.svelte +85 -0
- package/dist/bits/utilities/popper-layer/popper-layer-force-mount.svelte.d.ts +7 -0
- package/dist/bits/utilities/popper-layer/popper-layer-inner.svelte +127 -0
- package/dist/bits/utilities/popper-layer/popper-layer-inner.svelte.d.ts +7 -0
- package/dist/bits/utilities/popper-layer/popper-layer.svelte +23 -67
- package/dist/bits/utilities/popper-layer/popper-layer.svelte.d.ts +2 -17
- package/dist/bits/utilities/popper-layer/types.d.ts +8 -5
- package/dist/bits/utilities/portal/portal-consumer.svelte.d.ts +4 -18
- package/dist/bits/utilities/portal/portal.svelte +19 -18
- package/dist/bits/utilities/portal/portal.svelte.d.ts +2 -17
- package/dist/bits/utilities/presence-layer/presence-layer.svelte +1 -1
- package/dist/bits/utilities/presence-layer/presence-layer.svelte.d.ts +2 -17
- package/dist/bits/utilities/presence-layer/{usePresence.svelte.d.ts → use-presence.svelte.d.ts} +1 -1
- package/dist/bits/utilities/presence-layer/{usePresence.svelte.js → use-presence.svelte.js} +16 -26
- package/dist/bits/utilities/scroll-lock/index.d.ts +10 -0
- package/dist/bits/utilities/scroll-lock/scroll-lock.svelte +3 -3
- package/dist/bits/utilities/scroll-lock/scroll-lock.svelte.d.ts +2 -17
- package/dist/bits/utilities/text-selection-layer/text-selection-layer.svelte +1 -1
- package/dist/bits/utilities/text-selection-layer/text-selection-layer.svelte.d.ts +2 -17
- package/dist/bits/utilities/text-selection-layer/{useTextSelectionLayer.svelte.js → use-text-selection-layer.svelte.js} +13 -15
- package/dist/bits/utilities/visually-hidden/types.d.ts +2 -2
- package/dist/bits/utilities/visually-hidden/visually-hidden.svelte +1 -1
- package/dist/bits/utilities/visually-hidden/visually-hidden.svelte.d.ts +2 -17
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -1
- package/dist/internal/arrays.d.ts +23 -0
- package/dist/internal/arrays.js +35 -0
- package/dist/internal/attrs.d.ts +1 -1
- package/dist/internal/attrs.js +3 -3
- package/dist/internal/{createEventHook.svelte.js → create-event-hook.svelte.js} +1 -1
- package/dist/{shared/date → internal/date-time}/announcer.js +3 -14
- package/dist/{shared/date → internal/date-time}/calendar-helpers.svelte.d.ts +3 -6
- package/dist/{shared/date → internal/date-time}/calendar-helpers.svelte.js +15 -15
- package/dist/{shared/date → internal/date-time}/field/helpers.d.ts +2 -1
- package/dist/{shared/date → internal/date-time}/field/helpers.js +15 -15
- package/dist/{shared/date/field.js → internal/date-time/field/segments.js} +4 -5
- package/dist/{shared/date → internal/date-time}/formatter.d.ts +2 -1
- package/dist/{shared/date → internal/date-time}/formatter.js +3 -2
- package/dist/{shared/date → internal/date-time}/utils.d.ts +1 -1
- package/dist/{shared/date → internal/date-time}/utils.js +0 -12
- package/dist/internal/debounce.js +1 -1
- package/dist/internal/events.d.ts +14 -0
- package/dist/internal/events.js +32 -0
- package/dist/internal/focus.js +1 -1
- package/dist/internal/is.js +0 -1
- package/dist/internal/kbd-constants.d.ts +40 -0
- package/dist/internal/kbd-constants.js +40 -0
- package/dist/internal/kbd.d.ts +1 -77
- package/dist/internal/kbd.js +1 -79
- package/dist/internal/should-trap-focus.d.ts +6 -0
- package/dist/internal/should-trap-focus.js +6 -0
- package/dist/internal/types.d.ts +35 -0
- package/dist/internal/{useBodyScrollLock.svelte.d.ts → use-body-scroll-lock.svelte.d.ts} +2 -1
- package/dist/internal/use-body-scroll-lock.svelte.js +110 -0
- package/dist/internal/use-data-typeahead.svelte.d.ts +12 -0
- package/dist/internal/use-data-typeahead.svelte.js +30 -0
- package/dist/internal/use-dom-typeahead.svelte.d.ts +11 -0
- package/dist/internal/use-dom-typeahead.svelte.js +30 -0
- package/dist/internal/use-grace-area.svelte.d.ts +5 -0
- package/dist/internal/{useGraceArea.svelte.js → use-grace-area.svelte.js} +18 -22
- package/dist/internal/use-id.js +8 -0
- package/dist/internal/{useRovingFocus.svelte.d.ts → use-roving-focus.svelte.d.ts} +1 -1
- package/dist/internal/{useRovingFocus.svelte.js → use-roving-focus.svelte.js} +8 -2
- package/dist/internal/{useSize.svelte.d.ts → use-size.svelte.d.ts} +1 -1
- package/dist/internal/{useSize.svelte.js → use-size.svelte.js} +1 -1
- package/dist/internal/{useStateMachine.svelte.js → use-state-machine.svelte.js} +1 -0
- package/dist/internal/{useTimeoutFn.svelte.js → use-timeout-fn.svelte.js} +1 -2
- package/dist/shared/attributes.d.ts +28 -28
- package/dist/shared/css.d.ts +2 -1
- package/dist/shared/date/types.d.ts +25 -0
- package/dist/shared/index.d.ts +6 -9
- package/dist/shared/index.js +4 -2
- package/dist/shared/types.d.ts +13 -0
- package/dist/types.d.ts +1 -1
- package/package.json +19 -28
- package/dist/bits/listbox/components/listbox-content-static.svelte +0 -69
- package/dist/bits/listbox/components/listbox-content-static.svelte.d.ts +0 -19
- package/dist/bits/listbox/components/listbox-content.svelte +0 -77
- package/dist/bits/listbox/components/listbox-content.svelte.d.ts +0 -19
- package/dist/bits/listbox/components/listbox-group-label.svelte +0 -33
- package/dist/bits/listbox/components/listbox-group-label.svelte.d.ts +0 -19
- package/dist/bits/listbox/components/listbox-group.svelte +0 -33
- package/dist/bits/listbox/components/listbox-group.svelte.d.ts +0 -19
- package/dist/bits/listbox/components/listbox-hidden-input.svelte.d.ts +0 -20
- package/dist/bits/listbox/components/listbox-item.svelte +0 -44
- package/dist/bits/listbox/components/listbox-item.svelte.d.ts +0 -19
- package/dist/bits/listbox/components/listbox-label.svelte +0 -33
- package/dist/bits/listbox/components/listbox-label.svelte.d.ts +0 -18
- package/dist/bits/listbox/components/listbox-scroll-down-button.svelte +0 -40
- package/dist/bits/listbox/components/listbox-scroll-down-button.svelte.d.ts +0 -19
- package/dist/bits/listbox/components/listbox-scroll-up-button.svelte +0 -40
- package/dist/bits/listbox/components/listbox-scroll-up-button.svelte.d.ts +0 -19
- package/dist/bits/listbox/components/listbox-trigger.svelte +0 -36
- package/dist/bits/listbox/components/listbox-trigger.svelte.d.ts +0 -19
- package/dist/bits/listbox/components/listbox-viewport.svelte +0 -55
- package/dist/bits/listbox/components/listbox-viewport.svelte.d.ts +0 -19
- package/dist/bits/listbox/components/listbox.svelte +0 -81
- package/dist/bits/listbox/components/listbox.svelte.d.ts +0 -18
- package/dist/bits/listbox/index.d.ts +0 -13
- package/dist/bits/listbox/index.js +0 -12
- package/dist/bits/listbox/listbox.svelte.d.ts +0 -414
- package/dist/bits/listbox/listbox.svelte.js +0 -1023
- package/dist/bits/listbox/types.d.ts +0 -177
- package/dist/bits/navigation-menu/components/navigation-menu-sub.svelte +0 -48
- package/dist/bits/navigation-menu/components/navigation-menu-sub.svelte.d.ts +0 -18
- package/dist/bits/select/components/select-arrow.svelte +0 -22
- package/dist/bits/select/components/select-arrow.svelte.d.ts +0 -18
- package/dist/bits/select/components/select-content-floating.svelte +0 -73
- package/dist/bits/select/components/select-content-floating.svelte.d.ts +0 -34
- package/dist/bits/select/components/select-content-impl.svelte +0 -90
- package/dist/bits/select/components/select-content-impl.svelte.d.ts +0 -90
- package/dist/bits/select/components/select-content-item-aligned.svelte +0 -38
- package/dist/bits/select/components/select-content-item-aligned.svelte.d.ts +0 -29
- package/dist/bits/select/components/select-icon.svelte +0 -37
- package/dist/bits/select/components/select-icon.svelte.d.ts +0 -19
- package/dist/bits/select/components/select-item-text.svelte +0 -40
- package/dist/bits/select/components/select-item-text.svelte.d.ts +0 -19
- package/dist/bits/select/components/select-native.svelte +0 -36
- package/dist/bits/select/components/select-native.svelte.d.ts +0 -30
- package/dist/bits/select/components/select-provider.svelte +0 -10
- package/dist/bits/select/components/select-provider.svelte.d.ts +0 -23
- package/dist/bits/select/components/select-scroll-down-button-mounted.svelte +0 -33
- package/dist/bits/select/components/select-scroll-down-button-mounted.svelte.d.ts +0 -29
- package/dist/bits/select/components/select-scroll-up-button-mounted.svelte +0 -33
- package/dist/bits/select/components/select-scroll-up-button-mounted.svelte.d.ts +0 -29
- package/dist/bits/select/components/select-separator.svelte +0 -33
- package/dist/bits/select/components/select-separator.svelte.d.ts +0 -19
- package/dist/bits/select/components/select-value.svelte +0 -35
- package/dist/bits/select/components/select-value.svelte.d.ts +0 -19
- package/dist/internal/afterSleep.d.ts +0 -4
- package/dist/internal/afterSleep.js +0 -6
- package/dist/internal/afterTick.d.ts +0 -5
- package/dist/internal/afterTick.js +0 -7
- package/dist/internal/callbacks.d.ts +0 -11
- package/dist/internal/callbacks.js +0 -21
- package/dist/internal/composeHandlers.d.ts +0 -8
- package/dist/internal/composeHandlers.js +0 -21
- package/dist/internal/createContext.d.ts +0 -1
- package/dist/internal/createContext.js +0 -56
- package/dist/internal/cssToStyleObj.d.ts +0 -2
- package/dist/internal/cssToStyleObj.js +0 -23
- package/dist/internal/executeCallbacks.d.ts +0 -7
- package/dist/internal/executeCallbacks.js +0 -15
- package/dist/internal/mergeProps.d.ts +0 -22
- package/dist/internal/mergeProps.js +0 -98
- package/dist/internal/onDestroyEffect.svelte.d.ts +0 -1
- package/dist/internal/onDestroyEffect.svelte.js +0 -7
- package/dist/internal/strings.d.ts +0 -3
- package/dist/internal/strings.js +0 -70
- package/dist/internal/style.d.ts +0 -3
- package/dist/internal/style.js +0 -16
- package/dist/internal/styleToCSS.d.ts +0 -1
- package/dist/internal/styleToCSS.js +0 -23
- package/dist/internal/useBodyScrollLock.svelte.js +0 -88
- package/dist/internal/useGraceArea.svelte.d.ts +0 -5
- package/dist/internal/useId.js +0 -8
- package/dist/internal/useRefById.svelte.d.ts +0 -28
- package/dist/internal/useRefById.svelte.js +0 -27
- package/dist/internal/useTypeahead.svelte.d.ts +0 -34
- package/dist/internal/useTypeahead.svelte.js +0 -64
- package/dist/shared/date/index.d.ts +0 -7
- package/dist/shared/date/index.js +0 -7
- /package/dist/bits/menu/{index.d.ts → exports.d.ts} +0 -0
- /package/dist/bits/menu/{index.js → exports.js} +0 -0
- /package/dist/bits/utilities/dismissible-layer/{useDismissibleLayer.svelte.d.ts → use-dismissable-layer.svelte.d.ts} +0 -0
- /package/dist/bits/utilities/escape-layer/{useEscapeLayer.svelte.d.ts → use-escape-layer.svelte.d.ts} +0 -0
- /package/dist/bits/utilities/text-selection-layer/{useTextSelectionLayer.svelte.d.ts → use-text-selection-layer.svelte.d.ts} +0 -0
- /package/dist/internal/{boxAutoReset.svelte.d.ts → box-auto-reset.svelte.d.ts} +0 -0
- /package/dist/internal/{boxAutoReset.svelte.js → box-auto-reset.svelte.js} +0 -0
- /package/dist/internal/{createEventHook.svelte.d.ts → create-event-hook.svelte.d.ts} +0 -0
- /package/dist/internal/{createSharedHook.svelte.d.ts → create-shared-hook.svelte.d.ts} +0 -0
- /package/dist/internal/{createSharedHook.svelte.js → create-shared-hook.svelte.js} +0 -0
- /package/dist/{shared/date → internal/date-time}/announcer.d.ts +0 -0
- /package/dist/{shared/date → internal/date-time}/field/parts.d.ts +0 -0
- /package/dist/{shared/date → internal/date-time}/field/parts.js +0 -0
- /package/dist/{shared/date/field.d.ts → internal/date-time/field/segments.d.ts} +0 -0
- /package/dist/{shared/date → internal/date-time}/field/types.d.ts +0 -0
- /package/dist/{bits/listbox → internal/date-time/field}/types.js +0 -0
- /package/dist/{shared/date → internal/date-time}/placeholders.d.ts +0 -0
- /package/dist/{shared/date → internal/date-time}/placeholders.js +0 -0
- /package/dist/internal/floating-svelte/{useFloating.svelte.d.ts → use-floating.svelte.d.ts} +0 -0
- /package/dist/internal/floating-svelte/{useFloating.svelte.js → use-floating.svelte.js} +0 -0
- /package/dist/internal/{getDirectionalKeys.d.ts → get-directional-keys.d.ts} +0 -0
- /package/dist/internal/{getDirectionalKeys.js → get-directional-keys.js} +0 -0
- /package/dist/internal/{useArrowNavigation.d.ts → use-arrow-navigation.d.ts} +0 -0
- /package/dist/internal/{useArrowNavigation.js → use-arrow-navigation.js} +0 -0
- /package/dist/internal/{useFormControl.svelte.d.ts → use-form-control.svelte.d.ts} +0 -0
- /package/dist/internal/{useFormControl.svelte.js → use-form-control.svelte.js} +0 -0
- /package/dist/internal/{useId.d.ts → use-id.d.ts} +0 -0
- /package/dist/internal/{useResizeObserver.svelte.d.ts → use-resize-observer.svelte.d.ts} +0 -0
- /package/dist/internal/{useResizeObserver.svelte.js → use-resize-observer.svelte.js} +0 -0
- /package/dist/internal/{useStateMachine.svelte.d.ts → use-state-machine.svelte.d.ts} +0 -0
- /package/dist/internal/{useTimeoutFn.svelte.d.ts → use-timeout-fn.svelte.d.ts} +0 -0
- /package/dist/shared/{date/field/types.js → types.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useRefById } from "
|
|
1
|
+
import { useRefById } from "svelte-toolbelt";
|
|
2
|
+
import { Context } from "runed";
|
|
2
3
|
import { getDataOrientation } from "../../internal/attrs.js";
|
|
3
4
|
import { getElemDirection } from "../../internal/locale.js";
|
|
4
5
|
import { kbd } from "../../internal/kbd.js";
|
|
5
|
-
import { getDirectionalKeys } from "../../internal/
|
|
6
|
+
import { getDirectionalKeys } from "../../internal/get-directional-keys.js";
|
|
6
7
|
import { useId } from "../../shared/index.js";
|
|
7
|
-
import { createContext } from "../../internal/createContext.js";
|
|
8
8
|
const ROOT_ATTR = "data-pagination-root";
|
|
9
9
|
const PAGE_ATTR = "data-pagination-page";
|
|
10
10
|
const PREV_ATTR = "data-pagination-prev";
|
|
@@ -18,7 +18,11 @@ class PaginationRootState {
|
|
|
18
18
|
siblingCount;
|
|
19
19
|
page;
|
|
20
20
|
loop;
|
|
21
|
-
totalPages = $derived.by(() =>
|
|
21
|
+
totalPages = $derived.by(() => {
|
|
22
|
+
if (this.count.current === 0)
|
|
23
|
+
return 1;
|
|
24
|
+
return Math.ceil(this.count.current / this.perPage.current);
|
|
25
|
+
});
|
|
22
26
|
range = $derived.by(() => {
|
|
23
27
|
const start = (this.page.current - 1) * this.perPage.current;
|
|
24
28
|
const end = Math.min(start + this.perPage.current, this.count.current);
|
|
@@ -43,36 +47,33 @@ class PaginationRootState {
|
|
|
43
47
|
ref: this.ref,
|
|
44
48
|
});
|
|
45
49
|
}
|
|
46
|
-
setPage
|
|
50
|
+
setPage(page) {
|
|
47
51
|
this.page.current = page;
|
|
48
|
-
}
|
|
49
|
-
getPageTriggerNodes
|
|
52
|
+
}
|
|
53
|
+
getPageTriggerNodes() {
|
|
50
54
|
const node = this.ref.current;
|
|
51
55
|
if (!node)
|
|
52
56
|
return [];
|
|
53
57
|
return Array.from(node.querySelectorAll("[data-pagination-page]"));
|
|
54
|
-
}
|
|
55
|
-
getButtonNode
|
|
58
|
+
}
|
|
59
|
+
getButtonNode(type) {
|
|
56
60
|
const node = this.ref.current;
|
|
57
61
|
if (!node)
|
|
58
62
|
return;
|
|
59
63
|
return node.querySelector(`[data-pagination-${type}]`);
|
|
60
|
-
}
|
|
61
|
-
|
|
64
|
+
}
|
|
65
|
+
hasPrevPage = $derived.by(() => this.page.current > 1);
|
|
66
|
+
hasNextPage = $derived.by(() => this.page.current < this.totalPages);
|
|
67
|
+
prevPage() {
|
|
62
68
|
this.page.current = Math.max(this.page.current - 1, 1);
|
|
63
|
-
}
|
|
64
|
-
nextPage
|
|
69
|
+
}
|
|
70
|
+
nextPage() {
|
|
65
71
|
this.page.current = Math.min(this.page.current + 1, this.totalPages);
|
|
66
|
-
}
|
|
67
|
-
createPage = (props) => {
|
|
68
|
-
return new PaginationPage(props, this);
|
|
69
|
-
};
|
|
70
|
-
createButton = (props) => {
|
|
71
|
-
return new PaginationButtonState(props, this);
|
|
72
|
-
};
|
|
72
|
+
}
|
|
73
73
|
snippetProps = $derived.by(() => ({
|
|
74
74
|
pages: this.pages,
|
|
75
75
|
range: this.range,
|
|
76
|
+
currentPage: this.page.current,
|
|
76
77
|
}));
|
|
77
78
|
props = $derived.by(() => ({
|
|
78
79
|
id: this.id.current,
|
|
@@ -80,10 +81,11 @@ class PaginationRootState {
|
|
|
80
81
|
[ROOT_ATTR]: "",
|
|
81
82
|
}));
|
|
82
83
|
}
|
|
83
|
-
class
|
|
84
|
+
class PaginationPageState {
|
|
84
85
|
#id;
|
|
85
86
|
#ref;
|
|
86
87
|
#root;
|
|
88
|
+
#disabled;
|
|
87
89
|
page;
|
|
88
90
|
#isSelected = $derived.by(() => this.page.current.value === this.#root.page.current);
|
|
89
91
|
constructor(props, root) {
|
|
@@ -91,31 +93,45 @@ class PaginationPage {
|
|
|
91
93
|
this.#id = props.id;
|
|
92
94
|
this.page = props.page;
|
|
93
95
|
this.#ref = props.ref;
|
|
96
|
+
this.#disabled = props.disabled;
|
|
94
97
|
useRefById({
|
|
95
98
|
id: this.#id,
|
|
96
99
|
ref: this.#ref,
|
|
97
100
|
});
|
|
101
|
+
this.onclick = this.onclick.bind(this);
|
|
102
|
+
this.onkeydown = this.onkeydown.bind(this);
|
|
98
103
|
}
|
|
99
|
-
|
|
104
|
+
onclick(e) {
|
|
105
|
+
if (this.#disabled.current)
|
|
106
|
+
return;
|
|
107
|
+
if (e.button !== 0)
|
|
108
|
+
return;
|
|
100
109
|
this.#root.setPage(this.page.current.value);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
110
|
+
}
|
|
111
|
+
onkeydown(e) {
|
|
112
|
+
if (e.key === kbd.SPACE || e.key === kbd.ENTER) {
|
|
113
|
+
e.preventDefault();
|
|
114
|
+
this.#root.setPage(this.page.current.value);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
handleTriggerKeydown(e, this.#ref.current, this.#root);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
105
120
|
props = $derived.by(() => ({
|
|
106
121
|
id: this.#id.current,
|
|
107
|
-
"aria-label": `Page ${this.page.current}`,
|
|
122
|
+
"aria-label": `Page ${this.page.current.value}`,
|
|
108
123
|
"data-value": `${this.page.current.value}`,
|
|
109
124
|
"data-selected": this.#isSelected ? "" : undefined,
|
|
110
125
|
[PAGE_ATTR]: "",
|
|
111
126
|
//
|
|
112
|
-
onclick: this
|
|
113
|
-
onkeydown: this
|
|
127
|
+
onclick: this.onclick,
|
|
128
|
+
onkeydown: this.onkeydown,
|
|
114
129
|
}));
|
|
115
130
|
}
|
|
116
131
|
class PaginationButtonState {
|
|
117
132
|
id;
|
|
118
133
|
#ref;
|
|
134
|
+
#disabled;
|
|
119
135
|
#root;
|
|
120
136
|
type = $state();
|
|
121
137
|
constructor(props, root) {
|
|
@@ -123,24 +139,50 @@ class PaginationButtonState {
|
|
|
123
139
|
this.id = props.id;
|
|
124
140
|
this.type = props.type;
|
|
125
141
|
this.#ref = props.ref;
|
|
142
|
+
this.#disabled = props.disabled;
|
|
126
143
|
useRefById({
|
|
127
144
|
id: this.id,
|
|
128
145
|
ref: this.#ref,
|
|
129
146
|
});
|
|
147
|
+
this.onclick = this.onclick.bind(this);
|
|
148
|
+
this.onkeydown = this.onkeydown.bind(this);
|
|
130
149
|
}
|
|
131
|
-
#
|
|
150
|
+
#action() {
|
|
132
151
|
this.type === "prev" ? this.#root.prevPage() : this.#root.nextPage();
|
|
133
|
-
}
|
|
134
|
-
#
|
|
135
|
-
|
|
136
|
-
|
|
152
|
+
}
|
|
153
|
+
#isDisabled = $derived.by(() => {
|
|
154
|
+
if (this.#disabled.current)
|
|
155
|
+
return true;
|
|
156
|
+
if (this.type === "prev")
|
|
157
|
+
return !this.#root.hasPrevPage;
|
|
158
|
+
if (this.type === "next")
|
|
159
|
+
return !this.#root.hasNextPage;
|
|
160
|
+
return false;
|
|
161
|
+
});
|
|
162
|
+
onclick(e) {
|
|
163
|
+
if (this.#disabled.current)
|
|
164
|
+
return;
|
|
165
|
+
if (e.button !== 0)
|
|
166
|
+
return;
|
|
167
|
+
this.#action();
|
|
168
|
+
}
|
|
169
|
+
onkeydown(e) {
|
|
170
|
+
if (e.key === kbd.SPACE || e.key === kbd.ENTER) {
|
|
171
|
+
e.preventDefault();
|
|
172
|
+
this.#action();
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
handleTriggerKeydown(e, this.#ref.current, this.#root);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
137
178
|
props = $derived.by(() => ({
|
|
138
179
|
id: this.id.current,
|
|
139
180
|
[PREV_ATTR]: this.type === "prev" ? "" : undefined,
|
|
140
181
|
[NEXT_ATTR]: this.type === "next" ? "" : undefined,
|
|
182
|
+
disabled: this.#isDisabled,
|
|
141
183
|
//
|
|
142
|
-
onclick: this
|
|
143
|
-
onkeydown: this
|
|
184
|
+
onclick: this.onclick,
|
|
185
|
+
onkeydown: this.onkeydown,
|
|
144
186
|
}));
|
|
145
187
|
}
|
|
146
188
|
//
|
|
@@ -240,16 +282,13 @@ function getPageItems({ page = 1, totalPages, siblingCount = 1 }) {
|
|
|
240
282
|
}
|
|
241
283
|
return pageItems;
|
|
242
284
|
}
|
|
243
|
-
|
|
244
|
-
// CONTEXT METHODS
|
|
245
|
-
//
|
|
246
|
-
const [setPaginationRootContext, getPaginationRootContext] = createContext("Pagination.Root");
|
|
285
|
+
const PaginationRootContext = new Context("Pagination.Root");
|
|
247
286
|
export function usePaginationRoot(props) {
|
|
248
|
-
return
|
|
287
|
+
return PaginationRootContext.set(new PaginationRootState(props));
|
|
249
288
|
}
|
|
250
289
|
export function usePaginationPage(props) {
|
|
251
|
-
return
|
|
290
|
+
return new PaginationPageState(props, PaginationRootContext.get());
|
|
252
291
|
}
|
|
253
292
|
export function usePaginationButton(props) {
|
|
254
|
-
return
|
|
293
|
+
return new PaginationButtonState(props, PaginationRootContext.get());
|
|
255
294
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { OnChangeFn, WithChild, Without } from "../../internal/types.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { BitsPrimitiveButtonAttributes, BitsPrimitiveDivAttributes } from "../../shared/attributes.js";
|
|
3
3
|
type PaginationSnippetProps = {
|
|
4
4
|
pages: PageItem[];
|
|
5
5
|
range: {
|
|
6
6
|
start: number;
|
|
7
7
|
end: number;
|
|
8
8
|
};
|
|
9
|
+
currentPage: number;
|
|
9
10
|
};
|
|
10
11
|
export type PaginationRootPropsWithoutHTML = WithChild<{
|
|
11
12
|
/**
|
|
@@ -49,24 +50,16 @@ export type PaginationRootPropsWithoutHTML = WithChild<{
|
|
|
49
50
|
* @defaultValue "horizontal"
|
|
50
51
|
*/
|
|
51
52
|
orientation?: "horizontal" | "vertical";
|
|
52
|
-
/**
|
|
53
|
-
* Whether or not the page state is controlled or not. If `true`, the component will not update
|
|
54
|
-
* the page state internally, instead it will call `onPageChange` when it would have
|
|
55
|
-
* otherwise, and it is up to you to update the `page` prop that is passed to the component.
|
|
56
|
-
*
|
|
57
|
-
* @defaultValue false
|
|
58
|
-
*/
|
|
59
|
-
controlledPage?: boolean;
|
|
60
53
|
}, PaginationSnippetProps>;
|
|
61
|
-
export type PaginationRootProps = PaginationRootPropsWithoutHTML & Without<
|
|
54
|
+
export type PaginationRootProps = PaginationRootPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, PaginationRootPropsWithoutHTML>;
|
|
62
55
|
export type PaginationPagePropsWithoutHTML = WithChild<{
|
|
63
56
|
page: Page;
|
|
64
57
|
}>;
|
|
65
|
-
export type PaginationPageProps = PaginationPagePropsWithoutHTML & Without<
|
|
58
|
+
export type PaginationPageProps = PaginationPagePropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, PaginationPagePropsWithoutHTML>;
|
|
66
59
|
export type PaginationPrevButtonPropsWithoutHTML = WithChild;
|
|
67
|
-
export type PaginationPrevButtonProps = PaginationPrevButtonPropsWithoutHTML & Without<
|
|
60
|
+
export type PaginationPrevButtonProps = PaginationPrevButtonPropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, PaginationPrevButtonPropsWithoutHTML>;
|
|
68
61
|
export type PaginationNextButtonPropsWithoutHTML = WithChild;
|
|
69
|
-
export type PaginationNextButtonProps = PaginationNextButtonPropsWithoutHTML & Without<
|
|
62
|
+
export type PaginationNextButtonProps = PaginationNextButtonPropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, PaginationNextButtonPropsWithoutHTML>;
|
|
70
63
|
export type Page = {
|
|
71
64
|
type: "page";
|
|
72
65
|
value: number;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
3
|
-
import type {
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
|
+
import type { PinInputCellProps } from "../types.js";
|
|
4
4
|
import { usePinInputCell } from "../pin-input.svelte.js";
|
|
5
|
-
import { useId } from "../../../internal/
|
|
6
|
-
import { mergeProps } from "../../../internal/mergeProps.js";
|
|
5
|
+
import { useId } from "../../../internal/use-id.js";
|
|
7
6
|
|
|
8
7
|
let {
|
|
9
8
|
id = useId(),
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
child,
|
|
13
12
|
children,
|
|
14
13
|
...restProps
|
|
15
|
-
}:
|
|
14
|
+
}: PinInputCellProps = $props();
|
|
16
15
|
|
|
17
16
|
const cellState = usePinInputCell({
|
|
18
17
|
id: box.with(() => id),
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
$$bindings?: Bindings;
|
|
5
|
-
} & Exports;
|
|
6
|
-
(internal: unknown, props: Props & {
|
|
7
|
-
$$events?: Events;
|
|
8
|
-
$$slots?: Slots;
|
|
9
|
-
}): Exports & {
|
|
10
|
-
$set?: any;
|
|
11
|
-
$on?: any;
|
|
12
|
-
};
|
|
13
|
-
z_$$bindings?: Bindings;
|
|
14
|
-
}
|
|
15
|
-
declare const PinInputCell: $$__sveltets_2_IsomorphicComponent<CellProps, {
|
|
16
|
-
[evt: string]: CustomEvent<any>;
|
|
17
|
-
}, {}, {}, "ref">;
|
|
18
|
-
type PinInputCell = InstanceType<typeof PinInputCell>;
|
|
1
|
+
import type { PinInputCellProps } from "../types.js";
|
|
2
|
+
declare const PinInputCell: import("svelte").Component<PinInputCellProps, {}, "ref">;
|
|
3
|
+
type PinInputCell = ReturnType<typeof PinInputCell>;
|
|
19
4
|
export default PinInputCell;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
3
|
-
import type {
|
|
4
|
-
import {
|
|
5
|
-
import { useId } from "../../../internal/
|
|
6
|
-
import { noop } from "../../../internal/
|
|
7
|
-
import { mergeProps } from "../../../internal/mergeProps.js";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
|
+
import type { PinInputRootProps } from "../types.js";
|
|
4
|
+
import { usePinInput } from "../pin-input.svelte.js";
|
|
5
|
+
import { useId } from "../../../internal/use-id.js";
|
|
6
|
+
import { noop } from "../../../internal/noop.js";
|
|
8
7
|
|
|
9
8
|
let {
|
|
10
9
|
id = useId(),
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
ref = $bindable(null),
|
|
13
12
|
maxlength = 6,
|
|
14
13
|
textalign = "left",
|
|
15
|
-
pattern
|
|
14
|
+
pattern,
|
|
16
15
|
inputmode = "numeric",
|
|
17
16
|
onComplete = noop,
|
|
18
17
|
pushPasswordManagerStrategy = "increase-width",
|
|
@@ -22,10 +21,9 @@
|
|
|
22
21
|
disabled = false,
|
|
23
22
|
value = $bindable(""),
|
|
24
23
|
onValueChange = noop,
|
|
25
|
-
controlledValue = false,
|
|
26
24
|
onPaste,
|
|
27
25
|
...restProps
|
|
28
|
-
}:
|
|
26
|
+
}: PinInputRootProps = $props();
|
|
29
27
|
|
|
30
28
|
const rootState = usePinInput({
|
|
31
29
|
id: box.with(() => id),
|
|
@@ -44,12 +42,8 @@
|
|
|
44
42
|
value: box.with(
|
|
45
43
|
() => value,
|
|
46
44
|
(v) => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} else {
|
|
50
|
-
value = v;
|
|
51
|
-
onValueChange(v);
|
|
52
|
-
}
|
|
45
|
+
value = v;
|
|
46
|
+
onValueChange(v);
|
|
53
47
|
}
|
|
54
48
|
),
|
|
55
49
|
pushPasswordManagerStrategy: box.with(() => pushPasswordManagerStrategy),
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
$$bindings?: Bindings;
|
|
5
|
-
} & Exports;
|
|
6
|
-
(internal: unknown, props: Props & {
|
|
7
|
-
$$events?: Events;
|
|
8
|
-
$$slots?: Slots;
|
|
9
|
-
}): Exports & {
|
|
10
|
-
$set?: any;
|
|
11
|
-
$on?: any;
|
|
12
|
-
};
|
|
13
|
-
z_$$bindings?: Bindings;
|
|
14
|
-
}
|
|
15
|
-
declare const PinInput: $$__sveltets_2_IsomorphicComponent<RootProps, {
|
|
16
|
-
[evt: string]: CustomEvent<any>;
|
|
17
|
-
}, {}, {}, "value" | "ref">;
|
|
18
|
-
type PinInput = InstanceType<typeof PinInput>;
|
|
1
|
+
import type { PinInputRootProps } from "../types.js";
|
|
2
|
+
declare const PinInput: import("svelte").Component<PinInputRootProps, {}, "value" | "ref">;
|
|
3
|
+
type PinInput = ReturnType<typeof PinInput>;
|
|
19
4
|
export default PinInput;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { default as Cell } from "./components/pin-input-cell.svelte";
|
|
3
|
-
export type { PinInputRootProps as RootProps, PinInputCellProps as CellProps } from "./types.js";
|
|
1
|
+
export * as PinInput from "./exports.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { default as Cell } from "./components/pin-input-cell.svelte";
|
|
1
|
+
export * as PinInput from "./exports.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PinInputCell, PinInputRootProps as RootComponentProps } from "./types.js";
|
|
2
2
|
import type { ReadableBoxedValues, WritableBoxedValues } from "../../internal/box.svelte.js";
|
|
3
|
-
import type { WithRefProps } from "../../internal/types.js";
|
|
3
|
+
import type { BitsEvent, BitsFocusEvent, BitsKeyboardEvent, BitsMouseEvent, WithRefProps } from "../../internal/types.js";
|
|
4
4
|
export declare const REGEXP_ONLY_DIGITS = "^\\d+$";
|
|
5
5
|
export declare const REGEXP_ONLY_CHARS = "^[a-zA-Z]+$";
|
|
6
6
|
export declare const REGEXP_ONLY_DIGITS_AND_CHARS = "^[a-zA-Z0-9]+$";
|
|
@@ -22,6 +22,8 @@ declare class PinInputRootState {
|
|
|
22
22
|
#private;
|
|
23
23
|
value: PinInputRootStateProps["value"];
|
|
24
24
|
constructor(props: PinInputRootStateProps);
|
|
25
|
+
keysToIgnore: string[];
|
|
26
|
+
onkeydown(e: BitsKeyboardEvent): void;
|
|
25
27
|
rootProps: {
|
|
26
28
|
readonly id: string;
|
|
27
29
|
readonly "data-pin-input-root": "";
|
|
@@ -40,7 +42,12 @@ declare class PinInputRootState {
|
|
|
40
42
|
readonly pointerEvents: "none";
|
|
41
43
|
};
|
|
42
44
|
};
|
|
43
|
-
|
|
45
|
+
oninput(e: BitsEvent<Event, HTMLInputElement>): void;
|
|
46
|
+
onfocus: (_: BitsFocusEvent<HTMLInputElement>) => void;
|
|
47
|
+
onpaste: (e: BitsEvent<ClipboardEvent>) => void;
|
|
48
|
+
onmouseover: (_: BitsMouseEvent) => void;
|
|
49
|
+
onmouseleave: (_: BitsMouseEvent) => void;
|
|
50
|
+
onblur: (_: BitsFocusEvent) => void;
|
|
44
51
|
inputProps: {
|
|
45
52
|
id: string;
|
|
46
53
|
style: {
|
|
@@ -50,7 +57,7 @@ declare class PinInputRootState {
|
|
|
50
57
|
clipPath: string | undefined;
|
|
51
58
|
height: string;
|
|
52
59
|
display: string;
|
|
53
|
-
textAlign: "
|
|
60
|
+
textAlign: "left" | "center" | "right" | undefined;
|
|
54
61
|
opacity: string;
|
|
55
62
|
color: string;
|
|
56
63
|
pointerEvents: string;
|
|
@@ -65,27 +72,22 @@ declare class PinInputRootState {
|
|
|
65
72
|
fontFamily: string;
|
|
66
73
|
fontVariantNumeric: string;
|
|
67
74
|
};
|
|
68
|
-
autocomplete: "on" | "name" | "off" | "tel" | "url" | "email" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national" | "home tel" | "home email" | "home tel-area-code" | "home tel-country-code" | "home tel-extension" | "home tel-local" | "home tel-local-prefix" | "home tel-local-suffix" | "home tel-national" | "mobile tel" | "mobile email" | "mobile tel-area-code" | "mobile tel-country-code" | "mobile tel-extension" | "mobile tel-local" | "mobile tel-local-prefix" | "mobile tel-local-suffix" | "mobile tel-national" | "work tel" | "work email" | "work tel-area-code" | "work tel-country-code" | "work tel-extension" | "work tel-local" | "work tel-local-prefix" | "work tel-local-suffix" | "work tel-national" | "name webauthn" | "additional-name webauthn" | "address-level1 webauthn" | "address-level2 webauthn" | "address-level3 webauthn" | "address-level4 webauthn" | "address-line1 webauthn" | "address-line2 webauthn" | "address-line3 webauthn" | "bday-day webauthn" | "bday-month webauthn" | "bday-year webauthn" | "cc-csc webauthn" | "cc-exp webauthn" | "cc-exp-month webauthn" | "cc-exp-year webauthn" | "cc-family-name webauthn" | "cc-given-name webauthn" | "cc-name webauthn" | "cc-number webauthn" | "cc-type webauthn" | "country webauthn" | "country-name webauthn" | "current-password webauthn" | "family-name webauthn" | "given-name webauthn" | "honorific-prefix webauthn" | "honorific-suffix webauthn" | "new-password webauthn" | "one-time-code webauthn" | "organization webauthn" | "postal-code webauthn" | "street-address webauthn" | "transaction-amount webauthn" | "transaction-currency webauthn" | "username webauthn" | "tel webauthn" | "email webauthn" | "tel-area-code webauthn" | "tel-country-code webauthn" | "tel-extension webauthn" | "tel-local webauthn" | "tel-local-prefix webauthn" | "tel-local-suffix webauthn" | "tel-national webauthn" | "home tel webauthn" | "home email webauthn" | "home tel-area-code webauthn" | "home tel-country-code webauthn" | "home tel-extension webauthn" | "home tel-local webauthn" | "home tel-local-prefix webauthn" | "home tel-local-suffix webauthn" | "home tel-national webauthn" | "mobile tel webauthn" | "mobile email webauthn" | "mobile tel-area-code webauthn" | "mobile tel-country-code webauthn" | "mobile tel-extension webauthn" | "mobile tel-local webauthn" | "mobile tel-local-prefix webauthn" | "mobile tel-local-suffix webauthn" | "mobile tel-national webauthn" | "work tel webauthn" | "work email webauthn" | "work tel-area-code webauthn" | "work tel-country-code webauthn" | "work tel-extension webauthn" | "work tel-local webauthn" | "work tel-local-prefix webauthn" | "work tel-local-suffix webauthn" | "work tel-national webauthn" | "billing name" | "billing name webauthn" | "billing additional-name" | "billing additional-name webauthn" | "billing address-level1" | "billing address-level1 webauthn" | "billing address-level2" | "billing address-level2 webauthn" | "billing address-level3" | "billing address-level3 webauthn" | "billing address-level4" | "billing address-level4 webauthn" | "billing address-line1" | "billing address-line1 webauthn" | "billing address-line2" | "billing address-line2 webauthn" | "billing address-line3" | "billing address-line3 webauthn" | "billing bday-day" | "billing bday-day webauthn" | "billing bday-month" | "billing bday-month webauthn" | "billing bday-year" | "billing bday-year webauthn" | "billing cc-csc" | "billing cc-csc webauthn" | "billing cc-exp" | "billing cc-exp webauthn" | "billing cc-exp-month" | "billing cc-exp-month webauthn" | "billing cc-exp-year" | "billing cc-exp-year webauthn" | "billing cc-family-name" | "billing cc-family-name webauthn" | "billing cc-given-name" | "billing cc-given-name webauthn" | "billing cc-name" | "billing cc-name webauthn" | "billing cc-number" | "billing cc-number webauthn" | "billing cc-type" | "billing cc-type webauthn" | "billing country" | "billing country webauthn" | "billing country-name" | "billing country-name webauthn" | "billing current-password" | "billing current-password webauthn" | "billing family-name" | "billing family-name webauthn" | "billing given-name" | "billing given-name webauthn" | "billing honorific-prefix" | "billing honorific-prefix webauthn" | "billing honorific-suffix" | "billing honorific-suffix webauthn" | "billing new-password" | "billing new-password webauthn" | "billing one-time-code" | "billing one-time-code webauthn" | "billing organization" | "billing organization webauthn" | "billing postal-code" | "billing postal-code webauthn" | "billing street-address" | "billing street-address webauthn" | "billing transaction-amount" | "billing transaction-amount webauthn" | "billing transaction-currency" | "billing transaction-currency webauthn" | "billing username" | "billing username webauthn" | "billing tel" | "billing tel webauthn" | "billing email" | "billing email webauthn" | "billing tel-area-code" | "billing tel-area-code webauthn" | "billing tel-country-code" | "billing tel-country-code webauthn" | "billing tel-extension" | "billing tel-extension webauthn" | "billing tel-local" | "billing tel-local webauthn" | "billing tel-local-prefix" | "billing tel-local-prefix webauthn" | "billing tel-local-suffix" | "billing tel-local-suffix webauthn" | "billing tel-national" | "billing tel-national webauthn" | "billing home tel" | "billing home tel webauthn" | "billing home email" | "billing home email webauthn" | "billing home tel-area-code" | "billing home tel-area-code webauthn" | "billing home tel-country-code" | "billing home tel-country-code webauthn" | "billing home tel-extension" | "billing home tel-extension webauthn" | "billing home tel-local" | "billing home tel-local webauthn" | "billing home tel-local-prefix" | "billing home tel-local-prefix webauthn" | "billing home tel-local-suffix" | "billing home tel-local-suffix webauthn" | "billing home tel-national" | "billing home tel-national webauthn" | "billing mobile tel" | "billing mobile tel webauthn" | "billing mobile email" | "billing mobile email webauthn" | "billing mobile tel-area-code" | "billing mobile tel-area-code webauthn" | "billing mobile tel-country-code" | "billing mobile tel-country-code webauthn" | "billing mobile tel-extension" | "billing mobile tel-extension webauthn" | "billing mobile tel-local" | "billing mobile tel-local webauthn" | "billing mobile tel-local-prefix" | "billing mobile tel-local-prefix webauthn" | "billing mobile tel-local-suffix" | "billing mobile tel-local-suffix webauthn" | "billing mobile tel-national" | "billing mobile tel-national webauthn" | "billing work tel" | "billing work tel webauthn" | "billing work email" | "billing work email webauthn" | "billing work tel-area-code" | "billing work tel-area-code webauthn" | "billing work tel-country-code" | "billing work tel-country-code webauthn" | "billing work tel-extension" | "billing work tel-extension webauthn" | "billing work tel-local" | "billing work tel-local webauthn" | "billing work tel-local-prefix" | "billing work tel-local-prefix webauthn" | "billing work tel-local-suffix" | "billing work tel-local-suffix webauthn" | "billing work tel-national" | "billing work tel-national webauthn" | "shipping name" | "shipping name webauthn" | "shipping additional-name" | "shipping additional-name webauthn" | "shipping address-level1" | "shipping address-level1 webauthn" | "shipping address-level2" | "shipping address-level2 webauthn" | "shipping address-level3" | "shipping address-level3 webauthn" | "shipping address-level4" | "shipping address-level4 webauthn" | "shipping address-line1" | "shipping address-line1 webauthn" | "shipping address-line2" | "shipping address-line2 webauthn" | "shipping address-line3" | "shipping address-line3 webauthn" | "shipping bday-day" | "shipping bday-day webauthn" | "shipping bday-month" | "shipping bday-month webauthn" | "shipping bday-year" | "shipping bday-year webauthn" | "shipping cc-csc" | "shipping cc-csc webauthn" | "shipping cc-exp" | "shipping cc-exp webauthn" | "shipping cc-exp-month" | "shipping cc-exp-month webauthn" | "shipping cc-exp-year" | "shipping cc-exp-year webauthn" | "shipping cc-family-name" | "shipping cc-family-name webauthn" | "shipping cc-given-name" | "shipping cc-given-name webauthn" | "shipping cc-name" | "shipping cc-name webauthn" | "shipping cc-number" | "shipping cc-number webauthn" | "shipping cc-type" | "shipping cc-type webauthn" | "shipping country" | "shipping country webauthn" | "shipping country-name" | "shipping country-name webauthn" | "shipping current-password" | "shipping current-password webauthn" | "shipping family-name" | "shipping family-name webauthn" | "shipping given-name" | "shipping given-name webauthn" | "shipping honorific-prefix" | "shipping honorific-prefix webauthn" | "shipping honorific-suffix" | "shipping honorific-suffix webauthn" | "shipping new-password" | "shipping new-password webauthn" | "shipping one-time-code" | "shipping one-time-code webauthn" | "shipping organization" | "shipping organization webauthn" | "shipping postal-code" | "shipping postal-code webauthn" | "shipping street-address" | "shipping street-address webauthn" | "shipping transaction-amount" | "shipping transaction-amount webauthn" | "shipping transaction-currency" | "shipping transaction-currency webauthn" | "shipping username" | "shipping username webauthn" | "shipping tel" | "shipping tel webauthn" | "shipping email" | "shipping email webauthn" | "shipping tel-area-code" | "shipping tel-area-code webauthn" | "shipping tel-country-code" | "shipping tel-country-code webauthn" | "shipping tel-extension" | "shipping tel-extension webauthn" | "shipping tel-local" | "shipping tel-local webauthn" | "shipping tel-local-prefix" | "shipping tel-local-prefix webauthn" | "shipping tel-local-suffix" | "shipping tel-local-suffix webauthn" | "shipping tel-national" | "shipping tel-national webauthn" | "shipping home tel" | "shipping home tel webauthn" | "shipping home email" | "shipping home email webauthn" | "shipping home tel-area-code" | "shipping home tel-area-code webauthn" | "shipping home tel-country-code" | "shipping home tel-country-code webauthn" | "shipping home tel-extension" | "shipping home tel-extension webauthn" | "shipping home tel-local" | "shipping home tel-local webauthn" | "shipping home tel-local-prefix" | "shipping home tel-local-prefix webauthn" | "shipping home tel-local-suffix" | "shipping home tel-local-suffix webauthn" | "shipping home tel-national" | "shipping home tel-national webauthn" | "shipping mobile tel" | "shipping mobile tel webauthn" | "shipping mobile email" | "shipping mobile email webauthn" | "shipping mobile tel-area-code" | "shipping mobile tel-area-code webauthn" | "shipping mobile tel-country-code" | "shipping mobile tel-country-code webauthn" | "shipping mobile tel-extension" | "shipping mobile tel-extension webauthn" | "shipping mobile tel-local" | "shipping mobile tel-local webauthn" | "shipping mobile tel-local-prefix" | "shipping mobile tel-local-prefix webauthn" | "shipping mobile tel-local-suffix" | "shipping mobile tel-local-suffix webauthn" | "shipping mobile tel-national" | "shipping mobile tel-national webauthn" | "shipping work tel" | "shipping work tel webauthn" | "shipping work email" | "shipping work email webauthn" | "shipping work tel-area-code" | "shipping work tel-area-code webauthn" | "shipping work tel-country-code" | "shipping work tel-country-code webauthn" | "shipping work tel-extension" | "shipping work tel-extension webauthn" | "shipping work tel-local" | "shipping work tel-local webauthn" | "shipping work tel-local-prefix" | "shipping work tel-local-prefix webauthn" | "shipping work tel-local-suffix" | "shipping work tel-local-suffix webauthn" | "shipping work tel-national" | "shipping work tel-national webauthn" | `section-${string} name` | `section-${string} name webauthn` | `section-${string} additional-name` | `section-${string} additional-name webauthn` | `section-${string} address-level1` | `section-${string} address-level1 webauthn` | `section-${string} address-level2` | `section-${string} address-level2 webauthn` | `section-${string} address-level3` | `section-${string} address-level3 webauthn` | `section-${string} address-level4` | `section-${string} address-level4 webauthn` | `section-${string} address-line1` | `section-${string} address-line1 webauthn` | `section-${string} address-line2` | `section-${string} address-line2 webauthn` | `section-${string} address-line3` | `section-${string} address-line3 webauthn` | `section-${string} bday-day` | `section-${string} bday-day webauthn` | `section-${string} bday-month` | `section-${string} bday-month webauthn` | `section-${string} bday-year` | `section-${string} bday-year webauthn` | `section-${string} cc-csc` | `section-${string} cc-csc webauthn` | `section-${string} cc-exp` | `section-${string} cc-exp webauthn` | `section-${string} cc-exp-month` | `section-${string} cc-exp-month webauthn` | `section-${string} cc-exp-year` | `section-${string} cc-exp-year webauthn` | `section-${string} cc-family-name` | `section-${string} cc-family-name webauthn` | `section-${string} cc-given-name` | `section-${string} cc-given-name webauthn` | `section-${string} cc-name` | `section-${string} cc-name webauthn` | `section-${string} cc-number` | `section-${string} cc-number webauthn` | `section-${string} cc-type` | `section-${string} cc-type webauthn` | `section-${string} country` | `section-${string} country webauthn` | `section-${string} country-name` | `section-${string} country-name webauthn` | `section-${string} current-password` | `section-${string} current-password webauthn` | `section-${string} family-name` | `section-${string} family-name webauthn` | `section-${string} given-name` | `section-${string} given-name webauthn` | `section-${string} honorific-prefix` | `section-${string} honorific-prefix webauthn` | `section-${string} honorific-suffix` | `section-${string} honorific-suffix webauthn` | `section-${string} new-password` | `section-${string} new-password webauthn` | `section-${string} one-time-code` | `section-${string} one-time-code webauthn` | `section-${string} organization` | `section-${string} organization webauthn` | `section-${string} postal-code` | `section-${string} postal-code webauthn` | `section-${string} street-address` | `section-${string} street-address webauthn` | `section-${string} transaction-amount` | `section-${string} transaction-amount webauthn` | `section-${string} transaction-currency` | `section-${string} transaction-currency webauthn` | `section-${string} username` | `section-${string} username webauthn` | `section-${string} tel` | `section-${string} tel webauthn` | `section-${string} email` | `section-${string} email webauthn` | `section-${string} tel-area-code` | `section-${string} tel-area-code webauthn` | `section-${string} tel-country-code` | `section-${string} tel-country-code webauthn` | `section-${string} tel-extension` | `section-${string} tel-extension webauthn` | `section-${string} tel-local` | `section-${string} tel-local webauthn` | `section-${string} tel-local-prefix` | `section-${string} tel-local-prefix webauthn` | `section-${string} tel-local-suffix` | `section-${string} tel-local-suffix webauthn` | `section-${string} tel-national` | `section-${string} tel-national webauthn` | "bday" | "cc-additional-name" | "billing cc-additional-name" | "shipping cc-additional-name" | "nickname" | "language" | "organization-title" | "photo" | "sex";
|
|
75
|
+
autocomplete: "name" | "off" | "on" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username" | "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national" | "home email" | "home tel" | "home tel-area-code" | "home tel-country-code" | "home tel-extension" | "home tel-local" | "home tel-local-prefix" | "home tel-local-suffix" | "home tel-national" | "mobile email" | "mobile tel" | "mobile tel-area-code" | "mobile tel-country-code" | "mobile tel-extension" | "mobile tel-local" | "mobile tel-local-prefix" | "mobile tel-local-suffix" | "mobile tel-national" | "work email" | "work tel" | "work tel-area-code" | "work tel-country-code" | "work tel-extension" | "work tel-local" | "work tel-local-prefix" | "work tel-local-suffix" | "work tel-national" | "name webauthn" | "additional-name webauthn" | "address-level1 webauthn" | "address-level2 webauthn" | "address-level3 webauthn" | "address-level4 webauthn" | "address-line1 webauthn" | "address-line2 webauthn" | "address-line3 webauthn" | "bday-day webauthn" | "bday-month webauthn" | "bday-year webauthn" | "cc-csc webauthn" | "cc-exp webauthn" | "cc-exp-month webauthn" | "cc-exp-year webauthn" | "cc-family-name webauthn" | "cc-given-name webauthn" | "cc-name webauthn" | "cc-number webauthn" | "cc-type webauthn" | "country webauthn" | "country-name webauthn" | "current-password webauthn" | "family-name webauthn" | "given-name webauthn" | "honorific-prefix webauthn" | "honorific-suffix webauthn" | "new-password webauthn" | "one-time-code webauthn" | "organization webauthn" | "postal-code webauthn" | "street-address webauthn" | "transaction-amount webauthn" | "transaction-currency webauthn" | "username webauthn" | "email webauthn" | "tel webauthn" | "tel-area-code webauthn" | "tel-country-code webauthn" | "tel-extension webauthn" | "tel-local webauthn" | "tel-local-prefix webauthn" | "tel-local-suffix webauthn" | "tel-national webauthn" | "home email webauthn" | "home tel webauthn" | "home tel-area-code webauthn" | "home tel-country-code webauthn" | "home tel-extension webauthn" | "home tel-local webauthn" | "home tel-local-prefix webauthn" | "home tel-local-suffix webauthn" | "home tel-national webauthn" | "mobile email webauthn" | "mobile tel webauthn" | "mobile tel-area-code webauthn" | "mobile tel-country-code webauthn" | "mobile tel-extension webauthn" | "mobile tel-local webauthn" | "mobile tel-local-prefix webauthn" | "mobile tel-local-suffix webauthn" | "mobile tel-national webauthn" | "work email webauthn" | "work tel webauthn" | "work tel-area-code webauthn" | "work tel-country-code webauthn" | "work tel-extension webauthn" | "work tel-local webauthn" | "work tel-local-prefix webauthn" | "work tel-local-suffix webauthn" | "work tel-national webauthn" | "billing name" | "billing name webauthn" | "billing additional-name" | "billing additional-name webauthn" | "billing address-level1" | "billing address-level1 webauthn" | "billing address-level2" | "billing address-level2 webauthn" | "billing address-level3" | "billing address-level3 webauthn" | "billing address-level4" | "billing address-level4 webauthn" | "billing address-line1" | "billing address-line1 webauthn" | "billing address-line2" | "billing address-line2 webauthn" | "billing address-line3" | "billing address-line3 webauthn" | "billing bday-day" | "billing bday-day webauthn" | "billing bday-month" | "billing bday-month webauthn" | "billing bday-year" | "billing bday-year webauthn" | "billing cc-csc" | "billing cc-csc webauthn" | "billing cc-exp" | "billing cc-exp webauthn" | "billing cc-exp-month" | "billing cc-exp-month webauthn" | "billing cc-exp-year" | "billing cc-exp-year webauthn" | "billing cc-family-name" | "billing cc-family-name webauthn" | "billing cc-given-name" | "billing cc-given-name webauthn" | "billing cc-name" | "billing cc-name webauthn" | "billing cc-number" | "billing cc-number webauthn" | "billing cc-type" | "billing cc-type webauthn" | "billing country" | "billing country webauthn" | "billing country-name" | "billing country-name webauthn" | "billing current-password" | "billing current-password webauthn" | "billing family-name" | "billing family-name webauthn" | "billing given-name" | "billing given-name webauthn" | "billing honorific-prefix" | "billing honorific-prefix webauthn" | "billing honorific-suffix" | "billing honorific-suffix webauthn" | "billing new-password" | "billing new-password webauthn" | "billing one-time-code" | "billing one-time-code webauthn" | "billing organization" | "billing organization webauthn" | "billing postal-code" | "billing postal-code webauthn" | "billing street-address" | "billing street-address webauthn" | "billing transaction-amount" | "billing transaction-amount webauthn" | "billing transaction-currency" | "billing transaction-currency webauthn" | "billing username" | "billing username webauthn" | "billing email" | "billing email webauthn" | "billing tel" | "billing tel webauthn" | "billing tel-area-code" | "billing tel-area-code webauthn" | "billing tel-country-code" | "billing tel-country-code webauthn" | "billing tel-extension" | "billing tel-extension webauthn" | "billing tel-local" | "billing tel-local webauthn" | "billing tel-local-prefix" | "billing tel-local-prefix webauthn" | "billing tel-local-suffix" | "billing tel-local-suffix webauthn" | "billing tel-national" | "billing tel-national webauthn" | "billing home email" | "billing home email webauthn" | "billing home tel" | "billing home tel webauthn" | "billing home tel-area-code" | "billing home tel-area-code webauthn" | "billing home tel-country-code" | "billing home tel-country-code webauthn" | "billing home tel-extension" | "billing home tel-extension webauthn" | "billing home tel-local" | "billing home tel-local webauthn" | "billing home tel-local-prefix" | "billing home tel-local-prefix webauthn" | "billing home tel-local-suffix" | "billing home tel-local-suffix webauthn" | "billing home tel-national" | "billing home tel-national webauthn" | "billing mobile email" | "billing mobile email webauthn" | "billing mobile tel" | "billing mobile tel webauthn" | "billing mobile tel-area-code" | "billing mobile tel-area-code webauthn" | "billing mobile tel-country-code" | "billing mobile tel-country-code webauthn" | "billing mobile tel-extension" | "billing mobile tel-extension webauthn" | "billing mobile tel-local" | "billing mobile tel-local webauthn" | "billing mobile tel-local-prefix" | "billing mobile tel-local-prefix webauthn" | "billing mobile tel-local-suffix" | "billing mobile tel-local-suffix webauthn" | "billing mobile tel-national" | "billing mobile tel-national webauthn" | "billing work email" | "billing work email webauthn" | "billing work tel" | "billing work tel webauthn" | "billing work tel-area-code" | "billing work tel-area-code webauthn" | "billing work tel-country-code" | "billing work tel-country-code webauthn" | "billing work tel-extension" | "billing work tel-extension webauthn" | "billing work tel-local" | "billing work tel-local webauthn" | "billing work tel-local-prefix" | "billing work tel-local-prefix webauthn" | "billing work tel-local-suffix" | "billing work tel-local-suffix webauthn" | "billing work tel-national" | "billing work tel-national webauthn" | "shipping name" | "shipping name webauthn" | "shipping additional-name" | "shipping additional-name webauthn" | "shipping address-level1" | "shipping address-level1 webauthn" | "shipping address-level2" | "shipping address-level2 webauthn" | "shipping address-level3" | "shipping address-level3 webauthn" | "shipping address-level4" | "shipping address-level4 webauthn" | "shipping address-line1" | "shipping address-line1 webauthn" | "shipping address-line2" | "shipping address-line2 webauthn" | "shipping address-line3" | "shipping address-line3 webauthn" | "shipping bday-day" | "shipping bday-day webauthn" | "shipping bday-month" | "shipping bday-month webauthn" | "shipping bday-year" | "shipping bday-year webauthn" | "shipping cc-csc" | "shipping cc-csc webauthn" | "shipping cc-exp" | "shipping cc-exp webauthn" | "shipping cc-exp-month" | "shipping cc-exp-month webauthn" | "shipping cc-exp-year" | "shipping cc-exp-year webauthn" | "shipping cc-family-name" | "shipping cc-family-name webauthn" | "shipping cc-given-name" | "shipping cc-given-name webauthn" | "shipping cc-name" | "shipping cc-name webauthn" | "shipping cc-number" | "shipping cc-number webauthn" | "shipping cc-type" | "shipping cc-type webauthn" | "shipping country" | "shipping country webauthn" | "shipping country-name" | "shipping country-name webauthn" | "shipping current-password" | "shipping current-password webauthn" | "shipping family-name" | "shipping family-name webauthn" | "shipping given-name" | "shipping given-name webauthn" | "shipping honorific-prefix" | "shipping honorific-prefix webauthn" | "shipping honorific-suffix" | "shipping honorific-suffix webauthn" | "shipping new-password" | "shipping new-password webauthn" | "shipping one-time-code" | "shipping one-time-code webauthn" | "shipping organization" | "shipping organization webauthn" | "shipping postal-code" | "shipping postal-code webauthn" | "shipping street-address" | "shipping street-address webauthn" | "shipping transaction-amount" | "shipping transaction-amount webauthn" | "shipping transaction-currency" | "shipping transaction-currency webauthn" | "shipping username" | "shipping username webauthn" | "shipping email" | "shipping email webauthn" | "shipping tel" | "shipping tel webauthn" | "shipping tel-area-code" | "shipping tel-area-code webauthn" | "shipping tel-country-code" | "shipping tel-country-code webauthn" | "shipping tel-extension" | "shipping tel-extension webauthn" | "shipping tel-local" | "shipping tel-local webauthn" | "shipping tel-local-prefix" | "shipping tel-local-prefix webauthn" | "shipping tel-local-suffix" | "shipping tel-local-suffix webauthn" | "shipping tel-national" | "shipping tel-national webauthn" | "shipping home email" | "shipping home email webauthn" | "shipping home tel" | "shipping home tel webauthn" | "shipping home tel-area-code" | "shipping home tel-area-code webauthn" | "shipping home tel-country-code" | "shipping home tel-country-code webauthn" | "shipping home tel-extension" | "shipping home tel-extension webauthn" | "shipping home tel-local" | "shipping home tel-local webauthn" | "shipping home tel-local-prefix" | "shipping home tel-local-prefix webauthn" | "shipping home tel-local-suffix" | "shipping home tel-local-suffix webauthn" | "shipping home tel-national" | "shipping home tel-national webauthn" | "shipping mobile email" | "shipping mobile email webauthn" | "shipping mobile tel" | "shipping mobile tel webauthn" | "shipping mobile tel-area-code" | "shipping mobile tel-area-code webauthn" | "shipping mobile tel-country-code" | "shipping mobile tel-country-code webauthn" | "shipping mobile tel-extension" | "shipping mobile tel-extension webauthn" | "shipping mobile tel-local" | "shipping mobile tel-local webauthn" | "shipping mobile tel-local-prefix" | "shipping mobile tel-local-prefix webauthn" | "shipping mobile tel-local-suffix" | "shipping mobile tel-local-suffix webauthn" | "shipping mobile tel-national" | "shipping mobile tel-national webauthn" | "shipping work email" | "shipping work email webauthn" | "shipping work tel" | "shipping work tel webauthn" | "shipping work tel-area-code" | "shipping work tel-area-code webauthn" | "shipping work tel-country-code" | "shipping work tel-country-code webauthn" | "shipping work tel-extension" | "shipping work tel-extension webauthn" | "shipping work tel-local" | "shipping work tel-local webauthn" | "shipping work tel-local-prefix" | "shipping work tel-local-prefix webauthn" | "shipping work tel-local-suffix" | "shipping work tel-local-suffix webauthn" | "shipping work tel-national" | "shipping work tel-national webauthn" | `section-${string} name` | `section-${string} name webauthn` | `section-${string} additional-name` | `section-${string} additional-name webauthn` | `section-${string} address-level1` | `section-${string} address-level1 webauthn` | `section-${string} address-level2` | `section-${string} address-level2 webauthn` | `section-${string} address-level3` | `section-${string} address-level3 webauthn` | `section-${string} address-level4` | `section-${string} address-level4 webauthn` | `section-${string} address-line1` | `section-${string} address-line1 webauthn` | `section-${string} address-line2` | `section-${string} address-line2 webauthn` | `section-${string} address-line3` | `section-${string} address-line3 webauthn` | `section-${string} bday-day` | `section-${string} bday-day webauthn` | `section-${string} bday-month` | `section-${string} bday-month webauthn` | `section-${string} bday-year` | `section-${string} bday-year webauthn` | `section-${string} cc-csc` | `section-${string} cc-csc webauthn` | `section-${string} cc-exp` | `section-${string} cc-exp webauthn` | `section-${string} cc-exp-month` | `section-${string} cc-exp-month webauthn` | `section-${string} cc-exp-year` | `section-${string} cc-exp-year webauthn` | `section-${string} cc-family-name` | `section-${string} cc-family-name webauthn` | `section-${string} cc-given-name` | `section-${string} cc-given-name webauthn` | `section-${string} cc-name` | `section-${string} cc-name webauthn` | `section-${string} cc-number` | `section-${string} cc-number webauthn` | `section-${string} cc-type` | `section-${string} cc-type webauthn` | `section-${string} country` | `section-${string} country webauthn` | `section-${string} country-name` | `section-${string} country-name webauthn` | `section-${string} current-password` | `section-${string} current-password webauthn` | `section-${string} family-name` | `section-${string} family-name webauthn` | `section-${string} given-name` | `section-${string} given-name webauthn` | `section-${string} honorific-prefix` | `section-${string} honorific-prefix webauthn` | `section-${string} honorific-suffix` | `section-${string} honorific-suffix webauthn` | `section-${string} new-password` | `section-${string} new-password webauthn` | `section-${string} one-time-code` | `section-${string} one-time-code webauthn` | `section-${string} organization` | `section-${string} organization webauthn` | `section-${string} postal-code` | `section-${string} postal-code webauthn` | `section-${string} street-address` | `section-${string} street-address webauthn` | `section-${string} transaction-amount` | `section-${string} transaction-amount webauthn` | `section-${string} transaction-currency` | `section-${string} transaction-currency webauthn` | `section-${string} username` | `section-${string} username webauthn` | `section-${string} email` | `section-${string} email webauthn` | `section-${string} tel` | `section-${string} tel webauthn` | `section-${string} tel-area-code` | `section-${string} tel-area-code webauthn` | `section-${string} tel-country-code` | `section-${string} tel-country-code webauthn` | `section-${string} tel-extension` | `section-${string} tel-extension webauthn` | `section-${string} tel-local` | `section-${string} tel-local webauthn` | `section-${string} tel-local-prefix` | `section-${string} tel-local-prefix webauthn` | `section-${string} tel-local-suffix` | `section-${string} tel-local-suffix webauthn` | `section-${string} tel-national` | `section-${string} tel-national webauthn` | "bday" | "cc-additional-name" | "billing cc-additional-name" | "shipping cc-additional-name" | "nickname" | "language" | "organization-title" | "photo" | "sex" | "url";
|
|
69
76
|
"data-pin-input-input": string;
|
|
70
77
|
"data-pin-input-input-mss": number | null;
|
|
71
78
|
"data-pin-input-input-mse": number | null;
|
|
72
|
-
inputmode: "none" | "
|
|
79
|
+
inputmode: "none" | "search" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | null | undefined;
|
|
73
80
|
pattern: any;
|
|
74
81
|
maxlength: number;
|
|
75
82
|
value: string;
|
|
76
83
|
disabled: true | undefined;
|
|
77
|
-
onpaste: (e: ClipboardEvent
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
onmouseleave: () => void;
|
|
85
|
-
onfocus: (_: FocusEvent & {
|
|
86
|
-
currentTarget: HTMLInputElement;
|
|
87
|
-
}) => void;
|
|
88
|
-
onblur: () => void;
|
|
84
|
+
onpaste: (e: BitsEvent<ClipboardEvent>) => void;
|
|
85
|
+
oninput: (e: BitsEvent<Event, HTMLInputElement>) => void;
|
|
86
|
+
onkeydown: (e: BitsKeyboardEvent) => void;
|
|
87
|
+
onmouseover: (_: BitsMouseEvent) => void;
|
|
88
|
+
onmouseleave: (_: BitsMouseEvent) => void;
|
|
89
|
+
onfocus: (_: BitsFocusEvent<HTMLInputElement>) => void;
|
|
90
|
+
onblur: (_: BitsFocusEvent) => void;
|
|
89
91
|
};
|
|
90
92
|
snippetProps: {
|
|
91
93
|
cells: {
|