@typlog/ui 0.12.2 → 0.13.0
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.
- package/addons.js +5 -7
- package/components.css +585 -333
- package/components.d.ts +209 -104
- package/components.js +728 -437
- package/index.css +2 -0
- package/package.json +5 -4
- package/components/badge.css +0 -86
- package/components/card.css +0 -31
- package/components/checkbox.css +0 -90
- package/components/dialog.css +0 -159
- package/components/dropdown.css +0 -255
- package/components/editable.css +0 -34
- package/components/inputs.css +0 -570
- package/components/pagination.css +0 -279
- package/components/popover.css +0 -58
- package/components/quota.css +0 -14
- package/components/radio.css +0 -264
- package/components/scrollarea.css +0 -107
- package/components/separator.css +0 -26
- package/components/switch.css +0 -176
- package/components/table.css +0 -198
- package/components/tabs.css +0 -201
- package/components/toggle.css +0 -217
- package/components/tooltip.css +0 -45
- package/tailwind/colors.css +0 -1091
- package/tailwind/index.css +0 -3
- package/tailwind/shadow.css +0 -8
- package/tailwind/space.css +0 -11
package/index.css
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typlog/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Themed components for Reka UI with Radix colors.",
|
|
@@ -14,21 +14,22 @@
|
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
16
|
"types": "./components.d.ts",
|
|
17
|
+
"style": "./index.css",
|
|
17
18
|
"import": "./components.js"
|
|
18
19
|
},
|
|
19
20
|
"./components": {
|
|
20
21
|
"types": "./components.d.ts",
|
|
22
|
+
"style": "./components.css",
|
|
21
23
|
"import": "./components.js"
|
|
22
24
|
},
|
|
23
25
|
"./addons": {
|
|
24
26
|
"types": "./addons.d.ts",
|
|
27
|
+
"style": "./addons.css",
|
|
25
28
|
"import": "./addons.js"
|
|
26
29
|
},
|
|
27
30
|
"./base.css": "./base.css",
|
|
28
31
|
"./components.css": "./components.css",
|
|
29
|
-
"./
|
|
30
|
-
"./tailwind.css": "./tailwind.css",
|
|
31
|
-
"./components/": "./components/"
|
|
32
|
+
"./tailwind.css": "./tailwind.css"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"@iconify/vue": "^5.0.0",
|
package/components/badge.css
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.ui-Badge {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
white-space: nowrap;
|
|
6
|
-
font-weight: var(--font-weight-medium);
|
|
7
|
-
font-style: normal;
|
|
8
|
-
flex-shrink: 0;
|
|
9
|
-
line-height: 1;
|
|
10
|
-
height: -moz-fit-content;
|
|
11
|
-
height: fit-content;
|
|
12
|
-
width: -moz-fit-content;
|
|
13
|
-
width: fit-content;
|
|
14
|
-
}
|
|
15
|
-
.ui-Badge:where(.r-size-1) {
|
|
16
|
-
font-size: var(--font-size-1);
|
|
17
|
-
line-height: var(--line-height-1);
|
|
18
|
-
letter-spacing: var(--letter-spacing-1);
|
|
19
|
-
padding: calc(var(--space-1) * 0.5) calc(var(--space-1) * 1.5);
|
|
20
|
-
gap: calc(var(--space-1) * 1.5);
|
|
21
|
-
border-radius: max(var(--radius-1), var(--radius-full));
|
|
22
|
-
}
|
|
23
|
-
.ui-Badge:where(.r-size-1):where([data-radius="full"]) {
|
|
24
|
-
padding: calc(var(--space-1) * 0.5) var(--space-2);
|
|
25
|
-
}
|
|
26
|
-
.ui-Badge:where(.r-size-2) {
|
|
27
|
-
font-size: var(--font-size-1);
|
|
28
|
-
line-height: var(--line-height-1);
|
|
29
|
-
letter-spacing: var(--letter-spacing-1);
|
|
30
|
-
padding: var(--space-1) var(--space-2);
|
|
31
|
-
gap: calc(var(--space-1) * 1.5);
|
|
32
|
-
border-radius: max(var(--radius-2), var(--radius-full));
|
|
33
|
-
}
|
|
34
|
-
.ui-Badge:where(.r-size-2):where([data-radius="full"]) {
|
|
35
|
-
padding: var(--space-1) calc(var(--space-2) * 1.25);
|
|
36
|
-
}
|
|
37
|
-
.ui-Badge:where(.r-size-3) {
|
|
38
|
-
font-size: var(--font-size-2);
|
|
39
|
-
line-height: var(--line-height-2);
|
|
40
|
-
letter-spacing: var(--letter-spacing-2);
|
|
41
|
-
padding: var(--space-1) calc(var(--space-2) * 1.25);
|
|
42
|
-
gap: var(--space-2);
|
|
43
|
-
border-radius: max(var(--radius-2), var(--radius-full));
|
|
44
|
-
}
|
|
45
|
-
.ui-Badge:where(.r-size-3):where([data-radius="full"]) {
|
|
46
|
-
padding: var(--space-1) calc(var(--space-2) * 1.5);
|
|
47
|
-
}
|
|
48
|
-
.ui-Badge:where(.r-variant-solid) {
|
|
49
|
-
background-color: var(--accent-9);
|
|
50
|
-
color: var(--accent-contrast);
|
|
51
|
-
}
|
|
52
|
-
.ui-Badge:where(.r-variant-solid):where(.r-high-contrast) {
|
|
53
|
-
background-color: var(--accent-12);
|
|
54
|
-
color: var(--gray-1);
|
|
55
|
-
}
|
|
56
|
-
.ui-Badge:where(.r-variant-solid)::-moz-selection {
|
|
57
|
-
background-color: var(--accent-7);
|
|
58
|
-
color: var(--accent-12);
|
|
59
|
-
}
|
|
60
|
-
.ui-Badge:where(.r-variant-solid)::selection {
|
|
61
|
-
background-color: var(--accent-7);
|
|
62
|
-
color: var(--accent-12);
|
|
63
|
-
}
|
|
64
|
-
.ui-Badge:where(.r-variant-soft) {
|
|
65
|
-
background-color: var(--accent-a3);
|
|
66
|
-
color: var(--accent-a11);
|
|
67
|
-
}
|
|
68
|
-
.ui-Badge:where(.r-variant-soft):where(.r-high-contrast) {
|
|
69
|
-
color: var(--accent-12);
|
|
70
|
-
}
|
|
71
|
-
.ui-Badge:where(.r-variant-surface) {
|
|
72
|
-
background-color: var(--accent-surface);
|
|
73
|
-
box-shadow: inset 0 0 0 1px var(--accent-a6);
|
|
74
|
-
color: var(--accent-a11);
|
|
75
|
-
}
|
|
76
|
-
.ui-Badge:where(.r-variant-surface):where(.r-high-contrast) {
|
|
77
|
-
color: var(--accent-12);
|
|
78
|
-
}
|
|
79
|
-
.ui-Badge:where(.r-variant-outline) {
|
|
80
|
-
box-shadow: inset 0 0 0 1px var(--accent-a8);
|
|
81
|
-
color: var(--accent-a11);
|
|
82
|
-
}
|
|
83
|
-
.ui-Badge:where(.r-variant-outline):where(.r-high-contrast) {
|
|
84
|
-
box-shadow: inset 0 0 0 1px var(--accent-a7), inset 0 0 0 1px var(--gray-a11);
|
|
85
|
-
color: var(--accent-12);
|
|
86
|
-
}
|
package/components/card.css
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.ui-Card:where(.r-size-1) {
|
|
3
|
-
--card-padding: var(--space-3);
|
|
4
|
-
--card-border-radius: max(var(--radius-4), var(--radius-full));
|
|
5
|
-
}
|
|
6
|
-
.ui-Card:where(.r-size-2) {
|
|
7
|
-
--card-padding: var(--space-4);
|
|
8
|
-
--card-border-radius: max(var(--radius-4), var(--radius-full));
|
|
9
|
-
}
|
|
10
|
-
.ui-Card:where(.r-size-3) {
|
|
11
|
-
--card-padding: var(--space-5);
|
|
12
|
-
--card-border-radius: max(var(--radius-5), var(--radius-full));
|
|
13
|
-
}
|
|
14
|
-
.ui-Card:where(.r-size-4) {
|
|
15
|
-
--card-padding: var(--space-6);
|
|
16
|
-
--card-border-radius: max(var(--radius-5), var(--radius-full));
|
|
17
|
-
}
|
|
18
|
-
.ui-Card:where(.r-size-5) {
|
|
19
|
-
--card-padding: var(--space-8);
|
|
20
|
-
--card-border-radius: max(var(--radius-6), var(--radius-full));
|
|
21
|
-
}
|
|
22
|
-
.ui-Card:where(.r-variant-soft) {
|
|
23
|
-
border-color: var(--gray-2);
|
|
24
|
-
background-color: var(--gray-2);
|
|
25
|
-
}
|
|
26
|
-
.ui-Card:where(.r-variant-soft):where(:-moz-any-link, button, label):where(:hover) {
|
|
27
|
-
border-color: var(--gray-a5);
|
|
28
|
-
}
|
|
29
|
-
.ui-Card:where(.r-variant-soft):where(:any-link, button, label):where(:hover) {
|
|
30
|
-
border-color: var(--gray-a5);
|
|
31
|
-
}
|
package/components/checkbox.css
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.ui-Checkbox {
|
|
3
|
-
position: relative;
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
vertical-align: top;
|
|
8
|
-
flex-shrink: 0;
|
|
9
|
-
cursor: default;
|
|
10
|
-
height: var(--checkbox-size);
|
|
11
|
-
border-radius: var(--checkbox-border-radius);
|
|
12
|
-
}
|
|
13
|
-
.ui-Checkbox::before {
|
|
14
|
-
content: '';
|
|
15
|
-
display: block;
|
|
16
|
-
height: var(--checkbox-size);
|
|
17
|
-
width: var(--checkbox-size);
|
|
18
|
-
border-radius: var(--checkbox-border-radius);
|
|
19
|
-
}
|
|
20
|
-
.ui-Checkbox:where(:focus-visible)::before {
|
|
21
|
-
outline: 2px solid var(--focus-8);
|
|
22
|
-
outline-offset: 2px;
|
|
23
|
-
}
|
|
24
|
-
.ui-Checkbox:where(:disabled) {
|
|
25
|
-
cursor: not-allowed;
|
|
26
|
-
}
|
|
27
|
-
.ui-Checkbox:where(:disabled)::before {
|
|
28
|
-
background-color: var(--gray-a3);
|
|
29
|
-
}
|
|
30
|
-
.ui-CheckboxIndicator {
|
|
31
|
-
position: absolute;
|
|
32
|
-
width: var(--checkbox-indicator-size);
|
|
33
|
-
height: var(--checkbox-indicator-size);
|
|
34
|
-
transform: translate(-50%, -50%);
|
|
35
|
-
top: 50%;
|
|
36
|
-
left: 50%;
|
|
37
|
-
}
|
|
38
|
-
.ui-Checkbox:where(.r-size-1) {
|
|
39
|
-
--checkbox-size: calc(var(--space-4) * 0.875);
|
|
40
|
-
--checkbox-indicator-size: calc(9px * var(--scaling));
|
|
41
|
-
--checkbox-border-radius: calc(var(--radius-1) * 0.875);
|
|
42
|
-
}
|
|
43
|
-
.ui-Checkbox:where(.r-size-2) {
|
|
44
|
-
--checkbox-size: var(--space-4);
|
|
45
|
-
--checkbox-indicator-size: calc(10px * var(--scaling));
|
|
46
|
-
--checkbox-border-radius: var(--radius-1);
|
|
47
|
-
}
|
|
48
|
-
.ui-Checkbox:where(.r-size-3) {
|
|
49
|
-
--checkbox-size: calc(var(--space-4) * 1.25);
|
|
50
|
-
--checkbox-indicator-size: calc(12px * var(--scaling));
|
|
51
|
-
--checkbox-border-radius: calc(var(--radius-1) * 1.25);
|
|
52
|
-
}
|
|
53
|
-
.ui-Checkbox:where(.r-variant-surface):where([data-state='unchecked'])::before {
|
|
54
|
-
background-color: var(--color-surface);
|
|
55
|
-
box-shadow: inset 0 0 0 1px var(--gray-a7);
|
|
56
|
-
}
|
|
57
|
-
.ui-Checkbox:where(.r-variant-surface):where([data-state='checked'], [data-state='indeterminate'])::before {
|
|
58
|
-
background-color: var(--accent-indicator);
|
|
59
|
-
}
|
|
60
|
-
.ui-Checkbox:where(.r-variant-surface):where([data-state='checked'], [data-state='indeterminate']) .ui-CheckboxIndicator {
|
|
61
|
-
color: var(--accent-contrast);
|
|
62
|
-
}
|
|
63
|
-
.ui-Checkbox:where(.r-variant-surface):where(.r-high-contrast):where([data-state='checked'], [data-state='indeterminate'])::before {
|
|
64
|
-
background-color: var(--accent-12);
|
|
65
|
-
}
|
|
66
|
-
.ui-Checkbox:where(.r-variant-surface):where(.r-high-contrast):where([data-state='checked'], [data-state='indeterminate']) .ui-CheckboxIndicator {
|
|
67
|
-
color: var(--accent-1);
|
|
68
|
-
}
|
|
69
|
-
.ui-Checkbox:where(.r-variant-surface):disabled:where([data-state='checked'], [data-state='indeterminate'])::before {
|
|
70
|
-
box-shadow: inset 0 0 0 1px var(--gray-a6);
|
|
71
|
-
background-color: transparent;
|
|
72
|
-
}
|
|
73
|
-
.ui-Checkbox:where(.r-variant-surface):disabled:where([data-state='checked'], [data-state='indeterminate']) .ui-CheckboxIndicator {
|
|
74
|
-
color: var(--gray-a8);
|
|
75
|
-
}
|
|
76
|
-
.ui-Checkbox:where(.r-variant-soft)::before {
|
|
77
|
-
background-color: var(--accent-a5);
|
|
78
|
-
}
|
|
79
|
-
.ui-Checkbox:where(.r-variant-soft):where([data-state='checked'], [data-state='indeterminate']) .ui-CheckboxIndicator {
|
|
80
|
-
color: var(--accent-a11);
|
|
81
|
-
}
|
|
82
|
-
.ui-Checkbox:where(.r-variant-soft):where(.r-high-contrast):where([data-state='checked'], [data-state='indeterminate']) .ui-CheckboxIndicator {
|
|
83
|
-
color: var(--accent-12);
|
|
84
|
-
}
|
|
85
|
-
.ui-Checkbox:where(.r-variant-soft):disabled::before {
|
|
86
|
-
background-color: var(--gray-a3);
|
|
87
|
-
}
|
|
88
|
-
.ui-Checkbox:where(.r-variant-soft):disabled .ui-CheckboxIndicator {
|
|
89
|
-
color: var(--gray-a8);
|
|
90
|
-
}
|
package/components/dialog.css
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.ui-DialogTitle {
|
|
3
|
-
font-size: var(--font-size-4);
|
|
4
|
-
font-weight: var(--font-weight-semibold);
|
|
5
|
-
line-height: var(--line-height-4);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.ui-DialogDescription {
|
|
9
|
-
font-size: var(--font-size-3);
|
|
10
|
-
line-height: var(--line-height-2);
|
|
11
|
-
color: var(--gray-11);
|
|
12
|
-
}
|
|
13
|
-
.ui-DialogTitle + .ui-DialogDescription {
|
|
14
|
-
margin-top: var(--space-2);
|
|
15
|
-
}
|
|
16
|
-
.ui-DialogOverlay {
|
|
17
|
-
position: fixed;
|
|
18
|
-
inset: 0;
|
|
19
|
-
}
|
|
20
|
-
.ui-DialogOverlay::before {
|
|
21
|
-
position: fixed;
|
|
22
|
-
content: '';
|
|
23
|
-
inset: 0;
|
|
24
|
-
background-color: var(--color-overlay);
|
|
25
|
-
}
|
|
26
|
-
.ui-DialogWrapper {
|
|
27
|
-
display: flex;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
position: absolute;
|
|
30
|
-
inset: 0;
|
|
31
|
-
}
|
|
32
|
-
.ui-DialogContainer {
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
flex-grow: 1;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: flex-end;
|
|
38
|
-
width: 100%;
|
|
39
|
-
box-sizing: border-box;
|
|
40
|
-
padding-top: var(--space-6);
|
|
41
|
-
}
|
|
42
|
-
@layer components {
|
|
43
|
-
.ui-DialogPopup {
|
|
44
|
-
width: 100%;
|
|
45
|
-
max-height: calc(100vh - var(--space-6) * 2);
|
|
46
|
-
position: relative;
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
overflow: auto;
|
|
49
|
-
text-align: left;
|
|
50
|
-
box-sizing: border-box;
|
|
51
|
-
background-color: var(--color-panel-solid);
|
|
52
|
-
outline: none;
|
|
53
|
-
border-top-left-radius: var(--dialog-popup-radius);
|
|
54
|
-
border-top-right-radius: var(--dialog-popup-radius);
|
|
55
|
-
max-width: var(--dialog-popup-max-width);
|
|
56
|
-
max-height: var(--dialog-popup-max-height);
|
|
57
|
-
padding: var(--dialog-popup-padding);
|
|
58
|
-
}
|
|
59
|
-
:where(.ui-DialogPopup) .ui-CloseButton {
|
|
60
|
-
position: absolute;
|
|
61
|
-
top: calc(var(--dialog-popup-padding) / 2);
|
|
62
|
-
right: calc(var(--dialog-popup-padding) / 2);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
.ui-DialogPopup:where(.r-size-1) {
|
|
66
|
-
--dialog-popup-padding: var(--space-4);
|
|
67
|
-
--dialog-popup-radius: var(--radius-4);
|
|
68
|
-
--dialog-popup-max-width: 450px;
|
|
69
|
-
--dialog-popup-max-height: calc(100vh - 100px);
|
|
70
|
-
}
|
|
71
|
-
.ui-DialogPopup:where(.r-size-2) {
|
|
72
|
-
--dialog-popup-padding: var(--space-4);
|
|
73
|
-
--dialog-popup-radius: var(--radius-4);
|
|
74
|
-
--dialog-popup-max-width: 600px;
|
|
75
|
-
--dialog-popup-max-height: calc(100vh - 100px);
|
|
76
|
-
}
|
|
77
|
-
.ui-DialogPopup:where(.r-size-3) {
|
|
78
|
-
--dialog-popup-padding: var(--space-5);
|
|
79
|
-
--dialog-popup-radius: var(--radius-5);
|
|
80
|
-
--dialog-popup-max-width: 860px;
|
|
81
|
-
--dialog-popup-max-height: calc(100vh - 100px);
|
|
82
|
-
}
|
|
83
|
-
.ui-DialogPopup:where(.r-size-4) {
|
|
84
|
-
--dialog-popup-padding: var(--space-5);
|
|
85
|
-
--dialog-popup-radius: var(--radius-5);
|
|
86
|
-
--dialog-popup-max-width: 1200px;
|
|
87
|
-
--dialog-popup-max-height: calc(100vh - 100px);
|
|
88
|
-
}
|
|
89
|
-
.ui-DialogPopup:where(.r-size-5) {
|
|
90
|
-
--dialog-popup-padding: var(--space-6);
|
|
91
|
-
--dialog-popup-radius: var(--radius-5);
|
|
92
|
-
--dialog-popup-max-width: none;
|
|
93
|
-
--dialog-popup-max-height: calc(100vh - 64px);
|
|
94
|
-
}
|
|
95
|
-
@media (min-width: 450px) {
|
|
96
|
-
.ui-DialogContainer {
|
|
97
|
-
justify-content: center;
|
|
98
|
-
padding-bottom: max(var(--space-6), 6vh);
|
|
99
|
-
padding-left: var(--space-4);
|
|
100
|
-
padding-right: var(--space-4);
|
|
101
|
-
}
|
|
102
|
-
@layer components {
|
|
103
|
-
.ui-DialogPopup {
|
|
104
|
-
box-shadow: var(--shadow-6);
|
|
105
|
-
border-bottom-left-radius: var(--dialog-popup-radius);
|
|
106
|
-
border-bottom-right-radius: var(--dialog-popup-radius);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
111
|
-
@keyframes ui-dialog-overlay-no-op {
|
|
112
|
-
from {
|
|
113
|
-
opacity: 1;
|
|
114
|
-
}
|
|
115
|
-
to {
|
|
116
|
-
opacity: 1;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
@keyframes ui-dialog-content-show {
|
|
120
|
-
from {
|
|
121
|
-
opacity: 0.1;
|
|
122
|
-
transform: translate3d(0, var(--space-6), 0);
|
|
123
|
-
}
|
|
124
|
-
to {
|
|
125
|
-
opacity: 1;
|
|
126
|
-
transform: translate3d(0, 0, 0);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
@keyframes ui-dialog-content-hide {
|
|
130
|
-
from {
|
|
131
|
-
opacity: 1;
|
|
132
|
-
transform: translate3d(0, 0, 0);
|
|
133
|
-
}
|
|
134
|
-
to {
|
|
135
|
-
opacity: 1;
|
|
136
|
-
transform: translate3d(0, var(--space-5), 0);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
.ui-DialogOverlay[data-state='closed'] {
|
|
140
|
-
animation: ui-dialog-overlay-no-op 160ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
141
|
-
}
|
|
142
|
-
.ui-DialogOverlay[data-state='open']::before {
|
|
143
|
-
animation: ui-fade-in 200ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
144
|
-
}
|
|
145
|
-
.ui-DialogOverlay[data-state='closed']::before {
|
|
146
|
-
animation: ui-fade-out 160ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
147
|
-
}
|
|
148
|
-
.ui-DialogPopup:where([data-state="open"]) {
|
|
149
|
-
animation: ui-dialog-content-show 200ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
150
|
-
}
|
|
151
|
-
.ui-DialogPopup:where([data-state="closed"]) {
|
|
152
|
-
animation: ui-dialog-content-hide 100ms linear;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.ui-AlertPopup {
|
|
157
|
-
--dialog-popup-radius: var(--radius-4);
|
|
158
|
-
--dialog-popup-max-width: 450px;
|
|
159
|
-
}
|
package/components/dropdown.css
DELETED
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.ui-root {
|
|
3
|
-
--scrollarea-scrollbar-horizontal-margin-top: var(--space-1);
|
|
4
|
-
--scrollarea-scrollbar-horizontal-margin-bottom: var(--space-1);
|
|
5
|
-
--scrollarea-scrollbar-horizontal-margin-left: var(--space-1);
|
|
6
|
-
--scrollarea-scrollbar-horizontal-margin-right: var(--space-1);
|
|
7
|
-
--scrollarea-scrollbar-vertical-margin-top: var(--space-1);
|
|
8
|
-
--scrollarea-scrollbar-vertical-margin-bottom: var(--space-1);
|
|
9
|
-
--scrollarea-scrollbar-vertical-margin-left: var(--space-1);
|
|
10
|
-
--scrollarea-scrollbar-vertical-margin-right: var(--space-1);
|
|
11
|
-
}
|
|
12
|
-
.ui-ScrollArea {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
}
|
|
19
|
-
.ui-ScrollAreaViewport {
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: 100%;
|
|
24
|
-
}
|
|
25
|
-
.ui-ScrollAreaViewport:where(:focus-visible) + :where(.ui-ScrollAreaViewportFocusRing) {
|
|
26
|
-
position: absolute;
|
|
27
|
-
inset: 0;
|
|
28
|
-
pointer-events: none;
|
|
29
|
-
outline: 2px solid var(--focus-8);
|
|
30
|
-
outline-offset: -2px;
|
|
31
|
-
}
|
|
32
|
-
.ui-ScrollAreaViewport:where(:has(.ui-ScrollAreaScrollbar[data-orientation='horizontal'])) {
|
|
33
|
-
overscroll-behavior-x: contain;
|
|
34
|
-
}
|
|
35
|
-
.ui-ScrollAreaScrollbar {
|
|
36
|
-
display: flex;
|
|
37
|
-
-webkit-user-select: none;
|
|
38
|
-
-moz-user-select: none;
|
|
39
|
-
user-select: none;
|
|
40
|
-
touch-action: none;
|
|
41
|
-
}
|
|
42
|
-
.ui-ScrollAreaScrollbar:where([data-orientation='vertical']) {
|
|
43
|
-
flex-direction: column;
|
|
44
|
-
width: var(--scrollarea-scrollbar-size);
|
|
45
|
-
}
|
|
46
|
-
.ui-ScrollAreaScrollbar:where([data-orientation='horizontal']) {
|
|
47
|
-
flex-direction: row;
|
|
48
|
-
height: var(--scrollarea-scrollbar-size);
|
|
49
|
-
}
|
|
50
|
-
.ui-ScrollAreaThumb {
|
|
51
|
-
position: relative;
|
|
52
|
-
}
|
|
53
|
-
.ui-ScrollAreaThumb::before {
|
|
54
|
-
content: '';
|
|
55
|
-
position: absolute;
|
|
56
|
-
top: 50%;
|
|
57
|
-
left: 50%;
|
|
58
|
-
transform: translate(-50%, -50%);
|
|
59
|
-
width: 100%;
|
|
60
|
-
height: 100%;
|
|
61
|
-
min-width: var(--space-4);
|
|
62
|
-
min-height: var(--space-4);
|
|
63
|
-
}
|
|
64
|
-
.ui-ScrollAreaScrollbar:where([data-size="1"]) {
|
|
65
|
-
--scrollarea-scrollbar-size: var(--space-1);
|
|
66
|
-
--scrollarea-scrollbar-border-radius: max(var(--radius-1), var(--radius-full));
|
|
67
|
-
}
|
|
68
|
-
.ui-ScrollAreaScrollbar:where([data-size="2"]) {
|
|
69
|
-
--scrollarea-scrollbar-size: var(--space-2);
|
|
70
|
-
--scrollarea-scrollbar-border-radius: max(var(--radius-1), var(--radius-full));
|
|
71
|
-
}
|
|
72
|
-
.ui-ScrollAreaScrollbar:where([data-size="3"]) {
|
|
73
|
-
--scrollarea-scrollbar-size: var(--space-3);
|
|
74
|
-
--scrollarea-scrollbar-border-radius: max(var(--radius-1), var(--radius-full));
|
|
75
|
-
}
|
|
76
|
-
.ui-ScrollAreaScrollbar {
|
|
77
|
-
background-color: var(--gray-a3);
|
|
78
|
-
border-radius: var(--scrollarea-scrollbar-border-radius);
|
|
79
|
-
animation-duration: 120ms;
|
|
80
|
-
animation-timing-function: ease-out;
|
|
81
|
-
}
|
|
82
|
-
.ui-ScrollAreaScrollbar:where([data-state='visible']) {
|
|
83
|
-
animation-name: ui-fade-in;
|
|
84
|
-
}
|
|
85
|
-
.ui-ScrollAreaScrollbar:where([data-state='hidden']) {
|
|
86
|
-
animation-name: ui-fade-out;
|
|
87
|
-
}
|
|
88
|
-
.ui-ScrollAreaScrollbar:where([data-orientation='horizontal']) {
|
|
89
|
-
margin-top: var(--scrollarea-scrollbar-horizontal-margin-top);
|
|
90
|
-
margin-bottom: var(--scrollarea-scrollbar-horizontal-margin-bottom);
|
|
91
|
-
margin-left: var(--scrollarea-scrollbar-horizontal-margin-left);
|
|
92
|
-
margin-right: var(--scrollarea-scrollbar-horizontal-margin-right);
|
|
93
|
-
}
|
|
94
|
-
.ui-ScrollAreaScrollbar:where([data-orientation='vertical']) {
|
|
95
|
-
margin-top: var(--scrollarea-scrollbar-vertical-margin-top);
|
|
96
|
-
margin-bottom: var(--scrollarea-scrollbar-vertical-margin-bottom);
|
|
97
|
-
margin-left: var(--scrollarea-scrollbar-vertical-margin-left);
|
|
98
|
-
margin-right: var(--scrollarea-scrollbar-vertical-margin-right);
|
|
99
|
-
}
|
|
100
|
-
.ui-ScrollAreaThumb {
|
|
101
|
-
background-color: var(--gray-a8);
|
|
102
|
-
border-radius: inherit;
|
|
103
|
-
transition: background-color 100ms;
|
|
104
|
-
}
|
|
105
|
-
.ui-ScrollAreaThumb:hover {
|
|
106
|
-
background-color: var(--gray-a9);
|
|
107
|
-
}
|
|
108
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
109
|
-
.ui-PopperContent {
|
|
110
|
-
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
111
|
-
}
|
|
112
|
-
.ui-PopperContent:where([data-state='open']) {
|
|
113
|
-
animation-duration: 160ms;
|
|
114
|
-
}
|
|
115
|
-
.ui-PopperContent:where([data-state='open']):where([data-side='top']) {
|
|
116
|
-
animation-name: ui-slide-from-top, ui-fade-in;
|
|
117
|
-
}
|
|
118
|
-
.ui-PopperContent:where([data-state='open']):where([data-side='bottom']) {
|
|
119
|
-
animation-name: ui-slide-from-bottom, ui-fade-in;
|
|
120
|
-
}
|
|
121
|
-
.ui-PopperContent:where([data-state='open']):where([data-side='left']) {
|
|
122
|
-
animation-name: ui-slide-from-left, ui-fade-in;
|
|
123
|
-
}
|
|
124
|
-
.ui-PopperContent:where([data-state='open']):where([data-side='right']) {
|
|
125
|
-
animation-name: ui-slide-from-right, ui-fade-in;
|
|
126
|
-
}
|
|
127
|
-
.ui-PopperContent:where([data-state='closed']) {
|
|
128
|
-
animation-duration: 100ms;
|
|
129
|
-
}
|
|
130
|
-
.ui-PopperContent:where([data-state='closed']):where([data-side='top']) {
|
|
131
|
-
animation-name: ui-slide-from-top, ui-fade-out;
|
|
132
|
-
}
|
|
133
|
-
.ui-PopperContent:where([data-state='closed']):where([data-side='bottom']) {
|
|
134
|
-
animation-name: ui-slide-from-bottom, ui-fade-out;
|
|
135
|
-
}
|
|
136
|
-
.ui-PopperContent:where([data-state='closed']):where([data-side='left']) {
|
|
137
|
-
animation-name: ui-slide-from-left, ui-fade-out;
|
|
138
|
-
}
|
|
139
|
-
.ui-PopperContent:where([data-state='closed']):where([data-side='right']) {
|
|
140
|
-
animation-name: ui-slide-from-right, ui-fade-out;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.ui-MenuContent {
|
|
145
|
-
--scrollarea-scrollbar-vertical-margin-top: var(--menu-content-padding);
|
|
146
|
-
--scrollarea-scrollbar-vertical-margin-bottom: var(--menu-content-padding);
|
|
147
|
-
--scrollarea-scrollbar-horizontal-margin-left: var(--menu-content-padding);
|
|
148
|
-
--scrollarea-scrollbar-horizontal-margin-right: var(--menu-content-padding);
|
|
149
|
-
|
|
150
|
-
display: flex;
|
|
151
|
-
flex-direction: column;
|
|
152
|
-
box-sizing: border-box;
|
|
153
|
-
overflow: hidden;
|
|
154
|
-
border-radius: var(--menu-content-border-radius);
|
|
155
|
-
box-shadow: var(--shadow-5);
|
|
156
|
-
background-color: var(--color-panel-solid);
|
|
157
|
-
}
|
|
158
|
-
.ui-MenuViewport {
|
|
159
|
-
flex: 1 1 0%;
|
|
160
|
-
display: flex;
|
|
161
|
-
flex-direction: column;
|
|
162
|
-
overflow: auto;
|
|
163
|
-
padding: var(--menu-content-padding);
|
|
164
|
-
box-sizing: border-box;
|
|
165
|
-
}
|
|
166
|
-
:where(.ui-MenuContent:has(.rt-ScrollAreaScrollbar[data-orientation='vertical'])) .ui-MenuViewport {
|
|
167
|
-
padding-right: var(--space-3);
|
|
168
|
-
}
|
|
169
|
-
.ui-MenuContent:where(.r-size-1) {
|
|
170
|
-
--menu-content-padding: var(--space-1);
|
|
171
|
-
--menu-content-border-radius: var(--radius-3);
|
|
172
|
-
|
|
173
|
-
--menu-item-padding-left: calc(var(--space-5) / 1.2);
|
|
174
|
-
--menu-item-padding-right: var(--space-2);
|
|
175
|
-
--menu-item-height: var(--space-5);
|
|
176
|
-
--menu-item-font-size: var(--font-size-1);
|
|
177
|
-
--menu-item-line-height: var(--line-height-1);
|
|
178
|
-
--menu-item-letter-spacing: var(--letter-spacing-1);
|
|
179
|
-
--menu-item-border-radius: var(--radius-1);
|
|
180
|
-
}
|
|
181
|
-
.ui-MenuContent:where(.r-size-2) {
|
|
182
|
-
--menu-content-padding: var(--space-2);
|
|
183
|
-
--menu-content-border-radius: var(--radius-4);
|
|
184
|
-
|
|
185
|
-
--menu-item-padding-left: var(--space-3);
|
|
186
|
-
--menu-item-padding-right: var(--space-3);
|
|
187
|
-
--menu-item-height: var(--space-6);
|
|
188
|
-
--menu-item-font-size: var(--font-size-2);
|
|
189
|
-
--menu-item-line-height: var(--line-height-2);
|
|
190
|
-
--menu-item-letter-spacing: var(--letter-spacing-2);
|
|
191
|
-
--menu-item-border-radius: var(--radius-2);
|
|
192
|
-
}
|
|
193
|
-
.ui-MenuContent:where(.r-variant-solid) {
|
|
194
|
-
--menu-item-highlighted-background-color: var(--accent-9);
|
|
195
|
-
--menu-item-highlighted-text-color: var(--accent-contrast);
|
|
196
|
-
}
|
|
197
|
-
.ui-MenuContent:where(.r-variant-solid.r-high-contrast) {
|
|
198
|
-
--menu-item-highlighted-background-color: var(--accent-12);
|
|
199
|
-
--menu-item-highlighted-text-color: var(--accent-1);
|
|
200
|
-
}
|
|
201
|
-
.ui-MenuContent:where(.r-variant-soft) {
|
|
202
|
-
--menu-item-highlighted-background-color: var(--accent-a4);
|
|
203
|
-
--menu-item-highlighted-text-color: var(--accent-a11);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.ui-MenuItem {
|
|
207
|
-
display: flex;
|
|
208
|
-
align-items: center;
|
|
209
|
-
gap: var(--space-2);
|
|
210
|
-
height: var(--menu-item-height);
|
|
211
|
-
padding-left: var(--menu-item-padding-left);
|
|
212
|
-
padding-right: var(--menu-item-padding-right);
|
|
213
|
-
box-sizing: border-box;
|
|
214
|
-
position: relative;
|
|
215
|
-
outline: none;
|
|
216
|
-
scroll-margin: var(--menu-content-padding) 0;
|
|
217
|
-
-webkit-user-select: none;
|
|
218
|
-
-moz-user-select: none;
|
|
219
|
-
user-select: none;
|
|
220
|
-
cursor: default;
|
|
221
|
-
color: var(--gray-12);
|
|
222
|
-
font-size: var(--menu-item-font-size);
|
|
223
|
-
line-height: var(--menu-item-line-height);
|
|
224
|
-
letter-spacing: var(--menu-item-letter-spacing);
|
|
225
|
-
border-radius: var(--menu-item-border-radius);
|
|
226
|
-
}
|
|
227
|
-
.ui-MenuShortcut {
|
|
228
|
-
display: flex;
|
|
229
|
-
align-items: center;
|
|
230
|
-
margin-left: auto;
|
|
231
|
-
padding-left: var(--space-4);
|
|
232
|
-
color: var(--gray-a11);
|
|
233
|
-
}
|
|
234
|
-
.ui-MenuItem:where([data-accent-color]) {
|
|
235
|
-
color: var(--accent-a11);
|
|
236
|
-
}
|
|
237
|
-
.ui-MenuItem:where([data-disabled]) {
|
|
238
|
-
color: var(--gray-a8);
|
|
239
|
-
}
|
|
240
|
-
.ui-MenuItem:where([data-highlighted]) {
|
|
241
|
-
background-color: var(--menu-item-highlighted-background-color);
|
|
242
|
-
color: var(--menu-item-highlighted-text-color);
|
|
243
|
-
}
|
|
244
|
-
.ui-MenuItem:where([data-disabled], [data-highlighted]) :where(.ui-MenuShortcut) {
|
|
245
|
-
color: inherit;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.ui-DropdownMenuSeparator {
|
|
249
|
-
height: 1px;
|
|
250
|
-
margin-top: var(--space-2);
|
|
251
|
-
margin-bottom: var(--space-2);
|
|
252
|
-
margin-left: var(--menu-item-padding-left);
|
|
253
|
-
margin-right: var(--menu-item-padding-right);
|
|
254
|
-
background-color: var(--gray-a6);
|
|
255
|
-
}
|
package/components/editable.css
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.ui-Editable:where(.r-size-1) {
|
|
3
|
-
--editable-padding-x: var(--space-1);
|
|
4
|
-
--editable-border-radius: max(var(--radius-2), var(--radius-full));
|
|
5
|
-
}
|
|
6
|
-
.ui-Editable:where(.r-size-2) {
|
|
7
|
-
--editable-padding-x: var(--space-2);
|
|
8
|
-
--editable-border-radius: max(var(--radius-2), var(--radius-full));
|
|
9
|
-
}
|
|
10
|
-
.ui-Editable:where(.r-size-3) {
|
|
11
|
-
--editable-padding-x: var(--space-3);
|
|
12
|
-
--editable-border-radius: max(var(--radius-3), var(--radius-full));
|
|
13
|
-
}
|
|
14
|
-
.ui-EditableArea {
|
|
15
|
-
padding-left: var(--editable-padding-x);
|
|
16
|
-
padding-right: var(--editable-padding-x);
|
|
17
|
-
border-radius: var(--editable-border-radius);
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
text-overflow: ellipsis;
|
|
20
|
-
}
|
|
21
|
-
.ui-EditableArea:where([data-focused]),
|
|
22
|
-
.ui-EditableArea:where(:hover) {
|
|
23
|
-
background-color: var(--accent-a3);
|
|
24
|
-
}
|
|
25
|
-
.ui-EditablePreview {
|
|
26
|
-
white-space: pre;
|
|
27
|
-
-webkit-user-select: none;
|
|
28
|
-
-moz-user-select: none;
|
|
29
|
-
user-select: none;
|
|
30
|
-
}
|
|
31
|
-
.ui-EditableInput {
|
|
32
|
-
outline: none;
|
|
33
|
-
max-width: 100%;
|
|
34
|
-
}
|