@box/blueprint-web 5.31.3

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 (601) hide show
  1. package/LICENSE +379 -0
  2. package/README.md +191 -0
  3. package/THIRD_PARTY_LICENSES +2051 -0
  4. package/lib-esm/accordion/accordion.d.ts +20 -0
  5. package/lib-esm/accordion/accordion.js +112 -0
  6. package/lib-esm/accordion/accordion.module.js +4 -0
  7. package/lib-esm/accordion/index.d.ts +2 -0
  8. package/lib-esm/accordion/types.d.ts +43 -0
  9. package/lib-esm/actionable-inline-notice/actionable-inline-notice.d.ts +3 -0
  10. package/lib-esm/actionable-inline-notice/actionable-inline-notice.js +34 -0
  11. package/lib-esm/actionable-inline-notice/index.d.ts +60 -0
  12. package/lib-esm/actionable-inline-notice/index.js +9 -0
  13. package/lib-esm/actionable-inline-notice/types.d.ts +21 -0
  14. package/lib-esm/avatar/avatar.d.ts +109 -0
  15. package/lib-esm/avatar/avatar.js +127 -0
  16. package/lib-esm/avatar/avatar.module.js +4 -0
  17. package/lib-esm/avatar/consts.d.ts +5 -0
  18. package/lib-esm/avatar/consts.js +29 -0
  19. package/lib-esm/avatar/index.d.ts +2 -0
  20. package/lib-esm/avatar/types.d.ts +34 -0
  21. package/lib-esm/avatar/utils.d.ts +3 -0
  22. package/lib-esm/basics/button/button.d.ts +30 -0
  23. package/lib-esm/basics/button/button.js +23 -0
  24. package/lib-esm/basics/button/index.d.ts +2 -0
  25. package/lib-esm/basics/button/types.d.ts +8 -0
  26. package/lib-esm/basics/collapsible/collapsible-section.d.ts +15 -0
  27. package/lib-esm/basics/collapsible/collapsible-section.js +62 -0
  28. package/lib-esm/basics/collapsible/collapsible-section.module.js +4 -0
  29. package/lib-esm/basics/collapsible/index.d.ts +2 -0
  30. package/lib-esm/basics/collapsible/types.d.ts +12 -0
  31. package/lib-esm/basics/date-picker/date-picker.d.ts +5 -0
  32. package/lib-esm/basics/date-picker/date-picker.js +200 -0
  33. package/lib-esm/basics/date-picker/date-picker.module.js +4 -0
  34. package/lib-esm/basics/date-picker/index.d.ts +2 -0
  35. package/lib-esm/basics/date-picker/types.d.ts +32 -0
  36. package/lib-esm/basics/grid-list-item/grid-list.d.ts +3 -0
  37. package/lib-esm/basics/grid-list-item/grid-list.js +18 -0
  38. package/lib-esm/basics/grid-list-item/index.d.ts +74 -0
  39. package/lib-esm/basics/grid-list-item/index.js +73 -0
  40. package/lib-esm/basics/grid-list-item/types.d.ts +10 -0
  41. package/lib-esm/basics/large-list-item/index.d.ts +88 -0
  42. package/lib-esm/basics/large-list-item/index.js +87 -0
  43. package/lib-esm/basics/large-list-item/large-list-item-description.d.ts +4 -0
  44. package/lib-esm/basics/large-list-item/large-list-item-description.js +30 -0
  45. package/lib-esm/basics/large-list-item/large-list-item-snippet.d.ts +3 -0
  46. package/lib-esm/basics/large-list-item/large-list-item-snippet.js +36 -0
  47. package/lib-esm/basics/large-list-item/large-list.d.ts +3 -0
  48. package/lib-esm/basics/large-list-item/large-list.js +18 -0
  49. package/lib-esm/basics/large-list-item/types.d.ts +15 -0
  50. package/lib-esm/basics/navigation-menu/index.d.ts +16 -0
  51. package/lib-esm/basics/navigation-menu/index.js +17 -0
  52. package/lib-esm/basics/navigation-menu/navigation-menu-content.d.ts +7 -0
  53. package/lib-esm/basics/navigation-menu/navigation-menu-content.js +21 -0
  54. package/lib-esm/basics/navigation-menu/navigation-menu-item.d.ts +13 -0
  55. package/lib-esm/basics/navigation-menu/navigation-menu-item.js +52 -0
  56. package/lib-esm/basics/navigation-menu/navigation-menu-link.d.ts +5 -0
  57. package/lib-esm/basics/navigation-menu/navigation-menu-link.js +24 -0
  58. package/lib-esm/basics/navigation-menu/navigation-menu-root.d.ts +10 -0
  59. package/lib-esm/basics/navigation-menu/navigation-menu-root.js +19 -0
  60. package/lib-esm/basics/navigation-menu/navigation-menu-separator.d.ts +2 -0
  61. package/lib-esm/basics/navigation-menu/navigation-menu-separator.js +12 -0
  62. package/lib-esm/basics/navigation-menu/navigation-menu-trigger.d.ts +7 -0
  63. package/lib-esm/basics/navigation-menu/navigation-menu-trigger.js +21 -0
  64. package/lib-esm/basics/navigation-menu/navigation-menu.module.js +4 -0
  65. package/lib-esm/basics/small-list-item/index.d.ts +47 -0
  66. package/lib-esm/basics/small-list-item/index.js +46 -0
  67. package/lib-esm/basics/small-list-item/small-list.d.ts +3 -0
  68. package/lib-esm/basics/small-list-item/small-list.js +18 -0
  69. package/lib-esm/basics/small-list-item/types.d.ts +6 -0
  70. package/lib-esm/basics/text-input/index.d.ts +2 -0
  71. package/lib-esm/basics/text-input/text-input.d.ts +48 -0
  72. package/lib-esm/basics/text-input/text-input.js +77 -0
  73. package/lib-esm/basics/text-input/text-input.module.js +4 -0
  74. package/lib-esm/basics/text-input/types.d.ts +23 -0
  75. package/lib-esm/branding-styles/branding-styles.d.ts +2 -0
  76. package/lib-esm/branding-styles/branding-styles.js +10 -0
  77. package/lib-esm/branding-styles/index.d.ts +3 -0
  78. package/lib-esm/branding-styles/types.d.ts +4 -0
  79. package/lib-esm/branding-styles/useCustomBranding.d.ts +1 -0
  80. package/lib-esm/branding-styles/useCustomBranding.js +40 -0
  81. package/lib-esm/branding-styles/utils/createTheme.d.ts +69 -0
  82. package/lib-esm/branding-styles/utils/createTheme.js +167 -0
  83. package/lib-esm/branding-styles/utils/theme.d.ts +41 -0
  84. package/lib-esm/branding-styles/utils/theme.js +48 -0
  85. package/lib-esm/branding-styles/utils/variables.d.ts +117 -0
  86. package/lib-esm/branding-styles/utils/variables.js +18 -0
  87. package/lib-esm/card/card.d.ts +6 -0
  88. package/lib-esm/card/card.js +24 -0
  89. package/lib-esm/card/card.module.js +4 -0
  90. package/lib-esm/card/index.d.ts +2 -0
  91. package/lib-esm/card/types.d.ts +10 -0
  92. package/lib-esm/card-tooltip/card-tooltip.d.ts +13 -0
  93. package/lib-esm/card-tooltip/card-tooltip.js +66 -0
  94. package/lib-esm/card-tooltip/card-tooltip.module.js +4 -0
  95. package/lib-esm/card-tooltip/index.d.ts +2 -0
  96. package/lib-esm/card-tooltip/types.d.ts +30 -0
  97. package/lib-esm/checkbox/checkbox-item.d.ts +6 -0
  98. package/lib-esm/checkbox/checkbox-item.js +78 -0
  99. package/lib-esm/checkbox/checkbox.module.js +4 -0
  100. package/lib-esm/checkbox/index.d.ts +8 -0
  101. package/lib-esm/checkbox/index.js +9 -0
  102. package/lib-esm/checkbox/types.d.ts +32 -0
  103. package/lib-esm/combobox/chips-group.d.ts +3 -0
  104. package/lib-esm/combobox/chips-group.js +100 -0
  105. package/lib-esm/combobox/chips-group.module.js +4 -0
  106. package/lib-esm/combobox/chips-group.types.d.ts +5 -0
  107. package/lib-esm/combobox/combobox.d.ts +14 -0
  108. package/lib-esm/combobox/combobox.js +422 -0
  109. package/lib-esm/combobox/combobox.module.js +4 -0
  110. package/lib-esm/combobox/index.d.ts +2 -0
  111. package/lib-esm/combobox/types.d.ts +206 -0
  112. package/lib-esm/content-card/content-card-body.d.ts +4 -0
  113. package/lib-esm/content-card/content-card-body.js +28 -0
  114. package/lib-esm/content-card/content-card-footer.d.ts +3 -0
  115. package/lib-esm/content-card/content-card-footer.js +17 -0
  116. package/lib-esm/content-card/content-card-image.d.ts +5 -0
  117. package/lib-esm/content-card/content-card-image.js +41 -0
  118. package/lib-esm/content-card/content-card-title.d.ts +4 -0
  119. package/lib-esm/content-card/content-card-title.js +28 -0
  120. package/lib-esm/content-card/content-card.d.ts +13 -0
  121. package/lib-esm/content-card/content-card.js +93 -0
  122. package/lib-esm/content-card/content-card.module.js +4 -0
  123. package/lib-esm/content-card/index.d.ts +2 -0
  124. package/lib-esm/content-card/types.d.ts +28 -0
  125. package/lib-esm/content-field/content-field.d.ts +5 -0
  126. package/lib-esm/content-field/content-field.js +93 -0
  127. package/lib-esm/content-field/content-field.module.js +4 -0
  128. package/lib-esm/content-field/index.d.ts +2 -0
  129. package/lib-esm/content-field/messages.d.ts +6 -0
  130. package/lib-esm/content-field/messages.js +8 -0
  131. package/lib-esm/content-field/types.d.ts +23 -0
  132. package/lib-esm/data-table/data-table-wrapper.d.ts +6 -0
  133. package/lib-esm/data-table/index.d.ts +1 -0
  134. package/lib-esm/empty-state/empty-state.d.ts +44 -0
  135. package/lib-esm/empty-state/empty-state.js +92 -0
  136. package/lib-esm/empty-state/empty-state.module.js +4 -0
  137. package/lib-esm/empty-state/index.d.ts +2 -0
  138. package/lib-esm/empty-state/types.d.ts +19 -0
  139. package/lib-esm/ghost/ghost.d.ts +27 -0
  140. package/lib-esm/ghost/ghost.js +37 -0
  141. package/lib-esm/ghost/ghost.module.js +4 -0
  142. package/lib-esm/ghost/index.d.ts +1 -0
  143. package/lib-esm/guided-tooltip/guided-tooltip-body.d.ts +11 -0
  144. package/lib-esm/guided-tooltip/guided-tooltip-body.js +49 -0
  145. package/lib-esm/guided-tooltip/guided-tooltip-footer.d.ts +71 -0
  146. package/lib-esm/guided-tooltip/guided-tooltip-footer.js +77 -0
  147. package/lib-esm/guided-tooltip/guided-tooltip-icon.d.ts +7 -0
  148. package/lib-esm/guided-tooltip/guided-tooltip-icon.js +22 -0
  149. package/lib-esm/guided-tooltip/guided-tooltip-illustration.d.ts +7 -0
  150. package/lib-esm/guided-tooltip/guided-tooltip-illustration.js +20 -0
  151. package/lib-esm/guided-tooltip/guided-tooltip-title.d.ts +6 -0
  152. package/lib-esm/guided-tooltip/guided-tooltip-title.js +36 -0
  153. package/lib-esm/guided-tooltip/guided-tooltip.d.ts +69 -0
  154. package/lib-esm/guided-tooltip/guided-tooltip.js +110 -0
  155. package/lib-esm/guided-tooltip/guided-tooltip.module.js +4 -0
  156. package/lib-esm/guided-tooltip/index.d.ts +3 -0
  157. package/lib-esm/guided-tooltip/types.d.ts +98 -0
  158. package/lib-esm/guided-tooltip/utils/guided-tooltip-context.d.ts +11 -0
  159. package/lib-esm/guided-tooltip/utils/guided-tooltip-context.js +12 -0
  160. package/lib-esm/index.css +5328 -0
  161. package/lib-esm/index.d.ts +55 -0
  162. package/lib-esm/index.js +62 -0
  163. package/lib-esm/inline-notice/inline-notice.d.ts +17 -0
  164. package/lib-esm/inline-notice/inline-notice.js +64 -0
  165. package/lib-esm/inline-table/index.d.ts +2 -0
  166. package/lib-esm/inline-table/inline-table.d.ts +10 -0
  167. package/lib-esm/inline-table/inline-table.js +53 -0
  168. package/lib-esm/inline-table/inline-table.module.js +4 -0
  169. package/lib-esm/inline-table/types.d.ts +14 -0
  170. package/lib-esm/input-chip/index.d.ts +2 -0
  171. package/lib-esm/input-chip/input-chip.d.ts +4 -0
  172. package/lib-esm/input-chip/input-chip.js +58 -0
  173. package/lib-esm/input-chip/input-chip.module.js +4 -0
  174. package/lib-esm/input-chip/types.d.ts +21 -0
  175. package/lib-esm/list-item/cell/action-cell.d.ts +13 -0
  176. package/lib-esm/list-item/cell/action-cell.js +49 -0
  177. package/lib-esm/list-item/cell/cell.d.ts +10 -0
  178. package/lib-esm/list-item/cell/cell.js +30 -0
  179. package/lib-esm/list-item/drop-indicator.d.ts +3 -0
  180. package/lib-esm/list-item/drop-indicator.js +19 -0
  181. package/lib-esm/list-item/drop-indicator.module.js +4 -0
  182. package/lib-esm/list-item/index.d.ts +25 -0
  183. package/lib-esm/list-item/list-item.d.ts +25 -0
  184. package/lib-esm/list-item/list-item.js +19 -0
  185. package/lib-esm/list-item/main.module.js +4 -0
  186. package/lib-esm/list-item/row.d.ts +12 -0
  187. package/lib-esm/list-item/row.js +32 -0
  188. package/lib-esm/list-item/table-body.d.ts +16 -0
  189. package/lib-esm/list-item/table-body.js +26 -0
  190. package/lib-esm/list-item/table-column.d.ts +14 -0
  191. package/lib-esm/list-item/table-column.js +78 -0
  192. package/lib-esm/list-item/table-header.d.ts +12 -0
  193. package/lib-esm/list-item/table-header.js +30 -0
  194. package/lib-esm/list-item/table.d.ts +8 -0
  195. package/lib-esm/list-item/table.js +30 -0
  196. package/lib-esm/loading-indicator/loading-indicator.d.ts +16 -0
  197. package/lib-esm/loading-indicator/loading-indicator.js +29 -0
  198. package/lib-esm/loading-indicator/loading-indicator.module.js +4 -0
  199. package/lib-esm/modal/index.d.ts +2 -0
  200. package/lib-esm/modal/modal-body.d.ts +7 -0
  201. package/lib-esm/modal/modal-body.js +20 -0
  202. package/lib-esm/modal/modal-close.d.ts +7 -0
  203. package/lib-esm/modal/modal-close.js +47 -0
  204. package/lib-esm/modal/modal-content.d.ts +7 -0
  205. package/lib-esm/modal/modal-content.js +28 -0
  206. package/lib-esm/modal/modal-footer.d.ts +65 -0
  207. package/lib-esm/modal/modal-footer.js +54 -0
  208. package/lib-esm/modal/modal-header.d.ts +7 -0
  209. package/lib-esm/modal/modal-header.js +42 -0
  210. package/lib-esm/modal/modal-scrollable-container.d.ts +8 -0
  211. package/lib-esm/modal/modal-scrollable-container.js +21 -0
  212. package/lib-esm/modal/modal-title.d.ts +7 -0
  213. package/lib-esm/modal/modal-title.js +29 -0
  214. package/lib-esm/modal/modal-trigger.d.ts +7 -0
  215. package/lib-esm/modal/modal-trigger.js +18 -0
  216. package/lib-esm/modal/modal.d.ts +93 -0
  217. package/lib-esm/modal/modal.js +55 -0
  218. package/lib-esm/modal/modal.module.js +4 -0
  219. package/lib-esm/modal/types.d.ts +48 -0
  220. package/lib-esm/primitives/base-button/base-button-context.d.ts +4 -0
  221. package/lib-esm/primitives/base-button/base-button-context.js +10 -0
  222. package/lib-esm/primitives/base-button/base-button-icon.d.ts +7 -0
  223. package/lib-esm/primitives/base-button/base-button-icon.js +47 -0
  224. package/lib-esm/primitives/base-button/base-button-label.d.ts +6 -0
  225. package/lib-esm/primitives/base-button/base-button-label.js +17 -0
  226. package/lib-esm/primitives/base-button/base-button.d.ts +24 -0
  227. package/lib-esm/primitives/base-button/base-button.js +58 -0
  228. package/lib-esm/primitives/base-button/base-button.module.js +4 -0
  229. package/lib-esm/primitives/base-button/index.d.ts +36 -0
  230. package/lib-esm/primitives/base-button/index.js +10 -0
  231. package/lib-esm/primitives/base-button/types.d.ts +28 -0
  232. package/lib-esm/primitives/base-button/utils.d.ts +8 -0
  233. package/lib-esm/primitives/base-button/utils.js +28 -0
  234. package/lib-esm/primitives/base-inline-notice/base-inline-notice-actions.d.ts +116 -0
  235. package/lib-esm/primitives/base-inline-notice/base-inline-notice-actions.js +55 -0
  236. package/lib-esm/primitives/base-inline-notice/base-inline-notice-content-container.d.ts +8 -0
  237. package/lib-esm/primitives/base-inline-notice/base-inline-notice-content-container.js +21 -0
  238. package/lib-esm/primitives/base-inline-notice/base-inline-notice-content.d.ts +7 -0
  239. package/lib-esm/primitives/base-inline-notice/base-inline-notice-content.js +49 -0
  240. package/lib-esm/primitives/base-inline-notice/base-inline-notice-icon.d.ts +7 -0
  241. package/lib-esm/primitives/base-inline-notice/base-inline-notice-icon.js +30 -0
  242. package/lib-esm/primitives/base-inline-notice/base-inline-notice.d.ts +4 -0
  243. package/lib-esm/primitives/base-inline-notice/base-inline-notice.js +21 -0
  244. package/lib-esm/primitives/base-inline-notice/base-inline-notice.module.js +4 -0
  245. package/lib-esm/primitives/base-inline-notice/index.d.ts +73 -0
  246. package/lib-esm/primitives/base-inline-notice/index.js +14 -0
  247. package/lib-esm/primitives/base-inline-notice/types.d.ts +39 -0
  248. package/lib-esm/primitives/calendar/calendar.d.ts +3 -0
  249. package/lib-esm/primitives/calendar/calendar.js +67 -0
  250. package/lib-esm/primitives/calendar/calendar.module.js +4 -0
  251. package/lib-esm/primitives/calendar/index.d.ts +3 -0
  252. package/lib-esm/primitives/calendar/parse-date.util.d.ts +7 -0
  253. package/lib-esm/primitives/calendar/parse-date.util.js +10 -0
  254. package/lib-esm/primitives/calendar/types.d.ts +17 -0
  255. package/lib-esm/primitives/chips/chip-dropdown-indicator.d.ts +2 -0
  256. package/lib-esm/primitives/chips/chip-dropdown-indicator.js +15 -0
  257. package/lib-esm/primitives/chips/chip-icon.d.ts +3 -0
  258. package/lib-esm/primitives/chips/chip-icon.js +18 -0
  259. package/lib-esm/primitives/chips/chip-label.d.ts +4 -0
  260. package/lib-esm/primitives/chips/chip-label.js +21 -0
  261. package/lib-esm/primitives/chips/chip-status.d.ts +4 -0
  262. package/lib-esm/primitives/chips/chip-status.js +20 -0
  263. package/lib-esm/primitives/chips/chip.d.ts +3 -0
  264. package/lib-esm/primitives/chips/chip.js +21 -0
  265. package/lib-esm/primitives/chips/chip.module.js +4 -0
  266. package/lib-esm/primitives/chips/chips-group.d.ts +7 -0
  267. package/lib-esm/primitives/chips/chips-group.js +22 -0
  268. package/lib-esm/primitives/chips/filter-chip/filter-chip-button.d.ts +8 -0
  269. package/lib-esm/primitives/chips/filter-chip/filter-chip-button.js +30 -0
  270. package/lib-esm/primitives/chips/filter-chip/filter-chip-group-context.d.ts +11 -0
  271. package/lib-esm/primitives/chips/filter-chip/filter-chip-group-context.js +9 -0
  272. package/lib-esm/primitives/chips/filter-chip/filter-chip.d.ts +18 -0
  273. package/lib-esm/primitives/chips/filter-chip/filter-chip.js +85 -0
  274. package/lib-esm/primitives/chips/filter-chip/filter-combo-chip.d.ts +27 -0
  275. package/lib-esm/primitives/chips/filter-chip/filter-combo-chip.js +84 -0
  276. package/lib-esm/primitives/chips/filter-chip/filter-trigger-chip.d.ts +16 -0
  277. package/lib-esm/primitives/chips/filter-chip/filter-trigger-chip.js +37 -0
  278. package/lib-esm/primitives/chips/filter-chip/index.d.ts +27 -0
  279. package/lib-esm/primitives/chips/filter-chip/index.js +23 -0
  280. package/lib-esm/primitives/chips/types.d.ts +23 -0
  281. package/lib-esm/primitives/context-menu/context-menu-item.d.ts +17 -0
  282. package/lib-esm/primitives/context-menu/context-menu-item.js +40 -0
  283. package/lib-esm/primitives/context-menu/context-menu-items-separator.d.ts +5 -0
  284. package/lib-esm/primitives/context-menu/context-menu-items-separator.js +16 -0
  285. package/lib-esm/primitives/context-menu/context-menu-menu-content.d.ts +11 -0
  286. package/lib-esm/primitives/context-menu/context-menu-menu-content.js +29 -0
  287. package/lib-esm/primitives/context-menu/context-menu-menu-root.d.ts +8 -0
  288. package/lib-esm/primitives/context-menu/context-menu-menu-root.js +19 -0
  289. package/lib-esm/primitives/context-menu/context-menu-menu-trigger.d.ts +8 -0
  290. package/lib-esm/primitives/context-menu/context-menu-menu-trigger.js +21 -0
  291. package/lib-esm/primitives/context-menu/context-menu-sub-menu-content.d.ts +12 -0
  292. package/lib-esm/primitives/context-menu/context-menu-sub-menu-content.js +34 -0
  293. package/lib-esm/primitives/context-menu/context-menu-sub-menu-root.d.ts +11 -0
  294. package/lib-esm/primitives/context-menu/context-menu-sub-menu-root.js +20 -0
  295. package/lib-esm/primitives/context-menu/context-menu-sub-menu-trigger.d.ts +18 -0
  296. package/lib-esm/primitives/context-menu/context-menu-sub-menu-trigger.js +39 -0
  297. package/lib-esm/primitives/context-menu/context-menu.module.js +4 -0
  298. package/lib-esm/primitives/context-menu/index.d.ts +27 -0
  299. package/lib-esm/primitives/context-menu/index.js +21 -0
  300. package/lib-esm/primitives/date-i18n-provider/date-i18n-provider.d.ts +15 -0
  301. package/lib-esm/primitives/date-i18n-provider/date-i18n-provider.js +17 -0
  302. package/lib-esm/primitives/dropdown-menu/dropdown-menu-checkbox-item.d.ts +8 -0
  303. package/lib-esm/primitives/dropdown-menu/dropdown-menu-checkbox-item.js +42 -0
  304. package/lib-esm/primitives/dropdown-menu/dropdown-menu-content.d.ts +12 -0
  305. package/lib-esm/primitives/dropdown-menu/dropdown-menu-content.js +35 -0
  306. package/lib-esm/primitives/dropdown-menu/dropdown-menu-item.d.ts +7 -0
  307. package/lib-esm/primitives/dropdown-menu/dropdown-menu-item.js +29 -0
  308. package/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-group.d.ts +8 -0
  309. package/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-group.js +17 -0
  310. package/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-select-item.d.ts +8 -0
  311. package/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-select-item.js +43 -0
  312. package/lib-esm/primitives/dropdown-menu/dropdown-menu-root.d.ts +10 -0
  313. package/lib-esm/primitives/dropdown-menu/dropdown-menu-root.js +19 -0
  314. package/lib-esm/primitives/dropdown-menu/dropdown-menu-separator.d.ts +5 -0
  315. package/lib-esm/primitives/dropdown-menu/dropdown-menu-separator.js +17 -0
  316. package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-content.d.ts +12 -0
  317. package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-content.js +34 -0
  318. package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-root.d.ts +11 -0
  319. package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-root.js +20 -0
  320. package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-trigger.d.ts +17 -0
  321. package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-trigger.js +38 -0
  322. package/lib-esm/primitives/dropdown-menu/dropdown-menu-trigger.d.ts +8 -0
  323. package/lib-esm/primitives/dropdown-menu/dropdown-menu-trigger.js +23 -0
  324. package/lib-esm/primitives/dropdown-menu/dropdown-menu.module.js +4 -0
  325. package/lib-esm/primitives/dropdown-menu/index.d.ts +29 -0
  326. package/lib-esm/primitives/dropdown-menu/index.js +27 -0
  327. package/lib-esm/primitives/icon-button/icon-button.d.ts +4 -0
  328. package/lib-esm/primitives/icon-button/icon-button.js +30 -0
  329. package/lib-esm/primitives/icon-button/icon-button.module.js +4 -0
  330. package/lib-esm/primitives/icon-button/index.d.ts +2 -0
  331. package/lib-esm/primitives/icon-button/types.d.ts +9 -0
  332. package/lib-esm/primitives/icon-button/utils.d.ts +3 -0
  333. package/lib-esm/primitives/icon-button/utils.js +9 -0
  334. package/lib-esm/primitives/inline-error/inline-error.d.ts +4 -0
  335. package/lib-esm/primitives/inline-error/inline-error.js +33 -0
  336. package/lib-esm/primitives/inline-error/inline-error.module.js +4 -0
  337. package/lib-esm/primitives/inline-error/types.d.ts +5 -0
  338. package/lib-esm/primitives/link/index.d.ts +2 -0
  339. package/lib-esm/primitives/link/link.d.ts +3 -0
  340. package/lib-esm/primitives/link/link.js +25 -0
  341. package/lib-esm/primitives/link/link.module.js +4 -0
  342. package/lib-esm/primitives/link/types.d.ts +21 -0
  343. package/lib-esm/primitives/notification/index.d.ts +12 -0
  344. package/lib-esm/primitives/notification/index.js +12 -0
  345. package/lib-esm/primitives/notification/notification-button.d.ts +9 -0
  346. package/lib-esm/primitives/notification/notification-button.js +23 -0
  347. package/lib-esm/primitives/notification/notification-provider.d.ts +37 -0
  348. package/lib-esm/primitives/notification/notification-provider.js +94 -0
  349. package/lib-esm/primitives/notification/notification.module.js +4 -0
  350. package/lib-esm/primitives/notification/notification.viewport.d.ts +9 -0
  351. package/lib-esm/primitives/notification/notification.viewport.js +35 -0
  352. package/lib-esm/primitives/notification/private-notification-element.d.ts +33 -0
  353. package/lib-esm/primitives/notification/private-notification-element.js +91 -0
  354. package/lib-esm/primitives/page-header/index.d.ts +2 -0
  355. package/lib-esm/primitives/page-header/page-header.d.ts +12 -0
  356. package/lib-esm/primitives/page-header/page-header.js +73 -0
  357. package/lib-esm/primitives/page-header/page-header.module.js +4 -0
  358. package/lib-esm/primitives/page-header/types.d.ts +8 -0
  359. package/lib-esm/primitives/popover/index.d.ts +18 -0
  360. package/lib-esm/primitives/popover/index.js +17 -0
  361. package/lib-esm/primitives/popover/popover-close.d.ts +8 -0
  362. package/lib-esm/primitives/popover/popover-close.js +23 -0
  363. package/lib-esm/primitives/popover/popover-content-container.d.ts +12 -0
  364. package/lib-esm/primitives/popover/popover-content-container.js +46 -0
  365. package/lib-esm/primitives/popover/popover-footer.d.ts +7 -0
  366. package/lib-esm/primitives/popover/popover-footer.js +30 -0
  367. package/lib-esm/primitives/popover/popover-main-content.d.ts +7 -0
  368. package/lib-esm/primitives/popover/popover-main-content.js +45 -0
  369. package/lib-esm/primitives/popover/popover-overflow-context.d.ts +6 -0
  370. package/lib-esm/primitives/popover/popover-overflow-context.js +8 -0
  371. package/lib-esm/primitives/popover/popover-root.d.ts +10 -0
  372. package/lib-esm/primitives/popover/popover-root.js +20 -0
  373. package/lib-esm/primitives/popover/popover-trigger.d.ts +9 -0
  374. package/lib-esm/primitives/popover/popover-trigger.js +24 -0
  375. package/lib-esm/primitives/popover/popover.module.js +4 -0
  376. package/lib-esm/primitives/select-menu-grid/index.d.ts +12 -0
  377. package/lib-esm/primitives/select-menu-grid/index.js +11 -0
  378. package/lib-esm/primitives/select-menu-grid/select-menu-grid-option.d.ts +343 -0
  379. package/lib-esm/primitives/select-menu-grid/select-menu-grid-option.js +100 -0
  380. package/lib-esm/primitives/select-menu-grid/select-menu-grid-option.module.js +4 -0
  381. package/lib-esm/primitives/select-menu-grid/select-menu-grid.d.ts +5 -0
  382. package/lib-esm/primitives/select-menu-grid/select-menu-grid.js +31 -0
  383. package/lib-esm/primitives/select-menu-grid/select-menu-grid.module.js +4 -0
  384. package/lib-esm/primitives/select-menu-grid/types.d.ts +35 -0
  385. package/lib-esm/primitives/slot.d.ts +5 -0
  386. package/lib-esm/primitives/slot.js +4 -0
  387. package/lib-esm/primitives/supplementary-fonts/get-supplementary-font-faces-config.d.ts +5 -0
  388. package/lib-esm/primitives/supplementary-fonts/get-supplementary-font-faces-config.js +17 -0
  389. package/lib-esm/primitives/supplementary-fonts/index.d.ts +4 -0
  390. package/lib-esm/primitives/supplementary-fonts/supplementary-fonts.d.ts +6 -0
  391. package/lib-esm/primitives/supplementary-fonts/supplementary-fonts.js +12 -0
  392. package/lib-esm/primitives/supplementary-fonts/types.d.ts +2 -0
  393. package/lib-esm/primitives/supplementary-fonts/useSupplementaryFonts.hook.d.ts +2 -0
  394. package/lib-esm/primitives/supplementary-fonts/useSupplementaryFonts.hook.js +36 -0
  395. package/lib-esm/primitives/tabs/index.d.ts +27 -0
  396. package/lib-esm/primitives/tabs/index.js +22 -0
  397. package/lib-esm/primitives/tabs/tab-list.d.ts +4 -0
  398. package/lib-esm/primitives/tabs/tab-list.js +27 -0
  399. package/lib-esm/primitives/tabs/tab-panel.d.ts +4 -0
  400. package/lib-esm/primitives/tabs/tab-panel.js +23 -0
  401. package/lib-esm/primitives/tabs/tab.d.ts +11 -0
  402. package/lib-esm/primitives/tabs/tab.js +58 -0
  403. package/lib-esm/primitives/tabs/tabs.d.ts +6 -0
  404. package/lib-esm/primitives/tabs/tabs.js +15 -0
  405. package/lib-esm/primitives/tabs/tabs.module.js +4 -0
  406. package/lib-esm/primitives/tabs/use-tabs.d.ts +1 -0
  407. package/lib-esm/primitives/tabs/use-tabs.js +7 -0
  408. package/lib-esm/primitives/utility/AreaIndicator.d.ts +7 -0
  409. package/lib-esm/radio-group/index.d.ts +9 -0
  410. package/lib-esm/radio-group/index.js +11 -0
  411. package/lib-esm/radio-group/radio-group.d.ts +4 -0
  412. package/lib-esm/radio-group/radio-group.js +35 -0
  413. package/lib-esm/radio-group/radio-group.module.js +4 -0
  414. package/lib-esm/radio-group/radio-item.d.ts +4 -0
  415. package/lib-esm/radio-group/radio-item.js +50 -0
  416. package/lib-esm/radio-group/types.d.ts +13 -0
  417. package/lib-esm/search-input/index.d.ts +22 -0
  418. package/lib-esm/search-input/index.js +11 -0
  419. package/lib-esm/search-input/search-input-action-button.d.ts +2 -0
  420. package/lib-esm/search-input/search-input-action-button.js +26 -0
  421. package/lib-esm/search-input/search-input.d.ts +16 -0
  422. package/lib-esm/search-input/search-input.js +95 -0
  423. package/lib-esm/search-input/search.module.js +4 -0
  424. package/lib-esm/search-input/types.d.ts +53 -0
  425. package/lib-esm/select/index.d.ts +2 -0
  426. package/lib-esm/select/select.d.ts +68 -0
  427. package/lib-esm/select/select.js +187 -0
  428. package/lib-esm/select/select.module.js +4 -0
  429. package/lib-esm/select/types.d.ts +105 -0
  430. package/lib-esm/side-panel/index.d.ts +2 -0
  431. package/lib-esm/side-panel/scroll-context.d.ts +11 -0
  432. package/lib-esm/side-panel/scroll-context.js +43 -0
  433. package/lib-esm/side-panel/side-panel-close.d.ts +7 -0
  434. package/lib-esm/side-panel/side-panel-close.js +26 -0
  435. package/lib-esm/side-panel/side-panel-content.d.ts +13 -0
  436. package/lib-esm/side-panel/side-panel-content.js +41 -0
  437. package/lib-esm/side-panel/side-panel-footer.d.ts +65 -0
  438. package/lib-esm/side-panel/side-panel-footer.js +62 -0
  439. package/lib-esm/side-panel/side-panel-header.d.ts +7 -0
  440. package/lib-esm/side-panel/side-panel-header.js +62 -0
  441. package/lib-esm/side-panel/side-panel-overlay.d.ts +8 -0
  442. package/lib-esm/side-panel/side-panel-overlay.js +31 -0
  443. package/lib-esm/side-panel/side-panel-scrollable-container.d.ts +8 -0
  444. package/lib-esm/side-panel/side-panel-scrollable-container.js +42 -0
  445. package/lib-esm/side-panel/side-panel.d.ts +70 -0
  446. package/lib-esm/side-panel/side-panel.js +52 -0
  447. package/lib-esm/side-panel/side-panel.module.js +4 -0
  448. package/lib-esm/side-panel/types.d.ts +38 -0
  449. package/lib-esm/side-panel/variant-context.d.ts +6 -0
  450. package/lib-esm/side-panel/variant-context.js +22 -0
  451. package/lib-esm/slider/index.d.ts +2 -0
  452. package/lib-esm/slider/slider-incrementer.d.ts +6 -0
  453. package/lib-esm/slider/slider-incrementer.js +57 -0
  454. package/lib-esm/slider/slider-incrementer.module.js +4 -0
  455. package/lib-esm/slider/slider-range.d.ts +6 -0
  456. package/lib-esm/slider/slider-range.js +65 -0
  457. package/lib-esm/slider/slider-range.module.js +4 -0
  458. package/lib-esm/slider/slider.d.ts +5 -0
  459. package/lib-esm/slider/slider.js +51 -0
  460. package/lib-esm/slider/slider.module.js +4 -0
  461. package/lib-esm/slider/types.d.ts +181 -0
  462. package/lib-esm/status/consts.d.ts +4 -0
  463. package/lib-esm/status/consts.js +25 -0
  464. package/lib-esm/status/index.d.ts +2 -0
  465. package/lib-esm/status/status.d.ts +3 -0
  466. package/lib-esm/status/status.js +82 -0
  467. package/lib-esm/status/status.module.js +4 -0
  468. package/lib-esm/status/types.d.ts +31 -0
  469. package/lib-esm/switch/index.d.ts +9 -0
  470. package/lib-esm/switch/index.js +9 -0
  471. package/lib-esm/switch/switch-item.d.ts +5 -0
  472. package/lib-esm/switch/switch-item.js +71 -0
  473. package/lib-esm/switch/switch-legend.d.ts +4 -0
  474. package/lib-esm/switch/switch-legend.js +11 -0
  475. package/lib-esm/switch/switch.module.js +4 -0
  476. package/lib-esm/switch/types.d.ts +32 -0
  477. package/lib-esm/text/index.d.ts +2 -0
  478. package/lib-esm/text/text.d.ts +4 -0
  479. package/lib-esm/text/text.js +21 -0
  480. package/lib-esm/text/text.module.js +4 -0
  481. package/lib-esm/text/types.d.ts +34 -0
  482. package/lib-esm/text-area/index.d.ts +2 -0
  483. package/lib-esm/text-area/text-area-autosize/text-area-autosize.d.ts +10 -0
  484. package/lib-esm/text-area/text-area-autosize/text-area-autosize.js +322 -0
  485. package/lib-esm/text-area/text-area-autosize/text-area-autosize.module.js +4 -0
  486. package/lib-esm/text-area/text-area-autosize/types.d.ts +21 -0
  487. package/lib-esm/text-area/text-area.d.ts +36 -0
  488. package/lib-esm/text-area/text-area.js +57 -0
  489. package/lib-esm/text-area/text-area.module.js +4 -0
  490. package/lib-esm/text-area/types.d.ts +22 -0
  491. package/lib-esm/text-button/index.d.ts +2 -0
  492. package/lib-esm/text-button/text-button.d.ts +24 -0
  493. package/lib-esm/text-button/text-button.js +54 -0
  494. package/lib-esm/text-button/text-button.module.js +4 -0
  495. package/lib-esm/text-button/types.d.ts +25 -0
  496. package/lib-esm/tooltip/index.d.ts +2 -0
  497. package/lib-esm/tooltip/tooltip.d.ts +16 -0
  498. package/lib-esm/tooltip/tooltip.js +128 -0
  499. package/lib-esm/tooltip/tooltip.module.js +4 -0
  500. package/lib-esm/tooltip/types.d.ts +41 -0
  501. package/lib-esm/trigger-button/index.d.ts +1 -0
  502. package/lib-esm/trigger-button/trigger-button.d.ts +50 -0
  503. package/lib-esm/trigger-button/trigger-button.js +41 -0
  504. package/lib-esm/types/modify.d.ts +1 -0
  505. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-actions.d.ts +4 -0
  506. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-actions.js +132 -0
  507. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-header.d.ts +3 -0
  508. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-header.js +57 -0
  509. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-subtitle.d.ts +4 -0
  510. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-subtitle.js +58 -0
  511. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-thumbnail.d.ts +4 -0
  512. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-thumbnail.js +30 -0
  513. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item.d.ts +4 -0
  514. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item.js +70 -0
  515. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item.module.js +4 -0
  516. package/lib-esm/util-components/base-grid-list-item/base-grid-list.d.ts +6 -0
  517. package/lib-esm/util-components/base-grid-list-item/base-grid-list.js +62 -0
  518. package/lib-esm/util-components/base-grid-list-item/index.d.ts +41 -0
  519. package/lib-esm/util-components/base-grid-list-item/index.js +42 -0
  520. package/lib-esm/util-components/base-grid-list-item/types.d.ts +32 -0
  521. package/lib-esm/util-components/base-grid-list-item/utils/rac-button.d.ts +12 -0
  522. package/lib-esm/util-components/base-grid-list-item/utils/rac-button.js +34 -0
  523. package/lib-esm/util-components/base-grid-list-item/utils/rac-tooltip.d.ts +7 -0
  524. package/lib-esm/util-components/base-grid-list-item/utils/rac-tooltip.js +30 -0
  525. package/lib-esm/util-components/focus-trap/focus-trap.d.ts +3 -0
  526. package/lib-esm/util-components/focus-trap/index.d.ts +1 -0
  527. package/lib-esm/util-components/focus-trap/types.d.ts +8 -0
  528. package/lib-esm/util-components/interactive-icon/index.d.ts +1 -0
  529. package/lib-esm/util-components/interactive-icon/interactive-icon.d.ts +4 -0
  530. package/lib-esm/util-components/interactive-icon/interactive-icon.js +24 -0
  531. package/lib-esm/util-components/interactive-icon/interactive-icon.module.js +4 -0
  532. package/lib-esm/util-components/interactive-icon/types.d.ts +9 -0
  533. package/lib-esm/util-components/legend/index.d.ts +1 -0
  534. package/lib-esm/util-components/legend/legend.d.ts +4 -0
  535. package/lib-esm/util-components/legend/legend.js +31 -0
  536. package/lib-esm/util-components/legend/legend.module.js +4 -0
  537. package/lib-esm/util-components/legend/types.d.ts +18 -0
  538. package/lib-esm/util-components/list-checkbox/index.d.ts +1 -0
  539. package/lib-esm/util-components/list-checkbox/list-checkbox.d.ts +10 -0
  540. package/lib-esm/util-components/list-checkbox/list-checkbox.js +36 -0
  541. package/lib-esm/util-components/list-checkbox/list-checkbox.module.js +4 -0
  542. package/lib-esm/util-components/menu-item-sections/menu-item-sections.d.ts +19 -0
  543. package/lib-esm/util-components/menu-item-sections/menu-item-sections.js +43 -0
  544. package/lib-esm/util-components/menu-item-sections/menu-item-sections.module.js +4 -0
  545. package/lib-esm/util-components/scrollable-container/scrollable-container.d.ts +30 -0
  546. package/lib-esm/util-components/scrollable-container/scrollable-container.js +65 -0
  547. package/lib-esm/util-components/scrollable-container/scrollable-container.module.js +4 -0
  548. package/lib-esm/util-components/search-term-string/index.d.ts +1 -0
  549. package/lib-esm/util-components/search-term-string/search-term-string.d.ts +5 -0
  550. package/lib-esm/util-components/search-term-string/search-term-string.js +41 -0
  551. package/lib-esm/util-components/search-term-string/search-term-string.module.js +4 -0
  552. package/lib-esm/util-components/search-term-string/types.d.ts +4 -0
  553. package/lib-esm/util-components/text-with-info-badge/index.d.ts +1 -0
  554. package/lib-esm/util-components/text-with-info-badge/text-with-info-badge.d.ts +4 -0
  555. package/lib-esm/util-components/text-with-info-badge/text-with-info-badge.js +36 -0
  556. package/lib-esm/util-components/text-with-info-badge/text-with-info-badge.module.js +4 -0
  557. package/lib-esm/util-components/text-with-info-badge/types.d.ts +15 -0
  558. package/lib-esm/utils/DocsStoryHeightDecorator.d.ts +14 -0
  559. package/lib-esm/utils/VariantsAggregator.d.ts +15 -0
  560. package/lib-esm/utils/a11yExceptionsConfig.d.ts +65 -0
  561. package/lib-esm/utils/commonTypes.d.ts +2 -0
  562. package/lib-esm/utils/debounce.d.ts +4 -0
  563. package/lib-esm/utils/debounce.js +13 -0
  564. package/lib-esm/utils/getButtonOptions.d.ts +7 -0
  565. package/lib-esm/utils/getButtonOptions.js +15 -0
  566. package/lib-esm/utils/isDefined.d.ts +1 -0
  567. package/lib-esm/utils/isDefined.js +8 -0
  568. package/lib-esm/utils/keyboardUtils.d.ts +5 -0
  569. package/lib-esm/utils/keyboardUtils.js +14 -0
  570. package/lib-esm/utils/ownerWindow.d.ts +1 -0
  571. package/lib-esm/utils/ownerWindow.js +9 -0
  572. package/lib-esm/utils/processString.d.ts +13 -0
  573. package/lib-esm/utils/processString.js +27 -0
  574. package/lib-esm/utils/switchCase.d.ts +1 -0
  575. package/lib-esm/utils/switchCase.js +5 -0
  576. package/lib-esm/utils/testStories.utils.d.ts +99 -0
  577. package/lib-esm/utils/unstableStorybookMessage.utils.d.ts +1 -0
  578. package/lib-esm/utils/use-debounce.d.ts +1 -0
  579. package/lib-esm/utils/use-debounce.js +14 -0
  580. package/lib-esm/utils/useBreakpoint.d.ts +16 -0
  581. package/lib-esm/utils/useBreakpoint.js +42 -0
  582. package/lib-esm/utils/useEnhancedEffect.d.ts +7 -0
  583. package/lib-esm/utils/useEnhancedEffect.js +10 -0
  584. package/lib-esm/utils/useForkRef.d.ts +12 -0
  585. package/lib-esm/utils/useForkRef.js +39 -0
  586. package/lib-esm/utils/useFullTextTooltip.d.ts +15 -0
  587. package/lib-esm/utils/useFullTextTooltip.js +28 -0
  588. package/lib-esm/utils/useIsTriggerInteractive.d.ts +5 -0
  589. package/lib-esm/utils/useIsTriggerInteractive.js +21 -0
  590. package/lib-esm/utils/useMobile.d.ts +1 -0
  591. package/lib-esm/utils/useMobile.js +14 -0
  592. package/lib-esm/utils/useNamedSlots.hook.d.ts +2 -0
  593. package/lib-esm/utils/useNamedSlots.hook.js +10 -0
  594. package/lib-esm/utils/useScreenSize.d.ts +4 -0
  595. package/lib-esm/utils/useScreenSize.js +23 -0
  596. package/lib-esm/utils/useSubMenuFocus.hook.d.ts +2 -0
  597. package/lib-esm/utils/useSubMenuFocus.hook.js +39 -0
  598. package/lib-esm/utils/useUniqueId.d.ts +2 -0
  599. package/lib-esm/utils/useUniqueId.js +8 -0
  600. package/lib-esm/utils/waitForAnimation.d.ts +13 -0
  601. package/package.json +83 -0
