@govtechsg/sgds-web-component 3.3.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (588) hide show
  1. package/base/card-element.d.ts +19 -0
  2. package/base/card-element.js +43 -2
  3. package/base/card-element.js.map +1 -1
  4. package/base/card.js +1 -1
  5. package/{src/base → base}/dropdown-element.d.ts +3 -1
  6. package/base/dropdown-element.js +2 -1
  7. package/base/dropdown-element.js.map +1 -1
  8. package/base/select-element.js +3 -1
  9. package/base/select-element.js.map +1 -1
  10. package/components/Breadcrumb/index.umd.js +3 -2
  11. package/components/Breadcrumb/index.umd.js.map +1 -1
  12. package/{src/components → components}/Breadcrumb/sgds-breadcrumb.d.ts +1 -1
  13. package/components/Breadcrumb/sgds-breadcrumb.js +1 -1
  14. package/components/Breadcrumb/sgds-breadcrumb.js.map +1 -1
  15. package/components/Card/card.js +1 -1
  16. package/components/Card/index.umd.js +83 -82
  17. package/components/Card/index.umd.js.map +1 -1
  18. package/{src/components → components}/Card/sgds-card.d.ts +4 -15
  19. package/components/Card/sgds-card.js +16 -56
  20. package/components/Card/sgds-card.js.map +1 -1
  21. package/components/Card/types.d.ts +3 -0
  22. package/components/ComboBox/combo-box.js +1 -1
  23. package/components/ComboBox/index.umd.js +18 -3
  24. package/components/ComboBox/index.umd.js.map +1 -1
  25. package/components/Datepicker/index.umd.js +17 -12
  26. package/components/Datepicker/index.umd.js.map +1 -1
  27. package/{src/components → components}/Datepicker/sgds-datepicker.d.ts +3 -2
  28. package/components/Datepicker/sgds-datepicker.js +15 -11
  29. package/components/Datepicker/sgds-datepicker.js.map +1 -1
  30. package/components/Dropdown/dropdown.js +1 -1
  31. package/components/Dropdown/index.umd.js +3 -2
  32. package/components/Dropdown/index.umd.js.map +1 -1
  33. package/components/IconCard/icon-card.js +6 -0
  34. package/components/IconCard/icon-card.js.map +1 -0
  35. package/components/IconCard/index.d.ts +6 -0
  36. package/components/IconCard/index.js +4 -0
  37. package/components/IconCard/index.js.map +1 -0
  38. package/components/IconCard/index.umd.js +4750 -0
  39. package/components/IconCard/index.umd.js.map +1 -0
  40. package/components/IconCard/sgds-icon-card.d.ts +24 -0
  41. package/components/IconCard/sgds-icon-card.js +83 -0
  42. package/components/IconCard/sgds-icon-card.js.map +1 -0
  43. package/components/ImageCard/image-card.js +6 -0
  44. package/components/ImageCard/image-card.js.map +1 -0
  45. package/components/ImageCard/index.d.ts +6 -0
  46. package/components/ImageCard/index.js +4 -0
  47. package/components/ImageCard/index.js.map +1 -0
  48. package/components/ImageCard/index.umd.js +4764 -0
  49. package/components/ImageCard/index.umd.js.map +1 -0
  50. package/components/ImageCard/sgds-image-card.d.ts +30 -0
  51. package/components/ImageCard/sgds-image-card.js +97 -0
  52. package/components/ImageCard/sgds-image-card.js.map +1 -0
  53. package/components/Mainnav/index.umd.js +5 -4
  54. package/components/Mainnav/index.umd.js.map +1 -1
  55. package/components/Mainnav/mainnav.js +1 -1
  56. package/components/Mainnav/sgds-mainnav-dropdown.js +1 -1
  57. package/components/Mainnav/sgds-mainnav-dropdown.js.map +1 -1
  58. package/components/Modal/index.umd.js +1 -1
  59. package/components/Modal/modal.js +1 -1
  60. package/components/OverflowMenu/index.js +5 -0
  61. package/components/OverflowMenu/index.js.map +1 -0
  62. package/components/OverflowMenu/index.umd.js +11130 -0
  63. package/components/OverflowMenu/index.umd.js.map +1 -0
  64. package/{src/internals → components}/OverflowMenu/sgds-overflow-menu.d.ts +3 -3
  65. package/{internals → components}/OverflowMenu/sgds-overflow-menu.js +3 -3
  66. package/components/OverflowMenu/sgds-overflow-menu.js.map +1 -0
  67. package/components/Select/index.umd.js +18 -3
  68. package/components/Select/index.umd.js.map +1 -1
  69. package/components/Select/select.js +1 -1
  70. package/components/ThumbnailCard/index.d.ts +6 -0
  71. package/components/ThumbnailCard/index.js +4 -0
  72. package/components/ThumbnailCard/index.js.map +1 -0
  73. package/components/ThumbnailCard/index.umd.js +4754 -0
  74. package/components/ThumbnailCard/index.umd.js.map +1 -0
  75. package/components/ThumbnailCard/sgds-thumbnail-card.d.ts +24 -0
  76. package/components/ThumbnailCard/sgds-thumbnail-card.js +87 -0
  77. package/components/ThumbnailCard/sgds-thumbnail-card.js.map +1 -0
  78. package/components/ThumbnailCard/thumbnail-card.js +6 -0
  79. package/components/ThumbnailCard/thumbnail-card.js.map +1 -0
  80. package/{src/components → components}/index.d.ts +4 -0
  81. package/components/index.js +4 -0
  82. package/components/index.js.map +1 -1
  83. package/components/index.umd.js +475 -208
  84. package/components/index.umd.js.map +1 -1
  85. package/{src/index.d.ts → index.d.ts} +4 -0
  86. package/index.js +4 -0
  87. package/index.js.map +1 -1
  88. package/index.umd.js +493 -222
  89. package/index.umd.js.map +1 -1
  90. package/package.json +1 -1
  91. package/react/base/card-element.cjs.js +42 -1
  92. package/react/base/card-element.cjs.js.map +1 -1
  93. package/react/base/card-element.js +43 -2
  94. package/react/base/card-element.js.map +1 -1
  95. package/react/base/card.cjs.js +1 -1
  96. package/react/base/card.js +1 -1
  97. package/react/base/dropdown-element.cjs.js +2 -1
  98. package/react/base/dropdown-element.cjs.js.map +1 -1
  99. package/react/base/dropdown-element.js +2 -1
  100. package/react/base/dropdown-element.js.map +1 -1
  101. package/react/base/select-element.cjs.js +3 -1
  102. package/react/base/select-element.cjs.js.map +1 -1
  103. package/react/base/select-element.js +3 -1
  104. package/react/base/select-element.js.map +1 -1
  105. package/react/components/Breadcrumb/sgds-breadcrumb.cjs.js +1 -1
  106. package/react/components/Breadcrumb/sgds-breadcrumb.cjs.js.map +1 -1
  107. package/react/components/Breadcrumb/sgds-breadcrumb.js +1 -1
  108. package/react/components/Breadcrumb/sgds-breadcrumb.js.map +1 -1
  109. package/react/components/Card/card.cjs.js +1 -1
  110. package/react/components/Card/card.js +1 -1
  111. package/react/components/Card/sgds-card.cjs.js +15 -55
  112. package/react/components/Card/sgds-card.cjs.js.map +1 -1
  113. package/react/components/Card/sgds-card.js +16 -56
  114. package/react/components/Card/sgds-card.js.map +1 -1
  115. package/react/components/ComboBox/combo-box.cjs.js +1 -1
  116. package/react/components/ComboBox/combo-box.js +1 -1
  117. package/react/components/Datepicker/sgds-datepicker.cjs.js +15 -11
  118. package/react/components/Datepicker/sgds-datepicker.cjs.js.map +1 -1
  119. package/react/components/Datepicker/sgds-datepicker.js +15 -11
  120. package/react/components/Datepicker/sgds-datepicker.js.map +1 -1
  121. package/react/components/Dropdown/dropdown.cjs.js +1 -1
  122. package/react/components/Dropdown/dropdown.js +1 -1
  123. package/react/components/IconCard/icon-card.cjs.js +11 -0
  124. package/react/components/IconCard/icon-card.cjs.js.map +1 -0
  125. package/react/components/IconCard/icon-card.js +7 -0
  126. package/react/components/IconCard/icon-card.js.map +1 -0
  127. package/react/components/IconCard/sgds-icon-card.cjs.js +89 -0
  128. package/react/components/IconCard/sgds-icon-card.cjs.js.map +1 -0
  129. package/react/components/IconCard/sgds-icon-card.js +84 -0
  130. package/react/components/IconCard/sgds-icon-card.js.map +1 -0
  131. package/react/components/ImageCard/image-card.cjs.js +11 -0
  132. package/react/components/ImageCard/image-card.cjs.js.map +1 -0
  133. package/react/components/ImageCard/image-card.js +7 -0
  134. package/react/components/ImageCard/image-card.js.map +1 -0
  135. package/react/components/ImageCard/sgds-image-card.cjs.js +103 -0
  136. package/react/components/ImageCard/sgds-image-card.cjs.js.map +1 -0
  137. package/react/components/ImageCard/sgds-image-card.js +98 -0
  138. package/react/components/ImageCard/sgds-image-card.js.map +1 -0
  139. package/react/components/Mainnav/mainnav.cjs.js +1 -1
  140. package/react/components/Mainnav/mainnav.js +1 -1
  141. package/react/components/Mainnav/sgds-mainnav-dropdown.cjs.js +1 -1
  142. package/react/components/Mainnav/sgds-mainnav-dropdown.cjs.js.map +1 -1
  143. package/react/components/Mainnav/sgds-mainnav-dropdown.js +1 -1
  144. package/react/components/Mainnav/sgds-mainnav-dropdown.js.map +1 -1
  145. package/react/components/Modal/modal.cjs.js +1 -1
  146. package/react/components/Modal/modal.js +1 -1
  147. package/react/{internals → components}/OverflowMenu/sgds-overflow-menu.cjs.js +3 -3
  148. package/react/components/OverflowMenu/sgds-overflow-menu.cjs.js.map +1 -0
  149. package/react/{internals → components}/OverflowMenu/sgds-overflow-menu.js +3 -3
  150. package/react/components/OverflowMenu/sgds-overflow-menu.js.map +1 -0
  151. package/react/components/Select/select.cjs.js +1 -1
  152. package/react/components/Select/select.js +1 -1
  153. package/react/components/ThumbnailCard/sgds-thumbnail-card.cjs.js +93 -0
  154. package/react/components/ThumbnailCard/sgds-thumbnail-card.cjs.js.map +1 -0
  155. package/react/components/ThumbnailCard/sgds-thumbnail-card.js +88 -0
  156. package/react/components/ThumbnailCard/sgds-thumbnail-card.js.map +1 -0
  157. package/react/components/ThumbnailCard/thumbnail-card.cjs.js +11 -0
  158. package/react/components/ThumbnailCard/thumbnail-card.cjs.js.map +1 -0
  159. package/react/components/ThumbnailCard/thumbnail-card.js +7 -0
  160. package/react/components/ThumbnailCard/thumbnail-card.js.map +1 -0
  161. package/react/icon-card/index.cjs.js +40 -0
  162. package/react/icon-card/index.cjs.js.map +1 -0
  163. package/react/icon-card/index.js +16 -0
  164. package/react/icon-card/index.js.map +1 -0
  165. package/react/image-card/index.cjs.js +40 -0
  166. package/react/image-card/index.cjs.js.map +1 -0
  167. package/react/image-card/index.js +16 -0
  168. package/react/image-card/index.js.map +1 -0
  169. package/react/index.cjs.js +78 -70
  170. package/react/index.cjs.js.map +1 -1
  171. package/{src/react → react}/index.d.ts +4 -0
  172. package/react/index.js +4 -0
  173. package/react/index.js.map +1 -1
  174. package/react/overflow-menu/index.cjs.js +40 -0
  175. package/react/overflow-menu/index.cjs.js.map +1 -0
  176. package/react/overflow-menu/index.js +16 -0
  177. package/react/overflow-menu/index.js.map +1 -0
  178. package/react/thumbnail-card/index.cjs.js +40 -0
  179. package/react/thumbnail-card/index.cjs.js.map +1 -0
  180. package/react/thumbnail-card/index.d.ts +2 -0
  181. package/react/thumbnail-card/index.js +16 -0
  182. package/react/thumbnail-card/index.js.map +1 -0
  183. package/react/toast/index.d.ts +2 -0
  184. package/react/toast-container/index.d.ts +2 -0
  185. package/react/tooltip/index.d.ts +2 -0
  186. package/react/utils/popper.cjs.js +20 -0
  187. package/react/utils/popper.cjs.js.map +1 -0
  188. package/react/utils/popper.js +16 -0
  189. package/react/utils/popper.js.map +1 -0
  190. package/utils/popper.d.ts +5 -0
  191. package/utils/popper.js +15 -0
  192. package/utils/popper.js.map +1 -0
  193. package/internals/OverflowMenu/sgds-overflow-menu.js.map +0 -1
  194. package/react/internals/OverflowMenu/sgds-overflow-menu.cjs.js.map +0 -1
  195. package/react/internals/OverflowMenu/sgds-overflow-menu.js.map +0 -1
  196. package/scripts/figma/sync-figma-to-tokens/__tests__/write-tokens-to-css-var.test.d.ts +0 -0
  197. package/scripts/figma/sync-figma-to-tokens/color.d.ts +0 -8
  198. package/scripts/figma/sync-figma-to-tokens/figma_api.d.ts +0 -8
  199. package/scripts/figma/sync-figma-to-tokens/sync-figma-to-tokens.d.ts +0 -1
  200. package/scripts/figma/sync-figma-to-tokens/token_export.d.ts +0 -5
  201. package/scripts/figma/sync-figma-to-tokens/token_types.d.ts +0 -52
  202. package/scripts/figma/sync-figma-to-tokens/utils.d.ts +0 -3
  203. package/scripts/figma/sync-figma-to-tokens/write-tokens-to-css-var.d.ts +0 -8
  204. package/src/base/card-element.d.ts +0 -8
  205. /package/{src/base → base}/button-element.d.ts +0 -0
  206. /package/{src/base → base}/dropdown-list-element.d.ts +0 -0
  207. /package/{src/base → base}/form-control-element.d.ts +0 -0
  208. /package/{src/base → base}/link-element.d.ts +0 -0
  209. /package/{src/base → base}/select-element.d.ts +0 -0
  210. /package/{src/base → base}/sgds-element.d.ts +0 -0
  211. /package/{src/components → components}/Accordion/index.d.ts +0 -0
  212. /package/{src/components → components}/Accordion/sgds-accordion-item.d.ts +0 -0
  213. /package/{src/components → components}/Accordion/sgds-accordion.d.ts +0 -0
  214. /package/{src/components → components}/Alert/index.d.ts +0 -0
  215. /package/{src/components → components}/Alert/sgds-alert-link.d.ts +0 -0
  216. /package/{src/components → components}/Alert/sgds-alert.d.ts +0 -0
  217. /package/{src/components → components}/Badge/index.d.ts +0 -0
  218. /package/{src/components → components}/Badge/sgds-badge.d.ts +0 -0
  219. /package/{src/components → components}/Breadcrumb/index.d.ts +0 -0
  220. /package/{src/components → components}/Breadcrumb/sgds-breadcrumb-item.d.ts +0 -0
  221. /package/{src/components → components}/Button/index.d.ts +0 -0
  222. /package/{src/components → components}/Button/sgds-button.d.ts +0 -0
  223. /package/{src/components → components}/Card/index.d.ts +0 -0
  224. /package/{src/components → components}/Checkbox/index.d.ts +0 -0
  225. /package/{src/components → components}/Checkbox/sgds-checkbox-group.d.ts +0 -0
  226. /package/{src/components → components}/Checkbox/sgds-checkbox.d.ts +0 -0
  227. /package/{src/components → components}/ComboBox/combo-box-item.d.ts +0 -0
  228. /package/{src/components → components}/ComboBox/index.d.ts +0 -0
  229. /package/{src/components → components}/ComboBox/sgds-combo-box.d.ts +0 -0
  230. /package/{src/components → components}/Datepicker/datepicker-calendar.d.ts +0 -0
  231. /package/{src/components → components}/Datepicker/datepicker-header.d.ts +0 -0
  232. /package/{src/components → components}/Datepicker/datepicker-input.d.ts +0 -0
  233. /package/{src/components → components}/Datepicker/index.d.ts +0 -0
  234. /package/{src/components → components}/Datepicker/types.d.ts +0 -0
  235. /package/{src/components → components}/DescriptionList/index.d.ts +0 -0
  236. /package/{src/components → components}/DescriptionList/sgds-description-list-group.d.ts +0 -0
  237. /package/{src/components → components}/DescriptionList/sgds-description-list.d.ts +0 -0
  238. /package/{src/components → components}/Divider/index.d.ts +0 -0
  239. /package/{src/components → components}/Divider/sgds-divider.d.ts +0 -0
  240. /package/{src/components → components}/Drawer/index.d.ts +0 -0
  241. /package/{src/components → components}/Drawer/sgds-drawer.d.ts +0 -0
  242. /package/{src/components → components}/Dropdown/index.d.ts +0 -0
  243. /package/{src/components → components}/Dropdown/sgds-dropdown-item.d.ts +0 -0
  244. /package/{src/components → components}/Dropdown/sgds-dropdown.d.ts +0 -0
  245. /package/{src/components → components}/FileUpload/index.d.ts +0 -0
  246. /package/{src/components → components}/FileUpload/sgds-file-upload.d.ts +0 -0
  247. /package/{src/components → components}/Footer/index.d.ts +0 -0
  248. /package/{src/components → components}/Footer/sgds-footer-item.d.ts +0 -0
  249. /package/{src/components → components}/Footer/sgds-footer.d.ts +0 -0
  250. /package/{src/components → components}/Icon/icon-registry.d.ts +0 -0
  251. /package/{src/components → components}/Icon/icons/archive.d.ts +0 -0
  252. /package/{src/components → components}/Icon/icons/arrow-bar-down.d.ts +0 -0
  253. /package/{src/components → components}/Icon/icons/arrow-bar-left.d.ts +0 -0
  254. /package/{src/components → components}/Icon/icons/arrow-bar-right.d.ts +0 -0
  255. /package/{src/components → components}/Icon/icons/arrow-bar-up.d.ts +0 -0
  256. /package/{src/components → components}/Icon/icons/arrow-circle-down.d.ts +0 -0
  257. /package/{src/components → components}/Icon/icons/arrow-circle-left.d.ts +0 -0
  258. /package/{src/components → components}/Icon/icons/arrow-circle-right.d.ts +0 -0
  259. /package/{src/components → components}/Icon/icons/arrow-circle-up.d.ts +0 -0
  260. /package/{src/components → components}/Icon/icons/arrow-clockwise.d.ts +0 -0
  261. /package/{src/components → components}/Icon/icons/arrow-down.d.ts +0 -0
  262. /package/{src/components → components}/Icon/icons/arrow-left.d.ts +0 -0
  263. /package/{src/components → components}/Icon/icons/arrow-repeat.d.ts +0 -0
  264. /package/{src/components → components}/Icon/icons/arrow-right.d.ts +0 -0
  265. /package/{src/components → components}/Icon/icons/arrow-square-down.d.ts +0 -0
  266. /package/{src/components → components}/Icon/icons/arrow-square-left.d.ts +0 -0
  267. /package/{src/components → components}/Icon/icons/arrow-square-right.d.ts +0 -0
  268. /package/{src/components → components}/Icon/icons/arrow-square-up.d.ts +0 -0
  269. /package/{src/components → components}/Icon/icons/arrow-up.d.ts +0 -0
  270. /package/{src/components → components}/Icon/icons/bank-fill.d.ts +0 -0
  271. /package/{src/components → components}/Icon/icons/bell-slash.d.ts +0 -0
  272. /package/{src/components → components}/Icon/icons/bell.d.ts +0 -0
  273. /package/{src/components → components}/Icon/icons/bi-funnel.d.ts +0 -0
  274. /package/{src/components → components}/Icon/icons/bookmark-fill.d.ts +0 -0
  275. /package/{src/components → components}/Icon/icons/bookmark.d.ts +0 -0
  276. /package/{src/components → components}/Icon/icons/box-arrow-up-right.d.ts +0 -0
  277. /package/{src/components → components}/Icon/icons/box-seam.d.ts +0 -0
  278. /package/{src/components → components}/Icon/icons/building.d.ts +0 -0
  279. /package/{src/components → components}/Icon/icons/bus.d.ts +0 -0
  280. /package/{src/components → components}/Icon/icons/calculator.d.ts +0 -0
  281. /package/{src/components → components}/Icon/icons/calendar-check.d.ts +0 -0
  282. /package/{src/components → components}/Icon/icons/calendar-x.d.ts +0 -0
  283. /package/{src/components → components}/Icon/icons/calendar.d.ts +0 -0
  284. /package/{src/components → components}/Icon/icons/camera.d.ts +0 -0
  285. /package/{src/components → components}/Icon/icons/car.d.ts +0 -0
  286. /package/{src/components → components}/Icon/icons/chat-dots.d.ts +0 -0
  287. /package/{src/components → components}/Icon/icons/chat-left-text.d.ts +0 -0
  288. /package/{src/components → components}/Icon/icons/chat.d.ts +0 -0
  289. /package/{src/components → components}/Icon/icons/check-circle-fill.d.ts +0 -0
  290. /package/{src/components → components}/Icon/icons/check-circle.d.ts +0 -0
  291. /package/{src/components → components}/Icon/icons/check.d.ts +0 -0
  292. /package/{src/components → components}/Icon/icons/chevron-down.d.ts +0 -0
  293. /package/{src/components → components}/Icon/icons/chevron-left.d.ts +0 -0
  294. /package/{src/components → components}/Icon/icons/chevron-right.d.ts +0 -0
  295. /package/{src/components → components}/Icon/icons/chevron-selector-vertical.d.ts +0 -0
  296. /package/{src/components → components}/Icon/icons/chevron-up.d.ts +0 -0
  297. /package/{src/components → components}/Icon/icons/clock.d.ts +0 -0
  298. /package/{src/components → components}/Icon/icons/cloud-check.d.ts +0 -0
  299. /package/{src/components → components}/Icon/icons/cloud-download.d.ts +0 -0
  300. /package/{src/components → components}/Icon/icons/cloud-upload.d.ts +0 -0
  301. /package/{src/components → components}/Icon/icons/cloud.d.ts +0 -0
  302. /package/{src/components → components}/Icon/icons/compass.d.ts +0 -0
  303. /package/{src/components → components}/Icon/icons/cross.d.ts +0 -0
  304. /package/{src/components → components}/Icon/icons/cursor-fill.d.ts +0 -0
  305. /package/{src/components → components}/Icon/icons/cursor.d.ts +0 -0
  306. /package/{src/components → components}/Icon/icons/dash-circle.d.ts +0 -0
  307. /package/{src/components → components}/Icon/icons/dash-square.d.ts +0 -0
  308. /package/{src/components → components}/Icon/icons/dash.d.ts +0 -0
  309. /package/{src/components → components}/Icon/icons/download.d.ts +0 -0
  310. /package/{src/components → components}/Icon/icons/edit.d.ts +0 -0
  311. /package/{src/components → components}/Icon/icons/exclamation-circle-fill.d.ts +0 -0
  312. /package/{src/components → components}/Icon/icons/exclamation-circle.d.ts +0 -0
  313. /package/{src/components → components}/Icon/icons/exclamation-triangle-fill.d.ts +0 -0
  314. /package/{src/components → components}/Icon/icons/exclamation-triangle.d.ts +0 -0
  315. /package/{src/components → components}/Icon/icons/exclamation.d.ts +0 -0
  316. /package/{src/components → components}/Icon/icons/eye-fill.d.ts +0 -0
  317. /package/{src/components → components}/Icon/icons/eye-slash-fill.d.ts +0 -0
  318. /package/{src/components → components}/Icon/icons/eye-slash.d.ts +0 -0
  319. /package/{src/components → components}/Icon/icons/eye.d.ts +0 -0
  320. /package/{src/components → components}/Icon/icons/facebook.d.ts +0 -0
  321. /package/{src/components → components}/Icon/icons/file-earmark-text.d.ts +0 -0
  322. /package/{src/components → components}/Icon/icons/file-pdf.d.ts +0 -0
  323. /package/{src/components → components}/Icon/icons/file-plus.d.ts +0 -0
  324. /package/{src/components → components}/Icon/icons/file-text.d.ts +0 -0
  325. /package/{src/components → components}/Icon/icons/file.d.ts +0 -0
  326. /package/{src/components → components}/Icon/icons/files.d.ts +0 -0
  327. /package/{src/components → components}/Icon/icons/folder-check.d.ts +0 -0
  328. /package/{src/components → components}/Icon/icons/folder-minus.d.ts +0 -0
  329. /package/{src/components → components}/Icon/icons/folder-plus.d.ts +0 -0
  330. /package/{src/components → components}/Icon/icons/folder.d.ts +0 -0
  331. /package/{src/components → components}/Icon/icons/gear.d.ts +0 -0
  332. /package/{src/components → components}/Icon/icons/geo-alt.d.ts +0 -0
  333. /package/{src/components → components}/Icon/icons/geo-fill.d.ts +0 -0
  334. /package/{src/components → components}/Icon/icons/geo.d.ts +0 -0
  335. /package/{src/components → components}/Icon/icons/globe-alt.d.ts +0 -0
  336. /package/{src/components → components}/Icon/icons/globe.d.ts +0 -0
  337. /package/{src/components → components}/Icon/icons/google.d.ts +0 -0
  338. /package/{src/components → components}/Icon/icons/grid-fill.d.ts +0 -0
  339. /package/{src/components → components}/Icon/icons/hand-thumbs-down.d.ts +0 -0
  340. /package/{src/components → components}/Icon/icons/hand-thumbs-up.d.ts +0 -0
  341. /package/{src/components → components}/Icon/icons/hard-drive.d.ts +0 -0
  342. /package/{src/components → components}/Icon/icons/heart.d.ts +0 -0
  343. /package/{src/components → components}/Icon/icons/house-door.d.ts +0 -0
  344. /package/{src/components → components}/Icon/icons/house.d.ts +0 -0
  345. /package/{src/components → components}/Icon/icons/image.d.ts +0 -0
  346. /package/{src/components → components}/Icon/icons/in-box.d.ts +0 -0
  347. /package/{src/components → components}/Icon/icons/info-circle-fill.d.ts +0 -0
  348. /package/{src/components → components}/Icon/icons/info-circle.d.ts +0 -0
  349. /package/{src/components → components}/Icon/icons/instagram.d.ts +0 -0
  350. /package/{src/components → components}/Icon/icons/laptop.d.ts +0 -0
  351. /package/{src/components → components}/Icon/icons/layers.d.ts +0 -0
  352. /package/{src/components → components}/Icon/icons/layout-text-window-reverse.d.ts +0 -0
  353. /package/{src/components → components}/Icon/icons/layout-text-window.d.ts +0 -0
  354. /package/{src/components → components}/Icon/icons/layout.d.ts +0 -0
  355. /package/{src/components → components}/Icon/icons/lightbulb.d.ts +0 -0
  356. /package/{src/components → components}/Icon/icons/link.d.ts +0 -0
  357. /package/{src/components → components}/Icon/icons/linkedin.d.ts +0 -0
  358. /package/{src/components → components}/Icon/icons/list.d.ts +0 -0
  359. /package/{src/components → components}/Icon/icons/lock-fill.d.ts +0 -0
  360. /package/{src/components → components}/Icon/icons/lock.d.ts +0 -0
  361. /package/{src/components → components}/Icon/icons/login.d.ts +0 -0
  362. /package/{src/components → components}/Icon/icons/logout.d.ts +0 -0
  363. /package/{src/components → components}/Icon/icons/luggage.d.ts +0 -0
  364. /package/{src/components → components}/Icon/icons/mail.d.ts +0 -0
  365. /package/{src/components → components}/Icon/icons/map.d.ts +0 -0
  366. /package/{src/components → components}/Icon/icons/menu.d.ts +0 -0
  367. /package/{src/components → components}/Icon/icons/microphone.d.ts +0 -0
  368. /package/{src/components → components}/Icon/icons/monitor.d.ts +0 -0
  369. /package/{src/components → components}/Icon/icons/paperclip.d.ts +0 -0
  370. /package/{src/components → components}/Icon/icons/passport.d.ts +0 -0
  371. /package/{src/components → components}/Icon/icons/pencil.d.ts +0 -0
  372. /package/{src/components → components}/Icon/icons/pending-circle.d.ts +0 -0
  373. /package/{src/components → components}/Icon/icons/person-dash.d.ts +0 -0
  374. /package/{src/components → components}/Icon/icons/person-plus.d.ts +0 -0
  375. /package/{src/components → components}/Icon/icons/person-x.d.ts +0 -0
  376. /package/{src/components → components}/Icon/icons/person.d.ts +0 -0
  377. /package/{src/components → components}/Icon/icons/phone.d.ts +0 -0
  378. /package/{src/components → components}/Icon/icons/pin-map-fill.d.ts +0 -0
  379. /package/{src/components → components}/Icon/icons/pin.d.ts +0 -0
  380. /package/{src/components → components}/Icon/icons/placeholder.d.ts +0 -0
  381. /package/{src/components → components}/Icon/icons/plane.d.ts +0 -0
  382. /package/{src/components → components}/Icon/icons/plus-circle.d.ts +0 -0
  383. /package/{src/components → components}/Icon/icons/plus-square.d.ts +0 -0
  384. /package/{src/components → components}/Icon/icons/plus.d.ts +0 -0
  385. /package/{src/components → components}/Icon/icons/printer.d.ts +0 -0
  386. /package/{src/components → components}/Icon/icons/question-circle.d.ts +0 -0
  387. /package/{src/components → components}/Icon/icons/rocket.d.ts +0 -0
  388. /package/{src/components → components}/Icon/icons/save.d.ts +0 -0
  389. /package/{src/components → components}/Icon/icons/search.d.ts +0 -0
  390. /package/{src/components → components}/Icon/icons/send.d.ts +0 -0
  391. /package/{src/components → components}/Icon/icons/sg-crest.d.ts +0 -0
  392. /package/{src/components → components}/Icon/icons/share.d.ts +0 -0
  393. /package/{src/components → components}/Icon/icons/slash-circle.d.ts +0 -0
  394. /package/{src/components → components}/Icon/icons/sliders.d.ts +0 -0
  395. /package/{src/components → components}/Icon/icons/speedometer.d.ts +0 -0
  396. /package/{src/components → components}/Icon/icons/star-fill.d.ts +0 -0
  397. /package/{src/components → components}/Icon/icons/star.d.ts +0 -0
  398. /package/{src/components → components}/Icon/icons/stoplights.d.ts +0 -0
  399. /package/{src/components → components}/Icon/icons/switch-horizontal.d.ts +0 -0
  400. /package/{src/components → components}/Icon/icons/switch-vertical.d.ts +0 -0
  401. /package/{src/components → components}/Icon/icons/tablet.d.ts +0 -0
  402. /package/{src/components → components}/Icon/icons/telephone.d.ts +0 -0
  403. /package/{src/components → components}/Icon/icons/three-dots-vertical.d.ts +0 -0
  404. /package/{src/components → components}/Icon/icons/three-dots.d.ts +0 -0
  405. /package/{src/components → components}/Icon/icons/ticket.d.ts +0 -0
  406. /package/{src/components → components}/Icon/icons/toggle-off.d.ts +0 -0
  407. /package/{src/components → components}/Icon/icons/toggle-on.d.ts +0 -0
  408. /package/{src/components → components}/Icon/icons/train.d.ts +0 -0
  409. /package/{src/components → components}/Icon/icons/translate.d.ts +0 -0
  410. /package/{src/components → components}/Icon/icons/trash.d.ts +0 -0
  411. /package/{src/components → components}/Icon/icons/truck.d.ts +0 -0
  412. /package/{src/components → components}/Icon/icons/twitter-x.d.ts +0 -0
  413. /package/{src/components → components}/Icon/icons/unlock.d.ts +0 -0
  414. /package/{src/components → components}/Icon/icons/upload.d.ts +0 -0
  415. /package/{src/components → components}/Icon/icons/user-circle.d.ts +0 -0
  416. /package/{src/components → components}/Icon/icons/user-square.d.ts +0 -0
  417. /package/{src/components → components}/Icon/icons/users.d.ts +0 -0
  418. /package/{src/components → components}/Icon/icons/video-recorder.d.ts +0 -0
  419. /package/{src/components → components}/Icon/icons/volume-max.d.ts +0 -0
  420. /package/{src/components → components}/Icon/icons/volume-x.d.ts +0 -0
  421. /package/{src/components → components}/Icon/icons/window-dash.d.ts +0 -0
  422. /package/{src/components → components}/Icon/icons/window-desktop.d.ts +0 -0
  423. /package/{src/components → components}/Icon/icons/window-dock.d.ts +0 -0
  424. /package/{src/components → components}/Icon/icons/window-fullscreen.d.ts +0 -0
  425. /package/{src/components → components}/Icon/icons/window-plus.d.ts +0 -0
  426. /package/{src/components → components}/Icon/icons/window-sidebar.d.ts +0 -0
  427. /package/{src/components → components}/Icon/icons/window-split.d.ts +0 -0
  428. /package/{src/components → components}/Icon/icons/window-stack.d.ts +0 -0
  429. /package/{src/components → components}/Icon/icons/window-x.d.ts +0 -0
  430. /package/{src/components → components}/Icon/icons/window.d.ts +0 -0
  431. /package/{src/components → components}/Icon/icons/xcircle-fill.d.ts +0 -0
  432. /package/{src/components → components}/Icon/icons/xcircle.d.ts +0 -0
  433. /package/{src/components → components}/Icon/icons/youtube.d.ts +0 -0
  434. /package/{src/components → components}/Icon/icons/zoom-in.d.ts +0 -0
  435. /package/{src/components → components}/Icon/icons/zoom-out.d.ts +0 -0
  436. /package/{src/components → components}/Icon/index.d.ts +0 -0
  437. /package/{src/components → components}/Icon/sgds-icon.d.ts +0 -0
  438. /package/{src/components → components}/IconButton/index.d.ts +0 -0
  439. /package/{src/components → components}/IconButton/sgds-icon-button.d.ts +0 -0
  440. /package/{src/components → components}/IconList/index.d.ts +0 -0
  441. /package/{src/components → components}/IconList/sgds-icon-list.d.ts +0 -0
  442. /package/{src/components → components}/Input/index.d.ts +0 -0
  443. /package/{src/components → components}/Input/sgds-input.d.ts +0 -0
  444. /package/{src/components → components}/Link/index.d.ts +0 -0
  445. /package/{src/components → components}/Link/sgds-link.d.ts +0 -0
  446. /package/{src/components → components}/Mainnav/index.d.ts +0 -0
  447. /package/{src/components → components}/Mainnav/mainnav-context.d.ts +0 -0
  448. /package/{src/components → components}/Mainnav/sgds-mainnav-dropdown.d.ts +0 -0
  449. /package/{src/components → components}/Mainnav/sgds-mainnav-item.d.ts +0 -0
  450. /package/{src/components → components}/Mainnav/sgds-mainnav.d.ts +0 -0
  451. /package/{src/components → components}/Masthead/index.d.ts +0 -0
  452. /package/{src/components → components}/Masthead/sgds-masthead.d.ts +0 -0
  453. /package/{src/components → components}/Modal/index.d.ts +0 -0
  454. /package/{src/components → components}/Modal/sgds-modal.d.ts +0 -0
  455. /package/{src/internals → components}/OverflowMenu/index.d.ts +0 -0
  456. /package/{internals → components}/OverflowMenu/overflow-menu.js +0 -0
  457. /package/{internals → components}/OverflowMenu/overflow-menu.js.map +0 -0
  458. /package/{src/components → components}/Pagination/index.d.ts +0 -0
  459. /package/{src/components → components}/Pagination/sgds-pagination.d.ts +0 -0
  460. /package/{src/components → components}/ProgressBar/index.d.ts +0 -0
  461. /package/{src/components → components}/ProgressBar/sgds-progress-bar.d.ts +0 -0
  462. /package/{src/components → components}/QuantityToggle/index.d.ts +0 -0
  463. /package/{src/components → components}/QuantityToggle/sgds-quantity-toggle.d.ts +0 -0
  464. /package/{src/components → components}/Radio/index.d.ts +0 -0
  465. /package/{src/components → components}/Radio/sgds-radio-group.d.ts +0 -0
  466. /package/{src/components → components}/Radio/sgds-radio.d.ts +0 -0
  467. /package/{src/components → components}/Select/index.d.ts +0 -0
  468. /package/{src/components → components}/Select/select-item.d.ts +0 -0
  469. /package/{src/components → components}/Select/sgds-select.d.ts +0 -0
  470. /package/{src/components → components}/Sidenav/index.d.ts +0 -0
  471. /package/{src/components → components}/Sidenav/sgds-sidenav-item.d.ts +0 -0
  472. /package/{src/components → components}/Sidenav/sgds-sidenav-link.d.ts +0 -0
  473. /package/{src/components → components}/Sidenav/sgds-sidenav.d.ts +0 -0
  474. /package/{src/components → components}/Skeleton/index.d.ts +0 -0
  475. /package/{src/components → components}/Skeleton/sgds-skeleton.d.ts +0 -0
  476. /package/{src/components → components}/Spinner/index.d.ts +0 -0
  477. /package/{src/components → components}/Spinner/sgds-spinner.d.ts +0 -0
  478. /package/{src/components → components}/Stepper/index.d.ts +0 -0
  479. /package/{src/components → components}/Stepper/sgds-stepper.d.ts +0 -0
  480. /package/{src/components → components}/Subnav/index.d.ts +0 -0
  481. /package/{src/components → components}/Subnav/sgds-subnav-item.d.ts +0 -0
  482. /package/{src/components → components}/Subnav/sgds-subnav.d.ts +0 -0
  483. /package/{src/components → components}/Switch/index.d.ts +0 -0
  484. /package/{src/components → components}/Switch/sgds-switch.d.ts +0 -0
  485. /package/{src/components → components}/Tab/index.d.ts +0 -0
  486. /package/{src/components → components}/Tab/sgds-tab-group.d.ts +0 -0
  487. /package/{src/components → components}/Tab/sgds-tab-panel.d.ts +0 -0
  488. /package/{src/components → components}/Tab/sgds-tab.d.ts +0 -0
  489. /package/{src/components → components}/Table/index.d.ts +0 -0
  490. /package/{src/components → components}/Table/sgds-table-cell.d.ts +0 -0
  491. /package/{src/components → components}/Table/sgds-table-head.d.ts +0 -0
  492. /package/{src/components → components}/Table/sgds-table-row.d.ts +0 -0
  493. /package/{src/components → components}/Table/sgds-table.d.ts +0 -0
  494. /package/{src/components → components}/TableOfContents/index.d.ts +0 -0
  495. /package/{src/components → components}/TableOfContents/sgds-table-of-contents.d.ts +0 -0
  496. /package/{src/components → components}/Textarea/index.d.ts +0 -0
  497. /package/{src/components → components}/Textarea/sgds-textarea.d.ts +0 -0
  498. /package/{src/components → components}/Toast/index.d.ts +0 -0
  499. /package/{src/components → components}/Toast/sgds-toast-container.d.ts +0 -0
  500. /package/{src/components → components}/Toast/sgds-toast.d.ts +0 -0
  501. /package/{src/components → components}/Tooltip/index.d.ts +0 -0
  502. /package/{src/components → components}/Tooltip/sgds-tooltip.d.ts +0 -0
  503. /package/{src/internals → internals}/CloseButton/index.d.ts +0 -0
  504. /package/{src/internals → internals}/CloseButton/sgds-close-button.d.ts +0 -0
  505. /package/{src/react → react}/accordion/index.d.ts +0 -0
  506. /package/{src/react → react}/accordion-item/index.d.ts +0 -0
  507. /package/{src/react → react}/alert/index.d.ts +0 -0
  508. /package/{src/react → react}/alert-link/index.d.ts +0 -0
  509. /package/{src/react → react}/badge/index.d.ts +0 -0
  510. /package/{src/react → react}/breadcrumb/index.d.ts +0 -0
  511. /package/{src/react → react}/breadcrumb-item/index.d.ts +0 -0
  512. /package/{src/react → react}/button/index.d.ts +0 -0
  513. /package/{src/react → react}/card/index.d.ts +0 -0
  514. /package/{src/react → react}/checkbox/index.d.ts +0 -0
  515. /package/{src/react → react}/checkbox-group/index.d.ts +0 -0
  516. /package/{src/react → react}/combo-box/index.d.ts +0 -0
  517. /package/react/{internals → components}/OverflowMenu/overflow-menu.cjs.js +0 -0
  518. /package/react/{internals → components}/OverflowMenu/overflow-menu.cjs.js.map +0 -0
  519. /package/react/{internals → components}/OverflowMenu/overflow-menu.js +0 -0
  520. /package/react/{internals → components}/OverflowMenu/overflow-menu.js.map +0 -0
  521. /package/{src/react → react}/datepicker/index.d.ts +0 -0
  522. /package/{src/react → react}/description-list/index.d.ts +0 -0
  523. /package/{src/react → react}/description-list-group/index.d.ts +0 -0
  524. /package/{src/react → react}/divider/index.d.ts +0 -0
  525. /package/{src/react → react}/drawer/index.d.ts +0 -0
  526. /package/{src/react → react}/dropdown/index.d.ts +0 -0
  527. /package/{src/react → react}/dropdown-item/index.d.ts +0 -0
  528. /package/{src/react → react}/file-upload/index.d.ts +0 -0
  529. /package/{src/react → react}/footer/index.d.ts +0 -0
  530. /package/{src/react → react}/footer-item/index.d.ts +0 -0
  531. /package/{src/react/input → react/icon}/index.d.ts +0 -0
  532. /package/{src/react → react}/icon-button/index.d.ts +0 -0
  533. /package/{src/react/icon-list → react/icon-card}/index.d.ts +0 -0
  534. /package/{src/react/icon → react/icon-list}/index.d.ts +0 -0
  535. /package/{src/react/link → react/image-card}/index.d.ts +0 -0
  536. /package/{src/react/mainnav-dropdown → react/input}/index.d.ts +0 -0
  537. /package/{src/react/mainnav-item → react/link}/index.d.ts +0 -0
  538. /package/{src/react/modal → react/mainnav}/index.d.ts +0 -0
  539. /package/{src/react/mainnav → react/mainnav-dropdown}/index.d.ts +0 -0
  540. /package/{src/react/masthead → react/mainnav-item}/index.d.ts +0 -0
  541. /package/{src/react/pagination → react/masthead}/index.d.ts +0 -0
  542. /package/{src/react/progress-bar → react/modal}/index.d.ts +0 -0
  543. /package/{src/react/quantity-toggle → react/overflow-menu}/index.d.ts +0 -0
  544. /package/{src/react/radio-group → react/pagination}/index.d.ts +0 -0
  545. /package/{src/react/radio → react/progress-bar}/index.d.ts +0 -0
  546. /package/{src/react/select → react/quantity-toggle}/index.d.ts +0 -0
  547. /package/{src/react/sidenav-link → react/radio}/index.d.ts +0 -0
  548. /package/{src/react/sidenav-item → react/radio-group}/index.d.ts +0 -0
  549. /package/{src/react/sidenav → react/select}/index.d.ts +0 -0
  550. /package/{src/react/stepper → react/sidenav}/index.d.ts +0 -0
  551. /package/{src/react/skeleton → react/sidenav-item}/index.d.ts +0 -0
  552. /package/{src/react/spinner → react/sidenav-link}/index.d.ts +0 -0
  553. /package/{src/react/subnav-item → react/skeleton}/index.d.ts +0 -0
  554. /package/{src/react/subnav → react/spinner}/index.d.ts +0 -0
  555. /package/{src/react/switch → react/stepper}/index.d.ts +0 -0
  556. /package/{src/react/tab-panel → react/subnav}/index.d.ts +0 -0
  557. /package/{src/react/tab-group → react/subnav-item}/index.d.ts +0 -0
  558. /package/{src/react/tab → react/switch}/index.d.ts +0 -0
  559. /package/{src/react/table-of-contents → react/tab}/index.d.ts +0 -0
  560. /package/{src/react/table-cell → react/tab-group}/index.d.ts +0 -0
  561. /package/{src/react/table-head → react/tab-panel}/index.d.ts +0 -0
  562. /package/{src/react/toast → react/table}/index.d.ts +0 -0
  563. /package/{src/react/table-row → react/table-cell}/index.d.ts +0 -0
  564. /package/{src/react/table → react/table-head}/index.d.ts +0 -0
  565. /package/{src/react/textarea → react/table-of-contents}/index.d.ts +0 -0
  566. /package/{src/react/toast-container → react/table-row}/index.d.ts +0 -0
  567. /package/{src/react/tooltip → react/textarea}/index.d.ts +0 -0
  568. /package/{src/utils → utils}/animate.d.ts +0 -0
  569. /package/{src/utils → utils}/animation-registry.d.ts +0 -0
  570. /package/{src/utils → utils}/breakpoints.d.ts +0 -0
  571. /package/{src/utils → utils}/ce-registry.d.ts +0 -0
  572. /package/{src/utils → utils}/defaultvalue.d.ts +0 -0
  573. /package/{src/utils → utils}/event.d.ts +0 -0
  574. /package/{src/utils → utils}/formSubmitController.d.ts +0 -0
  575. /package/{src/utils → utils}/generateCustomElementName.d.ts +0 -0
  576. /package/{src/utils → utils}/generateId.d.ts +0 -0
  577. /package/{src/utils → utils}/inputValidationController.d.ts +0 -0
  578. /package/{src/utils → utils}/mergeDeep.d.ts +0 -0
  579. /package/{src/utils → utils}/modal.d.ts +0 -0
  580. /package/{src/utils → utils}/object.d.ts +0 -0
  581. /package/{src/utils → utils}/offset.d.ts +0 -0
  582. /package/{src/utils → utils}/scroll.d.ts +0 -0
  583. /package/{src/utils → utils}/slot.d.ts +0 -0
  584. /package/{src/utils → utils}/tabbable.d.ts +0 -0
  585. /package/{src/utils → utils}/test.d.ts +0 -0
  586. /package/{src/utils → utils}/time.d.ts +0 -0
  587. /package/{src/utils → utils}/validatorMixin.d.ts +0 -0
  588. /package/{src/utils → utils}/watch.d.ts +0 -0
