@12-apps/ui 6.62.0 → 6.62.1

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.
Files changed (139) hide show
  1. package/dist/_internal/components/data-display/CardKit/CardKebab.js +3 -3
  2. package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +3 -3
  3. package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +3 -3
  4. package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +17 -17
  5. package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +23 -23
  6. package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +3 -3
  7. package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +4 -4
  8. package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +3 -3
  9. package/dist/_internal/components/data-display/DataViews/data-views-columns.js +4 -4
  10. package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +4 -4
  11. package/dist/_internal/components/data-display/DataViews/data-views-empty.js +3 -3
  12. package/dist/_internal/components/data-display/DataViews/data-views-export.js +3 -3
  13. package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +5 -5
  14. package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +3 -3
  15. package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +14 -14
  16. package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +4 -4
  17. package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +3 -3
  18. package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +3 -3
  19. package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +8 -8
  20. package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +6 -6
  21. package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +7 -7
  22. package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +3 -3
  23. package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +5 -5
  24. package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +3 -3
  25. package/dist/_internal/components/feedback/NotificationStatusNotice/NotificationStatusNotice.js +3 -3
  26. package/dist/_internal/components/feedback/index.js +4 -4
  27. package/dist/_internal/components/form/Button/Button.js +2 -2
  28. package/dist/_internal/components/form/Button/Button.styles.js +1 -1
  29. package/dist/_internal/components/form/index.js +2 -2
  30. package/dist/_internal/components/form/total-form/SubmitButton.js +3 -3
  31. package/dist/_internal/components/index.js +12 -12
  32. package/dist/_internal/components/layout/SettingCard/SettingCard.js +5 -5
  33. package/dist/_internal/components/layout/SettingCard/SettingCard.parts.js +3 -3
  34. package/dist/_internal/components/layout/SettingCard/SettingCard.summary.js +4 -4
  35. package/dist/_internal/components/layout/SettingCard/SettingGrid.js +4 -4
  36. package/dist/_internal/components/layout/SettingCard/SettingGroup.js +6 -6
  37. package/dist/_internal/components/layout/SettingCard/SettingSwitch.js +5 -5
  38. package/dist/_internal/components/layout/SettingCard/SettingToggle.js +6 -6
  39. package/dist/_internal/components/layout/index.js +9 -9
  40. package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +3 -3
  41. package/dist/_internal/components/navigation/index.js +3 -3
  42. package/dist/_internal/social-login-button/social-login-button.js +3 -3
  43. package/dist/_internal/user-avatar/user-avatar.js +3 -3
  44. package/dist/{chunk-CFAIMOFE.js → chunk-265RW6VX.js} +2 -2
  45. package/dist/{chunk-VZCZAHMX.js → chunk-2XOL4HJU.js} +4 -4
  46. package/dist/{chunk-4PYEDDYV.js → chunk-3AQ25I6D.js} +2 -2
  47. package/dist/{chunk-BTJFOPCQ.js → chunk-3FLJ4ZWZ.js} +2 -2
  48. package/dist/{chunk-XE4JVTM6.js → chunk-4HHCVL5D.js} +2 -2
  49. package/dist/{chunk-EFLRNSE6.js → chunk-5COIBRIP.js} +3 -3
  50. package/dist/{chunk-NFCAXQ3F.js → chunk-5P4GWCBS.js} +3 -3
  51. package/dist/{chunk-USZMUOI6.js → chunk-6DJQKK6Q.js} +3 -3
  52. package/dist/{chunk-KEDZTZCV.js → chunk-6FZ3PJXR.js} +2 -2
  53. package/dist/{chunk-PZPTTAO5.js → chunk-6KQWNPER.js} +6 -6
  54. package/dist/{chunk-YDTCM5F6.js → chunk-AGUK7VQP.js} +4 -4
  55. package/dist/{chunk-ZCUVZ5PR.js → chunk-C622UXU6.js} +2 -2
  56. package/dist/{chunk-CCCILWYZ.js → chunk-DOROD5GQ.js} +3 -3
  57. package/dist/{chunk-INQO5AYV.js → chunk-GF5VDLCC.js} +3 -3
  58. package/dist/{chunk-6NWFX2XJ.js → chunk-GOIFPE2E.js} +2 -2
  59. package/dist/{chunk-PKGBW7KS.js → chunk-HM6T6EQR.js} +3 -3
  60. package/dist/{chunk-EXAXD7FA.js → chunk-JQBODXRV.js} +2 -2
  61. package/dist/{chunk-T2UP4XJF.js → chunk-JTIKY2D3.js} +20 -13
  62. package/dist/{chunk-T2UP4XJF.js.map → chunk-JTIKY2D3.js.map} +1 -1
  63. package/dist/{chunk-6J27G2HT.js → chunk-KYFRZX5C.js} +2 -2
  64. package/dist/{chunk-NQZNV3VR.js → chunk-LCVBED7G.js} +2 -2
  65. package/dist/{chunk-GRRW5NSR.js → chunk-NHAB477Y.js} +3 -3
  66. package/dist/{chunk-X7HCS3HP.js → chunk-PSYX2KEQ.js} +3 -3
  67. package/dist/{chunk-3UQMIFPA.js → chunk-QNXCCBRW.js} +2 -2
  68. package/dist/{chunk-JA6GKU65.js → chunk-SAVNRXHT.js} +2 -2
  69. package/dist/{chunk-WQBHJXXW.js → chunk-TSHX4Q6M.js} +2 -2
  70. package/dist/{chunk-XGIJGIN3.js → chunk-U5NRT6JR.js} +2 -2
  71. package/dist/{chunk-ZUQX7XHJ.js → chunk-UDC5M3P2.js} +4 -4
  72. package/dist/{chunk-QJWIX4YZ.js → chunk-VE7QYG3W.js} +2 -2
  73. package/dist/{chunk-4JZ6XDVA.js → chunk-VLRHESS2.js} +2 -2
  74. package/dist/{chunk-JE6FNSQV.js → chunk-W4O3BTD5.js} +2 -2
  75. package/dist/{chunk-PPITQH3C.js → chunk-WA36P74Q.js} +2 -2
  76. package/dist/{chunk-UZCQHNXC.js → chunk-WM44LYFN.js} +2 -2
  77. package/dist/{chunk-NBM3YJ4P.js → chunk-X6WC5QBY.js} +2 -2
  78. package/dist/{chunk-L4HUZCKV.js → chunk-XOCWAQOA.js} +2 -2
  79. package/dist/{chunk-5NOCDQJD.js → chunk-YLSBEWPJ.js} +2 -2
  80. package/dist/{chunk-H7R6UKOE.js → chunk-YWIVVKCJ.js} +2 -2
  81. package/dist/data-display/CardKit.js +4 -4
  82. package/dist/data-display/DataViews.js +23 -23
  83. package/dist/feedback/ConfirmAction.js +3 -3
  84. package/dist/feedback/NotificationStatusNotice.js +3 -3
  85. package/dist/form/Button.js +2 -2
  86. package/dist/form/total-form.js +3 -3
  87. package/dist/layout/SettingCard.js +9 -9
  88. package/dist/native/chunks/{chunk-MU5EIZSP.js → chunk-2MFMON74.js} +21 -11
  89. package/dist/native/chunks/chunk-2MFMON74.js.map +1 -0
  90. package/dist/native/chunks/{chunk-BUFQXX27.js → chunk-CNTOS6KK.js} +2 -2
  91. package/dist/native/data-display/EmptyState.js +2 -2
  92. package/dist/native/data-display/ErrorState.js +1 -1
  93. package/dist/native/data-display/FleetMap.js +2 -2
  94. package/dist/native/form/Button.js +1 -1
  95. package/dist/navigation/AppHeader.js +3 -3
  96. package/dist/social-login-button.js +3 -3
  97. package/dist/types/components/form/Button/Button.styles.d.ts.map +1 -1
  98. package/dist/types-native/components/form/Button/Button.native.d.ts.map +1 -1
  99. package/dist/user-avatar.js +3 -3
  100. package/package.json +1 -1
  101. package/src/components/form/Button/Button.native.tsx +28 -13
  102. package/src/components/form/Button/Button.styles.ts +19 -12
  103. package/dist/native/chunks/chunk-MU5EIZSP.js.map +0 -1
  104. /package/dist/{chunk-CFAIMOFE.js.map → chunk-265RW6VX.js.map} +0 -0
  105. /package/dist/{chunk-VZCZAHMX.js.map → chunk-2XOL4HJU.js.map} +0 -0
  106. /package/dist/{chunk-4PYEDDYV.js.map → chunk-3AQ25I6D.js.map} +0 -0
  107. /package/dist/{chunk-BTJFOPCQ.js.map → chunk-3FLJ4ZWZ.js.map} +0 -0
  108. /package/dist/{chunk-XE4JVTM6.js.map → chunk-4HHCVL5D.js.map} +0 -0
  109. /package/dist/{chunk-EFLRNSE6.js.map → chunk-5COIBRIP.js.map} +0 -0
  110. /package/dist/{chunk-NFCAXQ3F.js.map → chunk-5P4GWCBS.js.map} +0 -0
  111. /package/dist/{chunk-USZMUOI6.js.map → chunk-6DJQKK6Q.js.map} +0 -0
  112. /package/dist/{chunk-KEDZTZCV.js.map → chunk-6FZ3PJXR.js.map} +0 -0
  113. /package/dist/{chunk-PZPTTAO5.js.map → chunk-6KQWNPER.js.map} +0 -0
  114. /package/dist/{chunk-YDTCM5F6.js.map → chunk-AGUK7VQP.js.map} +0 -0
  115. /package/dist/{chunk-ZCUVZ5PR.js.map → chunk-C622UXU6.js.map} +0 -0
  116. /package/dist/{chunk-CCCILWYZ.js.map → chunk-DOROD5GQ.js.map} +0 -0
  117. /package/dist/{chunk-INQO5AYV.js.map → chunk-GF5VDLCC.js.map} +0 -0
  118. /package/dist/{chunk-6NWFX2XJ.js.map → chunk-GOIFPE2E.js.map} +0 -0
  119. /package/dist/{chunk-PKGBW7KS.js.map → chunk-HM6T6EQR.js.map} +0 -0
  120. /package/dist/{chunk-EXAXD7FA.js.map → chunk-JQBODXRV.js.map} +0 -0
  121. /package/dist/{chunk-6J27G2HT.js.map → chunk-KYFRZX5C.js.map} +0 -0
  122. /package/dist/{chunk-NQZNV3VR.js.map → chunk-LCVBED7G.js.map} +0 -0
  123. /package/dist/{chunk-GRRW5NSR.js.map → chunk-NHAB477Y.js.map} +0 -0
  124. /package/dist/{chunk-X7HCS3HP.js.map → chunk-PSYX2KEQ.js.map} +0 -0
  125. /package/dist/{chunk-3UQMIFPA.js.map → chunk-QNXCCBRW.js.map} +0 -0
  126. /package/dist/{chunk-JA6GKU65.js.map → chunk-SAVNRXHT.js.map} +0 -0
  127. /package/dist/{chunk-WQBHJXXW.js.map → chunk-TSHX4Q6M.js.map} +0 -0
  128. /package/dist/{chunk-XGIJGIN3.js.map → chunk-U5NRT6JR.js.map} +0 -0
  129. /package/dist/{chunk-ZUQX7XHJ.js.map → chunk-UDC5M3P2.js.map} +0 -0
  130. /package/dist/{chunk-QJWIX4YZ.js.map → chunk-VE7QYG3W.js.map} +0 -0
  131. /package/dist/{chunk-4JZ6XDVA.js.map → chunk-VLRHESS2.js.map} +0 -0
  132. /package/dist/{chunk-JE6FNSQV.js.map → chunk-W4O3BTD5.js.map} +0 -0
  133. /package/dist/{chunk-PPITQH3C.js.map → chunk-WA36P74Q.js.map} +0 -0
  134. /package/dist/{chunk-UZCQHNXC.js.map → chunk-WM44LYFN.js.map} +0 -0
  135. /package/dist/{chunk-NBM3YJ4P.js.map → chunk-X6WC5QBY.js.map} +0 -0
  136. /package/dist/{chunk-L4HUZCKV.js.map → chunk-XOCWAQOA.js.map} +0 -0
  137. /package/dist/{chunk-5NOCDQJD.js.map → chunk-YLSBEWPJ.js.map} +0 -0
  138. /package/dist/{chunk-H7R6UKOE.js.map → chunk-YWIVVKCJ.js.map} +0 -0
  139. /package/dist/native/chunks/{chunk-BUFQXX27.js.map → chunk-CNTOS6KK.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GridToolbar
3
- } from "./chunk-VZCZAHMX.js";
3
+ } from "./chunk-2XOL4HJU.js";
4
4
 
