@lilydesignsystem/svelte-headless 0.2.0 → 0.4.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 (185) hide show
  1. package/CHANGELOG.md +35 -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/CandlestickChart/CandlestickChart.svelte +63 -0
  35. package/dist/components/CandlestickChart/CandlestickChart.svelte.d.ts +13 -0
  36. package/dist/components/ChatComposer/ChatComposer.svelte +110 -0
  37. package/dist/components/ChatComposer/ChatComposer.svelte.d.ts +25 -0
  38. package/dist/components/ChileRolUnicoNacionalInput/ChileRolUnicoNacionalInput.svelte +55 -0
  39. package/dist/components/ChileRolUnicoNacionalInput/ChileRolUnicoNacionalInput.svelte.d.ts +10 -0
  40. package/dist/components/ChileRolUnicoNacionalView/ChileRolUnicoNacionalView.svelte +40 -0
  41. package/dist/components/ChileRolUnicoNacionalView/ChileRolUnicoNacionalView.svelte.d.ts +8 -0
  42. package/dist/components/ChoroplethChart/ChoroplethChart.svelte +63 -0
  43. package/dist/components/ChoroplethChart/ChoroplethChart.svelte.d.ts +13 -0
  44. package/dist/components/ColumnChart/ColumnChart.svelte +42 -3
  45. package/dist/components/ColumnChart/ColumnChart.svelte.d.ts +4 -0
  46. package/dist/components/ComposedChart/ComposedChart.svelte +63 -0
  47. package/dist/components/ComposedChart/ComposedChart.svelte.d.ts +13 -0
  48. package/dist/components/EmptyState/EmptyState.svelte +47 -0
  49. package/dist/components/EmptyState/EmptyState.svelte.d.ts +11 -0
  50. package/dist/components/FileTree/FileTree.svelte +210 -0
  51. package/dist/components/FileTree/FileTree.svelte.d.ts +11 -0
  52. package/dist/components/FunnelChart/FunnelChart.svelte +63 -0
  53. package/dist/components/FunnelChart/FunnelChart.svelte.d.ts +13 -0
  54. package/dist/components/GanttTable/GanttTable.svelte +5 -5
  55. package/dist/components/GanttTableTD/GanttTableTD.svelte +2 -2
  56. package/dist/components/GanttTableTH/GanttTableTH.svelte +3 -3
  57. package/dist/components/GanttTableTbody/GanttTableTbody.svelte +5 -5
  58. package/dist/components/GanttTableTbody/GanttTableTbody.svelte.d.ts +1 -1
  59. package/dist/components/GanttTableTfoot/GanttTableTfoot.svelte +5 -5
  60. package/dist/components/GanttTableTfoot/GanttTableTfoot.svelte.d.ts +1 -1
  61. package/dist/components/GanttTableThead/GanttTableThead.svelte +4 -4
  62. package/dist/components/GanttTableThead/GanttTableThead.svelte.d.ts +1 -1
  63. package/dist/components/GanttTableTr/GanttTableTr.svelte +8 -8
  64. package/dist/components/GaugeChart/GaugeChart.svelte +63 -0
  65. package/dist/components/GaugeChart/GaugeChart.svelte.d.ts +13 -0
  66. package/dist/components/HangukJuminDeungnokBeonhoInput/HangukJuminDeungnokBeonhoInput.svelte +55 -0
  67. package/dist/components/HangukJuminDeungnokBeonhoInput/HangukJuminDeungnokBeonhoInput.svelte.d.ts +10 -0
  68. package/dist/components/HangukJuminDeungnokBeonhoView/HangukJuminDeungnokBeonhoView.svelte +40 -0
  69. package/dist/components/HangukJuminDeungnokBeonhoView/HangukJuminDeungnokBeonhoView.svelte.d.ts +8 -0
  70. package/dist/components/HeatmapChart/HeatmapChart.svelte +63 -0
  71. package/dist/components/HeatmapChart/HeatmapChart.svelte.d.ts +13 -0
  72. package/dist/components/IndonesiaNomorIndukKependudukanInput/IndonesiaNomorIndukKependudukanInput.svelte +55 -0
  73. package/dist/components/IndonesiaNomorIndukKependudukanInput/IndonesiaNomorIndukKependudukanInput.svelte.d.ts +10 -0
  74. package/dist/components/IndonesiaNomorIndukKependudukanView/IndonesiaNomorIndukKependudukanView.svelte +40 -0
  75. package/dist/components/IndonesiaNomorIndukKependudukanView/IndonesiaNomorIndukKependudukanView.svelte.d.ts +8 -0
  76. package/dist/components/KbdShortcut/KbdShortcut.svelte +49 -0
  77. package/dist/components/KbdShortcut/KbdShortcut.svelte.d.ts +12 -0
  78. package/dist/components/LineChart/LineChart.svelte +42 -3
  79. package/dist/components/LineChart/LineChart.svelte.d.ts +4 -0
  80. package/dist/components/LuxembourgMatriculeInput/LuxembourgMatriculeInput.svelte +55 -0
  81. package/dist/components/LuxembourgMatriculeInput/LuxembourgMatriculeInput.svelte.d.ts +10 -0
  82. package/dist/components/LuxembourgMatriculeView/LuxembourgMatriculeView.svelte +40 -0
  83. package/dist/components/LuxembourgMatriculeView/LuxembourgMatriculeView.svelte.d.ts +8 -0
  84. package/dist/components/MagyarorszagTajSzamInput/MagyarorszagTajSzamInput.svelte +55 -0
  85. package/dist/components/MagyarorszagTajSzamInput/MagyarorszagTajSzamInput.svelte.d.ts +10 -0
  86. package/dist/components/MagyarorszagTajSzamView/MagyarorszagTajSzamView.svelte +40 -0
  87. package/dist/components/MagyarorszagTajSzamView/MagyarorszagTajSzamView.svelte.d.ts +8 -0
  88. package/dist/components/Mark/Mark.svelte +27 -0
  89. package/dist/components/Mark/Mark.svelte.d.ts +9 -0
  90. package/dist/components/MexicoClaveUnicaDeRegistroDePoblacionInput/MexicoClaveUnicaDeRegistroDePoblacionInput.svelte +55 -0
  91. package/dist/components/MexicoClaveUnicaDeRegistroDePoblacionInput/MexicoClaveUnicaDeRegistroDePoblacionInput.svelte.d.ts +10 -0
  92. package/dist/components/MexicoClaveUnicaDeRegistroDePoblacionView/MexicoClaveUnicaDeRegistroDePoblacionView.svelte +40 -0
  93. package/dist/components/MexicoClaveUnicaDeRegistroDePoblacionView/MexicoClaveUnicaDeRegistroDePoblacionView.svelte.d.ts +8 -0
  94. package/dist/components/MisrAlRaqmAlQawmiInput/MisrAlRaqmAlQawmiInput.svelte +55 -0
  95. package/dist/components/MisrAlRaqmAlQawmiInput/MisrAlRaqmAlQawmiInput.svelte.d.ts +10 -0
  96. package/dist/components/MisrAlRaqmAlQawmiView/MisrAlRaqmAlQawmiView.svelte +40 -0
  97. package/dist/components/MisrAlRaqmAlQawmiView/MisrAlRaqmAlQawmiView.svelte.d.ts +8 -0
  98. package/dist/components/MultiSelect/MultiSelect.svelte +70 -0
  99. package/dist/components/MultiSelect/MultiSelect.svelte.d.ts +19 -0
  100. package/dist/components/MultiSelectWithExtras/MultiSelectWithExtras.svelte +80 -0
  101. package/dist/components/MultiSelectWithExtras/MultiSelectWithExtras.svelte.d.ts +23 -0
  102. package/dist/components/NihonKojinBangoInput/NihonKojinBangoInput.svelte +55 -0
  103. package/dist/components/NihonKojinBangoInput/NihonKojinBangoInput.svelte.d.ts +10 -0
  104. package/dist/components/NihonKojinBangoView/NihonKojinBangoView.svelte +40 -0
  105. package/dist/components/NihonKojinBangoView/NihonKojinBangoView.svelte.d.ts +8 -0
  106. package/dist/components/OneTimePasswordInput/OneTimePasswordInput.svelte +85 -0
  107. package/dist/components/OneTimePasswordInput/OneTimePasswordInput.svelte.d.ts +22 -0
  108. package/dist/components/OsterreichSozialversicherungsnummerInput/OsterreichSozialversicherungsnummerInput.svelte +55 -0
  109. package/dist/components/OsterreichSozialversicherungsnummerInput/OsterreichSozialversicherungsnummerInput.svelte.d.ts +10 -0
  110. package/dist/components/OsterreichSozialversicherungsnummerView/OsterreichSozialversicherungsnummerView.svelte +40 -0
  111. package/dist/components/OsterreichSozialversicherungsnummerView/OsterreichSozialversicherungsnummerView.svelte.d.ts +8 -0
  112. package/dist/components/PieChart/PieChart.svelte +63 -0
  113. package/dist/components/PieChart/PieChart.svelte.d.ts +13 -0
  114. package/dist/components/PilipinasPhilhealthIdentificationNumberInput/PilipinasPhilhealthIdentificationNumberInput.svelte +55 -0
  115. package/dist/components/PilipinasPhilhealthIdentificationNumberInput/PilipinasPhilhealthIdentificationNumberInput.svelte.d.ts +10 -0
  116. package/dist/components/PilipinasPhilhealthIdentificationNumberView/PilipinasPhilhealthIdentificationNumberView.svelte +40 -0
  117. package/dist/components/PilipinasPhilhealthIdentificationNumberView/PilipinasPhilhealthIdentificationNumberView.svelte.d.ts +8 -0
  118. package/dist/components/PrathetThaiLekPrajamTuaPrachachonInput/PrathetThaiLekPrajamTuaPrachachonInput.svelte +55 -0
  119. package/dist/components/PrathetThaiLekPrajamTuaPrachachonInput/PrathetThaiLekPrajamTuaPrachachonInput.svelte.d.ts +10 -0
  120. package/dist/components/PrathetThaiLekPrajamTuaPrachachonView/PrathetThaiLekPrajamTuaPrachachonView.svelte +40 -0
  121. package/dist/components/PrathetThaiLekPrajamTuaPrachachonView/PrathetThaiLekPrajamTuaPrachachonView.svelte.d.ts +8 -0
  122. package/dist/components/RadarChart/RadarChart.svelte +63 -0
  123. package/dist/components/RadarChart/RadarChart.svelte.d.ts +13 -0
  124. package/dist/components/RingChart/RingChart.svelte +63 -0
  125. package/dist/components/RingChart/RingChart.svelte.d.ts +13 -0
  126. package/dist/components/RossiyaSnilsInput/RossiyaSnilsInput.svelte +55 -0
  127. package/dist/components/RossiyaSnilsInput/RossiyaSnilsInput.svelte.d.ts +10 -0
  128. package/dist/components/RossiyaSnilsView/RossiyaSnilsView.svelte +40 -0
  129. package/dist/components/RossiyaSnilsView/RossiyaSnilsView.svelte.d.ts +8 -0
  130. package/dist/components/SankeyChart/SankeyChart.svelte +63 -0
  131. package/dist/components/SankeyChart/SankeyChart.svelte.d.ts +13 -0
  132. package/dist/components/ScatterChart/ScatterChart.svelte +42 -3
  133. package/dist/components/ScatterChart/ScatterChart.svelte.d.ts +4 -0
  134. package/dist/components/SchweizAhvNummerInput/SchweizAhvNummerInput.svelte +55 -0
  135. package/dist/components/SchweizAhvNummerInput/SchweizAhvNummerInput.svelte.d.ts +10 -0
  136. package/dist/components/SchweizAhvNummerView/SchweizAhvNummerView.svelte +40 -0
  137. package/dist/components/SchweizAhvNummerView/SchweizAhvNummerView.svelte.d.ts +8 -0
  138. package/dist/components/ShowMore/ShowMore.svelte +64 -0
  139. package/dist/components/ShowMore/ShowMore.svelte.d.ts +15 -0
  140. package/dist/components/SingaporeNationalRegistrationIdentityCardInput/SingaporeNationalRegistrationIdentityCardInput.svelte +55 -0
  141. package/dist/components/SingaporeNationalRegistrationIdentityCardInput/SingaporeNationalRegistrationIdentityCardInput.svelte.d.ts +10 -0
  142. package/dist/components/SingaporeNationalRegistrationIdentityCardView/SingaporeNationalRegistrationIdentityCardView.svelte +40 -0
  143. package/dist/components/SingaporeNationalRegistrationIdentityCardView/SingaporeNationalRegistrationIdentityCardView.svelte.d.ts +8 -0
  144. package/dist/components/SouthAfricaIdentityNumberInput/SouthAfricaIdentityNumberInput.svelte +55 -0
  145. package/dist/components/SouthAfricaIdentityNumberInput/SouthAfricaIdentityNumberInput.svelte.d.ts +10 -0
  146. package/dist/components/SouthAfricaIdentityNumberView/SouthAfricaIdentityNumberView.svelte +40 -0
  147. package/dist/components/SouthAfricaIdentityNumberView/SouthAfricaIdentityNumberView.svelte.d.ts +8 -0
  148. package/dist/components/StreamingText/StreamingText.svelte +48 -0
  149. package/dist/components/StreamingText/StreamingText.svelte.d.ts +13 -0
  150. package/dist/components/SunburstChart/SunburstChart.svelte +63 -0
  151. package/dist/components/SunburstChart/SunburstChart.svelte.d.ts +13 -0
  152. package/dist/components/Thinking/Thinking.svelte +58 -0
  153. package/dist/components/Thinking/Thinking.svelte.d.ts +15 -0
  154. package/dist/components/ToolCall/ToolCall.svelte +54 -0
  155. package/dist/components/ToolCall/ToolCall.svelte.d.ts +15 -0
  156. package/dist/components/ToolCallError/ToolCallError.svelte +27 -0
  157. package/dist/components/ToolCallError/ToolCallError.svelte.d.ts +9 -0
  158. package/dist/components/ToolCallInput/ToolCallInput.svelte +30 -0
  159. package/dist/components/ToolCallInput/ToolCallInput.svelte.d.ts +11 -0
  160. package/dist/components/ToolCallName/ToolCallName.svelte +27 -0
  161. package/dist/components/ToolCallName/ToolCallName.svelte.d.ts +9 -0
  162. package/dist/components/ToolCallOutput/ToolCallOutput.svelte +30 -0
  163. package/dist/components/ToolCallOutput/ToolCallOutput.svelte.d.ts +11 -0
  164. package/dist/components/ToolCallStatus/ToolCallStatus.svelte +29 -0
  165. package/dist/components/ToolCallStatus/ToolCallStatus.svelte.d.ts +11 -0
  166. package/dist/components/TurkiyeTcKimlikNumarasiInput/TurkiyeTcKimlikNumarasiInput.svelte +55 -0
  167. package/dist/components/TurkiyeTcKimlikNumarasiInput/TurkiyeTcKimlikNumarasiInput.svelte.d.ts +10 -0
  168. package/dist/components/TurkiyeTcKimlikNumarasiView/TurkiyeTcKimlikNumarasiView.svelte +40 -0
  169. package/dist/components/TurkiyeTcKimlikNumarasiView/TurkiyeTcKimlikNumarasiView.svelte.d.ts +8 -0
  170. package/dist/components/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivInput/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivInput.svelte +55 -0
  171. package/dist/components/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivInput/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivInput.svelte.d.ts +10 -0
  172. package/dist/components/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivView/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivView.svelte +40 -0
  173. package/dist/components/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivView/UkrayinaReyestratsiyniyNomerOblikovoyiKartkyPlatnykaPodatkivView.svelte.d.ts +8 -0
  174. package/dist/components/YisraelTeudatZehutInput/YisraelTeudatZehutInput.svelte +55 -0
  175. package/dist/components/YisraelTeudatZehutInput/YisraelTeudatZehutInput.svelte.d.ts +10 -0
  176. package/dist/components/YisraelTeudatZehutView/YisraelTeudatZehutView.svelte +40 -0
  177. package/dist/components/YisraelTeudatZehutView/YisraelTeudatZehutView.svelte.d.ts +8 -0
  178. package/dist/components/ZhongguoJuminShenfenzhengHaomaInput/ZhongguoJuminShenfenzhengHaomaInput.svelte +55 -0
  179. package/dist/components/ZhongguoJuminShenfenzhengHaomaInput/ZhongguoJuminShenfenzhengHaomaInput.svelte.d.ts +10 -0
  180. package/dist/components/ZhongguoJuminShenfenzhengHaomaView/ZhongguoJuminShenfenzhengHaomaView.svelte +40 -0
  181. package/dist/components/ZhongguoJuminShenfenzhengHaomaView/ZhongguoJuminShenfenzhengHaomaView.svelte.d.ts +8 -0
  182. package/dist/index.d.ts +80 -0
  183. package/dist/index.js +80 -0
  184. package/index.md +1 -1
  185. package/package.json +9 -9