@@ -1,39 +1,28 @@
1
1
  import { CardElement } from "../../base/card-element";
2
- export type CardImageAdjustment = "default" | "padding around" | "aspect ratio";
3
- export type CardImagePosition = "before" | "after";
4
- export type CardOrientation = "vertical" | "horizontal";
2
+ import { CardImageAdjustment, CardImagePosition } from "./types";
5
3
  /**
6
4
  * @summary Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
5
+ * @slot default - The content area of the card, placed directly under the title. Accepts any HTML or custom elements.
6
+ * @slot menu - Accepts an element for an overflow or contextual menu, positioned at the top-right corner of the card. Typically used for action menus or dropdowns.
7
7
  * @slot image - Accepts an image or svg element of the card. Only a single element is allowed to be passed in.
8
8
  * @slot icon - Accepts an icon element to visually represent the card. Only a single element is allowed to be passed in.
9
9
  * @slot subtitle - The subtitle of the card
10
10
  * @slot title - The title of the card
11
11
  * @slot description - The paragrapher text of the card
12
+ * @slot lower - Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.
12
13
  * @slot link - Accepts an anchor element. Only a single element is allowed to be passed in.
13
14
  */
14
15
  export declare class SgdsCard extends CardElement {
15
16
  static styles: import("lit").CSSResult[];
16
17
  /** @internal */
17
- card: HTMLAnchorElement;
18
- /** @internal */
19
18
  _imageNode: Array<Node>;
20
19
  /** @internal */
21
20
  _iconNode: Array<Node>;
22
- /** @internal */
23
- _linkNode: Array<Node>;
24
- /** Extends the link passed in slot[name="link"] to the entire card */
25
- stretchedLink: boolean;
26
- /** Disables the card */
27
- disabled: boolean;
28
- /** Sets the orientation of the card. Available options: `vertical`, `horizontal` */
29
- orientation: CardOrientation;
30
21
  /** Sets the image position of the card. Available options: `before`, `after` */
31
22
  imagePosition: CardImagePosition;
32
23
  /** Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio` */
33
24
  imageAdjustment: CardImageAdjustment;
34
25
  protected firstUpdated(): void;
35
- handleTitleSlotChange(e: Event): void;
36
- handleLinkSlotChange(e: Event): void;
37
26
  handleImgSlotChange(e: Event): void;
38
27
  render(): import("lit-html").TemplateResult;
39
28
  }
