@mrpelz/uikit-ish 7.9.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/action-sheet/main.d.ts +1 -2
- package/dist/components/action-sheet/main.d.ts.map +1 -1
- package/dist/components/action-sheet/main.js +12 -12
- package/dist/components/action-sheet/main.js.map +1 -1
- package/dist/components/action-sheet/props.d.ts +2 -2
- package/dist/components/action-sheet/props.d.ts.map +1 -1
- package/dist/components/action-sheet/style.css +10 -1
- package/dist/components/activity-view/main.d.ts +1 -1
- package/dist/components/activity-view/main.d.ts.map +1 -1
- package/dist/components/activity-view/main.js +9 -11
- package/dist/components/activity-view/main.js.map +1 -1
- package/dist/components/activity-view/style.css +21 -21
- package/dist/components/alert/main.d.ts +2 -3
- package/dist/components/alert/main.d.ts.map +1 -1
- package/dist/components/alert/main.js +12 -15
- package/dist/components/alert/main.js.map +1 -1
- package/dist/components/alert/props.d.ts +3 -3
- package/dist/components/alert/style.css +23 -23
- package/dist/components/avatar/main.d.ts.map +1 -1
- package/dist/components/avatar/main.js +7 -8
- package/dist/components/avatar/main.js.map +1 -1
- package/dist/components/avatar/style.css +1 -1
- package/dist/components/badge/main.d.ts +1 -1
- package/dist/components/badge/main.js +4 -4
- package/dist/components/badge/main.js.map +1 -1
- package/dist/components/badge/style.css +7 -2
- package/dist/components/button/main.d.ts.map +1 -1
- package/dist/components/button/main.js +9 -9
- 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 +27 -29
- 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 +3 -3
- 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 +265 -90
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/props.d.ts +45 -10
- package/dist/components/color-picker/props.d.ts.map +1 -1
- package/dist/components/color-picker/style.css +124 -38
- package/dist/components/contextual-menu/main.d.ts.map +1 -1
- package/dist/components/contextual-menu/main.js +189 -236
- package/dist/components/contextual-menu/main.js.map +1 -1
- package/dist/components/contextual-menu/props.d.ts +10 -33
- package/dist/components/contextual-menu/props.d.ts.map +1 -1
- package/dist/components/contextual-menu/style.css +60 -34
- package/dist/components/date-picker/main.d.ts.map +1 -1
- package/dist/components/date-picker/main.js +100 -66
- package/dist/components/date-picker/main.js.map +1 -1
- package/dist/components/date-picker/props.d.ts +10 -10
- package/dist/components/date-picker/props.d.ts.map +1 -1
- package/dist/components/date-picker/style.css +51 -47
- package/dist/components/drawer/main.d.ts.map +1 -1
- package/dist/components/drawer/main.js +52 -7
- package/dist/components/drawer/main.js.map +1 -1
- package/dist/components/drawer/style.css +1 -1
- package/dist/components/edit-menu/main.d.ts.map +1 -1
- package/dist/components/edit-menu/main.js +31 -22
- package/dist/components/edit-menu/main.js.map +1 -1
- package/dist/components/edit-menu/props.d.ts +4 -4
- package/dist/components/edit-menu/props.d.ts.map +1 -1
- package/dist/components/edit-menu/style.css +10 -1
- package/dist/components/form/main.js +3 -3
- package/dist/components/form/main.js.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 +157 -157
- package/dist/components/header/main.d.ts.map +1 -1
- package/dist/components/header/main.js +27 -26
- package/dist/components/header/main.js.map +1 -1
- package/dist/components/header/style.css +13 -52
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/main.js +5 -5
- package/dist/components/layout/main.js.map +1 -1
- package/dist/components/layout/style.css +2 -2
- package/dist/components/list/main.d.ts +11 -3
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +296 -300
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +49 -16
- 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 +206 -158
- package/dist/components/menu/main.d.ts +77 -30
- package/dist/components/menu/main.d.ts.map +1 -1
- package/dist/components/menu/main.js +364 -89
- package/dist/components/menu/main.js.map +1 -1
- package/dist/components/menu/props.d.ts +3 -4
- package/dist/components/menu/props.d.ts.map +1 -1
- package/dist/components/menu/style.css +25 -11
- package/dist/components/navigation/main.d.ts +5 -2
- package/dist/components/navigation/main.d.ts.map +1 -1
- package/dist/components/navigation/main.js +287 -57
- package/dist/components/navigation/main.js.map +1 -1
- package/dist/components/navigation/props.d.ts +37 -4
- package/dist/components/navigation/props.d.ts.map +1 -1
- package/dist/components/navigation/style.css +32 -2
- package/dist/components/page/main.d.ts.map +1 -1
- package/dist/components/page/main.js +12 -7
- package/dist/components/page/main.js.map +1 -1
- package/dist/components/page/props.d.ts +1 -1
- package/dist/components/page/style.css +3 -6
- package/dist/components/page-control/main.d.ts +1 -1
- package/dist/components/page-control/main.js +9 -9
- package/dist/components/page-control/main.js.map +1 -1
- package/dist/components/page-control/style.css +2 -2
- package/dist/components/popover/main.d.ts.map +1 -1
- package/dist/components/popover/main.js +17 -14
- package/dist/components/popover/main.js.map +1 -1
- package/dist/components/popover/props.d.ts +2 -2
- package/dist/components/popover/style.css +10 -1
- package/dist/components/progress/main.d.ts +1 -2
- package/dist/components/progress/main.d.ts.map +1 -1
- package/dist/components/progress/main.js +45 -19
- package/dist/components/progress/main.js.map +1 -1
- package/dist/components/progress/props.d.ts +22 -8
- package/dist/components/progress/props.d.ts.map +1 -1
- package/dist/components/progress/style.css +15 -15
- package/dist/components/roll/main.js +10 -10
- package/dist/components/roll/main.js.map +1 -1
- package/dist/components/roll/props.d.ts +1 -1
- package/dist/components/roll/style.css +11 -11
- package/dist/components/segmented/main.d.ts.map +1 -1
- package/dist/components/segmented/main.js +44 -27
- package/dist/components/segmented/main.js.map +1 -1
- package/dist/components/segmented/style.css +14 -9
- package/dist/components/sheet/main.d.ts +1 -1
- package/dist/components/sheet/main.d.ts.map +1 -1
- package/dist/components/sheet/main.js +22 -18
- package/dist/components/sheet/main.js.map +1 -1
- package/dist/components/sheet/props.d.ts +1 -1
- package/dist/components/sheet/style.css +22 -16
- 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 +8 -8
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +19 -19
- 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 +25 -25
- package/dist/components/stepper/main.d.ts.map +1 -1
- package/dist/components/stepper/main.js +13 -15
- package/dist/components/stepper/main.js.map +1 -1
- package/dist/components/stepper/style.css +8 -8
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +25 -18
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/switch/props.d.ts +5 -3
- package/dist/components/switch/props.d.ts.map +1 -1
- package/dist/components/switch/style.css +13 -17
- package/dist/components/symbol/main.d.ts +1 -1
- package/dist/components/symbol/main.d.ts.map +1 -1
- package/dist/components/symbol/main.js +6 -5
- package/dist/components/symbol/main.js.map +1 -1
- package/dist/components/symbol/props.d.ts +3 -3
- package/dist/components/symbol/style.css +1 -1
- 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 +78 -59
- package/dist/components/tab-bar/main.js.map +1 -1
- package/dist/components/tab-bar/props.d.ts +3 -3
- package/dist/components/tab-bar/style.css +92 -56
- 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 +26 -28
- package/dist/components/text-field/main.js.map +1 -1
- package/dist/components/text-field/props.d.ts +16 -1
- package/dist/components/text-field/props.d.ts.map +1 -1
- package/dist/components/text-field/style.css +105 -31
- package/dist/components/toolbar/main.d.ts.map +1 -1
- package/dist/components/toolbar/main.js +18 -20
- 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 +13 -13
- package/dist/components/tooltip/main.js +4 -4
- package/dist/components/tooltip/main.js.map +1 -1
- package/dist/components/tooltip/style.css +5 -5
- 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 +10 -12
- package/dist/components/typography/main.js.map +1 -1
- package/dist/components/typography/props.d.ts +9 -9
- package/dist/components/typography/props.d.ts.map +1 -1
- package/dist/components/typography/style.css +503 -503
- package/dist/components/utils/main.d.ts +47 -6
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +155 -5
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/utils/props.d.ts +24 -3
- package/dist/components/utils/props.d.ts.map +1 -1
- package/dist/components/utils/style.css +4 -4
- 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 +19 -3
- package/dist/components/viewport/input.d.ts.map +1 -1
- package/dist/components/viewport/input.js +197 -12
- package/dist/components/viewport/input.js.map +1 -1
- package/dist/components/viewport/main.d.ts +9 -4
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +326 -89
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/padding.d.ts +31 -3
- package/dist/components/viewport/padding.d.ts.map +1 -1
- package/dist/components/viewport/padding.js +111 -16
- package/dist/components/viewport/padding.js.map +1 -1
- package/dist/components/viewport/props.d.ts +69 -8
- package/dist/components/viewport/props.d.ts.map +1 -1
- package/dist/components/viewport/style.css +211 -6
- package/dist/styles.css +285 -302
- package/package.json +3 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/avatar/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAejD,uEAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/avatar/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAejD,uEAAuE;AACvE,gBAAgB;AAChB,yEAAyE;AACzE,4EAA4E;AAC5E,gBAAgB;AAChB,EAAE;AACF,QAAQ;AACR,mEAAmE;AACnE,0CAA0C;AAC1C,qBAAqB;AACrB,0DAA0D;AAC1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AAC,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI;KACvD,EACD,KAAK,CACN,KACG,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC,sBAC7B,OAAO,GACxB,CACH,CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,GAAG,UAAU;IACb,IAAI;IACJ,KAAK;IACL,QAAQ;IACR,KAAK;CACN,CAAC"}
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
height: var(--uikit-avatar-group-size);
|
|
43
43
|
flex: none;
|
|
44
44
|
border-radius: 50%;
|
|
45
|
-
background-color: var(--color-
|
|
45
|
+
background-color: var(--color-ui-system-fill);
|
|
46
46
|
vertical-align: middle;
|
|
47
47
|
|
|
48
48
|
& > :nth-child(-n + 3 of [data-avatar-part='root']) {
|
|
@@ -2,7 +2,7 @@ import './style.css';
|
|
|
2
2
|
import type { BadgeProps } from './props.js';
|
|
3
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
7
|
* or inline (`placement`).
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@ 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
8
|
// symbol (`placement` 'symbol', a child of a `Symbol`, e.g. in a
|
|
@@ -10,8 +10,8 @@ import { cn, withStyle } from '../utils/main.js';
|
|
|
10
10
|
// text 10px semibold, 2px from its ends); on its element's top end corner
|
|
11
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,7 +22,7 @@ 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
27
|
* or inline (`placement`).
|
|
28
28
|
*/
|
|
@@ -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"}
|
|
@@ -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;
|
|
@@ -59,8 +59,13 @@
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/* On a symbol (in a `Symbol`): in Framework7's size there, starting
|
|
62
|
-
before its end, above it (see main.tsx).
|
|
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. */
|
|
63
66
|
.uikit-badge[data-badge='symbol'] {
|
|
67
|
+
z-index: auto;
|
|
68
|
+
|
|
64
69
|
--uikit-badge-height: 16px;
|
|
65
70
|
--uikit-badge-font-size: 10px;
|
|
66
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
|
|
@@ -40,10 +40,10 @@ const Root = forwardRef(({ children, className, context: contextProp, destructiv
|
|
|
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'.)
|
|
@@ -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":";AAAA,OAAO,oBAAoB,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AC,CAAC,CACF,QAAQ,CACT,GACU,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,2DAA2D;AAC3D,MAAM,IAAI,GAAG,UAAU,CACrB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAGhC,eACE,GAAG,EAAE,GAAG,sBACS,MAAM,KACnB,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAC7C,CACH,CACF,CAAC;AAEF,MAAM,KAAK,GAAG,UAAU,CACtB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAEhC,eACE,GAAG,EAAE,GAAG,sBACS,OAAO,KACpB,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC,GAC9C,CACH,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,KAAK;CACN,CAAC"}
|
|
@@ -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,12 +41,12 @@
|
|
|
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-
|
|
48
|
+
letter-spacing: var(--font-ui-subheadline-tracking);
|
|
49
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
52
50
|
text-align: center;
|
|
53
51
|
text-decoration: none;
|
|
54
52
|
text-transform: none;
|
|
@@ -71,13 +69,13 @@
|
|
|
71
69
|
|
|
72
70
|
&[data-size='large'] {
|
|
73
71
|
--uikit-button-size: 50px;
|
|
74
|
-
--uikit-button-icon-font-size: var(--font-
|
|
75
|
-
--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);
|
|
76
74
|
|
|
77
75
|
padding: 14px 20px;
|
|
78
|
-
font-size: var(--font-
|
|
79
|
-
letter-spacing: var(--font-
|
|
80
|
-
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);
|
|
81
79
|
}
|
|
82
80
|
|
|
83
81
|
&[data-size='small'] {
|
|
@@ -89,13 +87,13 @@
|
|
|
89
87
|
|
|
90
88
|
&[data-variant='bordered'],
|
|
91
89
|
&[data-variant='bordered-secondary'] {
|
|
92
|
-
--uikit-button-background: var(--color-
|
|
90
|
+
--uikit-button-background: var(--color-ui-tertiary-system-fill);
|
|
93
91
|
--uikit-button-color: var(--uikit-button-tint);
|
|
94
|
-
--uikit-button-color-disabled: var(--color-
|
|
92
|
+
--uikit-button-color-disabled: var(--color-ui-tertiary-label);
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
&[data-variant='bordered-secondary'] {
|
|
98
|
-
--uikit-button-color: var(--color-
|
|
96
|
+
--uikit-button-color: var(--color-ui-label);
|
|
99
97
|
}
|
|
100
98
|
|
|
101
99
|
&[data-variant='bordered'][data-destructive],
|
|
@@ -155,12 +153,12 @@
|
|
|
155
153
|
box-shadow: 0 0 40px 15px
|
|
156
154
|
color-mix(
|
|
157
155
|
in srgb,
|
|
158
|
-
var(--uikit-glass-tint, var(--glass-
|
|
156
|
+
var(--uikit-glass-tint, var(--glass-ui-tint)) 75%,
|
|
159
157
|
transparent
|
|
160
158
|
);
|
|
161
159
|
content: '';
|
|
162
160
|
opacity: var(--uikit-glass-pressed, 0);
|
|
163
|
-
transition-duration: var(--glass-
|
|
161
|
+
transition-duration: var(--glass-ui-lens-duration);
|
|
164
162
|
}
|
|
165
163
|
}
|
|
166
164
|
|
|
@@ -196,11 +194,11 @@
|
|
|
196
194
|
&:not([data-size]) {
|
|
197
195
|
--uikit-button-icon-font-size: var(
|
|
198
196
|
--uikit-button-plain-size,
|
|
199
|
-
var(--font-
|
|
197
|
+
var(--font-ui-subheadline-size)
|
|
200
198
|
);
|
|
201
199
|
--uikit-button-icon-line-height: var(
|
|
202
200
|
--uikit-button-plain-line-height,
|
|
203
|
-
var(--font-
|
|
201
|
+
var(--font-ui-subheadline-line-height)
|
|
204
202
|
);
|
|
205
203
|
--uikit-button-icon-font-weight: var(
|
|
206
204
|
--uikit-button-plain-symbol-weight,
|
|
@@ -217,16 +215,16 @@
|
|
|
217
215
|
|
|
218
216
|
font-size: var(
|
|
219
217
|
--uikit-button-plain-size,
|
|
220
|
-
var(--font-
|
|
218
|
+
var(--font-ui-subheadline-size)
|
|
221
219
|
);
|
|
222
220
|
gap: var(--uikit-button-plain-gap, 4px);
|
|
223
221
|
letter-spacing: var(
|
|
224
222
|
--uikit-button-plain-tracking,
|
|
225
|
-
var(--font-
|
|
223
|
+
var(--font-ui-subheadline-tracking)
|
|
226
224
|
);
|
|
227
225
|
line-height: var(
|
|
228
226
|
--uikit-button-plain-line-height,
|
|
229
|
-
var(--font-
|
|
227
|
+
var(--font-ui-subheadline-line-height)
|
|
230
228
|
);
|
|
231
229
|
margin-inline-end: var(--uikit-button-plain-margin-end, 0);
|
|
232
230
|
padding-inline: var(--uikit-button-plain-padding-inline, 14px);
|
|
@@ -267,8 +265,8 @@
|
|
|
267
265
|
|
|
268
266
|
&:active:not([data-disabled], :disabled) {
|
|
269
267
|
--uikit-glass-pressed: 1;
|
|
270
|
-
--uikit-glass-scale: var(--glass-
|
|
271
|
-
--uikit-button-content-scale: var(--glass-
|
|
268
|
+
--uikit-glass-scale: var(--glass-ui-lens-scale);
|
|
269
|
+
--uikit-button-content-scale: var(--glass-ui-lens-content-scale);
|
|
272
270
|
|
|
273
271
|
background-color: var(--uikit-button-background-pressed);
|
|
274
272
|
}
|
|
@@ -288,7 +286,7 @@
|
|
|
288
286
|
gap: inherit;
|
|
289
287
|
mix-blend-mode: var(--uikit-symbol-blend);
|
|
290
288
|
scale: var(--uikit-symbol-scale);
|
|
291
|
-
transition-duration: var(--glass-
|
|
289
|
+
transition-duration: var(--glass-ui-lens-duration);
|
|
292
290
|
transition-property: scale;
|
|
293
291
|
|
|
294
292
|
&:has(.uikit-symbol) {
|
|
@@ -298,7 +296,7 @@
|
|
|
298
296
|
& > :not(:has(.uikit-symbol)) {
|
|
299
297
|
mix-blend-mode: var(--uikit-symbol-blend);
|
|
300
298
|
scale: var(--uikit-symbol-scale);
|
|
301
|
-
transition: scale var(--glass-
|
|
299
|
+
transition: scale var(--glass-ui-lens-duration);
|
|
302
300
|
}
|
|
303
301
|
}
|
|
304
302
|
}
|
|
@@ -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,M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U,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"}
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
place-items: center;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
/*
|
|
17
|
+
/* Selected and unselected (mixed: as selected). */
|
|
18
18
|
.uikit-checkbox-select-circle {
|
|
19
19
|
position: relative;
|
|
20
20
|
flex: none;
|
|
21
21
|
padding: 0;
|
|
22
22
|
border: 1.5px solid
|
|
23
|
-
var(--uikit-checkbox-select-circle-border, var(--color-
|
|
23
|
+
var(--uikit-checkbox-select-circle-border, var(--color-ui-system-gray3));
|
|
24
24
|
margin: 0;
|
|
25
25
|
appearance: none;
|
|
26
26
|
background: none;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
&[data-checked],
|
|
45
45
|
&[data-indeterminate] {
|
|
46
46
|
border-color: transparent;
|
|
47
|
-
background-color: var(--color-
|
|
47
|
+
background-color: var(--color-ui-primary);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&[data-disabled] {
|
|
@@ -2,16 +2,15 @@ import '../button/style.css';
|
|
|
2
2
|
import '../menu/style.css';
|
|
3
3
|
import '../page-control/style.css';
|
|
4
4
|
import '../segmented/style.css';
|
|
5
|
-
import '../slider/style.css';
|
|
6
5
|
import './style.css';
|
|
7
6
|
import { FunctionComponent } from 'react';
|
|
8
|
-
import type { ColorPickerEyedropperProps, ColorPickerPanelProps, ColorPickerRootProps, ColorWellProps, Rgba } from './props.js';
|
|
9
|
-
export type { ColorPickerChangeEventDetails, ColorPickerEyedropperProps,
|
|
7
|
+
import type { ColorPickerEyedropperProps, ColorPickerModeProps, ColorPickerModesProps, ColorPickerPanelProps, ColorPickerRootProps, ColorPickerSlidersProps, ColorPickerSwatchesProps, ColorPickerViewProps, ColorWellProps, Rgba } from './props.js';
|
|
8
|
+
export type { ColorPickerChangeEventDetails, ColorPickerEyedropperProps, ColorPickerModeProps, ColorPickerModesProps, ColorPickerPanelProps, ColorPickerRootProps, ColorPickerSavedColorsChangeEventDetails, ColorPickerSlidersModel, ColorPickerSlidersProps, ColorPickerSwatchesProps, ColorPickerViewProps, ColorWellProps, } from './props.js';
|
|
10
9
|
/** A hex color (#rgb, #rrggbb, #rrggbbaa) as channels (0–255, alpha 0–1). */
|
|
11
10
|
export declare const parseColor: (hex: string) => Rgba;
|
|
12
11
|
/** Channels as a hex color (#rrggbb, or #rrggbbaa if not opaque). */
|
|
13
12
|
export declare const formatColor: ({ a, b, g, r }: Rgba) => string;
|
|
14
|
-
/**
|
|
13
|
+
/** The default saved colors. */
|
|
15
14
|
export declare const defaultSavedColors: string[];
|
|
16
15
|
export declare const ColorPicker: {
|
|
17
16
|
Root: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ColorPickerRootProps> & {
|
|
@@ -23,6 +22,30 @@ export declare const ColorPicker: {
|
|
|
23
22
|
Panel: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ColorPickerPanelProps> & {
|
|
24
23
|
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
25
24
|
}>;
|
|
25
|
+
Modes: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ColorPickerModesProps> & {
|
|
26
|
+
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
Mode: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ColorPickerModeProps> & {
|
|
29
|
+
ref?: import("preact").Ref<HTMLElement> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
View: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ColorPickerViewProps> & {
|
|
32
|
+
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
Grid: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
|
|
35
|
+
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
Spectrum: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
|
|
38
|
+
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
Sliders: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ColorPickerSlidersProps> & {
|
|
41
|
+
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
Opacity: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
|
|
44
|
+
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
Swatches: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ColorPickerSwatchesProps> & {
|
|
47
|
+
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
48
|
+
}>;
|
|
26
49
|
Eyedropper: FunctionComponent<ColorPickerEyedropperProps>;
|
|
27
50
|
Well: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ColorWellProps> & {
|
|
28
51
|
ref?: import("preact").Ref<HTMLButtonElement> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/color-picker/main.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,2BAA2B,CAAC;AACnC,OAAO,wBAAwB,CAAC;AAChC,OAAO,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/color-picker/main.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,2BAA2B,CAAC;AACnC,OAAO,wBAAwB,CAAC;AAChC,OAAO,aAAa,CAAC;AAIrB,OAAO,EAOL,iBAAiB,EAUlB,MAAM,OAAO,CAAC;AAQf,OAAO,KAAK,EAEV,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EAGpB,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EAId,IAAI,EACL,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,6BAA6B,EAC7B,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,wCAAwC,EACxC,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,GACf,MAAM,YAAY,CAAC;AAoCpB,6EAA6E;AAC7E,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,IAexC,CAAC;AAOF,qEAAqE;AACrE,eAAO,MAAM,WAAW,GAAI,gBAAgB,IAAI,KAAG,MAC+B,CAAC;AA0CnF,gCAAgC;AAChC,eAAO,MAAM,kBAAkB,UAU9B,CAAC;AA24BF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcvB,CAAC"}
|