@scaleflex/ui-tw 0.0.1 → 0.0.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/LICENSE +1 -33
- package/README.md +2 -16
- package/button/button.component.d.ts +8 -0
- package/{core/button → button}/button.component.js +13 -12
- package/button/button.const.d.ts +13 -0
- package/button/button.const.js +4 -0
- package/{core/button → button}/button.types.d.ts +6 -9
- package/{core/button → button}/button.types.js +2 -4
- package/button/button.utils.d.ts +2 -0
- package/button/button.utils.js +19 -0
- package/button/components/end-icon.d.ts +7 -0
- package/button/components/end-icon.js +39 -0
- package/button/components/start-icon.d.ts +13 -0
- package/button/components/start-icon.js +53 -0
- package/button/index.d.ts +3 -0
- package/button/index.js +2 -0
- package/form/components/form-field-group.component.d.ts +19 -0
- package/form/components/form-field-group.component.js +41 -0
- package/form/form.component.d.ts +30 -0
- package/form/form.component.js +123 -0
- package/form/form.types.d.ts +7 -0
- package/{core/switcher/switcher-size.js → form/form.types.js} +1 -1
- package/form/index.d.ts +2 -0
- package/form/index.js +2 -0
- package/input/index.d.ts +3 -0
- package/input/index.js +2 -0
- package/input/input.component.d.ts +7 -0
- package/input/input.component.js +42 -0
- package/input/input.types.d.ts +17 -0
- package/input/input.types.js +10 -0
- package/label/components/info-outline-icon.d.ts +3 -0
- package/label/components/info-outline-icon.js +30 -0
- package/label/components/label-icon.d.ts +7 -0
- package/label/components/label-icon.js +43 -0
- package/label/index.d.ts +1 -0
- package/label/index.js +1 -0
- package/label/label.component.d.ts +4 -0
- package/label/label.component.js +44 -0
- package/label/label.types.d.ts +14 -0
- package/{core/tab/types/size.js → label/label.types.js} +1 -1
- package/label/label.utils.d.ts +2 -0
- package/label/label.utils.js +16 -0
- package/package.json +8 -4
- package/{theme/theme.css → theme.css} +8 -8
- package/tooltip/index.d.ts +1 -0
- package/tooltip/index.js +1 -0
- package/tooltip/tooltip.component.d.ts +10 -0
- package/tooltip/tooltip.component.js +51 -0
- package/tooltip/tooltip.types.d.ts +5 -0
- package/core/accordion/accordion.component.d.ts +0 -3
- package/core/accordion/accordion.component.js +0 -50
- package/core/accordion/accordion.props.d.ts +0 -13
- package/core/accordion/accordion.props.js +0 -1
- package/core/accordion/accordion.styles.d.ts +0 -6
- package/core/accordion/accordion.styles.js +0 -12
- package/core/accordion/index.d.ts +0 -2
- package/core/accordion/index.js +0 -1
- package/core/accordion-details/accordion-details.component.d.ts +0 -3
- package/core/accordion-details/accordion-details.component.js +0 -16
- package/core/accordion-details/accordion-details.props.d.ts +0 -4
- package/core/accordion-details/accordion-details.styles.d.ts +0 -6
- package/core/accordion-details/accordion-details.styles.js +0 -12
- package/core/accordion-details/index.d.ts +0 -2
- package/core/accordion-details/index.js +0 -1
- package/core/accordion-header/accordion-header.component.d.ts +0 -3
- package/core/accordion-header/accordion-header.component.js +0 -48
- package/core/accordion-header/accordion-header.props.d.ts +0 -11
- package/core/accordion-header/accordion-header.props.js +0 -1
- package/core/accordion-header/accordion-header.styles.d.ts +0 -19
- package/core/accordion-header/accordion-header.styles.js +0 -44
- package/core/accordion-header/index.d.ts +0 -2
- package/core/accordion-header/index.js +0 -1
- package/core/arrow/arrow.component.d.ts +0 -3
- package/core/arrow/arrow.component.js +0 -23
- package/core/arrow/arrow.mixin.d.ts +0 -6
- package/core/arrow/arrow.mixin.js +0 -4
- package/core/arrow/arrow.props.d.ts +0 -14
- package/core/arrow/arrow.props.js +0 -6
- package/core/arrow/arrow.styles.d.ts +0 -9
- package/core/arrow/arrow.styles.js +0 -18
- package/core/arrow/index.d.ts +0 -2
- package/core/arrow/index.js +0 -1
- package/core/arrow-tick/arrow-tick.component.d.ts +0 -3
- package/core/arrow-tick/arrow-tick.component.js +0 -28
- package/core/arrow-tick/arrow-tick.mixin.d.ts +0 -6
- package/core/arrow-tick/arrow-tick.mixin.js +0 -4
- package/core/arrow-tick/arrow-tick.props.d.ts +0 -14
- package/core/arrow-tick/arrow-tick.props.js +0 -6
- package/core/arrow-tick/arrow-tick.styles.d.ts +0 -7
- package/core/arrow-tick/arrow-tick.styles.js +0 -18
- package/core/arrow-tick/index.d.ts +0 -2
- package/core/arrow-tick/index.js +0 -1
- package/core/button/button.component.d.ts +0 -9
- package/core/button/button.utils.d.ts +0 -3
- package/core/button/button.utils.js +0 -18
- package/core/button/components/end-icon.d.ts +0 -12
- package/core/button/components/end-icon.js +0 -33
- package/core/button/components/start-icon.d.ts +0 -14
- package/core/button/components/start-icon.js +0 -40
- package/core/button/index.d.ts +0 -4
- package/core/button/index.js +0 -3
- package/core/check-box/check-box.component.d.ts +0 -3
- package/core/check-box/check-box.component.js +0 -62
- package/core/check-box/check-box.mixin.d.ts +0 -4
- package/core/check-box/check-box.mixin.js +0 -8
- package/core/check-box/check-box.props.d.ts +0 -15
- package/core/check-box/check-box.props.js +0 -1
- package/core/check-box/check-box.styles.d.ts +0 -19
- package/core/check-box/check-box.styles.js +0 -42
- package/core/check-box/check-box.utils.d.ts +0 -3
- package/core/check-box/check-box.utils.js +0 -21
- package/core/check-box/index.d.ts +0 -2
- package/core/check-box/index.js +0 -1
- package/core/check-box/types/index.d.ts +0 -2
- package/core/check-box/types/index.js +0 -2
- package/core/check-box/types/size.d.ts +0 -4
- package/core/check-box/types/size.js +0 -4
- package/core/check-box/types/type.d.ts +0 -4
- package/core/check-box/types/type.js +0 -4
- package/core/check-box-group/check-box-group.component.d.ts +0 -3
- package/core/check-box-group/check-box-group.component.js +0 -74
- package/core/check-box-group/check-box-group.mixin.d.ts +0 -5
- package/core/check-box-group/check-box-group.mixin.js +0 -10
- package/core/check-box-group/check-box-group.props.d.ts +0 -19
- package/core/check-box-group/check-box-group.props.js +0 -1
- package/core/check-box-group/check-box-group.styles.d.ts +0 -19
- package/core/check-box-group/check-box-group.styles.js +0 -33
- package/core/check-box-group/index.d.ts +0 -2
- package/core/check-box-group/index.js +0 -1
- package/core/check-box-group/types/index.d.ts +0 -1
- package/core/check-box-group/types/index.js +0 -1
- package/core/check-box-group/types/label-position.d.ts +0 -4
- package/core/check-box-group/types/label-position.js +0 -4
- package/core/cross-button/cross-button.component.d.ts +0 -3
- package/core/cross-button/cross-button.component.js +0 -35
- package/core/cross-button/cross-button.props.d.ts +0 -8
- package/core/cross-button/cross-button.props.js +0 -1
- package/core/cross-button/cross-button.styles.d.ts +0 -9
- package/core/cross-button/cross-button.styles.js +0 -21
- package/core/cross-button/index.d.ts +0 -2
- package/core/cross-button/index.js +0 -1
- package/core/cross-button/types/index.d.ts +0 -1
- package/core/cross-button/types/index.js +0 -1
- package/core/cross-button/types/size.d.ts +0 -6
- package/core/cross-button/types/size.js +0 -6
- package/core/dot/dot.component.d.ts +0 -3
- package/core/dot/dot.component.js +0 -17
- package/core/dot/dot.props.d.ts +0 -4
- package/core/dot/dot.props.js +0 -1
- package/core/dot/dot.styles.d.ts +0 -18
- package/core/dot/dot.styles.js +0 -32
- package/core/dot/index.d.ts +0 -2
- package/core/dot/index.js +0 -1
- package/core/dots-navigation/dots-navigation.component.d.ts +0 -3
- package/core/dots-navigation/dots-navigation.component.js +0 -24
- package/core/dots-navigation/dots-navigation.props.d.ts +0 -5
- package/core/dots-navigation/dots-navigation.props.js +0 -1
- package/core/dots-navigation/dots-navigation.styles.d.ts +0 -6
- package/core/dots-navigation/dots-navigation.styles.js +0 -15
- package/core/dots-navigation/index.d.ts +0 -2
- package/core/dots-navigation/index.js +0 -1
- package/core/input/index.d.ts +0 -2
- package/core/input/index.js +0 -1
- package/core/input/input.component.d.ts +0 -3
- package/core/input/input.component.js +0 -293
- package/core/input/input.mixin.d.ts +0 -18
- package/core/input/input.mixin.js +0 -25
- package/core/input/input.props.d.ts +0 -40
- package/core/input/input.props.js +0 -1
- package/core/input/input.styles.d.ts +0 -78
- package/core/input/input.styles.js +0 -148
- package/core/input/input.utils.d.ts +0 -4
- package/core/input/input.utils.js +0 -30
- package/core/input/types/index.d.ts +0 -1
- package/core/input/types/index.js +0 -1
- package/core/input/types/type.d.ts +0 -4
- package/core/input/types/type.js +0 -4
- package/core/modal/index.d.ts +0 -2
- package/core/modal/index.js +0 -1
- package/core/modal/modal-menu-context.d.ts +0 -5
- package/core/modal/modal-menu-context.js +0 -10
- package/core/modal/modal.component.d.ts +0 -3
- package/core/modal/modal.component.js +0 -97
- package/core/modal/modal.mixin.d.ts +0 -7
- package/core/modal/modal.mixin.js +0 -4
- package/core/modal/modal.props.d.ts +0 -16
- package/core/modal/modal.props.js +0 -1
- package/core/modal/modal.styles.d.ts +0 -22
- package/core/modal/modal.styles.js +0 -51
- package/core/modal/modal.utils.d.ts +0 -1
- package/core/modal/modal.utils.js +0 -4
- package/core/modal/types/index.d.ts +0 -1
- package/core/modal/types/index.js +0 -1
- package/core/modal/types/size.d.ts +0 -7
- package/core/modal/types/size.js +0 -7
- package/core/modal-actions/index.d.ts +0 -2
- package/core/modal-actions/index.js +0 -1
- package/core/modal-actions/modal-actions.component.d.ts +0 -3
- package/core/modal-actions/modal-actions.component.js +0 -18
- package/core/modal-actions/modal-actions.props.d.ts +0 -8
- package/core/modal-actions/modal-actions.props.js +0 -1
- package/core/modal-actions/modal-actions.styles.d.ts +0 -7
- package/core/modal-actions/modal-actions.styles.js +0 -17
- package/core/modal-actions/types/align.d.ts +0 -5
- package/core/modal-actions/types/align.js +0 -5
- package/core/modal-actions/types/index.d.ts +0 -1
- package/core/modal-actions/types/index.js +0 -1
- package/core/modal-content/index.d.ts +0 -2
- package/core/modal-content/index.js +0 -1
- package/core/modal-content/modal-content.component.d.ts +0 -3
- package/core/modal-content/modal-content.component.js +0 -15
- package/core/modal-content/modal-content.props.d.ts +0 -4
- package/core/modal-content/modal-content.props.js +0 -1
- package/core/modal-content/modal-content.styles.d.ts +0 -6
- package/core/modal-content/modal-content.styles.js +0 -12
- package/core/modal-title/index.d.ts +0 -2
- package/core/modal-title/index.js +0 -1
- package/core/modal-title/modal-title.component.d.ts +0 -6
- package/core/modal-title/modal-title.component.js +0 -37
- package/core/modal-title/modal-title.props.d.ts +0 -14
- package/core/modal-title/modal-title.props.js +0 -1
- package/core/modal-title/modal-title.styles.d.ts +0 -31
- package/core/modal-title/modal-title.styles.js +0 -64
- package/core/modal-title/types/index.d.ts +0 -1
- package/core/modal-title/types/index.js +0 -1
- package/core/modal-title/types/variant.d.ts +0 -4
- package/core/modal-title/types/variant.js +0 -4
- package/core/pagination/index.d.ts +0 -2
- package/core/pagination/index.js +0 -1
- package/core/pagination/pagination.component.d.ts +0 -3
- package/core/pagination/pagination.component.js +0 -81
- package/core/pagination/pagination.props.d.ts +0 -11
- package/core/pagination/pagination.props.js +0 -1
- package/core/pagination/pagination.styles.d.ts +0 -19
- package/core/pagination/pagination.styles.js +0 -36
- package/core/popper/index.d.ts +0 -2
- package/core/popper/index.js +0 -1
- package/core/popper/popper.component.d.ts +0 -3
- package/core/popper/popper.component.js +0 -150
- package/core/popper/popper.mixin.d.ts +0 -17
- package/core/popper/popper.mixin.js +0 -5
- package/core/popper/popper.props.d.ts +0 -41
- package/core/popper/popper.props.js +0 -1
- package/core/popper/popper.styles.d.ts +0 -25
- package/core/popper/popper.styles.js +0 -48
- package/core/popper/popper.utils.d.ts +0 -1
- package/core/popper/popper.utils.js +0 -10
- package/core/popper/types/index.d.ts +0 -3
- package/core/popper/types/index.js +0 -3
- package/core/popper/types/phases.d.ts +0 -11
- package/core/popper/types/phases.js +0 -11
- package/core/popper/types/position.d.ts +0 -17
- package/core/popper/types/position.js +0 -17
- package/core/popper/types/strategy.d.ts +0 -4
- package/core/popper/types/strategy.js +0 -4
- package/core/radio/index.d.ts +0 -3
- package/core/radio/index.js +0 -2
- package/core/radio/radio.component.d.ts +0 -3
- package/core/radio/radio.component.js +0 -38
- package/core/radio/radio.mixin.d.ts +0 -13
- package/core/radio/radio.mixin.js +0 -13
- package/core/radio/radio.props.d.ts +0 -13
- package/core/radio/radio.props.js +0 -1
- package/core/radio/radio.styles.d.ts +0 -19
- package/core/radio/radio.styles.js +0 -44
- package/core/radio/size.d.ts +0 -4
- package/core/radio/size.js +0 -4
- package/core/radio-group/index.d.ts +0 -2
- package/core/radio-group/index.js +0 -1
- package/core/radio-group/radio-group.component.d.ts +0 -3
- package/core/radio-group/radio-group.component.js +0 -48
- package/core/radio-group/radio-group.props.d.ts +0 -15
- package/core/radio-group/radio-group.props.js +0 -1
- package/core/radio-group/radio-group.styles.d.ts +0 -14
- package/core/radio-group/radio-group.styles.js +0 -30
- package/core/switcher/index.d.ts +0 -3
- package/core/switcher/index.js +0 -2
- package/core/switcher/switcher-size.d.ts +0 -5
- package/core/switcher/switcher.component.d.ts +0 -3
- package/core/switcher/switcher.component.js +0 -54
- package/core/switcher/switcher.mixin.d.ts +0 -21
- package/core/switcher/switcher.mixin.js +0 -17
- package/core/switcher/switcher.props.d.ts +0 -14
- package/core/switcher/switcher.props.js +0 -1
- package/core/switcher/switcher.styles.d.ts +0 -27
- package/core/switcher/switcher.styles.js +0 -54
- package/core/switcher/switcher.utils.d.ts +0 -4
- package/core/switcher/switcher.utils.js +0 -37
- package/core/switcher-group/index.d.ts +0 -2
- package/core/switcher-group/index.js +0 -1
- package/core/switcher-group/switcher-group.component.d.ts +0 -3
- package/core/switcher-group/switcher-group.component.js +0 -41
- package/core/switcher-group/switcher-group.props.d.ts +0 -13
- package/core/switcher-group/switcher-group.props.js +0 -1
- package/core/switcher-group/switcher-group.styles.d.ts +0 -10
- package/core/switcher-group/switcher-group.styles.js +0 -30
- package/core/tab/index.d.ts +0 -2
- package/core/tab/index.js +0 -1
- package/core/tab/tab.component.d.ts +0 -6
- package/core/tab/tab.component.js +0 -52
- package/core/tab/tab.mixin.d.ts +0 -11
- package/core/tab/tab.mixin.js +0 -15
- package/core/tab/tab.props.d.ts +0 -15
- package/core/tab/tab.props.js +0 -1
- package/core/tab/tab.styles.d.ts +0 -26
- package/core/tab/tab.styles.js +0 -61
- package/core/tab/types/index.d.ts +0 -1
- package/core/tab/types/index.js +0 -1
- package/core/tab/types/size.d.ts +0 -5
- package/core/tab-panel/index.d.ts +0 -2
- package/core/tab-panel/index.js +0 -1
- package/core/tab-panel/tab-panel.component.d.ts +0 -3
- package/core/tab-panel/tab-panel.component.js +0 -18
- package/core/tab-panel/tab-panel.props.d.ts +0 -6
- package/core/tab-panel/tab-panel.props.js +0 -1
- package/core/tab-panel/tab-panel.styles.d.ts +0 -6
- package/core/tab-panel/tab-panel.styles.js +0 -12
- package/core/upload-input/index.d.ts +0 -2
- package/core/upload-input/index.js +0 -1
- package/core/upload-input/upload-input.component.d.ts +0 -3
- package/core/upload-input/upload-input.component.js +0 -68
- package/core/upload-input/upload-input.props.d.ts +0 -9
- package/core/upload-input/upload-input.props.js +0 -1
- package/core/upload-input/upload-input.styles.d.ts +0 -11
- package/core/upload-input/upload-input.styles.js +0 -53
- package/hooks/README.md +0 -26
- package/hooks/use-controlled.d.ts +0 -1
- package/hooks/use-controlled.js +0 -20
- package/hooks/use-debounce.d.ts +0 -2
- package/hooks/use-debounce.js +0 -19
- package/hooks/use-drag.d.ts +0 -5
- package/hooks/use-drag.js +0 -37
- package/hooks/use-enhanced-effect.d.ts +0 -3
- package/hooks/use-enhanced-effect.js +0 -3
- package/hooks/use-event-callback.d.ts +0 -4
- package/hooks/use-event-callback.js +0 -19
- package/hooks/use-pagination.d.ts +0 -3
- package/hooks/use-pagination.js +0 -106
- package/hooks/use-portal.d.ts +0 -14
- package/hooks/use-portal.js +0 -75
- package/theme/README.md +0 -46
- package/theme/entity/index.d.ts +0 -1
- package/theme/entity/index.js +0 -1
- package/theme/entity/theme.d.ts +0 -34
- package/theme/hooks/index.d.ts +0 -2
- package/theme/hooks/index.js +0 -2
- package/theme/hooks/use-media-query.d.ts +0 -1
- package/theme/hooks/use-media-query.js +0 -27
- package/theme/hooks/use-theme.d.ts +0 -2
- package/theme/hooks/use-theme.js +0 -4
- package/theme/index.d.ts +0 -3
- package/theme/index.js +0 -1
- package/theme/roots/breakpoints/entity/breakpoints-map.d.ts +0 -8
- package/theme/roots/breakpoints/entity/breakpoints.d.ts +0 -73
- package/theme/roots/breakpoints/entity/create-breakpoints.d.ts +0 -3
- package/theme/roots/breakpoints/entity/create-breakpoints.js +0 -65
- package/theme/roots/breakpoints/entity/default-breakpoints.d.ts +0 -26
- package/theme/roots/breakpoints/entity/default-breakpoints.js +0 -22
- package/theme/roots/breakpoints/entity/index.d.ts +0 -3
- package/theme/roots/breakpoints/entity/index.js +0 -2
- package/theme/roots/breakpoints/index.d.ts +0 -3
- package/theme/roots/breakpoints/index.js +0 -1
- package/theme/roots/common-styles.d.ts +0 -2
- package/theme/roots/common-styles.js +0 -6
- package/theme/roots/index.d.ts +0 -2
- package/theme/roots/index.js +0 -2
- package/theme/roots/palette/entity/colors-map.d.ts +0 -4
- package/theme/roots/palette/entity/default-palette.d.ts +0 -282
- package/theme/roots/palette/entity/default-palette.js +0 -22
- package/theme/roots/palette/entity/index.d.ts +0 -2
- package/theme/roots/palette/entity/index.js +0 -2
- package/theme/roots/palette/index.d.ts +0 -2
- package/theme/roots/palette/index.js +0 -1
- package/theme/roots/shadows/entity/default-shadows.d.ts +0 -16
- package/theme/roots/shadows/entity/default-shadows.js +0 -5
- package/theme/roots/shadows/entity/index.d.ts +0 -2
- package/theme/roots/shadows/entity/index.js +0 -2
- package/theme/roots/shadows/entity/shadows-map.d.ts +0 -4
- package/theme/roots/shadows/index.d.ts +0 -2
- package/theme/roots/shadows/index.js +0 -1
- package/theme/roots/shape/index.d.ts +0 -1
- package/theme/roots/shape/index.js +0 -1
- package/theme/roots/shape/shape.props.d.ts +0 -5
- package/theme/roots/shape/shape.props.js +0 -1
- package/theme/roots/typography/entity/default-typography.d.ts +0 -398
- package/theme/roots/typography/entity/default-typography.js +0 -237
- package/theme/roots/typography/entity/index.d.ts +0 -1
- package/theme/roots/typography/entity/index.js +0 -1
- package/theme/roots/typography/index.d.ts +0 -3
- package/theme/roots/typography/index.js +0 -2
- package/theme/roots/typography/typography.component.d.ts +0 -2
- package/theme/roots/typography/typography.component.js +0 -7
- package/theme/roots/typography/typography.props.d.ts +0 -15
- package/theme/roots/typography/typography.props.js +0 -1
- package/theme/theme-provider/index.d.ts +0 -2
- package/theme/theme-provider/index.js +0 -1
- package/theme/theme-provider/theme-provider.context.d.ts +0 -4
- package/theme/theme-provider/theme-provider.context.js +0 -48
- package/theme/theme-provider/theme-provider.props.d.ts +0 -6
- package/theme/theme-provider/theme-provider.props.js +0 -1
- package/utils/README.md +0 -11
- package/utils/functions/apply-display-names.d.ts +0 -6
- package/utils/functions/apply-display-names.js +0 -12
- package/utils/functions/apply-polymorphic-function-prop.d.ts +0 -6
- package/utils/functions/apply-polymorphic-function-prop.js +0 -11
- package/utils/functions/color-picker/color-converters.d.ts +0 -11
- package/utils/functions/color-picker/color-converters.js +0 -159
- package/utils/functions/color-picker/map-number.d.ts +0 -1
- package/utils/functions/color-picker/map-number.js +0 -3
- package/utils/functions/color-picker/restrict-number.d.ts +0 -1
- package/utils/functions/color-picker/restrict-number.js +0 -8
- package/utils/functions/convert-to-string.d.ts +0 -1
- package/utils/functions/convert-to-string.js +0 -3
- package/utils/functions/escape-regexp.d.ts +0 -1
- package/utils/functions/escape-regexp.js +0 -3
- package/utils/functions/generate-class-names.d.ts +0 -1
- package/utils/functions/generate-class-names.js +0 -22
- package/utils/functions/get-elem-document-coords.d.ts +0 -6
- package/utils/functions/get-elem-document-coords.js +0 -21
- package/utils/functions/ignore-event.d.ts +0 -1
- package/utils/functions/ignore-event.js +0 -9
- package/utils/functions/index.d.ts +0 -14
- package/utils/functions/index.js +0 -15
- package/utils/functions/intrinsic-component.d.ts +0 -0
- package/utils/functions/intrinsic-component.js +0 -28
- package/utils/functions/object-keys.d.ts +0 -6
- package/utils/functions/object-keys.js +0 -6
- package/utils/functions/object-values.d.ts +0 -7
- package/utils/functions/object-values.js +0 -6
- package/utils/functions/on-click-by-mouse-down.d.ts +0 -2
- package/utils/functions/on-click-by-mouse-down.js +0 -9
- package/utils/functions/scrollbar.d.ts +0 -2
- package/utils/functions/scrollbar.js +0 -6
- package/utils/functions/set-ref.d.ts +0 -8
- package/utils/functions/set-ref.js +0 -13
- package/utils/functions/slider/utils.d.ts +0 -47
- package/utils/functions/slider/utils.js +0 -124
- package/utils/functions/use-fork-ref.d.ts +0 -2
- package/utils/functions/use-fork-ref.js +0 -18
- package/utils/types/color/icon-button-color.d.ts +0 -5
- package/utils/types/color/icon-button-color.js +0 -5
- package/utils/types/color/index.d.ts +0 -2
- package/utils/types/color/index.js +0 -2
- package/utils/types/color/input-background-color.d.ts +0 -4
- package/utils/types/color/input-background-color.js +0 -4
- package/utils/types/css/align.d.ts +0 -11
- package/utils/types/css/align.js +0 -11
- package/utils/types/css/breakpoint.d.ts +0 -18
- package/utils/types/css/breakpoint.js +0 -18
- package/utils/types/css/direction.d.ts +0 -8
- package/utils/types/css/direction.js +0 -4
- package/utils/types/css/index.d.ts +0 -4
- package/utils/types/css/index.js +0 -4
- package/utils/types/css/position.d.ts +0 -6
- package/utils/types/css/position.js +0 -6
- package/utils/types/index.d.ts +0 -8
- package/utils/types/index.js +0 -3
- package/utils/types/intrinsic-component.d.ts +0 -1
- package/utils/types/keys.d.ts +0 -4
- package/utils/types/palette/color.d.ts +0 -133
- package/utils/types/palette/color.js +0 -133
- package/utils/types/palette/index.d.ts +0 -1
- package/utils/types/palette/index.js +0 -1
- package/utils/types/position/index.d.ts +0 -1
- package/utils/types/position/index.js +0 -1
- package/utils/types/position/position.d.ts +0 -6
- package/utils/types/position/position.js +0 -6
- package/utils/types/prop-types/index.d.ts +0 -1
- package/utils/types/prop-types/index.js +0 -1
- package/utils/types/prop-types/record.d.ts +0 -1
- package/utils/types/prop-types/record.js +0 -6
- package/utils/types/shadows/index.d.ts +0 -1
- package/utils/types/shadows/index.js +0 -1
- package/utils/types/shadows/shadows.d.ts +0 -14
- package/utils/types/shadows/shadows.js +0 -14
- package/utils/types/shape/border-radius-size.d.ts +0 -5
- package/utils/types/shape/border-radius-size.js +0 -5
- package/utils/types/shape/index.d.ts +0 -1
- package/utils/types/shape/index.js +0 -1
- package/utils/types/size/index.d.ts +0 -1
- package/utils/types/size/index.js +0 -1
- package/utils/types/size/input-size.d.ts +0 -4
- package/utils/types/size/input-size.js +0 -4
- package/utils/types/stylable-component.d.ts +0 -7
- package/utils/types/typography/font-variant.d.ts +0 -58
- package/utils/types/typography/font-variant.js +0 -58
- package/utils/types/typography/font-weight.d.ts +0 -11
- package/utils/types/typography/font-weight.js +0 -11
- package/utils/types/typography/index.d.ts +0 -4
- package/utils/types/typography/index.js +0 -4
- package/utils/types/typography/text-align.d.ts +0 -5
- package/utils/types/typography/text-align.js +0 -5
- package/utils/types/typography/text-decoration.d.ts +0 -5
- package/utils/types/typography/text-decoration.js +0 -5
- package/utils/types/with.d.ts +0 -4
- /package/{core/accordion-details/accordion-details.props.js → tooltip/tooltip.types.js} +0 -0
- /package/{utils/types → types}/values.d.ts +0 -0
- /package/utils/{functions/shadcn-utils.d.ts → cn.d.ts} +0 -0
- /package/utils/{functions/shadcn-utils.js → cn.js} +0 -0
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { CheckBoxProps, CheckBoxSizeType } from './check-box.props';
|
|
2
|
-
declare const Styled: {
|
|
3
|
-
CheckBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
4
|
-
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
5
|
-
}>, never>, {
|
|
6
|
-
$size: CheckBoxSizeType;
|
|
7
|
-
checked: boolean;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
} & {
|
|
10
|
-
theme: import("styled-components").DefaultTheme;
|
|
11
|
-
}>> & string;
|
|
12
|
-
Input: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
13
|
-
ref?: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
14
|
-
}>, never>, never>> & string;
|
|
15
|
-
UnCheckedIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
16
|
-
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
17
|
-
}>, never>, CheckBoxProps>> & string;
|
|
18
|
-
};
|
|
19
|
-
export default Styled;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { applyDisplayNames, generateClassNames } from '../../utils/functions';
|
|
3
|
-
import { Color as PColor } from '../../utils/types/palette';
|
|
4
|
-
import { sizeCheckboxMixin } from './check-box.mixin';
|
|
5
|
-
import { Size } from './types';
|
|
6
|
-
var baseClassName = 'CheckBox';
|
|
7
|
-
var Input = /*#__PURE__*/styled.input.attrs({
|
|
8
|
-
className: generateClassNames(baseClassName, 'Input'),
|
|
9
|
-
type: 'checkbox'
|
|
10
|
-
}).withConfig({
|
|
11
|
-
componentId: "sc-1cs9pmq-0"
|
|
12
|
-
})(function (_ref) {
|
|
13
|
-
var _ref$disabled = _ref.disabled,
|
|
14
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
15
|
-
return css(["position:absolute;top:0;left:0;width:100%;height:100%;margin:0;opacity:0;padding:0;cursor:", ";z-index:1;"], disabled ? 'default' : 'pointer');
|
|
16
|
-
});
|
|
17
|
-
var UnCheckedIcon = /*#__PURE__*/styled.span.attrs({
|
|
18
|
-
className: generateClassNames(baseClassName, 'icon')
|
|
19
|
-
}).withConfig({
|
|
20
|
-
componentId: "sc-1cs9pmq-1"
|
|
21
|
-
})(function () {
|
|
22
|
-
return css(["display:flex;opacity:0;transition:all 100ms ease-out;"]);
|
|
23
|
-
});
|
|
24
|
-
var CheckBox = /*#__PURE__*/styled.span.attrs({
|
|
25
|
-
className: generateClassNames(baseClassName, 'root')
|
|
26
|
-
}).withConfig({
|
|
27
|
-
componentId: "sc-1cs9pmq-2"
|
|
28
|
-
})(function (_ref2) {
|
|
29
|
-
var palette = _ref2.theme.palette,
|
|
30
|
-
_ref2$$size = _ref2.$size,
|
|
31
|
-
$size = _ref2$$size === void 0 ? Size.Sm : _ref2$$size,
|
|
32
|
-
checked = _ref2.checked,
|
|
33
|
-
_ref2$disabled = _ref2.disabled,
|
|
34
|
-
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled;
|
|
35
|
-
return css(["position:relative;display:flex;align-items:center;justify-content:center;background:", ";border:1px solid ", ";border-radius:1px;outline:none;text-align:center;transition:all 100ms ease-out;cursor:", ";", " &:hover{", "{", "}}", ""], checked ? palette[PColor.AccentPrimary] : palette[PColor.BackgroundStateless], checked ? palette[PColor.AccentPrimary] : palette[PColor.BackgroundPrimaryStateless], disabled ? 'default' : 'pointer', sizeCheckboxMixin[$size], UnCheckedIcon, !disabled && css(["opacity:1;"]), disabled && css(["background:", ";border:1px solid ", ";"], checked ? palette[PColor.Accent_2_8_Opacity] : palette[PColor.BackgroundActive], checked ? 'transparent' : palette[PColor.BordersSecondary]));
|
|
36
|
-
});
|
|
37
|
-
var Styled = applyDisplayNames({
|
|
38
|
-
CheckBox: CheckBox,
|
|
39
|
-
Input: Input,
|
|
40
|
-
UnCheckedIcon: UnCheckedIcon
|
|
41
|
-
});
|
|
42
|
-
export default Styled;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Size } from './types';
|
|
2
|
-
export var getCheckboxIconSize = function getCheckboxIconSize(size) {
|
|
3
|
-
switch (size) {
|
|
4
|
-
case Size.Md:
|
|
5
|
-
return 14;
|
|
6
|
-
case Size.Sm:
|
|
7
|
-
return 10;
|
|
8
|
-
default:
|
|
9
|
-
return 10;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
export var getCheckboxInfoIconSize = function getCheckboxInfoIconSize(size) {
|
|
13
|
-
switch (size) {
|
|
14
|
-
case Size.Md:
|
|
15
|
-
return 14;
|
|
16
|
-
case Size.Sm:
|
|
17
|
-
return 12;
|
|
18
|
-
default:
|
|
19
|
-
return 12;
|
|
20
|
-
}
|
|
21
|
-
};
|
package/core/check-box/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './check-box.component';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { CheckBoxGroupProps } from './check-box-group.props';
|
|
2
|
-
declare const CheckBoxGroup: ({ size, label, checkBoxProps, checkBoxGroupProps, readOnly, disabled, labelPosition, icon, checked, ref, ...rest }: CheckBoxGroupProps) => JSX.Element;
|
|
3
|
-
export default CheckBoxGroup;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["size", "label", "checkBoxProps", "checkBoxGroupProps", "readOnly", "disabled", "labelPosition", "icon", "checked", "ref"];
|
|
5
|
-
import React, { useRef, useState } from 'react';
|
|
6
|
-
import { lightPalette } from '../../theme/roots/palette';
|
|
7
|
-
import { cn } from '../../utils/functions/shadcn-utils';
|
|
8
|
-
import { Color } from '../../utils/types/palette';
|
|
9
|
-
import CheckBox from '../check-box';
|
|
10
|
-
import { getCheckboxInfoIconSize } from '../check-box/check-box.utils';
|
|
11
|
-
import { Size } from '../check-box/types';
|
|
12
|
-
import { LabelPosition } from './types';
|
|
13
|
-
var CheckBoxGroup = function CheckBoxGroup(_ref) {
|
|
14
|
-
var _ref$size = _ref.size,
|
|
15
|
-
size = _ref$size === void 0 ? Size.Sm : _ref$size,
|
|
16
|
-
label = _ref.label,
|
|
17
|
-
checkBoxProps = _ref.checkBoxProps,
|
|
18
|
-
checkBoxGroupProps = _ref.checkBoxGroupProps,
|
|
19
|
-
_ref$readOnly = _ref.readOnly,
|
|
20
|
-
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
|
|
21
|
-
_ref$disabled = _ref.disabled,
|
|
22
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
23
|
-
_ref$labelPosition = _ref.labelPosition,
|
|
24
|
-
labelPosition = _ref$labelPosition === void 0 ? LabelPosition.After : _ref$labelPosition,
|
|
25
|
-
icon = _ref.icon,
|
|
26
|
-
_ref$checked = _ref.checked,
|
|
27
|
-
checked = _ref$checked === void 0 ? false : _ref$checked,
|
|
28
|
-
ref = _ref.ref,
|
|
29
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
30
|
-
var textRef = useRef(null);
|
|
31
|
-
var _useState = useState(false),
|
|
32
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
-
isEllipsisActive = _useState2[0],
|
|
34
|
-
setIsEllipsisActive = _useState2[1];
|
|
35
|
-
var getTextTooltip = function getTextTooltip() {
|
|
36
|
-
if (typeof label === 'string' && isEllipsisActive) {
|
|
37
|
-
return label;
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
var handleTextTooltip = function handleTextTooltip() {
|
|
41
|
-
if (textRef.current !== null && textRef.current) {
|
|
42
|
-
var _textRef$current, _textRef$current2;
|
|
43
|
-
setIsEllipsisActive((textRef === null || textRef === void 0 || (_textRef$current = textRef.current) === null || _textRef$current === void 0 ? void 0 : _textRef$current.offsetWidth) < (textRef === null || textRef === void 0 || (_textRef$current2 = textRef.current) === null || _textRef$current2 === void 0 ? void 0 : _textRef$current2.scrollWidth));
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
var cursorStyleClasses = disabled ? 'cursor-default' : 'cursor-pointer';
|
|
47
|
-
var checkBoxGroupClasses = cn('relative inline-flex max-w-full items-center gap-1', cursorStyleClasses);
|
|
48
|
-
var labelWrapClasses = cn('inline-block flex gap-2 items-center overflow-hidden text-ellipsis whitespace-nowrap text-textprimary',
|
|
49
|
-
//TODO: add data about fonts from ${sizeCheckboxGroupMixin[size]}
|
|
50
|
-
cursorStyleClasses);
|
|
51
|
-
var labelTextClasses = "label-text ".concat(labelPosition === 'before' ? '-order-1' : '');
|
|
52
|
-
return /*#__PURE__*/React.createElement("span", _extends({
|
|
53
|
-
className: checkBoxGroupClasses,
|
|
54
|
-
ref: ref
|
|
55
|
-
}, checkBoxGroupProps, rest), /*#__PURE__*/React.createElement("label", {
|
|
56
|
-
key: "label",
|
|
57
|
-
title: getTextTooltip(),
|
|
58
|
-
onMouseOver: handleTextTooltip,
|
|
59
|
-
ref: textRef,
|
|
60
|
-
className: labelWrapClasses
|
|
61
|
-
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
62
|
-
checkBoxProps: checkBoxProps,
|
|
63
|
-
readOnly: readOnly,
|
|
64
|
-
disabled: disabled,
|
|
65
|
-
checked: checked,
|
|
66
|
-
size: size
|
|
67
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
68
|
-
className: labelTextClasses
|
|
69
|
-
}, label)), typeof icon === 'function' ? icon({
|
|
70
|
-
size: getCheckboxInfoIconSize(size),
|
|
71
|
-
color: lightPalette[Color.IconsSecondary]
|
|
72
|
-
}) : icon);
|
|
73
|
-
};
|
|
74
|
-
export default CheckBoxGroup;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { WithTheme } from '../../theme/entity';
|
|
2
|
-
export declare const sizeCheckboxGroupMixin: {
|
|
3
|
-
sm: ({ theme: { typography: { font }, }, }: WithTheme) => import("styled-components").CSSObject;
|
|
4
|
-
md: ({ theme: { typography: { font }, }, }: WithTheme) => import("styled-components").CSSObject;
|
|
5
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { FontVariant as FV } from '../../utils/types/typography';
|
|
3
|
-
import { Size } from '../check-box/types';
|
|
4
|
-
export var sizeCheckboxGroupMixin = _defineProperty(_defineProperty({}, Size.Sm, function (_ref) {
|
|
5
|
-
var font = _ref.theme.typography.font;
|
|
6
|
-
return font[FV.LabelMedium];
|
|
7
|
-
}), Size.Md, function (_ref2) {
|
|
8
|
-
var font = _ref2.theme.typography.font;
|
|
9
|
-
return font[FV.LabelLarge];
|
|
10
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { IconProps } from '@scaleflex/icons-tw/icon.props';
|
|
2
|
-
import { Ref } from 'react';
|
|
3
|
-
import type { Values } from '../../utils/types';
|
|
4
|
-
import type { CheckBoxProps } from '../check-box';
|
|
5
|
-
import { CheckBoxSizeType, CheckBoxType } from '../check-box/check-box.props';
|
|
6
|
-
import { LabelPosition } from './types';
|
|
7
|
-
export type LabelPositionType = Values<typeof LabelPosition>;
|
|
8
|
-
export interface CheckBoxGroupProps extends CheckBoxProps {
|
|
9
|
-
label?: string;
|
|
10
|
-
checkBoxProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
11
|
-
checkBoxGroupProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
12
|
-
readOnly?: boolean;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
labelPosition?: LabelPositionType;
|
|
15
|
-
size?: CheckBoxSizeType;
|
|
16
|
-
type?: CheckBoxType;
|
|
17
|
-
icon?: React.ReactNode | ((props: IconProps) => React.ReactNode);
|
|
18
|
-
ref?: Ref<HTMLLabelElement>;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { CheckBoxSizeType } from '../check-box/check-box.props';
|
|
2
|
-
import { LabelPositionType } from './check-box-group.props';
|
|
3
|
-
declare const Styled: {
|
|
4
|
-
CheckBoxGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
5
|
-
ref?: ((instance: HTMLLabelElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLLabelElement> | null | undefined;
|
|
6
|
-
}>, never>, {
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}>> & string;
|
|
9
|
-
Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
10
|
-
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
11
|
-
}>, never>, {
|
|
12
|
-
$labelPosition: LabelPositionType | undefined;
|
|
13
|
-
disabled: boolean;
|
|
14
|
-
size: CheckBoxSizeType;
|
|
15
|
-
} & {
|
|
16
|
-
theme: import("styled-components").DefaultTheme;
|
|
17
|
-
}>> & string;
|
|
18
|
-
};
|
|
19
|
-
export default Styled;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { applyDisplayNames, generateClassNames } from '../../utils/functions';
|
|
3
|
-
import { Color as PColor } from '../../utils/types/palette';
|
|
4
|
-
import StyledCheckbox from '../check-box/check-box.styles';
|
|
5
|
-
import { Size } from '../check-box/types';
|
|
6
|
-
import { sizeCheckboxGroupMixin } from './check-box-group.mixin';
|
|
7
|
-
var baseClassName = 'CheckBoxGroup';
|
|
8
|
-
var Label = /*#__PURE__*/styled.span.attrs({
|
|
9
|
-
className: generateClassNames(baseClassName, 'Label')
|
|
10
|
-
}).withConfig({
|
|
11
|
-
componentId: "sc-h0nj0z-0"
|
|
12
|
-
})(function (_ref) {
|
|
13
|
-
var theme = _ref.theme,
|
|
14
|
-
_ref$$labelPosition = _ref.$labelPosition,
|
|
15
|
-
$labelPosition = _ref$$labelPosition === void 0 ? 'after' : _ref$$labelPosition,
|
|
16
|
-
_ref$size = _ref.size,
|
|
17
|
-
size = _ref$size === void 0 ? Size.Sm : _ref$size,
|
|
18
|
-
disabled = _ref.disabled;
|
|
19
|
-
return css(["display:inline-block;align-items:center;", " ", ":4px;color:", ";cursor:", ";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"], sizeCheckboxGroupMixin[size], "margin-".concat($labelPosition === 'after' ? 'left' : 'right'), theme.palette[PColor.TextPrimary], disabled ? 'default' : 'pointer');
|
|
20
|
-
});
|
|
21
|
-
var CheckBoxGroup = /*#__PURE__*/styled.label.attrs({
|
|
22
|
-
className: generateClassNames(baseClassName, 'root')
|
|
23
|
-
}).withConfig({
|
|
24
|
-
componentId: "sc-h0nj0z-1"
|
|
25
|
-
})(function (_ref2) {
|
|
26
|
-
var disabled = _ref2.disabled;
|
|
27
|
-
return css(["position:relative;display:inline-flex;column-gap:4px;align-items:center;max-width:100%;cursor:", ";&:hover{", "{", "}}"], disabled ? 'default' : 'pointer', StyledCheckbox.UnCheckedIcon, !disabled && css(["display:flex;"]));
|
|
28
|
-
});
|
|
29
|
-
var Styled = applyDisplayNames({
|
|
30
|
-
CheckBoxGroup: CheckBoxGroup,
|
|
31
|
-
Label: Label
|
|
32
|
-
});
|
|
33
|
-
export default Styled;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './check-box-group.component';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './label-position';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './label-position';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["size", "ref", "className"];
|
|
4
|
-
import CrossOutline from '@scaleflex/icons-tw/cross-outline';
|
|
5
|
-
import { cn } from '@scaleflex/ui-tw/utils/functions/shadcn-utils';
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { Size } from './types';
|
|
8
|
-
var getIconSize = function getIconSize(sizeName) {
|
|
9
|
-
switch (sizeName) {
|
|
10
|
-
case Size.Lg:
|
|
11
|
-
return 16;
|
|
12
|
-
case Size.Xs:
|
|
13
|
-
return 10;
|
|
14
|
-
case Size.Sm:
|
|
15
|
-
default:
|
|
16
|
-
return 12;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
var CrossButton = function CrossButton(_ref) {
|
|
20
|
-
var _ref$size = _ref.size,
|
|
21
|
-
size = _ref$size === void 0 ? Size.Lg : _ref$size,
|
|
22
|
-
ref = _ref.ref,
|
|
23
|
-
className = _ref.className,
|
|
24
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
-
var crossButtonClasses = cn('flex box-content justify-center items-center cursor-pointer rounded-sm text-icons-secondary', 'hover:text-icons-primary hover:bg-background-hover', 'active:text-icons-primary-hover active:bg-background-active', size === Size.Lg ? 'p-3' : '', size === Size.Md ? 'p-2' : '', size === Size.Sm ? 'p-1.5' : '', size === Size.Xs ? 'p-1' : '', className);
|
|
26
|
-
return /*#__PURE__*/React.createElement("button", _extends({
|
|
27
|
-
className: crossButtonClasses,
|
|
28
|
-
type: "button"
|
|
29
|
-
}, rest, {
|
|
30
|
-
ref: ref
|
|
31
|
-
}), /*#__PURE__*/React.createElement(CrossOutline, {
|
|
32
|
-
size: getIconSize(size)
|
|
33
|
-
}));
|
|
34
|
-
};
|
|
35
|
-
export default CrossButton;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Values } from '../../utils/types';
|
|
2
|
-
import { Size } from './types';
|
|
3
|
-
export type CrossButtonSizeType = Values<typeof Size>;
|
|
4
|
-
export interface CrossButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
5
|
-
className?: string;
|
|
6
|
-
size?: CrossButtonSizeType;
|
|
7
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CrossButtonProps } from './cross-button.props';
|
|
2
|
-
declare const Styled: {
|
|
3
|
-
CrossButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
4
|
-
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
5
|
-
}>, never>, CrossButtonProps & {
|
|
6
|
-
theme: import("styled-components").DefaultTheme;
|
|
7
|
-
}>> & string;
|
|
8
|
-
};
|
|
9
|
-
export default Styled;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import styled, { css } from 'styled-components';
|
|
3
|
-
import { applyDisplayNames, generateClassNames } from '../../utils/functions';
|
|
4
|
-
import { Color as PaletteColor } from '../../utils/types/palette';
|
|
5
|
-
import { Size } from './types';
|
|
6
|
-
var baseClassName = 'CrossButton';
|
|
7
|
-
var crossButtonPaddingMixin = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Size.Xs, css(["padding:5px;height:20px;"])), Size.Sm, css(["padding:6px;height:24px;"])), Size.Md, css(["padding:9px;"])), Size.Lg, css(["padding:12px;"]));
|
|
8
|
-
var CrossButton = /*#__PURE__*/styled.button.attrs({
|
|
9
|
-
className: generateClassNames(baseClassName, 'root')
|
|
10
|
-
}).withConfig({
|
|
11
|
-
componentId: "sc-1etvzpc-0"
|
|
12
|
-
})(function (_ref) {
|
|
13
|
-
var _ref$size = _ref.size,
|
|
14
|
-
size = _ref$size === void 0 ? Size.Lg : _ref$size,
|
|
15
|
-
theme = _ref.theme;
|
|
16
|
-
return css(["display:flex;justify-content:center;align-items:center;cursor:pointer;border-radius:4px;", " color:", ";background:transparent;border:none;transition:all 100ms ease-out;&:hover{color:", ";background:", ";}&:active{color:", ";background:", ";}"], crossButtonPaddingMixin[size], theme.palette[PaletteColor.IconsSecondary], theme.palette[PaletteColor.IconsPrimary], theme.palette[PaletteColor.BackgroundHover], theme.palette[PaletteColor.IconsPrimaryHover], theme.palette[PaletteColor.BackgroundActive]);
|
|
17
|
-
});
|
|
18
|
-
var Styled = applyDisplayNames({
|
|
19
|
-
CrossButton: CrossButton
|
|
20
|
-
});
|
|
21
|
-
export default Styled;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './cross-button.component';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './size';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './size';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["active", "ref"];
|
|
4
|
-
import { cn } from '@scaleflex/ui-tw/utils/functions/shadcn-utils';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
var Dot = function Dot(_ref) {
|
|
7
|
-
var _ref$active = _ref.active,
|
|
8
|
-
active = _ref$active === void 0 ? false : _ref$active,
|
|
9
|
-
ref = _ref.ref,
|
|
10
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
11
|
-
var dotWraperClasses = cn('relative inline-flex items-center justify-center w-1.5 h-1.5 rounded-full border-1 border-solid border-transparent transition-colors duration-100 ease-out bg-borders-primary-stateless', "".concat(active ? 'bg-accent-primary' : ''));
|
|
12
|
-
return /*#__PURE__*/React.createElement("span", _extends({
|
|
13
|
-
className: dotWraperClasses,
|
|
14
|
-
ref: ref
|
|
15
|
-
}, rest));
|
|
16
|
-
};
|
|
17
|
-
export default Dot;
|
package/core/dot/dot.props.d.ts
DELETED
package/core/dot/dot.props.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/core/dot/dot.styles.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const Styled: {
|
|
2
|
-
Dot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
4
|
-
}>, never>, {
|
|
5
|
-
$active: boolean;
|
|
6
|
-
} & {
|
|
7
|
-
theme: import("styled-components").DefaultTheme;
|
|
8
|
-
}>> & string;
|
|
9
|
-
Icon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
10
|
-
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
11
|
-
}>, never>, {
|
|
12
|
-
$visible: boolean;
|
|
13
|
-
$on?: boolean;
|
|
14
|
-
} & {
|
|
15
|
-
theme: import("styled-components").DefaultTheme;
|
|
16
|
-
}>> & string;
|
|
17
|
-
};
|
|
18
|
-
export default Styled;
|
package/core/dot/dot.styles.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { applyDisplayNames, generateClassNames } from '../../utils/functions';
|
|
3
|
-
import { Color as PColor } from '../../utils/types/palette';
|
|
4
|
-
var baseClassName = 'Dot';
|
|
5
|
-
var transitionDuration = 100;
|
|
6
|
-
var Icon = /*#__PURE__*/styled.span.attrs({
|
|
7
|
-
className: generateClassNames(baseClassName, 'Icon')
|
|
8
|
-
}).withConfig({
|
|
9
|
-
componentId: "sc-q9gkc6-0"
|
|
10
|
-
})(function (_ref) {
|
|
11
|
-
var _ref$$visible = _ref.$visible,
|
|
12
|
-
$visible = _ref$$visible === void 0 ? false : _ref$$visible,
|
|
13
|
-
_ref$$on = _ref.$on,
|
|
14
|
-
$on = _ref$$on === void 0 ? false : _ref$$on,
|
|
15
|
-
palette = _ref.theme.palette;
|
|
16
|
-
return css(["position:absolute;top:0;left:0;display:inline-flex;align-items:center;justify-content:center;transition:opacity ", "ms ease-out;opacity:", ";color:", ";"], transitionDuration, $visible ? 1 : 0, palette[$on ? PColor.AccentPrimary : PColor.BordersStrong]);
|
|
17
|
-
});
|
|
18
|
-
var Dot = /*#__PURE__*/styled.span.attrs({
|
|
19
|
-
className: generateClassNames(baseClassName, 'root')
|
|
20
|
-
}).withConfig({
|
|
21
|
-
componentId: "sc-q9gkc6-1"
|
|
22
|
-
})(function (_ref2) {
|
|
23
|
-
var _ref2$$active = _ref2.$active,
|
|
24
|
-
$active = _ref2$$active === void 0 ? false : _ref2$$active,
|
|
25
|
-
theme = _ref2.theme;
|
|
26
|
-
return css(["position:relative;display:inline-flex;align-items:center;justify-content:center;width:6px;height:6px;transition:background-color ", "ms ease-out;border:1px solid transparent;border-radius:50%;", ";"], transitionDuration, $active && "background-color: ".concat(theme.palette[PColor.AccentPrimary]));
|
|
27
|
-
});
|
|
28
|
-
var Styled = applyDisplayNames({
|
|
29
|
-
Dot: Dot,
|
|
30
|
-
Icon: Icon
|
|
31
|
-
});
|
|
32
|
-
export default Styled;
|
package/core/dot/index.d.ts
DELETED
package/core/dot/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './dot.component';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["activeItem", "size", "ref"];
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import Dot from '../dot';
|
|
6
|
-
var DotsNavigation = function DotsNavigation(_ref) {
|
|
7
|
-
var _ref$activeItem = _ref.activeItem,
|
|
8
|
-
activeItem = _ref$activeItem === void 0 ? 0 : _ref$activeItem,
|
|
9
|
-
size = _ref.size,
|
|
10
|
-
ref = _ref.ref,
|
|
11
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
var finalDots = [];
|
|
13
|
-
for (var i = 0; i < size; i++) {
|
|
14
|
-
finalDots.push(/*#__PURE__*/React.createElement(Dot, {
|
|
15
|
-
key: i,
|
|
16
|
-
active: activeItem > -1 && i <= activeItem
|
|
17
|
-
}));
|
|
18
|
-
}
|
|
19
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
20
|
-
className: "flex gap-3",
|
|
21
|
-
ref: ref
|
|
22
|
-
}, rest), finalDots);
|
|
23
|
-
};
|
|
24
|
-
export default DotsNavigation;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const Styled: {
|
|
2
|
-
DotsNavigation: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}>, never>, never>> & string;
|
|
5
|
-
};
|
|
6
|
-
export default Styled;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { applyDisplayNames, generateClassNames } from '../../utils/functions';
|
|
3
|
-
import DotStyled from '../dot/dot.styles';
|
|
4
|
-
var baseClassName = 'DotsNavigation';
|
|
5
|
-
var DotsNavigation = /*#__PURE__*/styled.div.attrs({
|
|
6
|
-
className: generateClassNames(baseClassName, 'root')
|
|
7
|
-
}).withConfig({
|
|
8
|
-
componentId: "sc-1onrpl-0"
|
|
9
|
-
})(function () {
|
|
10
|
-
return css(["", "{margin-left:12px;&:first-child{margin-left:0;}}"], DotStyled.Dot);
|
|
11
|
-
});
|
|
12
|
-
var Styled = applyDisplayNames({
|
|
13
|
-
DotsNavigation: DotsNavigation
|
|
14
|
-
});
|
|
15
|
-
export default Styled;
|