@kubit-ui-web/react-components 1.3.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/calendar/selector/selector.js +2 -2
- package/dist/cjs/components/calendar/selector/selector.js.map +1 -1
- package/dist/cjs/components/carousel/hooks/useCarousel.js +2 -1
- package/dist/cjs/components/carousel/hooks/useCarousel.js.map +1 -1
- package/dist/cjs/components/checkbox/checkboxStandAlone.js +4 -1
- package/dist/cjs/components/checkbox/checkboxStandAlone.js.map +1 -1
- package/dist/cjs/components/checkbox/utils/aria.utils.js +6 -1
- package/dist/cjs/components/checkbox/utils/aria.utils.js.map +1 -1
- package/dist/cjs/components/dropdownSelected/dropdownSelectedStandAlone.js +1 -1
- package/dist/cjs/components/dropdownSelected/dropdownSelectedStandAlone.js.map +1 -1
- package/dist/cjs/components/dropdownSelected/dropdownSelectedUncontrolled.js +10 -0
- package/dist/cjs/components/dropdownSelected/dropdownSelectedUncontrolled.js.map +1 -1
- package/dist/cjs/components/footer/components/footerContent.js +4 -1
- package/dist/cjs/components/footer/components/footerContent.js.map +1 -1
- package/dist/cjs/components/footer/footer.styled.js +3 -0
- package/dist/cjs/components/footer/footer.styled.js.map +1 -1
- package/dist/cjs/components/footer/footerStandAlone.js +1 -1
- package/dist/cjs/components/footer/footerStandAlone.js.map +1 -1
- package/dist/cjs/components/input/components/errorMessage.js +1 -1
- package/dist/cjs/components/input/components/errorMessage.js.map +1 -1
- package/dist/cjs/components/input/components/informationAssociated.js +1 -1
- package/dist/cjs/components/input/components/informationAssociated.js.map +1 -1
- package/dist/cjs/components/input/components/inputIcon.js +15 -2
- package/dist/cjs/components/input/components/inputIcon.js.map +1 -1
- package/dist/cjs/components/input/index.js +1 -0
- package/dist/cjs/components/input/index.js.map +1 -1
- package/dist/cjs/components/input/input.styled.js +12 -8
- package/dist/cjs/components/input/input.styled.js.map +1 -1
- package/dist/cjs/components/input/inputStandAlone.js +10 -3
- package/dist/cjs/components/input/inputStandAlone.js.map +1 -1
- package/dist/cjs/components/input/stories/argtypes.js +36 -0
- package/dist/cjs/components/input/stories/argtypes.js.map +1 -1
- package/dist/cjs/components/inputCurrency/inputCurrencyStandAlone.js +11 -6
- package/dist/cjs/components/inputCurrency/inputCurrencyStandAlone.js.map +1 -1
- package/dist/cjs/components/inputDate/inputDate.js +7 -1
- package/dist/cjs/components/inputDate/inputDate.js.map +1 -1
- package/dist/cjs/components/inputDate/inputDateStandAlone.js +6 -1
- package/dist/cjs/components/inputDate/inputDateStandAlone.js.map +1 -1
- package/dist/cjs/components/inputDate/stories/argtypes.js +9 -2
- package/dist/cjs/components/inputDate/stories/argtypes.js.map +1 -1
- package/dist/cjs/components/inputDropdown/components/popoverSearchList.js +7 -1
- package/dist/cjs/components/inputDropdown/components/popoverSearchList.js.map +1 -1
- package/dist/cjs/components/inputDropdown/hooks/useInputDropdown.js +1 -0
- package/dist/cjs/components/inputDropdown/hooks/useInputDropdown.js.map +1 -1
- package/dist/cjs/components/inputDropdown/index.js +3 -1
- package/dist/cjs/components/inputDropdown/index.js.map +1 -1
- package/dist/cjs/components/inputDropdown/inputDropdown.js +5 -1
- package/dist/cjs/components/inputDropdown/inputDropdown.js.map +1 -1
- package/dist/cjs/components/inputDropdown/inputDropdownStandAlone.js +2 -2
- package/dist/cjs/components/inputDropdown/inputDropdownStandAlone.js.map +1 -1
- package/dist/cjs/components/inputPassword/inputPassword.js +3 -2
- package/dist/cjs/components/inputPassword/inputPassword.js.map +1 -1
- package/dist/cjs/components/inputPassword/stories/argtypes.js +9 -2
- package/dist/cjs/components/inputPassword/stories/argtypes.js.map +1 -1
- package/dist/cjs/components/inputPhone/inputPhoneStandAlone.js +1 -1
- package/dist/cjs/components/inputPhone/inputPhoneStandAlone.js.map +1 -1
- package/dist/cjs/components/inputPhone/stories/argtypes.js +11 -0
- package/dist/cjs/components/inputPhone/stories/argtypes.js.map +1 -1
- package/dist/cjs/components/inputSearch/components/popoverSearchList.js +6 -0
- package/dist/cjs/components/inputSearch/components/popoverSearchList.js.map +1 -1
- package/dist/cjs/components/inputSearch/helpers/filterOptions.js +2 -1
- package/dist/cjs/components/inputSearch/helpers/filterOptions.js.map +1 -1
- package/dist/cjs/components/inputSearch/inputSearchStandAlone.js +6 -2
- package/dist/cjs/components/inputSearch/inputSearchStandAlone.js.map +1 -1
- package/dist/cjs/components/inputSignature/hook/index.js +6 -0
- package/dist/cjs/components/inputSignature/hook/index.js.map +1 -0
- package/dist/cjs/components/inputSignature/hook/useDraw.js +131 -0
- package/dist/cjs/components/inputSignature/hook/useDraw.js.map +1 -0
- package/dist/cjs/components/inputSignature/index.js +15 -0
- package/dist/cjs/components/inputSignature/index.js.map +1 -0
- package/dist/cjs/components/inputSignature/inputSignature.styled.js +19 -0
- package/dist/cjs/components/inputSignature/inputSignature.styled.js.map +1 -0
- package/dist/cjs/components/inputSignature/inputSignatureControlled.js +25 -0
- package/dist/cjs/components/inputSignature/inputSignatureControlled.js.map +1 -0
- package/dist/cjs/components/inputSignature/inputSignatureStandAlone.js +23 -0
- package/dist/cjs/components/inputSignature/inputSignatureStandAlone.js.map +1 -0
- package/dist/cjs/components/inputSignature/inputSignatureUncontrolled.js +44 -0
- package/dist/cjs/components/inputSignature/inputSignatureUncontrolled.js.map +1 -0
- package/dist/cjs/components/inputSignature/stories/argTypes.js +94 -0
- package/dist/cjs/components/inputSignature/stories/argTypes.js.map +1 -0
- package/dist/cjs/components/inputSignature/types/index.js +7 -0
- package/dist/cjs/components/inputSignature/types/index.js.map +1 -0
- package/dist/cjs/components/inputSignature/types/inputSignature.js +3 -0
- package/dist/cjs/components/inputSignature/types/inputSignature.js.map +1 -0
- package/dist/cjs/components/inputSignature/types/inputSignatureState.js +12 -0
- package/dist/cjs/components/inputSignature/types/inputSignatureState.js.map +1 -0
- package/dist/cjs/components/inputSignature/types/inputSignatureTheme.js +3 -0
- package/dist/cjs/components/inputSignature/types/inputSignatureTheme.js.map +1 -0
- package/dist/cjs/components/inputSignature/utils/__tests__/getInputSignatureState.js +27 -0
- package/dist/cjs/components/inputSignature/utils/__tests__/getInputSignatureState.js.map +1 -0
- package/dist/cjs/components/inputSignature/utils/getInputSignatureState.js +21 -0
- package/dist/cjs/components/inputSignature/utils/getInputSignatureState.js.map +1 -0
- package/dist/cjs/components/inputSignature/utils/index.js +6 -0
- package/dist/cjs/components/inputSignature/utils/index.js.map +1 -0
- package/dist/cjs/components/layout/layoutStandAlone.js +1 -1
- package/dist/cjs/components/layout/layoutStandAlone.js.map +1 -1
- package/dist/cjs/components/link/link.js +7 -3
- package/dist/cjs/components/link/link.js.map +1 -1
- package/dist/cjs/components/link/link.styled.js +16 -20
- package/dist/cjs/components/link/link.styled.js.map +1 -1
- package/dist/cjs/components/link/linkStandAlone.js +1 -1
- package/dist/cjs/components/link/linkStandAlone.js.map +1 -1
- package/dist/cjs/components/loader/loader.styled.js +4 -1
- package/dist/cjs/components/loader/loader.styled.js.map +1 -1
- package/dist/cjs/components/loader/loaderStandAlone.js +2 -4
- package/dist/cjs/components/loader/loaderStandAlone.js.map +1 -1
- package/dist/cjs/components/mediaProgressBar/mediaProgressBar.styled.js +14 -8
- package/dist/cjs/components/mediaProgressBar/mediaProgressBar.styled.js.map +1 -1
- package/dist/cjs/components/message/message.styled.js +2 -8
- package/dist/cjs/components/message/message.styled.js.map +1 -1
- package/dist/cjs/components/message/messageStandAlone.js +2 -2
- package/dist/cjs/components/message/messageStandAlone.js.map +1 -1
- package/dist/cjs/components/option/optionStandAlone.js +1 -1
- package/dist/cjs/components/option/optionStandAlone.js.map +1 -1
- package/dist/cjs/components/option/stories/argtypes.js +11 -0
- package/dist/cjs/components/option/stories/argtypes.js.map +1 -1
- package/dist/cjs/components/pillSelector/pillSelector.styled.js +4 -1
- package/dist/cjs/components/pillSelector/pillSelector.styled.js.map +1 -1
- package/dist/cjs/components/pillSelector/pillSelectorControlled.js +23 -1
- package/dist/cjs/components/pillSelector/pillSelectorControlled.js.map +1 -1
- package/dist/cjs/components/pillSelector/pillSelectorStandAlone.js +10 -12
- package/dist/cjs/components/pillSelector/pillSelectorStandAlone.js.map +1 -1
- package/dist/cjs/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.js +1 -1
- package/dist/cjs/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.js.map +1 -1
- package/dist/cjs/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.styled.js +3 -1
- package/dist/cjs/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.styled.js.map +1 -1
- package/dist/cjs/components/radioButtonGroup/radioButtonGroupStandAlone.js +1 -1
- package/dist/cjs/components/radioButtonGroup/radioButtonGroupStandAlone.js.map +1 -1
- package/dist/cjs/components/snackbar/snackbarStandAlone.js +1 -1
- package/dist/cjs/components/snackbar/snackbarStandAlone.js.map +1 -1
- package/dist/cjs/components/table/component/listColumnHeaderPriority.js +5 -3
- package/dist/cjs/components/table/component/listColumnHeaderPriority.js.map +1 -1
- package/dist/cjs/components/table/component/listRowHeaderPriority.js +5 -3
- package/dist/cjs/components/table/component/listRowHeaderPriority.js.map +1 -1
- package/dist/cjs/components/table/component/tableRow.js +5 -3
- package/dist/cjs/components/table/component/tableRow.js.map +1 -1
- package/dist/cjs/components/table/hooks/useContent.js +3 -3
- package/dist/cjs/components/table/hooks/useContent.js.map +1 -1
- package/dist/cjs/components/table/stories/mockTable.js +1 -1
- package/dist/cjs/components/table/stories/mockTable.js.map +1 -1
- package/dist/cjs/components/text/text.styled.js +7 -6
- package/dist/cjs/components/text/text.styled.js.map +1 -1
- package/dist/cjs/components/toggle/components/toggleThreePosition.js +59 -0
- package/dist/cjs/components/toggle/components/toggleThreePosition.js.map +1 -0
- package/dist/cjs/components/toggle/components/toggleTwoPositions.js +34 -0
- package/dist/cjs/components/toggle/components/toggleTwoPositions.js.map +1 -0
- package/dist/cjs/components/toggle/stories/argtypes.js +35 -2
- package/dist/cjs/components/toggle/stories/argtypes.js.map +1 -1
- package/dist/cjs/components/toggle/toggle.styled.js +17 -1
- package/dist/cjs/components/toggle/toggle.styled.js.map +1 -1
- package/dist/cjs/components/toggle/toggleStandAlone.js +4 -69
- package/dist/cjs/components/toggle/toggleStandAlone.js.map +1 -1
- package/dist/cjs/components/tooltip/tooltip.styled.js +0 -1
- package/dist/cjs/components/tooltip/tooltip.styled.js.map +1 -1
- package/dist/cjs/components/tooltip/tooltipUnControlled.js +1 -1
- package/dist/cjs/components/tooltip/tooltipUnControlled.js.map +1 -1
- package/dist/cjs/constants/stylesName.js +1 -0
- package/dist/cjs/constants/stylesName.js.map +1 -1
- package/dist/cjs/designSystem/kubit/assets/icons/icon_inner-shadow.svg +1 -3
- package/dist/cjs/designSystem/kubit/assets/icons/icons_ruler_double.svg +1 -3
- package/dist/cjs/designSystem/kubit/assets/icons/icons_variant.svg +1 -3
- package/dist/cjs/designSystem/kubit/components/input/styles.js +10 -7
- package/dist/cjs/designSystem/kubit/components/input/styles.js.map +1 -1
- package/dist/cjs/designSystem/kubit/components/inputSignature/index.js +19 -0
- package/dist/cjs/designSystem/kubit/components/inputSignature/index.js.map +1 -0
- package/dist/cjs/designSystem/kubit/components/inputSignature/styles.js +87 -0
- package/dist/cjs/designSystem/kubit/components/inputSignature/styles.js.map +1 -0
- package/dist/cjs/designSystem/kubit/components/inputSignature/variants.js +8 -0
- package/dist/cjs/designSystem/kubit/components/inputSignature/variants.js.map +1 -0
- package/dist/cjs/designSystem/kubit/components/mediaButton/styles.js +44 -34
- package/dist/cjs/designSystem/kubit/components/mediaButton/styles.js.map +1 -1
- package/dist/cjs/designSystem/kubit/components/mediaProgressBar/styles.js +34 -22
- package/dist/cjs/designSystem/kubit/components/mediaProgressBar/styles.js.map +1 -1
- package/dist/cjs/designSystem/kubit/components/message/styles.js +11 -4
- package/dist/cjs/designSystem/kubit/components/message/styles.js.map +1 -1
- package/dist/cjs/designSystem/kubit/components/pageControlAutomate/styles.js +38 -15
- package/dist/cjs/designSystem/kubit/components/pageControlAutomate/styles.js.map +1 -1
- package/dist/cjs/designSystem/kubit/components/radioButtonGroup/styles.js +6 -0
- package/dist/cjs/designSystem/kubit/components/radioButtonGroup/styles.js.map +1 -1
- package/dist/cjs/designSystem/kubit/foundations/borders.js +1 -0
- package/dist/cjs/designSystem/kubit/foundations/borders.js.map +1 -1
- package/dist/cjs/designSystem/kubitWireframe/commons/assets/animations/index.js +18 -0
- package/dist/cjs/designSystem/kubitWireframe/commons/assets/animations/index.js.map +1 -0
- package/dist/cjs/designSystem/kubitWireframe/commons/assets/animations/loaders.js +72 -0
- package/dist/cjs/designSystem/kubitWireframe/commons/assets/animations/loaders.js.map +1 -0
- package/dist/cjs/designSystem/kubitWireframe/commons/components/input/styles.js +4 -1
- package/dist/cjs/designSystem/kubitWireframe/commons/components/input/styles.js.map +1 -1
- package/dist/cjs/designSystem/kubitWireframe/commons/components/loader/index.js +19 -0
- package/dist/cjs/designSystem/kubitWireframe/commons/components/loader/index.js.map +1 -0
- package/dist/cjs/designSystem/kubitWireframe/commons/components/loader/styles.js +30 -0
- package/dist/cjs/designSystem/kubitWireframe/commons/components/loader/styles.js.map +1 -0
- package/dist/cjs/designSystem/kubitWireframe/commons/components/loader/variants.js +10 -0
- package/dist/cjs/designSystem/kubitWireframe/commons/components/loader/variants.js.map +1 -0
- package/dist/cjs/designSystem/kubitWireframe/commons/components/message/styles.js +12 -4
- package/dist/cjs/designSystem/kubitWireframe/commons/components/message/styles.js.map +1 -1
- package/dist/cjs/designSystem/kubitWireframe/commons/components/styles.js +2 -0
- package/dist/cjs/designSystem/kubitWireframe/commons/components/styles.js.map +1 -1
- package/dist/cjs/designSystem/kubitWireframe/commons/components/text/styles.js.map +1 -1
- package/dist/cjs/designSystem/kubitWireframe/commons/components/variants.js +1 -0
- package/dist/cjs/designSystem/kubitWireframe/commons/components/variants.js.map +1 -1
- package/dist/cjs/hooks/useInput/helpers/modifyInputNumberValue.js +17 -0
- package/dist/cjs/hooks/useInput/helpers/modifyInputNumberValue.js.map +1 -0
- package/dist/cjs/hooks/useInput/useInput.js +41 -19
- package/dist/cjs/hooks/useInput/useInput.js.map +1 -1
- package/dist/cjs/hooks/useScrollEffect/useScrollEffect.js +1 -1
- package/dist/cjs/hooks/useScrollEffect/useScrollEffect.js.map +1 -1
- package/dist/cjs/hooks/useStyles/useStyles.js +2 -2
- package/dist/cjs/hooks/useStyles/useStyles.js.map +1 -1
- package/dist/cjs/hooks/useStyles/useStylesV2.js +1 -1
- package/dist/cjs/hooks/useStyles/useStylesV2.js.map +1 -1
- package/dist/cjs/provider/global.style.js +25 -12
- package/dist/cjs/provider/global.style.js.map +1 -1
- package/dist/cjs/styles/index.js +18 -0
- package/dist/cjs/styles/index.js.map +1 -0
- package/dist/cjs/styles/mixins/input.mixin.js +35 -5
- package/dist/cjs/styles/mixins/input.mixin.js.map +1 -1
- package/dist/cjs/types/styles/index.js +1 -0
- package/dist/cjs/types/styles/index.js.map +1 -1
- package/dist/cjs/types/styles/wordWrap.js +3 -0
- package/dist/cjs/types/styles/wordWrap.js.map +1 -0
- package/dist/cjs/utils/getStyles/getStyles.js +30 -10
- package/dist/cjs/utils/getStyles/getStyles.js.map +1 -1
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/isValidUrl/isValidUrl.js +3 -1
- package/dist/cjs/utils/isValidUrl/isValidUrl.js.map +1 -1
- package/dist/cjs/utils/mergeObjectStyles/mergeObjectStyles.js +1 -0
- package/dist/cjs/utils/mergeObjectStyles/mergeObjectStyles.js.map +1 -1
- package/dist/cjs/utils/mergeObjects/mergeObjects.js +3 -1
- package/dist/cjs/utils/mergeObjects/mergeObjects.js.map +1 -1
- package/dist/cjs/utils/structuredClone/index.js +18 -0
- package/dist/cjs/utils/structuredClone/index.js.map +1 -0
- package/dist/cjs/utils/structuredClone/structuredClone.js +9 -0
- package/dist/cjs/utils/structuredClone/structuredClone.js.map +1 -0
- package/dist/esm/components/calendar/selector/selector.js +2 -2
- package/dist/esm/components/calendar/selector/selector.js.map +1 -1
- package/dist/esm/components/carousel/hooks/useCarousel.js +2 -1
- package/dist/esm/components/carousel/hooks/useCarousel.js.map +1 -1
- package/dist/esm/components/checkbox/checkboxStandAlone.js +4 -1
- package/dist/esm/components/checkbox/checkboxStandAlone.js.map +1 -1
- package/dist/esm/components/checkbox/utils/aria.utils.d.ts +5 -1
- package/dist/esm/components/checkbox/utils/aria.utils.js +6 -1
- package/dist/esm/components/checkbox/utils/aria.utils.js.map +1 -1
- package/dist/esm/components/dropdownSelected/dropdownSelectedStandAlone.js +1 -1
- package/dist/esm/components/dropdownSelected/dropdownSelectedStandAlone.js.map +1 -1
- package/dist/esm/components/dropdownSelected/dropdownSelectedUncontrolled.js +10 -0
- package/dist/esm/components/dropdownSelected/dropdownSelectedUncontrolled.js.map +1 -1
- package/dist/esm/components/footer/components/footerContent.d.ts +3 -0
- package/dist/esm/components/footer/components/footerContent.js +4 -1
- package/dist/esm/components/footer/components/footerContent.js.map +1 -1
- package/dist/esm/components/footer/footer.styled.d.ts +3 -0
- package/dist/esm/components/footer/footer.styled.js +3 -0
- package/dist/esm/components/footer/footer.styled.js.map +1 -1
- package/dist/esm/components/footer/footerStandAlone.js +1 -1
- package/dist/esm/components/footer/footerStandAlone.js.map +1 -1
- package/dist/esm/components/input/components/errorMessage.js +2 -2
- package/dist/esm/components/input/components/errorMessage.js.map +1 -1
- package/dist/esm/components/input/components/informationAssociated.js +1 -1
- package/dist/esm/components/input/components/informationAssociated.js.map +1 -1
- package/dist/esm/components/input/components/inputIcon.d.ts +1 -0
- package/dist/esm/components/input/components/inputIcon.js +14 -1
- package/dist/esm/components/input/components/inputIcon.js.map +1 -1
- package/dist/esm/components/input/index.d.ts +1 -0
- package/dist/esm/components/input/index.js +1 -0
- package/dist/esm/components/input/index.js.map +1 -1
- package/dist/esm/components/input/input.styled.js +13 -9
- package/dist/esm/components/input/input.styled.js.map +1 -1
- package/dist/esm/components/input/inputStandAlone.js +12 -5
- package/dist/esm/components/input/inputStandAlone.js.map +1 -1
- package/dist/esm/components/input/stories/argtypes.js +36 -0
- package/dist/esm/components/input/stories/argtypes.js.map +1 -1
- package/dist/esm/components/input/types/input.d.ts +9 -2
- package/dist/esm/components/input/types/inputStyledPropsType.d.ts +9 -0
- package/dist/esm/components/input/utils/aria.utils.d.ts +1 -1
- package/dist/esm/components/inputCurrency/inputCurrencyStandAlone.js +11 -6
- package/dist/esm/components/inputCurrency/inputCurrencyStandAlone.js.map +1 -1
- package/dist/esm/components/inputCurrency/types/inputCurrencyTheme.d.ts +6 -0
- package/dist/esm/components/inputDate/inputDate.js +7 -1
- package/dist/esm/components/inputDate/inputDate.js.map +1 -1
- package/dist/esm/components/inputDate/inputDateStandAlone.js +6 -1
- package/dist/esm/components/inputDate/inputDateStandAlone.js.map +1 -1
- package/dist/esm/components/inputDate/stories/argtypes.js +9 -2
- package/dist/esm/components/inputDate/stories/argtypes.js.map +1 -1
- package/dist/esm/components/inputDate/types/inputDate.d.ts +3 -1
- package/dist/esm/components/inputDropdown/components/popoverSearchList.js +7 -1
- package/dist/esm/components/inputDropdown/components/popoverSearchList.js.map +1 -1
- package/dist/esm/components/inputDropdown/hooks/useInputDropdown.d.ts +3 -2
- package/dist/esm/components/inputDropdown/hooks/useInputDropdown.js +1 -0
- package/dist/esm/components/inputDropdown/hooks/useInputDropdown.js.map +1 -1
- package/dist/esm/components/inputDropdown/index.d.ts +1 -0
- package/dist/esm/components/inputDropdown/index.js +1 -0
- package/dist/esm/components/inputDropdown/index.js.map +1 -1
- package/dist/esm/components/inputDropdown/inputDropdown.js +5 -1
- package/dist/esm/components/inputDropdown/inputDropdown.js.map +1 -1
- package/dist/esm/components/inputDropdown/inputDropdownStandAlone.js +2 -2
- package/dist/esm/components/inputDropdown/inputDropdownStandAlone.js.map +1 -1
- package/dist/esm/components/inputDropdown/types/inputDropdown.d.ts +8 -0
- package/dist/esm/components/inputPassword/inputPassword.js +3 -2
- package/dist/esm/components/inputPassword/inputPassword.js.map +1 -1
- package/dist/esm/components/inputPassword/stories/argtypes.js +9 -2
- package/dist/esm/components/inputPassword/stories/argtypes.js.map +1 -1
- package/dist/esm/components/inputPassword/types/inputPassword.d.ts +1 -1
- package/dist/esm/components/inputPhone/inputPhoneStandAlone.js +2 -2
- package/dist/esm/components/inputPhone/inputPhoneStandAlone.js.map +1 -1
- package/dist/esm/components/inputPhone/stories/argtypes.js +11 -0
- package/dist/esm/components/inputPhone/stories/argtypes.js.map +1 -1
- package/dist/esm/components/inputPhone/types/inputPhone.d.ts +3 -1
- package/dist/esm/components/inputSearch/components/popoverSearchList.js +6 -0
- package/dist/esm/components/inputSearch/components/popoverSearchList.js.map +1 -1
- package/dist/esm/components/inputSearch/helpers/filterOptions.js +1 -0
- package/dist/esm/components/inputSearch/helpers/filterOptions.js.map +1 -1
- package/dist/esm/components/inputSearch/inputSearchStandAlone.js +6 -2
- package/dist/esm/components/inputSearch/inputSearchStandAlone.js.map +1 -1
- package/dist/esm/components/inputSearch/types/inputSearch.d.ts +8 -0
- package/dist/esm/components/inputSignature/hook/index.d.ts +1 -0
- package/dist/esm/components/inputSignature/hook/index.js +2 -0
- package/dist/esm/components/inputSignature/hook/index.js.map +1 -0
- package/dist/esm/components/inputSignature/hook/useDraw.d.ts +10 -0
- package/dist/esm/components/inputSignature/hook/useDraw.js +127 -0
- package/dist/esm/components/inputSignature/hook/useDraw.js.map +1 -0
- package/dist/esm/components/inputSignature/index.d.ts +5 -0
- package/dist/esm/components/inputSignature/index.js +8 -0
- package/dist/esm/components/inputSignature/index.js.map +1 -0
- package/dist/esm/components/inputSignature/inputSignature.styled.d.ts +9 -0
- package/dist/esm/components/inputSignature/inputSignature.styled.js +13 -0
- package/dist/esm/components/inputSignature/inputSignature.styled.js.map +1 -0
- package/dist/esm/components/inputSignature/inputSignatureControlled.d.ts +7 -0
- package/dist/esm/components/inputSignature/inputSignatureControlled.js +19 -0
- package/dist/esm/components/inputSignature/inputSignatureControlled.js.map +1 -0
- package/dist/esm/components/inputSignature/inputSignatureStandAlone.d.ts +4 -0
- package/dist/esm/components/inputSignature/inputSignatureStandAlone.js +16 -0
- package/dist/esm/components/inputSignature/inputSignatureStandAlone.js.map +1 -0
- package/dist/esm/components/inputSignature/inputSignatureUncontrolled.d.ts +6 -0
- package/dist/esm/components/inputSignature/inputSignatureUncontrolled.js +38 -0
- package/dist/esm/components/inputSignature/inputSignatureUncontrolled.js.map +1 -0
- package/dist/esm/components/inputSignature/stories/argTypes.d.ts +3 -0
- package/dist/esm/components/inputSignature/stories/argTypes.js +90 -0
- package/dist/esm/components/inputSignature/stories/argTypes.js.map +1 -0
- package/dist/esm/components/inputSignature/types/index.d.ts +3 -0
- package/dist/esm/components/inputSignature/types/index.js +3 -0
- package/dist/esm/components/inputSignature/types/index.js.map +1 -0
- package/dist/esm/components/inputSignature/types/inputSignature.d.ts +32 -0
- package/dist/esm/components/inputSignature/types/inputSignature.js +2 -0
- package/dist/esm/components/inputSignature/types/inputSignature.js.map +1 -0
- package/dist/esm/components/inputSignature/types/inputSignatureState.d.ts +7 -0
- package/dist/esm/components/inputSignature/types/inputSignatureState.js +9 -0
- package/dist/esm/components/inputSignature/types/inputSignatureState.js.map +1 -0
- package/dist/esm/components/inputSignature/types/inputSignatureTheme.d.ts +20 -0
- package/dist/esm/components/inputSignature/types/inputSignatureTheme.js +2 -0
- package/dist/esm/components/inputSignature/types/inputSignatureTheme.js.map +1 -0
- package/dist/esm/components/inputSignature/utils/__tests__/getInputSignatureState.d.ts +1 -0
- package/dist/esm/components/inputSignature/utils/__tests__/getInputSignatureState.js +25 -0
- package/dist/esm/components/inputSignature/utils/__tests__/getInputSignatureState.js.map +1 -0
- package/dist/esm/components/inputSignature/utils/getInputSignatureState.d.ts +9 -0
- package/dist/esm/components/inputSignature/utils/getInputSignatureState.js +17 -0
- package/dist/esm/components/inputSignature/utils/getInputSignatureState.js.map +1 -0
- package/dist/esm/components/inputSignature/utils/index.d.ts +1 -0
- package/dist/esm/components/inputSignature/utils/index.js +2 -0
- package/dist/esm/components/inputSignature/utils/index.js.map +1 -0
- package/dist/esm/components/layout/layoutStandAlone.js +1 -1
- package/dist/esm/components/layout/layoutStandAlone.js.map +1 -1
- package/dist/esm/components/link/link.js +8 -4
- package/dist/esm/components/link/link.js.map +1 -1
- package/dist/esm/components/link/link.styled.d.ts +2 -0
- package/dist/esm/components/link/link.styled.js +16 -20
- package/dist/esm/components/link/link.styled.js.map +1 -1
- package/dist/esm/components/link/linkStandAlone.js +1 -1
- package/dist/esm/components/link/linkStandAlone.js.map +1 -1
- package/dist/esm/components/link/types/link.d.ts +4 -3
- package/dist/esm/components/loader/loader.styled.d.ts +1 -1
- package/dist/esm/components/loader/loader.styled.js +4 -1
- package/dist/esm/components/loader/loader.styled.js.map +1 -1
- package/dist/esm/components/loader/loaderStandAlone.js +2 -4
- package/dist/esm/components/loader/loaderStandAlone.js.map +1 -1
- package/dist/esm/components/loader/types/loaderTheme.d.ts +1 -0
- package/dist/esm/components/mediaProgressBar/mediaProgressBar.styled.d.ts +1 -1
- package/dist/esm/components/mediaProgressBar/mediaProgressBar.styled.js +13 -7
- package/dist/esm/components/mediaProgressBar/mediaProgressBar.styled.js.map +1 -1
- package/dist/esm/components/message/message.styled.d.ts +4 -3
- package/dist/esm/components/message/message.styled.js +1 -7
- package/dist/esm/components/message/message.styled.js.map +1 -1
- package/dist/esm/components/message/messageStandAlone.js +4 -4
- package/dist/esm/components/message/messageStandAlone.js.map +1 -1
- package/dist/esm/components/message/types/message.d.ts +2 -2
- package/dist/esm/components/message/types/messageTheme.d.ts +1 -0
- package/dist/esm/components/option/optionStandAlone.js +1 -1
- package/dist/esm/components/option/optionStandAlone.js.map +1 -1
- package/dist/esm/components/option/stories/argtypes.js +11 -0
- package/dist/esm/components/option/stories/argtypes.js.map +1 -1
- package/dist/esm/components/option/types/option.d.ts +4 -0
- package/dist/esm/components/pillSelector/pillSelector.styled.d.ts +1 -0
- package/dist/esm/components/pillSelector/pillSelector.styled.js +3 -0
- package/dist/esm/components/pillSelector/pillSelector.styled.js.map +1 -1
- package/dist/esm/components/pillSelector/pillSelectorControlled.js +23 -1
- package/dist/esm/components/pillSelector/pillSelectorControlled.js.map +1 -1
- package/dist/esm/components/pillSelector/pillSelectorStandAlone.js +12 -14
- package/dist/esm/components/pillSelector/pillSelectorStandAlone.js.map +1 -1
- package/dist/esm/components/pillSelector/types/pillSelectorTheme.d.ts +1 -0
- package/dist/esm/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.js +1 -1
- package/dist/esm/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.js.map +1 -1
- package/dist/esm/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.styled.d.ts +2 -1
- package/dist/esm/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.styled.js +3 -1
- package/dist/esm/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.styled.js.map +1 -1
- package/dist/esm/components/radioButtonGroup/components/radioButton/types/radioButtonTheme.d.ts +1 -0
- package/dist/esm/components/radioButtonGroup/radioButtonGroupStandAlone.js +1 -1
- package/dist/esm/components/radioButtonGroup/radioButtonGroupStandAlone.js.map +1 -1
- package/dist/esm/components/snackbar/snackbarStandAlone.js +1 -1
- package/dist/esm/components/snackbar/snackbarStandAlone.js.map +1 -1
- package/dist/esm/components/table/component/listColumnHeaderPriority.js +5 -3
- package/dist/esm/components/table/component/listColumnHeaderPriority.js.map +1 -1
- package/dist/esm/components/table/component/listRowHeaderPriority.js +5 -3
- package/dist/esm/components/table/component/listRowHeaderPriority.js.map +1 -1
- package/dist/esm/components/table/component/tableRow.js +5 -3
- package/dist/esm/components/table/component/tableRow.js.map +1 -1
- package/dist/esm/components/table/hooks/useContent.d.ts +4 -1
- package/dist/esm/components/table/hooks/useContent.js +3 -3
- package/dist/esm/components/table/hooks/useContent.js.map +1 -1
- package/dist/esm/components/table/stories/mockTable.d.ts +2 -0
- package/dist/esm/components/table/stories/mockTable.js +1 -1
- package/dist/esm/components/table/stories/mockTable.js.map +1 -1
- package/dist/esm/components/table/types/table.d.ts +2 -0
- package/dist/esm/components/text/text.styled.d.ts +3 -1
- package/dist/esm/components/text/text.styled.js +1 -1
- package/dist/esm/components/text/text.styled.js.map +1 -1
- package/dist/esm/components/toggle/components/toggleThreePosition.d.ts +6 -0
- package/dist/esm/components/toggle/components/toggleThreePosition.js +53 -0
- package/dist/esm/components/toggle/components/toggleThreePosition.js.map +1 -0
- package/dist/esm/components/toggle/components/toggleTwoPositions.d.ts +6 -0
- package/dist/esm/components/toggle/components/toggleTwoPositions.js +28 -0
- package/dist/esm/components/toggle/components/toggleTwoPositions.js.map +1 -0
- package/dist/esm/components/toggle/stories/argtypes.js +35 -2
- package/dist/esm/components/toggle/stories/argtypes.js.map +1 -1
- package/dist/esm/components/toggle/toggle.styled.d.ts +4 -0
- package/dist/esm/components/toggle/toggle.styled.js +16 -0
- package/dist/esm/components/toggle/toggle.styled.js.map +1 -1
- package/dist/esm/components/toggle/toggleStandAlone.js +5 -70
- package/dist/esm/components/toggle/toggleStandAlone.js.map +1 -1
- package/dist/esm/components/toggle/types/toggle.d.ts +2 -1
- package/dist/esm/components/tooltip/tooltip.styled.js +0 -1
- package/dist/esm/components/tooltip/tooltip.styled.js.map +1 -1
- package/dist/esm/components/tooltip/tooltipUnControlled.js +1 -1
- package/dist/esm/components/tooltip/tooltipUnControlled.js.map +1 -1
- package/dist/esm/constants/stylesName.d.ts +1 -0
- package/dist/esm/constants/stylesName.js +1 -0
- package/dist/esm/constants/stylesName.js.map +1 -1
- package/dist/esm/designSystem/kubit/assets/icons/icon_inner-shadow.svg +1 -3
- package/dist/esm/designSystem/kubit/assets/icons/icons_ruler_double.svg +1 -3
- package/dist/esm/designSystem/kubit/assets/icons/icons_variant.svg +1 -3
- package/dist/esm/designSystem/kubit/components/input/styles.js +10 -7
- package/dist/esm/designSystem/kubit/components/input/styles.js.map +1 -1
- package/dist/esm/designSystem/kubit/components/inputSignature/index.d.ts +2 -0
- package/dist/esm/designSystem/kubit/components/inputSignature/index.js +3 -0
- package/dist/esm/designSystem/kubit/components/inputSignature/index.js.map +1 -0
- package/dist/esm/designSystem/kubit/components/inputSignature/styles.d.ts +3 -0
- package/dist/esm/designSystem/kubit/components/inputSignature/styles.js +84 -0
- package/dist/esm/designSystem/kubit/components/inputSignature/styles.js.map +1 -0
- package/dist/esm/designSystem/kubit/components/inputSignature/variants.d.ts +3 -0
- package/dist/esm/designSystem/kubit/components/inputSignature/variants.js +5 -0
- package/dist/esm/designSystem/kubit/components/inputSignature/variants.js.map +1 -0
- package/dist/esm/designSystem/kubit/components/mediaButton/styles.js +44 -34
- package/dist/esm/designSystem/kubit/components/mediaButton/styles.js.map +1 -1
- package/dist/esm/designSystem/kubit/components/mediaProgressBar/styles.js +35 -23
- package/dist/esm/designSystem/kubit/components/mediaProgressBar/styles.js.map +1 -1
- package/dist/esm/designSystem/kubit/components/message/styles.js +11 -4
- package/dist/esm/designSystem/kubit/components/message/styles.js.map +1 -1
- package/dist/esm/designSystem/kubit/components/pageControlAutomate/styles.js +38 -15
- package/dist/esm/designSystem/kubit/components/pageControlAutomate/styles.js.map +1 -1
- package/dist/esm/designSystem/kubit/components/radioButtonGroup/styles.js +7 -1
- package/dist/esm/designSystem/kubit/components/radioButtonGroup/styles.js.map +1 -1
- package/dist/esm/designSystem/kubit/foundations/borders.d.ts +1 -0
- package/dist/esm/designSystem/kubit/foundations/borders.js +1 -0
- package/dist/esm/designSystem/kubit/foundations/borders.js.map +1 -1
- package/dist/esm/designSystem/kubit/index.d.ts +1 -0
- package/dist/esm/designSystem/kubitWireframe/commons/assets/animations/index.d.ts +1 -0
- package/dist/esm/designSystem/kubitWireframe/commons/assets/animations/index.js +2 -0
- package/dist/esm/designSystem/kubitWireframe/commons/assets/animations/index.js.map +1 -0
- package/dist/esm/designSystem/kubitWireframe/commons/assets/animations/loaders.d.ts +3 -0
- package/dist/esm/designSystem/kubitWireframe/commons/assets/animations/loaders.js +67 -0
- package/dist/esm/designSystem/kubitWireframe/commons/assets/animations/loaders.js.map +1 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/input/styles.js +4 -1
- package/dist/esm/designSystem/kubitWireframe/commons/components/input/styles.js.map +1 -1
- package/dist/esm/designSystem/kubitWireframe/commons/components/loader/index.d.ts +2 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/loader/index.js +3 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/loader/index.js.map +1 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/loader/styles.d.ts +7 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/loader/styles.js +26 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/loader/styles.js.map +1 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/loader/variants.d.ts +5 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/loader/variants.js +7 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/loader/variants.js.map +1 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/message/styles.js +12 -4
- package/dist/esm/designSystem/kubitWireframe/commons/components/message/styles.js.map +1 -1
- package/dist/esm/designSystem/kubitWireframe/commons/components/styles.js +2 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/styles.js.map +1 -1
- package/dist/esm/designSystem/kubitWireframe/commons/components/text/styles.js.map +1 -1
- package/dist/esm/designSystem/kubitWireframe/commons/components/variants.d.ts +1 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/variants.js +1 -0
- package/dist/esm/designSystem/kubitWireframe/commons/components/variants.js.map +1 -1
- package/dist/esm/designSystem/kubitWireframe/index.d.ts +1 -0
- package/dist/esm/hooks/useInput/helpers/modifyInputNumberValue.d.ts +8 -0
- package/dist/esm/hooks/useInput/helpers/modifyInputNumberValue.js +13 -0
- package/dist/esm/hooks/useInput/helpers/modifyInputNumberValue.js.map +1 -0
- package/dist/esm/hooks/useInput/useInput.js +41 -19
- package/dist/esm/hooks/useInput/useInput.js.map +1 -1
- package/dist/esm/hooks/useScrollEffect/useScrollEffect.js +1 -1
- package/dist/esm/hooks/useScrollEffect/useScrollEffect.js.map +1 -1
- package/dist/esm/hooks/useStyles/useStyles.d.ts +1 -1
- package/dist/esm/hooks/useStyles/useStyles.js +1 -1
- package/dist/esm/hooks/useStyles/useStyles.js.map +1 -1
- package/dist/esm/hooks/useStyles/useStylesV2.d.ts +3 -3
- package/dist/esm/hooks/useStyles/useStylesV2.js +1 -1
- package/dist/esm/hooks/useStyles/useStylesV2.js.map +1 -1
- package/dist/esm/provider/global.style.d.ts +1 -0
- package/dist/esm/provider/global.style.js +25 -12
- package/dist/esm/provider/global.style.js.map +1 -1
- package/dist/esm/styles/index.d.ts +1 -0
- package/dist/esm/styles/index.js +2 -0
- package/dist/esm/styles/index.js.map +1 -0
- package/dist/esm/styles/mixins/input.mixin.d.ts +3 -2
- package/dist/esm/styles/mixins/input.mixin.js +33 -4
- package/dist/esm/styles/mixins/input.mixin.js.map +1 -1
- package/dist/esm/types/styles/animation.d.ts +4 -0
- package/dist/esm/types/styles/commonStyle.d.ts +2 -1
- package/dist/esm/types/styles/index.d.ts +1 -0
- package/dist/esm/types/styles/index.js +1 -0
- package/dist/esm/types/styles/index.js.map +1 -1
- package/dist/esm/types/styles/position.d.ts +1 -0
- package/dist/esm/types/styles/typography.d.ts +2 -5
- package/dist/esm/types/styles/wordWrap.d.ts +6 -0
- package/dist/esm/types/styles/wordWrap.js +2 -0
- package/dist/esm/types/styles/wordWrap.js.map +1 -0
- package/dist/esm/utils/getStyles/getStyles.d.ts +2 -1
- package/dist/esm/utils/getStyles/getStyles.js +28 -9
- package/dist/esm/utils/getStyles/getStyles.js.map +1 -1
- package/dist/esm/utils/index.d.ts +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/isValidUrl/isValidUrl.js +3 -1
- package/dist/esm/utils/isValidUrl/isValidUrl.js.map +1 -1
- package/dist/esm/utils/mergeObjectStyles/mergeObjectStyles.d.ts +1 -1
- package/dist/esm/utils/mergeObjectStyles/mergeObjectStyles.js +1 -0
- package/dist/esm/utils/mergeObjectStyles/mergeObjectStyles.js.map +1 -1
- package/dist/esm/utils/mergeObjects/mergeObjects.d.ts +1 -1
- package/dist/esm/utils/mergeObjects/mergeObjects.js +3 -1
- package/dist/esm/utils/mergeObjects/mergeObjects.js.map +1 -1
- package/dist/esm/utils/structuredClone/index.d.ts +1 -0
- package/dist/esm/utils/structuredClone/index.js +2 -0
- package/dist/esm/utils/structuredClone/index.js.map +1 -0
- package/dist/esm/utils/structuredClone/structuredClone.d.ts +1 -0
- package/dist/esm/utils/structuredClone/structuredClone.js +3 -0
- package/dist/esm/utils/structuredClone/structuredClone.js.map +1 -0
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonSizePropsType, ButtonStateKeyOfType, ButtonStateType, IButtonStandAlone } from '../../../components/button';
|
|
3
3
|
import { IElementOrIcon } from '../../../components/elementOrIcon';
|
|
4
|
-
import { TextComponentType, TextDecorationType } from '../../../components/text/types';
|
|
4
|
+
import { TextComponentType, TextDecorationType, TextVariantStylesType } from '../../../components/text/types';
|
|
5
5
|
import { GenericLinkType } from '../../../provider/genericComponents';
|
|
6
6
|
import { CustomTokenTypes } from '../../../types';
|
|
7
7
|
import type { LinkActionType } from './action';
|
|
@@ -23,17 +23,18 @@ export interface ILinkStandAlone extends LinkAriaAttributes {
|
|
|
23
23
|
role?: string;
|
|
24
24
|
state: LinkStateType;
|
|
25
25
|
styles: LinkPropsStylesType;
|
|
26
|
+
textStyles?: TextVariantStylesType;
|
|
26
27
|
target?: LinkTargetType;
|
|
27
|
-
textVariant?: string;
|
|
28
28
|
url: string;
|
|
29
29
|
weight?: number;
|
|
30
30
|
alignCenter: boolean;
|
|
31
31
|
draggable?: boolean;
|
|
32
32
|
}
|
|
33
|
-
export interface ILink extends Omit<ILinkStandAlone, 'styles' | 'component' | 'alignCenter' | 'state' | 'aria-disabled'>, Omit<CustomTokenTypes<LinkStylesType<string>>, 'cts' | 'extraCt'> {
|
|
33
|
+
export interface ILink extends Omit<ILinkStandAlone, 'styles' | 'component' | 'alignCenter' | 'state' | 'aria-disabled' | 'textStyles'>, Omit<CustomTokenTypes<LinkStylesType<string>>, 'cts' | 'extraCt'> {
|
|
34
34
|
alignCenter?: boolean;
|
|
35
35
|
disabled?: boolean;
|
|
36
36
|
variant: string;
|
|
37
|
+
textVariant?: string;
|
|
37
38
|
}
|
|
38
39
|
export interface ILinkAsButtonStandAlone extends Omit<IButtonStandAlone, 'showLoader'> {
|
|
39
40
|
styles: ButtonStateKeyOfType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ILoaderStyled } from './types';
|
|
3
3
|
export declare const LoaderStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, ILoaderStyled>>;
|
|
4
|
-
export declare const LoaderWrapperStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").
|
|
4
|
+
export declare const LoaderWrapperStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, ILoaderStyled>>;
|
|
@@ -15,5 +15,8 @@ export const LoaderStyled = styled.span `
|
|
|
15
15
|
${styles.animation}
|
|
16
16
|
`}
|
|
17
17
|
`;
|
|
18
|
-
export const LoaderWrapperStyled = styled.span
|
|
18
|
+
export const LoaderWrapperStyled = styled.span `
|
|
19
|
+
display: flex;
|
|
20
|
+
${props => getStyles(props.styles.parentContainer)}
|
|
21
|
+
`;
|
|
19
22
|
//# sourceMappingURL=loader.styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.styled.js","sourceRoot":"","sources":["../../../../src/components/loader/loader.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAIxD,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAe;IAClD,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;IAC1C,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CACf,MAAM;IACN,GAAG,CAAA;eACQ,MAAM;gBACL,MAAM;KACjB;IACD,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACjB,QAAQ;IACR,GAAG,CAAA;kBACW,QAAQ;KACrB;IACD,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;MACjB,MAAM,CAAC,SAAS;GACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"loader.styled.js","sourceRoot":"","sources":["../../../../src/components/loader/loader.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAIxD,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAe;IAClD,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;IAC1C,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CACf,MAAM;IACN,GAAG,CAAA;eACQ,MAAM;gBACL,MAAM;KACjB;IACD,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACjB,QAAQ;IACR,GAAG,CAAA;kBACW,QAAQ;KACrB;IACD,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;MACjB,MAAM,CAAC,SAAS;GACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,IAAI,CAAe;;IAEzD,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC;CACnD,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ROLES } from '../../types/index';
|
|
4
|
-
import { pickAriaProps } from '../../utils/aria/aria';
|
|
5
4
|
import { ScreenReaderOnly } from '../screenReaderOnly';
|
|
6
5
|
// styles
|
|
7
6
|
import { LoaderStyled, LoaderWrapperStyled } from './loader.styled';
|
|
8
|
-
const LoaderStandaloneComponent = ({
|
|
9
|
-
|
|
10
|
-
return (_jsx(LoaderWrapperStyled, { role: ROLES.STATUS, children: visible && (_jsxs(_Fragment, { children: [_jsx(LoaderStyled, { ref: ref, "$width": width, "data-testid": dataTestId, position: position, styles: styles }), _jsx(ScreenReaderOnly, { dataTestId: `${dataTestId}ScreenReader`, children: altText })] })) }));
|
|
7
|
+
const LoaderStandaloneComponent = ({ dataTestId = 'loaderStandaloneTestId', ...props }, ref) => {
|
|
8
|
+
return (_jsx(LoaderWrapperStyled, { role: ROLES.STATUS, styles: props.styles, children: props.visible && (_jsxs(_Fragment, { children: [_jsx(LoaderStyled, { ref: ref, "$width": props.width, "data-testid": dataTestId, position: props.position, styles: props.styles }), _jsx(ScreenReaderOnly, { dataTestId: `${dataTestId}ScreenReader`, children: props.altText })] })) }));
|
|
11
9
|
};
|
|
12
10
|
/**
|
|
13
11
|
* @description
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loaderStandAlone.js","sourceRoot":"","sources":["../../../../src/components/loader/loaderStandAlone.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"loaderStandAlone.js","sourceRoot":"","sources":["../../../../src/components/loader/loaderStandAlone.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,SAAS;AACT,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGpE,MAAM,yBAAyB,GAAG,CAChC,EAAE,UAAU,GAAG,wBAAwB,EAAE,GAAG,KAAK,EAAqB,EACtE,GAA2D,EAC9C,EAAE;IACf,OAAO,CACL,KAAC,mBAAmB,IAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,YAC1D,KAAK,CAAC,OAAO,IAAI,CAChB,8BACE,KAAC,YAAY,IACX,GAAG,EAAE,GAAG,YACA,KAAK,CAAC,KAAK,iBACN,UAAU,EACvB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,MAAM,EAAE,KAAK,CAAC,MAAM,GACpB,EACF,KAAC,gBAAgB,IAAC,UAAU,EAAE,GAAG,UAAU,cAAc,YACtD,KAAK,CAAC,OAAO,GACG,IAClB,CACJ,GACmB,CACvB,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@ type MediaProgressBarStylesType = {
|
|
|
8
8
|
barProgressDuration?: number;
|
|
9
9
|
};
|
|
10
10
|
export declare const ParentContainerStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MediaProgressBarStylesType>>;
|
|
11
|
-
export declare const BarContainerStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MediaProgressBarStylesType>>;
|
|
12
11
|
export declare const BarStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MediaProgressBarStylesType>>;
|
|
12
|
+
export declare const BarContainerStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MediaProgressBarStylesType>>;
|
|
13
13
|
export declare const ProgressBarStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MediaProgressBarStylesType>>;
|
|
14
14
|
export {};
|
|
@@ -11,6 +11,13 @@ const playSimulation = (width = '0%') => keyframes `
|
|
|
11
11
|
export const ParentContainerStyled = styled.div `
|
|
12
12
|
${props => getStyles(props.styles.container)}
|
|
13
13
|
`;
|
|
14
|
+
export const BarStyled = styled.div `
|
|
15
|
+
${props => getStyles(props.styles.bar)}
|
|
16
|
+
${({ barFocused, styles }) => !barFocused &&
|
|
17
|
+
css `
|
|
18
|
+
${getStyles(styles.bar?.filled)}
|
|
19
|
+
`};
|
|
20
|
+
`;
|
|
14
21
|
export const BarContainerStyled = styled.div `
|
|
15
22
|
${props => getStyles(props.styles.barContainer)}
|
|
16
23
|
${({ barFocused, styles }) => barFocused &&
|
|
@@ -21,13 +28,12 @@ export const BarContainerStyled = styled.div `
|
|
|
21
28
|
css `
|
|
22
29
|
pointer-events: none;
|
|
23
30
|
`};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
`};
|
|
31
|
+
&:focus-visible {
|
|
32
|
+
outline-style: none;
|
|
33
|
+
& > ${BarStyled} {
|
|
34
|
+
${({ theme: { FOCUS_STYLES } }) => FOCUS_STYLES};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
31
37
|
`;
|
|
32
38
|
export const ProgressBarStyled = styled.div `
|
|
33
39
|
${props => getStyles(props.styles.progressBar)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediaProgressBar.styled.js","sourceRoot":"","sources":["../../../../src/components/mediaProgressBar/mediaProgressBar.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAYxD,MAAM,cAAc,GAAG,CAAC,KAAK,GAAG,IAAI,EAAE,EAAE,CAAC,SAAS,CAAA;;aAErC,KAAK;;;;;CAKjB,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAA4B;IACvE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;CAC7C,CAAC;AAEF,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"mediaProgressBar.styled.js","sourceRoot":"","sources":["../../../../src/components/mediaProgressBar/mediaProgressBar.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAYxD,MAAM,cAAc,GAAG,CAAC,KAAK,GAAG,IAAI,EAAE,EAAE,CAAC,SAAS,CAAA;;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KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC;wBACpD,CAAC,EAAE,mBAAmB,EAAE,EAAE,EAAE,CAAC,GAAG,mBAAmB,IAAI;;;;;0BAKrD,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;CAC1E,CAAC"}
|
|
@@ -4,8 +4,7 @@ import { MessagePropsThemeType } from './types/messageTheme';
|
|
|
4
4
|
export declare const MessageStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
5
|
styles: MessagePropsThemeType;
|
|
6
6
|
}>>;
|
|
7
|
-
export declare const MessageHeaderStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").
|
|
8
|
-
export declare const MessageHeaderTitleStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
|
+
export declare const MessageHeaderStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
8
|
styles: MessagePropsThemeType;
|
|
10
9
|
isLargeMessage?: boolean | undefined;
|
|
11
10
|
withIcon?: boolean | undefined;
|
|
@@ -21,7 +20,9 @@ export declare const MessageContentStyled: import("styled-components").IStyledCo
|
|
|
21
20
|
export declare const ExtraActioButtonWrapperStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
22
21
|
styles: MessagePropsThemeType;
|
|
23
22
|
}>>;
|
|
24
|
-
export declare const ButtonSectionStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").
|
|
23
|
+
export declare const ButtonSectionStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
24
|
+
styles: MessagePropsThemeType;
|
|
25
|
+
}>>;
|
|
25
26
|
export declare const ActioButtonWrapperStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
26
27
|
styles: MessagePropsThemeType;
|
|
27
28
|
}>>;
|
|
@@ -4,9 +4,6 @@ export const MessageStyled = styled.div `
|
|
|
4
4
|
${({ styles }) => getStyles(styles.container)};
|
|
5
5
|
`;
|
|
6
6
|
export const MessageHeaderStyled = styled.div `
|
|
7
|
-
width: 100%;
|
|
8
|
-
`;
|
|
9
|
-
export const MessageHeaderTitleStyled = styled.div `
|
|
10
7
|
${({ styles, withIcon }) => withIcon &&
|
|
11
8
|
`margin-right: calc(${styles?.closeIcon?.width ?? '0rem'} + ${styles?.closeIconContainer?.gap ?? '0rem'});`};
|
|
12
9
|
${({ styles }) => getStyles(styles.headerContainer)};
|
|
@@ -26,10 +23,7 @@ export const ExtraActioButtonWrapperStyled = styled.div `
|
|
|
26
23
|
${({ styles }) => getStyles(styles.extraActionButtonContainer)};
|
|
27
24
|
`;
|
|
28
25
|
export const ButtonSectionStyled = styled.div `
|
|
29
|
-
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
width: 100%;
|
|
32
|
-
align-items: flex-end;
|
|
26
|
+
${({ styles }) => getStyles(styles.buttonSectionContainer)};
|
|
33
27
|
`;
|
|
34
28
|
export const ActioButtonWrapperStyled = styled.div `
|
|
35
29
|
${({ styles }) => getStyles(styles.actionButtonContainer)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.styled.js","sourceRoot":"","sources":["../../../../src/components/message/message.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MA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x as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Button } from '../../components/button';
|
|
4
4
|
import { ElementOrIcon } from '../../components/elementOrIcon';
|
|
@@ -8,7 +8,7 @@ import { Text, TextComponentType, TextDecorationType } from '../../components/te
|
|
|
8
8
|
import { AriaLiveOptionType } from '../../types';
|
|
9
9
|
import { Link } from '../link';
|
|
10
10
|
// styles
|
|
11
|
-
import { ActioButtonWrapperStyled, ButtonSectionStyled, CloseButtonSectionStyled, ExtraActioButtonWrapperStyled, LinkContainerStyled, MessageContentStyled, MessageHeaderStyled,
|
|
11
|
+
import { ActioButtonWrapperStyled, ButtonSectionStyled, CloseButtonSectionStyled, ExtraActioButtonWrapperStyled, LinkContainerStyled, MessageContentStyled, MessageHeaderStyled, MessageStyled, MessageTextStyled, } from './message.styled';
|
|
12
12
|
const MessageStandAloneComponent = ({ maxContentLength = 246, ariaLive = AriaLiveOptionType.OFF, ...props }, ref) => {
|
|
13
13
|
const isLargeMessage = (() => typeof props.content.content === 'string' &&
|
|
14
14
|
props.content.content.length >= maxContentLength)();
|
|
@@ -23,12 +23,12 @@ const MessageStandAloneComponent = ({ maxContentLength = 246, ariaLive = AriaLiv
|
|
|
23
23
|
};
|
|
24
24
|
const buildActionButton = () => props.actionButton?.content &&
|
|
25
25
|
(props.styles.actionButton?.size || props.actionButton?.size) && (_jsx(ActioButtonWrapperStyled, { styles: props.styles, children: _jsx(Button, { dataTestId: `${props.dataTestId}ActionButton`, size: props.styles.actionButton?.size, ...props.actionButton, children: props.actionButton?.content }) }));
|
|
26
|
-
const buildTag = () => (_jsx(
|
|
26
|
+
const buildTag = () => (_jsx(Tag, { option: '', status: '', variant: '', ...props.tag, children: props.tag?.content }));
|
|
27
27
|
const buildExtraActionButton = () => props.extraActionButton?.content && (_jsx(ExtraActioButtonWrapperStyled, { styles: props.styles, children: _jsx(Button, { ...props.extraActionButton, children: props.extraActionButton?.content }) }));
|
|
28
28
|
const buildContent = () => {
|
|
29
29
|
return typeof props.content.content === 'string' ? (_jsx(Text, { component: TextComponentType.PARAGRAPH, customTypography: props.styles.description, dataTestId: `${props.dataTestId}Description`, ...props.content, children: props.content.content })) : (props.content.content);
|
|
30
30
|
};
|
|
31
|
-
return props.open
|
|
31
|
+
return (_jsx(_Fragment, { children: props.open && (_jsxs(MessageStyled, { ref: ref, "aria-live": ariaLive, "data-testid": `${props.dataTestId}Message`, id: props.id, role: props.role, styles: props.styles, children: [buildIconOrIllustration(), _jsxs(MessageHeaderStyled, { isLargeMessage: isLargeMessage, styles: props.styles, withIcon: !!props.closeIcon, children: [props.title && (_jsx(MessageTextStyled, { "aria-errormessage": props.ariaMessageId, extraPaddingGap: !!props.closeIcon, styles: props.styles.closeIcon, children: _jsx(Text, { component: TextComponentType.PARAGRAPH, customTypography: props.styles.title, dataTestId: `${props.dataTestId}Title`, ...props.title, children: props.title.content }) })), props.tag?.content && buildTag(), _jsx(MessageContentStyled, { isLargeMessage: isLargeMessage, styles: props.styles, children: buildContent() }), _jsxs(ButtonSectionStyled, { styles: props.styles, children: [buildExtraActionButton(), buildActionButton(), props.closeIcon?.onClick && (_jsx(CloseButtonSectionStyled, { styles: props.styles, children: _jsx(ElementOrIcon, { customIconStyles: props.styles.closeIcon, ...props.closeIcon }) }))] }), props.link?.content && (_jsx(LinkContainerStyled, { styles: props.styles, children: _jsx(Link, { dataTestId: `${props.dataTestId}Link`, decoration: TextDecorationType.UNDERLINE, ...props.link, children: props.link.content }) }))] })] })) }));
|
|
32
32
|
};
|
|
33
33
|
export const MessageStandAlone = React.forwardRef(MessageStandAloneComponent);
|
|
34
34
|
//# sourceMappingURL=messageStandAlone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageStandAlone.js","sourceRoot":"","sources":["../../../../src/components/message/messageStandAlone.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,SAAS;AACT,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,6BAA6B,EAC7B,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"messageStandAlone.js","sourceRoot":"","sources":["../../../../src/components/message/messageStandAlone.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,SAAS;AACT,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,6BAA6B,EAC7B,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,GAClB,MAAM,kBAAkB,CAAC;AAG1B,MAAM,0BAA0B,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;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { IButton } from '../../../components/button';
|
|
3
3
|
import { IElementOrIcon } from '../../../components/elementOrIcon';
|
|
4
4
|
import { IElementOrillustration } from '../../../components/elementOrIllustration';
|
|
@@ -15,7 +15,7 @@ export type MessageExtraActionButtonType = Omit<IButton, 'children'> & {
|
|
|
15
15
|
content?: React.ReactNode;
|
|
16
16
|
};
|
|
17
17
|
export type MessageContentType = Omit<IText<string>, 'children'> & {
|
|
18
|
-
content:
|
|
18
|
+
content: React.ReactNode;
|
|
19
19
|
};
|
|
20
20
|
export type MessageTitleType = Omit<IText<string>, 'children'> & {
|
|
21
21
|
content: string;
|
|
@@ -34,7 +34,7 @@ const OptionStandAlone = React.forwardRef((props, ref) => {
|
|
|
34
34
|
if (!disabled && (isKeyEnterPressed(event.key) || isKeySpacePressed(event.key))) {
|
|
35
35
|
props.onClick?.(event);
|
|
36
36
|
}
|
|
37
|
-
}, onMouseEnter: props.onMouseEnter, onMouseLeave: props.onMouseLeave, children: [_jsxs(OptionFirstRowWrapperStyled, { children: [_jsxs(OptionLabelIconWrapper, { stateStyles: stateStyles, children: [_jsx(ElementOrIcon, { color: stateStyles?.icon?.color, dataTestId: `${props.dataTestId}Icon`, height: stateStyles?.icon?.height, width: stateStyles?.icon?.width, ...props.icon }), props.sublabel?.content && (_jsx(OptionSublabelContainer, { stateStyles: stateStyles, children: _jsx(Text, { color: stateStyles?.sublabel?.color, component: TextComponentType.SPAN, dataTestId: `${props.dataTestId}Sublabel`, decoration: stateStyles?.sublabel?.text_decoration, variant: stateStyles?.sublabel?.font_variant, weight: stateStyles?.sublabel?.font_weight, ...props.sublabel, children: props.sublabel?.content }) })), _jsxs(OptionLabelHighlightedLabelWrapper, { children: [_jsx(OptionLabelSlice, { color: stateStyles?.label?.color, component: TextComponentType.SPAN, dataTestId: `${props.dataTestId}FirstNoHightlightedLabel`, decoration: stateStyles?.label?.text_decoration, variant: stateStyles?.label?.font_variant, weight: stateStyles?.label?.font_weight, children: _firstNoHighlightedLabel }), _jsx(OptionLabelSlice, { color: stateStyles?.label?.color, component: TextComponentType.SPAN, dataTestId: `${props.dataTestId}HighlightedLabel`, decoration: stateStyles?.labelHightlighted?.text_decoration, variant: stateStyles?.labelHightlighted?.font_variant, weight: stateStyles?.labelHightlighted?.font_weight, children: _highlightedLabel }), _jsx(OptionLabelSlice, { color: stateStyles?.label?.color, component: TextComponentType.SPAN, dataTestId: `${props.dataTestId}LastNoHightlightedLabel`, decoration: stateStyles?.label?.text_decoration, variant: stateStyles?.label?.font_variant, weight: stateStyles?.label?.font_weight, children: _lastNoHighlightedLabel })] })] }), hasCheckedIcon && (_jsx(ElementOrIcon, { color: stateStyles?.checkedIcon?.color, dataTestId: `${props.dataTestId}IconChecked`, height: stateStyles?.checkedIcon?.height, width: stateStyles?.checkedIcon?.width, ...props.checkedIcon }))] }), props.toggle && _jsx(Toggle, { ...props.toggle })] }));
|
|
37
|
+
}, onMouseEnter: props.onMouseEnter, onMouseLeave: props.onMouseLeave, children: [_jsxs(OptionFirstRowWrapperStyled, { children: [_jsxs(OptionLabelIconWrapper, { stateStyles: stateStyles, children: [_jsx(ElementOrIcon, { color: stateStyles?.icon?.color, dataTestId: `${props.dataTestId}Icon`, height: stateStyles?.icon?.height, width: stateStyles?.icon?.width, ...props.icon }), props.sublabel?.content && (_jsx(OptionSublabelContainer, { stateStyles: stateStyles, children: _jsx(Text, { color: stateStyles?.sublabel?.color, component: TextComponentType.SPAN, dataTestId: `${props.dataTestId}Sublabel`, decoration: stateStyles?.sublabel?.text_decoration, variant: stateStyles?.sublabel?.font_variant, weight: stateStyles?.sublabel?.font_weight, ...props.sublabel, children: props.sublabel?.content }) })), _jsxs(OptionLabelHighlightedLabelWrapper, { children: [_jsx(OptionLabelSlice, { color: stateStyles?.label?.color, component: TextComponentType.SPAN, dataTestId: `${props.dataTestId}FirstNoHightlightedLabel`, decoration: stateStyles?.label?.text_decoration, variant: stateStyles?.label?.font_variant, weight: stateStyles?.label?.font_weight, children: _firstNoHighlightedLabel }), _jsx(OptionLabelSlice, { color: stateStyles?.label?.color, component: TextComponentType.SPAN, dataTestId: `${props.dataTestId}HighlightedLabel`, decoration: stateStyles?.labelHightlighted?.text_decoration, variant: stateStyles?.labelHightlighted?.font_variant, weight: stateStyles?.labelHightlighted?.font_weight, children: _highlightedLabel }), _jsx(OptionLabelSlice, { color: stateStyles?.label?.color, component: TextComponentType.SPAN, dataTestId: `${props.dataTestId}LastNoHightlightedLabel`, decoration: stateStyles?.label?.text_decoration, variant: stateStyles?.label?.font_variant, weight: stateStyles?.label?.font_weight, children: _lastNoHighlightedLabel })] })] }), hasCheckedIcon && (_jsx(ElementOrIcon, { color: stateStyles?.checkedIcon?.color, dataTestId: `${props.dataTestId}IconChecked`, height: stateStyles?.checkedIcon?.height, width: stateStyles?.checkedIcon?.width, ...props.checkedIcon }))] }), props.toggle && _jsx(Toggle, { ...props.toggle }), props.extraContent && props.extraContent] }));
|
|
38
38
|
});
|
|
39
39
|
/**
|
|
40
40
|
* @description
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optionStandAlone.js","sourceRoot":"","sources":["../../../../src/components/option/optionStandAlone.tsx"],"names":[],"mappings":";AAAA,+BAA+B;AAE/B,uCAAuC;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAsB,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MA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EAAE,WAAW,EAAE,iBAAiB,EAAE,WAAW,YAElD,iBAAiB,GACD,EACnB,KAAC,gBAAgB,IACf,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAChC,SAAS,EAAE,iBAAiB,CAAC,IAAI,EACjC,UAAU,EAAE,GAAG,KAAK,CAAC,UAAU,yBAAyB,EACxD,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,eAAqC,EACrE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EACzC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,YAEtC,uBAAuB,GACP,IACgB,IACd,EACxB,cAAc,IAAI,CACjB,KAAC,aAAa,IACZ,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EACtC,UAAU,EAAE,GAAG,KAAK,CAAC,UAAU,aAAa,EAC5C,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EACxC,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,KAClC,KAAK,CAAC,WAAW,GACrB,CACH,IAC2B,EAC7B,KAAK,CAAC,MAAM,IAAI,KAAC,MAAM,OAAK,KAAK,CAAC,MAAM,GAAI,
|
|
1
|
+
{"version":3,"file":"optionStandAlone.js","sourceRoot":"","sources":["../../../../src/components/option/optionStandAlone.tsx"],"names":[],"mappings":";AAAA,+BAA+B;AAE/B,uCAAuC;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAsB,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBA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nB,KAAC,gBAAgB,IACf,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAChC,SAAS,EAAE,iBAAiB,CAAC,IAAI,EACjC,UAAU,EAAE,GAAG,KAAK,CAAC,UAAU,yBAAyB,EACxD,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,eAAqC,EACrE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EACzC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,YAEtC,uBAAuB,GACP,IACgB,IACd,EACxB,cAAc,IAAI,CACjB,KAAC,aAAa,IACZ,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EACtC,UAAU,EAAE,GAAG,KAAK,CAAC,UAAU,aAAa,EAC5C,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EACxC,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,KAClC,KAAK,CAAC,WAAW,GACrB,CACH,IAC2B,EAC7B,KAAK,CAAC,MAAM,IAAI,KAAC,MAAM,OAAK,KAAK,CAAC,MAAM,GAAI,EAC5C,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,YAAY,IAC5B,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF;;;;;;;;GAQG;AACH,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -160,6 +160,17 @@ export const argtypes = (variants, themeSelected) => {
|
|
|
160
160
|
category: CATEGORY_CONTROL.CONTENT,
|
|
161
161
|
},
|
|
162
162
|
},
|
|
163
|
+
extraContent: {
|
|
164
|
+
description: 'Allow to add a ReactNode at the end of the option',
|
|
165
|
+
control: { type: 'object' },
|
|
166
|
+
type: { name: 'object' },
|
|
167
|
+
table: {
|
|
168
|
+
type: {
|
|
169
|
+
summary: 'ReactNode',
|
|
170
|
+
},
|
|
171
|
+
category: CATEGORY_CONTROL.CONTENT,
|
|
172
|
+
},
|
|
173
|
+
},
|
|
163
174
|
role: {
|
|
164
175
|
description: 'Provide semantic meaning to the option',
|
|
165
176
|
control: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"argtypes.js","sourceRoot":"","sources":["../../../../../src/components/option/stories/argtypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAAkB,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,QAA8B,EAAE,aAAqB,EAAkB,EAAE;IAChG,OAAO;QACL,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,OAAO,EAAE,IAAI;aACd;SACF;QACD,OAAO,EAAE;YACP,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;YACxC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,WAAW,EAAE,gBAAgB;YAC7B,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,iBAAiB,IAAI,EAAE,CAAC;YACrE,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,QAAQ,EAAE,gBAAgB,CAAC,SAAS;aACrC;SACF;QACD,KAAK,EAAE;YACL,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;YACxC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,QAAQ,EAAE,gBAAgB,CAAC,OAAO;aACnC;SACF;QACD,qBAAqB,EAAE;YACrB,WAAW,EAAE,0BAA0B;YACvC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,KAAK,E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ACD,QAAQ,EAAE;YACR,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,QAAQ,EAAE,gBAAgB,CAAC,YAAY;aACxC;SACF;QACD,EAAE,EAAE;YACF,WAAW,EAAE,oCAAoC;YACjD,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,4BAA4B;iBACtC;gBACD,QAAQ,EAAE,gBAAgB,CAAC,SAAS;aACrC;SACF;QACD,UAAU,EAAE;YACV,WAAW,EAAE,yBAAyB;YACtC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,QAAQ,EAAE,gBAAgB,CAAC,OAAO;aACnC;SACF;QACD,GAAG,EAAE;YACH,WAAW,EAAE,uCAAuC;YACpD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,QAAQ,EAAE,gBAAgB,CAAC,aAAa;aACzC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"argtypes.js","sourceRoot":"","sources":["../../../../../src/components/option/stories/argtypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAAkB,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,QAA8B,EAAE,aAAqB,EA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I,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,QAAQ,EAAE,gBAAgB,CAAC,YAAY;aACxC;SACF;QACD,EAAE,EAAE;YACF,WAAW,EAAE,oCAAoC;YACjD,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,4BAA4B;iBACtC;gBACD,QAAQ,EAAE,gBAAgB,CAAC,SAAS;aACrC;SACF;QACD,UAAU,EAAE;YACV,WAAW,EAAE,yBAAyB;YACtC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,QAAQ,EAAE,gBAAgB,CAAC,OAAO;aACnC;SACF;QACD,GAAG,EAAE;YACH,WAAW,EAAE,uCAAuC;YACpD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,QAAQ,EAAE,gBAAgB,CAAC,aAAa;aACzC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -36,7 +36,11 @@ export interface IOptionStandAlone extends OptionAriaAttributes {
|
|
|
36
36
|
dataTestId?: string;
|
|
37
37
|
tabIndex?: number;
|
|
38
38
|
as?: string | React.ElementType;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated This property will be removed. Use `extraContent` instead passing the component you want.
|
|
41
|
+
*/
|
|
39
42
|
toggle?: IToggleUnControlled;
|
|
43
|
+
extraContent?: React.ReactNode;
|
|
40
44
|
}
|
|
41
45
|
/**
|
|
42
46
|
* @description
|
|
@@ -5,4 +5,5 @@ type PillSelectorStylesProp = {
|
|
|
5
5
|
isSelected?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare const PillSelectorWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PillSelectorStylesProp>>;
|
|
8
|
+
export declare const ThumbStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PillSelectorStylesProp>>;
|
|
8
9
|
export {};
|
|
@@ -16,4 +16,7 @@ export const PillSelectorWrapper = styled.div `
|
|
|
16
16
|
${({ isSelected, styles }) => isSelected && getStyles(styles?.pill?.selected)}
|
|
17
17
|
}
|
|
18
18
|
`;
|
|
19
|
+
export const ThumbStyled = styled.div `
|
|
20
|
+
${({ styles }) => getStyles(styles?.thumb)};
|
|
21
|
+
`;
|
|
19
22
|
//# sourceMappingURL=pillSelector.styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pillSelector.styled.js","sourceRoot":"","sources":["../../../../src/components/pillSelector/pillSelector.styled.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AASpC,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAwB;IACjE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC;;;MAG1C,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC;MAC5C,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,UAAU,IAAI,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,C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AAE,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC;MACvC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,UAAU,IAAI,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC;;CAEhF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAwB;IACzD,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC;CAC3C,CAAC"}
|
|
@@ -8,7 +8,29 @@ const PILL_SELECTOR_STYLES = 'PILL_SELECTOR_STYLES';
|
|
|
8
8
|
const PillSelectorControlledComponent = React.forwardRef(({ ctv, ...props }, ref) => {
|
|
9
9
|
const styles = useStyles(PILL_SELECTOR_STYLES, props.variant, ctv);
|
|
10
10
|
const id = useId('name');
|
|
11
|
-
|
|
11
|
+
const measuredRef = React.useRef(null);
|
|
12
|
+
// update measurements of the thumb
|
|
13
|
+
const updateMeasurements = () => {
|
|
14
|
+
// get the index of the selected pill
|
|
15
|
+
const index = props.pills.findIndex(pill => pill.value.toString() === props.pillSelected?.[0].toString()) + 1;
|
|
16
|
+
// get the size and the position of the thumb from the selected pill
|
|
17
|
+
if (measuredRef.current) {
|
|
18
|
+
const thumb = measuredRef.current.childNodes[0];
|
|
19
|
+
const selectedPill = measuredRef.current.childNodes[index];
|
|
20
|
+
thumb.style.width = `${selectedPill?.clientWidth}px`;
|
|
21
|
+
thumb.style.height = `${selectedPill?.getBoundingClientRect().height}px`;
|
|
22
|
+
thumb.style.left = `${selectedPill.offsetLeft}px`;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
React.useImperativeHandle(ref, () => {
|
|
26
|
+
return measuredRef.current;
|
|
27
|
+
}, []);
|
|
28
|
+
React.useEffect(() => {
|
|
29
|
+
if (!props.multiSelect && measuredRef?.current && props.pillSelected?.[0] && styles?.thumb) {
|
|
30
|
+
updateMeasurements();
|
|
31
|
+
}
|
|
32
|
+
}, [props.multiSelect, measuredRef, props.pills, props.pillSelected?.[0]]);
|
|
33
|
+
return (_jsx(PillSelectorStandAlone, { ref: measuredRef, name: `pillSelector${id}`, styles: styles, ...props }));
|
|
12
34
|
});
|
|
13
35
|
PillSelectorControlledComponent.displayName = 'PillSelectorControlledComponent';
|
|
14
36
|
const PillSelectorBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(PillSelectorStandAlone, { ...props, ref: ref }) }), children: _jsx(PillSelectorControlledComponent, { ...props, ref: ref }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pillSelectorControlled.js","sourceRoot":"","sources":["../../../../src/components/pillSelector/pillSelectorControlled.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAIlE,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;AAEpD,MAAM,+BAA+B,GAAG,KAAK,CAAC,UAAU,CACtD,CACE,EAAE,GAAG,EAAE,GAAG,KAAK,EAA8B,EAC7C,GAA0D,EAC7C,EAAE;IACf,MAAM,MAAM,GAAG,SAAS,CAAwB,oBAAoB,EAAE,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IAC1F,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,OAAO,CACL,KAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"pillSelectorControlled.js","sourceRoot":"","sources":["../../../../src/components/pillSelector/pillSelectorControlled.tsx"],"names":[],"mappings":";AAAA,OAA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,CAAC;AAE7C,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Pill } from '../../components/pill';
|
|
4
4
|
import { useRoveFocus } from '../../hooks';
|
|
5
5
|
import { ROLES } from '../../types';
|
|
6
|
-
import { PillSelectorWrapper } from './pillSelector.styled';
|
|
6
|
+
import { PillSelectorWrapper, ThumbStyled } from './pillSelector.styled';
|
|
7
7
|
import { keyLeftMove, keyRightMove } from './utils';
|
|
8
8
|
const MAX_PILLS = 3;
|
|
9
9
|
const PillSelectorStandAloneComponent = ({ dataTestId, maxPills = MAX_PILLS, ...props }, ref) => {
|
|
@@ -21,18 +21,16 @@ const PillSelectorStandAloneComponent = ({ dataTestId, maxPills = MAX_PILLS, ...
|
|
|
21
21
|
React.useImperativeHandle(ref, () => {
|
|
22
22
|
return listEl.current;
|
|
23
23
|
}, []);
|
|
24
|
-
return (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})
|
|
35
|
-
: null }));
|
|
24
|
+
return (_jsxs(PillSelectorWrapper, { ref: listEl, "data-testid": `${dataTestId}PillSelector`, isSelected: isPillSelected, role: ROLES.RADIOGROUP, styles: props.styles, children: [!props.multiSelect && props.styles?.thumb && (_jsx(ThumbStyled, { "data-testid": `${dataTestId}Thumb`, styles: props.styles })), props.pills.length > 1 && props.pills.length <= maxPills
|
|
25
|
+
? props.pills.map((pill, index) => {
|
|
26
|
+
const pillSelected = props.pillSelected?.includes(pill.value.toString());
|
|
27
|
+
return ((props.pillSize || pill?.size) && (_jsx(Pill, { dataTestId: `${dataTestId}Pill${index}`, focus: focus === index, multiSelect: props.multiSelect, name: props.name, selected: pillSelected, size: props.pillSize || '', tabIndex: pillSelected || (!isPillSelected && index === 0) ? 0 : -1, ...pill, value: pill.value.toString(), variant: props.pillVariant, onFocus: () => {
|
|
28
|
+
if (index !== focus) {
|
|
29
|
+
setFocus(index);
|
|
30
|
+
}
|
|
31
|
+
}, onPillChange: props.onPillChange, children: pill.label }, pill.value)));
|
|
32
|
+
})
|
|
33
|
+
: null] }));
|
|
36
34
|
};
|
|
37
35
|
export const PillSelectorStandAlone = React.forwardRef(PillSelectorStandAloneComponent);
|
|
38
36
|
//# sourceMappingURL=pillSelectorStandAlone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pillSelectorStandAlone.js","sourceRoot":"","sources":["../../../../src/components/pillSelector/pillSelectorStandAlone.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"pillSelectorStandAlone.js","sourceRoot":"","sources":["../../../../src/components/pillSelector/pillSelectorStandAlone.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEpD,MAAM,SAAS,GAAG,CAAC,CAAC;AAEpB,MAAM,+BAA+B,G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
|
|
@@ -7,7 +7,7 @@ export const InfoIconWithTooltipStandAlone = ({ styles, infoIcon, tooltip, dataT
|
|
|
7
7
|
if (!infoIcon) {
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
|
-
const infoIconWithoutTooltip = (_jsx(InfoIconWrapperStyled, { children: _jsx(ElementOrIcon, { customIconStyles: styles[RadioButtonGroupStateType.DEFAULT]?.tooltip?.icon, dataTestId: dataTestId, ...infoIcon }) }));
|
|
10
|
+
const infoIconWithoutTooltip = (_jsx(InfoIconWrapperStyled, { styles: styles, children: _jsx(ElementOrIcon, { customIconStyles: styles[RadioButtonGroupStateType.DEFAULT]?.tooltip?.icon, dataTestId: dataTestId, ...infoIcon }) }));
|
|
11
11
|
const tooltipVariant = tooltip?.variant ?? styles[RadioButtonGroupStateType.DEFAULT]?.tooltip?.variant;
|
|
12
12
|
if ((!tooltip?.title?.content && !tooltip?.content?.content) || !tooltipVariant) {
|
|
13
13
|
return infoIconWithoutTooltip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infoIconWithTooltipStandAlone.js","sourceRoot":"","sources":["../../../../../../src/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,EAAkC,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,EAC5C,MAAM,EACN,QAAQ,EACR,OAAO,EACP,UAAU,GACqB,EAAsB,EAAE;IACvD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,sBAAsB,GAAG,CAC7B,KAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"infoIconWithTooltipStandAlone.js","sourceRoot":"","sources":["../../../../../../src/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,EAAkC,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,EAC5C,MAAM,EACN,QAAQ,EACR,OAAO,EACP,UAAU,GACqB,EAAsB,EAAE;IACvD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,sBAAsB,GAAG,CAC7B,KAAC,qBAAqB,IAAC,MAAM,EAAE,MAAM,YACnC,KAAC,aAAa,IACZ,gBAAgB,EAAE,MAAM,CAAC,yBAAyB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,EAC1E,UAAU,EAAE,UAAU,KAClB,QAAQ,GACZ,GACoB,CACzB,CAAC;IACF,MAAM,cAAc,GAClB,OAAO,EAAE,OAAO,IAAI,MAAM,CAAC,yBAAyB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC;IAClF,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;QAChF,OAAO,sBAAsB,CAAC;IAChC,CAAC;IACD,OAAO,CACL,KAAC,OAAO,IACN,KAAK,EAAE,MAAM,CAAC,yBAAyB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAChE,UAAU,EAAE,GAAG,UAAU,SAAS,KAC9B,OAAO,EACX,OAAO,EAAE,cAAc,YAEtB,sBAAsB,GACf,CACX,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { IRadioButtonGroupStyled } from '../../types';
|
|
3
|
+
export declare const InfoIconWrapperStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IRadioButtonGroupStyled>>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
+
import { getStyles } from '../../../../utils';
|
|
3
|
+
import { RadioButtonGroupStateType } from '../../types';
|
|
2
4
|
export const InfoIconWrapperStyled = styled.div `
|
|
3
|
-
|
|
5
|
+
${({ styles }) => getStyles(styles?.[RadioButtonGroupStateType.DEFAULT]?.infoIconContainer)}
|
|
4
6
|
`;
|
|
5
7
|
//# sourceMappingURL=infoIconWithTooltipStandAlone.styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infoIconWithTooltipStandAlone.styled.js","sourceRoot":"","sources":["../../../../../../src/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"infoIconWithTooltipStandAlone.styled.js","sourceRoot":"","sources":["../../../../../../src/components/radioButtonGroup/components/infoIconWithTooltipStandAlone/infoIconWithTooltipStandAlone.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAA2B,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAEjF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAyB;IACpE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,yBAAyB,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC5F,CAAC"}
|