@pathscale/ui 0.0.110 → 0.0.112
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/colorpicker/ColorPicker.d.ts +1 -1
- package/dist/components/colorpicker/ColorPickerFlowerSelector.d.ts +3 -0
- package/dist/components/colorpicker/ColorPickerGradientSelector.d.ts +3 -0
- package/dist/components/colorpicker/ColorPickerWheelSelector.d.ts +3 -0
- package/dist/components/colorpicker/ColorWheelFlower.d.ts +7 -0
- package/dist/components/colorpicker/index.d.ts +23 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +735 -324
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { type JSX } from "solid-js";
|
|
|
2
2
|
import type { ColorFormat } from "./ColorUtils";
|
|
3
3
|
import { IComponentBaseProps } from "../types";
|
|
4
4
|
export type { ColorFormat } from "./ColorUtils";
|
|
5
|
-
export type ColorPickerMode = "picker" | "wheel";
|
|
5
|
+
export type ColorPickerMode = "picker" | "wheel" | "flower";
|
|
6
6
|
export interface ColorPickerProps extends IComponentBaseProps {
|
|
7
7
|
value?: string;
|
|
8
8
|
onChange?: (color: string) => void;
|
|
@@ -1,3 +1,26 @@
|
|
|
1
1
|
export { default as ColorPicker, default } from "./ColorPicker";
|
|
2
2
|
export type { ColorPickerProps, ColorFormat, ColorPickerMode } from "./ColorPicker";
|
|
3
|
+
export { default as ColorPickerGradientSelector } from "./ColorPickerGradientSelector";
|
|
4
|
+
export { default as ColorPickerWheelSelector } from "./ColorPickerWheelSelector";
|
|
5
|
+
export { default as ColorPickerFlowerSelector } from "./ColorPickerFlowerSelector";
|
|
6
|
+
export { default as SaturationBrightness } from "./SaturationBrightness";
|
|
7
|
+
export { default as HueSlider } from "./HueSlider";
|
|
8
|
+
export { default as LightnessSlider } from "./LightnessSlider";
|
|
9
|
+
export { default as AlphaSlider } from "./AlphaSlider";
|
|
10
|
+
export { default as ColorWheel } from "./ColorWheel";
|
|
11
|
+
export { default as ColorWheelFlower } from "./ColorWheelFlower";
|
|
12
|
+
export { default as ColorSwatches } from "./ColorSwatches";
|
|
13
|
+
export { default as ColorInput } from "./ColorInput";
|
|
14
|
+
export { default as ColorPreview } from "./ColorPreview";
|
|
15
|
+
export { ColorPickerContext, useColorPickerContext } from "./colorpickerContext";
|
|
16
|
+
export type { ColorPickerContextType } from "./colorpickerContext";
|
|
17
|
+
export type { SaturationBrightnessProps } from "./SaturationBrightness";
|
|
18
|
+
export type { HueSliderProps } from "./HueSlider";
|
|
19
|
+
export type { LightnessSliderProps } from "./LightnessSlider";
|
|
20
|
+
export type { AlphaSliderProps } from "./AlphaSlider";
|
|
21
|
+
export type { ColorWheelProps } from "./ColorWheel";
|
|
22
|
+
export type { ColorWheelFlowerProps } from "./ColorWheelFlower";
|
|
23
|
+
export type { ColorSwatchesProps } from "./ColorSwatches";
|
|
24
|
+
export type { ColorInputProps } from "./ColorInput";
|
|
25
|
+
export type { ColorPreviewProps } from "./ColorPreview";
|
|
3
26
|
export type { ColorValue, RGB, RGBA, HSL, HSLA } from "./ColorUtils";
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,8 @@ export type { CarouselItemProps, CarouselProps } from "./components/carousel";
|
|
|
16
16
|
export { default as ChatBubble } from "./components/chatbubble";
|
|
17
17
|
export { default as Checkbox } from "./components/checkbox";
|
|
18
18
|
export { default as ColorPicker } from "./components/colorpicker";
|
|
19
|
-
export
|
|
19
|
+
export { AlphaSlider, ColorInput, ColorPickerContext, ColorPickerFlowerSelector, ColorPickerGradientSelector, ColorPickerWheelSelector, ColorPreview, ColorSwatches, ColorWheel, ColorWheelFlower, HueSlider, LightnessSlider, SaturationBrightness, useColorPickerContext, } from "./components/colorpicker";
|
|
20
|
+
export type { AlphaSliderProps, ColorFormat, ColorInputProps, ColorPickerContextType, ColorPickerMode, ColorPickerProps, ColorPreviewProps, ColorSwatchesProps, ColorValue, ColorWheelFlowerProps, ColorWheelProps, HueSliderProps, LightnessSliderProps, SaturationBrightnessProps, } from "./components/colorpicker";
|
|
20
21
|
export { CodeMockup, CodeMockupLine } from "./components/codemockup";
|
|
21
22
|
export { Collapse, CollapseContent, CollapseDetails, CollapseTitle, Summary, } from "./components/collapse";
|
|
22
23
|
export { default as ConnectionStatus } from "./components/connectionstatus";
|
package/dist/index.js
CHANGED
|
@@ -6471,6 +6471,106 @@ function getDefaultColor() {
|
|
|
6471
6471
|
hex: "#ffffff"
|
|
6472
6472
|
};
|
|
6473
6473
|
}
|
|
6474
|
+
var AlphaSlider_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div role=slider aria-label="Alpha (opacity)"aria-valuemin=0 aria-valuemax=1><div class="absolute inset-0"></div><div class="absolute inset-0"></div><div>');
|
|
6475
|
+
const AlphaSlider_AlphaSlider = (props)=>{
|
|
6476
|
+
const context = useColorPickerContext();
|
|
6477
|
+
const [isDragging, setIsDragging] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
|
|
6478
|
+
let sliderRef;
|
|
6479
|
+
const alpha = ()=>context.color().hsl.a;
|
|
6480
|
+
const updateAlpha = (clientX)=>{
|
|
6481
|
+
if (!sliderRef || context.disabled()) return;
|
|
6482
|
+
const rect = sliderRef.getBoundingClientRect();
|
|
6483
|
+
const percentage = Math.max(0, Math.min(1, (clientX - rect.left) / rect.width));
|
|
6484
|
+
const newAlpha = Math.round(100 * percentage) / 100;
|
|
6485
|
+
const newColor = setAlpha(context.color(), newAlpha);
|
|
6486
|
+
context.onChange(newColor);
|
|
6487
|
+
};
|
|
6488
|
+
const handleMouseDown = (e)=>{
|
|
6489
|
+
if (context.disabled()) return;
|
|
6490
|
+
setIsDragging(true);
|
|
6491
|
+
updateAlpha(e.clientX);
|
|
6492
|
+
e.preventDefault();
|
|
6493
|
+
};
|
|
6494
|
+
const handleMouseMove = (e)=>{
|
|
6495
|
+
if (isDragging()) {
|
|
6496
|
+
updateAlpha(e.clientX);
|
|
6497
|
+
e.preventDefault();
|
|
6498
|
+
}
|
|
6499
|
+
};
|
|
6500
|
+
const handleMouseUp = ()=>{
|
|
6501
|
+
setIsDragging(false);
|
|
6502
|
+
};
|
|
6503
|
+
const handleKeyDown = (e)=>{
|
|
6504
|
+
if (context.disabled()) return;
|
|
6505
|
+
const step = e.shiftKey ? 0.1 : 0.01;
|
|
6506
|
+
let newAlpha = alpha();
|
|
6507
|
+
switch(e.key){
|
|
6508
|
+
case "ArrowLeft":
|
|
6509
|
+
case "ArrowDown":
|
|
6510
|
+
newAlpha = Math.max(0, alpha() - step);
|
|
6511
|
+
e.preventDefault();
|
|
6512
|
+
break;
|
|
6513
|
+
case "ArrowRight":
|
|
6514
|
+
case "ArrowUp":
|
|
6515
|
+
newAlpha = Math.min(1, alpha() + step);
|
|
6516
|
+
e.preventDefault();
|
|
6517
|
+
break;
|
|
6518
|
+
default:
|
|
6519
|
+
return;
|
|
6520
|
+
}
|
|
6521
|
+
const newColor = setAlpha(context.color(), newAlpha);
|
|
6522
|
+
context.onChange(newColor);
|
|
6523
|
+
};
|
|
6524
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onMount)(()=>{
|
|
6525
|
+
document.addEventListener("mousemove", handleMouseMove);
|
|
6526
|
+
document.addEventListener("mouseup", handleMouseUp);
|
|
6527
|
+
});
|
|
6528
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
6529
|
+
document.removeEventListener("mousemove", handleMouseMove);
|
|
6530
|
+
document.removeEventListener("mouseup", handleMouseUp);
|
|
6531
|
+
});
|
|
6532
|
+
const classes = ()=>twMerge("relative w-full h-6 rounded cursor-pointer select-none overflow-hidden", clsx({
|
|
6533
|
+
"opacity-50 cursor-not-allowed": context.disabled()
|
|
6534
|
+
}), props.class, props.className);
|
|
6535
|
+
const thumbClasses = ()=>twMerge("absolute top-1/2 w-4 h-4 border-2 border-white rounded-full shadow-lg transform -translate-x-1/2 -translate-y-1/2 pointer-events-none", clsx({
|
|
6536
|
+
"ring-2 ring-primary": isDragging()
|
|
6537
|
+
}));
|
|
6538
|
+
return (()=>{
|
|
6539
|
+
var _el$ = AlphaSlider_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling;
|
|
6540
|
+
_el$.$$keydown = handleKeyDown;
|
|
6541
|
+
_el$.$$mousedown = handleMouseDown;
|
|
6542
|
+
var _ref$ = sliderRef;
|
|
6543
|
+
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$) : sliderRef = _el$;
|
|
6544
|
+
_el$2.style.setProperty("background-image", "linear-gradient(45deg, hsl(var(--b3)) 25%, transparent 25%), linear-gradient(-45deg, hsl(var(--b3)) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, hsl(var(--b3)) 75%), linear-gradient(-45deg, transparent 75%, hsl(var(--b3)) 75%)");
|
|
6545
|
+
_el$2.style.setProperty("background-size", "8px 8px");
|
|
6546
|
+
_el$2.style.setProperty("background-position", "0 0, 0 4px, 4px -4px, -4px 0px");
|
|
6547
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
6548
|
+
var _v$ = classes(), _v$2 = context.disabled() ? -1 : 0, _v$3 = alpha(), _v$4 = context.disabled(), _v$5 = `linear-gradient(to right, transparent, ${context.color().hex})`, _v$6 = thumbClasses(), _v$7 = `${100 * alpha()}%`;
|
|
6549
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$);
|
|
6550
|
+
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "tabindex", _p$.t = _v$2);
|
|
6551
|
+
_v$3 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-valuenow", _p$.a = _v$3);
|
|
6552
|
+
_v$4 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-disabled", _p$.o = _v$4);
|
|
6553
|
+
_v$5 !== _p$.i && (null != (_p$.i = _v$5) ? _el$3.style.setProperty("background", _v$5) : _el$3.style.removeProperty("background"));
|
|
6554
|
+
_v$6 !== _p$.n && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$4, _p$.n = _v$6);
|
|
6555
|
+
_v$7 !== _p$.s && (null != (_p$.s = _v$7) ? _el$4.style.setProperty("left", _v$7) : _el$4.style.removeProperty("left"));
|
|
6556
|
+
return _p$;
|
|
6557
|
+
}, {
|
|
6558
|
+
e: void 0,
|
|
6559
|
+
t: void 0,
|
|
6560
|
+
a: void 0,
|
|
6561
|
+
o: void 0,
|
|
6562
|
+
i: void 0,
|
|
6563
|
+
n: void 0,
|
|
6564
|
+
s: void 0
|
|
6565
|
+
});
|
|
6566
|
+
return _el$;
|
|
6567
|
+
})();
|
|
6568
|
+
};
|
|
6569
|
+
const AlphaSlider = AlphaSlider_AlphaSlider;
|
|
6570
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
6571
|
+
"mousedown",
|
|
6572
|
+
"keydown"
|
|
6573
|
+
]);
|
|
6474
6574
|
var SaturationBrightness_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div role=slider aria-label="Saturation and brightness"aria-valuemin=0 aria-valuemax=100><div>');
|
|
6475
6575
|
const SaturationBrightness = (props)=>{
|
|
6476
6576
|
const context = useColorPickerContext();
|
|
@@ -6682,106 +6782,11 @@ const colorpicker_HueSlider = HueSlider;
|
|
|
6682
6782
|
"mousedown",
|
|
6683
6783
|
"keydown"
|
|
6684
6784
|
]);
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
const alpha = ()=>context.color().hsl.a;
|
|
6691
|
-
const updateAlpha = (clientX)=>{
|
|
6692
|
-
if (!sliderRef || context.disabled()) return;
|
|
6693
|
-
const rect = sliderRef.getBoundingClientRect();
|
|
6694
|
-
const percentage = Math.max(0, Math.min(1, (clientX - rect.left) / rect.width));
|
|
6695
|
-
const newAlpha = Math.round(100 * percentage) / 100;
|
|
6696
|
-
const newColor = setAlpha(context.color(), newAlpha);
|
|
6697
|
-
context.onChange(newColor);
|
|
6698
|
-
};
|
|
6699
|
-
const handleMouseDown = (e)=>{
|
|
6700
|
-
if (context.disabled()) return;
|
|
6701
|
-
setIsDragging(true);
|
|
6702
|
-
updateAlpha(e.clientX);
|
|
6703
|
-
e.preventDefault();
|
|
6704
|
-
};
|
|
6705
|
-
const handleMouseMove = (e)=>{
|
|
6706
|
-
if (isDragging()) {
|
|
6707
|
-
updateAlpha(e.clientX);
|
|
6708
|
-
e.preventDefault();
|
|
6709
|
-
}
|
|
6710
|
-
};
|
|
6711
|
-
const handleMouseUp = ()=>{
|
|
6712
|
-
setIsDragging(false);
|
|
6713
|
-
};
|
|
6714
|
-
const handleKeyDown = (e)=>{
|
|
6715
|
-
if (context.disabled()) return;
|
|
6716
|
-
const step = e.shiftKey ? 0.1 : 0.01;
|
|
6717
|
-
let newAlpha = alpha();
|
|
6718
|
-
switch(e.key){
|
|
6719
|
-
case "ArrowLeft":
|
|
6720
|
-
case "ArrowDown":
|
|
6721
|
-
newAlpha = Math.max(0, alpha() - step);
|
|
6722
|
-
e.preventDefault();
|
|
6723
|
-
break;
|
|
6724
|
-
case "ArrowRight":
|
|
6725
|
-
case "ArrowUp":
|
|
6726
|
-
newAlpha = Math.min(1, alpha() + step);
|
|
6727
|
-
e.preventDefault();
|
|
6728
|
-
break;
|
|
6729
|
-
default:
|
|
6730
|
-
return;
|
|
6731
|
-
}
|
|
6732
|
-
const newColor = setAlpha(context.color(), newAlpha);
|
|
6733
|
-
context.onChange(newColor);
|
|
6734
|
-
};
|
|
6735
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onMount)(()=>{
|
|
6736
|
-
document.addEventListener("mousemove", handleMouseMove);
|
|
6737
|
-
document.addEventListener("mouseup", handleMouseUp);
|
|
6738
|
-
});
|
|
6739
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
6740
|
-
document.removeEventListener("mousemove", handleMouseMove);
|
|
6741
|
-
document.removeEventListener("mouseup", handleMouseUp);
|
|
6742
|
-
});
|
|
6743
|
-
const classes = ()=>twMerge("relative w-full h-6 rounded cursor-pointer select-none overflow-hidden", clsx({
|
|
6744
|
-
"opacity-50 cursor-not-allowed": context.disabled()
|
|
6745
|
-
}), props.class, props.className);
|
|
6746
|
-
const thumbClasses = ()=>twMerge("absolute top-1/2 w-4 h-4 border-2 border-white rounded-full shadow-lg transform -translate-x-1/2 -translate-y-1/2 pointer-events-none", clsx({
|
|
6747
|
-
"ring-2 ring-primary": isDragging()
|
|
6748
|
-
}));
|
|
6749
|
-
return (()=>{
|
|
6750
|
-
var _el$ = AlphaSlider_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling;
|
|
6751
|
-
_el$.$$keydown = handleKeyDown;
|
|
6752
|
-
_el$.$$mousedown = handleMouseDown;
|
|
6753
|
-
var _ref$ = sliderRef;
|
|
6754
|
-
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$) : sliderRef = _el$;
|
|
6755
|
-
_el$2.style.setProperty("background-image", "linear-gradient(45deg, hsl(var(--b3)) 25%, transparent 25%), linear-gradient(-45deg, hsl(var(--b3)) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, hsl(var(--b3)) 75%), linear-gradient(-45deg, transparent 75%, hsl(var(--b3)) 75%)");
|
|
6756
|
-
_el$2.style.setProperty("background-size", "8px 8px");
|
|
6757
|
-
_el$2.style.setProperty("background-position", "0 0, 0 4px, 4px -4px, -4px 0px");
|
|
6758
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
6759
|
-
var _v$ = classes(), _v$2 = context.disabled() ? -1 : 0, _v$3 = alpha(), _v$4 = context.disabled(), _v$5 = `linear-gradient(to right, transparent, ${context.color().hex})`, _v$6 = thumbClasses(), _v$7 = `${100 * alpha()}%`;
|
|
6760
|
-
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$);
|
|
6761
|
-
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "tabindex", _p$.t = _v$2);
|
|
6762
|
-
_v$3 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-valuenow", _p$.a = _v$3);
|
|
6763
|
-
_v$4 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-disabled", _p$.o = _v$4);
|
|
6764
|
-
_v$5 !== _p$.i && (null != (_p$.i = _v$5) ? _el$3.style.setProperty("background", _v$5) : _el$3.style.removeProperty("background"));
|
|
6765
|
-
_v$6 !== _p$.n && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$4, _p$.n = _v$6);
|
|
6766
|
-
_v$7 !== _p$.s && (null != (_p$.s = _v$7) ? _el$4.style.setProperty("left", _v$7) : _el$4.style.removeProperty("left"));
|
|
6767
|
-
return _p$;
|
|
6768
|
-
}, {
|
|
6769
|
-
e: void 0,
|
|
6770
|
-
t: void 0,
|
|
6771
|
-
a: void 0,
|
|
6772
|
-
o: void 0,
|
|
6773
|
-
i: void 0,
|
|
6774
|
-
n: void 0,
|
|
6775
|
-
s: void 0
|
|
6776
|
-
});
|
|
6777
|
-
return _el$;
|
|
6778
|
-
})();
|
|
6779
|
-
};
|
|
6780
|
-
const AlphaSlider = AlphaSlider_AlphaSlider;
|
|
6781
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
6782
|
-
"mousedown",
|
|
6783
|
-
"keydown"
|
|
6784
|
-
]);
|
|
6785
|
+
const ColorPickerGradientSelector = ()=>[
|
|
6786
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(colorpicker_SaturationBrightness, {}),
|
|
6787
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(colorpicker_HueSlider, {})
|
|
6788
|
+
];
|
|
6789
|
+
const colorpicker_ColorPickerGradientSelector = ColorPickerGradientSelector;
|
|
6785
6790
|
var ColorWheel_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div role=slider aria-label="Color Wheel"><div>');
|
|
6786
6791
|
const ColorWheel_ColorWheel = (props)=>{
|
|
6787
6792
|
const context = useColorPickerContext();
|
|
@@ -6936,55 +6941,606 @@ const LightnessSlider_LightnessSlider = (props)=>{
|
|
|
6936
6941
|
document.addEventListener("mouseup", handleMouseUp);
|
|
6937
6942
|
});
|
|
6938
6943
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
6939
|
-
document.removeEventListener("mousemove", handleMouseMove);
|
|
6940
|
-
document.removeEventListener("mouseup", handleMouseUp);
|
|
6944
|
+
document.removeEventListener("mousemove", handleMouseMove);
|
|
6945
|
+
document.removeEventListener("mouseup", handleMouseUp);
|
|
6946
|
+
});
|
|
6947
|
+
const classes = ()=>twMerge("relative w-full h-6 rounded cursor-pointer select-none", clsx({
|
|
6948
|
+
"opacity-50 cursor-not-allowed": context.disabled()
|
|
6949
|
+
}), props.class, props.className);
|
|
6950
|
+
const thumbClasses = ()=>twMerge("absolute top-1/2 w-4 h-4 border-2 border-white rounded-full shadow-lg transform -translate-x-1/2 -translate-y-1/2 pointer-events-none", clsx({
|
|
6951
|
+
"ring-2 ring-primary": isDragging()
|
|
6952
|
+
}));
|
|
6953
|
+
const gradientStyle = ()=>{
|
|
6954
|
+
const h = context.color().hsl.h;
|
|
6955
|
+
const s = context.color().hsl.s;
|
|
6956
|
+
return `linear-gradient(to right, hsl(${h}, ${s}%, 0%), hsl(${h}, ${s}%, 50%), hsl(${h}, ${s}%, 100%))`;
|
|
6957
|
+
};
|
|
6958
|
+
return (()=>{
|
|
6959
|
+
var _el$ = LightnessSlider_tmpl$(), _el$2 = _el$.firstChild;
|
|
6960
|
+
_el$.$$keydown = handleKeyDown;
|
|
6961
|
+
_el$.$$mousedown = handleMouseDown;
|
|
6962
|
+
var _ref$ = sliderRef;
|
|
6963
|
+
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$) : sliderRef = _el$;
|
|
6964
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
6965
|
+
var _v$ = classes(), _v$2 = gradientStyle(), _v$3 = context.disabled() ? -1 : 0, _v$4 = lightness(), _v$5 = context.disabled(), _v$6 = thumbClasses(), _v$7 = `${lightness()}%`, _v$8 = `hsl(${context.color().hsl.h}, ${context.color().hsl.s}%, ${lightness()}%)`;
|
|
6966
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$);
|
|
6967
|
+
_v$2 !== _p$.t && (null != (_p$.t = _v$2) ? _el$.style.setProperty("background", _v$2) : _el$.style.removeProperty("background"));
|
|
6968
|
+
_v$3 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "tabindex", _p$.a = _v$3);
|
|
6969
|
+
_v$4 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-valuenow", _p$.o = _v$4);
|
|
6970
|
+
_v$5 !== _p$.i && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-disabled", _p$.i = _v$5);
|
|
6971
|
+
_v$6 !== _p$.n && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, _p$.n = _v$6);
|
|
6972
|
+
_v$7 !== _p$.s && (null != (_p$.s = _v$7) ? _el$2.style.setProperty("left", _v$7) : _el$2.style.removeProperty("left"));
|
|
6973
|
+
_v$8 !== _p$.h && (null != (_p$.h = _v$8) ? _el$2.style.setProperty("background-color", _v$8) : _el$2.style.removeProperty("background-color"));
|
|
6974
|
+
return _p$;
|
|
6975
|
+
}, {
|
|
6976
|
+
e: void 0,
|
|
6977
|
+
t: void 0,
|
|
6978
|
+
a: void 0,
|
|
6979
|
+
o: void 0,
|
|
6980
|
+
i: void 0,
|
|
6981
|
+
n: void 0,
|
|
6982
|
+
s: void 0,
|
|
6983
|
+
h: void 0
|
|
6984
|
+
});
|
|
6985
|
+
return _el$;
|
|
6986
|
+
})();
|
|
6987
|
+
};
|
|
6988
|
+
const LightnessSlider = LightnessSlider_LightnessSlider;
|
|
6989
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
6990
|
+
"mousedown",
|
|
6991
|
+
"keydown"
|
|
6992
|
+
]);
|
|
6993
|
+
const ColorPickerWheelSelector_ColorPickerWheelSelector = ()=>[
|
|
6994
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(ColorWheel, {}),
|
|
6995
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(LightnessSlider, {})
|
|
6996
|
+
];
|
|
6997
|
+
const ColorPickerWheelSelector = ColorPickerWheelSelector_ColorPickerWheelSelector;
|
|
6998
|
+
const prefersReducedMotion = ()=>globalThis.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches ?? false;
|
|
6999
|
+
const motionDurations = {
|
|
7000
|
+
route: 0.18,
|
|
7001
|
+
routeAuth: 0.35,
|
|
7002
|
+
fast: 0.2,
|
|
7003
|
+
base: 0.3,
|
|
7004
|
+
slow: 0.45
|
|
7005
|
+
};
|
|
7006
|
+
const motionEasings = {
|
|
7007
|
+
out: "ease-out",
|
|
7008
|
+
inOut: "ease-in-out"
|
|
7009
|
+
};
|
|
7010
|
+
const motionDistances = {
|
|
7011
|
+
sm: 6,
|
|
7012
|
+
md: 12,
|
|
7013
|
+
lg: 20,
|
|
7014
|
+
slideIn: 40
|
|
7015
|
+
};
|
|
7016
|
+
const defaultMotionTokens = {
|
|
7017
|
+
durations: {
|
|
7018
|
+
...motionDurations
|
|
7019
|
+
},
|
|
7020
|
+
easings: {
|
|
7021
|
+
...motionEasings
|
|
7022
|
+
},
|
|
7023
|
+
distances: {
|
|
7024
|
+
...motionDistances
|
|
7025
|
+
}
|
|
7026
|
+
};
|
|
7027
|
+
const mergeDefined = (base, overrides)=>{
|
|
7028
|
+
const next = {
|
|
7029
|
+
...base
|
|
7030
|
+
};
|
|
7031
|
+
if (!overrides) return next;
|
|
7032
|
+
for (const [key, value] of Object.entries(overrides))if (void 0 !== value) next[key] = value;
|
|
7033
|
+
return next;
|
|
7034
|
+
};
|
|
7035
|
+
const mergeMotionTokens = (base, overrides)=>({
|
|
7036
|
+
durations: mergeDefined(base.durations, overrides?.durations),
|
|
7037
|
+
easings: mergeDefined(base.easings, overrides?.easings),
|
|
7038
|
+
distances: mergeDefined(base.distances, overrides?.distances)
|
|
7039
|
+
});
|
|
7040
|
+
const immediateDriver = ({ to, onUpdate, onComplete })=>{
|
|
7041
|
+
onUpdate(to);
|
|
7042
|
+
onComplete?.();
|
|
7043
|
+
return {
|
|
7044
|
+
stop: ()=>{}
|
|
7045
|
+
};
|
|
7046
|
+
};
|
|
7047
|
+
let activeDriver = immediateDriver;
|
|
7048
|
+
const setMotionDriver = (driver)=>{
|
|
7049
|
+
activeDriver = driver;
|
|
7050
|
+
};
|
|
7051
|
+
const getMotionDriver = ()=>activeDriver;
|
|
7052
|
+
const easeOutCubic = (t)=>1 - Math.pow(1 - t, 3);
|
|
7053
|
+
const easeInCubic = (t)=>t * t * t;
|
|
7054
|
+
const easeInOutCubic = (t)=>t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
|
|
7055
|
+
const resolveEase = (easing)=>{
|
|
7056
|
+
if ("function" == typeof easing) return easing;
|
|
7057
|
+
switch(easing){
|
|
7058
|
+
case "ease-in":
|
|
7059
|
+
return easeInCubic;
|
|
7060
|
+
case "ease-in-out":
|
|
7061
|
+
return easeInOutCubic;
|
|
7062
|
+
case "linear":
|
|
7063
|
+
return (t)=>t;
|
|
7064
|
+
case "ease-out":
|
|
7065
|
+
default:
|
|
7066
|
+
return easeOutCubic;
|
|
7067
|
+
}
|
|
7068
|
+
};
|
|
7069
|
+
const resolveDuration = (transition)=>Math.max(0, (transition?.duration ?? 0) * 1000);
|
|
7070
|
+
const resolveDelay = (transition)=>Math.max(0, (transition?.delay ?? 0) * 1000);
|
|
7071
|
+
const readOpacity = (el)=>{
|
|
7072
|
+
const value = Number.parseFloat(getComputedStyle(el).opacity);
|
|
7073
|
+
return Number.isFinite(value) ? value : 1;
|
|
7074
|
+
};
|
|
7075
|
+
const runMotion = (el, from, to, transition, onComplete)=>{
|
|
7076
|
+
const duration = resolveDuration(transition);
|
|
7077
|
+
const delay = resolveDelay(transition);
|
|
7078
|
+
const ease = resolveEase(transition?.easing);
|
|
7079
|
+
const driver = getMotionDriver();
|
|
7080
|
+
const controls = [];
|
|
7081
|
+
const shouldTransform = void 0 !== from.x || void 0 !== from.y || void 0 !== from.scale || void 0 !== to.x || void 0 !== to.y || void 0 !== to.scale;
|
|
7082
|
+
const transformState = {
|
|
7083
|
+
x: from.x ?? 0,
|
|
7084
|
+
y: from.y ?? 0,
|
|
7085
|
+
scale: from.scale ?? 1
|
|
7086
|
+
};
|
|
7087
|
+
const applyTransform = ()=>{
|
|
7088
|
+
if (!shouldTransform) return;
|
|
7089
|
+
el.style.transform = `translate3d(${transformState.x}px, ${transformState.y}px, 0) scale(${transformState.scale})`;
|
|
7090
|
+
};
|
|
7091
|
+
if (void 0 !== from.opacity) el.style.opacity = String(from.opacity);
|
|
7092
|
+
applyTransform();
|
|
7093
|
+
const animationTargets = Object.keys(to);
|
|
7094
|
+
if (0 === animationTargets.length) {
|
|
7095
|
+
onComplete?.();
|
|
7096
|
+
return {
|
|
7097
|
+
stop: ()=>{}
|
|
7098
|
+
};
|
|
7099
|
+
}
|
|
7100
|
+
let remaining = animationTargets.length;
|
|
7101
|
+
const handleComplete = ()=>{
|
|
7102
|
+
remaining -= 1;
|
|
7103
|
+
if (remaining <= 0) onComplete?.();
|
|
7104
|
+
};
|
|
7105
|
+
const start = ()=>{
|
|
7106
|
+
animationTargets.forEach((key)=>{
|
|
7107
|
+
if ("opacity" === key) {
|
|
7108
|
+
const fromValue = from.opacity ?? (void 0 !== to.opacity ? readOpacity(el) : 1);
|
|
7109
|
+
const control = driver({
|
|
7110
|
+
from: fromValue,
|
|
7111
|
+
to: to.opacity ?? fromValue,
|
|
7112
|
+
duration,
|
|
7113
|
+
ease,
|
|
7114
|
+
onUpdate: (latest)=>{
|
|
7115
|
+
el.style.opacity = String(latest);
|
|
7116
|
+
},
|
|
7117
|
+
onComplete: handleComplete
|
|
7118
|
+
});
|
|
7119
|
+
controls.push(control);
|
|
7120
|
+
return;
|
|
7121
|
+
}
|
|
7122
|
+
const fromValue = "scale" === key ? from.scale ?? 1 : "x" === key ? from.x ?? 0 : from.y ?? 0;
|
|
7123
|
+
const toValue = to[key] ?? fromValue;
|
|
7124
|
+
const control = driver({
|
|
7125
|
+
from: fromValue,
|
|
7126
|
+
to: toValue,
|
|
7127
|
+
duration,
|
|
7128
|
+
ease,
|
|
7129
|
+
onUpdate: (latest)=>{
|
|
7130
|
+
if (!shouldTransform) return;
|
|
7131
|
+
if ("x" === key) transformState.x = latest;
|
|
7132
|
+
if ("y" === key) transformState.y = latest;
|
|
7133
|
+
if ("scale" === key) transformState.scale = latest;
|
|
7134
|
+
applyTransform();
|
|
7135
|
+
},
|
|
7136
|
+
onComplete: handleComplete
|
|
7137
|
+
});
|
|
7138
|
+
controls.push(control);
|
|
7139
|
+
});
|
|
7140
|
+
};
|
|
7141
|
+
let timeoutId = null;
|
|
7142
|
+
if (delay > 0) timeoutId = window.setTimeout(start, delay);
|
|
7143
|
+
else start();
|
|
7144
|
+
return {
|
|
7145
|
+
stop: ()=>{
|
|
7146
|
+
if (null !== timeoutId) clearTimeout(timeoutId);
|
|
7147
|
+
controls.forEach((control)=>control.stop());
|
|
7148
|
+
}
|
|
7149
|
+
};
|
|
7150
|
+
};
|
|
7151
|
+
var ColorWheelFlower_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="absolute inset-0"><div class="absolute inset-0"><div class="absolute inset-0 rounded-full"></div></div><div class="absolute inset-0"><div class="absolute inset-0 rounded-full"></div></div></div><div class="relative z-10 w-[calc(100%-5px)] h-[calc(100%-5px)] rounded-full">'), ColorWheelFlower_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class=absolute><div class="relative w-[32px] h-[32px]"><span class="absolute rounded-full pointer-events-none"></span><button type=button><span>');
|
|
7152
|
+
const parseRgbToHsl = (rgbString)=>{
|
|
7153
|
+
const match = rgbString.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
|
|
7154
|
+
if (!match) return {
|
|
7155
|
+
hue: 0,
|
|
7156
|
+
saturation: 0,
|
|
7157
|
+
lightness: 100
|
|
7158
|
+
};
|
|
7159
|
+
const r = parseInt(match[1]);
|
|
7160
|
+
const g = parseInt(match[2]);
|
|
7161
|
+
const b = parseInt(match[3]);
|
|
7162
|
+
const hsl = rgbToHsl(r, g, b);
|
|
7163
|
+
return {
|
|
7164
|
+
hue: hsl.h,
|
|
7165
|
+
saturation: hsl.s,
|
|
7166
|
+
lightness: hsl.l
|
|
7167
|
+
};
|
|
7168
|
+
};
|
|
7169
|
+
const createColorItem = (rgb, offsetX, offsetY)=>({
|
|
7170
|
+
rgb,
|
|
7171
|
+
offsetX,
|
|
7172
|
+
offsetY,
|
|
7173
|
+
...parseRgbToHsl(rgb)
|
|
7174
|
+
});
|
|
7175
|
+
const readMotionState = (el)=>{
|
|
7176
|
+
const styles = getComputedStyle(el);
|
|
7177
|
+
const opacityValue = Number.parseFloat(styles.opacity);
|
|
7178
|
+
const opacity = Number.isFinite(opacityValue) ? opacityValue : 1;
|
|
7179
|
+
const transform = styles.transform;
|
|
7180
|
+
if (!transform || "none" === transform) return {
|
|
7181
|
+
opacity,
|
|
7182
|
+
x: 0,
|
|
7183
|
+
y: 0,
|
|
7184
|
+
scale: 1
|
|
7185
|
+
};
|
|
7186
|
+
if ("undefined" != typeof DOMMatrixReadOnly) {
|
|
7187
|
+
const matrix = new DOMMatrixReadOnly(transform);
|
|
7188
|
+
return {
|
|
7189
|
+
opacity,
|
|
7190
|
+
x: matrix.m41,
|
|
7191
|
+
y: matrix.m42,
|
|
7192
|
+
scale: matrix.a
|
|
7193
|
+
};
|
|
7194
|
+
}
|
|
7195
|
+
const matrixMatch = transform.match(/matrix\(([^)]+)\)/);
|
|
7196
|
+
if (!matrixMatch) return {
|
|
7197
|
+
opacity,
|
|
7198
|
+
x: 0,
|
|
7199
|
+
y: 0,
|
|
7200
|
+
scale: 1
|
|
7201
|
+
};
|
|
7202
|
+
const values = matrixMatch[1].split(",").map((value)=>Number.parseFloat(value.trim()));
|
|
7203
|
+
return {
|
|
7204
|
+
opacity,
|
|
7205
|
+
scale: Number.isFinite(values[0]) ? values[0] : 1,
|
|
7206
|
+
x: Number.isFinite(values[4]) ? values[4] : 0,
|
|
7207
|
+
y: Number.isFinite(values[5]) ? values[5] : 0
|
|
7208
|
+
};
|
|
7209
|
+
};
|
|
7210
|
+
const getLiftOffset = (item, distance)=>{
|
|
7211
|
+
const radius = Math.sqrt(item.offsetX ** 2 + item.offsetY ** 2);
|
|
7212
|
+
if (!Number.isFinite(radius) || 0 === radius) return {
|
|
7213
|
+
x: 0,
|
|
7214
|
+
y: 0
|
|
7215
|
+
};
|
|
7216
|
+
return {
|
|
7217
|
+
x: item.offsetX / radius * distance,
|
|
7218
|
+
y: item.offsetY / radius * distance
|
|
7219
|
+
};
|
|
7220
|
+
};
|
|
7221
|
+
const easeOutBack = (overshoot = 1.4)=>(t)=>{
|
|
7222
|
+
const c1 = overshoot;
|
|
7223
|
+
const c3 = c1 + 1;
|
|
7224
|
+
return 1 + c3 * (t - 1) ** 3 + c1 * (t - 1) ** 2;
|
|
7225
|
+
};
|
|
7226
|
+
const COLORS = [
|
|
7227
|
+
createColorItem("rgb(245,245,61)", 34.641, -20),
|
|
7228
|
+
createColorItem("rgb(245,153,61)", 20, -34.641),
|
|
7229
|
+
createColorItem("rgb(245,61,61)", 0, -40),
|
|
7230
|
+
createColorItem("rgb(245,61,153)", -20, -34.641),
|
|
7231
|
+
createColorItem("rgb(245,61,245)", -34.641, -20),
|
|
7232
|
+
createColorItem("rgb(153,61,245)", -40, 0),
|
|
7233
|
+
createColorItem("rgb(61,61,245)", -34.641, 20),
|
|
7234
|
+
createColorItem("rgb(61,153,245)", -20, 34.641),
|
|
7235
|
+
createColorItem("rgb(61,245,245)", 0, 40),
|
|
7236
|
+
createColorItem("rgb(61,245,153)", 20, 34.641),
|
|
7237
|
+
createColorItem("rgb(61,245,61)", 34.641, 20),
|
|
7238
|
+
createColorItem("rgb(153,245,61)", 40, 0),
|
|
7239
|
+
createColorItem("rgb(240,217,194)", 10, -17.3205),
|
|
7240
|
+
createColorItem("rgb(240,194,217)", -10, -17.3205),
|
|
7241
|
+
createColorItem("rgb(217,194,240)", -20, 0),
|
|
7242
|
+
createColorItem("rgb(194,217,240)", -10, 17.3205),
|
|
7243
|
+
createColorItem("rgb(194,240,217)", 10, 17.3205),
|
|
7244
|
+
createColorItem("rgb(217,240,194)", 20, 0),
|
|
7245
|
+
createColorItem("rgb(255,255,255)", 0, 0)
|
|
7246
|
+
];
|
|
7247
|
+
const MAX_WAVE_DISTANCE = 2 * Math.max(...COLORS.map((item)=>Math.sqrt(item.offsetX ** 2 + item.offsetY ** 2)));
|
|
7248
|
+
const MAX_WAVE_DELAY = 0.12;
|
|
7249
|
+
const RAINBOW_GRADIENT = `conic-gradient(
|
|
7250
|
+
from 0deg,
|
|
7251
|
+
rgb(245,61,61) 0deg,
|
|
7252
|
+
rgb(245,153,61) 30deg,
|
|
7253
|
+
rgb(245,245,61) 60deg,
|
|
7254
|
+
rgb(61,245,61) 120deg,
|
|
7255
|
+
rgb(61,245,245) 180deg,
|
|
7256
|
+
rgb(61,61,245) 240deg,
|
|
7257
|
+
rgb(245,61,245) 300deg,
|
|
7258
|
+
rgb(245,61,61) 360deg
|
|
7259
|
+
)`;
|
|
7260
|
+
const ColorWheelFlower = (props)=>{
|
|
7261
|
+
const context = useColorPickerContext();
|
|
7262
|
+
const [selectedIndex, setSelectedIndex] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(null);
|
|
7263
|
+
const [hoveredIndex, setHoveredIndex] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(null);
|
|
7264
|
+
const [pressedIndex, setPressedIndex] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(null);
|
|
7265
|
+
const reduceMotion = prefersReducedMotion();
|
|
7266
|
+
const ringTransition = reduceMotion ? {
|
|
7267
|
+
duration: 0
|
|
7268
|
+
} : {
|
|
7269
|
+
duration: motionDurations.slow,
|
|
7270
|
+
easing: motionEasings.inOut
|
|
7271
|
+
};
|
|
7272
|
+
const hoverLift = reduceMotion ? 0 : motionDistances.sm;
|
|
7273
|
+
const selectLift = reduceMotion ? 0 : motionDistances.md;
|
|
7274
|
+
const pressScale = 0.96;
|
|
7275
|
+
let outerRingRef;
|
|
7276
|
+
let outerRingControl = null;
|
|
7277
|
+
const handleDotClick = (index)=>{
|
|
7278
|
+
if (context.disabled()) return;
|
|
7279
|
+
if (selectedIndex() === index) {
|
|
7280
|
+
setSelectedIndex(null);
|
|
7281
|
+
const whiteColor = createColorFromHsl(0, 0, 100, context.color().hsl.a);
|
|
7282
|
+
context.onChange(whiteColor);
|
|
7283
|
+
} else {
|
|
7284
|
+
setSelectedIndex(index);
|
|
7285
|
+
const color = COLORS[index];
|
|
7286
|
+
const newColor = createColorFromHsl(color.hue, color.saturation, color.lightness, context.color().hsl.a);
|
|
7287
|
+
context.onChange(newColor);
|
|
7288
|
+
}
|
|
7289
|
+
};
|
|
7290
|
+
const containerClasses = ()=>twMerge("relative w-[140px] h-[140px] flex items-center justify-center", clsx({
|
|
7291
|
+
"opacity-50 cursor-not-allowed": context.disabled()
|
|
7292
|
+
}), props.class, props.className);
|
|
7293
|
+
const outerRingBackground = ()=>{
|
|
7294
|
+
const idx = selectedIndex();
|
|
7295
|
+
return null === idx ? RAINBOW_GRADIENT : `conic-gradient(${COLORS[idx].rgb}, ${COLORS[idx].rgb})`;
|
|
7296
|
+
};
|
|
7297
|
+
const outerRingTarget = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
7298
|
+
if (context.disabled()) return {
|
|
7299
|
+
opacity: 0.5,
|
|
7300
|
+
scale: 1
|
|
7301
|
+
};
|
|
7302
|
+
if (null !== selectedIndex()) return {
|
|
7303
|
+
opacity: 1,
|
|
7304
|
+
scale: 1.06
|
|
7305
|
+
};
|
|
7306
|
+
if (null !== hoveredIndex()) return {
|
|
7307
|
+
opacity: 0.98,
|
|
7308
|
+
scale: 1.03
|
|
7309
|
+
};
|
|
7310
|
+
return {
|
|
7311
|
+
opacity: 0.92,
|
|
7312
|
+
scale: 1
|
|
7313
|
+
};
|
|
7314
|
+
});
|
|
7315
|
+
const outerRingGlow = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
7316
|
+
if (context.disabled()) return "none";
|
|
7317
|
+
const idx = hoveredIndex() ?? selectedIndex();
|
|
7318
|
+
if (null === idx) return "0 0 12px rgba(255,255,255,0.12)";
|
|
7319
|
+
const color = COLORS[idx].rgb;
|
|
7320
|
+
return `0 0 12px rgba(255,255,255,0.35), 0 0 28px ${color}`;
|
|
7321
|
+
});
|
|
7322
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
7323
|
+
if (!outerRingRef) return;
|
|
7324
|
+
const target = outerRingTarget();
|
|
7325
|
+
outerRingControl?.stop();
|
|
7326
|
+
outerRingControl = runMotion(outerRingRef, readMotionState(outerRingRef), target, ringTransition);
|
|
7327
|
+
});
|
|
7328
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
7329
|
+
outerRingControl?.stop();
|
|
6941
7330
|
});
|
|
6942
|
-
const classes = ()=>twMerge("relative w-full h-6 rounded cursor-pointer select-none", clsx({
|
|
6943
|
-
"opacity-50 cursor-not-allowed": context.disabled()
|
|
6944
|
-
}), props.class, props.className);
|
|
6945
|
-
const thumbClasses = ()=>twMerge("absolute top-1/2 w-4 h-4 border-2 border-white rounded-full shadow-lg transform -translate-x-1/2 -translate-y-1/2 pointer-events-none", clsx({
|
|
6946
|
-
"ring-2 ring-primary": isDragging()
|
|
6947
|
-
}));
|
|
6948
|
-
const gradientStyle = ()=>{
|
|
6949
|
-
const h = context.color().hsl.h;
|
|
6950
|
-
const s = context.color().hsl.s;
|
|
6951
|
-
return `linear-gradient(to right, hsl(${h}, ${s}%, 0%), hsl(${h}, ${s}%, 50%), hsl(${h}, ${s}%, 100%))`;
|
|
6952
|
-
};
|
|
6953
7331
|
return (()=>{
|
|
6954
|
-
var _el$ =
|
|
6955
|
-
_el
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
"
|
|
7332
|
+
var _el$ = ColorWheelFlower_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$3.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$2.nextSibling;
|
|
7333
|
+
_el$3.style.setProperty("transform", "scale(1.1)");
|
|
7334
|
+
var _ref$ = outerRingRef;
|
|
7335
|
+
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$4) : outerRingRef = _el$4;
|
|
7336
|
+
_el$4.style.setProperty("transition", reduceMotion ? "none" : "background 450ms ease-in-out, box-shadow 300ms ease-out");
|
|
7337
|
+
_el$5.style.setProperty("transform", "scale(0.9)");
|
|
7338
|
+
_el$6.style.setProperty("background", "#0b1012");
|
|
7339
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$7, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
7340
|
+
each: COLORS,
|
|
7341
|
+
children: (item, index)=>{
|
|
7342
|
+
let motionRef;
|
|
7343
|
+
let dotControl = null;
|
|
7344
|
+
const isSelected = ()=>selectedIndex() === index();
|
|
7345
|
+
const isHovered = ()=>hoveredIndex() === index();
|
|
7346
|
+
const isPressed = ()=>pressedIndex() === index();
|
|
7347
|
+
const hasSelection = ()=>null !== selectedIndex();
|
|
7348
|
+
const hasHover = ()=>null !== hoveredIndex();
|
|
7349
|
+
const dotBaseTarget = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
7350
|
+
if (context.disabled()) return {
|
|
7351
|
+
opacity: 0.5,
|
|
7352
|
+
scale: 1,
|
|
7353
|
+
x: 0,
|
|
7354
|
+
y: 0
|
|
7355
|
+
};
|
|
7356
|
+
if (isSelected()) {
|
|
7357
|
+
const lift = getLiftOffset(item, selectLift);
|
|
7358
|
+
return {
|
|
7359
|
+
opacity: 1,
|
|
7360
|
+
scale: 1.18,
|
|
7361
|
+
x: lift.x,
|
|
7362
|
+
y: lift.y
|
|
7363
|
+
};
|
|
7364
|
+
}
|
|
7365
|
+
if (isHovered()) {
|
|
7366
|
+
const lift = getLiftOffset(item, hoverLift);
|
|
7367
|
+
return {
|
|
7368
|
+
opacity: 1,
|
|
7369
|
+
scale: 1.1,
|
|
7370
|
+
x: lift.x,
|
|
7371
|
+
y: lift.y
|
|
7372
|
+
};
|
|
7373
|
+
}
|
|
7374
|
+
if (hasSelection()) return {
|
|
7375
|
+
opacity: 1,
|
|
7376
|
+
scale: 0.98,
|
|
7377
|
+
x: 0,
|
|
7378
|
+
y: 0
|
|
7379
|
+
};
|
|
7380
|
+
if (hasHover()) return {
|
|
7381
|
+
opacity: 1,
|
|
7382
|
+
scale: 0.99,
|
|
7383
|
+
x: 0,
|
|
7384
|
+
y: 0
|
|
7385
|
+
};
|
|
7386
|
+
return {
|
|
7387
|
+
opacity: 1,
|
|
7388
|
+
scale: 1,
|
|
7389
|
+
x: 0,
|
|
7390
|
+
y: 0
|
|
7391
|
+
};
|
|
7392
|
+
});
|
|
7393
|
+
const dotTarget = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
7394
|
+
const base = dotBaseTarget();
|
|
7395
|
+
if (!isPressed()) return base;
|
|
7396
|
+
return {
|
|
7397
|
+
...base,
|
|
7398
|
+
scale: (base.scale ?? 1) * pressScale
|
|
7399
|
+
};
|
|
7400
|
+
});
|
|
7401
|
+
const glowOpacity = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
7402
|
+
if (context.disabled()) return 0;
|
|
7403
|
+
if (isHovered()) return 1;
|
|
7404
|
+
if (isSelected()) return 0.75;
|
|
7405
|
+
return 0;
|
|
7406
|
+
});
|
|
7407
|
+
const dotTransition = ()=>{
|
|
7408
|
+
if (reduceMotion) return {
|
|
7409
|
+
duration: 0
|
|
7410
|
+
};
|
|
7411
|
+
const anchorIndex = hoveredIndex() ?? selectedIndex();
|
|
7412
|
+
let delay = 0;
|
|
7413
|
+
if (null !== anchorIndex) {
|
|
7414
|
+
const anchor = COLORS[anchorIndex];
|
|
7415
|
+
const distance = Math.sqrt((item.offsetX - anchor.offsetX) ** 2 + (item.offsetY - anchor.offsetY) ** 2);
|
|
7416
|
+
delay = Math.min(MAX_WAVE_DELAY, distance / MAX_WAVE_DISTANCE * MAX_WAVE_DELAY);
|
|
7417
|
+
}
|
|
7418
|
+
if (isSelected()) return {
|
|
7419
|
+
duration: motionDurations.fast,
|
|
7420
|
+
easing: easeOutBack(1.25),
|
|
7421
|
+
delay
|
|
7422
|
+
};
|
|
7423
|
+
if (isHovered()) return {
|
|
7424
|
+
duration: motionDurations.fast,
|
|
7425
|
+
easing: motionEasings.out,
|
|
7426
|
+
delay
|
|
7427
|
+
};
|
|
7428
|
+
return {
|
|
7429
|
+
duration: motionDurations.base,
|
|
7430
|
+
easing: motionEasings.out,
|
|
7431
|
+
delay
|
|
7432
|
+
};
|
|
7433
|
+
};
|
|
7434
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
7435
|
+
if (!motionRef) return;
|
|
7436
|
+
const target = dotTarget();
|
|
7437
|
+
const transition = dotTransition();
|
|
7438
|
+
dotControl?.stop();
|
|
7439
|
+
dotControl = runMotion(motionRef, readMotionState(motionRef), target, transition);
|
|
7440
|
+
});
|
|
7441
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
7442
|
+
dotControl?.stop();
|
|
7443
|
+
});
|
|
7444
|
+
return (()=>{
|
|
7445
|
+
var _el$8 = ColorWheelFlower_tmpl$2(), _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$1.firstChild;
|
|
7446
|
+
_el$8.style.setProperty("transform", "translate(-50%, -50%)");
|
|
7447
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)((el)=>{
|
|
7448
|
+
motionRef = el;
|
|
7449
|
+
}, _el$9);
|
|
7450
|
+
_el$0.style.setProperty("top", "-5px");
|
|
7451
|
+
_el$0.style.setProperty("left", "-5px");
|
|
7452
|
+
_el$0.style.setProperty("right", "-5px");
|
|
7453
|
+
_el$0.style.setProperty("bottom", "-5px");
|
|
7454
|
+
_el$0.style.setProperty("background", "radial-gradient(circle, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 65%)");
|
|
7455
|
+
_el$0.style.setProperty("transition", reduceMotion ? "none" : "opacity 200ms ease-out, box-shadow 200ms ease-out");
|
|
7456
|
+
_el$1.addEventListener("pointercancel", ()=>{
|
|
7457
|
+
if (!context.disabled()) setPressedIndex(null);
|
|
7458
|
+
});
|
|
7459
|
+
_el$1.addEventListener("pointerleave", ()=>{
|
|
7460
|
+
if (!context.disabled()) setPressedIndex(null);
|
|
7461
|
+
});
|
|
7462
|
+
_el$1.$$pointerup = ()=>{
|
|
7463
|
+
if (!context.disabled()) setPressedIndex(null);
|
|
7464
|
+
};
|
|
7465
|
+
_el$1.$$pointerdown = ()=>{
|
|
7466
|
+
if (!context.disabled()) setPressedIndex(index());
|
|
7467
|
+
};
|
|
7468
|
+
_el$1.addEventListener("blur", ()=>{
|
|
7469
|
+
if (!context.disabled()) setHoveredIndex(null);
|
|
7470
|
+
});
|
|
7471
|
+
_el$1.addEventListener("focus", ()=>{
|
|
7472
|
+
if (!context.disabled()) setHoveredIndex(index());
|
|
7473
|
+
});
|
|
7474
|
+
_el$1.addEventListener("mouseleave", ()=>{
|
|
7475
|
+
if (!context.disabled()) setHoveredIndex(null);
|
|
7476
|
+
});
|
|
7477
|
+
_el$1.addEventListener("mouseenter", ()=>{
|
|
7478
|
+
if (!context.disabled()) setHoveredIndex(index());
|
|
7479
|
+
});
|
|
7480
|
+
_el$1.$$click = ()=>handleDotClick(index());
|
|
7481
|
+
_el$1.style.setProperty("transition", reduceMotion ? "none" : "box-shadow 200ms ease-out");
|
|
7482
|
+
_el$10.style.setProperty("mix-blend-mode", "overlay");
|
|
7483
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
7484
|
+
var _v$4 = `calc(50% + ${item.offsetX}px)`, _v$5 = `calc(50% + ${item.offsetY}px)`, _v$6 = glowOpacity(), _v$7 = `0 0 16px ${item.rgb}, 0 0 6px rgba(255,255,255,0.6)`, _v$8 = context.disabled() ? -1 : 0, _v$9 = clsx("w-full h-full rounded-full", "transition-shadow duration-200 ease-out", "focus:outline-none focus:ring-2 focus:ring-white/50", "relative z-10", {
|
|
7485
|
+
"cursor-not-allowed": context.disabled(),
|
|
7486
|
+
"cursor-pointer": !context.disabled()
|
|
7487
|
+
}), _v$0 = item.rgb, _v$1 = isSelected() ? "0 6px 16px rgba(0,0,0,0.35)" : isHovered() ? "0 4px 12px rgba(0,0,0,0.3)" : "0 2px 8px rgba(0,0,0,0.3)", _v$10 = `Select color ${item.rgb}`, _v$11 = selectedIndex() === index(), _v$12 = clsx("absolute inset-0 rounded-full border-2 border-white", "transition-opacity duration-300 ease-out"), _v$13 = selectedIndex() === index() ? "1" : "0";
|
|
7488
|
+
_v$4 !== _p$.e && (null != (_p$.e = _v$4) ? _el$8.style.setProperty("left", _v$4) : _el$8.style.removeProperty("left"));
|
|
7489
|
+
_v$5 !== _p$.t && (null != (_p$.t = _v$5) ? _el$8.style.setProperty("top", _v$5) : _el$8.style.removeProperty("top"));
|
|
7490
|
+
_v$6 !== _p$.a && (null != (_p$.a = _v$6) ? _el$0.style.setProperty("opacity", _v$6) : _el$0.style.removeProperty("opacity"));
|
|
7491
|
+
_v$7 !== _p$.o && (null != (_p$.o = _v$7) ? _el$0.style.setProperty("box-shadow", _v$7) : _el$0.style.removeProperty("box-shadow"));
|
|
7492
|
+
_v$8 !== _p$.i && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$1, "tabindex", _p$.i = _v$8);
|
|
7493
|
+
_v$9 !== _p$.n && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$1, _p$.n = _v$9);
|
|
7494
|
+
_v$0 !== _p$.s && (null != (_p$.s = _v$0) ? _el$1.style.setProperty("background", _v$0) : _el$1.style.removeProperty("background"));
|
|
7495
|
+
_v$1 !== _p$.h && (null != (_p$.h = _v$1) ? _el$1.style.setProperty("box-shadow", _v$1) : _el$1.style.removeProperty("box-shadow"));
|
|
7496
|
+
_v$10 !== _p$.r && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$1, "aria-label", _p$.r = _v$10);
|
|
7497
|
+
_v$11 !== _p$.d && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$1, "aria-pressed", _p$.d = _v$11);
|
|
7498
|
+
_v$12 !== _p$.l && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$10, _p$.l = _v$12);
|
|
7499
|
+
_v$13 !== _p$.u && (null != (_p$.u = _v$13) ? _el$10.style.setProperty("opacity", _v$13) : _el$10.style.removeProperty("opacity"));
|
|
7500
|
+
return _p$;
|
|
7501
|
+
}, {
|
|
7502
|
+
e: void 0,
|
|
7503
|
+
t: void 0,
|
|
7504
|
+
a: void 0,
|
|
7505
|
+
o: void 0,
|
|
7506
|
+
i: void 0,
|
|
7507
|
+
n: void 0,
|
|
7508
|
+
s: void 0,
|
|
7509
|
+
h: void 0,
|
|
7510
|
+
r: void 0,
|
|
7511
|
+
d: void 0,
|
|
7512
|
+
l: void 0,
|
|
7513
|
+
u: void 0
|
|
7514
|
+
});
|
|
7515
|
+
return _el$8;
|
|
7516
|
+
})();
|
|
7517
|
+
}
|
|
7518
|
+
}));
|
|
6959
7519
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
6960
|
-
var _v$ =
|
|
7520
|
+
var _v$ = containerClasses(), _v$2 = outerRingBackground(), _v$3 = outerRingGlow();
|
|
6961
7521
|
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$);
|
|
6962
|
-
_v$2 !== _p$.t && (null != (_p$.t = _v$2) ? _el
|
|
6963
|
-
_v$3 !== _p$.a && (
|
|
6964
|
-
_v$4 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-valuenow", _p$.o = _v$4);
|
|
6965
|
-
_v$5 !== _p$.i && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-disabled", _p$.i = _v$5);
|
|
6966
|
-
_v$6 !== _p$.n && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, _p$.n = _v$6);
|
|
6967
|
-
_v$7 !== _p$.s && (null != (_p$.s = _v$7) ? _el$2.style.setProperty("left", _v$7) : _el$2.style.removeProperty("left"));
|
|
6968
|
-
_v$8 !== _p$.h && (null != (_p$.h = _v$8) ? _el$2.style.setProperty("background-color", _v$8) : _el$2.style.removeProperty("background-color"));
|
|
7522
|
+
_v$2 !== _p$.t && (null != (_p$.t = _v$2) ? _el$4.style.setProperty("background", _v$2) : _el$4.style.removeProperty("background"));
|
|
7523
|
+
_v$3 !== _p$.a && (null != (_p$.a = _v$3) ? _el$4.style.setProperty("box-shadow", _v$3) : _el$4.style.removeProperty("box-shadow"));
|
|
6969
7524
|
return _p$;
|
|
6970
7525
|
}, {
|
|
6971
7526
|
e: void 0,
|
|
6972
7527
|
t: void 0,
|
|
6973
|
-
a: void 0
|
|
6974
|
-
o: void 0,
|
|
6975
|
-
i: void 0,
|
|
6976
|
-
n: void 0,
|
|
6977
|
-
s: void 0,
|
|
6978
|
-
h: void 0
|
|
7528
|
+
a: void 0
|
|
6979
7529
|
});
|
|
6980
7530
|
return _el$;
|
|
6981
7531
|
})();
|
|
6982
7532
|
};
|
|
6983
|
-
const
|
|
7533
|
+
const colorpicker_ColorWheelFlower = ColorWheelFlower;
|
|
6984
7534
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
6985
|
-
"
|
|
6986
|
-
"
|
|
7535
|
+
"click",
|
|
7536
|
+
"pointerdown",
|
|
7537
|
+
"pointerup"
|
|
6987
7538
|
]);
|
|
7539
|
+
const ColorPickerFlowerSelector_ColorPickerFlowerSelector = ()=>[
|
|
7540
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(colorpicker_ColorWheelFlower, {}),
|
|
7541
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(LightnessSlider, {})
|
|
7542
|
+
];
|
|
7543
|
+
const ColorPickerFlowerSelector = ColorPickerFlowerSelector_ColorPickerFlowerSelector;
|
|
6988
7544
|
var ColorSwatches_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), ColorSwatches_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<button type=button>");
|
|
6989
7545
|
const ColorSwatches = (props)=>{
|
|
6990
7546
|
const context = useColorPickerContext();
|
|
@@ -7168,117 +7724,6 @@ const colorpicker_ColorPreview = ColorPreview;
|
|
|
7168
7724
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
7169
7725
|
"click"
|
|
7170
7726
|
]);
|
|
7171
|
-
const immediateDriver = ({ to, onUpdate, onComplete })=>{
|
|
7172
|
-
onUpdate(to);
|
|
7173
|
-
onComplete?.();
|
|
7174
|
-
return {
|
|
7175
|
-
stop: ()=>{}
|
|
7176
|
-
};
|
|
7177
|
-
};
|
|
7178
|
-
let activeDriver = immediateDriver;
|
|
7179
|
-
const setMotionDriver = (driver)=>{
|
|
7180
|
-
activeDriver = driver;
|
|
7181
|
-
};
|
|
7182
|
-
const getMotionDriver = ()=>activeDriver;
|
|
7183
|
-
const easeOutCubic = (t)=>1 - Math.pow(1 - t, 3);
|
|
7184
|
-
const easeInCubic = (t)=>t * t * t;
|
|
7185
|
-
const easeInOutCubic = (t)=>t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
|
|
7186
|
-
const resolveEase = (easing)=>{
|
|
7187
|
-
if ("function" == typeof easing) return easing;
|
|
7188
|
-
switch(easing){
|
|
7189
|
-
case "ease-in":
|
|
7190
|
-
return easeInCubic;
|
|
7191
|
-
case "ease-in-out":
|
|
7192
|
-
return easeInOutCubic;
|
|
7193
|
-
case "linear":
|
|
7194
|
-
return (t)=>t;
|
|
7195
|
-
case "ease-out":
|
|
7196
|
-
default:
|
|
7197
|
-
return easeOutCubic;
|
|
7198
|
-
}
|
|
7199
|
-
};
|
|
7200
|
-
const resolveDuration = (transition)=>Math.max(0, (transition?.duration ?? 0) * 1000);
|
|
7201
|
-
const resolveDelay = (transition)=>Math.max(0, (transition?.delay ?? 0) * 1000);
|
|
7202
|
-
const readOpacity = (el)=>{
|
|
7203
|
-
const value = Number.parseFloat(getComputedStyle(el).opacity);
|
|
7204
|
-
return Number.isFinite(value) ? value : 1;
|
|
7205
|
-
};
|
|
7206
|
-
const runMotion = (el, from, to, transition, onComplete)=>{
|
|
7207
|
-
const duration = resolveDuration(transition);
|
|
7208
|
-
const delay = resolveDelay(transition);
|
|
7209
|
-
const ease = resolveEase(transition?.easing);
|
|
7210
|
-
const driver = getMotionDriver();
|
|
7211
|
-
const controls = [];
|
|
7212
|
-
const shouldTransform = void 0 !== from.x || void 0 !== from.y || void 0 !== from.scale || void 0 !== to.x || void 0 !== to.y || void 0 !== to.scale;
|
|
7213
|
-
const transformState = {
|
|
7214
|
-
x: from.x ?? 0,
|
|
7215
|
-
y: from.y ?? 0,
|
|
7216
|
-
scale: from.scale ?? 1
|
|
7217
|
-
};
|
|
7218
|
-
const applyTransform = ()=>{
|
|
7219
|
-
if (!shouldTransform) return;
|
|
7220
|
-
el.style.transform = `translate3d(${transformState.x}px, ${transformState.y}px, 0) scale(${transformState.scale})`;
|
|
7221
|
-
};
|
|
7222
|
-
if (void 0 !== from.opacity) el.style.opacity = String(from.opacity);
|
|
7223
|
-
applyTransform();
|
|
7224
|
-
const animationTargets = Object.keys(to);
|
|
7225
|
-
if (0 === animationTargets.length) {
|
|
7226
|
-
onComplete?.();
|
|
7227
|
-
return {
|
|
7228
|
-
stop: ()=>{}
|
|
7229
|
-
};
|
|
7230
|
-
}
|
|
7231
|
-
let remaining = animationTargets.length;
|
|
7232
|
-
const handleComplete = ()=>{
|
|
7233
|
-
remaining -= 1;
|
|
7234
|
-
if (remaining <= 0) onComplete?.();
|
|
7235
|
-
};
|
|
7236
|
-
const start = ()=>{
|
|
7237
|
-
animationTargets.forEach((key)=>{
|
|
7238
|
-
if ("opacity" === key) {
|
|
7239
|
-
const fromValue = from.opacity ?? (void 0 !== to.opacity ? readOpacity(el) : 1);
|
|
7240
|
-
const control = driver({
|
|
7241
|
-
from: fromValue,
|
|
7242
|
-
to: to.opacity ?? fromValue,
|
|
7243
|
-
duration,
|
|
7244
|
-
ease,
|
|
7245
|
-
onUpdate: (latest)=>{
|
|
7246
|
-
el.style.opacity = String(latest);
|
|
7247
|
-
},
|
|
7248
|
-
onComplete: handleComplete
|
|
7249
|
-
});
|
|
7250
|
-
controls.push(control);
|
|
7251
|
-
return;
|
|
7252
|
-
}
|
|
7253
|
-
const fromValue = "scale" === key ? from.scale ?? 1 : "x" === key ? from.x ?? 0 : from.y ?? 0;
|
|
7254
|
-
const toValue = to[key] ?? fromValue;
|
|
7255
|
-
const control = driver({
|
|
7256
|
-
from: fromValue,
|
|
7257
|
-
to: toValue,
|
|
7258
|
-
duration,
|
|
7259
|
-
ease,
|
|
7260
|
-
onUpdate: (latest)=>{
|
|
7261
|
-
if (!shouldTransform) return;
|
|
7262
|
-
if ("x" === key) transformState.x = latest;
|
|
7263
|
-
if ("y" === key) transformState.y = latest;
|
|
7264
|
-
if ("scale" === key) transformState.scale = latest;
|
|
7265
|
-
applyTransform();
|
|
7266
|
-
},
|
|
7267
|
-
onComplete: handleComplete
|
|
7268
|
-
});
|
|
7269
|
-
controls.push(control);
|
|
7270
|
-
});
|
|
7271
|
-
};
|
|
7272
|
-
let timeoutId = null;
|
|
7273
|
-
if (delay > 0) timeoutId = window.setTimeout(start, delay);
|
|
7274
|
-
else start();
|
|
7275
|
-
return {
|
|
7276
|
-
stop: ()=>{
|
|
7277
|
-
if (null !== timeoutId) clearTimeout(timeoutId);
|
|
7278
|
-
controls.forEach((control)=>control.stop());
|
|
7279
|
-
}
|
|
7280
|
-
};
|
|
7281
|
-
};
|
|
7282
7727
|
var MotionDiv_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
7283
7728
|
const MotionDiv_MotionDiv = (props)=>{
|
|
7284
7729
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -7351,48 +7796,6 @@ const MotionDiv_MotionDiv = (props)=>{
|
|
|
7351
7796
|
})();
|
|
7352
7797
|
};
|
|
7353
7798
|
const MotionDiv = MotionDiv_MotionDiv;
|
|
7354
|
-
const prefersReducedMotion = ()=>globalThis.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches ?? false;
|
|
7355
|
-
const motionDurations = {
|
|
7356
|
-
route: 0.18,
|
|
7357
|
-
routeAuth: 0.35,
|
|
7358
|
-
fast: 0.2,
|
|
7359
|
-
base: 0.3,
|
|
7360
|
-
slow: 0.45
|
|
7361
|
-
};
|
|
7362
|
-
const motionEasings = {
|
|
7363
|
-
out: "ease-out",
|
|
7364
|
-
inOut: "ease-in-out"
|
|
7365
|
-
};
|
|
7366
|
-
const motionDistances = {
|
|
7367
|
-
sm: 6,
|
|
7368
|
-
md: 12,
|
|
7369
|
-
lg: 20,
|
|
7370
|
-
slideIn: 40
|
|
7371
|
-
};
|
|
7372
|
-
const defaultMotionTokens = {
|
|
7373
|
-
durations: {
|
|
7374
|
-
...motionDurations
|
|
7375
|
-
},
|
|
7376
|
-
easings: {
|
|
7377
|
-
...motionEasings
|
|
7378
|
-
},
|
|
7379
|
-
distances: {
|
|
7380
|
-
...motionDistances
|
|
7381
|
-
}
|
|
7382
|
-
};
|
|
7383
|
-
const mergeDefined = (base, overrides)=>{
|
|
7384
|
-
const next = {
|
|
7385
|
-
...base
|
|
7386
|
-
};
|
|
7387
|
-
if (!overrides) return next;
|
|
7388
|
-
for (const [key, value] of Object.entries(overrides))if (void 0 !== value) next[key] = value;
|
|
7389
|
-
return next;
|
|
7390
|
-
};
|
|
7391
|
-
const mergeMotionTokens = (base, overrides)=>({
|
|
7392
|
-
durations: mergeDefined(base.durations, overrides?.durations),
|
|
7393
|
-
easings: mergeDefined(base.easings, overrides?.easings),
|
|
7394
|
-
distances: mergeDefined(base.distances, overrides?.distances)
|
|
7395
|
-
});
|
|
7396
7799
|
const createMotionPresets = (tokens)=>{
|
|
7397
7800
|
const durations = tokens.durations;
|
|
7398
7801
|
const easings = tokens.easings;
|
|
@@ -7593,7 +7996,7 @@ const presets_resolvePreset = (name, options)=>{
|
|
|
7593
7996
|
if (reduce) return noMotion;
|
|
7594
7997
|
return motionPresets[name] ?? noMotion;
|
|
7595
7998
|
};
|
|
7596
|
-
var ColorPicker_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="flex p-1 mb-3 bg-base-200 rounded-md"><button type=button>Gradient</button><button type=button>Wheel'), ColorPicker_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="pt-2 border-t border-base-300">'), ColorPicker_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=space-y-4>"), ColorPicker_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="fixed inset-0 z-40"aria-hidden=true>'), _tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
7999
|
+
var ColorPicker_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="flex p-1 mb-3 bg-base-200 rounded-md"><button type=button>Gradient</button><button type=button>Wheel</button><button type=button>Flower'), ColorPicker_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="pt-2 border-t border-base-300">'), ColorPicker_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=space-y-4>"), ColorPicker_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="fixed inset-0 z-40"aria-hidden=true>'), _tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
7597
8000
|
const DEFAULT_SWATCHES = [
|
|
7598
8001
|
"#FF6B6B",
|
|
7599
8002
|
"#4ECDC4",
|
|
@@ -7686,9 +8089,10 @@ const ColorPicker = (props)=>{
|
|
|
7686
8089
|
}));
|
|
7687
8090
|
};
|
|
7688
8091
|
const ModeSwitcher = ()=>(()=>{
|
|
7689
|
-
var _el$ = ColorPicker_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
8092
|
+
var _el$ = ColorPicker_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling;
|
|
7690
8093
|
_el$2.$$click = ()=>setMode("picker");
|
|
7691
8094
|
_el$3.$$click = ()=>setMode("wheel");
|
|
8095
|
+
_el$4.$$click = ()=>setMode("flower");
|
|
7692
8096
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
7693
8097
|
var _v$ = clsx("flex-1 px-3 py-1 text-xs font-medium rounded-sm transition-colors", {
|
|
7694
8098
|
"bg-base-100 shadow-sm text-base-content": "picker" === mode(),
|
|
@@ -7696,13 +8100,18 @@ const ColorPicker = (props)=>{
|
|
|
7696
8100
|
}), _v$2 = clsx("flex-1 px-3 py-1 text-xs font-medium rounded-sm transition-colors", {
|
|
7697
8101
|
"bg-base-100 shadow-sm text-base-content": "wheel" === mode(),
|
|
7698
8102
|
"text-base-content/60 hover:text-base-content": "wheel" !== mode()
|
|
8103
|
+
}), _v$3 = clsx("flex-1 px-3 py-1 text-xs font-medium rounded-sm transition-colors", {
|
|
8104
|
+
"bg-base-100 shadow-sm text-base-content": "flower" === mode(),
|
|
8105
|
+
"text-base-content/60 hover:text-base-content": "flower" !== mode()
|
|
7699
8106
|
});
|
|
7700
8107
|
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, _p$.e = _v$);
|
|
7701
8108
|
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$3, _p$.t = _v$2);
|
|
8109
|
+
_v$3 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$4, _p$.a = _v$3);
|
|
7702
8110
|
return _p$;
|
|
7703
8111
|
}, {
|
|
7704
8112
|
e: void 0,
|
|
7705
|
-
t: void 0
|
|
8113
|
+
t: void 0,
|
|
8114
|
+
a: void 0
|
|
7706
8115
|
});
|
|
7707
8116
|
return _el$;
|
|
7708
8117
|
})();
|
|
@@ -7726,30 +8135,32 @@ const ColorPicker = (props)=>{
|
|
|
7726
8135
|
return [
|
|
7727
8136
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(ModeSwitcher, {}),
|
|
7728
8137
|
(()=>{
|
|
7729
|
-
var _el$
|
|
7730
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$
|
|
8138
|
+
var _el$5 = ColorPicker_tmpl$3();
|
|
8139
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
7731
8140
|
get when () {
|
|
7732
8141
|
return "picker" === mode();
|
|
7733
8142
|
},
|
|
7734
8143
|
get children () {
|
|
7735
|
-
return
|
|
7736
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(colorpicker_SaturationBrightness, {}),
|
|
7737
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(colorpicker_HueSlider, {})
|
|
7738
|
-
];
|
|
8144
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(colorpicker_ColorPickerGradientSelector, {});
|
|
7739
8145
|
}
|
|
7740
8146
|
}), null);
|
|
7741
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$
|
|
8147
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
7742
8148
|
get when () {
|
|
7743
8149
|
return "wheel" === mode();
|
|
7744
8150
|
},
|
|
7745
8151
|
get children () {
|
|
7746
|
-
return
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
8152
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(ColorPickerWheelSelector, {});
|
|
8153
|
+
}
|
|
8154
|
+
}), null);
|
|
8155
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
8156
|
+
get when () {
|
|
8157
|
+
return "flower" === mode();
|
|
8158
|
+
},
|
|
8159
|
+
get children () {
|
|
8160
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(ColorPickerFlowerSelector, {});
|
|
7750
8161
|
}
|
|
7751
8162
|
}), null);
|
|
7752
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$
|
|
8163
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
7753
8164
|
get when () {
|
|
7754
8165
|
return local.showAlpha;
|
|
7755
8166
|
},
|
|
@@ -7757,22 +8168,22 @@ const ColorPicker = (props)=>{
|
|
|
7757
8168
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(AlphaSlider, {});
|
|
7758
8169
|
}
|
|
7759
8170
|
}), null);
|
|
7760
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$
|
|
7761
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$
|
|
8171
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(colorpicker_ColorInput, {}), null);
|
|
8172
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
7762
8173
|
get when () {
|
|
7763
8174
|
return local.swatches || DEFAULT_SWATCHES;
|
|
7764
8175
|
},
|
|
7765
8176
|
get children () {
|
|
7766
|
-
var _el$
|
|
7767
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$
|
|
8177
|
+
var _el$6 = ColorPicker_tmpl$2();
|
|
8178
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(colorpicker_ColorSwatches, {
|
|
7768
8179
|
get swatches () {
|
|
7769
8180
|
return local.swatches || DEFAULT_SWATCHES;
|
|
7770
8181
|
}
|
|
7771
8182
|
}));
|
|
7772
|
-
return _el$
|
|
8183
|
+
return _el$6;
|
|
7773
8184
|
}
|
|
7774
8185
|
}), null);
|
|
7775
|
-
return _el$
|
|
8186
|
+
return _el$5;
|
|
7776
8187
|
})()
|
|
7777
8188
|
];
|
|
7778
8189
|
}
|
|
@@ -7780,11 +8191,11 @@ const ColorPicker = (props)=>{
|
|
|
7780
8191
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(ColorPickerContext.Provider, {
|
|
7781
8192
|
value: contextValue,
|
|
7782
8193
|
get children () {
|
|
7783
|
-
var _el$
|
|
7784
|
-
_el$
|
|
8194
|
+
var _el$7 = _tmpl$5();
|
|
8195
|
+
_el$7.$$keydown = handleKeyDown;
|
|
7785
8196
|
var _ref$ = containerRef;
|
|
7786
|
-
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$
|
|
7787
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$
|
|
8197
|
+
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$7) : containerRef = _el$7;
|
|
8198
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$7, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
7788
8199
|
get ["class"] () {
|
|
7789
8200
|
return containerClasses();
|
|
7790
8201
|
},
|
|
@@ -7795,7 +8206,7 @@ const ColorPicker = (props)=>{
|
|
|
7795
8206
|
return local.style;
|
|
7796
8207
|
}
|
|
7797
8208
|
}, others), false, true);
|
|
7798
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$
|
|
8209
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$7, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(colorpicker_ColorPreview, {
|
|
7799
8210
|
get color () {
|
|
7800
8211
|
return color();
|
|
7801
8212
|
},
|
|
@@ -7807,7 +8218,7 @@ const ColorPicker = (props)=>{
|
|
|
7807
8218
|
return local["aria-label"] || "Color picker";
|
|
7808
8219
|
}
|
|
7809
8220
|
}), null);
|
|
7810
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$
|
|
8221
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$7, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
7811
8222
|
get when () {
|
|
7812
8223
|
return isOpen() && !local.disabled;
|
|
7813
8224
|
},
|
|
@@ -7815,17 +8226,17 @@ const ColorPicker = (props)=>{
|
|
|
7815
8226
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(PopoverContent, {});
|
|
7816
8227
|
}
|
|
7817
8228
|
}), null);
|
|
7818
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$
|
|
8229
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$7, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
7819
8230
|
get when () {
|
|
7820
8231
|
return isOpen() && !local.disabled;
|
|
7821
8232
|
},
|
|
7822
8233
|
get children () {
|
|
7823
|
-
var _el$
|
|
7824
|
-
_el$
|
|
7825
|
-
return _el$
|
|
8234
|
+
var _el$8 = ColorPicker_tmpl$4();
|
|
8235
|
+
_el$8.$$click = ()=>setIsOpen(false);
|
|
8236
|
+
return _el$8;
|
|
7826
8237
|
}
|
|
7827
8238
|
}), null);
|
|
7828
|
-
return _el$
|
|
8239
|
+
return _el$7;
|
|
7829
8240
|
}
|
|
7830
8241
|
});
|
|
7831
8242
|
};
|
|
@@ -8629,7 +9040,7 @@ const dividerStyles = cva("flex items-center whitespace-nowrap relative", {
|
|
|
8629
9040
|
position: "center"
|
|
8630
9041
|
}
|
|
8631
9042
|
});
|
|
8632
|
-
const
|
|
9043
|
+
const Divider = (props)=>{
|
|
8633
9044
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
8634
9045
|
"children",
|
|
8635
9046
|
"text",
|
|
@@ -8664,8 +9075,8 @@ const Divider_Divider = (props)=>{
|
|
|
8664
9075
|
children: content
|
|
8665
9076
|
}));
|
|
8666
9077
|
};
|
|
8667
|
-
const
|
|
8668
|
-
const divider =
|
|
9078
|
+
const divider_Divider = Divider;
|
|
9079
|
+
const divider = divider_Divider;
|
|
8669
9080
|
var DockItem_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<button>");
|
|
8670
9081
|
const DockItem_DockItem = (props)=>{
|
|
8671
9082
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -14741,4 +15152,4 @@ const createRouteTransitionResolver = (options)=>{
|
|
|
14741
15152
|
return fallback ?? noMotion;
|
|
14742
15153
|
};
|
|
14743
15154
|
};
|
|
14744
|
-
export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, bottom_sheet_BottomSheet as BottomSheet, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, colorpicker_ColorPicker as ColorPicker, connectionstatus_ConnectionStatus as ConnectionStatus, CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, EnhancedTable, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form, Grid, hero_Hero as Hero, icon_Icon as Icon, indicator_Indicator as Indicator, input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, MotionDiv, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, sidenav_Sidenav as Sidenav, sidenav_SidenavButton as SidenavButton, sidenav_SidenavGroup as SidenavGroup, sidenav_SidenavItem as SidenavItem, sidenav_SidenavLink as SidenavLink, sidenav_SidenavMenu as SidenavMenu, skeleton_Skeleton as Skeleton, Stack, stat_card_StatCard as StatCard, stats_Stats as Stats, status_Status as Status, steps as Steps, streaming_table_StreamingTable as StreamingTable, Summary, SvgBackground, Swap, table_Table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, ToastContainer, ToastStack_ToastStack as ToastStack, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, createMotionPresets, createMotionSystem, createPopmotionDriver, createRouteTransitionResolver, createStreamingTableStore, connectionstatus_ConnectionStatus as default, defaultMotionTokens, enablePopmotion, getMotionDriver, presets_getPreset as getPreset, immediateDriver, mergeMotionTokens, motionDistances, motionDurations, motionEasings, motionPresets, noMotion, prefersReducedMotion, presets_registerPreset as registerPreset, resolveEase, presets_resolvePreset as resolvePreset, routeTransition, runMotion, setMotionDriver, toastStore, useDesktop, useFormValidation };
|
|
15155
|
+
export { accordion_Accordion as Accordion, alert_Alert as Alert, AlphaSlider, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, bottom_sheet_BottomSheet as BottomSheet, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, colorpicker_ColorInput as ColorInput, colorpicker_ColorPicker as ColorPicker, ColorPickerContext, ColorPickerFlowerSelector, colorpicker_ColorPickerGradientSelector as ColorPickerGradientSelector, ColorPickerWheelSelector, colorpicker_ColorPreview as ColorPreview, colorpicker_ColorSwatches as ColorSwatches, ColorWheel, colorpicker_ColorWheelFlower as ColorWheelFlower, connectionstatus_ConnectionStatus as ConnectionStatus, CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, EnhancedTable, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form, Grid, hero_Hero as Hero, colorpicker_HueSlider as HueSlider, icon_Icon as Icon, indicator_Indicator as Indicator, input as Input, join_Join as Join, kbd_Kbd as Kbd, LightnessSlider, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, MotionDiv, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, colorpicker_SaturationBrightness as SaturationBrightness, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, sidenav_Sidenav as Sidenav, sidenav_SidenavButton as SidenavButton, sidenav_SidenavGroup as SidenavGroup, sidenav_SidenavItem as SidenavItem, sidenav_SidenavLink as SidenavLink, sidenav_SidenavMenu as SidenavMenu, skeleton_Skeleton as Skeleton, Stack, stat_card_StatCard as StatCard, stats_Stats as Stats, status_Status as Status, steps as Steps, streaming_table_StreamingTable as StreamingTable, Summary, SvgBackground, Swap, table_Table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, ToastContainer, ToastStack_ToastStack as ToastStack, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, createMotionPresets, createMotionSystem, createPopmotionDriver, createRouteTransitionResolver, createStreamingTableStore, connectionstatus_ConnectionStatus as default, defaultMotionTokens, enablePopmotion, getMotionDriver, presets_getPreset as getPreset, immediateDriver, mergeMotionTokens, motionDistances, motionDurations, motionEasings, motionPresets, noMotion, prefersReducedMotion, presets_registerPreset as registerPreset, resolveEase, presets_resolvePreset as resolvePreset, routeTransition, runMotion, setMotionDriver, toastStore, useColorPickerContext, useDesktop, useFormValidation };
|