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,5 +1,5 @@
|
|
|
1
1
|
//#region __viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/root-provider/global.scss__viteSafe__
|
|
2
|
-
var global_default = ":root{--tiny-fs-xs:12px;--tiny-fs-sm:14px;--tiny-fs-md:16px;--tiny-fs-lg:20px;--tiny-fs-xl:28px;--tiny-fs-2xl:36px;--tiny-fs-3xl:48px;--tiny-fs-4xl:64px;--tiny-lh-tight:1.3;--tiny-lh-base:1.6;--tiny-lh-relaxed:1.86;--tiny-space-xs:4px;--tiny-space-sm:6px;--tiny-space-md:8px;--tiny-space-lg:12px;--tiny-space-xl:18px;--tiny-space-2xl:24px;--tiny-space-3xl:36px;--tiny-radius-sm:4px;--tiny-radius-md:6px;--tiny-radius-lg:8px;--tiny-radius-xl:12px;--tiny-radius-round:9999px;--tiny-shadow-1:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017;--tiny-shadow-2:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d;--tiny-shadow-3:0 6px 16px -8px #00000014,0 9px 28px 0 #0000000d,0 12px 48px 16px #00000008
|
|
2
|
+
var global_default = ":root{--tiny-fs-xs:12px;--tiny-fs-sm:14px;--tiny-fs-md:16px;--tiny-fs-lg:20px;--tiny-fs-xl:28px;--tiny-fs-2xl:36px;--tiny-fs-3xl:48px;--tiny-fs-4xl:64px;--tiny-lh-tight:1.3;--tiny-lh-base:1.6;--tiny-lh-relaxed:1.86;--tiny-space-xs:4px;--tiny-space-sm:6px;--tiny-space-md:8px;--tiny-space-lg:12px;--tiny-space-xl:18px;--tiny-space-2xl:24px;--tiny-space-3xl:36px;--tiny-radius-sm:4px;--tiny-radius-md:6px;--tiny-radius-lg:8px;--tiny-radius-xl:12px;--tiny-radius-round:9999px;--tiny-shadow-1:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017;--tiny-shadow-2:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d;--tiny-shadow-3:0 6px 16px -8px #00000014,0 9px 28px 0 #0000000d,0 12px 48px 16px #00000008;--tiny-c-border:rgb(var(--tiny-rgb-neutral-5)/.5);--tiny-c-text:rgb(var(--tiny-rgb-neutral-9)/.9);--tiny-c-text-heading:rgb(var(--tiny-rgb-neutral-9));--tiny-c-text-label:rgb(var(--tiny-rgb-neutral-9)/.7);--tiny-c-text-description:rgb(var(--tiny-rgb-neutral-9)/.5);--tiny-c-text-disabled:rgb(var(--tiny-rgb-neutral-9)/.3);--tiny-c-white:#fff;--tiny-c-black:#000}input::-ms-reveal{display:none}input[type=number]::-webkit-inner-spin-button{appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}input[type=number]{appearance:textfield}:focus{outline:none}*,:before,:after{box-sizing:border-box;border-color:var(--tiny-c-border);border-style:solid;border-width:0}html,:host{color:var(--tiny-c-text);font-variation-settings:normal;font-feature-settings:normal;font-variant-numeric:tabular-nums;tab-size:4;text-size-adjust:100%;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:14px;line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-variation-settings:normal;font-feature-settings:normal;font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-collapse:collapse;border-color:inherit}button,input,optgroup,select,textarea{font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;font-feature-settings:inherit;line-height:inherit;color:inherit;background:0 0;border:none;outline:none;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{appearance:auto;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{font:inherit;appearance:auto}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}";
|
|
3
3
|
|
|
4
4
|
//#endregion
|
|
5
5
|
export { global_default as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ClassNames, Styles } from "../../utils/types.js";
|
|
2
|
+
import { JSX } from "solid-js";
|
|
3
|
+
|
|
4
|
+
//#region src/components/alert/alert.d.ts
|
|
5
|
+
type AlertStatus = "success" | "error" | "warning" | "info";
|
|
6
|
+
type AlertVariant = "subtle" | "solid" | "outline";
|
|
7
|
+
interface AlertState {
|
|
8
|
+
status: AlertStatus;
|
|
9
|
+
variant: AlertVariant;
|
|
10
|
+
}
|
|
11
|
+
declare function Alert(props: {
|
|
12
|
+
status?: AlertStatus;
|
|
13
|
+
variant?: AlertVariant;
|
|
14
|
+
title?: JSX.Element;
|
|
15
|
+
description?: JSX.Element;
|
|
16
|
+
children?: JSX.Element;
|
|
17
|
+
icon?: JSX.Element;
|
|
18
|
+
showIcon?: boolean;
|
|
19
|
+
showClose?: boolean;
|
|
20
|
+
onClose?: () => void;
|
|
21
|
+
classNames?: ClassNames<"root" | "icon" | "content" | "title" | "description" | "close", AlertState>;
|
|
22
|
+
styles?: Styles<"root" | "icon" | "content" | "title" | "description" | "close", AlertState>;
|
|
23
|
+
}): JSX.Element;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { Alert, AlertState, AlertStatus, AlertVariant };
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import alert_default from "../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/alert/alert.js";
|
|
2
|
+
import { IconCheckboxCircleLine } from "../../icons/checkbox-circle-line.js";
|
|
3
|
+
import { CloseLine } from "../../icons/close-line.js";
|
|
4
|
+
import { IconErrorWarningLine } from "../../icons/error-warning-line.js";
|
|
5
|
+
import { InformationLine } from "../../icons/information-line.js";
|
|
6
|
+
import "../../icons/index.js";
|
|
7
|
+
import { createClassStyles } from "../../utils/index.js";
|
|
8
|
+
import { addEventListener, className, createComponent, delegateEvents, effect, insert, memo, setAttribute, style, template } from "solid-js/web";
|
|
9
|
+
import { Match, Show, Switch, children, createMemo } from "solid-js";
|
|
10
|
+
import { combineClass, mountStyle } from "solid-tiny-utils";
|
|
11
|
+
|
|
12
|
+
//#region src/components/alert/alert.tsx
|
|
13
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div>`), _tmpl$2 = /* @__PURE__ */ template(`<button aria-label="Close alert"type=button>`), _tmpl$3 = /* @__PURE__ */ template(`<div role=alert>`);
|
|
14
|
+
function AlertIcon(props) {
|
|
15
|
+
return createComponent(Switch, { get children() {
|
|
16
|
+
return [
|
|
17
|
+
createComponent(Match, {
|
|
18
|
+
get when() {
|
|
19
|
+
return props.status === "info";
|
|
20
|
+
},
|
|
21
|
+
get children() {
|
|
22
|
+
return createComponent(InformationLine, { size: "20px" });
|
|
23
|
+
}
|
|
24
|
+
}),
|
|
25
|
+
createComponent(Match, {
|
|
26
|
+
get when() {
|
|
27
|
+
return props.status === "success";
|
|
28
|
+
},
|
|
29
|
+
get children() {
|
|
30
|
+
return createComponent(IconCheckboxCircleLine, { size: "20px" });
|
|
31
|
+
}
|
|
32
|
+
}),
|
|
33
|
+
createComponent(Match, {
|
|
34
|
+
get when() {
|
|
35
|
+
return props.status === "error" || props.status === "warning";
|
|
36
|
+
},
|
|
37
|
+
get children() {
|
|
38
|
+
return createComponent(IconErrorWarningLine, { size: "20px" });
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
];
|
|
42
|
+
} });
|
|
43
|
+
}
|
|
44
|
+
function Alert(props) {
|
|
45
|
+
mountStyle(alert_default, "tiny-alert");
|
|
46
|
+
const status = () => props.status ?? "info";
|
|
47
|
+
const variant = () => props.variant ?? "subtle";
|
|
48
|
+
const showIcon = () => props.showIcon ?? true;
|
|
49
|
+
const [classes, styles] = createClassStyles(() => props.classNames, () => props.styles, () => ({
|
|
50
|
+
status: status(),
|
|
51
|
+
variant: variant()
|
|
52
|
+
}));
|
|
53
|
+
const resolvedIcon = children(() => props.icon);
|
|
54
|
+
const resolvedTitle = children(() => props.title);
|
|
55
|
+
const resolvedDescription = children(() => props.description);
|
|
56
|
+
const resolvedChildren = children(() => props.children);
|
|
57
|
+
const hasContent = createMemo(() => {
|
|
58
|
+
return resolvedTitle() || resolvedDescription() || resolvedChildren();
|
|
59
|
+
});
|
|
60
|
+
return (() => {
|
|
61
|
+
var _el$ = _tmpl$3();
|
|
62
|
+
insert(_el$, createComponent(Show, {
|
|
63
|
+
get when() {
|
|
64
|
+
return showIcon();
|
|
65
|
+
},
|
|
66
|
+
get children() {
|
|
67
|
+
var _el$2 = _tmpl$();
|
|
68
|
+
insert(_el$2, () => resolvedIcon() || createComponent(AlertIcon, { get status() {
|
|
69
|
+
return status();
|
|
70
|
+
} }));
|
|
71
|
+
effect((_p$) => {
|
|
72
|
+
var _v$ = combineClass("tiny-alert__icon", classes().icon), _v$2 = styles().icon;
|
|
73
|
+
_v$ !== _p$.e && className(_el$2, _p$.e = _v$);
|
|
74
|
+
_p$.t = style(_el$2, _v$2, _p$.t);
|
|
75
|
+
return _p$;
|
|
76
|
+
}, {
|
|
77
|
+
e: void 0,
|
|
78
|
+
t: void 0
|
|
79
|
+
});
|
|
80
|
+
return _el$2;
|
|
81
|
+
}
|
|
82
|
+
}), null);
|
|
83
|
+
insert(_el$, createComponent(Show, {
|
|
84
|
+
get when() {
|
|
85
|
+
return hasContent();
|
|
86
|
+
},
|
|
87
|
+
get children() {
|
|
88
|
+
var _el$3 = _tmpl$();
|
|
89
|
+
insert(_el$3, createComponent(Show, {
|
|
90
|
+
get when() {
|
|
91
|
+
return resolvedTitle();
|
|
92
|
+
},
|
|
93
|
+
get children() {
|
|
94
|
+
var _el$4 = _tmpl$();
|
|
95
|
+
insert(_el$4, resolvedTitle);
|
|
96
|
+
effect((_p$) => {
|
|
97
|
+
var _v$3 = combineClass("tiny-alert__title", classes().title), _v$4 = styles().title;
|
|
98
|
+
_v$3 !== _p$.e && className(_el$4, _p$.e = _v$3);
|
|
99
|
+
_p$.t = style(_el$4, _v$4, _p$.t);
|
|
100
|
+
return _p$;
|
|
101
|
+
}, {
|
|
102
|
+
e: void 0,
|
|
103
|
+
t: void 0
|
|
104
|
+
});
|
|
105
|
+
return _el$4;
|
|
106
|
+
}
|
|
107
|
+
}), null);
|
|
108
|
+
insert(_el$3, createComponent(Show, {
|
|
109
|
+
get when() {
|
|
110
|
+
return resolvedDescription();
|
|
111
|
+
},
|
|
112
|
+
get children() {
|
|
113
|
+
var _el$5 = _tmpl$();
|
|
114
|
+
insert(_el$5, resolvedDescription);
|
|
115
|
+
effect((_p$) => {
|
|
116
|
+
var _v$5 = combineClass("tiny-alert__description", classes().description), _v$6 = styles().description;
|
|
117
|
+
_v$5 !== _p$.e && className(_el$5, _p$.e = _v$5);
|
|
118
|
+
_p$.t = style(_el$5, _v$6, _p$.t);
|
|
119
|
+
return _p$;
|
|
120
|
+
}, {
|
|
121
|
+
e: void 0,
|
|
122
|
+
t: void 0
|
|
123
|
+
});
|
|
124
|
+
return _el$5;
|
|
125
|
+
}
|
|
126
|
+
}), null);
|
|
127
|
+
insert(_el$3, createComponent(Show, {
|
|
128
|
+
get when() {
|
|
129
|
+
return resolvedChildren();
|
|
130
|
+
},
|
|
131
|
+
get children() {
|
|
132
|
+
return resolvedChildren();
|
|
133
|
+
}
|
|
134
|
+
}), null);
|
|
135
|
+
effect((_p$) => {
|
|
136
|
+
var _v$7 = combineClass("tiny-alert__content", classes().content), _v$8 = styles().content;
|
|
137
|
+
_v$7 !== _p$.e && className(_el$3, _p$.e = _v$7);
|
|
138
|
+
_p$.t = style(_el$3, _v$8, _p$.t);
|
|
139
|
+
return _p$;
|
|
140
|
+
}, {
|
|
141
|
+
e: void 0,
|
|
142
|
+
t: void 0
|
|
143
|
+
});
|
|
144
|
+
return _el$3;
|
|
145
|
+
}
|
|
146
|
+
}), null);
|
|
147
|
+
insert(_el$, createComponent(Show, {
|
|
148
|
+
get when() {
|
|
149
|
+
return props.showClose;
|
|
150
|
+
},
|
|
151
|
+
get children() {
|
|
152
|
+
var _el$6 = _tmpl$2();
|
|
153
|
+
addEventListener(_el$6, "click", props.onClose, true);
|
|
154
|
+
insert(_el$6, createComponent(CloseLine, { size: "16px" }));
|
|
155
|
+
effect((_p$) => {
|
|
156
|
+
var _v$9 = combineClass("tiny-alert__close", classes().close), _v$0 = styles().close;
|
|
157
|
+
_v$9 !== _p$.e && className(_el$6, _p$.e = _v$9);
|
|
158
|
+
_p$.t = style(_el$6, _v$0, _p$.t);
|
|
159
|
+
return _p$;
|
|
160
|
+
}, {
|
|
161
|
+
e: void 0,
|
|
162
|
+
t: void 0
|
|
163
|
+
});
|
|
164
|
+
return _el$6;
|
|
165
|
+
}
|
|
166
|
+
}), null);
|
|
167
|
+
effect((_p$) => {
|
|
168
|
+
var _v$1 = combineClass("tiny-alert", classes().root), _v$10 = status(), _v$11 = variant(), _v$12 = styles().root;
|
|
169
|
+
_v$1 !== _p$.e && className(_el$, _p$.e = _v$1);
|
|
170
|
+
_v$10 !== _p$.t && setAttribute(_el$, "data-status", _p$.t = _v$10);
|
|
171
|
+
_v$11 !== _p$.a && setAttribute(_el$, "data-variant", _p$.a = _v$11);
|
|
172
|
+
_p$.o = style(_el$, _v$12, _p$.o);
|
|
173
|
+
return _p$;
|
|
174
|
+
}, {
|
|
175
|
+
e: void 0,
|
|
176
|
+
t: void 0,
|
|
177
|
+
a: void 0,
|
|
178
|
+
o: void 0
|
|
179
|
+
});
|
|
180
|
+
return _el$;
|
|
181
|
+
})();
|
|
182
|
+
}
|
|
183
|
+
delegateEvents(["click"]);
|
|
184
|
+
|
|
185
|
+
//#endregion
|
|
186
|
+
export { Alert };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import alert_default from "../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/alert/alert.jsx";
|
|
2
|
+
import { IconCheckboxCircleLine } from "../../icons/checkbox-circle-line.jsx";
|
|
3
|
+
import { CloseLine } from "../../icons/close-line.jsx";
|
|
4
|
+
import { IconErrorWarningLine } from "../../icons/error-warning-line.jsx";
|
|
5
|
+
import { InformationLine } from "../../icons/information-line.jsx";
|
|
6
|
+
import "../../icons/index.jsx";
|
|
7
|
+
import { createClassStyles } from "../../utils/index.jsx";
|
|
8
|
+
import { Match, Show, Switch, children, createMemo } from "solid-js";
|
|
9
|
+
import { combineClass, mountStyle } from "solid-tiny-utils";
|
|
10
|
+
|
|
11
|
+
//#region src/components/alert/alert.tsx
|
|
12
|
+
function AlertIcon(props) {
|
|
13
|
+
return <Switch>
|
|
14
|
+
<Match when={props.status === "info"}>
|
|
15
|
+
<InformationLine size="20px" />
|
|
16
|
+
</Match>
|
|
17
|
+
<Match when={props.status === "success"}>
|
|
18
|
+
<IconCheckboxCircleLine size="20px" />
|
|
19
|
+
</Match>
|
|
20
|
+
<Match when={props.status === "error" || props.status === "warning"}>
|
|
21
|
+
<IconErrorWarningLine size="20px" />
|
|
22
|
+
</Match>
|
|
23
|
+
</Switch>;
|
|
24
|
+
}
|
|
25
|
+
function Alert(props) {
|
|
26
|
+
mountStyle(alert_default, "tiny-alert");
|
|
27
|
+
const status = () => props.status ?? "info";
|
|
28
|
+
const variant = () => props.variant ?? "subtle";
|
|
29
|
+
const showIcon = () => props.showIcon ?? true;
|
|
30
|
+
const [classes, styles] = createClassStyles(() => props.classNames, () => props.styles, () => ({
|
|
31
|
+
status: status(),
|
|
32
|
+
variant: variant()
|
|
33
|
+
}));
|
|
34
|
+
const resolvedIcon = children(() => props.icon);
|
|
35
|
+
const resolvedTitle = children(() => props.title);
|
|
36
|
+
const resolvedDescription = children(() => props.description);
|
|
37
|
+
const resolvedChildren = children(() => props.children);
|
|
38
|
+
const hasContent = createMemo(() => {
|
|
39
|
+
return resolvedTitle() || resolvedDescription() || resolvedChildren();
|
|
40
|
+
});
|
|
41
|
+
return <div class={combineClass("tiny-alert", classes().root)} data-status={status()} data-variant={variant()} role="alert" style={styles().root}>
|
|
42
|
+
<Show when={showIcon()}>
|
|
43
|
+
<div class={combineClass("tiny-alert__icon", classes().icon)} style={styles().icon}>
|
|
44
|
+
{resolvedIcon() || <AlertIcon status={status()} />}
|
|
45
|
+
</div>
|
|
46
|
+
</Show>
|
|
47
|
+
|
|
48
|
+
<Show when={hasContent()}>
|
|
49
|
+
<div class={combineClass("tiny-alert__content", classes().content)} style={styles().content}>
|
|
50
|
+
<Show when={resolvedTitle()}>
|
|
51
|
+
<div class={combineClass("tiny-alert__title", classes().title)} style={styles().title}>
|
|
52
|
+
{resolvedTitle()}
|
|
53
|
+
</div>
|
|
54
|
+
</Show>
|
|
55
|
+
<Show when={resolvedDescription()}>
|
|
56
|
+
<div class={combineClass("tiny-alert__description", classes().description)} style={styles().description}>
|
|
57
|
+
{resolvedDescription()}
|
|
58
|
+
</div>
|
|
59
|
+
</Show>
|
|
60
|
+
<Show when={resolvedChildren()}>{resolvedChildren()}</Show>
|
|
61
|
+
</div>
|
|
62
|
+
</Show>
|
|
63
|
+
|
|
64
|
+
<Show when={props.showClose}>
|
|
65
|
+
<button aria-label="Close alert" class={combineClass("tiny-alert__close", classes().close)} onClick={props.onClose} style={styles().close} type="button">
|
|
66
|
+
<CloseLine size="16px" />
|
|
67
|
+
</button>
|
|
68
|
+
</Show>
|
|
69
|
+
</div>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
//#endregion
|
|
73
|
+
export { Alert };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Alert, AlertState, AlertStatus, AlertVariant } from "./alert.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Alert } from "./alert.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Alert } from "./alert.jsx";
|
|
@@ -2,8 +2,8 @@ import { ClassNames, Styles } from "../../../utils/types.js";
|
|
|
2
2
|
import { JSX } from "solid-js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/buttons/basic-button/basic-button.d.ts
|
|
5
|
-
type ButtonVariants = "solid" | "link" | "text" | "outline";
|
|
6
|
-
type ButtonColors = "primary" | "
|
|
5
|
+
type ButtonVariants = "solid" | "link" | "text" | "outline" | "subtle";
|
|
6
|
+
type ButtonColors = "primary" | "neutral" | "success" | "danger" | "warning" | "info";
|
|
7
7
|
interface ButtonState {
|
|
8
8
|
variant: ButtonVariants;
|
|
9
9
|
color: ButtonColors;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { extraAriasAndDatasets, makeClassNames, makeStyles } from "../../../utils/index.js";
|
|
1
2
|
import basic_button_default from "../../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/buttons/basic-button/basic-button.js";
|
|
2
|
-
import {
|
|
3
|
-
import { className, createComponent, effect, insert, mergeProps, spread, style, template } from "solid-js/web";
|
|
3
|
+
import { className, createComponent, effect, insert, memo, mergeProps, spread, style, template } from "solid-js/web";
|
|
4
4
|
import { Show, children, createMemo, mergeProps as mergeProps$1 } from "solid-js";
|
|
5
|
-
import { dataIf, mountStyle } from "solid-tiny-utils";
|
|
5
|
+
import { combineClass, dataIf, mountStyle } from "solid-tiny-utils";
|
|
6
6
|
|
|
7
7
|
//#region src/components/buttons/basic-button/basic-button.tsx
|
|
8
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div>`), _tmpl$2 = /* @__PURE__ */ template(`<button
|
|
8
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div>`), _tmpl$2 = /* @__PURE__ */ template(`<button>`);
|
|
9
9
|
const Button = (props) => {
|
|
10
10
|
mountStyle(basic_button_default, "tiny-btn");
|
|
11
11
|
const real = mergeProps$1({
|
|
12
12
|
variant: "solid",
|
|
13
|
-
color: "
|
|
13
|
+
color: "neutral",
|
|
14
14
|
size: "medium",
|
|
15
15
|
iconPlacement: "start",
|
|
16
16
|
type: "button"
|
|
@@ -37,13 +37,13 @@ const Button = (props) => {
|
|
|
37
37
|
const resolvedIcon = children(() => real.icon);
|
|
38
38
|
const iconOnly = createMemo(() => !resolvedChild());
|
|
39
39
|
return (() => {
|
|
40
|
-
var _el$ = _tmpl$2()
|
|
40
|
+
var _el$ = _tmpl$2();
|
|
41
41
|
spread(_el$, mergeProps(() => extraAriasAndDatasets(real), {
|
|
42
42
|
get ["class"]() {
|
|
43
|
-
return
|
|
43
|
+
return combineClass("tiny-btn", classNames().root);
|
|
44
44
|
},
|
|
45
45
|
get ["data-color"]() {
|
|
46
|
-
return real.color;
|
|
46
|
+
return memo(() => !!real.disabled)() ? void 0 : real.color;
|
|
47
47
|
},
|
|
48
48
|
get ["data-disabled"]() {
|
|
49
49
|
return dataIf(real.disabled ?? false);
|
|
@@ -81,18 +81,18 @@ const Button = (props) => {
|
|
|
81
81
|
return resolvedIcon();
|
|
82
82
|
},
|
|
83
83
|
get children() {
|
|
84
|
-
var _el$
|
|
85
|
-
insert(_el$
|
|
84
|
+
var _el$2 = _tmpl$();
|
|
85
|
+
insert(_el$2, resolvedIcon);
|
|
86
86
|
effect((_p$) => {
|
|
87
|
-
var _v$ =
|
|
88
|
-
_v$ !== _p$.e && className(_el$
|
|
89
|
-
_p$.t = style(_el$
|
|
87
|
+
var _v$ = combineClass("tiny-btn__icon", classNames().icon), _v$2 = styles().icon;
|
|
88
|
+
_v$ !== _p$.e && className(_el$2, _p$.e = _v$);
|
|
89
|
+
_p$.t = style(_el$2, _v$2, _p$.t);
|
|
90
90
|
return _p$;
|
|
91
91
|
}, {
|
|
92
92
|
e: void 0,
|
|
93
93
|
t: void 0
|
|
94
94
|
});
|
|
95
|
-
return _el$
|
|
95
|
+
return _el$2;
|
|
96
96
|
}
|
|
97
97
|
}), null);
|
|
98
98
|
insert(_el$, createComponent(Show, {
|
|
@@ -100,30 +100,21 @@ const Button = (props) => {
|
|
|
100
100
|
return resolvedChild();
|
|
101
101
|
},
|
|
102
102
|
get children() {
|
|
103
|
-
var _el$
|
|
104
|
-
insert(_el$
|
|
103
|
+
var _el$3 = _tmpl$();
|
|
104
|
+
insert(_el$3, resolvedChild);
|
|
105
105
|
effect((_p$) => {
|
|
106
|
-
var _v$3 =
|
|
107
|
-
_v$3 !== _p$.e && className(_el$
|
|
108
|
-
_p$.t = style(_el$
|
|
106
|
+
var _v$3 = combineClass("tiny-btn__content", classNames().content), _v$4 = styles().content;
|
|
107
|
+
_v$3 !== _p$.e && className(_el$3, _p$.e = _v$3);
|
|
108
|
+
_p$.t = style(_el$3, _v$4, _p$.t);
|
|
109
109
|
return _p$;
|
|
110
110
|
}, {
|
|
111
111
|
e: void 0,
|
|
112
112
|
t: void 0
|
|
113
113
|
});
|
|
114
|
-
return _el$
|
|
114
|
+
return _el$3;
|
|
115
115
|
}
|
|
116
116
|
}), null);
|
|
117
117
|
insert(_el$, () => real.slot?.root, null);
|
|
118
|
-
effect((_p$) => {
|
|
119
|
-
var _v$5 = mergeClassNames(["tiny-btn__bg", classNames().bg]), _v$6 = styles().bg;
|
|
120
|
-
_v$5 !== _p$.e && className(_el$2, _p$.e = _v$5);
|
|
121
|
-
_p$.t = style(_el$2, _v$6, _p$.t);
|
|
122
|
-
return _p$;
|
|
123
|
-
}, {
|
|
124
|
-
e: void 0,
|
|
125
|
-
t: void 0
|
|
126
|
-
});
|
|
127
118
|
return _el$;
|
|
128
119
|
})();
|
|
129
120
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { extraAriasAndDatasets, makeClassNames, makeStyles } from "../../../utils/index.jsx";
|
|
1
2
|
import basic_button_default from "../../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/buttons/basic-button/basic-button.jsx";
|
|
2
|
-
import { extraAriasAndDatasets, makeClassNames, makeStyles, mergeClassNames } from "../../../utils/index.jsx";
|
|
3
3
|
import { Show, children, createMemo, mergeProps } from "solid-js";
|
|
4
|
-
import { dataIf, mountStyle } from "solid-tiny-utils";
|
|
4
|
+
import { combineClass, dataIf, mountStyle } from "solid-tiny-utils";
|
|
5
5
|
|
|
6
6
|
//#region src/components/buttons/basic-button/basic-button.tsx
|
|
7
7
|
const Button = (props) => {
|
|
8
8
|
mountStyle(basic_button_default, "tiny-btn");
|
|
9
9
|
const real = mergeProps({
|
|
10
10
|
variant: "solid",
|
|
11
|
-
color: "
|
|
11
|
+
color: "neutral",
|
|
12
12
|
size: "medium",
|
|
13
13
|
iconPlacement: "start",
|
|
14
14
|
type: "button"
|
|
@@ -34,15 +34,14 @@ const Button = (props) => {
|
|
|
34
34
|
const resolvedChild = children(() => real.children);
|
|
35
35
|
const resolvedIcon = children(() => real.icon);
|
|
36
36
|
const iconOnly = createMemo(() => !resolvedChild());
|
|
37
|
-
return <button {...extraAriasAndDatasets(real)} class={
|
|
38
|
-
<div class={mergeClassNames(["tiny-btn__bg", classNames().bg])} style={styles().bg} />
|
|
37
|
+
return <button {...extraAriasAndDatasets(real)} class={combineClass("tiny-btn", classNames().root)} data-color={real.disabled ? void 0 : real.color} data-disabled={dataIf(real.disabled ?? false)} data-icon-only={dataIf(iconOnly())} data-icon-placement={real.iconPlacement} data-rounded={dataIf(real.rounded ?? false)} data-size={real.size} data-variant={real.variant} disabled={real.disabled} onClick={real.onClick} style={styles().root} type={real.type}>
|
|
39
38
|
<Show when={resolvedIcon()}>
|
|
40
|
-
<div class={
|
|
39
|
+
<div class={combineClass("tiny-btn__icon", classNames().icon)} style={styles().icon}>
|
|
41
40
|
{resolvedIcon()}
|
|
42
41
|
</div>
|
|
43
42
|
</Show>
|
|
44
43
|
<Show when={resolvedChild()}>
|
|
45
|
-
<div class={
|
|
44
|
+
<div class={combineClass("tiny-btn__content", classNames().content)} style={styles().content}>
|
|
46
45
|
{resolvedChild()}
|
|
47
46
|
</div>
|
|
48
47
|
</Show>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from "../basic-button/basic-button.js";
|
|
2
2
|
import "../basic-button/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as solid_js49 from "solid-js";
|
|
4
4
|
import { MaybePromise } from "solid-tiny-utils";
|
|
5
5
|
|
|
6
6
|
//#region src/components/buttons/state-button/state-button.d.ts
|
|
@@ -9,6 +9,6 @@ type StateButtonProps = {
|
|
|
9
9
|
disabled?: boolean | string;
|
|
10
10
|
onClick?: (e: MouseEvent) => MaybePromise<void>;
|
|
11
11
|
} & Omit<ButtonProps, "disabled" | "onClick" | "slot">;
|
|
12
|
-
declare function StateButton(props: StateButtonProps):
|
|
12
|
+
declare function StateButton(props: StateButtonProps): solid_js49.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { StateButton, StateButtonProps };
|
|
@@ -7,7 +7,7 @@ import { Tooltip } from "../../tooltip/tooltip.js";
|
|
|
7
7
|
import "../../tooltip/index.js";
|
|
8
8
|
import { createComponent, effect, insert, memo, mergeProps, setAttribute, template } from "solid-js/web";
|
|
9
9
|
import { createMemo, createSignal, splitProps } from "solid-js";
|
|
10
|
-
import { dataIf, mountStyle } from "solid-tiny-utils";
|
|
10
|
+
import { dataIf, isString, mountStyle } from "solid-tiny-utils";
|
|
11
11
|
|
|
12
12
|
//#region src/components/buttons/state-button/state-button.tsx
|
|
13
13
|
var _tmpl$ = /* @__PURE__ */ template(`<div class=tiny-state-btn>`), _tmpl$2 = /* @__PURE__ */ template(`<div class=tiny-state-btn__loader>`);
|
|
@@ -40,7 +40,7 @@ function StateButton(props) {
|
|
|
40
40
|
return memo(() => typeof local.disabled === "string")() ? local.disabled : "";
|
|
41
41
|
},
|
|
42
42
|
get disabled() {
|
|
43
|
-
return !local.disabled
|
|
43
|
+
return !(local.disabled && isString(local.disabled));
|
|
44
44
|
},
|
|
45
45
|
get children() {
|
|
46
46
|
var _el$ = _tmpl$();
|
|
@@ -6,7 +6,7 @@ import "../../spin/index.jsx";
|
|
|
6
6
|
import { Tooltip } from "../../tooltip/tooltip.jsx";
|
|
7
7
|
import "../../tooltip/index.jsx";
|
|
8
8
|
import { createMemo, createSignal, splitProps } from "solid-js";
|
|
9
|
-
import { dataIf, mountStyle } from "solid-tiny-utils";
|
|
9
|
+
import { dataIf, isString, mountStyle } from "solid-tiny-utils";
|
|
10
10
|
|
|
11
11
|
//#region src/components/buttons/state-button/state-button.tsx
|
|
12
12
|
function StateButton(props) {
|
|
@@ -33,7 +33,7 @@ function StateButton(props) {
|
|
|
33
33
|
const loading = createMemo(() => {
|
|
34
34
|
return local.loading || isHandling();
|
|
35
35
|
});
|
|
36
|
-
return <Tooltip content={typeof local.disabled === "string" ? local.disabled : ""} disabled={!local.disabled
|
|
36
|
+
return <Tooltip content={typeof local.disabled === "string" ? local.disabled : ""} disabled={!(local.disabled && isString(local.disabled))}>
|
|
37
37
|
<div class="tiny-state-btn" data-loading={dataIf(loading())}>
|
|
38
38
|
<Button {...others} disabled={!!local.disabled} onClick={handleClick} slot={{ root: <div class="tiny-state-btn__loader">
|
|
39
39
|
<SpinRing color="currentColor" size={18} />
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Flex } from "../../layout/flex/index.js";
|
|
2
|
+
import "../../layout/index.js";
|
|
3
|
+
import { JSX } from "solid-js/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/drawer/helpers.d.ts
|
|
6
|
+
declare function Root(props: Parameters<typeof Flex>[0]): JSX.Element;
|
|
7
|
+
declare function Header(props: {
|
|
8
|
+
title: string;
|
|
9
|
+
closable?: boolean;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
declare function Body(props: {
|
|
12
|
+
children: JSX.Element;
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
declare function Footer(props: Parameters<typeof Flex>[0]): JSX.Element;
|
|
15
|
+
declare function Close(props: {
|
|
16
|
+
children: JSX.Element;
|
|
17
|
+
}): JSX.Element;
|
|
18
|
+
declare const DrawerHelper: typeof Root & {
|
|
19
|
+
Header: typeof Header;
|
|
20
|
+
Body: typeof Body;
|
|
21
|
+
Footer: typeof Footer;
|
|
22
|
+
Close: typeof Close;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { DrawerHelper };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { CloseLine } from "../../icons/close-line.js";
|
|
2
|
+
import { ModalCore } from "../../primitives/modal/index.js";
|
|
3
|
+
import drawer_helper_default from "../../_virtual/__viteSafe__/home/runner/work/solid-tiny-ui/solid-tiny-ui/packages/core/src/components/drawer/drawer-helper.js";
|
|
4
|
+
import { Flex } from "../../layout/flex/index.js";
|
|
5
|
+
import "../../layout/index.js";
|
|
6
|
+
import "../../primitives/index.js";
|
|
7
|
+
import { createComponent, insert, memo, mergeProps, template } from "solid-js/web";
|
|
8
|
+
import { Show, onMount, splitProps } from "solid-js";
|
|
9
|
+
import { combineClass, combineStyle, makeEventListener, mountStyle } from "solid-tiny-utils";
|
|
10
|
+
import { Ref } from "@solid-primitives/refs";
|
|
11
|
+
|
|
12
|
+
//#region src/components/drawer/helpers.tsx
|
|
13
|
+
var _tmpl$ = /* @__PURE__ */ template(`<button class=tiny-drawer__header-close type=button>`), _tmpl$2 = /* @__PURE__ */ template(`<div class=tiny-drawer__header>`), _tmpl$3 = /* @__PURE__ */ template(`<div class=tiny-drawer__body>`);
|
|
14
|
+
function Root(props) {
|
|
15
|
+
mountStyle(drawer_helper_default, "tiny-drawer-helper");
|
|
16
|
+
const [local, others] = splitProps(props, ["class", "style"]);
|
|
17
|
+
return createComponent(Flex, mergeProps({ vertical: true }, others, {
|
|
18
|
+
get ["class"]() {
|
|
19
|
+
return combineClass("tiny-drawer-helper", local.class);
|
|
20
|
+
},
|
|
21
|
+
get style() {
|
|
22
|
+
return combineStyle({ height: "100%" }, local.style);
|
|
23
|
+
}
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
function Header(props) {
|
|
27
|
+
return (() => {
|
|
28
|
+
var _el$ = _tmpl$2();
|
|
29
|
+
insert(_el$, () => props.title, null);
|
|
30
|
+
insert(_el$, createComponent(Show, {
|
|
31
|
+
get when() {
|
|
32
|
+
return props.closable;
|
|
33
|
+
},
|
|
34
|
+
get children() {
|
|
35
|
+
return createComponent(Close, { get children() {
|
|
36
|
+
var _el$2 = _tmpl$();
|
|
37
|
+
insert(_el$2, createComponent(CloseLine, {}));
|
|
38
|
+
return _el$2;
|
|
39
|
+
} });
|
|
40
|
+
}
|
|
41
|
+
}), null);
|
|
42
|
+
return _el$;
|
|
43
|
+
})();
|
|
44
|
+
}
|
|
45
|
+
function Body(props) {
|
|
46
|
+
return (() => {
|
|
47
|
+
var _el$3 = _tmpl$3();
|
|
48
|
+
insert(_el$3, () => props.children);
|
|
49
|
+
return _el$3;
|
|
50
|
+
})();
|
|
51
|
+
}
|
|
52
|
+
function Footer(props) {
|
|
53
|
+
const [local, others] = splitProps(props, [
|
|
54
|
+
"gap",
|
|
55
|
+
"justify",
|
|
56
|
+
"align",
|
|
57
|
+
"class",
|
|
58
|
+
"style"
|
|
59
|
+
]);
|
|
60
|
+
return createComponent(Flex, mergeProps(others, {
|
|
61
|
+
get align() {
|
|
62
|
+
return local.align ?? "center";
|
|
63
|
+
},
|
|
64
|
+
get ["class"]() {
|
|
65
|
+
return combineClass("tiny-drawer__footer", local.class);
|
|
66
|
+
},
|
|
67
|
+
get gap() {
|
|
68
|
+
return local.gap ?? "sm";
|
|
69
|
+
},
|
|
70
|
+
get justify() {
|
|
71
|
+
return local.justify ?? "flex-end";
|
|
72
|
+
},
|
|
73
|
+
get style() {
|
|
74
|
+
return combineStyle({}, local.style);
|
|
75
|
+
}
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
function Close(props) {
|
|
79
|
+
const [, actions] = ModalCore.useContext();
|
|
80
|
+
let ref;
|
|
81
|
+
onMount(() => {
|
|
82
|
+
makeEventListener(ref, "click", () => {
|
|
83
|
+
actions.setState("open", false);
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
return createComponent(Ref, {
|
|
87
|
+
ref(r$) {
|
|
88
|
+
var _ref$ = ref;
|
|
89
|
+
typeof _ref$ === "function" ? _ref$(r$) : ref = r$;
|
|
90
|
+
},
|
|
91
|
+
get children() {
|
|
92
|
+
return props.children;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
const DrawerHelper = Object.assign(Root, {
|
|
97
|
+
Header,
|
|
98
|
+
Body,
|
|
99
|
+
Footer,
|
|
100
|
+
Close
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
104
|
+
export { DrawerHelper };
|