@blockle/blocks 0.19.1 → 0.20.0-alpha1.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/components/accessibility/VisuallyHidden/VisuallyHidden.cjs +20 -0
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.d.ts +5 -0
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.js +20 -0
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.spec.d.ts +1 -0
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.stories.d.ts +6 -0
- package/dist/components/accessibility/VisuallyHidden/index.d.ts +1 -0
- package/dist/{styles/components/Accessibility → components/accessibility}/VisuallyHidden/visually-hidden.css.cjs +3 -2
- package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.d.ts +1 -0
- package/dist/{styles/components/Accessibility/VisuallyHidden/visually-hidden.css.mjs → components/accessibility/VisuallyHidden/visually-hidden.css.js} +2 -2
- package/dist/components/display/Divider/Divider.cjs +26 -0
- package/dist/components/display/Divider/Divider.d.ts +7 -0
- package/dist/components/display/Divider/Divider.js +26 -0
- package/dist/components/display/Divider/Divider.spec.d.ts +1 -0
- package/dist/components/display/Divider/Divider.stories.d.ts +6 -0
- package/dist/{styles/components → components}/display/Divider/divider.css.cjs +4 -3
- package/dist/components/display/Divider/divider.css.d.ts +1 -0
- package/dist/{styles/components/display/Divider/divider.css.mjs → components/display/Divider/divider.css.js} +2 -2
- package/dist/components/display/Divider/index.d.ts +1 -0
- package/dist/components/feedback/Progress/Progress.cjs +54 -0
- package/dist/components/feedback/Progress/Progress.d.ts +16 -0
- package/dist/components/feedback/Progress/Progress.js +54 -0
- package/dist/components/feedback/Progress/Progress.stories.d.ts +5 -0
- package/dist/components/feedback/Progress/index.d.ts +1 -0
- package/dist/components/feedback/Spinner/Spinner.cjs +26 -0
- package/dist/components/feedback/Spinner/Spinner.d.ts +9 -0
- package/dist/components/feedback/Spinner/Spinner.js +26 -0
- package/dist/components/feedback/Spinner/Spinner.stories.d.ts +5 -0
- package/dist/components/feedback/Spinner/index.d.ts +1 -0
- package/dist/components/form/Button/Button.cjs +59 -0
- package/dist/{styles/components → components}/form/Button/Button.css.cjs +4 -3
- package/dist/components/form/Button/Button.css.d.ts +1 -0
- package/dist/{styles/components/form/Button/Button.css.mjs → components/form/Button/Button.css.js} +2 -2
- package/dist/components/form/Button/Button.d.ts +21 -0
- package/dist/{styles/components/form/Button/Button.mjs → components/form/Button/Button.js} +16 -14
- package/dist/components/form/Button/Button.spec.d.ts +1 -0
- package/dist/components/form/Button/Button.stories.d.ts +7 -0
- package/dist/components/form/Button/index.d.ts +1 -0
- package/dist/components/form/Checkbox/Checkbox.cjs +79 -0
- package/dist/components/form/Checkbox/Checkbox.d.ts +9 -0
- package/dist/components/form/Checkbox/Checkbox.js +79 -0
- package/dist/components/form/Checkbox/Checkbox.spec.d.ts +1 -0
- package/dist/components/form/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/{styles/components → components}/form/Checkbox/checkbox.css.cjs +7 -6
- package/dist/components/form/Checkbox/checkbox.css.d.ts +3 -0
- package/dist/{styles/components/form/Checkbox/checkbox.css.mjs → components/form/Checkbox/checkbox.css.js} +4 -4
- package/dist/components/form/Checkbox/index.d.ts +1 -0
- package/dist/components/form/Input/Input.cjs +51 -0
- package/dist/components/form/Input/Input.d.ts +11 -0
- package/dist/components/form/Input/Input.js +51 -0
- package/dist/components/form/Input/Input.spec.d.ts +1 -0
- package/dist/components/form/Input/Input.stories.d.ts +5 -0
- package/dist/components/form/Input/index.d.ts +1 -0
- package/dist/{styles/components → components}/form/Input/input.css.cjs +4 -3
- package/dist/components/form/Input/input.css.d.ts +1 -0
- package/dist/{styles/components/form/Input/input.css.mjs → components/form/Input/input.css.js} +2 -2
- package/dist/components/form/Label/Label.cjs +30 -0
- package/dist/components/form/Label/Label.d.ts +18 -0
- package/dist/components/form/Label/Label.js +30 -0
- package/dist/components/form/Label/Label.spec.d.ts +1 -0
- package/dist/components/form/Label/Label.stories.d.ts +6 -0
- package/dist/components/form/Label/index.d.ts +1 -0
- package/dist/components/form/Radio/Radio.cjs +48 -0
- package/dist/components/form/Radio/Radio.d.ts +8 -0
- package/dist/components/form/Radio/Radio.js +48 -0
- package/dist/components/form/Radio/Radio.spec.d.ts +1 -0
- package/dist/components/form/Radio/Radio.stories.d.ts +6 -0
- package/dist/components/form/Radio/RadioGroup.d.ts +8 -0
- package/dist/components/form/Radio/index.d.ts +2 -0
- package/dist/{styles/components → components}/form/Radio/radio.css.cjs +7 -6
- package/dist/components/form/Radio/radio.css.d.ts +3 -0
- package/dist/{styles/components/form/Radio/radio.css.mjs → components/form/Radio/radio.css.js} +4 -4
- package/dist/components/form/Select/Select.cjs +65 -0
- package/dist/components/form/Select/Select.d.ts +10 -0
- package/dist/{styles/components/form/Select/Select.mjs → components/form/Select/Select.js} +24 -7
- package/dist/components/form/Select/Select.stories.d.ts +5 -0
- package/dist/components/form/Select/index.d.ts +1 -0
- package/dist/{styles/components → components}/form/Select/select.css.cjs +8 -7
- package/dist/components/form/Select/select.css.d.ts +3 -0
- package/dist/{styles/components/form/Select/select.css.mjs → components/form/Select/select.css.js} +4 -4
- package/dist/components/form/Slider/Slider.cjs +141 -0
- package/dist/components/form/Slider/Slider.d.ts +20 -0
- package/dist/components/form/Slider/Slider.js +141 -0
- package/dist/components/form/Slider/Slider.spec.d.ts +1 -0
- package/dist/components/form/Slider/Slider.stories.d.ts +6 -0
- package/dist/components/form/Slider/index.d.ts +1 -0
- package/dist/{styles/components → components}/form/Slider/slider.css.cjs +12 -11
- package/dist/components/form/Slider/slider.css.d.ts +5 -0
- package/dist/{styles/components/form/Slider/slider.css.mjs → components/form/Slider/slider.css.js} +6 -6
- package/dist/components/form/Slider/usePointerProgress.cjs +47 -0
- package/dist/components/form/Slider/usePointerProgress.d.ts +11 -0
- package/dist/components/form/Slider/usePointerProgress.js +47 -0
- package/dist/{styles/components → components}/form/Switch/Switch.cjs +12 -8
- package/dist/components/form/Switch/Switch.d.ts +6 -0
- package/dist/{styles/components/form/Switch/Switch.mjs → components/form/Switch/Switch.js} +9 -6
- package/dist/components/form/Switch/Switch.stories.d.ts +5 -0
- package/dist/components/form/Switch/index.d.ts +1 -0
- package/dist/{styles/components → components}/form/Switch/switch.css.cjs +6 -5
- package/dist/components/form/Switch/switch.css.d.ts +2 -0
- package/dist/{styles/components/form/Switch/switch.css.mjs → components/form/Switch/switch.css.js} +3 -3
- package/dist/components/layout/Box/Box.cjs +28 -0
- package/dist/components/layout/Box/Box.d.ts +11 -0
- package/dist/components/layout/Box/Box.js +28 -0
- package/dist/components/layout/Box/Box.spec.d.ts +1 -0
- package/dist/components/layout/Box/Box.stories.d.ts +6 -0
- package/dist/components/layout/Box/index.d.ts +1 -0
- package/dist/components/layout/Inline/Inline.cjs +30 -0
- package/dist/components/layout/Inline/Inline.d.ts +13 -0
- package/dist/components/layout/Inline/Inline.js +30 -0
- package/dist/components/layout/Inline/Inline.stories.d.ts +6 -0
- package/dist/components/layout/Inline/index.d.ts +1 -0
- package/dist/components/layout/Stack/Stack.cjs +30 -0
- package/dist/components/layout/Stack/Stack.d.ts +17 -0
- package/dist/components/layout/Stack/Stack.js +30 -0
- package/dist/components/layout/Stack/Stack.stories.d.ts +6 -0
- package/dist/components/layout/Stack/index.d.ts +1 -0
- package/dist/components/navigation/Link/Link.cjs +32 -0
- package/dist/components/navigation/Link/Link.d.ts +11 -0
- package/dist/components/navigation/Link/Link.js +32 -0
- package/dist/components/navigation/Link/Link.stories.d.ts +6 -0
- package/dist/components/navigation/Link/index.d.ts +1 -0
- package/dist/components/other/BlocksProvider/BlocksProvider.cjs +38 -0
- package/dist/components/other/BlocksProvider/BlocksProvider.d.ts +8 -0
- package/dist/{styles/components/other/BlocksProvider/BlocksProvider.mjs → components/other/BlocksProvider/BlocksProvider.js} +12 -6
- package/dist/components/other/BlocksProvider/context.cjs +6 -0
- package/dist/components/other/BlocksProvider/context.d.ts +4 -0
- package/dist/components/other/BlocksProvider/context.js +6 -0
- package/dist/components/other/BlocksProvider/index.d.ts +2 -0
- package/dist/components/other/Portal/Portal.cjs +8 -0
- package/dist/components/other/Portal/Portal.d.ts +5 -0
- package/dist/components/other/Portal/Portal.js +8 -0
- package/dist/components/other/Portal/index.d.ts +1 -0
- package/dist/components/overlay/Dialog/Dialog.cjs +79 -0
- package/dist/components/overlay/Dialog/Dialog.d.ts +10 -0
- package/dist/components/overlay/Dialog/Dialog.js +79 -0
- package/dist/components/overlay/Dialog/Dialog.stories.d.ts +7 -0
- package/dist/{styles/components → components}/overlay/Dialog/dialog.css.cjs +4 -3
- package/dist/components/overlay/Dialog/dialog.css.d.ts +1 -0
- package/dist/{styles/components/overlay/Dialog/dialog.css.mjs → components/overlay/Dialog/dialog.css.js} +2 -2
- package/dist/components/overlay/Dialog/dialogHelper.cjs +22 -0
- package/dist/components/overlay/Dialog/dialogHelper.d.ts +6 -0
- package/dist/components/overlay/Dialog/dialogHelper.js +22 -0
- package/dist/components/overlay/Dialog/index.d.ts +1 -0
- package/dist/components/overlay/Popover/Popover.cjs +113 -0
- package/dist/components/overlay/Popover/Popover.d.ts +12 -0
- package/dist/components/overlay/Popover/Popover.js +113 -0
- package/dist/components/overlay/Popover/Popover.stories.d.ts +5 -0
- package/dist/components/overlay/Popover/popover-utils.cjs +62 -0
- package/dist/components/overlay/Popover/popover-utils.d.ts +2 -0
- package/dist/components/overlay/Popover/popover-utils.js +62 -0
- package/dist/components/overlay/Tooltip/Tooltip.cjs +73 -0
- package/dist/components/overlay/Tooltip/Tooltip.d.ts +11 -0
- package/dist/components/overlay/Tooltip/Tooltip.js +73 -0
- package/dist/components/overlay/Tooltip/Tooltip.stories.d.ts +5 -0
- package/dist/components/overlay/Tooltip/index.d.ts +1 -0
- package/dist/components/typography/Heading/Heading.cjs +24 -0
- package/dist/components/typography/Heading/Heading.d.ts +8 -0
- package/dist/components/typography/Heading/Heading.js +24 -0
- package/dist/{styles/components → components}/typography/Heading/heading.css.cjs +4 -3
- package/dist/components/typography/Heading/heading.css.d.ts +1 -0
- package/dist/{styles/components/typography/Heading/heading.css.mjs → components/typography/Heading/heading.css.js} +2 -2
- package/dist/components/typography/Heading/heading.stories.d.ts +12 -0
- package/dist/components/typography/Heading/index.d.ts +1 -0
- package/dist/components/typography/Text/Text.cjs +21 -0
- package/dist/components/typography/Text/Text.d.ts +12 -0
- package/dist/{styles/components/typography/Text/Text.mjs → components/typography/Text/Text.js} +3 -3
- package/dist/components/typography/Text/Text.stories.d.ts +5 -0
- package/dist/components/typography/Text/index.d.ts +1 -0
- package/dist/{styles/components → components}/typography/Text/text.css.cjs +4 -3
- package/dist/components/typography/Text/text.css.d.ts +1 -0
- package/dist/{styles/components/typography/Text/text.css.mjs → components/typography/Text/text.css.js} +2 -2
- package/dist/entries/reset.d.ts +0 -0
- package/dist/entries/themes/momotaro.d.ts +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.cjs +24 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +6 -0
- package/dist/hooks/useClickOutside/useClickOutside.js +24 -0
- package/dist/hooks/useControlledValue/useControlledValue.cjs +33 -0
- package/dist/hooks/useControlledValue/useControlledValue.d.ts +8 -0
- package/dist/hooks/useControlledValue/useControlledValue.js +33 -0
- package/dist/hooks/useFocusLock/index.d.ts +1 -0
- package/dist/hooks/useFocusLock/useFocusLock.d.ts +6 -0
- package/dist/hooks/useIsomorphicLayoutEffect/index.d.ts +1 -0
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.cjs +6 -0
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +5 -0
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +6 -0
- package/dist/hooks/useKeyboard/index.d.ts +1 -0
- package/dist/hooks/useKeyboard/useKeyboard.cjs +21 -0
- package/dist/hooks/useKeyboard/useKeyboard.d.ts +6 -0
- package/dist/hooks/useKeyboard/useKeyboard.js +21 -0
- package/dist/hooks/useLayer/index.d.ts +1 -0
- package/dist/hooks/useLayer/useLayer.cjs +27 -0
- package/dist/hooks/useLayer/useLayer.d.ts +1 -0
- package/dist/hooks/useLayer/useLayer.js +27 -0
- package/dist/hooks/usePreventBodyScroll/index.d.ts +1 -0
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.cjs +30 -0
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.d.ts +1 -0
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.js +30 -0
- package/dist/hooks/useRestoreFocus/index.d.ts +1 -0
- package/dist/hooks/useRestoreFocus/useRestoreFocus.cjs +19 -0
- package/dist/hooks/useRestoreFocus/useRestoreFocus.d.ts +4 -0
- package/dist/hooks/useRestoreFocus/useRestoreFocus.js +19 -0
- package/dist/hooks/useRootAriaHidden/index.d.ts +1 -0
- package/dist/hooks/useRootAriaHidden/useRootAriaHidden.cjs +12 -0
- package/dist/hooks/useRootAriaHidden/useRootAriaHidden.d.ts +7 -0
- package/dist/hooks/useRootAriaHidden/useRootAriaHidden.js +12 -0
- package/dist/hooks/useVisibilityState/index.d.ts +1 -0
- package/dist/hooks/useVisibilityState/useVisibilityState.cjs +17 -0
- package/dist/hooks/useVisibilityState/useVisibilityState.d.ts +3 -0
- package/dist/hooks/useVisibilityState/useVisibilityState.js +17 -0
- package/dist/index.cjs +71 -444
- package/dist/index.d.ts +36 -1
- package/dist/index.js +73 -0
- package/dist/lib/asChildRenderer/createAsChildTemplate.cjs +73 -0
- package/dist/lib/asChildRenderer/createAsChildTemplate.d.ts +34 -0
- package/dist/lib/asChildRenderer/createAsChildTemplate.js +73 -0
- package/dist/lib/asChildRenderer/createAsChildTemplate.spec.d.ts +1 -0
- package/dist/lib/css/atoms/atomTypes.d.ts +37 -0
- package/dist/{styles/lib → lib}/css/atoms/atomicProperties.cjs +29 -22
- package/dist/lib/css/atoms/atomicProperties.d.ts +286 -0
- package/dist/{styles/lib/css/atoms/atomicProperties.mjs → lib/css/atoms/atomicProperties.js} +8 -2
- package/dist/lib/css/atoms/atoms.d.ts +1 -0
- package/dist/{styles/lib → lib}/css/atoms/breakpoints.cjs +2 -0
- package/dist/lib/css/atoms/breakpoints.d.ts +9 -0
- package/dist/{styles/lib/css/atoms/breakpoints.mjs → lib/css/atoms/breakpoints.js} +1 -0
- package/dist/lib/css/atoms/index.d.ts +2 -0
- package/dist/lib/css/atoms/sprinkles.css.cjs +52 -0
- package/dist/lib/css/atoms/sprinkles.css.d.ts +233 -0
- package/dist/{styles/lib/css/atoms/sprinkles.css.mjs → lib/css/atoms/sprinkles.css.js} +18 -5
- package/dist/lib/css/flexbox/flexbox.cjs +17 -0
- package/dist/lib/css/flexbox/flexbox.d.ts +15 -0
- package/dist/lib/css/flexbox/flexbox.js +17 -0
- package/dist/{styles/lib → lib}/css/layers/layers.css.cjs +1 -0
- package/dist/lib/css/layers/layers.css.d.ts +1 -0
- package/dist/lib/css/reset/reset.css.d.ts +1 -0
- package/dist/{styles/lib → lib}/css/style/style.cjs +4 -3
- package/dist/lib/css/style/style.d.ts +12 -0
- package/dist/{styles/lib/css/style/style.mjs → lib/css/style/style.js} +1 -1
- package/dist/{styles/lib → lib}/css/utils/cssUtils.cjs +1 -0
- package/dist/lib/css/utils/cssUtils.d.ts +1 -0
- package/dist/lib/react/mergeProps.cjs +43 -0
- package/dist/lib/react/mergeProps.d.ts +4 -0
- package/dist/lib/react/mergeProps.js +43 -0
- package/dist/lib/react/refs.cjs +17 -0
- package/dist/lib/react/refs.d.ts +3 -0
- package/dist/lib/react/refs.js +17 -0
- package/dist/lib/theme/componentThemes.d.ts +134 -0
- package/dist/{styles/lib → lib}/theme/makeComponentTheme.cjs +1 -0
- package/dist/lib/theme/makeComponentTheme.d.ts +49 -0
- package/dist/lib/theme/makeTheme.cjs +13 -0
- package/dist/lib/theme/makeTheme.d.ts +14 -0
- package/dist/{styles/lib/theme/makeTheme.mjs → lib/theme/makeTheme.js} +2 -2
- package/dist/{styles/lib → lib}/theme/makeVanillaTheme.cjs +1 -0
- package/dist/lib/theme/makeVanillaTheme.d.ts +16 -0
- package/dist/lib/theme/store/theme.cjs +93 -0
- package/dist/lib/theme/store/theme.d.ts +13 -0
- package/dist/lib/theme/store/theme.js +93 -0
- package/dist/{styles/lib → lib}/theme/tokens.cjs +1 -0
- package/dist/lib/theme/tokens.d.ts +2 -0
- package/dist/lib/theme/tokensType.d.ts +33 -0
- package/dist/lib/theme/vars.css.cjs +10 -0
- package/dist/lib/theme/vars.css.d.ts +75 -0
- package/dist/{styles/lib/theme/vars.css.mjs → lib/theme/vars.css.js} +2 -2
- package/dist/{styles/lib → lib}/utils/atom-props.cjs +3 -2
- package/dist/lib/utils/atom-props.d.ts +4 -0
- package/dist/{styles/lib/utils/atom-props.mjs → lib/utils/atom-props.js} +1 -1
- package/dist/lib/utils/classnames.cjs +7 -0
- package/dist/lib/utils/classnames.d.ts +3 -0
- package/dist/lib/utils/classnames.js +7 -0
- package/dist/lib/utils/dom-focus.d.ts +2 -0
- package/dist/lib/utils/dom.cjs +13 -0
- package/dist/lib/utils/dom.d.ts +4 -0
- package/dist/lib/utils/dom.js +13 -0
- package/dist/lib/utils/helpers.d.ts +9 -0
- package/dist/lib/utils/math.cjs +13 -0
- package/dist/lib/utils/math.d.ts +2 -0
- package/dist/lib/utils/math.js +13 -0
- package/dist/lib/utils/utils.d.ts +3 -0
- package/dist/reset.cjs +2 -2
- package/dist/reset.js +2 -0
- package/dist/themes/momotaro/components/button.css.cjs +110 -0
- package/dist/themes/momotaro/components/button.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/button.css.mjs → themes/momotaro/components/button.css.js} +45 -39
- package/dist/themes/momotaro/components/checkbox.css.cjs +64 -0
- package/dist/themes/momotaro/components/checkbox.css.d.ts +1 -0
- package/dist/themes/momotaro/components/checkbox.css.js +64 -0
- package/dist/themes/momotaro/components/dialog.css.cjs +82 -0
- package/dist/themes/momotaro/components/dialog.css.d.ts +1 -0
- package/dist/themes/momotaro/components/dialog.css.js +82 -0
- package/dist/{styles/themes → themes}/momotaro/components/divider.css.cjs +4 -3
- package/dist/themes/momotaro/components/divider.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/divider.css.mjs → themes/momotaro/components/divider.css.js} +2 -2
- package/dist/{styles/themes → themes}/momotaro/components/helpers.css.cjs +13 -9
- package/dist/themes/momotaro/components/helpers.css.d.ts +8 -0
- package/dist/{styles/themes/momotaro/components/helpers.css.mjs → themes/momotaro/components/helpers.css.js} +10 -7
- package/dist/themes/momotaro/components/index.cjs +35 -0
- package/dist/themes/momotaro/components/index.d.ts +2 -0
- package/dist/themes/momotaro/components/index.js +35 -0
- package/dist/themes/momotaro/components/input.css.cjs +48 -0
- package/dist/themes/momotaro/components/input.css.d.ts +1 -0
- package/dist/themes/momotaro/components/input.css.js +48 -0
- package/dist/themes/momotaro/components/label.css.cjs +34 -0
- package/dist/themes/momotaro/components/label.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/label.css.mjs → themes/momotaro/components/label.css.js} +7 -7
- package/dist/themes/momotaro/components/link.css.cjs +57 -0
- package/dist/themes/momotaro/components/link.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/link.css.mjs → themes/momotaro/components/link.css.js} +27 -24
- package/dist/{styles/themes → themes}/momotaro/components/popover.css.cjs +5 -4
- package/dist/themes/momotaro/components/popover.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/popover.css.mjs → themes/momotaro/components/popover.css.js} +2 -2
- package/dist/{styles/themes → themes}/momotaro/components/progress.css.cjs +22 -18
- package/dist/themes/momotaro/components/progress.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/progress.css.mjs → themes/momotaro/components/progress.css.js} +18 -15
- package/dist/themes/momotaro/components/radio.css.cjs +65 -0
- package/dist/themes/momotaro/components/radio.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/radio.css.mjs → themes/momotaro/components/radio.css.js} +31 -27
- package/dist/themes/momotaro/components/select.css.cjs +48 -0
- package/dist/themes/momotaro/components/select.css.d.ts +1 -0
- package/dist/themes/momotaro/components/select.css.js +48 -0
- package/dist/themes/momotaro/components/slider.css.cjs +93 -0
- package/dist/themes/momotaro/components/slider.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/slider.css.mjs → themes/momotaro/components/slider.css.js} +31 -28
- package/dist/{styles/themes → themes}/momotaro/components/spinner.css.cjs +8 -7
- package/dist/themes/momotaro/components/spinner.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/spinner.css.mjs → themes/momotaro/components/spinner.css.js} +6 -6
- package/dist/themes/momotaro/components/switch.css.cjs +62 -0
- package/dist/themes/momotaro/components/switch.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/switch.css.mjs → themes/momotaro/components/switch.css.js} +31 -28
- package/dist/{styles/themes → themes}/momotaro/components/tooltip.css.cjs +7 -6
- package/dist/themes/momotaro/components/tooltip.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/tooltip.css.mjs → themes/momotaro/components/tooltip.css.js} +2 -2
- package/dist/{styles/themes → themes}/momotaro/components/transitions.cjs +1 -0
- package/dist/themes/momotaro/components/transitions.d.ts +1 -0
- package/dist/themes/momotaro/index.d.ts +1 -0
- package/dist/themes/momotaro/momotaro.css.cjs +14 -0
- package/dist/themes/momotaro/momotaro.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/momotaro.css.mjs → themes/momotaro/momotaro.css.js} +3 -3
- package/dist/{styles/themes → themes}/momotaro/tokens.css.cjs +12 -11
- package/dist/themes/momotaro/tokens.css.d.ts +2 -0
- package/dist/{styles/themes/momotaro/tokens.css.mjs → themes/momotaro/tokens.css.js} +1 -1
- package/dist/themes/momotaro.cjs +2 -2
- package/dist/themes/momotaro.js +4 -0
- package/package.json +17 -28
- package/dist/index.d.mts +0 -1
- package/dist/index.mjs +0 -451
- package/dist/momotaro.chunk.d.ts +0 -922
- package/dist/reset.d.mts +0 -2
- package/dist/reset.d.ts +0 -2
- package/dist/reset.mjs +0 -2
- package/dist/styles/components/Accessibility/VisuallyHidden/VisuallyHidden.cjs +0 -16
- package/dist/styles/components/Accessibility/VisuallyHidden/VisuallyHidden.mjs +0 -17
- package/dist/styles/components/display/Divider/Divider.cjs +0 -239
- package/dist/styles/components/display/Divider/Divider.mjs +0 -240
- package/dist/styles/components/form/Button/Button.cjs +0 -56
- package/dist/styles/components/form/Checkbox/Checkbox.cjs +0 -84
- package/dist/styles/components/form/Checkbox/Checkbox.mjs +0 -85
- package/dist/styles/components/form/Input/Input.cjs +0 -37
- package/dist/styles/components/form/Input/Input.mjs +0 -38
- package/dist/styles/components/form/Radio/Radio.cjs +0 -23
- package/dist/styles/components/form/Radio/Radio.mjs +0 -24
- package/dist/styles/components/form/Select/Select.cjs +0 -47
- package/dist/styles/components/form/Slider/Slider.cjs +0 -205
- package/dist/styles/components/form/Slider/Slider.mjs +0 -206
- package/dist/styles/components/other/BlocksProvider/BlocksProvider.cjs +0 -31
- package/dist/styles/components/overlay/Dialog/Dialog.cjs +0 -172
- package/dist/styles/components/overlay/Dialog/Dialog.mjs +0 -173
- package/dist/styles/components/typography/Heading/Heading.cjs +0 -15
- package/dist/styles/components/typography/Heading/Heading.mjs +0 -16
- package/dist/styles/components/typography/Text/Text.cjs +0 -20
- package/dist/styles/lib/css/atoms/atoms.cjs +0 -2
- package/dist/styles/lib/css/atoms/atoms.mjs +0 -1
- package/dist/styles/lib/css/atoms/index.cjs +0 -2
- package/dist/styles/lib/css/atoms/index.mjs +0 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.cjs +0 -38
- package/dist/styles/lib/theme/makeTheme.cjs +0 -12
- package/dist/styles/lib/theme/vars.css.cjs +0 -9
- package/dist/styles/themes/momotaro/components/button.css.cjs +0 -103
- package/dist/styles/themes/momotaro/components/checkbox.css.cjs +0 -59
- package/dist/styles/themes/momotaro/components/checkbox.css.mjs +0 -60
- package/dist/styles/themes/momotaro/components/dialog.css.cjs +0 -78
- package/dist/styles/themes/momotaro/components/dialog.css.mjs +0 -79
- package/dist/styles/themes/momotaro/components/index.cjs +0 -34
- package/dist/styles/themes/momotaro/components/index.mjs +0 -35
- package/dist/styles/themes/momotaro/components/input.css.cjs +0 -41
- package/dist/styles/themes/momotaro/components/input.css.mjs +0 -42
- package/dist/styles/themes/momotaro/components/label.css.cjs +0 -33
- package/dist/styles/themes/momotaro/components/link.css.cjs +0 -53
- package/dist/styles/themes/momotaro/components/radio.css.cjs +0 -60
- package/dist/styles/themes/momotaro/components/select.css.cjs +0 -44
- package/dist/styles/themes/momotaro/components/select.css.mjs +0 -45
- package/dist/styles/themes/momotaro/components/slider.css.cjs +0 -89
- package/dist/styles/themes/momotaro/components/switch.css.cjs +0 -58
- package/dist/styles/themes/momotaro/index.cjs +0 -2
- package/dist/styles/themes/momotaro/index.mjs +0 -1
- package/dist/styles/themes/momotaro/momotaro.css.cjs +0 -13
- package/dist/themes/momotaro.d.mts +0 -1
- package/dist/themes/momotaro.d.ts +0 -1
- package/dist/themes/momotaro.mjs +0 -4
- package/reset/index.d.ts +0 -1
- package/reset/package.json +0 -5
- /package/dist/{styles/lib/css/layers/layers.css.mjs → lib/css/layers/layers.css.js} +0 -0
- /package/dist/{styles/lib → lib}/css/reset/reset.css.cjs +0 -0
- /package/dist/{styles/lib/css/reset/reset.css.mjs → lib/css/reset/reset.css.js} +0 -0
- /package/dist/{styles/lib/css/utils/cssUtils.mjs → lib/css/utils/cssUtils.js} +0 -0
- /package/dist/{styles/lib/theme/makeComponentTheme.mjs → lib/theme/makeComponentTheme.js} +0 -0
- /package/dist/{styles/lib/theme/makeVanillaTheme.mjs → lib/theme/makeVanillaTheme.js} +0 -0
- /package/dist/{styles/lib/theme/tokens.mjs → lib/theme/tokens.js} +0 -0
- /package/dist/{styles/themes/momotaro/components/transitions.mjs → themes/momotaro/components/transitions.js} +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const radio: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').RadioTheme> | undefined;
|
|
@@ -1,35 +1,39 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style } from "@vanilla-extract/css";
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.
|
|
4
|
-
import { vars } from "../../../lib/theme/vars.css.
|
|
5
|
-
import { focusable } from "./helpers.css.
|
|
6
|
-
import { bounceOut } from "./transitions.
|
|
7
|
-
import { atoms } from "../../../lib/css/atoms/sprinkles.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
8
|
setFileScope("src/themes/momotaro/components/radio.css.ts", "@blockle/blocks");
|
|
9
9
|
const radio = makeComponentTheme("radio", {
|
|
10
|
-
base: style([
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
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
|
+
}
|
|
20
30
|
}
|
|
21
31
|
},
|
|
22
|
-
|
|
23
|
-
backgroundColor:
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
backgroundColor: vars.color.primary
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}, atoms({
|
|
31
|
-
backgroundColor: "primaryLight"
|
|
32
|
-
}), focusable], "radio_base"),
|
|
32
|
+
atoms({
|
|
33
|
+
backgroundColor: "primaryLight"
|
|
34
|
+
}),
|
|
35
|
+
focusable
|
|
36
|
+
]),
|
|
33
37
|
icon: style({
|
|
34
38
|
height: 12,
|
|
35
39
|
width: 12,
|
|
@@ -46,7 +50,7 @@ const radio = makeComponentTheme("radio", {
|
|
|
46
50
|
transform: "scale(1)"
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
|
-
}
|
|
53
|
+
}),
|
|
50
54
|
label: atoms({
|
|
51
55
|
display: "flex",
|
|
52
56
|
flexDirection: "row",
|
|
@@ -0,0 +1,48 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const select: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').SelectTheme> | undefined;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const slider: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').SliderTheme> | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { createVar } from "@vanilla-extract/css";
|
|
3
|
-
import { style } from "../../../lib/css/style/style.
|
|
4
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.
|
|
5
|
-
import { vars } from "../../../lib/theme/vars.css.
|
|
6
|
-
import { focusable } from "./helpers.css.
|
|
3
|
+
import { style } from "../../../lib/css/style/style.js";
|
|
4
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
5
|
+
import { vars } from "../../../lib/theme/vars.css.js";
|
|
6
|
+
import { focusable } from "./helpers.css.js";
|
|
7
7
|
setFileScope("src/themes/momotaro/components/slider.css.ts", "@blockle/blocks");
|
|
8
|
-
const trackBackground = createVar(
|
|
9
|
-
const filledTrackBackground = createVar(
|
|
10
|
-
const thumbBackground = createVar(
|
|
11
|
-
const thumbActive = createVar(
|
|
8
|
+
const trackBackground = createVar();
|
|
9
|
+
const filledTrackBackground = createVar();
|
|
10
|
+
const thumbBackground = createVar();
|
|
11
|
+
const thumbActive = createVar();
|
|
12
12
|
const slider = makeComponentTheme("slider", {
|
|
13
13
|
base: style({
|
|
14
14
|
blockSize: "20px"
|
|
@@ -21,27 +21,30 @@ const slider = makeComponentTheme("slider", {
|
|
|
21
21
|
filledTrack: style({
|
|
22
22
|
backgroundColor: filledTrackBackground
|
|
23
23
|
}),
|
|
24
|
-
thumb: style([
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
24
|
+
thumb: style([
|
|
25
|
+
{
|
|
26
|
+
backgroundColor: thumbBackground,
|
|
27
|
+
borderRadius: "50%",
|
|
28
|
+
height: "16px",
|
|
29
|
+
width: "16px",
|
|
30
|
+
boxShadow: `0 0 0 0px color-mix(in srgb, ${vars.color.primaryLight}, transparent 0%)`,
|
|
31
|
+
vars: {
|
|
32
|
+
[thumbActive]: `0 0 0 8px color-mix(in srgb, ${vars.color.primaryLight}, transparent 20%)`
|
|
33
|
+
},
|
|
34
|
+
":hover": {
|
|
35
|
+
boxShadow: thumbActive
|
|
36
|
+
},
|
|
37
|
+
":focus-visible": {
|
|
38
|
+
boxShadow: thumbActive
|
|
39
|
+
},
|
|
40
|
+
"@media": {
|
|
41
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
42
|
+
transition: "box-shadow 0.2s"
|
|
43
|
+
}
|
|
42
44
|
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
+
},
|
|
46
|
+
focusable
|
|
47
|
+
]),
|
|
45
48
|
variants: {
|
|
46
49
|
size: {
|
|
47
50
|
small: style({
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
3
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
4
|
const css = require("@vanilla-extract/css");
|
|
4
|
-
const
|
|
5
|
+
const makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
6
|
fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts", "@blockle/blocks");
|
|
6
7
|
const spinAnimation = css.keyframes({
|
|
7
8
|
"0%": {
|
|
@@ -10,8 +11,8 @@ const spinAnimation = css.keyframes({
|
|
|
10
11
|
"100%": {
|
|
11
12
|
transform: "rotate(360deg)"
|
|
12
13
|
}
|
|
13
|
-
}
|
|
14
|
-
const spinner =
|
|
14
|
+
});
|
|
15
|
+
const spinner = makeComponentTheme.makeComponentTheme("spinner", {
|
|
15
16
|
base: css.style({
|
|
16
17
|
aspectRatio: "1 / 1",
|
|
17
18
|
overflow: "hidden",
|
|
@@ -20,19 +21,19 @@ const spinner = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("spin
|
|
|
20
21
|
borderStyle: "solid",
|
|
21
22
|
borderColor: "currentColor transparent currentColor transparent",
|
|
22
23
|
animation: `${spinAnimation} 1.2s linear infinite`
|
|
23
|
-
}
|
|
24
|
+
}),
|
|
24
25
|
variants: {
|
|
25
26
|
// note: colors are handled by atoms
|
|
26
27
|
size: {
|
|
27
28
|
small: css.style({
|
|
28
29
|
width: 16
|
|
29
|
-
}
|
|
30
|
+
}),
|
|
30
31
|
medium: css.style({
|
|
31
32
|
width: 24
|
|
32
|
-
}
|
|
33
|
+
}),
|
|
33
34
|
large: css.style({
|
|
34
35
|
width: 32
|
|
35
|
-
}
|
|
36
|
+
})
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
defaultVariants: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const spinner: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').SpinnerTheme> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style, keyframes } from "@vanilla-extract/css";
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
4
|
setFileScope("src/themes/momotaro/components/spinner.css.ts", "@blockle/blocks");
|
|
5
5
|
const spinAnimation = keyframes({
|
|
6
6
|
"0%": {
|
|
@@ -9,7 +9,7 @@ const spinAnimation = keyframes({
|
|
|
9
9
|
"100%": {
|
|
10
10
|
transform: "rotate(360deg)"
|
|
11
11
|
}
|
|
12
|
-
}
|
|
12
|
+
});
|
|
13
13
|
const spinner = makeComponentTheme("spinner", {
|
|
14
14
|
base: style({
|
|
15
15
|
aspectRatio: "1 / 1",
|
|
@@ -19,19 +19,19 @@ const spinner = makeComponentTheme("spinner", {
|
|
|
19
19
|
borderStyle: "solid",
|
|
20
20
|
borderColor: "currentColor transparent currentColor transparent",
|
|
21
21
|
animation: `${spinAnimation} 1.2s linear infinite`
|
|
22
|
-
}
|
|
22
|
+
}),
|
|
23
23
|
variants: {
|
|
24
24
|
// note: colors are handled by atoms
|
|
25
25
|
size: {
|
|
26
26
|
small: style({
|
|
27
27
|
width: 16
|
|
28
|
-
}
|
|
28
|
+
}),
|
|
29
29
|
medium: style({
|
|
30
30
|
width: 24
|
|
31
|
-
}
|
|
31
|
+
}),
|
|
32
32
|
large: style({
|
|
33
33
|
width: 32
|
|
34
|
-
}
|
|
34
|
+
})
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
defaultVariants: {
|
|
@@ -0,0 +1,62 @@
|
|
|
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/switch.css.ts", "@blockle/blocks");
|
|
10
|
+
const activeScaleFactor = css.createVar();
|
|
11
|
+
const switchTheme = makeComponentTheme.makeComponentTheme("switch", {
|
|
12
|
+
base: style.style([
|
|
13
|
+
{
|
|
14
|
+
width: 52,
|
|
15
|
+
height: 32,
|
|
16
|
+
borderRadius: "xlarge",
|
|
17
|
+
backgroundColor: "textLight",
|
|
18
|
+
"@media": {
|
|
19
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
20
|
+
transition: `background-color 120ms linear, box-shadow ${vars_css.vars.transition.fast}`
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
selectors: {
|
|
24
|
+
'&[data-checked="true"]': {
|
|
25
|
+
backgroundColor: vars_css.vars.color.secondary
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
// Scale the switch when it's `:active`
|
|
29
|
+
vars: {
|
|
30
|
+
[activeScaleFactor]: "1"
|
|
31
|
+
},
|
|
32
|
+
":active": {
|
|
33
|
+
vars: {
|
|
34
|
+
[activeScaleFactor]: "0.96"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
helpers_css.focusable
|
|
39
|
+
]),
|
|
40
|
+
slider: style.style({
|
|
41
|
+
width: 24,
|
|
42
|
+
height: 24,
|
|
43
|
+
top: 4,
|
|
44
|
+
left: 4,
|
|
45
|
+
transform: `translateX(0) scale(calc(0.9 * ${activeScaleFactor}))`,
|
|
46
|
+
position: "absolute",
|
|
47
|
+
backgroundColor: "white",
|
|
48
|
+
borderRadius: "xlarge",
|
|
49
|
+
selectors: {
|
|
50
|
+
'&[data-checked="true"]': {
|
|
51
|
+
transform: `translateX(20px) scale(${activeScaleFactor})`
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"@media": {
|
|
55
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
56
|
+
transition: "transform 120ms ease-out"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
});
|
|
61
|
+
fileScope.endFileScope();
|
|
62
|
+
exports.switchTheme = switchTheme;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const switchTheme: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').SwitchTheme> | undefined;
|
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { createVar } from "@vanilla-extract/css";
|
|
3
|
-
import { style } from "../../../lib/css/style/style.
|
|
4
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.
|
|
5
|
-
import { vars } from "../../../lib/theme/vars.css.
|
|
6
|
-
import { focusable } from "./helpers.css.
|
|
3
|
+
import { style } from "../../../lib/css/style/style.js";
|
|
4
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
5
|
+
import { vars } from "../../../lib/theme/vars.css.js";
|
|
6
|
+
import { focusable } from "./helpers.css.js";
|
|
7
7
|
setFileScope("src/themes/momotaro/components/switch.css.ts", "@blockle/blocks");
|
|
8
|
-
const activeScaleFactor = createVar(
|
|
8
|
+
const activeScaleFactor = createVar();
|
|
9
9
|
const switchTheme = makeComponentTheme("switch", {
|
|
10
|
-
base: style([
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
[activeScaleFactor]: "1"
|
|
28
|
-
},
|
|
29
|
-
":active": {
|
|
10
|
+
base: style([
|
|
11
|
+
{
|
|
12
|
+
width: 52,
|
|
13
|
+
height: 32,
|
|
14
|
+
borderRadius: "xlarge",
|
|
15
|
+
backgroundColor: "textLight",
|
|
16
|
+
"@media": {
|
|
17
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
18
|
+
transition: `background-color 120ms linear, box-shadow ${vars.transition.fast}`
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
selectors: {
|
|
22
|
+
'&[data-checked="true"]': {
|
|
23
|
+
backgroundColor: vars.color.secondary
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
// Scale the switch when it's `:active`
|
|
30
27
|
vars: {
|
|
31
|
-
[activeScaleFactor]: "
|
|
28
|
+
[activeScaleFactor]: "1"
|
|
29
|
+
},
|
|
30
|
+
":active": {
|
|
31
|
+
vars: {
|
|
32
|
+
[activeScaleFactor]: "0.96"
|
|
33
|
+
}
|
|
32
34
|
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
+
},
|
|
36
|
+
focusable
|
|
37
|
+
]),
|
|
35
38
|
slider: style({
|
|
36
39
|
width: 24,
|
|
37
40
|
height: 24,
|