@oliasoft-open-source/react-ui-library 6.10.0-beta-7 → 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 +3 -2
- 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/components/color-input/color-input.d.ts +1 -1
- package/dist/components/color-input/color-input.d.ts.map +1 -1
- package/dist/components/color-input/color-input.stories.d.ts +1 -0
- package/dist/components/color-input/color-input.stories.d.ts.map +1 -1
- package/dist/components/color-input/color-input.test-case.stories.d.ts +1 -0
- package/dist/components/color-input/color-input.test-case.stories.d.ts.map +1 -1
- package/dist/global.css +1 -1
- package/dist/index.js +727 -702
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { Color } from 'react-aria-components/ColorPicker';
|
|
3
3
|
export interface IColorInputPopoverTriggerProps {
|
|
4
|
-
|
|
4
|
+
valueColor?: Color;
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
colorName?: string;
|
|
7
7
|
}
|
|
@@ -12,6 +12,7 @@ export interface IColorInputPopoverProps {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
hideAreaPicker?: boolean;
|
|
14
14
|
onChange?: (value: string) => void;
|
|
15
|
+
onConfirm?: (value: string) => void;
|
|
15
16
|
options?: {
|
|
16
17
|
value: string;
|
|
17
18
|
label?: string;
|
|
@@ -19,5 +20,5 @@ export interface IColorInputPopoverProps {
|
|
|
19
20
|
testId?: string;
|
|
20
21
|
value?: string;
|
|
21
22
|
}
|
|
22
|
-
export declare const ColorInputPopover: ({ adjustColorsInDarkMode, children, columns, disabled, hideAreaPicker, onChange, options, testId, value, }: IColorInputPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const ColorInputPopover: ({ adjustColorsInDarkMode, children, columns, disabled, hideAreaPicker, onChange, onConfirm, options, testId, value, }: IColorInputPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
//# sourceMappingURL=color-input-popover.d.ts.map
|
|
@@ -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;
|
|
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"}
|
|
@@ -2,5 +2,5 @@ import { IColorInputPopoverProps } from './color-input-popover';
|
|
|
2
2
|
export interface IColorInputProps extends Omit<IColorInputPopoverProps, 'children'> {
|
|
3
3
|
small?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const ColorInput: ({ adjustColorsInDarkMode, columns, disabled, hideAreaPicker, onChange, options, small, testId, value, }: IColorInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ColorInput: ({ adjustColorsInDarkMode, columns, disabled, hideAreaPicker, onChange, onConfirm, options, small, testId, value, }: IColorInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=color-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-input.d.ts","sourceRoot":"","sources":["../../../src/components/color-input/color-input.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAG/B,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,uBAAuB,EACvB,UAAU,CACX;IACC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,GAAI,
|
|
1
|
+
{"version":3,"file":"color-input.d.ts","sourceRoot":"","sources":["../../../src/components/color-input/color-input.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAG/B,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,uBAAuB,EACvB,UAAU,CACX;IACC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,GAAI,oHAWxB,gBAAgB,4CA+BlB,CAAC"}
|
|
@@ -13,4 +13,5 @@ export declare const AdjustColorsInDarkMode: import('storybook/internal/csf').An
|
|
|
13
13
|
export declare const TestColorFormats: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, IColorInputProps>;
|
|
14
14
|
export declare const TestBlackHueSlider: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, IColorInputProps>;
|
|
15
15
|
export declare const CustomTrigger: StoryFn<IColorInputProps>;
|
|
16
|
+
export declare const OnConfirm: StoryFn<IColorInputProps>;
|
|
16
17
|
//# sourceMappingURL=color-input.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-input.stories.d.ts","sourceRoot":"","sources":["../../../src/components/color-input/color-input.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAc,gBAAgB,EAAE,MAAM,eAAe,CAAC;wBAUxD,IAAI,CAAC,gBAAgB,CAAC;AAN3B,wBAM4B;AAiG5B,eAAO,MAAM,OAAO,oHAAoB,CAAC;AAEzC,eAAO,MAAM,OAAO,oHAAoB,CAAC;AAKzC,eAAO,MAAM,QAAQ,oHAAoB,CAAC;AAK1C,eAAO,MAAM,KAAK,oHAAoB,CAAC;AAKvC,eAAO,MAAM,YAAY,oHAAoB,CAAC;AAK9C,eAAO,MAAM,mBAAmB,oHAAoB,CAAC;AAMrD,eAAO,MAAM,cAAc,oHAAoB,CAAC;AAMhD,eAAO,MAAM,sBAAsB,oHAAoB,CAAC;AAOxD,eAAO,MAAM,gBAAgB,oHAAoB,CAAC;AAUlD,eAAO,MAAM,kBAAkB,oHAAoB,CAAC;AAKpD,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,gBAAgB,CAenD,CAAC"}
|
|
1
|
+
{"version":3,"file":"color-input.stories.d.ts","sourceRoot":"","sources":["../../../src/components/color-input/color-input.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAc,gBAAgB,EAAE,MAAM,eAAe,CAAC;wBAUxD,IAAI,CAAC,gBAAgB,CAAC;AAN3B,wBAM4B;AAiG5B,eAAO,MAAM,OAAO,oHAAoB,CAAC;AAEzC,eAAO,MAAM,OAAO,oHAAoB,CAAC;AAKzC,eAAO,MAAM,QAAQ,oHAAoB,CAAC;AAK1C,eAAO,MAAM,KAAK,oHAAoB,CAAC;AAKvC,eAAO,MAAM,YAAY,oHAAoB,CAAC;AAK9C,eAAO,MAAM,mBAAmB,oHAAoB,CAAC;AAMrD,eAAO,MAAM,cAAc,oHAAoB,CAAC;AAMhD,eAAO,MAAM,sBAAsB,oHAAoB,CAAC;AAOxD,eAAO,MAAM,gBAAgB,oHAAoB,CAAC;AAUlD,eAAO,MAAM,kBAAkB,oHAAoB,CAAC;AAKpD,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,gBAAgB,CAenD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,gBAAgB,CAe/C,CAAC"}
|
|
@@ -4,4 +4,5 @@ declare const _default: Meta<IColorInputProps>;
|
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Test: StoryFn<IColorInputProps>;
|
|
6
6
|
export declare const TestDisabled: StoryFn<IColorInputProps>;
|
|
7
|
+
export declare const TestOnConfirm: StoryFn<IColorInputProps>;
|
|
7
8
|
//# sourceMappingURL=color-input.test-case.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-input.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/color-input/color-input.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAc,gBAAgB,EAAE,MAAM,eAAe,CAAC;wBAMxD,IAAI,CAAC,gBAAgB,CAAC;AAJ3B,wBAI4B;AAU5B,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAc1C,CAAC;AAkCF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,gBAAgB,CAWlD,CAAC"}
|
|
1
|
+
{"version":3,"file":"color-input.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/color-input/color-input.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAc,gBAAgB,EAAE,MAAM,eAAe,CAAC;wBAMxD,IAAI,CAAC,gBAAgB,CAAC;AAJ3B,wBAI4B;AAU5B,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAc1C,CAAC;AAkCF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,gBAAgB,CAWlD,CAAC;AAgBF,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,gBAAgB,CAcnD,CAAC"}
|