@primer/react 38.0.0-rc.3 → 38.0.0-rc.4

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 (143) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/ActionBar/ActionBar.d.ts.map +1 -1
  3. package/dist/ActionBar/ActionBar.js +6 -2
  4. package/dist/ActionList/Description.d.ts.map +1 -1
  5. package/dist/ActionList/Description.js +0 -1
  6. package/dist/ActionList/Visuals.js +2 -2
  7. package/dist/Autocomplete/AutocompleteMenu.js +2 -2
  8. package/dist/BaseStyles.d.ts +1 -2
  9. package/dist/BaseStyles.d.ts.map +1 -1
  10. package/dist/BaseStyles.js +1 -3
  11. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  12. package/dist/Breadcrumbs/Breadcrumbs.js +34 -48
  13. package/dist/Button/ButtonBase.js +6 -6
  14. package/dist/Button/LinkButton.d.ts +3 -3
  15. package/dist/Button/LinkButton.d.ts.map +1 -1
  16. package/dist/Button/LinkButton.js +0 -3
  17. package/dist/Button/index.d.ts +1 -0
  18. package/dist/Button/index.d.ts.map +1 -1
  19. package/dist/ButtonGroup/ButtonGroup.d.ts +2 -3
  20. package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  21. package/dist/ButtonGroup/ButtonGroup.js +41 -36
  22. package/dist/Checkbox/Checkbox.d.ts +1 -2
  23. package/dist/Checkbox/Checkbox.d.ts.map +1 -1
  24. package/dist/Checkbox/Checkbox.js +48 -79
  25. package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -3
  26. package/dist/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
  27. package/dist/CounterLabel/CounterLabel.d.ts +2 -3
  28. package/dist/CounterLabel/CounterLabel.d.ts.map +1 -1
  29. package/dist/CounterLabel/CounterLabel.js +1 -3
  30. package/dist/FilteredActionList/FilteredActionList-e1eb1b75.css +2 -0
  31. package/dist/FilteredActionList/FilteredActionList-e1eb1b75.css.map +1 -0
  32. package/dist/FilteredActionList/FilteredActionList.d.ts +2 -3
  33. package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
  34. package/dist/FilteredActionList/FilteredActionList.js +10 -9
  35. package/dist/FilteredActionList/FilteredActionList.module.css.js +2 -2
  36. package/dist/FilteredActionList/FilteredActionListLoaders-a46a8ea4.css +2 -0
  37. package/dist/FilteredActionList/FilteredActionListLoaders-a46a8ea4.css.map +1 -0
  38. package/dist/FilteredActionList/FilteredActionListLoaders.d.ts.map +1 -1
  39. package/dist/FilteredActionList/FilteredActionListLoaders.js +12 -29
  40. package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +2 -2
  41. package/dist/Flash/Flash.d.ts +1 -2
  42. package/dist/Flash/Flash.d.ts.map +1 -1
  43. package/dist/Flash/Flash.js +38 -45
  44. package/dist/Header/Header.d.ts +3 -4
  45. package/dist/Header/Header.d.ts.map +1 -1
  46. package/dist/Header/Header.js +10 -13
  47. package/dist/InlineMessage/InlineMessage.d.ts +1 -2
  48. package/dist/InlineMessage/InlineMessage.d.ts.map +1 -1
  49. package/dist/InlineMessage/InlineMessage.js +49 -65
  50. package/dist/PageHeader/PageHeader.d.ts +5 -5
  51. package/dist/PageHeader/PageHeader.d.ts.map +1 -1
  52. package/dist/PageHeader/PageHeader.js +330 -507
  53. package/dist/Pagehead/Pagehead.d.ts +2 -3
  54. package/dist/Pagehead/Pagehead.d.ts.map +1 -1
  55. package/dist/Pagehead/Pagehead.js +2 -2
  56. package/dist/ProgressBar/{ProgressBar-181186d4.css → ProgressBar-d27aca1d.css} +2 -2
  57. package/dist/ProgressBar/ProgressBar-d27aca1d.css.map +1 -0
  58. package/dist/ProgressBar/ProgressBar.d.ts +4 -9
  59. package/dist/ProgressBar/ProgressBar.d.ts.map +1 -1
  60. package/dist/ProgressBar/ProgressBar.js +9 -14
  61. package/dist/ProgressBar/ProgressBar.module.css.js +1 -1
  62. package/dist/ProgressBar/index.d.ts +2 -2
  63. package/dist/Radio/Radio.d.ts +1 -2
  64. package/dist/Radio/Radio.d.ts.map +1 -1
  65. package/dist/Radio/Radio.js +1 -3
  66. package/dist/RadioGroup/RadioGroup.d.ts +3 -4
  67. package/dist/RadioGroup/RadioGroup.d.ts.map +1 -1
  68. package/dist/RadioGroup/index.d.ts +1 -0
  69. package/dist/RadioGroup/index.d.ts.map +1 -1
  70. package/dist/RelativeTime/RelativeTime.d.ts +1 -3
  71. package/dist/RelativeTime/RelativeTime.d.ts.map +1 -1
  72. package/dist/Spinner/Spinner.d.ts +4 -5
  73. package/dist/Spinner/Spinner.d.ts.map +1 -1
  74. package/dist/Spinner/Spinner.js +49 -81
  75. package/dist/Timeline/Timeline.d.ts +11 -18
  76. package/dist/Timeline/Timeline.d.ts.map +1 -1
  77. package/dist/Timeline/Timeline.js +5 -6
  78. package/dist/ToggleSwitch/ToggleSwitch.d.ts +4 -0
  79. package/dist/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
  80. package/dist/ToggleSwitch/ToggleSwitch.js +195 -182
  81. package/dist/TreeView/TreeView-bdf34914.css +2 -0
  82. package/dist/TreeView/TreeView-bdf34914.css.map +1 -0
  83. package/dist/TreeView/TreeView.d.ts +15 -0
  84. package/dist/TreeView/TreeView.d.ts.map +1 -1
  85. package/dist/TreeView/TreeView.js +241 -10
  86. package/dist/TreeView/TreeView.module.css.js +2 -2
  87. package/dist/Truncate/Truncate.d.ts +1 -2
  88. package/dist/Truncate/Truncate.d.ts.map +1 -1
  89. package/dist/Truncate/Truncate.js +2 -6
  90. package/dist/UnderlineNav/UnderlineNav-78db938f.css +2 -0
  91. package/dist/UnderlineNav/UnderlineNav-78db938f.css.map +1 -0
  92. package/dist/UnderlineNav/UnderlineNav.d.ts +0 -3
  93. package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  94. package/dist/UnderlineNav/UnderlineNav.js +8 -25
  95. package/dist/UnderlineNav/UnderlineNav.module.css.js +5 -0
  96. package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css +2 -0
  97. package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css.map +1 -0
  98. package/dist/UnderlineNav/UnderlineNavItem.d.ts +1 -2
  99. package/dist/UnderlineNav/UnderlineNavItem.d.ts.map +1 -1
  100. package/dist/UnderlineNav/UnderlineNavItem.js +49 -69
  101. package/dist/UnderlineNav/UnderlineNavItem.module.css.js +5 -0
  102. package/dist/UnderlineNav/styles.d.ts +1 -1
  103. package/dist/UnderlineNav/styles.js +1 -1
  104. package/dist/deprecated/FilteredSearch/FilteredSearch-d30f5bbc.css +2 -0
  105. package/dist/deprecated/FilteredSearch/FilteredSearch-d30f5bbc.css.map +1 -0
  106. package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +3 -4
  107. package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts.map +1 -1
  108. package/dist/deprecated/FilteredSearch/FilteredSearch.js +48 -7
  109. package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +5 -0
  110. package/dist/deprecated/index.d.ts +0 -2
  111. package/dist/deprecated/index.d.ts.map +1 -1
  112. package/dist/deprecated/index.js +0 -1
  113. package/dist/experimental/SelectPanel2/SelectPanel.js +2 -2
  114. package/dist/experimental/index.d.ts +2 -3
  115. package/dist/experimental/index.d.ts.map +1 -1
  116. package/dist/experimental/index.js +1 -2
  117. package/dist/index.d.ts +3 -4
  118. package/dist/index.d.ts.map +1 -1
  119. package/dist/index.js +0 -1
  120. package/dist/internal/components/TextInputInnerVisualSlot.js +2 -2
  121. package/dist/utils/create-component.d.ts +1 -3
  122. package/dist/utils/create-component.d.ts.map +1 -1
  123. package/dist/utils/create-component.js +3 -8
  124. package/generated/components.json +35 -242
  125. package/package.json +1 -1
  126. package/dist/DropdownStyles.d.ts +0 -4
  127. package/dist/DropdownStyles.d.ts.map +0 -1
  128. package/dist/FilteredActionList/FilteredActionList-96b126d7.css +0 -2
  129. package/dist/FilteredActionList/FilteredActionList-96b126d7.css.map +0 -1
  130. package/dist/FilteredActionList/FilteredActionListLoaders-6f14c45b.css +0 -2
  131. package/dist/FilteredActionList/FilteredActionListLoaders-6f14c45b.css.map +0 -1
  132. package/dist/PointerBox/PointerBox.d.ts +0 -28
  133. package/dist/PointerBox/PointerBox.d.ts.map +0 -1
  134. package/dist/PointerBox/PointerBox.js +0 -65
  135. package/dist/PointerBox/index.d.ts +0 -3
  136. package/dist/PointerBox/index.d.ts.map +0 -1
  137. package/dist/ProgressBar/ProgressBar-181186d4.css.map +0 -1
  138. package/dist/TreeView/TreeView-cd08cabc.css +0 -2
  139. package/dist/TreeView/TreeView-cd08cabc.css.map +0 -1
  140. package/dist/internal/components/Caret-e686f04c.css +0 -2
  141. package/dist/internal/components/Caret-e686f04c.css.map +0 -1
  142. package/dist/internal/components/Caret.js +0 -87
  143. package/dist/internal/components/Caret.module.css.js +0 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,71 @@
