svelte-multistyle-ui 0.0.6-alpha → 0.0.9-alpha

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 (116) hide show
  1. package/README.md +59 -0
  2. package/cli/bin.js +3 -0
  3. package/cli/emit.js +3 -5
  4. package/cli/fixtures/sample.expected.svelte +229 -56
  5. package/cli/fixtures/sample.yaml +254 -128
  6. package/cli/generate.js +438 -7
  7. package/dist/components/Accordion.svelte +3 -1
  8. package/dist/components/Accordion.svelte.d.ts +2 -0
  9. package/dist/components/Alert.svelte +5 -3
  10. package/dist/components/Alert.svelte.d.ts +4 -2
  11. package/dist/components/Avatar.svelte +3 -1
  12. package/dist/components/Avatar.svelte.d.ts +2 -0
  13. package/dist/components/Breadcrumb.svelte +3 -2
  14. package/dist/components/Breadcrumb.svelte.d.ts +2 -0
  15. package/dist/components/Button.svelte +3 -1
  16. package/dist/components/Button.svelte.d.ts +2 -0
  17. package/dist/components/ButtonGroup.svelte +3 -1
  18. package/dist/components/ButtonGroup.svelte.d.ts +2 -0
  19. package/dist/components/Card.svelte +2 -1
  20. package/dist/components/Carousel.svelte +3 -1
  21. package/dist/components/Carousel.svelte.d.ts +2 -0
  22. package/dist/components/Checkbox.svelte +3 -1
  23. package/dist/components/Checkbox.svelte.d.ts +2 -0
  24. package/dist/components/Chip.svelte +3 -1
  25. package/dist/components/Chip.svelte.d.ts +2 -0
  26. package/dist/components/Column.svelte +2 -1
  27. package/dist/components/CommandPalette.svelte +3 -1
  28. package/dist/components/CommandPalette.svelte.d.ts +2 -0
  29. package/dist/components/DatePicker.svelte +3 -1
  30. package/dist/components/DatePicker.svelte.d.ts +2 -0
  31. package/dist/components/Divider.svelte +3 -1
  32. package/dist/components/Divider.svelte.d.ts +2 -0
  33. package/dist/components/Drawer.svelte +3 -1
  34. package/dist/components/Drawer.svelte.d.ts +2 -0
  35. package/dist/components/DropdownMenu.svelte +3 -1
  36. package/dist/components/DropdownMenu.svelte.d.ts +2 -0
  37. package/dist/components/FAB.svelte +3 -1
  38. package/dist/components/FAB.svelte.d.ts +2 -0
  39. package/dist/components/FileUpload.svelte +3 -1
  40. package/dist/components/FileUpload.svelte.d.ts +2 -0
  41. package/dist/components/Grid.svelte +2 -1
  42. package/dist/components/IconButton.svelte +3 -1
  43. package/dist/components/IconButton.svelte.d.ts +2 -0
  44. package/dist/components/Input.svelte +3 -1
  45. package/dist/components/Input.svelte.d.ts +2 -0
  46. package/dist/components/Modal.svelte +3 -1
  47. package/dist/components/Modal.svelte.d.ts +2 -0
  48. package/dist/components/MultiSelect.svelte +41 -3
  49. package/dist/components/MultiSelect.svelte.d.ts +2 -0
  50. package/dist/components/Pagination.svelte +3 -1
  51. package/dist/components/Pagination.svelte.d.ts +2 -0
  52. package/dist/components/Popover.svelte +3 -1
  53. package/dist/components/Popover.svelte.d.ts +2 -0
  54. package/dist/components/ProgressBar.svelte +3 -1
  55. package/dist/components/ProgressBar.svelte.d.ts +2 -0
  56. package/dist/components/Radio.svelte +3 -1
  57. package/dist/components/Radio.svelte.d.ts +2 -0
  58. package/dist/components/Rating.svelte +3 -1
  59. package/dist/components/Rating.svelte.d.ts +2 -0
  60. package/dist/components/Row.svelte +2 -1
  61. package/dist/components/Select.svelte +178 -81
  62. package/dist/components/Select.svelte.d.ts +2 -0
  63. package/dist/components/Skeleton.svelte +3 -1
  64. package/dist/components/Skeleton.svelte.d.ts +2 -0
  65. package/dist/components/Slider.svelte +3 -1
  66. package/dist/components/Slider.svelte.d.ts +2 -0
  67. package/dist/components/SortableList.svelte +3 -1
  68. package/dist/components/SortableList.svelte.d.ts +2 -0
  69. package/dist/components/Spinner.svelte +3 -1
  70. package/dist/components/Spinner.svelte.d.ts +2 -0
  71. package/dist/components/Stepper.svelte +3 -1
  72. package/dist/components/Stepper.svelte.d.ts +2 -0
  73. package/dist/components/Table.svelte +3 -1
  74. package/dist/components/Table.svelte.d.ts +2 -0
  75. package/dist/components/Tabs.svelte +3 -1
  76. package/dist/components/Tabs.svelte.d.ts +2 -0
  77. package/dist/components/Textarea.svelte +3 -1
  78. package/dist/components/Textarea.svelte.d.ts +2 -0
  79. package/dist/components/Toast.svelte +7 -5
  80. package/dist/components/Toast.svelte.d.ts +2 -0
  81. package/dist/components/Toggle.svelte +3 -1
  82. package/dist/components/Toggle.svelte.d.ts +2 -0
  83. package/dist/components/Tooltip.svelte +3 -1
  84. package/dist/components/Tooltip.svelte.d.ts +2 -0
  85. package/dist/components/charts/BarChart.svelte +2 -2
  86. package/dist/components/charts/BarChart.svelte.d.ts +2 -0
  87. package/dist/components/charts/BubbleChart.svelte +2 -2
  88. package/dist/components/charts/BubbleChart.svelte.d.ts +2 -0
  89. package/dist/components/charts/Chart.svelte +3 -1
  90. package/dist/components/charts/Chart.svelte.d.ts +2 -0
  91. package/dist/components/charts/ComboChart.svelte +2 -2
  92. package/dist/components/charts/ComboChart.svelte.d.ts +2 -0
  93. package/dist/components/charts/DoughnutChart.svelte +2 -2
  94. package/dist/components/charts/DoughnutChart.svelte.d.ts +2 -0
  95. package/dist/components/charts/LineChart.svelte +2 -2
  96. package/dist/components/charts/LineChart.svelte.d.ts +2 -0
  97. package/dist/components/charts/PieChart.svelte +2 -2
  98. package/dist/components/charts/PieChart.svelte.d.ts +2 -0
  99. package/dist/components/charts/PolarAreaChart.svelte +2 -2
  100. package/dist/components/charts/PolarAreaChart.svelte.d.ts +2 -0
  101. package/dist/components/charts/RadarChart.svelte +2 -2
  102. package/dist/components/charts/RadarChart.svelte.d.ts +2 -0
  103. package/dist/components/charts/ScatterChart.svelte +2 -2
  104. package/dist/components/charts/ScatterChart.svelte.d.ts +2 -0
  105. package/dist/components/charts/StackedBarChart.svelte +2 -2
  106. package/dist/components/charts/StackedBarChart.svelte.d.ts +2 -0
  107. package/dist/components/charts/StackedLineChart.svelte +2 -2
  108. package/dist/components/charts/StackedLineChart.svelte.d.ts +2 -0
  109. package/dist/components/input-styles.css +1 -0
  110. package/dist/components/multiselect-styles.css +335 -338
  111. package/dist/components/select-styles.css +309 -247
  112. package/dist/index.d.ts +1 -0
  113. package/dist/index.js +3 -0
  114. package/dist/utils/cn.d.ts +1 -0
  115. package/dist/utils/cn.js +9 -0
  116. package/package.json +4 -3