@@ -1,29 +1,25 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import { literal, html } from 'lit/static-html.js';
3
- import { query, queryAssignedNodes, property } from 'lit/decorators.js';
3
+ import { queryAssignedNodes, property } from 'lit/decorators.js';
4
4
  import { classMap } from 'lit/directives/class-map.js';
5
5
  import { CardElement } from '../../base/card-element.js';
6
- import { SgdsLink } from '../Link/sgds-link.js';
7
6
  import css_248z from './card.js';
8
7
 
9
8
  /**
10
9
  * @summary Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
10
+ * @slot default - The content area of the card, placed directly under the title. Accepts any HTML or custom elements.
11
+ * @slot menu - Accepts an element for an overflow or contextual menu, positioned at the top-right corner of the card. Typically used for action menus or dropdowns.
11
12
  * @slot image - Accepts an image or svg element of the card. Only a single element is allowed to be passed in.
12
13
  * @slot icon - Accepts an icon element to visually represent the card. Only a single element is allowed to be passed in.
13
14
  * @slot subtitle - The subtitle of the card
14
15
  * @slot title - The title of the card
15
16
  * @slot description - The paragrapher text of the card
17
+ * @slot lower - Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.
16
18
  * @slot link - Accepts an anchor element. Only a single element is allowed to be passed in.
17
19
  */