@@ -0,0 +1,57 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import clsx from 'clsx';
3
+ import { useCallback } from 'react';
4
+ import { Minus, Plus } from '@box/blueprint-web-assets/icons/Fill';
5
+ import { IconButton } from '../primitives/icon-button/icon-button.js';
6
+ import { Tooltip } from '../tooltip/tooltip.js';
7
+ import styles from './slider-incrementer.module.js';
8
+
9
+ const SliderIncrementer = ({
10
+ children,
11
+ disabled,
12
+ max = 100,
13
+ min = 0,
14
+ minusButtonLabel,
15
+ minusButtonTooltipContent,
16
+ plusButtonLabel,
17
+ plusButtonTooltipContent,
18
+ setValue,
19
+ step = 1,
20
+ value
21
+ }) => {
22
+ const decrement = useCallback(() => {
23
+ const nextValue = value - step;
24
+ const cappedValue = nextValue < min ? min : nextValue;
25
+ setValue(cappedValue);
26
+ }, [min, setValue, step, value]);
27
+ const increment = useCallback(() => {
28
+ const nextValue = value + step;
29
+ const cappedValue = nextValue > max ? max : nextValue;
30
+ setValue(cappedValue);
31
+ }, [max, setValue, step, value]);
32
+ return jsxs("div", {
33
+ className: clsx(styles.container),
34
+ children: [jsx(Tooltip, {
35
+ content: minusButtonTooltipContent,
36
+ children: jsx(IconButton, {
37
+ "aria-label": minusButtonLabel,
38
+ disabled: disabled,
39
+ icon: Minus,
40
+ onClick: decrement,
41
+ size: "x-small"
42
+ })
43
+ }), children, jsx(Tooltip, {
44
+ content: plusButtonTooltipContent,
45
+ children: jsx(IconButton, {
46
+ "aria-label": plusButtonLabel,
47
+ disabled: disabled,
48
+ icon: Plus,
49
+ onClick: increment,
50
+ size: "x-small"
51
+ })
52
+ })]
53
+ });
54
+ };
55
+ SliderIncrementer.displayName = 'SliderIncrementer';
56
+
57
+ export { SliderIncrementer };
@@ -0,0 +1,4 @@
1
+ import '../index.css';
2
+ var styles = {"container":"slider-incrementer-module_container__oxD6l"};
3
+
4
+ export { styles as default };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { type SliderRangeProps } from './types';
3
+ /**
4
+ * An input where the user selects a value from within a given range.
5
+ */
6
+ export declare const SliderRange: import("react").ForwardRefExoticComponent<SliderRangeProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,65 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import * as SliderPrimitive from '@radix-ui/react-slider';
3
+ import clsx from 'clsx';
4
+ import { forwardRef, useState, useCallback } from 'react';
5
+ import { useUniqueId } from '../utils/useUniqueId.js';
6
+ import styles from './slider-range.module.js';
7
+
8
+ /**
9
+ * An input where the user selects a value from within a given range.
10
+ */
11
+ const SliderRange = /*#__PURE__*/forwardRef((props, forwardedRef) => {
12
+ const {
13
+ className,
14
+ disabled,
15
+ label,
16
+ max = 2,
17
+ min = 0,
18
+ name,
19
+ onValueChange,
20
+ onValueCommit,
21
+ step,
22
+ value
23
+ } = props;
24
+ const sliderId = useUniqueId('slider-');
25
+ const sliderRootProps = {
26
+ disabled,
27
+ max,
28
+ min,
29
+ name,
30
+ onValueChange: newValue => onValueChange(newValue[0]),
31
+ onValueCommit: newValue => onValueCommit?.(newValue[0]),
32
+ step,
33
+ value: [value]
34
+ };
35
+ const [hasFocus, setHasFocus] = useState(false);
36
+ return jsx("div", {
37
+ className: clsx(styles.container, {
38
+ [styles.hasFocus]: hasFocus
39
+ }),
40
+ children: jsxs(SliderPrimitive.Root, {
41
+ className: clsx(styles.root, className, {
42
+ [styles.disabled]: disabled
43
+ }),
44
+ "data-testid": "Slider--root",
45
+ ...sliderRootProps,
46
+ children: [jsx(SliderPrimitive.Track, {
47
+ className: styles.track,
48
+ children: jsx(SliderPrimitive.Range, {
49
+ id: sliderId
50
+ })
51
+ }), jsx(SliderPrimitive.Thumb, {
52
+ ref: forwardedRef,
53
+ "aria-label": label,
54
+ "aria-valuenow": value,
55
+ className: styles.thumb,
56
+ onBlur: useCallback(() => setHasFocus(false), []),
57
+ onFocus: useCallback(() => setHasFocus(true), []),
58
+ role: "slider"
59
+ })]
60
+ })
61
+ });
62
+ });
63
+ SliderRange.displayName = 'SliderRange';
64
+
65
+ export { SliderRange };
@@ -0,0 +1,4 @@
1
+ import '../index.css';
2
+ var styles = {"container":"slider-range-module_container__vpHaT","hasFocus":"slider-range-module_hasFocus__BuoDb","thumb":"slider-range-module_thumb__6P7XB","root":"slider-range-module_root__CfzE-","disabled":"slider-range-module_disabled__0RK6c","track":"slider-range-module_track__uvMjY"};
3
+
4
+ export { styles as default };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type SliderProps } from './types';
3
+ export declare const Slider: ((props: SliderProps) => JSX.Element) & {
4
+ Slider: import("react").ForwardRefExoticComponent<import("./types").SliderRangeProps & import("react").RefAttributes<HTMLButtonElement>>;
5
+ };
@@ -0,0 +1,51 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import clsx from 'clsx';
3
+ import { SliderIncrementer } from './slider-incrementer.js';
4
+ import { SliderRange } from './slider-range.js';
5
+ import styles from './slider.module.js';
6
+
7
+ const SliderRoot = props => {
8
+ const {
9
+ className,
10
+ disabled,
11
+ max,
12
+ min,
13
+ minusButtonLabel,
14
+ minusButtonTooltipContent,
15
+ onValueChange,
16
+ plusButtonLabel,
17
+ plusButtonTooltipContent,
18
+ sliderLabel,
19
+ step,
20
+ value
21
+ } = props;
22
+ return jsx("div", {
23
+ className: clsx(styles.container, className, {}),
24
+ children: jsx(SliderIncrementer, {
25
+ disabled: disabled,
26
+ max: max,
27
+ min: min,
28
+ minusButtonLabel: minusButtonLabel,
29
+ minusButtonTooltipContent: minusButtonTooltipContent ?? minusButtonLabel,
30
+ plusButtonLabel: plusButtonLabel,
31
+ plusButtonTooltipContent: plusButtonTooltipContent ?? plusButtonLabel,
32
+ setValue: onValueChange,
33
+ step: step,
34
+ value: value,
35
+ children: jsx(SliderRange, {
36
+ disabled: disabled,
37
+ label: sliderLabel,
38
+ max: max,
39
+ min: min,
40
+ onValueChange: onValueChange,
41
+ step: step,
42
+ value: value
43
+ })
44
+ })
45
+ });
46
+ };
47
+ const Slider = Object.assign(SliderRoot, {
48
+ Slider: SliderRange
49
+ });
50
+
51
+ export { Slider };
@@ -0,0 +1,4 @@
1
+ import '../index.css';
2
+ var styles = {"container":"slider-module_container__LFXYp"};
3
+
4
+ export { styles as default };
@@ -0,0 +1,181 @@
1
+ import { type SliderProps as RadixSliderProps } from '@radix-ui/react-slider';
2
+ import { type ReactNode } from 'react';
3
+ export interface SliderProps {
4
+ /**
5
+ * Extend the styles applied to the component.
6
+ */
7
+ className?: string;
8
+ /**
9
+ * Localized (i.e. i18n) string used for aria-label and, if no minusButtonTooltipContent prop is provided, tooltip content
10
+ */
11
+ minusButtonLabel: string;
12
+ /**
13
+ * Localized (i.e. i18n) string used to override minusButtonLabel for tooltip content
14
+ *
15
+ * @default minusButtonLabel
16
+ */
17
+ minusButtonTooltipContent?: string;
18
+ /**
19
+ * Localized (i.e. i18n) string used for aria-label and, if no plusButtonTooltipContent prop is provided, tooltip content
20
+ */
21
+ plusButtonLabel: string;
22
+ /**
23
+ * Localized (i.e. i18n) string used to override minusButtonLabel for tooltip content
24
+ *
25
+ * @default plusButtonLabel
26
+ */
27
+ plusButtonTooltipContent?: string;
28
+ /**
29
+ * The label for the slider.
30
+ * Currently, only used for aria-label
31
+ */
32
+ sliderLabel: string;
33
+ /**
34
+ * Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
35
+ *
36
+ * @default false
37
+ */
38
+ sliderAsChild?: RadixSliderProps['asChild'];
39
+ /**
40
+ * The name of the slider. Submitted with its owning form as part of a name/value pair.
41
+ *
42
+ */
43
+ sliderName?: RadixSliderProps['name'];
44
+ /**
45
+ * When true, prevents the user from interacting with the increment-stepper.
46
+ *
47
+ * @default false
48
+ */
49
+ disabled?: boolean;
50
+ /**
51
+ * The orientation of the slider.
52
+ *
53
+ * @default "horizontal"
54
+ */
55
+ min?: number;
56
+ /**
57
+ * The maximum value for the range.
58
+ *
59
+ * @default 100
60
+ */
61
+ max?: number;
62
+ /**
63
+ * The stepping interval.
64
+ *
65
+ * @default 1
66
+ */
67
+ step?: number;
68
+ /**
69
+ * The controlled value of the increment-stepper. Must be used in conjunction with onValueChange.
70
+ *
71
+ */
72
+ value: number;
73
+ /**
74
+ * Event handler called when the value changes.
75
+ */
76
+ onValueChange: (newValue: number) => void;
77
+ }
78
+ export interface SliderIncrementerProps {
79
+ children?: ReactNode;
80
+ /**
81
+ * When true, prevents the user from interacting with the incrementer.
82
+ *
83
+ * @default false
84
+ */
85
+ disabled?: boolean;
86
+ /**
87
+ * Localized (i.e. i18n) string used for aria-label and, if no minusButtonTooltipContent prop is provided, tooltip content
88
+ */
89
+ minusButtonLabel: string;
90
+ /**
91
+ * Localized (i.e. i18n) string used for tooltip content
92
+ */
93
+ minusButtonTooltipContent: string;
94
+ /**
95
+ * Localized (i.e. i18n) string used for aria-label and, if no plusButtonTooltipContent prop is provided, tooltip content
96
+ */
97
+ plusButtonLabel: string;
98
+ /**
99
+ * Localized (i.e. i18n) string used for tooltip content
100
+ */
101
+ plusButtonTooltipContent: string;
102
+ /**
103
+ * The minimum value for the range.
104
+ *
105
+ * @default "horizontal"
106
+ */
107
+ min?: number;
108
+ /**
109
+ * The maximum value for the range.
110
+ *
111
+ * @default 100
112
+ */
113
+ max?: number;
114
+ /**
115
+ * A function to update the state of values
116
+ */
117
+ setValue: (val: number) => void;
118
+ /**
119
+ * The stepping interval.
120
+ *
121
+ * @default 1
122
+ */
123
+ step?: number;
124
+ /**
125
+ * The controlled values of the slider. Must be used in conjunction with onValueChange.
126
+ */
127
+ value: number;
128
+ }
129
+ export interface SliderRangeProps {
130
+ /**
131
+ * Extend the styles applied to the component.
132
+ */
133
+ className?: string;
134
+ /**
135
+ * The name of the slider. Submitted with its owning form as part of a name/value pair.
136
+ *
137
+ */
138
+ name?: RadixSliderProps['name'];
139
+ /**
140
+ * When true, prevents the user from interacting with the slider.
141
+ *
142
+ * @default false
143
+ */
144
+ disabled?: RadixSliderProps['disabled'];
145
+ /**
146
+ * Localized (i.e. i18n) string used for aria-labe
147
+ */
148
+ label: string;
149
+ /**
150
+ * The minimum value for the range.
151
+ *
152
+ * @default 0
153
+ */
154
+ min?: RadixSliderProps['min'];
155
+ /**
156
+ * The maximum value for the range.
157
+ *
158
+ * @default 2
159
+ */
160
+ max?: RadixSliderProps['max'];
161
+ /**
162
+ * The stepping interval.
163
+ *
164
+ * @default 1
165
+ */
166
+ step?: RadixSliderProps['step'];
167
+ /**
168
+ * The controlled value of the slider. Must be used in conjunction with onValueChange.
169
+ * WARNING: it is not possible to prevent via types value from being set to a value outside of the min/max range.
170
+ * The component will adhere to min/max, but value could be initialized or updated externally to be out-of-bounds.
171
+ */
172
+ value: number;
173
+ /**
174
+ * Event handler called when the value changes.
175
+ */
176
+ onValueChange: (value: SliderRangeProps['value']) => void;
177
+ /**
178
+ * Event handler called when the value changes at the end of an interaction. Useful when you only need to capture a final value e.g. to update a backend service.
179
+ */
180
+ onValueCommit?: (value: SliderRangeProps['value']) => void;
181
+ }
@@ -0,0 +1,4 @@
1
+ import { type Color } from './types';
2
+ export declare const colorsMap: Record<string, Color>;
3
+ export declare const colorToTokenMap: Record<Color, string>;
4
+ export declare const colors: string[];
@@ -0,0 +1,25 @@
1
+ import { SurfaceStatusSurfaceGray, SurfaceStatusSurfaceYellow, SurfaceStatusSurfaceOrange, SurfaceStatusSurfaceRed, SurfaceStatusSurfacePurple, SurfaceStatusSurfaceLightBlue, SurfaceStatusSurfaceDarkBlue, SurfaceStatusSurfaceGreen } from '@box/blueprint-web-assets/tokens/tokens';
2
+
3
+ const colorsMap = {
4
+ SurfaceStatusSurfaceGray,
5
+ SurfaceStatusSurfaceYellow,
6
+ SurfaceStatusSurfaceOrange,
7
+ SurfaceStatusSurfaceRed,
8
+ SurfaceStatusSurfacePurple,
9
+ SurfaceStatusSurfaceLightBlue,
10
+ SurfaceStatusSurfaceDarkBlue,
11
+ SurfaceStatusSurfaceGreen
12
+ };
13
+ const colorToTokenMap = {
14
+ [SurfaceStatusSurfaceGray]: 'SurfaceStatusSurfaceGray',
15
+ [SurfaceStatusSurfaceYellow]: 'SurfaceStatusSurfaceYellow',
16
+ [SurfaceStatusSurfaceOrange]: 'SurfaceStatusSurfaceOrange',
17
+ [SurfaceStatusSurfaceRed]: 'SurfaceStatusSurfaceRed',
18
+ [SurfaceStatusSurfacePurple]: 'SurfaceStatusSurfacePurple',
19
+ [SurfaceStatusSurfaceLightBlue]: 'SurfaceStatusSurfaceLightBlue',
20
+ [SurfaceStatusSurfaceDarkBlue]: 'SurfaceStatusSurfaceDarkBlue',
21
+ [SurfaceStatusSurfaceGreen]: 'SurfaceStatusSurfaceGreen'
22
+ };
23
+ const colors = Object.values(colorsMap);
24
+
25
+ export { colorToTokenMap, colors, colorsMap };
@@ -0,0 +1,2 @@
1
+ export { Status } from './status';
2
+ export { type StatusProps } from './types';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { type StatusProps } from './types';
3
+ export declare const Status: import("react").ForwardRefExoticComponent<StatusProps & import("react").RefAttributes<HTMLSpanElement | HTMLButtonElement>>;
@@ -0,0 +1,82 @@
1
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import { IconIconOnLight } from '@box/blueprint-web-assets/tokens/tokens';
3
+ import clsx from 'clsx';
4
+ import { forwardRef, useMemo, createElement } from 'react';
5
+ import { colorToTokenMap, colors, colorsMap } from './consts.js';
6
+ import styles from './status.module.js';
7
+
8
+ const getColorFromColorsMap = index => {
9
+ const colorIndex = (index || 0) % colors.length;
10
+ return Object.values(colorsMap)[colorIndex];
11
+ };
12
+ const Status = /*#__PURE__*/forwardRef((props, forwardedRef) => {
13
+ const {
14
+ text,
15
+ hideText,
16
+ interactive,
17
+ iconPosition = 'right',
18
+ icon,
19
+ color,
20
+ colorIndex,
21
+ className,
22
+ 'aria-label': ariaLabel,
23
+ ...rest
24
+ } = props;
25
+ const backgroundColor = useMemo(() => {
26
+ const bgColor = color || getColorFromColorsMap(colorIndex);
27
+ return colorToTokenMap[bgColor] || 'SurfaceStatusSurfaceGray';
28
+ }, [color, colorIndex]);
29
+ const iconElement = useMemo(() => {
30
+ if (!icon) {
31
+ return null;
32
+ }
33
+ const iconProps = {
34
+ width: '0.875rem',
35
+ height: '0.875rem',
36
+ color: IconIconOnLight
37
+ };
38
+ // If Status is interactive we put aria-label on the button
39
+ if (interactive || !interactive && !hideText && text) {
40
+ return /*#__PURE__*/createElement(icon, {
41
+ ...iconProps,
42
+ role: 'presentation'
43
+ });
44
+ }
45
+ // Not interactive, icon-only Status
46
+ return /*#__PURE__*/createElement(icon, {
47
+ ...iconProps,
48
+ role: 'img',
49
+ 'aria-label': ariaLabel || text
50
+ });
51
+ }, [icon, hideText, interactive, text, ariaLabel]);
52
+ const contents = jsxs(Fragment, {
53
+ children: [text && !hideText && jsx("span", {
54
+ className: styles.text,
55
+ children: text
56
+ }), iconElement]
57
+ });
58
+ const commonClassName = clsx(styles.status, styles[`color${backgroundColor}`], {
59
+ [styles.reverse]: icon && iconPosition === 'left',
60
+ [styles.circle]: hideText
61
+ });
62
+ const innerElement = interactive ? jsx("button", {
63
+ ...rest,
64
+ ref: forwardedRef,
65
+ "aria-label": props['aria-label'] || text,
66
+ className: clsx(styles.interactiveStatus, commonClassName),
67
+ type: "button",
68
+ children: contents
69
+ }) : jsx("span", {
70
+ ...rest,
71
+ ref: forwardedRef,
72
+ className: commonClassName,
73
+ children: contents
74
+ });
75
+ return jsx("span", {
76
+ className: clsx(styles.maxContainer, className),
77
+ children: innerElement
78
+ });
79
+ });
80
+ Status.displayName = 'Status';
81
+
82
+ export { Status };
@@ -0,0 +1,4 @@
1
+ import '../index.css';
2
+ var styles = {"interactiveStatus":"status-module_interactiveStatus__JVpMC","status":"status-module_status__ovaDk","reverse":"status-module_reverse__uEGPj","circle":"status-module_circle__amoA6","text":"status-module_text__ZNwzN","maxContainer":"status-module_maxContainer__v4jJW","colorSurfaceStatusSurfaceGray":"status-module_colorSurfaceStatusSurfaceGray__YmSqS","colorSurfaceStatusSurfaceYellow":"status-module_colorSurfaceStatusSurfaceYellow__hBUjh","colorSurfaceStatusSurfaceOrange":"status-module_colorSurfaceStatusSurfaceOrange__Q9ixI","colorSurfaceStatusSurfaceRed":"status-module_colorSurfaceStatusSurfaceRed__wdgd3","colorSurfaceStatusSurfacePurple":"status-module_colorSurfaceStatusSurfacePurple__1Uq6u","colorSurfaceStatusSurfaceLightBlue":"status-module_colorSurfaceStatusSurfaceLightBlue__HftTU","colorSurfaceStatusSurfaceDarkBlue":"status-module_colorSurfaceStatusSurfaceDarkBlue__J7PvX","colorSurfaceStatusSurfaceGreen":"status-module_colorSurfaceStatusSurfaceGreen__ibLGb"};
3
+
4
+ export { styles as default };
@@ -0,0 +1,31 @@
1
+ import { type SurfaceStatusSurfaceDarkBlue, type SurfaceStatusSurfaceGray, type SurfaceStatusSurfaceGreen, type SurfaceStatusSurfaceLightBlue, type SurfaceStatusSurfaceOrange, type SurfaceStatusSurfacePurple, type SurfaceStatusSurfaceRed, type SurfaceStatusSurfaceYellow } from '@box/blueprint-web-assets/tokens/tokens';
2
+ import { type FunctionComponent, type HTMLAttributes, type PropsWithChildren, type SVGProps } from 'react';
3
+ import { type RequireExactlyOne } from 'type-fest';
4
+ export type Color = typeof SurfaceStatusSurfaceGray | typeof SurfaceStatusSurfaceYellow | typeof SurfaceStatusSurfaceOrange | typeof SurfaceStatusSurfaceRed | typeof SurfaceStatusSurfacePurple | typeof SurfaceStatusSurfaceLightBlue | typeof SurfaceStatusSurfaceDarkBlue | typeof SurfaceStatusSurfaceGreen;
5
+ type ColorProps = {
6
+ /** The color of the background. Takes precedence over colorIndex. */
7
+ color?: Color;
8
+ /** The index of the color of the status background. It will cycle through all the colors in the table.
9
+ * A convenience replacement for the color prop, when the color itself does not matter,
10
+ * and what matters is that the subsequent status-backgrounds are different
11
+ * It is ignored when the color prop is provided. */
12
+ colorIndex?: number;
13
+ };
14
+ type CommonProps = {
15
+ /** Text inside the Status. Needs to be an UPPERCASED string. */
16
+ text: string;
17
+ /** Hide the text, it is still visible to screen readers */
18
+ hideText?: boolean;
19
+ /** Should the component be interactive (button without onClick) */
20
+ interactive?: boolean;
21
+ /** Position of the icon */
22
+ iconPosition?: 'right' | 'left';
23
+ /** Icon Component to display */
24
+ icon?: FunctionComponent<PropsWithChildren<SVGProps<SVGSVGElement>>>;
25
+ } & RequireExactlyOne<ColorProps>;
26
+ export type StatusProps = (CommonProps & {
27
+ interactive?: false;
28
+ } & HTMLAttributes<HTMLSpanElement>) | (CommonProps & {
29
+ interactive: true;
30
+ } & HTMLAttributes<HTMLButtonElement>);
31
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { Legend } from './switch-legend';
3
+ export { type LegendProps } from '../util-components/legend/types';
4
+ export { type SwitchProps } from './types';
5
+ export declare const Switch: {
6
+ Item: import("react").ForwardRefExoticComponent<import("./types").SwitchProps & import("react").RefAttributes<HTMLButtonElement>>;
7
+ Legend: typeof Legend;
8
+ };
9
+ export default Switch;
@@ -0,0 +1,9 @@
1
+ import { Switch as Switch$1 } from './switch-item.js';
2
+ import { Legend } from './switch-legend.js';
3
+
4
+ const Switch = {
5
+ Item: Switch$1,
6
+ Legend
7
+ };
8
+
9
+ export { Switch, Switch as default };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type SwitchProps } from './types';
3
+ /** Switch.Item needs to be wrapped with TooltipElement.Provider -
4
+ or ideally you should have your App wrapped with it. */
5
+ export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,71 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import * as RadixSwitch from '@radix-ui/react-switch';
3
+ import clsx from 'clsx';
4
+ import { forwardRef } from 'react';
5
+ import { TextWithInfoBadge } from '../util-components/text-with-info-badge/text-with-info-badge.js';
6
+ import { useUniqueId } from '../utils/useUniqueId.js';
7
+ import styles from './switch.module.js';
8
+
9
+ /** Switch.Item needs to be wrapped with TooltipElement.Provider -
10
+ or ideally you should have your App wrapped with it. */
11
+ const Switch = /*#__PURE__*/forwardRef((props, forwardedRef) => {
12
+ const {
13
+ checked,
14
+ className,
15
+ description,
16
+ descriptionInfoBadgeAriaLabel,
17
+ descriptionInfoText,
18
+ disabled,
19
+ label,
20
+ labelInfoText,
21
+ labelInfoBadgeAriaLabel,
22
+ onCheckedChange,
23
+ rightAligned: isRightAligned,
24
+ ...rest
25
+ } = props;
26
+ const descriptionId = useUniqueId('description-', !!description);
27
+ return jsxs("div", {
28
+ className: clsx([styles.option], {
29
+ [styles.disabled]: disabled
30
+ }, className),
31
+ children: [jsxs("label", {
32
+ className: clsx(styles.label, {
33
+ [styles.rightAlign]: isRightAligned
34
+ }),
35
+ children: [jsx(RadixSwitch.Root, {
36
+ ...rest,
37
+ ref: forwardedRef,
38
+ "aria-describedby": descriptionId,
39
+ "aria-label": label,
40
+ checked: checked,
41
+ className: clsx(styles.switch, {
42
+ [styles.rightAlign]: isRightAligned
43
+ }),
44
+ disabled: disabled,
45
+ onCheckedChange: onCheckedChange,
46
+ title: label,
47
+ children: jsx(RadixSwitch.Thumb, {
48
+ className: styles.thumb
49
+ })
50
+ }), jsx(TextWithInfoBadge, {
51
+ infoBadgeAriaLabel: labelInfoBadgeAriaLabel,
52
+ infoText: labelInfoText,
53
+ variant: disabled ? 'muted' : 'default',
54
+ children: label
55
+ })]
56
+ }), description ? jsx("div", {
57
+ className: clsx(styles.description, {
58
+ [styles.rightAlign]: isRightAligned
59
+ }),
60
+ children: jsx(TextWithInfoBadge, {
61
+ id: descriptionId,
62
+ infoBadgeAriaLabel: descriptionInfoBadgeAriaLabel,
63
+ infoText: descriptionInfoText,
64
+ variant: "muted",
65
+ children: description
66
+ })
67
+ }) : null]
68
+ });
69
+ });
70
+
71
+ export { Switch };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type LegendProps } from '../util-components/legend/types';
3
+ export declare function Legend(props: LegendProps): JSX.Element;
4
+ export default Legend;
@@ -0,0 +1,11 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { Legend as Legend$1 } from '../util-components/legend/legend.js';
3
+
4
+ function Legend(props) {
5
+ return jsx(Legend$1, {
6
+ ...props,
7
+ gap: "wide"
8
+ });
9
+ }
10
+
11
+ export { Legend, Legend as default };
@@ -0,0 +1,4 @@
1
+ import '../index.css';
2
+ var styles = {"option":"switch-module_option__dAwWj","label":"switch-module_label__Vbkvx","rightAlign":"switch-module_rightAlign__nZ5d0","description":"switch-module_description__I2U2u","switch":"switch-module_switch__Kd2d5","thumb":"switch-module_thumb__g-8Q4","disabled":"switch-module_disabled__4MlGg"};
3
+
4
+ export { styles as default };