5
5
  // src/components/data-display/DataViews/data-views-shell-toolbar.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -66,4 +66,4 @@ function ShellToolbar({
66
66
  export {
67
67
  ShellToolbar
68
68
  };
69
- //# sourceMappingURL=chunk-UZCQHNXC.js.map
69
+ //# sourceMappingURL=chunk-WM44LYFN.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QLJU7UUI.js";
5
5
  import {
6
6
  MoreFilters
7
- } from "./chunk-QJWIX4YZ.js";
7
+ } from "./chunk-VE7QYG3W.js";
8
8
  import {
9
9
  PillControl
10
10
  } from "./chunk-GWUJIO6Z.js";
@@ -220,4 +220,4 @@ function FilterSlots({
220
220
  export {
221
221
  InlineFilterControls
222
222
  };
223
- //# sourceMappingURL=chunk-NBM3YJ4P.js.map
223
+ //# sourceMappingURL=chunk-X6WC5QBY.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-G26Y2CCT.js";
4
4
  import {
5
5
  Button
6
- } from "./chunk-JE6FNSQV.js";
6
+ } from "./chunk-W4O3BTD5.js";
7
7
 
8
8
  // src/components/feedback/ConfirmAction/ConfirmButton.tsx
9
9
  function createConfirmButton(copy, errorText) {
@@ -18,4 +18,4 @@ function createConfirmButton(copy, errorText) {
18
18
  export {
19
19
  createConfirmButton
20
20
  };
21
- //# sourceMappingURL=chunk-L4HUZCKV.js.map
21
+ //# sourceMappingURL=chunk-XOCWAQOA.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-6DPAWXZ3.js";
7
7
  import {
8
8
  Button
9
- } from "./chunk-JE6FNSQV.js";
9
+ } from "./chunk-W4O3BTD5.js";
10
10
  import {
11
11
  Text
12
12
  } from "./chunk-AJBRO76D.js";
@@ -297,4 +297,4 @@ export {
297
297
  ViewHeader,
298
298
  ViewFooter
299
299
  };
300
- //# sourceMappingURL=chunk-5NOCDQJD.js.map
300
+ //# sourceMappingURL=chunk-YLSBEWPJ.js.map
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-WEBEOBN5.js";
11
11
  import {
12
12
  Button
13
- } from "./chunk-JE6FNSQV.js";
13
+ } from "./chunk-W4O3BTD5.js";
14
14
  import {
15
15
  Text
16
16
  } from "./chunk-AJBRO76D.js";
@@ -69,4 +69,4 @@ function DeleteViewDialog({
69
69
  export {
70
70
  DeleteViewDialog
71
71
  };
72
- //# sourceMappingURL=chunk-H7R6UKOE.js.map
72
+ //# sourceMappingURL=chunk-YWIVVKCJ.js.map
@@ -20,11 +20,11 @@ import {
20
20
  } from "../chunk-UZANFXCK.js";
21
21
  import {
22
22
  CardKebab
23
- } from "../chunk-XGIJGIN3.js";
23
+ } from "../chunk-U5NRT6JR.js";
24
24
  import "../chunk-WVML3ENZ.js";
25
25
  import "../chunk-2X2G75MV.js";
26
26
  import "../chunk-XCBQXSTR.js";
27
- import "../chunk-L4HUZCKV.js";
27
+ import "../chunk-XOCWAQOA.js";
28
28
  import "../chunk-G26Y2CCT.js";
29
29
  import "../chunk-JXAPKS5X.js";
30
30
  import "../chunk-2FGWKMW2.js";
@@ -39,8 +39,8 @@ import "../chunk-IQQX3NDO.js";
39
39
  import "../chunk-3LHZCVGM.js";
40
40
  import "../chunk-6DPAWXZ3.js";
41
41
  import "../chunk-BA4RHQ3B.js";
42
- import "../chunk-JE6FNSQV.js";
43
- import "../chunk-T2UP4XJF.js";
42
+ import "../chunk-W4O3BTD5.js";
43
+ import "../chunk-JTIKY2D3.js";
44
44
  import "../chunk-G2FUZALJ.js";
45
45
  import "../chunk-TAMIZE4Q.js";
46
46
  import "../chunk-TYJR4GOF.js";
@@ -3,11 +3,11 @@ import {
3
3
  } from "../chunk-35IEACIJ.js";
4
4
  import {
5
5
  DataViewsTableBase
6
- } from "../chunk-ZUQX7XHJ.js";
7
- import "../chunk-H7R6UKOE.js";
6
+ } from "../chunk-UDC5M3P2.js";
7
+ import "../chunk-YWIVVKCJ.js";
8
8
  import {
9
9
  DataViewsGrid
10
- } from "../chunk-USZMUOI6.js";
10
+ } from "../chunk-6DJQKK6Q.js";
11
11
  import {
12
12
  BaseListCard
13
13
  } from "../chunk-PJ5HXNBG.js";