18
20
  class SgdsCard extends CardElement {
19
21
  constructor() {
20
22
  super(...arguments);
21
- /** Extends the link passed in slot[name="link"] to the entire card */
22
- this.stretchedLink = false;
23
- /** Disables the card */
24
- this.disabled = false;
25
- /** Sets the orientation of the card. Available options: `vertical`, `horizontal` */
26
- this.orientation = "vertical";
27
23
  /** Sets the image position of the card. Available options: `before`, `after` */
28
24
  this.imagePosition = "before";
29
25
  /** Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio` */
@@ -35,35 +31,8 @@ class SgdsCard extends CardElement {
35
31
  icon.style.display = "none";
36
32
  }
37
33
  if (this._iconNode.length === 0) {
38
- const icon = this.shadowRoot.querySelector(".card-icon");
39
- icon.style.display = "none";
40
- }
41
- if (this.disabled && this._linkNode.length > 0) {
42
- const hyperlink = this._linkNode[0].querySelector("a");
43
- hyperlink.setAttribute("disabled", "true");
44
- hyperlink.removeAttribute("href");
45
- }
46
- }
47
- handleTitleSlotChange(e) {
48
- const childNodes = e.target.assignedNodes({ flatten: true });
49
- if (this.stretchedLink && childNodes[0] instanceof HTMLAnchorElement) {
50
- const hyperlink = childNodes[0].querySelector("a") || childNodes[0];
51
- hyperlink.removeAttribute("href");
52
- }
53
- return;
54
- }
55
- handleLinkSlotChange(e) {
56
- const childNodes = e.target.assignedNodes({ flatten: true });
57
- if (childNodes.length > 1) {
58
- return console.error("Multiple elements passed into SgdsCard's link slot");
59
- }
60
- if (!this.stretchedLink)
61
- return;
62
- if (childNodes[0] instanceof HTMLAnchorElement || childNodes[0] instanceof SgdsLink) {
63
- const hyperlink = (childNodes[0].querySelector("a") || childNodes[0]);
64
- this.card.setAttribute("href", hyperlink.href);
65
- const linkSlot = this.shadowRoot.querySelector("slot[name='link']");
66
- linkSlot.style.display = "none";
34
+ const media = this.shadowRoot.querySelector(".card-media");
35
+ media.style.display = "none";
67
36
  }
68
37
  }
69
38
  handleImgSlotChange(e) {
@@ -82,20 +51,26 @@ class SgdsCard extends CardElement {
82
51
  })}"
