@sebgroup/green-core 3.13.0 → 3.15.0-rc.20260616114540869

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 (448) hide show
  1. package/components/avatar/avatar.component.js +1 -0
  2. package/components/avatar/avatar.styles.js +4 -1
  3. package/components/badge/badge.styles.js +1 -1
  4. package/components/button/button.styles.js +1 -1
  5. package/components/button/button.trans.styles.scss.js +1 -1
  6. package/components/context-menu/context-menu.trans.styles.scss.js +1 -1
  7. package/components/index.d.ts +1 -0
  8. package/components/index.js +1 -0
  9. package/components/pagination/pagination.component.d.ts +5 -1
  10. package/components/pagination/pagination.component.js +33 -2
  11. package/components/pagination/pagination.styles.js +4 -0
  12. package/components/popover/popover.trans.styles.scss.js +1 -1
  13. package/components/tabs/index.d.ts +3 -0
  14. package/components/tabs/index.js +3 -0
  15. package/components/tabs/tab/index.d.ts +1 -0
  16. package/components/tabs/tab/index.js +1 -0
  17. package/components/tabs/tab/tab.component.d.ts +49 -0
  18. package/components/tabs/tab/tab.component.js +120 -0
  19. package/components/tabs/tab/tab.d.ts +2 -0
  20. package/components/tabs/tab/tab.js +6 -0
  21. package/components/tabs/tab/tab.styles.d.ts +2 -0
  22. package/components/tabs/tab/tab.styles.js +69 -0
  23. package/components/tabs/tab-panel/index.d.ts +1 -0
  24. package/components/tabs/tab-panel/index.js +1 -0
  25. package/components/tabs/tab-panel/tab-panel.component.d.ts +33 -0
  26. package/components/tabs/tab-panel/tab-panel.component.js +73 -0
  27. package/components/tabs/tab-panel/tab-panel.d.ts +2 -0
  28. package/components/tabs/tab-panel/tab-panel.js +6 -0
  29. package/components/tabs/tab-panel/tab-panel.styles.d.ts +2 -0
  30. package/components/tabs/tab-panel/tab-panel.styles.js +22 -0
  31. package/components/tabs/tabs.component.d.ts +41 -0
  32. package/components/tabs/tabs.component.js +439 -0
  33. package/components/tabs/tabs.d.ts +2 -0
  34. package/components/tabs/tabs.js +6 -0
  35. package/components/tabs/tabs.styles.d.ts +2 -0
  36. package/components/tabs/tabs.styles.js +115 -0
  37. package/custom-elements.json +10860 -9270
  38. package/gds-element.js +1 -1
  39. package/generated/mcp/button/guidelines.md +11 -16
  40. package/generated/mcp/card-pattern-01/guidelines.md +6 -6
  41. package/generated/mcp/components.json +39 -1
  42. package/generated/mcp/filter-chips/guidelines.md +14 -8
  43. package/generated/mcp/icons.json +1 -1
  44. package/generated/mcp/index.json +1 -1
  45. package/generated/mcp/list-item-pattern-01/guidelines.md +62 -0
  46. package/generated/mcp/list-item-pattern-01/index.json +1 -0
  47. package/generated/mcp/pagination/api.md +2 -1
  48. package/generated/mcp/tab/angular.md +25 -0
  49. package/generated/mcp/tab/api.md +32 -0
  50. package/generated/mcp/tab/index.json +8 -0
  51. package/generated/mcp/tab/react.md +25 -0
  52. package/generated/mcp/tab-panel/angular.md +17 -0
  53. package/generated/mcp/tab-panel/api.md +20 -0
  54. package/generated/mcp/tab-panel/index.json +8 -0
  55. package/generated/mcp/tab-panel/react.md +17 -0
  56. package/generated/mcp/tabs/angular.md +26 -0
  57. package/generated/mcp/tabs/api.md +49 -0
  58. package/generated/mcp/tabs/guidelines.md +58 -0
  59. package/generated/mcp/tabs/index.json +9 -0
  60. package/generated/mcp/tabs/react.md +26 -0
  61. package/generated/mcp/tokens.json +1 -1
  62. package/generated/react/alert/index.d.ts +118 -110
  63. package/generated/react/avatar/index.d.ts +116 -108
  64. package/generated/react/avatar-group/index.d.ts +114 -106
  65. package/generated/react/backdrop/index.d.ts +115 -107
  66. package/generated/react/badge/index.d.ts +118 -110
  67. package/generated/react/blur/index.d.ts +114 -106
  68. package/generated/react/breadcrumb/index.d.ts +118 -110
  69. package/generated/react/breadcrumbs/index.d.ts +115 -107
  70. package/generated/react/button/index.d.ts +127 -119
  71. package/generated/react/calendar/index.d.ts +121 -113
  72. package/generated/react/card/index.d.ts +114 -106
  73. package/generated/react/card-linked/index.d.ts +116 -108
  74. package/generated/react/card-pattern-01/index.d.ts +124 -116
  75. package/generated/react/checkbox/index.d.ts +127 -119
  76. package/generated/react/checkbox-group/index.d.ts +128 -120
  77. package/generated/react/coachmark/index.d.ts +117 -109
  78. package/generated/react/context-menu/index.d.ts +118 -110
  79. package/generated/react/datepicker/index.d.ts +136 -128
  80. package/generated/react/details/index.d.ts +117 -109
  81. package/generated/react/dialog/index.d.ts +116 -108
  82. package/generated/react/div/index.d.ts +114 -106
  83. package/generated/react/divider/index.d.ts +114 -106
  84. package/generated/react/dropdown/index.d.ts +139 -131
  85. package/generated/react/fab/index.d.ts +127 -119
  86. package/generated/react/filter-chip/index.d.ts +115 -107
  87. package/generated/react/filter-chips/index.d.ts +127 -119
  88. package/generated/react/flex/index.d.ts +114 -106
  89. package/generated/react/form-summary/index.d.ts +117 -109
  90. package/generated/react/formatted-account/index.d.ts +117 -109
  91. package/generated/react/formatted-date/index.d.ts +116 -108
  92. package/generated/react/formatted-number/index.d.ts +117 -109
  93. package/generated/react/grid/index.d.ts +114 -106
  94. package/generated/react/grouped-list/index.d.ts +115 -107
  95. package/generated/react/icons/icon-ai/index.d.ts +116 -108
  96. package/generated/react/icons/icon-airplane-up/index.d.ts +116 -108
  97. package/generated/react/icons/icon-archive/index.d.ts +116 -108
  98. package/generated/react/icons/icon-arrow/index.d.ts +116 -108
  99. package/generated/react/icons/icon-arrow-bottom-top/index.d.ts +116 -108
  100. package/generated/react/icons/icon-arrow-box-left/index.d.ts +116 -108
  101. package/generated/react/icons/icon-arrow-box-left-alt/index.d.ts +116 -108
  102. package/generated/react/icons/icon-arrow-box-right/index.d.ts +116 -108
  103. package/generated/react/icons/icon-arrow-down/index.d.ts +116 -108
  104. package/generated/react/icons/icon-arrow-inbox/index.d.ts +116 -108
  105. package/generated/react/icons/icon-arrow-left/index.d.ts +116 -108
  106. package/generated/react/icons/icon-arrow-left-right/index.d.ts +116 -108
  107. package/generated/react/icons/icon-arrow-out-of-box/index.d.ts +116 -108
  108. package/generated/react/icons/icon-arrow-right/index.d.ts +116 -108
  109. package/generated/react/icons/icon-arrow-right-circle/index.d.ts +116 -108
  110. package/generated/react/icons/icon-arrow-right-down-circle/index.d.ts +116 -108
  111. package/generated/react/icons/icon-arrow-right-up-circle/index.d.ts +116 -108
  112. package/generated/react/icons/icon-arrow-rotate-clockwise/index.d.ts +116 -108
  113. package/generated/react/icons/icon-arrow-rotate-counter-clockwise/index.d.ts +116 -108
  114. package/generated/react/icons/icon-arrow-rotate-left-right/index.d.ts +116 -108
  115. package/generated/react/icons/icon-arrow-rotate-right-left/index.d.ts +116 -108
  116. package/generated/react/icons/icon-arrow-share-left/index.d.ts +116 -108
  117. package/generated/react/icons/icon-arrow-share-right/index.d.ts +116 -108
  118. package/generated/react/icons/icon-arrow-split/index.d.ts +116 -108
  119. package/generated/react/icons/icon-arrow-up/index.d.ts +116 -108
  120. package/generated/react/icons/icon-arrow-wall-down/index.d.ts +116 -108
  121. package/generated/react/icons/icon-arrow-wall-left/index.d.ts +116 -108
  122. package/generated/react/icons/icon-arrow-wall-right/index.d.ts +116 -108
  123. package/generated/react/icons/icon-arrow-wall-up/index.d.ts +116 -108
  124. package/generated/react/icons/icon-arrows-repeat-right/index.d.ts +116 -108
  125. package/generated/react/icons/icon-asterisk/index.d.ts +116 -108
  126. package/generated/react/icons/icon-at/index.d.ts +116 -108
  127. package/generated/react/icons/icon-back/index.d.ts +116 -108
  128. package/generated/react/icons/icon-backward/index.d.ts +116 -108
  129. package/generated/react/icons/icon-bag/index.d.ts +116 -108
  130. package/generated/react/icons/icon-bank/index.d.ts +116 -108
  131. package/generated/react/icons/icon-banknote/index.d.ts +116 -108
  132. package/generated/react/icons/icon-banknote-2/index.d.ts +116 -108
  133. package/generated/react/icons/icon-barcode/index.d.ts +116 -108
  134. package/generated/react/icons/icon-bars-three/index.d.ts +116 -108
  135. package/generated/react/icons/icon-bars-two/index.d.ts +116 -108
  136. package/generated/react/icons/icon-basket/index.d.ts +116 -108
  137. package/generated/react/icons/icon-battery-loading/index.d.ts +116 -108
  138. package/generated/react/icons/icon-bell/index.d.ts +116 -108
  139. package/generated/react/icons/icon-block/index.d.ts +116 -108
  140. package/generated/react/icons/icon-book/index.d.ts +116 -108
  141. package/generated/react/icons/icon-bookmark/index.d.ts +116 -108
  142. package/generated/react/icons/icon-bookmark-check/index.d.ts +116 -108
  143. package/generated/react/icons/icon-bookmark-delete/index.d.ts +116 -108
  144. package/generated/react/icons/icon-bookmark-plus/index.d.ts +116 -108
  145. package/generated/react/icons/icon-bookmark-remove/index.d.ts +116 -108
  146. package/generated/react/icons/icon-books/index.d.ts +116 -108
  147. package/generated/react/icons/icon-brand-app-store/index.d.ts +116 -108
  148. package/generated/react/icons/icon-brand-apple-music/index.d.ts +116 -108
  149. package/generated/react/icons/icon-brand-bankid/index.d.ts +116 -108
  150. package/generated/react/icons/icon-brand-chrome/index.d.ts +116 -108
  151. package/generated/react/icons/icon-brand-facebook/index.d.ts +116 -108
  152. package/generated/react/icons/icon-brand-figma/index.d.ts +116 -108
  153. package/generated/react/icons/icon-brand-firefox/index.d.ts +116 -108
  154. package/generated/react/icons/icon-brand-github/index.d.ts +116 -108
  155. package/generated/react/icons/icon-brand-green/index.d.ts +116 -108
  156. package/generated/react/icons/icon-brand-instagram/index.d.ts +116 -108
  157. package/generated/react/icons/icon-brand-linkedin/index.d.ts +116 -108
  158. package/generated/react/icons/icon-brand-play-store/index.d.ts +116 -108
  159. package/generated/react/icons/icon-brand-rss-feed/index.d.ts +116 -108
  160. package/generated/react/icons/icon-brand-seb/index.d.ts +116 -108
  161. package/generated/react/icons/icon-brand-spotify/index.d.ts +116 -108
  162. package/generated/react/icons/icon-brand-storybook/index.d.ts +116 -108
  163. package/generated/react/icons/icon-brand-swish-word/index.d.ts +116 -108
  164. package/generated/react/icons/icon-brand-x/index.d.ts +116 -108
  165. package/generated/react/icons/icon-brush/index.d.ts +116 -108
  166. package/generated/react/icons/icon-bubble-annotation/index.d.ts +116 -108
  167. package/generated/react/icons/icon-bubbles/index.d.ts +116 -108
  168. package/generated/react/icons/icon-buildings/index.d.ts +116 -108
  169. package/generated/react/icons/icon-bullet-list/index.d.ts +116 -108
  170. package/generated/react/icons/icon-calculator/index.d.ts +116 -108
  171. package/generated/react/icons/icon-calendar/index.d.ts +116 -108
  172. package/generated/react/icons/icon-calendar-check/index.d.ts +116 -108
  173. package/generated/react/icons/icon-calendar-repeat/index.d.ts +116 -108
  174. package/generated/react/icons/icon-calender-add/index.d.ts +116 -108
  175. package/generated/react/icons/icon-call/index.d.ts +116 -108
  176. package/generated/react/icons/icon-car/index.d.ts +116 -108
  177. package/generated/react/icons/icon-carussel/index.d.ts +116 -108
  178. package/generated/react/icons/icon-chain-link/index.d.ts +116 -108
  179. package/generated/react/icons/icon-chain-link-broken/index.d.ts +116 -108
  180. package/generated/react/icons/icon-chart-two/index.d.ts +116 -108
  181. package/generated/react/icons/icon-checklist/index.d.ts +116 -108
  182. package/generated/react/icons/icon-checkmark/index.d.ts +116 -108
  183. package/generated/react/icons/icon-chevron-bottom/index.d.ts +116 -108
  184. package/generated/react/icons/icon-chevron-double-down/index.d.ts +116 -108
  185. package/generated/react/icons/icon-chevron-double-left/index.d.ts +116 -108
  186. package/generated/react/icons/icon-chevron-double-right/index.d.ts +116 -108
  187. package/generated/react/icons/icon-chevron-double-up/index.d.ts +116 -108
  188. package/generated/react/icons/icon-chevron-down-small/index.d.ts +116 -108
  189. package/generated/react/icons/icon-chevron-grabber-vertical/index.d.ts +116 -108
  190. package/generated/react/icons/icon-chevron-grabber-vertical-reversed/index.d.ts +116 -108
  191. package/generated/react/icons/icon-chevron-left/index.d.ts +116 -108
  192. package/generated/react/icons/icon-chevron-left-small/index.d.ts +116 -108
  193. package/generated/react/icons/icon-chevron-right/index.d.ts +116 -108
  194. package/generated/react/icons/icon-chevron-right-small/index.d.ts +116 -108
  195. package/generated/react/icons/icon-chevron-top/index.d.ts +116 -108
  196. package/generated/react/icons/icon-chevron-top-small/index.d.ts +116 -108
  197. package/generated/react/icons/icon-circle-ban/index.d.ts +116 -108
  198. package/generated/react/icons/icon-circle-check/index.d.ts +116 -108
  199. package/generated/react/icons/icon-circle-dots/index.d.ts +116 -108
  200. package/generated/react/icons/icon-circle-info/index.d.ts +116 -108
  201. package/generated/react/icons/icon-circle-minus/index.d.ts +116 -108
  202. package/generated/react/icons/icon-circle-placeholder-on/index.d.ts +116 -108
  203. package/generated/react/icons/icon-circle-plus/index.d.ts +116 -108
  204. package/generated/react/icons/icon-circle-questionmark/index.d.ts +116 -108
  205. package/generated/react/icons/icon-circle-x/index.d.ts +116 -108
  206. package/generated/react/icons/icon-circles-three/index.d.ts +116 -108
  207. package/generated/react/icons/icon-clock/index.d.ts +116 -108
  208. package/generated/react/icons/icon-cloud-download/index.d.ts +116 -108
  209. package/generated/react/icons/icon-cloud-upload/index.d.ts +116 -108
  210. package/generated/react/icons/icon-cloudy-sun/index.d.ts +116 -108
  211. package/generated/react/icons/icon-code/index.d.ts +116 -108
  212. package/generated/react/icons/icon-code-brackets/index.d.ts +116 -108
  213. package/generated/react/icons/icon-compass-round/index.d.ts +116 -108
  214. package/generated/react/icons/icon-cookies/index.d.ts +116 -108
  215. package/generated/react/icons/icon-copy/index.d.ts +116 -108
  216. package/generated/react/icons/icon-credit-card/index.d.ts +116 -108
  217. package/generated/react/icons/icon-credit-card-add/index.d.ts +116 -108
  218. package/generated/react/icons/icon-cross-large/index.d.ts +116 -108
  219. package/generated/react/icons/icon-cross-small/index.d.ts +116 -108
  220. package/generated/react/icons/icon-cup-hot/index.d.ts +116 -108
  221. package/generated/react/icons/icon-cursor/index.d.ts +116 -108
  222. package/generated/react/icons/icon-details/index.d.ts +115 -107
  223. package/generated/react/icons/icon-devices/index.d.ts +116 -108
  224. package/generated/react/icons/icon-direction/index.d.ts +116 -108
  225. package/generated/react/icons/icon-dollar/index.d.ts +116 -108
  226. package/generated/react/icons/icon-dot-grid-one-horizontal/index.d.ts +116 -108
  227. package/generated/react/icons/icon-dot-grid-one-vertical/index.d.ts +116 -108
  228. package/generated/react/icons/icon-dot-grid-three/index.d.ts +116 -108
  229. package/generated/react/icons/icon-dot-grid-two/index.d.ts +116 -108
  230. package/generated/react/icons/icon-email/index.d.ts +116 -108
  231. package/generated/react/icons/icon-emoji-angry/index.d.ts +116 -108
  232. package/generated/react/icons/icon-emoji-neutral/index.d.ts +116 -108
  233. package/generated/react/icons/icon-emoji-sad/index.d.ts +116 -108
  234. package/generated/react/icons/icon-emoji-smile/index.d.ts +116 -108
  235. package/generated/react/icons/icon-emoji-smiley/index.d.ts +116 -108
  236. package/generated/react/icons/icon-euro/index.d.ts +116 -108
  237. package/generated/react/icons/icon-expand/index.d.ts +116 -108
  238. package/generated/react/icons/icon-eye-open/index.d.ts +116 -108
  239. package/generated/react/icons/icon-eye-slash/index.d.ts +116 -108
  240. package/generated/react/icons/icon-fashion/index.d.ts +116 -108
  241. package/generated/react/icons/icon-fast-forward/index.d.ts +116 -108
  242. package/generated/react/icons/icon-file-bend/index.d.ts +116 -108
  243. package/generated/react/icons/icon-file-chart/index.d.ts +116 -108
  244. package/generated/react/icons/icon-file-text/index.d.ts +116 -108
  245. package/generated/react/icons/icon-files/index.d.ts +116 -108
  246. package/generated/react/icons/icon-filter/index.d.ts +116 -108
  247. package/generated/react/icons/icon-flag/index.d.ts +116 -108
  248. package/generated/react/icons/icon-floppy-disk/index.d.ts +116 -108
  249. package/generated/react/icons/icon-focus/index.d.ts +116 -108
  250. package/generated/react/icons/icon-folder/index.d.ts +116 -108
  251. package/generated/react/icons/icon-folder-add-right/index.d.ts +116 -108
  252. package/generated/react/icons/icon-fullscreen/index.d.ts +116 -108
  253. package/generated/react/icons/icon-gift/index.d.ts +116 -108
  254. package/generated/react/icons/icon-globus/index.d.ts +116 -108
  255. package/generated/react/icons/icon-graduate-cap/index.d.ts +116 -108
  256. package/generated/react/icons/icon-green-power/index.d.ts +116 -108
  257. package/generated/react/icons/icon-group/index.d.ts +116 -108
  258. package/generated/react/icons/icon-growth/index.d.ts +116 -108
  259. package/generated/react/icons/icon-headphones/index.d.ts +116 -108
  260. package/generated/react/icons/icon-heart/index.d.ts +116 -108
  261. package/generated/react/icons/icon-heart-beat/index.d.ts +116 -108
  262. package/generated/react/icons/icon-history/index.d.ts +116 -108
  263. package/generated/react/icons/icon-home-energy-one/index.d.ts +116 -108
  264. package/generated/react/icons/icon-home-energy-two/index.d.ts +116 -108
  265. package/generated/react/icons/icon-home-open/index.d.ts +116 -108
  266. package/generated/react/icons/icon-home-roof/index.d.ts +116 -108
  267. package/generated/react/icons/icon-horizontal-alignment-bottom/index.d.ts +116 -108
  268. package/generated/react/icons/icon-hourglass/index.d.ts +116 -108
  269. package/generated/react/icons/icon-images/index.d.ts +116 -108
  270. package/generated/react/icons/icon-inbox-empty/index.d.ts +116 -108
  271. package/generated/react/icons/icon-industry/index.d.ts +116 -108
  272. package/generated/react/icons/icon-jpg/index.d.ts +116 -108
  273. package/generated/react/icons/icon-key/index.d.ts +116 -108
  274. package/generated/react/icons/icon-knife-spoon/index.d.ts +116 -108
  275. package/generated/react/icons/icon-lab/index.d.ts +116 -108
  276. package/generated/react/icons/icon-law/index.d.ts +116 -108
  277. package/generated/react/icons/icon-leisure/index.d.ts +116 -108
  278. package/generated/react/icons/icon-light-bulb-simple/index.d.ts +116 -108
  279. package/generated/react/icons/icon-lightning/index.d.ts +116 -108
  280. package/generated/react/icons/icon-line-chart-four/index.d.ts +116 -108
  281. package/generated/react/icons/icon-line-chart-one/index.d.ts +116 -108
  282. package/generated/react/icons/icon-line-chart-three/index.d.ts +116 -108
  283. package/generated/react/icons/icon-line-chart-two/index.d.ts +116 -108
  284. package/generated/react/icons/icon-lock/index.d.ts +116 -108
  285. package/generated/react/icons/icon-macbook-air/index.d.ts +116 -108
  286. package/generated/react/icons/icon-magnifying-glass/index.d.ts +116 -108
  287. package/generated/react/icons/icon-map-pin/index.d.ts +116 -108
  288. package/generated/react/icons/icon-megaphone/index.d.ts +116 -108
  289. package/generated/react/icons/icon-menu-sidebar/index.d.ts +116 -108
  290. package/generated/react/icons/icon-mic-off/index.d.ts +116 -108
  291. package/generated/react/icons/icon-mic-on/index.d.ts +116 -108
  292. package/generated/react/icons/icon-minimize/index.d.ts +116 -108
  293. package/generated/react/icons/icon-minus-large/index.d.ts +116 -108
  294. package/generated/react/icons/icon-minus-small/index.d.ts +116 -108
  295. package/generated/react/icons/icon-money-hand/index.d.ts +116 -108
  296. package/generated/react/icons/icon-moneybag/index.d.ts +116 -108
  297. package/generated/react/icons/icon-moon/index.d.ts +116 -108
  298. package/generated/react/icons/icon-mute/index.d.ts +116 -108
  299. package/generated/react/icons/icon-newspaper/index.d.ts +116 -108
  300. package/generated/react/icons/icon-office/index.d.ts +116 -108
  301. package/generated/react/icons/icon-page-add/index.d.ts +116 -108
  302. package/generated/react/icons/icon-paper-plane-top-right/index.d.ts +116 -108
  303. package/generated/react/icons/icon-paperclip/index.d.ts +116 -108
  304. package/generated/react/icons/icon-pause/index.d.ts +116 -108
  305. package/generated/react/icons/icon-pdf/index.d.ts +116 -108
  306. package/generated/react/icons/icon-pencil-sign/index.d.ts +116 -108
  307. package/generated/react/icons/icon-pencil-sparkle/index.d.ts +116 -108
  308. package/generated/react/icons/icon-pencil-wave/index.d.ts +116 -108
  309. package/generated/react/icons/icon-pension/index.d.ts +116 -108
  310. package/generated/react/icons/icon-people/index.d.ts +116 -108
  311. package/generated/react/icons/icon-people-a11y/index.d.ts +116 -108
  312. package/generated/react/icons/icon-people-add/index.d.ts +116 -108
  313. package/generated/react/icons/icon-people-added/index.d.ts +116 -108
  314. package/generated/react/icons/icon-people-circle/index.d.ts +116 -108
  315. package/generated/react/icons/icon-people-copy/index.d.ts +116 -108
  316. package/generated/react/icons/icon-people-profile/index.d.ts +116 -108
  317. package/generated/react/icons/icon-people-remove/index.d.ts +116 -108
  318. package/generated/react/icons/icon-percent/index.d.ts +116 -108
  319. package/generated/react/icons/icon-phone/index.d.ts +116 -108
  320. package/generated/react/icons/icon-pie-chart/index.d.ts +116 -108
  321. package/generated/react/icons/icon-piggy-bank/index.d.ts +116 -108
  322. package/generated/react/icons/icon-pin/index.d.ts +116 -108
  323. package/generated/react/icons/icon-pinch/index.d.ts +116 -108
  324. package/generated/react/icons/icon-play/index.d.ts +116 -108
  325. package/generated/react/icons/icon-play-circle/index.d.ts +116 -108
  326. package/generated/react/icons/icon-plus-large/index.d.ts +116 -108
  327. package/generated/react/icons/icon-plus-small/index.d.ts +116 -108
  328. package/generated/react/icons/icon-png/index.d.ts +116 -108
  329. package/generated/react/icons/icon-poop/index.d.ts +116 -108
  330. package/generated/react/icons/icon-postcard/index.d.ts +116 -108
  331. package/generated/react/icons/icon-pound/index.d.ts +116 -108
  332. package/generated/react/icons/icon-power/index.d.ts +116 -108
  333. package/generated/react/icons/icon-power-plant/index.d.ts +116 -108
  334. package/generated/react/icons/icon-printer/index.d.ts +116 -108
  335. package/generated/react/icons/icon-push/index.d.ts +116 -108
  336. package/generated/react/icons/icon-qr-code/index.d.ts +116 -108
  337. package/generated/react/icons/icon-rainy/index.d.ts +116 -108
  338. package/generated/react/icons/icon-raising-hand/index.d.ts +116 -108
  339. package/generated/react/icons/icon-reading-list/index.d.ts +116 -108
  340. package/generated/react/icons/icon-receipt-bill/index.d.ts +116 -108
  341. package/generated/react/icons/icon-receiption-bell/index.d.ts +116 -108
  342. package/generated/react/icons/icon-record/index.d.ts +116 -108
  343. package/generated/react/icons/icon-refund/index.d.ts +116 -108
  344. package/generated/react/icons/icon-robot/index.d.ts +116 -108
  345. package/generated/react/icons/icon-rocket/index.d.ts +116 -108
  346. package/generated/react/icons/icon-run-shortcut/index.d.ts +116 -108
  347. package/generated/react/icons/icon-safari/index.d.ts +116 -108
  348. package/generated/react/icons/icon-school/index.d.ts +116 -108
  349. package/generated/react/icons/icon-scissors/index.d.ts +116 -108
  350. package/generated/react/icons/icon-search-menu/index.d.ts +116 -108
  351. package/generated/react/icons/icon-settings-gear/index.d.ts +116 -108
  352. package/generated/react/icons/icon-settings-slider-hor/index.d.ts +116 -108
  353. package/generated/react/icons/icon-settings-slider-ver/index.d.ts +116 -108
  354. package/generated/react/icons/icon-shapes/index.d.ts +116 -108
  355. package/generated/react/icons/icon-share/index.d.ts +116 -108
  356. package/generated/react/icons/icon-shield/index.d.ts +116 -108
  357. package/generated/react/icons/icon-shield-checked/index.d.ts +116 -108
  358. package/generated/react/icons/icon-shield-crossed/index.d.ts +116 -108
  359. package/generated/react/icons/icon-shopping-bag/index.d.ts +116 -108
  360. package/generated/react/icons/icon-signature/index.d.ts +116 -108
  361. package/generated/react/icons/icon-smartwatch/index.d.ts +116 -108
  362. package/generated/react/icons/icon-solar/index.d.ts +116 -108
  363. package/generated/react/icons/icon-sort/index.d.ts +116 -108
  364. package/generated/react/icons/icon-sort-ascending/index.d.ts +116 -108
  365. package/generated/react/icons/icon-sort-descending/index.d.ts +116 -108
  366. package/generated/react/icons/icon-sort-down/index.d.ts +116 -108
  367. package/generated/react/icons/icon-sort-up/index.d.ts +116 -108
  368. package/generated/react/icons/icon-square-arrow-top-right/index.d.ts +116 -108
  369. package/generated/react/icons/icon-square-behind-square/index.d.ts +116 -108
  370. package/generated/react/icons/icon-square-grid-circle/index.d.ts +116 -108
  371. package/generated/react/icons/icon-square-placeholder/index.d.ts +116 -108
  372. package/generated/react/icons/icon-star/index.d.ts +116 -108
  373. package/generated/react/icons/icon-store/index.d.ts +116 -108
  374. package/generated/react/icons/icon-sun/index.d.ts +116 -108
  375. package/generated/react/icons/icon-sunset-arrow-down/index.d.ts +116 -108
  376. package/generated/react/icons/icon-tag/index.d.ts +116 -108
  377. package/generated/react/icons/icon-target-arrow/index.d.ts +116 -108
  378. package/generated/react/icons/icon-television/index.d.ts +116 -108
  379. package/generated/react/icons/icon-tennis/index.d.ts +116 -108
  380. package/generated/react/icons/icon-text-edit/index.d.ts +116 -108
  381. package/generated/react/icons/icon-thermostat/index.d.ts +116 -108
  382. package/generated/react/icons/icon-thumbs-down/index.d.ts +116 -108
  383. package/generated/react/icons/icon-thumbs-up/index.d.ts +116 -108
  384. package/generated/react/icons/icon-ticket/index.d.ts +116 -108
  385. package/generated/react/icons/icon-trading-view-candles/index.d.ts +116 -108
  386. package/generated/react/icons/icon-trash-can/index.d.ts +116 -108
  387. package/generated/react/icons/icon-tree/index.d.ts +116 -108
  388. package/generated/react/icons/icon-trending-five/index.d.ts +116 -108
  389. package/generated/react/icons/icon-trending-four/index.d.ts +116 -108
  390. package/generated/react/icons/icon-trending-one/index.d.ts +116 -108
  391. package/generated/react/icons/icon-trending-three/index.d.ts +116 -108
  392. package/generated/react/icons/icon-trending-two/index.d.ts +116 -108
  393. package/generated/react/icons/icon-triangle-exclamation/index.d.ts +116 -108
  394. package/generated/react/icons/icon-truck/index.d.ts +116 -108
  395. package/generated/react/icons/icon-umbrella-security/index.d.ts +116 -108
  396. package/generated/react/icons/icon-unlocked/index.d.ts +116 -108
  397. package/generated/react/icons/icon-volume-full/index.d.ts +116 -108
  398. package/generated/react/icons/icon-volume-half/index.d.ts +116 -108
  399. package/generated/react/icons/icon-volume-off/index.d.ts +116 -108
  400. package/generated/react/icons/icon-wallet/index.d.ts +116 -108
  401. package/generated/react/icons/icon-warning-sign/index.d.ts +116 -108
  402. package/generated/react/icons/icon-wifi-full/index.d.ts +116 -108
  403. package/generated/react/icons/icon-youtube/index.d.ts +116 -108
  404. package/generated/react/icons/icon-zap/index.d.ts +116 -108
  405. package/generated/react/icons/icon-zoom-in/index.d.ts +116 -108
  406. package/generated/react/icons/icon-zoom-out/index.d.ts +116 -108
  407. package/generated/react/img/index.d.ts +116 -108
  408. package/generated/react/index.d.ts +8 -5
  409. package/generated/react/index.js +8 -5
  410. package/generated/react/input/index.d.ts +139 -131
  411. package/generated/react/link/index.d.ts +117 -109
  412. package/generated/react/list/index.d.ts +114 -106
  413. package/generated/react/list-item/index.d.ts +114 -106
  414. package/generated/react/list-item-pattern-01/index.d.ts +121 -113
  415. package/generated/react/mask/index.d.ts +117 -109
  416. package/generated/react/menu-button/index.d.ts +120 -112
  417. package/generated/react/menu-heading/index.d.ts +114 -106
  418. package/generated/react/menu-item/index.d.ts +114 -106
  419. package/generated/react/option/index.d.ts +118 -110
  420. package/generated/react/pagination/index.d.ts +121 -112
  421. package/generated/react/popover/index.d.ts +123 -115
  422. package/generated/react/radio/index.d.ts +119 -111
  423. package/generated/react/radio-group/index.d.ts +127 -119
  424. package/generated/react/rich-text/index.d.ts +114 -106
  425. package/generated/react/segment/index.d.ts +118 -110
  426. package/generated/react/segmented-control/index.d.ts +116 -108
  427. package/generated/react/select/index.d.ts +129 -121
  428. package/generated/react/sensitive-account/index.d.ts +118 -110
  429. package/generated/react/sensitive-date/index.d.ts +117 -109
  430. package/generated/react/sensitive-number/index.d.ts +118 -110
  431. package/generated/react/signal/index.d.ts +114 -106
  432. package/generated/react/spinner/index.d.ts +117 -109
  433. package/generated/react/switch/index.d.ts +126 -118
  434. package/generated/react/tab/index.d.ts +682 -0
  435. package/generated/react/tab/index.js +14 -0
  436. package/generated/react/tab-panel/index.d.ts +675 -0
  437. package/generated/react/tab-panel/index.js +14 -0
  438. package/generated/react/table/index.d.ts +125 -117
  439. package/generated/react/tabs/index.d.ts +699 -0
  440. package/generated/react/tabs/index.js +14 -0
  441. package/generated/react/text/index.d.ts +115 -107
  442. package/generated/react/textarea/index.d.ts +137 -129
  443. package/generated/react/theme/index.d.ts +114 -106
  444. package/generated/react/video/index.d.ts +114 -106
  445. package/package.json +7 -1
  446. package/primitives/listbox/listbox.trans.styles.scss.js +1 -1
  447. package/primitives/listbox/option.trans.styles.scss.js +1 -1
  448. package/utils/helpers/custom-element-scoping.js +1 -1
