maru_design2 2.31.1 → 3.0.2
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 +46 -0
- package/dist/components/atoms/badge/Badge.d.ts +40 -3
- package/dist/components/atoms/button/Button.d.ts +16 -0
- package/dist/components/atoms/checkbox/Checkbox.d.ts +2 -1
- package/dist/components/atoms/chip/Chip.d.ts +36 -3
- package/dist/components/atoms/code/Code.d.ts +2 -1
- package/dist/components/atoms/icon/Icon.d.ts +5 -3
- package/dist/components/atoms/icon/iconmap.d.ts +4 -0
- package/dist/components/atoms/input/Input.d.ts +8 -0
- package/dist/components/atoms/popover/Popover.d.ts +1 -1
- package/dist/components/atoms/radio/Radio.d.ts +9 -5
- package/dist/components/atoms/radio/index.d.ts +1 -0
- package/dist/components/atoms/skeleton/Contents.d.ts +2 -1
- package/dist/components/atoms/skeleton/Skeleton.d.ts +2 -1
- package/dist/components/atoms/slider/Slider.d.ts +3 -5
- package/dist/components/atoms/toggle/Toggle.d.ts +8 -23
- package/dist/components/atoms/toggle/index.d.ts +1 -0
- package/dist/components/atoms/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/molecules/buttonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/molecules/calendar/Calendar.d.ts +1 -1
- package/dist/components/molecules/calendar/DatePickerHeader.d.ts +2 -1
- package/dist/components/molecules/calendar/DatePickerWrapper.d.ts +2 -1
- package/dist/components/molecules/dropdown/Dropdown.d.ts +6 -1
- package/dist/components/molecules/dropdown/menu/MenuItem.d.ts +1 -1
- package/dist/components/molecules/dropdown/menu/index.d.ts +1 -1
- package/dist/components/molecules/dropdown/toggleButton/Arrow.d.ts +2 -2
- package/dist/components/molecules/dropdown/toggleButton/Clear.d.ts +2 -1
- package/dist/components/molecules/dropdown/toggleButton/index.d.ts +2 -1
- package/dist/components/molecules/inputWithAction/InputWithAction.d.ts +14 -0
- package/dist/components/molecules/inputWithAction/index.d.ts +1 -0
- package/dist/components/molecules/modal/Modal.d.ts +20 -2
- package/dist/components/molecules/multiSelectDropdown/MultiSelectDropdown.d.ts +2 -1
- package/dist/components/molecules/multiSelectDropdown/menu/MenuItem.d.ts +2 -1
- package/dist/components/molecules/multiSelectDropdown/menu/index.d.ts +2 -1
- package/dist/components/molecules/multiSelectDropdown/toggleButton/Arrow.d.ts +2 -1
- package/dist/components/molecules/multiSelectDropdown/toggleButton/Clear.d.ts +2 -1
- package/dist/components/molecules/multiSelectDropdown/toggleButton/index.d.ts +2 -1
- package/dist/components/molecules/numberInput/NumberInput.d.ts +18 -0
- package/dist/components/molecules/numberInput/index.d.ts +1 -0
- package/dist/components/molecules/pagination/Pagination.d.ts +2 -1
- package/dist/components/molecules/searchInput/SearchInput.d.ts +1 -1
- package/dist/components/molecules/searchInput/filter/FilterPopover.d.ts +1 -1
- package/dist/components/molecules/searchInput/filter/index.d.ts +1 -1
- package/dist/components/molecules/table/Colgroup.d.ts +2 -1
- package/dist/components/molecules/table/Table.d.ts +2 -1
- package/dist/components/molecules/table/body/BinButtonTd.d.ts +2 -1
- package/dist/components/molecules/table/body/ChartButtonTd.d.ts +2 -1
- package/dist/components/molecules/table/body/CheckboxTd.d.ts +3 -1
- package/dist/components/molecules/table/body/EmptyTr.d.ts +1 -1
- package/dist/components/molecules/table/body/KebabMenuTd.d.ts +1 -1
- package/dist/components/molecules/table/body/RadioTd.d.ts +3 -1
- package/dist/components/molecules/table/body/Tr.d.ts +2 -1
- package/dist/components/molecules/table/body/index.d.ts +2 -1
- package/dist/components/molecules/table/header/FilterButtonsTh.d.ts +2 -1
- package/dist/components/molecules/table/header/FilterTh.d.ts +1 -1
- package/dist/components/molecules/table/header/SortableColumn.d.ts +2 -8
- package/dist/components/molecules/table/header/index.d.ts +1 -1
- package/dist/components/molecules/table/types.d.ts +7 -0
- package/dist/components/molecules/tabs/Tab.d.ts +12 -0
- package/dist/components/molecules/tabs/Tabs.d.ts +21 -0
- package/dist/components/molecules/tabs/TabsContext.d.ts +4 -0
- package/dist/components/molecules/tabs/index.d.ts +2 -0
- package/dist/components/molecules/tagInput/TagInput.d.ts +22 -0
- package/dist/components/molecules/tagInput/index.d.ts +2 -0
- package/dist/components/molecules/toast/Details.d.ts +3 -2
- package/dist/components/molecules/toast/DetailsItem.d.ts +6 -0
- package/dist/components/molecules/toast/Toast.d.ts +5 -21
- package/dist/components/molecules/toast/ToastContext.d.ts +2 -2
- package/dist/components/molecules/toast/ToastStyle.d.ts +4 -2
- package/dist/components/molecules/toast/index.d.ts +2 -0
- package/dist/components/molecules/toast/types.d.ts +1 -4
- package/dist/components/styleProvider/StyleProvider.d.ts +7 -3
- package/dist/constants/color.d.ts +352 -0
- package/dist/constants/input.d.ts +2 -0
- package/dist/constants/toast.d.ts +2 -0
- package/dist/enums/color.d.ts +113 -6
- package/dist/enums/size.d.ts +5 -2
- package/dist/enums/variant.d.ts +7 -2
- package/dist/fonts.js +1 -1
- package/dist/hooks/useColor.d.ts +2 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1703 -616
- package/dist/types/color.d.ts +4 -0
- package/dist/types/input.d.ts +7 -0
- package/dist/types/radio.d.ts +12 -0
- package/dist/types/tabs.d.ts +12 -0
- package/dist/types/toast.d.ts +29 -0
- package/dist/types/toggle.d.ts +5 -0
- package/package.json +35 -7
- package/mise.toml +0 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const TRadioGap: {
|
|
2
|
+
readonly EightPx: "8px";
|
|
3
|
+
readonly SixPx: "6px";
|
|
4
|
+
readonly FourPx: "4px";
|
|
5
|
+
readonly TwoPx: "2px";
|
|
6
|
+
};
|
|
7
|
+
export type TRadioGap = (typeof TRadioGap)[keyof typeof TRadioGap];
|
|
8
|
+
export declare const TRadioSize: {
|
|
9
|
+
readonly Md: "md";
|
|
10
|
+
readonly Sm: "sm";
|
|
11
|
+
};
|
|
12
|
+
export type TRadioSize = (typeof TRadioSize)[keyof typeof TRadioSize];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TabsContextValue {
|
|
2
|
+
selectedValue: string;
|
|
3
|
+
focusableValue: string | undefined;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface TabsIndicatorMetrics {
|
|
7
|
+
offsetLeft: number;
|
|
8
|
+
width: number;
|
|
9
|
+
isVisible: boolean;
|
|
10
|
+
isDisabled: boolean;
|
|
11
|
+
isPositioned: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TToastVariant } from '../enums/variant';
|
|
2
|
+
export declare const TToastLayout: {
|
|
3
|
+
readonly INLINE: "inline";
|
|
4
|
+
readonly STACKED: "stacked";
|
|
5
|
+
};
|
|
6
|
+
export type TToastLayout = (typeof TToastLayout)[keyof typeof TToastLayout];
|
|
7
|
+
export interface IToastDetailItem {
|
|
8
|
+
summary: string;
|
|
9
|
+
subDetails: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface IToast {
|
|
12
|
+
variant: TToastVariant;
|
|
13
|
+
content: string;
|
|
14
|
+
layout?: TToastLayout;
|
|
15
|
+
title?: {
|
|
16
|
+
main: string;
|
|
17
|
+
sub?: string;
|
|
18
|
+
};
|
|
19
|
+
closeButton?: {
|
|
20
|
+
content: string;
|
|
21
|
+
onClick: () => void;
|
|
22
|
+
};
|
|
23
|
+
revert?: {
|
|
24
|
+
label: string;
|
|
25
|
+
onRevert: () => void;
|
|
26
|
+
};
|
|
27
|
+
details?: IToastDetailItem[];
|
|
28
|
+
disableAutoOff?: boolean;
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maru_design2",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.2",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./fonts": {
|
|
18
|
+
"types": "./dist/fontProvider/index.d.ts",
|
|
19
|
+
"import": "./dist/fonts.js",
|
|
20
|
+
"default": "./dist/fonts.js"
|
|
21
|
+
},
|
|
22
|
+
"./dist/*": "./dist/*"
|
|
23
|
+
},
|
|
5
24
|
"author": "zena-42maru",
|
|
6
25
|
"license": "MIT",
|
|
7
26
|
"peerDependencies": {
|
|
@@ -29,9 +48,10 @@
|
|
|
29
48
|
"@storybook/react": "^8.0.9",
|
|
30
49
|
"@storybook/react-webpack5": "^8.0.9",
|
|
31
50
|
"@storybook/test": "^8.0.9",
|
|
32
|
-
"@
|
|
51
|
+
"@storybook/test-runner": "~0.17.0",
|
|
52
|
+
"@types/react": "^18.3.3",
|
|
33
53
|
"@types/react-datepicker": "^6.2.0",
|
|
34
|
-
"@types/react-dom": "^
|
|
54
|
+
"@types/react-dom": "^18.3.0",
|
|
35
55
|
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
|
36
56
|
"@typescript-eslint/parser": "^5.31.0",
|
|
37
57
|
"chromatic": "^11.3.0",
|
|
@@ -50,6 +70,8 @@
|
|
|
50
70
|
"postcss": "^8.4.16",
|
|
51
71
|
"postcss-url": "^10.1.3",
|
|
52
72
|
"prettier": "^3.2.5",
|
|
73
|
+
"react": "^18.3.1",
|
|
74
|
+
"react-dom": "^18.3.1",
|
|
53
75
|
"rollup": "^2.77.3",
|
|
54
76
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
55
77
|
"rollup-plugin-postcss": "^4.0.2",
|
|
@@ -60,15 +82,21 @@
|
|
|
60
82
|
"typescript": "^4.7.4"
|
|
61
83
|
},
|
|
62
84
|
"dependencies": {
|
|
63
|
-
"react": "^
|
|
64
|
-
|
|
65
|
-
|
|
85
|
+
"react-datepicker": "^6.9.0"
|
|
86
|
+
},
|
|
87
|
+
"resolutions": {
|
|
88
|
+
"@storybook/core-common": "8.0.9",
|
|
89
|
+
"@storybook/csf-tools": "8.0.9",
|
|
90
|
+
"@storybook/preview-api": "8.0.9"
|
|
66
91
|
},
|
|
67
92
|
"scripts": {
|
|
68
93
|
"storybook": "storybook dev -p 6006",
|
|
69
94
|
"build-storybook": "storybook build",
|
|
70
95
|
"build": "rollup -c",
|
|
71
|
-
"
|
|
96
|
+
"check:colors": "node ./scripts/check-legacy-colors.mjs",
|
|
97
|
+
"check:package": "node ./scripts/check-package.mjs",
|
|
98
|
+
"release": "node ./scripts/release.mjs",
|
|
99
|
+
"test-storybook": "test-storybook --index-json",
|
|
72
100
|
"svg": "node ./scripts/svg-parser.mjs"
|
|
73
101
|
}
|
|
74
102
|
}
|
package/mise.toml
DELETED