83
52
  tabindex=${cardTabIndex}
84
53
  >
54
+ <div class="card-tinted-bg"></div>
55
+ <slot name="menu"></slot>
85
56
  <div class="card-image">
86
57
  <slot name="image" @slotchange=${this.handleImgSlotChange}></slot>
87
58
  </div>
88
- <div class="card-icon">
59
+ <div class="card-media">
89
60
  <slot name="icon"></slot>
90
61
  </div>
91
62
  <div class="card-body">
92
- <div class="card-header">
93
- <slot name="subtitle"></slot>
94
- <h3 class="card-title"><slot name="title" @slotchange=${this.handleTitleSlotChange}></slot></h3>
63
+ <div class="card-header-container">
64
+ <div class="card-header">
65
+ <slot name="subtitle"></slot>
66
+ <h3 class="card-title"><slot name="title" @slotchange=${this.handleTitleSlotChange}></slot></h3>
67
+ </div>
68
+ <slot></slot>
95
69
  </div>
96
70
  <p class="card-text">
97
71
  <slot name="description"></slot>
98
72
  </p>
73
+ <slot name="lower"></slot>
99
74
  <slot name="link" @slotchange=${this.handleLinkSlotChange}></slot>
100
75
  </div>
101
76
  </${tag}>
@@ -103,27 +78,12 @@ class SgdsCard extends CardElement {
103
78
  }
