@gov-design-system-ce/components 0.0.12 → 0.0.13

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 (209) hide show
  1. package/dist/cjs/{constants-e175be18.js → constants-0883e74c.js} +2 -2
  2. package/dist/cjs/constants-0883e74c.js.map +1 -0
  3. package/dist/cjs/core.cjs.js +1 -1
  4. package/dist/cjs/gov-accordion-item.cjs.entry.js +11 -7
  5. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
  7. package/dist/cjs/gov-app.cjs.entry.js +25 -5
  8. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  9. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +2 -32
  10. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  11. package/dist/cjs/gov-icon.cjs.entry.js +1 -1
  12. package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -1
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/collection/collection-manifest.json +1 -1
  15. package/dist/collection/components/gov-accordion/constants.js +1 -1
  16. package/dist/collection/components/gov-accordion/constants.js.map +1 -1
  17. package/dist/collection/components/gov-accordion/gov-accordion-item.js +39 -17
  18. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  19. package/dist/collection/components/gov-accordion/gov-accordion.js +1 -1
  20. package/dist/collection/components/gov-breadcrumbs/constants.js +0 -4
  21. package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -1
  22. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +26 -16
  23. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +2 -81
  24. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  25. package/dist/collection/components/gov-tile/container/constants.js.map +1 -0
  26. package/dist/collection/components/{gov-tiles → gov-tile/container}/gov-tiles.js +2 -2
  27. package/dist/collection/components/gov-tile/container/gov-tiles.js.map +1 -0
  28. package/dist/collection/pages/Breadcrumbs.js +25 -5
  29. package/dist/collection/pages/Breadcrumbs.js.map +1 -1
  30. package/dist/components/constants.js +1 -1
  31. package/dist/components/constants.js.map +1 -1
  32. package/dist/components/gov-accordion-item.js +12 -6
  33. package/dist/components/gov-accordion-item.js.map +1 -1
  34. package/dist/components/gov-accordion.js +1 -0
  35. package/dist/components/gov-accordion.js.map +1 -1
  36. package/dist/components/gov-alert.js +1 -0
  37. package/dist/components/gov-alert.js.map +1 -1
  38. package/dist/components/gov-app.js +26 -5
  39. package/dist/components/gov-app.js.map +1 -1
  40. package/dist/components/gov-attachments-item2.js +1 -0
  41. package/dist/components/gov-attachments-item2.js.map +1 -1
  42. package/dist/components/gov-attachments2.js +1 -0
  43. package/dist/components/gov-attachments2.js.map +1 -1
  44. package/dist/components/gov-backdrop2.js +1 -0
  45. package/dist/components/gov-backdrop2.js.map +1 -1
  46. package/dist/components/gov-badge2.js +1 -0
  47. package/dist/components/gov-badge2.js.map +1 -1
  48. package/dist/components/gov-breadcrumbs.js +6 -51
  49. package/dist/components/gov-breadcrumbs.js.map +1 -1
  50. package/dist/components/gov-button2.js +1 -0
  51. package/dist/components/gov-button2.js.map +1 -1
  52. package/dist/components/gov-card.js +1 -0
  53. package/dist/components/gov-card.js.map +1 -1
  54. package/dist/components/gov-container.js +1 -0
  55. package/dist/components/gov-container.js.map +1 -1
  56. package/dist/components/gov-cookiebar.js +1 -0
  57. package/dist/components/gov-cookiebar.js.map +1 -1
  58. package/dist/components/gov-empty.js +1 -0
  59. package/dist/components/gov-empty.js.map +1 -1
  60. package/dist/components/gov-error-code.js +1 -0
  61. package/dist/components/gov-error-code.js.map +1 -1
  62. package/dist/components/gov-form-autocomplete2.js +1 -0
  63. package/dist/components/gov-form-autocomplete2.js.map +1 -1
  64. package/dist/components/gov-form-checkbox.js +1 -0
  65. package/dist/components/gov-form-checkbox.js.map +1 -1
  66. package/dist/components/gov-form-control.js +1 -0
  67. package/dist/components/gov-form-control.js.map +1 -1
  68. package/dist/components/gov-form-file.js +1 -0
  69. package/dist/components/gov-form-file.js.map +1 -1
  70. package/dist/components/gov-form-group.js +1 -0
  71. package/dist/components/gov-form-group.js.map +1 -1
  72. package/dist/components/gov-form-input2.js +1 -0
  73. package/dist/components/gov-form-input2.js.map +1 -1
  74. package/dist/components/gov-form-label.js +1 -0
  75. package/dist/components/gov-form-label.js.map +1 -1
  76. package/dist/components/gov-form-message2.js +1 -0
  77. package/dist/components/gov-form-message2.js.map +1 -1
  78. package/dist/components/gov-form-multi-select.js +1 -0
  79. package/dist/components/gov-form-multi-select.js.map +1 -1
  80. package/dist/components/gov-form-password-power.js +1 -0
  81. package/dist/components/gov-form-password-power.js.map +1 -1
  82. package/dist/components/gov-form-radio.js +1 -0
  83. package/dist/components/gov-form-radio.js.map +1 -1
  84. package/dist/components/gov-form-search.js +1 -0
  85. package/dist/components/gov-form-search.js.map +1 -1
  86. package/dist/components/gov-form-select2.js +1 -0
  87. package/dist/components/gov-form-select2.js.map +1 -1
  88. package/dist/components/gov-form-switch.js +1 -0
  89. package/dist/components/gov-form-switch.js.map +1 -1
  90. package/dist/components/gov-grid-item.js +1 -0
  91. package/dist/components/gov-grid-item.js.map +1 -1
  92. package/dist/components/gov-grid.js +1 -0
  93. package/dist/components/gov-grid.js.map +1 -1
  94. package/dist/components/gov-icon2.js +2 -1
  95. package/dist/components/gov-icon2.js.map +1 -1
  96. package/dist/components/gov-layout-column.js +1 -0
  97. package/dist/components/gov-layout-column.js.map +1 -1
  98. package/dist/components/gov-layout.js +1 -0
  99. package/dist/components/gov-layout.js.map +1 -1
  100. package/dist/components/gov-loading.js +1 -0
  101. package/dist/components/gov-loading.js.map +1 -1
  102. package/dist/components/gov-message.js +1 -0
  103. package/dist/components/gov-message.js.map +1 -1
  104. package/dist/components/gov-modal.js +1 -0
  105. package/dist/components/gov-modal.js.map +1 -1
  106. package/dist/components/gov-nav-item.js +1 -0
  107. package/dist/components/gov-nav-item.js.map +1 -1
  108. package/dist/components/gov-nav.js +1 -0
  109. package/dist/components/gov-nav.js.map +1 -1
  110. package/dist/components/gov-pagination.js +1 -0
  111. package/dist/components/gov-pagination.js.map +1 -1
  112. package/dist/components/gov-prompt.js +1 -0
  113. package/dist/components/gov-prompt.js.map +1 -1
  114. package/dist/components/gov-side-nav-item.js +1 -0
  115. package/dist/components/gov-side-nav-item.js.map +1 -1
  116. package/dist/components/gov-side-nav.js +1 -0
  117. package/dist/components/gov-side-nav.js.map +1 -1
  118. package/dist/components/gov-spacer.js +1 -0
  119. package/dist/components/gov-spacer.js.map +1 -1
  120. package/dist/components/gov-statsbar-item.js +1 -0
  121. package/dist/components/gov-statsbar-item.js.map +1 -1
  122. package/dist/components/gov-statsbar.js +1 -0
  123. package/dist/components/gov-statsbar.js.map +1 -1
  124. package/dist/components/gov-stepper-item.js +1 -0
  125. package/dist/components/gov-stepper-item.js.map +1 -1
  126. package/dist/components/gov-stepper.js +1 -0
  127. package/dist/components/gov-stepper.js.map +1 -1
  128. package/dist/components/gov-tabs-item.js +1 -0
  129. package/dist/components/gov-tabs-item.js.map +1 -1
  130. package/dist/components/gov-tabs.js +1 -0
  131. package/dist/components/gov-tabs.js.map +1 -1
  132. package/dist/components/gov-tile.js +1 -0
  133. package/dist/components/gov-tile.js.map +1 -1
  134. package/dist/components/gov-tiles.js +1 -0
  135. package/dist/components/gov-tiles.js.map +1 -1
  136. package/dist/components/gov-toast.js +1 -0
  137. package/dist/components/gov-toast.js.map +1 -1
  138. package/dist/components/gov-tooltip-content.js +1 -0
  139. package/dist/components/gov-tooltip-content.js.map +1 -1
  140. package/dist/components/gov-tooltip.js +1 -0
  141. package/dist/components/gov-tooltip.js.map +1 -1
  142. package/dist/components/gov-wizzard-item.js +1 -0
  143. package/dist/components/gov-wizzard-item.js.map +1 -1
  144. package/dist/components/gov-wizzard.js +1 -0
  145. package/dist/components/gov-wizzard.js.map +1 -1
  146. package/dist/components/index.d.ts +1 -1
  147. package/dist/core/core.css +1 -1
  148. package/dist/core/core.esm.js +1 -1
  149. package/dist/core/core.esm.js.map +1 -1
  150. package/dist/core/{p-7ac5f119.entry.js → p-5b2e8e04.entry.js} +2 -2
  151. package/dist/core/p-5b2e8e04.entry.js.map +1 -0
  152. package/dist/core/{p-43811261.entry.js → p-7670f834.entry.js} +2 -2
  153. package/dist/core/p-7670f834.entry.js.map +1 -0
  154. package/dist/core/{p-613d8ed8.entry.js → p-7684f6d0.entry.js} +2 -2
  155. package/dist/core/p-99155ec0.entry.js.map +1 -1
  156. package/dist/core/p-a5d69694.js +2 -0
  157. package/dist/core/p-a5d69694.js.map +1 -0
  158. package/dist/core/p-b308500e.entry.js +2 -0
  159. package/dist/core/p-b308500e.entry.js.map +1 -0
  160. package/dist/core/{p-02c1b4db.entry.js → p-f48fd266.entry.js} +2 -2
  161. package/dist/custom-elements/index.js +1 -1
  162. package/dist/custom-elements/index.js.map +1 -1
  163. package/dist/esm/{constants-14a7ba8e.js → constants-ab132d9c.js} +2 -2
  164. package/dist/esm/constants-ab132d9c.js.map +1 -0
  165. package/dist/esm/core.js +1 -1
  166. package/dist/esm/gov-accordion-item.entry.js +11 -7
  167. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  168. package/dist/esm/gov-accordion.entry.js +1 -1
  169. package/dist/esm/gov-app.entry.js +25 -5
  170. package/dist/esm/gov-app.entry.js.map +1 -1
  171. package/dist/esm/gov-breadcrumbs.entry.js +3 -33
  172. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  173. package/dist/esm/gov-icon.entry.js +1 -1
  174. package/dist/esm/gov-tiles.entry.js.map +1 -1
  175. package/dist/esm/loader.js +1 -1
  176. package/dist/hydrate/index.js +40 -49
  177. package/dist/stencil.config.js +5 -0
  178. package/dist/stencil.config.js.map +1 -1
  179. package/dist/types/components/gov-accordion/constants.d.ts +1 -1
  180. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +8 -4
  181. package/dist/types/components/gov-breadcrumbs/constants.d.ts +0 -4
  182. package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +0 -14
  183. package/dist/types/components/gov-button/constants.d.ts +1 -1
  184. package/dist/types/components/gov-form/checkbox/constants.d.ts +1 -1
  185. package/dist/types/components/gov-form/group/constants.d.ts +1 -1
  186. package/dist/types/components/gov-form/label/constants.d.ts +1 -1
  187. package/dist/types/components/gov-form/radio/constants.d.ts +1 -1
  188. package/dist/types/components/gov-form/switch/constants.d.ts +1 -1
  189. package/dist/types/components/gov-spacer/constants.d.ts +1 -1
  190. package/dist/types/components/gov-stepper/constants.d.ts +1 -1
  191. package/dist/types/components/gov-wizzard/constants.d.ts +1 -1
  192. package/dist/types/components.d.ts +10 -14
  193. package/package.json +1 -1
  194. package/dist/cjs/constants-e175be18.js.map +0 -1
  195. package/dist/collection/components/gov-tiles/constants.js.map +0 -1
  196. package/dist/collection/components/gov-tiles/gov-tiles.js.map +0 -1
  197. package/dist/core/p-0284b5e2.js +0 -2
  198. package/dist/core/p-0284b5e2.js.map +0 -1
  199. package/dist/core/p-43811261.entry.js.map +0 -1
  200. package/dist/core/p-7ac5f119.entry.js.map +0 -1
  201. package/dist/core/p-bd560ffc.entry.js +0 -2
  202. package/dist/core/p-bd560ffc.entry.js.map +0 -1
  203. package/dist/esm/constants-14a7ba8e.js.map +0 -1
  204. /package/dist/collection/components/{gov-tiles → gov-tile/container}/constants.js +0 -0
  205. /package/dist/collection/components/{gov-tiles → gov-tile/container}/gov-tiles.css +0 -0
  206. /package/dist/core/{p-613d8ed8.entry.js.map → p-7684f6d0.entry.js.map} +0 -0
  207. /package/dist/core/{p-02c1b4db.entry.js.map → p-f48fd266.entry.js.map} +0 -0
  208. /package/dist/types/components/{gov-tiles → gov-tile/container}/constants.d.ts +0 -0
  209. /package/dist/types/components/{gov-tiles → gov-tile/container}/gov-tiles.d.ts +0 -0