@@ -83,6 +83,7 @@ __decorateClass([
83
83
  __decorateClass([
84
84
  styleExpressionProperty({
85
85
  ...forColorTokens("background"),
86
+ property: "--gds-avatar-background",
86
87
  selector: ".avatar"
87
88
  })
88
89
  ], GdsAvatar.prototype, "background", 2);
@@ -42,7 +42,10 @@ const style = css`
42
42
  user-select: none;
43
43
  box-sizing: border-box;
44
44
  overflow: hidden;
45
- background: var(--gds-sys-color-l3-neutral-01-2);
45
+ background: var(
46
+ --gds-avatar-background,
47
+ var(--gds-sys-color-l3-neutral-01-2)
48
+ );
46
49
  color: var(--gds-sys-color-content-neutral-01);
47
50
  width: var(--_size);
48
51
  height: var(--_size);
@@ -34,7 +34,7 @@ const style = css`
34
34
  @layer variants {
35
35
  .badge.information {
36
36
  --_bg: var(--gds-sys-color-l3-information-03);
37
- --_color: var(--gds-sys-color-content-information-01);
37
+ --_color: var(--gds-sys-color-content-neutral-01);
38
38
  }
39
39
 
40
40
  .badge.notice {
@@ -41,7 +41,7 @@ const style = css`
41
41
  padding-inline: var(--gds-sys-space-xl);
42
42
  position: relative;
43
43
  text-decoration: none;
44
- transition-property: color, border-colorm, background;
44
+ transition-property: color, border-color, background;
45
45
  transition-duration: 0.2s;
46
46
  flex: 1;
47
47
 
@@ -1,2 +1,2 @@
1
- const styles = "/* stylelint-disable max-nesting-depth */\n/**\n * Assert that a map is in ascending order\n * @mixin assert-ascending\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Assert that the first breakpoint in a map starts at zero\n * @mixin assert-starts-at-zero\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Check if a value is important\n * @function is-important\n * @param {Boolean} $important - Whether the value is important\n * @return {String} - \"!important\" if true, otherwise an empty string\n */\n/**\n * Replace a substring in a string\n * @function str-replace\n * @param {String} $string - The original string\n * @param {String} $search - The substring to replace\n * @param {String} $replace - The replacement string\n * @return {String} - The updated string\n */\n/**\n * Convert a map to its negative variant\n * @function negativify-map\n * @param {Map} $map - The map to convert\n * @return {Map} - The negative variant of the map\n */\n/**\n * Generate utility classes\n * @mixin generate-utility\n * @param {Map} $utility - Utility map\n * @param {String} $infix - Infix for class names\n * @param {Boolean} $is-rfs-media-query - Whether to use RFS media query\n */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * @function luminance\n * @param {Color} $color - The color to calculate luminance for\n * @return {Number} - The luminance value\n */\n/**\n * Calculate the contrast ratio between two colors.\n * @function color-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @return {Number} - The contrast ratio\n */\n/**\n * Remove the unit of a length\n * @function strip-unit\n * @param {Number} $number - Number to remove unit from\n * @return {Number} - Unitless number\n */\n/**\n * Validate font size\n * @function validate-font-size\n * @param {Number} $size - Font size to validate\n * @return {Number} - Validated font size in pixels\n */\n/**\n * Get ratio for WCAG level\n * @function get-ratio\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @return {Number} - Ratio value\n */\n/**\n * Determine if a color is light or dark\n * @function light-or-dark\n * @param {Color} $color - The color to check\n * @return {String} - \"light\" or \"dark\"\n */\n/**\n * Get the most legible color (black or white) for a given background color\n * @function most-legible-color\n * @param {Color} $color - The background color\n * @return {Color} - The most legible color\n */\n/**\n * Get the desired color combination for foreground and background colors\n * @function desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n * @return {List} - List containing background and foreground colors\n */\n/**\n * @mixin desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n */\n/**\n * Get an accessible color for a given foreground and background color\n * @function a11y-color\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @param {Number} $maxOffset - Maximum offset\n * @param {Boolean} $darkMode - Is dark mode\n * @param {Number} $ratio - Contrast ratio\n * @return {Color} - Accessible color\n */\n/**\n * Get the maximum contrast color\n * @function max-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Color} $max - Maximum contrast color\n * @return {Color} - Maximum contrast color\n */\n/**\n * Get the RGB values of a color as a string\n * @function stripped-rgb\n * @param {Color} $color - The color\n * @return {String} - RGB values as a string\n */\n/**\n * Get the HSL values of a color as a string\n * @function stripped-hsl\n * @param {Color} $color - The color\n * @return {String} - HSL values as a string\n */\n/**\n * Convert a map of colors to a map of HSL values\n * @function hsl-map\n * @param {Map} $colors - Map of colors\n * @return {Map} - Map of HSL values\n */\n/**\n* @deprecated\n* Use `add-focus` instead\n*/\n/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */\n/**\n * Breakpoint viewport sizes and media queries.\n *\n * Breakpoints are defined as a map of (name: minimum width), order from small to large:\n *\n * (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n *\n * The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n */\n/**\n * Name of the next breakpoint, or null for the last breakpoint.\n *\n * >> breakpoint-next(sm)\n * md\n * >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * md\n * >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n * md\n */\n/**\n * Minimum breakpoint width. Null for the smallest (first) breakpoint.\n *\n * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 576px\n */\n/**\n * Maximum breakpoint width.\n * The maximum value is reduced by 0.02px to work around the limitations of\n * `min-` and `max-` prefixes and viewports with fractional widths.\n * See https://www.w3.org/TR/mediaqueries-4/#mq-min-max\n * Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.\n * See https://bugs.webkit.org/show_bug.cgi?id=178261\n *\n * >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 767.98px\n */\n/**\n * Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.\n * Useful for making responsive utilities.\n *\n * >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"\" (Returns a blank string)\n * >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"-sm\"\n */\n/**\n * Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n * Makes the @content apply to the given breakpoint and wider.\n */\n/**\n * Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n * Makes the @content apply to the given breakpoint and narrower.\n */\n/**\n * Media that spans multiple breakpoint widths.\n * Makes the @content apply between the min and max breakpoints\n */\n/**\n * Media between the breakpoint's minimum and maximum widths.\n * No minimum for the smallest breakpoint, and no maximum for the largest one.\n * Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n @layer _base, _ranks, _overrides;\n :host {\n display: inline-block;\n }\n @layer _base {\n .button {\n background-color: transparent;\n border: 0;\n cursor: pointer;\n font-family: inherit;\n padding: 0;\n padding-left: 1rem;\n padding-right: 1rem;\n padding-bottom: 0.75rem;\n padding-top: 0.75rem;\n border-radius: 0.25rem;\n border: solid 1px var(--gds-sys-color-base-600);\n font-weight: 500;\n }\n .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n .button:focus, .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n .button {\n min-height: 2.75rem;\n align-items: center;\n display: inline-flex;\n justify-content: center;\n }\n @media (max-width: 35.98em) {\n .button {\n min-width: 100%;\n }\n }\n @media screen and (-ms-high-contrast: active) {\n .button {\n border: 2px solid currentcolor;\n }\n }\n .button.small {\n min-height: 2rem;\n height: 2rem;\n padding: 0.4375rem 0.75rem;\n font-size: 0.875rem;\n line-height: 1rem;\n }\n .button.large {\n min-height: 4rem;\n padding: 1rem 1.5rem;\n font-size: 1.5rem;\n line-height: 2rem;\n }\n .button {\n box-sizing: border-box;\n font-size: inherit;\n overflow: hidden;\n display: flex;\n gap: 0.5rem;\n text-decoration: none;\n width: 100%;\n }\n .button slot:not([name]) {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n :host(:not([variant=ghost])) .button {\n transition: border var(--gds-sys-transition);\n }\n :host(:not([variant=ghost])) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background: var(--gds-sys-color-dark-blue-1);\n color: var(--gds-sys-color-text-white);\n --background: var(--gds-sys-color-dark-blue-1);\n --color: var(--gds-sys-color-text-white);\n border-color: var(--gds-sys-color-dark-blue-1);\n }\n :host(:not([variant=ghost])) .button[aria-selected=true], :host(:not([variant=ghost])) .button:active, :host(:not([variant=ghost])) .button.active, :host(:not([variant=ghost])) .button.active:hover, :host(:not([variant=ghost])) .button:active:hover {\n background: var(--gds-sys-color-dark-blue-2);\n color: var(--gds-sys-color-text-white);\n --background: $bg;\n --color: $color;\n border-color: var(--gds-sys-color-dark-blue-2);\n }\n :host(:not([variant=ghost])) .button {\n background: var(--gds-sys-color-dark-blue-2);\n border-color: var(--gds-sys-color-dark-blue-2);\n color: var(--gds-sys-color-text-white);\n --color: var(--gds-sys-color-text-white);\n }\n :host(:not([variant=ghost])) .button:disabled, :host(:not([variant=ghost])) .button.disabled, :host(:not([variant=ghost])) .button[aria-disabled=true] {\n background: var(--gds-sys-color-base-300) !important;\n color: var(--gds-sys-color-text-disabled) !important;\n border-color: var(--gds-sys-color-text-disabled) !important;\n cursor: not-allowed;\n }\n :host(:not([variant=ghost])) .button:disabled::-moz-placeholder, :host(:not([variant=ghost])) .button.disabled::-moz-placeholder, :host(:not([variant=ghost])) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host(:not([variant=ghost])) .button:disabled::placeholder, :host(:not([variant=ghost])) .button.disabled::placeholder, :host(:not([variant=ghost])) .button[aria-disabled=true]::placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host([rank*=secondary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([rank*=secondary]) .button:focus, :host([rank*=secondary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([rank*=secondary]) .button {\n transition: border var(--gds-sys-transition);\n }\n :host([rank*=secondary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background: var(--gds-sys-color-dark-blue-1);\n color: var(--gds-sys-color-text-white);\n --background: var(--gds-sys-color-dark-blue-1);\n --color: var(--gds-sys-color-text-white);\n border-color: var(--gds-sys-color-dark-blue-1);\n }\n :host([rank*=secondary]) .button[aria-selected=true], :host([rank*=secondary]) .button:active, :host([rank*=secondary]) .button.active, :host([rank*=secondary]) .button.active:hover, :host([rank*=secondary]) .button:active:hover {\n background: var(--gds-sys-color-dark-blue-2);\n color: var(--gds-sys-color-text-white);\n --background: $bg;\n --color: $color;\n border-color: var(--gds-sys-color-dark-blue-2);\n }\n :host([rank*=secondary]) .button {\n background: transparent;\n border-color: var(--gds-sys-color-dark-blue-2);\n color: var(--gds-sys-color-dark-blue-2);\n --color: var(--gds-sys-color-dark-blue-2);\n }\n :host([rank*=secondary]) .button:disabled, :host([rank*=secondary]) .button.disabled, :host([rank*=secondary]) .button[aria-disabled=true] {\n background: var(--gds-sys-color-base-300) !important;\n color: var(--gds-sys-color-text-disabled) !important;\n border-color: var(--gds-sys-color-text-disabled) !important;\n cursor: not-allowed;\n }\n :host([rank*=secondary]) .button:disabled::-moz-placeholder, :host([rank*=secondary]) .button.disabled::-moz-placeholder, :host([rank*=secondary]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host([rank*=secondary]) .button:disabled::placeholder, :host([rank*=secondary]) .button.disabled::placeholder, :host([rank*=secondary]) .button[aria-disabled=true]::placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host([rank*=tertiary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([rank*=tertiary]) .button:focus, :host([rank*=tertiary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([rank*=tertiary]) .button {\n transition: border var(--gds-sys-transition);\n }\n :host([rank*=tertiary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background: var(--gds-sys-color-dark-blue-1);\n color: var(--gds-sys-color-text-white);\n --background: var(--gds-sys-color-dark-blue-1);\n --color: var(--gds-sys-color-text-white);\n border-color: var(--gds-sys-color-dark-blue-1);\n }\n :host([rank*=tertiary]) .button[aria-selected=true], :host([rank*=tertiary]) .button:active, :host([rank*=tertiary]) .button.active, :host([rank*=tertiary]) .button.active:hover, :host([rank*=tertiary]) .button:active:hover {\n background: var(--gds-sys-color-dark-blue-2);\n color: var(--gds-sys-color-text-white);\n --background: $bg;\n --color: $color;\n border-color: var(--gds-sys-color-dark-blue-2);\n }\n :host([rank*=tertiary]) .button {\n background: transparent;\n border-color: transparent;\n color: var(--gds-sys-color-dark-blue-2);\n --color: var(--gds-sys-color-dark-blue-2);\n }\n :host([rank*=tertiary]) .button:disabled, :host([rank*=tertiary]) .button.disabled, :host([rank*=tertiary]) .button[aria-disabled=true] {\n background: var(--gds-sys-color-base-300) !important;\n color: var(--gds-sys-color-text-disabled) !important;\n border-color: var(--gds-sys-color-text-disabled) !important;\n cursor: not-allowed;\n }\n :host([rank*=tertiary]) .button:disabled::-moz-placeholder, :host([rank*=tertiary]) .button.disabled::-moz-placeholder, :host([rank*=tertiary]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host([rank*=tertiary]) .button:disabled::placeholder, :host([rank*=tertiary]) .button.disabled::placeholder, :host([rank*=tertiary]) .button[aria-disabled=true]::placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n /* stylelint-disable */\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button,\n :host([variant=negative][rank=primary]) .button {\n background: var(--gds-sys-color-dark-red-1);\n border-color: var(--gds-sys-color-dark-red-1);\n color: var(--gds-sys-color-text-white);\n --color: var(--gds-sys-color-text-white);\n transition: border var(--gds-sys-transition);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:not(:disabled, .disabled, [aria-disabled]):hover,\n :host([variant=negative][rank=primary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background: var(--gds-sys-color-dark-red-1);\n color: var(--gds-sys-color-text-white);\n --background: var(--gds-sys-color-dark-red-1);\n --color: var(--gds-sys-color-text-white);\n border-color: var(--gds-sys-color-dark-red-1);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-selected=true], :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:active, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.active, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.active:hover, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:active:hover,\n :host([variant=negative][rank=primary]) .button[aria-selected=true],\n :host([variant=negative][rank=primary]) .button:active,\n :host([variant=negative][rank=primary]) .button.active,\n :host([variant=negative][rank=primary]) .button.active:hover,\n :host([variant=negative][rank=primary]) .button:active:hover {\n background: var(--gds-sys-color-dark-red-1);\n color: var(--gds-sys-color-text-white);\n --background: $bg;\n --color: $color;\n border-color: var(--gds-sys-color-dark-red-1);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-selected]:hover, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.active:hover, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:active:hover,\n :host([variant=negative][rank=primary]) .button[aria-selected]:hover,\n :host([variant=negative][rank=primary]) .button.active:hover,\n :host([variant=negative][rank=primary]) .button:active:hover {\n opacity: 0.9;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:focus:not(:focus-visible),\n :host([variant=negative][rank=primary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:focus, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:focus-visible,\n :host([variant=negative][rank=primary]) .button:focus,\n :host([variant=negative][rank=primary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:disabled, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.disabled, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-disabled=true],\n :host([variant=negative][rank=primary]) .button:disabled,\n :host([variant=negative][rank=primary]) .button.disabled,\n :host([variant=negative][rank=primary]) .button[aria-disabled=true] {\n background: var(--gds-sys-color-background-primary) !important;\n color: var(--gds-sys-color-text-white) !important;\n border-color: var(--gds-sys-color-dark-red-1) !important;\n cursor: not-allowed;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:disabled::-moz-placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.disabled::-moz-placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-disabled=true]::-moz-placeholder, :host([variant=negative][rank=primary]) .button:disabled::-moz-placeholder, :host([variant=negative][rank=primary]) .button.disabled::-moz-placeholder, :host([variant=negative][rank=primary]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:disabled::placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.disabled::placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-disabled=true]::placeholder,\n :host([variant=negative][rank=primary]) .button:disabled::placeholder,\n :host([variant=negative][rank=primary]) .button.disabled::placeholder,\n :host([variant=negative][rank=primary]) .button[aria-disabled=true]::placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n /* stylelint-enable */\n :host([variant=negative][rank=secondary]) .button,\n :host([variant=negative][rank=tertiary]) .button {\n color: var(--gds-sys-color-dark-red-1);\n --color: var(--gds-sys-color-dark-red-1);\n border-color: transparent;\n transition: border var(--gds-sys-transition);\n }\n :host([variant=negative][rank=secondary]) .button:not(:disabled, .disabled, [aria-disabled]):hover,\n :host([variant=negative][rank=tertiary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background: var(--gds-sys-color-dark-red-1);\n color: var(--gds-sys-color-text-white);\n --background: var(--gds-sys-color-dark-red-1);\n --color: var(--gds-sys-color-text-white);\n border-color: var(--gds-sys-color-dark-red-1);\n }\n :host([variant=negative][rank=secondary]) .button[aria-selected=true], :host([variant=negative][rank=secondary]) .button:active, :host([variant=negative][rank=secondary]) .button.active, :host([variant=negative][rank=secondary]) .button.active:hover, :host([variant=negative][rank=secondary]) .button:active:hover,\n :host([variant=negative][rank=tertiary]) .button[aria-selected=true],\n :host([variant=negative][rank=tertiary]) .button:active,\n :host([variant=negative][rank=tertiary]) .button.active,\n :host([variant=negative][rank=tertiary]) .button.active:hover,\n :host([variant=negative][rank=tertiary]) .button:active:hover {\n background: var(--gds-sys-color-dark-red-1);\n color: var(--gds-sys-color-text-white);\n --background: $bg;\n --color: $color;\n border-color: var(--gds-sys-color-dark-red-1);\n }\n :host([variant=negative][rank=secondary]) .button[aria-selected]:hover, :host([variant=negative][rank=secondary]) .button.active:hover, :host([variant=negative][rank=secondary]) .button:active:hover,\n :host([variant=negative][rank=tertiary]) .button[aria-selected]:hover,\n :host([variant=negative][rank=tertiary]) .button.active:hover,\n :host([variant=negative][rank=tertiary]) .button:active:hover {\n opacity: 0.9;\n }\n :host([variant=negative][rank=secondary]) .button:focus:not(:focus-visible),\n :host([variant=negative][rank=tertiary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([variant=negative][rank=secondary]) .button:focus, :host([variant=negative][rank=secondary]) .button:focus-visible,\n :host([variant=negative][rank=tertiary]) .button:focus,\n :host([variant=negative][rank=tertiary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([variant=negative][rank=secondary]) .button {\n border-color: var(--gds-sys-color-dark-red-2);\n }\n :host([variant=ghost]) .button {\n transition: border var(--gds-sys-transition);\n }\n :host([variant=ghost]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background: var(--gds-sys-color-base-800);\n color: var(--gds-sys-color-text-white);\n --background: var(--gds-sys-color-base-800);\n --color: var(--gds-sys-color-text-white);\n border-color: var(--gds-sys-color-base-800);\n }\n :host([variant=ghost]) .button[aria-selected=true], :host([variant=ghost]) .button:active, :host([variant=ghost]) .button.active, :host([variant=ghost]) .button.active:hover, :host([variant=ghost]) .button:active:hover {\n background: var(--gds-sys-color-base-800);\n color: var(--gds-sys-color-text-white);\n --background: $bg;\n --color: $color;\n border-color: var(--gds-sys-color-base-800);\n }\n :host([variant=ghost]) .button[aria-selected]:hover, :host([variant=ghost]) .button.active:hover, :host([variant=ghost]) .button:active:hover {\n opacity: 0.9;\n }\n :host([variant=ghost]) .button {\n background-color: transparent;\n border-color: var(--gds-sys-color-base-800);\n color: var(--gds-sys-color-base-800);\n --color: var(--gds-sys-color-base-800);\n }\n :host([variant=ghost]) .button:disabled, :host([variant=ghost]) .button.disabled, :host([variant=ghost]) .button[aria-disabled=true] {\n color: var(--gds-sys-color-text-disabled) !important;\n border-color: var(--gds-sys-color-text-disabled) !important;\n cursor: not-allowed;\n }\n :host([variant=ghost]) .button:disabled::-moz-placeholder, :host([variant=ghost]) .button.disabled::-moz-placeholder, :host([variant=ghost]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host([variant=ghost]) .button:disabled::placeholder, :host([variant=ghost]) .button.disabled::placeholder, :host([variant=ghost]) .button[aria-disabled=true]::placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n }\n @layer _overrides {\n :host .button.icon {\n padding: 0.75rem;\n background: transparent;\n border-width: 0px;\n color: currentColor;\n }\n :host .button.icon:hover {\n color: currentColor;\n background: var(--gds-sys-color-base-300);\n }\n :host .button.icon slot {\n display: contents;\n }\n .button.icon.xs {\n min-height: 1.5rem;\n line-height: 0.75rem;\n padding: 0.25rem;\n }\n .button.icon.small {\n padding: 0.5rem;\n }\n .button.icon.large {\n padding: 1rem;\n }\n }\n}";
1
+ const styles = "/* stylelint-disable max-nesting-depth */\n/**\n * Assert that a map is in ascending order\n * @mixin assert-ascending\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Assert that the first breakpoint in a map starts at zero\n * @mixin assert-starts-at-zero\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Check if a value is important\n * @function is-important\n * @param {Boolean} $important - Whether the value is important\n * @return {String} - \"!important\" if true, otherwise an empty string\n */\n/**\n * Replace a substring in a string\n * @function str-replace\n * @param {String} $string - The original string\n * @param {String} $search - The substring to replace\n * @param {String} $replace - The replacement string\n * @return {String} - The updated string\n */\n/**\n * Convert a map to its negative variant\n * @function negativify-map\n * @param {Map} $map - The map to convert\n * @return {Map} - The negative variant of the map\n */\n/**\n * Generate utility classes\n * @mixin generate-utility\n * @param {Map} $utility - Utility map\n * @param {String} $infix - Infix for class names\n * @param {Boolean} $is-rfs-media-query - Whether to use RFS media query\n */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * @function luminance\n * @param {Color} $color - The color to calculate luminance for\n * @return {Number} - The luminance value\n */\n/**\n * Calculate the contrast ratio between two colors.\n * @function color-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @return {Number} - The contrast ratio\n */\n/**\n * Remove the unit of a length\n * @function strip-unit\n * @param {Number} $number - Number to remove unit from\n * @return {Number} - Unitless number\n */\n/**\n * Validate font size\n * @function validate-font-size\n * @param {Number} $size - Font size to validate\n * @return {Number} - Validated font size in pixels\n */\n/**\n * Get ratio for WCAG level\n * @function get-ratio\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @return {Number} - Ratio value\n */\n/**\n * Determine if a color is light or dark\n * @function light-or-dark\n * @param {Color} $color - The color to check\n * @return {String} - \"light\" or \"dark\"\n */\n/**\n * Get the most legible color (black or white) for a given background color\n * @function most-legible-color\n * @param {Color} $color - The background color\n * @return {Color} - The most legible color\n */\n/**\n * Get the desired color combination for foreground and background colors\n * @function desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n * @return {List} - List containing background and foreground colors\n */\n/**\n * @mixin desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n */\n/**\n * Get an accessible color for a given foreground and background color\n * @function a11y-color\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @param {Number} $maxOffset - Maximum offset\n * @param {Boolean} $darkMode - Is dark mode\n * @param {Number} $ratio - Contrast ratio\n * @return {Color} - Accessible color\n */\n/**\n * Get the maximum contrast color\n * @function max-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Color} $max - Maximum contrast color\n * @return {Color} - Maximum contrast color\n */\n/**\n * Get the RGB values of a color as a string\n * @function stripped-rgb\n * @param {Color} $color - The color\n * @return {String} - RGB values as a string\n */\n/**\n * Get the HSL values of a color as a string\n * @function stripped-hsl\n * @param {Color} $color - The color\n * @return {String} - HSL values as a string\n */\n/**\n * Convert a map of colors to a map of HSL values\n * @function hsl-map\n * @param {Map} $colors - Map of colors\n * @return {Map} - Map of HSL values\n */\n/**\n* @deprecated\n* Use `add-focus` instead\n*/\n/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */\n/**\n * Breakpoint viewport sizes and media queries.\n *\n * Breakpoints are defined as a map of (name: minimum width), order from small to large:\n *\n * (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n *\n * The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n */\n/**\n * Name of the next breakpoint, or null for the last breakpoint.\n *\n * >> breakpoint-next(sm)\n * md\n * >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * md\n * >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n * md\n */\n/**\n * Minimum breakpoint width. Null for the smallest (first) breakpoint.\n *\n * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 576px\n */\n/**\n * Maximum breakpoint width.\n * The maximum value is reduced by 0.02px to work around the limitations of\n * `min-` and `max-` prefixes and viewports with fractional widths.\n * See https://www.w3.org/TR/mediaqueries-4/#mq-min-max\n * Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.\n * See https://bugs.webkit.org/show_bug.cgi?id=178261\n *\n * >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 767.98px\n */\n/**\n * Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.\n * Useful for making responsive utilities.\n *\n * >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"\" (Returns a blank string)\n * >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"-sm\"\n */\n/**\n * Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n * Makes the @content apply to the given breakpoint and wider.\n */\n/**\n * Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n * Makes the @content apply to the given breakpoint and narrower.\n */\n/**\n * Media that spans multiple breakpoint widths.\n * Makes the @content apply between the min and max breakpoints\n */\n/**\n * Media between the breakpoint's minimum and maximum widths.\n * No minimum for the smallest breakpoint, and no maximum for the largest one.\n * Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n @layer _base, _ranks, _overrides;\n :host {\n display: inline-block;\n }\n @layer _base {\n .button {\n background-color: transparent;\n border: 0;\n cursor: pointer;\n font-family: inherit;\n padding: 0;\n padding-left: 1rem \"\";\n padding-right: 1rem \"\";\n padding-bottom: 0.75rem \"\";\n padding-top: 0.75rem \"\";\n border-radius: 0.25rem;\n border: solid 1px var(--gds-sys-color-base-600);\n font-weight: 500;\n }\n .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n .button:focus, .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n .button {\n min-height: 2.75rem;\n align-items: center;\n display: inline-flex;\n justify-content: center;\n }\n @media (max-width: 35.98em) {\n .button {\n min-width: 100%;\n }\n }\n @media screen and (-ms-high-contrast: active) {\n .button {\n border: 2px solid currentcolor;\n }\n }\n .button.small {\n min-height: 2rem;\n height: 2rem;\n padding: 0.4375rem 0.75rem;\n font-size: 0.875rem;\n line-height: 1rem;\n }\n .button.large {\n min-height: 4rem;\n padding: 1rem 1.5rem;\n font-size: 1.5rem;\n line-height: 2rem;\n }\n .button {\n box-sizing: border-box;\n font-size: inherit;\n overflow: hidden;\n display: flex;\n gap: 0.5rem;\n text-decoration: none;\n width: 100%;\n }\n .button slot:not([name]) {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n :host(:not([variant=ghost])) .button {\n transition: border var(--gds-sys-transition);\n }\n :host(:not([variant=ghost])) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background: var(--gds-sys-color-dark-blue-1);\n color: var(--gds-sys-color-text-white);\n --background: var(--gds-sys-color-dark-blue-1);\n --color: var(--gds-sys-color-text-white);\n border-color: var(--gds-sys-color-dark-blue-1);\n }\n :host(:not([variant=ghost])) .button[aria-selected=true], :host(:not([variant=ghost])) .button:active, :host(:not([variant=ghost])) .button.active, :host(:not([variant=ghost])) .button.active:hover, :host(:not([variant=ghost])) .button:active:hover {\n background: var(--gds-sys-color-dark-blue-2);\n color: var(--gds-sys-color-text-white);\n --background: $bg;\n --color: $color;\n border-color: var(--gds-sys-color-dark-blue-2);\n }\n :host(:not([variant=ghost])) .button {\n background: var(--gds-sys-color-dark-blue-2);\n border-color: var(--gds-sys-color-dark-blue-2);\n color: var(--gds-sys-color-text-white);\n --color: var(--gds-sys-color-text-white);\n }\n :host(:not([variant=ghost])) .button:disabled, :host(:not([variant=ghost])) .button.disabled, :host(:not([variant=ghost])) .button[aria-disabled=true] {\n background: var(--gds-sys-color-base-300) !important;\n color: var(--gds-sys-color-text-disabled) !important;\n border-color: var(--gds-sys-color-text-disabled) !important;\n cursor: not-allowed;\n }\n :host(:not([variant=ghost])) .button:disabled::-moz-placeholder, :host(:not([variant=ghost])) .button.disabled::-moz-placeholder, :host(:not([variant=ghost])) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host(:not([variant=ghost])) .button:disabled::placeholder, :host(:not([variant=ghost])) .button.disabled::placeholder, :host(:not([variant=ghost])) .button[aria-disabled=true]::placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host([rank*=secondary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([rank*=secondary]) .button:focus, :host([rank*=secondary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([rank*=secondary]) .button {\n transition: border var(--gds-sys-transition);\n }\n :host([rank*=secondary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background: var(--gds-sys-color-dark-blue-1);\n color: var(--gds-sys-color-text-white);\n --background: var(--gds-sys-color-dark-blue-1);\n --color: var(--gds-sys-color-text-white);\n border-color: var(--gds-sys-color-dark-blue-1);\n }\n :host([rank*=secondary]) .button[aria-selected=true], :host([rank*=secondary]) .button:active, :host([rank*=secondary]) .button.active, :host([rank*=secondary]) .button.active:hover, :host([rank*=secondary]) .button:active:hover {\n background: var(--gds-sys-color-dark-blue-2);\n color: var(--gds-sys-color-text-white);\n --background: $bg;\n --color: $color;\n border-color: var(--gds-sys-color-dark-blue-2);\n }\n :host([rank*=secondary]) .button {\n background: transparent;\n border-color: var(--gds-sys-color-dark-blue-2);\n color: var(--gds-sys-color-dark-blue-2);\n --color: var(--gds-sys-color-dark-blue-2);\n }\n :host([rank*=secondary]) .button:disabled, :host([rank*=secondary]) .button.disabled, :host([rank*=secondary]) .button[aria-disabled=true] {\n background: var(--gds-sys-color-base-300) !important;\n color: var(--gds-sys-color-text-disabled) !important;\n border-color: var(--gds-sys-color-text-disabled) !important;\n cursor: not-allowed;\n }\n :host([rank*=secondary]) .button:disabled::-moz-placeholder, :host([rank*=secondary]) .button.disabled::-moz-placeholder, :host([rank*=secondary]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host([rank*=secondary]) .button:disabled::placeholder, :host([rank*=secondary]) .button.disabled::placeholder, :host([rank*=secondary]) .button[aria-disabled=true]::placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host([rank*=tertiary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([rank*=tertiary]) .button:focus, :host([rank*=tertiary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([rank*=tertiary]) .button {\n transition: border var(--gds-sys-transition);\n }\n :host([rank*=tertiary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background: var(--gds-sys-color-dark-blue-1);\n color: var(--gds-sys-color-text-white);\n --background: var(--gds-sys-color-dark-blue-1);\n --color: var(--gds-sys-color-text-white);\n border-color: var(--gds-sys-color-dark-blue-1);\n }\n :host([rank*=tertiary]) .button[aria-selected=true], :host([rank*=tertiary]) .button:active, :host([rank*=tertiary]) .button.active, :host([rank*=tertiary]) .button.active:hover, :host([rank*=tertiary]) .button:active:hover {\n background: var(--gds-sys-color-dark-blue-2);\n color: var(--gds-sys-color-text-white);\n --background: $bg;\n --color: $color;\n border-color: var(--gds-sys-color-dark-blue-2);\n }\n :host([rank*=tertiary]) .button {\n background: transparent;\n border-color: transparent;\n color: var(--gds-sys-color-dark-blue-2);\n --color: var(--gds-sys-color-dark-blue-2);\n }\n :host([rank*=tertiary]) .button:disabled, :host([rank*=tertiary]) .button.disabled, :host([rank*=tertiary]) .button[aria-disabled=true] {\n background: var(--gds-sys-color-base-300) !important;\n color: var(--gds-sys-color-text-disabled) !important;\n border-color: var(--gds-sys-color-text-disabled) !important;\n cursor: not-allowed;\n }\n :host([rank*=tertiary]) .button:disabled::-moz-placeholder, :host([rank*=tertiary]) .button.disabled::-moz-placeholder, :host([rank*=tertiary]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host([rank*=tertiary]) .button:disabled::placeholder, :host([rank*=tertiary]) .button.disabled::placeholder, :host([rank*=tertiary]) .button[aria-disabled=true]::placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n /* stylelint-disable */\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button,\n :host([variant=negative][rank=primary]) .button {\n background: var(--gds-sys-color-dark-red-1);\n border-color: var(--gds-sys-color-dark-red-1);\n color: var(--gds-sys-color-text-white);\n --color: var(--gds-sys-color-text-white);\n transition: border var(--gds-sys-transition);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:not(:disabled, .disabled, [aria-disabled]):hover,\n :host([variant=negative][rank=primary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background: var(--gds-sys-color-dark-red-1);\n color: var(--gds-sys-color-text-white);\n --background: var(--gds-sys-color-dark-red-1);\n --color: var(--gds-sys-color-text-white);\n border-color: var(--gds-sys-color-dark-red-1);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-selected=true], :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:active, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.active, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.active:hover, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:active:hover,\n :host([variant=negative][rank=primary]) .button[aria-selected=true],\n :host([variant=negative][rank=primary]) .button:active,\n :host([variant=negative][rank=primary]) .button.active,\n :host([variant=negative][rank=primary]) .button.active:hover,\n :host([variant=negative][rank=primary]) .button:active:hover {\n background: var(--gds-sys-color-dark-red-1);\n color: var(--gds-sys-color-text-white);\n --background: $bg;\n --color: $color;\n border-color: var(--gds-sys-color-dark-red-1);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-selected]:hover, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.active:hover, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:active:hover,\n :host([variant=negative][rank=primary]) .button[aria-selected]:hover,\n :host([variant=negative][rank=primary]) .button.active:hover,\n :host([variant=negative][rank=primary]) .button:active:hover {\n opacity: 0.9;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:focus:not(:focus-visible),\n :host([variant=negative][rank=primary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:focus, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:focus-visible,\n :host([variant=negative][rank=primary]) .button:focus,\n :host([variant=negative][rank=primary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:disabled, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.disabled, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-disabled=true],\n :host([variant=negative][rank=primary]) .button:disabled,\n :host([variant=negative][rank=primary]) .button.disabled,\n :host([variant=negative][rank=primary]) .button[aria-disabled=true] {\n background: var(--gds-sys-color-background-primary) !important;\n color: var(--gds-sys-color-text-white) !important;\n border-color: var(--gds-sys-color-dark-red-1) !important;\n cursor: not-allowed;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:disabled::-moz-placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.disabled::-moz-placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-disabled=true]::-moz-placeholder, :host([variant=negative][rank=primary]) .button:disabled::-moz-placeholder, :host([variant=negative][rank=primary]) .button.disabled::-moz-placeholder, :host([variant=negative][rank=primary]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:disabled::placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.disabled::placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-disabled=true]::placeholder,\n :host([variant=negative][rank=primary]) .button:disabled::placeholder,\n :host([variant=negative][rank=primary]) .button.disabled::placeholder,\n :host([variant=negative][rank=primary]) .button[aria-disabled=true]::placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n /* stylelint-enable */\n :host([variant=negative][rank=secondary]) .button,\n :host([variant=negative][rank=tertiary]) .button {\n color: var(--gds-sys-color-dark-red-1);\n --color: var(--gds-sys-color-dark-red-1);\n border-color: transparent;\n transition: border var(--gds-sys-transition);\n }\n :host([variant=negative][rank=secondary]) .button:not(:disabled, .disabled, [aria-disabled]):hover,\n :host([variant=negative][rank=tertiary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background: var(--gds-sys-color-dark-red-1);\n color: var(--gds-sys-color-text-white);\n --background: var(--gds-sys-color-dark-red-1);\n --color: var(--gds-sys-color-text-white);\n border-color: var(--gds-sys-color-dark-red-1);\n }\n :host([variant=negative][rank=secondary]) .button[aria-selected=true], :host([variant=negative][rank=secondary]) .button:active, :host([variant=negative][rank=secondary]) .button.active, :host([variant=negative][rank=secondary]) .button.active:hover, :host([variant=negative][rank=secondary]) .button:active:hover,\n :host([variant=negative][rank=tertiary]) .button[aria-selected=true],\n :host([variant=negative][rank=tertiary]) .button:active,\n :host([variant=negative][rank=tertiary]) .button.active,\n :host([variant=negative][rank=tertiary]) .button.active:hover,\n :host([variant=negative][rank=tertiary]) .button:active:hover {\n background: var(--gds-sys-color-dark-red-1);\n color: var(--gds-sys-color-text-white);\n --background: $bg;\n --color: $color;\n border-color: var(--gds-sys-color-dark-red-1);\n }\n :host([variant=negative][rank=secondary]) .button[aria-selected]:hover, :host([variant=negative][rank=secondary]) .button.active:hover, :host([variant=negative][rank=secondary]) .button:active:hover,\n :host([variant=negative][rank=tertiary]) .button[aria-selected]:hover,\n :host([variant=negative][rank=tertiary]) .button.active:hover,\n :host([variant=negative][rank=tertiary]) .button:active:hover {\n opacity: 0.9;\n }\n :host([variant=negative][rank=secondary]) .button:focus:not(:focus-visible),\n :host([variant=negative][rank=tertiary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([variant=negative][rank=secondary]) .button:focus, :host([variant=negative][rank=secondary]) .button:focus-visible,\n :host([variant=negative][rank=tertiary]) .button:focus,\n :host([variant=negative][rank=tertiary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([variant=negative][rank=secondary]) .button {\n border-color: var(--gds-sys-color-dark-red-2);\n }\n :host([variant=ghost]) .button {\n transition: border var(--gds-sys-transition);\n }\n :host([variant=ghost]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background: var(--gds-sys-color-base-800);\n color: var(--gds-sys-color-text-white);\n --background: var(--gds-sys-color-base-800);\n --color: var(--gds-sys-color-text-white);\n border-color: var(--gds-sys-color-base-800);\n }\n :host([variant=ghost]) .button[aria-selected=true], :host([variant=ghost]) .button:active, :host([variant=ghost]) .button.active, :host([variant=ghost]) .button.active:hover, :host([variant=ghost]) .button:active:hover {\n background: var(--gds-sys-color-base-800);\n color: var(--gds-sys-color-text-white);\n --background: $bg;\n --color: $color;\n border-color: var(--gds-sys-color-base-800);\n }\n :host([variant=ghost]) .button[aria-selected]:hover, :host([variant=ghost]) .button.active:hover, :host([variant=ghost]) .button:active:hover {\n opacity: 0.9;\n }\n :host([variant=ghost]) .button {\n background-color: transparent;\n border-color: var(--gds-sys-color-base-800);\n color: var(--gds-sys-color-base-800);\n --color: var(--gds-sys-color-base-800);\n }\n :host([variant=ghost]) .button:disabled, :host([variant=ghost]) .button.disabled, :host([variant=ghost]) .button[aria-disabled=true] {\n color: var(--gds-sys-color-text-disabled) !important;\n border-color: var(--gds-sys-color-text-disabled) !important;\n cursor: not-allowed;\n }\n :host([variant=ghost]) .button:disabled::-moz-placeholder, :host([variant=ghost]) .button.disabled::-moz-placeholder, :host([variant=ghost]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n :host([variant=ghost]) .button:disabled::placeholder, :host([variant=ghost]) .button.disabled::placeholder, :host([variant=ghost]) .button[aria-disabled=true]::placeholder {\n color: var(--gds-sys-color-text-disabled);\n }\n }\n @layer _overrides {\n :host .button.icon {\n padding: 0.75rem;\n background: transparent;\n border-width: 0px;\n color: currentColor;\n }\n :host .button.icon:hover {\n color: currentColor;\n background: var(--gds-sys-color-base-300);\n }\n :host .button.icon slot {\n display: contents;\n }\n .button.icon.xs {\n min-height: 1.5rem;\n line-height: 0.75rem;\n padding: 0.25rem;\n }\n .button.icon.small {\n padding: 0.5rem;\n }\n .button.icon.large {\n padding: 1rem;\n }\n }\n}";
2
2
  export default styles;
@@ -1,2 +1,2 @@
1
- const styles = "/* stylelint-disable max-nesting-depth */\n/**\n * Assert that a map is in ascending order\n * @mixin assert-ascending\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Assert that the first breakpoint in a map starts at zero\n * @mixin assert-starts-at-zero\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Check if a value is important\n * @function is-important\n * @param {Boolean} $important - Whether the value is important\n * @return {String} - \"!important\" if true, otherwise an empty string\n */\n/**\n * Replace a substring in a string\n * @function str-replace\n * @param {String} $string - The original string\n * @param {String} $search - The substring to replace\n * @param {String} $replace - The replacement string\n * @return {String} - The updated string\n */\n/**\n * Convert a map to its negative variant\n * @function negativify-map\n * @param {Map} $map - The map to convert\n * @return {Map} - The negative variant of the map\n */\n/**\n * Generate utility classes\n * @mixin generate-utility\n * @param {Map} $utility - Utility map\n * @param {String} $infix - Infix for class names\n * @param {Boolean} $is-rfs-media-query - Whether to use RFS media query\n */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * @function luminance\n * @param {Color} $color - The color to calculate luminance for\n * @return {Number} - The luminance value\n */\n/**\n * Calculate the contrast ratio between two colors.\n * @function color-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @return {Number} - The contrast ratio\n */\n/**\n * Remove the unit of a length\n * @function strip-unit\n * @param {Number} $number - Number to remove unit from\n * @return {Number} - Unitless number\n */\n/**\n * Validate font size\n * @function validate-font-size\n * @param {Number} $size - Font size to validate\n * @return {Number} - Validated font size in pixels\n */\n/**\n * Get ratio for WCAG level\n * @function get-ratio\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @return {Number} - Ratio value\n */\n/**\n * Determine if a color is light or dark\n * @function light-or-dark\n * @param {Color} $color - The color to check\n * @return {String} - \"light\" or \"dark\"\n */\n/**\n * Get the most legible color (black or white) for a given background color\n * @function most-legible-color\n * @param {Color} $color - The background color\n * @return {Color} - The most legible color\n */\n/**\n * Get the desired color combination for foreground and background colors\n * @function desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n * @return {List} - List containing background and foreground colors\n */\n/**\n * @mixin desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n */\n/**\n * Get an accessible color for a given foreground and background color\n * @function a11y-color\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @param {Number} $maxOffset - Maximum offset\n * @param {Boolean} $darkMode - Is dark mode\n * @param {Number} $ratio - Contrast ratio\n * @return {Color} - Accessible color\n */\n/**\n * Get the maximum contrast color\n * @function max-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Color} $max - Maximum contrast color\n * @return {Color} - Maximum contrast color\n */\n/**\n * Get the RGB values of a color as a string\n * @function stripped-rgb\n * @param {Color} $color - The color\n * @return {String} - RGB values as a string\n */\n/**\n * Get the HSL values of a color as a string\n * @function stripped-hsl\n * @param {Color} $color - The color\n * @return {String} - HSL values as a string\n */\n/**\n * Convert a map of colors to a map of HSL values\n * @function hsl-map\n * @param {Map} $colors - Map of colors\n * @return {Map} - Map of HSL values\n */\n/**\n* @deprecated\n* Use `add-focus` instead\n*/\n/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */\n/**\n * Breakpoint viewport sizes and media queries.\n *\n * Breakpoints are defined as a map of (name: minimum width), order from small to large:\n *\n * (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n *\n * The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n */\n/**\n * Name of the next breakpoint, or null for the last breakpoint.\n *\n * >> breakpoint-next(sm)\n * md\n * >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * md\n * >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n * md\n */\n/**\n * Minimum breakpoint width. Null for the smallest (first) breakpoint.\n *\n * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 576px\n */\n/**\n * Maximum breakpoint width.\n * The maximum value is reduced by 0.02px to work around the limitations of\n * `min-` and `max-` prefixes and viewports with fractional widths.\n * See https://www.w3.org/TR/mediaqueries-4/#mq-min-max\n * Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.\n * See https://bugs.webkit.org/show_bug.cgi?id=178261\n *\n * >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 767.98px\n */\n/**\n * Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.\n * Useful for making responsive utilities.\n *\n * >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"\" (Returns a blank string)\n * >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"-sm\"\n */\n/**\n * Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n * Makes the @content apply to the given breakpoint and wider.\n */\n/**\n * Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n * Makes the @content apply to the given breakpoint and narrower.\n */\n/**\n * Media that spans multiple breakpoint widths.\n * Makes the @content apply between the min and max breakpoints\n */\n/**\n * Media between the breakpoint's minimum and maximum widths.\n * No minimum for the smallest breakpoint, and no maximum for the largest one.\n * Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n @layer _base, _overrides;\n :host {\n display: inline-block;\n }\n @layer _base {\n button {\n background-color: transparent;\n border: 0;\n cursor: pointer;\n font-family: inherit;\n padding: 0;\n padding-left: 1rem;\n padding-right: 1rem;\n padding-bottom: 0.75rem;\n padding-top: 0.75rem;\n border-radius: 0.25rem;\n border: solid 1px var(--gds-sys-color-base-600);\n font-weight: 500;\n }\n button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n button:focus, button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n button {\n min-height: 2.75rem;\n align-items: center;\n display: inline-flex;\n justify-content: center;\n }\n @media (max-width: 35.98em) {\n button {\n min-width: 100%;\n }\n }\n @media screen and (-ms-high-contrast: active) {\n button {\n border: 2px solid currentcolor;\n }\n }\n button.small {\n min-height: 2rem;\n height: 2rem;\n padding: 0.4375rem 0.75rem;\n font-size: 0.875rem;\n line-height: 1rem;\n }\n button.large {\n min-height: 4rem;\n padding: 1rem 1.5rem;\n font-size: 1.5rem;\n line-height: 2rem;\n }\n button {\n background-color: transparent;\n border: 0.0625rem solid transparent;\n padding: 0.625rem;\n height: 2.75rem;\n width: 2.75rem;\n min-width: auto;\n --color: var(--gds-sys-color-base-800);\n }\n .gds-form-group button {\n margin-top: -0.625rem;\n }\n button.small {\n height: 2rem;\n width: 2rem;\n padding: 0.4375rem;\n line-height: 1.125rem;\n }\n button svg {\n height: 1rem;\n width: 1rem;\n }\n button path,\n button line,\n button circle,\n button rect,\n button ellipse,\n button polyline,\n button text {\n fill: var(--gds-sys-color-base-800);\n stroke: var(--gds-sys-color-base-800);\n transition: all var(--gds-sys-transition);\n }\n button:hover, button.highlighted {\n background-color: rgba(0, 0, 0, 0.1);\n border-color: transparent;\n }\n button:active, button.highlighted:hover {\n background-color: rgba(0, 0, 0, 0.2);\n border-color: transparent;\n }\n }\n @layer _overrides {\n button {\n border-color: transparent;\n color: var(--gds-sys-color-base-800);\n display: flex;\n gap: 0.5rem;\n line-height: 0.75;\n padding-inline: 0.4375rem;\n width: auto;\n }\n button.highlighted {\n background-color: var(--gds-sys-color-base-300);\n }\n }\n}";
1
+ const styles = "/* stylelint-disable max-nesting-depth */\n/**\n * Assert that a map is in ascending order\n * @mixin assert-ascending\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Assert that the first breakpoint in a map starts at zero\n * @mixin assert-starts-at-zero\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Check if a value is important\n * @function is-important\n * @param {Boolean} $important - Whether the value is important\n * @return {String} - \"!important\" if true, otherwise an empty string\n */\n/**\n * Replace a substring in a string\n * @function str-replace\n * @param {String} $string - The original string\n * @param {String} $search - The substring to replace\n * @param {String} $replace - The replacement string\n * @return {String} - The updated string\n */\n/**\n * Convert a map to its negative variant\n * @function negativify-map\n * @param {Map} $map - The map to convert\n * @return {Map} - The negative variant of the map\n */\n/**\n * Generate utility classes\n * @mixin generate-utility\n * @param {Map} $utility - Utility map\n * @param {String} $infix - Infix for class names\n * @param {Boolean} $is-rfs-media-query - Whether to use RFS media query\n */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * @function luminance\n * @param {Color} $color - The color to calculate luminance for\n * @return {Number} - The luminance value\n */\n/**\n * Calculate the contrast ratio between two colors.\n * @function color-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @return {Number} - The contrast ratio\n */\n/**\n * Remove the unit of a length\n * @function strip-unit\n * @param {Number} $number - Number to remove unit from\n * @return {Number} - Unitless number\n */\n/**\n * Validate font size\n * @function validate-font-size\n * @param {Number} $size - Font size to validate\n * @return {Number} - Validated font size in pixels\n */\n/**\n * Get ratio for WCAG level\n * @function get-ratio\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @return {Number} - Ratio value\n */\n/**\n * Determine if a color is light or dark\n * @function light-or-dark\n * @param {Color} $color - The color to check\n * @return {String} - \"light\" or \"dark\"\n */\n/**\n * Get the most legible color (black or white) for a given background color\n * @function most-legible-color\n * @param {Color} $color - The background color\n * @return {Color} - The most legible color\n */\n/**\n * Get the desired color combination for foreground and background colors\n * @function desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n * @return {List} - List containing background and foreground colors\n */\n/**\n * @mixin desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n */\n/**\n * Get an accessible color for a given foreground and background color\n * @function a11y-color\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @param {Number} $maxOffset - Maximum offset\n * @param {Boolean} $darkMode - Is dark mode\n * @param {Number} $ratio - Contrast ratio\n * @return {Color} - Accessible color\n */\n/**\n * Get the maximum contrast color\n * @function max-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Color} $max - Maximum contrast color\n * @return {Color} - Maximum contrast color\n */\n/**\n * Get the RGB values of a color as a string\n * @function stripped-rgb\n * @param {Color} $color - The color\n * @return {String} - RGB values as a string\n */\n/**\n * Get the HSL values of a color as a string\n * @function stripped-hsl\n * @param {Color} $color - The color\n * @return {String} - HSL values as a string\n */\n/**\n * Convert a map of colors to a map of HSL values\n * @function hsl-map\n * @param {Map} $colors - Map of colors\n * @return {Map} - Map of HSL values\n */\n/**\n* @deprecated\n* Use `add-focus` instead\n*/\n/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */\n/**\n * Breakpoint viewport sizes and media queries.\n *\n * Breakpoints are defined as a map of (name: minimum width), order from small to large:\n *\n * (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n *\n * The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n */\n/**\n * Name of the next breakpoint, or null for the last breakpoint.\n *\n * >> breakpoint-next(sm)\n * md\n * >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * md\n * >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n * md\n */\n/**\n * Minimum breakpoint width. Null for the smallest (first) breakpoint.\n *\n * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 576px\n */\n/**\n * Maximum breakpoint width.\n * The maximum value is reduced by 0.02px to work around the limitations of\n * `min-` and `max-` prefixes and viewports with fractional widths.\n * See https://www.w3.org/TR/mediaqueries-4/#mq-min-max\n * Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.\n * See https://bugs.webkit.org/show_bug.cgi?id=178261\n *\n * >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 767.98px\n */\n/**\n * Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.\n * Useful for making responsive utilities.\n *\n * >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"\" (Returns a blank string)\n * >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"-sm\"\n */\n/**\n * Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n * Makes the @content apply to the given breakpoint and wider.\n */\n/**\n * Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n * Makes the @content apply to the given breakpoint and narrower.\n */\n/**\n * Media that spans multiple breakpoint widths.\n * Makes the @content apply between the min and max breakpoints\n */\n/**\n * Media between the breakpoint's minimum and maximum widths.\n * No minimum for the smallest breakpoint, and no maximum for the largest one.\n * Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n @layer _base, _overrides;\n :host {\n display: inline-block;\n }\n @layer _base {\n button {\n background-color: transparent;\n border: 0;\n cursor: pointer;\n font-family: inherit;\n padding: 0;\n padding-left: 1rem \"\";\n padding-right: 1rem \"\";\n padding-bottom: 0.75rem \"\";\n padding-top: 0.75rem \"\";\n border-radius: 0.25rem;\n border: solid 1px var(--gds-sys-color-base-600);\n font-weight: 500;\n }\n button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n button:focus, button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n button {\n min-height: 2.75rem;\n align-items: center;\n display: inline-flex;\n justify-content: center;\n }\n @media (max-width: 35.98em) {\n button {\n min-width: 100%;\n }\n }\n @media screen and (-ms-high-contrast: active) {\n button {\n border: 2px solid currentcolor;\n }\n }\n button.small {\n min-height: 2rem;\n height: 2rem;\n padding: 0.4375rem 0.75rem;\n font-size: 0.875rem;\n line-height: 1rem;\n }\n button.large {\n min-height: 4rem;\n padding: 1rem 1.5rem;\n font-size: 1.5rem;\n line-height: 2rem;\n }\n button {\n background-color: transparent;\n border: 0.0625rem solid transparent;\n padding: 0.625rem;\n height: 2.75rem;\n width: 2.75rem;\n min-width: auto;\n --color: var(--gds-sys-color-base-800);\n }\n .gds-form-group button {\n margin-top: -0.625rem;\n }\n button.small {\n height: 2rem;\n width: 2rem;\n padding: 0.4375rem;\n line-height: 1.125rem;\n }\n button svg {\n height: 1rem;\n width: 1rem;\n }\n button path,\n button line,\n button circle,\n button rect,\n button ellipse,\n button polyline,\n button text {\n fill: var(--gds-sys-color-base-800);\n stroke: var(--gds-sys-color-base-800);\n transition: all var(--gds-sys-transition);\n }\n button:hover, button.highlighted {\n background-color: rgba(0, 0, 0, 0.1);\n border-color: transparent;\n }\n button:active, button.highlighted:hover {\n background-color: rgba(0, 0, 0, 0.2);\n border-color: transparent;\n }\n }\n @layer _overrides {\n button {\n border-color: transparent;\n color: var(--gds-sys-color-base-800);\n display: flex;\n gap: 0.5rem;\n line-height: 0.75;\n padding-inline: 0.4375rem;\n width: auto;\n }\n button.highlighted {\n background-color: var(--gds-sys-color-base-300);\n }\n }\n}";
2
2
  export default styles;
@@ -42,6 +42,7 @@ export * from './signal';
42
42
  export * from './spinner';
43
43
  export * from './switch';
44
44
  export * from './text';
45
+ export * from './tabs';
45
46
  export * from './table';
46
47
  export * from './textarea';
47
48
  export * from './theme';
@@ -42,6 +42,7 @@ export * from "./signal/index.js";
42
42
  export * from "./spinner/index.js";
43
43
  export * from "./switch/index.js";
44
44
  export * from "./text/index.js";
45
+ export * from "./tabs/index.js";
45
46
  export * from "./table/index.js";
46
47
  export * from "./textarea/index.js";
47
48
  export * from "./theme/index.js";
@@ -67,6 +67,11 @@ export declare class GdsPagination extends GdsPagination_base {
67
67
  * Hide options
68
68
  */
69
69
  hideOptions: boolean;
70
+ /**
71
+ * Enables a compact navigation mode with only previous/next arrows
72
+ * and a centered "Page N" indicator.
73
+ */
74
+ simple: boolean;
70
75
  /**
71
76
  * Controls density mode on pagination
72
77
  * Accepts: `comfortable`, `compact`, `spacious`
@@ -74,7 +79,6 @@ export declare class GdsPagination extends GdsPagination_base {
74
79
  density: DensityMode;
75
80
  /**
76
81
  * The text summary to display on the left side (e.g. "1-10 of 100").
77
- * If a slot named "label" is provided, this property is ignored.
78
82
  */
79
83
  label: string;
80
84
  private _elInput?;
@@ -4,7 +4,7 @@ import {
4
4
  __privateGet,
5
5
  __privateMethod
6
6
  } from "../../chunks/chunk.CAV4X6PU.js";
7
- var _pageCount, pageCount_get, _config, config_get, _getVisiblePages, getVisiblePages_fn, _renderPageButton, renderPageButton_fn, _renderPageButtons, renderPageButtons_fn, _renderJumpFirstButton, renderJumpFirstButton_fn, _renderPreviousButton, renderPreviousButton_fn, _renderNextButton, renderNextButton_fn, _renderJumpLastButton, renderJumpLastButton_fn, _renderNavigationControls, renderNavigationControls_fn, _renderPageSizeOption, renderPageSizeOption_fn, _renderPageSizeMenu, renderPageSizeMenu_fn, _renderLabel, renderLabel_fn, _handlePageChange, handlePageChange_fn, _handlePageSizeMenuClick, handlePageSizeMenuClick_fn, _handlePopoverStateChange, handlePopoverStateChange_fn, _handleCustomPageInput, handleCustomPageInput_fn;
7
+ var _pageCount, pageCount_get, _config, config_get, _getVisiblePages, getVisiblePages_fn, _renderPageButton, renderPageButton_fn, _renderPageButtons, renderPageButtons_fn, _renderJumpFirstButton, renderJumpFirstButton_fn, _renderPreviousButton, renderPreviousButton_fn, _renderNextButton, renderNextButton_fn, _renderJumpLastButton, renderJumpLastButton_fn, _renderNavigationControls, renderNavigationControls_fn, _renderSimpleNavigationControls, renderSimpleNavigationControls_fn, _renderPageSizeOption, renderPageSizeOption_fn, _renderPageSizeMenu, renderPageSizeMenu_fn, _renderLabel, renderLabel_fn, _handlePageChange, handlePageChange_fn, _handlePageSizeMenuClick, handlePageSizeMenuClick_fn, _handlePopoverStateChange, handlePopoverStateChange_fn, _handleCustomPageInput, handleCustomPageInput_fn;
8
8
  import { localized, msg } from "@lit/localize";
9
9
  import { nothing } from "lit";
10
10
  import { property, query, state } from "lit/decorators.js";
@@ -83,6 +83,7 @@ let GdsPagination = class extends withMarginProps(
83
83
  __privateAdd(this, _renderNextButton);
84
84
  __privateAdd(this, _renderJumpLastButton);
85
85
  __privateAdd(this, _renderNavigationControls);
86
+ __privateAdd(this, _renderSimpleNavigationControls);
86
87
  __privateAdd(this, _renderPageSizeOption);
87
88
  __privateAdd(this, _renderPageSizeMenu);
88
89
  __privateAdd(this, _renderLabel);
@@ -96,6 +97,7 @@ let GdsPagination = class extends withMarginProps(
96
97
  this.options = [5, 10, 25, 50];
97
98
  this.jump = false;
98
99
  this.hideOptions = false;
100
+ this.simple = false;
99
101
  this.density = "comfortable";
100
102
  this.label = "";
101
103
  this._isMobile = false;
@@ -126,7 +128,10 @@ let GdsPagination = class extends withMarginProps(
126
128
  justify-content="${showNavigation ? "space-between" : "flex-end"}"
127
129
  >
128
130
  ${[
129
- when(showNavigation, () => __privateMethod(this, _renderNavigationControls, renderNavigationControls_fn).call(this)),
131
+ when(
132
+ showNavigation,
133
+ () => this.simple ? __privateMethod(this, _renderSimpleNavigationControls, renderSimpleNavigationControls_fn).call(this) : __privateMethod(this, _renderNavigationControls, renderNavigationControls_fn).call(this)
134
+ ),
130
135
  pageSizeMenu
131
136
  ]}
132
137
  </gds-flex>
@@ -325,6 +330,29 @@ renderNavigationControls_fn = function() {
325
330
  </gds-flex>
326
331
  `;
327
332
  };
333
+ _renderSimpleNavigationControls = new WeakSet();
334
+ renderSimpleNavigationControls_fn = function() {
335
+ return html`
336
+ <gds-flex
337
+ gap="${__privateGet(this, _config, config_get).navGap}"
338
+ align-items="center"
339
+ class="navigation-controls navigation-controls-simple"
340
+ justify-content="center; m{flex-end}"
341
+ flex="1"
342
+ >
343
+ ${__privateMethod(this, _renderPreviousButton, renderPreviousButton_fn).call(this)}
344
+ <gds-text
345
+ font="${__privateGet(this, _config, config_get).font}"
346
+ color="neutral-01"
347
+ aria-live="polite"
348
+ aria-atomic="true"
349
+ >
350
+ ${msg("Page")} ${this.page}
351
+ </gds-text>
352
+ ${__privateMethod(this, _renderNextButton, renderNextButton_fn).call(this)}
353
+ </gds-flex>
354
+ `;
355
+ };
328
356
  _renderPageSizeOption = new WeakSet();
329
357
  renderPageSizeOption_fn = function(size) {
330
358
  const isSelected = this.rows === size;
@@ -458,6 +486,9 @@ __decorateClass([
458
486
  reflect: false
459
487
  })
460
488
  ], GdsPagination.prototype, "hideOptions", 2);
489
+ __decorateClass([
490
+ property({ type: Boolean, reflect: false })
491
+ ], GdsPagination.prototype, "simple", 2);
461
492
  __decorateClass([
462
493
  property({ reflect: false })
463
494
  ], GdsPagination.prototype, "density", 2);
@@ -13,6 +13,10 @@ const PaginationStyles = css`
13
13
  padding: 0;
14
14
  aspect-ratio: 1/1;
15
15
  }
16
+
17
+ nav {
18
+ width: 100%;
19
+ }
16
20
  `;
17
21
  export {
18
22
  PaginationStyles
@@ -1,2 +1,2 @@
1
- const styles = "/* stylelint-disable max-nesting-depth */\n/**\n * Assert that a map is in ascending order\n * @mixin assert-ascending\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Assert that the first breakpoint in a map starts at zero\n * @mixin assert-starts-at-zero\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Check if a value is important\n * @function is-important\n * @param {Boolean} $important - Whether the value is important\n * @return {String} - \"!important\" if true, otherwise an empty string\n */\n/**\n * Replace a substring in a string\n * @function str-replace\n * @param {String} $string - The original string\n * @param {String} $search - The substring to replace\n * @param {String} $replace - The replacement string\n * @return {String} - The updated string\n */\n/**\n * Convert a map to its negative variant\n * @function negativify-map\n * @param {Map} $map - The map to convert\n * @return {Map} - The negative variant of the map\n */\n/**\n * Generate utility classes\n * @mixin generate-utility\n * @param {Map} $utility - Utility map\n * @param {String} $infix - Infix for class names\n * @param {Boolean} $is-rfs-media-query - Whether to use RFS media query\n */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * @function luminance\n * @param {Color} $color - The color to calculate luminance for\n * @return {Number} - The luminance value\n */\n/**\n * Calculate the contrast ratio between two colors.\n * @function color-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @return {Number} - The contrast ratio\n */\n/**\n * Remove the unit of a length\n * @function strip-unit\n * @param {Number} $number - Number to remove unit from\n * @return {Number} - Unitless number\n */\n/**\n * Validate font size\n * @function validate-font-size\n * @param {Number} $size - Font size to validate\n * @return {Number} - Validated font size in pixels\n */\n/**\n * Get ratio for WCAG level\n * @function get-ratio\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @return {Number} - Ratio value\n */\n/**\n * Determine if a color is light or dark\n * @function light-or-dark\n * @param {Color} $color - The color to check\n * @return {String} - \"light\" or \"dark\"\n */\n/**\n * Get the most legible color (black or white) for a given background color\n * @function most-legible-color\n * @param {Color} $color - The background color\n * @return {Color} - The most legible color\n */\n/**\n * Get the desired color combination for foreground and background colors\n * @function desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n * @return {List} - List containing background and foreground colors\n */\n/**\n * @mixin desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n */\n/**\n * Get an accessible color for a given foreground and background color\n * @function a11y-color\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @param {Number} $maxOffset - Maximum offset\n * @param {Boolean} $darkMode - Is dark mode\n * @param {Number} $ratio - Contrast ratio\n * @return {Color} - Accessible color\n */\n/**\n * Get the maximum contrast color\n * @function max-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Color} $max - Maximum contrast color\n * @return {Color} - Maximum contrast color\n */\n/**\n * Get the RGB values of a color as a string\n * @function stripped-rgb\n * @param {Color} $color - The color\n * @return {String} - RGB values as a string\n */\n/**\n * Get the HSL values of a color as a string\n * @function stripped-hsl\n * @param {Color} $color - The color\n * @return {String} - HSL values as a string\n */\n/**\n * Convert a map of colors to a map of HSL values\n * @function hsl-map\n * @param {Map} $colors - Map of colors\n * @return {Map} - Map of HSL values\n */\n/**\n* @deprecated\n* Use `add-focus` instead\n*/\n/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */\n/**\n * Breakpoint viewport sizes and media queries.\n *\n * Breakpoints are defined as a map of (name: minimum width), order from small to large:\n *\n * (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n *\n * The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n */\n/**\n * Name of the next breakpoint, or null for the last breakpoint.\n *\n * >> breakpoint-next(sm)\n * md\n * >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * md\n * >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n * md\n */\n/**\n * Minimum breakpoint width. Null for the smallest (first) breakpoint.\n *\n * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 576px\n */\n/**\n * Maximum breakpoint width.\n * The maximum value is reduced by 0.02px to work around the limitations of\n * `min-` and `max-` prefixes and viewports with fractional widths.\n * See https://www.w3.org/TR/mediaqueries-4/#mq-min-max\n * Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.\n * See https://bugs.webkit.org/show_bug.cgi?id=178261\n *\n * >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 767.98px\n */\n/**\n * Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.\n * Useful for making responsive utilities.\n *\n * >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"\" (Returns a blank string)\n * >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"-sm\"\n */\n/**\n * Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n * Makes the @content apply to the given breakpoint and wider.\n */\n/**\n * Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n * Makes the @content apply to the given breakpoint and narrower.\n */\n/**\n * Media that spans multiple breakpoint widths.\n * Makes the @content apply between the min and max breakpoints\n */\n/**\n * Media between the breakpoint's minimum and maximum widths.\n * No minimum for the smallest breakpoint, and no maximum for the largest one.\n * Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n :host {\n display: contents;\n }\n :host([open]) dialog {\n box-sizing: border-box;\n opacity: 1;\n transform: translate3d(0, 0, 0);\n visibility: visible;\n }\n :host > div:not([hidden]) {\n display: contents;\n }\n header {\n display: flex;\n }\n header .close::part(_button) {\n border-radius: 100%;\n color: var(--gds-sys-color-text-primary);\n border: 1px solid transparent;\n }\n header .close::part(_button):hover {\n background-color: var(--gds-sys-color-base-300);\n }\n header h2 {\n flex-grow: 1;\n font-weight: 400;\n line-height: 1.5;\n margin: 0.25rem 0 0 0.75rem;\n }\n dialog {\n background-color: var(--gds-sys-color-background-primary);\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n opacity: 0;\n visibility: hidden;\n position: fixed;\n inset: auto;\n z-index: 1060;\n box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15);\n color: var(--gds-sys-color-text-primary);\n overflow: hidden;\n padding: 0;\n padding-bottom: 0;\n border: solid 1px var(--gds-sys-color-base-600);\n --border-color: var(--gds-sys-color-text-primary);\n border-radius: 0.25rem;\n }\n @media (max-width: 35.98em) {\n dialog.use-modal-in-mobile {\n border-top: solid 1px var(--gds-sys-color-base-600);\n --border-color: var(--gds-sys-color-base-600);\n padding-bottom: 0.5rem;\n border-radius: 1rem 1rem 0 0;\n bottom: 0;\n left: 0;\n transition: all 300ms ease-in-out;\n width: 100%;\n border: 1px solid var(--border-color);\n border-radius: 0.25rem;\n max-height: 80svh;\n padding-bottom: 0;\n inset: 0;\n }\n dialog.use-modal-in-mobile.v-kb-visible {\n inset-block-end: auto;\n max-height: 50svh;\n top: 1rem;\n }\n }\n @media (min-width: 36em) {\n dialog.use-modal-in-mobile header {\n display: none;\n }\n }\n @media (min-width: 36em) {\n dialog.use-modal-in-mobile:not(.has-backdrop)::backdrop {\n opacity: 0;\n }\n }\n dialog::backdrop {\n background-color: rgba(0, 0, 0, 0.2);\n display: block;\n position: fixed;\n }\n dialog:not(.use-modal-in-mobile) header {\n display: none;\n }\n dialog:not(.use-modal-in-mobile)::backdrop {\n opacity: 0;\n }\n}";
1
+ const styles = "/* stylelint-disable max-nesting-depth */\n/**\n * Assert that a map is in ascending order\n * @mixin assert-ascending\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Assert that the first breakpoint in a map starts at zero\n * @mixin assert-starts-at-zero\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Check if a value is important\n * @function is-important\n * @param {Boolean} $important - Whether the value is important\n * @return {String} - \"!important\" if true, otherwise an empty string\n */\n/**\n * Replace a substring in a string\n * @function str-replace\n * @param {String} $string - The original string\n * @param {String} $search - The substring to replace\n * @param {String} $replace - The replacement string\n * @return {String} - The updated string\n */\n/**\n * Convert a map to its negative variant\n * @function negativify-map\n * @param {Map} $map - The map to convert\n * @return {Map} - The negative variant of the map\n */\n/**\n * Generate utility classes\n * @mixin generate-utility\n * @param {Map} $utility - Utility map\n * @param {String} $infix - Infix for class names\n * @param {Boolean} $is-rfs-media-query - Whether to use RFS media query\n */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * @function luminance\n * @param {Color} $color - The color to calculate luminance for\n * @return {Number} - The luminance value\n */\n/**\n * Calculate the contrast ratio between two colors.\n * @function color-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @return {Number} - The contrast ratio\n */\n/**\n * Remove the unit of a length\n * @function strip-unit\n * @param {Number} $number - Number to remove unit from\n * @return {Number} - Unitless number\n */\n/**\n * Validate font size\n * @function validate-font-size\n * @param {Number} $size - Font size to validate\n * @return {Number} - Validated font size in pixels\n */\n/**\n * Get ratio for WCAG level\n * @function get-ratio\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @return {Number} - Ratio value\n */\n/**\n * Determine if a color is light or dark\n * @function light-or-dark\n * @param {Color} $color - The color to check\n * @return {String} - \"light\" or \"dark\"\n */\n/**\n * Get the most legible color (black or white) for a given background color\n * @function most-legible-color\n * @param {Color} $color - The background color\n * @return {Color} - The most legible color\n */\n/**\n * Get the desired color combination for foreground and background colors\n * @function desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n * @return {List} - List containing background and foreground colors\n */\n/**\n * @mixin desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n */\n/**\n * Get an accessible color for a given foreground and background color\n * @function a11y-color\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @param {Number} $maxOffset - Maximum offset\n * @param {Boolean} $darkMode - Is dark mode\n * @param {Number} $ratio - Contrast ratio\n * @return {Color} - Accessible color\n */\n/**\n * Get the maximum contrast color\n * @function max-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Color} $max - Maximum contrast color\n * @return {Color} - Maximum contrast color\n */\n/**\n * Get the RGB values of a color as a string\n * @function stripped-rgb\n * @param {Color} $color - The color\n * @return {String} - RGB values as a string\n */\n/**\n * Get the HSL values of a color as a string\n * @function stripped-hsl\n * @param {Color} $color - The color\n * @return {String} - HSL values as a string\n */\n/**\n * Convert a map of colors to a map of HSL values\n * @function hsl-map\n * @param {Map} $colors - Map of colors\n * @return {Map} - Map of HSL values\n */\n/**\n* @deprecated\n* Use `add-focus` instead\n*/\n/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */\n/**\n * Breakpoint viewport sizes and media queries.\n *\n * Breakpoints are defined as a map of (name: minimum width), order from small to large:\n *\n * (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n *\n * The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n */\n/**\n * Name of the next breakpoint, or null for the last breakpoint.\n *\n * >> breakpoint-next(sm)\n * md\n * >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * md\n * >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n * md\n */\n/**\n * Minimum breakpoint width. Null for the smallest (first) breakpoint.\n *\n * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 576px\n */\n/**\n * Maximum breakpoint width.\n * The maximum value is reduced by 0.02px to work around the limitations of\n * `min-` and `max-` prefixes and viewports with fractional widths.\n * See https://www.w3.org/TR/mediaqueries-4/#mq-min-max\n * Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.\n * See https://bugs.webkit.org/show_bug.cgi?id=178261\n *\n * >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 767.98px\n */\n/**\n * Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.\n * Useful for making responsive utilities.\n *\n * >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"\" (Returns a blank string)\n * >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"-sm\"\n */\n/**\n * Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n * Makes the @content apply to the given breakpoint and wider.\n */\n/**\n * Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n * Makes the @content apply to the given breakpoint and narrower.\n */\n/**\n * Media that spans multiple breakpoint widths.\n * Makes the @content apply between the min and max breakpoints\n */\n/**\n * Media between the breakpoint's minimum and maximum widths.\n * No minimum for the smallest breakpoint, and no maximum for the largest one.\n * Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n :host {\n display: contents;\n }\n :host([open]) dialog {\n box-sizing: border-box;\n opacity: 1;\n transform: translate3d(0, 0, 0);\n visibility: visible;\n }\n :host > div:not([hidden]) {\n display: contents;\n }\n header {\n display: flex;\n }\n header .close::part(_button) {\n border-radius: 100%;\n color: var(--gds-sys-color-text-primary);\n border: 1px solid transparent;\n }\n header .close::part(_button):hover {\n background-color: var(--gds-sys-color-base-300);\n }\n header h2 {\n flex-grow: 1;\n font-weight: 400;\n line-height: 1.5;\n margin: 0.25rem 0 0 0.75rem;\n }\n dialog {\n background-color: var(--gds-sys-color-background-primary);\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n opacity: 0;\n visibility: hidden;\n position: fixed;\n inset: auto;\n z-index: 1060;\n box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15);\n color: var(--gds-sys-color-text-primary);\n overflow: hidden;\n padding: 0;\n padding-bottom: 0 \"\";\n border: solid 1px var(--gds-sys-color-base-600);\n --border-color: var(--gds-sys-color-text-primary);\n border-radius: 0.25rem;\n }\n @media (max-width: 35.98em) {\n dialog.use-modal-in-mobile {\n border-top: solid 1px var(--gds-sys-color-base-600);\n --border-color: var(--gds-sys-color-base-600);\n padding-bottom: 0.5rem \"\";\n border-radius: 1rem 1rem 0 0;\n bottom: 0;\n left: 0;\n transition: all 300ms ease-in-out;\n width: 100%;\n border: 1px solid var(--border-color);\n border-radius: 0.25rem;\n max-height: 80svh;\n padding-bottom: 0;\n inset: 0;\n }\n dialog.use-modal-in-mobile.v-kb-visible {\n inset-block-end: auto;\n max-height: 50svh;\n top: 1rem;\n }\n }\n @media (min-width: 36em) {\n dialog.use-modal-in-mobile header {\n display: none;\n }\n }\n @media (min-width: 36em) {\n dialog.use-modal-in-mobile:not(.has-backdrop)::backdrop {\n opacity: 0;\n }\n }\n dialog::backdrop {\n background-color: rgba(0, 0, 0, 0.2);\n display: block;\n position: fixed;\n }\n dialog:not(.use-modal-in-mobile) header {\n display: none;\n }\n dialog:not(.use-modal-in-mobile)::backdrop {\n opacity: 0;\n }\n}";
2
2
  export default styles;
@@ -0,0 +1,3 @@
1
+ export * from './tabs';
2
+ export * from './tab';
3
+ export * from './tab-panel';
@@ -0,0 +1,3 @@
1
+ export * from "./tabs.js";
2
+ export * from "./tab/index.js";
3
+ export * from "./tab-panel/index.js";
@@ -0,0 +1 @@
1
+ export * from './tab';
@@ -0,0 +1 @@
1
+ export * from "./tab.js";
@@ -0,0 +1,49 @@
1
+ import { GdsElement } from '../../../gds-element';
2
+ import type { GdsTabPanel } from '../tab-panel/tab-panel.component';
3
+ /**
4
+ * @element gds-tab
5
+ * @status beta
6
+ *
7
+ * @summary A tab component for use inside `<gds-tabs>`.
8
+ *
9
+ * @slot lead - Optional content before the label (e.g. an icon)
10
+ * @slot - The tab label text content
11
+ * @slot trail - Optional content after the label (e.g. a badge)
12
+ *
13
+ * @event click - Fired when the tab is clicked. Note that clicks on disabled tabs are ignored.
14
+ */
15
+ export declare class GdsTab extends GdsElement {
16
+ #private;
17
+ static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
18
+ /**
19
+ * Optional size variant. When set to "small", applies reduced padding.
20
+ */
21
+ size: 'small' | 'medium';
22
+ /**
23
+ * Disables selection of this tab.
24
+ */
25
+ disabled: boolean;
26
+ /**
27
+ * Whether this tab is currently selected. Managed by the parent `<gds-tabs>`.
28
+ */
29
+ selected: boolean;
30
+ /**
31
+ * The `name` of the `<gds-tab-panel>` to associate with this tab.
32
+ * When set, this tab controls the panel whose `name` attribute matches,
33
+ * regardless of DOM order. When omitted, pairing falls back to position.
34
+ */
35
+ panel: string;
36
+ /**
37
+ * The resolved associated `<gds-tab-panel>` element, if any. Managed by
38
+ * the parent `<gds-tabs>`.
39
+ */
40
+ get panelEl(): GdsTabPanel | undefined;
41
+ connectedCallback(): void;
42
+ private _handleSelectedChange;
43
+ private _handleDisabledChange;
44
+ /**
45
+ * @internal
46
+ */
47
+ _setPanelEl(panelEl?: GdsTabPanel): void;
48
+ render(): any;
49
+ }
@@ -0,0 +1,120 @@
1
+ import {
2
+ __decorateClass,
3
+ __privateAdd,
4
+ __privateGet,
5
+ __privateMethod,
6
+ __privateSet
7
+ } from "../../../chunks/chunk.CAV4X6PU.js";
8
+ var _internals, _panelEl, _handleLeadTrailSlotChange, _updateSlottedIconSolid, updateSlottedIconSolid_fn, _syncAria, syncAria_fn;
9
+ import { property } from "lit/decorators.js";
10
+ import { classMap } from "lit/directives/class-map.js";
11
+ import { GdsElement } from "../../../gds-element.js";
12
+ import { gdsCustomElement, html } from "../../../scoping.js";
13
+ import { tokens } from "../../../tokens.style.js";
14
+ import { watch } from "../../../utils/decorators/watch.js";
15
+ import TabStyles from "./tab.styles.js";
16
+ let GdsTab = class extends GdsElement {
17
+ constructor() {
18
+ super(...arguments);
19
+ __privateAdd(this, _updateSlottedIconSolid);
20
+ __privateAdd(this, _syncAria);
21
+ __privateAdd(this, _internals, this.attachInternals());
22
+ __privateAdd(this, _panelEl, void 0);
23
+ this.size = "medium";
24
+ this.disabled = false;
25
+ this.selected = false;
26
+ this.panel = "";
27
+ __privateAdd(this, _handleLeadTrailSlotChange, () => {
28
+ __privateMethod(this, _updateSlottedIconSolid, updateSlottedIconSolid_fn).call(this);
29
+ });
30
+ }
31
+ /**
32
+ * The resolved associated `<gds-tab-panel>` element, if any. Managed by
33
+ * the parent `<gds-tabs>`.
34
+ */
35
+ get panelEl() {
36
+ return __privateGet(this, _panelEl);
37
+ }
38
+ connectedCallback() {
39
+ super.connectedCallback();
40
+ __privateMethod(this, _syncAria, syncAria_fn).call(this);
41
+ this.addEventListener("click", () => void 0);
42
+ this.addEventListener("keydown", (event) => {
43
+ if (event.key === "Tab") {
44
+ event.preventDefault();
45
+ __privateGet(this, _panelEl)?.focus();
46
+ }
47
+ });
48
+ }
49
+ _handleSelectedChange() {
50
+ __privateMethod(this, _updateSlottedIconSolid, updateSlottedIconSolid_fn).call(this);
51
+ __privateMethod(this, _syncAria, syncAria_fn).call(this);
52
+ }
53
+ _handleDisabledChange() {
54
+ __privateMethod(this, _syncAria, syncAria_fn).call(this);
55
+ }
56
+ /**
57
+ * @internal
58
+ */
59
+ _setPanelEl(panelEl) {
60
+ __privateSet(this, _panelEl, panelEl);
61
+ __privateMethod(this, _syncAria, syncAria_fn).call(this);
62
+ }
63
+ render() {
64
+ return html`<div class=${classMap({ small: this.size === "small" })}>
65
+ <slot name="lead" @slotchange=${__privateGet(this, _handleLeadTrailSlotChange)}></slot>
66
+ <slot></slot>
67
+ <slot name="trail" @slotchange=${__privateGet(this, _handleLeadTrailSlotChange)}></slot>
68
+ </div>`;
69
+ }
70
+ };
71
+ _internals = new WeakMap();
72
+ _panelEl = new WeakMap();
73
+ _handleLeadTrailSlotChange = new WeakMap();
74
+ _updateSlottedIconSolid = new WeakSet();
75
+ updateSlottedIconSolid_fn = function() {
76
+ const slotNames = ["lead", "trail"];
77
+ for (const name of slotNames) {
78
+ const slot = this.renderRoot.querySelector(
79
+ `slot[name="${name}"]`
80
+ );
81
+ for (const el of slot?.assignedElements({ flatten: true }) ?? []) {
82
+ if ("solid" in el) {
83
+ ;
84
+ el.solid = this.selected;
85
+ }
86
+ }
87
+ }
88
+ };
89
+ _syncAria = new WeakSet();
90
+ syncAria_fn = function() {
91
+ this.setAttribute("role", "tab");
92
+ __privateGet(this, _internals).ariaSelected = this.selected ? "true" : "false";
93
+ this.tabIndex = this.selected && !this.disabled ? 0 : -1;
94
+ __privateGet(this, _internals).ariaControlsElements = __privateGet(this, _panelEl) ? [__privateGet(this, _panelEl)] : [];
95
+ };
96
+ GdsTab.styles = [tokens, TabStyles];
97
+ __decorateClass([
98
+ property({ reflect: true })
99
+ ], GdsTab.prototype, "size", 2);
100
+ __decorateClass([
101
+ property({ type: Boolean, reflect: true })
102
+ ], GdsTab.prototype, "disabled", 2);
103
+ __decorateClass([
104
+ property({ type: Boolean, reflect: true })
105
+ ], GdsTab.prototype, "selected", 2);
106
+ __decorateClass([
107
+ property()
108
+ ], GdsTab.prototype, "panel", 2);
109
+ __decorateClass([
110
+ watch("selected")
111
+ ], GdsTab.prototype, "_handleSelectedChange", 1);
112
+ __decorateClass([
113
+ watch("disabled")
114
+ ], GdsTab.prototype, "_handleDisabledChange", 1);
115
+ GdsTab = __decorateClass([
116
+ gdsCustomElement("gds-tab")
117
+ ], GdsTab);
118
+ export {
119
+ GdsTab
120
+ };
@@ -0,0 +1,2 @@
1
+ import { GdsTab } from './tab.component';
2
+ export { GdsTab };
@@ -0,0 +1,6 @@
1
+ import "../../../chunks/chunk.CAV4X6PU.js";
2
+ import { GdsTab } from "./tab.component.js";
3
+ GdsTab.define();
4
+ export {
5
+ GdsTab
6
+ };
@@ -0,0 +1,2 @@
1
+ declare const style: import("lit").CSSResult;
2
+ export default style;