@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,87 +1,87 @@
1
- .group {
2
- border: 0;
3
- margin: 0;
4
- padding: 0;
5
- display: flex;
6
- gap: 20px;
7
- }
8
- .group legend {
9
- padding: 0;
10
- margin-bottom: 10px;
11
- font-size: 12px;
12
- }
13
- .group label {
14
- position: relative;
15
- display: inline-flex;
16
- align-items: center;
17
- gap: 8px;
18
- cursor: pointer;
19
- user-select: none;
20
- }
21
- .group input[type="radio"] {
22
- position: absolute;
23
- left: 0;
24
- margin: 0;
25
- width: 18px;
26
- height: 18px;
27
- opacity: 0;
28
- }
29
- .mark {
30
- display: grid;
31
- place-items: center;
32
- flex-shrink: 0;
33
- width: 18px;
34
- height: 18px;
35
- border: 1px solid color-mix(in srgb, var(--fg) 25%, var(--surface));
36
- border-radius: 50%;
37
- background: var(--field);
38
- pointer-events: none;
39
- transition:
40
- border-color var(--motion-hover),
41
- box-shadow var(--motion-hover),
42
- transform var(--motion-press);
43
- }
44
- .mark::after {
45
- content: "";
46
- width: 8px;
47
- height: 8px;
48
- border-radius: 50%;
49
- background: var(--accent-ink, var(--accent));
50
- transform: scale(0.25);
51
- opacity: 0;
52
- transition:
53
- transform var(--motion-panel) var(--ease),
54
- opacity var(--motion-hover);
55
- }
56
- .group input:checked + .mark {
57
- border-color: var(--accent-ink, var(--accent));
58
- }
59
- .group input:checked + .mark::after {
60
- transform: scale(1);
61
- opacity: 1;
62
- }
63
- .group label:hover input:not(:disabled) + .mark {
64
- border-color: var(--muted);
65
- }
66
- .group label:active input:not(:disabled) + .mark {
67
- transform: scale(0.92);
68
- }
69
- .group input:focus-visible + .mark {
70
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink, var(--accent)) 14%, transparent);
71
- border-color: var(--accent-ink, var(--accent));
72
- }
73
- .group label[data-disabled="true"] {
74
- cursor: not-allowed;
75
- }
76
- .group input:disabled ~ span {
77
- opacity: 0.4;
78
- }
79
-
80
- .group[data-orientation="vertical"] {
81
- flex-direction: column;
82
- align-items: flex-start;
83
- }
84
-
85
- .group[aria-invalid="true"] .mark {
86
- border-color: var(--danger);
87
- }
1
+ .group {
2
+ border: 0;
3
+ margin: 0;
4
+ padding: 0;
5
+ display: flex;
6
+ gap: 20px;
7
+ }
8
+ .group legend {
9
+ padding: 0;
10
+ margin-bottom: 10px;
11
+ font-size: 12px;
12
+ }
13
+ .group label {
14
+ position: relative;
15
+ display: inline-flex;
16
+ align-items: center;
17
+ gap: 8px;
18
+ cursor: pointer;
19
+ user-select: none;
20
+ }
21
+ .group input[type="radio"] {
22
+ position: absolute;
23
+ left: 0;
24
+ margin: 0;
25
+ width: 18px;
26
+ height: 18px;
27
+ opacity: 0;
28
+ }
29
+ .mark {
30
+ display: grid;
31
+ place-items: center;
32
+ flex-shrink: 0;
33
+ width: 18px;
34
+ height: 18px;
35
+ border: 1px solid color-mix(in srgb, var(--fg) 25%, var(--surface));
36
+ border-radius: 50%;
37
+ background: var(--field);
38
+ pointer-events: none;
39
+ transition:
40
+ border-color var(--motion-hover),
41
+ box-shadow var(--motion-hover),
42
+ transform var(--motion-press);
43
+ }
44
+ .mark::after {
45
+ content: "";
46
+ width: 8px;
47
+ height: 8px;
48
+ border-radius: 50%;
49
+ background: var(--accent-ink, var(--accent));
50
+ transform: scale(0.25);
51
+ opacity: 0;
52
+ transition:
53
+ transform var(--motion-panel) var(--ease),
54
+ opacity var(--motion-hover);
55
+ }
56
+ .group input:checked + .mark {
57
+ border-color: var(--accent-ink, var(--accent));
58
+ }
59
+ .group input:checked + .mark::after {
60
+ transform: scale(1);
61
+ opacity: 1;
62
+ }
63
+ .group label:hover input:not(:disabled) + .mark {
64
+ border-color: var(--muted);
65
+ }
66
+ .group label:active input:not(:disabled) + .mark {
67
+ transform: scale(0.92);
68
+ }
69
+ .group input:focus-visible + .mark {
70
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink, var(--accent)) 14%, transparent);
71
+ border-color: var(--accent-ink, var(--accent));
72
+ }
73
+ .group label[data-disabled="true"] {
74
+ cursor: not-allowed;
75
+ }
76
+ .group input:disabled ~ span {
77
+ opacity: 0.4;
78
+ }
79
+
80
+ .group[data-orientation="vertical"] {
81
+ flex-direction: column;
82
+ align-items: flex-start;
83
+ }
84
+
85
+ .group[aria-invalid="true"] .mark {
86
+ border-color: var(--danger);
87
+ }
@@ -1,141 +1,141 @@
1
- .field {
2
- min-width: 0;
3
- outline: none;
4
- }
5
- .label {
6
- display: flex;
7
- align-items: center;
8
- justify-content: space-between;
9
- gap: 12px;
10
- font-size: 12px;
11
- line-height: 20px;
12
- margin-bottom: 12px;
13
- }
14
- .label > span:last-child {
15
- color: var(--muted);
16
- font-variant-numeric: tabular-nums;
17
- white-space: nowrap;
18
- }
19
- .rail {
20
- position: relative;
21
- height: 24px;
22
- margin: 0 9px;
23
- touch-action: none;
24
- cursor: pointer;
25
- }
26
- .track,
27
- .fill {
28
- position: absolute;
29
- top: 10px;
30
- height: 4px;
31
- border-radius: 3px;
32
- pointer-events: none;
33
- }
34
- .track {
35
- inset-inline: 0;
36
- background: var(--line);
37
- }
38
- .fill {
39
- background: var(--accent-ink, var(--accent));
40
- transition:
41
- left var(--motion-hover) var(--ease),
42
- width var(--motion-hover) var(--ease);
43
- }
44
- .anchor {
45
- position: absolute;
46
- top: 50%;
47
- transform: translate(-50%, -50%);
48
- height: 18px;
49
- width: 18px;
50
- transition: left var(--motion-hover) var(--ease);
51
- }
52
- .thumb {
53
- display: block;
54
- width: 18px;
55
- height: 18px;
56
- background: var(--field);
57
- border: 1px solid color-mix(in srgb, var(--fg) 28%, var(--surface));
58
- border-radius: 50%;
59
- box-shadow: var(--shadow-sm);
60
- outline: none;
61
- cursor: grab;
62
- transition:
63
- border-color var(--motion-hover),
64
- box-shadow var(--motion-hover),
65
- background-color var(--motion-hover);
66
- }
67
- .thumb:hover {
68
- border-color: var(--accent-ink, var(--accent));
69
- }
70
- .thumb:focus,
71
- .thumb:focus-visible {
72
- outline: none;
73
- border-color: var(--accent-ink, var(--accent));
74
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-ink, var(--accent)) 12%, transparent);
75
- }
76
- .rail[data-dragging="true"] .thumb {
77
- cursor: grabbing;
78
- }
79
- .rail[data-dragging="true"] :is(.anchor, .fill) {
80
- transition: none;
81
- }
82
- .field[data-disabled="true"] {
83
- opacity: 0.45;
84
- }
85
- .field[data-disabled="true"] :is(.rail, .thumb) {
86
- cursor: not-allowed;
87
- }
88
- .field[aria-invalid="true"] .thumb {
89
- border-color: var(--danger);
90
- }
91
- .field[aria-invalid="true"] .thumb:focus {
92
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 12%, transparent);
93
- }
94
- .marks {
95
- position: relative;
96
- height: 24px;
97
- margin: 0 9px;
98
- font-size: 10px;
99
- color: var(--muted);
100
- }
101
- .mark {
102
- position: absolute;
103
- top: 0;
104
- max-width: 33%;
105
- transform: translateX(-50%);
106
- white-space: nowrap;
107
- overflow: hidden;
108
- text-overflow: ellipsis;
109
- padding-top: 8px;
110
- }
111
- .mark > i {
112
- position: absolute;
113
- top: 0;
114
- left: 50%;
115
- height: 4px;
116
- width: 1px;
117
- background: var(--line);
118
- }
119
- .mark[data-edge="start"] {
120
- transform: none;
121
- }
122
- .mark[data-edge="start"] > i {
123
- left: 0;
124
- }
125
- .mark[data-edge="end"] {
126
- transform: translateX(-100%);
127
- }
128
- .mark[data-edge="end"] > i {
129
- left: auto;
130
- right: 0;
131
- }
132
- @media (prefers-reduced-motion: reduce) {
133
- .anchor,
134
- .fill {
135
- transition: none;
136
- }
137
- }
138
-
139
- .anchor:focus-within {
140
- z-index: 3 !important;
141
- }
1
+ .field {
2
+ min-width: 0;
3
+ outline: none;
4
+ }
5
+ .label {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: space-between;
9
+ gap: 12px;
10
+ font-size: 12px;
11
+ line-height: 20px;
12
+ margin-bottom: 12px;
13
+ }
14
+ .label > span:last-child {
15
+ color: var(--muted);
16
+ font-variant-numeric: tabular-nums;
17
+ white-space: nowrap;
18
+ }
19
+ .rail {
20
+ position: relative;
21
+ height: 24px;
22
+ margin: 0 9px;
23
+ touch-action: none;
24
+ cursor: pointer;
25
+ }
26
+ .track,
27
+ .fill {
28
+ position: absolute;
29
+ top: 10px;
30
+ height: 4px;
31
+ border-radius: 3px;
32
+ pointer-events: none;
33
+ }
34
+ .track {
35
+ inset-inline: 0;
36
+ background: var(--line);
37
+ }
38
+ .fill {
39
+ background: var(--accent-ink, var(--accent));
40
+ transition:
41
+ left var(--motion-hover) var(--ease),
42
+ width var(--motion-hover) var(--ease);
43
+ }
44
+ .anchor {
45
+ position: absolute;
46
+ top: 50%;
47
+ transform: translate(-50%, -50%);
48
+ height: 18px;
49
+ width: 18px;
50
+ transition: left var(--motion-hover) var(--ease);
51
+ }
52
+ .thumb {
53
+ display: block;
54
+ width: 18px;
55
+ height: 18px;
56
+ background: var(--field);
57
+ border: 1px solid color-mix(in srgb, var(--fg) 28%, var(--surface));
58
+ border-radius: 50%;
59
+ box-shadow: var(--shadow-sm);
60
+ outline: none;
61
+ cursor: grab;
62
+ transition:
63
+ border-color var(--motion-hover),
64
+ box-shadow var(--motion-hover),
65
+ background-color var(--motion-hover);
66
+ }
67
+ .thumb:hover {
68
+ border-color: var(--accent-ink, var(--accent));
69
+ }
70
+ .thumb:focus,
71
+ .thumb:focus-visible {
72
+ outline: none;
73
+ border-color: var(--accent-ink, var(--accent));
74
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-ink, var(--accent)) 12%, transparent);
75
+ }
76
+ .rail[data-dragging="true"] .thumb {
77
+ cursor: grabbing;
78
+ }
79
+ .rail[data-dragging="true"] :is(.anchor, .fill) {
80
+ transition: none;
81
+ }
82
+ .field[data-disabled="true"] {
83
+ opacity: 0.45;
84
+ }
85
+ .field[data-disabled="true"] :is(.rail, .thumb) {
86
+ cursor: not-allowed;
87
+ }
88
+ .field[aria-invalid="true"] .thumb {
89
+ border-color: var(--danger);
90
+ }
91
+ .field[aria-invalid="true"] .thumb:focus {
92
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 12%, transparent);
93
+ }
94
+ .marks {
95
+ position: relative;
96
+ height: 24px;
97
+ margin: 0 9px;
98
+ font-size: 10px;
99
+ color: var(--muted);
100
+ }
101
+ .mark {
102
+ position: absolute;
103
+ top: 0;
104
+ max-width: 33%;
105
+ transform: translateX(-50%);
106
+ white-space: nowrap;
107
+ overflow: hidden;
108
+ text-overflow: ellipsis;
109
+ padding-top: 8px;
110
+ }
111
+ .mark > i {
112
+ position: absolute;
113
+ top: 0;
114
+ left: 50%;
115
+ height: 4px;
116
+ width: 1px;
117
+ background: var(--line);
118
+ }
119
+ .mark[data-edge="start"] {
120
+ transform: none;
121
+ }
122
+ .mark[data-edge="start"] > i {
123
+ left: 0;
124
+ }
125
+ .mark[data-edge="end"] {
126
+ transform: translateX(-100%);
127
+ }
128
+ .mark[data-edge="end"] > i {
129
+ left: auto;
130
+ right: 0;
131
+ }
132
+ @media (prefers-reduced-motion: reduce) {
133
+ .anchor,
134
+ .fill {
135
+ transition: none;
136
+ }
137
+ }
138
+
139
+ .anchor:focus-within {
140
+ z-index: 3 !important;
141
+ }
@@ -1,101 +1,101 @@
1
- .group {
2
- position: relative;
3
- display: grid;
4
- width: 100%;
5
- height: 100%;
6
- min-width: 0;
7
- min-height: 0;
8
- grid-template-columns: minmax(0, var(--panel-first)) 8px minmax(
9
- 0,
10
- var(--panel-second)
11
- );
12
- grid-template-rows: minmax(0, 1fr);
13
- overflow: hidden;
14
- transition:
15
- grid-template-columns var(--motion-panel) var(--ease),
16
- grid-template-rows var(--motion-panel) var(--ease);
17
- }
18
- .group[data-direction="vertical"] {
19
- grid-template-columns: minmax(0, 1fr);
20
- grid-template-rows: minmax(0, var(--panel-first)) 8px minmax(
21
- 0,
22
- var(--panel-second)
23
- );
24
- }
25
- .group[data-resizing="true"] {
26
- transition: none;
27
- }
28
- .pane {
29
- min-width: 0;
30
- min-height: 0;
31
- overflow: auto;
32
- overscroll-behavior: contain;
33
- }
34
- .pane[data-collapsed="true"] {
35
- visibility: hidden;
36
- }
37
- .handle {
38
- position: relative;
39
- cursor: col-resize;
40
- touch-action: none;
41
- outline: none;
42
- }
43
- .handle:focus-visible {
44
- outline: none;
45
- }
46
- .handle::before {
47
- content: "";
48
- position: absolute;
49
- top: 0;
50
- bottom: 0;
51
- left: calc(50% - 0.5px);
52
- width: var(--separator-width);
53
- background: var(--separator-color);
54
- transition: background var(--motion-hover);
55
- }
56
- .handle::after {
57
- content: "";
58
- position: absolute;
59
- top: 50%;
60
- left: 50%;
61
- transform: translate(-50%, -50%);
62
- width: 3px;
63
- height: 28px;
64
- border-radius: 3px;
65
- background: var(--muted);
66
- opacity: 0;
67
- transition: opacity var(--motion-hover);
68
- }
69
- .handle:hover:not([aria-disabled="true"])::after,
70
- .handle:focus-visible::after,
71
- .group[data-resizing="true"] > .handle::after {
72
- opacity: 1;
73
- }
74
- .handle:focus-visible::before,
75
- .group[data-resizing="true"] > .handle::before {
76
- background: var(--accent-ink, var(--accent));
77
- }
78
- .handle[aria-disabled="true"] {
79
- cursor: default;
80
- }
81
- .group[data-direction="vertical"] > .handle {
82
- cursor: row-resize;
83
- }
84
- .group[data-direction="vertical"] > .handle[aria-disabled="true"] {
85
- cursor: default;
86
- }
87
- .group[data-direction="vertical"] > .handle::before {
88
- left: 0;
89
- right: 0;
90
- top: calc(50% - 0.5px);
91
- bottom: auto;
92
- height: var(--separator-width);
93
- width: auto;
94
- }
95
- .group[data-direction="vertical"] > .handle::after {
96
- width: 28px;
97
- height: 3px;
98
- }
99
- .help {
100
- composes: visuallyHidden from "./Accessibility.module.css";
101
- }
1
+ .group {
2
+ position: relative;
3
+ display: grid;
4
+ width: 100%;
5
+ height: 100%;
6
+ min-width: 0;
7
+ min-height: 0;
8
+ grid-template-columns: minmax(0, var(--panel-first)) 8px minmax(
9
+ 0,
10
+ var(--panel-second)
11
+ );
12
+ grid-template-rows: minmax(0, 1fr);
13
+ overflow: hidden;
14
+ transition:
15
+ grid-template-columns var(--motion-panel) var(--ease),
16
+ grid-template-rows var(--motion-panel) var(--ease);
17
+ }
18
+ .group[data-direction="vertical"] {
19
+ grid-template-columns: minmax(0, 1fr);
20
+ grid-template-rows: minmax(0, var(--panel-first)) 8px minmax(
21
+ 0,
22
+ var(--panel-second)
23
+ );
24
+ }
25
+ .group[data-resizing="true"] {
26
+ transition: none;
27
+ }
28
+ .pane {
29
+ min-width: 0;
30
+ min-height: 0;
31
+ overflow: auto;
32
+ overscroll-behavior: contain;
33
+ }
34
+ .pane[data-collapsed="true"] {
35
+ visibility: hidden;
36
+ }
37
+ .handle {
38
+ position: relative;
39
+ cursor: col-resize;
40
+ touch-action: none;
41
+ outline: none;
42
+ }
43
+ .handle:focus-visible {
44
+ outline: none;
45
+ }
46
+ .handle::before {
47
+ content: "";
48
+ position: absolute;
49
+ top: 0;
50
+ bottom: 0;
51
+ left: calc(50% - 0.5px);
52
+ width: var(--separator-width);
53
+ background: var(--separator-color);
54
+ transition: background var(--motion-hover);
55
+ }
56
+ .handle::after {
57
+ content: "";
58
+ position: absolute;
59
+ top: 50%;
60
+ left: 50%;
61
+ transform: translate(-50%, -50%);
62
+ width: 3px;
63
+ height: 28px;
64
+ border-radius: 3px;
65
+ background: var(--muted);
66
+ opacity: 0;
67
+ transition: opacity var(--motion-hover);
68
+ }
69
+ .handle:hover:not([aria-disabled="true"])::after,
70
+ .handle:focus-visible::after,
71
+ .group[data-resizing="true"] > .handle::after {
72
+ opacity: 1;
73
+ }
74
+ .handle:focus-visible::before,
75
+ .group[data-resizing="true"] > .handle::before {
76
+ background: var(--accent-ink, var(--accent));
77
+ }
78
+ .handle[aria-disabled="true"] {
79
+ cursor: default;
80
+ }
81
+ .group[data-direction="vertical"] > .handle {
82
+ cursor: row-resize;
83
+ }
84
+ .group[data-direction="vertical"] > .handle[aria-disabled="true"] {
85
+ cursor: default;
86
+ }
87
+ .group[data-direction="vertical"] > .handle::before {
88
+ left: 0;
89
+ right: 0;
90
+ top: calc(50% - 0.5px);
91
+ bottom: auto;
92
+ height: var(--separator-width);
93
+ width: auto;
94
+ }
95
+ .group[data-direction="vertical"] > .handle::after {
96
+ width: 28px;
97
+ height: 3px;
98
+ }
99
+ .help {
100
+ composes: visuallyHidden from "./Accessibility.module.css";
101
+ }