@govtechsg/sgds-web-component 2.0.1 → 2.1.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 (758) hide show
  1. package/package.json +1 -1
  2. package/react/accordion/index.cjs.js +2 -1
  3. package/react/accordion/index.cjs.js.map +1 -1
  4. package/react/accordion/index.js +2 -1
  5. package/react/accordion/index.js.map +1 -1
  6. package/react/accordion-item/index.cjs.js +2 -1
  7. package/react/accordion-item/index.cjs.js.map +1 -1
  8. package/react/accordion-item/index.js +2 -1
  9. package/react/accordion-item/index.js.map +1 -1
  10. package/react/action-card/index.cjs.js +2 -1
  11. package/react/action-card/index.cjs.js.map +1 -1
  12. package/react/action-card/index.js +2 -1
  13. package/react/action-card/index.js.map +1 -1
  14. package/react/alert/index.cjs.js +2 -1
  15. package/react/alert/index.cjs.js.map +1 -1
  16. package/react/alert/index.js +2 -1
  17. package/react/alert/index.js.map +1 -1
  18. package/react/alert-heading/index.cjs.js +2 -1
  19. package/react/alert-heading/index.cjs.js.map +1 -1
  20. package/react/alert-heading/index.js +2 -1
  21. package/react/alert-heading/index.js.map +1 -1
  22. package/react/alert-link/index.cjs.js +2 -1
  23. package/react/alert-link/index.cjs.js.map +1 -1
  24. package/react/alert-link/index.js +2 -1
  25. package/react/alert-link/index.js.map +1 -1
  26. package/react/badge/index.cjs.js +2 -1
  27. package/react/badge/index.cjs.js.map +1 -1
  28. package/react/badge/index.js +2 -1
  29. package/react/badge/index.js.map +1 -1
  30. package/{base → react/base}/card-element.cjs.js +1 -0
  31. package/react/base/card-element.cjs.js.map +1 -0
  32. package/react/base/card-element.js +26 -0
  33. package/react/base/card-element.js.map +1 -0
  34. package/{base → react/base}/card.cjs.js +1 -0
  35. package/{components/Card → react/base}/card.cjs.js.map +1 -1
  36. package/react/base/card.js +7 -0
  37. package/react/base/card.js.map +1 -0
  38. package/{base → react/base}/dropdown-element.cjs.js +1 -0
  39. package/react/base/dropdown-element.cjs.js.map +1 -0
  40. package/react/base/dropdown-element.js +174 -0
  41. package/react/base/dropdown-element.js.map +1 -0
  42. package/{base → react/base}/dropdown-list-element.cjs.js +1 -0
  43. package/react/base/dropdown-list-element.cjs.js.map +1 -0
  44. package/react/base/dropdown-list-element.js +130 -0
  45. package/react/base/dropdown-list-element.js.map +1 -0
  46. package/{base → react/base}/form-check-element.cjs.js +1 -0
  47. package/react/base/form-check-element.cjs.js.map +1 -0
  48. package/react/base/form-check-element.js +167 -0
  49. package/react/base/form-check-element.js.map +1 -0
  50. package/{base → react/base}/link-element.cjs.js +1 -0
  51. package/react/base/link-element.cjs.js.map +1 -0
  52. package/react/base/link-element.js +53 -0
  53. package/react/base/link-element.js.map +1 -0
  54. package/{base → react/base}/sgds-element.cjs.js +1 -0
  55. package/react/base/sgds-element.cjs.js.map +1 -0
  56. package/{base → react/base}/sgds-element.cjs2.js +1 -0
  57. package/{base → react/base}/sgds-element.cjs2.js.map +1 -1
  58. package/react/base/sgds-element.js +24 -0
  59. package/react/base/sgds-element.js.map +1 -0
  60. package/react/base/sgds-element2.js +7 -0
  61. package/react/base/sgds-element2.js.map +1 -0
  62. package/react/breadcrumb/index.cjs.js +2 -1
  63. package/react/breadcrumb/index.cjs.js.map +1 -1
  64. package/react/breadcrumb/index.js +2 -1
  65. package/react/breadcrumb/index.js.map +1 -1
  66. package/react/breadcrumb-item/index.cjs.js +2 -1
  67. package/react/breadcrumb-item/index.cjs.js.map +1 -1
  68. package/react/breadcrumb-item/index.js +2 -1
  69. package/react/breadcrumb-item/index.js.map +1 -1
  70. package/react/button/index.cjs.js +2 -1
  71. package/react/button/index.cjs.js.map +1 -1
  72. package/react/button/index.js +2 -1
  73. package/react/button/index.js.map +1 -1
  74. package/react/card/index.cjs.js +2 -1
  75. package/react/card/index.cjs.js.map +1 -1
  76. package/react/card/index.js +2 -1
  77. package/react/card/index.js.map +1 -1
  78. package/react/checkbox/index.cjs.js +2 -1
  79. package/react/checkbox/index.cjs.js.map +1 -1
  80. package/react/checkbox/index.js +2 -1
  81. package/react/checkbox/index.js.map +1 -1
  82. package/react/combo-box/index.cjs.js +2 -1
  83. package/react/combo-box/index.cjs.js.map +1 -1
  84. package/react/combo-box/index.js +2 -1
  85. package/react/combo-box/index.js.map +1 -1
  86. package/{components → react/components}/Accordion/accordion-item.cjs.js +1 -0
  87. package/{components → react/components}/Accordion/accordion-item.cjs.js.map +1 -1
  88. package/react/components/Accordion/accordion-item.js +7 -0
  89. package/react/components/Accordion/accordion-item.js.map +1 -0
  90. package/{components → react/components}/Accordion/accordion.cjs.js +1 -0
  91. package/{components → react/components}/Accordion/accordion.cjs.js.map +1 -1
  92. package/react/components/Accordion/accordion.js +7 -0
  93. package/react/components/Accordion/accordion.js.map +1 -0
  94. package/{components → react/components}/Accordion/sgds-accordion-item.cjs.js +1 -0
  95. package/react/components/Accordion/sgds-accordion-item.cjs.js.map +1 -0
  96. package/react/components/Accordion/sgds-accordion-item.js +204 -0
  97. package/react/components/Accordion/sgds-accordion-item.js.map +1 -0
  98. package/{components → react/components}/Accordion/sgds-accordion.cjs.js +1 -0
  99. package/react/components/Accordion/sgds-accordion.cjs.js.map +1 -0
  100. package/react/components/Accordion/sgds-accordion.js +87 -0
  101. package/react/components/Accordion/sgds-accordion.js.map +1 -0
  102. package/{components → react/components}/ActionCard/action-card.cjs.js +1 -0
  103. package/{components → react/components}/ActionCard/action-card.cjs.js.map +1 -1
  104. package/react/components/ActionCard/action-card.js +7 -0
  105. package/react/components/ActionCard/action-card.js.map +1 -0
  106. package/{components → react/components}/ActionCard/sgds-action-card.cjs.js +1 -0
  107. package/react/components/ActionCard/sgds-action-card.cjs.js.map +1 -0
  108. package/react/components/ActionCard/sgds-action-card.js +155 -0
  109. package/react/components/ActionCard/sgds-action-card.js.map +1 -0
  110. package/{components → react/components}/Alert/alert-link.cjs.js +1 -0
  111. package/{components → react/components}/Alert/alert-link.cjs.js.map +1 -1
  112. package/react/components/Alert/alert-link.js +7 -0
  113. package/react/components/Alert/alert-link.js.map +1 -0
  114. package/{components → react/components}/Alert/alert.cjs.js +1 -0
  115. package/{components → react/components}/Alert/alert.cjs.js.map +1 -1
  116. package/react/components/Alert/alert.js +7 -0
  117. package/react/components/Alert/alert.js.map +1 -0
  118. package/{components → react/components}/Alert/sgds-alert-heading.cjs.js +1 -0
  119. package/react/components/Alert/sgds-alert-heading.cjs.js.map +1 -0
  120. package/react/components/Alert/sgds-alert-heading.js +33 -0
  121. package/react/components/Alert/sgds-alert-heading.js.map +1 -0
  122. package/{components → react/components}/Alert/sgds-alert-link.cjs.js +1 -0
  123. package/react/components/Alert/sgds-alert-link.cjs.js.map +1 -0
  124. package/react/components/Alert/sgds-alert-link.js +32 -0
  125. package/react/components/Alert/sgds-alert-link.js.map +1 -0
  126. package/{components → react/components}/Alert/sgds-alert.cjs.js +1 -0
  127. package/react/components/Alert/sgds-alert.cjs.js.map +1 -0
  128. package/react/components/Alert/sgds-alert.js +90 -0
  129. package/react/components/Alert/sgds-alert.js.map +1 -0
  130. package/{components → react/components}/Badge/badge.cjs.js +1 -0
  131. package/{components → react/components}/Badge/badge.cjs.js.map +1 -1
  132. package/react/components/Badge/badge.js +7 -0
  133. package/react/components/Badge/badge.js.map +1 -0
  134. package/{components → react/components}/Badge/sgds-badge.cjs.js +1 -0
  135. package/react/components/Badge/sgds-badge.cjs.js.map +1 -0
  136. package/react/components/Badge/sgds-badge.js +53 -0
  137. package/react/components/Badge/sgds-badge.js.map +1 -0
  138. package/{components → react/components}/Breadcrumb/breadcrumb-item.cjs.js +1 -0
  139. package/{components → react/components}/Breadcrumb/breadcrumb-item.cjs.js.map +1 -1
  140. package/react/components/Breadcrumb/breadcrumb-item.js +7 -0
  141. package/react/components/Breadcrumb/breadcrumb-item.js.map +1 -0
  142. package/{components → react/components}/Breadcrumb/breadcrumb.cjs.js +1 -0
  143. package/{components → react/components}/Breadcrumb/breadcrumb.cjs.js.map +1 -1
  144. package/react/components/Breadcrumb/breadcrumb.js +7 -0
  145. package/react/components/Breadcrumb/breadcrumb.js.map +1 -0
  146. package/{components → react/components}/Breadcrumb/sgds-breadcrumb-item.cjs.js +1 -0
  147. package/react/components/Breadcrumb/sgds-breadcrumb-item.cjs.js.map +1 -0
  148. package/react/components/Breadcrumb/sgds-breadcrumb-item.js +65 -0
  149. package/react/components/Breadcrumb/sgds-breadcrumb-item.js.map +1 -0
  150. package/{components → react/components}/Breadcrumb/sgds-breadcrumb.cjs.js +1 -0
  151. package/react/components/Breadcrumb/sgds-breadcrumb.cjs.js.map +1 -0
  152. package/react/components/Breadcrumb/sgds-breadcrumb.js +82 -0
  153. package/react/components/Breadcrumb/sgds-breadcrumb.js.map +1 -0
  154. package/{components → react/components}/Button/button.cjs.js +1 -0
  155. package/{components → react/components}/Button/button.cjs.js.map +1 -1
  156. package/react/components/Button/button.js +7 -0
  157. package/react/components/Button/button.js.map +1 -0
  158. package/{components → react/components}/Button/sgds-button.cjs.js +1 -0
  159. package/react/components/Button/sgds-button.cjs.js.map +1 -0
  160. package/react/components/Button/sgds-button.js +166 -0
  161. package/react/components/Button/sgds-button.js.map +1 -0
  162. package/{components → react/components}/Card/card.cjs.js +1 -0
  163. package/{base → react/components/Card}/card.cjs.js.map +1 -1
  164. package/react/components/Card/card.js +7 -0
  165. package/react/components/Card/card.js.map +1 -0
  166. package/{components → react/components}/Card/sgds-card.cjs.js +1 -0
  167. package/react/components/Card/sgds-card.cjs.js.map +1 -0
  168. package/react/components/Card/sgds-card.js +76 -0
  169. package/react/components/Card/sgds-card.js.map +1 -0
  170. package/{components → react/components}/Checkbox/checkbox.cjs.js +1 -0
  171. package/{components → react/components}/Checkbox/checkbox.cjs.js.map +1 -1
  172. package/react/components/Checkbox/checkbox.js +7 -0
  173. package/react/components/Checkbox/checkbox.js.map +1 -0
  174. package/{components → react/components}/Checkbox/sgds-checkbox.cjs.js +1 -0
  175. package/react/components/Checkbox/sgds-checkbox.cjs.js.map +1 -0
  176. package/react/components/Checkbox/sgds-checkbox.js +26 -0
  177. package/react/components/Checkbox/sgds-checkbox.js.map +1 -0
  178. package/{components → react/components}/ComboBox/combo-box.cjs.js +1 -0
  179. package/{components → react/components}/ComboBox/combo-box.cjs.js.map +1 -1
  180. package/react/components/ComboBox/combo-box.js +7 -0
  181. package/react/components/ComboBox/combo-box.js.map +1 -0
  182. package/{components → react/components}/ComboBox/sgds-combo-box.cjs.js +1 -0
  183. package/react/components/ComboBox/sgds-combo-box.cjs.js.map +1 -0
  184. package/react/components/ComboBox/sgds-combo-box.js +194 -0
  185. package/react/components/ComboBox/sgds-combo-box.js.map +1 -0
  186. package/{components → react/components}/Datepicker/datepicker-calendar.cjs.js +1 -0
  187. package/react/components/Datepicker/datepicker-calendar.cjs.js.map +1 -0
  188. package/{components → react/components}/Datepicker/datepicker-calendar.cjs2.js +1 -0
  189. package/{components → react/components}/Datepicker/datepicker-calendar.cjs2.js.map +1 -1
  190. package/react/components/Datepicker/datepicker-calendar.js +458 -0
  191. package/react/components/Datepicker/datepicker-calendar.js.map +1 -0
  192. package/react/components/Datepicker/datepicker-calendar2.js +7 -0
  193. package/react/components/Datepicker/datepicker-calendar2.js.map +1 -0
  194. package/{components → react/components}/Datepicker/datepicker-header.cjs.js +1 -0
  195. package/react/components/Datepicker/datepicker-header.cjs.js.map +1 -0
  196. package/{components → react/components}/Datepicker/datepicker-header.cjs2.js +1 -0
  197. package/{components → react/components}/Datepicker/datepicker-header.cjs2.js.map +1 -1
  198. package/react/components/Datepicker/datepicker-header.js +227 -0
  199. package/react/components/Datepicker/datepicker-header.js.map +1 -0
  200. package/react/components/Datepicker/datepicker-header2.js +7 -0
  201. package/react/components/Datepicker/datepicker-header2.js.map +1 -0
  202. package/{components → react/components}/Datepicker/datepicker-input.cjs.js +1 -0
  203. package/react/components/Datepicker/datepicker-input.cjs.js.map +1 -0
  204. package/{components → react/components}/Datepicker/datepicker-input.cjs2.js +1 -0
  205. package/{components → react/components}/Datepicker/datepicker-input.cjs2.js.map +1 -1
  206. package/react/components/Datepicker/datepicker-input.js +150 -0
  207. package/react/components/Datepicker/datepicker-input.js.map +1 -0
  208. package/react/components/Datepicker/datepicker-input2.js +7 -0
  209. package/react/components/Datepicker/datepicker-input2.js.map +1 -0
  210. package/{components → react/components}/Datepicker/datepicker.cjs.js +1 -0
  211. package/{components → react/components}/Datepicker/datepicker.cjs.js.map +1 -1
  212. package/react/components/Datepicker/datepicker.js +7 -0
  213. package/react/components/Datepicker/datepicker.js.map +1 -0
  214. package/{components → react/components}/Datepicker/sgds-datepicker.cjs.js +1 -0
  215. package/react/components/Datepicker/sgds-datepicker.cjs.js.map +1 -0
  216. package/react/components/Datepicker/sgds-datepicker.js +484 -0
  217. package/react/components/Datepicker/sgds-datepicker.js.map +1 -0
  218. package/{components → react/components}/Drawer/drawer.cjs.js +1 -0
  219. package/{components → react/components}/Drawer/drawer.cjs.js.map +1 -1
  220. package/react/components/Drawer/drawer.js +7 -0
  221. package/react/components/Drawer/drawer.js.map +1 -0
  222. package/{components → react/components}/Drawer/sgds-drawer.cjs.js +1 -0
  223. package/react/components/Drawer/sgds-drawer.cjs.js.map +1 -0
  224. package/react/components/Drawer/sgds-drawer.js +413 -0
  225. package/react/components/Drawer/sgds-drawer.js.map +1 -0
  226. package/{components → react/components}/Dropdown/dropdown.cjs.js +1 -0
  227. package/{components → react/components}/Dropdown/dropdown.cjs.js.map +1 -1
  228. package/react/components/Dropdown/dropdown.js +7 -0
  229. package/react/components/Dropdown/dropdown.js.map +1 -0
  230. package/{components → react/components}/Dropdown/sgds-dropdown-item.cjs.js +1 -0
  231. package/react/components/Dropdown/sgds-dropdown-item.cjs.js.map +1 -0
  232. package/react/components/Dropdown/sgds-dropdown-item.js +47 -0
  233. package/react/components/Dropdown/sgds-dropdown-item.js.map +1 -0
  234. package/{components → react/components}/Dropdown/sgds-dropdown.cjs.js +1 -0
  235. package/react/components/Dropdown/sgds-dropdown.cjs.js.map +1 -0
  236. package/react/components/Dropdown/sgds-dropdown.js +117 -0
  237. package/react/components/Dropdown/sgds-dropdown.js.map +1 -0
  238. package/{components → react/components}/FileUpload/file-upload.cjs.js +1 -0
  239. package/{components → react/components}/FileUpload/file-upload.cjs.js.map +1 -1
  240. package/react/components/FileUpload/file-upload.js +7 -0
  241. package/react/components/FileUpload/file-upload.js.map +1 -0
  242. package/{components → react/components}/FileUpload/sgds-file-upload.cjs.js +1 -0
  243. package/react/components/FileUpload/sgds-file-upload.cjs.js.map +1 -0
  244. package/react/components/FileUpload/sgds-file-upload.js +208 -0
  245. package/react/components/FileUpload/sgds-file-upload.js.map +1 -0
  246. package/{components → react/components}/Footer/footer.cjs.js +1 -0
  247. package/{components → react/components}/Footer/footer.cjs.js.map +1 -1
  248. package/react/components/Footer/footer.js +7 -0
  249. package/react/components/Footer/footer.js.map +1 -0
  250. package/{components → react/components}/Footer/sgds-footer.cjs.js +1 -0
  251. package/react/components/Footer/sgds-footer.cjs.js.map +1 -0
  252. package/react/components/Footer/sgds-footer.js +155 -0
  253. package/react/components/Footer/sgds-footer.js.map +1 -0
  254. package/{components → react/components}/Input/input.cjs.js +1 -0
  255. package/{components → react/components}/Input/input.cjs.js.map +1 -1
  256. package/react/components/Input/input.js +7 -0
  257. package/react/components/Input/input.js.map +1 -0
  258. package/{components → react/components}/Input/sgds-input.cjs.js +1 -0
  259. package/react/components/Input/sgds-input.cjs.js.map +1 -0
  260. package/react/components/Input/sgds-input.js +262 -0
  261. package/react/components/Input/sgds-input.js.map +1 -0
  262. package/{components → react/components}/Mainnav/mainnav-dropdown.cjs.js +1 -0
  263. package/{components → react/components}/Mainnav/mainnav-dropdown.cjs.js.map +1 -1
  264. package/react/components/Mainnav/mainnav-dropdown.js +7 -0
  265. package/react/components/Mainnav/mainnav-dropdown.js.map +1 -0
  266. package/{components → react/components}/Mainnav/mainnav-item.cjs.js +1 -0
  267. package/{components → react/components}/Mainnav/mainnav-item.cjs.js.map +1 -1
  268. package/react/components/Mainnav/mainnav-item.js +7 -0
  269. package/react/components/Mainnav/mainnav-item.js.map +1 -0
  270. package/{components → react/components}/Mainnav/mainnav.cjs.js +1 -0
  271. package/{components → react/components}/Mainnav/mainnav.cjs.js.map +1 -1
  272. package/react/components/Mainnav/mainnav.js +7 -0
  273. package/react/components/Mainnav/mainnav.js.map +1 -0
  274. package/{components → react/components}/Mainnav/sgds-mainnav-dropdown.cjs.js +1 -0
  275. package/react/components/Mainnav/sgds-mainnav-dropdown.cjs.js.map +1 -0
  276. package/react/components/Mainnav/sgds-mainnav-dropdown.js +85 -0
  277. package/react/components/Mainnav/sgds-mainnav-dropdown.js.map +1 -0
  278. package/{components → react/components}/Mainnav/sgds-mainnav-item.cjs.js +1 -0
  279. package/react/components/Mainnav/sgds-mainnav-item.cjs.js.map +1 -0
  280. package/react/components/Mainnav/sgds-mainnav-item.js +14 -0
  281. package/react/components/Mainnav/sgds-mainnav-item.js.map +1 -0
  282. package/{components → react/components}/Mainnav/sgds-mainnav.cjs.js +1 -0
  283. package/react/components/Mainnav/sgds-mainnav.cjs.js.map +1 -0
  284. package/react/components/Mainnav/sgds-mainnav.js +227 -0
  285. package/react/components/Mainnav/sgds-mainnav.js.map +1 -0
  286. package/{components → react/components}/Masthead/masthead.cjs.js +1 -0
  287. package/{components → react/components}/Masthead/masthead.cjs.js.map +1 -1
  288. package/react/components/Masthead/masthead.js +7 -0
  289. package/react/components/Masthead/masthead.js.map +1 -0
  290. package/{components → react/components}/Masthead/sgds-masthead.cjs.js +1 -0
  291. package/react/components/Masthead/sgds-masthead.cjs.js.map +1 -0
  292. package/react/components/Masthead/sgds-masthead.js +182 -0
  293. package/react/components/Masthead/sgds-masthead.js.map +1 -0
  294. package/{components → react/components}/Modal/modal.cjs.js +1 -0
  295. package/{components → react/components}/Modal/modal.cjs.js.map +1 -1
  296. package/react/components/Modal/modal.js +7 -0
  297. package/react/components/Modal/modal.js.map +1 -0
  298. package/{components → react/components}/Modal/sgds-modal.cjs.js +1 -0
  299. package/react/components/Modal/sgds-modal.cjs.js.map +1 -0
  300. package/react/components/Modal/sgds-modal.js +340 -0
  301. package/react/components/Modal/sgds-modal.js.map +1 -0
  302. package/{components → react/components}/Pagination/pagination.cjs.js +1 -0
  303. package/{components → react/components}/Pagination/pagination.cjs.js.map +1 -1
  304. package/react/components/Pagination/pagination.js +7 -0
  305. package/react/components/Pagination/pagination.js.map +1 -0
  306. package/{components → react/components}/Pagination/sgds-pagination.cjs.js +1 -0
  307. package/react/components/Pagination/sgds-pagination.cjs.js.map +1 -0
  308. package/react/components/Pagination/sgds-pagination.js +364 -0
  309. package/react/components/Pagination/sgds-pagination.js.map +1 -0
  310. package/{components → react/components}/Progress/progress-bar.cjs.js +1 -0
  311. package/{components → react/components}/Progress/progress-bar.cjs.js.map +1 -1
  312. package/react/components/Progress/progress-bar.js +7 -0
  313. package/react/components/Progress/progress-bar.js.map +1 -0
  314. package/{components → react/components}/Progress/progress.cjs.js +1 -0
  315. package/{components → react/components}/Progress/progress.cjs.js.map +1 -1
  316. package/react/components/Progress/progress.js +7 -0
  317. package/react/components/Progress/progress.js.map +1 -0
  318. package/{components → react/components}/Progress/sgds-progress-bar.cjs.js +1 -0
  319. package/react/components/Progress/sgds-progress-bar.cjs.js.map +1 -0
  320. package/react/components/Progress/sgds-progress-bar.js +59 -0
  321. package/react/components/Progress/sgds-progress-bar.js.map +1 -0
  322. package/{components → react/components}/Progress/sgds-progress.cjs.js +1 -0
  323. package/react/components/Progress/sgds-progress.cjs.js.map +1 -0
  324. package/react/components/Progress/sgds-progress.js +30 -0
  325. package/react/components/Progress/sgds-progress.js.map +1 -0
  326. package/{components → react/components}/QuantityToggle/quantity-toggle.cjs.js +1 -0
  327. package/{components → react/components}/QuantityToggle/quantity-toggle.cjs.js.map +1 -1
  328. package/react/components/QuantityToggle/quantity-toggle.js +7 -0
  329. package/react/components/QuantityToggle/quantity-toggle.js.map +1 -0
  330. package/{components → react/components}/QuantityToggle/sgds-quantity-toggle.cjs.js +1 -0
  331. package/react/components/QuantityToggle/sgds-quantity-toggle.cjs.js.map +1 -0
  332. package/react/components/QuantityToggle/sgds-quantity-toggle.js +210 -0
  333. package/react/components/QuantityToggle/sgds-quantity-toggle.js.map +1 -0
  334. package/{components → react/components}/Radio/radio-group.cjs.js +1 -0
  335. package/{components → react/components}/Radio/radio-group.cjs.js.map +1 -1
  336. package/react/components/Radio/radio-group.js +7 -0
  337. package/react/components/Radio/radio-group.js.map +1 -0
  338. package/{components → react/components}/Radio/radio.cjs.js +1 -0
  339. package/{components → react/components}/Radio/radio.cjs.js.map +1 -1
  340. package/react/components/Radio/radio.js +7 -0
  341. package/react/components/Radio/radio.js.map +1 -0
  342. package/{components → react/components}/Radio/sgds-radio-group.cjs.js +1 -0
  343. package/react/components/Radio/sgds-radio-group.cjs.js.map +1 -0
  344. package/react/components/Radio/sgds-radio-group.js +240 -0
  345. package/react/components/Radio/sgds-radio-group.js.map +1 -0
  346. package/{components → react/components}/Radio/sgds-radio.cjs.js +1 -0
  347. package/react/components/Radio/sgds-radio.cjs.js.map +1 -0
  348. package/react/components/Radio/sgds-radio.js +138 -0
  349. package/react/components/Radio/sgds-radio.js.map +1 -0
  350. package/{components → react/components}/Sidenav/sgds-sidenav-item.cjs.js +1 -0
  351. package/react/components/Sidenav/sgds-sidenav-item.cjs.js.map +1 -0
  352. package/react/components/Sidenav/sgds-sidenav-item.js +256 -0
  353. package/react/components/Sidenav/sgds-sidenav-item.js.map +1 -0
  354. package/{components → react/components}/Sidenav/sgds-sidenav-link.cjs.js +1 -0
  355. package/react/components/Sidenav/sgds-sidenav-link.cjs.js.map +1 -0
  356. package/react/components/Sidenav/sgds-sidenav-link.js +18 -0
  357. package/react/components/Sidenav/sgds-sidenav-link.js.map +1 -0
  358. package/{components → react/components}/Sidenav/sgds-sidenav.cjs.js +1 -0
  359. package/react/components/Sidenav/sgds-sidenav.cjs.js.map +1 -0
  360. package/react/components/Sidenav/sgds-sidenav.js +75 -0
  361. package/react/components/Sidenav/sgds-sidenav.js.map +1 -0
  362. package/{components → react/components}/Sidenav/sidenav-item.cjs.js +1 -0
  363. package/{components → react/components}/Sidenav/sidenav-item.cjs.js.map +1 -1
  364. package/react/components/Sidenav/sidenav-item.js +7 -0
  365. package/react/components/Sidenav/sidenav-item.js.map +1 -0
  366. package/{components → react/components}/Sidenav/sidenav-link.cjs.js +1 -0
  367. package/{components → react/components}/Sidenav/sidenav-link.cjs.js.map +1 -1
  368. package/react/components/Sidenav/sidenav-link.js +7 -0
  369. package/react/components/Sidenav/sidenav-link.js.map +1 -0
  370. package/{components → react/components}/Sidenav/sidenav.cjs.js +1 -0
  371. package/{components → react/components}/Sidenav/sidenav.cjs.js.map +1 -1
  372. package/react/components/Sidenav/sidenav.js +7 -0
  373. package/react/components/Sidenav/sidenav.js.map +1 -0
  374. package/{components → react/components}/Spinner/sgds-spinner.cjs.js +1 -0
  375. package/react/components/Spinner/sgds-spinner.cjs.js.map +1 -0
  376. package/react/components/Spinner/sgds-spinner.js +38 -0
  377. package/react/components/Spinner/sgds-spinner.js.map +1 -0
  378. package/{components → react/components}/Spinner/spinner.cjs.js +1 -0
  379. package/{components → react/components}/Spinner/spinner.cjs.js.map +1 -1
  380. package/react/components/Spinner/spinner.js +8 -0
  381. package/react/components/Spinner/spinner.js.map +1 -0
  382. package/{components → react/components}/Stepper/sgds-stepper.cjs.js +1 -0
  383. package/react/components/Stepper/sgds-stepper.cjs.js.map +1 -0
  384. package/react/components/Stepper/sgds-stepper.js +132 -0
  385. package/react/components/Stepper/sgds-stepper.js.map +1 -0
  386. package/{components → react/components}/Stepper/stepper.cjs.js +1 -0
  387. package/{components → react/components}/Stepper/stepper.cjs.js.map +1 -1
  388. package/react/components/Stepper/stepper.js +7 -0
  389. package/react/components/Stepper/stepper.js.map +1 -0
  390. package/{components → react/components}/Tab/sgds-tab-group.cjs.js +1 -0
  391. package/react/components/Tab/sgds-tab-group.cjs.js.map +1 -0
  392. package/react/components/Tab/sgds-tab-group.js +233 -0
  393. package/react/components/Tab/sgds-tab-group.js.map +1 -0
  394. package/{components → react/components}/Tab/sgds-tab-panel.cjs.js +1 -0
  395. package/react/components/Tab/sgds-tab-panel.cjs.js.map +1 -0
  396. package/react/components/Tab/sgds-tab-panel.js +63 -0
  397. package/react/components/Tab/sgds-tab-panel.js.map +1 -0
  398. package/{components → react/components}/Tab/sgds-tab.cjs.js +1 -0
  399. package/react/components/Tab/sgds-tab.cjs.js.map +1 -0
  400. package/react/components/Tab/sgds-tab.js +110 -0
  401. package/react/components/Tab/sgds-tab.js.map +1 -0
  402. package/{components → react/components}/Tab/tab-group.cjs.js +1 -0
  403. package/{components → react/components}/Tab/tab-group.cjs.js.map +1 -1
  404. package/react/components/Tab/tab-group.js +7 -0
  405. package/react/components/Tab/tab-group.js.map +1 -0
  406. package/{components → react/components}/Tab/tab-panel.cjs.js +1 -0
  407. package/{components → react/components}/Tab/tab-panel.cjs.js.map +1 -1
  408. package/react/components/Tab/tab-panel.js +7 -0
  409. package/react/components/Tab/tab-panel.js.map +1 -0
  410. package/{components → react/components}/Tab/tab.cjs.js +1 -0
  411. package/{components → react/components}/Tab/tab.cjs.js.map +1 -1
  412. package/react/components/Tab/tab.js +7 -0
  413. package/react/components/Tab/tab.js.map +1 -0
  414. package/{components → react/components}/Table/sgds-table.cjs.js +1 -0
  415. package/react/components/Table/sgds-table.cjs.js.map +1 -0
  416. package/react/components/Table/sgds-table.js +267 -0
  417. package/react/components/Table/sgds-table.js.map +1 -0
  418. package/{components → react/components}/Table/table.cjs.js +1 -0
  419. package/{components → react/components}/Table/table.cjs.js.map +1 -1
  420. package/react/components/Table/table.js +7 -0
  421. package/react/components/Table/table.js.map +1 -0
  422. package/{components → react/components}/Textarea/sgds-textarea.cjs.js +1 -0
  423. package/react/components/Textarea/sgds-textarea.cjs.js.map +1 -0
  424. package/react/components/Textarea/sgds-textarea.js +252 -0
  425. package/react/components/Textarea/sgds-textarea.js.map +1 -0
  426. package/{components → react/components}/Textarea/textarea.cjs.js +1 -0
  427. package/{components → react/components}/Textarea/textarea.cjs.js.map +1 -1
  428. package/react/components/Textarea/textarea.js +7 -0
  429. package/react/components/Textarea/textarea.js.map +1 -0
  430. package/{components → react/components}/Toast/sgds-toast-container.cjs.js +1 -0
  431. package/react/components/Toast/sgds-toast-container.cjs.js.map +1 -0
  432. package/react/components/Toast/sgds-toast-container.js +36 -0
  433. package/react/components/Toast/sgds-toast-container.js.map +1 -0
  434. package/{components → react/components}/Toast/sgds-toast.cjs.js +1 -0
  435. package/react/components/Toast/sgds-toast.cjs.js.map +1 -0
  436. package/react/components/Toast/sgds-toast.js +152 -0
  437. package/react/components/Toast/sgds-toast.js.map +1 -0
  438. package/{components → react/components}/Toast/toast-container.cjs.js +1 -0
  439. package/{components → react/components}/Toast/toast-container.cjs.js.map +1 -1
  440. package/react/components/Toast/toast-container.js +7 -0
  441. package/react/components/Toast/toast-container.js.map +1 -0
  442. package/{components → react/components}/Toast/toast.cjs.js +1 -0
  443. package/{components → react/components}/Toast/toast.cjs.js.map +1 -1
  444. package/react/components/Toast/toast.js +7 -0
  445. package/react/components/Toast/toast.js.map +1 -0
  446. package/{components → react/components}/Tooltip/sgds-tooltip.cjs.js +1 -0
  447. package/react/components/Tooltip/sgds-tooltip.cjs.js.map +1 -0
  448. package/react/components/Tooltip/sgds-tooltip.js +121 -0
  449. package/react/components/Tooltip/sgds-tooltip.js.map +1 -0
  450. package/{components → react/components}/Tooltip/tooltip.cjs.js +1 -0
  451. package/{components → react/components}/Tooltip/tooltip.cjs.js.map +1 -1
  452. package/react/components/Tooltip/tooltip.js +7 -0
  453. package/react/components/Tooltip/tooltip.js.map +1 -0
  454. package/react/datepicker/index.cjs.js +2 -1
  455. package/react/datepicker/index.cjs.js.map +1 -1
  456. package/react/datepicker/index.js +2 -1
  457. package/react/datepicker/index.js.map +1 -1
  458. package/react/drawer/index.cjs.js +2 -1
  459. package/react/drawer/index.cjs.js.map +1 -1
  460. package/react/drawer/index.js +2 -1
  461. package/react/drawer/index.js.map +1 -1
  462. package/react/dropdown/index.cjs.js +2 -1
  463. package/react/dropdown/index.cjs.js.map +1 -1
  464. package/react/dropdown/index.js +2 -1
  465. package/react/dropdown/index.js.map +1 -1
  466. package/react/dropdown-item/index.cjs.js +2 -1
  467. package/react/dropdown-item/index.cjs.js.map +1 -1
  468. package/react/dropdown-item/index.js +2 -1
  469. package/react/dropdown-item/index.js.map +1 -1
  470. package/react/file-upload/index.cjs.js +2 -1
  471. package/react/file-upload/index.cjs.js.map +1 -1
  472. package/react/file-upload/index.js +2 -1
  473. package/react/file-upload/index.js.map +1 -1
  474. package/react/footer/index.cjs.js +2 -1
  475. package/react/footer/index.cjs.js.map +1 -1
  476. package/react/footer/index.js +2 -1
  477. package/react/footer/index.js.map +1 -1
  478. package/react/index.cjs.js +1 -0
  479. package/react/index.cjs.js.map +1 -1
  480. package/react/index.js +1 -0
  481. package/react/index.js.map +1 -1
  482. package/react/input/index.cjs.js +2 -1
  483. package/react/input/index.cjs.js.map +1 -1
  484. package/react/input/index.js +2 -1
  485. package/react/input/index.js.map +1 -1
  486. package/{internals → react/internals}/CloseButton/close-button.cjs.js +1 -0
  487. package/{internals → react/internals}/CloseButton/close-button.cjs.js.map +1 -1
  488. package/react/internals/CloseButton/close-button.js +7 -0
  489. package/react/internals/CloseButton/close-button.js.map +1 -0
  490. package/{internals → react/internals}/CloseButton/sgds-close-button.cjs.js +1 -0
  491. package/react/internals/CloseButton/sgds-close-button.cjs.js.map +1 -0
  492. package/react/internals/CloseButton/sgds-close-button.js +55 -0
  493. package/react/internals/CloseButton/sgds-close-button.js.map +1 -0
  494. package/react/mainnav/index.cjs.js +2 -1
  495. package/react/mainnav/index.cjs.js.map +1 -1
  496. package/react/mainnav/index.js +2 -1
  497. package/react/mainnav/index.js.map +1 -1
  498. package/react/mainnav-dropdown/index.cjs.js +2 -1
  499. package/react/mainnav-dropdown/index.cjs.js.map +1 -1
  500. package/react/mainnav-dropdown/index.js +2 -1
  501. package/react/mainnav-dropdown/index.js.map +1 -1
  502. package/react/mainnav-item/index.cjs.js +2 -1
  503. package/react/mainnav-item/index.cjs.js.map +1 -1
  504. package/react/mainnav-item/index.js +2 -1
  505. package/react/mainnav-item/index.js.map +1 -1
  506. package/react/masthead/index.cjs.js +2 -1
  507. package/react/masthead/index.cjs.js.map +1 -1
  508. package/react/masthead/index.js +2 -1
  509. package/react/masthead/index.js.map +1 -1
  510. package/react/modal/index.cjs.js +2 -1
  511. package/react/modal/index.cjs.js.map +1 -1
  512. package/react/modal/index.js +2 -1
  513. package/react/modal/index.js.map +1 -1
  514. package/react/pagination/index.cjs.js +2 -1
  515. package/react/pagination/index.cjs.js.map +1 -1
  516. package/react/pagination/index.js +2 -1
  517. package/react/pagination/index.js.map +1 -1
  518. package/react/progress/index.cjs.js +2 -1
  519. package/react/progress/index.cjs.js.map +1 -1
  520. package/react/progress/index.js +2 -1
  521. package/react/progress/index.js.map +1 -1
  522. package/react/progress-bar/index.cjs.js +2 -1
  523. package/react/progress-bar/index.cjs.js.map +1 -1
  524. package/react/progress-bar/index.js +2 -1
  525. package/react/progress-bar/index.js.map +1 -1
  526. package/react/quantity-toggle/index.cjs.js +2 -1
  527. package/react/quantity-toggle/index.cjs.js.map +1 -1
  528. package/react/quantity-toggle/index.js +2 -1
  529. package/react/quantity-toggle/index.js.map +1 -1
  530. package/react/radio/index.cjs.js +2 -1
  531. package/react/radio/index.cjs.js.map +1 -1
  532. package/react/radio/index.js +2 -1
  533. package/react/radio/index.js.map +1 -1
  534. package/react/radio-group/index.cjs.js +2 -1
  535. package/react/radio-group/index.cjs.js.map +1 -1
  536. package/react/radio-group/index.js +2 -1
  537. package/react/radio-group/index.js.map +1 -1
  538. package/react/sidenav/index.cjs.js +2 -1
  539. package/react/sidenav/index.cjs.js.map +1 -1
  540. package/react/sidenav/index.js +2 -1
  541. package/react/sidenav/index.js.map +1 -1
  542. package/react/sidenav-item/index.cjs.js +2 -1
  543. package/react/sidenav-item/index.cjs.js.map +1 -1
  544. package/react/sidenav-item/index.js +2 -1
  545. package/react/sidenav-item/index.js.map +1 -1
  546. package/react/sidenav-link/index.cjs.js +2 -1
  547. package/react/sidenav-link/index.cjs.js.map +1 -1
  548. package/react/sidenav-link/index.js +2 -1
  549. package/react/sidenav-link/index.js.map +1 -1
  550. package/react/spinner/index.cjs.js +2 -1
  551. package/react/spinner/index.cjs.js.map +1 -1
  552. package/react/spinner/index.js +2 -1
  553. package/react/spinner/index.js.map +1 -1
  554. package/react/stepper/index.cjs.js +2 -1
  555. package/react/stepper/index.cjs.js.map +1 -1
  556. package/react/stepper/index.js +2 -1
  557. package/react/stepper/index.js.map +1 -1
  558. package/{styles → react/styles}/anchor.cjs.js +1 -0
  559. package/{styles → react/styles}/anchor.cjs.js.map +1 -1
  560. package/react/styles/anchor.js +7 -0
  561. package/react/styles/anchor.js.map +1 -0
  562. package/{styles → react/styles}/bg-variants.cjs.js +1 -0
  563. package/{styles → react/styles}/bg-variants.cjs.js.map +1 -1
  564. package/react/styles/bg-variants.js +7 -0
  565. package/react/styles/bg-variants.js.map +1 -0
  566. package/{styles → react/styles}/border-variants.cjs.js +1 -0
  567. package/{styles → react/styles}/border-variants.cjs.js.map +1 -1
  568. package/react/styles/border-variants.js +7 -0
  569. package/react/styles/border-variants.js.map +1 -0
  570. package/{styles → react/styles}/feedback.cjs.js +1 -0
  571. package/{styles → react/styles}/feedback.cjs.js.map +1 -1
  572. package/react/styles/feedback.js +7 -0
  573. package/react/styles/feedback.js.map +1 -0
  574. package/{styles → react/styles}/form-hint.cjs.js +1 -0
  575. package/{styles → react/styles}/form-hint.cjs.js.map +1 -1
  576. package/react/styles/form-hint.js +7 -0
  577. package/react/styles/form-hint.js.map +1 -0
  578. package/{styles → react/styles}/form-label.cjs.js +1 -0
  579. package/{styles → react/styles}/form-label.cjs.js.map +1 -1
  580. package/react/styles/form-label.js +7 -0
  581. package/react/styles/form-label.js.map +1 -0
  582. package/{styles → react/styles}/header-class.cjs.js +1 -0
  583. package/{styles → react/styles}/header-class.cjs.js.map +1 -1
  584. package/react/styles/header-class.js +7 -0
  585. package/react/styles/header-class.js.map +1 -0
  586. package/{styles → react/styles}/paragraph.cjs.js +1 -0
  587. package/{styles → react/styles}/paragraph.cjs.js.map +1 -1
  588. package/react/styles/paragraph.js +7 -0
  589. package/react/styles/paragraph.js.map +1 -0
  590. package/{styles → react/styles}/svg.cjs.js +1 -0
  591. package/{styles → react/styles}/svg.cjs.js.map +1 -1
  592. package/react/styles/svg.js +7 -0
  593. package/react/styles/svg.js.map +1 -0
  594. package/{styles → react/styles}/text-variants.cjs.js +1 -0
  595. package/{styles → react/styles}/text-variants.cjs.js.map +1 -1
  596. package/react/styles/text-variants.js +7 -0
  597. package/react/styles/text-variants.js.map +1 -0
  598. package/react/tab/index.cjs.js +2 -1
  599. package/react/tab/index.cjs.js.map +1 -1
  600. package/react/tab/index.js +2 -1
  601. package/react/tab/index.js.map +1 -1
  602. package/react/tab-group/index.cjs.js +2 -1
  603. package/react/tab-group/index.cjs.js.map +1 -1
  604. package/react/tab-group/index.js +2 -1
  605. package/react/tab-group/index.js.map +1 -1
  606. package/react/tab-panel/index.cjs.js +2 -1
  607. package/react/tab-panel/index.cjs.js.map +1 -1
  608. package/react/tab-panel/index.js +2 -1
  609. package/react/tab-panel/index.js.map +1 -1
  610. package/react/table/index.cjs.js +2 -1
  611. package/react/table/index.cjs.js.map +1 -1
  612. package/react/table/index.js +2 -1
  613. package/react/table/index.js.map +1 -1
  614. package/react/textarea/index.cjs.js +2 -1
  615. package/react/textarea/index.cjs.js.map +1 -1
  616. package/react/textarea/index.js +2 -1
  617. package/react/textarea/index.js.map +1 -1
  618. package/react/toast/index.cjs.js +2 -1
  619. package/react/toast/index.cjs.js.map +1 -1
  620. package/react/toast/index.js +2 -1
  621. package/react/toast/index.js.map +1 -1
  622. package/react/toast-container/index.cjs.js +2 -1
  623. package/react/toast-container/index.cjs.js.map +1 -1
  624. package/react/toast-container/index.js +2 -1
  625. package/react/toast-container/index.js.map +1 -1
  626. package/react/tooltip/index.cjs.js +2 -1
  627. package/react/tooltip/index.cjs.js.map +1 -1
  628. package/react/tooltip/index.js +2 -1
  629. package/react/tooltip/index.js.map +1 -1
  630. package/{utils → react/utils}/animate.cjs.js +1 -0
  631. package/react/utils/animate.cjs.js.map +1 -0
  632. package/react/utils/animate.js +42 -0
  633. package/react/utils/animate.js.map +1 -0
  634. package/{utils → react/utils}/animation-registry.cjs.js +1 -0
  635. package/react/utils/animation-registry.cjs.js.map +1 -0
  636. package/react/utils/animation-registry.js +43 -0
  637. package/react/utils/animation-registry.js.map +1 -0
  638. package/{utils → react/utils}/breakpoints.cjs.js +1 -0
  639. package/react/utils/breakpoints.cjs.js.map +1 -0
  640. package/react/utils/breakpoints.js +9 -0
  641. package/react/utils/breakpoints.js.map +1 -0
  642. package/{utils → react/utils}/defaultvalue.cjs.js +1 -0
  643. package/react/utils/defaultvalue.cjs.js.map +1 -0
  644. package/react/utils/defaultvalue.js +25 -0
  645. package/react/utils/defaultvalue.js.map +1 -0
  646. package/{utils → react/utils}/event.cjs.js +1 -0
  647. package/react/utils/event.cjs.js.map +1 -0
  648. package/react/utils/event.js +16 -0
  649. package/react/utils/event.js.map +1 -0
  650. package/{utils → react/utils}/form.cjs.js +1 -0
  651. package/react/utils/form.cjs.js.map +1 -0
  652. package/react/utils/form.js +133 -0
  653. package/react/utils/form.js.map +1 -0
  654. package/{utils → react/utils}/generateId.cjs.js +1 -0
  655. package/react/utils/generateId.cjs.js.map +1 -0
  656. package/react/utils/generateId.js +7 -0
  657. package/react/utils/generateId.js.map +1 -0
  658. package/{utils → react/utils}/mergeDeep.cjs.js +1 -0
  659. package/react/utils/mergeDeep.cjs.js.map +1 -0
  660. package/react/utils/mergeDeep.js +26 -0
  661. package/react/utils/mergeDeep.js.map +1 -0
  662. package/{utils → react/utils}/modal.cjs.js +1 -0
  663. package/react/utils/modal.cjs.js.map +1 -0
  664. package/react/utils/modal.js +56 -0
  665. package/react/utils/modal.js.map +1 -0
  666. package/{utils → react/utils}/object.cjs.js +1 -0
  667. package/react/utils/object.cjs.js.map +1 -0
  668. package/react/utils/object.js +7 -0
  669. package/react/utils/object.js.map +1 -0
  670. package/{utils → react/utils}/scroll.cjs.js +1 -0
  671. package/react/utils/scroll.cjs.js.map +1 -0
  672. package/react/utils/scroll.js +22 -0
  673. package/react/utils/scroll.js.map +1 -0
  674. package/{utils → react/utils}/slot.cjs.js +1 -0
  675. package/react/utils/slot.cjs.js.map +1 -0
  676. package/react/utils/slot.js +53 -0
  677. package/react/utils/slot.js.map +1 -0
  678. package/{utils → react/utils}/tabbable.cjs.js +1 -0
  679. package/react/utils/tabbable.cjs.js.map +1 -0
  680. package/react/utils/tabbable.js +69 -0
  681. package/react/utils/tabbable.js.map +1 -0
  682. package/{utils → react/utils}/time.cjs.js +1 -0
  683. package/react/utils/time.cjs.js.map +1 -0
  684. package/react/utils/time.js +75 -0
  685. package/react/utils/time.js.map +1 -0
  686. package/{utils → react/utils}/watch.cjs.js +1 -0
  687. package/react/utils/watch.cjs.js.map +1 -0
  688. package/react/utils/watch.js +40 -0
  689. package/react/utils/watch.js.map +1 -0
  690. package/base/card-element.cjs.js.map +0 -1
  691. package/base/dropdown-element.cjs.js.map +0 -1
  692. package/base/dropdown-list-element.cjs.js.map +0 -1
  693. package/base/form-check-element.cjs.js.map +0 -1
  694. package/base/link-element.cjs.js.map +0 -1
  695. package/base/sgds-element.cjs.js.map +0 -1
  696. package/components/Accordion/sgds-accordion-item.cjs.js.map +0 -1
  697. package/components/Accordion/sgds-accordion.cjs.js.map +0 -1
  698. package/components/ActionCard/sgds-action-card.cjs.js.map +0 -1
  699. package/components/Alert/sgds-alert-heading.cjs.js.map +0 -1
  700. package/components/Alert/sgds-alert-link.cjs.js.map +0 -1
  701. package/components/Alert/sgds-alert.cjs.js.map +0 -1
  702. package/components/Badge/sgds-badge.cjs.js.map +0 -1
  703. package/components/Breadcrumb/sgds-breadcrumb-item.cjs.js.map +0 -1
  704. package/components/Breadcrumb/sgds-breadcrumb.cjs.js.map +0 -1
  705. package/components/Button/sgds-button.cjs.js.map +0 -1
  706. package/components/Card/sgds-card.cjs.js.map +0 -1
  707. package/components/Checkbox/sgds-checkbox.cjs.js.map +0 -1
  708. package/components/ComboBox/sgds-combo-box.cjs.js.map +0 -1
  709. package/components/Datepicker/datepicker-calendar.cjs.js.map +0 -1
  710. package/components/Datepicker/datepicker-header.cjs.js.map +0 -1
  711. package/components/Datepicker/datepicker-input.cjs.js.map +0 -1
  712. package/components/Datepicker/sgds-datepicker.cjs.js.map +0 -1
  713. package/components/Drawer/sgds-drawer.cjs.js.map +0 -1
  714. package/components/Dropdown/sgds-dropdown-item.cjs.js.map +0 -1
  715. package/components/Dropdown/sgds-dropdown.cjs.js.map +0 -1
  716. package/components/FileUpload/sgds-file-upload.cjs.js.map +0 -1
  717. package/components/Footer/sgds-footer.cjs.js.map +0 -1
  718. package/components/Input/sgds-input.cjs.js.map +0 -1
  719. package/components/Mainnav/sgds-mainnav-dropdown.cjs.js.map +0 -1
  720. package/components/Mainnav/sgds-mainnav-item.cjs.js.map +0 -1
  721. package/components/Mainnav/sgds-mainnav.cjs.js.map +0 -1
  722. package/components/Masthead/sgds-masthead.cjs.js.map +0 -1
  723. package/components/Modal/sgds-modal.cjs.js.map +0 -1
  724. package/components/Pagination/sgds-pagination.cjs.js.map +0 -1
  725. package/components/Progress/sgds-progress-bar.cjs.js.map +0 -1
  726. package/components/Progress/sgds-progress.cjs.js.map +0 -1
  727. package/components/QuantityToggle/sgds-quantity-toggle.cjs.js.map +0 -1
  728. package/components/Radio/sgds-radio-group.cjs.js.map +0 -1
  729. package/components/Radio/sgds-radio.cjs.js.map +0 -1
  730. package/components/Sidenav/sgds-sidenav-item.cjs.js.map +0 -1
  731. package/components/Sidenav/sgds-sidenav-link.cjs.js.map +0 -1
  732. package/components/Sidenav/sgds-sidenav.cjs.js.map +0 -1
  733. package/components/Spinner/sgds-spinner.cjs.js.map +0 -1
  734. package/components/Stepper/sgds-stepper.cjs.js.map +0 -1
  735. package/components/Tab/sgds-tab-group.cjs.js.map +0 -1
  736. package/components/Tab/sgds-tab-panel.cjs.js.map +0 -1
  737. package/components/Tab/sgds-tab.cjs.js.map +0 -1
  738. package/components/Table/sgds-table.cjs.js.map +0 -1
  739. package/components/Textarea/sgds-textarea.cjs.js.map +0 -1
  740. package/components/Toast/sgds-toast-container.cjs.js.map +0 -1
  741. package/components/Toast/sgds-toast.cjs.js.map +0 -1
  742. package/components/Tooltip/sgds-tooltip.cjs.js.map +0 -1
  743. package/internals/CloseButton/sgds-close-button.cjs.js.map +0 -1
  744. package/utils/animate.cjs.js.map +0 -1
  745. package/utils/animation-registry.cjs.js.map +0 -1
  746. package/utils/breakpoints.cjs.js.map +0 -1
  747. package/utils/defaultvalue.cjs.js.map +0 -1
  748. package/utils/event.cjs.js.map +0 -1
  749. package/utils/form.cjs.js.map +0 -1
  750. package/utils/generateId.cjs.js.map +0 -1
  751. package/utils/mergeDeep.cjs.js.map +0 -1
  752. package/utils/modal.cjs.js.map +0 -1
  753. package/utils/object.cjs.js.map +0 -1
  754. package/utils/scroll.cjs.js.map +0 -1
  755. package/utils/slot.cjs.js.map +0 -1
  756. package/utils/tabbable.cjs.js.map +0 -1
  757. package/utils/time.cjs.js.map +0 -1
  758. package/utils/watch.cjs.js.map +0 -1