@@ -23,16 +23,16 @@ import {
23
23
  DropIndicator,
24
24
  useDragItem
25
25
  } from "../chunk-K4EKTMTC.js";
26
- import "../chunk-PZPTTAO5.js";
27
- import "../chunk-PKGBW7KS.js";
26
+ import "../chunk-6KQWNPER.js";
27
+ import "../chunk-HM6T6EQR.js";
28
28
  import {
29
29
  DataViewsBoard
30
30
  } from "../chunk-NHHWNA5W.js";
31
31
  import "../chunk-SKOAJPOS.js";
32
- import "../chunk-6NWFX2XJ.js";
33
- import "../chunk-NBM3YJ4P.js";
32
+ import "../chunk-GOIFPE2E.js";
33
+ import "../chunk-X6WC5QBY.js";
34
34
  import "../chunk-QLJU7UUI.js";
35
- import "../chunk-QJWIX4YZ.js";
35
+ import "../chunk-VE7QYG3W.js";
36
36
  import "../chunk-EBSA4EYR.js";
37
37
  import "../chunk-GWUJIO6Z.js";
38
38
  import "../chunk-X3AFXHY5.js";
@@ -45,27 +45,27 @@ import "../chunk-K6WY2CHG.js";
45
45
  import "../chunk-6QYKZMEE.js";