104
79
  }
105
80
  SgdsCard.styles = [...CardElement.styles, css_248z];
106
- __decorate([
107
- query("a.card")
108
- ], SgdsCard.prototype, "card", void 0);
109
81
  __decorate([
110
82
  queryAssignedNodes({ slot: "image", flatten: true })
111
83
  ], SgdsCard.prototype, "_imageNode", void 0);
112
84
  __decorate([
113
85
  queryAssignedNodes({ slot: "icon", flatten: true })
114
86
  ], SgdsCard.prototype, "_iconNode", void 0);
115
- __decorate([
116
- queryAssignedNodes({ slot: "link", flatten: true })
117
- ], SgdsCard.prototype, "_linkNode", void 0);
118
- __decorate([
119
- property({ type: Boolean, reflect: true })
120
- ], SgdsCard.prototype, "stretchedLink", void 0);
121
- __decorate([
122
- property({ type: Boolean, reflect: true })
123
- ], SgdsCard.prototype, "disabled", void 0);
124
- __decorate([
125
- property({ type: String, reflect: true })
126
- ], SgdsCard.prototype, "orientation", void 0);
127
87
  __decorate([
128
88
  property({ type: String, reflect: true })
129
89
  ], SgdsCard.prototype, "imagePosition", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"sgds-card.js","sources":["../../../src/components/Card/sgds-card.ts"],"sourcesContent":["import { html, literal } from \"lit/static-html.js\";\nimport { property, query, queryAssignedNodes } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { CardElement } from \"../../base/card-element\";\nimport SgdsLink from \"../Link/sgds-link\";\nimport cardStyle from \"./card.css\";\n\nexport type CardImageAdjustment = \"default\" | \"padding around\" | \"aspect ratio\";\nexport type CardImagePosition = \"before\" | \"after\";\nexport type CardOrientation = \"vertical\" | \"horizontal\";\n\n/**\n * @summary Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.\n * @slot image - Accepts an image or svg element of the card. Only a single element is allowed to be passed in.\n * @slot icon - Accepts an icon element to visually represent the card. Only a single element is allowed to be passed in.\n * @slot subtitle - The subtitle of the card\n * @slot title - The title of the card\n * @slot description - The paragrapher text of the card\n * @slot link - Accepts an anchor element. Only a single element is allowed to be passed in.\n */\nexport class SgdsCard extends CardElement {\n static styles = [...CardElement.styles, cardStyle];\n\n /** @internal */\n @query(\"a.card\") card: HTMLAnchorElement;\n\n /** @internal */\n @queryAssignedNodes({ slot: \"image\", flatten: true })\n _imageNode!: Array<Node>;\n /** @internal */\n @queryAssignedNodes({ slot: \"icon\", flatten: true })\n _iconNode!: Array<Node>;\n /** @internal */\n @queryAssignedNodes({ slot: \"link\", flatten: true })\n _linkNode!: Array<Node>;\n\n /** Extends the link passed in slot[name=\"link\"] to the entire card */\n @property({ type: Boolean, reflect: true }) stretchedLink = false;\n\n /** Disables the card */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Sets the orientation of the card. Available options: `vertical`, `horizontal` */\n @property({ type: String, reflect: true }) orientation: CardOrientation = \"vertical\";\n\n /** Sets the image position of the card. Available options: `before`, `after` */\n @property({ type: String, reflect: true }) imagePosition: CardImagePosition = \"before\";\n\n /** Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio` */\n @property({ type: String, reflect: true }) imageAdjustment: CardImageAdjustment = \"default\";\n\n protected firstUpdated() {\n if (this._imageNode.length === 0) {\n const icon = this.shadowRoot.querySelector(\".card-image\") as HTMLDivElement;\n icon.style.display = \"none\";\n }\n if (this._iconNode.length === 0) {\n const icon = this.shadowRoot.querySelector(\".card-icon\") as HTMLDivElement;\n icon.style.display = \"none\";\n }\n if (this.disabled && this._linkNode.length > 0) {\n const hyperlink = (this._linkNode[0] as HTMLLinkElement).querySelector(\"a\");\n hyperlink.setAttribute(\"disabled\", \"true\");\n hyperlink.removeAttribute(\"href\");\n }\n }\n\n handleTitleSlotChange(e: Event) {\n const childNodes = (e.target as HTMLSlotElement).assignedNodes({ flatten: true }) as Array<HTMLElement>;\n\n if (this.stretchedLink && childNodes[0] instanceof HTMLAnchorElement) {\n const hyperlink = childNodes[0].querySelector(\"a\") || childNodes[0];\n hyperlink.removeAttribute(\"href\");\n }\n return;\n }\n\n handleLinkSlotChange(e: Event) {\n const childNodes = (e.target as HTMLSlotElement).assignedNodes({ flatten: true }) as\n | Array<HTMLLinkElement>\n | Array<HTMLAnchorElement>\n | Array<SgdsLink>;\n\n if (childNodes.length > 1) {\n return console.error(\"Multiple elements passed into SgdsCard's link slot\");\n }\n\n if (!this.stretchedLink) return;\n\n if (childNodes[0] instanceof HTMLAnchorElement || childNodes[0] instanceof SgdsLink) {\n const hyperlink = (childNodes[0].querySelector(\"a\") || childNodes[0]) as HTMLAnchorElement;\n this.card.setAttribute(\"href\", hyperlink.href);\n const linkSlot = this.shadowRoot.querySelector(\"slot[name='link']\") as HTMLSlotElement;\n linkSlot.style.display = \"none\";\n }\n }\n\n handleImgSlotChange(e: Event) {\n const childNodes = (e.target as HTMLSlotElement).assignedNodes({ flatten: true }) as Array<HTMLOrSVGImageElement>;\n\n if (childNodes.length > 1) {\n return console.error(\"Multiple elements passed into SgdsCard's image slot\");\n }\n }\n\n render() {\n const tag = this.stretchedLink ? literal`a` : literal`div`;\n const cardTabIndex = !this.stretchedLink || this.disabled ? -1 : 0;\n\n return html`\n <${tag} \n class=\"card ${classMap({\n disabled: this.disabled\n })}\"\n tabindex=${cardTabIndex}\n >\n <div class=\"card-image\">\n <slot name=\"image\" @slotchange=${this.handleImgSlotChange}></slot>\n </div>\n <div class=\"card-icon\">\n <slot name=\"icon\"></slot>\n </div>\n <div class=\"card-body\">\n <div class=\"card-header\">\n <slot name=\"subtitle\"></slot>\n <h3 class=\"card-title\"><slot name=\"title\" @slotchange=${this.handleTitleSlotChange}></slot></h3>\n </div>\n <p class=\"card-text\">\n <slot name=\"description\"></slot>\n </p>\n <slot name=\"link\" @slotchange=${this.handleLinkSlotChange}></slot>\n </div>\n </${tag}>\n `;\n }\n}\n\nexport default SgdsCard;\n"],"names":["cardStyle"],"mappings":";;;;;;;;AAWA;;;;;;;;AAQG;AACG,MAAO,QAAS,SAAQ,WAAW,CAAA;AAAzC,IAAA,WAAA,GAAA;;;QAiB8C,IAAa,CAAA,aAAA,GAAG,KAAK,CAAC;;Q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AAE,IAAI,EAAE,CAAC;AAC5B,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,WAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGoB,UAAA,CAAA;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAAuB,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,eAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGtB,UAAA,CAAA;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAAkB,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGlB,UAAA,CAAA;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAA2C,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,aAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAG1C,UAAA,CAAA;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAA6C,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,eAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAG5C,UAAA,CAAA;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAAkD,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,iBAAA,EAAA,KAAA,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"sgds-card.js","sources":["../../../src/components/Card/sgds-card.ts"],"sourcesContent":["import { html, literal } from \"lit/static-html.js\";\nimport { property, queryAssignedNodes } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { CardElement } from \"../../base/card-element\";\nimport { CardImageAdjustment, CardImagePosition } from \"./types\";\nimport cardStyle from \"./card.css\";\n\n/**\n * @summary Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.\n * @slot default - The content area of the card, placed directly under the title. Accepts any HTML or custom elements.\n * @slot menu - Accepts an element for an overflow or contextual menu, positioned at the top-right corner of the card. Typically used for action menus or dropdowns.\n * @slot image - Accepts an image or svg element of the card. Only a single element is allowed to be passed in.\n * @slot icon - Accepts an icon element to visually represent the card. Only a single element is allowed to be passed in.\n * @slot subtitle - The subtitle of the card\n * @slot title - The title of the card\n * @slot description - The paragrapher text of the card\n * @slot lower - Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.\n * @slot link - Accepts an anchor element. Only a single element is allowed to be passed in.\n */\nexport class SgdsCard extends CardElement {\n static styles = [...CardElement.styles, cardStyle];\n\n /** @internal */\n @queryAssignedNodes({ slot: \"image\", flatten: true })\n _imageNode!: Array<Node>;\n /** @internal */\n @queryAssignedNodes({ slot: \"icon\", flatten: true })\n _iconNode!: Array<Node>;\n\n /** Sets the image position of the card. Available options: `before`, `after` */\n @property({ type: String, reflect: true }) imagePosition: CardImagePosition = \"before\";\n\n /** Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio` */\n @property({ type: String, reflect: true }) imageAdjustment: CardImageAdjustment = \"default\";\n\n protected firstUpdated() {\n if (this._imageNode.length === 0) {\n const icon = this.shadowRoot.querySelector(\".card-image\") as HTMLDivElement;\n icon.style.display = \"none\";\n }\n if (this._iconNode.length === 0) {\n const media = this.shadowRoot.querySelector(\".card-media\") as HTMLDivElement;\n media.style.display = \"none\";\n }\n }\n\n handleImgSlotChange(e: Event) {\n const childNodes = (e.target as HTMLSlotElement).assignedNodes({ flatten: true }) as Array<HTMLOrSVGImageElement>;\n\n if (childNodes.length > 1) {\n return console.error(\"Multiple elements passed into SgdsCard's image slot\");\n }\n }\n\n render() {\n const tag = this.stretchedLink ? literal`a` : literal`div`;\n const cardTabIndex = !this.stretchedLink || this.disabled ? -1 : 0;\n\n return html`\n <${tag} \n class=\"card ${classMap({\n disabled: this.disabled\n })}\"\n tabindex=${cardTabIndex}\n >\n <div class=\"card-tinted-bg\"></div>\n <slot name=\"menu\"></slot>\n <div class=\"card-image\">\n <slot name=\"image\" @slotchange=${this.handleImgSlotChange}></slot>\n </div>\n <div class=\"card-media\">\n <slot name=\"icon\"></slot>\n </div>\n <div class=\"card-body\">\n <div class=\"card-header-container\">\n <div class=\"card-header\">\n <slot name=\"subtitle\"></slot>\n <h3 class=\"card-title\"><slot name=\"title\" @slotchange=${this.handleTitleSlotChange}></slot></h3>\n </div>\n <slot></slot>\n </div>\n <p class=\"card-text\">\n <slot name=\"description\"></slot>\n </p>\n <slot name=\"lower\"></slot>\n <slot name=\"link\" @slotchange=${this.handleLinkSlotChange}></slot>\n </div>\n </${tag}>\n `;\n }\n}\n\nexport default SgdsCard;\n"],"names":["cardStyle"],"mappings":";;;;;;;AAOA;;;;;;;;;;;AAWG;AACG,MAAO,QAAS,SAAQ,WAAW,CAAA;AAAzC,IAAA,WAAA,GAAA;;;QAW6C,IAAa,CAAA,aAAA,GAAsB,QAAQ,CAAC;;QAG5C,IAAe,CAAA,eAAA,GAAwB,SAAS,CAAC;KAyD7F;IAvDW,YAAY,GAAA;QACpB,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;YAChC,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CAAmB,CAAC;AAC5E,YAAA,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;SAC7B;QACD,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;YAC/B,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CAAmB,CAAC;AAC7E,YAAA,KAAK,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;SAC9B;KACF;AAED,IAAA,mBAAmB,CAAC,CAAQ,EAAA;AAC1B,QAAA,MAAM,UA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AA,CAAA,CAAA,CAAA;AAGmB,UAAA,CAAA;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAA6C,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,eAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAG5C,UAAA,CAAA;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAAkD,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,iBAAA,EAAA,KAAA,CAAA,CAAA;;;;"}
