@a-type/ui 6.0.52 → 6.0.54
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/colors.module.css +59 -0
- package/dist/components/actions/ActionBar.module.css +34 -0
- package/dist/components/actions/ActionButton.module.css +6 -0
- package/dist/components/avatar/Avatar.module.css +35 -0
- package/dist/components/box/Box.module.css +291 -0
- package/dist/components/button/Button.module.css +148 -0
- package/dist/components/camera/Camera.module.css +65 -0
- package/dist/components/card/Card.module.css +183 -0
- package/dist/components/checkbox/Checkbox.module.css +74 -0
- package/dist/components/chip/Chip.module.css +32 -0
- package/dist/components/collapsible/Collapsible.module.css +36 -0
- package/dist/components/combobox/Combobox.module.css +170 -0
- package/dist/components/datePicker/Calendar.module.css +167 -0
- package/dist/components/datePicker/datePicker.module.css +7 -0
- package/dist/components/datePicker/dateRangePicker.module.css +38 -0
- package/dist/components/dialog/Dialog.module.css +188 -0
- package/dist/components/divider/Divider.module.css +10 -0
- package/dist/components/dropdownMenu/DropdownMenu.module.css +3 -0
- package/dist/components/editableText/EditableText.module.css +44 -0
- package/dist/components/emojiPicker/EmojiPicker.module.css +84 -0
- package/dist/components/forms/EmojiField.module.css +8 -0
- package/dist/components/forms/Field.module.css +62 -0
- package/dist/components/forms/Form.module.css +6 -0
- package/dist/components/forms/NumberStepperField.module.css +5 -0
- package/dist/components/forms/TextField.module.css +11 -0
- package/dist/components/horizontalList/HorizontalList.module.css +50 -0
- package/dist/components/icon/Icon.module.css +20 -0
- package/dist/components/imageUploader/ImageUploader.module.css +67 -0
- package/dist/components/img/Img.module.css +42 -0
- package/dist/components/input/Input.module.css +100 -0
- package/dist/components/layouts/PageContent.module.css +25 -0
- package/dist/components/layouts/PageFixedArea.module.css +11 -0
- package/dist/components/layouts/PageNav.module.css +31 -0
- package/dist/components/layouts/PageNowPlaying.module.css +46 -0
- package/dist/components/layouts/PageRoot.module.css +29 -0
- package/dist/components/layouts/PageSection.module.css +19 -0
- package/dist/components/lightbox/Lightbox.module.css +104 -0
- package/dist/components/lists/lists.module.css +31 -0
- package/dist/components/marquee/marquee.module.css +32 -0
- package/dist/components/navBar/NavBar.module.css +143 -0
- package/dist/components/note/Note.module.css +114 -0
- package/dist/components/numberStepper/NumberStepper.module.css +32 -0
- package/dist/components/particles/ParticleLayer.module.css +8 -0
- package/dist/components/peek/Peek.module.css +96 -0
- package/dist/components/popover/Popover.module.css +24 -0
- package/dist/components/primitives/menus.module.css +262 -0
- package/dist/components/progress/Progress.module.css +54 -0
- package/dist/components/pwaInstall/PwaInstall.module.css +23 -0
- package/dist/components/quickAction/QuickAction.module.css +59 -0
- package/dist/components/richEditor/richEditor.module.css +102 -0
- package/dist/components/scrollArea/ScrollArea.module.css +187 -0
- package/dist/components/select/Select.module.css +46 -0
- package/dist/components/skeletons/skeletons.module.css +33 -0
- package/dist/components/slider/Slider.module.css +97 -0
- package/dist/components/spinner/Spinner.module.css +54 -0
- package/dist/components/splashScreen/SplashScreen.module.css +54 -0
- package/dist/components/switch/Switch.module.css +63 -0
- package/dist/components/tabs/tabs.module.css +139 -0
- package/dist/components/textArea/TextArea.module.css +14 -0
- package/dist/components/toasts/toasts.module.css +201 -0
- package/dist/components/toggleGroup/toggleGroup.module.css +55 -0
- package/dist/components/tooltip/Tooltip.module.css +72 -0
- package/dist/components/typography/typography.module.css +74 -0
- package/dist/components/viewport/Viewport.module.css +44 -0
- package/dist/components/viewport/ViewportContent.module.css +8 -0
- package/dist/theme.stories.module.css +13 -0
- package/package.json +5 -2
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
.overlay {
|
|
2
|
+
position: fixed;
|
|
3
|
+
inset: 0;
|
|
4
|
+
@apply --mx-shadow;
|
|
5
|
+
/* --mx-shadow-value: inset 0 30px 60px 0px
|
|
6
|
+
--fn-color-faded(var(--m-color-main-ink), 20%); */
|
|
7
|
+
@apply --mx-bg(var(--m-color-neutral-ink));
|
|
8
|
+
@apply --mx-bg-faded(5%);
|
|
9
|
+
border-top: var(--m-lineWidth) solid var(--m-color-neutral);
|
|
10
|
+
transition: all var(--m-duration) var(--m-easing);
|
|
11
|
+
backdrop-filter: blur(2px);
|
|
12
|
+
|
|
13
|
+
&[data-starting-style],
|
|
14
|
+
&[data-ending-style] {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.content {
|
|
20
|
+
pointer-events: auto;
|
|
21
|
+
position: fixed;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: stretch;
|
|
25
|
+
overflow: clip;
|
|
26
|
+
transition: all var(--m-duration) var(--m-easing);
|
|
27
|
+
--shadow-dir: 1;
|
|
28
|
+
@apply --mx-shadow;
|
|
29
|
+
--mx-shadow-value: 0 calc(var(--shadow-dir, 1) * var(--m-shadow-xl-y))
|
|
30
|
+
var(--m-shadow-xl-blur) var(--m-shadow-xl-spread) var(--m-shadow-xl-color);
|
|
31
|
+
@apply --mx-bg(var(--m-surface-ambient-bg));
|
|
32
|
+
@apply --mx-borderColor(var(--m-color-neutral-heavy));
|
|
33
|
+
|
|
34
|
+
left: 50%;
|
|
35
|
+
top: 50%;
|
|
36
|
+
max-height: 85vh;
|
|
37
|
+
max-width: 450px;
|
|
38
|
+
width: 90vw;
|
|
39
|
+
border-radius: var(--m-surface-radius);
|
|
40
|
+
transform: translate3d(-50%, -50%, 0);
|
|
41
|
+
will-change: transform, opacity;
|
|
42
|
+
|
|
43
|
+
&[data-starting-style],
|
|
44
|
+
&[data-ending-style] {
|
|
45
|
+
opacity: 0;
|
|
46
|
+
transform: translate3d(-50%, -45%, 0) scale(0.95);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:not([data-disable-sheet='true']) {
|
|
50
|
+
@media (max-width: 600px) {
|
|
51
|
+
--shadow-dir: -1;
|
|
52
|
+
top: auto;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
left: 0;
|
|
55
|
+
right: 0;
|
|
56
|
+
max-width: unset;
|
|
57
|
+
height: min-content;
|
|
58
|
+
width: 100vw;
|
|
59
|
+
border-radius: var(--m-surface-radius) var(--m-surface-radius) 0 0;
|
|
60
|
+
border-bottom-width: 0;
|
|
61
|
+
transform: translate(0, 0);
|
|
62
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
63
|
+
padding-top: var(--m-space-lg);
|
|
64
|
+
|
|
65
|
+
&[data-starting-style],
|
|
66
|
+
&[data-ending-style] {
|
|
67
|
+
opacity: 0;
|
|
68
|
+
transform: translate3d(0, 100%, 0) scale(0.98);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[data-width='lg'] {
|
|
72
|
+
max-width: 800px;
|
|
73
|
+
}
|
|
74
|
+
&[data-width='md'] {
|
|
75
|
+
max-width: 600px;
|
|
76
|
+
}
|
|
77
|
+
&[data-width='sm'] {
|
|
78
|
+
max-width: 300px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&[data-keyboard-behavior='overlay'] {
|
|
82
|
+
bottom: calc(
|
|
83
|
+
var(--mock-virtual-keyboard-height, env(keyboard-inset-height, 0px)) +
|
|
84
|
+
var(--gesture-y, 0px)
|
|
85
|
+
);
|
|
86
|
+
max-height: calc(
|
|
87
|
+
95vh -
|
|
88
|
+
var(--mock-virtual-keyboard-height, env(keyboard-inset-height, 0px))
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
&[data-keyboard-behavior='displace'] {
|
|
92
|
+
bottom: calc(
|
|
93
|
+
var(--viewport-bottom-offset, 0px) + var(--gesture-y, 0px)
|
|
94
|
+
);
|
|
95
|
+
max-height: calc(0.85 * var(--viewport-height, 100vh));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.contentScrollArea {
|
|
102
|
+
width: 100%;
|
|
103
|
+
height: 100%;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.contentScrollAreaContent {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
gap: var(--m-space-md);
|
|
110
|
+
padding: var(--m-surface-padding);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.swipeHandle {
|
|
114
|
+
display: block;
|
|
115
|
+
position: absolute;
|
|
116
|
+
top: 0;
|
|
117
|
+
left: 50%;
|
|
118
|
+
transform: translateX(-50%) scale(1);
|
|
119
|
+
width: 20%;
|
|
120
|
+
cursor: grab;
|
|
121
|
+
will-change: transform;
|
|
122
|
+
touch-action: none;
|
|
123
|
+
padding-block: var(--m-space-sm);
|
|
124
|
+
z-index: 1;
|
|
125
|
+
|
|
126
|
+
@media (min-width: 600px) {
|
|
127
|
+
display: none;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
.swipeHandleBar {
|
|
131
|
+
height: 4px;
|
|
132
|
+
width: 100%;
|
|
133
|
+
@apply --mx-bg(var(--m-color-neutral));
|
|
134
|
+
border-radius: var(--m-radius-lg);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.close {
|
|
138
|
+
position: absolute;
|
|
139
|
+
right: var(--m-space-sm);
|
|
140
|
+
top: var(--m-space-sm);
|
|
141
|
+
z-index: 101;
|
|
142
|
+
display: flex;
|
|
143
|
+
|
|
144
|
+
&[data-show-on-mobile='false'] {
|
|
145
|
+
@media (max-width: 600px) {
|
|
146
|
+
display: none;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.title {
|
|
152
|
+
@apply --mx-fg(var(--m-color-neutral-ink));
|
|
153
|
+
font-size: var(--m-prose-primary-size);
|
|
154
|
+
font-weight: var(--m-prose-primary-weight);
|
|
155
|
+
line-height: var(--m-prose-primary-lineHeight);
|
|
156
|
+
margin-block-end: var(--m-space-xs);
|
|
157
|
+
margin-block-start: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.description {
|
|
161
|
+
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
162
|
+
font-size: var(--m-prose-ambient-size);
|
|
163
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
164
|
+
margin: 0;
|
|
165
|
+
margin-block-end: var(--m-space-xs);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.actions {
|
|
169
|
+
position: sticky;
|
|
170
|
+
bottom: var(--m-space-md);
|
|
171
|
+
z-index: 100;
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-direction: row;
|
|
174
|
+
flex-wrap: wrap;
|
|
175
|
+
align-items: center;
|
|
176
|
+
justify-content: end;
|
|
177
|
+
align-self: end;
|
|
178
|
+
padding-bottom: 1px;
|
|
179
|
+
@apply --mx-shadow;
|
|
180
|
+
/* override blur in case user turned it off */
|
|
181
|
+
--mx-shadow-value: 0 calc(-1 * var(--m-shadow-md-y)) 16px
|
|
182
|
+
var(--m-shadow-md-spread) var(--m-color-neutral-paper);
|
|
183
|
+
@apply --mx-bg(var(--m-surface-ambient-bg));
|
|
184
|
+
@apply --mx-bg-faded(50%);
|
|
185
|
+
margin-block-start: var(--m-space-md);
|
|
186
|
+
gap: var(--m-space-sm);
|
|
187
|
+
border-radius: var(--m-surface-radius);
|
|
188
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.input {
|
|
2
|
+
& input {
|
|
3
|
+
font-size: inherit;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.button {
|
|
8
|
+
width: auto;
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
text-align: start;
|
|
12
|
+
font-size: inherit;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
|
|
15
|
+
@apply --mx-shadow;
|
|
16
|
+
--mx-shadow-value: none;
|
|
17
|
+
|
|
18
|
+
@apply --mx-fg(inherit);
|
|
19
|
+
@apply --mx-bg(transparent);
|
|
20
|
+
@apply --mx-borderColor(transparent);
|
|
21
|
+
|
|
22
|
+
padding: var(--m-control-padding);
|
|
23
|
+
gap: var(--m-space-sm);
|
|
24
|
+
border-radius: var(--m-control-radius);
|
|
25
|
+
|
|
26
|
+
&:hover,
|
|
27
|
+
&:focus-visible {
|
|
28
|
+
@apply --mx-bg(var(--m-color-neutral-light));
|
|
29
|
+
@apply --mx-bg-faded(80%);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:focus {
|
|
33
|
+
outline: none;
|
|
34
|
+
}
|
|
35
|
+
&:focus-visible {
|
|
36
|
+
--mx-ring-value: --fn-focus-ring();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.icon {
|
|
41
|
+
opacity: 80%;
|
|
42
|
+
font-size: 1rem;
|
|
43
|
+
@apply --mx-stroke(var(--m-color-main-heavy));
|
|
44
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
height: --fn-literal(368px);
|
|
3
|
+
width: fit-content;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
isolation: isolate;
|
|
7
|
+
gap: var(--m-space-sm);
|
|
8
|
+
@apply --mx-bg(var(--m-surface-ambient-bg));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.search {
|
|
12
|
+
z-index: 10;
|
|
13
|
+
min-width: --fn-literal(80px);
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.viewport {
|
|
18
|
+
min-height: 0;
|
|
19
|
+
flex: 1;
|
|
20
|
+
overflow: clip;
|
|
21
|
+
@apply --mx-bg(var(--m-surface-ambient-bg));
|
|
22
|
+
border-radius: var(--m-surface-radius);
|
|
23
|
+
}
|
|
24
|
+
.viewportInner {
|
|
25
|
+
position: relative;
|
|
26
|
+
outline: hidden;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.loading {
|
|
30
|
+
position: absolute;
|
|
31
|
+
inset: 0;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
@apply --mx-bg(inherit);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.empty {
|
|
39
|
+
position: absolute;
|
|
40
|
+
inset: 0;
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
@apply --mx-bg(inherit);
|
|
45
|
+
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
46
|
+
font-size: var(--m-prose-ambient-size);
|
|
47
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
48
|
+
font-weight: var(--m-prose-ambient-weight);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.categoryHeader {
|
|
52
|
+
position: sticky;
|
|
53
|
+
top: 0;
|
|
54
|
+
@apply --mx-bg(inherit);
|
|
55
|
+
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
56
|
+
padding: var(--m-space-sm) var(--m-space-md);
|
|
57
|
+
font-weight: semibold;
|
|
58
|
+
font-size: var(--m-prose-ambient-size);
|
|
59
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.row {
|
|
63
|
+
scroll-margin-block: var(--m-space-xs);
|
|
64
|
+
padding-inline: var(--m-space-xs);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.emoji {
|
|
68
|
+
padding: var(--m-space-xs);
|
|
69
|
+
font-size: --fn-literal(20px);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.list {
|
|
73
|
+
user-select: none;
|
|
74
|
+
padding-block-end: var(--m-space-md);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.skinToneButton {
|
|
78
|
+
padding: var(--m-space-xs);
|
|
79
|
+
font-size: --fn-literal(20px);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.skinToneSelector {
|
|
83
|
+
margin-right: auto;
|
|
84
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-areas: 'label' 'control' 'description';
|
|
4
|
+
justify-content: start;
|
|
5
|
+
|
|
6
|
+
&[data-horizontal] {
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
align-items: center;
|
|
9
|
+
grid-template-areas: 'control label' 'description description';
|
|
10
|
+
grid-template-columns: auto 1fr;
|
|
11
|
+
&[data-reverse] {
|
|
12
|
+
grid-template-areas: 'label control' 'description description';
|
|
13
|
+
grid-template-columns: auto 1fr;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&[data-stretch] {
|
|
18
|
+
align-self: stretch;
|
|
19
|
+
justify-content: stretch;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.control {
|
|
24
|
+
grid-area: control;
|
|
25
|
+
|
|
26
|
+
[data-stretch] & {
|
|
27
|
+
align-self: stretch;
|
|
28
|
+
justify-content: stretch;
|
|
29
|
+
width: 100%;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.label {
|
|
34
|
+
grid-area: label;
|
|
35
|
+
@apply --mx-prose-ambient;
|
|
36
|
+
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
37
|
+
font-weight: var(--m-text-weight-bold);
|
|
38
|
+
margin-bottom: var(--m-space-xs);
|
|
39
|
+
margin-left: calc(var(--m-global-shape-roundness) * var(--m-space-md));
|
|
40
|
+
|
|
41
|
+
[data-horizontal] & {
|
|
42
|
+
@apply --mx-fg(var(--m-color-neutral-ink));
|
|
43
|
+
font-weight: var(--m-text-weight-normal);
|
|
44
|
+
margin-block-start: --fn-literal(5px);
|
|
45
|
+
|
|
46
|
+
[data-reverse] & {
|
|
47
|
+
margin-inline-start: 0;
|
|
48
|
+
margin-inline-end: calc(
|
|
49
|
+
var(--m-global-shape-roundness) * var(--m-space-md)
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.description {
|
|
56
|
+
grid-area: description;
|
|
57
|
+
@apply --mx-prose-ambient;
|
|
58
|
+
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
59
|
+
font-style: italic;
|
|
60
|
+
margin-top: var(--m-space-sm);
|
|
61
|
+
margin-left: calc(var(--m-global-shape-roundness) * var(--m-space-md));
|
|
62
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
width: 100%;
|
|
3
|
+
max-height: 300px;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.viewport {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.content {
|
|
14
|
+
width: max-content;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: var(--m-space-sm);
|
|
20
|
+
padding: var(--m-space-sm) var(--m-space-sm) var(--m-space-md)
|
|
21
|
+
var(--m-space-sm);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.toggleButton {
|
|
25
|
+
&[data-open='false'] {
|
|
26
|
+
height: 100%;
|
|
27
|
+
border-inline-end: var(--m-lineWidth) solid var(--m-color-neutral);
|
|
28
|
+
border-top-left-radius: var(--m-radius-sm);
|
|
29
|
+
border-bottom-left-radius: var(--m-radius-sm);
|
|
30
|
+
border-top-right-radius: 0;
|
|
31
|
+
border-bottom-right-radius: 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.toggleButtonWrapper {
|
|
36
|
+
position: sticky;
|
|
37
|
+
left: 0;
|
|
38
|
+
height: 100%;
|
|
39
|
+
top: var(--m-space-sm);
|
|
40
|
+
z-index: 1;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
@apply --mx-bg(inherit);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.chevronIcon {
|
|
46
|
+
transition: transform var(--m-duration) var(--m-easing);
|
|
47
|
+
&[data-flip='true'] {
|
|
48
|
+
transform: rotate(180deg);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
fill: none;
|
|
3
|
+
flex-shrink: 0;
|
|
4
|
+
|
|
5
|
+
--size: 1em;
|
|
6
|
+
width: var(--size);
|
|
7
|
+
height: var(--size);
|
|
8
|
+
|
|
9
|
+
&[data-filled] {
|
|
10
|
+
fill: var(--m-color-main);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.spinner {
|
|
15
|
+
display: inline-block;
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
--size: 1em;
|
|
18
|
+
width: var(--size);
|
|
19
|
+
height: var(--size);
|
|
20
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
position: relative;
|
|
3
|
+
border-radius: var(--m-surface-radius);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.input {
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
position: absolute;
|
|
9
|
+
inset: 0;
|
|
10
|
+
opacity: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.cameraRoot {
|
|
14
|
+
position: absolute;
|
|
15
|
+
z-index: 1;
|
|
16
|
+
height: 100%;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.cameraCancelButton {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: var(--m-space-sm);
|
|
23
|
+
left: var(--m-space-sm);
|
|
24
|
+
@apply --mx-fg(var(--m-color-neutral-paper));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.removeButton {
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: var(--m-space-sm);
|
|
30
|
+
right: var(--m-space-sm);
|
|
31
|
+
z-index: 10;
|
|
32
|
+
height: 32px;
|
|
33
|
+
width: 32px;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
padding: var(--m-space-sm);
|
|
36
|
+
@apply --mx-bg(var(--m-surface-ambient-bg));
|
|
37
|
+
@apply --mx-fg(var(--m-surface-ambient-fg));
|
|
38
|
+
@apply --mx-shadow;
|
|
39
|
+
border-radius: var(--m-radius-lg);
|
|
40
|
+
border: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.imagePreview {
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
object-fit: cover;
|
|
47
|
+
object-position: center;
|
|
48
|
+
border-radius: inherit;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.emptyControls {
|
|
52
|
+
position: absolute;
|
|
53
|
+
inset: 0;
|
|
54
|
+
min-height: 120px;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
gap: var(--m-space-sm);
|
|
60
|
+
@apply --mx-bg(var(--m-surface-primary-bg));
|
|
61
|
+
@apply --mx-fg(var(--m-surface-primary-fg));
|
|
62
|
+
border-radius: inherit;
|
|
63
|
+
|
|
64
|
+
&[dragging-over='true'] {
|
|
65
|
+
@apply --mx-bg-heavier(2);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
&[data-full='width'],
|
|
3
|
+
&[data-full='true'] {
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
&[data-full='height'],
|
|
7
|
+
&[data-full='true'] {
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&[data-fit='cover'] {
|
|
12
|
+
object-fit: cover;
|
|
13
|
+
}
|
|
14
|
+
&[data-fit='contain'] {
|
|
15
|
+
object-fit: contain;
|
|
16
|
+
}
|
|
17
|
+
&[data-fit='fill'] {
|
|
18
|
+
object-fit: fill;
|
|
19
|
+
}
|
|
20
|
+
&[data-fit='none'] {
|
|
21
|
+
object-fit: none;
|
|
22
|
+
}
|
|
23
|
+
&[data-fit='scale-down'] {
|
|
24
|
+
object-fit: scale-down;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[data-position='top'] {
|
|
28
|
+
object-position: top;
|
|
29
|
+
}
|
|
30
|
+
&[data-position='bottom'] {
|
|
31
|
+
object-position: bottom;
|
|
32
|
+
}
|
|
33
|
+
&[data-position='left'] {
|
|
34
|
+
object-position: left;
|
|
35
|
+
}
|
|
36
|
+
&[data-position='right'] {
|
|
37
|
+
object-position: right;
|
|
38
|
+
}
|
|
39
|
+
&[data-position='center'] {
|
|
40
|
+
object-position: center;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
.input {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-grow: 1;
|
|
4
|
+
user-select: auto;
|
|
5
|
+
padding: var(--m-control-padding-block) 0px;
|
|
6
|
+
min-width: 60px;
|
|
7
|
+
|
|
8
|
+
@apply --mx-fg(inherit);
|
|
9
|
+
@apply --mx-bg(transparent);
|
|
10
|
+
border: none;
|
|
11
|
+
|
|
12
|
+
font-family: inherit;
|
|
13
|
+
font-size: inherit;
|
|
14
|
+
line-height: inherit;
|
|
15
|
+
|
|
16
|
+
&::placeholder {
|
|
17
|
+
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Focus visuals handled by wrapper */
|
|
21
|
+
&:focus,
|
|
22
|
+
&:focus-visible {
|
|
23
|
+
outline: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* &:first-child {
|
|
27
|
+
padding-left: var(--m-control-padding-inline);
|
|
28
|
+
border-top-left-radius: inherit;
|
|
29
|
+
border-bottom-left-radius: inherit;
|
|
30
|
+
}
|
|
31
|
+
&:last-child {
|
|
32
|
+
padding-right: var(--m-control-padding-inline);
|
|
33
|
+
border-top-right-radius: inherit;
|
|
34
|
+
border-bottom-right-radius: inherit;
|
|
35
|
+
} */
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.inputBorder {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: row;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: var(--m-space-xs);
|
|
43
|
+
width: max-content;
|
|
44
|
+
overflow: clip;
|
|
45
|
+
|
|
46
|
+
transition: box-shadow var(--m-duration) var(--m-easing);
|
|
47
|
+
|
|
48
|
+
@apply --mx-shadow;
|
|
49
|
+
--mx-shadow-value: inset var(--m-shadow-sm);
|
|
50
|
+
|
|
51
|
+
@apply --mx-fg(var(--m-control-fg));
|
|
52
|
+
@apply --mx-bg(var(--m-control-bg));
|
|
53
|
+
@apply --mx-borderColor(var(--m-control-borderColor));
|
|
54
|
+
border-radius: var(--m-control-radius);
|
|
55
|
+
|
|
56
|
+
font-size: var(--m-prose-secondary-size);
|
|
57
|
+
line-height: var(--m-prose-secondary-lineHeight);
|
|
58
|
+
font-weight: var(--m-prose-secondary-weight);
|
|
59
|
+
|
|
60
|
+
&:has(input:disabled),
|
|
61
|
+
&:has(textarea:disabled) {
|
|
62
|
+
--mx-shadow-value: 0 0 0 0 transparent;
|
|
63
|
+
@apply --mx-bg(transparent);
|
|
64
|
+
@apply --mx-borderColor-lighter(2);
|
|
65
|
+
|
|
66
|
+
& input:placeholder,
|
|
67
|
+
& textarea::placeholder {
|
|
68
|
+
@apply --mx-fg-lighter(2);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:has(input:focus-visible[data-focus-clicked='false']),
|
|
73
|
+
&:has(textarea:focus-visible[data-focus-clicked='false']) {
|
|
74
|
+
@apply --mx-bg-lighter(3);
|
|
75
|
+
--mx-ring-value: --fn-focus-ring();
|
|
76
|
+
}
|
|
77
|
+
&:has(input:focus),
|
|
78
|
+
&:has(textarea:focus) {
|
|
79
|
+
@apply --mx-bg-lighter(3);
|
|
80
|
+
--mx-ring-value: --fn-ring(var(--m-color-main-light), 4px);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:has(input:hover:not(:disabled):not(:focus)),
|
|
84
|
+
&:has(textarea:hover:not(:disabled):not(:focus)) {
|
|
85
|
+
@apply --mx-bg-lighter(2);
|
|
86
|
+
@apply --mx-borderColor-heavier(2);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
& > [data-icon] {
|
|
90
|
+
margin-inline: var(--m-space-sm);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
padding-inline: var(--m-control-padding-inline);
|
|
94
|
+
& > [data-input-border-flush]:first-child {
|
|
95
|
+
margin-left: calc(-1 * var(--m-control-padding-inline));
|
|
96
|
+
}
|
|
97
|
+
& > [data-input-border-flush]:last-child {
|
|
98
|
+
margin-right: calc(-1 * var(--m-control-padding-inline));
|
|
99
|
+
}
|
|
100
|
+
}
|