@mrpelz/uikit-ish 7.13.1 → 7.26.2
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 +1 -1
- package/dist/components/action-sheet/main.d.ts.map +1 -1
- package/dist/components/action-sheet/main.js +9 -6
- package/dist/components/action-sheet/main.js.map +1 -1
- package/dist/components/action-sheet/props.d.ts +2 -1
- package/dist/components/action-sheet/props.d.ts.map +1 -1
- package/dist/components/alert/main.d.ts.map +1 -1
- package/dist/components/alert/main.js +12 -4
- package/dist/components/alert/main.js.map +1 -1
- package/dist/components/alert/props.d.ts +2 -1
- package/dist/components/alert/props.d.ts.map +1 -1
- package/dist/components/alert/style.css +27 -5
- package/dist/components/button/main.js +1 -1
- package/dist/components/button/main.js.map +1 -1
- package/dist/components/button/props.d.ts +3 -2
- package/dist/components/button/props.d.ts.map +1 -1
- package/dist/components/button/style.css +6 -17
- package/dist/components/card/main.d.ts +53 -0
- package/dist/components/card/main.d.ts.map +1 -0
- package/dist/components/card/main.js +286 -0
- package/dist/components/card/main.js.map +1 -0
- package/dist/components/card/props.d.ts +83 -0
- package/dist/components/card/props.d.ts.map +1 -0
- package/dist/components/card/props.js +2 -0
- package/dist/components/card/props.js.map +1 -0
- package/dist/components/card/style.css +900 -0
- package/dist/components/collapsible/style.css +1 -1
- package/dist/components/color-picker/main.d.ts.map +1 -1
- package/dist/components/color-picker/main.js +20 -33
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/style.css +4 -23
- package/dist/components/contextual-menu/main.d.ts +6 -2
- package/dist/components/contextual-menu/main.d.ts.map +1 -1
- package/dist/components/contextual-menu/main.js +67 -43
- package/dist/components/contextual-menu/main.js.map +1 -1
- package/dist/components/contextual-menu/props.d.ts +2 -1
- package/dist/components/contextual-menu/props.d.ts.map +1 -1
- package/dist/components/contextual-menu/style.css +64 -2
- package/dist/components/control-cards/main.d.ts +49 -0
- package/dist/components/control-cards/main.d.ts.map +1 -0
- package/dist/components/control-cards/main.js +835 -0
- package/dist/components/control-cards/main.js.map +1 -0
- package/dist/components/control-cards/props.d.ts +409 -0
- package/dist/components/control-cards/props.d.ts.map +1 -0
- package/dist/components/control-cards/props.js +2 -0
- package/dist/components/control-cards/props.js.map +1 -0
- package/dist/components/control-cards/style.css +492 -0
- package/dist/components/date-picker/main.d.ts.map +1 -1
- package/dist/components/date-picker/main.js +3 -2
- package/dist/components/date-picker/main.js.map +1 -1
- package/dist/components/date-picker/style.css +1 -1
- package/dist/components/drawer/style.css +6 -0
- package/dist/components/edit-menu/main.d.ts +2 -1
- package/dist/components/edit-menu/main.d.ts.map +1 -1
- package/dist/components/edit-menu/main.js +8 -4
- package/dist/components/edit-menu/main.js.map +1 -1
- package/dist/components/glass/backdrop.d.ts +75 -0
- package/dist/components/glass/backdrop.d.ts.map +1 -0
- package/dist/components/glass/backdrop.js +608 -0
- package/dist/components/glass/backdrop.js.map +1 -0
- package/dist/components/glass/gradient.d.ts +17 -0
- package/dist/components/glass/gradient.d.ts.map +1 -0
- package/dist/components/glass/gradient.js +233 -0
- package/dist/components/glass/gradient.js.map +1 -0
- package/dist/components/glass/main.d.ts +60 -6
- package/dist/components/glass/main.d.ts.map +1 -1
- package/dist/components/glass/main.js +100 -122
- package/dist/components/glass/main.js.map +1 -1
- package/dist/components/glass/marker.d.ts +66 -0
- package/dist/components/glass/marker.d.ts.map +1 -0
- package/dist/components/glass/marker.js +268 -0
- package/dist/components/glass/marker.js.map +1 -0
- package/dist/components/glass/props.d.ts +33 -7
- package/dist/components/glass/props.d.ts.map +1 -1
- package/dist/components/glass/style.css +139 -75
- package/dist/components/grid/dashes.d.ts +15 -0
- package/dist/components/grid/dashes.d.ts.map +1 -0
- package/dist/components/grid/dashes.js +37 -0
- package/dist/components/grid/dashes.js.map +1 -0
- package/dist/components/grid/edit.d.ts +11 -0
- package/dist/components/grid/edit.d.ts.map +1 -0
- package/dist/components/grid/edit.js +1066 -0
- package/dist/components/grid/edit.js.map +1 -0
- package/dist/components/grid/handle.d.ts +123 -0
- package/dist/components/grid/handle.d.ts.map +1 -0
- package/dist/components/grid/handle.js +194 -0
- package/dist/components/grid/handle.js.map +1 -0
- package/dist/components/grid/icons.d.ts +40 -0
- package/dist/components/grid/icons.d.ts.map +1 -0
- package/dist/components/grid/icons.js +140 -0
- package/dist/components/grid/icons.js.map +1 -0
- package/dist/components/grid/layout.d.ts +111 -0
- package/dist/components/grid/layout.d.ts.map +1 -0
- package/dist/components/grid/layout.js +1257 -0
- package/dist/components/grid/layout.js.map +1 -0
- package/dist/components/grid/main.d.ts +63 -0
- package/dist/components/grid/main.d.ts.map +1 -0
- package/dist/components/grid/main.js +1894 -0
- package/dist/components/grid/main.js.map +1 -0
- package/dist/components/grid/overlay.d.ts +24 -0
- package/dist/components/grid/overlay.d.ts.map +1 -0
- package/dist/components/grid/overlay.js +312 -0
- package/dist/components/grid/overlay.js.map +1 -0
- package/dist/components/grid/plan.d.ts +78 -0
- package/dist/components/grid/plan.d.ts.map +1 -0
- package/dist/components/grid/plan.js +249 -0
- package/dist/components/grid/plan.js.map +1 -0
- package/dist/components/grid/props.d.ts +509 -0
- package/dist/components/grid/props.d.ts.map +1 -0
- package/dist/components/grid/props.js +2 -0
- package/dist/components/grid/props.js.map +1 -0
- package/dist/components/grid/reshape.d.ts +60 -0
- package/dist/components/grid/reshape.d.ts.map +1 -0
- package/dist/components/grid/reshape.js +214 -0
- package/dist/components/grid/reshape.js.map +1 -0
- package/dist/components/grid/style.css +1293 -0
- package/dist/components/header/main.d.ts.map +1 -1
- package/dist/components/header/main.js +97 -10
- package/dist/components/header/main.js.map +1 -1
- package/dist/components/header/props.d.ts +2 -2
- package/dist/components/header/props.d.ts.map +1 -1
- package/dist/components/header/style.css +28 -43
- package/dist/components/index.d.ts +10 -6
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/island/main.d.ts +2 -2
- package/dist/components/island/main.d.ts.map +1 -1
- package/dist/components/island/main.js +193 -41
- package/dist/components/island/main.js.map +1 -1
- package/dist/components/island/props.d.ts +4 -2
- package/dist/components/island/props.d.ts.map +1 -1
- package/dist/components/island/style.css +50 -3
- package/dist/components/layout/main.d.ts +3 -6
- package/dist/components/layout/main.d.ts.map +1 -1
- package/dist/components/layout/main.js +225 -56
- package/dist/components/layout/main.js.map +1 -1
- package/dist/components/layout/props.d.ts +43 -2
- package/dist/components/layout/props.d.ts.map +1 -1
- package/dist/components/layout/style.css +84 -23
- package/dist/components/list/main.d.ts +3 -3
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +90 -19
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +20 -0
- package/dist/components/list/props.d.ts.map +1 -1
- package/dist/components/list/reorder.d.ts +16 -2
- package/dist/components/list/reorder.d.ts.map +1 -1
- package/dist/components/list/reorder.js.map +1 -1
- package/dist/components/list/style.css +60 -3
- package/dist/components/menu/main.d.ts +9 -5
- package/dist/components/menu/main.d.ts.map +1 -1
- package/dist/components/menu/main.js +87 -9
- package/dist/components/menu/main.js.map +1 -1
- package/dist/components/menu/props.d.ts +14 -0
- package/dist/components/menu/props.d.ts.map +1 -1
- package/dist/components/menu/style.css +3 -1
- package/dist/components/page/main.d.ts.map +1 -1
- package/dist/components/page/main.js +6 -3
- package/dist/components/page/main.js.map +1 -1
- package/dist/components/page/props.d.ts +3 -2
- package/dist/components/page/props.d.ts.map +1 -1
- package/dist/components/page/style.css +8 -4
- package/dist/components/page-control/props.d.ts +3 -3
- package/dist/components/popover/main.d.ts +10 -4
- package/dist/components/popover/main.d.ts.map +1 -1
- package/dist/components/popover/main.js +30 -19
- package/dist/components/popover/main.js.map +1 -1
- package/dist/components/popover/props.d.ts +2 -0
- package/dist/components/popover/props.d.ts.map +1 -1
- package/dist/components/popover/style.css +6 -2
- package/dist/components/progress/style.css +2 -2
- package/dist/components/roll/main.d.ts.map +1 -1
- package/dist/components/roll/main.js +5 -3
- package/dist/components/roll/main.js.map +1 -1
- package/dist/components/segmented/main.d.ts.map +1 -1
- package/dist/components/segmented/main.js +4 -4
- package/dist/components/segmented/main.js.map +1 -1
- package/dist/components/segmented/props.d.ts +5 -2
- package/dist/components/segmented/props.d.ts.map +1 -1
- package/dist/components/segmented/style.css +1 -1
- package/dist/components/settings/main.d.ts +13 -0
- package/dist/components/settings/main.d.ts.map +1 -1
- package/dist/components/settings/main.js +16 -0
- package/dist/components/settings/main.js.map +1 -1
- package/dist/components/settings/props.d.ts +1 -0
- package/dist/components/settings/props.d.ts.map +1 -1
- package/dist/components/sheet/main.d.ts.map +1 -1
- package/dist/components/sheet/main.js +156 -45
- package/dist/components/sheet/main.js.map +1 -1
- package/dist/components/sheet/props.d.ts +4 -2
- package/dist/components/sheet/props.d.ts.map +1 -1
- package/dist/components/sheet/snap.d.ts +54 -0
- package/dist/components/sheet/snap.d.ts.map +1 -1
- package/dist/components/sheet/snap.js +253 -23
- package/dist/components/sheet/snap.js.map +1 -1
- package/dist/components/sheet/style.css +126 -20
- package/dist/components/sidebar/main.d.ts +2 -1
- package/dist/components/sidebar/main.d.ts.map +1 -1
- package/dist/components/sidebar/main.js +18 -6
- package/dist/components/sidebar/main.js.map +1 -1
- package/dist/components/sidebar/props.d.ts +2 -1
- package/dist/components/sidebar/props.d.ts.map +1 -1
- package/dist/components/sidebar/style.css +78 -0
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +51 -9
- package/dist/components/slider/main.js.map +1 -1
- package/dist/components/slider/props.d.ts +1 -0
- package/dist/components/slider/props.d.ts.map +1 -1
- package/dist/components/slider/style.css +9 -0
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +4 -2
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/symbol/main.d.ts.map +1 -1
- package/dist/components/symbol/main.js +5 -1
- package/dist/components/symbol/main.js.map +1 -1
- package/dist/components/symbol/props.d.ts +10 -0
- package/dist/components/symbol/props.d.ts.map +1 -1
- package/dist/components/symbol/style.css +21 -3
- package/dist/components/tab-bar/main.d.ts.map +1 -1
- package/dist/components/tab-bar/main.js +8 -5
- package/dist/components/tab-bar/main.js.map +1 -1
- package/dist/components/tab-bar/props.d.ts +16 -12
- package/dist/components/tab-bar/props.d.ts.map +1 -1
- package/dist/components/tab-bar/style.css +3 -9
- package/dist/components/text-field/main.d.ts.map +1 -1
- package/dist/components/text-field/main.js +6 -3
- package/dist/components/text-field/main.js.map +1 -1
- package/dist/components/text-field/style.css +1 -1
- package/dist/components/toolbar/main.js +1 -1
- package/dist/components/toolbar/main.js.map +1 -1
- package/dist/components/toolbar/props.d.ts +3 -3
- package/dist/components/toolbar/style.css +1 -1
- package/dist/components/tooltip/main.d.ts +6 -1
- package/dist/components/tooltip/main.d.ts.map +1 -1
- package/dist/components/tooltip/main.js +13 -7
- package/dist/components/tooltip/main.js.map +1 -1
- package/dist/components/utils/main.d.ts +31 -2
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +60 -3
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/viewport/current.d.ts +15 -0
- package/dist/components/viewport/current.d.ts.map +1 -0
- package/dist/components/viewport/current.js +74 -0
- package/dist/components/viewport/current.js.map +1 -0
- package/dist/components/viewport/edge-effect.d.ts.map +1 -1
- package/dist/components/viewport/edge-effect.js +52 -24
- package/dist/components/viewport/edge-effect.js.map +1 -1
- package/dist/components/viewport/edge.d.ts +7 -4
- package/dist/components/viewport/edge.d.ts.map +1 -1
- package/dist/components/viewport/edge.js +21 -7
- package/dist/components/viewport/edge.js.map +1 -1
- package/dist/components/viewport/focus-scroll.d.ts +21 -0
- package/dist/components/viewport/focus-scroll.d.ts.map +1 -0
- package/dist/components/viewport/focus-scroll.js +272 -0
- package/dist/components/viewport/focus-scroll.js.map +1 -0
- package/dist/components/viewport/input.d.ts +39 -1
- package/dist/components/viewport/input.d.ts.map +1 -1
- package/dist/components/viewport/input.js +122 -13
- package/dist/components/viewport/input.js.map +1 -1
- package/dist/components/viewport/main.d.ts +16 -1
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +243 -49
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/padding.d.ts +1 -1
- package/dist/components/viewport/padding.d.ts.map +1 -1
- package/dist/components/viewport/padding.js +2 -2
- package/dist/components/viewport/props.d.ts +12 -2
- package/dist/components/viewport/props.d.ts.map +1 -1
- package/dist/components/viewport/status-bar.d.ts +9 -0
- package/dist/components/viewport/status-bar.d.ts.map +1 -0
- package/dist/components/viewport/status-bar.js +131 -0
- package/dist/components/viewport/status-bar.js.map +1 -0
- package/dist/components/viewport/style.css +62 -5
- package/dist/styles.css +123 -198
- package/package.json +5 -4
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
/* ControlCards (see main.tsx): what its cards add to Card's parts. */
|
|
2
|
+
@layer uikit-ish {
|
|
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 +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,EAQV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAU,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAO5D,OAAO,KAAK,EACV,cAAc,EAEd,oBAAoB,EACpB,aAAa,EAGb,yBAAyB,EAIzB,eAAe,EAMf,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,4BAA4B,EAC5B,yBAAyB,EACzB,cAAc,EACd,cAAc,EACd,gCAAgC,EAChC,eAAe,EACf,eAAe,EACf,SAAS,EACT,YAAY,EACZ,aAAa,EACb,SAAS,EACT,aAAa,GACd,MAAM,YAAY,CAAC;
|
|
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,EAQV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAU,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAO5D,OAAO,KAAK,EACV,cAAc,EAEd,oBAAoB,EACpB,aAAa,EAGb,yBAAyB,EAIzB,eAAe,EAMf,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,4BAA4B,EAC5B,yBAAyB,EACzB,cAAc,EACd,cAAc,EACd,gCAAgC,EAChC,eAAe,EACf,eAAe,EACf,SAAS,EACT,YAAY,EACZ,aAAa,EACb,SAAS,EACT,aAAa,GACd,MAAM,YAAY,CAAC;AAo4DpB,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE1E,eAAO,MAAM,UAAU;;;;;gBA3jBqC,MAAM;;;;;;gBA/pCtD,eAAe,CAAC,aAAa,CAAC;;;;;kBAuoC9B,cAAc;QACxB;;;WAGG;gBACK,SAAS;;;;;;CAwlBlB,CAAC"}
|
|
@@ -711,7 +711,7 @@ const CalendarPanel = (props) => {
|
|
|
711
711
|
const neighbour = (shown) => (_jsx("div", { inert: true, "aria-hidden": "true", className: "uikit-date-picker-weeks", "data-date-picker-part": "weeks", children: monthWeeks(shown, weekStart)
|
|
712
712
|
.flat()
|
|
713
713
|
.map((day) => cell(day, shown, false)) }, shown.getTime()));
|
|
714
|
-
return (_jsxs("div", { className: "uikit-date-picker-panel", "data-date-picker-part": "calendar", children: [_jsxs("div", { className: "uikit-date-picker-header", "data-date-picker-part": "header", children: [_jsx("h2", { "aria-live": "polite", className: "uikit-date-picker-month-title", "data-date-picker-part": "month-title", id: titleId, children: _jsxs("button", { "aria-controls": rollId, "aria-expanded": rolled === 'monthYear', className: "uikit-date-picker-title-button", "data-date-picker-part": "title-button", type: "button", onClick: () => toggle('monthYear'), children: [formats.month.format(pager.shown), _jsx(Disclosure, {})] }) }), _jsxs("div", { className: "uikit-date-picker-arrows", "data-date-picker-part": "arrows", hidden: rolled === 'monthYear', children: [_jsx(Button.Root, { "aria-label": "Previous month", className: "uikit-date-picker-arrow", "data-date-picker-part": "arrow", disabled: isPreviousDisabled, shape: "circle", onClick: () => showMonth(addMonths(pager.shown, -1)), children: _jsx(Chevron, { isNext: false }) }), _jsx(Button.Root, { "aria-label": "Next month", className: "uikit-date-picker-arrow", "data-date-picker-part": "arrow", disabled: isNextDisabled, shape: "circle", onClick: () => showMonth(addMonths(pager.shown, 1)), children: _jsx(Chevron, { isNext: true }) })] })] }), _jsxs("div", { ref: bodyRef, className: "uikit-date-picker-body", "data-date-picker-part": "body", "data-rolled": rolled === undefined ? undefined : '', children: [_jsx("div", { "aria-hidden": "true", className: "uikit-date-picker-weekdays", "data-date-picker-part": "weekdays", children: weekdays.map((day) => (_jsx("abbr", { title: formats.weekdayLong.format(day), "data-weekday-highlighted": highlightedWeekdays.includes(day.getDay()) || undefined, children: formats.weekday.format(day) }, day.getDay()))) }), _jsx("div", { ref: pagesRef, className: "uikit-date-picker-pages", "data-date-picker-part": "pages", "data-swipe": swipes, children: pager.months.map((shown) => shown.getTime() === month.getTime() ? (_jsx("div", { ref: daysRef, "aria-label": label, "aria-labelledby": label ? undefined : titleId, className: "uikit-date-picker-weeks", "data-date-picker-part": "weeks", "data-swipe": swipes, role: "group", onKeyDown: onKeyDown,
|
|
714
|
+
return (_jsxs("div", { className: "uikit-date-picker-panel", "data-date-picker-part": "calendar", children: [_jsxs("div", { className: "uikit-date-picker-header", "data-date-picker-part": "header", children: [_jsx("h2", { "aria-live": "polite", className: "uikit-date-picker-month-title", "data-date-picker-part": "month-title", id: titleId, children: _jsxs("button", { "aria-controls": rollId, "aria-expanded": rolled === 'monthYear', className: "uikit-date-picker-title-button", "data-date-picker-part": "title-button", type: "button", onClick: () => toggle('monthYear'), children: [formats.month.format(pager.shown), _jsx(Disclosure, {})] }) }), _jsxs("div", { className: "uikit-date-picker-arrows", "data-date-picker-part": "arrows", hidden: rolled === 'monthYear', children: [_jsx(Button.Root, { "aria-label": "Previous month", className: "uikit-date-picker-arrow", "data-date-picker-part": "arrow", disabled: isPreviousDisabled, shape: "circle", onClick: () => showMonth(addMonths(pager.shown, -1)), children: _jsx(Chevron, { isNext: false }) }), _jsx(Button.Root, { "aria-label": "Next month", className: "uikit-date-picker-arrow", "data-date-picker-part": "arrow", disabled: isNextDisabled, shape: "circle", onClick: () => showMonth(addMonths(pager.shown, 1)), children: _jsx(Chevron, { isNext: true }) })] })] }), _jsxs("div", { ref: bodyRef, className: "uikit-date-picker-body", "data-date-picker-part": "body", "data-rolled": rolled === undefined ? undefined : '', children: [_jsx("div", { "aria-hidden": "true", className: "uikit-date-picker-weekdays", "data-date-picker-part": "weekdays", children: weekdays.map((day) => (_jsx("abbr", { title: formats.weekdayLong.format(day), "data-weekday-highlighted": highlightedWeekdays.includes(day.getDay()) || undefined, children: formats.weekday.format(day) }, day.getDay()))) }), _jsx("div", { ref: pagesRef, className: "uikit-date-picker-pages", "data-date-picker-part": "pages", "data-swipe": swipes, onPointerCancel: onPointerEnd, onPointerDown: onPointerDown, onPointerMove: onPointerMove, onPointerUp: onPointerEnd, children: pager.months.map((shown) => shown.getTime() === month.getTime() ? (_jsx("div", { ref: daysRef, "aria-label": label, "aria-labelledby": label ? undefined : titleId, className: "uikit-date-picker-weeks", "data-date-picker-part": "weeks", "data-swipe": swipes, role: "group", onKeyDown: onKeyDown, onClickCapture: (event) => {
|
|
715
715
|
if (!suppressClick.current)
|
|
716
716
|
return;
|
|
717
717
|
suppressClick.current = false;
|
|
@@ -947,7 +947,8 @@ const Root = (props) => {
|
|
|
947
947
|
/**
|
|
948
948
|
* A date picker's pickers in place (see `Root` `handle`): its calendar and
|
|
949
949
|
* time roll, each in collapsible list rows (`List.CollapsiblePanel`),
|
|
950
|
-
* opened by its buttons; placed after the picker's row. In
|
|
950
|
+
* opened by its buttons; placed after the picker's row. In a
|
|
951
|
+
* `List.AccordionItem` (with its row), one of its items.
|
|
951
952
|
*/
|
|
952
953
|
const Expandable = ({ handle, }) => {
|
|
953
954
|
const { calendar, open, time } = useSyncExternalStore(handle.subscribe, handle.getSnapshot);
|