@12-apps/ui 6.77.1 → 6.77.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/CardKit/CardKebab.js +2 -2
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +2 -2
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +2 -2
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +17 -17
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +23 -23
- package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +2 -2
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +3 -3
- package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-card-body.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-columns.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-empty.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-export.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +14 -14
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +7 -7
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +2 -2
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +4 -4
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +2 -2
- package/dist/_internal/components/feedback/NotificationStatusNotice/NotificationStatusNotice.js +2 -2
- package/dist/_internal/components/feedback/index.js +3 -3
- package/dist/_internal/components/form/Button/Button.js +1 -1
- package/dist/_internal/components/form/index.js +1 -1
- package/dist/_internal/components/form/total-form/SubmitButton.js +2 -2
- package/dist/_internal/components/index.js +11 -11
- package/dist/_internal/components/layout/SettingCard/SettingCard.js +4 -4
- package/dist/_internal/components/layout/SettingCard/SettingCard.parts.js +2 -2
- package/dist/_internal/components/layout/SettingCard/SettingCard.summary.js +3 -3
- package/dist/_internal/components/layout/SettingCard/SettingGrid.js +3 -3
- package/dist/_internal/components/layout/SettingCard/SettingGroup.js +5 -5
- package/dist/_internal/components/layout/SettingCard/SettingSwitch.js +4 -4
- package/dist/_internal/components/layout/SettingCard/SettingToggle.js +5 -5
- package/dist/_internal/components/layout/index.js +8 -8
- package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +2 -2
- package/dist/_internal/components/navigation/index.js +2 -2
- package/dist/_internal/social-login-button/social-login-button.js +2 -2
- package/dist/_internal/user-avatar/user-avatar.js +2 -2
- package/dist/{chunk-BF3SGOWT.js → chunk-2ONUSNPZ.js} +2 -2
- package/dist/{chunk-ULK4AGG4.js → chunk-3EIRRLCQ.js} +2 -2
- package/dist/{chunk-TVXUOJAL.js → chunk-4NG3LTRX.js} +2 -2
- package/dist/{chunk-XZE5FIRB.js → chunk-5IIHAYFF.js} +2 -2
- package/dist/{chunk-72L5C74V.js → chunk-5M7T36AT.js} +3 -3
- package/dist/{chunk-J32XJALK.js → chunk-5WUXJDFP.js} +2 -2
- package/dist/{chunk-3MQZBBUW.js → chunk-7FFY4LJY.js} +2 -2
- package/dist/{chunk-MKBIIYJM.js → chunk-7LMR2H7O.js} +4 -4
- package/dist/{chunk-H7QTDKA6.js → chunk-BGSUSSAV.js} +2 -2
- package/dist/{chunk-FR2RJXHS.js → chunk-C2NNJMVY.js} +3 -3
- package/dist/{chunk-NIZUFPV3.js → chunk-CW5Z67NA.js} +2 -2
- package/dist/{chunk-BEHM2VLH.js → chunk-FVNY5BNV.js} +2 -2
- package/dist/{chunk-7KZEQJPQ.js → chunk-GG7IOJAG.js} +3 -3
- package/dist/{chunk-J5QNJERV.js → chunk-HHFVDOA7.js} +3 -3
- package/dist/{chunk-HVGQH54G.js → chunk-HMWSMRLM.js} +2 -2
- package/dist/{chunk-MA6ENJDP.js → chunk-HXCUKZOB.js} +3 -3
- package/dist/{chunk-NIENIKZ5.js → chunk-NRADSKGH.js} +2 -2
- package/dist/{chunk-725H45MT.js → chunk-NZXRPWPW.js} +4 -4
- package/dist/{chunk-LBEZ7A3F.js → chunk-OK3OJGJY.js} +3 -3
- package/dist/{chunk-WJEJ65TF.js → chunk-OY437NRJ.js} +2 -2
- package/dist/{chunk-Y2CCXB7R.js → chunk-QITQFCFY.js} +2 -2
- package/dist/{chunk-P4LR2GLN.js → chunk-R2ODLE6G.js} +2 -2
- package/dist/{chunk-VQSBZPKO.js → chunk-RVZMKGWQ.js} +2 -2
- package/dist/{chunk-QWSYHENP.js → chunk-SKIAWOUC.js} +4 -4
- package/dist/{chunk-3FDSXSEP.js → chunk-TDWA2XFJ.js} +2 -2
- package/dist/{chunk-VWVA74JY.js → chunk-UXQVJXQ3.js} +2 -2
- package/dist/{chunk-BEYLI32I.js → chunk-WOUJSKQB.js} +3 -3
- package/dist/{chunk-NDQJDA7O.js → chunk-WULEQKU7.js} +2 -2
- package/dist/{chunk-4QGPRORO.js → chunk-X2GWR75Q.js} +2 -2
- package/dist/{chunk-NKBCUR4V.js → chunk-X3DN2BE3.js} +2 -2
- package/dist/{chunk-TRYYYWV3.js → chunk-Y2CHJLWD.js} +6 -6
- package/dist/{chunk-HDXUQKJ5.js → chunk-YNZUYZ2O.js} +2 -2
- package/dist/{chunk-364NH2NY.js → chunk-YOXYSAUI.js} +20 -11
- package/dist/chunk-YOXYSAUI.js.map +1 -0
- package/dist/{chunk-JA3WJPXH.js → chunk-ZAZOBTVS.js} +2 -2
- package/dist/{chunk-SZSS5KKX.js → chunk-ZCXQ4ZB6.js} +2 -2
- package/dist/{chunk-P7VAMJFJ.js → chunk-ZE4HF3KC.js} +3 -3
- package/dist/data-display/CardKit.js +3 -3
- package/dist/data-display/DataViews.js +23 -23
- package/dist/feedback/ConfirmAction.js +2 -2
- package/dist/feedback/NotificationStatusNotice.js +2 -2
- package/dist/form/Button.js +1 -1
- package/dist/form/total-form.js +2 -2
- package/dist/layout/SettingCard.js +8 -8
- package/dist/native/chunks/{chunk-2MFMON74.js → chunk-EZHCNYQO.js} +67 -33
- package/dist/native/chunks/chunk-EZHCNYQO.js.map +1 -0
- package/dist/native/chunks/{chunk-H22XVP5O.js → chunk-TZPNJ4AU.js} +2 -2
- package/dist/native/data-display/EmptyState.js +2 -2
- package/dist/native/data-display/ErrorState.js +1 -1
- package/dist/native/data-display/FleetMap.js +2 -2
- package/dist/native/form/Button.js +1 -1
- package/dist/navigation/AppHeader.js +2 -2
- package/dist/social-login-button.js +2 -2
- package/dist/types/components/form/Button/Button.d.ts.map +1 -1
- package/dist/types/components/form/Button/Button.native.loading.d.ts +36 -0
- package/dist/types/components/form/Button/Button.native.loading.d.ts.map +1 -0
- package/dist/types-native/components/form/Button/Button.native.d.ts.map +1 -1
- package/dist/types-native/components/form/Button/Button.native.loading.d.ts +36 -0
- package/dist/types-native/components/form/Button/Button.native.loading.d.ts.map +1 -0
- package/dist/user-avatar.js +2 -2
- package/package.json +1 -1
- package/src/components/form/Button/Button.md +4 -3
- package/src/components/form/Button/Button.native.loading.tsx +89 -0
- package/src/components/form/Button/Button.native.tsx +14 -24
- package/src/components/form/Button/Button.tsx +47 -16
- package/dist/chunk-364NH2NY.js.map +0 -1
- package/dist/native/chunks/chunk-2MFMON74.js.map +0 -1
- /package/dist/{chunk-BF3SGOWT.js.map → chunk-2ONUSNPZ.js.map} +0 -0
- /package/dist/{chunk-ULK4AGG4.js.map → chunk-3EIRRLCQ.js.map} +0 -0
- /package/dist/{chunk-TVXUOJAL.js.map → chunk-4NG3LTRX.js.map} +0 -0
- /package/dist/{chunk-XZE5FIRB.js.map → chunk-5IIHAYFF.js.map} +0 -0
- /package/dist/{chunk-72L5C74V.js.map → chunk-5M7T36AT.js.map} +0 -0
- /package/dist/{chunk-J32XJALK.js.map → chunk-5WUXJDFP.js.map} +0 -0
- /package/dist/{chunk-3MQZBBUW.js.map → chunk-7FFY4LJY.js.map} +0 -0
- /package/dist/{chunk-MKBIIYJM.js.map → chunk-7LMR2H7O.js.map} +0 -0
- /package/dist/{chunk-H7QTDKA6.js.map → chunk-BGSUSSAV.js.map} +0 -0
- /package/dist/{chunk-FR2RJXHS.js.map → chunk-C2NNJMVY.js.map} +0 -0
- /package/dist/{chunk-NIZUFPV3.js.map → chunk-CW5Z67NA.js.map} +0 -0
- /package/dist/{chunk-BEHM2VLH.js.map → chunk-FVNY5BNV.js.map} +0 -0
- /package/dist/{chunk-7KZEQJPQ.js.map → chunk-GG7IOJAG.js.map} +0 -0
- /package/dist/{chunk-J5QNJERV.js.map → chunk-HHFVDOA7.js.map} +0 -0
- /package/dist/{chunk-HVGQH54G.js.map → chunk-HMWSMRLM.js.map} +0 -0
- /package/dist/{chunk-MA6ENJDP.js.map → chunk-HXCUKZOB.js.map} +0 -0
- /package/dist/{chunk-NIENIKZ5.js.map → chunk-NRADSKGH.js.map} +0 -0
- /package/dist/{chunk-725H45MT.js.map → chunk-NZXRPWPW.js.map} +0 -0
- /package/dist/{chunk-LBEZ7A3F.js.map → chunk-OK3OJGJY.js.map} +0 -0
- /package/dist/{chunk-WJEJ65TF.js.map → chunk-OY437NRJ.js.map} +0 -0
- /package/dist/{chunk-Y2CCXB7R.js.map → chunk-QITQFCFY.js.map} +0 -0
- /package/dist/{chunk-P4LR2GLN.js.map → chunk-R2ODLE6G.js.map} +0 -0
- /package/dist/{chunk-VQSBZPKO.js.map → chunk-RVZMKGWQ.js.map} +0 -0
- /package/dist/{chunk-QWSYHENP.js.map → chunk-SKIAWOUC.js.map} +0 -0
- /package/dist/{chunk-3FDSXSEP.js.map → chunk-TDWA2XFJ.js.map} +0 -0
- /package/dist/{chunk-VWVA74JY.js.map → chunk-UXQVJXQ3.js.map} +0 -0
- /package/dist/{chunk-BEYLI32I.js.map → chunk-WOUJSKQB.js.map} +0 -0
- /package/dist/{chunk-NDQJDA7O.js.map → chunk-WULEQKU7.js.map} +0 -0
- /package/dist/{chunk-4QGPRORO.js.map → chunk-X2GWR75Q.js.map} +0 -0
- /package/dist/{chunk-NKBCUR4V.js.map → chunk-X3DN2BE3.js.map} +0 -0
- /package/dist/{chunk-TRYYYWV3.js.map → chunk-Y2CHJLWD.js.map} +0 -0
- /package/dist/{chunk-HDXUQKJ5.js.map → chunk-YNZUYZ2O.js.map} +0 -0
- /package/dist/{chunk-JA3WJPXH.js.map → chunk-ZAZOBTVS.js.map} +0 -0
- /package/dist/{chunk-SZSS5KKX.js.map → chunk-ZCXQ4ZB6.js.map} +0 -0
- /package/dist/{chunk-P7VAMJFJ.js.map → chunk-ZE4HF3KC.js.map} +0 -0
- /package/dist/native/chunks/{chunk-H22XVP5O.js.map → chunk-TZPNJ4AU.js.map} +0 -0
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "../chunk-MBMZNSBP.js";
|
|
4
4
|
import {
|
|
5
5
|
DataViewsTableBase
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-7LMR2H7O.js";
|
|
7
|
+
import "../chunk-UXQVJXQ3.js";
|
|
8
8
|
import {
|
|
9
9
|
DataViewsGrid
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-HXCUKZOB.js";
|
|
11
11
|
import {
|
|
12
12
|
BaseListCard
|
|
13
13
|
} from "../chunk-CSD6SWBZ.js";
|
|
@@ -23,17 +23,17 @@ import {
|
|
|
23
23
|
DropIndicator,
|
|
24
24
|
useDragItem
|
|
25
25
|
} from "../chunk-K4EKTMTC.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-Y2CHJLWD.js";
|
|
27
|
+
import "../chunk-ZE4HF3KC.js";
|
|
28
28
|
import {
|
|
29
29
|
DataViewsBoard
|
|
30
30
|
} from "../chunk-7TCOYCD7.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-ZCXQ4ZB6.js";
|
|
32
32
|
import "../chunk-CAX3NFFE.js";
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-QITQFCFY.js";
|
|
34
|
+
import "../chunk-FVNY5BNV.js";
|
|
35
35
|
import "../chunk-QLJU7UUI.js";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-ZAZOBTVS.js";
|
|
37
37
|
import "../chunk-NPSARV2I.js";
|
|
38
38
|
import "../chunk-IWJTLCTF.js";
|
|
39
39
|
import "../chunk-X3AFXHY5.js";
|
|
@@ -50,33 +50,33 @@ import "../chunk-FJ3UZ4RC.js";
|
|
|
50
50
|
import "../chunk-7D7CJRL7.js";
|
|
51
51
|
import "../chunk-GCZJH4XL.js";
|
|
52
52
|
import "../chunk-CBOB5AV6.js";
|
|
53
|
-
import "../chunk-
|
|
54
|
-
import "../chunk-
|
|
55
|
-
import "../chunk-
|
|
53
|
+
import "../chunk-GG7IOJAG.js";
|
|
54
|
+
import "../chunk-2ONUSNPZ.js";
|
|
55
|
+
import "../chunk-OK3OJGJY.js";
|
|
56
56
|
import "../chunk-5M4TYFR3.js";
|
|
57
|
-
import "../chunk-
|
|
58
|
-
import "../chunk-
|
|
59
|
-
import "../chunk-
|
|
57
|
+
import "../chunk-NRADSKGH.js";
|
|
58
|
+
import "../chunk-NZXRPWPW.js";
|
|
59
|
+
import "../chunk-5M7T36AT.js";
|
|
60
60
|
import "../chunk-WSAUWJFO.js";
|
|
61
|
-
import "../chunk-
|
|
61
|
+
import "../chunk-4NG3LTRX.js";
|
|
62
62
|
import "../chunk-YEGZIYVM.js";
|
|
63
63
|
import "../chunk-YLGY3D52.js";
|
|
64
64
|
import "../chunk-4IE66GY2.js";
|
|
65
65
|
import "../chunk-5YDS6HO3.js";
|
|
66
|
-
import "../chunk-
|
|
67
|
-
import "../chunk-
|
|
66
|
+
import "../chunk-OY437NRJ.js";
|
|
67
|
+
import "../chunk-BGSUSSAV.js";
|
|
68
68
|
import "../chunk-G6EJLEVV.js";
|
|
69
69
|
import "../chunk-B2JSUFDX.js";
|
|
70
70
|
import "../chunk-DZEC6RFM.js";
|
|
71
|
-
import "../chunk-
|
|
72
|
-
import "../chunk-
|
|
71
|
+
import "../chunk-HHFVDOA7.js";
|
|
72
|
+
import "../chunk-5WUXJDFP.js";
|
|
73
73
|
import "../chunk-YGQX7BNI.js";
|
|
74
74
|
import {
|
|
75
75
|
DataViewsScopeTabs,
|
|
76
76
|
assertNoScopePillOverlap,
|
|
77
77
|
resolveScope
|
|
78
78
|
} from "../chunk-PL2AB5HJ.js";
|
|
79
|
-
import "../chunk-
|
|
79
|
+
import "../chunk-5IIHAYFF.js";
|
|
80
80
|
import "../chunk-IMLIIW77.js";
|
|
81
81
|
import "../chunk-LLZWB32X.js";
|
|
82
82
|
import "../chunk-U5FOJBLG.js";
|
|
@@ -167,7 +167,7 @@ import "../chunk-KLJYIS5L.js";
|
|
|
167
167
|
import "../chunk-C3UKR3NT.js";
|
|
168
168
|
import "../chunk-D6KL74KI.js";
|
|
169
169
|
import "../chunk-XCBQXSTR.js";
|
|
170
|
-
import "../chunk-
|
|
170
|
+
import "../chunk-WULEQKU7.js";
|
|
171
171
|
import "../chunk-QBH36OBQ.js";
|
|
172
172
|
import "../chunk-K44FSPU7.js";
|
|
173
173
|
import "../chunk-LTLOZQPP.js";
|
|
@@ -217,7 +217,7 @@ import "../chunk-FKUYRQSP.js";
|
|
|
217
217
|
import "../chunk-PLB6WWXW.js";
|
|
218
218
|
import "../chunk-HDBP55R3.js";
|
|
219
219
|
import "../chunk-BA4RHQ3B.js";
|
|
220
|
-
import "../chunk-
|
|
220
|
+
import "../chunk-YOXYSAUI.js";
|
|
221
221
|
import "../chunk-PPEHBI5O.js";
|
|
222
222
|
import "../chunk-G2FUZALJ.js";
|
|
223
223
|
import "../chunk-TAMIZE4Q.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-XCBQXSTR.js";
|
|
2
2
|
import {
|
|
3
3
|
createConfirmButton
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-WULEQKU7.js";
|
|
5
5
|
import {
|
|
6
6
|
ConfirmAction
|
|
7
7
|
} from "../chunk-QBH36OBQ.js";
|
|
@@ -20,7 +20,7 @@ import "../chunk-2IBFEHIX.js";
|
|
|
20
20
|
import "../chunk-RZCXYKY4.js";
|
|
21
21
|
import "../chunk-BGTG7G54.js";
|
|
22
22
|
import "../chunk-BA4RHQ3B.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-YOXYSAUI.js";
|
|
24
24
|
import "../chunk-PPEHBI5O.js";
|
|
25
25
|
import "../chunk-G2FUZALJ.js";
|
|
26
26
|
import "../chunk-TAMIZE4Q.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-JQRKXMSH.js";
|
|
2
2
|
import {
|
|
3
3
|
NotificationStatusNotice
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-YNZUYZ2O.js";
|
|
5
5
|
import "../chunk-55FFONIV.js";
|
|
6
6
|
import {
|
|
7
7
|
detectNotificationBrowser,
|
|
@@ -13,7 +13,7 @@ import "../chunk-QXUXO22M.js";
|
|
|
13
13
|
import "../chunk-7HZ36QDH.js";
|
|
14
14
|
import "../chunk-L7VH6IMR.js";
|
|
15
15
|
import "../chunk-5ZY3IIIG.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-YOXYSAUI.js";
|
|
17
17
|
import "../chunk-PPEHBI5O.js";
|
|
18
18
|
import "../chunk-G2FUZALJ.js";
|
|
19
19
|
import "../chunk-TAMIZE4Q.js";
|
package/dist/form/Button.js
CHANGED
package/dist/form/total-form.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SubmitButton
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-7FFY4LJY.js";
|
|
4
4
|
import {
|
|
5
5
|
FormErrorSnackbar
|
|
6
6
|
} from "../chunk-EERUSI52.js";
|
|
@@ -67,7 +67,7 @@ import "../chunk-LZRVUOMU.js";
|
|
|
67
67
|
import "../chunk-EEB66IVH.js";
|
|
68
68
|
import "../chunk-RTSK5OZT.js";
|
|
69
69
|
import "../chunk-BA4RHQ3B.js";
|
|
70
|
-
import "../chunk-
|
|
70
|
+
import "../chunk-YOXYSAUI.js";
|
|
71
71
|
import "../chunk-PPEHBI5O.js";
|
|
72
72
|
import "../chunk-G2FUZALJ.js";
|
|
73
73
|
import "../chunk-TAMIZE4Q.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "../chunk-QGUNUXTT.js";
|
|
2
2
|
import {
|
|
3
3
|
SettingToggle
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-HMWSMRLM.js";
|
|
5
5
|
import {
|
|
6
6
|
SettingGroup
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-WOUJSKQB.js";
|
|
8
|
+
import "../chunk-C2NNJMVY.js";
|
|
9
9
|
import "../chunk-XJQNSMGA.js";
|
|
10
10
|
import {
|
|
11
11
|
SETTING_GRID_CONTAINER,
|
|
12
12
|
SettingGrid
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-CW5Z67NA.js";
|
|
14
14
|
import {
|
|
15
15
|
SettingCard
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-SKIAWOUC.js";
|
|
17
17
|
import "../chunk-SALQ65SM.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-X2GWR75Q.js";
|
|
19
|
+
import "../chunk-3EIRRLCQ.js";
|
|
20
20
|
import "../chunk-IQWPVPV5.js";
|
|
21
21
|
import "../chunk-BFRVMCQM.js";
|
|
22
22
|
import "../chunk-RN7UJI7S.js";
|
|
@@ -49,7 +49,7 @@ import "../chunk-Q3HYEAVQ.js";
|
|
|
49
49
|
import "../chunk-IBOFASAZ.js";
|
|
50
50
|
import "../chunk-HDBP55R3.js";
|
|
51
51
|
import "../chunk-BA4RHQ3B.js";
|
|
52
|
-
import "../chunk-
|
|
52
|
+
import "../chunk-YOXYSAUI.js";
|
|
53
53
|
import "../chunk-PPEHBI5O.js";
|
|
54
54
|
import "../chunk-G2FUZALJ.js";
|
|
55
55
|
import "../chunk-TAMIZE4Q.js";
|
|
@@ -25,15 +25,14 @@ import {
|
|
|
25
25
|
} from "./chunk-DNTO2D5M.js";
|
|
26
26
|
|
|
27
27
|
// src/components/form/Button/Button.native.tsx
|
|
28
|
-
import * as
|
|
28
|
+
import * as React2 from "react";
|
|
29
29
|
import {
|
|
30
|
-
ActivityIndicator,
|
|
31
30
|
Animated,
|
|
32
31
|
Easing,
|
|
33
|
-
Platform,
|
|
32
|
+
Platform as Platform2,
|
|
34
33
|
Pressable,
|
|
35
|
-
StyleSheet,
|
|
36
|
-
View
|
|
34
|
+
StyleSheet as StyleSheet2,
|
|
35
|
+
View as View2
|
|
37
36
|
} from "react-native";
|
|
38
37
|
|
|
39
38
|
// src/components/form/Button/Button.helpers.ts
|
|
@@ -102,8 +101,52 @@ function gradientStops(theme, color, palette) {
|
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
103
|
|
|
104
|
+
// src/components/form/Button/Button.native.loading.tsx
|
|
105
|
+
import * as React from "react";
|
|
106
|
+
import { ActivityIndicator, Platform, StyleSheet, View } from "react-native";
|
|
107
|
+
import { jsx } from "react/jsx-runtime";
|
|
108
|
+
function Spinner({ color, testID }) {
|
|
109
|
+
return /* @__PURE__ */ jsx(View, { style: styles.spinner, children: /* @__PURE__ */ jsx(
|
|
110
|
+
ActivityIndicator,
|
|
111
|
+
{
|
|
112
|
+
size: Platform.OS === "ios" ? "small" : BUTTON_SPINNER_SIZE,
|
|
113
|
+
color,
|
|
114
|
+
testID,
|
|
115
|
+
accessibilityLabel: "loading"
|
|
116
|
+
}
|
|
117
|
+
) });
|
|
118
|
+
}
|
|
119
|
+
var loadingName = (loading, children) => loading ? textOf(children) : void 0;
|
|
120
|
+
function textOf(children) {
|
|
121
|
+
const parts = React.Children.toArray(children);
|
|
122
|
+
const textual = parts.every((part) => typeof part === "string" || typeof part === "number");
|
|
123
|
+
return textual && parts.length > 0 ? parts.join("") : void 0;
|
|
124
|
+
}
|
|
125
|
+
var hiddenWhile = (loading) => loading ? styles.hidden : null;
|
|
126
|
+
function Label({
|
|
127
|
+
loading,
|
|
128
|
+
label,
|
|
129
|
+
testID,
|
|
130
|
+
children
|
|
131
|
+
}) {
|
|
132
|
+
const text = renderTextChildren(children, label, 1);
|
|
133
|
+
return loading ? /* @__PURE__ */ jsx(View, { style: styles.hidden, testID, children: text }) : text;
|
|
134
|
+
}
|
|
135
|
+
var styles = StyleSheet.create({
|
|
136
|
+
// The label and icon under the spinner: laid out, so the width holds, but unseen.
|
|
137
|
+
hidden: {
|
|
138
|
+
opacity: 0
|
|
139
|
+
},
|
|
140
|
+
spinner: {
|
|
141
|
+
...StyleSheet.absoluteFillObject,
|
|
142
|
+
pointerEvents: "none",
|
|
143
|
+
alignItems: "center",
|
|
144
|
+
justifyContent: "center"
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
|
|
105
148
|
// src/components/form/Button/Button.native.tsx
|
|
106
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
149
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
107
150
|
var MIN_WIDTH = 64;
|
|
108
151
|
function outlineOf(palette, wash) {
|
|
109
152
|
return {
|
|
@@ -190,7 +233,7 @@ function sizeStyle(theme, size, iconOnly, hasIcon) {
|
|
|
190
233
|
};
|
|
191
234
|
}
|
|
192
235
|
function glowStyle(palette) {
|
|
193
|
-
return
|
|
236
|
+
return Platform2.select({
|
|
194
237
|
android: { elevation: 8 },
|
|
195
238
|
default: {
|
|
196
239
|
shadowColor: palette.main,
|
|
@@ -201,26 +244,26 @@ function glowStyle(palette) {
|
|
|
201
244
|
});
|
|
202
245
|
}
|
|
203
246
|
function Pulse({ color, radius, testID }) {
|
|
204
|
-
const progress =
|
|
205
|
-
|
|
247
|
+
const progress = React2.useRef(new Animated.Value(0)).current;
|
|
248
|
+
React2.useEffect(() => {
|
|
206
249
|
const loop = Animated.loop(
|
|
207
250
|
Animated.timing(progress, {
|
|
208
251
|
toValue: 1,
|
|
209
252
|
duration: PULSE_DURATION_MS,
|
|
210
253
|
easing: Easing.out(Easing.ease),
|
|
211
|
-
useNativeDriver:
|
|
254
|
+
useNativeDriver: Platform2.OS !== "web"
|
|
212
255
|
})
|
|
213
256
|
);
|
|
214
257
|
loop.start();
|
|
215
258
|
return () => loop.stop();
|
|
216
259
|
}, [progress]);
|
|
217
|
-
return /* @__PURE__ */
|
|
260
|
+
return /* @__PURE__ */ jsx2(
|
|
218
261
|
Animated.View,
|
|
219
262
|
{
|
|
220
263
|
testID,
|
|
221
264
|
"aria-hidden": true,
|
|
222
265
|
style: [
|
|
223
|
-
|
|
266
|
+
StyleSheet2.absoluteFill,
|
|
224
267
|
{
|
|
225
268
|
pointerEvents: "none",
|
|
226
269
|
borderRadius: radius,
|
|
@@ -237,13 +280,13 @@ function Pulse({ color, radius, testID }) {
|
|
|
237
280
|
function buttonLook(theme, props) {
|
|
238
281
|
const { variant, color, size, loading, icon, children, glow, pulse, active, disabled, style } = props;
|
|
239
282
|
const palette = buttonPalette(theme, color);
|
|
240
|
-
const iconOnly =
|
|
283
|
+
const iconOnly = icon != null && children == null;
|
|
241
284
|
const inactive = Boolean(disabled) || loading;
|
|
242
285
|
const paint = inactive ? disabledPaint(theme, variant) : paintFor(theme, variant, color, palette, active);
|
|
243
286
|
const radius = theme.radius.field;
|
|
244
287
|
const metrics = BUTTON_SIZES[size];
|
|
245
288
|
const overflow = pulse || glow ? "visible" : "hidden";
|
|
246
|
-
const sized = sizeStyle(theme, size, iconOnly, icon != null
|
|
289
|
+
const sized = sizeStyle(theme, size, iconOnly, icon != null);
|
|
247
290
|
const glowing = glow && !inactive ? glowStyle(palette) : null;
|
|
248
291
|
return {
|
|
249
292
|
inactive,
|
|
@@ -258,7 +301,7 @@ function buttonLook(theme, props) {
|
|
|
258
301
|
...paint.label
|
|
259
302
|
},
|
|
260
303
|
container: (state) => [
|
|
261
|
-
|
|
304
|
+
styles2.base,
|
|
262
305
|
{ borderRadius: radius, overflow },
|
|
263
306
|
sized,
|
|
264
307
|
paint.container,
|
|
@@ -268,18 +311,7 @@ function buttonLook(theme, props) {
|
|
|
268
311
|
]
|
|
269
312
|
};
|
|
270
313
|
}
|
|
271
|
-
|
|
272
|
-
return /* @__PURE__ */ jsx(
|
|
273
|
-
ActivityIndicator,
|
|
274
|
-
{
|
|
275
|
-
size: Platform.OS === "ios" ? "small" : BUTTON_SPINNER_SIZE,
|
|
276
|
-
color,
|
|
277
|
-
testID,
|
|
278
|
-
accessibilityLabel: "loading"
|
|
279
|
-
}
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
|
-
var Button = React.forwardRef((rawProps, ref) => {
|
|
314
|
+
var Button = React2.forwardRef((rawProps, ref) => {
|
|
283
315
|
const resolved = resolveButtonProps(rawProps);
|
|
284
316
|
const { loading, icon, iconPosition, pulse, ripple, children, onClick, onPress, ...others } = resolved;
|
|
285
317
|
const theme = useUiTheme();
|
|
@@ -292,7 +324,7 @@ var Button = React.forwardRef((rawProps, ref) => {
|
|
|
292
324
|
onClick?.(event);
|
|
293
325
|
onPress?.(event);
|
|
294
326
|
};
|
|
295
|
-
const iconNode =
|
|
327
|
+
const iconNode = icon ? /* @__PURE__ */ jsx2(View2, { style: [styles2.icon, hiddenWhile(loading)], testID: idFor("icon"), children: icon }) : null;
|
|
296
328
|
return /* @__PURE__ */ jsxs(
|
|
297
329
|
Pressable,
|
|
298
330
|
{
|
|
@@ -300,6 +332,7 @@ var Button = React.forwardRef((rawProps, ref) => {
|
|
|
300
332
|
role: "button",
|
|
301
333
|
"aria-disabled": look.inactive,
|
|
302
334
|
"aria-busy": loading,
|
|
335
|
+
"aria-label": loadingName(loading, children),
|
|
303
336
|
disabled: look.inactive,
|
|
304
337
|
onPress: handlePress,
|
|
305
338
|
android_ripple: ripple && !look.inactive ? { color: alpha(look.palette.main, 0.2), borderless: false } : void 0,
|
|
@@ -307,16 +340,17 @@ var Button = React.forwardRef((rawProps, ref) => {
|
|
|
307
340
|
testID: testId,
|
|
308
341
|
...pressable,
|
|
309
342
|
children: [
|
|
310
|
-
pulse && !look.inactive ? /* @__PURE__ */
|
|
343
|
+
pulse && !look.inactive ? /* @__PURE__ */ jsx2(Pulse, { color: look.palette.main, radius: look.radius, testID: idFor("pulse") }) : null,
|
|
311
344
|
iconPosition === "left" ? iconNode : null,
|
|
312
|
-
|
|
313
|
-
iconPosition === "right" ? iconNode : null
|
|
345
|
+
/* @__PURE__ */ jsx2(Label, { loading, label: look.label, testID: idFor("busy-label"), children }),
|
|
346
|
+
iconPosition === "right" ? iconNode : null,
|
|
347
|
+
loading ? /* @__PURE__ */ jsx2(Spinner, { color: look.label.color, testID: idFor("loading") }) : null
|
|
314
348
|
]
|
|
315
349
|
}
|
|
316
350
|
);
|
|
317
351
|
});
|
|
318
352
|
Button.displayName = "Button";
|
|
319
|
-
var
|
|
353
|
+
var styles2 = StyleSheet2.create({
|
|
320
354
|
base: {
|
|
321
355
|
flexDirection: "row",
|
|
322
356
|
alignItems: "center",
|
|
@@ -333,4 +367,4 @@ var styles = StyleSheet.create({
|
|
|
333
367
|
export {
|
|
334
368
|
Button
|
|
335
369
|
};
|
|
336
|
-
//# sourceMappingURL=chunk-
|
|
370
|
+
//# sourceMappingURL=chunk-EZHCNYQO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/form/Button/Button.native.tsx","../../../src/components/form/Button/Button.helpers.ts","../../../src/components/form/Button/Button.metrics.ts","../../../src/components/form/Button/Button.native.loading.tsx"],"sourcesContent":["import * as React from 'react';\nimport {\n Animated,\n Easing,\n Platform,\n Pressable,\n StyleSheet,\n View,\n type GestureResponderEvent,\n type PressableStateCallbackType,\n type StyleProp,\n type TextStyle,\n type ViewStyle,\n} from 'react-native';\n\nimport { resolveButtonProps } from './Button.helpers';\nimport {\n BUTTON_FONT_WEIGHT,\n BUTTON_ICON_GAP_UNITS,\n BUTTON_LINE_HEIGHT,\n BUTTON_SIZES,\n BUTTON_WASH_ALPHA,\n GLASS_BACKGROUND_ALPHA,\n GLASS_BACKGROUND_ALPHA_PRESSED,\n GLASS_BORDER_ALPHA,\n GLOW_INNER_ALPHA,\n GLOW_RADIUS,\n PULSE_ALPHA,\n PULSE_DURATION_MS,\n PULSE_SPREAD,\n buttonPalette,\n gradientStops,\n quietInk,\n} from './Button.metrics';\nimport type { ButtonProps, ButtonVariant } from './Button.types.native';\nimport { hiddenWhile, Label, loadingName, Spinner } from './Button.native.loading';\nimport { childTestId, resolveTestId, withoutTestIdProps } from '../../../platform/test-id';\nimport { useUiTheme } from '../../../provider/use-ui-theme.native';\nimport { resolveFieldEdge } from '../../../tokens/field-edge.core';\nimport { FIELD_BORDER_WIDTH, fieldHeightPx } from '../../../tokens/field-height.core';\nimport { alpha } from '../../../tokens/color';\nimport type { ColorValue, SizeValue } from '../../../tokens/vocabulary';\nimport type { UiPaletteColor, UiTheme } from '../../../tokens/theme';\n\n/** MUI's `min-width` for a button that carries a label. */\nconst MIN_WIDTH = 64;\n\ninterface Paint {\n container: ViewStyle;\n pressed: ViewStyle;\n label: TextStyle;\n}\n\n/**\n * What the web's `VARIANT_STYLES` paint, as three React Native styles: at rest,\n * while pressed (the web's `:hover`, which touch has no equivalent of), and the\n * label. Same palette arithmetic, same alphas.\n *\n * `gradient` is the one honest gap: React Native core has no gradient fill, so\n * it paints the gradient's first stop. A host wanting the real thing adds a\n * gradient library; the parity ledger records this.\n */\n/** A coloured outline: its colour for the border and the label, washed when pressed. */\nfunction outlineOf(palette: UiPaletteColor, wash: string): Paint {\n return {\n container: { backgroundColor: 'transparent', borderWidth: FIELD_BORDER_WIDTH, borderColor: palette.main },\n pressed: { backgroundColor: wash, borderColor: palette.dark },\n label: { color: palette.main },\n };\n}\n\n/**\n * A neutral outline, as on the web: it rests on the one field border and\n * writes in the theme's text ink, a role that turns with the mode — grey 700\n * was dark on a dark ground.\n */\nfunction neutralOutline(theme: UiTheme): Paint {\n const ink = theme.palette.text.primary;\n return {\n container: {\n backgroundColor: 'transparent',\n borderWidth: FIELD_BORDER_WIDTH,\n borderColor: resolveFieldEdge(theme.palette.divider, theme.palette.background.paper),\n },\n pressed: { backgroundColor: alpha(ink, BUTTON_WASH_ALPHA), borderColor: theme.palette.text.secondary },\n label: { color: ink },\n };\n}\n\nfunction paintFor(\n theme: UiTheme,\n variant: ButtonVariant,\n color: ColorValue,\n palette: UiPaletteColor,\n active: boolean,\n): Paint {\n const wash = alpha(palette.main, BUTTON_WASH_ALPHA);\n switch (variant) {\n case 'outline':\n return color === 'neutral' ? neutralOutline(theme) : outlineOf(palette, wash);\n case 'ghost':\n return {\n container: { backgroundColor: 'transparent' },\n pressed: { backgroundColor: wash },\n label: { color: quietInk(theme, palette) },\n };\n case 'text':\n return {\n container: { backgroundColor: active ? wash : 'transparent' },\n pressed: { backgroundColor: wash },\n label: { color: quietInk(theme, palette) },\n };\n case 'glass':\n return {\n container: {\n backgroundColor: alpha(theme.palette.background.paper, GLASS_BACKGROUND_ALPHA),\n borderWidth: 1,\n borderColor: alpha(theme.palette.divider, GLASS_BORDER_ALPHA),\n },\n pressed: { backgroundColor: alpha(theme.palette.background.paper, GLASS_BACKGROUND_ALPHA_PRESSED) },\n label: { color: palette.main },\n };\n case 'gradient': {\n const [from, to] = gradientStops(theme, color, palette);\n return {\n container: { backgroundColor: from },\n pressed: { backgroundColor: to },\n label: { color: '#fff' },\n };\n }\n default:\n return {\n container: { backgroundColor: palette.main },\n pressed: { backgroundColor: palette.dark },\n label: { color: palette.contrastText || '#fff' },\n };\n }\n}\n\n/** MUI's disabled treatment per variant family, so a disabled button reads as one on both sides. */\nfunction disabledPaint(theme: UiTheme, variant: ButtonVariant): Paint {\n const filled = variant === 'solid' || variant === 'gradient' || variant === 'glass';\n return {\n container: filled\n ? { backgroundColor: theme.palette.action.disabledBackground, borderWidth: 0 }\n : variant === 'outline'\n ? { backgroundColor: 'transparent', borderWidth: 1, borderColor: theme.palette.action.disabledBackground }\n : { backgroundColor: 'transparent' },\n pressed: {},\n label: { color: theme.palette.action.disabled },\n };\n}\n\nfunction sizeStyle(theme: UiTheme, size: SizeValue, iconOnly: boolean, hasIcon: boolean): ViewStyle {\n const metrics = BUTTON_SIZES[size];\n // The theme's field height for the size, as on the web: a button stands\n // level with the field beside it, and an icon-only one is that square.\n const height = fieldHeightPx(theme.fieldHeight, size);\n if (iconOnly) {\n return { padding: 0, minWidth: height, minHeight: height };\n }\n return {\n minHeight: height,\n paddingVertical: 0,\n paddingHorizontal: metrics.paddingHorizontal,\n minWidth: MIN_WIDTH,\n gap: hasIcon ? theme.spacing(BUTTON_ICON_GAP_UNITS) : undefined,\n };\n}\n\nfunction glowStyle(palette: UiPaletteColor): ViewStyle {\n return Platform.select<ViewStyle>({\n android: { elevation: 8 },\n default: {\n shadowColor: palette.main,\n shadowOpacity: GLOW_INNER_ALPHA,\n shadowRadius: GLOW_RADIUS,\n shadowOffset: { width: 0, height: 0 },\n },\n });\n}\n\n/** The web's `::after` pulse ring: a looped scale-and-fade behind the button. */\nfunction Pulse({ color, radius, testID }: { color: string; radius: number; testID: string }): React.JSX.Element {\n const progress = React.useRef(new Animated.Value(0)).current;\n\n React.useEffect(() => {\n const loop = Animated.loop(\n Animated.timing(progress, {\n toValue: 1,\n duration: PULSE_DURATION_MS,\n easing: Easing.out(Easing.ease),\n useNativeDriver: Platform.OS !== 'web',\n }),\n );\n loop.start();\n return () => loop.stop();\n }, [progress]);\n\n return (\n <Animated.View\n testID={testID}\n aria-hidden\n style={[\n StyleSheet.absoluteFill,\n {\n pointerEvents: 'none',\n borderRadius: radius,\n backgroundColor: color,\n opacity: progress.interpolate({ inputRange: [0, 0.7, 1], outputRange: [PULSE_ALPHA, 0, 0] }),\n transform: [\n { scale: progress.interpolate({ inputRange: [0, 0.7, 1], outputRange: [1, 1 + PULSE_SPREAD / 40, 1] }) },\n ],\n },\n ]}\n />\n );\n}\n\n\ntype ResolvedProps = ReturnType<typeof resolveButtonProps<ButtonProps>>;\n\ninterface ButtonLook {\n inactive: boolean;\n palette: UiPaletteColor;\n radius: number;\n label: TextStyle;\n container: (state: PressableStateCallbackType) => StyleProp<ViewStyle>;\n}\n\n/**\n * Everything the button paints, decided once per render from the resolved\n * props and the theme. Kept out of the component so the component reads as\n * structure — what renders where — and this reads as arithmetic.\n */\nfunction buttonLook(theme: UiTheme, props: ResolvedProps): ButtonLook {\n const { variant, color, size, loading, icon, children, glow, pulse, active, disabled, style } = props;\n const palette = buttonPalette(theme, color);\n // Loading keeps the icon (transparent), so it changes neither the shape nor the gap (FUT-3646).\n const iconOnly = icon != null && children == null;\n const inactive = Boolean(disabled) || loading;\n const paint = inactive ? disabledPaint(theme, variant) : paintFor(theme, variant, color, palette, active);\n // The theme's one field radius, so a button and the input beside it agree.\n const radius = theme.radius.field;\n const metrics = BUTTON_SIZES[size];\n // The web button is `overflow: hidden` (its ripple needs it) unless the pulse\n // ring turns it visible; on native the glow's shadow needs it visible too,\n // because a view's own shadow is clipped by its own overflow there.\n const overflow: ViewStyle['overflow'] = pulse || glow ? 'visible' : 'hidden';\n const sized = sizeStyle(theme, size, iconOnly, icon != null);\n const glowing = glow && !inactive ? glowStyle(palette) : null;\n\n return {\n inactive,\n palette,\n radius,\n label: {\n fontFamily: theme.typography.fontFamily,\n fontSize: metrics.fontSize,\n lineHeight: metrics.fontSize * BUTTON_LINE_HEIGHT,\n fontWeight: String(BUTTON_FONT_WEIGHT) as TextStyle['fontWeight'],\n textAlign: 'center',\n ...paint.label,\n },\n container: (state) => [\n styles.base,\n { borderRadius: radius, overflow },\n sized,\n paint.container,\n state.pressed && !inactive ? paint.pressed : null,\n glowing,\n style,\n ],\n };\n}\n\nexport const Button = React.forwardRef<View, ButtonProps>((rawProps, ref) => {\n const resolved = resolveButtonProps(rawProps);\n const { loading, icon, iconPosition, pulse, ripple, children, onClick, onPress, ...others } = resolved;\n const theme = useUiTheme();\n const look = buttonLook(theme, resolved);\n\n // The shared stories pass `'data-testid'` as a plain prop; honour it here and\n // keep all three spellings off the element (react-native-web would drop them).\n const testId = resolveTestId(others, 'button');\n const idFor = (suffix: string) => childTestId(others, suffix, 'button');\n const rest = withoutTestIdProps(others);\n // `buttonLook` consumed these; they are not Pressable props.\n const { variant: _v, color: _c, size: _s, glow: _g, active: _a, disabled: _d, style: _st, ...pressable } = rest;\n\n const handlePress = (event: GestureResponderEvent): void => {\n onClick?.(event);\n onPress?.(event);\n };\n\n const iconNode = icon ? (\n <View style={[styles.icon, hiddenWhile(loading)]} testID={idFor('icon')}>\n {icon}\n </View>\n ) : null;\n\n return (\n <Pressable\n ref={ref}\n role=\"button\"\n aria-disabled={look.inactive}\n aria-busy={loading}\n aria-label={loadingName(loading, children)}\n disabled={look.inactive}\n onPress={handlePress}\n android_ripple={ripple && !look.inactive ? { color: alpha(look.palette.main, 0.2), borderless: false } : undefined}\n style={look.container}\n testID={testId}\n {...pressable}\n >\n {pulse && !look.inactive ? <Pulse color={look.palette.main} radius={look.radius} testID={idFor('pulse')} /> : null}\n {iconPosition === 'left' ? iconNode : null}\n <Label loading={loading} label={look.label} testID={idFor('busy-label')}>\n {children}\n </Label>\n {iconPosition === 'right' ? iconNode : null}\n {loading ? <Spinner color={look.label.color as string} testID={idFor('loading')} /> : null}\n </Pressable>\n );\n});\n\nButton.displayName = 'Button';\n\nconst styles = StyleSheet.create({\n base: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n alignSelf: 'flex-start',\n position: 'relative',\n },\n icon: {\n alignItems: 'center',\n justifyContent: 'center',\n },\n});\n","import type { ButtonBaseProps } from './Button.base';\n\ntype ButtonDefaultedKeys =\n | 'variant'\n | 'color'\n | 'size'\n | 'loading'\n | 'iconPosition'\n | 'glow'\n | 'pulse'\n | 'ripple'\n | 'active';\n\n/**\n * Generic over the renderer's own props: the web and the native `Button` pass\n * different handler types through, and both come back out untouched.\n */\ntype ResolvedButtonProps<P extends ButtonBaseProps> = P &\n Required<Pick<ButtonBaseProps, ButtonDefaultedKeys>>;\n\nconst BUTTON_DEFAULTS: Required<Pick<ButtonBaseProps, ButtonDefaultedKeys>> = {\n variant: 'solid',\n color: 'primary',\n size: 'md',\n loading: false,\n iconPosition: 'left',\n glow: false,\n pulse: false,\n ripple: true,\n active: false,\n};\n\n// Strips explicitly-undefined props before the merge, so `size={undefined}` still\n// falls back to the default exactly as a destructuring default would.\nconst definedProps = <P extends ButtonBaseProps>(props: P): Partial<P> =>\n Object.fromEntries(\n Object.entries(props).filter(([, value]) => value !== undefined),\n ) as Partial<P>;\n\nexport const resolveButtonProps = <P extends ButtonBaseProps>(props: P): ResolvedButtonProps<P> =>\n ({ ...BUTTON_DEFAULTS, ...definedProps(props) }) as ResolvedButtonProps<P>;\n","import { darken, lighten } from '../../../tokens/color';\nimport { ABSOLUTE_INK, NEUTRAL_RAMP } from '../../../tokens/ink.core';\nimport type { ColorValue, SizeValue } from '../../../tokens/vocabulary';\nimport type { UiPaletteColor, UiTheme } from '../../../tokens/theme';\n\n/**\n * THE NUMBERS BOTH `Button` RENDERERS DRAW WITH.\n *\n * `Button.styles.ts` (web, emotion) and `Button.native.tsx` (React Native)\n * read this one table. The web turns the px into rem and the padding into a\n * shorthand string; native uses the numbers as they are. Neither restates a\n * value, which is what keeps a native `md` button 16px tall of padding and\n * 16px of type exactly like the web one.\n */\nexport interface ButtonSizeMetrics {\n paddingVertical: number;\n paddingHorizontal: number;\n fontSize: number;\n}\n\nexport const BUTTON_SIZES: Record<SizeValue, ButtonSizeMetrics> = {\n xs: { paddingVertical: 2, paddingHorizontal: 8, fontSize: 12 },\n sm: { paddingVertical: 6, paddingHorizontal: 12, fontSize: 14 },\n md: { paddingVertical: 8, paddingHorizontal: 16, fontSize: 16 },\n lg: { paddingVertical: 10, paddingHorizontal: 20, fontSize: 18 },\n xl: { paddingVertical: 12, paddingHorizontal: 24, fontSize: 20 },\n};\n\n/** A button that is only an icon is square: uniform padding, no min-width. */\nexport const ICON_ONLY_PADDING: Record<SizeValue, number> = {\n xs: 2,\n sm: 5,\n md: 7,\n lg: 9,\n xl: 11,\n};\n\n/**\n * The start/end icon slot's font-size, in px — MUI's `medium` value, pinned\n * (12-74).\n *\n * MUI sizes that slot off its OWN `size` prop, writing 18/20/22 onto the first\n * child of `.MuiButton-startIcon`. We never passed a `size`, so every button in\n * every size has always drawn medium's 20px; now that `size` IS forwarded — so\n * the rendered class finally names the size the button actually is — the number\n * would start moving with it.\n *\n * WHAT THAT ACTUALLY REACHES, measured in a browser rather than assumed: this\n * Button renders its own wrapper span around the icon (it carries the child\n * test id), so MUI's rule lands on the WRAPPER and reaches the glyph only when\n * the glyph takes its size by inheritance — `fontSize=\"inherit\"`, an em-sized\n * SVG, a text or emoji glyph. With the pin removed, such a glyph measured 18px\n * at `xs`/`sm` and 22px at `lg`/`xl` against the 20px it has always been. An\n * icon carrying an absolute size of its own does not move at all: a default\n * `SvgIcon` stayed 24×24 across all five.\n *\n * A silent resize of the inherited case is still a design decision arriving as\n * a side effect of a class-name fix, so it is pinned to what shipped before —\n * `Button.tsx` puts it on that same wrapper. Scaling the glyph with the button\n * is a ticket of its own.\n */\nexport const BUTTON_ICON_GLYPH_SIZE = 20;\n\nexport const BUTTON_FONT_WEIGHT = 500;\n/** Between the icon and the label: `theme.spacing(0.5)`. */\nexport const BUTTON_ICON_GAP_UNITS = 0.5;\nexport const BUTTON_SPINNER_SIZE = 16;\n/** MUI's `line-height` for button text. */\nexport const BUTTON_LINE_HEIGHT = 1.75;\n\n/** The wash behind an outline, ghost or text button while it is hovered or pressed. */\nexport const BUTTON_WASH_ALPHA = 0.1;\nexport const GLASS_BACKGROUND_ALPHA = 0.1;\nexport const GLASS_BACKGROUND_ALPHA_PRESSED = 0.2;\nexport const GLASS_BORDER_ALPHA = 0.2;\nexport const GLOW_INNER_ALPHA = 0.6;\nexport const GLOW_OUTER_ALPHA = 0.3;\nexport const GLOW_RADIUS = 20;\nexport const PULSE_ALPHA = 0.3;\nexport const PULSE_DURATION_MS = 2000;\nexport const PULSE_SPREAD = 15;\n\n/**\n * `neutral` has no palette slot of its own in MUI, so `Button.styles.ts` has\n * always drawn it from three greys. Same three greys here.\n */\nexport function buttonPalette(theme: UiTheme, color: ColorValue): UiPaletteColor {\n if (color === 'neutral') {\n return {\n main: NEUTRAL_RAMP[700],\n dark: NEUTRAL_RAMP[800],\n light: NEUTRAL_RAMP[500],\n contrastText: ABSOLUTE_INK.white,\n };\n }\n return theme.palette[color];\n}\n\n/**\n * The label colour for `ghost` and `text`: one step darker than `main` in\n * light mode (lighter in dark), because `main` is chosen to sit UNDER white and\n * is not legible AS text on a tinted surface. See the web `quietInk`.\n */\nexport const quietInk = (theme: UiTheme, palette: UiPaletteColor): string =>\n theme.mode === 'dark' ? lighten(palette.main, 0.35) : darken(palette.main, 0.3);\n\n/** Gradients run between two related hues; the named colours pick a specific pair. */\nexport function gradientStops(\n theme: UiTheme,\n color: ColorValue,\n palette: UiPaletteColor,\n): [string, string] {\n switch (color) {\n case 'primary':\n return [theme.palette.primary.main, theme.palette.secondary.main];\n case 'secondary':\n return [theme.palette.secondary.main, theme.palette.primary.main];\n case 'success':\n case 'warning':\n return [theme.palette[color].light, theme.palette[color].dark];\n case 'danger':\n return [theme.palette.danger.light, theme.palette.danger.dark];\n default:\n return [palette.main, palette.dark];\n }\n}\n","import * as React from 'react';\nimport { ActivityIndicator, Platform, StyleSheet, View } from 'react-native';\nimport type { TextStyle } from 'react-native';\n\nimport { BUTTON_SPINNER_SIZE } from './Button.metrics';\nimport { renderTextChildren } from '../../../platform/text-children';\n\n/**\n * The native Button's loading state (FUT-3646): the label and icon stay laid\n * out under the spinner — so the button keeps its width and shape — and the\n * button keeps its name. Split from `Button.native.tsx` to keep that file\n * under the line ceiling.\n */\n\n/**\n * The spinner over the label while loading, across the whole button; `role`\n * comes from react-native's ActivityIndicator. It used to REPLACE the label, so\n * a loading button had no accessible name (FUT-3646).\n */\nexport function Spinner({ color, testID }: { color: string; testID: string }): React.JSX.Element {\n return (\n <View style={styles.spinner}>\n <ActivityIndicator\n size={Platform.OS === 'ios' ? 'small' : BUTTON_SPINNER_SIZE}\n color={color}\n testID={testID}\n accessibilityLabel=\"loading\"\n />\n </View>\n );\n}\n\n/**\n * The button's name while loading: its text label, said outright. The label\n * stays laid out (transparent) so the width holds, but a screen reader may skip\n * a view at opacity 0 — VoiceOver does — so the name cannot ride on it alone.\n * A caller's own `aria-label` still wins, being spread after this.\n */\nexport const loadingName = (loading: boolean | undefined, children: React.ReactNode): string | undefined =>\n loading ? textOf(children) : undefined;\n\n/**\n * The text of a label made only of strings and numbers — `Salvar`, or\n * `Salvar {n}`, which React hands over as an array. Anything else (an element)\n * has no text to say here, so the name is left to the label itself.\n */\nfunction textOf(children: React.ReactNode): string | undefined {\n const parts = React.Children.toArray(children);\n const textual = parts.every((part) => typeof part === 'string' || typeof part === 'number');\n return textual && parts.length > 0 ? parts.join('') : undefined;\n}\n\n/** Laid out but unseen under the spinner while loading, so the width holds. */\nexport const hiddenWhile = (loading: boolean | undefined) => (loading ? styles.hidden : null);\n\n/** The text label; while loading, kept laid out but unseen under the spinner. */\nexport function Label({\n loading,\n label,\n testID,\n children,\n}: {\n loading: boolean | undefined;\n label: TextStyle;\n testID: string;\n children: React.ReactNode;\n}): React.ReactNode {\n const text = renderTextChildren(children, label, 1);\n return loading ? (\n <View style={styles.hidden} testID={testID}>\n {text}\n </View>\n ) : (\n text\n );\n}\n\nconst styles = StyleSheet.create({\n // The label and icon under the spinner: laid out, so the width holds, but unseen.\n hidden: {\n opacity: 0,\n },\n spinner: {\n ...StyleSheet.absoluteFillObject,\n pointerEvents: 'none',\n alignItems: 'center',\n justifyContent: 'center',\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAYA,YAAW;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA,YAAAC;AAAA,EACA;AAAA,EACA,cAAAC;AAAA,EACA,QAAAC;AAAA,OAMK;;;ACOP,IAAM,kBAAwE;AAAA,EAC5E,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,cAAc;AAAA,EACd,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AACV;AAIA,IAAM,eAAe,CAA4B,UAC/C,OAAO;AAAA,EACL,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,EAAE,KAAK,MAAM,UAAU,MAAS;AACjE;AAEK,IAAM,qBAAqB,CAA4B,WAC3D,EAAE,GAAG,iBAAiB,GAAG,aAAa,KAAK,EAAE;;;ACpBzC,IAAM,eAAqD;AAAA,EAChE,IAAI,EAAE,iBAAiB,GAAG,mBAAmB,GAAG,UAAU,GAAG;AAAA,EAC7D,IAAI,EAAE,iBAAiB,GAAG,mBAAmB,IAAI,UAAU,GAAG;AAAA,EAC9D,IAAI,EAAE,iBAAiB,GAAG,mBAAmB,IAAI,UAAU,GAAG;AAAA,EAC9D,IAAI,EAAE,iBAAiB,IAAI,mBAAmB,IAAI,UAAU,GAAG;AAAA,EAC/D,IAAI,EAAE,iBAAiB,IAAI,mBAAmB,IAAI,UAAU,GAAG;AACjE;AAqCO,IAAM,qBAAqB;AAE3B,IAAM,wBAAwB;AAC9B,IAAM,sBAAsB;AAE5B,IAAM,qBAAqB;AAG3B,IAAM,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Sheet","styles","View"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EZHCNYQO.js";
|
|
4
4
|
import {
|
|
5
5
|
ELEVATION_SHADOWS
|
|
6
6
|
} from "./chunk-ZRQHLTYG.js";
|
|
@@ -292,4 +292,4 @@ var styles = StyleSheet.create({
|
|
|
292
292
|
export {
|
|
293
293
|
EmptyState
|
|
294
294
|
};
|
|
295
|
-
//# sourceMappingURL=chunk-
|
|
295
|
+
//# sourceMappingURL=chunk-TZPNJ4AU.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EmptyState
|
|
3
|
-
} from "../chunks/chunk-
|
|
4
|
-
import "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-TZPNJ4AU.js";
|
|
4
|
+
import "../chunks/chunk-EZHCNYQO.js";
|
|
5
5
|
import "../chunks/chunk-3JBZE4I6.js";
|
|
6
6
|
import "../chunks/chunk-ZRQHLTYG.js";
|
|
7
7
|
import "../chunks/chunk-DN73KYIZ.js";
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
} from "../chunks/chunk-MJVSQXOD.js";
|
|
8
8
|
import {
|
|
9
9
|
EmptyState
|
|
10
|
-
} from "../chunks/chunk-
|
|
11
|
-
import "../chunks/chunk-
|
|
10
|
+
} from "../chunks/chunk-TZPNJ4AU.js";
|
|
11
|
+
import "../chunks/chunk-EZHCNYQO.js";
|
|
12
12
|
import "../chunks/chunk-3JBZE4I6.js";
|
|
13
13
|
import "../chunks/chunk-ZRQHLTYG.js";
|
|
14
14
|
import {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "../chunk-IQU4HKND.js";
|
|
18
18
|
import {
|
|
19
19
|
AppHeaderDetails
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-RVZMKGWQ.js";
|
|
21
21
|
import "../chunk-7K23NEZO.js";
|
|
22
22
|
import "../chunk-5MMAV7XK.js";
|
|
23
23
|
import "../chunk-3ROCD7XF.js";
|
|
@@ -31,7 +31,7 @@ import "../chunk-Z2JH5KW5.js";
|
|
|
31
31
|
import "../chunk-AL5E624U.js";
|
|
32
32
|
import "../chunk-GYXUCS37.js";
|
|
33
33
|
import "../chunk-LV7LSPBF.js";
|
|
34
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-YOXYSAUI.js";
|
|
35
35
|
import "../chunk-PPEHBI5O.js";
|
|
36
36
|
import "../chunk-G2FUZALJ.js";
|
|
37
37
|
import "../chunk-TAMIZE4Q.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
GoogleIcon,
|
|
5
5
|
SocialLoginButton,
|
|
6
6
|
SocialLoginContainer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X3DN2BE3.js";
|
|
8
8
|
import "./chunk-INGPH3YQ.js";
|
|
9
9
|
import "./chunk-6GP2DOOO.js";
|
|
10
10
|
import "./chunk-GBVVI35T.js";
|
|
@@ -20,7 +20,7 @@ import "./chunk-FKUYRQSP.js";
|
|
|
20
20
|
import "./chunk-PLB6WWXW.js";
|
|
21
21
|
import "./chunk-HDBP55R3.js";
|
|
22
22
|
import "./chunk-BA4RHQ3B.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-YOXYSAUI.js";
|
|
24
24
|
import "./chunk-PPEHBI5O.js";
|
|
25
25
|
import "./chunk-G2FUZALJ.js";
|
|
26
26
|
import "./chunk-TAMIZE4Q.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Button/Button.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Button/Button.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,gBAAgB,CAAC;AAkOnE;;;;GAIG;AACH,eAAO,MAAM,MAAM,EAAiB,eAAe,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { TextStyle } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* The native Button's loading state (FUT-3646): the label and icon stay laid
|
|
5
|
+
* out under the spinner — so the button keeps its width and shape — and the
|
|
6
|
+
* button keeps its name. Split from `Button.native.tsx` to keep that file
|
|
7
|
+
* under the line ceiling.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* The spinner over the label while loading, across the whole button; `role`
|
|
11
|
+
* comes from react-native's ActivityIndicator. It used to REPLACE the label, so
|
|
12
|
+
* a loading button had no accessible name (FUT-3646).
|
|
13
|
+
*/
|
|
14
|
+
export declare function Spinner({ color, testID }: {
|
|
15
|
+
color: string;
|
|
16
|
+
testID: string;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* The button's name while loading: its text label, said outright. The label
|
|
20
|
+
* stays laid out (transparent) so the width holds, but a screen reader may skip
|
|
21
|
+
* a view at opacity 0 — VoiceOver does — so the name cannot ride on it alone.
|
|
22
|
+
* A caller's own `aria-label` still wins, being spread after this.
|
|
23
|
+
*/
|
|
24
|
+
export declare const loadingName: (loading: boolean | undefined, children: React.ReactNode) => string | undefined;
|
|
25
|
+
/** Laid out but unseen under the spinner while loading, so the width holds. */
|
|
26
|
+
export declare const hiddenWhile: (loading: boolean | undefined) => {
|
|
27
|
+
opacity: number;
|
|
28
|
+
} | null;
|
|
29
|
+
/** The text label; while loading, kept laid out but unseen under the spinner. */
|
|
30
|
+
export declare function Label({ loading, label, testID, children, }: {
|
|
31
|
+
loading: boolean | undefined;
|
|
32
|
+
label: TextStyle;
|
|
33
|
+
testID: string;
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
}): React.ReactNode;
|
|
36
|
+
//# sourceMappingURL=Button.native.loading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.native.loading.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Button/Button.native.loading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAK9C;;;;;GAKG;AAEH;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAW/F;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,SAAS,OAAO,GAAG,SAAS,EAAE,UAAU,KAAK,CAAC,SAAS,KAAG,MAAM,GAAG,SACvD,CAAC;AAazC,+EAA+E;AAC/E,eAAO,MAAM,WAAW,GAAI,SAAS,OAAO,GAAG,SAAS;;QAAqC,CAAC;AAE9F,iFAAiF;AACjF,wBAAgB,KAAK,CAAC,EACpB,OAAO,EACP,KAAK,EACL,MAAM,EACN,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,KAAK,CAAC,SAAS,CASlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.native.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Button/Button.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"Button.native.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Button/Button.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAML,IAAI,EACJ,KAAK,qBAAqB,EAE1B,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAuQtB,eAAO,MAAM,MAAM;;;;;;8BAgDjB,CAAC"}
|