@@ -0,0 +1,76 @@
1
+ 'use client';
2
+ import { __decorate } from 'tslib';
3
+ import { html } from 'lit';
4
+ import { property } from 'lit/decorators.js';
5
+ import { classMap } from 'lit/directives/class-map.js';
6
+ import { CardElement } from '../../base/card-element.js';
7
+ import css_248z from './card.js';
8
+
9
+ /**
10
+ * @summary Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
11
+ * @slot card-title - The title of the card
12
+ * @slot card-text - The paragrapher text of the card
13
+ * @slot card-image - Accepts an image or svg element of the card. Only a single element is allowed to be passed in.
14
+ * @slot card-link - Accepts an anchor element. Only a single element is allowed to be passed in.
15
+ *
16
+ *
17
+ * @csspart base - The card base wrapper
18
+ * @csspart body - The card body
19
+ * @csspart title - The card title
20
+ * @csspart text - The card text
21
+ *
22
+ */
23
+ class SgdsCard extends CardElement {
24
+ constructor() {
25
+ super(...arguments);
26
+ /** Extends the link passed in slot[name="link"] to the entire card */
27
+ this.stretchedLink = false;
28
+ }
29
+ handleLinkSlotChange(e) {
30
+ const childNodes = e.target.assignedNodes({ flatten: true });
31
+ if (childNodes.length > 1) {
32
+ return console.error("Multiple elements passed into SgdsCard's link slot");
33
+ }
34
+ if (this.stretchedLink) {
35
+ childNodes[0].classList.add("stretched-link");
36
+ }
37
+ return;
38
+ }
39
+ handleImgSlotChange(e) {
40
+ const childNodes = e.target.assignedNodes({ flatten: true });
41
+ if (childNodes.length > 1) {
42
+ return console.error("Multiple elements passed into SgdsCard's image slot");
43
+ }
44
+ }
45
+ render() {
46
+ return html `
47
+ <div
48
+ class="${classMap({
49
+ sgds: true,
50
+ card: true,
51
+ [`text-${this.textColor}`]: this.textColor,
52
+ [`bg-${this.bgColor}`]: this.bgColor,
53
+ [`border-${this.borderColor}`]: this.borderColor
54
+ })}
55
+ "
56
+ part="base"
57
+ >
58
+ <slot name="card-image" @slotchange=${this.handleImgSlotChange}></slot>
59
+ <div class="card-body" part="body">
60
+ <h3 class="card-title " part="title"><slot name="card-title"></slot></h3>
61
+ <p class="card-text" part="text">
62
+ <slot name="card-text"></slot>
63
+ </p>
64
+ <slot name="card-link" @slotchange=${this.handleLinkSlotChange}></slot>
65
+ </div>
66
+ </div>
67
+ `;
68
+ }
69
+ }
70
+ SgdsCard.styles = [...CardElement.styles, css_248z];
71
+ __decorate([
72
+ property({ type: Boolean })
73
+ ], SgdsCard.prototype, "stretchedLink", void 0);
74
+
75
+ export { SgdsCard, SgdsCard as default };
76
+ //# sourceMappingURL=sgds-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sgds-card.js","sources":["../../../../src/components/Card/sgds-card.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { CardElement } from \"../../base/card-element\";\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 card-title - The title of the card\n * @slot card-text - The paragrapher text of the card\n * @slot card-image - Accepts an image or svg element of the card. Only a single element is allowed to be passed in.\n * @slot card-link - Accepts an anchor element. Only a single element is allowed to be passed in.\n *\n *\n * @csspart base - The card base wrapper\n * @csspart body - The card body\n * @csspart title - The card title\n * @csspart text - The card text\n *\n */\nexport class SgdsCard extends CardElement {\n static styles = [...CardElement.styles, cardStyle];\n\n /** Extends the link passed in slot[name=\"link\"] to the entire card */\n @property({ type: Boolean }) stretchedLink = false;\n\n handleLinkSlotChange(e: Event) {\n const childNodes = (e.target as HTMLSlotElement).assignedNodes({ flatten: true }) as Array<HTMLLinkElement>;\n if (childNodes.length > 1) {\n return console.error(\"Multiple elements passed into SgdsCard's link slot\");\n }\n if (this.stretchedLink) {\n childNodes[0].classList.add(\"stretched-link\");\n }\n return;\n }\n\n handleImgSlotChange(e: Event) {\n const childNodes = (e.target as HTMLSlotElement).assignedNodes({ flatten: true }) as Array<HTMLOrSVGImageElement>;\n if (childNodes.length > 1) {\n return console.error(\"Multiple elements passed into SgdsCard's image slot\");\n }\n }\n render() {\n return html`\n <div\n class=\"${classMap({\n sgds: true,\n card: true,\n [`text-${this.textColor}`]: this.textColor,\n [`bg-${this.bgColor}`]: this.bgColor,\n [`border-${this.borderColor}`]: this.borderColor\n })}\n \"\n part=\"base\"\n >\n <slot name=\"card-image\" @slotchange=${this.handleImgSlotChange}></slot>\n <div class=\"card-body\" part=\"body\">\n <h3 class=\"card-title \" part=\"title\"><slot name=\"card-title\"></slot></h3>\n <p class=\"card-text\" part=\"text\">\n <slot name=\"card-text\"></slot>\n </p>\n <slot name=\"card-link\" @slotchange=${this.handleLinkSlotChange}></slot>\n </div>\n </div>\n `;\n }\n}\n\nexport default SgdsCard;\n"],"names":["cardStyle"],"mappings":";;;;;;;;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AC,CAAA;;;;AAIoC,4CAAA,EAAA,IAAI,CAAC,mBAAmB,CAAA;;;;;;AAMvB,6CAAA,EAAA,IAAI,CAAC,oBAAoB,CAAA;;;KAGnE,CAAC;KACH;;AA7CM,QAAM,CAAA,MAAA,GAAG,CAAC,GAAG,WAAW,CAAC,MAAM,EAAEA,QAAS,CAApC,CAAsC;AAGtB,UAAA,CAAA;AAA5B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAAuB,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,eAAA,EAAA,KAAA,CAAA,CAAA;;;;"}
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
1
+ {"version":3,"file":"checkbox.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ import { css } from 'lit';
3
+
4
+ var css_248z = css`:host([checked]) .form-check{--sgds-form-border-color:var(--sgds-form-bg);--sgds-form-bg:var(--sgds-info-filled)}:host(:focus-visible){outline:none}input{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}.form-check{display:block;margin-bottom:var(--sgds-spacer-2);min-height:2rem}.form-check .form-check-input{margin-right:var(--sgds-form-input-margin-right)}.form-check-input{appearance:none;background-color:var(--sgds-form-bg);background-image:var(--sgds-radio-bg-image);background-position:50%;background-repeat:no-repeat;background-size:contain;border:var(--sgds-form-border-width) solid var(--sgds-border-color);flex-shrink:0;height:1.125em;margin-top:.4375em;vertical-align:top;width:1.125em}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input:focus{border-color:var(--sgds-form-border-color);box-shadow:var(--sgds-form-focus-box-shadow);outline:0}.form-check-input:checked,.form-check-input[checked]{background-color:var(--sgds-form-bg);border-color:var(--sgds-form-border-color)}.form-check-input:disabled{border-color:var(--sgds-border-color);cursor:not-allowed;filter:none;opacity:var(--sgds-disabled-opacity)}.form-check-input.is-invalid{border-color:var(--sgds-form-invalid-color)}.form-check-input.is-invalid:checked{background-color:var(--sgds-form-invalid-color)}.form-check-input.is-invalid:focus{box-shadow:var(--sgds-form-focus-invalid-box-shadow)}.form-check-input.is-invalid~.form-check-label{color:var(--sgds-form-invalid-color)}.form-check-inline{display:inline-block;margin-bottom:0;margin-right:var(--sgds-form-inline-margin-right);vertical-align:text-top}:host([last-of-type]) .form-check{margin-bottom:0}.form-check-input:checked[type=checkbox]{--sgds-radio-bg-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E")}`;
5
+
6
+ export { css_248z as default };
7
+ //# sourceMappingURL=checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sgds-checkbox.cjs.js","sources":["../../../../src/components/Checkbox/sgds-checkbox.ts"],"sourcesContent":["import FormCheckElement from \"../../base/form-check-element\";\nimport genId from \"../../utils/generateId\";\nimport checkboxStyle from \"./checkbox.css\";\nimport feedbackStyle from \"../../styles/feedback.css\";\nimport formLabelStyle from \"../../styles/form-label.css\";\n/**\n * @summary Checkbox component is used when you require users to select multiple items from a list.\n *\n * @slot default - The label of checkbox.\n *\n * @event sgds-change - Emitted when the checked state changes.\n *\n */\nexport class SgdsCheckbox extends FormCheckElement {\n static styles = [...FormCheckElement.styles, feedbackStyle, formLabelStyle, checkboxStyle];\n\n constructor() {\n super();\n /** @internal */\n this._inputId = genId(\"checkbox\");\n }\n}\n\nexport default SgdsCheckbox;\n"],"names":["FormCheckElement","genId","feedbackStyle","formLabelStyle","checkboxStyle"],"mappings":";;;;;;;;;;;AAKA;;;;;;;AAOG;AACG,MAAO,YAAa,SAAQA,iCAAgB,CAAA;AAGhD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;;AAER,QAAA,IAAI,CAAC,QAAQ,GAAGC,qBAAK,CAAC,UAAU,CAAC,CAAC;KACnC;;AANM,YAAA,CAAA,MAAM,GAAG,CAAC,GAAGD,iCAAgB,CAAC,MAAM,EAAEE,mBAAa,EAAEC,oBAAc,EAAEC,mBAAa,CAAC;;;;;"}
@@ -0,0 +1,26 @@
1
+ 'use client';
2
+ import { FormCheckElement } from '../../base/form-check-element.js';
3
+ import genId from '../../utils/generateId.js';
4
+ import css_248z$2 from './checkbox.js';
5
+ import css_248z from '../../styles/feedback.js';
6
+ import css_248z$1 from '../../styles/form-label.js';
7
+
8
+ /**
9
+ * @summary Checkbox component is used when you require users to select multiple items from a list.
10
+ *
11
+ * @slot default - The label of checkbox.
12
+ *
13
+ * @event sgds-change - Emitted when the checked state changes.
14
+ *
15
+ */
16
+ class SgdsCheckbox extends FormCheckElement {
17
+ constructor() {
18
+ super();
19
+ /** @internal */
20
+ this._inputId = genId("checkbox");
21
+ }
22
+ }
23
+ SgdsCheckbox.styles = [...FormCheckElement.styles, css_248z, css_248z$1, css_248z$2];
24
+
25
+ export { SgdsCheckbox, SgdsCheckbox as default };
26
+ //# sourceMappingURL=sgds-checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sgds-checkbox.js","sources":["../../../../src/components/Checkbox/sgds-checkbox.ts"],"sourcesContent":["import FormCheckElement from \"../../base/form-check-element\";\nimport genId from \"../../utils/generateId\";\nimport checkboxStyle from \"./checkbox.css\";\nimport feedbackStyle from \"../../styles/feedback.css\";\nimport formLabelStyle from \"../../styles/form-label.css\";\n/**\n * @summary Checkbox component is used when you require users to select multiple items from a list.\n *\n * @slot default - The label of checkbox.\n *\n * @event sgds-change - Emitted when the checked state changes.\n *\n */\nexport class SgdsCheckbox extends FormCheckElement {\n static styles = [...FormCheckElement.styles, feedbackStyle, formLabelStyle, checkboxStyle];\n\n constructor() {\n super();\n /** @internal */\n this._inputId = genId(\"checkbox\");\n }\n}\n\nexport default SgdsCheckbox;\n"],"names":["feedbackStyle","formLabelStyle","checkboxStyle"],"mappings":";;;;;;;AAKA;;;;;;;AAOG;AACG,MAAO,YAAa,SAAQ,gBAAgB,CAAA;AAGhD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;;AAER,QAAA,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;KACnC;;AANM,YAAA,CAAA,MAAM,GAAG,CAAC,GAAG,gBAAgB,CAAC,MAAM,EAAEA,QAAa,EAAEC,UAAc,EAAEC,UAAa,CAAC;;;;"}
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"combo-box.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
1
+ {"version":3,"file":"combo-box.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ import { css } from 'lit';
3
+
4
+ var css_248z = css`.sgds.combobox .form-control-icon{align-items:center;display:flex;font-size:1rem;height:3rem;justify-content:center;position:absolute;width:3rem;z-index:4}.sgds.combobox{align-items:stretch;display:flex;flex-wrap:wrap;justify-content:flex-end;position:relative;width:-webkit-fill-available;width:-moz-available}.sgds.combobox .dropdown-toggle{width:100%}.sgds.combobox>.dropdown-menu{min-width:100%}.form-control-icon{bottom:0}`;
5
+
6
+ export { css_248z as default };
7
+ //# sourceMappingURL=combo-box.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combo-box.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sgds-combo-box.cjs.js","sources":["../../../../src/components/ComboBox/sgds-combo-box.ts"],"sourcesContent":["import { ScopedElementsMixin } from \"@open-wc/scoped-elements\";\nimport { html } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { ref } from \"lit/directives/ref.js\";\nimport { DropdownListElement } from \"../../base/dropdown-list-element\";\nimport { defaultValue } from \"../../utils/defaultvalue\";\nimport { watch } from \"../../utils/watch\";\nimport { SgdsDropdownItem } from \"../Dropdown/sgds-dropdown-item\";\nimport { SgdsInput } from \"../Input/sgds-input\";\nimport comboBoxStyle from \"./combo-box.css\";\nimport dropdownStyle from \"../Dropdown/dropdown.css\";\ntype FilterFunction = (inputValue: string, menuItem: string) => boolean;\n\n/**\n * @summary ComboBox component is used for users to make one or more selections from a list.\n *\n * @slot icon - slot for form control icon to be displayed on the right of the input box.\n *\n * @event sgds-select - Emitted when the combo box's selected value changes.\n * @event sgds-input - Emitted when user input is received and its value changes.\n */\nexport class SgdsComboBox extends ScopedElementsMixin(DropdownListElement) {\n static styles = [...DropdownListElement.styles, comboBoxStyle, dropdownStyle];\n /**@internal */\n static get scopedElements() {\n return {\n \"sgds-input\": SgdsInput,\n \"sgds-dropdown-item\": SgdsDropdownItem\n };\n }\n constructor() {\n super();\n /**@internal */\n this.modifierOpt = [\n {\n name: \"offset\",\n options: {\n offset: [0, 10]\n }\n }\n ];\n }\n /** The input's label */\n @property({ reflect: true }) label = \"\";\n /** The input's hint text below the label */\n @property({ reflect: true }) hintText = \"\";\n /**The input's name attribute */\n @property({ reflect: true }) name: string;\n /**The input's placeholder text. */\n @property({ type: String, reflect: true }) placeholder = \"placeholder\";\n /**Autofocus the input */\n @property({ type: Boolean, reflect: true }) autofocus = false;\n /**Disables the input. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n /**Makes the input a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n /**Makes the input readonly. */\n @property({ type: Boolean, reflect: true }) readonly = false;\n /**The input's value attribute. */\n @property({ reflect: true }) value = \"\";\n /**Gets or sets the default value used to reset this element. The initial value corresponds to the one originally specified in the HTML that created this element. */\n @defaultValue()\n defaultValue = \"\";\n\n /** Allows invalidFeedback, invalid and valid styles to be visible with the input */\n @property({ type: Boolean, reflect: true }) hasFeedback = false;\n /**Feedback text for error state when validated */\n @property({ type: String, reflect: true }) invalidFeedback = \"\";\n\n /** Marks the component as invalid. Replace the pseudo :invalid selector for absent in custom elements */\n @property({ type: Boolean, reflect: true }) invalid = false;\n /** Marks the input as invalid. Replace the pseudo :valid selector for absent in custom elements */\n @property({ type: Boolean, reflect: true }) valid = false;\n\n /**The list of items to display in the dropdown. */\n @property({ type: Array }) menuList: string[] = [];\n\n /**The function used to determine if a menu item should be shown in the menu list, given the user's input value. */\n @property()\n filterFunction: FilterFunction = (inputValue: string, menuItem: string) => {\n const itemLowerCase = menuItem.toLowerCase();\n const valueLower = inputValue.toLowerCase();\n return itemLowerCase.startsWith(valueLower);\n };\n\n /**@internal */\n @state()\n private filteredMenuList: string[] = [];\n\n /**@internal */\n @watch(\"value\")\n _handleFilterMenu() {\n this.filteredMenuList = this.menuList.filter(item => this.filterFunction.call(null, this.value, item));\n\n if (!this.myDropdown || !this.bsDropdown) return;\n\n // To hide dropdown menu when filtered menuList is empty\n if (this.filteredMenuList.length === 0) {\n this.hideMenu();\n } else if (this.menuIsOpen) {\n this.showMenu();\n }\n }\n\n private _handleInputChange(e: CustomEvent) {\n this.showMenu();\n this.value = (e.target as SgdsInput).value;\n }\n\n private _handleSelectChange(e: KeyboardEvent | MouseEvent) {\n this.value = (e.target as HTMLButtonElement).innerText;\n this.handleSelectSlot(e);\n }\n\n render() {\n return html`\n <div class=\"sgds combobox dropdown\">\n <sgds-input\n class=\"dropdown-toggle\"\n label=${this.label}\n hintText=${this.hintText}\n name=${this.name}\n ${ref(this.myDropdown)}\n @click=${() => (this.filteredMenuList.length > 0 ? this.showMenu() : this.hideMenu())}\n placeholder=${this.placeholder}\n ?autofocus=${this.autofocus}\n ?disabled=${this.disabled}\n required=${this.required}\n ?readonly=${this.readonly}\n ?hasFeedback=${this.hasFeedback}\n invalidfeedback=${this.invalidFeedback}\n ?invalid=${this.invalid}\n ?valid=${this.valid}\n .value=${this.value}\n @sgds-input=${this._handleInputChange}\n role=\"combobox\"\n aria-expanded=${this.menuIsOpen}\n aria-autocomplete=\"list\"\n aria-controls=${this.dropdownMenuId}\n >\n </sgds-input>\n <div class=\"form-control-icon\">\n <slot name=\"icon\"></slot>\n </div>\n <ul id=${this.dropdownMenuId} class=\"dropdown-menu\" part=\"menu\" tabindex=\"-1\">\n ${this.filteredMenuList.map(\n item => html`<sgds-dropdown-item @click=${this._handleSelectChange}>${item}</sgds-dropdown-item>`\n )}\n </ul>\n </div>\n `;\n }\n}\n\nexport default SgdsComboBox;\n"],"names":["ScopedElementsMixin","DropdownListElement","SgdsInput","SgdsDropdownItem","html","ref","comboBoxStyle","dropdownStyle","__decorate","property","defaultValue","state","watch"],"mappings":";;;;;;;;;;;;;;;;;;AAaA;;;;;;;AAOG;MACU,YAAa,SAAQA,kCAAmB,CAACC,uCAAmB,CAAC,CAAA;;AAGxE,IAAA,WAAW,cAAc,GAAA;QACvB,OAAO;AACL,YAAA,YAAY,EAAEC,mBAAS;AACvB,YAAA,oBAAoB,EAAEC,iCAAgB;SACvC,CAAC;KACH;AACD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;;QAYmB,IAAK,CAAA,KAAA,GAAG,EAAE,CAAC;;QAEX,IAAQ,CAAA,QAAA,GAAG,EAAE,CAAC;;QA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3
+ import { ScopedElementsMixin } from '@open-wc/scoped-elements';
4
+ import { html } from 'lit';
5
+ import { property, state } from 'lit/decorators.js';
6
+ import { ref } from 'lit/directives/ref.js';
7
+ import { DropdownListElement } from '../../base/dropdown-list-element.js';
8
+ import { defaultValue } from '../../utils/defaultvalue.js';
9
+ import { watch } from '../../utils/watch.js';
10
+ import { SgdsDropdownItem } from '../Dropdown/sgds-dropdown-item.js';
11
+ import { SgdsInput } from '../Input/sgds-input.js';
12
+ import css_248z from './combo-box.js';
13
+ import css_248z$1 from '../Dropdown/dropdown.js';
14
+
15
+ /**
16
+ * @summary ComboBox component is used for users to make one or more selections from a list.
17
+ *
18
+ * @slot icon - slot for form control icon to be displayed on the right of the input box.
19
+ *
20
+ * @event sgds-select - Emitted when the combo box's selected value changes.
21
+ * @event sgds-input - Emitted when user input is received and its value changes.
22
+ */
23
+ class SgdsComboBox extends ScopedElementsMixin(DropdownListElement) {
24
+ /**@internal */
25
+ static get scopedElements() {
26
+ return {
27
+ "sgds-input": SgdsInput,
28
+ "sgds-dropdown-item": SgdsDropdownItem
29
+ };
30
+ }
31
+ constructor() {
32
+ super();
33
+ /** The input's label */
34
+ this.label = "";
35
+ /** The input's hint text below the label */
36
+ this.hintText = "";
37
+ /**The input's placeholder text. */
38
+ this.placeholder = "placeholder";
39
+ /**Autofocus the input */
40
+ this.autofocus = false;
41
+ /**Disables the input. */
42
+ this.disabled = false;
43
+ /**Makes the input a required field. */
44
+ this.required = false;
45
+ /**Makes the input readonly. */
46
+ this.readonly = false;
47
+ /**The input's value attribute. */
48
+ this.value = "";
49
+ /**Gets or sets the default value used to reset this element. The initial value corresponds to the one originally specified in the HTML that created this element. */
50
+ this.defaultValue = "";
51
+ /** Allows invalidFeedback, invalid and valid styles to be visible with the input */
52
+ this.hasFeedback = false;
53
+ /**Feedback text for error state when validated */
54
+ this.invalidFeedback = "";
55
+ /** Marks the component as invalid. Replace the pseudo :invalid selector for absent in custom elements */
56
+ this.invalid = false;
57
+ /** Marks the input as invalid. Replace the pseudo :valid selector for absent in custom elements */
58
+ this.valid = false;
59
+ /**The list of items to display in the dropdown. */
60
+ this.menuList = [];
61
+ /**The function used to determine if a menu item should be shown in the menu list, given the user's input value. */
62
+ this.filterFunction = (inputValue, menuItem) => {
63
+ const itemLowerCase = menuItem.toLowerCase();
64
+ const valueLower = inputValue.toLowerCase();
65
+ return itemLowerCase.startsWith(valueLower);
66
+ };
67
+ /**@internal */
68
+ this.filteredMenuList = [];
69
+ /**@internal */
70
+ this.modifierOpt = [
71
+ {
72
+ name: "offset",
73
+ options: {
74
+ offset: [0, 10]
75
+ }
76
+ }
77
+ ];
78
+ }
79
+ /**@internal */
80
+ _handleFilterMenu() {
81
+ this.filteredMenuList = this.menuList.filter(item => this.filterFunction.call(null, this.value, item));
82
+ if (!this.myDropdown || !this.bsDropdown)
83
+ return;
84
+ // To hide dropdown menu when filtered menuList is empty
85
+ if (this.filteredMenuList.length === 0) {
86
+ this.hideMenu();
87
+ }
88
+ else if (this.menuIsOpen) {
89
+ this.showMenu();
90
+ }
91
+ }
92
+ _handleInputChange(e) {
93
+ this.showMenu();
94
+ this.value = e.target.value;
95
+ }
96
+ _handleSelectChange(e) {
97
+ this.value = e.target.innerText;
98
+ this.handleSelectSlot(e);
99
+ }
100
+ render() {
101
+ return html `
102
+ <div class="sgds combobox dropdown">
103
+ <sgds-input
104
+ class="dropdown-toggle"
105
+ label=${this.label}
106
+ hintText=${this.hintText}
107
+ name=${this.name}
108
+ ${ref(this.myDropdown)}
109
+ @click=${() => (this.filteredMenuList.length > 0 ? this.showMenu() : this.hideMenu())}
110
+ placeholder=${this.placeholder}
111
+ ?autofocus=${this.autofocus}
112
+ ?disabled=${this.disabled}
113
+ required=${this.required}
114
+ ?readonly=${this.readonly}
115
+ ?hasFeedback=${this.hasFeedback}
116
+ invalidfeedback=${this.invalidFeedback}
117
+ ?invalid=${this.invalid}
118
+ ?valid=${this.valid}
119
+ .value=${this.value}
120
+ @sgds-input=${this._handleInputChange}
121
+ role="combobox"
122
+ aria-expanded=${this.menuIsOpen}
123
+ aria-autocomplete="list"
124
+ aria-controls=${this.dropdownMenuId}
125
+ >
126
+ </sgds-input>
127
+ <div class="form-control-icon">
128
+ <slot name="icon"></slot>
129
+ </div>
130
+ <ul id=${this.dropdownMenuId} class="dropdown-menu" part="menu" tabindex="-1">
131
+ ${this.filteredMenuList.map(item => html `<sgds-dropdown-item @click=${this._handleSelectChange}>${item}</sgds-dropdown-item>`)}
132
+ </ul>
133
+ </div>
134
+ `;
135
+ }
136
+ }
137
+ SgdsComboBox.styles = [...DropdownListElement.styles, css_248z, css_248z$1];
138
+ __decorate([
139
+ property({ reflect: true })
140
+ ], SgdsComboBox.prototype, "label", void 0);
141
+ __decorate([
142
+ property({ reflect: true })
143
+ ], SgdsComboBox.prototype, "hintText", void 0);
144
+ __decorate([
145
+ property({ reflect: true })
146
+ ], SgdsComboBox.prototype, "name", void 0);
147
+ __decorate([
148
+ property({ type: String, reflect: true })
149
+ ], SgdsComboBox.prototype, "placeholder", void 0);
150
+ __decorate([
151
+ property({ type: Boolean, reflect: true })
152
+ ], SgdsComboBox.prototype, "autofocus", void 0);
153
+ __decorate([
154
+ property({ type: Boolean, reflect: true })
155
+ ], SgdsComboBox.prototype, "disabled", void 0);
156
+ __decorate([
157
+ property({ type: Boolean, reflect: true })
158
+ ], SgdsComboBox.prototype, "required", void 0);
159
+ __decorate([
160
+ property({ type: Boolean, reflect: true })
161
+ ], SgdsComboBox.prototype, "readonly", void 0);
162
+ __decorate([
163
+ property({ reflect: true })
164
+ ], SgdsComboBox.prototype, "value", void 0);
165
+ __decorate([
166
+ defaultValue()
167
+ ], SgdsComboBox.prototype, "defaultValue", void 0);
168
+ __decorate([
169
+ property({ type: Boolean, reflect: true })
170
+ ], SgdsComboBox.prototype, "hasFeedback", void 0);
171
+ __decorate([
172
+ property({ type: String, reflect: true })
173
+ ], SgdsComboBox.prototype, "invalidFeedback", void 0);
174
+ __decorate([
175
+ property({ type: Boolean, reflect: true })
176
+ ], SgdsComboBox.prototype, "invalid", void 0);
177
+ __decorate([
178
+ property({ type: Boolean, reflect: true })
179
+ ], SgdsComboBox.prototype, "valid", void 0);
180
+ __decorate([
181
+ property({ type: Array })
182
+ ], SgdsComboBox.prototype, "menuList", void 0);
183
+ __decorate([
184
+ property()
185
+ ], SgdsComboBox.prototype, "filterFunction", void 0);
186
+ __decorate([
187
+ state()
188
+ ], SgdsComboBox.prototype, "filteredMenuList", void 0);
189
+ __decorate([
190
+ watch("value")
191
+ ], SgdsComboBox.prototype, "_handleFilterMenu", null);
192
+
193
+ export { SgdsComboBox, SgdsComboBox as default };
194
+ //# sourceMappingURL=sgds-combo-box.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sgds-combo-box.js","sources":["../../../../src/components/ComboBox/sgds-combo-box.ts"],"sourcesContent":["import { ScopedElementsMixin } from \"@open-wc/scoped-elements\";\nimport { html } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { ref } from \"lit/directives/ref.js\";\nimport { DropdownListElement } from \"../../base/dropdown-list-element\";\nimport { defaultValue } from \"../../utils/defaultvalue\";\nimport { watch } from \"../../utils/watch\";\nimport { SgdsDropdownItem } from \"../Dropdown/sgds-dropdown-item\";\nimport { SgdsInput } from \"../Input/sgds-input\";\nimport comboBoxStyle from \"./combo-box.css\";\nimport dropdownStyle from \"../Dropdown/dropdown.css\";\ntype FilterFunction = (inputValue: string, menuItem: string) => boolean;\n\n/**\n * @summary ComboBox component is used for users to make one or more selections from a list.\n *\n * @slot icon - slot for form control icon to be displayed on the right of the input box.\n *\n * @event sgds-select - Emitted when the combo box's selected value changes.\n * @event sgds-input - Emitted when user input is received and its value changes.\n */\nexport class SgdsComboBox extends ScopedElementsMixin(DropdownListElement) {\n static styles = [...DropdownListElement.styles, comboBoxStyle, dropdownStyle];\n /**@internal */\n static get scopedElements() {\n return {\n \"sgds-input\": SgdsInput,\n \"sgds-dropdown-item\": SgdsDropdownItem\n };\n }\n constructor() {\n super();\n /**@internal */\n this.modifierOpt = [\n {\n name: \"offset\",\n options: {\n offset: [0, 10]\n }\n }\n ];\n }\n /** The input's label */\n @property({ reflect: true }) label = \"\";\n /** The input's hint text below the label */\n @property({ reflect: true }) hintText = \"\";\n /**The input's name attribute */\n @property({ reflect: true }) name: string;\n /**The input's placeholder text. */\n @property({ type: String, reflect: true }) placeholder = \"placeholder\";\n /**Autofocus the input */\n @property({ type: Boolean, reflect: true }) autofocus = false;\n /**Disables the input. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n /**Makes the input a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n /**Makes the input readonly. */\n @property({ type: Boolean, reflect: true }) readonly = false;\n /**The input's value attribute. */\n @property({ reflect: true }) value = \"\";\n /**Gets or sets the default value used to reset this element. The initial value corresponds to the one originally specified in the HTML that created this element. */\n @defaultValue()\n defaultValue = \"\";\n\n /** Allows invalidFeedback, invalid and valid styles to be visible with the input */\n @property({ type: Boolean, reflect: true }) hasFeedback = false;\n /**Feedback text for error state when validated */\n @property({ type: String, reflect: true }) invalidFeedback = \"\";\n\n /** Marks the component as invalid. Replace the pseudo :invalid selector for absent in custom elements */\n @property({ type: Boolean, reflect: true }) invalid = false;\n /** Marks the input as invalid. Replace the pseudo :valid selector for absent in custom elements */\n @property({ type: Boolean, reflect: true }) valid = false;\n\n /**The list of items to display in the dropdown. */\n @property({ type: Array }) menuList: string[] = [];\n\n /**The function used to determine if a menu item should be shown in the menu list, given the user's input value. */\n @property()\n filterFunction: FilterFunction = (inputValue: string, menuItem: string) => {\n const itemLowerCase = menuItem.toLowerCase();\n const valueLower = inputValue.toLowerCase();\n return itemLowerCase.startsWith(valueLower);\n };\n\n /**@internal */\n @state()\n private filteredMenuList: string[] = [];\n\n /**@internal */\n @watch(\"value\")\n _handleFilterMenu() {\n this.filteredMenuList = this.menuList.filter(item => this.filterFunction.call(null, this.value, item));\n\n if (!this.myDropdown || !this.bsDropdown) return;\n\n // To hide dropdown menu when filtered menuList is empty\n if (this.filteredMenuList.length === 0) {\n this.hideMenu();\n } else if (this.menuIsOpen) {\n this.showMenu();\n }\n }\n\n private _handleInputChange(e: CustomEvent) {\n this.showMenu();\n this.value = (e.target as SgdsInput).value;\n }\n\n private _handleSelectChange(e: KeyboardEvent | MouseEvent) {\n this.value = (e.target as HTMLButtonElement).innerText;\n this.handleSelectSlot(e);\n }\n\n render() {\n return html`\n <div class=\"sgds combobox dropdown\">\n <sgds-input\n class=\"dropdown-toggle\"\n label=${this.label}\n hintText=${this.hintText}\n name=${this.name}\n ${ref(this.myDropdown)}\n @click=${() => (this.filteredMenuList.length > 0 ? this.showMenu() : this.hideMenu())}\n placeholder=${this.placeholder}\n ?autofocus=${this.autofocus}\n ?disabled=${this.disabled}\n required=${this.required}\n ?readonly=${this.readonly}\n ?hasFeedback=${this.hasFeedback}\n invalidfeedback=${this.invalidFeedback}\n ?invalid=${this.invalid}\n ?valid=${this.valid}\n .value=${this.value}\n @sgds-input=${this._handleInputChange}\n role=\"combobox\"\n aria-expanded=${this.menuIsOpen}\n aria-autocomplete=\"list\"\n aria-controls=${this.dropdownMenuId}\n >\n </sgds-input>\n <div class=\"form-control-icon\">\n <slot name=\"icon\"></slot>\n </div>\n <ul id=${this.dropdownMenuId} class=\"dropdown-menu\" part=\"menu\" tabindex=\"-1\">\n ${this.filteredMenuList.map(\n item => html`<sgds-dropdown-item @click=${this._handleSelectChange}>${item}</sgds-dropdown-item>`\n )}\n </ul>\n </div>\n `;\n }\n}\n\nexport default SgdsComboBox;\n"],"names":["comboBoxStyle","dropdownStyle"],"mappings":";;;;;;;;;;;;;;AAaA;;;;;;;AAOG;MACU,YAAa,SAAQ,mBAAmB,CAAC,mBAAmB,CAAC,CAAA;;AAGxE,IAAA,WAAW,cAAc,GAAA;QACvB,OAAO;AACL,YAAA,YAAY,EAAE,SAAS;AACvB,YAAA,oBAAoB,EAAE,gBAAgB;SACvC,CAAC;KACH;AACD,IAAA,WAAA,GAAA;AAC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use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datepicker-calendar.cjs.js","sources":["../../../../src/components/Datepicker/datepicker-calendar.ts"],"sourcesContent":["import { format, isAfter, isEqual } from \"date-fns\";\nimport { HTMLTemplateResult, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport SgdsElement from \"../../base/sgds-element\";\nimport { createYearViewArray, setTimeToNoon } from \"../../utils/time\";\nimport { watch } from \"../../utils/watch\";\nimport { ViewEnum } from \"./types\";\nimport datepickerCalendarStyle from \"./datepicker-calendar.css\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\n\nconst TODAY_DATE = new Date();\n\nconst keyPressAction = {\n ArrowUp: {\n days: -7,\n months: -3,\n years: -3\n },\n ArrowDown: {\n days: 7,\n months: 3,\n years: 3\n },\n ArrowRight: {\n days: 1,\n months: 1,\n years: 1\n },\n ArrowLeft: {\n days: -1,\n months: -1,\n years: -1\n }\n};\nexport class DatepickerCalendar extends SgdsElement {\n static styles = [datepickerCalendarStyle];\n\n /** @internal */\n static DAY_LABELS = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n\n /** @internal */\n static daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\n /** @internal */\n static MONTHVIEW_LABELS = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\"\n ];\n\n /** @internal */\n @property({ type: Array }) selectedDate: Date[] = [];\n\n /** @internal */\n @property({ attribute: false }) displayDate: Date;\n\n /** @internal */\n @property({ type: String }) minDate?: string;\n\n /** @internal */\n @property({ type: String }) maxDate?: string;\n\n /** @internal */\n @property({ type: String, reflect: true }) mode: \"single\" | \"range\" = \"single\";\n\n private focusedDate: Date;\n\n /** @internal */\n @property() view: ViewEnum;\n\n /** @internal */\n @property({ type: Boolean }) show: boolean;\n\n @property()\n focusedTabIndex: number;\n\n /**Shifts focus from Input to Calendar */\n public focusOnCalendar(toBlurEl: HTMLElement) {\n toBlurEl.blur();\n this._focusOnCalendarCell();\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.addEventListener(\"keydown\", this._handleKeyPress);\n }\n\n updated() {\n /** For KeyboardNavigation (switching months) and ClickNavigation:\n * Runs after render has completed and td of next month has appeared.\n * For the case when calendar view changes to the next month\n * */\n\n if (this.focusedTabIndex === 3) {\n this._focusOnCalendarCell();\n }\n }\n\n @watch(\"displayDate\")\n _updateFocusedDate() {\n this.focusedDate = setTimeToNoon(this.displayDate);\n if (this.focusedDate.getFullYear() < 1900) {\n this.focusedDate.setFullYear(1900);\n }\n }\n\n private _setFocusedDate(shift: number) {\n const currentFocusedDate = this.focusedDate.getDate();\n const currentFocusedMonth = this.focusedDate.getMonth();\n const currentFocusedYear = this.focusedDate.getFullYear();\n switch (this.view) {\n case \"days\": {\n const newFocusedDate = setTimeToNoon(\n new Date(currentFocusedYear, currentFocusedMonth, currentFocusedDate + shift)\n );\n if (isAfter(newFocusedDate, new Date(0, 0, 1, 12)) || isEqual(newFocusedDate, new Date(0, 0, 1, 12)))\n this.focusedDate = newFocusedDate;\n break;\n }\n case \"months\": {\n const newFocusedDate = setTimeToNoon(\n new Date(currentFocusedYear, currentFocusedMonth + shift, currentFocusedDate)\n );\n\n if (isAfter(newFocusedDate, new Date(0, 0, 1, 12)) || isEqual(newFocusedDate, new Date(0, 0, 1, 12))) {\n this.focusedDate = newFocusedDate;\n }\n break;\n }\n case \"years\": {\n const newFocusedDate = setTimeToNoon(\n new Date(currentFocusedYear + shift, currentFocusedMonth, currentFocusedDate)\n );\n if (newFocusedDate.getFullYear() >= 1900) {\n this.focusedDate = newFocusedDate;\n }\n break;\n }\n }\n }\n private _handleEnterDateKeyboard(event: KeyboardEvent) {\n const targetElement = event.composedPath()[0] as HTMLElement;\n if (targetElement.classList.contains(\"disabled\")) return;\n\n switch (this.view) {\n case \"days\":\n this._onClickDay(event);\n break;\n case \"months\": {\n const { month } = targetElement.dataset;\n this._onClickMonth(parseInt(month));\n break;\n }\n case \"years\": {\n const { year } = targetElement.dataset;\n this._onClickYear(parseInt(year));\n }\n }\n }\n private _handleKeyPress(event: KeyboardEvent) {\n if (event.key === \"Enter\") {\n event.preventDefault();\n this._handleEnterDateKeyboard(event);\n return;\n }\n if (event.key === \"Tab\") {\n const targetEl: HTMLElement = this._getFocusedTarget();\n if (this.focusedTabIndex !== 3) targetEl.blur();\n return;\n }\n if (event.key.includes(\"Arrow\")) {\n event.preventDefault();\n this._blurCalendarCell();\n const keyShiftObject = keyPressAction[event.key];\n const shiftNumber = keyShiftObject[this.view];\n\n this._setFocusedDate(shiftNumber);\n\n this._focusOnCalendarCell();\n }\n }\n\n private _generateIncrementDates(): Date[] {\n const start = setTimeToNoon(this.selectedDate[0]);\n\n if (this.selectedDate.length < 2) {\n return [start];\n }\n\n const end = setTimeToNoon(this.selectedDate[1]);\n const arr: Date[] = [];\n if (start.getTime() < end.getTime()) {\n for (let dt = start; dt <= end; dt.setDate(dt.getDate() + 1)) {\n arr.push(new Date(dt));\n }\n } else {\n for (let dt = end; dt <= start; dt.setDate(dt.getDate() + 1)) {\n arr.push(new Date(dt));\n }\n }\n return arr;\n }\n\n private _onClickDay(event: MouseEvent | KeyboardEvent) {\n const { day, date } = (event.composedPath()[0] as HTMLTableCellElement).dataset;\n\n const displayDateClone = new Date(this.displayDate);\n displayDateClone.setDate(parseInt(day));\n /** update new focused date for mouse click */\n if (event.type === \"click\") {\n this.focusedDate = setTimeToNoon(new Date(date));\n }\n\n if (this.mode === \"single\") {\n // Single mode: Select a single date\n\n this.selectedDate = [displayDateClone];\n\n // Emit event with selected date\n this.emit(\"sgds-selectdates\", { detail: this.selectedDate });\n } else if (this.mode === \"range\") {\n // Range mode: Select a range of dates\n const selectedDates = [...this.selectedDate];\n\n if (selectedDates.length === 0 || selectedDates.length === 2) {\n // No dates selected yet or both dates already selected,\n // start a new range by clearing the selected dates array\n selectedDates.length = 0;\n }\n\n // Add the selected date to the range\n selectedDates.push(displayDateClone);\n\n // Update the selectedDate property\n this.selectedDate = selectedDates;\n\n // Emit event with the range of selected dates\n this.emit(\"sgds-selectdates\", { detail: this.selectedDate });\n }\n\n // Check if the selected date is before minDate or after maxDate\n const minimumDate = this.minDate ? setTimeToNoon(new Date(this.minDate)) : null;\n const maximumDate = this.maxDate ? setTimeToNoon(new Date(this.maxDate)) : null;\n\n const selectedDate = setTimeToNoon(displayDateClone);\n if ((minimumDate && selectedDate < minimumDate) || (maximumDate && selectedDate > maximumDate)) {\n event.stopPropagation();\n event.preventDefault();\n }\n }\n\n private _onClickMonth(month: number, year: number = this.focusedDate.getFullYear()) {\n const displayDateClone = new Date(this.displayDate);\n this.view = \"days\";\n displayDateClone.setMonth(month);\n displayDateClone.setFullYear(year);\n this.displayDate = displayDateClone;\n this.emit(\"sgds-view\", { detail: this.view });\n //once clicked, should change view to days, and hold value and change view\n this.emit(\"sgds-selectmonth\", { detail: this.displayDate });\n }\n\n private _onClickYear(year: number) {\n const displayDateClone = new Date(this.displayDate);\n displayDateClone.setFullYear(year);\n this.displayDate = displayDateClone;\n this.view = \"months\";\n this.emit(\"sgds-view\", { detail: this.view });\n\n this.emit(\"sgds-selectyear\", { detail: this.displayDate });\n }\n\n private _getFocusedTarget(): HTMLElement {\n const queryObj = {\n days: `td[data-date=\"${this.focusedDate.toISOString()}\"]`,\n months: `button[data-month=\"${this.focusedDate.getMonth()}\"][data-year=\"${this.focusedDate.getFullYear()}\"]`,\n years: `button[data-year=\"${this.focusedDate.getFullYear()}\"]`\n };\n const queryString = queryObj[this.view];\n const targetEl: HTMLElement = this.shadowRoot.querySelector(`${queryString}`);\n return targetEl;\n }\n private _blurCalendarCell() {\n const targetEl = this._getFocusedTarget();\n targetEl.setAttribute(\"tabindex\", \"-1\");\n targetEl.blur();\n }\n private _focusOnCalendarCell() {\n const targetEl = this._getFocusedTarget();\n if (targetEl) {\n targetEl.setAttribute(\"tabindex\", \"3\");\n targetEl.focus();\n this.emit(\"sgds-update-focus\", { detail: this.focusedDate });\n } else {\n /** Change month view */\n this.emit(\"sgds-change-calendar\", { detail: this.focusedDate });\n }\n }\n private _generateDays() {\n const selectedDates = this.selectedDate.map(d => setTimeToNoon(d));\n\n const rangeSelectedDates = this._generateIncrementDates();\n const minimumDate = this.minDate ? setTimeToNoon(new Date(this.minDate)) : null;\n const maximumDate = this.maxDate ? setTimeToNoon(new Date(this.maxDate)) : null;\n const year = this.displayDate.getFullYear();\n const month = this.displayDate.getMonth();\n const firstDateOfMonth = new Date(year, month, 1);\n const startingDayOfMonth = firstDateOfMonth.getDay();\n let monthLength = DatepickerCalendar.daysInMonth[month];\n if (month === 1) {\n if ((year % 4 === 0 && year % 100 !== 0) || year % 400 === 0) {\n monthLength = 29;\n }\n }\n\n const weeks = [];\n let day = 1;\n for (let i = 0; i < 9; i++) {\n const week = [];\n for (let j = 0; j <= 6; j++) {\n if (day <= monthLength && (i > 0 || j >= startingDayOfMonth)) {\n const dateObj = new Date(year, month, day, 12, 0, 0, 0);\n const dateStr = dateObj.toISOString();\n const beforeMinDate = minimumDate && Date.parse(dateStr) < Date.parse(minimumDate.toISOString());\n const afterMinDate = maximumDate && Date.parse(dateStr) > Date.parse(maximumDate.toISOString());\n const clickHandler = beforeMinDate || afterMinDate ? undefined : this._onClickDay;\n\n const isCurrentMonth = TODAY_DATE.getMonth() === this.displayDate.getMonth();\n const isCurrentYear = TODAY_DATE.getFullYear() === this.displayDate.getFullYear();\n const isCurrentDay = TODAY_DATE.getDate() === day;\n\n const isSelected =\n selectedDates.length > 0 &&\n rangeSelectedDates.some(d => Date.parse(dateStr) === Date.parse(d.toISOString()));\n const isFirstSelectedDate = selectedDates.length > 0 && rangeSelectedDates[0].toISOString() === dateStr;\n const isLastSelectedDate =\n selectedDates.length > 1 && rangeSelectedDates[rangeSelectedDates.length - 1].toISOString() === dateStr;\n const ariaLabel =\n `${isCurrentDay && isCurrentMonth && isCurrentYear ? \"Today's date, \" : \"\"}` + format(dateObj, \"PPPP\");\n week.push(\n html`<td\n key=${j}\n data-date=${dateStr}\n data-day=${day}\n aria-label=${ariaLabel}\n aria-current=${ifDefined(isCurrentDay && isCurrentMonth && isCurrentYear ? \"date\" : undefined)}\n class=${classMap({\n today: isCurrentDay && isCurrentMonth && isCurrentYear,\n \"selected-ends\": isFirstSelectedDate || isLastSelectedDate,\n active: isSelected,\n disabled: beforeMinDate || afterMinDate\n })}\n @click=${clickHandler}\n aria-selected=${ifDefined(isSelected ? \"true\" : undefined)}\n tabindex=${this.focusedDate === new Date(dateStr) ? \"3\" : \"-1\"}\n ?disabled=${beforeMinDate || afterMinDate}\n aria-disabled=${ifDefined(beforeMinDate || afterMinDate ? \"true\" : undefined)}\n role=\"button\"\n >\n ${day}\n </td>`\n );\n day++;\n } else {\n week.push(html`<td key=${j}></td>`);\n }\n }\n\n weeks.push(\n html`<tr key=${i}>\n ${week}\n </tr>`\n );\n if (day > monthLength) {\n break;\n }\n }\n\n const dayView = html`\n <table role=\"grid\">\n <thead>\n <tr>\n ${DatepickerCalendar.DAY_LABELS.map(\n (label: string, index: number) =>\n html`\n <th key=${index} abbr=${label} scope=\"col\">\n <small>${label.slice(0, 3)}</small>\n </th>\n `\n )}\n </tr>\n </thead>\n <tbody>\n ${weeks}\n </tbody>\n </table>\n `;\n return dayView;\n }\n\n private _generateMonths() {\n const rangeDates = this._generateIncrementDates();\n const selectedTime = rangeDates.map(e => setTimeToNoon(new Date(e.getFullYear(), e.getMonth())).getTime());\n\n const year = this.displayDate.getFullYear();\n\n const monthView = html`\n <div class=\"sgds monthpicker\">\n ${DatepickerCalendar.MONTHVIEW_LABELS.map((m, idx) => {\n const isCurrentMonth = idx === TODAY_DATE.getMonth() && year === TODAY_DATE.getFullYear();\n const time = setTimeToNoon(new Date(year, idx)).getTime();\n const isFirstSelectedMonth = rangeDates[0].getMonth() === idx;\n const isFirstSelectedYear = rangeDates[0].getFullYear() === year;\n const isLastSelectedMonth = rangeDates[rangeDates.length - 1].getMonth() === idx;\n const isLastSelectedYear = rangeDates[rangeDates.length - 1].getFullYear() === year;\n const ariaLabel = isCurrentMonth ? `Current month ${m} ${year}` : `${m} ${year}`;\n return html` <button\n class=${classMap({\n active: selectedTime.includes(time),\n today: isCurrentMonth,\n month: true,\n \"selected-ends\":\n (isFirstSelectedMonth && isFirstSelectedYear) || (isLastSelectedMonth && isLastSelectedYear)\n })}\n @click=${() => this._onClickMonth(idx)}\n data-month=${idx}\n data-year=${year}\n tabindex=\"3\"\n aria-selected=${selectedTime.includes(time)}\n aria-label=${ariaLabel}\n >\n ${m.slice(0, 3)}\n </button>`;\n })}\n </div>\n `;\n return monthView;\n }\n\n private _generateYears() {\n const selectedYears = this._generateIncrementDates().map(e => e.getFullYear());\n const CURRENT_YEAR = TODAY_DATE.getFullYear();\n\n const yearArray = createYearViewArray(this.displayDate, CURRENT_YEAR);\n\n const yearView = html`\n <div class=\"sgds yearpicker\">\n ${yearArray.map(y => {\n const isFirstSelectedYear = selectedYears[0] === y;\n const isLastSectedYear = selectedYears[selectedYears.length - 1] === y;\n return html`\n <button\n class=${classMap({\n active: selectedYears.includes(y),\n year: true,\n today: CURRENT_YEAR === y,\n \"selected-ends\": isFirstSelectedYear || isLastSectedYear\n })}\n @click=${() => this._onClickYear(y)}\n data-year=${y}\n tabindex=\"3\"\n ?disabled=${y < 1900}\n aria-selected=${selectedYears.includes(y)}\n aria-label=${ifDefined(CURRENT_YEAR === y ? `Current year, ${y}` : undefined)}\n >\n ${y}\n </button>\n `;\n })}\n </div>\n `;\n return yearView;\n }\n render() {\n let viewContent: HTMLTemplateResult;\n\n switch (this.view) {\n case \"days\":\n viewContent = html` ${this._generateDays()} `;\n break;\n case \"months\":\n viewContent = html` ${this._generateMonths()} `;\n break;\n case \"years\":\n viewContent = html` ${this._generateYears()} `;\n break;\n default:\n viewContent = html` ${this._generateDays()} `; // Set a default view\n break;\n }\n\n return html` <div class=\"datepicker-body\">${viewContent}</div> `;\n }\n}\n\nexport default DatepickerCalendar;\n"],"names":["SgdsElement","setTimeToNoon","isAfter","isEqual","format","html","ifDefined","classMap","time","createYearViewArray","datepickerCalendarStyle","__decorate","property","watch"],"mappings":";;;;;;;;;;;;;;;;AAWA,MAAM,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC;AAE9B,MAAM,cAAc,GAAG;AACrB,IAAA,OAAO,EAAE;QACP,IAAI,EAAE,CAAC,CAAC;QACR,MAAM,EAAE,CAAC,CAAC;QACV,KAAK,EAAE,CAAC,CAAC;AACV,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,IAAI,EAAE,CAAC;AACP,QAAA,MAAM,EAAE,CAAC;AACT,QAAA,KAAK,EAAE,CAAC;AACT,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,IAAI,EAAE,CAAC;AACP,QAAA,MAAM,EAAE,CAAC;AACT,QAAA,KAAK,EAAE,CAAC;AACT,KAAA;AACD,IAAA,SAAS,EAAE;QACT,IAAI,EAAE,CAAC,CAAC;QACR,MAAM,EAAE,CAAC,CAAC;QACV,KAAK,EAAE,CAAC,CAAC;AACV,KAAA;CACF,CAAC;AACI,MAAO,kBAAmB,SAAQA,sBAAW,CAAA;AAAnD,IAAA,WAAA,GAAA;;;QA0B6B,IAAY,CAAA,YAAA,GAAW,EAAE,CAAC;;QAYV,IAAI,CAAA,IAAA,GAAuB,QAAQ,CAAC;KA8ahF;;AAhaQ,IAAA,eAAe,CAAC,QAAqB,EAAA;QAC1C,QAAQ,CAAC,IAAI,EAAE,CAAC;QAChB,IAAI,CAAC,oBAAoB,EAAE,CAAC;KAC7B;IAED,iBAAiB,GAAA;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,eAAe,CA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;"}
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"datepicker-calendar.cjs2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
1
+ {"version":3,"file":"datepicker-calendar.cjs2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}