@robert-stackflow/oneui 0.6.22 → 0.6.24

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 (57) hide show
  1. package/CHANGELOG.md +37 -24
  2. package/README.md +270 -270
  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/CommandPalette.d.ts +7 -1
  11. package/components/CommandPalette.js +22 -8
  12. package/components/ContextMenu.d.ts +3 -1
  13. package/components/ContextMenu.js +25 -4
  14. package/components/ContextMenuPanel.d.ts +2 -1
  15. package/components/ContextMenuPanel.js +3 -2
  16. package/components/ContributionCalendar.module.css +121 -121
  17. package/components/Control.module.css +86 -86
  18. package/components/DataTable.module.css +75 -75
  19. package/components/Dialog.d.ts +2 -1
  20. package/components/Dialog.js +3 -1
  21. package/components/Dialog.module.css +143 -139
  22. package/components/EditableHeading.d.ts +12 -0
  23. package/components/EditableHeading.js +76 -0
  24. package/components/EditableHeading.module.css +16 -0
  25. package/components/HierarchyPicker.module.css +185 -185
  26. package/components/Indicator.module.css +83 -83
  27. package/components/Layout.d.ts +1 -0
  28. package/components/Layout.module.css +82 -82
  29. package/components/Markdown.module.css +227 -227
  30. package/components/MenuItem.module.css +172 -172
  31. package/components/NavBar.module.css +130 -130
  32. package/components/Progress.module.css +33 -33
  33. package/components/RadioGroup.module.css +87 -87
  34. package/components/RangeSlider.module.css +141 -141
  35. package/components/ResizablePanel.module.css +101 -101
  36. package/components/ResourceCard.module.css +98 -98
  37. package/components/Segmented.d.ts +1 -0
  38. package/components/Segmented.js +6 -3
  39. package/components/Segmented.module.css +90 -85
  40. package/components/SidebarNavigation.js +4 -2
  41. package/components/SidebarNavigation.module.css +7 -2
  42. package/components/Slider.module.css +19 -19
  43. package/components/Steps.module.css +176 -176
  44. package/components/Tab.module.css +148 -148
  45. package/components/Table.module.css +87 -87
  46. package/components/TableOfContents.module.css +252 -252
  47. package/components/ThemePicker.module.css +178 -178
  48. package/components/TimeColumns.module.css +47 -47
  49. package/components/Timeline.module.css +202 -202
  50. package/components/TreeTable.module.css +57 -57
  51. package/components/UptimeChart.module.css +15 -15
  52. package/components/index.d.ts +2 -0
  53. package/components/index.js +2 -0
  54. package/package.json +1 -1
  55. package/styles/base.css +206 -206
  56. package/styles/blue.css +270 -270
  57. package/styles/minimal.css +319 -319
