@apple-pie/slice 0.1.8 → 0.1.10

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.
Files changed (101) hide show
  1. package/README.md +4 -3
  2. package/dist/cjs/chunks/{Avatar-8XLnVICd.js → Avatar-Czt-12Ih.js} +26 -12
  3. package/dist/cjs/chunks/{AvatarGroup-BhKZvX8M.js → AvatarGroup-CGH2zY7a.js} +9 -7
  4. package/dist/cjs/chunks/{Button-D8_eyuOA.js → Button-mVVfNCqC.js} +40 -29
  5. package/dist/cjs/chunks/ButtonBar-CFAb4bfQ.js +73 -0
  6. package/dist/cjs/chunks/{Camera-CxHdYGEa.js → Camera-BGV_tNUP.js} +12 -4
  7. package/dist/cjs/chunks/{CheckBox-CmTQ6KW1.js → CheckBox-DyOgP15i.js} +1 -1
  8. package/dist/cjs/chunks/{Chip-CwMJOnBV.js → Chip-Z8erRdWG.js} +24 -31
  9. package/dist/cjs/chunks/{FileList-tivoUJSP.js → FileList-CCAtVNDo.js} +1 -1
  10. package/dist/cjs/chunks/IndexedDB-BaVmQgkK.js +148 -0
  11. package/dist/cjs/chunks/{ProgressIndicator-opbbADog.js → ProgressIndicator-CyFcr6Dk.js} +13 -4
  12. package/dist/cjs/chunks/{PromptInput-tA4fpOTk.js → PromptInput-D317oh1e.js} +1 -1
  13. package/dist/cjs/chunks/{TextArea-DXcMRUfI.js → TextArea-2w4E6d2H.js} +2 -2
  14. package/dist/cjs/chunks/{TextField-CkfTNM6_.js → TextField-BAcYBHb1.js} +2 -2
  15. package/dist/cjs/chunks/{UploadArea-B8mJRc0a.js → UploadArea-CxYAAs7Q.js} +1 -1
  16. package/dist/cjs/chunks/localDBStore-BHEk_9fJ.js +257 -0
  17. package/dist/cjs/components/Avatar/index.js +1 -1
  18. package/dist/cjs/components/AvatarGroup/index.js +2 -2
  19. package/dist/cjs/components/Button/index.js +2 -2
  20. package/dist/cjs/components/ButtonBar/index.js +3 -5
  21. package/dist/cjs/components/Camera/index.js +2 -2
  22. package/dist/cjs/components/CheckBox/index.js +1 -1
  23. package/dist/cjs/components/Chip/index.js +2 -2
  24. package/dist/cjs/components/FileList/index.js +2 -2
  25. package/dist/cjs/components/Progress/index.js +1 -1
  26. package/dist/cjs/components/PromptInput/index.js +4 -4
  27. package/dist/cjs/components/TextArea/index.js +3 -3
  28. package/dist/cjs/components/Textfield/index.js +3 -3
  29. package/dist/cjs/components/UploadArea/index.js +7 -8
  30. package/dist/cjs/index.js +10 -11
  31. package/dist/cjs/stores/LocalDB.js +9 -0
  32. package/dist/cjs/stores.js +5 -1
  33. package/dist/cjs/utils/index.js +3 -3
  34. package/dist/cjs/utils/objects/index.js +3 -3
  35. package/dist/esm/chunks/{Avatar-DGRMsHdO.mjs → Avatar-DCCbj2eA.mjs} +26 -12
  36. package/dist/esm/chunks/{AvatarGroup-C9Ka1e9P.mjs → AvatarGroup-BaD2Xmda.mjs} +9 -7
  37. package/dist/esm/chunks/{Button-DAvVj4YV.mjs → Button-m0XAJsq5.mjs} +40 -29
  38. package/dist/esm/chunks/ButtonBar-CNQHRn77.mjs +83 -0
  39. package/dist/esm/chunks/{Camera-BrdJGlv6.mjs → Camera-7TuowjX_.mjs} +12 -4
  40. package/dist/esm/chunks/{CheckBox-B7UCZvRv.mjs → CheckBox-DO9hTdv8.mjs} +1 -1
  41. package/dist/esm/chunks/{Chip-BPF7fBba.mjs → Chip-BqneFUOR.mjs} +25 -34
  42. package/dist/esm/chunks/{FileList-BHCGzX_0.mjs → FileList-Ckix8gUY.mjs} +1 -1
  43. package/dist/esm/chunks/IndexedDB-CJgzPHPB.mjs +148 -0
  44. package/dist/esm/chunks/{ProgressIndicator-BVwQNOcV.mjs → ProgressIndicator-CfM2c4ty.mjs} +13 -4
  45. package/dist/esm/chunks/{PromptInput-pKwwzyAd.mjs → PromptInput-C6liKbFf.mjs} +3 -3
  46. package/dist/esm/chunks/{TextArea-yF2pGeel.mjs → TextArea-DKRF4Irr.mjs} +2 -2
  47. package/dist/esm/chunks/{TextField-CgnPj6oK.mjs → TextField-CGOR6507.mjs} +2 -2
  48. package/dist/esm/chunks/{UploadArea-BNf1y8Ep.mjs → UploadArea-DNAH-Bu5.mjs} +3 -3
  49. package/dist/esm/chunks/localDBStore-C-Ch2MFq.mjs +265 -0
  50. package/dist/esm/components/Avatar/index.mjs +1 -1
  51. package/dist/esm/components/AvatarGroup/index.mjs +2 -2
  52. package/dist/esm/components/Button/index.mjs +2 -2
  53. package/dist/esm/components/ButtonBar/index.mjs +5 -15
  54. package/dist/esm/components/Camera/index.mjs +2 -2
  55. package/dist/esm/components/CheckBox/index.mjs +1 -1
  56. package/dist/esm/components/Chip/index.mjs +5 -5
  57. package/dist/esm/components/FileList/index.mjs +2 -2
  58. package/dist/esm/components/Progress/index.mjs +1 -1
  59. package/dist/esm/components/PromptInput/index.mjs +4 -4
  60. package/dist/esm/components/TextArea/index.mjs +3 -3
  61. package/dist/esm/components/Textfield/index.mjs +3 -3
  62. package/dist/esm/components/UploadArea/index.mjs +7 -7
  63. package/dist/esm/index.mjs +13 -17
  64. package/dist/esm/stores/LocalDB.mjs +11 -0
  65. package/dist/esm/stores.mjs +8 -0
  66. package/dist/esm/utils/index.mjs +2 -0
  67. package/dist/esm/utils/objects/index.mjs +2 -0
  68. package/dist/types/components/Avatar/_types.d.ts +6 -4
  69. package/dist/types/components/AvatarGroup/_types.d.ts +4 -2
  70. package/dist/types/components/Button/Button.d.ts +4 -2
  71. package/dist/types/components/Button/_types.d.ts +2 -1
  72. package/dist/types/components/ButtonBar/ButtonBar.d.ts +16 -1
  73. package/dist/types/components/ButtonBar/_types.d.ts +14 -4
  74. package/dist/types/components/Camera/_types.d.ts +2 -2
  75. package/dist/types/components/Chip/_types.d.ts +18 -7
  76. package/dist/types/index.d.ts +0 -4
  77. package/dist/types/stores/LocalDB/_types.d.ts +43 -0
  78. package/dist/types/stores/LocalDB/index.d.ts +2 -0
  79. package/dist/types/stores/LocalDB/localDBStore.d.ts +18 -0
  80. package/dist/types/stores/index.d.ts +1 -0
  81. package/dist/types/utils/functions/files.d.ts +1 -1
  82. package/dist/types/utils/index.d.ts +2 -2
  83. package/dist/types/utils/objects/IndexedDB/IndexedDB.d.ts +62 -0
  84. package/dist/types/utils/objects/index.d.ts +2 -0
  85. package/package.json +1 -1
  86. package/dist/cjs/chunks/ButtonBar-DwMLfvi8.js +0 -49
  87. package/dist/cjs/chunks/Card-D4YkmNC7.js +0 -34
  88. package/dist/cjs/chunks/DocIcons-BZI6JMyw.js +0 -108
  89. package/dist/cjs/components/Card/index.js +0 -10
  90. package/dist/cjs/components/DocIcon/index.js +0 -9
  91. package/dist/esm/chunks/ButtonBar-Cw73kooJ.mjs +0 -62
  92. package/dist/esm/chunks/Card-DGlv1PII.mjs +0 -42
  93. package/dist/esm/chunks/DocIcons-B4xsPrXM.mjs +0 -114
  94. package/dist/esm/components/Card/index.mjs +0 -31
  95. package/dist/esm/components/DocIcon/index.mjs +0 -25
  96. package/dist/types/components/Card/Card.d.ts +0 -3
  97. package/dist/types/components/Card/_types.d.ts +0 -14
  98. package/dist/types/components/Card/index.d.ts +0 -2
  99. package/dist/types/components/DocIcon/DocIcons.d.ts +0 -3
  100. package/dist/types/components/DocIcon/_types.d.ts +0 -7
  101. package/dist/types/components/DocIcon/index.d.ts +0 -2
