@edo-w/flatline-solid 0.2.1 → 0.3.1
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/button/index.css +124 -0
- package/dist/button/index.d.ts +2 -0
- package/dist/button/index.js +51 -0
- package/dist/button/index.js.map +1 -0
- package/dist/card/index.css +112 -0
- package/dist/card/index.d.ts +68 -0
- package/dist/card/index.js +181 -0
- package/dist/card/index.js.map +1 -0
- package/dist/checkbox/index.css +75 -0
- package/dist/checkbox/index.d.ts +55 -0
- package/dist/checkbox/index.js +156 -0
- package/dist/checkbox/index.js.map +1 -0
- package/dist/combobox/index.css +184 -0
- package/dist/combobox/index.d.ts +145 -0
- package/dist/combobox/index.js +894 -0
- package/dist/combobox/index.js.map +1 -0
- package/dist/dialog/index.css +218 -0
- package/dist/dialog/index.d.ts +65 -0
- package/dist/dialog/index.js +124 -0
- package/dist/dialog/index.js.map +1 -0
- package/dist/dropdown-menu/index.css +238 -0
- package/dist/dropdown-menu/index.d.ts +122 -0
- package/dist/dropdown-menu/index.js +199 -0
- package/dist/dropdown-menu/index.js.map +1 -0
- package/dist/icons-CH4ghH8L.js +41 -0
- package/dist/icons-CH4ghH8L.js.map +1 -0
- package/dist/index-D-CV7Jz5.d.ts +30 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +0 -0
- package/dist/input/index.css +23 -0
- package/dist/input/index.d.ts +14 -0
- package/dist/input/index.js +24 -0
- package/dist/input/index.js.map +1 -0
- package/dist/label/index.css +11 -0
- package/dist/label/index.d.ts +14 -0
- package/dist/label/index.js +25 -0
- package/dist/label/index.js.map +1 -0
- package/dist/lite-CiFvU804.js +9 -0
- package/dist/lite-CiFvU804.js.map +1 -0
- package/dist/progress-bar/index.css +34 -0
- package/dist/progress-bar/index.d.ts +19 -0
- package/dist/progress-bar/index.js +61 -0
- package/dist/progress-bar/index.js.map +1 -0
- package/dist/radio/index.css +64 -0
- package/dist/radio/index.d.ts +55 -0
- package/dist/radio/index.js +143 -0
- package/dist/radio/index.js.map +1 -0
- package/dist/select/index.css +53 -0
- package/dist/select/index.d.ts +16 -0
- package/dist/select/index.js +51 -0
- package/dist/select/index.js.map +1 -0
- package/dist/slider/index.css +59 -0
- package/dist/slider/index.d.ts +16 -0
- package/dist/slider/index.js +37 -0
- package/dist/slider/index.js.map +1 -0
- package/dist/spinner/index.css +44 -0
- package/dist/spinner/index.d.ts +24 -0
- package/dist/spinner/index.js +48 -0
- package/dist/spinner/index.js.map +1 -0
- package/dist/{src/style → style}/flatline.css +0 -1
- package/dist/switch/index.css +69 -0
- package/dist/switch/index.d.ts +22 -0
- package/dist/switch/index.js +75 -0
- package/dist/switch/index.js.map +1 -0
- package/dist/table/index.css +50 -0
- package/dist/table/index.d.ts +64 -0
- package/dist/table/index.js +142 -0
- package/dist/table/index.js.map +1 -0
- package/dist/tabs/index.css +114 -0
- package/dist/tabs/index.d.ts +40 -0
- package/dist/tabs/index.js +67 -0
- package/dist/tabs/index.js.map +1 -0
- package/dist/textarea/index.css +35 -0
- package/dist/textarea/index.d.ts +14 -0
- package/dist/textarea/index.js +24 -0
- package/dist/textarea/index.js.map +1 -0
- package/dist/xstack/index.d.ts +1 -0
- package/dist/xstack/index.js +0 -0
- package/dist/ystack/index.css +26 -0
- package/dist/ystack/index.d.ts +25 -0
- package/dist/ystack/index.js +47 -0
- package/dist/ystack/index.js.map +1 -0
- package/package.json +31 -5
- package/dist/src/components/button/button.css +0 -156
- package/dist/src/components/button/button.d.ts +0 -9
- package/dist/src/components/button/button.jsx +0 -21
- package/dist/src/components/button/button.jsx.map +0 -1
- package/dist/src/components/button/class.d.ts +0 -16
- package/dist/src/components/button/class.js +0 -15
- package/dist/src/components/button/class.js.map +0 -1
- package/dist/src/components/button/index.d.ts +0 -2
- package/dist/src/components/button/index.js +0 -3
- package/dist/src/components/button/index.js.map +0 -1
- package/dist/src/components/card/card-action.css +0 -15
- package/dist/src/components/card/card-content.css +0 -13
- package/dist/src/components/card/card-footer.css +0 -39
- package/dist/src/components/card/card-header.css +0 -13
- package/dist/src/components/card/card-root.css +0 -31
- package/dist/src/components/card/card-subtitle.css +0 -12
- package/dist/src/components/card/card-title.css +0 -33
- package/dist/src/components/card/card.d.ts +0 -42
- package/dist/src/components/card/card.jsx +0 -86
- package/dist/src/components/card/card.jsx.map +0 -1
- package/dist/src/components/card/class.d.ts +0 -28
- package/dist/src/components/card/class.js +0 -27
- package/dist/src/components/card/class.js.map +0 -1
- package/dist/src/components/card/index.d.ts +0 -2
- package/dist/src/components/card/index.js +0 -3
- package/dist/src/components/card/index.js.map +0 -1
- package/dist/src/components/checkbox/checkbox-group.css +0 -9
- package/dist/src/components/checkbox/checkbox-group.d.ts +0 -3
- package/dist/src/components/checkbox/checkbox-group.jsx +0 -43
- package/dist/src/components/checkbox/checkbox-group.jsx.map +0 -1
- package/dist/src/components/checkbox/checkbox-root.css +0 -85
- package/dist/src/components/checkbox/checkbox-root.d.ts +0 -4
- package/dist/src/components/checkbox/checkbox-root.jsx +0 -55
- package/dist/src/components/checkbox/checkbox-root.jsx.map +0 -1
- package/dist/src/components/checkbox/checkbox.d.ts +0 -9
- package/dist/src/components/checkbox/checkbox.jsx +0 -6
- package/dist/src/components/checkbox/checkbox.jsx.map +0 -1
- package/dist/src/components/checkbox/class.d.ts +0 -8
- package/dist/src/components/checkbox/class.js +0 -9
- package/dist/src/components/checkbox/class.js.map +0 -1
- package/dist/src/components/checkbox/context.d.ts +0 -9
- package/dist/src/components/checkbox/context.js +0 -6
- package/dist/src/components/checkbox/context.js.map +0 -1
- package/dist/src/components/checkbox/index.d.ts +0 -6
- package/dist/src/components/checkbox/index.js +0 -7
- package/dist/src/components/checkbox/index.js.map +0 -1
- package/dist/src/components/checkbox/types.d.ts +0 -16
- package/dist/src/components/checkbox/types.js +0 -1
- package/dist/src/components/checkbox/types.js.map +0 -1
- package/dist/src/components/combobox/class.d.ts +0 -13
- package/dist/src/components/combobox/class.js +0 -14
- package/dist/src/components/combobox/class.js.map +0 -1
- package/dist/src/components/combobox/combobox-content.css +0 -20
- package/dist/src/components/combobox/combobox-content.d.ts +0 -2
- package/dist/src/components/combobox/combobox-content.jsx +0 -15
- package/dist/src/components/combobox/combobox-content.jsx.map +0 -1
- package/dist/src/components/combobox/combobox-control.css +0 -29
- package/dist/src/components/combobox/combobox-control.d.ts +0 -3
- package/dist/src/components/combobox/combobox-control.jsx +0 -19
- package/dist/src/components/combobox/combobox-control.jsx.map +0 -1
- package/dist/src/components/combobox/combobox-group.css +0 -32
- package/dist/src/components/combobox/combobox-group.d.ts +0 -2
- package/dist/src/components/combobox/combobox-group.jsx +0 -12
- package/dist/src/components/combobox/combobox-group.jsx.map +0 -1
- package/dist/src/components/combobox/combobox-hidden-select.d.ts +0 -2
- package/dist/src/components/combobox/combobox-hidden-select.jsx +0 -8
- package/dist/src/components/combobox/combobox-hidden-select.jsx.map +0 -1
- package/dist/src/components/combobox/combobox-icon.css +0 -11
- package/dist/src/components/combobox/combobox-icon.d.ts +0 -2
- package/dist/src/components/combobox/combobox-icon.jsx +0 -12
- package/dist/src/components/combobox/combobox-icon.jsx.map +0 -1
- package/dist/src/components/combobox/combobox-input.css +0 -32
- package/dist/src/components/combobox/combobox-input.d.ts +0 -3
- package/dist/src/components/combobox/combobox-input.jsx +0 -101
- package/dist/src/components/combobox/combobox-input.jsx.map +0 -1
- package/dist/src/components/combobox/combobox-item-indicator.css +0 -11
- package/dist/src/components/combobox/combobox-item-indicator.d.ts +0 -2
- package/dist/src/components/combobox/combobox-item-indicator.jsx +0 -16
- package/dist/src/components/combobox/combobox-item-indicator.jsx.map +0 -1
- package/dist/src/components/combobox/combobox-item-label.d.ts +0 -2
- package/dist/src/components/combobox/combobox-item-label.jsx +0 -13
- package/dist/src/components/combobox/combobox-item-label.jsx.map +0 -1
- package/dist/src/components/combobox/combobox-item.css +0 -48
- package/dist/src/components/combobox/combobox-item.d.ts +0 -3
- package/dist/src/components/combobox/combobox-item.jsx +0 -37
- package/dist/src/components/combobox/combobox-item.jsx.map +0 -1
- package/dist/src/components/combobox/combobox-listbox.css +0 -21
- package/dist/src/components/combobox/combobox-listbox.d.ts +0 -2
- package/dist/src/components/combobox/combobox-listbox.jsx +0 -39
- package/dist/src/components/combobox/combobox-listbox.jsx.map +0 -1
- package/dist/src/components/combobox/combobox-portal.d.ts +0 -2
- package/dist/src/components/combobox/combobox-portal.jsx +0 -6
- package/dist/src/components/combobox/combobox-portal.jsx.map +0 -1
- package/dist/src/components/combobox/combobox-root.css +0 -12
- package/dist/src/components/combobox/combobox-root.d.ts +0 -3
- package/dist/src/components/combobox/combobox-root.jsx +0 -407
- package/dist/src/components/combobox/combobox-root.jsx.map +0 -1
- package/dist/src/components/combobox/combobox-trigger.css +0 -31
- package/dist/src/components/combobox/combobox-trigger.d.ts +0 -3
- package/dist/src/components/combobox/combobox-trigger.jsx +0 -30
- package/dist/src/components/combobox/combobox-trigger.jsx.map +0 -1
- package/dist/src/components/combobox/combobox.d.ts +0 -43
- package/dist/src/components/combobox/combobox.jsx +0 -39
- package/dist/src/components/combobox/combobox.jsx.map +0 -1
- package/dist/src/components/combobox/context.d.ts +0 -47
- package/dist/src/components/combobox/context.js +0 -18
- package/dist/src/components/combobox/context.js.map +0 -1
- package/dist/src/components/combobox/index.d.ts +0 -2
- package/dist/src/components/combobox/index.js +0 -3
- package/dist/src/components/combobox/index.js.map +0 -1
- package/dist/src/components/combobox/types.d.ts +0 -68
- package/dist/src/components/combobox/types.js +0 -1
- package/dist/src/components/combobox/types.js.map +0 -1
- package/dist/src/components/combobox/util.d.ts +0 -6
- package/dist/src/components/combobox/util.js +0 -58
- package/dist/src/components/combobox/util.js.map +0 -1
- package/dist/src/components/dialog/class.d.ts +0 -18
- package/dist/src/components/dialog/class.js +0 -18
- package/dist/src/components/dialog/class.js.map +0 -1
- package/dist/src/components/dialog/dialog-close-button.css +0 -48
- package/dist/src/components/dialog/dialog-content.css +0 -89
- package/dist/src/components/dialog/dialog-description.css +0 -6
- package/dist/src/components/dialog/dialog-header.css +0 -12
- package/dist/src/components/dialog/dialog-overlay.css +0 -43
- package/dist/src/components/dialog/dialog-positioner.css +0 -14
- package/dist/src/components/dialog/dialog-title.css +0 -6
- package/dist/src/components/dialog/dialog-trigger.css +0 -63
- package/dist/src/components/dialog/dialog.d.ts +0 -50
- package/dist/src/components/dialog/dialog.jsx +0 -89
- package/dist/src/components/dialog/dialog.jsx.map +0 -1
- package/dist/src/components/dialog/index.d.ts +0 -2
- package/dist/src/components/dialog/index.js +0 -3
- package/dist/src/components/dialog/index.js.map +0 -1
- package/dist/src/components/dropdown-menu/class.d.ts +0 -16
- package/dist/src/components/dropdown-menu/class.js +0 -17
- package/dist/src/components/dropdown-menu/class.js.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-arrow.css +0 -7
- package/dist/src/components/dropdown-menu/dropdown-menu-arrow.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-arrow.jsx +0 -10
- package/dist/src/components/dropdown-menu/dropdown-menu-arrow.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.css +0 -38
- package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.jsx +0 -10
- package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-content.css +0 -50
- package/dist/src/components/dropdown-menu/dropdown-menu-content.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-content.jsx +0 -10
- package/dist/src/components/dropdown-menu/dropdown-menu-content.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-group-label.css +0 -15
- package/dist/src/components/dropdown-menu/dropdown-menu-group-label.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-group-label.jsx +0 -10
- package/dist/src/components/dropdown-menu/dropdown-menu-group-label.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-group.d.ts +0 -2
- package/dist/src/components/dropdown-menu/dropdown-menu-group.jsx +0 -7
- package/dist/src/components/dropdown-menu/dropdown-menu-group.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-icon.css +0 -21
- package/dist/src/components/dropdown-menu/dropdown-menu-icon.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-icon.jsx +0 -10
- package/dist/src/components/dropdown-menu/dropdown-menu-icon.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.css +0 -12
- package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.jsx +0 -10
- package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.css +0 -18
- package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.jsx +0 -11
- package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-item.css +0 -37
- package/dist/src/components/dropdown-menu/dropdown-menu-item.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-item.jsx +0 -10
- package/dist/src/components/dropdown-menu/dropdown-menu-item.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-portal.d.ts +0 -2
- package/dist/src/components/dropdown-menu/dropdown-menu-portal.jsx +0 -5
- package/dist/src/components/dropdown-menu/dropdown-menu-portal.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-group.d.ts +0 -2
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-group.jsx +0 -7
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-group.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.css +0 -38
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.jsx +0 -10
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-root.d.ts +0 -2
- package/dist/src/components/dropdown-menu/dropdown-menu-root.jsx +0 -5
- package/dist/src/components/dropdown-menu/dropdown-menu-root.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-separator.css +0 -11
- package/dist/src/components/dropdown-menu/dropdown-menu-separator.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-separator.jsx +0 -10
- package/dist/src/components/dropdown-menu/dropdown-menu-separator.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.css +0 -26
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.jsx +0 -10
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.css +0 -43
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.jsx +0 -10
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-sub.d.ts +0 -2
- package/dist/src/components/dropdown-menu/dropdown-menu-sub.jsx +0 -5
- package/dist/src/components/dropdown-menu/dropdown-menu-sub.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu-trigger.css +0 -7
- package/dist/src/components/dropdown-menu/dropdown-menu-trigger.d.ts +0 -3
- package/dist/src/components/dropdown-menu/dropdown-menu-trigger.jsx +0 -16
- package/dist/src/components/dropdown-menu/dropdown-menu-trigger.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/dropdown-menu.d.ts +0 -43
- package/dist/src/components/dropdown-menu/dropdown-menu.jsx +0 -39
- package/dist/src/components/dropdown-menu/dropdown-menu.jsx.map +0 -1
- package/dist/src/components/dropdown-menu/index.d.ts +0 -21
- package/dist/src/components/dropdown-menu/index.js +0 -22
- package/dist/src/components/dropdown-menu/index.js.map +0 -1
- package/dist/src/components/dropdown-menu/types.d.ts +0 -21
- package/dist/src/components/dropdown-menu/types.js +0 -1
- package/dist/src/components/dropdown-menu/types.js.map +0 -1
- package/dist/src/components/input/class.d.ts +0 -3
- package/dist/src/components/input/class.js +0 -4
- package/dist/src/components/input/class.js.map +0 -1
- package/dist/src/components/input/index.d.ts +0 -2
- package/dist/src/components/input/index.js +0 -3
- package/dist/src/components/input/index.js.map +0 -1
- package/dist/src/components/input/input.css +0 -34
- package/dist/src/components/input/input.d.ts +0 -6
- package/dist/src/components/input/input.jsx +0 -10
- package/dist/src/components/input/input.jsx.map +0 -1
- package/dist/src/components/label/class.d.ts +0 -3
- package/dist/src/components/label/class.js +0 -4
- package/dist/src/components/label/class.js.map +0 -1
- package/dist/src/components/label/index.d.ts +0 -2
- package/dist/src/components/label/index.js +0 -3
- package/dist/src/components/label/index.js.map +0 -1
- package/dist/src/components/label/label.css +0 -16
- package/dist/src/components/label/label.d.ts +0 -6
- package/dist/src/components/label/label.jsx +0 -12
- package/dist/src/components/label/label.jsx.map +0 -1
- package/dist/src/components/progress-bar/class.d.ts +0 -4
- package/dist/src/components/progress-bar/class.js +0 -5
- package/dist/src/components/progress-bar/class.js.map +0 -1
- package/dist/src/components/progress-bar/index.d.ts +0 -2
- package/dist/src/components/progress-bar/index.js +0 -3
- package/dist/src/components/progress-bar/index.js.map +0 -1
- package/dist/src/components/progress-bar/progress-bar.css +0 -43
- package/dist/src/components/progress-bar/progress-bar.d.ts +0 -9
- package/dist/src/components/progress-bar/progress-bar.jsx +0 -24
- package/dist/src/components/progress-bar/progress-bar.jsx.map +0 -1
- package/dist/src/components/radio/class.d.ts +0 -8
- package/dist/src/components/radio/class.js +0 -9
- package/dist/src/components/radio/class.js.map +0 -1
- package/dist/src/components/radio/context.d.ts +0 -9
- package/dist/src/components/radio/context.js +0 -6
- package/dist/src/components/radio/context.js.map +0 -1
- package/dist/src/components/radio/index.d.ts +0 -6
- package/dist/src/components/radio/index.js +0 -7
- package/dist/src/components/radio/index.js.map +0 -1
- package/dist/src/components/radio/radio-group.css +0 -9
- package/dist/src/components/radio/radio-group.d.ts +0 -3
- package/dist/src/components/radio/radio-group.jsx +0 -33
- package/dist/src/components/radio/radio-group.jsx.map +0 -1
- package/dist/src/components/radio/radio-root.css +0 -75
- package/dist/src/components/radio/radio-root.d.ts +0 -4
- package/dist/src/components/radio/radio-root.jsx +0 -51
- package/dist/src/components/radio/radio-root.jsx.map +0 -1
- package/dist/src/components/radio/radio.d.ts +0 -11
- package/dist/src/components/radio/radio.jsx +0 -7
- package/dist/src/components/radio/radio.jsx.map +0 -1
- package/dist/src/components/radio/types.d.ts +0 -16
- package/dist/src/components/radio/types.js +0 -1
- package/dist/src/components/radio/types.js.map +0 -1
- package/dist/src/components/select/class.d.ts +0 -5
- package/dist/src/components/select/class.js +0 -6
- package/dist/src/components/select/class.js.map +0 -1
- package/dist/src/components/select/index.d.ts +0 -2
- package/dist/src/components/select/index.js +0 -3
- package/dist/src/components/select/index.js.map +0 -1
- package/dist/src/components/select/select.css +0 -76
- package/dist/src/components/select/select.d.ts +0 -6
- package/dist/src/components/select/select.jsx +0 -16
- package/dist/src/components/select/select.jsx.map +0 -1
- package/dist/src/components/slider/class.d.ts +0 -3
- package/dist/src/components/slider/class.js +0 -4
- package/dist/src/components/slider/class.js.map +0 -1
- package/dist/src/components/slider/index.d.ts +0 -2
- package/dist/src/components/slider/index.js +0 -3
- package/dist/src/components/slider/index.js.map +0 -1
- package/dist/src/components/slider/slider.css +0 -83
- package/dist/src/components/slider/slider.d.ts +0 -7
- package/dist/src/components/slider/slider.jsx +0 -19
- package/dist/src/components/slider/slider.jsx.map +0 -1
- package/dist/src/components/spinner/class.d.ts +0 -10
- package/dist/src/components/spinner/class.js +0 -10
- package/dist/src/components/spinner/class.js.map +0 -1
- package/dist/src/components/spinner/index.d.ts +0 -2
- package/dist/src/components/spinner/index.js +0 -3
- package/dist/src/components/spinner/index.js.map +0 -1
- package/dist/src/components/spinner/spinner.css +0 -51
- package/dist/src/components/spinner/spinner.d.ts +0 -9
- package/dist/src/components/spinner/spinner.jsx +0 -22
- package/dist/src/components/spinner/spinner.jsx.map +0 -1
- package/dist/src/components/switch/class.d.ts +0 -7
- package/dist/src/components/switch/class.js +0 -8
- package/dist/src/components/switch/class.js.map +0 -1
- package/dist/src/components/switch/index.d.ts +0 -2
- package/dist/src/components/switch/index.js +0 -3
- package/dist/src/components/switch/index.js.map +0 -1
- package/dist/src/components/switch/switch.css +0 -90
- package/dist/src/components/switch/switch.d.ts +0 -9
- package/dist/src/components/switch/switch.jsx +0 -28
- package/dist/src/components/switch/switch.jsx.map +0 -1
- package/dist/src/components/table/class.d.ts +0 -10
- package/dist/src/components/table/class.js +0 -11
- package/dist/src/components/table/class.js.map +0 -1
- package/dist/src/components/table/index.d.ts +0 -11
- package/dist/src/components/table/index.js +0 -12
- package/dist/src/components/table/index.js.map +0 -1
- package/dist/src/components/table/table-body.d.ts +0 -2
- package/dist/src/components/table/table-body.jsx +0 -10
- package/dist/src/components/table/table-body.jsx.map +0 -1
- package/dist/src/components/table/table-caption.css +0 -11
- package/dist/src/components/table/table-caption.d.ts +0 -3
- package/dist/src/components/table/table-caption.jsx +0 -11
- package/dist/src/components/table/table-caption.jsx.map +0 -1
- package/dist/src/components/table/table-cell.css +0 -12
- package/dist/src/components/table/table-cell.d.ts +0 -3
- package/dist/src/components/table/table-cell.jsx +0 -11
- package/dist/src/components/table/table-cell.jsx.map +0 -1
- package/dist/src/components/table/table-footer.css +0 -15
- package/dist/src/components/table/table-footer.d.ts +0 -3
- package/dist/src/components/table/table-footer.jsx +0 -11
- package/dist/src/components/table/table-footer.jsx.map +0 -1
- package/dist/src/components/table/table-head.css +0 -16
- package/dist/src/components/table/table-head.d.ts +0 -3
- package/dist/src/components/table/table-head.jsx +0 -11
- package/dist/src/components/table/table-head.jsx.map +0 -1
- package/dist/src/components/table/table-header.d.ts +0 -2
- package/dist/src/components/table/table-header.jsx +0 -10
- package/dist/src/components/table/table-header.jsx.map +0 -1
- package/dist/src/components/table/table-root.css +0 -12
- package/dist/src/components/table/table-root.d.ts +0 -3
- package/dist/src/components/table/table-root.jsx +0 -11
- package/dist/src/components/table/table-root.jsx.map +0 -1
- package/dist/src/components/table/table-row.css +0 -6
- package/dist/src/components/table/table-row.d.ts +0 -3
- package/dist/src/components/table/table-row.jsx +0 -11
- package/dist/src/components/table/table-row.jsx.map +0 -1
- package/dist/src/components/table/table.d.ts +0 -23
- package/dist/src/components/table/table.jsx +0 -19
- package/dist/src/components/table/table.jsx.map +0 -1
- package/dist/src/components/table/types.d.ts +0 -9
- package/dist/src/components/table/types.js +0 -1
- package/dist/src/components/table/types.js.map +0 -1
- package/dist/src/components/tabs/class.d.ts +0 -12
- package/dist/src/components/tabs/class.js +0 -12
- package/dist/src/components/tabs/class.js.map +0 -1
- package/dist/src/components/tabs/index.d.ts +0 -2
- package/dist/src/components/tabs/index.js +0 -3
- package/dist/src/components/tabs/index.js.map +0 -1
- package/dist/src/components/tabs/tabs-content.css +0 -24
- package/dist/src/components/tabs/tabs-indicator.css +0 -32
- package/dist/src/components/tabs/tabs-list.css +0 -26
- package/dist/src/components/tabs/tabs-root.css +0 -34
- package/dist/src/components/tabs/tabs-trigger.css +0 -58
- package/dist/src/components/tabs/tabs.d.ts +0 -27
- package/dist/src/components/tabs/tabs.jsx +0 -47
- package/dist/src/components/tabs/tabs.jsx.map +0 -1
- package/dist/src/components/textarea/class.d.ts +0 -3
- package/dist/src/components/textarea/class.js +0 -4
- package/dist/src/components/textarea/class.js.map +0 -1
- package/dist/src/components/textarea/index.d.ts +0 -2
- package/dist/src/components/textarea/index.js +0 -3
- package/dist/src/components/textarea/index.js.map +0 -1
- package/dist/src/components/textarea/textarea.css +0 -46
- package/dist/src/components/textarea/textarea.d.ts +0 -6
- package/dist/src/components/textarea/textarea.jsx +0 -10
- package/dist/src/components/textarea/textarea.jsx.map +0 -1
- package/dist/src/components/xstack/class.d.ts +0 -12
- package/dist/src/components/xstack/class.js +0 -12
- package/dist/src/components/xstack/class.js.map +0 -1
- package/dist/src/components/xstack/index.d.ts +0 -1
- package/dist/src/components/xstack/index.js +0 -1
- package/dist/src/components/xstack/index.js.map +0 -1
- package/dist/src/components/xstack/xstack.css +0 -34
- package/dist/src/components/xstack/xstack.d.ts +0 -9
- package/dist/src/components/xstack/xstack.jsx +0 -15
- package/dist/src/components/xstack/xstack.jsx.map +0 -1
- package/dist/src/components/ystack/class.d.ts +0 -11
- package/dist/src/components/ystack/class.js +0 -11
- package/dist/src/components/ystack/class.js.map +0 -1
- package/dist/src/components/ystack/index.d.ts +0 -2
- package/dist/src/components/ystack/index.js +0 -3
- package/dist/src/components/ystack/index.js.map +0 -1
- package/dist/src/components/ystack/ystack.css +0 -31
- package/dist/src/components/ystack/ystack.d.ts +0 -9
- package/dist/src/components/ystack/ystack.jsx +0 -15
- package/dist/src/components/ystack/ystack.jsx.map +0 -1
- package/dist/src/icons/check-icon.d.ts +0 -2
- package/dist/src/icons/check-icon.jsx +0 -8
- package/dist/src/icons/check-icon.jsx.map +0 -1
- package/dist/src/icons/chevron-down-icon.d.ts +0 -2
- package/dist/src/icons/chevron-down-icon.jsx +0 -8
- package/dist/src/icons/chevron-down-icon.jsx.map +0 -1
- package/dist/src/icons/chevron-right-icon.d.ts +0 -2
- package/dist/src/icons/chevron-right-icon.jsx +0 -8
- package/dist/src/icons/chevron-right-icon.jsx.map +0 -1
- package/dist/src/icons/dot-filled-icon.d.ts +0 -2
- package/dist/src/icons/dot-filled-icon.jsx +0 -8
- package/dist/src/icons/dot-filled-icon.jsx.map +0 -1
- package/dist/src/icons/index.d.ts +0 -5
- package/dist/src/icons/index.js +0 -6
- package/dist/src/icons/index.js.map +0 -1
- package/dist/src/icons/types.d.ts +0 -5
- package/dist/src/icons/types.js +0 -1
- package/dist/src/icons/types.js.map +0 -1
- package/dist/src/index.d.ts +0 -19
- package/dist/src/index.js +0 -20
- package/dist/src/index.js.map +0 -1
- package/dist/src/lib/reflect.d.ts +0 -1
- package/dist/src/lib/reflect.js +0 -4
- package/dist/src/lib/reflect.js.map +0 -1
- /package/dist/{src/style → style}/colors.css +0 -0
- /package/dist/{src/style → style}/reset.css +0 -0
- /package/dist/{src/style → style}/tokens.css +0 -0
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx/lite';
|
|
2
|
-
import { splitProps } from 'solid-js';
|
|
3
|
-
import { ChevronDownIcon } from '#src/icons';
|
|
4
|
-
import { comboboxClass } from './class';
|
|
5
|
-
export function ComboboxIcon(props) {
|
|
6
|
-
const [local, rest] = splitProps(props, ['class', 'children']);
|
|
7
|
-
const rootClass = () => clsx(comboboxClass.icon, local.class);
|
|
8
|
-
return (<span class={rootClass()} {...rest}>
|
|
9
|
-
{local.children ?? <ChevronDownIcon />}
|
|
10
|
-
</span>);
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=combobox-icon.jsx.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-icon.jsx","sourceRoot":"","sources":["../../../../src/components/combobox/combobox-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,MAAM,UAAU,YAAY,CAAC,KAAwB;IACpD,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAE9D,OAAO,CACN,CAAC,IAAI,CACJ,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,IAAI,CAAC,CAET;GAAA,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,eAAe,CAAC,AAAD,EAAG,CACvC;EAAA,EAAE,IAAI,CAAC,CACP,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { splitProps } from 'solid-js';\nimport { ChevronDownIcon } from '#src/icons';\nimport { comboboxClass } from './class';\nimport type { ComboboxIconProps } from './types';\n\nexport function ComboboxIcon(props: ComboboxIconProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children']);\n\tconst rootClass = () => clsx(comboboxClass.icon, local.class);\n\n\treturn (\n\t\t<span\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children ?? <ChevronDownIcon />}\n\t\t</span>\n\t);\n}\n"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.fl-combobox_input {
|
|
3
|
-
/* reset */
|
|
4
|
-
appearance: none;
|
|
5
|
-
outline: none;
|
|
6
|
-
|
|
7
|
-
/* layout */
|
|
8
|
-
flex: 1 1 auto;
|
|
9
|
-
min-width: 0;
|
|
10
|
-
min-height: calc(var(--fl-input-pad-y, var(--fl-size-1-5)) * 2 + 1em);
|
|
11
|
-
|
|
12
|
-
/* spacing */
|
|
13
|
-
padding-inline: var(--fl-input-pad-x, var(--fl-size-2));
|
|
14
|
-
padding-block: var(--fl-input-pad-y, var(--fl-size-1-5));
|
|
15
|
-
|
|
16
|
-
/* background */
|
|
17
|
-
background: transparent;
|
|
18
|
-
border: 0;
|
|
19
|
-
|
|
20
|
-
/* text */
|
|
21
|
-
color: var(--fl-input-text-color, var(--fl-body-text-color));
|
|
22
|
-
font: inherit;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.fl-combobox_input::placeholder {
|
|
26
|
-
color: var(--fl-body-muted-text-color);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.fl-combobox_input:disabled {
|
|
30
|
-
cursor: var(--fl-disabled-cursor);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx/lite';
|
|
2
|
-
import { splitProps } from 'solid-js';
|
|
3
|
-
import { comboboxClass } from './class';
|
|
4
|
-
import { useComboboxContext } from './context';
|
|
5
|
-
import { callEventHandler } from './util';
|
|
6
|
-
export function ComboboxInput(props) {
|
|
7
|
-
const context = useComboboxContext();
|
|
8
|
-
const [local, rest] = splitProps(props, ['class', 'placeholder', 'onInput', 'onFocus', 'onKeyDown']);
|
|
9
|
-
const rootClass = () => clsx(comboboxClass.input, local.class);
|
|
10
|
-
const handleInput = (event) => {
|
|
11
|
-
callEventHandler(local.onInput, event);
|
|
12
|
-
if (!(event.currentTarget instanceof HTMLInputElement)) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
const input = event.currentTarget;
|
|
16
|
-
const nextValue = input.value;
|
|
17
|
-
const selectionStart = input.selectionStart;
|
|
18
|
-
const selectionEnd = input.selectionEnd;
|
|
19
|
-
context.setInputValue(nextValue);
|
|
20
|
-
queueMicrotask(() => {
|
|
21
|
-
if (document.activeElement !== input) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
if (input.value !== nextValue || selectionStart === null || selectionEnd === null) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
input.setSelectionRange(selectionStart, selectionEnd);
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
const handleFocus = (event) => {
|
|
31
|
-
callEventHandler(local.onFocus, event);
|
|
32
|
-
if (context.disabled() || context.readOnly()) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
const handleKeyDown = (event) => {
|
|
37
|
-
callEventHandler(local.onKeyDown, event);
|
|
38
|
-
if (context.disabled() || context.readOnly()) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (event.key === 'ArrowDown') {
|
|
42
|
-
event.preventDefault();
|
|
43
|
-
if (context.isOpen()) {
|
|
44
|
-
context.highlightNext();
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (context.visibleItems().length === 0) {
|
|
48
|
-
context.openAllOptions('first');
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
context.openPopup('preserve');
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
if (event.key === 'ArrowUp') {
|
|
55
|
-
event.preventDefault();
|
|
56
|
-
if (context.isOpen()) {
|
|
57
|
-
context.highlightPrevious();
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
if (context.visibleItems().length === 0) {
|
|
61
|
-
context.openAllOptions('last');
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
context.openPopup('preserve');
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (event.key === 'Enter' && context.isOpen()) {
|
|
68
|
-
const activeItem = context.visibleItems().find((item) => item.key === context.highlightedKey());
|
|
69
|
-
if (activeItem) {
|
|
70
|
-
event.preventDefault();
|
|
71
|
-
context.selectItem(activeItem);
|
|
72
|
-
}
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
if (event.key === 'Escape') {
|
|
76
|
-
const input = event.currentTarget;
|
|
77
|
-
const selectionStart = input.selectionStart ?? 0;
|
|
78
|
-
const selectionEnd = input.selectionEnd ?? 0;
|
|
79
|
-
if (selectionStart !== selectionEnd) {
|
|
80
|
-
event.preventDefault();
|
|
81
|
-
input.setSelectionRange(selectionEnd, selectionEnd);
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
if (context.selectedItem()) {
|
|
85
|
-
event.preventDefault();
|
|
86
|
-
context.clearSelectedItem();
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
if (context.isOpen()) {
|
|
90
|
-
event.preventDefault();
|
|
91
|
-
}
|
|
92
|
-
context.closePopup(true);
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
if (event.key === 'Tab') {
|
|
96
|
-
context.closePopup(true);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
return (<input id={`${context.rootId}-input`} ref={context.setInputRef} class={rootClass()} type="text" role="combobox" value={context.inputValue()} placeholder={local.placeholder ?? context.placeholder()} disabled={context.disabled()} readOnly={context.readOnly()} required={context.required()} aria-autocomplete="list" aria-expanded={context.isOpen()} aria-controls={context.isOpen() ? `${context.rootId}-listbox` : undefined} aria-activedescendant={context.highlightedKey() ? context.getItemId(context.highlightedKey()) : undefined} onInput={handleInput} onFocus={handleFocus} onKeyDown={handleKeyDown} {...rest}/>);
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=combobox-input.jsx.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-input.jsx","sourceRoot":"","sources":["../../../../src/components/combobox/combobox-input.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAY,UAAU,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C,MAAM,UAAU,aAAa,CAAC,KAAyB;IACtD,MAAM,OAAO,GAAG,kBAAkB,EAAY,CAAC;IAC/C,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;IACrG,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,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W,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CACxD,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAC7B,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAC7B,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAC7B,iBAAiB,CAAC,MAAM,CACxB,aAAa,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAChC,aAAa,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAC1E,qBAAqB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,cAAc,EAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAC3G,OAAO,CAAC,CAAC,WAAW,CAAC,CACrB,OAAO,CAAC,CAAC,WAAW,CAAC,CACrB,SAAS,CAAC,CAAC,aAAa,CAAC,CACzB,IAAI,IAAI,CAAC,EACR,CACF,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { type JSX, splitProps } from 'solid-js';\nimport { comboboxClass } from './class';\nimport { useComboboxContext } from './context';\nimport type { ComboboxInputProps } from './types';\nimport { callEventHandler } from './util';\n\nexport function ComboboxInput(props: ComboboxInputProps) {\n\tconst context = useComboboxContext<any, any>();\n\tconst [local, rest] = splitProps(props, ['class', 'placeholder', 'onInput', 'onFocus', 'onKeyDown']);\n\tconst rootClass = () => clsx(comboboxClass.input, local.class);\n\n\tconst handleInput: JSX.EventHandlerUnion<HTMLInputElement, InputEvent> = (event) => {\n\t\tcallEventHandler(local.onInput, event);\n\n\t\tif (!(event.currentTarget instanceof HTMLInputElement)) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst input = event.currentTarget;\n\t\tconst nextValue = input.value;\n\t\tconst selectionStart = input.selectionStart;\n\t\tconst selectionEnd = input.selectionEnd;\n\n\t\tcontext.setInputValue(nextValue);\n\n\t\tqueueMicrotask(() => {\n\t\t\tif (document.activeElement !== input) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (input.value !== nextValue || selectionStart === null || selectionEnd === null) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tinput.setSelectionRange(selectionStart, selectionEnd);\n\t\t});\n\t};\n\n\tconst handleFocus: JSX.EventHandlerUnion<HTMLInputElement, FocusEvent> = (event) => {\n\t\tcallEventHandler(local.onFocus, event);\n\n\t\tif (context.disabled() || context.readOnly()) {\n\t\t\treturn;\n\t\t}\n\t};\n\n\tconst handleKeyDown: JSX.EventHandlerUnion<HTMLInputElement, KeyboardEvent> = (event) => {\n\t\tcallEventHandler(local.onKeyDown, event);\n\n\t\tif (context.disabled() || context.readOnly()) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (event.key === 'ArrowDown') {\n\t\t\tevent.preventDefault();\n\n\t\t\tif (context.isOpen()) {\n\t\t\t\tcontext.highlightNext();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (context.visibleItems().length === 0) {\n\t\t\t\tcontext.openAllOptions('first');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcontext.openPopup('preserve');\n\t\t\treturn;\n\t\t}\n\n\t\tif (event.key === 'ArrowUp') {\n\t\t\tevent.preventDefault();\n\n\t\t\tif (context.isOpen()) {\n\t\t\t\tcontext.highlightPrevious();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (context.visibleItems().length === 0) {\n\t\t\t\tcontext.openAllOptions('last');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcontext.openPopup('preserve');\n\t\t\treturn;\n\t\t}\n\n\t\tif (event.key === 'Enter' && context.isOpen()) {\n\t\t\tconst activeItem = context.visibleItems().find((item) => item.key === context.highlightedKey());\n\n\t\t\tif (activeItem) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tcontext.selectItem(activeItem);\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (event.key === 'Escape') {\n\t\t\tconst input = event.currentTarget;\n\t\t\tconst selectionStart = input.selectionStart ?? 0;\n\t\t\tconst selectionEnd = input.selectionEnd ?? 0;\n\n\t\t\tif (selectionStart !== selectionEnd) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tinput.setSelectionRange(selectionEnd, selectionEnd);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (context.selectedItem()) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tcontext.clearSelectedItem();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (context.isOpen()) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\n\t\t\tcontext.closePopup(true);\n\t\t\treturn;\n\t\t}\n\n\t\tif (event.key === 'Tab') {\n\t\t\tcontext.closePopup(true);\n\t\t}\n\t};\n\n\treturn (\n\t\t<input\n\t\t\tid={`${context.rootId}-input`}\n\t\t\tref={context.setInputRef}\n\t\t\tclass={rootClass()}\n\t\t\ttype=\"text\"\n\t\t\trole=\"combobox\"\n\t\t\tvalue={context.inputValue()}\n\t\t\tplaceholder={local.placeholder ?? context.placeholder()}\n\t\t\tdisabled={context.disabled()}\n\t\t\treadOnly={context.readOnly()}\n\t\t\trequired={context.required()}\n\t\t\taria-autocomplete=\"list\"\n\t\t\taria-expanded={context.isOpen()}\n\t\t\taria-controls={context.isOpen() ? `${context.rootId}-listbox` : undefined}\n\t\t\taria-activedescendant={context.highlightedKey() ? context.getItemId(context.highlightedKey()!) : undefined}\n\t\t\tonInput={handleInput}\n\t\t\tonFocus={handleFocus}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t\t{...rest}\n\t\t/>\n\t);\n}\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx/lite';
|
|
2
|
-
import { Show, splitProps } from 'solid-js';
|
|
3
|
-
import { CheckIcon } from '#src/icons';
|
|
4
|
-
import { comboboxClass } from './class';
|
|
5
|
-
import { useComboboxItemContext } from './context';
|
|
6
|
-
export function ComboboxItemIndicator(props) {
|
|
7
|
-
const item = useComboboxItemContext();
|
|
8
|
-
const [local, rest] = splitProps(props, ['class', 'children']);
|
|
9
|
-
const rootClass = () => clsx(comboboxClass.itemIndicator, local.class);
|
|
10
|
-
return (<Show when={item.selected}>
|
|
11
|
-
<div class={rootClass()} {...rest}>
|
|
12
|
-
{local.children ?? <CheckIcon />}
|
|
13
|
-
</div>
|
|
14
|
-
</Show>);
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=combobox-item-indicator.jsx.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-item-indicator.jsx","sourceRoot":"","sources":["../../../../src/components/combobox/combobox-item-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAGnD,MAAM,UAAU,qBAAqB,CAAC,KAAiC;IACtE,MAAM,IAAI,GAAG,sBAAsB,EAAO,CAAC;IAC3C,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAEvE,OAAO,CACN,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CACzB;GAAA,CAAC,GAAG,CACH,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,SAAS,CAAC,AAAD,EAAG,CACjC;GAAA,EAAE,GAAG,CACN;EAAA,EAAE,IAAI,CAAC,CACP,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { Show, splitProps } from 'solid-js';\nimport { CheckIcon } from '#src/icons';\nimport { comboboxClass } from './class';\nimport { useComboboxItemContext } from './context';\nimport type { ComboboxItemIndicatorProps } from './types';\n\nexport function ComboboxItemIndicator(props: ComboboxItemIndicatorProps) {\n\tconst item = useComboboxItemContext<any>();\n\tconst [local, rest] = splitProps(props, ['class', 'children']);\n\tconst rootClass = () => clsx(comboboxClass.itemIndicator, local.class);\n\n\treturn (\n\t\t<Show when={item.selected}>\n\t\t\t<div\n\t\t\t\tclass={rootClass()}\n\t\t\t\t{...rest}\n\t\t\t>\n\t\t\t\t{local.children ?? <CheckIcon />}\n\t\t\t</div>\n\t\t</Show>\n\t);\n}\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx/lite';
|
|
2
|
-
import { splitProps } from 'solid-js';
|
|
3
|
-
import { comboboxClass } from './class';
|
|
4
|
-
import { useComboboxItemContext } from './context';
|
|
5
|
-
export function ComboboxItemLabel(props) {
|
|
6
|
-
const item = useComboboxItemContext();
|
|
7
|
-
const [local, rest] = splitProps(props, ['class', 'children']);
|
|
8
|
-
const rootClass = () => clsx(comboboxClass.itemLabel, local.class);
|
|
9
|
-
return (<div class={rootClass()} {...rest}>
|
|
10
|
-
{local.children ?? item.item.textValue}
|
|
11
|
-
</div>);
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=combobox-item-label.jsx.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-item-label.jsx","sourceRoot":"","sources":["../../../../src/components/combobox/combobox-item-label.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAGnD,MAAM,UAAU,iBAAiB,CAAC,KAA6B;IAC9D,MAAM,IAAI,GAAG,sBAAsB,EAAO,CAAC;IAC3C,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAEnE,OAAO,CACN,CAAC,GAAG,CACH,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,IAAI,CAAC,CAET;GAAA,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CACvC;EAAA,EAAE,GAAG,CAAC,CACN,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { splitProps } from 'solid-js';\nimport { comboboxClass } from './class';\nimport { useComboboxItemContext } from './context';\nimport type { ComboboxItemLabelProps } from './types';\n\nexport function ComboboxItemLabel(props: ComboboxItemLabelProps) {\n\tconst item = useComboboxItemContext<any>();\n\tconst [local, rest] = splitProps(props, ['class', 'children']);\n\tconst rootClass = () => clsx(comboboxClass.itemLabel, local.class);\n\n\treturn (\n\t\t<div\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children ?? item.item.textValue}\n\t\t</div>\n\t);\n}\n"]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.fl-combobox_item {
|
|
3
|
-
/* reset */
|
|
4
|
-
outline: none;
|
|
5
|
-
|
|
6
|
-
/* layout */
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: space-between;
|
|
10
|
-
min-height: var(--fl-size-8);
|
|
11
|
-
|
|
12
|
-
/* spacing */
|
|
13
|
-
gap: var(--fl-size-2);
|
|
14
|
-
padding-inline: var(--fl-size-2);
|
|
15
|
-
padding-block: var(--fl-size-1-5);
|
|
16
|
-
|
|
17
|
-
/* background */
|
|
18
|
-
border-radius: var(--fl-radius-sm);
|
|
19
|
-
|
|
20
|
-
/* text */
|
|
21
|
-
color: var(--fl-body-text-color);
|
|
22
|
-
font: var(--fl-font-body);
|
|
23
|
-
|
|
24
|
-
/* pointer */
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
user-select: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.fl-combobox_item[data-disabled] {
|
|
30
|
-
cursor: var(--fl-disabled-cursor);
|
|
31
|
-
opacity: var(--fl-disabled-opacity);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.fl-combobox_item[data-selected] {
|
|
35
|
-
background: color-mix(in srgb, var(--fl-body-bg-color), var(--fl-primary-color) 15%);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.fl-combobox_item[data-highlighted] {
|
|
39
|
-
background: var(--fl-primary-color);
|
|
40
|
-
color: var(--fl-primary-text-color);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.fl-combobox_item .fl-combobox_item-label {
|
|
44
|
-
/* layout */
|
|
45
|
-
flex: 1 1 auto;
|
|
46
|
-
min-width: 0;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx/lite';
|
|
2
|
-
import { createEffect, splitProps } from 'solid-js';
|
|
3
|
-
import { comboboxClass } from './class';
|
|
4
|
-
import { ComboboxItemContext, useComboboxContext } from './context';
|
|
5
|
-
import { callEventHandler } from './util';
|
|
6
|
-
export function ComboboxItem(props) {
|
|
7
|
-
const context = useComboboxContext();
|
|
8
|
-
const [local, rest] = splitProps(props, ['class', 'item', 'children', 'onMouseEnter', 'onMouseDown', 'onClick']);
|
|
9
|
-
const rootClass = () => clsx(comboboxClass.item, local.class);
|
|
10
|
-
const selected = () => context.selectedItem()?.key === local.item.key;
|
|
11
|
-
const highlighted = () => context.highlightedKey() === local.item.key;
|
|
12
|
-
let itemRef;
|
|
13
|
-
createEffect(() => {
|
|
14
|
-
if (!highlighted() || !itemRef || !context.shouldScrollHighlightedItem()) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
itemRef.scrollIntoView({ block: 'nearest' });
|
|
18
|
-
});
|
|
19
|
-
const handleMouseEnter = (event) => {
|
|
20
|
-
callEventHandler(local.onMouseEnter, event);
|
|
21
|
-
context.setHighlightedKey(local.item.key);
|
|
22
|
-
};
|
|
23
|
-
const handleMouseDown = (event) => {
|
|
24
|
-
callEventHandler(local.onMouseDown, event);
|
|
25
|
-
event.preventDefault();
|
|
26
|
-
};
|
|
27
|
-
const handleClick = (event) => {
|
|
28
|
-
callEventHandler(local.onClick, event);
|
|
29
|
-
context.selectItem(local.item);
|
|
30
|
-
};
|
|
31
|
-
return (<ComboboxItemContext.Provider value={{ item: local.item, selected: selected(), highlighted: highlighted() }}>
|
|
32
|
-
<li id={context.getItemId(local.item.key)} ref={itemRef} class={rootClass()} role="option" aria-selected={selected()} data-selected={selected() ? '' : undefined} data-highlighted={highlighted() ? '' : undefined} data-disabled={local.item.disabled ? '' : undefined} onMouseEnter={handleMouseEnter} onMouseDown={handleMouseDown} onClick={handleClick} {...rest}>
|
|
33
|
-
{local.children}
|
|
34
|
-
</li>
|
|
35
|
-
</ComboboxItemContext.Provider>);
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=combobox-item.jsx.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-item.jsx","sourceRoot":"","sources":["../../../../src/components/combobox/combobox-item.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,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CAAC,CAAC,WAAW,CAAC,CACrB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;GAAA,EAAE,EAAE,CACL;EAAA,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAC/B,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { createEffect, type JSX, splitProps } from 'solid-js';\nimport { comboboxClass } from './class';\nimport { ComboboxItemContext, useComboboxContext } from './context';\nimport type { ComboboxItemProps } from './types';\nimport { callEventHandler } from './util';\n\nexport function ComboboxItem<TOption = any>(props: ComboboxItemProps<TOption>) {\n\tconst context = useComboboxContext<TOption, any>();\n\tconst [local, rest] = splitProps(props, ['class', 'item', 'children', 'onMouseEnter', 'onMouseDown', 'onClick']);\n\tconst rootClass = () => clsx(comboboxClass.item, local.class);\n\tconst selected = () => context.selectedItem()?.key === local.item.key;\n\tconst highlighted = () => context.highlightedKey() === local.item.key;\n\tlet itemRef: HTMLLIElement | undefined;\n\n\tcreateEffect(() => {\n\t\tif (!highlighted() || !itemRef || !context.shouldScrollHighlightedItem()) {\n\t\t\treturn;\n\t\t}\n\n\t\titemRef.scrollIntoView({ block: 'nearest' });\n\t});\n\n\tconst handleMouseEnter: JSX.EventHandlerUnion<HTMLLIElement, MouseEvent> = (event) => {\n\t\tcallEventHandler(local.onMouseEnter, event);\n\t\tcontext.setHighlightedKey(local.item.key);\n\t};\n\n\tconst handleMouseDown: JSX.EventHandlerUnion<HTMLLIElement, MouseEvent> = (event) => {\n\t\tcallEventHandler(local.onMouseDown, event);\n\t\tevent.preventDefault();\n\t};\n\n\tconst handleClick: JSX.EventHandlerUnion<HTMLLIElement, MouseEvent> = (event) => {\n\t\tcallEventHandler(local.onClick, event);\n\t\tcontext.selectItem(local.item);\n\t};\n\n\treturn (\n\t\t<ComboboxItemContext.Provider value={{ item: local.item, selected: selected(), highlighted: highlighted() }}>\n\t\t\t<li\n\t\t\t\tid={context.getItemId(local.item.key)}\n\t\t\t\tref={itemRef}\n\t\t\t\tclass={rootClass()}\n\t\t\t\trole=\"option\"\n\t\t\t\taria-selected={selected()}\n\t\t\t\tdata-selected={selected() ? '' : undefined}\n\t\t\t\tdata-highlighted={highlighted() ? '' : undefined}\n\t\t\t\tdata-disabled={local.item.disabled ? '' : undefined}\n\t\t\t\tonMouseEnter={handleMouseEnter}\n\t\t\t\tonMouseDown={handleMouseDown}\n\t\t\t\tonClick={handleClick}\n\t\t\t\t{...rest}\n\t\t\t>\n\t\t\t\t{local.children}\n\t\t\t</li>\n\t\t</ComboboxItemContext.Provider>\n\t);\n}\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.fl-combobox_listbox {
|
|
3
|
-
--fl-combobox-listbox-pad: var(--fl-size-2);
|
|
4
|
-
|
|
5
|
-
/* reset */
|
|
6
|
-
list-style: none;
|
|
7
|
-
|
|
8
|
-
/* layout */
|
|
9
|
-
max-height: inherit;
|
|
10
|
-
overflow-y: auto;
|
|
11
|
-
scroll-padding-block: var(--fl-combobox-listbox-pad);
|
|
12
|
-
|
|
13
|
-
/* spacing */
|
|
14
|
-
margin: 0;
|
|
15
|
-
padding: var(--fl-combobox-listbox-pad);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.fl-combobox_listbox:focus {
|
|
19
|
-
outline: none;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx/lite';
|
|
2
|
-
import { For, Show, splitProps } from 'solid-js';
|
|
3
|
-
import { comboboxClass } from './class';
|
|
4
|
-
import { ComboboxGroup } from './combobox-group';
|
|
5
|
-
import { ComboboxItem } from './combobox-item';
|
|
6
|
-
import { ComboboxItemIndicator } from './combobox-item-indicator';
|
|
7
|
-
import { ComboboxItemLabel } from './combobox-item-label';
|
|
8
|
-
import { useComboboxContext } from './context';
|
|
9
|
-
function DefaultItemComponent(props) {
|
|
10
|
-
return (<ComboboxItem item={props.item}>
|
|
11
|
-
<ComboboxItemLabel>{props.item.textValue}</ComboboxItemLabel>
|
|
12
|
-
<ComboboxItemIndicator />
|
|
13
|
-
</ComboboxItem>);
|
|
14
|
-
}
|
|
15
|
-
function DefaultGroupComponent(props) {
|
|
16
|
-
return <ComboboxGroup>{props.group.textValue}</ComboboxGroup>;
|
|
17
|
-
}
|
|
18
|
-
export function ComboboxListbox(props) {
|
|
19
|
-
const context = useComboboxContext();
|
|
20
|
-
const [local, rest] = splitProps(props, ['class', 'children']);
|
|
21
|
-
const rootClass = () => clsx(comboboxClass.listbox, local.class);
|
|
22
|
-
const ItemComponent = () => context.itemComponent ?? DefaultItemComponent;
|
|
23
|
-
const GroupComponent = () => context.groupComponent ?? DefaultGroupComponent;
|
|
24
|
-
return (<ul id={`${context.rootId}-listbox`} class={rootClass()} role="listbox" {...rest}>
|
|
25
|
-
{local.children ?? (<For each={context.visibleGroups()}>
|
|
26
|
-
{(group) => {
|
|
27
|
-
const GroupRenderer = GroupComponent();
|
|
28
|
-
const ItemRenderer = ItemComponent();
|
|
29
|
-
return (<>
|
|
30
|
-
<Show when={group.rawValue !== undefined}>
|
|
31
|
-
<GroupRenderer group={group}/>
|
|
32
|
-
</Show>
|
|
33
|
-
<For each={group.items}>{(item) => <ItemRenderer item={item}/>}</For>
|
|
34
|
-
</>);
|
|
35
|
-
}}
|
|
36
|
-
</For>)}
|
|
37
|
-
</ul>);
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=combobox-listbox.jsx.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-listbox.jsx","sourceRoot":"","sources":["../../../../src/components/combobox/combobox-listbox.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,a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AAC,CAChC,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,CAAC,SAAS,CACd,IAAI,IAAI,CAAC,CAET;GAAA,CAAC,KAAK,CAAC,QAAQ,IAAI,CAClB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC,CAClC;KAAA,CAAC,CAAC,KAAK,EAAE,EAAE;gBACV,MAAM,aAAa,GAAG,cAAc,EAAE,CAAC;gBACvC,MAAM,YAAY,GAAG,aAAa,EAAE,CAAC;gBAErC,OAAO,CACN,EACC;QAAA,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ,KAAK,SAAS,CAAC,CACxC;SAAA,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAC7B;QAAA,EAAE,IAAI,CACN;QAAA,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAG,CAAC,EAAE,GAAG,CACtE;OAAA,GAAG,CACH,CAAC;YACH,CAAC,CACF;IAAA,EAAE,GAAG,CAAC,CACN,CACF;EAAA,EAAE,EAAE,CAAC,CACL,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { For, Show, splitProps } from 'solid-js';\nimport { comboboxClass } from './class';\nimport { ComboboxGroup } from './combobox-group';\nimport { ComboboxItem } from './combobox-item';\nimport { ComboboxItemIndicator } from './combobox-item-indicator';\nimport { ComboboxItemLabel } from './combobox-item-label';\nimport { useComboboxContext } from './context';\nimport type { ComboboxListboxProps, ComboboxRenderGroupProps, ComboboxRenderItemProps } from './types';\n\nfunction DefaultItemComponent<TOption>(props: ComboboxRenderItemProps<TOption>) {\n\treturn (\n\t\t<ComboboxItem item={props.item}>\n\t\t\t<ComboboxItemLabel>{props.item.textValue}</ComboboxItemLabel>\n\t\t\t<ComboboxItemIndicator />\n\t\t</ComboboxItem>\n\t);\n}\n\nfunction DefaultGroupComponent<TOptionGroup>(props: ComboboxRenderGroupProps<TOptionGroup>) {\n\treturn <ComboboxGroup>{props.group.textValue}</ComboboxGroup>;\n}\n\nexport function ComboboxListbox<TOption = any, TOptionGroup = never>(props: ComboboxListboxProps) {\n\tconst context = useComboboxContext<TOption, TOptionGroup>();\n\tconst [local, rest] = splitProps(props, ['class', 'children']);\n\tconst rootClass = () => clsx(comboboxClass.listbox, local.class);\n\tconst ItemComponent = () => context.itemComponent ?? DefaultItemComponent<TOption>;\n\tconst GroupComponent = () => context.groupComponent ?? DefaultGroupComponent<TOptionGroup>;\n\n\treturn (\n\t\t<ul\n\t\t\tid={`${context.rootId}-listbox`}\n\t\t\tclass={rootClass()}\n\t\t\trole=\"listbox\"\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children ?? (\n\t\t\t\t<For each={context.visibleGroups()}>\n\t\t\t\t\t{(group) => {\n\t\t\t\t\t\tconst GroupRenderer = GroupComponent();\n\t\t\t\t\t\tconst ItemRenderer = ItemComponent();\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<Show when={group.rawValue !== undefined}>\n\t\t\t\t\t\t\t\t\t<GroupRenderer group={group} />\n\t\t\t\t\t\t\t\t</Show>\n\t\t\t\t\t\t\t\t<For each={group.items}>{(item) => <ItemRenderer item={item} />}</For>\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t);\n\t\t\t\t\t}}\n\t\t\t\t</For>\n\t\t\t)}\n\t\t</ul>\n\t);\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-portal.jsx","sourceRoot":"","sources":["../../../../src/components/combobox/combobox-portal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGpC,MAAM,UAAU,cAAc,CAAC,KAA0B;IACxD,MAAM,gBAAgB,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAExD,OAAO,EAAE,CAAC,gBAAgB,EAAE,CAAC,GAAG,CAAC;AAClC,CAAC","sourcesContent":["import { children } from 'solid-js';\nimport type { ComboboxPortalProps } from './types';\n\nexport function ComboboxPortal(props: ComboboxPortalProps) {\n\tconst resolvedChildren = children(() => props.children);\n\n\treturn <>{resolvedChildren()}</>;\n}\n"]}
|