@foi/design-system 0.0.11 → 0.0.13
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/README.md +141 -1
- package/dist/DatePicker.utils-ytCEcs6T.js.map +1 -1
- package/dist/{RadioGroup-BL2bdmZx.js → RadioGroup-DCJBoZc-.js} +30 -29
- package/dist/RadioGroup-DCJBoZc-.js.map +1 -0
- package/dist/{RadioGroup.context-BdRgENJJ.js → RadioGroup.context-QNk2hW_4.js} +4 -4
- package/dist/RadioGroup.context-QNk2hW_4.js.map +1 -0
- package/dist/{Switch-BS8iwAJ5.js → Switch-JF9P9VJf.js} +464 -447
- package/dist/Switch-JF9P9VJf.js.map +1 -0
- package/dist/{ThemeProvider-JlN3U_r2.js → ThemeProvider-Q2Hjezbt.js} +2 -2
- package/dist/{ThemeProvider-JlN3U_r2.js.map → ThemeProvider-Q2Hjezbt.js.map} +1 -1
- package/dist/atoms.mjs +2 -2
- package/dist/components/atoms/Button/Button.interface.d.ts +6 -2
- package/dist/components/atoms/Button/index.d.ts +1 -1
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +4 -1
- package/dist/components/atoms/Checkbox/Checkbox.interface.d.ts +1 -1
- package/dist/components/atoms/DatePicker/DatePicker.interface.d.ts +4 -0
- package/dist/components/atoms/DatePicker/DatePickerMenu/DatePickerMenu.d.ts +0 -2
- package/dist/components/atoms/DatePicker/index.d.ts +1 -1
- package/dist/components/atoms/IconButton/IconButton.interface.d.ts +6 -2
- package/dist/components/atoms/IconButton/index.d.ts +1 -1
- package/dist/components/atoms/Input/Input.d.ts +6 -7
- package/dist/components/atoms/Input/Input.interface.d.ts +66 -13
- package/dist/components/atoms/Input/index.d.ts +1 -1
- package/dist/components/atoms/Pagination/Pagination.d.ts +12 -0
- package/dist/components/atoms/Pagination/Pagination.emotion.d.ts +2 -0
- package/dist/components/atoms/Pagination/Pagination.interface.d.ts +32 -0
- package/dist/components/atoms/Pagination/PaginationMenu/PaginationMenu.d.ts +9 -0
- package/dist/components/atoms/Pagination/PaginationMenu/PaginationMenu.emotion.d.ts +2 -0
- package/dist/components/atoms/Pagination/PaginationMenu/PaginationMenu.interface.d.ts +23 -0
- package/dist/components/atoms/Pagination/PaginationMenu/index.d.ts +4 -0
- package/dist/components/atoms/Pagination/index.d.ts +4 -0
- package/dist/components/atoms/Radio/Radio.d.ts +4 -0
- package/dist/components/atoms/Radio/Radio.interface.d.ts +4 -0
- package/dist/components/atoms/Radio/RadioGroup.context.d.ts +2 -0
- package/dist/components/atoms/Radio/index.d.ts +1 -1
- package/dist/components/atoms/Select/Select.interface.d.ts +4 -0
- package/dist/components/atoms/Select/SelectMenu/SelectMenu.d.ts +1 -2
- package/dist/components/atoms/Select/index.d.ts +1 -1
- package/dist/components/atoms/Skeleton/Skeleton.d.ts +10 -0
- package/dist/components/atoms/Skeleton/Skeleton.emotion.d.ts +2 -0
- package/dist/components/atoms/Skeleton/Skeleton.interface.d.ts +14 -0
- package/dist/components/atoms/Skeleton/index.d.ts +2 -0
- package/dist/components/atoms/Slider/Slider.interface.d.ts +4 -0
- package/dist/components/atoms/Slider/index.d.ts +1 -1
- package/dist/components/atoms/Switch/Switch.interface.d.ts +5 -1
- package/dist/components/atoms/Switch/index.d.ts +1 -1
- package/dist/components/molecules/CheckboxGroup/CheckboxGroup.interface.d.ts +4 -0
- package/dist/components/molecules/CheckboxGroup/index.d.ts +1 -1
- package/dist/components/molecules/CheckboxTree/CheckboxTree.interface.d.ts +4 -0
- package/dist/components/molecules/CheckboxTree/index.d.ts +1 -1
- package/dist/components/molecules/Modal/Modal.d.ts +14 -0
- package/dist/components/molecules/Modal/Modal.emotion.d.ts +2 -0
- package/dist/components/molecules/Modal/Modal.interface.d.ts +42 -0
- package/dist/components/molecules/Modal/index.d.ts +5 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.interface.d.ts +4 -0
- package/dist/components/molecules/RadioGroup/index.d.ts +1 -1
- package/dist/components/organisms/DataGrid/DataGrid.d.ts +19 -0
- package/dist/components/organisms/DataGrid/DataGrid.emotion.d.ts +2 -0
- package/dist/components/organisms/DataGrid/DataGrid.interface.d.ts +124 -0
- package/dist/components/organisms/DataGrid/DataGridMenu/DataGridMenu.d.ts +14 -0
- package/dist/components/organisms/DataGrid/DataGridMenu/DataGridMenu.emotion.d.ts +2 -0
- package/dist/components/organisms/DataGrid/DataGridMenu/DataGridMenu.interface.d.ts +54 -0
- package/dist/components/organisms/DataGrid/DataGridMenu/components/DataGridMenuMultiSelect.d.ts +12 -0
- package/dist/components/organisms/DataGrid/DataGridMenu/components/DataGridMenuSearch.d.ts +8 -0
- package/dist/components/organisms/DataGrid/DataGridMenu/index.d.ts +3 -0
- package/dist/components/organisms/DataGrid/DataGridSkeleton/DataGridSkeleton.d.ts +7 -0
- package/dist/components/organisms/DataGrid/DataGridSkeleton/index.d.ts +1 -0
- package/dist/components/organisms/DataGrid/index.d.ts +4 -0
- package/dist/{emotion-react-jsx-runtime.browser.esm-ClrpcFMG.js → emotion-react-jsx-runtime.browser.esm-C4rLUMui.js} +9 -8
- package/dist/emotion-react-jsx-runtime.browser.esm-C4rLUMui.js.map +1 -0
- package/dist/hocs/ThemeProvider/components/DataGrid.d.ts +20 -0
- package/dist/hocs/ThemeProvider/components/DataGridMenu.d.ts +18 -0
- package/dist/hocs/ThemeProvider/components/Modal.d.ts +16 -0
- package/dist/hocs/ThemeProvider/components/Pagination.d.ts +13 -0
- package/dist/hocs/ThemeProvider/components/PaginationMenu.d.ts +24 -0
- package/dist/hocs/ThemeProvider/components/index.d.ts +5 -1
- package/dist/hocs/ThemeProvider/interfaces/Components.interface.d.ts +6 -1
- package/dist/hocs.mjs +1 -1
- package/dist/hooks/useOnClickOutside.d.ts +2 -3
- package/dist/hooks.mjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.mjs +918 -6
- package/dist/index.mjs.map +1 -0
- package/dist/molecules.mjs +1 -1
- package/dist/theme/dark/colors.d.ts +1 -8
- package/dist/theme/dark/components/Button.d.ts +37 -0
- package/dist/theme/dark/components/DataGrid.d.ts +26 -0
- package/dist/theme/dark/components/DataGridMenu.d.ts +20 -0
- package/dist/theme/dark/components/Modal.d.ts +20 -0
- package/dist/theme/dark/components/Pagination.d.ts +12 -0
- package/dist/theme/dark/components/PaginationMenu.d.ts +32 -0
- package/dist/theme/dark/components/index.d.ts +132 -0
- package/dist/theme/dark/index.d.ts +132 -0
- package/dist/theme/index.d.ts +132 -0
- package/dist/{theme-D18AZjTt.js → theme-Cxg9jdmX.js} +126 -29
- package/dist/theme-Cxg9jdmX.js.map +1 -0
- package/dist/theme.mjs +1 -1
- package/dist/useStateCallback-B4O93zzK.js +32 -0
- package/dist/useStateCallback-B4O93zzK.js.map +1 -0
- package/dist/utilities.mjs +4 -5
- package/dist/utilities.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/RadioGroup-BL2bdmZx.js.map +0 -1
- package/dist/RadioGroup.context-BdRgENJJ.js.map +0 -1
- package/dist/Switch-BS8iwAJ5.js.map +0 -1
- package/dist/emotion-react-jsx-runtime.browser.esm-ClrpcFMG.js.map +0 -1
- package/dist/theme-D18AZjTt.js.map +0 -1
- package/dist/useStateCallback-D9fqdxiO.js +0 -26
- package/dist/useStateCallback-D9fqdxiO.js.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component, Event, StyleValues, Styles } from '../interfaces';
|
|
2
|
+
export type ROOT = Pick<Styles, StyleValues.BACKGROUND_COLOR | StyleValues.BORDER_COLOR | StyleValues.BORDER_WIDTH | StyleValues.BORDER_RADIUS | StyleValues.BORDER_STYLE>;
|
|
3
|
+
export type ENABLED = Pick<Styles, StyleValues.COLOR_PRIMARY | StyleValues.COLOR_SECONDARY | StyleValues.ICON_COLOR>;
|
|
4
|
+
export type HOVER = Pick<Styles, StyleValues.BACKGROUND_COLOR>;
|
|
5
|
+
export type ACTIVE = Pick<Styles, StyleValues.ICON_COLOR>;
|
|
6
|
+
export interface EVENTS {
|
|
7
|
+
[Event.ENABLED]?: ENABLED;
|
|
8
|
+
[Event.HOVER]?: HOVER;
|
|
9
|
+
[Event.ACTIVE]?: ACTIVE;
|
|
10
|
+
}
|
|
11
|
+
export type DATAGRID = Record<Component.DATAGRID, {
|
|
12
|
+
DEFAULT: {
|
|
13
|
+
ROOT?: ROOT;
|
|
14
|
+
EVENTS?: EVENTS;
|
|
15
|
+
};
|
|
16
|
+
[variant: string]: {
|
|
17
|
+
ROOT?: ROOT;
|
|
18
|
+
EVENTS?: EVENTS;
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Component, Event, StyleValues, Styles } from '../interfaces';
|
|
2
|
+
export type ROOT = Pick<Styles, StyleValues.BACKGROUND_COLOR | StyleValues.BORDER_COLOR | StyleValues.BORDER_WIDTH | StyleValues.BORDER_RADIUS | StyleValues.BORDER_STYLE>;
|
|
3
|
+
export type ENABLED = Pick<Styles, StyleValues.COLOR_PRIMARY | StyleValues.COLOR_SECONDARY>;
|
|
4
|
+
export type HOVER = Pick<Styles, StyleValues.BACKGROUND_COLOR>;
|
|
5
|
+
export interface EVENTS {
|
|
6
|
+
[Event.ENABLED]?: ENABLED;
|
|
7
|
+
[Event.HOVER]?: HOVER;
|
|
8
|
+
}
|
|
9
|
+
export type DATAGRIDMENU = Record<Component.DATAGRIDMENU, {
|
|
10
|
+
DEFAULT: {
|
|
11
|
+
ROOT?: ROOT;
|
|
12
|
+
EVENTS?: EVENTS;
|
|
13
|
+
};
|
|
14
|
+
[variant: string]: {
|
|
15
|
+
ROOT?: ROOT;
|
|
16
|
+
EVENTS?: EVENTS;
|
|
17
|
+
};
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component, Event, StyleValues, Styles } from '../interfaces';
|
|
2
|
+
export type ROOT = Pick<Styles, StyleValues.BACKGROUND_COLOR | StyleValues.BORDER_COLOR | StyleValues.BORDER_WIDTH | StyleValues.BORDER_RADIUS | StyleValues.BORDER_STYLE>;
|
|
3
|
+
export type ENABLED = Pick<Styles, StyleValues.COLOR_PRIMARY | StyleValues.COLOR_SECONDARY>;
|
|
4
|
+
export interface EVENTS {
|
|
5
|
+
[Event.ENABLED]?: ENABLED;
|
|
6
|
+
}
|
|
7
|
+
export type MODAL = Record<Component.MODAL, {
|
|
8
|
+
DEFAULT: {
|
|
9
|
+
ROOT?: ROOT;
|
|
10
|
+
EVENTS?: EVENTS;
|
|
11
|
+
};
|
|
12
|
+
[variant: string]: {
|
|
13
|
+
ROOT?: ROOT;
|
|
14
|
+
EVENTS?: EVENTS;
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component, Event, StyleValues, Styles } from '../interfaces';
|
|
2
|
+
export type ENABLED = Pick<Styles, StyleValues.COLOR_SECONDARY>;
|
|
3
|
+
export interface EVENTS {
|
|
4
|
+
[Event.ENABLED]?: ENABLED;
|
|
5
|
+
}
|
|
6
|
+
export type PAGINATION = Record<Component.PAGINATION, {
|
|
7
|
+
DEFAULT: {
|
|
8
|
+
EVENTS?: EVENTS;
|
|
9
|
+
};
|
|
10
|
+
[variant: string]: {
|
|
11
|
+
EVENTS?: EVENTS;
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Component, Event, StyleValues, Styles } from '../interfaces';
|
|
2
|
+
export type ROOT = Pick<Styles, StyleValues.BACKGROUND_COLOR | StyleValues.BORDER_COLOR | StyleValues.BORDER_WIDTH | StyleValues.BORDER_STYLE | StyleValues.BORDER_RADIUS | StyleValues.BOTTOM>;
|
|
3
|
+
export type ENABLED = Pick<Styles, StyleValues.BACKGROUND_COLOR | StyleValues.COLOR_PRIMARY | StyleValues.COLOR_SECONDARY | StyleValues.COLOR_TERTIARY | StyleValues.BORDER_COLOR | StyleValues.BORDER_WIDTH | StyleValues.BORDER_STYLE | StyleValues.BORDER_RADIUS>;
|
|
4
|
+
export type VALUE = ENABLED;
|
|
5
|
+
export type HOVER = ENABLED;
|
|
6
|
+
export type ACTIVE = ENABLED;
|
|
7
|
+
export type FOCUS = ENABLED;
|
|
8
|
+
export interface EVENTS {
|
|
9
|
+
[Event.ENABLED]?: ENABLED;
|
|
10
|
+
[Event.VALUE]?: VALUE;
|
|
11
|
+
[Event.HOVER]?: HOVER;
|
|
12
|
+
[Event.ACTIVE]?: ACTIVE;
|
|
13
|
+
[Event.FOCUS]?: FOCUS;
|
|
14
|
+
}
|
|
15
|
+
export type PAGINATIONMENU = Record<Component.PAGINATIONMENU, {
|
|
16
|
+
DEFAULT: {
|
|
17
|
+
ROOT?: ROOT;
|
|
18
|
+
EVENTS?: EVENTS;
|
|
19
|
+
};
|
|
20
|
+
[variant: string]: {
|
|
21
|
+
ROOT?: ROOT;
|
|
22
|
+
EVENTS?: EVENTS;
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
@@ -9,5 +9,9 @@ import type { RADIO } from './Radio';
|
|
|
9
9
|
import type { RADIOGROUP } from './RadioGroup';
|
|
10
10
|
import type { DATEPICKER } from './DatePicker';
|
|
11
11
|
import type { DATEPICKERMENU } from './DatePickerMenu';
|
|
12
|
-
type
|
|
12
|
+
import type { DATAGRID } from './DataGrid';
|
|
13
|
+
import type { DATAGRIDMENU } from './DataGridMenu';
|
|
14
|
+
import type { PAGINATION } from './Pagination';
|
|
15
|
+
import type { PAGINATIONMENU } from './PaginationMenu';
|
|
16
|
+
type COMPONTENTS = INPUT & BUTTON & ICONBUTTON & CHECKBOX & SELECT & SELECTMENU & SWITCH & RADIO & RADIOGROUP & DATEPICKER & DATEPICKERMENU & DATAGRID & DATAGRIDMENU & PAGINATION & PAGINATIONMENU;
|
|
13
17
|
export { type COMPONTENTS as default };
|
|
@@ -3,14 +3,19 @@ export declare enum Component {
|
|
|
3
3
|
ICONBUTTON = "ICONBUTTON",
|
|
4
4
|
INPUT = "INPUT",
|
|
5
5
|
CHECKBOX = "CHECKBOX",
|
|
6
|
+
RADIO = "RADIO",
|
|
6
7
|
SELECT = "SELECT",
|
|
7
8
|
SELECTMENU = "SELECTMENU",
|
|
8
9
|
SWITCH = "SWITCH",
|
|
9
10
|
SLIDER = "SLIDER",
|
|
10
11
|
DATEPICKER = "DATEPICKER",
|
|
11
12
|
DATEPICKERMENU = "DATEPICKERMENU",
|
|
13
|
+
PAGINATION = "PAGINATION",
|
|
14
|
+
PAGINATIONMENU = "PAGINATIONMENU",
|
|
12
15
|
CHECKBOXGROUP = "CHECKBOXGROUP",
|
|
13
16
|
CHECKBOXTREE = "CHECKBOXTREE",
|
|
14
17
|
RADIOGROUP = "RADIOGROUP",
|
|
15
|
-
|
|
18
|
+
MODAL = "MODAL",
|
|
19
|
+
DATAGRID = "DATAGRID",
|
|
20
|
+
DATAGRIDMENU = "DATAGRIDMENU"
|
|
16
21
|
}
|
package/dist/hocs.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./ThemeProvider-
|
|
1
|
+
import { t as e } from "./ThemeProvider-Q2Hjezbt.js";
|
|
2
2
|
export { e as ThemeProvider };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
2
|
interface UseClickOutsideAlerter {
|
|
3
3
|
ref: RefObject<Element | null>;
|
|
4
4
|
isActive: boolean;
|
|
5
5
|
onAction: () => void;
|
|
6
6
|
exceptRef?: RefObject<Element | null>;
|
|
7
|
-
dependencies?: DependencyList;
|
|
8
7
|
}
|
|
9
|
-
export declare const useOnClickOutside: ({ ref, onAction, isActive, exceptRef
|
|
8
|
+
export declare const useOnClickOutside: ({ ref, onAction, isActive, exceptRef }: UseClickOutsideAlerter) => void;
|
|
10
9
|
export {};
|
package/dist/hooks.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./useStateCallback-
|
|
1
|
+
import { n as e, t } from "./useStateCallback-B4O93zzK.js";
|
|
2
2
|
export { e as useOnClickOutside, t as useStateCallback };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as Button } from './components/atoms/Button';
|
|
2
|
+
export { default as Skeleton } from './components/atoms/Skeleton';
|
|
3
|
+
export type { SkeletonProps } from './components/atoms/Skeleton';
|
|
2
4
|
export { default as Icon } from './components/atoms/Icon';
|
|
3
5
|
export { default as Checkbox } from './components/atoms/Checkbox';
|
|
4
6
|
export { default as DatePicker } from './components/atoms/DatePicker';
|
|
@@ -8,7 +10,11 @@ export { default as Radio } from './components/atoms/Radio';
|
|
|
8
10
|
export { default as Select } from './components/atoms/Select';
|
|
9
11
|
export { default as Slider } from './components/atoms/Slider';
|
|
10
12
|
export { default as Switch } from './components/atoms/Switch';
|
|
13
|
+
export { default as DataGrid } from './components/organisms/DataGrid';
|
|
14
|
+
export type { DataGridProps, DataGridColumn, DataGridColumnType, DataGridFilterType, DataGridFilterOption, DataGridFilter, DataGridFetchParams, DataGridFetchResult, DataGridPaginationType, } from './components/organisms/DataGrid';
|
|
11
15
|
export { default as CheckboxGroup } from './components/molecules/CheckboxGroup';
|
|
16
|
+
export { default as Pagination } from './components/atoms/Pagination';
|
|
17
|
+
export type { PaginationProps } from './components/atoms/Pagination';
|
|
12
18
|
export { default as CheckboxTree } from './components/molecules/CheckboxTree';
|
|
13
19
|
export { default as RadioGroup } from './components/molecules/RadioGroup';
|
|
14
20
|
export { default as ThemeProvider } from './hocs/ThemeProvider';
|