46
46
  import "../chunk-DNT5PZLF.js";
47
47
  import "../chunk-5YDS6HO3.js";
48
- import "../chunk-CFAIMOFE.js";
48
+ import "../chunk-265RW6VX.js";
49
49
  import "../chunk-ACBHZG3Z.js";
50
50
  import "../chunk-5JWCNQSI.js";
51
51
  import "../chunk-O5UGAL2V.js";
52
52
  import "../chunk-G6EJLEVV.js";
53
- import "../chunk-X7HCS3HP.js";
54
- import "../chunk-6J27G2HT.js";
55
- import "../chunk-GRRW5NSR.js";
53
+ import "../chunk-PSYX2KEQ.js";
54
+ import "../chunk-KYFRZX5C.js";
55
+ import "../chunk-NHAB477Y.js";
56
56
  import "../chunk-5M4TYFR3.js";
57
- import "../chunk-UZCQHNXC.js";
58
- import "../chunk-VZCZAHMX.js";
59
- import "../chunk-NFCAXQ3F.js";
57
+ import "../chunk-WM44LYFN.js";
58
+ import "../chunk-2XOL4HJU.js";
59
+ import "../chunk-5P4GWCBS.js";
60
60
  import "../chunk-TTIZUZ57.js";
61
61
  import "../chunk-WSAUWJFO.js";
62
62
  import "../chunk-YLGY3D52.js";
63
- import "../chunk-JA6GKU65.js";
64
- import "../chunk-5NOCDQJD.js";
63
+ import "../chunk-SAVNRXHT.js";
64
+ import "../chunk-YLSBEWPJ.js";
65
65
  import "../chunk-HR7YTBR7.js";
66
66
  import "../chunk-DZEC6RFM.js";
67
- import "../chunk-EFLRNSE6.js";
68
- import "../chunk-BTJFOPCQ.js";
67
+ import "../chunk-5COIBRIP.js";
68
+ import "../chunk-3FLJ4ZWZ.js";
69
69
  import "../chunk-YGQX7BNI.js";
