@ck-ui/component-library 2.0.2 → 2.0.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/{CalendarGrid-DzsGX04L.js → CalendarGrid-Cu-E76sM.js} +1 -1
- package/dist/DropdownFooter-W4D9bbd6.js +98 -0
- package/dist/IconSlot-lz-E7RIY.js +33 -0
- package/dist/{MenuItem-DlaRT10y.js → MenuItem-jNWNRrDR.js} +1 -1
- package/dist/ScrollDropdown-gfB7tdTr.js +80 -0
- package/dist/assets/DateRangePicker-FyjycaFJ.css +1 -0
- package/dist/assets/DropdownFooter-DTuzF-cp.css +1 -0
- package/dist/assets/IconSlot-BhpCcM3C.css +1 -0
- package/dist/assets/ScrollDropdown-Dq3Kic27.css +1 -0
- package/dist/assets/Sidebar-CrD-rucg.css +1 -0
- package/dist/assets/ToastContent-B0d7ZeVJ.css +1 -0
- package/dist/assets/index-050F7Cq1.css +1 -0
- package/dist/assets/index-BE0-nPjX.css +1 -0
- package/dist/assets/index-BFoXf6nS.css +1 -0
- package/dist/assets/index-BIccl6ps.css +1 -0
- package/dist/assets/index-BJ3ki-dZ.css +1 -0
- package/dist/assets/index-BZUn0Wdm.css +1 -0
- package/dist/assets/index-BcYUvt6V.css +1 -0
- package/dist/assets/index-Bcdauu8Y.css +1 -0
- package/dist/assets/index-BcfUGu_y.css +1 -0
- package/dist/assets/index-BqELPvtv.css +1 -0
- package/dist/assets/index-C44rlX6h.css +1 -0
- package/dist/assets/index-CAGY1l6E.css +1 -0
- package/dist/assets/index-CCTeose3.css +1 -0
- package/dist/assets/{index-BbJZjGLb.css → index-CV06CpqV.css} +1 -1
- package/dist/assets/index-Cj3VbHpe.css +1 -0
- package/dist/assets/{index-BXwGxK7I.css → index-CmfUag81.css} +1 -1
- package/dist/assets/index-CuOeYu7b.css +1 -0
- package/dist/assets/index-CuopEZmw.css +1 -0
- package/dist/assets/index-CwPQKjpa.css +1 -0
- package/dist/assets/index-D0X2hwMU.css +1 -0
- package/dist/assets/{index-BgFw4AMY.css → index-DVtITeZI.css} +1 -1
- package/dist/assets/index-DWMUQAdQ.css +1 -0
- package/dist/assets/index-DXeEmcnJ.css +1 -0
- package/dist/assets/index-DZaWJ3P3.css +1 -0
- package/dist/assets/index-DaV0QrZW.css +1 -0
- package/dist/assets/index-DePIj7wn.css +1 -0
- package/dist/assets/index-DhtWNfIJ.css +1 -0
- package/dist/assets/{index-zWDnehqu.css → index-DlcdXqx_.css} +1 -1
- package/dist/assets/index-Dmo2W49y.css +1 -0
- package/dist/assets/index-DoRanRth.css +1 -0
- package/dist/assets/index-DoTtYYv9.css +1 -0
- package/dist/assets/index-F_VkoiK8.css +1 -0
- package/dist/assets/index-V_YjVwnC.css +1 -0
- package/dist/assets/index-cVRrZueX.css +1 -0
- package/dist/assets/{index-rrYSS2rl.css → index-t1PYEt2I.css} +1 -1
- package/dist/assets/index-tNRjcWyS.css +1 -0
- package/dist/assets/main-PzmpqYzB.css +1 -0
- package/dist/assets/styles-B4HnRCM5.css +1 -0
- package/dist/assets/styles-BWiKngtQ.css +1 -0
- package/dist/assets/{styles-0GdZsGyi.css → styles-CBX41mCH.css} +1 -1
- package/dist/assets/{styles-CwZG1jzB.css → styles-CnUruVcX.css} +1 -1
- package/dist/assets/styles-DGuBVeco.css +1 -0
- package/dist/assets/{styles-DrYTmjez.css → styles-DIZ9K_K2.css} +1 -1
- package/dist/assets/styles-DJ1QnJSM.css +1 -0
- package/dist/assets/styles-DVAtoUQM.css +1 -0
- package/dist/assets/styles-DzivbMl0.css +1 -0
- package/dist/assets/styles-Ias6f7--.css +1 -0
- package/dist/assets/styles-ak9WG2cT.css +1 -0
- package/dist/assets/styles-dHWZnWrb.css +1 -0
- package/dist/assets/theme-CzZnUu2H.css +1 -0
- package/dist/components/Avatar/index.js +19 -19
- package/dist/components/Breadcrumb/index.js +45 -45
- package/dist/components/Button/index.js +18 -18
- package/dist/components/CKBadge/_types/ckBadge.types.d.ts +15 -0
- package/dist/components/CKBadge/_types/ckBadge.types.d.ts.map +1 -0
- package/dist/components/CKBadge/_types/ckBadge.types.js +4 -0
- package/dist/components/CKBadge/index.d.ts +6 -0
- package/dist/components/CKBadge/index.d.ts.map +1 -0
- package/dist/components/CKBadge/index.js +54 -0
- package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
- package/dist/components/CKButton/_helper/IconSlot.js +1 -1
- package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
- package/dist/components/CKButton/index.js +1 -1
- package/dist/components/CKCheckbox/index.js +30 -30
- package/dist/components/CKTag/index.js +38 -38
- package/dist/components/CardBox/index.js +20 -20
- package/dist/components/Checkbox/index.js +11 -11
- package/dist/components/CostComparatorTable/_helpers/CostCell.js +1 -1
- package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.js +1 -1
- package/dist/components/CostComparatorTable/index.js +1 -1
- package/dist/components/DateRangePicker/Calendar/CalendarGrid.js +2 -2
- package/dist/components/DateRangePicker/Calendar/ScrollDropdown.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +356 -241
- package/dist/components/DeviationTag/index.js +19 -19
- package/dist/components/EmptyState/index.js +5 -5
- package/dist/components/FusionChart/index.js +217 -217
- package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/MenuItem.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/MenuList.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/OptionRow.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/OptionsList.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/SearchResult.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/TagContent.js +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.js +1 -1
- package/dist/components/GroupedMultiSelect/index.js +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.js +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/OptionRow.js +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/OptionsList.js +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.js +1 -1
- package/dist/components/GroupedSingleSelect/index.js +1 -1
- package/dist/components/IconButton/_types/iconButton.type.d.ts +1 -1
- package/dist/components/IconButton/_types/iconButton.type.d.ts.map +1 -1
- package/dist/components/IconButton/index.js +28 -28
- package/dist/components/MAVDropdown/index.js +65 -65
- package/dist/components/MenuOptions/MenuOptionsWrapper.js +1 -1
- package/dist/components/MenuOptions/_helpers/MenuItem.js +2 -2
- package/dist/components/MenuOptions/_helpers/RadioMenuItem.js +1 -1
- package/dist/components/MenuOptions/_helpers/SubMenu.js +2 -2
- package/dist/components/MenuOptions/index.js +2 -2
- package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +28 -28
- package/dist/components/MultiSelect/SimpleMultiSelect.js +1 -1
- package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
- package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
- package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
- package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
- package/dist/components/MultiSelect/_helpers/SearchResult.js +1 -1
- package/dist/components/MultiSelect/_helpers/TagContent.js +1 -1
- package/dist/components/MultiSelect/_helpers/TriggerButton.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/Pagination/index.js +37 -37
- package/dist/components/Popover/index.js +2 -2
- package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts +3 -0
- package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts.map +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogContent.d.ts +1 -0
- package/dist/components/PopupAndDialogBox/components/DialogContent.d.ts.map +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogContent.js +5 -4
- package/dist/components/PopupAndDialogBox/components/DialogFooter.d.ts.map +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogFooter.js +32 -31
- package/dist/components/PopupAndDialogBox/components/DialogHeader.d.ts.map +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogHeader.js +18 -15
- package/dist/components/PopupAndDialogBox/index.js +1 -1
- package/dist/components/ProfileDropdown/index.js +42 -42
- package/dist/components/ProgressBar/index.js +24 -24
- package/dist/components/RadioButton/index.js +25 -25
- package/dist/components/RangeSlider/_types/rangeSlider.types.d.ts +31 -0
- package/dist/components/RangeSlider/_types/rangeSlider.types.d.ts.map +1 -0
- package/dist/components/RangeSlider/_types/rangeSlider.types.js +1 -0
- package/dist/components/RangeSlider/index.d.ts +3 -0
- package/dist/components/RangeSlider/index.d.ts.map +1 -0
- package/dist/components/RangeSlider/index.js +190 -0
- package/dist/components/Search/index.js +33 -33
- package/dist/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.js +103 -93
- package/dist/components/Sidebar/Sidebar.types.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.types.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.utils.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.utils.js +3 -1
- package/dist/components/Sidebar/_helpers/TruncatedLabel.d.ts +15 -0
- package/dist/components/Sidebar/_helpers/TruncatedLabel.d.ts.map +1 -0
- package/dist/components/Sidebar/_helpers/TruncatedLabel.js +26 -0
- package/dist/components/Sidebar/_helpers/animateScroll.d.ts +2 -0
- package/dist/components/Sidebar/_helpers/animateScroll.d.ts.map +1 -0
- package/dist/components/Sidebar/_helpers/animateScroll.js +12 -0
- package/dist/components/Sidebar/_helpers/index.d.ts +3 -0
- package/dist/components/Sidebar/_helpers/index.d.ts.map +1 -0
- package/dist/components/Sidebar/_helpers/index.js +6 -0
- package/dist/components/Sidebar/components/CollapsedTooltip/index.d.ts +3 -4
- package/dist/components/Sidebar/components/CollapsedTooltip/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/CollapsedTooltip/index.js +5 -3
- package/dist/components/Sidebar/components/ContactUsButton/index.d.ts +1 -1
- package/dist/components/Sidebar/components/ContactUsButton/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/ContactUsButton/index.js +60 -14
- package/dist/components/Sidebar/components/ExploreSection/index.d.ts +1 -1
- package/dist/components/Sidebar/components/ExploreSection/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/ExploreSection/index.js +47 -20
- package/dist/components/Sidebar/components/GptCard/index.d.ts +3 -2
- package/dist/components/Sidebar/components/GptCard/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/GptCard/index.js +132 -29
- package/dist/components/Sidebar/components/IconRenderer/index.d.ts +7 -1
- package/dist/components/Sidebar/components/IconRenderer/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/IconRenderer/index.js +82 -13
- package/dist/components/Sidebar/components/MenuItemWrapper/index.d.ts +2 -1
- package/dist/components/Sidebar/components/MenuItemWrapper/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/MenuItemWrapper/index.js +55 -24
- package/dist/components/Sidebar/components/MenuRenderer/CollapsedMenu.d.ts +1 -1
- package/dist/components/Sidebar/components/MenuRenderer/CollapsedMenu.d.ts.map +1 -1
- package/dist/components/Sidebar/components/MenuRenderer/CollapsedMenu.js +162 -75
- package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.d.ts +5 -1
- package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.d.ts.map +1 -1
- package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.js +78 -39
- package/dist/components/Sidebar/components/MenuRenderer/index.d.ts +5 -1
- package/dist/components/Sidebar/components/MenuRenderer/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/MenuRenderer/index.js +136 -25
- package/dist/components/Sidebar/components/ModuleSwitchButton/index.d.ts +1 -1
- package/dist/components/Sidebar/components/ModuleSwitchButton/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/ModuleSwitchButton/index.js +36 -18
- package/dist/components/Sidebar/components/SectionLabel/index.js +4 -4
- package/dist/components/Sidebar/components/SubMenuWrapper/index.d.ts +3 -1
- package/dist/components/Sidebar/components/SubMenuWrapper/index.d.ts.map +1 -1
- package/dist/components/Sidebar/components/SubMenuWrapper/index.js +132 -43
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Sidebar/hooks/useActiveDetection.d.ts +1 -1
- package/dist/components/Sidebar/hooks/useActiveDetection.d.ts.map +1 -1
- package/dist/components/Sidebar/hooks/useActiveDetection.js +4 -1
- package/dist/components/Sidebar/hooks/useMenuState.d.ts +5 -1
- package/dist/components/Sidebar/hooks/useMenuState.d.ts.map +1 -1
- package/dist/components/Sidebar/hooks/useMenuState.js +118 -43
- package/dist/components/Sidebar/hooks/useModuleSwitch.d.ts.map +1 -1
- package/dist/components/Sidebar/hooks/useOverlayScrollbar.d.ts +7 -0
- package/dist/components/Sidebar/hooks/useOverlayScrollbar.d.ts.map +1 -0
- package/dist/components/Sidebar/hooks/useOverlayScrollbar.js +98 -0
- package/dist/components/Sidebar/index.d.ts +3 -3
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/Sidebar/types/gpt.types.d.ts +38 -0
- package/dist/components/Sidebar/types/gpt.types.d.ts.map +1 -1
- package/dist/components/Sidebar/types/index.d.ts +1 -1
- package/dist/components/Sidebar/types/index.d.ts.map +1 -1
- package/dist/components/Sidebar/types/sidebar.types.d.ts +11 -1
- package/dist/components/Sidebar/types/sidebar.types.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +7 -5
- package/dist/components/SingleSelectDropdown/index.js +14 -12
- package/dist/components/Stepper/_helper/StepIcon.js +1 -1
- package/dist/components/Stepper/_helper/StepText.js +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/Switch/index.js +6 -6
- package/dist/components/Tab/index.js +38 -38
- package/dist/components/Table/_helpers/ColumnManager/index.js +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.js +31 -1528
- package/dist/components/Table/_helpers/TableFilterModal/index.js +1 -1
- package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableRows.js +395 -201
- package/dist/components/Table/_hooks/useFilterColumnState.d.ts.map +1 -1
- package/dist/components/Table/_hooks/useFilterColumnState.js +26 -11
- package/dist/components/Table/_types/table.types.d.ts +6 -0
- package/dist/components/Table/_types/table.types.d.ts.map +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tag/index.js +20 -20
- package/dist/components/TextArea/index.js +31 -31
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/components/TextField/index.js +165 -7351
- package/dist/components/Toast/_helper/ToastContent.js +36 -36
- package/dist/components/Toast/_helper/ToastProvider.js +1 -1
- package/dist/components/Toast/_hooks/useToast.js +1 -1
- package/dist/components/Toggle/index.js +18 -18
- package/dist/components/Tooltip/_helpers/calculatePosition.d.ts +7 -0
- package/dist/components/Tooltip/_helpers/calculatePosition.d.ts.map +1 -0
- package/dist/components/Tooltip/_helpers/calculatePosition.js +27 -0
- package/dist/components/Tooltip/_helpers/index.d.ts +4 -0
- package/dist/components/Tooltip/_helpers/index.d.ts.map +1 -0
- package/dist/components/Tooltip/_helpers/index.js +6 -0
- package/dist/components/Tooltip/_helpers/mergeRef.d.ts +3 -0
- package/dist/components/Tooltip/_helpers/mergeRef.d.ts.map +1 -0
- package/dist/components/Tooltip/_helpers/mergeRef.js +6 -0
- package/dist/components/Tooltip/_types/tooltip.types.d.ts +1 -2
- package/dist/components/Tooltip/_types/tooltip.types.d.ts.map +1 -1
- package/dist/components/Tooltip/index.d.ts +5 -1
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +59 -2041
- package/dist/components/Typography/index.js +23 -23
- package/dist/down-arrow-Con-s3fU.js +5 -0
- package/dist/index-BAG5O9tQ.js +97 -0
- package/dist/{index-BR6M9zUI.js → index-Cc3gWc2P.js} +166 -154
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +87 -83
- package/dist/styles.module-BhZ_Dm1P.js +16 -0
- package/dist/styles.module-Bxs1UJxF.js +15 -0
- package/dist/styles.module-CRMuLY4A.js +13 -0
- package/dist/styles.module-DBuEcddZ.js +29 -0
- package/dist/styles.module-DKDRix10.js +39 -0
- package/dist/styles.module-DjiC2kYs.js +20 -0
- package/dist/styles.module-Xxs9bBCg.js +56 -0
- package/dist/styles.module-aSzD4I4G.js +19 -0
- package/dist/theme/Theme.js +1 -1
- package/dist/theme/theme.css +1 -1
- package/package.json +1 -1
- package/dist/DropdownFooter-DIxlKK1Y.js +0 -96
- package/dist/Grow-gzixxVwK.js +0 -789
- package/dist/IconSlot-DvUwY6Do.js +0 -33
- package/dist/ScrollDropdown-B6iVjMy_.js +0 -80
- package/dist/assets/DateRangePicker-BJW-EAys.css +0 -1
- package/dist/assets/DropdownFooter-CRxQRvLY.css +0 -1
- package/dist/assets/IconSlot-BWv5PQN_.css +0 -1
- package/dist/assets/ScrollDropdown-zzvVGbzo.css +0 -1
- package/dist/assets/Sidebar-D5jVJ-ln.css +0 -1
- package/dist/assets/ToastContent-DpF5zCks.css +0 -1
- package/dist/assets/index-0R9p-l95.css +0 -1
- package/dist/assets/index-31u7i502.css +0 -1
- package/dist/assets/index-B5N2Zvs1.css +0 -1
- package/dist/assets/index-B6Mg98vm.css +0 -1
- package/dist/assets/index-B8lwBNV9.css +0 -1
- package/dist/assets/index-BD0OawaZ.css +0 -1
- package/dist/assets/index-BD0iilmm.css +0 -1
- package/dist/assets/index-BLz-9Nuk.css +0 -1
- package/dist/assets/index-BOXxnraF.css +0 -1
- package/dist/assets/index-BZgvXFWW.css +0 -1
- package/dist/assets/index-BkNXS5fR.css +0 -1
- package/dist/assets/index-Bo4Tx8px.css +0 -1
- package/dist/assets/index-BoQKDmZt.css +0 -1
- package/dist/assets/index-C3K5UCMn.css +0 -1
- package/dist/assets/index-C4-S_v9y.css +0 -1
- package/dist/assets/index-C6j9Ze5V.css +0 -1
- package/dist/assets/index-CSofT_ix.css +0 -1
- package/dist/assets/index-C_Tn9jS-.css +0 -1
- package/dist/assets/index-D2HelNRV.css +0 -1
- package/dist/assets/index-DDdi2wxl.css +0 -1
- package/dist/assets/index-DRigR6XT.css +0 -1
- package/dist/assets/index-Dpv0OAoW.css +0 -1
- package/dist/assets/index-DrxnMAdp.css +0 -1
- package/dist/assets/index-EOsQwhza.css +0 -1
- package/dist/assets/index-UphWJR2V.css +0 -1
- package/dist/assets/index-_Kh8p9R0.css +0 -1
- package/dist/assets/index-t78owPAF.css +0 -1
- package/dist/assets/index-tIl-UucG.css +0 -1
- package/dist/assets/index-xlbz19JS.css +0 -1
- package/dist/assets/main-3OqLSdPm.css +0 -1
- package/dist/assets/styles-BCYQ4rbx.css +0 -1
- package/dist/assets/styles-BS1nwHmS.css +0 -1
- package/dist/assets/styles-Be-tqCP9.css +0 -1
- package/dist/assets/styles-C5uYY4fL.css +0 -1
- package/dist/assets/styles-C9rG0Alp.css +0 -1
- package/dist/assets/styles-CZCmGNUn.css +0 -1
- package/dist/assets/styles-CwEfypOd.css +0 -1
- package/dist/assets/styles-DAFhOzfn.css +0 -1
- package/dist/assets/theme-CDdq9khQ.css +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/createSimplePaletteValueFilter-BqxST_wX.js +0 -24
- package/dist/index-DKHB_5Ee.js +0 -52
- package/dist/isFocusVisible-BzX3wEi7.js +0 -12
- package/dist/styles.module-B5fY7mP8.js +0 -20
- package/dist/styles.module-BXby6f8d.js +0 -16
- package/dist/styles.module-DGDgpLAB.js +0 -29
- package/dist/styles.module-DSbSTQeV.js +0 -56
- package/dist/styles.module-V3iL6ubH.js +0 -11
- package/dist/styles.module-ZyeVE7KZ.js +0 -39
- package/dist/styles.module-r_cdKgD9.js +0 -19
- package/dist/styles.module-yNDMDNO-.js +0 -14
- package/dist/useSlot-BAOpgsKZ.js +0 -4687
|
@@ -1,34 +1,137 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"gpt-header": "_gpt-header_mfd85_28",
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"gpt-
|
|
11
|
-
"gpt-
|
|
12
|
-
"gpt-
|
|
13
|
-
"gpt-
|
|
1
|
+
import { jsx as r, jsxs as l, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip as u } from "../../../Tooltip/index.js";
|
|
3
|
+
import { IconButton as p } from "../../../IconButton/index.js";
|
|
4
|
+
import { CKTag as _ } from "../../../CKTag/index.js";
|
|
5
|
+
import * as e from "react";
|
|
6
|
+
import '../../../../assets/index-CCTeose3.css';const E = (C) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ e.createElement("path", { d: "M12.3129 1.34996C12.3174 1.32768 12.3493 1.32768 12.3538 1.34996C12.5902 2.5062 13.4937 3.40979 14.6499 3.64612C14.6723 3.65067 14.6723 3.6825 14.6499 3.68705C13.4937 3.92338 12.5902 4.82697 12.3538 5.98321C12.3493 6.00548 12.3174 6.00548 12.3129 5.98321C12.0765 4.82697 11.173 3.92338 10.0168 3.68705C9.99442 3.6825 9.99442 3.65067 10.0168 3.64612C11.173 3.40979 12.0765 2.5062 12.3129 1.34996Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M7.99375 7.33325H7.99975M5.33008 7.33325H5.33606", stroke: "currentColor", strokeWidth: 1.33333, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M8.66683 2.00316C8.44663 2.00107 8.2243 2 8.00016 2C7.0141 2 6.06361 2.0206 5.17096 2.05879C3.54396 2.1284 2.73046 2.16321 2.08688 2.81163C1.44329 3.46006 1.41538 4.25122 1.35956 5.83353C1.34247 6.31786 1.3335 6.81947 1.3335 7.33333C1.3335 7.8472 1.34247 8.3488 1.35956 8.83313C1.41538 10.4155 1.44329 11.2066 2.08688 11.855C2.73046 12.5035 3.54396 12.5383 5.17096 12.6079C5.22493 12.6102 5.27911 12.6124 5.3335 12.6146V14.1801C5.3335 14.4488 5.55136 14.6667 5.8201 14.6667C5.93629 14.6667 6.04865 14.6251 6.13685 14.5495L7.58983 13.3035C7.95516 12.9903 8.13776 12.8337 8.35483 12.7511C8.5719 12.6684 8.81896 12.6637 9.31303 12.6543C9.83336 12.6445 10.34 12.6288 10.8293 12.6079C12.4564 12.5383 13.2699 12.5035 13.9134 11.8551C14.557 11.2066 14.585 10.4155 14.6408 8.83313C14.6578 8.3488 14.6668 7.8472 14.6668 7.33333C14.6668 6.9942 14.6629 6.66037 14.6554 6.33333", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })), x = (C) => /* @__PURE__ */ e.createElement("svg", { width: 206, height: 21, viewBox: "0 0 206 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ e.createElement("g", { filter: "url(#filter0_i_4937_5181)" }, /* @__PURE__ */ e.createElement("rect", { width: 20.2255, height: 20.2255, rx: 10.1128, fill: "#F0F9FF" }), /* @__PURE__ */ e.createElement("rect", { x: 0.126409, y: 0.126409, width: 19.9727, height: 19.9727, rx: 9.98635, stroke: "white", strokeWidth: 0.252819 }), /* @__PURE__ */ e.createElement("rect", { x: 0.126409, y: 0.126409, width: 19.9727, height: 19.9727, rx: 9.98635, stroke: "url(#paint0_linear_4937_5181)", strokeWidth: 0.252819 }), /* @__PURE__ */ e.createElement("g", { clipPath: "url(#clip0_4937_5181)" }, /* @__PURE__ */ e.createElement("path", { d: "M10.1562 5.77625C10.2854 5.77625 10.4093 5.82753 10.5007 5.91883C10.5921 6.01012 10.6435 6.13397 10.6436 6.26316V7.07431H10.8074C11.0418 7.0741 11.274 7.12015 11.4906 7.20983C11.7072 7.29951 11.904 7.43106 12.0697 7.59693C12.2354 7.76281 12.3667 7.95974 12.4561 8.17646C12.5455 8.39317 12.5913 8.62541 12.5907 8.85984C12.5907 8.98898 12.5395 9.11283 12.4481 9.20414C12.3568 9.29546 12.233 9.34675 12.1038 9.34675C11.9747 9.34675 11.8509 9.29546 11.7595 9.20414C11.6682 9.11283 11.6169 8.98898 11.6169 8.85984C11.6169 8.40908 11.2554 8.04814 10.8074 8.04814H9.34175C8.98519 8.04814 8.69545 8.33842 8.69545 8.69224C8.69545 8.95788 8.75515 9.06578 8.79732 9.11781C8.84662 9.17806 8.93699 9.2394 9.13416 9.30622L11.4893 10.0867C11.7522 10.176 12.0469 10.3113 12.2671 10.5802C12.4949 10.8573 12.5902 11.209 12.5902 11.6236C12.5898 12.0527 12.419 12.4642 12.1155 12.7675C11.8119 13.0709 11.4003 13.2414 10.9712 13.2415H10.6431V14.0527C10.6431 14.1818 10.5918 14.3056 10.5005 14.397C10.4092 14.4883 10.2853 14.5396 10.1562 14.5396C10.0271 14.5396 9.9032 14.4883 9.81189 14.397C9.72057 14.3056 9.66927 14.1818 9.66927 14.0527V13.2415H9.50496C9.27057 13.2417 9.03846 13.1955 8.82191 13.1058C8.60537 13.0161 8.40866 12.8846 8.24305 12.7187C8.07744 12.5528 7.94618 12.3559 7.8568 12.1392C7.76742 11.9226 7.72167 11.6904 7.72217 11.456C7.72217 11.3268 7.77347 11.203 7.86479 11.1117C7.9561 11.0204 8.07995 10.9691 8.20908 10.9691C8.33822 10.9691 8.46207 11.0204 8.55338 11.1117C8.6447 11.203 8.696 11.3268 8.696 11.456C8.696 11.9067 9.05694 12.2677 9.50551 12.2677H10.9712C11.3272 12.2677 11.6169 11.9774 11.6169 11.6236C11.6169 11.3579 11.5578 11.25 11.5151 11.198C11.4658 11.1378 11.3754 11.0764 11.1782 11.0096L8.82361 10.2291C8.56071 10.1398 8.2655 10.0046 8.04532 9.73563C7.81747 9.45849 7.72217 9.10686 7.72217 8.69224C7.72261 8.26299 7.89343 7.85147 8.19711 7.54809C8.5008 7.24472 8.91249 7.07431 9.34175 7.07431H9.66927V6.26371C9.66942 6.13452 9.72084 6.01067 9.81224 5.91937C9.90364 5.82807 10.0275 5.77679 10.1567 5.77679", fill: "#3A72E4" }))), /* @__PURE__ */ e.createElement("g", { filter: "url(#filter1_i_4937_5181)" }, /* @__PURE__ */ e.createElement("rect", { x: 14.1045, width: 20.2255, height: 20.2255, rx: 10.1128, fill: "#F0F9FF" }), /* @__PURE__ */ e.createElement("rect", { x: 14.2309, y: 0.126409, width: 19.9727, height: 19.9727, rx: 9.98635, stroke: "white", strokeWidth: 0.252819 }), /* @__PURE__ */ e.createElement("rect", { x: 14.2309, y: 0.126409, width: 19.9727, height: 19.9727, rx: 9.98635, stroke: "url(#paint1_linear_4937_5181)", strokeWidth: 0.252819 }), /* @__PURE__ */ e.createElement("path", { d: "M20.4253 10.1138C20.4253 10.6118 20.5234 11.105 20.714 11.5651C20.9045 12.0252 21.1839 12.4432 21.536 12.7954C21.8882 13.1475 22.3062 13.4268 22.7663 13.6174C23.2264 13.808 23.7196 13.9061 24.2176 13.9061C24.7156 13.9061 25.2087 13.808 25.6688 13.6174C26.1289 13.4268 26.547 13.1475 26.8991 12.7954C27.2513 12.4432 27.5306 12.0252 27.7212 11.5651C27.9118 11.105 28.0099 10.6118 28.0099 10.1138C28.0099 9.10804 27.6103 8.14346 26.8991 7.43227C26.1879 6.72108 25.2234 6.32153 24.2176 6.32153C23.2118 6.32153 22.2472 6.72108 21.536 7.43227C20.8248 8.14346 20.4253 9.10804 20.4253 10.1138Z", stroke: "#3A72E4", strokeWidth: 0.84273, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M24.2178 8.00598V10.1128L25.4819 11.3769", stroke: "#3A72E4", strokeWidth: 0.84273, strokeLinecap: "round", strokeLinejoin: "round" })), /* @__PURE__ */ e.createElement("g", { filter: "url(#filter2_i_4937_5181)" }, /* @__PURE__ */ e.createElement("path", { d: "M28.2095 10.1128C28.2095 4.52764 32.7371 0 38.3222 0C43.9073 0 48.435 4.52764 48.435 10.1128C48.435 15.6979 43.9073 20.2255 38.3222 20.2255C32.7371 20.2255 28.2095 15.6979 28.2095 10.1128Z", fill: "#F0F9FF" }), /* @__PURE__ */ e.createElement("path", { d: "M38.3218 0.125977C43.8369 0.125977 48.3079 4.59721 48.3081 10.1123C48.3081 15.6276 43.8371 20.0986 38.3218 20.0986C32.8067 20.0984 28.3354 15.6275 28.3354 10.1123C28.3357 4.59736 32.8068 0.12622 38.3218 0.125977Z", stroke: "white", strokeWidth: 0.252819 }), /* @__PURE__ */ e.createElement("path", { d: "M38.3218 0.125977C43.8369 0.125977 48.3079 4.59721 48.3081 10.1123C48.3081 15.6276 43.8371 20.0986 38.3218 20.0986C32.8067 20.0984 28.3354 15.6275 28.3354 10.1123C28.3357 4.59736 32.8068 0.12622 38.3218 0.125977Z", stroke: "url(#paint2_linear_4937_5181)", strokeWidth: 0.252819 }), /* @__PURE__ */ e.createElement("path", { d: "M34.5303 12.2194L37.0585 9.69126L38.7439 11.3767L42.1148 8.0058", stroke: "#3A72E4", strokeWidth: 0.84273, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M40.4287 8.00586H42.1142V9.69132", stroke: "#3A72E4", strokeWidth: 0.84273, strokeLinecap: "round", strokeLinejoin: "round" })), /* @__PURE__ */ e.createElement("path", { d: "M58.0858 14.1127H56.6796L59.24 6.84H60.8664L63.4303 14.1127H62.0241L60.0816 8.33148H60.0248L58.0858 14.1127ZM58.132 11.2612H61.9672V12.3194H58.132V11.2612ZM65.7057 6.84V14.1127H64.3882V6.84H65.7057ZM69.6128 14.1127V6.84H72.3401C72.8988 6.84 73.3676 6.94417 73.7464 7.1525C74.1275 7.36084 74.4152 7.6473 74.6093 8.01188C74.8058 8.3741 74.904 8.78603 74.904 9.24768C74.904 9.71406 74.8058 10.1284 74.6093 10.4906C74.4128 10.8528 74.1228 11.1381 73.7393 11.3464C73.3557 11.5524 72.8834 11.6553 72.3224 11.6553H70.5148V10.5722H72.1448C72.4715 10.5722 72.739 10.5154 72.9474 10.4018C73.1557 10.2882 73.3096 10.1319 73.409 9.93304C73.5108 9.73418 73.5617 9.50572 73.5617 9.24768C73.5617 8.98963 73.5108 8.76235 73.409 8.56586C73.3096 8.36936 73.1545 8.21666 72.9438 8.10776C72.7355 7.99649 72.4668 7.94086 72.1377 7.94086H70.9303V14.1127H69.6128ZM78.2927 14.2193C77.76 14.2193 77.2984 14.1021 76.9078 13.8677C76.5171 13.6333 76.2141 13.3054 75.9987 12.884C75.7856 12.4626 75.6791 11.9702 75.6791 11.4068C75.6791 10.8433 75.7856 10.3497 75.9987 9.92594C76.2141 9.50217 76.5171 9.1731 76.9078 8.93873C77.2984 8.70435 77.76 8.58716 78.2927 8.58716C78.8254 8.58716 79.287 8.70435 79.6776 8.93873C80.0683 9.1731 80.3701 9.50217 80.5832 9.92594C80.7986 10.3497 80.9063 10.8433 80.9063 11.4068C80.9063 11.9702 80.7986 12.4626 80.5832 12.884C80.3701 13.3054 80.0683 13.6333 79.6776 13.8677C79.287 14.1021 78.8254 14.2193 78.2927 14.2193ZM78.2998 13.1894C78.5886 13.1894 78.8301 13.1101 79.0242 12.9515C79.2184 12.7905 79.3628 12.5751 79.4575 12.3052C79.5545 12.0353 79.6031 11.7347 79.6031 11.4032C79.6031 11.0694 79.5545 10.7676 79.4575 10.4977C79.3628 10.2254 79.2184 10.0088 79.0242 9.84782C78.8301 9.68683 78.5886 9.60634 78.2998 9.60634C78.0039 9.60634 77.7577 9.68683 77.5612 9.84782C77.367 10.0088 77.2214 10.2254 77.1244 10.4977C77.0297 10.7676 76.9823 11.0694 76.9823 11.4032C76.9823 11.7347 77.0297 12.0353 77.1244 12.3052C77.2214 12.5751 77.367 12.7905 77.5612 12.9515C77.7577 13.1101 78.0039 13.1894 78.2998 13.1894ZM82.9669 14.1127L81.4257 8.65819H82.7361L83.6949 12.4934H83.7446L84.7247 8.65819H86.0209L87.001 12.4721H87.0542L87.9988 8.65819H89.3128L87.768 14.1127H86.4292L85.4065 10.4267H85.3319L84.3092 14.1127H82.9669ZM92.4688 14.2193C91.922 14.2193 91.4497 14.1056 91.0519 13.8784C90.6566 13.6487 90.3524 13.3244 90.1393 12.9053C89.9262 12.4839 89.8197 11.988 89.8197 11.4174C89.8197 10.8563 89.9262 10.3639 90.1393 9.94015C90.3547 9.51401 90.6554 9.18257 91.0413 8.94583C91.4272 8.70672 91.8805 8.58716 92.4014 8.58716C92.7375 8.58716 93.0548 8.64161 93.3531 8.75052C93.6537 8.85705 93.9189 9.02277 94.1485 9.24768C94.3805 9.47258 94.5628 9.75904 94.6954 10.1071C94.828 10.4527 94.8943 10.8646 94.8943 11.3428V11.737H90.4234V10.8705H93.662C93.6597 10.6243 93.6064 10.4053 93.5022 10.2136C93.3981 10.0195 93.2525 9.86676 93.0654 9.75549C92.8808 9.64422 92.6653 9.58858 92.4191 9.58858C92.1563 9.58858 91.9255 9.6525 91.7267 9.78035C91.5278 9.90582 91.3727 10.0715 91.2615 10.2775C91.1526 10.4811 91.0969 10.7048 91.0945 10.9487V11.7051C91.0945 12.0223 91.1526 12.2946 91.2686 12.5218C91.3846 12.7467 91.5467 12.9196 91.7551 13.0403C91.9634 13.1587 92.2072 13.2178 92.4866 13.2178C92.6736 13.2178 92.8429 13.1918 92.9944 13.1397C93.1459 13.0853 93.2773 13.006 93.3886 12.9018C93.4999 12.7976 93.5839 12.6686 93.6407 12.5147L94.841 12.6497C94.7652 12.9669 94.6208 13.2439 94.4078 13.4806C94.1971 13.715 93.9272 13.8973 93.5981 14.0275C93.269 14.1553 92.8926 14.2193 92.4688 14.2193ZM95.9818 14.1127V8.65819H97.2282V9.56728H97.2851C97.3845 9.25241 97.555 9.00975 97.7964 8.83929C98.0403 8.66647 98.3184 8.58006 98.6309 8.58006C98.702 8.58006 98.7813 8.58361 98.8689 8.59071C98.9588 8.59545 99.0334 8.60374 99.0926 8.61557V9.7981C99.0381 9.77916 98.9517 9.76259 98.8334 9.74839C98.7174 9.73181 98.6049 9.72353 98.496 9.72353C98.2616 9.72353 98.0509 9.77443 97.8639 9.87623C97.6792 9.97566 97.5336 10.1142 97.4271 10.2917C97.3206 10.4693 97.2673 10.674 97.2673 10.9061V14.1127H95.9818ZM102.137 14.2193C101.59 14.2193 101.118 14.1056 100.72 13.8784C100.325 13.6487 100.02 13.3244 99.8073 12.9053C99.5942 12.4839 99.4877 11.988 99.4877 11.4174C99.4877 10.8563 99.5942 10.3639 99.8073 9.94015C100.023 9.51401 100.323 9.18257 100.709 8.94583C101.095 8.70672 101.549 8.58716 102.069 8.58716C102.406 8.58716 102.723 8.64161 103.021 8.75052C103.322 8.85705 103.587 9.02277 103.816 9.24768C104.049 9.47258 104.231 9.75904 104.363 10.1071C104.496 10.4527 104.562 10.8646 104.562 11.3428V11.737H100.091V10.8705H103.33C103.328 10.6243 103.274 10.4053 103.17 10.2136C103.066 10.0195 102.92 9.86676 102.733 9.75549C102.549 9.64422 102.333 9.58858 102.087 9.58858C101.824 9.58858 101.593 9.6525 101.395 9.78035C101.196 9.90582 101.041 10.0715 100.929 10.2775C100.821 10.4811 100.765 10.7048 100.763 10.9487V11.7051C100.763 12.0223 100.821 12.2946 100.937 12.5218C101.053 12.7467 101.215 12.9196 101.423 13.0403C101.631 13.1587 101.875 13.2178 102.155 13.2178C102.342 13.2178 102.511 13.1918 102.662 13.1397C102.814 13.0853 102.945 13.006 103.057 12.9018C103.168 12.7976 103.252 12.6686 103.309 12.5147L104.509 12.6497C104.433 12.9669 104.289 13.2439 104.076 13.4806C103.865 13.715 103.595 13.8973 103.266 14.0275C102.937 14.1553 102.561 14.2193 102.137 14.2193ZM107.674 14.2086C107.245 14.2086 106.862 14.0985 106.523 13.8784C106.185 13.6582 105.917 13.3386 105.721 12.9196C105.524 12.5005 105.426 11.9915 105.426 11.3926C105.426 10.7865 105.525 10.2751 105.724 9.85847C105.926 9.43944 106.197 9.12339 106.538 8.91032C106.878 8.69488 107.258 8.58716 107.677 8.58716C107.997 8.58716 108.26 8.64161 108.466 8.75052C108.672 8.85705 108.835 8.98607 108.956 9.13759C109.077 9.28674 109.17 9.4276 109.236 9.56018H109.29V6.84H110.579V14.1127H109.315V13.2534H109.236C109.17 13.3859 109.074 13.5268 108.949 13.6759C108.823 13.8227 108.658 13.9482 108.452 14.0524C108.246 14.1565 107.986 14.2086 107.674 14.2086ZM108.033 13.1539C108.305 13.1539 108.537 13.0805 108.729 12.9338C108.92 12.7846 109.066 12.5775 109.165 12.3123C109.265 12.0472 109.315 11.7382 109.315 11.3855C109.315 11.0327 109.265 10.7261 109.165 10.4657C109.068 10.2053 108.924 10.0029 108.732 9.85847C108.543 9.71406 108.31 9.64185 108.033 9.64185C107.746 9.64185 107.507 9.71642 107.315 9.86557C107.123 10.0147 106.979 10.2207 106.882 10.4835C106.785 10.7463 106.736 11.0469 106.736 11.3855C106.736 11.7264 106.785 12.0306 106.882 12.2981C106.981 12.5633 107.127 12.7728 107.319 12.9267C107.513 13.0782 107.751 13.1539 108.033 13.1539ZM115.803 6.84V14.1127H114.486V6.84H115.803ZM118.459 10.9167V14.1127H117.173V8.65819H118.402V9.58503H118.466C118.591 9.27964 118.791 9.03697 119.066 8.85705C119.343 8.67713 119.685 8.58716 120.092 8.58716C120.469 8.58716 120.797 8.66766 121.076 8.82864C121.358 8.98963 121.575 9.22282 121.729 9.52821C121.886 9.83361 121.963 10.2041 121.96 10.6397V14.1127H120.675V10.8386C120.675 10.474 120.58 10.1887 120.391 9.98276C120.204 9.77679 119.944 9.67381 119.613 9.67381C119.388 9.67381 119.188 9.72353 119.013 9.82296C118.84 9.92002 118.704 10.0609 118.604 10.2455C118.507 10.4302 118.459 10.6539 118.459 10.9167ZM127.578 10.0999L126.406 10.2278C126.373 10.1094 126.315 9.99815 126.232 9.89398C126.152 9.78982 126.043 9.70577 125.905 9.64185C125.768 9.57793 125.6 9.54597 125.401 9.54597C125.134 9.54597 124.909 9.60397 124.726 9.71998C124.547 9.83598 124.458 9.98631 124.46 10.171C124.458 10.3296 124.516 10.4586 124.634 10.558C124.755 10.6575 124.954 10.7392 125.231 10.8031L126.161 11.0019C126.677 11.1132 127.061 11.2896 127.312 11.5311C127.565 11.7725 127.693 12.0886 127.695 12.4792C127.693 12.8225 127.592 13.1255 127.393 13.3883C127.197 13.6487 126.923 13.8523 126.573 13.9991C126.223 14.1459 125.82 14.2193 125.366 14.2193C124.698 14.2193 124.161 14.0796 123.753 13.8002C123.346 13.5185 123.104 13.1267 123.025 12.6248L124.279 12.5041C124.336 12.7503 124.457 12.9361 124.641 13.0616C124.826 13.1871 125.066 13.2498 125.362 13.2498C125.668 13.2498 125.913 13.1871 126.097 13.0616C126.284 12.9361 126.378 12.7811 126.378 12.5964C126.378 12.4401 126.317 12.3111 126.197 12.2093C126.078 12.1075 125.894 12.0294 125.643 11.9749L124.712 11.7796C124.189 11.6707 123.802 11.4873 123.551 11.2292C123.3 10.9688 123.176 10.6397 123.178 10.242C123.176 9.90582 123.267 9.61463 123.452 9.36841C123.639 9.11983 123.898 8.92807 124.229 8.79313C124.563 8.65582 124.948 8.58716 125.383 8.58716C126.023 8.58716 126.526 8.72329 126.893 8.99554C127.262 9.2678 127.49 9.63593 127.578 10.0999ZM128.755 14.1127V8.65819H130.041V14.1127H128.755ZM129.402 7.88404C129.198 7.88404 129.023 7.81657 128.876 7.68162C128.729 7.54431 128.656 7.37978 128.656 7.18802C128.656 6.99389 128.729 6.82935 128.876 6.69441C129.023 6.5571 129.198 6.48844 129.402 6.48844C129.608 6.48844 129.783 6.5571 129.927 6.69441C130.074 6.82935 130.147 6.99389 130.147 7.18802C130.147 7.37978 130.074 7.54431 129.927 7.68162C129.783 7.81657 129.608 7.88404 129.402 7.88404ZM133.735 16.2718C133.273 16.2718 132.877 16.2091 132.545 16.0836C132.214 15.9605 131.947 15.7948 131.746 15.5865C131.545 15.3781 131.405 15.1473 131.327 14.894L132.485 14.6134C132.537 14.72 132.613 14.8253 132.712 14.9295C132.812 15.036 132.945 15.1236 133.113 15.1923C133.284 15.2633 133.498 15.2988 133.756 15.2988C134.121 15.2988 134.423 15.21 134.662 15.0325C134.901 14.8573 135.02 14.5685 135.02 14.166V13.1326H134.956C134.89 13.2652 134.793 13.4013 134.665 13.541C134.54 13.6807 134.373 13.7979 134.165 13.8926C133.959 13.9873 133.699 14.0346 133.387 14.0346C132.968 14.0346 132.588 13.9364 132.247 13.7399C131.908 13.541 131.638 13.2451 131.437 12.8521C131.238 12.4567 131.139 11.9619 131.139 11.3677C131.139 10.7687 131.238 10.2633 131.437 9.85137C131.638 9.43707 131.91 9.12339 132.25 8.91032C132.591 8.69488 132.971 8.58716 133.39 8.58716C133.71 8.58716 133.973 8.64161 134.179 8.75052C134.387 8.85705 134.553 8.98607 134.676 9.13759C134.799 9.28674 134.892 9.4276 134.956 9.56018H135.027V8.65819H136.295V14.2015C136.295 14.6679 136.184 15.0538 135.961 15.3592C135.739 15.6646 135.435 15.893 135.049 16.0446C134.663 16.1961 134.225 16.2718 133.735 16.2718ZM133.745 13.0261C134.018 13.0261 134.25 12.9598 134.441 12.8272C134.633 12.6946 134.779 12.5041 134.878 12.2555C134.978 12.0069 135.027 11.7086 135.027 11.3606C135.027 11.0173 134.978 10.7167 134.878 10.4586C134.781 10.2006 134.637 10.0005 134.445 9.85847C134.256 9.71406 134.022 9.64185 133.745 9.64185C133.459 9.64185 133.22 9.71642 133.028 9.86557C132.836 10.0147 132.692 10.2195 132.595 10.4799C132.498 10.738 132.449 11.0315 132.449 11.3606C132.449 11.6944 132.498 11.9868 132.595 12.2377C132.694 12.4863 132.84 12.6804 133.032 12.8201C133.226 12.9574 133.464 13.0261 133.745 13.0261ZM138.898 10.9167V14.1127H137.613V6.84H138.87V9.58503H138.934C139.062 9.27727 139.259 9.03461 139.527 8.85705C139.797 8.67713 140.14 8.58716 140.557 8.58716C140.935 8.58716 141.266 8.66647 141.547 8.82509C141.829 8.98371 142.047 9.21571 142.201 9.52111C142.357 9.82651 142.435 10.1994 142.435 10.6397V14.1127H141.15V10.8386C141.15 10.4716 141.055 10.1864 140.866 9.98276C140.678 9.77679 140.416 9.67381 140.077 9.67381C139.85 9.67381 139.646 9.72353 139.466 9.82296C139.289 9.92002 139.149 10.0609 139.047 10.2455C138.948 10.4302 138.898 10.6539 138.898 10.9167ZM146.469 8.65819V9.6525H143.334V8.65819H146.469ZM144.108 7.35137H145.393V12.4721C145.393 12.6449 145.419 12.7775 145.471 12.8698C145.526 12.9598 145.597 13.0213 145.684 13.0545C145.772 13.0876 145.869 13.1042 145.976 13.1042C146.056 13.1042 146.129 13.0983 146.196 13.0865C146.264 13.0746 146.316 13.064 146.352 13.0545L146.569 14.0595C146.5 14.0831 146.402 14.1092 146.274 14.1376C146.148 14.166 145.995 14.1826 145.812 14.1873C145.49 14.1968 145.2 14.1482 144.942 14.0417C144.684 13.9328 144.479 13.7647 144.328 13.5374C144.179 13.3102 144.105 13.0261 144.108 12.6852V7.35137ZM151.777 10.0999L150.605 10.2278C150.572 10.1094 150.514 9.99815 150.431 9.89398C150.351 9.78982 150.242 9.70577 150.105 9.64185C149.967 9.57793 149.799 9.54597 149.6 9.54597C149.333 9.54597 149.108 9.60397 148.926 9.71998C148.746 9.83598 148.657 9.98631 148.659 10.171C148.657 10.3296 148.715 10.4586 148.833 10.558C148.954 10.6575 149.153 10.7392 149.43 10.8031L150.36 11.0019C150.876 11.1132 151.26 11.2896 151.511 11.5311C151.764 11.7725 151.892 12.0886 151.894 12.4792C151.892 12.8225 151.791 13.1255 151.593 13.3883C151.396 13.6487 151.123 13.8523 150.772 13.9991C150.422 14.1459 150.019 14.2193 149.565 14.2193C148.897 14.2193 148.36 14.0796 147.953 13.8002C147.545 13.5185 147.303 13.1267 147.225 12.6248L148.478 12.5041C148.535 12.7503 148.656 12.9361 148.84 13.0616C149.025 13.1871 149.265 13.2498 149.561 13.2498C149.867 13.2498 150.112 13.1871 150.296 13.0616C150.483 12.9361 150.577 12.7811 150.577 12.5964C150.577 12.4401 150.517 12.3111 150.396 12.2093C150.277 12.1075 150.093 12.0294 149.842 11.9749L148.911 11.7796C148.388 11.6707 148.001 11.4873 147.75 11.2292C147.499 10.9688 147.375 10.6397 147.377 10.242C147.375 9.90582 147.466 9.61463 147.651 9.36841C147.838 9.11983 148.097 8.92807 148.429 8.79313C148.762 8.65582 149.147 8.58716 149.583 8.58716C150.222 8.58716 150.725 8.72329 151.092 8.99554C151.461 9.2678 151.69 9.63593 151.777 10.0999Z", fill: "url(#paint3_linear_4937_5181)" }), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("filter", { id: "filter0_i_4937_5181", x: 0, y: 0, width: 20.2256, height: 24.2259, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ e.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ e.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "BackgroundImageFix", result: "shape" }), /* @__PURE__ */ e.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ e.createElement("feOffset", { dy: 4.00039 }), /* @__PURE__ */ e.createElement("feGaussianBlur", { stdDeviation: 2.0002 }), /* @__PURE__ */ e.createElement("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: -1, k3: 1 }), /* @__PURE__ */ e.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0" }), /* @__PURE__ */ e.createElement("feBlend", { mode: "normal", in2: "shape", result: "effect1_innerShadow_4937_5181" })), /* @__PURE__ */ e.createElement("filter", { id: "filter1_i_4937_5181", x: 14.1045, y: 0, width: 20.2256, height: 24.2259, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ e.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ e.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "BackgroundImageFix", result: "shape" }), /* @__PURE__ */ e.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ e.createElement("feOffset", { dy: 4.00039 }), /* @__PURE__ */ e.createElement("feGaussianBlur", { stdDeviation: 2.0002 }), /* @__PURE__ */ e.createElement("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: -1, k3: 1 }), /* @__PURE__ */ e.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0" }), /* @__PURE__ */ e.createElement("feBlend", { mode: "normal", in2: "shape", result: "effect1_innerShadow_4937_5181" })), /* @__PURE__ */ e.createElement("filter", { id: "filter2_i_4937_5181", x: 28.2095, y: 0, width: 20.2256, height: 24.2259, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ e.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ e.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "BackgroundImageFix", result: "shape" }), /* @__PURE__ */ e.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ e.createElement("feOffset", { dy: 4.00039 }), /* @__PURE__ */ e.createElement("feGaussianBlur", { stdDeviation: 2.0002 }), /* @__PURE__ */ e.createElement("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: -1, k3: 1 }), /* @__PURE__ */ e.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0" }), /* @__PURE__ */ e.createElement("feBlend", { mode: "normal", in2: "shape", result: "effect1_innerShadow_4937_5181" })), /* @__PURE__ */ e.createElement("linearGradient", { id: "paint0_linear_4937_5181", x1: 16, y1: 23.5, x2: 27.4597, y2: 17.0407, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ e.createElement("stop", { offset: 0.187318, stopColor: "#6EBAFD", stopOpacity: 0.68 }), /* @__PURE__ */ e.createElement("stop", { offset: 0.92915, stopColor: "white" }), /* @__PURE__ */ e.createElement("stop", { offset: 0.968926, stopColor: "#FBCEFC", stopOpacity: 0.06 })), /* @__PURE__ */ e.createElement("linearGradient", { id: "paint1_linear_4937_5181", x1: 20.1045, y1: 22.5, x2: 34.1322, y2: 22.488, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ e.createElement("stop", { offset: 0.187318, stopColor: "#6EBAFD", stopOpacity: 0.68 }), /* @__PURE__ */ e.createElement("stop", { offset: 0.92915, stopColor: "white" }), /* @__PURE__ */ e.createElement("stop", { offset: 0.968926, stopColor: "#FBCEFC", stopOpacity: 0.06 })), /* @__PURE__ */ e.createElement("linearGradient", { id: "paint2_linear_4937_5181", x1: 48.0002, y1: 22.5, x2: 58.2814, y2: 13.3112, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ e.createElement("stop", { offset: 0.187318, stopColor: "#3A72E4", stopOpacity: 0.63 }), /* @__PURE__ */ e.createElement("stop", { offset: 0.92915, stopColor: "white" }), /* @__PURE__ */ e.createElement("stop", { offset: 0.968926, stopColor: "#FBCEFC", stopOpacity: 0.06 })), /* @__PURE__ */ e.createElement("linearGradient", { id: "paint3_linear_4937_5181", x1: 56.4346, y1: -5.88727, x2: 137.304, y2: 71.7661, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ e.createElement("stop", { stopColor: "#0491F6" }), /* @__PURE__ */ e.createElement("stop", { offset: 0.776839, stopColor: "#F59DFF" })), /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_4937_5181" }, /* @__PURE__ */ e.createElement("rect", { width: 10.2038, height: 10.2038, fill: "white", transform: "translate(5.05615 5.05566)" })))), k = (C) => /* @__PURE__ */ e.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#clip0_8200_2113)" }, /* @__PURE__ */ e.createElement("mask", { id: "mask0_8200_2113", style: {
|
|
7
|
+
maskType: "luminance"
|
|
8
|
+
}, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 12, height: 12 }, /* @__PURE__ */ e.createElement("path", { d: "M12 0H0V12H12V0Z", fill: "white" })), /* @__PURE__ */ e.createElement("g", { mask: "url(#mask0_8200_2113)" }, /* @__PURE__ */ e.createElement("path", { d: "M3.78 1C3.78 2.555 5 3.78 6.56 3.78C5.005 3.78 3.78 5 3.78 6.56C3.78 5.005 2.56 3.78 1 3.78C2.555 3.78 3.78 2.56 3.78 1Z", stroke: "#AC6900", strokeWidth: 0.75, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M8.21994 5.44501C8.21994 7.00001 9.43994 8.22501 10.9999 8.22501C9.44494 8.22501 8.21994 9.44501 8.21994 11.005C8.21994 9.45001 6.99994 8.22501 5.43994 8.22501C6.99494 8.22501 8.21994 7.00501 8.21994 5.44501Z", stroke: "#AC6900", strokeWidth: 0.75, strokeLinecap: "round", strokeLinejoin: "round" }))), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_8200_2113" }, /* @__PURE__ */ e.createElement("rect", { width: 12, height: 12, fill: "white" })))), a = {
|
|
9
|
+
"chat-bot-btn": "_chat-bot-btn_4mheq_1",
|
|
10
|
+
"gpt-disabled": "_gpt-disabled_4mheq_7",
|
|
11
|
+
"gpt-container": "_gpt-container_4mheq_12",
|
|
12
|
+
"gpt-header": "_gpt-header_4mheq_24",
|
|
13
|
+
"gpt-expandable": "_gpt-expandable_4mheq_30",
|
|
14
|
+
"gpt-title": "_gpt-title_4mheq_34",
|
|
15
|
+
"gpt-banner": "_gpt-banner_4mheq_45",
|
|
16
|
+
"gpt-expanded-content": "_gpt-expanded-content_4mheq_56",
|
|
17
|
+
"gpt-always-visible": "_gpt-always-visible_4mheq_60",
|
|
18
|
+
"gpt-start-btn": "_gpt-start-btn_4mheq_95",
|
|
19
|
+
"chat-bot-btn-collapsed": "_chat-bot-btn-collapsed_4mheq_121"
|
|
20
|
+
}, H = {
|
|
21
|
+
tagText: "",
|
|
22
|
+
tagVariation: "WARNING",
|
|
23
|
+
title: "Lens GPT",
|
|
24
|
+
subtitle: "Ask. Analyze. Act. All in one chat.",
|
|
25
|
+
insightsLabel: "AI Powered Insights",
|
|
26
|
+
buttonText: "Start Chat",
|
|
27
|
+
collapsedTooltipText: "AI Chat",
|
|
28
|
+
toggleAriaLabel: "Toggle GPT card",
|
|
29
|
+
buttonAriaLabel: "Start AI Chat"
|
|
14
30
|
};
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
31
|
+
function y({
|
|
32
|
+
item: C,
|
|
33
|
+
collapsed: h,
|
|
34
|
+
currentPath: m,
|
|
35
|
+
onNavigate: o,
|
|
36
|
+
open: n,
|
|
37
|
+
onToggle: s,
|
|
38
|
+
renderGptCard: c,
|
|
39
|
+
gptCardConfig: f
|
|
40
|
+
}) {
|
|
41
|
+
const t = { ...H, ...f }, i = m.endsWith("ck-gpt"), d = () => {
|
|
42
|
+
C.url ? o(C.url) : C.journey?.length && o(`/dashboard/${C.journey[0]}`);
|
|
19
43
|
};
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
44
|
+
return h ? /* @__PURE__ */ r("div", { className: a["chat-bot-btn-collapsed"], children: /* @__PURE__ */ r(u, { title: t.collapsedTooltipText, placement: "right", arrow: !0, children: /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(
|
|
45
|
+
p,
|
|
46
|
+
{
|
|
47
|
+
variant: "secondary",
|
|
48
|
+
size: "large",
|
|
49
|
+
icon: t.collapsedIcon || /* @__PURE__ */ r(E, {}),
|
|
50
|
+
onClick: d,
|
|
51
|
+
disabled: i,
|
|
52
|
+
"aria-label": t.collapsedTooltipText
|
|
53
|
+
}
|
|
54
|
+
) }) }) }) : c ? /* @__PURE__ */ r(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
className: `${a["chat-bot-btn"]} ${i ? a["gpt-disabled"] : ""}`,
|
|
58
|
+
children: /* @__PURE__ */ r("div", { className: a["gpt-container"], children: c({
|
|
59
|
+
item: C,
|
|
60
|
+
onNavigate: o,
|
|
61
|
+
disabled: i,
|
|
62
|
+
open: n,
|
|
63
|
+
onToggle: s,
|
|
64
|
+
config: t
|
|
65
|
+
}) })
|
|
66
|
+
}
|
|
67
|
+
) : /* @__PURE__ */ r(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
className: `${a["chat-bot-btn"]} ${i ? a["gpt-disabled"] : ""}`,
|
|
71
|
+
children: /* @__PURE__ */ l(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
className: `${a["gpt-container"]} ${n ? a["gpt-container-active"] : ""}`,
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ l("div", { className: a["gpt-header"], children: [
|
|
77
|
+
t.tagText !== null && /* @__PURE__ */ r(
|
|
78
|
+
_,
|
|
79
|
+
{
|
|
80
|
+
variation: t.tagVariation,
|
|
81
|
+
size: "small",
|
|
82
|
+
fill: "soft",
|
|
83
|
+
shape: "rounded",
|
|
84
|
+
children: t.tagText ? t.tagText : /* @__PURE__ */ l(g, { children: [
|
|
85
|
+
/* @__PURE__ */ r(k, {}),
|
|
86
|
+
" New"
|
|
87
|
+
] })
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ r(
|
|
91
|
+
p,
|
|
92
|
+
{
|
|
93
|
+
variant: "secondary",
|
|
94
|
+
size: "small",
|
|
95
|
+
onClick: () => s(!n),
|
|
96
|
+
"aria-label": t.toggleAriaLabel,
|
|
97
|
+
icon: t.toggleIcon
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] }),
|
|
101
|
+
/* @__PURE__ */ r(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
className: a["gpt-expandable"],
|
|
105
|
+
style: {
|
|
106
|
+
maxHeight: n ? "300px" : "0",
|
|
107
|
+
opacity: n ? 1 : 0,
|
|
108
|
+
overflow: "hidden",
|
|
109
|
+
transition: "max-height 300ms ease, opacity 300ms ease"
|
|
110
|
+
},
|
|
111
|
+
children: t.expandedContent && /* @__PURE__ */ r("div", { className: a["gpt-expanded-content"], children: t.expandedContent })
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
/* @__PURE__ */ l("div", { className: a["gpt-always-visible"], children: [
|
|
115
|
+
t.title && /* @__PURE__ */ r("p", { className: a["gpt-title"], children: t.title }),
|
|
116
|
+
t.bannerContent ? /* @__PURE__ */ r("div", { className: a["gpt-banner"], children: t.bannerContent }) : /* @__PURE__ */ r("div", { className: a["gpt-banner"], children: /* @__PURE__ */ r(x, {}) }),
|
|
117
|
+
/* @__PURE__ */ r(
|
|
118
|
+
"button",
|
|
119
|
+
{
|
|
120
|
+
type: "button",
|
|
121
|
+
className: a["gpt-start-btn"],
|
|
122
|
+
onClick: d,
|
|
123
|
+
disabled: i,
|
|
124
|
+
"aria-label": t.buttonAriaLabel,
|
|
125
|
+
children: t.buttonText
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
] })
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
}
|
|
133
|
+
);
|
|
31
134
|
}
|
|
32
135
|
export {
|
|
33
|
-
|
|
136
|
+
y as GptCardWrapper
|
|
34
137
|
};
|
|
@@ -2,6 +2,12 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
interface IconRendererProps {
|
|
3
3
|
icon: string | ReactNode | undefined;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* IconRenderer — memoized icon component.
|
|
7
|
+
* - String icons (URLs): rendered as `<img>`, memoized by URL so the same image is never re-mounted.
|
|
8
|
+
* - ReactNode icons: memoized by reference, only re-renders if the node itself changes.
|
|
9
|
+
* - Undefined/null: renders a default placeholder icon.
|
|
10
|
+
*/
|
|
11
|
+
export declare const IconRenderer: import('react').NamedExoticComponent<IconRendererProps>;
|
|
6
12
|
export {};
|
|
7
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/IconRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/IconRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;CACtC;AAyED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,yDAUvB,CAAC"}
|
|
@@ -1,18 +1,87 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as r, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { memo as o, useState as d } from "react";
|
|
3
3
|
import '../../../../assets/index-BioJVhpT.css';const t = {
|
|
4
4
|
"icon-img": "_icon-img_1rj7w_1",
|
|
5
5
|
"icon-node": "_icon-node_1rj7w_7"
|
|
6
|
-
},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
}, i = /* @__PURE__ */ h(
|
|
7
|
+
"svg",
|
|
8
|
+
{
|
|
9
|
+
width: "16",
|
|
10
|
+
height: "16",
|
|
11
|
+
viewBox: "0 0 16 16",
|
|
12
|
+
fill: "none",
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
"aria-hidden": "true",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ r(
|
|
17
|
+
"rect",
|
|
18
|
+
{
|
|
19
|
+
x: "1",
|
|
20
|
+
y: "1",
|
|
21
|
+
width: "6",
|
|
22
|
+
height: "6",
|
|
23
|
+
rx: "1.5",
|
|
24
|
+
stroke: "currentColor",
|
|
25
|
+
strokeWidth: "1.4"
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ r(
|
|
29
|
+
"rect",
|
|
30
|
+
{
|
|
31
|
+
x: "9",
|
|
32
|
+
y: "1",
|
|
33
|
+
width: "6",
|
|
34
|
+
height: "6",
|
|
35
|
+
rx: "1.5",
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
strokeWidth: "1.4"
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ r(
|
|
41
|
+
"rect",
|
|
42
|
+
{
|
|
43
|
+
x: "1",
|
|
44
|
+
y: "9",
|
|
45
|
+
width: "6",
|
|
46
|
+
height: "6",
|
|
47
|
+
rx: "1.5",
|
|
48
|
+
stroke: "currentColor",
|
|
49
|
+
strokeWidth: "1.4"
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ r(
|
|
53
|
+
"rect",
|
|
54
|
+
{
|
|
55
|
+
x: "9",
|
|
56
|
+
y: "9",
|
|
57
|
+
width: "6",
|
|
58
|
+
height: "6",
|
|
59
|
+
rx: "1.5",
|
|
60
|
+
stroke: "currentColor",
|
|
61
|
+
strokeWidth: "1.4"
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
), a = o(function({ src: e }) {
|
|
67
|
+
const [s, c] = d(!1);
|
|
68
|
+
return s ? /* @__PURE__ */ r("span", { className: t["icon-node"], children: i }) : /* @__PURE__ */ r(
|
|
69
|
+
"img",
|
|
70
|
+
{
|
|
71
|
+
src: e,
|
|
72
|
+
alt: "",
|
|
73
|
+
className: t["icon-img"],
|
|
74
|
+
"aria-hidden": "true",
|
|
75
|
+
onError: () => c(!0)
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}), l = o(function({ icon: e }) {
|
|
79
|
+
return /* @__PURE__ */ r("span", { className: t["icon-node"], children: e });
|
|
80
|
+
}), g = o(function({
|
|
81
|
+
icon: e
|
|
82
|
+
}) {
|
|
83
|
+
return e ? typeof e == "string" ? /* @__PURE__ */ r(a, { src: e }) : /* @__PURE__ */ r(l, { icon: e }) : /* @__PURE__ */ r("span", { className: t["icon-node"], children: i });
|
|
84
|
+
});
|
|
16
85
|
export {
|
|
17
|
-
|
|
86
|
+
g as IconRenderer
|
|
18
87
|
};
|
|
@@ -7,7 +7,8 @@ interface MenuItemWrapperProps {
|
|
|
7
7
|
level?: number;
|
|
8
8
|
onNavigate: (path: string) => void;
|
|
9
9
|
onMenuItemClick?: (item: SidebarMenuItem) => void;
|
|
10
|
+
textOverflow?: "ellipsis" | "wrap";
|
|
10
11
|
}
|
|
11
|
-
export declare
|
|
12
|
+
export declare const MenuItemWrapper: import('react').NamedExoticComponent<MenuItemWrapperProps>;
|
|
12
13
|
export {};
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/MenuItemWrapper/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/MenuItemWrapper/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD,UAAU,oBAAoB;IAC5B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAClD,YAAY,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;CACpC;AAED,eAAO,MAAM,eAAe,4DAqF1B,CAAC"}
|
|
@@ -1,38 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as r, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import { memo as w, useRef as y, useState as N, useCallback as W, useEffect as d } from "react";
|
|
3
|
+
import { IconRenderer as R } from "../IconRenderer/index.js";
|
|
4
|
+
import { Tooltip as g } from "../../../Tooltip/index.js";
|
|
5
|
+
import { s as n } from "../../../../styles.module-CRMuLY4A.js";
|
|
6
|
+
const z = w(function({
|
|
7
|
+
item: t,
|
|
7
8
|
active: s,
|
|
8
|
-
collapsed:
|
|
9
|
-
icon:
|
|
10
|
-
level:
|
|
11
|
-
onNavigate:
|
|
12
|
-
onMenuItemClick:
|
|
9
|
+
collapsed: p,
|
|
10
|
+
icon: f = !0,
|
|
11
|
+
level: c = 0,
|
|
12
|
+
onNavigate: h,
|
|
13
|
+
onMenuItemClick: T,
|
|
14
|
+
textOverflow: a = "ellipsis"
|
|
13
15
|
}) {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const i = y(null), [$, b] = N(!1), o = W(() => {
|
|
17
|
+
const e = i.current;
|
|
18
|
+
e && e.clientWidth > 0 && b(e.scrollWidth > e.clientWidth);
|
|
19
|
+
}, []);
|
|
20
|
+
d(() => {
|
|
21
|
+
const e = setTimeout(o, 100);
|
|
22
|
+
return () => clearTimeout(e);
|
|
23
|
+
}, [t.name, s, o]), d(() => {
|
|
24
|
+
const e = i.current;
|
|
25
|
+
if (!e) return;
|
|
26
|
+
const m = new ResizeObserver(() => setTimeout(o, 50));
|
|
27
|
+
return m.observe(e), () => m.disconnect();
|
|
28
|
+
}, [o]);
|
|
29
|
+
const l = () => {
|
|
30
|
+
t.url && h(t.url), T?.(t);
|
|
31
|
+
}, u = c > 0, k = u && s, x = /* @__PURE__ */ r(
|
|
32
|
+
"span",
|
|
33
|
+
{
|
|
34
|
+
ref: i,
|
|
35
|
+
className: `${n["menu-content"]} ${a === "wrap" ? n["menu-content-wrap"] : ""}`,
|
|
36
|
+
children: t.name
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
return /* @__PURE__ */ I(
|
|
18
40
|
"div",
|
|
19
41
|
{
|
|
20
|
-
className: `${
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
42
|
+
className: `${n["sidebar-menu-item"]} ${n["leaf-item"]} ${s ? n.active : ""} ${u ? n.nested : ""}`,
|
|
43
|
+
style: c > 1 ? { paddingLeft: `${12 + (c - 1) * 14}px` } : void 0,
|
|
44
|
+
onClick: l,
|
|
45
|
+
onKeyDown: (e) => {
|
|
46
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), l());
|
|
24
47
|
},
|
|
25
48
|
role: "menuitem",
|
|
26
49
|
tabIndex: 0,
|
|
27
50
|
"aria-current": s ? "page" : void 0,
|
|
28
51
|
children: [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
!
|
|
52
|
+
k && /* @__PURE__ */ r("span", { className: n["active-indicator"] }),
|
|
53
|
+
f && /* @__PURE__ */ r("span", { className: n["menu-icon"], children: /* @__PURE__ */ r(R, { icon: t.icon }) }),
|
|
54
|
+
!p && /* @__PURE__ */ r(
|
|
55
|
+
g,
|
|
56
|
+
{
|
|
57
|
+
title: a === "ellipsis" && $ ? t.name : "",
|
|
58
|
+
placement: "right",
|
|
59
|
+
arrow: !0,
|
|
60
|
+
children: x
|
|
61
|
+
}
|
|
62
|
+
)
|
|
32
63
|
]
|
|
33
64
|
}
|
|
34
65
|
);
|
|
35
|
-
}
|
|
66
|
+
});
|
|
36
67
|
export {
|
|
37
|
-
|
|
68
|
+
z as MenuItemWrapper
|
|
38
69
|
};
|
|
@@ -6,6 +6,6 @@ interface CollapsedMenuProps {
|
|
|
6
6
|
onNavigate: (path: string) => void;
|
|
7
7
|
onMenuItemClick?: (item: MenuItem) => void;
|
|
8
8
|
}
|
|
9
|
-
export declare function CollapsedMenu({ menuItems, isActive, isTreeActive, onNavigate, onMenuItemClick }: CollapsedMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function CollapsedMenu({ menuItems, isActive, isTreeActive, onNavigate, onMenuItemClick, }: CollapsedMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=CollapsedMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsedMenu.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/MenuRenderer/CollapsedMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"CollapsedMenu.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Sidebar/components/MenuRenderer/CollapsedMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAS/D,UAAU,kBAAkB;IAC1B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC;IACtC,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC;IAC1C,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC5C;AAED,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,eAAe,GAChB,EAAE,kBAAkB,2CA6CpB"}
|