@kommo-crm/crm-react-ui-kit 1.1.1-beta.3 → 1.1.1-beta.4
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/Accordion.module-0NEfElzm.mjs +6 -0
- package/dist/ItemRoot.module-DaaOqYPx.mjs +7 -0
- package/dist/ItemRoot.module-fiKLca_h.mjs +7 -0
- package/dist/List-AX0nB9Ji.mjs +141 -0
- package/dist/Tab.module-Bh4dewE1.mjs +7 -0
- package/dist/assets/Accordion.css +1 -0
- package/dist/assets/Arrow.css +1 -0
- package/dist/assets/Arrow2.css +1 -0
- package/dist/assets/BaseClasses.css +1 -0
- package/dist/assets/BaseInput.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/Callout.css +1 -0
- package/dist/assets/Checkbox.css +1 -0
- package/dist/assets/CheckboxGroup.css +1 -0
- package/dist/assets/CheckboxItem.css +1 -0
- package/dist/assets/ContentBlock.css +1 -0
- package/dist/assets/FilterTabs.css +1 -0
- package/dist/assets/Icon.css +1 -0
- package/dist/assets/InlineInput.css +1 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/Item.css +1 -0
- package/dist/assets/Item2.css +1 -0
- package/dist/assets/Item3.css +1 -0
- package/dist/assets/ItemIcon.css +1 -0
- package/dist/assets/ItemIndicator.css +1 -0
- package/dist/assets/ItemRightSlot.css +1 -0
- package/dist/assets/ItemRoot.css +1 -0
- package/dist/assets/ItemRoot2.css +1 -0
- package/dist/assets/ItemRoot3.css +1 -0
- package/dist/assets/Label.css +1 -0
- package/dist/assets/Label2.css +1 -0
- package/dist/assets/Link.css +1 -0
- package/dist/assets/List.css +1 -0
- package/dist/assets/Option.css +1 -0
- package/dist/assets/Radio.css +1 -0
- package/dist/assets/RadioGroup.css +1 -0
- package/dist/assets/RadioItem.css +1 -0
- package/dist/assets/Select.css +1 -0
- package/dist/assets/SelectButton.css +1 -0
- package/dist/assets/Separator.css +1 -0
- package/dist/assets/Spinner.css +1 -0
- package/dist/assets/SubContent.css +1 -0
- package/dist/assets/SubTrigger.css +1 -0
- package/dist/assets/Switcher.css +1 -0
- package/dist/assets/Tab.css +1 -0
- package/dist/assets/Text.css +1 -0
- package/dist/assets/TextArea.css +1 -0
- package/dist/assets/VisuallyHiddenInput.css +1 -0
- package/dist/assets/icons.css +1 -0
- package/dist/assets/theme.css +1 -0
- package/dist/assets/useContentPositioning.css +1 -0
- package/dist/components/Accordion/Accordion.context.d.ts +1 -1
- package/dist/components/Accordion/Accordion.context.js +7 -4
- package/dist/components/Accordion/Accordion.js +14 -12
- package/dist/components/Accordion/Accordion.props.js +1 -1
- package/dist/components/Accordion/Accordion.themes.js +5 -2
- package/dist/components/Accordion/components/AccordionMultiple/AccordionMultiple.d.ts +1 -1
- package/dist/components/Accordion/components/AccordionMultiple/AccordionMultiple.js +44 -30
- package/dist/components/Accordion/components/AccordionMultiple/AccordionMultiple.props.js +1 -1
- package/dist/components/Accordion/components/AccordionSingle/AccordionSingle.d.ts +1 -1
- package/dist/components/Accordion/components/AccordionSingle/AccordionSingle.js +45 -30
- package/dist/components/Accordion/components/AccordionSingle/AccordionSingle.props.js +1 -1
- package/dist/components/Accordion/components/Item/Item.d.ts +2 -2
- package/dist/components/Accordion/components/Item/Item.js +58 -30
- package/dist/components/Accordion/components/Item/Item.props.js +1 -1
- package/dist/components/Accordion/components/Item/Item.themes.js +11 -8
- package/dist/components/Accordion/index.js +8 -3
- package/dist/components/BaseInput/BaseInput.d.ts +2 -2
- package/dist/components/BaseInput/BaseInput.js +34 -9
- package/dist/components/BaseInput/BaseInput.props.js +1 -1
- package/dist/components/BaseInput/index.js +4 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.js +91 -55
- package/dist/components/Button/Button.props.d.ts +2 -2
- package/dist/components/Button/Button.props.js +1 -1
- package/dist/components/Button/Button.themes.js +66 -64
- package/dist/components/Button/hooks/index.js +6 -2
- package/dist/components/Button/hooks/useShowInvalidAnimation/useShowInvalidAnimation.js +15 -17
- package/dist/components/Button/hooks/useShowSuccessfulState/useShowSuccessfulState.js +15 -17
- package/dist/components/Button/index.js +8 -2
- package/dist/components/Callout/Callout.d.ts +2 -2
- package/dist/components/Callout/Callout.js +32 -14
- package/dist/components/Callout/Callout.props.js +1 -1
- package/dist/components/Callout/index.js +12 -5
- package/dist/components/Callout/themes/CalloutBase.theme.js +7 -4
- package/dist/components/Callout/themes/CalloutError.theme.js +9 -6
- package/dist/components/Callout/themes/CalloutInfo.theme.js +9 -6
- package/dist/components/Callout/themes/CalloutSuccess.theme.js +9 -6
- package/dist/components/Callout/themes/CalloutWarning.theme.js +9 -6
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +55 -20
- package/dist/components/Checkbox/Checkbox.props.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.props.js +1 -1
- package/dist/components/Checkbox/Checkbox.themes.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.themes.js +44 -40
- package/dist/components/Checkbox/index.js +10 -2
- package/dist/components/CheckboxGroup/CheckboxGroup.context.d.ts +2 -2
- package/dist/components/CheckboxGroup/CheckboxGroup.context.js +7 -4
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +52 -24
- package/dist/components/CheckboxGroup/CheckboxGroup.props.d.ts +6 -6
- package/dist/components/CheckboxGroup/CheckboxGroup.props.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.themes.js +5 -2
- package/dist/components/CheckboxGroup/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/components/CheckboxGroup/components/Checkbox/Checkbox.js +33 -16
- package/dist/components/CheckboxGroup/components/Checkbox/Checkbox.props.d.ts +1 -1
- package/dist/components/CheckboxGroup/components/Checkbox/Checkbox.props.js +1 -1
- package/dist/components/CheckboxGroup/components/Checkbox/index.js +4 -1
- package/dist/components/CheckboxGroup/components/CheckboxSelectAll/CheckboxSelectAll.d.ts +2 -2
- package/dist/components/CheckboxGroup/components/CheckboxSelectAll/CheckboxSelectAll.js +34 -23
- package/dist/components/CheckboxGroup/components/CheckboxSelectAll/ItemRootSelectAll.context.d.ts +2 -2
- package/dist/components/CheckboxGroup/components/CheckboxSelectAll/ItemRootSelectAll.context.js +7 -4
- package/dist/components/CheckboxGroup/components/CheckboxSelectAll/ItemRootSelectAll.d.ts +2 -2
- package/dist/components/CheckboxGroup/components/CheckboxSelectAll/ItemRootSelectAll.js +40 -21
- package/dist/components/CheckboxGroup/components/CheckboxSelectAll/ItemRootSelectAll.props.d.ts +2 -2
- package/dist/components/CheckboxGroup/components/CheckboxSelectAll/ItemRootSelectAll.props.js +1 -1
- package/dist/components/CheckboxGroup/components/CheckboxSelectAll/index.js +6 -2
- package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.context.d.ts +2 -2
- package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.context.js +7 -4
- package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.d.ts +2 -2
- package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.js +35 -21
- package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.props.d.ts +2 -2
- package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.props.js +1 -1
- package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.themes.js +5 -2
- package/dist/components/CheckboxGroup/components/ItemRoot/index.js +6 -2
- package/dist/components/CheckboxGroup/hooks/index.js +4 -1
- package/dist/components/CheckboxGroup/hooks/useCheckboxGroupState.d.ts +1 -1
- package/dist/components/CheckboxGroup/hooks/useCheckboxGroupState.js +47 -57
- package/dist/components/CheckboxGroup/index.js +12 -4
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +2 -2
- package/dist/components/ConfigProvider/ConfigProvider.js +13 -7
- package/dist/components/ConfigProvider/ConfigProvider.props.d.ts +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.props.js +1 -1
- package/dist/components/ConfigProvider/index.js +4 -1
- package/dist/components/ContentBlock/ContentBlock.d.ts +2 -2
- package/dist/components/ContentBlock/ContentBlock.js +13 -9
- package/dist/components/ContentBlock/ContentBlock.props.js +1 -1
- package/dist/components/ContentBlock/ContentBlock.themes.js +9 -6
- package/dist/components/ContentBlock/index.js +6 -2
- package/dist/components/ContextMenu/ContextMenu.context.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.context.js +7 -4
- package/dist/components/ContextMenu/ContextMenu.enums.js +4 -11
- package/dist/components/ContextMenu/ContextMenu.js +106 -63
- package/dist/components/ContextMenu/ContextMenu.props.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.props.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.types.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.types.js +1 -1
- package/dist/components/ContextMenu/components/Arrow/Arrow.d.ts +2 -2
- package/dist/components/ContextMenu/components/Arrow/Arrow.js +37 -15
- package/dist/components/ContextMenu/components/Arrow/Arrow.props.js +1 -1
- package/dist/components/ContextMenu/components/Arrow/index.js +4 -1
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.d.ts +1 -1
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.js +78 -44
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.props.d.ts +2 -2
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.props.js +1 -1
- package/dist/components/ContextMenu/components/CheckboxItem/index.js +4 -1
- package/dist/components/ContextMenu/components/Content/Content.d.ts +2 -2
- package/dist/components/ContextMenu/components/Content/Content.enums.js +4 -43
- package/dist/components/ContextMenu/components/Content/Content.js +15 -54
- package/dist/components/ContextMenu/components/Content/Content.props.js +1 -1
- package/dist/components/ContextMenu/components/Content/Content.types.js +1 -1
- package/dist/components/ContextMenu/components/Content/Content.utils.js +13 -10
- package/dist/components/ContextMenu/components/Content/index.js +8 -3
- package/dist/components/ContextMenu/components/Group/Group.d.ts +1 -1
- package/dist/components/ContextMenu/components/Group/Group.js +6 -4
- package/dist/components/ContextMenu/components/Group/index.js +4 -1
- package/dist/components/ContextMenu/components/Item/Item.context.d.ts +1 -1
- package/dist/components/ContextMenu/components/Item/Item.context.js +7 -4
- package/dist/components/ContextMenu/components/Item/Item.d.ts +3 -3
- package/dist/components/ContextMenu/components/Item/Item.js +112 -73
- package/dist/components/ContextMenu/components/Item/Item.props.d.ts +1 -1
- package/dist/components/ContextMenu/components/Item/Item.props.js +1 -1
- package/dist/components/ContextMenu/components/Item/index.js +4 -1
- package/dist/components/ContextMenu/components/ItemIcon/ItemIcon.d.ts +1 -1
- package/dist/components/ContextMenu/components/ItemIcon/ItemIcon.js +25 -21
- package/dist/components/ContextMenu/components/ItemIcon/ItemIcon.props.js +1 -1
- package/dist/components/ContextMenu/components/ItemIcon/index.js +4 -1
- package/dist/components/ContextMenu/components/ItemIndicator/ItemIndicator.d.ts +2 -2
- package/dist/components/ContextMenu/components/ItemIndicator/ItemIndicator.js +29 -19
- package/dist/components/ContextMenu/components/ItemIndicator/ItemIndicator.props.js +1 -1
- package/dist/components/ContextMenu/components/ItemIndicator/index.js +4 -1
- package/dist/components/ContextMenu/components/ItemRightSlot/ItemRightSlot.d.ts +2 -2
- package/dist/components/ContextMenu/components/ItemRightSlot/ItemRightSlot.js +57 -32
- package/dist/components/ContextMenu/components/ItemRightSlot/ItemRightSlot.props.js +1 -1
- package/dist/components/ContextMenu/components/ItemRightSlot/index.js +4 -1
- package/dist/components/ContextMenu/components/Label/Label.d.ts +2 -2
- package/dist/components/ContextMenu/components/Label/Label.js +28 -12
- package/dist/components/ContextMenu/components/Label/Label.props.d.ts +2 -2
- package/dist/components/ContextMenu/components/Label/Label.props.js +1 -1
- package/dist/components/ContextMenu/components/Label/index.js +4 -1
- package/dist/components/ContextMenu/components/Portal/Portal.d.ts +1 -1
- package/dist/components/ContextMenu/components/Portal/Portal.js +6 -4
- package/dist/components/ContextMenu/components/Portal/index.js +4 -1
- package/dist/components/ContextMenu/components/RadioGroup/RadioGroup.js +13 -14
- package/dist/components/ContextMenu/components/RadioGroup/RadioGroup.props.d.ts +2 -2
- package/dist/components/ContextMenu/components/RadioGroup/RadioGroup.props.js +1 -1
- package/dist/components/ContextMenu/components/RadioGroup/index.js +4 -1
- package/dist/components/ContextMenu/components/RadioItem/RadioItem.d.ts +1 -1
- package/dist/components/ContextMenu/components/RadioItem/RadioItem.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/RadioItem/RadioItem.js +70 -37
- package/dist/components/ContextMenu/components/RadioItem/RadioItem.props.d.ts +2 -2
- package/dist/components/ContextMenu/components/RadioItem/RadioItem.props.js +1 -1
- package/dist/components/ContextMenu/components/RadioItem/index.js +4 -1
- package/dist/components/ContextMenu/components/Separator/Separator.d.ts +2 -2
- package/dist/components/ContextMenu/components/Separator/Separator.js +21 -9
- package/dist/components/ContextMenu/components/Separator/Separator.props.js +1 -1
- package/dist/components/ContextMenu/components/Separator/index.js +4 -1
- package/dist/components/ContextMenu/components/Sub/Sub.context.d.ts +1 -1
- package/dist/components/ContextMenu/components/Sub/Sub.context.js +7 -4
- package/dist/components/ContextMenu/components/Sub/Sub.d.ts +1 -1
- package/dist/components/ContextMenu/components/Sub/Sub.js +58 -14
- package/dist/components/ContextMenu/components/Sub/Sub.props.js +1 -1
- package/dist/components/ContextMenu/components/Sub/index.js +4 -1
- package/dist/components/ContextMenu/components/SubContent/SubContent.d.ts +2 -2
- package/dist/components/ContextMenu/components/SubContent/SubContent.js +83 -58
- package/dist/components/ContextMenu/components/SubContent/SubContent.props.js +1 -1
- package/dist/components/ContextMenu/components/SubContent/index.js +4 -1
- package/dist/components/ContextMenu/components/SubRoot/SubRoot.js +93 -36
- package/dist/components/ContextMenu/components/SubRoot/SubRoot.props.d.ts +1 -1
- package/dist/components/ContextMenu/components/SubRoot/SubRoot.props.js +1 -1
- package/dist/components/ContextMenu/components/SubRoot/SubRoot.types.d.ts +1 -1
- package/dist/components/ContextMenu/components/SubRoot/SubRoot.types.js +1 -1
- package/dist/components/ContextMenu/components/SubRoot/components/Content/Content.d.ts +2 -2
- package/dist/components/ContextMenu/components/SubRoot/components/Content/Content.js +104 -63
- package/dist/components/ContextMenu/components/SubRoot/components/Content/index.js +4 -1
- package/dist/components/ContextMenu/components/SubRoot/components/Trigger/Trigger.d.ts +2 -2
- package/dist/components/ContextMenu/components/SubRoot/components/Trigger/Trigger.js +71 -38
- package/dist/components/ContextMenu/components/SubRoot/components/Trigger/Trigger.props.js +1 -1
- package/dist/components/ContextMenu/components/SubRoot/components/Trigger/index.js +4 -1
- package/dist/components/ContextMenu/components/SubRoot/index.js +4 -1
- package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.d.ts +1 -1
- package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.js +98 -76
- package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.props.d.ts +2 -2
- package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.props.js +1 -1
- package/dist/components/ContextMenu/components/SubTrigger/index.js +4 -1
- package/dist/components/ContextMenu/components/Trigger/Trigger.d.ts +2 -2
- package/dist/components/ContextMenu/components/Trigger/Trigger.js +51 -35
- package/dist/components/ContextMenu/components/Trigger/Trigger.props.js +1 -1
- package/dist/components/ContextMenu/components/Trigger/index.js +4 -1
- package/dist/components/ContextMenu/hooks/index.js +16 -7
- package/dist/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.js +7 -198
- package/dist/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.types.js +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.d.ts +2 -2
- package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.js +72 -209
- package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.types.js +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenuItemFocus/useContextMenuItemFocus.js +38 -42
- package/dist/components/ContextMenu/hooks/useContextMenuItemFocus/useContextMenuItemFocus.types.js +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenuSub/useContextMenuSub.d.ts +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenuSub/useContextMenuSub.js +65 -186
- package/dist/components/ContextMenu/hooks/useContextMenuSub/useContextMenuSub.types.js +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenuSubMenu/useContextMenuSubMenu.d.ts +2 -2
- package/dist/components/ContextMenu/hooks/useContextMenuSubMenu/useContextMenuSubMenu.js +71 -215
- package/dist/components/ContextMenu/hooks/useContextMenuSubMenu/useContextMenuSubMenu.types.js +1 -1
- package/dist/components/ContextMenu/hooks/useInheritedArrowColor/useInheritedArrowColor.js +57 -110
- package/dist/components/ContextMenu/hooks/useIsTouchDevice/useIsTouchDevice.js +15 -26
- package/dist/components/ContextMenu/hooks/useStopContextMenuEvents/useStopContextMenuEvents.d.ts +9 -9
- package/dist/components/ContextMenu/hooks/useStopContextMenuEvents/useStopContextMenuEvents.js +21 -20
- package/dist/components/ContextMenu/hooks/useStopContextMenuEvents/useStopContextMenuEvents.types.js +1 -1
- package/dist/components/ContextMenu/index.js +10 -3
- package/dist/components/ContextMenu/providers/LevelProvider/LevelProvider.d.ts +1 -1
- package/dist/components/ContextMenu/providers/LevelProvider/LevelProvider.js +6 -9
- package/dist/components/ContextMenu/providers/LevelProvider/LevelProvider.props.js +1 -1
- package/dist/components/ContextMenu/providers/LevelProvider/index.js +5 -1
- package/dist/components/ContextMenu/providers/index.js +5 -1
- package/dist/components/ContextMenu/utils/contextMenuBus/contextMenuBus.js +19 -12
- package/dist/components/ContextMenu/utils/contextMenuBus/contextMenuBus.types.js +1 -1
- package/dist/components/ContextMenu/utils/focusParentItem/focusParentItem.js +11 -8
- package/dist/components/ContextMenu/utils/hasItemIcon/hasItemIcon.d.ts +1 -1
- package/dist/components/ContextMenu/utils/hasItemIcon/hasItemIcon.js +8 -8
- package/dist/components/ContextMenu/utils/index.js +10 -4
- package/dist/components/ContextMenu/utils/isFirstElement/isFirstElement.d.ts +1 -1
- package/dist/components/ContextMenu/utils/isFirstElement/isFirstElement.js +9 -13
- package/dist/components/FilterTabs/FilterTabs.context.d.ts +2 -2
- package/dist/components/FilterTabs/FilterTabs.context.js +7 -4
- package/dist/components/FilterTabs/FilterTabs.d.ts +1 -1
- package/dist/components/FilterTabs/FilterTabs.js +61 -52
- package/dist/components/FilterTabs/FilterTabs.props.d.ts +5 -5
- package/dist/components/FilterTabs/FilterTabs.props.js +1 -1
- package/dist/components/FilterTabs/FilterTabs.themes.js +5 -2
- package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.context.d.ts +2 -2
- package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.context.js +7 -4
- package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.d.ts +2 -2
- package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.js +37 -26
- package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.props.d.ts +2 -2
- package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.props.js +1 -1
- package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.themes.js +5 -2
- package/dist/components/FilterTabs/components/ItemRoot/index.js +6 -2
- package/dist/components/FilterTabs/components/ItemRootReset/ItemRootReset.context.d.ts +1 -1
- package/dist/components/FilterTabs/components/ItemRootReset/ItemRootReset.context.js +7 -4
- package/dist/components/FilterTabs/components/ItemRootReset/ItemRootReset.d.ts +2 -2
- package/dist/components/FilterTabs/components/ItemRootReset/ItemRootReset.js +33 -21
- package/dist/components/FilterTabs/components/ItemRootReset/ItemRootReset.props.d.ts +2 -2
- package/dist/components/FilterTabs/components/ItemRootReset/ItemRootReset.props.js +1 -1
- package/dist/components/FilterTabs/components/ItemRootReset/TabReset.d.ts +2 -2
- package/dist/components/FilterTabs/components/ItemRootReset/TabReset.js +27 -17
- package/dist/components/FilterTabs/components/ItemRootReset/index.js +6 -2
- package/dist/components/FilterTabs/components/Tab/Tab.d.ts +2 -2
- package/dist/components/FilterTabs/components/Tab/Tab.js +34 -20
- package/dist/components/FilterTabs/components/Tab/Tab.props.d.ts +1 -1
- package/dist/components/FilterTabs/components/Tab/Tab.props.js +1 -1
- package/dist/components/FilterTabs/components/Tab/Tab.themes.js +16 -13
- package/dist/components/FilterTabs/components/Tab/index.js +6 -2
- package/dist/components/FilterTabs/index.js +14 -4
- package/dist/components/InlineInput/InlineInput.d.ts +2 -2
- package/dist/components/InlineInput/InlineInput.js +63 -23
- package/dist/components/InlineInput/InlineInput.props.d.ts +2 -2
- package/dist/components/InlineInput/InlineInput.props.js +1 -1
- package/dist/components/InlineInput/InlineInput.themes.d.ts +1 -1
- package/dist/components/InlineInput/InlineInput.themes.js +42 -39
- package/dist/components/InlineInput/index.js +7 -2
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Input/Input.js +76 -25
- package/dist/components/Input/Input.props.d.ts +2 -2
- package/dist/components/Input/Input.props.js +1 -1
- package/dist/components/Input/Input.themes.d.ts +1 -1
- package/dist/components/Input/Input.themes.js +59 -56
- package/dist/components/Input/index.js +7 -2
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Label/Label.js +60 -30
- package/dist/components/Label/Label.props.d.ts +1 -1
- package/dist/components/Label/Label.props.js +1 -1
- package/dist/components/Label/Label.theme.js +9 -6
- package/dist/components/Label/index.js +7 -2
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/Link/Link.js +13 -9
- package/dist/components/Link/Link.props.js +1 -1
- package/dist/components/Link/Link.themes.js +12 -9
- package/dist/components/Link/index.js +6 -2
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/List.js +10 -24
- package/dist/components/List/List.props.js +1 -1
- package/dist/components/List/List.theme.js +18 -15
- package/dist/components/List/index.js +6 -2
- package/dist/components/Portal/Portal.d.ts +2 -2
- package/dist/components/Portal/Portal.js +10 -8
- package/dist/components/Portal/Portal.props.js +1 -1
- package/dist/components/Portal/index.js +4 -1
- package/dist/components/RadioGroup/RadioGroup.context.d.ts +2 -2
- package/dist/components/RadioGroup/RadioGroup.context.js +7 -4
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +55 -22
- package/dist/components/RadioGroup/RadioGroup.props.d.ts +5 -5
- package/dist/components/RadioGroup/RadioGroup.props.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.themes.js +5 -2
- package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.context.d.ts +2 -2
- package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.context.js +7 -4
- package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.d.ts +2 -2
- package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.js +33 -20
- package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.props.d.ts +2 -2
- package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.props.js +1 -1
- package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.themes.js +5 -2
- package/dist/components/RadioGroup/components/ItemRoot/index.js +6 -2
- package/dist/components/RadioGroup/components/Radio/Radio.d.ts +2 -2
- package/dist/components/RadioGroup/components/Radio/Radio.js +48 -29
- package/dist/components/RadioGroup/components/Radio/Radio.props.d.ts +1 -1
- package/dist/components/RadioGroup/components/Radio/Radio.props.js +1 -1
- package/dist/components/RadioGroup/components/Radio/Radio.themes.js +18 -15
- package/dist/components/RadioGroup/components/Radio/index.js +6 -2
- package/dist/components/RadioGroup/index.js +14 -4
- package/dist/components/Select/Select.context.d.ts +1 -1
- package/dist/components/Select/Select.context.js +7 -4
- package/dist/components/Select/Select.js +77 -52
- package/dist/components/Select/Select.props.d.ts +1 -1
- package/dist/components/Select/Select.props.js +1 -1
- package/dist/components/Select/Select.theme.js +6 -3
- package/dist/components/Select/Select.types.js +1 -1
- package/dist/components/Select/components/Arrow/Arrow.d.ts +1 -1
- package/dist/components/Select/components/Arrow/Arrow.js +18 -13
- package/dist/components/Select/components/Arrow/Arrow.props.js +1 -1
- package/dist/components/Select/components/Arrow/Arrow.theme.js +7 -4
- package/dist/components/Select/components/Arrow/index.js +4 -1
- package/dist/components/Select/components/Button/Button.d.ts +2 -2
- package/dist/components/Select/components/Button/Button.js +27 -25
- package/dist/components/Select/components/Button/index.js +4 -1
- package/dist/components/Select/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Select/components/Icon/Icon.js +13 -10
- package/dist/components/Select/components/Icon/Icon.props.js +1 -1
- package/dist/components/Select/components/Icon/Icon.theme.js +7 -4
- package/dist/components/Select/components/Icon/index.js +4 -1
- package/dist/components/Select/components/Item/Item.d.ts +1 -1
- package/dist/components/Select/components/Item/Item.js +45 -25
- package/dist/components/Select/components/Item/Item.props.js +1 -1
- package/dist/components/Select/components/Item/Item.theme.js +12 -9
- package/dist/components/Select/components/Item/index.js +6 -2
- package/dist/components/Select/components/List/List.d.ts +2 -2
- package/dist/components/Select/components/List/List.js +64 -56
- package/dist/components/Select/components/List/List.props.d.ts +1 -1
- package/dist/components/Select/components/List/List.props.js +1 -1
- package/dist/components/Select/components/List/index.js +4 -1
- package/dist/components/Select/components/Option/Option.d.ts +1 -1
- package/dist/components/Select/components/Option/Option.js +15 -12
- package/dist/components/Select/components/Option/Option.props.js +1 -1
- package/dist/components/Select/components/Option/Option.theme.d.ts +1 -1
- package/dist/components/Select/components/Option/Option.theme.js +8 -4
- package/dist/components/Select/components/Value/Value.d.ts +1 -1
- package/dist/components/Select/components/Value/Value.js +15 -21
- package/dist/components/Select/components/Value/Value.props.js +1 -1
- package/dist/components/Select/index.js +20 -7
- package/dist/components/SelectButton/SelectButton.d.ts +1 -1
- package/dist/components/SelectButton/SelectButton.js +48 -24
- package/dist/components/SelectButton/SelectButton.props.js +1 -1
- package/dist/components/SelectButton/SelectButton.theme.js +28 -26
- package/dist/components/SelectButton/index.js +7 -2
- package/dist/components/Spinner/Spinner.d.ts +1 -1
- package/dist/components/Spinner/Spinner.js +28 -11
- package/dist/components/Spinner/Spinner.props.js +1 -1
- package/dist/components/Spinner/Spinner.themes.js +8 -5
- package/dist/components/Spinner/index.js +6 -2
- package/dist/components/Switcher/Switcher.js +35 -14
- package/dist/components/Switcher/Switcher.props.d.ts +3 -3
- package/dist/components/Switcher/Switcher.props.js +1 -1
- package/dist/components/Switcher/Switcher.themes.js +16 -13
- package/dist/components/Switcher/index.js +6 -2
- package/dist/components/Text/Text.d.ts +2 -2
- package/dist/components/Text/Text.js +58 -32
- package/dist/components/Text/Text.props.d.ts +1 -1
- package/dist/components/Text/Text.props.js +1 -1
- package/dist/components/Text/Text.themes.js +33 -30
- package/dist/components/Text/index.js +9 -2
- package/dist/components/TextArea/TextArea.d.ts +2 -2
- package/dist/components/TextArea/TextArea.js +74 -27
- package/dist/components/TextArea/TextArea.props.js +1 -1
- package/dist/components/TextArea/TextArea.themes.js +34 -32
- package/dist/components/TextArea/hooks/index.js +4 -1
- package/dist/components/TextArea/hooks/useResizeTextArea.d.ts +1 -1
- package/dist/components/TextArea/hooks/useResizeTextArea.js +15 -23
- package/dist/components/TextArea/index.js +7 -2
- package/dist/components/VisuallyHiddenInput/VisuallyHiddenInput.d.ts +2 -2
- package/dist/components/VisuallyHiddenInput/VisuallyHiddenInput.js +27 -22
- package/dist/components/VisuallyHiddenInput/VisuallyHiddenInput.props.d.ts +1 -1
- package/dist/components/VisuallyHiddenInput/VisuallyHiddenInput.props.js +1 -1
- package/dist/components/VisuallyHiddenInput/index.js +4 -1
- package/dist/fonts/PTS55F_W.woff +0 -0
- package/dist/fonts/PTS56F_W.woff +0 -0
- package/dist/fonts/PTS75F_W.woff +0 -0
- package/dist/fonts/PTS76F_W.woff +0 -0
- package/dist/fonts/ptsans.css +34 -0
- package/dist/hooks/useThemeClassName/index.js +4 -1
- package/dist/hooks/useThemeClassName/useThemeClassName.d.ts +1 -1
- package/dist/hooks/useThemeClassName/useThemeClassName.js +21 -27
- package/dist/img/logoDark.svg +17 -0
- package/dist/img/logoLight.svg +17 -0
- package/dist/index-BA3njR2k.mjs +3636 -0
- package/dist/index-L8X2o7IH.mjs +44 -0
- package/dist/index.js +4 -4
- package/dist/lib/appearance/index.js +7 -13
- package/dist/lib/platform/index.js +4 -15
- package/dist/lib/react/createComponentContext/createComponentContext.d.ts +1 -1
- package/dist/lib/react/createComponentContext/createComponentContext.js +18 -16
- package/dist/lib/react/createComponentContext/createComponentContext.props.js +1 -1
- package/dist/lib/react/createComponentContext/index.js +4 -1
- package/dist/lib/react/index.js +4 -1
- package/dist/lib/theme/index.js +1 -1
- package/dist/lib/theme/type.js +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +12 -22
- package/dist/react-spring_web.modern-Dnq1lqN5.mjs +2144 -0
- package/dist/stylesheets/utils/BaseClasses/BaseClasses.js +6 -2
- package/dist/stylesheets/utils/BaseClasses/index.js +4 -1
- package/dist/useContentPositioning-BLCC-Xty.mjs +213 -0
- package/dist/utils/index.js +6 -2
- package/dist/utils/noop/noop.js +5 -2
- package/dist/utils/omit/omit.js +8 -6
- package/package.json +1 -1
- package/dist/components/CheckboxGroup/hooks/useCheckboxGroupState.test.js +0 -123
|
@@ -1,30 +1,45 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
onChange(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as N, useState as A } from "react";
|
|
3
|
+
import { c as P } from "../../../../index-L8X2o7IH.mjs";
|
|
4
|
+
import { useThemeClassName as S } from "../../../../hooks/useThemeClassName/useThemeClassName.js";
|
|
5
|
+
import { noop as V } from "../../../../utils/noop/noop.js";
|
|
6
|
+
import { AccordionProvider as x } from "../../Accordion.context.js";
|
|
7
|
+
import { s as D } from "../../../../Accordion.module-0NEfElzm.mjs";
|
|
8
|
+
const b = "AccordionSingle", j = N(
|
|
9
|
+
(o, s) => {
|
|
10
|
+
const {
|
|
11
|
+
className: c = "",
|
|
12
|
+
theme: i,
|
|
13
|
+
children: m,
|
|
14
|
+
value: u,
|
|
15
|
+
defaultValue: d,
|
|
16
|
+
onChange: f = V,
|
|
17
|
+
isCollapsible: p = !1,
|
|
18
|
+
...h
|
|
19
|
+
} = o, C = S(i), [r, g] = A(d), t = "value" in o, a = t ? u : r, v = (e) => p && e === a ? void 0 : e;
|
|
20
|
+
return /* @__PURE__ */ n(
|
|
21
|
+
x,
|
|
22
|
+
{
|
|
23
|
+
value: a,
|
|
24
|
+
defaultValue: r,
|
|
25
|
+
onChange: (e) => {
|
|
26
|
+
const l = v(e);
|
|
27
|
+
t || g(l), f(l);
|
|
28
|
+
},
|
|
29
|
+
children: /* @__PURE__ */ n(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
ref: s,
|
|
33
|
+
className: P(D.wrapper, C, c),
|
|
34
|
+
...h,
|
|
35
|
+
children: m
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
j.displayName = b;
|
|
43
|
+
export {
|
|
44
|
+
j as AccordionSingle
|
|
45
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ItemProps } from './Item.props';
|
|
3
3
|
export declare const Item: React.ForwardRefExoticComponent<ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
//# sourceMappingURL=Item.d.ts.map
|
|
@@ -1,31 +1,59 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { forwardRef as x } from "react";
|
|
4
|
+
import { c as n } from "../../../../index-L8X2o7IH.mjs";
|
|
5
|
+
import { useThemeClassName as C } from "../../../../hooks/useThemeClassName/useThemeClassName.js";
|
|
6
|
+
import { Text as A } from "../../../Text/Text.js";
|
|
7
|
+
import { TextPrimaryTheme as g } from "../../../Text/Text.themes.js";
|
|
8
|
+
import { useAccordionContext as b } from "../../Accordion.context.js";
|
|
9
|
+
import '../../../../assets/Item3.css';const y = (r) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 10, height: 7, fill: "none", ...r }, /* @__PURE__ */ s.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M.176.78a.574.574 0 0 1 .857 0L4.96 5.058 8.967.692a.573.573 0 0 1 .857 0 .705.705 0 0 1 0 .933L5.485 6.351a.603.603 0 0 1-.14.114.573.573 0 0 1-.83-.026L.175 1.713a.706.706 0 0 1 0-.933Z", clipRule: "evenodd" })), E = "_wrapper_1l5nn_1", L = "_header_1l5nn_13", R = "_header_left_1l5nn_20", T = "_before_title_1l5nn_27", I = "_chevron_container_1l5nn_34", j = "_chevron_icon_1l5nn_44", k = "_content_1l5nn_48", D = "_active_1l5nn_54", e = {
|
|
10
|
+
wrapper: E,
|
|
11
|
+
header: L,
|
|
12
|
+
header_left: R,
|
|
13
|
+
before_title: T,
|
|
14
|
+
chevron_container: I,
|
|
15
|
+
chevron_icon: j,
|
|
16
|
+
content: k,
|
|
17
|
+
active: D
|
|
18
|
+
}, i = "Accordion.Item", M = x((r, _) => {
|
|
19
|
+
const {
|
|
20
|
+
theme: m,
|
|
21
|
+
children: h,
|
|
22
|
+
value: o,
|
|
23
|
+
title: d,
|
|
24
|
+
before: l = null,
|
|
25
|
+
className: v = "",
|
|
26
|
+
...p
|
|
27
|
+
} = r, f = C(m), { onChange: u, value: c } = b(i), N = () => {
|
|
28
|
+
u(o);
|
|
29
|
+
}, w = Array.isArray(c) ? c.includes(o) : c === o;
|
|
30
|
+
return /* @__PURE__ */ a(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
ref: _,
|
|
34
|
+
className: n(
|
|
35
|
+
e.wrapper,
|
|
36
|
+
{
|
|
37
|
+
[e.active]: w
|
|
38
|
+
},
|
|
39
|
+
f,
|
|
40
|
+
v
|
|
41
|
+
),
|
|
42
|
+
...p,
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ a("div", { className: n(e.header), onClick: N, children: [
|
|
45
|
+
/* @__PURE__ */ a("div", { className: n(e.header_left), children: [
|
|
46
|
+
l && /* @__PURE__ */ t("div", { className: n(e.before_title), children: l }),
|
|
47
|
+
/* @__PURE__ */ t(A, { theme: g, size: "xl", isEllipsis: !0, children: d })
|
|
48
|
+
] }),
|
|
49
|
+
/* @__PURE__ */ t("span", { className: n(e.chevron_container), children: /* @__PURE__ */ t(y, { className: n(e.chevron_icon) }) })
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ t("div", { className: n(e.content), children: h })
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
);
|
|
30
55
|
});
|
|
31
|
-
|
|
56
|
+
M.displayName = i;
|
|
57
|
+
export {
|
|
58
|
+
M as Item
|
|
59
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const i = {
|
|
2
|
+
"--crm-ui-kit-accordion-item-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)",
|
|
3
|
+
"--crm-ui-kit-accordion-item-box-shadow": "var(--crm-ui-kit-palette-accordion-item-box-shadow)",
|
|
4
|
+
"--crm-ui-kit-accordion-item-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
5
|
+
"--crm-ui-kit-accordion-item-padding": "12px 12px 12px 22px",
|
|
6
|
+
"--crm-ui-kit-accordion-item-margin-bottom": "16px",
|
|
7
|
+
"--crm-ui-kit-accordion-item-chevron-icon-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
8
|
+
"--crm-ui-kit-accordion-item-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
i as AccordionItemTheme
|
|
9
12
|
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Accordion as e } from "./Accordion.js";
|
|
2
|
+
import { AccordionTheme as m } from "./Accordion.themes.js";
|
|
3
|
+
import { AccordionItemTheme as d } from "./components/Item/Item.themes.js";
|
|
4
|
+
export {
|
|
5
|
+
e as Accordion,
|
|
6
|
+
d as AccordionItemTheme,
|
|
7
|
+
m as AccordionTheme
|
|
8
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseInputProps } from './BaseInput.props';
|
|
3
3
|
export declare const BaseInput: React.ForwardRefExoticComponent<Omit<BaseInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
4
4
|
//# sourceMappingURL=BaseInput.d.ts.map
|
|
@@ -1,10 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { c } from "../../index-L8X2o7IH.mjs";
|
|
4
|
+
import '../../assets/BaseInput.css';const d = "_input_x5289_1", _ = "_placeholder_visible_x5289_23", e = {
|
|
5
|
+
input: d,
|
|
6
|
+
placeholder_visible: _
|
|
7
|
+
}, m = p((s, i) => {
|
|
8
|
+
const {
|
|
9
|
+
className: l = "",
|
|
10
|
+
isDisabled: a,
|
|
11
|
+
isReadonly: o,
|
|
12
|
+
isPlaceholderVisibleOnFocus: r = !1,
|
|
13
|
+
...t
|
|
14
|
+
} = s;
|
|
15
|
+
return /* @__PURE__ */ n(
|
|
16
|
+
"input",
|
|
17
|
+
{
|
|
18
|
+
ref: i,
|
|
19
|
+
className: c(
|
|
20
|
+
e.input,
|
|
21
|
+
{
|
|
22
|
+
[e.placeholder_visible]: r
|
|
23
|
+
},
|
|
24
|
+
l
|
|
25
|
+
),
|
|
26
|
+
disabled: a,
|
|
27
|
+
readOnly: o,
|
|
28
|
+
...t
|
|
29
|
+
}
|
|
30
|
+
);
|
|
9
31
|
});
|
|
10
|
-
|
|
32
|
+
m.displayName = "BaseInput";
|
|
33
|
+
export {
|
|
34
|
+
m as BaseInput
|
|
35
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonProps } from './Button.props';
|
|
3
3
|
export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1,58 +1,94 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { jsxs as R, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import T, { forwardRef as A, useMemo as I } from "react";
|
|
3
|
+
import { c as i } from "../../index-L8X2o7IH.mjs";
|
|
4
|
+
import { useThemeClassName as g } from "../../hooks/useThemeClassName/useThemeClassName.js";
|
|
5
|
+
import { noop as j } from "../../utils/noop/noop.js";
|
|
6
|
+
import { Spinner as z } from "../Spinner/Spinner.js";
|
|
7
|
+
import { useShowInvalidAnimation as B } from "./hooks/useShowInvalidAnimation/useShowInvalidAnimation.js";
|
|
8
|
+
import { useShowSuccessfulState as D } from "./hooks/useShowSuccessfulState/useShowSuccessfulState.js";
|
|
9
|
+
import '../../assets/Button.css';const M = "_button_5it8y_17", F = "_disabled_5it8y_43", L = "_content_5it8y_65", W = "_before_5it8y_73", q = "_after_5it8y_78", E = "_spinner_container_5it8y_83", G = "_invalid_5it8y_90", H = "_success_5it8y_95", n = {
|
|
10
|
+
button: M,
|
|
11
|
+
disabled: F,
|
|
12
|
+
content: L,
|
|
13
|
+
before: W,
|
|
14
|
+
after: q,
|
|
15
|
+
spinner_container: E,
|
|
16
|
+
invalid: G,
|
|
17
|
+
success: H
|
|
18
|
+
}, J = (t) => {
|
|
19
|
+
const r = {
|
|
20
|
+
"--crm-ui-kit-spinner-border-color": t["--crm-ui-kit-button-spinner-border-color"],
|
|
21
|
+
"--crm-ui-kit-spinner-border-width": t["--crm-ui-kit-button-spinner-border-width"],
|
|
22
|
+
"--crm-ui-kit-spinner-circle-size": t["--crm-ui-kit-button-spinner-circle-size"],
|
|
23
|
+
"--crm-ui-kit-spinner-border-style": t["--crm-ui-kit-button-spinner-border-style"]
|
|
24
|
+
}, o = {
|
|
25
|
+
...r,
|
|
26
|
+
"--crm-ui-kit-spinner-border-color": t["--crm-ui-kit-button-spinner-disabled-border-color"]
|
|
27
|
+
};
|
|
28
|
+
return { defaultTheme: r, disabledTheme: o };
|
|
29
|
+
}, K = A((t, r) => {
|
|
30
|
+
const {
|
|
31
|
+
className: o = "",
|
|
32
|
+
type: b = "button",
|
|
33
|
+
onClick: f = j,
|
|
34
|
+
theme: c,
|
|
35
|
+
isLoading: l,
|
|
36
|
+
isDisabled: a,
|
|
37
|
+
before: d,
|
|
38
|
+
after: u,
|
|
39
|
+
children: _,
|
|
40
|
+
showInvalidAnimationRef: h,
|
|
41
|
+
showSuccessfulStateRef: k,
|
|
42
|
+
successfulStateText: y,
|
|
43
|
+
isClickableWhileDisabled: S = !1,
|
|
44
|
+
...w
|
|
45
|
+
} = t, N = g(c), m = I(() => J(c), [c]), v = B(
|
|
46
|
+
h
|
|
47
|
+
), p = D(
|
|
48
|
+
k
|
|
49
|
+
), C = (x) => {
|
|
50
|
+
l || f(x);
|
|
51
|
+
};
|
|
52
|
+
let s = null;
|
|
53
|
+
switch (!0) {
|
|
54
|
+
case p:
|
|
55
|
+
s = /* @__PURE__ */ e("span", { children: y || s });
|
|
56
|
+
break;
|
|
57
|
+
case l:
|
|
58
|
+
s = /* @__PURE__ */ e("span", { className: i(n.spinner_container), children: /* @__PURE__ */ e(
|
|
59
|
+
z,
|
|
60
|
+
{
|
|
61
|
+
theme: a ? m.disabledTheme : m.defaultTheme,
|
|
62
|
+
isCentered: !0
|
|
30
63
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
64
|
+
) });
|
|
65
|
+
break;
|
|
66
|
+
default:
|
|
67
|
+
s = /* @__PURE__ */ R(T.Fragment, { children: [
|
|
68
|
+
d && /* @__PURE__ */ e("span", { className: i(n.before), children: d }),
|
|
69
|
+
/* @__PURE__ */ e("span", { children: _ }),
|
|
70
|
+
u && /* @__PURE__ */ e("span", { className: i(n.after), children: u })
|
|
71
|
+
] });
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
return /* @__PURE__ */ e(
|
|
75
|
+
"button",
|
|
76
|
+
{
|
|
77
|
+
...w,
|
|
78
|
+
ref: r,
|
|
79
|
+
type: b,
|
|
80
|
+
onClick: C,
|
|
81
|
+
className: i(n.button, N, o, {
|
|
82
|
+
[n.invalid]: v,
|
|
83
|
+
[n.success]: p,
|
|
84
|
+
[n.disabled]: a
|
|
85
|
+
}),
|
|
86
|
+
disabled: a && !S,
|
|
87
|
+
children: /* @__PURE__ */ e("span", { className: i(n.content), children: s })
|
|
50
88
|
}
|
|
51
|
-
|
|
52
|
-
[s.invalid]: shouldShowInvalidAnimation,
|
|
53
|
-
[s.success]: shouldShowSuccessfulState,
|
|
54
|
-
[s.disabled]: isDisabled,
|
|
55
|
-
}), disabled: isDisabled && !isClickableWhileDisabled },
|
|
56
|
-
React.createElement("span", { className: cx(s.content) }, content)));
|
|
89
|
+
);
|
|
57
90
|
});
|
|
58
|
-
|
|
91
|
+
K.displayName = "Button";
|
|
92
|
+
export {
|
|
93
|
+
K as Button
|
|
94
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonThemeType } from './Button.themes';
|
|
3
3
|
type Button = Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'disabled'>;
|
|
4
4
|
export interface ButtonProps extends Button {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,66 +1,68 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
const r = {
|
|
2
|
+
"--crm-ui-kit-button-z-index": "1",
|
|
3
|
+
"--crm-ui-kit-button-height": "36px",
|
|
4
|
+
"--crm-ui-kit-button-elements-spacing": "4px",
|
|
5
|
+
"--crm-ui-kit-button-font-size": "14px",
|
|
6
|
+
"--crm-ui-kit-button-line-height": "14px",
|
|
7
|
+
"--crm-ui-kit-button-font-weight": "bold",
|
|
8
|
+
"--crm-ui-kit-button-sibling-element-spacing": "7px",
|
|
9
|
+
"--crm-ui-kit-button-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)",
|
|
10
|
+
"--crm-ui-kit-button-padding": "0px 10px",
|
|
11
|
+
"--crm-ui-kit-button-border-width": "1px",
|
|
12
|
+
"--crm-ui-kit-button-border-style": "solid",
|
|
13
|
+
"--crm-ui-kit-button-border-radius": "3px",
|
|
14
|
+
"--crm-ui-kit-button-hover-border-width": "1px",
|
|
15
|
+
"--crm-ui-kit-button-hover-border-style": "solid",
|
|
16
|
+
"--crm-ui-kit-button-hover-border-radius": "3px",
|
|
17
|
+
"--crm-ui-kit-button-success-color": "var(--crm-ui-kit-color-white)",
|
|
18
|
+
"--crm-ui-kit-button-success-background-color": "var(--crm-ui-ki-color-mustard-yellow)",
|
|
19
|
+
"--crm-ui-kit-button-success-hover-background-color": "var(--crm-ui-kit-color-amber)",
|
|
20
|
+
"--crm-ui-kit-button-success-border-color": "var(--crm-ui-kit-color-goldenrod)",
|
|
21
|
+
"--crm-ui-kit-button-spinner-border-color": "var(--crm-ui-kit-color-bright-blue)",
|
|
22
|
+
"--crm-ui-kit-button-spinner-disabled-border-color": "var(--crm-ui-kit-color-bright-blue)",
|
|
23
|
+
"--crm-ui-kit-button-spinner-border-width": "2px",
|
|
24
|
+
"--crm-ui-kit-button-spinner-circle-size": "16px",
|
|
25
|
+
"--crm-ui-kit-button-spinner-border-style": "solid"
|
|
26
|
+
}, t = {
|
|
27
|
+
...r,
|
|
28
|
+
"--crm-ui-kit-button-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
29
|
+
"--crm-ui-kit-button-border-color": "var(--crm-ui-kit-palette-border-primary)",
|
|
30
|
+
"--crm-ui-kit-button-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
31
|
+
"--crm-ui-kit-button-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
32
|
+
"--crm-ui-kit-button-disabled-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
33
|
+
"--crm-ui-kit-button-disabled-border-color": "var(--crm-ui-kit-palette-border-primary)",
|
|
34
|
+
"--crm-ui-kit-button-hover-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
35
|
+
"--crm-ui-kit-button-hover-background-color": "var(--crm-ui-kit-palette-button-classic-hover-background)",
|
|
36
|
+
"--crm-ui-kit-button-hover-border-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
37
|
+
}, i = {
|
|
38
|
+
...r,
|
|
39
|
+
"--crm-ui-kit-button-color": "var(--crm-ui-kit-color-white)",
|
|
40
|
+
"--crm-ui-kit-button-border-color": "var(--crm-ui-kit-color-cerulean-blue)",
|
|
41
|
+
"--crm-ui-kit-button-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
|
|
42
|
+
"--crm-ui-kit-button-disabled-background-color": "var(--crm-ui-kit-palette-background-primary)",
|
|
43
|
+
"--crm-ui-kit-button-disabled-border-color": "var(--crm-ui-kit-palette-border-primary)",
|
|
44
|
+
"--crm-ui-kit-button-background-color": "var(--crm-ui-kit-palette-active-element-900)",
|
|
45
|
+
"--crm-ui-kit-button-hover-color": "var(--crm-ui-kit-color-white)",
|
|
46
|
+
"--crm-ui-kit-button-hover-background-color": "var(--crm-ui-kit-color-azure-blue)",
|
|
47
|
+
"--crm-ui-kit-button-hover-border-color": "var(--crm-ui-kit-color-cerulean-blue)",
|
|
48
|
+
"--crm-ui-kit-button-spinner-border-color": "var(--crm-ui-kit-color-white)",
|
|
49
|
+
"--crm-ui-kit-button-spinner-disabled-border-color": "var(--crm-ui-kit-color-bright-blue)"
|
|
50
|
+
}, o = {
|
|
51
|
+
...r,
|
|
52
|
+
"--crm-ui-kit-button-height": "30px",
|
|
53
|
+
"--crm-ui-kit-button-color": "var(--crm-ui-kit-palette-text-secondary-light)",
|
|
54
|
+
"--crm-ui-kit-button-padding": "0px 8px",
|
|
55
|
+
"--crm-ui-kit-button-border-color": "transparent",
|
|
56
|
+
"--crm-ui-kit-button-background-color": "inherit",
|
|
57
|
+
"--crm-ui-kit-button-disabled-color": "var(--crm-ui-kit-palette-text-secondary-light)",
|
|
58
|
+
"--crm-ui-kit-button-disabled-background-color": "inherit",
|
|
59
|
+
"--crm-ui-kit-button-disabled-border-color": "transparent",
|
|
60
|
+
"--crm-ui-kit-button-hover-background-color": "inherit",
|
|
61
|
+
"--crm-ui-kit-button-hover-border-color": "transparent",
|
|
62
|
+
"--crm-ui-kit-button-hover-color": "var(--crm-ui-kit-palette-text-secondary-light)"
|
|
26
63
|
};
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
'--crm-ui-kit-button-background-color': 'var(--crm-ui-kit-palette-background-primary)',
|
|
32
|
-
'--crm-ui-kit-button-disabled-color': 'var(--crm-ui-kit-palette-text-primary)',
|
|
33
|
-
'--crm-ui-kit-button-disabled-background-color': 'var(--crm-ui-kit-palette-background-primary)',
|
|
34
|
-
'--crm-ui-kit-button-disabled-border-color': 'var(--crm-ui-kit-palette-border-primary)',
|
|
35
|
-
'--crm-ui-kit-button-hover-color': 'var(--crm-ui-kit-palette-text-primary)',
|
|
36
|
-
'--crm-ui-kit-button-hover-background-color': 'var(--crm-ui-kit-palette-button-classic-hover-background)',
|
|
37
|
-
'--crm-ui-kit-button-hover-border-color': 'var(--crm-ui-kit-palette-border-primary)',
|
|
38
|
-
};
|
|
39
|
-
export const ButtonPrimaryTheme = {
|
|
40
|
-
...ButtonBaseThemeValues,
|
|
41
|
-
'--crm-ui-kit-button-color': 'var(--crm-ui-kit-color-white)',
|
|
42
|
-
'--crm-ui-kit-button-border-color': 'var(--crm-ui-kit-color-cerulean-blue)',
|
|
43
|
-
'--crm-ui-kit-button-disabled-color': 'var(--crm-ui-kit-palette-text-primary)',
|
|
44
|
-
'--crm-ui-kit-button-disabled-background-color': 'var(--crm-ui-kit-palette-background-primary)',
|
|
45
|
-
'--crm-ui-kit-button-disabled-border-color': 'var(--crm-ui-kit-palette-border-primary)',
|
|
46
|
-
'--crm-ui-kit-button-background-color': 'var(--crm-ui-kit-palette-active-element-900)',
|
|
47
|
-
'--crm-ui-kit-button-hover-color': 'var(--crm-ui-kit-color-white)',
|
|
48
|
-
'--crm-ui-kit-button-hover-background-color': 'var(--crm-ui-kit-color-azure-blue)',
|
|
49
|
-
'--crm-ui-kit-button-hover-border-color': 'var(--crm-ui-kit-color-cerulean-blue)',
|
|
50
|
-
'--crm-ui-kit-button-spinner-border-color': 'var(--crm-ui-kit-color-white)',
|
|
51
|
-
'--crm-ui-kit-button-spinner-disabled-border-color': 'var(--crm-ui-kit-color-bright-blue)',
|
|
52
|
-
};
|
|
53
|
-
export const ButtonSecondaryTheme = {
|
|
54
|
-
...ButtonBaseThemeValues,
|
|
55
|
-
'--crm-ui-kit-button-height': '30px',
|
|
56
|
-
'--crm-ui-kit-button-color': 'var(--crm-ui-kit-palette-text-secondary-light)',
|
|
57
|
-
'--crm-ui-kit-button-padding': '0px 8px',
|
|
58
|
-
'--crm-ui-kit-button-border-color': 'transparent',
|
|
59
|
-
'--crm-ui-kit-button-background-color': 'inherit',
|
|
60
|
-
'--crm-ui-kit-button-disabled-color': 'var(--crm-ui-kit-palette-text-secondary-light)',
|
|
61
|
-
'--crm-ui-kit-button-disabled-background-color': 'inherit',
|
|
62
|
-
'--crm-ui-kit-button-disabled-border-color': 'transparent',
|
|
63
|
-
'--crm-ui-kit-button-hover-background-color': 'inherit',
|
|
64
|
-
'--crm-ui-kit-button-hover-border-color': 'transparent',
|
|
65
|
-
'--crm-ui-kit-button-hover-color': 'var(--crm-ui-kit-palette-text-secondary-light)',
|
|
64
|
+
export {
|
|
65
|
+
t as ButtonNeutralTheme,
|
|
66
|
+
i as ButtonPrimaryTheme,
|
|
67
|
+
o as ButtonSecondaryTheme
|
|
66
68
|
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { useShowInvalidAnimation as t } from "./useShowInvalidAnimation/useShowInvalidAnimation.js";
|
|
2
|
+
import { useShowSuccessfulState as s } from "./useShowSuccessfulState/useShowSuccessfulState.js";
|
|
3
|
+
export {
|
|
4
|
+
t as useShowInvalidAnimation,
|
|
5
|
+
s as useShowSuccessfulState
|
|
6
|
+
};
|