@wordpress/components 25.2.0 → 25.4.0

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 (208) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/build/button/index.js +13 -4
  3. package/build/button/index.js.map +1 -1
  4. package/build/button/index.native.js +9 -6
  5. package/build/button/index.native.js.map +1 -1
  6. package/build/confirm-dialog/component.js +9 -1
  7. package/build/confirm-dialog/component.js.map +1 -1
  8. package/build/font-size-picker/index.js +5 -3
  9. package/build/font-size-picker/index.js.map +1 -1
  10. package/build/font-size-picker/styles.js +19 -26
  11. package/build/font-size-picker/styles.js.map +1 -1
  12. package/build/form-token-field/styles.js +4 -2
  13. package/build/form-token-field/styles.js.map +1 -1
  14. package/build/guide/icons.js +2 -5
  15. package/build/guide/icons.js.map +1 -1
  16. package/build/guide/index.js +14 -11
  17. package/build/guide/index.js.map +1 -1
  18. package/build/guide/page-control.js +1 -3
  19. package/build/guide/page-control.js.map +1 -1
  20. package/build/item-group/item/hook.js +1 -1
  21. package/build/item-group/item/hook.js.map +1 -1
  22. package/build/item-group/styles.js +13 -10
  23. package/build/item-group/styles.js.map +1 -1
  24. package/build/mobile/bottom-sheet/cell.native.js +2 -1
  25. package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
  26. package/build/mobile/image/index.native.js +4 -3
  27. package/build/mobile/image/index.native.js.map +1 -1
  28. package/build/navigator/navigator-provider/component.js +18 -10
  29. package/build/navigator/navigator-provider/component.js.map +1 -1
  30. package/build/number-control/index.js +8 -4
  31. package/build/number-control/index.js.map +1 -1
  32. package/build/number-control/styles/number-control-styles.js +9 -15
  33. package/build/number-control/styles/number-control-styles.js.map +1 -1
  34. package/build/query-controls/index.js +1 -0
  35. package/build/query-controls/index.js.map +1 -1
  36. package/build/query-controls/index.native.js +1 -0
  37. package/build/query-controls/index.native.js.map +1 -1
  38. package/build/range-control/index.js +7 -1
  39. package/build/range-control/index.js.map +1 -1
  40. package/build/range-control/input-range.js.map +1 -1
  41. package/build/range-control/styles/range-control-styles.js +35 -36
  42. package/build/range-control/styles/range-control-styles.js.map +1 -1
  43. package/build/select-control/index.js +2 -1
  44. package/build/select-control/index.js.map +1 -1
  45. package/build/text-control/index.js +2 -2
  46. package/build/text-control/index.js.map +1 -1
  47. package/build/toolbar/toolbar-group/toolbar-group-container.native.js +10 -7
  48. package/build/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  49. package/build/unit-control/index.js +4 -2
  50. package/build/unit-control/index.js.map +1 -1
  51. package/build/z-stack/component.js +5 -3
  52. package/build/z-stack/component.js.map +1 -1
  53. package/build/z-stack/styles.js +23 -42
  54. package/build/z-stack/styles.js.map +1 -1
  55. package/build-module/button/index.js +13 -4
  56. package/build-module/button/index.js.map +1 -1
  57. package/build-module/button/index.native.js +8 -6
  58. package/build-module/button/index.native.js.map +1 -1
  59. package/build-module/confirm-dialog/component.js +10 -2
  60. package/build-module/confirm-dialog/component.js.map +1 -1
  61. package/build-module/font-size-picker/index.js +5 -4
  62. package/build-module/font-size-picker/index.js.map +1 -1
  63. package/build-module/font-size-picker/styles.js +17 -23
  64. package/build-module/font-size-picker/styles.js.map +1 -1
  65. package/build-module/form-token-field/styles.js +3 -2
  66. package/build-module/form-token-field/styles.js.map +1 -1
  67. package/build-module/guide/icons.js +2 -5
  68. package/build-module/guide/icons.js.map +1 -1
  69. package/build-module/guide/index.js +14 -10
  70. package/build-module/guide/index.js.map +1 -1
  71. package/build-module/guide/page-control.js +1 -3
  72. package/build-module/guide/page-control.js.map +1 -1
  73. package/build-module/item-group/item/hook.js +1 -1
  74. package/build-module/item-group/item/hook.js.map +1 -1
  75. package/build-module/item-group/styles.js +13 -11
  76. package/build-module/item-group/styles.js.map +1 -1
  77. package/build-module/mobile/bottom-sheet/cell.native.js +2 -1
  78. package/build-module/mobile/bottom-sheet/cell.native.js.map +1 -1
  79. package/build-module/mobile/image/index.native.js +4 -3
  80. package/build-module/mobile/image/index.native.js.map +1 -1
  81. package/build-module/navigator/navigator-provider/component.js +18 -10
  82. package/build-module/navigator/navigator-provider/component.js.map +1 -1
  83. package/build-module/number-control/index.js +8 -5
  84. package/build-module/number-control/index.js.map +1 -1
  85. package/build-module/number-control/styles/number-control-styles.js +7 -14
  86. package/build-module/number-control/styles/number-control-styles.js.map +1 -1
  87. package/build-module/query-controls/index.js +1 -0
  88. package/build-module/query-controls/index.js.map +1 -1
  89. package/build-module/query-controls/index.native.js +1 -0
  90. package/build-module/query-controls/index.native.js.map +1 -1
  91. package/build-module/range-control/index.js +6 -1
  92. package/build-module/range-control/index.js.map +1 -1
  93. package/build-module/range-control/input-range.js.map +1 -1
  94. package/build-module/range-control/styles/range-control-styles.js +35 -36
  95. package/build-module/range-control/styles/range-control-styles.js.map +1 -1
  96. package/build-module/select-control/index.js +2 -1
  97. package/build-module/select-control/index.js.map +1 -1
  98. package/build-module/text-control/index.js +2 -2
  99. package/build-module/text-control/index.js.map +1 -1
  100. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js +11 -7
  101. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  102. package/build-module/unit-control/index.js +3 -2
  103. package/build-module/unit-control/index.js.map +1 -1
  104. package/build-module/z-stack/component.js +5 -3
  105. package/build-module/z-stack/component.js.map +1 -1
  106. package/build-module/z-stack/styles.js +22 -44
  107. package/build-module/z-stack/styles.js.map +1 -1
  108. package/build-style/style-rtl.css +22 -35
  109. package/build-style/style.css +22 -35
  110. package/build-types/button/deprecated.d.ts +6 -6
  111. package/build-types/button/index.d.ts.map +1 -1
  112. package/build-types/button/types.d.ts +16 -9
  113. package/build-types/button/types.d.ts.map +1 -1
  114. package/build-types/color-picker/styles.d.ts +2 -1
  115. package/build-types/color-picker/styles.d.ts.map +1 -1
  116. package/build-types/confirm-dialog/component.d.ts.map +1 -1
  117. package/build-types/font-size-picker/index.d.ts.map +1 -1
  118. package/build-types/font-size-picker/styles.d.ts +0 -6
  119. package/build-types/font-size-picker/styles.d.ts.map +1 -1
  120. package/build-types/form-token-field/styles.d.ts.map +1 -1
  121. package/build-types/guide/icons.d.ts +1 -3
  122. package/build-types/guide/icons.d.ts.map +1 -1
  123. package/build-types/guide/index.d.ts.map +1 -1
  124. package/build-types/guide/page-control.d.ts.map +1 -1
  125. package/build-types/item-group/item/hook.d.ts.map +1 -1
  126. package/build-types/item-group/stories/index.d.ts.map +1 -1
  127. package/build-types/item-group/styles.d.ts +1 -1
  128. package/build-types/item-group/styles.d.ts.map +1 -1
  129. package/build-types/navigator/navigator-back-button/component.d.ts +1 -1
  130. package/build-types/navigator/navigator-back-button/hook.d.ts +1 -1
  131. package/build-types/navigator/navigator-button/component.d.ts +1 -1
  132. package/build-types/navigator/navigator-button/hook.d.ts +1 -1
  133. package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
  134. package/build-types/navigator/navigator-to-parent-button/component.d.ts +1 -1
  135. package/build-types/navigator/types.d.ts +3 -1
  136. package/build-types/navigator/types.d.ts.map +1 -1
  137. package/build-types/number-control/index.d.ts.map +1 -1
  138. package/build-types/number-control/styles/number-control-styles.d.ts +5 -3
  139. package/build-types/number-control/styles/number-control-styles.d.ts.map +1 -1
  140. package/build-types/query-controls/index.d.ts.map +1 -1
  141. package/build-types/range-control/index.d.ts +15 -2
  142. package/build-types/range-control/index.d.ts.map +1 -1
  143. package/build-types/range-control/input-range.d.ts.map +1 -1
  144. package/build-types/range-control/styles/range-control-styles.d.ts +4 -2
  145. package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
  146. package/build-types/range-control/types.d.ts +6 -0
  147. package/build-types/range-control/types.d.ts.map +1 -1
  148. package/build-types/select-control/index.d.ts.map +1 -1
  149. package/build-types/select-control/types.d.ts +6 -0
  150. package/build-types/select-control/types.d.ts.map +1 -1
  151. package/build-types/text-control/test/text-control.d.ts +2 -0
  152. package/build-types/text-control/test/text-control.d.ts.map +1 -0
  153. package/build-types/toolbar/toolbar-button/index.d.ts +6 -6
  154. package/build-types/unit-control/index.d.ts.map +1 -1
  155. package/build-types/z-stack/component.d.ts.map +1 -1
  156. package/build-types/z-stack/stories/index.d.ts.map +1 -1
  157. package/build-types/z-stack/styles.d.ts +5 -4
  158. package/build-types/z-stack/styles.d.ts.map +1 -1
  159. package/package.json +22 -22
  160. package/src/button/README.md +15 -0
  161. package/src/button/index.native.js +9 -3
  162. package/src/button/index.tsx +11 -4
  163. package/src/button/style.native.scss +9 -0
  164. package/src/button/style.scss +13 -12
  165. package/src/button/test/index.tsx +13 -0
  166. package/src/button/types.ts +17 -9
  167. package/src/confirm-dialog/component.tsx +12 -2
  168. package/src/confirm-dialog/stories/index.js +8 -15
  169. package/src/confirm-dialog/test/index.js +42 -0
  170. package/src/dropdown-menu/style.scss +9 -13
  171. package/src/font-size-picker/index.tsx +9 -5
  172. package/src/font-size-picker/styles.ts +0 -10
  173. package/src/form-token-field/styles.ts +2 -0
  174. package/src/guide/icons.tsx +2 -7
  175. package/src/guide/index.tsx +14 -13
  176. package/src/guide/page-control.tsx +1 -5
  177. package/src/guide/style.scss +8 -24
  178. package/src/item-group/item/hook.ts +2 -1
  179. package/src/item-group/stories/index.tsx +8 -3
  180. package/src/item-group/styles.ts +39 -28
  181. package/src/mobile/bottom-sheet/cell.native.js +1 -0
  182. package/src/mobile/image/index.native.js +8 -6
  183. package/src/mobile/image/style.native.scss +5 -1
  184. package/src/modal/style.scss +3 -2
  185. package/src/navigator/navigator-provider/component.tsx +30 -23
  186. package/src/navigator/types.ts +4 -1
  187. package/src/number-control/index.tsx +6 -4
  188. package/src/number-control/styles/number-control-styles.ts +8 -16
  189. package/src/placeholder/style.scss +5 -0
  190. package/src/query-controls/index.native.js +1 -0
  191. package/src/query-controls/index.tsx +1 -0
  192. package/src/range-control/index.tsx +14 -2
  193. package/src/range-control/input-range.tsx +0 -1
  194. package/src/range-control/styles/range-control-styles.ts +12 -3
  195. package/src/range-control/types.ts +6 -0
  196. package/src/select-control/index.tsx +1 -0
  197. package/src/select-control/types.ts +6 -0
  198. package/src/text-control/index.tsx +2 -2
  199. package/src/text-control/test/text-control.tsx +61 -0
  200. package/src/toolbar/toolbar-group/style.native.scss +2 -3
  201. package/src/toolbar/toolbar-group/toolbar-group-container.native.js +12 -17
  202. package/src/tooltip/README.md +1 -1
  203. package/src/unit-control/index.tsx +3 -2
  204. package/src/unit-control/test/index.tsx +5 -2
  205. package/src/z-stack/component.tsx +4 -2
  206. package/src/z-stack/stories/index.tsx +6 -13
  207. package/src/z-stack/styles.ts +23 -24
  208. package/tsconfig.tsbuildinfo +1 -1
