@robert-stackflow/oneui 0.6.22 → 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 (49) hide show
  1. package/CHANGELOG.md +30 -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/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/Indicator.module.css +83 -83
  21. package/components/Layout.d.ts +1 -0
  22. package/components/Layout.module.css +82 -82
  23. package/components/Markdown.module.css +227 -227
  24. package/components/MenuItem.module.css +172 -172
  25. package/components/NavBar.module.css +130 -130
  26. package/components/Progress.module.css +33 -33
  27. package/components/RadioGroup.module.css +87 -87
  28. package/components/RangeSlider.module.css +141 -141
  29. package/components/ResizablePanel.module.css +101 -101
  30. package/components/ResourceCard.module.css +98 -98
  31. package/components/Segmented.module.css +85 -85
  32. package/components/SidebarNavigation.js +4 -2
  33. package/components/SidebarNavigation.module.css +7 -2
  34. package/components/Slider.module.css +19 -19
  35. package/components/Steps.module.css +176 -176
  36. package/components/Tab.module.css +148 -148
  37. package/components/Table.module.css +87 -87
  38. package/components/TableOfContents.module.css +252 -252
  39. package/components/ThemePicker.module.css +178 -178
  40. package/components/TimeColumns.module.css +47 -47
  41. package/components/Timeline.module.css +202 -202
  42. package/components/TreeTable.module.css +57 -57
  43. package/components/UptimeChart.module.css +15 -15
  44. package/components/index.d.ts +2 -0
  45. package/components/index.js +2 -0
  46. package/package.json +1 -1
  47. package/styles/base.css +206 -206
  48. package/styles/blue.css +270 -270
  49. package/styles/minimal.css +319 -319
