@12-apps/ui 6.96.1 → 6.96.2
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/_internal/components/data-display/Avatar/Avatar.js +1 -1
- package/dist/_internal/components/data-display/Chip/Chip.js +3 -3
- package/dist/_internal/components/data-display/Chip/Chip.metrics.js +3 -1
- package/dist/_internal/components/data-display/Chip/Chip.styles.js +2 -2
- package/dist/_internal/components/data-display/index.js +4 -4
- package/dist/_internal/components/index.js +11 -11
- package/dist/_internal/components/layout/SettingCard/SettingCard.js +6 -6
- package/dist/_internal/components/layout/SettingCard/SettingCard.parts.js +4 -4
- package/dist/_internal/components/layout/SettingCard/SettingCard.summary.js +5 -5
- package/dist/_internal/components/layout/SettingCard/SettingGrid.js +5 -5
- package/dist/_internal/components/layout/SettingCard/SettingGroup.js +7 -7
- package/dist/_internal/components/layout/SettingCard/SettingSwitch.js +6 -6
- package/dist/_internal/components/layout/SettingCard/SettingToggle.js +7 -7
- package/dist/_internal/components/layout/index.js +10 -10
- package/dist/_internal/user-avatar/user-avatar.js +2 -2
- package/dist/{chunk-FMNOCFD2.js → chunk-2C7AWMV7.js} +2 -2
- package/dist/{chunk-I3QVH34Y.js → chunk-44BTMZB6.js} +3 -3
- package/dist/{chunk-GOWKXKWO.js → chunk-44I2KXKW.js} +7 -5
- package/dist/chunk-44I2KXKW.js.map +1 -0
- package/dist/{chunk-JIEVKHOH.js → chunk-EXEBN5ZP.js} +16 -1
- package/dist/chunk-EXEBN5ZP.js.map +1 -0
- package/dist/{chunk-Y5J2EIR4.js → chunk-F3UHWLTD.js} +2 -2
- package/dist/{chunk-52NM5VEW.js → chunk-GZBLDPXY.js} +3 -1
- package/dist/{chunk-52NM5VEW.js.map → chunk-GZBLDPXY.js.map} +1 -1
- package/dist/{chunk-UOI3RX4W.js → chunk-IAPFZJ6I.js} +2 -2
- package/dist/{chunk-E2UOEI7N.js → chunk-JJYECKEL.js} +2 -2
- package/dist/{chunk-BTDRBO4G.js → chunk-L2ICH44N.js} +3 -3
- package/dist/{chunk-VILNULUY.js → chunk-RCULGFEH.js} +3 -3
- package/dist/{chunk-PQ4P4OEA.js → chunk-SSWNJR36.js} +2 -2
- package/dist/{chunk-KCH6O6IC.js → chunk-XSLF3YGH.js} +3 -3
- package/dist/data-display/Avatar.js +1 -1
- package/dist/data-display/Chip.js +3 -3
- package/dist/layout/SettingCard.js +10 -10
- package/dist/native/data-display/Chip.js +5 -2
- package/dist/native/data-display/Chip.js.map +1 -1
- package/dist/types/components/data-display/Avatar/Avatar.d.ts.map +1 -1
- package/dist/types/components/data-display/Chip/Chip.base.d.ts +3 -2
- package/dist/types/components/data-display/Chip/Chip.base.d.ts.map +1 -1
- package/dist/types/components/data-display/Chip/Chip.metrics.d.ts +6 -0
- package/dist/types/components/data-display/Chip/Chip.metrics.d.ts.map +1 -1
- package/dist/types/components/data-display/Chip/Chip.styles.d.ts.map +1 -1
- package/dist/types-native/components/data-display/Chip/Chip.base.d.ts +3 -2
- package/dist/types-native/components/data-display/Chip/Chip.base.d.ts.map +1 -1
- package/dist/types-native/components/data-display/Chip/Chip.look.native.d.ts.map +1 -1
- package/dist/types-native/components/data-display/Chip/Chip.metrics.d.ts +6 -0
- package/dist/types-native/components/data-display/Chip/Chip.metrics.d.ts.map +1 -1
- package/dist/user-avatar.js +2 -2
- package/package.json +1 -1
- package/src/components/data-display/Avatar/Avatar.tsx +22 -3
- package/src/components/data-display/Chip/Chip.base.ts +3 -2
- package/src/components/data-display/Chip/Chip.look.native.ts +6 -3
- package/src/components/data-display/Chip/Chip.metrics.ts +6 -0
- package/src/components/data-display/Chip/Chip.styles.tsx +9 -4
- package/src/components/data-display/Chip/chip.md +1 -1
- package/dist/chunk-GOWKXKWO.js.map +0 -1
- package/dist/chunk-JIEVKHOH.js.map +0 -1
- /package/dist/{chunk-FMNOCFD2.js.map → chunk-2C7AWMV7.js.map} +0 -0
- /package/dist/{chunk-I3QVH34Y.js.map → chunk-44BTMZB6.js.map} +0 -0
- /package/dist/{chunk-Y5J2EIR4.js.map → chunk-F3UHWLTD.js.map} +0 -0
- /package/dist/{chunk-UOI3RX4W.js.map → chunk-IAPFZJ6I.js.map} +0 -0
- /package/dist/{chunk-E2UOEI7N.js.map → chunk-JJYECKEL.js.map} +0 -0
- /package/dist/{chunk-BTDRBO4G.js.map → chunk-L2ICH44N.js.map} +0 -0
- /package/dist/{chunk-VILNULUY.js.map → chunk-RCULGFEH.js.map} +0 -0
- /package/dist/{chunk-PQ4P4OEA.js.map → chunk-SSWNJR36.js.map} +0 -0
- /package/dist/{chunk-KCH6O6IC.js.map → chunk-XSLF3YGH.js.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Chip
|
|
3
|
-
} from "../../../../chunk-
|
|
4
|
-
import "../../../../chunk-
|
|
5
|
-
import "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-L2ICH44N.js";
|
|
4
|
+
import "../../../../chunk-44I2KXKW.js";
|
|
5
|
+
import "../../../../chunk-GZBLDPXY.js";
|
|
6
6
|
import "../../../../chunk-BF4FYOAR.js";
|
|
7
7
|
import "../../../../chunk-XJAD6E3V.js";
|
|
8
8
|
import "../../../../chunk-F5H2ZXST.js";
|
|
@@ -14,8 +14,9 @@ import {
|
|
|
14
14
|
SOFT_FOCUS_RING,
|
|
15
15
|
SOFT_GROUND_ALPHA,
|
|
16
16
|
SOFT_HOVER_ALPHA,
|
|
17
|
+
SOFT_WARNING_LIGHT_DARKEN,
|
|
17
18
|
chipMuiSize
|
|
18
|
-
} from "../../../../chunk-
|
|
19
|
+
} from "../../../../chunk-GZBLDPXY.js";
|
|
19
20
|
import "../../../../chunk-PZ5AY32C.js";
|
|
20
21
|
export {
|
|
21
22
|
CHIP_DISABLED_OPACITY,
|
|
@@ -33,6 +34,7 @@ export {
|
|
|
33
34
|
SOFT_FOCUS_RING,
|
|
34
35
|
SOFT_GROUND_ALPHA,
|
|
35
36
|
SOFT_HOVER_ALPHA,
|
|
37
|
+
SOFT_WARNING_LIGHT_DARKEN,
|
|
36
38
|
chipMuiSize
|
|
37
39
|
};
|
|
38
40
|
//# sourceMappingURL=Chip.metrics.js.map
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
chipStyles,
|
|
4
4
|
iconWithTestId,
|
|
5
5
|
makeKeyDownHandler
|
|
6
|
-
} from "../../../../chunk-
|
|
7
|
-
import "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-44I2KXKW.js";
|
|
7
|
+
import "../../../../chunk-GZBLDPXY.js";
|
|
8
8
|
import "../../../../chunk-BF4FYOAR.js";
|
|
9
9
|
import "../../../../chunk-XJAD6E3V.js";
|
|
10
10
|
import "../../../../chunk-F5H2ZXST.js";
|
|
@@ -200,9 +200,9 @@ import {
|
|
|
200
200
|
} from "../../../chunk-M2M4IDFU.js";
|
|
201
201
|
import {
|
|
202
202
|
Chip
|
|
203
|
-
} from "../../../chunk-
|
|
204
|
-
import "../../../chunk-
|
|
205
|
-
import "../../../chunk-
|
|
203
|
+
} from "../../../chunk-L2ICH44N.js";
|
|
204
|
+
import "../../../chunk-44I2KXKW.js";
|
|
205
|
+
import "../../../chunk-GZBLDPXY.js";
|
|
206
206
|
import "../../../chunk-BF4FYOAR.js";
|
|
207
207
|
import "../../../chunk-ARGVUTTL.js";
|
|
208
208
|
import "../../../chunk-PZS7N74L.js";
|
|
@@ -314,7 +314,7 @@ import {
|
|
|
314
314
|
import {
|
|
315
315
|
Avatar,
|
|
316
316
|
AvatarGroup
|
|
317
|
-
} from "../../../chunk-
|
|
317
|
+
} from "../../../chunk-EXEBN5ZP.js";
|
|
318
318
|
import "../../../chunk-7XSCEHGA.js";
|
|
319
319
|
import "../../../chunk-MTEQEPNY.js";
|
|
320
320
|
import "../../../chunk-6ZZGK5DT.js";
|
|
@@ -187,22 +187,22 @@ import "../../chunk-QUWK7SYN.js";
|
|
|
187
187
|
import "../../chunk-QGUNUXTT.js";
|
|
188
188
|
import {
|
|
189
189
|
SettingCard
|
|
190
|
-
} from "../../chunk-
|
|
190
|
+
} from "../../chunk-XSLF3YGH.js";
|
|
191
191
|
import {
|
|
192
192
|
SettingToggle
|
|
193
|
-
} from "../../chunk-
|
|
193
|
+
} from "../../chunk-SSWNJR36.js";
|
|
194
194
|
import {
|
|
195
195
|
SettingGroup
|
|
196
|
-
} from "../../chunk-
|
|
196
|
+
} from "../../chunk-RCULGFEH.js";
|
|
197
197
|
import "../../chunk-SALQ65SM.js";
|
|
198
|
-
import "../../chunk-
|
|
199
|
-
import "../../chunk-
|
|
198
|
+
import "../../chunk-44BTMZB6.js";
|
|
199
|
+
import "../../chunk-2C7AWMV7.js";
|
|
200
200
|
import "../../chunk-XJQNSMGA.js";
|
|
201
201
|
import {
|
|
202
202
|
SETTING_GRID_CONTAINER,
|
|
203
203
|
SettingGrid
|
|
204
|
-
} from "../../chunk-
|
|
205
|
-
import "../../chunk-
|
|
204
|
+
} from "../../chunk-IAPFZJ6I.js";
|
|
205
|
+
import "../../chunk-F3UHWLTD.js";
|
|
206
206
|
import "../../chunk-UJ7EHEXG.js";
|
|
207
207
|
import "../../chunk-KSZ6GH3J.js";
|
|
208
208
|
import "../../chunk-UJP2VS2H.js";
|
|
@@ -641,9 +641,9 @@ import {
|
|
|
641
641
|
import "../../chunk-2GTORM5E.js";
|
|
642
642
|
import {
|
|
643
643
|
Chip
|
|
644
|
-
} from "../../chunk-
|
|
645
|
-
import "../../chunk-
|
|
646
|
-
import "../../chunk-
|
|
644
|
+
} from "../../chunk-L2ICH44N.js";
|
|
645
|
+
import "../../chunk-44I2KXKW.js";
|
|
646
|
+
import "../../chunk-GZBLDPXY.js";
|
|
647
647
|
import "../../chunk-BF4FYOAR.js";
|
|
648
648
|
import "../../chunk-NCS2TBIP.js";
|
|
649
649
|
import {
|
|
@@ -924,7 +924,7 @@ import "../../chunk-DVRNW33K.js";
|
|
|
924
924
|
import {
|
|
925
925
|
Avatar,
|
|
926
926
|
AvatarGroup
|
|
927
|
-
} from "../../chunk-
|
|
927
|
+
} from "../../chunk-EXEBN5ZP.js";
|
|
928
928
|
import "../../chunk-7XSCEHGA.js";
|
|
929
929
|
import "../../chunk-MTEQEPNY.js";
|
|
930
930
|
import "../../chunk-6ZZGK5DT.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SettingCard
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-XSLF3YGH.js";
|
|
4
4
|
import "../../../../chunk-SALQ65SM.js";
|
|
5
|
-
import "../../../../chunk-
|
|
6
|
-
import "../../../../chunk-
|
|
5
|
+
import "../../../../chunk-2C7AWMV7.js";
|
|
6
|
+
import "../../../../chunk-F3UHWLTD.js";
|
|
7
7
|
import "../../../../chunk-UJ7EHEXG.js";
|
|
8
8
|
import "../../../../chunk-KSZ6GH3J.js";
|
|
9
9
|
import "../../../../chunk-RN7UJI7S.js";
|
|
@@ -14,9 +14,9 @@ import "../../../../chunk-Z5WUSI47.js";
|
|
|
14
14
|
import "../../../../chunk-BCWL7HUO.js";
|
|
15
15
|
import "../../../../chunk-QYJ25FWM.js";
|
|
16
16
|
import "../../../../chunk-2GTORM5E.js";
|
|
17
|
-
import "../../../../chunk-
|
|
18
|
-
import "../../../../chunk-
|
|
19
|
-
import "../../../../chunk-
|
|
17
|
+
import "../../../../chunk-L2ICH44N.js";
|
|
18
|
+
import "../../../../chunk-44I2KXKW.js";
|
|
19
|
+
import "../../../../chunk-GZBLDPXY.js";
|
|
20
20
|
import "../../../../chunk-BF4FYOAR.js";
|
|
21
21
|
import "../../../../chunk-LV7LSPBF.js";
|
|
22
22
|
import "../../../../chunk-PGGGKYWG.js";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
SaveError,
|
|
5
5
|
SettingHeader,
|
|
6
6
|
partTestId
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-F3UHWLTD.js";
|
|
8
8
|
import "../../../../chunk-UJ7EHEXG.js";
|
|
9
9
|
import "../../../../chunk-KSZ6GH3J.js";
|
|
10
10
|
import "../../../../chunk-RN7UJI7S.js";
|
|
11
11
|
import "../../../../chunk-JYWF76Z5.js";
|
|
12
12
|
import "../../../../chunk-GGMB6LJH.js";
|
|
13
13
|
import "../../../../chunk-2GTORM5E.js";
|
|
14
|
-
import "../../../../chunk-
|
|
15
|
-
import "../../../../chunk-
|
|
16
|
-
import "../../../../chunk-
|
|
14
|
+
import "../../../../chunk-L2ICH44N.js";
|
|
15
|
+
import "../../../../chunk-44I2KXKW.js";
|
|
16
|
+
import "../../../../chunk-GZBLDPXY.js";
|
|
17
17
|
import "../../../../chunk-BF4FYOAR.js";
|
|
18
18
|
import "../../../../chunk-PGGGKYWG.js";
|
|
19
19
|
import "../../../../chunk-YEKPQAOW.js";
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
SummaryInfo,
|
|
3
3
|
useClamped,
|
|
4
4
|
useSummaryInfo
|
|
5
|
-
} from "../../../../chunk-
|
|
6
|
-
import "../../../../chunk-
|
|
5
|
+
} from "../../../../chunk-2C7AWMV7.js";
|
|
6
|
+
import "../../../../chunk-F3UHWLTD.js";
|
|
7
7
|
import "../../../../chunk-UJ7EHEXG.js";
|
|
8
8
|
import "../../../../chunk-KSZ6GH3J.js";
|
|
9
9
|
import "../../../../chunk-RN7UJI7S.js";
|
|
@@ -14,9 +14,9 @@ import "../../../../chunk-Z5WUSI47.js";
|
|
|
14
14
|
import "../../../../chunk-BCWL7HUO.js";
|
|
15
15
|
import "../../../../chunk-QYJ25FWM.js";
|
|
16
16
|
import "../../../../chunk-2GTORM5E.js";
|
|
17
|
-
import "../../../../chunk-
|
|
18
|
-
import "../../../../chunk-
|
|
19
|
-
import "../../../../chunk-
|
|
17
|
+
import "../../../../chunk-L2ICH44N.js";
|
|
18
|
+
import "../../../../chunk-44I2KXKW.js";
|
|
19
|
+
import "../../../../chunk-GZBLDPXY.js";
|
|
20
20
|
import "../../../../chunk-BF4FYOAR.js";
|
|
21
21
|
import "../../../../chunk-PGGGKYWG.js";
|
|
22
22
|
import "../../../../chunk-YEKPQAOW.js";
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
SETTING_GRID_CONTAINER,
|
|
3
3
|
SettingGrid,
|
|
4
4
|
settingGridStyles
|
|
5
|
-
} from "../../../../chunk-
|
|
6
|
-
import "../../../../chunk-
|
|
5
|
+
} from "../../../../chunk-IAPFZJ6I.js";
|
|
6
|
+
import "../../../../chunk-F3UHWLTD.js";
|
|
7
7
|
import "../../../../chunk-UJ7EHEXG.js";
|
|
8
8
|
import "../../../../chunk-KSZ6GH3J.js";
|
|
9
9
|
import "../../../../chunk-RN7UJI7S.js";
|
|
10
10
|
import "../../../../chunk-JYWF76Z5.js";
|
|
11
11
|
import "../../../../chunk-GGMB6LJH.js";
|
|
12
12
|
import "../../../../chunk-2GTORM5E.js";
|
|
13
|
-
import "../../../../chunk-
|
|
14
|
-
import "../../../../chunk-
|
|
15
|
-
import "../../../../chunk-
|
|
13
|
+
import "../../../../chunk-L2ICH44N.js";
|
|
14
|
+
import "../../../../chunk-44I2KXKW.js";
|
|
15
|
+
import "../../../../chunk-GZBLDPXY.js";
|
|
16
16
|
import "../../../../chunk-BF4FYOAR.js";
|
|
17
17
|
import "../../../../chunk-PGGGKYWG.js";
|
|
18
18
|
import "../../../../chunk-YEKPQAOW.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SettingGroup
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-RCULGFEH.js";
|
|
4
4
|
import "../../../../chunk-SALQ65SM.js";
|
|
5
|
-
import "../../../../chunk-
|
|
6
|
-
import "../../../../chunk-
|
|
5
|
+
import "../../../../chunk-44BTMZB6.js";
|
|
6
|
+
import "../../../../chunk-2C7AWMV7.js";
|
|
7
7
|
import "../../../../chunk-XJQNSMGA.js";
|
|
8
|
-
import "../../../../chunk-
|
|
8
|
+
import "../../../../chunk-F3UHWLTD.js";
|
|
9
9
|
import "../../../../chunk-UJ7EHEXG.js";
|
|
10
10
|
import "../../../../chunk-KSZ6GH3J.js";
|
|
11
11
|
import "../../../../chunk-RN7UJI7S.js";
|
|
@@ -17,9 +17,9 @@ import "../../../../chunk-Z5WUSI47.js";
|
|
|
17
17
|
import "../../../../chunk-BCWL7HUO.js";
|
|
18
18
|
import "../../../../chunk-QYJ25FWM.js";
|
|
19
19
|
import "../../../../chunk-2GTORM5E.js";
|
|
20
|
-
import "../../../../chunk-
|
|
21
|
-
import "../../../../chunk-
|
|
22
|
-
import "../../../../chunk-
|
|
20
|
+
import "../../../../chunk-L2ICH44N.js";
|
|
21
|
+
import "../../../../chunk-44I2KXKW.js";
|
|
22
|
+
import "../../../../chunk-GZBLDPXY.js";
|
|
23
23
|
import "../../../../chunk-BF4FYOAR.js";
|
|
24
24
|
import "../../../../chunk-4PJ52YBO.js";
|
|
25
25
|
import "../../../../chunk-EIMFA7KP.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SettingSwitchBlock,
|
|
3
3
|
useSettingSwitchIds
|
|
4
|
-
} from "../../../../chunk-
|
|
5
|
-
import "../../../../chunk-
|
|
6
|
-
import "../../../../chunk-
|
|
4
|
+
} from "../../../../chunk-44BTMZB6.js";
|
|
5
|
+
import "../../../../chunk-2C7AWMV7.js";
|
|
6
|
+
import "../../../../chunk-F3UHWLTD.js";
|
|
7
7
|
import "../../../../chunk-UJ7EHEXG.js";
|
|
8
8
|
import "../../../../chunk-KSZ6GH3J.js";
|
|
9
9
|
import "../../../../chunk-RN7UJI7S.js";
|
|
@@ -15,9 +15,9 @@ import "../../../../chunk-Z5WUSI47.js";
|
|
|
15
15
|
import "../../../../chunk-BCWL7HUO.js";
|
|
16
16
|
import "../../../../chunk-QYJ25FWM.js";
|
|
17
17
|
import "../../../../chunk-2GTORM5E.js";
|
|
18
|
-
import "../../../../chunk-
|
|
19
|
-
import "../../../../chunk-
|
|
20
|
-
import "../../../../chunk-
|
|
18
|
+
import "../../../../chunk-L2ICH44N.js";
|
|
19
|
+
import "../../../../chunk-44I2KXKW.js";
|
|
20
|
+
import "../../../../chunk-GZBLDPXY.js";
|
|
21
21
|
import "../../../../chunk-BF4FYOAR.js";
|
|
22
22
|
import "../../../../chunk-4PJ52YBO.js";
|
|
23
23
|
import "../../../../chunk-EIMFA7KP.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SettingToggle
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-SSWNJR36.js";
|
|
4
4
|
import "../../../../chunk-SALQ65SM.js";
|
|
5
|
-
import "../../../../chunk-
|
|
6
|
-
import "../../../../chunk-
|
|
5
|
+
import "../../../../chunk-44BTMZB6.js";
|
|
6
|
+
import "../../../../chunk-2C7AWMV7.js";
|
|
7
7
|
import "../../../../chunk-XJQNSMGA.js";
|
|
8
|
-
import "../../../../chunk-
|
|
8
|
+
import "../../../../chunk-F3UHWLTD.js";
|
|
9
9
|
import "../../../../chunk-UJ7EHEXG.js";
|
|
10
10
|
import "../../../../chunk-KSZ6GH3J.js";
|
|
11
11
|
import "../../../../chunk-RN7UJI7S.js";
|
|
@@ -17,9 +17,9 @@ import "../../../../chunk-Z5WUSI47.js";
|
|
|
17
17
|
import "../../../../chunk-BCWL7HUO.js";
|
|
18
18
|
import "../../../../chunk-QYJ25FWM.js";
|
|
19
19
|
import "../../../../chunk-2GTORM5E.js";
|
|
20
|
-
import "../../../../chunk-
|
|
21
|
-
import "../../../../chunk-
|
|
22
|
-
import "../../../../chunk-
|
|
20
|
+
import "../../../../chunk-L2ICH44N.js";
|
|
21
|
+
import "../../../../chunk-44I2KXKW.js";
|
|
22
|
+
import "../../../../chunk-GZBLDPXY.js";
|
|
23
23
|
import "../../../../chunk-BF4FYOAR.js";
|
|
24
24
|
import "../../../../chunk-4PJ52YBO.js";
|
|
25
25
|
import "../../../../chunk-EIMFA7KP.js";
|
|
@@ -43,22 +43,22 @@ import "../../../chunk-QUWK7SYN.js";
|
|
|
43
43
|
import "../../../chunk-QGUNUXTT.js";
|
|
44
44
|
import {
|
|
45
45
|
SettingCard
|
|
46
|
-
} from "../../../chunk-
|
|
46
|
+
} from "../../../chunk-XSLF3YGH.js";
|
|
47
47
|
import {
|
|
48
48
|
SettingToggle
|
|
49
|
-
} from "../../../chunk-
|
|
49
|
+
} from "../../../chunk-SSWNJR36.js";
|
|
50
50
|
import {
|
|
51
51
|
SettingGroup
|
|
52
|
-
} from "../../../chunk-
|
|
52
|
+
} from "../../../chunk-RCULGFEH.js";
|
|
53
53
|
import "../../../chunk-SALQ65SM.js";
|
|
54
|
-
import "../../../chunk-
|
|
55
|
-
import "../../../chunk-
|
|
54
|
+
import "../../../chunk-44BTMZB6.js";
|
|
55
|
+
import "../../../chunk-2C7AWMV7.js";
|
|
56
56
|
import "../../../chunk-XJQNSMGA.js";
|
|
57
57
|
import {
|
|
58
58
|
SETTING_GRID_CONTAINER,
|
|
59
59
|
SettingGrid
|
|
60
|
-
} from "../../../chunk-
|
|
61
|
-
import "../../../chunk-
|
|
60
|
+
} from "../../../chunk-IAPFZJ6I.js";
|
|
61
|
+
import "../../../chunk-F3UHWLTD.js";
|
|
62
62
|
import "../../../chunk-UJ7EHEXG.js";
|
|
63
63
|
import "../../../chunk-KSZ6GH3J.js";
|
|
64
64
|
import "../../../chunk-QS5OHHBY.js";
|
|
@@ -97,9 +97,9 @@ import "../../../chunk-QD4TM6UK.js";
|
|
|
97
97
|
import "../../../chunk-EMPVMZAB.js";
|
|
98
98
|
import "../../../chunk-7WDPC46N.js";
|
|
99
99
|
import "../../../chunk-2GTORM5E.js";
|
|
100
|
-
import "../../../chunk-
|
|
101
|
-
import "../../../chunk-
|
|
102
|
-
import "../../../chunk-
|
|
100
|
+
import "../../../chunk-L2ICH44N.js";
|
|
101
|
+
import "../../../chunk-44I2KXKW.js";
|
|
102
|
+
import "../../../chunk-GZBLDPXY.js";
|
|
103
103
|
import "../../../chunk-BF4FYOAR.js";
|
|
104
104
|
import "../../../chunk-4NS4PJJH.js";
|
|
105
105
|
import {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
UserAvatar,
|
|
4
4
|
UserMenu
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-JJYECKEL.js";
|
|
6
6
|
import "../../chunk-DQ22UKMZ.js";
|
|
7
7
|
import "../../chunk-UDQSIRAP.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-EXEBN5ZP.js";
|
|
9
9
|
import "../../chunk-7XSCEHGA.js";
|
|
10
10
|
import "../../chunk-MTEQEPNY.js";
|
|
11
11
|
import "../../chunk-6ZZGK5DT.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
partTestId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F3UHWLTD.js";
|
|
4
4
|
import {
|
|
5
5
|
SETTING_CARD
|
|
6
6
|
} from "./chunk-KSZ6GH3J.js";
|
|
@@ -97,4 +97,4 @@ export {
|
|
|
97
97
|
SummaryInfo,
|
|
98
98
|
useSummaryInfo
|
|
99
99
|
};
|
|
100
|
-
//# sourceMappingURL=chunk-
|
|
100
|
+
//# sourceMappingURL=chunk-2C7AWMV7.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useSummaryInfo
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2C7AWMV7.js";
|
|
4
4
|
import {
|
|
5
5
|
PendingSpinner,
|
|
6
6
|
SaveError,
|
|
7
7
|
SettingHeader,
|
|
8
8
|
partTestId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F3UHWLTD.js";
|
|
10
10
|
import {
|
|
11
11
|
clampStyles,
|
|
12
12
|
descriptionStyles
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
useSettingSwitchIds,
|
|
88
88
|
SettingSwitchBlock
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-44BTMZB6.js.map
|
|
@@ -6,8 +6,9 @@ import {
|
|
|
6
6
|
HOVER_SHADOW,
|
|
7
7
|
SOFT_FOCUS_RING,
|
|
8
8
|
SOFT_GROUND_ALPHA,
|
|
9
|
-
SOFT_HOVER_ALPHA
|
|
10
|
-
|
|
9
|
+
SOFT_HOVER_ALPHA,
|
|
10
|
+
SOFT_WARNING_LIGHT_DARKEN
|
|
11
|
+
} from "./chunk-GZBLDPXY.js";
|
|
11
12
|
import {
|
|
12
13
|
chipKeyAction
|
|
13
14
|
} from "./chunk-BF4FYOAR.js";
|
|
@@ -23,7 +24,7 @@ import {
|
|
|
23
24
|
// src/components/data-display/Chip/Chip.styles.tsx
|
|
24
25
|
import Avatar from "@mui/material/Avatar/index.js";
|
|
25
26
|
import React from "react";
|
|
26
|
-
import { alpha } from "@mui/material/styles/index.js";
|
|
27
|
+
import { alpha, darken } from "@mui/material/styles/index.js";
|
|
27
28
|
import { jsx } from "react/jsx-runtime";
|
|
28
29
|
var makeKeyDownHandler = (args) => (event) => {
|
|
29
30
|
const action = chipKeyAction(event.key, args);
|
|
@@ -58,7 +59,8 @@ var softStyles = (color) => {
|
|
|
58
59
|
const ground = (theme) => key ? alpha(theme.palette[key].main, SOFT_GROUND_ALPHA) : theme.palette.action.selected;
|
|
59
60
|
const ink = (theme) => {
|
|
60
61
|
if (!key) return theme.palette.text.secondary;
|
|
61
|
-
|
|
62
|
+
if (theme.palette.mode === "dark") return theme.palette[key].light;
|
|
63
|
+
return key === "warning" ? darken(theme.palette.warning.dark, SOFT_WARNING_LIGHT_DARKEN) : theme.palette[key].dark;
|
|
62
64
|
};
|
|
63
65
|
return {
|
|
64
66
|
backgroundColor: ground,
|
|
@@ -126,4 +128,4 @@ export {
|
|
|
126
128
|
chipStyles,
|
|
127
129
|
iconWithTestId
|
|
128
130
|
};
|
|
129
|
-
//# sourceMappingURL=chunk-
|
|
131
|
+
//# sourceMappingURL=chunk-44I2KXKW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/data-display/Chip/Chip.styles.tsx"],"sourcesContent":["import Avatar from '@mui/material/Avatar/index.js';\nimport type { SxProps, Theme } from '@mui/material/styles/index.js';\nimport type { KeyboardEvent, ReactElement } from 'react';\nimport React from 'react';\n\nimport { chipKeyAction, type ChipKeyArgs } from './Chip.helpers';\nimport { alpha, darken } from '@mui/material/styles/index.js';\n\nimport {\n CHIP_SIZES,\n CHIP_TRANSITION_EASING,\n CHIP_TRANSITION_MS,\n HOVER_LIFT_PX,\n HOVER_SHADOW,\n SOFT_FOCUS_RING,\n SOFT_GROUND_ALPHA,\n SOFT_HOVER_ALPHA,\n SOFT_WARNING_LIGHT_DARKEN,\n} from './Chip.metrics';\nimport type { ChipProps } from './Chip.types';\nimport { shadowInk } from '../../../tokens/ink';\nimport { rem, rems, sxRem } from '../../../tokens/relative';\n\n/**\n * A chip is not a native control, so the two keyboard conventions it stands in\n * for are wired by hand: Delete/Backspace removes it, Enter/Space activates it.\n * The DECISION is `chipKeyAction`, which the native half reads too.\n */\nexport const makeKeyDownHandler =\n (args: ChipKeyArgs & { onClick?: () => void; onDelete?: () => void }) =>\n (event: KeyboardEvent): void => {\n const action = chipKeyAction(event.key, args);\n if (action === null) return;\n event.preventDefault();\n if (action === 'delete') {\n args.onDelete?.();\n return;\n }\n args.onClick?.();\n };\n\nexport const avatarFor = (\n avatar: ChipProps['avatar'],\n avatarSrc?: string,\n): ReactElement | undefined => {\n if (avatar && React.isValidElement(avatar)) {\n return avatar;\n }\n if (avatarSrc) {\n const { avatarSize } = CHIP_SIZES.medium;\n return <Avatar src={avatarSrc} sx={{ width: sxRem(avatarSize), height: sxRem(avatarSize) }} />;\n }\n return undefined;\n};\n\ninterface ChipStyleArgs {\n variant: ChipProps['variant'];\n color?: ChipProps['color'];\n selected?: boolean;\n clickable?: boolean;\n disabled?: boolean;\n}\n\n/** The lift's shadow, per mode — the same numbers the native chip reads. */\nconst hoverShadow = (theme: Theme): string =>\n `0 ${rems(theme, HOVER_SHADOW.offsetY, HOVER_SHADOW.blur)} ${shadowInk(\n theme,\n theme.palette.mode === 'dark' ? HOVER_SHADOW.alphaDark : HOVER_SHADOW.alphaLight,\n )}`;\n\n/**\n * Selection styling uses SEMANTIC palette tokens (not hardcoded rgba). A filled\n * selected chip keeps MUI's solid `color.main` + contrast text (clear active\n * state); an outlined selected chip gets a subtle theme-driven `action.selected`\n * tint so it reads as active without muddying the fill.\n */\n/** The palette entry a colour paints with; `neutral` has none and takes the ink. */\nconst paletteKey = (color: NonNullable<ChipProps['color']>): 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | null => {\n if (color === 'neutral') return null;\n return color === 'danger' ? 'error' : color;\n};\n\n/**\n * `soft`: the colour's tint for a ground, and for ink the step that reads on it:\n * the `dark` step in light mode, the `light` step in dark mode (FUT-4442). The\n * ground is a 14% tint over the page, so on a near-black page the ink has to be\n * lighter than `main`; `dark` there is 2.6 to 3.9:1, `light` clears 4.5:1. In\n * light mode warning's `dark` is 3.25:1 on its tint, so it is darkened by\n * `SOFT_WARNING_LIGHT_DARKEN` (4.77:1, FUT-4464). The label, the icon and the\n * delete glyph all take it.\n */\nconst softStyles = (color: NonNullable<ChipProps['color']>): SxProps<Theme> => {\n const key = paletteKey(color);\n const ground = (theme: Theme): string =>\n key ? alpha(theme.palette[key].main, SOFT_GROUND_ALPHA) : theme.palette.action.selected;\n const ink = (theme: Theme): string => {\n if (!key) return theme.palette.text.secondary;\n if (theme.palette.mode === 'dark') return theme.palette[key].light;\n // Warning's `dark` step is too light for its own tint (FUT-4464).\n return key === 'warning' ? darken(theme.palette.warning.dark, SOFT_WARNING_LIGHT_DARKEN) : theme.palette[key].dark;\n };\n return {\n backgroundColor: ground,\n color: ink,\n // A state is read at a glance: the label is set semibold.\n fontWeight: 600,\n '& .MuiChip-icon': { color: ink },\n '&.MuiChip-clickable:hover': {\n backgroundColor: (theme: Theme) => (key ? alpha(theme.palette[key].main, SOFT_HOVER_ALPHA) : theme.palette.action.hover),\n },\n // `neutral` keeps MUI's glyph and focus exactly as they were.\n ...(key ? (accentedStates(key, ink) as object) : {}),\n };\n};\n\n/**\n * What only an accented soft chip changes (FUT-4442, FUT-4461). MUI paints the\n * delete glyph in `contrastText` at 0.7, near-black on a dark ground, so the glyph\n * takes the ink. Focus, in both modes: the chip keeps its resting ground (MUI's\n * `dark` step puts the ink at about 1:1 in light mode and sinks the light ink in\n * dark mode) and draws a ring in the ink, so focus shows without the ground.\n */\nconst accentedStates = (\n key: Exclude<ReturnType<typeof paletteKey>, null>,\n ink: (theme: Theme) => string,\n): SxProps<Theme> => ({\n '& .MuiChip-deleteIcon': { color: ink, '&:hover': { color: ink } },\n '&.Mui-focusVisible': {\n backgroundColor: (theme: Theme) => alpha(theme.palette[key].main, SOFT_GROUND_ALPHA),\n outlineStyle: 'solid',\n outlineWidth: (theme: Theme) => rem(theme, SOFT_FOCUS_RING.width),\n outlineColor: ink,\n outlineOffset: (theme: Theme) => rem(theme, SOFT_FOCUS_RING.offset),\n },\n});\n\nexport const chipStyles = ({\n variant,\n color = 'primary',\n selected,\n clickable,\n disabled,\n}: ChipStyleArgs): SxProps<Theme> => {\n const lifts = clickable && !disabled;\n\n return {\n ...(variant === 'soft' ? (softStyles(color) as object) : {}),\n // Enhanced styling for outlined variant\n ...(variant === 'outlined' && {\n borderWidth: '1px',\n borderStyle: 'solid',\n backgroundColor: 'transparent',\n }),\n ...(selected &&\n variant === 'outlined' && {\n backgroundColor: (theme: Theme) => theme.palette.action.selected,\n }),\n '&:hover': {\n ...(lifts && {\n transform: (theme: Theme) => `translateY(${rem(theme, -HOVER_LIFT_PX)})`,\n boxShadow: (theme: Theme) => hoverShadow(theme),\n }),\n },\n '&:active': {\n ...(lifts && {\n transform: 'translateY(0px)',\n }),\n },\n transition: `all ${CHIP_TRANSITION_MS / 1000}s ${CHIP_TRANSITION_EASING}`,\n };\n};\n\nexport const iconWithTestId = (\n icon: ChipProps['icon'],\n testId: string,\n): ReactElement | undefined =>\n icon && React.isValidElement(icon)\n ? React.cloneElement(icon as ReactElement, {\n 'data-testid': testId,\n } as Record<string, unknown>)\n : undefined;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,YAAY;AAGnB,OAAO,WAAW;AAGlB,SAAS,OAAO,cAAc;AA4CnB;AAtBJ,IAAM,qBACX,CAAC,SACD,CAAC,UAA+B;AAC9B,QAAM,SAAS,cAAc,MAAM,KAAK,IAAI;AAC5C,MAAI,WAAW,KAAM;AACrB,QAAM,eAAe;AACrB,MAAI,WAAW,UAAU;AACvB,SAAK,WAAW;AAChB;AAAA,EACF;AACA,OAAK,UAAU;AACjB;AAEK,IAAM,YAAY,CACvB,QACA,cAC6B;AAC7B,MAAI,UAAU,MAAM,eAAe,MAAM,GAAG;AAC1C,WAAO;AAAA,EACT;AACA,MAAI,WAAW;AACb,UAAM,EAAE,WAAW,IAAI,WAAW;AAClC,WAAO,oBAAC,UAAO,KAAK,WAAW,IAAI,EAAE,OAAO,MAAM,UAAU,GAAG,QAAQ,MAAM,UAAU,EAAE,GAAG;AAAA,EAC9F;AACA,SAAO;AACT;AAWA,IAAM,cAAc,CAAC,UACnB,KAAK,KAAK,OAAO,aAAa,SAAS,aAAa,IAAI,CAAC,IAAI;AAAA,EAC3D;AAAA,EACA,MAAM,QAAQ,SAAS,SAAS,aAAa,YAAY,aAAa;AACxE,CAAC;AASH,IAAM,aAAa,CAAC,UAAsH;AACxI,MAAI,UAAU,UAAW,QAAO;AAChC,SAAO,UAAU,WAAW,UAAU;AACxC;AAWA,IAAM,aAAa,CAAC,UAA2D;AAC7E,QAAM,MAAM,WAAW,KAAK;AAC5B,QAAM,SAAS,CAAC,UACd,MAAM,MAAM,MAAM,QAAQ,GAAG,EAAE,MA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c;AAAA,MAC5B,aAAa;AAAA,MACb,aAAa;AAAA,MACb,iBAAiB;AAAA,IACnB;AAAA,IACA,GAAI,YACF,YAAY,cAAc;AAAA,MACxB,iBAAiB,CAAC,UAAiB,MAAM,QAAQ,OAAO;AAAA,IAC1D;AAAA,IACF,WAAW;AAAA,MACT,GAAI,SAAS;AAAA,QACX,WAAW,CAAC,UAAiB,cAAc,IAAI,OAAO,CAAC,aAAa,CAAC;AAAA,QACrE,WAAW,CAAC,UAAiB,YAAY,KAAK;AAAA,MAChD;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV,GAAI,SAAS;AAAA,QACX,WAAW;AAAA,MACb;AAAA,IACF;AAAA,IACA,YAAY,OAAO,qBAAqB,GAAI,KAAK,sBAAsB;AAAA,EACzE;AACF;AAEO,IAAM,iBAAiB,CAC5B,MACA,WAEA,QAAQ,MAAM,eAAe,IAAI,IAC7B,MAAM,aAAa,MAAsB;AAAA,EACvC,eAAe;AACjB,CAA4B,IAC5B;","names":[]}
|
|
@@ -57,6 +57,21 @@ function useImageState(src, onError) {
|
|
|
57
57
|
useEffect(() => {
|
|
58
58
|
setImageError(false);
|
|
59
59
|
setImageLoading(!!src);
|
|
60
|
+
if (!src || typeof Image === "undefined") return void 0;
|
|
61
|
+
let current = true;
|
|
62
|
+
const probe = new Image();
|
|
63
|
+
probe.onload = () => {
|
|
64
|
+
if (current) setImageLoading(false);
|
|
65
|
+
};
|
|
66
|
+
probe.onerror = () => {
|
|
67
|
+
if (!current) return;
|
|
68
|
+
setImageError(true);
|
|
69
|
+
setImageLoading(false);
|
|
70
|
+
};
|
|
71
|
+
probe.src = src;
|
|
72
|
+
return () => {
|
|
73
|
+
current = false;
|
|
74
|
+
};
|
|
60
75
|
}, [src]);
|
|
61
76
|
const handleImageError = useCallback(
|
|
62
77
|
(event) => {
|
|
@@ -178,4 +193,4 @@ export {
|
|
|
178
193
|
Avatar,
|
|
179
194
|
AvatarGroup
|
|
180
195
|
};
|
|
181
|
-
//# sourceMappingURL=chunk-
|
|
196
|
+
//# sourceMappingURL=chunk-EXEBN5ZP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/data-display/Avatar/Avatar.tsx"],"sourcesContent":["import BrokenImage from '@mui/icons-material/BrokenImage';\nimport Person from '@mui/icons-material/Person';\nimport { styled } from '@mui/material/styles/index.js';\nimport React, { useCallback, useEffect, useState } from 'react';\n\nimport {\n AVATAR_DEFAULTS,\n contentTypeOf,\n pickAvatarContent,\n type AvatarContentPick,\n} from './Avatar.helpers';\nimport { GROUP_MAX, GROUP_OVERLAP, GROUP_HOVER, BORDER_WIDTH } from './Avatar.metrics';\nimport type { AvatarProps, ContentType } from './Avatar.types';\nimport { rem } from '../../../tokens/relative';\nimport { AvatarView, type AvatarViewProps } from './Avatar.view';\nimport { EN_US_UI_LABELS } from '../../../en-US.labels';\n\n/** The node behind the winning content slot; the pick itself is shared. */\nfunction resolveContent(args: {\n children?: React.ReactNode;\n fallback?: React.ReactNode;\n icon?: React.ReactNode;\n imageError: boolean;\n showFallbackOnError: boolean;\n}): { content: React.ReactNode; contentType: ContentType } {\n const { children, fallback, icon, imageError, showFallbackOnError } = args;\n const pick = pickAvatarContent({\n hasChildren: Boolean(children),\n hasFallback: Boolean(fallback),\n hasIcon: Boolean(icon),\n imageError,\n showFallbackOnError,\n });\n const NODES: Record<AvatarContentPick, React.ReactNode> = {\n children,\n fallback,\n icon,\n broken: <BrokenImage />,\n default: <Person />,\n };\n return { content: NODES[pick], contentType: contentTypeOf(pick) };\n}\n\n/** Fades the avatar in after `animationDelay`ms. */\nfunction useMountedFade(animationDelay: number): boolean {\n const [mounted, setMounted] = useState(false);\n useEffect(() => {\n const timer = window.setTimeout(() => setMounted(true), animationDelay);\n return () => window.clearTimeout(timer);\n }, [animationDelay]);\n return mounted;\n}\n\ninterface ImageState {\n imageError: boolean;\n imageLoading: boolean;\n handleImageError: React.ReactEventHandler;\n handleImageLoad: () => void;\n}\n\n/**\n * Tracks the image's load lifecycle. `imageLoading` starts true whenever there is\n * a `src` and clears on load/error. Two sources report it: the `<img>`'s own\n * events (wired via `slotProps.img` in the view, since load/error don't bubble to\n * the root), and a probe of the same src. The probe is needed because MUI's\n * Avatar runs its own probe and, once that one errors, stops rendering the\n * `<img>` — whose error event then never fires, leaving the avatar blank under\n * the spinner forever (FUT-4467). Whichever reports first wins.\n */\nfunction useImageState(src: string | undefined, onError?: React.ReactEventHandler): ImageState {\n const [imageError, setImageError] = useState(false);\n const [imageLoading, setImageLoading] = useState(!!src);\n\n useEffect(() => {\n setImageError(false);\n setImageLoading(!!src);\n if (!src || typeof Image === 'undefined') return undefined;\n let current = true;\n const probe = new Image();\n probe.onload = () => {\n if (current) setImageLoading(false);\n };\n probe.onerror = () => {\n if (!current) return;\n setImageError(true);\n setImageLoading(false);\n };\n probe.src = src;\n return () => {\n current = false;\n };\n }, [src]);\n\n const handleImageError = useCallback<React.ReactEventHandler>(\n (event) => {\n setImageError(true);\n setImageLoading(false);\n onError?.(event);\n },\n [onError],\n );\n\n const handleImageLoad = useCallback(() => setImageLoading(false), []);\n\n return { imageError, imageLoading, handleImageError, handleImageLoad };\n}\n\n/** Normalizes props (defaults + rest passthrough) and derives everything the view needs. */\nfunction useAvatarModel(raw: AvatarProps, ref: React.Ref<HTMLDivElement>): AvatarViewProps {\n const {\n variant,\n size,\n glow,\n pulse,\n status,\n fallback,\n icon,\n bordered,\n color,\n src,\n alt,\n children,\n loading,\n onError,\n onClick,\n interactive,\n showFallbackOnError,\n animationDelay,\n className,\n dataTestId,\n // React Native's spelling of the same id; it names the component on both\n // sides and must not reach the DOM as an attribute.\n testID,\n ...rest\n } = { ...AVATAR_DEFAULTS, ...raw };\n\n const mounted = useMountedFade(animationDelay);\n const { imageError, imageLoading, handleImageError, handleImageLoad } = useImageState(src, onError);\n const handleClick = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => onClick?.(event),\n [onClick],\n );\n const { content, contentType } = resolveContent({\n children,\n fallback,\n icon,\n imageError,\n showFallbackOnError,\n });\n\n return {\n mounted,\n variant,\n size,\n color,\n glow,\n pulse,\n bordered,\n showSpinner: loading || imageLoading,\n imageError,\n clickable: interactive || !!onClick,\n imgSrc: imageError ? undefined : src,\n alt,\n ariaLabel: (rest['aria-label'] as string) || alt || EN_US_UI_LABELS.avatar.name,\n content,\n contentType,\n className,\n dataTestId: testID ?? dataTestId,\n status,\n forwardedRef: ref,\n onClick: handleClick,\n handleImageError,\n handleImageLoad,\n rest,\n };\n}\n\nexport const Avatar = React.forwardRef<HTMLDivElement, AvatarProps>((props, ref) => (\n <AvatarView {...useAvatarModel(props, ref)} />\n));\n\nAvatar.displayName = 'Avatar';\n\nconst AvatarGroupContainer = styled('div')<{ overlap?: number }>(({ theme, overlap = GROUP_OVERLAP }) => ({\n display: 'flex',\n alignItems: 'center',\n '& > *': {\n marginLeft: rem(theme, -overlap),\n transition: 'all 0.3s ease',\n position: 'relative',\n border: `${rem(theme, BORDER_WIDTH)} solid ${theme.palette.background.paper}`,\n '&:hover': {\n zIndex: 100,\n transform: `scale(${GROUP_HOVER.scale}) translateY(${rem(theme, -GROUP_HOVER.lift)})`,\n },\n '&:first-of-type': {\n marginLeft: 0,\n },\n },\n}));\n\n// Export AvatarGroup for grouped avatars\nexport const AvatarGroup: React.FC<{\n children: React.ReactNode;\n max?: number;\n overlap?: number;\n className?: string;\n dataTestId?: string;\n}> = ({ children, max = GROUP_MAX, overlap = GROUP_OVERLAP, className, dataTestId }) => {\n const childrenArray = React.Children.toArray(children);\n const visibleChildren = max ? childrenArray.slice(0, max) : childrenArray;\n const remainingCount = childrenArray.length - visibleChildren.length;\n\n return (\n <AvatarGroupContainer overlap={overlap} className={className} data-testid={dataTestId}>\n {visibleChildren}\n {remainingCount > 0 && (\n <Avatar\n size={(visibleChildren[0] as React.ReactElement<AvatarProps>)?.props?.size || 'md'}\n color=\"neutral\"\n fallback={`+${remainingCount}`}\n bordered\n dataTestId={dataTestId ? `${data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AAsB,eAAa,YACxE;AAAA;AAAA,IACA,iBAAiB,KAChB;AAAA,MAAC;AAAA;AAAA,QACC,MAAO,gBAAgB,CAAC,GAAuC,OAAO,QAAQ;AAAA,QAC9E,OAAM;AAAA,QACN,UAAU,IAAI,cAAc;AAAA,QAC5B,UAAQ;AAAA,QACR,YAAY,aAAa,GAAG,UAAU,cAAc;AAAA;AAAA,IACtD;AAAA,KAEJ;AAEJ;AAEA,YAAY,cAAc;","names":[]}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-JYWF76Z5.js";
|
|
13
13
|
import {
|
|
14
14
|
Chip
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-L2ICH44N.js";
|
|
16
16
|
import {
|
|
17
17
|
Icon
|
|
18
18
|
} from "./chunk-YEKPQAOW.js";
|
|
@@ -139,4 +139,4 @@ export {
|
|
|
139
139
|
PendingSpinner,
|
|
140
140
|
LearnMore
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=chunk-
|
|
142
|
+
//# sourceMappingURL=chunk-F3UHWLTD.js.map
|
|
@@ -51,6 +51,7 @@ var CHIP_TRANSITION_MS = 200;
|
|
|
51
51
|
var CHIP_TRANSITION_EASING = "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
52
52
|
var SOFT_GROUND_ALPHA = 0.14;
|
|
53
53
|
var SOFT_HOVER_ALPHA = 0.22;
|
|
54
|
+
var SOFT_WARNING_LIGHT_DARKEN = 0.2;
|
|
54
55
|
var SOFT_FOCUS_RING = { width: 2, offset: 2 };
|
|
55
56
|
|
|
56
57
|
export {
|
|
@@ -69,6 +70,7 @@ export {
|
|
|
69
70
|
CHIP_TRANSITION_EASING,
|
|
70
71
|
SOFT_GROUND_ALPHA,
|
|
71
72
|
SOFT_HOVER_ALPHA,
|
|
73
|
+
SOFT_WARNING_LIGHT_DARKEN,
|
|
72
74
|
SOFT_FOCUS_RING
|
|
73
75
|
};
|
|
74
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-GZBLDPXY.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/data-display/Chip/Chip.metrics.ts"],"sourcesContent":["import type { ChipSize } from './Chip.base';\n\n/**\n * THE NUMBERS BOTH `Chip` RENDERERS DRAW WITH.\n *\n * Most of them are MUI's own `Chip` geometry rather than anything this package\n * writes — the 32px pill, the 13px label, the 5px/-6px icon tuck — because the\n * web half hands the drawing to `MuiChip` and the native half has to draw it.\n * Restated here once, read by both, so the two cannot disagree about a chip's\n * height. What THIS package adds (`Chip.styles.tsx`'s hover lift, its shadow\n * and its transition) is at the bottom, and the web derives its CSS from it.\n */\n\n/** MUI draws two chip sizes; ours are the house abbreviations for them. */\nexport type ChipMuiSize = 'small' | 'medium';\n\nexport const chipMuiSize = (size: ChipSize): ChipMuiSize =>\n size === 'xs' || size === 'sm' ? 'small' : 'medium';\n\nexport interface ChipSizeMetrics {\n height: number;\n /** The label's own side padding, filled and outlined (outlined is 1px tighter). */\n labelPadding: number;\n labelPaddingOutlined: number;\n /** The leading icon's box, and how far it tucks under the label. */\n iconSize: number;\n iconMarginLeft: number;\n iconMarginLeftOutlined: number;\n iconMarginRight: number;\n /** The avatar's round box and the type inside it. */\n avatarSize: number;\n avatarFontSize: number;\n avatarMarginLeft: number;\n avatarMarginLeftOutlined: number;\n avatarMarginRight: number;\n /** The delete glyph's box and its own tuck. */\n deleteSize: number;\n deleteMarginLeft: number;\n deleteMarginRight: number;\n deleteMarginRightOutlined: number;\n}\n\nexport const CHIP_SIZES: Record<ChipMuiSize, ChipSizeMetrics> = {\n medium: {\n height: 32,\n labelPadding: 12,\n labelPaddingOutlined: 11,\n iconSize: 24,\n iconMarginLeft: 5,\n iconMarginLeftOutlined: 4,\n iconMarginRight: -6,\n avatarSize: 24,\n avatarFontSize: 12,\n avatarMarginLeft: 5,\n avatarMarginLeftOutlined: 4,\n avatarMarginRight: -6,\n deleteSize: 22,\n deleteMarginLeft: -6,\n deleteMarginRight: 5,\n deleteMarginRightOutlined: 5,\n },\n small: {\n height: 24,\n labelPadding: 8,\n labelPaddingOutlined: 7,\n iconSize: 18,\n iconMarginLeft: 4,\n iconMarginLeftOutlined: 2,\n iconMarginRight: -4,\n avatarSize: 18,\n avatarFontSize: 10,\n avatarMarginLeft: 4,\n avatarMarginLeftOutlined: 2,\n avatarMarginRight: -4,\n deleteSize: 16,\n deleteMarginLeft: -4,\n deleteMarginRight: 4,\n deleteMarginRightOutlined: 3,\n },\n};\n\n/** MUI's `borderRadius: 32 / 2` — a pill at either height, since the box clamps it. */\nexport const CHIP_RADIUS = 16;\n/** The label's type, in px. MUI sets it on the root and the small size keeps it. */\nexport const CHIP_FONT_SIZE = 13;\n/** MUI's `palette.action.disabledOpacity`. */\nexport const CHIP_DISABLED_OPACITY = 0.38;\n/** An outlined chip's hairline: the hue at 0.7, or the grey ramp for `neutral`. */\nexport const OUTLINED_BORDER_ALPHA = 0.7;\n/** The delete glyph over an unaccented chip, and over a coloured one. */\nexport const DELETE_ICON_ALPHA = 0.26;\nexport const DELETE_ICON_ON_COLOR_ALPHA = 0.7;\n/** MUI's `action.hoverOpacity`, the wash a clickable outlined chip takes. */\nexport const OUTLINED_HOVER_ALPHA = 0.04;\n\n/* ── What this package adds on top of MUI's chip ──────────────────────────── */\n\n/** The lift a clickable chip takes on hover, and the shadow under it. */\nexport const HOVER_LIFT_PX = 1;\nexport const HOVER_SHADOW = { offsetY: 4, blur: 12, alphaLight: 0.15, alphaDark: 0.3 } as const;\nexport const CHIP_TRANSITION_MS = 200;\nexport const CHIP_TRANSITION_EASING = 'cubic-bezier(0.4, 0, 0.2, 1)';\n\n/** A soft chip's ground: the colour at this alpha over the page. */\nexport const SOFT_GROUND_ALPHA = 0.14;\n/** A soft chip's hover ground. */\nexport const SOFT_HOVER_ALPHA = 0.22;\n/** A soft chip's keyboard-focus ring, in design px (read through `rem`). */\nexport const SOFT_FOCUS_RING = { width: 2, offset: 2 } as const;\n"],"mappings":";AAgBO,IAAM,cAAc,CAAC,SAC1B,SAAS,QAAQ,SAAS,OAAO,UAAU;AAyBtC,IAAM,aAAmD;AAAA,EAC9D,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,cAAc;AAAA,IACd,sBAAsB;AAAA,IACtB,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,IACxB,iBAAiB;AAAA,IACjB,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,kBAAkB;AAAA,IAClB,0BAA0B;AAAA,IAC1B,mBAAmB;AAAA,IACnB,YAAY;AAAA,IACZ,kBAAkB;AAAA,IAClB,mBAAmB;AAAA,IACnB,2BAA2B;AAAA,EAC7B;AAAA,EACA,OAAO;AAAA,IACL,QAAQ;AAAA,IACR,cAAc;AAAA,IACd,sBAAsB;AAAA,IACtB,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,IACxB,iBAAiB;AAAA,IACjB,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,kBAAkB;AAAA,IAClB,0BAA0B;AAAA,IAC1B,mBAAmB;AAAA,IACnB,YAAY;AAAA,IACZ,kBAAkB;AAAA,IAClB,mBAAmB;AAAA,IACnB,2BAA2B;AAAA,EAC7B;AACF;AAGO,IAAM,cAAc;AAEpB,IAAM,iBAAiB;AAEvB,IAAM,wBAAwB;AAE9B,IAAM,wBAAwB;AAE9B,IAAM,oBAAoB;AAC1B,IAAM,6BAA6B;AAEnC,IAAM,uBAAuB;AAK7B,IAAM,gBAAgB;AACtB,IAAM,eAAe,EAAE,SAAS,GAAG,MAAM,IAAI,YAAY,MAAM,WAAW,IAAI;AAC9E,IAAM,qBAAqB;AAC3B,IAAM,yBAAyB;AAG/B,IAAM,oBAAoB;AAE1B,IAAM,mBAAmB;
|
|
1
|
+
{"version":3,"sources":["../src/components/data-display/Chip/Chip.metrics.ts"],"sourcesContent":["import type { ChipSize } from './Chip.base';\n\n/**\n * THE NUMBERS BOTH `Chip` RENDERERS DRAW WITH.\n *\n * Most of them are MUI's own `Chip` geometry rather than anything this package\n * writes — the 32px pill, the 13px label, the 5px/-6px icon tuck — because the\n * web half hands the drawing to `MuiChip` and the native half has to draw it.\n * Restated here once, read by both, so the two cannot disagree about a chip's\n * height. What THIS package adds (`Chip.styles.tsx`'s hover lift, its shadow\n * and its transition) is at the bottom, and the web derives its CSS from it.\n */\n\n/** MUI draws two chip sizes; ours are the house abbreviations for them. */\nexport type ChipMuiSize = 'small' | 'medium';\n\nexport const chipMuiSize = (size: ChipSize): ChipMuiSize =>\n size === 'xs' || size === 'sm' ? 'small' : 'medium';\n\nexport interface ChipSizeMetrics {\n height: number;\n /** The label's own side padding, filled and outlined (outlined is 1px tighter). */\n labelPadding: number;\n labelPaddingOutlined: number;\n /** The leading icon's box, and how far it tucks under the label. */\n iconSize: number;\n iconMarginLeft: number;\n iconMarginLeftOutlined: number;\n iconMarginRight: number;\n /** The avatar's round box and the type inside it. */\n avatarSize: number;\n avatarFontSize: number;\n avatarMarginLeft: number;\n avatarMarginLeftOutlined: number;\n avatarMarginRight: number;\n /** The delete glyph's box and its own tuck. */\n deleteSize: number;\n deleteMarginLeft: number;\n deleteMarginRight: number;\n deleteMarginRightOutlined: number;\n}\n\nexport const CHIP_SIZES: Record<ChipMuiSize, ChipSizeMetrics> = {\n medium: {\n height: 32,\n labelPadding: 12,\n labelPaddingOutlined: 11,\n iconSize: 24,\n iconMarginLeft: 5,\n iconMarginLeftOutlined: 4,\n iconMarginRight: -6,\n avatarSize: 24,\n avatarFontSize: 12,\n avatarMarginLeft: 5,\n avatarMarginLeftOutlined: 4,\n avatarMarginRight: -6,\n deleteSize: 22,\n deleteMarginLeft: -6,\n deleteMarginRight: 5,\n deleteMarginRightOutlined: 5,\n },\n small: {\n height: 24,\n labelPadding: 8,\n labelPaddingOutlined: 7,\n iconSize: 18,\n iconMarginLeft: 4,\n iconMarginLeftOutlined: 2,\n iconMarginRight: -4,\n avatarSize: 18,\n avatarFontSize: 10,\n avatarMarginLeft: 4,\n avatarMarginLeftOutlined: 2,\n avatarMarginRight: -4,\n deleteSize: 16,\n deleteMarginLeft: -4,\n deleteMarginRight: 4,\n deleteMarginRightOutlined: 3,\n },\n};\n\n/** MUI's `borderRadius: 32 / 2` — a pill at either height, since the box clamps it. */\nexport const CHIP_RADIUS = 16;\n/** The label's type, in px. MUI sets it on the root and the small size keeps it. */\nexport const CHIP_FONT_SIZE = 13;\n/** MUI's `palette.action.disabledOpacity`. */\nexport const CHIP_DISABLED_OPACITY = 0.38;\n/** An outlined chip's hairline: the hue at 0.7, or the grey ramp for `neutral`. */\nexport const OUTLINED_BORDER_ALPHA = 0.7;\n/** The delete glyph over an unaccented chip, and over a coloured one. */\nexport const DELETE_ICON_ALPHA = 0.26;\nexport const DELETE_ICON_ON_COLOR_ALPHA = 0.7;\n/** MUI's `action.hoverOpacity`, the wash a clickable outlined chip takes. */\nexport const OUTLINED_HOVER_ALPHA = 0.04;\n\n/* ── What this package adds on top of MUI's chip ──────────────────────────── */\n\n/** The lift a clickable chip takes on hover, and the shadow under it. */\nexport const HOVER_LIFT_PX = 1;\nexport const HOVER_SHADOW = { offsetY: 4, blur: 12, alphaLight: 0.15, alphaDark: 0.3 } as const;\nexport const CHIP_TRANSITION_MS = 200;\nexport const CHIP_TRANSITION_EASING = 'cubic-bezier(0.4, 0, 0.2, 1)';\n\n/** A soft chip's ground: the colour at this alpha over the page. */\nexport const SOFT_GROUND_ALPHA = 0.14;\n/** A soft chip's hover ground. */\nexport const SOFT_HOVER_ALPHA = 0.22;\n/**\n * How much a light-mode soft WARNING ink darkens its `dark` step (FUT-4464). With\n * the default theme, `warning.dark` (#e65100) on its 14% tint is 3.25:1; darkened\n * by 0.2 it is 4.77:1. The other five colours clear 4.5:1 on `dark` as it is.\n */\nexport const SOFT_WARNING_LIGHT_DARKEN = 0.2;\n/** A soft chip's keyboard-focus ring, in design px (read through `rem`). */\nexport const SOFT_FOCUS_RING = { width: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+1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
partTestId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F3UHWLTD.js";
|
|
4
4
|
import {
|
|
5
5
|
SETTING_CARD_OPEN_ATTR,
|
|
6
6
|
withCallerSx
|
|
@@ -79,4 +79,4 @@ export {
|
|
|
79
79
|
settingGridStyles,
|
|
80
80
|
SettingGrid
|
|
81
81
|
};
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-IAPFZJ6I.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-DQ22UKMZ.js";
|
|
4
4
|
import {
|
|
5
5
|
Avatar
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EXEBN5ZP.js";
|
|
7
7
|
import {
|
|
8
8
|
Card
|
|
9
9
|
} from "./chunk-4XBAEKQQ.js";
|
|
@@ -80,4 +80,4 @@ export {
|
|
|
80
80
|
UserAvatar,
|
|
81
81
|
UserMenu
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=chunk-
|
|
83
|
+
//# sourceMappingURL=chunk-JJYECKEL.js.map
|