@blockle/blocks 0.20.0-alpha1.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.cjs +21 -71
- package/dist/index.d.ts +3 -36
- package/dist/index.js +3 -73
- package/dist/reset.cjs +1 -2
- package/dist/reset.d.ts +0 -0
- package/dist/reset.js +1 -2
- package/package.json +22 -78
- package/LICENSE +0 -21
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.cjs +0 -20
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.d.ts +0 -5
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.js +0 -20
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.spec.d.ts +0 -1
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -6
- package/dist/components/accessibility/VisuallyHidden/index.d.ts +0 -1
- package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.cjs +0 -16
- package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.d.ts +0 -1
- package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.js +0 -16
- package/dist/components/display/Divider/Divider.cjs +0 -26
- package/dist/components/display/Divider/Divider.d.ts +0 -7
- package/dist/components/display/Divider/Divider.js +0 -26
- package/dist/components/display/Divider/Divider.spec.d.ts +0 -1
- package/dist/components/display/Divider/Divider.stories.d.ts +0 -6
- package/dist/components/display/Divider/divider.css.cjs +0 -16
- package/dist/components/display/Divider/divider.css.d.ts +0 -1
- package/dist/components/display/Divider/divider.css.js +0 -16
- package/dist/components/display/Divider/index.d.ts +0 -1
- package/dist/components/feedback/Progress/Progress.cjs +0 -54
- package/dist/components/feedback/Progress/Progress.d.ts +0 -16
- package/dist/components/feedback/Progress/Progress.js +0 -54
- package/dist/components/feedback/Progress/Progress.stories.d.ts +0 -5
- package/dist/components/feedback/Progress/index.d.ts +0 -1
- package/dist/components/feedback/Spinner/Spinner.cjs +0 -26
- package/dist/components/feedback/Spinner/Spinner.d.ts +0 -9
- package/dist/components/feedback/Spinner/Spinner.js +0 -26
- package/dist/components/feedback/Spinner/Spinner.stories.d.ts +0 -5
- package/dist/components/feedback/Spinner/index.d.ts +0 -1
- package/dist/components/form/Button/Button.cjs +0 -59
- package/dist/components/form/Button/Button.css.cjs +0 -16
- package/dist/components/form/Button/Button.css.d.ts +0 -1
- package/dist/components/form/Button/Button.css.js +0 -16
- package/dist/components/form/Button/Button.d.ts +0 -21
- package/dist/components/form/Button/Button.js +0 -59
- package/dist/components/form/Button/Button.spec.d.ts +0 -1
- package/dist/components/form/Button/Button.stories.d.ts +0 -7
- package/dist/components/form/Button/index.d.ts +0 -1
- package/dist/components/form/Checkbox/Checkbox.cjs +0 -79
- package/dist/components/form/Checkbox/Checkbox.d.ts +0 -9
- package/dist/components/form/Checkbox/Checkbox.js +0 -79
- package/dist/components/form/Checkbox/Checkbox.spec.d.ts +0 -1
- package/dist/components/form/Checkbox/Checkbox.stories.d.ts +0 -5
- package/dist/components/form/Checkbox/checkbox.css.cjs +0 -32
- package/dist/components/form/Checkbox/checkbox.css.d.ts +0 -3
- package/dist/components/form/Checkbox/checkbox.css.js +0 -32
- package/dist/components/form/Checkbox/index.d.ts +0 -1
- package/dist/components/form/Input/Input.cjs +0 -51
- package/dist/components/form/Input/Input.d.ts +0 -11
- package/dist/components/form/Input/Input.js +0 -51
- package/dist/components/form/Input/Input.spec.d.ts +0 -1
- package/dist/components/form/Input/Input.stories.d.ts +0 -5
- package/dist/components/form/Input/index.d.ts +0 -1
- package/dist/components/form/Input/input.css.cjs +0 -21
- package/dist/components/form/Input/input.css.d.ts +0 -1
- package/dist/components/form/Input/input.css.js +0 -21
- package/dist/components/form/Label/Label.cjs +0 -30
- package/dist/components/form/Label/Label.d.ts +0 -18
- package/dist/components/form/Label/Label.js +0 -30
- package/dist/components/form/Label/Label.spec.d.ts +0 -1
- package/dist/components/form/Label/Label.stories.d.ts +0 -6
- package/dist/components/form/Label/index.d.ts +0 -1
- package/dist/components/form/Radio/Radio.cjs +0 -48
- package/dist/components/form/Radio/Radio.d.ts +0 -8
- package/dist/components/form/Radio/Radio.js +0 -48
- package/dist/components/form/Radio/Radio.spec.d.ts +0 -1
- package/dist/components/form/Radio/Radio.stories.d.ts +0 -6
- package/dist/components/form/Radio/RadioGroup.d.ts +0 -8
- package/dist/components/form/Radio/index.d.ts +0 -2
- package/dist/components/form/Radio/radio.css.cjs +0 -32
- package/dist/components/form/Radio/radio.css.d.ts +0 -3
- package/dist/components/form/Radio/radio.css.js +0 -32
- package/dist/components/form/Select/Select.cjs +0 -65
- package/dist/components/form/Select/Select.d.ts +0 -10
- package/dist/components/form/Select/Select.js +0 -65
- package/dist/components/form/Select/Select.stories.d.ts +0 -5
- package/dist/components/form/Select/index.d.ts +0 -1
- package/dist/components/form/Select/select.css.cjs +0 -38
- package/dist/components/form/Select/select.css.d.ts +0 -3
- package/dist/components/form/Select/select.css.js +0 -38
- package/dist/components/form/Slider/Slider.cjs +0 -141
- package/dist/components/form/Slider/Slider.d.ts +0 -20
- package/dist/components/form/Slider/Slider.js +0 -141
- package/dist/components/form/Slider/Slider.spec.d.ts +0 -1
- package/dist/components/form/Slider/Slider.stories.d.ts +0 -6
- package/dist/components/form/Slider/index.d.ts +0 -1
- package/dist/components/form/Slider/slider.css.cjs +0 -75
- package/dist/components/form/Slider/slider.css.d.ts +0 -5
- package/dist/components/form/Slider/slider.css.js +0 -75
- package/dist/components/form/Slider/usePointerProgress.cjs +0 -47
- package/dist/components/form/Slider/usePointerProgress.d.ts +0 -11
- package/dist/components/form/Slider/usePointerProgress.js +0 -47
- package/dist/components/form/Switch/Switch.cjs +0 -73
- package/dist/components/form/Switch/Switch.d.ts +0 -6
- package/dist/components/form/Switch/Switch.js +0 -73
- package/dist/components/form/Switch/Switch.stories.d.ts +0 -5
- package/dist/components/form/Switch/index.d.ts +0 -1
- package/dist/components/form/Switch/switch.css.cjs +0 -27
- package/dist/components/form/Switch/switch.css.d.ts +0 -2
- package/dist/components/form/Switch/switch.css.js +0 -27
- package/dist/components/layout/Box/Box.cjs +0 -28
- package/dist/components/layout/Box/Box.d.ts +0 -11
- package/dist/components/layout/Box/Box.js +0 -28
- package/dist/components/layout/Box/Box.spec.d.ts +0 -1
- package/dist/components/layout/Box/Box.stories.d.ts +0 -6
- package/dist/components/layout/Box/index.d.ts +0 -1
- package/dist/components/layout/Inline/Inline.cjs +0 -30
- package/dist/components/layout/Inline/Inline.d.ts +0 -13
- package/dist/components/layout/Inline/Inline.js +0 -30
- package/dist/components/layout/Inline/Inline.stories.d.ts +0 -6
- package/dist/components/layout/Inline/index.d.ts +0 -1
- package/dist/components/layout/Stack/Stack.cjs +0 -30
- package/dist/components/layout/Stack/Stack.d.ts +0 -17
- package/dist/components/layout/Stack/Stack.js +0 -30
- package/dist/components/layout/Stack/Stack.stories.d.ts +0 -6
- package/dist/components/layout/Stack/index.d.ts +0 -1
- package/dist/components/navigation/Link/Link.cjs +0 -32
- package/dist/components/navigation/Link/Link.d.ts +0 -11
- package/dist/components/navigation/Link/Link.js +0 -32
- package/dist/components/navigation/Link/Link.stories.d.ts +0 -6
- package/dist/components/navigation/Link/index.d.ts +0 -1
- package/dist/components/other/BlocksProvider/BlocksProvider.cjs +0 -38
- package/dist/components/other/BlocksProvider/BlocksProvider.d.ts +0 -8
- package/dist/components/other/BlocksProvider/BlocksProvider.js +0 -38
- package/dist/components/other/BlocksProvider/context.cjs +0 -6
- package/dist/components/other/BlocksProvider/context.d.ts +0 -4
- package/dist/components/other/BlocksProvider/context.js +0 -6
- package/dist/components/other/BlocksProvider/index.d.ts +0 -2
- package/dist/components/other/Portal/Portal.cjs +0 -8
- package/dist/components/other/Portal/Portal.d.ts +0 -5
- package/dist/components/other/Portal/Portal.js +0 -8
- package/dist/components/other/Portal/index.d.ts +0 -1
- package/dist/components/overlay/Dialog/Dialog.cjs +0 -79
- package/dist/components/overlay/Dialog/Dialog.d.ts +0 -10
- package/dist/components/overlay/Dialog/Dialog.js +0 -79
- package/dist/components/overlay/Dialog/Dialog.stories.d.ts +0 -7
- package/dist/components/overlay/Dialog/dialog.css.cjs +0 -22
- package/dist/components/overlay/Dialog/dialog.css.d.ts +0 -1
- package/dist/components/overlay/Dialog/dialog.css.js +0 -22
- package/dist/components/overlay/Dialog/dialogHelper.cjs +0 -22
- package/dist/components/overlay/Dialog/dialogHelper.d.ts +0 -6
- package/dist/components/overlay/Dialog/dialogHelper.js +0 -22
- package/dist/components/overlay/Dialog/index.d.ts +0 -1
- package/dist/components/overlay/Popover/Popover.cjs +0 -113
- package/dist/components/overlay/Popover/Popover.d.ts +0 -12
- package/dist/components/overlay/Popover/Popover.js +0 -113
- package/dist/components/overlay/Popover/Popover.stories.d.ts +0 -5
- package/dist/components/overlay/Popover/popover-utils.cjs +0 -62
- package/dist/components/overlay/Popover/popover-utils.d.ts +0 -2
- package/dist/components/overlay/Popover/popover-utils.js +0 -62
- package/dist/components/overlay/Tooltip/Tooltip.cjs +0 -73
- package/dist/components/overlay/Tooltip/Tooltip.d.ts +0 -11
- package/dist/components/overlay/Tooltip/Tooltip.js +0 -73
- package/dist/components/overlay/Tooltip/Tooltip.stories.d.ts +0 -5
- package/dist/components/overlay/Tooltip/index.d.ts +0 -1
- package/dist/components/typography/Heading/Heading.cjs +0 -24
- package/dist/components/typography/Heading/Heading.d.ts +0 -8
- package/dist/components/typography/Heading/Heading.js +0 -24
- package/dist/components/typography/Heading/heading.css.cjs +0 -16
- package/dist/components/typography/Heading/heading.css.d.ts +0 -1
- package/dist/components/typography/Heading/heading.css.js +0 -16
- package/dist/components/typography/Heading/heading.stories.d.ts +0 -12
- package/dist/components/typography/Heading/index.d.ts +0 -1
- package/dist/components/typography/Text/Text.cjs +0 -21
- package/dist/components/typography/Text/Text.d.ts +0 -12
- package/dist/components/typography/Text/Text.js +0 -21
- package/dist/components/typography/Text/Text.stories.d.ts +0 -5
- package/dist/components/typography/Text/index.d.ts +0 -1
- package/dist/components/typography/Text/text.css.cjs +0 -16
- package/dist/components/typography/Text/text.css.d.ts +0 -1
- package/dist/components/typography/Text/text.css.js +0 -16
- package/dist/entries/themes/momotaro.d.ts +0 -1
- package/dist/hooks/useClickOutside/useClickOutside.cjs +0 -24
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +0 -6
- package/dist/hooks/useClickOutside/useClickOutside.js +0 -24
- package/dist/hooks/useControlledValue/useControlledValue.cjs +0 -33
- package/dist/hooks/useControlledValue/useControlledValue.d.ts +0 -8
- package/dist/hooks/useControlledValue/useControlledValue.js +0 -33
- package/dist/hooks/useFocusLock/index.d.ts +0 -1
- package/dist/hooks/useFocusLock/useFocusLock.d.ts +0 -6
- package/dist/hooks/useIsomorphicLayoutEffect/index.d.ts +0 -1
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.cjs +0 -6
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +0 -5
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +0 -6
- package/dist/hooks/useKeyboard/index.d.ts +0 -1
- package/dist/hooks/useKeyboard/useKeyboard.cjs +0 -21
- package/dist/hooks/useKeyboard/useKeyboard.d.ts +0 -6
- package/dist/hooks/useKeyboard/useKeyboard.js +0 -21
- package/dist/hooks/useLayer/index.d.ts +0 -1
- package/dist/hooks/useLayer/useLayer.cjs +0 -27
- package/dist/hooks/useLayer/useLayer.d.ts +0 -1
- package/dist/hooks/useLayer/useLayer.js +0 -27
- package/dist/hooks/usePreventBodyScroll/index.d.ts +0 -1
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.cjs +0 -30
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.d.ts +0 -1
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.js +0 -30
- package/dist/hooks/useRestoreFocus/index.d.ts +0 -1
- package/dist/hooks/useRestoreFocus/useRestoreFocus.cjs +0 -19
- package/dist/hooks/useRestoreFocus/useRestoreFocus.d.ts +0 -4
- package/dist/hooks/useRestoreFocus/useRestoreFocus.js +0 -19
- package/dist/hooks/useRootAriaHidden/index.d.ts +0 -1
- package/dist/hooks/useRootAriaHidden/useRootAriaHidden.cjs +0 -12
- package/dist/hooks/useRootAriaHidden/useRootAriaHidden.d.ts +0 -7
- package/dist/hooks/useRootAriaHidden/useRootAriaHidden.js +0 -12
- package/dist/hooks/useVisibilityState/index.d.ts +0 -1
- package/dist/hooks/useVisibilityState/useVisibilityState.cjs +0 -17
- package/dist/hooks/useVisibilityState/useVisibilityState.d.ts +0 -3
- package/dist/hooks/useVisibilityState/useVisibilityState.js +0 -17
- package/dist/lib/asChildRenderer/createAsChildTemplate.cjs +0 -73
- package/dist/lib/asChildRenderer/createAsChildTemplate.d.ts +0 -34
- package/dist/lib/asChildRenderer/createAsChildTemplate.js +0 -73
- package/dist/lib/asChildRenderer/createAsChildTemplate.spec.d.ts +0 -1
- package/dist/lib/css/atoms/atomTypes.d.ts +0 -37
- package/dist/lib/css/atoms/atomicProperties.cjs +0 -90
- package/dist/lib/css/atoms/atomicProperties.d.ts +0 -286
- package/dist/lib/css/atoms/atomicProperties.js +0 -90
- package/dist/lib/css/atoms/atoms.d.ts +0 -1
- package/dist/lib/css/atoms/breakpoints.cjs +0 -15
- package/dist/lib/css/atoms/breakpoints.d.ts +0 -9
- package/dist/lib/css/atoms/breakpoints.js +0 -15
- package/dist/lib/css/atoms/index.d.ts +0 -2
- package/dist/lib/css/atoms/sprinkles.css.cjs +0 -52
- package/dist/lib/css/atoms/sprinkles.css.d.ts +0 -233
- package/dist/lib/css/atoms/sprinkles.css.js +0 -52
- package/dist/lib/css/flexbox/flexbox.cjs +0 -17
- package/dist/lib/css/flexbox/flexbox.d.ts +0 -15
- package/dist/lib/css/flexbox/flexbox.js +0 -17
- package/dist/lib/css/layers/layers.css.cjs +0 -8
- package/dist/lib/css/layers/layers.css.d.ts +0 -1
- package/dist/lib/css/layers/layers.css.js +0 -8
- package/dist/lib/css/reset/reset.css.cjs +0 -38
- package/dist/lib/css/reset/reset.css.d.ts +0 -1
- package/dist/lib/css/reset/reset.css.js +0 -37
- package/dist/lib/css/style/style.cjs +0 -29
- package/dist/lib/css/style/style.d.ts +0 -12
- package/dist/lib/css/style/style.js +0 -29
- package/dist/lib/css/utils/cssUtils.cjs +0 -6
- package/dist/lib/css/utils/cssUtils.d.ts +0 -1
- package/dist/lib/css/utils/cssUtils.js +0 -6
- package/dist/lib/react/mergeProps.cjs +0 -43
- package/dist/lib/react/mergeProps.d.ts +0 -4
- package/dist/lib/react/mergeProps.js +0 -43
- package/dist/lib/react/refs.cjs +0 -17
- package/dist/lib/react/refs.d.ts +0 -3
- package/dist/lib/react/refs.js +0 -17
- package/dist/lib/theme/componentThemes.d.ts +0 -134
- package/dist/lib/theme/makeComponentTheme.cjs +0 -6
- package/dist/lib/theme/makeComponentTheme.d.ts +0 -49
- package/dist/lib/theme/makeComponentTheme.js +0 -6
- package/dist/lib/theme/makeTheme.cjs +0 -13
- package/dist/lib/theme/makeTheme.d.ts +0 -14
- package/dist/lib/theme/makeTheme.js +0 -13
- package/dist/lib/theme/makeVanillaTheme.cjs +0 -20
- package/dist/lib/theme/makeVanillaTheme.d.ts +0 -16
- package/dist/lib/theme/makeVanillaTheme.js +0 -20
- package/dist/lib/theme/store/theme.cjs +0 -93
- package/dist/lib/theme/store/theme.d.ts +0 -13
- package/dist/lib/theme/store/theme.js +0 -93
- package/dist/lib/theme/tokens.cjs +0 -82
- package/dist/lib/theme/tokens.d.ts +0 -2
- package/dist/lib/theme/tokens.js +0 -82
- package/dist/lib/theme/tokensType.d.ts +0 -33
- package/dist/lib/theme/vars.css.cjs +0 -10
- package/dist/lib/theme/vars.css.d.ts +0 -75
- package/dist/lib/theme/vars.css.js +0 -10
- package/dist/lib/utils/atom-props.cjs +0 -16
- package/dist/lib/utils/atom-props.d.ts +0 -4
- package/dist/lib/utils/atom-props.js +0 -16
- package/dist/lib/utils/classnames.cjs +0 -7
- package/dist/lib/utils/classnames.d.ts +0 -3
- package/dist/lib/utils/classnames.js +0 -7
- package/dist/lib/utils/dom-focus.d.ts +0 -2
- package/dist/lib/utils/dom.cjs +0 -13
- package/dist/lib/utils/dom.d.ts +0 -4
- package/dist/lib/utils/dom.js +0 -13
- package/dist/lib/utils/helpers.d.ts +0 -9
- package/dist/lib/utils/math.cjs +0 -13
- package/dist/lib/utils/math.d.ts +0 -2
- package/dist/lib/utils/math.js +0 -13
- package/dist/lib/utils/utils.d.ts +0 -3
- package/dist/themes/momotaro/components/button.css.cjs +0 -110
- package/dist/themes/momotaro/components/button.css.d.ts +0 -1
- package/dist/themes/momotaro/components/button.css.js +0 -110
- package/dist/themes/momotaro/components/checkbox.css.cjs +0 -64
- package/dist/themes/momotaro/components/checkbox.css.d.ts +0 -1
- package/dist/themes/momotaro/components/checkbox.css.js +0 -64
- package/dist/themes/momotaro/components/dialog.css.cjs +0 -82
- package/dist/themes/momotaro/components/dialog.css.d.ts +0 -1
- package/dist/themes/momotaro/components/dialog.css.js +0 -82
- package/dist/themes/momotaro/components/divider.css.cjs +0 -16
- package/dist/themes/momotaro/components/divider.css.d.ts +0 -1
- package/dist/themes/momotaro/components/divider.css.js +0 -16
- package/dist/themes/momotaro/components/helpers.css.cjs +0 -47
- package/dist/themes/momotaro/components/helpers.css.d.ts +0 -8
- package/dist/themes/momotaro/components/helpers.css.js +0 -47
- package/dist/themes/momotaro/components/index.cjs +0 -35
- package/dist/themes/momotaro/components/index.d.ts +0 -2
- package/dist/themes/momotaro/components/index.js +0 -35
- package/dist/themes/momotaro/components/input.css.cjs +0 -48
- package/dist/themes/momotaro/components/input.css.d.ts +0 -1
- package/dist/themes/momotaro/components/input.css.js +0 -48
- package/dist/themes/momotaro/components/label.css.cjs +0 -34
- package/dist/themes/momotaro/components/label.css.d.ts +0 -1
- package/dist/themes/momotaro/components/label.css.js +0 -34
- package/dist/themes/momotaro/components/link.css.cjs +0 -57
- package/dist/themes/momotaro/components/link.css.d.ts +0 -1
- package/dist/themes/momotaro/components/link.css.js +0 -57
- package/dist/themes/momotaro/components/popover.css.cjs +0 -33
- package/dist/themes/momotaro/components/popover.css.d.ts +0 -1
- package/dist/themes/momotaro/components/popover.css.js +0 -33
- package/dist/themes/momotaro/components/progress.css.cjs +0 -59
- package/dist/themes/momotaro/components/progress.css.d.ts +0 -1
- package/dist/themes/momotaro/components/progress.css.js +0 -59
- package/dist/themes/momotaro/components/radio.css.cjs +0 -65
- package/dist/themes/momotaro/components/radio.css.d.ts +0 -1
- package/dist/themes/momotaro/components/radio.css.js +0 -65
- package/dist/themes/momotaro/components/select.css.cjs +0 -48
- package/dist/themes/momotaro/components/select.css.d.ts +0 -1
- package/dist/themes/momotaro/components/select.css.js +0 -48
- package/dist/themes/momotaro/components/slider.css.cjs +0 -93
- package/dist/themes/momotaro/components/slider.css.d.ts +0 -1
- package/dist/themes/momotaro/components/slider.css.js +0 -93
- package/dist/themes/momotaro/components/spinner.css.cjs +0 -44
- package/dist/themes/momotaro/components/spinner.css.d.ts +0 -1
- package/dist/themes/momotaro/components/spinner.css.js +0 -44
- package/dist/themes/momotaro/components/switch.css.cjs +0 -62
- package/dist/themes/momotaro/components/switch.css.d.ts +0 -1
- package/dist/themes/momotaro/components/switch.css.js +0 -62
- package/dist/themes/momotaro/components/tooltip.css.cjs +0 -31
- package/dist/themes/momotaro/components/tooltip.css.d.ts +0 -1
- package/dist/themes/momotaro/components/tooltip.css.js +0 -31
- package/dist/themes/momotaro/components/transitions.cjs +0 -4
- package/dist/themes/momotaro/components/transitions.d.ts +0 -1
- package/dist/themes/momotaro/components/transitions.js +0 -4
- package/dist/themes/momotaro/index.d.ts +0 -1
- package/dist/themes/momotaro/momotaro.css.cjs +0 -14
- package/dist/themes/momotaro/momotaro.css.d.ts +0 -1
- package/dist/themes/momotaro/momotaro.css.js +0 -14
- package/dist/themes/momotaro/tokens.css.cjs +0 -86
- package/dist/themes/momotaro/tokens.css.d.ts +0 -2
- package/dist/themes/momotaro/tokens.css.js +0 -86
- package/dist/themes/momotaro.cjs +0 -4
- package/dist/themes/momotaro.js +0 -4
- package/themes/momotaro/index.d.ts +0 -1
- package/themes/momotaro/package.json +0 -5
- /package/dist/{entries/reset.d.ts → index.spec.d.ts} +0 -0
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const react = require("react");
|
|
5
|
-
const theme = require("../../../lib/theme/store/theme.cjs");
|
|
6
|
-
const classnames = require("../../../lib/utils/classnames.cjs");
|
|
7
|
-
const input_css = require("./input.css.cjs");
|
|
8
|
-
const Box = require("../../layout/Box/Box.cjs");
|
|
9
|
-
const Input = ({
|
|
10
|
-
className,
|
|
11
|
-
endSlot,
|
|
12
|
-
name,
|
|
13
|
-
placeholder,
|
|
14
|
-
ref,
|
|
15
|
-
startSlot,
|
|
16
|
-
type = "text",
|
|
17
|
-
...restProps
|
|
18
|
-
}) => {
|
|
19
|
-
const id = react.useId();
|
|
20
|
-
const containerClassName = theme.getComponentStyles(
|
|
21
|
-
"input",
|
|
22
|
-
{ container: true },
|
|
23
|
-
false
|
|
24
|
-
);
|
|
25
|
-
const inputClassName = theme.getComponentStyles("input", { input: true });
|
|
26
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Box.Box, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
27
|
-
Box.Box,
|
|
28
|
-
{
|
|
29
|
-
display: "flex",
|
|
30
|
-
alignItems: "center",
|
|
31
|
-
className: classnames.classnames(containerClassName, className),
|
|
32
|
-
children: [
|
|
33
|
-
startSlot,
|
|
34
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35
|
-
"input",
|
|
36
|
-
{
|
|
37
|
-
id,
|
|
38
|
-
ref,
|
|
39
|
-
name,
|
|
40
|
-
type,
|
|
41
|
-
placeholder,
|
|
42
|
-
className: classnames.classnames(input_css.input, inputClassName),
|
|
43
|
-
...restProps
|
|
44
|
-
}
|
|
45
|
-
),
|
|
46
|
-
endSlot
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
) });
|
|
50
|
-
};
|
|
51
|
-
exports.Input = Input;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OptionalLiteral } from '../../../lib/utils/helpers';
|
|
2
|
-
import { HTMLElementProps } from '../../../lib/utils/utils';
|
|
3
|
-
export type InputProps = {
|
|
4
|
-
className?: string;
|
|
5
|
-
endSlot?: React.ReactNode;
|
|
6
|
-
name: string;
|
|
7
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
8
|
-
startSlot?: React.ReactNode;
|
|
9
|
-
type?: OptionalLiteral<'email' | 'number' | 'password' | 'tel' | 'text' | 'url'>;
|
|
10
|
-
} & Omit<HTMLElementProps<HTMLInputElement>, 'type'>;
|
|
11
|
-
export declare const Input: React.FC<InputProps>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useId } from "react";
|
|
3
|
-
import { getComponentStyles } from "../../../lib/theme/store/theme.js";
|
|
4
|
-
import { classnames } from "../../../lib/utils/classnames.js";
|
|
5
|
-
import { input } from "./input.css.js";
|
|
6
|
-
import { Box } from "../../layout/Box/Box.js";
|
|
7
|
-
const Input = ({
|
|
8
|
-
className,
|
|
9
|
-
endSlot,
|
|
10
|
-
name,
|
|
11
|
-
placeholder,
|
|
12
|
-
ref,
|
|
13
|
-
startSlot,
|
|
14
|
-
type = "text",
|
|
15
|
-
...restProps
|
|
16
|
-
}) => {
|
|
17
|
-
const id = useId();
|
|
18
|
-
const containerClassName = getComponentStyles(
|
|
19
|
-
"input",
|
|
20
|
-
{ container: true },
|
|
21
|
-
false
|
|
22
|
-
);
|
|
23
|
-
const inputClassName = getComponentStyles("input", { input: true });
|
|
24
|
-
return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(
|
|
25
|
-
Box,
|
|
26
|
-
{
|
|
27
|
-
display: "flex",
|
|
28
|
-
alignItems: "center",
|
|
29
|
-
className: classnames(containerClassName, className),
|
|
30
|
-
children: [
|
|
31
|
-
startSlot,
|
|
32
|
-
/* @__PURE__ */ jsx(
|
|
33
|
-
"input",
|
|
34
|
-
{
|
|
35
|
-
id,
|
|
36
|
-
ref,
|
|
37
|
-
name,
|
|
38
|
-
type,
|
|
39
|
-
placeholder,
|
|
40
|
-
className: classnames(input, inputClassName),
|
|
41
|
-
...restProps
|
|
42
|
-
}
|
|
43
|
-
),
|
|
44
|
-
endSlot
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
) });
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
Input
|
|
51
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Input, type InputProps } from './Input';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
4
|
-
const css = require("@vanilla-extract/css");
|
|
5
|
-
const layers_css = require("../../../lib/css/layers/layers.css.cjs");
|
|
6
|
-
fileScope.setFileScope("src/components/form/Input/input.css.ts", "@blockle/blocks");
|
|
7
|
-
const input = css.style({
|
|
8
|
-
"@layer": {
|
|
9
|
-
[layers_css.blocksLayer]: {
|
|
10
|
-
appearance: "none",
|
|
11
|
-
width: "100%",
|
|
12
|
-
selectors: {
|
|
13
|
-
"&:-webkit-autofill": {
|
|
14
|
-
transitionDelay: "9999s"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
fileScope.endFileScope();
|
|
21
|
-
exports.input = input;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const input: string;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
import { blocksLayer } from "../../../lib/css/layers/layers.css.js";
|
|
4
|
-
setFileScope("src/components/form/Input/input.css.ts", "@blockle/blocks");
|
|
5
|
-
const input = style({
|
|
6
|
-
"@layer": {
|
|
7
|
-
[blocksLayer]: {
|
|
8
|
-
appearance: "none",
|
|
9
|
-
width: "100%",
|
|
10
|
-
selectors: {
|
|
11
|
-
"&:-webkit-autofill": {
|
|
12
|
-
transitionDelay: "9999s"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
endFileScope();
|
|
19
|
-
export {
|
|
20
|
-
input
|
|
21
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const theme = require("../../../lib/theme/store/theme.cjs");
|
|
5
|
-
const classnames = require("../../../lib/utils/classnames.cjs");
|
|
6
|
-
const sprinkles_css = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
7
|
-
const Label = ({
|
|
8
|
-
asSpan,
|
|
9
|
-
children,
|
|
10
|
-
className,
|
|
11
|
-
required,
|
|
12
|
-
size,
|
|
13
|
-
cursor,
|
|
14
|
-
...restProps
|
|
15
|
-
}) => {
|
|
16
|
-
const Component = asSpan ? "span" : "label";
|
|
17
|
-
const containerClassName = theme.getComponentStyles("label", {
|
|
18
|
-
base: true,
|
|
19
|
-
variants: { required, size }
|
|
20
|
-
});
|
|
21
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22
|
-
Component,
|
|
23
|
-
{
|
|
24
|
-
className: classnames.classnames(containerClassName, className, sprinkles_css.atoms({ cursor })),
|
|
25
|
-
...restProps,
|
|
26
|
-
children
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
exports.Label = Label;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Atoms } from '../../../lib/css/atoms';
|
|
2
|
-
import { LabelTheme } from '../../../lib/theme/componentThemes';
|
|
3
|
-
import { HTMLElementProps } from '../../../lib/utils/utils';
|
|
4
|
-
export type LabelProps = {
|
|
5
|
-
/**
|
|
6
|
-
* If true, the label will be rendered as a span element
|
|
7
|
-
* but will still have the same styles as a label.
|
|
8
|
-
* Useful for when you want to use a label element but
|
|
9
|
-
* can't because of the parent element's structure.
|
|
10
|
-
*/
|
|
11
|
-
asSpan?: boolean;
|
|
12
|
-
htmlFor?: string;
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
required?: boolean;
|
|
15
|
-
size?: LabelTheme['variants']['size'];
|
|
16
|
-
cursor?: Atoms['cursor'];
|
|
17
|
-
} & HTMLElementProps<HTMLLabelElement>;
|
|
18
|
-
export declare const Label: React.FC<LabelProps>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentStyles } from "../../../lib/theme/store/theme.js";
|
|
3
|
-
import { classnames } from "../../../lib/utils/classnames.js";
|
|
4
|
-
import { atoms } from "../../../lib/css/atoms/sprinkles.css.js";
|
|
5
|
-
const Label = ({
|
|
6
|
-
asSpan,
|
|
7
|
-
children,
|
|
8
|
-
className,
|
|
9
|
-
required,
|
|
10
|
-
size,
|
|
11
|
-
cursor,
|
|
12
|
-
...restProps
|
|
13
|
-
}) => {
|
|
14
|
-
const Component = asSpan ? "span" : "label";
|
|
15
|
-
const containerClassName = getComponentStyles("label", {
|
|
16
|
-
base: true,
|
|
17
|
-
variants: { required, size }
|
|
18
|
-
});
|
|
19
|
-
return /* @__PURE__ */ jsx(
|
|
20
|
-
Component,
|
|
21
|
-
{
|
|
22
|
-
className: classnames(containerClassName, className, atoms({ cursor })),
|
|
23
|
-
...restProps,
|
|
24
|
-
children
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
Label
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Label, type LabelProps } from './Label';
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const theme = require("../../../lib/theme/store/theme.cjs");
|
|
5
|
-
const classnames = require("../../../lib/utils/classnames.cjs");
|
|
6
|
-
const radio_css = require("./radio.css.cjs");
|
|
7
|
-
const Label = require("../Label/Label.cjs");
|
|
8
|
-
const Radio = ({
|
|
9
|
-
name,
|
|
10
|
-
children,
|
|
11
|
-
className,
|
|
12
|
-
ref,
|
|
13
|
-
...restProps
|
|
14
|
-
}) => {
|
|
15
|
-
const containerClassName = theme.getComponentStyles("radio", { base: true }, false);
|
|
16
|
-
const iconClassName = theme.getComponentStyles("radio", { icon: true }, false);
|
|
17
|
-
const labelClassName = theme.getComponentStyles("checkbox", { label: true }, false);
|
|
18
|
-
const input = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19
|
-
"div",
|
|
20
|
-
{
|
|
21
|
-
className: classnames.classnames(radio_css.container, containerClassName, className),
|
|
22
|
-
children: [
|
|
23
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24
|
-
"input",
|
|
25
|
-
{
|
|
26
|
-
ref,
|
|
27
|
-
type: "radio",
|
|
28
|
-
name,
|
|
29
|
-
className: radio_css.input,
|
|
30
|
-
...restProps
|
|
31
|
-
}
|
|
32
|
-
),
|
|
33
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classnames.classnames(radio_css.icon, iconClassName) })
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
if (!children) {
|
|
38
|
-
return input;
|
|
39
|
-
}
|
|
40
|
-
return (
|
|
41
|
-
// biome-ignore lint/a11y/noLabelWithoutControl: <explanation>
|
|
42
|
-
/* @__PURE__ */ jsxRuntime.jsxs("label", { className: labelClassName, children: [
|
|
43
|
-
input,
|
|
44
|
-
/* @__PURE__ */ jsxRuntime.jsx(Label.Label, { asSpan: true, children })
|
|
45
|
-
] })
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
exports.Radio = Radio;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HTMLElementProps } from '../../../lib/utils/utils';
|
|
2
|
-
export type RadioProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
name: string;
|
|
5
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
6
|
-
value: string;
|
|
7
|
-
} & HTMLElementProps<HTMLInputElement>;
|
|
8
|
-
export declare const Radio: React.FC<RadioProps>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentStyles } from "../../../lib/theme/store/theme.js";
|
|
3
|
-
import { classnames } from "../../../lib/utils/classnames.js";
|
|
4
|
-
import { input, icon, container } from "./radio.css.js";
|
|
5
|
-
import { Label } from "../Label/Label.js";
|
|
6
|
-
const Radio = ({
|
|
7
|
-
name,
|
|
8
|
-
children,
|
|
9
|
-
className,
|
|
10
|
-
ref,
|
|
11
|
-
...restProps
|
|
12
|
-
}) => {
|
|
13
|
-
const containerClassName = getComponentStyles("radio", { base: true }, false);
|
|
14
|
-
const iconClassName = getComponentStyles("radio", { icon: true }, false);
|
|
15
|
-
const labelClassName = getComponentStyles("checkbox", { label: true }, false);
|
|
16
|
-
const input$1 = /* @__PURE__ */ jsxs(
|
|
17
|
-
"div",
|
|
18
|
-
{
|
|
19
|
-
className: classnames(container, containerClassName, className),
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */ jsx(
|
|
22
|
-
"input",
|
|
23
|
-
{
|
|
24
|
-
ref,
|
|
25
|
-
type: "radio",
|
|
26
|
-
name,
|
|
27
|
-
className: input,
|
|
28
|
-
...restProps
|
|
29
|
-
}
|
|
30
|
-
),
|
|
31
|
-
/* @__PURE__ */ jsx("div", { className: classnames(icon, iconClassName) })
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
if (!children) {
|
|
36
|
-
return input$1;
|
|
37
|
-
}
|
|
38
|
-
return (
|
|
39
|
-
// biome-ignore lint/a11y/noLabelWithoutControl: <explanation>
|
|
40
|
-
/* @__PURE__ */ jsxs("label", { className: labelClassName, children: [
|
|
41
|
-
input$1,
|
|
42
|
-
/* @__PURE__ */ jsx(Label, { asSpan: true, children })
|
|
43
|
-
] })
|
|
44
|
-
);
|
|
45
|
-
};
|
|
46
|
-
export {
|
|
47
|
-
Radio
|
|
48
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
4
|
-
const css = require("@vanilla-extract/css");
|
|
5
|
-
const layers_css = require("../../../lib/css/layers/layers.css.cjs");
|
|
6
|
-
fileScope.setFileScope("src/components/form/Radio/radio.css.ts", "@blockle/blocks");
|
|
7
|
-
const container = css.style({
|
|
8
|
-
"@layer": {
|
|
9
|
-
[layers_css.blocksLayer]: {
|
|
10
|
-
position: "relative",
|
|
11
|
-
cursor: "pointer",
|
|
12
|
-
overflow: "hidden"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
const input = css.style({
|
|
17
|
-
position: "absolute",
|
|
18
|
-
inset: 0,
|
|
19
|
-
opacity: 0,
|
|
20
|
-
"@layer": {
|
|
21
|
-
[layers_css.blocksLayer]: {
|
|
22
|
-
all: "unset"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
const icon = css.style({
|
|
27
|
-
pointerEvents: "none"
|
|
28
|
-
});
|
|
29
|
-
fileScope.endFileScope();
|
|
30
|
-
exports.container = container;
|
|
31
|
-
exports.icon = icon;
|
|
32
|
-
exports.input = input;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
import { blocksLayer } from "../../../lib/css/layers/layers.css.js";
|
|
4
|
-
setFileScope("src/components/form/Radio/radio.css.ts", "@blockle/blocks");
|
|
5
|
-
const container = style({
|
|
6
|
-
"@layer": {
|
|
7
|
-
[blocksLayer]: {
|
|
8
|
-
position: "relative",
|
|
9
|
-
cursor: "pointer",
|
|
10
|
-
overflow: "hidden"
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
const input = style({
|
|
15
|
-
position: "absolute",
|
|
16
|
-
inset: 0,
|
|
17
|
-
opacity: 0,
|
|
18
|
-
"@layer": {
|
|
19
|
-
[blocksLayer]: {
|
|
20
|
-
all: "unset"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const icon = style({
|
|
25
|
-
pointerEvents: "none"
|
|
26
|
-
});
|
|
27
|
-
endFileScope();
|
|
28
|
-
export {
|
|
29
|
-
container,
|
|
30
|
-
icon,
|
|
31
|
-
input
|
|
32
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const theme = require("../../../lib/theme/store/theme.cjs");
|
|
5
|
-
const classnames = require("../../../lib/utils/classnames.cjs");
|
|
6
|
-
const select_css = require("./select.css.cjs");
|
|
7
|
-
const Box = require("../../layout/Box/Box.cjs");
|
|
8
|
-
const Select = ({
|
|
9
|
-
children,
|
|
10
|
-
placeholder,
|
|
11
|
-
className,
|
|
12
|
-
variant,
|
|
13
|
-
ref,
|
|
14
|
-
...restProps
|
|
15
|
-
}) => {
|
|
16
|
-
const wrapperClassName = theme.getComponentStyles(
|
|
17
|
-
"select",
|
|
18
|
-
{ wrapper: true },
|
|
19
|
-
false
|
|
20
|
-
);
|
|
21
|
-
const selectClassName = theme.getComponentStyles("select", {
|
|
22
|
-
select: true,
|
|
23
|
-
variants: { variant }
|
|
24
|
-
});
|
|
25
|
-
const iconClassName = theme.getComponentStyles("select", { icon: true }, false);
|
|
26
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Box.Box, { className: classnames.classnames(select_css.wrapper, wrapperClassName), children: [
|
|
27
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
28
|
-
"select",
|
|
29
|
-
{
|
|
30
|
-
ref,
|
|
31
|
-
className: classnames.classnames(select_css.select, selectClassName, className),
|
|
32
|
-
...restProps,
|
|
33
|
-
children: [
|
|
34
|
-
placeholder && /* @__PURE__ */ jsxRuntime.jsx("option", { value: "", children: placeholder }),
|
|
35
|
-
children
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
-
Box.Box,
|
|
41
|
-
{
|
|
42
|
-
className: classnames.classnames(select_css.icon, iconClassName),
|
|
43
|
-
role: "presentation",
|
|
44
|
-
"aria-hidden": true,
|
|
45
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(DefaultIcon, {})
|
|
46
|
-
}
|
|
47
|
-
)
|
|
48
|
-
] });
|
|
49
|
-
};
|
|
50
|
-
const DefaultIcon = () => {
|
|
51
|
-
return (
|
|
52
|
-
// TOOD - replace with actual icon component renderer
|
|
53
|
-
// biome-ignore lint/a11y/noSvgWithoutTitle: <explanation>
|
|
54
|
-
/* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", style: { width: "1rem", height: "1rem" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
55
|
-
"path",
|
|
56
|
-
{
|
|
57
|
-
fill: "currentColor",
|
|
58
|
-
fillRule: "evenodd",
|
|
59
|
-
d: "m11.625 14.3666 7.9365-7.653c.5241-.5055 1.3133-.4372 1.7625.1525.4493.5897.3886 1.4774-.1355 1.9829l-8.75 8.4375c-.4681.4513-1.1589.4513-1.627 0l-8.75-8.4375c-.5241-.5055-.5848-1.3932-.1356-1.9829.4493-.5897 1.2385-.658 1.7626-.1525l7.9365 7.653Z",
|
|
60
|
-
clipRule: "evenodd"
|
|
61
|
-
}
|
|
62
|
-
) })
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
exports.Select = Select;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { SelectTheme } from '../../../lib/theme/componentThemes';
|
|
3
|
-
import { HTMLElementProps } from '../../../lib/utils/utils';
|
|
4
|
-
export type SelectProps = {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
ref?: React.Ref<HTMLSelectElement>;
|
|
8
|
-
variant?: SelectTheme['variants']['variant'];
|
|
9
|
-
} & HTMLElementProps<HTMLSelectElement>;
|
|
10
|
-
export declare const Select: React.FC<SelectProps>;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentStyles } from "../../../lib/theme/store/theme.js";
|
|
3
|
-
import { classnames } from "../../../lib/utils/classnames.js";
|
|
4
|
-
import { select, icon, wrapper } from "./select.css.js";
|
|
5
|
-
import { Box } from "../../layout/Box/Box.js";
|
|
6
|
-
const Select = ({
|
|
7
|
-
children,
|
|
8
|
-
placeholder,
|
|
9
|
-
className,
|
|
10
|
-
variant,
|
|
11
|
-
ref,
|
|
12
|
-
...restProps
|
|
13
|
-
}) => {
|
|
14
|
-
const wrapperClassName = getComponentStyles(
|
|
15
|
-
"select",
|
|
16
|
-
{ wrapper: true },
|
|
17
|
-
false
|
|
18
|
-
);
|
|
19
|
-
const selectClassName = getComponentStyles("select", {
|
|
20
|
-
select: true,
|
|
21
|
-
variants: { variant }
|
|
22
|
-
});
|
|
23
|
-
const iconClassName = getComponentStyles("select", { icon: true }, false);
|
|
24
|
-
return /* @__PURE__ */ jsxs(Box, { className: classnames(wrapper, wrapperClassName), children: [
|
|
25
|
-
/* @__PURE__ */ jsxs(
|
|
26
|
-
"select",
|
|
27
|
-
{
|
|
28
|
-
ref,
|
|
29
|
-
className: classnames(select, selectClassName, className),
|
|
30
|
-
...restProps,
|
|
31
|
-
children: [
|
|
32
|
-
placeholder && /* @__PURE__ */ jsx("option", { value: "", children: placeholder }),
|
|
33
|
-
children
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
),
|
|
37
|
-
/* @__PURE__ */ jsx(
|
|
38
|
-
Box,
|
|
39
|
-
{
|
|
40
|
-
className: classnames(icon, iconClassName),
|
|
41
|
-
role: "presentation",
|
|
42
|
-
"aria-hidden": true,
|
|
43
|
-
children: /* @__PURE__ */ jsx(DefaultIcon, {})
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
] });
|
|
47
|
-
};
|
|
48
|
-
const DefaultIcon = () => {
|
|
49
|
-
return (
|
|
50
|
-
// TOOD - replace with actual icon component renderer
|
|
51
|
-
// biome-ignore lint/a11y/noSvgWithoutTitle: <explanation>
|
|
52
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", style: { width: "1rem", height: "1rem" }, children: /* @__PURE__ */ jsx(
|
|
53
|
-
"path",
|
|
54
|
-
{
|
|
55
|
-
fill: "currentColor",
|
|
56
|
-
fillRule: "evenodd",
|
|
57
|
-
d: "m11.625 14.3666 7.9365-7.653c.5241-.5055 1.3133-.4372 1.7625.1525.4493.5897.3886 1.4774-.1355 1.9829l-8.75 8.4375c-.4681.4513-1.1589.4513-1.627 0l-8.75-8.4375c-.5241-.5055-.5848-1.3932-.1356-1.9829.4493-.5897 1.2385-.658 1.7626-.1525l7.9365 7.653Z",
|
|
58
|
-
clipRule: "evenodd"
|
|
59
|
-
}
|
|
60
|
-
) })
|
|
61
|
-
);
|
|
62
|
-
};
|
|
63
|
-
export {
|
|
64
|
-
Select
|
|
65
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Select, type SelectProps } from './Select';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
4
|
-
const css = require("@vanilla-extract/css");
|
|
5
|
-
const layers_css = require("../../../lib/css/layers/layers.css.cjs");
|
|
6
|
-
fileScope.setFileScope("src/components/form/Select/select.css.ts", "@blockle/blocks");
|
|
7
|
-
const wrapper = css.style({
|
|
8
|
-
"@layer": {
|
|
9
|
-
[layers_css.blocksLayer]: {
|
|
10
|
-
position: "relative"
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
const select = css.style({
|
|
15
|
-
"@layer": {
|
|
16
|
-
[layers_css.blocksLayer]: {
|
|
17
|
-
appearance: "none",
|
|
18
|
-
inlineSize: "100%"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const icon = css.style({
|
|
23
|
-
"@layer": {
|
|
24
|
-
[layers_css.blocksLayer]: {
|
|
25
|
-
position: "absolute",
|
|
26
|
-
right: 0,
|
|
27
|
-
top: 0,
|
|
28
|
-
bottom: 0,
|
|
29
|
-
pointerEvents: "none",
|
|
30
|
-
display: "flex",
|
|
31
|
-
alignItems: "center"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
fileScope.endFileScope();
|
|
36
|
-
exports.icon = icon;
|
|
37
|
-
exports.select = select;
|
|
38
|
-
exports.wrapper = wrapper;
|