70
70
  import "../chunk-IMLIIW77.js";
71
71
  import "../chunk-LLZWB32X.js";
@@ -75,7 +75,7 @@ import {
75
75
  resolveScope
76
76
  } from "../chunk-PL2AB5HJ.js";
77
77
  import "../chunk-U5FOJBLG.js";
78
- import "../chunk-NQZNV3VR.js";
78
+ import "../chunk-LCVBED7G.js";
79
79
  import "../chunk-DUVH273U.js";
80
80
  import {
81
81
  DEFAULT_RAILS,
@@ -162,7 +162,7 @@ import "../chunk-KLJYIS5L.js";
162
162
  import "../chunk-C3UKR3NT.js";
163
163
  import "../chunk-D6KL74KI.js";
164
164
  import "../chunk-XCBQXSTR.js";
165
- import "../chunk-L4HUZCKV.js";
165
+ import "../chunk-XOCWAQOA.js";
166
166
  import "../chunk-G26Y2CCT.js";
167
167
  import "../chunk-JXAPKS5X.js";
168
168
  import "../chunk-2FGWKMW2.js";
@@ -208,8 +208,8 @@ import "../chunk-W2TCSYLI.js";
208
208
  import "../chunk-FKUYRQSP.js";
209
209
  import "../chunk-HDBP55R3.js";
210
210
  import "../chunk-BA4RHQ3B.js";
211
- import "../chunk-JE6FNSQV.js";
212
- import "../chunk-T2UP4XJF.js";
211
+ import "../chunk-W4O3BTD5.js";
212
+ import "../chunk-JTIKY2D3.js";
213
213
  import "../chunk-G2FUZALJ.js";
214
214
  import "../chunk-TAMIZE4Q.js";
215
215
  import "../chunk-AJBRO76D.js";
@@ -1,7 +1,7 @@
1
1
  import "../chunk-XCBQXSTR.js";
2
2
  import {
3
3
  createConfirmButton
4
- } from "../chunk-L4HUZCKV.js";
4
+ } from "../chunk-XOCWAQOA.js";
5
5
  import {
6
6
  withConfirmation
7
7
  } from "../chunk-G26Y2CCT.js";
@@ -18,8 +18,8 @@ import "../chunk-2IBFEHIX.js";
18
18
  import "../chunk-NZLOHAUV.js";
19
19
  import "../chunk-IQQX3NDO.js";
20
20
  import "../chunk-BA4RHQ3B.js";
21
- import "../chunk-JE6FNSQV.js";
22
- import "../chunk-T2UP4XJF.js";
21
+ import "../chunk-W4O3BTD5.js";
22
+ import "../chunk-JTIKY2D3.js";
23
23
  import "../chunk-G2FUZALJ.js";
24
24
  import "../chunk-TAMIZE4Q.js";
25
25
  import "../chunk-TYJR4GOF.js";
@@ -1,7 +1,7 @@
1
1
  import "../chunk-JQRKXMSH.js";
2
2
  import {
3
3
  NotificationStatusNotice
4
- } from "../chunk-WQBHJXXW.js";
4
+ } from "../chunk-TSHX4Q6M.js";
5
5
  import "../chunk-55FFONIV.js";
6
6
  import {
7
7
  detectNotificationBrowser,
@@ -11,8 +11,8 @@ import "../chunk-TP3XKS72.js";
11
11
  import "../chunk-PAO2IWU5.js";
12
12
  import "../chunk-L7VH6IMR.js";
13
13
  import "../chunk-3LHZCVGM.js";
14
- import "../chunk-JE6FNSQV.js";
15
- import "../chunk-T2UP4XJF.js";
14
+ import "../chunk-W4O3BTD5.js";
15
+ import "../chunk-JTIKY2D3.js";
16
16
  import "../chunk-G2FUZALJ.js";
17
17
  import "../chunk-TAMIZE4Q.js";
18
18
  import "../chunk-TYJR4GOF.js";
@@ -1,8 +1,8 @@
1
1
  import "../chunk-BA4RHQ3B.js";
2
2
  import {
3
3
  Button
4
- } from "../chunk-JE6FNSQV.js";
5
- import "../chunk-T2UP4XJF.js";
4
+ } from "../chunk-W4O3BTD5.js";
5
+ import "../chunk-JTIKY2D3.js";
6
6
  import "../chunk-G2FUZALJ.js";
7
7
  import "../chunk-TAMIZE4Q.js";
8
8
  import "../chunk-TYJR4GOF.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SubmitButton
3
- } from "../chunk-EXAXD7FA.js";
3
+ } from "../chunk-JQBODXRV.js";
4
4
  import {
5
5
  FormErrorSnackbar
6
6
  } from "../chunk-EERUSI52.js";
@@ -63,8 +63,8 @@ import "../chunk-C3UKR3NT.js";
63
63
  import "../chunk-D6KL74KI.js";
64
64
  import "../chunk-RTSK5OZT.js";
65
65
  import "../chunk-BA4RHQ3B.js";
66
- import "../chunk-JE6FNSQV.js";
67
- import "../chunk-T2UP4XJF.js";
66
+ import "../chunk-W4O3BTD5.js";
67
+ import "../chunk-JTIKY2D3.js";
68
68
  import "../chunk-G2FUZALJ.js";
