@mrpelz/uikit-ish 7.26.2 → 7.29.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/dist/components/accordion/style.css +0 -3
- package/dist/components/activity-view/style.css +17 -17
- package/dist/components/alert/style.css +12 -10
- package/dist/components/avatar/style.css +2 -2
- package/dist/components/badge/style.css +1 -1
- package/dist/components/button/style.css +12 -12
- package/dist/components/card/buttons.d.ts +35 -0
- package/dist/components/card/buttons.d.ts.map +1 -0
- package/dist/components/card/buttons.js +60 -0
- package/dist/components/card/buttons.js.map +1 -0
- package/dist/components/card/channels.d.ts +43 -0
- package/dist/components/card/channels.d.ts.map +1 -0
- package/dist/components/card/channels.js +321 -0
- package/dist/components/card/channels.js.map +1 -0
- package/dist/components/card/color.d.ts +21 -0
- package/dist/components/card/color.d.ts.map +1 -0
- package/dist/components/card/color.js +100 -0
- package/dist/components/card/color.js.map +1 -0
- package/dist/components/card/main.d.ts +67 -39
- package/dist/components/card/main.d.ts.map +1 -1
- package/dist/components/card/main.js +79 -274
- package/dist/components/card/main.js.map +1 -1
- package/dist/components/card/parts.css +769 -0
- package/dist/components/card/press.d.ts +25 -0
- package/dist/components/card/press.d.ts.map +1 -0
- package/dist/components/card/press.js +111 -0
- package/dist/components/card/press.js.map +1 -0
- package/dist/components/card/progress.d.ts +43 -0
- package/dist/components/card/progress.d.ts.map +1 -0
- package/dist/components/card/progress.js +122 -0
- package/dist/components/card/progress.js.map +1 -0
- package/dist/components/card/props.d.ts +324 -14
- package/dist/components/card/props.d.ts.map +1 -1
- package/dist/components/card/root.d.ts +100 -0
- package/dist/components/card/root.d.ts.map +1 -0
- package/dist/components/card/root.js +388 -0
- package/dist/components/card/root.js.map +1 -0
- package/dist/components/card/rows.d.ts +19 -0
- package/dist/components/card/rows.d.ts.map +1 -0
- package/dist/components/card/rows.js +185 -0
- package/dist/components/card/rows.js.map +1 -0
- package/dist/components/card/segmented.d.ts +61 -0
- package/dist/components/card/segmented.d.ts.map +1 -0
- package/dist/components/card/segmented.js +289 -0
- package/dist/components/card/segmented.js.map +1 -0
- package/dist/components/card/shared.d.ts +55 -0
- package/dist/components/card/shared.d.ts.map +1 -0
- package/dist/components/card/shared.js +80 -0
- package/dist/components/card/shared.js.map +1 -0
- package/dist/components/card/slider.d.ts +16 -0
- package/dist/components/card/slider.d.ts.map +1 -0
- package/dist/components/card/slider.js +48 -0
- package/dist/components/card/slider.js.map +1 -0
- package/dist/components/card/stages.d.ts +18 -0
- package/dist/components/card/stages.d.ts.map +1 -0
- package/dist/components/card/stages.js +37 -0
- package/dist/components/card/stages.js.map +1 -0
- package/dist/components/card/style.css +125 -66
- package/dist/components/checkbox/style.css +10 -5
- package/dist/components/collapsible/style.css +0 -3
- package/dist/components/color-picker/color.d.ts +2 -2
- package/dist/components/color-picker/color.d.ts.map +1 -1
- package/dist/components/color-picker/color.js +7 -7
- package/dist/components/color-picker/color.js.map +1 -1
- package/dist/components/color-picker/main.d.ts +11 -5
- package/dist/components/color-picker/main.d.ts.map +1 -1
- package/dist/components/color-picker/main.js +128 -57
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/props.d.ts +216 -6
- package/dist/components/color-picker/props.d.ts.map +1 -1
- package/dist/components/color-picker/style.css +8 -8
- package/dist/components/control-cards/main.d.ts +6 -17
- package/dist/components/control-cards/main.d.ts.map +1 -1
- package/dist/components/control-cards/main.js +119 -758
- package/dist/components/control-cards/main.js.map +1 -1
- package/dist/components/control-cards/props.d.ts +79 -250
- package/dist/components/control-cards/props.d.ts.map +1 -1
- package/dist/components/control-cards/style.css +2 -492
- package/dist/components/date-picker/main.d.ts +8 -3
- package/dist/components/date-picker/main.d.ts.map +1 -1
- package/dist/components/date-picker/main.js +71 -29
- package/dist/components/date-picker/main.js.map +1 -1
- package/dist/components/date-picker/pager.d.ts.map +1 -1
- package/dist/components/date-picker/pager.js +9 -2
- package/dist/components/date-picker/pager.js.map +1 -1
- package/dist/components/date-picker/props.d.ts +81 -5
- package/dist/components/date-picker/props.d.ts.map +1 -1
- package/dist/components/date-picker/style.css +24 -16
- package/dist/components/edit-menu/style.css +2 -2
- package/dist/components/glass/style.css +38 -5
- package/dist/components/grid/main.d.ts +1 -1
- package/dist/components/grid/main.d.ts.map +1 -1
- package/dist/components/grid/main.js +104 -21
- package/dist/components/grid/main.js.map +1 -1
- package/dist/components/grid/props.d.ts +75 -5
- package/dist/components/grid/props.d.ts.map +1 -1
- package/dist/components/grid/style.css +68 -38
- package/dist/components/header/style.css +12 -6
- package/dist/components/index.d.ts +10 -8
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +6 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/style.css +0 -3
- package/dist/components/list/main.d.ts +5 -3
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +42 -5
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +5 -0
- package/dist/components/list/props.d.ts.map +1 -1
- package/dist/components/list/reorder.d.ts +34 -0
- package/dist/components/list/reorder.d.ts.map +1 -1
- package/dist/components/list/reorder.js +40 -17
- package/dist/components/list/reorder.js.map +1 -1
- package/dist/components/list/style.css +101 -73
- package/dist/components/menu/style.css +38 -30
- package/dist/components/navigation/main.d.ts.map +1 -1
- package/dist/components/navigation/main.js +35 -13
- package/dist/components/navigation/main.js.map +1 -1
- package/dist/components/navigation/style.css +7 -0
- package/dist/components/page-control/main.d.ts.map +1 -1
- package/dist/components/page-control/main.js +32 -15
- package/dist/components/page-control/main.js.map +1 -1
- package/dist/components/page-control/props.d.ts +6 -0
- package/dist/components/page-control/props.d.ts.map +1 -1
- package/dist/components/page-control/style.css +36 -0
- package/dist/components/pager/main.d.ts +12 -0
- package/dist/components/pager/main.d.ts.map +1 -0
- package/dist/components/pager/main.js +368 -0
- package/dist/components/pager/main.js.map +1 -0
- package/dist/components/pager/props.d.ts +36 -0
- package/dist/components/pager/props.d.ts.map +1 -0
- package/dist/components/pager/props.js +2 -0
- package/dist/components/pager/props.js.map +1 -0
- package/dist/components/pager/style.css +42 -0
- package/dist/components/progress/main.d.ts.map +1 -1
- package/dist/components/progress/main.js +3 -2
- package/dist/components/progress/main.js.map +1 -1
- package/dist/components/progress/style.css +4 -10
- package/dist/components/roll/style.css +2 -2
- package/dist/components/segmented/style.css +16 -7
- package/dist/components/settings/main.d.ts +35 -1
- package/dist/components/settings/main.d.ts.map +1 -1
- package/dist/components/settings/main.js +297 -68
- package/dist/components/settings/main.js.map +1 -1
- package/dist/components/settings/props.d.ts +45 -4
- package/dist/components/settings/props.d.ts.map +1 -1
- package/dist/components/settings/region.d.ts +3 -0
- package/dist/components/settings/region.d.ts.map +1 -0
- package/dist/components/settings/region.js +120 -0
- package/dist/components/settings/region.js.map +1 -0
- package/dist/components/settings/style.css +2 -2
- package/dist/components/sheet/snap.d.ts.map +1 -1
- package/dist/components/sheet/snap.js +13 -5
- package/dist/components/sheet/snap.js.map +1 -1
- package/dist/components/sheet/style.css +48 -3
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +5 -2
- package/dist/components/slider/main.js.map +1 -1
- package/dist/components/slider/style.css +6 -6
- package/dist/components/stack/main.d.ts +8 -0
- package/dist/components/stack/main.d.ts.map +1 -0
- package/dist/components/stack/main.js +25 -0
- package/dist/components/stack/main.js.map +1 -0
- package/dist/components/stack/props.d.ts +42 -0
- package/dist/components/stack/props.d.ts.map +1 -0
- package/dist/components/stack/props.js +2 -0
- package/dist/components/stack/props.js.map +1 -0
- package/dist/components/stack/style.css +68 -0
- package/dist/components/stepper/main.d.ts +3 -1
- package/dist/components/stepper/main.d.ts.map +1 -1
- package/dist/components/stepper/main.js +4 -0
- package/dist/components/stepper/main.js.map +1 -1
- package/dist/components/stepper/style.css +2 -2
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +5 -1
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/switch/props.d.ts +4 -1
- package/dist/components/switch/props.d.ts.map +1 -1
- package/dist/components/tab-bar/style.css +36 -13
- package/dist/components/text-field/style.css +28 -17
- package/dist/components/toolbar/main.d.ts +5 -2
- package/dist/components/toolbar/main.d.ts.map +1 -1
- package/dist/components/toolbar/main.js +18 -0
- package/dist/components/toolbar/main.js.map +1 -1
- package/dist/components/toolbar/props.d.ts +15 -0
- package/dist/components/toolbar/props.d.ts.map +1 -1
- package/dist/components/toolbar/style.css +126 -10
- package/dist/components/tooltip/style.css +2 -2
- package/dist/components/typography/main.d.ts +1 -0
- package/dist/components/typography/main.d.ts.map +1 -1
- package/dist/components/typography/main.js +1 -0
- package/dist/components/typography/main.js.map +1 -1
- package/dist/components/typography/sizes.css +456 -0
- package/dist/components/typography/style.css +24 -456
- package/dist/components/utils/main.d.ts +23 -6
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +60 -7
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/viewport/edge-effect.d.ts.map +1 -1
- package/dist/components/viewport/edge-effect.js +6 -2
- package/dist/components/viewport/edge-effect.js.map +1 -1
- package/dist/components/viewport/focus-scroll.d.ts.map +1 -1
- package/dist/components/viewport/focus-scroll.js +2 -1
- package/dist/components/viewport/focus-scroll.js.map +1 -1
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +34 -2
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/style.css +7 -13
- package/dist/styles.css +287 -120
- package/package.json +1 -1
|
@@ -1,492 +1,2 @@
|
|
|
1
|
-
/* ControlCards (see main.tsx):
|
|
2
|
-
|
|
3
|
-
/* A card's bars (`ControlCards.Channels`): between its top row and its
|
|
4
|
-
title, side by side upright or stacked across, each rounded, its fill
|
|
5
|
-
its tint, its name on it upright, beside it across (no knob: the bar
|
|
6
|
-
is the control). */
|
|
7
|
-
.uikit-control-cards-channels {
|
|
8
|
-
display: grid;
|
|
9
|
-
min-width: 0;
|
|
10
|
-
min-height: 0;
|
|
11
|
-
align-self: stretch;
|
|
12
|
-
gap: 6px;
|
|
13
|
-
grid-auto-columns: minmax(0, 1fr);
|
|
14
|
-
grid-auto-flow: column;
|
|
15
|
-
grid-column: 1 / -1;
|
|
16
|
-
grid-row: 2;
|
|
17
|
-
margin-block: 8px;
|
|
18
|
-
|
|
19
|
-
/* (Stacked across, one row's room: too thin for a name on each, so
|
|
20
|
-
each name beside its bar, at its leading end, centered on it; the
|
|
21
|
-
names one column, the bars starting together, see below.) */
|
|
22
|
-
&[data-orientation='horizontal'] {
|
|
23
|
-
column-gap: 8px;
|
|
24
|
-
grid-auto-flow: row;
|
|
25
|
-
grid-auto-rows: minmax(0, 1fr);
|
|
26
|
-
grid-template-columns: auto minmax(0, 1fr);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.uikit-slider-root {
|
|
30
|
-
position: relative;
|
|
31
|
-
display: grid;
|
|
32
|
-
width: auto;
|
|
33
|
-
min-width: 0;
|
|
34
|
-
height: auto;
|
|
35
|
-
min-height: 0;
|
|
36
|
-
place-self: stretch stretch;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.uikit-slider-control {
|
|
40
|
-
position: absolute;
|
|
41
|
-
min-width: 0;
|
|
42
|
-
min-height: 0;
|
|
43
|
-
inset: 0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/* (Each a well set into the card's glass (see Card), its fill
|
|
47
|
-
translucent, lit along its top.) */
|
|
48
|
-
.uikit-slider-track {
|
|
49
|
-
overflow: hidden;
|
|
50
|
-
width: 100%;
|
|
51
|
-
height: 100%;
|
|
52
|
-
border-radius: 12px;
|
|
53
|
-
background-color: var(--uikit-card-well);
|
|
54
|
-
box-shadow: var(--uikit-card-well-shadow);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.uikit-slider-indicator {
|
|
58
|
-
border-radius: 0;
|
|
59
|
-
background-color: color-mix(
|
|
60
|
-
in srgb,
|
|
61
|
-
var(--uikit-slider-tint) 70%,
|
|
62
|
-
transparent
|
|
63
|
-
);
|
|
64
|
-
background-image: linear-gradient(
|
|
65
|
-
to bottom,
|
|
66
|
-
rgb(255 255 255 / 22%),
|
|
67
|
-
transparent 45%
|
|
68
|
-
);
|
|
69
|
-
box-shadow: inset 0 0.5px 0 rgb(255 255 255 / 45%);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.uikit-slider-thumb {
|
|
73
|
-
&::before,
|
|
74
|
-
&::after {
|
|
75
|
-
display: none;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.uikit-slider-label {
|
|
80
|
-
position: absolute;
|
|
81
|
-
z-index: 1;
|
|
82
|
-
color: inherit;
|
|
83
|
-
font-size: 11px;
|
|
84
|
-
font-variation-settings: 'wght' 590;
|
|
85
|
-
font-weight: 600;
|
|
86
|
-
inset-block-end: 4px;
|
|
87
|
-
inset-inline: 0;
|
|
88
|
-
pointer-events: none;
|
|
89
|
-
text-align: center;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&[data-orientation='horizontal'] .uikit-slider-root {
|
|
93
|
-
align-items: center;
|
|
94
|
-
grid-column: 1 / -1;
|
|
95
|
-
grid-template-columns: subgrid;
|
|
96
|
-
grid-template-rows: minmax(0, 1fr);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&[data-orientation='horizontal'] .uikit-slider-control {
|
|
100
|
-
position: relative;
|
|
101
|
-
height: 100%;
|
|
102
|
-
grid-column: 2;
|
|
103
|
-
grid-row: 1;
|
|
104
|
-
inset: auto;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&[data-orientation='horizontal'] .uikit-slider-label {
|
|
108
|
-
position: static;
|
|
109
|
-
grid-column: 1;
|
|
110
|
-
grid-row: 1;
|
|
111
|
-
line-height: 1;
|
|
112
|
-
text-align: start;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/* A list card's last row (`ControlCards.List`): its label quiet (the
|
|
117
|
-
glass's secondary color), the corner symbol at its end in its text's
|
|
118
|
-
color, as a value would be. */
|
|
119
|
-
.uikit-control-cards-list [data-control-cards-part='list-action'] {
|
|
120
|
-
[data-list-part='title'] {
|
|
121
|
-
color: var(--uikit-glass-content-secondary);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
[data-list-part='detail'] {
|
|
125
|
-
display: flex;
|
|
126
|
-
color: var(--uikit-glass-content);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/* (A list card's corner button over its last row (see main.tsx): its hit
|
|
131
|
-
area only, nothing drawn.) */
|
|
132
|
-
.uikit-control-cards-hit-area.uikit-card-corner-button {
|
|
133
|
-
opacity: 0;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/* A segmented card (`ControlCards.Segmented`), by its layout (see
|
|
137
|
-
main.tsx): a row, its symbol and title on its top line, its options
|
|
138
|
-
across its bottom; taller, its title and value as any card's, its
|
|
139
|
-
options under them; upright, stacked in all the room below; 1x1, as
|
|
140
|
-
any card. Its value small, whatever its size (its options are what's
|
|
141
|
-
large). */
|
|
142
|
-
.uikit-control-cards-segmented {
|
|
143
|
-
/* (Its symbol the chosen option's: in a slot of its own height, the
|
|
144
|
-
same whichever it is (icons' heights differ), nothing below it
|
|
145
|
-
moving as another's chosen.) */
|
|
146
|
-
.uikit-card-symbol {
|
|
147
|
-
height: 24px;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.uikit-card-value {
|
|
151
|
-
color: var(--uikit-glass-content-secondary);
|
|
152
|
-
font-size: var(--font-ui-subheadline-size);
|
|
153
|
-
font-variation-settings: normal;
|
|
154
|
-
font-weight: normal;
|
|
155
|
-
line-height: var(--font-ui-subheadline-line-height);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&[data-layout='row'] > .uikit-card-frame > .uikit-card-layout {
|
|
159
|
-
align-items: center;
|
|
160
|
-
grid-template:
|
|
161
|
-
'symbol title' auto
|
|
162
|
-
'. .' 1fr
|
|
163
|
-
'choice choice' auto / auto 1fr;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/* (Across a row, an x in its top trailing corner (open above the
|
|
167
|
-
page): its title clear of it.) */
|
|
168
|
-
&[data-layout='row']
|
|
169
|
-
> .uikit-card-frame
|
|
170
|
-
> .uikit-card-layout:has(> .uikit-card-corner-button[data-grid-corner='top-trailing']:not([data-grid-hidden]))
|
|
171
|
-
> .uikit-card-title {
|
|
172
|
-
padding-inline-end: var(--uikit-card-header-room, 28px);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&[data-layout='tall'] > .uikit-card-frame > .uikit-card-layout {
|
|
176
|
-
grid-template:
|
|
177
|
-
'symbol control' auto
|
|
178
|
-
'. .' 1fr
|
|
179
|
-
'title title' auto
|
|
180
|
-
'value value' auto
|
|
181
|
-
'choice choice' auto / 1fr auto;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
&[data-layout='upright'] > .uikit-card-frame > .uikit-card-layout {
|
|
185
|
-
grid-template:
|
|
186
|
-
'symbol control' auto
|
|
187
|
-
'title title' auto
|
|
188
|
-
'value value' auto
|
|
189
|
-
'choice choice' 1fr / 1fr auto;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/* Its options (a radio group): in a well at its bottom, 6px from its
|
|
194
|
-
edges (its padding, 12px 14px, given back less that), its corners
|
|
195
|
-
concentric with the card's; side by side in equal columns, or stacked
|
|
196
|
-
in equal rows (upright). */
|
|
197
|
-
.uikit-control-cards-segmented-choice {
|
|
198
|
-
position: relative;
|
|
199
|
-
display: grid;
|
|
200
|
-
min-width: 0;
|
|
201
|
-
min-height: 0;
|
|
202
|
-
box-sizing: border-box;
|
|
203
|
-
padding: 3px;
|
|
204
|
-
border-radius: calc(var(--uikit-grid-item-radius, 24px) - 6px);
|
|
205
|
-
margin: 0 -8px -6px;
|
|
206
|
-
background-color: var(--uikit-card-well);
|
|
207
|
-
box-shadow: var(--uikit-card-well-shadow);
|
|
208
|
-
grid-area: choice;
|
|
209
|
-
grid-auto-columns: minmax(0, 1fr);
|
|
210
|
-
grid-auto-flow: column;
|
|
211
|
-
|
|
212
|
-
/* (Dragged along its options (see main.tsx): the page scrolling across
|
|
213
|
-
them only (upright, none from it: a slim card, room around it to
|
|
214
|
-
scroll); nothing selected as it's dragged.) */
|
|
215
|
-
touch-action: pan-y;
|
|
216
|
-
-webkit-user-select: none;
|
|
217
|
-
user-select: none;
|
|
218
|
-
|
|
219
|
-
/* (None shown (1x1): there all the same, unseen, its options telling
|
|
220
|
-
the card theirs, see main.tsx.) */
|
|
221
|
-
&[hidden] {
|
|
222
|
-
display: none;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
&[data-layout='tall'] {
|
|
226
|
-
margin-top: 10px;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
&[data-layout='upright'] {
|
|
230
|
-
align-self: stretch;
|
|
231
|
-
margin-top: 8px;
|
|
232
|
-
grid-auto-flow: row;
|
|
233
|
-
grid-auto-rows: minmax(0, 1fr);
|
|
234
|
-
touch-action: pan-x;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/* The chosen option's raised thumb: under it, at its box (see main.tsx),
|
|
239
|
-
its corners the well's less its padding (a pill while it's short);
|
|
240
|
-
white on light glass, a light tint on dark. Moving to another as it's
|
|
241
|
-
chosen, once placed. */
|
|
242
|
-
.uikit-control-cards-segmented-thumb {
|
|
243
|
-
position: absolute;
|
|
244
|
-
top: 0;
|
|
245
|
-
left: 0;
|
|
246
|
-
width: var(--uikit-control-cards-thumb-width, 0);
|
|
247
|
-
height: var(--uikit-control-cards-thumb-height, 0);
|
|
248
|
-
border-radius: calc(var(--uikit-grid-item-radius, 24px) - 9px);
|
|
249
|
-
background-color: light-dark(#fff, rgb(255 255 255 / 22%));
|
|
250
|
-
box-shadow:
|
|
251
|
-
0 1px 3px rgb(0 0 0 / 18%),
|
|
252
|
-
0 0 0 0.5px rgb(0 0 0 / 6%);
|
|
253
|
-
pointer-events: none;
|
|
254
|
-
translate: var(--uikit-control-cards-thumb-x, 0)
|
|
255
|
-
var(--uikit-control-cards-thumb-y, 0);
|
|
256
|
-
|
|
257
|
-
[data-placed] > & {
|
|
258
|
-
transition-duration: 250ms;
|
|
259
|
-
transition-property: translate, width, height;
|
|
260
|
-
transition-timing-function: cubic-bezier(0.3, 0, 0.2, 1);
|
|
261
|
-
|
|
262
|
-
@media (prefers-reduced-motion: reduce) {
|
|
263
|
-
transition-duration: 0s;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/* An option: its words (across a row), its symbol over them (taller), or
|
|
269
|
-
beside them, at the card's padding (upright: the well's 6px, its 3px
|
|
270
|
-
and its own 5px); over the thumb. Chosen, emphasized. */
|
|
271
|
-
.uikit-control-cards-segmented-item {
|
|
272
|
-
--uikit-utils-cursor: attr(cursor type(<custom-ident>), pointer);
|
|
273
|
-
|
|
274
|
-
position: relative;
|
|
275
|
-
display: flex;
|
|
276
|
-
min-width: 0;
|
|
277
|
-
height: 30px;
|
|
278
|
-
box-sizing: border-box;
|
|
279
|
-
align-items: center;
|
|
280
|
-
justify-content: center;
|
|
281
|
-
padding: 0 6px;
|
|
282
|
-
border-radius: calc(var(--uikit-grid-item-radius, 24px) - 9px);
|
|
283
|
-
color: var(--uikit-glass-content);
|
|
284
|
-
font-size: 13px;
|
|
285
|
-
font-variation-settings: 'wght' 510;
|
|
286
|
-
font-weight: round(down, 510, 100);
|
|
287
|
-
gap: 4px;
|
|
288
|
-
outline: none;
|
|
289
|
-
-webkit-tap-highlight-color: transparent;
|
|
290
|
-
|
|
291
|
-
/* (On a layer of its own throughout, as Segmented's items are: the
|
|
292
|
-
thumb sliding under it, WebKit (iOS) would otherwise move it to one
|
|
293
|
-
for the move, snapped to whole pixels, and back after, its symbol
|
|
294
|
-
jumping by a fraction of a pixel each time.) */
|
|
295
|
-
transform: translate3d(0, 0, 0);
|
|
296
|
-
|
|
297
|
-
@media (hover: hover) {
|
|
298
|
-
cursor: var(--uikit-utils-cursor);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
&[data-checked] {
|
|
302
|
-
font-variation-settings: 'wght' 590;
|
|
303
|
-
font-weight: round(down, 590, 100);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
&:focus-visible {
|
|
307
|
-
outline: 2px solid var(--color-ui-primary);
|
|
308
|
-
outline-offset: -2px;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/* (Disabled: dimmed, as Segmented's; no presses (dragged past, see
|
|
312
|
-
main.tsx).) */
|
|
313
|
-
&[data-disabled] {
|
|
314
|
-
opacity: 0.55;
|
|
315
|
-
pointer-events: none;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
/* (Across a row: its symbol beside its words, a little larger. In a
|
|
319
|
-
slot of its own height, its icon centered in it: icons' heights
|
|
320
|
-
differ, its words in the same place in each, whichever.) */
|
|
321
|
-
> .uikit-symbol {
|
|
322
|
-
height: 1.3em;
|
|
323
|
-
align-items: center;
|
|
324
|
-
justify-content: center;
|
|
325
|
-
font-size: 15px;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
/* (Taller: its symbol over its words, at its top, the symbols of all
|
|
329
|
-
of them in a line, with a subtitle or not.) */
|
|
330
|
-
[data-layout='tall'] > & {
|
|
331
|
-
height: auto;
|
|
332
|
-
min-height: 46px;
|
|
333
|
-
flex-direction: column;
|
|
334
|
-
justify-content: flex-start;
|
|
335
|
-
font-size: 11px;
|
|
336
|
-
gap: 2px;
|
|
337
|
-
padding-block: 6px 4px;
|
|
338
|
-
|
|
339
|
-
/* (No symbol: no symbols to line up, its words centered.) */
|
|
340
|
-
&:not(:has(> .uikit-symbol)) {
|
|
341
|
-
justify-content: center;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
> .uikit-symbol {
|
|
345
|
-
font-size: 18px;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/* (Stacked: each a box its subtitle shows in only if it's tall
|
|
350
|
-
enough, see the subtitle.) */
|
|
351
|
-
[data-layout='upright'] > & {
|
|
352
|
-
height: auto;
|
|
353
|
-
justify-content: flex-start;
|
|
354
|
-
padding: 0 5px;
|
|
355
|
-
container: uikit-segment / size;
|
|
356
|
-
font-size: var(--font-ui-subheadline-size);
|
|
357
|
-
gap: 10px;
|
|
358
|
-
|
|
359
|
-
/* (Its symbol only (see `optionContent`): centered, as across.) */
|
|
360
|
-
&:not(:has(> .uikit-control-cards-segmented-text)) {
|
|
361
|
-
justify-content: center;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
> .uikit-symbol {
|
|
365
|
-
width: var(--uikit-card-symbol-width, 28px);
|
|
366
|
-
justify-content: center;
|
|
367
|
-
font-size: 17px;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/* (Stacked, one wide: its symbol over its words, centered, as taller
|
|
372
|
-
across, see above.) */
|
|
373
|
-
[data-layout='upright'][data-narrow] > & {
|
|
374
|
-
flex-direction: column;
|
|
375
|
-
justify-content: center;
|
|
376
|
-
padding: 0 4px;
|
|
377
|
-
font-size: 11px;
|
|
378
|
-
gap: 2px;
|
|
379
|
-
|
|
380
|
-
> .uikit-symbol {
|
|
381
|
-
width: auto;
|
|
382
|
-
font-size: 17px;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
/* An option's words: its label, a subtitle under it (in the card's
|
|
388
|
-
value's color, as small as a stacked option's label allows; across,
|
|
389
|
-
centered, as its label). */
|
|
390
|
-
.uikit-control-cards-segmented-text {
|
|
391
|
-
display: grid;
|
|
392
|
-
min-width: 0;
|
|
393
|
-
max-width: 100%;
|
|
394
|
-
justify-items: start;
|
|
395
|
-
|
|
396
|
-
:is([data-layout='tall'], [data-layout='upright'][data-narrow]) & {
|
|
397
|
-
justify-items: center;
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.uikit-control-cards-segmented-label,
|
|
402
|
-
.uikit-control-cards-segmented-subtitle {
|
|
403
|
-
overflow: hidden;
|
|
404
|
-
max-width: 100%;
|
|
405
|
-
text-overflow: ellipsis;
|
|
406
|
-
white-space: nowrap;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
.uikit-control-cards-segmented-subtitle {
|
|
410
|
-
color: var(--uikit-glass-content-secondary);
|
|
411
|
-
font-size: var(--font-ui-footnote-size);
|
|
412
|
-
font-variation-settings: normal;
|
|
413
|
-
font-weight: normal;
|
|
414
|
-
line-height: var(--font-ui-footnote-line-height);
|
|
415
|
-
|
|
416
|
-
:is([data-layout='tall'], [data-layout='upright'][data-narrow]) & {
|
|
417
|
-
font-size: 10px;
|
|
418
|
-
line-height: 12px;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
/* (Stacked, a subtitle only where its option is tall enough: beside its
|
|
423
|
-
symbol, its label's line and its own; one wide, under its symbol (its
|
|
424
|
-
slot's height) too, and a little room around them.) */
|
|
425
|
-
@container uikit-segment (height < 38px) {
|
|
426
|
-
.uikit-control-cards-segmented-subtitle {
|
|
427
|
-
display: none;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
@container uikit-segment (height < 58px) {
|
|
432
|
-
[data-narrow] .uikit-control-cards-segmented-subtitle {
|
|
433
|
-
display: none;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
/* A value's trend (`ControlCards.Value`'s `trend`): an arrow after it,
|
|
438
|
-
turned by its angle (a transform, not a layer change: it may turn in a
|
|
439
|
-
scroller). */
|
|
440
|
-
.uikit-control-cards-trend {
|
|
441
|
-
display: inline-block;
|
|
442
|
-
font-size: 0.8em;
|
|
443
|
-
line-height: 0;
|
|
444
|
-
margin-inline-start: 0.25em;
|
|
445
|
-
rotate: calc(-1deg * var(--uikit-control-cards-trend, 0));
|
|
446
|
-
transition: rotate 600ms;
|
|
447
|
-
vertical-align: middle;
|
|
448
|
-
|
|
449
|
-
/* (Mirrored, pointing back: turned the other way to rise.) */
|
|
450
|
-
&:dir(rtl) {
|
|
451
|
-
rotate: calc(1deg * var(--uikit-control-cards-trend, 0));
|
|
452
|
-
scale: -1 1;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
/* A card's own controls (a progress bar, see `ControlCards.Progress`):
|
|
457
|
-
between its top row and its title, centered in their room. */
|
|
458
|
-
.uikit-control-cards-controls {
|
|
459
|
-
/* (A progress bar as long as its room, however short: not its least
|
|
460
|
-
length, see Progress.) */
|
|
461
|
-
--uikit-progress-min-length: 0px;
|
|
462
|
-
|
|
463
|
-
display: grid;
|
|
464
|
-
min-width: 0;
|
|
465
|
-
min-height: 0;
|
|
466
|
-
align-content: center;
|
|
467
|
-
align-self: stretch;
|
|
468
|
-
gap: 10px;
|
|
469
|
-
grid-column: 1 / -1;
|
|
470
|
-
grid-row: 2;
|
|
471
|
-
margin-block: 8px 14px;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/* (In a wide card one row tall, no room between its top row and its
|
|
475
|
-
title: beside its title and value instead, at its trailing end, as
|
|
476
|
-
wide as fits; they keep to their column.) */
|
|
477
|
-
@container uikit-card (aspect-ratio > 1.5) and (height < 160px) {
|
|
478
|
-
.uikit-control-cards-controls {
|
|
479
|
-
width: clamp(48px, 28cqi, 120px);
|
|
480
|
-
align-self: center;
|
|
481
|
-
margin: 0;
|
|
482
|
-
grid-column: 2;
|
|
483
|
-
grid-row: 3 / span 2;
|
|
484
|
-
margin-inline-start: 8px;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
.uikit-card-layout:has(> .uikit-control-cards-controls)
|
|
488
|
-
> :is(.uikit-card-title, .uikit-card-value) {
|
|
489
|
-
grid-column: 1;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
1
|
+
/* ControlCards (see main.tsx): ready-made cards, composed of Card's parts
|
|
2
|
+
(their look Card's, see card/style.css). What they add of their own. */
|
|
@@ -5,8 +5,13 @@ import '../typography/style.css';
|
|
|
5
5
|
import './style.css';
|
|
6
6
|
import { FunctionComponent, ReactNode } from 'react';
|
|
7
7
|
import { ButtonRootProps } from '../button/main.js';
|
|
8
|
-
import type { CalendarFooter, CalendarMessageProps, CalendarProps, DatePickerExpandableProps, DatePickerProps, TimeRollProps } from './props.js';
|
|
9
|
-
export type { CalendarFooter, CalendarMessageProps, CalendarProps, CalendarSwipe, DatePickerChangeEventDetails, DatePickerExpandableProps, DatePickerMode, DatePickerOpen, DatePickerOpenChangeEventDetails, DatePickerProps, DatePickerStyle, DateRange, DayHighlight, DayHighlights, HourCycle, TimeRollProps, } from './props.js';
|
|
8
|
+
import type { CalendarFooter, CalendarMessageProps, CalendarProps, DatePickerExpandableProps, DatePickerLabels, DatePickerProps, TimeRollProps } from './props.js';
|
|
9
|
+
export type { CalendarFooter, CalendarMessageProps, CalendarProps, CalendarSwipe, DatePickerCalendarLabels, DatePickerChangeEventDetails, DatePickerExpandableProps, DatePickerLabels, DatePickerMode, DatePickerOpen, DatePickerOpenChangeEventDetails, DatePickerOwnLabels, DatePickerProps, DatePickerStyle, DatePickerTimeLabels, DateRange, DayHighlight, DayHighlights, HourCycle, TimeRollProps, } from './props.js';
|
|
10
|
+
/**
|
|
11
|
+
* A picker's built-in words, for assistive technology (English): the
|
|
12
|
+
* defaults of every part's `…Label` props (see `DatePickerLabels`).
|
|
13
|
+
*/
|
|
14
|
+
export declare const datePickerLabels: Required<DatePickerLabels>;
|
|
10
15
|
export { DatePickerHandle, useCreateDatePickerHandle } from './handle.js';
|
|
11
16
|
export declare const DatePicker: {
|
|
12
17
|
Root: FunctionComponent<DatePickerProps>;
|
|
@@ -27,7 +32,7 @@ export declare const DatePicker: {
|
|
|
27
32
|
calendar: CalendarFooter;
|
|
28
33
|
/**
|
|
29
34
|
* The row's title.
|
|
30
|
-
* @default
|
|
35
|
+
* @default its picker's `timeLabel` (see `datePickerLabels`)
|
|
31
36
|
*/
|
|
32
37
|
label?: ReactNode;
|
|
33
38
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/main.tsx"],"names":[],"mappings":"AACA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAIrB,OAAO,EAML,iBAAiB,EAIjB,SAAS,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/main.tsx"],"names":[],"mappings":"AACA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAIrB,OAAO,EAML,iBAAiB,EAIjB,SAAS,EASV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAU,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQ5D,OAAO,KAAK,EACV,cAAc,EAEd,oBAAoB,EACpB,aAAa,EAGb,yBAAyB,EACzB,gBAAgB,EAIhB,eAAe,EAMf,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EACzB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,gCAAgC,EAChC,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,SAAS,EACT,YAAY,EACZ,aAAa,EACb,SAAS,EACT,aAAa,GACd,MAAM,YAAY,CAAC;AA6EpB;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,CAWvD,CAAC;AAq2DF,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE1E,eAAO,MAAM,UAAU;;;;;gBAzkBqC,MAAM;;;;;;gBAhrCtD,eAAe,CAAC,aAAa,CAAC;;;;;kBAspC9B,cAAc;QACxB;;;WAGG;gBACK,SAAS;;;;;;CAwmBlB,CAAC"}
|