svelte-multistyle-ui 0.0.1-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 (160) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +183 -0
  3. package/dist/actions/portal.d.ts +20 -0
  4. package/dist/actions/portal.js +32 -0
  5. package/dist/components/Accordion.svelte +64 -0
  6. package/dist/components/Accordion.svelte.d.ts +19 -0
  7. package/dist/components/Alert.svelte +61 -0
  8. package/dist/components/Alert.svelte.d.ts +23 -0
  9. package/dist/components/Avatar.svelte +31 -0
  10. package/dist/components/Avatar.svelte.d.ts +21 -0
  11. package/dist/components/Breadcrumb.svelte +35 -0
  12. package/dist/components/Breadcrumb.svelte.d.ts +15 -0
  13. package/dist/components/Button.svelte +34 -0
  14. package/dist/components/Button.svelte.d.ts +25 -0
  15. package/dist/components/ButtonGroup.svelte +45 -0
  16. package/dist/components/ButtonGroup.svelte.d.ts +23 -0
  17. package/dist/components/Card.svelte +29 -0
  18. package/dist/components/Card.svelte.d.ts +21 -0
  19. package/dist/components/Carousel.svelte +111 -0
  20. package/dist/components/Carousel.svelte.d.ts +23 -0
  21. package/dist/components/Checkbox.svelte +64 -0
  22. package/dist/components/Checkbox.svelte.d.ts +21 -0
  23. package/dist/components/Chip.svelte +43 -0
  24. package/dist/components/Chip.svelte.d.ts +27 -0
  25. package/dist/components/Column.svelte +38 -0
  26. package/dist/components/Column.svelte.d.ts +21 -0
  27. package/dist/components/CommandPalette.svelte +207 -0
  28. package/dist/components/CommandPalette.svelte.d.ts +19 -0
  29. package/dist/components/DatePicker.svelte +365 -0
  30. package/dist/components/DatePicker.svelte.d.ts +31 -0
  31. package/dist/components/Divider.svelte +32 -0
  32. package/dist/components/Divider.svelte.d.ts +17 -0
  33. package/dist/components/Drawer.svelte +69 -0
  34. package/dist/components/Drawer.svelte.d.ts +21 -0
  35. package/dist/components/DropdownMenu.svelte +113 -0
  36. package/dist/components/DropdownMenu.svelte.d.ts +25 -0
  37. package/dist/components/FAB.svelte +27 -0
  38. package/dist/components/FAB.svelte.d.ts +19 -0
  39. package/dist/components/FileUpload.svelte +76 -0
  40. package/dist/components/FileUpload.svelte.d.ts +21 -0
  41. package/dist/components/Grid.svelte +51 -0
  42. package/dist/components/Grid.svelte.d.ts +27 -0
  43. package/dist/components/IconButton.svelte +39 -0
  44. package/dist/components/IconButton.svelte.d.ts +27 -0
  45. package/dist/components/Input.svelte +121 -0
  46. package/dist/components/Input.svelte.d.ts +69 -0
  47. package/dist/components/Modal.svelte +57 -0
  48. package/dist/components/Modal.svelte.d.ts +23 -0
  49. package/dist/components/MultiSelect.svelte +125 -0
  50. package/dist/components/MultiSelect.svelte.d.ts +23 -0
  51. package/dist/components/Pagination.svelte +52 -0
  52. package/dist/components/Pagination.svelte.d.ts +19 -0
  53. package/dist/components/Popover.svelte +114 -0
  54. package/dist/components/Popover.svelte.d.ts +23 -0
  55. package/dist/components/ProgressBar.svelte +72 -0
  56. package/dist/components/ProgressBar.svelte.d.ts +21 -0
  57. package/dist/components/Radio.svelte +39 -0
  58. package/dist/components/Radio.svelte.d.ts +21 -0
  59. package/dist/components/Rating.svelte +102 -0
  60. package/dist/components/Rating.svelte.d.ts +25 -0
  61. package/dist/components/Row.svelte +39 -0
  62. package/dist/components/Row.svelte.d.ts +23 -0
  63. package/dist/components/Select.svelte +80 -0
  64. package/dist/components/Select.svelte.d.ts +23 -0
  65. package/dist/components/Skeleton.svelte +26 -0
  66. package/dist/components/Skeleton.svelte.d.ts +19 -0
  67. package/dist/components/Slider.svelte +46 -0
  68. package/dist/components/Slider.svelte.d.ts +25 -0
  69. package/dist/components/Spinner.svelte +27 -0
  70. package/dist/components/Spinner.svelte.d.ts +15 -0
  71. package/dist/components/Stepper.svelte +34 -0
  72. package/dist/components/Stepper.svelte.d.ts +17 -0
  73. package/dist/components/Table.svelte +59 -0
  74. package/dist/components/Table.svelte.d.ts +19 -0
  75. package/dist/components/Tabs.svelte +32 -0
  76. package/dist/components/Tabs.svelte.d.ts +17 -0
  77. package/dist/components/Textarea.svelte +86 -0
  78. package/dist/components/Textarea.svelte.d.ts +31 -0
  79. package/dist/components/Toast.svelte +90 -0
  80. package/dist/components/Toast.svelte.d.ts +19 -0
  81. package/dist/components/Toggle.svelte +46 -0
  82. package/dist/components/Toggle.svelte.d.ts +21 -0
  83. package/dist/components/Tooltip.svelte +35 -0
  84. package/dist/components/Tooltip.svelte.d.ts +19 -0
  85. package/dist/components/accordion-styles.css +89 -0
  86. package/dist/components/alert-styles.css +66 -0
  87. package/dist/components/avatar-styles.css +50 -0
  88. package/dist/components/breadcrumb-styles.css +73 -0
  89. package/dist/components/button-styles.css +272 -0
  90. package/dist/components/buttongroup-styles.css +118 -0
  91. package/dist/components/card-styles.css +101 -0
  92. package/dist/components/carousel-styles.css +145 -0
  93. package/dist/components/charts/BarChart.svelte +5 -0
  94. package/dist/components/charts/BarChart.svelte.d.ts +29 -0
  95. package/dist/components/charts/BubbleChart.svelte +5 -0
  96. package/dist/components/charts/BubbleChart.svelte.d.ts +29 -0
  97. package/dist/components/charts/Chart.svelte +186 -0
  98. package/dist/components/charts/Chart.svelte.d.ts +37 -0
  99. package/dist/components/charts/ComboChart.svelte +5 -0
  100. package/dist/components/charts/ComboChart.svelte.d.ts +29 -0
  101. package/dist/components/charts/DoughnutChart.svelte +5 -0
  102. package/dist/components/charts/DoughnutChart.svelte.d.ts +29 -0
  103. package/dist/components/charts/LineChart.svelte +5 -0
  104. package/dist/components/charts/LineChart.svelte.d.ts +29 -0
  105. package/dist/components/charts/PieChart.svelte +5 -0
  106. package/dist/components/charts/PieChart.svelte.d.ts +29 -0
  107. package/dist/components/charts/PolarAreaChart.svelte +5 -0
  108. package/dist/components/charts/PolarAreaChart.svelte.d.ts +29 -0
  109. package/dist/components/charts/RadarChart.svelte +5 -0
  110. package/dist/components/charts/RadarChart.svelte.d.ts +29 -0
  111. package/dist/components/charts/ScatterChart.svelte +5 -0
  112. package/dist/components/charts/ScatterChart.svelte.d.ts +29 -0
  113. package/dist/components/charts/StackedBarChart.svelte +18 -0
  114. package/dist/components/charts/StackedBarChart.svelte.d.ts +29 -0
  115. package/dist/components/charts/StackedLineChart.svelte +21 -0
  116. package/dist/components/charts/StackedLineChart.svelte.d.ts +29 -0
  117. package/dist/components/charts/chart-config.d.ts +102 -0
  118. package/dist/components/charts/chart-config.js +616 -0
  119. package/dist/components/charts/chart-styles.css +159 -0
  120. package/dist/components/checkbox-styles.css +125 -0
  121. package/dist/components/chip-styles.css +107 -0
  122. package/dist/components/column-styles.css +6 -0
  123. package/dist/components/commandpalette-styles.css +162 -0
  124. package/dist/components/datepicker-styles.css +1011 -0
  125. package/dist/components/divider-styles.css +56 -0
  126. package/dist/components/drawer-styles.css +83 -0
  127. package/dist/components/dropdown-styles.css +128 -0
  128. package/dist/components/fab-styles.css +61 -0
  129. package/dist/components/fileupload-styles.css +125 -0
  130. package/dist/components/grid-styles.css +6 -0
  131. package/dist/components/iconbutton-styles.css +146 -0
  132. package/dist/components/input-styles.css +436 -0
  133. package/dist/components/modal-styles.css +103 -0
  134. package/dist/components/multiselect-styles.css +202 -0
  135. package/dist/components/pagination-styles.css +63 -0
  136. package/dist/components/popover-styles.css +122 -0
  137. package/dist/components/progressbar-styles.css +106 -0
  138. package/dist/components/radio-styles.css +120 -0
  139. package/dist/components/rating-styles.css +68 -0
  140. package/dist/components/row-styles.css +6 -0
  141. package/dist/components/select-styles.css +218 -0
  142. package/dist/components/skeleton-styles.css +48 -0
  143. package/dist/components/slider-styles.css +85 -0
  144. package/dist/components/spinner-styles.css +52 -0
  145. package/dist/components/stepper-styles.css +93 -0
  146. package/dist/components/table-styles.css +114 -0
  147. package/dist/components/tabs-styles.css +74 -0
  148. package/dist/components/textarea-styles.css +224 -0
  149. package/dist/components/theme-base.css +64 -0
  150. package/dist/components/theme.css +440 -0
  151. package/dist/components/toast-styles.css +106 -0
  152. package/dist/components/toggle-styles.css +131 -0
  153. package/dist/components/tooltip-styles.css +56 -0
  154. package/dist/config.d.ts +1 -0
  155. package/dist/config.js +9 -0
  156. package/dist/config.svelte.d.ts +25 -0
  157. package/dist/config.svelte.js +41 -0
  158. package/dist/index.d.ts +52 -0
  159. package/dist/index.js +69 -0
  160. package/package.json +65 -0