1
1
  # @primer/react
2
2
 
3
+ ## 38.0.0-rc.4
4
+
5
+ ### Major Changes
6
+
7
+ - [#6857](https://github.com/primer/react/pull/6857) [`b9b558e`](https://github.com/primer/react/commit/b9b558efe1033150b05adc88d28234db5dc82f95) Thanks [@pksjce](https://github.com/pksjce)! - Remove PointerBox from @primer-react
8
+
9
+ - [#6708](https://github.com/primer/react/pull/6708) [`b7b8a36`](https://github.com/primer/react/commit/b7b8a36d14b3c5b6f9c289423691fe9285eae786) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Remove sx prop support from the Spinner component.
10
+
11
+ - [#6833](https://github.com/primer/react/pull/6833) [`5ad1e93`](https://github.com/primer/react/commit/5ad1e939c1ef494f7680b0753a4d7c6296e088d6) Thanks [@joshblack](https://github.com/joshblack)! - Remove sx support from Radio
12
+
13
+ - [#6841](https://github.com/primer/react/pull/6841) [`3e02e2c`](https://github.com/primer/react/commit/3e02e2c235a3633b646b8f2a493f3a23e17187bf) Thanks [@joshblack](https://github.com/joshblack)! - Remove support for `sx` from `deprecated/Pagehead`
14
+
15
+ - [#6692](https://github.com/primer/react/pull/6692) [`bb8d648`](https://github.com/primer/react/commit/bb8d648a42ec84e9baefae00fa87ede2be449e64) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Remove sx Props and BoxWithFallBack from Timeline component.
16
+
17
+ - [#6668](https://github.com/primer/react/pull/6668) [`acb6233`](https://github.com/primer/react/commit/acb6233fa0cf715d660ae222ebca9853115cb707) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Update UnderlineNav component to no longer support sx and remove Box usage from it.
18
+
19
+ - [#6835](https://github.com/primer/react/pull/6835) [`961c1c4`](https://github.com/primer/react/commit/961c1c48d942b9d8d81289a5d09d78f4d985f5da) Thanks [@joshblack](https://github.com/joshblack)! - Remove support for `sx` from `ButtonGroup`
20
+
21
+ - [#6834](https://github.com/primer/react/pull/6834) [`fa70b5e`](https://github.com/primer/react/commit/fa70b5eaae4c68ccac2bbfa44546ee85594a054a) Thanks [@joshblack](https://github.com/joshblack)! - Remove the `sx` prop from `Flash`
22
+
23
+ - [#6876](https://github.com/primer/react/pull/6876) [`2102252`](https://github.com/primer/react/commit/2102252ef34899bb37c52ca4df193ba5cca41a94) Thanks [@llastflowers](https://github.com/llastflowers)! - Update FilteredActionList and FilteredActionListLoaders components to no longer support sx
24
+
25
+ - [#6840](https://github.com/primer/react/pull/6840) [`aba8050`](https://github.com/primer/react/commit/aba8050ee9d324fa53a7b81d30b4f8dc7186c70a) Thanks [@joshblack](https://github.com/joshblack)! - Remove support for `sx` prop from `deprecated/FilteredSearch`
26
+
27
+ - [#6685](https://github.com/primer/react/pull/6685) [`00261c9`](https://github.com/primer/react/commit/00261c934fe88a74ef310c3134fe202226156b4b) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Remove the sx prop from RadioGroup and Truncate.
28
+
29
+ - [#6878](https://github.com/primer/react/pull/6878) [`7081dd3`](https://github.com/primer/react/commit/7081dd3b45f7dae08f7a39038be95dbf20dd8a27) Thanks [@llastflowers](https://github.com/llastflowers)! - Update BaseStyles component to no longer support sx
30
+
31
+ - [#6679](https://github.com/primer/react/pull/6679) [`6158135`](https://github.com/primer/react/commit/6158135e42be9486bb7de35fbedf96e412b8a1d7) Thanks [@llastflowers](https://github.com/llastflowers)! - Update CounterLabel component to no longer support sx
32
+
33
+ - [#6827](https://github.com/primer/react/pull/6827) [`6843040`](https://github.com/primer/react/commit/6843040ad9b9810cb14f6186e53b01e83bed60f8) Thanks [@joshblack](https://github.com/joshblack)! - Remove support for the sx prop from RelativeTime
34
+
35
+ - [#6813](https://github.com/primer/react/pull/6813) [`a1a4ad0`](https://github.com/primer/react/commit/a1a4ad00b87b489f6341aa818a9b8b8662fe2a82) Thanks [@joshblack](https://github.com/joshblack)! - Remove support for `sx` prop for `InlineMessage`
36
+
37
+ - [#6866](https://github.com/primer/react/pull/6866) [`3237a4e`](https://github.com/primer/react/commit/3237a4e549779a2b3144b1f48974e533d28cca2a) Thanks [@francinelucca](https://github.com/francinelucca)! - chore(LinkButton): remove sx from LinkButton
38
+
39
+ - [#6655](https://github.com/primer/react/pull/6655) [`092185f`](https://github.com/primer/react/commit/092185f7b9d6c70296e629e03790676502b701e5) Thanks [@llastflowers](https://github.com/llastflowers)! - Update CheckboxGroup component to no longer support sx
40
+
41
+ - [#6654](https://github.com/primer/react/pull/6654) [`513cc3f`](https://github.com/primer/react/commit/513cc3feed5723632e54f07cae9d4397e3783fdc) Thanks [@llastflowers](https://github.com/llastflowers)! - Update Checkbox component to no longer support sx
42
+
43
+ - [#6837](https://github.com/primer/react/pull/6837) [`134f96e`](https://github.com/primer/react/commit/134f96e81476f829f2b0f0b44fa73cc1604983d5) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Update ProgressBar to no longer support sx
44
+
45
+ - [#6839](https://github.com/primer/react/pull/6839) [`32febac`](https://github.com/primer/react/commit/32febac10a887cce418abf6f4419cfb100a8f292) Thanks [@joshblack](https://github.com/joshblack)! - Remove support for `sx` from `Header`
46
+
47
+ - [#6871](https://github.com/primer/react/pull/6871) [`44b3d73`](https://github.com/primer/react/commit/44b3d732157048059681f3fdcb86c5d77a59aec5) Thanks [@joshblack](https://github.com/joshblack)! - Remove support for `sx` from `PageHeader`
48
+
49
+ - [#6863](https://github.com/primer/react/pull/6863) [`9614c0e`](https://github.com/primer/react/commit/9614c0eae7d77bdf879df474c44d613b673e6d4e) Thanks [@pksjce](https://github.com/pksjce)! - Remove Banner from experimental
50
+
51
+ ### Minor Changes
52
+
53
+ - [#6456](https://github.com/primer/react/pull/6456) [`fbd3ac7`](https://github.com/primer/react/commit/fbd3ac75a67b89635dcd28879a1b4a93cef70289) Thanks [@TylerJDev](https://github.com/TylerJDev)! - TreeView: Add trailing actions prop `secondaryActions`
54
+
55
+ - [#6855](https://github.com/primer/react/pull/6855) [`356a129`](https://github.com/primer/react/commit/356a129d2a1a0c02d9ca59280e7711e501c0d20d) Thanks [@cheshire137](https://github.com/cheshire137)! - Add buttonLabelOn and buttonLabelOff to ToggleSwitch
56
+
57
+ ### Patch Changes
58
+
59
+ - [#6829](https://github.com/primer/react/pull/6829) [`b568765`](https://github.com/primer/react/commit/b568765159a22fefbb2e521947a6c99109cb6f19) Thanks [@francinelucca](https://github.com/francinelucca)! - chore: fix ActionBar gap issue
60
+
61
+ - [#6879](https://github.com/primer/react/pull/6879) [`c8fc6b8`](https://github.com/primer/react/commit/c8fc6b81d61834ab143a578b379d7dcc49e17d62) Thanks [@francinelucca](https://github.com/francinelucca)! - chore(FilteredActionList): fix className override
62
+
63
+ - [#6896](https://github.com/primer/react/pull/6896) [`5c29b01`](https://github.com/primer/react/commit/5c29b010db51e85c387963aee45ee97f12aae7ef) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Fix typing issues in PageHeader exports.
64
+
65
+ - [#6881](https://github.com/primer/react/pull/6881) [`8d52362`](https://github.com/primer/react/commit/8d523624366dda9cbb5c200560ffcf9b91f57655) Thanks [@langermank](https://github.com/langermank)! - Implement forced colors for progress bar
66
+
67
+ - [#6854](https://github.com/primer/react/pull/6854) [`dd8eeed`](https://github.com/primer/react/commit/dd8eeeddb39a7afbdd38d3df8f0568f176e5d4de) Thanks [@pksjce](https://github.com/pksjce)! - Breadcrumbs: Fix esc button not being able to focus on the menubuttonRef
68
+
3
69
  ## 38.0.0-rc.3
4
70
 
5
71
  ### Major Changes
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../src/ActionBar/ActionBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkD,MAAM,OAAO,CAAA;AAStE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,WAAW,CAAA;AAyB9C,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAExC,KAAK,SAAS,GACV;IAAC,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IAAC,iBAAiB,CAAC,EAAE,SAAS,CAAA;CAAC,GACjF;IAAC,YAAY,CAAC,EAAE,SAAS,CAAC;IAAC,iBAAiB,EAAE,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAA;CAAC,CAAA;AAE1F,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,SAAS,CAAA;AAEb,MAAM,MAAM,wBAAwB,GAAG;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAC,GAAG,eAAe,CAAA;AA+E7E,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CA8HvE,CAAA;AAED,eAAO,MAAM,mBAAmB,0FA8B/B,CAAA;AAED,eAAO,MAAM,eAAe,yBAS3B,CAAA"}
1
+ {"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../src/ActionBar/ActionBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkD,MAAM,OAAO,CAAA;AAStE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,WAAW,CAAA;AA2B9C,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAExC,KAAK,SAAS,GACV;IAAC,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IAAC,iBAAiB,CAAC,EAAE,SAAS,CAAA;CAAC,GACjF;IAAC,YAAY,CAAC,EAAE,SAAS,CAAC;IAAC,iBAAiB,EAAE,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAA;CAAC,CAAA;AAE1F,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,SAAS,CAAA;AAEb,MAAM,MAAM,wBAAwB,GAAG;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAC,GAAG,eAAe,CAAA;AA+E7E,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CA8HvE,CAAA;AAED,eAAO,MAAM,mBAAmB,0FA8B/B,CAAA;AAED,eAAO,MAAM,eAAe,yBAS3B,CAAA"}
@@ -14,6 +14,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
14
14
  import { FocusKeys } from '@primer/behaviors';
15
15
  import { ActionMenu } from '../ActionMenu/ActionMenu.js';
16
16
 
17
+ const ACTIONBAR_ITEM_GAP = 8;
17
18
  const ActionBarContext = /*#__PURE__*/React.createContext({
18
19
  size: 'medium',
19
20
  setChildrenWidth: () => null
@@ -23,7 +24,7 @@ const ActionBarContext = /*#__PURE__*/React.createContext({
23
24
  small (28px), medium (32px), large (40px)
24
25
  */
25
26
 
26
- const MORE_BTN_WIDTH = 86;
27
+ const MORE_BTN_WIDTH = 32;
27
28
  const getValidChildren = children => {
28
29
  return React.Children.toArray(children).filter(child => {
29
30
  return /*#__PURE__*/React.isValidElement(child);
@@ -34,7 +35,7 @@ const calculatePossibleItems = (childWidthArray, navWidth, moreMenuWidth = 0) =>
34
35
  let breakpoint = childWidthArray.length; // assume all items will fit
35
36
  let sumsOfChildWidth = 0;
36
37
  for (const [index, childWidth] of childWidthArray.entries()) {
37
- sumsOfChildWidth = sumsOfChildWidth + childWidth.width; // + GAP
38
+ sumsOfChildWidth += index > 0 ? childWidth.width + ACTIONBAR_ITEM_GAP : childWidth.width;
38
39
  if (sumsOfChildWidth > widthToFit) {
39
40
  breakpoint = index;
40
41
  break;
@@ -179,6 +180,9 @@ const ActionBar = props => {
179
180
  ref: listRef,
180
181
  role: "toolbar",
181
182
  className: styles.List,
183
+ style: {
184
+ gap: `${ACTIONBAR_ITEM_GAP}px`
185
+ },
182
186
  children: [listItems, menuItems.length > 0 && /*#__PURE__*/jsxs(ActionMenu, {
183
187
  children: [/*#__PURE__*/jsx(ActionMenu.Anchor, {
184
188
  children: /*#__PURE__*/jsx(IconButton, {
@@ -1 +1 @@
1
- {"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../src/ActionList/Description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAMjC,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IAE5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,MAAM,CAAA;AAEV,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAiDrF,CAAA"}
1
+ {"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../src/ActionList/Description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAMjC,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IAE5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,MAAM,CAAA;AAEV,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAgDrF,CAAA"}
@@ -42,7 +42,6 @@ const Description = ({
42
42
  ref: containerRef,
43
43
  id: inlineDescriptionId,
44
44
  className: clsx(className, classes.Description),
45
- sx: sx,
46
45
  title: effectiveTitle,
47
46
  inline: true,
48
47
  maxWidth: "100%",
@@ -6,7 +6,7 @@ import classes from './ActionList.module.css.js';
6
6
  import { BoxWithFallback } from '../internal/components/BoxWithFallback.js';
7
7
  import { jsx } from 'react/jsx-runtime';
8
8
  import { Tooltip } from '../TooltipV2/Tooltip.js';
9
- import StyledSpinner from '../Spinner/Spinner.js';
9
+ import Spinner from '../Spinner/Spinner.js';
10
10
 
11
11
  const VisualContainer = ({
12
12
  className,
@@ -85,7 +85,7 @@ const VisualOrIndicator = ({
85
85
  })
86
86
  }) : /*#__PURE__*/jsx(VisualComponent, {
87
87
  className: className,
88
- children: /*#__PURE__*/jsx(StyledSpinner, {
88
+ children: /*#__PURE__*/jsx(Spinner, {
89
89
  size: "small"
90
90
  })
91
91
  });
@@ -11,7 +11,7 @@ import VisuallyHidden from '../_VisuallyHidden.js';
11
11
  import { isElement } from 'react-is';
12
12
  import classes from './AutocompleteMenu.module.css.js';
13
13
  import { jsx, jsxs } from 'react/jsx-runtime';
14
- import StyledSpinner from '../Spinner/Spinner.js';
14
+ import Spinner from '../Spinner/Spinner.js';
15
15
 
16
16
  const getDefaultSortFn = isItemSelectedFn => (itemIdA, itemIdB) => isItemSelectedFn(itemIdA) === isItemSelectedFn(itemIdB) ? 0 : isItemSelectedFn(itemIdA) ? -1 : 1;
17
17
  const menuScrollMargins = {
@@ -198,7 +198,7 @@ function AutocompleteMenu(props) {
198
198
  isVisible: showMenu,
199
199
  children: loading ? /*#__PURE__*/jsx("div", {
200
200
  className: classes.SpinnerWrapper,
201
- children: /*#__PURE__*/jsx(StyledSpinner, {})
201
+ children: /*#__PURE__*/jsx(Spinner, {})
202
202
  }) : /*#__PURE__*/jsx("div", {
203
203
  ref: listContainerRef,
204
204
  children: allItemsToRender.length ? /*#__PURE__*/jsx(ActionList, {
@@ -1,14 +1,13 @@
1
1
  import type React from 'react';
2
2
  import { type CSSProperties, type PropsWithChildren } from 'react';
3
3
  import type { SystemCommonProps, SystemTypographyProps } from './constants';
4
- import type { SxProp } from './sx';
5
4
  import 'focus-visible';
6
5
  export type BaseStylesProps = PropsWithChildren & {
7
6
  as?: React.ComponentType<any> | keyof JSX.IntrinsicElements;
8
7
  className?: string;
9
8
  style?: CSSProperties;
10
9
  color?: string;
11
- } & SystemTypographyProps & SystemCommonProps & SxProp;
10
+ } & SystemTypographyProps & SystemCommonProps;
12
11
  declare function BaseStyles({ children, color, fontFamily, lineHeight, className, as: Component, style, ...rest }: BaseStylesProps): React.JSX.Element;
13
12
  export default BaseStyles;
14
13
  //# sourceMappingURL=BaseStyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseStyles.d.ts","sourceRoot":"","sources":["../src/BaseStyles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAC,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEhE,OAAO,KAAK,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,aAAa,CAAA;AAEzE,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,MAAM,CAAA;AAIhC,OAAO,eAAe,CAAA;AAGtB,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAEhD,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAA;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,qBAAqB,GACvB,iBAAiB,GACjB,MAAM,CAAA;AAER,iBAAS,UAAU,CAAC,EAClB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,EAAE,EAAE,SAAiB,EACrB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,qBAgCjB;AAED,eAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"BaseStyles.d.ts","sourceRoot":"","sources":["../src/BaseStyles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAC,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEhE,OAAO,KAAK,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,aAAa,CAAA;AAKzE,OAAO,eAAe,CAAA;AAEtB,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAEhD,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAA;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,qBAAqB,GACvB,iBAAiB,CAAA;AAEnB,iBAAS,UAAU,CAAC,EAClB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,EAAE,EAAE,SAAiB,EACrB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,qBA+BjB;AAED,eAAe,UAAU,CAAA"}
@@ -3,7 +3,6 @@ import { clsx } from 'clsx';
3
3
  import { useTheme } from './ThemeProvider.js';
4
4
  import classes from './BaseStyles.module.css.js';
5
5
  import 'focus-visible';
6
- import { BoxWithFallback } from './internal/components/BoxWithFallback.js';
7
6
  import { jsx } from 'react/jsx-runtime';
8
7
 
9
8
  function BaseStyles(t0) {
@@ -92,8 +91,7 @@ function BaseStyles(t0) {
92
91
  }
93
92
  let t6;
94
93
  if ($[18] !== Component || $[19] !== children || $[20] !== dayScheme || $[21] !== newClassName || $[22] !== nightScheme || $[23] !== rest || $[24] !== t4 || $[25] !== t5) {
95
- t6 = /*#__PURE__*/jsx(BoxWithFallback, {
96
- as: Component,
94
+ t6 = /*#__PURE__*/jsx(Component, {
97
95
  className: newClassName,
98
96
  "data-portal-root": true,
99
97
  "data-color-mode": t4,
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,EAAE,EAAC,MAAM,SAAS,CAAA;AAC/B,OAAO,KAA0D,MAAM,OAAO,CAAA;AAC9E,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAElD,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;AAa/F,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CACpD;IACE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAA;IAC7C;;;;OAIG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;CAChC,GAAG,MAAM,CACX,CAAA;AA+GD,iBAAS,WAAW,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,QAAiB,EAAE,OAAkB,EAAC,EAAE,gBAAgB,qBAiN9G;kBAjNQ,WAAW;;;AA6NpB,KAAK,0BAA0B,GAAG;IAChC,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,GACR,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,GACvC,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAA;AAElC,QAAA,MAAM,eAAe,EAUf,8BAA8B,CAAC,GAAG,EAAE,0BAA0B,CAAC,CAAA;AAMrE,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,CAAA;;;;AACzE,wBAAkE;AAElE;;GAEG;AACH,eAAO,MAAM,UAAU;;CAAsD,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAA;AAE9C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,CAAA"}
1
+ {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,EAAE,EAAC,MAAM,SAAS,CAAA;AAC/B,OAAO,KAA0D,MAAM,OAAO,CAAA;AAC9E,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAElD,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;AAY/F,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CACpD;IACE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAA;IAC7C;;;;OAIG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;CAChC,GAAG,MAAM,CACX,CAAA;AA8GD,iBAAS,WAAW,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,QAAiB,EAAE,OAAkB,EAAC,EAAE,gBAAgB,qBAiN9G;kBAjNQ,WAAW;;;AA6NpB,KAAK,0BAA0B,GAAG;IAChC,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,GACR,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,GACvC,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAA;AAElC,QAAA,MAAM,eAAe,EAUf,8BAA8B,CAAC,GAAG,EAAE,0BAA0B,CAAC,CAAA;AAMrE,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,CAAA;;;;AACzE,wBAAkE;AAElE;;GAEG;AACH,eAAO,MAAM,UAAU;;CAAsD,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAA;AAE9C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -11,7 +11,6 @@ import { useOnEscapePress } from '../hooks/useOnEscapePress.js';
11
11
  import { useOnOutsideClick } from '../hooks/useOnOutsideClick.js';
12
12
  import { jsx, jsxs } from 'react/jsx-runtime';
13
13
  import { useFeatureFlag } from '../FeatureFlags/useFeatureFlag.js';
14
- import { Tooltip } from '../TooltipV2/Tooltip.js';
15
14
  import Details from '../Details/Details.js';
16
15
 
17
16
  const BreadcrumbsList = t0 => {
@@ -33,7 +32,7 @@ const BreadcrumbsList = t0 => {
33
32
  return t1;
34
33
  };
35
34
  const BreadcrumbsMenuItem = /*#__PURE__*/React.forwardRef((t0, menuRefCallback) => {
36
- const $ = c(28);
35
+ const $ = c(25);
37
36
  let ariaLabel;
38
37
  let items;
39
38
  let rest;
@@ -141,79 +140,66 @@ const BreadcrumbsMenuItem = /*#__PURE__*/React.forwardRef((t0, menuRefCallback)
141
140
  }
142
141
  useOnOutsideClick(t7);
143
142
  const t8 = ariaLabel || `${items.length} more breadcrumb items`;
144
- const t9 = ariaLabel || `${items.length} more breadcrumb items`;
145
- const t10 = isOpen ? "true" : "false";
146
- let t11;
147
- if ($[13] !== rest || $[14] !== t10 || $[15] !== t9) {
148
- t11 = /*#__PURE__*/jsx(IconButton, {
143
+ const t9 = isOpen ? "true" : "false";
144
+ let t10;
145
+ if ($[13] !== rest || $[14] !== t8 || $[15] !== t9) {
146
+ t10 = /*#__PURE__*/jsx(IconButton, {
149
147
  as: "summary",
150
148
  role: "button",
151
149
  ref: menuButtonRef,
152
- "aria-label": t9,
153
- "aria-expanded": t10,
150
+ "aria-label": t8,
151
+ "aria-expanded": t9,
154
152
  onClick: handleSummaryClick,
155
153
  variant: "invisible",
156
154
  size: "small",
157
155
  icon: KebabHorizontalIcon,
156
+ tooltipDirection: "e",
158
157
  ...rest
159
158
  });
160
159
  $[13] = rest;
161
- $[14] = t10;
160
+ $[14] = t8;
162
161
  $[15] = t9;
163
- $[16] = t11;
164
- } else {
165
- t11 = $[16];
166
- }
167
- let t12;
168
- if ($[17] !== t11 || $[18] !== t8) {
169
- t12 = /*#__PURE__*/jsx(Tooltip, {
170
- text: t8,
171
- direction: "e",
172
- children: t11
173
- });
174
- $[17] = t11;
175
- $[18] = t8;
176
- $[19] = t12;
162
+ $[16] = t10;
177
163
  } else {
178
- t12 = $[19];
164
+ t10 = $[16];
179
165
  }
180
- let t13;
181
- if ($[20] !== items) {
182
- t13 = items.map(_temp);
183
- $[20] = items;
184
- $[21] = t13;
166
+ let t11;
167
+ if ($[17] !== items) {
168
+ t11 = items.map(_temp);
169
+ $[17] = items;
170
+ $[18] = t11;
185
171
  } else {
186
- t13 = $[21];
172
+ t11 = $[18];
187
173
  }
188
- let t14;
189
- if ($[22] !== t13) {
190
- t14 = /*#__PURE__*/jsx("div", {
174
+ let t12;
175
+ if ($[19] !== t11) {
176
+ t12 = /*#__PURE__*/jsx("div", {
191
177
  ref: menuContainerRef,
192
178
  className: classes.MenuOverlay,
193
179
  children: /*#__PURE__*/jsx(ActionList, {
194
- children: t13
180
+ children: t11
195
181
  })
196
182
  });
197
- $[22] = t13;
198
- $[23] = t14;
183
+ $[19] = t11;
184
+ $[20] = t12;
199
185
  } else {
200
- t14 = $[23];
186
+ t12 = $[20];
201
187
  }
202
- let t15;
203
- if ($[24] !== detailsRefCallback || $[25] !== t12 || $[26] !== t14) {
204
- t15 = /*#__PURE__*/jsxs(Details, {
188
+ let t13;
189
+ if ($[21] !== detailsRefCallback || $[22] !== t10 || $[23] !== t12) {
190
+ t13 = /*#__PURE__*/jsxs(Details, {
205
191
  ref: detailsRefCallback,
206
192
  className: classes.MenuDetails,
207
- children: [t12, t14]
193
+ children: [t10, t12]
208
194
  });
209
- $[24] = detailsRefCallback;
210
- $[25] = t12;
211
- $[26] = t14;
212
- $[27] = t15;
195
+ $[21] = detailsRefCallback;
196
+ $[22] = t10;
197
+ $[23] = t12;
198
+ $[24] = t13;
213
199
  } else {
214
- t15 = $[27];
200
+ t13 = $[24];
215
201
  }
216
- return t15;
202
+ return t13;
217
203
  });
218
204
  BreadcrumbsMenuItem.displayName = 'Breadcrumbs.MenuItem';
219
205
  const getValidChildren = children => {
@@ -9,7 +9,7 @@ import { isElement } from 'react-is';
9
9
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
10
10
  import { useId } from '../hooks/useId.js';
11
11
  import Box from '../Box/Box.js';
12
- import StyledSpinner from '../Spinner/Spinner.js';
12
+ import Spinner from '../Spinner/Spinner.js';
13
13
  import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
14
14
  import { AriaStatus } from '../live-region/AriaStatus.js';
15
15
  import CounterLabel from '../CounterLabel/CounterLabel.js';
@@ -17,7 +17,7 @@ import CounterLabel from '../CounterLabel/CounterLabel.js';
17
17
  const renderModuleVisual = (Visual, loading, visualName, counterLabel) => /*#__PURE__*/jsx("span", {
18
18
  "data-component": visualName,
19
19
  className: clsx(!counterLabel && classes.Visual, loading ? classes.LoadingSpinner : classes.VisualWrap),
20
- children: loading ? /*#__PURE__*/jsx(StyledSpinner, {
20
+ children: loading ? /*#__PURE__*/jsx(Spinner, {
21
21
  size: "small"
22
22
  }) : isElement(Visual) ? Visual : /*#__PURE__*/jsx(Visual, {})
23
23
  });
@@ -102,7 +102,7 @@ const ButtonBase = /*#__PURE__*/forwardRef(({
102
102
  "aria-labelledby": loading ? [`${uuid}-label`, ariaLabelledBy].filter(labelID => Boolean(labelID)).join(' ') : ariaLabelledBy,
103
103
  id: id,
104
104
  onClick: loading ? undefined : onClick,
105
- children: Icon ? loading ? /*#__PURE__*/jsx(StyledSpinner, {
105
+ children: Icon ? loading ? /*#__PURE__*/jsx(Spinner, {
106
106
  size: "small"
107
107
  }) : isElement(Icon) ? Icon : /*#__PURE__*/jsx(Icon, {}) : /*#__PURE__*/jsxs(Fragment, {
108
108
  children: [/*#__PURE__*/jsxs(Box, {
@@ -113,7 +113,7 @@ const ButtonBase = /*#__PURE__*/forwardRef(({
113
113
  children: [
114
114
  /* If there are no leading/trailing visuals/actions to replace with a loading spinner,
115
115
  render a loading spiner in place of the button content. */
116
- loading && !LeadingVisual && !TrailingVisual && !TrailingAction && count === undefined && renderModuleVisual(StyledSpinner, loading, 'loadingSpinner', false),
116
+ loading && !LeadingVisual && !TrailingVisual && !TrailingAction && count === undefined && renderModuleVisual(Spinner, loading, 'loadingSpinner', false),
117
117
  /* Render a leading visual unless the button is in a loading state.
118
118
  Then replace the leading visual with a loading spinner. */
119
119
  LeadingVisual && renderModuleVisual(LeadingVisual, Boolean(loading), 'leadingVisual', false), children && /*#__PURE__*/jsx("span", {
@@ -179,7 +179,7 @@ const ButtonBase = /*#__PURE__*/forwardRef(({
179
179
  // @ts-ignore temporary disable as we migrate to css modules, until we remove PolymorphicForwardRefComponent
180
180
  ,
181
181
  onClick: loading ? undefined : onClick,
182
- children: Icon ? loading ? /*#__PURE__*/jsx(StyledSpinner, {
182
+ children: Icon ? loading ? /*#__PURE__*/jsx(Spinner, {
183
183
  size: "small"
184
184
  }) : isElement(Icon) ? Icon : /*#__PURE__*/jsx(Icon, {}) : /*#__PURE__*/jsxs(Fragment, {
185
185
  children: [/*#__PURE__*/jsxs("span", {
@@ -189,7 +189,7 @@ const ButtonBase = /*#__PURE__*/forwardRef(({
189
189
  children: [
190
190
  /* If there are no leading/trailing visuals/actions to replace with a loading spinner,
191
191
  render a loading spiner in place of the button content. */
192
- loading && !LeadingVisual && !TrailingVisual && !TrailingAction && count === undefined && renderModuleVisual(StyledSpinner, loading, 'loadingSpinner', false),
192
+ loading && !LeadingVisual && !TrailingVisual && !TrailingAction && count === undefined && renderModuleVisual(Spinner, loading, 'loadingSpinner', false),
193
193
  /* Render a leading visual unless the button is in a loading state.
194
194
  Then replace the leading visual with a loading spinner. */
195
195
  LeadingVisual && renderModuleVisual(LeadingVisual, Boolean(loading), 'leadingVisual', false), children && /*#__PURE__*/jsx("span", {
@@ -1,6 +1,6 @@
1
- import type { LinkButtonProps, ButtonProps } from './types';
1
+ import type { LinkButtonProps as BaseLinkButtonProps, ButtonProps } from './types';
2
2
  import type { ForwardRefComponent as PolymorphicForwardRefComponent } from '../utils/polymorphic';
3
- type MyProps = LinkButtonProps & ButtonProps;
4
- declare const LinkButton: PolymorphicForwardRefComponent<"a", MyProps>;
3
+ export type LinkButtonProps = Omit<BaseLinkButtonProps & ButtonProps, 'sx'>;
4
+ declare const LinkButton: PolymorphicForwardRefComponent<"a", LinkButtonProps>;
5
5
  export { LinkButton };
6
6
  //# sourceMappingURL=LinkButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../src/Button/LinkButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,eAAe,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AAEzD,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;AAG/F,KAAK,OAAO,GAAG,eAAe,GAAG,WAAW,CAAA;AAE5C,QAAA,MAAM,UAAU,EAQX,8BAA8B,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;AAEjD,OAAO,EAAC,UAAU,EAAC,CAAA"}
1
+ {"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../src/Button/LinkButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,eAAe,IAAI,mBAAmB,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AAEhF,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;AAE/F,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,mBAAmB,GAAG,WAAW,EAAE,IAAI,CAAC,CAAA;AAE3E,QAAA,MAAM,UAAU,EAMV,8BAA8B,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA;AAE1D,OAAO,EAAC,UAAU,EAAC,CAAA"}
@@ -1,18 +1,15 @@
1
1
  import { forwardRef } from 'react';
2
2
  import { ButtonBase } from './ButtonBase.js';
3
- import { defaultSxProp } from '../utils/defaultSxProp.js';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
6
5
  const LinkButton = /*#__PURE__*/forwardRef(({
7
6
  children,
8
7
  as: Component = 'a',
9
- sx = defaultSxProp,
10
8
  ...props
11
9
  }, forwardedRef) => {
12
10
  return /*#__PURE__*/jsx(ButtonBase, {
13
11
  as: Component,
14
12
  ref: forwardedRef,
15
- sx: sx,
16
13
  ...props,
17
14
  children: children
18
15
  });
@@ -1,6 +1,7 @@
1
1
  import { IconButton } from './IconButton';
2
2
  import { LinkButton } from './LinkButton';
3
3
  export type { ButtonProps, IconButtonProps, ButtonBaseProps } from './types';
4
+ export type { LinkButtonProps } from './LinkButton';
4
5
  export { IconButton, LinkButton };
5
6
  export { ButtonComponent as Button } from './Button';
6
7
  export { ButtonBase } from './ButtonBase';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA;AACvC,YAAY,EAAC,WAAW,EAAE,eAAe,EAAE,eAAe,EAAC,MAAM,SAAS,CAAA;AAC1E,OAAO,EAAC,UAAU,EAAE,UAAU,EAAC,CAAA;AAC/B,OAAO,EAAC,eAAe,IAAI,MAAM,EAAC,MAAM,UAAU,CAAA;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA;AACvC,YAAY,EAAC,WAAW,EAAE,eAAe,EAAE,eAAe,EAAC,MAAM,SAAS,CAAA;AAC1E,YAAY,EAAC,eAAe,EAAC,MAAM,cAAc,CAAA;AACjD,OAAO,EAAC,UAAU,EAAE,UAAU,EAAC,CAAA;AAC/B,OAAO,EAAC,eAAe,IAAI,MAAM,EAAC,MAAM,UAAU,CAAA;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA"}
@@ -1,12 +1,11 @@
1
1
  import { type PropsWithChildren } from 'react';
2
- import { type SxProp } from '../sx';
3
2
  import type { ForwardRefComponent as PolymorphicForwardRefComponent } from '../utils/polymorphic';
4
- export type ButtonGroupProps = {
3
+ export type ButtonGroupProps = PropsWithChildren<{
5
4
  /** The role of the group */
6
5
  role?: string;
7
6
  /** className passed in for styling */
8
7
  className?: string;
9
- } & PropsWithChildren & SxProp;
8
+ }>;
10
9
  declare const ButtonGroup: PolymorphicForwardRefComponent<"div", ButtonGroupProps>;
11
10
  export default ButtonGroup;
12
11
  //# sourceMappingURL=ButtonGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../src/ButtonGroup/ButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAKjC,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;AAG/F,MAAM,MAAM,gBAAgB,GAAG;IAC7B,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,iBAAiB,GACnB,MAAM,CAAA;AAER,QAAA,MAAM,WAAW,EAmBX,8BAA8B,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAA;AAI7D,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../src/ButtonGroup/ButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAKnD,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;AAE/F,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;IAC/C,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC,CAAA;AAEF,QAAA,MAAM,WAAW,EAmBX,8BAA8B,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAA;AAI7D,eAAe,WAAW,CAAA"}
@@ -3,19 +3,20 @@ import React from 'react';
3
3
  import classes from './ButtonGroup.module.css.js';
4
4
  import { clsx } from 'clsx';
5
5
  import { useFocusZone } from '../hooks/useFocusZone.js';
6
- import { BoxWithFallback } from '../internal/components/BoxWithFallback.js';
7
6
  import { jsx } from 'react/jsx-runtime';
8
7
  import { useProvidedRefOrCreate } from '../hooks/useProvidedRefOrCreate.js';
9
8
  import { FocusKeys } from '@primer/behaviors';
10
9
 
11
10
  const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(t0, forwardRef) {
12
- const $ = c(18);
11
+ const $ = c(20);
13
12
  let children;
14
13
  let className;
15
14
  let rest;
16
15
  let role;
16
+ let t1;
17
17
  if ($[0] !== t0) {
18
18
  ({
19
+ as: t1,
19
20
  children,
20
21
  className,
21
22
  role,
@@ -26,65 +27,69 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(t0, forwa
26
27
  $[2] = className;
27
28
  $[3] = rest;
28
29
  $[4] = role;
30
+ $[5] = t1;
29
31
  } else {
30
32
  children = $[1];
31
33
  className = $[2];
32
34
  rest = $[3];
33
35
  role = $[4];
36
+ t1 = $[5];
34
37
  }
35
- let t1;
36
- if ($[5] !== children) {
37
- t1 = React.Children.map(children, _temp);
38
- $[5] = children;
39
- $[6] = t1;
38
+ const BaseComponent = t1 === undefined ? "div" : t1;
39
+ let t2;
40
+ if ($[6] !== children) {
41
+ t2 = React.Children.map(children, _temp);
42
+ $[6] = children;
43
+ $[7] = t2;
40
44
  } else {
41
- t1 = $[6];
45
+ t2 = $[7];
42
46
  }
43
- const buttons = t1;
47
+ const buttons = t2;
44
48
  const buttonRef = useProvidedRefOrCreate(forwardRef);
45
- const t2 = role !== "toolbar";
46
- let t3;
47
- if ($[7] !== buttonRef || $[8] !== t2) {
48
- t3 = {
49
+ const t3 = role !== "toolbar";
50
+ let t4;
51
+ if ($[8] !== buttonRef || $[9] !== t3) {
52
+ t4 = {
49
53
  containerRef: buttonRef,
50
- disabled: t2,
54
+ disabled: t3,
51
55
  bindKeys: FocusKeys.ArrowHorizontal,
52
56
  focusOutBehavior: "wrap"
53
57
  };
54
- $[7] = buttonRef;
55
- $[8] = t2;
58
+ $[8] = buttonRef;
56
59
  $[9] = t3;
60
+ $[10] = t4;
57
61
  } else {
58
- t3 = $[9];
62
+ t4 = $[10];
59
63
  }
60
- useFocusZone(t3);
61
- let t4;
62
- if ($[10] !== className) {
63
- t4 = clsx(className, classes.ButtonGroup);
64
- $[10] = className;
65
- $[11] = t4;
64
+ useFocusZone(t4);
65
+ let t5;
66
+ if ($[11] !== className) {
67
+ t5 = clsx(className, classes.ButtonGroup);
68
+ $[11] = className;
69
+ $[12] = t5;
66
70
  } else {
67
- t4 = $[11];
71
+ t5 = $[12];
68
72
  }
69
- let t5;
70
- if ($[12] !== buttonRef || $[13] !== buttons || $[14] !== rest || $[15] !== role || $[16] !== t4) {
71
- t5 = /*#__PURE__*/jsx(BoxWithFallback, {
73
+ let t6;
74
+ if ($[13] !== BaseComponent || $[14] !== buttonRef || $[15] !== buttons || $[16] !== rest || $[17] !== role || $[18] !== t5) {
75
+ t6 = /*#__PURE__*/jsx(BaseComponent, {
72
76
  ref: buttonRef,
73
- className: t4,
77
+ className: t5,
74
78
  role: role,
75
79
  ...rest,
76
80
  children: buttons
77
81
  });
78
- $[12] = buttonRef;
79
- $[13] = buttons;
80
- $[14] = rest;
81
- $[15] = role;
82
- $[16] = t4;
83
- $[17] = t5;
82
+ $[13] = BaseComponent;
83
+ $[14] = buttonRef;
84
+ $[15] = buttons;
85
+ $[16] = rest;
86
+ $[17] = role;
87
+ $[18] = t5;
88
+ $[19] = t6;
84
89
  } else {
85
- t5 = $[17];
90
+ t6 = $[19];
86
91
  }
87
- return t5;
92
+ return t6;
88
93
  });
89
94
  ButtonGroup.displayName = 'ButtonGroup';
90
95
  function _temp(child, index) {
@@ -1,5 +1,4 @@
1
1
  import React, { type InputHTMLAttributes } from 'react';
2
- import { type SxProp } from '../sx';
3
2
  import type { FormValidationStatus } from '../utils/types/FormValidationStatus';
4
3
  export type CheckboxProps = {
5
4
  /**
@@ -27,7 +26,7 @@ export type CheckboxProps = {
27
26
  * Used during form submission and to identify which checkbox inputs are selected
28
27
  */
29
28
  value?: string;
30
- } & Exclude<InputHTMLAttributes<HTMLInputElement>, 'value'> & SxProp;
29
+ } & Exclude<InputHTMLAttributes<HTMLInputElement>, 'value'>;
31
30
  /**
32
31
  * An accessible, native checkbox component
33
32
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAiD,KAAK,mBAAmB,EAAoB,MAAM,OAAO,CAAA;AACxH,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAA;AAM7E,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,OAAO,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,GACzD,MAAM,CAAA;AAER;;GAEG;AACH,QAAA,MAAM,QAAQ,qGAsEb,CAAA;AAID,eAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAiD,KAAK,mBAAmB,EAAoB,MAAM,OAAO,CAAA;AAExH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAA;AAK7E,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,OAAO,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,CAAA;AAE3D;;GAEG;AACH,QAAA,MAAM,QAAQ,qGAgDb,CAAA;AAID,eAAe,QAAQ,CAAA"}