@prushforth/map 1.0.0-preview.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +89 -0
  3. package/demo/index.html +78 -0
  4. package/dist/cjs/AttributionButton-DgbgLHy4.js +106 -0
  5. package/dist/cjs/MapTileLayer-D4vp8bR4.js +454 -0
  6. package/dist/cjs/app-globals-DY--Q2Nl.js +775 -0
  7. package/dist/cjs/calculatePosition-CDcdNl7C.js +92 -0
  8. package/dist/cjs/gcds-ext-map.cjs.js +47 -0
  9. package/dist/cjs/gcds-ext-map_2.cjs.entry.js +8081 -0
  10. package/dist/cjs/index-CW_WOSnc.js +32697 -0
  11. package/dist/cjs/index.cjs.js +2 -0
  12. package/dist/cjs/loader.cjs.js +14 -0
  13. package/dist/cjs/locale-_4nEyxeO.js +153 -0
  14. package/dist/cjs/map-a.cjs.entry.js +16 -0
  15. package/dist/cjs/map-caption.cjs.entry.js +55 -0
  16. package/dist/cjs/map-extent.cjs.entry.js +993 -0
  17. package/dist/cjs/map-feature.cjs.entry.js +636 -0
  18. package/dist/cjs/map-featurecaption.cjs.entry.js +14 -0
  19. package/dist/cjs/map-geometry.cjs.entry.js +36 -0
  20. package/dist/cjs/map-input.cjs.entry.js +348 -0
  21. package/dist/cjs/map-link.cjs.entry.js +6055 -0
  22. package/dist/cjs/map-meta.cjs.entry.js +40 -0
  23. package/dist/cjs/map-properties.cjs.entry.js +14 -0
  24. package/dist/cjs/map-select.cjs.entry.js +100 -0
  25. package/dist/cjs/map-span.cjs.entry.js +14 -0
  26. package/dist/cjs/map-style.cjs.entry.js +127 -0
  27. package/dist/cjs/map-tile.cjs.entry.js +274 -0
  28. package/dist/cjs/renderStyles-yOMXvf12.js +59 -0
  29. package/dist/collection/assets/canada.json +1 -0
  30. package/dist/collection/assets/images/w3community.ico +0 -0
  31. package/dist/collection/assets/mapml/en/apstile/arctic +18 -0
  32. package/dist/collection/assets/mapml/en/cbmtile/canvec +22 -0
  33. package/dist/collection/assets/mapml/en/cbmtile/cbmt +24 -0
  34. package/dist/collection/assets/mapml/en/cbmtile/cbmtgeom +20 -0
  35. package/dist/collection/assets/mapml/en/cbmtile/cbmtsimple +20 -0
  36. package/dist/collection/assets/mapml/en/cbmtile/current_conditions +33 -0
  37. package/dist/collection/assets/mapml/en/cbmtile/toporama +25 -0
  38. package/dist/collection/assets/mapml/en/custom/arcticsdi.mapml +18 -0
  39. package/dist/collection/assets/mapml/en/osmtile/cbmt +24 -0
  40. package/dist/collection/assets/mapml/en/osmtile/current_conditions +32 -0
  41. package/dist/collection/assets/mapml/en/osmtile/dark.mapml +19 -0
  42. package/dist/collection/assets/mapml/en/osmtile/light.mapml +19 -0
  43. package/dist/collection/assets/mapml/en/osmtile/osm +19 -0
  44. package/dist/collection/assets/mapml/en/osmtile/toporama +25 -0
  45. package/dist/collection/assets/mapml/fr/apstile/arctic +19 -0
  46. package/dist/collection/assets/mapml/fr/cbmtile/canvec +22 -0
  47. package/dist/collection/assets/mapml/fr/cbmtile/cbmt +24 -0
  48. package/dist/collection/assets/mapml/fr/cbmtile/cbmtgeom +20 -0
  49. package/dist/collection/assets/mapml/fr/cbmtile/cbmtsimple +20 -0
  50. package/dist/collection/assets/mapml/fr/cbmtile/current_conditions +25 -0
  51. package/dist/collection/assets/mapml/fr/cbmtile/toporama +25 -0
  52. package/dist/collection/assets/mapml/fr/osmtile/cbmt +24 -0
  53. package/dist/collection/assets/mapml/fr/osmtile/current_conditions +24 -0
  54. package/dist/collection/assets/mapml/fr/osmtile/dark.mapml +19 -0
  55. package/dist/collection/assets/mapml/fr/osmtile/light.mapml +19 -0
  56. package/dist/collection/assets/mapml/fr/osmtile/osm +19 -0
  57. package/dist/collection/assets/mapml/fr/osmtile/toporama +25 -0
  58. package/dist/collection/assets/pmtiles/darkTheme.js +19 -0
  59. package/dist/collection/assets/pmtiles/lightTheme.js +19 -0
  60. package/dist/collection/collection-manifest.json +28 -0
  61. package/dist/collection/components/gcds-ext-map/assets/pmtiles/darkTheme.js +19 -0
  62. package/dist/collection/components/gcds-ext-map/assets/pmtiles/lightTheme.js +19 -0
  63. package/dist/collection/components/gcds-ext-map/gcds-ext-map.css +2138 -0
  64. package/dist/collection/components/gcds-ext-map/gcds-ext-map.js +1517 -0
  65. package/dist/collection/components/gcds-ext-map/stories/gcds-ext-map.stories.js +367 -0
  66. package/dist/collection/components/map-a/map-a.js +89 -0
  67. package/dist/collection/components/map-caption/map-caption.js +52 -0
  68. package/dist/collection/components/map-extent/map-extent.js +809 -0
  69. package/dist/collection/components/map-feature/map-feature.js +724 -0
  70. package/dist/collection/components/map-featurecaption/map-featurecaption.js +6 -0
  71. package/dist/collection/components/map-geometry/map-geometry.js +57 -0
  72. package/dist/collection/components/map-input/map-input.js +355 -0
  73. package/dist/collection/components/map-layer/map-layer.js +1245 -0
  74. package/dist/collection/components/map-layer/stories/map-layer.stories.js +101 -0
  75. package/dist/collection/components/map-link/map-link.js +1149 -0
  76. package/dist/collection/components/map-meta/map-meta.js +82 -0
  77. package/dist/collection/components/map-properties/map-properties.js +7 -0
  78. package/dist/collection/components/map-select/map-select.js +145 -0
  79. package/dist/collection/components/map-span/map-span.js +7 -0
  80. package/dist/collection/components/map-style/map-style.js +144 -0
  81. package/dist/collection/components/map-tile/map-tile.js +370 -0
  82. package/dist/collection/components/utils/mapml/DOMTokenList.js +123 -0
  83. package/dist/collection/components/utils/mapml/DefaultMapOptions.js +11 -0
  84. package/dist/collection/components/utils/mapml/Util.js +1601 -0
  85. package/dist/collection/components/utils/mapml/control/AttributionButton.js +101 -0
  86. package/dist/collection/components/utils/mapml/control/FullscreenButton.js +181 -0
  87. package/dist/collection/components/utils/mapml/control/GeolocationButton.js +70 -0
  88. package/dist/collection/components/utils/mapml/control/LayerControl.js +212 -0
  89. package/dist/collection/components/utils/mapml/control/ReloadButton.js +75 -0
  90. package/dist/collection/components/utils/mapml/control/ScaleBar.js +108 -0
  91. package/dist/collection/components/utils/mapml/control/SearchButton.js +565 -0
  92. package/dist/collection/components/utils/mapml/elementSupport/extents/createLayerControlForExtent.js +259 -0
  93. package/dist/collection/components/utils/mapml/elementSupport/inputs/heightInput.js +18 -0
  94. package/dist/collection/components/utils/mapml/elementSupport/inputs/hiddenInput.js +19 -0
  95. package/dist/collection/components/utils/mapml/elementSupport/inputs/locationInput.js +127 -0
  96. package/dist/collection/components/utils/mapml/elementSupport/inputs/widthInput.js +18 -0
  97. package/dist/collection/components/utils/mapml/elementSupport/inputs/zoomInput.js +30 -0
  98. package/dist/collection/components/utils/mapml/elementSupport/layers/calculatePosition.js +88 -0
  99. package/dist/collection/components/utils/mapml/elementSupport/layers/createLayerControlForLayer.js +326 -0
  100. package/dist/collection/components/utils/mapml/elementSupport/layers/renderStyles.js +55 -0
  101. package/dist/collection/components/utils/mapml/elementSupport/viewers/matchMedia.js +251 -0
  102. package/dist/collection/components/utils/mapml/features/featureRenderer.js +342 -0
  103. package/dist/collection/components/utils/mapml/features/geometry.js +268 -0
  104. package/dist/collection/components/utils/mapml/features/path.js +485 -0
  105. package/dist/collection/components/utils/mapml/handlers/AnnounceMovement.js +154 -0
  106. package/dist/collection/components/utils/mapml/handlers/ContextMenu.js +1436 -0
  107. package/dist/collection/components/utils/mapml/handlers/FeatureIndex.js +116 -0
  108. package/dist/collection/components/utils/mapml/handlers/QueryHandler.js +476 -0
  109. package/dist/collection/components/utils/mapml/handlers/keyboard.js +60 -0
  110. package/dist/collection/components/utils/mapml/layers/Crosshair.js +108 -0
  111. package/dist/collection/components/utils/mapml/layers/DebugOverlay.js +357 -0
  112. package/dist/collection/components/utils/mapml/layers/FeatureIndexOverlay.js +239 -0
  113. package/dist/collection/components/utils/mapml/layers/ImageLayer.js +136 -0
  114. package/dist/collection/components/utils/mapml/layers/MapExtentLayer.js +114 -0
  115. package/dist/collection/components/utils/mapml/layers/MapFeatureLayer.js +623 -0
  116. package/dist/collection/components/utils/mapml/layers/MapLayer.js +640 -0
  117. package/dist/collection/components/utils/mapml/layers/MapTileLayer.js +450 -0
  118. package/dist/collection/components/utils/mapml/layers/TemplatedFeaturesOrTilesLayer.js +346 -0
  119. package/dist/collection/components/utils/mapml/layers/TemplatedImageLayer.js +276 -0
  120. package/dist/collection/components/utils/mapml/layers/TemplatedPMTilesLayer.js +135 -0
  121. package/dist/collection/components/utils/mapml/layers/TemplatedTileLayer.js +664 -0
  122. package/dist/collection/components/utils/utils.js +26 -0
  123. package/dist/collection/fonts/icons/LICENSE.txt +92 -0
  124. package/dist/collection/fonts/icons/README.md +543 -0
  125. package/dist/collection/fonts/icons/gcds-icons.css +110 -0
  126. package/dist/collection/fonts/icons/gcds-icons.eot +0 -0
  127. package/dist/collection/fonts/icons/gcds-icons.svg +82 -0
  128. package/dist/collection/fonts/icons/gcds-icons.ttf +0 -0
  129. package/dist/collection/fonts/icons/gcds-icons.woff +0 -0
  130. package/dist/collection/fonts/lato/LICENSE.txt +48 -0
  131. package/dist/collection/fonts/lato/README.md +195 -0
  132. package/dist/collection/fonts/lato/gcds-lato-italic.woff +0 -0
  133. package/dist/collection/fonts/lato/gcds-lato-italic.woff2 +0 -0
  134. package/dist/collection/fonts/lato/gcds-lato.css +30 -0
  135. package/dist/collection/fonts/lato/gcds-lato.woff +0 -0
  136. package/dist/collection/fonts/lato/gcds-lato.woff2 +0 -0
  137. package/dist/collection/fonts/noto-sans/LICENSE.txt +43 -0
  138. package/dist/collection/fonts/noto-sans/README.md +423 -0
  139. package/dist/collection/fonts/noto-sans/gcds-noto-sans-bold-italic.woff +0 -0
  140. package/dist/collection/fonts/noto-sans/gcds-noto-sans-bold-italic.woff2 +0 -0
  141. package/dist/collection/fonts/noto-sans/gcds-noto-sans-bold.woff +0 -0
  142. package/dist/collection/fonts/noto-sans/gcds-noto-sans-bold.woff2 +0 -0
  143. package/dist/collection/fonts/noto-sans/gcds-noto-sans-light-italic.woff +0 -0
  144. package/dist/collection/fonts/noto-sans/gcds-noto-sans-light-italic.woff2 +0 -0
  145. package/dist/collection/fonts/noto-sans/gcds-noto-sans-light.woff +0 -0
  146. package/dist/collection/fonts/noto-sans/gcds-noto-sans-light.woff2 +0 -0
  147. package/dist/collection/fonts/noto-sans/gcds-noto-sans-medium-italic.woff +0 -0
  148. package/dist/collection/fonts/noto-sans/gcds-noto-sans-medium-italic.woff2 +0 -0
  149. package/dist/collection/fonts/noto-sans/gcds-noto-sans-medium.woff +0 -0
  150. package/dist/collection/fonts/noto-sans/gcds-noto-sans-medium.woff2 +0 -0
  151. package/dist/collection/fonts/noto-sans/gcds-noto-sans-regular-italic.woff +0 -0
  152. package/dist/collection/fonts/noto-sans/gcds-noto-sans-regular-italic.woff2 +0 -0
  153. package/dist/collection/fonts/noto-sans/gcds-noto-sans-regular.woff +0 -0
  154. package/dist/collection/fonts/noto-sans/gcds-noto-sans-regular.woff2 +0 -0
  155. package/dist/collection/fonts/noto-sans/gcds-noto-sans-semibold-italic.woff +0 -0
  156. package/dist/collection/fonts/noto-sans/gcds-noto-sans-semibold-italic.woff2 +0 -0
  157. package/dist/collection/fonts/noto-sans/gcds-noto-sans-semibold.woff +0 -0
  158. package/dist/collection/fonts/noto-sans/gcds-noto-sans-semibold.woff2 +0 -0
  159. package/dist/collection/fonts/noto-sans/gcds-noto-sans.css +89 -0
  160. package/dist/collection/fonts/noto-sans-mono/LICENSE.txt +93 -0
  161. package/dist/collection/fonts/noto-sans-mono/README.md +135 -0
  162. package/dist/collection/fonts/noto-sans-mono/gcds-noto-sans-mono.css +17 -0
  163. package/dist/collection/fonts/noto-sans-mono/gcds-noto-sans-mono.woff +0 -0
  164. package/dist/collection/fonts/noto-sans-mono/gcds-noto-sans-mono.woff2 +0 -0
  165. package/dist/collection/generated/locale.js +148 -0
  166. package/dist/collection/global/mapml-globals.js +916 -0
  167. package/dist/collection/index.js +1 -0
  168. package/dist/collection/leaflet-src.esm.js +14419 -0
  169. package/dist/components/gcds-ext-map.d.ts +11 -0
  170. package/dist/components/gcds-ext-map.js +10 -0
  171. package/dist/components/index.d.ts +35 -0
  172. package/dist/components/index.js +1 -0
  173. package/dist/components/map-a.d.ts +11 -0
  174. package/dist/components/map-a.js +1 -0
  175. package/dist/components/map-caption.d.ts +11 -0
  176. package/dist/components/map-caption.js +1 -0
  177. package/dist/components/map-extent.d.ts +11 -0
  178. package/dist/components/map-extent.js +1 -0
  179. package/dist/components/map-feature.d.ts +11 -0
  180. package/dist/components/map-feature.js +1 -0
  181. package/dist/components/map-featurecaption.d.ts +11 -0
  182. package/dist/components/map-featurecaption.js +1 -0
  183. package/dist/components/map-geometry.d.ts +11 -0
  184. package/dist/components/map-geometry.js +1 -0
  185. package/dist/components/map-input.d.ts +11 -0
  186. package/dist/components/map-input.js +1 -0
  187. package/dist/components/map-layer.d.ts +11 -0
  188. package/dist/components/map-layer.js +1 -0
  189. package/dist/components/map-link.d.ts +11 -0
  190. package/dist/components/map-link.js +1 -0
  191. package/dist/components/map-meta.d.ts +11 -0
  192. package/dist/components/map-meta.js +1 -0
  193. package/dist/components/map-properties.d.ts +11 -0
  194. package/dist/components/map-properties.js +1 -0
  195. package/dist/components/map-select.d.ts +11 -0
  196. package/dist/components/map-select.js +1 -0
  197. package/dist/components/map-span.d.ts +11 -0
  198. package/dist/components/map-span.js +1 -0
  199. package/dist/components/map-style.d.ts +11 -0
  200. package/dist/components/map-style.js +1 -0
  201. package/dist/components/map-tile.d.ts +11 -0
  202. package/dist/components/map-tile.js +1 -0
  203. package/dist/components/p-B4YLD_Og.js +1 -0
  204. package/dist/components/p-BE41zrui.js +1 -0
  205. package/dist/components/p-Bpv_U_Lb.js +1 -0
  206. package/dist/components/p-CwRxGZga.js +5 -0
  207. package/dist/components/p-EYVT9Efh.js +1 -0
  208. package/dist/components/p-gwC_yeRa.js +1 -0
  209. package/dist/esm/AttributionButton-CfaoSLCu.js +103 -0
  210. package/dist/esm/MapTileLayer-DvC_iOIS.js +451 -0
  211. package/dist/esm/app-globals-De5ze2BD.js +773 -0
  212. package/dist/esm/calculatePosition-B4YLD_Og.js +90 -0
  213. package/dist/esm/gcds-ext-map.js +43 -0
  214. package/dist/esm/gcds-ext-map_2.entry.js +8078 -0
  215. package/dist/esm/index-BUsJ7i5g.js +32656 -0
  216. package/dist/esm/index.js +1 -0
  217. package/dist/esm/loader.js +12 -0
  218. package/dist/esm/locale-Bpv_U_Lb.js +150 -0
  219. package/dist/esm/map-a.entry.js +14 -0
  220. package/dist/esm/map-caption.entry.js +53 -0
  221. package/dist/esm/map-extent.entry.js +991 -0
  222. package/dist/esm/map-feature.entry.js +634 -0
  223. package/dist/esm/map-featurecaption.entry.js +12 -0
  224. package/dist/esm/map-geometry.entry.js +34 -0
  225. package/dist/esm/map-input.entry.js +346 -0
  226. package/dist/esm/map-link.entry.js +6035 -0
  227. package/dist/esm/map-meta.entry.js +38 -0
  228. package/dist/esm/map-properties.entry.js +12 -0
  229. package/dist/esm/map-select.entry.js +98 -0
  230. package/dist/esm/map-span.entry.js +12 -0
  231. package/dist/esm/map-style.entry.js +125 -0
  232. package/dist/esm/map-tile.entry.js +272 -0
  233. package/dist/esm/renderStyles-EYVT9Efh.js +57 -0
  234. package/dist/gcds-ext-map/assets/canada.json +1 -0
  235. package/dist/gcds-ext-map/assets/images/w3community.ico +0 -0
  236. package/dist/gcds-ext-map/assets/mapml/en/apstile/arctic +18 -0
  237. package/dist/gcds-ext-map/assets/mapml/en/cbmtile/canvec +22 -0
  238. package/dist/gcds-ext-map/assets/mapml/en/cbmtile/cbmt +24 -0
  239. package/dist/gcds-ext-map/assets/mapml/en/cbmtile/cbmtgeom +20 -0
  240. package/dist/gcds-ext-map/assets/mapml/en/cbmtile/cbmtsimple +20 -0
  241. package/dist/gcds-ext-map/assets/mapml/en/cbmtile/current_conditions +33 -0
  242. package/dist/gcds-ext-map/assets/mapml/en/cbmtile/toporama +25 -0
  243. package/dist/gcds-ext-map/assets/mapml/en/custom/arcticsdi.mapml +18 -0
  244. package/dist/gcds-ext-map/assets/mapml/en/osmtile/cbmt +24 -0
  245. package/dist/gcds-ext-map/assets/mapml/en/osmtile/current_conditions +32 -0
  246. package/dist/gcds-ext-map/assets/mapml/en/osmtile/dark.mapml +19 -0
  247. package/dist/gcds-ext-map/assets/mapml/en/osmtile/light.mapml +19 -0
  248. package/dist/gcds-ext-map/assets/mapml/en/osmtile/osm +19 -0
  249. package/dist/gcds-ext-map/assets/mapml/en/osmtile/toporama +25 -0
  250. package/dist/gcds-ext-map/assets/mapml/fr/apstile/arctic +19 -0
  251. package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/canvec +22 -0
  252. package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/cbmt +24 -0
  253. package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/cbmtgeom +20 -0
  254. package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/cbmtsimple +20 -0
  255. package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/current_conditions +25 -0
  256. package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/toporama +25 -0
  257. package/dist/gcds-ext-map/assets/mapml/fr/osmtile/cbmt +24 -0
  258. package/dist/gcds-ext-map/assets/mapml/fr/osmtile/current_conditions +24 -0
  259. package/dist/gcds-ext-map/assets/mapml/fr/osmtile/dark.mapml +19 -0
  260. package/dist/gcds-ext-map/assets/mapml/fr/osmtile/light.mapml +19 -0
  261. package/dist/gcds-ext-map/assets/mapml/fr/osmtile/osm +19 -0
  262. package/dist/gcds-ext-map/assets/mapml/fr/osmtile/toporama +25 -0
  263. package/dist/gcds-ext-map/assets/pmtiles/darkTheme.js +19 -0
  264. package/dist/gcds-ext-map/assets/pmtiles/lightTheme.js +19 -0
  265. package/dist/gcds-ext-map/fonts/icons/LICENSE.txt +92 -0
  266. package/dist/gcds-ext-map/fonts/icons/README.md +543 -0
  267. package/dist/gcds-ext-map/fonts/icons/gcds-icons.css +110 -0
  268. package/dist/gcds-ext-map/fonts/icons/gcds-icons.eot +0 -0
  269. package/dist/gcds-ext-map/fonts/icons/gcds-icons.svg +82 -0
  270. package/dist/gcds-ext-map/fonts/icons/gcds-icons.ttf +0 -0
  271. package/dist/gcds-ext-map/fonts/icons/gcds-icons.woff +0 -0
  272. package/dist/gcds-ext-map/fonts/lato/LICENSE.txt +48 -0
  273. package/dist/gcds-ext-map/fonts/lato/README.md +195 -0
  274. package/dist/gcds-ext-map/fonts/lato/gcds-lato-italic.woff +0 -0
  275. package/dist/gcds-ext-map/fonts/lato/gcds-lato-italic.woff2 +0 -0
  276. package/dist/gcds-ext-map/fonts/lato/gcds-lato.css +30 -0
  277. package/dist/gcds-ext-map/fonts/lato/gcds-lato.woff +0 -0
  278. package/dist/gcds-ext-map/fonts/lato/gcds-lato.woff2 +0 -0
  279. package/dist/gcds-ext-map/fonts/noto-sans/LICENSE.txt +43 -0
  280. package/dist/gcds-ext-map/fonts/noto-sans/README.md +423 -0
  281. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-bold-italic.woff +0 -0
  282. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-bold-italic.woff2 +0 -0
  283. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-bold.woff +0 -0
  284. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-bold.woff2 +0 -0
  285. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-light-italic.woff +0 -0
  286. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-light-italic.woff2 +0 -0
  287. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-light.woff +0 -0
  288. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-light.woff2 +0 -0
  289. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-medium-italic.woff +0 -0
  290. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-medium-italic.woff2 +0 -0
  291. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-medium.woff +0 -0
  292. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-medium.woff2 +0 -0
  293. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-regular-italic.woff +0 -0
  294. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-regular-italic.woff2 +0 -0
  295. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-regular.woff +0 -0
  296. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-regular.woff2 +0 -0
  297. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-semibold-italic.woff +0 -0
  298. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-semibold-italic.woff2 +0 -0
  299. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-semibold.woff +0 -0
  300. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-semibold.woff2 +0 -0
  301. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans.css +89 -0
  302. package/dist/gcds-ext-map/fonts/noto-sans-mono/LICENSE.txt +93 -0
  303. package/dist/gcds-ext-map/fonts/noto-sans-mono/README.md +135 -0
  304. package/dist/gcds-ext-map/fonts/noto-sans-mono/gcds-noto-sans-mono.css +17 -0
  305. package/dist/gcds-ext-map/fonts/noto-sans-mono/gcds-noto-sans-mono.woff +0 -0
  306. package/dist/gcds-ext-map/fonts/noto-sans-mono/gcds-noto-sans-mono.woff2 +0 -0
  307. package/dist/gcds-ext-map/gcds-ext-map.esm.js +1 -0
  308. package/dist/gcds-ext-map/index.esm.js +0 -0
  309. package/dist/gcds-ext-map/leaflet-src.esm.js +14419 -0
  310. package/dist/gcds-ext-map/p-1b22f774.entry.js +1 -0
  311. package/dist/gcds-ext-map/p-29b4ba34.entry.js +1 -0
  312. package/dist/gcds-ext-map/p-2dd09d44.entry.js +1 -0
  313. package/dist/gcds-ext-map/p-3fef47e5.entry.js +1 -0
  314. package/dist/gcds-ext-map/p-4e324a1d.entry.js +1 -0
  315. package/dist/gcds-ext-map/p-4f4a6873.entry.js +1 -0
  316. package/dist/gcds-ext-map/p-9cc5ad37.entry.js +1 -0
  317. package/dist/gcds-ext-map/p-9edfea7d.entry.js +1 -0
  318. package/dist/gcds-ext-map/p-B4YLD_Og.js +1 -0
  319. package/dist/gcds-ext-map/p-B8Id5Ptd.js +1 -0
  320. package/dist/gcds-ext-map/p-BUsJ7i5g.js +6 -0
  321. package/dist/gcds-ext-map/p-Bpv_U_Lb.js +1 -0
  322. package/dist/gcds-ext-map/p-CtOuMgy9.js +1 -0
  323. package/dist/gcds-ext-map/p-Dd474fsL.js +1 -0
  324. package/dist/gcds-ext-map/p-EYVT9Efh.js +1 -0
  325. package/dist/gcds-ext-map/p-a67d721d.entry.js +1 -0
  326. package/dist/gcds-ext-map/p-b16e862b.entry.js +1 -0
  327. package/dist/gcds-ext-map/p-b9cbf1e0.entry.js +10 -0
  328. package/dist/gcds-ext-map/p-cab5246e.entry.js +1 -0
  329. package/dist/gcds-ext-map/p-d58d409b.entry.js +1 -0
  330. package/dist/gcds-ext-map/p-dfa21368.entry.js +1 -0
  331. package/dist/gcds-ext-map/p-f211048a.entry.js +1 -0
  332. package/dist/index.cjs.js +1 -0
  333. package/dist/index.js +1 -0
  334. package/dist/types/components/gcds-ext-map/gcds-ext-map.d.ts +125 -0
  335. package/dist/types/components/gcds-ext-map/stories/gcds-ext-map.stories.d.ts +230 -0
  336. package/dist/types/components/map-a/map-a.d.ts +7 -0
  337. package/dist/types/components/map-caption/map-caption.d.ts +7 -0
  338. package/dist/types/components/map-extent/map-extent.d.ts +53 -0
  339. package/dist/types/components/map-feature/map-feature.d.ts +50 -0
  340. package/dist/types/components/map-featurecaption/map-featurecaption.d.ts +3 -0
  341. package/dist/types/components/map-geometry/map-geometry.d.ts +7 -0
  342. package/dist/types/components/map-input/map-input.d.ts +24 -0
  343. package/dist/types/components/map-layer/map-layer.d.ts +85 -0
  344. package/dist/types/components/map-layer/stories/map-layer.stories.d.ts +96 -0
  345. package/dist/types/components/map-link/map-link.d.ts +66 -0
  346. package/dist/types/components/map-meta/map-meta.d.ts +11 -0
  347. package/dist/types/components/map-properties/map-properties.d.ts +3 -0
  348. package/dist/types/components/map-select/map-select.d.ts +13 -0
  349. package/dist/types/components/map-span/map-span.d.ts +5 -0
  350. package/dist/types/components/map-style/map-style.d.ts +17 -0
  351. package/dist/types/components/map-tile/map-tile.d.ts +32 -0
  352. package/dist/types/components/utils/mapml/DOMTokenList.d.ts +30 -0
  353. package/dist/types/components/utils/mapml/elementSupport/inputs/heightInput.d.ts +7 -0
  354. package/dist/types/components/utils/mapml/elementSupport/inputs/hiddenInput.d.ts +7 -0
  355. package/dist/types/components/utils/mapml/elementSupport/inputs/locationInput.d.ts +14 -0
  356. package/dist/types/components/utils/mapml/elementSupport/inputs/widthInput.d.ts +7 -0
  357. package/dist/types/components/utils/mapml/elementSupport/inputs/zoomInput.d.ts +11 -0
  358. package/dist/types/components/utils/mapml/layers/MapLayer.d.ts +69 -0
  359. package/dist/types/components/utils/utils.d.ts +2 -0
  360. package/dist/types/components.d.ts +521 -0
  361. package/dist/types/gcds-ext-map.d.ts +17 -0
  362. package/dist/types/generated/locale.d.ts +146 -0
  363. package/dist/types/index.d.ts +11 -0
  364. package/dist/types/stencil-public-runtime.d.ts +1861 -0
  365. package/loader/cdn.js +1 -0
  366. package/loader/index.cjs.js +1 -0
  367. package/loader/index.d.ts +24 -0
  368. package/loader/index.es2017.js +1 -0
  369. package/loader/index.js +2 -0
  370. package/package.json +87 -0
