@wello-dev/core 1.0.4 → 1.0.5

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.
Files changed (47) hide show
  1. package/dist/{chunk-PPKKOBHB.js → chunk-5XXK7KQE.js} +2 -2
  2. package/dist/{chunk-YOL5PMHU.js → chunk-7S7RIVCI.js} +2 -2
  3. package/dist/{chunk-TJUOXXLK.js → chunk-BVGYS3NN.js} +2 -2
  4. package/dist/{chunk-6U4Y3AUT.js → chunk-COAMHU2N.js} +2 -2
  5. package/dist/{chunk-2XGMU4QA.js → chunk-DZ7HIMJ5.js} +20 -4
  6. package/dist/chunk-DZ7HIMJ5.js.map +1 -0
  7. package/dist/{chunk-O4MQLZEH.js → chunk-KNN75VAT.js} +2 -2
  8. package/dist/{chunk-K2Q5Q6WQ.js → chunk-N7T45HQC.js} +4 -4
  9. package/dist/chunk-N7T45HQC.js.map +1 -0
  10. package/dist/{chunk-F4OMXH3E.js → chunk-QSFXOVRL.js} +5 -5
  11. package/dist/{chunk-F4OMXH3E.js.map → chunk-QSFXOVRL.js.map} +1 -1
  12. package/dist/{chunk-QZFPW75D.js → chunk-SJBYDDDD.js} +19 -3
  13. package/dist/chunk-SJBYDDDD.js.map +1 -0
  14. package/dist/{chunk-KEYIOWAG.js → chunk-TIVOXLDX.js} +3 -3
  15. package/dist/{chunk-KEYIOWAG.js.map → chunk-TIVOXLDX.js.map} +1 -1
  16. package/dist/{chunk-GD5URO3H.js → chunk-ULMVA37U.js} +4 -4
  17. package/dist/chunk-X7WXW6AV.js +206 -0
  18. package/dist/chunk-X7WXW6AV.js.map +1 -0
  19. package/dist/components/ColorPicker/ColorInput.js +3 -3
  20. package/dist/components/Combobox/Combobox.js +3 -3
  21. package/dist/components/Combobox/Select.js +4 -4
  22. package/dist/components/Combobox/TagsInput.js +4 -4
  23. package/dist/components/Menu/Menu.js +3 -3
  24. package/dist/components/NumberFormatter/NumberFormatter.js +1 -1
  25. package/dist/components/PhoneInput/PhoneInput.js +5 -5
  26. package/dist/components/Popover/Popover.js +2 -2
  27. package/dist/components/TextInput/TextInput.js +2 -2
  28. package/dist/components/Tooltip/Tooltip.js +2 -2
  29. package/dist/index.cjs +134 -88
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +5 -0
  32. package/dist/index.d.ts +5 -0
  33. package/dist/index.js +70 -70
  34. package/dist/shadcn/Floating.js +5 -5
  35. package/dist/styles.css +119 -15
  36. package/package.json +1 -1
  37. package/dist/chunk-2XGMU4QA.js.map +0 -1
  38. package/dist/chunk-K2Q5Q6WQ.js.map +0 -1
  39. package/dist/chunk-QZFPW75D.js.map +0 -1
  40. package/dist/chunk-YHPHWOAE.js +0 -192
  41. package/dist/chunk-YHPHWOAE.js.map +0 -1
  42. /package/dist/{chunk-PPKKOBHB.js.map → chunk-5XXK7KQE.js.map} +0 -0
  43. /package/dist/{chunk-YOL5PMHU.js.map → chunk-7S7RIVCI.js.map} +0 -0
  44. /package/dist/{chunk-TJUOXXLK.js.map → chunk-BVGYS3NN.js.map} +0 -0
  45. /package/dist/{chunk-6U4Y3AUT.js.map → chunk-COAMHU2N.js.map} +0 -0
  46. /package/dist/{chunk-O4MQLZEH.js.map → chunk-KNN75VAT.js.map} +0 -0
  47. /package/dist/{chunk-GD5URO3H.js.map → chunk-ULMVA37U.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-4QBFXTYH.js";
5
5
 
6
6
  // src/components/NumberFormatter/NumberFormatter.tsx
7
- import { Fragment, jsx } from "react/jsx-runtime";
7
+ import { jsx } from "react/jsx-runtime";
8
8
  function formatNumber(value, options = {}) {
9
9
  if (value === null || value === void 0 || value === "") return "";
10
10
  const {
@@ -32,11 +32,11 @@ function formatNumber(value, options = {}) {
32
32
  }
33
33
  function NumberFormatter(_props) {
34
34
  const { value, ...options } = useProps("NumberFormatter", {}, _props);
35
- return /* @__PURE__ */ jsx(Fragment, { children: formatNumber(value, options) });
35
+ return /* @__PURE__ */ jsx("span", { dir: "ltr", style: { unicodeBidi: "isolate" }, children: formatNumber(value, options) });
36
36
  }
37
37
 
38
38
  export {
39
39
  formatNumber,
40
40
  NumberFormatter
41
41
  };
42
- //# sourceMappingURL=chunk-KEYIOWAG.js.map
42
+ //# sourceMappingURL=chunk-TIVOXLDX.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NumberFormatter/NumberFormatter.tsx"],"sourcesContent":["import { useProps } from \"../../core/styles-api/styles-api\";\n\nexport interface NumberFormatterProps {\n value?: number | string | null;\n /** Before the number, e.g. `'$ '` */\n prefix?: string;\n /** After the number, e.g. `' SAR'` */\n suffix?: string;\n /** `true` for `,`, or your own separator */\n thousandSeparator?: string | boolean;\n /** Default: '.' */\n decimalSeparator?: string;\n /** Digits after the decimal point (rounded) */\n decimalScale?: number;\n /** Always show `decimalScale` digits */\n fixedDecimalScale?: boolean;\n /** Allow negative numbers. Default: true */\n allowNegative?: boolean;\n /** Group size: `'thousand'` (1,000,000), `'lakh'` (10,00,000), `'wan'` (1,0000). Default: 'thousand' */\n thousandsGroupStyle?: \"thousand\" | \"lakh\" | \"wan\" | \"none\";\n}\n\n/** Formats a number as text, like the component (usable in non-React code). */\nexport function formatNumber(value: number | string | null | undefined, options: Omit<NumberFormatterProps, \"value\"> = {}): string {\n if (value === null || value === undefined || value === \"\") return \"\";\n const {\n prefix = \"\",\n suffix = \"\",\n thousandSeparator,\n decimalSeparator = \".\",\n decimalScale,\n fixedDecimalScale,\n allowNegative = true,\n thousandsGroupStyle = \"thousand\",\n } = options;\n let number = typeof value === \"number\" ? value : Number(String(value).replace(/[^\\d.-]/g, \"\"));\n if (Number.isNaN(number)) return String(value);\n if (!allowNegative) number = Math.abs(number);\n const negative = number < 0;\n let [integer, fraction = \"\"] = (decimalScale !== undefined ? Math.abs(number).toFixed(decimalScale) : String(Math.abs(number))).split(\".\");\n if (decimalScale !== undefined && !fixedDecimalScale) fraction = fraction.replace(/0+$/, \"\");\n const separator = thousandSeparator === true ? \",\" : thousandSeparator || \"\";\n if (separator && thousandsGroupStyle !== \"none\") {\n const pattern =\n thousandsGroupStyle === \"lakh\" ? /(\\d+?)(?=(\\d\\d)+(\\d)(?!\\d))/g : thousandsGroupStyle === \"wan\" ? /(\\d)(?=(\\d{4})+(?!\\d))/g : /(\\d)(?=(\\d{3})+(?!\\d))/g;\n integer = integer.replace(pattern, `$1${separator}`);\n }\n return `${negative ? \"-\" : \"\"}${prefix}${integer}${fraction ? `${decimalSeparator}${fraction}` : \"\"}${suffix}`;\n}\n\n/**\n * Prints a formatted number.\n *\n * @example\n * <NumberFormatter value={1234567.891} thousandSeparator decimalScale={2} suffix=\" SAR\" />\n */\nexport function NumberFormatter(_props: NumberFormatterProps) {\n const { value, ...options } = useProps(\"NumberFormatter\", {}, _props);\n return <>{formatNumber(value, options)}</>;\n}\n"],"mappings":";;;;;;AA0DS;AAnCF,SAAS,aAAa,OAA2C,UAA+C,CAAC,GAAW;AACjI,MAAI,UAAU,QAAQ,UAAU,UAAa,UAAU,GAAI,QAAO;AAClE,QAAM;AAAA,IACJ,SAAS;AAAA,IACT,SAAS;AAAA,IACT;AAAA,IACA,mBAAmB;AAAA,IACnB;AAAA,IACA;AAAA,IACA,gBAAgB;AAAA,IAChB,sBAAsB;AAAA,EACxB,IAAI;AACJ,MAAI,SAAS,OAAO,UAAU,WAAW,QAAQ,OAAO,OAAO,KAAK,EAAE,QAAQ,YAAY,EAAE,CAAC;AAC7F,MAAI,OAAO,MAAM,MAAM,EAAG,QAAO,OAAO,KAAK;AAC7C,MAAI,CAAC,cAAe,UAAS,KAAK,IAAI,MAAM;AAC5C,QAAM,WAAW,SAAS;AAC1B,MAAI,CAAC,SAAS,WAAW,EAAE,KAAK,iBAAiB,SAAY,KAAK,IAAI,MAAM,EAAE,QAAQ,YAAY,IAAI,OAAO,KAAK,IAAI,MAAM,CAAC,GAAG,MAAM,GAAG;AACzI,MAAI,iBAAiB,UAAa,CAAC,kBAAmB,YAAW,SAAS,QAAQ,OAAO,EAAE;AAC3F,QAAM,YAAY,sBAAsB,OAAO,MAAM,qBAAqB;AAC1E,MAAI,aAAa,wBAAwB,QAAQ;AAC/C,UAAM,UACJ,wBAAwB,SAAS,iCAAiC,wBAAwB,QAAQ,4BAA4B;AAChI,cAAU,QAAQ,QAAQ,SAAS,KAAK,SAAS,EAAE;AAAA,EACrD;AACA,SAAO,GAAG,WAAW,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,GAAG,gBAAgB,GAAG,QAAQ,KAAK,EAAE,GAAG,MAAM;AAC9G;AAQO,SAAS,gBAAgB,QAA8B;AAC5D,QAAM,EAAE,OAAO,GAAG,QAAQ,IAAI,SAAS,mBAAmB,CAAC,GAAG,MAAM;AACpE,SAAO,gCAAG,uBAAa,OAAO,OAAO,GAAE;AACzC;","names":[]}
1
+ {"version":3,"sources":["../src/components/NumberFormatter/NumberFormatter.tsx"],"sourcesContent":["import { useProps } from \"../../core/styles-api/styles-api\";\n\nexport interface NumberFormatterProps {\n value?: number | string | null;\n /** Before the number, e.g. `'$ '` */\n prefix?: string;\n /** After the number, e.g. `' SAR'` */\n suffix?: string;\n /** `true` for `,`, or your own separator */\n thousandSeparator?: string | boolean;\n /** Default: '.' */\n decimalSeparator?: string;\n /** Digits after the decimal point (rounded) */\n decimalScale?: number;\n /** Always show `decimalScale` digits */\n fixedDecimalScale?: boolean;\n /** Allow negative numbers. Default: true */\n allowNegative?: boolean;\n /** Group size: `'thousand'` (1,000,000), `'lakh'` (10,00,000), `'wan'` (1,0000). Default: 'thousand' */\n thousandsGroupStyle?: \"thousand\" | \"lakh\" | \"wan\" | \"none\";\n}\n\n/** Formats a number as text, like the component (usable in non-React code). */\nexport function formatNumber(value: number | string | null | undefined, options: Omit<NumberFormatterProps, \"value\"> = {}): string {\n if (value === null || value === undefined || value === \"\") return \"\";\n const {\n prefix = \"\",\n suffix = \"\",\n thousandSeparator,\n decimalSeparator = \".\",\n decimalScale,\n fixedDecimalScale,\n allowNegative = true,\n thousandsGroupStyle = \"thousand\",\n } = options;\n let number = typeof value === \"number\" ? value : Number(String(value).replace(/[^\\d.-]/g, \"\"));\n if (Number.isNaN(number)) return String(value);\n if (!allowNegative) number = Math.abs(number);\n const negative = number < 0;\n let [integer, fraction = \"\"] = (decimalScale !== undefined ? Math.abs(number).toFixed(decimalScale) : String(Math.abs(number))).split(\".\");\n if (decimalScale !== undefined && !fixedDecimalScale) fraction = fraction.replace(/0+$/, \"\");\n const separator = thousandSeparator === true ? \",\" : thousandSeparator || \"\";\n if (separator && thousandsGroupStyle !== \"none\") {\n const pattern =\n thousandsGroupStyle === \"lakh\" ? /(\\d+?)(?=(\\d\\d)+(\\d)(?!\\d))/g : thousandsGroupStyle === \"wan\" ? /(\\d)(?=(\\d{4})+(?!\\d))/g : /(\\d)(?=(\\d{3})+(?!\\d))/g;\n integer = integer.replace(pattern, `$1${separator}`);\n }\n return `${negative ? \"-\" : \"\"}${prefix}${integer}${fraction ? `${decimalSeparator}${fraction}` : \"\"}${suffix}`;\n}\n\n/**\n * Prints a formatted number.\n *\n * @example\n * <NumberFormatter value={1234567.891} thousandSeparator decimalScale={2} suffix=\" SAR\" />\n */\nexport function NumberFormatter(_props: NumberFormatterProps) {\n const { value, ...options } = useProps(\"NumberFormatter\", {}, _props);\n // Always LTR so separators / signs don't reverse on Arabic pages.\n return (\n <span dir=\"ltr\" style={{ unicodeBidi: \"isolate\" }}>\n {formatNumber(value, options)}\n </span>\n );\n}\n"],"mappings":";;;;;;AA4DI;AArCG,SAAS,aAAa,OAA2C,UAA+C,CAAC,GAAW;AACjI,MAAI,UAAU,QAAQ,UAAU,UAAa,UAAU,GAAI,QAAO;AAClE,QAAM;AAAA,IACJ,SAAS;AAAA,IACT,SAAS;AAAA,IACT;AAAA,IACA,mBAAmB;AAAA,IACnB;AAAA,IACA;AAAA,IACA,gBAAgB;AAAA,IAChB,sBAAsB;AAAA,EACxB,IAAI;AACJ,MAAI,SAAS,OA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 } from "./chunk-5XXK7KQE.js";
14
14
  import {
15
15
  Popover,
16
16
  PopoverDropdown,
17
17
  PopoverTarget
18
- } from "./chunk-K2Q5Q6WQ.js";
18
+ } from "./chunk-N7T45HQC.js";
19
19
  import {
20
20
  part,
21
21
  toPosition,
@@ -273,4 +273,4 @@ export {
273
273
  DropdownMenuSubTrigger,
274
274
  DropdownMenuSubContent
275
275
  };
276
- //# sourceMappingURL=chunk-GD5URO3H.js.map
276
+ //# sourceMappingURL=chunk-ULMVA37U.js.map
@@ -0,0 +1,206 @@
1
+ "use client";
2
+ import {
3
+ ColorPicker,
4
+ convertHsvaTo,
5
+ isColorValid,
6
+ parseColor
7
+ } from "./chunk-VIO22OUP.js";
8
+ import {
9
+ ColorSwatch
10
+ } from "./chunk-MWYGXAJQ.js";
11
+ import {
12
+ InputBase
13
+ } from "./chunk-JJXJXOZ7.js";
14
+ import {
15
+ ActionIcon
16
+ } from "./chunk-YFBYWNYF.js";
17
+ import {
18
+ Popover,
19
+ PopoverDropdown,
20
+ PopoverTarget
21
+ } from "./chunk-N7T45HQC.js";
22
+ import {
23
+ factory
24
+ } from "./chunk-CJ7I6UM7.js";
25
+ import {
26
+ useProps,
27
+ useStyles
28
+ } from "./chunk-4QBFXTYH.js";
29
+ import {
30
+ useWelloLabels,
31
+ useWelloTheme
32
+ } from "./chunk-IK562BNJ.js";
33
+
34
+ // src/components/ColorPicker/ColorInput.tsx
35
+ import { useEffect, useRef, useState } from "react";
36
+ import { jsx, jsxs } from "react/jsx-runtime";
37
+ var PREVIEW_SIZE = { xs: 16, sm: 18, md: 22, lg: 28, xl: 36 };
38
+ var ICON_SIZE = { xs: 14, sm: 16, md: 18, lg: 20, xl: 22 };
39
+ function EyeDropperIcon({ size, ...props }) {
40
+ return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", width: size, height: size, fill: "none", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...props, children: [
41
+ /* @__PURE__ */ jsx("path", { d: "M11 7l6 6" }),
42
+ /* @__PURE__ */ jsx("path", { d: "M4 16l11.7-11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4L8 20H4v-4z" })
43
+ ] });
44
+ }
45
+ var ColorInput = factory((_props, ref) => {
46
+ const props = useProps("ColorInput", { format: "hex", fixOnBlur: true, withPreview: true, swatchesPerRow: 7, withPicker: true, withEyeDropper: true, size: "sm" }, _props);
47
+ const {
48
+ classNames,
49
+ styles,
50
+ unstyled,
51
+ vars,
52
+ attributes,
53
+ disallowInput,
54
+ fixOnBlur,
55
+ popoverProps,
56
+ withPreview,
57
+ withEyeDropper,
58
+ eyeDropperIcon,
59
+ eyeDropperButtonProps,
60
+ closeOnColorSwatchClick,
61
+ value,
62
+ defaultValue,
63
+ onChange,
64
+ onChangeEnd,
65
+ onFocus,
66
+ onBlur,
67
+ onClick,
68
+ format = "hex",
69
+ readOnly,
70
+ withPicker,
71
+ swatches,
72
+ swatchesPerRow,
73
+ disabled,
74
+ leftSection,
75
+ rightSection,
76
+ size,
77
+ fullWidth,
78
+ ...others
79
+ } = props;
80
+ const labels = useWelloLabels();
81
+ const theme = useWelloTheme();
82
+ const partClasses = typeof classNames === "function" ? classNames(theme, props) : classNames;
83
+ const partStyles = typeof styles === "function" ? styles(theme, props) : styles;
84
+ const getStyles = useStyles({ name: "ColorInput", props, classNames: partClasses, styles: partStyles, unstyled, vars, attributes, rootSelector: "wrapper" });
85
+ const [opened, setOpened] = useState(false);
86
+ const [internal, setInternal] = useState(defaultValue ?? "");
87
+ const current = value !== void 0 ? value : internal;
88
+ const setValue = (next) => {
89
+ if (value === void 0) setInternal(next);
90
+ onChange?.(next);
91
+ };
92
+ const lastValid = useRef("");
93
+ useEffect(() => {
94
+ if (isColorValid(current) || current.trim() === "") lastValid.current = current;
95
+ }, [current]);
96
+ const lastFormat = useRef(format);
97
+ useEffect(() => {
98
+ if (lastFormat.current === format) return;
99
+ lastFormat.current = format;
100
+ if (isColorValid(current)) setValue(convertHsvaTo(format, parseColor(current)));
101
+ }, [format]);
102
+ const [eyeDropperSupported, setSupported] = useState(false);
103
+ useEffect(() => setSupported(typeof window !== "undefined" && "EyeDropper" in window), []);
104
+ const named = typeof size === "string" ? size : "sm";
105
+ return /* @__PURE__ */ jsxs(
106
+ Popover,
107
+ {
108
+ position: "bottom-start",
109
+ offset: 5,
110
+ opened,
111
+ width: fullWidth ? "target" : void 0,
112
+ transitionProps: { duration: 0 },
113
+ ...popoverProps,
114
+ dir: popoverProps?.dir ?? "ltr",
115
+ withRoles: false,
116
+ disabled: readOnly || withPicker === false && !swatches?.length,
117
+ children: [
118
+ /* @__PURE__ */ jsx(PopoverTarget, { children: /* @__PURE__ */ jsx(
119
+ InputBase,
120
+ {
121
+ autoComplete: "off",
122
+ spellCheck: false,
123
+ ...others,
124
+ __staticSelector: "ColorInput",
125
+ ref,
126
+ classNames: partClasses,
127
+ styles: partStyles,
128
+ unstyled,
129
+ size,
130
+ disabled,
131
+ readOnly: disallowInput || readOnly,
132
+ pointer: disallowInput,
133
+ value: current,
134
+ onFocus: (event) => {
135
+ onFocus?.(event);
136
+ setOpened(true);
137
+ },
138
+ onBlur: (event) => {
139
+ if (fixOnBlur && current !== lastValid.current) setValue(lastValid.current);
140
+ onBlur?.(event);
141
+ setOpened(false);
142
+ },
143
+ onClick: (event) => {
144
+ onClick?.(event);
145
+ setOpened(true);
146
+ },
147
+ onChange: (event) => {
148
+ const next = event.currentTarget.value;
149
+ setValue(next);
150
+ if (isColorValid(next)) onChangeEnd?.(convertHsvaTo(format, parseColor(next)));
151
+ },
152
+ leftSection: leftSection || (withPreview ? /* @__PURE__ */ jsx(ColorSwatch, { color: isColorValid(current) ? current : "#fff", size: PREVIEW_SIZE[named] ?? 18, ...getStyles("colorPreview") }) : null),
153
+ rightSectionPointerEvents: "auto",
154
+ rightSection: rightSection || (withEyeDropper && !disabled && !readOnly && eyeDropperSupported ? /* @__PURE__ */ jsx(
155
+ ActionIcon,
156
+ {
157
+ "aria-label": labels.colorEyeDropper,
158
+ ...eyeDropperButtonProps,
159
+ ...getStyles("eyeDropperButton"),
160
+ variant: "subtle",
161
+ color: "gray",
162
+ onMouseDown: (event) => event.preventDefault(),
163
+ onClick: () => {
164
+ const EyeDropper = window.EyeDropper;
165
+ new EyeDropper().open().then(({ sRGBHex }) => {
166
+ const color = convertHsvaTo(format, parseColor(sRGBHex));
167
+ setValue(color);
168
+ onChangeEnd?.(color);
169
+ }).catch(() => void 0);
170
+ },
171
+ children: eyeDropperIcon || /* @__PURE__ */ jsx(EyeDropperIcon, { size: ICON_SIZE[named] ?? 16, ...getStyles("eyeDropperIcon") })
172
+ }
173
+ ) : null)
174
+ }
175
+ ) }),
176
+ /* @__PURE__ */ jsx(PopoverDropdown, { ...getStyles("dropdown"), onMouseDown: (event) => event.preventDefault(), children: /* @__PURE__ */ jsx(
177
+ ColorPicker,
178
+ {
179
+ value: current,
180
+ onChange: setValue,
181
+ onChangeEnd,
182
+ format,
183
+ swatches,
184
+ swatchesPerRow,
185
+ withPicker,
186
+ size,
187
+ focusable: false,
188
+ unstyled,
189
+ classNames: partClasses,
190
+ styles: partStyles,
191
+ fullWidth,
192
+ onColorSwatchClick: () => {
193
+ if (closeOnColorSwatchClick) setOpened(false);
194
+ }
195
+ }
196
+ ) })
197
+ ]
198
+ }
199
+ );
200
+ });
201
+ ColorInput.displayName = "ColorInput";
202
+
203
+ export {
204
+ ColorInput
205
+ };
206
+ //# sourceMappingURL=chunk-X7WXW6AV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/ColorPicker/ColorInput.tsx"],"sourcesContent":["import { useEffect, useRef, useState, type ReactNode } from \"react\";\nimport { factory } from \"../../core/factory/factory\";\nimport { useWelloLabels } from \"../../core/provider/labels\";\nimport { useWelloTheme } from \"../../core/provider/WelloProvider\";\nimport { useProps, useStyles, type StylesApiProps } from \"../../core/styles-api/styles-api\";\nimport { ActionIcon } from \"../ActionIcon/ActionIcon\";\nimport { InputBase, type InputBaseProps, type InputStylesNames, type InputWrapperStylesNames } from \"../Input/Input\";\nimport { Popover, PopoverDropdown, PopoverTarget, type PopoverProps } from \"../Popover/Popover\";\nimport { ColorSwatch } from \"../ThemeIcon/ThemeIcon\";\nimport { convertHsvaTo, isColorValid, parseColor } from \"./color-converters\";\nimport { ColorPicker, type ColorPickerBaseProps, type ColorPickerStylesNames } from \"./ColorPicker\";\n\nexport type ColorInputStylesNames = \"dropdown\" | \"eyeDropperButton\" | \"eyeDropperIcon\" | \"colorPreview\" | ColorPickerStylesNames | InputStylesNames | InputWrapperStylesNames;\n\nexport interface ColorInputProps extends Omit<InputBaseProps, \"value\" | \"defaultValue\" | \"onChange\" | \"size\" | keyof StylesApiProps<string>>, ColorPickerBaseProps, StylesApiProps<ColorInputStylesNames, ColorInputProps> {\n placeholder?: string;\n name?: string;\n readOnly?: boolean;\n /** Only the picker and swatches can change it */\n disallowInput?: boolean;\n /** Back to the last valid color on blur. Default: true */\n fixOnBlur?: boolean;\n popoverProps?: Partial<PopoverProps>;\n /** Color sample on the left. Default: true */\n withPreview?: boolean;\n /** Button to pick from the screen, where the browser supports it. Default: true */\n withEyeDropper?: boolean;\n eyeDropperIcon?: ReactNode;\n eyeDropperButtonProps?: Record<string, unknown>;\n /** Clicking a swatch closes the dropdown */\n closeOnColorSwatchClick?: boolean;\n onFocus?: React.FocusEventHandler<HTMLInputElement>;\n onBlur?: React.FocusEventHandler<HTMLInputElement>;\n onClick?: React.MouseEventHandler<HTMLInputElement>;\n}\n\nconst PREVIEW_SIZE: Record<string, number> = { xs: 16, sm: 18, md: 22, lg: 28, xl: 36 };\nconst ICON_SIZE: Record<string, number> = { xs: 14, sm: 16, md: 18, lg: 20, xl: 22 };\n\nfunction EyeDropperIcon({ size, ...props }: { size: number } & React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox=\"0 0 24 24\" width={size} height={size} fill=\"none\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\" {...props}>\n <path d=\"M11 7l6 6\" />\n <path d=\"M4 16l11.7-11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4L8 20H4v-4z\" />\n </svg>\n );\n}\n\ntype EyeDropperConstructor = new () => { open: () => Promise<{ sRGBHex: string }> };\n\n/**\n * Text field with a color picker in a dropdown.\n *\n * @example\n * <ColorInput label=\"Brand color\" value={color} onChange={setColor} />\n * <ColorInput {...field} format=\"rgba\" swatches={[\"#2563eb\", \"#dc2626\"]} />\n */\nexport const ColorInput = factory<{ props: ColorInputProps; ref: HTMLInputElement; stylesNames: ColorInputStylesNames }>((_props, ref) => {\n const props = useProps(\"ColorInput\", { format: \"hex\", fixOnBlur: true, withPreview: true, swatchesPerRow: 7, withPicker: true, withEyeDropper: true, size: \"sm\" }, _props);\n const {\n classNames,\n styles,\n unstyled,\n vars,\n attributes,\n disallowInput,\n fixOnBlur,\n popoverProps,\n withPreview,\n withEyeDropper,\n eyeDropperIcon,\n eyeDropperButtonProps,\n closeOnColorSwatchClick,\n value,\n defaultValue,\n onChange,\n onChangeEnd,\n onFocus,\n onBlur,\n onClick,\n format = \"hex\",\n readOnly,\n withPicker,\n swatches,\n swatchesPerRow,\n disabled,\n leftSection,\n rightSection,\n size,\n fullWidth,\n ...others\n } = props;\n const labels = useWelloLabels();\n const theme = useWelloTheme();\n const partClasses = typeof classNames === \"function\" ? classNames(theme, props) : classNames;\n const partStyles = typeof styles === \"function\" ? styles(theme, props) : styles;\n const getStyles = useStyles<ColorInputStylesNames, ColorInputProps>({ name: \"ColorInput\", props, classNames: partClasses, styles: partStyles, unstyled, vars, attributes, rootSelector: \"wrapper\" });\n\n const [opened, setOpened] = useState(false);\n const [internal, setInternal] = useState(defaultValue ?? \"\");\n const current = value !== undefined ? value : internal;\n const setValue = (next: string) => {\n if (value === undefined) setInternal(next);\n onChange?.(next);\n };\n const lastValid = useRef(\"\");\n useEffect(() => {\n if (isColorValid(current) || current.trim() === \"\") lastValid.current = current;\n }, [current]);\n\n // Compared, not \"skip the first run\": StrictMode runs effects twice on mount.\n const lastFormat = useRef(format);\n useEffect(() => {\n if (lastFormat.current === format) return;\n lastFormat.current = format;\n if (isColorValid(current)) setValue(convertHsvaTo(format, parseColor(current)));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [format]);\n\n // Checked after mount, so the server and the browser render the same thing.\n const [eyeDropperSupported, setSupported] = useState(false);\n useEffect(() => setSupported(typeof window !== \"undefined\" && \"EyeDropper\" in window), []);\n const named = typeof size === \"string\" ? size : \"sm\";\n\n return (\n <Popover\n position=\"bottom-start\"\n offset={5}\n opened={opened}\n width={fullWidth ? \"target\" : undefined}\n transitionProps={{ duration: 0 }}\n {...popoverProps}\n dir={popoverProps?.dir ?? \"ltr\"}\n withRoles={false}\n disabled={readOnly || (withPicker === false && !swatches?.length)}\n >\n <PopoverTarget>\n <InputBase\n autoComplete=\"off\"\n spellCheck={false}\n {...(others as object)}\n __staticSelector=\"ColorInput\"\n ref={ref}\n classNames={partClasses}\n styles={partStyles}\n unstyled={unstyled}\n size={size}\n disabled={disabled}\n readOnly={disallowInput || readOnly}\n pointer={disallowInput}\n value={current}\n onFocus={(event: React.FocusEvent<HTMLInputElement>) => {\n onFocus?.(event);\n setOpened(true);\n }}\n onBlur={(event: React.FocusEvent<HTMLInputElement>) => {\n if (fixOnBlur && current !== lastValid.current) setValue(lastValid.current);\n onBlur?.(event);\n setOpened(false);\n }}\n onClick={(event: React.MouseEvent<HTMLInputElement>) => {\n onClick?.(event);\n setOpened(true);\n }}\n onChange={(event: React.ChangeEvent<HTMLInputElement>) => {\n const next = event.currentTarget.value;\n setValue(next);\n if (isColorValid(next)) onChangeEnd?.(convertHsvaTo(format, parseColor(next)));\n }}\n leftSection={leftSection || (withPreview ? <ColorSwatch color={isColorValid(current) ? current : \"#fff\"} size={PREVIEW_SIZE[named] ?? 18} {...getStyles(\"colorPreview\")} /> : null)}\n rightSectionPointerEvents=\"auto\"\n rightSection={\n rightSection ||\n (withEyeDropper && !disabled && !readOnly && eyeDropperSupported ? (\n <ActionIcon\n aria-label={labels.colorEyeDropper}\n {...eyeDropperButtonProps}\n {...getStyles(\"eyeDropperButton\")}\n variant=\"subtle\"\n color=\"gray\"\n onMouseDown={(event: React.MouseEvent) => event.preventDefault()}\n onClick={() => {\n const EyeDropper = (window as unknown as { EyeDropper: EyeDropperConstructor }).EyeDropper;\n new EyeDropper()\n .open()\n .then(({ sRGBHex }) => {\n const color = convertHsvaTo(format, parseColor(sRGBHex));\n setValue(color);\n onChangeEnd?.(color);\n })\n .catch(() => undefined);\n }}\n >\n {eyeDropperIcon || <EyeDropperIcon size={ICON_SIZE[named] ?? 16} {...(getStyles(\"eyeDropperIcon\") as object)} />}\n </ActionIcon>\n ) : null)\n }\n />\n </PopoverTarget>\n <PopoverDropdown {...getStyles(\"dropdown\")} onMouseDown={(event: React.MouseEvent) => event.preventDefault()}>\n <ColorPicker\n value={current}\n onChange={setValue}\n onChangeEnd={onChangeEnd}\n format={format}\n swatches={swatches}\n swatchesPerRow={swatchesPerRow}\n withPicker={withPicker}\n size={size}\n focusable={false}\n unstyled={unstyled}\n classNames={partClasses as never}\n styles={partStyles as never}\n fullWidth={fullWidth}\n onColorSwatchClick={() => {\n if (closeOnColorSwatchClick) setOpened(false);\n }}\n />\n </PopoverDropdown>\n </Popover>\n );\n});\nColorInput.displayName = \"ColorInput\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,WAAW,QAAQ,gBAAgC;AAyCxD,SACE,KADF;AALJ,IAAM,eAAuC,EAAE,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,GAAG;AACtF,IAAM,YAAoC,EAAE,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,GAAG;AAEnF,SAAS,eAAe,EAAE,MAAM,GAAG,MAAM,GAAqD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U,UAAU,GAAG,aAAa,CAAC,UAA4B,MAAM,eAAe,GACzG;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,YACP,UAAU;AAAA,YACV;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,WAAW;AAAA,YACX;AAAA,YACA,YAAY;AAAA,YACZ,QAAQ;AAAA,YACR;AAAA,YACA,oBAAoB,MAAM;AACxB,kBAAI,wBAAyB,WAAU,KAAK;AAAA,YAC9C;AAAA;AAAA,QACF,GACF;AAAA;AAAA;AAAA,EACF;AAEJ,CAAC;AACD,WAAW,cAAc;","names":[]}
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import {
3
3
  ColorInput
4
- } from "../../chunk-YHPHWOAE.js";
4
+ } from "../../chunk-X7WXW6AV.js";
5
5
  import "../../chunk-VIO22OUP.js";
