@oliasoft-open-source/react-ui-library 6.10.0-beta-8 → 6.10.0-beta-9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/color-input/color-input-popover.d.ts +1 -1
- package/dist/components/color-input/color-input-popover.d.ts.map +1 -1
- package/dist/components/color-input/color-input-utils.d.ts +3 -3
- package/dist/components/color-input/color-input-utils.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-input-popover.d.ts","sourceRoot":"","sources":["../../../src/components/color-input/color-input-popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAiB/D,MAAM,WAAW,8BAA8B;IAC7C,
|
|
1
|
+
{"version":3,"file":"color-input-popover.d.ts","sourceRoot":"","sources":["../../../src/components/color-input/color-input-popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAiB/D,MAAM,WAAW,8BAA8B;IAC7C,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,EACJ,KAAK,CAAC,SAAS,GACf,CAAC,CAAC,KAAK,EAAE,8BAA8B,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,iBAAiB,GAAI,uHAW/B,uBAAuB,4CA6IzB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Color } from 'react-aria-components/ColorPicker';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const parseColorValue: (value: string | undefined) => Color | undefined;
|
|
3
|
+
export declare const toPickerDraftColor: (value: string | undefined) => Color;
|
|
4
4
|
export declare const toOutputValue: (color: Color) => string;
|
|
5
5
|
export declare const isAchromatic: (color: Color) => boolean;
|
|
6
6
|
export declare const colorsMatch: (a: Color, b: Color) => boolean;
|
|
7
|
-
export declare const syncPickerColor: (
|
|
7
|
+
export declare const syncPickerColor: (valueColor: Color, draftColor: Color) => Color;
|
|
8
8
|
//# sourceMappingURL=color-input-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-input-utils.d.ts","sourceRoot":"","sources":["../../../src/components/color-input/color-input-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,KAAK,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"color-input-utils.d.ts","sourceRoot":"","sources":["../../../src/components/color-input/color-input-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAoC3E,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,GAAG,SAAS,KACxB,KAAK,GAAG,SAMV,CAAC;AAIF,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,GAAG,SAAS,UACO,CAAC;AAEpE,eAAO,MAAM,aAAa,GAAI,OAAO,KAAK,WAA0B,CAAC;AAErE,eAAO,MAAM,YAAY,GAAI,OAAO,KAAK,YAMxC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,GAAG,KAAK,EAAE,GAAG,KAAK,YAa7C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,YAAY,KAAK,EAAE,YAAY,KAAK,UAgBnE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1531,7 +1531,7 @@ var Oa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), ka =
|
|
|
1531
1531
|
})
|
|
1532
1532
|
}, e.value);
|
|
1533
1533
|
})
|
|
1534
|
-
}), Ra =
|
|
1534
|
+
}), Ra = 100, za = ({ adjustColorsInDarkMode: e = !1, children: t, columns: n, disabled: r, hideAreaPicker: i = !1, onChange: a, onConfirm: o, options: s = [], testId: l, value: u }) => {
|
|
1535
1535
|
let { locale: f } = On(), [p, h] = m(!1), [_, b] = m(() => Ma(u)), x = ja(u), S = d(() => Qt((e) => a == null ? void 0 : a(e), Ra), [a]);
|
|
1536
1536
|
c(() => () => S.cancel(), [S]), c(() => {
|
|
1537
1537
|
if (p) return;
|
|
@@ -1568,7 +1568,7 @@ var Oa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), ka =
|
|
|
1568
1568
|
]), A = e ? Ea.adjustColorsInDarkMode : void 0, j = typeof t == "function" ? t({
|
|
1569
1569
|
isOpen: p,
|
|
1570
1570
|
colorName: k,
|
|
1571
|
-
|
|
1571
|
+
valueColor: x
|
|
1572
1572
|
}) : t;
|
|
1573
1573
|
return /* @__PURE__ */ v("div", {
|
|
1574
1574
|
className: g(Ea.colorInput, A),
|
|
@@ -1624,7 +1624,7 @@ var Oa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), ka =
|
|
|
1624
1624
|
options: o,
|
|
1625
1625
|
testId: c,
|
|
1626
1626
|
value: l,
|
|
1627
|
-
children: ({ isOpen: e, colorName: t,
|
|
1627
|
+
children: ({ isOpen: e, colorName: t, valueColor: r }) => /* @__PURE__ */ v(K, {
|
|
1628
1628
|
round: !0,
|
|
1629
1629
|
disabled: n,
|
|
1630
1630
|
basic: !0,
|
package/package.json
CHANGED