@@ -0,0 +1,82 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
4
+ <metadata>
5
+ Created by FontForge 20201107 at Thu May 14 17:24:50 2026
6
+ By Unknown
7
+ </metadata>
8
+ <defs>
9
+ <font id="gcds-icons" horiz-adv-x="1024" >
10
+ <font-face
11
+ font-family="gcds-icons"
12
+ font-weight="400"
13
+ font-stretch="normal"
14
+ units-per-em="1024"
15
+ panose-1="0 0 0 0 0 0 0 0 0 0"
16
+ ascent="960"
17
+ descent="-64"
18
+ bbox="77 21 947 875"
19
+ underline-thickness="0"
20
+ underline-position="0"
21
+ unicode-range="U+000D-F021"
22
+ />
23
+ <missing-glyph horiz-adv-x="0"
24
+ />
25
+ <glyph glyph-name=".notdef" horiz-adv-x="0"
26
+ />
27
+ <glyph glyph-name="uni0000"
28
+ />
29
+ <glyph glyph-name="uni000D" unicode="&#xd;"
30
+ />
31
+ <glyph glyph-name="space" unicode=" " horiz-adv-x="512"
32
+ />
33
+ <glyph glyph-name="uniF000" unicode="&#xf000;"
34
+ d="M896 149h-93q-8 -24 -26 -44q-18 -19 -42 -30q-25 -11 -52 -11q-28 0 -52 11t-42 30q-18 20 -27 44h-434v86h434q9 24 27 44q18 19 42 30t52 11q27 0 52 -11q24 -11 42 -30q18 -20 26 -44h93v-86zM640 192q0 -12 6 -22q5 -9 15 -15t22 -6q11 0 21 6t16 15q5 10 5 22
35
+ t-5 22q-6 9 -16 15t-21 6q-12 0 -22 -6t-15 -15q-6 -10 -6 -22zM896 661h-93q-8 -24 -26 -44q-18 -19 -42 -30q-25 -11 -52 -11q-28 0 -52 11t-42 30q-18 20 -27 44h-434v86h434q9 24 27 44q18 19 42 30t52 11q27 0 52 -11q24 -11 42 -30q18 -20 26 -44h93v-86zM640 704
36
+ q0 -12 6 -22q5 -9 15 -15t22 -6q11 0 21 6t16 15q5 10 5 22t-5 22q-6 9 -16 15t-21 6q-12 0 -22 -6t-15 -15q-6 -10 -6 -22zM462 405q-9 -24 -27 -44q-18 -19 -42 -30t-52 -11q-27 0 -52 11q-24 11 -42 30q-18 20 -26 44h-93v86h93q8 24 26 44q18 19 42 30q25 11 52 11
37
+ q28 0 52 -11t42 -30q18 -20 27 -44h434v-86h-434zM299 448q0 -12 5 -22q6 -9 16 -15t21 -6q12 0 22 6t15 15q6 10 6 22t-6 22q-5 9 -15 15t-22 6q-11 0 -21 -6t-16 -15q-5 -10 -5 -22z" />
38
+ <glyph glyph-name="uniF002" unicode="&#xf002;"
39
+ d="M721 318l156 -157l-73 -75l-157 156q-39 -29 -86 -44q-48 -16 -99 -16q-64 0 -123 24q-56 24 -100 68q-43 43 -67 100q-25 58 -25 122t25 122q24 57 67 100q44 44 100 68q59 24 123 24t122 -24q56 -24 100 -68q44 -43 67 -100q25 -58 25 -122q0 -49 -15 -95
40
+ q-14 -45 -40 -83zM462 705q-43 0 -82 -16q-37 -16 -66 -45t-45 -66q-17 -39 -17 -82t17 -82q16 -37 45 -66t66 -45q39 -16 82 -16q42 0 81 16q38 16 67 45t45 66q16 39 16 82t-16 82q-16 37 -45 66t-67 45q-39 16 -81 16z" />
41
+ <glyph glyph-name="uniF003" unicode="&#xf003;"
42
+ d="M171 405h512v-85h-512v85zM171 576h341v-85h-341v85zM171 747h170v-86h-170v86zM171 235h682v-86h-682v86z" />
43
+ <glyph glyph-name="uniF005" unicode="&#xf005;"
44
+ d="M597 128h-170v214l-299 426h768l-299 -426v-214zM732 683h-440l220 -315z" />
45
+ <glyph glyph-name="uniF011" unicode="&#xf011;"
46
+ d="M467 21v591l-104 -103l-64 64l213 213l213 -213l-64 -64l-104 103v-591h-90z" />
47
+ <glyph glyph-name="uniF012" unicode="&#xf012;"
48
+ d="M341 785l215 -214l-64 -64l-104 104v-590h-91v590l-105 -104l-64 64zM532 304l104 -105v590h91v-590l105 105l64 -65l-214 -214l-214 214z" />
49
+ <glyph glyph-name="uniF013" unicode="&#xf013;"
50
+ d="M557 789v-591l104 104l64 -64l-213 -213l-213 213l64 64l104 -104v591h90z" />
51
+ <glyph glyph-name="uniF014" unicode="&#xf014;"
52
+ d="M555 277h-86v-85h86v85zM555 576h-86v-213h86v213zM77 64l435 768l435 -768h-870z" />
53
+ <glyph glyph-name="uniF016" unicode="&#xf016;"
54
+ d="M355 787l74 -277q-21 -17 -46 -26q-26 -10 -54 -10h-12q-6 1 -11 2q32 -80 93 -141q61 -62 141 -94q-1 7 -1 12q-1 6 -1 11q0 28 10 55q9 25 27 46l276 -74q1 -6 2 -13v-14q0 -43 -21 -79t-57 -57t-79 -21q-107 0 -205 41q-94 40 -167 112q-72 73 -112 167
55
+ q-41 98 -41 205q0 43 21 79t57 57t79 21h14q7 -1 13 -2z" />
56
+ <glyph glyph-name="uniF017" unicode="&#xf017;"
57
+ d="M555 491h-86v-256h86v256zM469 661v-85h86v85h-86zM512 21q-86 0 -166 34q-76 32 -135 92q-59 59 -92 135q-34 80 -34 166t34 166q33 76 92 135t135 92q80 34 166 34t166 -34q76 -32 135 -92q60 -59 92 -135q34 -80 34 -166t-34 -166q-32 -76 -92 -135q-59 -59 -135 -92
58
+ q-80 -34 -166 -34z" />
59
+ <glyph glyph-name="uniF018" unicode="&#xf018;"
60
+ d="M213 149h512v299h86v-384h-683v683h384v-86h-299v-512zM751 747h-154v85h299v-299h-85v154l-354 -354l-60 60z" />
61
+ <glyph glyph-name="uniF019" unicode="&#xf019;"
62
+ d="M555 320h-86v-85h86v85zM469 661v-256h86v256h-86zM512 21q-86 0 -166 34q-76 33 -135 92q-60 59 -92 135q-34 80 -34 166t34 166q32 76 92 135q59 59 135 92q80 34 166 34t166 -34q76 -32 135 -92q59 -59 92 -135q34 -80 34 -166t-34 -166q-32 -76 -92 -135
63
+ q-59 -60 -135 -92q-80 -34 -166 -34z" />
64
+ <glyph glyph-name="uniF01A" unicode="&#xf01a;"
65
+ d="M171 661l341 -170l341 170v43h-682v-43zM171 576v-384h682v384l-341 -171zM85 107v682h854v-682h-854z" />
66
+ <glyph glyph-name="uniF01B" unicode="&#xf01b;"
67
+ d="M269 478l60 60l140 -141v350h86v-350l140 141l60 -60l-243 -243zM171 320v-128h682v128h86v-213h-854v213h86z" />
68
+ <glyph glyph-name="uniF01C" unicode="&#xf01c;"
69
+ d="M452 448l-269 277l60 64l269 -277l269 277l60 -64l-269 -277l269 -277l-60 -64l-269 277l-269 -277l-60 64z" />
70
+ <glyph glyph-name="uniF01D" unicode="&#xf01d;"
71
+ d="M512 523l-277 -278l-64 64l341 342l341 -342l-64 -64z" />
72
+ <glyph glyph-name="uniF01E" unicode="&#xf01e;"
73
+ d="M585 448l-278 277l64 64l342 -341l-342 -341l-64 64z" />
74
+ <glyph glyph-name="uniF01F" unicode="&#xf01f;"
75
+ d="M437 448l278 -277l-64 -64l-342 341l342 341l64 -64z" />
76
+ <glyph glyph-name="uniF020" unicode="&#xf020;"
77
+ d="M512 375l277 278l64 -64l-341 -342l-341 342l64 64z" />
78
+ <glyph glyph-name="uniF021" unicode="&#xf021;"
79
+ d="M435 397l-77 77l-59 -60l136 -137l282 282l-60 60zM512 21q-86 0 -166 34q-76 33 -135 92q-60 59 -92 135q-34 80 -34 166t34 166q32 76 92 135q59 59 135 92q80 34 166 34t166 -34q76 -32 135 -92q59 -59 92 -135q34 -80 34 -166t-34 -166q-32 -76 -92 -135
80
+ q-59 -60 -135 -92q-80 -34 -166 -34z" />
81
+ </font>
82
+ </defs></svg>
@@ -0,0 +1,48 @@
1
+ Copyright (c) 2010-2014, Łukasz Dziedzic (dziedzic@typoland.com),
2
+ with Reserved Font Name Lato.
3
+
4
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
5
+ This license is copied below, and is also available with a FAQ at:
6
+ http://scripts.sil.org/OFL
7
+
8
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
9
+ This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
10
+
11
+ -----------------------------------------------------------
12
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
13
+ -----------------------------------------------------------
14
+
15
+ PREAMBLE
16
+ The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
19
+
20
+ DEFINITIONS
21
+ "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
22
+
23
+ "Reserved Font Name" refers to any names specified as such after the copyright statement(s).
24
+
25
+ "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
26
+
27
+ "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
28
+
29
+ "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
30
+
31
+ PERMISSION & CONDITIONS
32
+ Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
33
+
34
+ 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
35
+
36
+ 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
37
+
38
+ 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
39
+
40
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
41
+
42
+ 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
43
+
44
+ TERMINATION
45
+ This license becomes null and void if any of the above conditions are not met.
46
+
47
+ DISCLAIMER
48
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,195 @@
1
+ ([Français](#polices-de-système-de-design-gc--lato))
2
+
3
+ # GC Design System Fonts - Lato
4
+
5
+ GC Design System headings use the open-source font `Lato`.
6
+
7
+ ## Installation
8
+
9
+ ### Install `Lato` font with CDN
10
+
11
+ #### Add the code
12
+
13
+ Use the latest version of GC Design System Fonts - Lato. Pinned versions provide stability and predictability because the code will remain consistent and won't change unexpectedly, which can be crucial for maintaining the stability of an application. However, it requires manual updating of the CDN links whenever a newer version of GC Design System Fonts - Lato is released.
14
+
15
+ To use the `Lato` font in your project, place the following code in your CSS or include the [gcds-lato.css](https://github.com/cds-snc/gcds-fonts/blob/main/fonts/lato/gcds-lato.css) file in your project. Replace `<version-number>` with the latest version number to receive corresponding updates.
16
+
17
+ ```css
18
+ <!-- GC Design System Fonts - Lato -->
19
+ @font-face {
20
+ font-family: "Lato";
21
+ src: url("https://cdn.design-system.canada.ca/@gcds-core/fonts@<version-number>/fonts/lato/gcds-lato.woff2")
22
+ format("woff2"), url("https://cdn.design-system.canada.ca/@gcds-core/fonts@<version-number>/fonts/lato/gcds-lato.woff")
23
+ format("woff");
24
+ font-weight: 700;
25
+ font-style: normal;
26
+ }
27
+
28
+ @font-face {
29
+ font-family: "Lato";
30
+ src: url("https://cdn.design-system.canada.ca/@gcds-core/fonts@<version-number>/fonts/lato/gcds-lato-italic.woff2")
31
+ format("woff2"), url("https://cdn.design-system.canada.ca/@gcds-core/fonts@<version-number>/fonts/lato/gcds-lato-italic.woff")
32
+ format("woff");
33
+ font-weight: 700;
34
+ font-style: italic;
35
+ }
36
+
37
+ /* Set "Lato" + fallback as the heading font */
38
+ h1,
39
+ h2,
40
+ h3,
41
+ h4,
42
+ h5,
43
+ h6 {
44
+ font-family: "Lato", sans-serif;
45
+ font-weight: 700;
46
+ }
47
+ ```
48
+
49
+ #### Automatic updates using `@latest`
50
+
51
+ Use the `@latest` version of GC Design System Fonts - Lato to receive automatic updates whenever a new version is released. **While it removes the need to manually update the CDN links, it adds the risk of introducing breaking changes to the codebase as new versions are automatically applied**.
52
+
53
+ ### Install `Lato` font with npm
54
+
55
+ Navigate to the root folder of your project and run:
56
+
57
+ ```js
58
+ npm install @gcds-core/fonts
59
+ ```
60
+
61
+ Place the following code in your CSS and replace `path/to/node_modules` with the location where you've added the node modules:
62
+
63
+ ```css
64
+ <!-- GC Design System Fonts - Lato -->
65
+ @font-face {
66
+ font-family: "Lato";
67
+ src: url("path/to/node_modules/@gcds-core/fonts/fonts/lato/gcds-lato.woff2")
68
+ format("woff2"), url("path/to/node_modules/@gcds-core/fonts/fonts/lato/gcds-lato.woff")
69
+ format("woff");
70
+ font-weight: 700;
71
+ font-style: normal;
72
+ }
73
+
74
+ @font-face {
75
+ font-family: "Lato";
76
+ src: url("path/to/node_modules/@gcds-core/fonts/fonts/lato/gcds-lato-italic.woff2")
77
+ format("woff2"), url("path/to/node_modules/@gcds-core/fonts/fonts/lato/gcds-lato-italic.woff")
78
+ format("woff");
79
+ font-weight: 700;
80
+ font-style: italic;
81
+ }
82
+
83
+ /* Set "Lato" + fallback as the heading font */
84
+ h1,
85
+ h2,
86
+ h3,
87
+ h4,
88
+ h5,
89
+ h6 {
90
+ font-family: "Lato", sans-serif;
91
+ font-weight: 700;
92
+ }
93
+ ```
94
+
95
+ ## Example
96
+
97
+ Open the [`Lato` example]() to see a list of all heading levels using the `Lato` font. You can find the code for the `Lato` example page in the [examples folder](https://github.com/cds-snc/gcds-fonts/tree/main/examples/lato).
98
+
99
+ ---
100
+
101
+ # Polices de Système de design GC — Lato
102
+
103
+ Les titres de Système de design GC utilisent la police à source ouverte `Lato`.
104
+
105
+ ## Installation
106
+
107
+ ### Installer la police `Lato` avec le CDN
108
+
109
+ #### Ajoutez le code
110
+
111
+ Utilisez la version la plus récente de Polices de Système de design GC — Lato. Les versions épinglées offrent stabilité et prévisibilité parce que le code ne changera pas de manière inattendue, ce qui peut être crucial pour maintenir la stabilité d'une application. Toutefois, il faut mettre à jour manuellement les liens CDN chaque fois qu'une version plus récente de Polices de Système de design GC — Lato est publiée.
112
+
113
+ Pour utiliser la police `Lato` dans votre projet, placez le code suivant dans votre CSS ou incluez le fichier [gcds-lato.css](https://github.com/cds-snc/gcds-fonts/blob/main/fonts/lato/gcds-lato.css) dans votre projet. Remplacez `<version-number>` par le numéro de version le plus récent pour recevoir les mises à jour correspondantes.
114
+
115
+ ```css
116
+ <!-- Polices de Système de design GC — Lato -->
117
+ @font-face {
118
+ font-family: "Lato";
119
+ src: url("https://cdn.design-system.canada.ca/@gcds-core/fonts@<version-number>/fonts/lato/gcds-lato.woff2")
120
+ format("woff2"), url("https://cdn.design-system.canada.ca/@gcds-core/fonts@<version-number>/fonts/lato/gcds-lato.woff")
121
+ format("woff");
122
+ font-weight: 700;
123
+ font-style: normal;
124
+ }
125
+
126
+ @font-face {
127
+ font-family: "Lato";
128
+ src: url("https://cdn.design-system.canada.ca/@gcds-core/fonts@<version-number>/fonts/lato/gcds-lato-italic.woff2")
129
+ format("woff2"), url("https://cdn.design-system.canada.ca/@gcds-core/fonts@<version-number>/fonts/lato/gcds-lato-italic.woff")
130
+ format("woff");
131
+ font-weight: 700;
132
+ font-style: italic;
133
+ }
134
+
135
+ /* Set "Lato" + fallback as the heading font */
136
+ h1,
137
+ h2,
138
+ h3,
139
+ h4,
140
+ h5,
141
+ h6 {
142
+ font-family: "Lato", sans-serif;
143
+ font-weight: 700;
144
+ }
145
+ ```
146
+
147
+ #### Mises à jour automatiques grâce à `@latest`
148
+
149
+ Utilisez la version `@latest` de Polices de Système de design GC — Lato pour recevoir des mises à jour automatiques chaque fois qu'une nouvelle version est publiée. **Bien que cette approche vous évite la mise à jour manuelle des liens CDN, elle court le risque d'introduire des modifications qui entraînent une rupture de compatibilité avec le code base à mesure que les nouvelles versions sont automatiquement appliquées**.
150
+
151
+ ### Installer la police `Lato` avec npm
152
+
153
+ Naviguez jusqu'au dossier racine de votre projet et exécutez :
154
+
155
+ ```js
156
+ npm install @gcds-core/fonts
157
+ ```
158
+
159
+ Placez le code suivant dans votre CSS et remplacez `path/to/node_modules` par l'emplacement où vous avez ajouté les modules de Node :
160
+
161
+ ```css
162
+ <!-- Polices de Système de design GC — Lato -->
163
+ @font-face {
164
+ font-family: "Lato";
165
+ src: url("path/to/node_modules/@gcds-core/fonts/fonts/lato/gcds-lato.woff2")
166
+ format("woff2"), url("path/to/node_modules/@gcds-core/fonts/fonts/lato/gcds-lato.woff")
167
+ format("woff");
168
+ font-weight: 700;
169
+ font-style: normal;
170
+ }
171
+
172
+ @font-face {
173
+ font-family: "Lato";
174
+ src: url("path/to/node_modules/@gcds-core/fonts/fonts/lato/gcds-lato-italic.woff2")
175
+ format("woff2"), url("path/to/node_modules/@gcds-core/fonts/fonts/lato/gcds-lato-italic.woff")
176
+ format("woff");
177
+ font-weight: 700;
178
+ font-style: italic;
179
+ }
180
+
181
+ /* Set "Lato" + fallback as the heading font */
182
+ h1,
183
+ h2,
184
+ h3,
185
+ h4,
186
+ h5,
187
+ h6 {
188
+ font-family: "Lato", sans-serif;
189
+ font-weight: 700;
190
+ }
191
+ ```
192
+
193
+ ## Exemple
194
+
195
+ Ouvrez l'[exemple `Lato`]() pour afficher la liste de tous les niveaux de titre utilisant la police `Lato`. Vous trouverez le code accompagnant l'exemple `Lato` dans le dossier [exemples](https://github.com/cds-snc/gcds-fonts/tree/main/examples/lato).
@@ -0,0 +1,30 @@
1
+ /*
2
+ Replace path/to/file with the correct path to
3
+ the gcds-lato font files in your project
4
+ */
5
+ @font-face {
6
+ font-family: "Lato";
7
+ src: url("path/to/file/gcds-lato.woff2") format("woff2"),
8
+ url("path/to/file/gcds-lato.woff") format("woff");
9
+ font-weight: 700;
10
+ font-style: normal;
11
+ }
12
+
13
+ @font-face {
14
+ font-family: "Lato";
15
+ src: url("path/to/file/gcds-lato-italic.woff2") format("woff2"),
16
+ url("path/to/file/gcds-lato-italic.woff") format("woff");
17
+ font-weight: 700;
18
+ font-style: italic;
19
+ }
20
+
21
+ /* Set "Lato" + fallback as the heading font */
22
+ h1,
23
+ h2,
24
+ h3,
25
+ h4,
26
+ h5,
27
+ h6 {
28
+ font-family: "Lato", sans-serif;
29
+ font-weight: 700;
30
+ }
@@ -0,0 +1,43 @@
1
+ Copyright 2012 Google Inc. All Rights Reserved.
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
5
+
6
+ -----------------------------------------------------------
7
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
8
+ -----------------------------------------------------------
9
+
10
+ PREAMBLE
11
+ The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
12
+
13
+ The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
14
+
15
+ DEFINITIONS
16
+ "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
17
+
18
+ "Reserved Font Name" refers to any names specified as such after the copyright statement(s).
19
+
20
+ "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
21
+
22
+ "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
23
+
24
+ "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
25
+
26
+ PERMISSION & CONDITIONS
27
+ Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
28
+
29
+ 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
30
+
31
+ 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
32
+
33
+ 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
34
+
35
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
36
+
37
+ 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
38
+
39
+ TERMINATION
40
+ This license becomes null and void if any of the above conditions are not met.
41
+
42
+ DISCLAIMER
43
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.