6
6
  import "../../chunk-MWYGXAJQ.js";
7
7
  import "../../chunk-JJXJXOZ7.js";
8
8
  import "../../chunk-57ZKN6G3.js";
9
9
  import "../../chunk-YFBYWNYF.js";
10
10
  import "../../chunk-ZJZUNSCO.js";
11
- import "../../chunk-K2Q5Q6WQ.js";
12
- import "../../chunk-F4OMXH3E.js";
11
+ import "../../chunk-N7T45HQC.js";
12
+ import "../../chunk-QSFXOVRL.js";
13
13
  import "../../chunk-AZ4WBNXD.js";
14
14
  import "../../chunk-FIAJMBSD.js";
15
15
  import "../../chunk-H4D7LXZL.js";
@@ -15,12 +15,12 @@ import {
15
15
  ComboboxTarget,
16
16
  useCombobox,
17
17
  useComboboxContext
18
- } from "../../chunk-TJUOXXLK.js";
18
+ } from "../../chunk-BVGYS3NN.js";
19
19
  import "../../chunk-57ZKN6G3.js";
20
20
  import "../../chunk-YFBYWNYF.js";
21
21
  import "../../chunk-ZJZUNSCO.js";
22
- import "../../chunk-K2Q5Q6WQ.js";
23
- import "../../chunk-F4OMXH3E.js";
22
+ import "../../chunk-N7T45HQC.js";
23
+ import "../../chunk-QSFXOVRL.js";
24
24
  import "../../chunk-AZ4WBNXD.js";