69
69
  import "../chunk-TAMIZE4Q.js";
70
70
  import "../chunk-TYJR4GOF.js";
@@ -1,22 +1,22 @@
1
1
  import "../chunk-QGUNUXTT.js";
2
2
  import {
3
3
  SettingGroup
4
- } from "../chunk-CCCILWYZ.js";
4
+ } from "../chunk-DOROD5GQ.js";
5
5
  import {
6
6
  SETTING_GRID_CONTAINER,
7
7
  SettingGrid
8
- } from "../chunk-PPITQH3C.js";
8
+ } from "../chunk-WA36P74Q.js";
9
9
  import {
10
10
  SettingCard
11
- } from "../chunk-YDTCM5F6.js";
11
+ } from "../chunk-AGUK7VQP.js";
12
12
  import {
13
13
  SettingToggle
14
- } from "../chunk-KEDZTZCV.js";
15
- import "../chunk-INQO5AYV.js";
14
+ } from "../chunk-6FZ3PJXR.js";
15
+ import "../chunk-GF5VDLCC.js";
16
16
  import "../chunk-XJQNSMGA.js";
17
17
  import "../chunk-SALQ65SM.js";
18
- import "../chunk-ZCUVZ5PR.js";
19
- import "../chunk-4PYEDDYV.js";
18
+ import "../chunk-C622UXU6.js";
19
+ import "../chunk-3AQ25I6D.js";
20
20
  import "../chunk-IQWPVPV5.js";
21
21
  import "../chunk-BFRVMCQM.js";
22
22
  import "../chunk-RN7UJI7S.js";
@@ -49,8 +49,8 @@ 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-JE6FNSQV.js";
53
- import "../chunk-T2UP4XJF.js";
52
+ import "../chunk-W4O3BTD5.js";
53
+ import "../chunk-JTIKY2D3.js";
54
54
  import "../chunk-G2FUZALJ.js";
55
55
  import "../chunk-TAMIZE4Q.js";
56
56
  import "../chunk-TYJR4GOF.js";
@@ -105,20 +105,30 @@ function gradientStops(theme, color, palette) {
105
105
  // src/components/form/Button/Button.native.tsx
106
106
  import { jsx, jsxs } from "react/jsx-runtime";
107
107
  var MIN_WIDTH = 64;
108
+ function outlineOf(palette, wash) {
109
+ return {
110
+ container: { backgroundColor: "transparent", borderWidth: FIELD_BORDER_WIDTH, borderColor: palette.main },
111
+ pressed: { backgroundColor: wash, borderColor: palette.dark },
112
+ label: { color: palette.main }
113
+ };
114
+ }
115
+ function neutralOutline(theme) {
116
+ const ink = theme.palette.text.primary;
117
+ return {
118
+ container: {
119
+ backgroundColor: "transparent",
120
+ borderWidth: FIELD_BORDER_WIDTH,
121
+ borderColor: resolveFieldEdge(theme.palette.divider, theme.palette.background.paper)
122
+ },
123
+ pressed: { backgroundColor: alpha(ink, BUTTON_WASH_ALPHA), borderColor: theme.palette.text.secondary },
124
+ label: { color: ink }
125
+ };
126
+ }
108
127
  function paintFor(theme, variant, color, palette, active) {
109
128
  const wash = alpha(palette.main, BUTTON_WASH_ALPHA);
110
129
  switch (variant) {
111
130
  case "outline":
112
- return {
113
- // A neutral outline rests on the one field border, as on the web.
114
- container: {
115
- backgroundColor: "transparent",
116
- borderWidth: FIELD_BORDER_WIDTH,
117
- borderColor: color === "neutral" ? resolveFieldEdge(theme.palette.divider, theme.palette.background.paper) : palette.main
118
- },
119
- pressed: { backgroundColor: wash, borderColor: palette.dark },
120
- label: { color: palette.main }
121
- };
131
+ return color === "neutral" ? neutralOutline(theme) : outlineOf(palette, wash);
122
132
  case "ghost":
123
133
  return {
124
134
  container: { backgroundColor: "transparent" },
@@ -323,4 +333,4 @@ var styles = StyleSheet.create({
323
333
  export {
324
334
  Button
325
335
  };
326
- //# sourceMappingURL=chunk-MU5EIZSP.js.map
336
+ //# sourceMappingURL=chunk-2MFMON74.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"],"sourcesContent":["import * as React from 'react';\nimport {\n ActivityIndicator,\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_SPINNER_SIZE,\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 { renderTextChildren } from '../../../platform/text-children';\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 const iconOnly = !loading && 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 && !loading);\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\n/** The spinner that replaces the label while loading; `role` comes from react-native's ActivityIndicator. */\nfunction Spinner({ color, testID }: { color: string; testID: string }): React.JSX.Element {\n return (\n <ActivityIndicator\n size={Platform.OS === 'ios' ? 'small' : BUTTON_SPINNER_SIZE}\n color={color}\n testID={testID}\n accessibilityLabel=\"loading\"\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 =\n !loading && icon ? (\n <View style={styles.icon} 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 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 {loading ? <Spinner color={look.label.color as string} testID={idFor('loading')} /> : renderTextChildren(children, look.label, 1)}\n {iconPosition === 'right' ? iconNode : 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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAY,WAAW;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;;;ACMP,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,oBAAoB;AAC1B,IAAM,yBAAyB;AAC/B,IAAM,iCAAiC;AACvC,IAAM,qBAAqB;AAC3B,IAAM,mBAAmB;AAEzB,IAAM,cAAc;AACpB,IAAM,cAAc;AACpB,IAAM,oBAA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EACZ;AAAA,EACA,MAAM;AAAA,IACJ,YAAY;AAAA,IACZ,gBAAgB;AAAA,EAClB;AACF,CAAC;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Button
3
- } from "./chunk-MU5EIZSP.js";
3
+ } from "./chunk-2MFMON74.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-BUFQXX27.js.map
295
+ //# sourceMappingURL=chunk-CNTOS6KK.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  EmptyState
3
- } from "../chunks/chunk-BUFQXX27.js";
4
- import "../chunks/chunk-MU5EIZSP.js";
3
+ } from "../chunks/chunk-CNTOS6KK.js";
4
+ import "../chunks/chunk-2MFMON74.js";
5
5
  import "../chunks/chunk-3JBZE4I6.js";
6
6
  import "../chunks/chunk-ZRQHLTYG.js";
7
7
  import "../chunks/chunk-DN73KYIZ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Button
3
- } from "../chunks/chunk-MU5EIZSP.js";
3
+ } from "../chunks/chunk-2MFMON74.js";
4
4
  import "../chunks/chunk-3JBZE4I6.js";
