@apple-pie/slice 0.1.9 → 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.
- package/dist/cjs/chunks/{IndexedDB-BxQn7aHU.js → IndexedDB-BaVmQgkK.js} +12 -10
- package/dist/cjs/chunks/{PromptInput-B-Wlfnhx.js → PromptInput-D317oh1e.js} +1 -1
- package/dist/cjs/chunks/{TextArea-D7E8loob.js → TextArea-2w4E6d2H.js} +1 -1
- package/dist/cjs/chunks/{UploadArea-Bfrwzo4O.js → UploadArea-CxYAAs7Q.js} +1 -1
- package/dist/cjs/chunks/localDBStore-BHEk_9fJ.js +257 -0
- package/dist/cjs/components/PromptInput/index.js +1 -1
- package/dist/cjs/components/TextArea/index.js +1 -1
- package/dist/cjs/components/UploadArea/index.js +7 -8
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/stores/LocalDB.js +6 -5
- package/dist/cjs/stores.js +7 -7
- package/dist/cjs/utils/index.js +1 -1
- package/dist/cjs/utils/objects/index.js +1 -1
- package/dist/css/flexBox.module.css +85 -0
- package/dist/css/type.module.css +206 -0
- package/dist/esm/chunks/{IndexedDB-CNOziQ6p.mjs → IndexedDB-CJgzPHPB.mjs} +12 -10
- package/dist/esm/chunks/{TextArea-Ff5hxF1H.mjs → TextArea-DKRF4Irr.mjs} +1 -1
- package/dist/esm/chunks/localDBStore-C-Ch2MFq.mjs +265 -0
- package/dist/esm/components/PromptInput/index.mjs +1 -1
- package/dist/esm/components/TextArea/index.mjs +1 -1
- package/dist/esm/components/UploadArea/index.mjs +6 -6
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/stores/LocalDB.mjs +6 -2
- package/dist/esm/stores.mjs +6 -2
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/objects/index.mjs +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +3 -0
- package/dist/types/components/Avatar/_types.d.ts +22 -0
- package/dist/types/components/Avatar/index.d.ts +2 -0
- package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +3 -0
- package/dist/types/components/AvatarGroup/_types.d.ts +25 -0
- package/dist/types/components/AvatarGroup/index.d.ts +2 -0
- package/dist/types/components/Badge/Badge.d.ts +3 -0
- package/dist/types/components/Badge/_types.d.ts +8 -0
- package/dist/types/components/Badge/index.d.ts +2 -0
- package/dist/types/components/Button/Button.d.ts +76 -0
- package/dist/types/components/Button/_types.d.ts +45 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/ButtonBar/ButtonBar.d.ts +17 -0
- package/dist/types/components/ButtonBar/_types.d.ts +27 -0
- package/dist/types/components/ButtonBar/index.d.ts +2 -0
- package/dist/types/components/Camera/Camera.d.ts +11 -0
- package/dist/types/components/Camera/_types.d.ts +79 -0
- package/dist/types/components/Camera/index.d.ts +2 -0
- package/dist/types/components/CheckBox/CheckBox.d.ts +3 -0
- package/dist/types/components/CheckBox/_types.d.ts +11 -0
- package/dist/types/components/CheckBox/index.d.ts +2 -0
- package/dist/types/components/Chip/Chip.d.ts +3 -0
- package/dist/types/components/Chip/_types.d.ts +31 -0
- package/dist/types/components/Chip/index.d.ts +3 -0
- package/dist/types/components/DivInput/DivInput.d.ts +3 -0
- package/dist/types/components/DivInput/_types.d.ts +23 -0
- package/dist/types/components/DivInput/index.d.ts +2 -0
- package/dist/types/components/Dot/Dot.d.ts +3 -0
- package/dist/types/components/Dot/_types.d.ts +19 -0
- package/dist/types/components/Dot/index.d.ts +2 -0
- package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +44 -0
- package/dist/types/components/DraggablePanel/_types.d.ts +5 -0
- package/dist/types/components/DraggablePanel/index.d.ts +1 -0
- package/dist/types/components/DropDown/DropDown.d.ts +4 -0
- package/dist/types/components/DropDown/_types.d.ts +34 -0
- package/dist/types/components/DropDown/index.d.ts +2 -0
- package/dist/types/components/ErrorSummary/ErrorSummary.d.ts +4 -0
- package/dist/types/components/ErrorSummary/_types.d.ts +12 -0
- package/dist/types/components/ErrorSummary/index.d.ts +2 -0
- package/dist/types/components/FileIcon/FileIcon.d.ts +3 -0
- package/dist/types/components/FileIcon/_types.d.ts +27 -0
- package/dist/types/components/FileIcon/fileIconRegistry.d.ts +4 -0
- package/dist/types/components/FileIcon/index.d.ts +3 -0
- package/dist/types/components/FileList/FileList.d.ts +3 -0
- package/dist/types/components/FileList/_types.d.ts +24 -0
- package/dist/types/components/FileList/index.d.ts +2 -0
- package/dist/types/components/FlexDiv/FlexDiv.d.ts +60 -0
- package/dist/types/components/FlexDiv/_types.d.ts +34 -0
- package/dist/types/components/FlexDiv/index.d.ts +2 -0
- package/dist/types/components/Grouper/Grouper.d.ts +3 -0
- package/dist/types/components/Grouper/_types.d.ts +20 -0
- package/dist/types/components/Grouper/index.d.ts +2 -0
- package/dist/types/components/Icon/Icon.d.ts +3 -0
- package/dist/types/components/Icon/_types.d.ts +131 -0
- package/dist/types/components/Icon/iconRegistry.d.ts +17 -0
- package/dist/types/components/Icon/index.d.ts +2 -0
- package/dist/types/components/IconButton/IconButton.d.ts +3 -0
- package/dist/types/components/IconButton/_types.d.ts +34 -0
- package/dist/types/components/IconButton/index.d.ts +2 -0
- package/dist/types/components/Label/Label.d.ts +2 -0
- package/dist/types/components/Label/_types.d.ts +16 -0
- package/dist/types/components/Label/index.d.ts +2 -0
- package/dist/types/components/Overlay/Overlay.d.ts +3 -0
- package/dist/types/components/Overlay/_types.d.ts +12 -0
- package/dist/types/components/Overlay/index.d.ts +2 -0
- package/dist/types/components/Pager/Pager.d.ts +3 -0
- package/dist/types/components/Pager/_types.d.ts +13 -0
- package/dist/types/components/Pager/index.d.ts +2 -0
- package/dist/types/components/Progress/DoneCheck/DoneCheck.d.ts +3 -0
- package/dist/types/components/Progress/DoneCheck/_types.d.ts +13 -0
- package/dist/types/components/Progress/ProgressIndicator/ProgressIndicator.d.ts +3 -0
- package/dist/types/components/Progress/ProgressIndicator/_types.d.ts +14 -0
- package/dist/types/components/Progress/index.d.ts +4 -0
- package/dist/types/components/PromptInput/PromptInput.d.ts +63 -0
- package/dist/types/components/PromptInput/_types.d.ts +35 -0
- package/dist/types/components/PromptInput/index.d.ts +2 -0
- package/dist/types/components/RadioButton/RadioButton.d.ts +3 -0
- package/dist/types/components/RadioButton/_types.d.ts +26 -0
- package/dist/types/components/RadioButton/index.d.ts +2 -0
- package/dist/types/components/RadioButtonList/RadioButtonList.d.ts +3 -0
- package/dist/types/components/RadioButtonList/_types.d.ts +24 -0
- package/dist/types/components/RadioButtonList/index.d.ts +2 -0
- package/dist/types/components/Slider/Slider.d.ts +3 -0
- package/dist/types/components/Slider/_types.d.ts +18 -0
- package/dist/types/components/Slider/index.d.ts +2 -0
- package/dist/types/components/Spacer/Spacer.d.ts +3 -0
- package/dist/types/components/Spacer/_types.d.ts +6 -0
- package/dist/types/components/Spacer/index.d.ts +2 -0
- package/dist/types/components/Switch/Switch.d.ts +3 -0
- package/dist/types/components/Switch/Switch.stories.d.ts +5 -0
- package/dist/types/components/Switch/_types.d.ts +13 -0
- package/dist/types/components/Switch/index.d.ts +2 -0
- package/dist/types/components/TabBar/TabBar.d.ts +3 -0
- package/dist/types/components/TabBar/_types.d.ts +52 -0
- package/dist/types/components/TabBar/index.d.ts +2 -0
- package/dist/types/components/TextArea/TextArea.d.ts +3 -0
- package/dist/types/components/TextArea/_types.d.ts +41 -0
- package/dist/types/components/TextArea/index.d.ts +2 -0
- package/dist/types/components/Textfield/TextField.d.ts +3 -0
- package/dist/types/components/Textfield/_types.d.ts +79 -0
- package/dist/types/components/Textfield/index.d.ts +2 -0
- package/dist/types/components/Tip/Tip.d.ts +3 -0
- package/dist/types/components/Tip/_types.d.ts +28 -0
- package/dist/types/components/Tip/index.d.ts +2 -0
- package/dist/types/components/Toast/Toast.d.ts +3 -0
- package/dist/types/components/Toast/_types.d.ts +24 -0
- package/dist/types/components/Toast/index.d.ts +2 -0
- package/dist/types/components/UploadArea/UploadArea.d.ts +54 -0
- package/dist/types/components/UploadArea/_types.d.ts +46 -0
- package/dist/types/components/UploadArea/index.d.ts +3 -0
- package/dist/types/components/playHelpers.d.ts +35 -0
- package/dist/types/components/sharedTypes.d.ts +21 -0
- package/dist/types/hooks/index.d.ts +9 -0
- package/dist/types/hooks/useDoubleClick/useDoubleClick.d.ts +1 -0
- package/dist/types/hooks/useKeyboardShortcuts/useKeyboardShortcuts.d.ts +9 -0
- package/dist/types/hooks/useLastUpdated/useLastUpdated.d.ts +4 -0
- package/dist/types/hooks/useLocalStore/useLocalStore.d.ts +1 -0
- package/dist/types/hooks/useObserveResize/useObserveResize.d.ts +9 -0
- package/dist/types/hooks/useObserveTheme/useObserveTheme.d.ts +2 -0
- package/dist/types/hooks/useTheme/useTheme.d.ts +47 -0
- package/dist/types/hooks/useToolTip/useToolTip.d.ts +6 -0
- package/dist/types/hooks/useTrackRenders/useTrackRenders.d.ts +5 -0
- package/dist/types/hooks/useWindow/useWindow.d.ts +43 -0
- package/dist/types/index.d.ts +74 -0
- package/dist/types/providers/ThemeProvider.d.ts +13 -0
- package/dist/types/providers/index.d.ts +1 -0
- package/dist/types/stores/LocalDB/_types.d.ts +43 -0
- package/dist/types/stores/LocalDB/index.d.ts +2 -0
- package/dist/types/stores/LocalDB/localDBStore.d.ts +18 -0
- package/dist/types/stores/SSE/_types.d.ts +17 -0
- package/dist/types/stores/SSE/index.d.ts +2 -0
- package/dist/types/stores/SSE/sseStore.d.ts +28 -0
- package/dist/types/stores/WS/_types.d.ts +17 -0
- package/dist/types/stores/WS/index.d.ts +2 -0
- package/dist/types/stores/WS/wsStore.d.ts +19 -0
- package/dist/types/stores/index.d.ts +6 -0
- package/dist/types/stores/tip/_types.d.ts +8 -0
- package/dist/types/stores/tip/index.d.ts +2 -0
- package/dist/types/stores/tip/tipStore.d.ts +12 -0
- package/dist/types/stores/toast/_types.d.ts +14 -0
- package/dist/types/stores/toast/index.d.ts +2 -0
- package/dist/types/stores/toast/toastStore.d.ts +12 -0
- package/dist/types/stores/uploads/_types.d.ts +16 -0
- package/dist/types/stores/uploads/index.d.ts +2 -0
- package/dist/types/stores/uploads/uploadsStore.d.ts +22 -0
- package/dist/types/stores/window/_types.d.ts +33 -0
- package/dist/types/stores/window/index.d.ts +3 -0
- package/dist/types/stores/window/windowStore.d.ts +25 -0
- package/dist/types/theme/colors/colors.d.ts +6 -0
- package/dist/types/theme/colors/types.d.ts +174 -0
- package/dist/types/theme/corners/corners.d.ts +2 -0
- package/dist/types/theme/corners/types.d.ts +10 -0
- package/dist/types/theme/elevations/_types.d.ts +10 -0
- package/dist/types/theme/elevations/elevations.d.ts +5 -0
- package/dist/types/theme/index.d.ts +9 -0
- package/dist/types/theme/motion/_types.d.ts +8 -0
- package/dist/types/theme/motion/motion.d.ts +5 -0
- package/dist/types/theme/themes.d.ts +16 -0
- package/dist/types/theme/type/type.d.ts +5 -0
- package/dist/types/theme/type/types.d.ts +25 -0
- package/dist/types/utils/functions/colors.d.ts +8 -0
- package/dist/types/utils/functions/debounce.d.ts +9 -0
- package/dist/types/utils/functions/files.d.ts +15 -0
- package/dist/types/utils/functions/misc.d.ts +61 -0
- package/dist/types/utils/index.d.ts +5 -0
- package/dist/types/utils/objects/IndexedDB/IndexedDB.d.ts +62 -0
- package/dist/types/utils/objects/SSEConnection/SSEConnection.d.ts +187 -0
- package/dist/types/utils/objects/WSConnection/WSConnection.d.ts +159 -0
- package/dist/types/utils/objects/index.d.ts +6 -0
- package/dist/types/workers/uploads/uploads-worker.d.ts +129 -0
- package/dist/types/workers/uploads/uploads.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/chunks/localDBStore-Cl1YFPIe.js +0 -182
- package/dist/esm/chunks/localDBStore-CbCoeN66.mjs +0 -186
- package/dist/esm/chunks/{PromptInput-Cmist_vy.mjs → PromptInput-C6liKbFf.mjs} +2 -2
- package/dist/esm/chunks/{UploadArea-6z-mVZs3.mjs → UploadArea-DNAH-Bu5.mjs} +2 -2
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
.body-xs-regular {
|
|
2
|
+
font-family: var(--font-family), sans-serif;
|
|
3
|
+
font-weight: var(--font-weight-regular);
|
|
4
|
+
font-size: var(--font-size-xs);
|
|
5
|
+
line-height: 133.33%;
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
letter-spacing: 0.2px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.body-xs-medium {
|
|
11
|
+
font-family: var(--font-family), sans-serif;
|
|
12
|
+
font-weight: var(--font-weight-medium);
|
|
13
|
+
font-size: var(--font-size-xs);
|
|
14
|
+
line-height: 133.33%;
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
letter-spacing: 0.2px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.body-xs-bold {
|
|
20
|
+
font-family: var(--font-family), sans-serif;
|
|
21
|
+
font-weight: var(--font-weight-bold);
|
|
22
|
+
font-size: var(--font-size-xs);
|
|
23
|
+
line-height: 133.33%;
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
letter-spacing: 0.25px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.body-s-regular {
|
|
29
|
+
font-family: var(--font-family), sans-serif;
|
|
30
|
+
font-weight: var(--font-weight-regular);
|
|
31
|
+
font-size: var(--font-size-s);
|
|
32
|
+
line-height: 142.86%;
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
letter-spacing: 0.15px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.body-s-medium {
|
|
38
|
+
font-family: var(--font-family), sans-serif;
|
|
39
|
+
font-weight: var(--font-weight-medium);
|
|
40
|
+
font-size: var(--font-size-s);
|
|
41
|
+
line-height: 142.86%;
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
letter-spacing: 0.15px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.body-s-bold {
|
|
47
|
+
font-family: var(--font-family), sans-serif;
|
|
48
|
+
font-weight: var(--font-weight-bold);
|
|
49
|
+
font-size: var(--font-size-s);
|
|
50
|
+
line-height: 142.86%;
|
|
51
|
+
text-decoration: none;
|
|
52
|
+
letter-spacing: 0.2px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.body-m-regular {
|
|
56
|
+
font-family: var(--font-family), sans-serif;
|
|
57
|
+
font-weight: var(--font-weight-regular);
|
|
58
|
+
font-size: var(--font-size-m);
|
|
59
|
+
line-height: 140%;
|
|
60
|
+
text-decoration: none;
|
|
61
|
+
letter-spacing: 0.15px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.body-m-medium {
|
|
65
|
+
font-family: var(--font-family), sans-serif;
|
|
66
|
+
font-weight: var(--font-weight-medium);
|
|
67
|
+
font-size: var(--font-size-m);
|
|
68
|
+
line-height: 140%;
|
|
69
|
+
text-decoration: none;
|
|
70
|
+
letter-spacing: 0.15px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.body-m-bold {
|
|
74
|
+
font-family: var(--font-family), sans-serif;
|
|
75
|
+
font-weight: var(--font-weight-bold);
|
|
76
|
+
font-size: var(--font-size-m);
|
|
77
|
+
line-height: 140%;
|
|
78
|
+
text-decoration: none;
|
|
79
|
+
letter-spacing: 0.2px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.body-l-regular {
|
|
83
|
+
font-family: var(--font-family), sans-serif;
|
|
84
|
+
font-weight: var(--font-weight-regular);
|
|
85
|
+
font-size: var(--font-size-l);
|
|
86
|
+
line-height: 162.5%;
|
|
87
|
+
text-decoration: none;
|
|
88
|
+
letter-spacing: 0.1px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.body-l-medium {
|
|
92
|
+
font-family: var(--font-family), sans-serif;
|
|
93
|
+
font-weight: var(--font-weight-medium);
|
|
94
|
+
font-size: var(--font-size-l);
|
|
95
|
+
line-height: 162.5%;
|
|
96
|
+
text-decoration: none;
|
|
97
|
+
letter-spacing: 0.1px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.body-l-bold {
|
|
101
|
+
font-family: var(--font-family), sans-serif;
|
|
102
|
+
font-weight: var(--font-weight-bold);
|
|
103
|
+
font-size: var(--font-size-l);
|
|
104
|
+
line-height: 162.5%;
|
|
105
|
+
text-decoration: none;
|
|
106
|
+
letter-spacing: 0.15px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.body-xl-regular {
|
|
110
|
+
font-family: var(--font-family), sans-serif;
|
|
111
|
+
font-weight: var(--font-weight-regular);
|
|
112
|
+
font-size: var(--font-size-xl);
|
|
113
|
+
line-height: 162.5%;
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
letter-spacing: 0.1px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.body-xl-medium {
|
|
119
|
+
font-family: var(--font-family), sans-serif;
|
|
120
|
+
font-weight: var(--font-weight-medium);
|
|
121
|
+
font-size: var(--font-size-xl);
|
|
122
|
+
line-height: 162.5%;
|
|
123
|
+
text-decoration: none;
|
|
124
|
+
letter-spacing: 0.1px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.body-xl-bold {
|
|
128
|
+
font-family: var(--font-family), sans-serif;
|
|
129
|
+
font-weight: var(--font-weight-bold);
|
|
130
|
+
font-size: var(--font-size-xl);
|
|
131
|
+
line-height: 162.5%;
|
|
132
|
+
text-decoration: none;
|
|
133
|
+
letter-spacing: 0.15px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.heading-s-medium {
|
|
137
|
+
font-family: var(--font-family), sans-serif;
|
|
138
|
+
font-weight: 500;
|
|
139
|
+
font-size: 20px;
|
|
140
|
+
line-height: 140%;
|
|
141
|
+
text-decoration: none;
|
|
142
|
+
letter-spacing: 0.2px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.heading-s-bold {
|
|
146
|
+
font-family: var(--font-family), sans-serif;
|
|
147
|
+
font-weight: 600;
|
|
148
|
+
font-size: 20px;
|
|
149
|
+
line-height: 140%;
|
|
150
|
+
text-decoration: none;
|
|
151
|
+
letter-spacing: 0.2px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.heading-m-bold {
|
|
155
|
+
font-family: var(--font-family), sans-serif;
|
|
156
|
+
font-weight: 500;
|
|
157
|
+
font-size: 24px;
|
|
158
|
+
line-height: 116.67%;
|
|
159
|
+
text-decoration: none;
|
|
160
|
+
letter-spacing: 0.2px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.heading-m-medium {
|
|
164
|
+
font-family: var(--font-family), sans-serif;
|
|
165
|
+
font-weight: 600;
|
|
166
|
+
font-size: 24px;
|
|
167
|
+
line-height: 116.67%;
|
|
168
|
+
text-decoration: none;
|
|
169
|
+
letter-spacing: 0.2px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.heading-l-medium {
|
|
173
|
+
font-family: var(--font-family), sans-serif;
|
|
174
|
+
font-weight: 500;
|
|
175
|
+
font-size: 30px;
|
|
176
|
+
line-height: 128.57%;
|
|
177
|
+
text-decoration: none;
|
|
178
|
+
letter-spacing: 0.2px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.heading-l-bold {
|
|
182
|
+
font-family: var(--font-family), sans-serif;
|
|
183
|
+
font-weight: 600;
|
|
184
|
+
font-size: 30px;
|
|
185
|
+
line-height: 128.57%;
|
|
186
|
+
text-decoration: none;
|
|
187
|
+
letter-spacing: 0.2px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.heading-xl-medium {
|
|
191
|
+
font-family: var(--font-family), sans-serif;
|
|
192
|
+
font-weight: 500;
|
|
193
|
+
font-size: 36px;
|
|
194
|
+
line-height: 128.57%;
|
|
195
|
+
text-decoration: none;
|
|
196
|
+
letter-spacing: 0.2px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.heading-xl-bold {
|
|
200
|
+
font-family: var(--font-family), sans-serif;
|
|
201
|
+
font-weight: 600;
|
|
202
|
+
font-size: 36px;
|
|
203
|
+
line-height: 128.57%;
|
|
204
|
+
text-decoration: none;
|
|
205
|
+
letter-spacing: 0.2px;
|
|
206
|
+
}
|
|
@@ -116,27 +116,29 @@ class IndexedDB {
|
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
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
119
|
/**
|
|
128
120
|
* Private executor of request of the indexedDB
|
|
129
121
|
* Returns the result of the indexedDB request including the error if there is one
|
|
130
122
|
*/ runRequest(mode, callback) {
|
|
131
123
|
return __awaiter(this, void 0, void 0, function*() {
|
|
132
|
-
|
|
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;
|
|
133
127
|
return yield new Promise((resolve, reject) => {
|
|
134
128
|
const request = callback(store);
|
|
135
129
|
request.onerror = () => {
|
|
136
130
|
var _a;
|
|
137
131
|
reject(null !== (_a = request.error) && void 0 !== _a ? _a : new Error("IndexedDB request failed."));
|
|
138
132
|
}, request.onsuccess = () => {
|
|
139
|
-
|
|
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);
|
|
140
142
|
};
|
|
141
143
|
});
|
|
142
144
|
});
|
|
@@ -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
|
-
|
|
30
|
+
setText(value), setInvalid(runValidation(value));
|
|
31
31
|
}, [ value, runValidation ]), useEffect(() => {
|
|
32
32
|
handleResize();
|
|
33
33
|
}, [ rows ]);
|
|
@@ -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 { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "../../chunks/UploadArea-
|
|
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/
|
|
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
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";
|
package/dist/esm/index.mjs
CHANGED
|
@@ -56,7 +56,7 @@ export { F as FlexDiv } from "./chunks/FlexDiv-LGEGGrT0.mjs";
|
|
|
56
56
|
|
|
57
57
|
export { P as Pager } from "./chunks/Pager-BlLYeA2F.mjs";
|
|
58
58
|
|
|
59
|
-
export { P as PromptInput } from "./chunks/PromptInput-
|
|
59
|
+
export { P as PromptInput } from "./chunks/PromptInput-C6liKbFf.mjs";
|
|
60
60
|
|
|
61
61
|
export { D as DoneCheck, P as ProgressIndicator } from "./chunks/ProgressIndicator-CfM2c4ty.mjs";
|
|
62
62
|
|
|
@@ -72,7 +72,7 @@ export { S as Switch } from "./chunks/Switch-Cv6LABsW.mjs";
|
|
|
72
72
|
|
|
73
73
|
export { T as TabBar } from "./chunks/TabBar-qiozE5zA.mjs";
|
|
74
74
|
|
|
75
|
-
export { T as TextArea } from "./chunks/TextArea-
|
|
75
|
+
export { T as TextArea } from "./chunks/TextArea-DKRF4Irr.mjs";
|
|
76
76
|
|
|
77
77
|
export { T as TextField } from "./chunks/TextField-CGOR6507.mjs";
|
|
78
78
|
|
|
@@ -96,7 +96,7 @@ export { B as ButtonBar } from "./chunks/ButtonBar-CNQHRn77.mjs";
|
|
|
96
96
|
|
|
97
97
|
export { L as Label } from "./chunks/Label-7ezP3eHw.mjs";
|
|
98
98
|
|
|
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-
|
|
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";
|
|
100
100
|
|
|
101
101
|
import "./theme/corners.mjs";
|
|
102
102
|
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
export { l as localDBActions, u as useLocalDB, a as useLocalDBError, b as useLocalDBStore, c as useLocalDBValues } from "../chunks/localDBStore-
|
|
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
2
|
|
|
3
3
|
import "../chunks/tslib.es6-c-7TIv71.mjs";
|
|
4
4
|
|
|
5
|
+
import "react";
|
|
6
|
+
|
|
5
7
|
import "zustand";
|
|
6
8
|
|
|
7
|
-
import "
|
|
9
|
+
import "zustand/react/shallow";
|
|
10
|
+
|
|
11
|
+
import "../chunks/IndexedDB-CJgzPHPB.mjs";
|
package/dist/esm/stores.mjs
CHANGED
|
@@ -6,7 +6,7 @@ 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 } from "./chunks/localDBStore-
|
|
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
10
|
|
|
11
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";
|
|
12
12
|
|
|
@@ -16,6 +16,10 @@ import "zustand";
|
|
|
16
16
|
|
|
17
17
|
import "./chunks/uploads-worker-Dv-4zGnC.mjs";
|
|
18
18
|
|
|
19
|
-
import "
|
|
19
|
+
import "react";
|
|
20
|
+
|
|
21
|
+
import "zustand/react/shallow";
|
|
22
|
+
|
|
23
|
+
import "./chunks/IndexedDB-CJgzPHPB.mjs";
|
|
20
24
|
|
|
21
25
|
import "./chunks/SSEConnection-DcA3wFsO.mjs";
|
package/dist/esm/utils/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ 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-
|
|
7
|
+
export { I as IndexedDB } from "../chunks/IndexedDB-CJgzPHPB.mjs";
|
|
8
8
|
|
|
9
9
|
export { S as SSEConnection } from "../chunks/SSEConnection-DcA3wFsO.mjs";
|
|
10
10
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ToolTip } from '../sharedTypes';
|
|
3
|
+
export type AvatarBaseProps = {
|
|
4
|
+
size?: number | string;
|
|
5
|
+
frame?: number | string;
|
|
6
|
+
name?: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
borderSize?: number;
|
|
11
|
+
borderColor?: string;
|
|
12
|
+
borderColorHover?: string;
|
|
13
|
+
bgColor?: string;
|
|
14
|
+
fontSize?: number | string;
|
|
15
|
+
onToolTip?: (tip: ToolTip | null) => void;
|
|
16
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
17
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
18
|
+
tabIndex?: number;
|
|
19
|
+
outerBorderSize?: number;
|
|
20
|
+
outerBorderColor?: string;
|
|
21
|
+
};
|
|
22
|
+
export type AvatarProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof AvatarBaseProps> & AvatarBaseProps;
|