@robert-stackflow/oneui 0.6.40 → 0.6.42

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 (48) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +9 -1
  3. package/components/AccountItem.module.css +103 -103
  4. package/components/AppShell.module.css +223 -223
  5. package/components/Badge.module.css +30 -30
  6. package/components/BarChart.module.css +35 -35
  7. package/components/Breadcrumb.module.css +97 -97
  8. package/components/Button.module.css +120 -120
  9. package/components/Checkbox.module.css +95 -95
  10. package/components/Control.module.css +86 -86
  11. package/components/DataTable.module.css +75 -75
  12. package/components/Form.d.ts +5 -1
  13. package/components/Form.js +5 -1
  14. package/components/FormField.js +1 -0
  15. package/components/HierarchyPicker.module.css +185 -185
  16. package/components/Indicator.module.css +83 -83
  17. package/components/Layout.module.css +82 -82
  18. package/components/Markdown.module.css +227 -227
  19. package/components/NativeForm.d.ts +10 -0
  20. package/components/NativeForm.js +155 -0
  21. package/components/NavBar.module.css +130 -130
  22. package/components/Progress.module.css +33 -33
  23. package/components/RadioGroup.module.css +87 -87
  24. package/components/RangeSlider.module.css +141 -141
  25. package/components/ResizablePanel.module.css +101 -101
  26. package/components/ResourceCard.module.css +98 -98
  27. package/components/Slider.module.css +19 -19
  28. package/components/Steps.module.css +176 -176
  29. package/components/Tab.module.css +148 -148
  30. package/components/ThemePicker.module.css +178 -178
  31. package/components/TimeColumns.module.css +47 -47
  32. package/components/Timeline.module.css +202 -202
  33. package/components/Toast.d.ts +7 -2
  34. package/components/Toast.js +146 -98
  35. package/components/Toast.module.css +182 -85
  36. package/components/ToastProvider.js +19 -62
  37. package/components/ToastStack.d.ts +8 -0
  38. package/components/ToastStack.js +190 -0
  39. package/components/TreeTable.module.css +57 -57
  40. package/components/UptimeChart.module.css +15 -15
  41. package/components/field.d.ts +1 -1
  42. package/components/field.js +2 -1
  43. package/components/form-validation.d.ts +4 -0
  44. package/components/form-validation.js +22 -0
  45. package/components/index.d.ts +4 -2
  46. package/components/index.js +9 -3
  47. package/package.json +1 -1
  48. package/styles/blue.css +270 -270