@@ -1,2 +1,2 @@
1
- import{r as i,c as a,h as t,H as s,g as o}from"./p-682c7cc6.js";import{v as r}from"./p-26acf964.js";import{A as e,a as n,b as c}from"./p-0284b5e2.js";import{V as p}from"./p-ff7365ae.js";import{v as d}from"./p-364b4792.js";import{c as h}from"./p-c20102ff.js";import{d as m}from"./p-03990da5.js";import{g as l}from"./p-3f37ddb6.js";import"./p-561fa17b.js";import"./p-55500e5a.js";import"./p-24636c53.js";const f=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-accordion{position:relative;display:block;width:100%}.gov-accordion[no-border] .gov-accordion-item__header::before{background-color:transparent !important}";const v=class{constructor(t){i(this,t);this.govChange=a(this,"gov-change",7);this.size="m";this.variant="primary";this.noBorder=false;this.wcagLabel=undefined;this.wcagLabelledBy=undefined;this.h=l(this.host)}validateSize(i){r(c,i,n.root)}validateVariant(i){r(p,i,n.root)}componentWillLoad(){this.validateSize(this.size);this.validateVariant(this.variant)}componentDidLoad(){this.host.querySelectorAll(e.root).forEach((i=>{i.setAttribute("size",this.size);i.setAttribute("variant",this.variant);i.addEventListener("gov-change",(i=>{i.stopPropagation();this.govChange.emit(i.detail)}))}))}async componentDidRender(){if(h()){await m(500);await this.validateWcag()}}render(){return t(s,{class:this.h.classes(n.root),size:this.size,variant:this.variant},t("div",{role:"list","arial-label":this.wcagLabel,"arial-labelledby":this.wcagLabelledBy},t("slot",null)))}async validateWcag(){d(this.wcagLabel,this.wcagLabelledBy,n.root)}get host(){return o(this)}static get watchers(){return{size:["validateSize"],variant:["validateVariant"]}}};v.style=f;export{v as gov_accordion};
2
- //# sourceMappingURL=p-613d8ed8.entry.js.map
1
+ import{r as i,c as a,h as t,H as s,g as o}from"./p-682c7cc6.js";import{v as r}from"./p-26acf964.js";import{A as e,a as n,b as c}from"./p-a5d69694.js";import{V as p}from"./p-ff7365ae.js";import{v as d}from"./p-364b4792.js";import{c as h}from"./p-c20102ff.js";import{d as m}from"./p-03990da5.js";import{g as l}from"./p-3f37ddb6.js";import"./p-561fa17b.js";import"./p-55500e5a.js";import"./p-24636c53.js";const f=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-accordion{position:relative;display:block;width:100%}.gov-accordion[no-border] .gov-accordion-item__header::before{background-color:transparent !important}";const v=class{constructor(t){i(this,t);this.govChange=a(this,"gov-change",7);this.size="m";this.variant="primary";this.noBorder=false;this.wcagLabel=undefined;this.wcagLabelledBy=undefined;this.h=l(this.host)}validateSize(i){r(c,i,n.root)}validateVariant(i){r(p,i,n.root)}componentWillLoad(){this.validateSize(this.size);this.validateVariant(this.variant)}componentDidLoad(){this.host.querySelectorAll(e.root).forEach((i=>{i.setAttribute("size",this.size);i.setAttribute("variant",this.variant);i.addEventListener("gov-change",(i=>{i.stopPropagation();this.govChange.emit(i.detail)}))}))}async componentDidRender(){if(h()){await m(500);await this.validateWcag()}}render(){return t(s,{class:this.h.classes(n.root),size:this.size,variant:this.variant},t("div",{role:"list","arial-label":this.wcagLabel,"arial-labelledby":this.wcagLabelledBy},t("slot",null)))}async validateWcag(){d(this.wcagLabel,this.wcagLabelledBy,n.root)}get host(){return o(this)}static get watchers(){return{size:["validateSize"],variant:["validateVariant"]}}};v.style=f;export{v as gov_accordion};
2
+ //# sourceMappingURL=p-7684f6d0.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../packages/core/src/components/gov-tiles/constants.ts","../../../packages/core/src/components/gov-tiles/gov-tiles.scss?tag=gov-tiles","../../../packages/core/src/components/gov-tiles/gov-tiles.tsx"],"names":["TilesClass","root","govTilesCss","GovTiles","[object Object]","hostRef","this","h","govHost","host","classNames","prepareClasses","columns","Host","class","classes"],"mappings":"oGAAO,MAAMA,EAAa,CACzBC,KAAM,aCDP,MAAMC,EAAc,m0DCUPC,EAAQ,MAGpBC,YAAAC,0BAMmC,gBAI4B,MAT9DC,KAAKC,EAAIC,EAAQF,KAAKG,MAavBC,iBACC,OAAOC,EAAe,CAACX,EAAWC,KAAMK,KAAKM,SAAWZ,EAAWC,KAAO,MAAQK,KAAKM,UAGxFR,SACC,OACCG,EAACM,EAAI,CAACC,MAAOR,KAAKC,EAAEQ,QAAQT,KAAKI,aAChCH,EAAA,OAAA","sourcesContent":["export const TilesClass = {\n\troot: 'gov-tiles',\n}\n","/*\n * Tiles\n */\n\n$class: \".gov-tiles\";\n$line-width: rem-calc(1);\n\n@mixin grid-lines($i) {\n\tgrid-template-columns: repeat(#{$i}, 1fr);\n\t& > * {\n\t\tborder-width: $line-width $line-width $line-width 0;\n\t\t&:nth-child(-n + #{$i + 1}) {\n\t\t\tborder-top-width: 0;\n\t\t}\n\t\t&:nth-child(#{$i}n + #{$i}) {\n\t\t\tborder-right-width: 0;\n\t\t}\n\t}\n}\n\n#{$class} {\n\toverflow: hidden;\n\t& > * {\n\t\tmargin: 0 calc($line-width * -1) calc($line-width * -1) 0;\n\t\tborder: $line-width solid $tiles-border-color;\n\t\tborder-width: 0 0 $line-width;\n\t\t&:last-child {\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\t}\n\t&[no-border] {\n\t\t& > * {\n\t\t\tborder: none;\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@include mq($from: md) {\n\t\tdisplay: grid;\n\t\t&--x2 {\n\t\t\t@include grid-lines(2);\n\t\t}\n\t\t@include mq($until: lg) {\n\t\t\t&--x3,\n\t\t\t&--x4 {\n\t\t\t\t@include grid-lines(2);\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: lg) {\n\t\t&--x3 {\n\t\t\t@include grid-lines(3);\n\t\t}\n\t\t@include mq($until: xl) {\n\t\t\t&--x4 {\n\t\t\t\t@include grid-lines(3);\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: xl) {\n\t\t&--x4 {\n\t\t\t@include grid-lines(4);\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { TilesClass } from './constants'\nimport { prepareClasses } from '../../helpers/Dom/template'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-tiles',\n\tstyleUrl: 'gov-tiles.scss',\n})\nexport class GovTiles {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\t/**\n\t * Number of columns between 1-4\n\t */\n\t@Prop() readonly columns: number = 3\n\t/**\n\t * Tiles border\n\t */\n\t@Prop({ attribute: 'no-border' }) readonly noBorder: boolean = false\n\n\t@Element() host: HTMLGovTilesElement\n\n\tget classNames(): string {\n\t\treturn prepareClasses([TilesClass.root, this.columns && TilesClass.root + '--x' + this.columns])\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(this.classNames)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
1
+ {"version":3,"sources":["../../../packages/core/src/components/gov-tile/container/constants.ts","../../../packages/core/src/components/gov-tile/container/gov-tiles.scss?tag=gov-tiles","../../../packages/core/src/components/gov-tile/container/gov-tiles.tsx"],"names":["TilesClass","root","govTilesCss","GovTiles","[object Object]","hostRef","this","h","govHost","host","classNames","prepareClasses","columns","Host","class","classes"],"mappings":"oGAAO,MAAMA,EAAa,CACzBC,KAAM,aCDP,MAAMC,EAAc,m0DCUPC,EAAQ,MAGpBC,YAAAC,0BAMmC,gBAI4B,MAT9DC,KAAKC,EAAIC,EAAQF,KAAKG,MAavBC,iBACC,OAAOC,EAAe,CAACX,EAAWC,KAAMK,KAAKM,SAAWZ,EAAWC,KAAO,MAAQK,KAAKM,UAGxFR,SACC,OACCG,EAACM,EAAI,CAACC,MAAOR,KAAKC,EAAEQ,QAAQT,KAAKI,aAChCH,EAAA,OAAA","sourcesContent":["export const TilesClass = {\n\troot: 'gov-tiles',\n}\n","/*\n * Tiles\n */\n\n$class: \".gov-tiles\";\n$line-width: rem-calc(1);\n\n@mixin grid-lines($i) {\n\tgrid-template-columns: repeat(#{$i}, 1fr);\n\t& > * {\n\t\tborder-width: $line-width $line-width $line-width 0;\n\t\t&:nth-child(-n + #{$i + 1}) {\n\t\t\tborder-top-width: 0;\n\t\t}\n\t\t&:nth-child(#{$i}n + #{$i}) {\n\t\t\tborder-right-width: 0;\n\t\t}\n\t}\n}\n\n#{$class} {\n\toverflow: hidden;\n\t& > * {\n\t\tmargin: 0 calc($line-width * -1) calc($line-width * -1) 0;\n\t\tborder: $line-width solid $tiles-border-color;\n\t\tborder-width: 0 0 $line-width;\n\t\t&:last-child {\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\t}\n\t&[no-border] {\n\t\t& > * {\n\t\t\tborder: none;\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@include mq($from: md) {\n\t\tdisplay: grid;\n\t\t&--x2 {\n\t\t\t@include grid-lines(2);\n\t\t}\n\t\t@include mq($until: lg) {\n\t\t\t&--x3,\n\t\t\t&--x4 {\n\t\t\t\t@include grid-lines(2);\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: lg) {\n\t\t&--x3 {\n\t\t\t@include grid-lines(3);\n\t\t}\n\t\t@include mq($until: xl) {\n\t\t\t&--x4 {\n\t\t\t\t@include grid-lines(3);\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: xl) {\n\t\t&--x4 {\n\t\t\t@include grid-lines(4);\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { TilesClass } from './constants'\nimport { prepareClasses } from '../../../helpers/Dom/template'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovHost } from '../../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-tiles',\n\tstyleUrl: 'gov-tiles.scss',\n})\nexport class GovTiles {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\t/**\n\t * Number of columns between 1-4\n\t */\n\t@Prop() readonly columns: number = 3\n\t/**\n\t * Tiles border\n\t */\n\t@Prop({ attribute: 'no-border' }) readonly noBorder: boolean = false\n\n\t@Element() host: HTMLGovTilesElement\n\n\tget classNames(): string {\n\t\treturn prepareClasses([TilesClass.root, this.columns && TilesClass.root + '--x' + this.columns])\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(this.classNames)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import{S as o}from"./p-55500e5a.js";import{V as a}from"./p-ff7365ae.js";import{p as c}from"./p-03990da5.js";const i=c(o,["_XS","_S","_M","_L"]);const t=c(a,["PRIMARY","SECONDARY","CUSTOM"]);const n={root:"gov-accordion"};const r={root:"gov-accordion-item",header:"gov-accordion-item__header",arrow:"gov-accordion-item__arrow",icon:"gov-accordion-item__icon",suffix:"gov-accordion-item__suffix",title:"gov-accordion-item__title",label:"gov-accordion-item__label",name:"gov-accordion-item__name",annot:"gov-accordion-item__annot",content:"gov-accordion-item__content"};export{r as A,n as a,i as b,t as c};
2
+ //# sourceMappingURL=p-a5d69694.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/core/src/components/gov-accordion/constants.ts"],"names":["AccordionSizes","pick","Sizes","AccordionVariants","Variants","AccordionClass","root","AccordionItemClass","header","arrow","icon","suffix","title","label","name","annot","content"],"mappings":"kHAKaA,EAAiBC,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,aAGjDC,EAAoBF,EAAKG,EAAU,CAAC,UAAW,YAAa,iBAG5DC,EAAiB,CAC7BC,KAAM,uBAGMC,EAAqB,CACjCD,KAAM,qBACNE,OAAQ,6BACRC,MAAO,4BACPC,KAAM,2BACNC,OAAQ,6BACRC,MAAO,4BACPC,MAAO,4BACPC,KAAM,2BACNC,MAAO,4BACPC,QAAS","sourcesContent":["import { Sizes } from '../../core/constants/sizes'\nimport { Variants } from '../../core/constants/variants'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const AccordionSizes = pick(Sizes, ['_XS', '_S', '_M', '_L'])\nexport type AccordionSizeType = `${ValueOf<typeof AccordionSizes>}`\n\nexport const AccordionVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'CUSTOM'])\nexport type AccordionVariantType = `${ValueOf<typeof AccordionVariants>}`\n\nexport const AccordionClass = {\n\troot: 'gov-accordion',\n}\n\nexport const AccordionItemClass = {\n\troot: 'gov-accordion-item',\n\theader: 'gov-accordion-item__header',\n\tarrow: 'gov-accordion-item__arrow',\n\ticon: 'gov-accordion-item__icon',\n\tsuffix: 'gov-accordion-item__suffix',\n\ttitle: 'gov-accordion-item__title',\n\tlabel: 'gov-accordion-item__label',\n\tname: 'gov-accordion-item__name',\n\tannot: 'gov-accordion-item__annot',\n\tcontent: 'gov-accordion-item__content',\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import{r,c as o,h as t,H as e,g as a}from"./p-682c7cc6.js";import{v as i}from"./p-364b4792.js";import{c as s}from"./p-c20102ff.js";import{d as n}from"./p-03990da5.js";import{g as c}from"./p-3f37ddb6.js";import"./p-561fa17b.js";import"./p-24636c53.js";const d={root:"gov-breadcrumbs"};const m=".gov-breadcrumbs ul{margin:0;padding:0}.gov-breadcrumbs li{margin:0;padding:0;background:none}.gov-breadcrumbs li::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-breadcrumbs ul{position:relative;display:flex;width:100%;padding-bottom:0.3125rem;overflow-x:auto}.gov-breadcrumbs li{display:flex;justify-content:flex-start;align-items:center;white-space:nowrap}.gov-breadcrumbs button{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);padding:0;border:none;background:none;color:var(--gov-breadcrumbs-link-color, var(--gov-color-primary));text-decoration:underline}.gov-breadcrumbs button:hover{text-decoration:none}.gov-breadcrumbs .gov-icon{width:0.625rem;height:0.625rem;margin:0rem 1rem;color:var(--gov-breadcrumbs-arrow-color, var(--gov-color-secondary-600))}";const g=class{constructor(t){r(this,t);this.govChange=o(this,"gov-change",7);this.collapsible=false;this.isExpanded=false;this.wcagLabel=undefined;this.wcagLabelledBy=undefined;this.h=c(this.host)}async componentDidRender(){if(s()){await n(500);await this.validateWcag()}}render(){return t(e,{class:this.h.classes(d.root)},t("nav",{"aria-label":this.wcagLabel,"aria-labelledby":this.wcagLabelledBy},t("slot",null)))}async validateWcag(){i(this.wcagLabel,this.wcagLabelledBy,d.root)}get host(){return a(this)}};g.style=m;export{g as gov_breadcrumbs};
2
+ //# sourceMappingURL=p-b308500e.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/core/src/components/gov-breadcrumbs/constants.ts","../../../packages/core/src/components/gov-breadcrumbs/gov-breadcrumbs.scss?tag=gov-breadcrumbs","../../../packages/core/src/components/gov-breadcrumbs/gov-breadcrumbs.tsx"],"names":["BreadcrumbsClass","root","govBreadcrumbsCss","GovBreadcrumbs","[object Object]","hostRef","this","h","govHost","host","canValidateWcagOnRender","delay","validateWcag","Host","class","classes","aria-label","wcagLabel","aria-labelledby","wcagLabelledBy","validateWcagLabel"],"mappings":"2PAAO,MAAMA,EAAmB,CAC/BC,KAAM,mBCDP,MAAMC,EAAoB,yhCCabC,EAAc,MAG1BC,YAAAC,oEAQwC,sBAI2B,6DAXlEC,KAAKC,EAAIC,EAAQF,KAAKG,MA0BvBL,2BACC,GAAIM,IAA2B,OACxBC,EAAM,WACNL,KAAKM,gBAIbR,SACC,OACCG,EAACM,EAAI,CAACC,MAAOR,KAAKC,EAAEQ,QAAQf,EAAiBC,OAC5CM,EAAA,MAAA,CAAAS,aAAiBV,KAAKW,UAASC,kBAAmBZ,KAAKa,gBACtDZ,EAAA,OAAA,QAWJH,qBACCgB,EAAkBd,KAAKW,UAAWX,KAAKa,eAAgBnB,EAAiBC","sourcesContent":["export const BreadcrumbsClass = {\n\troot: 'gov-breadcrumbs',\n}\n","/*\n * Pagination\n */\n\n$class: \".gov-breadcrumbs\";\n\n#{$class} {\n\tul {\n\t\t@extend %reset-ul;\n\t\t@include base(flex);\n\t\tpadding-bottom: rem-calc(5);\n\t\toverflow-x: auto;\n\t}\n\tli {\n\t\t@extend %reset-ul-li;\n\t\tdisplay: flex;\n\t\tjustify-content: flex-start;\n\t\talign-items: center;\n\t\twhite-space: nowrap;\n\t}\n\tbutton {\n\t\t@include typography($font-size-m);\n\t\tpadding: 0;\n\t\tborder: none;\n\t\tbackground: none;\n\t\tcolor: $breadcrumbs-link-color;\n\t\ttext-decoration: underline;\n\t\t&:hover {\n\t\t\ttext-decoration: none;\n\t\t}\n\t}\n\t& .gov-icon {\n\t\twidth: rem-calc(10);\n\t\theight: rem-calc(10);\n\t\tmargin: rem-calc(0 16px);\n\t\tcolor: $breadcrumbs-arrow-color;\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop, Event, EventEmitter } from '@stencil/core'\nimport { BreadcrumbsClass } from './constants'\nimport { validateWcagLabel } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\nimport { GovBreadcrumbsChangeEvent } from './gov-breadcrumbs.d'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-breadcrumbs',\n\tstyleUrl: 'gov-breadcrumbs.scss',\n})\nexport class GovBreadcrumbs {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovBreadcrumbsElement\n\t/**\n\t * Defines wether the components can be collapsible when element doesn't fit in one row.\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the breadcrumbs are open or closed by default\n\t */\n\t@Prop({ attribute: 'is-expanded' }) readonly isExpanded: boolean = false\n\t/**\n\t * Adds accessible label for the pagination that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\t/**\n\t * Indicates the id of a component that labels the pagination.\n\t */\n\t@Prop({ attribute: 'wcag-labelded-by' }) readonly wcagLabelledBy: string\n\n\t/**\n\t * Called when the Breadrumbs state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovBreadcrumbsChangeEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(BreadcrumbsClass.root)}>\n\t\t\t\t<nav aria-label={this.wcagLabel} aria-labelledby={this.wcagLabelledBy}>\n\t\t\t\t\t<slot/>\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, BreadcrumbsClass.root)\n\t}\n}\n"]}
@@ -1,2 +1,2 @@
1
- import{a as t,r as s,h as i,H as n,g as e}from"./p-682c7cc6.js";import{i as o}from"./p-c20102ff.js";import{g as a}from"./p-3f37ddb6.js";import"./p-03990da5.js";var r;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(r||(r={}));const c={root:"gov-icon",holder:"gov-icon__holder"};const h="0.0.12";const l=()=>h;const f={};const d={};const p=t=>t.startsWith("http://")||t.startsWith("https://");const u=(s,i,n)=>{if(p(s)){return`${s}/${n}/${i}.svg?v=${l()}`}return t(`${s}/${n}/${i}.svg`)+`?v=${l()}`};async function m({name:t,type:s}){if(f[t]){return f[t]}if(!d[t]){d[t]=fetch(u(o(),t,s)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const i=await d[t];f[t]=i;return i}const g=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-icon{display:inline-flex}.gov-icon__holder,.gov-icon svg{display:inline-flex;width:100%;height:100%}";const v=class{constructor(t){s(this,t);this.name=null;this.type="basic";this.iconData=undefined;this.visible=false;this.error=false;this.h=a(this.host)}async loadIconPathData(){const{name:t,visible:s,type:i}=this;if(!t||!s){return}try{this.iconData=await m({name:t,type:i})}catch(t){this.error=true}}connectedCallback(){this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((s=>{s.forEach((s=>{if(s.isIntersecting){this.intersectionObserver.disconnect();this.intersectionObserver=null;t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}render(){if(this.error){return null}return i(n,{class:this.h.classes(c.root)},i("span",{class:c.holder,innerHTML:this.iconData}))}static get assetsDirs(){return["assets"]}get host(){return e(this)}static get watchers(){return{name:["loadIconPathData"]}}};v.style=g;export{v as gov_icon};
2
- //# sourceMappingURL=p-02c1b4db.entry.js.map
1
+ import{a as t,r as s,h as i,H as n,g as e}from"./p-682c7cc6.js";import{i as o}from"./p-c20102ff.js";import{g as a}from"./p-3f37ddb6.js";import"./p-03990da5.js";var r;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(r||(r={}));const c={root:"gov-icon",holder:"gov-icon__holder"};const h="0.0.13";const l=()=>h;const f={};const d={};const p=t=>t.startsWith("http://")||t.startsWith("https://");const u=(s,i,n)=>{if(p(s)){return`${s}/${n}/${i}.svg?v=${l()}`}return t(`${s}/${n}/${i}.svg`)+`?v=${l()}`};async function m({name:t,type:s}){if(f[t]){return f[t]}if(!d[t]){d[t]=fetch(u(o(),t,s)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const i=await d[t];f[t]=i;return i}const g=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-icon{display:inline-flex}.gov-icon__holder,.gov-icon svg{display:inline-flex;width:100%;height:100%}";const v=class{constructor(t){s(this,t);this.name=null;this.type="basic";this.iconData=undefined;this.visible=false;this.error=false;this.h=a(this.host)}async loadIconPathData(){const{name:t,visible:s,type:i}=this;if(!t||!s){return}try{this.iconData=await m({name:t,type:i})}catch(t){this.error=true}}connectedCallback(){this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((s=>{s.forEach((s=>{if(s.isIntersecting){this.intersectionObserver.disconnect();this.intersectionObserver=null;t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}render(){if(this.error){return null}return i(n,{class:this.h.classes(c.root)},i("span",{class:c.holder,innerHTML:this.iconData}))}static get assetsDirs(){return["assets"]}get host(){return e(this)}static get watchers(){return{name:["loadIconPathData"]}}};v.style=g;export{v as gov_icon};
2
+ //# sourceMappingURL=p-f48fd266.entry.js.map