@@ -0,0 +1,3 @@
1
+ export type CardImageAdjustment = "default" | "padding around" | "aspect ratio";
2
+ export type CardImagePosition = "before" | "after";
3
+ export type CardOrientation = "vertical" | "horizontal";
@@ -1,6 +1,6 @@
1
1
  import { css } from 'lit';
2
2
 
3
- var css_248z = css`:host{display:block;position:relative}.combobox{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.combobox .dropdown-menu{min-width:100%}.dropdown{display:flex;height:100%}.sgds.combobox{align-items:stretch;display:flex;flex-wrap:wrap;justify-content:flex-end;position:relative;width:-webkit-fill-available;width:-moz-available}.dropdown-menu{box-sizing:border-box;max-height:10rem;overflow-x:hidden;overflow-y:auto}.visually-hidden{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.form-control-group.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-md);justify-content:space-between;min-height:var(--sgds-dimension-48);min-width:var(--sgds-dimension-256);padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:inline;flex-grow:1;font-size:var(--sgds-font-size-2);line-height:var(--sgds-line-height-body);outline:none;padding:0}.combobox-input-container{display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs);width:100%}.empty-menu{padding:var(--sgds-padding-sm) var(--sgds-padding-lg,20px)}.form-control-group.readonly{border-color:var(--sgds-border-color-muted)}.form-control-group:not(.disabled):not(.is-invalid):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-control-group:not(.disabled):not(.is-invalid):focus,.form-control-group:not(.disabled):not(.is-invalid):focus-within{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-control-group.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted)}`;
3
+ var css_248z = css`:host{display:block;position:relative}.combobox{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.dropdown{display:flex;height:100%}.sgds.combobox{align-items:stretch;display:flex;flex-wrap:wrap;justify-content:flex-end;position:relative;width:-webkit-fill-available;width:-moz-available}.dropdown-menu{box-sizing:border-box;max-height:10rem;overflow-x:hidden;overflow-y:auto}.visually-hidden{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.form-control-group.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-md);justify-content:space-between;min-height:var(--sgds-dimension-48);min-width:var(--sgds-dimension-256);padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:inline;flex-grow:1;font-size:var(--sgds-font-size-2);line-height:var(--sgds-line-height-body);outline:none;padding:0}.combobox-input-container{display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs);width:100%}.empty-menu{padding:var(--sgds-padding-sm) var(--sgds-padding-lg,20px)}.form-control-group.readonly{border-color:var(--sgds-border-color-muted)}.form-control-group:not(.disabled):not(.is-invalid):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-control-group:not(.disabled):not(.is-invalid):focus,.form-control-group:not(.disabled):not(.is-invalid):focus-within{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-control-group.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted)}`;
4
4
 
