@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,16 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.fl-table .fl-table_head {
|
|
3
|
+
/* spacing */
|
|
4
|
+
padding: var(--fl-size-2) var(--fl-size-3);
|
|
5
|
+
|
|
6
|
+
/* background */
|
|
7
|
+
background: color-mix(in oklab, var(--fl-body-bg-color), black 4%);
|
|
8
|
+
border-bottom: var(--fl-border-size, 1px) solid var(--fl-border-color);
|
|
9
|
+
|
|
10
|
+
/* text */
|
|
11
|
+
color: var(--fl-body-muted-text-color);
|
|
12
|
+
font-size: var(--fl-text-size-sm);
|
|
13
|
+
font-weight: var(--fl-font-weight-semibold);
|
|
14
|
+
text-align: left;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import clsx from 'clsx/lite';
|
|
2
|
+
import { splitProps } from 'solid-js';
|
|
3
|
+
import { tableClass } from './class';
|
|
4
|
+
import './table-head.css';
|
|
5
|
+
export function TableHead(props) {
|
|
6
|
+
const [local, rest] = splitProps(props, ['class', 'children']);
|
|
7
|
+
return (<th class={clsx(tableClass.head, local.class)} {...rest}>
|
|
8
|
+
{local.children}
|
|
9
|
+
</th>);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=table-head.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-head.jsx","sourceRoot":"","sources":["../../../../src/components/table/table-head.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,kBAAkB,CAAC;AAE1B,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC9C,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAC/D,OAAO,CACN,CAAC,EAAE,CACF,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAC1C,IAAI,IAAI,CAAC,CAET;GAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;EAAA,EAAE,EAAE,CAAC,CACL,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { splitProps } from 'solid-js';\nimport { tableClass } from './class';\nimport type { TableHeadProps } from './types';\nimport './table-head.css';\n\nexport function TableHead(props: TableHeadProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children']);\n\treturn (\n\t\t<th\n\t\t\tclass={clsx(tableClass.head, local.class)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</th>\n\t);\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import clsx from 'clsx/lite';
|
|
2
|
+
import { splitProps } from 'solid-js';
|
|
3
|
+
import { tableClass } from './class';
|
|
4
|
+
export function TableHeader(props) {
|
|
5
|
+
const [local, rest] = splitProps(props, ['class', 'children']);
|
|
6
|
+
return (<thead class={clsx(tableClass.header, local.class)} {...rest}>
|
|
7
|
+
{local.children}
|
|
8
|
+
</thead>);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=table-header.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-header.jsx","sourceRoot":"","sources":["../../../../src/components/table/table-header.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,MAAM,UAAU,WAAW,CAAC,KAAuB;IAClD,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAC/D,OAAO,CACN,CAAC,KAAK,CACL,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAC5C,IAAI,IAAI,CAAC,CAET;GAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;EAAA,EAAE,KAAK,CAAC,CACR,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { splitProps } from 'solid-js';\nimport { tableClass } from './class';\nimport type { TableHeaderProps } from './types';\n\nexport function TableHeader(props: TableHeaderProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children']);\n\treturn (\n\t\t<thead\n\t\t\tclass={clsx(tableClass.header, local.class)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</thead>\n\t);\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import clsx from 'clsx/lite';
|
|
2
|
+
import { splitProps } from 'solid-js';
|
|
3
|
+
import { tableClass } from './class';
|
|
4
|
+
import './table-root.css';
|
|
5
|
+
export function TableRoot(props) {
|
|
6
|
+
const [local, rest] = splitProps(props, ['class', 'children']);
|
|
7
|
+
return (<table class={clsx(tableClass.root, local.class)} {...rest}>
|
|
8
|
+
{local.children}
|
|
9
|
+
</table>);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=table-root.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-root.jsx","sourceRoot":"","sources":["../../../../src/components/table/table-root.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,kBAAkB,CAAC;AAE1B,MAAM,UAAU,SAAS,CAAC,KAAiB;IAC1C,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAC/D,OAAO,CACN,CAAC,KAAK,CACL,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAC1C,IAAI,IAAI,CAAC,CAET;GAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;EAAA,EAAE,KAAK,CAAC,CACR,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { splitProps } from 'solid-js';\nimport { tableClass } from './class';\nimport type { TableProps } from './types';\nimport './table-root.css';\n\nexport function TableRoot(props: TableProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children']);\n\treturn (\n\t\t<table\n\t\t\tclass={clsx(tableClass.root, local.class)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</table>\n\t);\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import clsx from 'clsx/lite';
|
|
2
|
+
import { splitProps } from 'solid-js';
|
|
3
|
+
import { tableClass } from './class';
|
|
4
|
+
import './table-row.css';
|
|
5
|
+
export function TableRow(props) {
|
|
6
|
+
const [local, rest] = splitProps(props, ['class', 'children']);
|
|
7
|
+
return (<tr class={clsx(tableClass.row, local.class)} {...rest}>
|
|
8
|
+
{local.children}
|
|
9
|
+
</tr>);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=table-row.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-row.jsx","sourceRoot":"","sources":["../../../../src/components/table/table-row.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,iBAAiB,CAAC;AAEzB,MAAM,UAAU,QAAQ,CAAC,KAAoB;IAC5C,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAC/D,OAAO,CACN,CAAC,EAAE,CACF,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CACzC,IAAI,IAAI,CAAC,CAET;GAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;EAAA,EAAE,EAAE,CAAC,CACL,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { splitProps } from 'solid-js';\nimport { tableClass } from './class';\nimport type { TableRowProps } from './types';\nimport './table-row.css';\n\nexport function TableRow(props: TableRowProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children']);\n\treturn (\n\t\t<tr\n\t\t\tclass={clsx(tableClass.row, local.class)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</tr>\n\t);\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { JSX } from 'solid-js';
|
|
2
|
+
import { TableBody } from './table-body';
|
|
3
|
+
import { TableCaption } from './table-caption';
|
|
4
|
+
import { TableCell } from './table-cell';
|
|
5
|
+
import { TableFooter } from './table-footer';
|
|
6
|
+
import { TableHead } from './table-head';
|
|
7
|
+
import { TableHeader } from './table-header';
|
|
8
|
+
import { TableRoot } from './table-root';
|
|
9
|
+
import { TableRow } from './table-row';
|
|
10
|
+
import type { TableProps } from './types';
|
|
11
|
+
export type { TableBodyProps, TableCaptionProps, TableCellProps, TableFooterProps, TableHeaderProps, TableHeadProps, TableProps, TableRowProps, } from './types';
|
|
12
|
+
export { TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRoot, TableRow };
|
|
13
|
+
export interface TableComponent {
|
|
14
|
+
(props: TableProps): JSX.Element;
|
|
15
|
+
Header: typeof TableHeader;
|
|
16
|
+
Body: typeof TableBody;
|
|
17
|
+
Footer: typeof TableFooter;
|
|
18
|
+
Head: typeof TableHead;
|
|
19
|
+
Row: typeof TableRow;
|
|
20
|
+
Cell: typeof TableCell;
|
|
21
|
+
Caption: typeof TableCaption;
|
|
22
|
+
}
|
|
23
|
+
export declare const Table: TableComponent;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TableBody } from './table-body';
|
|
2
|
+
import { TableCaption } from './table-caption';
|
|
3
|
+
import { TableCell } from './table-cell';
|
|
4
|
+
import { TableFooter } from './table-footer';
|
|
5
|
+
import { TableHead } from './table-head';
|
|
6
|
+
import { TableHeader } from './table-header';
|
|
7
|
+
import { TableRoot } from './table-root';
|
|
8
|
+
import { TableRow } from './table-row';
|
|
9
|
+
export { TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRoot, TableRow };
|
|
10
|
+
export const Table = Object.assign(TableRoot, {
|
|
11
|
+
Header: TableHeader,
|
|
12
|
+
Body: TableBody,
|
|
13
|
+
Footer: TableFooter,
|
|
14
|
+
Head: TableHead,
|
|
15
|
+
Row: TableRow,
|
|
16
|
+
Cell: TableCell,
|
|
17
|
+
Caption: TableCaption,
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=table.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.jsx","sourceRoot":"","sources":["../../../../src/components/table/table.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAavC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;AAaxG,MAAM,CAAC,MAAM,KAAK,GAAmB,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;IAC7D,MAAM,EAAE,WAAW;IACnB,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,WAAW;IACnB,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,YAAY;CACrB,CAAC,CAAC","sourcesContent":["import type { JSX } from 'solid-js';\nimport { TableBody } from './table-body';\nimport { TableCaption } from './table-caption';\nimport { TableCell } from './table-cell';\nimport { TableFooter } from './table-footer';\nimport { TableHead } from './table-head';\nimport { TableHeader } from './table-header';\nimport { TableRoot } from './table-root';\nimport { TableRow } from './table-row';\nimport type { TableProps } from './types';\n\nexport type {\n\tTableBodyProps,\n\tTableCaptionProps,\n\tTableCellProps,\n\tTableFooterProps,\n\tTableHeaderProps,\n\tTableHeadProps,\n\tTableProps,\n\tTableRowProps,\n} from './types';\nexport { TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRoot, TableRow };\n\nexport interface TableComponent {\n\t(props: TableProps): JSX.Element;\n\tHeader: typeof TableHeader;\n\tBody: typeof TableBody;\n\tFooter: typeof TableFooter;\n\tHead: typeof TableHead;\n\tRow: typeof TableRow;\n\tCell: typeof TableCell;\n\tCaption: typeof TableCaption;\n}\n\nexport const Table: TableComponent = Object.assign(TableRoot, {\n\tHeader: TableHeader,\n\tBody: TableBody,\n\tFooter: TableFooter,\n\tHead: TableHead,\n\tRow: TableRow,\n\tCell: TableCell,\n\tCaption: TableCaption,\n});\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { JSX } from 'solid-js';
|
|
2
|
+
export type TableProps = JSX.HTMLAttributes<HTMLTableElement>;
|
|
3
|
+
export type TableHeaderProps = JSX.HTMLAttributes<HTMLTableSectionElement>;
|
|
4
|
+
export type TableBodyProps = JSX.HTMLAttributes<HTMLTableSectionElement>;
|
|
5
|
+
export type TableFooterProps = JSX.HTMLAttributes<HTMLTableSectionElement>;
|
|
6
|
+
export type TableHeadProps = JSX.ThHTMLAttributes<HTMLTableCellElement>;
|
|
7
|
+
export type TableRowProps = JSX.HTMLAttributes<HTMLTableRowElement>;
|
|
8
|
+
export type TableCellProps = JSX.TdHTMLAttributes<HTMLTableCellElement>;
|
|
9
|
+
export type TableCaptionProps = JSX.HTMLAttributes<HTMLTableCaptionElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/table/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { JSX } from 'solid-js';\n\nexport type TableProps = JSX.HTMLAttributes<HTMLTableElement>;\nexport type TableHeaderProps = JSX.HTMLAttributes<HTMLTableSectionElement>;\nexport type TableBodyProps = JSX.HTMLAttributes<HTMLTableSectionElement>;\nexport type TableFooterProps = JSX.HTMLAttributes<HTMLTableSectionElement>;\nexport type TableHeadProps = JSX.ThHTMLAttributes<HTMLTableCellElement>;\nexport type TableRowProps = JSX.HTMLAttributes<HTMLTableRowElement>;\nexport type TableCellProps = JSX.TdHTMLAttributes<HTMLTableCellElement>;\nexport type TableCaptionProps = JSX.HTMLAttributes<HTMLTableCaptionElement>;\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const tabsClass: {
|
|
2
|
+
readonly root: 'fl-tabs';
|
|
3
|
+
readonly list: 'fl-tabs_list';
|
|
4
|
+
readonly trigger: 'fl-tabs_trigger';
|
|
5
|
+
readonly indicator: 'fl-tabs_indicator';
|
|
6
|
+
readonly content: 'fl-tabs_content';
|
|
7
|
+
readonly color: {
|
|
8
|
+
readonly primary: '--color-primary';
|
|
9
|
+
readonly secondary: '--color-secondary';
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type TabsColor = keyof typeof tabsClass.color;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const tabsClass = {
|
|
2
|
+
root: 'fl-tabs',
|
|
3
|
+
list: 'fl-tabs_list',
|
|
4
|
+
trigger: 'fl-tabs_trigger',
|
|
5
|
+
indicator: 'fl-tabs_indicator',
|
|
6
|
+
content: 'fl-tabs_content',
|
|
7
|
+
color: {
|
|
8
|
+
primary: '--color-primary',
|
|
9
|
+
secondary: '--color-secondary',
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/components/tabs/class.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,mBAAmB;IAC9B,OAAO,EAAE,iBAAiB;IAC1B,KAAK,EAAE;QACN,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,mBAAmB;KAC9B;CACQ,CAAC","sourcesContent":["export const tabsClass = {\n\troot: 'fl-tabs',\n\tlist: 'fl-tabs_list',\n\ttrigger: 'fl-tabs_trigger',\n\tindicator: 'fl-tabs_indicator',\n\tcontent: 'fl-tabs_content',\n\tcolor: {\n\t\tprimary: '--color-primary',\n\t\tsecondary: '--color-secondary',\n\t},\n} as const;\n\nexport type TabsColor = keyof typeof tabsClass.color;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/tabs/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC","sourcesContent":["export * from './class';\nexport * from './tabs';\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.fl-tabs .fl-tabs_content {
|
|
3
|
+
/* spacing */
|
|
4
|
+
padding: var(--fl-size-4);
|
|
5
|
+
|
|
6
|
+
/* text */
|
|
7
|
+
color: var(--fl-body-text-color);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* focus-visible state */
|
|
11
|
+
.fl-tabs .fl-tabs_content:focus-visible {
|
|
12
|
+
outline: var(--fl-focus-ring-size) solid var(--fl-focus-ring-color);
|
|
13
|
+
outline-offset: var(--fl-focus-ring-offset);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* vertical content */
|
|
17
|
+
.fl-tabs[data-orientation="vertical"] .fl-tabs_content {
|
|
18
|
+
/* layout */
|
|
19
|
+
flex: 1 1 auto;
|
|
20
|
+
|
|
21
|
+
/* spacing */
|
|
22
|
+
padding-top: 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.fl-tabs .fl-tabs_indicator {
|
|
3
|
+
/* layout */
|
|
4
|
+
position: absolute;
|
|
5
|
+
|
|
6
|
+
/* background */
|
|
7
|
+
background-color: var(--fl-tabs-indicator-color);
|
|
8
|
+
|
|
9
|
+
/* effects */
|
|
10
|
+
transition: all var(--fl-animation-duration) ease-in-out;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* horizontal indicator */
|
|
14
|
+
.fl-tabs .fl-tabs_indicator[data-orientation="horizontal"] {
|
|
15
|
+
/* layout */
|
|
16
|
+
bottom: calc(var(--fl-border-size, 1px) * -1);
|
|
17
|
+
height: var(--fl-tabs-indicator-size);
|
|
18
|
+
|
|
19
|
+
/* background */
|
|
20
|
+
border-radius: var(--fl-radius-full);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* vertical indicator */
|
|
24
|
+
.fl-tabs .fl-tabs_indicator[data-orientation="vertical"] {
|
|
25
|
+
/* layout */
|
|
26
|
+
right: calc(var(--fl-border-size, 1px) * -1);
|
|
27
|
+
width: var(--fl-tabs-indicator-size);
|
|
28
|
+
|
|
29
|
+
/* background */
|
|
30
|
+
border-radius: var(--fl-radius-full);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.fl-tabs .fl-tabs_list {
|
|
3
|
+
/* layout */
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* horizontal list */
|
|
9
|
+
.fl-tabs .fl-tabs_list[data-orientation="horizontal"] {
|
|
10
|
+
/* layout */
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
/* background */
|
|
14
|
+
border-bottom: var(--fl-border-size, 1px) solid var(--fl-tabs-list-border-color);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* vertical list */
|
|
18
|
+
.fl-tabs .fl-tabs_list[data-orientation="vertical"] {
|
|
19
|
+
/* layout */
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: stretch;
|
|
22
|
+
|
|
23
|
+
/* background */
|
|
24
|
+
border-right: var(--fl-border-size, 1px) solid var(--fl-tabs-list-border-color);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.fl-tabs {
|
|
3
|
+
--fl-tabs-indicator-size: 2px;
|
|
4
|
+
--fl-tabs-indicator-color: var(--fl-primary-color);
|
|
5
|
+
--fl-tabs-list-border-color: var(--fl-input-border-color, var(--fl-border-color));
|
|
6
|
+
--fl-tabs-trigger-hover-bg: var(--fl-input-bg-hover-color, color-mix(in oklab, white, black 5%));
|
|
7
|
+
--fl-tabs-trigger-focus-bg: color-mix(in oklab, var(--fl-input-bg-color, white), black 3%);
|
|
8
|
+
|
|
9
|
+
/* layout */
|
|
10
|
+
width: 100%;
|
|
11
|
+
|
|
12
|
+
/* text */
|
|
13
|
+
color: var(--fl-body-text-color);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* primary color variant */
|
|
17
|
+
.fl-tabs.--color-primary {
|
|
18
|
+
--fl-tabs-indicator-color: var(--fl-primary-color);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* secondary color variant */
|
|
22
|
+
.fl-tabs.--color-secondary {
|
|
23
|
+
--fl-tabs-indicator-color: var(--fl-secondary-text-color);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* vertical orientation */
|
|
27
|
+
.fl-tabs[data-orientation="vertical"] {
|
|
28
|
+
/* layout */
|
|
29
|
+
display: flex;
|
|
30
|
+
|
|
31
|
+
/* spacing */
|
|
32
|
+
gap: var(--fl-size-4);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.fl-tabs .fl-tabs_trigger {
|
|
3
|
+
/* reset */
|
|
4
|
+
appearance: none;
|
|
5
|
+
|
|
6
|
+
/* layout */
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
|
|
11
|
+
/* spacing */
|
|
12
|
+
padding-inline: var(--fl-size-4);
|
|
13
|
+
padding-block: var(--fl-input-pad-y, var(--fl-size-1-5));
|
|
14
|
+
|
|
15
|
+
/* background */
|
|
16
|
+
border: 0;
|
|
17
|
+
background: transparent;
|
|
18
|
+
|
|
19
|
+
/* text */
|
|
20
|
+
color: var(--fl-body-text-color);
|
|
21
|
+
font: inherit;
|
|
22
|
+
font-weight: var(--fl-font-weight-medium);
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
|
|
25
|
+
/* pointer */
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
user-select: none;
|
|
28
|
+
|
|
29
|
+
/* effects */
|
|
30
|
+
transition:
|
|
31
|
+
background-color 188ms ease-in-out,
|
|
32
|
+
color 188ms ease-in-out;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* hover state */
|
|
36
|
+
.fl-tabs .fl-tabs_trigger:hover:not([data-disabled]) {
|
|
37
|
+
background-color: var(--fl-tabs-trigger-hover-bg);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* focus-visible state */
|
|
41
|
+
.fl-tabs .fl-tabs_trigger:focus-visible {
|
|
42
|
+
outline: none;
|
|
43
|
+
background-color: var(--fl-tabs-trigger-focus-bg);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* selected state */
|
|
47
|
+
.fl-tabs .fl-tabs_trigger[data-selected] {
|
|
48
|
+
color: var(--fl-tabs-indicator-color);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* disabled state */
|
|
52
|
+
.fl-tabs .fl-tabs_trigger[data-disabled],
|
|
53
|
+
.fl-tabs .fl-tabs_trigger[data-disabled]:hover {
|
|
54
|
+
opacity: var(--fl-disabled-opacity);
|
|
55
|
+
background-color: transparent;
|
|
56
|
+
cursor: var(--fl-disabled-cursor);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type TabsContentProps as KTabsContentProps, type TabsIndicatorProps as KTabsIndicatorProps, type TabsListProps as KTabsListProps, type TabsRootProps as KTabsRootProps, type TabsTriggerProps as KTabsTriggerProps } from '@kobalte/core/tabs';
|
|
2
|
+
import { type JSX } from 'solid-js';
|
|
3
|
+
import { type TabsColor } from './class';
|
|
4
|
+
import './tabs-root.css';
|
|
5
|
+
import './tabs-list.css';
|
|
6
|
+
import './tabs-trigger.css';
|
|
7
|
+
import './tabs-indicator.css';
|
|
8
|
+
import './tabs-content.css';
|
|
9
|
+
export type TabsRootBaseProps = KTabsRootProps & JSX.HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
export interface TabsRootProps extends TabsRootBaseProps {
|
|
11
|
+
color?: TabsColor;
|
|
12
|
+
}
|
|
13
|
+
export type TabsListProps = KTabsListProps & JSX.HTMLAttributes<HTMLDivElement>;
|
|
14
|
+
export type TabsTriggerProps = KTabsTriggerProps & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
15
|
+
export type TabsIndicatorProps = KTabsIndicatorProps & JSX.HTMLAttributes<HTMLDivElement>;
|
|
16
|
+
export type TabsContentProps = KTabsContentProps & JSX.HTMLAttributes<HTMLDivElement>;
|
|
17
|
+
export declare function TabsRoot(props: TabsRootProps): JSX.Element;
|
|
18
|
+
export declare function TabsList(props: TabsListProps): JSX.Element;
|
|
19
|
+
export declare function TabsTrigger(props: TabsTriggerProps): JSX.Element;
|
|
20
|
+
export declare function TabsIndicator(props: TabsIndicatorProps): JSX.Element;
|
|
21
|
+
export declare function TabsContent(props: TabsContentProps): JSX.Element;
|
|
22
|
+
export declare const Tabs: typeof TabsRoot & {
|
|
23
|
+
List: typeof TabsList;
|
|
24
|
+
Trigger: typeof TabsTrigger;
|
|
25
|
+
Indicator: typeof TabsIndicator;
|
|
26
|
+
Content: typeof TabsContent;
|
|
27
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Tabs as KTabs, } from '@kobalte/core/tabs';
|
|
2
|
+
import clsx from 'clsx/lite';
|
|
3
|
+
import { mergeProps, splitProps } from 'solid-js';
|
|
4
|
+
import { tabsClass } from './class';
|
|
5
|
+
import './tabs-root.css';
|
|
6
|
+
import './tabs-list.css';
|
|
7
|
+
import './tabs-trigger.css';
|
|
8
|
+
import './tabs-indicator.css';
|
|
9
|
+
import './tabs-content.css';
|
|
10
|
+
export function TabsRoot(props) {
|
|
11
|
+
const merged = mergeProps({
|
|
12
|
+
color: 'primary',
|
|
13
|
+
}, props);
|
|
14
|
+
const [local, rest] = splitProps(merged, ['class', 'color']);
|
|
15
|
+
const rootClass = () => {
|
|
16
|
+
const colorClass = tabsClass.color[local.color];
|
|
17
|
+
return clsx(tabsClass.root, colorClass, local.class);
|
|
18
|
+
};
|
|
19
|
+
return (<KTabs class={rootClass()} {...rest}/>);
|
|
20
|
+
}
|
|
21
|
+
export function TabsList(props) {
|
|
22
|
+
const [local, rest] = splitProps(props, ['class']);
|
|
23
|
+
const rootClass = () => clsx(tabsClass.list, local.class);
|
|
24
|
+
return (<KTabs.List class={rootClass()} {...rest}/>);
|
|
25
|
+
}
|
|
26
|
+
export function TabsTrigger(props) {
|
|
27
|
+
const [local, rest] = splitProps(props, ['class']);
|
|
28
|
+
const rootClass = () => clsx(tabsClass.trigger, local.class);
|
|
29
|
+
return (<KTabs.Trigger class={rootClass()} {...rest}/>);
|
|
30
|
+
}
|
|
31
|
+
export function TabsIndicator(props) {
|
|
32
|
+
const [local, rest] = splitProps(props, ['class']);
|
|
33
|
+
const rootClass = () => clsx(tabsClass.indicator, local.class);
|
|
34
|
+
return (<KTabs.Indicator class={rootClass()} {...rest}/>);
|
|
35
|
+
}
|
|
36
|
+
export function TabsContent(props) {
|
|
37
|
+
const [local, rest] = splitProps(props, ['class']);
|
|
38
|
+
const rootClass = () => clsx(tabsClass.content, local.class);
|
|
39
|
+
return (<KTabs.Content class={rootClass()} {...rest}/>);
|
|
40
|
+
}
|
|
41
|
+
export const Tabs = Object.assign(TabsRoot, {
|
|
42
|
+
List: TabsList,
|
|
43
|
+
Trigger: TabsTrigger,
|
|
44
|
+
Indicator: TabsIndicator,
|
|
45
|
+
Content: TabsContent,
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=tabs.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.jsx","sourceRoot":"","sources":["../../../../src/components/tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,IAAI,IAAI,KAAK,GAMb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAkB,SAAS,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,oBAAoB,CAAC;AAa5B,MAAM,UAAU,QAAQ,CAAC,KAAoB;IAC5C,MAAM,MAAM,GAAG,UAAU,CACxB;QACC,KAAK,EAAE,SAAS;KACP,EACV,KAAK,CACL,CAAC;IACF,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;QACtB,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAEhD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACtD,CAAC,CAAC;IAEF,OAAO,CACN,CAAC,KAAK,CACL,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,IAAI,CAAC,EACR,CACF,CAAC;AACH,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,KAAoB;IAC5C,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEnD,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAE1D,OAAO,CACN,CAAC,KAAK,CAAC,IAAI,CACV,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,IAAI,CAAC,EACR,CACF,CAAC;AACH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAuB;IAClD,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEnD,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAE7D,OAAO,CACN,CAAC,KAAK,CAAC,OAAO,CACb,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,IAAI,CAAC,EACR,CACF,CAAC;AACH,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAyB;IACtD,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEnD,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAE/D,OAAO,CACN,CAAC,KAAK,CAAC,SAAS,CACf,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,IAAI,CAAC,EACR,CACF,CAAC;AACH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAuB;IAClD,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEnD,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAE7D,OAAO,CACN,CAAC,KAAK,CAAC,OAAO,CACb,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,IAAI,CAAC,EACR,CACF,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE;IAC3C,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,aAAa;IACxB,OAAO,EAAE,WAAW;CACpB,CAAC,CAAC","sourcesContent":["import {\n\tTabs as KTabs,\n\ttype TabsContentProps as KTabsContentProps,\n\ttype TabsIndicatorProps as KTabsIndicatorProps,\n\ttype TabsListProps as KTabsListProps,\n\ttype TabsRootProps as KTabsRootProps,\n\ttype TabsTriggerProps as KTabsTriggerProps,\n} from '@kobalte/core/tabs';\nimport clsx from 'clsx/lite';\nimport { type JSX, mergeProps, splitProps } from 'solid-js';\nimport { type TabsColor, tabsClass } from './class';\nimport './tabs-root.css';\nimport './tabs-list.css';\nimport './tabs-trigger.css';\nimport './tabs-indicator.css';\nimport './tabs-content.css';\n\nexport type TabsRootBaseProps = KTabsRootProps & JSX.HTMLAttributes<HTMLDivElement>;\n\nexport interface TabsRootProps extends TabsRootBaseProps {\n\tcolor?: TabsColor;\n}\n\nexport type TabsListProps = KTabsListProps & JSX.HTMLAttributes<HTMLDivElement>;\nexport type TabsTriggerProps = KTabsTriggerProps & JSX.ButtonHTMLAttributes<HTMLButtonElement>;\nexport type TabsIndicatorProps = KTabsIndicatorProps & JSX.HTMLAttributes<HTMLDivElement>;\nexport type TabsContentProps = KTabsContentProps & JSX.HTMLAttributes<HTMLDivElement>;\n\nexport function TabsRoot(props: TabsRootProps) {\n\tconst merged = mergeProps(\n\t\t{\n\t\t\tcolor: 'primary',\n\t\t} as const,\n\t\tprops,\n\t);\n\tconst [local, rest] = splitProps(merged, ['class', 'color']);\n\n\tconst rootClass = () => {\n\t\tconst colorClass = tabsClass.color[local.color];\n\n\t\treturn clsx(tabsClass.root, colorClass, local.class);\n\t};\n\n\treturn (\n\t\t<KTabs\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t/>\n\t);\n}\n\nexport function TabsList(props: TabsListProps) {\n\tconst [local, rest] = splitProps(props, ['class']);\n\n\tconst rootClass = () => clsx(tabsClass.list, local.class);\n\n\treturn (\n\t\t<KTabs.List\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t/>\n\t);\n}\n\nexport function TabsTrigger(props: TabsTriggerProps) {\n\tconst [local, rest] = splitProps(props, ['class']);\n\n\tconst rootClass = () => clsx(tabsClass.trigger, local.class);\n\n\treturn (\n\t\t<KTabs.Trigger\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t/>\n\t);\n}\n\nexport function TabsIndicator(props: TabsIndicatorProps) {\n\tconst [local, rest] = splitProps(props, ['class']);\n\n\tconst rootClass = () => clsx(tabsClass.indicator, local.class);\n\n\treturn (\n\t\t<KTabs.Indicator\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t/>\n\t);\n}\n\nexport function TabsContent(props: TabsContentProps) {\n\tconst [local, rest] = splitProps(props, ['class']);\n\n\tconst rootClass = () => clsx(tabsClass.content, local.class);\n\n\treturn (\n\t\t<KTabs.Content\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t/>\n\t);\n}\n\nexport const Tabs = Object.assign(TabsRoot, {\n\tList: TabsList,\n\tTrigger: TabsTrigger,\n\tIndicator: TabsIndicator,\n\tContent: TabsContent,\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/components/textarea/class.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,IAAI,EAAE,aAAa;CACV,CAAC","sourcesContent":["export const textAreaClass = {\n\troot: 'fl-textarea',\n} as const;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/textarea/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC","sourcesContent":["export * from './class';\nexport * from './textarea';\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.fl-textarea {
|
|
3
|
+
/* reset */
|
|
4
|
+
appearance: initial;
|
|
5
|
+
outline: none;
|
|
6
|
+
|
|
7
|
+
/* layout */
|
|
8
|
+
display: block;
|
|
9
|
+
width: 100%;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
min-height: var(--fl-size-24);
|
|
12
|
+
|
|
13
|
+
/* spacing */
|
|
14
|
+
padding-inline: var(--fl-input-pad-x);
|
|
15
|
+
padding-block: var(--fl-input-pad-y);
|
|
16
|
+
|
|
17
|
+
/* background */
|
|
18
|
+
background: var(--fl-input-bg-color);
|
|
19
|
+
border: var(--fl-input-border-size) solid var(--fl-input-border-color);
|
|
20
|
+
border-radius: var(--fl-input-border-radius);
|
|
21
|
+
box-shadow: var(--fl-input-shadow);
|
|
22
|
+
|
|
23
|
+
/* text */
|
|
24
|
+
color: var(--fl-input-text-color);
|
|
25
|
+
font: inherit;
|
|
26
|
+
line-height: 1.5;
|
|
27
|
+
|
|
28
|
+
/* pointer */
|
|
29
|
+
resize: vertical;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.fl-textarea::placeholder {
|
|
33
|
+
color: var(--fl-body-muted-text-color);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.fl-textarea:focus-visible:not(:disabled) {
|
|
37
|
+
border-color: var(--fl-input-border-focus-color);
|
|
38
|
+
outline: var(--fl-focus-ring-size) solid var(--fl-focus-ring-color);
|
|
39
|
+
outline-offset: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.fl-textarea:disabled {
|
|
43
|
+
opacity: var(--fl-disabled-opacity);
|
|
44
|
+
cursor: var(--fl-disabled-cursor);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
import './textarea.css';
|
|
3
|
+
export type TextAreaBaseProps = JSX.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
4
|
+
export interface TextAreaProps extends TextAreaBaseProps {
|
|
5
|
+
}
|
|
6
|
+
export declare function TextArea(props: TextAreaProps): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import clsx from 'clsx/lite';
|
|
2
|
+
import { splitProps } from 'solid-js';
|
|
3
|
+
import { textAreaClass } from './class';
|
|
4
|
+
import './textarea.css';
|
|
5
|
+
export function TextArea(props) {
|
|
6
|
+
const [local, rest] = splitProps(props, ['class']);
|
|
7
|
+
const rootClass = () => clsx(textAreaClass.root, local.class);
|
|
8
|
+
return (<textarea class={rootClass()} {...rest}/>);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=textarea.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.jsx","sourceRoot":"","sources":["../../../../src/components/textarea/textarea.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,gBAAgB,CAAC;AAMxB,MAAM,UAAU,QAAQ,CAAC,KAAoB;IAC5C,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEnD,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAE9D,OAAO,CACN,CAAC,QAAQ,CACR,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,IAAI,CAAC,EACR,CACF,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { type JSX, splitProps } from 'solid-js';\nimport { textAreaClass } from './class';\nimport './textarea.css';\n\nexport type TextAreaBaseProps = JSX.TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nexport interface TextAreaProps extends TextAreaBaseProps {}\n\nexport function TextArea(props: TextAreaProps) {\n\tconst [local, rest] = splitProps(props, ['class']);\n\n\tconst rootClass = () => clsx(textAreaClass.root, local.class);\n\n\treturn (\n\t\t<textarea\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t/>\n\t);\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const xstackClass: {
|
|
2
|
+
readonly root: 'fl-xstack';
|
|
3
|
+
readonly garVar: '--fl-gap';
|
|
4
|
+
readonly align: {
|
|
5
|
+
readonly top: '--align-top';
|
|
6
|
+
readonly center: '--align-center';
|
|
7
|
+
readonly bottom: '--align-bottom';
|
|
8
|
+
readonly stretch: '--align-stretch';
|
|
9
|
+
readonly baseline: '--align-baseline';
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type XStackAlign = keyof typeof xstackClass.align;
|