@@ -8,10 +8,12 @@ declare const Stepper: import("svelte").Component<{
8
8
  theme: any;
9
9
  steps?: any[];
10
10
  current?: number;
11
+ class?: string;
11
12
  } & Record<string, any>, {}, "">;
12
13
  type $$ComponentProps = {
13
14
  style: any;
14
15
  theme: any;
15
16
  steps?: any[];
16
17
  current?: number;
18
+ class?: string;
17
19
  } & Record<string, any>;
@@ -1,6 +1,7 @@
1
1
  <script>
2
2
  import "./table-styles.css";
3
3
  import { defaults } from "../config.js";
4
+ import { cn } from "../utils/cn.js";
4
5
 
5
6
  let {
6
7
  style: styleProp,
@@ -8,6 +9,7 @@
8
9
  data = null,
9
10
  variant = "plain",
10
11
  caption: summary,
12
+ class: className = "",
11
13
  ...rest
12
14
  } = $props();
13
15
 
@@ -30,7 +32,7 @@
30
32
  </script>
31
33
 
32
34
  <div
33
- class="s-table-wrapper {styleClass} {themeClass} {variantClass}"
35
+ class={cn("s-table-wrapper", styleClass, themeClass, variantClass, className)}
34
36
  {...rest}
35
37
  >
