@dominevo/ui-library 0.1.1 → 0.1.3
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/CHANGELOG.md +15 -0
- package/dist/composites/angle-range-arc/angle-range-arc.d.ts +22 -0
- package/dist/composites/angle-range-arc/angle-range.d.ts +35 -0
- package/dist/composites/angle-range-arc/index.d.ts +2 -0
- package/dist/composites/app-shell/index.d.ts +2 -0
- package/dist/composites/app-shell/sidebar-accent.d.ts +16 -0
- package/dist/composites/app-shell/sidebar-section.d.ts +16 -0
- package/dist/composites/device-card/__fixtures__/heat-pump.d.ts +1 -0
- package/dist/composites/device-card/parts/ButtonGroup.d.ts +10 -2
- package/dist/composites/device-card/scenes/fan/model.d.ts +2 -2
- package/dist/composites/device-card/scenes/heat-pump/HeatPumpCard.d.ts +4 -2
- package/dist/composites/device-card/scenes/heat-pump/model.d.ts +6 -0
- package/dist/composites/device-card/shell/DeviceCard.d.ts +17 -1
- package/dist/composites/index.d.ts +1 -0
- package/dist/composites/setting-row.d.ts +6 -1
- package/dist/generated/system-hooks.d.ts +8 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-collapsed-sections.d.ts +6 -0
- package/dist/index.cjs +893 -134
- package/dist/index.js +875 -134
- package/dist/lib/responsive.d.ts +10 -0
- package/dist/primitives/dropdown.d.ts +3 -1
- package/package.json +1 -1
- package/src/tailwind/dominevo-theme.css +28 -0
package/dist/lib/responsive.d.ts
CHANGED
|
@@ -85,6 +85,16 @@ export declare const SETTING_ROW_VALUE: "flex w-full min-w-0 items-center gap-1
|
|
|
85
85
|
* rather than data loss.
|
|
86
86
|
*/
|
|
87
87
|
export declare const SETTING_ROW_VALUE_TEXT: "min-w-0 break-all text-xs text-foreground sm:truncate";
|
|
88
|
+
/**
|
|
89
|
+
* The value text of a row whose value must be read in full (a pairing code): one line, never cut
|
|
90
|
+
* mid-character. When it does not fit beside the label the row stacks (`SETTING_ROW_WRAP`), and
|
|
91
|
+
* a value longer than the whole row scrolls sideways instead of losing characters.
|
|
92
|
+
*/
|
|
93
|
+
export declare const SETTING_ROW_VALUE_TEXT_WRAP: "min-w-0 max-w-full overflow-x-auto whitespace-nowrap text-xs text-foreground";
|
|
94
|
+
/** Outer-row additions for a non-truncating value: the value lane drops under the label. */
|
|
95
|
+
export declare const SETTING_ROW_WRAP: "sm:flex-wrap";
|
|
96
|
+
/** Value-lane additions for a non-truncating value: sized by its content, so it can wrap down. */
|
|
97
|
+
export declare const SETTING_ROW_VALUE_WRAP: "sm:w-auto sm:flex-auto";
|
|
88
98
|
/** Section header label (uppercase tracking-wider). */
|
|
89
99
|
export declare const TEXT_SECTION_LABEL: "text-[10px] sm:text-[11px] font-semibold text-foreground uppercase tracking-wider";
|
|
90
100
|
/** Field label inside a row. */
|
|
@@ -17,8 +17,10 @@ interface DropdownContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
17
17
|
align?: "start" | "end";
|
|
18
18
|
/** Pixel offset between trigger and content. Default: 4. */
|
|
19
19
|
offset?: number;
|
|
20
|
+
/** Open below the trigger (default) or above it, for a trigger at the bottom of the viewport. */
|
|
21
|
+
side?: "bottom" | "top";
|
|
20
22
|
}
|
|
21
|
-
export declare function DropdownContent({ className, children, align, offset, ...props }: DropdownContentProps): JSX.Element | null;
|
|
23
|
+
export declare function DropdownContent({ className, children, align, offset, side, ...props }: DropdownContentProps): JSX.Element | null;
|
|
22
24
|
interface DropdownItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
23
25
|
icon?: LucideIcon;
|
|
24
26
|
variant?: "default" | "danger";
|
package/package.json
CHANGED
|
@@ -27,6 +27,13 @@
|
|
|
27
27
|
--color-danger-on: #0c0a09;
|
|
28
28
|
--color-info-fill: #60a5fa;
|
|
29
29
|
--color-info-on: #0c0a09;
|
|
30
|
+
|
|
31
|
+
/* Sidebar section accents (web only): one per section, tuned for >= 3:1 on surface. */
|
|
32
|
+
--color-section-devices: #f59e42;
|
|
33
|
+
--color-section-detection: #a78bfa;
|
|
34
|
+
--color-section-cluster: #2dd4bf;
|
|
35
|
+
--color-section-admin: #94a3b8;
|
|
36
|
+
--color-section-addons: #a3e635;
|
|
30
37
|
--color-primary-fill: #f59e42;
|
|
31
38
|
--color-primary-on: #0c0a09;
|
|
32
39
|
--color-neutral-fill: #44403c;
|
|
@@ -138,6 +145,13 @@ option:checked {
|
|
|
138
145
|
--color-danger-on: #0c0a09;
|
|
139
146
|
--color-info-fill: #60a5fa;
|
|
140
147
|
--color-info-on: #0c0a09;
|
|
148
|
+
|
|
149
|
+
/* Sidebar section accents (web only): one per section, tuned for >= 3:1 on surface. */
|
|
150
|
+
--color-section-devices: #f59e42;
|
|
151
|
+
--color-section-detection: #a78bfa;
|
|
152
|
+
--color-section-cluster: #2dd4bf;
|
|
153
|
+
--color-section-admin: #94a3b8;
|
|
154
|
+
--color-section-addons: #a3e635;
|
|
141
155
|
--color-primary-fill: #f59e42;
|
|
142
156
|
--color-primary-on: #0c0a09;
|
|
143
157
|
--color-neutral-fill: #44403c;
|
|
@@ -187,6 +201,13 @@ option:checked {
|
|
|
187
201
|
--color-danger-on: #ffffff;
|
|
188
202
|
--color-info-fill: #2563eb;
|
|
189
203
|
--color-info-on: #ffffff;
|
|
204
|
+
|
|
205
|
+
/* Sidebar section accents (web only): one per section, tuned for >= 3:1 on surface. */
|
|
206
|
+
--color-section-devices: #b45309;
|
|
207
|
+
--color-section-detection: #6d28d9;
|
|
208
|
+
--color-section-cluster: #0f766e;
|
|
209
|
+
--color-section-admin: #475569;
|
|
210
|
+
--color-section-addons: #4d7c0f;
|
|
190
211
|
--color-primary-fill: #c2410c;
|
|
191
212
|
--color-primary-on: #ffffff;
|
|
192
213
|
--color-neutral-fill: #57534e;
|
|
@@ -237,6 +258,13 @@ option:checked {
|
|
|
237
258
|
--color-danger-on: #ffffff;
|
|
238
259
|
--color-info-fill: #2563eb;
|
|
239
260
|
--color-info-on: #ffffff;
|
|
261
|
+
|
|
262
|
+
/* Sidebar section accents (web only): one per section, tuned for >= 3:1 on surface. */
|
|
263
|
+
--color-section-devices: #b45309;
|
|
264
|
+
--color-section-detection: #6d28d9;
|
|
265
|
+
--color-section-cluster: #0f766e;
|
|
266
|
+
--color-section-admin: #475569;
|
|
267
|
+
--color-section-addons: #4d7c0f;
|
|
240
268
|
--color-primary-fill: #c2410c;
|
|
241
269
|
--color-primary-on: #ffffff;
|
|
242
270
|
--color-neutral-fill: #57534e;
|