@edo-w/flatline-solid 0.2.0
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/src/components/button/button.css +155 -0
- package/dist/src/components/button/button.d.ts +9 -0
- package/dist/src/components/button/button.jsx +21 -0
- package/dist/src/components/button/button.jsx.map +1 -0
- package/dist/src/components/button/class.d.ts +16 -0
- package/dist/src/components/button/class.js +15 -0
- package/dist/src/components/button/class.js.map +1 -0
- package/dist/src/components/button/index.d.ts +2 -0
- package/dist/src/components/button/index.js +3 -0
- package/dist/src/components/button/index.js.map +1 -0
- package/dist/src/components/card/card-action.css +15 -0
- package/dist/src/components/card/card-content.css +13 -0
- package/dist/src/components/card/card-footer.css +39 -0
- package/dist/src/components/card/card-header.css +13 -0
- package/dist/src/components/card/card-root.css +31 -0
- package/dist/src/components/card/card-subtitle.css +12 -0
- package/dist/src/components/card/card-title.css +33 -0
- package/dist/src/components/card/card.d.ts +42 -0
- package/dist/src/components/card/card.jsx +86 -0
- package/dist/src/components/card/card.jsx.map +1 -0
- package/dist/src/components/card/class.d.ts +28 -0
- package/dist/src/components/card/class.js +27 -0
- package/dist/src/components/card/class.js.map +1 -0
- package/dist/src/components/card/index.d.ts +2 -0
- package/dist/src/components/card/index.js +3 -0
- package/dist/src/components/card/index.js.map +1 -0
- package/dist/src/components/checkbox/checkbox-group.css +9 -0
- package/dist/src/components/checkbox/checkbox-group.d.ts +3 -0
- package/dist/src/components/checkbox/checkbox-group.jsx +43 -0
- package/dist/src/components/checkbox/checkbox-group.jsx.map +1 -0
- package/dist/src/components/checkbox/checkbox-root.css +85 -0
- package/dist/src/components/checkbox/checkbox-root.d.ts +4 -0
- package/dist/src/components/checkbox/checkbox-root.jsx +55 -0
- package/dist/src/components/checkbox/checkbox-root.jsx.map +1 -0
- package/dist/src/components/checkbox/checkbox.d.ts +9 -0
- package/dist/src/components/checkbox/checkbox.jsx +6 -0
- package/dist/src/components/checkbox/checkbox.jsx.map +1 -0
- package/dist/src/components/checkbox/class.d.ts +8 -0
- package/dist/src/components/checkbox/class.js +9 -0
- package/dist/src/components/checkbox/class.js.map +1 -0
- package/dist/src/components/checkbox/context.d.ts +9 -0
- package/dist/src/components/checkbox/context.js +6 -0
- package/dist/src/components/checkbox/context.js.map +1 -0
- package/dist/src/components/checkbox/index.d.ts +6 -0
- package/dist/src/components/checkbox/index.js +7 -0
- package/dist/src/components/checkbox/index.js.map +1 -0
- package/dist/src/components/checkbox/types.d.ts +16 -0
- package/dist/src/components/checkbox/types.js +1 -0
- package/dist/src/components/checkbox/types.js.map +1 -0
- package/dist/src/components/combobox/class.d.ts +13 -0
- package/dist/src/components/combobox/class.js +14 -0
- package/dist/src/components/combobox/class.js.map +1 -0
- package/dist/src/components/combobox/combobox-content.css +20 -0
- package/dist/src/components/combobox/combobox-content.d.ts +2 -0
- package/dist/src/components/combobox/combobox-content.jsx +15 -0
- package/dist/src/components/combobox/combobox-content.jsx.map +1 -0
- package/dist/src/components/combobox/combobox-control.css +29 -0
- package/dist/src/components/combobox/combobox-control.d.ts +3 -0
- package/dist/src/components/combobox/combobox-control.jsx +19 -0
- package/dist/src/components/combobox/combobox-control.jsx.map +1 -0
- package/dist/src/components/combobox/combobox-group.css +31 -0
- package/dist/src/components/combobox/combobox-group.d.ts +2 -0
- package/dist/src/components/combobox/combobox-group.jsx +12 -0
- package/dist/src/components/combobox/combobox-group.jsx.map +1 -0
- package/dist/src/components/combobox/combobox-hidden-select.d.ts +2 -0
- package/dist/src/components/combobox/combobox-hidden-select.jsx +8 -0
- package/dist/src/components/combobox/combobox-hidden-select.jsx.map +1 -0
- package/dist/src/components/combobox/combobox-icon.css +11 -0
- package/dist/src/components/combobox/combobox-icon.d.ts +2 -0
- package/dist/src/components/combobox/combobox-icon.jsx +12 -0
- package/dist/src/components/combobox/combobox-icon.jsx.map +1 -0
- package/dist/src/components/combobox/combobox-input.css +32 -0
- package/dist/src/components/combobox/combobox-input.d.ts +3 -0
- package/dist/src/components/combobox/combobox-input.jsx +90 -0
- package/dist/src/components/combobox/combobox-input.jsx.map +1 -0
- package/dist/src/components/combobox/combobox-item-indicator.css +11 -0
- package/dist/src/components/combobox/combobox-item-indicator.d.ts +2 -0
- package/dist/src/components/combobox/combobox-item-indicator.jsx +16 -0
- package/dist/src/components/combobox/combobox-item-indicator.jsx.map +1 -0
- package/dist/src/components/combobox/combobox-item-label.d.ts +2 -0
- package/dist/src/components/combobox/combobox-item-label.jsx +13 -0
- package/dist/src/components/combobox/combobox-item-label.jsx.map +1 -0
- package/dist/src/components/combobox/combobox-item.css +48 -0
- package/dist/src/components/combobox/combobox-item.d.ts +3 -0
- package/dist/src/components/combobox/combobox-item.jsx +30 -0
- package/dist/src/components/combobox/combobox-item.jsx.map +1 -0
- package/dist/src/components/combobox/combobox-listbox.css +18 -0
- package/dist/src/components/combobox/combobox-listbox.d.ts +2 -0
- package/dist/src/components/combobox/combobox-listbox.jsx +39 -0
- package/dist/src/components/combobox/combobox-listbox.jsx.map +1 -0
- package/dist/src/components/combobox/combobox-portal.d.ts +2 -0
- package/dist/src/components/combobox/combobox-portal.jsx +6 -0
- package/dist/src/components/combobox/combobox-portal.jsx.map +1 -0
- package/dist/src/components/combobox/combobox-root.css +12 -0
- package/dist/src/components/combobox/combobox-root.d.ts +3 -0
- package/dist/src/components/combobox/combobox-root.jsx +362 -0
- package/dist/src/components/combobox/combobox-root.jsx.map +1 -0
- package/dist/src/components/combobox/combobox-trigger.css +31 -0
- package/dist/src/components/combobox/combobox-trigger.d.ts +3 -0
- package/dist/src/components/combobox/combobox-trigger.jsx +30 -0
- package/dist/src/components/combobox/combobox-trigger.jsx.map +1 -0
- package/dist/src/components/combobox/combobox.d.ts +43 -0
- package/dist/src/components/combobox/combobox.jsx +39 -0
- package/dist/src/components/combobox/combobox.jsx.map +1 -0
- package/dist/src/components/combobox/context.d.ts +45 -0
- package/dist/src/components/combobox/context.js +18 -0
- package/dist/src/components/combobox/context.js.map +1 -0
- package/dist/src/components/combobox/index.d.ts +2 -0
- package/dist/src/components/combobox/index.js +3 -0
- package/dist/src/components/combobox/index.js.map +1 -0
- package/dist/src/components/combobox/types.d.ts +68 -0
- package/dist/src/components/combobox/types.js +1 -0
- package/dist/src/components/combobox/types.js.map +1 -0
- package/dist/src/components/combobox/util.d.ts +6 -0
- package/dist/src/components/combobox/util.js +58 -0
- package/dist/src/components/combobox/util.js.map +1 -0
- package/dist/src/components/dialog/class.d.ts +18 -0
- package/dist/src/components/dialog/class.js +18 -0
- package/dist/src/components/dialog/class.js.map +1 -0
- package/dist/src/components/dialog/dialog-close-button.css +48 -0
- package/dist/src/components/dialog/dialog-content.css +89 -0
- package/dist/src/components/dialog/dialog-description.css +6 -0
- package/dist/src/components/dialog/dialog-header.css +12 -0
- package/dist/src/components/dialog/dialog-overlay.css +43 -0
- package/dist/src/components/dialog/dialog-positioner.css +14 -0
- package/dist/src/components/dialog/dialog-title.css +6 -0
- package/dist/src/components/dialog/dialog-trigger.css +63 -0
- package/dist/src/components/dialog/dialog.d.ts +50 -0
- package/dist/src/components/dialog/dialog.jsx +89 -0
- package/dist/src/components/dialog/dialog.jsx.map +1 -0
- package/dist/src/components/dialog/index.d.ts +2 -0
- package/dist/src/components/dialog/index.js +3 -0
- package/dist/src/components/dialog/index.js.map +1 -0
- package/dist/src/components/dropdown-menu/class.d.ts +16 -0
- package/dist/src/components/dropdown-menu/class.js +17 -0
- package/dist/src/components/dropdown-menu/class.js.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-arrow.css +7 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-arrow.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-arrow.jsx +10 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-arrow.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.css +38 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.jsx +10 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-content.css +50 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-content.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-content.jsx +10 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-content.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-group-label.css +15 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-group-label.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-group-label.jsx +10 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-group-label.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-group.d.ts +2 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-group.jsx +7 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-group.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-icon.css +21 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-icon.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-icon.jsx +10 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-icon.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.css +12 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.jsx +10 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.css +18 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.jsx +11 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-item.css +37 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-item.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-item.jsx +10 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-item.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-portal.d.ts +2 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-portal.jsx +5 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-portal.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-group.d.ts +2 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-group.jsx +7 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-group.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.css +38 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.jsx +10 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-root.d.ts +2 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-root.jsx +5 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-root.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-separator.css +11 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-separator.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-separator.jsx +10 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-separator.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.css +26 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.jsx +10 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.css +43 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.jsx +10 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-sub.d.ts +2 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-sub.jsx +5 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-sub.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-trigger.css +6 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-trigger.d.ts +3 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-trigger.jsx +16 -0
- package/dist/src/components/dropdown-menu/dropdown-menu-trigger.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/dropdown-menu.d.ts +43 -0
- package/dist/src/components/dropdown-menu/dropdown-menu.jsx +39 -0
- package/dist/src/components/dropdown-menu/dropdown-menu.jsx.map +1 -0
- package/dist/src/components/dropdown-menu/index.d.ts +21 -0
- package/dist/src/components/dropdown-menu/index.js +22 -0
- package/dist/src/components/dropdown-menu/index.js.map +1 -0
- package/dist/src/components/dropdown-menu/types.d.ts +21 -0
- package/dist/src/components/dropdown-menu/types.js +1 -0
- package/dist/src/components/dropdown-menu/types.js.map +1 -0
- package/dist/src/components/input/class.d.ts +3 -0
- package/dist/src/components/input/class.js +4 -0
- package/dist/src/components/input/class.js.map +1 -0
- package/dist/src/components/input/index.d.ts +2 -0
- package/dist/src/components/input/index.js +3 -0
- package/dist/src/components/input/index.js.map +1 -0
- package/dist/src/components/input/input.css +34 -0
- package/dist/src/components/input/input.d.ts +6 -0
- package/dist/src/components/input/input.jsx +10 -0
- package/dist/src/components/input/input.jsx.map +1 -0
- package/dist/src/components/label/class.d.ts +3 -0
- package/dist/src/components/label/class.js +4 -0
- package/dist/src/components/label/class.js.map +1 -0
- package/dist/src/components/label/index.d.ts +2 -0
- package/dist/src/components/label/index.js +3 -0
- package/dist/src/components/label/index.js.map +1 -0
- package/dist/src/components/label/label.css +16 -0
- package/dist/src/components/label/label.d.ts +6 -0
- package/dist/src/components/label/label.jsx +12 -0
- package/dist/src/components/label/label.jsx.map +1 -0
- package/dist/src/components/progress-bar/class.d.ts +4 -0
- package/dist/src/components/progress-bar/class.js +5 -0
- package/dist/src/components/progress-bar/class.js.map +1 -0
- package/dist/src/components/progress-bar/index.d.ts +2 -0
- package/dist/src/components/progress-bar/index.js +3 -0
- package/dist/src/components/progress-bar/index.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.css +43 -0
- package/dist/src/components/progress-bar/progress-bar.d.ts +9 -0
- package/dist/src/components/progress-bar/progress-bar.jsx +24 -0
- package/dist/src/components/progress-bar/progress-bar.jsx.map +1 -0
- package/dist/src/components/radio/class.d.ts +8 -0
- package/dist/src/components/radio/class.js +9 -0
- package/dist/src/components/radio/class.js.map +1 -0
- package/dist/src/components/radio/context.d.ts +9 -0
- package/dist/src/components/radio/context.js +6 -0
- package/dist/src/components/radio/context.js.map +1 -0
- package/dist/src/components/radio/index.d.ts +6 -0
- package/dist/src/components/radio/index.js +7 -0
- package/dist/src/components/radio/index.js.map +1 -0
- package/dist/src/components/radio/radio-group.css +9 -0
- package/dist/src/components/radio/radio-group.d.ts +3 -0
- package/dist/src/components/radio/radio-group.jsx +33 -0
- package/dist/src/components/radio/radio-group.jsx.map +1 -0
- package/dist/src/components/radio/radio-root.css +75 -0
- package/dist/src/components/radio/radio-root.d.ts +4 -0
- package/dist/src/components/radio/radio-root.jsx +51 -0
- package/dist/src/components/radio/radio-root.jsx.map +1 -0
- package/dist/src/components/radio/radio.d.ts +11 -0
- package/dist/src/components/radio/radio.jsx +7 -0
- package/dist/src/components/radio/radio.jsx.map +1 -0
- package/dist/src/components/radio/types.d.ts +16 -0
- package/dist/src/components/radio/types.js +1 -0
- package/dist/src/components/radio/types.js.map +1 -0
- package/dist/src/components/select/class.d.ts +5 -0
- package/dist/src/components/select/class.js +6 -0
- package/dist/src/components/select/class.js.map +1 -0
- package/dist/src/components/select/index.d.ts +2 -0
- package/dist/src/components/select/index.js +3 -0
- package/dist/src/components/select/index.js.map +1 -0
- package/dist/src/components/select/select.css +76 -0
- package/dist/src/components/select/select.d.ts +6 -0
- package/dist/src/components/select/select.jsx +16 -0
- package/dist/src/components/select/select.jsx.map +1 -0
- package/dist/src/components/slider/class.d.ts +3 -0
- package/dist/src/components/slider/class.js +4 -0
- package/dist/src/components/slider/class.js.map +1 -0
- package/dist/src/components/slider/index.d.ts +2 -0
- package/dist/src/components/slider/index.js +3 -0
- package/dist/src/components/slider/index.js.map +1 -0
- package/dist/src/components/slider/slider.css +83 -0
- package/dist/src/components/slider/slider.d.ts +7 -0
- package/dist/src/components/slider/slider.jsx +19 -0
- package/dist/src/components/slider/slider.jsx.map +1 -0
- package/dist/src/components/spinner/class.d.ts +10 -0
- package/dist/src/components/spinner/class.js +10 -0
- package/dist/src/components/spinner/class.js.map +1 -0
- package/dist/src/components/spinner/index.d.ts +2 -0
- package/dist/src/components/spinner/index.js +3 -0
- package/dist/src/components/spinner/index.js.map +1 -0
- package/dist/src/components/spinner/spinner.css +51 -0
- package/dist/src/components/spinner/spinner.d.ts +9 -0
- package/dist/src/components/spinner/spinner.jsx +22 -0
- package/dist/src/components/spinner/spinner.jsx.map +1 -0
- package/dist/src/components/switch/class.d.ts +7 -0
- package/dist/src/components/switch/class.js +8 -0
- package/dist/src/components/switch/class.js.map +1 -0
- package/dist/src/components/switch/index.d.ts +2 -0
- package/dist/src/components/switch/index.js +3 -0
- package/dist/src/components/switch/index.js.map +1 -0
- package/dist/src/components/switch/switch.css +90 -0
- package/dist/src/components/switch/switch.d.ts +9 -0
- package/dist/src/components/switch/switch.jsx +28 -0
- package/dist/src/components/switch/switch.jsx.map +1 -0
- package/dist/src/components/table/class.d.ts +10 -0
- package/dist/src/components/table/class.js +11 -0
- package/dist/src/components/table/class.js.map +1 -0
- package/dist/src/components/table/index.d.ts +11 -0
- package/dist/src/components/table/index.js +12 -0
- package/dist/src/components/table/index.js.map +1 -0
- package/dist/src/components/table/table-body.d.ts +2 -0
- package/dist/src/components/table/table-body.jsx +10 -0
- package/dist/src/components/table/table-body.jsx.map +1 -0
- package/dist/src/components/table/table-caption.css +11 -0
- package/dist/src/components/table/table-caption.d.ts +3 -0
- package/dist/src/components/table/table-caption.jsx +11 -0
- package/dist/src/components/table/table-caption.jsx.map +1 -0
- package/dist/src/components/table/table-cell.css +12 -0
- package/dist/src/components/table/table-cell.d.ts +3 -0
- package/dist/src/components/table/table-cell.jsx +11 -0
- package/dist/src/components/table/table-cell.jsx.map +1 -0
- package/dist/src/components/table/table-footer.css +15 -0
- package/dist/src/components/table/table-footer.d.ts +3 -0
- package/dist/src/components/table/table-footer.jsx +11 -0
- package/dist/src/components/table/table-footer.jsx.map +1 -0
- package/dist/src/components/table/table-head.css +16 -0
- package/dist/src/components/table/table-head.d.ts +3 -0
- package/dist/src/components/table/table-head.jsx +11 -0
- package/dist/src/components/table/table-head.jsx.map +1 -0
- package/dist/src/components/table/table-header.d.ts +2 -0
- package/dist/src/components/table/table-header.jsx +10 -0
- package/dist/src/components/table/table-header.jsx.map +1 -0
- package/dist/src/components/table/table-root.css +12 -0
- package/dist/src/components/table/table-root.d.ts +3 -0
- package/dist/src/components/table/table-root.jsx +11 -0
- package/dist/src/components/table/table-root.jsx.map +1 -0
- package/dist/src/components/table/table-row.css +6 -0
- package/dist/src/components/table/table-row.d.ts +3 -0
- package/dist/src/components/table/table-row.jsx +11 -0
- package/dist/src/components/table/table-row.jsx.map +1 -0
- package/dist/src/components/table/table.d.ts +23 -0
- package/dist/src/components/table/table.jsx +19 -0
- package/dist/src/components/table/table.jsx.map +1 -0
- package/dist/src/components/table/types.d.ts +9 -0
- package/dist/src/components/table/types.js +1 -0
- package/dist/src/components/table/types.js.map +1 -0
- package/dist/src/components/tabs/class.d.ts +12 -0
- package/dist/src/components/tabs/class.js +12 -0
- package/dist/src/components/tabs/class.js.map +1 -0
- package/dist/src/components/tabs/index.d.ts +2 -0
- package/dist/src/components/tabs/index.js +3 -0
- package/dist/src/components/tabs/index.js.map +1 -0
- package/dist/src/components/tabs/tabs-content.css +24 -0
- package/dist/src/components/tabs/tabs-indicator.css +32 -0
- package/dist/src/components/tabs/tabs-list.css +26 -0
- package/dist/src/components/tabs/tabs-root.css +34 -0
- package/dist/src/components/tabs/tabs-trigger.css +58 -0
- package/dist/src/components/tabs/tabs.d.ts +27 -0
- package/dist/src/components/tabs/tabs.jsx +47 -0
- package/dist/src/components/tabs/tabs.jsx.map +1 -0
- package/dist/src/components/textarea/class.d.ts +3 -0
- package/dist/src/components/textarea/class.js +4 -0
- package/dist/src/components/textarea/class.js.map +1 -0
- package/dist/src/components/textarea/index.d.ts +2 -0
- package/dist/src/components/textarea/index.js +3 -0
- package/dist/src/components/textarea/index.js.map +1 -0
- package/dist/src/components/textarea/textarea.css +46 -0
- package/dist/src/components/textarea/textarea.d.ts +6 -0
- package/dist/src/components/textarea/textarea.jsx +10 -0
- package/dist/src/components/textarea/textarea.jsx.map +1 -0
- package/dist/src/components/xstack/class.d.ts +12 -0
- package/dist/src/components/xstack/class.js +12 -0
- package/dist/src/components/xstack/class.js.map +1 -0
- package/dist/src/components/xstack/index.d.ts +1 -0
- package/dist/src/components/xstack/index.js +1 -0
- package/dist/src/components/xstack/index.js.map +1 -0
- package/dist/src/components/xstack/xstack.css +34 -0
- package/dist/src/components/xstack/xstack.d.ts +9 -0
- package/dist/src/components/xstack/xstack.jsx +15 -0
- package/dist/src/components/xstack/xstack.jsx.map +1 -0
- package/dist/src/components/ystack/class.d.ts +11 -0
- package/dist/src/components/ystack/class.js +11 -0
- package/dist/src/components/ystack/class.js.map +1 -0
- package/dist/src/components/ystack/index.d.ts +2 -0
- package/dist/src/components/ystack/index.js +3 -0
- package/dist/src/components/ystack/index.js.map +1 -0
- package/dist/src/components/ystack/ystack.css +31 -0
- package/dist/src/components/ystack/ystack.d.ts +9 -0
- package/dist/src/components/ystack/ystack.jsx +15 -0
- package/dist/src/components/ystack/ystack.jsx.map +1 -0
- package/dist/src/icons/check-icon.d.ts +2 -0
- package/dist/src/icons/check-icon.jsx +8 -0
- package/dist/src/icons/check-icon.jsx.map +1 -0
- package/dist/src/icons/chevron-down-icon.d.ts +2 -0
- package/dist/src/icons/chevron-down-icon.jsx +8 -0
- package/dist/src/icons/chevron-down-icon.jsx.map +1 -0
- package/dist/src/icons/chevron-right-icon.d.ts +2 -0
- package/dist/src/icons/chevron-right-icon.jsx +8 -0
- package/dist/src/icons/chevron-right-icon.jsx.map +1 -0
- package/dist/src/icons/dot-filled-icon.d.ts +2 -0
- package/dist/src/icons/dot-filled-icon.jsx +8 -0
- package/dist/src/icons/dot-filled-icon.jsx.map +1 -0
- package/dist/src/icons/index.d.ts +5 -0
- package/dist/src/icons/index.js +6 -0
- package/dist/src/icons/index.js.map +1 -0
- package/dist/src/icons/types.d.ts +5 -0
- package/dist/src/icons/types.js +1 -0
- package/dist/src/icons/types.js.map +1 -0
- package/dist/src/index.d.ts +19 -0
- package/dist/src/index.js +20 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/lib/reflect.d.ts +1 -0
- package/dist/src/lib/reflect.js +4 -0
- package/dist/src/lib/reflect.js.map +1 -0
- package/dist/src/style/colors.css +267 -0
- package/dist/src/style/flatline.css +12 -0
- package/dist/src/style/reset.css +175 -0
- package/dist/src/style/tokens.css +139 -0
- package/package.json +48 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.fl-progress-bar {
|
|
3
|
+
/* layout */
|
|
4
|
+
position: relative;
|
|
5
|
+
display: block;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: var(--fl-size-2);
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
|
|
10
|
+
/* background */
|
|
11
|
+
background: color-mix(in oklab, var(--fl-body-bg-color), black 8%);
|
|
12
|
+
border-radius: 2px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.fl-progress-bar .fl-progress-bar_indicator {
|
|
16
|
+
/* layout */
|
|
17
|
+
display: block;
|
|
18
|
+
height: 100%;
|
|
19
|
+
|
|
20
|
+
/* background */
|
|
21
|
+
background: var(--fl-primary-color);
|
|
22
|
+
border-radius: inherit;
|
|
23
|
+
|
|
24
|
+
/* effects */
|
|
25
|
+
transition: width var(--fl-animation-duration) ease;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.fl-progress-bar[data-indeterminate] .fl-progress-bar_indicator {
|
|
29
|
+
/* biome-ignore lint/complexity/noImportantStyles: required to override the inline width used for determinate progress */
|
|
30
|
+
width: 35% !important;
|
|
31
|
+
animation: fl-progress-bar-indeterminate 1.2s ease-in-out infinite;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@keyframes fl-progress-bar-indeterminate {
|
|
35
|
+
from {
|
|
36
|
+
transform: translateX(-100%);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
to {
|
|
40
|
+
transform: translateX(300%);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
import './progress-bar.css';
|
|
3
|
+
export type ProgressBarBaseProps = JSX.HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
export interface ProgressBarProps extends ProgressBarBaseProps {
|
|
5
|
+
value?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
indeterminate?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function ProgressBar(props: ProgressBarProps): JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import clsx from 'clsx/lite';
|
|
2
|
+
import { mergeProps, splitProps } from 'solid-js';
|
|
3
|
+
import { progressBarClass } from './class';
|
|
4
|
+
import './progress-bar.css';
|
|
5
|
+
export function ProgressBar(props) {
|
|
6
|
+
const merged = mergeProps({
|
|
7
|
+
max: 100,
|
|
8
|
+
value: 0,
|
|
9
|
+
indeterminate: false,
|
|
10
|
+
}, props);
|
|
11
|
+
const [local, rest] = splitProps(merged, ['class', 'value', 'max', 'indeterminate']);
|
|
12
|
+
const clampedValue = () => Math.max(0, Math.min(local.value, local.max));
|
|
13
|
+
const percent = () => {
|
|
14
|
+
if (local.max <= 0) {
|
|
15
|
+
return 0;
|
|
16
|
+
}
|
|
17
|
+
return (clampedValue() / local.max) * 100;
|
|
18
|
+
};
|
|
19
|
+
const rootClass = () => clsx(progressBarClass.root, local.class);
|
|
20
|
+
return (<div class={rootClass()} role="progressbar" aria-valuemin={0} aria-valuemax={local.max} aria-valuenow={local.indeterminate ? undefined : clampedValue()} data-indeterminate={local.indeterminate ? '' : undefined} {...rest}>
|
|
21
|
+
<span class={progressBarClass.indicator} style={local.indeterminate ? undefined : { width: `${percent()}%` }}/>
|
|
22
|
+
</div>);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=progress-bar.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-bar.jsx","sourceRoot":"","sources":["../../../../src/components/progress-bar/progress-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,oBAAoB,CAAC;AAU5B,MAAM,UAAU,WAAW,CAAC,KAAuB;IAClD,MAAM,MAAM,GAAG,UAAU,CACxB;QACC,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,CAAC;QACR,aAAa,EAAE,KAAK;KACX,EACV,KAAK,CACL,CAAC;IACF,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC;IAErF,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IACzE,MAAM,OAAO,GAAG,GAAG,EAAE;QACpB,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;YACpB,OAAO,CAAC,CAAC;QACV,CAAC;QAED,OAAO,CAAC,YAAY,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IAC3C,CAAC,CAAC;IACF,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAEjE,OAAO,CACN,CAAC,GAAG,CACH,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,CAAC,aAAa,CAClB,aAAa,CAAC,CAAC,CAAC,CAAC,CACjB,aAAa,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CACzB,aAAa,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,CAChE,kBAAkB,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CACzD,IAAI,IAAI,CAAC,CAET;GAAA,CAAC,IAAI,CACJ,KAAK,CAAC,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAClC,KAAK,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,CAAC,EAEtE;EAAA,EAAE,GAAG,CAAC,CACN,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { type JSX, mergeProps, splitProps } from 'solid-js';\nimport { progressBarClass } from './class';\nimport './progress-bar.css';\n\nexport type ProgressBarBaseProps = JSX.HTMLAttributes<HTMLDivElement>;\n\nexport interface ProgressBarProps extends ProgressBarBaseProps {\n\tvalue?: number;\n\tmax?: number;\n\tindeterminate?: boolean;\n}\n\nexport function ProgressBar(props: ProgressBarProps) {\n\tconst merged = mergeProps(\n\t\t{\n\t\t\tmax: 100,\n\t\t\tvalue: 0,\n\t\t\tindeterminate: false,\n\t\t} as const,\n\t\tprops,\n\t);\n\tconst [local, rest] = splitProps(merged, ['class', 'value', 'max', 'indeterminate']);\n\n\tconst clampedValue = () => Math.max(0, Math.min(local.value, local.max));\n\tconst percent = () => {\n\t\tif (local.max <= 0) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn (clampedValue() / local.max) * 100;\n\t};\n\tconst rootClass = () => clsx(progressBarClass.root, local.class);\n\n\treturn (\n\t\t<div\n\t\t\tclass={rootClass()}\n\t\t\trole=\"progressbar\"\n\t\t\taria-valuemin={0}\n\t\t\taria-valuemax={local.max}\n\t\t\taria-valuenow={local.indeterminate ? undefined : clampedValue()}\n\t\t\tdata-indeterminate={local.indeterminate ? '' : undefined}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<span\n\t\t\t\tclass={progressBarClass.indicator}\n\t\t\t\tstyle={local.indeterminate ? undefined : { width: `${percent()}%` }}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/components/radio/class.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,gBAAgB;IACvB,OAAO,EAAE,kBAAkB;IAC3B,SAAS,EAAE,oBAAoB;IAC/B,KAAK,EAAE,gBAAgB;CACd,CAAC","sourcesContent":["export const radioClass = {\n\tgroup: 'fl-radio-group',\n\troot: 'fl-radio',\n\tinput: 'fl-radio_input',\n\tcontrol: 'fl-radio_control',\n\tindicator: 'fl-radio_indicator',\n\tlabel: 'fl-radio_label',\n} as const;\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Accessor } from 'solid-js';
|
|
2
|
+
export interface RadioGroupContextValue {
|
|
3
|
+
name: Accessor<string>;
|
|
4
|
+
value: Accessor<string | undefined>;
|
|
5
|
+
setValue: (value: string) => void;
|
|
6
|
+
disabled: Accessor<boolean>;
|
|
7
|
+
}
|
|
8
|
+
export declare const RadioGroupContext: import("solid-js").Context<RadioGroupContextValue | undefined>;
|
|
9
|
+
export declare function useRadioGroupContext(): RadioGroupContextValue | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/components/radio/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AASpE,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,EAA0B,CAAC;AAEzE,MAAM,UAAU,oBAAoB;IACnC,OAAO,UAAU,CAAC,iBAAiB,CAAC,CAAC;AACtC,CAAC","sourcesContent":["import { type Accessor, createContext, useContext } from 'solid-js';\n\nexport interface RadioGroupContextValue {\n\tname: Accessor<string>;\n\tvalue: Accessor<string | undefined>;\n\tsetValue: (value: string) => void;\n\tdisabled: Accessor<boolean>;\n}\n\nexport const RadioGroupContext = createContext<RadioGroupContextValue>();\n\nexport function useRadioGroupContext() {\n\treturn useContext(RadioGroupContext);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/radio/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC","sourcesContent":["export * from './class';\nexport * from './context';\nexport * from './radio';\nexport * from './radio-group';\nexport * from './radio-root';\nexport * from './types';\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import clsx from 'clsx/lite';
|
|
2
|
+
import { createSignal, createUniqueId, splitProps } from 'solid-js';
|
|
3
|
+
import { radioClass } from './class';
|
|
4
|
+
import { RadioGroupContext } from './context';
|
|
5
|
+
import './radio-group.css';
|
|
6
|
+
export function RadioGroup(props) {
|
|
7
|
+
const generatedName = createUniqueId();
|
|
8
|
+
const [local, rest] = splitProps(props, [
|
|
9
|
+
'class',
|
|
10
|
+
'children',
|
|
11
|
+
'value',
|
|
12
|
+
'defaultValue',
|
|
13
|
+
'name',
|
|
14
|
+
'disabled',
|
|
15
|
+
'onChange',
|
|
16
|
+
]);
|
|
17
|
+
const [internalValue, setInternalValue] = createSignal(local.defaultValue);
|
|
18
|
+
const value = () => local.value ?? internalValue();
|
|
19
|
+
const name = () => local.name ?? generatedName;
|
|
20
|
+
const disabled = () => Boolean(local.disabled);
|
|
21
|
+
const setValue = (nextValue) => {
|
|
22
|
+
if (local.value === undefined) {
|
|
23
|
+
setInternalValue(nextValue);
|
|
24
|
+
}
|
|
25
|
+
local.onChange?.(nextValue);
|
|
26
|
+
};
|
|
27
|
+
return (<RadioGroupContext.Provider value={{ name, value, setValue, disabled }}>
|
|
28
|
+
<div class={clsx(radioClass.group, local.class)} role="radiogroup" {...rest}>
|
|
29
|
+
{local.children}
|
|
30
|
+
</div>
|
|
31
|
+
</RadioGroupContext.Provider>);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=radio-group.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.jsx","sourceRoot":"","sources":["../../../../src/components/radio/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,mBAAmB,CAAC;AAE3B,MAAM,UAAU,UAAU,CAAC,KAAsB;IAChD,MAAM,aAAa,GAAG,cAAc,EAAE,CAAC;IACvC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE;QACvC,OAAO;QACP,UAAU;QACV,OAAO;QACP,cAAc;QACd,MAAM;QACN,UAAU;QACV,UAAU;KACV,CAAC,CAAC;IACH,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAE3E,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,aAAa,EAAE,CAAC;IACnD,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,IAAI,aAAa,CAAC;IAC/C,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC/C,MAAM,QAAQ,GAAG,CAAC,SAAiB,EAAE,EAAE;QACtC,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC/B,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC7B,CAAC;QAED,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,OAAO,CACN,CAAC,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CACtE;GAAA,CAAC,GAAG,CACH,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAC3C,IAAI,CAAC,YAAY,CACjB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;GAAA,EAAE,GAAG,CACN;EAAA,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAC7B,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { createSignal, createUniqueId, splitProps } from 'solid-js';\nimport { radioClass } from './class';\nimport { RadioGroupContext } from './context';\nimport type { RadioGroupProps } from './types';\nimport './radio-group.css';\n\nexport function RadioGroup(props: RadioGroupProps) {\n\tconst generatedName = createUniqueId();\n\tconst [local, rest] = splitProps(props, [\n\t\t'class',\n\t\t'children',\n\t\t'value',\n\t\t'defaultValue',\n\t\t'name',\n\t\t'disabled',\n\t\t'onChange',\n\t]);\n\tconst [internalValue, setInternalValue] = createSignal(local.defaultValue);\n\n\tconst value = () => local.value ?? internalValue();\n\tconst name = () => local.name ?? generatedName;\n\tconst disabled = () => Boolean(local.disabled);\n\tconst setValue = (nextValue: string) => {\n\t\tif (local.value === undefined) {\n\t\t\tsetInternalValue(nextValue);\n\t\t}\n\n\t\tlocal.onChange?.(nextValue);\n\t};\n\n\treturn (\n\t\t<RadioGroupContext.Provider value={{ name, value, setValue, disabled }}>\n\t\t\t<div\n\t\t\t\tclass={clsx(radioClass.group, local.class)}\n\t\t\t\trole=\"radiogroup\"\n\t\t\t\t{...rest}\n\t\t\t>\n\t\t\t\t{local.children}\n\t\t\t</div>\n\t\t</RadioGroupContext.Provider>\n\t);\n}\n"]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.fl-radio {
|
|
3
|
+
/* layout */
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
|
|
7
|
+
/* spacing */
|
|
8
|
+
gap: var(--fl-size-2);
|
|
9
|
+
|
|
10
|
+
/* pointer */
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
user-select: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.fl-radio[data-disabled] {
|
|
16
|
+
cursor: var(--fl-disabled-cursor);
|
|
17
|
+
opacity: var(--fl-disabled-opacity);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.fl-radio .fl-radio_input {
|
|
21
|
+
/* layout */
|
|
22
|
+
position: absolute;
|
|
23
|
+
opacity: 0;
|
|
24
|
+
width: 1px;
|
|
25
|
+
height: 1px;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.fl-radio .fl-radio_control {
|
|
30
|
+
/* layout */
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
width: var(--fl-size-4);
|
|
35
|
+
height: var(--fl-size-4);
|
|
36
|
+
|
|
37
|
+
/* background */
|
|
38
|
+
background: var(--fl-body-bg-color);
|
|
39
|
+
border: var(--fl-input-border-size, var(--fl-border-size, 1px)) solid
|
|
40
|
+
var(--fl-input-border-color, var(--fl-border-color));
|
|
41
|
+
border-radius: var(--fl-radius-full);
|
|
42
|
+
|
|
43
|
+
/* effects */
|
|
44
|
+
box-shadow: var(--fl-input-shadow);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.fl-radio .fl-radio_indicator {
|
|
48
|
+
/* layout */
|
|
49
|
+
width: var(--fl-size-2);
|
|
50
|
+
height: var(--fl-size-2);
|
|
51
|
+
|
|
52
|
+
/* background */
|
|
53
|
+
background: var(--fl-primary-color);
|
|
54
|
+
border-radius: var(--fl-radius-full);
|
|
55
|
+
|
|
56
|
+
/* effects */
|
|
57
|
+
scale: 0;
|
|
58
|
+
transition: scale var(--fl-animation-duration) ease;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.fl-radio .fl-radio_input:checked + .fl-radio_control .fl-radio_indicator {
|
|
62
|
+
scale: 1;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.fl-radio .fl-radio_input:focus-visible + .fl-radio_control {
|
|
66
|
+
outline: var(--fl-focus-ring-size) solid var(--fl-focus-ring-color);
|
|
67
|
+
outline-offset: var(--fl-focus-ring-offset);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.fl-radio .fl-radio_label {
|
|
71
|
+
/* text */
|
|
72
|
+
color: var(--fl-body-text-color);
|
|
73
|
+
font-size: var(--fl-text-size-base);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import clsx from 'clsx/lite';
|
|
2
|
+
import { createSignal, mergeProps, splitProps } from 'solid-js';
|
|
3
|
+
import { radioClass } from './class';
|
|
4
|
+
import { useRadioGroupContext } from './context';
|
|
5
|
+
import './radio-root.css';
|
|
6
|
+
export function RadioRoot(props) {
|
|
7
|
+
const context = useRadioGroupContext();
|
|
8
|
+
const merged = mergeProps({
|
|
9
|
+
type: 'radio',
|
|
10
|
+
}, props);
|
|
11
|
+
const [local, rest] = splitProps(merged, [
|
|
12
|
+
'class',
|
|
13
|
+
'children',
|
|
14
|
+
'checked',
|
|
15
|
+
'defaultChecked',
|
|
16
|
+
'disabled',
|
|
17
|
+
'name',
|
|
18
|
+
'onChange',
|
|
19
|
+
'type',
|
|
20
|
+
'value',
|
|
21
|
+
]);
|
|
22
|
+
const [internalChecked, setInternalChecked] = createSignal(Boolean(local.defaultChecked));
|
|
23
|
+
const rootClass = () => clsx(radioClass.root, local.class);
|
|
24
|
+
const checked = () => {
|
|
25
|
+
if (context) {
|
|
26
|
+
return context.value() === local.value;
|
|
27
|
+
}
|
|
28
|
+
return local.checked ?? internalChecked();
|
|
29
|
+
};
|
|
30
|
+
const disabled = () => Boolean(context?.disabled() || local.disabled);
|
|
31
|
+
const name = () => context?.name() ?? local.name;
|
|
32
|
+
const handleChange = (event) => {
|
|
33
|
+
const nextChecked = event.currentTarget.checked;
|
|
34
|
+
local.onChange?.(nextChecked);
|
|
35
|
+
if (context && nextChecked) {
|
|
36
|
+
context.setValue(local.value);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (local.checked === undefined) {
|
|
40
|
+
setInternalChecked(nextChecked);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return (<label class={rootClass()} data-disabled={disabled() ? '' : undefined}>
|
|
44
|
+
<input class={radioClass.input} type="radio" value={local.value} name={name()} checked={checked()} disabled={disabled()} onChange={handleChange} {...rest}/>
|
|
45
|
+
<span class={radioClass.control}>
|
|
46
|
+
<span class={radioClass.indicator}/>
|
|
47
|
+
</span>
|
|
48
|
+
{local.children ? <span class={radioClass.label}>{local.children}</span> : null}
|
|
49
|
+
</label>);
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=radio-root.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-root.jsx","sourceRoot":"","sources":["../../../../src/components/radio/radio-root.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,UAAU,SAAS,CAAC,KAAiB;IAC1C,MAAM,OAAO,GAAG,oBAAoB,EAAE,CAAC;IACvC,MAAM,MAAM,GAAG,UAAU,CACxB;QACC,IAAI,EAAE,OAAO;KACJ,EACV,KAAK,CACL,CAAC;IACF,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE;QACxC,OAAO;QACP,UAAU;QACV,SAAS;QACT,gBAAgB;QAChB,UAAU;QACV,MAAM;QACN,UAAU;QACV,MAAM;QACN,OAAO;KACP,CAAC,CAAC;IACH,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;IAC1F,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3D,MAAM,OAAO,GAAG,GAAG,EAAE;QACpB,IAAI,OAAO,EAAE,CAAC;YACb,OAAO,OAAO,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,KAAK,CAAC;QACxC,CAAC;QAED,OAAO,KAAK,CAAC,OAAO,IAAI,eAAe,EAAE,CAAC;IAC3C,CAAC,CAAC;IACF,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC;IACtE,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,KAAK,CAAC,IAAI,CAAC;IAEjD,MAAM,YAAY,GAAmD,CAAC,KAAK,EAAE,EAAE;QAC9E,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC;QAChD,KAAK,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,CAAC;QAE9B,IAAI,OAAO,IAAI,WAAW,EAAE,CAAC;YAC5B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC9B,OAAO;QACR,CAAC;QAED,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACjC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QACjC,CAAC;IACF,CAAC,CAAC;IAEF,OAAO,CACN,CAAC,KAAK,CACL,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,aAAa,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAE3C;GAAA,CAAC,KAAK,CACL,KAAK,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CACxB,IAAI,CAAC,OAAO,CACZ,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CACnB,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CACb,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CACrB,QAAQ,CAAC,CAAC,YAAY,CAAC,CACvB,IAAI,IAAI,CAAC,EAEV;GAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAC/B;IAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,EACnC;GAAA,EAAE,IAAI,CACN;GAAA,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAChF;EAAA,EAAE,KAAK,CAAC,CACR,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { createSignal, type JSX, mergeProps, splitProps } from 'solid-js';\nimport { radioClass } from './class';\nimport { useRadioGroupContext } from './context';\nimport type { RadioProps } from './types';\nimport './radio-root.css';\n\nexport function RadioRoot(props: RadioProps) {\n\tconst context = useRadioGroupContext();\n\tconst merged = mergeProps(\n\t\t{\n\t\t\ttype: 'radio',\n\t\t} as const,\n\t\tprops,\n\t);\n\tconst [local, rest] = splitProps(merged, [\n\t\t'class',\n\t\t'children',\n\t\t'checked',\n\t\t'defaultChecked',\n\t\t'disabled',\n\t\t'name',\n\t\t'onChange',\n\t\t'type',\n\t\t'value',\n\t]);\n\tconst [internalChecked, setInternalChecked] = createSignal(Boolean(local.defaultChecked));\n\tconst rootClass = () => clsx(radioClass.root, local.class);\n\tconst checked = () => {\n\t\tif (context) {\n\t\t\treturn context.value() === local.value;\n\t\t}\n\n\t\treturn local.checked ?? internalChecked();\n\t};\n\tconst disabled = () => Boolean(context?.disabled() || local.disabled);\n\tconst name = () => context?.name() ?? local.name;\n\n\tconst handleChange: JSX.EventHandlerUnion<HTMLInputElement, Event> = (event) => {\n\t\tconst nextChecked = event.currentTarget.checked;\n\t\tlocal.onChange?.(nextChecked);\n\n\t\tif (context && nextChecked) {\n\t\t\tcontext.setValue(local.value);\n\t\t\treturn;\n\t\t}\n\n\t\tif (local.checked === undefined) {\n\t\t\tsetInternalChecked(nextChecked);\n\t\t}\n\t};\n\n\treturn (\n\t\t<label\n\t\t\tclass={rootClass()}\n\t\t\tdata-disabled={disabled() ? '' : undefined}\n\t\t>\n\t\t\t<input\n\t\t\t\tclass={radioClass.input}\n\t\t\t\ttype=\"radio\"\n\t\t\t\tvalue={local.value}\n\t\t\t\tname={name()}\n\t\t\t\tchecked={checked()}\n\t\t\t\tdisabled={disabled()}\n\t\t\t\tonChange={handleChange}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t\t<span class={radioClass.control}>\n\t\t\t\t<span class={radioClass.indicator} />\n\t\t\t</span>\n\t\t\t{local.children ? <span class={radioClass.label}>{local.children}</span> : null}\n\t\t</label>\n\t);\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSX } from 'solid-js';
|
|
2
|
+
import { RadioGroup } from './radio-group';
|
|
3
|
+
import { RadioRoot } from './radio-root';
|
|
4
|
+
import type { RadioProps } from './types';
|
|
5
|
+
export type { RadioBaseProps, RadioGroupBaseProps, RadioGroupProps, RadioProps } from './types';
|
|
6
|
+
export { RadioGroup, RadioRoot };
|
|
7
|
+
export interface RadioComponent {
|
|
8
|
+
(props: RadioProps): JSX.Element;
|
|
9
|
+
Group: typeof RadioGroup;
|
|
10
|
+
}
|
|
11
|
+
export declare const Radio: RadioComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio.jsx","sourceRoot":"","sources":["../../../../src/components/radio/radio.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;AAOjC,MAAM,CAAC,MAAM,KAAK,GAAmB,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;IAC7D,KAAK,EAAE,UAAU;CACjB,CAAC,CAAC","sourcesContent":["import type { JSX } from 'solid-js';\nimport { RadioGroup } from './radio-group';\nimport { RadioRoot } from './radio-root';\nimport type { RadioProps } from './types';\n\nexport type { RadioBaseProps, RadioGroupBaseProps, RadioGroupProps, RadioProps } from './types';\nexport { RadioGroup, RadioRoot };\n\nexport interface RadioComponent {\n\t(props: RadioProps): JSX.Element;\n\tGroup: typeof RadioGroup;\n}\n\nexport const Radio: RadioComponent = Object.assign(RadioRoot, {\n\tGroup: RadioGroup,\n});\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { JSX } from 'solid-js';
|
|
2
|
+
export type RadioGroupBaseProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, 'onChange'>;
|
|
3
|
+
export interface RadioGroupProps extends RadioGroupBaseProps {
|
|
4
|
+
value?: string;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export type RadioBaseProps = Omit<JSX.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange' | 'size'>;
|
|
11
|
+
export interface RadioProps extends RadioBaseProps {
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
defaultChecked?: boolean;
|
|
14
|
+
value: string;
|
|
15
|
+
onChange?: (checked: boolean) => void;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/radio/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { JSX } from 'solid-js';\n\nexport type RadioGroupBaseProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, 'onChange'>;\n\nexport interface RadioGroupProps extends RadioGroupBaseProps {\n\tvalue?: string;\n\tdefaultValue?: string;\n\tname?: string;\n\tdisabled?: boolean;\n\tonChange?: (value: string) => void;\n}\n\nexport type RadioBaseProps = Omit<JSX.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange' | 'size'>;\n\nexport interface RadioProps extends RadioBaseProps {\n\tchecked?: boolean;\n\tdefaultChecked?: boolean;\n\tvalue: string;\n\tonChange?: (checked: boolean) => void;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/components/select/class.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,wBAAwB;IACrC,KAAK,EAAE,iBAAiB;CACf,CAAC","sourcesContent":["export const selectClass = {\n\troot: 'fl-select',\n\tinnerSelect: 'fl-select_inner-select',\n\tarrow: 'fl-select_arrow',\n} as const;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/select/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC","sourcesContent":["export * from './class';\nexport * from './select';\n"]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.fl-select {
|
|
3
|
+
/* layout */
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: stretch;
|
|
7
|
+
|
|
8
|
+
/* background */
|
|
9
|
+
background: var(--fl-input-bg-color, var(--fl-body-bg-color));
|
|
10
|
+
border: var(--fl-input-border-size, var(--fl-border-size, 1px)) solid
|
|
11
|
+
var(--fl-input-border-color, var(--fl-border-color));
|
|
12
|
+
border-radius: var(--fl-input-border-radius, var(--fl-border-radius));
|
|
13
|
+
|
|
14
|
+
/* effects */
|
|
15
|
+
box-shadow: var(--fl-input-shadow);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.fl-select:focus-within {
|
|
19
|
+
border-color: var(--fl-input-border-focus-color, var(--fl-focus-ring-color));
|
|
20
|
+
outline: var(--fl-focus-ring-size) solid var(--fl-focus-ring-color);
|
|
21
|
+
outline-offset: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.fl-select[data-disabled] {
|
|
25
|
+
cursor: var(--fl-disabled-cursor);
|
|
26
|
+
opacity: var(--fl-disabled-opacity);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.fl-select .fl-select_inner-select {
|
|
30
|
+
/* reset */
|
|
31
|
+
appearance: none;
|
|
32
|
+
outline: none;
|
|
33
|
+
|
|
34
|
+
/* layout */
|
|
35
|
+
width: 100%;
|
|
36
|
+
min-width: 0;
|
|
37
|
+
|
|
38
|
+
/* spacing */
|
|
39
|
+
padding-inline: var(--fl-input-pad-x, var(--fl-size-2));
|
|
40
|
+
padding-block: var(--fl-input-pad-y, var(--fl-size-1-5));
|
|
41
|
+
padding-right: calc(var(--fl-size-4) + var(--fl-size-4));
|
|
42
|
+
|
|
43
|
+
/* background */
|
|
44
|
+
background: transparent;
|
|
45
|
+
border: 0;
|
|
46
|
+
|
|
47
|
+
/* text */
|
|
48
|
+
color: var(--fl-input-text-color, var(--fl-body-text-color));
|
|
49
|
+
font: inherit;
|
|
50
|
+
|
|
51
|
+
/* pointer */
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.fl-select[data-disabled] .fl-select_inner-select {
|
|
56
|
+
cursor: var(--fl-disabled-cursor);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.fl-select .fl-select_arrow {
|
|
60
|
+
/* layout */
|
|
61
|
+
position: absolute;
|
|
62
|
+
right: var(--fl-size-2);
|
|
63
|
+
top: 50%;
|
|
64
|
+
width: var(--fl-size-4);
|
|
65
|
+
height: var(--fl-size-4);
|
|
66
|
+
|
|
67
|
+
/* text */
|
|
68
|
+
color: var(--fl-input-text-color, var(--fl-body-text-color));
|
|
69
|
+
|
|
70
|
+
/* pointer */
|
|
71
|
+
pointer-events: none;
|
|
72
|
+
|
|
73
|
+
/* effects */
|
|
74
|
+
transform: translateY(-50%);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import clsx from 'clsx/lite';
|
|
2
|
+
import { splitProps } from 'solid-js';
|
|
3
|
+
import { ChevronDownIcon } from '#src/icons';
|
|
4
|
+
import { selectClass } from './class';
|
|
5
|
+
import './select.css';
|
|
6
|
+
export function Select(props) {
|
|
7
|
+
const [local, rest] = splitProps(props, ['class', 'children', 'disabled']);
|
|
8
|
+
const rootClass = () => clsx(selectClass.root, local.class);
|
|
9
|
+
return (<div class={rootClass()} data-disabled={local.disabled ? '' : undefined}>
|
|
10
|
+
<select class={selectClass.innerSelect} disabled={local.disabled} {...rest}>
|
|
11
|
+
{local.children}
|
|
12
|
+
</select>
|
|
13
|
+
<ChevronDownIcon class={selectClass.arrow}/>
|
|
14
|
+
</div>);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=select.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.jsx","sourceRoot":"","sources":["../../../../src/components/select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAY,UAAU,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,cAAc,CAAC;AAMtB,MAAM,UAAU,MAAM,CAAC,KAAkB;IACxC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;IAE3E,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAE5D,OAAO,CACN,CAAC,GAAG,CACH,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,aAAa,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAE/C;GAAA,CAAC,MAAM,CACN,KAAK,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,CAC/B,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;GAAA,EAAE,MAAM,CACR;GAAA,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAC3C;EAAA,EAAE,GAAG,CAAC,CACN,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { type JSX, splitProps } from 'solid-js';\nimport { ChevronDownIcon } from '#src/icons';\nimport { selectClass } from './class';\nimport './select.css';\n\nexport type SelectBaseProps = JSX.SelectHTMLAttributes<HTMLSelectElement>;\n\nexport interface SelectProps extends SelectBaseProps {}\n\nexport function Select(props: SelectProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children', 'disabled']);\n\n\tconst rootClass = () => clsx(selectClass.root, local.class);\n\n\treturn (\n\t\t<div\n\t\t\tclass={rootClass()}\n\t\t\tdata-disabled={local.disabled ? '' : undefined}\n\t\t>\n\t\t\t<select\n\t\t\t\tclass={selectClass.innerSelect}\n\t\t\t\tdisabled={local.disabled}\n\t\t\t\t{...rest}\n\t\t\t>\n\t\t\t\t{local.children}\n\t\t\t</select>\n\t\t\t<ChevronDownIcon class={selectClass.arrow} />\n\t\t</div>\n\t);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/components/slider/class.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,IAAI,EAAE,WAAW;CACR,CAAC","sourcesContent":["export const sliderClass = {\n\troot: 'fl-slider',\n} as const;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/slider/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC","sourcesContent":["export * from './class';\nexport * from './slider';\n"]}
|