@salesforce/design-system-react 11.0.0-alpha.4 → 11.0.0-alpha.5

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 (257) hide show
  1. package/README.md +112 -70
  2. package/dist/cjs/components/accordion/index.cjs +1 -1
  3. package/dist/cjs/components/accordion/index.cjs.map +1 -1
  4. package/dist/cjs/components/alert/index.cjs +1 -1
  5. package/dist/cjs/components/alert/index.cjs.map +1 -1
  6. package/dist/cjs/components/avatar/index.cjs +1 -1
  7. package/dist/cjs/components/avatar/index.cjs.map +1 -1
  8. package/dist/cjs/components/badge/index.cjs +1 -1
  9. package/dist/cjs/components/badge/index.cjs.map +1 -1
  10. package/dist/cjs/components/breadcrumb/index.cjs +1 -1
  11. package/dist/cjs/components/breadcrumb/index.cjs.map +1 -1
  12. package/dist/cjs/components/builder-header/index.cjs +1 -1
  13. package/dist/cjs/components/builder-header/index.cjs.map +1 -1
  14. package/dist/cjs/components/button/index.cjs +1 -1
  15. package/dist/cjs/components/button/index.cjs.map +1 -1
  16. package/dist/cjs/components/button-group/index.cjs +1 -1
  17. package/dist/cjs/components/button-group/index.cjs.map +1 -1
  18. package/dist/cjs/components/button-stateful/index.cjs +1 -1
  19. package/dist/cjs/components/button-stateful/index.cjs.map +1 -1
  20. package/dist/cjs/components/card/index.cjs +1 -1
  21. package/dist/cjs/components/card/index.cjs.map +1 -1
  22. package/dist/cjs/components/carousel/index.cjs +1 -1
  23. package/dist/cjs/components/carousel/index.cjs.map +1 -1
  24. package/dist/cjs/components/checkbox/index.cjs +1 -1
  25. package/dist/cjs/components/checkbox/index.cjs.map +1 -1
  26. package/dist/cjs/components/color-picker/index.cjs +1 -0
  27. package/dist/cjs/components/color-picker.cjs +1 -0
  28. package/dist/cjs/components/combobox/index.cjs +1 -1
  29. package/dist/cjs/components/combobox/index.cjs.map +1 -1
  30. package/dist/cjs/components/date-picker/index.cjs +1 -1
  31. package/dist/cjs/components/date-picker/index.cjs.map +1 -1
  32. package/dist/cjs/components/docked-composer/index.cjs +1 -1
  33. package/dist/cjs/components/docked-composer/index.cjs.map +1 -1
  34. package/dist/cjs/components/dynamic-icon/index.cjs +1 -1
  35. package/dist/cjs/components/dynamic-icon/index.cjs.map +1 -1
  36. package/dist/cjs/components/expandable-section/index.cjs +1 -1
  37. package/dist/cjs/components/expandable-section/index.cjs.map +1 -1
  38. package/dist/cjs/components/files/index.cjs +1 -1
  39. package/dist/cjs/components/files/index.cjs.map +1 -1
  40. package/dist/cjs/components/filter/index.cjs +1 -0
  41. package/dist/cjs/components/filter.cjs +1 -0
  42. package/dist/cjs/components/grid/index.cjs +2 -0
  43. package/dist/cjs/components/grid/index.cjs.map +1 -0
  44. package/dist/cjs/components/grid.cjs +1 -0
  45. package/dist/cjs/components/icon/index.cjs +1 -1
  46. package/dist/cjs/components/icon/index.cjs.map +1 -1
  47. package/dist/cjs/components/icon-settings/index.cjs +1 -1
  48. package/dist/cjs/components/icon-settings/index.cjs.map +1 -1
  49. package/dist/cjs/components/illustration/index.cjs +1 -1
  50. package/dist/cjs/components/illustration/index.cjs.map +1 -1
  51. package/dist/cjs/components/input/index.cjs +1 -1
  52. package/dist/cjs/components/input/index.cjs.map +1 -1
  53. package/dist/cjs/components/media-object/index.cjs +1 -1
  54. package/dist/cjs/components/media-object/index.cjs.map +1 -1
  55. package/dist/cjs/components/menu-dropdown/index.cjs +1 -1
  56. package/dist/cjs/components/menu-dropdown/index.cjs.map +1 -1
  57. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs +1 -1
  58. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs.map +1 -1
  59. package/dist/cjs/components/modal/index.cjs +1 -1
  60. package/dist/cjs/components/modal/index.cjs.map +1 -1
  61. package/dist/cjs/components/page-header/index.cjs +1 -1
  62. package/dist/cjs/components/page-header/index.cjs.map +1 -1
  63. package/dist/cjs/components/panel/index.cjs +1 -1
  64. package/dist/cjs/components/panel/index.cjs.map +1 -1
  65. package/dist/cjs/components/pill/index.cjs +1 -1
  66. package/dist/cjs/components/pill/index.cjs.map +1 -1
  67. package/dist/cjs/components/pill-container/index.cjs +1 -1
  68. package/dist/cjs/components/pill-container/index.cjs.map +1 -1
  69. package/dist/cjs/components/popover/index.cjs +1 -1
  70. package/dist/cjs/components/popover/index.cjs.map +1 -1
  71. package/dist/cjs/components/popover/popover.cjs +1 -1
  72. package/dist/cjs/components/popover/popover.cjs.map +1 -1
  73. package/dist/cjs/components/portal-settings/index.cjs +1 -1
  74. package/dist/cjs/components/portal-settings/index.cjs.map +1 -1
  75. package/dist/cjs/components/progress-bar/index.cjs +1 -1
  76. package/dist/cjs/components/progress-bar/index.cjs.map +1 -1
  77. package/dist/cjs/components/progress-indicator/check-props.cjs +2 -0
  78. package/dist/cjs/components/progress-indicator/check-props.cjs.map +1 -0
  79. package/dist/cjs/components/progress-indicator/index.cjs +1 -1
  80. package/dist/cjs/components/progress-indicator/index.cjs.map +1 -1
  81. package/dist/cjs/components/progress-indicator/private/path.cjs +2 -0
  82. package/dist/cjs/components/progress-indicator/private/path.cjs.map +1 -0
  83. package/dist/cjs/components/progress-indicator/private/progress.cjs +1 -1
  84. package/dist/cjs/components/progress-indicator/private/progress.cjs.map +1 -1
  85. package/dist/cjs/components/progress-indicator/private/use-roving-tab-index.cjs +2 -0
  86. package/dist/cjs/components/progress-indicator/private/use-roving-tab-index.cjs.map +1 -0
  87. package/dist/cjs/components/progress-ring/index.cjs +1 -1
  88. package/dist/cjs/components/progress-ring/index.cjs.map +1 -1
  89. package/dist/cjs/components/radio/index.cjs +1 -1
  90. package/dist/cjs/components/radio/index.cjs.map +1 -1
  91. package/dist/cjs/components/radio-button-group/index.cjs +1 -1
  92. package/dist/cjs/components/radio-button-group/index.cjs.map +1 -1
  93. package/dist/cjs/components/radio-group/index.cjs +1 -1
  94. package/dist/cjs/components/radio-group/index.cjs.map +1 -1
  95. package/dist/cjs/components/scoped-notification/index.cjs +1 -1
  96. package/dist/cjs/components/scoped-notification/index.cjs.map +1 -1
  97. package/dist/cjs/components/setup-assistant/index.cjs +1 -1
  98. package/dist/cjs/components/setup-assistant/index.cjs.map +1 -1
  99. package/dist/cjs/components/simple-data-table/index.cjs +1 -1
  100. package/dist/cjs/components/simple-data-table/index.cjs.map +1 -1
  101. package/dist/cjs/components/slider/index.cjs +1 -1
  102. package/dist/cjs/components/slider/index.cjs.map +1 -1
  103. package/dist/cjs/components/spinner/index.cjs +1 -1
  104. package/dist/cjs/components/spinner/index.cjs.map +1 -1
  105. package/dist/cjs/components/split-view/index.cjs +1 -1
  106. package/dist/cjs/components/split-view/index.cjs.map +1 -1
  107. package/dist/cjs/components/tabs/index.cjs +1 -1
  108. package/dist/cjs/components/tabs/index.cjs.map +1 -1
  109. package/dist/cjs/components/textarea/index.cjs +1 -1
  110. package/dist/cjs/components/textarea/index.cjs.map +1 -1
  111. package/dist/cjs/components/toast/index.cjs +1 -1
  112. package/dist/cjs/components/toast/index.cjs.map +1 -1
  113. package/dist/cjs/components/tooltip/index.cjs +2 -2
  114. package/dist/cjs/components/tooltip/index.cjs.map +1 -1
  115. package/dist/cjs/components/tree/index.cjs +1 -0
  116. package/dist/cjs/components/tree.cjs +1 -0
  117. package/dist/cjs/components/trial-bar/index.cjs +1 -1
  118. package/dist/cjs/components/trial-bar/index.cjs.map +1 -1
  119. package/dist/cjs/components/vertical-navigation/index.cjs +1 -1
  120. package/dist/cjs/components/vertical-navigation/index.cjs.map +1 -1
  121. package/dist/cjs/components/visual-picker/index.cjs +1 -1
  122. package/dist/cjs/components/visual-picker/index.cjs.map +1 -1
  123. package/dist/cjs/components/welcome-mat/index.cjs +1 -1
  124. package/dist/cjs/components/welcome-mat/index.cjs.map +1 -1
  125. package/dist/cjs/utilities/constants.cjs +1 -1
  126. package/dist/cjs/utilities/constants.cjs.map +1 -1
  127. package/dist/cjs/utilities/hooks/index.cjs +1 -0
  128. package/dist/cjs/utilities/hooks.cjs +1 -0
  129. package/dist/cjs/utilities/warning/incompatible-props.cjs +2 -0
  130. package/dist/cjs/utilities/warning/incompatible-props.cjs.map +1 -0
  131. package/dist/es/components/accordion/index.js +28 -24
  132. package/dist/es/components/accordion/index.js.map +1 -1
  133. package/dist/es/components/alert/index.js +14 -14
  134. package/dist/es/components/alert/index.js.map +1 -1
  135. package/dist/es/components/badge/index.js +1 -0
  136. package/dist/es/components/badge/index.js.map +1 -1
  137. package/dist/es/components/button/index.js +1 -1
  138. package/dist/es/components/button/index.js.map +1 -1
  139. package/dist/es/components/button-stateful/index.js +3 -2
  140. package/dist/es/components/button-stateful/index.js.map +1 -1
  141. package/dist/es/components/color-picker/index.js +2 -0
  142. package/dist/es/components/color-picker.js +2 -0
  143. package/dist/es/components/filter/index.js +2 -0
  144. package/dist/es/components/filter.js +2 -0
  145. package/dist/es/components/grid/index.js +31 -0
  146. package/dist/es/components/grid/index.js.map +1 -0
  147. package/dist/es/components/grid.js +2 -0
  148. package/dist/es/components/menu-dropdown/index.js +5 -5
  149. package/dist/es/components/menu-dropdown/menu-dropdown.js +47 -40
  150. package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
  151. package/dist/es/components/page-header/index.js +24 -24
  152. package/dist/es/components/popover/index.js +3 -3
  153. package/dist/es/components/popover/popover.js +10 -3
  154. package/dist/es/components/popover/popover.js.map +1 -1
  155. package/dist/es/components/progress-indicator/check-props.js +24 -0
  156. package/dist/es/components/progress-indicator/check-props.js.map +1 -0
  157. package/dist/es/components/progress-indicator/index.js +80 -38
  158. package/dist/es/components/progress-indicator/index.js.map +1 -1
  159. package/dist/es/components/progress-indicator/private/path.js +95 -0
  160. package/dist/es/components/progress-indicator/private/path.js.map +1 -0
  161. package/dist/es/components/progress-indicator/private/progress.js +1 -1
  162. package/dist/es/components/progress-indicator/private/progress.js.map +1 -1
  163. package/dist/es/components/progress-indicator/private/use-roving-tab-index.js +29 -0
  164. package/dist/es/components/progress-indicator/private/use-roving-tab-index.js.map +1 -0
  165. package/dist/es/components/progress-ring/index.js +8 -8
  166. package/dist/es/components/progress-ring/index.js.map +1 -1
  167. package/dist/es/components/simple-data-table/index.js +67 -69
  168. package/dist/es/components/simple-data-table/index.js.map +1 -1
  169. package/dist/es/components/tooltip/index.js +90 -84
  170. package/dist/es/components/tooltip/index.js.map +1 -1
  171. package/dist/es/components/tree/index.js +2 -0
  172. package/dist/es/components/tree.js +2 -0
  173. package/dist/es/utilities/constants.js +2 -2
  174. package/dist/es/utilities/constants.js.map +1 -1
  175. package/dist/es/utilities/hooks/index.js +2 -0
  176. package/dist/es/utilities/hooks.js +1 -0
  177. package/dist/es/utilities/warning/incompatible-props.js +19 -0
  178. package/dist/es/utilities/warning/incompatible-props.js.map +1 -0
  179. package/dist/types/components/accordion/index.d.ts.map +1 -1
  180. package/dist/types/components/alert/index.d.ts.map +1 -1
  181. package/dist/types/components/badge/index.d.ts +1 -1
  182. package/dist/types/components/badge/index.d.ts.map +1 -1
  183. package/dist/types/components/button/index.d.ts +5 -2
  184. package/dist/types/components/button/index.d.ts.map +1 -1
  185. package/dist/types/components/button-stateful/index.d.ts +2 -2
  186. package/dist/types/components/button-stateful/index.d.ts.map +1 -1
  187. package/dist/types/components/progress-indicator/check-props.d.ts +3 -0
  188. package/dist/types/components/progress-indicator/check-props.d.ts.map +1 -0
  189. package/dist/types/components/progress-indicator/index.d.ts +39 -8
  190. package/dist/types/components/progress-indicator/index.d.ts.map +1 -1
  191. package/dist/types/components/progress-indicator/private/path.d.ts +48 -0
  192. package/dist/types/components/progress-indicator/private/path.d.ts.map +1 -0
  193. package/dist/types/components/progress-indicator/private/progress.d.ts.map +1 -1
  194. package/dist/types/components/progress-indicator/private/use-roving-tab-index.d.ts +41 -0
  195. package/dist/types/components/progress-indicator/private/use-roving-tab-index.d.ts.map +1 -0
  196. package/dist/types/components/simple-data-table/index.d.ts.map +1 -1
  197. package/dist/types/components/tooltip/index.d.ts +10 -1
  198. package/dist/types/components/tooltip/index.d.ts.map +1 -1
  199. package/dist/types/utilities/constants.d.ts +1 -0
  200. package/dist/types/utilities/constants.d.ts.map +1 -1
  201. package/dist/types/utilities/hooks/index.d.ts +1 -1
  202. package/dist/types/utilities/hooks/index.d.ts.map +1 -1
  203. package/dist/types/utilities/hooks.d.ts +0 -1
  204. package/dist/types/utilities/sample-data/global-navigation-bar.d.ts +0 -1
  205. package/dist/types/utilities/sample-data/vertical-navigation.d.ts +0 -1
  206. package/dist/types/utilities/warning/incompatible-props.d.ts.map +1 -1
  207. package/package.json +4 -3
  208. package/dist/cjs/utilities/design-tokens/dist/palette-colors.common.cjs +0 -2
  209. package/dist/cjs/utilities/design-tokens/dist/palette-colors.common.cjs.map +0 -1
  210. package/dist/cjs/utilities/design-tokens/dist/salesforce-skin.common.cjs +0 -2
  211. package/dist/cjs/utilities/design-tokens/dist/salesforce-skin.common.cjs.map +0 -1
  212. package/dist/es/utilities/design-tokens/dist/palette-colors.common.js +0 -6
  213. package/dist/es/utilities/design-tokens/dist/palette-colors.common.js.map +0 -1
  214. package/dist/es/utilities/design-tokens/dist/salesforce-skin.common.js +0 -286
  215. package/dist/es/utilities/design-tokens/dist/salesforce-skin.common.js.map +0 -1
  216. package/dist/types/utilities/design-tokens/dist/analytics-cloud.common.d.ts +0 -81
  217. package/dist/types/utilities/design-tokens/dist/analytics-cloud.common.d.ts.map +0 -1
  218. package/dist/types/utilities/design-tokens/dist/bg-actions.common.d.ts +0 -201
  219. package/dist/types/utilities/design-tokens/dist/bg-actions.common.d.ts.map +0 -1
  220. package/dist/types/utilities/design-tokens/dist/bg-custom.common.d.ts +0 -117
  221. package/dist/types/utilities/design-tokens/dist/bg-custom.common.d.ts.map +0 -1
  222. package/dist/types/utilities/design-tokens/dist/bg-icons.common.d.ts +0 -5
  223. package/dist/types/utilities/design-tokens/dist/bg-icons.common.d.ts.map +0 -1
  224. package/dist/types/utilities/design-tokens/dist/bg-standard.common.d.ts +0 -204
  225. package/dist/types/utilities/design-tokens/dist/bg-standard.common.d.ts.map +0 -1
  226. package/dist/types/utilities/design-tokens/dist/color-palettes.common.d.ts +0 -3
  227. package/dist/types/utilities/design-tokens/dist/color-palettes.common.d.ts.map +0 -1
  228. package/dist/types/utilities/design-tokens/dist/components.common.d.ts +0 -249
  229. package/dist/types/utilities/design-tokens/dist/components.common.d.ts.map +0 -1
  230. package/dist/types/utilities/design-tokens/dist/console-base.common.d.ts +0 -9
  231. package/dist/types/utilities/design-tokens/dist/console-base.common.d.ts.map +0 -1
  232. package/dist/types/utilities/design-tokens/dist/force-base.common.d.ts +0 -647
  233. package/dist/types/utilities/design-tokens/dist/force-base.common.d.ts.map +0 -1
  234. package/dist/types/utilities/design-tokens/dist/force-font-commons.common.d.ts +0 -14
  235. package/dist/types/utilities/design-tokens/dist/force-font-commons.common.d.ts.map +0 -1
  236. package/dist/types/utilities/design-tokens/dist/force-mq-commons.common.d.ts +0 -10
  237. package/dist/types/utilities/design-tokens/dist/force-mq-commons.common.d.ts.map +0 -1
  238. package/dist/types/utilities/design-tokens/dist/icon-paths.common.d.ts +0 -9
  239. package/dist/types/utilities/design-tokens/dist/icon-paths.common.d.ts.map +0 -1
  240. package/dist/types/utilities/design-tokens/dist/illustrations.common.d.ts +0 -7
  241. package/dist/types/utilities/design-tokens/dist/illustrations.common.d.ts.map +0 -1
  242. package/dist/types/utilities/design-tokens/dist/image-paths.common.d.ts +0 -12
  243. package/dist/types/utilities/design-tokens/dist/image-paths.common.d.ts.map +0 -1
  244. package/dist/types/utilities/design-tokens/dist/marketing-cloud.common.d.ts +0 -35
  245. package/dist/types/utilities/design-tokens/dist/marketing-cloud.common.d.ts.map +0 -1
  246. package/dist/types/utilities/design-tokens/dist/palette-colors.common.d.ts +0 -98
  247. package/dist/types/utilities/design-tokens/dist/palette-colors.common.d.ts.map +0 -1
  248. package/dist/types/utilities/design-tokens/dist/s1-base-large.common.d.ts +0 -15
  249. package/dist/types/utilities/design-tokens/dist/s1-base-large.common.d.ts.map +0 -1
  250. package/dist/types/utilities/design-tokens/dist/s1-base-medium.common.d.ts +0 -5
  251. package/dist/types/utilities/design-tokens/dist/s1-base-medium.common.d.ts.map +0 -1
  252. package/dist/types/utilities/design-tokens/dist/s1-base-small.common.d.ts +0 -11
  253. package/dist/types/utilities/design-tokens/dist/s1-base-small.common.d.ts.map +0 -1
  254. package/dist/types/utilities/design-tokens/dist/s1-base.common.d.ts +0 -21
  255. package/dist/types/utilities/design-tokens/dist/s1-base.common.d.ts.map +0 -1
  256. package/dist/types/utilities/design-tokens/dist/salesforce-skin.common.d.ts +0 -283
  257. package/dist/types/utilities/design-tokens/dist/salesforce-skin.common.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/docked-composer/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useId, type ReactNode, type MouseEvent } from 'react';\nimport Button from '../button';\n\n/**\n * Assistive text for DockedComposer\n */\nexport interface DockedComposerAssistiveText {\n\t/** Label for expand button */\n\texpandButton?: string;\n\t/** Label for minimize button */\n\tminimizeButton?: string;\n\t/** Label for close button */\n\tcloseButton?: string;\n}\n\n/**\n * Event handlers for DockedComposer\n */\nexport interface DockedComposerEvents {\n\t/** Called when minimize is requested */\n\tonRequestMinimize?: (event: MouseEvent<HTMLButtonElement>) => void;\n\t/** Called when expand is requested */\n\tonRequestExpand?: (event: MouseEvent<HTMLButtonElement>) => void;\n\t/** Called when close is requested */\n\tonRequestClose?: (event: MouseEvent<HTMLButtonElement>) => void;\n}\n\n/**\n * Props for the DockedComposer component\n */\nexport interface DockedComposerProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: DockedComposerAssistiveText;\n\t/** Body content */\n\tbody?: ReactNode;\n\t/** Additional container class name */\n\tclassNameContainer?: string;\n\t/** Event handlers */\n\tevents?: DockedComposerEvents;\n\t/** Header text or element */\n\theader?: ReactNode;\n\t/** HTML id */\n\tid?: string;\n\t/** Whether the composer is open */\n\tisOpen?: boolean;\n}\n\nconst defaultAssistiveText: DockedComposerAssistiveText = {\n\texpandButton: 'Expand',\n\tminimizeButton: 'Minimize',\n\tcloseButton: 'Close',\n};\n\n/**\n * The Docked Composer is a persistent utility bar that allows a user to continually\n * use the app to complete tasks or gather information while expanding/collapsing a composer window.\n */\nconst DockedComposer = ({\n\tassistiveText: propAssistiveText,\n\tbody,\n\tclassNameContainer,\n\tevents = {},\n\theader,\n\tid: propId,\n\tisOpen,\n}: DockedComposerProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\n\tconst sectionClassName = isOpen ? 'slds-is-open' : 'slds-is-closed';\n\n\treturn (\n\t\t<div\n\t\t\tid={`${id}-container`}\n\t\t\tclassName={`slds-docked_container${classNameContainer ? ` ${classNameContainer}` : ''}`}\n\t\t>\n\t\t\t<section\n\t\t\t\tclassName={`slds-docked-composer slds-grid slds-grid_vertical ${sectionClassName}`}\n\t\t\t\trole=\"dialog\"\n\t\t\t\taria-labelledby={`${id}-dialog-heading`}\n\t\t\t\taria-describedby={`${id}-body`}\n\t\t\t>\n\t\t\t\t<header\n\t\t\t\t\tclassName=\"slds-docked-composer__header slds-grid slds-shrink-none\"\n\t\t\t\t\taria-live=\"assertive\"\n\t\t\t\t>\n\t\t\t\t\t<div className=\"slds-media slds-media_center slds-no-space\">\n\t\t\t\t\t\t<div className=\"slds-media__body\">\n\t\t\t\t\t\t\t<h2\n\t\t\t\t\t\t\t\tclassName=\"slds-truncate\"\n\t\t\t\t\t\t\t\tid={`${id}-dialog-heading`}\n\t\t\t\t\t\t\t\ttitle={typeof header === 'string' ? header : undefined}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{header}\n\t\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_bump-left slds-shrink-none\">\n\t\t\t\t\t\t{isOpen ? (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tid={`${id}-minimize-button`}\n\t\t\t\t\t\t\t\ttitle={assistiveText.minimizeButton}\n\t\t\t\t\t\t\t\tassistiveText={{ icon: assistiveText.minimizeButton }}\n\t\t\t\t\t\t\t\tonClick={events.onRequestMinimize}\n\t\t\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\t\t\ticonName=\"minimize_window\"\n\t\t\t\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tid={`${id}-expand-button`}\n\t\t\t\t\t\t\t\ttitle={assistiveText.expandButton}\n\t\t\t\t\t\t\t\tassistiveText={{ icon: assistiveText.expandButton }}\n\t\t\t\t\t\t\t\tonClick={events.onRequestExpand}\n\t\t\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\t\t\ticonName=\"expand_alt\"\n\t\t\t\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tid={`${id}-close-button`}\n\t\t\t\t\t\t\ttitle={assistiveText.closeButton}\n\t\t\t\t\t\t\tassistiveText={{ icon: assistiveText.closeButton }}\n\t\t\t\t\t\t\tonClick={events.onRequestClose}\n\t\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\t\ticonName=\"close\"\n\t\t\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</header>\n\t\t\t\t{isOpen && (\n\t\t\t\t\t<div className=\"slds-docked-composer__body\" id={`${id}-body`}>\n\t\t\t\t\t\t{body}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</section>\n\t\t</div>\n\t);\n};\n\nDockedComposer.displayName = 'SLDSDockedComposer';\n\nexport default DockedComposer;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"oKAkDA,IAAM,EAAoD,CACzD,aAAc,SACd,eAAgB,WAChB,YAAa,OACd,EAMM,GAAkB,CACvB,cAAe,EACf,OACA,qBACA,SAAS,CAAC,EACV,SACA,GAAI,EACJ,YAC8C,CAC9C,IAAM,GAAA,EAAc,EAAA,MAAA,CAAM,EACpB,EAAK,GAAU,EACf,EAAgB,CAAE,GAAG,EAAsB,GAAG,CAAkB,EAEhE,EAAmB,EAAS,eAAiB,iBAEnD,OACC,EAAA,EAAA,IAAA,CAAC,MAAD,CACC,GAAI,GAAG,EAAG,YACV,UAAW,wBAAwB,EAAqB,IAAI,IAAuB,KAEnF,UAAA,EAAA,EAAA,KAAA,CAAC,UAAD,CACC,UAAW,qDAAqD,IAChE,KAAK,SACL,kBAAiB,GAAG,EAAG,iBACvB,mBAAkB,GAAG,EAAG,OAJzB,SAAA,EAMC,EAAA,EAAA,KAAA,CAAC,SAAD,CACC,UAAU,0DACV,YAAU,YAFX,SAAA,EAIC,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,6CACd,UAAA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,mBACd,UAAA,EAAA,EAAA,IAAA,CAAC,KAAD,CACC,UAAU,gBACV,GAAI,GAAG,EAAG,iBACV,MAAO,OAAO,GAAW,SAAW,EAAS,IAAA,GAE5C,SAAA,CACE,CAAA,CACA,CAAA,CACD,CAAA,GACL,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAU,sCAAf,SAAA,CACE,GACA,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,GAAI,GAAG,EAAG,kBACV,MAAO,EAAc,eACrB,cAAe,CAAE,KAAM,EAAc,cAAe,EACpD,QAAS,EAAO,kBAChB,aAAa,UACb,SAAS,kBACT,YAAY,OACZ,QAAQ,MACR,CAAA,GAED,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,GAAI,GAAG,EAAG,gBACV,MAAO,EAAc,aACrB,cAAe,CAAE,KAAM,EAAc,YAAa,EAClD,QAAS,EAAO,gBAChB,aAAa,UACb,SAAS,aACT,YAAY,OACZ,QAAQ,MACR,CAAA,GAEF,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,GAAI,GAAG,EAAG,eACV,MAAO,EAAc,YACrB,cAAe,CAAE,KAAM,EAAc,WAAY,EACjD,QAAS,EAAO,eAChB,aAAa,UACb,SAAS,QACT,YAAY,OACZ,QAAQ,MACR,CAAA,CACG,CACE,CAAA,CAAA,CACP,CAAA,EAAA,IACA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,6BAA6B,GAAI,GAAG,EAAG,OACpD,SAAA,CACG,CAAA,CAEE,GACL,CAAA,CAEP,EAEA,EAAe,YAAc"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/docked-composer/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useId, type ReactNode, type MouseEvent } from 'react';\nimport Button from '../button';\n\n/**\n * Assistive text for DockedComposer\n */\nexport interface DockedComposerAssistiveText {\n\t/** Label for expand button */\n\texpandButton?: string;\n\t/** Label for minimize button */\n\tminimizeButton?: string;\n\t/** Label for close button */\n\tcloseButton?: string;\n}\n\n/**\n * Event handlers for DockedComposer\n */\nexport interface DockedComposerEvents {\n\t/** Called when minimize is requested */\n\tonRequestMinimize?: (event: MouseEvent<HTMLButtonElement>) => void;\n\t/** Called when expand is requested */\n\tonRequestExpand?: (event: MouseEvent<HTMLButtonElement>) => void;\n\t/** Called when close is requested */\n\tonRequestClose?: (event: MouseEvent<HTMLButtonElement>) => void;\n}\n\n/**\n * Props for the DockedComposer component\n */\nexport interface DockedComposerProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: DockedComposerAssistiveText;\n\t/** Body content */\n\tbody?: ReactNode;\n\t/** Additional container class name */\n\tclassNameContainer?: string;\n\t/** Event handlers */\n\tevents?: DockedComposerEvents;\n\t/** Header text or element */\n\theader?: ReactNode;\n\t/** HTML id */\n\tid?: string;\n\t/** Whether the composer is open */\n\tisOpen?: boolean;\n}\n\nconst defaultAssistiveText: DockedComposerAssistiveText = {\n\texpandButton: 'Expand',\n\tminimizeButton: 'Minimize',\n\tcloseButton: 'Close',\n};\n\n/**\n * The Docked Composer is a persistent utility bar that allows a user to continually\n * use the app to complete tasks or gather information while expanding/collapsing a composer window.\n */\nconst DockedComposer = ({\n\tassistiveText: propAssistiveText,\n\tbody,\n\tclassNameContainer,\n\tevents = {},\n\theader,\n\tid: propId,\n\tisOpen,\n}: DockedComposerProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\n\tconst sectionClassName = isOpen ? 'slds-is-open' : 'slds-is-closed';\n\n\treturn (\n\t\t<div\n\t\t\tid={`${id}-container`}\n\t\t\tclassName={`slds-docked_container${classNameContainer ? ` ${classNameContainer}` : ''}`}\n\t\t>\n\t\t\t<section\n\t\t\t\tclassName={`slds-docked-composer slds-grid slds-grid_vertical ${sectionClassName}`}\n\t\t\t\trole=\"dialog\"\n\t\t\t\taria-labelledby={`${id}-dialog-heading`}\n\t\t\t\taria-describedby={`${id}-body`}\n\t\t\t>\n\t\t\t\t<header\n\t\t\t\t\tclassName=\"slds-docked-composer__header slds-grid slds-shrink-none\"\n\t\t\t\t\taria-live=\"assertive\"\n\t\t\t\t>\n\t\t\t\t\t<div className=\"slds-media slds-media_center slds-no-space\">\n\t\t\t\t\t\t<div className=\"slds-media__body\">\n\t\t\t\t\t\t\t<h2\n\t\t\t\t\t\t\t\tclassName=\"slds-truncate\"\n\t\t\t\t\t\t\t\tid={`${id}-dialog-heading`}\n\t\t\t\t\t\t\t\ttitle={typeof header === 'string' ? header : undefined}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{header}\n\t\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"slds-col_bump-left slds-shrink-none\">\n\t\t\t\t\t\t{isOpen ? (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tid={`${id}-minimize-button`}\n\t\t\t\t\t\t\t\ttitle={assistiveText.minimizeButton}\n\t\t\t\t\t\t\t\tassistiveText={{ icon: assistiveText.minimizeButton }}\n\t\t\t\t\t\t\t\tonClick={events.onRequestMinimize}\n\t\t\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\t\t\ticonName=\"minimize_window\"\n\t\t\t\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tid={`${id}-expand-button`}\n\t\t\t\t\t\t\t\ttitle={assistiveText.expandButton}\n\t\t\t\t\t\t\t\tassistiveText={{ icon: assistiveText.expandButton }}\n\t\t\t\t\t\t\t\tonClick={events.onRequestExpand}\n\t\t\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\t\t\ticonName=\"expand_alt\"\n\t\t\t\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tid={`${id}-close-button`}\n\t\t\t\t\t\t\ttitle={assistiveText.closeButton}\n\t\t\t\t\t\t\tassistiveText={{ icon: assistiveText.closeButton }}\n\t\t\t\t\t\t\tonClick={events.onRequestClose}\n\t\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\t\ticonName=\"close\"\n\t\t\t\t\t\t\ticonVariant=\"bare\"\n\t\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</header>\n\t\t\t\t{isOpen && (\n\t\t\t\t\t<div className=\"slds-docked-composer__body\" id={`${id}-body`}>\n\t\t\t\t\t\t{body}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</section>\n\t\t</div>\n\t);\n};\n\nDockedComposer.displayName = 'SLDSDockedComposer';\n\nexport default DockedComposer;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"mQAkDA,IAAM,EAAoD,CACzD,aAAc,SACd,eAAgB,WAChB,YAAa,OACd,EAMM,GAAkB,CACvB,cAAe,EACf,OACA,qBACA,SAAS,CAAC,EACV,SACA,GAAI,EACJ,YAC8C,CAC9C,IAAM,GAAA,EAAc,EAAA,MAAA,CAAM,EACpB,EAAK,GAAU,EACf,EAAgB,CAAE,GAAG,EAAsB,GAAG,CAAkB,EAEhE,EAAmB,EAAS,eAAiB,iBAEnD,OACC,EAAA,EAAA,IAAA,CAAC,MAAD,CACC,GAAI,GAAG,EAAG,YACV,UAAW,wBAAwB,EAAqB,IAAI,IAAuB,KAEnF,UAAA,EAAA,EAAA,KAAA,CAAC,UAAD,CACC,UAAW,qDAAqD,IAChE,KAAK,SACL,kBAAiB,GAAG,EAAG,iBACvB,mBAAkB,GAAG,EAAG,OAJzB,SAAA,EAMC,EAAA,EAAA,KAAA,CAAC,SAAD,CACC,UAAU,0DACV,YAAU,YAFX,SAAA,EAIC,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,6CACd,UAAA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,mBACd,UAAA,EAAA,EAAA,IAAA,CAAC,KAAD,CACC,UAAU,gBACV,GAAI,GAAG,EAAG,iBACV,MAAO,OAAO,GAAW,SAAW,EAAS,IAAA,GAE5C,SAAA,CACE,CAAA,CACA,CAAA,CACD,CAAA,GACL,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAU,sCAAf,SAAA,CACE,GACA,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,GAAI,GAAG,EAAG,kBACV,MAAO,EAAc,eACrB,cAAe,CAAE,KAAM,EAAc,cAAe,EACpD,QAAS,EAAO,kBAChB,aAAa,UACb,SAAS,kBACT,YAAY,OACZ,QAAQ,MACR,CAAA,GAED,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,GAAI,GAAG,EAAG,gBACV,MAAO,EAAc,aACrB,cAAe,CAAE,KAAM,EAAc,YAAa,EAClD,QAAS,EAAO,gBAChB,aAAa,UACb,SAAS,aACT,YAAY,OACZ,QAAQ,MACR,CAAA,GAEF,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,GAAI,GAAG,EAAG,eACV,MAAO,EAAc,YACrB,cAAe,CAAE,KAAM,EAAc,WAAY,EACjD,QAAS,EAAO,eAChB,aAAa,UACb,SAAS,QACT,YAAY,OACZ,QAAQ,MACR,CAAA,CACG,CACE,CAAA,CAAA,CACP,CAAA,EAAA,IACA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,6BAA6B,GAAI,GAAG,EAAG,OACpD,SAAA,CACG,CAAA,CAEE,GACL,CAAA,CAEP,EAEA,EAAe,YAAc"}
@@ -1,2 +1,2 @@
1
- const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../../utilities/class-names.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=({assistiveText:e,className:t,isPaused:a,isStatic:o,scorePolarity:s,strengthLevel:c,title:l,trendDirection:u,variant:d})=>{let f=(()=>{let t=[],n=l||`${d.charAt(0).toUpperCase()}${d.slice(1)}`;return d===`ellie`?t.push((0,i.jsx)(`svg`,{viewBox:`0 0 280 14`,"aria-hidden":`true`,children:Array.from({length:20},(e,t)=>{let n=7+t*14;return(0,i.jsxs)(r.default.Fragment,{children:[(0,i.jsx)(`circle`,{cx:n,cy:`7`,r:`4`}),(0,i.jsx)(`circle`,{cx:n,cy:`7`,r:`3`})]},t)})},`ellie-svg`)):d===`eq`?t.push((0,i.jsx)(`div`,{className:`slds-icon-eq__bar`},`eq-bar-1`),(0,i.jsx)(`div`,{className:`slds-icon-eq__bar`},`eq-bar-2`),(0,i.jsx)(`div`,{className:`slds-icon-eq__bar`},`eq-bar-3`)):d===`score`?t.push((0,i.jsx)(`svg`,{viewBox:`0 0 5 5`,className:`slds-icon-score__positive`,"aria-hidden":`true`,children:(0,i.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:`1.875`})},`score-pos`),(0,i.jsx)(`svg`,{viewBox:`0 0 5 5`,className:`slds-icon-score__negative`,"aria-hidden":`true`,children:(0,i.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:`1.875`})},`score-neg`)):d===`strength`?t.push((0,i.jsxs)(`svg`,{viewBox:`0 0 27 7`,"aria-hidden":`true`,children:[(0,i.jsx)(`circle`,{r:`3.025`,cx:`3.5`,cy:`3.5`}),(0,i.jsx)(`circle`,{r:`3.025`,cx:`13.5`,cy:`3.5`}),(0,i.jsx)(`circle`,{r:`3.025`,cx:`23.5`,cy:`3.5`})]},`strength-svg`)):d===`trend`?t.push((0,i.jsxs)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:[(0,i.jsx)(`path`,{className:`slds-icon-trend__arrow`,d:`M.75 8H11M8 4.5L11.5 8 8 11.5`}),(0,i.jsx)(`circle`,{className:`slds-icon-trend__circle`,cy:`8`,cx:`8`,r:`7.375`,transform:`rotate(-28 8 8) scale(-1 1) translate(-16 0)`})]},`trend-svg`)):d===`typing`?(t.push((0,i.jsx)(`span`,{className:`slds-icon-typing__dot`},`typing-1`),(0,i.jsx)(`span`,{className:`slds-icon-typing__dot`},`typing-2`),(0,i.jsx)(`span`,{className:`slds-icon-typing__dot`},`typing-3`)),l||(n=`User is typing`)):d===`waffle`&&(t.push((0,i.jsxs)(`span`,{className:`slds-icon-waffle`,children:[(0,i.jsx)(`span`,{className:`slds-r1`}),(0,i.jsx)(`span`,{className:`slds-r2`}),(0,i.jsx)(`span`,{className:`slds-r3`}),(0,i.jsx)(`span`,{className:`slds-r4`}),(0,i.jsx)(`span`,{className:`slds-r5`}),(0,i.jsx)(`span`,{className:`slds-r6`}),(0,i.jsx)(`span`,{className:`slds-r7`}),(0,i.jsx)(`span`,{className:`slds-r8`}),(0,i.jsx)(`span`,{className:`slds-r9`})]},`waffle`)),l||(n=`Open App Launcher`)),t.push((0,i.jsx)(`span`,{className:`slds-assistive-text`,children:e?.label||n},`assistive`)),t})(),p=[{"slds-is-animated":!o,"slds-is-paused":a}],m={title:l},h=`span`;return d===`waffle`?(p.unshift(`slds-button`,`slds-icon-waffle_container`),h=`button`):(p.unshift(`slds-icon-${d}`),d===`eq`?h=`div`:d===`score`?m[`data-slds-state`]=s||`positive`:d===`strength`?m[`data-slds-strength`]=c===void 0?`0`:`${c}`:d===`trend`&&(m[`data-slds-trend`]=u||`neutral`)),m.className=n.default(p,t),r.default.createElement(h,m,...f)};a.displayName=t.DYNAMIC_ICON,exports.default=a;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../../utilities/class-names.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=({assistiveText:e,className:t,isPaused:a,isStatic:o,scorePolarity:s,strengthLevel:c,title:l,trendDirection:u,variant:d})=>{let f=(()=>{let t=[],n=l||`${d.charAt(0).toUpperCase()}${d.slice(1)}`;return d===`ellie`?t.push((0,i.jsx)(`svg`,{viewBox:`0 0 280 14`,"aria-hidden":`true`,children:Array.from({length:20},(e,t)=>{let n=7+t*14;return(0,i.jsxs)(r.default.Fragment,{children:[(0,i.jsx)(`circle`,{cx:n,cy:`7`,r:`4`}),(0,i.jsx)(`circle`,{cx:n,cy:`7`,r:`3`})]},t)})},`ellie-svg`)):d===`eq`?t.push((0,i.jsx)(`div`,{className:`slds-icon-eq__bar`},`eq-bar-1`),(0,i.jsx)(`div`,{className:`slds-icon-eq__bar`},`eq-bar-2`),(0,i.jsx)(`div`,{className:`slds-icon-eq__bar`},`eq-bar-3`)):d===`score`?t.push((0,i.jsx)(`svg`,{viewBox:`0 0 5 5`,className:`slds-icon-score__positive`,"aria-hidden":`true`,children:(0,i.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:`1.875`})},`score-pos`),(0,i.jsx)(`svg`,{viewBox:`0 0 5 5`,className:`slds-icon-score__negative`,"aria-hidden":`true`,children:(0,i.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:`1.875`})},`score-neg`)):d===`strength`?t.push((0,i.jsxs)(`svg`,{viewBox:`0 0 27 7`,"aria-hidden":`true`,children:[(0,i.jsx)(`circle`,{r:`3.025`,cx:`3.5`,cy:`3.5`}),(0,i.jsx)(`circle`,{r:`3.025`,cx:`13.5`,cy:`3.5`}),(0,i.jsx)(`circle`,{r:`3.025`,cx:`23.5`,cy:`3.5`})]},`strength-svg`)):d===`trend`?t.push((0,i.jsxs)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:[(0,i.jsx)(`path`,{className:`slds-icon-trend__arrow`,d:`M.75 8H11M8 4.5L11.5 8 8 11.5`}),(0,i.jsx)(`circle`,{className:`slds-icon-trend__circle`,cy:`8`,cx:`8`,r:`7.375`,transform:`rotate(-28 8 8) scale(-1 1) translate(-16 0)`})]},`trend-svg`)):d===`typing`?(t.push((0,i.jsx)(`span`,{className:`slds-icon-typing__dot`},`typing-1`),(0,i.jsx)(`span`,{className:`slds-icon-typing__dot`},`typing-2`),(0,i.jsx)(`span`,{className:`slds-icon-typing__dot`},`typing-3`)),l||(n=`User is typing`)):d===`waffle`&&(t.push((0,i.jsxs)(`span`,{className:`slds-icon-waffle`,children:[(0,i.jsx)(`span`,{className:`slds-r1`}),(0,i.jsx)(`span`,{className:`slds-r2`}),(0,i.jsx)(`span`,{className:`slds-r3`}),(0,i.jsx)(`span`,{className:`slds-r4`}),(0,i.jsx)(`span`,{className:`slds-r5`}),(0,i.jsx)(`span`,{className:`slds-r6`}),(0,i.jsx)(`span`,{className:`slds-r7`}),(0,i.jsx)(`span`,{className:`slds-r8`}),(0,i.jsx)(`span`,{className:`slds-r9`})]},`waffle`)),l||(n=`Open App Launcher`)),t.push((0,i.jsx)(`span`,{className:`slds-assistive-text`,children:e?.label||n},`assistive`)),t})(),p=[{"slds-is-animated":!o,"slds-is-paused":a}],m={title:l},h=`span`;return d===`waffle`?(p.unshift(`slds-button`,`slds-icon-waffle_container`),h=`button`):(p.unshift(`slds-icon-${d}`),d===`eq`?h=`div`:d===`score`?m[`data-slds-state`]=s||`positive`:d===`strength`?m[`data-slds-strength`]=c===void 0?`0`:`${c}`:d===`trend`&&(m[`data-slds-trend`]=u||`neutral`)),m.className=n.default(p,t),r.default.createElement(h,m,...f)};a.displayName=t.DYNAMIC_ICON,exports.default=a;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/dynamic-icon/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { type ReactNode } from 'react';\nimport classNames from '../../utilities/class-names';\nimport { DYNAMIC_ICON } from '../../utilities/constants';\n\n/**\n * Dynamic icon variant types\n */\nexport type DynamicIconVariant = 'ellie' | 'eq' | 'score' | 'strength' | 'trend' | 'typing' | 'waffle';\n\n/**\n * Score polarity options\n */\nexport type ScorePolarity = 'positive' | 'negative';\n\n/**\n * Strength level options\n */\nexport type StrengthLevel = '-3' | '-2' | '-1' | '0' | '1' | '2' | '3' | -3 | -2 | -1 | 0 | 1 | 2 | 3;\n\n/**\n * Trend direction options\n */\nexport type TrendDirection = 'down' | 'up' | 'neutral';\n\n/**\n * Assistive text for DynamicIcon\n */\nexport interface DynamicIconAssistiveText {\n\t/** Label for the icon */\n\tlabel?: string;\n}\n\n/**\n * Props for the DynamicIcon component\n */\nexport interface DynamicIconProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: DynamicIconAssistiveText;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Pauses animation */\n\tisPaused?: boolean;\n\t/** Disables animation */\n\tisStatic?: boolean;\n\t/** Polarity for score variant */\n\tscorePolarity?: ScorePolarity;\n\t/** Strength level for strength variant */\n\tstrengthLevel?: StrengthLevel;\n\t/** Title attribute (required) */\n\ttitle: string;\n\t/** Trend direction for trend variant */\n\ttrendDirection?: TrendDirection;\n\t/** Icon variant (required) */\n\tvariant: DynamicIconVariant;\n}\n\n/**\n * A set of delightful animated icons.\n */\nconst DynamicIcon = ({\n\tassistiveText,\n\tclassName,\n\tisPaused,\n\tisStatic,\n\tscorePolarity,\n\tstrengthLevel,\n\ttitle,\n\ttrendDirection,\n\tvariant,\n}: DynamicIconProps): React.ReactElement => {\n\tconst getIconChildren = (): ReactNode[] => {\n\t\tconst children: ReactNode[] = [];\n\t\tlet defaultAssistiveText = title || `${variant.charAt(0).toUpperCase()}${variant.slice(1)}`;\n\n\t\tif (variant === 'ellie') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"ellie-svg\" viewBox=\"0 0 280 14\" aria-hidden=\"true\">\n\t\t\t\t\t{Array.from({ length: 20 }, (_, i) => {\n\t\t\t\t\t\tconst cx = 7 + i * 14;\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<React.Fragment key={i}>\n\t\t\t\t\t\t\t\t<circle cx={cx} cy=\"7\" r=\"4\" />\n\t\t\t\t\t\t\t\t<circle cx={cx} cy=\"7\" r=\"3\" />\n\t\t\t\t\t\t\t</React.Fragment>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'eq') {\n\t\t\tchildren.push(\n\t\t\t\t<div key=\"eq-bar-1\" className=\"slds-icon-eq__bar\" />,\n\t\t\t\t<div key=\"eq-bar-2\" className=\"slds-icon-eq__bar\" />,\n\t\t\t\t<div key=\"eq-bar-3\" className=\"slds-icon-eq__bar\" />\n\t\t\t);\n\t\t} else if (variant === 'score') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"score-pos\" viewBox=\"0 0 5 5\" className=\"slds-icon-score__positive\" aria-hidden=\"true\">\n\t\t\t\t\t<circle cx=\"50%\" cy=\"50%\" r=\"1.875\" />\n\t\t\t\t</svg>,\n\t\t\t\t<svg key=\"score-neg\" viewBox=\"0 0 5 5\" className=\"slds-icon-score__negative\" aria-hidden=\"true\">\n\t\t\t\t\t<circle cx=\"50%\" cy=\"50%\" r=\"1.875\" />\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'strength') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"strength-svg\" viewBox=\"0 0 27 7\" aria-hidden=\"true\">\n\t\t\t\t\t<circle r=\"3.025\" cx=\"3.5\" cy=\"3.5\" />\n\t\t\t\t\t<circle r=\"3.025\" cx=\"13.5\" cy=\"3.5\" />\n\t\t\t\t\t<circle r=\"3.025\" cx=\"23.5\" cy=\"3.5\" />\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'trend') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"trend-svg\" viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n\t\t\t\t\t<path className=\"slds-icon-trend__arrow\" d=\"M.75 8H11M8 4.5L11.5 8 8 11.5\" />\n\t\t\t\t\t<circle\n\t\t\t\t\t\tclassName=\"slds-icon-trend__circle\"\n\t\t\t\t\t\tcy=\"8\"\n\t\t\t\t\t\tcx=\"8\"\n\t\t\t\t\t\tr=\"7.375\"\n\t\t\t\t\t\ttransform=\"rotate(-28 8 8) scale(-1 1) translate(-16 0)\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'typing') {\n\t\t\tchildren.push(\n\t\t\t\t<span key=\"typing-1\" className=\"slds-icon-typing__dot\" />,\n\t\t\t\t<span key=\"typing-2\" className=\"slds-icon-typing__dot\" />,\n\t\t\t\t<span key=\"typing-3\" className=\"slds-icon-typing__dot\" />\n\t\t\t);\n\t\t\tif (!title) {\n\t\t\t\tdefaultAssistiveText = 'User is typing';\n\t\t\t}\n\t\t} else if (variant === 'waffle') {\n\t\t\tchildren.push(\n\t\t\t\t<span key=\"waffle\" className=\"slds-icon-waffle\">\n\t\t\t\t\t<span className=\"slds-r1\" />\n\t\t\t\t\t<span className=\"slds-r2\" />\n\t\t\t\t\t<span className=\"slds-r3\" />\n\t\t\t\t\t<span className=\"slds-r4\" />\n\t\t\t\t\t<span className=\"slds-r5\" />\n\t\t\t\t\t<span className=\"slds-r6\" />\n\t\t\t\t\t<span className=\"slds-r7\" />\n\t\t\t\t\t<span className=\"slds-r8\" />\n\t\t\t\t\t<span className=\"slds-r9\" />\n\t\t\t\t</span>\n\t\t\t);\n\t\t\tif (!title) {\n\t\t\t\tdefaultAssistiveText = 'Open App Launcher';\n\t\t\t}\n\t\t}\n\n\t\tchildren.push(\n\t\t\t<span key=\"assistive\" className=\"slds-assistive-text\">\n\t\t\t\t{assistiveText?.label || defaultAssistiveText}\n\t\t\t</span>\n\t\t);\n\n\t\treturn children;\n\t};\n\n\tconst children = getIconChildren();\n\tconst classes: (string | Record<string, boolean | undefined>)[] = [\n\t\t{\n\t\t\t'slds-is-animated': !isStatic,\n\t\t\t'slds-is-paused': isPaused,\n\t\t},\n\t];\n\n\tconst iconProps: Record<string, unknown> = {\n\t\ttitle,\n\t};\n\n\tlet element: 'span' | 'div' | 'button' = 'span';\n\n\tif (variant === 'waffle') {\n\t\tclasses.unshift('slds-button', 'slds-icon-waffle_container');\n\t\telement = 'button';\n\t} else {\n\t\tclasses.unshift(`slds-icon-${variant}`);\n\n\t\tif (variant === 'eq') {\n\t\t\telement = 'div';\n\t\t} else if (variant === 'score') {\n\t\t\ticonProps['data-slds-state'] = scorePolarity || 'positive';\n\t\t} else if (variant === 'strength') {\n\t\t\ticonProps['data-slds-strength'] = strengthLevel !== undefined ? `${strengthLevel}` : '0';\n\t\t} else if (variant === 'trend') {\n\t\t\ticonProps['data-slds-trend'] = trendDirection || 'neutral';\n\t\t}\n\t}\n\n\ticonProps.className = classNames(classes, className);\n\n\treturn React.createElement(element, iconProps, ...children);\n};\n\nDynamicIcon.displayName = DYNAMIC_ICON;\n\nexport default DynamicIcon;\n\n"],"mappings":"2NA8DA,IAAM,GAAe,CACpB,gBACA,YACA,WACA,WACA,gBACA,gBACA,QACA,iBACA,aAC2C,CA4F3C,IAAM,OA3FqC,CAC1C,IAAM,EAAwB,CAAC,EAC3B,EAAuB,GAAS,GAAG,EAAQ,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,EAAQ,MAAM,CAAC,IAsFxF,OApFI,IAAY,QACf,EAAS,MACR,EAAA,EAAA,IAAA,CAAC,MAAD,CAAqB,QAAQ,aAAa,cAAY,OACpD,SAAA,MAAM,KAAK,CAAE,OAAQ,EAAG,GAAI,EAAG,IAAM,CACrC,IAAM,EAAK,EAAI,EAAI,GACnB,OACC,EAAA,EAAA,KAAA,CAAC,EAAA,QAAM,SAAP,CAAA,SAAA,EACC,EAAA,EAAA,IAAA,CAAC,SAAD,CAAY,KAAI,GAAG,IAAI,EAAE,GAAK,CAAA,GAC9B,EAAA,EAAA,IAAA,CAAC,SAAD,CAAY,KAAI,GAAG,IAAI,EAAE,GAAK,CAAA,CACf,CAAA,EAHK,CAGL,CAElB,CAAC,CACG,EAVI,WAUJ,CACN,EACU,IAAY,KACtB,EAAS,MACR,EAAA,EAAA,IAAA,CAAC,MAAD,CAAoB,UAAU,mBAAqB,EAA1C,UAA0C,GACnD,EAAA,EAAA,IAAA,CAAC,MAAD,CAAoB,UAAU,mBAAqB,EAA1C,UAA0C,GACnD,EAAA,EAAA,IAAA,CAAC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QACtB,EAAU,mBAAqB,GAAiB,WACtC,IAAY,WACtB,EAAU,sBAAwB,IAAkB,IAAA,GAAiC,IAArB,GAAG,IACzD,IAAY,UACtB,EAAU,mBAAqB,GAAkB,YAInD,EAAU,UAAY,EAAA,QAAW,EAAS,CAAS,EAE5C,EAAA,QAAM,cAAc,EAAS,EAAW,GAAG,CAAQ,CAC3D,EAEA,EAAY,YAAc,EAAA"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/dynamic-icon/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { type ReactNode } from 'react';\nimport classNames from '../../utilities/class-names';\nimport { DYNAMIC_ICON } from '../../utilities/constants';\n\n/**\n * Dynamic icon variant types\n */\nexport type DynamicIconVariant = 'ellie' | 'eq' | 'score' | 'strength' | 'trend' | 'typing' | 'waffle';\n\n/**\n * Score polarity options\n */\nexport type ScorePolarity = 'positive' | 'negative';\n\n/**\n * Strength level options\n */\nexport type StrengthLevel = '-3' | '-2' | '-1' | '0' | '1' | '2' | '3' | -3 | -2 | -1 | 0 | 1 | 2 | 3;\n\n/**\n * Trend direction options\n */\nexport type TrendDirection = 'down' | 'up' | 'neutral';\n\n/**\n * Assistive text for DynamicIcon\n */\nexport interface DynamicIconAssistiveText {\n\t/** Label for the icon */\n\tlabel?: string;\n}\n\n/**\n * Props for the DynamicIcon component\n */\nexport interface DynamicIconProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: DynamicIconAssistiveText;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Pauses animation */\n\tisPaused?: boolean;\n\t/** Disables animation */\n\tisStatic?: boolean;\n\t/** Polarity for score variant */\n\tscorePolarity?: ScorePolarity;\n\t/** Strength level for strength variant */\n\tstrengthLevel?: StrengthLevel;\n\t/** Title attribute (required) */\n\ttitle: string;\n\t/** Trend direction for trend variant */\n\ttrendDirection?: TrendDirection;\n\t/** Icon variant (required) */\n\tvariant: DynamicIconVariant;\n}\n\n/**\n * A set of delightful animated icons.\n */\nconst DynamicIcon = ({\n\tassistiveText,\n\tclassName,\n\tisPaused,\n\tisStatic,\n\tscorePolarity,\n\tstrengthLevel,\n\ttitle,\n\ttrendDirection,\n\tvariant,\n}: DynamicIconProps): React.ReactElement => {\n\tconst getIconChildren = (): ReactNode[] => {\n\t\tconst children: ReactNode[] = [];\n\t\tlet defaultAssistiveText = title || `${variant.charAt(0).toUpperCase()}${variant.slice(1)}`;\n\n\t\tif (variant === 'ellie') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"ellie-svg\" viewBox=\"0 0 280 14\" aria-hidden=\"true\">\n\t\t\t\t\t{Array.from({ length: 20 }, (_, i) => {\n\t\t\t\t\t\tconst cx = 7 + i * 14;\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<React.Fragment key={i}>\n\t\t\t\t\t\t\t\t<circle cx={cx} cy=\"7\" r=\"4\" />\n\t\t\t\t\t\t\t\t<circle cx={cx} cy=\"7\" r=\"3\" />\n\t\t\t\t\t\t\t</React.Fragment>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'eq') {\n\t\t\tchildren.push(\n\t\t\t\t<div key=\"eq-bar-1\" className=\"slds-icon-eq__bar\" />,\n\t\t\t\t<div key=\"eq-bar-2\" className=\"slds-icon-eq__bar\" />,\n\t\t\t\t<div key=\"eq-bar-3\" className=\"slds-icon-eq__bar\" />\n\t\t\t);\n\t\t} else if (variant === 'score') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"score-pos\" viewBox=\"0 0 5 5\" className=\"slds-icon-score__positive\" aria-hidden=\"true\">\n\t\t\t\t\t<circle cx=\"50%\" cy=\"50%\" r=\"1.875\" />\n\t\t\t\t</svg>,\n\t\t\t\t<svg key=\"score-neg\" viewBox=\"0 0 5 5\" className=\"slds-icon-score__negative\" aria-hidden=\"true\">\n\t\t\t\t\t<circle cx=\"50%\" cy=\"50%\" r=\"1.875\" />\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'strength') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"strength-svg\" viewBox=\"0 0 27 7\" aria-hidden=\"true\">\n\t\t\t\t\t<circle r=\"3.025\" cx=\"3.5\" cy=\"3.5\" />\n\t\t\t\t\t<circle r=\"3.025\" cx=\"13.5\" cy=\"3.5\" />\n\t\t\t\t\t<circle r=\"3.025\" cx=\"23.5\" cy=\"3.5\" />\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'trend') {\n\t\t\tchildren.push(\n\t\t\t\t<svg key=\"trend-svg\" viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n\t\t\t\t\t<path className=\"slds-icon-trend__arrow\" d=\"M.75 8H11M8 4.5L11.5 8 8 11.5\" />\n\t\t\t\t\t<circle\n\t\t\t\t\t\tclassName=\"slds-icon-trend__circle\"\n\t\t\t\t\t\tcy=\"8\"\n\t\t\t\t\t\tcx=\"8\"\n\t\t\t\t\t\tr=\"7.375\"\n\t\t\t\t\t\ttransform=\"rotate(-28 8 8) scale(-1 1) translate(-16 0)\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t);\n\t\t} else if (variant === 'typing') {\n\t\t\tchildren.push(\n\t\t\t\t<span key=\"typing-1\" className=\"slds-icon-typing__dot\" />,\n\t\t\t\t<span key=\"typing-2\" className=\"slds-icon-typing__dot\" />,\n\t\t\t\t<span key=\"typing-3\" className=\"slds-icon-typing__dot\" />\n\t\t\t);\n\t\t\tif (!title) {\n\t\t\t\tdefaultAssistiveText = 'User is typing';\n\t\t\t}\n\t\t} else if (variant === 'waffle') {\n\t\t\tchildren.push(\n\t\t\t\t<span key=\"waffle\" className=\"slds-icon-waffle\">\n\t\t\t\t\t<span className=\"slds-r1\" />\n\t\t\t\t\t<span className=\"slds-r2\" />\n\t\t\t\t\t<span className=\"slds-r3\" />\n\t\t\t\t\t<span className=\"slds-r4\" />\n\t\t\t\t\t<span className=\"slds-r5\" />\n\t\t\t\t\t<span className=\"slds-r6\" />\n\t\t\t\t\t<span className=\"slds-r7\" />\n\t\t\t\t\t<span className=\"slds-r8\" />\n\t\t\t\t\t<span className=\"slds-r9\" />\n\t\t\t\t</span>\n\t\t\t);\n\t\t\tif (!title) {\n\t\t\t\tdefaultAssistiveText = 'Open App Launcher';\n\t\t\t}\n\t\t}\n\n\t\tchildren.push(\n\t\t\t<span key=\"assistive\" className=\"slds-assistive-text\">\n\t\t\t\t{assistiveText?.label || defaultAssistiveText}\n\t\t\t</span>\n\t\t);\n\n\t\treturn children;\n\t};\n\n\tconst children = getIconChildren();\n\tconst classes: (string | Record<string, boolean | undefined>)[] = [\n\t\t{\n\t\t\t'slds-is-animated': !isStatic,\n\t\t\t'slds-is-paused': isPaused,\n\t\t},\n\t];\n\n\tconst iconProps: Record<string, unknown> = {\n\t\ttitle,\n\t};\n\n\tlet element: 'span' | 'div' | 'button' = 'span';\n\n\tif (variant === 'waffle') {\n\t\tclasses.unshift('slds-button', 'slds-icon-waffle_container');\n\t\telement = 'button';\n\t} else {\n\t\tclasses.unshift(`slds-icon-${variant}`);\n\n\t\tif (variant === 'eq') {\n\t\t\telement = 'div';\n\t\t} else if (variant === 'score') {\n\t\t\ticonProps['data-slds-state'] = scorePolarity || 'positive';\n\t\t} else if (variant === 'strength') {\n\t\t\ticonProps['data-slds-strength'] = strengthLevel !== undefined ? `${strengthLevel}` : '0';\n\t\t} else if (variant === 'trend') {\n\t\t\ticonProps['data-slds-trend'] = trendDirection || 'neutral';\n\t\t}\n\t}\n\n\ticonProps.className = classNames(classes, className);\n\n\treturn React.createElement(element, iconProps, ...children);\n};\n\nDynamicIcon.displayName = DYNAMIC_ICON;\n\nexport default DynamicIcon;\n\n"],"mappings":"0TA8DA,IAAM,GAAe,CACpB,gBACA,YACA,WACA,WACA,gBACA,gBACA,QAC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,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,GAC3B,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,SAAW,CAAA,CACtB,CAVI,EAAA,QAUJ,CACP,EACK,IACJ,EAAuB,sBAIzB,EAAS,MACR,EAAA,EAAA,IAAA,CAAC,OAAD,CAAsB,UAAU,sBAC9B,SAAA,GAAe,OAAS,CACpB,EAFI,WAEJ,CACP,EAEO,CACR,EAEiB,CAAgB,EAC3B,EAA4D,CACjE,CACC,mBAAoB,CAAC,EACrB,iBAAkB,CACnB,CACD,EAEM,EAAqC,CAC1C,OACD,EAEI,EAAqC,OAqBzC,OAnBI,IAAY,UACf,EAAQ,QAAQ,cAAe,4BAA4B,EAC3D,EAAU,WAEV,EAAQ,QAAQ,aAAa,GAAS,EAElC,IAAY,KACf,EAAU,MACA,IAAY,QACtB,EAAU,mBAAqB,GAAiB,WACtC,IAAY,WACtB,EAAU,sBAAwB,IAAkB,IAAA,GAAiC,IAArB,GAAG,IACzD,IAAY,UACtB,EAAU,mBAAqB,GAAkB,YAInD,EAAU,UAAY,EAAA,QAAW,EAAS,CAAS,EAE5C,EAAA,QAAM,cAAc,EAAS,EAAW,GAAG,CAAQ,CAC3D,EAEA,EAAY,YAAc,EAAA"}
@@ -1,2 +1,2 @@
1
- const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../button/index.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("classnames");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o={toggleSection:`Toggle visibility of section`},s=({assistiveText:e,children:t,className:s,id:c,isOpen:l,nonCollapsible:u=!1,onToggleOpen:d,title:f})=>{let p=(0,r.useId)(),[m,h]=(0,r.useState)(!0),g=c||p,_={...o,...e},v=l===void 0?m:l,y=`${g}-expanded-section-content`,b=(0,r.useCallback)(e=>{d?d(e,{isOpen:v}):h(e=>!e)},[v,d]),x={"aria-controls":y,"aria-expanded":!!v},S=(0,a.jsx)(`span`,{className:(0,i.default)(`slds-truncate`,{"slds-p-horizontal_small":u}),title:f,children:f});return(0,a.jsxs)(`div`,{className:(0,i.default)(`slds-section`,{"slds-is-open":v},s),children:[(0,a.jsx)(`h3`,{className:(0,i.default)(`slds-section__title`,{"slds-theme_shade":u}),children:u?S:(0,a.jsx)(n.default,{assistiveText:{icon:_.toggleSection},iconCategory:`utility`,iconClassName:`slds-section__title-action-icon slds-button__icon_left`,iconName:`switch`,onClick:b,className:`slds-section__title-action`,variant:`base`,...x,children:S})}),(0,a.jsx)(`div`,{"aria-hidden":!v,className:`slds-section__content`,id:y,children:t})]})};s.displayName=t.EXPANDABLE_SECTION,exports.default=s;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../button/index.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("classnames");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o={toggleSection:`Toggle visibility of section`},s=({assistiveText:e,children:t,className:s,id:c,isOpen:l,nonCollapsible:u=!1,onToggleOpen:d,title:f})=>{let p=(0,r.useId)(),[m,h]=(0,r.useState)(!0),g=c||p,_={...o,...e},v=l===void 0?m:l,y=`${g}-expanded-section-content`,b=(0,r.useCallback)(e=>{d?d(e,{isOpen:v}):h(e=>!e)},[v,d]),x={"aria-controls":y,"aria-expanded":!!v},S=(0,a.jsx)(`span`,{className:(0,i.default)(`slds-truncate`,{"slds-p-horizontal_small":u}),title:f,children:f});return(0,a.jsxs)(`div`,{className:(0,i.default)(`slds-section`,{"slds-is-open":v},s),children:[(0,a.jsx)(`h3`,{className:(0,i.default)(`slds-section__title`,{"slds-theme_shade":u}),children:u?S:(0,a.jsx)(n.default,{assistiveText:{icon:_.toggleSection},iconCategory:`utility`,iconClassName:`slds-section__title-action-icon slds-button__icon_left`,iconName:`switch`,onClick:b,className:`slds-section__title-action`,variant:`base`,...x,children:S})}),(0,a.jsx)(`div`,{"aria-hidden":!v,className:`slds-section__content`,id:y,children:t})]})};s.displayName=t.EXPANDABLE_SECTION,exports.default=s;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/expandable-section/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useState, useId, useCallback, type ReactNode, type MouseEvent } from 'react';\nimport classNames from 'classnames';\nimport Button from '../button';\nimport { EXPANDABLE_SECTION } from '../../utilities/constants';\n\n/**\n * Assistive text for ExpandableSection\n */\nexport interface ExpandableSectionAssistiveText {\n\t/** Label for the toggle button */\n\ttoggleSection?: string;\n}\n\n/**\n * Props for the ExpandableSection component\n */\nexport interface ExpandableSectionProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: ExpandableSectionAssistiveText;\n\t/** Content of the section */\n\tchildren?: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Unique identifier */\n\tid?: string;\n\t/** Controlled open state */\n\tisOpen?: boolean;\n\t/** Whether section cannot be collapsed */\n\tnonCollapsible?: boolean;\n\t/** Toggle callback */\n\tonToggleOpen?: (event: MouseEvent<HTMLButtonElement>, data: { isOpen: boolean }) => void;\n\t/** Section title (required) */\n\ttitle: string;\n}\n\nconst defaultAssistiveText: ExpandableSectionAssistiveText = {\n\ttoggleSection: 'Toggle visibility of section',\n};\n\n/**\n * Toggle visibility of section content with the Expandable Section\n */\nconst ExpandableSection = ({\n\tassistiveText: propAssistiveText,\n\tchildren,\n\tclassName,\n\tid: propId,\n\tisOpen: controlledIsOpen,\n\tnonCollapsible = false,\n\tonToggleOpen,\n\ttitle,\n}: ExpandableSectionProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst [internalIsOpen, setInternalIsOpen] = useState(true);\n\n\tconst id = propId || generatedId;\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\t\n\t// Use controlled or internal state\n\tconst isOpen = controlledIsOpen !== undefined ? controlledIsOpen : internalIsOpen;\n\tconst contentId = `${id}-expanded-section-content`;\n\n\tconst handleToggle = useCallback((event: MouseEvent<HTMLButtonElement>) => {\n\t\tif (onToggleOpen) {\n\t\t\tonToggleOpen(event, { isOpen });\n\t\t} else {\n\t\t\tsetInternalIsOpen((prev) => !prev);\n\t\t}\n\t}, [isOpen, onToggleOpen]);\n\n\tconst buttonAriaProps = {\n\t\t'aria-controls': contentId,\n\t\t'aria-expanded': Boolean(isOpen),\n\t};\n\n\tconst titleNode = (\n\t\t<span\n\t\t\tclassName={classNames('slds-truncate', {\n\t\t\t\t'slds-p-horizontal_small': nonCollapsible,\n\t\t\t})}\n\t\t\ttitle={title}\n\t\t>\n\t\t\t{title}\n\t\t</span>\n\t);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\t'slds-section',\n\t\t\t\t{ 'slds-is-open': isOpen },\n\t\t\t\tclassName as string\n\t\t\t)}\n\t\t>\n\t\t\t<h3\n\t\t\t\tclassName={classNames('slds-section__title', {\n\t\t\t\t\t'slds-theme_shade': nonCollapsible,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{!nonCollapsible ? (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tassistiveText={{ icon: assistiveText.toggleSection }}\n\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\ticonClassName=\"slds-section__title-action-icon slds-button__icon_left\"\n\t\t\t\t\t\ticonName=\"switch\"\n\t\t\t\t\t\tonClick={handleToggle}\n\t\t\t\t\t\tclassName=\"slds-section__title-action\"\n\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t{...buttonAriaProps}\n\t\t\t\t\t>\n\t\t\t\t\t\t{titleNode}\n\t\t\t\t\t</Button>\n\t\t\t\t) : (\n\t\t\t\t\ttitleNode\n\t\t\t\t)}\n\t\t\t</h3>\n\t\t\t<div\n\t\t\t\taria-hidden={!isOpen}\n\t\t\t\tclassName=\"slds-section__content\"\n\t\t\t\tid={contentId}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nExpandableSection.displayName = EXPANDABLE_SECTION;\n\nexport default ExpandableSection;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"4PAsCA,IAAM,EAAuD,CAC5D,cAAe,8BAChB,EAKM,GAAqB,CAC1B,cAAe,EACf,WACA,YACA,GAAI,EACJ,OAAQ,EACR,iBAAiB,GACjB,eACA,WACiD,CACjD,IAAM,GAAA,EAAc,EAAA,MAAA,CAAM,EACpB,CAAC,EAAgB,IAAA,EAAqB,EAAA,SAAA,CAAS,EAAI,EAEnD,EAAK,GAAU,EACf,EAAgB,CAAE,GAAG,EAAsB,GAAG,CAAkB,EAGhE,EAAS,IAAqB,IAAA,GAA+B,EAAnB,EAC1C,EAAY,GAAG,EAAG,2BAElB,GAAA,EAAe,EAAA,YAAA,CAAa,GAAyC,CACtE,EACH,EAAa,EAAO,CAAE,QAAO,CAAC,EAE9B,EAAmB,GAAS,CAAC,CAAI,CAEnC,EAAG,CAAC,EAAQ,CAAY,CAAC,EAEnB,EAAkB,CACvB,gBAAiB,EACjB,gBAAiB,EAAQ,CAC1B,EAEM,GACL,EAAA,EAAA,IAAA,CAAC,OAAD,CACC,WAAA,EAAW,EAAA,QAAA,CAAW,gBAAiB,CACtC,0BAA2B,CAC5B,CAAC,EACM,QAEN,SAAA,CACI,CAAA,EAGP,OACC,EAAA,EAAA,KAAA,CAAC,MAAD,CACC,WAAA,EAAW,EAAA,QAAA,CACV,eACA,CAAE,eAAgB,CAAO,EACzB,CACD,EALD,SAAA,EAOC,EAAA,EAAA,IAAA,CAAC,KAAD,CACC,WAAA,EAAW,EAAA,QAAA,CAAW,sBAAuB,CAC5C,mBAAoB,CACrB,CAAC,EAEA,SAAC,EAcD,GAbA,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,cAAe,CAAE,KAAM,EAAc,aAAc,EACnD,aAAa,UACb,cAAc,yDACd,SAAS,SACT,QAAS,EACT,UAAU,6BACV,QAAQ,OACR,GAAI,EAEH,SAAA,CACM,CAAA,CAIN,CAAA,GACJ,EAAA,EAAA,IAAA,CAAC,MAAD,CACC,cAAa,CAAC,EACd,UAAU,wBACV,GAAI,EAEH,UACG,CAAA,CACD,GAEP,EAEA,EAAkB,YAAc,EAAA"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/expandable-section/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useState, useId, useCallback, type ReactNode, type MouseEvent } from 'react';\nimport classNames from 'classnames';\nimport Button from '../button';\nimport { EXPANDABLE_SECTION } from '../../utilities/constants';\n\n/**\n * Assistive text for ExpandableSection\n */\nexport interface ExpandableSectionAssistiveText {\n\t/** Label for the toggle button */\n\ttoggleSection?: string;\n}\n\n/**\n * Props for the ExpandableSection component\n */\nexport interface ExpandableSectionProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: ExpandableSectionAssistiveText;\n\t/** Content of the section */\n\tchildren?: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Unique identifier */\n\tid?: string;\n\t/** Controlled open state */\n\tisOpen?: boolean;\n\t/** Whether section cannot be collapsed */\n\tnonCollapsible?: boolean;\n\t/** Toggle callback */\n\tonToggleOpen?: (event: MouseEvent<HTMLButtonElement>, data: { isOpen: boolean }) => void;\n\t/** Section title (required) */\n\ttitle: string;\n}\n\nconst defaultAssistiveText: ExpandableSectionAssistiveText = {\n\ttoggleSection: 'Toggle visibility of section',\n};\n\n/**\n * Toggle visibility of section content with the Expandable Section\n */\nconst ExpandableSection = ({\n\tassistiveText: propAssistiveText,\n\tchildren,\n\tclassName,\n\tid: propId,\n\tisOpen: controlledIsOpen,\n\tnonCollapsible = false,\n\tonToggleOpen,\n\ttitle,\n}: ExpandableSectionProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst [internalIsOpen, setInternalIsOpen] = useState(true);\n\n\tconst id = propId || generatedId;\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\t\n\t// Use controlled or internal state\n\tconst isOpen = controlledIsOpen !== undefined ? controlledIsOpen : internalIsOpen;\n\tconst contentId = `${id}-expanded-section-content`;\n\n\tconst handleToggle = useCallback((event: MouseEvent<HTMLButtonElement>) => {\n\t\tif (onToggleOpen) {\n\t\t\tonToggleOpen(event, { isOpen });\n\t\t} else {\n\t\t\tsetInternalIsOpen((prev) => !prev);\n\t\t}\n\t}, [isOpen, onToggleOpen]);\n\n\tconst buttonAriaProps = {\n\t\t'aria-controls': contentId,\n\t\t'aria-expanded': Boolean(isOpen),\n\t};\n\n\tconst titleNode = (\n\t\t<span\n\t\t\tclassName={classNames('slds-truncate', {\n\t\t\t\t'slds-p-horizontal_small': nonCollapsible,\n\t\t\t})}\n\t\t\ttitle={title}\n\t\t>\n\t\t\t{title}\n\t\t</span>\n\t);\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\t'slds-section',\n\t\t\t\t{ 'slds-is-open': isOpen },\n\t\t\t\tclassName as string\n\t\t\t)}\n\t\t>\n\t\t\t<h3\n\t\t\t\tclassName={classNames('slds-section__title', {\n\t\t\t\t\t'slds-theme_shade': nonCollapsible,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{!nonCollapsible ? (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tassistiveText={{ icon: assistiveText.toggleSection }}\n\t\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\t\ticonClassName=\"slds-section__title-action-icon slds-button__icon_left\"\n\t\t\t\t\t\ticonName=\"switch\"\n\t\t\t\t\t\tonClick={handleToggle}\n\t\t\t\t\t\tclassName=\"slds-section__title-action\"\n\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t{...buttonAriaProps}\n\t\t\t\t\t>\n\t\t\t\t\t\t{titleNode}\n\t\t\t\t\t</Button>\n\t\t\t\t) : (\n\t\t\t\t\ttitleNode\n\t\t\t\t)}\n\t\t\t</h3>\n\t\t\t<div\n\t\t\t\taria-hidden={!isOpen}\n\t\t\t\tclassName=\"slds-section__content\"\n\t\t\t\tid={contentId}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nExpandableSection.displayName = EXPANDABLE_SECTION;\n\nexport default ExpandableSection;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"2VAsCA,IAAM,EAAuD,CAC5D,cAAe,8BAChB,EAKM,GAAqB,CAC1B,cAAe,EACf,WACA,YACA,GAAI,EACJ,OAAQ,EACR,iBAAiB,GACjB,eACA,WACiD,CACjD,IAAM,GAAA,EAAc,EAAA,MAAA,CAAM,EACpB,CAAC,EAAgB,IAAA,EAAqB,EAAA,SAAA,CAAS,EAAI,EAEnD,EAAK,GAAU,EACf,EAAgB,CAAE,GAAG,EAAsB,GAAG,CAAkB,EAGhE,EAAS,IAAqB,IAAA,GAA+B,EAAnB,EAC1C,EAAY,GAAG,EAAG,2BAElB,GAAA,EAAe,EAAA,YAAA,CAAa,GAAyC,CACtE,EACH,EAAa,EAAO,CAAE,QAAO,CAAC,EAE9B,EAAmB,GAAS,CAAC,CAAI,CAEnC,EAAG,CAAC,EAAQ,CAAY,CAAC,EAEnB,EAAkB,CACvB,gBAAiB,EACjB,gBAAiB,EAAQ,CAC1B,EAEM,GACL,EAAA,EAAA,IAAA,CAAC,OAAD,CACC,WAAA,EAAW,EAAA,QAAA,CAAW,gBAAiB,CACtC,0BAA2B,CAC5B,CAAC,EACM,QAEN,SAAA,CACI,CAAA,EAGP,OACC,EAAA,EAAA,KAAA,CAAC,MAAD,CACC,WAAA,EAAW,EAAA,QAAA,CACV,eACA,CAAE,eAAgB,CAAO,EACzB,CACD,EALD,SAAA,EAOC,EAAA,EAAA,IAAA,CAAC,KAAD,CACC,WAAA,EAAW,EAAA,QAAA,CAAW,sBAAuB,CAC5C,mBAAoB,CACrB,CAAC,EAEA,SAAC,EAcD,GAbA,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,cAAe,CAAE,KAAM,EAAc,aAAc,EACnD,aAAa,UACb,cAAc,yDACd,SAAS,SACT,QAAS,EACT,UAAU,6BACV,QAAQ,OACR,GAAI,EAEH,SAAA,CACM,CAAA,CAIN,CAAA,GACJ,EAAA,EAAA,IAAA,CAAC,MAAD,CACC,cAAa,CAAC,EACd,UAAU,wBACV,GAAI,EAEH,UACG,CAAA,CACD,GAEP,EAEA,EAAkB,YAAc,EAAA"}
@@ -1,2 +1,2 @@
1
- const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=({children:e,className:t,columnClassName:a,crop:o=`4-by-3`,id:s})=>{let c=(0,n.useId)(),l=s||c,u=n.default.Children.map(e,e=>{if(!n.default.isValidElement(e))return null;let t=e.props||{};return(0,i.jsx)(`li`,{className:(0,r.default)(`slds-p-horizontal_xx-small slds-size_1-of-3 slds-medium-size_1-of-4`,a),children:n.default.cloneElement(e,{crop:t.crop||o})})});return(0,i.jsx)(`ul`,{className:(0,r.default)(`slds-grid slds-grid_pull-padded`,t),id:l,children:u})};a.displayName=t.FILES,exports.default=a;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=({children:e,className:t,columnClassName:a,crop:o=`4-by-3`,id:s})=>{let c=(0,n.useId)(),l=s||c,u=n.default.Children.map(e,e=>{if(!n.default.isValidElement(e))return null;let t=e.props||{};return(0,i.jsx)(`li`,{className:(0,r.default)(`slds-p-horizontal_xx-small slds-size_1-of-3 slds-medium-size_1-of-4`,a),children:n.default.cloneElement(e,{crop:t.crop||o})})});return(0,i.jsx)(`ul`,{className:(0,r.default)(`slds-grid slds-grid_pull-padded`,t),id:l,children:u})};a.displayName=t.FILES,exports.default=a;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/files/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useId, type ReactNode, type ReactElement } from 'react';\nimport classNames from 'classnames';\nimport { FILES } from '../../utilities/constants';\n\n/**\n * Crop ratio options for file preview\n */\nexport type FilesCropRatio = '16-by-9' | '4-by-3' | '1-by-1';\n\n/**\n * Props for child File components\n */\nexport interface FileChildProps {\n\tcrop?: FilesCropRatio;\n}\n\n/**\n * Props for the Files component\n */\nexport interface FilesProps {\n\t/** File components as children */\n\tchildren?: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Column class names for each file */\n\tcolumnClassName?: string;\n\t/** Crop ratio for file previews */\n\tcrop?: FilesCropRatio;\n\t/** HTML id */\n\tid?: string;\n}\n\n/**\n * Files is a component that wraps multiple file components that represent attachments.\n */\nconst Files = ({\n\tchildren,\n\tclassName,\n\tcolumnClassName,\n\tcrop = '4-by-3',\n\tid: propId,\n}: FilesProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\n\tconst files = React.Children.map(children, (option) => {\n\t\tif (!React.isValidElement(option)) return null;\n\t\tconst childProps = (option.props as FileChildProps) || {};\n\t\treturn (\n\t\t\t<li\n\t\t\t\tclassName={classNames(\n\t\t\t\t\t'slds-p-horizontal_xx-small slds-size_1-of-3 slds-medium-size_1-of-4',\n\t\t\t\t\tcolumnClassName\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{React.cloneElement(option as ReactElement<FileChildProps>, {\n\t\t\t\t\tcrop: childProps.crop || crop,\n\t\t\t\t})}\n\t\t\t</li>\n\t\t);\n\t});\n\n\treturn (\n\t\t<ul\n\t\t\tclassName={classNames('slds-grid slds-grid_pull-padded', className as string)}\n\t\t\tid={id}\n\t\t>\n\t\t\t{files}\n\t\t</ul>\n\t);\n};\n\nFiles.displayName = FILES;\n\nexport default Files;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"2NAsCA,IAAM,GAAS,CACd,WACA,YACA,kBACA,OAAO,SACP,GAAI,KACiC,CACrC,IAAM,GAAA,EAAc,EAAA,MAAA,CAAM,EACpB,EAAK,GAAU,EAEf,EAAQ,EAAA,QAAM,SAAS,IAAI,EAAW,GAAW,CACtD,GAAI,CAAC,EAAA,QAAM,eAAe,CAAM,EAAG,OAAO,KAC1C,IAAM,EAAc,EAAO,OAA4B,CAAC,EACxD,OACC,EAAA,EAAA,IAAA,CAAC,KAAD,CACC,WAAA,EAAW,EAAA,QAAA,CACV,sEACA,CACD,EAEC,SAAA,EAAA,QAAM,aAAa,EAAwC,CAC3D,KAAM,EAAW,MAAQ,CAC1B,CAAC,CACE,CAAA,CAEN,CAAC,EAED,OACC,EAAA,EAAA,IAAA,CAAC,KAAD,CACC,WAAA,EAAW,EAAA,QAAA,CAAW,kCAAmC,CAAmB,EACxE,KAEH,SAAA,CACE,CAAA,CAEN,EAEA,EAAM,YAAc,EAAA"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/files/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useId, type ReactNode, type ReactElement } from 'react';\nimport classNames from 'classnames';\nimport { FILES } from '../../utilities/constants';\n\n/**\n * Crop ratio options for file preview\n */\nexport type FilesCropRatio = '16-by-9' | '4-by-3' | '1-by-1';\n\n/**\n * Props for child File components\n */\nexport interface FileChildProps {\n\tcrop?: FilesCropRatio;\n}\n\n/**\n * Props for the Files component\n */\nexport interface FilesProps {\n\t/** File components as children */\n\tchildren?: ReactNode;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Column class names for each file */\n\tcolumnClassName?: string;\n\t/** Crop ratio for file previews */\n\tcrop?: FilesCropRatio;\n\t/** HTML id */\n\tid?: string;\n}\n\n/**\n * Files is a component that wraps multiple file components that represent attachments.\n */\nconst Files = ({\n\tchildren,\n\tclassName,\n\tcolumnClassName,\n\tcrop = '4-by-3',\n\tid: propId,\n}: FilesProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\n\tconst files = React.Children.map(children, (option) => {\n\t\tif (!React.isValidElement(option)) return null;\n\t\tconst childProps = (option.props as FileChildProps) || {};\n\t\treturn (\n\t\t\t<li\n\t\t\t\tclassName={classNames(\n\t\t\t\t\t'slds-p-horizontal_xx-small slds-size_1-of-3 slds-medium-size_1-of-4',\n\t\t\t\t\tcolumnClassName\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{React.cloneElement(option as ReactElement<FileChildProps>, {\n\t\t\t\t\tcrop: childProps.crop || crop,\n\t\t\t\t})}\n\t\t\t</li>\n\t\t);\n\t});\n\n\treturn (\n\t\t<ul\n\t\t\tclassName={classNames('slds-grid slds-grid_pull-padded', className as string)}\n\t\t\tid={id}\n\t\t>\n\t\t\t{files}\n\t\t</ul>\n\t);\n};\n\nFiles.displayName = FILES;\n\nexport default Files;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"0TAsCA,IAAM,GAAS,CACd,WACA,YACA,kBACA,OAAO,SACP,GAAI,KACiC,CACrC,IAAM,GAAA,EAAc,EAAA,MAAA,CAAM,EACpB,EAAK,GAAU,EAEf,EAAQ,EAAA,QAAM,SAAS,IAAI,EAAW,GAAW,CACtD,GAAI,CAAC,EAAA,QAAM,eAAe,CAAM,EAAG,OAAO,KAC1C,IAAM,EAAc,EAAO,OAA4B,CAAC,EACxD,OACC,EAAA,EAAA,IAAA,CAAC,KAAD,CACC,WAAA,EAAW,EAAA,QAAA,CACV,sEACA,CACD,EAEC,SAAA,EAAA,QAAM,aAAa,EAAwC,CAC3D,KAAM,EAAW,MAAQ,CAC1B,CAAC,CACE,CAAA,CAEN,CAAC,EAED,OACC,EAAA,EAAA,IAAA,CAAC,KAAD,CACC,WAAA,EAAW,EAAA,QAAA,CAAW,kCAAmC,CAAmB,EACxE,KAEH,SAAA,CACE,CAAA,CAEN,EAEA,EAAM,YAAc,EAAA"}
@@ -0,0 +1 @@
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./filter.cjs");exports.Filter=e.default,exports.default=e.default;
@@ -0,0 +1 @@
1
+ module.exports = require('./filter/index.cjs');
@@ -0,0 +1,2 @@
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs");let t=require("react"),n=require("classnames");n=e.__toESM(n,1);let r=require("react/jsx-runtime");var i=class extends t.Component{getClassName(){return(0,n.default)(this.props.className,`slds-col`)}render(){return(0,r.jsx)(`div`,{className:this.getClassName(),children:this.props.children})}},a=class extends t.Component{static Column=i;getClassName(){let{flavor:e}=this.props;return(0,n.default)(this.props.className,`slds-grid`,{[`slds-grid_${e}`]:e})}render(){return(0,r.jsx)(`div`,{className:this.getClassName(),children:this.props.children})}};exports.default=a;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/grid/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport { Component, type ReactNode } from 'react';\nimport classNames from 'classnames';\n\nexport interface GridColumnProps {\n\t/** Additional class names applied to the column. */\n\tclassName?: string;\n\t/** Column content. */\n\tchildren?: ReactNode;\n}\n\nclass GridColumn extends Component<GridColumnProps> {\n\tgetClassName() {\n\t\treturn classNames(this.props.className, 'slds-col');\n\t}\n\n\trender() {\n\t\treturn <div className={this.getClassName()}>{this.props.children}</div>;\n\t}\n}\n\nexport interface GridProps {\n\t/** Additional class names applied to the grid. */\n\tclassName?: string;\n\t/** Grid flavor, appended as `slds-grid_{flavor}`. */\n\tflavor?: string;\n\t/** Grid content, typically `Grid.Column` elements. */\n\tchildren?: ReactNode;\n}\n\nclass Grid extends Component<GridProps> {\n\tstatic Column = GridColumn;\n\n\tgetClassName() {\n\t\tconst { flavor } = this.props;\n\t\treturn classNames(this.props.className, 'slds-grid', {\n\t\t\t[`slds-grid_${flavor}`]: flavor,\n\t\t});\n\t}\n\n\trender() {\n\t\treturn <div className={this.getClassName()}>{this.props.children}</div>;\n\t}\n}\n\nexport default Grid;\n"],"mappings":"0PAaA,IAAM,EAAN,cAAyB,EAAA,SAA2B,CACnD,cAAe,CACd,OAAA,EAAO,EAAA,QAAA,CAAW,KAAK,MAAM,UAAW,UAAU,CACnD,CAEA,QAAS,CACR,OAAO,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,KAAK,aAAa,EAAI,SAAA,KAAK,MAAM,QAAc,CAAA,CACvE,CACD,EAWM,EAAN,cAAmB,EAAA,SAAqB,CACvC,OAAO,OAAS,EAEhB,cAAe,CACd,GAAM,CAAE,UAAW,KAAK,MACxB,OAAA,EAAO,EAAA,QAAA,CAAW,KAAK,MAAM,UAAW,YAAa,EACnD,aAAa,KAAW,CAC1B,CAAC,CACF,CAEA,QAAS,CACR,OAAO,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,KAAK,aAAa,EAAI,SAAA,KAAK,MAAM,QAAc,CAAA,CACvE,CACD"}
@@ -0,0 +1 @@
1
+ module.exports = require('./grid/index.cjs');
@@ -1,2 +1,2 @@
1
- const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../utilities/utility-icon/index.cjs"),r=require("../../utilities/class-names.cjs"),i=require("../../utilities/product-tokens/icon-backgrounds.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s={assistiveText:{},category:`standard`,colorVariant:`default`,size:`medium`},c=({category:e=s.category,className:t,colorVariant:a=s.colorVariant,containerClassName:c,containerStyle:l,icon:u,inverse:d,name:f,path:p,size:m=s.size,title:h,productTheme:g,assistiveText:_=s.assistiveText,style:v})=>{let y=v;g&&i.default[g]&&(y={backgroundColor:i.default[g],...v});let b;if(typeof _==`string`)b=_;else{let e=s.assistiveText;b=_?.label??e?.label}let x=f?f.replace(/_/g,`-`):``,S=r.default({"slds-icon_container":e!==`utility`,"slds-icon_container_circle":e===`action`,[`slds-icon-${e}-${x}`]:e!==`utility`&&e!==`doctype`&&!p},c);return(0,o.jsxs)(`span`,{className:S,style:l,title:h,children:[(0,o.jsx)(n.default,{"aria-hidden":!0,category:e,className:r.default(t,`slds-icon`,{"slds-icon_xx-small":m===`xx-small`,"slds-icon_x-small":m===`x-small`,"slds-icon_small":m===`small`,"slds-icon_large":m===`large`,"slds-icon-text-default":a==="default"&&e===`utility`?!d:d,"slds-icon-text-success":a===`success`,"slds-icon-text-warning":a===`warning`,"slds-icon-text-error":a===`error`,"slds-icon-text-light":a===`light`}),icon:u,name:f,path:p,style:y}),b?(0,o.jsx)(`span`,{className:`slds-assistive-text`,children:b}):null]})};c.displayName=t.ICON,exports.default=c;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../utilities/utility-icon/index.cjs"),r=require("../../utilities/class-names.cjs"),i=require("../../utilities/product-tokens/icon-backgrounds.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s={assistiveText:{},category:`standard`,colorVariant:`default`,size:`medium`},c=({category:e=s.category,className:t,colorVariant:a=s.colorVariant,containerClassName:c,containerStyle:l,icon:u,inverse:d,name:f,path:p,size:m=s.size,title:h,productTheme:g,assistiveText:_=s.assistiveText,style:v})=>{let y=v;g&&i.default[g]&&(y={backgroundColor:i.default[g],...v});let b;if(typeof _==`string`)b=_;else{let e=s.assistiveText;b=_?.label??e?.label}let x=f?f.replace(/_/g,`-`):``,S=r.default({"slds-icon_container":e!==`utility`,"slds-icon_container_circle":e===`action`,[`slds-icon-${e}-${x}`]:e!==`utility`&&e!==`doctype`&&!p},c);return(0,o.jsxs)(`span`,{className:S,style:l,title:h,children:[(0,o.jsx)(n.default,{"aria-hidden":!0,category:e,className:r.default(t,`slds-icon`,{"slds-icon_xx-small":m===`xx-small`,"slds-icon_x-small":m===`x-small`,"slds-icon_small":m===`small`,"slds-icon_large":m===`large`,"slds-icon-text-default":a==="default"&&e===`utility`?!d:d,"slds-icon-text-success":a===`success`,"slds-icon-text-warning":a===`warning`,"slds-icon-text-error":a===`error`,"slds-icon-text-light":a===`light`}),icon:u,name:f,path:p,style:y}),b?(0,o.jsx)(`span`,{className:`slds-assistive-text`,children:b}):null]})};c.displayName=t.ICON,exports.default=c;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/icon/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { type CSSProperties } from 'react';\nimport classNames from '../../utilities/class-names';\nimport UtilityIcon, { type InlineIconData } from '../utilities/utility-icon/index';\nimport IconBackgrounds from '../../utilities/product-tokens/icon-backgrounds';\nimport { ICON } from '../../utilities/constants';\nimport type { IconCategory } from '../../types/common';\n\n/**\n * Icon color variant types\n */\nexport type IconColorVariant = 'base' | 'default' | 'error' | 'light' | 'warning' | 'success';\n\n/**\n * Icon size types\n */\nexport type IconSize = 'xx-small' | 'x-small' | 'small' | 'medium' | 'large';\n\n/**\n * Product theme types for icon backgrounds\n */\nexport type ProductTheme =\n\t| 'global-setup'\n\t| 'service-cloud'\n\t| 'industry-cloud'\n\t| 'sales-cloud'\n\t| 'commerce-cloud'\n\t| 'community-cloud'\n\t| 'marketing-cloud'\n\t| 'quip';\n\n/**\n * Props for the Icon component\n */\nexport interface IconProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: { label?: string } | string;\n\t/** Icon category from SLDS */\n\tcategory?: IconCategory;\n\t/** CSS classes for the SVG element */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Icon color variant */\n\tcolorVariant?: IconColorVariant;\n\t/** CSS classes for the container span */\n\tcontainerClassName?: string | string[] | Record<string, boolean>;\n\t/** Styles for the container span */\n\tcontainerStyle?: CSSProperties;\n\t/** Custom SVG icon data */\n\ticon?: InlineIconData;\n\t/** Invert colors for dark backgrounds */\n\tinverse?: boolean;\n\t/** Name of the icon */\n\tname?: string;\n\t/** Direct path to the icon sprite */\n\tpath?: string;\n\t/** Background theme color (only for standard category) */\n\tproductTheme?: ProductTheme;\n\t/** Size of the icon */\n\tsize?: IconSize;\n\t/** Custom styles for the SVG */\n\tstyle?: CSSProperties;\n\t/** HTML title attribute for the container */\n\ttitle?: string;\n}\n\nconst defaultProps: Required<Pick<IconProps, 'assistiveText' | 'category' | 'colorVariant' | 'size'>> = {\n\tassistiveText: {},\n\tcategory: 'standard',\n\tcolorVariant: 'default',\n\tsize: 'medium',\n};\n\n/**\n * The Icon component is the Lightning Design System Icon component and should be used for naked icons.\n * For icons that are buttons, use the Button component with `variant='icon'`.\n */\nconst Icon = ({\n\tcategory = defaultProps.category,\n\tclassName,\n\tcolorVariant = defaultProps.colorVariant,\n\tcontainerClassName,\n\tcontainerStyle,\n\ticon,\n\tinverse,\n\tname,\n\tpath,\n\tsize = defaultProps.size,\n\ttitle,\n\tproductTheme,\n\tassistiveText = defaultProps.assistiveText,\n\tstyle,\n}: IconProps): React.ReactElement => {\n\tlet styleOverride = style;\n\tif (productTheme && IconBackgrounds[productTheme]) {\n\t\tstyleOverride = {\n\t\t\tbackgroundColor: IconBackgrounds[productTheme],\n\t\t\t...style,\n\t\t};\n\t}\n\n\tlet mergedAssistiveText: string | undefined;\n\tif (typeof assistiveText === 'string') {\n\t\tmergedAssistiveText = assistiveText;\n\t} else {\n\t\tconst defaultText = defaultProps.assistiveText as { label?: string };\n\t\tconst propsText = assistiveText as { label?: string };\n\t\tmergedAssistiveText = propsText?.label ?? defaultText?.label;\n\t}\n\n\tconst kebabCaseName = name ? name.replace(/_/g, '-') : '';\n\n\tconst containerClasses = classNames(\n\t\t{\n\t\t\t'slds-icon_container': category !== 'utility',\n\t\t\t'slds-icon_container_circle': category === 'action',\n\t\t\t[`slds-icon-${category}-${kebabCaseName}`]:\n\t\t\t\tcategory !== 'utility' && category !== 'doctype' && !path,\n\t\t},\n\t\tcontainerClassName as string\n\t);\n\n\treturn (\n\t\t<span\n\t\t\tclassName={containerClasses}\n\t\t\tstyle={containerStyle}\n\t\t\ttitle={title}\n\t\t>\n\t\t\t<UtilityIcon\n\t\t\t\taria-hidden={true}\n\t\t\t\tcategory={category}\n\t\t\t\tclassName={classNames(className, 'slds-icon', {\n\t\t\t\t\t'slds-icon_xx-small': size === 'xx-small',\n\t\t\t\t\t'slds-icon_x-small': size === 'x-small',\n\t\t\t\t\t'slds-icon_small': size === 'small',\n\t\t\t\t\t// medium intentionally not present\n\t\t\t\t\t'slds-icon_large': size === 'large',\n\t\t\t\t\t// Color logic for utility vs other categories\n\t\t\t\t\t'slds-icon-text-default':\n\t\t\t\t\t\tcolorVariant === 'default' && category === 'utility'\n\t\t\t\t\t\t\t? !inverse\n\t\t\t\t\t\t\t: inverse,\n\t\t\t\t\t'slds-icon-text-success': colorVariant === 'success',\n\t\t\t\t\t'slds-icon-text-warning': colorVariant === 'warning',\n\t\t\t\t\t'slds-icon-text-error': colorVariant === 'error',\n\t\t\t\t\t'slds-icon-text-light': colorVariant === 'light',\n\t\t\t\t}) as string}\n\t\t\t\ticon={icon}\n\t\t\t\tname={name}\n\t\t\t\tpath={path}\n\t\t\t\tstyle={styleOverride}\n\t\t\t/>\n\t\t\t{mergedAssistiveText ? (\n\t\t\t\t<span className=\"slds-assistive-text\">{mergedAssistiveText}</span>\n\t\t\t) : null}\n\t\t</span>\n\t);\n};\n\nIcon.displayName = ICON;\n\nexport default Icon;\n\n"],"mappings":"6UAmEA,IAAM,EAAkG,CACvG,cAAe,CAAC,EAChB,SAAU,WACV,aAAc,UACd,KAAM,QACP,EAMM,GAAQ,CACb,WAAW,EAAa,SACxB,YACA,eAAe,EAAa,aAC5B,qBACA,iBACA,OACA,UACA,OACA,OACA,OAAO,EAAa,KACpB,QACA,eACA,gBAAgB,EAAa,cAC7B,WACoC,CACpC,IAAI,EAAgB,EAChB,GAAgB,EAAA,QAAgB,KACnC,EAAgB,CACf,gBAAiB,EAAA,QAAgB,GACjC,GAAG,CACJ,GAGD,IAAI,EACJ,GAAI,OAAO,GAAkB,SAC5B,EAAsB,MAChB,CACN,IAAM,EAAc,EAAa,cAEjC,EAAsB,GAAW,OAAS,GAAa,KACxD,CAEA,IAAM,EAAgB,EAAO,EAAK,QAAQ,KAAM,GAAG,EAAI,GAEjD,EAAmB,EAAA,QACxB,CACC,sBAAuB,IAAa,UACpC,6BAA8B,IAAa,UAC1C,aAAa,EAAS,GAAG,KACzB,IAAa,WAAa,IAAa,WAAa,CAAC,CACvD,EACA,CACD,EAEA,OACC,EAAA,EAAA,KAAA,CAAC,OAAD,CACC,UAAW,EACX,MAAO,EACA,QAHR,SAAA,EAKC,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,cAAa,GACH,WACV,UAAW,EAAA,QAAW,EAAW,YAAa,CAC7C,qBAAsB,IAAS,WAC/B,oBAAqB,IAAS,UAC9B,kBAAmB,IAAS,QAE5B,kBAAmB,IAAS,QAE5B,yBACC,IAAiB,WAAa,IAAa,UACxC,CAAC,EACD,EACJ,yBAA0B,IAAiB,UAC3C,yBAA0B,IAAiB,UAC3C,uBAAwB,IAAiB,QACzC,uBAAwB,IAAiB,OAC1C,CAAC,EACK,OACA,OACA,OACN,MAAO,CACP,CAAA,EACA,GACA,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,sBAAuB,SAAA,CAA0B,CAAA,EAC9D,IACC,GAER,EAEA,EAAK,YAAc,EAAA"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/icon/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { type CSSProperties } from 'react';\nimport classNames from '../../utilities/class-names';\nimport UtilityIcon, { type InlineIconData } from '../utilities/utility-icon/index';\nimport IconBackgrounds from '../../utilities/product-tokens/icon-backgrounds';\nimport { ICON } from '../../utilities/constants';\nimport type { IconCategory } from '../../types/common';\n\n/**\n * Icon color variant types\n */\nexport type IconColorVariant = 'base' | 'default' | 'error' | 'light' | 'warning' | 'success';\n\n/**\n * Icon size types\n */\nexport type IconSize = 'xx-small' | 'x-small' | 'small' | 'medium' | 'large';\n\n/**\n * Product theme types for icon backgrounds\n */\nexport type ProductTheme =\n\t| 'global-setup'\n\t| 'service-cloud'\n\t| 'industry-cloud'\n\t| 'sales-cloud'\n\t| 'commerce-cloud'\n\t| 'community-cloud'\n\t| 'marketing-cloud'\n\t| 'quip';\n\n/**\n * Props for the Icon component\n */\nexport interface IconProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: { label?: string } | string;\n\t/** Icon category from SLDS */\n\tcategory?: IconCategory;\n\t/** CSS classes for the SVG element */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Icon color variant */\n\tcolorVariant?: IconColorVariant;\n\t/** CSS classes for the container span */\n\tcontainerClassName?: string | string[] | Record<string, boolean>;\n\t/** Styles for the container span */\n\tcontainerStyle?: CSSProperties;\n\t/** Custom SVG icon data */\n\ticon?: InlineIconData;\n\t/** Invert colors for dark backgrounds */\n\tinverse?: boolean;\n\t/** Name of the icon */\n\tname?: string;\n\t/** Direct path to the icon sprite */\n\tpath?: string;\n\t/** Background theme color (only for standard category) */\n\tproductTheme?: ProductTheme;\n\t/** Size of the icon */\n\tsize?: IconSize;\n\t/** Custom styles for the SVG */\n\tstyle?: CSSProperties;\n\t/** HTML title attribute for the container */\n\ttitle?: string;\n}\n\nconst defaultProps: Required<Pick<IconProps, 'assistiveText' | 'category' | 'colorVariant' | 'size'>> = {\n\tassistiveText: {},\n\tcategory: 'standard',\n\tcolorVariant: 'default',\n\tsize: 'medium',\n};\n\n/**\n * The Icon component is the Lightning Design System Icon component and should be used for naked icons.\n * For icons that are buttons, use the Button component with `variant='icon'`.\n */\nconst Icon = ({\n\tcategory = defaultProps.category,\n\tclassName,\n\tcolorVariant = defaultProps.colorVariant,\n\tcontainerClassName,\n\tcontainerStyle,\n\ticon,\n\tinverse,\n\tname,\n\tpath,\n\tsize = defaultProps.size,\n\ttitle,\n\tproductTheme,\n\tassistiveText = defaultProps.assistiveText,\n\tstyle,\n}: IconProps): React.ReactElement => {\n\tlet styleOverride = style;\n\tif (productTheme && IconBackgrounds[productTheme]) {\n\t\tstyleOverride = {\n\t\t\tbackgroundColor: IconBackgrounds[productTheme],\n\t\t\t...style,\n\t\t};\n\t}\n\n\tlet mergedAssistiveText: string | undefined;\n\tif (typeof assistiveText === 'string') {\n\t\tmergedAssistiveText = assistiveText;\n\t} else {\n\t\tconst defaultText = defaultProps.assistiveText as { label?: string };\n\t\tconst propsText = assistiveText as { label?: string };\n\t\tmergedAssistiveText = propsText?.label ?? defaultText?.label;\n\t}\n\n\tconst kebabCaseName = name ? name.replace(/_/g, '-') : '';\n\n\tconst containerClasses = classNames(\n\t\t{\n\t\t\t'slds-icon_container': category !== 'utility',\n\t\t\t'slds-icon_container_circle': category === 'action',\n\t\t\t[`slds-icon-${category}-${kebabCaseName}`]:\n\t\t\t\tcategory !== 'utility' && category !== 'doctype' && !path,\n\t\t},\n\t\tcontainerClassName as string\n\t);\n\n\treturn (\n\t\t<span\n\t\t\tclassName={containerClasses}\n\t\t\tstyle={containerStyle}\n\t\t\ttitle={title}\n\t\t>\n\t\t\t<UtilityIcon\n\t\t\t\taria-hidden={true}\n\t\t\t\tcategory={category}\n\t\t\t\tclassName={classNames(className, 'slds-icon', {\n\t\t\t\t\t'slds-icon_xx-small': size === 'xx-small',\n\t\t\t\t\t'slds-icon_x-small': size === 'x-small',\n\t\t\t\t\t'slds-icon_small': size === 'small',\n\t\t\t\t\t// medium intentionally not present\n\t\t\t\t\t'slds-icon_large': size === 'large',\n\t\t\t\t\t// Color logic for utility vs other categories\n\t\t\t\t\t'slds-icon-text-default':\n\t\t\t\t\t\tcolorVariant === 'default' && category === 'utility'\n\t\t\t\t\t\t\t? !inverse\n\t\t\t\t\t\t\t: inverse,\n\t\t\t\t\t'slds-icon-text-success': colorVariant === 'success',\n\t\t\t\t\t'slds-icon-text-warning': colorVariant === 'warning',\n\t\t\t\t\t'slds-icon-text-error': colorVariant === 'error',\n\t\t\t\t\t'slds-icon-text-light': colorVariant === 'light',\n\t\t\t\t}) as string}\n\t\t\t\ticon={icon}\n\t\t\t\tname={name}\n\t\t\t\tpath={path}\n\t\t\t\tstyle={styleOverride}\n\t\t\t/>\n\t\t\t{mergedAssistiveText ? (\n\t\t\t\t<span className=\"slds-assistive-text\">{mergedAssistiveText}</span>\n\t\t\t) : null}\n\t\t</span>\n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D,IACC,GAER,EAEA,EAAK,YAAc,EAAA"}
@@ -1,2 +1,2 @@
1
- const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");var i=(0,n.createContext)({}),a=({iconPath:e,onRequestIconPath:t,actionSprite:n,customSprite:a,doctypeSprite:o,standardSprite:s,utilitySprite:c,children:l})=>{let u={iconPath:e,onRequestIconPath:t,actionSprite:n,customSprite:a,doctypeSprite:o,standardSprite:s,utilitySprite:c};return(0,r.jsx)(i.Provider,{value:u,children:l})};a.displayName=t.ICON_SETTINGS,exports.IconSettingsContext=i,exports.default=a;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");var i=(0,n.createContext)({}),a=({iconPath:e,onRequestIconPath:t,actionSprite:n,customSprite:a,doctypeSprite:o,standardSprite:s,utilitySprite:c,children:l})=>{let u={iconPath:e,onRequestIconPath:t,actionSprite:n,customSprite:a,doctypeSprite:o,standardSprite:s,utilitySprite:c};return(0,r.jsx)(i.Provider,{value:u,children:l})};a.displayName=t.ICON_SETTINGS,exports.IconSettingsContext=i,exports.default=a;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/icon-settings/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { createContext, type ReactNode } from 'react';\nimport { ICON_SETTINGS } from '../../utilities/constants';\nimport type { IconCategory } from '../../types/common';\n\n/**\n * Context value shape for IconSettings\n */\nexport interface IconSettingsContextValue {\n\t/** Path to the root icon folder */\n\ticonPath?: string;\n\t/** Function to generate custom icon paths */\n\tonRequestIconPath?: (data: { category: IconCategory; name: string }) => string;\n\t/** Path to the action sprite */\n\tactionSprite?: string;\n\t/** Path to the custom sprite */\n\tcustomSprite?: string;\n\t/** Path to the doctype sprite */\n\tdoctypeSprite?: string;\n\t/** Path to the standard sprite */\n\tstandardSprite?: string;\n\t/** Path to the utility sprite */\n\tutilitySprite?: string;\n}\n\n/**\n * Props for the IconSettings component\n */\nexport interface IconSettingsProps extends IconSettingsContextValue {\n\t/** Child components that will have access to icon settings */\n\tchildren: ReactNode;\n}\n\n/**\n * Context for sharing icon settings across the component tree\n */\nexport const IconSettingsContext = createContext<IconSettingsContextValue>({});\n\n/**\n * The Icon Settings component allows for the path to the icons to be specified in all child\n * components and is recommended to be used at the root of the application.\n *\n * **Individual sprites**\n * If you are using webpack it is advised to use the sprite properties\n * {actionSprite, standardSprite...} to specify the individual sprite paths so that webpack can\n * easily re-write the paths.\n *\n * ```tsx\n * import actionSprite from '......';\n *\n * <IconSettings actionSprite={actionSprite} ......>\n * <App />\n * </IconSettings>\n * ```\n *\n * **Root icon path**\n * Otherwise use the iconPath to specify the root path to where the icon files will be located\n * in your application such as `/assets/icons`.\n */\nconst IconSettings = ({\n\ticonPath,\n\tonRequestIconPath,\n\tactionSprite,\n\tcustomSprite,\n\tdoctypeSprite,\n\tstandardSprite,\n\tutilitySprite,\n\tchildren,\n}: IconSettingsProps): React.ReactElement => {\n\tconst contextValue: IconSettingsContextValue = {\n\t\ticonPath,\n\t\tonRequestIconPath,\n\t\tactionSprite,\n\t\tcustomSprite,\n\t\tdoctypeSprite,\n\t\tstandardSprite,\n\t\tutilitySprite,\n\t};\n\n\treturn (\n\t\t<IconSettingsContext.Provider value={contextValue}>\n\t\t\t{children}\n\t\t</IconSettingsContext.Provider>\n\t);\n};\n\nIconSettings.displayName = ICON_SETTINGS;\n\nexport default IconSettings;\n\n"],"mappings":"8KAsCA,IAAa,GAAA,EAAsB,EAAA,cAAA,CAAwC,CAAC,CAAC,EAuBvE,GAAgB,CACrB,WACA,oBACA,eACA,eACA,gBACA,iBACA,gBACA,cAC4C,CAC5C,IAAM,EAAyC,CAC9C,WACA,oBACA,eACA,eACA,gBACA,iBACA,eACD,EAEA,OACC,EAAA,EAAA,IAAA,CAAC,EAAoB,SAArB,CAA8B,MAAO,EACnC,UAC4B,CAAA,CAEhC,EAEA,EAAa,YAAc,EAAA"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/icon-settings/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { createContext, type ReactNode } from 'react';\nimport { ICON_SETTINGS } from '../../utilities/constants';\nimport type { IconCategory } from '../../types/common';\n\n/**\n * Context value shape for IconSettings\n */\nexport interface IconSettingsContextValue {\n\t/** Path to the root icon folder */\n\ticonPath?: string;\n\t/** Function to generate custom icon paths */\n\tonRequestIconPath?: (data: { category: IconCategory; name: string }) => string;\n\t/** Path to the action sprite */\n\tactionSprite?: string;\n\t/** Path to the custom sprite */\n\tcustomSprite?: string;\n\t/** Path to the doctype sprite */\n\tdoctypeSprite?: string;\n\t/** Path to the standard sprite */\n\tstandardSprite?: string;\n\t/** Path to the utility sprite */\n\tutilitySprite?: string;\n}\n\n/**\n * Props for the IconSettings component\n */\nexport interface IconSettingsProps extends IconSettingsContextValue {\n\t/** Child components that will have access to icon settings */\n\tchildren: ReactNode;\n}\n\n/**\n * Context for sharing icon settings across the component tree\n */\nexport const IconSettingsContext = createContext<IconSettingsContextValue>({});\n\n/**\n * The Icon Settings component allows for the path to the icons to be specified in all child\n * components and is recommended to be used at the root of the application.\n *\n * **Individual sprites**\n * If you are using webpack it is advised to use the sprite properties\n * {actionSprite, standardSprite...} to specify the individual sprite paths so that webpack can\n * easily re-write the paths.\n *\n * ```tsx\n * import actionSprite from '......';\n *\n * <IconSettings actionSprite={actionSprite} ......>\n * <App />\n * </IconSettings>\n * ```\n *\n * **Root icon path**\n * Otherwise use the iconPath to specify the root path to where the icon files will be located\n * in your application such as `/assets/icons`.\n */\nconst IconSettings = ({\n\ticonPath,\n\tonRequestIconPath,\n\tactionSprite,\n\tcustomSprite,\n\tdoctypeSprite,\n\tstandardSprite,\n\tutilitySprite,\n\tchildren,\n}: IconSettingsProps): React.ReactElement => {\n\tconst contextValue: IconSettingsContextValue = {\n\t\ticonPath,\n\t\tonRequestIconPath,\n\t\tactionSprite,\n\t\tcustomSprite,\n\t\tdoctypeSprite,\n\t\tstandardSprite,\n\t\tutilitySprite,\n\t};\n\n\treturn (\n\t\t<IconSettingsContext.Provider value={contextValue}>\n\t\t\t{children}\n\t\t</IconSettingsContext.Provider>\n\t);\n};\n\nIconSettings.displayName = ICON_SETTINGS;\n\nexport default IconSettings;\n\n"],"mappings":"6QAsCA,IAAa,GAAA,EAAsB,EAAA,cAAA,CAAwC,CAAC,CAAC,EAuBvE,GAAgB,CACrB,WACA,oBACA,eACA,eACA,gBACA,iBACA,gBACA,cAC4C,CAC5C,IAAM,EAAyC,CAC9C,WACA,oBACA,eACA,eACA,gBACA,iBACA,eACD,EAEA,OACC,EAAA,EAAA,IAAA,CAAC,EAAoB,SAArB,CAA8B,MAAO,EACnC,UAC4B,CAAA,CAEhC,EAEA,EAAa,YAAc,EAAA"}
@@ -1,2 +1,2 @@
1
- const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../utilities/utility-icon/svg.cjs"),r=require("../../utilities/class-names.cjs"),i=require("./check-props.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s=e=>{if(!e||typeof e!=`string`)return;let t=e.replace(/[\x00-\x1f\x7f]/g,``).trim().toLowerCase();if([`javascript:`,`data:`,`vbscript:`,`file:`,`blob:`].some(e=>t.startsWith(e))){console.log(`Illustration: Blocked potentially unsafe path "${e}". Only http, https, relative paths, and fragment identifiers are allowed.`);return}return e},c=({className:e,illustration:a,heading:c,messageBody:l,name:u,path:d,internalIllustration:f=!0,size:p=`small`,style:m={},...h})=>{i.default(t.ILLUSTRATION,{className:e,illustration:a,heading:c,messageBody:l,name:u,path:d,internalIllustration:f,size:p,style:m});let g=u?u.replace(/_| /g,`-`).toLowerCase():``,_={...m},v=null;if(p===`large`&&!_.height&&(_.height=`400px`),a)v=(0,o.jsx)(n.default,{className:`slds-illustration__svg`,"aria-hidden":`true`,data:a,name:g,style:_});else if(d){let e=s(d);e&&(v=(0,o.jsx)(`svg`,{className:`slds-illustration__svg`,"aria-hidden":`true`,name:g,style:_,children:(0,o.jsx)(`use`,{xlinkHref:e})}))}return(0,o.jsxs)(`div`,{className:r.default(e,`slds-illustration`,{"slds-illustration_small":p===`small`,"slds-illustration_large":p===`large`}),children:[v,(0,o.jsxs)(`div`,{className:`slds-text-longform`,children:[c&&(0,o.jsx)(`h3`,{className:`slds-text-heading_medium`,children:c}),l&&(0,o.jsx)(`p`,{className:`slds-text-body_regular`,children:l})]})]})};c.displayName=t.ILLUSTRATION,exports.default=c;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../utilities/utility-icon/svg.cjs"),r=require("../../utilities/class-names.cjs"),i=require("./check-props.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s=e=>{if(!e||typeof e!=`string`)return;let t=e.replace(/[\x00-\x1f\x7f]/g,``).trim().toLowerCase();if([`javascript:`,`data:`,`vbscript:`,`file:`,`blob:`].some(e=>t.startsWith(e))){console.log(`Illustration: Blocked potentially unsafe path "${e}". Only http, https, relative paths, and fragment identifiers are allowed.`);return}return e},c=({className:e,illustration:a,heading:c,messageBody:l,name:u,path:d,internalIllustration:f=!0,size:p=`small`,style:m={},...h})=>{i.default(t.ILLUSTRATION,{className:e,illustration:a,heading:c,messageBody:l,name:u,path:d,internalIllustration:f,size:p,style:m});let g=u?u.replace(/_| /g,`-`).toLowerCase():``,_={...m},v=null;if(p===`large`&&!_.height&&(_.height=`400px`),a)v=(0,o.jsx)(n.default,{className:`slds-illustration__svg`,"aria-hidden":`true`,data:a,name:g,style:_});else if(d){let e=s(d);e&&(v=(0,o.jsx)(`svg`,{className:`slds-illustration__svg`,"aria-hidden":`true`,name:g,style:_,children:(0,o.jsx)(`use`,{xlinkHref:e})}))}return(0,o.jsxs)(`div`,{className:r.default(e,`slds-illustration`,{"slds-illustration_small":p===`small`,"slds-illustration_large":p===`large`}),children:[v,(0,o.jsxs)(`div`,{className:`slds-text-longform`,children:[c&&(0,o.jsx)(`h3`,{className:`slds-text-heading_medium`,children:c}),l&&(0,o.jsx)(`p`,{className:`slds-text-body_regular`,children:l})]})]})};c.displayName=t.ILLUSTRATION,exports.default=c;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/illustration/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { type ReactNode, type CSSProperties } from 'react';\nimport classNames from '../../utilities/class-names';\nimport Svg from '../utilities/utility-icon/svg';\nimport { ILLUSTRATION } from '../../utilities/constants';\n// Development-only deprecation warning. Illustration is deprecated for security\n// reasons (imported SVGs bypass SLDS styles via shadow DOM, and a user-provided\n// `path` is an XSS vector). This must fire — do not drop it.\nimport checkProps from './check-props';\n\n/**\n * Illustration size options\n */\nexport type IllustrationSize = 'small' | 'large';\n\n/**\n * SVG illustration data structure\n */\nexport interface IllustrationData {\n\tviewBox?: string;\n\t[key: string]: unknown;\n}\n\n/**\n * Props for the Illustration component\n */\nexport interface IllustrationProps {\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Heading text */\n\theading?: string;\n\t/** Custom SVG object */\n\tillustration?: IllustrationData;\n\t/** Whether SVGs are from design-system-react repo */\n\tinternalIllustration?: boolean;\n\t/** Message body below heading */\n\tmessageBody?: string | ReactNode;\n\t/** Name of the illustration */\n\tname?: string;\n\t/** Path to illustration SVG */\n\tpath?: string;\n\t/** Size of illustration */\n\tsize?: IllustrationSize;\n\t/** Custom styles for SVG */\n\tstyle?: CSSProperties;\n}\n\nconst sanitizePath = (path: string) => {\n\tif (!path || typeof path !== 'string') {\n\t\treturn undefined;\n\t}\n\n\t// Remove control characters, null bytes, and normalize whitespace\n\tconst normalizedPath = path\n\t\t.replace(/[\\x00-\\x1f\\x7f]/g, '') // eslint-disable-line no-control-regex\n\t\t.trim()\n\t\t.toLowerCase();\n\n\tconst dangerousProtocols = [\n\t\t'javascript:', // eslint-disable-line no-script-url\n\t\t'data:',\n\t\t'vbscript:',\n\t\t'file:',\n\t\t'blob:',\n\t];\n\n\tconst isDangerous = dangerousProtocols.some((protocol) =>\n\t\tnormalizedPath.startsWith(protocol)\n\t);\n\n\tif (isDangerous) {\n\t\t// eslint-disable-next-line no-console\n\t\tconsole.log(\n\t\t\t`Illustration: Blocked potentially unsafe path \"${path}\". Only http, https, relative paths, and fragment identifiers are allowed.`\n\t\t);\n\t\treturn undefined;\n\t}\n\n\treturn path;\n};\n\n/**\n * An illustration is an image and inline text that work in tandem to communicate a state in a more friendly way.\n */\nconst Illustration = ({\n\tclassName,\n\tillustration,\n\theading,\n\tmessageBody,\n\tname,\n\tpath,\n\tinternalIllustration = true,\n\tsize = 'small',\n\tstyle = {},\n\t...rest\n}: IllustrationProps): React.ReactElement => {\n\t// Dev-only deprecation warning (see check-props.js): Illustration is\n\t// deprecated, and using `path` with user-provided SVGs is an XSS risk.\n\t(checkProps as (component: string, props: unknown) => void)(ILLUSTRATION, {\n\t\tclassName,\n\t\tillustration,\n\t\theading,\n\t\tmessageBody,\n\t\tname,\n\t\tpath,\n\t\tinternalIllustration,\n\t\tsize,\n\t\tstyle,\n\t});\n\n\tconst kebabCaseName = name ? name.replace(/_| /g, '-').toLowerCase() : '';\n\tconst styles: CSSProperties = { ...style };\n\tlet illustrationSvg: React.ReactNode = null;\n\n\t// Large illustration SVG should have a default height of 400px if not already specified\n\tif (size === 'large' && !styles.height) {\n\t\tstyles.height = '400px';\n\t}\n\n\tif (illustration) {\n\t\t// Use SVG data passed in with `illustration` prop\n\t\tillustrationSvg = (\n\t\t\t<Svg\n\t\t\t\tclassName=\"slds-illustration__svg\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tdata={illustration}\n\t\t\t\tname={kebabCaseName}\n\t\t\t\tstyle={styles}\n\t\t\t/>\n\t\t);\n\t} else if (path) {\n\t\tconst safePath = sanitizePath(path);\n\t\tif (safePath) {\n\t\t\tillustrationSvg = (\n\t\t\t\t<svg\n\t\t\t\t\tclassName=\"slds-illustration__svg\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tname={kebabCaseName}\n\t\t\t\t\tstyle={styles}\n\t\t\t\t>\n\t\t\t\t\t<use xlinkHref={safePath} />\n\t\t\t\t</svg>\n\t\t\t);\n\t\t}\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(className as string, 'slds-illustration', {\n\t\t\t\t'slds-illustration_small': size === 'small',\n\t\t\t\t'slds-illustration_large': size === 'large',\n\t\t\t})}\n\t\t>\n\t\t\t{illustrationSvg}\n\t\t\t<div className=\"slds-text-longform\">\n\t\t\t\t{heading && <h3 className=\"slds-text-heading_medium\">{heading}</h3>}\n\t\t\t\t{messageBody && <p className=\"slds-text-body_regular\">{messageBody}</p>}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nIllustration.displayName = ILLUSTRATION;\n\nexport default Illustration;\n"],"mappings":"ySAiDA,IAAM,EAAgB,GAAiB,CACtC,GAAI,CAAC,GAAQ,OAAO,GAAS,SAC5B,OAID,IAAM,EAAiB,EACrB,QAAQ,mBAAoB,EAAE,CAAC,CAC/B,KAAK,CAAC,CACN,YAAY,EAcd,GAJoB,CAPnB,cACA,QACA,YACA,QACA,OAGmB,CAAA,CAAmB,KAAM,GAC5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,EAAA"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/illustration/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { type ReactNode, type CSSProperties } from 'react';\nimport classNames from '../../utilities/class-names';\nimport Svg from '../utilities/utility-icon/svg';\nimport { ILLUSTRATION } from '../../utilities/constants';\n// Development-only deprecation warning. Illustration is deprecated for security\n// reasons (imported SVGs bypass SLDS styles via shadow DOM, and a user-provided\n// `path` is an XSS vector). This must fire — do not drop it.\nimport checkProps from './check-props';\n\n/**\n * Illustration size options\n */\nexport type IllustrationSize = 'small' | 'large';\n\n/**\n * SVG illustration data structure\n */\nexport interface IllustrationData {\n\tviewBox?: string;\n\t[key: string]: unknown;\n}\n\n/**\n * Props for the Illustration component\n */\nexport interface IllustrationProps {\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Heading text */\n\theading?: string;\n\t/** Custom SVG object */\n\tillustration?: IllustrationData;\n\t/** Whether SVGs are from design-system-react repo */\n\tinternalIllustration?: boolean;\n\t/** Message body below heading */\n\tmessageBody?: string | ReactNode;\n\t/** Name of the illustration */\n\tname?: string;\n\t/** Path to illustration SVG */\n\tpath?: string;\n\t/** Size of illustration */\n\tsize?: IllustrationSize;\n\t/** Custom styles for SVG */\n\tstyle?: CSSProperties;\n}\n\nconst sanitizePath = (path: string) => {\n\tif (!path || typeof path !== 'string') {\n\t\treturn undefined;\n\t}\n\n\t// Remove control characters, null bytes, and normalize whitespace\n\tconst normalizedPath = path\n\t\t.replace(/[\\x00-\\x1f\\x7f]/g, '') // eslint-disable-line no-control-regex\n\t\t.trim()\n\t\t.toLowerCase();\n\n\tconst dangerousProtocols = [\n\t\t'javascript:', // eslint-disable-line no-script-url\n\t\t'data:',\n\t\t'vbscript:',\n\t\t'file:',\n\t\t'blob:',\n\t];\n\n\tconst isDangerous = dangerousProtocols.some((protocol) =>\n\t\tnormalizedPath.startsWith(protocol)\n\t);\n\n\tif (isDangerous) {\n\t\t// eslint-disable-next-line no-console\n\t\tconsole.log(\n\t\t\t`Illustration: Blocked potentially unsafe path \"${path}\". Only http, https, relative paths, and fragment identifiers are allowed.`\n\t\t);\n\t\treturn undefined;\n\t}\n\n\treturn path;\n};\n\n/**\n * An illustration is an image and inline text that work in tandem to communicate a state in a more friendly way.\n */\nconst Illustration = ({\n\tclassName,\n\tillustration,\n\theading,\n\tmessageBody,\n\tname,\n\tpath,\n\tinternalIllustration = true,\n\tsize = 'small',\n\tstyle = {},\n\t...rest\n}: IllustrationProps): React.ReactElement => {\n\t// Dev-only deprecation warning (see check-props.js): Illustration is\n\t// deprecated, and using `path` with user-provided SVGs is an XSS risk.\n\t(checkProps as (component: string, props: unknown) => void)(ILLUSTRATION, {\n\t\tclassName,\n\t\tillustration,\n\t\theading,\n\t\tmessageBody,\n\t\tname,\n\t\tpath,\n\t\tinternalIllustration,\n\t\tsize,\n\t\tstyle,\n\t});\n\n\tconst kebabCaseName = name ? name.replace(/_| /g, '-').toLowerCase() : '';\n\tconst styles: CSSProperties = { ...style };\n\tlet illustrationSvg: React.ReactNode = null;\n\n\t// Large illustration SVG should have a default height of 400px if not already specified\n\tif (size === 'large' && !styles.height) {\n\t\tstyles.height = '400px';\n\t}\n\n\tif (illustration) {\n\t\t// Use SVG data passed in with `illustration` prop\n\t\tillustrationSvg = (\n\t\t\t<Svg\n\t\t\t\tclassName=\"slds-illustration__svg\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tdata={illustration}\n\t\t\t\tname={kebabCaseName}\n\t\t\t\tstyle={styles}\n\t\t\t/>\n\t\t);\n\t} else if (path) {\n\t\tconst safePath = sanitizePath(path);\n\t\tif (safePath) {\n\t\t\tillustrationSvg = (\n\t\t\t\t<svg\n\t\t\t\t\tclassName=\"slds-illustration__svg\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tname={kebabCaseName}\n\t\t\t\t\tstyle={styles}\n\t\t\t\t>\n\t\t\t\t\t<use xlinkHref={safePath} />\n\t\t\t\t</svg>\n\t\t\t);\n\t\t}\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(className as string, 'slds-illustration', {\n\t\t\t\t'slds-illustration_small': size === 'small',\n\t\t\t\t'slds-illustration_large': size === 'large',\n\t\t\t})}\n\t\t>\n\t\t\t{illustrationSvg}\n\t\t\t<div className=\"slds-text-longform\">\n\t\t\t\t{heading && <h3 className=\"slds-text-heading_medium\">{heading}</h3>}\n\t\t\t\t{messageBody && <p className=\"slds-text-body_regular\">{messageBody}</p>}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nIllustration.displayName = ILLUSTRATION;\n\nexport default Illustration;\n"],"mappings":"wYAiDA,IAAM,EAAgB,GAAiB,CACtC,GAAI,CAAC,GAAQ,OAAO,GAAS,SAC5B,OAID,IAAM,EAAiB,EACrB,QAAQ,mBAAoB,EAAE,CAAC,CAC/B,KAAK,CAAC,CACN,YAAY,EAcd,GAJoB,CAPnB,cACA,QACA,YACA,QACA,OAGmB,CAAA,CAAmB,KAAM,GAC5C,EAAe,WAAW,CAAQ,CAG/B,EAAa,CAEhB,QAAQ,IACP,kDAAkD,EAAK,2EACxD,EACA,MACD,CAEA,OAAO,CACR,EAKM,GAAgB,CACrB,YACA,eACA,UACA,cACA,OACA,OACA,uBAAuB,GACvB,OAAO,QACP,QAAQ,CAAC,EACT,GAAG,KACyC,CAG5C,EAAA,QAA4D,EAAA,aAAc,CACzE,YACA,eACA,UACA,cACA,OACA,OACA,uBACA,OACA,OACD,CAAC,EAED,IAAM,EAAgB,EAAO,EAAK,QAAQ,OAAQ,GAAG,CAAC,CAAC,YAAY,EAAI,GACjE,EAAwB,CAAE,GAAG,CAAM,EACrC,EAAmC,KAOvC,GAJI,IAAS,SAAW,CAAC,EAAO,SAC/B,EAAO,OAAS,SAGb,EAEH,GACC,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,UAAU,yBACV,cAAY,OACZ,KAAM,EACN,KAAM,EACN,MAAO,CACP,CAAA,OAEI,GAAI,EAAM,CAChB,IAAM,EAAW,EAAa,CAAI,EAC9B,IACH,GACC,EAAA,EAAA,IAAA,CAAC,MAAD,CACC,UAAU,yBACV,cAAY,OACZ,KAAM,EACN,MAAO,EAEP,UAAA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,CAAW,CAAA,CACvB,CAAA,EAGR,CAEA,OACC,EAAA,EAAA,KAAA,CAAC,MAAD,CACC,UAAW,EAAA,QAAW,EAAqB,oBAAqB,CAC/D,0BAA2B,IAAS,QACpC,0BAA2B,IAAS,OACrC,CAAC,EAJF,SAAA,CAME,GACD,EAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAU,qBAAf,SAAA,CACE,IAAW,EAAA,EAAA,IAAA,CAAC,KAAD,CAAI,UAAU,2BAA4B,SAAA,CAAY,CAAA,EACjE,IAAe,EAAA,EAAA,IAAA,CAAC,IAAD,CAAG,UAAU,yBAA0B,SAAA,CAAe,CAAA,CAClE,CACD,CAAA,CAAA,GAEP,EAEA,EAAa,YAAc,EAAA"}
@@ -1,2 +1,2 @@
1
- const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../button/index.cjs"),r=require("./private/inner-input.cjs"),i=require("../utilities/label/index.cjs"),a=require("../tooltip/private/field-level-help-tooltip.cjs"),ee=require("./check-props.cjs"),te=require("./component.cjs");let o=require("react");o=e.__toESM(o,1);let s=require("classnames");s=e.__toESM(s,1);let c=require("react/jsx-runtime");var l=`counter`,u=`Decrement`,d=`Increment`,ne={decrement:`${u} ${l}`,increment:`${d} ${l}`},f=(0,o.forwardRef)(({"aria-activedescendant":e,"aria-autocomplete":f,"aria-controls":re,"aria-describedby":ie,"aria-expanded":ae,"aria-haspopup":p,"aria-labelledby":m,"aria-owns":h,"aria-required":g,assistiveText:oe,autoComplete:se,children:ce,className:le,defaultValue:ue,disabled:_=!1,errorText:v,fieldLevelHelpTooltip:y,fixedTextLeft:de,fixedTextRight:fe,hasSpinner:pe=!1,iconLeft:b,iconRight:x,id:me,inlineHelpText:S,inlineEditTrigger:he,inputRef:C,isStatic:w=!1,label:T,maxLength:E,maxValue:D,minLength:O,minValue:k,name:A,onBlur:j,onChange:M,onClick:N,onFocus:P,onInput:F,onInvalid:I,onKeyDown:L,onKeyPress:R,onKeyUp:ge,onSelect:_e,onSubmit:ve,placeholder:ye,readOnly:z=!1,required:B=!1,role:be,step:V,tabIndex:xe,styleContainer:Se,styleInput:Ce,type:we=`text`,value:H,variant:U=`base`},Te)=>{let Ee=(0,o.useId)(),De=(0,o.useId)(),Oe=(0,o.useId)(),W=me||Ee,ke=v?De:void 0,Ae=S?Oe:void 0,je=[ie,Ae,ke].filter(e=>!!e).join(` `)||void 0,G=(0,o.useRef)(null),K=(0,o.useRef)({currentDelay:500,initialDelay:500,speedDelay:75,timeout:null}),q=(0,o.useRef)(null),J={...ne,...oe};ee.default(t.INPUT,{"aria-activedescendant":e,"aria-autocomplete":f,"aria-controls":re,"aria-describedby":ie,"aria-expanded":ae,"aria-haspopup":p,"aria-labelledby":m,"aria-owns":h,"aria-required":g,assistiveText:J,autoComplete:se,children:ce,className:le,defaultValue:ue,disabled:_,errorText:v,fieldLevelHelpTooltip:y,fixedTextLeft:de,fixedTextRight:fe,hasSpinner:pe,iconLeft:b,iconRight:x,id:W,inlineHelpText:S,inlineEditTrigger:he,inputRef:C,isStatic:w,label:T,maxLength:E,maxValue:D,minLength:O,minValue:k,name:A,onBlur:j,onChange:M,onClick:N,onFocus:P,onInput:F,onInvalid:I,onKeyDown:L,onKeyPress:R,onKeyUp:ge,onSelect:_e,onSubmit:ve,placeholder:ye,readOnly:z,required:B,role:be,step:V,tabIndex:xe,styleContainer:Se,styleInput:Ce,type:we,value:H,variant:U},te.default);let Y=(0,o.useCallback)(()=>H===void 0?G.current?Number(G.current.value):0:Number(H),[H]),X=(0,o.useCallback)(()=>{K.current.timeout&&clearTimeout(K.current.timeout),K.current.currentDelay=K.current.initialDelay,q.current=null},[]),Z=(0,o.useCallback)((e,t)=>{K.current.timeout&&clearTimeout(K.current.timeout),t&&(q.current=t);let n=t??q.current??void 0,r=V===void 0?1:Number(V),i=Y(),a=!1;if(e===u&&D!==void 0&&i>D)i=Number(D),a=!0;else if(e===d&&k!==void 0&&i<k)i=Number(k),a=!0;else{let t=String(r).search(/\./)>=0?String(r).split(`.`)[1].length:0,n=0;k!==void 0&&(n=(i-k)%r),i=n>0?e===u?i-n:i+(r-n):e===u?i-r:i+r,i=Number(i.toFixed(t)),!(D!==void 0&&i>D)&&!(k!==void 0&&i<k)&&(a=!0)}a&&(H===void 0&&G.current&&(G.current.value=String(i)),M&&n&&M(n,{number:i,value:String(i)})),e===d&&D!==void 0&&i>=D||e===u&&k!==void 0&&i<=k?X():K.current.timeout=setTimeout(()=>{K.current.currentDelay=K.current.speedDelay,Z(e)},K.current.currentDelay)},[Y,D,k,M,V,X,H]),Me=(0,o.useCallback)(e=>{G.current=e,C&&C(e)},[C]),Ne=(0,o.useCallback)(e=>{if(M){let t={value:e.target.value};U===l&&(t.number=Number(t.value)),M(e,t)}},[M,U]),Pe=e=>{let t=Y(),r=!1;return(_||e===d&&D!==void 0&&t>=D||e===u&&k!==void 0&&t<=k)&&(r=!0),(0,c.jsx)(n.default,{assistiveText:{icon:J[e.toLowerCase()]},className:(0,s.default)(`slds-button_icon-small`,`slds-input__button_${e.toLowerCase()}`),disabled:r,iconCategory:`utility`,iconName:e===u?`ban`:`new`,onKeyDown:t=>{t.keyCode===13&&Z(e,t)},onKeyUp:X,onMouseDown:t=>{Z(e,t)},onMouseLeave:X,onMouseUp:X,variant:`icon`})},Q=null,$=null;b?Q=o.default.isValidElement(b)?o.default.cloneElement(b,{iconPosition:`left`}):b:U===l&&!w&&!z&&(Q=Pe(u)),x?$=o.default.isValidElement(x)?o.default.cloneElement(x,{iconPosition:`right`}):x:U===l&&!w&&!z&&($=Pe(d));let Fe=T||J?.label,Ie=U===l?Me:C;return(0,c.jsxs)(`div`,{className:(0,s.default)(`slds-form-element`,{"slds-has-error":v},le),style:Se,ref:Te,children:[(0,c.jsx)(i.default,{assistiveText:J,htmlFor:w?void 0:W,label:T,required:B,variant:w?`static`:`base`}),y&&Fe?(0,c.jsx)(a.default,{assistiveText:{triggerLearnMoreIcon:J.fieldLevelHelpButton},fieldLevelHelpTooltip:y}):null,(0,c.jsx)(r.default,{"aria-activedescendant":e,"aria-autocomplete":f,"aria-controls":re,"aria-labelledby":m,"aria-describedby":je,"aria-expanded":ae,"aria-haspopup":p,"aria-owns":h,"aria-required":g,autoComplete:se,className:(0,s.default)({"slds-input_counter":U===l,"slds-p-horizontal_none":U===l&&z}),containerProps:{className:`slds-form-element__control`},defaultValue:ue,disabled:_,fixedTextLeft:de,fixedTextRight:fe,hasSpinner:pe,id:W,iconLeft:Q,iconRight:$,inlineEditTrigger:he,isStatic:w,minLength:O,minValue:k,maxLength:E,maxValue:D,name:A,onBlur:j,onChange:Ne,onClick:N,onFocus:P,onInput:F,onInvalid:I,onKeyDown:L,onKeyPress:R,onKeyUp:ge,onSelect:_e,onSubmit:ve,placeholder:ye,inputRef:Ie,readOnly:z,required:B,role:be,assistiveText:J,type:U===l?`number`:we,value:H,variant:U,step:V,tabIndex:xe,style:Ce}),S&&(0,c.jsx)(`div`,{id:Ae,className:`slds-form-element__help`,children:S}),v&&(0,c.jsx)(`div`,{id:ke,className:`slds-form-element__help`,children:v}),ce]})});f.displayName=t.INPUT,exports.default=f;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs"),n=require("../button/index.cjs"),r=require("./private/inner-input.cjs"),i=require("../utilities/label/index.cjs"),a=require("../tooltip/private/field-level-help-tooltip.cjs"),ee=require("./check-props.cjs"),te=require("./component.cjs");let o=require("react");o=e.__toESM(o,1);let s=require("classnames");s=e.__toESM(s,1);let c=require("react/jsx-runtime");var l=`counter`,u=`Decrement`,d=`Increment`,ne={decrement:`${u} ${l}`,increment:`${d} ${l}`},f=(0,o.forwardRef)(({"aria-activedescendant":e,"aria-autocomplete":f,"aria-controls":re,"aria-describedby":ie,"aria-expanded":ae,"aria-haspopup":p,"aria-labelledby":m,"aria-owns":h,"aria-required":g,assistiveText:oe,autoComplete:se,children:ce,className:le,defaultValue:ue,disabled:_=!1,errorText:v,fieldLevelHelpTooltip:y,fixedTextLeft:de,fixedTextRight:fe,hasSpinner:pe=!1,iconLeft:b,iconRight:x,id:me,inlineHelpText:S,inlineEditTrigger:he,inputRef:C,isStatic:w=!1,label:T,maxLength:E,maxValue:D,minLength:O,minValue:k,name:A,onBlur:j,onChange:M,onClick:N,onFocus:P,onInput:F,onInvalid:I,onKeyDown:L,onKeyPress:R,onKeyUp:ge,onSelect:_e,onSubmit:ve,placeholder:ye,readOnly:z=!1,required:B=!1,role:be,step:V,tabIndex:xe,styleContainer:Se,styleInput:Ce,type:we=`text`,value:H,variant:U=`base`},Te)=>{let Ee=(0,o.useId)(),De=(0,o.useId)(),Oe=(0,o.useId)(),W=me||Ee,ke=v?De:void 0,Ae=S?Oe:void 0,je=[ie,Ae,ke].filter(e=>!!e).join(` `)||void 0,G=(0,o.useRef)(null),K=(0,o.useRef)({currentDelay:500,initialDelay:500,speedDelay:75,timeout:null}),q=(0,o.useRef)(null),J={...ne,...oe};ee.default(t.INPUT,{"aria-activedescendant":e,"aria-autocomplete":f,"aria-controls":re,"aria-describedby":ie,"aria-expanded":ae,"aria-haspopup":p,"aria-labelledby":m,"aria-owns":h,"aria-required":g,assistiveText:J,autoComplete:se,children:ce,className:le,defaultValue:ue,disabled:_,errorText:v,fieldLevelHelpTooltip:y,fixedTextLeft:de,fixedTextRight:fe,hasSpinner:pe,iconLeft:b,iconRight:x,id:W,inlineHelpText:S,inlineEditTrigger:he,inputRef:C,isStatic:w,label:T,maxLength:E,maxValue:D,minLength:O,minValue:k,name:A,onBlur:j,onChange:M,onClick:N,onFocus:P,onInput:F,onInvalid:I,onKeyDown:L,onKeyPress:R,onKeyUp:ge,onSelect:_e,onSubmit:ve,placeholder:ye,readOnly:z,required:B,role:be,step:V,tabIndex:xe,styleContainer:Se,styleInput:Ce,type:we,value:H,variant:U},te.default);let Y=(0,o.useCallback)(()=>H===void 0?G.current?Number(G.current.value):0:Number(H),[H]),X=(0,o.useCallback)(()=>{K.current.timeout&&clearTimeout(K.current.timeout),K.current.currentDelay=K.current.initialDelay,q.current=null},[]),Z=(0,o.useCallback)((e,t)=>{K.current.timeout&&clearTimeout(K.current.timeout),t&&(q.current=t);let n=t??q.current??void 0,r=V===void 0?1:Number(V),i=Y(),a=!1;if(e===u&&D!==void 0&&i>D)i=Number(D),a=!0;else if(e===d&&k!==void 0&&i<k)i=Number(k),a=!0;else{let t=String(r).search(/\./)>=0?String(r).split(`.`)[1].length:0,n=0;k!==void 0&&(n=(i-k)%r),i=n>0?e===u?i-n:i+(r-n):e===u?i-r:i+r,i=Number(i.toFixed(t)),!(D!==void 0&&i>D)&&!(k!==void 0&&i<k)&&(a=!0)}a&&(H===void 0&&G.current&&(G.current.value=String(i)),M&&n&&M(n,{number:i,value:String(i)})),e===d&&D!==void 0&&i>=D||e===u&&k!==void 0&&i<=k?X():K.current.timeout=setTimeout(()=>{K.current.currentDelay=K.current.speedDelay,Z(e)},K.current.currentDelay)},[Y,D,k,M,V,X,H]),Me=(0,o.useCallback)(e=>{G.current=e,C&&C(e)},[C]),Ne=(0,o.useCallback)(e=>{if(M){let t={value:e.target.value};U===l&&(t.number=Number(t.value)),M(e,t)}},[M,U]),Pe=e=>{let t=Y(),r=!1;return(_||e===d&&D!==void 0&&t>=D||e===u&&k!==void 0&&t<=k)&&(r=!0),(0,c.jsx)(n.default,{assistiveText:{icon:J[e.toLowerCase()]},className:(0,s.default)(`slds-button_icon-small`,`slds-input__button_${e.toLowerCase()}`),disabled:r,iconCategory:`utility`,iconName:e===u?`ban`:`new`,onKeyDown:t=>{t.keyCode===13&&Z(e,t)},onKeyUp:X,onMouseDown:t=>{Z(e,t)},onMouseLeave:X,onMouseUp:X,variant:`icon`})},Q=null,$=null;b?Q=o.default.isValidElement(b)?o.default.cloneElement(b,{iconPosition:`left`}):b:U===l&&!w&&!z&&(Q=Pe(u)),x?$=o.default.isValidElement(x)?o.default.cloneElement(x,{iconPosition:`right`}):x:U===l&&!w&&!z&&($=Pe(d));let Fe=T||J?.label,Ie=U===l?Me:C;return(0,c.jsxs)(`div`,{className:(0,s.default)(`slds-form-element`,{"slds-has-error":v},le),style:Se,ref:Te,children:[(0,c.jsx)(i.default,{assistiveText:J,htmlFor:w?void 0:W,label:T,required:B,variant:w?`static`:`base`}),y&&Fe?(0,c.jsx)(a.default,{assistiveText:{triggerLearnMoreIcon:J.fieldLevelHelpButton},fieldLevelHelpTooltip:y}):null,(0,c.jsx)(r.default,{"aria-activedescendant":e,"aria-autocomplete":f,"aria-controls":re,"aria-labelledby":m,"aria-describedby":je,"aria-expanded":ae,"aria-haspopup":p,"aria-owns":h,"aria-required":g,autoComplete:se,className:(0,s.default)({"slds-input_counter":U===l,"slds-p-horizontal_none":U===l&&z}),containerProps:{className:`slds-form-element__control`},defaultValue:ue,disabled:_,fixedTextLeft:de,fixedTextRight:fe,hasSpinner:pe,id:W,iconLeft:Q,iconRight:$,inlineEditTrigger:he,isStatic:w,minLength:O,minValue:k,maxLength:E,maxValue:D,name:A,onBlur:j,onChange:Ne,onClick:N,onFocus:P,onInput:F,onInvalid:I,onKeyDown:L,onKeyPress:R,onKeyUp:ge,onSelect:_e,onSubmit:ve,placeholder:ye,inputRef:Ie,readOnly:z,required:B,role:be,assistiveText:J,type:U===l?`number`:we,value:H,variant:U,step:V,tabIndex:xe,style:Ce}),S&&(0,c.jsx)(`div`,{id:Ae,className:`slds-form-element__help`,children:S}),v&&(0,c.jsx)(`div`,{id:ke,className:`slds-form-element__help`,children:v}),ce]})});f.displayName=t.INPUT,exports.default=f;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/input/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseId,\n\tuseRef,\n\tuseCallback,\n\tforwardRef,\n\ttype ReactNode,\n\ttype ReactElement,\n\ttype ChangeEvent,\n\ttype FocusEvent,\n\ttype KeyboardEvent,\n\ttype MouseEvent,\n\ttype FormEvent,\n\ttype CSSProperties,\n\ttype AriaAttributes,\n} from 'react';\nimport classNames from 'classnames';\n\nimport Button from '../button';\nimport InnerInput from './private/inner-input';\nimport Label from '../utilities/label/index';\nimport FieldLevelHelpTooltip from '../tooltip/private/field-level-help-tooltip';\nimport type { TooltipProps } from '../tooltip/index';\n\nimport checkProps from './check-props';\nimport { INPUT } from '../../utilities/constants';\nimport componentDoc from './component.json';\n\nconst COUNTER = 'counter';\nconst DECREMENT = 'Decrement';\nconst INCREMENT = 'Increment';\n\n/**\n * Input type options\n */\nexport type InputType =\n\t| 'text'\n\t| 'password'\n\t| 'datetime'\n\t| 'datetime-local'\n\t| 'date'\n\t| 'month'\n\t| 'time'\n\t| 'week'\n\t| 'number'\n\t| 'email'\n\t| 'url'\n\t| 'search'\n\t| 'tel'\n\t| 'color';\n\n/**\n * Input variant options\n */\nexport type InputVariant = 'base' | 'counter';\n\n/**\n * Assistive text for Input accessibility\n */\nexport interface InputAssistiveText {\n\t/** Visually hidden label for screen readers */\n\tlabel?: string;\n\t/** Text for loading spinner icon */\n\tspinner?: string;\n\t/** Text for decrement button in counter variant */\n\tdecrement?: string;\n\t/** Text for increment button in counter variant */\n\tincrement?: string;\n\t/** Text for field level help button */\n\tfieldLevelHelpButton?: string;\n}\n\n/**\n * Data passed to onChange callback\n */\nexport interface InputChangeData {\n\t/** The input value as string */\n\tvalue: string;\n\t/** The input value as number (only for counter variant) */\n\tnumber?: number;\n}\n\n/**\n * Props for the Input component\n */\nexport interface InputProps {\n\t/** ID of the currently active child in a composite widget */\n\t'aria-activedescendant'?: string;\n\t/** Indicates if suggestions complete the textbox input */\n\t'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';\n\t/** ID of element controlled by this input */\n\t'aria-controls'?: string;\n\t/** ID of element(s) that describe this input */\n\t'aria-describedby'?: string;\n\t/** Whether a collapsible region is expanded */\n\t'aria-expanded'?: boolean;\n\t/** Indicates the input has a popup */\n\t'aria-haspopup'?: AriaAttributes['aria-haspopup'];\n\t/** ID of element(s) that label this input */\n\t'aria-labelledby'?: string;\n\t/** ID of element(s) owned by this input */\n\t'aria-owns'?: string;\n\t/** Whether input is required */\n\t'aria-required'?: boolean;\n\t/** Assistive text for accessibility */\n\tassistiveText?: InputAssistiveText;\n\t/** Browser autocomplete attribute */\n\tautoComplete?: string;\n\t/** Elements added after the input */\n\tchildren?: ReactNode;\n\t/** CSS classes for the outer container */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Initial value for uncontrolled usage */\n\tdefaultValue?: string | number;\n\t/** Disables the input */\n\tdisabled?: boolean;\n\t/** Error message (highlights input as error) */\n\terrorText?: ReactNode;\n\t/** Tooltip component for field-level help */\n\tfieldLevelHelpTooltip?: ReactElement<TooltipProps> | null;\n\t/** Fixed text/node on the left */\n\tfixedTextLeft?: ReactNode;\n\t/** Fixed text/node on the right */\n\tfixedTextRight?: ReactNode;\n\t/** Shows loading spinner inside input */\n\thasSpinner?: boolean;\n\t/** Left-aligned icon (InputIcon instance) */\n\ticonLeft?: ReactNode;\n\t/** Right-aligned icon (InputIcon instance) */\n\ticonRight?: ReactNode;\n\t/** HTML id attribute */\n\tid?: string;\n\t/** Help text below the input */\n\tinlineHelpText?: ReactNode;\n\t/** Inline edit trigger element */\n\tinlineEditTrigger?: ReactNode;\n\t/** Ref callback for the input element */\n\tinputRef?: (element: HTMLInputElement | null) => void;\n\t/** Displays value statically (static input pattern) */\n\tisStatic?: boolean;\n\t/** Label text above input */\n\tlabel?: string;\n\t/** Maximum character length */\n\tmaxLength?: string | number;\n\t/** Maximum value for counter variant */\n\tmaxValue?: number;\n\t/** Minimum character length */\n\tminLength?: string | number;\n\t/** Minimum value for counter variant */\n\tminValue?: number;\n\t/** Form parameter name */\n\tname?: string;\n\t/** Blur event handler */\n\tonBlur?: (event: FocusEvent<HTMLInputElement>) => void;\n\t/** Change event handler */\n\tonChange?: (event: ChangeEvent<HTMLInputElement> | MouseEvent | KeyboardEvent, data: InputChangeData) => void;\n\t/** Click event handler */\n\tonClick?: (event: MouseEvent<HTMLInputElement>) => void;\n\t/** Focus event handler */\n\tonFocus?: (event: FocusEvent<HTMLInputElement>) => void;\n\t/** Input event handler */\n\tonInput?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Invalid event handler */\n\tonInvalid?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Key down event handler */\n\tonKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Key press event handler */\n\tonKeyPress?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Key up event handler */\n\tonKeyUp?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Select event handler */\n\tonSelect?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Submit event handler */\n\tonSubmit?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Placeholder text */\n\tplaceholder?: string;\n\t/** Makes input read-only */\n\treadOnly?: boolean;\n\t/** Highlights as required field */\n\trequired?: boolean;\n\t/** ARIA role */\n\trole?: string;\n\t/** Step size for counter variant */\n\tstep?: number;\n\t/** Tab index */\n\ttabIndex?: string | number;\n\t/** Custom styles for container */\n\tstyleContainer?: CSSProperties;\n\t/** Custom styles for input element */\n\tstyleInput?: CSSProperties;\n\t/** Input type */\n\ttype?: InputType;\n\t/** Controlled value */\n\tvalue?: string | number;\n\t/** Input variant */\n\tvariant?: InputVariant;\n}\n\nconst defaultAssistiveText: InputAssistiveText = {\n\tdecrement: `${DECREMENT} ${COUNTER}`,\n\tincrement: `${INCREMENT} ${COUNTER}`,\n};\n\n/**\n * The HTML `input` with a label and error messaging.\n *\n * @see https://lightningdesignsystem.com/components/input/\n */\nconst Input = forwardRef<HTMLDivElement, InputProps>(\n\t(\n\t\t{\n\t\t\t'aria-activedescendant': ariaActivedescendant,\n\t\t\t'aria-autocomplete': ariaAutocomplete,\n\t\t\t'aria-controls': ariaControls,\n\t\t\t'aria-describedby': ariaDescribedby,\n\t\t\t'aria-expanded': ariaExpanded,\n\t\t\t'aria-haspopup': ariaHaspopup,\n\t\t\t'aria-labelledby': ariaLabelledby,\n\t\t\t'aria-owns': ariaOwns,\n\t\t\t'aria-required': ariaRequired,\n\t\t\tassistiveText: propAssistiveText,\n\t\t\tautoComplete,\n\t\t\tchildren,\n\t\t\tclassName,\n\t\t\tdefaultValue,\n\t\t\tdisabled = false,\n\t\t\terrorText,\n\t\t\tfieldLevelHelpTooltip,\n\t\t\tfixedTextLeft,\n\t\t\tfixedTextRight,\n\t\t\thasSpinner = false,\n\t\t\ticonLeft: propIconLeft,\n\t\t\ticonRight: propIconRight,\n\t\t\tid: propId,\n\t\t\tinlineHelpText,\n\t\t\tinlineEditTrigger,\n\t\t\tinputRef: propInputRef,\n\t\t\tisStatic = false,\n\t\t\tlabel,\n\t\t\tmaxLength,\n\t\t\tmaxValue,\n\t\t\tminLength,\n\t\t\tminValue,\n\t\t\tname,\n\t\t\tonBlur,\n\t\t\tonChange,\n\t\t\tonClick,\n\t\t\tonFocus,\n\t\t\tonInput,\n\t\t\tonInvalid,\n\t\t\tonKeyDown,\n\t\t\tonKeyPress,\n\t\t\tonKeyUp,\n\t\t\tonSelect,\n\t\t\tonSubmit,\n\t\t\tplaceholder,\n\t\t\treadOnly = false,\n\t\t\trequired = false,\n\t\t\trole,\n\t\t\tstep,\n\t\t\ttabIndex,\n\t\t\tstyleContainer,\n\t\t\tstyleInput,\n\t\t\ttype = 'text',\n\t\t\tvalue,\n\t\t\tvariant = 'base',\n\t\t},\n\t\tref\n\t) => {\n\t\tconst generatedId = useId();\n\t\tconst generatedErrorId = useId();\n\t\tconst generatedInlineHelpId = useId();\n\t\tconst id = propId || generatedId;\n\t\tconst errorId = errorText ? generatedErrorId : undefined;\n\t\tconst inlineHelpId = inlineHelpText ? generatedInlineHelpId : undefined;\n\t\tconst describedby =\n\t\t\t[ariaDescribedby, inlineHelpId, errorId].filter((v): v is string => Boolean(v)).join(' ') ||\n\t\t\tundefined;\n\n\t\tconst inputElementRef = useRef<HTMLInputElement | null>(null);\n\t\tconst steppingRef = useRef({\n\t\t\tcurrentDelay: 500,\n\t\t\tinitialDelay: 500,\n\t\t\tspeedDelay: 75,\n\t\t\ttimeout: null as ReturnType<typeof setTimeout> | null,\n\t\t});\n\t\tconst lastStepEventRef = useRef<MouseEvent | KeyboardEvent | null>(null);\n\n\t\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\n\t\t// Check props in development\n\t\tcheckProps(INPUT, {\n\t\t\t'aria-activedescendant': ariaActivedescendant,\n\t\t\t'aria-autocomplete': ariaAutocomplete,\n\t\t\t'aria-controls': ariaControls,\n\t\t\t'aria-describedby': ariaDescribedby,\n\t\t\t'aria-expanded': ariaExpanded,\n\t\t\t'aria-haspopup': ariaHaspopup,\n\t\t\t'aria-labelledby': ariaLabelledby,\n\t\t\t'aria-owns': ariaOwns,\n\t\t\t'aria-required': ariaRequired,\n\t\t\tassistiveText,\n\t\t\tautoComplete,\n\t\t\tchildren,\n\t\t\tclassName,\n\t\t\tdefaultValue,\n\t\t\tdisabled,\n\t\t\terrorText,\n\t\t\tfieldLevelHelpTooltip,\n\t\t\tfixedTextLeft,\n\t\t\tfixedTextRight,\n\t\t\thasSpinner,\n\t\t\ticonLeft: propIconLeft,\n\t\t\ticonRight: propIconRight,\n\t\t\tid,\n\t\t\tinlineHelpText,\n\t\t\tinlineEditTrigger,\n\t\t\tinputRef: propInputRef,\n\t\t\tisStatic,\n\t\t\tlabel,\n\t\t\tmaxLength,\n\t\t\tmaxValue,\n\t\t\tminLength,\n\t\t\tminValue,\n\t\t\tname,\n\t\t\tonBlur,\n\t\t\tonChange,\n\t\t\tonClick,\n\t\t\tonFocus,\n\t\t\tonInput,\n\t\t\tonInvalid,\n\t\t\tonKeyDown,\n\t\t\tonKeyPress,\n\t\t\tonKeyUp,\n\t\t\tonSelect,\n\t\t\tonSubmit,\n\t\t\tplaceholder,\n\t\t\treadOnly,\n\t\t\trequired,\n\t\t\trole,\n\t\t\tstep,\n\t\t\ttabIndex,\n\t\t\tstyleContainer,\n\t\t\tstyleInput,\n\t\t\ttype,\n\t\t\tvalue,\n\t\t\tvariant,\n\t\t}, componentDoc);\n\n\t\tconst getValueAsNumber = useCallback((): number => {\n\t\t\tif (value !== undefined) {\n\t\t\t\treturn Number(value);\n\t\t\t}\n\t\t\tif (inputElementRef.current) {\n\t\t\t\treturn Number(inputElementRef.current.value);\n\t\t\t}\n\t\t\treturn 0;\n\t\t}, [value]);\n\n\t\tconst stopStepping = useCallback(() => {\n\t\t\tif (steppingRef.current.timeout) {\n\t\t\t\tclearTimeout(steppingRef.current.timeout);\n\t\t\t}\n\t\t\tsteppingRef.current.currentDelay = steppingRef.current.initialDelay;\n\t\t\tlastStepEventRef.current = null;\n\t\t}, []);\n\n\t\tconst performStep = useCallback(\n\t\t\t(direction: typeof INCREMENT | typeof DECREMENT, event?: MouseEvent | KeyboardEvent) => {\n\t\t\t\tif (steppingRef.current.timeout) {\n\t\t\t\t\tclearTimeout(steppingRef.current.timeout);\n\t\t\t\t}\n\n\t\t\t\tif (event) {\n\t\t\t\t\tlastStepEventRef.current = event;\n\t\t\t\t}\n\t\t\t\tconst stepEvent = event ?? lastStepEventRef.current ?? undefined;\n\n\t\t\t\tconst stepSize = step !== undefined ? Number(step) : 1;\n\t\t\t\tlet currentValue = getValueAsNumber();\n\t\t\t\tlet valueChanged = false;\n\n\t\t\t\tif (direction === DECREMENT && maxValue !== undefined && currentValue > maxValue) {\n\t\t\t\t\tcurrentValue = Number(maxValue);\n\t\t\t\t\tvalueChanged = true;\n\t\t\t\t} else if (direction === INCREMENT && minValue !== undefined && currentValue < minValue) {\n\t\t\t\t\tcurrentValue = Number(minValue);\n\t\t\t\t\tvalueChanged = true;\n\t\t\t\t} else {\n\t\t\t\t\tconst decimalPlaces =\n\t\t\t\t\t\tString(stepSize).search(/\\./) >= 0 ? String(stepSize).split('.')[1].length : 0;\n\t\t\t\t\tlet minOverflow = 0;\n\n\t\t\t\t\tif (minValue !== undefined) {\n\t\t\t\t\t\tminOverflow = (currentValue - minValue) % stepSize;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (minOverflow > 0) {\n\t\t\t\t\t\tcurrentValue =\n\t\t\t\t\t\t\tdirection === DECREMENT\n\t\t\t\t\t\t\t\t? currentValue - minOverflow\n\t\t\t\t\t\t\t\t: currentValue + (stepSize - minOverflow);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrentValue = direction === DECREMENT ? currentValue - stepSize : currentValue + stepSize;\n\t\t\t\t\t}\n\n\t\t\t\t\tcurrentValue = Number(currentValue.toFixed(decimalPlaces));\n\n\t\t\t\t\tif (\n\t\t\t\t\t\t!(maxValue !== undefined && currentValue > maxValue) &&\n\t\t\t\t\t\t!(minValue !== undefined && currentValue < minValue)\n\t\t\t\t\t) {\n\t\t\t\t\t\tvalueChanged = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (valueChanged) {\n\t\t\t\t\tif (value === undefined && inputElementRef.current) {\n\t\t\t\t\t\t// Uncontrolled mode\n\t\t\t\t\t\tinputElementRef.current.value = String(currentValue);\n\t\t\t\t\t}\n\t\t\t\t\tif (onChange && stepEvent) {\n\t\t\t\t\t\tonChange(stepEvent, {\n\t\t\t\t\t\t\tnumber: currentValue,\n\t\t\t\t\t\t\tvalue: String(currentValue),\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\t(direction === INCREMENT && maxValue !== undefined && currentValue >= maxValue) ||\n\t\t\t\t\t(direction === DECREMENT && minValue !== undefined && currentValue <= minValue)\n\t\t\t\t) {\n\t\t\t\t\tstopStepping();\n\t\t\t\t} else {\n\t\t\t\t\tsteppingRef.current.timeout = setTimeout(() => {\n\t\t\t\t\t\tsteppingRef.current.currentDelay = steppingRef.current.speedDelay;\n\t\t\t\t\t\tperformStep(direction);\n\t\t\t\t\t}, steppingRef.current.currentDelay);\n\t\t\t\t}\n\t\t\t},\n\t\t\t[getValueAsNumber, maxValue, minValue, onChange, step, stopStepping, value]\n\t\t);\n\n\t\tconst setInputRef = useCallback(\n\t\t\t(element: HTMLInputElement | null) => {\n\t\t\t\tinputElementRef.current = element;\n\t\t\t\tif (propInputRef) {\n\t\t\t\t\tpropInputRef(element);\n\t\t\t\t}\n\t\t\t},\n\t\t\t[propInputRef]\n\t\t);\n\n\t\tconst handleChange = useCallback(\n\t\t\t(event: ChangeEvent<HTMLInputElement>) => {\n\t\t\t\tif (onChange) {\n\t\t\t\t\tconst data: InputChangeData = {\n\t\t\t\t\t\tvalue: event.target.value,\n\t\t\t\t\t};\n\n\t\t\t\t\tif (variant === COUNTER) {\n\t\t\t\t\t\tdata.number = Number(data.value);\n\t\t\t\t\t}\n\n\t\t\t\t\tonChange(event, data);\n\t\t\t\t}\n\t\t\t},\n\t\t\t[onChange, variant]\n\t\t);\n\n\t\tconst getCounterButtonIcon = (direction: typeof INCREMENT | typeof DECREMENT) => {\n\t\t\tconst currentValue = getValueAsNumber();\n\t\t\tlet isDisabled = false;\n\n\t\t\tif (\n\t\t\t\tdisabled ||\n\t\t\t\t(direction === INCREMENT && maxValue !== undefined && currentValue >= maxValue) ||\n\t\t\t\t(direction === DECREMENT && minValue !== undefined && currentValue <= minValue)\n\t\t\t) {\n\t\t\t\tisDisabled = true;\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<Button\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\ticon: assistiveText[direction.toLowerCase() as 'decrement' | 'increment'],\n\t\t\t\t\t}}\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-button_icon-small',\n\t\t\t\t\t\t`slds-input__button_${direction.toLowerCase()}`\n\t\t\t\t\t)}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\ticonName={direction === DECREMENT ? 'ban' : 'new'}\n\t\t\t\t\tonKeyDown={(event: KeyboardEvent) => {\n\t\t\t\t\t\tif (event.keyCode === 13) {\n\t\t\t\t\t\t\tperformStep(direction, event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t\tonKeyUp={stopStepping}\n\t\t\t\t\tonMouseDown={(event: MouseEvent) => {\n\t\t\t\t\t\tperformStep(direction, event);\n\t\t\t\t\t}}\n\t\t\t\t\tonMouseLeave={stopStepping}\n\t\t\t\t\tonMouseUp={stopStepping}\n\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t/>\n\t\t\t);\n\t\t};\n\n\t\t// Compute icon rendering\n\t\tlet iconLeft: ReactNode = null;\n\t\tlet iconRight: ReactNode = null;\n\n\t\tif (propIconLeft) {\n\t\t\ticonLeft = React.isValidElement(propIconLeft)\n\t\t\t\t? React.cloneElement(propIconLeft as React.ReactElement<{ iconPosition?: string }>, {\n\t\t\t\t\t\ticonPosition: 'left',\n\t\t\t\t })\n\t\t\t\t: propIconLeft;\n\t\t} else if (variant === COUNTER && !isStatic && !readOnly) {\n\t\t\ticonLeft = getCounterButtonIcon(DECREMENT);\n\t\t}\n\n\t\tif (propIconRight) {\n\t\t\ticonRight = React.isValidElement(propIconRight)\n\t\t\t\t? React.cloneElement(propIconRight as React.ReactElement<{ iconPosition?: string }>, {\n\t\t\t\t\t\ticonPosition: 'right',\n\t\t\t\t })\n\t\t\t\t: propIconRight;\n\t\t} else if (variant === COUNTER && !isStatic && !readOnly) {\n\t\t\ticonRight = getCounterButtonIcon(INCREMENT);\n\t\t}\n\n\t\tconst hasRenderedLabel = label || assistiveText?.label;\n\t\tconst inputRefToUse = variant === COUNTER ? setInputRef : propInputRef;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\t'slds-form-element',\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-has-error': errorText,\n\t\t\t\t\t},\n\t\t\t\t\tclassName\n\t\t\t\t)}\n\t\t\t\tstyle={styleContainer}\n\t\t\t\tref={ref}\n\t\t\t>\n\t\t\t\t<Label\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\thtmlFor={isStatic ? undefined : id}\n\t\t\t\t\tlabel={label}\n\t\t\t\t\trequired={required}\n\t\t\t\t\tvariant={isStatic ? 'static' : 'base'}\n\t\t\t\t/>\n\t\t\t\t{fieldLevelHelpTooltip && hasRenderedLabel ? (\n\t\t\t\t\t<FieldLevelHelpTooltip\n\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\ttriggerLearnMoreIcon: assistiveText.fieldLevelHelpButton,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tfieldLevelHelpTooltip={fieldLevelHelpTooltip}\n\t\t\t\t\t/>\n\t\t\t\t) : null}\n\t\t\t\t<InnerInput\n\t\t\t\t\taria-activedescendant={ariaActivedescendant}\n\t\t\t\t\taria-autocomplete={ariaAutocomplete}\n\t\t\t\t\taria-controls={ariaControls}\n\t\t\t\t\taria-labelledby={ariaLabelledby}\n\t\t\t\t\taria-describedby={describedby}\n\t\t\t\t\taria-expanded={ariaExpanded}\n\t\t\t\t\taria-haspopup={ariaHaspopup}\n\t\t\t\t\taria-owns={ariaOwns}\n\t\t\t\t\taria-required={ariaRequired}\n\t\t\t\t\tautoComplete={autoComplete}\n\t\t\t\t\tclassName={classNames({\n\t\t\t\t\t\t'slds-input_counter': variant === COUNTER,\n\t\t\t\t\t\t'slds-p-horizontal_none': variant === COUNTER && readOnly,\n\t\t\t\t\t})}\n\t\t\t\t\tcontainerProps={{\n\t\t\t\t\t\tclassName: 'slds-form-element__control',\n\t\t\t\t\t}}\n\t\t\t\t\tdefaultValue={defaultValue}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tfixedTextLeft={fixedTextLeft}\n\t\t\t\t\tfixedTextRight={fixedTextRight}\n\t\t\t\t\thasSpinner={hasSpinner}\n\t\t\t\t\tid={id}\n\t\t\t\t\ticonLeft={iconLeft}\n\t\t\t\t\ticonRight={iconRight}\n\t\t\t\t\tinlineEditTrigger={inlineEditTrigger}\n\t\t\t\t\tisStatic={isStatic}\n\t\t\t\t\tminLength={minLength}\n\t\t\t\t\tminValue={minValue}\n\t\t\t\t\tmaxLength={maxLength}\n\t\t\t\t\tmaxValue={maxValue}\n\t\t\t\t\tname={name}\n\t\t\t\t\tonBlur={onBlur}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tonClick={onClick}\n\t\t\t\t\tonFocus={onFocus}\n\t\t\t\t\tonInput={onInput}\n\t\t\t\t\tonInvalid={onInvalid}\n\t\t\t\t\tonKeyDown={onKeyDown}\n\t\t\t\t\tonKeyPress={onKeyPress}\n\t\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t\t\tonSelect={onSelect}\n\t\t\t\t\tonSubmit={onSubmit}\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\tinputRef={inputRefToUse}\n\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\trequired={required}\n\t\t\t\t\trole={role}\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\ttype={variant === COUNTER ? 'number' : type}\n\t\t\t\t\tvalue={value}\n\t\t\t\t\tvariant={variant}\n\t\t\t\t\tstep={step}\n\t\t\t\t\ttabIndex={tabIndex}\n\t\t\t\t\tstyle={styleInput}\n\t\t\t\t/>\n\t\t\t\t{inlineHelpText && (\n\t\t\t\t\t<div id={inlineHelpId} className=\"slds-form-element__help\">\n\t\t\t\t\t\t{inlineHelpText}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{errorText && (\n\t\t\t\t\t<div id={errorId} className=\"slds-form-element__help\">\n\t\t\t\t\t\t{errorText}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nInput.displayName = INPUT;\n\nexport default Input;\n"],"mappings":"wcA8BA,IAAM,EAAU,UACV,EAAY,YACZ,EAAY,YAwKZ,GAA2C,CAChD,UAAW,GAAG,EAAU,GAAG,IAC3B,UAAW,GAAG,EAAU,GAAG,GAC5B,EAOM,GAAA,EAAQ,EAAA,WAAA,EAEZ,CACC,wBAAyB,EACzB,oBAAqB,EACrB,gBAAiB,GACjB,mBAAoB,GACpB,gBAAiB,GACjB,gBAAiB,EACjB,kBAAmB,EACnB,YAAa,EACb,gBAAiB,EACjB,cAAe,GACf,gBACA,YACA,aACA,gBACA,WAAW,GACX,YACA,wBACA,iBACA,kBACA,cAAa,GACb,SAAU,EACV,UAAW,EACX,GAAI,GACJ,iBACA,qBACA,SAAU,EACV,WAAW,GACX,QACA,YACA,WACA,YACA,WACA,OACA,SACA,WACA,UACA,UACA,UACA,YACA,YACA,aACA,WACA,YACA,YACA,eACA,WAAW,GACX,WAAW,GACX,QACA,OACA,YACA,kBACA,cACA,QAAO,OACP,QACA,UAAU,QAEX,KACI,CACJ,IAAM,IAAA,EAAc,EAAA,MAAA,CAAM,EACpB,IAAA,EAAmB,EAAA,MAAA,CAAM,EACzB,IAAA,EAAwB,EAAA,MAAA,CAAM,EAC9B,EAAK,IAAU,GACf,GAAU,EAAY,GAAmB,IAAA,GACzC,GAAe,EAAiB,GAAwB,IAAA,GACxD,GACL,CAAC,GAAiB,GAAc,EAAO,CAAC,CAAC,OAAQ,GAAmB,EAAQ,CAAE,CAAC,CAAC,KAAK,GAAG,GACxF,IAAA,GAEK,GAAA,EAAkB,EAAA,OAAA,CAAgC,IAAI,EACtD,GAAA,EAAc,EAAA,OAAA,CAAO,CAC1B,aAAc,IACd,aA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AAS,EAAW,IAAA,GAAY,EACzB,QACG,WACV,QAAS,EAAW,SAAW,MAC/B,CAAA,EACA,GAAyB,IACzB,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,cAAe,CACd,qBAAsB,EAAc,oBACrC,EACuB,uBACvB,CAAA,EACE,MACJ,EAAA,EAAA,IAAA,CAAC,EAAA,QAAD,CACC,wBAAuB,EACvB,oBAAmB,EACnB,gBAAe,GACf,kBAAiB,EACjB,mBAAkB,GAClB,gBAAe,GACf,gBAAe,EACf,YAAW,EACX,gBAAe,EACD,gBACd,WAAA,EAAW,EAAA,QAAA,CAAW,CACrB,qBAAsB,IAAY,EAClC,yBAA0B,IAAY,GAAW,CAClD,CAAC,EACD,eAAgB,CACf,UAAW,4BACZ,EACc,gBACJ,WACK,iBACC,kBACJ,cACR,KACM,WACC,YACQ,qBACT,WACC,YACD,WACC,YACD,WACJ,OACE,SACR,SAAU,GACD,UACA,UACA,UACE,YACA,YACC,aACH,WACC,YACA,YACG,eACb,SAAU,GACA,WACA,WACJ,QACS,gBACf,KAAM,IAAY,EAAU,SAAW,GAChC,QACE,UACH,OACI,YACV,MAAO,EACP,CAAA,EACA,IACA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,GAAI,GAAc,UAAU,0BAC/B,SAAA,CACG,CAAA,EAEL,IACA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,GAAI,GAAS,UAAU,0BAC1B,SAAA,CACG,CAAA,EAEL,EACG,GAEP,CACD,EAEA,EAAM,YAAc,EAAA"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/input/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseId,\n\tuseRef,\n\tuseCallback,\n\tforwardRef,\n\ttype ReactNode,\n\ttype ReactElement,\n\ttype ChangeEvent,\n\ttype FocusEvent,\n\ttype KeyboardEvent,\n\ttype MouseEvent,\n\ttype FormEvent,\n\ttype CSSProperties,\n\ttype AriaAttributes,\n} from 'react';\nimport classNames from 'classnames';\n\nimport Button from '../button';\nimport InnerInput from './private/inner-input';\nimport Label from '../utilities/label/index';\nimport FieldLevelHelpTooltip from '../tooltip/private/field-level-help-tooltip';\nimport type { TooltipProps } from '../tooltip/index';\n\nimport checkProps from './check-props';\nimport { INPUT } from '../../utilities/constants';\nimport componentDoc from './component.json';\n\nconst COUNTER = 'counter';\nconst DECREMENT = 'Decrement';\nconst INCREMENT = 'Increment';\n\n/**\n * Input type options\n */\nexport type InputType =\n\t| 'text'\n\t| 'password'\n\t| 'datetime'\n\t| 'datetime-local'\n\t| 'date'\n\t| 'month'\n\t| 'time'\n\t| 'week'\n\t| 'number'\n\t| 'email'\n\t| 'url'\n\t| 'search'\n\t| 'tel'\n\t| 'color';\n\n/**\n * Input variant options\n */\nexport type InputVariant = 'base' | 'counter';\n\n/**\n * Assistive text for Input accessibility\n */\nexport interface InputAssistiveText {\n\t/** Visually hidden label for screen readers */\n\tlabel?: string;\n\t/** Text for loading spinner icon */\n\tspinner?: string;\n\t/** Text for decrement button in counter variant */\n\tdecrement?: string;\n\t/** Text for increment button in counter variant */\n\tincrement?: string;\n\t/** Text for field level help button */\n\tfieldLevelHelpButton?: string;\n}\n\n/**\n * Data passed to onChange callback\n */\nexport interface InputChangeData {\n\t/** The input value as string */\n\tvalue: string;\n\t/** The input value as number (only for counter variant) */\n\tnumber?: number;\n}\n\n/**\n * Props for the Input component\n */\nexport interface InputProps {\n\t/** ID of the currently active child in a composite widget */\n\t'aria-activedescendant'?: string;\n\t/** Indicates if suggestions complete the textbox input */\n\t'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';\n\t/** ID of element controlled by this input */\n\t'aria-controls'?: string;\n\t/** ID of element(s) that describe this input */\n\t'aria-describedby'?: string;\n\t/** Whether a collapsible region is expanded */\n\t'aria-expanded'?: boolean;\n\t/** Indicates the input has a popup */\n\t'aria-haspopup'?: AriaAttributes['aria-haspopup'];\n\t/** ID of element(s) that label this input */\n\t'aria-labelledby'?: string;\n\t/** ID of element(s) owned by this input */\n\t'aria-owns'?: string;\n\t/** Whether input is required */\n\t'aria-required'?: boolean;\n\t/** Assistive text for accessibility */\n\tassistiveText?: InputAssistiveText;\n\t/** Browser autocomplete attribute */\n\tautoComplete?: string;\n\t/** Elements added after the input */\n\tchildren?: ReactNode;\n\t/** CSS classes for the outer container */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Initial value for uncontrolled usage */\n\tdefaultValue?: string | number;\n\t/** Disables the input */\n\tdisabled?: boolean;\n\t/** Error message (highlights input as error) */\n\terrorText?: ReactNode;\n\t/** Tooltip component for field-level help */\n\tfieldLevelHelpTooltip?: ReactElement<TooltipProps> | null;\n\t/** Fixed text/node on the left */\n\tfixedTextLeft?: ReactNode;\n\t/** Fixed text/node on the right */\n\tfixedTextRight?: ReactNode;\n\t/** Shows loading spinner inside input */\n\thasSpinner?: boolean;\n\t/** Left-aligned icon (InputIcon instance) */\n\ticonLeft?: ReactNode;\n\t/** Right-aligned icon (InputIcon instance) */\n\ticonRight?: ReactNode;\n\t/** HTML id attribute */\n\tid?: string;\n\t/** Help text below the input */\n\tinlineHelpText?: ReactNode;\n\t/** Inline edit trigger element */\n\tinlineEditTrigger?: ReactNode;\n\t/** Ref callback for the input element */\n\tinputRef?: (element: HTMLInputElement | null) => void;\n\t/** Displays value statically (static input pattern) */\n\tisStatic?: boolean;\n\t/** Label text above input */\n\tlabel?: string;\n\t/** Maximum character length */\n\tmaxLength?: string | number;\n\t/** Maximum value for counter variant */\n\tmaxValue?: number;\n\t/** Minimum character length */\n\tminLength?: string | number;\n\t/** Minimum value for counter variant */\n\tminValue?: number;\n\t/** Form parameter name */\n\tname?: string;\n\t/** Blur event handler */\n\tonBlur?: (event: FocusEvent<HTMLInputElement>) => void;\n\t/** Change event handler */\n\tonChange?: (event: ChangeEvent<HTMLInputElement> | MouseEvent | KeyboardEvent, data: InputChangeData) => void;\n\t/** Click event handler */\n\tonClick?: (event: MouseEvent<HTMLInputElement>) => void;\n\t/** Focus event handler */\n\tonFocus?: (event: FocusEvent<HTMLInputElement>) => void;\n\t/** Input event handler */\n\tonInput?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Invalid event handler */\n\tonInvalid?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Key down event handler */\n\tonKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Key press event handler */\n\tonKeyPress?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Key up event handler */\n\tonKeyUp?: (event: KeyboardEvent<HTMLInputElement>) => void;\n\t/** Select event handler */\n\tonSelect?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Submit event handler */\n\tonSubmit?: (event: FormEvent<HTMLInputElement>) => void;\n\t/** Placeholder text */\n\tplaceholder?: string;\n\t/** Makes input read-only */\n\treadOnly?: boolean;\n\t/** Highlights as required field */\n\trequired?: boolean;\n\t/** ARIA role */\n\trole?: string;\n\t/** Step size for counter variant */\n\tstep?: number;\n\t/** Tab index */\n\ttabIndex?: string | number;\n\t/** Custom styles for container */\n\tstyleContainer?: CSSProperties;\n\t/** Custom styles for input element */\n\tstyleInput?: CSSProperties;\n\t/** Input type */\n\ttype?: InputType;\n\t/** Controlled value */\n\tvalue?: string | number;\n\t/** Input variant */\n\tvariant?: InputVariant;\n}\n\nconst defaultAssistiveText: InputAssistiveText = {\n\tdecrement: `${DECREMENT} ${COUNTER}`,\n\tincrement: `${INCREMENT} ${COUNTER}`,\n};\n\n/**\n * The HTML `input` with a label and error messaging.\n *\n * @see https://lightningdesignsystem.com/components/input/\n */\nconst Input = forwardRef<HTMLDivElement, InputProps>(\n\t(\n\t\t{\n\t\t\t'aria-activedescendant': ariaActivedescendant,\n\t\t\t'aria-autocomplete': ariaAutocomplete,\n\t\t\t'aria-controls': ariaControls,\n\t\t\t'aria-describedby': ariaDescribedby,\n\t\t\t'aria-expanded': ariaExpanded,\n\t\t\t'aria-haspopup': ariaHaspopup,\n\t\t\t'aria-labelledby': ariaLabelledby,\n\t\t\t'aria-owns': ariaOwns,\n\t\t\t'aria-required': ariaRequired,\n\t\t\tassistiveText: propAssistiveText,\n\t\t\tautoComplete,\n\t\t\tchildren,\n\t\t\tclassName,\n\t\t\tdefaultValue,\n\t\t\tdisabled = false,\n\t\t\terrorText,\n\t\t\tfieldLevelHelpTooltip,\n\t\t\tfixedTextLeft,\n\t\t\tfixedTextRight,\n\t\t\thasSpinner = false,\n\t\t\ticonLeft: propIconLeft,\n\t\t\ticonRight: propIconRight,\n\t\t\tid: propId,\n\t\t\tinlineHelpText,\n\t\t\tinlineEditTrigger,\n\t\t\tinputRef: propInputRef,\n\t\t\tisStatic = false,\n\t\t\tlabel,\n\t\t\tmaxLength,\n\t\t\tmaxValue,\n\t\t\tminLength,\n\t\t\tminValue,\n\t\t\tname,\n\t\t\tonBlur,\n\t\t\tonChange,\n\t\t\tonClick,\n\t\t\tonFocus,\n\t\t\tonInput,\n\t\t\tonInvalid,\n\t\t\tonKeyDown,\n\t\t\tonKeyPress,\n\t\t\tonKeyUp,\n\t\t\tonSelect,\n\t\t\tonSubmit,\n\t\t\tplaceholder,\n\t\t\treadOnly = false,\n\t\t\trequired = false,\n\t\t\trole,\n\t\t\tstep,\n\t\t\ttabIndex,\n\t\t\tstyleContainer,\n\t\t\tstyleInput,\n\t\t\ttype = 'text',\n\t\t\tvalue,\n\t\t\tvariant = 'base',\n\t\t},\n\t\tref\n\t) => {\n\t\tconst generatedId = useId();\n\t\tconst generatedErrorId = useId();\n\t\tconst generatedInlineHelpId = useId();\n\t\tconst id = propId || generatedId;\n\t\tconst errorId = errorText ? generatedErrorId : undefined;\n\t\tconst inlineHelpId = inlineHelpText ? generatedInlineHelpId : undefined;\n\t\tconst describedby =\n\t\t\t[ariaDescribedby, inlineHelpId, errorId].filter((v): v is string => Boolean(v)).join(' ') ||\n\t\t\tundefined;\n\n\t\tconst inputElementRef = useRef<HTMLInputElement | null>(null);\n\t\tconst steppingRef = useRef({\n\t\t\tcurrentDelay: 500,\n\t\t\tinitialDelay: 500,\n\t\t\tspeedDelay: 75,\n\t\t\ttimeout: null as ReturnType<typeof setTimeout> | null,\n\t\t});\n\t\tconst lastStepEventRef = useRef<MouseEvent | KeyboardEvent | null>(null);\n\n\t\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\n\t\t// Check props in development\n\t\tcheckProps(INPUT, {\n\t\t\t'aria-activedescendant': ariaActivedescendant,\n\t\t\t'aria-autocomplete': ariaAutocomplete,\n\t\t\t'aria-controls': ariaControls,\n\t\t\t'aria-describedby': ariaDescribedby,\n\t\t\t'aria-expanded': ariaExpanded,\n\t\t\t'aria-haspopup': ariaHaspopup,\n\t\t\t'aria-labelledby': ariaLabelledby,\n\t\t\t'aria-owns': ariaOwns,\n\t\t\t'aria-required': ariaRequired,\n\t\t\tassistiveText,\n\t\t\tautoComplete,\n\t\t\tchildren,\n\t\t\tclassName,\n\t\t\tdefaultValue,\n\t\t\tdisabled,\n\t\t\terrorText,\n\t\t\tfieldLevelHelpTooltip,\n\t\t\tfixedTextLeft,\n\t\t\tfixedTextRight,\n\t\t\thasSpinner,\n\t\t\ticonLeft: propIconLeft,\n\t\t\ticonRight: propIconRight,\n\t\t\tid,\n\t\t\tinlineHelpText,\n\t\t\tinlineEditTrigger,\n\t\t\tinputRef: propInputRef,\n\t\t\tisStatic,\n\t\t\tlabel,\n\t\t\tmaxLength,\n\t\t\tmaxValue,\n\t\t\tminLength,\n\t\t\tminValue,\n\t\t\tname,\n\t\t\tonBlur,\n\t\t\tonChange,\n\t\t\tonClick,\n\t\t\tonFocus,\n\t\t\tonInput,\n\t\t\tonInvalid,\n\t\t\tonKeyDown,\n\t\t\tonKeyPress,\n\t\t\tonKeyUp,\n\t\t\tonSelect,\n\t\t\tonSubmit,\n\t\t\tplaceholder,\n\t\t\treadOnly,\n\t\t\trequired,\n\t\t\trole,\n\t\t\tstep,\n\t\t\ttabIndex,\n\t\t\tstyleContainer,\n\t\t\tstyleInput,\n\t\t\ttype,\n\t\t\tvalue,\n\t\t\tvariant,\n\t\t}, componentDoc);\n\n\t\tconst getValueAsNumber = useCallback((): number => {\n\t\t\tif (value !== undefined) {\n\t\t\t\treturn Number(value);\n\t\t\t}\n\t\t\tif (inputElementRef.current) {\n\t\t\t\treturn Number(inputElementRef.current.value);\n\t\t\t}\n\t\t\treturn 0;\n\t\t}, [value]);\n\n\t\tconst stopStepping = useCallback(() => {\n\t\t\tif (steppingRef.current.timeout) {\n\t\t\t\tclearTimeout(steppingRef.current.timeout);\n\t\t\t}\n\t\t\tsteppingRef.current.currentDelay = steppingRef.current.initialDelay;\n\t\t\tlastStepEventRef.current = null;\n\t\t}, []);\n\n\t\tconst performStep = useCallback(\n\t\t\t(direction: typeof INCREMENT | typeof DECREMENT, event?: MouseEvent | KeyboardEvent) => {\n\t\t\t\tif (steppingRef.current.timeout) {\n\t\t\t\t\tclearTimeout(steppingRef.current.timeout);\n\t\t\t\t}\n\n\t\t\t\tif (event) {\n\t\t\t\t\tlastStepEventRef.current = event;\n\t\t\t\t}\n\t\t\t\tconst stepEvent = event ?? lastStepEventRef.current ?? undefined;\n\n\t\t\t\tconst stepSize = step !== undefined ? Number(step) : 1;\n\t\t\t\tlet currentValue = getValueAsNumber();\n\t\t\t\tlet valueChanged = false;\n\n\t\t\t\tif (direction === DECREMENT && maxValue !== undefined && currentValue > maxValue) {\n\t\t\t\t\tcurrentValue = Number(maxValue);\n\t\t\t\t\tvalueChanged = true;\n\t\t\t\t} else if (direction === INCREMENT && minValue !== undefined && currentValue < minValue) {\n\t\t\t\t\tcurrentValue = Number(minValue);\n\t\t\t\t\tvalueChanged = true;\n\t\t\t\t} else {\n\t\t\t\t\tconst decimalPlaces =\n\t\t\t\t\t\tString(stepSize).search(/\\./) >= 0 ? String(stepSize).split('.')[1].length : 0;\n\t\t\t\t\tlet minOverflow = 0;\n\n\t\t\t\t\tif (minValue !== undefined) {\n\t\t\t\t\t\tminOverflow = (currentValue - minValue) % stepSize;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (minOverflow > 0) {\n\t\t\t\t\t\tcurrentValue =\n\t\t\t\t\t\t\tdirection === DECREMENT\n\t\t\t\t\t\t\t\t? currentValue - minOverflow\n\t\t\t\t\t\t\t\t: currentValue + (stepSize - minOverflow);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrentValue = direction === DECREMENT ? currentValue - stepSize : currentValue + stepSize;\n\t\t\t\t\t}\n\n\t\t\t\t\tcurrentValue = Number(currentValue.toFixed(decimalPlaces));\n\n\t\t\t\t\tif (\n\t\t\t\t\t\t!(maxValue !== undefined && currentValue > maxValue) &&\n\t\t\t\t\t\t!(minValue !== undefined && currentValue < minValue)\n\t\t\t\t\t) {\n\t\t\t\t\t\tvalueChanged = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (valueChanged) {\n\t\t\t\t\tif (value === undefined && inputElementRef.current) {\n\t\t\t\t\t\t// Uncontrolled mode\n\t\t\t\t\t\tinputElementRef.current.value = String(currentValue);\n\t\t\t\t\t}\n\t\t\t\t\tif (onChange && stepEvent) {\n\t\t\t\t\t\tonChange(stepEvent, {\n\t\t\t\t\t\t\tnumber: currentValue,\n\t\t\t\t\t\t\tvalue: String(currentValue),\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\t(direction === INCREMENT && maxValue !== undefined && currentValue >= maxValue) ||\n\t\t\t\t\t(direction === DECREMENT && minValue !== undefined && currentValue <= minValue)\n\t\t\t\t) {\n\t\t\t\t\tstopStepping();\n\t\t\t\t} else {\n\t\t\t\t\tsteppingRef.current.timeout = setTimeout(() => {\n\t\t\t\t\t\tsteppingRef.current.currentDelay = steppingRef.current.speedDelay;\n\t\t\t\t\t\tperformStep(direction);\n\t\t\t\t\t}, steppingRef.current.currentDelay);\n\t\t\t\t}\n\t\t\t},\n\t\t\t[getValueAsNumber, maxValue, minValue, onChange, step, stopStepping, value]\n\t\t);\n\n\t\tconst setInputRef = useCallback(\n\t\t\t(element: HTMLInputElement | null) => {\n\t\t\t\tinputElementRef.current = element;\n\t\t\t\tif (propInputRef) {\n\t\t\t\t\tpropInputRef(element);\n\t\t\t\t}\n\t\t\t},\n\t\t\t[propInputRef]\n\t\t);\n\n\t\tconst handleChange = useCallback(\n\t\t\t(event: ChangeEvent<HTMLInputElement>) => {\n\t\t\t\tif (onChange) {\n\t\t\t\t\tconst data: InputChangeData = {\n\t\t\t\t\t\tvalue: event.target.value,\n\t\t\t\t\t};\n\n\t\t\t\t\tif (variant === COUNTER) {\n\t\t\t\t\t\tdata.number = Number(data.value);\n\t\t\t\t\t}\n\n\t\t\t\t\tonChange(event, data);\n\t\t\t\t}\n\t\t\t},\n\t\t\t[onChange, variant]\n\t\t);\n\n\t\tconst getCounterButtonIcon = (direction: typeof INCREMENT | typeof DECREMENT) => {\n\t\t\tconst currentValue = getValueAsNumber();\n\t\t\tlet isDisabled = false;\n\n\t\t\tif (\n\t\t\t\tdisabled ||\n\t\t\t\t(direction === INCREMENT && maxValue !== undefined && currentValue >= maxValue) ||\n\t\t\t\t(direction === DECREMENT && minValue !== undefined && currentValue <= minValue)\n\t\t\t) {\n\t\t\t\tisDisabled = true;\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<Button\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\ticon: assistiveText[direction.toLowerCase() as 'decrement' | 'increment'],\n\t\t\t\t\t}}\n\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t'slds-button_icon-small',\n\t\t\t\t\t\t`slds-input__button_${direction.toLowerCase()}`\n\t\t\t\t\t)}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\ticonCategory=\"utility\"\n\t\t\t\t\ticonName={direction === DECREMENT ? 'ban' : 'new'}\n\t\t\t\t\tonKeyDown={(event: KeyboardEvent) => {\n\t\t\t\t\t\tif (event.keyCode === 13) {\n\t\t\t\t\t\t\tperformStep(direction, event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t\tonKeyUp={stopStepping}\n\t\t\t\t\tonMouseDown={(event: MouseEvent) => {\n\t\t\t\t\t\tperformStep(direction, event);\n\t\t\t\t\t}}\n\t\t\t\t\tonMouseLeave={stopStepping}\n\t\t\t\t\tonMouseUp={stopStepping}\n\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t/>\n\t\t\t);\n\t\t};\n\n\t\t// Compute icon rendering\n\t\tlet iconLeft: ReactNode = null;\n\t\tlet iconRight: ReactNode = null;\n\n\t\tif (propIconLeft) {\n\t\t\ticonLeft = React.isValidElement(propIconLeft)\n\t\t\t\t? React.cloneElement(propIconLeft as React.ReactElement<{ iconPosition?: string }>, {\n\t\t\t\t\t\ticonPosition: 'left',\n\t\t\t\t })\n\t\t\t\t: propIconLeft;\n\t\t} else if (variant === COUNTER && !isStatic && !readOnly) {\n\t\t\ticonLeft = getCounterButtonIcon(DECREMENT);\n\t\t}\n\n\t\tif (propIconRight) {\n\t\t\ticonRight = React.isValidElement(propIconRight)\n\t\t\t\t? React.cloneElement(propIconRight as React.ReactElement<{ iconPosition?: string }>, {\n\t\t\t\t\t\ticonPosition: 'right',\n\t\t\t\t })\n\t\t\t\t: propIconRight;\n\t\t} else if (variant === COUNTER && !isStatic && !readOnly) {\n\t\t\ticonRight = getCounterButtonIcon(INCREMENT);\n\t\t}\n\n\t\tconst hasRenderedLabel = label || assistiveText?.label;\n\t\tconst inputRefToUse = variant === COUNTER ? setInputRef : propInputRef;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={classNames(\n\t\t\t\t\t'slds-form-element',\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-has-error': errorText,\n\t\t\t\t\t},\n\t\t\t\t\tclassName\n\t\t\t\t)}\n\t\t\t\tstyle={styleContainer}\n\t\t\t\tref={ref}\n\t\t\t>\n\t\t\t\t<Label\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\thtmlFor={isStatic ? undefined : id}\n\t\t\t\t\tlabel={label}\n\t\t\t\t\trequired={required}\n\t\t\t\t\tvariant={isStatic ? 'static' : 'base'}\n\t\t\t\t/>\n\t\t\t\t{fieldLevelHelpTooltip && hasRenderedLabel ? (\n\t\t\t\t\t<FieldLevelHelpTooltip\n\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\ttriggerLearnMoreIcon: assistiveText.fieldLevelHelpButton,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tfieldLevelHelpTooltip={fieldLevelHelpTooltip}\n\t\t\t\t\t/>\n\t\t\t\t) : null}\n\t\t\t\t<InnerInput\n\t\t\t\t\taria-activedescendant={ariaActivedescendant}\n\t\t\t\t\taria-autocomplete={ariaAutocomplete}\n\t\t\t\t\taria-controls={ariaControls}\n\t\t\t\t\taria-labelledby={ariaLabelledby}\n\t\t\t\t\taria-describedby={describedby}\n\t\t\t\t\taria-expanded={ariaExpanded}\n\t\t\t\t\taria-haspopup={ariaHaspopup}\n\t\t\t\t\taria-owns={ariaOwns}\n\t\t\t\t\taria-required={ariaRequired}\n\t\t\t\t\tautoComplete={autoComplete}\n\t\t\t\t\tclassName={classNames({\n\t\t\t\t\t\t'slds-input_counter': variant === COUNTER,\n\t\t\t\t\t\t'slds-p-horizontal_none': variant === COUNTER && readOnly,\n\t\t\t\t\t})}\n\t\t\t\t\tcontainerProps={{\n\t\t\t\t\t\tclassName: 'slds-form-element__control',\n\t\t\t\t\t}}\n\t\t\t\t\tdefaultValue={defaultValue}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tfixedTextLeft={fixedTextLeft}\n\t\t\t\t\tfixedTextRight={fixedTextRight}\n\t\t\t\t\thasSpinner={hasSpinner}\n\t\t\t\t\tid={id}\n\t\t\t\t\ticonLeft={iconLeft}\n\t\t\t\t\ticonRight={iconRight}\n\t\t\t\t\tinlineEditTrigger={inlineEditTrigger}\n\t\t\t\t\tisStatic={isStatic}\n\t\t\t\t\tminLength={minLength}\n\t\t\t\t\tminValue={minValue}\n\t\t\t\t\tmaxLength={maxLength}\n\t\t\t\t\tmaxValue={maxValue}\n\t\t\t\t\tname={name}\n\t\t\t\t\tonBlur={onBlur}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tonClick={onClick}\n\t\t\t\t\tonFocus={onFocus}\n\t\t\t\t\tonInput={onInput}\n\t\t\t\t\tonInvalid={onInvalid}\n\t\t\t\t\tonKeyDown={onKeyDown}\n\t\t\t\t\tonKeyPress={onKeyPress}\n\t\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t\t\tonSelect={onSelect}\n\t\t\t\t\tonSubmit={onSubmit}\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\tinputRef={inputRefToUse}\n\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\trequired={required}\n\t\t\t\t\trole={role}\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\ttype={variant === COUNTER ? 'number' : type}\n\t\t\t\t\tvalue={value}\n\t\t\t\t\tvariant={variant}\n\t\t\t\t\tstep={step}\n\t\t\t\t\ttabIndex={tabIndex}\n\t\t\t\t\tstyle={styleInput}\n\t\t\t\t/>\n\t\t\t\t{inlineHelpText && (\n\t\t\t\t\t<div id={inlineHelpId} className=\"slds-form-element__help\">\n\t\t\t\t\t\t{inlineHelpText}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{errorText && (\n\t\t\t\t\t<div id={errorId} className=\"slds-form-element__help\">\n\t\t\t\t\t\t{errorText}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nInput.displayName = INPUT;\n\nexport default Input;\n"],"mappings":"uiBA8BA,IAAM,EAAU,UACV,EAAY,YACZ,EAAY,YAwKZ,GAA2C,CAChD,UAAW,GAAG,EAAU,GAAG,IAC3B,UAAW,GAAG,EAAU,GAAG,GAC5B,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Ae,EACD,gBACd,WAAA,EAAW,EAAA,QAAA,CAAW,CACrB,qBAAsB,IAAY,EAClC,yBAA0B,IAAY,GAAW,CAClD,CAAC,EACD,eAAgB,CACf,UAAW,4BACZ,EACc,gBACJ,WACK,iBACC,kBACJ,cACR,KACM,WACC,YACQ,qBACT,WACC,YACD,WACC,YACD,WACJ,OACE,SACR,SAAU,GACD,UACA,UACA,UACE,YACA,YACC,aACH,WACC,YACA,YACG,eACb,SAAU,GACA,WACA,WACJ,QACS,gBACf,KAAM,IAAY,EAAU,SAAW,GAChC,QACE,UACH,OACI,YACV,MAAO,EACP,CAAA,EACA,IACA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,GAAI,GAAc,UAAU,0BAC/B,SAAA,CACG,CAAA,EAEL,IACA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,GAAI,GAAS,UAAU,0BAC1B,SAAA,CACG,CAAA,EAEL,EACG,GAEP,CACD,EAEA,EAAM,YAAc,EAAA"}
@@ -1,2 +1,2 @@
1
- const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a={base:`slds-media`,figure:`slds-media__figure`,body:`slds-media__body`},o=({body:e,canTruncate:t,className:n,figure:o,verticalCenter:s})=>(0,i.jsxs)(`div`,{className:(0,r.default)(a.base,{"slds-media_center":s,"slds-has-flexi-truncate":t},n),children:[o&&(0,i.jsx)(`div`,{className:a.figure,children:o}),(0,i.jsx)(`div`,{className:a.body,children:e})]});o.displayName=t.MEDIA_OBJECT,exports.cssClasses=a,exports.default=o;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utilities/constants.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a={base:`slds-media`,figure:`slds-media__figure`,body:`slds-media__body`},o=({body:e,canTruncate:t,className:n,figure:o,verticalCenter:s})=>(0,i.jsxs)(`div`,{className:(0,r.default)(a.base,{"slds-media_center":s,"slds-has-flexi-truncate":t},n),children:[o&&(0,i.jsx)(`div`,{className:a.figure,children:o}),(0,i.jsx)(`div`,{className:a.body,children:e})]});o.displayName=t.MEDIA_OBJECT,exports.cssClasses=a,exports.default=o;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/media-object/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { type ReactNode } from 'react';\nimport classnames from 'classnames';\nimport { MEDIA_OBJECT } from '../../utilities/constants';\n\n/**\n * CSS classes for MediaObject parts (for external DOM queries)\n */\nexport const cssClasses = {\n\tbase: 'slds-media',\n\tfigure: 'slds-media__figure',\n\tbody: 'slds-media__body',\n};\n\n/**\n * Props for the MediaObject component\n */\nexport interface MediaObjectProps {\n\t/** The body content (typically text like heading or paragraph) */\n\tbody?: ReactNode;\n\t/** Allow body to truncate in flexbox container */\n\tcanTruncate?: boolean;\n\t/** CSS classes for the container */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** The figure (optional visualization, usually an icon or image) */\n\tfigure?: ReactNode;\n\t/** Vertically center body with the middle of figure */\n\tverticalCenter?: boolean;\n}\n\n/**\n * When you need text and a figure next to each other, use a media object.\n * This is a fundamental layout pattern used throughout SLDS.\n */\nconst MediaObject = ({\n\tbody,\n\tcanTruncate,\n\tclassName,\n\tfigure,\n\tverticalCenter,\n}: MediaObjectProps): React.ReactElement => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classnames(\n\t\t\t\tcssClasses.base,\n\t\t\t\t{\n\t\t\t\t\t'slds-media_center': verticalCenter,\n\t\t\t\t\t'slds-has-flexi-truncate': canTruncate,\n\t\t\t\t},\n\t\t\t\tclassName as string\n\t\t\t)}\n\t\t>\n\t\t\t{figure && <div className={cssClasses.figure}>{figure}</div>}\n\t\t\t<div className={cssClasses.body}>{body}</div>\n\t\t</div>\n\t);\n};\n\nMediaObject.displayName = MEDIA_OBJECT;\n\nexport default MediaObject;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"2NAUA,IAAa,EAAa,CACzB,KAAM,aACN,OAAQ,qBACR,KAAM,kBACP,EAsBM,GAAe,CACpB,OACA,cACA,YACA,SACA,qBAGC,EAAA,EAAA,KAAA,CAAC,MAAD,CACC,WAAA,EAAW,EAAA,QAAA,CACV,EAAW,KACX,CACC,oBAAqB,EACrB,0BAA2B,CAC5B,EACA,CACD,EARD,SAAA,CAUE,IAAU,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAW,OAAS,SAAA,CAAY,CAAA,GAC3D,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAW,KAAO,SAAA,CAAU,CAAA,CACxC,IAIP,EAAY,YAAc,EAAA"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/media-object/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { type ReactNode } from 'react';\nimport classnames from 'classnames';\nimport { MEDIA_OBJECT } from '../../utilities/constants';\n\n/**\n * CSS classes for MediaObject parts (for external DOM queries)\n */\nexport const cssClasses = {\n\tbase: 'slds-media',\n\tfigure: 'slds-media__figure',\n\tbody: 'slds-media__body',\n};\n\n/**\n * Props for the MediaObject component\n */\nexport interface MediaObjectProps {\n\t/** The body content (typically text like heading or paragraph) */\n\tbody?: ReactNode;\n\t/** Allow body to truncate in flexbox container */\n\tcanTruncate?: boolean;\n\t/** CSS classes for the container */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** The figure (optional visualization, usually an icon or image) */\n\tfigure?: ReactNode;\n\t/** Vertically center body with the middle of figure */\n\tverticalCenter?: boolean;\n}\n\n/**\n * When you need text and a figure next to each other, use a media object.\n * This is a fundamental layout pattern used throughout SLDS.\n */\nconst MediaObject = ({\n\tbody,\n\tcanTruncate,\n\tclassName,\n\tfigure,\n\tverticalCenter,\n}: MediaObjectProps): React.ReactElement => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classnames(\n\t\t\t\tcssClasses.base,\n\t\t\t\t{\n\t\t\t\t\t'slds-media_center': verticalCenter,\n\t\t\t\t\t'slds-has-flexi-truncate': canTruncate,\n\t\t\t\t},\n\t\t\t\tclassName as string\n\t\t\t)}\n\t\t>\n\t\t\t{figure && <div className={cssClasses.figure}>{figure}</div>}\n\t\t\t<div className={cssClasses.body}>{body}</div>\n\t\t</div>\n\t);\n};\n\nMediaObject.displayName = MEDIA_OBJECT;\n\nexport default MediaObject;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],"mappings":"0TAUA,IAAa,EAAa,CACzB,KAAM,aACN,OAAQ,qBACR,KAAM,kBACP,EAsBM,GAAe,CACpB,OACA,cACA,YACA,SACA,qBAGC,EAAA,EAAA,KAAA,CAAC,MAAD,CACC,WAAA,EAAW,EAAA,QAAA,CACV,EAAW,KACX,CACC,oBAAqB,EACrB,0BAA2B,CAC5B,EACA,CACD,EARD,SAAA,CAUE,IAAU,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAW,OAAS,SAAA,CAAY,CAAA,GAC3D,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAW,KAAO,SAAA,CAAU,CAAA,CACxC,IAIP,EAAY,YAAc,EAAA"}
@@ -1,2 +1,2 @@
1
- require("../utilities/menu-list/item-label.cjs"),require("../utilities/menu-list/item.cjs");var e=require("./menu-dropdown.cjs").default;exports.default=e;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../utilities/menu-list/item-label.cjs"),t=require("../utilities/menu-list/item.cjs"),n=require("./menu-dropdown.cjs");var r=n.default;exports.DropdownNubbinPositions=n.DropdownNubbinPositions,exports.ListItem=t.default,exports.ListItemLabel=e.default,exports.default=r;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/menu-dropdown/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// MenuDropdown is now a React 19 compatible functional component\n// that handles click outside detection internally without react-onclickoutside\n\nimport MenuDropdown from './menu-dropdown';\n\nexport default MenuDropdown;\nexport type { MenuDropdownProps, MenuDropdownOption, DropdownNubbinPosition } from './menu-dropdown';\nexport { DropdownNubbinPositions, ListItem, ListItemLabel } from './menu-dropdown';\n\n"],"mappings":"4FAQA,IAAA,+BAAe,CAAA,CAAA"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../components/menu-dropdown/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// MenuDropdown is now a React 19 compatible functional component\n// that handles click outside detection internally without react-onclickoutside\n\nimport MenuDropdown from './menu-dropdown';\n\nexport default MenuDropdown;\nexport type { MenuDropdownProps, MenuDropdownOption, DropdownNubbinPosition } from './menu-dropdown';\nexport { DropdownNubbinPositions, ListItem, ListItemLabel } from './menu-dropdown';\n\n"],"mappings":"sOAQA,IAAA,EAAe,EAAA"}