@@ -1,87 +1,87 @@
1
- .scroll {
2
- max-width: 100%;
3
- min-width: 0;
4
- overflow: auto;
5
- border: 1px solid var(--line);
6
- border-radius: var(--table-radius, var(--radius));
7
- overscroll-behavior: contain;
8
- }
9
- .scroll:focus-visible {
10
- outline: 2px solid var(--accent-ink, var(--accent));
11
- outline-offset: 2px;
12
- }
13
- .table {
14
- width: 100%;
15
- border-collapse: separate;
16
- border-spacing: 0;
17
- text-align: left;
18
- white-space: nowrap;
19
- font-size: 13px;
20
- line-height: 1.55;
21
- background: var(--surface);
22
- }
23
- .table :is(th, td) {
24
- height: 48px;
25
- padding: 12px 16px;
26
- border: 0;
27
- border-bottom: 1px solid var(--line);
28
- vertical-align: middle;
29
- font-variant-numeric: tabular-nums;
30
- }
31
- .table th {
32
- color: var(--muted);
33
- background: var(--canvas);
34
- font-size: 12px;
35
- font-weight: 500;
36
- }
37
- .table tbody tr:last-child td {
38
- border-bottom: 0;
39
- }
40
- .table tbody tr {
41
- transition: background-color var(--motion-hover);
42
- }
43
- .table[data-striped="true"] tbody tr:nth-child(even) {
44
- background: color-mix(in srgb, var(--fg) 3%, var(--surface));
45
- }
46
- .table:not([data-hoverable="false"]) tbody tr:hover,
47
- .table tbody tr:focus-within {
48
- background: var(--hover);
49
- }
50
- .table.table tbody tr:is([data-selected="true"], [aria-selected="true"]) {
51
- background: var(--selected);
52
- }
53
- .table[data-density="compact"] :is(th, td) {
54
- height: 36px;
55
- padding: 7px 12px;
56
- font-size: 12px;
57
- }
58
- .table[data-bordered="true"] tr > :is(th, td) + :is(th, td) {
59
- border-left: 1px solid var(--line);
60
- }
61
- .table[data-sticky-header="true"] thead th {
62
- position: sticky;
63
- top: 0;
64
- z-index: 1;
65
- box-shadow: 0 1px 0 var(--line);
66
- }
67
- .empty {
68
- text-align: center;
69
- height: 150px;
70
- color: var(--muted);
71
- }
72
- .caption {
73
- position: absolute;
74
- width: 1px;
75
- height: 1px;
76
- padding: 0;
77
- margin: -1px;
78
- overflow: hidden;
79
- clip: rect(0, 0, 0, 0);
80
- white-space: nowrap;
81
- border: 0;
82
- }
83
- @media (prefers-reduced-motion: reduce) {
84
- .table tbody tr {
85
- transition: none;
86
- }
87
- }
1
+ .scroll {
2
+ max-width: 100%;
3
+ min-width: 0;
4
+ overflow: auto;
5
+ border: 1px solid var(--line);
6
+ border-radius: var(--table-radius, var(--radius));
7
+ overscroll-behavior: contain;
8
+ }
9
+ .scroll:focus-visible {
10
+ outline: 2px solid var(--accent-ink, var(--accent));
11
+ outline-offset: 2px;
12
+ }
13
+ .table {
14
+ width: 100%;
15
+ border-collapse: separate;
16
+ border-spacing: 0;
17
+ text-align: left;
18
+ white-space: nowrap;
19
+ font-size: 13px;
20
+ line-height: 1.55;
21
+ background: var(--surface);
22
+ }
23
+ .table :is(th, td) {
24
+ height: 48px;
25
+ padding: 12px 16px;
26
+ border: 0;
27
+ border-bottom: 1px solid var(--line);
28
+ vertical-align: middle;
29
+ font-variant-numeric: tabular-nums;
30
+ }
31
+ .table th {
32
+ color: var(--muted);
33
+ background: var(--canvas);
34
+ font-size: 12px;
35
+ font-weight: 500;
36
+ }
37
+ .table tbody tr:last-child td {
38
+ border-bottom: 0;
39
+ }
40
+ .table tbody tr {
41
+ transition: background-color var(--motion-hover);
42
+ }
43
+ .table[data-striped="true"] tbody tr:nth-child(even) {
44
+ background: color-mix(in srgb, var(--fg) 3%, var(--surface));
45
+ }
46
+ .table:not([data-hoverable="false"]) tbody tr:hover,
47
+ .table tbody tr:focus-within {
48
+ background: var(--hover);
49
+ }
50
+ .table.table tbody tr:is([data-selected="true"], [aria-selected="true"]) {
51
+ background: var(--selected);
52
+ }
53
+ .table[data-density="compact"] :is(th, td) {
54
+ height: 36px;
55
+ padding: 7px 12px;
56
+ font-size: 12px;
57
+ }
58
+ .table[data-bordered="true"] tr > :is(th, td) + :is(th, td) {
59
+ border-left: 1px solid var(--line);
60
+ }
61
+ .table[data-sticky-header="true"] thead th {
62
+ position: sticky;
63
+ top: 0;
64
+ z-index: 1;
65
+ box-shadow: 0 1px 0 var(--line);
66
+ }
67
+ .empty {
68
+ text-align: center;
69
+ height: 150px;
70
+ color: var(--muted);
71
+ }
72
+ .caption {
73
+ position: absolute;
74
+ width: 1px;
75
+ height: 1px;
76
+ padding: 0;
77
+ margin: -1px;
78
+ overflow: hidden;
79
+ clip: rect(0, 0, 0, 0);
80
+ white-space: nowrap;
81
+ border: 0;
82
+ }
83
+ @media (prefers-reduced-motion: reduce) {
84
+ .table tbody tr {
85
+ transition: none;
86
+ }
87
+ }
@@ -1,252 +1,252 @@
1
- .tree {
2
- min-width: 0;
3
- color: var(--muted);
4
- font-size: 13px;
5
- }
6
- .title {
7
- display: flex;
8
- align-items: center;
9
- gap: 8px;
10
- min-height: 28px;
11
- margin-bottom: 8px;
12
- padding-left: 3px;
13
- font-size: 12px;
14
- }
15
- .scroll {
16
- min-height: 0;
17
- max-height: min(480px, 65vh);
18
- overflow-y: auto;
19
- overscroll-behavior: contain;
20
- }
21
- .list {
22
- position: relative;
23
- min-width: 0;
24
- }
25
- .guides {
26
- position: absolute;
27
- left: 0;
28
- top: 0;
29
- pointer-events: none;
30
- overflow: visible;
31
- }
32
- .guides > path {
33
- fill: none;
34
- stroke: var(--line);
35
- stroke-width: 1;
36
- }
37
- .list[data-ready="true"] .activeGuide {
38
- transition: clip-path var(--motion-segment, 240ms) var(--ease);
39
- }
40
- .activeGuide > path {
41
- stroke: var(--fg);
42
- stroke-linecap: round;
43
- }
44
- .thumb {
45
- position: absolute;
46
- left: 0;
47
- top: 0;
48
- width: 4px;
49
- height: 4px;
50
- border-radius: 50%;
51
- background: var(--fg);
52
- offset-anchor: center;
53
- offset-rotate: 0deg;
54
- pointer-events: none;
55
- }
56
- .link {
57
- position: relative;
58
- display: block;
59
- min-height: 32px;
60
- padding: 6px 8px 6px calc(20px + var(--toc-depth) * 8px);
61
- color: var(--muted);
62
- font: inherit;
63
- line-height: 1.6;
64
- text-decoration: none;
65
- overflow-wrap: anywhere;
66
- transition: color var(--motion-hover);
67
- }
68
- .link:hover,
69
- .link[data-active="true"] {
70
- color: var(--fg);
71
- }
72
- .link:focus-visible {
73
- outline: 2px solid var(--accent-ink, var(--accent));
74
- outline-offset: -2px;
75
- border-radius: 5px;
76
- }
77
- .rail {
78
- display: inline-flex;
79
- align-items: center;
80
- }
81
- .trigger {
82
- display: flex;
83
- flex-direction: column;
84
- align-items: flex-end;
85
- gap: 0;
86
- padding: 8px 5px;
87
- border: 0;
88
- border-radius: 8px;
89
- background: transparent;
90
- cursor: pointer;
91
- }
92
- .railItem {
93
- display: flex;
94
- align-items: center;
95
- justify-content: flex-end;
96
- width: 26px;
97
- height: 8px;
98
- padding-right: 3px;
99
- text-decoration: none;
100
- }
101
- .railItem > i {
102
- width: var(--toc-line-length, 12px);
103
- height: 2px;
104
- border-radius: 999px;
105
- background: var(--muted);
106
- opacity: 0.22;
107
- transform-origin: right center;
108
- transform: scaleX(var(--toc-line-scale, 1));
109
- transition:
110
- transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
111
- opacity 180ms var(--ease),
112
- background-color 180ms var(--ease);
113
- }
114
- .railItem[data-active="true"] > i {
115
- background: var(--fg);
116
- opacity: 1;
117
- }
118
- .railItem:not([data-active="true"]):hover > i {
119
- opacity: 0.65;
120
- }
121
- .trigger:focus-visible {
122
- outline: 2px solid var(--accent-ink, var(--accent));
123
- outline-offset: 2px;
124
- }
125
- .card {
126
- padding: 12px;
127
- min-height: 0;
128
- flex-shrink: 1;
129
- }
130
- .card .scroll {
131
- max-height: min(440px, calc(100dvh - 110px));
132
- }
133
- @media (prefers-reduced-motion: reduce) {
134
- .activeGuide,
135
- .thumb,
136
- .link,
137
- .railItem > i {
138
- transition: none;
139
- }
140
- }
141
-
142
- .flatMenu {
143
- min-width: 0;
144
- color: var(--fg);
145
- font-size: 13px;
146
- }
147
- .flatMenu .title {
148
- padding: 0 8px;
149
- margin-bottom: 10px;
150
- }
151
- .flatList {
152
- position: relative;
153
- display: flex;
154
- flex-direction: column;
155
- gap: 3px;
156
- }
157
- .flatLink {
158
- display: flex;
159
- align-items: baseline;
160
- gap: 12px;
161
- min-width: 0;
162
- padding: 9px 10px;
163
- border-radius: 7px;
164
- color: var(--muted);
165
- line-height: 1.5;
166
- text-decoration: none;
167
- transition:
168
- background-color var(--motion-hover),
169
- color var(--motion-hover);
170
- }
171
- .flatLink:hover {
172
- background: var(--hover);
173
- color: var(--fg);
174
- }
175
- .flatLink[data-active="true"] {
176
- color: var(--fg);
177
- }
178
- .flatLink[aria-current] {
179
- background: var(--selected);
180
- }
181
- .flatLink:focus-visible {
182
- outline: 2px solid var(--accent-ink, var(--accent));
183
- outline-offset: -2px;
184
- }
185
- .number {
186
- flex: 0 0 18px;
187
- color: var(--muted);
188
- font-size: 10px;
189
- font-variant-numeric: tabular-nums;
190
- opacity: 0.7;
191
- }
192
- .flatLink > span:last-child {
193
- min-width: 0;
194
- overflow-wrap: anywhere;
195
- }
196
- .card .flatMenu .scroll {
197
- max-height: min(380px, calc(100dvh - 110px));
198
- }
199
-
200
- .list[data-ready="true"] .thumb {
201
- transition:
202
- offset-distance var(--motion-segment, 240ms) var(--ease),
203
- opacity var(--motion-hover);
204
- }
205
- @media (prefers-reduced-motion: reduce) {
206
- .list[data-ready="true"] .thumb,
207
- .list[data-ready="true"] .activeGuide {
208
- transition: none;
209
- }
210
- }
211
-
212
- .railItem:focus-visible {
213
- outline: 2px solid var(--accent-ink, var(--accent));
214
- outline-offset: 1px;
215
- border-radius: 4px;
216
- }
217
- .excerpt {
218
- display: -webkit-box;
219
- -webkit-box-orient: vertical;
220
- -webkit-line-clamp: 3;
221
- overflow: hidden;
222
- margin-top: 6px;
223
- color: var(--muted);
224
- font-size: 12px;
225
- line-height: 1.6;
226
- font-weight: 400;
227
- }
228
-
229
- .previewSurface[data-motion-phase="visible"] {
230
- transition:
231
- top 160ms var(--ease),
232
- left 160ms var(--ease);
233
- }
234
- .previewTitle {
235
- display: -webkit-box;
236
- -webkit-box-orient: vertical;
237
- -webkit-line-clamp: 2;
238
- overflow: hidden;
239
- color: var(--fg);
240
- font-size: 13px;
241
- font-weight: 600;
242
- line-height: 1.5;
243
- }
244
- .flatMenu[data-preview-mode="single"] .flatLink {
245
- padding: 2px;
246
- background: transparent;
247
- }
248
- @media (prefers-reduced-motion: reduce) {
249
- .previewSurface[data-motion-phase="visible"] {
250
- transition: none;
251
- }
252
- }
1
+ .tree {
2
+ min-width: 0;
3
+ color: var(--muted);
4
+ font-size: 13px;
5
+ }
6
+ .title {
7
+ display: flex;
8
+ align-items: center;
9
+ gap: 8px;
10
+ min-height: 28px;
11
+ margin-bottom: 8px;
12
+ padding-left: 3px;
13
+ font-size: 12px;
14
+ }
15
+ .scroll {
16
+ min-height: 0;
17
+ max-height: min(480px, 65vh);
18
+ overflow-y: auto;
19
+ overscroll-behavior: contain;
20
+ }
21
+ .list {
22
+ position: relative;
23
+ min-width: 0;
24
+ }
25
+ .guides {
26
+ position: absolute;
27
+ left: 0;
28
+ top: 0;
29
+ pointer-events: none;
30
+ overflow: visible;
31
+ }
32
+ .guides > path {
33
+ fill: none;
34
+ stroke: var(--line);
35
+ stroke-width: 1;
36
+ }
37
+ .list[data-ready="true"] .activeGuide {
38
+ transition: clip-path var(--motion-segment, 240ms) var(--ease);
39
+ }
40
+ .activeGuide > path {
41
+ stroke: var(--fg);
42
+ stroke-linecap: round;
43
+ }
44
+ .thumb {
45
+ position: absolute;
46
+ left: 0;
47
+ top: 0;
48
+ width: 4px;
49
+ height: 4px;
50
+ border-radius: 50%;
51
+ background: var(--fg);
52
+ offset-anchor: center;
53
+ offset-rotate: 0deg;
54
+ pointer-events: none;
55
+ }
56
+ .link {
57
+ position: relative;
58
+ display: block;
59
+ min-height: 32px;
60
+ padding: 6px 8px 6px calc(20px + var(--toc-depth) * 8px);
61
+ color: var(--muted);
62
+ font: inherit;
63
+ line-height: 1.6;
64
+ text-decoration: none;
65
+ overflow-wrap: anywhere;
66
+ transition: color var(--motion-hover);
67
+ }
68
+ .link:hover,
69
+ .link[data-active="true"] {
70
+ color: var(--fg);
71
+ }
72
+ .link:focus-visible {
73
+ outline: 2px solid var(--accent-ink, var(--accent));
74
+ outline-offset: -2px;
75
+ border-radius: 5px;
76
+ }
77
+ .rail {
78
+ display: inline-flex;
79
+ align-items: center;
80
+ }
81
+ .trigger {
82
+ display: flex;
83
+ flex-direction: column;
84
+ align-items: flex-end;
85
+ gap: 0;
86
+ padding: 8px 5px;
87
+ border: 0;
88
+ border-radius: 8px;
89
+ background: transparent;
90
+ cursor: pointer;
91
+ }
92
+ .railItem {
93
+ display: flex;
94
+ align-items: center;
95
+ justify-content: flex-end;
96
+ width: 26px;
97
+ height: 8px;
98
+ padding-right: 3px;
99
+ text-decoration: none;
100
+ }
101
+ .railItem > i {
102
+ width: var(--toc-line-length, 12px);
103
+ height: 2px;
104
+ border-radius: 999px;
105
+ background: var(--muted);
106
+ opacity: 0.22;
107
+ transform-origin: right center;
108
+ transform: scaleX(var(--toc-line-scale, 1));
109
+ transition:
110
+ transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
111
+ opacity 180ms var(--ease),
112
+ background-color 180ms var(--ease);
113
+ }
114
+ .railItem[data-active="true"] > i {
115
+ background: var(--fg);
116
+ opacity: 1;
117
+ }
118
+ .railItem:not([data-active="true"]):hover > i {
119
+ opacity: 0.65;
120
+ }
121
+ .trigger:focus-visible {
122
+ outline: 2px solid var(--accent-ink, var(--accent));
123
+ outline-offset: 2px;
124
+ }
125
+ .card {
126
+ padding: 12px;
127
+ min-height: 0;
128
+ flex-shrink: 1;
129
+ }
130
+ .card .scroll {
131
+ max-height: min(440px, calc(100dvh - 110px));
132
+ }
133
+ @media (prefers-reduced-motion: reduce) {
134
+ .activeGuide,
135
+ .thumb,
136
+ .link,
137
+ .railItem > i {
138
+ transition: none;
139
+ }
140
+ }
141
+
142
+ .flatMenu {
143
+ min-width: 0;
144
+ color: var(--fg);
145
+ font-size: 13px;
146
+ }
147
+ .flatMenu .title {
148
+ padding: 0 8px;
149
+ margin-bottom: 10px;
150
+ }
151
+ .flatList {
152
+ position: relative;
153
+ display: flex;
154
+ flex-direction: column;
155
+ gap: 3px;
156
+ }
157
+ .flatLink {
158
+ display: flex;
159
+ align-items: baseline;
160
+ gap: 12px;
161
+ min-width: 0;
162
+ padding: 9px 10px;
163
+ border-radius: 7px;
164
+ color: var(--muted);
165
+ line-height: 1.5;
166
+ text-decoration: none;
167
+ transition:
168
+ background-color var(--motion-hover),
169
+ color var(--motion-hover);
170
+ }
171
+ .flatLink:hover {
172
+ background: var(--hover);
173
+ color: var(--fg);
174
+ }
175
+ .flatLink[data-active="true"] {
176
+ color: var(--fg);
177
+ }
178
+ .flatLink[aria-current] {
179
+ background: var(--selected);
180
+ }
181
+ .flatLink:focus-visible {
182
+ outline: 2px solid var(--accent-ink, var(--accent));
183
+ outline-offset: -2px;
184
+ }
185
+ .number {
186
+ flex: 0 0 18px;
187
+ color: var(--muted);
188
+ font-size: 10px;
189
+ font-variant-numeric: tabular-nums;
190
+ opacity: 0.7;
191
+ }
192
+ .flatLink > span:last-child {
193
+ min-width: 0;
194
+ overflow-wrap: anywhere;
195
+ }
196
+ .card .flatMenu .scroll {
197
+ max-height: min(380px, calc(100dvh - 110px));
198
+ }
199
+
200
+ .list[data-ready="true"] .thumb {
201
+ transition:
202
+ offset-distance var(--motion-segment, 240ms) var(--ease),
203
+ opacity var(--motion-hover);
204
+ }
205
+ @media (prefers-reduced-motion: reduce) {
206
+ .list[data-ready="true"] .thumb,
207
+ .list[data-ready="true"] .activeGuide {
208
+ transition: none;
209
+ }
210
+ }
211
+
212
+ .railItem:focus-visible {
213
+ outline: 2px solid var(--accent-ink, var(--accent));
214
+ outline-offset: 1px;
215
+ border-radius: 4px;
216
+ }
217
+ .excerpt {
218
+ display: -webkit-box;
219
+ -webkit-box-orient: vertical;
220
+ -webkit-line-clamp: 3;
221
+ overflow: hidden;
222
+ margin-top: 6px;
223
+ color: var(--muted);
224
+ font-size: 12px;
225
+ line-height: 1.6;
226
+ font-weight: 400;
227
+ }
228
+
229
+ .previewSurface[data-motion-phase="visible"] {
230
+ transition:
231
+ top 160ms var(--ease),
232
+ left 160ms var(--ease);
233
+ }
234
+ .previewTitle {
235
+ display: -webkit-box;
236
+ -webkit-box-orient: vertical;
237
+ -webkit-line-clamp: 2;
238
+ overflow: hidden;
239
+ color: var(--fg);
240
+ font-size: 13px;
241
+ font-weight: 600;
242
+ line-height: 1.5;
243
+ }
244
+ .flatMenu[data-preview-mode="single"] .flatLink {
245
+ padding: 2px;
246
+ background: transparent;
247
+ }
248
+ @media (prefers-reduced-motion: reduce) {
249
+ .previewSurface[data-motion-phase="visible"] {
250
+ transition: none;
251
+ }
252
+ }