@0001-labs/design-system-1 0.3.0-alpha.27 → 0.3.0

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 (777) hide show
  1. package/DS1/0-face/button-label.ts +28 -0
  2. package/DS1/0-face/calendar.ts +6 -4
  3. package/DS1/0-face/carousel.ts +70 -0
  4. package/DS1/0-face/constraint-panel.ts +422 -0
  5. package/DS1/0-face/constraint-site.ts +200 -0
  6. package/DS1/0-face/constraints.ts +281 -0
  7. package/DS1/0-face/copy-text.ts +1 -1
  8. package/DS1/0-face/cut-fade.ts +312 -0
  9. package/DS1/0-face/define.ts +30 -2
  10. package/DS1/0-face/face-correction.ts +96 -0
  11. package/DS1/0-face/failures.ts +32 -0
  12. package/DS1/0-face/feedback-overlays.ts +5 -3
  13. package/DS1/0-face/feedback.ts +3 -0
  14. package/DS1/0-face/focus-vision.swift +31 -0
  15. package/DS1/0-face/focus.ts +181 -0
  16. package/DS1/0-face/google-face-metrics.json +102 -0
  17. package/DS1/0-face/grid.ts +61 -4
  18. package/DS1/0-face/i18n.ts +36 -18
  19. package/DS1/0-face/layout-inspector.ts +124 -98
  20. package/DS1/0-face/preference-options.ts +4 -0
  21. package/DS1/0-face/scaling.ts +21 -3
  22. package/DS1/0-face/shape.ts +43 -0
  23. package/DS1/0-face/text-contrast.ts +164 -0
  24. package/DS1/0-face/theme-bootstrap.js +43 -0
  25. package/DS1/0-face/toast-queue.ts +7 -1
  26. package/DS1/0-face/translations/da.json +10 -1
  27. package/DS1/0-face/translations/de.json +10 -1
  28. package/DS1/0-face/translations/en.json +10 -1
  29. package/DS1/0-face/translations/es.json +10 -1
  30. package/DS1/0-face/translations/fi.json +10 -1
  31. package/DS1/0-face/translations/fr.json +10 -1
  32. package/DS1/0-face/translations/is.json +10 -1
  33. package/DS1/0-face/translations/it.json +10 -1
  34. package/DS1/0-face/translations/ja.json +10 -1
  35. package/DS1/0-face/translations/ko.json +10 -1
  36. package/DS1/0-face/translations/nb.json +10 -1
  37. package/DS1/0-face/translations/pt-BR.json +10 -1
  38. package/DS1/0-face/translations/pt.json +10 -1
  39. package/DS1/0-face/translations/sv.json +10 -1
  40. package/DS1/0-face/translations/zh.json +10 -1
  41. package/DS1/0-face/word-wrap.ts +113 -0
  42. package/DS1/1-root/card.css +47 -20
  43. package/DS1/1-root/carousel.css +7 -0
  44. package/DS1/1-root/cjk.css +1 -1
  45. package/DS1/1-root/component-tokens.css +3 -2
  46. package/DS1/1-root/context.css +44 -6
  47. package/DS1/1-root/controls.css +99 -8
  48. package/DS1/1-root/document.css +9 -1
  49. package/DS1/1-root/empty.css +46 -5
  50. package/DS1/1-root/figures.css +50 -3
  51. package/DS1/1-root/fonts.css +1 -1
  52. package/DS1/1-root/footer.css +147 -16
  53. package/DS1/1-root/foundation.ts +60 -0
  54. package/DS1/1-root/guide.css +35 -0
  55. package/DS1/1-root/header.css +30 -9
  56. package/DS1/1-root/library-tokens.ts +1 -2
  57. package/DS1/1-root/material.css +67 -0
  58. package/DS1/1-root/notice.css +10 -2
  59. package/DS1/1-root/one.css +14 -7
  60. package/DS1/1-root/palette.ts +3 -3
  61. package/DS1/1-root/progress.css +9 -1
  62. package/DS1/1-root/row.css +68 -2
  63. package/DS1/1-root/table.css +47 -4
  64. package/DS1/1-root/text.css +26 -0
  65. package/DS1/2-core/button-split.ts +10 -5
  66. package/DS1/2-core/chart/chart.css +71 -2
  67. package/DS1/2-core/chart/grid-chart.ts +2 -1
  68. package/DS1/2-core/ds-activity.ts +32 -0
  69. package/DS1/2-core/ds-app-chrome.ts +1 -0
  70. package/DS1/2-core/ds-avatar.ts +35 -6
  71. package/DS1/2-core/ds-badge.ts +8 -1
  72. package/DS1/2-core/ds-button.ts +7 -1
  73. package/DS1/2-core/ds-chart.ts +184 -49
  74. package/DS1/2-core/ds-cycle.ts +27 -186
  75. package/DS1/2-core/ds-device-bezel.ts +1 -0
  76. package/DS1/2-core/ds-empty.ts +6 -4
  77. package/DS1/2-core/ds-input.ts +23 -3
  78. package/DS1/2-core/ds-message.ts +22 -0
  79. package/DS1/2-core/ds-number.ts +349 -0
  80. package/DS1/2-core/ds-progress.ts +3 -0
  81. package/DS1/2-core/ds-radio.ts +3 -0
  82. package/DS1/2-core/ds-stat.ts +3 -0
  83. package/DS1/2-core/ds-switch.ts +5 -1
  84. package/DS1/2-core/ds-tag.ts +9 -2
  85. package/DS1/2-core/ds-text.ts +7 -0
  86. package/DS1/2-core/ds-token.ts +3 -0
  87. package/DS1/2-core/ds-tooltip.ts +17 -2
  88. package/DS1/2-core/ds-window.ts +1 -0
  89. package/DS1/2-core/generated/ds-icon-map.ts +47 -5
  90. package/DS1/2-core/generated/icons-extra.ts +24 -3
  91. package/DS1/2-core/generated/icons-immediate.ts +3 -3
  92. package/DS1/2-core/number-expression.ts +64 -0
  93. package/DS1/2-core/styles/ds-activity.css +16 -0
  94. package/DS1/2-core/styles/ds-badge.css +4 -1
  95. package/DS1/2-core/styles/ds-button-host.css +45 -12
  96. package/DS1/2-core/styles/ds-button-split.css +8 -0
  97. package/DS1/2-core/styles/ds-button.css +92 -19
  98. package/DS1/2-core/styles/ds-card.css +6 -0
  99. package/DS1/2-core/styles/ds-checkbox.css +20 -8
  100. package/DS1/2-core/styles/ds-image.css +2 -1
  101. package/DS1/2-core/styles/ds-input.css +37 -4
  102. package/DS1/2-core/styles/ds-number.css +127 -0
  103. package/DS1/2-core/styles/ds-radio.css +4 -1
  104. package/DS1/2-core/styles/ds-switch.css +34 -4
  105. package/DS1/2-core/styles/ds-tag.css +32 -5
  106. package/DS1/2-core/styles/ds-text.css +13 -4
  107. package/DS1/2-core/styles/ds-token.css +4 -1
  108. package/DS1/2-core/styles/ds-tooltip.css +13 -7
  109. package/DS1/3-unit/calendar-base.ts +5 -2
  110. package/DS1/3-unit/ds-calendar.ts +711 -37
  111. package/DS1/3-unit/ds-carousel.ts +13 -1
  112. package/DS1/3-unit/ds-context.ts +40 -2
  113. package/DS1/3-unit/ds-form.ts +45 -10
  114. package/DS1/3-unit/ds-list.ts +31 -3
  115. package/DS1/3-unit/ds-matrix.ts +3 -0
  116. package/DS1/3-unit/ds-menu.ts +9 -5
  117. package/DS1/3-unit/ds-row.ts +17 -2
  118. package/DS1/3-unit/ds-select.ts +1 -1
  119. package/DS1/3-unit/ds-sidebar.ts +18 -3
  120. package/DS1/3-unit/ds-table-of-contents.ts +166 -0
  121. package/DS1/3-unit/ds-tabs.ts +40 -2
  122. package/DS1/3-unit/styles/ds-calendar.css +356 -42
  123. package/DS1/3-unit/styles/ds-context.css +38 -0
  124. package/DS1/3-unit/styles/ds-list.css +26 -1
  125. package/DS1/3-unit/styles/ds-matrix.css +4 -1
  126. package/DS1/3-unit/styles/ds-row.css +39 -0
  127. package/DS1/3-unit/styles/ds-select.css +22 -12
  128. package/DS1/3-unit/styles/ds-sidebar.css +16 -2
  129. package/DS1/3-unit/styles/ds-table-of-contents.css +40 -0
  130. package/DS1/3-unit/styles/ds-tabs.css +95 -0
  131. package/DS1/4-page/ds-document.ts +3 -0
  132. package/DS1/4-page/ds-footer.ts +93 -18
  133. package/DS1/4-page/ds-header.ts +5 -1
  134. package/DS1/4-page/ds-overlay.ts +8 -3
  135. package/DS1/4-page/ds-page.ts +22 -1
  136. package/DS1/4-page/email.ts +7 -4
  137. package/DS1/4-page/styles/ds-container.css +0 -1
  138. package/DS1/4-page/styles/ds-overlay.css +7 -0
  139. package/DS1/4-page/styles/ds-page.css +10 -0
  140. package/DS1/5-visual-kit/app-chrome.ts +129 -0
  141. package/DS1/5-visual-kit/bezels.ts +394 -0
  142. package/DS1/5-visual-kit/browser-icons.LICENSE +53 -0
  143. package/DS1/5-visual-kit/browser-icons.ts +47 -0
  144. package/DS1/5-visual-kit/browser-styles.ts +53 -0
  145. package/DS1/5-visual-kit/device-bezel.ts +55 -0
  146. package/DS1/5-visual-kit/instagram-frame.ts +15 -0
  147. package/DS1/5-visual-kit/instagram.ts +41 -0
  148. package/DS1/5-visual-kit/mobile-chrome.ts +25 -0
  149. package/DS1/5-visual-kit/native-icon-paths.ts +145 -0
  150. package/DS1/5-visual-kit/window.ts +22 -0
  151. package/DS1/components.ts +1 -0
  152. package/DS1/index.ts +14 -1
  153. package/DS1/react/choice.ts +4 -2
  154. package/DS1/react/context.ts +11 -6
  155. package/DS1/react/empty.ts +2 -2
  156. package/DS1/react/footer.ts +5 -5
  157. package/DS1/react/header.ts +1 -1
  158. package/DS1/react/message.ts +4 -2
  159. package/DS1/react/number.ts +53 -0
  160. package/DS1/react/sidebar.ts +4 -2
  161. package/DS1/react/table-of-contents.ts +28 -0
  162. package/DS1/x-flag/LICENSE.md +26 -0
  163. package/DS1/x-flag/ac.svg +1 -0
  164. package/DS1/x-flag/ad.svg +1 -0
  165. package/DS1/x-flag/ae.svg +1 -0
  166. package/DS1/x-flag/af.svg +1 -0
  167. package/DS1/x-flag/ag.svg +1 -0
  168. package/DS1/x-flag/ai.svg +1 -0
  169. package/DS1/x-flag/al.svg +1 -0
  170. package/DS1/x-flag/am.svg +1 -0
  171. package/DS1/x-flag/ao.svg +1 -0
  172. package/DS1/x-flag/aq.svg +1 -0
  173. package/DS1/x-flag/ar.svg +1 -0
  174. package/DS1/x-flag/as.svg +1 -0
  175. package/DS1/x-flag/at.svg +1 -0
  176. package/DS1/x-flag/au.svg +1 -0
  177. package/DS1/x-flag/aw.svg +1 -0
  178. package/DS1/x-flag/ax.svg +1 -0
  179. package/DS1/x-flag/az.svg +1 -0
  180. package/DS1/x-flag/ba.svg +1 -0
  181. package/DS1/x-flag/bb.svg +1 -0
  182. package/DS1/x-flag/bd.svg +1 -0
  183. package/DS1/x-flag/be.svg +1 -0
  184. package/DS1/x-flag/bf.svg +1 -0
  185. package/DS1/x-flag/bg.svg +1 -0
  186. package/DS1/x-flag/bh.svg +1 -0
  187. package/DS1/x-flag/bi.svg +1 -0
  188. package/DS1/x-flag/bj.svg +1 -0
  189. package/DS1/x-flag/bl.svg +1 -0
  190. package/DS1/x-flag/bm.svg +1 -0
  191. package/DS1/x-flag/bn.svg +1 -0
  192. package/DS1/x-flag/bo.svg +1 -0
  193. package/DS1/x-flag/bq-bo.svg +1 -0
  194. package/DS1/x-flag/bq-sa.svg +1 -0
  195. package/DS1/x-flag/bq-se.svg +1 -0
  196. package/DS1/x-flag/bq.svg +1 -0
  197. package/DS1/x-flag/br.svg +1 -0
  198. package/DS1/x-flag/bs.svg +1 -0
  199. package/DS1/x-flag/bt.svg +1 -0
  200. package/DS1/x-flag/bv.svg +1 -0
  201. package/DS1/x-flag/bw.svg +1 -0
  202. package/DS1/x-flag/by.svg +1 -0
  203. package/DS1/x-flag/bz.svg +1 -0
  204. package/DS1/x-flag/ca.svg +1 -0
  205. package/DS1/x-flag/cc.svg +1 -0
  206. package/DS1/x-flag/cd.svg +1 -0
  207. package/DS1/x-flag/cf.svg +1 -0
  208. package/DS1/x-flag/cg.svg +1 -0
  209. package/DS1/x-flag/ch.svg +1 -0
  210. package/DS1/x-flag/ci.svg +1 -0
  211. package/DS1/x-flag/ck.svg +1 -0
  212. package/DS1/x-flag/cl.svg +1 -0
  213. package/DS1/x-flag/cm.svg +1 -0
  214. package/DS1/x-flag/cn.svg +1 -0
  215. package/DS1/x-flag/co.svg +1 -0
  216. package/DS1/x-flag/cr.svg +1 -0
  217. package/DS1/x-flag/cu.svg +1 -0
  218. package/DS1/x-flag/cv.svg +1 -0
  219. package/DS1/x-flag/cw.svg +1 -0
  220. package/DS1/x-flag/cx.svg +1 -0
  221. package/DS1/x-flag/cy.svg +1 -0
  222. package/DS1/x-flag/cz.svg +1 -0
  223. package/DS1/x-flag/de.svg +1 -0
  224. package/DS1/x-flag/dj.svg +1 -0
  225. package/DS1/x-flag/dk.svg +1 -0
  226. package/DS1/x-flag/dm.svg +1 -0
  227. package/DS1/x-flag/do.svg +1 -0
  228. package/DS1/x-flag/dz.svg +1 -0
  229. package/DS1/x-flag/ec.svg +1 -0
  230. package/DS1/x-flag/ee.svg +1 -0
  231. package/DS1/x-flag/eg.svg +1 -0
  232. package/DS1/x-flag/eh.svg +1 -0
  233. package/DS1/x-flag/er.svg +1 -0
  234. package/DS1/x-flag/es-ct.svg +1 -0
  235. package/DS1/x-flag/es.svg +1 -0
  236. package/DS1/x-flag/et.svg +1 -0
  237. package/DS1/x-flag/eu.svg +1 -0
  238. package/DS1/x-flag/fi.svg +1 -0
  239. package/DS1/x-flag/fj.svg +1 -0
  240. package/DS1/x-flag/fk.svg +1 -0
  241. package/DS1/x-flag/fm.svg +1 -0
  242. package/DS1/x-flag/fo.svg +1 -0
  243. package/DS1/x-flag/fr.svg +1 -0
  244. package/DS1/x-flag/ga.svg +1 -0
  245. package/DS1/x-flag/gb-eng.svg +1 -0
  246. package/DS1/x-flag/gb-nir.svg +1 -0
  247. package/DS1/x-flag/gb-sct.svg +1 -0
  248. package/DS1/x-flag/gb-wls.svg +1 -0
  249. package/DS1/x-flag/gb.svg +1 -0
  250. package/DS1/x-flag/gd.svg +1 -0
  251. package/DS1/x-flag/ge.svg +1 -0
  252. package/DS1/x-flag/gf.svg +1 -0
  253. package/DS1/x-flag/gg.svg +1 -0
  254. package/DS1/x-flag/gh.svg +1 -0
  255. package/DS1/x-flag/gi.svg +1 -0
  256. package/DS1/x-flag/gl.svg +1 -0
  257. package/DS1/x-flag/gm.svg +1 -0
  258. package/DS1/x-flag/gn.svg +1 -0
  259. package/DS1/x-flag/gp.svg +1 -0
  260. package/DS1/x-flag/gq.svg +1 -0
  261. package/DS1/x-flag/gr.svg +1 -0
  262. package/DS1/x-flag/gs.svg +1 -0
  263. package/DS1/x-flag/gt.svg +1 -0
  264. package/DS1/x-flag/gu.svg +1 -0
  265. package/DS1/x-flag/gw.svg +1 -0
  266. package/DS1/x-flag/gy.svg +1 -0
  267. package/DS1/x-flag/hk.svg +1 -0
  268. package/DS1/x-flag/hm.svg +1 -0
  269. package/DS1/x-flag/hn.svg +1 -0
  270. package/DS1/x-flag/hr.svg +1 -0
  271. package/DS1/x-flag/ht.svg +1 -0
  272. package/DS1/x-flag/hu.svg +1 -0
  273. package/DS1/x-flag/ic.svg +1 -0
  274. package/DS1/x-flag/id.svg +1 -0
  275. package/DS1/x-flag/ie.svg +1 -0
  276. package/DS1/x-flag/il.svg +1 -0
  277. package/DS1/x-flag/im.svg +1 -0
  278. package/DS1/x-flag/in.svg +1 -0
  279. package/DS1/x-flag/io.svg +1 -0
  280. package/DS1/x-flag/iq.svg +1 -0
  281. package/DS1/x-flag/ir.svg +1 -0
  282. package/DS1/x-flag/is.svg +1 -0
  283. package/DS1/x-flag/it.svg +1 -0
  284. package/DS1/x-flag/je.svg +1 -0
  285. package/DS1/x-flag/jm.svg +1 -0
  286. package/DS1/x-flag/jo.svg +1 -0
  287. package/DS1/x-flag/jp.svg +1 -0
  288. package/DS1/x-flag/ke.svg +1 -0
  289. package/DS1/x-flag/kg.svg +1 -0
  290. package/DS1/x-flag/kh.svg +1 -0
  291. package/DS1/x-flag/ki.svg +1 -0
  292. package/DS1/x-flag/km.svg +1 -0
  293. package/DS1/x-flag/kn.svg +1 -0
  294. package/DS1/x-flag/kp.svg +1 -0
  295. package/DS1/x-flag/kr.svg +1 -0
  296. package/DS1/x-flag/kw.svg +1 -0
  297. package/DS1/x-flag/ky.svg +1 -0
  298. package/DS1/x-flag/kz.svg +1 -0
  299. package/DS1/x-flag/la.svg +1 -0
  300. package/DS1/x-flag/lb.svg +1 -0
  301. package/DS1/x-flag/lc.svg +1 -0
  302. package/DS1/x-flag/li.svg +1 -0
  303. package/DS1/x-flag/lk.svg +1 -0
  304. package/DS1/x-flag/lr.svg +1 -0
  305. package/DS1/x-flag/ls.svg +1 -0
  306. package/DS1/x-flag/lt.svg +1 -0
  307. package/DS1/x-flag/lu.svg +1 -0
  308. package/DS1/x-flag/lv.svg +1 -0
  309. package/DS1/x-flag/ly.svg +1 -0
  310. package/DS1/x-flag/ma.svg +1 -0
  311. package/DS1/x-flag/mc.svg +1 -0
  312. package/DS1/x-flag/md.svg +1 -0
  313. package/DS1/x-flag/me.svg +1 -0
  314. package/DS1/x-flag/mf.svg +1 -0
  315. package/DS1/x-flag/mg.svg +1 -0
  316. package/DS1/x-flag/mh.svg +1 -0
  317. package/DS1/x-flag/mk.svg +1 -0
  318. package/DS1/x-flag/ml.svg +1 -0
  319. package/DS1/x-flag/mm.svg +1 -0
  320. package/DS1/x-flag/mn.svg +1 -0
  321. package/DS1/x-flag/mo.svg +1 -0
  322. package/DS1/x-flag/mp.svg +1 -0
  323. package/DS1/x-flag/mq.svg +1 -0
  324. package/DS1/x-flag/mr.svg +1 -0
  325. package/DS1/x-flag/ms.svg +1 -0
  326. package/DS1/x-flag/mt.svg +1 -0
  327. package/DS1/x-flag/mu.svg +1 -0
  328. package/DS1/x-flag/mv.svg +1 -0
  329. package/DS1/x-flag/mw.svg +1 -0
  330. package/DS1/x-flag/mx.svg +1 -0
  331. package/DS1/x-flag/my.svg +1 -0
  332. package/DS1/x-flag/mz.svg +1 -0
  333. package/DS1/x-flag/na.svg +1 -0
  334. package/DS1/x-flag/nc.svg +1 -0
  335. package/DS1/x-flag/ne.svg +1 -0
  336. package/DS1/x-flag/nf.svg +1 -0
  337. package/DS1/x-flag/ng.svg +1 -0
  338. package/DS1/x-flag/ni.svg +1 -0
  339. package/DS1/x-flag/nl.svg +1 -0
  340. package/DS1/x-flag/no.svg +1 -0
  341. package/DS1/x-flag/np.svg +1 -0
  342. package/DS1/x-flag/nr.svg +1 -0
  343. package/DS1/x-flag/nu.svg +1 -0
  344. package/DS1/x-flag/nz.svg +1 -0
  345. package/DS1/x-flag/om.svg +1 -0
  346. package/DS1/x-flag/pa.svg +1 -0
  347. package/DS1/x-flag/pe.svg +1 -0
  348. package/DS1/x-flag/pf.svg +1 -0
  349. package/DS1/x-flag/pg.svg +1 -0
  350. package/DS1/x-flag/ph.svg +1 -0
  351. package/DS1/x-flag/pk.svg +1 -0
  352. package/DS1/x-flag/pl.svg +1 -0
  353. package/DS1/x-flag/pm.svg +1 -0
  354. package/DS1/x-flag/pn.svg +1 -0
  355. package/DS1/x-flag/pr.svg +1 -0
  356. package/DS1/x-flag/ps.svg +1 -0
  357. package/DS1/x-flag/pt.svg +1 -0
  358. package/DS1/x-flag/pw.svg +1 -0
  359. package/DS1/x-flag/py.svg +1 -0
  360. package/DS1/x-flag/qa.svg +1 -0
  361. package/DS1/x-flag/re.svg +1 -0
  362. package/DS1/x-flag/ro.svg +1 -0
  363. package/DS1/x-flag/rs.svg +1 -0
  364. package/DS1/x-flag/ru.svg +1 -0
  365. package/DS1/x-flag/rw.svg +1 -0
  366. package/DS1/x-flag/sa.svg +1 -0
  367. package/DS1/x-flag/sb.svg +1 -0
  368. package/DS1/x-flag/sc.svg +1 -0
  369. package/DS1/x-flag/sd.svg +1 -0
  370. package/DS1/x-flag/se.svg +1 -0
  371. package/DS1/x-flag/sg.svg +1 -0
  372. package/DS1/x-flag/sh.svg +1 -0
  373. package/DS1/x-flag/si.svg +1 -0
  374. package/DS1/x-flag/sj.svg +1 -0
  375. package/DS1/x-flag/sk.svg +1 -0
  376. package/DS1/x-flag/sl.svg +1 -0
  377. package/DS1/x-flag/sm.svg +1 -0
  378. package/DS1/x-flag/sn.svg +1 -0
  379. package/DS1/x-flag/so.svg +1 -0
  380. package/DS1/x-flag/sr.svg +1 -0
  381. package/DS1/x-flag/ss.svg +1 -0
  382. package/DS1/x-flag/st.svg +1 -0
  383. package/DS1/x-flag/sv.svg +1 -0
  384. package/DS1/x-flag/sx.svg +1 -0
  385. package/DS1/x-flag/sy.svg +1 -0
  386. package/DS1/x-flag/sz.svg +1 -0
  387. package/DS1/x-flag/ta.svg +1 -0
  388. package/DS1/x-flag/tc.svg +1 -0
  389. package/DS1/x-flag/td.svg +1 -0
  390. package/DS1/x-flag/tf.svg +1 -0
  391. package/DS1/x-flag/tg.svg +1 -0
  392. package/DS1/x-flag/th.svg +1 -0
  393. package/DS1/x-flag/tj.svg +1 -0
  394. package/DS1/x-flag/tk.svg +1 -0
  395. package/DS1/x-flag/tl.svg +1 -0
  396. package/DS1/x-flag/tm.svg +1 -0
  397. package/DS1/x-flag/tn.svg +1 -0
  398. package/DS1/x-flag/to.svg +1 -0
  399. package/DS1/x-flag/tr.svg +1 -0
  400. package/DS1/x-flag/tt.svg +1 -0
  401. package/DS1/x-flag/tv.svg +1 -0
  402. package/DS1/x-flag/tw.svg +1 -0
  403. package/DS1/x-flag/tz.svg +1 -0
  404. package/DS1/x-flag/ua.svg +1 -0
  405. package/DS1/x-flag/ug.svg +1 -0
  406. package/DS1/x-flag/um.svg +1 -0
  407. package/DS1/x-flag/us.svg +1 -0
  408. package/DS1/x-flag/uy.svg +1 -0
  409. package/DS1/x-flag/uz.svg +1 -0
  410. package/DS1/x-flag/va.svg +1 -0
  411. package/DS1/x-flag/vc.svg +1 -0
  412. package/DS1/x-flag/ve.svg +1 -0
  413. package/DS1/x-flag/vg.svg +1 -0
  414. package/DS1/x-flag/vi.svg +1 -0
  415. package/DS1/x-flag/vn.svg +1 -0
  416. package/DS1/x-flag/vu.svg +1 -0
  417. package/DS1/x-flag/wf.svg +1 -0
  418. package/DS1/x-flag/ws.svg +1 -0
  419. package/DS1/x-flag/xk.svg +1 -0
  420. package/DS1/x-flag/ye.svg +1 -0
  421. package/DS1/x-flag/yt.svg +1 -0
  422. package/DS1/x-flag/za.svg +1 -0
  423. package/DS1/x-flag/zm.svg +1 -0
  424. package/DS1/x-flag/zw.svg +1 -0
  425. package/DS1/x-icon/android.svg +9 -0
  426. package/DS1/x-icon/arrange-check.svg +1 -1
  427. package/DS1/x-icon/arrange-page.svg +1 -1
  428. package/DS1/x-icon/chrome.svg +7 -0
  429. package/DS1/x-icon/edge-brand.svg +6 -0
  430. package/DS1/x-icon/firefox.svg +4 -0
  431. package/DS1/x-icon/health.svg +3 -0
  432. package/DS1/x-icon/left.svg +2 -3
  433. package/DS1/x-icon/linux.svg +1 -0
  434. package/DS1/x-icon/material.svg +1 -0
  435. package/DS1/x-icon/milestone-planned.svg +3 -0
  436. package/DS1/x-icon/milestone.svg +3 -0
  437. package/DS1/x-icon/more.svg +1 -5
  438. package/DS1/x-icon/network.svg +3 -0
  439. package/DS1/x-icon/opera.svg +4 -0
  440. package/DS1/x-icon/prediction.svg +3 -0
  441. package/DS1/x-icon/priority-high.svg +3 -0
  442. package/DS1/x-icon/priority-low.svg +3 -0
  443. package/DS1/x-icon/priority-medium.svg +3 -0
  444. package/DS1/x-icon/project.svg +3 -0
  445. package/DS1/x-icon/redo.svg +2 -2
  446. package/DS1/x-icon/repeat-small.svg +3 -0
  447. package/DS1/x-icon/safari.svg +4 -0
  448. package/DS1/x-icon/scaling.svg +3 -0
  449. package/DS1/x-icon/tabs.svg +4 -0
  450. package/DS1/x-icon/windows.svg +5 -0
  451. package/README.md +10 -6
  452. package/dist/0-face/button-label.d.ts +5 -0
  453. package/dist/0-face/button-label.d.ts.map +1 -0
  454. package/dist/0-face/button-label.js +31 -0
  455. package/dist/0-face/calendar.d.ts +1 -1
  456. package/dist/0-face/calendar.d.ts.map +1 -1
  457. package/dist/0-face/calendar.js +6 -3
  458. package/dist/0-face/carousel.d.ts +9 -0
  459. package/dist/0-face/carousel.d.ts.map +1 -1
  460. package/dist/0-face/carousel.js +80 -0
  461. package/dist/0-face/constraint-panel.d.ts +43 -0
  462. package/dist/0-face/constraint-panel.d.ts.map +1 -0
  463. package/dist/0-face/constraint-panel.js +429 -0
  464. package/dist/0-face/constraint-site.d.ts +72 -0
  465. package/dist/0-face/constraint-site.d.ts.map +1 -0
  466. package/dist/0-face/constraint-site.js +185 -0
  467. package/dist/0-face/constraints.d.ts +47 -0
  468. package/dist/0-face/constraints.d.ts.map +1 -0
  469. package/dist/0-face/constraints.js +247 -0
  470. package/dist/0-face/copy-text.js +1 -1
  471. package/dist/0-face/cut-fade.d.ts +112 -0
  472. package/dist/0-face/cut-fade.d.ts.map +1 -0
  473. package/dist/0-face/cut-fade.js +274 -0
  474. package/dist/0-face/define.d.ts.map +1 -1
  475. package/dist/0-face/define.js +24 -3
  476. package/dist/0-face/face-correction.d.ts +51 -0
  477. package/dist/0-face/face-correction.d.ts.map +1 -0
  478. package/dist/0-face/face-correction.js +80 -0
  479. package/dist/0-face/failures.d.ts +16 -0
  480. package/dist/0-face/failures.d.ts.map +1 -0
  481. package/dist/0-face/failures.js +21 -0
  482. package/dist/0-face/feedback-overlays.d.ts.map +1 -1
  483. package/dist/0-face/feedback-overlays.js +5 -3
  484. package/dist/0-face/feedback.d.ts +2 -0
  485. package/dist/0-face/feedback.d.ts.map +1 -1
  486. package/dist/0-face/feedback.js +1 -0
  487. package/dist/0-face/focus.d.ts +71 -0
  488. package/dist/0-face/focus.d.ts.map +1 -0
  489. package/dist/0-face/focus.js +196 -0
  490. package/dist/0-face/grid.d.ts +11 -1
  491. package/dist/0-face/grid.d.ts.map +1 -1
  492. package/dist/0-face/grid.js +90 -4
  493. package/dist/0-face/i18n.d.ts.map +1 -1
  494. package/dist/0-face/i18n.js +38 -16
  495. package/dist/0-face/layout-inspector.d.ts +5 -1
  496. package/dist/0-face/layout-inspector.d.ts.map +1 -1
  497. package/dist/0-face/layout-inspector.js +130 -104
  498. package/dist/0-face/preference-options.d.ts +4 -0
  499. package/dist/0-face/preference-options.d.ts.map +1 -1
  500. package/dist/0-face/scaling.d.ts +8 -1
  501. package/dist/0-face/scaling.d.ts.map +1 -1
  502. package/dist/0-face/scaling.js +19 -2
  503. package/dist/0-face/shape.d.ts +35 -0
  504. package/dist/0-face/shape.d.ts.map +1 -0
  505. package/dist/0-face/shape.js +23 -0
  506. package/dist/0-face/text-contrast.d.ts +22 -0
  507. package/dist/0-face/text-contrast.d.ts.map +1 -0
  508. package/dist/0-face/text-contrast.js +178 -0
  509. package/dist/0-face/theme-bootstrap.js +56 -0
  510. package/dist/0-face/toast-queue.d.ts +4 -0
  511. package/dist/0-face/toast-queue.d.ts.map +1 -1
  512. package/dist/0-face/toast-queue.js +4 -1
  513. package/dist/0-face/translations/da.json +10 -1
  514. package/dist/0-face/translations/de.json +10 -1
  515. package/dist/0-face/translations/en.json +10 -1
  516. package/dist/0-face/translations/es.json +10 -1
  517. package/dist/0-face/translations/fi.json +10 -1
  518. package/dist/0-face/translations/fr.json +10 -1
  519. package/dist/0-face/translations/is.json +10 -1
  520. package/dist/0-face/translations/it.json +10 -1
  521. package/dist/0-face/translations/ja.json +10 -1
  522. package/dist/0-face/translations/ko.json +10 -1
  523. package/dist/0-face/translations/nb.json +10 -1
  524. package/dist/0-face/translations/pt-BR.json +10 -1
  525. package/dist/0-face/translations/pt.json +10 -1
  526. package/dist/0-face/translations/sv.json +10 -1
  527. package/dist/0-face/translations/zh.json +10 -1
  528. package/dist/0-face/word-wrap.d.ts +6 -0
  529. package/dist/0-face/word-wrap.d.ts.map +1 -0
  530. package/dist/0-face/word-wrap.js +119 -0
  531. package/dist/1-root/foundation.d.ts +12 -0
  532. package/dist/1-root/foundation.d.ts.map +1 -0
  533. package/dist/1-root/foundation.js +59 -0
  534. package/dist/1-root/library-tokens.d.ts.map +1 -1
  535. package/dist/1-root/library-tokens.js +1 -2
  536. package/dist/1-root/palette.d.ts +2 -2
  537. package/dist/1-root/palette.d.ts.map +1 -1
  538. package/dist/1-root/palette.js +3 -3
  539. package/dist/2-core/button-split.d.ts +1 -0
  540. package/dist/2-core/button-split.d.ts.map +1 -1
  541. package/dist/2-core/button-split.js +9 -4
  542. package/dist/2-core/chart/grid-chart.d.ts +2 -0
  543. package/dist/2-core/chart/grid-chart.d.ts.map +1 -1
  544. package/dist/2-core/chart/grid-chart.js +2 -1
  545. package/dist/2-core/ds-activity.d.ts +25 -0
  546. package/dist/2-core/ds-activity.d.ts.map +1 -0
  547. package/dist/2-core/ds-activity.js +28 -0
  548. package/dist/2-core/ds-app-chrome.d.ts +2 -0
  549. package/dist/2-core/ds-app-chrome.d.ts.map +1 -0
  550. package/dist/2-core/ds-app-chrome.js +1 -0
  551. package/dist/2-core/ds-avatar.d.ts +7 -0
  552. package/dist/2-core/ds-avatar.d.ts.map +1 -1
  553. package/dist/2-core/ds-avatar.js +41 -6
  554. package/dist/2-core/ds-badge.d.ts +7 -1
  555. package/dist/2-core/ds-badge.d.ts.map +1 -1
  556. package/dist/2-core/ds-badge.js +8 -1
  557. package/dist/2-core/ds-button.d.ts +12 -0
  558. package/dist/2-core/ds-button.d.ts.map +1 -1
  559. package/dist/2-core/ds-button.js +4 -0
  560. package/dist/2-core/ds-chart.d.ts +28 -3
  561. package/dist/2-core/ds-chart.d.ts.map +1 -1
  562. package/dist/2-core/ds-chart.js +110 -130
  563. package/dist/2-core/ds-cycle.d.ts +2 -2
  564. package/dist/2-core/ds-cycle.d.ts.map +1 -1
  565. package/dist/2-core/ds-cycle.js +36 -171
  566. package/dist/2-core/ds-device-bezel.d.ts +2 -0
  567. package/dist/2-core/ds-device-bezel.d.ts.map +1 -0
  568. package/dist/2-core/ds-device-bezel.js +1 -0
  569. package/dist/2-core/ds-empty.d.ts +2 -2
  570. package/dist/2-core/ds-empty.d.ts.map +1 -1
  571. package/dist/2-core/ds-empty.js +6 -4
  572. package/dist/2-core/ds-input.d.ts +7 -0
  573. package/dist/2-core/ds-input.d.ts.map +1 -1
  574. package/dist/2-core/ds-input.js +23 -3
  575. package/dist/2-core/ds-message.d.ts +11 -0
  576. package/dist/2-core/ds-message.d.ts.map +1 -1
  577. package/dist/2-core/ds-message.js +18 -0
  578. package/dist/2-core/ds-number.d.ts +86 -0
  579. package/dist/2-core/ds-number.d.ts.map +1 -0
  580. package/dist/2-core/ds-number.js +326 -0
  581. package/dist/2-core/ds-progress.d.ts +3 -0
  582. package/dist/2-core/ds-progress.d.ts.map +1 -1
  583. package/dist/2-core/ds-progress.js +3 -0
  584. package/dist/2-core/ds-radio.d.ts +3 -0
  585. package/dist/2-core/ds-radio.d.ts.map +1 -1
  586. package/dist/2-core/ds-radio.js +10 -1
  587. package/dist/2-core/ds-stat.d.ts +3 -0
  588. package/dist/2-core/ds-stat.d.ts.map +1 -1
  589. package/dist/2-core/ds-stat.js +3 -0
  590. package/dist/2-core/ds-switch.d.ts +14 -1
  591. package/dist/2-core/ds-switch.d.ts.map +1 -1
  592. package/dist/2-core/ds-switch.js +3 -1
  593. package/dist/2-core/ds-tag.d.ts +8 -1
  594. package/dist/2-core/ds-tag.d.ts.map +1 -1
  595. package/dist/2-core/ds-tag.js +12 -2
  596. package/dist/2-core/ds-text.d.ts +7 -0
  597. package/dist/2-core/ds-text.d.ts.map +1 -1
  598. package/dist/2-core/ds-text.js +7 -0
  599. package/dist/2-core/ds-token.d.ts +3 -0
  600. package/dist/2-core/ds-token.d.ts.map +1 -1
  601. package/dist/2-core/ds-token.js +3 -0
  602. package/dist/2-core/ds-tooltip.d.ts.map +1 -1
  603. package/dist/2-core/ds-tooltip.js +23 -2
  604. package/dist/2-core/ds-window.d.ts +2 -0
  605. package/dist/2-core/ds-window.d.ts.map +1 -0
  606. package/dist/2-core/ds-window.js +1 -0
  607. package/dist/2-core/generated/ds-icon-map.d.ts +27 -6
  608. package/dist/2-core/generated/ds-icon-map.d.ts.map +1 -1
  609. package/dist/2-core/generated/ds-icon-map.js +47 -5
  610. package/dist/2-core/generated/icons-extra.d.ts.map +1 -1
  611. package/dist/2-core/generated/icons-extra.js +24 -3
  612. package/dist/2-core/generated/icons-immediate.d.ts +1 -1
  613. package/dist/2-core/generated/icons-immediate.d.ts.map +1 -1
  614. package/dist/2-core/generated/icons-immediate.js +3 -3
  615. package/dist/2-core/number-expression.d.ts +12 -0
  616. package/dist/2-core/number-expression.d.ts.map +1 -0
  617. package/dist/2-core/number-expression.js +82 -0
  618. package/dist/3-unit/calendar-base.d.ts +5 -0
  619. package/dist/3-unit/calendar-base.d.ts.map +1 -1
  620. package/dist/3-unit/calendar-base.js +3 -2
  621. package/dist/3-unit/ds-calendar.d.ts +197 -4
  622. package/dist/3-unit/ds-calendar.d.ts.map +1 -1
  623. package/dist/3-unit/ds-calendar.js +687 -45
  624. package/dist/3-unit/ds-carousel.d.ts +3 -0
  625. package/dist/3-unit/ds-carousel.d.ts.map +1 -1
  626. package/dist/3-unit/ds-carousel.js +13 -1
  627. package/dist/3-unit/ds-context.d.ts +18 -1
  628. package/dist/3-unit/ds-context.d.ts.map +1 -1
  629. package/dist/3-unit/ds-context.js +37 -1
  630. package/dist/3-unit/ds-form.d.ts +9 -0
  631. package/dist/3-unit/ds-form.d.ts.map +1 -1
  632. package/dist/3-unit/ds-form.js +50 -10
  633. package/dist/3-unit/ds-list.d.ts +20 -1
  634. package/dist/3-unit/ds-list.d.ts.map +1 -1
  635. package/dist/3-unit/ds-list.js +31 -3
  636. package/dist/3-unit/ds-matrix.d.ts +3 -0
  637. package/dist/3-unit/ds-matrix.d.ts.map +1 -1
  638. package/dist/3-unit/ds-matrix.js +3 -0
  639. package/dist/3-unit/ds-menu.d.ts.map +1 -1
  640. package/dist/3-unit/ds-menu.js +17 -1
  641. package/dist/3-unit/ds-row.d.ts +13 -0
  642. package/dist/3-unit/ds-row.d.ts.map +1 -1
  643. package/dist/3-unit/ds-row.js +15 -2
  644. package/dist/3-unit/ds-select.js +1 -1
  645. package/dist/3-unit/ds-sidebar.d.ts +17 -0
  646. package/dist/3-unit/ds-sidebar.d.ts.map +1 -1
  647. package/dist/3-unit/ds-sidebar.js +14 -3
  648. package/dist/3-unit/ds-table-of-contents.d.ts +68 -0
  649. package/dist/3-unit/ds-table-of-contents.d.ts.map +1 -0
  650. package/dist/3-unit/ds-table-of-contents.js +190 -0
  651. package/dist/3-unit/ds-tabs.d.ts +32 -1
  652. package/dist/3-unit/ds-tabs.d.ts.map +1 -1
  653. package/dist/3-unit/ds-tabs.js +39 -1
  654. package/dist/4-page/ds-document.d.ts +3 -0
  655. package/dist/4-page/ds-document.d.ts.map +1 -1
  656. package/dist/4-page/ds-document.js +3 -0
  657. package/dist/4-page/ds-footer.d.ts +47 -7
  658. package/dist/4-page/ds-footer.d.ts.map +1 -1
  659. package/dist/4-page/ds-footer.js +58 -14
  660. package/dist/4-page/ds-header.d.ts +6 -0
  661. package/dist/4-page/ds-header.d.ts.map +1 -1
  662. package/dist/4-page/ds-header.js +4 -1
  663. package/dist/4-page/ds-overlay.d.ts +2 -2
  664. package/dist/4-page/ds-overlay.d.ts.map +1 -1
  665. package/dist/4-page/ds-overlay.js +8 -3
  666. package/dist/4-page/ds-page.d.ts +12 -0
  667. package/dist/4-page/ds-page.d.ts.map +1 -1
  668. package/dist/4-page/ds-page.js +19 -1
  669. package/dist/4-page/email.d.ts +2 -0
  670. package/dist/4-page/email.d.ts.map +1 -1
  671. package/dist/4-page/email.js +5 -4
  672. package/dist/5-visual-kit/app-chrome.d.ts +98 -0
  673. package/dist/5-visual-kit/app-chrome.d.ts.map +1 -0
  674. package/dist/5-visual-kit/app-chrome.js +119 -0
  675. package/dist/5-visual-kit/bezels.d.ts +30 -0
  676. package/dist/5-visual-kit/bezels.d.ts.map +1 -0
  677. package/dist/5-visual-kit/bezels.js +388 -0
  678. package/dist/5-visual-kit/browser-icons.d.ts +5 -0
  679. package/dist/5-visual-kit/browser-icons.d.ts.map +1 -0
  680. package/dist/5-visual-kit/browser-icons.js +51 -0
  681. package/dist/5-visual-kit/browser-styles.d.ts +3 -0
  682. package/dist/5-visual-kit/browser-styles.d.ts.map +1 -0
  683. package/dist/5-visual-kit/browser-styles.js +52 -0
  684. package/dist/5-visual-kit/device-bezel.d.ts +84 -0
  685. package/dist/5-visual-kit/device-bezel.d.ts.map +1 -0
  686. package/dist/5-visual-kit/device-bezel.js +56 -0
  687. package/dist/5-visual-kit/instagram-frame.d.ts +8 -0
  688. package/dist/5-visual-kit/instagram-frame.d.ts.map +1 -0
  689. package/dist/5-visual-kit/instagram-frame.js +13 -0
  690. package/dist/5-visual-kit/instagram.d.ts +18 -0
  691. package/dist/5-visual-kit/instagram.d.ts.map +1 -0
  692. package/dist/5-visual-kit/instagram.js +39 -0
  693. package/dist/5-visual-kit/mobile-chrome.d.ts +4 -0
  694. package/dist/5-visual-kit/mobile-chrome.d.ts.map +1 -0
  695. package/dist/5-visual-kit/mobile-chrome.js +24 -0
  696. package/dist/5-visual-kit/native-icon-paths.d.ts +146 -0
  697. package/dist/5-visual-kit/native-icon-paths.d.ts.map +1 -0
  698. package/dist/5-visual-kit/native-icon-paths.js +145 -0
  699. package/dist/5-visual-kit/window.d.ts +51 -0
  700. package/dist/5-visual-kit/window.d.ts.map +1 -0
  701. package/dist/5-visual-kit/window.js +20 -0
  702. package/dist/browser-icons-BFbS1tIx.js +56 -0
  703. package/dist/browser-icons-BFbS1tIx.js.map +1 -0
  704. package/dist/browser-icons-CT8qU77Z.js +48 -0
  705. package/dist/browser-icons-CT8qU77Z.js.map +1 -0
  706. package/dist/components.d.ts +1 -0
  707. package/dist/components.d.ts.map +1 -1
  708. package/dist/components.js +1 -0
  709. package/dist/design-system-1.bundle.js +5505 -2068
  710. package/dist/design-system-1.bundle.js.map +1 -1
  711. package/dist/design-system-1.bundle.min.js +7026 -4628
  712. package/dist/design-system-1.bundle.min.js.map +1 -1
  713. package/dist/design-system-1.css +1 -1
  714. package/dist/feedback.js +197 -167
  715. package/dist/feedback.js.map +1 -1
  716. package/dist/{icons-extra-CRxxWFjX.js → icons-extra-BMPvmQPI.js} +25 -4
  717. package/dist/icons-extra-BMPvmQPI.js.map +1 -0
  718. package/dist/{icons-extra-H5pqCM_R.js → icons-extra-BfYOw-cR.js} +83 -5
  719. package/dist/icons-extra-BfYOw-cR.js.map +1 -0
  720. package/dist/index.d.ts +12 -1
  721. package/dist/index.d.ts.map +1 -1
  722. package/dist/index.js +11 -1
  723. package/dist/instagram-CKofs55A.js +50 -0
  724. package/dist/instagram-CKofs55A.js.map +1 -0
  725. package/dist/instagram-CcYf5oiM.js +48 -0
  726. package/dist/instagram-CcYf5oiM.js.map +1 -0
  727. package/dist/lit-Ce_uWYM4.js +612 -0
  728. package/dist/lit-Ce_uWYM4.js.map +1 -0
  729. package/dist/lit-DGUVm1Ce.js +557 -0
  730. package/dist/lit-DGUVm1Ce.js.map +1 -0
  731. package/dist/native-icon-paths-CB9evXBM.js +93 -0
  732. package/dist/native-icon-paths-CB9evXBM.js.map +1 -0
  733. package/dist/native-icon-paths-zay-3g_n.js +150 -0
  734. package/dist/native-icon-paths-zay-3g_n.js.map +1 -0
  735. package/dist/react/avatar.d.ts +1 -1
  736. package/dist/react/choice.d.ts +4 -0
  737. package/dist/react/choice.d.ts.map +1 -1
  738. package/dist/react/choice.js +2 -2
  739. package/dist/react/context.d.ts +19 -4
  740. package/dist/react/context.d.ts.map +1 -1
  741. package/dist/react/context.js +4 -4
  742. package/dist/react/empty.d.ts +2 -2
  743. package/dist/react/empty.d.ts.map +1 -1
  744. package/dist/react/empty.js +1 -1
  745. package/dist/react/footer.d.ts +5 -5
  746. package/dist/react/footer.d.ts.map +1 -1
  747. package/dist/react/footer.js +2 -2
  748. package/dist/react/header.d.ts +2 -2
  749. package/dist/react/header.d.ts.map +1 -1
  750. package/dist/react/message.d.ts +4 -0
  751. package/dist/react/message.d.ts.map +1 -1
  752. package/dist/react/message.js +2 -2
  753. package/dist/react/number.d.ts +53 -0
  754. package/dist/react/number.d.ts.map +1 -0
  755. package/dist/react/number.js +25 -0
  756. package/dist/react/page.d.ts +1 -1
  757. package/dist/react/sidebar.d.ts +4 -0
  758. package/dist/react/sidebar.d.ts.map +1 -1
  759. package/dist/react/sidebar.js +2 -2
  760. package/dist/react/table-of-contents.d.ts +19 -0
  761. package/dist/react/table-of-contents.d.ts.map +1 -0
  762. package/dist/react/table-of-contents.js +28 -0
  763. package/dist/{shared-words-CdMDVtXx.js → shared-words-C5cjxMjZ.js} +151 -16
  764. package/dist/shared-words-C5cjxMjZ.js.map +1 -0
  765. package/dist/{shared-words-BtRee8xR.js → shared-words-Cdm7xd-_.js} +163 -28
  766. package/dist/shared-words-Cdm7xd-_.js.map +1 -0
  767. package/package.json +24 -13
  768. package/DS1/1-root/one.semantic.css +0 -735
  769. package/DS1/3-unit/ds-calendar-large.ts +0 -353
  770. package/DS1/3-unit/styles/ds-calendar-large.css +0 -178
  771. package/dist/3-unit/ds-calendar-large.d.ts +0 -142
  772. package/dist/3-unit/ds-calendar-large.d.ts.map +0 -1
  773. package/dist/3-unit/ds-calendar-large.js +0 -308
  774. package/dist/icons-extra-CRxxWFjX.js.map +0 -1
  775. package/dist/icons-extra-H5pqCM_R.js.map +0 -1
  776. package/dist/shared-words-BtRee8xR.js.map +0 -1
  777. package/dist/shared-words-CdMDVtXx.js.map +0 -1
