@grantbii/design-system 1.11.4 → 1.11.6

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.
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { createElement as _createElement } from "react";
3
3
  import styled from "styled-components";
4
4
  import { RadioButton } from "../atoms";
5
- const RadioButtons = ({ name, options }) => (_jsx(RadioGroup, { children: options.map(({ value, ...props }) => (_createElement(RadioButton, { ...props, key: `${name}-${value}`, value: value, name: name }))) }));
5
+ const RadioButtons = ({ name, options }) => (_jsx(RadioGroup, { children: options.map(({ id, value, ...props }) => (_createElement(RadioButton, { ...props, key: `${name}-${value}`, id: id ? id : value, value: value, name: name }))) }));
6
6
  export default RadioButtons;
7
7
  const RadioGroup = styled.div `
8
8
  display: flex;
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButtons.js","sourceRoot":"","sources":["../../../core/molecules/RadioButtons.tsx"],"names":[],"mappings":";;AACA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAWvC,MAAM,YAAY,GAAG,CAAC,EAAE,IAAI,EAAE,OAAO,EAAoB,EAAE,EAAE,CAAC,CAC5D,KAAC,UAAU,cACR,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACpC,eAAC,WAAW,OACN,KAAK,EACT,GAAG,EAAE,GAAG,IAAI,IAAI,KAAK,EAAE,EACvB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,GACV,CACH,CAAC,GACS,CACd,CAAC;AAEF,eAAe,YAAY,CAAC;AAE5B,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAO5B,CAAC","sourcesContent":["import type { DetailedHTMLProps, InputHTMLAttributes } from \"react\";\nimport styled from \"styled-components\";\nimport { RadioButton } from \"../atoms\";\nimport type { Option } from \"../foundations\";\n\nexport type RadioOption = Option &\n DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;\n\ntype RadioButtonProps = {\n name?: string;\n options: RadioOption[];\n};\n\nconst RadioButtons = ({ name, options }: RadioButtonProps) => (\n <RadioGroup>\n {options.map(({ value, ...props }) => (\n <RadioButton\n {...props}\n key={`${name}-${value}`}\n value={value}\n name={name}\n />\n ))}\n </RadioGroup>\n);\n\nexport default RadioButtons;\n\nconst RadioGroup = styled.div`\n display: flex;\n align-items: center;\n gap: 12px;\n\n white-space: nowrap;\n flex-wrap: wrap;\n`;\n"]}
1
+ {"version":3,"file":"RadioButtons.js","sourceRoot":"","sources":["../../../core/molecules/RadioButtons.tsx"],"names":[],"mappings":";;AACA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAWvC,MAAM,YAAY,GAAG,CAAC,EAAE,IAAI,EAAE,OAAO,EAAoB,EAAE,EAAE,CAAC,CAC5D,KAAC,UAAU,cACR,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACxC,eAAC,WAAW,OACN,KAAK,EACT,GAAG,EAAE,GAAG,IAAI,IAAI,KAAK,EAAE,EACvB,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EACnB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,GACV,CACH,CAAC,GACS,CACd,CAAC;AAEF,eAAe,YAAY,CAAC;AAE5B,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAO5B,CAAC","sourcesContent":["import type { DetailedHTMLProps, InputHTMLAttributes } from \"react\";\nimport styled from \"styled-components\";\nimport { RadioButton } from \"../atoms\";\nimport type { Option } from \"../foundations\";\n\nexport type RadioOption = Option &\n DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;\n\ntype RadioButtonProps = {\n name?: string;\n options: RadioOption[];\n};\n\nconst RadioButtons = ({ name, options }: RadioButtonProps) => (\n <RadioGroup>\n {options.map(({ id, value, ...props }) => (\n <RadioButton\n {...props}\n key={`${name}-${value}`}\n id={id ? id : value} // assume mutually exclusive values\n value={value}\n name={name}\n />\n ))}\n </RadioGroup>\n);\n\nexport default RadioButtons;\n\nconst RadioGroup = styled.div`\n display: flex;\n align-items: center;\n gap: 12px;\n\n white-space: nowrap;\n flex-wrap: wrap;\n`;\n"]}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@grantbii/design-system",
3
3
  "author": "Grantbii",
4
4
  "license": "UNLICENSED",
5
- "version": "1.11.4",
5
+ "version": "1.11.6",
6
6
  "description": "Grantbii's Design System",
7
7
  "homepage": "https://design.grantbii.com",
8
8
  "repository": {
@@ -20,42 +20,49 @@
20
20
  "build-storybook": "storybook build"
21
21
  },
22
22
  "dependencies": {
23
- "@grantbii/ui-core": "1.6.2",
24
23
  "@phosphor-icons/react": "2.1.10",
25
- "country-flag-icons": "1.6.4",
26
- "next": "16.1.1",
27
- "react": "19.2.3",
28
- "react-dom": "19.2.3",
29
- "react-dropzone": "14.3.8",
30
- "react-spinners": "0.17.0",
31
- "styled-components": "6.1.19"
24
+ "country-flag-icons": "1.6.13",
25
+ "react-dropzone": "15.0.0",
26
+ "react-spinners": "0.17.0"
27
+ },
28
+ "peerDependencies": {
29
+ "@grantbii/ui-core": "^1.7.0",
30
+ "next": "^16.1.6",
31
+ "react": ">=18 <20",
32
+ "react-dom": ">=18 <20",
33
+ "styled-components": "^6.3.9"
32
34
  },
33
35
  "devDependencies": {
34
- "@chromatic-com/storybook": "4.1.3",
36
+ "@chromatic-com/storybook": "5.0.1",
35
37
  "@eslint/js": "9.39.2",
36
- "@next/eslint-plugin-next": "16.1.1",
37
- "@storybook/addon-a11y": "10.1.11",
38
- "@storybook/addon-docs": "10.1.11",
39
- "@storybook/addon-onboarding": "10.1.11",
40
- "@storybook/addon-vitest": "10.1.11",
41
- "@storybook/nextjs-vite": "10.1.11",
38
+ "@grantbii/ui-core": "1.7.0",
39
+ "@next/eslint-plugin-next": "16.1.6",
40
+ "@storybook/addon-a11y": "10.2.8",
41
+ "@storybook/addon-docs": "10.2.8",
42
+ "@storybook/addon-onboarding": "10.2.8",
43
+ "@storybook/addon-vitest": "10.2.8",
44
+ "@storybook/nextjs-vite": "10.2.8",
42
45
  "@types/node": "22.18.0",
43
- "@types/react": "19.2.7",
46
+ "@types/react": "19.2.14",
44
47
  "@types/react-dom": "19.2.3",
45
- "@vitest/browser": "4.0.16",
46
- "@vitest/browser-playwright": "4.0.16",
47
- "@vitest/coverage-v8": "4.0.16",
48
- "baseline-browser-mapping": "2.9.11",
48
+ "@vitest/browser": "4.0.18",
49
+ "@vitest/browser-playwright": "4.0.18",
50
+ "@vitest/coverage-v8": "4.0.18",
51
+ "baseline-browser-mapping": "2.9.19",
49
52
  "eslint": "9.39.2",
50
- "eslint-config-next": "16.1.1",
51
- "eslint-plugin-storybook": "10.1.11",
53
+ "eslint-config-next": "16.1.6",
54
+ "eslint-plugin-storybook": "10.2.8",
52
55
  "husky": "9.1.7",
53
56
  "lint-staged": "16.2.7",
54
- "playwright": "1.57.0",
55
- "prettier": "3.7.4",
56
- "storybook": "10.1.11",
57
+ "next": "16.1.6",
58
+ "playwright": "1.58.2",
59
+ "prettier": "3.8.1",
60
+ "react": "19.2.4",
61
+ "react-dom": "19.2.4",
62
+ "storybook": "10.2.8",
63
+ "styled-components": "6.3.9",
57
64
  "typescript": "5.9.3",
58
- "vitest": "4.0.16"
65
+ "vitest": "4.0.18"
59
66
  },
60
67
  "lint-staged": {
61
68
  "**/*.{html,css,json,md,yaml}": [