@apple-pie/slice 0.0.4 → 0.0.6
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/README.md +13 -6
- package/dist/cjs/chunks/{Avatar-8-wPWe0V.js → Avatar-z2YcOAoP.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-CVKmgBbD.js → AvatarGroup-Cz8369zI.js} +1 -1
- package/dist/cjs/chunks/{Badge-CMapJCij.js → Badge-COSg__VJ.js} +1 -1
- package/dist/cjs/chunks/{UIButton-W-WjUvVm.js → Button-BNXqiA13.js} +28 -33
- package/dist/cjs/chunks/{UIButtonBar-FvX4kB-s.js → ButtonBar-CeDdAOlH.js} +5 -5
- package/dist/cjs/chunks/{UICard-DBDSyT7E.js → Card-Cc_c-S7i.js} +5 -5
- package/dist/cjs/chunks/{CheckBox-7AACxrdZ.js → CheckBox-hTWIPqV_.js} +2 -2
- package/dist/cjs/chunks/{UIChip-kjhvRrOV.js → Chip-CLKVldi4.js} +5 -5
- package/dist/cjs/chunks/{DivInput-BKKJTFeV.js → DivInput-DnY2emt-.js} +2 -2
- package/dist/cjs/chunks/{DrggablePanel-C6TPsDB-.js → DrggablePanel-BtsURL9o.js} +1 -1
- package/dist/cjs/chunks/{DropDown-D9sf_m2I.js → DropDown-COr9u96t.js} +2 -2
- package/dist/cjs/chunks/{ErrorSummary-Dv44onsV.js → ErrorSummary-BrSHbGpk.js} +1 -1
- package/dist/cjs/chunks/FileIcon-CEMQK_Je.js +132 -0
- package/dist/cjs/chunks/FileList-BHMne9Mr.js +163 -0
- package/dist/cjs/chunks/{FlexDiv-DZBpswHV.js → FlexDiv-BHl29ywz.js} +1 -1
- package/dist/cjs/chunks/{Grouper-_kd2nU78.js → Grouper-EyHoeA8w.js} +3 -3
- package/dist/cjs/chunks/{IconButton-CjiNliPL.js → IconButton-9QZ4eKBZ.js} +3 -3
- package/dist/cjs/chunks/{UILabel-DpMIPlZO.js → Label-s1aCv2Y1.js} +17 -7
- package/dist/cjs/chunks/{Pager--55eRDdu.js → Pager-CRjpl1FZ.js} +1 -1
- package/dist/cjs/chunks/PromptInput-CfzofBTJ.js +212 -0
- package/dist/cjs/chunks/{RadioButton--k2YFFEG.js → RadioButton-DA9YUGEF.js} +2 -2
- package/dist/cjs/chunks/{RadioButtonList-D99mA5EZ.js → RadioButtonList-BtsT7GJc.js} +1 -1
- package/dist/cjs/chunks/{Slider-C-gn7Sby.js → Slider-CqrIwn-L.js} +1 -1
- package/dist/cjs/chunks/{TabBar-CqnPPTFy.js → TabBar-WsNlr-aZ.js} +4 -4
- package/dist/cjs/chunks/{TextArea-CWr6mi3Q.js → TextArea-BMJWUH2H.js} +3 -3
- package/dist/cjs/chunks/{TextField-BTyhrsbK.js → TextField-mfwz79cD.js} +5 -5
- package/dist/cjs/chunks/{Tip-DnLgI7WY.js → Tip-Af6FMEDi.js} +2 -2
- package/dist/cjs/chunks/{Toast-CTCc6Cyl.js → Toast-CxAEOW4z.js} +17 -4
- package/dist/cjs/chunks/UploadArea-DunGYE1_.js +155 -0
- package/dist/cjs/chunks/{_types-CoWzQFsT.js → _types-BNlHsGMQ.js} +2 -2
- package/dist/cjs/chunks/{utils-CbayehuI.js → utils-BwNacfBU.js} +2 -0
- package/dist/cjs/chunks/windowStore-CPcVHJq6.js +93 -0
- package/dist/cjs/hooks/useKeyboardShortcuts.js +3 -1
- package/dist/cjs/hooks/useObserveTheme.js +14 -8
- package/dist/cjs/hooks/useTrackRenders.js +2 -1
- package/dist/cjs/hooks/useWindow.js +29 -7
- package/dist/cjs/index.js +53 -38
- package/dist/cjs/providers/ThemeProvider.js +6 -3
- package/dist/cjs/stores/window.js +12 -0
- package/dist/cjs/stores.js +6 -0
- package/dist/cjs/theme/type.js +99 -18
- package/dist/cjs/uikit/Avatar.js +1 -1
- package/dist/cjs/uikit/AvatarGroup.js +2 -2
- package/dist/cjs/uikit/Badge.js +1 -1
- package/dist/cjs/uikit/{UIButton.js → Button.js} +7 -7
- package/dist/cjs/uikit/{UIButtonBar.js → ButtonBar.js} +6 -6
- package/dist/cjs/uikit/{UICard.js → Card.js} +4 -4
- package/dist/cjs/uikit/CheckBox.js +3 -3
- package/dist/cjs/uikit/{UIChip.js → Chip.js} +4 -4
- package/dist/cjs/uikit/DivInput.js +2 -2
- package/dist/cjs/uikit/DraggablePanel.js +2 -2
- package/dist/cjs/uikit/DropDown.js +3 -3
- package/dist/cjs/uikit/ErrorSummary.js +1 -1
- package/dist/cjs/uikit/{UIFileIcon.js → FileIcon.js} +7 -2
- package/dist/cjs/uikit/FileList.js +24 -0
- package/dist/cjs/uikit/FlexDiv.js +1 -1
- package/dist/cjs/uikit/Grouper.js +4 -4
- package/dist/cjs/uikit/Icon.js +2 -2
- package/dist/cjs/uikit/IconButton.js +4 -4
- package/dist/cjs/uikit/{UILabel.js → Label.js} +3 -3
- package/dist/cjs/uikit/Pager.js +2 -2
- package/dist/cjs/uikit/{MessageInput.js → PromptInput.js} +10 -11
- package/dist/cjs/uikit/RadioButton.js +5 -5
- package/dist/cjs/uikit/RadioButtonList.js +6 -6
- package/dist/cjs/uikit/Slider.js +2 -2
- package/dist/cjs/uikit/TabBar.js +5 -5
- package/dist/cjs/uikit/TextArea.js +7 -7
- package/dist/cjs/uikit/Textfield.js +7 -7
- package/dist/cjs/uikit/Tip.js +2 -2
- package/dist/cjs/uikit/Toast.js +3 -3
- package/dist/cjs/uikit/UploadArea.js +31 -0
- package/dist/css/type.module.css +55 -10
- package/dist/esm/chunks/{Avatar-D_muqPrW.js → Avatar-BtkvMV1v.js} +1 -1
- package/dist/esm/chunks/{AvatarGroup-D8Xmrn52.js → AvatarGroup-pbqdS56o.js} +1 -1
- package/dist/esm/chunks/{Badge-PPf5Uvw3.js → Badge-DtxDLSO0.js} +1 -1
- package/dist/esm/chunks/{UIButton-HssaFaip.js → Button-BUJkJqdO.js} +28 -33
- package/dist/esm/chunks/{UIButtonBar-CUat663I.js → ButtonBar-Bl0oCxd8.js} +5 -5
- package/dist/esm/chunks/{UICard-Dn5f3wg8.js → Card-Bjk0kgQh.js} +5 -5
- package/dist/esm/chunks/{CheckBox-CswFI0Xc.js → CheckBox-CvkZuSeB.js} +2 -2
- package/dist/esm/chunks/{UIChip-DqnGeVyR.js → Chip-o-YG_HAf.js} +5 -5
- package/dist/esm/chunks/{DivInput-iKFkeU2F.js → DivInput-D6ORPrkT.js} +2 -2
- package/dist/esm/chunks/{DrggablePanel-CYYwTmFd.js → DrggablePanel-DWrTjXvf.js} +1 -1
- package/dist/esm/chunks/{DropDown-D4t6EhKL.js → DropDown-BDIvYWI-.js} +2 -2
- package/dist/esm/chunks/{ErrorSummary-DhU5SKPt.js → ErrorSummary-DzDnacH0.js} +1 -1
- package/dist/esm/chunks/FileIcon-Cxh-QsYb.js +130 -0
- package/dist/esm/chunks/FileList-CdUgbpYF.js +161 -0
- package/dist/esm/chunks/{FlexDiv-CmMpORgn.js → FlexDiv-CFyndG99.js} +1 -1
- package/dist/esm/chunks/{Grouper-BbreOXI9.js → Grouper-NJbpaaQG.js} +3 -3
- package/dist/esm/chunks/{IconButton-hJDuWiDh.js → IconButton-3m9ugITV.js} +3 -3
- package/dist/esm/chunks/{UILabel-CpLi8OLx.js → Label-BRon-ejm.js} +17 -7
- package/dist/esm/chunks/{Pager-Beht2NyO.js → Pager-BHLyXq9p.js} +1 -1
- package/dist/esm/chunks/PromptInput-DodTBG82.js +210 -0
- package/dist/esm/chunks/{RadioButton-C4EhaRlp.js → RadioButton-D8otD_Jj.js} +2 -2
- package/dist/esm/chunks/{RadioButtonList-iVlML5jt.js → RadioButtonList-CtX1j7rO.js} +1 -1
- package/dist/esm/chunks/{Slider-C-PcWqTz.js → Slider-O6UelMjh.js} +1 -1
- package/dist/esm/chunks/{TabBar-CMfPQJj-.js → TabBar-C0NgwRa2.js} +4 -4
- package/dist/esm/chunks/{TextArea-CiHIh1P_.js → TextArea-DK0giDGR.js} +3 -3
- package/dist/esm/chunks/{TextField-6wse4On1.js → TextField-CQ4XYYNm.js} +5 -5
- package/dist/esm/chunks/{Tip-CeN0gy3B.js → Tip-iFECDhwN.js} +2 -2
- package/dist/esm/chunks/{Toast-C9P_ptX5.js → Toast-ZxMZtbd0.js} +17 -4
- package/dist/esm/chunks/UploadArea-C0YHy4Z9.js +147 -0
- package/dist/esm/chunks/{_types-BaYeLEWK.js → _types-RJ7q8S0B.js} +2 -2
- package/dist/esm/chunks/{utils-BRZK2Drn.js → utils-CZ1LWeN6.js} +2 -0
- package/dist/esm/chunks/windowStore-Cu4W4zJM.js +91 -0
- package/dist/esm/hooks/useKeyboardShortcuts.js +3 -1
- package/dist/esm/hooks/useObserveTheme.js +14 -8
- package/dist/esm/hooks/useTrackRenders.js +2 -1
- package/dist/esm/hooks/useWindow.js +30 -8
- package/dist/esm/index.js +31 -30
- package/dist/esm/providers/ThemeProvider.js +6 -3
- package/dist/esm/stores/window.js +2 -0
- package/dist/esm/stores.js +1 -0
- package/dist/esm/theme/type.js +99 -18
- package/dist/esm/uikit/Avatar.js +1 -1
- package/dist/esm/uikit/AvatarGroup.js +2 -2
- package/dist/esm/uikit/Badge.js +1 -1
- package/dist/esm/uikit/{UIButton.js → Button.js} +6 -6
- package/dist/esm/uikit/{UIButtonBar.js → ButtonBar.js} +5 -5
- package/dist/esm/uikit/{UICard.js → Card.js} +3 -3
- package/dist/esm/uikit/CheckBox.js +3 -3
- package/dist/esm/uikit/{UIChip.js → Chip.js} +3 -3
- package/dist/esm/uikit/DivInput.js +2 -2
- package/dist/esm/uikit/DraggablePanel.js +2 -2
- package/dist/esm/uikit/DropDown.js +3 -3
- package/dist/esm/uikit/ErrorSummary.js +1 -1
- package/dist/esm/uikit/{UIFileIcon.js → FileIcon.js} +2 -1
- package/dist/esm/uikit/FileList.js +18 -0
- package/dist/esm/uikit/FlexDiv.js +1 -1
- package/dist/esm/uikit/Grouper.js +4 -4
- package/dist/esm/uikit/Icon.js +2 -2
- package/dist/esm/uikit/IconButton.js +4 -4
- package/dist/esm/uikit/{UILabel.js → Label.js} +2 -2
- package/dist/esm/uikit/Pager.js +2 -2
- package/dist/esm/uikit/{MessageInput.js → PromptInput.js} +9 -10
- package/dist/esm/uikit/RadioButton.js +5 -5
- package/dist/esm/uikit/RadioButtonList.js +6 -6
- package/dist/esm/uikit/Slider.js +2 -2
- package/dist/esm/uikit/TabBar.js +5 -5
- package/dist/esm/uikit/TextArea.js +7 -7
- package/dist/esm/uikit/Textfield.js +7 -7
- package/dist/esm/uikit/Tip.js +2 -2
- package/dist/esm/uikit/Toast.js +3 -3
- package/dist/esm/uikit/{EditorButtonBar.js → UploadArea.js} +8 -11
- package/dist/types/hooks/index.d.ts +1 -1
- package/dist/types/hooks/useKeyboardShortcuts/useKeyboardShortcuts.d.ts +1 -0
- package/dist/types/hooks/useWindow/useWindow.d.ts +11 -2
- package/dist/types/index.d.ts +20 -21
- package/dist/types/providers/ThemeProvider.d.ts +1 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/dist/types/stores/window/_types.d.ts +28 -0
- package/dist/types/stores/window/index.d.ts +2 -0
- package/dist/types/stores/window/windowStore.d.ts +17 -0
- package/dist/types/theme/type/types.d.ts +5 -0
- package/dist/types/uikit/{UIButton/UIButton.d.ts → Button/Button.d.ts} +3 -3
- package/dist/types/uikit/{UIButton → Button}/_types.d.ts +3 -3
- package/dist/types/uikit/Button/index.d.ts +2 -0
- package/dist/types/uikit/ButtonBar/ButtonBar.d.ts +2 -0
- package/dist/types/uikit/{UIButtonBar → ButtonBar}/_types.d.ts +2 -2
- package/dist/types/uikit/ButtonBar/index.d.ts +2 -0
- package/dist/types/uikit/Card/Card.d.ts +3 -0
- package/dist/types/uikit/{UICard → Card}/_types.d.ts +2 -2
- package/dist/types/uikit/Card/index.d.ts +2 -0
- package/dist/types/uikit/Chip/Chip.d.ts +3 -0
- package/dist/types/uikit/{UIChip → Chip}/_types.d.ts +2 -2
- package/dist/types/uikit/Chip/index.d.ts +3 -0
- package/dist/types/uikit/FileIcon/FileIcon.d.ts +3 -0
- package/dist/types/uikit/FileIcon/_types.d.ts +27 -0
- package/dist/types/uikit/FileIcon/fileIconRegistry.d.ts +4 -0
- package/dist/types/uikit/FileIcon/index.d.ts +3 -0
- package/dist/types/uikit/FileList/FileList.d.ts +3 -0
- package/dist/types/uikit/FileList/_types.d.ts +24 -0
- package/dist/types/uikit/FileList/index.d.ts +2 -0
- package/dist/types/uikit/Label/Label.d.ts +2 -0
- package/dist/types/uikit/{UILabel → Label}/_types.d.ts +3 -2
- package/dist/types/uikit/Label/index.d.ts +2 -0
- package/dist/types/uikit/PromptInput/PromptInput.d.ts +63 -0
- package/dist/types/uikit/PromptInput/_types.d.ts +35 -0
- package/dist/types/uikit/PromptInput/index.d.ts +2 -0
- package/dist/types/uikit/UploadArea/UploadArea.d.ts +54 -0
- package/dist/types/uikit/UploadArea/_types.d.ts +46 -0
- package/dist/types/uikit/UploadArea/index.d.ts +3 -0
- package/dist/types/util/files.d.ts +9 -0
- package/dist/types/util/utils.d.ts +8 -0
- package/package.json +5 -2
- package/dist/cjs/chunks/EditorButtonBar-Gaxq4gul.js +0 -244
- package/dist/cjs/chunks/MessageInput-YV8cqU8h.js +0 -399
- package/dist/cjs/chunks/UIFileIcon-ZrbDIeYz.js +0 -54
- package/dist/cjs/uikit/EditorButtonBar.js +0 -28
- package/dist/esm/chunks/EditorButtonBar-15cTeQ-H.js +0 -242
- package/dist/esm/chunks/MessageInput-DByI4x7h.js +0 -397
- package/dist/esm/chunks/UIFileIcon-qGxIPsJJ.js +0 -52
- package/dist/types/uikit/EditorButtonBar/EditorButtonBar.d.ts +0 -4
- package/dist/types/uikit/EditorButtonBar/_Data.d.ts +0 -12
- package/dist/types/uikit/EditorButtonBar/_types.d.ts +0 -61
- package/dist/types/uikit/EditorButtonBar/index.d.ts +0 -2
- package/dist/types/uikit/MessageInput/ExcerptList/ExcerptList.d.ts +0 -2
- package/dist/types/uikit/MessageInput/ExcerptList/_types.d.ts +0 -15
- package/dist/types/uikit/MessageInput/FileList/FileList.d.ts +0 -2
- package/dist/types/uikit/MessageInput/FileList/_types.d.ts +0 -6
- package/dist/types/uikit/MessageInput/InputField/MessageInput.d.ts +0 -2
- package/dist/types/uikit/MessageInput/InputField/_types.d.ts +0 -39
- package/dist/types/uikit/MessageInput/UserList/UserList.d.ts +0 -5
- package/dist/types/uikit/MessageInput/UserList/_types.d.ts +0 -40
- package/dist/types/uikit/MessageInput/_Data.d.ts +0 -6
- package/dist/types/uikit/MessageInput/_types.d.ts +0 -42
- package/dist/types/uikit/MessageInput/index.d.ts +0 -4
- package/dist/types/uikit/UIButton/index.d.ts +0 -2
- package/dist/types/uikit/UIButtonBar/UIButtonBar.d.ts +0 -2
- package/dist/types/uikit/UIButtonBar/index.d.ts +0 -2
- package/dist/types/uikit/UICard/UICard.d.ts +0 -3
- package/dist/types/uikit/UICard/index.d.ts +0 -2
- package/dist/types/uikit/UIChip/UIChip.d.ts +0 -3
- package/dist/types/uikit/UIChip/index.d.ts +0 -3
- package/dist/types/uikit/UIFileIcon/UIFileIcon.d.ts +0 -3
- package/dist/types/uikit/UIFileIcon/_types.d.ts +0 -19
- package/dist/types/uikit/UIFileIcon/index.d.ts +0 -2
- package/dist/types/uikit/UILabel/UILabel.d.ts +0 -2
- package/dist/types/uikit/UILabel/index.d.ts +0 -2
|
@@ -4,10 +4,10 @@ var tslib_es6 = require('./tslib.es6-4H29ixHs.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var react = require('motion/react');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var utils = require('./utils-
|
|
7
|
+
var utils = require('./utils-BwNacfBU.js');
|
|
8
8
|
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
9
9
|
|
|
10
|
-
var css_248z = ".flexBox-module_row__PWxbe {\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__27lKK {\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__nJZnW {\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__dHcOU {\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__MP2Xd {\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__Kg8cV {\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__zcmtk {\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__157yI {\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__u2nwI {\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__QWEzl {\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__FxEAv {\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__rf7AV {\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__8-FO- {\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__qyYq- {\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__7GQ5Z {\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__Qtp5G {\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__Ieh9K {\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__0lZ3I {\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__Ar4d3 {\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__6tV1n {\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__I8Q1v {\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_heading-s-
|
|
10
|
+
var css_248z = ".flexBox-module_row__PWxbe {\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__27lKK {\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__nJZnW {\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__dHcOU {\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__MP2Xd {\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__Kg8cV {\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__zcmtk {\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__157yI {\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__u2nwI {\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__QWEzl {\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__FxEAv {\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__rf7AV {\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__8-FO- {\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__qyYq- {\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__7GQ5Z {\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__Qtp5G {\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__Ieh9K {\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__0lZ3I {\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__Ar4d3 {\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__6tV1n {\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__I8Q1v {\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__zDf-z {\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__R5GpK {\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__SI-hC {\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__jGIb2 {\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__QFgN8 {\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__tdBSi {\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__-7Uyu {\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__8hGYF {\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__Cryjg {\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__PUi44 {\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__1B6fk {\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.Tip-module_wrapper__5Oi05 {\n\tpadding: var(--tooltip-padding) !important;\n\tposition: fixed;\n\tborder: var(--tooltip-border);\n\tborder-radius: var(--tooltip-border-radius);\n\tbackground: var(--tooltip-background);\n\tz-index: var(--elevation-describe);\n}\n\n.Tip-module_s__URuK6 {\n}\n\n.Tip-module_m__A1uk0 {\n}\n.Tip-module_l__kNOKI {\n}\n";
|
|
11
11
|
var css = {"wrapper":"Tip-module_wrapper__5Oi05 flexBox-module_rowStart__nJZnW","s":"Tip-module_s__URuK6 type-module_body-s-regular__8-FO-","m":"Tip-module_m__A1uk0 type-module_body-m-regular__Qtp5G","l":"Tip-module_l__kNOKI type-module_body-l-regular__Ar4d3"};
|
|
12
12
|
styleInject_es.styleInject(css_248z);
|
|
13
13
|
|
|
@@ -7,11 +7,11 @@ var React = require('react');
|
|
|
7
7
|
var hooks_useTheme = require('../hooks/useTheme.js');
|
|
8
8
|
require('../theme/colors.js');
|
|
9
9
|
require('../hooks/useWindow.js');
|
|
10
|
-
var utils = require('./utils-
|
|
11
|
-
var _types = require('./_types-
|
|
10
|
+
var utils = require('./utils-BwNacfBU.js');
|
|
11
|
+
var _types = require('./_types-BNlHsGMQ.js');
|
|
12
12
|
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
13
13
|
|
|
14
|
-
var css_248z = ".flexBox-module_row__PWxbe {\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__27lKK {\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__nJZnW {\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__dHcOU {\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__MP2Xd {\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__Kg8cV {\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__zcmtk {\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__157yI {\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__u2nwI {\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__QWEzl {\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__FxEAv {\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__rf7AV {\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__8-FO- {\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__qyYq- {\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__7GQ5Z {\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__Qtp5G {\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__Ieh9K {\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__0lZ3I {\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__Ar4d3 {\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__6tV1n {\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__I8Q1v {\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_heading-s-
|
|
14
|
+
var css_248z = ".flexBox-module_row__PWxbe {\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__27lKK {\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__nJZnW {\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__dHcOU {\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__MP2Xd {\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__Kg8cV {\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__zcmtk {\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__157yI {\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__u2nwI {\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__QWEzl {\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__FxEAv {\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__rf7AV {\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__8-FO- {\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__qyYq- {\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__7GQ5Z {\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__Qtp5G {\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__Ieh9K {\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__0lZ3I {\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__Ar4d3 {\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__6tV1n {\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__I8Q1v {\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__zDf-z {\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__R5GpK {\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__SI-hC {\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__jGIb2 {\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__QFgN8 {\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__tdBSi {\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__-7Uyu {\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__8hGYF {\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__Cryjg {\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__PUi44 {\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__1B6fk {\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.Toast-module_wrapper__WglRd {\n\tpadding: var(--toast-padding) !important;\n\tcolor: var(--toast-color);\n\tposition: fixed;\n\tborder: var(--toast-border);\n\tborder-radius: var(--toast-border-radius);\n\tbackground: var(--toast-background);\n\tz-index: var(--elevation-status);\n\tgap: 16px;\n\tbox-shadow: var(--surface-shadow-soft);\n\tleft: 50%;\n\ttransform: translateX(-50%);\n}\n\n.Toast-module_close__fIkbN {\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tmin-width: 20px;\n\tmax-width: 20px;\n}\n\n.Toast-module_s__eexrd {\n}\n\n.Toast-module_m__eByaG {\n}\n.Toast-module_l__t7hfh {\n}\n";
|
|
15
15
|
var css = {"wrapper":"Toast-module_wrapper__WglRd flexBox-module_rowBetween__27lKK","close":"Toast-module_close__fIkbN flexBox-module_row__PWxbe","s":"Toast-module_s__eexrd type-module_body-s-regular__8-FO-","m":"Toast-module_m__eByaG type-module_body-m-regular__Qtp5G","l":"Toast-module_l__t7hfh type-module_body-l-regular__Ar4d3"};
|
|
16
16
|
styleInject_es.styleInject(css_248z);
|
|
17
17
|
|
|
@@ -137,7 +137,20 @@ const ToastBase = React.forwardRef((props, ref) => {
|
|
|
137
137
|
}, duration);
|
|
138
138
|
}
|
|
139
139
|
}, [duration]);
|
|
140
|
-
|
|
140
|
+
// memo icon color based on type
|
|
141
|
+
const iconColor = React.useMemo(() => {
|
|
142
|
+
switch (type) {
|
|
143
|
+
case exports.ToastType.Error:
|
|
144
|
+
return theme.current.colors['feedback-warning'];
|
|
145
|
+
case exports.ToastType.Success:
|
|
146
|
+
return theme.current.colors['array-land-label'];
|
|
147
|
+
case exports.ToastType.Warning:
|
|
148
|
+
return theme.current.colors['array-orange-label'];
|
|
149
|
+
default:
|
|
150
|
+
return theme.current.colors['core-text-primary'];
|
|
151
|
+
}
|
|
152
|
+
}, [type, theme]);
|
|
153
|
+
return (jsxRuntime.jsx(react.AnimatePresence, { onExitComplete: () => didHide(), initial: false, children: ready && (jsxRuntime.jsxs(react.motion.div, Object.assign({ ref: ref, id: divId, className: classNames }, rest, { onMouseEnter: handleMouseOver, onMouseLeave: handleMouseOut, onFocus: handleMouseOver, onBlur: handleMouseOut, style: Object.assign(Object.assign(Object.assign({}, divStyle), cssVars), { visibility: ready ? 'visible' : 'hidden' }), variants: variants, initial: 'initial', animate: 'animate', exit: 'exit', children: [jsxRuntime.jsx("div", { role: 'status', "aria-live": 'polite', className: css.message, children: content }), (duration === 'Infinite' || close) && (jsxRuntime.jsx("div", { className: css.close, tabIndex: 0, role: 'button', "aria-label": 'dismiss message', onKeyDown: (e) => utils.accessibleKeyDown(e, handleClose), onClick: handleClose, children: jsxRuntime.jsx(_types.Icon, { name: 'x', size: 20, strokeColor: iconColor }) }))] }))) }));
|
|
141
154
|
});
|
|
142
155
|
ToastBase.displayName = 'Toast';
|
|
143
156
|
const Toast = React.memo(ToastBase);
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var utils = require('./utils-BwNacfBU.js');
|
|
6
|
+
var FileList = require('./FileList-BHMne9Mr.js');
|
|
7
|
+
var _types = require('./_types-BNlHsGMQ.js');
|
|
8
|
+
var ProgressIndicator = require('./ProgressIndicator-BAwAaw58.js');
|
|
9
|
+
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
10
|
+
|
|
11
|
+
var css_248z = ".flexBox-module_row__PWxbe {\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__27lKK {\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__nJZnW {\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__dHcOU {\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__MP2Xd {\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__Kg8cV {\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__zcmtk {\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__157yI {\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__u2nwI {\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__QWEzl {\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__FxEAv {\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__rf7AV {\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__8-FO- {\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__qyYq- {\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__7GQ5Z {\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__Qtp5G {\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__Ieh9K {\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__0lZ3I {\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__Ar4d3 {\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__6tV1n {\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__I8Q1v {\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__zDf-z {\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__R5GpK {\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__SI-hC {\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__jGIb2 {\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__QFgN8 {\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__tdBSi {\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__-7Uyu {\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__8hGYF {\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__Cryjg {\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__PUi44 {\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__1B6fk {\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.UploadArea-module_wrapper__CRGxX {\n\tpadding: var(--ua-padding) !important;\n\tborder: var(--ua-border) var(--ua-border-style) var(--ua-border-color);\n\tborder-radius: var(--ua-radius);\n\tbackground: var(--ua-bg-color);\n\tgap: 8px;\n\tcursor: var(--ua-cursor);\n\twidth: var(--ua-width);\n\theight: var(--ua-height);\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n.UploadArea-module_icon__BorsB {\n\tmin-height: var(--ua-icon-size);\n\theight: var(--ua-icon-size);\n\tmin-width: var(--ua-icon-size);\n\twidth: var(--ua-icon-size);\n\tpointer-events: none;\n}\n\n.UploadArea-module_title__cHPKW {\n\tpointer-events: none;\n}\n\n.UploadArea-module_message__cnoa7 {\n\tcolor: var(--core-text-tertiary);\n\tpointer-events: none;\n\tgap: 8px;\n}\n\n.UploadArea-module_files__hIz4K {\n\tmargin-top: 16px !important;\n\twidth: 100%;\n}\n\n.UploadArea-module_xs__MTB7z {\n}\n\n.UploadArea-module_s__w0unZ {\n}\n\n.UploadArea-module_m__N4PzX {\n}\n\n.UploadArea-module_l__2GkSv {\n}\n";
|
|
12
|
+
var css = {"wrapper":"UploadArea-module_wrapper__CRGxX flexBox-module_column__MP2Xd","icon":"UploadArea-module_icon__BorsB flexBox-module_row__PWxbe","title":"UploadArea-module_title__cHPKW type-module_body-l-bold__I8Q1v","message":"UploadArea-module_message__cnoa7 flexBox-module_row__PWxbe","files":"UploadArea-module_files__hIz4K flexBox-module_column__MP2Xd","xs":"UploadArea-module_xs__MTB7z type-module_body-xs-regular__QWEzl","s":"UploadArea-module_s__w0unZ type-module_body-s-regular__8-FO-","m":"UploadArea-module_m__N4PzX type-module_body-m-regular__Qtp5G","l":"UploadArea-module_l__2GkSv type-module_body-l-regular__Ar4d3"};
|
|
13
|
+
styleInject_es.styleInject(css_248z);
|
|
14
|
+
|
|
15
|
+
const imageTypes = ['png', 'jpg', 'jpeg', 'gif', 'svg', 'heic', 'heif'];
|
|
16
|
+
const videoTypes = ['mp4', 'avi', 'mov', 'wmv', 'flv'];
|
|
17
|
+
const documentTypes = [
|
|
18
|
+
'pdf',
|
|
19
|
+
'doc',
|
|
20
|
+
'docx',
|
|
21
|
+
'xls',
|
|
22
|
+
'xlsx',
|
|
23
|
+
'ppt',
|
|
24
|
+
'pptx',
|
|
25
|
+
];
|
|
26
|
+
const audioTypes = ['mp3', 'wav', 'ogg', 'aac', 'flac'];
|
|
27
|
+
const textTypes = ['txt', 'rtf', 'md', 'csv', 'json', 'xml'];
|
|
28
|
+
const allTypes = [
|
|
29
|
+
...imageTypes,
|
|
30
|
+
...videoTypes,
|
|
31
|
+
...documentTypes,
|
|
32
|
+
...audioTypes,
|
|
33
|
+
...textTypes,
|
|
34
|
+
];
|
|
35
|
+
var FileTypes;
|
|
36
|
+
(function (FileTypes) {
|
|
37
|
+
FileTypes["images"] = "images";
|
|
38
|
+
FileTypes["videos"] = "videos";
|
|
39
|
+
FileTypes["documents"] = "documents";
|
|
40
|
+
FileTypes["audio"] = "audio";
|
|
41
|
+
FileTypes["text"] = "text";
|
|
42
|
+
FileTypes["all"] = "all";
|
|
43
|
+
FileTypes["custom"] = "custom";
|
|
44
|
+
})(FileTypes || (FileTypes = {}));
|
|
45
|
+
|
|
46
|
+
const UploadAreaBase = React.forwardRef((props, ref) => {
|
|
47
|
+
const { icon = 'upload', iconColor = 'var(--core-text-primary)', iconColorHover = 'var(--core-text-special)', title = 'Upload Files', width = '100%', height = 'auto', message = 'Drag and drop files here or click to upload', busyMessage = 'Uploading in progress', iconSize = 24, textSize = 'm', border = 1, borderStyle = 'dashed', borderColor = 'var(--core-outline-primary)', borderColorHover = 'var(--core-outline-special)', radius = 8, padding = 32, bgColor = 'var(--core-surface-secondary)', bgColorHover = 'var(--core-surface-special)', acceptedTypes = allTypes, multiple = true, busy = false, canRemove = true, showProgress = true, files = [], onUpload, } = props;
|
|
48
|
+
const [hovered, setHovered] = React.useState(false);
|
|
49
|
+
const inputRef = React.useRef(null);
|
|
50
|
+
const dragDepth = React.useRef(0);
|
|
51
|
+
// set uploading files
|
|
52
|
+
// *** select files
|
|
53
|
+
// callback to trigger click
|
|
54
|
+
const handleClickUpload = React.useCallback(() => {
|
|
55
|
+
var _a;
|
|
56
|
+
if (busy)
|
|
57
|
+
return;
|
|
58
|
+
if (!(inputRef === null || inputRef === void 0 ? void 0 : inputRef.current))
|
|
59
|
+
return;
|
|
60
|
+
inputRef.current.value = '';
|
|
61
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click();
|
|
62
|
+
}, [busy]);
|
|
63
|
+
// call back on file change
|
|
64
|
+
const handleFileInputChange = React.useCallback((e) => {
|
|
65
|
+
if (busy)
|
|
66
|
+
return;
|
|
67
|
+
if (!e.target.files)
|
|
68
|
+
return;
|
|
69
|
+
onUpload === null || onUpload === void 0 ? void 0 : onUpload(Array.from(e.target.files));
|
|
70
|
+
}, [busy, onUpload]);
|
|
71
|
+
// *** drag/drop
|
|
72
|
+
// check for files to light up hover
|
|
73
|
+
const hasFilesInDrag = React.useCallback((e) => {
|
|
74
|
+
var _a, _b;
|
|
75
|
+
return Array.from((_b = (_a = e.dataTransfer) === null || _a === void 0 ? void 0 : _a.types) !== null && _b !== void 0 ? _b : []).includes('Files');
|
|
76
|
+
}, []);
|
|
77
|
+
// use counters for responsive feedback
|
|
78
|
+
const handleDragEnter = React.useCallback((e) => {
|
|
79
|
+
e.preventDefault();
|
|
80
|
+
if (busy || !hasFilesInDrag(e))
|
|
81
|
+
return;
|
|
82
|
+
dragDepth.current += 1;
|
|
83
|
+
if (dragDepth.current === 1)
|
|
84
|
+
setHovered(true);
|
|
85
|
+
}, [busy, hasFilesInDrag]);
|
|
86
|
+
// prevent default since "drop" happens when "over"
|
|
87
|
+
const handleDragOver = (e) => {
|
|
88
|
+
e.preventDefault();
|
|
89
|
+
};
|
|
90
|
+
// at 0 hover is over
|
|
91
|
+
const handleDragLeave = React.useCallback((e) => {
|
|
92
|
+
e.preventDefault();
|
|
93
|
+
if (busy)
|
|
94
|
+
return;
|
|
95
|
+
dragDepth.current = Math.max(0, dragDepth.current - 1);
|
|
96
|
+
if (dragDepth.current === 0)
|
|
97
|
+
setHovered(false);
|
|
98
|
+
}, [busy]);
|
|
99
|
+
// handle drop
|
|
100
|
+
const handleDrop = React.useCallback((e) => {
|
|
101
|
+
var _a;
|
|
102
|
+
e.preventDefault();
|
|
103
|
+
if (busy)
|
|
104
|
+
return;
|
|
105
|
+
dragDepth.current = 0;
|
|
106
|
+
setHovered(false);
|
|
107
|
+
const files = Array.from((_a = e.dataTransfer.files) !== null && _a !== void 0 ? _a : []);
|
|
108
|
+
onUpload === null || onUpload === void 0 ? void 0 : onUpload(files);
|
|
109
|
+
}, [busy, onUpload]);
|
|
110
|
+
// icon color
|
|
111
|
+
const iconStrokeColor = React.useMemo(() => {
|
|
112
|
+
if (hovered)
|
|
113
|
+
return iconColorHover;
|
|
114
|
+
return iconColor;
|
|
115
|
+
}, [hovered, iconColor, iconColorHover]);
|
|
116
|
+
const cssVars = React.useMemo(() => {
|
|
117
|
+
return {
|
|
118
|
+
'--ua-border': `${border}px`,
|
|
119
|
+
'--ua-border-style': borderStyle,
|
|
120
|
+
'--ua-border-color': hovered || busy ? borderColorHover : borderColor,
|
|
121
|
+
'--ua-radius': `${radius}px`,
|
|
122
|
+
'--ua-padding': utils.setStyle(padding),
|
|
123
|
+
'--ua-bg-color': hovered ? bgColorHover : bgColor,
|
|
124
|
+
'--ua-icon-size': `${iconSize}px`,
|
|
125
|
+
'--ua-cursor': busy ? 'default' : 'pointer',
|
|
126
|
+
'--ua-width': utils.setStyle(width),
|
|
127
|
+
'--ua-height': utils.setStyle(height),
|
|
128
|
+
};
|
|
129
|
+
}, [
|
|
130
|
+
border,
|
|
131
|
+
borderStyle,
|
|
132
|
+
borderColor,
|
|
133
|
+
borderColorHover,
|
|
134
|
+
radius,
|
|
135
|
+
padding,
|
|
136
|
+
bgColor,
|
|
137
|
+
bgColorHover,
|
|
138
|
+
iconSize,
|
|
139
|
+
busy,
|
|
140
|
+
hovered,
|
|
141
|
+
height,
|
|
142
|
+
width,
|
|
143
|
+
]);
|
|
144
|
+
return (jsxRuntime.jsxs("div", { className: css.wrapper, style: cssVars, ref: ref, role: 'button', "aria-label": 'Click to upload files', tabIndex: 0, onClick: handleClickUpload, onKeyDown: (e) => utils.accessibleKeyDown(e, () => handleClickUpload()), onDragEnter: handleDragEnter, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, children: [jsxRuntime.jsx("div", { className: css.icon, children: jsxRuntime.jsx(_types.Icon, { size: iconSize, name: icon, strokeColor: iconStrokeColor, pointer: false }) }), jsxRuntime.jsx("div", { className: css.title, children: title }), jsxRuntime.jsxs("div", { className: `${css.message} ${css[textSize]}`, children: [busy && showProgress && (jsxRuntime.jsx(ProgressIndicator.ProgressIndicator, { show: true, size: 20, inline: true, color: iconStrokeColor })), busy ? busyMessage : message] }), files.length > 0 && (jsxRuntime.jsx("div", { className: css.files, children: jsxRuntime.jsx(FileList.FileList, { files: files, bgColor: 'var(--core-surface-primary)', size: 'm', direction: 'column', gap: 8, iconSize: 24, padding: '10px', canRemove: canRemove }) })), jsxRuntime.jsx("input", { ref: inputRef, type: "file", hidden: true, disabled: busy, multiple: multiple, accept: acceptedTypes ? acceptedTypes.join(', ') : undefined, onChange: handleFileInputChange })] }));
|
|
145
|
+
});
|
|
146
|
+
UploadAreaBase.displayName = 'UploadArea';
|
|
147
|
+
const UploadArea = React.memo(UploadAreaBase);
|
|
148
|
+
|
|
149
|
+
exports.UploadArea = UploadArea;
|
|
150
|
+
exports.allTypes = allTypes;
|
|
151
|
+
exports.audioTypes = audioTypes;
|
|
152
|
+
exports.documentTypes = documentTypes;
|
|
153
|
+
exports.imageTypes = imageTypes;
|
|
154
|
+
exports.textTypes = textTypes;
|
|
155
|
+
exports.videoTypes = videoTypes;
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var hooks_useTheme = require('../hooks/useTheme.js');
|
|
7
7
|
require('../theme/colors.js');
|
|
8
8
|
require('../hooks/useWindow.js');
|
|
9
|
-
var utils = require('./utils-
|
|
9
|
+
var utils = require('./utils-BwNacfBU.js');
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Static icon registry created once at module load.
|
|
@@ -589,7 +589,7 @@ const STATIC_ICON_REGISTRY = new Map([
|
|
|
589
589
|
const Icon = React.memo((props) => {
|
|
590
590
|
var _a;
|
|
591
591
|
const theme = hooks_useTheme.useTheme();
|
|
592
|
-
const { name = 'home', size = 20, stroke = 1.5, strokeColor = theme.current.colors['core-icon-primary'], fillColor = 'transparent', coverUp = theme.current.colors['core-surface-primary'], toggle = false, pointer =
|
|
592
|
+
const { name = 'home', size = 20, stroke = 1.5, strokeColor = theme.current.colors['core-icon-primary'], fillColor = 'transparent', coverUp = theme.current.colors['core-surface-primary'], toggle = false, pointer = false, disabled = false, onClick = () => null } = props, svgAttributes = tslib_es6.__rest(props, ["name", "size", "stroke", "strokeColor", "fillColor", "coverUp", "toggle", "pointer", "disabled", "onClick"]);
|
|
593
593
|
const { id: svgId, className, style } = svgAttributes, rest = tslib_es6.__rest(svgAttributes, ["id", "className", "style"]);
|
|
594
594
|
// memo cursor style
|
|
595
595
|
const cursor = React.useMemo(() => {
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var zustand = require('zustand');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Form factor names
|
|
7
|
+
*/
|
|
8
|
+
exports.FormFactor = void 0;
|
|
9
|
+
(function (FormFactor) {
|
|
10
|
+
FormFactor["Mobile"] = "mobile";
|
|
11
|
+
FormFactor["Tablet"] = "tablet";
|
|
12
|
+
FormFactor["Desktop"] = "desktop";
|
|
13
|
+
FormFactor["DesktopL"] = "desktopL";
|
|
14
|
+
FormFactor["DesktopXL"] = "desktopXL";
|
|
15
|
+
})(exports.FormFactor || (exports.FormFactor = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Use bootstrap breakpoints
|
|
18
|
+
*/
|
|
19
|
+
const bootstrapBreakPoints = {
|
|
20
|
+
[exports.FormFactor.Mobile]: 576,
|
|
21
|
+
[exports.FormFactor.Tablet]: 768,
|
|
22
|
+
[exports.FormFactor.Desktop]: 992,
|
|
23
|
+
[exports.FormFactor.DesktopL]: 1200,
|
|
24
|
+
[exports.FormFactor.DesktopXL]: 1400,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// pre-ordered break points from larget to smallest
|
|
28
|
+
const orderedBps = Object.entries(bootstrapBreakPoints).sort((a, b) => -b[1] - a[1]);
|
|
29
|
+
// get form factor from break point and current viewport width
|
|
30
|
+
const getFormFactor = (width) => {
|
|
31
|
+
if (!width || width <= 0)
|
|
32
|
+
return exports.FormFactor.Mobile;
|
|
33
|
+
for (const [formFactor, breakpoint] of orderedBps) {
|
|
34
|
+
if (width >= breakpoint)
|
|
35
|
+
return formFactor;
|
|
36
|
+
}
|
|
37
|
+
return exports.FormFactor.Mobile;
|
|
38
|
+
};
|
|
39
|
+
const initialSize = processWindowSize();
|
|
40
|
+
const useWindowStore = zustand.create((set, get) => {
|
|
41
|
+
var _a;
|
|
42
|
+
return ({
|
|
43
|
+
formFactor: initialSize.formFactor,
|
|
44
|
+
viewportWidth: initialSize.viewportWidth,
|
|
45
|
+
viewportHeight: initialSize.viewportHeight,
|
|
46
|
+
height: initialSize.height,
|
|
47
|
+
isElectron: checkElectron(),
|
|
48
|
+
isAppleDevice: navigator.platform.startsWith('Mac') || navigator.platform === 'iPhone',
|
|
49
|
+
isTouchDevice: 'ontouchstart' in globalThis || navigator.maxTouchPoints > 0,
|
|
50
|
+
dpr: (_a = Math.min(Math.ceil(window.devicePixelRatio), 3)) !== null && _a !== void 0 ? _a : 1,
|
|
51
|
+
actions: {
|
|
52
|
+
initialize: () => {
|
|
53
|
+
var _a;
|
|
54
|
+
const win = (_a = globalThis.top) !== null && _a !== void 0 ? _a : globalThis;
|
|
55
|
+
win === null || win === void 0 ? void 0 : win.addEventListener('resize', handleResize);
|
|
56
|
+
return () => win === null || win === void 0 ? void 0 : win.removeEventListener('resize', handleResize);
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
//check electron
|
|
62
|
+
function checkElectron() {
|
|
63
|
+
const userAgent = navigator.userAgent.toLowerCase();
|
|
64
|
+
return userAgent.includes('electron/');
|
|
65
|
+
}
|
|
66
|
+
// resize handler
|
|
67
|
+
function handleResize() {
|
|
68
|
+
// process size
|
|
69
|
+
const { formFactor, viewportWidth, viewportHeight, height } = processWindowSize();
|
|
70
|
+
// update store directly
|
|
71
|
+
useWindowStore.setState({
|
|
72
|
+
formFactor,
|
|
73
|
+
viewportWidth,
|
|
74
|
+
viewportHeight,
|
|
75
|
+
height,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
// return size related store values
|
|
79
|
+
function processWindowSize(top = true) {
|
|
80
|
+
var _a, _b, _c;
|
|
81
|
+
const viewport = (_a = globalThis.top) !== null && _a !== void 0 ? _a : globalThis;
|
|
82
|
+
const touch = 'ontouchstart' in globalThis || navigator.maxTouchPoints > 0;
|
|
83
|
+
const windowWidth = (_b = viewport === null || viewport === void 0 ? void 0 : viewport.innerWidth) !== null && _b !== void 0 ? _b : -1;
|
|
84
|
+
const windowHeight = (_c = viewport === null || viewport === void 0 ? void 0 : viewport.innerHeight) !== null && _c !== void 0 ? _c : -1;
|
|
85
|
+
return {
|
|
86
|
+
formFactor: getFormFactor(windowWidth),
|
|
87
|
+
viewportWidth: windowWidth,
|
|
88
|
+
viewportHeight: windowHeight,
|
|
89
|
+
height: viewport && touch ? `${windowHeight}px` : '100vh',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
exports.useWindowStore = useWindowStore;
|
|
@@ -21,7 +21,9 @@ function useKeyboardShortcuts(shortcuts, shortCutHandler, isAppleDevice) {
|
|
|
21
21
|
return;
|
|
22
22
|
const isMeta = (isAppleDevice && e.metaKey) || (!isAppleDevice && e.ctrlKey);
|
|
23
23
|
for (const s of shortcuts) {
|
|
24
|
-
if (s.
|
|
24
|
+
if (s.metaPressed && !isMeta)
|
|
25
|
+
continue;
|
|
26
|
+
if (s.key.toLowerCase() === e.key.toLowerCase()) {
|
|
25
27
|
e.preventDefault();
|
|
26
28
|
shortCutHandler(s);
|
|
27
29
|
break;
|
|
@@ -7,21 +7,27 @@ require('../theme/corners.js');
|
|
|
7
7
|
require('../theme/elevations.js');
|
|
8
8
|
require('../theme/type.js');
|
|
9
9
|
|
|
10
|
+
function resolveTheme(themeName) {
|
|
11
|
+
if (!themeName || themeName === '' || themeName.includes(theme_themes.lightTheme.name)) {
|
|
12
|
+
return theme_themes.lightTheme;
|
|
13
|
+
}
|
|
14
|
+
return theme_themes.darkTheme;
|
|
15
|
+
}
|
|
10
16
|
function useObserveTheme() {
|
|
11
|
-
const [theme, setTheme] = React.useState(
|
|
17
|
+
const [theme, setTheme] = React.useState(() => {
|
|
18
|
+
if (typeof document === 'undefined')
|
|
19
|
+
return theme_themes.lightTheme;
|
|
20
|
+
return resolveTheme(document.documentElement.dataset.theme);
|
|
21
|
+
});
|
|
12
22
|
React.useEffect(() => {
|
|
23
|
+
// Sync once on mount in case the theme was set before this hook subscribed.
|
|
24
|
+
setTheme(resolveTheme(document.documentElement.dataset.theme));
|
|
13
25
|
const observer = new MutationObserver((mutations) => {
|
|
14
26
|
for (const mutation of mutations) {
|
|
15
27
|
if (mutation.type === 'attributes' &&
|
|
16
28
|
mutation.attributeName === 'data-theme') {
|
|
17
29
|
const newTheme = document.documentElement.dataset.theme;
|
|
18
|
-
|
|
19
|
-
newTheme === '' ||
|
|
20
|
-
newTheme.includes(theme_themes.lightTheme.name))
|
|
21
|
-
setTheme(theme_themes.lightTheme);
|
|
22
|
-
else {
|
|
23
|
-
setTheme(theme_themes.darkTheme);
|
|
24
|
-
}
|
|
30
|
+
setTheme(resolveTheme(newTheme));
|
|
25
31
|
}
|
|
26
32
|
}
|
|
27
33
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var utils = require('../chunks/utils-
|
|
4
|
+
var utils = require('../chunks/utils-BwNacfBU.js');
|
|
5
|
+
require('../chunks/tslib.es6-4H29ixHs.js');
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Hook to log component renders, mounts, and unmounts
|
|
@@ -3,12 +3,27 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
|
|
5
5
|
var _a;
|
|
6
|
+
/**
|
|
7
|
+
* Form factor names
|
|
8
|
+
*/
|
|
6
9
|
exports.FormFactor = void 0;
|
|
7
10
|
(function (FormFactor) {
|
|
8
11
|
FormFactor["Mobile"] = "mobile";
|
|
9
12
|
FormFactor["Tablet"] = "tablet";
|
|
10
13
|
FormFactor["Desktop"] = "desktop";
|
|
14
|
+
FormFactor["DesktopL"] = "desktopL";
|
|
15
|
+
FormFactor["DesktopXL"] = "desktopXL";
|
|
11
16
|
})(exports.FormFactor || (exports.FormFactor = {}));
|
|
17
|
+
/**
|
|
18
|
+
* Use bootstrap proxy breakpoints as defaults
|
|
19
|
+
*/
|
|
20
|
+
const bootstrapBreakPoints = {
|
|
21
|
+
[exports.FormFactor.Mobile]: 576,
|
|
22
|
+
[exports.FormFactor.Tablet]: 768,
|
|
23
|
+
[exports.FormFactor.Desktop]: 992,
|
|
24
|
+
[exports.FormFactor.DesktopL]: 1200,
|
|
25
|
+
[exports.FormFactor.DesktopXL]: 1400,
|
|
26
|
+
};
|
|
12
27
|
function checkElectron() {
|
|
13
28
|
const userAgent = navigator.userAgent.toLowerCase();
|
|
14
29
|
return userAgent.includes('electron/');
|
|
@@ -17,7 +32,9 @@ const isElectron = checkElectron();
|
|
|
17
32
|
const isAppleDevice = navigator.platform.startsWith('Mac') || navigator.platform === 'iPhone';
|
|
18
33
|
const dpr = (_a = Math.min(Math.ceil(window.devicePixelRatio), 3)) !== null && _a !== void 0 ? _a : 1;
|
|
19
34
|
const isTouchDevice = 'ontouchstart' in globalThis || navigator.maxTouchPoints > 0;
|
|
20
|
-
|
|
35
|
+
// pre-ordered break points from larget to smallest
|
|
36
|
+
const orderedBps = Object.entries(bootstrapBreakPoints).sort((a, b) => -b[1] - a[1]);
|
|
37
|
+
function useWindow(breakpoints = bootstrapBreakPoints, top = true) {
|
|
21
38
|
const [viewportWidth, setViewportWidth] = React.useState(null);
|
|
22
39
|
const [viewportHeight, setViewportHeight] = React.useState(null);
|
|
23
40
|
const [height, setHeight] = React.useState('100vh');
|
|
@@ -27,6 +44,16 @@ function useWindow(top = true) {
|
|
|
27
44
|
window.addEventListener('resize', handleResize, false);
|
|
28
45
|
return () => window.removeEventListener('resize', handleResize, false);
|
|
29
46
|
}, []);
|
|
47
|
+
// callback to set form factor based on break points
|
|
48
|
+
const getFormFactor = React.useCallback((width) => {
|
|
49
|
+
if (!width || width <= 0)
|
|
50
|
+
return exports.FormFactor.Mobile;
|
|
51
|
+
for (const [formFactor, breakpoint] of orderedBps) {
|
|
52
|
+
if (width >= breakpoint)
|
|
53
|
+
return formFactor;
|
|
54
|
+
}
|
|
55
|
+
return exports.FormFactor.Mobile;
|
|
56
|
+
}, []);
|
|
30
57
|
function handleResize() {
|
|
31
58
|
var _a, _b, _c, _d;
|
|
32
59
|
const windowWidth = top
|
|
@@ -35,12 +62,7 @@ function useWindow(top = true) {
|
|
|
35
62
|
const windowHeight = top
|
|
36
63
|
? ((_d = (_c = window.top) === null || _c === void 0 ? void 0 : _c.innerHeight) !== null && _d !== void 0 ? _d : window.innerHeight)
|
|
37
64
|
: window.innerHeight;
|
|
38
|
-
|
|
39
|
-
setFormFactor(exports.FormFactor.Mobile);
|
|
40
|
-
else if (windowWidth < 860)
|
|
41
|
-
setFormFactor(exports.FormFactor.Tablet);
|
|
42
|
-
else
|
|
43
|
-
setFormFactor(exports.FormFactor.Desktop);
|
|
65
|
+
setFormFactor(getFormFactor(windowWidth));
|
|
44
66
|
setViewportHeight(windowHeight);
|
|
45
67
|
setViewportWidth(windowWidth);
|
|
46
68
|
// note: mobile devices can have task bars that are included inside the viewport.
|