25
25
  import "../../chunk-FIAJMBSD.js";
26
26
  import "../../chunk-H4D7LXZL.js";
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import {
3
3
  Select
4
- } from "../../chunk-2XGMU4QA.js";
4
+ } from "../../chunk-DZ7HIMJ5.js";
5
5
  import "../../chunk-DHAMBKCR.js";
6
- import "../../chunk-TJUOXXLK.js";
6
+ import "../../chunk-BVGYS3NN.js";
7
7
  import "../../chunk-JJXJXOZ7.js";
8
8
  import "../../chunk-DCC7EE67.js";
9
9
  import "../../chunk-57ZKN6G3.js";
10
10
  import "../../chunk-YFBYWNYF.js";
11
11
  import "../../chunk-ZJZUNSCO.js";
12
- import "../../chunk-K2Q5Q6WQ.js";
13
- import "../../chunk-F4OMXH3E.js";
12
+ import "../../chunk-N7T45HQC.js";
13
+ import "../../chunk-QSFXOVRL.js";
14
14
  import "../../chunk-AZ4WBNXD.js";
15
15
  import "../../chunk-FIAJMBSD.js";
16
16
  import "../../chunk-H4D7LXZL.js";
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import {
3
3
  TagsInput
4
- } from "../../chunk-O4MQLZEH.js";
4
+ } from "../../chunk-KNN75VAT.js";
5
5
  import "../../chunk-CGR72YL6.js";