@@ -1,30 +1,30 @@
1
- .badge {
2
- display: inline-flex;
3
- align-items: center;
4
- gap: 5px;
5
- padding: 3px 8px;
6
- font-size: 10px;
7
- border-radius: 5px;
8
- background: var(--soft);
9
- color: var(--muted);
10
- white-space: nowrap;
11
- }
12
- .success {
13
- color: var(--success);
14
- background: color-mix(in srgb, var(--success) 8%, var(--surface));
15
- }
16
- .warning {
17
- color: var(--warning);
18
- background: color-mix(in srgb, var(--warning) 8%, var(--surface));
19
- }
20
- .neutral {
21
- color: var(--muted);
22
- }
23
- .accent {
24
- color: var(--accent-ink, var(--accent));
25
- background: var(--accent-soft);
26
- }
27
- .danger {
28
- color: var(--danger);
29
- background: var(--danger-soft);
30
- }
1
+ .badge {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ gap: 5px;
5
+ padding: 3px 8px;
6
+ font-size: 10px;
7
+ border-radius: 5px;
8
+ background: var(--soft);
9
+ color: var(--muted);
10
+ white-space: nowrap;
11
+ }
12
+ .success {
13
+ color: var(--success);
14
+ background: color-mix(in srgb, var(--success) 8%, var(--surface));
15
+ }
16
+ .warning {
17
+ color: var(--warning);
18
+ background: color-mix(in srgb, var(--warning) 8%, var(--surface));
19
+ }
20
+ .neutral {
21
+ color: var(--muted);
22
+ }
23
+ .accent {
24
+ color: var(--accent-ink, var(--accent));
25
+ background: var(--accent-soft);
26
+ }
27
+ .danger {
28
+ color: var(--danger);
29
+ background: var(--danger-soft);
30
+ }
@@ -1,35 +1,35 @@
1
- .chart {
2
- height: 166px;
3
- display: flex;
4
- align-items: flex-end;
5
- gap: 5px;
6
- border-bottom: 1px solid var(--line);
7
- }
8
- .chart > span {
9
- flex: 1;
10
- min-width: 0;
11
- height: 100%;
12
- }
13
- .column {
14
- width: 100%;
15
- min-width: 0;
16
- display: flex;
17
- flex-direction: column;
18
- justify-content: flex-end;
19
- align-items: center;
20
- height: 100%;
21
- gap: 9px;
22
- }
23
- .bar {
24
- width: 75%;
25
- background: var(--accent-ink, var(--accent));
26
- opacity: 0.8;
27
- border-radius: 4px 4px 0 0;
28
- }
29
- .column > span {
30
- font-size: 9px;
31
- color: var(--muted);
32
- white-space: nowrap;
33
- height: 16px;
34
- padding-bottom: 3px;
35
- }
1
+ .chart {
2
+ height: 166px;
3
+ display: flex;
4
+ align-items: flex-end;
5
+ gap: 5px;
6
+ border-bottom: 1px solid var(--line);
7
+ }
8
+ .chart > span {
9
+ flex: 1;
10
+ min-width: 0;
11
+ height: 100%;
12
+ }
13
+ .column {
14
+ width: 100%;
15
+ min-width: 0;
16
+ display: flex;
17
+ flex-direction: column;
18
+ justify-content: flex-end;
19
+ align-items: center;
20
+ height: 100%;
21
+ gap: 9px;
22
+ }
23
+ .bar {
24
+ width: 75%;
25
+ background: var(--accent-ink, var(--accent));
26
+ opacity: 0.8;
27
+ border-radius: 4px 4px 0 0;
28
+ }
29
+ .column > span {
30
+ font-size: 9px;
31
+ color: var(--muted);
32
+ white-space: nowrap;
33
+ height: 16px;
34
+ padding-bottom: 3px;
35
+ }
@@ -1,97 +1,97 @@
1
- .breadcrumb {
2
- min-width: 0;
3
- max-width: 100%;
4
- }
5
- .breadcrumb ol {
6
- display: flex;
7
- align-items: center;
8
- flex-wrap: wrap;
9
- gap: 2px;
10
- list-style: none;
11
- margin: 0;
12
- padding: 0;
13
- min-width: 0;
14
- }
15
- .breadcrumb li {
16
- display: flex;
17
- align-items: center;
18
- gap: 2px;
19
- min-width: 0;
20
- max-width: 100%;
21
- }
22
- .crumb {
23
- display: inline-flex;
24
- align-items: center;
25
- gap: 6px;
26
- min-width: 0;
27
- max-width: min(240px, 100%);
28
- min-height: var(--control-small);
29
- padding: 4px 6px;
30
- border: 0;
31
- border-radius: max(4px, calc(var(--radius) - 3px));
32
- font-size: 12px;
33
- line-height: 20px;
34
- color: var(--muted);
35
- background: transparent;
36
- text-decoration: none;
37
- transition:
38
- background var(--motion-hover),
39
- color var(--motion-hover);
40
- }
41
- .crumb:is(a, button):hover {
42
- color: var(--fg);
43
- background: var(--hover);
44
- }
45
- .crumb[aria-expanded="true"] {
46
- color: var(--fg);
47
- background: var(--selected);
48
- }
49
- .crumb[aria-current="page"] {
50
- color: var(--fg);
51
- }
52
- .crumb[aria-disabled="true"] {
53
- opacity: 0.42;
54
- }
55
- .crumb:focus-visible {
56
- outline-offset: 1px;
57
- }
58
- .text {
59
- min-width: 0;
60
- overflow: hidden;
61
- text-overflow: ellipsis;
62
- white-space: nowrap;
63
- }
64
- .icon {
65
- display: inline-flex;
66
- flex: none;
67
- align-items: center;
68
- }
69
- .icon > svg,
70
- .crumb > svg {
71
- width: 14px;
72
- height: 14px;
73
- }
74
- .separator {
75
- width: 13px;
76
- height: 13px;
77
- color: var(--muted);
78
- opacity: 0.6;
79
- }
80
- .menu {
81
- display: flex;
82
- flex-direction: column;
83
- gap: var(--menu-item-spacing);
84
- }
85
- .menuLink {
86
- display: block;
87
- border-radius: max(4px, calc(var(--radius) - 3px));
88
- color: inherit;
89
- text-decoration: none;
90
- }
91
- .menuLink:focus-visible {
92
- outline: none;
93
- }
94
- .menuLink:focus-visible [data-menu-item] {
95
- background: var(--hover);
96
- box-shadow: inset 0 0 0 1px var(--accent-ink, var(--accent));
97
- }
1
+ .breadcrumb {
2
+ min-width: 0;
3
+ max-width: 100%;
4
+ }
5
+ .breadcrumb ol {
6
+ display: flex;
7
+ align-items: center;
8
+ flex-wrap: wrap;
9
+ gap: 2px;
10
+ list-style: none;
11
+ margin: 0;
12
+ padding: 0;
13
+ min-width: 0;
14
+ }
15
+ .breadcrumb li {
16
+ display: flex;
17
+ align-items: center;
18
+ gap: 2px;
19
+ min-width: 0;
20
+ max-width: 100%;
21
+ }
22
+ .crumb {
23
+ display: inline-flex;
24
+ align-items: center;
25
+ gap: 6px;
26
+ min-width: 0;
27
+ max-width: min(240px, 100%);
28
+ min-height: var(--control-small);
29
+ padding: 4px 6px;
30
+ border: 0;
31
+ border-radius: max(4px, calc(var(--radius) - 3px));
32
+ font-size: 12px;
33
+ line-height: 20px;
34
+ color: var(--muted);
35
+ background: transparent;
36
+ text-decoration: none;
37
+ transition:
38
+ background var(--motion-hover),
39
+ color var(--motion-hover);
40
+ }
41
+ .crumb:is(a, button):hover {
42
+ color: var(--fg);
43
+ background: var(--hover);
44
+ }
45
+ .crumb[aria-expanded="true"] {
46
+ color: var(--fg);
47
+ background: var(--selected);
48
+ }
49
+ .crumb[aria-current="page"] {
50
+ color: var(--fg);
51
+ }
52
+ .crumb[aria-disabled="true"] {
53
+ opacity: 0.42;
54
+ }
55
+ .crumb:focus-visible {
56
+ outline-offset: 1px;
57
+ }
58
+ .text {
59
+ min-width: 0;
60
+ overflow: hidden;
61
+ text-overflow: ellipsis;
62
+ white-space: nowrap;
63
+ }
64
+ .icon {
65
+ display: inline-flex;
66
+ flex: none;
67
+ align-items: center;
68
+ }
69
+ .icon > svg,
70
+ .crumb > svg {
71
+ width: 14px;
72
+ height: 14px;
73
+ }
74
+ .separator {
75
+ width: 13px;
76
+ height: 13px;
77
+ color: var(--muted);
78
+ opacity: 0.6;
79
+ }
80
+ .menu {
81
+ display: flex;
82
+ flex-direction: column;
83
+ gap: var(--menu-item-spacing);
84
+ }
85
+ .menuLink {
86
+ display: block;
87
+ border-radius: max(4px, calc(var(--radius) - 3px));
88
+ color: inherit;
89
+ text-decoration: none;
90
+ }
91
+ .menuLink:focus-visible {
92
+ outline: none;
93
+ }
94
+ .menuLink:focus-visible [data-menu-item] {
95
+ background: var(--hover);
96
+ box-shadow: inset 0 0 0 1px var(--accent-ink, var(--accent));
97
+ }
@@ -1,120 +1,120 @@
1
- .button {
2
- display: inline-flex;
3
- align-items: center;
4
- justify-content: center;
5
- gap: 7px;
6
- min-height: var(--control-height);
7
- padding: 6px 13px;
8
- border: 1px solid var(--line);
9
- border-radius: calc(var(--radius) - 3px);
10
- background: var(--surface);
11
- white-space: nowrap;
12
- transition:
13
- background var(--motion-hover),
14
- transform var(--motion-hover),
15
- border-color var(--motion-hover);
16
- font-size: 12px;
17
- text-decoration: none;
18
- color: var(--fg);
19
- }
20
- .button[aria-disabled="true"] {
21
- opacity: 0.5;
22
- cursor: not-allowed;
23
- }
24
- .button:hover:not(:disabled):not([aria-disabled="true"]) {
25
- background: var(--hover);
26
- border-color: color-mix(in srgb, var(--fg) 18%, var(--surface));
27
- }
28
- .button:active:not(:disabled):not([aria-disabled="true"]) {
29
- transform: translateY(1px);
30
- }
31
- .primary {
32
- background: var(--accent-fill, var(--accent));
33
- border-color: var(--accent-fill, var(--accent));
34
- color: var(--on-accent-fill, var(--on-accent));
35
- }
36
- .primary:hover:not(:disabled):not([aria-disabled="true"]) {
37
- background: var(
38
- --accent-fill-hover,
39
- color-mix(in srgb, var(--accent) 86%, var(--surface))
40
- );
41
- border-color: transparent;
42
- }
43
- .secondary {
44
- box-shadow: 0 1px 1px #00000003;
45
- }
46
- .ghost {
47
- background: transparent;
48
- border-color: transparent;
49
- box-shadow: none;
50
- }
51
- .danger {
52
- color: var(--danger);
53
- background: color-mix(in srgb, var(--danger) 5%, var(--surface));
54
- }
55
- .small {
56
- min-height: var(--control-small);
57
- padding: 4px 9px;
58
- font-size: 11px;
59
- }
60
- .link {
61
- min-height: 0;
62
- padding: 0;
63
- border: 0;
64
- border-radius: 2px;
65
- background: transparent;
66
- box-shadow: none;
67
- color: var(--link-color, var(--accent-ink, var(--accent)));
68
- font-size: 13px;
69
- line-height: 1.6;
70
- text-align: left;
71
- justify-content: flex-start;
72
- white-space: normal;
73
- }
74
- .link:hover:not(:disabled):not([aria-disabled="true"]) {
75
- background: transparent;
76
- color: var(
77
- --link-hover-color,
78
- var(--link-color, var(--accent-hover, var(--accent-ink, var(--accent))))
79
- );
80
- text-decoration: underline;
81
- text-underline-offset: 3px;
82
- }
83
- .link .content {
84
- justify-content: flex-start;
85
- }
86
- .spin {
87
- animation: spin 1s linear infinite;
88
- }
89
-
90
- .button {
91
- position: relative;
92
- }
93
- .content {
94
- display: inline-flex;
95
- align-items: center;
96
- justify-content: center;
97
- gap: 7px;
98
- }
99
- .loader {
100
- position: absolute;
101
- inset: 0;
102
- display: grid;
103
- place-items: center;
104
- }
105
- .button[aria-busy="true"] {
106
- opacity: 0.8;
107
- cursor: wait;
108
- }
109
-
110
- .content > svg {
111
- width: var(--button-icon-size, 16px);
112
- height: var(--button-icon-size, 16px);
113
- flex-shrink: 0;
114
- }
115
-
116
- @keyframes spin {
117
- to {
118
- transform: rotate(360deg);
119
- }
120
- }
1
+ .button {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ gap: 7px;
6
+ min-height: var(--control-height);
7
+ padding: 6px 13px;
8
+ border: 1px solid var(--line);
9
+ border-radius: calc(var(--radius) - 3px);
10
+ background: var(--surface);
11
+ white-space: nowrap;
12
+ transition:
13
+ background var(--motion-hover),
14
+ transform var(--motion-hover),
15
+ border-color var(--motion-hover);
16
+ font-size: 12px;
17
+ text-decoration: none;
18
+ color: var(--fg);
19
+ }
20
+ .button[aria-disabled="true"] {
21
+ opacity: 0.5;
22
+ cursor: not-allowed;
23
+ }
24
+ .button:hover:not(:disabled):not([aria-disabled="true"]) {
25
+ background: var(--hover);
26
+ border-color: color-mix(in srgb, var(--fg) 18%, var(--surface));
27
+ }
28
+ .button:active:not(:disabled):not([aria-disabled="true"]) {
29
+ transform: translateY(1px);
30
+ }
31
+ .primary {
32
+ background: var(--accent-fill, var(--accent));
33
+ border-color: var(--accent-fill, var(--accent));
34
+ color: var(--on-accent-fill, var(--on-accent));
35
+ }
36
+ .primary:hover:not(:disabled):not([aria-disabled="true"]) {
37
+ background: var(
38
+ --accent-fill-hover,
39
+ color-mix(in srgb, var(--accent) 86%, var(--surface))
40
+ );
41
+ border-color: transparent;
42
+ }
43
+ .secondary {
44
+ box-shadow: 0 1px 1px #00000003;
45
+ }
46
+ .ghost {
47
+ background: transparent;
48
+ border-color: transparent;
49
+ box-shadow: none;
50
+ }
51
+ .danger {
52
+ color: var(--danger);
53
+ background: color-mix(in srgb, var(--danger) 5%, var(--surface));
54
+ }
55
+ .small {
56
+ min-height: var(--control-small);
57
+ padding: 4px 9px;
58
+ font-size: 11px;
59
+ }
60
+ .link {
61
+ min-height: 0;
62
+ padding: 0;
63
+ border: 0;
64
+ border-radius: 2px;
65
+ background: transparent;
66
+ box-shadow: none;
67
+ color: var(--link-color, var(--accent-ink, var(--accent)));
68
+ font-size: 13px;
69
+ line-height: 1.6;
70
+ text-align: left;
71
+ justify-content: flex-start;
72
+ white-space: normal;
73
+ }
74
+ .link:hover:not(:disabled):not([aria-disabled="true"]) {
75
+ background: transparent;
76
+ color: var(
77
+ --link-hover-color,
78
+ var(--link-color, var(--accent-hover, var(--accent-ink, var(--accent))))
79
+ );
80
+ text-decoration: underline;
81
+ text-underline-offset: 3px;
82
+ }
83
+ .link .content {
84
+ justify-content: flex-start;
85
+ }
86
+ .spin {
87
+ animation: spin 1s linear infinite;
88
+ }
89
+
90
+ .button {
91
+ position: relative;
92
+ }
93
+ .content {
94
+ display: inline-flex;
95
+ align-items: center;
96
+ justify-content: center;
97
+ gap: 7px;
98
+ }
99
+ .loader {
100
+ position: absolute;
101
+ inset: 0;
102
+ display: grid;
103
+ place-items: center;
104
+ }
105
+ .button[aria-busy="true"] {
106
+ opacity: 0.8;
107
+ cursor: wait;
108
+ }
109
+
110
+ .content > svg {
111
+ width: var(--button-icon-size, 16px);
112
+ height: var(--button-icon-size, 16px);
113
+ flex-shrink: 0;
114
+ }
115
+
116
+ @keyframes spin {
117
+ to {
118
+ transform: rotate(360deg);
119
+ }
120
+ }