@@ -1,10 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
4
-
5
- require("../theme/colors.js"), require("../hooks/useWindow.js");
6
-
7
- var misc = require("./misc-BTF7BCZW.js"), Icon = require("./Icon-N0YJuKQf.js"), sharedTypes = require("./sharedTypes-gCECyn2N.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), Icon = require("./Icon-N0YJuKQf.js"), sharedTypes = require("./sharedTypes-gCECyn2N.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
8
4
  chip: "Chip-module_chip__0nys- flexBox-module_row__z24tF",
9
5
  icon: "Chip-module_icon__dtR-K flexBox-module_row__z24tF",
10
6
  s: "Chip-module_s__2KTXi type-module_body-s-regular__vRHSP",
@@ -12,16 +8,12 @@ var misc = require("./misc-BTF7BCZW.js"), Icon = require("./Icon-N0YJuKQf.js"),
12
8
  l: "Chip-module_l__3MqPN type-module_body-l-regular__lOYbg"
13
9
  };
14
10
 
15
- 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.Chip-module_chip__0nys- {\n\tpadding: var(--ui-chip-padding) !important;\n\twidth: min-content;\n\tmin-height: 30px;\n\tgap: var(--ui-chip-gap);\n\tbackground: var(--ui-chip-background);\n\tline-height: 1em;\n\tcolor: var(--ui-chip-color);\n\tborder: var(--ui-chip-border) solid var(--ui-chip-border-color);\n\tborder-radius: var(--ui-chip-border-radius);\n\ttransition: all var(--motion-water-duration) var(--motion-water) 0s;\n\tcursor: pointer;\n\twhite-space: nowrap;\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n.Chip-module_icon__dtR-K {\n\theight: var(--ui-chip-icon-size);\n\tmin-height: var(--ui-chip-icon-size);\n\twidth: var(--ui-chip-icon-size);\n\tmin-width: var(--ui-chip-icon-size);\n}\n\n.Chip-module_s__2KTXi {\n}\n\n.Chip-module_m__l2u3N {\n}\n\n.Chip-module_l__3MqPN {\n}\n");
11
+ 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.Chip-module_chip__0nys- {\n\tpadding: var(--ui-chip-padding) !important;\n\twidth: min-content;\n\tmin-height: 30px;\n\tgap: var(--ui-chip-gap);\n\tbackground: var(--ui-chip-bg-color);\n\tline-height: 1em;\n\tcolor: var(--ui-chip-label-color);\n\tborder: var(--ui-chip-border-size) solid var(--ui-chip-border-color);\n\tborder-radius: var(--ui-chip-border-radius);\n\ttransition: all var(--motion-water-duration) var(--motion-water) 0s;\n\tcursor: var(--ui-chip-cursor);\n\twhite-space: nowrap;\n\tuser-select: none;\n\t-webkit-user-select: none;\n\t&:hover {\n\t\tborder-color: var(--ui-chip-border-color-hover);\n\t\tbackground: var(--ui-chip-bg-color-hover);\n\t\tcolor: var(--ui-chip-label-color-hover);\n\t}\n}\n\n.Chip-module_icon__dtR-K {\n\theight: var(--ui-chip-icon-size);\n\tmin-height: var(--ui-chip-icon-size);\n\twidth: var(--ui-chip-icon-size);\n\tmin-width: var(--ui-chip-icon-size);\n}\n\n.Chip-module_s__2KTXi {\n}\n\n.Chip-module_m__l2u3N {\n}\n\n.Chip-module_l__3MqPN {\n}\n");
16
12
 
17
13
  const Chip = React.memo(props => {
18
- const theme = hooks_useTheme.useTheme(), {label: label, icon: icon, background: background, disabled: disabled = !1, focused: focused = !1, variant: variant = "regular", unframed: unframed = !1, iconRight: iconRight = !1, labelSize: labelSize = "m", tooltip: tooltip, iconColor: iconColor, onToolTip: onToolTip = () => null, onClick: onClick = () => null, onMouseDown: onMouseDown = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "label", "icon", "background", "disabled", "focused", "variant", "unframed", "iconRight", "labelSize", "tooltip", "iconColor", "onToolTip", "onClick", "onMouseDown" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isFocused, setIsFocused] = React.useState(focused), [isHovered, setIsHovered] = React.useState(!1);
19
- React.useEffect(() => setIsFocused(focused), [ focused ]);
20
- const handleClick = React.useCallback(e => {
14
+ const {children: children, label: label, icon: icon, tooltip: tooltip, iconSize: iconSize = 20, disabled: disabled = !1, focused: focused = !1, iconPosition: iconPosition = "left", labelSize: labelSize = "m", labelColor: labelColor = "var(--core-text-primary)", labelColorHover: labelColorHover = "var(--core-text-special)", iconColor: iconColor = "var(--core-text-primary)", iconColorHover: iconColorHover = "var(--core-text-special)", borderSize: borderSize = 1, borderColor: borderColor = "var(--core-text-primary)", borderColorHover: borderColorHover = "var(--core-text-special)", borderColorDisabled: borderColorDisabled = "var(--core-text-disabled)", bgColor: bgColor = "transparent", bgColorHover: bgColorHover = "var(--core-surface-secondary)", borderRadius: borderRadius = 8, paddingTops: paddingTops = 8, paddingSides: paddingSides = 16, gap: gap = 4, onToolTip: onToolTip = () => null, onClick: onClick = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "children", "label", "icon", "tooltip", "iconSize", "disabled", "focused", "iconPosition", "labelSize", "labelColor", "labelColorHover", "iconColor", "iconColorHover", "borderSize", "borderColor", "borderColorHover", "borderColorDisabled", "bgColor", "bgColorHover", "borderRadius", "paddingTops", "paddingSides", "gap", "onToolTip", "onClick" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isHovered, setIsHovered] = React.useState(!1), handleClick = React.useCallback(e => {
21
15
  disabled || onClick(e);
22
- }, [ disabled, onClick ]), handleMouseDown = React.useCallback(e => {
23
- disabled || onMouseDown(e);
24
- }, [ disabled, onMouseDown ]), handleMouseEnter = React.useCallback((enter, event) => {
16
+ }, [ disabled, onClick ]), handleMouseEnter = React.useCallback((enter, event) => {
25
17
  if (enter) {
26
18
  if (tooltip) {
27
19
  const tip = {
@@ -37,44 +29,45 @@ const Chip = React.memo(props => {
37
29
  setIsHovered(!0);
38
30
  } else onToolTip(null), setIsHovered(!1);
39
31
  }, [ tooltip, onToolTip ]), padding = React.useMemo(() => {
40
- const isSmall = "small" === variant;
41
- return icon ? icon && iconRight ? isSmall ? "6px 6px 6px 10px" : "9px 12px 9px 16px" : isSmall ? "6px 10px 6px 6px" : "9px 16px 9px 12px" : isSmall ? "6px" : "9px 16px 9px 16px";
42
- }, [ variant, icon, iconRight ]), computedIconColor = React.useMemo(() => iconColor || (disabled ? theme.current.colors["core-icon-disabled"] : isHovered || isFocused ? theme.current.colors["core-link-primary"] : theme.current.colors["core-text-primary"]), [ iconColor, disabled, isFocused, isHovered, theme ]), cssVars = React.useMemo(() => ({
32
+ if (!icon) return `${paddingTops}px ${paddingSides}px`;
33
+ return `${paddingTops}px ${"right" === iconPosition ? paddingSides - 4 : paddingSides}px ${paddingTops}px ${"right" === iconPosition ? paddingSides : paddingSides - 4}px`;
34
+ }, [ icon, iconPosition, paddingTops, paddingSides ]), computedIconColor = React.useMemo(() => disabled ? "var(--core-text-disabled)" : isHovered ? null != iconColorHover ? iconColorHover : "var(--core-text-special)" : null != iconColor ? iconColor : "var(--core-text-primary)", [ iconColor, disabled, isHovered, iconColorHover ]), cssVars = React.useMemo(() => ({
43
35
  "--ui-chip-padding": padding,
44
- "--ui-chip-background": background || "transparent",
45
- "--ui-chip-gap": "small" === variant ? "4px" : "8px",
46
- "--ui-chip-color": computedIconColor,
47
- "--ui-chip-border-radius": "small" === variant ? "4px" : "8px",
48
- "--ui-chip-border": unframed ? "0" : "1px",
49
- "--ui-chip-border-color": unframed ? "transparent" : computedIconColor
50
- }), [ padding, background, variant, unframed, computedIconColor ]);
36
+ "--ui-chip-gap": misc.setStyle(gap),
37
+ "--ui-chip-border-radius": misc.setStyle(borderRadius),
38
+ "--ui-chip-border-size": misc.setStyle(borderSize),
39
+ "--ui-chip-border-color": disabled ? borderColorDisabled : borderColor,
40
+ "--ui-chip-border-color-hover": disabled ? borderColorDisabled : borderColorHover,
41
+ "--ui-chip-bg-color": bgColor,
42
+ "--ui-chip-bg-color-hover": disabled ? bgColor : bgColorHover,
43
+ "--ui-chip-label-color": disabled ? "var(--core-text-disabled)" : labelColor,
44
+ "--ui-chip-label-color-hover": disabled ? "var(--core-text-disabled)" : labelColorHover,
45
+ "--ui-chip-cursor": disabled ? "default" : "pointer"
46
+ }), [ padding, bgColor, borderColor, borderColorDisabled, borderColorHover, borderSize, bgColorHover, labelColorHover, labelColor, gap, borderRadius, disabled ]);
51
47
  return jsxRuntime.jsxs("div", Object.assign({
52
48
  id: divId,
53
49
  className: `${css.chip}${divClass}`,
54
50
  style: Object.assign(Object.assign({}, divStyle), cssVars),
55
- onMouseDown: handleMouseDown,
56
51
  onKeyDown: e => misc.accessibleKeyDown(e, () => handleClick(e)),
57
52
  onClick: handleClick,
58
53
  onMouseEnter: e => handleMouseEnter(!0, e),
59
- onMouseLeave: e => handleMouseEnter(!1, e),
60
- onFocus: () => setIsFocused(!0),
61
- onBlur: () => setIsFocused(!1)
54
+ onMouseLeave: e => handleMouseEnter(!1, e)
62
55
  }, rest, {
63
- children: [ icon && !iconRight && jsxRuntime.jsx("div", {
56
+ children: [ icon && "right" !== iconPosition && jsxRuntime.jsx("div", {
64
57
  className: css.icon,
65
58
  children: jsxRuntime.jsx(Icon.Icon, {
66
59
  name: icon,
67
- size: "regular" === variant ? 20 : 16,
60
+ size: iconSize,
68
61
  strokeColor: computedIconColor
69
62
  })
70
63
  }), jsxRuntime.jsx("div", {
71
64
  className: css[labelSize],
72
- children: label
73
- }), icon && iconRight && jsxRuntime.jsx("div", {
65
+ children: null != children ? children : label
66
+ }), icon && "right" === iconPosition && jsxRuntime.jsx("div", {
74
67
  className: css.icon,
75
68
  children: jsxRuntime.jsx(Icon.Icon, {
76
69
  name: icon,
77
- size: "regular" === variant ? 20 : 16,
70
+ size: iconSize,
78
71
  strokeColor: computedIconColor
79
72
  })
80
73
  }) ]
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), FileIcon = require("./FileIcon-CZLe2S2l.js"), Icon = require("./Icon-N0YJuKQf.js"), ProgressIndicator = require("./ProgressIndicator-opbbADog.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js");
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), FileIcon = require("./FileIcon-CZLe2S2l.js"), Icon = require("./Icon-N0YJuKQf.js"), ProgressIndicator = require("./ProgressIndicator-CyFcr6Dk.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js");
4
4
 
5
5
  var css = {
6
6
  wrapper: "FileList-module_wrapper__9-rrl flexBox-module_rowStart__4tcxS",
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js");
4
+
5
+ exports.IndexedDB = class {
6
+ constructor(storeName, options = {}) {
7
+ var _a, _b, _c;
8
+ this.db = null, this.storeName = storeName, this.databaseName = null !== (_a = options.databaseName) && void 0 !== _a ? _a : storeName,
9
+ this.version = null !== (_b = options.version) && void 0 !== _b ? _b : 1, this.key = options.key,
10
+ this.autoIncrement = null !== (_c = options.autoIncrement) && void 0 !== _c && _c;
11
+ }
12
+ /**
13
+ * Initialize the IndexedDB connection.
14
+ */ initialize() {
15
+ return tslib_es6.__awaiter(this, arguments, void 0, function*(create = !0) {
16
+ if (!this.db) {
17
+ if ("undefined" == typeof indexedDB) throw new TypeError("IndexedDB is not supported in this environment.");
18
+ this.db = yield new Promise((resolve, reject) => {
19
+ const request = indexedDB.open(this.databaseName, this.version);
20
+ let settled = !1;
21
+ const rejectOnce = error => {
22
+ settled || (settled = !0, reject(error));
23
+ };
24
+ request.onerror = () => {
25
+ var _a;
26
+ rejectOnce(null !== (_a = request.error) && void 0 !== _a ? _a : new Error("Failed to open IndexedDB."));
27
+ }, request.onupgradeneeded = () => {
28
+ var _a;
29
+ const database = request.result;
30
+ database.objectStoreNames.contains(this.storeName) || (create ? database.createObjectStore(this.storeName, {
31
+ keyPath: this.key,
32
+ autoIncrement: this.autoIncrement
33
+ }) : (null === (_a = request.transaction) || void 0 === _a || _a.abort(), rejectOnce(new Error("IndexedDB does not exist."))));
34
+ }, request.onsuccess = () => {
35
+ var database;
36
+ database = request.result, settled ? database.close() : (settled = !0, resolve(database));
37
+ };
38
+ });
39
+ }
40
+ });
41
+ }
42
+ /**
43
+ * Get a single DB value by key.
44
+ */ get(key) {
45
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
46
+ return this.runRequest("readonly", store => store.get(key));
47
+ });
48
+ }
49
+ /**
50
+ * Get all the values in the store.
51
+ */ getAll() {
52
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
53
+ return this.runRequest("readonly", store => store.getAll());
54
+ });
55
+ }
56
+ /**
57
+ * Get all keys in the store.
58
+ */ getAllKeys() {
59
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
60
+ return this.runRequest("readonly", store => store.getAllKeys());
61
+ });
62
+ }
63
+ set(key, value) {
64
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
65
+ return this.runRequest("readwrite", store => store.put(value, key));
66
+ });
67
+ }
68
+ /**
69
+ * Adds a new value to the store with or without a key.
70
+ * If a key already exists it will error.
71
+ */ add(value, key) {
72
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
73
+ return this.runRequest("readwrite", store => void 0 === key ? store.add(value) : store.add(value, key));
74
+ });
75
+ }
76
+ /**
77
+ * Updates a value by key. This uses IndexedDB put semantics.
78
+ */ update(key, value) {
79
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
80
+ return this.set(key, value);
81
+ });
82
+ }
83
+ /**
84
+ * Removes a value from the store by key.
85
+ */ remove(key) {
86
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
87
+ yield this.runRequest("readwrite", store => store.delete(key));
88
+ });
89
+ }
90
+ /**
91
+ * Clear all the store values
92
+ */ clear() {
93
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
94
+ yield this.runRequest("readwrite", store => store.clear());
95
+ });
96
+ }
97
+ /**
98
+ * Cleanly close the IndexedDB connection.
99
+ */ close() {
100
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
101
+ var _a;
102
+ null === (_a = this.db) || void 0 === _a || _a.close(), this.db = null;
103
+ });
104
+ }
105
+ /**
106
+ * Deletes an indexedDB database.
107
+ */ destroy() {
108
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
109
+ if (yield this.close(), "undefined" == typeof indexedDB) throw new TypeError("IndexedDB is not supported in this environment.");
110
+ yield new Promise((resolve, reject) => {
111
+ const request = indexedDB.deleteDatabase(this.databaseName);
112
+ request.onerror = () => {
113
+ var _a;
114
+ reject(null !== (_a = request.error) && void 0 !== _a ? _a : new Error("Failed to delete IndexedDB."));
115
+ }, request.onsuccess = () => resolve(), request.onblocked = () => {
116
+ reject(new Error("Failed to delete IndexedDB because it is blocked."));
117
+ };
118
+ });
119
+ });
120
+ }
121
+ /**
122
+ * Private executor of request of the indexedDB
123
+ * Returns the result of the indexedDB request including the error if there is one
124
+ */ runRequest(mode, callback) {
125
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
126
+ if (yield this.initialize(), !this.db) throw new Error("IndexedDB connection is not initialized.");
127
+ const transaction = this.db.transaction(this.storeName, mode), store = transaction.objectStore(this.storeName);
128
+ let result;
129
+ return yield new Promise((resolve, reject) => {
130
+ const request = callback(store);
131
+ request.onerror = () => {
132
+ var _a;
133
+ reject(null !== (_a = request.error) && void 0 !== _a ? _a : new Error("IndexedDB request failed."));
134
+ }, request.onsuccess = () => {
135
+ result = request.result;
136
+ }, transaction.onerror = () => {
137
+ var _a, _b;
138
+ reject(null !== (_b = null !== (_a = transaction.error) && void 0 !== _a ? _a : request.error) && void 0 !== _b ? _b : new Error("IndexedDB transaction failed."));
139
+ }, transaction.onabort = () => {
140
+ var _a, _b;
141
+ reject(null !== (_b = null !== (_a = transaction.error) && void 0 !== _a ? _a : request.error) && void 0 !== _b ? _b : new Error("IndexedDB transaction was aborted."));
142
+ }, transaction.oncomplete = () => {
143
+ resolve(result);
144
+ };
145
+ });
146
+ });
147
+ }
148
+ };
@@ -9,13 +9,22 @@ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), Icon = require("./Icon-N0YJu
9
9
  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");
10
10
 
11
11
  const DoneCheck = React.memo(props => {
12
- const theme = hooks_useTheme.useTheme(), {size: size = 88, stroke: stroke = 1.5, color: color = theme.current.colors["feedback-positive"], play: play = !0, delay: delay = 0, duration: duration = 1, didStart: didStart, didEnd: didEnd} = props, [playing, setPlaying] = React.useState(!1);
13
- React.useEffect(() => setPlaying(play), [ play ]);
12
+ const theme = hooks_useTheme.useTheme(), {size: size = 88, stroke: stroke = 1.5, color: color = theme.current.colors["feedback-positive"], play: play = !0, delay: delay = 5, duration: duration = 1, didStart: didStart, didEnd: didEnd} = props, [playing, setPlaying] = React.useState(!play);
13
+ React.useEffect(() => {
14
+ let frameOne = 0, frameTwo = 0;
15
+ return play ? (setPlaying(!1), frameOne = requestAnimationFrame(() => {
16
+ frameTwo = requestAnimationFrame(() => {
17
+ setPlaying(!0);
18
+ });
19
+ })) : setPlaying(!0), () => {
20
+ frameOne && cancelAnimationFrame(frameOne), frameTwo && cancelAnimationFrame(frameTwo);
21
+ };
22
+ }, [ play ]);
14
23
  const transition = React.useMemo(() => `scale ${duration}s var(--motion-spring) ${delay}s`, [ delay, duration ]), cssVars = React.useMemo(() => ({
15
24
  "--icon-size": `${size}px`,
16
25
  "--icon-scale": playing ? 1 : 0,
17
- "--icon-transition": playing ? transition : "unset"
18
- }), [ size, playing, transition ]);
26
+ "--icon-transition": play ? transition : "unset"
27
+ }), [ size, playing, play, transition ]);
19
28
  return jsxRuntime.jsx("div", {
20
29
  className: css$1_wrapper,
21
30
  role: "status",
@@ -4,7 +4,7 @@ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_u
4
4
 
5
5
  require("../theme/colors.js"), require("../hooks/useWindow.js");
6
6
 
7
- var Button = require("./Button-D8_eyuOA.js"), FileList = require("./FileList-tivoUJSP.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
7
+ var Button = require("./Button-mVVfNCqC.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), FileList = require("./FileList-CCAtVNDo.js"), css = {
8
8
  wrapperBg: "PromptInput-module_wrapperBg__zabZq flexBox-module_columnStart__C7P44",
9
9
  bgRotate: "PromptInput-module_bgRotate__Um720",
10
10
  textareaWrapper: "PromptInput-module_textareaWrapper__KusiV flexBox-module_columnStart__C7P44",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), Button = require("./Button-D8_eyuOA.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0", css_send = "TextArea-module_send__Cub13", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), Button = require("./Button-mVVfNCqC.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0", css_send = "TextArea-module_send__Cub13", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
4
4
 
5
5
  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.TextArea-module_wrapper__O0sWP {\n\tposition: relative;\n\tpadding: var(--ta-padding) !important;\n\twidth: var(--ta-width);\n\theight: auto;\n\tborder-radius: var(--ta-border-radius);\n\tbackground-color: var(--ta-bg-color);\n\tbox-shadow: 0 0 0 1px var(--ta-border-color);\n\ttransition: all var(--motion-water-duration) var(--motion-water) 0s;\n}\n\n.TextArea-module_textarea__-R2n0 {\n\tborder: 0;\n\toutline: 0;\n\tpadding: 0 16px 0 0;\n\twidth: 100%;\n\theight: 100%;\n\tcolor: var(--core-text-primary);\n\tbackground-color: transparent;\n\tbox-sizing: border-box;\n\tresize: var(--ta-resize);\n\n\t&:disabled {\n\t\tcolor: var(--core-text-disabled);\n\t}\n\n\t&::placeholder {\n\t\tcolor: var(--core-text-disabled);\n\t}\n\n\toverflow-y: auto;\n\n\t&::-webkit-scrollbar {\n\t\tbackground-color: transparent;\n\t\twidth: 14px;\n\t}\n\n\t&::-webkit-scrollbar-track {\n\t\tbackground-color: transparent;\n\t}\n\n\t&::-webkit-scrollbar-thumb {\n\t\tbackground-color: var(--scroll-bar);\n\t\tborder-radius: 20px;\n\t\tborder: 4px solid var(--core-surface-primary);\n\t}\n\n\t&::-webkit-scrollbar-thumb:hover {\n\t\tbackground-color: var(--scroll-bar);\n\t\tborder-radius: 20px;\n\t\tborder: 4px solid var(--core-surface-primary);\n\t\tcursor: default;\n\t}\n}\n\n.TextArea-module_actions__yunQx {\n\twidth: 100%;\n\tmin-height: 30px;\n\tcolor: var(--core-text-disabled);\n\tgap: 16px;\n}\n\n.TextArea-module_option__2SFx5 {\n\tgap: 4px;\n\twhite-space: nowrap;\n\tuser-select: none;\n\t-webkit-user-select: none;\n\tcursor: default;\n}\n\n.TextArea-module_send__Cub13 {\n\tposition: absolute;\n\tbottom: var(--ta-send-icon-offset-bottom);\n\tright: var(--ta-send-icon-offset-right);\n}\n\n.TextArea-module_s__Ac-fq {\n}\n\n.TextArea-module_m__dod4R {\n}\n\n.TextArea-module_l__-uLCG {\n}\n");
6
6
 
@@ -19,7 +19,7 @@ const TextArea = React.memo(props => {
19
19
  (null == ref ? void 0 : ref.current) && (focused ? ref.current.focus() : ref.current.blur(),
20
20
  setIsFocused(focused));
21
21
  }, [ focused ]), React.useEffect(() => {
22
- value && (setText(value), setInvalid(runValidation(value)));
22
+ setText(value), setInvalid(runValidation(value));
23
23
  }, [ value, runValidation ]), React.useEffect(() => {
24
24
  handleResize();
25
25
  }, [ rows ]);
@@ -4,7 +4,7 @@ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/
4
4
 
5
5
  require("../theme/colors.js"), require("../hooks/useWindow.js");
6
6
 
7
- var Button = require("./Button-D8_eyuOA.js"), Icon = require("./Icon-N0YJuKQf.js"), IconButton = require("./IconButton-BXotgG2u.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
7
+ var Button = require("./Button-mVVfNCqC.js"), Icon = require("./Icon-N0YJuKQf.js"), IconButton = require("./IconButton-BXotgG2u.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
8
8
  wrapper: "TextField-module_wrapper__qZ-p- flexBox-module_rowStart__4tcxS",
9
9
  container: "TextField-module_container__5U9yK flexBox-module_rowStart__4tcxS",
10
10
  label: "TextField-module_label__jD8MR flexBox-module_rowStart__4tcxS",
@@ -184,7 +184,7 @@ const MOTION_CONFIG = {
184
184
  children: jsxRuntime.jsx(Button.Button, {
185
185
  label: "Translate",
186
186
  variant: "text",
187
- size: "text",
187
+ size: "small",
188
188
  state: "" === text ? "disabled" : "normal",
189
189
  labelColor: theme.current.colors["core-button-primary"],
190
190
  onClick: onAction
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), FileList = require("./FileList-tivoUJSP.js"), Icon = require("./Icon-N0YJuKQf.js"), ProgressIndicator = require("./ProgressIndicator-opbbADog.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
3
+ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), Icon = require("./Icon-N0YJuKQf.js"), ProgressIndicator = require("./ProgressIndicator-CyFcr6Dk.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), FileList = require("./FileList-CCAtVNDo.js"), css = {
4
4
  wrapper: "UploadArea-module_wrapper__aircC flexBox-module_column__ezvMq",
5
5
  icon: "UploadArea-module_icon__M7n-m flexBox-module_row__z24tF",
6
6
  title: "UploadArea-module_title__VbNGq type-module_body-l-bold__Fh2dt",