6
6
  import "../../chunk-UYKK6PVB.js";
7
- import "../../chunk-TJUOXXLK.js";
7
+ import "../../chunk-BVGYS3NN.js";
8
8
  import "../../chunk-JJXJXOZ7.js";
9
9
  import "../../chunk-57ZKN6G3.js";
10
10
  import "../../chunk-YFBYWNYF.js";
11
11
  import "../../chunk-ZJZUNSCO.js";
12
- import "../../chunk-K2Q5Q6WQ.js";
13
- import "../../chunk-F4OMXH3E.js";
12
+ import "../../chunk-N7T45HQC.js";
13
+ import "../../chunk-QSFXOVRL.js";
14
14
  import "../../chunk-AZ4WBNXD.js";
15
15
  import "../../chunk-FIAJMBSD.js";
16
16
  import "../../chunk-H4D7LXZL.js";
@@ -6,9 +6,9 @@ import {
6
6
  MenuItem,
7
7
  MenuLabel,
8
8
  MenuTarget
9
- } from "../../chunk-PPKKOBHB.js";
10
- import "../../chunk-K2Q5Q6WQ.js";
11
- import "../../chunk-F4OMXH3E.js";
9
+ } from "../../chunk-5XXK7KQE.js";
10
+ import "../../chunk-N7T45HQC.js";
11
+ import "../../chunk-QSFXOVRL.js";
12
12
  import "../../chunk-AZ4WBNXD.js";