@@ -1,353 +0,0 @@
1
- // ds-calendar-large.ts
2
- // Months side by side as squares: a week to a column, the seven days down it,
3
- // drawn one and a half times the grid (a square of 30px, lines of 1.5px)
4
- // inside a rounded frame that scrolls sideways. A day on which something
5
- // happens is filled with its colour, split into bands when several share it;
6
- // a date is written only on today and where an event starts or ends.
7
-
8
- import { html, nothing, unsafeCSS, type PropertyValues } from "lit";
9
- import { define } from "../0-face/define";
10
- import {
11
- addDays,
12
- addMonths,
13
- dateNumber,
14
- eventsByDay,
15
- monthName,
16
- monthTitle,
17
- startOfMonth,
18
- weekdayNames,
19
- weekdayOf,
20
- type CalendarEvent,
21
- type Day,
22
- } from "../0-face/calendar";
23
- import { CalendarBase, readMonth } from "./calendar-base";
24
- import "../2-core/ds-icon";
25
- import metrics from "../1-root/component-metrics.css?inline";
26
- import controls from "../1-root/controls.css?inline";
27
- import styles from "./styles/ds-calendar-large.css?inline";
28
-
29
- export * from "./calendar-base";
30
-
31
- /** The fill for a day: one colour, or bands side by side. */
32
- function fillOf(events: readonly CalendarEvent[]): string | undefined {
33
- if (!events.length) return undefined;
34
- const colours = [...new Set(events.map(event => event.color || "var(--ds-calendar-event-fill)"))];
35
- if (colours.length === 1) return colours[0];
36
- const share = 100 / colours.length;
37
- return `linear-gradient(90deg, ${colours.map((colour, index) => `${colour} ${index * share}% ${(index + 1) * share}%`).join(", ")})`;
38
- }
39
-
40
- /**
41
- * @element ds-calendar-large
42
- * @prop {string} start - The first month drawn, `YYYY-MM`; the month before
43
- * today's by default.
44
- * @prop {number} months - How many months are drawn: 6 by default.
45
- * @prop {number} scale - How many times the grid it is drawn: 1.5 by default.
46
- * @prop {string} value - The selected day, `YYYY-MM-DD`.
47
- * @prop {boolean} selectable - Pressing a day selects it and fires `change`.
48
- * @prop {boolean} noHeader - Leave out the title and arrows (`no-header`).
49
- * @prop {string} min - The first day a person may choose.
50
- * @prop {string} max - The last day a person may choose.
51
- * @prop {string} weekStart - The week's first day (`week-start`); the
52
- * language's own by default.
53
- * @prop {string} today - The day drawn as today; the reader's own by default.
54
- * @prop {CalendarEvent[]} events - What happens on the days (property only).
55
- *
56
- * @fires day-press - A day was pressed or chosen with Enter or Space; `{ day, events }`.
57
- * @fires change - A person selected a day; `{ value, previous }`.
58
- * @fires navigate - The months drawn moved on or back; `{ month }`, the first one.
59
- *
60
- * @example
61
- * <ds-calendar-large start="2026-09" months="6"></ds-calendar-large>
62
- */
63
- export class CalendarLarge extends CalendarBase {
64
- static properties = {
65
- ...CalendarBase.properties,
66
- start: { type: String, reflect: true },
67
- months: { type: Number },
68
- scale: { type: Number },
69
- activity: { type: Boolean, reflect: true },
70
- noHeader: { type: Boolean, attribute: "no-header", reflect: true },
71
- visible: { state: true },
72
- };
73
-
74
- static styles = [unsafeCSS(metrics), unsafeCSS(controls), unsafeCSS(styles)];
75
-
76
- declare start: string | undefined;
77
- declare months: number | undefined;
78
- declare scale: number | undefined;
79
- declare activity: boolean;
80
- declare noHeader: boolean;
81
- /** The month at the start of the view, named in the title. */
82
- declare visible: Day | undefined;
83
-
84
- protected readonly weeksRun = "columns" as const;
85
-
86
- private byDay = new Map<Day, CalendarEvent[]>();
87
- private placed = false;
88
- private frame = 0;
89
-
90
- constructor() {
91
- super();
92
- this.noHeader = false;
93
- this.activity = false;
94
- }
95
-
96
- /** The first of the first month drawn. */
97
- get firstMonth(): Day {
98
- return readMonth(this.start) ?? addMonths(startOfMonth(this.todayDay), -1);
99
- }
100
-
101
- private get monthCount() {
102
- const count = this.months;
103
- return typeof count === "number" && Number.isFinite(count) ? Math.max(1, Math.min(36, Math.floor(count))) : 6;
104
- }
105
-
106
- /** The first day of each week drawn, from the week holding the first month's first day. */
107
- private get weekStarts(): Day[] {
108
- const first = this.firstMonth;
109
- const from = addDays(first, -((weekdayOf(first) - this.firstDay + 7) % 7));
110
- const last = addDays(addMonths(first, this.monthCount), -1);
111
- const weeks: Day[] = [];
112
- for (let day = from; day <= last; day = addDays(day, 7)) weeks.push(day);
113
- return weeks;
114
- }
115
-
116
- private get lastDay(): Day {
117
- return addDays(this.weekStarts.at(-1)!, 6);
118
- }
119
-
120
- protected eventsOn(day: Day): CalendarEvent[] {
121
- return this.byDay.get(day) ?? [];
122
- }
123
-
124
- protected willUpdate(changed: PropertyValues<this>) {
125
- super.willUpdate(changed);
126
- const scale = typeof this.scale === "number" && Number.isFinite(this.scale) && this.scale > 0 ? this.scale : this.activity ? 1 : 1.5;
127
- this.style.setProperty("--ds-calendar-scale", String(scale));
128
- }
129
-
130
- protected firstUpdated() {
131
- // Open on today's month when it is drawn, else on the first.
132
- const today = this.todayDay;
133
- this.scrollToDay(today >= this.weekStarts[0] && today <= this.lastDay ? startOfMonth(today) : this.firstMonth, false);
134
- this.placed = true;
135
- }
136
-
137
- disconnectedCallback() {
138
- cancelAnimationFrame(this.frame);
139
- super.disconnectedCallback();
140
- }
141
-
142
- private get scroller() {
143
- return this.renderRoot.querySelector<HTMLElement>(".scroller");
144
- }
145
-
146
- private columnOf(day: Day): number {
147
- return this.weekStarts.findIndex(start => day >= start && day <= addDays(start, 6));
148
- }
149
-
150
- /** Scrolls the week holding `day` to the start of the view. */
151
- scrollToDay(day: Day, smooth = true) {
152
- const scroller = this.scroller;
153
- const column = this.columnOf(day);
154
- if (!scroller || column < 0) return;
155
- const cell = scroller.querySelector<HTMLElement>(".cell")?.getBoundingClientRect().width ?? 30;
156
- const reduce = matchMedia?.("(prefers-reduced-motion: reduce)").matches;
157
- const rtl = getComputedStyle(this).direction === "rtl";
158
- scroller.scrollTo({ left: (rtl ? -1 : 1) * column * cell, behavior: smooth && !reduce ? "smooth" : "auto" });
159
- this.visible = startOfMonth(day);
160
- }
161
-
162
- /** Moves the view a month back or on; past the months drawn, the months move with it. */
163
- private step(by: -1 | 1) {
164
- const target = addMonths(this.visible ?? this.firstMonth, by);
165
- const first = this.firstMonth;
166
- const end = addMonths(first, this.monthCount);
167
- if (target < first || target >= end) {
168
- this.start = addMonths(first, by).slice(0, 7);
169
- this.announceMonth(addMonths(first, by));
170
- void this.updateComplete.then(() => this.scrollToDay(target, false));
171
- return;
172
- }
173
- this.scrollToDay(target);
174
- }
175
-
176
- /** The month before, as the previous arrow does. */
177
- previousMonth() { this.step(-1); }
178
-
179
- /** The month after, as the next arrow does. */
180
- nextMonth() { this.step(1); }
181
-
182
- /** Brings today into view, moving the months drawn when it is outside them. */
183
- showToday() {
184
- const today = this.todayDay;
185
- if (today < this.weekStarts[0] || today > this.lastDay) {
186
- const first = addMonths(startOfMonth(today), -1);
187
- this.start = first.slice(0, 7);
188
- this.announceMonth(first);
189
- void this.updateComplete.then(() => this.scrollToDay(startOfMonth(today), false));
190
- } else {
191
- this.scrollToDay(startOfMonth(today));
192
- }
193
- this.focusDay = today;
194
- }
195
-
196
- private onScroll = () => {
197
- cancelAnimationFrame(this.frame);
198
- this.frame = requestAnimationFrame(() => {
199
- const scroller = this.scroller;
200
- const cell = scroller?.querySelector<HTMLElement>(".cell")?.getBoundingClientRect().width;
201
- if (!scroller || !cell) return;
202
- const column = Math.min(this.weekStarts.length - 1, Math.max(0, Math.round(Math.abs(scroller.scrollLeft) / cell)));
203
- // The month that owns most of the first week in view.
204
- this.visible = startOfMonth(addDays(this.weekStarts[column], 3));
205
- });
206
- };
207
-
208
- private get tabDay(): Day {
209
- const first = this.weekStarts[0], last = this.lastDay;
210
- for (const day of [this.focusDay, this.chosen.start, this.todayDay]) if (day && day >= first && day <= last) return day;
211
- return this.firstMonth;
212
- }
213
-
214
- private onKeyDown = (event: KeyboardEvent) => {
215
- const cell = (event.target as HTMLElement).closest<HTMLElement>("[data-day]");
216
- if (!cell) return;
217
- const day = cell.dataset.day as Day;
218
- if (event.key === "Enter" || event.key === " ") {
219
- event.preventDefault();
220
- this.press(day);
221
- return;
222
- }
223
- const target = this.keyTarget(event, day);
224
- if (!target) return;
225
- event.preventDefault();
226
- if (target < this.weekStarts[0] || target > this.lastDay) {
227
- const by = target < this.weekStarts[0] ? -1 : 1;
228
- const first = addMonths(this.firstMonth, by);
229
- this.start = first.slice(0, 7);
230
- this.announceMonth(first);
231
- }
232
- void this.focusCell(target);
233
- };
234
-
235
- private onClick = (event: MouseEvent) => {
236
- const cell = (event.composedPath() as HTMLElement[]).find(node => node instanceof HTMLElement && node.dataset?.day);
237
- if (!cell) return;
238
- const day = cell.dataset.day as Day;
239
- this.focusDay = day;
240
- this.press(day);
241
- };
242
-
243
- private renderHeader() {
244
- if (this.noHeader) return nothing;
245
- const arrow = (which: "previous" | "next") => html`<button
246
- class="ds-button ds-button--icon nav"
247
- part=${which}
248
- type="button"
249
- aria-label=${this.words(which === "previous" ? "Previous month" : "Next month")}
250
- @click=${() => (which === "previous" ? this.previousMonth() : this.nextMonth())}
251
- ><ds-icon type=${which === "previous" ? "chevron-left" : "chevron-right"} size="large" aria-hidden="true"></ds-icon></button>`;
252
- return html`<div class="header" part="header">
253
- <span class="title" aria-live="polite">${monthTitle(this.visible ?? this.firstMonth)}</span>
254
- <span class="controls">
255
- ${arrow("previous")}
256
- <button class="ds-button ds-button--secondary" part="today" type="button" @click=${() => this.showToday()}>${this.words("Today")}</button>
257
- ${arrow("next")}
258
- </span>
259
- </div>`;
260
- }
261
-
262
- render() {
263
- const weeks = this.weekStarts;
264
- const first = weeks[0], last = this.lastDay;
265
- this.byDay = eventsByDay(this.events ?? [], first, last);
266
- const short = weekdayNames(this.firstDay, "short");
267
- const narrow = weekdayNames(this.firstDay, "narrow");
268
- const long = weekdayNames(this.firstDay, "long");
269
- const today = this.todayDay;
270
- const tab = this.tabDay;
271
- // Each month's name stands over the week holding its first day.
272
- const labels: { column: number; span: number; day: Day }[] = [];
273
- for (let month = this.firstMonth, index = 0; index < this.monthCount; index++, month = addMonths(month, 1)) {
274
- const column = this.columnOf(month);
275
- const next = this.columnOf(addMonths(month, 1));
276
- labels.push({ column, span: Math.max(1, (next < 0 ? weeks.length : next) - column), day: month });
277
- }
278
- const ends = new Set<Day>();
279
- for (const event of this.events ?? []) {
280
- ends.add(event.start);
281
- if (event.end) ends.add(event.end);
282
- }
283
- return html`<div class="calendar" part="calendar" style=${`--ds-calendar-weeks: ${weeks.length}`}>
284
- ${this.renderHeader()}
285
- <div class="body">
286
- <div class="rail" part="weekdays" aria-hidden="true">
287
- ${short.map((name, row) => html`<span class="weekday" data-narrow=${narrow[row]}>${row % 2 === 1 ? name : ""}</span>`)}
288
- </div>
289
- <div class="scroller" part="scroller" @scroll=${this.onScroll}>
290
- <div class="months" aria-hidden="true">
291
- ${labels.map(({ column, span, day }) => html`<span class="month" style=${`grid-column: ${column + 1} / span ${span}`}>${
292
- day.slice(5, 7) === "01" || day === this.firstMonth ? monthTitle(day, "short") : monthName(day, "short")
293
- }</span>`)}
294
- </div>
295
- <div class="frame" part="frame">
296
- <div
297
- class="grid"
298
- part="grid"
299
- role="grid"
300
- aria-label=${this.nameOr(`${monthTitle(this.firstMonth)} – ${monthTitle(addMonths(this.firstMonth, this.monthCount - 1))}`)}
301
- @keydown=${this.onKeyDown}
302
- @click=${this.onClick}
303
- >
304
- ${short.map((_, row) => html`<div role="row" class="row">
305
- <span role="rowheader" class="hidden">${long[row]}</span>
306
- ${weeks.map((start, column) => {
307
- const day = addDays(start, row);
308
- const events = this.eventsOn(day);
309
- const isToday = day === today;
310
- const { selected, inside } = this.selection(day);
311
- const written = isToday || selected || (events.length > 0 && ends.has(day));
312
- const fill = fillOf(events);
313
- return html`<div
314
- role="gridcell"
315
- class="cell"
316
- part=${["cell", isToday ? "today" : "", selected ? "selected" : "", events.length ? "filled" : ""].filter(Boolean).join(" ")}
317
- data-day=${day}
318
- tabindex=${day === tab ? 0 : -1}
319
- aria-label=${this.cellLabel(day, events)}
320
- title=${this.activity ? this.cellLabel(day, events) : nothing}
321
- aria-selected=${this.selectable ? String(selected || inside) : nothing}
322
- aria-current=${isToday ? "date" : nothing}
323
- aria-disabled=${this.allowed(day) ? nothing : "true"}
324
- ?data-today=${isToday}
325
- ?data-selected=${selected}
326
- ?data-inside=${inside}
327
- ?data-filled=${events.length > 0}
328
- ?data-first-row=${row === 0}
329
- ?data-first-column=${column === 0}
330
- style=${`grid-row: ${row + 1}; grid-column: ${column + 1};${fill ? ` --ds-calendar-cell-fill: ${fill};` : ""}`}
331
- >${written ? html`<span class="date" aria-hidden="true">${dateNumber(day)}</span>` : nothing}</div>`;
332
- })}
333
- </div>`)}
334
- </div>
335
- </div>
336
- </div>
337
- </div>
338
- </div>`;
339
- }
340
-
341
- protected updated(changed: PropertyValues<this>) {
342
- super.updated(changed);
343
- if (this.placed && changed.has("start") && this.visible && !this.focusDay) this.scrollToDay(this.visible, false);
344
- }
345
- }
346
-
347
- define("ds-calendar-large", CalendarLarge);
348
-
349
- declare global {
350
- interface HTMLElementTagNameMap {
351
- "ds-calendar-large": CalendarLarge;
352
- }
353
- }
@@ -1,178 +0,0 @@
1
- /* ds-calendar-large.css
2
- * The grid drawn --ds-calendar-scale times (one and a half by default): a
3
- * cell is a square of 30px, its lines 1.5px, its words the heading size
4
- * times the scale (19.5px). Weeks run in columns and the days down them; the
5
- * frame's corners are four tenths of a cell. Today is a red disc nine tenths
6
- * of a cell across, the selected day an ink square of the same size. */
7
-
8
- :host {
9
- --ds-calendar-cell: calc(var(--ds-unit) * var(--ds-calendar-scale, 1.5));
10
- --ds-calendar-stroke: calc(1px * var(--ds-calendar-scale, 1.5));
11
- --ds-calendar-ink: var(--ds-text-color);
12
- --ds-calendar-event-fill: var(--ds-apple-green);
13
- --ds-calendar-today: var(--ds-red-for-blood);
14
- --ds-calendar-today-ink: var(--ds-white, #fff);
15
- --ds-calendar-mark: calc(var(--ds-calendar-cell) * 0.9);
16
- --ds-calendar-corner: calc(var(--ds-calendar-cell) * 0.4);
17
- --ds-calendar-rail: calc(var(--ds-calendar-cell) * 2);
18
- box-sizing: border-box;
19
- display: block;
20
- min-width: 0;
21
- color: var(--ds-text-color);
22
- font-family: var(--ds-typeface-regular);
23
- font-feature-settings: var(--ds-font-features);
24
- font-size: calc(var(--ds-type-size-heading) * var(--ds-calendar-scale, 1.5));
25
- font-weight: var(--ds-type-weight-default);
26
- line-height: 1;
27
- letter-spacing: var(--ds-type-letterspacing-default);
28
- }
29
- :host([hidden]) { display: none !important; }
30
-
31
- .calendar { min-width: 0; }
32
-
33
- /* The title and the arrows: one cell high, over the months. */
34
- .header {
35
- display: flex;
36
- align-items: flex-end;
37
- gap: calc(4px * var(--ds-sf, 1));
38
- height: var(--ds-calendar-cell);
39
- margin-inline-start: calc(var(--ds-calendar-rail) + var(--ds-unit) / 2);
40
- font-size: var(--ds-type-size-default);
41
- line-height: var(--ds-type-lineheight-default);
42
- }
43
- .title {
44
- flex: 1 1 auto;
45
- min-width: 0;
46
- overflow: hidden;
47
- font-size: calc(var(--ds-type-size-heading) * var(--ds-calendar-scale, 1.5));
48
- line-height: var(--ds-calendar-cell);
49
- text-overflow: ellipsis;
50
- white-space: nowrap;
51
- }
52
- .controls { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 0; }
53
- /* Each arrow is a chevron on its own square, as in a month. */
54
- .nav { flex: 0 0 auto; width: var(--ds-unit); height: var(--ds-control-height); border-radius: var(--ds-radius); color: var(--ds-title-color); }
55
- .nav:hover:not(:disabled) { background: var(--ds-fill); color: var(--ds-text-color); }
56
- :host(:dir(rtl)) .nav > ds-icon { transform: scaleX(-1); }
57
-
58
- .body {
59
- display: grid;
60
- grid-template-columns: var(--ds-calendar-rail) minmax(0, 1fr);
61
- column-gap: calc(var(--ds-unit) / 2);
62
- }
63
-
64
- /* The weekdays down the start, outside the scroll: every other one named. */
65
- .rail {
66
- display: grid;
67
- grid-template-rows: repeat(7, var(--ds-calendar-cell));
68
- padding-block-start: var(--ds-calendar-cell);
69
- color: var(--ds-title-color);
70
- font-size: var(--ds-type-size-default);
71
- line-height: var(--ds-type-lineheight-default);
72
- }
73
- .weekday {
74
- display: flex;
75
- align-items: center;
76
- justify-content: flex-end;
77
- white-space: nowrap;
78
- }
79
-
80
- .scroller {
81
- overflow-x: auto;
82
- overflow-y: hidden;
83
- scrollbar-width: none;
84
- overscroll-behavior-x: contain;
85
- }
86
- .scroller::-webkit-scrollbar { display: none; }
87
-
88
- /* The months over their weeks, one cell high, their names on its foot. */
89
- .months {
90
- display: grid;
91
- grid-template-columns: repeat(var(--ds-calendar-weeks), var(--ds-calendar-cell));
92
- height: var(--ds-calendar-cell);
93
- }
94
- .month {
95
- display: flex;
96
- align-items: flex-end;
97
- min-width: 0;
98
- padding: 0 var(--ds-calendar-stroke) calc(3px * var(--ds-calendar-scale, 1.5));
99
- overflow: hidden;
100
- white-space: nowrap;
101
- }
102
-
103
- /* The frame: a line all round with rounded corners; the cells draw the lines inside. */
104
- .frame {
105
- box-sizing: border-box;
106
- width: max-content;
107
- border: var(--ds-calendar-stroke) solid var(--ds-calendar-ink);
108
- border-radius: var(--ds-calendar-corner);
109
- overflow: hidden;
110
- }
111
- .grid {
112
- display: grid;
113
- grid-template-columns: repeat(var(--ds-calendar-weeks), var(--ds-calendar-cell));
114
- grid-template-rows: repeat(7, var(--ds-calendar-cell));
115
- }
116
- .row { display: contents; }
117
- .hidden {
118
- position: absolute;
119
- width: 1px;
120
- height: 1px;
121
- overflow: hidden;
122
- clip-path: inset(50%);
123
- white-space: nowrap;
124
- }
125
-
126
- .cell {
127
- box-sizing: border-box;
128
- display: flex;
129
- align-items: center;
130
- justify-content: center;
131
- width: var(--ds-calendar-cell);
132
- height: var(--ds-calendar-cell);
133
- border-block-start: var(--ds-calendar-stroke) solid var(--ds-calendar-ink);
134
- border-inline-start: var(--ds-calendar-stroke) solid var(--ds-calendar-ink);
135
- background: var(--ds-calendar-cell-fill, transparent);
136
- font-variant-numeric: tabular-nums;
137
- outline: none;
138
- }
139
- .cell[data-first-row] { border-block-start-width: 0; }
140
- .cell[data-first-column] { border-inline-start-width: 0; }
141
- .cell[data-filled] { color: var(--ds-slate); }
142
- :host([selectable]) .cell:not([aria-disabled="true"]) { cursor: pointer; }
143
- :host([selectable]) .cell:not([aria-disabled="true"], [data-filled]):hover { background: var(--ds-row-fill-hover, var(--ds-fill)); }
144
- .cell:focus-visible { outline: 2px solid var(--ds-focus-ring); outline-offset: -3px; }
145
- .cell[aria-disabled="true"] { color: var(--ds-title-color); }
146
-
147
- .date {
148
- display: inline-flex;
149
- align-items: center;
150
- justify-content: center;
151
- min-width: var(--ds-calendar-mark);
152
- height: var(--ds-calendar-mark);
153
- letter-spacing: 0;
154
- }
155
- .cell[data-today] .date { border-radius: 999px; background: var(--ds-calendar-today); color: var(--ds-calendar-today-ink); }
156
- .cell[data-selected] .date { background: var(--ds-calendar-ink); color: var(--ds-paper); }
157
- .cell[data-inside]:not([data-filled]) { background: color-mix(in srgb, var(--ds-calendar-ink) 12%, var(--ds-paper)); }
158
- .cell[data-today][data-selected] .date { border-radius: 999px; box-shadow: inset 0 0 0 var(--ds-calendar-stroke) var(--ds-calendar-today); }
159
-
160
- /* On a narrow screen the weekdays take one letter and one square. */
161
- @media (max-width: 720px) {
162
- :host { --ds-calendar-rail: var(--ds-unit); }
163
- .rail .weekday:not(:empty) { font-size: 0; }
164
- .rail .weekday:not(:empty)::after { content: attr(data-narrow); font-size: var(--ds-type-size-default); }
165
- }
166
-
167
- /* Activity keeps the day grid, with quiet separated squares and event colours. */
168
- :host([activity]) .frame { border: 0; border-radius: 0; }
169
- :host([activity]) .cell { position: relative; border: 0; background: none; }
170
- :host([activity]) .cell::before {
171
- content: "";
172
- position: absolute;
173
- inset: calc(2px * var(--ds-sf, 1));
174
- border-radius: calc(2px * var(--ds-sf, 1));
175
- background: var(--ds-calendar-cell-fill, var(--ds-fill));
176
- }
177
- :host([activity]) .date { display: none; }
178
- :host([activity]) .cell[data-selected]::before { outline: 1px solid var(--ds-calendar-ink); }
@@ -1,142 +0,0 @@
1
- import { type PropertyValues } from "lit";
2
- import { type CalendarEvent, type Day } from "../0-face/calendar";
3
- import { CalendarBase } from "./calendar-base";
4
- import "../2-core/ds-icon";
5
- export * from "./calendar-base";
6
- /**
7
- * @element ds-calendar-large
8
- * @prop {string} start - The first month drawn, `YYYY-MM`; the month before
9
- * today's by default.
10
- * @prop {number} months - How many months are drawn: 6 by default.
11
- * @prop {number} scale - How many times the grid it is drawn: 1.5 by default.
12
- * @prop {string} value - The selected day, `YYYY-MM-DD`.
13
- * @prop {boolean} selectable - Pressing a day selects it and fires `change`.
14
- * @prop {boolean} noHeader - Leave out the title and arrows (`no-header`).
15
- * @prop {string} min - The first day a person may choose.
16
- * @prop {string} max - The last day a person may choose.
17
- * @prop {string} weekStart - The week's first day (`week-start`); the
18
- * language's own by default.
19
- * @prop {string} today - The day drawn as today; the reader's own by default.
20
- * @prop {CalendarEvent[]} events - What happens on the days (property only).
21
- *
22
- * @fires day-press - A day was pressed or chosen with Enter or Space; `{ day, events }`.
23
- * @fires change - A person selected a day; `{ value, previous }`.
24
- * @fires navigate - The months drawn moved on or back; `{ month }`, the first one.
25
- *
26
- * @example
27
- * <ds-calendar-large start="2026-09" months="6"></ds-calendar-large>
28
- */
29
- export declare class CalendarLarge extends CalendarBase {
30
- static properties: {
31
- start: {
32
- type: StringConstructor;
33
- reflect: boolean;
34
- };
35
- months: {
36
- type: NumberConstructor;
37
- };
38
- scale: {
39
- type: NumberConstructor;
40
- };
41
- activity: {
42
- type: BooleanConstructor;
43
- reflect: boolean;
44
- };
45
- noHeader: {
46
- type: BooleanConstructor;
47
- attribute: string;
48
- reflect: boolean;
49
- };
50
- visible: {
51
- state: boolean;
52
- };
53
- value: {
54
- type: StringConstructor;
55
- reflect: boolean;
56
- };
57
- min: {
58
- type: StringConstructor;
59
- };
60
- max: {
61
- type: StringConstructor;
62
- };
63
- today: {
64
- type: StringConstructor;
65
- };
66
- weekStart: {
67
- type: StringConstructor;
68
- attribute: string;
69
- };
70
- selectable: {
71
- type: BooleanConstructor;
72
- reflect: boolean;
73
- };
74
- label: {
75
- type: StringConstructor;
76
- };
77
- literal: {
78
- type: BooleanConstructor;
79
- reflect: boolean;
80
- };
81
- events: {
82
- attribute: boolean;
83
- };
84
- focusDay: {
85
- state: boolean;
86
- };
87
- hoverDay: {
88
- state: boolean;
89
- };
90
- endPending: {
91
- state: boolean;
92
- };
93
- };
94
- static styles: import("lit").CSSResult[];
95
- start: string | undefined;
96
- months: number | undefined;
97
- scale: number | undefined;
98
- activity: boolean;
99
- noHeader: boolean;
100
- /** The month at the start of the view, named in the title. */
101
- visible: Day | undefined;
102
- protected readonly weeksRun: "columns";
103
- private byDay;
104
- private placed;
105
- private frame;
106
- constructor();
107
- /** The first of the first month drawn. */
108
- get firstMonth(): Day;
109
- private get monthCount();
110
- /** The first day of each week drawn, from the week holding the first month's first day. */
111
- private get weekStarts();
112
- private get lastDay();
113
- protected eventsOn(day: Day): CalendarEvent[];
114
- protected willUpdate(changed: PropertyValues<this>): void;
115
- protected firstUpdated(): void;
116
- disconnectedCallback(): void;
117
- private get scroller();
118
- private columnOf;
119
- /** Scrolls the week holding `day` to the start of the view. */
120
- scrollToDay(day: Day, smooth?: boolean): void;
121
- /** Moves the view a month back or on; past the months drawn, the months move with it. */
122
- private step;
123
- /** The month before, as the previous arrow does. */
124
- previousMonth(): void;
125
- /** The month after, as the next arrow does. */
126
- nextMonth(): void;
127
- /** Brings today into view, moving the months drawn when it is outside them. */
128
- showToday(): void;
129
- private onScroll;
130
- private get tabDay();
131
- private onKeyDown;
132
- private onClick;
133
- private renderHeader;
134
- render(): import("lit").TemplateResult<1>;
135
- protected updated(changed: PropertyValues<this>): void;
136
- }
137
- declare global {
138
- interface HTMLElementTagNameMap {
139
- "ds-calendar-large": CalendarLarge;
140
- }
141
- }
142
- //# sourceMappingURL=ds-calendar-large.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ds-calendar-large.d.ts","sourceRoot":"","sources":["../../DS1/3-unit/ds-calendar-large.ts"],"names":[],"mappings":"AAOA,OAAO,EAA4B,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEpE,OAAO,EAUL,KAAK,aAAa,EAClB,KAAK,GAAG,EACT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAa,MAAM,iBAAiB,CAAC;AAC1D,OAAO,mBAAmB,CAAC;AAK3B,cAAc,iBAAiB,CAAC;AAWhC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,aAAc,SAAQ,YAAY;IAC7C,MAAM,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQf;IAEF,MAAM,CAAC,MAAM,4BAAgE;IAErE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAC1B,8DAA8D;IACtD,OAAO,EAAE,GAAG,GAAG,SAAS,CAAC;IAEjC,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAG,SAAS,CAAU;IAEjD,OAAO,CAAC,KAAK,CAAmC;IAChD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,KAAK,CAAK;;IAQlB,0CAA0C;IAC1C,IAAI,UAAU,IAAI,GAAG,CAEpB;IAED,OAAO,KAAK,UAAU,GAGrB;IAED,2FAA2F;IAC3F,OAAO,KAAK,UAAU,GAOrB;IAED,OAAO,KAAK,OAAO,GAElB;IAED,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,aAAa,EAAE;IAI7C,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC;IAMlD,SAAS,CAAC,YAAY;IAOtB,oBAAoB;IAKpB,OAAO,KAAK,QAAQ,GAEnB;IAED,OAAO,CAAC,QAAQ;IAIhB,+DAA+D;IAC/D,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,UAAO;IAWnC,yFAAyF;IACzF,OAAO,CAAC,IAAI;IAaZ,oDAAoD;IACpD,aAAa;IAEb,+CAA+C;IAC/C,SAAS;IAET,+EAA+E;IAC/E,SAAS;IAaT,OAAO,CAAC,QAAQ,CAUd;IAEF,OAAO,KAAK,MAAM,GAIjB;IAED,OAAO,CAAC,SAAS,CAmBf;IAEF,OAAO,CAAC,OAAO,CAMb;IAEF,OAAO,CAAC,YAAY;IAmBpB,MAAM;IA+EN,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC;CAIhD;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,aAAa,CAAC;KACpC;CACF"}