@doist/reactist 28.7.0 → 28.7.3
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/reactist.cjs.development.js +2093 -3829
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/avatar/avatar.js +35 -30
- package/es/avatar/avatar.js.map +1 -1
- package/es/avatar/utils.js +19 -22
- package/es/avatar/utils.js.map +1 -1
- package/es/badge/badge.js +5 -16
- package/es/badge/badge.js.map +1 -1
- package/es/banner/banner.js +39 -115
- package/es/banner/banner.js.map +1 -1
- package/es/banner/banner.module.css.js +1 -1
- package/es/base-field/base-field.js +80 -162
- package/es/base-field/base-field.js.map +1 -1
- package/es/base-field/base-field.module.css.js +1 -1
- package/es/box/box.js +61 -139
- package/es/box/box.js.map +1 -1
- package/es/button/button.js +42 -95
- package/es/button/button.js.map +1 -1
- package/es/checkbox-field/checkbox-field.js +46 -75
- package/es/checkbox-field/checkbox-field.js.map +1 -1
- package/es/checkbox-field/checkbox-field.module.css.js +1 -1
- package/es/checkbox-field/checkbox-icon.js +28 -55
- package/es/checkbox-field/checkbox-icon.js.map +1 -1
- package/es/checkbox-field/use-fork-ref.js +29 -25
- package/es/checkbox-field/use-fork-ref.js.map +1 -1
- package/es/columns/columns.js +22 -46
- package/es/columns/columns.js.map +1 -1
- package/es/columns/columns.module.css.js +1 -1
- package/es/components/color-picker/color-picker.js +45 -66
- package/es/components/color-picker/color-picker.js.map +1 -1
- package/es/components/deprecated-button/deprecated-button.js +11 -34
- package/es/components/deprecated-button/deprecated-button.js.map +1 -1
- package/es/components/deprecated-dropdown/dropdown.js +136 -197
- package/es/components/deprecated-dropdown/dropdown.js.map +1 -1
- package/es/components/deprecated-input/input.js +6 -10
- package/es/components/deprecated-input/input.js.map +1 -1
- package/es/components/deprecated-select/select.js +7 -31
- package/es/components/deprecated-select/select.js.map +1 -1
- package/es/components/key-capturer/key-capturer.js +130 -171
- package/es/components/key-capturer/key-capturer.js.map +1 -1
- package/es/components/keyboard-shortcut/keyboard-shortcut.js +48 -79
- package/es/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/es/components/progress-bar/progress-bar.js +8 -20
- package/es/components/progress-bar/progress-bar.js.map +1 -1
- package/es/components/time/time-utils.js +52 -64
- package/es/components/time/time-utils.js.map +1 -1
- package/es/components/time/time.js +90 -114
- package/es/components/time/time.js.map +1 -1
- package/es/divider/divider.js +4 -13
- package/es/divider/divider.js.map +1 -1
- package/es/heading/heading.js +19 -28
- package/es/heading/heading.js.map +1 -1
- package/es/hidden/hidden.js +36 -45
- package/es/hidden/hidden.js.map +1 -1
- package/es/hidden-visually/hidden-visually.js +7 -13
- package/es/hidden-visually/hidden-visually.js.map +1 -1
- package/es/icons/alert-icon.js +18 -64
- package/es/icons/alert-icon.js.map +1 -1
- package/es/icons/banner-icon.js +25 -97
- package/es/icons/banner-icon.js.map +1 -1
- package/es/icons/close-icon.js +3 -9
- package/es/icons/close-icon.js.map +1 -1
- package/es/icons/password-hidden-icon.js +6 -23
- package/es/icons/password-hidden-icon.js.map +1 -1
- package/es/icons/password-visible-icon.js +5 -16
- package/es/icons/password-visible-icon.js.map +1 -1
- package/es/inline/inline.js +8 -23
- package/es/inline/inline.js.map +1 -1
- package/es/loading/loading.js +17 -30
- package/es/loading/loading.js.map +1 -1
- package/es/menu/menu.js +127 -260
- package/es/menu/menu.js.map +1 -1
- package/es/modal/modal.js +143 -272
- package/es/modal/modal.js.map +1 -1
- package/es/modal/modal.module.css.js +1 -1
- package/es/notice/notice.js +8 -21
- package/es/notice/notice.js.map +1 -1
- package/es/notice/notice.module.css.js +1 -1
- package/es/password-field/password-field.js +10 -24
- package/es/password-field/password-field.js.map +1 -1
- package/es/prose/prose.js +10 -15
- package/es/prose/prose.js.map +1 -1
- package/es/select-field/select-field.js +14 -51
- package/es/select-field/select-field.js.map +1 -1
- package/es/spinner/spinner.js +6 -20
- package/es/spinner/spinner.js.map +1 -1
- package/es/stack/stack.js +15 -27
- package/es/stack/stack.js.map +1 -1
- package/es/switch-field/switch-field.js +38 -75
- package/es/switch-field/switch-field.js.map +1 -1
- package/es/switch-field/switch-field.module.css.js +1 -1
- package/es/tabs/tabs.js +120 -211
- package/es/tabs/tabs.js.map +1 -1
- package/es/text/text.js +16 -25
- package/es/text/text.js.map +1 -1
- package/es/text-area/text-area.js +54 -111
- package/es/text-area/text-area.js.map +1 -1
- package/es/text-field/text-field.js +30 -84
- package/es/text-field/text-field.js.map +1 -1
- package/es/text-link/text-link.js +9 -20
- package/es/text-link/text-link.js.map +1 -1
- package/es/text-link/text-link.module.css.js +1 -1
- package/es/toast/static-toast.js +35 -70
- package/es/toast/static-toast.js.map +1 -1
- package/es/toast/toast-animation.js +121 -159
- package/es/toast/toast-animation.js.map +1 -1
- package/es/toast/use-toasts.js +134 -201
- package/es/toast/use-toasts.js.map +1 -1
- package/es/tooltip/tooltip.js +31 -69
- package/es/tooltip/tooltip.js.map +1 -1
- package/es/utils/common-helpers.js +9 -13
- package/es/utils/common-helpers.js.map +1 -1
- package/es/utils/polymorphism.js +7 -8
- package/es/utils/polymorphism.js.map +1 -1
- package/es/utils/responsive-props.js +57 -66
- package/es/utils/responsive-props.js.map +1 -1
- package/lib/avatar/avatar.d.ts +21 -21
- package/lib/avatar/avatar.js +69 -1
- package/lib/avatar/avatar.js.map +1 -1
- package/lib/avatar/avatar.module.css.js +7 -1
- package/lib/avatar/avatar.module.css.js.map +1 -1
- package/lib/avatar/index.d.ts +1 -1
- package/lib/avatar/utils.d.ts +3 -3
- package/lib/avatar/utils.js +30 -1
- package/lib/avatar/utils.js.map +1 -1
- package/lib/badge/badge.d.ts +15 -15
- package/lib/badge/badge.js +36 -1
- package/lib/badge/badge.js.map +1 -1
- package/lib/badge/badge.module.css.js +7 -1
- package/lib/badge/badge.module.css.js.map +1 -1
- package/lib/badge/index.d.ts +1 -1
- package/lib/banner/banner.d.ts +87 -87
- package/lib/banner/banner.js +79 -1
- package/lib/banner/banner.js.map +1 -1
- package/lib/banner/banner.module.css.js +7 -1
- package/lib/banner/banner.module.css.js.map +1 -1
- package/lib/banner/index.d.ts +2 -2
- package/lib/banner/story-promo-image.d.ts +4 -4
- package/lib/base-field/base-field.d.ts +139 -139
- package/lib/base-field/base-field.js +127 -1
- package/lib/base-field/base-field.js.map +1 -1
- package/lib/base-field/base-field.module.css.js +7 -1
- package/lib/base-field/base-field.module.css.js.map +1 -1
- package/lib/base-field/index.d.ts +1 -1
- package/lib/box/box.d.ts +73 -73
- package/lib/box/box.js +103 -1
- package/lib/box/box.js.map +1 -1
- package/lib/box/box.module.css.js +7 -1
- package/lib/box/box.module.css.js.map +1 -1
- package/lib/box/gap.module.css.js +7 -1
- package/lib/box/gap.module.css.js.map +1 -1
- package/lib/box/index.d.ts +1 -1
- package/lib/box/margin.module.css.js +7 -1
- package/lib/box/margin.module.css.js.map +1 -1
- package/lib/box/padding.module.css.js +7 -1
- package/lib/box/padding.module.css.js.map +1 -1
- package/lib/box/width.module.css.js +7 -1
- package/lib/box/width.module.css.js.map +1 -1
- package/lib/button/button.d.ts +127 -127
- package/lib/button/button.js +86 -1
- package/lib/button/button.js.map +1 -1
- package/lib/button/button.module.css.js +7 -1
- package/lib/button/button.module.css.js.map +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/checkbox-field/checkbox-field.d.ts +40 -40
- package/lib/checkbox-field/checkbox-field.js +82 -1
- package/lib/checkbox-field/checkbox-field.js.map +1 -1
- package/lib/checkbox-field/checkbox-field.module.css.js +7 -1
- package/lib/checkbox-field/checkbox-field.module.css.js.map +1 -1
- package/lib/checkbox-field/checkbox-icon.d.ts +8 -8
- package/lib/checkbox-field/checkbox-icon.js +59 -1
- package/lib/checkbox-field/checkbox-icon.js.map +1 -1
- package/lib/checkbox-field/index.d.ts +1 -1
- package/lib/checkbox-field/use-fork-ref.d.ts +11 -11
- package/lib/checkbox-field/use-fork-ref.js +42 -1
- package/lib/checkbox-field/use-fork-ref.js.map +1 -1
- package/lib/columns/columns.d.ts +20 -20
- package/lib/columns/columns.js +57 -1
- package/lib/columns/columns.js.map +1 -1
- package/lib/columns/columns.module.css.js +7 -1
- package/lib/columns/columns.module.css.js.map +1 -1
- package/lib/columns/index.d.ts +1 -1
- package/lib/components/color-picker/color-picker.d.ts +29 -29
- package/lib/components/color-picker/color-picker.js +86 -1
- package/lib/components/color-picker/color-picker.js.map +1 -1
- package/lib/components/color-picker/index.d.ts +3 -3
- package/lib/components/color-picker/index.js +11 -1
- package/lib/components/color-picker/index.js.map +1 -1
- package/lib/components/deprecated-button/deprecated-button.d.ts +54 -54
- package/lib/components/deprecated-button/deprecated-button.js +49 -1
- package/lib/components/deprecated-button/deprecated-button.js.map +1 -1
- package/lib/components/deprecated-button/index.d.ts +4 -4
- package/lib/components/deprecated-button/index.js +9 -1
- package/lib/components/deprecated-button/index.js.map +1 -1
- package/lib/components/deprecated-dropdown/dropdown.d.ts +55 -55
- package/lib/components/deprecated-dropdown/dropdown.js +182 -1
- package/lib/components/deprecated-dropdown/dropdown.js.map +1 -1
- package/lib/components/deprecated-dropdown/index.d.ts +2 -2
- package/lib/components/deprecated-dropdown/index.js +9 -1
- package/lib/components/deprecated-dropdown/index.js.map +1 -1
- package/lib/components/deprecated-input/index.d.ts +2 -2
- package/lib/components/deprecated-input/index.js +9 -1
- package/lib/components/deprecated-input/index.js.map +1 -1
- package/lib/components/deprecated-input/input.d.ts +10 -10
- package/lib/components/deprecated-input/input.js +41 -1
- package/lib/components/deprecated-input/input.js.map +1 -1
- package/lib/components/deprecated-select/index.d.ts +2 -2
- package/lib/components/deprecated-select/index.js +9 -1
- package/lib/components/deprecated-select/index.js.map +1 -1
- package/lib/components/deprecated-select/select.d.ts +33 -33
- package/lib/components/deprecated-select/select.js +43 -1
- package/lib/components/deprecated-select/select.js.map +1 -1
- package/lib/components/icons/CloseIcon.svg.d.ts +3 -3
- package/lib/components/icons/ThinQuestionMarkIcon.svg.d.ts +3 -3
- package/lib/components/icons/ThreeDotsIcon.svg.d.ts +12 -12
- package/lib/components/key-capturer/index.d.ts +3 -3
- package/lib/components/key-capturer/index.js +11 -1
- package/lib/components/key-capturer/index.js.map +1 -1
- package/lib/components/key-capturer/key-capturer.d.ts +40 -40
- package/lib/components/key-capturer/key-capturer.js +171 -1
- package/lib/components/key-capturer/key-capturer.js.map +1 -1
- package/lib/components/keyboard-shortcut/index.d.ts +2 -2
- package/lib/components/keyboard-shortcut/index.js +9 -1
- package/lib/components/keyboard-shortcut/index.js.map +1 -1
- package/lib/components/keyboard-shortcut/keyboard-shortcut.d.ts +44 -44
- package/lib/components/keyboard-shortcut/keyboard-shortcut.js +97 -1
- package/lib/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/lib/components/progress-bar/index.d.ts +2 -2
- package/lib/components/progress-bar/index.js +9 -1
- package/lib/components/progress-bar/index.js.map +1 -1
- package/lib/components/progress-bar/progress-bar.d.ts +14 -14
- package/lib/components/progress-bar/progress-bar.js +44 -1
- package/lib/components/progress-bar/progress-bar.js.map +1 -1
- package/lib/components/progress-bar/progress-bar.module.css.js +7 -1
- package/lib/components/progress-bar/progress-bar.module.css.js.map +1 -1
- package/lib/components/time/index.d.ts +2 -2
- package/lib/components/time/index.js +9 -1
- package/lib/components/time/index.js.map +1 -1
- package/lib/components/time/time-utils.d.ts +19 -19
- package/lib/components/time/time-utils.js +69 -1
- package/lib/components/time/time-utils.js.map +1 -1
- package/lib/components/time/time.d.ts +39 -39
- package/lib/components/time/time.js +124 -1
- package/lib/components/time/time.js.map +1 -1
- package/lib/divider/divider.d.ts +8 -8
- package/lib/divider/divider.js +36 -1
- package/lib/divider/divider.js.map +1 -1
- package/lib/divider/divider.module.css.js +7 -1
- package/lib/divider/divider.module.css.js.map +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/heading/heading.d.ts +112 -112
- package/lib/heading/heading.js +51 -1
- package/lib/heading/heading.js.map +1 -1
- package/lib/heading/heading.module.css.js +7 -1
- package/lib/heading/heading.module.css.js.map +1 -1
- package/lib/heading/index.d.ts +1 -1
- package/lib/hidden/hidden.d.ts +49 -49
- package/lib/hidden/hidden.js +70 -1
- package/lib/hidden/hidden.js.map +1 -1
- package/lib/hidden/hidden.module.css.js +7 -1
- package/lib/hidden/hidden.module.css.js.map +1 -1
- package/lib/hidden/index.d.ts +1 -1
- package/lib/hidden-visually/hidden-visually.d.ts +11 -11
- package/lib/hidden-visually/hidden-visually.js +40 -1
- package/lib/hidden-visually/hidden-visually.js.map +1 -1
- package/lib/hidden-visually/hidden-visually.module.css.js +7 -1
- package/lib/hidden-visually/hidden-visually.module.css.js.map +1 -1
- package/lib/hidden-visually/index.d.ts +1 -1
- package/lib/hooks/use-previous/index.d.ts +1 -1
- package/lib/hooks/use-previous/use-previous.d.ts +15 -15
- package/lib/icons/alert-icon.d.ts +6 -6
- package/lib/icons/alert-icon.js +56 -1
- package/lib/icons/alert-icon.js.map +1 -1
- package/lib/icons/banner-icon.d.ts +6 -6
- package/lib/icons/banner-icon.js +68 -1
- package/lib/icons/banner-icon.js.map +1 -1
- package/lib/icons/banner-icon.module.css.js +7 -1
- package/lib/icons/banner-icon.module.css.js.map +1 -1
- package/lib/icons/close-icon.d.ts +3 -3
- package/lib/icons/close-icon.js +33 -1
- package/lib/icons/close-icon.js.map +1 -1
- package/lib/icons/password-hidden-icon.d.ts +3 -3
- package/lib/icons/password-hidden-icon.js +36 -1
- package/lib/icons/password-hidden-icon.js.map +1 -1
- package/lib/icons/password-visible-icon.d.ts +3 -3
- package/lib/icons/password-visible-icon.js +35 -1
- package/lib/icons/password-visible-icon.js.map +1 -1
- package/lib/index.d.ts +38 -38
- package/lib/index.js +106 -1
- package/lib/index.js.map +1 -1
- package/lib/inline/index.d.ts +1 -1
- package/lib/inline/inline.d.ts +12 -12
- package/lib/inline/inline.js +40 -1
- package/lib/inline/inline.js.map +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/loading/loading.d.ts +26 -26
- package/lib/loading/loading.js +49 -1
- package/lib/loading/loading.js.map +1 -1
- package/lib/menu/index.d.ts +2 -2
- package/lib/menu/menu.d.ts +128 -128
- package/lib/menu/menu.js +179 -1
- package/lib/menu/menu.js.map +1 -1
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/modal-stories-components.d.ts +47 -47
- package/lib/modal/modal.d.ts +185 -185
- package/lib/modal/modal.js +209 -1
- package/lib/modal/modal.js.map +1 -1
- package/lib/modal/modal.module.css.js +7 -1
- package/lib/modal/modal.module.css.js.map +1 -1
- package/lib/notice/index.d.ts +1 -1
- package/lib/notice/notice.d.ts +10 -10
- package/lib/notice/notice.js +42 -1
- package/lib/notice/notice.js.map +1 -1
- package/lib/notice/notice.module.css.js +7 -1
- package/lib/notice/notice.module.css.js.map +1 -1
- package/lib/password-field/index.d.ts +1 -1
- package/lib/password-field/password-field.d.ts +10 -10
- package/lib/password-field/password-field.js +43 -1
- package/lib/password-field/password-field.js.map +1 -1
- package/lib/prose/index.d.ts +2 -2
- package/lib/prose/prose-example.d.ts +1 -1
- package/lib/prose/prose.d.ts +44 -44
- package/lib/prose/prose.js +42 -1
- package/lib/prose/prose.js.map +1 -1
- package/lib/prose/prose.module.css.js +7 -1
- package/lib/prose/prose.module.css.js.map +1 -1
- package/lib/select-field/index.d.ts +1 -1
- package/lib/select-field/select-field.d.ts +7 -7
- package/lib/select-field/select-field.js +48 -1
- package/lib/select-field/select-field.js.map +1 -1
- package/lib/select-field/select-field.module.css.js +7 -1
- package/lib/select-field/select-field.module.css.js.map +1 -1
- package/lib/spinner/index.d.ts +1 -1
- package/lib/spinner/spinner.d.ts +5 -5
- package/lib/spinner/spinner.js +36 -1
- package/lib/spinner/spinner.js.map +1 -1
- package/lib/spinner/spinner.module.css.js +7 -1
- package/lib/spinner/spinner.module.css.js.map +1 -1
- package/lib/stack/index.d.ts +1 -1
- package/lib/stack/stack.d.ts +15 -15
- package/lib/stack/stack.js +52 -1
- package/lib/stack/stack.js.map +1 -1
- package/lib/switch-field/index.d.ts +1 -1
- package/lib/switch-field/switch-field.d.ts +19 -19
- package/lib/switch-field/switch-field.js +74 -1
- package/lib/switch-field/switch-field.js.map +1 -1
- package/lib/switch-field/switch-field.module.css.js +7 -1
- package/lib/switch-field/switch-field.module.css.js.map +1 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/tabs.d.ts +125 -125
- package/lib/tabs/tabs.js +177 -1
- package/lib/tabs/tabs.js.map +1 -1
- package/lib/tabs/tabs.module.css.js +7 -1
- package/lib/tabs/tabs.module.css.js.map +1 -1
- package/lib/text/index.d.ts +1 -1
- package/lib/text/text.d.ts +47 -47
- package/lib/text/text.js +49 -1
- package/lib/text/text.js.map +1 -1
- package/lib/text/text.module.css.js +7 -1
- package/lib/text/text.module.css.js.map +1 -1
- package/lib/text-area/index.d.ts +1 -1
- package/lib/text-area/text-area.d.ts +39 -39
- package/lib/text-area/text-area.js +92 -1
- package/lib/text-area/text-area.js.map +1 -1
- package/lib/text-area/text-area.module.css.js +7 -1
- package/lib/text-area/text-area.module.css.js.map +1 -1
- package/lib/text-field/index.d.ts +1 -1
- package/lib/text-field/text-field.d.ts +18 -18
- package/lib/text-field/text-field.js +63 -1
- package/lib/text-field/text-field.js.map +1 -1
- package/lib/text-field/text-field.module.css.js +7 -1
- package/lib/text-field/text-field.module.css.js.map +1 -1
- package/lib/text-link/index.d.ts +1 -1
- package/lib/text-link/text-link.d.ts +9 -9
- package/lib/text-link/text-link.js +41 -1
- package/lib/text-link/text-link.js.map +1 -1
- package/lib/text-link/text-link.module.css.js +7 -1
- package/lib/text-link/text-link.module.css.js.map +1 -1
- package/lib/toast/index.d.ts +4 -4
- package/lib/toast/static-toast.d.ts +63 -63
- package/lib/toast/static-toast.js +59 -1
- package/lib/toast/static-toast.js.map +1 -1
- package/lib/toast/toast-animation.d.ts +50 -50
- package/lib/toast/toast-animation.js +141 -1
- package/lib/toast/toast-animation.js.map +1 -1
- package/lib/toast/toast.module.css.js +7 -1
- package/lib/toast/toast.module.css.js.map +1 -1
- package/lib/toast/use-toasts.d.ts +132 -132
- package/lib/toast/use-toasts.js +166 -1
- package/lib/toast/use-toasts.js.map +1 -1
- package/lib/tooltip/index.d.ts +2 -2
- package/lib/tooltip/tooltip.d.ts +72 -72
- package/lib/tooltip/tooltip.js +67 -1
- package/lib/tooltip/tooltip.js.map +1 -1
- package/lib/tooltip/tooltip.module.css.js +7 -1
- package/lib/tooltip/tooltip.module.css.js.map +1 -1
- package/lib/utils/common-helpers.d.ts +2 -2
- package/lib/utils/common-helpers.js +44 -1
- package/lib/utils/common-helpers.js.map +1 -1
- package/lib/utils/common-types.d.ts +42 -42
- package/lib/utils/polymorphism.d.ts +135 -135
- package/lib/utils/polymorphism.js +39 -1
- package/lib/utils/polymorphism.js.map +1 -1
- package/lib/utils/responsive-props.d.ts +44 -44
- package/lib/utils/responsive-props.js +70 -1
- package/lib/utils/responsive-props.js.map +1 -1
- package/lib/utils/storybook-helper.d.ts +55 -0
- package/lib/utils/test-helpers.d.ts +22 -22
- package/package.json +16 -23
- package/styles/avatar.css +3 -3
- package/styles/avatar.module.css.css +1 -1
- package/styles/badge.css +3 -3
- package/styles/badge.module.css.css +1 -1
- package/styles/banner.css +7 -7
- package/styles/banner.module.css.css +1 -1
- package/styles/base-field.css +5 -5
- package/styles/base-field.module.css.css +1 -1
- package/styles/box.css +2 -2
- package/styles/box.module.css.css +1 -1
- package/styles/button.css +5 -5
- package/styles/button.module.css.css +1 -1
- package/styles/checkbox-field.css +4 -4
- package/styles/checkbox-field.module.css.css +1 -1
- package/styles/columns.css +2 -2
- package/styles/divider.css +2 -2
- package/styles/heading.css +3 -3
- package/styles/heading.module.css.css +1 -1
- package/styles/hidden-visually.css +3 -3
- package/styles/hidden-visually.module.css.css +1 -1
- package/styles/hidden.css +2 -2
- package/styles/index.css +5 -5
- package/styles/loading.css +3 -3
- package/styles/menu.css +1 -1
- package/styles/modal.css +6 -6
- package/styles/modal.module.css.css +1 -1
- package/styles/notice.css +2 -2
- package/styles/password-field.css +8 -8
- package/styles/progress-bar.module.css.css +1 -1
- package/styles/prose.css +3 -3
- package/styles/prose.module.css.css +1 -1
- package/styles/reactist.css +31 -31
- package/styles/select-field.css +6 -6
- package/styles/select-field.module.css.css +1 -1
- package/styles/spinner.css +1 -1
- package/styles/static-toast.css +7 -7
- package/styles/switch-field.css +7 -7
- package/styles/switch-field.module.css.css +1 -1
- package/styles/tabs.css +3 -3
- package/styles/tabs.module.css.css +1 -1
- package/styles/text-area.css +6 -6
- package/styles/text-area.module.css.css +1 -1
- package/styles/text-field.css +6 -6
- package/styles/text-field.module.css.css +1 -1
- package/styles/text-link.css +3 -3
- package/styles/text-link.module.css.css +1 -1
- package/styles/text.css +3 -3
- package/styles/text.module.css.css +1 -1
- package/styles/toast.module.css.css +1 -1
- package/styles/tooltip.css +3 -3
- package/styles/tooltip.module.css.css +1 -1
- package/styles/use-toasts.css +7 -7
- package/styles/width.module.css.css +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +0 -91
- package/es/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
- package/lib/_virtual/_rollupPluginBabelHelpers.js +0 -2
- package/lib/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
package/lib/spinner/spinner.js
CHANGED
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var spinner_module = require('./spinner.module.css.js');
|
|
7
|
+
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n["default"] = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
+
|
|
28
|
+
function Spinner(_a) {
|
|
29
|
+
var _b = _a.size, size = _b === void 0 ? 18 : _b;
|
|
30
|
+
return (React__namespace.createElement("svg", { "aria-hidden": true, width: size, height: size, viewBox: "0 0 24 24", className: spinner_module["default"].svg, "data-chromatic": "ignore" },
|
|
31
|
+
React__namespace.createElement("g", { fill: "none", fillRule: "nonzero" },
|
|
32
|
+
React__namespace.createElement("path", { className: spinner_module["default"].tint, d: "M17.945 3.958A9.955 9.955 0 0 0 12 2c-2.19 0-4.217.705-5.865 1.9L5.131 2.16A11.945 11.945 0 0 1 12 0c2.59 0 4.99.82 6.95 2.217l-1.005 1.741z" }),
|
|
33
|
+
React__namespace.createElement("path", { className: spinner_module["default"].fill, d: "M5.13 2.16L6.136 3.9A9.987 9.987 0 0 0 2 12c0 5.523 4.477 10 10 10s10-4.477 10-10a9.986 9.986 0 0 0-4.055-8.042l1.006-1.741A11.985 11.985 0 0 1 24 12c0 6.627-5.373 12-12 12S0 18.627 0 12c0-4.073 2.029-7.671 5.13-9.84z" }))));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.Spinner = Spinner;
|
|
2
37
|
//# sourceMappingURL=spinner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.js","sources":["../../src/spinner/spinner.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"spinner.js","sources":["../../src/spinner/spinner.tsx"],"sourcesContent":[null],"names":["React","styles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,SAAS,OAAO,CAAC,EAAgC,EAAA;AAA9B,IAAA,IAAA,EAAA,GAAA,EAAA,CAAA,IAAS,EAAT,IAAI,GAAG,EAAA,KAAA,KAAA,CAAA,GAAA,EAAE,GAAA,EAAA,CAAA;IACxB,QACIA,6DAEI,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,OAAO,EAAC,WAAW,EACnB,SAAS,EAAEC,yBAAM,CAAC,GAAG,oBACN,QAAQ,EAAA;AAEvB,QAAAD,gBAAA,CAAA,aAAA,CAAA,GAAA,EAAA,EAAG,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,SAAS,EAAA;YAC7BA,gBACI,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAEC,yBAAM,CAAC,IAAI,EACtB,CAAC,EAAC,8IAA8I,EAClJ,CAAA;AACF,YAAAD,gBAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EACI,SAAS,EAAEC,yBAAM,CAAC,IAAI,EACtB,CAAC,EAAC,2NAA2N,EAAA,CAC/N,CACF,CACF,EACT;AACL;;;;"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var modules_c7f5018f = {"svg":"_51539197","spinner":"_54fbe2b3","tint":"a0c466ed","fill":"_745b73d3"};
|
|
6
|
+
|
|
7
|
+
exports["default"] = modules_c7f5018f;
|
|
2
8
|
//# sourceMappingURL=spinner.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"spinner.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/lib/stack/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './stack';
|
|
1
|
+
export * from './stack';
|
package/lib/stack/stack.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { ResponsiveProp } from '../utils/responsive-props';
|
|
2
|
-
import type { DividerWeight, Space } from '../utils/common-types';
|
|
3
|
-
import type { ReusableBoxProps } from '../box';
|
|
4
|
-
type Align = 'start' | 'center' | 'end';
|
|
5
|
-
interface StackProps extends ReusableBoxProps {
|
|
6
|
-
/** Space between items */
|
|
7
|
-
space?: ResponsiveProp<Space>;
|
|
8
|
-
/** Align items horizontally */
|
|
9
|
-
align?: ResponsiveProp<Align>;
|
|
10
|
-
/** The weight of the dividers to add. Defaults to 'none', which means no dividers are added */
|
|
11
|
-
dividers?: DividerWeight;
|
|
12
|
-
}
|
|
13
|
-
declare const Stack: import("../utils/polymorphism").PolymorphicComponent<"div", StackProps, "obfuscateClassName">;
|
|
14
|
-
export type { StackProps };
|
|
15
|
-
export { Stack };
|
|
1
|
+
import type { ResponsiveProp } from '../utils/responsive-props';
|
|
2
|
+
import type { DividerWeight, Space } from '../utils/common-types';
|
|
3
|
+
import type { ReusableBoxProps } from '../box';
|
|
4
|
+
type Align = 'start' | 'center' | 'end';
|
|
5
|
+
interface StackProps extends ReusableBoxProps {
|
|
6
|
+
/** Space between items */
|
|
7
|
+
space?: ResponsiveProp<Space>;
|
|
8
|
+
/** Align items horizontally */
|
|
9
|
+
align?: ResponsiveProp<Align>;
|
|
10
|
+
/** The weight of the dividers to add. Defaults to 'none', which means no dividers are added */
|
|
11
|
+
dividers?: DividerWeight;
|
|
12
|
+
}
|
|
13
|
+
declare const Stack: import("../utils/polymorphism").PolymorphicComponent<"div", StackProps, "obfuscateClassName">;
|
|
14
|
+
export type { StackProps };
|
|
15
|
+
export { Stack };
|
package/lib/stack/stack.js
CHANGED
|
@@ -1,2 +1,53 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var flattenChildren = require('react-keyed-flatten-children');
|
|
8
|
+
var polymorphism = require('../utils/polymorphism.js');
|
|
9
|
+
var responsiveProps = require('../utils/responsive-props.js');
|
|
10
|
+
var box = require('../box/box.js');
|
|
11
|
+
var divider = require('../divider/divider.js');
|
|
12
|
+
|
|
13
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
|
+
|
|
15
|
+
function _interopNamespace(e) {
|
|
16
|
+
if (e && e.__esModule) return e;
|
|
17
|
+
var n = Object.create(null);
|
|
18
|
+
if (e) {
|
|
19
|
+
Object.keys(e).forEach(function (k) {
|
|
20
|
+
if (k !== 'default') {
|
|
21
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
22
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return e[k]; }
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
n["default"] = e;
|
|
30
|
+
return Object.freeze(n);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
34
|
+
var flattenChildren__default = /*#__PURE__*/_interopDefaultLegacy(flattenChildren);
|
|
35
|
+
|
|
36
|
+
var Stack = polymorphism.polymorphicComponent(function Stack(_a, ref) {
|
|
37
|
+
var as = _a.as, space = _a.space, align = _a.align, _b = _a.dividers, dividers = _b === void 0 ? 'none' : _b, _c = _a.width, width = _c === void 0 ? 'full' : _c, children = _a.children, exceptionallySetClassName = _a.exceptionallySetClassName, props = tslib.__rest(_a, ["as", "space", "align", "dividers", "width", "children", "exceptionallySetClassName"]);
|
|
38
|
+
var alignItems = align === undefined
|
|
39
|
+
? undefined
|
|
40
|
+
: responsiveProps.mapResponsiveProp(align, function (align) {
|
|
41
|
+
return align === 'start' ? 'flexStart' : align === 'end' ? 'flexEnd' : 'center';
|
|
42
|
+
});
|
|
43
|
+
return (React__namespace.createElement(box.Box, tslib.__assign({}, props, { display: "flex", flexDirection: "column", width: width, alignItems: alignItems, gap: space, as: as, className: exceptionallySetClassName, ref: ref }), dividers !== 'none'
|
|
44
|
+
? React__namespace.Children.map(flattenChildren__default["default"](children), function (child, index) {
|
|
45
|
+
return index > 0 ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
46
|
+
React__namespace.createElement(divider.Divider, { weight: dividers }),
|
|
47
|
+
child)) : (child);
|
|
48
|
+
})
|
|
49
|
+
: children));
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
exports.Stack = Stack;
|
|
2
53
|
//# sourceMappingURL=stack.js.map
|
package/lib/stack/stack.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.js","sources":["../../src/stack/stack.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"stack.js","sources":["../../src/stack/stack.tsx"],"sourcesContent":[null],"names":["polymorphicComponent","__rest","mapResponsiveProp","React","Box","flattenChildren","Divider"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBM,IAAA,KAAK,GAAGA,iCAAoB,CAAoB,SAAS,KAAK,CAChE,EASC,EACD,GAAG,EAAA;AATC,IAAA,IAAA,EAAE,GAAA,EAAA,CAAA,EAAA,EACF,KAAK,WAAA,EACL,KAAK,GAAA,EAAA,CAAA,KAAA,EACL,EAAiB,GAAA,EAAA,CAAA,QAAA,EAAjB,QAAQ,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,MAAM,GAAA,EAAA,EACjB,EAAc,GAAA,EAAA,CAAA,KAAA,EAAd,KAAK,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,MAAM,GAAA,EAAA,EACd,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,yBAAyB,GAAA,EAAA,CAAA,yBAAA,EACtB,KAAK,GAAAC,YAAA,CAAA,EAAA,EARZ,sFASC,CADW,CAAA;AAIZ,IAAA,IAAM,UAAU,GACZ,KAAK,KAAK,SAAS;AACf,UAAE,SAAS;AACX,UAAEC,iCAAiB,CAAC,KAAK,EAAE,UAAC,KAAK,EAAA;YAC3B,OAAA,KAAK,KAAK,OAAO,GAAG,WAAW,GAAG,KAAK,KAAK,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAA;AAAxE,SAAwE,CAC3E,CAAA;AAEX,IAAA,QACIC,gBAAC,CAAA,aAAA,CAAAC,OAAG,qBACI,KAAK,EAAA,EACT,OAAO,EAAC,MAAM,EACd,aAAa,EAAC,QAAQ,EACtB,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,KAAK,EACV,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,yBAAyB,EACpC,GAAG,EAAE,GAAG,EAEP,CAAA,EAAA,QAAQ,KAAK,MAAM;AAChB,UAAED,gBAAK,CAAC,QAAQ,CAAC,GAAG,CAACE,mCAAe,CAAC,QAAQ,CAAC,EAAE,UAAC,KAAK,EAAE,KAAK,EAAA;AACvD,YAAA,OAAA,KAAK,GAAG,CAAC,IACLF,gBAAA,CAAA,aAAA,CAAAA,gBAAA,CAAA,QAAA,EAAA,IAAA;AACI,gBAAAA,gBAAA,CAAA,aAAA,CAACG,eAAO,EAAA,EAAC,MAAM,EAAE,QAAQ,EAAI,CAAA;AAC5B,gBAAA,KAAK,CACP,KAEH,KAAK,CACR,CAAA;AAPD,SAOC,CACJ;AACH,UAAE,QAAQ,CACZ,EACT;AACL,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './switch-field';
|
|
1
|
+
export * from './switch-field';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FieldComponentProps } from '../base-field';
|
|
3
|
-
interface SwitchFieldProps extends Omit<FieldComponentProps<HTMLInputElement>, 'type' | 'auxiliaryLabel' | 'maxWidth' | 'aria-describedby' | 'aria-label' | 'aria-labelledby'> {
|
|
4
|
-
/**
|
|
5
|
-
* Identifies the element (or elements) that describes the switch for assistive technologies.
|
|
6
|
-
*/
|
|
7
|
-
'aria-describedby'?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Defines a string value that labels the current switch for assistive technologies.
|
|
10
|
-
*/
|
|
11
|
-
'aria-label'?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Identifies the element (or elements) that labels the current switch for assistive technologies.
|
|
14
|
-
*/
|
|
15
|
-
'aria-labelledby'?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const SwitchField: React.ForwardRefExoticComponent<Omit<SwitchFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
18
|
-
export { SwitchField };
|
|
19
|
-
export type { SwitchFieldProps };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FieldComponentProps } from '../base-field';
|
|
3
|
+
interface SwitchFieldProps extends Omit<FieldComponentProps<HTMLInputElement>, 'type' | 'auxiliaryLabel' | 'maxWidth' | 'aria-describedby' | 'aria-label' | 'aria-labelledby'> {
|
|
4
|
+
/**
|
|
5
|
+
* Identifies the element (or elements) that describes the switch for assistive technologies.
|
|
6
|
+
*/
|
|
7
|
+
'aria-describedby'?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Defines a string value that labels the current switch for assistive technologies.
|
|
10
|
+
*/
|
|
11
|
+
'aria-label'?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Identifies the element (or elements) that labels the current switch for assistive technologies.
|
|
14
|
+
*/
|
|
15
|
+
'aria-labelledby'?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const SwitchField: React.ForwardRefExoticComponent<Omit<SwitchFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
18
|
+
export { SwitchField };
|
|
19
|
+
export type { SwitchFieldProps };
|
|
@@ -1,2 +1,75 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var box = require('../box/box.js');
|
|
8
|
+
var stack = require('../stack/stack.js');
|
|
9
|
+
var text = require('../text/text.js');
|
|
10
|
+
var hiddenVisually = require('../hidden-visually/hidden-visually.js');
|
|
11
|
+
var baseField = require('../base-field/base-field.js');
|
|
12
|
+
var commonHelpers = require('../utils/common-helpers.js');
|
|
13
|
+
var switchField_module = require('./switch-field.module.css.js');
|
|
14
|
+
|
|
15
|
+
function _interopNamespace(e) {
|
|
16
|
+
if (e && e.__esModule) return e;
|
|
17
|
+
var n = Object.create(null);
|
|
18
|
+
if (e) {
|
|
19
|
+
Object.keys(e).forEach(function (k) {
|
|
20
|
+
if (k !== 'default') {
|
|
21
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
22
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return e[k]; }
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
n["default"] = e;
|
|
30
|
+
return Object.freeze(n);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
34
|
+
|
|
35
|
+
var SwitchField = React__namespace.forwardRef(function SwitchField(_a, ref) {
|
|
36
|
+
var _b, _c, _d;
|
|
37
|
+
var label = _a.label, message = _a.message, _e = _a.tone, tone = _e === void 0 ? 'neutral' : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, hidden = _a.hidden, defaultChecked = _a.defaultChecked, originalId = _a.id, originalAriaDescribedBy = _a["aria-describedby"], originalAriaLabel = _a["aria-label"], originalAriaLabelledby = _a["aria-labelledby"], onChange = _a.onChange, props = tslib.__rest(_a, ["label", "message", "tone", "disabled", "hidden", "defaultChecked", "id", 'aria-describedby', 'aria-label', 'aria-labelledby', "onChange"]);
|
|
38
|
+
var id = commonHelpers.useId(originalId);
|
|
39
|
+
var messageId = commonHelpers.useId();
|
|
40
|
+
var ariaDescribedBy = originalAriaDescribedBy !== null && originalAriaDescribedBy !== void 0 ? originalAriaDescribedBy : (message ? messageId : undefined);
|
|
41
|
+
var ariaLabel = originalAriaLabel !== null && originalAriaLabel !== void 0 ? originalAriaLabel : undefined;
|
|
42
|
+
var ariaLabelledBy = originalAriaLabelledby !== null && originalAriaLabelledby !== void 0 ? originalAriaLabelledby : undefined;
|
|
43
|
+
var _g = React__namespace.useState(false), keyFocused = _g[0], setKeyFocused = _g[1];
|
|
44
|
+
var _h = React__namespace.useState((_c = (_b = props.checked) !== null && _b !== void 0 ? _b : defaultChecked) !== null && _c !== void 0 ? _c : false), checkedState = _h[0], setChecked = _h[1];
|
|
45
|
+
var isChecked = (_d = props.checked) !== null && _d !== void 0 ? _d : checkedState;
|
|
46
|
+
return (React__namespace.createElement(stack.Stack, { space: "small", hidden: hidden },
|
|
47
|
+
React__namespace.createElement(box.Box, { className: [
|
|
48
|
+
switchField_module["default"].container,
|
|
49
|
+
disabled ? switchField_module["default"].disabled : null,
|
|
50
|
+
isChecked ? switchField_module["default"].checked : null,
|
|
51
|
+
keyFocused ? switchField_module["default"].keyFocused : null,
|
|
52
|
+
], as: "label", display: "flex", alignItems: "center" },
|
|
53
|
+
React__namespace.createElement(box.Box, { position: "relative", display: "inlineBlock", overflow: "visible", marginRight: "small", flexShrink: 0, className: switchField_module["default"].toggle },
|
|
54
|
+
React__namespace.createElement(hiddenVisually.HiddenVisually, null,
|
|
55
|
+
React__namespace.createElement("input", tslib.__assign({}, props, { id: id, type: "checkbox", disabled: disabled, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ref: ref, checked: isChecked, onChange: function (event) {
|
|
56
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
57
|
+
if (!event.defaultPrevented) {
|
|
58
|
+
setChecked(event.currentTarget.checked);
|
|
59
|
+
}
|
|
60
|
+
}, onBlur: function (event) {
|
|
61
|
+
var _a;
|
|
62
|
+
setKeyFocused(false);
|
|
63
|
+
(_a = props === null || props === void 0 ? void 0 : props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, event);
|
|
64
|
+
}, onKeyUp: function (event) {
|
|
65
|
+
var _a;
|
|
66
|
+
setKeyFocused(true);
|
|
67
|
+
(_a = props === null || props === void 0 ? void 0 : props.onKeyUp) === null || _a === void 0 ? void 0 : _a.call(props, event);
|
|
68
|
+
} }))),
|
|
69
|
+
React__namespace.createElement("span", { className: switchField_module["default"].handle })),
|
|
70
|
+
React__namespace.createElement(text.Text, { exceptionallySetClassName: switchField_module["default"].label }, label)),
|
|
71
|
+
message ? (React__namespace.createElement(baseField.FieldMessage, { id: messageId, tone: tone }, message)) : null));
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
exports.SwitchField = SwitchField;
|
|
2
75
|
//# sourceMappingURL=switch-field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch-field.js","sources":["../../src/switch-field/switch-field.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"switch-field.js","sources":["../../src/switch-field/switch-field.tsx"],"sourcesContent":[null],"names":["React","__rest","useId","Stack","Box","styles","HiddenVisually","__assign","Text","FieldMessage"],"mappings":"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"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var modules_8e05f7c9 = {"disabled":"_408d32a0","label":"a66e1846","checked":"_99b0ead7","toggle":"_5af09fb5","handle":"_0dcf70ec","keyFocused":"_1f5e7fd4","container":"bae487be"};
|
|
6
|
+
|
|
7
|
+
exports["default"] = modules_8e05f7c9;
|
|
2
8
|
//# sourceMappingURL=switch-field.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch-field.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"switch-field.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/lib/tabs/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './tabs';
|
|
1
|
+
export * from './tabs';
|
package/lib/tabs/tabs.d.ts
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TabProps as BaseTabProps, TabPanelProps as BaseTabPanelProps } from '@ariakit/react';
|
|
3
|
-
import type { ObfuscatedClassName, Space } from '../utils/common-types';
|
|
4
|
-
interface TabsProps {
|
|
5
|
-
/**
|
|
6
|
-
* The `<Tabs>` component must be composed from a `<TabList>` and corresponding `<TabPanel>`
|
|
7
|
-
* components
|
|
8
|
-
*/
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* Determines the look and feel of the tabs
|
|
12
|
-
*/
|
|
13
|
-
variant?: 'themed' | 'neutral';
|
|
14
|
-
/**
|
|
15
|
-
* The id of the selected tab. Assigning a value makes this a controlled component
|
|
16
|
-
*/
|
|
17
|
-
selectedId?: string | null;
|
|
18
|
-
/**
|
|
19
|
-
* The tab to initially select. This can be used if the component should not
|
|
20
|
-
* be a controlled component but needs to have a tab selected
|
|
21
|
-
*/
|
|
22
|
-
defaultSelectedId?: string | null;
|
|
23
|
-
/**
|
|
24
|
-
* Called with the tab id when a tab is selected
|
|
25
|
-
*/
|
|
26
|
-
onSelectedIdChange?: (selectedId: string | null | undefined) => void;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Used to group components that compose a set of tabs. There can only be one active tab within the same `<Tabs>` group.
|
|
30
|
-
*/
|
|
31
|
-
declare function Tabs({ children, selectedId, defaultSelectedId, variant, onSelectedIdChange, }: TabsProps): React.ReactElement;
|
|
32
|
-
interface TabProps extends ObfuscatedClassName, Omit<BaseTabProps, 'store' | 'className' | 'children' | 'id'> {
|
|
33
|
-
/**
|
|
34
|
-
* The content to render inside of the tab button
|
|
35
|
-
*/
|
|
36
|
-
children: React.ReactNode;
|
|
37
|
-
/**
|
|
38
|
-
* The tab's identifier. This must match its corresponding `<TabPanel>`'s id
|
|
39
|
-
*/
|
|
40
|
-
id: string;
|
|
41
|
-
/**
|
|
42
|
-
* Defines wether or not the tab is disabled.
|
|
43
|
-
*/
|
|
44
|
-
disabled?: boolean;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Represents the individual tab elements within the group. Each `<Tab>` must have a corresponding `<TabPanel>` component.
|
|
48
|
-
*/
|
|
49
|
-
declare const Tab: React.ForwardRefExoticComponent<Omit<TabProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
50
|
-
type TabListProps = ({
|
|
51
|
-
/** Labels the tab list for assistive technologies. This must be provided if `aria-labelledby` is omitted. */
|
|
52
|
-
'aria-label': string;
|
|
53
|
-
} | {
|
|
54
|
-
/**
|
|
55
|
-
* One or more element IDs used to label the tab list for assistive technologies. Required if
|
|
56
|
-
* `aria-label` is omitted.
|
|
57
|
-
*/
|
|
58
|
-
'aria-labelledby': string;
|
|
59
|
-
} | {
|
|
60
|
-
/**
|
|
61
|
-
* For cases where multiple instances of the tab list exists, the duplicates may be marked as aria-hidden
|
|
62
|
-
*/
|
|
63
|
-
'aria-hidden': boolean;
|
|
64
|
-
}) & {
|
|
65
|
-
/**
|
|
66
|
-
* A list of `<Tab>` elements
|
|
67
|
-
*/
|
|
68
|
-
children: React.ReactNode;
|
|
69
|
-
/**
|
|
70
|
-
* Controls the spacing between tabs
|
|
71
|
-
*/
|
|
72
|
-
space?: Space;
|
|
73
|
-
/**
|
|
74
|
-
* The width of the tab list.
|
|
75
|
-
*
|
|
76
|
-
* - `'maxContent'`: Each tab will be as wide as its content.
|
|
77
|
-
* - `'full'`: Each tab will be as wide as the tab list.
|
|
78
|
-
*
|
|
79
|
-
* @default 'maxContent'
|
|
80
|
-
*/
|
|
81
|
-
width?: 'maxContent' | 'full';
|
|
82
|
-
/**
|
|
83
|
-
* How to align the tabs within the tab list.
|
|
84
|
-
*
|
|
85
|
-
* @default 'start'
|
|
86
|
-
*/
|
|
87
|
-
align?: 'start' | 'center' | 'end';
|
|
88
|
-
} & ObfuscatedClassName;
|
|
89
|
-
/**
|
|
90
|
-
* A component used to group `<Tab>` elements together.
|
|
91
|
-
*/
|
|
92
|
-
declare function TabList({ children, space, width, align, exceptionallySetClassName, ...props }: TabListProps): React.ReactElement | null;
|
|
93
|
-
interface TabPanelProps extends React.HTMLAttributes<HTMLDivElement>, Pick<BaseTabPanelProps, 'render'> {
|
|
94
|
-
/** The content to be rendered inside the tab */
|
|
95
|
-
children?: React.ReactNode;
|
|
96
|
-
/** The tabPanel's identifier. This must match its corresponding `<Tab>`'s id */
|
|
97
|
-
id: string;
|
|
98
|
-
/**
|
|
99
|
-
* By default, the tab panel's content is always rendered even when they are not active. This
|
|
100
|
-
* behaviour can be changed to 'active', which renders only when the tab is active, and 'lazy',
|
|
101
|
-
* meaning while inactive tab panels will not be rendered initially, they will remain mounted
|
|
102
|
-
* once they are active until the entire Tabs tree is unmounted.
|
|
103
|
-
*/
|
|
104
|
-
renderMode?: 'always' | 'active' | 'lazy';
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Used to define the content to be rendered when a tab is active. Each `<TabPanel>` must have a
|
|
108
|
-
* corresponding `<Tab>` component.
|
|
109
|
-
*/
|
|
110
|
-
declare const TabPanel: React.ForwardRefExoticComponent<TabPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
111
|
-
type TabAwareSlotProps = {
|
|
112
|
-
/**
|
|
113
|
-
* Render prop used to provide the content to be rendered inside the slot. The render prop will
|
|
114
|
-
* be called with the current `selectedId`
|
|
115
|
-
*/
|
|
116
|
-
children: (provided: {
|
|
117
|
-
selectedId?: string | null;
|
|
118
|
-
}) => React.ReactElement | null;
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* Allows content to be rendered based on the current tab being selected while outside of the
|
|
122
|
-
* TabPanel component. Can be placed freely within the main `<Tabs>` component.
|
|
123
|
-
*/
|
|
124
|
-
declare function TabAwareSlot({ children }: TabAwareSlotProps): React.ReactElement | null;
|
|
125
|
-
export { Tab, Tabs, TabList, TabPanel, TabAwareSlot };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TabProps as BaseTabProps, TabPanelProps as BaseTabPanelProps } from '@ariakit/react';
|
|
3
|
+
import type { ObfuscatedClassName, Space } from '../utils/common-types';
|
|
4
|
+
interface TabsProps {
|
|
5
|
+
/**
|
|
6
|
+
* The `<Tabs>` component must be composed from a `<TabList>` and corresponding `<TabPanel>`
|
|
7
|
+
* components
|
|
8
|
+
*/
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Determines the look and feel of the tabs
|
|
12
|
+
*/
|
|
13
|
+
variant?: 'themed' | 'neutral';
|
|
14
|
+
/**
|
|
15
|
+
* The id of the selected tab. Assigning a value makes this a controlled component
|
|
16
|
+
*/
|
|
17
|
+
selectedId?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* The tab to initially select. This can be used if the component should not
|
|
20
|
+
* be a controlled component but needs to have a tab selected
|
|
21
|
+
*/
|
|
22
|
+
defaultSelectedId?: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* Called with the tab id when a tab is selected
|
|
25
|
+
*/
|
|
26
|
+
onSelectedIdChange?: (selectedId: string | null | undefined) => void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Used to group components that compose a set of tabs. There can only be one active tab within the same `<Tabs>` group.
|
|
30
|
+
*/
|
|
31
|
+
declare function Tabs({ children, selectedId, defaultSelectedId, variant, onSelectedIdChange, }: TabsProps): React.ReactElement;
|
|
32
|
+
interface TabProps extends ObfuscatedClassName, Omit<BaseTabProps, 'store' | 'className' | 'children' | 'id'> {
|
|
33
|
+
/**
|
|
34
|
+
* The content to render inside of the tab button
|
|
35
|
+
*/
|
|
36
|
+
children: React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* The tab's identifier. This must match its corresponding `<TabPanel>`'s id
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Defines wether or not the tab is disabled.
|
|
43
|
+
*/
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Represents the individual tab elements within the group. Each `<Tab>` must have a corresponding `<TabPanel>` component.
|
|
48
|
+
*/
|
|
49
|
+
declare const Tab: React.ForwardRefExoticComponent<Omit<TabProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
50
|
+
type TabListProps = ({
|
|
51
|
+
/** Labels the tab list for assistive technologies. This must be provided if `aria-labelledby` is omitted. */
|
|
52
|
+
'aria-label': string;
|
|
53
|
+
} | {
|
|
54
|
+
/**
|
|
55
|
+
* One or more element IDs used to label the tab list for assistive technologies. Required if
|
|
56
|
+
* `aria-label` is omitted.
|
|
57
|
+
*/
|
|
58
|
+
'aria-labelledby': string;
|
|
59
|
+
} | {
|
|
60
|
+
/**
|
|
61
|
+
* For cases where multiple instances of the tab list exists, the duplicates may be marked as aria-hidden
|
|
62
|
+
*/
|
|
63
|
+
'aria-hidden': boolean;
|
|
64
|
+
}) & {
|
|
65
|
+
/**
|
|
66
|
+
* A list of `<Tab>` elements
|
|
67
|
+
*/
|
|
68
|
+
children: React.ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* Controls the spacing between tabs
|
|
71
|
+
*/
|
|
72
|
+
space?: Space;
|
|
73
|
+
/**
|
|
74
|
+
* The width of the tab list.
|
|
75
|
+
*
|
|
76
|
+
* - `'maxContent'`: Each tab will be as wide as its content.
|
|
77
|
+
* - `'full'`: Each tab will be as wide as the tab list.
|
|
78
|
+
*
|
|
79
|
+
* @default 'maxContent'
|
|
80
|
+
*/
|
|
81
|
+
width?: 'maxContent' | 'full';
|
|
82
|
+
/**
|
|
83
|
+
* How to align the tabs within the tab list.
|
|
84
|
+
*
|
|
85
|
+
* @default 'start'
|
|
86
|
+
*/
|
|
87
|
+
align?: 'start' | 'center' | 'end';
|
|
88
|
+
} & ObfuscatedClassName;
|
|
89
|
+
/**
|
|
90
|
+
* A component used to group `<Tab>` elements together.
|
|
91
|
+
*/
|
|
92
|
+
declare function TabList({ children, space, width, align, exceptionallySetClassName, ...props }: TabListProps): React.ReactElement | null;
|
|
93
|
+
interface TabPanelProps extends React.HTMLAttributes<HTMLDivElement>, Pick<BaseTabPanelProps, 'render'> {
|
|
94
|
+
/** The content to be rendered inside the tab */
|
|
95
|
+
children?: React.ReactNode;
|
|
96
|
+
/** The tabPanel's identifier. This must match its corresponding `<Tab>`'s id */
|
|
97
|
+
id: string;
|
|
98
|
+
/**
|
|
99
|
+
* By default, the tab panel's content is always rendered even when they are not active. This
|
|
100
|
+
* behaviour can be changed to 'active', which renders only when the tab is active, and 'lazy',
|
|
101
|
+
* meaning while inactive tab panels will not be rendered initially, they will remain mounted
|
|
102
|
+
* once they are active until the entire Tabs tree is unmounted.
|
|
103
|
+
*/
|
|
104
|
+
renderMode?: 'always' | 'active' | 'lazy';
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Used to define the content to be rendered when a tab is active. Each `<TabPanel>` must have a
|
|
108
|
+
* corresponding `<Tab>` component.
|
|
109
|
+
*/
|
|
110
|
+
declare const TabPanel: React.ForwardRefExoticComponent<TabPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
111
|
+
type TabAwareSlotProps = {
|
|
112
|
+
/**
|
|
113
|
+
* Render prop used to provide the content to be rendered inside the slot. The render prop will
|
|
114
|
+
* be called with the current `selectedId`
|
|
115
|
+
*/
|
|
116
|
+
children: (provided: {
|
|
117
|
+
selectedId?: string | null;
|
|
118
|
+
}) => React.ReactElement | null;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Allows content to be rendered based on the current tab being selected while outside of the
|
|
122
|
+
* TabPanel component. Can be placed freely within the main `<Tabs>` component.
|
|
123
|
+
*/
|
|
124
|
+
declare function TabAwareSlot({ children }: TabAwareSlotProps): React.ReactElement | null;
|
|
125
|
+
export { Tab, Tabs, TabList, TabPanel, TabAwareSlot };
|