@robert-stackflow/oneui 0.6.21 → 0.6.23

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 +30 -18
  2. package/README.md +270 -264
  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/ContextMenu.d.ts +3 -1
  11. package/components/ContextMenu.js +24 -4
  12. package/components/ContributionCalendar.module.css +121 -121
  13. package/components/Control.module.css +86 -86
  14. package/components/DataTable.module.css +75 -75
  15. package/components/Dialog.module.css +139 -139
  16. package/components/EditableHeading.d.ts +12 -0
  17. package/components/EditableHeading.js +76 -0
  18. package/components/EditableHeading.module.css +16 -0
  19. package/components/HierarchyPicker.module.css +185 -185
  20. package/components/IconButton.d.ts +3 -1
  21. package/components/IconButton.js +13 -2
  22. package/components/IconButton.module.css +13 -0
  23. package/components/Indicator.module.css +83 -83
  24. package/components/Layout.d.ts +1 -0
  25. package/components/Layout.module.css +82 -82
  26. package/components/Markdown.module.css +227 -227
  27. package/components/MenuItem.module.css +172 -172
  28. package/components/NavBar.module.css +130 -130
  29. package/components/Popover.d.ts +5 -1
  30. package/components/Popover.js +59 -28
  31. package/components/Popover.module.css +52 -0
  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.module.css +85 -85
  38. package/components/SidebarNavigation.js +4 -2
  39. package/components/SidebarNavigation.module.css +7 -2
  40. package/components/Slider.module.css +19 -19
  41. package/components/Steps.module.css +176 -176
  42. package/components/Tab.module.css +148 -148
  43. package/components/Table.module.css +87 -87
  44. package/components/TableOfContents.module.css +252 -252
  45. package/components/ThemePicker.module.css +178 -178
  46. package/components/TimeColumns.module.css +47 -47
  47. package/components/Timeline.module.css +202 -202
  48. package/components/TreeTable.module.css +57 -57
  49. package/components/UptimeChart.module.css +15 -15
  50. package/components/index.d.ts +2 -0
  51. package/components/index.js +2 -0
  52. package/components/motion.d.ts +1 -0
  53. package/components/motion.js +16 -2
  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,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
+ }
@@ -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
+ }