solid-tiny-ui 0.5.0 → 0.6.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/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/alert/alert.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/alert/alert.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/buttons/basic-button/basic-button.js +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/buttons/basic-button/basic-button.jsx +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/drawer/drawer-helper.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/drawer/drawer-helper.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/drawer/drawer.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/drawer/drawer.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/field/field.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/field/field.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/checkbox/checkbox.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/checkbox/checkbox.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/combobox/combobox.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/combobox/combobox.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/number-input/number-input.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/number-input/number-input.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/password-input/password-input.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/password-input/password-input.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/radio-group/radio-group.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/radio-group/radio-group.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/switcher/switcher.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/switcher/switcher.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/text-field/text-field.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/text-field/text-field.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/textarea/textarea.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/textarea/textarea.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/time-picker/time-picker.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/form-components/time-picker/time-picker.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/modal/modal-helper.js +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/modal/modal-helper.jsx +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/modal/modal.js +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/modal/modal.jsx +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/pagination/pagination.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/pagination/pagination.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/popover/popover.js +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/popover/popover.jsx +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/spin/spin.js +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/spin/spin.jsx +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/tabs/tabs.js +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/tabs/tabs.jsx +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/toaster/toaster.js +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/toaster/toaster.jsx +5 -0
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/tooltip/tooltip.js +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/tooltip/tooltip.jsx +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/root-provider/global.js +1 -1
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/root-provider/global.jsx +1 -1
- package/dist/components/alert/alert.d.ts +25 -0
- package/dist/components/alert/alert.js +186 -0
- package/dist/components/alert/alert.jsx +73 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/alert/index.jsx +1 -0
- package/dist/components/buttons/basic-button/basic-button.d.ts +2 -2
- package/dist/components/buttons/basic-button/basic-button.js +20 -29
- package/dist/components/buttons/basic-button/basic-button.jsx +6 -7
- package/dist/components/buttons/state-button/state-button.d.ts +2 -2
- package/dist/components/buttons/state-button/state-button.js +2 -2
- package/dist/components/buttons/state-button/state-button.jsx +2 -2
- package/dist/components/drawer/helpers.d.ts +25 -0
- package/dist/components/drawer/helpers.js +104 -0
- package/dist/components/drawer/helpers.jsx +60 -0
- package/dist/components/drawer/index.d.ts +42 -0
- package/dist/components/drawer/index.js +95 -0
- package/dist/components/drawer/index.jsx +57 -0
- package/dist/components/field/index.d.ts +10 -0
- package/dist/components/field/index.js +11 -0
- package/dist/components/field/index.jsx +11 -0
- package/dist/components/field/parts.d.ts +24 -0
- package/dist/components/field/parts.js +69 -0
- package/dist/components/field/parts.jsx +41 -0
- package/dist/components/form-components/checkbox/checkbox.d.ts +26 -0
- package/dist/components/form-components/checkbox/checkbox.js +118 -0
- package/dist/components/form-components/checkbox/checkbox.jsx +42 -0
- package/dist/components/form-components/checkbox/index.d.ts +1 -0
- package/dist/components/form-components/checkbox/index.js +1 -0
- package/dist/components/form-components/checkbox/index.jsx +1 -0
- package/dist/components/form-components/checkbox-group/checkbox-group.d.ts +26 -0
- package/dist/components/form-components/checkbox-group/checkbox-group.js +76 -0
- package/dist/components/form-components/checkbox-group/checkbox-group.jsx +34 -0
- package/dist/components/form-components/checkbox-group/index.d.ts +1 -0
- package/dist/components/form-components/checkbox-group/index.js +1 -0
- package/dist/components/form-components/checkbox-group/index.jsx +1 -0
- package/dist/components/{combobox → form-components/combobox}/combobox.d.ts +6 -4
- package/dist/components/{combobox → form-components/combobox}/combobox.js +18 -14
- package/dist/components/{combobox → form-components/combobox}/combobox.jsx +10 -10
- package/dist/components/form-components/index.d.ts +19 -0
- package/dist/components/form-components/index.js +19 -0
- package/dist/components/form-components/index.jsx +19 -0
- package/dist/components/form-components/number-input/index.d.ts +1 -0
- package/dist/components/form-components/number-input/index.js +1 -0
- package/dist/components/form-components/number-input/index.jsx +1 -0
- package/dist/components/form-components/number-input/number-input.d.ts +33 -0
- package/dist/components/form-components/number-input/number-input.js +113 -0
- package/dist/components/form-components/number-input/number-input.jsx +59 -0
- package/dist/components/form-components/password-input/index.d.ts +1 -0
- package/dist/components/form-components/password-input/index.js +1 -0
- package/dist/components/form-components/password-input/index.jsx +1 -0
- package/dist/components/form-components/password-input/password-input.d.ts +31 -0
- package/dist/components/form-components/password-input/password-input.js +95 -0
- package/dist/components/form-components/password-input/password-input.jsx +36 -0
- package/dist/components/form-components/radio-group/index.d.ts +1 -0
- package/dist/components/form-components/radio-group/index.js +1 -0
- package/dist/components/form-components/radio-group/index.jsx +1 -0
- package/dist/components/form-components/radio-group/radio-group.d.ts +26 -0
- package/dist/components/form-components/radio-group/radio-group.js +118 -0
- package/dist/components/form-components/radio-group/radio-group.jsx +45 -0
- package/dist/components/form-components/switcher/index.d.ts +1 -0
- package/dist/components/form-components/switcher/index.js +1 -0
- package/dist/components/form-components/switcher/index.jsx +1 -0
- package/dist/components/form-components/switcher/switcher.d.ts +23 -0
- package/dist/components/form-components/switcher/switcher.js +92 -0
- package/dist/components/form-components/switcher/switcher.jsx +32 -0
- package/dist/components/form-components/text-field/index.d.ts +1 -0
- package/dist/components/form-components/text-field/index.js +1 -0
- package/dist/components/form-components/text-field/index.jsx +1 -0
- package/dist/components/form-components/text-field/text-field.d.ts +30 -0
- package/dist/components/form-components/text-field/text-field.js +112 -0
- package/dist/components/form-components/text-field/text-field.jsx +40 -0
- package/dist/components/{textarea → form-components/textarea}/textarea.d.ts +5 -2
- package/dist/components/form-components/textarea/textarea.js +55 -0
- package/dist/components/form-components/textarea/textarea.jsx +24 -0
- package/dist/components/form-components/time-picker/index.d.ts +27 -0
- package/dist/components/{time-picker → form-components/time-picker}/index.js +21 -5
- package/dist/components/{time-picker → form-components/time-picker}/index.jsx +11 -6
- package/dist/components/{time-picker → form-components/time-picker}/panel.js +6 -6
- package/dist/components/{time-picker → form-components/time-picker}/panel.jsx +6 -6
- package/dist/components/{time-picker → form-components/time-picker}/trigger.js +14 -10
- package/dist/components/{time-picker → form-components/time-picker}/trigger.jsx +4 -4
- package/dist/components/modal/helpers.js +1 -1
- package/dist/components/modal/helpers.jsx +1 -1
- package/dist/components/modal/index.d.ts +5 -8
- package/dist/components/modal/index.js +13 -10
- package/dist/components/modal/index.jsx +7 -4
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/index.js +1 -0
- package/dist/components/pagination/index.jsx +1 -0
- package/dist/components/pagination/pagination.d.ts +32 -0
- package/dist/components/pagination/pagination.js +336 -0
- package/dist/components/pagination/pagination.jsx +104 -0
- package/dist/components/progress/circle-progress.d.ts +7 -0
- package/dist/components/progress/circle-progress.js +33 -14
- package/dist/components/progress/circle-progress.jsx +15 -12
- package/dist/components/progress/line-progress.d.ts +2 -2
- package/dist/components/progress/line-progress.js +6 -5
- package/dist/components/progress/line-progress.jsx +6 -5
- package/dist/components/progress/loading-bar.d.ts +2 -2
- package/dist/components/spin/spin-ring.d.ts +2 -2
- package/dist/components/spin/spin-ring.js +1 -1
- package/dist/components/spin/spin-ring.jsx +1 -1
- package/dist/components/spin/spin.js +8 -7
- package/dist/components/spin/spin.jsx +6 -5
- package/dist/components/tabs/index.d.ts +7 -0
- package/dist/components/tabs/index.js +40 -12
- package/dist/components/tabs/index.jsx +9 -7
- package/dist/components/toaster/context.js +31 -0
- package/dist/components/toaster/context.jsx +31 -0
- package/dist/components/toaster/icon.js +50 -0
- package/dist/components/toaster/icon.jsx +27 -0
- package/dist/components/toaster/index.d.ts +3 -0
- package/dist/components/toaster/index.js +2 -0
- package/dist/components/toaster/index.jsx +2 -0
- package/dist/components/toaster/locator.js +67 -0
- package/dist/components/toaster/locator.jsx +54 -0
- package/dist/components/toaster/one-toaster.js +146 -0
- package/dist/components/toaster/one-toaster.jsx +104 -0
- package/dist/components/toaster/provider.d.ts +11 -0
- package/dist/components/toaster/provider.js +64 -0
- package/dist/components/toaster/provider.jsx +51 -0
- package/dist/components/toaster/type.d.ts +15 -0
- package/dist/components/toaster/use-toaster.d.ts +48 -0
- package/dist/components/toaster/use-toaster.js +72 -0
- package/dist/components/toaster/use-toaster.jsx +72 -0
- package/dist/components/tooltip/tooltip.d.ts +7 -0
- package/dist/components/tooltip/tooltip.js +9 -2
- package/dist/components/tooltip/tooltip.jsx +4 -2
- package/dist/components/visually-hidden/index.js +10 -8
- package/dist/components/visually-hidden/index.jsx +3 -2
- package/dist/icons/arrow-down-s-line.d.ts +3 -2
- package/dist/icons/arrow-down-s-line.js +4 -4
- package/dist/icons/arrow-down-s-line.jsx +2 -2
- package/dist/icons/arrow-left.d.ts +7 -0
- package/dist/icons/arrow-left.js +13 -0
- package/dist/icons/arrow-left.jsx +11 -0
- package/dist/icons/arrow-right.d.ts +7 -0
- package/dist/icons/arrow-right.js +13 -0
- package/dist/icons/arrow-right.jsx +11 -0
- package/dist/icons/check-bold.d.ts +7 -0
- package/dist/icons/check-bold.js +13 -0
- package/dist/icons/check-bold.jsx +11 -0
- package/dist/icons/check-line.d.ts +3 -2
- package/dist/icons/check-line.js +4 -4
- package/dist/icons/check-line.jsx +2 -2
- package/dist/icons/checkbox-circle-line.d.ts +7 -0
- package/dist/icons/checkbox-circle-line.js +13 -0
- package/dist/icons/checkbox-circle-line.jsx +11 -0
- package/dist/icons/close-line.d.ts +3 -2
- package/dist/icons/close-line.js +4 -4
- package/dist/icons/close-line.jsx +2 -2
- package/dist/icons/common.d.ts +9 -0
- package/dist/icons/common.js +12 -2
- package/dist/icons/common.jsx +1 -1
- package/dist/icons/ellipsis.d.ts +7 -0
- package/dist/icons/ellipsis.js +13 -0
- package/dist/icons/ellipsis.jsx +11 -0
- package/dist/icons/error-warning-line.d.ts +7 -0
- package/dist/icons/error-warning-line.js +13 -0
- package/dist/icons/error-warning-line.jsx +11 -0
- package/dist/icons/eye-line.d.ts +7 -0
- package/dist/icons/eye-line.js +13 -0
- package/dist/icons/eye-line.jsx +11 -0
- package/dist/icons/eye-off-line.d.ts +7 -0
- package/dist/icons/eye-off-line.js +13 -0
- package/dist/icons/eye-off-line.jsx +11 -0
- package/dist/icons/index.d.ts +12 -1
- package/dist/icons/index.js +12 -1
- package/dist/icons/index.jsx +12 -1
- package/dist/icons/information-line.d.ts +7 -0
- package/dist/icons/information-line.js +13 -0
- package/dist/icons/information-line.jsx +11 -0
- package/dist/icons/loading.d.ts +13 -0
- package/dist/icons/loading.js +18 -0
- package/dist/icons/loading.jsx +19 -0
- package/dist/icons/subtract.d.ts +7 -0
- package/dist/icons/subtract.js +13 -0
- package/dist/icons/subtract.jsx +11 -0
- package/dist/index.d.ts +23 -9
- package/dist/index.js +23 -10
- package/dist/index.jsx +23 -10
- package/dist/layout/flex/index.d.ts +5 -4
- package/dist/layout/flex/index.js +25 -15
- package/dist/layout/flex/index.jsx +23 -10
- package/dist/layout/index.d.ts +1 -2
- package/dist/layout/index.js +0 -1
- package/dist/layout/index.jsx +0 -1
- package/dist/primitives/animated-group/context.d.ts +6 -6
- package/dist/primitives/animated-group/panel.js +14 -13
- package/dist/primitives/animated-group/panel.jsx +7 -6
- package/dist/primitives/animated-group/root.d.ts +4 -4
- package/dist/primitives/animated-group/root.js +2 -3
- package/dist/primitives/animated-group/root.jsx +2 -3
- package/dist/primitives/checkbox/context.d.ts +63 -0
- package/dist/primitives/checkbox/context.js +13 -0
- package/dist/primitives/checkbox/context.jsx +13 -0
- package/dist/primitives/checkbox/index.d.ts +26 -0
- package/dist/primitives/checkbox/index.js +13 -0
- package/dist/primitives/checkbox/index.jsx +13 -0
- package/dist/primitives/checkbox/parts.d.ts +10 -0
- package/dist/primitives/checkbox/parts.js +62 -0
- package/dist/primitives/checkbox/parts.jsx +28 -0
- package/dist/primitives/checkbox/root.d.ts +16 -0
- package/dist/primitives/checkbox/root.js +25 -0
- package/dist/primitives/checkbox/root.jsx +24 -0
- package/dist/primitives/checkbox-group/context.js +21 -0
- package/dist/primitives/checkbox-group/context.jsx +21 -0
- package/dist/primitives/checkbox-group/index.js +12 -0
- package/dist/primitives/checkbox-group/index.jsx +12 -0
- package/dist/primitives/checkbox-group/parts.js +33 -0
- package/dist/primitives/checkbox-group/parts.jsx +21 -0
- package/dist/primitives/checkbox-group/root.js +24 -0
- package/dist/primitives/checkbox-group/root.jsx +23 -0
- package/dist/primitives/fake-scroll-list/index.d.ts +2 -2
- package/dist/primitives/fake-scroll-list/listbox.js +2 -2
- package/dist/primitives/floating/content.js +12 -11
- package/dist/primitives/floating/content.jsx +7 -6
- package/dist/primitives/floating/context.d.ts +10 -9
- package/dist/primitives/floating/context.js +1 -1
- package/dist/primitives/floating/context.jsx +1 -1
- package/dist/primitives/floating/index.d.ts +5 -4
- package/dist/primitives/floating/trigger.js +1 -1
- package/dist/primitives/floating/trigger.jsx +1 -1
- package/dist/primitives/floating/types.d.ts +2 -1
- package/dist/primitives/index.d.ts +7 -1
- package/dist/primitives/index.js +7 -3
- package/dist/primitives/index.jsx +7 -3
- package/dist/primitives/listbox/listbox.d.ts +3 -3
- package/dist/primitives/modal/content.d.ts +3 -3
- package/dist/primitives/modal/content.js +2 -3
- package/dist/primitives/modal/content.jsx +2 -3
- package/dist/primitives/modal/context.d.ts +16 -29
- package/dist/primitives/modal/context.js +2 -4
- package/dist/primitives/modal/context.jsx +2 -4
- package/dist/primitives/modal/index.d.ts +5 -8
- package/dist/primitives/modal/portal.js +1 -1
- package/dist/primitives/modal/portal.jsx +1 -1
- package/dist/primitives/modal/root.d.ts +2 -3
- package/dist/primitives/modal/root.js +10 -10
- package/dist/primitives/modal/root.jsx +10 -10
- package/dist/primitives/pagination/context.d.ts +89 -0
- package/dist/primitives/pagination/context.js +88 -0
- package/dist/primitives/pagination/context.jsx +88 -0
- package/dist/primitives/pagination/index.d.ts +33 -0
- package/dist/primitives/pagination/index.js +12 -0
- package/dist/primitives/pagination/index.jsx +12 -0
- package/dist/primitives/pagination/items.d.ts +9 -0
- package/dist/primitives/pagination/items.js +19 -0
- package/dist/primitives/pagination/items.jsx +11 -0
- package/dist/primitives/pagination/root.d.ts +16 -0
- package/dist/primitives/pagination/root.js +24 -0
- package/dist/primitives/pagination/root.jsx +23 -0
- package/dist/primitives/radio-group/context.d.ts +91 -0
- package/dist/primitives/radio-group/context.js +16 -0
- package/dist/primitives/radio-group/context.jsx +16 -0
- package/dist/primitives/radio-group/index.d.ts +34 -0
- package/dist/primitives/radio-group/index.js +15 -0
- package/dist/primitives/radio-group/index.jsx +15 -0
- package/dist/primitives/radio-group/item.d.ts +19 -0
- package/dist/primitives/radio-group/item.js +74 -0
- package/dist/primitives/radio-group/item.jsx +44 -0
- package/dist/primitives/radio-group/root.d.ts +14 -0
- package/dist/primitives/radio-group/root.js +23 -0
- package/dist/primitives/radio-group/root.jsx +22 -0
- package/dist/root-provider/context.d.ts +16 -9
- package/dist/root-provider/context.js +4 -1
- package/dist/root-provider/context.jsx +4 -1
- package/dist/root-provider/gen-colors.js +138 -0
- package/dist/root-provider/gen-colors.jsx +138 -0
- package/dist/root-provider/provider.js +4 -3
- package/dist/root-provider/provider.jsx +3 -2
- package/dist/utils/duration.js +10 -0
- package/dist/utils/duration.jsx +10 -0
- package/dist/utils/index.js +1 -4
- package/dist/utils/index.jsx +1 -4
- package/dist/utils/types.d.ts +4 -8
- package/package.json +4 -4
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/combobox/combobox.js +0 -5
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/combobox/combobox.jsx +0 -5
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/input/input.js +0 -5
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/input/input.jsx +0 -5
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/textarea/textarea.js +0 -5
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/textarea/textarea.jsx +0 -5
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/time-picker/time-picker.js +0 -5
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/time-picker/time-picker.jsx +0 -5
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/layout/input-compact/input-compact.js +0 -5
- package/dist/_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/layout/input-compact/input-compact.jsx +0 -5
- package/dist/components/input/index.d.ts +0 -1
- package/dist/components/input/index.js +0 -1
- package/dist/components/input/index.jsx +0 -1
- package/dist/components/input/input.d.ts +0 -15
- package/dist/components/input/input.js +0 -44
- package/dist/components/input/input.jsx +0 -16
- package/dist/components/textarea/textarea.js +0 -49
- package/dist/components/textarea/textarea.jsx +0 -24
- package/dist/components/time-picker/index.d.ts +0 -18
- package/dist/layout/input-compact/index.d.ts +0 -13
- package/dist/layout/input-compact/index.js +0 -42
- package/dist/layout/input-compact/index.jsx +0 -32
- package/dist/root-provider/gen-brand.js +0 -55
- package/dist/root-provider/gen-brand.jsx +0 -55
- package/dist/utils/types.js +0 -7
- package/dist/utils/types.jsx +0 -7
- /package/dist/components/{combobox → form-components/combobox}/index.d.ts +0 -0
- /package/dist/components/{combobox → form-components/combobox}/index.js +0 -0
- /package/dist/components/{combobox → form-components/combobox}/index.jsx +0 -0
- /package/dist/components/{textarea → form-components/textarea}/index.d.ts +0 -0
- /package/dist/components/{textarea → form-components/textarea}/index.js +0 -0
- /package/dist/components/{textarea → form-components/textarea}/index.jsx +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { extraAriasAndDatasets } from "../../utils/index.js";
|
|
2
|
-
import input_default from "../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/input/input.js";
|
|
3
|
-
import { delegateEvents, memo, mergeProps, spread, template } from "solid-js/web";
|
|
4
|
-
import { dataIf, mountStyle } from "solid-tiny-utils";
|
|
5
|
-
|
|
6
|
-
//#region src/components/input/input.tsx
|
|
7
|
-
var _tmpl$ = /* @__PURE__ */ template(`<input class="tiny-input tiny-input-vars"type=text>`);
|
|
8
|
-
function Input(props) {
|
|
9
|
-
mountStyle(input_default, "tiny-input");
|
|
10
|
-
return (() => {
|
|
11
|
-
var _el$ = _tmpl$();
|
|
12
|
-
_el$.addEventListener("keypress", (e) => {
|
|
13
|
-
if (e.key === "Enter") props.onPressEnter?.();
|
|
14
|
-
});
|
|
15
|
-
_el$.$$input = (e) => {
|
|
16
|
-
props.onChange?.(e.currentTarget.value);
|
|
17
|
-
};
|
|
18
|
-
spread(_el$, mergeProps({
|
|
19
|
-
get ["data-disabled"]() {
|
|
20
|
-
return dataIf(props.disabled ?? false);
|
|
21
|
-
},
|
|
22
|
-
get ["data-size"]() {
|
|
23
|
-
return props.size || "medium";
|
|
24
|
-
},
|
|
25
|
-
get disabled() {
|
|
26
|
-
return props.disabled;
|
|
27
|
-
},
|
|
28
|
-
get id() {
|
|
29
|
-
return props.id;
|
|
30
|
-
},
|
|
31
|
-
get placeholder() {
|
|
32
|
-
return props.placeholder;
|
|
33
|
-
},
|
|
34
|
-
get value() {
|
|
35
|
-
return props.value;
|
|
36
|
-
}
|
|
37
|
-
}, () => extraAriasAndDatasets(props)), false, false);
|
|
38
|
-
return _el$;
|
|
39
|
-
})();
|
|
40
|
-
}
|
|
41
|
-
delegateEvents(["input"]);
|
|
42
|
-
|
|
43
|
-
//#endregion
|
|
44
|
-
export { Input };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { extraAriasAndDatasets } from "../../utils/index.jsx";
|
|
2
|
-
import input_default from "../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/input/input.jsx";
|
|
3
|
-
import { dataIf, mountStyle } from "solid-tiny-utils";
|
|
4
|
-
|
|
5
|
-
//#region src/components/input/input.tsx
|
|
6
|
-
function Input(props) {
|
|
7
|
-
mountStyle(input_default, "tiny-input");
|
|
8
|
-
return <input class="tiny-input tiny-input-vars" data-disabled={dataIf(props.disabled ?? false)} data-size={props.size || "medium"} disabled={props.disabled} id={props.id} onInput={(e) => {
|
|
9
|
-
props.onChange?.(e.currentTarget.value);
|
|
10
|
-
}} onKeyPress={(e) => {
|
|
11
|
-
if (e.key === "Enter") props.onPressEnter?.();
|
|
12
|
-
}} placeholder={props.placeholder} type="text" value={props.value} {...extraAriasAndDatasets(props)} />;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
export { Input };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { createClassStyles } from "../../utils/index.js";
|
|
2
|
-
import textarea_default from "../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/textarea/textarea.js";
|
|
3
|
-
import { className, delegateEvents, effect, setAttribute, style, template } from "solid-js/web";
|
|
4
|
-
import { mergeProps as mergeProps$1 } from "solid-js";
|
|
5
|
-
import { combineClass, combineStyle, mountStyle } from "solid-tiny-utils";
|
|
6
|
-
|
|
7
|
-
//#region src/components/textarea/textarea.tsx
|
|
8
|
-
var _tmpl$ = /* @__PURE__ */ template(`<textarea>`);
|
|
9
|
-
function Textarea(props) {
|
|
10
|
-
mountStyle(textarea_default, "tiny-textarea");
|
|
11
|
-
const real = mergeProps$1({
|
|
12
|
-
autosize: false,
|
|
13
|
-
rows: 3,
|
|
14
|
-
disabled: false
|
|
15
|
-
}, props);
|
|
16
|
-
const [classes, styles] = createClassStyles(() => props.classNames, () => props.styles, () => ({ disabled: real.disabled }));
|
|
17
|
-
return (() => {
|
|
18
|
-
var _el$ = _tmpl$();
|
|
19
|
-
_el$.$$input = (e) => {
|
|
20
|
-
props.onChange?.(e.target.value);
|
|
21
|
-
};
|
|
22
|
-
effect((_p$) => {
|
|
23
|
-
var _v$ = combineClass("tiny-textarea tiny-textarea-vars", classes().root), _v$2 = real.disabled, _v$3 = real.maxLength, _v$4 = real.placeholder, _v$5 = real.rows, _v$6 = combineStyle({
|
|
24
|
-
resize: real.resize,
|
|
25
|
-
"min-height": "88px"
|
|
26
|
-
}, styles().root);
|
|
27
|
-
_v$ !== _p$.e && className(_el$, _p$.e = _v$);
|
|
28
|
-
_v$2 !== _p$.t && (_el$.disabled = _p$.t = _v$2);
|
|
29
|
-
_v$3 !== _p$.a && setAttribute(_el$, "maxlength", _p$.a = _v$3);
|
|
30
|
-
_v$4 !== _p$.o && setAttribute(_el$, "placeholder", _p$.o = _v$4);
|
|
31
|
-
_v$5 !== _p$.i && setAttribute(_el$, "rows", _p$.i = _v$5);
|
|
32
|
-
_p$.n = style(_el$, _v$6, _p$.n);
|
|
33
|
-
return _p$;
|
|
34
|
-
}, {
|
|
35
|
-
e: void 0,
|
|
36
|
-
t: void 0,
|
|
37
|
-
a: void 0,
|
|
38
|
-
o: void 0,
|
|
39
|
-
i: void 0,
|
|
40
|
-
n: void 0
|
|
41
|
-
});
|
|
42
|
-
effect(() => _el$.value = real.value);
|
|
43
|
-
return _el$;
|
|
44
|
-
})();
|
|
45
|
-
}
|
|
46
|
-
delegateEvents(["input"]);
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
export { Textarea };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { createClassStyles } from "../../utils/index.jsx";
|
|
2
|
-
import textarea_default from "../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/textarea/textarea.jsx";
|
|
3
|
-
import { mergeProps } from "solid-js";
|
|
4
|
-
import { combineClass, combineStyle, mountStyle } from "solid-tiny-utils";
|
|
5
|
-
|
|
6
|
-
//#region src/components/textarea/textarea.tsx
|
|
7
|
-
function Textarea(props) {
|
|
8
|
-
mountStyle(textarea_default, "tiny-textarea");
|
|
9
|
-
const real = mergeProps({
|
|
10
|
-
autosize: false,
|
|
11
|
-
rows: 3,
|
|
12
|
-
disabled: false
|
|
13
|
-
}, props);
|
|
14
|
-
const [classes, styles] = createClassStyles(() => props.classNames, () => props.styles, () => ({ disabled: real.disabled }));
|
|
15
|
-
return <textarea class={combineClass("tiny-textarea tiny-textarea-vars", classes().root)} disabled={real.disabled} maxLength={real.maxLength} onInput={(e) => {
|
|
16
|
-
props.onChange?.(e.target.value);
|
|
17
|
-
}} placeholder={real.placeholder} rows={real.rows} style={combineStyle({
|
|
18
|
-
resize: real.resize,
|
|
19
|
-
"min-height": "88px"
|
|
20
|
-
}, styles().root)} value={real.value} />;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
export { Textarea };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as solid_js2 from "solid-js";
|
|
2
|
-
|
|
3
|
-
//#region src/components/time-picker/index.d.ts
|
|
4
|
-
declare function TimePicker(props: {
|
|
5
|
-
type?: "hour" | "minute" | "second";
|
|
6
|
-
size?: "small" | "medium" | "large";
|
|
7
|
-
hour?: number | null;
|
|
8
|
-
minute?: number | null;
|
|
9
|
-
second?: number | null;
|
|
10
|
-
onChange?: (time: {
|
|
11
|
-
hour: number | null;
|
|
12
|
-
minute: number | null;
|
|
13
|
-
second: number | null;
|
|
14
|
-
}) => void;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
}): solid_js2.JSX.Element;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { TimePicker };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { JSX } from "solid-js";
|
|
2
|
-
|
|
3
|
-
//#region src/layout/input-compact/index.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Make a bunch of input components appear visually connected.
|
|
7
|
-
*/
|
|
8
|
-
declare function InputCompact(props: {
|
|
9
|
-
children: JSX.Element;
|
|
10
|
-
block?: boolean;
|
|
11
|
-
}): JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { InputCompact };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import input_compact_default from "../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/layout/input-compact/input-compact.js";
|
|
2
|
-
import { createComponent, effect, insert, setAttribute, template } from "solid-js/web";
|
|
3
|
-
import { createSignal } from "solid-js";
|
|
4
|
-
import { createWatch, dataIf, mountStyle } from "solid-tiny-utils";
|
|
5
|
-
import { Refs } from "@solid-primitives/refs";
|
|
6
|
-
|
|
7
|
-
//#region src/layout/input-compact/index.tsx
|
|
8
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div class=tiny-input-compact>`);
|
|
9
|
-
/**
|
|
10
|
-
* Make a bunch of input components appear visually connected.
|
|
11
|
-
*/
|
|
12
|
-
function InputCompact(props) {
|
|
13
|
-
mountStyle(input_compact_default, "tiny-input-compact");
|
|
14
|
-
const [refs, setRefs] = createSignal([]);
|
|
15
|
-
const clearClass = (el) => {
|
|
16
|
-
el.classList.remove("tiny-input-compact__first");
|
|
17
|
-
el.classList.remove("tiny-input-compact__item");
|
|
18
|
-
el.classList.remove("tiny-input-compact__last");
|
|
19
|
-
};
|
|
20
|
-
createWatch(() => refs(), (els) => {
|
|
21
|
-
els.forEach((el, i) => {
|
|
22
|
-
clearClass(el);
|
|
23
|
-
if (i === 0) el.classList.add("tiny-input-compact__first");
|
|
24
|
-
else if (i === els.length - 1) el.classList.add("tiny-input-compact__last");
|
|
25
|
-
else el.classList.add("tiny-input-compact__item");
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
return (() => {
|
|
29
|
-
var _el$ = _tmpl$();
|
|
30
|
-
insert(_el$, createComponent(Refs, {
|
|
31
|
-
ref: setRefs,
|
|
32
|
-
get children() {
|
|
33
|
-
return props.children;
|
|
34
|
-
}
|
|
35
|
-
}));
|
|
36
|
-
effect(() => setAttribute(_el$, "data-block", dataIf(props.block ?? false)));
|
|
37
|
-
return _el$;
|
|
38
|
-
})();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
//#endregion
|
|
42
|
-
export { InputCompact };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import input_compact_default from "../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/layout/input-compact/input-compact.jsx";
|
|
2
|
-
import { createSignal } from "solid-js";
|
|
3
|
-
import { createWatch, dataIf, mountStyle } from "solid-tiny-utils";
|
|
4
|
-
import { Refs } from "@solid-primitives/refs";
|
|
5
|
-
|
|
6
|
-
//#region src/layout/input-compact/index.tsx
|
|
7
|
-
/**
|
|
8
|
-
* Make a bunch of input components appear visually connected.
|
|
9
|
-
*/
|
|
10
|
-
function InputCompact(props) {
|
|
11
|
-
mountStyle(input_compact_default, "tiny-input-compact");
|
|
12
|
-
const [refs, setRefs] = createSignal([]);
|
|
13
|
-
const clearClass = (el) => {
|
|
14
|
-
el.classList.remove("tiny-input-compact__first");
|
|
15
|
-
el.classList.remove("tiny-input-compact__item");
|
|
16
|
-
el.classList.remove("tiny-input-compact__last");
|
|
17
|
-
};
|
|
18
|
-
createWatch(() => refs(), (els) => {
|
|
19
|
-
els.forEach((el, i) => {
|
|
20
|
-
clearClass(el);
|
|
21
|
-
if (i === 0) el.classList.add("tiny-input-compact__first");
|
|
22
|
-
else if (i === els.length - 1) el.classList.add("tiny-input-compact__last");
|
|
23
|
-
else el.classList.add("tiny-input-compact__item");
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
return <div class="tiny-input-compact" data-block={dataIf(props.block ?? false)}>
|
|
27
|
-
<Refs ref={setRefs}>{props.children}</Refs>
|
|
28
|
-
</div>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
|
-
export { InputCompact };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { oklchToRgb } from "solid-tiny-utils";
|
|
2
|
-
|
|
3
|
-
//#region src/root-provider/gen-brand.ts
|
|
4
|
-
const lightRamp = [
|
|
5
|
-
[96, .021],
|
|
6
|
-
[88, .06],
|
|
7
|
-
[81, .09],
|
|
8
|
-
[74, .13],
|
|
9
|
-
[67, .17],
|
|
10
|
-
[59, .22],
|
|
11
|
-
[50, .21],
|
|
12
|
-
[41, .19],
|
|
13
|
-
[34, .16],
|
|
14
|
-
[27, .13]
|
|
15
|
-
];
|
|
16
|
-
const darkRamp = [
|
|
17
|
-
[21, .03],
|
|
18
|
-
[26, .06],
|
|
19
|
-
[31, .08],
|
|
20
|
-
[38, .11],
|
|
21
|
-
[46, .15],
|
|
22
|
-
[54, .19],
|
|
23
|
-
[62, .16],
|
|
24
|
-
[72, .12],
|
|
25
|
-
[80, .09],
|
|
26
|
-
[87, .05]
|
|
27
|
-
];
|
|
28
|
-
function genVars(hue) {
|
|
29
|
-
let css = ":root,.light{";
|
|
30
|
-
let cssDark = ".dark{";
|
|
31
|
-
for (let i = 0; i < 10; i++) {
|
|
32
|
-
const level = i;
|
|
33
|
-
const [l, c] = lightRamp[i];
|
|
34
|
-
const [lD, cD] = darkRamp[i];
|
|
35
|
-
const lightC = oklch2web(l, c || .16, hue);
|
|
36
|
-
const darkC = oklch2web(lD, cD, hue);
|
|
37
|
-
css += `--tiny-c-brand-${level}:${lightC};`;
|
|
38
|
-
cssDark += `--tiny-c-brand-${level}:${darkC};`;
|
|
39
|
-
}
|
|
40
|
-
css += "}";
|
|
41
|
-
cssDark += "}";
|
|
42
|
-
return css + cssDark;
|
|
43
|
-
}
|
|
44
|
-
function oklch2web(l, c, h, a) {
|
|
45
|
-
const { r, g, b } = oklchToRgb({
|
|
46
|
-
l: l / 100,
|
|
47
|
-
c,
|
|
48
|
-
h
|
|
49
|
-
});
|
|
50
|
-
if (a) return `rgba(${r}, ${g}, ${b}, ${a})`;
|
|
51
|
-
return `rgb(${r}, ${g}, ${b})`;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
//#endregion
|
|
55
|
-
export { genVars };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { oklchToRgb } from "solid-tiny-utils";
|
|
2
|
-
|
|
3
|
-
//#region src/root-provider/gen-brand.ts
|
|
4
|
-
const lightRamp = [
|
|
5
|
-
[96, .021],
|
|
6
|
-
[88, .06],
|
|
7
|
-
[81, .09],
|
|
8
|
-
[74, .13],
|
|
9
|
-
[67, .17],
|
|
10
|
-
[59, .22],
|
|
11
|
-
[50, .21],
|
|
12
|
-
[41, .19],
|
|
13
|
-
[34, .16],
|
|
14
|
-
[27, .13]
|
|
15
|
-
];
|
|
16
|
-
const darkRamp = [
|
|
17
|
-
[21, .03],
|
|
18
|
-
[26, .06],
|
|
19
|
-
[31, .08],
|
|
20
|
-
[38, .11],
|
|
21
|
-
[46, .15],
|
|
22
|
-
[54, .19],
|
|
23
|
-
[62, .16],
|
|
24
|
-
[72, .12],
|
|
25
|
-
[80, .09],
|
|
26
|
-
[87, .05]
|
|
27
|
-
];
|
|
28
|
-
function genVars(hue) {
|
|
29
|
-
let css = ":root,.light{";
|
|
30
|
-
let cssDark = ".dark{";
|
|
31
|
-
for (let i = 0; i < 10; i++) {
|
|
32
|
-
const level = i;
|
|
33
|
-
const [l, c] = lightRamp[i];
|
|
34
|
-
const [lD, cD] = darkRamp[i];
|
|
35
|
-
const lightC = oklch2web(l, c || .16, hue);
|
|
36
|
-
const darkC = oklch2web(lD, cD, hue);
|
|
37
|
-
css += `--tiny-c-brand-${level}:${lightC};`;
|
|
38
|
-
cssDark += `--tiny-c-brand-${level}:${darkC};`;
|
|
39
|
-
}
|
|
40
|
-
css += "}";
|
|
41
|
-
cssDark += "}";
|
|
42
|
-
return css + cssDark;
|
|
43
|
-
}
|
|
44
|
-
function oklch2web(l, c, h, a) {
|
|
45
|
-
const { r, g, b } = oklchToRgb({
|
|
46
|
-
l: l / 100,
|
|
47
|
-
c,
|
|
48
|
-
h
|
|
49
|
-
});
|
|
50
|
-
if (a) return `rgba(${r}, ${g}, ${b}, ${a})`;
|
|
51
|
-
return `rgb(${r}, ${g}, ${b})`;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
//#endregion
|
|
55
|
-
export { genVars };
|
package/dist/utils/types.js
DELETED
package/dist/utils/types.jsx
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|