13
13
  import "../../chunk-FIAJMBSD.js";
14
14
  import "../../chunk-H4D7LXZL.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  NumberFormatter,
4
4
  formatNumber
5
- } from "../../chunk-KEYIOWAG.js";
5
+ } from "../../chunk-TIVOXLDX.js";
6
6
  import "../../chunk-4QBFXTYH.js";
7
7
  import "../../chunk-IK562BNJ.js";
8
8
  import "../../chunk-ORHFHJKL.js";
@@ -5,18 +5,18 @@ import {
5
5
  matchesPhoneStartingNumber,
6
6
  normalizeStartingNumber,
7
7
  resolvePhoneCountry
8
- } from "../../chunk-QZFPW75D.js";
8
+ } from "../../chunk-SJBYDDDD.js";
9
9
  import "../../chunk-TVOR2RGE.js";
10
- import "../../chunk-2XGMU4QA.js";
10
+ import "../../chunk-DZ7HIMJ5.js";
11
11
  import "../../chunk-DHAMBKCR.js";
12
- import "../../chunk-TJUOXXLK.js";
12
+ import "../../chunk-BVGYS3NN.js";
13
13
  import "../../chunk-JJXJXOZ7.js";
14
14
  import "../../chunk-DCC7EE67.js";
15
15
  import "../../chunk-57ZKN6G3.js";
