@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,6 +1,7 @@
|
|
|
1
1
|
import type { RadioGroup as BaseRadioGroup } from '@base-ui/react/radio-group';
|
|
2
2
|
import type { ComponentProps, ReactElement } from 'react';
|
|
3
3
|
import type { ButtonRootProps } from '../button/main.js';
|
|
4
|
+
import type { SegmentedItemProps, SegmentedRootProps } from '../segmented/main.js';
|
|
4
5
|
export type Rgba = {
|
|
5
6
|
a: number;
|
|
6
7
|
b: number;
|
|
@@ -22,9 +23,16 @@ export type ColorPickerSavedColorsChangeEventDetails = {
|
|
|
22
23
|
};
|
|
23
24
|
export type PickerState = {
|
|
24
25
|
color: Rgba;
|
|
26
|
+
/** An `Opacity` rendered: the color keeping its alpha while it is. */
|
|
27
|
+
registerOpacity: () => () => void;
|
|
25
28
|
setColor: (color: Rgba, eventDetails: ColorPickerChangeEventDetails) => void;
|
|
26
29
|
};
|
|
27
|
-
|
|
30
|
+
/** A panel's modes (see `Panel`). */
|
|
31
|
+
export type PanelState = {
|
|
32
|
+
mode: string | null;
|
|
33
|
+
registerMode: (value: string) => void;
|
|
34
|
+
setMode: (mode: string, eventDetails: BaseRadioGroup.ChangeEventDetails) => void;
|
|
35
|
+
};
|
|
28
36
|
export type ColorPickerRootProps = Omit<ComponentProps<'div'>, 'defaultValue' | 'onChange'> & {
|
|
29
37
|
/** The initial color (uncontrolled; a hex string). */
|
|
30
38
|
defaultValue?: string;
|
|
@@ -33,18 +41,45 @@ export type ColorPickerRootProps = Omit<ComponentProps<'div'>, 'defaultValue' |
|
|
|
33
41
|
/** The color (controlled; a hex string). */
|
|
34
42
|
value?: string;
|
|
35
43
|
};
|
|
36
|
-
export type ColorPickerPanelProps =
|
|
37
|
-
/**
|
|
38
|
-
|
|
44
|
+
export type ColorPickerPanelProps = ComponentProps<'div'> & {
|
|
45
|
+
/**
|
|
46
|
+
* The initial mode (uncontrolled): its `Mode`'s and `View`'s `value`.
|
|
47
|
+
* @default the first `Mode`
|
|
48
|
+
*/
|
|
49
|
+
defaultMode?: string;
|
|
50
|
+
/** The mode (controlled): its `Mode`'s and `View`'s `value`. */
|
|
51
|
+
mode?: string;
|
|
52
|
+
/** Called with the mode chosen (its segmented control's details). */
|
|
53
|
+
onModeChange?: (mode: string, eventDetails: BaseRadioGroup.ChangeEventDetails) => void;
|
|
54
|
+
};
|
|
55
|
+
export type ColorPickerModesProps = Omit<SegmentedRootProps, 'defaultValue' | 'onValueChange' | 'ref' | 'value'>;
|
|
56
|
+
export type ColorPickerModeProps = Omit<SegmentedItemProps, 'ref' | 'value'> & {
|
|
57
|
+
/** Its mode: its `View`'s `value`. */
|
|
58
|
+
value: string;
|
|
59
|
+
};
|
|
60
|
+
export type ColorPickerViewProps = ComponentProps<'div'> & {
|
|
61
|
+
/** Its mode: its `Mode`'s `value`. */
|
|
62
|
+
value: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* A color model, its channels as sliders: red, green and blue (0–255);
|
|
66
|
+
* hue (0–360°), saturation and lightness (0–100%); cyan, magenta, yellow
|
|
67
|
+
* and black (0–100%, naive: from sRGB, no ink's profile).
|
|
68
|
+
*/
|
|
69
|
+
export type ColorPickerSlidersModel = 'cmyk' | 'hsl' | 'rgb';
|
|
70
|
+
export type ColorPickerSlidersProps = ComponentProps<'div'> & {
|
|
71
|
+
/**
|
|
72
|
+
* Its color model: its channels' sliders.
|
|
73
|
+
* @default 'rgb'
|
|
74
|
+
*/
|
|
75
|
+
model?: ColorPickerSlidersModel;
|
|
76
|
+
};
|
|
77
|
+
export type ColorPickerSwatchesProps = ComponentProps<'div'> & {
|
|
39
78
|
/**
|
|
40
79
|
* The initial saved colors (uncontrolled).
|
|
41
|
-
* @default
|
|
80
|
+
* @default ten colors (see `defaultSavedColors`)
|
|
42
81
|
*/
|
|
43
82
|
defaultSavedColors?: string[];
|
|
44
|
-
/** The view (controlled). */
|
|
45
|
-
mode?: ColorPickerMode;
|
|
46
|
-
/** Called with the view chosen (its segmented control's details). */
|
|
47
|
-
onModeChange?: (mode: ColorPickerMode, eventDetails: BaseRadioGroup.ChangeEventDetails) => void;
|
|
48
83
|
/** Called with the saved colors, as one is added or deleted, and why. */
|
|
49
84
|
onSavedColorsChange?: (colors: string[], eventDetails: ColorPickerSavedColorsChangeEventDetails) => void;
|
|
50
85
|
/** The saved colors (controlled). */
|
|
@@ -67,7 +102,7 @@ export type ColorWellProps = ComponentProps<'button'> & {
|
|
|
67
102
|
/** Its color (a hex string; without one: the hues only). */
|
|
68
103
|
color?: string;
|
|
69
104
|
/**
|
|
70
|
-
*
|
|
105
|
+
* Its size (small: 28px, large: 36px).
|
|
71
106
|
* @default 'small'
|
|
72
107
|
*/
|
|
73
108
|
size?: 'large' | 'small';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/color-picker/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"props.d.ts","source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AAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7D;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,yEAAyE;IACzE,mBAAmB,CAAC,EAAE,CACpB,MAAM,EAAE,MAAM,EAAE,EAChB,YAAY,EAAE,wCAAwC,KACnD,IAAI,CAAC;IACV,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC;AAEzE,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,eAAe,EACf,SAAS,GAAG,KAAK,GAAG,QAAQ,CAC7B,GAAG;IACF;;;;OAIG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IACtD,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC1B,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
display: flex;
|
|
5
5
|
box-sizing: border-box;
|
|
6
6
|
flex-direction: column;
|
|
7
|
-
color: var(--color-
|
|
7
|
+
color: var(--color-ui-label);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.uikit-color-picker-grid {
|
|
@@ -66,24 +66,61 @@
|
|
|
66
66
|
display: flex;
|
|
67
67
|
flex-direction: column;
|
|
68
68
|
gap: 16px;
|
|
69
|
-
|
|
69
|
+
|
|
70
|
+
/* Four channels: closer, as high as the grid all the same. */
|
|
71
|
+
&[data-model='cmyk'] {
|
|
72
|
+
gap: 12px;
|
|
73
|
+
}
|
|
70
74
|
}
|
|
71
75
|
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
/* A channel's row (see `ChannelRow`): its title above its slider and
|
|
77
|
+
value. Lifted above the keyboard (see `Viewport.KeyboardAccessory`),
|
|
78
|
+
only then: a list group's card around it (an inset grouped one's: its
|
|
79
|
+
background, 24px corners, outlined), its content 12px in (as high as
|
|
80
|
+
before: nothing around it moves; as wide: the card's sides where the
|
|
81
|
+
panel's content's are). */
|
|
82
|
+
.uikit-color-picker-channel {
|
|
83
|
+
--uikit-viewport-keyboard-accessory-background: var(
|
|
84
|
+
--color-ui-secondary-system-grouped-background
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
border-radius: 24px;
|
|
88
|
+
transition:
|
|
89
|
+
translate var(--uikit-viewport-keyboard-transition),
|
|
90
|
+
background-color var(--uikit-viewport-keyboard-transition),
|
|
91
|
+
box-shadow var(--uikit-viewport-keyboard-transition),
|
|
92
|
+
padding var(--uikit-viewport-keyboard-transition),
|
|
93
|
+
margin var(--uikit-viewport-keyboard-transition);
|
|
94
|
+
|
|
95
|
+
&[data-lifted] {
|
|
96
|
+
padding: 12px;
|
|
97
|
+
box-shadow: inset 0 0 0 1px var(--color-ui-list-separator);
|
|
98
|
+
margin-block: -12px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.uikit-color-picker-channel-title {
|
|
103
|
+
color: var(--color-ui-secondary-label);
|
|
104
|
+
font-size: 13px;
|
|
74
105
|
font-variation-settings: 'wght' 590;
|
|
75
106
|
font-weight: round(down, 590, 100);
|
|
76
|
-
line-height:
|
|
107
|
+
line-height: 18px;
|
|
108
|
+
text-transform: uppercase;
|
|
77
109
|
}
|
|
78
110
|
|
|
79
|
-
.uikit-color-picker-
|
|
111
|
+
.uikit-color-picker-channel-row {
|
|
80
112
|
display: flex;
|
|
81
113
|
align-items: center;
|
|
82
|
-
padding: 3px 0 22px;
|
|
83
114
|
gap: 11px;
|
|
115
|
+
padding-block-start: 6px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* The opacity's, 22px above the color. */
|
|
119
|
+
.uikit-color-picker-opacity {
|
|
120
|
+
padding-block-end: 22px;
|
|
84
121
|
}
|
|
85
122
|
|
|
86
|
-
.uikit-color-picker-
|
|
123
|
+
.uikit-color-picker-channel-control {
|
|
87
124
|
position: relative;
|
|
88
125
|
display: flex;
|
|
89
126
|
height: 40px;
|
|
@@ -92,21 +129,48 @@
|
|
|
92
129
|
align-items: center;
|
|
93
130
|
padding: 2px 20px;
|
|
94
131
|
border-radius: 100px;
|
|
95
|
-
background-image: conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0);
|
|
96
|
-
background-size: 12px 12px;
|
|
97
132
|
cursor: pointer;
|
|
98
133
|
touch-action: pan-y;
|
|
99
134
|
|
|
135
|
+
/* Translucent (the opacity's): a checkerboard under it. */
|
|
136
|
+
&[data-checkered] {
|
|
137
|
+
background-image: conic-gradient(
|
|
138
|
+
#ccc 25%,
|
|
139
|
+
#fff 0 50%,
|
|
140
|
+
#ccc 0 75%,
|
|
141
|
+
#fff 0
|
|
142
|
+
);
|
|
143
|
+
background-size: 12px 12px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* The gradient (its stops from where the knob's center is at its least
|
|
147
|
+
to where it is at its most, see `trackStops`), a hole in it at the knob (as large; centered on its
|
|
148
|
+
value, within the padding), so a translucent knob shows over the
|
|
149
|
+
checkerboard alone. */
|
|
100
150
|
&::before {
|
|
101
151
|
position: absolute;
|
|
102
152
|
border-radius: inherit;
|
|
103
153
|
background: linear-gradient(
|
|
104
154
|
to right,
|
|
105
|
-
|
|
106
|
-
var(--uikit-color-picker-color-opaque) 88%
|
|
155
|
+
var(--uikit-color-picker-channel-stops)
|
|
107
156
|
);
|
|
108
157
|
content: '';
|
|
109
158
|
inset: 0;
|
|
159
|
+
mask-image: radial-gradient(
|
|
160
|
+
circle 18px at
|
|
161
|
+
calc(
|
|
162
|
+
20px + (100% - 40px) *
|
|
163
|
+
var(--uikit-color-picker-channel-position, 1)
|
|
164
|
+
)
|
|
165
|
+
50%,
|
|
166
|
+
transparent 100%,
|
|
167
|
+
#000 100%
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Opaque, no hole: its knob covers it. */
|
|
172
|
+
&:not([data-checkered])::before {
|
|
173
|
+
mask-image: none;
|
|
110
174
|
}
|
|
111
175
|
|
|
112
176
|
& > div {
|
|
@@ -116,22 +180,25 @@
|
|
|
116
180
|
}
|
|
117
181
|
}
|
|
118
182
|
|
|
119
|
-
.uikit-color-picker-
|
|
183
|
+
.uikit-color-picker-channel-thumb {
|
|
120
184
|
width: 36px;
|
|
121
185
|
height: 36px;
|
|
122
186
|
box-sizing: border-box;
|
|
123
187
|
border: 3px solid #fff;
|
|
124
188
|
border-radius: 50%;
|
|
125
|
-
|
|
189
|
+
|
|
190
|
+
/* The color (translucent: over the track's checkerboard, its gradient
|
|
191
|
+
cut out here, see above). */
|
|
192
|
+
background-color: var(--uikit-color-picker-channel-thumb);
|
|
126
193
|
box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
|
|
127
194
|
outline-offset: 2px;
|
|
128
195
|
|
|
129
196
|
&:has(:focus-visible) {
|
|
130
|
-
outline: 2px solid var(--color-
|
|
197
|
+
outline: 2px solid var(--color-ui-primary);
|
|
131
198
|
}
|
|
132
199
|
}
|
|
133
200
|
|
|
134
|
-
.uikit-color-picker-
|
|
201
|
+
.uikit-color-picker-channel-field {
|
|
135
202
|
display: flex;
|
|
136
203
|
width: 75px;
|
|
137
204
|
height: 40px;
|
|
@@ -141,18 +208,18 @@
|
|
|
141
208
|
justify-content: center;
|
|
142
209
|
padding: 9px 14px;
|
|
143
210
|
border-radius: 8px;
|
|
144
|
-
background-color: var(--color-
|
|
211
|
+
background-color: var(--color-ui-system-fill);
|
|
145
212
|
cursor: text;
|
|
146
|
-
font-size: var(--font-
|
|
213
|
+
font-size: var(--font-ui-body-size);
|
|
147
214
|
font-style: normal;
|
|
148
215
|
font-variant-numeric: tabular-nums;
|
|
149
|
-
font-variation-settings: 'wght' var(--font-
|
|
150
|
-
font-weight: round(down, var(--font-
|
|
151
|
-
letter-spacing: var(--font-
|
|
152
|
-
line-height: var(--font-
|
|
216
|
+
font-variation-settings: 'wght' var(--font-ui-body-weight-emphasized);
|
|
217
|
+
font-weight: round(down, var(--font-ui-body-weight-emphasized), 100);
|
|
218
|
+
letter-spacing: var(--font-ui-body-tracking);
|
|
219
|
+
line-height: var(--font-ui-body-line-height);
|
|
153
220
|
|
|
154
221
|
&:has(:focus-visible) {
|
|
155
|
-
outline: 2px solid var(--color-
|
|
222
|
+
outline: 2px solid var(--color-ui-primary);
|
|
156
223
|
outline-offset: 2px;
|
|
157
224
|
}
|
|
158
225
|
|
|
@@ -183,8 +250,10 @@
|
|
|
183
250
|
height: 82px;
|
|
184
251
|
flex: none;
|
|
185
252
|
border-radius: 18px;
|
|
186
|
-
|
|
187
|
-
|
|
253
|
+
|
|
254
|
+
/* Translucent, over black (its upper left) and white (its lower
|
|
255
|
+
right). */
|
|
256
|
+
background-image: linear-gradient(to bottom right, #000 50%, #fff 50%);
|
|
188
257
|
box-shadow: inset 0 0 0 100px var(--uikit-color-picker-color);
|
|
189
258
|
}
|
|
190
259
|
|
|
@@ -195,6 +264,8 @@
|
|
|
195
264
|
flex-direction: column;
|
|
196
265
|
align-items: center;
|
|
197
266
|
gap: 12px;
|
|
267
|
+
-webkit-user-select: none;
|
|
268
|
+
user-select: none;
|
|
198
269
|
}
|
|
199
270
|
|
|
200
271
|
.uikit-color-picker-saved-pages {
|
|
@@ -215,21 +286,23 @@
|
|
|
215
286
|
width: 100%;
|
|
216
287
|
min-height: 82px;
|
|
217
288
|
flex: none;
|
|
218
|
-
|
|
219
|
-
|
|
289
|
+
|
|
290
|
+
/* Fitting its width: the gaps down to 6px, then the colors smaller. */
|
|
291
|
+
gap: 22px 6px;
|
|
292
|
+
grid-template-columns: repeat(5, minmax(0, 30px));
|
|
220
293
|
place-content: start space-between;
|
|
221
294
|
scroll-snap-align: start;
|
|
222
295
|
scroll-snap-stop: always;
|
|
223
296
|
|
|
224
297
|
& > button {
|
|
225
298
|
position: relative;
|
|
226
|
-
width:
|
|
227
|
-
height: 30px;
|
|
299
|
+
width: 100%;
|
|
228
300
|
padding: 0;
|
|
229
301
|
border: 0;
|
|
230
302
|
border-radius: 50%;
|
|
231
303
|
margin: 0;
|
|
232
|
-
|
|
304
|
+
aspect-ratio: 1;
|
|
305
|
+
color: var(--color-ui-label);
|
|
233
306
|
cursor: pointer;
|
|
234
307
|
outline-offset: 2px;
|
|
235
308
|
-webkit-touch-callout: none;
|
|
@@ -245,7 +318,7 @@
|
|
|
245
318
|
|
|
246
319
|
& > [data-add] {
|
|
247
320
|
display: grid;
|
|
248
|
-
background-color: var(--color-
|
|
321
|
+
background-color: var(--color-ui-system-fill);
|
|
249
322
|
font-size: 17px;
|
|
250
323
|
font-variation-settings: 'wght' 510;
|
|
251
324
|
font-weight: round(down, 510, 100);
|
|
@@ -268,19 +341,32 @@
|
|
|
268
341
|
margin-block-end: 24px;
|
|
269
342
|
}
|
|
270
343
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/* A mode's view: as high as the grid (a spacer of its aspect ratio, in
|
|
347
|
+
the same cell), its content centered; higher only where its content
|
|
348
|
+
needs it (e.g. a narrow panel's sliders). */
|
|
349
|
+
.uikit-color-picker-view {
|
|
350
|
+
display: grid;
|
|
351
|
+
margin-block-end: 16px;
|
|
352
|
+
|
|
353
|
+
&::before {
|
|
354
|
+
align-self: start;
|
|
275
355
|
aspect-ratio: 370 / 300;
|
|
276
|
-
|
|
356
|
+
content: '';
|
|
357
|
+
grid-area: 1 / 1;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
& > * {
|
|
361
|
+
align-self: center;
|
|
362
|
+
grid-area: 1 / 1;
|
|
277
363
|
}
|
|
278
364
|
}
|
|
279
365
|
|
|
280
366
|
.uikit-color-picker-header {
|
|
281
367
|
padding: 16px 0 10px;
|
|
282
368
|
|
|
283
|
-
/* A toolbar in it:
|
|
369
|
+
/* A toolbar in it: a 44px row, its padding the header's (not a
|
|
284
370
|
bar's). */
|
|
285
371
|
|
|
286
372
|
/* (Over the bar's own: its placement's padding and height.) */
|
|
@@ -341,7 +427,7 @@
|
|
|
341
427
|
/* The color (translucent: over a checkerboard, as the panel's). */
|
|
342
428
|
&[data-color]::after {
|
|
343
429
|
position: absolute;
|
|
344
|
-
border: 2px solid var(--color-
|
|
430
|
+
border: 2px solid var(--color-ui-system-background);
|
|
345
431
|
border-radius: 50%;
|
|
346
432
|
background:
|
|
347
433
|
linear-gradient(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/contextual-menu/main.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAKL,SAAS,EACT,GAAG,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/contextual-menu/main.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAKL,SAAS,EACT,GAAG,EAOJ,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAEV,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAE7B,uBAAuB,EAExB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,0BAA0B,EAC1B,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,YAAY,CAAC;AAqXpB,gEAAgE;AAChE,eAAO,MAAM,6BAA6B,GACxC,OAAO,GAAG,OAAO,OACd,oBAAoB,CAAC,OAAO,CAGhC,CAAC;AAEF,eAAO,MAAM,cAAc;WAxVb,OAAO,2DAKlB,uBAAuB,CAAC,OAAO,CAAC,KAAG,SAAS;mBAwUzB,OAAO,iBAAgB,oBAAoB,CAAC,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBzE,CAAC"}
|