ingred-ui 10.1.2 → 10.2.1

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.
@@ -24,6 +24,10 @@ export declare type PaletteIcon = {
24
24
  fill: string;
25
25
  line: string;
26
26
  };
27
+ export declare type PaletteAction = {
28
+ shadowOpacity: number;
29
+ shadowBase: string;
30
+ };
27
31
  export declare type Palette = {
28
32
  white: string;
29
33
  black: string;
@@ -36,6 +40,7 @@ export declare type Palette = {
36
40
  background: PaletteBackground;
37
41
  divider: string;
38
42
  icon: PaletteIcon;
43
+ action: PaletteAction;
39
44
  };
40
45
  export declare const palette: Palette;
41
46
  export declare function createPalette(paletteInput: DeepPartial<Palette>): Palette;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ declare type ButtonToken = 1;
2
+ declare type ButtonActiveToken = 2;
3
+ declare type FormToken = 3;
4
+ declare type ToggleToken = 4;
5
+ declare type TooltipToken = 5;
6
+ export declare type TokenType = ButtonToken | ButtonActiveToken | FormToken | ToggleToken | TooltipToken;
7
+ /**
8
+ * shadow token から box-shadow を取得する関数。
9
+ * opacity と color 引数で box-shadow の濃さと色を調整できるようにしている。
10
+ */
11
+ export declare const getShadow: (token: TokenType, opacityBase: number, color: string) => string;
12
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingred-ui",
3
- "version": "10.1.2",
3
+ "version": "10.2.1",
4
4
  "description": "",
5
5
  "author": "CARTA HOLDINGS, Inc.",
6
6
  "license": "MIT",
@@ -9,7 +9,7 @@
9
9
  "module": "dist/index.es.js",
10
10
  "jsnext:main": "dist/index.es.js",
11
11
  "engines": {
12
- "node": "^14.18.1 || >=16.0.0"
12
+ "node": "^16.x || >=18.0.0"
13
13
  },
14
14
  "scripts": {
15
15
  "test": "cross-env CI=1 jest --runInBand",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@rollup/plugin-commonjs": "22.0.0",
42
- "@rollup/plugin-node-resolve": "14.0.0",
42
+ "@rollup/plugin-node-resolve": "14.1.0",
43
43
  "@rollup/plugin-typescript": "8.5.0",
44
44
  "@rollup/plugin-url": "7.0.0",
45
45
  "@storybook/addon-console": "1.2.3",
@@ -47,6 +47,8 @@
47
47
  "@storybook/addon-links": "6.5.9",
48
48
  "@storybook/addon-postcss": "2.0.0",
49
49
  "@storybook/addon-storysource": "6.5.9",
50
+ "@storybook/builder-webpack5": "6.5.12",
51
+ "@storybook/manager-webpack5": "6.5.12",
50
52
  "@storybook/react": "6.5.9",
51
53
  "@svgr/rollup": "6.3.1",
52
54
  "@testing-library/jest-dom": "5.16.4",
@@ -58,19 +60,20 @@
58
60
  "@types/react-transition-group": "4.4.4",
59
61
  "@types/rollup-plugin-peer-deps-external": "2.2.1",
60
62
  "@types/styled-components": "5.1.25",
61
- "@typescript-eslint/eslint-plugin": "5.36.2",
62
- "@typescript-eslint/parser": "5.36.2",
63
+ "@typescript-eslint/eslint-plugin": "5.38.0",
64
+ "@typescript-eslint/parser": "5.38.0",
63
65
  "cross-env": "7.0.3",
64
- "eslint": "8.23.0",
66
+ "eslint": "8.24.0",
65
67
  "eslint-config-prettier": "8.5.0",
66
68
  "eslint-plugin-import": "2.26.0",
67
69
  "eslint-plugin-jest": "27.0.1",
70
+ "eslint-plugin-jsx-a11y": "6.6.1",
68
71
  "eslint-plugin-mdx": "1.17.0",
69
72
  "eslint-plugin-prettier": "4.2.1",
70
73
  "eslint-plugin-react": "7.31.7",
71
74
  "eslint-plugin-react-hooks": "4.6.0",
72
75
  "jest": "28.1.0",
73
- "jest-environment-jsdom": "29.0.0",
76
+ "jest-environment-jsdom": "29.1.2",
74
77
  "prettier": "2.7.1",
75
78
  "react": "18.1.0",
76
79
  "react-dom": "18.1.0",
@@ -79,7 +82,7 @@
79
82
  "rollup-plugin-peer-deps-external": "2.2.4",
80
83
  "rollup-plugin-postcss": "4.0.2",
81
84
  "rollup-plugin-terser": "7.0.2",
82
- "scaffdog": "2.2.0",
85
+ "scaffdog": "2.4.0",
83
86
  "styled-components": "5.3.5",
84
87
  "ts-jest": "28.0.4",
85
88
  "typescript": "4.8.2"