@a-type/ui 6.0.81 → 6.1.1
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/dist/arbor/arbor.d.ts +637 -691
- package/dist/arbor/arbor.js +51 -63
- package/dist/arbor/arbor.js.map +1 -1
- package/dist/colors.module.css +14 -14
- package/dist/components/actions/ActionBar.module.css +1 -1
- package/dist/components/actions/ActionButton.module.css +1 -1
- package/dist/components/avatar/Avatar.module.css +5 -5
- package/dist/components/box/Box.module.css +19 -19
- package/dist/components/box/Box.stories.js +1 -1
- package/dist/components/box/Box.stories.js.map +1 -1
- package/dist/components/button/Button.module.css +9 -9
- package/dist/components/camera/Camera.module.css +9 -9
- package/dist/components/card/Card.module.css +24 -24
- package/dist/components/card/Card.stories.js +2 -2
- package/dist/components/card/Card.stories.js.map +1 -1
- package/dist/components/checkbox/Checkbox.module.css +8 -8
- package/dist/components/chip/Chip.module.css +9 -9
- package/dist/components/collapsible/Collapsible.module.css +2 -2
- package/dist/components/combobox/Combobox.module.css +26 -26
- package/dist/components/datePicker/Calendar.module.css +32 -32
- package/dist/components/datePicker/dateRangePicker.module.css +1 -1
- package/dist/components/dialog/Dialog.module.css +25 -25
- package/dist/components/dialog/Dialog.stories.js +1 -1
- package/dist/components/dialog/Dialog.stories.js.map +1 -1
- package/dist/components/divider/Divider.module.css +2 -2
- package/dist/components/editableText/EditableText.module.css +5 -5
- package/dist/components/emojiPicker/EmojiPicker.module.css +10 -10
- package/dist/components/forms/Field.module.css +10 -12
- package/dist/components/forms/Form.module.css +1 -1
- package/dist/components/forms/NumberStepperField.module.css +1 -1
- package/dist/components/forms/TextField.module.css +1 -1
- package/dist/components/horizontalList/HorizontalList.module.css +7 -8
- package/dist/components/horizontalList/HorizontalList.stories.js +5 -5
- package/dist/components/horizontalList/HorizontalList.stories.js.map +1 -1
- package/dist/components/icon/Icon.module.css +1 -1
- package/dist/components/icon/Icon.stories.js +1 -1
- package/dist/components/icon/Icon.stories.js.map +1 -1
- package/dist/components/imageUploader/ImageUploader.module.css +9 -9
- package/dist/components/input/Input.module.css +13 -13
- package/dist/components/layouts/PageContent.module.css +3 -3
- package/dist/components/layouts/PageFixedArea.module.css +1 -1
- package/dist/components/layouts/PageNav.module.css +4 -4
- package/dist/components/layouts/PageNowPlaying.module.css +4 -4
- package/dist/components/layouts/PageRoot.module.css +1 -1
- package/dist/components/layouts/PageSection.module.css +4 -4
- package/dist/components/layouts/layouts.stories.js +1 -1
- package/dist/components/layouts/layouts.stories.js.map +1 -1
- package/dist/components/lightbox/Lightbox.module.css +5 -5
- package/dist/components/lists/lists.module.css +3 -3
- package/dist/components/marquee/marquee.module.css +1 -1
- package/dist/components/navBar/NavBar.module.css +19 -19
- package/dist/components/note/Note.module.css +16 -16
- package/dist/components/numberStepper/NumberStepper.module.css +4 -4
- package/dist/components/peek/Peek.module.css +9 -9
- package/dist/components/popover/Popover.module.css +5 -5
- package/dist/components/popover/Popover.stories.js +1 -1
- package/dist/components/popover/Popover.stories.js.map +1 -1
- package/dist/components/primitives/menus.module.css +29 -33
- package/dist/components/progress/Progress.module.css +11 -11
- package/dist/components/provider/Provider.js +1 -1
- package/dist/components/provider/Provider.js.map +1 -1
- package/dist/components/pwaInstall/PwaInstall.module.css +4 -4
- package/dist/components/quickAction/QuickAction.module.css +4 -4
- package/dist/components/richEditor/richEditor.module.css +18 -18
- package/dist/components/scrollArea/ScrollArea.module.css +8 -8
- package/dist/components/select/Select.module.css +3 -3
- package/dist/components/skeletons/skeletons.module.css +3 -3
- package/dist/components/slider/Slider.module.css +13 -13
- package/dist/components/spinner/Spinner.module.css +1 -1
- package/dist/components/switch/Switch.module.css +9 -9
- package/dist/components/tabs/tabs.module.css +16 -16
- package/dist/components/textArea/TextArea.module.css +1 -1
- package/dist/components/toasts/toasts.module.css +19 -19
- package/dist/components/toggleGroup/toggleGroup.module.css +12 -12
- package/dist/components/tooltip/Tooltip.module.css +10 -10
- package/dist/components/typography/typography.d.ts +1 -2
- package/dist/components/typography/typography.js +1 -2
- package/dist/components/typography/typography.js.map +1 -1
- package/dist/components/typography/typography.module.css +6 -9
- package/dist/components/viewport/Viewport.module.css +9 -9
- package/dist/css/base.css +1 -1
- package/dist/css/util.css +10 -10
- package/dist/hooks/useTitleBarColor.stories.js +1 -1
- package/dist/hooks/useTitleBarColor.stories.js.map +1 -1
- package/dist/keyboard.stories.js +1 -1
- package/dist/keyboard.stories.js.map +1 -1
- package/dist/shadows.stories.js +1 -1
- package/dist/shadows.stories.js.map +1 -1
- package/dist/theme.stories.module.css +1 -1
- package/package.json +5 -5
- package/src/arbor/arbor.ts +54 -67
- package/src/colors.module.css +14 -14
- package/src/components/actions/ActionBar.module.css +1 -1
- package/src/components/actions/ActionButton.module.css +1 -1
- package/src/components/avatar/Avatar.module.css +5 -5
- package/src/components/box/Box.module.css +19 -19
- package/src/components/box/Box.stories.tsx +1 -1
- package/src/components/button/Button.module.css +9 -9
- package/src/components/camera/Camera.module.css +9 -9
- package/src/components/card/Card.module.css +24 -24
- package/src/components/card/Card.stories.tsx +2 -2
- package/src/components/checkbox/Checkbox.module.css +8 -8
- package/src/components/chip/Chip.module.css +9 -9
- package/src/components/collapsible/Collapsible.module.css +2 -2
- package/src/components/combobox/Combobox.module.css +26 -26
- package/src/components/datePicker/Calendar.module.css +32 -32
- package/src/components/datePicker/dateRangePicker.module.css +1 -1
- package/src/components/dialog/Dialog.module.css +25 -25
- package/src/components/dialog/Dialog.stories.tsx +1 -1
- package/src/components/divider/Divider.module.css +2 -2
- package/src/components/editableText/EditableText.module.css +5 -5
- package/src/components/emojiPicker/EmojiPicker.module.css +10 -10
- package/src/components/forms/Field.module.css +10 -12
- package/src/components/forms/Form.module.css +1 -1
- package/src/components/forms/NumberStepperField.module.css +1 -1
- package/src/components/forms/TextField.module.css +1 -1
- package/src/components/horizontalList/HorizontalList.module.css +7 -8
- package/src/components/horizontalList/HorizontalList.stories.tsx +5 -5
- package/src/components/icon/Icon.module.css +1 -1
- package/src/components/icon/Icon.stories.tsx +1 -1
- package/src/components/imageUploader/ImageUploader.module.css +9 -9
- package/src/components/input/Input.module.css +13 -13
- package/src/components/layouts/PageContent.module.css +3 -3
- package/src/components/layouts/PageFixedArea.module.css +1 -1
- package/src/components/layouts/PageNav.module.css +4 -4
- package/src/components/layouts/PageNowPlaying.module.css +4 -4
- package/src/components/layouts/PageRoot.module.css +1 -1
- package/src/components/layouts/PageSection.module.css +4 -4
- package/src/components/layouts/layouts.stories.tsx +1 -1
- package/src/components/lightbox/Lightbox.module.css +5 -5
- package/src/components/lists/lists.module.css +3 -3
- package/src/components/marquee/marquee.module.css +1 -1
- package/src/components/navBar/NavBar.module.css +19 -19
- package/src/components/note/Note.module.css +16 -16
- package/src/components/numberStepper/NumberStepper.module.css +4 -4
- package/src/components/peek/Peek.module.css +9 -9
- package/src/components/popover/Popover.module.css +5 -5
- package/src/components/popover/Popover.stories.tsx +1 -1
- package/src/components/primitives/menus.module.css +29 -33
- package/src/components/progress/Progress.module.css +11 -11
- package/src/components/provider/Provider.tsx +1 -1
- package/src/components/pwaInstall/PwaInstall.module.css +4 -4
- package/src/components/quickAction/QuickAction.module.css +4 -4
- package/src/components/richEditor/richEditor.module.css +18 -18
- package/src/components/scrollArea/ScrollArea.module.css +8 -8
- package/src/components/select/Select.module.css +3 -3
- package/src/components/skeletons/skeletons.module.css +3 -3
- package/src/components/slider/Slider.module.css +13 -13
- package/src/components/spinner/Spinner.module.css +1 -1
- package/src/components/switch/Switch.module.css +9 -9
- package/src/components/tabs/tabs.module.css +16 -16
- package/src/components/textArea/TextArea.module.css +1 -1
- package/src/components/toasts/toasts.module.css +19 -19
- package/src/components/toggleGroup/toggleGroup.module.css +12 -12
- package/src/components/tooltip/Tooltip.module.css +10 -10
- package/src/components/typography/typography.module.css +6 -9
- package/src/components/typography/typography.tsx +0 -3
- package/src/components/viewport/Viewport.module.css +9 -9
- package/src/css/base.css +1 -1
- package/src/css/util.css +10 -10
- package/src/hooks/useTitleBarColor.stories.tsx +1 -1
- package/src/keyboard.stories.tsx +1 -1
- package/src/shadows.stories.tsx +1 -1
- package/src/theme.stories.module.css +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
&:focus-visible {
|
|
9
9
|
@apply --mx-shadow;
|
|
10
10
|
--mx-ring-value: --fn-focus-ring();
|
|
11
|
-
border-radius: var(--m-action-
|
|
11
|
+
border-radius: var(--m-action-rd);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
|
|
27
27
|
.close {
|
|
28
28
|
position: absolute;
|
|
29
|
-
right: var(--m-
|
|
30
|
-
top: var(--m-
|
|
29
|
+
right: var(--m-sp-md);
|
|
30
|
+
top: var(--m-sp-md);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.overlay {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
backdrop-filter: blur(4px);
|
|
38
38
|
transition: opacity 0.2s ease;
|
|
39
39
|
|
|
40
|
-
@apply --mx-bg(var(--m-
|
|
40
|
+
@apply --mx-bg(var(--m-gray-ink));
|
|
41
41
|
@apply --mx-bg-faded(50%);
|
|
42
42
|
|
|
43
43
|
&[data-state='closed'] {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
width: 90vw;
|
|
61
61
|
max-width: 100%;
|
|
62
62
|
|
|
63
|
-
padding: var(--m-
|
|
63
|
+
padding: var(--m-sp-lg);
|
|
64
64
|
border: none;
|
|
65
65
|
background: none;
|
|
66
66
|
pointer-events: none;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
list-style-position: inside;
|
|
4
4
|
margin: 0;
|
|
5
5
|
padding: 0;
|
|
6
|
-
padding-inline-start: var(--m-
|
|
6
|
+
padding-inline-start: var(--m-sp-lg);
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
|
-
gap: var(--m-
|
|
9
|
+
gap: var(--m-sp-sm);
|
|
10
10
|
|
|
11
11
|
& > li {
|
|
12
|
-
margin-left: var(--m-
|
|
12
|
+
margin-left: var(--m-sp-sm);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&[data-unstyled] {
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
justify-items: center;
|
|
7
7
|
overflow: clip;
|
|
8
8
|
border-radius: 0;
|
|
9
|
-
padding: var(--m-
|
|
9
|
+
padding: var(--m-sp-sm);
|
|
10
10
|
z-index: 50;
|
|
11
|
-
padding-bottom: calc(var(--m-
|
|
11
|
+
padding-bottom: calc(var(--m-sp-sm) + env(safe-area-inset-bottom, 0px));
|
|
12
12
|
|
|
13
13
|
@media (min-width: 768px) {
|
|
14
14
|
height: min-content;
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
align-items: stretch;
|
|
18
18
|
justify-content: start;
|
|
19
|
-
gap: var(--m-
|
|
19
|
+
gap: var(--m-sp-sm);
|
|
20
20
|
overflow-x: clip;
|
|
21
21
|
overflow-y: auto;
|
|
22
22
|
border-radius: 0;
|
|
23
|
-
padding-bottom: var(--m-
|
|
23
|
+
padding-bottom: var(--m-sp-xl);
|
|
24
24
|
box-shadow: none;
|
|
25
25
|
@apply --mx-bg(transparent);
|
|
26
26
|
border: none;
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
user-select: none;
|
|
37
37
|
align-items: center;
|
|
38
38
|
justify-content: center;
|
|
39
|
-
gap: var(--m-
|
|
39
|
+
gap: var(--m-sp-sm);
|
|
40
40
|
white-space: nowrap;
|
|
41
|
-
padding: var(--m-action-
|
|
42
|
-
transition: all var(--m-
|
|
43
|
-
@apply --mx-fg(var(--m-
|
|
41
|
+
padding: var(--m-action-p);
|
|
42
|
+
transition: all var(--m-dur) var(--m-ease);
|
|
43
|
+
@apply --mx-fg(var(--m-gray-ink));
|
|
44
44
|
@apply --mx-bg(transparent);
|
|
45
|
-
border-radius: var(--m-
|
|
45
|
+
border-radius: var(--m-rd-sm);
|
|
46
46
|
border: none;
|
|
47
47
|
font-size: var(--m-prose-ambient-size);
|
|
48
48
|
line-height: 1;
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
flex-direction: row-reverse;
|
|
77
77
|
justify-content: end;
|
|
78
78
|
align-items: center;
|
|
79
|
-
gap: var(--m-
|
|
80
|
-
padding: var(--m-action-
|
|
79
|
+
gap: var(--m-sp-md);
|
|
80
|
+
padding: var(--m-action-p);
|
|
81
81
|
overflow: visible;
|
|
82
82
|
font-size: var(--m-prose-secondary-size);
|
|
83
83
|
&:active {
|
|
@@ -97,10 +97,10 @@
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
@media (min-width: 768px) {
|
|
100
|
-
@apply --mx-bg(var(--m-
|
|
100
|
+
@apply --mx-bg(var(--m-gray-light));
|
|
101
101
|
@apply --mx-bg-faded(50%);
|
|
102
|
-
padding: var(--m-
|
|
103
|
-
border-radius: var(--m-action-
|
|
102
|
+
padding: var(--m-sp-sm);
|
|
103
|
+
border-radius: var(--m-action-rd);
|
|
104
104
|
|
|
105
105
|
[data-active='true'] & {
|
|
106
106
|
@apply --mx-bg(inherit);
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.itemText {
|
|
112
|
-
@apply --mx-fg(var(--m-
|
|
112
|
+
@apply --mx-fg(var(--m-gray-ink));
|
|
113
113
|
font-size: var(--m-prose-ambient-size);
|
|
114
114
|
line-height: 1;
|
|
115
115
|
font-weight: inherit;
|
|
@@ -126,18 +126,18 @@
|
|
|
126
126
|
@apply --mx-fg(inherit);
|
|
127
127
|
|
|
128
128
|
[data-active='true'] & {
|
|
129
|
-
@apply --mx-fill(var(--m-
|
|
129
|
+
@apply --mx-fill(var(--m-tint));
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.pip {
|
|
134
134
|
position: absolute;
|
|
135
|
-
top: var(--m-
|
|
136
|
-
right: var(--m-
|
|
135
|
+
top: var(--m-sp-sm);
|
|
136
|
+
right: var(--m-sp-sm);
|
|
137
137
|
width: 6px;
|
|
138
138
|
height: 6px;
|
|
139
139
|
border-radius: 50%;
|
|
140
|
-
background-color: var(--m-
|
|
140
|
+
background-color: var(--m-tint);
|
|
141
141
|
@apply --mx-shadow;
|
|
142
142
|
--mx-shadow-value: var(--m-shadow-sm);
|
|
143
143
|
}
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
&:has(input:focus[data-focus-clicked]),
|
|
5
5
|
&:has(textarea:focus[data-focus-clicked]) {
|
|
6
|
-
@apply --mx-bg(var(--m-
|
|
6
|
+
@apply --mx-bg(var(--m-tint-light));
|
|
7
7
|
@apply --mx-bg-lighter(3);
|
|
8
|
-
--mx-ring-value: --fn-ring(var(--m-
|
|
8
|
+
--mx-ring-value: --fn-ring(var(--m-tint-light), 4px);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
&:has(input:focus-visible),
|
|
12
12
|
&:has(textarea:focus-visible) {
|
|
13
|
-
@apply --mx-bg(var(--m-
|
|
13
|
+
@apply --mx-bg(var(--m-tint-light));
|
|
14
14
|
@apply --mx-bg-lighter(3);
|
|
15
15
|
--mx-ring-value: --fn-focus-ring();
|
|
16
16
|
}
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
.content {
|
|
25
25
|
position: relative;
|
|
26
26
|
flex: 1;
|
|
27
|
-
padding: var(--m-
|
|
27
|
+
padding: var(--m-sp-sm);
|
|
28
28
|
|
|
29
29
|
font-size: var(--m-prose-ambient-size);
|
|
30
30
|
line-height: var(--m-prose-ambient-lineHeight);
|
|
31
31
|
font-weight: var(--m-prose-ambient-weight);
|
|
32
32
|
font-style: italic;
|
|
33
33
|
|
|
34
|
-
@apply --mx-fg(var(--m-
|
|
35
|
-
@apply --mx-bg(var(--m-
|
|
34
|
+
@apply --mx-fg(var(--m-gray-ink));
|
|
35
|
+
@apply --mx-bg(var(--m-tint-wash));
|
|
36
36
|
@apply --mx-bg-heavier(1);
|
|
37
|
-
@apply --mx-borderColor(var(--m-
|
|
37
|
+
@apply --mx-borderColor(var(--m-tint-heavy));
|
|
38
38
|
border-right-width: 0;
|
|
39
39
|
|
|
40
40
|
& input,
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
width: 20px;
|
|
62
62
|
flex: 0 0 20px;
|
|
63
63
|
|
|
64
|
-
@apply --mx-borderColor(var(--m-
|
|
65
|
-
border-bottom-width: var(--m-
|
|
66
|
-
border-left-width: var(--m-
|
|
64
|
+
@apply --mx-borderColor(var(--m-tint-heavy));
|
|
65
|
+
border-bottom-width: var(--m-lw-md);
|
|
66
|
+
border-left-width: var(--m-lw-md);
|
|
67
67
|
border-top-width: 0;
|
|
68
68
|
border-right-width: 0;
|
|
69
69
|
}
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
right: 0;
|
|
77
77
|
transform-origin: right bottom;
|
|
78
78
|
|
|
79
|
-
@apply --mx-borderColor(var(--m-
|
|
79
|
+
@apply --mx-borderColor(var(--m-tint-wash));
|
|
80
80
|
@apply --mx-borderColor-heavier(1);
|
|
81
81
|
border-width: 9.5px;
|
|
82
82
|
border-style: solid;
|
|
@@ -94,16 +94,16 @@
|
|
|
94
94
|
transform-origin: center center;
|
|
95
95
|
transform: rotate(-45deg);
|
|
96
96
|
|
|
97
|
-
@apply --mx-bg(var(--m-
|
|
97
|
+
@apply --mx-bg(var(--m-tint-heavy));
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.foldBottom {
|
|
101
101
|
flex: 1;
|
|
102
|
-
@apply --mx-borderColor(var(--m-
|
|
103
|
-
@apply --mx-bg(var(--m-
|
|
102
|
+
@apply --mx-borderColor(var(--m-tint-heavy));
|
|
103
|
+
@apply --mx-bg(var(--m-tint-wash));
|
|
104
104
|
@apply --mx-bg-heavier(1);
|
|
105
|
-
border-right-width: var(--m-
|
|
106
|
-
border-bottom-width: var(--m-
|
|
105
|
+
border-right-width: var(--m-lw-md);
|
|
106
|
+
border-bottom-width: var(--m-lw-md);
|
|
107
107
|
border-left-width: 0;
|
|
108
108
|
border-top-width: 0;
|
|
109
109
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
@apply --mx-bg(var(--m-control-bg));
|
|
11
11
|
@apply --mx-fg(var(--m-control-fg));
|
|
12
|
-
@apply --mx-borderColor(var(--m-control-
|
|
13
|
-
border-radius: var(--m-control-
|
|
12
|
+
@apply --mx-borderColor(var(--m-control-b-color));
|
|
13
|
+
border-radius: var(--m-control-rd);
|
|
14
14
|
|
|
15
15
|
&:disabled,
|
|
16
16
|
&[data-disabled='true'] {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&[data-emphasis='primary'] {
|
|
24
|
-
@apply --mx-bg(var(--m-
|
|
25
|
-
@apply --mx-fg(var(--m-
|
|
24
|
+
@apply --mx-bg(var(--m-tint-wash));
|
|
25
|
+
@apply --mx-fg(var(--m-tint-ink));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&[data-has-interacted='true'] {
|
|
30
|
-
animation-timing-function: var(--m-
|
|
30
|
+
animation-timing-function: var(--m-ease);
|
|
31
31
|
animation-fill-mode: forwards;
|
|
32
32
|
|
|
33
33
|
&[data-state='closed'] {
|
|
34
34
|
animation-name: peekClose;
|
|
35
|
-
animation-duration: var(--m-
|
|
35
|
+
animation-duration: var(--m-dur);
|
|
36
36
|
}
|
|
37
37
|
&[data-state='open'] {
|
|
38
38
|
animation-name: peekOpen;
|
|
39
|
-
animation-duration: var(--m-
|
|
39
|
+
animation-duration: var(--m-dur-long);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
cursor: pointer;
|
|
51
51
|
@apply --mx-borderColor(var(--mx-fg-ref));
|
|
52
52
|
border-width: 0px;
|
|
53
|
-
border-bottom-width: var(--m-
|
|
53
|
+
border-bottom-width: var(--m-lw-sm);
|
|
54
54
|
|
|
55
55
|
background: linear-gradient(to bottom, transparent 0%, var(--mx-bg-ref) 100%);
|
|
56
56
|
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
background: linear-gradient(
|
|
62
62
|
to bottom,
|
|
63
63
|
transparent 0%,
|
|
64
|
-
var(--m-
|
|
64
|
+
var(--m-tint-wash) 100%
|
|
65
65
|
);
|
|
66
|
-
border-color: var(--m-
|
|
66
|
+
border-color: var(--m-tint);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&::after {
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
flex-direction: column;
|
|
77
77
|
align-items: center;
|
|
78
78
|
justify-content: end;
|
|
79
|
-
padding: var(--m-
|
|
79
|
+
padding: var(--m-sp-sm);
|
|
80
80
|
font-size: var(--m-prose-ambient-size);
|
|
81
81
|
line-height: var(--m-prose-ambient-lineHeight);
|
|
82
82
|
font-weight: var(--m-prose-ambient-weight);
|
|
83
|
-
@apply --mx-fg(var(--m-
|
|
83
|
+
@apply --mx-fg(var(--m-gray-heavy));
|
|
84
84
|
}
|
|
85
85
|
&[data-state='open'] {
|
|
86
86
|
&::after {
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
opacity: 0;
|
|
93
93
|
}
|
|
94
94
|
opacity: 1;
|
|
95
|
-
transition: opacity var(--m-
|
|
95
|
+
transition: opacity var(--m-dur) var(--m-ease);
|
|
96
96
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.close {
|
|
2
2
|
position: absolute;
|
|
3
|
-
right: var(--m-
|
|
4
|
-
top: var(--m-
|
|
3
|
+
right: var(--m-sp-sm);
|
|
4
|
+
top: var(--m-sp-sm);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.popup {
|
|
8
|
-
padding: var(--m-
|
|
8
|
+
padding: var(--m-sp-md);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.title {
|
|
12
12
|
font-weight: 500;
|
|
13
13
|
margin: 0;
|
|
14
|
-
margin-block-end: var(--m-
|
|
14
|
+
margin-block-end: var(--m-sp-sm);
|
|
15
15
|
font-size: var(--m-prose-secondary-size);
|
|
16
16
|
line-height: var(--m-prose-secondary-lineHeight);
|
|
17
17
|
}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
margin: 0;
|
|
21
21
|
font-size: var(--m-prose-ambient-size);
|
|
22
22
|
line-height: var(--m-prose-ambient-lineHeight);
|
|
23
|
-
@apply --mx-fg(var(--m-
|
|
23
|
+
@apply --mx-fg(var(--m-gray-heavy));
|
|
24
24
|
}
|
|
@@ -22,7 +22,7 @@ export const Default: Story = {
|
|
|
22
22
|
<Popover.Trigger render={<Button color="primary" size="small" />}>
|
|
23
23
|
Open Popover
|
|
24
24
|
</Popover.Trigger>
|
|
25
|
-
<Popover.Content style={{ padding: 'var(--m-
|
|
25
|
+
<Popover.Content style={{ padding: 'var(--m-sp-md)' }}>
|
|
26
26
|
<Popover.Arrow />
|
|
27
27
|
<Popover.Title>Hello</Popover.Title>
|
|
28
28
|
<Popover.Description>This is a popover content.</Popover.Description>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
max-width: var(--available-width, 95vw);
|
|
6
6
|
max-height: var(--available-height);
|
|
7
7
|
|
|
8
|
-
transition: all var(--m-
|
|
8
|
+
transition: all var(--m-dur) var(--m-ease);
|
|
9
9
|
|
|
10
10
|
@apply --mx-shadow(var(--m-shadow-lg));
|
|
11
11
|
@apply --mx-surface-ambient;
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
}
|
|
20
20
|
&:focus-visible {
|
|
21
21
|
@apply --mx-ring(--fn-ring(
|
|
22
|
-
--fn-color-faded(var(--m-
|
|
22
|
+
--fn-color-faded(var(--m-tint-ink), 50%),
|
|
23
23
|
2px
|
|
24
24
|
));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
@media (forced-colors: active) {
|
|
28
|
-
border-color: var(--m-
|
|
28
|
+
border-color: var(--m-tint-ink);
|
|
29
29
|
}
|
|
30
30
|
@media (prefers-reduced-motion: reduce) {
|
|
31
31
|
transition: none;
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
min-height: 0px;
|
|
62
62
|
overflow-x: clip;
|
|
63
63
|
overflow-y: auto;
|
|
64
|
-
scroll-padding-block: var(--m-
|
|
64
|
+
scroll-padding-block: var(--m-sp-md);
|
|
65
65
|
position: relative;
|
|
66
|
-
padding: var(--m-
|
|
66
|
+
padding: var(--m-sp-xs);
|
|
67
67
|
|
|
68
68
|
border-radius: inherit;
|
|
69
69
|
}
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
cursor: pointer;
|
|
77
77
|
user-select: none;
|
|
78
78
|
|
|
79
|
-
padding: var(--m-action-
|
|
80
|
-
padding-left: var(--m-
|
|
81
|
-
gap: var(--m-
|
|
79
|
+
padding: var(--m-action-p);
|
|
80
|
+
padding-left: var(--m-sp-lg);
|
|
81
|
+
gap: var(--m-sp-sm);
|
|
82
82
|
|
|
83
83
|
text-align: left;
|
|
84
84
|
font-size: var(--m-prose-secondary-size);
|
|
@@ -91,15 +91,15 @@
|
|
|
91
91
|
&[data-disabled],
|
|
92
92
|
&:disabled {
|
|
93
93
|
pointer-events: none;
|
|
94
|
-
@apply --mx-fg(var(--m-
|
|
95
|
-
@apply --mx-bg(var(--m-
|
|
94
|
+
@apply --mx-fg(var(--m-gray-heavy));
|
|
95
|
+
@apply --mx-bg(var(--m-gray-paper));
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
&:hover,
|
|
99
99
|
&[data-highlighted],
|
|
100
100
|
&[data-state='checked'],
|
|
101
101
|
&:focus-visible {
|
|
102
|
-
@apply --mx-bg(var(--m-
|
|
102
|
+
@apply --mx-bg(var(--m-gray-light));
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
&:focus {
|
|
@@ -109,18 +109,14 @@
|
|
|
109
109
|
--mx-ring-value: --fn-focus-ring();
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
border-radius: var(--m-
|
|
112
|
+
border-radius: var(--m-rd-xs);
|
|
113
113
|
&:first-child {
|
|
114
|
-
border-top-left-radius: calc(var(--m-surface-
|
|
115
|
-
border-top-right-radius: calc(var(--m-surface-
|
|
114
|
+
border-top-left-radius: calc(var(--m-surface-rd) - var(--m-sp-xs));
|
|
115
|
+
border-top-right-radius: calc(var(--m-surface-rd) - var(--m-sp-xs));
|
|
116
116
|
}
|
|
117
117
|
&:last-child {
|
|
118
|
-
border-bottom-left-radius: calc(
|
|
119
|
-
|
|
120
|
-
);
|
|
121
|
-
border-bottom-right-radius: calc(
|
|
122
|
-
var(--m-surface-radius) - var(--m-space-xs)
|
|
123
|
-
);
|
|
118
|
+
border-bottom-left-radius: calc(var(--m-surface-rd) - var(--m-sp-xs));
|
|
119
|
+
border-bottom-right-radius: calc(var(--m-surface-rd) - var(--m-sp-xs));
|
|
124
120
|
}
|
|
125
121
|
}
|
|
126
122
|
|
|
@@ -129,8 +125,8 @@
|
|
|
129
125
|
display: flex;
|
|
130
126
|
flex-direction: row;
|
|
131
127
|
align-items: center;
|
|
132
|
-
gap: var(--m-
|
|
133
|
-
scroll-padding-block: var(--m-
|
|
128
|
+
gap: var(--m-sp-sm);
|
|
129
|
+
scroll-padding-block: var(--m-sp-md);
|
|
134
130
|
}
|
|
135
131
|
|
|
136
132
|
.itemIndicator {
|
|
@@ -142,26 +138,26 @@
|
|
|
142
138
|
align-items: center;
|
|
143
139
|
justify-content: center;
|
|
144
140
|
position: relative;
|
|
145
|
-
right: calc(-1 * var(--m-
|
|
141
|
+
right: calc(-1 * var(--m-sp-xs));
|
|
146
142
|
}
|
|
147
143
|
|
|
148
144
|
.itemRightSlot {
|
|
149
145
|
margin-inline-start: auto;
|
|
150
|
-
padding-inline-start: var(--m-
|
|
146
|
+
padding-inline-start: var(--m-sp-sm);
|
|
151
147
|
}
|
|
152
148
|
|
|
153
149
|
.arrow {
|
|
154
150
|
--size: 18px;
|
|
155
151
|
@apply --mx-fill(var(--mx-bg-ref, var(--m-global-trueLightColor)));
|
|
156
152
|
@apply --mx-stroke(var(--mx-borderColor-ref, var(--mx-fg-ref, var(--m-global-trueHeavyColor))));
|
|
157
|
-
stroke-width: var(--m-
|
|
153
|
+
stroke-width: var(--m-lw);
|
|
158
154
|
width: var(--size);
|
|
159
155
|
height: calc(var(--size) / 2);
|
|
160
156
|
position: relative;
|
|
161
157
|
--angle: 0deg;
|
|
162
158
|
--scale: 1;
|
|
163
159
|
transform: translate(0, 0) rotate(var(--angle, 0deg)) scale(var(--scale, 1));
|
|
164
|
-
transition: opacity var(--m-
|
|
160
|
+
transition: opacity var(--m-dur) var(--m-ease);
|
|
165
161
|
|
|
166
162
|
&[data-side='top'] {
|
|
167
163
|
--angle: 0deg;
|
|
@@ -191,14 +187,14 @@
|
|
|
191
187
|
}
|
|
192
188
|
|
|
193
189
|
.separator {
|
|
194
|
-
margin: var(--m-
|
|
195
|
-
height: var(--m-
|
|
196
|
-
@apply --mx-bg(var(--m-
|
|
190
|
+
margin: var(--m-sp-xs);
|
|
191
|
+
height: var(--m-lw-sm);
|
|
192
|
+
@apply --mx-bg(var(--m-gray));
|
|
197
193
|
}
|
|
198
194
|
|
|
199
195
|
.groupLabel {
|
|
200
196
|
user-select: none;
|
|
201
|
-
@apply --mx-fg(var(--m-
|
|
197
|
+
@apply --mx-fg(var(--m-gray-heavy));
|
|
202
198
|
font-size: var(--m-prose-ambient-size);
|
|
203
199
|
line-height: var(--m-prose-ambient-lineHeight);
|
|
204
200
|
font-weight: var(--m-prose-ambient-weight);
|
|
@@ -208,8 +204,8 @@
|
|
|
208
204
|
box-sizing: border-box;
|
|
209
205
|
z-index: 1;
|
|
210
206
|
height: 1rem;
|
|
211
|
-
left: var(--m-
|
|
212
|
-
right: var(--m-
|
|
207
|
+
left: var(--m-sp-md);
|
|
208
|
+
right: var(--m-sp-md);
|
|
213
209
|
cursor: default;
|
|
214
210
|
user-select: none;
|
|
215
211
|
align-items: center;
|
|
@@ -253,7 +249,7 @@
|
|
|
253
249
|
}
|
|
254
250
|
|
|
255
251
|
.triggerIcon {
|
|
256
|
-
transition: transform var(--m-
|
|
252
|
+
transition: transform var(--m-dur) var(--m-ease);
|
|
257
253
|
margin-inline-start: auto;
|
|
258
254
|
[data-open] > &,
|
|
259
255
|
[data-popup-open] > & {
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
|
|
4
4
|
display: grid;
|
|
5
5
|
grid-template-columns: 1fr 1fr;
|
|
6
|
-
row-gap: var(--m-
|
|
7
|
-
column-gap: var(--m-
|
|
6
|
+
row-gap: var(--m-sp-xs);
|
|
7
|
+
column-gap: var(--m-sp-md);
|
|
8
8
|
align-items: center;
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.indicator {
|
|
13
13
|
width: 100%;
|
|
14
|
-
transition: transform var(--m-
|
|
15
|
-
border-radius: var(--m-
|
|
16
|
-
@apply --mx-bg(var(--m-
|
|
14
|
+
transition: transform var(--m-dur) var(--m-ease);
|
|
15
|
+
border-radius: var(--m-rd);
|
|
16
|
+
@apply --mx-bg(var(--m-tint));
|
|
17
17
|
|
|
18
18
|
&[data-complete] {
|
|
19
|
-
@apply --mx-bg(var(--m-color-
|
|
19
|
+
@apply --mx-bg(var(--m-color-success));
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
grid-column-end: 3;
|
|
30
30
|
box-sizing: border-box;
|
|
31
31
|
|
|
32
|
-
border-radius: var(--m-
|
|
33
|
-
@apply --mx-bg(var(--m-
|
|
34
|
-
@apply --mx-borderColor(var(--m-
|
|
32
|
+
border-radius: var(--m-rd-lg);
|
|
33
|
+
@apply --mx-bg(var(--m-gray-paper));
|
|
34
|
+
@apply --mx-borderColor(var(--m-gray-ink));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.label {
|
|
38
38
|
grid-column-start: 1;
|
|
39
39
|
grid-row-start: 1;
|
|
40
|
-
@apply --mx-fg(var(--m-
|
|
40
|
+
@apply --mx-fg(var(--m-gray-ink));
|
|
41
41
|
font-size: var(--m-prose-ambient-size);
|
|
42
42
|
line-height: var(--m-prose-ambient-lineHeight);
|
|
43
43
|
font-weight: var(--m-prose-ambient-weight);
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
grid-column-start: 2;
|
|
48
48
|
grid-row-start: 1;
|
|
49
49
|
justify-self: end;
|
|
50
|
-
@apply --mx-fg(var(--m-
|
|
50
|
+
@apply --mx-fg(var(--m-gray-ink));
|
|
51
51
|
font-size: var(--m-prose-ambient-size);
|
|
52
52
|
line-height: var(--m-prose-ambient-lineHeight);
|
|
53
53
|
font-weight: 500;
|
|
@@ -38,7 +38,7 @@ export function Provider({
|
|
|
38
38
|
? virtualKeyboardBehavior
|
|
39
39
|
: 'displace';
|
|
40
40
|
useVirtualKeyboardBehavior(supportedVirtualKeyboardBehavior);
|
|
41
|
-
useThemedTitleBar('--m-
|
|
41
|
+
useThemedTitleBar('--m-tint-paper', disableTitleBarColor);
|
|
42
42
|
const otherStuff = (
|
|
43
43
|
<>
|
|
44
44
|
<IconSpritesheet />
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
.dialogContent {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: var(--m-
|
|
4
|
+
gap: var(--m-sp-xs);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.dialogTitle {
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: row;
|
|
10
10
|
align-items: center;
|
|
11
|
-
gap: var(--m-
|
|
11
|
+
gap: var(--m-sp-md);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.appIcon {
|
|
15
15
|
display: inline-block;
|
|
16
16
|
height: 1em;
|
|
17
17
|
width: 1em;
|
|
18
|
-
border-radius: var(--m-
|
|
18
|
+
border-radius: var(--m-rd);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.appDescription {
|
|
22
|
-
margin-bottom: var(--m-
|
|
22
|
+
margin-bottom: var(--m-sp-sm);
|
|
23
23
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
.trigger {
|
|
2
2
|
position: relative;
|
|
3
3
|
justify-content: center;
|
|
4
|
-
padding: var(--m-
|
|
5
|
-
border-radius: var(--m-action-
|
|
4
|
+
padding: var(--m-sp-xs);
|
|
5
|
+
border-radius: var(--m-action-rd);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.popup {
|
|
9
9
|
transition-property: all;
|
|
10
|
-
transition-duration: var(--m-
|
|
11
|
-
transition-timing-function: var(--m-
|
|
10
|
+
transition-duration: var(--m-dur);
|
|
11
|
+
transition-timing-function: var(--m-ease-loose);
|
|
12
12
|
|
|
13
13
|
position: fixed;
|
|
14
14
|
contain: layout;
|