@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
|
@@ -1,2 +1,87 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var classNames = require('classnames');
|
|
7
|
+
var dropdown = require('../deprecated-dropdown/dropdown.js');
|
|
8
|
+
var tooltip = require('../../tooltip/tooltip.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
function _interopNamespace(e) {
|
|
13
|
+
if (e && e.__esModule) return e;
|
|
14
|
+
var n = Object.create(null);
|
|
15
|
+
if (e) {
|
|
16
|
+
Object.keys(e).forEach(function (k) {
|
|
17
|
+
if (k !== 'default') {
|
|
18
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return e[k]; }
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
n["default"] = e;
|
|
27
|
+
return Object.freeze(n);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
31
|
+
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
32
|
+
|
|
33
|
+
var COLORS = [
|
|
34
|
+
'#606060',
|
|
35
|
+
'#4A90E2',
|
|
36
|
+
'#03B3B2',
|
|
37
|
+
'#008299',
|
|
38
|
+
'#82BA00',
|
|
39
|
+
'#D24726',
|
|
40
|
+
'#AC193D',
|
|
41
|
+
'#DC4FAD',
|
|
42
|
+
'#3BD5FB',
|
|
43
|
+
'#74E8D3',
|
|
44
|
+
'#FFCC00',
|
|
45
|
+
'#FB886E',
|
|
46
|
+
'#CCCCCC',
|
|
47
|
+
];
|
|
48
|
+
var _isNamedColor = function (color) {
|
|
49
|
+
return typeof color !== 'string';
|
|
50
|
+
};
|
|
51
|
+
var _getColor = function (colorList, colorIndex) {
|
|
52
|
+
var index = colorIndex >= colorList.length ? 0 : colorIndex;
|
|
53
|
+
return colorList[index];
|
|
54
|
+
};
|
|
55
|
+
function ColorPicker(_a) {
|
|
56
|
+
var _b = _a.color, color = _b === void 0 ? 0 : _b, small = _a.small, onChange = _a.onChange, _c = _a.colorList, colorList = _c === void 0 ? COLORS : _c;
|
|
57
|
+
return (React__namespace.createElement(dropdown.Dropdown.Box, { right: true, className: "reactist_color_picker" },
|
|
58
|
+
React__namespace.createElement(dropdown.Dropdown.Trigger, null, (function () {
|
|
59
|
+
var backgroundColor = _getColor(colorList, color);
|
|
60
|
+
return (React__namespace.createElement("span", { className: classNames__default["default"]('color_trigger', { small: small }), style: {
|
|
61
|
+
backgroundColor: _isNamedColor(backgroundColor)
|
|
62
|
+
? backgroundColor.color
|
|
63
|
+
: backgroundColor
|
|
64
|
+
} },
|
|
65
|
+
React__namespace.createElement("span", { className: "color_trigger--inner_ring" })));
|
|
66
|
+
})()),
|
|
67
|
+
React__namespace.createElement(dropdown.Dropdown.Body, null,
|
|
68
|
+
React__namespace.createElement("div", { className: "color_options" }, colorList.reduce(function (items, currentColor, currentIndex) {
|
|
69
|
+
items.push(React__namespace.createElement(ColorItem, { isActive: color >= colorList.length
|
|
70
|
+
? currentIndex === 0
|
|
71
|
+
: currentIndex === color, key: currentIndex, color: _isNamedColor(currentColor) ? currentColor.color : currentColor, colorIndex: currentIndex, onClick: onChange, tooltip: _isNamedColor(currentColor) ? currentColor.name : null }));
|
|
72
|
+
return items;
|
|
73
|
+
}, [])))));
|
|
74
|
+
}
|
|
75
|
+
ColorPicker.displayName = 'ColorPicker';
|
|
76
|
+
function ColorItem(_a) {
|
|
77
|
+
var color = _a.color, colorIndex = _a.colorIndex, isActive = _a.isActive, onClick = _a.onClick, tooltip$1 = _a.tooltip;
|
|
78
|
+
var item = (React__namespace.createElement("span", { "data-testid": "reactist-color-item", className: 'reactist color_item' + (isActive ? ' active' : ''), style: { backgroundColor: color }, onClick: function () { return onClick === null || onClick === void 0 ? void 0 : onClick(colorIndex); } },
|
|
79
|
+
React__namespace.createElement("span", { className: "color_item--inner_ring" })));
|
|
80
|
+
return tooltip$1 ? React__namespace.createElement(tooltip.Tooltip, { content: tooltip$1 }, item) : item;
|
|
81
|
+
}
|
|
82
|
+
ColorItem.displayName = 'ColorItem';
|
|
83
|
+
|
|
84
|
+
exports.COLORS = COLORS;
|
|
85
|
+
exports.ColorItem = ColorItem;
|
|
86
|
+
exports.ColorPicker = ColorPicker;
|
|
2
87
|
//# sourceMappingURL=color-picker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-picker.js","sources":["../../../src/components/color-picker/color-picker.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"color-picker.js","sources":["../../../src/components/color-picker/color-picker.tsx"],"sourcesContent":[null],"names":["React","DeprecatedDropdown","classnames","tooltip","Tooltip"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAM,MAAM,GAAG;IACX,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;EACZ;AAED,IAAM,aAAa,GAAG,UAAC,KAAsC,EAAA;IACzD,OAAA,OAAO,KAAK,KAAK,QAAQ,CAAA;AAAzB,CAAyB,CAAA;AAE7B,IAAM,SAAS,GAAG,UAAC,SAAkC,EAAE,UAAkB,EAAA;AACrE,IAAA,IAAM,KAAK,GAAG,UAAU,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,GAAG,UAAU,CAAA;AAC7D,IAAA,OAAO,SAAS,CAAC,KAAK,CAAC,CAAA;AAC3B,CAAC,CAAA;AASD,SAAS,WAAW,CAAC,EAAyD,EAAA;AAAvD,IAAA,IAAA,EAAA,GAAA,EAAA,CAAA,KAAS,EAAT,KAAK,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,CAAC,GAAA,EAAA,EAAE,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,QAAQ,cAAA,EAAE,EAAA,GAAA,EAAA,CAAA,SAAkB,EAAlB,SAAS,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,MAAM,GAAA,EAAA,CAAA;IACjE,QACIA,gBAAC,CAAA,aAAA,CAAAC,iBAAkB,CAAC,GAAG,IAAC,KAAK,EAAA,IAAA,EAAC,SAAS,EAAC,uBAAuB,EAAA;AAC3D,QAAAD,gBAAA,CAAA,aAAA,CAACC,iBAAkB,CAAC,OAAO,EAAA,IAAA,EACtB,CAAC,YAAA;YACE,IAAM,eAAe,GAAG,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;AAEnD,YAAA,QACID,gBAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EACI,SAAS,EAAEE,8BAAU,CAAC,eAAe,EAAE,EAAE,KAAK,EAAA,KAAA,EAAE,CAAC,EACjD,KAAK,EAAE;AACH,oBAAA,eAAe,EAAE,aAAa,CAAC,eAAe,CAAC;0BACzC,eAAe,CAAC,KAAK;AACvB,0BAAE,eAAe;AACxB,iBAAA,EAAA;AAED,gBAAAF,gBAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,2BAA2B,EAAG,CAAA,CAC3C,EACV;SACJ,GAAG,CACqB;QAC7BA,gBAAC,CAAA,aAAA,CAAAC,iBAAkB,CAAC,IAAI,EAAA,IAAA;AACpB,YAAAD,gBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,eAAe,EAAA,EACzB,SAAS,CAAC,MAAM,CAAoB,UAAC,KAAK,EAAE,YAAY,EAAE,YAAY,EAAA;AACnE,gBAAA,KAAK,CAAC,IAAI,CACNA,gBAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EACN,QAAQ,EACJ,KAAK,IAAI,SAAS,CAAC,MAAM;0BACnB,YAAY,KAAK,CAAC;0BAClB,YAAY,KAAK,KAAK,EAEhC,GAAG,EAAE,YAAY,EACjB,KAAK,EACD,aAAa,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC,KAAK,GAAG,YAAY,EAEnE,UAAU,EAAE,YAAY,EACxB,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,aAAa,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC,IAAI,GAAG,IAAI,EACjE,CAAA,CACL,CAAA;AACD,gBAAA,OAAO,KAAK,CAAA;AAChB,aAAC,EAAE,EAAE,CAAC,CACJ,CACgB,CACL,EAC5B;AACL,CAAC;AACD,WAAW,CAAC,WAAW,GAAG,aAAa,CAAA;AAUvC,SAAS,SAAS,CAAC,EAAiE,EAAA;AAA/D,IAAA,IAAA,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,UAAU,GAAA,EAAA,CAAA,UAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,OAAO,GAAA,EAAA,CAAA,OAAA,EAAEG,SAAO,GAAA,EAAA,CAAA,OAAA,CAAA;AAC9D,IAAA,IAAM,IAAI,IACNH,wDACgB,qBAAqB,EACjC,SAAS,EAAE,qBAAqB,IAAI,QAAQ,GAAG,SAAS,GAAG,EAAE,CAAC,EAC9D,KAAK,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,EACjC,OAAO,EAAE,YAAA,EAAM,OAAA,OAAO,KAAA,IAAA,IAAP,OAAO,KAAP,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,OAAO,CAAG,UAAU,CAAC,GAAA,EAAA;AAEpC,QAAAA,gBAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,wBAAwB,EAAG,CAAA,CACxC,CACV,CAAA;AAED,IAAA,OAAOG,SAAO,GAAGH,gBAAA,CAAA,aAAA,CAACI,eAAO,EAAC,EAAA,OAAO,EAAED,SAAO,IAAG,IAAI,CAAW,GAAG,IAAI,CAAA;AACvE,CAAC;AACD,SAAS,CAAC,WAAW,GAAG,WAAW;;;;;;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ColorPicker, ColorItem, COLORS } from './color-picker';
|
|
2
|
-
export default ColorPicker;
|
|
3
|
-
export { ColorItem, COLORS };
|
|
1
|
+
import { ColorPicker, ColorItem, COLORS } from './color-picker';
|
|
2
|
+
export default ColorPicker;
|
|
3
|
+
export { ColorItem, COLORS };
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var colorPicker = require('./color-picker.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.COLORS = colorPicker.COLORS;
|
|
10
|
+
exports.ColorItem = colorPicker.ColorItem;
|
|
11
|
+
exports["default"] = colorPicker.ColorPicker;
|
|
2
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './deprecated-button.less';
|
|
3
|
-
type NativeButtonProps = React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
|
4
|
-
/** @deprecated */
|
|
5
|
-
export type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'link';
|
|
6
|
-
/** @deprecated */
|
|
7
|
-
export type ButtonSize = 'default' | 'small' | 'large';
|
|
8
|
-
/** @deprecated */
|
|
9
|
-
export type ButtonProps = Omit<NativeButtonProps, 'title' | 'ref'> & {
|
|
10
|
-
/**
|
|
11
|
-
* Loading style. When true it disables the button, but it also adds a visual indication of
|
|
12
|
-
* some in-progress operation going on.
|
|
13
|
-
*/
|
|
14
|
-
loading?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Controls visually how the button shows up from a predefined set of kinds of buttons.
|
|
17
|
-
*/
|
|
18
|
-
variant?: ButtonVariant;
|
|
19
|
-
/**
|
|
20
|
-
* The size of the button. If not provided it shows up in a normal size.
|
|
21
|
-
*/
|
|
22
|
-
size?: ButtonSize;
|
|
23
|
-
/**
|
|
24
|
-
* Tooltip that is displayed on hover.
|
|
25
|
-
*
|
|
26
|
-
* This replaces `title` which is not supported for these buttons to avoid confusion.
|
|
27
|
-
*/
|
|
28
|
-
tooltip?: React.ReactNode;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated
|
|
32
|
-
*/
|
|
33
|
-
declare const Button: React.ForwardRefExoticComponent<Omit<NativeButtonProps, "title" | "ref"> & {
|
|
34
|
-
/**
|
|
35
|
-
* Loading style. When true it disables the button, but it also adds a visual indication of
|
|
36
|
-
* some in-progress operation going on.
|
|
37
|
-
*/
|
|
38
|
-
loading?: boolean | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Controls visually how the button shows up from a predefined set of kinds of buttons.
|
|
41
|
-
*/
|
|
42
|
-
variant?: ButtonVariant | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* The size of the button. If not provided it shows up in a normal size.
|
|
45
|
-
*/
|
|
46
|
-
size?: ButtonSize | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Tooltip that is displayed on hover.
|
|
49
|
-
*
|
|
50
|
-
* This replaces `title` which is not supported for these buttons to avoid confusion.
|
|
51
|
-
*/
|
|
52
|
-
tooltip?: React.ReactNode;
|
|
53
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
54
|
-
export { Button };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './deprecated-button.less';
|
|
3
|
+
type NativeButtonProps = React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
|
4
|
+
/** @deprecated */
|
|
5
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'link';
|
|
6
|
+
/** @deprecated */
|
|
7
|
+
export type ButtonSize = 'default' | 'small' | 'large';
|
|
8
|
+
/** @deprecated */
|
|
9
|
+
export type ButtonProps = Omit<NativeButtonProps, 'title' | 'ref'> & {
|
|
10
|
+
/**
|
|
11
|
+
* Loading style. When true it disables the button, but it also adds a visual indication of
|
|
12
|
+
* some in-progress operation going on.
|
|
13
|
+
*/
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Controls visually how the button shows up from a predefined set of kinds of buttons.
|
|
17
|
+
*/
|
|
18
|
+
variant?: ButtonVariant;
|
|
19
|
+
/**
|
|
20
|
+
* The size of the button. If not provided it shows up in a normal size.
|
|
21
|
+
*/
|
|
22
|
+
size?: ButtonSize;
|
|
23
|
+
/**
|
|
24
|
+
* Tooltip that is displayed on hover.
|
|
25
|
+
*
|
|
26
|
+
* This replaces `title` which is not supported for these buttons to avoid confusion.
|
|
27
|
+
*/
|
|
28
|
+
tooltip?: React.ReactNode;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated
|
|
32
|
+
*/
|
|
33
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<NativeButtonProps, "title" | "ref"> & {
|
|
34
|
+
/**
|
|
35
|
+
* Loading style. When true it disables the button, but it also adds a visual indication of
|
|
36
|
+
* some in-progress operation going on.
|
|
37
|
+
*/
|
|
38
|
+
loading?: boolean | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Controls visually how the button shows up from a predefined set of kinds of buttons.
|
|
41
|
+
*/
|
|
42
|
+
variant?: ButtonVariant | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The size of the button. If not provided it shows up in a normal size.
|
|
45
|
+
*/
|
|
46
|
+
size?: ButtonSize | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Tooltip that is displayed on hover.
|
|
49
|
+
*
|
|
50
|
+
* This replaces `title` which is not supported for these buttons to avoid confusion.
|
|
51
|
+
*/
|
|
52
|
+
tooltip?: React.ReactNode;
|
|
53
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
54
|
+
export { Button };
|
|
@@ -1,2 +1,50 @@
|
|
|
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 classNames = require('classnames');
|
|
8
|
+
var tooltip = require('../../tooltip/tooltip.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
function _interopNamespace(e) {
|
|
13
|
+
if (e && e.__esModule) return e;
|
|
14
|
+
var n = Object.create(null);
|
|
15
|
+
if (e) {
|
|
16
|
+
Object.keys(e).forEach(function (k) {
|
|
17
|
+
if (k !== 'default') {
|
|
18
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return e[k]; }
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
n["default"] = e;
|
|
27
|
+
return Object.freeze(n);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
31
|
+
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated
|
|
35
|
+
*/
|
|
36
|
+
var Button = React__namespace.forwardRef(function Button(_a, ref) {
|
|
37
|
+
var _b = _a.type, type = _b === void 0 ? 'button' : _b, variant = _a.variant, _c = _a.size, size = _c === void 0 ? 'default' : _c, _d = _a.loading, loading = _d === void 0 ? false : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, tooltip$1 = _a.tooltip, onClick = _a.onClick, children = _a.children, props = tslib.__rest(_a, ["type", "variant", "size", "loading", "disabled", "tooltip", "onClick", "children"]);
|
|
38
|
+
var className = classNames__default["default"]('reactist_button', variant ? "reactist_button--".concat(variant) : null, size !== 'default' ? "reactist_button--".concat(size) : null, { 'reactist_button--loading': loading }, props.className);
|
|
39
|
+
var button = (React__namespace.createElement("button", tslib.__assign({}, props, { ref: ref, type: type, className: className, "aria-disabled": disabled || loading, onClick: disabled || loading ? undefined : onClick }), children));
|
|
40
|
+
return tooltip$1 ? React__namespace.createElement(tooltip.Tooltip, { content: tooltip$1 }, button) : button;
|
|
41
|
+
});
|
|
42
|
+
Button.displayName = 'Button';
|
|
43
|
+
Button.defaultProps = {
|
|
44
|
+
size: 'default',
|
|
45
|
+
loading: false,
|
|
46
|
+
disabled: false
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
exports.Button = Button;
|
|
2
50
|
//# sourceMappingURL=deprecated-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated-button.js","sources":["../../../src/components/deprecated-button/deprecated-button.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"deprecated-button.js","sources":["../../../src/components/deprecated-button/deprecated-button.tsx"],"sourcesContent":[null],"names":["React","tooltip","__rest","classNames","__assign","Tooltip"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA;;AAEG;AACG,IAAA,MAAM,GAAGA,gBAAK,CAAC,UAAU,CAAiC,SAAS,MAAM,CAC3E,EAUC,EACD,GAAG,EAAA;AAVC,IAAA,IAAA,YAAe,EAAf,IAAI,mBAAG,QAAQ,GAAA,EAAA,EACf,OAAO,GAAA,EAAA,CAAA,OAAA,EACP,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAG,EAAA,KAAA,KAAA,CAAA,GAAA,SAAS,KAAA,EAChB,EAAA,GAAA,EAAA,CAAA,OAAe,EAAf,OAAO,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,KAAK,GAAA,EAAA,EACf,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,GAAA,EAAA,EAChBC,SAAO,GAAA,EAAA,CAAA,OAAA,EACP,OAAO,GAAA,EAAA,CAAA,OAAA,EACP,QAAQ,GAAA,EAAA,CAAA,QAAA,EACL,KAAK,GAAAC,YAAA,CAAA,EAAA,EATZ,oFAUC,CADW,CAAA;AAIZ,IAAA,IAAM,SAAS,GAAGC,8BAAU,CACxB,iBAAiB,EACjB,OAAO,GAAG,mBAAoB,CAAA,MAAA,CAAA,OAAO,CAAE,GAAG,IAAI,EAC9C,IAAI,KAAK,SAAS,GAAG,mBAAoB,CAAA,MAAA,CAAA,IAAI,CAAE,GAAG,IAAI,EACtD,EAAE,0BAA0B,EAAE,OAAO,EAAE,EACvC,KAAK,CAAC,SAAS,CAClB,CAAA;AAED,IAAA,IAAM,MAAM,IACRH,gBACQ,CAAA,aAAA,CAAA,QAAA,EAAAI,cAAA,CAAA,EAAA,EAAA,KAAK,IACT,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACL,eAAA,EAAA,QAAQ,IAAI,OAAO,EAClC,OAAO,EAAE,QAAQ,IAAI,OAAO,GAAG,SAAS,GAAG,OAAO,KAEjD,QAAQ,CACJ,CACZ,CAAA;AAED,IAAA,OAAOH,SAAO,GAAGD,gBAAA,CAAA,aAAA,CAACK,eAAO,EAAC,EAAA,OAAO,EAAEJ,SAAO,IAAG,MAAM,CAAW,GAAG,MAAM,CAAA;AAC3E,CAAC,EAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAA;AAE7B,MAAM,CAAC,YAAY,GAAG;AAClB,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,OAAO,EAAE,KAAK;AACd,IAAA,QAAQ,EAAE,KAAK;CAClB;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button } from './deprecated-button';
|
|
2
|
-
import type { ButtonProps, ButtonSize, ButtonVariant } from './deprecated-button';
|
|
3
|
-
export type { ButtonProps, ButtonSize, ButtonVariant };
|
|
4
|
-
export default Button;
|
|
1
|
+
import { Button } from './deprecated-button';
|
|
2
|
+
import type { ButtonProps, ButtonSize, ButtonVariant } from './deprecated-button';
|
|
3
|
+
export type { ButtonProps, ButtonSize, ButtonVariant };
|
|
4
|
+
export default Button;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var deprecatedButton = require('./deprecated-button.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports["default"] = deprecatedButton.Button;
|
|
2
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './dropdown.less';
|
|
3
|
-
type BoxProps = {
|
|
4
|
-
onShowBody?: () => void;
|
|
5
|
-
onHideBody?: () => void;
|
|
6
|
-
allowBodyInteractions?: boolean;
|
|
7
|
-
top?: boolean;
|
|
8
|
-
right?: boolean;
|
|
9
|
-
scrolling_parent?: string;
|
|
10
|
-
children?: [
|
|
11
|
-
React.ReactElement<TriggerProps>,
|
|
12
|
-
React.ReactElement<BodyProps> | ((props: BodyProps) => JSX.Element)
|
|
13
|
-
];
|
|
14
|
-
className?: string;
|
|
15
|
-
};
|
|
16
|
-
type BoxState = {
|
|
17
|
-
top: boolean;
|
|
18
|
-
showBody: boolean;
|
|
19
|
-
};
|
|
20
|
-
declare class Box extends React.Component<BoxProps, BoxState> {
|
|
21
|
-
static displayName: string;
|
|
22
|
-
constructor(props: BoxProps, context: React.Context<unknown>);
|
|
23
|
-
componentWillUnmount(): void;
|
|
24
|
-
_timeout?: ReturnType<typeof setTimeout>;
|
|
25
|
-
_handleClickOutside: (event: MouseEvent) => void;
|
|
26
|
-
_toggleShowBody: () => void;
|
|
27
|
-
_getTriggerComponent(): React.ReactElement<TriggerProps, string | React.JSXElementConstructor<any>> | undefined;
|
|
28
|
-
_setPosition: (body: HTMLElement | null) => void;
|
|
29
|
-
_getBodyComponent(): React.JSX.Element | null;
|
|
30
|
-
render(): React.JSX.Element;
|
|
31
|
-
}
|
|
32
|
-
type NativeButtonProps = React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
|
33
|
-
type TriggerProps = Omit<NativeButtonProps, 'title' | 'onClick'> & {
|
|
34
|
-
tooltip?: React.ReactNode;
|
|
35
|
-
/**
|
|
36
|
-
* @private the onClick prop is not to be used externally
|
|
37
|
-
*/
|
|
38
|
-
onClick?: NativeButtonProps['onClick'];
|
|
39
|
-
};
|
|
40
|
-
type BodyProps = {
|
|
41
|
-
setPosition?: React.Ref<HTMLDivElement>;
|
|
42
|
-
children?: React.ReactNode;
|
|
43
|
-
top?: boolean;
|
|
44
|
-
right?: boolean;
|
|
45
|
-
};
|
|
46
|
-
declare function Body({ top, right, children, setPosition }: BodyProps): React.JSX.Element;
|
|
47
|
-
declare namespace Body {
|
|
48
|
-
var displayName: string;
|
|
49
|
-
}
|
|
50
|
-
declare const Dropdown: {
|
|
51
|
-
Box: typeof Box;
|
|
52
|
-
Trigger: React.ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
53
|
-
Body: typeof Body;
|
|
54
|
-
};
|
|
55
|
-
export { Dropdown };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './dropdown.less';
|
|
3
|
+
type BoxProps = {
|
|
4
|
+
onShowBody?: () => void;
|
|
5
|
+
onHideBody?: () => void;
|
|
6
|
+
allowBodyInteractions?: boolean;
|
|
7
|
+
top?: boolean;
|
|
8
|
+
right?: boolean;
|
|
9
|
+
scrolling_parent?: string;
|
|
10
|
+
children?: [
|
|
11
|
+
React.ReactElement<TriggerProps>,
|
|
12
|
+
React.ReactElement<BodyProps> | ((props: BodyProps) => JSX.Element)
|
|
13
|
+
];
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
type BoxState = {
|
|
17
|
+
top: boolean;
|
|
18
|
+
showBody: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare class Box extends React.Component<BoxProps, BoxState> {
|
|
21
|
+
static displayName: string;
|
|
22
|
+
constructor(props: BoxProps, context: React.Context<unknown>);
|
|
23
|
+
componentWillUnmount(): void;
|
|
24
|
+
_timeout?: ReturnType<typeof setTimeout>;
|
|
25
|
+
_handleClickOutside: (event: MouseEvent) => void;
|
|
26
|
+
_toggleShowBody: () => void;
|
|
27
|
+
_getTriggerComponent(): React.ReactElement<TriggerProps, string | React.JSXElementConstructor<any>> | undefined;
|
|
28
|
+
_setPosition: (body: HTMLElement | null) => void;
|
|
29
|
+
_getBodyComponent(): React.JSX.Element | null;
|
|
30
|
+
render(): React.JSX.Element;
|
|
31
|
+
}
|
|
32
|
+
type NativeButtonProps = React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
|
33
|
+
type TriggerProps = Omit<NativeButtonProps, 'title' | 'onClick'> & {
|
|
34
|
+
tooltip?: React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* @private the onClick prop is not to be used externally
|
|
37
|
+
*/
|
|
38
|
+
onClick?: NativeButtonProps['onClick'];
|
|
39
|
+
};
|
|
40
|
+
type BodyProps = {
|
|
41
|
+
setPosition?: React.Ref<HTMLDivElement>;
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
top?: boolean;
|
|
44
|
+
right?: boolean;
|
|
45
|
+
};
|
|
46
|
+
declare function Body({ top, right, children, setPosition }: BodyProps): React.JSX.Element;
|
|
47
|
+
declare namespace Body {
|
|
48
|
+
var displayName: string;
|
|
49
|
+
}
|
|
50
|
+
declare const Dropdown: {
|
|
51
|
+
Box: typeof Box;
|
|
52
|
+
Trigger: React.ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
53
|
+
Body: typeof Body;
|
|
54
|
+
};
|
|
55
|
+
export { Dropdown };
|