@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,57 +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 makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
|
-
const helpers_css = require("./helpers.css.cjs");
|
|
7
|
-
const sprinkles_css = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
8
|
-
fileScope.setFileScope("src/themes/momotaro/components/link.css.ts", "@blockle/blocks");
|
|
9
|
-
const link = makeComponentTheme.makeComponentTheme("link", {
|
|
10
|
-
base: css.style([
|
|
11
|
-
{
|
|
12
|
-
outline: "none",
|
|
13
|
-
border: "none",
|
|
14
|
-
textDecoration: "none",
|
|
15
|
-
background: "transparent",
|
|
16
|
-
borderRadius: 1,
|
|
17
|
-
":hover": {
|
|
18
|
-
textDecoration: "underline"
|
|
19
|
-
},
|
|
20
|
-
":focus-visible": {
|
|
21
|
-
textDecoration: "underline"
|
|
22
|
-
},
|
|
23
|
-
cursor: "pointer"
|
|
24
|
-
// selectors: {
|
|
25
|
-
// '&[target="_blank"]::after': {
|
|
26
|
-
// content: '"\\2197"',
|
|
27
|
-
// marginLeft: 4,
|
|
28
|
-
// },
|
|
29
|
-
// },
|
|
30
|
-
},
|
|
31
|
-
helpers_css.focusable
|
|
32
|
-
]),
|
|
33
|
-
variants: {
|
|
34
|
-
variant: {
|
|
35
|
-
inherit: css.style({
|
|
36
|
-
color: "inherit",
|
|
37
|
-
fontWeight: "inherit"
|
|
38
|
-
}),
|
|
39
|
-
primary: sprinkles_css.atoms({
|
|
40
|
-
color: "primary",
|
|
41
|
-
fontWeight: "medium"
|
|
42
|
-
}),
|
|
43
|
-
secondary: sprinkles_css.atoms({
|
|
44
|
-
color: "secondary",
|
|
45
|
-
fontWeight: "medium"
|
|
46
|
-
})
|
|
47
|
-
},
|
|
48
|
-
underline: css.style({
|
|
49
|
-
textDecoration: "underline"
|
|
50
|
-
})
|
|
51
|
-
},
|
|
52
|
-
defaultVariants: {
|
|
53
|
-
variant: "primary"
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
fileScope.endFileScope();
|
|
57
|
-
exports.link = link;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const link: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').LinkTheme> | undefined;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
|
-
import { focusable } from "./helpers.css.js";
|
|
5
|
-
import { atoms } from "../../../lib/css/atoms/sprinkles.css.js";
|
|
6
|
-
setFileScope("src/themes/momotaro/components/link.css.ts", "@blockle/blocks");
|
|
7
|
-
const link = makeComponentTheme("link", {
|
|
8
|
-
base: style([
|
|
9
|
-
{
|
|
10
|
-
outline: "none",
|
|
11
|
-
border: "none",
|
|
12
|
-
textDecoration: "none",
|
|
13
|
-
background: "transparent",
|
|
14
|
-
borderRadius: 1,
|
|
15
|
-
":hover": {
|
|
16
|
-
textDecoration: "underline"
|
|
17
|
-
},
|
|
18
|
-
":focus-visible": {
|
|
19
|
-
textDecoration: "underline"
|
|
20
|
-
},
|
|
21
|
-
cursor: "pointer"
|
|
22
|
-
// selectors: {
|
|
23
|
-
// '&[target="_blank"]::after': {
|
|
24
|
-
// content: '"\\2197"',
|
|
25
|
-
// marginLeft: 4,
|
|
26
|
-
// },
|
|
27
|
-
// },
|
|
28
|
-
},
|
|
29
|
-
focusable
|
|
30
|
-
]),
|
|
31
|
-
variants: {
|
|
32
|
-
variant: {
|
|
33
|
-
inherit: style({
|
|
34
|
-
color: "inherit",
|
|
35
|
-
fontWeight: "inherit"
|
|
36
|
-
}),
|
|
37
|
-
primary: atoms({
|
|
38
|
-
color: "primary",
|
|
39
|
-
fontWeight: "medium"
|
|
40
|
-
}),
|
|
41
|
-
secondary: atoms({
|
|
42
|
-
color: "secondary",
|
|
43
|
-
fontWeight: "medium"
|
|
44
|
-
})
|
|
45
|
-
},
|
|
46
|
-
underline: style({
|
|
47
|
-
textDecoration: "underline"
|
|
48
|
-
})
|
|
49
|
-
},
|
|
50
|
-
defaultVariants: {
|
|
51
|
-
variant: "primary"
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
endFileScope();
|
|
55
|
-
export {
|
|
56
|
-
link
|
|
57
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
4
|
-
const style = require("../../../lib/css/style/style.cjs");
|
|
5
|
-
const makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
|
-
fileScope.setFileScope("src/themes/momotaro/components/popover.css.ts", "@blockle/blocks");
|
|
7
|
-
const popover = makeComponentTheme.makeComponentTheme("popover", {
|
|
8
|
-
base: style.style({
|
|
9
|
-
backgroundColor: "white",
|
|
10
|
-
borderRadius: "small",
|
|
11
|
-
boxShadow: "medium",
|
|
12
|
-
padding: "medium",
|
|
13
|
-
margin: "small",
|
|
14
|
-
// Space between the popover and the anchor element
|
|
15
|
-
width: "max-content",
|
|
16
|
-
selectors: {
|
|
17
|
-
"&[data-open]": {
|
|
18
|
-
transform: "scale(1)",
|
|
19
|
-
opacity: 1
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
// Apply the animation only if the user has not requested reduced motion
|
|
23
|
-
"@media": {
|
|
24
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
25
|
-
transform: "scale(0.95)",
|
|
26
|
-
transition: "opacity 80ms linear, transform 80ms",
|
|
27
|
-
opacity: 0
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
});
|
|
32
|
-
fileScope.endFileScope();
|
|
33
|
-
exports.popover = popover;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const popover: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').PopoverTheme> | undefined;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { style } from "../../../lib/css/style/style.js";
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
|
-
setFileScope("src/themes/momotaro/components/popover.css.ts", "@blockle/blocks");
|
|
5
|
-
const popover = makeComponentTheme("popover", {
|
|
6
|
-
base: style({
|
|
7
|
-
backgroundColor: "white",
|
|
8
|
-
borderRadius: "small",
|
|
9
|
-
boxShadow: "medium",
|
|
10
|
-
padding: "medium",
|
|
11
|
-
margin: "small",
|
|
12
|
-
// Space between the popover and the anchor element
|
|
13
|
-
width: "max-content",
|
|
14
|
-
selectors: {
|
|
15
|
-
"&[data-open]": {
|
|
16
|
-
transform: "scale(1)",
|
|
17
|
-
opacity: 1
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
// Apply the animation only if the user has not requested reduced motion
|
|
21
|
-
"@media": {
|
|
22
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
23
|
-
transform: "scale(0.95)",
|
|
24
|
-
transition: "opacity 80ms linear, transform 80ms",
|
|
25
|
-
opacity: 0
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
})
|
|
29
|
-
});
|
|
30
|
-
endFileScope();
|
|
31
|
-
export {
|
|
32
|
-
popover
|
|
33
|
-
};
|
|
@@ -1,59 +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 makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
|
-
const vars_css = require("../../../lib/theme/vars.css.cjs");
|
|
7
|
-
const sprinkles_css = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
8
|
-
fileScope.setFileScope("src/themes/momotaro/components/progress.css.ts", "@blockle/blocks");
|
|
9
|
-
const indeterminateAnimation = css.keyframes({
|
|
10
|
-
"0%": {
|
|
11
|
-
transform: "translateX(-100%)"
|
|
12
|
-
},
|
|
13
|
-
"100%": {
|
|
14
|
-
transform: "translateX(100%)"
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
const progress = makeComponentTheme.makeComponentTheme("progress", {
|
|
18
|
-
base: css.style([
|
|
19
|
-
{
|
|
20
|
-
height: 8
|
|
21
|
-
},
|
|
22
|
-
sprinkles_css.atoms({
|
|
23
|
-
inlineSize: "full",
|
|
24
|
-
borderRadius: "small",
|
|
25
|
-
backgroundColor: "textLight",
|
|
26
|
-
color: "primary",
|
|
27
|
-
overflow: "hidden"
|
|
28
|
-
})
|
|
29
|
-
]),
|
|
30
|
-
bar: css.style({
|
|
31
|
-
borderRadius: "inherit",
|
|
32
|
-
"@media": {
|
|
33
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
34
|
-
transition: "transform 180ms ease-out"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}),
|
|
38
|
-
variants: {
|
|
39
|
-
indeterminate: css.style({
|
|
40
|
-
"@media": {
|
|
41
|
-
// For reduce motion we show a striped pattern instead of animating
|
|
42
|
-
"(prefers-reduced-motion: reduce)": {
|
|
43
|
-
backgroundImage: `repeating-linear-gradient(
|
|
44
|
-
45deg,
|
|
45
|
-
transparent,
|
|
46
|
-
transparent 20px,
|
|
47
|
-
${vars_css.vars.color.primaryDark} 20px,
|
|
48
|
-
${vars_css.vars.color.primaryDark} 40px
|
|
49
|
-
)`
|
|
50
|
-
},
|
|
51
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
52
|
-
animation: `${indeterminateAnimation} 3s ease-in-out infinite`
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
})
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
fileScope.endFileScope();
|
|
59
|
-
exports.progress = progress;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const progress: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').ProgressTheme> | undefined;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { style, keyframes } from "@vanilla-extract/css";
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
|
-
import { vars } from "../../../lib/theme/vars.css.js";
|
|
5
|
-
import { atoms } from "../../../lib/css/atoms/sprinkles.css.js";
|
|
6
|
-
setFileScope("src/themes/momotaro/components/progress.css.ts", "@blockle/blocks");
|
|
7
|
-
const indeterminateAnimation = keyframes({
|
|
8
|
-
"0%": {
|
|
9
|
-
transform: "translateX(-100%)"
|
|
10
|
-
},
|
|
11
|
-
"100%": {
|
|
12
|
-
transform: "translateX(100%)"
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
const progress = makeComponentTheme("progress", {
|
|
16
|
-
base: style([
|
|
17
|
-
{
|
|
18
|
-
height: 8
|
|
19
|
-
},
|
|
20
|
-
atoms({
|
|
21
|
-
inlineSize: "full",
|
|
22
|
-
borderRadius: "small",
|
|
23
|
-
backgroundColor: "textLight",
|
|
24
|
-
color: "primary",
|
|
25
|
-
overflow: "hidden"
|
|
26
|
-
})
|
|
27
|
-
]),
|
|
28
|
-
bar: style({
|
|
29
|
-
borderRadius: "inherit",
|
|
30
|
-
"@media": {
|
|
31
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
32
|
-
transition: "transform 180ms ease-out"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}),
|
|
36
|
-
variants: {
|
|
37
|
-
indeterminate: style({
|
|
38
|
-
"@media": {
|
|
39
|
-
// For reduce motion we show a striped pattern instead of animating
|
|
40
|
-
"(prefers-reduced-motion: reduce)": {
|
|
41
|
-
backgroundImage: `repeating-linear-gradient(
|
|
42
|
-
45deg,
|
|
43
|
-
transparent,
|
|
44
|
-
transparent 20px,
|
|
45
|
-
${vars.color.primaryDark} 20px,
|
|
46
|
-
${vars.color.primaryDark} 40px
|
|
47
|
-
)`
|
|
48
|
-
},
|
|
49
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
50
|
-
animation: `${indeterminateAnimation} 3s ease-in-out infinite`
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
})
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
endFileScope();
|
|
57
|
-
export {
|
|
58
|
-
progress
|
|
59
|
-
};
|
|
@@ -1,65 +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 makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
|
-
const vars_css = require("../../../lib/theme/vars.css.cjs");
|
|
7
|
-
const helpers_css = require("./helpers.css.cjs");
|
|
8
|
-
const transitions = require("./transitions.cjs");
|
|
9
|
-
const sprinkles_css = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
10
|
-
fileScope.setFileScope("src/themes/momotaro/components/radio.css.ts", "@blockle/blocks");
|
|
11
|
-
const radio = makeComponentTheme.makeComponentTheme("radio", {
|
|
12
|
-
base: css.style([
|
|
13
|
-
{
|
|
14
|
-
display: "flex",
|
|
15
|
-
alignItems: "center",
|
|
16
|
-
justifyContent: "center",
|
|
17
|
-
inlineSize: 24,
|
|
18
|
-
blockSize: 24,
|
|
19
|
-
borderRadius: 12,
|
|
20
|
-
"@media": {
|
|
21
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
22
|
-
transition: `background-color ${vars_css.vars.transition.fast}, box-shadow ${vars_css.vars.transition.fast}`
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
":hover": {
|
|
26
|
-
backgroundColor: vars_css.vars.color.primaryDark
|
|
27
|
-
},
|
|
28
|
-
selectors: {
|
|
29
|
-
"&:has(input:checked):not(:hover)": {
|
|
30
|
-
backgroundColor: vars_css.vars.color.primary
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
sprinkles_css.atoms({
|
|
35
|
-
backgroundColor: "primaryLight"
|
|
36
|
-
}),
|
|
37
|
-
helpers_css.focusable
|
|
38
|
-
]),
|
|
39
|
-
icon: css.style({
|
|
40
|
-
height: 12,
|
|
41
|
-
width: 12,
|
|
42
|
-
backgroundColor: "white",
|
|
43
|
-
borderRadius: "8px",
|
|
44
|
-
transform: "scale(0)",
|
|
45
|
-
"@media": {
|
|
46
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
47
|
-
transition: `transform ${vars_css.vars.transition.normal} ${transitions.bounceOut}`
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
selectors: {
|
|
51
|
-
"input:checked ~ &": {
|
|
52
|
-
transform: "scale(1)"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}),
|
|
56
|
-
label: sprinkles_css.atoms({
|
|
57
|
-
display: "flex",
|
|
58
|
-
flexDirection: "row",
|
|
59
|
-
padding: "xsmall",
|
|
60
|
-
gap: "medium",
|
|
61
|
-
cursor: "pointer"
|
|
62
|
-
})
|
|
63
|
-
});
|
|
64
|
-
fileScope.endFileScope();
|
|
65
|
-
exports.radio = radio;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const radio: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').RadioTheme> | undefined;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
|
-
import { vars } from "../../../lib/theme/vars.css.js";
|
|
5
|
-
import { focusable } from "./helpers.css.js";
|
|
6
|
-
import { bounceOut } from "./transitions.js";
|
|
7
|
-
import { atoms } from "../../../lib/css/atoms/sprinkles.css.js";
|
|
8
|
-
setFileScope("src/themes/momotaro/components/radio.css.ts", "@blockle/blocks");
|
|
9
|
-
const radio = makeComponentTheme("radio", {
|
|
10
|
-
base: style([
|
|
11
|
-
{
|
|
12
|
-
display: "flex",
|
|
13
|
-
alignItems: "center",
|
|
14
|
-
justifyContent: "center",
|
|
15
|
-
inlineSize: 24,
|
|
16
|
-
blockSize: 24,
|
|
17
|
-
borderRadius: 12,
|
|
18
|
-
"@media": {
|
|
19
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
20
|
-
transition: `background-color ${vars.transition.fast}, box-shadow ${vars.transition.fast}`
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
":hover": {
|
|
24
|
-
backgroundColor: vars.color.primaryDark
|
|
25
|
-
},
|
|
26
|
-
selectors: {
|
|
27
|
-
"&:has(input:checked):not(:hover)": {
|
|
28
|
-
backgroundColor: vars.color.primary
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
atoms({
|
|
33
|
-
backgroundColor: "primaryLight"
|
|
34
|
-
}),
|
|
35
|
-
focusable
|
|
36
|
-
]),
|
|
37
|
-
icon: style({
|
|
38
|
-
height: 12,
|
|
39
|
-
width: 12,
|
|
40
|
-
backgroundColor: "white",
|
|
41
|
-
borderRadius: "8px",
|
|
42
|
-
transform: "scale(0)",
|
|
43
|
-
"@media": {
|
|
44
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
45
|
-
transition: `transform ${vars.transition.normal} ${bounceOut}`
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
selectors: {
|
|
49
|
-
"input:checked ~ &": {
|
|
50
|
-
transform: "scale(1)"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}),
|
|
54
|
-
label: atoms({
|
|
55
|
-
display: "flex",
|
|
56
|
-
flexDirection: "row",
|
|
57
|
-
padding: "xsmall",
|
|
58
|
-
gap: "medium",
|
|
59
|
-
cursor: "pointer"
|
|
60
|
-
})
|
|
61
|
-
});
|
|
62
|
-
endFileScope();
|
|
63
|
-
export {
|
|
64
|
-
radio
|
|
65
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
4
|
-
const style = require("../../../lib/css/style/style.cjs");
|
|
5
|
-
const makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
|
-
const vars_css = require("../../../lib/theme/vars.css.cjs");
|
|
7
|
-
const helpers_css = require("./helpers.css.cjs");
|
|
8
|
-
fileScope.setFileScope("src/themes/momotaro/components/select.css.ts", "@blockle/blocks");
|
|
9
|
-
const select = makeComponentTheme.makeComponentTheme("select", {
|
|
10
|
-
select: style.style([
|
|
11
|
-
{
|
|
12
|
-
color: "text",
|
|
13
|
-
padding: "large",
|
|
14
|
-
border: "none",
|
|
15
|
-
outline: "none",
|
|
16
|
-
backgroundColor: "white",
|
|
17
|
-
borderRadius: "medium",
|
|
18
|
-
boxShadow: "medium",
|
|
19
|
-
minHeight: 56,
|
|
20
|
-
transitionDuration: vars_css.vars.transition.fast,
|
|
21
|
-
transitionProperty: "box-shadow",
|
|
22
|
-
":focus-within": {
|
|
23
|
-
outline: "2px solid transparent",
|
|
24
|
-
outlineOffset: "2px",
|
|
25
|
-
boxShadow: `${vars_css.vars.shadow.small}, ${vars_css.vars.focus.boxShadow}`
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
helpers_css.focusable
|
|
29
|
-
]),
|
|
30
|
-
variants: {
|
|
31
|
-
variant: {
|
|
32
|
-
outline: style.style({
|
|
33
|
-
borderWidth: "small",
|
|
34
|
-
borderStyle: "solid",
|
|
35
|
-
borderColor: "primary"
|
|
36
|
-
}),
|
|
37
|
-
solid: style.style({})
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
icon: style.style({
|
|
41
|
-
paddingInline: "large"
|
|
42
|
-
}),
|
|
43
|
-
defaultVariants: {
|
|
44
|
-
variant: "solid"
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
fileScope.endFileScope();
|
|
48
|
-
exports.select = select;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const select: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').SelectTheme> | undefined;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { style } from "../../../lib/css/style/style.js";
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
|
-
import { vars } from "../../../lib/theme/vars.css.js";
|
|
5
|
-
import { focusable } from "./helpers.css.js";
|
|
6
|
-
setFileScope("src/themes/momotaro/components/select.css.ts", "@blockle/blocks");
|
|
7
|
-
const select = makeComponentTheme("select", {
|
|
8
|
-
select: style([
|
|
9
|
-
{
|
|
10
|
-
color: "text",
|
|
11
|
-
padding: "large",
|
|
12
|
-
border: "none",
|
|
13
|
-
outline: "none",
|
|
14
|
-
backgroundColor: "white",
|
|
15
|
-
borderRadius: "medium",
|
|
16
|
-
boxShadow: "medium",
|
|
17
|
-
minHeight: 56,
|
|
18
|
-
transitionDuration: vars.transition.fast,
|
|
19
|
-
transitionProperty: "box-shadow",
|
|
20
|
-
":focus-within": {
|
|
21
|
-
outline: "2px solid transparent",
|
|
22
|
-
outlineOffset: "2px",
|
|
23
|
-
boxShadow: `${vars.shadow.small}, ${vars.focus.boxShadow}`
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
focusable
|
|
27
|
-
]),
|
|
28
|
-
variants: {
|
|
29
|
-
variant: {
|
|
30
|
-
outline: style({
|
|
31
|
-
borderWidth: "small",
|
|
32
|
-
borderStyle: "solid",
|
|
33
|
-
borderColor: "primary"
|
|
34
|
-
}),
|
|
35
|
-
solid: style({})
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
icon: style({
|
|
39
|
-
paddingInline: "large"
|
|
40
|
-
}),
|
|
41
|
-
defaultVariants: {
|
|
42
|
-
variant: "solid"
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
endFileScope();
|
|
46
|
-
export {
|
|
47
|
-
select
|
|
48
|
-
};
|
|
@@ -1,93 +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 style = require("../../../lib/css/style/style.cjs");
|
|
6
|
-
const makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
7
|
-
const vars_css = require("../../../lib/theme/vars.css.cjs");
|
|
8
|
-
const helpers_css = require("./helpers.css.cjs");
|
|
9
|
-
fileScope.setFileScope("src/themes/momotaro/components/slider.css.ts", "@blockle/blocks");
|
|
10
|
-
const trackBackground = css.createVar();
|
|
11
|
-
const filledTrackBackground = css.createVar();
|
|
12
|
-
const thumbBackground = css.createVar();
|
|
13
|
-
const thumbActive = css.createVar();
|
|
14
|
-
const slider = makeComponentTheme.makeComponentTheme("slider", {
|
|
15
|
-
base: style.style({
|
|
16
|
-
blockSize: "20px"
|
|
17
|
-
}),
|
|
18
|
-
track: style.style({
|
|
19
|
-
blockSize: "4px",
|
|
20
|
-
backgroundColor: trackBackground,
|
|
21
|
-
borderRadius: "small"
|
|
22
|
-
}),
|
|
23
|
-
filledTrack: style.style({
|
|
24
|
-
backgroundColor: filledTrackBackground
|
|
25
|
-
}),
|
|
26
|
-
thumb: style.style([
|
|
27
|
-
{
|
|
28
|
-
backgroundColor: thumbBackground,
|
|
29
|
-
borderRadius: "50%",
|
|
30
|
-
height: "16px",
|
|
31
|
-
width: "16px",
|
|
32
|
-
boxShadow: `0 0 0 0px color-mix(in srgb, ${vars_css.vars.color.primaryLight}, transparent 0%)`,
|
|
33
|
-
vars: {
|
|
34
|
-
[thumbActive]: `0 0 0 8px color-mix(in srgb, ${vars_css.vars.color.primaryLight}, transparent 20%)`
|
|
35
|
-
},
|
|
36
|
-
":hover": {
|
|
37
|
-
boxShadow: thumbActive
|
|
38
|
-
},
|
|
39
|
-
":focus-visible": {
|
|
40
|
-
boxShadow: thumbActive
|
|
41
|
-
},
|
|
42
|
-
"@media": {
|
|
43
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
44
|
-
transition: "box-shadow 0.2s"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
helpers_css.focusable
|
|
49
|
-
]),
|
|
50
|
-
variants: {
|
|
51
|
-
size: {
|
|
52
|
-
small: style.style({
|
|
53
|
-
inlineSize: "100px"
|
|
54
|
-
}),
|
|
55
|
-
medium: style.style({
|
|
56
|
-
inlineSize: "200px"
|
|
57
|
-
}),
|
|
58
|
-
large: style.style({
|
|
59
|
-
inlineSize: "300px"
|
|
60
|
-
})
|
|
61
|
-
},
|
|
62
|
-
colorScheme: {
|
|
63
|
-
primary: style.style({
|
|
64
|
-
vars: {
|
|
65
|
-
[trackBackground]: vars_css.vars.color.primaryLight,
|
|
66
|
-
[filledTrackBackground]: vars_css.vars.color.primary,
|
|
67
|
-
[thumbBackground]: vars_css.vars.color.primary
|
|
68
|
-
}
|
|
69
|
-
}),
|
|
70
|
-
secondary: style.style({
|
|
71
|
-
vars: {
|
|
72
|
-
[trackBackground]: vars_css.vars.color.primaryLight,
|
|
73
|
-
[filledTrackBackground]: vars_css.vars.color.secondary,
|
|
74
|
-
[thumbBackground]: vars_css.vars.color.secondary
|
|
75
|
-
}
|
|
76
|
-
})
|
|
77
|
-
},
|
|
78
|
-
disabled: style.style({
|
|
79
|
-
pointerEvents: "none",
|
|
80
|
-
vars: {
|
|
81
|
-
[trackBackground]: "#c0c0c0",
|
|
82
|
-
[filledTrackBackground]: "#ccc",
|
|
83
|
-
[thumbBackground]: "#c0c0c0"
|
|
84
|
-
}
|
|
85
|
-
})
|
|
86
|
-
},
|
|
87
|
-
defaultVariants: {
|
|
88
|
-
size: "medium",
|
|
89
|
-
colorScheme: "primary"
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
fileScope.endFileScope();
|
|
93
|
-
exports.slider = slider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const slider: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').SliderTheme> | undefined;
|