@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
@@ -2,15 +2,9 @@ import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
2
2
 
3
3
  import { jsxs, jsx } from "react/jsx-runtime";
4
4
 
5
- import React, { useState, useEffect, useCallback, useMemo } from "react";
5
+ import React, { useState, useCallback, useMemo } from "react";
6
6
 
7
- import { useTheme } from "../hooks/useTheme.mjs";
8
-
9
- import "../theme/colors.mjs";
10
-
11
- import "../hooks/useWindow.mjs";
12
-
13
- import { a as accessibleKeyDown } from "./misc-N8KLjOXc.mjs";
7
+ import { s as setStyle, a as accessibleKeyDown } from "./misc-N8KLjOXc.mjs";
14
8
 
15
9
  import { I as Icon } from "./Icon-C92f63Ib.mjs";
16
10
 
@@ -26,16 +20,12 @@ var css = {
26
20
  l: "Chip-module_l__3MqPN type-module_body-l-regular__lOYbg"
27
21
  };
28
22
 
29
- 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");
23
+ 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");
30
24
 
31
25
  const Chip = React.memo(props => {
32
- const theme = 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 = __rest(props, [ "label", "icon", "background", "disabled", "focused", "variant", "unframed", "iconRight", "labelSize", "tooltip", "iconColor", "onToolTip", "onClick", "onMouseDown" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isFocused, setIsFocused] = useState(focused), [isHovered, setIsHovered] = useState(!1);
33
- useEffect(() => setIsFocused(focused), [ focused ]);
34
- const handleClick = useCallback(e => {
26
+ 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 = __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 = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isHovered, setIsHovered] = useState(!1), handleClick = useCallback(e => {
35
27
  disabled || onClick(e);
36
- }, [ disabled, onClick ]), handleMouseDown = useCallback(e => {
37
- disabled || onMouseDown(e);
38
- }, [ disabled, onMouseDown ]), handleMouseEnter = useCallback((enter, event) => {
28
+ }, [ disabled, onClick ]), handleMouseEnter = useCallback((enter, event) => {
39
29
  if (enter) {
40
30
  if (tooltip) {
41
31
  const tip = {
@@ -51,44 +41,45 @@ const Chip = React.memo(props => {
51
41
  setIsHovered(!0);
52
42
  } else onToolTip(null), setIsHovered(!1);
53
43
  }, [ tooltip, onToolTip ]), padding = useMemo(() => {
54
- const isSmall = "small" === variant;
55
- 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";
56
- }, [ variant, icon, iconRight ]), computedIconColor = 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 = useMemo(() => ({
44
+ if (!icon) return `${paddingTops}px ${paddingSides}px`;
45
+ return `${paddingTops}px ${"right" === iconPosition ? paddingSides - 4 : paddingSides}px ${paddingTops}px ${"right" === iconPosition ? paddingSides : paddingSides - 4}px`;
46
+ }, [ icon, iconPosition, paddingTops, paddingSides ]), computedIconColor = 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 = useMemo(() => ({
57
47
  "--ui-chip-padding": padding,
58
- "--ui-chip-background": background || "transparent",
59
- "--ui-chip-gap": "small" === variant ? "4px" : "8px",
60
- "--ui-chip-color": computedIconColor,
61
- "--ui-chip-border-radius": "small" === variant ? "4px" : "8px",
62
- "--ui-chip-border": unframed ? "0" : "1px",
63
- "--ui-chip-border-color": unframed ? "transparent" : computedIconColor
64
- }), [ padding, background, variant, unframed, computedIconColor ]);
48
+ "--ui-chip-gap": setStyle(gap),
49
+ "--ui-chip-border-radius": setStyle(borderRadius),
50
+ "--ui-chip-border-size": setStyle(borderSize),
51
+ "--ui-chip-border-color": disabled ? borderColorDisabled : borderColor,
52
+ "--ui-chip-border-color-hover": disabled ? borderColorDisabled : borderColorHover,
53
+ "--ui-chip-bg-color": bgColor,
54
+ "--ui-chip-bg-color-hover": disabled ? bgColor : bgColorHover,
55
+ "--ui-chip-label-color": disabled ? "var(--core-text-disabled)" : labelColor,
56
+ "--ui-chip-label-color-hover": disabled ? "var(--core-text-disabled)" : labelColorHover,
57
+ "--ui-chip-cursor": disabled ? "default" : "pointer"
58
+ }), [ padding, bgColor, borderColor, borderColorDisabled, borderColorHover, borderSize, bgColorHover, labelColorHover, labelColor, gap, borderRadius, disabled ]);
65
59
  return jsxs("div", Object.assign({
66
60
  id: divId,
67
61
  className: `${css.chip}${divClass}`,
68
62
  style: Object.assign(Object.assign({}, divStyle), cssVars),
69
- onMouseDown: handleMouseDown,
70
63
  onKeyDown: e => accessibleKeyDown(e, () => handleClick(e)),
71
64
  onClick: handleClick,
72
65
  onMouseEnter: e => handleMouseEnter(!0, e),
73
- onMouseLeave: e => handleMouseEnter(!1, e),
74
- onFocus: () => setIsFocused(!0),
75
- onBlur: () => setIsFocused(!1)
66
+ onMouseLeave: e => handleMouseEnter(!1, e)
76
67
  }, rest, {
77
- children: [ icon && !iconRight && jsx("div", {
68
+ children: [ icon && "right" !== iconPosition && jsx("div", {
78
69
  className: css.icon,
79
70
  children: jsx(Icon, {
80
71
  name: icon,
81
- size: "regular" === variant ? 20 : 16,
72
+ size: iconSize,
82
73
  strokeColor: computedIconColor
83
74
  })
84
75
  }), jsx("div", {
85
76
  className: css[labelSize],
86
- children: label
87
- }), icon && iconRight && jsx("div", {
77
+ children: null != children ? children : label
78
+ }), icon && "right" === iconPosition && jsx("div", {
88
79
  className: css.icon,
89
80
  children: jsx(Icon, {
90
81
  name: icon,
91
- size: "regular" === variant ? 20 : 16,
82
+ size: iconSize,
92
83
  strokeColor: computedIconColor
93
84
  })
94
85
  }) ]
@@ -10,7 +10,7 @@ import { F as FileIcon } from "./FileIcon-ePouoJpT.mjs";
10
10
 
11
11
  import { I as Icon } from "./Icon-C92f63Ib.mjs";
12
12
 
13
- import { P as ProgressIndicator } from "./ProgressIndicator-BVwQNOcV.mjs";
13
+ import { P as ProgressIndicator } from "./ProgressIndicator-CfM2c4ty.mjs";
14
14
 
15
15
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
16
16
 
@@ -0,0 +1,148 @@
1
+ import { a as __awaiter } from "./tslib.es6-c-7TIv71.mjs";
2
+
3
+ class IndexedDB {
4
+ constructor(storeName, options = {}) {
5
+ var _a, _b, _c;
6
+ this.db = null, this.storeName = storeName, this.databaseName = null !== (_a = options.databaseName) && void 0 !== _a ? _a : storeName,
7
+ this.version = null !== (_b = options.version) && void 0 !== _b ? _b : 1, this.key = options.key,
8
+ this.autoIncrement = null !== (_c = options.autoIncrement) && void 0 !== _c && _c;
9
+ }
10
+ /**
11
+ * Initialize the IndexedDB connection.
12
+ */ initialize() {
13
+ return __awaiter(this, arguments, void 0, function*(create = !0) {
14
+ if (!this.db) {
15
+ if ("undefined" == typeof indexedDB) throw new TypeError("IndexedDB is not supported in this environment.");
16
+ this.db = yield new Promise((resolve, reject) => {
17
+ const request = indexedDB.open(this.databaseName, this.version);
18
+ let settled = !1;
19
+ const rejectOnce = error => {
20
+ settled || (settled = !0, reject(error));
21
+ };
22
+ request.onerror = () => {
23
+ var _a;
24
+ rejectOnce(null !== (_a = request.error) && void 0 !== _a ? _a : new Error("Failed to open IndexedDB."));
25
+ }, request.onupgradeneeded = () => {
26
+ var _a;
27
+ const database = request.result;
28
+ database.objectStoreNames.contains(this.storeName) || (create ? database.createObjectStore(this.storeName, {
29
+ keyPath: this.key,
30
+ autoIncrement: this.autoIncrement
31
+ }) : (null === (_a = request.transaction) || void 0 === _a || _a.abort(), rejectOnce(new Error("IndexedDB does not exist."))));
32
+ }, request.onsuccess = () => {
33
+ var database;
34
+ database = request.result, settled ? database.close() : (settled = !0, resolve(database));
35
+ };
36
+ });
37
+ }
38
+ });
39
+ }
40
+ /**
41
+ * Get a single DB value by key.
42
+ */ get(key) {
43
+ return __awaiter(this, void 0, void 0, function*() {
44
+ return this.runRequest("readonly", store => store.get(key));
45
+ });
46
+ }
47
+ /**
48
+ * Get all the values in the store.
49
+ */ getAll() {
50
+ return __awaiter(this, void 0, void 0, function*() {
51
+ return this.runRequest("readonly", store => store.getAll());
52
+ });
53
+ }
54
+ /**
55
+ * Get all keys in the store.
56
+ */ getAllKeys() {
57
+ return __awaiter(this, void 0, void 0, function*() {
58
+ return this.runRequest("readonly", store => store.getAllKeys());
59
+ });
60
+ }
61
+ set(key, value) {
62
+ return __awaiter(this, void 0, void 0, function*() {
63
+ return this.runRequest("readwrite", store => store.put(value, key));
64
+ });
65
+ }
66
+ /**
67
+ * Adds a new value to the store with or without a key.
68
+ * If a key already exists it will error.
69
+ */ add(value, key) {
70
+ return __awaiter(this, void 0, void 0, function*() {
71
+ return this.runRequest("readwrite", store => void 0 === key ? store.add(value) : store.add(value, key));
72
+ });
73
+ }
74
+ /**
75
+ * Updates a value by key. This uses IndexedDB put semantics.
76
+ */ update(key, value) {
77
+ return __awaiter(this, void 0, void 0, function*() {
78
+ return this.set(key, value);
79
+ });
80
+ }
81
+ /**
82
+ * Removes a value from the store by key.
83
+ */ remove(key) {
84
+ return __awaiter(this, void 0, void 0, function*() {
85
+ yield this.runRequest("readwrite", store => store.delete(key));
86
+ });
87
+ }
88
+ /**
89
+ * Clear all the store values
90
+ */ clear() {
91
+ return __awaiter(this, void 0, void 0, function*() {
92
+ yield this.runRequest("readwrite", store => store.clear());
93
+ });
94
+ }
95
+ /**
96
+ * Cleanly close the IndexedDB connection.
97
+ */ close() {
98
+ return __awaiter(this, void 0, void 0, function*() {
99
+ var _a;
100
+ null === (_a = this.db) || void 0 === _a || _a.close(), this.db = null;
101
+ });
102
+ }
103
+ /**
104
+ * Deletes an indexedDB database.
105
+ */ destroy() {
106
+ return __awaiter(this, void 0, void 0, function*() {
107
+ if (yield this.close(), "undefined" == typeof indexedDB) throw new TypeError("IndexedDB is not supported in this environment.");
108
+ yield new Promise((resolve, reject) => {
109
+ const request = indexedDB.deleteDatabase(this.databaseName);
110
+ request.onerror = () => {
111
+ var _a;
112
+ reject(null !== (_a = request.error) && void 0 !== _a ? _a : new Error("Failed to delete IndexedDB."));
113
+ }, request.onsuccess = () => resolve(), request.onblocked = () => {
114
+ reject(new Error("Failed to delete IndexedDB because it is blocked."));
115
+ };
116
+ });
117
+ });
118
+ }
119
+ /**
120
+ * Private executor of request of the indexedDB
121
+ * Returns the result of the indexedDB request including the error if there is one
122
+ */ runRequest(mode, callback) {
123
+ return __awaiter(this, void 0, void 0, function*() {
124
+ if (yield this.initialize(), !this.db) throw new Error("IndexedDB connection is not initialized.");
125
+ const transaction = this.db.transaction(this.storeName, mode), store = transaction.objectStore(this.storeName);
126
+ let result;
127
+ return yield new Promise((resolve, reject) => {
128
+ const request = callback(store);
129
+ request.onerror = () => {
130
+ var _a;
131
+ reject(null !== (_a = request.error) && void 0 !== _a ? _a : new Error("IndexedDB request failed."));
132
+ }, request.onsuccess = () => {
133
+ result = request.result;
134
+ }, transaction.onerror = () => {
135
+ var _a, _b;
136
+ reject(null !== (_b = null !== (_a = transaction.error) && void 0 !== _a ? _a : request.error) && void 0 !== _b ? _b : new Error("IndexedDB transaction failed."));
137
+ }, transaction.onabort = () => {
138
+ var _a, _b;
139
+ reject(null !== (_b = null !== (_a = transaction.error) && void 0 !== _a ? _a : request.error) && void 0 !== _b ? _b : new Error("IndexedDB transaction was aborted."));
140
+ }, transaction.oncomplete = () => {
141
+ resolve(result);
142
+ };
143
+ });
144
+ });
145
+ }
146
+ }
147
+
148
+ export { IndexedDB as I };
@@ -21,13 +21,22 @@ var css$1_wrapper = "DoneCheck-module_wrapper__AlISD flexBox-module_row__z24tF",
21
21
  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");
22
22
 
23
23
  const DoneCheck = React.memo(props => {
24
- const theme = 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] = useState(!1);
25
- useEffect(() => setPlaying(play), [ play ]);
24
+ const theme = 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] = useState(!play);
25
+ useEffect(() => {
26
+ let frameOne = 0, frameTwo = 0;
27
+ return play ? (setPlaying(!1), frameOne = requestAnimationFrame(() => {
28
+ frameTwo = requestAnimationFrame(() => {
29
+ setPlaying(!0);
30
+ });
31
+ })) : setPlaying(!0), () => {
32
+ frameOne && cancelAnimationFrame(frameOne), frameTwo && cancelAnimationFrame(frameTwo);
33
+ };
34
+ }, [ play ]);
26
35
  const transition = useMemo(() => `scale ${duration}s var(--motion-spring) ${delay}s`, [ delay, duration ]), cssVars = useMemo(() => ({
27
36
  "--icon-size": `${size}px`,
28
37
  "--icon-scale": playing ? 1 : 0,
29
- "--icon-transition": playing ? transition : "unset"
30
- }), [ size, playing, transition ]);
38
+ "--icon-transition": play ? transition : "unset"
39
+ }), [ size, playing, play, transition ]);
31
40
  return jsx("div", {
32
41
  className: css$1_wrapper,
33
42
  role: "status",
@@ -8,12 +8,12 @@ import "../theme/colors.mjs";
8
8
 
9
9
  import "../hooks/useWindow.mjs";
10
10
 
11
- import { B as Button } from "./Button-DAvVj4YV.mjs";
12
-
13
- import { F as FileList } from "./FileList-BHCGzX_0.mjs";
11
+ import { B as Button } from "./Button-m0XAJsq5.mjs";
14
12
 
15
13
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
16
14
 
15
+ import { F as FileList } from "./FileList-Ckix8gUY.mjs";
16
+
17
17
  var css = {
18
18
  wrapperBg: "PromptInput-module_wrapperBg__zabZq flexBox-module_columnStart__C7P44",
19
19
  bgRotate: "PromptInput-module_bgRotate__Um720",
@@ -4,7 +4,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
4
4
 
5
5
  import React, { useState, useRef, useCallback, useEffect, useMemo } from "react";
6
6
 
7
- import { B as Button } from "./Button-DAvVj4YV.mjs";
7
+ import { B as Button } from "./Button-m0XAJsq5.mjs";
8
8
 
9
9
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
10
10
 
@@ -27,7 +27,7 @@ const TextArea = React.memo(props => {
27
27
  (null == ref ? void 0 : ref.current) && (focused ? ref.current.focus() : ref.current.blur(),
28
28
  setIsFocused(focused));
29
29
  }, [ focused ]), useEffect(() => {
30
- value && (setText(value), setInvalid(runValidation(value)));
30
+ setText(value), setInvalid(runValidation(value));
31
31
  }, [ value, runValidation ]), useEffect(() => {
32
32
  handleResize();
33
33
  }, [ rows ]);
@@ -12,7 +12,7 @@ import "../theme/colors.mjs";
12
12
 
13
13
  import "../hooks/useWindow.mjs";
14
14
 
15
- import { B as Button } from "./Button-DAvVj4YV.mjs";
15
+ import { B as Button } from "./Button-m0XAJsq5.mjs";
16
16
 
17
17
  import { I as Icon } from "./Icon-C92f63Ib.mjs";
18
18
 
@@ -200,7 +200,7 @@ const MOTION_CONFIG = {
200
200
  children: jsx(Button, {
201
201
  label: "Translate",
202
202
  variant: "text",
203
- size: "text",
203
+ size: "small",
204
204
  state: "" === text ? "disabled" : "normal",
205
205
  labelColor: theme.current.colors["core-button-primary"],
206
206
  onClick: onAction
@@ -4,14 +4,14 @@ import React, { useState, useRef, useId, useCallback, useMemo } from "react";
4
4
 
5
5
  import { s as setStyle, a as accessibleKeyDown } from "./misc-N8KLjOXc.mjs";
6
6
 
7
- import { F as FileList } from "./FileList-BHCGzX_0.mjs";
8
-
9
7
  import { I as Icon } from "./Icon-C92f63Ib.mjs";
10
8
 
11
- import { P as ProgressIndicator } from "./ProgressIndicator-BVwQNOcV.mjs";
9
+ import { P as ProgressIndicator } from "./ProgressIndicator-CfM2c4ty.mjs";
12
10
 
13
11
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
14
12
 
13
+ import { F as FileList } from "./FileList-Ckix8gUY.mjs";
14
+
15
15
  var css = {
16
16
  wrapper: "UploadArea-module_wrapper__aircC flexBox-module_column__ezvMq",
17
17
  icon: "UploadArea-module_icon__M7n-m flexBox-module_row__z24tF",