@ecopages/radiant-ui 0.1.0-beta.0 → 0.1.0-beta.2
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/README.md +4 -2
- package/dist/components/ui/alert/alert.css +56 -23
- package/dist/components/ui/breadcrumb/breadcrumb.css +85 -36
- package/dist/components/ui/carousel/carousel.css +465 -166
- package/dist/components/ui/checkbox/checkbox.css +196 -49
- package/dist/components/ui/combobox/combobox.css +213 -60
- package/dist/components/ui/dialog/dialog.css +176 -49
- package/dist/components/ui/disclosure/disclosure.css +228 -100
- package/dist/components/ui/feed/feed.css +30 -10
- package/dist/components/ui/field/field.css +18 -22
- package/dist/components/ui/form/form.css +7 -8
- package/dist/components/ui/grid/grid.css +172 -43
- package/dist/components/ui/input/input.css +126 -30
- package/dist/components/ui/label/label.css +20 -6
- package/dist/components/ui/listbox/listbox.css +137 -19
- package/dist/components/ui/menu-button/index.js +1 -1
- package/dist/components/ui/menu-button/index.js.map +4 -4
- package/dist/components/ui/menu-button/menu-button.css +158 -38
- package/dist/components/ui/menu-button/menu-button.script.d.ts +7 -7
- package/dist/components/ui/menubar/index.js +1 -1
- package/dist/components/ui/menubar/index.js.map +2 -2
- package/dist/components/ui/menubar/menubar.css +207 -39
- package/dist/components/ui/meter/meter.css +50 -13
- package/dist/components/ui/navigation-menu/navigation-menu.css +281 -85
- package/dist/components/ui/radio-group/radio-group.css +179 -40
- package/dist/components/ui/shared/floating-position.d.ts +37 -0
- package/dist/components/ui/shared/floating-position.test.d.ts +1 -0
- package/dist/components/ui/shared/placement.d.ts +2 -0
- package/dist/components/ui/sidebar/sidebar.css +407 -189
- package/dist/components/ui/slider/slider.css +220 -47
- package/dist/components/ui/spinbutton/spinbutton.css +65 -15
- package/dist/components/ui/switch/switch.css +164 -43
- package/dist/components/ui/tabs/tabs.css +145 -24
- package/dist/components/ui/textarea/textarea.css +128 -31
- package/dist/components/ui/toast/toast.css +388 -255
- package/dist/components/ui/toolbar/toolbar.css +118 -11
- package/dist/components/ui/tooltip/index.js +1 -1
- package/dist/components/ui/tooltip/index.js.map +4 -4
- package/dist/components/ui/tooltip/tooltip.css +119 -21
- package/dist/components/ui/tooltip/tooltip.script.d.ts +6 -6
- package/dist/components/ui/tree/tree.css +180 -49
- package/dist/components/ui/treegrid/treegrid.css +190 -72
- package/dist/components/ui/window-splitter/window-splitter.css +144 -31
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/styles/components/button.css +299 -113
- package/dist/styles/radiant-ui-core.css +828 -7
- package/dist/styles/radiant-ui.css +1497 -8
- package/dist/styles/styles.css +5830 -36
- package/dist/styles/tailwind.css +1607 -27
- package/dist/styles/themes/aurora.css +637 -15
- package/dist/styles/themes/default-compact-soft.css +580 -15
- package/dist/styles/themes/default.css +641 -2
- package/dist/styles/themes/glacier.css +637 -15
- package/dist/styles/tokens/colors/aurora.css +1 -73
- package/dist/styles/tokens/colors/basalt.css +1 -36
- package/dist/styles/tokens/colors/glacier.css +1 -45
- package/dist/styles/tokens/colors/palettes.css +1 -3
- package/dist/styles/tokens/elevation/default.css +11 -19
- package/dist/styles/tokens/elevation/flat.css +11 -19
- package/dist/styles/tokens/motion/default.css +6 -17
- package/dist/styles/tokens/motion/snappy.css +6 -17
- package/dist/styles/tokens/presets/colors/index.css +446 -4
- package/dist/styles/tokens/radius/default.css +17 -31
- package/dist/styles/tokens/radius/edgy.css +17 -32
- package/dist/styles/tokens/radius/sharp.css +20 -2
- package/dist/styles/tokens/radius/soft.css +17 -31
- package/dist/styles/tokens/semantic.css +445 -79
- package/dist/styles/tokens/spacing/compact.css +16 -21
- package/dist/styles/tokens/spacing/default.css +16 -21
- package/dist/styles/tokens/spacing/scale-bridge.css +1 -17
- package/dist/styles/tokens/spacing/wide.css +16 -21
- package/dist/styles/tokens/system.css +21 -33
- package/dist/styles/tokens/typography/default.css +23 -33
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -34,9 +34,11 @@ Useful scripts:
|
|
|
34
34
|
pnpm run test # Vitest browser story tests
|
|
35
35
|
pnpm run typecheck
|
|
36
36
|
pnpm run lint
|
|
37
|
-
pnpm run build:lib # generate exports + build
|
|
37
|
+
pnpm run build:lib # generate exports + build JS/types + compile CSS
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
Published CSS under `dist/` is **already compiled** (Tailwind `@apply` resolved). Theme and token values remain CSS custom properties so apps can swap themes at runtime. The package does not minify CSS.
|
|
41
|
+
|
|
40
42
|
## Using radiant-ui
|
|
41
43
|
|
|
42
44
|
```ts
|
|
@@ -55,7 +57,7 @@ import '@ecopages/radiant-ui/styles.css';
|
|
|
55
57
|
import '@ecopages/radiant-ui';
|
|
56
58
|
```
|
|
57
59
|
|
|
58
|
-
Convenience bundle (default theme +
|
|
60
|
+
Convenience bundle (default theme + core primitives):
|
|
59
61
|
|
|
60
62
|
```ts
|
|
61
63
|
import '@ecopages/radiant-ui/radiant-ui.css';
|
|
@@ -1,27 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
3
|
rui-alert {
|
|
4
|
-
|
|
4
|
+
display: block;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
6
|
@layer components {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
7
|
+
.rui-alert {
|
|
8
|
+
border-radius: var(--radius-container, var(--radius-container));
|
|
9
|
+
border-style: var(--tw-border-style);
|
|
10
|
+
border-width: 1px;
|
|
11
|
+
padding-inline: var(--spacing-control-x, var(--space-control-x));
|
|
12
|
+
padding-block: var(--spacing-control-y, var(--space-control-y));
|
|
13
|
+
font-size: var(--text-sm, var(--text-sm));
|
|
14
|
+
line-height: var(--tw-leading, var(--text-sm--line-height, calc(1.25 / 0.875)));
|
|
15
|
+
}
|
|
16
|
+
.rui-alert--info {
|
|
17
|
+
border-color: var(--color-border, var(--border));
|
|
18
|
+
background-color: var(--color-surface, var(--surface));
|
|
19
|
+
color: var(--color-on-surface, var(--on-surface));
|
|
20
|
+
}
|
|
21
|
+
.rui-alert--success {
|
|
22
|
+
border-color: var(--color-success, var(--success));
|
|
23
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
24
|
+
border-color: color-mix(in oklab, var(--color-success, var(--success)) 40%, transparent);
|
|
25
|
+
}
|
|
26
|
+
background-color: var(--color-success, var(--success));
|
|
27
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
28
|
+
background-color: color-mix(in oklab, var(--color-success, var(--success)) 10%, transparent);
|
|
29
|
+
}
|
|
30
|
+
color: var(--color-success, var(--success));
|
|
31
|
+
}
|
|
32
|
+
.rui-alert--warning {
|
|
33
|
+
border-color: var(--color-border, var(--border));
|
|
34
|
+
background-color: var(--color-surface, var(--surface));
|
|
35
|
+
color: var(--color-on-surface, var(--on-surface));
|
|
36
|
+
}
|
|
37
|
+
.rui-alert--error {
|
|
38
|
+
border-color: var(--color-error, var(--error));
|
|
39
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
40
|
+
border-color: color-mix(in oklab, var(--color-error, var(--error)) 40%, transparent);
|
|
41
|
+
}
|
|
42
|
+
background-color: var(--color-error, var(--error));
|
|
43
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
44
|
+
background-color: color-mix(in oklab, var(--color-error, var(--error)) 10%, transparent);
|
|
45
|
+
}
|
|
46
|
+
color: var(--color-error, var(--error));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
@property --tw-border-style {
|
|
50
|
+
syntax: "*";
|
|
51
|
+
inherits: false;
|
|
52
|
+
initial-value: solid;
|
|
53
|
+
}
|
|
54
|
+
@layer properties {
|
|
55
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
56
|
+
*, ::before, ::after, ::backdrop {
|
|
57
|
+
--tw-border-style: solid;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
27
60
|
}
|
|
@@ -1,41 +1,90 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
3
|
rui-breadcrumb {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
display: block;
|
|
5
|
+
--rui-breadcrumb-separator: '/';
|
|
6
6
|
}
|
|
7
|
-
|
|
8
7
|
@layer components {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
.rui-breadcrumb__list {
|
|
9
|
+
margin: 0px;
|
|
10
|
+
display: flex;
|
|
11
|
+
list-style-type: none;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: var(--spacing-inline, var(--space-inline));
|
|
15
|
+
padding: 0px;
|
|
16
|
+
font-size: var(--text-sm, var(--text-sm));
|
|
17
|
+
line-height: var(--tw-leading, var(--text-sm--line-height, calc(1.25 / 0.875)));
|
|
18
|
+
}
|
|
19
|
+
.rui-breadcrumb__item {
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: var(--spacing-inline, var(--space-inline));
|
|
23
|
+
}
|
|
24
|
+
.rui-breadcrumb__link {
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: var(--spacing-inline, var(--space-inline));
|
|
28
|
+
color: var(--color-primary, var(--primary));
|
|
29
|
+
text-underline-offset: 2px;
|
|
30
|
+
&:hover {
|
|
31
|
+
@media (hover: hover) {
|
|
32
|
+
text-decoration-line: underline;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.rui-breadcrumb__page,
|
|
22
37
|
.rui-breadcrumb [aria-current='page'] {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
--tw-font-weight: var(--font-weight-medium, var(--weight-medium));
|
|
39
|
+
font-weight: var(--font-weight-medium, var(--weight-medium));
|
|
40
|
+
color: var(--color-on-background, var(--on-background));
|
|
41
|
+
}
|
|
42
|
+
.rui-breadcrumb__separator {
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
color: var(--color-on-surface, var(--on-surface));
|
|
46
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
47
|
+
color: color-mix(in oklab, var(--color-on-surface, var(--on-surface)) 60%, transparent);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
.rui-breadcrumb__separator:empty::before {
|
|
51
|
+
content: var(--rui-breadcrumb-separator);
|
|
52
|
+
}
|
|
53
|
+
.rui-breadcrumb__ellipsis {
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
--tw-tracking: var(--tracking-widest, 0.1em);
|
|
57
|
+
letter-spacing: var(--tracking-widest, 0.1em);
|
|
58
|
+
color: var(--color-on-surface, var(--on-surface));
|
|
59
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
60
|
+
color: color-mix(in oklab, var(--color-on-surface, var(--on-surface)) 60%, transparent);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.rui-breadcrumb__ellipsis-label {
|
|
64
|
+
position: absolute;
|
|
65
|
+
width: 1px;
|
|
66
|
+
height: 1px;
|
|
67
|
+
padding: 0;
|
|
68
|
+
margin: -1px;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
clip-path: inset(50%);
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
border-width: 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
@property --tw-font-weight {
|
|
76
|
+
syntax: "*";
|
|
77
|
+
inherits: false;
|
|
78
|
+
}
|
|
79
|
+
@property --tw-tracking {
|
|
80
|
+
syntax: "*";
|
|
81
|
+
inherits: false;
|
|
82
|
+
}
|
|
83
|
+
@layer properties {
|
|
84
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
85
|
+
*, ::before, ::after, ::backdrop {
|
|
86
|
+
--tw-font-weight: initial;
|
|
87
|
+
--tw-tracking: initial;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
41
90
|
}
|