@apple-pie/slice 0.1.25 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/chunks/{AudioBubble-Bqb2Jexf.js → AudioBubble-DisHuKIC.js} +1 -1
- package/dist/cjs/chunks/{Button-D3wZtdtj.js → Button-Dic9Rfkr.js} +10 -8
- package/dist/cjs/chunks/{ButtonBar-EH8fHFhS.js → ButtonBar-C7tJ6pDM.js} +1 -1
- package/dist/cjs/chunks/{Camera-BnsGhOrt.js → Camera-DfnOBHeI.js} +1 -1
- package/dist/cjs/chunks/{CheckBox-CEWLxffo.js → CheckBox-Cxzt7DJo.js} +1 -1
- package/dist/cjs/chunks/{Chip-BrQgOmJc.js → Chip-DKbhpeho.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-Duv0nmOm.js → DrggablePanel-DuOxkekq.js} +14 -11
- package/dist/cjs/chunks/{DropDown-Bf_pm-Go.js → DropDown-BcRH7Fle.js} +10 -8
- package/dist/cjs/chunks/{FileList-DobAcOSH.js → FileList-S0Hf82-C.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-C-3ahI-j.js → FlexDiv-BPnptnPL.js} +60 -20
- package/dist/cjs/chunks/{Grouper-D9G8PKoM.js → Grouper-CgkPu4sa.js} +1 -1
- package/dist/cjs/chunks/{Icon-fRM3E0N6.js → Icon-UFrKtcYJ.js} +184 -11
- package/dist/cjs/chunks/{IconButton-Cf2RBUKA.js → IconButton-CaQ0SioJ.js} +14 -11
- package/dist/cjs/chunks/{ProgressIndicator-t-jv4OhI.js → ProgressIndicator-n9CfW6jd.js} +1 -1
- package/dist/cjs/chunks/{PromptInput-B1WG22xz.js → PromptInput-CI0iSYKL.js} +1 -1
- package/dist/cjs/chunks/{RadioButton-BAIMCshV.js → RadioButton-JBNaNihZ.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-Bsg5oFaC.js → RadioButtonList-CW2pDNIq.js} +1 -1
- package/dist/cjs/chunks/{TabBar-BfyfjmPQ.js → TabBar-Bpngr90Q.js} +1 -1
- package/dist/cjs/chunks/{TextArea-CHNWsfWH.js → TextArea-BZgwajEC.js} +1 -1
- package/dist/cjs/chunks/{TextField-2xzSdIx3.js → TextField-x1MWESCA.js} +5 -5
- package/dist/cjs/chunks/{Tip-DceuNR6k.js → Tip-BZQhRyng.js} +1 -1
- package/dist/cjs/chunks/{Toast-C8Hc9ZKI.js → Toast-cda-RInJ.js} +1 -1
- package/dist/cjs/chunks/ToggleButton-CuX1nQk4.js +40 -0
- package/dist/cjs/chunks/{UploadArea-UFWRQ-nW.js → UploadArea-CiiKnWe7.js} +1 -1
- package/dist/cjs/chunks/{_types-VoADvwjb.js → _types-Cqkxw-yc.js} +10 -2
- package/dist/cjs/chunks/microphoneStore-CgFohRfy.js +124 -0
- package/dist/cjs/components/AudioBubble/index.js +7 -6
- package/dist/cjs/components/Button/index.js +7 -6
- package/dist/cjs/components/ButtonBar/index.js +7 -6
- package/dist/cjs/components/Camera/index.js +8 -7
- package/dist/cjs/components/CheckBox/index.js +7 -6
- package/dist/cjs/components/Chip/index.js +7 -6
- package/dist/cjs/components/DraggablePanel/index.js +7 -6
- package/dist/cjs/components/DropDown/index.js +7 -6
- package/dist/cjs/components/ErrorSummary/index.js +3 -2
- package/dist/cjs/components/FileIcon/index.js +6 -4
- package/dist/cjs/components/FileList/index.js +7 -7
- package/dist/cjs/components/FlexDiv/index.js +1 -1
- package/dist/cjs/components/Grouper/index.js +5 -4
- package/dist/cjs/components/Icon/index.js +7 -6
- package/dist/cjs/components/IconButton/index.js +6 -5
- package/dist/cjs/components/Progress/index.js +4 -4
- package/dist/cjs/components/PromptInput/index.js +8 -7
- package/dist/cjs/components/RadioButton/index.js +7 -6
- package/dist/cjs/components/RadioButtonList/index.js +5 -5
- package/dist/cjs/components/TabBar/index.js +8 -7
- package/dist/cjs/components/TextArea/index.js +7 -6
- package/dist/cjs/components/Textfield/index.js +8 -7
- package/dist/cjs/components/Tip/index.js +1 -1
- package/dist/cjs/components/Toast/index.js +5 -5
- package/dist/cjs/components/ToggleButton/index.js +13 -0
- package/dist/cjs/components/UploadArea/index.js +8 -8
- package/dist/cjs/hooks/useMicrophone.js +19 -13
- package/dist/cjs/hooks/useObserveTheme.js +8 -7
- package/dist/cjs/hooks/useTheme.js +25 -15
- package/dist/cjs/hooks/useToolTip.js +20 -5
- package/dist/cjs/hooks.js +4 -3
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/providers/ThemeProvider.js +60 -24
- package/dist/cjs/stores/microphone.js +12 -0
- package/dist/cjs/stores.js +9 -2
- package/dist/cjs/theme/colors.js +2 -2
- package/dist/esm/chunks/{AudioBubble-DZfzkdlq.mjs → AudioBubble-D052QyPH.mjs} +1 -1
- package/dist/esm/chunks/{Button-YER9dCLE.mjs → Button-BIbAGVV8.mjs} +11 -9
- package/dist/esm/chunks/{ButtonBar-BH4pcEpN.mjs → ButtonBar-B-1YFX9u.mjs} +1 -1
- package/dist/esm/chunks/{Camera-BJJpDuuA.mjs → Camera-BQBo2g52.mjs} +1 -1
- package/dist/esm/chunks/{CheckBox-Cf2l3-D9.mjs → CheckBox-DDwE1wkX.mjs} +1 -1
- package/dist/esm/chunks/{Chip-DWp7p2BF.mjs → Chip-BuHc883v.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-DA7pYWg6.mjs → DrggablePanel-Dc6lqqfO.mjs} +14 -11
- package/dist/esm/chunks/{DropDown-BQ2tNN3_.mjs → DropDown-CdkEVTRk.mjs} +10 -8
- package/dist/esm/chunks/{FileList-BQ9X5YnB.mjs → FileList-DN4Ubroe.mjs} +2 -2
- package/dist/esm/chunks/{FlexDiv-BFrVoFhC.mjs → FlexDiv-BWZ7f8mA.mjs} +61 -21
- package/dist/esm/chunks/{Grouper-CvPYEsF_.mjs → Grouper-C4A3qYot.mjs} +1 -1
- package/dist/esm/chunks/{Icon-DI32kOA1.mjs → Icon-DRzjkybv.mjs} +185 -12
- package/dist/esm/chunks/{IconButton-Dciw5CLn.mjs → IconButton-b1v9Me0P.mjs} +14 -11
- package/dist/esm/chunks/{ProgressIndicator-CB_oazMD.mjs → ProgressIndicator-D5e7406q.mjs} +1 -1
- package/dist/esm/chunks/{PromptInput-plgRiAb7.mjs → PromptInput-Dmx4sQZ3.mjs} +3 -3
- package/dist/esm/chunks/{RadioButton-B6ImCUYY.mjs → RadioButton-D2T-SsVw.mjs} +1 -1
- package/dist/esm/chunks/{RadioButtonList-Cf6gk8yp.mjs → RadioButtonList-BSPuAYoh.mjs} +1 -1
- package/dist/esm/chunks/{TabBar-0zpJ9GtN.mjs → TabBar-DBoZ8aoV.mjs} +2 -2
- package/dist/esm/chunks/{TextArea-B64bIPHm.mjs → TextArea-CSUDfcYd.mjs} +1 -1
- package/dist/esm/chunks/{TextField-BZeoN_ye.mjs → TextField-Z1O858hB.mjs} +7 -7
- package/dist/esm/chunks/{Tip-C5LB54J9.mjs → Tip-B8YrmJEt.mjs} +1 -1
- package/dist/esm/chunks/{Toast-Bl4s4tRo.mjs → Toast-QQ6GMr5F.mjs} +1 -1
- package/dist/esm/chunks/ToggleButton-B5oobnXJ.mjs +51 -0
- package/dist/esm/chunks/{UploadArea-D3g2g1LK.mjs → UploadArea-CJAQmqOS.mjs} +4 -4
- package/dist/esm/chunks/{_types-DeEhv4Y5.mjs → _types-fSW-DudT.mjs} +10 -2
- package/dist/esm/chunks/microphoneStore-t16oxjGB.mjs +121 -0
- package/dist/esm/components/AudioBubble/index.mjs +5 -3
- package/dist/esm/components/Button/index.mjs +5 -3
- package/dist/esm/components/ButtonBar/index.mjs +6 -4
- package/dist/esm/components/Camera/index.mjs +6 -4
- package/dist/esm/components/CheckBox/index.mjs +6 -4
- package/dist/esm/components/Chip/index.mjs +6 -4
- package/dist/esm/components/DraggablePanel/index.mjs +5 -3
- package/dist/esm/components/DropDown/index.mjs +6 -4
- package/dist/esm/components/ErrorSummary/index.mjs +4 -2
- package/dist/esm/components/FileIcon/index.mjs +4 -0
- package/dist/esm/components/FileList/index.mjs +7 -5
- package/dist/esm/components/FlexDiv/index.mjs +1 -1
- package/dist/esm/components/Grouper/index.mjs +6 -4
- package/dist/esm/components/Icon/index.mjs +6 -4
- package/dist/esm/components/IconButton/index.mjs +4 -2
- package/dist/esm/components/Progress/index.mjs +6 -4
- package/dist/esm/components/PromptInput/index.mjs +9 -7
- package/dist/esm/components/RadioButton/index.mjs +6 -4
- package/dist/esm/components/RadioButtonList/index.mjs +7 -5
- package/dist/esm/components/TabBar/index.mjs +7 -5
- package/dist/esm/components/TextArea/index.mjs +6 -4
- package/dist/esm/components/Textfield/index.mjs +9 -7
- package/dist/esm/components/Tip/index.mjs +1 -1
- package/dist/esm/components/Toast/index.mjs +6 -4
- package/dist/esm/components/ToggleButton/index.mjs +45 -0
- package/dist/esm/components/UploadArea/index.mjs +10 -8
- package/dist/esm/hooks/useMicrophone.mjs +19 -13
- package/dist/esm/hooks/useObserveTheme.mjs +10 -4
- package/dist/esm/hooks/useTheme.mjs +27 -10
- package/dist/esm/hooks/useToolTip.mjs +21 -6
- package/dist/esm/hooks.mjs +6 -0
- package/dist/esm/index.mjs +26 -24
- package/dist/esm/providers/ThemeProvider.mjs +65 -28
- package/dist/esm/stores/microphone.mjs +7 -0
- package/dist/esm/stores.mjs +2 -0
- package/dist/esm/theme/colors.mjs +2 -2
- package/dist/types/components/Button/Button.d.ts +2 -0
- package/dist/types/components/Button/_types.d.ts +1 -0
- package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +1 -2
- package/dist/types/components/FlexDiv/FlexDiv.d.ts +2 -0
- package/dist/types/components/FlexDiv/_types.d.ts +35 -7
- package/dist/types/components/Icon/_types.d.ts +9 -0
- package/dist/types/components/IconButton/_types.d.ts +1 -0
- package/dist/types/components/ToggleButton/ToggleButton.d.ts +2 -0
- package/dist/types/components/ToggleButton/_types.d.ts +24 -0
- package/dist/types/components/ToggleButton/index.d.ts +2 -0
- package/dist/types/hooks/useMicrophone/useMicrophone.d.ts +2 -1
- package/dist/types/hooks/useTheme/useTheme.d.ts +5 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/providers/ThemeProvider.d.ts +6 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/dist/types/stores/microphone/_types.d.ts +28 -0
- package/dist/types/stores/microphone/index.d.ts +2 -0
- package/dist/types/stores/microphone/microphoneStore.d.ts +24 -0
- package/package.json +1 -1
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
var Size, Preset, tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_flexDiv = "FlexDiv-module_flexDiv__EY5A- type-module_body-m-regular__LuQBA";
|
|
5
5
|
|
|
6
|
-
styleInject_es.styleInject(".type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.FlexDiv-module_flexDiv__EY5A- {\n\t&::-webkit-scrollbar {\n\t\tbackground-color: var(--flex-div-bg);\n\t\twidth:
|
|
6
|
+
styleInject_es.styleInject(".type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.FlexDiv-module_flexDiv__EY5A- {\n\t&::-webkit-scrollbar {\n\t\tbackground-color: var(--flex-div-bg);\n\t\twidth: 6px;\n\t}\n\n\t&::-webkit-scrollbar-track {\n\t\tbackground-color: var(--flex-div-bg);\n\t\twidth: 6px;\n\t}\n\n\t&::-webkit-scrollbar-thumb {\n\t\tbackground-color: var(--flex-div-scroll-handle);\n\t\tborder-radius: 20px;\n\t\tborder: 1px solid var(--flex-div-bg);\n\t}\n\n\t&::-webkit-scrollbar-thumb:hover {\n\t\tbackground-color: var(--flex-div-scroll-handle-hover);\n\t\tborder-radius: 20px;\n\t\tborder: 1px solid var(--flex-div-bg);\n\t}\n}\n"),
|
|
7
7
|
exports.Size = void 0, (Size = exports.Size || (exports.Size = {})).Grow = "grow",
|
|
8
8
|
Size.Fill = "fill", Size.Fit = "fit", Size.Viewport = "viewport", Size.Auto = "auto",
|
|
9
9
|
exports.Preset = void 0, (Preset = exports.Preset || (exports.Preset = {})).FillScroll = "fill-scroll",
|
|
10
|
-
Preset.FillCenter = "fill-center", Preset.
|
|
11
|
-
Preset.
|
|
12
|
-
Preset.Draggable = "draggable";
|
|
10
|
+
Preset.FillCenter = "fill-center", Preset.FillStart = "fill-start", Preset.Window = "window",
|
|
11
|
+
Preset.Row = "row", Preset.RowBetween = "row-between", Preset.Column = "column",
|
|
12
|
+
Preset.Default = "default", Preset.Draggable = "draggable";
|
|
13
13
|
|
|
14
14
|
const layoutSets = {
|
|
15
15
|
[exports.Preset.FillScroll]: {
|
|
@@ -18,6 +18,8 @@ const layoutSets = {
|
|
|
18
18
|
justify: "start",
|
|
19
19
|
align: "start",
|
|
20
20
|
scrollY: !0,
|
|
21
|
+
scrollX: !1,
|
|
22
|
+
overflow: "hidden",
|
|
21
23
|
direction: "column"
|
|
22
24
|
},
|
|
23
25
|
[exports.Preset.FillCenter]: {
|
|
@@ -26,6 +28,18 @@ const layoutSets = {
|
|
|
26
28
|
justify: "center",
|
|
27
29
|
align: "center",
|
|
28
30
|
scrollY: !1,
|
|
31
|
+
scrollX: !1,
|
|
32
|
+
overflow: "hidden",
|
|
33
|
+
direction: "column"
|
|
34
|
+
},
|
|
35
|
+
[exports.Preset.FillStart]: {
|
|
36
|
+
width: "fill",
|
|
37
|
+
height: "fill",
|
|
38
|
+
justify: "start",
|
|
39
|
+
align: "start",
|
|
40
|
+
scrollY: !1,
|
|
41
|
+
scrollX: !1,
|
|
42
|
+
overflow: "hidden",
|
|
29
43
|
direction: "column"
|
|
30
44
|
},
|
|
31
45
|
[exports.Preset.Window]: {
|
|
@@ -34,6 +48,8 @@ const layoutSets = {
|
|
|
34
48
|
justify: "start",
|
|
35
49
|
align: "start",
|
|
36
50
|
scrollY: !1,
|
|
51
|
+
scrollX: !1,
|
|
52
|
+
overflow: "hidden",
|
|
37
53
|
direction: "row"
|
|
38
54
|
},
|
|
39
55
|
[exports.Preset.Row]: {
|
|
@@ -41,7 +57,9 @@ const layoutSets = {
|
|
|
41
57
|
height: "fit",
|
|
42
58
|
justify: "start",
|
|
43
59
|
align: "center",
|
|
44
|
-
scrollY:
|
|
60
|
+
scrollY: void 0,
|
|
61
|
+
scrollX: void 0,
|
|
62
|
+
overflow: "hidden",
|
|
45
63
|
direction: "row"
|
|
46
64
|
},
|
|
47
65
|
[exports.Preset.RowBetween]: {
|
|
@@ -49,15 +67,19 @@ const layoutSets = {
|
|
|
49
67
|
height: "fit",
|
|
50
68
|
justify: "between",
|
|
51
69
|
align: "center",
|
|
52
|
-
scrollY:
|
|
70
|
+
scrollY: void 0,
|
|
71
|
+
scrollX: void 0,
|
|
72
|
+
overflow: "hidden",
|
|
53
73
|
direction: "row"
|
|
54
74
|
},
|
|
55
75
|
[exports.Preset.Column]: {
|
|
56
76
|
width: "fill",
|
|
57
77
|
height: "fit",
|
|
58
78
|
justify: "start",
|
|
59
|
-
align: "
|
|
60
|
-
scrollY:
|
|
79
|
+
align: "start",
|
|
80
|
+
scrollY: void 0,
|
|
81
|
+
scrollX: void 0,
|
|
82
|
+
overflow: "hidden",
|
|
61
83
|
direction: "column"
|
|
62
84
|
},
|
|
63
85
|
[exports.Preset.Default]: {
|
|
@@ -65,7 +87,9 @@ const layoutSets = {
|
|
|
65
87
|
height: "fit",
|
|
66
88
|
justify: "start",
|
|
67
89
|
align: "start",
|
|
68
|
-
scrollY:
|
|
90
|
+
scrollY: void 0,
|
|
91
|
+
scrollX: void 0,
|
|
92
|
+
overflow: "hidden",
|
|
69
93
|
direction: "column"
|
|
70
94
|
},
|
|
71
95
|
[exports.Preset.Draggable]: {
|
|
@@ -73,7 +97,9 @@ const layoutSets = {
|
|
|
73
97
|
height: "fill",
|
|
74
98
|
justify: "start",
|
|
75
99
|
align: "start",
|
|
76
|
-
scrollY:
|
|
100
|
+
scrollY: void 0,
|
|
101
|
+
scrollX: void 0,
|
|
102
|
+
overflow: "visible",
|
|
77
103
|
direction: "column"
|
|
78
104
|
}
|
|
79
105
|
};
|
|
@@ -86,23 +112,37 @@ function setBox(style) {
|
|
|
86
112
|
return "number" == typeof style ? `${style}px` : style;
|
|
87
113
|
}
|
|
88
114
|
|
|
115
|
+
function setPaddingRight(padding, scrollBox, pad = 4) {
|
|
116
|
+
return padding ? "number" == typeof padding ? `${padding}px` : padding : scrollBox ? `${pad}px` : "unset";
|
|
117
|
+
}
|
|
118
|
+
|
|
89
119
|
function setFlex(style) {
|
|
90
120
|
return "start" === style || "top" === style ? "flex-start" : "end" === style || "bottom" === style ? "flex-end" : "between" === style ? "space-between" : style;
|
|
91
121
|
}
|
|
92
122
|
|
|
93
123
|
const FlexDiv = React.memo(React.forwardRef((props, ref) => {
|
|
94
|
-
const {children: children, preset: preset = "default", scrollY: scrollY
|
|
124
|
+
const {children: children, preset: preset = "default", scrollY: scrollY, scrollX: scrollX, scrollBox: scrollBox = !1, background: background = "transparent", direction: direction, align: align, justify: justify, height: height, width: width, maxWidth: maxWidth, centerSelf: centerSelf, wrap: wrap = !1, reverse: reverse = !1, padding: padding = 0, margin: margin = 0, absolute: absolute = !1, flex: flex, gap: gap, variants: variants, transition: transition, animate: animate, enter: enter, exit: exit, border: border, borderRadius: borderRadius, className: className, scrollHandle: scrollHandle, scrollHandleHover: scrollHandleHover} = props, divAttributes = tslib_es6.__rest(props, [ "children", "preset", "scrollY", "scrollX", "scrollBox", "background", "direction", "align", "justify", "height", "width", "maxWidth", "centerSelf", "wrap", "reverse", "padding", "margin", "absolute", "flex", "gap", "variants", "transition", "animate", "enter", "exit", "border", "borderRadius", "className", "scrollHandle", "scrollHandleHover" ]), {id: divId, style: userStyle} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "style" ]), wrapperStyle = null != userStyle ? userStyle : {}, presets = React.useMemo(() => ({
|
|
125
|
+
width: null != width ? width : layoutSets[preset].width,
|
|
126
|
+
height: null != height ? height : layoutSets[preset].height,
|
|
127
|
+
direction: null != direction ? direction : layoutSets[preset].direction,
|
|
128
|
+
align: null != align ? align : layoutSets[preset].align,
|
|
129
|
+
justify: null != justify ? justify : layoutSets[preset].justify,
|
|
130
|
+
scrollY: null != scrollY ? scrollY : layoutSets[preset].scrollY,
|
|
131
|
+
scrollX: null != scrollX ? scrollX : layoutSets[preset].scrollX,
|
|
132
|
+
overflow: layoutSets[preset].overflow
|
|
133
|
+
}), [ preset, width, height, direction, align, justify, scrollY, scrollX ]), setScroll = React.useCallback(value => void 0 === value ? "unset" : value ? "auto" : "hidden", []), style = React.useMemo(() => ({
|
|
95
134
|
display: "flex",
|
|
96
135
|
position: "" + (absolute ? "absolute" : "relative"),
|
|
97
|
-
flexDirection: `${direction}${reverse ? "-reverse" : ""}`,
|
|
136
|
+
flexDirection: `${presets.direction}${reverse ? "-reverse" : ""}`,
|
|
98
137
|
flexWrap: "" + (wrap ? "wrap" : "nowrap"),
|
|
99
|
-
justifyContent: `${setFlex(justify)}`,
|
|
100
|
-
alignItems: `${setFlex(align)}`,
|
|
138
|
+
justifyContent: `${setFlex(presets.justify)}`,
|
|
139
|
+
alignItems: `${setFlex(presets.align)}`,
|
|
101
140
|
boxSizing: "border-box",
|
|
102
141
|
padding: `${setBox(padding)}`,
|
|
142
|
+
paddingRight: setPaddingRight(padding, scrollBox),
|
|
103
143
|
margin: centerSelf ? "0 auto" : `${setBox(margin)}`,
|
|
104
|
-
width: `${absolute ? "unset" : setSize(width, !1)}`,
|
|
105
|
-
height: `${absolute ? "unset" : setSize(height, !0)}`,
|
|
144
|
+
width: `${absolute ? "unset" : setSize(presets.width, !1)}`,
|
|
145
|
+
height: `${absolute ? "unset" : setSize(presets.height, !0)}`,
|
|
106
146
|
maxWidth: `${maxWidth ? setSize(maxWidth, !1) : "unset"}`,
|
|
107
147
|
flex: `${absolute ? "unset" : null != flex ? flex : "unset"}`,
|
|
108
148
|
top: "" + (absolute ? "0" : "unset"),
|
|
@@ -112,15 +152,15 @@ const FlexDiv = React.memo(React.forwardRef((props, ref) => {
|
|
|
112
152
|
gap: gap ? `${gap}px` : "unset",
|
|
113
153
|
border: `${null != border ? border : "unset"}`,
|
|
114
154
|
background: `${null != background ? background : "transparent"}`,
|
|
115
|
-
overflow:
|
|
116
|
-
overflowY:
|
|
117
|
-
overflowX:
|
|
155
|
+
overflow: presets.overflow,
|
|
156
|
+
overflowY: setScroll(presets.scrollY),
|
|
157
|
+
overflowX: setScroll(presets.scrollX),
|
|
118
158
|
borderRadius: borderRadius ? `${borderRadius}px` : "unset",
|
|
119
159
|
color: "var(--core-text-primary)",
|
|
120
160
|
"--flex-div-scroll-border": `${null != background ? background : "transparent"}`,
|
|
121
161
|
"--flex-div-scroll-handle": `${null != scrollHandle ? scrollHandle : "var(--scroll-bar)"}`,
|
|
122
162
|
"--flex-div-scroll-handle-hover": `${null != scrollHandleHover ? scrollHandleHover : "var(--scroll-bar-hover)"}`
|
|
123
|
-
}), [ absolute,
|
|
163
|
+
}), [ absolute, reverse, wrap, padding, margin, flex, gap, border, background, centerSelf, maxWidth, scrollHandle, scrollHandleHover, borderRadius, setScroll, presets, scrollBox ]);
|
|
124
164
|
return jsxRuntime.jsx(react.motion.div, Object.assign({
|
|
125
165
|
id: divId,
|
|
126
166
|
ref: ref,
|
|
@@ -5,7 +5,7 @@ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/
|
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js"), require("../hooks/useWindow.js");
|
|
7
7
|
|
|
8
|
-
var Badge = require("./Badge-DjPJ_iJX.js"), Icon = require("./Icon-
|
|
8
|
+
var Badge = require("./Badge-DjPJ_iJX.js"), Icon = require("./Icon-UFrKtcYJ.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_header = "Grouper-module_header__D5fV0 flexBox-module_rowBetween__5FEvi", css_title = "Grouper-module_title__ZKqTP flexBox-module_rowBetween__5FEvi type-module_body-m-regular__LuQBA", css_content = "Grouper-module_content__Mof50 flexBox-module_rowBetween__5FEvi", css_icon = "Grouper-module_icon__14Jis flexBox-module_row__z24tF";
|
|
9
9
|
|
|
10
10
|
styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.Grouper-module_header__D5fV0 {\n\twidth: 100%;\n\tcursor: pointer;\n\tappearance: none;\n\t-webkit-appearance: none;\n\tbackground-image: none;\n\tbackground-color: transparent;\n\tborder: 0;\n\toutline: none;\n\tpadding: 0;\n}\n\n.Grouper-module_title__ZKqTP {\n\tcolor: var(--core-text-primary);\n\tflex: 1;\n}\n\n.Grouper-module_content__Mof50 {\n\tuser-select: none;\n\t-webkit-user-select: none;\n\tpadding: 0 24px !important;\n\twidth: 100%;\n\tgap: 6px;\n\theight: var(--grouper-height);\n\tborder-top: var(--grouper-border) solid var(--core-outline-primary);\n}\n\n.Grouper-module_icon__14Jis {\n\tmin-height: var(--grouper-icon-size);\n\theight: var(--grouper-icon-size);\n\tmin-width: var(--grouper-icon-size);\n\twidth: var(--grouper-icon-size);\n}\n");
|
|
11
11
|
|
|
@@ -17,7 +17,162 @@ styleInject_es.styleInject(".Icon-module_icon__szG-X {\n\tcursor: var(--cursor);
|
|
|
17
17
|
* Static icon registry created once at module load.
|
|
18
18
|
* Each entry stores only icon line content renderers.
|
|
19
19
|
*/
|
|
20
|
-
const STATIC_ICON_REGISTRY = new Map([ [ "
|
|
20
|
+
const STATIC_ICON_REGISTRY = new Map([ [ "speaker", {
|
|
21
|
+
line: ({fillColor: fillColor, strokeColor: strokeColor}) => jsxRuntime.jsx("path", {
|
|
22
|
+
d: "M4.71,7.95v4.13c0,.37.3.66.66.66h3.31c.08,0,.17.03.23.09l4.81,4.21c.22.19.56.04.56-.25V3.15c0-.25-.3-.37-.47-.2l-4.21,4.21c-.06.06-.15.1-.24.1h-3.97c-.37,0-.68.3-.68.68Z",
|
|
23
|
+
fill: strokeColor,
|
|
24
|
+
fillOpacity: fillColor,
|
|
25
|
+
stroke: strokeColor,
|
|
26
|
+
strokeWidth: 1.5
|
|
27
|
+
})
|
|
28
|
+
} ], [ "speaker muted", {
|
|
29
|
+
line: ({stroke: stroke, strokeColor: strokeColor, fillColor: fillColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
30
|
+
children: [ jsxRuntime.jsx("polygon", {
|
|
31
|
+
points: "4.82 8.35 9.61 12.51 4.82 12.51 4.82 8.35",
|
|
32
|
+
fill: strokeColor,
|
|
33
|
+
fillOpacity: fillColor
|
|
34
|
+
}), jsxRuntime.jsx("polygon", {
|
|
35
|
+
points: "8.51 7.58 14.51 12.78 14.5 3 14 2.5 8.51 7.58",
|
|
36
|
+
fill: strokeColor,
|
|
37
|
+
fillOpacity: fillColor
|
|
38
|
+
}), jsxRuntime.jsx("path", {
|
|
39
|
+
d: "M9.02,8.02h.34c.29,0,.57-.11.77-.32l3.41-3.41v7.65l1.5,1.3V3.15c0-.42-.25-.79-.64-.95-.39-.16-.83-.07-1.12.22l-4.09,4.09h-1.9l1.73,1.5Z",
|
|
40
|
+
fill: strokeColor
|
|
41
|
+
}), jsxRuntime.jsx("path", {
|
|
42
|
+
d: "M9.16,12.11c-.15-.07-.3-.12-.47-.12h-3.22v-3.09l-1.46-1.27c-.02.1-.04.2-.04.31v4.13c0,.78.63,1.41,1.41,1.41h3.16l4.7,4.11c.2.18.46.27.72.27.15,0,.31-.03.45-.1.27-.12.47-.35.57-.62l-5.81-5.04Z",
|
|
43
|
+
fill: strokeColor
|
|
44
|
+
}), jsxRuntime.jsx("line", {
|
|
45
|
+
x1: "3.25",
|
|
46
|
+
y1: "5",
|
|
47
|
+
x2: "16.5",
|
|
48
|
+
y2: "16.5",
|
|
49
|
+
strokeLinecap: "round",
|
|
50
|
+
strokeLinejoin: "round",
|
|
51
|
+
stroke: strokeColor,
|
|
52
|
+
strokeWidth: stroke,
|
|
53
|
+
fill: "none"
|
|
54
|
+
}) ]
|
|
55
|
+
})
|
|
56
|
+
} ], [ "laptop", {
|
|
57
|
+
line: ({fillColor: fillColor, strokeColor: strokeColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
58
|
+
children: [ jsxRuntime.jsx("rect", {
|
|
59
|
+
x: "4",
|
|
60
|
+
y: "5",
|
|
61
|
+
width: "12",
|
|
62
|
+
height: "9",
|
|
63
|
+
rx: "1",
|
|
64
|
+
ry: "1",
|
|
65
|
+
fill: strokeColor,
|
|
66
|
+
opacity: fillColor
|
|
67
|
+
}), jsxRuntime.jsx("path", {
|
|
68
|
+
d: "M18,13.25h-1.25v-7.25c0-.96-.79-1.75-1.75-1.75H5c-.96,0-1.75.79-1.75,1.75v7.25h-1.25c-.41,0-.75.34-.75.75s.34.75.75.75h16c.41,0,.75-.34.75-.75s-.34-.75-.75-.75ZM4.75,6c0-.14.11-.25.25-.25h10c.14,0,.25.11.25.25v7.25H4.75v-7.25Z",
|
|
69
|
+
fill: strokeColor
|
|
70
|
+
}) ]
|
|
71
|
+
})
|
|
72
|
+
} ], [ "moon full", {
|
|
73
|
+
line: ({strokeColor: strokeColor, fillColor: fillColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
74
|
+
children: [ jsxRuntime.jsx("circle", {
|
|
75
|
+
cx: "10",
|
|
76
|
+
cy: "10",
|
|
77
|
+
r: "6.5",
|
|
78
|
+
fill: "none",
|
|
79
|
+
stroke: strokeColor,
|
|
80
|
+
strokeWidth: 1.5
|
|
81
|
+
}), jsxRuntime.jsx("circle", {
|
|
82
|
+
cx: "10",
|
|
83
|
+
cy: "10",
|
|
84
|
+
r: "6.5",
|
|
85
|
+
fill: strokeColor,
|
|
86
|
+
fillOpacity: fillColor
|
|
87
|
+
}) ]
|
|
88
|
+
})
|
|
89
|
+
} ], [ "sun", {
|
|
90
|
+
line: ({strokeColor: strokeColor, fillColor: fillColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
91
|
+
children: [ jsxRuntime.jsx("path", {
|
|
92
|
+
d: "M10,13.25c-1.79,0-3.25-1.46-3.25-3.25s1.46-3.25,3.25-3.25,3.25,1.46,3.25,3.25-1.46,3.25-3.25,3.25Z",
|
|
93
|
+
fill: strokeColor,
|
|
94
|
+
fillOpacity: fillColor
|
|
95
|
+
}), jsxRuntime.jsx("path", {
|
|
96
|
+
d: "M10,5.25c-2.62,0-4.75,2.13-4.75,4.75s2.13,4.75,4.75,4.75,4.75-2.13,4.75-4.75-2.13-4.75-4.75-4.75ZM10,13.25c-1.79,0-3.25-1.46-3.25-3.25s1.46-3.25,3.25-3.25,3.25,1.46,3.25,3.25-1.46,3.25-3.25,3.25Z",
|
|
97
|
+
fill: strokeColor
|
|
98
|
+
}), jsxRuntime.jsx("circle", {
|
|
99
|
+
cx: "10",
|
|
100
|
+
cy: "2",
|
|
101
|
+
r: "1",
|
|
102
|
+
fill: strokeColor
|
|
103
|
+
}), jsxRuntime.jsx("circle", {
|
|
104
|
+
cx: "15.7",
|
|
105
|
+
cy: "4.3",
|
|
106
|
+
r: "1",
|
|
107
|
+
fill: strokeColor
|
|
108
|
+
}), jsxRuntime.jsx("circle", {
|
|
109
|
+
cx: "18.06",
|
|
110
|
+
cy: "10",
|
|
111
|
+
r: "1",
|
|
112
|
+
fill: strokeColor
|
|
113
|
+
}), jsxRuntime.jsx("circle", {
|
|
114
|
+
cx: "1.95",
|
|
115
|
+
cy: "10",
|
|
116
|
+
r: "1",
|
|
117
|
+
fill: strokeColor
|
|
118
|
+
}), jsxRuntime.jsx("circle", {
|
|
119
|
+
cx: "4.3",
|
|
120
|
+
cy: "15.7",
|
|
121
|
+
r: "1",
|
|
122
|
+
fill: strokeColor
|
|
123
|
+
}), jsxRuntime.jsx("circle", {
|
|
124
|
+
cx: "10",
|
|
125
|
+
cy: "18.05",
|
|
126
|
+
r: "1",
|
|
127
|
+
fill: strokeColor
|
|
128
|
+
}), jsxRuntime.jsx("circle", {
|
|
129
|
+
cx: "15.7",
|
|
130
|
+
cy: "15.7",
|
|
131
|
+
r: "1",
|
|
132
|
+
fill: strokeColor
|
|
133
|
+
}), jsxRuntime.jsx("circle", {
|
|
134
|
+
cx: "4.3",
|
|
135
|
+
cy: "4.3",
|
|
136
|
+
r: "1",
|
|
137
|
+
fill: strokeColor
|
|
138
|
+
}) ]
|
|
139
|
+
})
|
|
140
|
+
} ], [ "keyboard", {
|
|
141
|
+
line: ({strokeColor: strokeColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
142
|
+
children: [ jsxRuntime.jsx("path", {
|
|
143
|
+
d: "M17.26,16.46H2.75c-.96,0-1.75-.85-1.75-1.89V5.88c0-1.04.79-1.89,1.75-1.89h14.51c.96,0,1.75.85,1.75,1.89v8.69c0,1.04-.79,1.89-1.75,1.89ZM2.75,5.61c-.14,0-.25.12-.25.27v8.69c0,.15.11.27.25.27h14.51c.14,0,.25-.12.25-.27V5.88c0-.15-.11-.27-.25-.27H2.75Z",
|
|
144
|
+
fill: strokeColor
|
|
145
|
+
}), jsxRuntime.jsx("circle", {
|
|
146
|
+
cx: "5.52",
|
|
147
|
+
cy: "8.52",
|
|
148
|
+
r: ".97",
|
|
149
|
+
fill: strokeColor
|
|
150
|
+
}), jsxRuntime.jsx("circle", {
|
|
151
|
+
cx: "8.53",
|
|
152
|
+
cy: "8.52",
|
|
153
|
+
r: ".97",
|
|
154
|
+
fill: strokeColor
|
|
155
|
+
}), jsxRuntime.jsx("circle", {
|
|
156
|
+
cx: "11.52",
|
|
157
|
+
cy: "8.52",
|
|
158
|
+
r: ".97",
|
|
159
|
+
fill: strokeColor
|
|
160
|
+
}), jsxRuntime.jsx("circle", {
|
|
161
|
+
cx: "14.48",
|
|
162
|
+
cy: "8.52",
|
|
163
|
+
r: ".97",
|
|
164
|
+
fill: strokeColor
|
|
165
|
+
}), jsxRuntime.jsx("circle", {
|
|
166
|
+
cx: "14.48",
|
|
167
|
+
cy: "11.97",
|
|
168
|
+
r: ".97",
|
|
169
|
+
fill: strokeColor
|
|
170
|
+
}), jsxRuntime.jsx("path", {
|
|
171
|
+
d: "M11.52,11h-6c-.54,0-.97.44-.97.97s.44.97.97.97h6c.54,0,.97-.44.97-.97s-.44-.97-.97-.97Z",
|
|
172
|
+
fill: strokeColor
|
|
173
|
+
}) ]
|
|
174
|
+
})
|
|
175
|
+
} ], [ "sidebar", {
|
|
21
176
|
line: ({strokeColor: strokeColor, fillColor: fillColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
22
177
|
children: [ jsxRuntime.jsx("rect", {
|
|
23
178
|
x: "10",
|
|
@@ -77,8 +232,12 @@ const STATIC_ICON_REGISTRY = new Map([ [ "sidebar", {
|
|
|
77
232
|
}) ]
|
|
78
233
|
})
|
|
79
234
|
} ], [ "mic", {
|
|
80
|
-
line: ({strokeColor: strokeColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
235
|
+
line: ({strokeColor: strokeColor, fillColor: fillColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
81
236
|
children: [ jsxRuntime.jsx("path", {
|
|
237
|
+
d: "M10.25,11.75c1.65,0,3-1.35,3-3v-4.5c0-1.65-1.35-3-3-3s-3,1.35-3,3v4.5c0,1.65,1.35,3,3,3Z",
|
|
238
|
+
fill: strokeColor,
|
|
239
|
+
fillOpacity: fillColor
|
|
240
|
+
}), jsxRuntime.jsx("path", {
|
|
82
241
|
d: "M10.25,11.75c1.65,0,3-1.35,3-3v-4.5c0-1.65-1.35-3-3-3s-3,1.35-3,3v4.5c0,1.65,1.35,3,3,3ZM8.75,4.25c0-.83.67-1.5,1.5-1.5s1.5.67,1.5,1.5v4.5c0,.83-.67,1.5-1.5,1.5s-1.5-.67-1.5-1.5v-4.5Z",
|
|
83
242
|
fill: strokeColor
|
|
84
243
|
}), jsxRuntime.jsx("path", {
|
|
@@ -833,10 +992,12 @@ const STATIC_ICON_REGISTRY = new Map([ [ "sidebar", {
|
|
|
833
992
|
}) ]
|
|
834
993
|
})
|
|
835
994
|
} ], [ "share", {
|
|
836
|
-
line: ({stroke: stroke, strokeColor: strokeColor}) => jsxRuntime.jsx("path", {
|
|
995
|
+
line: ({stroke: stroke, strokeColor: strokeColor, fillColor: fillColor}) => jsxRuntime.jsx("path", {
|
|
837
996
|
d: "M11 7c-5.063 0-8 4.03-8 9 1.222-1.2 3-3 8-3v3l6-6-6-6v3Z",
|
|
838
997
|
stroke: strokeColor,
|
|
839
|
-
strokeWidth: stroke
|
|
998
|
+
strokeWidth: stroke,
|
|
999
|
+
fill: strokeColor,
|
|
1000
|
+
fillOpacity: fillColor
|
|
840
1001
|
})
|
|
841
1002
|
} ], [ "search", {
|
|
842
1003
|
line: ({strokeColor: strokeColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -1072,11 +1233,23 @@ const STATIC_ICON_REGISTRY = new Map([ [ "sidebar", {
|
|
|
1072
1233
|
fill: strokeColor
|
|
1073
1234
|
})
|
|
1074
1235
|
} ], [ "sparkle", {
|
|
1075
|
-
line: ({strokeColor: strokeColor}) => jsxRuntime.
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1236
|
+
line: ({strokeColor: strokeColor, fillColor: fillColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1237
|
+
children: [ jsxRuntime.jsx("path", {
|
|
1238
|
+
d: "M10.5 2h.5a7 7 0 0 0 7 7v2a7 7 0 0 0-7 7H9a7 7 0 0 0-7-7V9a7 7 0 0 0 7-7h1.5ZM10 4.88A8.525 8.525 0 0 0 15.12 10 8.525 8.525 0 0 0 10 15.12 8.525 8.525 0 0 0 4.88 10 8.524 8.524 0 0 0 10 4.88Z",
|
|
1239
|
+
fill: strokeColor,
|
|
1240
|
+
fillOpacity: fillColor
|
|
1241
|
+
}), jsxRuntime.jsx("path", {
|
|
1242
|
+
fillRule: "evenodd",
|
|
1243
|
+
clipRule: "evenodd",
|
|
1244
|
+
d: "M10.5 2h.5a7 7 0 0 0 7 7v2a7 7 0 0 0-7 7H9a7 7 0 0 0-7-7V9a7 7 0 0 0 7-7h1.5ZM10 4.88A8.525 8.525 0 0 0 15.12 10 8.525 8.525 0 0 0 10 15.12 8.525 8.525 0 0 0 4.88 10 8.524 8.524 0 0 0 10 4.88ZM17 4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM5 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",
|
|
1245
|
+
fill: strokeColor
|
|
1246
|
+
}), jsxRuntime.jsx("path", {
|
|
1247
|
+
d: "M17 4a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",
|
|
1248
|
+
fill: strokeColor
|
|
1249
|
+
}), jsxRuntime.jsx("path", {
|
|
1250
|
+
d: "M5 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",
|
|
1251
|
+
fill: strokeColor
|
|
1252
|
+
}) ]
|
|
1080
1253
|
})
|
|
1081
1254
|
} ], [ "inbox", {
|
|
1082
1255
|
line: ({strokeColor: strokeColor}) => jsxRuntime.jsx("path", {
|
|
@@ -1097,7 +1270,7 @@ const STATIC_ICON_REGISTRY = new Map([ [ "sidebar", {
|
|
|
1097
1270
|
})
|
|
1098
1271
|
} ] ]), Icon = React.memo(props => {
|
|
1099
1272
|
var _a;
|
|
1100
|
-
const theme = hooks_useTheme.useTheme(), {name: name = "home", size: size = 20, stroke: stroke = 1.5, strokeColor: strokeColor = theme.current.colors["core-icon-primary"], fillColor: fillColor =
|
|
1273
|
+
const theme = hooks_useTheme.useTheme(), {name: name = "home", size: size = 20, stroke: stroke = 1.5, strokeColor: strokeColor = theme.current.colors["core-icon-primary"], fillColor: fillColor, fill: fill = !1, coverUp: coverUp = theme.current.colors["core-surface-primary"], toggle: toggle = !1, pointer: pointer = !1, disabled: disabled = !1, onClick: onClick} = props, svgAttributes = tslib_es6.__rest(props, [ "name", "size", "stroke", "strokeColor", "fillColor", "fill", "coverUp", "toggle", "pointer", "disabled", "onClick" ]), {id: svgId, className: className, style: style} = svgAttributes, rest = tslib_es6.__rest(svgAttributes, [ "id", "className", "style" ]), svgStyle = null != style ? style : {}, variantKey = toggle ? "lineOn" : "line", iconVariant = STATIC_ICON_REGISTRY.get(name), shape = null !== (_a = null == iconVariant ? void 0 : iconVariant[variantKey]) && void 0 !== _a ? _a : null == iconVariant ? void 0 : iconVariant.line, cursor = React.useMemo(() => disabled ? "default" : pointer ? "pointer" : "inherit", [ disabled, pointer ]), setFillColor = React.useMemo(() => fill ? fillColor || (theme.current.name.includes("dark") ? .2 : .125) : 0, [ fillColor, fill, theme.current.name ]), iconStyle = React.useMemo(() => ({
|
|
1101
1274
|
"--cursor": cursor,
|
|
1102
1275
|
"--pointer-events": onClick ? "auto" : "none"
|
|
1103
1276
|
}), [ cursor, onClick ]), handleKeyActivate = React.useMemo(() => () => null == onClick ? void 0 : onClick(void 0), [ onClick ]);
|
|
@@ -1120,7 +1293,7 @@ const STATIC_ICON_REGISTRY = new Map([ [ "sidebar", {
|
|
|
1120
1293
|
children: [ jsxRuntime.jsx("title", {}), shape({
|
|
1121
1294
|
stroke: stroke,
|
|
1122
1295
|
strokeColor: strokeColor,
|
|
1123
|
-
fillColor:
|
|
1296
|
+
fillColor: setFillColor,
|
|
1124
1297
|
coverUp: coverUp
|
|
1125
1298
|
}) ]
|
|
1126
1299
|
})) : null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), Badge = require("./Badge-DjPJ_iJX.js"), Dot = require("./Dot-fKIwhjYA.js"), Icon = require("./Icon-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), Badge = require("./Badge-DjPJ_iJX.js"), Dot = require("./Dot-fKIwhjYA.js"), Icon = require("./Icon-UFrKtcYJ.js"), sharedTypes = require("./sharedTypes-gCECyn2N.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_button = "IconButton-module_button__rziqa flexBox-module_row__z24tF", css_label = "IconButton-module_label__qWGFD flexBox-module_row__z24tF type-module_body-l-regular__lOYbg", css_icon = "IconButton-module_icon__2DDWy flexBox-module_row__z24tF", css_count = "IconButton-module_count__6r373 flexBox-module_row__z24tF";
|
|
5
5
|
|
|
6
|
-
styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.IconButton-module_button__rziqa {\n\tposition: relative;\n\tbackground: var(--ib-bg-color);\n\tborder-radius: var(--ib-border-radius);\n\tborder: var(--ib-border) solid var(--core-outline-primary);\n\tgap: 6px;\n\tcursor:
|
|
6
|
+
styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.IconButton-module_button__rziqa {\n\tposition: relative;\n\tbackground: var(--ib-bg-color);\n\tborder-radius: var(--ib-border-radius);\n\tborder: var(--ib-border) solid var(--core-outline-primary);\n\tgap: 6px;\n\tcursor: var(--ib-cursor);\n\tappearance: none;\n\t-webkit-appearance: none;\n\tbackground-image: none;\n\toutline: none;\n\tmin-height: var(--ib-button-size);\n\theight: var(--ib-button-size);\n\tmin-width: var(--ib-button-size);\n\twidth: var(--ib-button-size);\n\t&:hover {\n\t\tbackground: var(--ib-bg-color-hover);\n\t}\n}\n\n.IconButton-module_label__qWGFD {\n\tcolor: var(--ib-color);\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\tword-break: break-all;\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: 1;\n\t-webkit-box-orient: vertical;\n}\n\n.IconButton-module_icon__2DDWy {\n\tmin-height: var(--ib-icon-size);\n\theight: var(--ib-icon-size);\n\tmin-width: var(--ib-icon-size);\n\twidth: var(--ib-icon-size);\n}\n\n.IconButton-module_count__6r373 {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\ttransform: translateX(5px) translateY(-2px);\n}\n");
|
|
7
7
|
|
|
8
8
|
const IconButton = React.memo(props => {
|
|
9
|
-
const {frameSize: frameSize = 36, iconSize: iconSize = 20, round: round = !0, icon: icon = "more", borderRadius: borderRadius = 4, border: border = !1, tooltip: tooltip, color: color, colorOn: colorOn, bgColor: bgColor = "var(--core-surface-secondary)", bgColorHover: bgColorHover = "var(--core-outline-primary)", bgColorOn: bgColorOn = "var(--core-outline-primary)", iconColor: iconColor = "var(--core-text-primary)", iconColorOn: iconColorOn = "var(--core-text-primary)", iconColorHover: iconColorHover = "var(--core-text-primary)", transition: transition, variants: variants, initial: initial, animate: animate, exit: exit, fillColor: fillColor, label: label, hover: hover = !0, count: count = 0, toggle: toggle = !1, toggleIcon: toggleIcon = !1, isToggled: isToggled = !1, disabled: disabled = !1, showDot: showDot = !1, buttonSize: buttonSize = "m", onClick: onClick = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "frameSize", "iconSize", "round", "icon", "borderRadius", "border", "tooltip", "color", "colorOn", "bgColor", "bgColorHover", "bgColorOn", "iconColor", "iconColorOn", "iconColorHover", "transition", "variants", "initial", "animate", "exit", "fillColor", "label", "hover", "count", "toggle", "toggleIcon", "isToggled", "disabled", "showDot", "buttonSize", "onClick", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", ref = React.useRef(null), [on, setOn] = React.useState(isToggled), [hovered, setHovered] = React.useState(!1);
|
|
9
|
+
const {frameSize: frameSize = 36, iconSize: iconSize = 20, round: round = !0, icon: icon = "more", borderRadius: borderRadius = 4, border: border = !1, tooltip: tooltip, color: color, colorOn: colorOn, iconFill: iconFill = !1, bgColor: bgColor = "var(--core-surface-secondary)", bgColorHover: bgColorHover = "var(--core-outline-primary)", bgColorOn: bgColorOn = "var(--core-outline-primary)", iconColor: iconColor = "var(--core-text-primary)", iconColorOn: iconColorOn = "var(--core-text-primary)", iconColorHover: iconColorHover = "var(--core-text-primary)", transition: transition, variants: variants, initial: initial, animate: animate, exit: exit, fillColor: fillColor, label: label, hover: hover = !0, count: count = 0, toggle: toggle = !1, toggleIcon: toggleIcon = !1, isToggled: isToggled = !1, disabled: disabled = !1, showDot: showDot = !1, buttonSize: buttonSize = "m", onClick: onClick = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "frameSize", "iconSize", "round", "icon", "borderRadius", "border", "tooltip", "color", "colorOn", "iconFill", "bgColor", "bgColorHover", "bgColorOn", "iconColor", "iconColorOn", "iconColorHover", "transition", "variants", "initial", "animate", "exit", "fillColor", "label", "hover", "count", "toggle", "toggleIcon", "isToggled", "disabled", "showDot", "buttonSize", "onClick", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", ref = React.useRef(null), [on, setOn] = React.useState(isToggled), [hovered, setHovered] = React.useState(!1);
|
|
10
10
|
React.useEffect(() => setOn(isToggled), [ isToggled ]);
|
|
11
11
|
const handleClick = React.useCallback(e => {
|
|
12
12
|
disabled || (tooltip && onToolTip(null), toggle && setOn(!on), onClick(e));
|
|
@@ -23,22 +23,24 @@ const IconButton = React.memo(props => {
|
|
|
23
23
|
onToolTip(tip);
|
|
24
24
|
}, [ tooltip, onToolTip ]), handleMouseLeave = React.useCallback(() => {
|
|
25
25
|
setHovered(!1), tooltip && onToolTip(null);
|
|
26
|
-
}, [ tooltip, onToolTip ]), bgColorNormal = React.useMemo(() => on
|
|
26
|
+
}, [ tooltip, onToolTip ]), bgColorNormal = React.useMemo(() => on ? bgColorOn : null != bgColor ? bgColor : "var(--core-surface-secondary)", [ bgColorOn, bgColor, on ]), bgHoverColor = React.useMemo(() => hover && on ? bgColorOn : hover ? bgColorHover : null != bgColor ? bgColor : "transparent", [ hover, bgColor, bgColorOn, bgColorHover, on ]), textColor = React.useMemo(() => on ? colorOn : null != color ? color : "var(--core-text-primary)", [ on, colorOn, color ]), setIconColor = React.useMemo(() => on ? iconColorOn : hovered ? iconColorHover : null != iconColor ? iconColor : "var(--core-text-primary)", [ on, iconColorOn, iconColor, iconColorHover, hovered ]), size = React.useMemo(() => buttonSize ? "s" === buttonSize ? 24 : "m" === buttonSize ? 36 : "l" === buttonSize ? 44 : "xl" === buttonSize ? 56 : void 0 : frameSize, [ frameSize, buttonSize ]), cssVars = React.useMemo(() => ({
|
|
27
27
|
"--ib-bg-color": bgColorNormal,
|
|
28
|
-
"--ib-bg-color-hover": bgHoverColor,
|
|
29
|
-
"--ib-icon-size": `${null !=
|
|
28
|
+
"--ib-bg-color-hover": disabled ? bgColorNormal : bgHoverColor,
|
|
29
|
+
"--ib-icon-size": `${null != iconSize ? iconSize : 0}px`,
|
|
30
|
+
"--ib-button-size": `${null != size ? size : 0}px`,
|
|
30
31
|
"--ib-border-radius": round ? "100%" : `${null != borderRadius ? borderRadius : 0}px`,
|
|
31
32
|
"--ib-border": border ? "1px" : 0,
|
|
32
|
-
"--ib-color": textColor
|
|
33
|
-
|
|
33
|
+
"--ib-color": textColor,
|
|
34
|
+
"--ib-cursor": disabled ? "default" : "pointer"
|
|
35
|
+
}), [ bgColorNormal, bgHoverColor, textColor, border, size, borderRadius, iconSize, round, disabled ]);
|
|
34
36
|
return jsxRuntime.jsxs(react.motion.button, Object.assign({
|
|
35
37
|
id: divId,
|
|
36
38
|
type: "button",
|
|
37
39
|
className: `${css_button}${divClass}`,
|
|
38
40
|
style: Object.assign(Object.assign({}, divStyle), cssVars),
|
|
39
41
|
onClick: e => handleClick(e),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
onMouseOutCapture: handleMouseLeave,
|
|
43
|
+
onMouseOverCapture: handleMouseEnter,
|
|
42
44
|
transition: transition,
|
|
43
45
|
variants: variants,
|
|
44
46
|
initial: initial,
|
|
@@ -59,7 +61,8 @@ const IconButton = React.memo(props => {
|
|
|
59
61
|
fillColor: fillColor,
|
|
60
62
|
disabled: disabled,
|
|
61
63
|
size: iconSize,
|
|
62
|
-
|
|
64
|
+
fill: iconFill,
|
|
65
|
+
toggle: !!toggleIcon && on,
|
|
63
66
|
pointer: !0
|
|
64
67
|
})
|
|
65
68
|
}), label && jsxRuntime.jsx("div", {
|
|
@@ -9,7 +9,7 @@ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js");
|
|
|
9
9
|
|
|
10
10
|
require("../hooks/useWindow.js");
|
|
11
11
|
|
|
12
|
-
var Icon = require("./Icon-
|
|
12
|
+
var Icon = require("./Icon-UFrKtcYJ.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), react = require("motion/react"), css$1_wrapper = "DoneCheck-module_wrapper__AlISD flexBox-module_row__z24tF", css$1_icon = "DoneCheck-module_icon__bKaFp flexBox-module_row__z24tF";
|
|
13
13
|
|
|
14
14
|
styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.DoneCheck-module_wrapper__AlISD {\n\theight: var(--icon-height);\n\tmax-height: var(--icon-height);\n\twidth: var(--icon-width);\n\tmax-width: var(--icon-width);\n\toverflow: visible;\n}\n\n.DoneCheck-module_icon__bKaFp {\n\theight: var(--icon-height);\n\tmax-height: var(--icon-height);\n\twidth: var(--icon-width);\n\tmax-width: var(--icon-width);\n\tscale: var(--icon-scale);\n\ttransition: var(--icon-transition);\n}\n");
|
|
15
15
|
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_u
|
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js"), require("./tslib.es6-C8dZW5nY.js"), require("../hooks/useWindow.js");
|
|
7
7
|
|
|
8
|
-
var Button = require("./Button-
|
|
8
|
+
var Button = require("./Button-Dic9Rfkr.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), FileList = require("./FileList-S0Hf82-C.js"), css = {
|
|
9
9
|
wrapperBg: "PromptInput-module_wrapperBg__zabZq flexBox-module_columnStart__C7P44",
|
|
10
10
|
bgRotate: "PromptInput-module_bgRotate__Um720",
|
|
11
11
|
textareaWrapper: "PromptInput-module_textareaWrapper__KusiV flexBox-module_columnStart__C7P44",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), Icon = require("./Icon-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), Icon = require("./Icon-UFrKtcYJ.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "RadioButton-module_wrapper__-pWRe flexBox-module_row__z24tF", css_radioIcon = "RadioButton-module_radioIcon__I27Xv flexBox-module_column__ezvMq", css_radioTitle = "RadioButton-module_radioTitle__zCQII flexBox-module_rowStart__4tcxS type-module_body-m-regular__LuQBA", css_radioContent = "RadioButton-module_radioContent__38xVx flexBox-module_columnStart__C7P44";
|
|
5
5
|
|
|
6
6
|
function RadioButtonComponent(props) {
|
|
7
7
|
const {label: label, children: children, fieldName: fieldName, value: value, selected: selected = !1, controlType: controlType = "radio", deselect: deselect = !0, tabIndex: tabIndex = 0, wrap: wrap = !1, list: list = !1, hideRadio: hideRadio = !1, noFrame: noFrame = !0, icon: icon = "circle", checkedIcon: checkedIcon = "check circle", iconColor: iconColor, gap: gap = 6, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "label", "children", "fieldName", "value", "selected", "controlType", "deselect", "tabIndex", "wrap", "list", "hideRadio", "noFrame", "icon", "checkedIcon", "iconColor", "gap", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isSelected, setIsSelected] = React.useState(selected);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), RadioButton = require("./RadioButton-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), RadioButton = require("./RadioButton-JBNaNihZ.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "RadioButtonList-module_wrapper__wnq1-", css_column = "RadioButtonList-module_column__Bq16e flexBox-module_columnStart__C7P44", css_row = "RadioButtonList-module_row__D3szq flexBox-module_rowStart__4tcxS";
|
|
5
5
|
|
|
6
6
|
function RadioButtonListComponent(props) {
|
|
7
7
|
const {width: width = "min-content", options: options = [], selectedIndexes: selectedIndexes = null, selectedOptions: selectedOptions = null, label: label = null, deselect: deselect = !1, multiSelect: multiSelect = !1, wrap: wrap = !1, tabIndexSeed: tabIndexSeed = 0, spacer: spacer = "none", custom: custom = 0, gap: gap = 16, hideRadio: hideRadio = !1, noFrame: noFrame = !0, toggleIcon: toggleIcon = !0, iconColor: iconColor, icon: icon = "circle", checkedIcon: checkedIcon = "check circle", iconSelectedColor: iconSelectedColor, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "width", "options", "selectedIndexes", "selectedOptions", "label", "deselect", "multiSelect", "wrap", "tabIndexSeed", "spacer", "custom", "gap", "hideRadio", "noFrame", "toggleIcon", "iconColor", "icon", "checkedIcon", "iconSelectedColor", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", labelId = React.useId(), [selected, setSelected] = React.useState(selectedIndexes);
|