@pathscale/ui 2.8.0 → 2.9.1
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/color-wheel/ColorWheel.css +6 -0
- package/dist/components/color-wheel/ColorWheel.generated.d.ts +21 -0
- package/dist/components/color-wheel/ColorWheel.generated.js +54 -0
- package/dist/components/color-wheel/ColorWheel.recipe.d.ts +9 -0
- package/dist/components/color-wheel/ColorWheel.recipe.js +23 -0
- package/dist/components/color-wheel/ComplexColorWheel.css +98 -0
- package/dist/components/color-wheel/ComplexColorWheel.generated.d.ts +31 -0
- package/dist/components/color-wheel/ComplexColorWheel.generated.js +201 -0
- package/dist/components/color-wheel/ComplexColorWheel.recipe.d.ts +38 -0
- package/dist/components/color-wheel/ComplexColorWheel.recipe.js +102 -0
- package/dist/components/color-wheel/index.d.ts +6 -0
- package/dist/components/color-wheel/index.js +4 -0
- package/dist/components/slider/Slider.generated.js +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/layouts.manifest.json +7 -1
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Component as __LayoutComponent } from "solid-js";
|
|
2
|
+
import "./ColorWheel.css";
|
|
3
|
+
import type { JSX } from "@solidjs/web";
|
|
4
|
+
import { type ColorWheelFlowerMode } from "../color-wheel-flower";
|
|
5
|
+
interface ColorWheelBaseProps {
|
|
6
|
+
/** The literal selected colour. */
|
|
7
|
+
value: string;
|
|
8
|
+
/** Receives the normalized literal hex displayed by the selected petal. */
|
|
9
|
+
onChange: (value: string) => void;
|
|
10
|
+
/** Explicit mode. Omit to follow the root `data-theme`. */
|
|
11
|
+
mode?: ColorWheelFlowerMode;
|
|
12
|
+
/** Exactly 31 literal colours: outer ring, middle ring, inner ring, centre. */
|
|
13
|
+
palette?: readonly string[];
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
class?: string;
|
|
16
|
+
wheelClass?: string;
|
|
17
|
+
"aria-label"?: string;
|
|
18
|
+
}
|
|
19
|
+
export type ColorWheelProps = ColorWheelBaseProps & Omit<JSX.FieldsetHTMLAttributes<HTMLFieldSetElement>, keyof ColorWheelBaseProps | "onChange">;
|
|
20
|
+
export declare const ColorWheelLayout: __LayoutComponent<ColorWheelProps>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
|
|
2
|
+
import { defineComponent } from "solid-layouts/solid-2/application-boundary";
|
|
3
|
+
import "./ColorWheel.css";
|
|
4
|
+
import { createMemo, omit } from "solid-js";
|
|
5
|
+
import { ColorPickerContext, ColorWheelFlower } from "../color-wheel-flower/index.js";
|
|
6
|
+
import { parseColor } from "../color-wheel-flower/ColorUtils.js";
|
|
7
|
+
import { colorWheel } from "./ColorWheel.recipe.js";
|
|
8
|
+
var _tmpl$ = /*#__PURE__*/ template("<fieldset>");
|
|
9
|
+
const FALLBACK = parseColor("#ffffff");
|
|
10
|
+
const __solidLayoutColorWheelLayout = (_stable, p)=>{
|
|
11
|
+
const others = omit(p, "value", "onChange", "mode", "palette", "isDisabled", "class", "wheelClass", "aria-label");
|
|
12
|
+
const color = createMemo(()=>parseColor(p.value) ?? FALLBACK);
|
|
13
|
+
const context = ()=>({
|
|
14
|
+
color,
|
|
15
|
+
format: ()=>"hex",
|
|
16
|
+
disabled: ()=>Boolean(p.isDisabled),
|
|
17
|
+
onChange: (next)=>p.onChange(next.hex),
|
|
18
|
+
onFormatChange: ()=>{}
|
|
19
|
+
});
|
|
20
|
+
var _el$ = _tmpl$();
|
|
21
|
+
spread(_el$, mergeProps(others, ()=>_stable.slot.root, {
|
|
22
|
+
get ["aria-label"] () {
|
|
23
|
+
return p["aria-label"] ?? "Colour";
|
|
24
|
+
},
|
|
25
|
+
get ["data-disabled"] () {
|
|
26
|
+
return p.isDisabled ? "" : void 0;
|
|
27
|
+
}
|
|
28
|
+
}), true);
|
|
29
|
+
insert(_el$, createComponent(ColorPickerContext, {
|
|
30
|
+
get value () {
|
|
31
|
+
return context();
|
|
32
|
+
},
|
|
33
|
+
get children () {
|
|
34
|
+
return createComponent(ColorWheelFlower, {
|
|
35
|
+
get ["class"] () {
|
|
36
|
+
return p.wheelClass;
|
|
37
|
+
},
|
|
38
|
+
get mode () {
|
|
39
|
+
return p.mode;
|
|
40
|
+
},
|
|
41
|
+
get palette () {
|
|
42
|
+
return p.palette;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}));
|
|
47
|
+
return _el$;
|
|
48
|
+
};
|
|
49
|
+
const ColorWheelLayout = defineComponent({
|
|
50
|
+
recipe: colorWheel,
|
|
51
|
+
layout: __solidLayoutColorWheelLayout,
|
|
52
|
+
embedded: true
|
|
53
|
+
});
|
|
54
|
+
export { ColorWheelLayout };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { recipe } from "../../lib/layouts/index.js";
|
|
2
|
+
const colorWheel = recipe({
|
|
3
|
+
component: "color-wheel",
|
|
4
|
+
element: "fieldset",
|
|
5
|
+
slots: {
|
|
6
|
+
root: {
|
|
7
|
+
base: "color-wheel"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
_layouts: {
|
|
11
|
+
slots: {
|
|
12
|
+
root: {
|
|
13
|
+
base: "color-wheel",
|
|
14
|
+
axes: {}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
stateKeys: [],
|
|
18
|
+
slotIds: {
|
|
19
|
+
root: 0
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export { colorWheel };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
.complex-color-wheel {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
gap: 1rem;
|
|
5
|
+
padding: 0.875rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.complex-color-wheel__adjustments {
|
|
9
|
+
display: flex;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
flex: 1;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: 0.875rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.complex-color-wheel__action {
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: flex-end;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.complex-color-wheel__axis {
|
|
22
|
+
display: flex;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
gap: 0.25rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.complex-color-wheel__axis-heading {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: baseline;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
gap: 0.75rem;
|
|
33
|
+
color: var(--color-base-content);
|
|
34
|
+
font-size: 0.75rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.complex-color-wheel__axis-control {
|
|
38
|
+
display: grid;
|
|
39
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: 0.5rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.complex-color-wheel__stops {
|
|
45
|
+
display: flex;
|
|
46
|
+
grid-column: 1 / -1;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: 0.5rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.complex-color-wheel__stop {
|
|
52
|
+
width: 1.75rem;
|
|
53
|
+
min-width: 1.75rem;
|
|
54
|
+
height: 1.75rem;
|
|
55
|
+
min-height: 1.75rem;
|
|
56
|
+
padding: 0;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
border-radius: 9999px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.complex-color-wheel__stop[aria-pressed="true"] {
|
|
62
|
+
outline: 2px solid var(--color-primary);
|
|
63
|
+
outline-offset: 2px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.complex-color-wheel__stop-preview {
|
|
67
|
+
display: flex;
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
border-radius: inherit;
|
|
73
|
+
font-size: 0.75rem;
|
|
74
|
+
font-weight: 600;
|
|
75
|
+
line-height: 1;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.complex-color-wheel__preview {
|
|
79
|
+
width: 1.5rem;
|
|
80
|
+
height: 1.5rem;
|
|
81
|
+
border: 1px solid
|
|
82
|
+
color-mix(in srgb, var(--color-base-content) 16%, transparent);
|
|
83
|
+
border-radius: 9999px;
|
|
84
|
+
box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.complex-color-wheel__hint {
|
|
88
|
+
color: color-mix(in srgb, var(--color-base-content) 62%, transparent);
|
|
89
|
+
font-size: 0.6875rem;
|
|
90
|
+
line-height: 1.35;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@media (max-width: 40rem) {
|
|
94
|
+
.complex-color-wheel {
|
|
95
|
+
align-items: stretch;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Component as __LayoutComponent } from "solid-js";
|
|
2
|
+
import "./ComplexColorWheel.css";
|
|
3
|
+
import type { JSX } from "@solidjs/web";
|
|
4
|
+
import { type CardMaterial } from "../card";
|
|
5
|
+
import { type ColorWheelProps } from "./ColorWheel.generated";
|
|
6
|
+
export interface ColorWheelAdjustment {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
hint?: string;
|
|
10
|
+
value: number;
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
step?: number;
|
|
14
|
+
/** Curated values rendered as semantic choices instead of a continuous slider. */
|
|
15
|
+
stops?: readonly number[];
|
|
16
|
+
onChange: (value: number) => void;
|
|
17
|
+
onChangeEnd?: (value: number) => void;
|
|
18
|
+
formatValue?: (value: number) => string;
|
|
19
|
+
/** Optional literal preview produced by this adjustment at a value. */
|
|
20
|
+
preview?: (value: number, color: string) => string;
|
|
21
|
+
/** Optional foreground preview, such as a text-brightness sample. */
|
|
22
|
+
ink?: (value: number, color: string) => string;
|
|
23
|
+
}
|
|
24
|
+
export interface ComplexColorWheelProps extends ColorWheelProps {
|
|
25
|
+
/** Standard value axes rendered beside the wheel. */
|
|
26
|
+
adjustments: readonly ColorWheelAdjustment[];
|
|
27
|
+
material?: CardMaterial;
|
|
28
|
+
action?: JSX.Element;
|
|
29
|
+
adjustmentsClass?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const ComplexColorWheelLayout: __LayoutComponent<ComplexColorWheelProps>;
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { createComponent, insert, memo, mergeProps, spread, template } from "@solidjs/web";
|
|
2
|
+
import { defineComponent } from "solid-layouts/solid-2/application-boundary";
|
|
3
|
+
import "./ComplexColorWheel.css";
|
|
4
|
+
import { For, Show } from "solid-js";
|
|
5
|
+
import { twMerge } from "../../lib/twMerge.js";
|
|
6
|
+
import button_0 from "../button/index.js";
|
|
7
|
+
import card from "../card/index.js";
|
|
8
|
+
import slider from "../slider/index.js";
|
|
9
|
+
import { ColorWheelLayout } from "./ColorWheel.generated.js";
|
|
10
|
+
import { complexColorWheel } from "./ComplexColorWheel.recipe.js";
|
|
11
|
+
var _tmpl$ = /*#__PURE__*/ template("<div>"), _tmpl$2 = /*#__PURE__*/ template("<div><!><!>"), _tmpl$3 = /*#__PURE__*/ template("<span>"), _tmpl$4 = /*#__PURE__*/ template("<div><div><span></span><span></span></div><div>");
|
|
12
|
+
const __solidLayoutComplexColorWheelLayout = (_stable, p)=>createComponent(card, mergeProps(()=>_stable.slot.root, {
|
|
13
|
+
get material () {
|
|
14
|
+
return p.material ?? "glass";
|
|
15
|
+
},
|
|
16
|
+
get children () {
|
|
17
|
+
return [
|
|
18
|
+
createComponent(ColorWheelLayout, {
|
|
19
|
+
get value () {
|
|
20
|
+
return p.value;
|
|
21
|
+
},
|
|
22
|
+
get onChange () {
|
|
23
|
+
return p.onChange;
|
|
24
|
+
},
|
|
25
|
+
get mode () {
|
|
26
|
+
return p.mode;
|
|
27
|
+
},
|
|
28
|
+
get palette () {
|
|
29
|
+
return p.palette;
|
|
30
|
+
},
|
|
31
|
+
get isDisabled () {
|
|
32
|
+
return p.isDisabled;
|
|
33
|
+
},
|
|
34
|
+
get ["class"] () {
|
|
35
|
+
return p.class;
|
|
36
|
+
},
|
|
37
|
+
get wheelClass () {
|
|
38
|
+
return p.wheelClass;
|
|
39
|
+
},
|
|
40
|
+
get ["aria-label"] () {
|
|
41
|
+
return p["aria-label"];
|
|
42
|
+
}
|
|
43
|
+
}),
|
|
44
|
+
(()=>{
|
|
45
|
+
var _el$ = _tmpl$2(), _el$3 = _el$.firstChild, _el$4 = _el$3.nextSibling;
|
|
46
|
+
spread(_el$, mergeProps(()=>_stable.slot.adjustments, {
|
|
47
|
+
get ["class"] () {
|
|
48
|
+
return twMerge(_stable.slot.adjustments.class, p.adjustmentsClass);
|
|
49
|
+
}
|
|
50
|
+
}), true);
|
|
51
|
+
insert(_el$, createComponent(Show, {
|
|
52
|
+
get when () {
|
|
53
|
+
return p.action;
|
|
54
|
+
},
|
|
55
|
+
get children () {
|
|
56
|
+
var _el$2 = _tmpl$();
|
|
57
|
+
spread(_el$2, mergeProps(()=>_stable.slot.action), true);
|
|
58
|
+
insert(_el$2, ()=>p.action);
|
|
59
|
+
return _el$2;
|
|
60
|
+
}
|
|
61
|
+
}), _el$3);
|
|
62
|
+
insert(_el$, createComponent(For, {
|
|
63
|
+
get each () {
|
|
64
|
+
return p.adjustments;
|
|
65
|
+
},
|
|
66
|
+
children: (adjustment)=>(()=>{
|
|
67
|
+
var _el$5 = _tmpl$4(), _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$9 = _el$6.nextSibling;
|
|
68
|
+
spread(_el$5, mergeProps(()=>_stable.slot.axis, {
|
|
69
|
+
get ["data-axis"] () {
|
|
70
|
+
return adjustment.id;
|
|
71
|
+
}
|
|
72
|
+
}), true);
|
|
73
|
+
spread(_el$6, mergeProps(()=>_stable.slot.axisHeading), true);
|
|
74
|
+
insert(_el$7, ()=>adjustment.label);
|
|
75
|
+
insert(_el$8, ()=>adjustment.formatValue?.(adjustment.value) ?? adjustment.value);
|
|
76
|
+
spread(_el$9, mergeProps(()=>_stable.slot.axisControl), true);
|
|
77
|
+
insert(_el$9, createComponent(Show, {
|
|
78
|
+
get when () {
|
|
79
|
+
return memo(()=>!!adjustment.stops?.length)() ? adjustment.stops : void 0;
|
|
80
|
+
},
|
|
81
|
+
get fallback () {
|
|
82
|
+
return [
|
|
83
|
+
createComponent(Show, {
|
|
84
|
+
get when () {
|
|
85
|
+
return adjustment.preview;
|
|
86
|
+
},
|
|
87
|
+
get children () {
|
|
88
|
+
var _el$1 = _tmpl$3();
|
|
89
|
+
spread(_el$1, mergeProps(()=>_stable.slot.preview, {
|
|
90
|
+
"aria-hidden": "true",
|
|
91
|
+
get style () {
|
|
92
|
+
return {
|
|
93
|
+
"background-color": adjustment.preview?.(adjustment.value, p.value)
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
}), false);
|
|
97
|
+
return _el$1;
|
|
98
|
+
}
|
|
99
|
+
}),
|
|
100
|
+
createComponent(slider, {
|
|
101
|
+
get label () {
|
|
102
|
+
return adjustment.label;
|
|
103
|
+
},
|
|
104
|
+
get value () {
|
|
105
|
+
return adjustment.value;
|
|
106
|
+
},
|
|
107
|
+
get min () {
|
|
108
|
+
return adjustment.min ?? 0;
|
|
109
|
+
},
|
|
110
|
+
get max () {
|
|
111
|
+
return adjustment.max ?? 100;
|
|
112
|
+
},
|
|
113
|
+
get step () {
|
|
114
|
+
return adjustment.step;
|
|
115
|
+
},
|
|
116
|
+
get disabled () {
|
|
117
|
+
return p.isDisabled;
|
|
118
|
+
},
|
|
119
|
+
get onChange () {
|
|
120
|
+
return adjustment.onChange;
|
|
121
|
+
},
|
|
122
|
+
get onChangeEnd () {
|
|
123
|
+
return adjustment.onChangeEnd;
|
|
124
|
+
},
|
|
125
|
+
get formatValue () {
|
|
126
|
+
return adjustment.formatValue;
|
|
127
|
+
},
|
|
128
|
+
size: "sm"
|
|
129
|
+
})
|
|
130
|
+
];
|
|
131
|
+
},
|
|
132
|
+
children: (stops)=>(()=>{
|
|
133
|
+
var _el$10 = _tmpl$();
|
|
134
|
+
spread(_el$10, mergeProps(()=>_stable.slot.stops), true);
|
|
135
|
+
insert(_el$10, createComponent(For, {
|
|
136
|
+
get each () {
|
|
137
|
+
return stops();
|
|
138
|
+
},
|
|
139
|
+
children: (stop)=>createComponent(button_0, mergeProps(()=>_stable.slot.stop, {
|
|
140
|
+
type: "button",
|
|
141
|
+
size: "sm",
|
|
142
|
+
variant: "ghost",
|
|
143
|
+
get ["aria-label"] () {
|
|
144
|
+
return `${adjustment.label} ${adjustment.formatValue?.(stop) ?? stop}`;
|
|
145
|
+
},
|
|
146
|
+
get ["aria-pressed"] () {
|
|
147
|
+
return Math.abs(adjustment.value - stop) < 0.001 ? "true" : "false";
|
|
148
|
+
},
|
|
149
|
+
get disabled () {
|
|
150
|
+
return p.isDisabled;
|
|
151
|
+
},
|
|
152
|
+
onClick: ()=>adjustment.onChange(stop),
|
|
153
|
+
get children () {
|
|
154
|
+
var _el$11 = _tmpl$3();
|
|
155
|
+
spread(_el$11, mergeProps(()=>_stable.slot.stopPreview, {
|
|
156
|
+
"aria-hidden": "true",
|
|
157
|
+
get style () {
|
|
158
|
+
return {
|
|
159
|
+
"background-color": adjustment.preview?.(stop, p.value),
|
|
160
|
+
color: adjustment.ink?.(stop, p.value)
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
}), true);
|
|
164
|
+
insert(_el$11, createComponent(Show, {
|
|
165
|
+
get when () {
|
|
166
|
+
return adjustment.ink;
|
|
167
|
+
},
|
|
168
|
+
children: "A"
|
|
169
|
+
}));
|
|
170
|
+
return _el$11;
|
|
171
|
+
}
|
|
172
|
+
}))
|
|
173
|
+
}));
|
|
174
|
+
return _el$10;
|
|
175
|
+
})()
|
|
176
|
+
}));
|
|
177
|
+
insert(_el$5, createComponent(Show, {
|
|
178
|
+
get when () {
|
|
179
|
+
return adjustment.hint;
|
|
180
|
+
},
|
|
181
|
+
get children () {
|
|
182
|
+
var _el$0 = _tmpl$3();
|
|
183
|
+
spread(_el$0, mergeProps(()=>_stable.slot.hint), true);
|
|
184
|
+
insert(_el$0, ()=>adjustment.hint);
|
|
185
|
+
return _el$0;
|
|
186
|
+
}
|
|
187
|
+
}), null);
|
|
188
|
+
return _el$5;
|
|
189
|
+
})()
|
|
190
|
+
}), _el$4);
|
|
191
|
+
return _el$;
|
|
192
|
+
})()
|
|
193
|
+
];
|
|
194
|
+
}
|
|
195
|
+
}));
|
|
196
|
+
const ComplexColorWheelLayout = defineComponent({
|
|
197
|
+
recipe: complexColorWheel,
|
|
198
|
+
layout: __solidLayoutComplexColorWheelLayout,
|
|
199
|
+
embedded: true
|
|
200
|
+
});
|
|
201
|
+
export { ComplexColorWheelLayout };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const complexColorWheel: import("solid-layouts/solid-2").Recipe<{
|
|
2
|
+
readonly component: "complex-color-wheel";
|
|
3
|
+
readonly slots: {
|
|
4
|
+
readonly root: {
|
|
5
|
+
readonly base: "complex-color-wheel";
|
|
6
|
+
};
|
|
7
|
+
readonly adjustments: {
|
|
8
|
+
readonly base: "complex-color-wheel__adjustments";
|
|
9
|
+
};
|
|
10
|
+
readonly action: {
|
|
11
|
+
readonly base: "complex-color-wheel__action";
|
|
12
|
+
};
|
|
13
|
+
readonly axis: {
|
|
14
|
+
readonly base: "complex-color-wheel__axis";
|
|
15
|
+
};
|
|
16
|
+
readonly axisHeading: {
|
|
17
|
+
readonly base: "complex-color-wheel__axis-heading";
|
|
18
|
+
};
|
|
19
|
+
readonly axisControl: {
|
|
20
|
+
readonly base: "complex-color-wheel__axis-control";
|
|
21
|
+
};
|
|
22
|
+
readonly stops: {
|
|
23
|
+
readonly base: "complex-color-wheel__stops";
|
|
24
|
+
};
|
|
25
|
+
readonly stop: {
|
|
26
|
+
readonly base: "complex-color-wheel__stop";
|
|
27
|
+
};
|
|
28
|
+
readonly stopPreview: {
|
|
29
|
+
readonly base: "complex-color-wheel__stop-preview";
|
|
30
|
+
};
|
|
31
|
+
readonly preview: {
|
|
32
|
+
readonly base: "complex-color-wheel__preview";
|
|
33
|
+
};
|
|
34
|
+
readonly hint: {
|
|
35
|
+
readonly base: "complex-color-wheel__hint";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { recipe } from "../../lib/layouts/index.js";
|
|
2
|
+
const complexColorWheel = recipe({
|
|
3
|
+
component: "complex-color-wheel",
|
|
4
|
+
slots: {
|
|
5
|
+
root: {
|
|
6
|
+
base: "complex-color-wheel"
|
|
7
|
+
},
|
|
8
|
+
adjustments: {
|
|
9
|
+
base: "complex-color-wheel__adjustments"
|
|
10
|
+
},
|
|
11
|
+
action: {
|
|
12
|
+
base: "complex-color-wheel__action"
|
|
13
|
+
},
|
|
14
|
+
axis: {
|
|
15
|
+
base: "complex-color-wheel__axis"
|
|
16
|
+
},
|
|
17
|
+
axisHeading: {
|
|
18
|
+
base: "complex-color-wheel__axis-heading"
|
|
19
|
+
},
|
|
20
|
+
axisControl: {
|
|
21
|
+
base: "complex-color-wheel__axis-control"
|
|
22
|
+
},
|
|
23
|
+
stops: {
|
|
24
|
+
base: "complex-color-wheel__stops"
|
|
25
|
+
},
|
|
26
|
+
stop: {
|
|
27
|
+
base: "complex-color-wheel__stop"
|
|
28
|
+
},
|
|
29
|
+
stopPreview: {
|
|
30
|
+
base: "complex-color-wheel__stop-preview"
|
|
31
|
+
},
|
|
32
|
+
preview: {
|
|
33
|
+
base: "complex-color-wheel__preview"
|
|
34
|
+
},
|
|
35
|
+
hint: {
|
|
36
|
+
base: "complex-color-wheel__hint"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
_layouts: {
|
|
40
|
+
slots: {
|
|
41
|
+
root: {
|
|
42
|
+
base: "complex-color-wheel",
|
|
43
|
+
axes: {}
|
|
44
|
+
},
|
|
45
|
+
adjustments: {
|
|
46
|
+
base: "complex-color-wheel__adjustments",
|
|
47
|
+
axes: {}
|
|
48
|
+
},
|
|
49
|
+
action: {
|
|
50
|
+
base: "complex-color-wheel__action",
|
|
51
|
+
axes: {}
|
|
52
|
+
},
|
|
53
|
+
axis: {
|
|
54
|
+
base: "complex-color-wheel__axis",
|
|
55
|
+
axes: {}
|
|
56
|
+
},
|
|
57
|
+
axisHeading: {
|
|
58
|
+
base: "complex-color-wheel__axis-heading",
|
|
59
|
+
axes: {}
|
|
60
|
+
},
|
|
61
|
+
axisControl: {
|
|
62
|
+
base: "complex-color-wheel__axis-control",
|
|
63
|
+
axes: {}
|
|
64
|
+
},
|
|
65
|
+
stops: {
|
|
66
|
+
base: "complex-color-wheel__stops",
|
|
67
|
+
axes: {}
|
|
68
|
+
},
|
|
69
|
+
stop: {
|
|
70
|
+
base: "complex-color-wheel__stop",
|
|
71
|
+
axes: {}
|
|
72
|
+
},
|
|
73
|
+
stopPreview: {
|
|
74
|
+
base: "complex-color-wheel__stop-preview",
|
|
75
|
+
axes: {}
|
|
76
|
+
},
|
|
77
|
+
preview: {
|
|
78
|
+
base: "complex-color-wheel__preview",
|
|
79
|
+
axes: {}
|
|
80
|
+
},
|
|
81
|
+
hint: {
|
|
82
|
+
base: "complex-color-wheel__hint",
|
|
83
|
+
axes: {}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
stateKeys: [],
|
|
87
|
+
slotIds: {
|
|
88
|
+
root: 7,
|
|
89
|
+
adjustments: 1,
|
|
90
|
+
action: 0,
|
|
91
|
+
axis: 2,
|
|
92
|
+
axisHeading: 4,
|
|
93
|
+
axisControl: 3,
|
|
94
|
+
stops: 10,
|
|
95
|
+
stop: 8,
|
|
96
|
+
stopPreview: 9,
|
|
97
|
+
preview: 6,
|
|
98
|
+
hint: 5
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
export { complexColorWheel };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { ColorWheelProps } from "./ColorWheel.generated";
|
|
2
|
+
export { ColorWheelLayout as ColorWheel } from "./ColorWheel.generated";
|
|
3
|
+
export { colorWheel } from "./ColorWheel.recipe";
|
|
4
|
+
export type { ColorWheelAdjustment, ComplexColorWheelProps, } from "./ComplexColorWheel.generated";
|
|
5
|
+
export { ComplexColorWheelLayout as ComplexColorWheel } from "./ComplexColorWheel.generated";
|
|
6
|
+
export { complexColorWheel } from "./ComplexColorWheel.recipe";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ColorWheelLayout as ColorWheel } from "./ColorWheel.generated.js";
|
|
2
|
+
export { colorWheel } from "./ColorWheel.recipe.js";
|
|
3
|
+
export { ComplexColorWheelLayout as ComplexColorWheel } from "./ComplexColorWheel.generated.js";
|
|
4
|
+
export { complexColorWheel } from "./ComplexColorWheel.recipe.js";
|
|
@@ -219,6 +219,9 @@ const __solidLayoutSlider = (_stable, p)=>{
|
|
|
219
219
|
get ["aria-valuetext"] () {
|
|
220
220
|
return formattedValue();
|
|
221
221
|
},
|
|
222
|
+
get ["aria-label"] () {
|
|
223
|
+
return p["aria-label"] ?? p.label;
|
|
224
|
+
},
|
|
222
225
|
get ["aria-labelledby"] () {
|
|
223
226
|
return p.label ? labelId : void 0;
|
|
224
227
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export type { CollapsibleBodyProps, CollapsibleContentProps, CollapsibleHeadingP
|
|
|
29
29
|
export { default as Collapsible } from "./components/collapsible";
|
|
30
30
|
export type { ColorSwatchProps, ColorSwatchShape, ColorSwatchSize, } from "./components/color-swatch";
|
|
31
31
|
export { default as ColorSwatch } from "./components/color-swatch";
|
|
32
|
+
export { ColorWheel, ComplexColorWheel, type ColorWheelAdjustment, type ColorWheelProps, type ComplexColorWheelProps, } from "./components/color-wheel";
|
|
32
33
|
export type { ComposerProps } from "./components/composer";
|
|
33
34
|
export { autosize, boundsFromRows, default as Composer, isSubmittable, shouldSubmit, } from "./components/composer";
|
|
34
35
|
export type { CreateDataGridOptions, DataGridBorders, DataGridCellContext, DataGridColumn, DataGridColumnOptions, DataGridDataType, DataGridModel, DataGridProps, DataGridRow, DataGridSelectionMode, DataGridSort, DataGridSortDirection, DataGridSticky, DataGridStriping, } from "./components/data-grid";
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ export { default as Checkbox } from "./components/checkbox/index.js";
|
|
|
20
20
|
export { default as Chip } from "./components/chip/index.js";
|
|
21
21
|
export { default as Collapsible } from "./components/collapsible/index.js";
|
|
22
22
|
export { default as ColorSwatch } from "./components/color-swatch/index.js";
|
|
23
|
+
export { ColorWheel, ComplexColorWheel } from "./components/color-wheel/index.js";
|
|
23
24
|
export { autosize, boundsFromRows, default as Composer, isSubmittable, shouldSubmit } from "./components/composer/index.js";
|
|
24
25
|
export { createDataGrid, default as DataGrid } from "./components/data-grid/index.js";
|
|
25
26
|
export { DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogFooter, DialogHeader, DialogHeading, DialogIcon, DialogTrigger, default as Dialog } from "./components/dialog/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": "solid-layouts-library-v2",
|
|
3
3
|
"package": "@pathscale/ui",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.9.1",
|
|
5
5
|
"components": {
|
|
6
6
|
"Accordion": {
|
|
7
7
|
"kind": "embedded"
|
|
@@ -123,6 +123,9 @@
|
|
|
123
123
|
"ColorSwatchPicker": {
|
|
124
124
|
"kind": "embedded"
|
|
125
125
|
},
|
|
126
|
+
"ColorWheel": {
|
|
127
|
+
"kind": "embedded"
|
|
128
|
+
},
|
|
126
129
|
"ColorWheelFlower": {
|
|
127
130
|
"kind": "embedded"
|
|
128
131
|
},
|
|
@@ -144,6 +147,9 @@
|
|
|
144
147
|
"ComboBoxTrigger": {
|
|
145
148
|
"kind": "embedded"
|
|
146
149
|
},
|
|
150
|
+
"ComplexColorWheel": {
|
|
151
|
+
"kind": "embedded"
|
|
152
|
+
},
|
|
147
153
|
"Composer": {
|
|
148
154
|
"kind": "embedded"
|
|
149
155
|
},
|