5
5
  import "../chunks/chunk-ZRQHLTYG.js";
6
6
  import {
@@ -7,8 +7,8 @@ import {
7
7
  } from "../chunks/chunk-MJVSQXOD.js";
8
8
  import {
9
9
  EmptyState
10
- } from "../chunks/chunk-BUFQXX27.js";
11
- import "../chunks/chunk-MU5EIZSP.js";
10
+ } from "../chunks/chunk-CNTOS6KK.js";
11
+ import "../chunks/chunk-2MFMON74.js";
12
12
  import "../chunks/chunk-3JBZE4I6.js";
13
13
  import "../chunks/chunk-ZRQHLTYG.js";
14
14
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Button
3
- } from "../chunks/chunk-MU5EIZSP.js";
3
+ } from "../chunks/chunk-2MFMON74.js";
4
4
  import "../chunks/chunk-3JBZE4I6.js";
5
5
  import "../chunks/chunk-ZRQHLTYG.js";
6
6
  import "../chunks/chunk-5GJ5OG5R.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "../chunk-47VRDPR2.js";
10
10
  import {
11
11
  AppHeaderDetails
12
- } from "../chunk-XE4JVTM6.js";
12
+ } from "../chunk-4HHCVL5D.js";
13
13
  import {
14
14
  AppHeaderBrand
15
15
  } from "../chunk-GWFAINQ7.js";
@@ -31,8 +31,8 @@ import "../chunk-AEIJSEVV.js";
31
31
  import "../chunk-AL5E624U.js";
32
32
  import "../chunk-Z2JH5KW5.js";
33
33
  import "../chunk-LV7LSPBF.js";
34
- import "../chunk-JE6FNSQV.js";
35
- import "../chunk-T2UP4XJF.js";
34
+ import "../chunk-W4O3BTD5.js";
35
+ import "../chunk-JTIKY2D3.js";
36
36
  import "../chunk-G2FUZALJ.js";
37
37
  import "../chunk-TAMIZE4Q.js";
38
38
  import "../chunk-TYJR4GOF.js";
@@ -4,7 +4,7 @@ import {
4
4
  GoogleIcon,
5
5
  SocialLoginButton,
6
6
  SocialLoginContainer
7
- } from "./chunk-3UQMIFPA.js";
7
+ } from "./chunk-QNXCCBRW.js";
8
8
  import "./chunk-INGPH3YQ.js";
9
9
  import "./chunk-6GP2DOOO.js";
10
10
  import "./chunk-63D2UYRJ.js";
@@ -20,8 +20,8 @@ import "./chunk-W2TCSYLI.js";
20
20
  import "./chunk-FKUYRQSP.js";
21
21
  import "./chunk-HDBP55R3.js";
22
22
  import "./chunk-BA4RHQ3B.js";
23
- import "./chunk-JE6FNSQV.js";
24
- import "./chunk-T2UP4XJF.js";
23
+ import "./chunk-W4O3BTD5.js";
24
+ import "./chunk-JTIKY2D3.js";
25
25
  import "./chunk-G2FUZALJ.js";
26
26
  import "./chunk-TAMIZE4Q.js";
27
27
  import "./chunk-AJBRO76D.js";
