@ixo/ui 0.1.10 → 0.1.11
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 +43 -43
- package/dist/components/AppShellNavigation/components/MenuItem.d.ts +2 -1
- package/dist/components/AppShellNavigation/components/MenuItem.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/components/RoomCategory.d.ts +3 -1
- package/dist/components/AppShellNavigation/components/RoomCategory.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/components/RoomItem.d.ts +2 -1
- package/dist/components/AppShellNavigation/components/RoomItem.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/index.d.ts.map +1 -1
- package/dist/{components-kxgjjaBi.js → components-CHbRYZDV.js} +52 -56
- package/dist/{components-kxgjjaBi.js.map → components-CHbRYZDV.js.map} +1 -1
- package/dist/{components-Bzkhgo_i.cjs → components-JdTP8bty.cjs} +52 -56
- package/dist/{components-Bzkhgo_i.cjs.map → components-JdTP8bty.cjs.map} +1 -1
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/{index-BaKCtz_Q.cjs → index-0Gd3Y9ix.cjs} +2 -2
- package/dist/{index-BaKCtz_Q.cjs.map → index-0Gd3Y9ix.cjs.map} +1 -1
- package/dist/{index-xy6xJBbu.js → index-3jU32ylS.js} +2 -2
- package/dist/{index-xy6xJBbu.js.map → index-3jU32ylS.js.map} +1 -1
- package/dist/{index-b0lRsVpL.js → index-5nix3uGD.js} +2 -2
- package/dist/{index-b0lRsVpL.js.map → index-5nix3uGD.js.map} +1 -1
- package/dist/{index-Bxl6UNpR.js → index-8tGadeUE.js} +2 -2
- package/dist/{index-Bxl6UNpR.js.map → index-8tGadeUE.js.map} +1 -1
- package/dist/{index-BPpBzZ7I.js → index-BVtpqWCs.js} +2 -2
- package/dist/{index-BPpBzZ7I.js.map → index-BVtpqWCs.js.map} +1 -1
- package/dist/{index-DQZ62cn8.cjs → index-BWT97hNk.cjs} +2 -2
- package/dist/{index-DQZ62cn8.cjs.map → index-BWT97hNk.cjs.map} +1 -1
- package/dist/{index-DVBuQ8s_.cjs → index-BZuf5Uwh.cjs} +2 -2
- package/dist/{index-DVBuQ8s_.cjs.map → index-BZuf5Uwh.cjs.map} +1 -1
- package/dist/{index-Qq15_AqP.cjs → index-BnDHepRw.cjs} +3 -3
- package/dist/{index-Qq15_AqP.cjs.map → index-BnDHepRw.cjs.map} +1 -1
- package/dist/{index-D9z8zxGB.cjs → index-Br0Chnx7.cjs} +2 -2
- package/dist/{index-D9z8zxGB.cjs.map → index-Br0Chnx7.cjs.map} +1 -1
- package/dist/{index-D2nmz6Om.js → index-BzJhTXjs.js} +2 -2
- package/dist/{index-D2nmz6Om.js.map → index-BzJhTXjs.js.map} +1 -1
- package/dist/{index-9moXUHtl.js → index-CAGiV0J3.js} +2 -2
- package/dist/{index-9moXUHtl.js.map → index-CAGiV0J3.js.map} +1 -1
- package/dist/{index-D6ik1G_L.js → index-CYdgFOk0.js} +3 -3
- package/dist/{index-D6ik1G_L.js.map → index-CYdgFOk0.js.map} +1 -1
- package/dist/{index-DDSVvVaX.cjs → index-CgGNRXUP.cjs} +2 -2
- package/dist/{index-DDSVvVaX.cjs.map → index-CgGNRXUP.cjs.map} +1 -1
- package/dist/{index-bgLWLpix.cjs → index-CnwnwLBL.cjs} +2 -2
- package/dist/{index-bgLWLpix.cjs.map → index-CnwnwLBL.cjs.map} +1 -1
- package/dist/{index-DVpkDPVh.cjs → index-DIkd4nvp.cjs} +3 -3
- package/dist/{index-DVpkDPVh.cjs.map → index-DIkd4nvp.cjs.map} +1 -1
- package/dist/{index-DTabwbad.cjs → index-DIoNw9Is.cjs} +2 -2
- package/dist/{index-DTabwbad.cjs.map → index-DIoNw9Is.cjs.map} +1 -1
- package/dist/{index-BVjRfBNY.js → index-DeRpsAsl.js} +2 -2
- package/dist/{index-BVjRfBNY.js.map → index-DeRpsAsl.js.map} +1 -1
- package/dist/{index-S4XgkG5t.js → index-DxE2Ni88.js} +2 -2
- package/dist/{index-S4XgkG5t.js.map → index-DxE2Ni88.js.map} +1 -1
- package/dist/{index-DHpAlFBt.js → index-F6HHDg6A.js} +3 -3
- package/dist/{index-DHpAlFBt.js.map → index-F6HHDg6A.js.map} +1 -1
- package/dist/{index-CLxKEJcO.cjs → index-aYeZagBJ.cjs} +2 -2
- package/dist/{index-CLxKEJcO.cjs.map → index-aYeZagBJ.cjs.map} +1 -1
- package/package.json +1 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"_useUITheme-DqgAb7n1.cjs"
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
|
-
"_components-
|
|
33
|
-
"file": "components-
|
|
32
|
+
"_components-CHbRYZDV.js": {
|
|
33
|
+
"file": "components-CHbRYZDV.js",
|
|
34
34
|
"name": "components",
|
|
35
35
|
"imports": [
|
|
36
|
-
"_UsersSolid-
|
|
37
|
-
"_constants-
|
|
38
|
-
"_useEventSubscribe-
|
|
39
|
-
"_useUITheme-
|
|
40
|
-
"_Blank-
|
|
41
|
-
"_themes-
|
|
36
|
+
"_UsersSolid-BAHkDzh8.js",
|
|
37
|
+
"_constants-B7xlU8b8.js",
|
|
38
|
+
"_useEventSubscribe-BuXZL79s.js",
|
|
39
|
+
"_useUITheme-7i8NJ2FG.js",
|
|
40
|
+
"_Blank-CElsicB7.js",
|
|
41
|
+
"_themes-ZDjULHjG.js"
|
|
42
42
|
],
|
|
43
43
|
"dynamicImports": [
|
|
44
44
|
"src/components/ActionCard/components/Header/index.tsx",
|
|
@@ -55,16 +55,16 @@
|
|
|
55
55
|
"src/components/SodaCard/components/Actions/index.tsx"
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
|
-
"_components-
|
|
59
|
-
"file": "components-
|
|
58
|
+
"_components-JdTP8bty.cjs": {
|
|
59
|
+
"file": "components-JdTP8bty.cjs",
|
|
60
60
|
"name": "components",
|
|
61
61
|
"imports": [
|
|
62
|
-
"_UsersSolid-
|
|
63
|
-
"_constants-
|
|
64
|
-
"_useEventSubscribe-
|
|
65
|
-
"_useUITheme-
|
|
66
|
-
"_Blank-
|
|
67
|
-
"_themes-
|
|
62
|
+
"_UsersSolid-C5FpNZ_K.cjs",
|
|
63
|
+
"_constants-DFJRYpE2.cjs",
|
|
64
|
+
"_useEventSubscribe-B019T27n.cjs",
|
|
65
|
+
"_useUITheme-DqgAb7n1.cjs",
|
|
66
|
+
"_Blank-DapEucFF.cjs",
|
|
67
|
+
"_themes-BwGjuKnC.cjs"
|
|
68
68
|
],
|
|
69
69
|
"dynamicImports": [
|
|
70
70
|
"src/components/ActionCard/components/Header/index.tsx",
|
|
@@ -103,18 +103,18 @@
|
|
|
103
103
|
"_constants-B7xlU8b8.js"
|
|
104
104
|
]
|
|
105
105
|
},
|
|
106
|
-
"_index-
|
|
107
|
-
"file": "index-
|
|
106
|
+
"_index-0Gd3Y9ix.cjs": {
|
|
107
|
+
"file": "index-0Gd3Y9ix.cjs",
|
|
108
108
|
"name": "index",
|
|
109
109
|
"imports": [
|
|
110
|
-
"_components-
|
|
110
|
+
"_components-JdTP8bty.cjs"
|
|
111
111
|
]
|
|
112
112
|
},
|
|
113
|
-
"_index-
|
|
114
|
-
"file": "index-
|
|
113
|
+
"_index-CAGiV0J3.js": {
|
|
114
|
+
"file": "index-CAGiV0J3.js",
|
|
115
115
|
"name": "index",
|
|
116
116
|
"imports": [
|
|
117
|
-
"_components-
|
|
117
|
+
"_components-CHbRYZDV.js"
|
|
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-DIkd4nvp.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-0Gd3Y9ix.cjs",
|
|
167
|
+
"_components-JdTP8bty.cjs"
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
170
|
"src/components/ActionCard/components/Header/index.tsx": {
|
|
171
|
-
"file": "index-
|
|
171
|
+
"file": "index-CnwnwLBL.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-JdTP8bty.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-Br0Chnx7.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-JdTP8bty.cjs"
|
|
187
187
|
]
|
|
188
188
|
},
|
|
189
189
|
"src/components/Card/components/Header/index.tsx": {
|
|
190
|
-
"file": "index-
|
|
190
|
+
"file": "index-CgGNRXUP.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-JdTP8bty.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-BnDHepRw.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-0Gd3Y9ix.cjs",
|
|
211
|
+
"_components-JdTP8bty.cjs"
|
|
212
212
|
]
|
|
213
213
|
},
|
|
214
214
|
"src/components/SodaCard/components/Assets/index.tsx": {
|
|
215
|
-
"file": "index-
|
|
215
|
+
"file": "index-DIoNw9Is.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-JdTP8bty.cjs"
|
|
221
221
|
]
|
|
222
222
|
},
|
|
223
223
|
"src/components/SodaCard/components/Content/index.tsx": {
|
|
224
|
-
"file": "index-
|
|
224
|
+
"file": "index-BWT97hNk.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-JdTP8bty.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-aYeZagBJ.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-JdTP8bty.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-BZuf5Uwh.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-JdTP8bty.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-JdTP8bty.cjs"
|
|
276
276
|
]
|
|
277
277
|
},
|
|
278
278
|
"src/export/hooks.ts": {
|
|
@@ -16,9 +16,10 @@ export type IMenuItem = {
|
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
}[];
|
|
18
18
|
};
|
|
19
|
-
export default function MenuItem({ item, onMenuItemClick, depth }: {
|
|
19
|
+
export default function MenuItem({ item, onMenuItemClick, depth, navbarWidth }: {
|
|
20
20
|
item: IMenuItem;
|
|
21
21
|
onMenuItemClick: (item: IMenuItem) => void;
|
|
22
22
|
depth?: number;
|
|
23
|
+
navbarWidth: number;
|
|
23
24
|
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
25
|
//# sourceMappingURL=MenuItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../src/components/AppShellNavigation/components/MenuItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,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AAE,CAAC;CACL,CAAC;AAQF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,IAAI,EACJ,eAAe,EACf,KAAS,EACT,WAAW,EACZ,EAAE;IACD,IAAI,EAAE,SAAS,CAAC;IAChB,eAAe,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB,oDA2HA"}
|
|
@@ -17,5 +17,7 @@ export type IRoomCategory = {
|
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
}[];
|
|
19
19
|
};
|
|
20
|
-
export default function RoomCategory({ name, rooms, actions, primaryActions }: IRoomCategory
|
|
20
|
+
export default function RoomCategory({ name, rooms, actions, primaryActions, navbarWidth }: IRoomCategory & {
|
|
21
|
+
navbarWidth: number;
|
|
22
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
21
23
|
//# sourceMappingURL=RoomCategory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomCategory.d.ts","sourceRoot":"","sources":["../../../../src/components/AppShellNavigation/components/RoomCategory.tsx"],"names":[],"mappings":"AAMA,OAAiB,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;IAChB,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,IAAI,EAAE,QAAQ,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,EAAE,CAAC;IACJ,OAAO,CAAC,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,IAAI,EAAE,QAAQ,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"RoomCategory.d.ts","sourceRoot":"","sources":["../../../../src/components/AppShellNavigation/components/RoomCategory.tsx"],"names":[],"mappings":"AAMA,OAAiB,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;IAChB,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,IAAI,EAAE,QAAQ,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,EAAE,CAAC;IACJ,OAAO,CAAC,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,IAAI,EAAE,QAAQ,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,EAAE,aAAa,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,oDAmElI"}
|
|
@@ -15,7 +15,8 @@ export type IRoom = {
|
|
|
15
15
|
tag?: string;
|
|
16
16
|
tagIcon?: IconType;
|
|
17
17
|
};
|
|
18
|
-
export default function RoomItem({ room }: {
|
|
18
|
+
export default function RoomItem({ room, navbarWidth }: {
|
|
19
19
|
room: IRoom;
|
|
20
|
+
navbarWidth: number;
|
|
20
21
|
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
21
22
|
//# sourceMappingURL=RoomItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomItem.d.ts","sourceRoot":"","sources":["../../../../src/components/AppShellNavigation/components/RoomItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,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,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,EAAE;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"RoomItem.d.ts","sourceRoot":"","sources":["../../../../src/components/AppShellNavigation/components/RoomItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CA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R,aAAa,EACb,cAAc,EACd,SAAS,EACT,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,KAAK,EACL,cAAqB,EACrB,cAAsB,EACtB,aAAa,EACb,WAAW,EACX,QAAQ,EACR,UAAU,EACV,cAAc,EACd,OAAO,EACP,QAAQ,EACR,SAAS,EACT,eAAe,EACf,aAAa,EACb,UAAqB,EACrB,UAAgB,EAChB,kBAAkB,EACnB,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AppShellNavigation/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAA4C,MAAM,OAAO,CAAC;AAIlG,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAqB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAiB,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAkB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAK/D,KAAK,KAAK,GAAG;IACX,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,QAAQ,EAAE;QACR,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,GAAG,YAAY,CAAC;QAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;IACF,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,eAAe,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAC3C,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC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AAa,EACb,UAAqB,EACrB,UAAgB,EAChB,kBAAkB,EACnB,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,YAAY,CA0czC"}
|
|
@@ -823,8 +823,8 @@ function AccordionTable({
|
|
|
823
823
|
}
|
|
824
824
|
);
|
|
825
825
|
}
|
|
826
|
-
const Header$3 = lazy(() => import("./index-
|
|
827
|
-
const Footer = lazy(() => import("./index-
|
|
826
|
+
const Header$3 = lazy(() => import("./index-DeRpsAsl.js"));
|
|
827
|
+
const Footer = lazy(() => import("./index-F6HHDg6A.js"));
|
|
828
828
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
829
829
|
const hasContent = !!content || !!footer;
|
|
830
830
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -908,7 +908,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
908
908
|
}
|
|
909
909
|
const CARD_WIDTH$1 = 350;
|
|
910
910
|
const CARD_HEADER_HEIGHT = 158;
|
|
911
|
-
const Header$2 = lazy(() => import("./index-
|
|
911
|
+
const Header$2 = lazy(() => import("./index-BVtpqWCs.js"));
|
|
912
912
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
913
913
|
const wrapperRef = useRef(null);
|
|
914
914
|
const handleOnClick = useCallback(
|
|
@@ -1343,7 +1343,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1343
1343
|
document.body
|
|
1344
1344
|
);
|
|
1345
1345
|
}
|
|
1346
|
-
const Badge = lazy(() => import("./index-
|
|
1346
|
+
const Badge = lazy(() => import("./index-5nix3uGD.js"));
|
|
1347
1347
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1348
1348
|
const shadowScrollRef = useRef(null);
|
|
1349
1349
|
const wrapperContentAreaRef = useRef(null);
|
|
@@ -2323,37 +2323,7 @@ function NavigationItemSkeleton() {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
);
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2327
|
-
if (!length || text.length <= length) {
|
|
2328
|
-
return text;
|
|
2329
|
-
}
|
|
2330
|
-
const words = text.split(" ");
|
|
2331
|
-
const endingSize = ending.length;
|
|
2332
|
-
let result = "";
|
|
2333
|
-
for (const word of words) {
|
|
2334
|
-
const newValue = result + word + " ";
|
|
2335
|
-
if (newValue.length + endingSize - 1 > length) {
|
|
2336
|
-
break;
|
|
2337
|
-
}
|
|
2338
|
-
result = newValue;
|
|
2339
|
-
}
|
|
2340
|
-
return result.trim() + ending;
|
|
2341
|
-
}
|
|
2342
|
-
function shortStr(str, threshold = 30, saveSymbolsAtTheEnd = 10, insert = "...") {
|
|
2343
|
-
if (!str) return str;
|
|
2344
|
-
const len = str.length;
|
|
2345
|
-
if (len <= threshold) return str;
|
|
2346
|
-
const ending = saveSymbolsAtTheEnd ? str.slice(-1 * saveSymbolsAtTheEnd) : "";
|
|
2347
|
-
const beginning = str.substring(0, threshold - saveSymbolsAtTheEnd - insert.length);
|
|
2348
|
-
return `${beginning}${insert}${ending}`;
|
|
2349
|
-
}
|
|
2350
|
-
function carbonToUSD(carbon) {
|
|
2351
|
-
return (carbon * 0.03).toLocaleString(void 0, {
|
|
2352
|
-
minimumFractionDigits: 0,
|
|
2353
|
-
maximumFractionDigits: 6
|
|
2354
|
-
});
|
|
2355
|
-
}
|
|
2356
|
-
function RoomItem({ room }) {
|
|
2326
|
+
function RoomItem({ room, navbarWidth }) {
|
|
2357
2327
|
const { hovered, ref } = useHover();
|
|
2358
2328
|
const renderIcon = () => {
|
|
2359
2329
|
if (!room.icon) return null;
|
|
@@ -2366,8 +2336,7 @@ function RoomItem({ room }) {
|
|
|
2366
2336
|
return room.icon;
|
|
2367
2337
|
}
|
|
2368
2338
|
};
|
|
2369
|
-
const
|
|
2370
|
-
const shouldShowTooltip = room.name.length > 19;
|
|
2339
|
+
const textMaxWidth = navbarWidth - 190;
|
|
2371
2340
|
const content = /* @__PURE__ */ jsxs(
|
|
2372
2341
|
Flex,
|
|
2373
2342
|
{
|
|
@@ -2387,7 +2356,7 @@ function RoomItem({ room }) {
|
|
|
2387
2356
|
children: [
|
|
2388
2357
|
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: 8, children: [
|
|
2389
2358
|
renderIcon(),
|
|
2390
|
-
/* @__PURE__ */ jsx(Text$1, { c: room.isActive ? "neutralColor.8" : "neutralColor.7", fz: 14, children:
|
|
2359
|
+
/* @__PURE__ */ jsx(Text$1, { c: room.isActive ? "neutralColor.8" : "neutralColor.7", fz: 14, truncate: true, style: { maxWidth: textMaxWidth }, children: room.name })
|
|
2391
2360
|
] }),
|
|
2392
2361
|
hovered && /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 4, children: [
|
|
2393
2362
|
room.onActionClick && /* @__PURE__ */ jsx(Tooltip$4, { label: room.onActionClick.label, children: /* @__PURE__ */ jsx(
|
|
@@ -2406,9 +2375,9 @@ function RoomItem({ room }) {
|
|
|
2406
2375
|
]
|
|
2407
2376
|
}
|
|
2408
2377
|
);
|
|
2409
|
-
return
|
|
2378
|
+
return content;
|
|
2410
2379
|
}
|
|
2411
|
-
function RoomCategory({ name, rooms, actions, primaryActions }) {
|
|
2380
|
+
function RoomCategory({ name, rooms, actions, primaryActions, navbarWidth }) {
|
|
2412
2381
|
const { hovered, ref } = useHover();
|
|
2413
2382
|
const { value, toggle: toggle2 } = useToggle(false);
|
|
2414
2383
|
return /* @__PURE__ */ jsxs(Stack$1, { gap: 2, children: [
|
|
@@ -2474,14 +2443,19 @@ function RoomCategory({ name, rooms, actions, primaryActions }) {
|
|
|
2474
2443
|
]
|
|
2475
2444
|
}
|
|
2476
2445
|
),
|
|
2477
|
-
!value && /* @__PURE__ */ jsx(Stack$1, { gap: 5, children: rooms?.map((room) => /* @__PURE__ */ jsx(RoomItem, { room }, room.id)) })
|
|
2446
|
+
!value && /* @__PURE__ */ jsx(Stack$1, { gap: 5, children: rooms?.map((room) => /* @__PURE__ */ jsx(RoomItem, { room, navbarWidth }, room.id)) })
|
|
2478
2447
|
] });
|
|
2479
2448
|
}
|
|
2480
2449
|
function hasActiveDescendant(children) {
|
|
2481
2450
|
if (!children || children.length === 0) return false;
|
|
2482
2451
|
return children.some((child) => child.isActive === true || hasActiveDescendant(child.children));
|
|
2483
2452
|
}
|
|
2484
|
-
function MenuItem({
|
|
2453
|
+
function MenuItem({
|
|
2454
|
+
item,
|
|
2455
|
+
onMenuItemClick,
|
|
2456
|
+
depth = 0,
|
|
2457
|
+
navbarWidth
|
|
2458
|
+
}) {
|
|
2485
2459
|
const { hovered, ref } = useHover();
|
|
2486
2460
|
const hasChildren = item.children && item.children.length > 0;
|
|
2487
2461
|
const hasActiveChild = useMemo(() => hasActiveDescendant(item.children), [item.children]);
|
|
@@ -2561,7 +2535,7 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2561
2535
|
children: [
|
|
2562
2536
|
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: 8, children: [
|
|
2563
2537
|
renderIcon(),
|
|
2564
|
-
/* @__PURE__ */ jsx(Text$1, { fz: 14, fw: 500, c: item.isActive ? "neutralColor.8" : "neutralColor.7", style: {
|
|
2538
|
+
/* @__PURE__ */ jsx(Text$1, { fz: 14, fw: 500, c: item.isActive ? "neutralColor.8" : "neutralColor.7", truncate: true, style: { maxWidth: navbarWidth - 160 - depth * 16 }, children: item.name }),
|
|
2565
2539
|
item.badgeCount ? /* @__PURE__ */ jsx(Badge$1, { size: "xs", variant: "filled", ml: 4, style: { minWidth: "16px", height: "15px", padding: "0 4px", fontSize: "8px" }, children: item.badgeCount }) : null
|
|
2566
2540
|
] }),
|
|
2567
2541
|
/* @__PURE__ */ jsx(Flex, { children: item?.actions && item.actions.length > 0 && /* @__PURE__ */ jsx(
|
|
@@ -2581,7 +2555,7 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2581
2555
|
]
|
|
2582
2556
|
}
|
|
2583
2557
|
),
|
|
2584
|
-
hasChildren && isExpanded && /* @__PURE__ */ jsx(Stack$1, { gap: 1, children: item.children?.map((childItem) => /* @__PURE__ */ jsx(MenuItem, { item: childItem, onMenuItemClick, depth: depth + 1 }, childItem.id)) })
|
|
2558
|
+
hasChildren && isExpanded && /* @__PURE__ */ jsx(Stack$1, { gap: 1, children: item.children?.map((childItem) => /* @__PURE__ */ jsx(MenuItem, { item: childItem, onMenuItemClick, depth: depth + 1, navbarWidth }, childItem.id)) })
|
|
2585
2559
|
] });
|
|
2586
2560
|
}
|
|
2587
2561
|
function SelectedIndicator() {
|
|
@@ -2698,7 +2672,6 @@ function AppShellNavigation({
|
|
|
2698
2672
|
},
|
|
2699
2673
|
[onSplitRatioChange]
|
|
2700
2674
|
);
|
|
2701
|
-
const isTitleOverflowing = (pageItem?.pageTitle?.length || 0) > 21;
|
|
2702
2675
|
const handleSplitMouseUp = useCallback(() => {
|
|
2703
2676
|
setIsSplitResizing(false);
|
|
2704
2677
|
isSplitResizingRef.current = false;
|
|
@@ -2728,8 +2701,9 @@ function AppShellNavigation({
|
|
|
2728
2701
|
};
|
|
2729
2702
|
}, [isSplitResizing, handleSplitMouseMove, handleSplitMouseUp]);
|
|
2730
2703
|
const [navbarWidthAiOpen, setNavbarWidthAiOpen] = useLocalStorage("navbar-width-ai-open", 450);
|
|
2731
|
-
const [navbarWidthAiClosed, setNavbarWidthAiClosed] = useLocalStorage("navbar-width-ai-closed",
|
|
2704
|
+
const [navbarWidthAiClosed, setNavbarWidthAiClosed] = useLocalStorage("navbar-width-ai-closed", 330);
|
|
2732
2705
|
const navbarWidth = isAiOpened ? navbarWidthAiOpen : navbarWidthAiClosed;
|
|
2706
|
+
const titleMaxWidth = navbarWidth - 120;
|
|
2733
2707
|
const [isNavbarResizing, setIsNavbarResizing] = useState(false);
|
|
2734
2708
|
const isNavbarResizingRef = useRef(false);
|
|
2735
2709
|
function clearNavbarListeners() {
|
|
@@ -2884,7 +2858,7 @@ function AppShellNavigation({
|
|
|
2884
2858
|
isAiOpened && !isMobile && aiNavbarContent,
|
|
2885
2859
|
!isAiOpened && /* @__PURE__ */ jsxs(Box, { w: "100%", style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
2886
2860
|
/* @__PURE__ */ jsx(AppShell.Section, { px: 12, pt: 16, children: /* @__PURE__ */ jsxs(Flex, { mb: 24, style: { width: "100%" }, justify: "space-between", align: "center", children: [
|
|
2887
|
-
/* @__PURE__ */ jsx(Flex, { align: "center", gap: "10px", children: /* @__PURE__ */ jsx(
|
|
2861
|
+
/* @__PURE__ */ jsx(Flex, { align: "center", gap: "10px", children: /* @__PURE__ */ jsx(Text$1, { lh: 1, c: "neutralColor.8", truncate: true, style: { maxWidth: titleMaxWidth }, children: pageItem.pageTitle || "Unknown" }) }),
|
|
2888
2862
|
isAiBtnVisible && !isAiOpened && !isMobile && /* @__PURE__ */ jsx(
|
|
2889
2863
|
Center,
|
|
2890
2864
|
{
|
|
@@ -2908,12 +2882,12 @@ function AppShellNavigation({
|
|
|
2908
2882
|
if (index !== 0 && index === separator) {
|
|
2909
2883
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2910
2884
|
/* @__PURE__ */ jsx(Space, { h: 16 }),
|
|
2911
|
-
/* @__PURE__ */ jsx(MenuItem, { onMenuItemClick, item }, item.id)
|
|
2885
|
+
/* @__PURE__ */ jsx(MenuItem, { onMenuItemClick, item, navbarWidth }, item.id)
|
|
2912
2886
|
] });
|
|
2913
2887
|
}
|
|
2914
|
-
return /* @__PURE__ */ jsx(MenuItem, { onMenuItemClick, item }, item.id);
|
|
2888
|
+
return /* @__PURE__ */ jsx(MenuItem, { onMenuItemClick, item, navbarWidth }, item.id);
|
|
2915
2889
|
}),
|
|
2916
|
-
roomCategories && roomCategories.length > 0 && /* @__PURE__ */ jsx(Stack$1, { gap: 8, mt: 16, children: roomCategories.map(({ id, name, actions, rooms, primaryActions: onAddClick }) => /* @__PURE__ */ jsx(RoomCategory, { id, name, actions, rooms, primaryActions: onAddClick }, id)) })
|
|
2890
|
+
roomCategories && roomCategories.length > 0 && /* @__PURE__ */ jsx(Stack$1, { gap: 8, mt: 16, children: roomCategories.map(({ id, name, actions, rooms, primaryActions: onAddClick }) => /* @__PURE__ */ jsx(RoomCategory, { id, name, actions, rooms, primaryActions: onAddClick, navbarWidth }, id)) })
|
|
2917
2891
|
] }) }),
|
|
2918
2892
|
footerContent && /* @__PURE__ */ jsx(AppShell.Section, { px: 12, py: 10, children: /* @__PURE__ */ jsx(Stack$1, { gap: 5, children: footerContent }) })
|
|
2919
2893
|
] })
|
|
@@ -6119,13 +6093,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
6119
6093
|
}
|
|
6120
6094
|
);
|
|
6121
6095
|
}
|
|
6122
|
-
const MainAction = lazy(() => import("./index-
|
|
6123
|
-
const Header$1 = lazy(() => import("./index-
|
|
6124
|
-
const Content = lazy(() => import("./index-
|
|
6096
|
+
const MainAction = lazy(() => import("./index-3jU32ylS.js"));
|
|
6097
|
+
const Header$1 = lazy(() => import("./index-DxE2Ni88.js"));
|
|
6098
|
+
const Content = lazy(() => import("./index-BzJhTXjs.js"));
|
|
6125
6099
|
const Map = lazy(() => import("./index-D5Ufmf-s.js"));
|
|
6126
6100
|
const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
|
|
6127
|
-
const Assets = lazy(() => import("./index-
|
|
6128
|
-
const Actions = lazy(() => import("./index-
|
|
6101
|
+
const Assets = lazy(() => import("./index-8tGadeUE.js"));
|
|
6102
|
+
const Actions = lazy(() => import("./index-CYdgFOk0.js"));
|
|
6129
6103
|
const HOVER_BORDER_WIDTH = 1;
|
|
6130
6104
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
6131
6105
|
const wrapperRef = useRef(null);
|
|
@@ -6462,6 +6436,28 @@ function AssetInfo({
|
|
|
6462
6436
|
}
|
|
6463
6437
|
);
|
|
6464
6438
|
}
|
|
6439
|
+
function cutText(text, length, ending = "…") {
|
|
6440
|
+
if (!length || text.length <= length) {
|
|
6441
|
+
return text;
|
|
6442
|
+
}
|
|
6443
|
+
const words = text.split(" ");
|
|
6444
|
+
const endingSize = ending.length;
|
|
6445
|
+
let result = "";
|
|
6446
|
+
for (const word of words) {
|
|
6447
|
+
const newValue = result + word + " ";
|
|
6448
|
+
if (newValue.length + endingSize - 1 > length) {
|
|
6449
|
+
break;
|
|
6450
|
+
}
|
|
6451
|
+
result = newValue;
|
|
6452
|
+
}
|
|
6453
|
+
return result.trim() + ending;
|
|
6454
|
+
}
|
|
6455
|
+
function carbonToUSD(carbon) {
|
|
6456
|
+
return (carbon * 0.03).toLocaleString(void 0, {
|
|
6457
|
+
minimumFractionDigits: 0,
|
|
6458
|
+
maximumFractionDigits: 6
|
|
6459
|
+
});
|
|
6460
|
+
}
|
|
6465
6461
|
const SHARED_ASSET_PROPS = {
|
|
6466
6462
|
leftTitleColor: "text",
|
|
6467
6463
|
rightTitleColor: "text",
|
|
@@ -11402,4 +11398,4 @@ export {
|
|
|
11402
11398
|
CardHero as y,
|
|
11403
11399
|
CardSelector as z
|
|
11404
11400
|
};
|
|
11405
|
-
//# sourceMappingURL=components-
|
|
11401
|
+
//# sourceMappingURL=components-CHbRYZDV.js.map
|