@lilydesignsystem/svelte-headless 0.1.0 → 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 (157) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/components/AotearoaNationalHealthIndexInput/AotearoaNationalHealthIndexInput.svelte +55 -0
  3. package/dist/components/AotearoaNationalHealthIndexInput/AotearoaNationalHealthIndexInput.svelte.d.ts +10 -0
  4. package/dist/components/AotearoaNationalHealthIndexView/AotearoaNationalHealthIndexView.svelte +40 -0
  5. package/dist/components/AotearoaNationalHealthIndexView/AotearoaNationalHealthIndexView.svelte.d.ts +8 -0
  6. package/dist/components/AreaChart/AreaChart.svelte +42 -3
  7. package/dist/components/AreaChart/AreaChart.svelte.d.ts +4 -0
  8. package/dist/components/ArgentinaCodigoUnicoDeIdentificacionLaboralInput/ArgentinaCodigoUnicoDeIdentificacionLaboralInput.svelte +55 -0
  9. package/dist/components/ArgentinaCodigoUnicoDeIdentificacionLaboralInput/ArgentinaCodigoUnicoDeIdentificacionLaboralInput.svelte.d.ts +10 -0
  10. package/dist/components/ArgentinaCodigoUnicoDeIdentificacionLaboralView/ArgentinaCodigoUnicoDeIdentificacionLaboralView.svelte +40 -0
  11. package/dist/components/ArgentinaCodigoUnicoDeIdentificacionLaboralView/ArgentinaCodigoUnicoDeIdentificacionLaboralView.svelte.d.ts +8 -0
  12. package/dist/components/BarChart/BarChart.svelte +42 -3
  13. package/dist/components/BarChart/BarChart.svelte.d.ts +4 -0
  14. package/dist/components/BharatAadhaarInput/BharatAadhaarInput.svelte +55 -0
  15. package/dist/components/BharatAadhaarInput/BharatAadhaarInput.svelte.d.ts +10 -0
  16. package/dist/components/BharatAadhaarView/BharatAadhaarView.svelte +40 -0
  17. package/dist/components/BharatAadhaarView/BharatAadhaarView.svelte.d.ts +8 -0
  18. package/dist/components/BrasilCartaoNacionalDeSaudeInput/BrasilCartaoNacionalDeSaudeInput.svelte +55 -0
  19. package/dist/components/BrasilCartaoNacionalDeSaudeInput/BrasilCartaoNacionalDeSaudeInput.svelte.d.ts +10 -0
  20. package/dist/components/BrasilCartaoNacionalDeSaudeView/BrasilCartaoNacionalDeSaudeView.svelte +40 -0
  21. package/dist/components/BrasilCartaoNacionalDeSaudeView/BrasilCartaoNacionalDeSaudeView.svelte.d.ts +8 -0
  22. package/dist/components/CalendarDayTable/CalendarDayTable.svelte +71 -0
  23. package/dist/components/CalendarDayTable/CalendarDayTable.svelte.d.ts +13 -0
  24. package/dist/components/CalendarMonthTable/CalendarMonthTable.svelte +71 -0
  25. package/dist/components/CalendarMonthTable/CalendarMonthTable.svelte.d.ts +13 -0
  26. package/dist/components/CalendarWeekTable/CalendarWeekTable.svelte +71 -0
  27. package/dist/components/CalendarWeekTable/CalendarWeekTable.svelte.d.ts +13 -0
  28. package/dist/components/CalendarYearTable/CalendarYearTable.svelte +71 -0
  29. package/dist/components/CalendarYearTable/CalendarYearTable.svelte.d.ts +13 -0
  30. package/dist/components/CanadaSocialInsuranceNumberInput/CanadaSocialInsuranceNumberInput.svelte +55 -0
  31. package/dist/components/CanadaSocialInsuranceNumberInput/CanadaSocialInsuranceNumberInput.svelte.d.ts +10 -0
  32. package/dist/components/CanadaSocialInsuranceNumberView/CanadaSocialInsuranceNumberView.svelte +40 -0
  33. package/dist/components/CanadaSocialInsuranceNumberView/CanadaSocialInsuranceNumberView.svelte.d.ts +8 -0
  34. package/dist/components/ChileRolUnicoNacionalInput/ChileRolUnicoNacionalInput.svelte +55 -0
  35. package/dist/components/ChileRolUnicoNacionalInput/ChileRolUnicoNacionalInput.svelte.d.ts +10 -0
  36. package/dist/components/ChileRolUnicoNacionalView/ChileRolUnicoNacionalView.svelte +40 -0
  37. package/dist/components/ChileRolUnicoNacionalView/ChileRolUnicoNacionalView.svelte.d.ts +8 -0
  38. package/dist/components/ColumnChart/ColumnChart.svelte +42 -3
  39. package/dist/components/ColumnChart/ColumnChart.svelte.d.ts +4 -0
  40. package/dist/components/EmptyState/EmptyState.svelte +47 -0
  41. package/dist/components/EmptyState/EmptyState.svelte.d.ts +11 -0
  42. package/dist/components/FileTree/FileTree.svelte +210 -0
  43. package/dist/components/FileTree/FileTree.svelte.d.ts +11 -0
  44. package/dist/components/GanttTable/GanttTable.svelte +5 -5
  45. package/dist/components/GanttTableTD/GanttTableTD.svelte +2 -2
  46. package/dist/components/GanttTableTH/GanttTableTH.svelte +3 -3
  47. package/dist/components/GanttTableTbody/GanttTableTbody.svelte +5 -5
  48. package/dist/components/GanttTableTbody/GanttTableTbody.svelte.d.ts +1 -1
  49. package/dist/components/GanttTableTfoot/GanttTableTfoot.svelte +5 -5
  50. package/dist/components/GanttTableTfoot/GanttTableTfoot.svelte.d.ts +1 -1
  51. package/dist/components/GanttTableThead/GanttTableThead.svelte +4 -4
  52. package/dist/components/GanttTableThead/GanttTableThead.svelte.d.ts +1 -1
  53. package/dist/components/GanttTableTr/GanttTableTr.svelte +8 -8
  54. package/dist/components/GaugeChart/GaugeChart.svelte +63 -0
  55. package/dist/components/GaugeChart/GaugeChart.svelte.d.ts +13 -0
  56. package/dist/components/HangukJuminDeungnokBeonhoInput/HangukJuminDeungnokBeonhoInput.svelte +55 -0
  57. package/dist/components/HangukJuminDeungnokBeonhoInput/HangukJuminDeungnokBeonhoInput.svelte.d.ts +10 -0
  58. package/dist/components/HangukJuminDeungnokBeonhoView/HangukJuminDeungnokBeonhoView.svelte +40 -0
  59. package/dist/components/HangukJuminDeungnokBeonhoView/HangukJuminDeungnokBeonhoView.svelte.d.ts +8 -0
  60. package/dist/components/HeatmapChart/HeatmapChart.svelte +63 -0
  61. package/dist/components/HeatmapChart/HeatmapChart.svelte.d.ts +13 -0
  62. package/dist/components/IconButton/IconButton.svelte +17 -2
  63. package/dist/components/IconButton/IconButton.svelte.d.ts +5 -1
  64. package/dist/components/IndonesiaNomorIndukKependudukanInput/IndonesiaNomorIndukKependudukanInput.svelte +55 -0
  65. package/dist/components/IndonesiaNomorIndukKependudukanInput/IndonesiaNomorIndukKependudukanInput.svelte.d.ts +10 -0
  66. package/dist/components/IndonesiaNomorIndukKependudukanView/IndonesiaNomorIndukKependudukanView.svelte +40 -0
  67. package/dist/components/IndonesiaNomorIndukKependudukanView/IndonesiaNomorIndukKependudukanView.svelte.d.ts +8 -0
  68. package/dist/components/KbdShortcut/KbdShortcut.svelte +49 -0
  69. package/dist/components/KbdShortcut/KbdShortcut.svelte.d.ts +12 -0
  70. package/dist/components/LineChart/LineChart.svelte +42 -3
  71. package/dist/components/LineChart/LineChart.svelte.d.ts +4 -0
  72. package/dist/components/Listbox/Listbox.svelte +213 -34
  73. package/dist/components/Listbox/Listbox.svelte.d.ts +24 -1
  74. package/dist/components/LuxembourgMatriculeInput/LuxembourgMatriculeInput.svelte +55 -0
  75. package/dist/components/LuxembourgMatriculeInput/LuxembourgMatriculeInput.svelte.d.ts +10 -0
  76. package/dist/components/LuxembourgMatriculeView/LuxembourgMatriculeView.svelte +40 -0
  77. package/dist/components/LuxembourgMatriculeView/LuxembourgMatriculeView.svelte.d.ts +8 -0
  78. package/dist/components/MagyarorszagTajSzamInput/MagyarorszagTajSzamInput.svelte +55 -0
  79. package/dist/components/MagyarorszagTajSzamInput/MagyarorszagTajSzamInput.svelte.d.ts +10 -0
  80. package/dist/components/MagyarorszagTajSzamView/MagyarorszagTajSzamView.svelte +40 -0
  81. package/dist/components/MagyarorszagTajSzamView/MagyarorszagTajSzamView.svelte.d.ts +8 -0
  82. package/dist/components/MexicoClaveUnicaDeRegistroDePoblacionInput/MexicoClaveUnicaDeRegistroDePoblacionInput.svelte +55 -0
  83. package/dist/components/MexicoClaveUnicaDeRegistroDePoblacionInput/MexicoClaveUnicaDeRegistroDePoblacionInput.svelte.d.ts +10 -0
  84. package/dist/components/MexicoClaveUnicaDeRegistroDePoblacionView/MexicoClaveUnicaDeRegistroDePoblacionView.svelte +40 -0
  85. package/dist/components/MexicoClaveUnicaDeRegistroDePoblacionView/MexicoClaveUnicaDeRegistroDePoblacionView.svelte.d.ts +8 -0
  86. package/dist/components/MisrAlRaqmAlQawmiInput/MisrAlRaqmAlQawmiInput.svelte +55 -0
  87. package/dist/components/MisrAlRaqmAlQawmiInput/MisrAlRaqmAlQawmiInput.svelte.d.ts +10 -0
  88. package/dist/components/MisrAlRaqmAlQawmiView/MisrAlRaqmAlQawmiView.svelte +40 -0
  89. package/dist/components/MisrAlRaqmAlQawmiView/MisrAlRaqmAlQawmiView.svelte.d.ts +8 -0
  90. package/dist/components/MultiSelect/MultiSelect.svelte +70 -0
  91. package/dist/components/MultiSelect/MultiSelect.svelte.d.ts +19 -0
  92. package/dist/components/MultiSelectWithExtras/MultiSelectWithExtras.svelte +80 -0
  93. package/dist/components/MultiSelectWithExtras/MultiSelectWithExtras.svelte.d.ts +23 -0
  94. package/dist/components/NihonKojinBangoInput/NihonKojinBangoInput.svelte +55 -0
  95. package/dist/components/NihonKojinBangoInput/NihonKojinBangoInput.svelte.d.ts +10 -0
  96. package/dist/components/NihonKojinBangoView/NihonKojinBangoView.svelte +40 -0
  97. package/dist/components/NihonKojinBangoView/NihonKojinBangoView.svelte.d.ts +8 -0
  98. package/dist/components/OneTimePasswordInput/OneTimePasswordInput.svelte +85 -0
  99. package/dist/components/OneTimePasswordInput/OneTimePasswordInput.svelte.d.ts +22 -0
  100. package/dist/components/OsterreichSozialversicherungsnummerInput/OsterreichSozialversicherungsnummerInput.svelte +55 -0
  101. package/dist/components/OsterreichSozialversicherungsnummerInput/OsterreichSozialversicherungsnummerInput.svelte.d.ts +10 -0
  102. package/dist/components/OsterreichSozialversicherungsnummerView/OsterreichSozialversicherungsnummerView.svelte +40 -0
  103. package/dist/components/OsterreichSozialversicherungsnummerView/OsterreichSozialversicherungsnummerView.svelte.d.ts +8 -0
  104. package/dist/components/PilipinasPhilhealthIdentificationNumberInput/PilipinasPhilhealthIdentificationNumberInput.svelte +55 -0
  105. package/dist/components/PilipinasPhilhealthIdentificationNumberInput/PilipinasPhilhealthIdentificationNumberInput.svelte.d.ts +10 -0
  106. package/dist/components/PilipinasPhilhealthIdentificationNumberView/PilipinasPhilhealthIdentificationNumberView.svelte +40 -0
  107. package/dist/components/PilipinasPhilhealthIdentificationNumberView/PilipinasPhilhealthIdentificationNumberView.svelte.d.ts +8 -0
  108. package/dist/components/PrathetThaiLekPrajamTuaPrachachonInput/PrathetThaiLekPrajamTuaPrachachonInput.svelte +55 -0
  109. package/dist/components/PrathetThaiLekPrajamTuaPrachachonInput/PrathetThaiLekPrajamTuaPrachachonInput.svelte.d.ts +10 -0
  110. package/dist/components/PrathetThaiLekPrajamTuaPrachachonView/PrathetThaiLekPrajamTuaPrachachonView.svelte +40 -0
  111. package/dist/components/PrathetThaiLekPrajamTuaPrachachonView/PrathetThaiLekPrajamTuaPrachachonView.svelte.d.ts +8 -0
  112. package/dist/components/RadarChart/RadarChart.svelte +63 -0
  113. package/dist/components/RadarChart/RadarChart.svelte.d.ts +13 -0
  114. package/dist/components/RossiyaSnilsInput/RossiyaSnilsInput.svelte +55 -0
  115. package/dist/components/RossiyaSnilsInput/RossiyaSnilsInput.svelte.d.ts +10 -0
  116. package/dist/components/RossiyaSnilsView/RossiyaSnilsView.svelte +40 -0
  117. package/dist/components/RossiyaSnilsView/RossiyaSnilsView.svelte.d.ts +8 -0
  118. package/dist/components/SankeyChart/SankeyChart.svelte +63 -0
  119. package/dist/components/SankeyChart/SankeyChart.svelte.d.ts +13 -0
  120. package/dist/components/ScatterChart/ScatterChart.svelte +42 -3
  121. package/dist/components/ScatterChart/ScatterChart.svelte.d.ts +4 -0
  122. package/dist/components/SchweizAhvNummerInput/SchweizAhvNummerInput.svelte +55 -0
  123. package/dist/components/SchweizAhvNummerInput/SchweizAhvNummerInput.svelte.d.ts +10 -0
  124. package/dist/components/SchweizAhvNummerView/SchweizAhvNummerView.svelte +40 -0
  125. package/dist/components/SchweizAhvNummerView/SchweizAhvNummerView.svelte.d.ts +8 -0
  126. package/dist/components/ShowMore/ShowMore.svelte +64 -0
  127. package/dist/components/ShowMore/ShowMore.svelte.d.ts +15 -0
  128. package/dist/components/SingaporeNationalRegistrationIdentityCardInput/SingaporeNationalRegistrationIdentityCardInput.svelte +55 -0
  129. package/dist/components/SingaporeNationalRegistrationIdentityCardInput/SingaporeNationalRegistrationIdentityCardInput.svelte.d.ts +10 -0
  130. package/dist/components/SingaporeNationalRegistrationIdentityCardView/SingaporeNationalRegistrationIdentityCardView.svelte +40 -0
  131. package/dist/components/SingaporeNationalRegistrationIdentityCardView/SingaporeNationalRegistrationIdentityCardView.svelte.d.ts +8 -0
  132. package/dist/components/SouthAfricaIdentityNumberInput/SouthAfricaIdentityNumberInput.svelte +55 -0
  133. package/dist/components/SouthAfricaIdentityNumberInput/SouthAfricaIdentityNumberInput.svelte.d.ts +10 -0
  134. package/dist/components/SouthAfricaIdentityNumberView/SouthAfricaIdentityNumberView.svelte +40 -0
  135. package/dist/components/SouthAfricaIdentityNumberView/SouthAfricaIdentityNumberView.svelte.d.ts +8 -0
  136. package/dist/components/Thinking/Thinking.svelte +58 -0
  137. package/dist/components/Thinking/Thinking.svelte.d.ts +15 -0
  138. package/dist/components/TurkiyeTcKimlikNumarasiInput/TurkiyeTcKimlikNumarasiInput.svelte +55 -0
  139. package/dist/components/TurkiyeTcKimlikNumarasiInput/TurkiyeTcKimlikNumarasiInput.svelte.d.ts +10 -0
  140. package/dist/components/TurkiyeTcKimlikNumarasiView/TurkiyeTcKimlikNumarasiView.svelte +40 -0
  141. package/dist/components/TurkiyeTcKimlikNumarasiView/TurkiyeTcKimlikNumarasiView.svelte.d.ts +8 -0
  142. package/dist/components/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivInput/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivInput.svelte +55 -0
  143. package/dist/components/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivInput/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivInput.svelte.d.ts +10 -0
  144. package/dist/components/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivView/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivView.svelte +40 -0
  145. package/dist/components/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivView/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivView.svelte.d.ts +8 -0
  146. package/dist/components/YisraelTeudatZehutInput/YisraelTeudatZehutInput.svelte +55 -0
  147. package/dist/components/YisraelTeudatZehutInput/YisraelTeudatZehutInput.svelte.d.ts +10 -0
  148. package/dist/components/YisraelTeudatZehutView/YisraelTeudatZehutView.svelte +40 -0
  149. package/dist/components/YisraelTeudatZehutView/YisraelTeudatZehutView.svelte.d.ts +8 -0
  150. package/dist/components/ZhongguoJuminShenfenzhengHaomaInput/ZhongguoJuminShenfenzhengHaomaInput.svelte +55 -0
  151. package/dist/components/ZhongguoJuminShenfenzhengHaomaInput/ZhongguoJuminShenfenzhengHaomaInput.svelte.d.ts +10 -0
  152. package/dist/components/ZhongguoJuminShenfenzhengHaomaView/ZhongguoJuminShenfenzhengHaomaView.svelte +40 -0
  153. package/dist/components/ZhongguoJuminShenfenzhengHaomaView/ZhongguoJuminShenfenzhengHaomaView.svelte.d.ts +8 -0
  154. package/dist/index.d.ts +64 -0
  155. package/dist/index.js +64 -0
  156. package/index.md +1 -1
  157. package/package.json +9 -8