5
5
  export { css_248z as default };
6
6
  //# sourceMappingURL=combo-box.js.map
@@ -8605,6 +8605,7 @@
8605
8605
  //working
8606
8606
  this.dropdownConfig = {
8607
8607
  placement: "bottom-start",
8608
+ strategy: "fixed",
8608
8609
  modifiers: !this.noFlip
8609
8610
  ? this.modifierOpt
8610
8611
  : [
@@ -8702,7 +8703,7 @@
8702
8703
  state()
8703
8704
  ], DropdownElement.prototype, "dropdownConfig", void 0);
8704
8705
  __decorate([
8705
- property()
8706
+ property({ type: Array })
8706
8707
  ], DropdownElement.prototype, "modifierOpt", void 0);
8707
8708
  __decorate([
8708
8709
  property({ type: Boolean, reflect: true })
@@ -8856,6 +8857,19 @@
8856
8857
  state()
8857
8858
  ], DropdownListElement.prototype, "prevDropdownItemNo", void 0);
8858
8859
 
8860
+ const referenceTargetWidth = {
8861
+ name: "sameWidthAsTarget",
8862
+ enabled: true,
8863
+ phase: "beforeWrite",
8864
+ requires: ["computeStyles"],
8865
+ fn: ({ state }) => {
8866
+ state.styles.popper.width = `${state.rects.reference.width}px`;
8867
+ },
8868
+ effect: ({ state }) => {
8869
+ state.elements.popper.style.width = `${state.elements.reference.offsetWidth}px`;
8870
+ }
8871
+ };
8872
+
8859
8873
  class SelectElement extends SgdsFormValidatorMixin(DropdownListElement) {
8860
8874
  constructor() {
8861
8875
  super();
@@ -8907,7 +8921,8 @@
8907
8921
  options: {
8908
8922
  offset: [0, 8]
8909
8923
  }
8910
- }
8924
+ },
8925
+ referenceTargetWidth
8911
8926
  ];
8912
8927
  }
8913
8928
  connectedCallback() {
@@ -13123,7 +13138,7 @@
13123
13138
  property({ type: Boolean, reflect: true })
13124
13139
  ], ComboBoxItem.prototype, "checkbox", void 0);
13125
13140
 
13126
- var css_248z = css`:host{display:block;position:relative}.combobox{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.combobox .dropdown-menu{min-width:100%}.dropdown{display:flex;height:100%}.sgds.combobox{align-items:stretch;display:flex;flex-wrap:wrap;justify-content:flex-end;position:relative;width:-webkit-fill-available;width:-moz-available}.dropdown-menu{box-sizing:border-box;max-height:10rem;overflow-x:hidden;overflow-y:auto}.visually-hidden{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.form-control-group.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-md);justify-content:space-between;min-height:var(--sgds-dimension-48);min-width:var(--sgds-dimension-256);padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:inline;flex-grow:1;font-size:var(--sgds-font-size-2);line-height:var(--sgds-line-height-body);outline:none;padding:0}.combobox-input-container{display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs);width:100%}.empty-menu{padding:var(--sgds-padding-sm) var(--sgds-padding-lg,20px)}.form-control-group.readonly{border-color:var(--sgds-border-color-muted)}.form-control-group:not(.disabled):not(.is-invalid):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-control-group:not(.disabled):not(.is-invalid):focus,.form-control-group:not(.disabled):not(.is-invalid):focus-within{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-control-group.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted)}`;
13141
+ var css_248z = css`:host{display:block;position:relative}.combobox{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.dropdown{display:flex;height:100%}.sgds.combobox{align-items:stretch;display:flex;flex-wrap:wrap;justify-content:flex-end;position:relative;width:-webkit-fill-available;width:-moz-available}.dropdown-menu{box-sizing:border-box;max-height:10rem;overflow-x:hidden;overflow-y:auto}.visually-hidden{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.form-control-group.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-md);justify-content:space-between;min-height:var(--sgds-dimension-48);min-width:var(--sgds-dimension-256);padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:inline;flex-grow:1;font-size:var(--sgds-font-size-2);line-height:var(--sgds-line-height-body);outline:none;padding:0}.combobox-input-container{display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs);width:100%}.empty-menu{padding:var(--sgds-padding-sm) var(--sgds-padding-lg,20px)}.form-control-group.readonly{border-color:var(--sgds-border-color-muted)}.form-control-group:not(.disabled):not(.is-invalid):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-control-group:not(.disabled):not(.is-invalid):focus,.form-control-group:not(.disabled):not(.is-invalid):focus-within{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-control-group.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted)}`;
13127
13142
 
13128
13143
  /**
13129
13144
  * @summary ComboBox component is used for users to make one or more selections from a list through user input, keyboard or mouse actions