@camstack/ui-library 1.2.12 → 1.2.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/ui-library",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -33,8 +33,21 @@
33
33
  --radius-xl: 12px;
34
34
  }
35
35
 
36
+ /* `color-scheme` lives WITH the tokens, in every block that sets them.
37
+ It drives two things the tokens cannot: the UA's default text colour for any
38
+ element that declares none, and the rendering of native controls (select
39
+ popups, range tracks, scrollbars). Pinning it to `dark` on :root — as
40
+ admin-ui's index.css used to — made a light theme render white UA text and
41
+ dark native controls on a white surface. :root keeps `dark` only as the
42
+ pre-hydration default, matching the dark token defaults above; the
43
+ ThemeProvider then puts .dark/.light on <html> and the blocks below win. */
44
+ :root {
45
+ color-scheme: dark;
46
+ }
47
+
36
48
  /* Dark theme (default) */
37
49
  .dark {
50
+ color-scheme: dark;
38
51
  --color-primary: #f59e42;
39
52
  --color-primary-foreground: #0c0a09;
40
53
  --color-background: #0c0a09;
@@ -55,6 +68,7 @@
55
68
 
56
69
  /* Light theme */
57
70
  .light {
71
+ color-scheme: light;
58
72
  --color-primary: #e67e22;
59
73
  --color-primary-foreground: #ffffff;
60
74
  --color-background: #fafaf9;
@@ -76,6 +90,7 @@
76
90
  /* System preference fallback (when no .dark/.light class is set) */
77
91
  @media (prefers-color-scheme: light) {
78
92
  :root:not(.dark) {
93
+ color-scheme: light;
79
94
  --color-primary: #e67e22;
80
95
  --color-primary-foreground: #ffffff;
81
96
  --color-background: #fafaf9;
@@ -1,7 +0,0 @@
1
- import { RecordingRule } from '@camstack/types';
2
- interface RecordingRulesEditorProps {
3
- readonly rules: readonly RecordingRule[];
4
- readonly onChange: (rules: RecordingRule[]) => void;
5
- }
6
- export declare function RecordingRulesEditor({ rules, onChange }: RecordingRulesEditorProps): import("react").JSX.Element;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { RecordingSchedule } from '@camstack/types';
2
- interface ScheduleBandsEditorProps {
3
- readonly schedules: readonly RecordingSchedule[];
4
- readonly onChange: (schedules: RecordingSchedule[]) => void;
5
- }
6
- export declare function ScheduleBandsEditor({ schedules, onChange }: ScheduleBandsEditorProps): import("react").JSX.Element;
7
- export {};