@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
@@ -0,0 +1,265 @@
1
+ import { a as __awaiter, _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
2
+
3
+ import { useMemo } from "react";
4
+
5
+ import { create } from "zustand";
6
+
7
+ import { useShallow } from "zustand/react/shallow";
8
+
9
+ import { I as IndexedDB } from "./IndexedDB-CJgzPHPB.mjs";
10
+
11
+ function isValidIDBKey(key) {
12
+ return "string" == typeof key || "number" == typeof key || key instanceof Date || key instanceof ArrayBuffer || (Array.isArray(key) ? key.every(entry => isValidIDBKey(entry)) : ArrayBuffer.isView(key));
13
+ }
14
+
15
+ function areKeysEqual(left, right) {
16
+ return left instanceof Date && right instanceof Date ? left.getTime() === right.getTime() : Array.isArray(left) && Array.isArray(right) ? left.length === right.length && left.every((value, index) => areKeysEqual(value, right[index])) : left === right;
17
+ }
18
+
19
+ function normalizeValues(value) {
20
+ return Array.isArray(value) ? value : [ value ];
21
+ }
22
+
23
+ function readStoreRecords(connection) {
24
+ return __awaiter(this, void 0, void 0, function*() {
25
+ const [keys, values] = yield Promise.all([ connection.getAllKeys(), connection.getAll() ]);
26
+ return keys.map((key, index) => {
27
+ var _a;
28
+ return {
29
+ key: key,
30
+ value: null !== (_a = values[index]) && void 0 !== _a ? _a : null
31
+ };
32
+ });
33
+ });
34
+ }
35
+
36
+ function getConnection(stores, name) {
37
+ const connection = stores.find(entry => entry.name === name);
38
+ if (!connection) throw new Error(`IndexedDB store "${name}" is not registered.`);
39
+ return connection;
40
+ }
41
+
42
+ function applyConnectionState(name, patch) {
43
+ useLocalDBStore.setState(state => ({
44
+ stores: state.stores.map(entry => entry.name === name ? Object.assign(Object.assign({}, entry), patch) : entry)
45
+ }));
46
+ }
47
+
48
+ function applyStoreError(name, error) {
49
+ applyConnectionState(name, {
50
+ error: error instanceof Error ? error.message : String(error)
51
+ });
52
+ }
53
+
54
+ function toError(error) {
55
+ return error instanceof Error ? error : new Error(String(error));
56
+ }
57
+
58
+ function failureResult(error) {
59
+ return {
60
+ ok: !1,
61
+ error: toError(error)
62
+ };
63
+ }
64
+
65
+ function successValueResult(value) {
66
+ return {
67
+ ok: !0,
68
+ value: value
69
+ };
70
+ }
71
+
72
+ function failureValueResult(error) {
73
+ return {
74
+ ok: !1,
75
+ error: toError(error)
76
+ };
77
+ }
78
+
79
+ function deriveRecordKey(store, value) {
80
+ const keyField = function(store) {
81
+ if (!store.key) throw new Error(`IndexedDB store "${store.name}" requires a configured key field for value-driven actions.`);
82
+ return store.key;
83
+ }(store);
84
+ if (!value || "object" != typeof value) throw new Error(`IndexedDB store "${store.name}" expects object values for value-driven actions.`);
85
+ const candidate = value[keyField];
86
+ if (void 0 === candidate) throw new Error(`IndexedDB store "${store.name}" expected field "${keyField}" on the provided value.`);
87
+ if (!isValidIDBKey(candidate)) throw new Error(`IndexedDB store "${store.name}" field "${keyField}" does not contain a valid IndexedDB key.`);
88
+ return candidate;
89
+ }
90
+
91
+ function replaceConnection(connection) {
92
+ useLocalDBStore.setState(state => ({
93
+ stores: [ ...state.stores.filter(entry => entry.name !== connection.name), connection ]
94
+ }));
95
+ }
96
+
97
+ const useLocalDBStore = create((set, get) => ({
98
+ stores: [],
99
+ actions: {
100
+ addStore: (name_1, ...args_1) => __awaiter(void 0, [ name_1, ...args_1 ], void 0, function*(name, options = {}) {
101
+ var _a, _b;
102
+ const existing = get().stores.find(entry => entry.name === name), {create: create = !0} = options, connectionOptions = __rest(options, [ "create" ]), connection = new IndexedDB(name, connectionOptions);
103
+ try {
104
+ yield null == existing ? void 0 : existing.connection.close(), yield connection.initialize(create);
105
+ const records = yield readStoreRecords(connection);
106
+ return replaceConnection({
107
+ name: name,
108
+ connection: connection,
109
+ key: null !== (_a = options.key) && void 0 !== _a ? _a : null,
110
+ records: records,
111
+ initialized: !0,
112
+ error: null
113
+ }), {
114
+ ok: !0
115
+ };
116
+ } catch (error) {
117
+ return function(name, connection, key, error) {
118
+ replaceConnection({
119
+ name: name,
120
+ connection: connection,
121
+ key: key,
122
+ records: [],
123
+ initialized: !1,
124
+ error: toError(error).message
125
+ });
126
+ }(name, connection, null !== (_b = options.key) && void 0 !== _b ? _b : null, error),
127
+ failureResult(error);
128
+ }
129
+ }),
130
+ removeStore: name => __awaiter(void 0, void 0, void 0, function*() {
131
+ try {
132
+ const existing = get().stores.find(entry => entry.name === name);
133
+ return existing ? (yield existing.connection.close(), set(state => ({
134
+ stores: state.stores.filter(entry => entry.name !== name)
135
+ })), {
136
+ ok: !0
137
+ }) : {
138
+ ok: !0
139
+ };
140
+ } catch (error) {
141
+ return applyStoreError(name, error), failureResult(error);
142
+ }
143
+ }),
144
+ refreshStore: name => __awaiter(void 0, void 0, void 0, function*() {
145
+ try {
146
+ const existing = getConnection(get().stores, name), records = yield readStoreRecords(existing.connection);
147
+ return applyConnectionState(name, {
148
+ records: records,
149
+ initialized: !0,
150
+ error: null
151
+ }), {
152
+ ok: !0
153
+ };
154
+ } catch (error) {
155
+ return applyStoreError(name, error), failureResult(error);
156
+ }
157
+ }),
158
+ setValue: (name, value) => __awaiter(void 0, void 0, void 0, function*() {
159
+ try {
160
+ const existing = getConnection(get().stores, name), values = normalizeValues(value), resolvedKeys = [];
161
+ for (const item of values) {
162
+ const key = deriveRecordKey(existing, item), resolvedKey = yield existing.connection.set(key, item);
163
+ resolvedKeys.push(resolvedKey);
164
+ }
165
+ const records = yield readStoreRecords(existing.connection);
166
+ return applyConnectionState(name, {
167
+ records: records,
168
+ error: null
169
+ }), successValueResult(Array.isArray(value) ? resolvedKeys : resolvedKeys[0]);
170
+ } catch (error) {
171
+ return applyStoreError(name, error), failureValueResult(error);
172
+ }
173
+ }),
174
+ addValue: (name, value) => __awaiter(void 0, void 0, void 0, function*() {
175
+ try {
176
+ const existing = getConnection(get().stores, name), values = normalizeValues(value), resolvedKeys = [];
177
+ for (const item of values) {
178
+ const resolvedKey = yield existing.connection.add(item);
179
+ resolvedKeys.push(resolvedKey);
180
+ }
181
+ const records = yield readStoreRecords(existing.connection);
182
+ return applyConnectionState(name, {
183
+ records: records,
184
+ error: null
185
+ }), successValueResult(Array.isArray(value) ? resolvedKeys : resolvedKeys[0]);
186
+ } catch (error) {
187
+ return applyStoreError(name, error), failureValueResult(error);
188
+ }
189
+ }),
190
+ removeValue: (name, value) => __awaiter(void 0, void 0, void 0, function*() {
191
+ try {
192
+ const existing = getConnection(get().stores, name), values = normalizeValues(value);
193
+ for (const item of values) {
194
+ const key = deriveRecordKey(existing, item);
195
+ yield existing.connection.remove(key);
196
+ }
197
+ const records = yield readStoreRecords(existing.connection);
198
+ return applyConnectionState(name, {
199
+ records: records,
200
+ error: null
201
+ }), {
202
+ ok: !0
203
+ };
204
+ } catch (error) {
205
+ return applyStoreError(name, error), failureResult(error);
206
+ }
207
+ }),
208
+ clearStore: name => __awaiter(void 0, void 0, void 0, function*() {
209
+ try {
210
+ const existing = getConnection(get().stores, name);
211
+ return yield existing.connection.clear(), applyConnectionState(name, {
212
+ records: [],
213
+ error: null
214
+ }), {
215
+ ok: !0
216
+ };
217
+ } catch (error) {
218
+ return applyStoreError(name, error), failureResult(error);
219
+ }
220
+ }),
221
+ destroyStore: name => __awaiter(void 0, void 0, void 0, function*() {
222
+ try {
223
+ const existing = get().stores.find(entry => entry.name === name);
224
+ return existing ? (yield existing.connection.destroy(), set(state => ({
225
+ stores: state.stores.filter(entry => entry.name !== name)
226
+ })), {
227
+ ok: !0
228
+ }) : {
229
+ ok: !0
230
+ };
231
+ } catch (error) {
232
+ return applyStoreError(name, error), failureResult(error);
233
+ }
234
+ })
235
+ }
236
+ })), useLocalDB = name => {
237
+ const actions = useManageLocalDB();
238
+ return useMemo(() => ({
239
+ refresh: () => actions.refreshStore(name),
240
+ set: value => actions.setValue(name, value),
241
+ add: value => actions.addValue(name, value),
242
+ remove: value => actions.removeValue(name, value),
243
+ clear: () => actions.clearStore(name),
244
+ destroy: () => actions.destroyStore(name)
245
+ }), [ actions, name ]);
246
+ };
247
+
248
+ function useLocalDBValues(name, fieldOrKey, value) {
249
+ const records = useLocalDBStore(useShallow(state => {
250
+ var _a, _b;
251
+ return null !== (_b = null === (_a = state.stores.find(entry => entry.name === name)) || void 0 === _a ? void 0 : _a.records) && void 0 !== _b ? _b : [];
252
+ }));
253
+ return useMemo(() => {
254
+ var _a, _b;
255
+ const values = records.map(record => record.value);
256
+ return void 0 === fieldOrKey ? values : void 0 === value ? null !== (_b = null === (_a = records.find(record => areKeysEqual(record.key, fieldOrKey))) || void 0 === _a ? void 0 : _a.value) && void 0 !== _b ? _b : null : values.filter(entry => (null == entry ? void 0 : entry[fieldOrKey]) === value);
257
+ }, [ fieldOrKey, records, value ]);
258
+ }
259
+
260
+ const useLocalDBError = name => useLocalDBStore(state => {
261
+ var _a, _b;
262
+ return null !== (_b = null === (_a = state.stores.find(entry => entry.name === name)) || void 0 === _a ? void 0 : _a.error) && void 0 !== _b ? _b : null;
263
+ }), useManageLocalDB = () => useLocalDBStore.getState().actions, localDBActions = useLocalDBStore.getState().actions;
264
+
265
+ export { useLocalDBError as a, useLocalDBStore as b, useLocalDBValues as c, useManageLocalDB as d, localDBActions as l, useLocalDB as u };
@@ -1,4 +1,4 @@
1
- export { A as Avatar } from "../../chunks/Avatar-DGRMsHdO.mjs";
1
+ export { A as Avatar } from "../../chunks/Avatar-DCCbj2eA.mjs";
2
2
 
3
3
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
4
4
 
@@ -1,4 +1,4 @@
1
- export { A as AvatarGroup } from "../../chunks/AvatarGroup-C9Ka1e9P.mjs";
1
+ export { A as AvatarGroup } from "../../chunks/AvatarGroup-BaD2Xmda.mjs";
2
2
 
3
3
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
4
4
 
@@ -6,7 +6,7 @@ import "react/jsx-runtime";
6
6
 
7
7
  import "react";
8
8
 
9
- import "../../chunks/Avatar-DGRMsHdO.mjs";
9
+ import "../../chunks/Avatar-DCCbj2eA.mjs";
10
10
 
11
11
  import "../../chunks/misc-N8KLjOXc.mjs";
12
12
 
@@ -1,4 +1,4 @@
1
- export { B as Button } from "../../chunks/Button-DAvVj4YV.mjs";
1
+ export { B as Button } from "../../chunks/Button-m0XAJsq5.mjs";
2
2
 
3
3
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
4
4
 
@@ -36,6 +36,6 @@ import "../../hooks/useWindow.mjs";
36
36
 
37
37
  import "../../chunks/misc-N8KLjOXc.mjs";
38
38
 
39
- import "../../chunks/ProgressIndicator-BVwQNOcV.mjs";
39
+ import "../../chunks/ProgressIndicator-CfM2c4ty.mjs";
40
40
 
41
41
  import "../../chunks/sharedTypes-tn9-uJvb.mjs";
@@ -1,4 +1,4 @@
1
- export { B as ButtonBar } from "../../chunks/ButtonBar-Cw73kooJ.mjs";
1
+ export { B as ButtonBar } from "../../chunks/ButtonBar-CNQHRn77.mjs";
2
2
 
3
3
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
4
4
 
@@ -6,6 +6,10 @@ import "react/jsx-runtime";
6
6
 
7
7
  import "react";
8
8
 
9
+ import "../../chunks/misc-N8KLjOXc.mjs";
10
+
11
+ import "../../chunks/Icon-C92f63Ib.mjs";
12
+
9
13
  import "../../hooks/useTheme.mjs";
10
14
 
11
15
  import "../../theme/themes.mjs";
@@ -24,18 +28,4 @@ import "../../hooks/useObserveTheme.mjs";
24
28
 
25
29
  import "../../hooks/useWindow.mjs";
26
30
 
27
- import "../../chunks/IconButton-4O5S9S9G.mjs";
28
-
29
- import "motion/react";
30
-
31
- import "../../chunks/Badge-DyICxZP2.mjs";
32
-
33
31
  import "../../chunks/style-inject.es-D0BjEaN8.mjs";
34
-
35
- import "../../chunks/Dot-CLGwQu-i.mjs";
36
-
37
- import "../../chunks/Icon-C92f63Ib.mjs";
38
-
39
- import "../../chunks/misc-N8KLjOXc.mjs";
40
-
41
- import "../../chunks/sharedTypes-tn9-uJvb.mjs";
@@ -1,4 +1,4 @@
1
- export { C as Camera } from "../../chunks/Camera-BrdJGlv6.mjs";
1
+ export { C as Camera } from "../../chunks/Camera-7TuowjX_.mjs";
2
2
 
3
3
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
4
4
 
@@ -28,7 +28,7 @@ import "../../chunks/misc-N8KLjOXc.mjs";
28
28
 
29
29
  import "../../chunks/colors-FQ0uNQcW.mjs";
30
30
 
31
- import "../../chunks/Avatar-DGRMsHdO.mjs";
31
+ import "../../chunks/Avatar-DCCbj2eA.mjs";
32
32
 
33
33
  import "../../chunks/style-inject.es-D0BjEaN8.mjs";
34
34
 
@@ -1,4 +1,4 @@
1
- export { C as CheckBox } from "../../chunks/CheckBox-B7UCZvRv.mjs";
1
+ export { C as CheckBox } from "../../chunks/CheckBox-DO9hTdv8.mjs";
2
2
 
3
3
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
4
4
 
@@ -1,4 +1,4 @@
1
- export { C as Chip } from "../../chunks/Chip-BPF7fBba.mjs";
1
+ export { C as Chip } from "../../chunks/Chip-BqneFUOR.mjs";
2
2
 
3
3
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
4
4
 
@@ -6,6 +6,10 @@ import "react/jsx-runtime";
6
6
 
7
7
  import "react";
8
8
 
9
+ import "../../chunks/misc-N8KLjOXc.mjs";
10
+
11
+ import "../../chunks/Icon-C92f63Ib.mjs";
12
+
9
13
  import "../../hooks/useTheme.mjs";
10
14
 
11
15
  import "../../theme/themes.mjs";
@@ -24,10 +28,6 @@ import "../../hooks/useObserveTheme.mjs";
24
28
 
25
29
  import "../../hooks/useWindow.mjs";
26
30
 
27
- import "../../chunks/misc-N8KLjOXc.mjs";
28
-
29
- import "../../chunks/Icon-C92f63Ib.mjs";
30
-
31
31
  import "../../chunks/style-inject.es-D0BjEaN8.mjs";
32
32
 
33
33
  import "../../chunks/sharedTypes-tn9-uJvb.mjs";
@@ -1,4 +1,4 @@
1
- export { F as FileList } from "../../chunks/FileList-BHCGzX_0.mjs";
1
+ export { F as FileList } from "../../chunks/FileList-Ckix8gUY.mjs";
2
2
 
3
3
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
4
4
 
@@ -32,6 +32,6 @@ import "../../chunks/Icon-C92f63Ib.mjs";
32
32
 
33
33
  import "../../chunks/style-inject.es-D0BjEaN8.mjs";
34
34
 
35
- import "../../chunks/ProgressIndicator-BVwQNOcV.mjs";
35
+ import "../../chunks/ProgressIndicator-CfM2c4ty.mjs";
36
36
 
37
37
  import "motion/react";
@@ -1,4 +1,4 @@
1
- export { D as DoneCheck, P as ProgressIndicator } from "../../chunks/ProgressIndicator-BVwQNOcV.mjs";
1
+ export { D as DoneCheck, P as ProgressIndicator } from "../../chunks/ProgressIndicator-CfM2c4ty.mjs";
2
2
 
3
3
  import "react/jsx-runtime";
4
4
 
@@ -1,4 +1,4 @@
1
- export { P as PromptInput } from "../../chunks/PromptInput-pKwwzyAd.mjs";
1
+ export { P as PromptInput } from "../../chunks/PromptInput-C6liKbFf.mjs";
2
2
 
3
3
  import "react/jsx-runtime";
4
4
 
@@ -22,7 +22,7 @@ import "../../hooks/useObserveTheme.mjs";
22
22
 
23
23
  import "../../hooks/useWindow.mjs";
24
24
 
25
- import "../../chunks/Button-DAvVj4YV.mjs";
25
+ import "../../chunks/Button-m0XAJsq5.mjs";
26
26
 
27
27
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
28
28
 
@@ -38,10 +38,10 @@ import "../../chunks/Icon-C92f63Ib.mjs";
38
38
 
39
39
  import "../../chunks/misc-N8KLjOXc.mjs";
40
40
 
41
- import "../../chunks/ProgressIndicator-BVwQNOcV.mjs";
41
+ import "../../chunks/ProgressIndicator-CfM2c4ty.mjs";
42
42
 
43
43
  import "../../chunks/sharedTypes-tn9-uJvb.mjs";
44
44
 
45
- import "../../chunks/FileList-BHCGzX_0.mjs";
45
+ import "../../chunks/FileList-Ckix8gUY.mjs";
46
46
 
47
47
  import "../../chunks/FileIcon-ePouoJpT.mjs";
@@ -1,4 +1,4 @@
1
- export { T as TextArea } from "../../chunks/TextArea-yF2pGeel.mjs";
1
+ export { T as TextArea } from "../../chunks/TextArea-DKRF4Irr.mjs";
2
2
 
3
3
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
4
4
 
@@ -6,7 +6,7 @@ import "react/jsx-runtime";
6
6
 
7
7
  import "react";
8
8
 
9
- import "../../chunks/Button-DAvVj4YV.mjs";
9
+ import "../../chunks/Button-m0XAJsq5.mjs";
10
10
 
11
11
  import "motion/react";
12
12
 
@@ -38,6 +38,6 @@ import "../../hooks/useWindow.mjs";
38
38
 
39
39
  import "../../chunks/misc-N8KLjOXc.mjs";
40
40
 
41
- import "../../chunks/ProgressIndicator-BVwQNOcV.mjs";
41
+ import "../../chunks/ProgressIndicator-CfM2c4ty.mjs";
42
42
 
43
43
  import "../../chunks/sharedTypes-tn9-uJvb.mjs";
@@ -1,4 +1,4 @@
1
- export { T as TextField } from "../../chunks/TextField-CgnPj6oK.mjs";
1
+ export { T as TextField } from "../../chunks/TextField-CGOR6507.mjs";
2
2
 
3
3
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
4
4
 
@@ -26,7 +26,7 @@ import "../../hooks/useObserveTheme.mjs";
26
26
 
27
27
  import "../../hooks/useWindow.mjs";
28
28
 
29
- import "../../chunks/Button-DAvVj4YV.mjs";
29
+ import "../../chunks/Button-m0XAJsq5.mjs";
30
30
 
31
31
  import "../../chunks/Badge-DyICxZP2.mjs";
32
32
 
@@ -38,7 +38,7 @@ import "../../chunks/Icon-C92f63Ib.mjs";
38
38
 
39
39
  import "../../chunks/misc-N8KLjOXc.mjs";
40
40
 
41
- import "../../chunks/ProgressIndicator-BVwQNOcV.mjs";
41
+ import "../../chunks/ProgressIndicator-CfM2c4ty.mjs";
42
42
 
43
43
  import "../../chunks/sharedTypes-tn9-uJvb.mjs";
44
44
 
@@ -1,4 +1,4 @@
1
- export { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "../../chunks/UploadArea-BNf1y8Ep.mjs";
1
+ export { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "../../chunks/UploadArea-DNAH-Bu5.mjs";
2
2
 
3
3
  import "react/jsx-runtime";
4
4
 
@@ -8,9 +8,7 @@ import "../../chunks/misc-N8KLjOXc.mjs";
8
8
 
9
9
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
10
10
 
11
- import "../../chunks/FileList-BHCGzX_0.mjs";
12
-
13
- import "../../chunks/FileIcon-ePouoJpT.mjs";
11
+ import "../../chunks/Icon-C92f63Ib.mjs";
14
12
 
15
13
  import "../../hooks/useTheme.mjs";
16
14
 
@@ -30,10 +28,12 @@ import "../../hooks/useObserveTheme.mjs";
30
28
 
31
29
  import "../../hooks/useWindow.mjs";
32
30
 
33
- import "../../chunks/Icon-C92f63Ib.mjs";
34
-
35
31
  import "../../chunks/style-inject.es-D0BjEaN8.mjs";
36
32
 
37
- import "../../chunks/ProgressIndicator-BVwQNOcV.mjs";
33
+ import "../../chunks/ProgressIndicator-CfM2c4ty.mjs";
38
34
 
39
35
  import "motion/react";
36
+
37
+ import "../../chunks/FileList-Ckix8gUY.mjs";
38
+
39
+ import "../../chunks/FileIcon-ePouoJpT.mjs";
@@ -26,22 +26,20 @@ export { useWindow } from "./hooks/useWindow.mjs";
26
26
 
27
27
  export { useObserveResize } from "./hooks/useObserveResize.mjs";
28
28
 
29
- export { A as Avatar } from "./chunks/Avatar-DGRMsHdO.mjs";
29
+ export { A as Avatar } from "./chunks/Avatar-DCCbj2eA.mjs";
30
30
 
31
- export { A as AvatarGroup } from "./chunks/AvatarGroup-C9Ka1e9P.mjs";
31
+ export { A as AvatarGroup } from "./chunks/AvatarGroup-BaD2Xmda.mjs";
32
32
 
33
33
  export { B as Badge } from "./chunks/Badge-DyICxZP2.mjs";
34
34
 
35
35
  export { I as IconButton } from "./chunks/IconButton-4O5S9S9G.mjs";
36
36
 
37
- export { C as Camera } from "./chunks/Camera-BrdJGlv6.mjs";
37
+ export { C as Camera } from "./chunks/Camera-7TuowjX_.mjs";
38
38
 
39
- export { C as CheckBox } from "./chunks/CheckBox-B7UCZvRv.mjs";
39
+ export { C as CheckBox } from "./chunks/CheckBox-DO9hTdv8.mjs";
40
40
 
41
41
  export { D as DivInput } from "./chunks/DivInput-Ch9XjfWd.mjs";
42
42
 
43
- export { D as DocIcons } from "./chunks/DocIcons-B4xsPrXM.mjs";
44
-
45
43
  export { D as Dot } from "./chunks/Dot-CLGwQu-i.mjs";
46
44
 
47
45
  export { D as DraggablePanel } from "./chunks/DrggablePanel-Ddi0vPRp.mjs";
@@ -58,9 +56,9 @@ export { F as FlexDiv } from "./chunks/FlexDiv-LGEGGrT0.mjs";
58
56
 
59
57
  export { P as Pager } from "./chunks/Pager-BlLYeA2F.mjs";
60
58
 
61
- export { P as PromptInput } from "./chunks/PromptInput-pKwwzyAd.mjs";
59
+ export { P as PromptInput } from "./chunks/PromptInput-C6liKbFf.mjs";
62
60
 
63
- export { D as DoneCheck, P as ProgressIndicator } from "./chunks/ProgressIndicator-BVwQNOcV.mjs";
61
+ export { D as DoneCheck, P as ProgressIndicator } from "./chunks/ProgressIndicator-CfM2c4ty.mjs";
64
62
 
65
63
  export { R as RadioButton } from "./chunks/RadioButton-COEnChNW.mjs";
66
64
 
@@ -74,9 +72,9 @@ export { S as Switch } from "./chunks/Switch-Cv6LABsW.mjs";
74
72
 
75
73
  export { T as TabBar } from "./chunks/TabBar-qiozE5zA.mjs";
76
74
 
77
- export { T as TextArea } from "./chunks/TextArea-yF2pGeel.mjs";
75
+ export { T as TextArea } from "./chunks/TextArea-DKRF4Irr.mjs";
78
76
 
79
- export { T as TextField } from "./chunks/TextField-CgnPj6oK.mjs";
77
+ export { T as TextField } from "./chunks/TextField-CGOR6507.mjs";
80
78
 
81
79
  export { ThemeProvider } from "./providers/ThemeProvider.mjs";
82
80
 
@@ -84,9 +82,9 @@ export { T as Tip } from "./chunks/Tip-CroDIKO4.mjs";
84
82
 
85
83
  export { T as Toast, a as ToastType } from "./chunks/Toast-CM493gMR.mjs";
86
84
 
87
- export { B as Button } from "./chunks/Button-DAvVj4YV.mjs";
85
+ export { B as Button } from "./chunks/Button-m0XAJsq5.mjs";
88
86
 
89
- export { C as Chip } from "./chunks/Chip-BPF7fBba.mjs";
87
+ export { C as Chip } from "./chunks/Chip-BqneFUOR.mjs";
90
88
 
91
89
  export { F as FileIcon, a as FileIconNames } from "./chunks/FileIcon-ePouoJpT.mjs";
92
90
 
@@ -94,13 +92,11 @@ export { I as Icon } from "./chunks/Icon-C92f63Ib.mjs";
94
92
 
95
93
  export { S as SliceIcons } from "./chunks/_types-C2C2Zwd0.mjs";
96
94
 
97
- export { B as ButtonBar } from "./chunks/ButtonBar-Cw73kooJ.mjs";
98
-
99
- export { C as Card } from "./chunks/Card-DGlv1PII.mjs";
95
+ export { B as ButtonBar } from "./chunks/ButtonBar-CNQHRn77.mjs";
100
96
 
101
97
  export { L as Label } from "./chunks/Label-7ezP3eHw.mjs";
102
98
 
103
- export { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "./chunks/UploadArea-BNf1y8Ep.mjs";
99
+ export { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "./chunks/UploadArea-DNAH-Bu5.mjs";
104
100
 
105
101
  import "./theme/corners.mjs";
106
102
 
@@ -120,6 +116,6 @@ import "motion/react";
120
116
 
121
117
  import "./chunks/colors-FQ0uNQcW.mjs";
122
118
 
123
- import "./chunks/FileList-BHCGzX_0.mjs";
119
+ import "./chunks/FileList-Ckix8gUY.mjs";
124
120
 
125
121
  import "./chunks/debounce-Bst1jxMS.mjs";
@@ -0,0 +1,11 @@
1
+ export { l as localDBActions, u as useLocalDB, a as useLocalDBError, b as useLocalDBStore, c as useLocalDBValues, d as useManageLocalDB } from "../chunks/localDBStore-C-Ch2MFq.mjs";
2
+
3
+ import "../chunks/tslib.es6-c-7TIv71.mjs";
4
+
5
+ import "react";
6
+
7
+ import "zustand";
8
+
9
+ import "zustand/react/shallow";
10
+
11
+ import "../chunks/IndexedDB-CJgzPHPB.mjs";
@@ -6,6 +6,8 @@ export { g as getTip, t as tipActions, u as useTip, a as useTipActions, b as use
6
6
 
7
7
  export { g as getToast, t as toastActions, u as useToast, a as useToastActions, b as useToastStore } from "./chunks/toastStore-D2PEIqCo.mjs";
8
8
 
9
+ export { l as localDBActions, u as useLocalDB, a as useLocalDBError, b as useLocalDBStore, c as useLocalDBValues, d as useManageLocalDB } from "./chunks/localDBStore-C-Ch2MFq.mjs";
10
+
9
11
  export { u as useConnectionClose, a as useConnectionMessage, b as useIsConnected, c as useLastSSEMessage, d as useMessage, e as useSSE, f as useSSEActions, g as useSSEStore } from "./chunks/sseStore-2JIpEKfz.mjs";
10
12
 
11
13
  import "./chunks/tslib.es6-c-7TIv71.mjs";
@@ -14,4 +16,10 @@ import "zustand";
14
16
 
15
17
  import "./chunks/uploads-worker-Dv-4zGnC.mjs";
16
18
 
19
+ import "react";
20
+
21
+ import "zustand/react/shallow";
22
+
23
+ import "./chunks/IndexedDB-CJgzPHPB.mjs";
24
+
17
25
  import "./chunks/SSEConnection-DcA3wFsO.mjs";
@@ -4,6 +4,8 @@ export { d as debounce } from "../chunks/debounce-Bst1jxMS.mjs";
4
4
 
5
5
  export { a as addOpacity, t as tintFromColor } from "../chunks/colors-FQ0uNQcW.mjs";
6
6
 
7
+ export { I as IndexedDB } from "../chunks/IndexedDB-CJgzPHPB.mjs";
8
+
7
9
  export { S as SSEConnection } from "../chunks/SSEConnection-DcA3wFsO.mjs";
8
10
 
9
11
  export { W as WSConnection } from "../chunks/WSConnection-D9mpsVdc.mjs";
@@ -1,3 +1,5 @@
1
+ export { I as IndexedDB } from "../../chunks/IndexedDB-CJgzPHPB.mjs";
2
+
1
3
  export { S as SSEConnection } from "../../chunks/SSEConnection-DcA3wFsO.mjs";
2
4
 
3
5
  export { W as WSConnection } from "../../chunks/WSConnection-D9mpsVdc.mjs";