@apple-pie/slice 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/cjs/chunks/{Avatar-8XLnVICd.js → Avatar-Czt-12Ih.js} +26 -12
- package/dist/cjs/chunks/{AvatarGroup-BhKZvX8M.js → AvatarGroup-CGH2zY7a.js} +9 -7
- package/dist/cjs/chunks/{Button-D8_eyuOA.js → Button-mVVfNCqC.js} +40 -29
- package/dist/cjs/chunks/ButtonBar-CFAb4bfQ.js +73 -0
- package/dist/cjs/chunks/{Camera-CxHdYGEa.js → Camera-BGV_tNUP.js} +12 -4
- package/dist/cjs/chunks/{CheckBox-CmTQ6KW1.js → CheckBox-DyOgP15i.js} +1 -1
- package/dist/cjs/chunks/{Chip-CwMJOnBV.js → Chip-Z8erRdWG.js} +24 -31
- package/dist/cjs/chunks/{FileList-tivoUJSP.js → FileList-CCAtVNDo.js} +1 -1
- package/dist/cjs/chunks/IndexedDB-BxQn7aHU.js +146 -0
- package/dist/cjs/chunks/{ProgressIndicator-opbbADog.js → ProgressIndicator-CyFcr6Dk.js} +13 -4
- package/dist/cjs/chunks/{PromptInput-tA4fpOTk.js → PromptInput-B-Wlfnhx.js} +1 -1
- package/dist/cjs/chunks/{TextArea-DXcMRUfI.js → TextArea-D7E8loob.js} +1 -1
- package/dist/cjs/chunks/{TextField-CkfTNM6_.js → TextField-BAcYBHb1.js} +2 -2
- package/dist/cjs/chunks/{UploadArea-B8mJRc0a.js → UploadArea-Bfrwzo4O.js} +1 -1
- package/dist/cjs/chunks/localDBStore-Cl1YFPIe.js +182 -0
- package/dist/cjs/components/Avatar/index.js +1 -1
- package/dist/cjs/components/AvatarGroup/index.js +2 -2
- package/dist/cjs/components/Button/index.js +2 -2
- package/dist/cjs/components/ButtonBar/index.js +3 -5
- package/dist/cjs/components/Camera/index.js +2 -2
- package/dist/cjs/components/CheckBox/index.js +1 -1
- package/dist/cjs/components/Chip/index.js +2 -2
- package/dist/cjs/components/FileList/index.js +2 -2
- package/dist/cjs/components/Progress/index.js +1 -1
- package/dist/cjs/components/PromptInput/index.js +4 -4
- package/dist/cjs/components/TextArea/index.js +3 -3
- package/dist/cjs/components/Textfield/index.js +3 -3
- package/dist/cjs/components/UploadArea/index.js +3 -3
- package/dist/cjs/index.js +10 -11
- package/dist/cjs/stores/LocalDB.js +8 -0
- package/dist/cjs/stores.js +9 -5
- package/dist/cjs/utils/index.js +3 -3
- package/dist/cjs/utils/objects/index.js +3 -3
- package/dist/esm/chunks/{Avatar-DGRMsHdO.mjs → Avatar-DCCbj2eA.mjs} +26 -12
- package/dist/esm/chunks/{AvatarGroup-C9Ka1e9P.mjs → AvatarGroup-BaD2Xmda.mjs} +9 -7
- package/dist/esm/chunks/{Button-DAvVj4YV.mjs → Button-m0XAJsq5.mjs} +40 -29
- package/dist/esm/chunks/ButtonBar-CNQHRn77.mjs +83 -0
- package/dist/esm/chunks/{Camera-BrdJGlv6.mjs → Camera-7TuowjX_.mjs} +12 -4
- package/dist/esm/chunks/{CheckBox-B7UCZvRv.mjs → CheckBox-DO9hTdv8.mjs} +1 -1
- package/dist/esm/chunks/{Chip-BPF7fBba.mjs → Chip-BqneFUOR.mjs} +25 -34
- package/dist/esm/chunks/{FileList-BHCGzX_0.mjs → FileList-Ckix8gUY.mjs} +1 -1
- package/dist/esm/chunks/IndexedDB-CNOziQ6p.mjs +146 -0
- package/dist/esm/chunks/{ProgressIndicator-BVwQNOcV.mjs → ProgressIndicator-CfM2c4ty.mjs} +13 -4
- package/dist/esm/chunks/{PromptInput-pKwwzyAd.mjs → PromptInput-Cmist_vy.mjs} +2 -2
- package/dist/esm/chunks/{TextArea-yF2pGeel.mjs → TextArea-Ff5hxF1H.mjs} +1 -1
- package/dist/esm/chunks/{TextField-CgnPj6oK.mjs → TextField-CGOR6507.mjs} +2 -2
- package/dist/esm/chunks/{UploadArea-BNf1y8Ep.mjs → UploadArea-6z-mVZs3.mjs} +2 -2
- package/dist/esm/chunks/localDBStore-CbCoeN66.mjs +186 -0
- package/dist/esm/components/Avatar/index.mjs +1 -1
- package/dist/esm/components/AvatarGroup/index.mjs +2 -2
- package/dist/esm/components/Button/index.mjs +2 -2
- package/dist/esm/components/ButtonBar/index.mjs +5 -15
- package/dist/esm/components/Camera/index.mjs +2 -2
- package/dist/esm/components/CheckBox/index.mjs +1 -1
- package/dist/esm/components/Chip/index.mjs +5 -5
- package/dist/esm/components/FileList/index.mjs +2 -2
- package/dist/esm/components/Progress/index.mjs +1 -1
- package/dist/esm/components/PromptInput/index.mjs +4 -4
- package/dist/esm/components/TextArea/index.mjs +3 -3
- package/dist/esm/components/Textfield/index.mjs +3 -3
- package/dist/esm/components/UploadArea/index.mjs +3 -3
- package/dist/esm/index.mjs +13 -17
- package/dist/esm/stores/LocalDB.mjs +7 -0
- package/dist/esm/stores.mjs +4 -0
- package/dist/esm/utils/index.mjs +2 -0
- package/dist/esm/utils/objects/index.mjs +2 -0
- package/package.json +1 -1
- package/dist/cjs/chunks/ButtonBar-DwMLfvi8.js +0 -49
- package/dist/cjs/chunks/Card-D4YkmNC7.js +0 -34
- package/dist/cjs/chunks/DocIcons-BZI6JMyw.js +0 -108
- package/dist/cjs/components/Card/index.js +0 -10
- package/dist/cjs/components/DocIcon/index.js +0 -9
- package/dist/css/flexBox.module.css +0 -85
- package/dist/css/type.module.css +0 -206
- package/dist/esm/chunks/ButtonBar-Cw73kooJ.mjs +0 -62
- package/dist/esm/chunks/Card-DGlv1PII.mjs +0 -42
- package/dist/esm/chunks/DocIcons-B4xsPrXM.mjs +0 -114
- package/dist/esm/components/Card/index.mjs +0 -31
- package/dist/esm/components/DocIcon/index.mjs +0 -25
- package/dist/types/components/Avatar/Avatar.d.ts +0 -3
- package/dist/types/components/Avatar/_types.d.ts +0 -20
- package/dist/types/components/Avatar/index.d.ts +0 -2
- package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +0 -3
- package/dist/types/components/AvatarGroup/_types.d.ts +0 -23
- package/dist/types/components/AvatarGroup/index.d.ts +0 -2
- package/dist/types/components/Badge/Badge.d.ts +0 -3
- package/dist/types/components/Badge/_types.d.ts +0 -8
- package/dist/types/components/Badge/index.d.ts +0 -2
- package/dist/types/components/Button/Button.d.ts +0 -74
- package/dist/types/components/Button/_types.d.ts +0 -44
- package/dist/types/components/Button/index.d.ts +0 -2
- package/dist/types/components/ButtonBar/ButtonBar.d.ts +0 -2
- package/dist/types/components/ButtonBar/_types.d.ts +0 -17
- package/dist/types/components/ButtonBar/index.d.ts +0 -2
- package/dist/types/components/Camera/Camera.d.ts +0 -11
- package/dist/types/components/Camera/_types.d.ts +0 -79
- package/dist/types/components/Camera/index.d.ts +0 -2
- package/dist/types/components/Card/Card.d.ts +0 -3
- package/dist/types/components/Card/_types.d.ts +0 -14
- package/dist/types/components/Card/index.d.ts +0 -2
- package/dist/types/components/CheckBox/CheckBox.d.ts +0 -3
- package/dist/types/components/CheckBox/_types.d.ts +0 -11
- package/dist/types/components/CheckBox/index.d.ts +0 -2
- package/dist/types/components/Chip/Chip.d.ts +0 -3
- package/dist/types/components/Chip/_types.d.ts +0 -20
- package/dist/types/components/Chip/index.d.ts +0 -3
- package/dist/types/components/DivInput/DivInput.d.ts +0 -3
- package/dist/types/components/DivInput/_types.d.ts +0 -23
- package/dist/types/components/DivInput/index.d.ts +0 -2
- package/dist/types/components/DocIcon/DocIcons.d.ts +0 -3
- package/dist/types/components/DocIcon/_types.d.ts +0 -7
- package/dist/types/components/DocIcon/index.d.ts +0 -2
- package/dist/types/components/Dot/Dot.d.ts +0 -3
- package/dist/types/components/Dot/_types.d.ts +0 -19
- package/dist/types/components/Dot/index.d.ts +0 -2
- package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +0 -44
- package/dist/types/components/DraggablePanel/_types.d.ts +0 -5
- package/dist/types/components/DraggablePanel/index.d.ts +0 -1
- package/dist/types/components/DropDown/DropDown.d.ts +0 -4
- package/dist/types/components/DropDown/_types.d.ts +0 -34
- package/dist/types/components/DropDown/index.d.ts +0 -2
- package/dist/types/components/ErrorSummary/ErrorSummary.d.ts +0 -4
- package/dist/types/components/ErrorSummary/_types.d.ts +0 -12
- package/dist/types/components/ErrorSummary/index.d.ts +0 -2
- package/dist/types/components/FileIcon/FileIcon.d.ts +0 -3
- package/dist/types/components/FileIcon/_types.d.ts +0 -27
- package/dist/types/components/FileIcon/fileIconRegistry.d.ts +0 -4
- package/dist/types/components/FileIcon/index.d.ts +0 -3
- package/dist/types/components/FileList/FileList.d.ts +0 -3
- package/dist/types/components/FileList/_types.d.ts +0 -24
- package/dist/types/components/FileList/index.d.ts +0 -2
- package/dist/types/components/FlexDiv/FlexDiv.d.ts +0 -60
- package/dist/types/components/FlexDiv/_types.d.ts +0 -34
- package/dist/types/components/FlexDiv/index.d.ts +0 -2
- package/dist/types/components/Grouper/Grouper.d.ts +0 -3
- package/dist/types/components/Grouper/_types.d.ts +0 -20
- package/dist/types/components/Grouper/index.d.ts +0 -2
- package/dist/types/components/Icon/Icon.d.ts +0 -3
- package/dist/types/components/Icon/_types.d.ts +0 -131
- package/dist/types/components/Icon/iconRegistry.d.ts +0 -17
- package/dist/types/components/Icon/index.d.ts +0 -2
- package/dist/types/components/IconButton/IconButton.d.ts +0 -3
- package/dist/types/components/IconButton/_types.d.ts +0 -34
- package/dist/types/components/IconButton/index.d.ts +0 -2
- package/dist/types/components/Label/Label.d.ts +0 -2
- package/dist/types/components/Label/_types.d.ts +0 -16
- package/dist/types/components/Label/index.d.ts +0 -2
- package/dist/types/components/Overlay/Overlay.d.ts +0 -3
- package/dist/types/components/Overlay/_types.d.ts +0 -12
- package/dist/types/components/Overlay/index.d.ts +0 -2
- package/dist/types/components/Pager/Pager.d.ts +0 -3
- package/dist/types/components/Pager/_types.d.ts +0 -13
- package/dist/types/components/Pager/index.d.ts +0 -2
- package/dist/types/components/Progress/DoneCheck/DoneCheck.d.ts +0 -3
- package/dist/types/components/Progress/DoneCheck/_types.d.ts +0 -13
- package/dist/types/components/Progress/ProgressIndicator/ProgressIndicator.d.ts +0 -3
- package/dist/types/components/Progress/ProgressIndicator/_types.d.ts +0 -14
- package/dist/types/components/Progress/index.d.ts +0 -4
- package/dist/types/components/PromptInput/PromptInput.d.ts +0 -63
- package/dist/types/components/PromptInput/_types.d.ts +0 -35
- package/dist/types/components/PromptInput/index.d.ts +0 -2
- package/dist/types/components/RadioButton/RadioButton.d.ts +0 -3
- package/dist/types/components/RadioButton/_types.d.ts +0 -26
- package/dist/types/components/RadioButton/index.d.ts +0 -2
- package/dist/types/components/RadioButtonList/RadioButtonList.d.ts +0 -3
- package/dist/types/components/RadioButtonList/_types.d.ts +0 -24
- package/dist/types/components/RadioButtonList/index.d.ts +0 -2
- package/dist/types/components/Slider/Slider.d.ts +0 -3
- package/dist/types/components/Slider/_types.d.ts +0 -18
- package/dist/types/components/Slider/index.d.ts +0 -2
- package/dist/types/components/Spacer/Spacer.d.ts +0 -3
- package/dist/types/components/Spacer/_types.d.ts +0 -6
- package/dist/types/components/Spacer/index.d.ts +0 -2
- package/dist/types/components/Switch/Switch.d.ts +0 -3
- package/dist/types/components/Switch/Switch.stories.d.ts +0 -5
- package/dist/types/components/Switch/_types.d.ts +0 -13
- package/dist/types/components/Switch/index.d.ts +0 -2
- package/dist/types/components/TabBar/TabBar.d.ts +0 -3
- package/dist/types/components/TabBar/_types.d.ts +0 -52
- package/dist/types/components/TabBar/index.d.ts +0 -2
- package/dist/types/components/TextArea/TextArea.d.ts +0 -3
- package/dist/types/components/TextArea/_types.d.ts +0 -41
- package/dist/types/components/TextArea/index.d.ts +0 -2
- package/dist/types/components/Textfield/TextField.d.ts +0 -3
- package/dist/types/components/Textfield/_types.d.ts +0 -79
- package/dist/types/components/Textfield/index.d.ts +0 -2
- package/dist/types/components/Tip/Tip.d.ts +0 -3
- package/dist/types/components/Tip/_types.d.ts +0 -28
- package/dist/types/components/Tip/index.d.ts +0 -2
- package/dist/types/components/Toast/Toast.d.ts +0 -3
- package/dist/types/components/Toast/_types.d.ts +0 -24
- package/dist/types/components/Toast/index.d.ts +0 -2
- package/dist/types/components/UploadArea/UploadArea.d.ts +0 -54
- package/dist/types/components/UploadArea/_types.d.ts +0 -46
- package/dist/types/components/UploadArea/index.d.ts +0 -3
- package/dist/types/components/playHelpers.d.ts +0 -35
- package/dist/types/components/sharedTypes.d.ts +0 -21
- package/dist/types/hooks/index.d.ts +0 -9
- package/dist/types/hooks/useDoubleClick/useDoubleClick.d.ts +0 -1
- package/dist/types/hooks/useKeyboardShortcuts/useKeyboardShortcuts.d.ts +0 -9
- package/dist/types/hooks/useLastUpdated/useLastUpdated.d.ts +0 -4
- package/dist/types/hooks/useLocalStore/useLocalStore.d.ts +0 -1
- package/dist/types/hooks/useObserveResize/useObserveResize.d.ts +0 -9
- package/dist/types/hooks/useObserveTheme/useObserveTheme.d.ts +0 -2
- package/dist/types/hooks/useTheme/useTheme.d.ts +0 -47
- package/dist/types/hooks/useToolTip/useToolTip.d.ts +0 -6
- package/dist/types/hooks/useTrackRenders/useTrackRenders.d.ts +0 -5
- package/dist/types/hooks/useWindow/useWindow.d.ts +0 -43
- package/dist/types/index.d.ts +0 -78
- package/dist/types/providers/ThemeProvider.d.ts +0 -13
- package/dist/types/providers/index.d.ts +0 -1
- package/dist/types/stores/SSE/_types.d.ts +0 -17
- package/dist/types/stores/SSE/index.d.ts +0 -2
- package/dist/types/stores/SSE/sseStore.d.ts +0 -28
- package/dist/types/stores/WS/_types.d.ts +0 -17
- package/dist/types/stores/WS/index.d.ts +0 -2
- package/dist/types/stores/WS/wsStore.d.ts +0 -19
- package/dist/types/stores/index.d.ts +0 -5
- package/dist/types/stores/tip/_types.d.ts +0 -8
- package/dist/types/stores/tip/index.d.ts +0 -2
- package/dist/types/stores/tip/tipStore.d.ts +0 -12
- package/dist/types/stores/toast/_types.d.ts +0 -14
- package/dist/types/stores/toast/index.d.ts +0 -2
- package/dist/types/stores/toast/toastStore.d.ts +0 -12
- package/dist/types/stores/uploads/_types.d.ts +0 -16
- package/dist/types/stores/uploads/index.d.ts +0 -2
- package/dist/types/stores/uploads/uploadsStore.d.ts +0 -22
- package/dist/types/stores/window/_types.d.ts +0 -33
- package/dist/types/stores/window/index.d.ts +0 -3
- package/dist/types/stores/window/windowStore.d.ts +0 -25
- package/dist/types/theme/colors/colors.d.ts +0 -6
- package/dist/types/theme/colors/types.d.ts +0 -174
- package/dist/types/theme/corners/corners.d.ts +0 -2
- package/dist/types/theme/corners/types.d.ts +0 -10
- package/dist/types/theme/elevations/_types.d.ts +0 -10
- package/dist/types/theme/elevations/elevations.d.ts +0 -5
- package/dist/types/theme/index.d.ts +0 -9
- package/dist/types/theme/motion/_types.d.ts +0 -8
- package/dist/types/theme/motion/motion.d.ts +0 -5
- package/dist/types/theme/themes.d.ts +0 -16
- package/dist/types/theme/type/type.d.ts +0 -5
- package/dist/types/theme/type/types.d.ts +0 -25
- package/dist/types/utils/functions/colors.d.ts +0 -8
- package/dist/types/utils/functions/debounce.d.ts +0 -9
- package/dist/types/utils/functions/files.d.ts +0 -15
- package/dist/types/utils/functions/misc.d.ts +0 -61
- package/dist/types/utils/index.d.ts +0 -5
- package/dist/types/utils/objects/SSEConnection/SSEConnection.d.ts +0 -187
- package/dist/types/utils/objects/WSConnection/WSConnection.d.ts +0 -159
- package/dist/types/utils/objects/index.d.ts +0 -4
- package/dist/types/workers/uploads/uploads-worker.d.ts +0 -129
- package/dist/types/workers/uploads/uploads.d.ts +0 -1
|
@@ -0,0 +1,146 @@
|
|
|
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
|
+
* Helper method that returns the IDBObjectStore for the specified store name.
|
|
121
|
+
*/ getStore(mode) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function*() {
|
|
123
|
+
if (yield this.initialize(), !this.db) throw new Error("IndexedDB connection is not initialized.");
|
|
124
|
+
return this.db.transaction(this.storeName, mode).objectStore(this.storeName);
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Private executor of request of the indexedDB
|
|
129
|
+
* Returns the result of the indexedDB request including the error if there is one
|
|
130
|
+
*/ runRequest(mode, callback) {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function*() {
|
|
132
|
+
const store = yield this.getStore(mode);
|
|
133
|
+
return yield new Promise((resolve, reject) => {
|
|
134
|
+
const request = callback(store);
|
|
135
|
+
request.onerror = () => {
|
|
136
|
+
var _a;
|
|
137
|
+
reject(null !== (_a = request.error) && void 0 !== _a ? _a : new Error("IndexedDB request failed."));
|
|
138
|
+
}, request.onsuccess = () => {
|
|
139
|
+
resolve(request.result);
|
|
140
|
+
};
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
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 =
|
|
25
|
-
useEffect(() =>
|
|
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":
|
|
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,9 +8,9 @@ import "../theme/colors.mjs";
|
|
|
8
8
|
|
|
9
9
|
import "../hooks/useWindow.mjs";
|
|
10
10
|
|
|
11
|
-
import { B as Button } from "./Button-
|
|
11
|
+
import { B as Button } from "./Button-m0XAJsq5.mjs";
|
|
12
12
|
|
|
13
|
-
import { F as FileList } from "./FileList-
|
|
13
|
+
import { F as FileList } from "./FileList-Ckix8gUY.mjs";
|
|
14
14
|
|
|
15
15
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
16
16
|
|
|
@@ -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-
|
|
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
|
|
|
@@ -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-
|
|
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: "
|
|
203
|
+
size: "small",
|
|
204
204
|
state: "" === text ? "disabled" : "normal",
|
|
205
205
|
labelColor: theme.current.colors["core-button-primary"],
|
|
206
206
|
onClick: onAction
|
|
@@ -4,11 +4,11 @@ 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-
|
|
7
|
+
import { F as FileList } from "./FileList-Ckix8gUY.mjs";
|
|
8
8
|
|
|
9
9
|
import { I as Icon } from "./Icon-C92f63Ib.mjs";
|
|
10
10
|
|
|
11
|
-
import { P as ProgressIndicator } from "./ProgressIndicator-
|
|
11
|
+
import { P as ProgressIndicator } from "./ProgressIndicator-CfM2c4ty.mjs";
|
|
12
12
|
|
|
13
13
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
14
14
|
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { a as __awaiter, _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
|
|
2
|
+
|
|
3
|
+
import { create } from "zustand";
|
|
4
|
+
|
|
5
|
+
import { I as IndexedDB } from "./IndexedDB-CNOziQ6p.mjs";
|
|
6
|
+
|
|
7
|
+
function isValidIDBKey(key) {
|
|
8
|
+
return "string" == typeof key || "number" == typeof key || key instanceof Date || key instanceof ArrayBuffer || (Array.isArray(key) ? key.every(entry => isValidIDBKey(entry)) : ArrayBuffer.isView(key));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function areKeysEqual(left, right) {
|
|
12
|
+
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;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function normalizeValues(value) {
|
|
16
|
+
return Array.isArray(value) ? value : [ value ];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function readStoreRecords(connection) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function*() {
|
|
21
|
+
const [keys, values] = yield Promise.all([ connection.getAllKeys(), connection.getAll() ]);
|
|
22
|
+
return keys.map((key, index) => {
|
|
23
|
+
var _a;
|
|
24
|
+
return {
|
|
25
|
+
key: key,
|
|
26
|
+
value: null !== (_a = values[index]) && void 0 !== _a ? _a : null
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function getConnection(stores, name) {
|
|
33
|
+
const connection = stores.find(entry => entry.name === name);
|
|
34
|
+
if (!connection) throw new Error(`IndexedDB store "${name}" is not registered.`);
|
|
35
|
+
return connection;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function applyConnectionState(name, patch) {
|
|
39
|
+
useLocalDBStore.setState(state => ({
|
|
40
|
+
stores: state.stores.map(entry => entry.name === name ? Object.assign(Object.assign({}, entry), patch) : entry)
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function applyStoreError(name, error) {
|
|
45
|
+
applyConnectionState(name, {
|
|
46
|
+
error: error instanceof Error ? error.message : String(error)
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function deriveRecordKey(store, value) {
|
|
51
|
+
const keyField = function(store) {
|
|
52
|
+
if (!store.key) throw new Error(`IndexedDB store "${store.name}" requires a configured key field for value-driven actions.`);
|
|
53
|
+
return store.key;
|
|
54
|
+
}(store);
|
|
55
|
+
if (!value || "object" != typeof value) throw new Error(`IndexedDB store "${store.name}" expects object values for value-driven actions.`);
|
|
56
|
+
const candidate = value[keyField];
|
|
57
|
+
if (void 0 === candidate) throw new Error(`IndexedDB store "${store.name}" expected field "${keyField}" on the provided value.`);
|
|
58
|
+
if (!isValidIDBKey(candidate)) throw new Error(`IndexedDB store "${store.name}" field "${keyField}" does not contain a valid IndexedDB key.`);
|
|
59
|
+
return candidate;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const useLocalDBStore = create((set, get) => ({
|
|
63
|
+
stores: [],
|
|
64
|
+
actions: {
|
|
65
|
+
addStore: (name_1, ...args_1) => __awaiter(void 0, [ name_1, ...args_1 ], void 0, function*(name, options = {}) {
|
|
66
|
+
var _a;
|
|
67
|
+
const existing = get().stores.find(entry => entry.name === name);
|
|
68
|
+
yield null == existing ? void 0 : existing.connection.close();
|
|
69
|
+
const {create: create = !0} = options, connectionOptions = __rest(options, [ "create" ]), connection = new IndexedDB(name, connectionOptions);
|
|
70
|
+
yield connection.initialize(create);
|
|
71
|
+
const records = yield readStoreRecords(connection);
|
|
72
|
+
!function(connection) {
|
|
73
|
+
useLocalDBStore.setState(state => ({
|
|
74
|
+
stores: [ ...state.stores.filter(entry => entry.name !== connection.name), connection ]
|
|
75
|
+
}));
|
|
76
|
+
}({
|
|
77
|
+
name: name,
|
|
78
|
+
connection: connection,
|
|
79
|
+
key: null !== (_a = options.key) && void 0 !== _a ? _a : null,
|
|
80
|
+
records: records,
|
|
81
|
+
initialized: !0,
|
|
82
|
+
error: null
|
|
83
|
+
});
|
|
84
|
+
}),
|
|
85
|
+
removeStore: name => __awaiter(void 0, void 0, void 0, function*() {
|
|
86
|
+
const existing = get().stores.find(entry => entry.name === name);
|
|
87
|
+
existing && (yield existing.connection.close(), set(state => ({
|
|
88
|
+
stores: state.stores.filter(entry => entry.name !== name)
|
|
89
|
+
})));
|
|
90
|
+
}),
|
|
91
|
+
refreshStore: name => __awaiter(void 0, void 0, void 0, function*() {
|
|
92
|
+
const existing = getConnection(get().stores, name), records = yield readStoreRecords(existing.connection);
|
|
93
|
+
applyConnectionState(name, {
|
|
94
|
+
records: records,
|
|
95
|
+
initialized: !0,
|
|
96
|
+
error: null
|
|
97
|
+
});
|
|
98
|
+
}),
|
|
99
|
+
setValue: (name, value) => __awaiter(void 0, void 0, void 0, function*() {
|
|
100
|
+
const existing = getConnection(get().stores, name);
|
|
101
|
+
try {
|
|
102
|
+
const values = normalizeValues(value), resolvedKeys = [];
|
|
103
|
+
for (const item of values) {
|
|
104
|
+
const key = deriveRecordKey(existing, item), resolvedKey = yield existing.connection.set(key, item);
|
|
105
|
+
resolvedKeys.push(resolvedKey);
|
|
106
|
+
}
|
|
107
|
+
const records = yield readStoreRecords(existing.connection);
|
|
108
|
+
return applyConnectionState(name, {
|
|
109
|
+
records: records,
|
|
110
|
+
error: null
|
|
111
|
+
}), Array.isArray(value) ? resolvedKeys : resolvedKeys[0];
|
|
112
|
+
} catch (error) {
|
|
113
|
+
throw applyStoreError(name, error), error;
|
|
114
|
+
}
|
|
115
|
+
}),
|
|
116
|
+
addValue: (name, value) => __awaiter(void 0, void 0, void 0, function*() {
|
|
117
|
+
const existing = getConnection(get().stores, name);
|
|
118
|
+
try {
|
|
119
|
+
const values = normalizeValues(value), resolvedKeys = [];
|
|
120
|
+
for (const item of values) {
|
|
121
|
+
const resolvedKey = yield existing.connection.add(item);
|
|
122
|
+
resolvedKeys.push(resolvedKey);
|
|
123
|
+
}
|
|
124
|
+
const records = yield readStoreRecords(existing.connection);
|
|
125
|
+
return applyConnectionState(name, {
|
|
126
|
+
records: records,
|
|
127
|
+
error: null
|
|
128
|
+
}), Array.isArray(value) ? resolvedKeys : resolvedKeys[0];
|
|
129
|
+
} catch (error) {
|
|
130
|
+
throw applyStoreError(name, error), error;
|
|
131
|
+
}
|
|
132
|
+
}),
|
|
133
|
+
removeValue: (name, value) => __awaiter(void 0, void 0, void 0, function*() {
|
|
134
|
+
const existing = getConnection(get().stores, name);
|
|
135
|
+
try {
|
|
136
|
+
const values = normalizeValues(value);
|
|
137
|
+
for (const item of values) {
|
|
138
|
+
const key = deriveRecordKey(existing, item);
|
|
139
|
+
yield existing.connection.remove(key);
|
|
140
|
+
}
|
|
141
|
+
const records = yield readStoreRecords(existing.connection);
|
|
142
|
+
applyConnectionState(name, {
|
|
143
|
+
records: records,
|
|
144
|
+
error: null
|
|
145
|
+
});
|
|
146
|
+
} catch (error) {
|
|
147
|
+
throw applyStoreError(name, error), error;
|
|
148
|
+
}
|
|
149
|
+
}),
|
|
150
|
+
clearStore: name => __awaiter(void 0, void 0, void 0, function*() {
|
|
151
|
+
const existing = getConnection(get().stores, name);
|
|
152
|
+
yield existing.connection.clear(), applyConnectionState(name, {
|
|
153
|
+
records: [],
|
|
154
|
+
error: null
|
|
155
|
+
});
|
|
156
|
+
}),
|
|
157
|
+
destroyStore: name => __awaiter(void 0, void 0, void 0, function*() {
|
|
158
|
+
const existing = get().stores.find(entry => entry.name === name);
|
|
159
|
+
existing && (yield existing.connection.destroy(), set(state => ({
|
|
160
|
+
stores: state.stores.filter(entry => entry.name !== name)
|
|
161
|
+
})));
|
|
162
|
+
})
|
|
163
|
+
}
|
|
164
|
+
})), useLocalDB = name => useLocalDBStore(state => ({
|
|
165
|
+
refresh: () => state.actions.refreshStore(name),
|
|
166
|
+
set: value => state.actions.setValue(name, value),
|
|
167
|
+
add: value => state.actions.addValue(name, value),
|
|
168
|
+
remove: value => state.actions.removeValue(name, value),
|
|
169
|
+
clear: () => state.actions.clearStore(name),
|
|
170
|
+
destroy: () => state.actions.destroyStore(name)
|
|
171
|
+
}));
|
|
172
|
+
|
|
173
|
+
function useLocalDBValues(name, fieldOrKey, value) {
|
|
174
|
+
return useLocalDBStore(state => {
|
|
175
|
+
var _a, _b, _c, _d;
|
|
176
|
+
const records = null !== (_b = null === (_a = state.stores.find(entry => entry.name === name)) || void 0 === _a ? void 0 : _a.records) && void 0 !== _b ? _b : [], values = records.map(record => record.value);
|
|
177
|
+
return void 0 === fieldOrKey ? values : void 0 === value ? null !== (_d = null === (_c = records.find(record => areKeysEqual(record.key, fieldOrKey))) || void 0 === _c ? void 0 : _c.value) && void 0 !== _d ? _d : null : values.filter(entry => (null == entry ? void 0 : entry[fieldOrKey]) === value);
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
const useLocalDBError = name => useLocalDBStore(state => {
|
|
182
|
+
var _a, _b;
|
|
183
|
+
return null !== (_b = null === (_a = state.stores.find(entry => entry.name === name)) || void 0 === _a ? void 0 : _a.error) && void 0 !== _b ? _b : null;
|
|
184
|
+
}), localDBActions = useLocalDBStore.getState().actions;
|
|
185
|
+
|
|
186
|
+
export { useLocalDBError as a, useLocalDBStore as b, useLocalDBValues as c, localDBActions as l, useLocalDB as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AvatarGroup } from "../../chunks/AvatarGroup-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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 Chip } from "../../chunks/Chip-
|
|
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-
|
|
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-
|
|
35
|
+
import "../../chunks/ProgressIndicator-CfM2c4ty.mjs";
|
|
36
36
|
|
|
37
37
|
import "motion/react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as PromptInput } from "../../chunks/PromptInput-
|
|
1
|
+
export { P as PromptInput } from "../../chunks/PromptInput-Cmist_vy.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-
|
|
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-
|
|
41
|
+
import "../../chunks/ProgressIndicator-CfM2c4ty.mjs";
|
|
42
42
|
|
|
43
43
|
import "../../chunks/sharedTypes-tn9-uJvb.mjs";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/FileList-
|
|
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-
|
|
1
|
+
export { T as TextArea } from "../../chunks/TextArea-Ff5hxF1H.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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
41
|
+
import "../../chunks/ProgressIndicator-CfM2c4ty.mjs";
|
|
42
42
|
|
|
43
43
|
import "../../chunks/sharedTypes-tn9-uJvb.mjs";
|
|
44
44
|
|