@kwantis-id3/frontend-library 0.21.0 → 0.22.0-rc.0
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/changelog.md +9 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/esm/types/components/ThemeContext/ThemeContext.d.ts +1 -1
- package/dist/esm/types/components/ThemeContext/index.d.ts +1 -1
- package/dist/esm/types/components/index.d.ts +1 -1
- package/dist/index.d.ts +3 -1
- package/package.json +4 -2
|
@@ -20,7 +20,7 @@ interface Nothing {
|
|
|
20
20
|
type Union<T, U> = T | (U & Nothing);
|
|
21
21
|
export type ThemeColors = keyof ThemeColorsObject;
|
|
22
22
|
export type ThemeColorsExtended = Union<ThemeColors, string>;
|
|
23
|
-
type ThemeProperties = ThemeContextProps & {
|
|
23
|
+
export type ThemeProperties = ThemeContextProps & {
|
|
24
24
|
getColor: (color: ThemeColorsExtended) => Color;
|
|
25
25
|
};
|
|
26
26
|
export declare const defaultThemeColors: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
|
|
1
|
+
export { ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeProperties, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Button, ButtonProps } from "./Button";
|
|
2
|
-
export { ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
|
|
2
|
+
export { ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeProperties, ThemeContextProvider, useThemeContext, } from "./ThemeContext";
|
|
3
3
|
export { Accordion, AccordionProps } from "./Accordion";
|
|
4
4
|
export { InputField, TInputType } from "./InputField";
|
|
5
5
|
export { SingleSelect, SingleSelectProps, MultiSelect, MultiSelectProps, } from "./SelectFilter";
|
package/dist/index.d.ts
CHANGED
|
@@ -254,6 +254,8 @@ type DropdownItem = {
|
|
|
254
254
|
color?: ThemeColorsExtended;
|
|
255
255
|
textColor?: string;
|
|
256
256
|
children?: DropdownItem[];
|
|
257
|
+
isHidden?: boolean;
|
|
258
|
+
closeOnClick?: boolean;
|
|
257
259
|
onClick?: () => void;
|
|
258
260
|
};
|
|
259
261
|
type DropdownProps = {
|
|
@@ -329,4 +331,4 @@ interface CreateStyled extends BaseCreateStyled, StyledTags {
|
|
|
329
331
|
}
|
|
330
332
|
declare const styled: CreateStyled;
|
|
331
333
|
|
|
332
|
-
export { Accordion, AccordionProps, Button, ButtonProps, Dropdown, DropdownItem, DropdownProps, InputField, Modal, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps, TInputType, ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, styled, transientOptions, useIsMobile, useThemeContext };
|
|
334
|
+
export { Accordion, AccordionProps, Button, ButtonProps, Dropdown, DropdownItem, DropdownProps, InputField, Modal, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps, TInputType, ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, ThemeProperties, styled, transientOptions, useIsMobile, useThemeContext };
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kwantis-id3/frontend-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0-rc.0",
|
|
4
4
|
"description": "Kwantis frontend components collection",
|
|
5
5
|
"scriptsComments": {
|
|
6
6
|
"storybook": "Starts storybook in development mode",
|
|
7
|
+
"build-storybook": "Builds storybook",
|
|
7
8
|
"rollup": "Bundles the library",
|
|
8
9
|
"test": "Runs tests",
|
|
9
10
|
"test:watch": "Runs tests in watch mode",
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
},
|
|
22
23
|
"scripts": {
|
|
23
24
|
"storybook": "storybook dev -p 6006",
|
|
25
|
+
"build-storybook": "storybook build",
|
|
24
26
|
"rollup": "rollup -c",
|
|
25
27
|
"test": "vitest run",
|
|
26
28
|
"test:watch": "vitest",
|
|
@@ -61,7 +63,7 @@
|
|
|
61
63
|
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
62
64
|
"@typescript-eslint/parser": "^5.58.0",
|
|
63
65
|
"@vitest/coverage-v8": "^1.1.0",
|
|
64
|
-
"chromatic": "^
|
|
66
|
+
"chromatic": "^11.0.4",
|
|
65
67
|
"eslint": "^8.38.0",
|
|
66
68
|
"eslint-config-prettier": "^8.8.0",
|
|
67
69
|
"eslint-plugin-react": "^7.32.2",
|