16
16
  import "../../chunk-YFBYWNYF.js";
17
17
  import "../../chunk-ZJZUNSCO.js";
18
- import "../../chunk-K2Q5Q6WQ.js";
19
- import "../../chunk-F4OMXH3E.js";
18
+ import "../../chunk-N7T45HQC.js";
19
+ import "../../chunk-QSFXOVRL.js";
20
20
  import "../../chunk-AZ4WBNXD.js";
21
21
  import "../../chunk-FIAJMBSD.js";
22
22
  import "../../chunk-H4D7LXZL.js";
@@ -4,8 +4,8 @@ import {
4
4
  PopoverDropdown,
5
5
  PopoverTarget,
6
6
  usePopoverContext
7
- } from "../../chunk-K2Q5Q6WQ.js";
8
- import "../../chunk-F4OMXH3E.js";
7
+ } from "../../chunk-N7T45HQC.js";
8
+ import "../../chunk-QSFXOVRL.js";
9
9
  import "../../chunk-AZ4WBNXD.js";
10
10
  import "../../chunk-FIAJMBSD.js";
11
11
  import "../../chunk-H4D7LXZL.js";
@@ -5,8 +5,8 @@ import {
5
5
  PasswordInput,
6
6
  TextInput,
7
7
  Textarea
8
- } from "../../chunk-YOL5PMHU.js";
9
- import "../../chunk-KEYIOWAG.js";
8
+ } from "../../chunk-7S7RIVCI.js";
9
+ import "../../chunk-TIVOXLDX.js";
10
10
  import "../../chunk-JJXJXOZ7.js";
11
11
  import "../../chunk-57ZKN6G3.js";
12
12
  import "../../chunk-YFBYWNYF.js";
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  Tooltip,
4
4
  TooltipFloating
5
- } from "../../chunk-6U4Y3AUT.js";
6
- import "../../chunk-F4OMXH3E.js";
5
+ } from "../../chunk-COAMHU2N.js";
6
+ import "../../chunk-QSFXOVRL.js";
7
7
  import "../../chunk-FIAJMBSD.js";
8
8
  import "../../chunk-H4D7LXZL.js";
9
9
  import "../../chunk-CTBTEAD6.js";