@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
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
|
|
46
46
|
.uikit-activity-view-title {
|
|
47
47
|
color: var(--color-ui-label);
|
|
48
|
-
font-size:
|
|
49
|
-
font-variation-settings: 'wght' 510;
|
|
50
|
-
font-weight: round(down, 510, 100);
|
|
48
|
+
font-size: var(--font-ui-subheadline-size);
|
|
49
|
+
font-variation-settings: 'wght' calc(510 + var(--uikit-font-weight-boost, 0));
|
|
50
|
+
font-weight: round(down, calc(510 + var(--uikit-font-weight-boost, 0)), 100);
|
|
51
51
|
letter-spacing: -0.23px;
|
|
52
|
-
line-height:
|
|
52
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
53
53
|
|
|
54
54
|
& + [data-activity-view-part='subtitle'] {
|
|
55
55
|
margin-block-start: -11px;
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
color: var(--color-ui-secondary-label);
|
|
61
61
|
font-size: var(--font-ui-footnote-size);
|
|
62
62
|
font-style: normal;
|
|
63
|
-
font-variation-settings: 'wght' var(--font-ui-footnote-weight);
|
|
64
|
-
font-weight: round(down, var(--font-ui-footnote-weight), 100);
|
|
63
|
+
font-variation-settings: 'wght' calc(var(--font-ui-footnote-weight) + var(--uikit-font-weight-boost, 0));
|
|
64
|
+
font-weight: round(down, calc(var(--font-ui-footnote-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
65
65
|
letter-spacing: var(--font-ui-footnote-tracking);
|
|
66
66
|
line-height: var(--font-ui-footnote-line-height);
|
|
67
67
|
}
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
color: var(--color-ui-secondary-label);
|
|
71
71
|
font-size: var(--font-ui-footnote-size);
|
|
72
72
|
font-style: normal;
|
|
73
|
-
font-variation-settings: 'wght' var(--font-ui-footnote-weight);
|
|
74
|
-
font-weight: round(down, var(--font-ui-footnote-weight), 100);
|
|
73
|
+
font-variation-settings: 'wght' calc(var(--font-ui-footnote-weight) + var(--uikit-font-weight-boost, 0));
|
|
74
|
+
font-weight: round(down, calc(var(--font-ui-footnote-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
75
75
|
letter-spacing: var(--font-ui-footnote-tracking);
|
|
76
76
|
line-height: var(--font-ui-footnote-line-height);
|
|
77
77
|
}
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
display: -webkit-box;
|
|
91
91
|
overflow: hidden;
|
|
92
92
|
-webkit-box-orient: vertical;
|
|
93
|
-
font-size:
|
|
93
|
+
font-size: var(--font-ui-caption1-size);
|
|
94
94
|
letter-spacing: 0.06px;
|
|
95
95
|
-webkit-line-clamp: 2;
|
|
96
|
-
line-height:
|
|
96
|
+
line-height: calc(var(--font-ui-caption1-line-height) - 1px);
|
|
97
97
|
|
|
98
98
|
/* With a count (a group's): on one line, truncated. */
|
|
99
99
|
[data-activity-view-part='item']:has(> [data-activity-view-part='count'])
|
|
@@ -107,9 +107,9 @@
|
|
|
107
107
|
|
|
108
108
|
.uikit-activity-view-count {
|
|
109
109
|
color: var(--color-ui-secondary-label);
|
|
110
|
-
font-size:
|
|
110
|
+
font-size: var(--font-ui-caption1-size);
|
|
111
111
|
letter-spacing: 0.06px;
|
|
112
|
-
line-height:
|
|
112
|
+
line-height: calc(var(--font-ui-caption1-line-height) - 1px);
|
|
113
113
|
margin-block-start: -5px;
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
border-radius: 50%;
|
|
155
155
|
background-color: var(--color-ui-tertiary-system-fill);
|
|
156
156
|
font-size: 25px;
|
|
157
|
-
font-variation-settings: 'wght' 300;
|
|
158
|
-
font-weight: round(down, 300, 100);
|
|
157
|
+
font-variation-settings: 'wght' calc(300 + var(--uikit-font-weight-boost, 0));
|
|
158
|
+
font-weight: round(down, calc(300 + var(--uikit-font-weight-boost, 0)), 100);
|
|
159
159
|
place-items: center;
|
|
160
160
|
}
|
|
161
161
|
|
|
@@ -169,11 +169,11 @@
|
|
|
169
169
|
-webkit-box-orient: vertical;
|
|
170
170
|
font-size: var(--font-ui-footnote-size);
|
|
171
171
|
font-style: normal;
|
|
172
|
-
font-variation-settings: 'wght' var(--font-ui-footnote-weight);
|
|
173
|
-
font-weight: round(down, var(--font-ui-footnote-weight), 100);
|
|
172
|
+
font-variation-settings: 'wght' calc(var(--font-ui-footnote-weight) + var(--uikit-font-weight-boost, 0));
|
|
173
|
+
font-weight: round(down, calc(var(--font-ui-footnote-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
174
174
|
letter-spacing: var(--font-ui-footnote-tracking);
|
|
175
175
|
-webkit-line-clamp: 2;
|
|
176
|
-
line-height:
|
|
176
|
+
line-height: calc(var(--font-ui-footnote-line-height) - 3px);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
}
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
margin: 0;
|
|
90
90
|
font-size: var(--font-ui-headline-size);
|
|
91
91
|
font-style: normal;
|
|
92
|
-
font-variation-settings: 'wght' var(--font-ui-headline-weight);
|
|
93
|
-
font-weight: round(down, var(--font-ui-headline-weight), 100);
|
|
92
|
+
font-variation-settings: 'wght' calc(var(--font-ui-headline-weight) + var(--uikit-font-weight-boost, 0));
|
|
93
|
+
font-weight: round(down, calc(var(--font-ui-headline-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
94
94
|
letter-spacing: var(--font-ui-headline-tracking);
|
|
95
95
|
line-height: var(--font-ui-headline-line-height);
|
|
96
96
|
}
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
margin: 0;
|
|
101
101
|
font-size: var(--font-ui-body-size);
|
|
102
102
|
font-style: normal;
|
|
103
|
-
font-variation-settings: 'wght' var(--font-ui-body-weight);
|
|
104
|
-
font-weight: round(down, var(--font-ui-body-weight), 100);
|
|
103
|
+
font-variation-settings: 'wght' calc(var(--font-ui-body-weight) + var(--uikit-font-weight-boost, 0));
|
|
104
|
+
font-weight: round(down, calc(var(--font-ui-body-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
105
105
|
letter-spacing: var(--font-ui-body-tracking);
|
|
106
106
|
line-height: var(--font-ui-body-line-height);
|
|
107
107
|
}
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
font-family: inherit;
|
|
126
126
|
font-size: var(--font-ui-body-size);
|
|
127
127
|
font-style: normal;
|
|
128
|
-
font-variation-settings: 'wght' 510;
|
|
129
|
-
font-weight: round(down, 510, 100);
|
|
128
|
+
font-variation-settings: 'wght' calc(510 + var(--uikit-font-weight-boost, 0));
|
|
129
|
+
font-weight: round(down, calc(510 + var(--uikit-font-weight-boost, 0)), 100);
|
|
130
130
|
letter-spacing: var(--font-ui-body-tracking);
|
|
131
131
|
line-height: var(--font-ui-body-line-height);
|
|
132
132
|
outline-offset: 2px;
|
|
@@ -170,7 +170,9 @@
|
|
|
170
170
|
|
|
171
171
|
.uikit-alert-field {
|
|
172
172
|
min-width: 0;
|
|
173
|
-
|
|
173
|
+
|
|
174
|
+
/* (52px at the default text size, with it: its line and padding.) */
|
|
175
|
+
min-height: calc(var(--font-ui-body-line-height) - 2px + 32px);
|
|
174
176
|
box-sizing: border-box;
|
|
175
177
|
padding: 0 16px;
|
|
176
178
|
border: 0;
|
|
@@ -184,10 +186,10 @@
|
|
|
184
186
|
font-family: inherit;
|
|
185
187
|
font-size: var(--font-ui-body-size);
|
|
186
188
|
font-style: normal;
|
|
187
|
-
font-variation-settings: 'wght' 510;
|
|
188
|
-
font-weight: round(down, 510, 100);
|
|
189
|
+
font-variation-settings: 'wght' calc(510 + var(--uikit-font-weight-boost, 0));
|
|
190
|
+
font-weight: round(down, calc(510 + var(--uikit-font-weight-boost, 0)), 100);
|
|
189
191
|
letter-spacing: var(--font-ui-body-tracking);
|
|
190
|
-
line-height:
|
|
192
|
+
line-height: calc(var(--font-ui-body-line-height) - 2px);
|
|
191
193
|
outline: none;
|
|
192
194
|
|
|
193
195
|
&:last-child {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
background: linear-gradient(#a5abb8, #858994);
|
|
27
27
|
color: #fff;
|
|
28
28
|
font-size: calc(var(--uikit-avatar-size, 70px) * 0.4);
|
|
29
|
-
font-variation-settings: 'wght' 590;
|
|
30
|
-
font-weight: round(down, 590, 100);
|
|
29
|
+
font-variation-settings: 'wght' calc(590 + var(--uikit-font-weight-boost, 0));
|
|
30
|
+
font-weight: round(down, calc(590 + var(--uikit-font-weight-boost, 0)), 100);
|
|
31
31
|
letter-spacing: 0;
|
|
32
32
|
line-height: 1;
|
|
33
33
|
place-items: center;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
color: var(--uikit-badge-text-color, #fff);
|
|
22
22
|
font-size: var(--uikit-badge-font-size, 16px);
|
|
23
23
|
font-variant-numeric: tabular-nums;
|
|
24
|
-
font-weight: var(--uikit-badge-weight, 400);
|
|
24
|
+
font-weight: round(down, calc(var(--uikit-badge-weight, 400) + var(--uikit-font-weight-boost, 0)), 100);
|
|
25
25
|
letter-spacing: 0;
|
|
26
26
|
line-height: var(--uikit-badge-line-height, 19px);
|
|
27
27
|
pointer-events: none;
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
--uikit-button-radius: 1000px;
|
|
22
22
|
--uikit-button-size: 34px;
|
|
23
23
|
--uikit-button-icon-font-size: var(--font-ui-subheadline-size);
|
|
24
|
-
--uikit-button-font-weight: 400;
|
|
25
|
-
--uikit-button-icon-font-weight: 400;
|
|
24
|
+
--uikit-button-font-weight: round(down, calc(400 + var(--uikit-font-weight-boost, 0)), 100);
|
|
25
|
+
--uikit-button-icon-font-weight: round(down, calc(400 + var(--uikit-font-weight-boost, 0)), 100);
|
|
26
26
|
--uikit-button-icon-line-height: var(--font-ui-subheadline-line-height);
|
|
27
27
|
--uikit-glass-outset: 0px;
|
|
28
28
|
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
color: var(--uikit-button-color);
|
|
43
43
|
font-family: inherit;
|
|
44
44
|
font-size: var(--font-ui-subheadline-size);
|
|
45
|
-
font-variation-settings: 'wght' var(--uikit-button-font-weight);
|
|
46
|
-
font-weight: round(down, var(--uikit-button-font-weight), 100);
|
|
45
|
+
font-variation-settings: 'wght' calc(var(--uikit-button-font-weight) + var(--uikit-font-weight-boost, 0));
|
|
46
|
+
font-weight: round(down, calc(var(--uikit-button-font-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
47
47
|
gap: 4px;
|
|
48
48
|
letter-spacing: var(--font-ui-subheadline-tracking);
|
|
49
49
|
line-height: var(--font-ui-subheadline-line-height);
|
|
@@ -131,17 +131,17 @@
|
|
|
131
131
|
--uikit-button-color: var(--uikit-glass-content);
|
|
132
132
|
--uikit-button-color-disabled: var(--uikit-glass-content-disabled);
|
|
133
133
|
--uikit-button-blend: var(--uikit-glass-content-blend);
|
|
134
|
-
--uikit-button-icon-font-size:
|
|
135
|
-
--uikit-button-font-weight: 510;
|
|
136
|
-
--uikit-button-icon-font-weight: 590;
|
|
137
|
-
--uikit-button-icon-line-height:
|
|
134
|
+
--uikit-button-icon-font-size: calc(var(--font-ui-body-size) * 19 / 17);
|
|
135
|
+
--uikit-button-font-weight: round(down, calc(510 + var(--uikit-font-weight-boost, 0)), 100);
|
|
136
|
+
--uikit-button-icon-font-weight: round(down, calc(590 + var(--uikit-font-weight-boost, 0)), 100);
|
|
137
|
+
--uikit-button-icon-line-height: var(--font-ui-body-line-height);
|
|
138
138
|
|
|
139
139
|
padding: 6px 20px;
|
|
140
140
|
font-feature-settings: 'ss16';
|
|
141
|
-
font-size:
|
|
141
|
+
font-size: var(--font-ui-body-size);
|
|
142
142
|
gap: 4px;
|
|
143
143
|
letter-spacing: 0;
|
|
144
|
-
line-height:
|
|
144
|
+
line-height: calc(var(--font-ui-body-line-height) - 2px);
|
|
145
145
|
|
|
146
146
|
&::before {
|
|
147
147
|
position: absolute;
|
|
@@ -296,8 +296,8 @@
|
|
|
296
296
|
align-items: center;
|
|
297
297
|
justify-content: center;
|
|
298
298
|
font-size: var(--uikit-button-icon-font-size);
|
|
299
|
-
font-variation-settings: 'wght' var(--uikit-button-icon-font-weight);
|
|
300
|
-
font-weight: round(down, var(--uikit-button-icon-font-weight), 100);
|
|
299
|
+
font-variation-settings: 'wght' calc(var(--uikit-button-icon-font-weight) + var(--uikit-font-weight-boost, 0));
|
|
300
|
+
font-weight: round(down, calc(var(--uikit-button-icon-font-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
301
301
|
line-height: var(--uikit-button-icon-line-height);
|
|
302
302
|
}
|
|
303
303
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { CardCloseButtonProps, CardExpandButtonProps, CardOpenButtonProps } from './props.js';
|
|
2
|
+
/**
|
|
3
|
+
* A corner button expanding its card's tile in place and making it small
|
|
4
|
+
* again (bottom trailing): its grid item's expansion (see `Grid.Item`'s
|
|
5
|
+
* `expanded`, `expandedSize`). Its icon by where it goes (larger,
|
|
6
|
+
* expanding; smaller, collapsing). Hidden where expanding changes nothing
|
|
7
|
+
* (as its item would be either size now, the same; e.g. too few columns),
|
|
8
|
+
* or outside an item with an expanded size.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ExpandButton: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardExpandButtonProps> & {
|
|
11
|
+
ref?: import("preact").Ref<HTMLButtonElement> | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* Whether a ready-made card holding an open button wants it shown (see
|
|
15
|
+
* ControlCards' `Segmented`: only at its 1x1 size, its options hidden).
|
|
16
|
+
* Internal.
|
|
17
|
+
*/
|
|
18
|
+
export declare const OpenButtonHintContext: import("preact").Context<boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* A corner button opening its card's tile above the page (bottom
|
|
21
|
+
* trailing): its grid item's `open` (see `Grid.Item`). Hidden while it's
|
|
22
|
+
* open (and in a ready-made segmented card, while its options show).
|
|
23
|
+
*/
|
|
24
|
+
export declare const OpenButton: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardOpenButtonProps> & {
|
|
25
|
+
ref?: import("preact").Ref<HTMLButtonElement> | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* A corner button closing its card's tile opened above the page (top
|
|
29
|
+
* trailing, clear of its symbol): its grid item's `open`. Shown only while
|
|
30
|
+
* it's open.
|
|
31
|
+
*/
|
|
32
|
+
export declare const CloseButton: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardCloseButtonProps> & {
|
|
33
|
+
ref?: import("preact").Ref<HTMLButtonElement> | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
//# sourceMappingURL=buttons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../../src/components/card/buttons.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAOpB;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;EA0BvB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,mCAAsB,CAAC;AAEzD;;;;GAIG;AACH,eAAO,MAAM,UAAU;;EAgBtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW;;EAiBvB,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, forwardRef, useContext } from 'react';
|
|
3
|
+
import { measureOf } from '../grid/handle.js';
|
|
4
|
+
import { gridIcons, useGridItem } from '../grid/main.js';
|
|
5
|
+
import { CornerButton } from './root.js';
|
|
6
|
+
// Corner buttons for what's more to a card: expanding its tile in place,
|
|
7
|
+
// opening it above the page, closing it there; each by its grid item's
|
|
8
|
+
// state (its `expanded`, its `open`), shown as it applies.
|
|
9
|
+
/**
|
|
10
|
+
* A corner button expanding its card's tile in place and making it small
|
|
11
|
+
* again (bottom trailing): its grid item's expansion (see `Grid.Item`'s
|
|
12
|
+
* `expanded`, `expandedSize`). Its icon by where it goes (larger,
|
|
13
|
+
* expanding; smaller, collapsing). Hidden where expanding changes nothing
|
|
14
|
+
* (as its item would be either size now, the same; e.g. too few columns),
|
|
15
|
+
* or outside an item with an expanded size.
|
|
16
|
+
*/
|
|
17
|
+
export const ExpandButton = forwardRef(({ onClick, ...props }, ref) => {
|
|
18
|
+
const item = useGridItem();
|
|
19
|
+
const expandedSize = item?.expandedSize;
|
|
20
|
+
const small = item?.sizeOf(item.requested).size;
|
|
21
|
+
const large = expandedSize ? item?.sizeOf(expandedSize).size : undefined;
|
|
22
|
+
const isExpanded = item?.expanded === true;
|
|
23
|
+
const [from, to] = isExpanded ? [large, small] : [small, large];
|
|
24
|
+
const isGrowing = from !== undefined && to !== undefined && measureOf(to) > measureOf(from);
|
|
25
|
+
return (_jsx(CornerButton, { ref: ref, mirrored: true, "aria-expanded": isExpanded, icon: isGrowing ? gridIcons.expand : gridIcons.collapse, visible: large !== undefined && small !== large, ...props, onClick: (event) => {
|
|
26
|
+
item?.setExpanded(!isExpanded);
|
|
27
|
+
onClick?.(event);
|
|
28
|
+
} }));
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* Whether a ready-made card holding an open button wants it shown (see
|
|
32
|
+
* ControlCards' `Segmented`: only at its 1x1 size, its options hidden).
|
|
33
|
+
* Internal.
|
|
34
|
+
*/
|
|
35
|
+
export const OpenButtonHintContext = createContext(true);
|
|
36
|
+
/**
|
|
37
|
+
* A corner button opening its card's tile above the page (bottom
|
|
38
|
+
* trailing): its grid item's `open` (see `Grid.Item`). Hidden while it's
|
|
39
|
+
* open (and in a ready-made segmented card, while its options show).
|
|
40
|
+
*/
|
|
41
|
+
export const OpenButton = forwardRef(({ onClick, ...props }, ref) => {
|
|
42
|
+
const item = useGridItem();
|
|
43
|
+
return (_jsx(CornerButton, { ref: ref, icon: gridIcons.open, visible: useContext(OpenButtonHintContext) && item?.open !== true, ...props, onClick: (event) => {
|
|
44
|
+
item?.setOpen(true);
|
|
45
|
+
onClick?.(event);
|
|
46
|
+
} }));
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* A corner button closing its card's tile opened above the page (top
|
|
50
|
+
* trailing, clear of its symbol): its grid item's `open`. Shown only while
|
|
51
|
+
* it's open.
|
|
52
|
+
*/
|
|
53
|
+
export const CloseButton = forwardRef(({ onClick, ...props }, ref) => {
|
|
54
|
+
const item = useGridItem();
|
|
55
|
+
return (_jsx(CornerButton, { ref: ref, corner: "top-trailing", icon: gridIcons.close, visible: item?.open === true, ...props, onClick: (event) => {
|
|
56
|
+
item?.setOpen(false);
|
|
57
|
+
onClick?.(event);
|
|
58
|
+
} }));
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=buttons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttons.js","sourceRoot":"","sources":["../../../src/components/card/buttons.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { CardChannelProps, CardChannelsProps, CardLight } from './props.js';
|
|
2
|
+
/**
|
|
3
|
+
* What a ready-made card holding channels tells them (see ControlCards'
|
|
4
|
+
* `Light`): whether they're shown (mounted either way, telling it the light
|
|
5
|
+
* they give), and where the light they make goes. Internal.
|
|
6
|
+
*/
|
|
7
|
+
type ChannelsHost = {
|
|
8
|
+
isShown: boolean;
|
|
9
|
+
onLightChange: (light: CardLight) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const ChannelsHostContext: import("preact").Context<ChannelsHost | undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* A card's channels (e.g. a light's red, green and blue): its sliders
|
|
14
|
+
* (`Channel`s, its children), each in a well of its own, stacked at its
|
|
15
|
+
* bottom, whatever its width. The light they make together told as it
|
|
16
|
+
* changes (`onLightChange`: their color, their brightness). In a
|
|
17
|
+
* ready-made light card, shown only while it's large (mounted all the
|
|
18
|
+
* same, unseen, telling it the light they give).
|
|
19
|
+
*/
|
|
20
|
+
export declare const Channels: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardChannelsProps> & {
|
|
21
|
+
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* A channel: Base UI's slider in a well of its own, its thumb round, kept
|
|
25
|
+
* inside it (`thumbAlignment: 'edge'`), filled with the light it gives. An
|
|
26
|
+
* amount (`tint`): filled from its start in its tint as far as its thumb's
|
|
27
|
+
* center (all the way at its ends, sliding there), its thumb its tint mixed
|
|
28
|
+
* on black by its share (in linear light, as light adds up: none, black).
|
|
29
|
+
* A scale (`colors`): its colors along its well, its thumb the color at its
|
|
30
|
+
* value. Its label at its start, its value at its end; the one its thumb
|
|
31
|
+
* would cover sliding to the other end, beside the other, and back once
|
|
32
|
+
* the thumb's clear of it again (covered there too, in its place). Each
|
|
33
|
+
* label's color scheme by one sample
|
|
34
|
+
* under its center (the fill's, by its tint, see `textSchemeOn`; the
|
|
35
|
+
* well's; a scale's color there), its colors read as they or the color
|
|
36
|
+
* scheme change. A press held back until it's a drag along it (a touch
|
|
37
|
+
* across it the page's scroll); then its touch held from the page.
|
|
38
|
+
*/
|
|
39
|
+
export declare const Channel: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardChannelProps> & {
|
|
40
|
+
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=channels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/components/card/channels.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACV,MAAM,YAAY,CAAC;AA4BpB;;;;GAIG;AACH,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CAC3C,CAAC;AACF,eAAO,MAAM,mBAAmB,oDAE/B,CAAC;AAkOF;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ;;EAoDpB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO;;EA0KnB,CAAC"}
|