@ixo/ui 0.1.14 → 0.1.15
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/.vite/manifest.json +31 -31
- package/dist/components/AppShellNavigation/components/RoomItem.d.ts +2 -1
- package/dist/components/AppShellNavigation/components/RoomItem.d.ts.map +1 -1
- package/dist/components/MoreMenu/components/Item/types.d.ts +1 -1
- package/dist/components/MoreMenu/components/Item/types.d.ts.map +1 -1
- package/dist/components/MoreMenu/index.d.ts +1 -1
- package/dist/components/MoreMenu/index.d.ts.map +1 -1
- package/dist/components/MoreMenu/types.d.ts +1 -0
- package/dist/components/MoreMenu/types.d.ts.map +1 -1
- package/dist/{components-DtFe8YJE.cjs → components-BWISh0mc.cjs} +37 -16
- package/dist/{components-DtFe8YJE.cjs.map → components-BWISh0mc.cjs.map} +1 -1
- package/dist/{components-DvXOspM4.js → components-CSb7qSeQ.js} +37 -16
- package/dist/{components-DvXOspM4.js.map → components-CSb7qSeQ.js.map} +1 -1
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/{index-jRBLexAJ.js → index-3BXIAJMs.js} +2 -2
- package/dist/{index-jRBLexAJ.js.map → index-3BXIAJMs.js.map} +1 -1
- package/dist/{index-Cxic68Ym.js → index-79BN9bQp.js} +2 -2
- package/dist/{index-Cxic68Ym.js.map → index-79BN9bQp.js.map} +1 -1
- package/dist/{index-BznUpwaP.js → index-BoyyPoe7.js} +2 -2
- package/dist/{index-BznUpwaP.js.map → index-BoyyPoe7.js.map} +1 -1
- package/dist/{index-rZkEJg_V.js → index-CG7ua6U5.js} +2 -2
- package/dist/{index-rZkEJg_V.js.map → index-CG7ua6U5.js.map} +1 -1
- package/dist/{index-DLR3AFnl.cjs → index-CcNuU5D_.cjs} +3 -3
- package/dist/{index-DLR3AFnl.cjs.map → index-CcNuU5D_.cjs.map} +1 -1
- package/dist/{index-B3WA9Dpl.cjs → index-CfxTeub_.cjs} +2 -2
- package/dist/{index-B3WA9Dpl.cjs.map → index-CfxTeub_.cjs.map} +1 -1
- package/dist/{index-mW3XPFWk.cjs → index-CtRJgMrQ.cjs} +2 -2
- package/dist/{index-mW3XPFWk.cjs.map → index-CtRJgMrQ.cjs.map} +1 -1
- package/dist/{index-DZvg73Pl.cjs → index-D9g1TKno.cjs} +2 -2
- package/dist/{index-DZvg73Pl.cjs.map → index-D9g1TKno.cjs.map} +1 -1
- package/dist/{index-D3CGrhue.cjs → index-DKRrekUN.cjs} +2 -2
- package/dist/{index-D3CGrhue.cjs.map → index-DKRrekUN.cjs.map} +1 -1
- package/dist/{index-F7eu0SKT.cjs → index-DU7qOQm4.cjs} +3 -3
- package/dist/{index-F7eu0SKT.cjs.map → index-DU7qOQm4.cjs.map} +1 -1
- package/dist/{index-CnjbKe8K.js → index-Dc5K_Tpd.js} +2 -2
- package/dist/{index-CnjbKe8K.js.map → index-Dc5K_Tpd.js.map} +1 -1
- package/dist/{index-DzF267qu.js → index-Dg03DAzQ.js} +2 -2
- package/dist/{index-DzF267qu.js.map → index-Dg03DAzQ.js.map} +1 -1
- package/dist/{index-CxRCL511.js → index-Dg3Be72o.js} +2 -2
- package/dist/{index-CxRCL511.js.map → index-Dg3Be72o.js.map} +1 -1
- package/dist/{index-C2pJWARx.cjs → index-DkO3nUqT.cjs} +2 -2
- package/dist/{index-C2pJWARx.cjs.map → index-DkO3nUqT.cjs.map} +1 -1
- package/dist/{index-D675wBJU.js → index-DwUyDHTC.js} +2 -2
- package/dist/{index-D675wBJU.js.map → index-DwUyDHTC.js.map} +1 -1
- package/dist/{index-CcZ-hXUQ.js → index-F_vabNrb.js} +3 -3
- package/dist/{index-CcZ-hXUQ.js.map → index-F_vabNrb.js.map} +1 -1
- package/dist/{index-CzEyLEVV.cjs → index-QE9Jy5-f.cjs} +2 -2
- package/dist/{index-CzEyLEVV.cjs.map → index-QE9Jy5-f.cjs.map} +1 -1
- package/dist/{index-9gv5565x.js → index-QRDAEcwI.js} +3 -3
- package/dist/{index-9gv5565x.js.map → index-QRDAEcwI.js.map} +1 -1
- package/dist/{index-CXCyJIXn.cjs → index-qvBz31v8.cjs} +2 -2
- package/dist/{index-CXCyJIXn.cjs.map → index-qvBz31v8.cjs.map} +1 -1
- package/dist/{index-K8bz789b.cjs → index-ySZqJOLy.cjs} +2 -2
- package/dist/{index-K8bz789b.cjs.map → index-ySZqJOLy.cjs.map} +1 -1
- package/package.json +1 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"_useUITheme-DqgAb7n1.cjs"
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
|
-
"_components-
|
|
33
|
-
"file": "components-
|
|
32
|
+
"_components-BWISh0mc.cjs": {
|
|
33
|
+
"file": "components-BWISh0mc.cjs",
|
|
34
34
|
"name": "components",
|
|
35
35
|
"imports": [
|
|
36
36
|
"_UsersSolid-C5FpNZ_K.cjs",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"src/components/SodaCard/components/Actions/index.tsx"
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
|
-
"_components-
|
|
59
|
-
"file": "components-
|
|
58
|
+
"_components-CSb7qSeQ.js": {
|
|
59
|
+
"file": "components-CSb7qSeQ.js",
|
|
60
60
|
"name": "components",
|
|
61
61
|
"imports": [
|
|
62
62
|
"_UsersSolid-BAHkDzh8.js",
|
|
@@ -103,18 +103,18 @@
|
|
|
103
103
|
"_constants-B7xlU8b8.js"
|
|
104
104
|
]
|
|
105
105
|
},
|
|
106
|
-
"_index-
|
|
107
|
-
"file": "index-
|
|
106
|
+
"_index-BoyyPoe7.js": {
|
|
107
|
+
"file": "index-BoyyPoe7.js",
|
|
108
108
|
"name": "index",
|
|
109
109
|
"imports": [
|
|
110
|
-
"_components-
|
|
110
|
+
"_components-CSb7qSeQ.js"
|
|
111
111
|
]
|
|
112
112
|
},
|
|
113
|
-
"_index-
|
|
114
|
-
"file": "index-
|
|
113
|
+
"_index-DKRrekUN.cjs": {
|
|
114
|
+
"file": "index-DKRrekUN.cjs",
|
|
115
115
|
"name": "index",
|
|
116
116
|
"imports": [
|
|
117
|
-
"_components-
|
|
117
|
+
"_components-BWISh0mc.cjs"
|
|
118
118
|
]
|
|
119
119
|
},
|
|
120
120
|
"_themes-BwGjuKnC.cjs": {
|
|
@@ -158,41 +158,41 @@
|
|
|
158
158
|
"name": "utils"
|
|
159
159
|
},
|
|
160
160
|
"src/components/ActionCard/components/Footer/index.tsx": {
|
|
161
|
-
"file": "index-
|
|
161
|
+
"file": "index-DU7qOQm4.cjs",
|
|
162
162
|
"name": "index",
|
|
163
163
|
"src": "src/components/ActionCard/components/Footer/index.tsx",
|
|
164
164
|
"isDynamicEntry": true,
|
|
165
165
|
"imports": [
|
|
166
|
-
"_index-
|
|
167
|
-
"_components-
|
|
166
|
+
"_index-DKRrekUN.cjs",
|
|
167
|
+
"_components-BWISh0mc.cjs"
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
170
|
"src/components/ActionCard/components/Header/index.tsx": {
|
|
171
|
-
"file": "index-
|
|
171
|
+
"file": "index-CfxTeub_.cjs",
|
|
172
172
|
"name": "index",
|
|
173
173
|
"src": "src/components/ActionCard/components/Header/index.tsx",
|
|
174
174
|
"isDynamicEntry": true,
|
|
175
175
|
"imports": [
|
|
176
|
-
"_components-
|
|
176
|
+
"_components-BWISh0mc.cjs",
|
|
177
177
|
"_UsersSolid-C5FpNZ_K.cjs"
|
|
178
178
|
]
|
|
179
179
|
},
|
|
180
180
|
"src/components/ActionSheet/components/Badge/index.tsx": {
|
|
181
|
-
"file": "index-
|
|
181
|
+
"file": "index-D9g1TKno.cjs",
|
|
182
182
|
"name": "index",
|
|
183
183
|
"src": "src/components/ActionSheet/components/Badge/index.tsx",
|
|
184
184
|
"isDynamicEntry": true,
|
|
185
185
|
"imports": [
|
|
186
|
-
"_components-
|
|
186
|
+
"_components-BWISh0mc.cjs"
|
|
187
187
|
]
|
|
188
188
|
},
|
|
189
189
|
"src/components/Card/components/Header/index.tsx": {
|
|
190
|
-
"file": "index-
|
|
190
|
+
"file": "index-DkO3nUqT.cjs",
|
|
191
191
|
"name": "index",
|
|
192
192
|
"src": "src/components/Card/components/Header/index.tsx",
|
|
193
193
|
"isDynamicEntry": true,
|
|
194
194
|
"imports": [
|
|
195
|
-
"_components-
|
|
195
|
+
"_components-BWISh0mc.cjs"
|
|
196
196
|
]
|
|
197
197
|
},
|
|
198
198
|
"src/components/Chart/components/LazyChart/index.tsx": {
|
|
@@ -202,31 +202,31 @@
|
|
|
202
202
|
"isDynamicEntry": true
|
|
203
203
|
},
|
|
204
204
|
"src/components/SodaCard/components/Actions/index.tsx": {
|
|
205
|
-
"file": "index-
|
|
205
|
+
"file": "index-CcNuU5D_.cjs",
|
|
206
206
|
"name": "index",
|
|
207
207
|
"src": "src/components/SodaCard/components/Actions/index.tsx",
|
|
208
208
|
"isDynamicEntry": true,
|
|
209
209
|
"imports": [
|
|
210
|
-
"_index-
|
|
211
|
-
"_components-
|
|
210
|
+
"_index-DKRrekUN.cjs",
|
|
211
|
+
"_components-BWISh0mc.cjs"
|
|
212
212
|
]
|
|
213
213
|
},
|
|
214
214
|
"src/components/SodaCard/components/Assets/index.tsx": {
|
|
215
|
-
"file": "index-
|
|
215
|
+
"file": "index-QE9Jy5-f.cjs",
|
|
216
216
|
"name": "index",
|
|
217
217
|
"src": "src/components/SodaCard/components/Assets/index.tsx",
|
|
218
218
|
"isDynamicEntry": true,
|
|
219
219
|
"imports": [
|
|
220
|
-
"_components-
|
|
220
|
+
"_components-BWISh0mc.cjs"
|
|
221
221
|
]
|
|
222
222
|
},
|
|
223
223
|
"src/components/SodaCard/components/Content/index.tsx": {
|
|
224
|
-
"file": "index-
|
|
224
|
+
"file": "index-qvBz31v8.cjs",
|
|
225
225
|
"name": "index",
|
|
226
226
|
"src": "src/components/SodaCard/components/Content/index.tsx",
|
|
227
227
|
"isDynamicEntry": true,
|
|
228
228
|
"imports": [
|
|
229
|
-
"_components-
|
|
229
|
+
"_components-BWISh0mc.cjs",
|
|
230
230
|
"_utils-BmyeZmSR.cjs"
|
|
231
231
|
]
|
|
232
232
|
},
|
|
@@ -237,22 +237,22 @@
|
|
|
237
237
|
"isDynamicEntry": true
|
|
238
238
|
},
|
|
239
239
|
"src/components/SodaCard/components/Header/index.tsx": {
|
|
240
|
-
"file": "index-
|
|
240
|
+
"file": "index-ySZqJOLy.cjs",
|
|
241
241
|
"name": "index",
|
|
242
242
|
"src": "src/components/SodaCard/components/Header/index.tsx",
|
|
243
243
|
"isDynamicEntry": true,
|
|
244
244
|
"imports": [
|
|
245
|
-
"_components-
|
|
245
|
+
"_components-BWISh0mc.cjs",
|
|
246
246
|
"_constants-DFJRYpE2.cjs"
|
|
247
247
|
]
|
|
248
248
|
},
|
|
249
249
|
"src/components/SodaCard/components/MainAction/index.tsx": {
|
|
250
|
-
"file": "index-
|
|
250
|
+
"file": "index-CtRJgMrQ.cjs",
|
|
251
251
|
"name": "index",
|
|
252
252
|
"src": "src/components/SodaCard/components/MainAction/index.tsx",
|
|
253
253
|
"isDynamicEntry": true,
|
|
254
254
|
"imports": [
|
|
255
|
-
"_components-
|
|
255
|
+
"_components-BWISh0mc.cjs"
|
|
256
256
|
]
|
|
257
257
|
},
|
|
258
258
|
"src/components/SodaCard/components/Map/index.tsx": {
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"src": "src/export/components.ts",
|
|
273
273
|
"isEntry": true,
|
|
274
274
|
"imports": [
|
|
275
|
-
"_components-
|
|
275
|
+
"_components-BWISh0mc.cjs"
|
|
276
276
|
]
|
|
277
277
|
},
|
|
278
278
|
"src/export/hooks.ts": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { IconCmp } from '../../../types/IconCmp';
|
|
3
|
-
import { IconType } from '../../MoreMenu/types';
|
|
3
|
+
import { IconType, PropsItem } from '../../MoreMenu/types';
|
|
4
4
|
export type IRoom = {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
@@ -11,6 +11,7 @@ export type IRoom = {
|
|
|
11
11
|
label: string;
|
|
12
12
|
onClick: () => void;
|
|
13
13
|
};
|
|
14
|
+
actions?: PropsItem[];
|
|
14
15
|
isActive: boolean;
|
|
15
16
|
tag?: string;
|
|
16
17
|
tagIcon?: IconType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomItem.d.ts","sourceRoot":"","sources":["../../../../src/components/AppShellNavigation/components/RoomItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"RoomItem.d.ts","sourceRoot":"","sources":["../../../../src/components/AppShellNavigation/components/RoomItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAI3D,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IACnC,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE;QACd,IAAI,EAAE,QAAQ,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,oDA+E3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/MoreMenu/components/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/MoreMenu/components/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAGF,MAAM,MAAM,QAAQ,GAAG,aAAa,CAAC,eAAe,CAAC,CAAC;AAEtD,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Props, PropsItem } from './types';
|
|
3
3
|
export type { PropsItem };
|
|
4
|
-
export declare function MoreMenu({ items, controlColor, Icon }: Props): ReactElement;
|
|
4
|
+
export declare function MoreMenu({ items, controlColor, Icon, onOpenChange }: Props): ReactElement;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MoreMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AAK/C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAG3C,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,YAAwB,EAAE,IAAI,EAAE,EAAE,KAAK,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MoreMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AAK/C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAG3C,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,YAAwB,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,KAAK,GAAG,YAAY,CAqDrG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/MoreMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;AAEpC,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,SAAS,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,GAAG,SAAS,CAAC;IAC5D,IAAI,CAAC,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/MoreMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;AAEpC,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,SAAS,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,GAAG,SAAS,CAAC;IAC5D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C,CAAC"}
|
|
@@ -846,8 +846,8 @@ function AccordionTable({
|
|
|
846
846
|
}
|
|
847
847
|
);
|
|
848
848
|
}
|
|
849
|
-
const Header$3 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
850
|
-
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
849
|
+
const Header$3 = react$1.lazy(() => Promise.resolve().then(() => require("./index-CfxTeub_.cjs")));
|
|
850
|
+
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-DU7qOQm4.cjs")));
|
|
851
851
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
852
852
|
const hasContent = !!content || !!footer;
|
|
853
853
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -931,7 +931,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
931
931
|
}
|
|
932
932
|
const CARD_WIDTH$1 = 350;
|
|
933
933
|
const CARD_HEADER_HEIGHT = 158;
|
|
934
|
-
const Header$2 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
934
|
+
const Header$2 = react$1.lazy(() => Promise.resolve().then(() => require("./index-DkO3nUqT.cjs")));
|
|
935
935
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
936
936
|
const wrapperRef = react$1.useRef(null);
|
|
937
937
|
const handleOnClick = react$1.useCallback(
|
|
@@ -1366,7 +1366,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1366
1366
|
document.body
|
|
1367
1367
|
);
|
|
1368
1368
|
}
|
|
1369
|
-
const Badge = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
1369
|
+
const Badge = react$1.lazy(() => Promise.resolve().then(() => require("./index-D9g1TKno.cjs")));
|
|
1370
1370
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1371
1371
|
const shadowScrollRef = react$1.useRef(null);
|
|
1372
1372
|
const wrapperContentAreaRef = react$1.useRef(null);
|
|
@@ -1973,13 +1973,17 @@ function Item({ icon: icon2, label, disabled, onClick }) {
|
|
|
1973
1973
|
}
|
|
1974
1974
|
);
|
|
1975
1975
|
}
|
|
1976
|
-
function MoreMenu({ items, controlColor = "primary", Icon }) {
|
|
1976
|
+
function MoreMenu({ items, controlColor = "primary", Icon, onOpenChange }) {
|
|
1977
1977
|
const [opened, setOpened] = react$1.useState(false);
|
|
1978
|
+
const handleOpenChange = (value) => {
|
|
1979
|
+
setOpened(value);
|
|
1980
|
+
onOpenChange?.(value);
|
|
1981
|
+
};
|
|
1978
1982
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1979
1983
|
core.Popover,
|
|
1980
1984
|
{
|
|
1981
1985
|
opened,
|
|
1982
|
-
onChange:
|
|
1986
|
+
onChange: handleOpenChange,
|
|
1983
1987
|
closeOnClickOutside: true,
|
|
1984
1988
|
styles: {
|
|
1985
1989
|
dropdown: {
|
|
@@ -1995,7 +1999,7 @@ function MoreMenu({ items, controlColor = "primary", Icon }) {
|
|
|
1995
1999
|
position: "right-start",
|
|
1996
2000
|
shadow: "md",
|
|
1997
2001
|
children: [
|
|
1998
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Popover.Target, { children: /* @__PURE__ */ jsxRuntime.jsx(core.Center, { onClick: () =>
|
|
2002
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Popover.Target, { children: /* @__PURE__ */ jsxRuntime.jsx(core.Center, { onClick: () => handleOpenChange(!opened), children: Icon || /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.EllipsisVSolid, { size: 20, color: controlColor }) }) }),
|
|
1999
2003
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Popover.Dropdown, { children: [
|
|
2000
2004
|
/* @__PURE__ */ jsxRuntime.jsx(core.FocusTrap.InitialFocus, {}),
|
|
2001
2005
|
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { ml: 12, mb: 10, fz: 14, c: "neutralColor.7", children: "Actions" }),
|
|
@@ -2008,7 +2012,7 @@ function MoreMenu({ items, controlColor = "primary", Icon }) {
|
|
|
2008
2012
|
active: item.active,
|
|
2009
2013
|
onClick: () => {
|
|
2010
2014
|
item.onClick();
|
|
2011
|
-
|
|
2015
|
+
handleOpenChange(false);
|
|
2012
2016
|
}
|
|
2013
2017
|
},
|
|
2014
2018
|
item.label
|
|
@@ -2351,6 +2355,8 @@ function NavigationItemSkeleton() {
|
|
|
2351
2355
|
}
|
|
2352
2356
|
function RoomItem({ room, navbarWidth }) {
|
|
2353
2357
|
const { hovered, ref } = hooks.useHover();
|
|
2358
|
+
const [menuOpened, setMenuOpened] = react$1.useState(false);
|
|
2359
|
+
const showActions = hovered || menuOpened;
|
|
2354
2360
|
const renderIcon = () => {
|
|
2355
2361
|
if (!room.icon) return null;
|
|
2356
2362
|
if (typeof room.icon === "string") {
|
|
@@ -2375,7 +2381,7 @@ function RoomItem({ room, navbarWidth }) {
|
|
|
2375
2381
|
style: {
|
|
2376
2382
|
cursor: "pointer",
|
|
2377
2383
|
borderRadius: 6,
|
|
2378
|
-
backgroundColor: room.isActive ||
|
|
2384
|
+
backgroundColor: room.isActive || showActions ? "var(--mantine-color-neutralColor-6)" : "transparent",
|
|
2379
2385
|
transition: "all 0.15s ease"
|
|
2380
2386
|
},
|
|
2381
2387
|
onClick: () => room.onClick(room.id),
|
|
@@ -2384,7 +2390,7 @@ function RoomItem({ room, navbarWidth }) {
|
|
|
2384
2390
|
renderIcon(),
|
|
2385
2391
|
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: room.isActive ? "neutralColor.8" : "neutralColor.7", fz: 14, truncate: true, style: { maxWidth: textMaxWidth }, children: room.name })
|
|
2386
2392
|
] }),
|
|
2387
|
-
|
|
2393
|
+
showActions && /* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "center", gap: 4, children: [
|
|
2388
2394
|
room.onActionClick && /* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { label: room.onActionClick.label, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2389
2395
|
core.Center,
|
|
2390
2396
|
{
|
|
@@ -2396,6 +2402,21 @@ function RoomItem({ room, navbarWidth }) {
|
|
|
2396
2402
|
children: icon(room.onActionClick.icon, void 0, "var(--mantine-color-neutralColor-7)")
|
|
2397
2403
|
}
|
|
2398
2404
|
) }),
|
|
2405
|
+
room.actions && room.actions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2406
|
+
core.Center,
|
|
2407
|
+
{
|
|
2408
|
+
onClick: (e) => e.stopPropagation(),
|
|
2409
|
+
sx: {
|
|
2410
|
+
cursor: "pointer",
|
|
2411
|
+
borderRadius: 4,
|
|
2412
|
+
transition: "transform 0.2s ease",
|
|
2413
|
+
"&:hover": {
|
|
2414
|
+
background: "var(--mantine-color-neutralColor-5)"
|
|
2415
|
+
}
|
|
2416
|
+
},
|
|
2417
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(MoreMenu, { items: room.actions, controlColor: "secondary", onOpenChange: setMenuOpened })
|
|
2418
|
+
}
|
|
2419
|
+
),
|
|
2399
2420
|
room.tag && room.tagIcon && /* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { label: room.tag, children: icon(room.tagIcon, void 0, "var(--mantine-color-neutralColor-7)") })
|
|
2400
2421
|
] })
|
|
2401
2422
|
]
|
|
@@ -6119,13 +6140,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
6119
6140
|
}
|
|
6120
6141
|
);
|
|
6121
6142
|
}
|
|
6122
|
-
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6123
|
-
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6124
|
-
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6143
|
+
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-CtRJgMrQ.cjs")));
|
|
6144
|
+
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-ySZqJOLy.cjs")));
|
|
6145
|
+
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-qvBz31v8.cjs")));
|
|
6125
6146
|
const Map = react$1.lazy(() => Promise.resolve().then(() => require("./index-D4PsPquZ.cjs")));
|
|
6126
6147
|
const CustomContent = react$1.lazy(() => Promise.resolve().then(() => require("./index-ByrCNpS2.cjs")));
|
|
6127
|
-
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6128
|
-
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6148
|
+
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-QE9Jy5-f.cjs")));
|
|
6149
|
+
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-CcNuU5D_.cjs")));
|
|
6129
6150
|
const HOVER_BORDER_WIDTH = 1;
|
|
6130
6151
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
6131
6152
|
const wrapperRef = react$1.useRef(null);
|
|
@@ -11422,4 +11443,4 @@ exports.UserMessage = UserMessage;
|
|
|
11422
11443
|
exports.WorkspaceModal = WorkspaceModal;
|
|
11423
11444
|
exports.cutText = cutText;
|
|
11424
11445
|
exports.isValidClick = isValidClick;
|
|
11425
|
-
//# sourceMappingURL=components-
|
|
11446
|
+
//# sourceMappingURL=components-BWISh0mc.cjs.map
|