36
38
  <div class="s-table-scroll">
@@ -9,6 +9,7 @@ declare const Table: import("svelte").Component<{
9
9
  data?: any;
10
10
  variant?: string;
11
11
  caption: any;
12
+ class?: string;
12
13
  } & Record<string, any>, {}, "">;
13
14
  type $$ComponentProps = {
14
15
  style: any;
@@ -16,4 +17,5 @@ type $$ComponentProps = {
16
17
  data?: any;
17
18
  variant?: string;
18
19
  caption: any;
20
+ class?: string;
19
21
  } & Record<string, any>;
@@ -1,12 +1,14 @@
1
1
  <script>
2
2
  import "./tabs-styles.css";
3
3
  import { defaults } from "../config.js";
4
+ import { cn } from "../utils/cn.js";
4
5
 
5
6
  let {
6
7
  style: styleProp,
7
8
  theme: themeProp,
8
9
  tabs = [],
9
10
  active = $bindable(""),
11
+ class: className = "",
10
12
  ...rest
11
13
  } = $props();
12
14
 
@@ -17,7 +19,7 @@
17
19
  const themeClass = $derived(`theme-${theme}`);
18
20
  </script>
19
21
 
20
- <div class="s-tabs {styleClass} {themeClass}" role="tablist" {...rest}>
22
+ <div class={cn("s-tabs", styleClass, themeClass, className)} role="tablist" {...rest}>
21
23
  {#each tabs as tab}
22
24
  <button
23
25
  class="s-tab"
@@ -8,10 +8,12 @@ declare const Tabs: import("svelte").Component<{
8
8
  theme: any;
9
9
  tabs?: any[];
10
10
  active?: string;
11
+ class?: string;
11
12
  } & Record<string, any>, {}, "active">;
12
13
  type $$ComponentProps = {
13
14
  style: any;
14
15
  theme: any;
15
16
  tabs?: any[];
16
17
  active?: string;
18
+ class?: string;
17
19
  } & Record<string, any>;
@@ -1,6 +1,7 @@
1
1
  <script>
2
2
  import "./textarea-styles.css";
3
3
  import { defaults } from "../config.js";
4
+ import { cn } from "../utils/cn.js";
4
5
 
5
6
  let {
6
7
  style: styleProp,
@@ -14,6 +15,7 @@
14
15
  readonly = false,
15
16
  required = false,
16
17
  autoresize = false,
18
+ class: className = "",
17
19
  ...rest
18
20
  } = $props();
19
21
 
@@ -54,7 +56,7 @@
54
56
  </script>
55
57
 
56
58
  <div
57
- class="s-textarea-wrapper {styleClass} {themeClass}"
59
+ class={cn("s-textarea-wrapper", styleClass, themeClass, className)}
58
60
  class:disabled
59
61
  class:focused
60
62
  class:has-value={hasValue}
@@ -15,6 +15,7 @@ declare const Textarea: import("svelte").Component<{
15
15
  readonly?: boolean;
16
16
  required?: boolean;
17
17
  autoresize?: boolean;
18
+ class?: string;
18
19
  } & Record<string, any>, {}, "value">;
19
20
  type $$ComponentProps = {
20
21
  style: any;
@@ -28,4 +29,5 @@ type $$ComponentProps = {
28
29
  readonly?: boolean;
29
30
  required?: boolean;
30
31
  autoresize?: boolean;
32
+ class?: string;
31
33
  } & Record<string, any>;
@@ -2,6 +2,7 @@
2
2
  import "./toast-styles.css";
3
3
  import { defaults, iconClass } from "../config.js";
4
4
  import { fly } from "svelte/transition";
5
+ import { cn } from "../utils/cn.js";
5
6
 
6
7
  let {
7
8
  style: styleProp,
@@ -9,6 +10,7 @@
9
10
  toasts = $bindable([]),
10
11
  position = "top-right",
11
12
  duration = 4000,
13
+ class: className = "",
12
14
  ...rest
13
15
  } = $props();
14
16
 
@@ -33,12 +35,12 @@
33
35
  "bottom-center":{ x: 0, y: 20 }
34
36
  };
35
37
 
36
- function renderIcon(icon, variant) {
38
+ function renderIcon(icon, preset) {
37
39
  if (icon) {
38
40
  if (icon.length === 1) return icon;
39
41
  return `<span class="${iconClass}">${icon}</span>`;
40
42
  }
41
- return icons[variant] ?? "\u2139";
43
+ return icons[preset] ?? "\u2139";
42
44
  }
43
45
 
44
46
  function removeToast(id) {
@@ -52,13 +54,13 @@
52
54
  </script>
53
55
 
54
56
  <div
55
- class="s-toast-container toast-{position} {styleClass} {themeClass}"
57
+ class={cn("s-toast-container", `toast-${position}`, styleClass, themeClass, className)}
56
58
  {...rest}
57
59
  >
58
60
  {#each toasts as toast (toast.id)}
59
61
  {#key toast.id}
60
62
  <div
61
- class="s-toast s-toast-{toast.variant} {styleClass} {themeClass}"
63
+ class="s-toast s-toast-{toast.preset} {styleClass} {themeClass}"
62
64
  transition:fly={{
63
65
  ...flyParams[position],
64
66
  duration: 300,
@@ -66,7 +68,7 @@
66
68
  }}
67
69
  role="alert"
68
70
  >
69
- <span class="s-toast-icon">{@html renderIcon(toast.icon, toast.variant)}</span>
71
+ <span class="s-toast-icon">{@html renderIcon(toast.icon, toast.preset)}</span>
70
72
  <div class="s-toast-content">
71
73
  {#if toast.title}
72
74
  <div class="s-toast-title">{toast.title}</div>
@@ -9,6 +9,7 @@ declare const Toast: import("svelte").Component<{
9
9
  toasts?: any[];
10
10
  position?: string;
11
11
  duration?: number;
12
+ class?: string;
12
13
  } & Record<string, any>, {}, "toasts">;
13
14
  type $$ComponentProps = {
14
15
  style: any;
@@ -16,4 +17,5 @@ type $$ComponentProps = {
16
17
  toasts?: any[];
17
18
  position?: string;
18
19
  duration?: number;
20
+ class?: string;
19
21
  } & Record<string, any>;
@@ -1,6 +1,7 @@
1
1
  <script>
2
2
  import "./toggle-styles.css";
3
3
  import { defaults } from "../config.js";
4
+ import { cn } from "../utils/cn.js";
4
5
 
5
6
  let {
6
7
  style: styleProp,
@@ -9,6 +10,7 @@
9
10
  label = "",
10
11
  disabled = false,
11
12
  size = "md",
13
+ class: className = "",
12
14
  ...rest
13
15
  } = $props();
14
16
 
@@ -23,7 +25,7 @@
23
25
  </script>
24
26
 
25
27
  <label
26
- class="s-toggle {styleClass} {themeClass} {sizeClass}"
28
+ class={cn("s-toggle", styleClass, themeClass, sizeClass, className)}
27
29
  class:disabled
28
30
  class:checked
29
31
  for={internalId}
@@ -10,6 +10,7 @@ declare const Toggle: import("svelte").Component<{
10
10
  label?: string;
11
11
  disabled?: boolean;
12
12
  size?: string;
13
+ class?: string;
13
14
  } & Record<string, any>, {}, "checked">;
14
15
  type $$ComponentProps = {
15
16
  style: any;
@@ -18,4 +19,5 @@ type $$ComponentProps = {
18
19
  label?: string;
19
20
  disabled?: boolean;
20
21
  size?: string;
22
+ class?: string;
21
23
  } & Record<string, any>;
@@ -1,6 +1,7 @@
1
1
  <script>
2
2
  import "./tooltip-styles.css";
3
3
  import { defaults } from "../config.js";
4
+ import { cn } from "../utils/cn.js";
4
5
 
5
6
  let {
6
7
  style: styleProp,
@@ -8,6 +9,7 @@
8
9
  text = "",
9
10
  position = "top",
10
11
  children,
12
+ class: className = "",
11
13
  ...rest
12
14
  } = $props();
13
15
 
@@ -21,7 +23,7 @@
21
23
  </script>
22
24
 
23
25
  <div
24
- class="s-tooltip-wrapper {styleClass} {themeClass}"
26
+ class={cn("s-tooltip-wrapper", styleClass, themeClass, className)}
25
27
  onmouseenter={() => (visible = true)}
26
28
  onmouseleave={() => (visible = false)}
27
29
  onfocusin={() => (visible = true)}
@@ -9,6 +9,7 @@ declare const Tooltip: import("svelte").Component<{
9
9
  text?: string;
10
10
  position?: string;
11
11
  children: any;
12
+ class?: string;
12
13
  } & Record<string, any>, {}, "">;
13
14
  type $$ComponentProps = {
14
15
  style: any;
@@ -16,4 +17,5 @@ type $$ComponentProps = {
16
17
  text?: string;
17
18
  position?: string;
18
19
  children: any;
20
+ class?: string;
19
21
  } & Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  <script>
2
2
  import Chart from "./Chart.svelte";
3
- let { data, series, labels, title, height, legend, animated, options, style, theme, ...rest } = $props();
3
+ let { data, series, labels, title, height, legend, animated, options, style, theme, class: className = "", ...rest } = $props();
4
4
  </script>
5
- <Chart type="bar" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} {...rest} />
5
+ <Chart type="bar" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} class={className} {...rest} />
@@ -14,6 +14,7 @@ declare const BarChart: import("svelte").Component<{
14
14
  options: any;
15
15
  style: any;
16
16
  theme: any;
17
+ class?: string;
17
18
  } & Record<string, any>, {}, "">;
18
19
  type $$ComponentProps = {
19
20
  data: any;
@@ -26,4 +27,5 @@ type $$ComponentProps = {
26
27
  options: any;
27
28
  style: any;
28
29
  theme: any;
30
+ class?: string;
29
31
  } & Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  <script>
2
2
  import Chart from "./Chart.svelte";
3
- let { data, series, labels, title, height, legend, animated, options, style, theme, ...rest } = $props();
3
+ let { data, series, labels, title, height, legend, animated, options, style, theme, class: className = "", ...rest } = $props();
4
4
  </script>
5
- <Chart type="bubble" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} {...rest} />
5
+ <Chart type="bubble" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} class={className} {...rest} />
@@ -14,6 +14,7 @@ declare const BubbleChart: import("svelte").Component<{
14
14
  options: any;
15
15
  style: any;
16
16
  theme: any;
17
+ class?: string;
17
18
  } & Record<string, any>, {}, "">;
18
19
  type $$ComponentProps = {
19
20
  data: any;
@@ -26,4 +27,5 @@ type $$ComponentProps = {
26
27
  options: any;
27
28
  style: any;
28
29
  theme: any;
30
+ class?: string;
29
31
  } & Record<string, any>;
@@ -3,6 +3,7 @@
3
3
  import { Chart as ChartJS } from "chart.js";
4
4
  import "./chart-styles.css";
5
5
  import { defaults } from "../../config.js";
6
+ import { cn } from "../../utils/cn.js";
6
7
  import { buildData, buildOptions, readTokens } from "./chart-config.js";
7
8
 
8
9
  let {
@@ -20,6 +21,7 @@
20
21
  yAxisLabel = "",
21
22
  style: styleProp,
22
23
  theme: themeProp,
24
+ class: className = "",
23
25
  ...rest
24
26
  } = $props();
25
27
 
@@ -219,7 +221,7 @@
219
221
  </script>
220
222
 
221
223
  <div
222
- class="s-chart {styleClass} {themeClass} {typeClass} {downloadable ? 's-chart-downloadable' : ''}"
224
+ class={cn("s-chart", styleClass, themeClass, typeClass, downloadable ? "s-chart-downloadable" : "", className)}
223
225
  style="height:{heightStyle}"
224
226
  {...rest}
225
227
  >
@@ -18,6 +18,7 @@ declare const Chart: import("svelte").Component<{
18
18
  yAxisLabel?: string;
19
19
  style: any;
20
20
  theme: any;
21
+ class?: string;
21
22
  } & Record<string, any>, {}, "">;
22
23
  type $$ComponentProps = {
23
24
  type: any;
@@ -34,4 +35,5 @@ type $$ComponentProps = {
34
35
  yAxisLabel?: string;
35
36
  style: any;
36
37
  theme: any;
38
+ class?: string;
37
39
  } & Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  <script>
2
2
  import Chart from "./Chart.svelte";
3
- let { data, series, labels, title, height, legend, animated, options, style, theme, ...rest } = $props();
3
+ let { data, series, labels, title, height, legend, animated, options, style, theme, class: className = "", ...rest } = $props();
4
4
  </script>
5
- <Chart type="combo" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} {...rest} />
5
+ <Chart type="combo" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} class={className} {...rest} />
@@ -14,6 +14,7 @@ declare const ComboChart: import("svelte").Component<{
14
14
  options: any;
15
15
  style: any;
16
16
  theme: any;
17
+ class?: string;
17
18
  } & Record<string, any>, {}, "">;
18
19
  type $$ComponentProps = {
19
20
  data: any;
@@ -26,4 +27,5 @@ type $$ComponentProps = {
26
27
  options: any;
27
28
  style: any;
28
29
  theme: any;
30
+ class?: string;
29
31
  } & Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  <script>
2
2
  import Chart from "./Chart.svelte";
3
- let { data, series, labels, title, height, legend, animated, options, style, theme, ...rest } = $props();
3
+ let { data, series, labels, title, height, legend, animated, options, style, theme, class: className = "", ...rest } = $props();
4
4
  </script>
5
- <Chart type="doughnut" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} {...rest} />
5
+ <Chart type="doughnut" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} class={className} {...rest} />
@@ -14,6 +14,7 @@ declare const DoughnutChart: import("svelte").Component<{
14
14
  options: any;
15
15
  style: any;
16
16
  theme: any;
17
+ class?: string;
17
18
  } & Record<string, any>, {}, "">;
18
19
  type $$ComponentProps = {
19
20
  data: any;
@@ -26,4 +27,5 @@ type $$ComponentProps = {
26
27
  options: any;
27
28
  style: any;
28
29
  theme: any;
30
+ class?: string;
29
31
  } & Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  <script>
2
2
  import Chart from "./Chart.svelte";
3
- let { data, series, labels, title, height, legend, animated, options, style, theme, ...rest } = $props();
3
+ let { data, series, labels, title, height, legend, animated, options, style, theme, class: className = "", ...rest } = $props();
4
4
  </script>
5
- <Chart type="line" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} {...rest} />
5
+ <Chart type="line" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} class={className} {...rest} />
@@ -14,6 +14,7 @@ declare const LineChart: import("svelte").Component<{
14
14
  options: any;
15
15
  style: any;
16
16
  theme: any;
17
+ class?: string;
17
18
  } & Record<string, any>, {}, "">;
18
19
  type $$ComponentProps = {
19
20
  data: any;
@@ -26,4 +27,5 @@ type $$ComponentProps = {
26
27
  options: any;
27
28
  style: any;
28
29
  theme: any;
30
+ class?: string;
29
31
  } & Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  <script>
2
2
  import Chart from "./Chart.svelte";
3
- let { data, series, labels, title, height, legend, animated, options, style, theme, ...rest } = $props();
3
+ let { data, series, labels, title, height, legend, animated, options, style, theme, class: className = "", ...rest } = $props();
4
4
  </script>
5
- <Chart type="pie" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} {...rest} />
5
+ <Chart type="pie" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} class={className} {...rest} />
@@ -14,6 +14,7 @@ declare const PieChart: import("svelte").Component<{
14
14
  options: any;
15
15
  style: any;
16
16
  theme: any;
17
+ class?: string;
17
18
  } & Record<string, any>, {}, "">;
18
19
  type $$ComponentProps = {
19
20
  data: any;
@@ -26,4 +27,5 @@ type $$ComponentProps = {
26
27
  options: any;
27
28
  style: any;
28
29
  theme: any;
30
+ class?: string;
29
31
  } & Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  <script>
2
2
  import Chart from "./Chart.svelte";
3
- let { data, series, labels, title, height, legend, animated, options, style, theme, ...rest } = $props();
3
+ let { data, series, labels, title, height, legend, animated, options, style, theme, class: className = "", ...rest } = $props();
4
4
  </script>
5
- <Chart type="polarArea" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} {...rest} />
5
+ <Chart type="polarArea" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} class={className} {...rest} />
@@ -14,6 +14,7 @@ declare const PolarAreaChart: import("svelte").Component<{
14
14
  options: any;
15
15
  style: any;
16
16
  theme: any;
17
+ class?: string;
17
18
  } & Record<string, any>, {}, "">;
18
19
  type $$ComponentProps = {
19
20
  data: any;
@@ -26,4 +27,5 @@ type $$ComponentProps = {
26
27
  options: any;
27
28
  style: any;
28
29
  theme: any;
30
+ class?: string;
29
31
  } & Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  <script>
2
2
  import Chart from "./Chart.svelte";
3
- let { data, series, labels, title, height, legend, animated, options, style, theme, ...rest } = $props();
3
+ let { data, series, labels, title, height, legend, animated, options, style, theme, class: className = "", ...rest } = $props();
4
4
  </script>
5
- <Chart type="radar" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} {...rest} />
5
+ <Chart type="radar" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} class={className} {...rest} />
@@ -14,6 +14,7 @@ declare const RadarChart: import("svelte").Component<{
14
14
  options: any;
15
15
  style: any;
16
16
  theme: any;
17
+ class?: string;
17
18
  } & Record<string, any>, {}, "">;
18
19
  type $$ComponentProps = {
19
20
  data: any;
@@ -26,4 +27,5 @@ type $$ComponentProps = {
26
27
  options: any;
27
28
  style: any;
28
29
  theme: any;
30
+ class?: string;
29
31
  } & Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  <script>
2
2
  import Chart from "./Chart.svelte";
3
- let { data, series, labels, title, height, legend, animated, options, style, theme, ...rest } = $props();
3
+ let { data, series, labels, title, height, legend, animated, options, style, theme, class: className = "", ...rest } = $props();
4
4
  </script>
5
- <Chart type="scatter" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} {...rest} />
5
+ <Chart type="scatter" {data} {series} {labels} {title} {height} {legend} {animated} {options} {style} {theme} class={className} {...rest} />
@@ -14,6 +14,7 @@ declare const ScatterChart: import("svelte").Component<{
14
14
  options: any;
15
15
  style: any;
16
16
  theme: any;
17
+ class?: string;
17
18
  } & Record<string, any>, {}, "">;
18
19
  type $$ComponentProps = {
19
20
  data: any;
@@ -26,4 +27,5 @@ type $$ComponentProps = {
26
27
  options: any;
27
28
  style: any;
28
29
  theme: any;
30
+ class?: string;
29
31
  } & Record<string, any>;
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import Chart from "./Chart.svelte";
3
- let { data, series, labels, title, height, legend, animated, options: userOpts = {}, style, theme, ...rest } = $props();
3
+ let { data, series, labels, title, height, legend, animated, options: userOpts = {}, style, theme, class: className = "", ...rest } = $props();
4
4
  // Merge user options over the stacked defaults so users can override
5
5
  let mergedOptions = $derived.by(() => {
6
6
  const base = {
@@ -15,4 +15,4 @@
15
15
  return base;
16
16
  });
17
17
  </script>
18
- <Chart type="bar" {data} {series} {labels} {title} {height} {legend} {animated} options={mergedOptions} {style} {theme} {...rest} />
18
+ <Chart type="bar" {data} {series} {labels} {title} {height} {legend} {animated} options={mergedOptions} {style} {theme} class={className} {...rest} />
@@ -14,6 +14,7 @@ declare const StackedBarChart: import("svelte").Component<{
14
14
  options?: Record<string, any>;
15
15
  style: any;
16
16
  theme: any;
17
+ class?: string;
17
18
  } & Record<string, any>, {}, "">;
18
19
  type $$ComponentProps = {
19
20
  data: any;
@@ -26,4 +27,5 @@ type $$ComponentProps = {
26
27
  options?: Record<string, any>;
27
28
  style: any;
28
29
  theme: any;
30
+ class?: string;
29
31
  } & Record<string, any>;
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import Chart from "./Chart.svelte";
3
- let { data, series, labels, title, height, legend, animated, options: userOpts = {}, style, theme, ...rest } = $props();
3
+ let { data, series, labels, title, height, legend, animated, options: userOpts = {}, style, theme, class: className = "", ...rest } = $props();
4
4
  // Merge user options over the stacked defaults so users can override
5
5
  let mergedOptions = $derived.by(() => {
6
6
  const base = {
@@ -18,4 +18,4 @@
18
18
  return base;
19
19
  });
20
20
  </script>
21
- <Chart type="line" {data} {series} {labels} {title} {height} {legend} {animated} options={mergedOptions} {style} {theme} {...rest} />
21
+ <Chart type="line" {data} {series} {labels} {title} {height} {legend} {animated} options={mergedOptions} {style} {theme} class={className} {...rest} />
@@ -14,6 +14,7 @@ declare const StackedLineChart: import("svelte").Component<{
14
14
  options?: Record<string, any>;
15
15
  style: any;
16
16
  theme: any;
17
+ class?: string;
17
18
  } & Record<string, any>, {}, "">;
18
19
  type $$ComponentProps = {
19
20
  data: any;
@@ -26,4 +27,5 @@ type $$ComponentProps = {
26
27
  options?: Record<string, any>;
27
28
  style: any;
28
29
  theme: any;
30
+ class?: string;
29
31
  } & Record<string, any>;
@@ -383,6 +383,7 @@
383
383
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
384
384
  box-shadow: var(--t-shadow-md), inset 0 1px 0 rgba(255,255,255,0.3);
385
385
  transition: all 0.3s ease;
386
+ min-height: 59px;
386
387
  }
387
388
  .s-input-liquid-glass:hover {
388
389
  background: rgba(255,255,255,0.15);