@@ -1,130 +1,130 @@
1
- .bar {
2
- display: flex;
3
- align-items: center;
4
- gap: 24px;
5
- min-width: 0;
6
- min-height: 68px;
7
- padding: 12px 24px;
8
- color: var(--fg);
9
- background: var(--surface);
10
- border-bottom: 1px solid var(--line);
11
- }
12
- .brand {
13
- display: inline-flex;
14
- align-items: center;
15
- gap: 10px;
16
- flex-shrink: 0;
17
- color: var(--fg);
18
- text-decoration: none;
19
- font-weight: 600;
20
- }
21
- .brand > svg {
22
- width: 24px;
23
- height: 24px;
24
- color: var(--accent-ink, var(--accent));
25
- }
26
- .links {
27
- display: flex;
28
- align-items: center;
29
- justify-content: flex-end;
30
- gap: 6px;
31
- min-width: 0;
32
- margin-left: auto;
33
- }
34
- .link,
35
- .menuItem {
36
- display: flex;
37
- align-items: center;
38
- justify-content: flex-start;
39
- gap: 9px;
40
- min-height: 38px;
41
- padding: 8px 13px;
42
- border: 0;
43
- border-radius: 9px;
44
- background: transparent;
45
- color: var(--muted);
46
- font: inherit;
47
- font-size: 13px;
48
- line-height: 1.5;
49
- text-decoration: none;
50
- white-space: nowrap;
51
- cursor: pointer;
52
- transition:
53
- color var(--motion-hover),
54
- background var(--motion-hover);
55
- }
56
- .link > svg,
57
- .menuItem > svg {
58
- flex-shrink: 0;
59
- width: 17px;
60
- height: 17px;
61
- }
62
- .link:hover:not(:disabled):not([aria-disabled]),
63
- .menuItem:hover:not([aria-disabled]) {
64
- color: var(--fg);
65
- background: var(--hover);
66
- }
67
- .link[aria-current],
68
- .link[data-selected],
69
- .menuItem[aria-current] {
70
- color: var(--navigation-active-color, var(--fg));
71
- background: var(--selected);
72
- }
73
- .link:disabled,
74
- .link[aria-disabled],
75
- .menuItem[aria-disabled] {
76
- opacity: 0.45;
77
- cursor: not-allowed;
78
- }
79
- .link:focus-visible,
80
- .menuItem:focus-visible,
81
- .brand:focus-visible {
82
- outline: 2px solid var(--accent-ink, var(--accent));
83
- outline-offset: -2px;
84
- }
85
- .chevron {
86
- transition: transform var(--motion-chevron) var(--ease);
87
- }
88
- .link[aria-expanded="true"] .chevron {
89
- transform: rotate(180deg);
90
- }
91
- .menuItem {
92
- min-width: 0;
93
- width: 100%;
94
- }
95
- .menuItem > span {
96
- overflow: hidden;
97
- text-overflow: ellipsis;
98
- }
99
- .actions {
100
- display: flex;
101
- align-items: center;
102
- gap: 8px;
103
- flex-shrink: 0;
104
- }
105
- .mobileToggle {
106
- display: none;
107
- }
108
- @media (max-width: 720px) {
109
- .bar {
110
- min-height: 60px;
111
- padding: 10px 16px;
112
- gap: 12px;
113
- }
114
- .links {
115
- display: none;
116
- }
117
- .actions {
118
- margin-left: auto;
119
- }
120
- .mobileToggle {
121
- display: inline-flex;
122
- }
123
- }
124
- @media (prefers-reduced-motion: reduce) {
125
- .link,
126
- .menuItem,
127
- .chevron {
128
- transition: none;
129
- }
130
- }
1
+ .bar {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: 24px;
5
+ min-width: 0;
6
+ min-height: 68px;
7
+ padding: 12px 24px;
8
+ color: var(--fg);
9
+ background: var(--surface);
10
+ border-bottom: 1px solid var(--line);
11
+ }
12
+ .brand {
13
+ display: inline-flex;
14
+ align-items: center;
15
+ gap: 10px;
16
+ flex-shrink: 0;
17
+ color: var(--fg);
18
+ text-decoration: none;
19
+ font-weight: 600;
20
+ }
21
+ .brand > svg {
22
+ width: 24px;
23
+ height: 24px;
24
+ color: var(--accent-ink, var(--accent));
25
+ }
26
+ .links {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: flex-end;
30
+ gap: 6px;
31
+ min-width: 0;
32
+ margin-left: auto;
33
+ }
34
+ .link,
35
+ .menuItem {
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: flex-start;
39
+ gap: 9px;
40
+ min-height: 38px;
41
+ padding: 8px 13px;
42
+ border: 0;
43
+ border-radius: 9px;
44
+ background: transparent;
45
+ color: var(--muted);
46
+ font: inherit;
47
+ font-size: 13px;
48
+ line-height: 1.5;
49
+ text-decoration: none;
50
+ white-space: nowrap;
51
+ cursor: pointer;
52
+ transition:
53
+ color var(--motion-hover),
54
+ background var(--motion-hover);
55
+ }
56
+ .link > svg,
57
+ .menuItem > svg {
58
+ flex-shrink: 0;
59
+ width: 17px;
60
+ height: 17px;
61
+ }
62
+ .link:hover:not(:disabled):not([aria-disabled]),
63
+ .menuItem:hover:not([aria-disabled]) {
64
+ color: var(--fg);
65
+ background: var(--hover);
66
+ }
67
+ .link[aria-current],
68
+ .link[data-selected],
69
+ .menuItem[aria-current] {
70
+ color: var(--navigation-active-color, var(--fg));
71
+ background: var(--selected);
72
+ }
73
+ .link:disabled,
74
+ .link[aria-disabled],
75
+ .menuItem[aria-disabled] {
76
+ opacity: 0.45;
77
+ cursor: not-allowed;
78
+ }
79
+ .link:focus-visible,
80
+ .menuItem:focus-visible,
81
+ .brand:focus-visible {
82
+ outline: 2px solid var(--accent-ink, var(--accent));
83
+ outline-offset: -2px;
84
+ }
85
+ .chevron {
86
+ transition: transform var(--motion-chevron) var(--ease);
87
+ }
88
+ .link[aria-expanded="true"] .chevron {
89
+ transform: rotate(180deg);
90
+ }
91
+ .menuItem {
92
+ min-width: 0;
93
+ width: 100%;
94
+ }
95
+ .menuItem > span {
96
+ overflow: hidden;
97
+ text-overflow: ellipsis;
98
+ }
99
+ .actions {
100
+ display: flex;
101
+ align-items: center;
102
+ gap: 8px;
103
+ flex-shrink: 0;
104
+ }
105
+ .mobileToggle {
106
+ display: none;
107
+ }
108
+ @media (max-width: 720px) {
109
+ .bar {
110
+ min-height: 60px;
111
+ padding: 10px 16px;
112
+ gap: 12px;
113
+ }
114
+ .links {
115
+ display: none;
116
+ }
117
+ .actions {
118
+ margin-left: auto;
119
+ }
120
+ .mobileToggle {
121
+ display: inline-flex;
122
+ }
123
+ }
124
+ @media (prefers-reduced-motion: reduce) {
125
+ .link,
126
+ .menuItem,
127
+ .chevron {
128
+ transition: none;
129
+ }
130
+ }
@@ -1,33 +1,33 @@
1
- .progress {
2
- height: 5px;
3
- width: 100%;
4
- background: var(--line);
5
- border-radius: 10px;
6
- overflow: hidden;
7
- }
8
- .progress span {
9
- display: block;
10
- height: 100%;
11
- background: var(--accent-ink, var(--accent));
12
- border-radius: inherit;
13
- transition: width var(--motion-panel) var(--ease);
14
- }
15
-
16
- .progress[data-indeterminate="true"] > span {
17
- width: 35%;
18
- animation: progress-travel 1.25s ease-in-out infinite;
19
- }
20
- .progress[data-tone="success"] > span {
21
- background: var(--success);
22
- }
23
- .progress[data-tone="error"] > span {
24
- background: var(--danger);
25
- }
26
- @keyframes progress-travel {
27
- from {
28
- transform: translateX(-100%);
29
- }
30
- to {
31
- transform: translateX(290%);
32
- }
33
- }
1
+ .progress {
2
+ height: 5px;
3
+ width: 100%;
4
+ background: var(--line);
5
+ border-radius: 10px;
6
+ overflow: hidden;
7
+ }
8
+ .progress span {
9
+ display: block;
10
+ height: 100%;
11
+ background: var(--accent-ink, var(--accent));
12
+ border-radius: inherit;
13
+ transition: width var(--motion-panel) var(--ease);
14
+ }
15
+
16
+ .progress[data-indeterminate="true"] > span {
17
+ width: 35%;
18
+ animation: progress-travel 1.25s ease-in-out infinite;
19
+ }
20
+ .progress[data-tone="success"] > span {
21
+ background: var(--success);
22
+ }
23
+ .progress[data-tone="error"] > span {
24
+ background: var(--danger);
25
+ }
26
+ @keyframes progress-travel {
27
+ from {
28
+ transform: translateX(-100%);
29
+ }
30
+ to {
31
+ transform: translateX(290%);
32
+ }
33
+ }
@@ -1,87 +1,87 @@
1
- .group {
2
- border: 0;
3
- margin: 0;
4
- padding: 0;
5
- display: flex;
6
- gap: 20px;
7
- }
8
- .group legend {
9
- padding: 0;
10
- margin-bottom: 10px;
11
- font-size: 12px;
12
- }
13
- .group label {
14
- position: relative;
15
- display: inline-flex;
16
- align-items: center;
17
- gap: 8px;
18
- cursor: pointer;
19
- user-select: none;
20
- }
21
- .group input[type="radio"] {
22
- position: absolute;
23
- left: 0;
24
- margin: 0;
25
- width: 18px;
26
- height: 18px;
27
- opacity: 0;
28
- }
29
- .mark {
30
- display: grid;
31
- place-items: center;
32
- flex-shrink: 0;
33
- width: 18px;
34
- height: 18px;
35
- border: 1px solid color-mix(in srgb, var(--fg) 25%, var(--surface));
36
- border-radius: 50%;
37
- background: var(--field);
38
- pointer-events: none;
39
- transition:
40
- border-color var(--motion-hover),
41
- box-shadow var(--motion-hover),
42
- transform var(--motion-press);
43
- }
44
- .mark::after {
45
- content: "";
46
- width: 8px;
47
- height: 8px;
48
- border-radius: 50%;
49
- background: var(--accent-ink, var(--accent));
50
- transform: scale(0.25);
51
- opacity: 0;
52
- transition:
53
- transform var(--motion-panel) var(--ease),
54
- opacity var(--motion-hover);
55
- }
56
- .group input:checked + .mark {
57
- border-color: var(--accent-ink, var(--accent));
58
- }
59
- .group input:checked + .mark::after {
60
- transform: scale(1);
61
- opacity: 1;
62
- }
63
- .group label:hover input:not(:disabled) + .mark {
64
- border-color: var(--muted);
65
- }
66
- .group label:active input:not(:disabled) + .mark {
67
- transform: scale(0.92);
68
- }
69
- .group input:focus-visible + .mark {
70
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink, var(--accent)) 14%, transparent);
71
- border-color: var(--accent-ink, var(--accent));
72
- }
73
- .group label[data-disabled="true"] {
74
- cursor: not-allowed;
75
- }
76
- .group input:disabled ~ span {
77
- opacity: 0.4;
78
- }
79
-
80
- .group[data-orientation="vertical"] {
81
- flex-direction: column;
82
- align-items: flex-start;
83
- }
84
-
85
- .group[aria-invalid="true"] .mark {
86
- border-color: var(--danger);
87
- }
1
+ .group {
2
+ border: 0;
3
+ margin: 0;
4
+ padding: 0;
5
+ display: flex;
6
+ gap: 20px;
7
+ }
8
+ .group legend {
9
+ padding: 0;
10
+ margin-bottom: 10px;
11
+ font-size: 12px;
12
+ }
13
+ .group label {
14
+ position: relative;
15
+ display: inline-flex;
16
+ align-items: center;
17
+ gap: 8px;
18
+ cursor: pointer;
19
+ user-select: none;
20
+ }
21
+ .group input[type="radio"] {
22
+ position: absolute;
23
+ left: 0;
24
+ margin: 0;
25
+ width: 18px;
26
+ height: 18px;
27
+ opacity: 0;
28
+ }
29
+ .mark {
30
+ display: grid;
31
+ place-items: center;
32
+ flex-shrink: 0;
33
+ width: 18px;
34
+ height: 18px;
35
+ border: 1px solid color-mix(in srgb, var(--fg) 25%, var(--surface));
36
+ border-radius: 50%;
37
+ background: var(--field);
38
+ pointer-events: none;
39
+ transition:
40
+ border-color var(--motion-hover),
41
+ box-shadow var(--motion-hover),
42
+ transform var(--motion-press);
43
+ }
44
+ .mark::after {
45
+ content: "";
46
+ width: 8px;
47
+ height: 8px;
48
+ border-radius: 50%;
49
+ background: var(--accent-ink, var(--accent));
50
+ transform: scale(0.25);
51
+ opacity: 0;
52
+ transition:
53
+ transform var(--motion-panel) var(--ease),
54
+ opacity var(--motion-hover);
55
+ }
56
+ .group input:checked + .mark {
57
+ border-color: var(--accent-ink, var(--accent));
58
+ }
59
+ .group input:checked + .mark::after {
60
+ transform: scale(1);
61
+ opacity: 1;
62
+ }
63
+ .group label:hover input:not(:disabled) + .mark {
64
+ border-color: var(--muted);
65
+ }
66
+ .group label:active input:not(:disabled) + .mark {
67
+ transform: scale(0.92);
68
+ }
69
+ .group input:focus-visible + .mark {
70
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink, var(--accent)) 14%, transparent);
71
+ border-color: var(--accent-ink, var(--accent));
72
+ }
73
+ .group label[data-disabled="true"] {
74
+ cursor: not-allowed;
75
+ }
76
+ .group input:disabled ~ span {
77
+ opacity: 0.4;
78
+ }
79
+
80
+ .group[data-orientation="vertical"] {
81
+ flex-direction: column;
82
+ align-items: flex-start;
83
+ }
84
+
85
+ .group[aria-invalid="true"] .mark {
86
+ border-color: var(--danger);
87
+ }