@@ -0,0 +1,8 @@
1
+ type $$ComponentProps = {
2
+ label: string;
3
+ value?: string;
4
+ [key: string]: unknown;
5
+ };
6
+ declare const SingaporeNationalRegistrationIdentityCardView: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type SingaporeNationalRegistrationIdentityCardView = ReturnType<typeof SingaporeNationalRegistrationIdentityCardView>;
8
+ export default SingaporeNationalRegistrationIdentityCardView;
@@ -0,0 +1,55 @@
1
+ <script lang="ts">
2
+ // SouthAfricaIdentityNumberInput component
3
+ //
4
+ // A headless input for entering South Africa's South African Identity Number.
5
+ // Format: Thirteen digits in the form YYMMDDSSSSCAZ: the first six encode date of birth; the next four encode sex (0000-4999 female, 5000-9999 male); the eleventh digit encodes citizenship status (0 citizen, 1 permanent resident, 2 refugee); the twelfth is a legacy field fixed at 8 on modern cards; the thirteenth is a Luhn (Modulus-10) check digit over the preceding twelve.
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
+ // <SouthAfricaIdentityNumberInput label="South African Identity Number" 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/South_African_identity_card
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
+ <!-- SouthAfricaIdentityNumberInput.svelte -->
46
+ <input
47
+ class={`south-africa-identity-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 SouthAfricaIdentityNumberInput: import("svelte").Component<$$ComponentProps, {}, "value">;
9
+ type SouthAfricaIdentityNumberInput = ReturnType<typeof SouthAfricaIdentityNumberInput>;
10
+ export default SouthAfricaIdentityNumberInput;
@@ -0,0 +1,40 @@
1
+ <script lang="ts">
2
+ // SouthAfricaIdentityNumberView component
3
+ //
4
+ // A headless display component for showing South Africa's
5
+ // South African Identity Number in a read-only format.
6
+ // Format: Thirteen digits in the form YYMMDDSSSSCAZ: the first six encode date of birth; the next four encode sex (0000-4999 female, 5000-9999 male); the eleventh digit encodes citizenship status (0 citizen, 1 permanent resident, 2 refugee); the twelfth is a legacy field fixed at 8 on modern cards; the thirteenth is a Luhn (Modulus-10) check digit over the preceding twelve.
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
+ // <SouthAfricaIdentityNumberView label="South African Identity Number" 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/South_African_identity_card
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
+ <!-- SouthAfricaIdentityNumberView.svelte -->
36
+ <span
37
+ class={`south-africa-identity-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 SouthAfricaIdentityNumberView: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type SouthAfricaIdentityNumberView = ReturnType<typeof SouthAfricaIdentityNumberView>;
8
+ export default SouthAfricaIdentityNumberView;
@@ -0,0 +1,48 @@
1
+ <script lang="ts">
2
+ // StreamingText component
3
+ //
4
+ // A polite live region for text that grows over time. While `streaming` is true the region is marked busy (`aria-busy="true"`, `data-streaming="true"`) so assistive technology waits instead of announcing every chunk; when it flips to false the finished text is announced once (`role="status"`, `aria-live="polite"`, `aria-atomic="true"`). The component never splits, times, reveals or animates the text: the consumer appends chunks to the children, and owns any caret or reduced-motion CSS.
5
+ //
6
+ // Props:
7
+ // class — string, optional. CSS class name.
8
+ // label — string, optional. Accessible name of the status region.
9
+ // streaming — boolean, default false. True while chunks are still arriving.
10
+ // children — Snippet. The text so far.
11
+ // ...restProps — additional HTML attributes spread onto the root <div>.
12
+ //
13
+ // Keyboard: none.
14
+ //
15
+ // Claude rules:
16
+ // - Headless: no CSS, no animation, no timing, no hardcoded strings
17
+ import type { Snippet } from "svelte";
18
+
19
+ let {
20
+ class: className = "",
21
+ label = undefined,
22
+ streaming = false,
23
+ children,
24
+ ...restProps
25
+ }: {
26
+ /** Accessible name of the region. */
27
+ label?: string;
28
+ /** Whether text is still arriving. */
29
+ streaming?: boolean;
30
+ /** The text so far. */
31
+ children?: Snippet;
32
+ [key: string]: unknown;
33
+ } = $props();
34
+ </script>
35
+
36
+ <!-- StreamingText.svelte -->
37
+ <div
38
+ class={`streaming-text ${className}`}
39
+ role="status"
40
+ aria-live="polite"
41
+ aria-atomic="true"
42
+ aria-label={label}
43
+ aria-busy={streaming ? "true" : undefined}
44
+ data-streaming={streaming ? "true" : undefined}
45
+ {...restProps}
46
+ >
47
+ {@render children?.()}
48
+ </div>
@@ -0,0 +1,13 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** Accessible name of the region. */
4
+ label?: string;
5
+ /** Whether text is still arriving. */
6
+ streaming?: boolean;
7
+ /** The text so far. */
8
+ children?: Snippet;
9
+ [key: string]: unknown;
10
+ };
11
+ declare const StreamingText: import("svelte").Component<$$ComponentProps, {}, "">;
12
+ type StreamingText = ReturnType<typeof StreamingText>;
13
+ export default StreamingText;
@@ -0,0 +1,63 @@
1
+ <script lang="ts">
2
+ // SunburstChart component
3
+ //
4
+ // A headless chart container for a radial chart showing a hierarchy as concentric rings of arcs. The consumer supplies the inline
5
+ // svg as `children`; the component draws nothing. The graphic is a
6
+ // role="img" wrapper named by `label`. The optional `dataTable` snippet
7
+ // renders the accessible table alternative as a SIBLING of that image
8
+ // wrapper, never inside it: a role="img" element makes its descendants
9
+ // presentational, so a table placed inside would be invisible to
10
+ // assistive technology.
11
+ //
12
+ // Props:
13
+ // class — string, optional. Consumer class appended after the base class.
14
+ // label — string, optional. Accessible name of the chart image.
15
+ // children — Snippet. The consumer-supplied inline svg.
16
+ // dataTable — Snippet, optional. The accessible table alternative.
17
+ // ...restProps — spread onto the root <figure>.
18
+ //
19
+ // Markup:
20
+ // <figure class="sunburst-chart">
21
+ // <div class="sunburst-chart-graphic" role="img" aria-label>…svg…</div>
22
+ // <div class="sunburst-chart-data-table">…table…</div> (only when provided)
23
+ // </figure>
24
+ //
25
+ // Keyboard: none on the graphic; the data table follows native table behaviour.
26
+ //
27
+ // Claude rules:
28
+ // - Headless: no CSS, no inline styles; no drawing.
29
+ // - No hardcoded user-facing strings.
30
+
31
+ import type { Snippet } from "svelte";
32
+
33
+ let {
34
+ class: className = "",
35
+ label = undefined,
36
+ children,
37
+ dataTable,
38
+ ...restProps
39
+ }: {
40
+ /** Accessible name for the chart. */
41
+ label?: string;
42
+ /** The consumer-supplied inline svg. */
43
+ children: Snippet;
44
+ /** Optional accessible data table alternative. */
45
+ dataTable?: Snippet;
46
+ [key: string]: unknown;
47
+ } = $props();
48
+ </script>
49
+
50
+ <!-- SunburstChart.svelte -->
51
+ <figure
52
+ class={`sunburst-chart ${className}`}
53
+ {...restProps}
54
+ >
55
+ <div class="sunburst-chart-graphic" role="img" aria-label={label}>
56
+ {@render children?.()}
57
+ </div>
58
+ {#if dataTable}
59
+ <div class="sunburst-chart-data-table">
60
+ {@render dataTable()}
61
+ </div>
62
+ {/if}
63
+ </figure>
@@ -0,0 +1,13 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** Accessible name for the chart. */
4
+ label?: string;
5
+ /** The consumer-supplied inline svg. */
6
+ children: Snippet;
7
+ /** Optional accessible data table alternative. */
8
+ dataTable?: Snippet;
9
+ [key: string]: unknown;
10
+ };
11
+ declare const SunburstChart: import("svelte").Component<$$ComponentProps, {}, "">;
12
+ type SunburstChart = ReturnType<typeof SunburstChart>;
13
+ export default SunburstChart;
@@ -0,0 +1,58 @@
1
+ <script lang="ts">
2
+ // Thinking component
3
+ //
4
+ // A headless disclosure for an AI assistant's reasoning / "thinking" trace,
5
+ // built on the native <details>. Closed by default. While `streaming` the root
6
+ // carries data-streaming and aria-busy so consumer CSS/AT know it is still filling.
7
+ //
8
+ // Props:
9
+ // className — string, optional. CSS class name.
10
+ // label — string, required. The summary text. No default.
11
+ // open — boolean, default false. Bindable.
12
+ // streaming — boolean, default false. Adds data-streaming="true" + aria-busy="true" when true.
13
+ // children — Snippet. The reasoning content.
14
+ // ...restProps — additional HTML attributes spread onto the root <details>.
15
+ //
16
+ // Keyboard:
17
+ // - Enter / Space on the native <summary> toggles
18
+ //
19
+ // Accessibility:
20
+ // - Native details/summary semantics; aria-busy only while streaming
21
+ //
22
+ // Claude rules:
23
+ // - Headless: no CSS, no animation, no hardcoded strings
24
+ import type { Snippet } from "svelte";
25
+
26
+ let {
27
+ class: className = "",
28
+ label,
29
+ open = $bindable(false),
30
+ streaming = false,
31
+ children,
32
+ ...restProps
33
+ }: {
34
+ /** Summary text. */
35
+ label: string;
36
+ /** Whether open. Bindable. */
37
+ open?: boolean;
38
+ /** Whether content is still being produced. */
39
+ streaming?: boolean;
40
+ /** Reasoning content. */
41
+ children?: Snippet;
42
+ [key: string]: unknown;
43
+ } = $props();
44
+ </script>
45
+
46
+ <!-- Thinking.svelte -->
47
+ <details
48
+ class={`thinking ${className}`}
49
+ bind:open
50
+ data-streaming={streaming ? "true" : undefined}
51
+ aria-busy={streaming ? "true" : undefined}
52
+ {...restProps}
53
+ >
54
+ <summary class="thinking-summary">{label}</summary>
55
+ <div class="thinking-content">
56
+ {@render children?.()}
57
+ </div>
58
+ </details>
@@ -0,0 +1,15 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** Summary text. */
4
+ label: string;
5
+ /** Whether open. Bindable. */
6
+ open?: boolean;
7
+ /** Whether content is still being produced. */
8
+ streaming?: boolean;
9
+ /** Reasoning content. */
10
+ children?: Snippet;
11
+ [key: string]: unknown;
12
+ };
13
+ declare const Thinking: import("svelte").Component<$$ComponentProps, {}, "open">;
14
+ type Thinking = ReturnType<typeof Thinking>;
15
+ export default Thinking;
@@ -0,0 +1,54 @@
1
+ <script lang="ts">
2
+ // ToolCall component
3
+ //
4
+ // A headless disclosure for one tool invocation, built on the native <details>. Closed by default. The `summary` content (typically ToolCallName and ToolCallStatus) goes inside <summary class="tool-call-summary">; the body (ToolCallInput, ToolCallOutput, ToolCallError) goes inside <div class="tool-call-content">. `status` (pending | running | done | error) sets data-status on the root, and aria-busy="true" only while running. The component never animates, times or opens itself: the consumer owns `open` (open it on error so ToolCallError is not hidden) and any spinner/animation CSS.
5
+ //
6
+ // Props:
7
+ // class — string, optional. CSS class name.
8
+ // status — string, optional. pending | running | done | error. No default.
9
+ // open — boolean, default false. Bindable.
10
+ // summary — Snippet. The summary content (name + status words).
11
+ // children — Snippet. The body.
12
+ // ...restProps — additional HTML attributes spread onto the root <details>.
13
+ //
14
+ // Keyboard: Enter / Space on the native <summary> toggles.
15
+ //
16
+ // Claude rules:
17
+ // - Headless: no CSS, no animation, no hardcoded strings
18
+ import type { Snippet } from "svelte";
19
+
20
+ let {
21
+ class: className = "",
22
+ status = undefined,
23
+ open = $bindable(false),
24
+ summary,
25
+ children,
26
+ ...restProps
27
+ }: {
28
+ /** pending | running | done | error. */
29
+ status?: string;
30
+ /** Whether open. Bindable. */
31
+ open?: boolean;
32
+ /** Summary content. */
33
+ summary?: Snippet;
34
+ /** Body content. */
35
+ children?: Snippet;
36
+ [key: string]: unknown;
37
+ } = $props();
38
+ </script>
39
+
40
+ <!-- ToolCall.svelte -->
41
+ <details
42
+ class={`tool-call ${className}`}
43
+ bind:open
44
+ data-status={status}
45
+ aria-busy={status === "running" ? "true" : undefined}
46
+ {...restProps}
47
+ >
48
+ <summary class="tool-call-summary">
49
+ {@render summary?.()}
50
+ </summary>
51
+ <div class="tool-call-content">
52
+ {@render children?.()}
53
+ </div>
54
+ </details>
@@ -0,0 +1,15 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** pending | running | done | error. */
4
+ status?: string;
5
+ /** Whether open. Bindable. */
6
+ open?: boolean;
7
+ /** Summary content. */
8
+ summary?: Snippet;
9
+ /** Body content. */
10
+ children?: Snippet;
11
+ [key: string]: unknown;
12
+ };
13
+ declare const ToolCall: import("svelte").Component<$$ComponentProps, {}, "open">;
14
+ type ToolCall = ReturnType<typeof ToolCall>;
15
+ export default ToolCall;
@@ -0,0 +1,27 @@
1
+ <script lang="ts">
2
+ // ToolCallError component
3
+ //
4
+ // A headless inner part of ToolCall: the error shown when a tool call fails. Contract: `role="alert"` announces the error when it appears (open the tool call on error so it is not hidden inside a closed `<details>`).
5
+ // Draws nothing and carries no strings of its own; the consumer supplies the text.
6
+ import type { Snippet } from "svelte";
7
+
8
+ let {
9
+ class: className = "",
10
+ children,
11
+ ...restProps
12
+ }: {
13
+
14
+ /** The content. */
15
+ children?: Snippet;
16
+ [key: string]: unknown;
17
+ } = $props();
18
+ </script>
19
+
20
+ <!-- ToolCallError.svelte -->
21
+ <div
22
+ class={`tool-call-error ${className}`}
23
+ role="alert"
24
+ {...restProps}
25
+ >
26
+ {@render children?.()}
27
+ </div>
@@ -0,0 +1,9 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** The content. */
4
+ children?: Snippet;
5
+ [key: string]: unknown;
6
+ };
7
+ declare const ToolCallError: import("svelte").Component<$$ComponentProps, {}, "">;
8
+ type ToolCallError = ReturnType<typeof ToolCallError>;
9
+ export default ToolCallError;
@@ -0,0 +1,30 @@
1
+ <script lang="ts">
2
+ // ToolCallInput component
3
+ //
4
+ // A headless inner part of ToolCall: the input or arguments passed to a tool in a tool call. Contract: `label` (optional) sets `role="group"` and `aria-label`; without it neither is rendered.
5
+ // Draws nothing and carries no strings of its own; the consumer supplies the text.
6
+ import type { Snippet } from "svelte";
7
+
8
+ let {
9
+ class: className = "",
10
+ label = undefined,
11
+ children,
12
+ ...restProps
13
+ }: {
14
+ /** Accessible name of the group. */
15
+ label?: string;
16
+ /** The content. */
17
+ children?: Snippet;
18
+ [key: string]: unknown;
19
+ } = $props();
20
+ </script>
21
+
22
+ <!-- ToolCallInput.svelte -->
23
+ <div
24
+ class={`tool-call-input ${className}`}
25
+ role={label ? "group" : undefined}
26
+ aria-label={label}
27
+ {...restProps}
28
+ >
29
+ {@render children?.()}
30
+ </div>
@@ -0,0 +1,11 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** Accessible name of the group. */
4
+ label?: string;
5
+ /** The content. */
6
+ children?: Snippet;
7
+ [key: string]: unknown;
8
+ };
9
+ declare const ToolCallInput: import("svelte").Component<$$ComponentProps, {}, "">;
10
+ type ToolCallInput = ReturnType<typeof ToolCallInput>;
11
+ export default ToolCallInput;
@@ -0,0 +1,27 @@
1
+ <script lang="ts">
2
+ // ToolCallName component
3
+ //
4
+ // A headless inner part of ToolCall: the name of the tool in a tool call, shown in the summary. Contract: a plain wrapper with the base class and children.
5
+ // Draws nothing and carries no strings of its own; the consumer supplies the text.
6
+ import type { Snippet } from "svelte";
7
+
8
+ let {
9
+ class: className = "",
10
+ children,
11
+ ...restProps
12
+ }: {
13
+
14
+ /** The content. */
15
+ children?: Snippet;
16
+ [key: string]: unknown;
17
+ } = $props();
18
+ </script>
19
+
20
+ <!-- ToolCallName.svelte -->
21
+ <span
22
+ class={`tool-call-name ${className}`}
23
+
24
+ {...restProps}
25
+ >
26
+ {@render children?.()}
27
+ </span>
@@ -0,0 +1,9 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** The content. */
4
+ children?: Snippet;
5
+ [key: string]: unknown;
6
+ };
7
+ declare const ToolCallName: import("svelte").Component<$$ComponentProps, {}, "">;
8
+ type ToolCallName = ReturnType<typeof ToolCallName>;
9
+ export default ToolCallName;
@@ -0,0 +1,30 @@
1
+ <script lang="ts">
2
+ // ToolCallOutput component
3
+ //
4
+ // A headless inner part of ToolCall: the output or result returned by a tool in a tool call. Contract: `label` (optional) sets `role="group"` and `aria-label`; without it neither is rendered.
5
+ // Draws nothing and carries no strings of its own; the consumer supplies the text.
6
+ import type { Snippet } from "svelte";
7
+
8
+ let {
9
+ class: className = "",
10
+ label = undefined,
11
+ children,
12
+ ...restProps
13
+ }: {
14
+ /** Accessible name of the group. */
15
+ label?: string;
16
+ /** The content. */
17
+ children?: Snippet;
18
+ [key: string]: unknown;
19
+ } = $props();
20
+ </script>
21
+
22
+ <!-- ToolCallOutput.svelte -->
23
+ <div
24
+ class={`tool-call-output ${className}`}
25
+ role={label ? "group" : undefined}
26
+ aria-label={label}
27
+ {...restProps}
28
+ >
29
+ {@render children?.()}
30
+ </div>
@@ -0,0 +1,11 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** Accessible name of the group. */
4
+ label?: string;
5
+ /** The content. */
6
+ children?: Snippet;
7
+ [key: string]: unknown;
8
+ };
9
+ declare const ToolCallOutput: import("svelte").Component<$$ComponentProps, {}, "">;
10
+ type ToolCallOutput = ReturnType<typeof ToolCallOutput>;
11
+ export default ToolCallOutput;
@@ -0,0 +1,29 @@
1
+ <script lang="ts">
2
+ // ToolCallStatus component
3
+ //
4
+ // A headless inner part of ToolCall: the status of a tool call as a word, such as pending, running, done or error. Contract: `status` (optional) sets `data-status`; the visible status word is the children (consumer text, never colour alone).
5
+ // Draws nothing and carries no strings of its own; the consumer supplies the text.
6
+ import type { Snippet } from "svelte";
7
+
8
+ let {
9
+ class: className = "",
10
+ status = undefined,
11
+ children,
12
+ ...restProps
13
+ }: {
14
+ /** Status: pending, running, done or error. */
15
+ status?: string;
16
+ /** The content. */
17
+ children?: Snippet;
18
+ [key: string]: unknown;
19
+ } = $props();
20
+ </script>
21
+
22
+ <!-- ToolCallStatus.svelte -->
23
+ <span
24
+ class={`tool-call-status ${className}`}
25
+ data-status={status}
26
+ {...restProps}
27
+ >
28
+ {@render children?.()}
29
+ </span>
@@ -0,0 +1,11 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** Status: pending, running, done or error. */
4
+ status?: string;
5
+ /** The content. */
6
+ children?: Snippet;
7
+ [key: string]: unknown;
8
+ };
9
+ declare const ToolCallStatus: import("svelte").Component<$$ComponentProps, {}, "">;
10
+ type ToolCallStatus = ReturnType<typeof ToolCallStatus>;
11
+ export default ToolCallStatus;