@@ -0,0 +1,86 @@
1
+ <script>
2
+ import "./textarea-styles.css";
3
+ import { defaults } from "../config.js";
4
+
5
+ let {
6
+ style: styleProp,
7
+ theme: themeProp,
8
+ value = $bindable(""),
9
+ placeholder = "",
10
+ label = "",
11
+ rows = 4,
12
+ maxlength = undefined,
13
+ disabled = false,
14
+ readonly = false,
15
+ required = false,
16
+ autoresize = false,
17
+ ...rest
18
+ } = $props();
19
+
20
+ const style = $derived(styleProp ?? defaults.style);
21
+ const theme = $derived(themeProp ?? defaults.theme);
22
+
23
+ let focused = $state(false);
24
+ let hasValue = $derived(
25
+ value !== "" && value !== null && value !== undefined,
26
+ );
27
+ let floated = $derived(focused || hasValue);
28
+ let charCount = $derived(value ? value.length : 0);
29
+
30
+ const styleClass = $derived(`s-textarea-${style}`);
31
+ const themeClass = $derived(`theme-${theme}`);
32
+ const uid = Math.random().toString(36).slice(2, 9);
33
+ const internalId = `textarea-${uid}`;
34
+
35
+ const floatingStyles = [
36
+ "material",
37
+ "material3",
38
+ "fluent",
39
+ "carbon",
40
+ "bootstrap",
41
+ "legacy-ios",
42
+ ];
43
+ const hasFloatingLabel = $derived(
44
+ floatingStyles.includes(style) && (label || placeholder),
45
+ );
46
+ const displayLabel = $derived(label || placeholder);
47
+
48
+ function handleInput(e) {
49
+ value = e.target.value;
50
+ if (autoresize) {
51
+ e.target.style.height = "auto";
52
+ e.target.style.height = e.target.scrollHeight + "px";
53
+ }
54
+ }
55
+ </script>
56
+
57
+ <div
58
+ class="s-textarea-wrapper {styleClass} {themeClass}"
59
+ class:disabled
60
+ class:focused
61
+ class:has-value={hasValue}
62
+ class:floated
63
+ >
64
+ {#if hasFloatingLabel}
65
+ <label class="s-textarea-floating-label" for={internalId}
66
+ >{displayLabel}</label
67
+ >
68
+ {/if}
69
+ <textarea
70
+ bind:value
71
+ placeholder={hasFloatingLabel ? "" : placeholder}
72
+ {disabled}
73
+ {readonly}
74
+ {required}
75
+ {rows}
76
+ {maxlength}
77
+ id={internalId}
78
+ oninput={handleInput}
79
+ onfocus={() => (focused = true)}
80
+ onblur={() => (focused = false)}
81
+ {...rest}
82
+ ></textarea>
83
+ {#if maxlength}
84
+ <span class="s-textarea-counter">{charCount}/{maxlength}</span>
85
+ {/if}
86
+ </div>
@@ -0,0 +1,31 @@
1
+ export default Textarea;
2
+ type Textarea = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ declare const Textarea: import("svelte").Component<{
7
+ style: any;
8
+ theme: any;
9
+ value?: string;
10
+ placeholder?: string;
11
+ label?: string;
12
+ rows?: number;
13
+ maxlength?: any;
14
+ disabled?: boolean;
15
+ readonly?: boolean;
16
+ required?: boolean;
17
+ autoresize?: boolean;
18
+ } & Record<string, any>, {}, "value">;
19
+ type $$ComponentProps = {
20
+ style: any;
21
+ theme: any;
22
+ value?: string;
23
+ placeholder?: string;
24
+ label?: string;
25
+ rows?: number;
26
+ maxlength?: any;
27
+ disabled?: boolean;
28
+ readonly?: boolean;
29
+ required?: boolean;
30
+ autoresize?: boolean;
31
+ } & Record<string, any>;
@@ -0,0 +1,90 @@
1
+ <script>
2
+ import "./toast-styles.css";
3
+ import { defaults, iconClass } from "../config.js";
4
+ import { fly } from "svelte/transition";
5
+
6
+ let {
7
+ style: styleProp,
8
+ theme: themeProp,
9
+ toasts = $bindable([]),
10
+ position = "top-right",
11
+ duration = 4000,
12
+ ...rest
13
+ } = $props();
14
+
15
+ const style = $derived(styleProp ?? defaults.style);
16
+ const theme = $derived(themeProp ?? defaults.theme);
17
+ const styleClass = $derived(`s-toast-${style}`);
18
+ const themeClass = $derived(`theme-${theme}`);
19
+
20
+ const icons = {
21
+ info: "ℹ",
22
+ success: "✓",
23
+ warning: "⚠",
24
+ error: "✕"
25
+ };
26
+
27
+ const flyParams = {
28
+ "top-right": { x: 20, y: -20 },
29
+ "top-left": { x: -20, y: -20 },
30
+ "top-center": { x: 0, y: -20 },
31
+ "bottom-right": { x: 20, y: 20 },
32
+ "bottom-left": { x: -20, y: 20 },
33
+ "bottom-center":{ x: 0, y: 20 }
34
+ };
35
+
36
+ function renderIcon(icon, variant) {
37
+ if (icon) {
38
+ if (icon.length === 1) return icon;
39
+ return `<span class="${iconClass}">${icon}</span>`;
40
+ }
41
+ return icons[variant] ?? "\u2139";
42
+ }
43
+
44
+ function removeToast(id) {
45
+ toasts = toasts.filter(t => t.id !== id);
46
+ }
47
+
48
+ function handleDismiss(id, e) {
49
+ e.stopPropagation();
50
+ removeToast(id);
51
+ }
52
+ </script>
53
+
54
+ <div
55
+ class="s-toast-container toast-{position} {styleClass} {themeClass}"
56
+ {...rest}
57
+ >
58
+ {#each toasts as toast (toast.id)}
59
+ {#key toast.id}
60
+ <div
61
+ class="s-toast s-toast-{toast.variant} {styleClass} {themeClass}"
62
+ transition:fly={{
63
+ ...flyParams[position],
64
+ duration: 300,
65
+ opacity: 0
66
+ }}
67
+ role="alert"
68
+ >
69
+ <span class="s-toast-icon">{@html renderIcon(toast.icon, toast.variant)}</span>
70
+ <div class="s-toast-content">
71
+ {#if toast.title}
72
+ <div class="s-toast-title">{toast.title}</div>
73
+ {/if}
74
+ <div class="s-toast-message">{toast.message}</div>
75
+ </div>
76
+ <button
77
+ class="s-toast-close"
78
+ onclick={(e) => handleDismiss(toast.id, e)}
79
+ aria-label="Dismiss"
80
+ >&times;</button>
81
+ {#if toast.duration > 0}
82
+ <div
83
+ class="s-toast-progress"
84
+ style="animation-duration: {toast.duration}ms"
85
+ ></div>
86
+ {/if}
87
+ </div>
88
+ {/key}
89
+ {/each}
90
+ </div>
@@ -0,0 +1,19 @@
1
+ export default Toast;
2
+ type Toast = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ declare const Toast: import("svelte").Component<{
7
+ style: any;
8
+ theme: any;
9
+ toasts?: any[];
10
+ position?: string;
11
+ duration?: number;
12
+ } & Record<string, any>, {}, "toasts">;
13
+ type $$ComponentProps = {
14
+ style: any;
15
+ theme: any;
16
+ toasts?: any[];
17
+ position?: string;
18
+ duration?: number;
19
+ } & Record<string, any>;
@@ -0,0 +1,46 @@
1
+ <script>
2
+ import "./toggle-styles.css";
3
+ import { defaults } from "../config.js";
4
+
5
+ let {
6
+ style: styleProp,
7
+ theme: themeProp,
8
+ checked = $bindable(false),
9
+ label = "",
10
+ disabled = false,
11
+ size = "md",
12
+ ...rest
13
+ } = $props();
14
+
15
+ const style = $derived(styleProp ?? defaults.style);
16
+ const theme = $derived(themeProp ?? defaults.theme);
17
+
18
+ const styleClass = $derived(`s-toggle-${style}`);
19
+ const themeClass = $derived(`theme-${theme}`);
20
+ const sizeClass = $derived(`toggle-${size}`);
21
+ const uid = Math.random().toString(36).slice(2, 9);
22
+ const internalId = `toggle-${uid}`;
23
+ </script>
24
+
25
+ <label
26
+ class="s-toggle {styleClass} {themeClass} {sizeClass}"
27
+ class:disabled
28
+ class:checked
29
+ for={internalId}
30
+ >
31
+ <input
32
+ type="checkbox"
33
+ bind:checked
34
+ {disabled}
35
+ id={internalId}
36
+ role="switch"
37
+ aria-checked={checked}
38
+ {...rest}
39
+ />
40
+ <span class="s-toggle-track">
41
+ <span class="s-toggle-thumb"></span>
42
+ </span>
43
+ {#if label}
44
+ <span class="s-toggle-label">{label}</span>
45
+ {/if}
46
+ </label>
@@ -0,0 +1,21 @@
1
+ export default Toggle;
2
+ type Toggle = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ declare const Toggle: import("svelte").Component<{
7
+ style: any;
8
+ theme: any;
9
+ checked?: boolean;
10
+ label?: string;
11
+ disabled?: boolean;
12
+ size?: string;
13
+ } & Record<string, any>, {}, "checked">;
14
+ type $$ComponentProps = {
15
+ style: any;
16
+ theme: any;
17
+ checked?: boolean;
18
+ label?: string;
19
+ disabled?: boolean;
20
+ size?: string;
21
+ } & Record<string, any>;
@@ -0,0 +1,35 @@
1
+ <script>
2
+ import "./tooltip-styles.css";
3
+ import { defaults } from "../config.js";
4
+
5
+ let {
6
+ style: styleProp,
7
+ theme: themeProp,
8
+ text = "",
9
+ position = "top",
10
+ children,
11
+ ...rest
12
+ } = $props();
13
+
14
+ const style = $derived(styleProp ?? defaults.style);
15
+ const theme = $derived(themeProp ?? defaults.theme);
16
+
17
+ const styleClass = $derived(`s-tooltip-${style}`);
18
+ const themeClass = $derived(`theme-${theme}`);
19
+
20
+ let visible = $state(false);
21
+ </script>
22
+
23
+ <div
24
+ class="s-tooltip-wrapper {styleClass} {themeClass}"
25
+ onmouseenter={() => (visible = true)}
26
+ onmouseleave={() => (visible = false)}
27
+ onfocusin={() => (visible = true)}
28
+ onfocusout={() => (visible = false)}
29
+ {...rest}
30
+ >
31
+ {@render children?.()}
32
+ {#if visible && text}
33
+ <div class="s-tooltip tooltip-{position}" role="tooltip">{text}</div>
34
+ {/if}
35
+ </div>
@@ -0,0 +1,19 @@
1
+ export default Tooltip;
2
+ type Tooltip = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ declare const Tooltip: import("svelte").Component<{
7
+ style: any;
8
+ theme: any;
9
+ text?: string;
10
+ position?: string;
11
+ children: any;
12
+ } & Record<string, any>, {}, "">;
13
+ type $$ComponentProps = {
14
+ style: any;
15
+ theme: any;
16
+ text?: string;
17
+ position?: string;
18
+ children: any;
19
+ } & Record<string, any>;
@@ -0,0 +1,89 @@
1
+ /* ===== BASE ===== */
2
+ /* Theme-controlled: colors, border-width, shadow, radius. Style-controlled: shape. */
3
+ .s-accordion {
4
+ width: 100%;
5
+ border: var(--t-border-width) solid var(--t-border);
6
+ border-radius: var(--t-card-radius);
7
+ overflow: hidden;
8
+ }
9
+ .s-accordion-item { border-bottom: 1px solid var(--t-border); }
10
+ .s-accordion-item:last-child { border-bottom: none; }
11
+ .s-accordion-header {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: space-between;
15
+ gap: 12px;
16
+ padding: 14px 16px;
17
+ background: var(--t-surface);
18
+ color: var(--t-text);
19
+ cursor: pointer;
20
+ font-size: 14px;
21
+ font-weight: 500;
22
+ border: none;
23
+ width: 100%;
24
+ text-align: left;
25
+ transition: background 0.2s;
26
+ }
27
+ .s-accordion-header:hover { background: color-mix(in srgb, var(--t-primary) 4%, var(--t-surface)); }
28
+ .s-accordion-content {
29
+ padding: 0 16px 14px;
30
+ font-size: 14px;
31
+ color: var(--t-text);
32
+ }
33
+ .s-accordion-arrow {
34
+ flex-shrink: 0;
35
+ transition: transform 0.2s;
36
+ color: var(--t-text-muted);
37
+ }
38
+ .s-accordion-item.open .s-accordion-arrow { transform: rotate(180deg); }
39
+
40
+ /* ===== STYLE OVERRIDES ===== */
41
+
42
+ /* Brutalist */
43
+ .s-accordion-brutalist { border: var(--t-border-width) solid var(--t-text); border-radius: 0; box-shadow: 4px 4px 0 var(--t-text); }
44
+ .s-accordion-brutalist .s-accordion-item { border-color: var(--t-text); }
45
+ .s-accordion-brutalist .s-accordion-header { font-family: 'Courier New', monospace; font-weight: bold; }
46
+
47
+ /* Pixel */
48
+ .s-accordion-pixel { border: var(--t-border-width) solid var(--t-primary); border-radius: 0; }
49
+ .s-accordion-pixel .s-accordion-header { font-family: 'Courier New', monospace; }
50
+
51
+ /* Neon */
52
+ .s-accordion-neon { border-color: var(--t-primary); box-shadow: 0 0 5px var(--t-primary); }
53
+
54
+ /* Metro */
55
+ .s-accordion-metro { border-radius: 0; border: var(--t-border-width) solid var(--t-primary); box-shadow: none; }
56
+ .s-accordion-metro .s-accordion-header { font-weight: 600; }
57
+
58
+ /* Bootstrap */
59
+ .s-accordion-bootstrap { border-radius: 6px; border: var(--t-border-width) solid var(--t-border); box-shadow: var(--t-shadow-xs); }
60
+
61
+ /* Cartoon */
62
+ .s-accordion-cartoon { border-radius: 16px; border: var(--t-border-width) solid var(--t-text); box-shadow: 4px 4px 0 var(--t-primary); }
63
+ .s-accordion-cartoon .s-accordion-header { font-weight: 700; }
64
+
65
+ /* Illustration */
66
+ .s-accordion-illustration { border-radius: 8px; border: var(--t-border-width) solid var(--t-text); box-shadow: 3px 3px 0 var(--t-border); }
67
+ .s-accordion-illustration .s-accordion-header { font-style: italic; }
68
+
69
+ /* Carbon */
70
+ .s-accordion-carbon { border-radius: 0; border: var(--t-border-width) solid var(--t-border); }
71
+ .s-accordion-carbon .s-accordion-header { font-family: 'IBM Plex Sans', sans-serif; }
72
+
73
+ /* Liquid Glass */
74
+ .s-accordion-liquid-glass {
75
+ border-radius: 16px;
76
+ backdrop-filter: blur(24px) saturate(1.6);
77
+ background: rgba(255,255,255,0.1);
78
+ border: 1px solid rgba(255,255,255,0.2);
79
+ box-shadow: var(--t-shadow-md), inset 0 1px 0 rgba(255,255,255,0.3);
80
+ }
81
+ .s-accordion-liquid-glass .s-accordion-header { background: transparent; }
82
+
83
+ /* Legacy iOS */
84
+ .s-accordion-legacy-ios {
85
+ border-radius: 10px;
86
+ border: var(--t-border-width) solid var(--t-border);
87
+ background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, var(--t-surface) 100%);
88
+ box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), var(--t-shadow-xs);
89
+ }
@@ -0,0 +1,66 @@
1
+ /* ===== BASE ===== */
2
+ /* Theme-controlled: surface, border-width, shadow. Style-controlled: shape. */
3
+ .s-alert {
4
+ display: flex;
5
+ align-items: flex-start;
6
+ gap: 12px;
7
+ padding: 14px 16px;
8
+ border: var(--t-border-width) solid var(--t-border);
9
+ border-radius: var(--t-card-radius);
10
+ background: var(--t-surface);
11
+ color: var(--t-text);
12
+ font-size: 14px;
13
+ position: relative;
14
+ }
15
+ .s-alert-icon { flex-shrink: 0; font-size: 18px; }
16
+ .s-alert-content { flex: 1; }
17
+ .s-alert-title { display: block; font-weight: 600; margin-bottom: 2px; }
18
+ .s-alert-body { line-height: 1.5; }
19
+ .s-alert-dismiss {
20
+ position: absolute;
21
+ top: 10px;
22
+ right: 10px;
23
+ background: none;
24
+ border: none;
25
+ cursor: pointer;
26
+ color: var(--t-text-muted);
27
+ font-size: 16px;
28
+ line-height: 1;
29
+ padding: 0;
30
+ }
31
+ .s-alert-info { border-color: var(--t-info); background: color-mix(in srgb, var(--t-info) 8%, var(--t-surface)); }
32
+ .s-alert-success { border-color: var(--t-success); background: color-mix(in srgb, var(--t-success) 8%, var(--t-surface)); }
33
+ .s-alert-warning { border-color: var(--t-warning); background: color-mix(in srgb, var(--t-warning) 8%, var(--t-surface)); }
34
+ .s-alert-error { border-color: var(--t-error); background: color-mix(in srgb, var(--t-error) 8%, var(--t-surface)); }
35
+
36
+ /* ===== STYLE OVERRIDES ===== */
37
+
38
+ /* Brutalist */
39
+ .s-alert-brutalist { border: var(--t-border-width) solid var(--t-text); border-radius: 0; box-shadow: 4px 4px 0 var(--t-text); font-family: 'Courier New', monospace; }
40
+
41
+ /* Pixel */
42
+ .s-alert-pixel { border: var(--t-border-width) solid var(--t-primary); border-radius: 0; font-family: 'Courier New', monospace; }
43
+
44
+ /* Neon */
45
+ .s-alert-neon { border-color: var(--t-primary); box-shadow: 0 0 5px var(--t-primary); }
46
+
47
+ /* Metro */
48
+ .s-alert-metro { border-radius: 0; border: var(--t-border-width) solid var(--t-primary); border-left-width: 4px; font-weight: 600; box-shadow: none; }
49
+
50
+ /* Bootstrap */
51
+ .s-alert-bootstrap { border-radius: 6px; border: var(--t-border-width) solid var(--t-border); box-shadow: var(--t-shadow-xs); }
52
+
53
+ /* Cartoon */
54
+ .s-alert-cartoon { border-radius: 16px; border: var(--t-border-width) solid var(--t-text); box-shadow: 4px 4px 0 var(--t-primary); font-weight: 700; }
55
+
56
+ /* Illustration */
57
+ .s-alert-illustration { border-radius: 8px; border: var(--t-border-width) solid var(--t-text); box-shadow: 3px 3px 0 var(--t-border); font-style: italic; }
58
+
59
+ /* Carbon */
60
+ .s-alert-carbon { border-radius: 0; border: var(--t-border-width) solid var(--t-border); border-left-width: 3px; border-left-color: var(--t-primary); font-family: 'IBM Plex Sans', sans-serif; }
61
+
62
+ /* Liquid Glass */
63
+ .s-alert-liquid-glass { border-radius: 16px; backdrop-filter: blur(24px) saturate(1.6); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); box-shadow: var(--t-shadow-md), inset 0 1px 0 rgba(255,255,255,0.3); }
64
+
65
+ /* Legacy iOS */
66
+ .s-alert-legacy-ios { border-radius: 10px; border: var(--t-border-width) solid var(--t-border); background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, var(--t-surface) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), var(--t-shadow-xs); }
@@ -0,0 +1,50 @@
1
+ /* ===== BASE ===== */
2
+ /* Theme-controlled: background, border color, shadow. Style-controlled: shape. */
3
+ .s-avatar {
4
+ display: inline-flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ border-radius: 50%;
8
+ background: color-mix(in srgb, var(--t-primary) 15%, var(--t-surface));
9
+ color: var(--t-primary);
10
+ font-weight: 600;
11
+ overflow: hidden;
12
+ border: var(--t-border-width) solid var(--t-border);
13
+ transition: all 0.2s ease;
14
+ }
15
+ .s-avatar.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
16
+ .s-avatar.avatar-md { width: 40px; height: 40px; font-size: 14px; }
17
+ .s-avatar.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
18
+ .s-avatar img { width: 100%; height: 100%; object-fit: cover; }
19
+
20
+ /* ===== STYLE OVERRIDES ===== */
21
+
22
+ /* Brutalist */
23
+ .s-avatar-brutalist { border-radius: 0; border: var(--t-border-width) solid var(--t-text); box-shadow: 3px 3px 0 var(--t-text); }
24
+
25
+ /* Pixel */
26
+ .s-avatar-pixel { border-radius: 0; border: var(--t-border-width) solid var(--t-primary); }
27
+
28
+ /* Neon */
29
+ .s-avatar-neon { border-color: var(--t-primary); box-shadow: 0 0 5px var(--t-primary), 0 0 10px var(--t-shadow); }
30
+
31
+ /* Metro */
32
+ .s-avatar-metro { border-radius: 0; border: var(--t-border-width) solid var(--t-primary); box-shadow: none; }
33
+
34
+ /* Bootstrap */
35
+ .s-avatar-bootstrap { border: var(--t-border-width) solid var(--t-border); box-shadow: var(--t-shadow-xs); }
36
+
37
+ /* Cartoon */
38
+ .s-avatar-cartoon { border: var(--t-border-width) solid var(--t-text); box-shadow: 3px 3px 0 var(--t-primary); }
39
+
40
+ /* Illustration */
41
+ .s-avatar-illustration { border: var(--t-border-width) solid var(--t-text); box-shadow: 2px 2px 0 var(--t-border); }
42
+
43
+ /* Carbon */
44
+ .s-avatar-carbon { border-radius: 50%; border: var(--t-border-width) solid var(--t-border); }
45
+
46
+ /* Liquid Glass */
47
+ .s-avatar-liquid-glass { backdrop-filter: blur(16px); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
48
+
49
+ /* Legacy iOS */
50
+ .s-avatar-legacy-ios { border: var(--t-border-width) solid var(--t-border); background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, var(--t-surface) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); }
@@ -0,0 +1,73 @@
1
+ /* ===== BASE ===== */
2
+ /* Theme-controlled: colors. Style-controlled: typography. */
3
+ .s-breadcrumb {
4
+ display: flex;
5
+ align-items: center;
6
+ gap: 8px;
7
+ font-size: 14px;
8
+ color: var(--t-text-muted);
9
+ }
10
+ .s-breadcrumb-list {
11
+ display: flex;
12
+ align-items: center;
13
+ gap: 8px;
14
+ list-style: none;
15
+ margin: 0;
16
+ padding: 0;
17
+ }
18
+ .s-breadcrumb-item {
19
+ display: flex;
20
+ align-items: center;
21
+ gap: 8px;
22
+ }
23
+ .s-breadcrumb-item a,
24
+ .s-breadcrumb-item span {
25
+ color: var(--t-text-muted);
26
+ text-decoration: none;
27
+ transition: color 0.2s;
28
+ }
29
+ .s-breadcrumb-item a:hover { color: var(--t-primary); }
30
+ .s-breadcrumb-item.current a,
31
+ .s-breadcrumb-item.current span { color: var(--t-text); font-weight: 500; }
32
+ .s-breadcrumb-sep { color: var(--t-border); font-size: 12px; }
33
+
34
+ /* ===== STYLE OVERRIDES ===== */
35
+
36
+ /* Brutalist */
37
+ .s-breadcrumb-brutalist { font-family: 'Courier New', monospace; font-weight: bold; }
38
+ .s-breadcrumb-brutalist .s-breadcrumb-sep { color: var(--t-text); }
39
+
40
+ /* Pixel */
41
+ .s-breadcrumb-pixel { font-family: 'Courier New', monospace; }
42
+
43
+ /* Neon */
44
+ .s-breadcrumb-neon .s-breadcrumb-item a:hover { text-shadow: 0 0 4px var(--t-primary); }
45
+
46
+ /* Metro */
47
+ .s-breadcrumb-metro { font-weight: 600; }
48
+ .s-breadcrumb-metro .s-breadcrumb-item a:hover { color: var(--t-primary); }
49
+
50
+ /* Bootstrap */
51
+ .s-breadcrumb-bootstrap .s-breadcrumb-item a,
52
+ .s-breadcrumb-bootstrap .s-breadcrumb-item span { color: var(--t-primary); }
53
+ .s-breadcrumb-bootstrap .s-breadcrumb-item.current a,
54
+ .s-breadcrumb-bootstrap .s-breadcrumb-item.current span { color: var(--t-text); }
55
+
56
+ /* Cartoon */
57
+ .s-breadcrumb-cartoon { font-weight: 700; }
58
+ .s-breadcrumb-cartoon .s-breadcrumb-sep { font-size: 16px; }
59
+
60
+ /* Illustration */
61
+ .s-breadcrumb-illustration { font-style: italic; }
62
+
63
+ /* Carbon */
64
+ .s-breadcrumb-carbon { font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; }
65
+
66
+ /* Liquid Glass */
67
+ .s-breadcrumb-liquid-glass .s-breadcrumb-item a:hover { color: var(--t-primary); }
68
+
69
+ /* Legacy iOS */
70
+ .s-breadcrumb-legacy-ios .s-breadcrumb-item a,
71
+ .s-breadcrumb-legacy-ios .s-breadcrumb-item span { color: var(--t-primary); }
72
+ .s-breadcrumb-legacy-ios .s-breadcrumb-item.current a,
73
+ .s-breadcrumb-legacy-ios .s-breadcrumb-item.current span { color: var(--t-text); }