impact-ui 4.0.0-alpha.21 → 4.0.0-alpha.23
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/_virtual/InfoOutlined.js +4 -0
- package/dist/_virtual/RemoveRounded.js +4 -0
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/components/AccordionModern/index.d.ts.map +1 -1
- package/dist/components/AccordionModern/index.js +13 -18
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Badge/filled/filledIconLabelBadges/index.js +2 -2
- package/dist/components/Badge/filled/filledOnlyIconBadges/index.js +2 -2
- package/dist/components/Badge/filled/filledOnlyLabelBadges/index.js +2 -2
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/stroke/strokeIconLabelBadges/index.js +2 -2
- package/dist/components/Badge/stroke/strokeOnlyIconBadges/index.js +2 -2
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.js +2 -2
- package/dist/components/Badge/subtle/subtleIOnlyIconBadges/index.js +2 -2
- package/dist/components/Badge/subtle/subtleIconLabelBadges/index.js +2 -2
- package/dist/components/Badge/subtle/subtleOnlyLabelBadges/index.js +2 -2
- package/dist/components/BottomSheet/index.d.ts.map +1 -1
- package/dist/components/BottomSheet/index.js +9 -6
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +2 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +24 -47
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/index.d.ts.map +1 -1
- package/dist/components/ButtonGroup/index.js +5 -4
- package/dist/components/Chart/Chart.types.d.ts +18 -0
- package/dist/components/Chart/Chart.types.d.ts.map +1 -1
- package/dist/components/Chart/index.d.ts +1 -1
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +126 -14
- package/dist/components/Chatbot/Chatbot.types.d.ts +2 -0
- package/dist/components/Chatbot/Chatbot.types.d.ts.map +1 -1
- package/dist/components/Chatbot/chatInput.d.ts +1 -1
- package/dist/components/Chatbot/chatInput.d.ts.map +1 -1
- package/dist/components/Chatbot/chatInput.js +15 -0
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.js +60 -16
- package/dist/components/Chatbot/conversationScreen.d.ts +1 -1
- package/dist/components/Chatbot/conversationScreen.d.ts.map +1 -1
- package/dist/components/Chatbot/conversationScreen.js +35 -17
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +26 -2
- package/dist/components/Checkbox/Dashed.d.ts +2 -1
- package/dist/components/Checkbox/Dashed.d.ts.map +1 -1
- package/dist/components/Checkbox/Dashed.js +12 -4
- package/dist/components/Checkbox/Default.d.ts +2 -1
- package/dist/components/Checkbox/Default.d.ts.map +1 -1
- package/dist/components/Checkbox/Default.js +12 -4
- package/dist/components/Checkbox/WithDropDown.d.ts.map +1 -1
- package/dist/components/Checkbox/WithDropDown.js +10 -2
- package/dist/components/Checkbox/WithoutFormLabel.d.ts.map +1 -1
- package/dist/components/Checkbox/WithoutFormLabel.js +7 -1
- package/dist/components/Checkbox/index.js +4 -2
- package/dist/components/Chips/index.js +1 -1
- package/dist/components/DatePicker/DatePicker.types.d.ts +6 -0
- package/dist/components/DatePicker/DatePicker.types.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerDropdown.d.ts +8 -1
- package/dist/components/DatePicker/datePickerDropdown.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerDropdown.js +140 -8
- package/dist/components/DatePicker/datePickerFooter.d.ts +4 -1
- package/dist/components/DatePicker/datePickerFooter.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerFooter.js +16 -6
- package/dist/components/DatePicker/datePickerInput.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerInput.js +10 -1
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +49 -4
- package/dist/components/DatePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DatePicker/showMonthYearSelect.js +57 -58
- package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.types.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.js +1 -2
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts +2 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.js +39 -3
- package/dist/components/DateRangePicker/dateRangePickerFooter.js +2 -2
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.js +3 -1
- package/dist/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.js +8 -4
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts +13 -0
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts.map +1 -0
- package/dist/components/DateRangePicker/showMonthYearSelect.js +94 -0
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/FileUpload/FileUpload.types.d.ts +12 -0
- package/dist/components/FileUpload/FileUpload.types.d.ts.map +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FileUpload/index.js +67 -19
- package/dist/components/FilterPanel/PanelSidebar.js +2 -2
- package/dist/components/FilterPanel/index.js +1 -1
- package/dist/components/FiltersStrip/FilterDropDown.d.ts.map +1 -1
- package/dist/components/FiltersStrip/FilterDropDown.js +4 -1
- package/dist/components/FiltersStrip/FilterSlider.d.ts.map +1 -1
- package/dist/components/FiltersStrip/FilterSlider.js +16 -8
- package/dist/components/FiltersStrip/index.d.ts.map +1 -1
- package/dist/components/FiltersStrip/index.js +2 -3
- package/dist/components/FiltersStrip/mockData.d.ts +29 -0
- package/dist/components/FiltersStrip/mockData.d.ts.map +1 -0
- package/dist/components/Header/Header.types.d.ts +4 -0
- package/dist/components/Header/Header.types.d.ts.map +1 -1
- package/dist/components/Header/index.d.ts +1 -1
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +32 -11
- package/dist/components/HomePage/HomePage.types.d.ts +2 -1
- package/dist/components/HomePage/HomePage.types.d.ts.map +1 -1
- package/dist/components/HomePage/index.d.ts.map +1 -1
- package/dist/components/HomePage/index.js +5 -4
- package/dist/components/Input/index.js +1 -1
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts +14 -11
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/Keycombo.js +3 -2
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +2 -2
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +7 -90
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts +1 -2
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.js +2 -3
- package/dist/components/KeyboardShortCuts/index.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/index.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/index.js +9 -19
- package/dist/components/KeyboardShortCuts/screen2.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/screen2.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/screen2.js +3 -2
- package/dist/components/KeyboardShortCuts/screen3.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/screen3.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/screen3.js +3 -2
- package/dist/components/KeyboardShortCuts/tutorial.d.ts +6 -5
- package/dist/components/KeyboardShortCuts/tutorial.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.js +102 -85
- package/dist/components/Menu/IconMenuItem.js +2 -2
- package/dist/components/Menu/Menu.types.d.ts +3 -0
- package/dist/components/Menu/Menu.types.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.js +4 -12
- package/dist/components/Menu/NestedMenuItem.d.ts +1 -0
- package/dist/components/Menu/NestedMenuItem.d.ts.map +1 -1
- package/dist/components/Menu/NestedMenuItem.js +6 -1
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +6 -4
- package/dist/components/Menu/nestedMenuItemsFromObject.d.ts.map +1 -1
- package/dist/components/Menu/nestedMenuItemsFromObject.js +2 -1
- package/dist/components/Modal/Modal.types.d.ts +2 -2
- package/dist/components/Modal/Modal.types.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +5 -3
- package/dist/components/MonthPicker/MonthPicker.types.d.ts +4 -1
- package/dist/components/MonthPicker/MonthPicker.types.d.ts.map +1 -1
- package/dist/components/MonthPicker/index.d.ts +1 -1
- package/dist/components/MonthPicker/index.d.ts.map +1 -1
- package/dist/components/MonthPicker/index.js +155 -49
- package/dist/components/MonthRangePicker/index.d.ts +4 -1
- package/dist/components/MonthRangePicker/index.d.ts.map +1 -1
- package/dist/components/MonthRangePicker/index.js +13 -6
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +57 -4
- package/dist/components/Notification/index.js +2 -2
- package/dist/components/Panel/Panel.types.d.ts +10 -0
- package/dist/components/Panel/Panel.types.d.ts.map +1 -1
- package/dist/components/Panel/index.d.ts +1 -1
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +71 -53
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +10 -2
- package/dist/components/Portal/index.d.ts +1 -1
- package/dist/components/Prompt/index.js +1 -1
- package/dist/components/RadioButtonGroup/RadioButtonGroup.types.d.ts +2 -0
- package/dist/components/RadioButtonGroup/RadioButtonGroup.types.d.ts.map +1 -1
- package/dist/components/RadioButtonGroup/index.d.ts +1 -1
- package/dist/components/RadioButtonGroup/index.d.ts.map +1 -1
- package/dist/components/RadioButtonGroup/index.js +32 -28
- package/dist/components/Select/Select.types.d.ts +2 -0
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/Select/customGroupHeading.d.ts.map +1 -1
- package/dist/components/Select/customGroupHeading.js +5 -1
- package/dist/components/Select/dropdown.d.ts +1 -1
- package/dist/components/Select/dropdown.d.ts.map +1 -1
- package/dist/components/Select/dropdown.js +2 -12
- package/dist/components/Select/hooks/useMenuPosition.d.ts +4 -1
- package/dist/components/Select/hooks/useMenuPosition.d.ts.map +1 -1
- package/dist/components/Select/hooks/useMenuPosition.js +15 -3
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +5 -2
- package/dist/components/Select/optionList.d.ts +1 -1
- package/dist/components/Select/optionList.d.ts.map +1 -1
- package/dist/components/Select/optionList.js +42 -20
- package/dist/components/Select/selected-option-tags.js +1 -1
- package/dist/components/Shortcuts/useShortcut.d.ts.map +1 -1
- package/dist/components/Shortcuts/useShortcut.js +6 -3
- package/dist/components/Sidebar/ChildMenu.d.ts +1 -1
- package/dist/components/Sidebar/ChildMenu.d.ts.map +1 -1
- package/dist/components/Sidebar/ChildMenu.js +48 -5
- package/dist/components/Sidebar/ParentMenu.d.ts +1 -1
- package/dist/components/Sidebar/ParentMenu.d.ts.map +1 -1
- package/dist/components/Sidebar/ParentMenu.js +65 -24
- package/dist/components/Sidebar/Sidebar.types.d.ts +4 -4
- package/dist/components/Sidebar/Sidebar.types.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarActions.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarActions.js +5 -2
- package/dist/components/Sidebar/SidebarMenus.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarMenus.js +7 -3
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/Sidebar/mock.d.ts +5 -0
- package/dist/components/Sidebar/mock.d.ts.map +1 -0
- package/dist/components/Slider/Slider.types.d.ts +6 -0
- package/dist/components/Slider/Slider.types.d.ts.map +1 -1
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +178 -58
- package/dist/components/Stepper/Stepper.types.d.ts +7 -0
- package/dist/components/Stepper/Stepper.types.d.ts.map +1 -1
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/Stepper/index.js +38 -10
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Table/TableImpl.d.ts.map +1 -1
- package/dist/components/Table/TableImpl.js +34 -18
- package/dist/components/Table/filterUtils.d.ts +1 -25
- package/dist/components/Table/filterUtils.d.ts.map +1 -1
- package/dist/components/Table/filterUtils.js +27 -0
- package/dist/components/Table/tableMoreOptions.d.ts.map +1 -1
- package/dist/components/Table/tableMoreOptions.js +44 -0
- package/dist/components/Table/tableSettings.d.ts.map +1 -1
- package/dist/components/Table/tableSettings.js +15 -1
- package/dist/components/TableChat/EmptyContainer.js +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +1 -1
- package/dist/components/TableChat/components/TextEditor/EditorToolbar.js +1 -1
- package/dist/components/TableChat/components/TextEditor/Mention.js +1 -1
- package/dist/components/TableChat/components/TextEditor/MentionList.js +1 -1
- package/dist/components/TableOld/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableOld/index.d.ts.map +1 -1
- package/dist/components/TableOld/tableFunctions.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/TextArea/index.js +1 -1
- package/dist/components/Toast/Toast.types.d.ts +2 -0
- package/dist/components/Toast/Toast.types.d.ts.map +1 -1
- package/dist/components/Toast/index.d.ts +1 -1
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/index.js +2 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/components/common/HelperText/index.d.ts.map +1 -1
- package/dist/components/common/HelperText/index.js +3 -2
- package/dist/mcp-component-registry.json +2 -3867
- package/dist/node_modules/@mui/icons-material/InfoOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/RemoveRounded.js +17 -0
- package/dist/node_modules/@mui/material/Skeleton/Skeleton.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/renderReactRoot.d.ts +3 -10
- package/dist/renderReactRoot.d.ts.map +1 -1
- package/dist/storybook/legacyArgTypes/Accordion.d.ts +80 -0
- package/dist/storybook/legacyArgTypes/Accordion.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/AccordionModern.d.ts +74 -0
- package/dist/storybook/legacyArgTypes/AccordionModern.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Alert.d.ts +102 -0
- package/dist/storybook/legacyArgTypes/Alert.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Avatar.d.ts +60 -0
- package/dist/storybook/legacyArgTypes/Avatar.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Badge.d.ts +6 -0
- package/dist/storybook/legacyArgTypes/Badge.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/BottomSheet.d.ts +218 -0
- package/dist/storybook/legacyArgTypes/BottomSheet.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Breadcrumbs.d.ts +50 -0
- package/dist/storybook/legacyArgTypes/Breadcrumbs.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Button.d.ts +163 -0
- package/dist/storybook/legacyArgTypes/Button.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/ButtonGroup.d.ts +64 -0
- package/dist/storybook/legacyArgTypes/ButtonGroup.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Card.d.ts +36 -0
- package/dist/storybook/legacyArgTypes/Card.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Chart.d.ts +706 -0
- package/dist/storybook/legacyArgTypes/Chart.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/ChatBot.d.ts +28 -0
- package/dist/storybook/legacyArgTypes/ChatBot.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Checkbox.d.ts +144 -0
- package/dist/storybook/legacyArgTypes/Checkbox.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Chips.d.ts +74 -0
- package/dist/storybook/legacyArgTypes/Chips.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/CreateItemFlow.d.ts +21 -0
- package/dist/storybook/legacyArgTypes/CreateItemFlow.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/DatePicker.d.ts +294 -0
- package/dist/storybook/legacyArgTypes/DatePicker.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/DateRangePicker.d.ts +321 -0
- package/dist/storybook/legacyArgTypes/DateRangePicker.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/EmptyState.d.ts +118 -0
- package/dist/storybook/legacyArgTypes/EmptyState.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/FileUpload.d.ts +177 -0
- package/dist/storybook/legacyArgTypes/FileUpload.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/FilterPanel.d.ts +250 -0
- package/dist/storybook/legacyArgTypes/FilterPanel.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/FiltersStrip.d.ts +214 -0
- package/dist/storybook/legacyArgTypes/FiltersStrip.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Header.d.ts +197 -0
- package/dist/storybook/legacyArgTypes/Header.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/HomePage.d.ts +158 -0
- package/dist/storybook/legacyArgTypes/HomePage.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Input.d.ts +126 -0
- package/dist/storybook/legacyArgTypes/Input.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/KeyboardShortcuts.d.ts +58 -0
- package/dist/storybook/legacyArgTypes/KeyboardShortcuts.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Loader.d.ts +11 -0
- package/dist/storybook/legacyArgTypes/Loader.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Menu.d.ts +109 -0
- package/dist/storybook/legacyArgTypes/Menu.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Modal.d.ts +199 -0
- package/dist/storybook/legacyArgTypes/Modal.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/MonthPicker.d.ts +185 -0
- package/dist/storybook/legacyArgTypes/MonthPicker.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/MonthRangePicker.d.ts +204 -0
- package/dist/storybook/legacyArgTypes/MonthRangePicker.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Notification.d.ts +377 -0
- package/dist/storybook/legacyArgTypes/Notification.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Panel.d.ts +251 -0
- package/dist/storybook/legacyArgTypes/Panel.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Popover.d.ts +105 -0
- package/dist/storybook/legacyArgTypes/Popover.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/ProgressBar.d.ts +64 -0
- package/dist/storybook/legacyArgTypes/ProgressBar.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Prompt.d.ts +119 -0
- package/dist/storybook/legacyArgTypes/Prompt.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/RadioButtonGroup.d.ts +35 -0
- package/dist/storybook/legacyArgTypes/RadioButtonGroup.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Select.d.ts +6 -0
- package/dist/storybook/legacyArgTypes/Select.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Sidebar.d.ts +127 -0
- package/dist/storybook/legacyArgTypes/Sidebar.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Slider.d.ts +153 -0
- package/dist/storybook/legacyArgTypes/Slider.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Stepper.d.ts +45 -0
- package/dist/storybook/legacyArgTypes/Stepper.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Switch.d.ts +60 -0
- package/dist/storybook/legacyArgTypes/Switch.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Table.d.ts +928 -0
- package/dist/storybook/legacyArgTypes/Table.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/TableChat.d.ts +60 -0
- package/dist/storybook/legacyArgTypes/TableChat.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/TableOld.d.ts +331 -0
- package/dist/storybook/legacyArgTypes/TableOld.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Tabs.d.ts +112 -0
- package/dist/storybook/legacyArgTypes/Tabs.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Tag.d.ts +82 -0
- package/dist/storybook/legacyArgTypes/Tag.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/TagGroup.d.ts +8 -0
- package/dist/storybook/legacyArgTypes/TagGroup.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/TextArea.d.ts +148 -0
- package/dist/storybook/legacyArgTypes/TextArea.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Toast.d.ts +90 -0
- package/dist/storybook/legacyArgTypes/Toast.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/Tooltip.d.ts +28 -0
- package/dist/storybook/legacyArgTypes/Tooltip.d.ts.map +1 -0
- package/dist/storybook/legacyArgTypes/index.d.ts +51 -0
- package/dist/storybook/legacyArgTypes/index.d.ts.map +1 -0
- package/dist/styles/style.css +1 -1
- package/dist/utils/helper.d.ts +5 -0
- package/dist/utils/helper.d.ts.map +1 -1
- package/dist/utils/helper.js +1 -12
- package/dist/utils/reactVersion.d.ts +5 -0
- package/dist/utils/reactVersion.d.ts.map +1 -0
- package/dist/utils/reactVersion.test.d.ts +2 -0
- package/dist/utils/reactVersion.test.d.ts.map +1 -0
- package/dist/utils/shortcuts/ShortcutManager.d.ts +9 -5
- package/dist/utils/shortcuts/ShortcutManager.d.ts.map +1 -1
- package/dist/utils/shortcuts/ShortcutManager.js +94 -62
- package/dist/utils/shortcuts/constants.d.ts +2 -0
- package/dist/utils/shortcuts/constants.d.ts.map +1 -1
- package/dist/utils/shortcuts/constants.js +13 -1
- package/dist/utils/shortcuts/format.d.ts +5 -1
- package/dist/utils/shortcuts/format.d.ts.map +1 -1
- package/dist/utils/shortcuts/format.js +24 -7
- package/dist/utils/shortcuts/index.d.ts +3 -1
- package/dist/utils/shortcuts/index.d.ts.map +1 -1
- package/dist/utils/shortcuts/match.d.ts +2 -2
- package/dist/utils/shortcuts/match.d.ts.map +1 -1
- package/dist/utils/shortcuts/match.js +50 -6
- package/dist/utils/shortcuts/parse.d.ts +4 -1
- package/dist/utils/shortcuts/parse.d.ts.map +1 -1
- package/dist/utils/shortcuts/parse.js +15 -1
- package/dist/utils/shortcuts/sequence.d.ts +18 -0
- package/dist/utils/shortcuts/sequence.d.ts.map +1 -0
- package/dist/utils/shortcuts/sequence.js +60 -0
- package/dist/utils/shortcuts/types.d.ts +2 -0
- package/dist/utils/shortcuts/types.d.ts.map +1 -1
- package/package.json +7 -4
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var i=document.createElement("style");i.appendChild(document.createTextNode(".impact_slider_layout{display:flex;gap:16px}.impact_slider_layout .input_layout_style .MuiFormControl-root .MuiInputBase-root{border:1px solid #c3c8d4;border-radius:8px;height:32px;width:75px}.impact_slider_layout .input_layout_style .MuiFormControl-root .MuiInputBase-root:focus,.impact_slider_layout .input_layout_style .MuiFormControl-root .MuiInputBase-root:hover{border:1px solid #4259ee}.impact_slider_layout .input_layout_style .MuiFormControl-root .MuiInputBase-root fieldset{border:none!important}.impact_slider_layout .impact_slider_layout_heading{font-size:22px;font-weight:400;line-height:30.05px}.impact_slider_layout.header-top{flex-direction:column}.impact_slider_layout.header-left{align-items:center;flex-direction:row;gap:32px}.impact_slider_layout .impact_slider_container{width:390px}.impact_slider_layout .impact_slider_container .impact_slider_labelname{color:#60697d;display:block;font-size:12px;font-weight:500;margin-bottom:8px;margin-top:8px}.impact_slider_layout .impact_slider_container .impact_slider_main_container{align-items:center;display:flex;gap:16px}.impact_slider_layout .impact_slider_container .impact_slider_main_container .MuiSlider-root{color:#4259ee;height:4px}.impact_slider_layout .impact_slider_container .impact_slider_main_container .MuiSlider-rail{background:#d9dde7;opacity:1}.impact_slider_layout .impact_slider_container .impact_slider_main_container .MuiSlider-thumb:hover{box-shadow:none}.impact_slider_layout .impact_slider_container .impact_slider_main_container .MuiSlider-valueLabel{background-color:#0d152c;color:#fff}.impact_slider_layout .impact_slider_container .impact_slider_main_container_disabled{pointer-events:none}.impact_slider_layout .impact_slider_container .impact_slider_main_container_disabled .MuiSlider-root{color:#c3c8d4;height:4px}.impact_slider_layout .impact_slider_container .impact_slider_main_container_disabled .MuiSlider-rail{background:#c3c8d4;opacity:1}.impact_slider_layout .impact_slider_disabled .MuiSlider-root{color:#d9dde7!important}.impact_slider_layout .impact_slider_disabled .MuiInputBase-root{background:#f2f4fb;border:1px solid #d9dde7;color:#d9dde7}.impact_slider_layout .impact_slider_disabled .MuiInputBase-root:focus,.impact_slider_layout .impact_slider_disabled .MuiInputBase-root:hover{border:1px solid #d9dde7!important}.impact_slider_layout .impact_slider_disabled .MuiInputBase-root fieldset{border:none!important}.impact_slider_layout .input_layout_style.ranged form{align-items:center;display:flex}.impact_slider_layout .input_layout_style.ranged form .MuiFormControl-root{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:space-between}.impact_slider_layout .input_layout_style.single form{align-items:center;display:flex;justify-content:center}.impact_slider_layout .input_layout_style.single form .MuiFormControl-root{width:120px}.input-position-inline{align-items:flex-end!important}.input-position-inline .impact_slider_layout{display:flex;gap:24px}.input-position-inline .impact_slider_layout .impact_slider_main_container{flex:1}.input-position-inline .impact_slider_layout .input_layout_style{flex-shrink:0}.input-position-bottom{flex-direction:column}.input-position-bottom .impact_slider_layout{display:flex;gap:16px}.input-position-bottom .impact_slider_layout .impact_slider_main_container{width:100%}.input-position-bottom .impact_slider_layout .input_layout_style{align-self:flex-end}.MuiSlider-thumb,.MuiSlider-thumb.
|
|
2
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var i=document.createElement("style");i.appendChild(document.createTextNode(".slider-container{display:flex;flex-direction:column;gap:2px;min-height:calc(100% + 20px)}.impact_slider_layout{display:flex;gap:16px}.impact_slider_layout .input_layout_style .MuiFormControl-root .MuiInputBase-root{background-color:#fff;border:1px solid #c3c8d4;border-radius:8px;height:32px;width:75px}.impact_slider_layout .input_layout_style .MuiFormControl-root .MuiInputBase-root:focus,.impact_slider_layout .input_layout_style .MuiFormControl-root .MuiInputBase-root:hover{border:1px solid #4259ee}.impact_slider_layout .input_layout_style .MuiFormControl-root .MuiInputBase-root fieldset{border:none!important}.impact_slider_layout .impact_slider_layout_heading{font-size:22px;font-weight:400;line-height:30.05px}.impact_slider_layout.header-top{flex-direction:column}.impact_slider_layout.header-left{align-items:center;flex-direction:row;gap:32px}.impact_slider_layout .impact_slider_container{width:390px}.impact_slider_layout .impact_slider_container .impact_slider_labelname{color:#60697d;display:block;font-size:12px;font-weight:500;margin-bottom:8px;margin-top:8px}.impact_slider_layout .impact_slider_container .impact_slider_main_container{align-items:center;display:flex;gap:16px;position:relative}.impact_slider_layout .impact_slider_container .impact_slider_main_container .impact_slider_threshold_marker{background-color:#e74b1c;border-radius:1px;height:8px;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);width:2px;z-index:1}.impact_slider_layout .impact_slider_container .impact_slider_main_container .MuiSlider-root{color:#4259ee;height:4px}.impact_slider_layout .impact_slider_container .impact_slider_main_container .MuiSlider-rail{background:#d9dde7;opacity:1}.impact_slider_layout .impact_slider_container .impact_slider_main_container .MuiSlider-thumb:hover{box-shadow:none}.impact_slider_layout .impact_slider_container .impact_slider_main_container .MuiSlider-valueLabel{background-color:#0d152c;color:#fff}.impact_slider_layout .impact_slider_container .impact_slider_main_container_disabled{pointer-events:none}.impact_slider_layout .impact_slider_container .impact_slider_main_container_disabled .MuiSlider-root{color:#c3c8d4;height:4px}.impact_slider_layout .impact_slider_container .impact_slider_main_container_disabled .MuiSlider-rail{background:#c3c8d4;opacity:1}.impact_slider_layout .impact_slider_disabled .MuiSlider-root{color:#d9dde7!important}.impact_slider_layout .impact_slider_disabled .MuiInputBase-root{background:#f2f4fb;border:1px solid #d9dde7;color:#d9dde7}.impact_slider_layout .impact_slider_disabled .MuiInputBase-root:focus,.impact_slider_layout .impact_slider_disabled .MuiInputBase-root:hover{border:1px solid #d9dde7!important}.impact_slider_layout .impact_slider_disabled .MuiInputBase-root fieldset{border:none!important}.impact_slider_layout .input_layout_style.ranged form{align-items:center;display:flex}.impact_slider_layout .input_layout_style.ranged form .MuiFormControl-root{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:space-between}.impact_slider_layout .input_layout_style.single form{align-items:center;display:flex;justify-content:center}.impact_slider_layout .input_layout_style.single form .MuiFormControl-root{width:120px}.input-position-inline{align-items:flex-end!important}.input-position-inline .impact_slider_layout{display:flex;gap:24px}.input-position-inline .impact_slider_layout .impact_slider_main_container{flex:1}.input-position-inline .impact_slider_layout .input_layout_style{flex-shrink:0}.input-position-bottom{flex-direction:column}.input-position-bottom .impact_slider_layout{display:flex;gap:16px}.input-position-bottom .impact_slider_layout .impact_slider_main_container{width:100%}.input-position-bottom .impact_slider_layout .input_layout_style{align-self:flex-end}.MuiSlider-thumb,.MuiSlider-thumb:before{box-shadow:none!important}.MuiSlider-thumb:active,.MuiSlider-thumb:hover{box-shadow:none!important;z-index:2}.MuiSlider-thumb.Mui-focusVisible{box-shadow:0 0 0 var(--ia-focus-ring-offset,2px) var(--ia-focus-bg,#fff),0 0 0 calc(var(--ia-focus-ring-offset, 2px) + var(--ia-focus-ring-width, 2px)) var(--ia-focus-color,#4259ee)!important;outline:none;transition:box-shadow .15s ease-in-out;z-index:2}.Mui-disabled{pointer-events:none}.Mui-disabled.MuiOutlinedInput-root fieldset,.Mui-disabled.MuiOutlinedInput-root:focus-within fieldset,.Mui-disabled.MuiOutlinedInput-root:hover fieldset{border-color:#e0e0e0!important}.slider-info-message{align-items:center;color:#e15554;display:flex;font-size:12px;gap:6px;height:20px;opacity:1;padding-left:91px;transform:translateY(0);transition:opacity .2s ease-out,transform .2s ease-out}.slider-info-message.hidden{opacity:0;pointer-events:none;transform:translateY(-4px)}.slider-info-message .slider-info-icon{flex-shrink:0;font-size:14px}.slider-info-message .slider-info-text{font-weight:500;line-height:16px}.slider-info-placeholder{height:20px;width:100%}")),document.head.appendChild(i)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useMemo, useEffect } from "react";
|
|
4
|
+
import default_1 from "../../node_modules/@mui/icons-material/InfoOutlined.js";
|
|
3
5
|
|
|
4
6
|
import FormControl from "../../node_modules/@mui/material/FormControl/FormControl.js";
|
|
5
7
|
import OutlinedInput from "../../node_modules/@mui/material/OutlinedInput/OutlinedInput.js";
|
|
6
8
|
import Slider$1 from "../../node_modules/@mui/material/Slider/Slider.js";
|
|
9
|
+
const DEFAULT_BELOW_THRESHOLD_COLOR = "#4259ee";
|
|
10
|
+
const DEFAULT_ABOVE_THRESHOLD_COLOR = "#ED9998";
|
|
7
11
|
function isRangedValue(value) {
|
|
8
12
|
return Array.isArray(value) && value.length === 2;
|
|
9
13
|
}
|
|
@@ -19,28 +23,110 @@ function Slider({
|
|
|
19
23
|
max = 100,
|
|
20
24
|
variant = "default",
|
|
21
25
|
inputPosition = "inline",
|
|
26
|
+
colorChangeThreshold,
|
|
27
|
+
valueFormat,
|
|
28
|
+
messageTimeout = 5e3,
|
|
22
29
|
className,
|
|
23
30
|
id,
|
|
24
31
|
"data-testid": dataTestId,
|
|
25
32
|
...sliderProps
|
|
26
33
|
}) {
|
|
34
|
+
const [infoMessage, setInfoMessage] = useState("");
|
|
35
|
+
const [showInfo, setShowInfo] = useState(false);
|
|
36
|
+
const [focusedInput, setFocusedInput] = useState(false);
|
|
37
|
+
const [rightInputFocused, setRightInputFocused] = useState(false);
|
|
38
|
+
const [formattedValue, setFormattedValue] = useState(
|
|
39
|
+
Array.isArray(value) ? value.map(String) : String(value)
|
|
40
|
+
);
|
|
27
41
|
const isRanged = variant === "ranged" && isRangedValue(value);
|
|
28
42
|
const primaryValue = isRangedValue(value) ? value[0] : value;
|
|
29
43
|
const secondaryValue = isRangedValue(value) ? value[1] : value;
|
|
44
|
+
const { isAboveThreshold, trackSplitPercent, thresholdMarkerLeft } = useMemo(() => {
|
|
45
|
+
const valueForThresh = Array.isArray(value) ? Math.max(...value) : value;
|
|
46
|
+
if (colorChangeThreshold == null) {
|
|
47
|
+
return { isAboveThreshold: false, trackSplitPercent: 0, thresholdMarkerLeft: null };
|
|
48
|
+
}
|
|
49
|
+
const ranged = Array.isArray(value) && value.length === 2;
|
|
50
|
+
const primary = ranged ? value[0] : void 0;
|
|
51
|
+
const secondary = ranged ? value[1] : void 0;
|
|
52
|
+
const aboveThresh = valueForThresh > colorChangeThreshold;
|
|
53
|
+
let split;
|
|
54
|
+
if (ranged && primary != null && secondary != null) {
|
|
55
|
+
if (colorChangeThreshold <= primary) split = 0;
|
|
56
|
+
else if (colorChangeThreshold >= secondary) split = 100;
|
|
57
|
+
else split = (colorChangeThreshold - primary) / (secondary - primary) * 100;
|
|
58
|
+
} else {
|
|
59
|
+
split = aboveThresh && valueForThresh > min ? (colorChangeThreshold - min) / (valueForThresh - min) * 100 : 0;
|
|
60
|
+
}
|
|
61
|
+
const markerLeft = colorChangeThreshold > min && colorChangeThreshold < max ? (colorChangeThreshold - min) / (max - min) * 100 : null;
|
|
62
|
+
return { isAboveThreshold: aboveThresh, trackSplitPercent: split, thresholdMarkerLeft: markerLeft };
|
|
63
|
+
}, [value, min, max, colorChangeThreshold]);
|
|
64
|
+
useEffect(() => {
|
|
65
|
+
if (!valueFormat) return;
|
|
66
|
+
const [pos, symbol] = valueFormat;
|
|
67
|
+
const formatSingle = (val) => pos === "left" ? `${symbol}${val}` : `${val}${symbol}`;
|
|
68
|
+
setFormattedValue(
|
|
69
|
+
Array.isArray(value) ? value.map((v) => formatSingle(v)) : formatSingle(value)
|
|
70
|
+
);
|
|
71
|
+
}, [valueFormat, value]);
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
if (showInfo) {
|
|
74
|
+
const timer = setTimeout(() => {
|
|
75
|
+
setShowInfo(false);
|
|
76
|
+
}, messageTimeout);
|
|
77
|
+
return () => clearTimeout(timer);
|
|
78
|
+
}
|
|
79
|
+
return void 0;
|
|
80
|
+
}, [showInfo, messageTimeout]);
|
|
30
81
|
const handleInputChange = (e, key) => {
|
|
31
82
|
const inputVal = e.target.value;
|
|
32
|
-
if (
|
|
83
|
+
if (showInfo) {
|
|
84
|
+
setShowInfo(false);
|
|
85
|
+
setInfoMessage("");
|
|
86
|
+
}
|
|
87
|
+
if (inputVal === "" || Number.isNaN(Number(inputVal))) {
|
|
88
|
+
setInfoMessage("Please enter a valid number");
|
|
89
|
+
setShowInfo(true);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
33
92
|
const num = Number(inputVal);
|
|
34
93
|
if (key === "min") {
|
|
35
|
-
if (num < min
|
|
94
|
+
if (num < min) {
|
|
95
|
+
setInfoMessage(`Value must be at least ${min}`);
|
|
96
|
+
setShowInfo(true);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
if (isRanged && num > secondaryValue) {
|
|
100
|
+
setInfoMessage("Initial value must be less than the maximum value");
|
|
101
|
+
setShowInfo(true);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
36
104
|
onChange == null ? void 0 : onChange(e, isRanged ? [num, secondaryValue] : num, 0);
|
|
37
105
|
} else if (key === "max") {
|
|
38
|
-
if (num > max
|
|
106
|
+
if (num > max) {
|
|
107
|
+
setInfoMessage(`Value must not exceed ${max}`);
|
|
108
|
+
setShowInfo(true);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
if (isRanged && num < primaryValue) {
|
|
112
|
+
setInfoMessage("Maximum value must be greater than the initial value");
|
|
113
|
+
setShowInfo(true);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
39
116
|
onChange == null ? void 0 : onChange(e, isRanged ? [primaryValue, num] : num, 1);
|
|
40
117
|
} else {
|
|
41
118
|
onChange == null ? void 0 : onChange(e, num);
|
|
42
119
|
}
|
|
43
120
|
};
|
|
121
|
+
const getDisplayValue = (raw, formatted, index) => {
|
|
122
|
+
if (index != null) {
|
|
123
|
+
const isFocused = index === 0 ? focusedInput : rightInputFocused;
|
|
124
|
+
if (!isFocused && valueFormat && Array.isArray(formatted)) return formatted[index];
|
|
125
|
+
return raw;
|
|
126
|
+
}
|
|
127
|
+
if (!focusedInput && valueFormat && typeof formatted === "string") return formatted;
|
|
128
|
+
return raw;
|
|
129
|
+
};
|
|
44
130
|
const layoutClass = [
|
|
45
131
|
"impact_slider_layout",
|
|
46
132
|
"slider-container",
|
|
@@ -48,66 +134,100 @@ function Slider({
|
|
|
48
134
|
`input-position-${inputPosition}`,
|
|
49
135
|
className ?? ""
|
|
50
136
|
].filter(Boolean).join(" ");
|
|
51
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
{
|
|
55
|
-
disabled,
|
|
56
|
-
inputProps: { "aria-label": "Minimum value", "data-testid": "slider-input-min" },
|
|
57
|
-
value: isRanged ? primaryValue : value,
|
|
58
|
-
onChange: (e) => {
|
|
59
|
-
handleInputChange(e, isRanged ? "min" : "");
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
) }) }) }),
|
|
63
|
-
/* @__PURE__ */ jsxs("div", { className: "impact_slider_container", children: [
|
|
64
|
-
header != null && /* @__PURE__ */ jsx("div", { className: "impact_slider_layout_heading", children: header }),
|
|
65
|
-
label != null && /* @__PURE__ */ jsxs("label", { className: "impact_slider_labelname", children: [
|
|
66
|
-
label,
|
|
67
|
-
" ",
|
|
68
|
-
required && /* @__PURE__ */ jsx("span", { style: { color: "red" }, children: "*" })
|
|
69
|
-
] }),
|
|
70
|
-
/* @__PURE__ */ jsx("div", { className: `impact_slider_main_container ${disabled ? "impact_slider_disabled" : ""}`, children: /* @__PURE__ */ jsx(
|
|
71
|
-
Slider$1,
|
|
72
|
-
{
|
|
73
|
-
...sliderProps,
|
|
74
|
-
disabled,
|
|
75
|
-
max,
|
|
76
|
-
min,
|
|
77
|
-
value,
|
|
78
|
-
onChange: (_, val, activeThumb) => onChange == null ? void 0 : onChange(_, val, activeThumb),
|
|
79
|
-
...isRanged ? { getAriaLabel: (i) => i === 0 ? "Minimum" : "Maximum" } : { "aria-label": "Slider" },
|
|
80
|
-
valueLabelDisplay: "auto"
|
|
81
|
-
}
|
|
82
|
-
) })
|
|
83
|
-
] }),
|
|
84
|
-
/* @__PURE__ */ jsx("div", { className: `input_layout_style ${isRanged ? "ranged" : "single"}`, children: /* @__PURE__ */ jsx("form", { noValidate: true, autoComplete: "off", children: /* @__PURE__ */ jsxs(FormControl, { children: [
|
|
85
|
-
(!isRanged || inputPosition === "bottom") && /* @__PURE__ */ jsx(
|
|
137
|
+
return /* @__PURE__ */ jsxs("div", { className: "slider-container", "data-testid": dataTestId, id, children: [
|
|
138
|
+
/* @__PURE__ */ jsxs("div", { className: layoutClass, children: [
|
|
139
|
+
isRanged && inputPosition === "inline" && /* @__PURE__ */ jsx("div", { className: "input_layout_style ranged ranged-start", children: /* @__PURE__ */ jsx("form", { noValidate: true, autoComplete: "off", children: /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
|
|
86
140
|
OutlinedInput,
|
|
87
141
|
{
|
|
88
142
|
disabled,
|
|
89
|
-
inputProps: {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
},
|
|
93
|
-
value: isRanged ? primaryValue : value,
|
|
143
|
+
inputProps: { "aria-label": "Minimum value", "data-testid": "slider-input-min" },
|
|
144
|
+
value: getDisplayValue(primaryValue, formattedValue, 0),
|
|
145
|
+
onBlur: () => setFocusedInput(false),
|
|
94
146
|
onChange: (e) => {
|
|
95
147
|
handleInputChange(e, isRanged ? "min" : "");
|
|
96
|
-
}
|
|
148
|
+
},
|
|
149
|
+
onFocus: () => setFocusedInput(true)
|
|
97
150
|
}
|
|
98
|
-
),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
151
|
+
) }) }) }),
|
|
152
|
+
/* @__PURE__ */ jsxs("div", { className: "impact_slider_container", children: [
|
|
153
|
+
header != null && /* @__PURE__ */ jsx("div", { className: "impact_slider_layout_heading", children: header }),
|
|
154
|
+
label != null && /* @__PURE__ */ jsxs("label", { className: "impact_slider_labelname", children: [
|
|
155
|
+
label,
|
|
156
|
+
" ",
|
|
157
|
+
required && /* @__PURE__ */ jsx("span", { style: { color: "red" }, children: "*" })
|
|
158
|
+
] }),
|
|
159
|
+
/* @__PURE__ */ jsxs("div", { className: `impact_slider_main_container ${disabled ? "impact_slider_disabled" : ""}`, children: [
|
|
160
|
+
colorChangeThreshold != null && thresholdMarkerLeft != null && /* @__PURE__ */ jsx(
|
|
161
|
+
"span",
|
|
162
|
+
{
|
|
163
|
+
"aria-hidden": true,
|
|
164
|
+
className: "impact_slider_threshold_marker",
|
|
165
|
+
style: { left: `${thresholdMarkerLeft}%` }
|
|
166
|
+
}
|
|
167
|
+
),
|
|
168
|
+
/* @__PURE__ */ jsx(
|
|
169
|
+
Slider$1,
|
|
170
|
+
{
|
|
171
|
+
...sliderProps,
|
|
172
|
+
disabled,
|
|
173
|
+
max,
|
|
174
|
+
min,
|
|
175
|
+
sx: isAboveThreshold ? {
|
|
176
|
+
color: DEFAULT_BELOW_THRESHOLD_COLOR,
|
|
177
|
+
"& .MuiSlider-track": {
|
|
178
|
+
background: `linear-gradient(to right, ${DEFAULT_BELOW_THRESHOLD_COLOR} 0%, ${DEFAULT_BELOW_THRESHOLD_COLOR} ${trackSplitPercent}%, ${DEFAULT_ABOVE_THRESHOLD_COLOR} ${trackSplitPercent}%, ${DEFAULT_ABOVE_THRESHOLD_COLOR} 100%)`,
|
|
179
|
+
border: "none",
|
|
180
|
+
transition: "none"
|
|
181
|
+
},
|
|
182
|
+
"& .MuiSlider-thumb": {
|
|
183
|
+
backgroundColor: DEFAULT_BELOW_THRESHOLD_COLOR,
|
|
184
|
+
zIndex: 2
|
|
185
|
+
}
|
|
186
|
+
} : void 0,
|
|
187
|
+
value,
|
|
188
|
+
onChange: (_, val, activeThumb) => onChange == null ? void 0 : onChange(_, val, activeThumb),
|
|
189
|
+
...isRanged ? { getAriaLabel: (i) => i === 0 ? "Minimum" : "Maximum" } : { "aria-label": "Slider" },
|
|
190
|
+
valueLabelDisplay: "auto"
|
|
191
|
+
}
|
|
192
|
+
)
|
|
193
|
+
] })
|
|
194
|
+
] }),
|
|
195
|
+
/* @__PURE__ */ jsx("div", { className: `input_layout_style ${isRanged ? "ranged" : "single"}`, children: /* @__PURE__ */ jsx("form", { noValidate: true, autoComplete: "off", children: /* @__PURE__ */ jsxs(FormControl, { children: [
|
|
196
|
+
(!isRanged || inputPosition === "bottom") && /* @__PURE__ */ jsx(
|
|
197
|
+
OutlinedInput,
|
|
198
|
+
{
|
|
199
|
+
disabled,
|
|
200
|
+
inputProps: {
|
|
201
|
+
"aria-label": isRanged ? "Minimum value" : "Value",
|
|
202
|
+
"data-testid": "slider-input-value"
|
|
203
|
+
},
|
|
204
|
+
value: isRanged ? getDisplayValue(primaryValue, formattedValue, 0) : getDisplayValue(primaryValue, formattedValue),
|
|
205
|
+
onBlur: () => setFocusedInput(false),
|
|
206
|
+
onChange: (e) => {
|
|
207
|
+
handleInputChange(e, isRanged ? "min" : "");
|
|
208
|
+
},
|
|
209
|
+
onFocus: () => setFocusedInput(true)
|
|
107
210
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
211
|
+
),
|
|
212
|
+
isRanged && /* @__PURE__ */ jsx(
|
|
213
|
+
OutlinedInput,
|
|
214
|
+
{
|
|
215
|
+
disabled,
|
|
216
|
+
inputProps: { "aria-label": "Maximum value", "data-testid": "slider-input-max" },
|
|
217
|
+
value: getDisplayValue(secondaryValue, formattedValue, 1),
|
|
218
|
+
onBlur: () => setRightInputFocused(false),
|
|
219
|
+
onChange: (e) => {
|
|
220
|
+
handleInputChange(e, "max");
|
|
221
|
+
},
|
|
222
|
+
onFocus: () => setRightInputFocused(true)
|
|
223
|
+
}
|
|
224
|
+
)
|
|
225
|
+
] }) }) })
|
|
226
|
+
] }),
|
|
227
|
+
/* @__PURE__ */ jsx("div", { className: `slider-info-message ${!showInfo ? "hidden" : ""}`, children: showInfo && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
228
|
+
/* @__PURE__ */ jsx(default_1, { className: "slider-info-icon" }),
|
|
229
|
+
/* @__PURE__ */ jsx("span", { className: "slider-info-text", children: infoMessage })
|
|
230
|
+
] }) })
|
|
111
231
|
] });
|
|
112
232
|
}
|
|
113
233
|
Slider.displayName = "Slider";
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { BaseComponentProps } from '../../types';
|
|
2
3
|
import { StepperProps as MUIStepperProps } from '@mui/material/Stepper';
|
|
3
4
|
|
|
5
|
+
export interface StepStatusConfig {
|
|
6
|
+
label: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
}
|
|
4
10
|
export interface StepperStep {
|
|
5
11
|
label: string;
|
|
6
12
|
description?: string;
|
|
13
|
+
statusConfig?: StepStatusConfig;
|
|
7
14
|
}
|
|
8
15
|
export interface StepperProps extends BaseComponentProps, Omit<MUIStepperProps, 'children' | 'variant'> {
|
|
9
16
|
steps: StepperStep[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.types.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7E,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Stepper.types.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7E,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAED,MAAM,WAAW,YACf,SAAQ,kBAAkB,EAAE,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,SAAS,CAAC;IACzE,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,wFAAwF;IACxF,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,KAAK,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,uBAAuB,CAAC;AAgG/B,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,UAAU,EACV,WAA0B,EAC1B,UAAU,EACV,OAAmB,EACnB,GAAG,IAAI,EACR,EAAE,YAAY,2CAcd;yBArBe,OAAO"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ia-styles.ia-stepper{font-family:Manrope,sans-serif!important}.ia-styles.ia-stepper.MuiStepContent-root{border-left:none;bottom:0;margin-left:12px;padding-left:20px;padding-right:8px;position:absolute}.ia-styles.ia-stepper.MuiBox-root{max-width:none}.ia-styles.ia-stepper.ia-stepper{font-family:Manrope,sans-serif}.ia-styles.ia-stepper.ia-stepper .MuiStep-horizontal{align-items:center;background:#fff;border-radius:8px;cursor:pointer;display:flex;height:44px;padding-left:12px;padding-right:12px;position:relative;width:100%}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-iconContainer .MuiSvgIcon-root.Mui-active{background:#4259ee;border-radius:8px;color:#4259ee;height:24px;width:24px}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-iconContainer .MuiSvgIcon-root.Mui-active .MuiStepIcon-text{fill:#fff;font-family:Manrope,sans-serif}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-iconContainer .MuiSvgIcon-root{background:#d9dde7;border-radius:8px;color:#d9dde7;height:24px;width:24px}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-iconContainer .MuiSvgIcon-root .MuiStepIcon-text{fill:#7a8294;font-family:Manrope,sans-serif;font-weight:800}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-iconContainer .MuiSvgIcon-root.Mui-completed{background:#3bb273 url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkmark.svg) no-repeat;background-position:50%;background-size:16px;border-radius:8px;color:#3bb273;height:24px;position:relative;width:24px}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-vertical .MuiStepLabel-iconContainer .MuiSvgIcon-root.Mui-active{background:#4259ee;color:#4259ee;height:20px;width:20px}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-vertical .MuiStepLabel-iconContainer .MuiSvgIcon-root.Mui-active .MuiStepIcon-text{fill:#fff}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-vertical .MuiStepLabel-iconContainer .MuiSvgIcon-root{background:#7a8294;color:#7a8294;height:20px;width:20px}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-vertical .MuiStepLabel-iconContainer .MuiSvgIcon-root .MuiStepIcon-text{fill:#fff;font-weight:700}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-vertical .MuiStepLabel-iconContainer .MuiSvgIcon-root.Mui-completed{background:#3bb273;background-image:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkmark.svg);background-position:50%;background-repeat:no-repeat;background-size:12px;color:#3bb273;height:20px;width:20px}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-labelContainer .MuiStepLabel-label{font-family:Manrope,sans-serif;font-weight:500;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-labelContainer .MuiStepLabel-label.Mui-completed{color:#3bb273}.ia-styles.ia-stepper .MuiTypography-caption{font-family:Manrope,sans-serif}.ia-styles.ia-stepper .MuiStepLabel-label.Mui-completed+.MuiTypography-root.MuiTypography-caption{color:#3bb273}.ia-styles.ia-stepper .MuiStepConnector-line{border-color:#b4bac7;border-style:dashed;width:23px}.ia-styles.ia-stepper .MuiStep-horizontal:has(.Mui-active){border-bottom:2px solid #4259ee!important}.ia-styles.ia-stepper .MuiStep-horizontal:has(.Mui-active):before{background:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/stepper-triangle.svg) no-repeat;background-size:13px;bottom:-10px;content:" ";height:10px;left:18px;position:absolute;width:13px}.ia-styles.ia-stepper .MuiStep-root:has(.Mui-completed){border-bottom:2px solid #108431!important}.ia-styles.ia-stepper .MuiStep-vertical{border-radius:3px;padding:10px 15px 10px 12px;position:relative}.ia-styles.ia-stepper .MuiStep-vertical.Mui-completed{background:#ebf7f1;border:1px solid #ebf7f1!important}.ia-styles.ia-stepper .MuiStep-vertical:has(.Mui-active){background:#eceefd;border:1px solid #eceefd!important}.ia-styles.ia-stepper .MuiStep-vertical:has(.Mui-active):before{background:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/stepper-vertical.svg) no-repeat;background-size:contain;content:" ";height:25px;margin-left:-20px;position:absolute;top:50%;transform:translateY(-50%);width:5px}.ia-styles.ia-stepper .MuiStep-vertical:has(.Mui-disabled){background:#eff2fa;border:1px solid #eff2fa!important}.ia-styles.ia-stepper.progress .progress-steps{display:flex;gap:8px;margin-bottom:0}.ia-styles.ia-stepper.progress .progress-steps .step{background-color:#eceefd;border-radius:4px;height:8px;transition:background-color .3s ease;width:132px}.ia-styles.ia-stepper.progress .progress-steps .step.active,.ia-styles.ia-stepper.progress .progress-steps .step.completed{background-color:#4259ee}.ia-styles.ia-stepper.progress .step-labels{display:flex;justify-content:space-between}.ia-styles.ia-stepper.progress .step-labels .step-label{color:#6b7280;cursor:pointer;font-size:14px;font-weight:500;transition:color .3s ease}.ia-styles.ia-stepper.progress .step-labels .step-label.active,.ia-styles.ia-stepper.progress .step-labels .step-label.completed{color:#3649c6}.ia-stepper.MuiStepper-horizontal .MuiStepLabel-label.Mui-active,.ia-stepper.MuiStepper-horizontal .MuiStepLabel-label.Mui-active+.MuiTypography-root.MuiTypography-caption{color:#0d152c}.ia-stepper.MuiStepper-vertical .MuiStepLabel-label.Mui-active,.ia-stepper.MuiStepper-vertical .MuiStepLabel-label.Mui-active+.MuiTypography-root.MuiTypography-caption{color:#4259ee}')),document.head.appendChild(e)}}catch(
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ia-styles.ia-stepper{font-family:Manrope,sans-serif!important}.ia-styles.ia-stepper.MuiStepContent-root{border-left:none;bottom:0;margin-left:12px;padding-left:20px;padding-right:8px;position:absolute}.ia-styles.ia-stepper.MuiBox-root{max-width:none}.ia-styles.ia-stepper.ia-stepper{font-family:Manrope,sans-serif}.ia-styles.ia-stepper.ia-stepper .MuiStep-horizontal{align-items:center;background:#fff;border-radius:8px;cursor:pointer;display:flex;height:44px;padding-left:12px;padding-right:12px;position:relative;width:100%}.ia-styles.ia-stepper.ia-stepper .MuiStep-horizontal:focus-visible{box-shadow:0 0 0 var(--ia-focus-ring-offset,2px) var(--ia-focus-bg,#fff),0 0 0 calc(var(--ia-focus-ring-offset, 2px) + var(--ia-focus-ring-width, 2px)) var(--ia-focus-color,#4259ee);outline:none;transition:box-shadow .15s ease-in-out}.ia-styles.ia-stepper.ia-stepper .MuiStep-horizontal:focus:not(:focus-visible){box-shadow:none;outline:none}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-iconContainer .MuiSvgIcon-root.Mui-active{background:#4259ee;border-radius:8px;color:#4259ee;height:24px;width:24px}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-iconContainer .MuiSvgIcon-root.Mui-active .MuiStepIcon-text{fill:#fff;font-family:Manrope,sans-serif}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-iconContainer .MuiSvgIcon-root{background:#d9dde7;border-radius:8px;color:#d9dde7;height:24px;width:24px}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-iconContainer .MuiSvgIcon-root .MuiStepIcon-text{fill:#7a8294;font-family:Manrope,sans-serif;font-weight:800}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-iconContainer .MuiSvgIcon-root.Mui-completed{background:#3bb273 url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkmark.svg) no-repeat;background-position:50%;background-size:16px;border-radius:8px;color:#3bb273;height:24px;position:relative;width:24px}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-vertical .MuiStepLabel-iconContainer .MuiSvgIcon-root.Mui-active{background:#4259ee;color:#4259ee;height:20px;width:20px}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-vertical .MuiStepLabel-iconContainer .MuiSvgIcon-root.Mui-active .MuiStepIcon-text{fill:#fff}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-vertical .MuiStepLabel-iconContainer .MuiSvgIcon-root{background:#7a8294;color:#7a8294;height:20px;width:20px}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-vertical .MuiStepLabel-iconContainer .MuiSvgIcon-root .MuiStepIcon-text{fill:#fff;font-weight:700}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-vertical .MuiStepLabel-iconContainer .MuiSvgIcon-root.Mui-completed{background:#3bb273;background-image:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkmark.svg);background-position:50%;background-repeat:no-repeat;background-size:12px;color:#3bb273;height:20px;width:20px}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-labelContainer .MuiStepLabel-label{font-family:Manrope,sans-serif;font-weight:500;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ia-styles.ia-stepper.ia-stepper .MuiStepLabel-labelContainer .MuiStepLabel-label.Mui-completed{color:#3bb273}.ia-styles.ia-stepper .MuiTypography-caption{font-family:Manrope,sans-serif}.ia-styles.ia-stepper .MuiStepLabel-label.Mui-completed+.MuiTypography-root.MuiTypography-caption{color:#3bb273}.ia-styles.ia-stepper .MuiStepConnector-line{border-color:#b4bac7;border-style:dashed;width:23px}.ia-styles.ia-stepper .MuiStep-horizontal:has(.Mui-active){border-bottom:2px solid #4259ee!important}.ia-styles.ia-stepper .MuiStep-horizontal:has(.Mui-active):before{background:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/stepper-triangle.svg) no-repeat;background-size:13px;bottom:-10px;content:" ";height:10px;left:18px;position:absolute;width:13px}.ia-styles.ia-stepper .MuiStep-root:has(.Mui-completed){border-bottom:2px solid #108431!important}.ia-styles.ia-stepper .MuiStep-vertical{border-radius:3px;padding:10px 15px 10px 12px;position:relative}.ia-styles.ia-stepper .MuiStep-vertical.Mui-completed{background:#ebf7f1;border:1px solid #ebf7f1!important}.ia-styles.ia-stepper .MuiStep-vertical:has(.Mui-active){background:#eceefd;border:1px solid #eceefd!important}.ia-styles.ia-stepper .MuiStep-vertical:has(.Mui-active):before{background:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/stepper-vertical.svg) no-repeat;background-size:contain;content:" ";height:25px;margin-left:-20px;position:absolute;top:50%;transform:translateY(-50%);width:5px}.ia-styles.ia-stepper .MuiStep-vertical:has(.Mui-disabled){background:#eff2fa;border:1px solid #eff2fa!important}.ia-styles.ia-stepper .css-14sza3e-MuiStepLabel-root{padding:0!important}.ia-styles.ia-stepper.progress .progress-steps{display:flex;gap:8px;margin-bottom:0}.ia-styles.ia-stepper.progress .progress-steps .step{background-color:#eceefd;border-radius:4px;height:8px;transition:background-color .3s ease;width:132px}.ia-styles.ia-stepper.progress .progress-steps .step.active,.ia-styles.ia-stepper.progress .progress-steps .step.completed{background-color:#4259ee}.ia-styles.ia-stepper.progress .step-labels{display:flex;justify-content:space-between}.ia-styles.ia-stepper.progress .step-labels .step-label{color:#6b7280;cursor:pointer;font-size:14px;font-weight:500;transition:color .3s ease}.ia-styles.ia-stepper.progress .step-labels .step-label.active,.ia-styles.ia-stepper.progress .step-labels .step-label.completed{color:#3649c6}.ia-styles.ia-stepper.numbered .numbered-steps{align-items:center;display:flex;gap:16px;margin-bottom:32px}.ia-styles.ia-stepper.numbered .numbered-steps .step{align-items:center;background-color:#e8e8e8;border-radius:50%;color:#666;display:flex;font-size:14px;font-weight:600;height:32px;justify-content:center;transition:all .3s ease;width:32px}.ia-styles.ia-stepper.numbered .numbered-steps .step.active{background-color:#3649c6;color:#fff}.ia-styles.ia-stepper.numbered .numbered-steps .step:not(:last-child):after{background-color:#e8e8e8;content:"";height:2px;position:absolute;right:-16px;width:16px}.ia-styles.ia-stepper.labeled .labeled-steps{align-items:center;display:flex;gap:24px;margin-bottom:32px}.ia-styles.ia-stepper.labeled .labeled-steps .step{align-items:center;display:flex;gap:8px}.ia-styles.ia-stepper.labeled .labeled-steps .step .step-number{align-items:center;background-color:#e8e8e8;border-radius:50%;color:#666;display:flex;font-size:12px;font-weight:600;height:24px;justify-content:center;transition:all .3s ease;width:24px}.ia-styles.ia-stepper.labeled .labeled-steps .step .step-label{color:#666;font-size:14px;transition:color .3s ease}.ia-styles.ia-stepper.labeled .labeled-steps .step.active .step-number{background-color:#3649c6;color:#fff}.ia-styles.ia-stepper.labeled .labeled-steps .step.active .step-label{color:#1a1a1a;font-weight:600}.ia-styles.ia-stepper.labeled .labeled-steps .step:not(:last-child):after{background-color:#e8e8e8;content:"";display:block;height:1px;margin-left:8px;width:24px}.ia-styles.ia-stepper .status-config{flex:1}.ia-styles.ia-stepper .status-config .MuiStepLabel-label{align-items:center;display:flex;justify-content:space-between;max-width:none!important}.ia-stepper.MuiStepper-horizontal .MuiStepLabel-label.Mui-active,.ia-stepper.MuiStepper-horizontal .MuiStepLabel-label.Mui-active+.MuiTypography-root.MuiTypography-caption{color:#0d152c}.ia-stepper.MuiStepper-vertical .MuiStepLabel-label.Mui-active,.ia-stepper.MuiStepper-vertical .MuiStepLabel-label.Mui-active+.MuiTypography-root.MuiTypography-caption{color:#4259ee}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Badge } from "../Badge/index.js";
|
|
3
4
|
|
|
4
5
|
import Stepper$1 from "../../node_modules/@mui/material/Stepper/Stepper.js";
|
|
5
6
|
import Step from "../../node_modules/@mui/material/Step/Step.js";
|
|
@@ -25,13 +26,40 @@ function DefaultStepper({
|
|
|
25
26
|
sx: { width },
|
|
26
27
|
variant: muiVariant,
|
|
27
28
|
...args,
|
|
28
|
-
children: steps.length > 0 && steps.map((step, index) => /* @__PURE__ */ jsx(
|
|
29
|
-
|
|
29
|
+
children: steps.length > 0 && steps.map((step, index) => /* @__PURE__ */ jsx(
|
|
30
|
+
Step,
|
|
30
31
|
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
tabIndex: handleStep ? 0 : -1,
|
|
33
|
+
onClick: () => handleStep == null ? void 0 : handleStep(index),
|
|
34
|
+
onKeyDown: (e) => {
|
|
35
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
36
|
+
e.preventDefault();
|
|
37
|
+
handleStep == null ? void 0 : handleStep(index);
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
children: /* @__PURE__ */ jsxs(
|
|
41
|
+
StepLabel,
|
|
42
|
+
{
|
|
43
|
+
className: step.statusConfig ? "status-config" : "",
|
|
44
|
+
optional: step.description ? /* @__PURE__ */ jsx(Typography, { variant: "caption", children: step.description }) : null,
|
|
45
|
+
children: [
|
|
46
|
+
step.label,
|
|
47
|
+
step.statusConfig && /* @__PURE__ */ jsx(
|
|
48
|
+
Badge,
|
|
49
|
+
{
|
|
50
|
+
color: step.statusConfig.color,
|
|
51
|
+
icon: step.statusConfig.icon,
|
|
52
|
+
isIcon: !!step.statusConfig.icon,
|
|
53
|
+
label: step.statusConfig.label,
|
|
54
|
+
variant: "subtle"
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
},
|
|
61
|
+
step.label
|
|
62
|
+
))
|
|
35
63
|
}
|
|
36
64
|
);
|
|
37
65
|
}
|
|
@@ -45,7 +73,7 @@ function ProgressStepper({
|
|
|
45
73
|
{
|
|
46
74
|
className: `step ${index === activeStep ? "active" : ""} ${index < activeStep ? "completed" : ""}`,
|
|
47
75
|
role: "button",
|
|
48
|
-
tabIndex: 0,
|
|
76
|
+
tabIndex: handleStep ? 0 : -1,
|
|
49
77
|
onClick: () => handleStep == null ? void 0 : handleStep(index),
|
|
50
78
|
onKeyDown: (e) => {
|
|
51
79
|
if (e.key === "Enter" || e.key === " ") {
|
|
@@ -75,7 +103,7 @@ function Stepper({
|
|
|
75
103
|
handleStep,
|
|
76
104
|
orientation,
|
|
77
105
|
steps,
|
|
78
|
-
variant,
|
|
106
|
+
variant: variant === "mui" ? "default" : variant,
|
|
79
107
|
...args
|
|
80
108
|
}
|
|
81
109
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var i=document.createElement("style");i.appendChild(document.createTextNode(".ia-styles.ia-switch-container{align-items:center;display:flex;gap:6px}.ia-styles.ia-switch-container .ia-switch-label{color:#60697d;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:17.5px;text-align:left}.ia-styles.ia-switch-container .ia-switch-label.ia-switch-disabled{color:#b4bac7}.ia-styles.ia-switch{height:16px;padding:0;position:relative;width:24px}.ia-styles.ia-switch .MuiButtonBase-root.MuiSwitch-switchBase{background-color:initial!important}.ia-styles.ia-switch .MuiSwitch-thumb{box-shadow:none;color:#c3c8d4;height:10px;left:15px;position:absolute;top:3px;width:10px}.ia-styles.ia-switch .Mui-checked{color:#4259ee!important;transform:translate(10px)}.ia-styles.ia-switch .Mui-checked .MuiSwitch-thumb{color:#4259ee;left:13px}.ia-styles.ia-switch .Mui-checked:not(.Mui-disabled)+.MuiSwitch-track{background-color:#eceefd!important;border:1px solid #b3bdf8}.ia-styles.ia-switch .MuiButtonBase-root{bottom:0;color:#b4bac7;left:-12px;margin:auto;padding:0;position:absolute;top:0;width:24px}.ia-styles.ia-switch .MuiSwitch-track{background-color:#fff;border:1px solid #c3c8d4;border-radius:8px;height:16px;opacity:1;width:24px}.ia-styles.ia-switch.ia-switch-disabled .MuiSwitch-switchBase:not(.Mui-checked) .MuiSwitch-thumb{color:#d9dde7}.ia-styles.ia-switch.ia-switch-disabled .MuiSwitch-switchBase:not(.Mui-checked)+.MuiSwitch-track{background-color:#f8f9fb!important;border-color:1px solid #d9dde7}.ia-styles.ia-switch.ia-switch-disabled .MuiSwitch-switchBase.Mui-checked.Mui-disabled .MuiSwitch-thumb{color:#b3bdf8}.ia-styles.ia-switch.ia-switch-disabled .MuiSwitch-switchBase.Mui-checked.Mui-disabled+.MuiSwitch-track{background-color:#eceefd!important}")),document.head.appendChild(i)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var i=document.createElement("style");i.appendChild(document.createTextNode(".ia-styles.ia-switch-container{align-items:center;display:flex;gap:6px}.ia-styles.ia-switch-container .ia-switch-label{color:#60697d;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:17.5px;text-align:left}.ia-styles.ia-switch-container .ia-switch-label.ia-switch-disabled{color:#b4bac7}.ia-styles.ia-switch{height:16px;padding:0;position:relative;width:24px}.ia-styles.ia-switch:has(.Mui-focusVisible){box-shadow:0 0 0 var(--ia-focus-ring-offset,2px) var(--ia-focus-bg,#fff),0 0 0 calc(var(--ia-focus-ring-offset, 2px) + var(--ia-focus-ring-width, 2px)) var(--ia-focus-color,#4259ee);outline:none;transition:box-shadow .15s ease-in-out}.ia-styles.ia-switch .MuiButtonBase-root.MuiSwitch-switchBase{background-color:initial!important}.ia-styles.ia-switch .MuiSwitch-thumb{box-shadow:none;color:#c3c8d4;height:10px;left:15px;position:absolute;top:3px;width:10px}.ia-styles.ia-switch .Mui-checked{color:#4259ee!important;transform:translate(10px)}.ia-styles.ia-switch .Mui-checked .MuiSwitch-thumb{color:#4259ee;left:13px}.ia-styles.ia-switch .Mui-checked:not(.Mui-disabled)+.MuiSwitch-track{background-color:#eceefd!important;border:1px solid #b3bdf8}.ia-styles.ia-switch .MuiButtonBase-root{bottom:0;color:#b4bac7;left:-12px;margin:auto;padding:0;position:absolute;top:0;width:24px}.ia-styles.ia-switch .MuiSwitch-track{background-color:#fff;border:1px solid #c3c8d4;border-radius:8px;height:16px;opacity:1;width:24px}.ia-styles.ia-switch.ia-switch-disabled .MuiSwitch-switchBase:not(.Mui-checked) .MuiSwitch-thumb{color:#d9dde7}.ia-styles.ia-switch.ia-switch-disabled .MuiSwitch-switchBase:not(.Mui-checked)+.MuiSwitch-track{background-color:#f8f9fb!important;border-color:1px solid #d9dde7}.ia-styles.ia-switch.ia-switch-disabled .MuiSwitch-switchBase.Mui-checked.Mui-disabled .MuiSwitch-thumb{color:#b3bdf8}.ia-styles.ia-switch.ia-switch-disabled .MuiSwitch-switchBase.Mui-checked.Mui-disabled+.MuiSwitch-track{background-color:#eceefd!important}")),document.head.appendChild(i)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef, useMemo } from "react";
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableImpl.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableImpl.tsx"],"names":[],"mappings":"AAaA,OAAO,sCAAsC,CAAC;AAC9C,OAAO,8CAA8C,CAAC;AACtD,OAAO,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"TableImpl.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableImpl.tsx"],"names":[],"mappings":"AAaA,OAAO,sCAAsC,CAAC;AAC9C,OAAO,8CAA8C,CAAC;AACtD,OAAO,qBAAqB,CAAC;AAgB7B,eAAO,MAAM,KAAK,mFAwhEjB,CAAC"}
|