@mrpelz/uikit-ish 7.8.0 → 7.10.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/main.d.ts +12 -0
- package/dist/components/accordion/main.d.ts.map +1 -0
- package/dist/components/accordion/main.js +20 -0
- package/dist/components/accordion/main.js.map +1 -0
- package/dist/components/accordion/style.css +23 -0
- package/dist/components/action-sheet/main.d.ts +22 -16
- package/dist/components/action-sheet/main.d.ts.map +1 -1
- package/dist/components/action-sheet/main.js +89 -19
- package/dist/components/action-sheet/main.js.map +1 -1
- package/dist/components/action-sheet/props.d.ts +17 -5
- package/dist/components/action-sheet/props.d.ts.map +1 -1
- package/dist/components/action-sheet/style.css +24 -0
- package/dist/components/activity-view/main.d.ts +15 -4
- package/dist/components/activity-view/main.d.ts.map +1 -1
- package/dist/components/activity-view/main.js +27 -14
- package/dist/components/activity-view/main.js.map +1 -1
- package/dist/components/activity-view/props.d.ts +2 -10
- package/dist/components/activity-view/props.d.ts.map +1 -1
- package/dist/components/activity-view/style.css +29 -67
- package/dist/components/alert/main.d.ts +8 -7
- package/dist/components/alert/main.d.ts.map +1 -1
- package/dist/components/alert/main.js +32 -19
- package/dist/components/alert/main.js.map +1 -1
- package/dist/components/alert/props.d.ts +13 -2
- package/dist/components/alert/props.d.ts.map +1 -1
- package/dist/components/alert/style.css +36 -50
- package/dist/components/avatar/main.d.ts +5 -3
- package/dist/components/avatar/main.d.ts.map +1 -1
- package/dist/components/avatar/main.js +10 -8
- package/dist/components/avatar/main.js.map +1 -1
- package/dist/components/avatar/props.d.ts +4 -0
- package/dist/components/avatar/props.d.ts.map +1 -1
- package/dist/components/avatar/style.css +1 -7
- package/dist/components/badge/main.d.ts +3 -3
- package/dist/components/badge/main.d.ts.map +1 -1
- package/dist/components/badge/main.js +9 -9
- package/dist/components/badge/main.js.map +1 -1
- package/dist/components/badge/props.d.ts +4 -3
- package/dist/components/badge/props.d.ts.map +1 -1
- package/dist/components/badge/style.css +10 -4
- package/dist/components/button/main.d.ts.map +1 -1
- package/dist/components/button/main.js +15 -15
- package/dist/components/button/main.js.map +1 -1
- package/dist/components/button/props.d.ts +8 -8
- package/dist/components/button/props.d.ts.map +1 -1
- package/dist/components/button/style.css +37 -55
- package/dist/components/checkbox/main.d.ts.map +1 -1
- package/dist/components/checkbox/main.js +5 -7
- package/dist/components/checkbox/main.js.map +1 -1
- package/dist/components/checkbox/style.css +5 -8
- package/dist/components/collapsible/main.d.ts +9 -0
- package/dist/components/collapsible/main.d.ts.map +1 -0
- package/dist/components/collapsible/main.js +19 -0
- package/dist/components/collapsible/main.js.map +1 -0
- package/dist/components/collapsible/style.css +23 -0
- package/dist/components/color-picker/main.d.ts +27 -4
- package/dist/components/color-picker/main.d.ts.map +1 -1
- package/dist/components/color-picker/main.js +292 -110
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/props.d.ts +64 -15
- package/dist/components/color-picker/props.d.ts.map +1 -1
- package/dist/components/color-picker/style.css +133 -65
- package/dist/components/contextual-menu/main.d.ts +11 -7
- package/dist/components/contextual-menu/main.d.ts.map +1 -1
- package/dist/components/contextual-menu/main.js +207 -202
- package/dist/components/contextual-menu/main.js.map +1 -1
- package/dist/components/contextual-menu/props.d.ts +21 -34
- package/dist/components/contextual-menu/props.d.ts.map +1 -1
- package/dist/components/contextual-menu/style.css +63 -34
- package/dist/components/date-picker/handle.d.ts +41 -0
- package/dist/components/date-picker/handle.d.ts.map +1 -0
- package/dist/components/date-picker/handle.js +47 -0
- package/dist/components/date-picker/handle.js.map +1 -0
- package/dist/components/date-picker/main.d.ts +31 -49
- package/dist/components/date-picker/main.d.ts.map +1 -1
- package/dist/components/date-picker/main.js +373 -178
- package/dist/components/date-picker/main.js.map +1 -1
- package/dist/components/date-picker/pager.d.ts +24 -0
- package/dist/components/date-picker/pager.d.ts.map +1 -0
- package/dist/components/date-picker/pager.js +307 -0
- package/dist/components/date-picker/pager.js.map +1 -0
- package/dist/components/date-picker/props.d.ts +98 -27
- package/dist/components/date-picker/props.d.ts.map +1 -1
- package/dist/components/date-picker/style.css +110 -118
- package/dist/components/drawer/main.d.ts +31 -0
- package/dist/components/drawer/main.d.ts.map +1 -0
- package/dist/components/drawer/main.js +119 -0
- package/dist/components/drawer/main.js.map +1 -0
- package/dist/components/drawer/props.d.ts +39 -0
- package/dist/components/drawer/props.d.ts.map +1 -0
- package/dist/components/drawer/props.js +2 -0
- package/dist/components/drawer/props.js.map +1 -0
- package/dist/components/drawer/style.css +135 -0
- package/dist/components/edit-menu/main.d.ts +7 -7
- package/dist/components/edit-menu/main.d.ts.map +1 -1
- package/dist/components/edit-menu/main.js +57 -40
- package/dist/components/edit-menu/main.js.map +1 -1
- package/dist/components/edit-menu/props.d.ts +14 -1
- package/dist/components/edit-menu/props.d.ts.map +1 -1
- package/dist/components/edit-menu/style.css +15 -8
- package/dist/components/form/main.d.ts +8 -0
- package/dist/components/form/main.d.ts.map +1 -1
- package/dist/components/form/main.js +18 -5
- package/dist/components/form/main.js.map +1 -1
- package/dist/components/form/props.d.ts +1 -2
- package/dist/components/form/props.d.ts.map +1 -1
- package/dist/components/glass/main.d.ts +1 -1
- package/dist/components/glass/main.js +4 -4
- package/dist/components/glass/main.js.map +1 -1
- package/dist/components/glass/props.d.ts +5 -5
- package/dist/components/glass/props.d.ts.map +1 -1
- package/dist/components/glass/style.css +176 -161
- package/dist/components/header/main.d.ts +5 -4
- package/dist/components/header/main.d.ts.map +1 -1
- package/dist/components/header/main.js +64 -34
- package/dist/components/header/main.js.map +1 -1
- package/dist/components/header/props.d.ts +2 -3
- package/dist/components/header/props.d.ts.map +1 -1
- package/dist/components/header/style.css +46 -65
- package/dist/components/index.d.ts +27 -23
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +17 -13
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/main.d.ts +2 -2
- package/dist/components/layout/main.d.ts.map +1 -1
- package/dist/components/layout/main.js +63 -167
- package/dist/components/layout/main.js.map +1 -1
- package/dist/components/layout/props.d.ts +2 -20
- package/dist/components/layout/props.d.ts.map +1 -1
- package/dist/components/layout/style.css +20 -91
- package/dist/components/list/main.d.ts +58 -10
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +1022 -465
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +211 -21
- package/dist/components/list/props.d.ts.map +1 -1
- package/dist/components/list/reorder.d.ts +146 -0
- package/dist/components/list/reorder.d.ts.map +1 -0
- package/dist/components/list/reorder.js +819 -0
- package/dist/components/list/reorder.js.map +1 -0
- package/dist/components/list/select.d.ts +6 -0
- package/dist/components/list/select.d.ts.map +1 -0
- package/dist/components/list/select.js +141 -0
- package/dist/components/list/select.js.map +1 -0
- package/dist/components/list/style.css +492 -507
- package/dist/components/list/swipe-actions-handle.d.ts +40 -0
- package/dist/components/list/swipe-actions-handle.d.ts.map +1 -0
- package/dist/components/list/swipe-actions-handle.js +51 -0
- package/dist/components/list/swipe-actions-handle.js.map +1 -0
- package/dist/components/menu/main.d.ts +102 -32
- package/dist/components/menu/main.d.ts.map +1 -1
- package/dist/components/menu/main.js +510 -99
- package/dist/components/menu/main.js.map +1 -1
- package/dist/components/menu/props.d.ts +5 -5
- package/dist/components/menu/props.d.ts.map +1 -1
- package/dist/components/menu/style.css +35 -43
- package/dist/components/navigation/main.d.ts +14 -2
- package/dist/components/navigation/main.d.ts.map +1 -1
- package/dist/components/navigation/main.js +437 -119
- package/dist/components/navigation/main.js.map +1 -1
- package/dist/components/navigation/props.d.ts +53 -3
- package/dist/components/navigation/props.d.ts.map +1 -1
- package/dist/components/navigation/style.css +56 -9
- package/dist/components/page/main.d.ts.map +1 -1
- package/dist/components/page/main.js +13 -8
- package/dist/components/page/main.js.map +1 -1
- package/dist/components/page/props.d.ts +8 -0
- package/dist/components/page/props.d.ts.map +1 -1
- package/dist/components/page/style.css +39 -4
- package/dist/components/page-control/main.d.ts +2 -2
- package/dist/components/page-control/main.d.ts.map +1 -1
- package/dist/components/page-control/main.js +66 -32
- package/dist/components/page-control/main.js.map +1 -1
- package/dist/components/page-control/props.d.ts +10 -2
- package/dist/components/page-control/props.d.ts.map +1 -1
- package/dist/components/page-control/style.css +7 -2
- package/dist/components/popover/main.d.ts +11 -6
- package/dist/components/popover/main.d.ts.map +1 -1
- package/dist/components/popover/main.js +63 -38
- package/dist/components/popover/main.js.map +1 -1
- package/dist/components/popover/props.d.ts +7 -6
- package/dist/components/popover/props.d.ts.map +1 -1
- package/dist/components/popover/style.css +54 -4
- package/dist/components/progress/main.d.ts +2 -3
- package/dist/components/progress/main.d.ts.map +1 -1
- package/dist/components/progress/main.js +148 -29
- package/dist/components/progress/main.js.map +1 -1
- package/dist/components/progress/props.d.ts +43 -9
- package/dist/components/progress/props.d.ts.map +1 -1
- package/dist/components/progress/style.css +82 -50
- package/dist/components/roll/main.d.ts +1 -1
- package/dist/components/roll/main.d.ts.map +1 -1
- package/dist/components/roll/main.js +90 -34
- package/dist/components/roll/main.js.map +1 -1
- package/dist/components/roll/props.d.ts +25 -8
- package/dist/components/roll/props.d.ts.map +1 -1
- package/dist/components/roll/style.css +12 -24
- package/dist/components/segmented/main.d.ts.map +1 -1
- package/dist/components/segmented/main.js +47 -30
- package/dist/components/segmented/main.js.map +1 -1
- package/dist/components/segmented/style.css +16 -23
- package/dist/components/sheet/main.d.ts +25 -15
- package/dist/components/sheet/main.d.ts.map +1 -1
- package/dist/components/sheet/main.js +66 -78
- package/dist/components/sheet/main.js.map +1 -1
- package/dist/components/sheet/props.d.ts +37 -3
- package/dist/components/sheet/props.d.ts.map +1 -1
- package/dist/components/sheet/style.css +183 -45
- package/dist/components/sidebar/main.d.ts.map +1 -1
- package/dist/components/sidebar/main.js +9 -13
- package/dist/components/sidebar/main.js.map +1 -1
- package/dist/components/sidebar/style.css +20 -14
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +23 -22
- package/dist/components/slider/main.js.map +1 -1
- package/dist/components/slider/props.d.ts +1 -2
- package/dist/components/slider/props.d.ts.map +1 -1
- package/dist/components/slider/style.css +27 -53
- package/dist/components/stepper/main.d.ts +4 -6
- package/dist/components/stepper/main.d.ts.map +1 -1
- package/dist/components/stepper/main.js +29 -25
- package/dist/components/stepper/main.js.map +1 -1
- package/dist/components/stepper/style.css +12 -16
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +40 -28
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/switch/props.d.ts +7 -5
- package/dist/components/switch/props.d.ts.map +1 -1
- package/dist/components/switch/style.css +40 -17
- package/dist/components/symbol/main.d.ts +2 -2
- package/dist/components/symbol/main.d.ts.map +1 -1
- package/dist/components/symbol/main.js +36 -28
- package/dist/components/symbol/main.js.map +1 -1
- package/dist/components/symbol/props.d.ts +39 -4
- package/dist/components/symbol/props.d.ts.map +1 -1
- package/dist/components/symbol/style.css +26 -5
- package/dist/components/tab-bar/main.d.ts +2 -2
- package/dist/components/tab-bar/main.d.ts.map +1 -1
- package/dist/components/tab-bar/main.js +133 -101
- package/dist/components/tab-bar/main.js.map +1 -1
- package/dist/components/tab-bar/props.d.ts +6 -6
- package/dist/components/tab-bar/props.d.ts.map +1 -1
- package/dist/components/tab-bar/style.css +113 -99
- package/dist/components/text-field/main.d.ts +3 -2
- package/dist/components/text-field/main.d.ts.map +1 -1
- package/dist/components/text-field/main.js +29 -30
- package/dist/components/text-field/main.js.map +1 -1
- package/dist/components/text-field/props.d.ts +23 -1
- package/dist/components/text-field/props.d.ts.map +1 -1
- package/dist/components/text-field/style.css +122 -82
- package/dist/components/toolbar/main.js +27 -27
- package/dist/components/toolbar/main.js.map +1 -1
- package/dist/components/toolbar/props.d.ts +10 -4
- package/dist/components/toolbar/props.d.ts.map +1 -1
- package/dist/components/toolbar/style.css +39 -33
- package/dist/components/tooltip/main.d.ts +10 -9
- package/dist/components/tooltip/main.d.ts.map +1 -1
- package/dist/components/tooltip/main.js +39 -10
- package/dist/components/tooltip/main.js.map +1 -1
- package/dist/components/tooltip/props.d.ts +2 -0
- package/dist/components/tooltip/props.d.ts.map +1 -1
- package/dist/components/tooltip/style.css +16 -16
- package/dist/components/typography/main.d.ts +2 -2
- package/dist/components/typography/main.d.ts.map +1 -1
- package/dist/components/typography/main.js +24 -16
- package/dist/components/typography/main.js.map +1 -1
- package/dist/components/typography/props.d.ts +11 -18
- package/dist/components/typography/props.d.ts.map +1 -1
- package/dist/components/typography/style.css +503 -623
- package/dist/components/utils/main.d.ts +78 -8
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +235 -16
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/utils/props.d.ts +27 -4
- package/dist/components/utils/props.d.ts.map +1 -1
- package/dist/components/utils/style.css +31 -18
- package/dist/components/viewport/edge-effect.d.ts +10 -0
- package/dist/components/viewport/edge-effect.d.ts.map +1 -0
- package/dist/components/viewport/edge-effect.js +100 -0
- package/dist/components/viewport/edge-effect.js.map +1 -0
- package/dist/components/viewport/edge.d.ts +39 -0
- package/dist/components/viewport/edge.d.ts.map +1 -0
- package/dist/components/viewport/edge.js +151 -0
- package/dist/components/viewport/edge.js.map +1 -0
- package/dist/components/viewport/input.d.ts +39 -0
- package/dist/components/viewport/input.d.ts.map +1 -0
- package/dist/components/viewport/input.js +280 -0
- package/dist/components/viewport/input.js.map +1 -0
- package/dist/components/viewport/main.d.ts +47 -9
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +745 -86
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/padding.d.ts +78 -0
- package/dist/components/viewport/padding.d.ts.map +1 -0
- package/dist/components/viewport/padding.js +321 -0
- package/dist/components/viewport/padding.js.map +1 -0
- package/dist/components/viewport/props.d.ts +220 -11
- package/dist/components/viewport/props.d.ts.map +1 -1
- package/dist/components/viewport/style.css +377 -6
- package/dist/main.d.ts +0 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js.map +1 -1
- package/dist/styles.css +318 -302
- package/dist/styles.d.ts +2 -1
- package/dist/styles.d.ts.map +1 -1
- package/dist/styles.js +2 -1
- package/dist/styles.js.map +1 -1
- package/package.json +8 -16
|
@@ -7,6 +7,10 @@ export type AvatarRootProps = Omit<BaseAvatar.Root.Props, 'ref'> & {
|
|
|
7
7
|
*/
|
|
8
8
|
size?: number;
|
|
9
9
|
};
|
|
10
|
+
export type AvatarImageProps = Omit<BaseAvatar.Image.Props, 'ref'> & {
|
|
11
|
+
/** The person's name (or empty, when named otherwise, e.g. beside it). */
|
|
12
|
+
alt?: string;
|
|
13
|
+
};
|
|
10
14
|
export type AvatarFallbackProps = Omit<BaseAvatar.Fallback.Props, 'ref'>;
|
|
11
15
|
export type AvatarGroupProps = ComponentProps<'span'> & {
|
|
12
16
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACjE;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IACtD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACjE;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACnE,0EAA0E;IAC1E,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IACtD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -31,12 +31,6 @@
|
|
|
31
31
|
letter-spacing: 0;
|
|
32
32
|
line-height: 1;
|
|
33
33
|
place-items: center;
|
|
34
|
-
stroke: currentcolor;
|
|
35
|
-
stroke-linejoin: round;
|
|
36
|
-
stroke-width: max(0px, (590 - 400) / 326 * 1px);
|
|
37
|
-
user-select: none;
|
|
38
|
-
|
|
39
|
-
--uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
.uikit-avatar-group {
|
|
@@ -48,7 +42,7 @@
|
|
|
48
42
|
height: var(--uikit-avatar-group-size);
|
|
49
43
|
flex: none;
|
|
50
44
|
border-radius: 50%;
|
|
51
|
-
background-color: var(--color-
|
|
45
|
+
background-color: var(--color-ui-system-fill);
|
|
52
46
|
vertical-align: middle;
|
|
53
47
|
|
|
54
48
|
& > :nth-child(-n + 3 of [data-avatar-part='root']) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './style.css';
|
|
2
2
|
import type { BadgeProps } from './props.js';
|
|
3
|
-
export type { BadgeProps } from './props.js';
|
|
3
|
+
export type { BadgePlacement, BadgeProps } from './props.js';
|
|
4
4
|
/**
|
|
5
|
-
* A badge
|
|
5
|
+
* A badge: a count (or short text) in a capsule, or,
|
|
6
6
|
* without content, a dot; on a `Symbol` (its child), an element's corner,
|
|
7
|
-
* or inline.
|
|
7
|
+
* or inline (`placement`).
|
|
8
8
|
*/
|
|
9
9
|
export declare const Badge: import("preact").FunctionalComponent<import("react").PropsWithoutRef<BadgeProps> & {
|
|
10
10
|
ref?: import("preact").Ref<HTMLSpanElement> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/badge/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAKrB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/badge/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAKrB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAsB7D;;;;GAIG;AACH,eAAO,MAAM,KAAK;;EAmBjB,CAAC"}
|
|
@@ -2,16 +2,16 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import './style.css';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { cn, withStyle } from '../utils/main.js';
|
|
5
|
-
//
|
|
5
|
+
// A capsule 24px high, at
|
|
6
6
|
// least 24px wide (a circle for a digit), 7px from its ends, in system red,
|
|
7
7
|
// its text white, 16px/19px regular. Placed after Framework7's badge: on a
|
|
8
|
-
// symbol (a child of a `Symbol`, e.g. in a
|
|
9
|
-
// in Framework7's size there (16px, its
|
|
10
|
-
// ends);
|
|
11
|
-
// inline (e.g. a list row's detail); any tint.
|
|
8
|
+
// symbol (`placement` 'symbol', a child of a `Symbol`, e.g. in a
|
|
9
|
+
// `Button.Icon` or `TabBar.Icon`), in Framework7's size there (16px, its
|
|
10
|
+
// text 10px semibold, 2px from its ends); on its element's top end corner
|
|
11
|
+
// (e.g. an `Avatar`'s); or inline (e.g. a list row's detail); any tint.
|
|
12
12
|
//
|
|
13
|
-
//
|
|
14
|
-
// - Without content, a dot (10px;
|
|
13
|
+
// Also:
|
|
14
|
+
// - Without content, a dot (10px; Framework7 has none; e.g. an
|
|
15
15
|
// unread indicator): on a symbol, centered on its top end corner; inline,
|
|
16
16
|
// centered with the text (by its cap height).
|
|
17
17
|
// - On a symbol, it starts 5px before its end, 4px above it (Framework7:
|
|
@@ -22,9 +22,9 @@ import { cn, withStyle } from '../utils/main.js';
|
|
|
22
22
|
// button's vibrant content, see `Symbol`).
|
|
23
23
|
// - On a tab collapsing away, it fades with its symbol: no special case.
|
|
24
24
|
/**
|
|
25
|
-
* A badge
|
|
25
|
+
* A badge: a count (or short text) in a capsule, or,
|
|
26
26
|
* without content, a dot; on a `Symbol` (its child), an element's corner,
|
|
27
|
-
* or inline.
|
|
27
|
+
* or inline (`placement`).
|
|
28
28
|
*/
|
|
29
29
|
export const Badge = forwardRef(({ className, placement = 'corner', style, textColor, tint, ...props }, ref) => (_jsx("span", { ref: ref, "data-badge": placement, style: withStyle({
|
|
30
30
|
'--uikit-badge-text-color': textColor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/badge/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKjD,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/badge/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKjD,0BAA0B;AAC1B,4EAA4E;AAC5E,2EAA2E;AAC3E,iEAAiE;AACjE,yEAAyE;AACzE,0EAA0E;AAC1E,wEAAwE;AACxE,EAAE;AACF,QAAQ;AACR,+DAA+D;AAC/D,4EAA4E;AAC5E,gDAAgD;AAChD,yEAAyE;AACzE,iEAAiE;AACjE,2EAA2E;AAC3E,iDAAiD;AACjD,uEAAuE;AACvE,6CAA6C;AAC7C,yEAAyE;AAEzE;;;;GAIG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAC7B,CACE,EAAE,SAAS,EAAE,SAAS,GAAG,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EACrE,GAAG,EACH,EAAE,CAAC,CACH,eACE,GAAG,EAAE,GAAG,gBACI,SAAS,EACrB,KAAK,EAAE,SAAS,CACd;QACE,0BAA0B,EAAE,SAAS;QACrC,oBAAoB,EAAE,IAAI;KAC3B,EACD,KAAK,CACN,KACG,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,SAAS,CAAC,GACvC,CACH,CACF,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
|
+
export type BadgePlacement = 'corner' | 'inline' | 'symbol';
|
|
2
3
|
export type BadgeProps = ComponentProps<'span'> & {
|
|
3
4
|
/**
|
|
4
|
-
* On its element's top end corner (
|
|
5
|
-
*
|
|
5
|
+
* On its element's top end corner (its element positioned, e.g. an
|
|
6
|
+
* `Avatar`), inline, or on a symbol (a child of a `Symbol`, smaller).
|
|
6
7
|
* @default 'corner'
|
|
7
8
|
*/
|
|
8
|
-
placement?:
|
|
9
|
+
placement?: BadgePlacement;
|
|
9
10
|
/**
|
|
10
11
|
* Its text color (e.g. for a light `tint`).
|
|
11
12
|
* @default white
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/badge/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAChD;;;;OAIG;IACH,SAAS,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/badge/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5D,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAChD;;;;OAIG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
justify-content: center;
|
|
18
18
|
padding: var(--uikit-badge-padding, 2.5px 7px);
|
|
19
19
|
border-radius: 100px;
|
|
20
|
-
background-color: var(--uikit-badge-tint, var(--color-
|
|
20
|
+
background-color: var(--uikit-badge-tint, var(--color-ui-system-red));
|
|
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;
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
padding: 0;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
&[data-badge='corner']
|
|
42
|
+
&[data-badge='corner'],
|
|
43
|
+
&[data-badge='symbol'] {
|
|
43
44
|
position: absolute;
|
|
44
45
|
z-index: 1;
|
|
45
46
|
inset-block-start: calc(-1 * var(--uikit-badge-overhang));
|
|
@@ -58,8 +59,13 @@
|
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
/* On a symbol (in a `Symbol`): in Framework7's size there, starting
|
|
61
|
-
before its end, above it (see main.tsx).
|
|
62
|
-
|
|
62
|
+
before its end, above it (see main.tsx). Over the glyph by its order
|
|
63
|
+
(after it), not its own stacking context: z-index'd (a tab's symbol's),
|
|
64
|
+
Safari composited it apart, drawing it over the pressed tab bar's lens
|
|
65
|
+
and the tab dark under it. */
|
|
66
|
+
.uikit-badge[data-badge='symbol'] {
|
|
67
|
+
z-index: auto;
|
|
68
|
+
|
|
63
69
|
--uikit-badge-height: 16px;
|
|
64
70
|
--uikit-badge-font-size: 10px;
|
|
65
71
|
--uikit-badge-line-height: 12px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/button/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAYrB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/button/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAYrB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA0IlD,eAAO,MAAM,MAAM;;;;;;;;;;CAIlB,CAAC"}
|
|
@@ -6,18 +6,18 @@ import { forwardRef } from 'react';
|
|
|
6
6
|
import { GlassBackground, useGlassContext } from '../glass/main.js';
|
|
7
7
|
import { cn, useForwardedRef, useSecondaryClick, withStyle, } from '../utils/main.js';
|
|
8
8
|
const isGlass = (variant) => variant === 'glass' || variant === 'glass-prominent';
|
|
9
|
-
//
|
|
10
|
-
//
|
|
9
|
+
// Buttons (sizes, styles, labels and symbols, enabled and disabled,
|
|
10
|
+
// destructive) and glass buttons (tinted or not, in dim and bright contexts).
|
|
11
11
|
// Labels and symbols are in the Subheadline (small, medium) and Body
|
|
12
12
|
// (large) text styles; glass buttons' labels (17/20px, no tracking) are in
|
|
13
13
|
// none.
|
|
14
14
|
//
|
|
15
|
-
// The padding and line height give the
|
|
16
|
-
//
|
|
17
|
-
//
|
|
15
|
+
// The padding and line height give the heights (small 28px, medium 34px,
|
|
16
|
+
// large 50px), which are also the minimum sizes; glass buttons are 48px high
|
|
17
|
+
// (6px padding around 36px of content).
|
|
18
18
|
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
19
|
+
// A hit region of at least 44×44px, and always a press state: classic
|
|
20
|
+
// buttons follow Framework7
|
|
21
21
|
// (`button-ios.less`: the tint at 15% behind the label, a lighter fill for
|
|
22
22
|
// filled buttons); glass buttons turn into a glass lens like the slider thumb
|
|
23
23
|
// (scaled up, a tinted glow behind, the fill cleared, the lens' edge), and
|
|
@@ -27,23 +27,23 @@ const isGlass = (variant) => variant === 'glass' || variant === 'glass-prominent
|
|
|
27
27
|
// form.
|
|
28
28
|
const Root = forwardRef(({ children, className, context: contextProp, destructive, fill, shape, size, style, textColor, tint, variant = 'borderless', ...props }, forwardedRef) => {
|
|
29
29
|
const ref = useForwardedRef(forwardedRef);
|
|
30
|
-
const
|
|
31
|
-
const context = useGlassContext(ref,
|
|
32
|
-
const
|
|
30
|
+
const isGlassVariant = isGlass(variant);
|
|
31
|
+
const context = useGlassContext(ref, isGlassVariant ? contextProp : undefined);
|
|
32
|
+
const isPressable = Boolean(props.onClick ?? props.onSecondaryClick) ||
|
|
33
33
|
props.type === 'submit' ||
|
|
34
34
|
props.type === 'reset';
|
|
35
35
|
const rootProps = useSecondaryClick({
|
|
36
36
|
...props,
|
|
37
|
-
...(!
|
|
37
|
+
...(!isPressable && props.disabled === undefined && { disabled: true }),
|
|
38
38
|
});
|
|
39
|
-
return (_jsx(BaseButton, { ref: ref, "data-destructive": destructive ? '' : undefined, "data-fill": fill ? '' : undefined, "data-glass-context":
|
|
39
|
+
return (_jsx(BaseButton, { ref: ref, "data-destructive": destructive ? '' : undefined, "data-fill": fill ? '' : undefined, "data-glass-context": isGlassVariant ? (context ?? 'auto') : undefined, "data-shape": shape, "data-size": size, "data-variant": variant, style: withStyle({
|
|
40
40
|
// (`destructive` wins.)
|
|
41
41
|
...((destructive ?? tint) && {
|
|
42
42
|
'--uikit-button-tint': destructive
|
|
43
|
-
? 'var(--color-
|
|
43
|
+
? 'var(--color-ui-system-red)'
|
|
44
44
|
: tint,
|
|
45
45
|
'--uikit-glass-tint': destructive
|
|
46
|
-
? 'var(--color-
|
|
46
|
+
? 'var(--color-ui-system-red)'
|
|
47
47
|
: tint,
|
|
48
48
|
}),
|
|
49
49
|
// (Over the variants'.)
|
|
@@ -51,7 +51,7 @@ const Root = forwardRef(({ children, className, context: contextProp, destructiv
|
|
|
51
51
|
'--uikit-button-blend': 'normal',
|
|
52
52
|
'--uikit-button-color': textColor,
|
|
53
53
|
}),
|
|
54
|
-
}, style), ...rootProps, className: cn('uikit-button-root', className), "data-button-part": "root", children:
|
|
54
|
+
}, style), ...rootProps, className: cn('uikit-button-root', className), "data-button-part": "root", children: isGlassVariant ? (_jsxs(_Fragment, { children: [_jsx(GlassBackground, { kind: "button", tinted: variant === 'glass-prominent' }), _jsx("span", { className: "uikit-button-content", "data-button-part": "content", children: children })] })) : (children) }));
|
|
55
55
|
});
|
|
56
56
|
// (Marked, e.g. for fading a bar's content, see `Header`.)
|
|
57
57
|
const Icon = forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, "data-button-part": "icon", ...props, className: cn('uikit-button-icon', className) })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/button/main.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EACL,EAAE,EACF,eAAe,EACf,iBAAiB,EACjB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAK1B,MAAM,OAAO,GAAG,CAAC,OAAmC,EAAE,EAAE,CACtD,OAAO,KAAK,OAAO,IAAI,OAAO,KAAK,iBAAiB,CAAC;AAEvD,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/button/main.tsx"],"names":[],"mappings":"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"}
|
|
@@ -13,20 +13,20 @@ export type ButtonRootProps = BaseButtonProps & SecondaryClickProps & {
|
|
|
13
13
|
* @default 'pointer' (disabled, also without a click handler: 'not-allowed')
|
|
14
14
|
*/
|
|
15
15
|
cursor?: Properties['cursor'];
|
|
16
|
-
/**
|
|
16
|
+
/** Tints the button red. */
|
|
17
17
|
destructive?: boolean;
|
|
18
18
|
/**
|
|
19
19
|
* Grows to fill the available width (a block, or a flex item sharing a
|
|
20
|
-
* row's free space), its content centered
|
|
20
|
+
* row's free space), its content centered.
|
|
21
21
|
*/
|
|
22
22
|
fill?: boolean;
|
|
23
23
|
/**
|
|
24
24
|
* `circle` is square with a round shape, for symbol-only buttons;
|
|
25
|
-
* `roundedRectangle` has 6px corners (large: 12px;
|
|
26
|
-
*
|
|
25
|
+
* `roundedRectangle` has 6px corners (large: 12px; e.g. a date
|
|
26
|
+
* picker's collapsed buttons, large borderless buttons).
|
|
27
27
|
*/
|
|
28
28
|
shape?: 'capsule' | 'circle' | 'roundedRectangle';
|
|
29
|
-
/**
|
|
29
|
+
/** Its size (not applicable to glass variants, which have one size). */
|
|
30
30
|
size?: 'large' | 'medium' | 'small';
|
|
31
31
|
/**
|
|
32
32
|
* Its text and symbols' color, over its variant's (e.g. for a light
|
|
@@ -34,12 +34,12 @@ export type ButtonRootProps = BaseButtonProps & SecondaryClickProps & {
|
|
|
34
34
|
*/
|
|
35
35
|
textColor?: string;
|
|
36
36
|
/**
|
|
37
|
-
* The button's color (labels, fills, tinted glass;
|
|
38
|
-
*
|
|
37
|
+
* The button's color (labels, fills, tinted glass; e.g. a notes
|
|
38
|
+
* app's yellow). `destructive` wins.
|
|
39
39
|
* @default the primary color
|
|
40
40
|
*/
|
|
41
41
|
tint?: string;
|
|
42
|
-
/**
|
|
42
|
+
/** Its style: classic ones, and glass (tinted or not). */
|
|
43
43
|
variant?: 'bordered' | 'bordered-prominent' | 'bordered-secondary' | 'borderless' | 'glass' | 'glass-prominent';
|
|
44
44
|
};
|
|
45
45
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/button/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,eAAe,GAC3C,mBAAmB,GAAG;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9B,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/button/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,eAAe,GAC3C,mBAAmB,GAAG;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9B,4BAA4B;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,kBAAkB,CAAC;IAClD,wEAAwE;IACxE,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,OAAO,CAAC,EACJ,UAAU,GACV,oBAAoB,GACpB,oBAAoB,GACpB,YAAY,GACZ,OAAO,GACP,iBAAiB,CAAC;CACvB,CAAC"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/* Button (see main.tsx). */
|
|
2
2
|
@layer uikit-ish {
|
|
3
3
|
/*
|
|
4
|
-
*
|
|
5
|
-
* Destructive; Button - Liquid Glass: Tinted, BG Context); see
|
|
6
|
-
* main.tsx. By its props as attributes: `data-fill`, `data-size`,
|
|
4
|
+
* See main.tsx. By its props as attributes: `data-fill`, `data-size`,
|
|
7
5
|
* `data-variant`, `data-destructive`, `data-shape` (in that order: later
|
|
8
6
|
* ones over earlier ones); `tint` and `textColor` as properties (inline).
|
|
9
7
|
*/
|
|
10
8
|
.uikit-button-root {
|
|
11
9
|
--uikit-utils-cursor: attr(cursor type(<custom-ident>), pointer);
|
|
12
|
-
--uikit-button-tint: var(--color-
|
|
10
|
+
--uikit-button-tint: var(--color-ui-primary);
|
|
13
11
|
--uikit-button-background: transparent;
|
|
14
12
|
--uikit-button-background-disabled: var(--uikit-button-background);
|
|
15
13
|
--uikit-button-background-pressed: color-mix(
|
|
@@ -18,14 +16,14 @@
|
|
|
18
16
|
var(--uikit-button-color) 15%
|
|
19
17
|
);
|
|
20
18
|
--uikit-button-color: var(--uikit-button-tint);
|
|
21
|
-
--uikit-button-color-disabled: var(--color-
|
|
19
|
+
--uikit-button-color-disabled: var(--color-ui-tertiary-label);
|
|
22
20
|
--uikit-button-blend: normal;
|
|
23
21
|
--uikit-button-radius: 1000px;
|
|
24
22
|
--uikit-button-size: 34px;
|
|
25
|
-
--uikit-button-icon-font-size: var(--font-
|
|
23
|
+
--uikit-button-icon-font-size: var(--font-ui-subheadline-size);
|
|
26
24
|
--uikit-button-font-weight: 400;
|
|
27
25
|
--uikit-button-icon-font-weight: 400;
|
|
28
|
-
--uikit-button-icon-line-height: var(--font-
|
|
26
|
+
--uikit-button-icon-line-height: var(--font-ui-subheadline-line-height);
|
|
29
27
|
--uikit-glass-outset: 0px;
|
|
30
28
|
|
|
31
29
|
position: relative;
|
|
@@ -43,29 +41,22 @@
|
|
|
43
41
|
background-color: var(--uikit-button-background);
|
|
44
42
|
color: var(--uikit-button-color);
|
|
45
43
|
font-family: inherit;
|
|
46
|
-
font-size: var(--font-
|
|
44
|
+
font-size: var(--font-ui-subheadline-size);
|
|
47
45
|
font-variation-settings: 'wght' var(--uikit-button-font-weight);
|
|
48
46
|
font-weight: round(down, var(--uikit-button-font-weight), 100);
|
|
49
47
|
gap: 4px;
|
|
50
|
-
letter-spacing: var(--font-
|
|
51
|
-
line-height: var(--font-
|
|
52
|
-
stroke: currentcolor;
|
|
53
|
-
stroke-linejoin: round;
|
|
54
|
-
stroke-width: max(0px, (var(--uikit-button-font-weight) - 400) / 326 * 1px);
|
|
48
|
+
letter-spacing: var(--font-ui-subheadline-tracking);
|
|
49
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
55
50
|
text-align: center;
|
|
56
51
|
text-decoration: none;
|
|
57
52
|
text-transform: none;
|
|
58
53
|
transition-duration: 100ms;
|
|
59
54
|
transition-property: background-color;
|
|
55
|
+
-webkit-user-select: none;
|
|
60
56
|
user-select: none;
|
|
61
57
|
vertical-align: middle;
|
|
62
58
|
white-space: nowrap;
|
|
63
59
|
|
|
64
|
-
--uikit-symbol-thinning: max(
|
|
65
|
-
0px,
|
|
66
|
-
(400 - var(--uikit-button-font-weight)) / 326 * 1px
|
|
67
|
-
);
|
|
68
|
-
|
|
69
60
|
@media (hover: hover) {
|
|
70
61
|
cursor: var(--uikit-utils-cursor);
|
|
71
62
|
}
|
|
@@ -78,13 +69,13 @@
|
|
|
78
69
|
|
|
79
70
|
&[data-size='large'] {
|
|
80
71
|
--uikit-button-size: 50px;
|
|
81
|
-
--uikit-button-icon-font-size: var(--font-
|
|
82
|
-
--uikit-button-icon-line-height: var(--font-
|
|
72
|
+
--uikit-button-icon-font-size: var(--font-ui-body-size);
|
|
73
|
+
--uikit-button-icon-line-height: var(--font-ui-body-line-height);
|
|
83
74
|
|
|
84
75
|
padding: 14px 20px;
|
|
85
|
-
font-size: var(--font-
|
|
86
|
-
letter-spacing: var(--font-
|
|
87
|
-
line-height: var(--font-
|
|
76
|
+
font-size: var(--font-ui-body-size);
|
|
77
|
+
letter-spacing: var(--font-ui-body-tracking);
|
|
78
|
+
line-height: var(--font-ui-body-line-height);
|
|
88
79
|
}
|
|
89
80
|
|
|
90
81
|
&[data-size='small'] {
|
|
@@ -96,13 +87,13 @@
|
|
|
96
87
|
|
|
97
88
|
&[data-variant='bordered'],
|
|
98
89
|
&[data-variant='bordered-secondary'] {
|
|
99
|
-
--uikit-button-background: var(--color-
|
|
90
|
+
--uikit-button-background: var(--color-ui-tertiary-system-fill);
|
|
100
91
|
--uikit-button-color: var(--uikit-button-tint);
|
|
101
|
-
--uikit-button-color-disabled: var(--color-
|
|
92
|
+
--uikit-button-color-disabled: var(--color-ui-tertiary-label);
|
|
102
93
|
}
|
|
103
94
|
|
|
104
95
|
&[data-variant='bordered-secondary'] {
|
|
105
|
-
--uikit-button-color: var(--color-
|
|
96
|
+
--uikit-button-color: var(--color-ui-label);
|
|
106
97
|
}
|
|
107
98
|
|
|
108
99
|
&[data-variant='bordered'][data-destructive],
|
|
@@ -162,12 +153,12 @@
|
|
|
162
153
|
box-shadow: 0 0 40px 15px
|
|
163
154
|
color-mix(
|
|
164
155
|
in srgb,
|
|
165
|
-
var(--uikit-glass-tint, var(--glass-
|
|
156
|
+
var(--uikit-glass-tint, var(--glass-ui-tint)) 75%,
|
|
166
157
|
transparent
|
|
167
158
|
);
|
|
168
159
|
content: '';
|
|
169
160
|
opacity: var(--uikit-glass-pressed, 0);
|
|
170
|
-
transition-duration: var(--glass-
|
|
161
|
+
transition-duration: var(--glass-ui-lens-duration);
|
|
171
162
|
}
|
|
172
163
|
}
|
|
173
164
|
|
|
@@ -203,11 +194,11 @@
|
|
|
203
194
|
&:not([data-size]) {
|
|
204
195
|
--uikit-button-icon-font-size: var(
|
|
205
196
|
--uikit-button-plain-size,
|
|
206
|
-
var(--font-
|
|
197
|
+
var(--font-ui-subheadline-size)
|
|
207
198
|
);
|
|
208
199
|
--uikit-button-icon-line-height: var(
|
|
209
200
|
--uikit-button-plain-line-height,
|
|
210
|
-
var(--font-
|
|
201
|
+
var(--font-ui-subheadline-line-height)
|
|
211
202
|
);
|
|
212
203
|
--uikit-button-icon-font-weight: var(
|
|
213
204
|
--uikit-button-plain-symbol-weight,
|
|
@@ -224,16 +215,16 @@
|
|
|
224
215
|
|
|
225
216
|
font-size: var(
|
|
226
217
|
--uikit-button-plain-size,
|
|
227
|
-
var(--font-
|
|
218
|
+
var(--font-ui-subheadline-size)
|
|
228
219
|
);
|
|
229
220
|
gap: var(--uikit-button-plain-gap, 4px);
|
|
230
221
|
letter-spacing: var(
|
|
231
222
|
--uikit-button-plain-tracking,
|
|
232
|
-
var(--font-
|
|
223
|
+
var(--font-ui-subheadline-tracking)
|
|
233
224
|
);
|
|
234
225
|
line-height: var(
|
|
235
226
|
--uikit-button-plain-line-height,
|
|
236
|
-
var(--font-
|
|
227
|
+
var(--font-ui-subheadline-line-height)
|
|
237
228
|
);
|
|
238
229
|
margin-inline-end: var(--uikit-button-plain-margin-end, 0);
|
|
239
230
|
padding-inline: var(--uikit-button-plain-padding-inline, 14px);
|
|
@@ -263,20 +254,22 @@
|
|
|
263
254
|
inset: min(0px, calc(50% - 22px));
|
|
264
255
|
}
|
|
265
256
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
--uikit-button-content-scale: var(--glass-ios-lens-content-scale);
|
|
270
|
-
|
|
271
|
-
background-color: var(--uikit-button-background-pressed);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
&[data-disabled] {
|
|
257
|
+
/* Disabled (Base UI's), or by a disabled fieldset around it (native). */
|
|
258
|
+
&[data-disabled],
|
|
259
|
+
&:disabled {
|
|
275
260
|
--uikit-utils-cursor: attr(cursor type(<custom-ident>), not-allowed);
|
|
276
261
|
|
|
277
262
|
background-color: var(--uikit-button-background-disabled);
|
|
278
263
|
color: var(--uikit-button-color-disabled);
|
|
279
264
|
}
|
|
265
|
+
|
|
266
|
+
&:active:not([data-disabled], :disabled) {
|
|
267
|
+
--uikit-glass-pressed: 1;
|
|
268
|
+
--uikit-glass-scale: var(--glass-ui-lens-scale);
|
|
269
|
+
--uikit-button-content-scale: var(--glass-ui-lens-content-scale);
|
|
270
|
+
|
|
271
|
+
background-color: var(--uikit-button-background-pressed);
|
|
272
|
+
}
|
|
280
273
|
}
|
|
281
274
|
|
|
282
275
|
/* Blended and scaled as a whole; with symbols, its parts are (a symbol:
|
|
@@ -293,7 +286,7 @@
|
|
|
293
286
|
gap: inherit;
|
|
294
287
|
mix-blend-mode: var(--uikit-symbol-blend);
|
|
295
288
|
scale: var(--uikit-symbol-scale);
|
|
296
|
-
transition-duration: var(--glass-
|
|
289
|
+
transition-duration: var(--glass-ui-lens-duration);
|
|
297
290
|
transition-property: scale;
|
|
298
291
|
|
|
299
292
|
&:has(.uikit-symbol) {
|
|
@@ -303,7 +296,7 @@
|
|
|
303
296
|
& > :not(:has(.uikit-symbol)) {
|
|
304
297
|
mix-blend-mode: var(--uikit-symbol-blend);
|
|
305
298
|
scale: var(--uikit-symbol-scale);
|
|
306
|
-
transition: scale var(--glass-
|
|
299
|
+
transition: scale var(--glass-ui-lens-duration);
|
|
307
300
|
}
|
|
308
301
|
}
|
|
309
302
|
}
|
|
@@ -317,17 +310,6 @@
|
|
|
317
310
|
font-variation-settings: 'wght' var(--uikit-button-icon-font-weight);
|
|
318
311
|
font-weight: round(down, var(--uikit-button-icon-font-weight), 100);
|
|
319
312
|
line-height: var(--uikit-button-icon-line-height);
|
|
320
|
-
stroke: currentcolor;
|
|
321
|
-
stroke-linejoin: round;
|
|
322
|
-
stroke-width: max(
|
|
323
|
-
0px,
|
|
324
|
-
(var(--uikit-button-icon-font-weight) - 400) / 326 * 1px
|
|
325
|
-
);
|
|
326
|
-
|
|
327
|
-
--uikit-symbol-thinning: max(
|
|
328
|
-
0px,
|
|
329
|
-
(400 - var(--uikit-button-icon-font-weight)) / 326 * 1px
|
|
330
|
-
);
|
|
331
313
|
}
|
|
332
314
|
|
|
333
315
|
.uikit-button-label {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAKrB,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEpE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAKrB,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEpE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAcpE,eAAO,MAAM,KAAK,QAAO,SAexB,CAAC;AAgEF,eAAO,MAAM,QAAQ;;;;;CAGpB,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;CAGjB,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,aAAa,oKAAoB,CAAC;AAE/C,yCAAyC;AACzC,eAAO,MAAM,UAAU,4EAAiB,CAAC"}
|
|
@@ -6,19 +6,17 @@ import { Radio as BaseRadio } from '@base-ui/react/radio';
|
|
|
6
6
|
import { RadioGroup as BaseRadioGroup } from '@base-ui/react/radio-group';
|
|
7
7
|
import { forwardRef } from 'react';
|
|
8
8
|
import { cn } from '../utils/main.js';
|
|
9
|
-
// Source: Apple iOS 26 Figma (“_Edit Buttons”, State=Selected/Unselected):
|
|
10
9
|
// 22px circles, unselected with a 1.5px `systemGray3` border, selected in
|
|
11
|
-
// the tint with a white checkmark
|
|
12
|
-
//
|
|
13
|
-
// Framework7's iOS checkboxes are (`checkbox-ios.less`); mixed
|
|
10
|
+
// the tint with a white checkmark, as lists select rows (editing), and as
|
|
11
|
+
// Framework7's iOS theme's checkboxes are (`checkbox-ios.less`); mixed
|
|
14
12
|
// (indeterminate), a dash (Framework7). Base UI checkboxes and radios (a
|
|
15
13
|
// button, with a hidden input for forms), also used by `List` (`Checkbox`,
|
|
16
14
|
// `Radio`).
|
|
17
15
|
//
|
|
18
|
-
//
|
|
19
|
-
// - Radios are circles too (Framework7 iOS: a checkmark only, as
|
|
16
|
+
// Also:
|
|
17
|
+
// - Radios are circles too (Framework7's iOS theme: a checkmark only, as
|
|
20
18
|
// `List.Checkmark`).
|
|
21
|
-
// - The hit area is 44px
|
|
19
|
+
// - The hit area is 44px, centered.
|
|
22
20
|
export const Check = () => (_jsx("svg", { "aria-hidden": "true", "data-glyph": "check", fill: "none", height: "1em", stroke: "currentcolor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", viewBox: "0 0 17 17", width: "1em", children: _jsx("path", { d: "M2 9l4.5 5L15.2 1.5" }) }));
|
|
23
21
|
const Dash = () => (_jsx("svg", { "aria-hidden": "true", "data-glyph": "dash", fill: "none", height: "1em", stroke: "currentcolor", strokeLinecap: "round", strokeWidth: "2", viewBox: "0 0 17 17", width: "1em", children: _jsx("path", { d: "M3.5 8.5h10" }) }));
|
|
24
22
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/checkbox/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAa,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAKtC,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/checkbox/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAa,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAKtC,0EAA0E;AAC1E,0EAA0E;AAC1E,uEAAuE;AACvE,yEAAyE;AACzE,2EAA2E;AAC3E,YAAY;AACZ,EAAE;AACF,QAAQ;AACR,yEAAyE;AACzE,uBAAuB;AACvB,oCAAoC;AAEpC,MAAM,CAAC,MAAM,KAAK,GAAG,GAAc,EAAE,CAAC,CACpC,6BACc,MAAM,gBACP,OAAO,EAClB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,KAAK,EACZ,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,GAAG,EACf,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,KAAK,YAEX,eAAM,CAAC,EAAC,qBAAqB,GAAG,GAC5B,CACP,CAAC;AAEF,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,CACjB,6BACc,MAAM,gBACP,MAAM,EACjB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,KAAK,EACZ,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,WAAW,EAAC,GAAG,EACf,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,KAAK,YAEX,eAAM,CAAC,EAAC,aAAa,GAAG,GACpB,CACP,CAAC;AAEF;;;GAGG;AACH,MAAM,YAAY,GAAG,UAAU,CAC7B,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC1C,KAAC,YAAY,CAAC,IAAI,IAChB,GAAG,EAAE,GAAG,KACJ,KAAK,wBACU,eAAe,EAClC,SAAS,EAAE,EAAE,CACX,yDAAyD,EACzD,SAAS,CACV,YAEA,QAAQ,IAAI,CACX,MAAC,YAAY,CAAC,SAAS,eACrB,KAAC,KAAK,KAAG,EACT,KAAC,IAAI,KAAG,IACe,CAC1B,GACiB,CACrB,CACF,CAAC;AAEF,+EAA+E;AAC/E,MAAM,SAAS,GAAG,UAAU,CAC1B,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC1C,KAAC,SAAS,CAAC,IAAI,IACb,GAAG,EAAE,GAAG,KACJ,KAAK,wBACU,eAAe,EAClC,SAAS,EAAE,EAAE,CACX,yDAAyD,EACzD,SAAS,CACV,YAEA,QAAQ,IAAI,CACX,KAAC,SAAS,CAAC,SAAS,cAClB,KAAC,KAAK,KAAG,GACW,CACvB,GACc,CAClB,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,GAAG,YAAY;IACf,IAAI,EAAE,YAAY;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,GAAG,SAAS;IACZ,IAAI,EAAE,SAAS;CAChB,CAAC;AAEF,wEAAwE;AACxE,MAAM,CAAC,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAE/C,yCAAyC;AACzC,MAAM,CAAC,MAAM,UAAU,GAAG,cAAc,CAAC"}
|
|
@@ -12,24 +12,21 @@
|
|
|
12
12
|
font-variation-settings: 'wght' 590;
|
|
13
13
|
font-weight: round(down, 590, 100);
|
|
14
14
|
place-items: center;
|
|
15
|
-
stroke: currentcolor;
|
|
16
|
-
stroke-linejoin: round;
|
|
17
|
-
stroke-width: max(0px, (590 - 400) / 326 * 1px);
|
|
18
|
-
|
|
19
|
-
--uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
|
|
20
15
|
}
|
|
21
16
|
|
|
22
|
-
/*
|
|
17
|
+
/* Selected and unselected (mixed: as selected). */
|
|
23
18
|
.uikit-checkbox-select-circle {
|
|
24
19
|
position: relative;
|
|
25
20
|
flex: none;
|
|
26
21
|
padding: 0;
|
|
27
22
|
border: 1.5px solid
|
|
28
|
-
var(--uikit-checkbox-select-circle-border, var(--color-
|
|
23
|
+
var(--uikit-checkbox-select-circle-border, var(--color-ui-system-gray3));
|
|
29
24
|
margin: 0;
|
|
30
25
|
appearance: none;
|
|
31
26
|
background: none;
|
|
32
27
|
outline-offset: 2px;
|
|
28
|
+
-webkit-user-select: none;
|
|
29
|
+
user-select: none;
|
|
33
30
|
|
|
34
31
|
--uikit-utils-cursor: attr(cursor type(<custom-ident>), pointer);
|
|
35
32
|
|
|
@@ -47,7 +44,7 @@
|
|
|
47
44
|
&[data-checked],
|
|
48
45
|
&[data-indeterminate] {
|
|
49
46
|
border-color: transparent;
|
|
50
|
-
background-color: var(--color-
|
|
47
|
+
background-color: var(--color-ui-primary);
|
|
51
48
|
}
|
|
52
49
|
|
|
53
50
|
&[data-disabled] {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './style.css';
|
|
2
|
+
export declare const Collapsible: {
|
|
3
|
+
Panel: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<Omit<import("@base-ui/react/collapsible").CollapsiblePanelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref">> & {
|
|
4
|
+
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
5
|
+
}>;
|
|
6
|
+
Root: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/collapsible").CollapsibleRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/collapsible").CollapsibleTriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/collapsible/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AA4BrB,eAAO,MAAM,WAAW;;;;;;CAGvB,CAAC"}
|