@@ -0,0 +1,40 @@
1
+ <script lang="ts">
2
+ // BrasilCartaoNacionalDeSaudeView component
3
+ //
4
+ // A headless display component for showing Brazil's
5
+ // Cartão Nacional de Saúde (CNS) in a read-only format.
6
+ // Format: Fifteen-digit number issued by Brazil's Sistema Único de Saúde (SUS), grouped as NNN NNNN NNNN NNNN. Numbers starting 1 or 2 are definitive (linked to the national civil registry); numbers starting 7, 8, or 9 are provisional. Both forms are validated with a weighted-sum Modulus-11 check across all 15 digits.
7
+ //
8
+ // Props:
9
+ // className — string, optional. CSS class name.
10
+ // label — string, required. Accessible label for screen readers via aria-label.
11
+ // value — string, default "". The identifier string to display.
12
+ // ...restProps — additional HTML attributes spread onto the <span>.
13
+ //
14
+ // Syntax:
15
+ // <BrasilCartaoNacionalDeSaudeView label="Cartão Nacional de Saúde (CNS)" value={value} />
16
+ //
17
+ // Accessibility:
18
+ // - aria-label provides the accessible name so screen readers announce the purpose
19
+ //
20
+ // References:
21
+ // - https://en.wikipedia.org/wiki/CPF_number
22
+
23
+ let {
24
+ class: className = "",
25
+ label,
26
+ value = "",
27
+ ...restProps
28
+ }: {
29
+ label: string;
30
+ value?: string;
31
+ [key: string]: unknown;
32
+ } = $props();
33
+ </script>
34
+
35
+ <!-- BrasilCartaoNacionalDeSaudeView.svelte -->
36
+ <span
37
+ class={`brasil-cartao-nacional-de-saude-view ${className}`}
38
+ aria-label={label}
39
+ {...restProps}>{value}</span
40
+ >
@@ -0,0 +1,8 @@
1
+ type $$ComponentProps = {
2
+ label: string;
3
+ value?: string;
4
+ [key: string]: unknown;
5
+ };
6
+ declare const BrasilCartaoNacionalDeSaudeView: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type BrasilCartaoNacionalDeSaudeView = ReturnType<typeof BrasilCartaoNacionalDeSaudeView>;
8
+ export default BrasilCartaoNacionalDeSaudeView;
@@ -0,0 +1,71 @@
1
+ <script lang="ts">
2
+ // CalendarDayTable component
3
+ //
4
+ // A calendar grid for a grid of the time slots of one day: one row per slot. A structural wrapper like CalendarTable:
5
+ // a <table> with role="grid" and data-view="day"; the consumer supplies the
6
+ // head, body and rows by reusing the CalendarTable* sub-elements.
7
+ //
8
+ // Props:
9
+ // className — string, optional. CSS class name.
10
+ // label — string, required. Accessible name describing the period shown, e.g. a day (e.g. "Monday 6 January 2025").
11
+ // caption — string, optional. Visible caption text displayed above the table.
12
+ // children — Snippet, required. CalendarTableHead, CalendarTableBody, CalendarTableFoot elements.
13
+ // ...restProps — additional HTML attributes spread onto the <table>.
14
+ //
15
+ // Syntax:
16
+ // <CalendarDayTable label="Monday 6 January 2025">
17
+ // <CalendarTableBody>...</CalendarTableBody>
18
+ // </CalendarDayTable>
19
+ //
20
+ // Keyboard:
21
+ // None built-in — consumer implements grid keyboard navigation
22
+ // (arrow keys for cell movement, Enter/Space for selection).
23
+ //
24
+ // Accessibility:
25
+ // - role="grid" identifies the table as an interactive grid widget
26
+ // - aria-label provides an accessible name describing the period
27
+ // - data-view="day" lets consumer CSS and JS key on the view
28
+ //
29
+ // Internationalization:
30
+ // - label and caption supply all text; locale formatting (Intl) and cell
31
+ // content are the consumer's concern
32
+ //
33
+ // Claude rules:
34
+ // - Headless: no CSS, no styles — consumer provides all styling
35
+ // - Reuse the CalendarTable* sub-elements; there are no CalendarDayTable* sub-elements
36
+ //
37
+ // References:
38
+ // - WAI-ARIA Grid Pattern: https://www.w3.org/WAI/ARIA/apg/patterns/grid/
39
+
40
+ import type { Snippet } from "svelte";
41
+
42
+ let {
43
+ class: className = "",
44
+ label,
45
+ caption = undefined,
46
+ children,
47
+ ...restProps
48
+ }: {
49
+ /** Accessible name describing the period shown. */
50
+ label: string;
51
+ /** Visible caption for the table. */
52
+ caption?: string;
53
+ /** CalendarTableHead, CalendarTableBody, CalendarTableFoot elements. */
54
+ children: Snippet;
55
+ [key: string]: unknown;
56
+ } = $props();
57
+ </script>
58
+
59
+ <!-- CalendarDayTable.svelte -->
60
+ <table
61
+ class={`calendar-day-table ${className}`}
62
+ role="grid"
63
+ aria-label={label}
64
+ data-view="day"
65
+ {...restProps}
66
+ >
67
+ {#if caption}
68
+ <caption>{caption}</caption>
69
+ {/if}
70
+ {@render children?.()}
71
+ </table>
@@ -0,0 +1,13 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** Accessible name describing the period shown. */
4
+ label: string;
5
+ /** Visible caption for the table. */
6
+ caption?: string;
7
+ /** CalendarTableHead, CalendarTableBody, CalendarTableFoot elements. */
8
+ children: Snippet;
9
+ [key: string]: unknown;
10
+ };
11
+ declare const CalendarDayTable: import("svelte").Component<$$ComponentProps, {}, "">;
12
+ type CalendarDayTable = ReturnType<typeof CalendarDayTable>;
13
+ export default CalendarDayTable;
@@ -0,0 +1,71 @@
1
+ <script lang="ts">
2
+ // CalendarMonthTable component
3
+ //
4
+ // A calendar grid for a grid of the days of one month: week rows by seven day columns. A structural wrapper like CalendarTable:
5
+ // a <table> with role="grid" and data-view="month"; the consumer supplies the
6
+ // head, body and rows by reusing the CalendarTable* sub-elements.
7
+ //
8
+ // Props:
9
+ // className — string, optional. CSS class name.
10
+ // label — string, required. Accessible name describing the period shown, e.g. a month (e.g. "January 2025").
11
+ // caption — string, optional. Visible caption text displayed above the table.
12
+ // children — Snippet, required. CalendarTableHead, CalendarTableBody, CalendarTableFoot elements.
13
+ // ...restProps — additional HTML attributes spread onto the <table>.
14
+ //
15
+ // Syntax:
16
+ // <CalendarMonthTable label="January 2025">
17
+ // <CalendarTableBody>...</CalendarTableBody>
18
+ // </CalendarMonthTable>
19
+ //
20
+ // Keyboard:
21
+ // None built-in — consumer implements grid keyboard navigation
22
+ // (arrow keys for cell movement, Enter/Space for selection).
23
+ //
24
+ // Accessibility:
25
+ // - role="grid" identifies the table as an interactive grid widget
26
+ // - aria-label provides an accessible name describing the period
27
+ // - data-view="month" lets consumer CSS and JS key on the view
28
+ //
29
+ // Internationalization:
30
+ // - label and caption supply all text; locale formatting (Intl) and cell
31
+ // content are the consumer's concern
32
+ //
33
+ // Claude rules:
34
+ // - Headless: no CSS, no styles — consumer provides all styling
35
+ // - Reuse the CalendarTable* sub-elements; there are no CalendarMonthTable* sub-elements
36
+ //
37
+ // References:
38
+ // - WAI-ARIA Grid Pattern: https://www.w3.org/WAI/ARIA/apg/patterns/grid/
39
+
40
+ import type { Snippet } from "svelte";
41
+
42
+ let {
43
+ class: className = "",
44
+ label,
45
+ caption = undefined,
46
+ children,
47
+ ...restProps
48
+ }: {
49
+ /** Accessible name describing the period shown. */
50
+ label: string;
51
+ /** Visible caption for the table. */
52
+ caption?: string;
53
+ /** CalendarTableHead, CalendarTableBody, CalendarTableFoot elements. */
54
+ children: Snippet;
55
+ [key: string]: unknown;
56
+ } = $props();
57
+ </script>
58
+
59
+ <!-- CalendarMonthTable.svelte -->
60
+ <table
61
+ class={`calendar-month-table ${className}`}
62
+ role="grid"
63
+ aria-label={label}
64
+ data-view="month"
65
+ {...restProps}
66
+ >
67
+ {#if caption}
68
+ <caption>{caption}</caption>
69
+ {/if}
70
+ {@render children?.()}
71
+ </table>
@@ -0,0 +1,13 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** Accessible name describing the period shown. */
4
+ label: string;
5
+ /** Visible caption for the table. */
6
+ caption?: string;
7
+ /** CalendarTableHead, CalendarTableBody, CalendarTableFoot elements. */
8
+ children: Snippet;
9
+ [key: string]: unknown;
10
+ };
11
+ declare const CalendarMonthTable: import("svelte").Component<$$ComponentProps, {}, "">;
12
+ type CalendarMonthTable = ReturnType<typeof CalendarMonthTable>;
13
+ export default CalendarMonthTable;
@@ -0,0 +1,71 @@
1
+ <script lang="ts">
2
+ // CalendarWeekTable component
3
+ //
4
+ // A calendar grid for a grid of the seven days of one week as day columns. A structural wrapper like CalendarTable:
5
+ // a <table> with role="grid" and data-view="week"; the consumer supplies the
6
+ // head, body and rows by reusing the CalendarTable* sub-elements.
7
+ //
8
+ // Props:
9
+ // className — string, optional. CSS class name.
10
+ // label — string, required. Accessible name describing the period shown, e.g. a week (e.g. "Week of 6 January 2025").
11
+ // caption — string, optional. Visible caption text displayed above the table.
12
+ // children — Snippet, required. CalendarTableHead, CalendarTableBody, CalendarTableFoot elements.
13
+ // ...restProps — additional HTML attributes spread onto the <table>.
14
+ //
15
+ // Syntax:
16
+ // <CalendarWeekTable label="Week of 6 January 2025">
17
+ // <CalendarTableBody>...</CalendarTableBody>
18
+ // </CalendarWeekTable>
19
+ //
20
+ // Keyboard:
21
+ // None built-in — consumer implements grid keyboard navigation
22
+ // (arrow keys for cell movement, Enter/Space for selection).
23
+ //
24
+ // Accessibility:
25
+ // - role="grid" identifies the table as an interactive grid widget
26
+ // - aria-label provides an accessible name describing the period
27
+ // - data-view="week" lets consumer CSS and JS key on the view
28
+ //
29
+ // Internationalization:
30
+ // - label and caption supply all text; locale formatting (Intl) and cell
31
+ // content are the consumer's concern
32
+ //
33
+ // Claude rules:
34
+ // - Headless: no CSS, no styles — consumer provides all styling
35
+ // - Reuse the CalendarTable* sub-elements; there are no CalendarWeekTable* sub-elements
36
+ //
37
+ // References:
38
+ // - WAI-ARIA Grid Pattern: https://www.w3.org/WAI/ARIA/apg/patterns/grid/
39
+
40
+ import type { Snippet } from "svelte";
41
+
42
+ let {
43
+ class: className = "",
44
+ label,
45
+ caption = undefined,
46
+ children,
47
+ ...restProps
48
+ }: {
49
+ /** Accessible name describing the period shown. */
50
+ label: string;
51
+ /** Visible caption for the table. */
52
+ caption?: string;
53
+ /** CalendarTableHead, CalendarTableBody, CalendarTableFoot elements. */
54
+ children: Snippet;
55
+ [key: string]: unknown;
56
+ } = $props();
57
+ </script>
58
+
59
+ <!-- CalendarWeekTable.svelte -->
60
+ <table
61
+ class={`calendar-week-table ${className}`}
62
+ role="grid"
63
+ aria-label={label}
64
+ data-view="week"
65
+ {...restProps}
66
+ >
67
+ {#if caption}
68
+ <caption>{caption}</caption>
69
+ {/if}
70
+ {@render children?.()}
71
+ </table>
@@ -0,0 +1,13 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** Accessible name describing the period shown. */
4
+ label: string;
5
+ /** Visible caption for the table. */
6
+ caption?: string;
7
+ /** CalendarTableHead, CalendarTableBody, CalendarTableFoot elements. */
8
+ children: Snippet;
9
+ [key: string]: unknown;
10
+ };
11
+ declare const CalendarWeekTable: import("svelte").Component<$$ComponentProps, {}, "">;
12
+ type CalendarWeekTable = ReturnType<typeof CalendarWeekTable>;
13
+ export default CalendarWeekTable;
@@ -0,0 +1,71 @@
1
+ <script lang="ts">
2
+ // CalendarYearTable component
3
+ //
4
+ // A calendar grid for a grid of the twelve months of one year (typically 3 x 4 or 4 x 3 month cells). A structural wrapper like CalendarTable:
5
+ // a <table> with role="grid" and data-view="year"; the consumer supplies the
6
+ // head, body and rows by reusing the CalendarTable* sub-elements.
7
+ //
8
+ // Props:
9
+ // className — string, optional. CSS class name.
10
+ // label — string, required. Accessible name describing the period shown, e.g. a year (e.g. "2025").
11
+ // caption — string, optional. Visible caption text displayed above the table.
12
+ // children — Snippet, required. CalendarTableHead, CalendarTableBody, CalendarTableFoot elements.
13
+ // ...restProps — additional HTML attributes spread onto the <table>.
14
+ //
15
+ // Syntax:
16
+ // <CalendarYearTable label="2025">
17
+ // <CalendarTableBody>...</CalendarTableBody>
18
+ // </CalendarYearTable>
19
+ //
20
+ // Keyboard:
21
+ // None built-in — consumer implements grid keyboard navigation
22
+ // (arrow keys for cell movement, Enter/Space for selection).
23
+ //
24
+ // Accessibility:
25
+ // - role="grid" identifies the table as an interactive grid widget
26
+ // - aria-label provides an accessible name describing the period
27
+ // - data-view="year" lets consumer CSS and JS key on the view
28
+ //
29
+ // Internationalization:
30
+ // - label and caption supply all text; locale formatting (Intl) and cell
31
+ // content are the consumer's concern
32
+ //
33
+ // Claude rules:
34
+ // - Headless: no CSS, no styles — consumer provides all styling
35
+ // - Reuse the CalendarTable* sub-elements; there are no CalendarYearTable* sub-elements
36
+ //
37
+ // References:
38
+ // - WAI-ARIA Grid Pattern: https://www.w3.org/WAI/ARIA/apg/patterns/grid/
39
+
40
+ import type { Snippet } from "svelte";
41
+
42
+ let {
43
+ class: className = "",
44
+ label,
45
+ caption = undefined,
46
+ children,
47
+ ...restProps
48
+ }: {
49
+ /** Accessible name describing the period shown. */
50
+ label: string;
51
+ /** Visible caption for the table. */
52
+ caption?: string;
53
+ /** CalendarTableHead, CalendarTableBody, CalendarTableFoot elements. */
54
+ children: Snippet;
55
+ [key: string]: unknown;
56
+ } = $props();
57
+ </script>
58
+
59
+ <!-- CalendarYearTable.svelte -->
60
+ <table
61
+ class={`calendar-year-table ${className}`}
62
+ role="grid"
63
+ aria-label={label}
64
+ data-view="year"
65
+ {...restProps}
66
+ >
67
+ {#if caption}
68
+ <caption>{caption}</caption>
69
+ {/if}
70
+ {@render children?.()}
71
+ </table>
@@ -0,0 +1,13 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** Accessible name describing the period shown. */
4
+ label: string;
5
+ /** Visible caption for the table. */
6
+ caption?: string;
7
+ /** CalendarTableHead, CalendarTableBody, CalendarTableFoot elements. */
8
+ children: Snippet;
9
+ [key: string]: unknown;
10
+ };
11
+ declare const CalendarYearTable: import("svelte").Component<$$ComponentProps, {}, "">;
12
+ type CalendarYearTable = ReturnType<typeof CalendarYearTable>;
13
+ export default CalendarYearTable;
@@ -0,0 +1,55 @@
1
+ <script lang="ts">
2
+ // CanadaSocialInsuranceNumberInput component
3
+ //
4
+ // A headless input for entering Canada's Social Insurance Number (SIN).
5
+ // Format: Nine digits, usually displayed in three groups of three (NNN NNN NNN). The leading digit denotes the region of registration (1 Atlantic, 2-3 Quebec, 4-5 Ontario, 6 Prairies, 7 Pacific, 9 temporary residents), the following seven digits are a serial number, and the final digit is a Luhn (Modulus-10) check digit over the first eight.
6
+ //
7
+ // Props:
8
+ // className — string, optional. CSS class name.
9
+ // label — string, required. Accessible label for screen readers via aria-label.
10
+ // value — string, default "". Bindable input value; supports bind:value.
11
+ // required — boolean, default false. Whether the input is required for form submission.
12
+ // disabled — boolean, default false. Whether the input is disabled.
13
+ // ...restProps — additional HTML attributes spread onto the <input>.
14
+ //
15
+ // Syntax:
16
+ // <CanadaSocialInsuranceNumberInput label="Social Insurance Number (SIN)" bind:value />
17
+ //
18
+ // Accessibility:
19
+ // - aria-label provides the accessible name for screen readers
20
+ // - autocomplete="off" protects sensitive identifiers
21
+ // - required and disabled states are conveyed to assistive technology
22
+ //
23
+ // Internationalization:
24
+ // - The label prop externalizes user-facing text for translation
25
+ //
26
+ // References:
27
+ // - https://en.wikipedia.org/wiki/Social_Insurance_Number
28
+
29
+ let {
30
+ class: className = "",
31
+ label,
32
+ value = $bindable(""),
33
+ required = false,
34
+ disabled = false,
35
+ ...restProps
36
+ }: {
37
+ label: string;
38
+ value?: string;
39
+ required?: boolean;
40
+ disabled?: boolean;
41
+ [key: string]: unknown;
42
+ } = $props();
43
+ </script>
44
+
45
+ <!-- CanadaSocialInsuranceNumberInput.svelte -->
46
+ <input
47
+ class={`canada-social-insurance-number-input ${className}`}
48
+ type="text"
49
+ aria-label={label}
50
+ autocomplete="off"
51
+ bind:value
52
+ {required}
53
+ {disabled}
54
+ {...restProps}
55
+ />
@@ -0,0 +1,10 @@
1
+ type $$ComponentProps = {
2
+ label: string;
3
+ value?: string;
4
+ required?: boolean;
5
+ disabled?: boolean;
6
+ [key: string]: unknown;
7
+ };
8
+ declare const CanadaSocialInsuranceNumberInput: import("svelte").Component<$$ComponentProps, {}, "value">;
9
+ type CanadaSocialInsuranceNumberInput = ReturnType<typeof CanadaSocialInsuranceNumberInput>;
10
+ export default CanadaSocialInsuranceNumberInput;
@@ -0,0 +1,40 @@
1
+ <script lang="ts">
2
+ // CanadaSocialInsuranceNumberView component
3
+ //
4
+ // A headless display component for showing Canada's
5
+ // Social Insurance Number (SIN) in a read-only format.
6
+ // Format: Nine digits, usually displayed in three groups of three (NNN NNN NNN). The leading digit denotes the region of registration (1 Atlantic, 2-3 Quebec, 4-5 Ontario, 6 Prairies, 7 Pacific, 9 temporary residents), the following seven digits are a serial number, and the final digit is a Luhn (Modulus-10) check digit over the first eight.
7
+ //
8
+ // Props:
9
+ // className — string, optional. CSS class name.
10
+ // label — string, required. Accessible label for screen readers via aria-label.
11
+ // value — string, default "". The identifier string to display.
12
+ // ...restProps — additional HTML attributes spread onto the <span>.
13
+ //
14
+ // Syntax:
15
+ // <CanadaSocialInsuranceNumberView label="Social Insurance Number (SIN)" value={value} />
16
+ //
17
+ // Accessibility:
18
+ // - aria-label provides the accessible name so screen readers announce the purpose
19
+ //
20
+ // References:
21
+ // - https://en.wikipedia.org/wiki/Social_Insurance_Number
22
+
23
+ let {
24
+ class: className = "",
25
+ label,
26
+ value = "",
27
+ ...restProps
28
+ }: {
29
+ label: string;
30
+ value?: string;
31
+ [key: string]: unknown;
32
+ } = $props();
33
+ </script>
34
+
35
+ <!-- CanadaSocialInsuranceNumberView.svelte -->
36
+ <span
37
+ class={`canada-social-insurance-number-view ${className}`}
38
+ aria-label={label}
39
+ {...restProps}>{value}</span
40
+ >
@@ -0,0 +1,8 @@
1
+ type $$ComponentProps = {
2
+ label: string;
3
+ value?: string;
4
+ [key: string]: unknown;
5
+ };
6
+ declare const CanadaSocialInsuranceNumberView: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type CanadaSocialInsuranceNumberView = ReturnType<typeof CanadaSocialInsuranceNumberView>;
8
+ export default CanadaSocialInsuranceNumberView;
@@ -0,0 +1,55 @@
1
+ <script lang="ts">
2
+ // ChileRolUnicoNacionalInput component
3
+ //
4
+ // A headless input for entering Chile's Rol Único Nacional (RUN).
5
+ // Format: Seven or eight digits plus a trailing check character. The check character is computed with a Modulus-11 algorithm: each body digit, read right to left, is multiplied by a repeating weight sequence 2,3,4,5,6,7; the products are summed; the check value is 11 minus the sum's Modulus-11 remainder, where a result of 11 maps to 0 and a result of 10 maps to the letter K.
6
+ //
7
+ // Props:
8
+ // className — string, optional. CSS class name.
9
+ // label — string, required. Accessible label for screen readers via aria-label.
10
+ // value — string, default "". Bindable input value; supports bind:value.
11
+ // required — boolean, default false. Whether the input is required for form submission.
12
+ // disabled — boolean, default false. Whether the input is disabled.
13
+ // ...restProps — additional HTML attributes spread onto the <input>.
14
+ //
15
+ // Syntax:
16
+ // <ChileRolUnicoNacionalInput label="Rol Único Nacional (RUN)" bind:value />
17
+ //
18
+ // Accessibility:
19
+ // - aria-label provides the accessible name for screen readers
20
+ // - autocomplete="off" protects sensitive identifiers
21
+ // - required and disabled states are conveyed to assistive technology
22
+ //
23
+ // Internationalization:
24
+ // - The label prop externalizes user-facing text for translation
25
+ //
26
+ // References:
27
+ // - https://en.wikipedia.org/wiki/RUT
28
+
29
+ let {
30
+ class: className = "",
31
+ label,
32
+ value = $bindable(""),
33
+ required = false,
34
+ disabled = false,
35
+ ...restProps
36
+ }: {
37
+ label: string;
38
+ value?: string;
39
+ required?: boolean;
40
+ disabled?: boolean;
41
+ [key: string]: unknown;
42
+ } = $props();
43
+ </script>
44
+
45
+ <!-- ChileRolUnicoNacionalInput.svelte -->
46
+ <input
47
+ class={`chile-rol-unico-nacional-input ${className}`}
48
+ type="text"
49
+ aria-label={label}
50
+ autocomplete="off"
51
+ bind:value
52
+ {required}
53
+ {disabled}
54
+ {...restProps}
55
+ />
@@ -0,0 +1,10 @@
1
+ type $$ComponentProps = {
2
+ label: string;
3
+ value?: string;
4
+ required?: boolean;
5
+ disabled?: boolean;
6
+ [key: string]: unknown;
7
+ };
8
+ declare const ChileRolUnicoNacionalInput: import("svelte").Component<$$ComponentProps, {}, "value">;
9
+ type ChileRolUnicoNacionalInput = ReturnType<typeof ChileRolUnicoNacionalInput>;
10
+ export default ChileRolUnicoNacionalInput;
@@ -0,0 +1,40 @@
1
+ <script lang="ts">
2
+ // ChileRolUnicoNacionalView component
3
+ //
4
+ // A headless display component for showing Chile's
5
+ // Rol Único Nacional (RUN) in a read-only format.
6
+ // Format: Seven or eight digits plus a trailing check character. The check character is computed with a Modulus-11 algorithm: each body digit, read right to left, is multiplied by a repeating weight sequence 2,3,4,5,6,7; the products are summed; the check value is 11 minus the sum's Modulus-11 remainder, where a result of 11 maps to 0 and a result of 10 maps to the letter K.
7
+ //
8
+ // Props:
9
+ // className — string, optional. CSS class name.
10
+ // label — string, required. Accessible label for screen readers via aria-label.
11
+ // value — string, default "". The identifier string to display.
12
+ // ...restProps — additional HTML attributes spread onto the <span>.
13
+ //
14
+ // Syntax:
15
+ // <ChileRolUnicoNacionalView label="Rol Único Nacional (RUN)" value={value} />
16
+ //
17
+ // Accessibility:
18
+ // - aria-label provides the accessible name so screen readers announce the purpose
19
+ //
20
+ // References:
21
+ // - https://en.wikipedia.org/wiki/RUT
22
+
23
+ let {
24
+ class: className = "",
25
+ label,
26
+ value = "",
27
+ ...restProps
28
+ }: {
29
+ label: string;
30
+ value?: string;
31
+ [key: string]: unknown;
32
+ } = $props();
33
+ </script>
34
+
35
+ <!-- ChileRolUnicoNacionalView.svelte -->
36
+ <span
37
+ class={`chile-rol-unico-nacional-view ${className}`}
38
+ aria-label={label}
39
+ {...restProps}>{value}</span
40
+ >
@@ -0,0 +1,8 @@
1
+ type $$ComponentProps = {
2
+ label: string;
3
+ value?: string;
4
+ [key: string]: unknown;
5
+ };
6
+ declare const ChileRolUnicoNacionalView: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type ChileRolUnicoNacionalView = ReturnType<typeof ChileRolUnicoNacionalView>;
8
+ export default ChileRolUnicoNacionalView;