@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,19 +1,19 @@
1
- .field {
2
- display: grid;
3
- gap: 12px;
4
- }
5
- .field label {
6
- display: flex;
7
- justify-content: space-between;
8
- font-size: 12px;
9
- }
10
- .field label span {
11
- color: var(--muted);
12
- font-variant-numeric: tabular-nums;
13
- }
14
- .field input {
15
- width: 100%;
16
- margin: 6px 0;
17
- accent-color: var(--accent-ink, var(--accent));
18
- cursor: pointer;
19
- }
1
+ .field {
2
+ display: grid;
3
+ gap: 12px;
4
+ }
5
+ .field label {
6
+ display: flex;
7
+ justify-content: space-between;
8
+ font-size: 12px;
9
+ }
10
+ .field label span {
11
+ color: var(--muted);
12
+ font-variant-numeric: tabular-nums;
13
+ }
14
+ .field input {
15
+ width: 100%;
16
+ margin: 6px 0;
17
+ accent-color: var(--accent-ink, var(--accent));
18
+ cursor: pointer;
19
+ }
@@ -1,176 +1,176 @@
1
- .steps {
2
- list-style: none;
3
- display: flex;
4
- min-width: 0;
5
- margin: 0;
6
- padding: 0;
7
- gap: 0;
8
- }
9
- .item {
10
- position: relative;
11
- flex: 1;
12
- min-width: 0;
13
- padding-right: 20px;
14
- isolation: isolate;
15
- }
16
- .item:last-child {
17
- padding-right: 0;
18
- }
19
- .item:not(:last-child)::before,
20
- .item:not(:last-child)::after {
21
- content: "";
22
- position: absolute;
23
- left: 34px;
24
- right: 8px;
25
- top: 12px;
26
- height: var(--separator-width);
27
- background: var(--separator-color);
28
- z-index: -1;
29
- }
30
- .item:not(:last-child)::after {
31
- background: var(--accent-ink, var(--accent));
32
- transform: scaleX(0);
33
- transform-origin: left;
34
- transition:
35
- transform var(--motion-segment) var(--ease),
36
- background var(--motion-hover);
37
- }
38
- .item[data-status="complete"]::after {
39
- transform: scaleX(1);
40
- }
41
- .control {
42
- display: flex;
43
- align-items: flex-start;
44
- flex-direction: column;
45
- gap: 9px;
46
- width: 100%;
47
- min-width: 0;
48
- padding: 0;
49
- border: 0;
50
- border-radius: max(4px, calc(var(--radius) - 3px));
51
- background: transparent;
52
- color: var(--muted);
53
- text-align: left;
54
- font-size: 12px;
55
- }
56
- .marker {
57
- display: flex;
58
- align-items: center;
59
- justify-content: center;
60
- width: 26px;
61
- height: 26px;
62
- flex: none;
63
- border: 1px solid var(--line);
64
- border-radius: 50%;
65
- color: var(--muted);
66
- background: var(--surface);
67
- transition:
68
- color var(--motion-hover),
69
- background var(--motion-hover),
70
- border-color var(--motion-hover),
71
- box-shadow var(--motion-hover);
72
- }
73
- .mark {
74
- display: flex;
75
- align-items: center;
76
- justify-content: center;
77
- animation: mark-in var(--motion-segment) var(--ease);
78
- }
79
- .mark > svg {
80
- width: 15px;
81
- height: 15px;
82
- }
83
- .copy {
84
- display: flex;
85
- min-width: 0;
86
- flex-direction: column;
87
- gap: 4px;
88
- line-height: 20px;
89
- overflow-wrap: anywhere;
90
- }
91
- .label {
92
- color: var(--fg);
93
- transition: color var(--motion-hover);
94
- }
95
- .description {
96
- color: var(--muted);
97
- font-size: 11px;
98
- line-height: 18px;
99
- }
100
- .item[data-status="current"] .marker,
101
- .item[data-status="loading"] .marker {
102
- color: var(--on-accent);
103
- background: var(--accent);
104
- border-color: var(--accent);
105
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent);
106
- }
107
- .item[data-status="complete"] .marker {
108
- color: var(--accent-ink, var(--accent));
109
- background: color-mix(in srgb, var(--accent) 9%, var(--surface));
110
- border-color: color-mix(in srgb, var(--accent) 35%, var(--surface));
111
- }
112
- .item[data-status="error"] .marker {
113
- color: var(--danger);
114
- border-color: var(--danger);
115
- background: color-mix(in srgb, var(--danger) 8%, var(--surface));
116
- }
117
- .item[data-status="error"] .label {
118
- color: var(--danger);
119
- }
120
- .control:is(button):hover:not(:disabled) .marker {
121
- border-color: var(--accent);
122
- }
123
- .control:is(button):hover:not(:disabled) .label {
124
- color: var(--accent-ink, var(--accent));
125
- }
126
- .control:focus-visible {
127
- outline-offset: 5px;
128
- }
129
- .item[data-disabled="true"] .control {
130
- opacity: 0.42;
131
- }
132
- .steps[data-orientation="vertical"] {
133
- flex-direction: column;
134
- }
135
- .steps[data-orientation="vertical"] .item {
136
- padding: 0 0 24px;
137
- }
138
- .steps[data-orientation="vertical"] .item:last-child {
139
- padding-bottom: 0;
140
- }
141
- .steps[data-orientation="vertical"] .control {
142
- flex-direction: row;
143
- gap: 12px;
144
- }
145
- .steps[data-orientation="vertical"] .copy {
146
- padding-top: 3px;
147
- }
148
- .steps[data-orientation="vertical"] .item:not(:last-child)::before,
149
- .steps[data-orientation="vertical"] .item:not(:last-child)::after {
150
- left: 12px;
151
- right: auto;
152
- top: 34px;
153
- bottom: 8px;
154
- width: var(--separator-width);
155
- height: auto;
156
- }
157
- .steps[data-orientation="vertical"] .item:not(:last-child)::after {
158
- transform: scaleY(0);
159
- transform-origin: top;
160
- }
161
- .steps[data-orientation="vertical"] .item[data-status="complete"]::after {
162
- transform: scaleY(1);
163
- }
164
- .srOnly {
165
- composes: visuallyHidden from "./Accessibility.module.css";
166
- }
167
- @keyframes mark-in {
168
- from {
169
- opacity: 0;
170
- transform: scale(0.85);
171
- }
172
- to {
173
- opacity: 1;
174
- transform: scale(1);
175
- }
176
- }
1
+ .steps {
2
+ list-style: none;
3
+ display: flex;
4
+ min-width: 0;
5
+ margin: 0;
6
+ padding: 0;
7
+ gap: 0;
8
+ }
9
+ .item {
10
+ position: relative;
11
+ flex: 1;
12
+ min-width: 0;
13
+ padding-right: 20px;
14
+ isolation: isolate;
15
+ }
16
+ .item:last-child {
17
+ padding-right: 0;
18
+ }
19
+ .item:not(:last-child)::before,
20
+ .item:not(:last-child)::after {
21
+ content: "";
22
+ position: absolute;
23
+ left: 34px;
24
+ right: 8px;
25
+ top: 12px;
26
+ height: var(--separator-width);
27
+ background: var(--separator-color);
28
+ z-index: -1;
29
+ }
30
+ .item:not(:last-child)::after {
31
+ background: var(--accent-ink, var(--accent));
32
+ transform: scaleX(0);
33
+ transform-origin: left;
34
+ transition:
35
+ transform var(--motion-segment) var(--ease),
36
+ background var(--motion-hover);
37
+ }
38
+ .item[data-status="complete"]::after {
39
+ transform: scaleX(1);
40
+ }
41
+ .control {
42
+ display: flex;
43
+ align-items: flex-start;
44
+ flex-direction: column;
45
+ gap: 9px;
46
+ width: 100%;
47
+ min-width: 0;
48
+ padding: 0;
49
+ border: 0;
50
+ border-radius: max(4px, calc(var(--radius) - 3px));
51
+ background: transparent;
52
+ color: var(--muted);
53
+ text-align: left;
54
+ font-size: 12px;
55
+ }
56
+ .marker {
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ width: 26px;
61
+ height: 26px;
62
+ flex: none;
63
+ border: 1px solid var(--line);
64
+ border-radius: 50%;
65
+ color: var(--muted);
66
+ background: var(--surface);
67
+ transition:
68
+ color var(--motion-hover),
69
+ background var(--motion-hover),
70
+ border-color var(--motion-hover),
71
+ box-shadow var(--motion-hover);
72
+ }
73
+ .mark {
74
+ display: flex;
75
+ align-items: center;
76
+ justify-content: center;
77
+ animation: mark-in var(--motion-segment) var(--ease);
78
+ }
79
+ .mark > svg {
80
+ width: 15px;
81
+ height: 15px;
82
+ }
83
+ .copy {
84
+ display: flex;
85
+ min-width: 0;
86
+ flex-direction: column;
87
+ gap: 4px;
88
+ line-height: 20px;
89
+ overflow-wrap: anywhere;
90
+ }
91
+ .label {
92
+ color: var(--fg);
93
+ transition: color var(--motion-hover);
94
+ }
95
+ .description {
96
+ color: var(--muted);
97
+ font-size: 11px;
98
+ line-height: 18px;
99
+ }
100
+ .item[data-status="current"] .marker,
101
+ .item[data-status="loading"] .marker {
102
+ color: var(--on-accent);
103
+ background: var(--accent);
104
+ border-color: var(--accent);
105
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent);
106
+ }
107
+ .item[data-status="complete"] .marker {
108
+ color: var(--accent-ink, var(--accent));
109
+ background: color-mix(in srgb, var(--accent) 9%, var(--surface));
110
+ border-color: color-mix(in srgb, var(--accent) 35%, var(--surface));
111
+ }
112
+ .item[data-status="error"] .marker {
113
+ color: var(--danger);
114
+ border-color: var(--danger);
115
+ background: color-mix(in srgb, var(--danger) 8%, var(--surface));
116
+ }
117
+ .item[data-status="error"] .label {
118
+ color: var(--danger);
119
+ }
120
+ .control:is(button):hover:not(:disabled) .marker {
121
+ border-color: var(--accent);
122
+ }
123
+ .control:is(button):hover:not(:disabled) .label {
124
+ color: var(--accent-ink, var(--accent));
125
+ }
126
+ .control:focus-visible {
127
+ outline-offset: 5px;
128
+ }
129
+ .item[data-disabled="true"] .control {
130
+ opacity: 0.42;
131
+ }
132
+ .steps[data-orientation="vertical"] {
133
+ flex-direction: column;
134
+ }
135
+ .steps[data-orientation="vertical"] .item {
136
+ padding: 0 0 24px;
137
+ }
138
+ .steps[data-orientation="vertical"] .item:last-child {
139
+ padding-bottom: 0;
140
+ }
141
+ .steps[data-orientation="vertical"] .control {
142
+ flex-direction: row;
143
+ gap: 12px;
144
+ }
145
+ .steps[data-orientation="vertical"] .copy {
146
+ padding-top: 3px;
147
+ }
148
+ .steps[data-orientation="vertical"] .item:not(:last-child)::before,
149
+ .steps[data-orientation="vertical"] .item:not(:last-child)::after {
150
+ left: 12px;
151
+ right: auto;
152
+ top: 34px;
153
+ bottom: 8px;
154
+ width: var(--separator-width);
155
+ height: auto;
156
+ }
157
+ .steps[data-orientation="vertical"] .item:not(:last-child)::after {
158
+ transform: scaleY(0);
159
+ transform-origin: top;
160
+ }
161
+ .steps[data-orientation="vertical"] .item[data-status="complete"]::after {
162
+ transform: scaleY(1);
163
+ }
164
+ .srOnly {
165
+ composes: visuallyHidden from "./Accessibility.module.css";
166
+ }
167
+ @keyframes mark-in {
168
+ from {
169
+ opacity: 0;
170
+ transform: scale(0.85);
171
+ }
172
+ to {
173
+ opacity: 1;
174
+ transform: scale(1);
175
+ }
176
+ }
@@ -1,148 +1,148 @@
1
- .viewport {
2
- overflow-x: auto;
3
- overflow-y: hidden;
4
- scrollbar-width: none;
5
- padding-bottom: 1px;
6
- min-width: 0;
7
- max-width: 100%;
8
- }
9
- .tabs {
10
- position: relative;
11
- display: flex;
12
- align-items: stretch;
13
- gap: 4px;
14
- width: max-content;
15
- min-width: 100%;
16
- isolation: isolate;
17
- }
18
- .tabs button {
19
- position: relative;
20
- z-index: 1;
21
- display: flex;
22
- align-items: center;
23
- justify-content: center;
24
- gap: 7px;
25
- white-space: nowrap;
26
- border: 0;
27
- background: transparent;
28
- min-height: 34px;
29
- padding: 7px 12px;
30
- font-size: 12px;
31
- color: var(--muted);
32
- border-radius: 6px;
33
- transition:
34
- color var(--motion-hover),
35
- background var(--motion-hover);
36
- }
37
- .tabs button:hover:not(:disabled) {
38
- color: var(--fg);
39
- }
40
- .tabs button[aria-selected="true"] {
41
- color: var(--fg);
42
- }
43
- .tabs button:focus-visible {
44
- outline-offset: -2px;
45
- }
46
- .indicator {
47
- position: absolute;
48
- z-index: 0;
49
- pointer-events: none;
50
- opacity: var(--tab-opacity, 0);
51
- left: 0;
52
- top: 0;
53
- transform: translate(var(--tab-x, 0px), var(--tab-y, 0px));
54
- width: var(--tab-width, 0px);
55
- height: var(--tab-height, 0px);
56
- background: var(--selected);
57
- border-radius: 6px;
58
- }
59
- .tabs[data-ready="true"] .indicator {
60
- transition:
61
- transform var(--motion-segment) var(--ease),
62
- width var(--motion-segment) var(--ease),
63
- height var(--motion-segment) var(--ease),
64
- opacity var(--motion-hover);
65
- }
66
- .viewport[data-orientation="vertical"] {
67
- width: 112px;
68
- flex: 0 0 112px;
69
- }
70
- .viewport[data-orientation="vertical"] .tabs {
71
- flex-direction: column;
72
- width: 100%;
73
- min-width: 0;
74
- }
75
- .viewport[data-orientation="vertical"] button {
76
- justify-content: flex-start;
77
- padding: 7px 9px;
78
- min-height: 34px;
79
- }
80
- .underlined {
81
- gap: 16px;
82
- border-bottom: var(--separator-width) var(--separator-style)
83
- var(--separator-color);
84
- }
85
- .underlined button {
86
- padding: 9px 2px;
87
- border-radius: 0;
88
- }
89
- .underlined .indicator {
90
- top: auto;
91
- bottom: -1px;
92
- height: 2px;
93
- transform: translateX(var(--tab-x, 0px));
94
- background: var(--tab-selected-color);
95
- border-radius: 2px;
96
- }
97
- .underlined button[aria-selected="true"] {
98
- color: var(--tab-selected-color);
99
- }
100
- @media (max-width: 450px) {
101
- .viewport[data-orientation="vertical"] {
102
- width: 94px;
103
- flex-basis: 94px;
104
- }
105
- }
106
-
107
- .blocked button:hover:not(:disabled) {
108
- background: color-mix(in srgb, var(--hover) 55%, transparent);
109
- }
110
- .underlined button:hover:not(:disabled) {
111
- background: transparent;
112
- color: var(--tab-selected-color);
113
- }
114
- .tabs button {
115
- min-height: var(--tab-height-min);
116
- font-size: var(--field-font-size);
117
- cursor: pointer;
118
- }
119
- .blocked {
120
- width: var(--blocked-width);
121
- min-width: var(--blocked-min-width);
122
- padding: var(--blocked-padding);
123
- border: var(--blocked-border);
124
- background: var(--blocked-background);
125
- border-radius: var(--blocked-radius);
126
- }
127
- .blocked .indicator {
128
- background: var(--blocked-selected);
129
- box-shadow: var(--blocked-shadow);
130
- }
131
- .blocked button {
132
- min-height: var(--blocked-height);
133
- padding: var(--blocked-button-padding);
134
- }
135
- .blocked button[aria-selected="true"] {
136
- color: var(--tab-selected-color);
137
- }
138
- .tabs button:disabled {
139
- opacity: 0.45;
140
- cursor: not-allowed;
141
- }
142
- .viewport[data-orientation="vertical"] {
143
- width: var(--vertical-tab-width);
144
- flex-basis: var(--vertical-tab-width);
145
- }
146
- .viewport[data-orientation="vertical"] .blocked {
147
- width: 100%;
148
- }
1
+ .viewport {
2
+ overflow-x: auto;
3
+ overflow-y: hidden;
4
+ scrollbar-width: none;
5
+ padding-bottom: 1px;
6
+ min-width: 0;
7
+ max-width: 100%;
8
+ }
9
+ .tabs {
10
+ position: relative;
11
+ display: flex;
12
+ align-items: stretch;
13
+ gap: 4px;
14
+ width: max-content;
15
+ min-width: 100%;
16
+ isolation: isolate;
17
+ }
18
+ .tabs button {
19
+ position: relative;
20
+ z-index: 1;
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ gap: 7px;
25
+ white-space: nowrap;
26
+ border: 0;
27
+ background: transparent;
28
+ min-height: 34px;
29
+ padding: 7px 12px;
30
+ font-size: 12px;
31
+ color: var(--muted);
32
+ border-radius: 6px;
33
+ transition:
34
+ color var(--motion-hover),
35
+ background var(--motion-hover);
36
+ }
37
+ .tabs button:hover:not(:disabled) {
38
+ color: var(--fg);
39
+ }
40
+ .tabs button[aria-selected="true"] {
41
+ color: var(--fg);
42
+ }
43
+ .tabs button:focus-visible {
44
+ outline-offset: -2px;
45
+ }
46
+ .indicator {
47
+ position: absolute;
48
+ z-index: 0;
49
+ pointer-events: none;
50
+ opacity: var(--tab-opacity, 0);
51
+ left: 0;
52
+ top: 0;
53
+ transform: translate(var(--tab-x, 0px), var(--tab-y, 0px));
54
+ width: var(--tab-width, 0px);
55
+ height: var(--tab-height, 0px);
56
+ background: var(--selected);
57
+ border-radius: 6px;
58
+ }
59
+ .tabs[data-ready="true"] .indicator {
60
+ transition:
61
+ transform var(--motion-segment) var(--ease),
62
+ width var(--motion-segment) var(--ease),
63
+ height var(--motion-segment) var(--ease),
64
+ opacity var(--motion-hover);
65
+ }
66
+ .viewport[data-orientation="vertical"] {
67
+ width: 112px;
68
+ flex: 0 0 112px;
69
+ }
70
+ .viewport[data-orientation="vertical"] .tabs {
71
+ flex-direction: column;
72
+ width: 100%;
73
+ min-width: 0;
74
+ }
75
+ .viewport[data-orientation="vertical"] button {
76
+ justify-content: flex-start;
77
+ padding: 7px 9px;
78
+ min-height: 34px;
79
+ }
80
+ .underlined {
81
+ gap: 16px;
82
+ border-bottom: var(--separator-width) var(--separator-style)
83
+ var(--separator-color);
84
+ }
85
+ .underlined button {
86
+ padding: 9px 2px;
87
+ border-radius: 0;
88
+ }
89
+ .underlined .indicator {
90
+ top: auto;
91
+ bottom: -1px;
92
+ height: 2px;
93
+ transform: translateX(var(--tab-x, 0px));
94
+ background: var(--tab-selected-color);
95
+ border-radius: 2px;
96
+ }
97
+ .underlined button[aria-selected="true"] {
98
+ color: var(--tab-selected-color);
99
+ }
100
+ @media (max-width: 450px) {
101
+ .viewport[data-orientation="vertical"] {
102
+ width: 94px;
103
+ flex-basis: 94px;
104
+ }
105
+ }
106
+
107
+ .blocked button:hover:not(:disabled) {
108
+ background: color-mix(in srgb, var(--hover) 55%, transparent);
109
+ }
110
+ .underlined button:hover:not(:disabled) {
111
+ background: transparent;
112
+ color: var(--tab-selected-color);
113
+ }
114
+ .tabs button {
115
+ min-height: var(--tab-height-min);
116
+ font-size: var(--field-font-size);
117
+ cursor: pointer;
118
+ }
119
+ .blocked {
120
+ width: var(--blocked-width);
121
+ min-width: var(--blocked-min-width);
122
+ padding: var(--blocked-padding);
123
+ border: var(--blocked-border);
124
+ background: var(--blocked-background);
125
+ border-radius: var(--blocked-radius);
126
+ }
127
+ .blocked .indicator {
128
+ background: var(--blocked-selected);
129
+ box-shadow: var(--blocked-shadow);
130
+ }
131
+ .blocked button {
132
+ min-height: var(--blocked-height);
133
+ padding: var(--blocked-button-padding);
134
+ }
135
+ .blocked button[aria-selected="true"] {
136
+ color: var(--tab-selected-color);
137
+ }
138
+ .tabs button:disabled {
139
+ opacity: 0.45;
140
+ cursor: not-allowed;
141
+ }
142
+ .viewport[data-orientation="vertical"] {
143
+ width: var(--vertical-tab-width);
144
+ flex-basis: var(--vertical-tab-width);
145
+ }
146
+ .viewport[data-orientation="vertical"] .blocked {
147
+ width: 100%;
148
+ }