@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,178 +1,178 @@
1
- .choices {
2
- display: grid;
3
- grid-template-columns: repeat(3, minmax(0, 1fr));
4
- gap: 16px;
5
- max-width: 680px;
6
- margin-bottom: 24px;
7
- }
8
- .choice {
9
- padding: 0;
10
- border: 0;
11
- background: transparent;
12
- text-align: left;
13
- border-radius: 12px;
14
- }
15
- .preview {
16
- display: block;
17
- position: relative;
18
- height: 130px;
19
- padding: 15px 17px 0;
20
- border: 1px solid var(--line);
21
- border-radius: 12px;
22
- overflow: hidden;
23
- background: var(--soft);
24
- transition:
25
- border-color var(--motion-hover),
26
- box-shadow var(--motion-hover);
27
- }
28
- .choice:hover .preview {
29
- border-color: color-mix(in srgb, var(--fg) 25%, var(--surface));
30
- }
31
- .choice[aria-pressed="true"] .preview {
32
- border-color: var(--accent-ink, var(--accent));
33
- box-shadow: 0 0 0 1px var(--accent-ink, var(--accent));
34
- }
35
- .window,
36
- .second {
37
- --mini-bg: #fff;
38
- --mini-side: #f5f5f5;
39
- --mini-line: #e7e7e7;
40
- display: block;
41
- height: 112px;
42
- overflow: hidden;
43
- background: var(--mini-bg);
44
- border: 1px solid var(--mini-line);
45
- border-radius: 7px;
46
- box-shadow: 0 5px 15px #0000000c;
47
- }
48
- .preview[data-mode="dark"] .window,
49
- .second {
50
- --mini-bg: #262626;
51
- --mini-side: #202020;
52
- --mini-line: #3b3b3b;
53
- }
54
- .bar {
55
- height: 17px;
56
- display: flex;
57
- align-items: center;
58
- gap: 3px;
59
- padding-left: 7px;
60
- border-bottom: 1px solid var(--mini-line);
61
- }
62
- .bar i {
63
- width: 3px;
64
- height: 3px;
65
- border-radius: 50%;
66
- background: var(--mini-line);
67
- }
68
- .body {
69
- display: grid;
70
- grid-template-columns: 30% 1fr;
71
- height: 100%;
72
- }
73
- .rail {
74
- display: grid;
75
- align-content: start;
76
- gap: 8px;
77
- background: var(--mini-side);
78
- padding: 12px 6px;
79
- border-right: 1px solid var(--mini-line);
80
- }
81
- .rail b {
82
- height: 4px;
83
- border-radius: 3px;
84
- background: var(--mini-line);
85
- }
86
- .rail b:first-child {
87
- height: 10px;
88
- }
89
- .content {
90
- padding: 13px 10px;
91
- display: grid;
92
- align-content: start;
93
- gap: 7px;
94
- }
95
- .content > i {
96
- height: 4px;
97
- border-radius: 3px;
98
- background: var(--mini-line);
99
- }
100
- .content > i:first-child {
101
- width: 50%;
102
- height: 6px;
103
- margin-bottom: 3px;
104
- }
105
- .content > span {
106
- display: flex;
107
- gap: 5px;
108
- }
109
- .content b {
110
- width: 50%;
111
- height: 23px;
112
- background: var(--mini-side);
113
- border: 1px solid var(--mini-line);
114
- border-radius: 3px;
115
- }
116
- .preview[data-mode="system"] .window {
117
- width: 83%;
118
- transform: translate(-4px, -3px);
119
- }
120
- .second {
121
- position: absolute;
122
- left: 30%;
123
- right: 10px;
124
- top: 42px;
125
- }
126
- .caption {
127
- display: flex;
128
- align-items: center;
129
- gap: 7px;
130
- padding: 11px 1px 0;
131
- font-size: 12px;
132
- }
133
- .caption > svg {
134
- width: 14px;
135
- height: 14px;
136
- color: var(--muted);
137
- }
138
- .check {
139
- margin-left: auto;
140
- display: grid;
141
- place-items: center;
142
- width: 16px;
143
- height: 16px;
144
- border: 1px solid var(--line);
145
- border-radius: 50%;
146
- }
147
- .check svg {
148
- width: 11px;
149
- height: 11px;
150
- opacity: 0;
151
- }
152
- .check[data-selected="true"] {
153
- background: var(--accent);
154
- border-color: var(--accent);
155
- color: var(--on-accent);
156
- }
157
- .check[data-selected="true"] svg {
158
- opacity: 1;
159
- }
160
- @media (max-width: 650px) {
161
- .choices {
162
- gap: 10px;
163
- }
164
- .preview {
165
- height: 100px;
166
- padding: 12px 8px 0;
167
- }
168
- .window {
169
- height: 90px;
170
- }
171
- .caption {
172
- font-size: 11px;
173
- }
174
- .second {
175
- left: 25%;
176
- top: 36px;
177
- }
178
- }
1
+ .choices {
2
+ display: grid;
3
+ grid-template-columns: repeat(3, minmax(0, 1fr));
4
+ gap: 16px;
5
+ max-width: 680px;
6
+ margin-bottom: 24px;
7
+ }
8
+ .choice {
9
+ padding: 0;
10
+ border: 0;
11
+ background: transparent;
12
+ text-align: left;
13
+ border-radius: 12px;
14
+ }
15
+ .preview {
16
+ display: block;
17
+ position: relative;
18
+ height: 130px;
19
+ padding: 15px 17px 0;
20
+ border: 1px solid var(--line);
21
+ border-radius: 12px;
22
+ overflow: hidden;
23
+ background: var(--soft);
24
+ transition:
25
+ border-color var(--motion-hover),
26
+ box-shadow var(--motion-hover);
27
+ }
28
+ .choice:hover .preview {
29
+ border-color: color-mix(in srgb, var(--fg) 25%, var(--surface));
30
+ }
31
+ .choice[aria-pressed="true"] .preview {
32
+ border-color: var(--accent-ink, var(--accent));
33
+ box-shadow: 0 0 0 1px var(--accent-ink, var(--accent));
34
+ }
35
+ .window,
36
+ .second {
37
+ --mini-bg: #fff;
38
+ --mini-side: #f5f5f5;
39
+ --mini-line: #e7e7e7;
40
+ display: block;
41
+ height: 112px;
42
+ overflow: hidden;
43
+ background: var(--mini-bg);
44
+ border: 1px solid var(--mini-line);
45
+ border-radius: 7px;
46
+ box-shadow: 0 5px 15px #0000000c;
47
+ }
48
+ .preview[data-mode="dark"] .window,
49
+ .second {
50
+ --mini-bg: #262626;
51
+ --mini-side: #202020;
52
+ --mini-line: #3b3b3b;
53
+ }
54
+ .bar {
55
+ height: 17px;
56
+ display: flex;
57
+ align-items: center;
58
+ gap: 3px;
59
+ padding-left: 7px;
60
+ border-bottom: 1px solid var(--mini-line);
61
+ }
62
+ .bar i {
63
+ width: 3px;
64
+ height: 3px;
65
+ border-radius: 50%;
66
+ background: var(--mini-line);
67
+ }
68
+ .body {
69
+ display: grid;
70
+ grid-template-columns: 30% 1fr;
71
+ height: 100%;
72
+ }
73
+ .rail {
74
+ display: grid;
75
+ align-content: start;
76
+ gap: 8px;
77
+ background: var(--mini-side);
78
+ padding: 12px 6px;
79
+ border-right: 1px solid var(--mini-line);
80
+ }
81
+ .rail b {
82
+ height: 4px;
83
+ border-radius: 3px;
84
+ background: var(--mini-line);
85
+ }
86
+ .rail b:first-child {
87
+ height: 10px;
88
+ }
89
+ .content {
90
+ padding: 13px 10px;
91
+ display: grid;
92
+ align-content: start;
93
+ gap: 7px;
94
+ }
95
+ .content > i {
96
+ height: 4px;
97
+ border-radius: 3px;
98
+ background: var(--mini-line);
99
+ }
100
+ .content > i:first-child {
101
+ width: 50%;
102
+ height: 6px;
103
+ margin-bottom: 3px;
104
+ }
105
+ .content > span {
106
+ display: flex;
107
+ gap: 5px;
108
+ }
109
+ .content b {
110
+ width: 50%;
111
+ height: 23px;
112
+ background: var(--mini-side);
113
+ border: 1px solid var(--mini-line);
114
+ border-radius: 3px;
115
+ }
116
+ .preview[data-mode="system"] .window {
117
+ width: 83%;
118
+ transform: translate(-4px, -3px);
119
+ }
120
+ .second {
121
+ position: absolute;
122
+ left: 30%;
123
+ right: 10px;
124
+ top: 42px;
125
+ }
126
+ .caption {
127
+ display: flex;
128
+ align-items: center;
129
+ gap: 7px;
130
+ padding: 11px 1px 0;
131
+ font-size: 12px;
132
+ }
133
+ .caption > svg {
134
+ width: 14px;
135
+ height: 14px;
136
+ color: var(--muted);
137
+ }
138
+ .check {
139
+ margin-left: auto;
140
+ display: grid;
141
+ place-items: center;
142
+ width: 16px;
143
+ height: 16px;
144
+ border: 1px solid var(--line);
145
+ border-radius: 50%;
146
+ }
147
+ .check svg {
148
+ width: 11px;
149
+ height: 11px;
150
+ opacity: 0;
151
+ }
152
+ .check[data-selected="true"] {
153
+ background: var(--accent);
154
+ border-color: var(--accent);
155
+ color: var(--on-accent);
156
+ }
157
+ .check[data-selected="true"] svg {
158
+ opacity: 1;
159
+ }
160
+ @media (max-width: 650px) {
161
+ .choices {
162
+ gap: 10px;
163
+ }
164
+ .preview {
165
+ height: 100px;
166
+ padding: 12px 8px 0;
167
+ }
168
+ .window {
169
+ height: 90px;
170
+ }
171
+ .caption {
172
+ font-size: 11px;
173
+ }
174
+ .second {
175
+ left: 25%;
176
+ top: 36px;
177
+ }
178
+ }
@@ -1,47 +1,47 @@
1
- .columns {
2
- display: flex;
3
- gap: 8px;
4
- padding: 4px;
5
- min-width: 170px;
6
- }
7
- .column {
8
- flex: 1;
9
- min-width: 0;
10
- text-align: center;
11
- }
12
- .column > span {
13
- display: block;
14
- padding: 6px 0 10px;
15
- font-size: 11px;
16
- color: var(--muted);
17
- }
18
- .column > div {
19
- position: relative;
20
- height: 216px;
21
- overflow: auto;
22
- overscroll-behavior: contain;
23
- scrollbar-gutter: stable;
24
- padding: 2px 3px;
25
- }
26
- .column button {
27
- display: block;
28
- width: 100%;
29
- padding: 6px;
30
- border: 0;
31
- border-radius: 5px;
32
- margin: 2px 0;
33
- background: transparent;
34
- font-size: 12px;
35
- font-variant-numeric: tabular-nums;
36
- }
37
- .column button:hover {
38
- background: var(--hover);
39
- }
40
- .column button[aria-selected="true"] {
41
- background: var(--selected);
42
- font-weight: 550;
43
- }
44
- .column button:focus-visible {
45
- outline: 2px solid var(--accent-ink, var(--accent));
46
- outline-offset: -2px;
47
- }
1
+ .columns {
2
+ display: flex;
3
+ gap: 8px;
4
+ padding: 4px;
5
+ min-width: 170px;
6
+ }
7
+ .column {
8
+ flex: 1;
9
+ min-width: 0;
10
+ text-align: center;
11
+ }
12
+ .column > span {
13
+ display: block;
14
+ padding: 6px 0 10px;
15
+ font-size: 11px;
16
+ color: var(--muted);
17
+ }
18
+ .column > div {
19
+ position: relative;
20
+ height: 216px;
21
+ overflow: auto;
22
+ overscroll-behavior: contain;
23
+ scrollbar-gutter: stable;
24
+ padding: 2px 3px;
25
+ }
26
+ .column button {
27
+ display: block;
28
+ width: 100%;
29
+ padding: 6px;
30
+ border: 0;
31
+ border-radius: 5px;
32
+ margin: 2px 0;
33
+ background: transparent;
34
+ font-size: 12px;
35
+ font-variant-numeric: tabular-nums;
36
+ }
37
+ .column button:hover {
38
+ background: var(--hover);
39
+ }
40
+ .column button[aria-selected="true"] {
41
+ background: var(--selected);
42
+ font-weight: 550;
43
+ }
44
+ .column button:focus-visible {
45
+ outline: 2px solid var(--accent-ink, var(--accent));
46
+ outline-offset: -2px;
47
+ }