@@ -1 +1 @@
1
- {"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Button/Button.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAwBtE,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB;AAWD,eAAO,MAAM,iBAAiB,GAAI,OAAO,KAAK,EAAE,OAAO,MAAM,KAAG,YAsB/D,CAAC;AAgDF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GACpB,MAAM,MAAM,EAAE,UAAU,OAAO,MAC/B,OAAO,KAAK,KAAG,SAKf,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK,KAAG,SAoBjD,CAAC;AA0HH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,KAAK,EACZ,SAAS,MAAM,GAAG,SAAS,EAC3B,SAAS,YAAY,EACrB,OAAO,MAAM,KACZ,SAAyE,CAAC;AAkC7E;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,KAAK,EACZ,SAAS,YAAY,EACrB,OAAO,OAAO,EACd,QAAQ,OAAO,KACd,SAGD,CAAC"}
1
+ {"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Button/Button.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAwBtE,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB;AAWD,eAAO,MAAM,iBAAiB,GAAI,OAAO,KAAK,EAAE,OAAO,MAAM,KAAG,YAsB/D,CAAC;AAgDF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GACpB,MAAM,MAAM,EAAE,UAAU,OAAO,MAC/B,OAAO,KAAK,KAAG,SAKf,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK,KAAG,SAoBjD,CAAC;AAiIH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,KAAK,EACZ,SAAS,MAAM,GAAG,SAAS,EAC3B,SAAS,YAAY,EACrB,OAAO,MAAM,KACZ,SAAyE,CAAC;AAkC7E;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,KAAK,EACZ,SAAS,YAAY,EACrB,OAAO,OAAO,EACd,QAAQ,OAAO,KACd,SAGD,CAAC"}
@@ -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,EAOL,IAAI,EACJ,KAAK,qBAAqB,EAE1B,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAoQtB,eAAO,MAAM,MAAM;;;;;;8BA6CjB,CAAC"}
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,EAOL,IAAI,EACJ,KAAK,qBAAqB,EAE1B,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAmRtB,eAAO,MAAM,MAAM;;;;;;8BA6CjB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  UserAvatar,
3
3
  UserMenu
4
- } from "./chunk-4JZ6XDVA.js";
4
+ } from "./chunk-VLRHESS2.js";
5
5
  import "./chunk-UDQSIRAP.js";
6
6
  import "./chunk-AKC5GRJF.js";
7
7
  import "./chunk-NVXRV3PL.js";
@@ -15,8 +15,8 @@ import "./chunk-W2TCSYLI.js";
15
15
  import "./chunk-FKUYRQSP.js";
16
16
  import "./chunk-HDBP55R3.js";
17
17
  import "./chunk-BA4RHQ3B.js";
18
- import "./chunk-JE6FNSQV.js";
19
- import "./chunk-T2UP4XJF.js";
18
+ import "./chunk-W4O3BTD5.js";
19
+ import "./chunk-JTIKY2D3.js";
20
20
  import "./chunk-G2FUZALJ.js";
21
21
  import "./chunk-TAMIZE4Q.js";
22
22
  import "./chunk-AJBRO76D.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@12-apps/ui",
3
- "version": "6.62.0",
3
+ "version": "6.62.1",
4
4
  "license": "MIT",
5
5
  "packageManager": "pnpm@10.34.5",
6
6
  "type": "module",
@@ -62,6 +62,33 @@ interface Paint {
62
62
  * it paints the gradient's first stop. A host wanting the real thing adds a
63
63
  * gradient library; the parity ledger records this.
64
64
  */
65
+ /** A coloured outline: its colour for the border and the label, washed when pressed. */
66
+ function outlineOf(palette: UiPaletteColor, wash: string): Paint {
67
+ return {
68
+ container: { backgroundColor: 'transparent', borderWidth: FIELD_BORDER_WIDTH, borderColor: palette.main },
69
+ pressed: { backgroundColor: wash, borderColor: palette.dark },
70
+ label: { color: palette.main },
71
+ };
72
+ }
73
+
74
+ /**
75
+ * A neutral outline, as on the web: it rests on the one field border and
76
+ * writes in the theme's text ink, a role that turns with the mode — grey 700
77
+ * was dark on a dark ground.
78
+ */
79
+ function neutralOutline(theme: UiTheme): Paint {
80
+ const ink = theme.palette.text.primary;
81
+ return {
82
+ container: {
83
+ backgroundColor: 'transparent',
84
+ borderWidth: FIELD_BORDER_WIDTH,
85
+ borderColor: resolveFieldEdge(theme.palette.divider, theme.palette.background.paper),
86
+ },
87
+ pressed: { backgroundColor: alpha(ink, BUTTON_WASH_ALPHA), borderColor: theme.palette.text.secondary },
88
+ label: { color: ink },
89
+ };
90
+ }
91
+
65
92
  function paintFor(
66
93
  theme: UiTheme,
67
94
  variant: ButtonVariant,
@@ -72,19 +99,7 @@ function paintFor(
72
99
  const wash = alpha(palette.main, BUTTON_WASH_ALPHA);
73
100
  switch (variant) {
74
101
  case 'outline':
75
- return {
76
- // A neutral outline rests on the one field border, as on the web.
77
- container: {
78
- backgroundColor: 'transparent',
79
- borderWidth: FIELD_BORDER_WIDTH,
80
- borderColor:
81
- color === 'neutral'
82
- ? resolveFieldEdge(theme.palette.divider, theme.palette.background.paper)
83
- : palette.main,
84
- },
85
- pressed: { backgroundColor: wash, borderColor: palette.dark },
86
- label: { color: palette.main },
87
- };
102
+ return color === 'neutral' ? neutralOutline(theme) : outlineOf(palette, wash);
88
103
  case 'ghost':
89
104
  return {
90
105
  container: { backgroundColor: 'transparent' },