@@ -402,21 +402,22 @@ p + .components-button.is-tertiary {
402
402
  background-image: linear-gradient(45deg, #fafafa 33%, #e0e0e0 33%, #e0e0e0 70%, #fafafa 70%);
403
403
  /* stylelint-enable */
404
404
  }
405
- .components-button.is-small {
405
+ .components-button.is-compact {
406
406
  height: 32px;
407
- line-height: 22px;
408
- padding: 0 8px;
409
- font-size: 11px;
410
407
  }
411
- .components-button.is-small.has-icon:not(.has-text) {
408
+ .components-button.is-compact.has-icon:not(.has-text) {
412
409
  padding: 0;
413
410
  width: 32px;
414
411
  min-width: 32px;
415
412
  }
416
- .components-button.is-small:not(.is-next-32px-small-size) {
413
+ .components-button.is-small {
417
414
  height: 24px;
415
+ line-height: 22px;
416
+ padding: 0 8px;
417
+ font-size: 11px;
418
418
  }
419
- .components-button.is-small:not(.is-next-32px-small-size).has-icon:not(.has-text) {
419
+ .components-button.is-small.has-icon:not(.has-text) {
420
+ padding: 0;
420
421
  width: 24px;
421
422
  min-width: 24px;
422
423
  }
@@ -1220,18 +1221,14 @@ body.is-dragging-components-draggable {
1220
1221
  height: 1px;
1221
1222
  }
1222
1223
  .components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,
1223
- .components-dropdown-menu__menu .components-menu-item.is-active svg {
1224
+ .components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,
1225
+ .components-dropdown-menu__menu .components-menu-item.is-active svg,
1226
+ .components-dropdown-menu__menu .components-menu-item.is-active .dashicon {
1224
1227
  color: #fff;
1225
1228
  background: #1e1e1e;
1226
1229
  box-shadow: 0 0 0 1px #1e1e1e;
1227
1230
  border-radius: 1px;
1228
1231
  }
1229
- .components-dropdown-menu__menu .components-dropdown-menu__menu-item > svg,
1230
- .components-dropdown-menu__menu .components-menu-item > svg {
1231
- border-radius: 2px;
1232
- width: 24px;
1233
- height: 24px;
1234
- }
1235
1232
  .components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,
1236
1233
  .components-dropdown-menu__menu .components-menu-item.is-icon-only {
1237
1234
  width: auto;
@@ -1630,7 +1627,7 @@ body.is-dragging-components-draggable {
1630
1627
  .components-guide__footer {
1631
1628
  align-content: center;
1632
1629
  display: flex;
1633
- height: 30px;
1630
+ height: 36px;
1634
1631
  justify-content: center;
1635
1632
  margin: 0 0 24px 0;
1636
1633
  padding: 0 32px;
@@ -1649,12 +1646,15 @@ body.is-dragging-components-draggable {
1649
1646
  height: 30px;
1650
1647
  min-width: 20px;
1651
1648
  margin: -6px 0;
1649
+ color: #e0e0e0;
1650
+ }
1651
+ .components-guide__page-control li[aria-current=step] .components-button {
1652
+ color: var(--wp-components-color-accent, var(--wp-admin-theme-color));
1652
1653
  }
1653
1654
 
1654
1655
  .components-modal__frame.components-guide {
1655
1656
  border: none;
1656
1657
  min-width: 312px;
1657
- height: 80vh;
1658
1658
  max-height: 575px;
1659
1659
  }
1660
1660
  @media (max-width: 600px) {
@@ -1665,28 +1665,12 @@ body.is-dragging-components-draggable {
1665
1665
  }
1666
1666
 
1667
1667
  .components-button.components-guide__back-button, .components-button.components-guide__forward-button, .components-button.components-guide__finish-button {
1668
- height: 30px;
1669
1668
  position: absolute;
1670
1669
  }
1671
- .components-button.components-guide__back-button, .components-button.components-guide__forward-button {
1672
- font-size: 13px;
1673
- padding: 4px 2px;
1674
- }
1675
- .components-button.components-guide__back-button.has-text svg, .components-button.components-guide__forward-button.has-text svg {
1676
- margin: 0;
1677
- }
1678
- .components-button.components-guide__back-button:hover, .components-button.components-guide__forward-button:hover {
1679
- text-decoration: underline;
1680
- }
1681
1670
  .components-button.components-guide__back-button {
1682
1671
  right: 32px;
1683
1672
  }
1684
- .components-button.components-guide__forward-button {
1685
- left: 32px;
1686
- color: #1386bf;
1687
- font-weight: bold;
1688
- }
1689
- .components-button.components-guide__finish-button {
1673
+ .components-button.components-guide__forward-button, .components-button.components-guide__finish-button {
1690
1674
  left: 32px;
1691
1675
  }
1692
1676
 
@@ -1903,7 +1887,7 @@ body.is-dragging-components-draggable {
1903
1887
  .components-modal__header {
1904
1888
  box-sizing: border-box;
1905
1889
  border-bottom: 1px solid transparent;
1906
- padding: 24px 32px 12px;
1890
+ padding: 24px 32px 8px;
1907
1891
  display: flex;
1908
1892
  flex-direction: row;
1909
1893
  justify-content: space-between;
@@ -1954,7 +1938,7 @@ body.is-dragging-components-draggable {
1954
1938
  .components-modal__content {
1955
1939
  flex: 1;
1956
1940
  margin-top: 72px;
1957
- padding: 0 32px 32px;
1941
+ padding: 4px 32px 32px;
1958
1942
  overflow: auto;
1959
1943
  }
1960
1944
  .components-modal__content.hide-header {
@@ -2370,6 +2354,9 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
2370
2354
  .components-placeholder.is-small .components-button {
2371
2355
  padding: 0 8px 2px;
2372
2356
  }
2357
+ .components-placeholder .components-placeholder__learn-more .components-external-link {
2358
+ color: var(--wp-admin-theme-color);
2359
+ }
2373
2360
 
2374
2361
  /**
2375
2362
  * Dashed style placeholders
@@ -402,21 +402,22 @@ p + .components-button.is-tertiary {
402
402
  background-image: linear-gradient(-45deg, #fafafa 33%, #e0e0e0 33%, #e0e0e0 70%, #fafafa 70%);
403
403
  /* stylelint-enable */
404
404
  }
405
- .components-button.is-small {
405
+ .components-button.is-compact {
406
406
  height: 32px;
407
- line-height: 22px;
408
- padding: 0 8px;
409
- font-size: 11px;
410
407
  }
411
- .components-button.is-small.has-icon:not(.has-text) {
408
+ .components-button.is-compact.has-icon:not(.has-text) {
412
409
  padding: 0;
413
410
  width: 32px;
414
411
  min-width: 32px;
415
412
  }
416
- .components-button.is-small:not(.is-next-32px-small-size) {
413
+ .components-button.is-small {
417
414
  height: 24px;
415
+ line-height: 22px;
416
+ padding: 0 8px;
417
+ font-size: 11px;
418
418
  }
419
- .components-button.is-small:not(.is-next-32px-small-size).has-icon:not(.has-text) {
419
+ .components-button.is-small.has-icon:not(.has-text) {
420
+ padding: 0;
420
421
  width: 24px;
421
422
  min-width: 24px;
422
423
  }
@@ -1225,18 +1226,14 @@ body.is-dragging-components-draggable {
1225
1226
  height: 1px;
1226
1227
  }
1227
1228
  .components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,
1228
- .components-dropdown-menu__menu .components-menu-item.is-active svg {
1229
+ .components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,
1230
+ .components-dropdown-menu__menu .components-menu-item.is-active svg,
1231
+ .components-dropdown-menu__menu .components-menu-item.is-active .dashicon {
1229
1232
  color: #fff;
1230
1233
  background: #1e1e1e;
1231
1234
  box-shadow: 0 0 0 1px #1e1e1e;
1232
1235
  border-radius: 1px;
1233
1236
  }
1234
- .components-dropdown-menu__menu .components-dropdown-menu__menu-item > svg,
1235
- .components-dropdown-menu__menu .components-menu-item > svg {
1236
- border-radius: 2px;
1237
- width: 24px;
1238
- height: 24px;
1239
- }
1240
1237
  .components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,
1241
1238
  .components-dropdown-menu__menu .components-menu-item.is-icon-only {
1242
1239
  width: auto;
@@ -1635,7 +1632,7 @@ body.is-dragging-components-draggable {
1635
1632
  .components-guide__footer {
1636
1633
  align-content: center;
1637
1634
  display: flex;
1638
- height: 30px;
1635
+ height: 36px;
1639
1636
  justify-content: center;
1640
1637
  margin: 0 0 24px 0;
1641
1638
  padding: 0 32px;
@@ -1654,12 +1651,15 @@ body.is-dragging-components-draggable {
1654
1651
  height: 30px;
1655
1652
  min-width: 20px;
1656
1653
  margin: -6px 0;
1654
+ color: #e0e0e0;
1655
+ }
1656
+ .components-guide__page-control li[aria-current=step] .components-button {
1657
+ color: var(--wp-components-color-accent, var(--wp-admin-theme-color));
1657
1658
  }
1658
1659
 
1659
1660
  .components-modal__frame.components-guide {
1660
1661
  border: none;
1661
1662
  min-width: 312px;
1662
- height: 80vh;
1663
1663
  max-height: 575px;
1664
1664
  }
1665
1665
  @media (max-width: 600px) {
@@ -1670,28 +1670,12 @@ body.is-dragging-components-draggable {
1670
1670
  }
1671
1671
 
1672
1672
  .components-button.components-guide__back-button, .components-button.components-guide__forward-button, .components-button.components-guide__finish-button {
1673
- height: 30px;
1674
1673
  position: absolute;
1675
1674
  }
1676
- .components-button.components-guide__back-button, .components-button.components-guide__forward-button {
1677
- font-size: 13px;
1678
- padding: 4px 2px;
1679
- }
1680
- .components-button.components-guide__back-button.has-text svg, .components-button.components-guide__forward-button.has-text svg {
1681
- margin: 0;
1682
- }
1683
- .components-button.components-guide__back-button:hover, .components-button.components-guide__forward-button:hover {
1684
- text-decoration: underline;
1685
- }
1686
1675
  .components-button.components-guide__back-button {
1687
1676
  left: 32px;
1688
1677
  }
1689
- .components-button.components-guide__forward-button {
1690
- right: 32px;
1691
- color: #1386bf;
1692
- font-weight: bold;
1693
- }
1694
- .components-button.components-guide__finish-button {
1678
+ .components-button.components-guide__forward-button, .components-button.components-guide__finish-button {
1695
1679
  right: 32px;
1696
1680
  }
1697
1681
 
@@ -1908,7 +1892,7 @@ body.is-dragging-components-draggable {
1908
1892
  .components-modal__header {
1909
1893
  box-sizing: border-box;
1910
1894
  border-bottom: 1px solid transparent;
1911
- padding: 24px 32px 12px;
1895
+ padding: 24px 32px 8px;
1912
1896
  display: flex;
1913
1897
  flex-direction: row;
1914
1898
  justify-content: space-between;
@@ -1959,7 +1943,7 @@ body.is-dragging-components-draggable {
1959
1943
  .components-modal__content {
1960
1944
  flex: 1;
1961
1945
  margin-top: 72px;
1962
- padding: 0 32px 32px;
1946
+ padding: 4px 32px 32px;
1963
1947
  overflow: auto;
1964
1948
  }
1965
1949
  .components-modal__content.hide-header {
@@ -2377,6 +2361,9 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
2377
2361
  .components-placeholder.is-small .components-button {
2378
2362
  padding: 0 8px 2px;
2379
2363
  }
2364
+ .components-placeholder .components-placeholder__learn-more .components-external-link {
2365
+ color: var(--wp-admin-theme-color);
2366
+ }
2380
2367
 
2381
2368
  /**
2382
2369
  * Dashed style placeholders
@@ -2,7 +2,6 @@
2
2
  import type { DeprecatedIconButtonProps } from './types';
3
3
  declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
4
4
  __next40pxDefaultSize?: boolean | undefined;
5
- __next32pxSmallSize?: boolean | undefined;
6
5
  children?: import("react").ReactNode;
7
6
  describedBy?: string | undefined;
8
7
  focus?: boolean | undefined;
@@ -19,6 +18,7 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
19
18
  ariaLabel: string;
20
19
  } | undefined;
21
20
  showTooltip?: boolean | undefined;
21
+ size?: "default" | "small" | "compact" | undefined;
22
22
  text?: string | undefined;
23
23
  tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
24
24
  variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
@@ -27,7 +27,6 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
27
27
  disabled?: boolean | undefined;
28
28
  } & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>>, "disabled" | "as" | keyof {
29
29
  __next40pxDefaultSize?: boolean | undefined;
30
- __next32pxSmallSize?: boolean | undefined;
31
30
  children?: import("react").ReactNode;
32
31
  describedBy?: string | undefined;
33
32
  focus?: boolean | undefined;
@@ -44,13 +43,13 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
44
43
  ariaLabel: string;
45
44
  } | undefined;
46
45
  showTooltip?: boolean | undefined;
46
+ size?: "default" | "small" | "compact" | undefined;
47
47
  text?: string | undefined;
48
48
  tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
49
49
  variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
50
50
  __experimentalIsFocusable?: boolean | undefined;
51
51
  }> & import("react").RefAttributes<any>, "defaultValue" | "onChange" | "value" | "name" | "color" | "translate" | "hidden" | "style" | "disabled" | "key" | "form" | "slot" | "title" | "type" | "id" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | keyof {
52
52
  __next40pxDefaultSize?: boolean | undefined;
53
- __next32pxSmallSize?: boolean | undefined;
54
53
  children?: import("react").ReactNode;
55
54
  describedBy?: string | undefined;
56
55
  focus?: boolean | undefined;
@@ -67,13 +66,13 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
67
66
  ariaLabel: string;
68
67
  } | undefined;
69
68
  showTooltip?: boolean | undefined;
69
+ size?: "default" | "small" | "compact" | undefined;
70
70
  text?: string | undefined;
71
71
  tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
72
72
  variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
73
73
  __experimentalIsFocusable?: boolean | undefined;
74
74
  }> | Pick<{
75
75
  __next40pxDefaultSize?: boolean | undefined;
76
- __next32pxSmallSize?: boolean | undefined;
77
76
  children?: import("react").ReactNode;
78
77
  describedBy?: string | undefined;
79
78
  focus?: boolean | undefined;
@@ -90,6 +89,7 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
90
89
  ariaLabel: string;
91
90
  } | undefined;
92
91
  showTooltip?: boolean | undefined;
92
+ size?: "default" | "small" | "compact" | undefined;
93
93
  text?: string | undefined;
94
94
  tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
95
95
  variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
@@ -100,7 +100,6 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
100
100
  target?: string | undefined;
101
101
  } & Omit<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>>, "as" | keyof {
102
102
  __next40pxDefaultSize?: boolean | undefined;
103
- __next32pxSmallSize?: boolean | undefined;
104
103
  children?: import("react").ReactNode;
105
104
  describedBy?: string | undefined;
106
105
  focus?: boolean | undefined;
@@ -117,6 +116,7 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
117
116
  ariaLabel: string;
118
117
  } | undefined;
119
118
  showTooltip?: boolean | undefined;
119
+ size?: "default" | "small" | "compact" | undefined;
120
120
  text?: string | undefined;
121
121
  tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
122
122
  variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
@@ -127,7 +127,6 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
127
127
  target?: string | undefined;
128
128
  }> & import("react").RefAttributes<any>, "defaultValue" | "onChange" | "color" | "translate" | "hidden" | "style" | "key" | "slot" | "title" | "type" | "download" | "id" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "media" | keyof {
129
129
  __next40pxDefaultSize?: boolean | undefined;
130
- __next32pxSmallSize?: boolean | undefined;
131
130
  children?: import("react").ReactNode;
132
131
  describedBy?: string | undefined;
133
132
  focus?: boolean | undefined;
@@ -144,6 +143,7 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
144
143
  ariaLabel: string;
145
144
  } | undefined;
146
145
  showTooltip?: boolean | undefined;
146
+ size?: "default" | "small" | "compact" | undefined;
147
147
  text?: string | undefined;
148
148
  tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
149
149
  variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/button/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEX,YAAY,EAIZ,MAAM,OAAO,CAAC;AAef,OAAO,KAAK,EAAE,WAAW,EAAyB,MAAM,SAAS,CAAC;AA+ClE,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,WAAW,EAClB,GAAG,EAAE,YAAY,CAAE,GAAG,CAAE,eAoLxB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,MAAM,6FAAkC,CAAC;AACtD,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/button/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEX,YAAY,EAIZ,MAAM,OAAO,CAAC;AAef,OAAO,KAAK,EAAE,WAAW,EAAyB,MAAM,SAAS,CAAC;AAuDlE,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,WAAW,EAClB,GAAG,EAAE,YAAY,CAAE,GAAG,CAAE,eAmLxB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,MAAM,6FAAkC,CAAC;AACtD,eAAe,MAAM,CAAC"}
@@ -19,15 +19,6 @@ type BaseButtonProps = {
19
19
  * @default false
20
20
  */
21
21
  __next40pxDefaultSize?: boolean;
22
- /**
23
- * Start opting into the larger `isSmall` button size that will become the
24
- * default small size in a future version.
25
- *
26
- * Only takes effect when the `isSmall` prop is `true`.
27
- *
28
- * @default false
29
- */
30
- __next32pxSmallSize?: boolean;
31
22
  /**
32
23
  * The button's children.
33
24
  */
@@ -70,6 +61,10 @@ type BaseButtonProps = {
70
61
  isPressed?: boolean;
71
62
  /**
72
63
  * Decreases the size of the button.
64
+ *
65
+ * Deprecated in favor of the `size` prop. If both props are defined, the `size` prop will take precedence.
66
+ *
67
+ * @deprecated Use the `'small'` value on the `size` prop instead.
73
68
  */
74
69
  isSmall?: boolean;
75
70
  /**
@@ -89,6 +84,18 @@ type BaseButtonProps = {
89
84
  * If provided, renders a Tooltip component for the button.
90
85
  */
91
86
  showTooltip?: boolean;
87
+ /**
88
+ * The size of the button.
89
+ *
90
+ * - `'default'`: For normal text-label buttons, unless it is a toggle button.
91
+ * - `'compact'`: For toggle buttons, icon buttons, and buttons when used in context of either.
92
+ * - `'small'`: For icon buttons associated with more advanced or auxiliary features.
93
+ *
94
+ * If the deprecated `isSmall` prop is also defined, this prop will take precedence.
95
+ *
96
+ * @default 'default'
97
+ */
98
+ size?: 'default' | 'compact' | 'small';
92
99
  /**
93
100
  * If provided, displays the given text inside the button. If the button contains children elements, the text is displayed before them.
94
101
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/button/types.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/button/types.ts"],"names":[],"mappings":"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"}
@@ -44,11 +44,12 @@ export declare const RangeControl: import("@emotion/styled").StyledComponent<Pic
44
44
  resetFallbackValue?: number | undefined;
45
45
  separatorType?: "none" | "fullWidth" | "topFullWidth" | undefined;
46
46
  shiftStep?: number | undefined;
47
+ __next40pxDefaultSize?: boolean | undefined;
47
48
  showTooltip?: boolean | undefined;
48
49
  trackColor?: import("csstype").Property.Color | undefined;
49
50
  type?: "stepper" | undefined;
50
51
  withInputField?: boolean | undefined;
51
- } & Omit<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "onChange" | "color" | "help" | "icon" | "disabled" | "children" | "label" | "as" | "type" | "onFocus" | "onBlur" | "onMouseLeave" | "onMouseMove" | "step" | "showTooltip" | "hideLabelFromVision" | "__nextHasNoMarginBottom" | "isShiftStepEnabled" | "shiftStep" | "marks" | "railColor" | "trackColor" | keyof import("../range-control/types").NumericProps | "renderTooltipContent" | "afterIcon" | "allowReset" | "beforeIcon" | "currentInput" | "initialPosition" | "resetFallbackValue" | "separatorType" | "withInputField"> & import("react").RefAttributes<HTMLInputElement> & {
52
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "onChange" | "color" | "help" | "icon" | "disabled" | "children" | "label" | "as" | "type" | "onFocus" | "onBlur" | "onMouseLeave" | "onMouseMove" | "step" | "__next40pxDefaultSize" | "showTooltip" | "hideLabelFromVision" | "__nextHasNoMarginBottom" | "isShiftStepEnabled" | "shiftStep" | keyof import("../range-control/types").NumericProps | "marks" | "afterIcon" | "allowReset" | "beforeIcon" | "currentInput" | "initialPosition" | "railColor" | "renderTooltipContent" | "resetFallbackValue" | "separatorType" | "trackColor" | "withInputField"> & import("react").RefAttributes<HTMLInputElement> & {
52
53
  theme?: import("@emotion/react").Theme | undefined;
53
54
  }, {}, {}>;
54
55
  export declare const AuxiliaryColorArtefactWrapper: import("@emotion/styled").StyledComponent<{
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/color-picker/styles.ts"],"names":[],"mappings":";AAsBA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;UAIhC,CAAC;AAEF,eAAO,MAAM,aAAa;;UAWzB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAGxB,CAAC;AASF,eAAO,MAAM,6BAA6B;;;yGAKzC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;UAG9C,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;UAK7B,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGA6C3B,CAAC;AAEF,eAAO,MAAM,UAAU;;UAStB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/color-picker/styles.ts"],"names":[],"mappings":";AAsBA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;UAIhC,CAAC;AAEF,eAAO,MAAM,aAAa;;UAWzB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAGxB,CAAC;AASF,eAAO,MAAM,6BAA6B;;;yGAKzC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;UAG9C,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;UAK7B,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGA6C3B,CAAC;AAEF,eAAO,MAAM,UAAU;;UAStB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/confirm-dialog/component.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAY,gBAAgB,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsG1D,wBAAgE"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/confirm-dialog/component.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAY,gBAAgB,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgH1D,wBAAgE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/index.tsx"],"names":[],"mappings":";AAyBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAyQnD,eAAO,MAAM,cAAc,qGAA0C,CAAC;AAEtE,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/index.tsx"],"names":[],"mappings":";AA0BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA4QnD,eAAO,MAAM,cAAc,qGAA0C,CAAC;AAEtE,eAAe,cAAc,CAAC"}
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import type { FontSizePickerProps } from './types';
3
2
  export declare const Container: import("@emotion/styled").StyledComponent<{
4
3
  theme?: import("@emotion/react").Theme | undefined;
5
4
  as?: import("react").ElementType<any> | undefined;
@@ -30,9 +29,4 @@ export declare const Controls: import("@emotion/styled").StyledComponent<{
30
29
  } & {
31
30
  __nextHasNoMarginBottom: boolean;
32
31
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
33
- export declare const ResetButton: import("@emotion/styled").StyledComponent<((import("../button/types").ButtonProps & import("react").RefAttributes<any>) & {
34
- theme?: import("@emotion/react").Theme | undefined;
35
- }) & {
36
- size: FontSizePickerProps['size'];
37
- }, {}, {}>;
38
32
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/styles.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,eAAO,MAAM,SAAS;;;2HAIrB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;UAElB,CAAC;AAEF,eAAO,MAAM,YAAY;;UAExB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;UAKvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;2GAEtB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;6BACK,OAAO;yGAIhC,CAAC;AAEF,eAAO,MAAM,WAAW;;;UACjB,mBAAmB,CAAE,MAAM,CAAE;UAMnC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/styles.ts"],"names":[],"mappings":";AAcA,eAAO,MAAM,SAAS;;;2HAIrB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;UAElB,CAAC;AAEF,eAAO,MAAM,YAAY;;UAExB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;UAKvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;2GAEtB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;6BACK,OAAO;yGAIhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/form-token-field/styles.ts"],"names":[],"mappings":";AAYA,KAAK,0BAA0B,GAAG;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;CACnB,CAAC;AAYF,eAAO,MAAM,yBAAyB;;;;uCAIrC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/form-token-field/styles.ts"],"names":[],"mappings":";AAaA,KAAK,0BAA0B,GAAG;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;CACnB,CAAC;AAYF,eAAO,MAAM,yBAAyB;;;;uCAKrC,CAAC"}
@@ -1,5 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const PageControlIcon: ({ isSelected }: {
3
- isSelected: boolean;
4
- }) => JSX.Element;
2
+ export declare const PageControlIcon: () => JSX.Element;
5
3
  //# sourceMappingURL=icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/guide/icons.tsx"],"names":[],"mappings":";AAKA,eAAO,MAAM,eAAe;gBAAmC,OAAO;iBASrE,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/guide/icons.tsx"],"names":[],"mappings":";AAKA,eAAO,MAAM,eAAe,mBAI3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/guide/index.tsx"],"names":[],"mappings":";AAmBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,iBAAS,KAAK,CAAE,EACf,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,gBAAiC,EACjC,QAAQ,EACR,KAAU,GACV,EAAE,UAAU,sBA+GZ;AAED,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/guide/index.tsx"],"names":[],"mappings":";AAkBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,iBAAS,KAAK,CAAE,EACf,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,gBAAiC,EACjC,QAAQ,EACR,KAAU,GACV,EAAE,UAAU,sBAiHZ;AAED,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"page-control.d.ts","sourceRoot":"","sources":["../../src/guide/page-control.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,EACpC,WAAW,EACX,aAAa,EACb,cAAc,GACd,EAAE,gBAAgB,eA+BlB"}
1
+ {"version":3,"file":"page-control.d.ts","sourceRoot":"","sources":["../../src/guide/page-control.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,EACpC,WAAW,EACX,aAAa,EACb,cAAc,GACd,EAAE,gBAAgB,eA2BlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/item-group/item/hook.ts"],"names":[],"mappings":";AAUA;;GAEG;AACH,OAAO,EAAoB,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAI7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,wBAAgB,OAAO,CAAE,KAAK,EAAE,uBAAuB,CAAE,SAAS,EAAE,KAAK,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4C1E"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/item-group/item/hook.ts"],"names":[],"mappings":";AAUA;;GAEG;AACH,OAAO,EAAoB,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAI7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,wBAAgB,OAAO,CAAE,KAAK,EAAE,uBAAuB,CAAE,SAAS,EAAE,KAAK,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6C1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/item-group/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKpD,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,SAAS,CAY1C,CAAC;AACF,eAAe,IAAI,CAAC;AAUpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,SAAS,CAAwB,CAAC;AAuB/E,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAE,OAAO,SAAS,CAC5C,CAAC;AAgBrB,eAAO,MAAM,cAAc,EAAE,cAAc,CAAE,OAAO,SAAS,CAE5D,CAAC;AAiBF,eAAO,MAAM,UAAU,EAAE,cAAc,CAAE,OAAO,SAAS,CAExD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/item-group/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKpD,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,SAAS,CAY1C,CAAC;AACF,eAAe,IAAI,CAAC;AAUpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,SAAS,CAAwB,CAAC;AA4B/E,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAE,OAAO,SAAS,CAC5C,CAAC;AAgBrB,eAAO,MAAM,cAAc,EAAE,cAAc,CAAE,OAAO,SAAS,CAE5D,CAAC;AAiBF,eAAO,MAAM,UAAU,EAAE,cAAc,CAAE,OAAO,SAAS,CAExD,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const unstyledButton: import("@emotion/utils").SerializedStyles;
1
+ export declare const unstyledButton: (as: 'a' | 'button') => import("@emotion/utils").SerializedStyles;
2
2
  export declare const itemWrapper: import("@emotion/utils").SerializedStyles;
3
3
  export declare const item: import("@emotion/utils").SerializedStyles;
4
4
  export declare const bordered: import("@emotion/utils").SerializedStyles;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/item-group/styles.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc,2CAyB1B,CAAC;AAEF,eAAO,MAAM,WAAW,2CAGvB,CAAC;AAEF,eAAO,MAAM,IAAI,2CAMhB,CAAC;AAEF,eAAO,MAAM,QAAQ,2CAEpB,CAAC;AAEF,eAAO,MAAM,SAAS,2CAQrB,CAAC;AAIF,eAAO,MAAM,YAAY,2CAExB,CAAC;AAEF,eAAO,MAAM,OAAO,2CAYnB,CAAC;AAeF,eAAO,MAAM,SAAS;;;;CAUrB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/item-group/styles.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc,OAAS,GAAG,GAAG,QAAQ,8CAoCjD,CAAC;AAEF,eAAO,MAAM,WAAW,2CAGvB,CAAC;AAEF,eAAO,MAAM,IAAI,2CAMhB,CAAC;AAEF,eAAO,MAAM,QAAQ,2CAEpB,CAAC;AAEF,eAAO,MAAM,SAAS,2CAQrB,CAAC;AAIF,eAAO,MAAM,YAAY,2CAExB,CAAC;AAEF,eAAO,MAAM,OAAO,2CAYnB,CAAC;AAeF,eAAO,MAAM,SAAS;;;;CAUrB,CAAC"}
@@ -35,7 +35,6 @@
35
35
  */
36
36
  export declare const NavigatorBackButton: import("../../ui/context").WordPressComponent<"button", {
37
37
  __next40pxDefaultSize?: boolean | undefined;
38
- __next32pxSmallSize?: boolean | undefined;
39
38
  children?: import("react").ReactNode;
40
39
  describedBy?: string | undefined;
41
40
  focus?: boolean | undefined;
@@ -52,6 +51,7 @@ export declare const NavigatorBackButton: import("../../ui/context").WordPressCo
52
51
  ariaLabel: string;
53
52
  } | undefined;
54
53
  showTooltip?: boolean | undefined;
54
+ size?: "default" | "small" | "compact" | undefined;
55
55
  text?: string | undefined;
56
56
  tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
57
57
  variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
@@ -6,7 +6,6 @@ import { WordPressComponentProps } from '../../ui/context';
6
6
  import type { NavigatorBackButtonHookProps } from '../types';
7
7
  export declare function useNavigatorBackButton(props: WordPressComponentProps<NavigatorBackButtonHookProps, 'button'>): {
8
8
  __next40pxDefaultSize?: boolean | undefined;
9
- __next32pxSmallSize?: boolean | undefined;
10
9
  children?: import("react").ReactNode;
11
10
  describedBy?: string | undefined;
12
11
  focus?: boolean | undefined;
@@ -23,6 +22,7 @@ export declare function useNavigatorBackButton(props: WordPressComponentProps<Na
23
22
  ariaLabel: string;
24
23
  } | undefined;
25
24
  showTooltip?: boolean | undefined;
25
+ size?: "default" | "small" | "compact" | undefined;
26
26
  text?: string | undefined;
27
27
  tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
28
28
  variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;