@tolle_/tolle-ui 18.2.24 → 18.2.26
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.
- package/esm2022/lib/accordion-item.component.mjs +17 -5
- package/esm2022/lib/alert-dialog-dynamic.component.mjs +1 -1
- package/esm2022/lib/alert-dialog.component.mjs +48 -10
- package/esm2022/lib/alert-dialog.service.mjs +13 -2
- package/esm2022/lib/alert.component.mjs +5 -5
- package/esm2022/lib/avatar.component.mjs +30 -9
- package/esm2022/lib/badge.component.mjs +41 -15
- package/esm2022/lib/breadcrumb-link.component.mjs +5 -5
- package/esm2022/lib/button.component.mjs +14 -3
- package/esm2022/lib/calendar.component.mjs +99 -17
- package/esm2022/lib/card.component.mjs +29 -9
- package/esm2022/lib/carousel/carousel.component.mjs +19 -3
- package/esm2022/lib/checkbox.component.mjs +44 -21
- package/esm2022/lib/collapsible.component.mjs +12 -4
- package/esm2022/lib/country-selector.component.mjs +140 -20
- package/esm2022/lib/data-table.component.mjs +27 -16
- package/esm2022/lib/date-picker.component.mjs +24 -4
- package/esm2022/lib/date-range-picker.component.mjs +37 -9
- package/esm2022/lib/dropdown-item.component.mjs +19 -5
- package/esm2022/lib/dropdown-label.component.mjs +3 -3
- package/esm2022/lib/dropdown-menu.component.mjs +3 -3
- package/esm2022/lib/dropdown-separator.component.mjs +3 -3
- package/esm2022/lib/dropdown-trigger.directive.mjs +7 -3
- package/esm2022/lib/empty-state.component.mjs +3 -3
- package/esm2022/lib/hover-card.component.mjs +4 -2
- package/esm2022/lib/input.component.mjs +7 -5
- package/esm2022/lib/label.component.mjs +2 -2
- package/esm2022/lib/masked-input.component.mjs +3 -3
- package/esm2022/lib/modal.component.mjs +58 -22
- package/esm2022/lib/modal.service.mjs +13 -1
- package/esm2022/lib/multi-select.component.mjs +228 -20
- package/esm2022/lib/otp.component.mjs +6 -3
- package/esm2022/lib/pagination.component.mjs +19 -9
- package/esm2022/lib/progress.component.mjs +8 -5
- package/esm2022/lib/radio-group.component.mjs +51 -3
- package/esm2022/lib/radio-item.component.mjs +46 -8
- package/esm2022/lib/radio-service.mjs +60 -1
- package/esm2022/lib/range-calendar.component.mjs +317 -98
- package/esm2022/lib/resizable-panel.component.mjs +5 -4
- package/esm2022/lib/scroll-area.component.mjs +5 -5
- package/esm2022/lib/segment.component.mjs +73 -7
- package/esm2022/lib/select-item.component.mjs +20 -2
- package/esm2022/lib/select-separator.component.mjs +3 -3
- package/esm2022/lib/select.component.mjs +221 -14
- package/esm2022/lib/separator.component.mjs +12 -6
- package/esm2022/lib/sheet-ref.mjs +8 -1
- package/esm2022/lib/sheet-wrapper.component.mjs +27 -11
- package/esm2022/lib/sheet.component.mjs +57 -16
- package/esm2022/lib/sheet.service.mjs +5 -1
- package/esm2022/lib/sidebar.component.mjs +73 -15
- package/esm2022/lib/skeleton.component.mjs +19 -5
- package/esm2022/lib/switch.component.mjs +59 -53
- package/esm2022/lib/tabs.component.mjs +75 -13
- package/esm2022/lib/tag-input.component.mjs +6 -3
- package/esm2022/lib/textarea.component.mjs +9 -7
- package/esm2022/lib/theme.service.mjs +114 -138
- package/esm2022/lib/toaster.component.mjs +19 -9
- package/esm2022/lib/toggle-group.component.mjs +76 -4
- package/esm2022/lib/tolle-config.mjs +1 -1
- package/esm2022/lib/tooltip.directive.mjs +41 -17
- package/esm2022/lib/utils/color.mjs +324 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/tolle-ui.mjs +2645 -637
- package/fesm2022/tolle-ui.mjs.map +1 -1
- package/lib/alert-dialog.component.d.ts +10 -1
- package/lib/avatar.component.d.ts +16 -3
- package/lib/badge.component.d.ts +17 -5
- package/lib/button.component.d.ts +10 -3
- package/lib/calendar.component.d.ts +21 -3
- package/lib/card.component.d.ts +6 -0
- package/lib/carousel/carousel.component.d.ts +1 -0
- package/lib/checkbox.component.d.ts +12 -4
- package/lib/country-selector.component.d.ts +11 -2
- package/lib/date-picker.component.d.ts +1 -0
- package/lib/date-range-picker.component.d.ts +4 -1
- package/lib/dropdown-item.component.d.ts +4 -2
- package/lib/dropdown-trigger.directive.d.ts +1 -1
- package/lib/modal.component.d.ts +6 -0
- package/lib/multi-select.component.d.ts +20 -0
- package/lib/otp.component.d.ts +1 -0
- package/lib/progress.component.d.ts +1 -0
- package/lib/radio-group.component.d.ts +8 -0
- package/lib/radio-item.component.d.ts +10 -4
- package/lib/radio-service.d.ts +29 -0
- package/lib/range-calendar.component.d.ts +33 -4
- package/lib/segment.component.d.ts +13 -0
- package/lib/select-item.component.d.ts +4 -1
- package/lib/select.component.d.ts +20 -0
- package/lib/separator.component.d.ts +2 -0
- package/lib/sheet-wrapper.component.d.ts +4 -0
- package/lib/sheet.component.d.ts +10 -1
- package/lib/sidebar.component.d.ts +2 -0
- package/lib/skeleton.component.d.ts +9 -3
- package/lib/switch.component.d.ts +13 -20
- package/lib/tabs.component.d.ts +11 -1
- package/lib/theme.service.d.ts +21 -6
- package/lib/toaster.component.d.ts +2 -2
- package/lib/toggle-group.component.d.ts +20 -2
- package/lib/toggle.component.d.ts +1 -1
- package/lib/tolle-config.d.ts +8 -0
- package/lib/tooltip.directive.d.ts +3 -0
- package/lib/utils/color.d.ts +87 -0
- package/package.json +4 -1
- package/preset.js +28 -0
- package/public-api.d.ts +1 -0
- package/registry/docs-content.json +4214 -0
- package/registry/llms-full.txt +1599 -0
- package/registry/llms.txt +83 -0
- package/registry/manifest.json +4925 -0
- package/registry/r/accordion-item.json +21 -0
- package/registry/r/accordion.json +23 -0
- package/registry/r/alert-dialog-dynamic.json +31 -0
- package/registry/r/alert-dialog.json +26 -0
- package/registry/r/alert.json +23 -0
- package/registry/r/aspect-ratio.json +21 -0
- package/registry/r/avatar-fallback.json +16 -0
- package/registry/r/avatar.json +23 -0
- package/registry/r/badge.json +23 -0
- package/registry/r/breadcrumb-item.json +16 -0
- package/registry/r/breadcrumb-link.json +16 -0
- package/registry/r/breadcrumb-separator.json +16 -0
- package/registry/r/breadcrumb.json +21 -0
- package/registry/r/button-group.json +21 -0
- package/registry/r/button.json +23 -0
- package/registry/r/calendar.json +23 -0
- package/registry/r/card.json +21 -0
- package/registry/r/carousel.json +18 -0
- package/registry/r/checkbox.json +23 -0
- package/registry/r/collapsible.json +21 -0
- package/registry/r/context-menu-trigger.json +23 -0
- package/registry/r/context-menu.json +28 -0
- package/registry/r/country-selector.json +31 -0
- package/registry/r/data-table.json +38 -0
- package/registry/r/date-picker.json +27 -0
- package/registry/r/date-range-picker.json +32 -0
- package/registry/r/dropdown-item.json +21 -0
- package/registry/r/dropdown-label.json +16 -0
- package/registry/r/dropdown-menu.json +16 -0
- package/registry/r/dropdown-separator.json +16 -0
- package/registry/r/dropdown-trigger.json +20 -0
- package/registry/r/empty-state.json +23 -0
- package/registry/r/hover-card.json +23 -0
- package/registry/r/input.json +21 -0
- package/registry/r/label.json +21 -0
- package/registry/r/masked-input.json +21 -0
- package/registry/r/modal.json +36 -0
- package/registry/r/multi-select.json +33 -0
- package/registry/r/otp-group.json +16 -0
- package/registry/r/otp-slot.json +21 -0
- package/registry/r/otp.json +21 -0
- package/registry/r/pagination.json +32 -0
- package/registry/r/phone-number-input.json +34 -0
- package/registry/r/popover-content.json +21 -0
- package/registry/r/popover.json +18 -0
- package/registry/r/progress.json +21 -0
- package/registry/r/radio-group.json +26 -0
- package/registry/r/radio-item.json +26 -0
- package/registry/r/range-calendar.json +28 -0
- package/registry/r/resizable-panel-item.json +23 -0
- package/registry/r/resizable-panel.json +23 -0
- package/registry/r/resizable.json +21 -0
- package/registry/r/scroll-area.json +21 -0
- package/registry/r/segment.json +21 -0
- package/registry/r/select-group.json +21 -0
- package/registry/r/select-item.json +26 -0
- package/registry/r/select-separator.json +21 -0
- package/registry/r/select.json +31 -0
- package/registry/r/separator.json +21 -0
- package/registry/r/sheet-wrapper.json +31 -0
- package/registry/r/sheet.json +21 -0
- package/registry/r/sidebar.json +21 -0
- package/registry/r/skeleton.json +23 -0
- package/registry/r/slider.json +21 -0
- package/registry/r/switch.json +23 -0
- package/registry/r/tabs.json +23 -0
- package/registry/r/tag-input.json +25 -0
- package/registry/r/textarea.json +21 -0
- package/registry/r/toaster.json +26 -0
- package/registry/r/toggle-group.json +25 -0
- package/registry/r/toggle.json +23 -0
- package/registry/r/tolle-cell.json +16 -0
- package/registry/r/tooltip.json +23 -0
- package/registry/registry.json +1540 -0
- package/theme.css +56 -1
package/theme.css
CHANGED
|
@@ -34,6 +34,17 @@
|
|
|
34
34
|
/* #ef4444 in RGB */
|
|
35
35
|
--destructive-foreground: 250 250 250;
|
|
36
36
|
|
|
37
|
+
/* --- Status colors (success / warning / info) --- */
|
|
38
|
+
--success: 22 163 74;
|
|
39
|
+
/* green-600 */
|
|
40
|
+
--success-foreground: 255 255 255;
|
|
41
|
+
--warning: 217 119 6;
|
|
42
|
+
/* amber-600 */
|
|
43
|
+
--warning-foreground: 255 255 255;
|
|
44
|
+
--info: 37 99 235;
|
|
45
|
+
/* blue-600 */
|
|
46
|
+
--info-foreground: 255 255 255;
|
|
47
|
+
|
|
37
48
|
/* --- UI Elements --- */
|
|
38
49
|
--border: 228 228 231;
|
|
39
50
|
/* #e4e4e7 in RGB */
|
|
@@ -42,6 +53,18 @@
|
|
|
42
53
|
/* derives from primary color */
|
|
43
54
|
--radius: 0.5rem;
|
|
44
55
|
|
|
56
|
+
/* --- Typography (themeable via the theme generator / ThemeService) --- */
|
|
57
|
+
--font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
58
|
+
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
|
|
59
|
+
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
|
60
|
+
|
|
61
|
+
/* --- Charts (themeable via the theme generator / ThemeService) --- */
|
|
62
|
+
--chart-1: 37 99 235;
|
|
63
|
+
--chart-2: 20 184 166;
|
|
64
|
+
--chart-3: 234 88 12;
|
|
65
|
+
--chart-4: 139 92 246;
|
|
66
|
+
--chart-5: 236 72 153;
|
|
67
|
+
|
|
45
68
|
/* --- Shadows --- */
|
|
46
69
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
47
70
|
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
|
@@ -75,11 +98,28 @@
|
|
|
75
98
|
/* #7f1d1d in RGB */
|
|
76
99
|
--destructive-foreground: 254 242 242;
|
|
77
100
|
|
|
101
|
+
/* --- Status colors (brighter for dark surfaces) --- */
|
|
102
|
+
--success: 74 222 128;
|
|
103
|
+
/* green-400 */
|
|
104
|
+
--success-foreground: 5 46 22;
|
|
105
|
+
--warning: 251 191 36;
|
|
106
|
+
/* amber-400 */
|
|
107
|
+
--warning-foreground: 66 32 6;
|
|
108
|
+
--info: 96 165 250;
|
|
109
|
+
/* blue-400 */
|
|
110
|
+
--info-foreground: 23 37 84;
|
|
111
|
+
|
|
78
112
|
--border: 39 39 42;
|
|
79
113
|
--input: 39 39 42;
|
|
80
114
|
--ring: var(--primary);
|
|
81
115
|
/* derives from primary color */
|
|
82
116
|
|
|
117
|
+
--chart-1: 59 130 246;
|
|
118
|
+
--chart-2: 45 212 191;
|
|
119
|
+
--chart-3: 251 146 60;
|
|
120
|
+
--chart-4: 167 139 250;
|
|
121
|
+
--chart-5: 244 114 182;
|
|
122
|
+
|
|
83
123
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
|
84
124
|
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
|
|
85
125
|
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
|
|
@@ -96,11 +136,25 @@
|
|
|
96
136
|
|
|
97
137
|
/* Base text color inheritance - THIS IS KEY */
|
|
98
138
|
* {
|
|
99
|
-
border-color: var(--border, #e4e4e7);
|
|
100
139
|
scrollbar-width: thin;
|
|
101
140
|
scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
|
|
102
141
|
}
|
|
103
142
|
|
|
143
|
+
/*
|
|
144
|
+
* Default border color for every element that uses a bare `border` utility.
|
|
145
|
+
* Two bugs made bare borders render as a near-white `currentColor` line on dark
|
|
146
|
+
* overlays (calendars, popovers, dropdowns…):
|
|
147
|
+
* 1. `--border` is an RGB triplet ("39 39 42"), so it must be wrapped in rgb();
|
|
148
|
+
* used raw the declaration is invalid and silently dropped.
|
|
149
|
+
* 2. The docs pipeline emits `@tailwind base` a second time AFTER this file, so
|
|
150
|
+
* a plain `*` selector loses to preflight's gray-200 default by source order.
|
|
151
|
+
* The `html *` selector (specificity 0,0,1) beats preflight's `*` (0,0,0)
|
|
152
|
+
* regardless of order, while still yielding to any `border-<color>` utility (0,1,0).
|
|
153
|
+
*/
|
|
154
|
+
html * {
|
|
155
|
+
border-color: rgb(var(--border, 228 228 231));
|
|
156
|
+
}
|
|
157
|
+
|
|
104
158
|
*::-webkit-scrollbar {
|
|
105
159
|
width: 5px;
|
|
106
160
|
height: 5px;
|
|
@@ -126,6 +180,7 @@ html {
|
|
|
126
180
|
body {
|
|
127
181
|
background-color: var(--background, #ffffff);
|
|
128
182
|
color: var(--foreground, #0a0a0a);
|
|
183
|
+
font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
|
|
129
184
|
-webkit-font-smoothing: antialiased;
|
|
130
185
|
-moz-osx-font-smoothing: grayscale;
|
|
131
186
|
font-feature-settings: "rlig" 1, "calt" 1;
|