@seed-design/react 0.1.15 → 0.2.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/lib/components/Icon/Icon.d.ts.map +1 -1
- package/lib/utils/createSlotRecipeContext.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/ActionChip/ActionChip.tsx +2 -2
- package/src/components/ControlChip/ControlChip.tsx +2 -2
- package/src/components/Icon/Icon.tsx +4 -1
- package/src/utils/createSlotRecipeContext.tsx +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAgC,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEnF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,2GAatB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,2GAatB,CAAC;AAIF,eAAO,MAAM,YAAY,GAAI,wBAG1B;
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAgC,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEnF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,2GAatB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,2GAatB,CAAC;AAIF,eAAO,MAAM,YAAY,GAAI,wBAG1B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;CACl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AAC,eAAe,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;kBAuBhE,CAAC,EAAE,CAAC,aACZ,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,SAC1B,MAAM,UAAU,KACtB,KAAK,CAAC,yBAAyB,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;EAsBtF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seed-design/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/daangn/seed-design.git",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"clsx": "^2.1.1"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@seed-design/css": "0.
|
|
61
|
+
"@seed-design/css": "0.2.0",
|
|
62
62
|
"react": ">=18.0.0",
|
|
63
63
|
"react-dom": ">=18.0.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@seed-design/css": "0.
|
|
66
|
+
"@seed-design/css": "0.2.0",
|
|
67
67
|
"@vitejs/plugin-react": "^5.0.0",
|
|
68
68
|
"ajv": "^8.17.1",
|
|
69
69
|
"globby": "^14.1.0",
|
|
@@ -8,12 +8,12 @@ const { withContext } = createRecipeContext(actionChip);
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated ActionChip is deprecated. Use Chip.Button with variant="solid" instead.
|
|
11
|
-
*
|
|
11
|
+
*
|
|
12
12
|
* Migration guide:
|
|
13
13
|
* ```tsx
|
|
14
14
|
* // Before
|
|
15
15
|
* <ActionChip size="medium">Label</ActionChip>
|
|
16
|
-
*
|
|
16
|
+
*
|
|
17
17
|
* // After
|
|
18
18
|
* import { Chip } from "@seed-design/react";
|
|
19
19
|
* <Chip.Button size="medium" variant="solid">Label</Chip.Button>
|
|
@@ -13,12 +13,12 @@ export interface ControlChipBaseProps extends PrimitiveProps, ControlChipVariant
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @deprecated ControlChipProps is deprecated. Use Chip.Toggle or Chip.Button instead.
|
|
16
|
-
*
|
|
16
|
+
*
|
|
17
17
|
* Migration guide:
|
|
18
18
|
* ```tsx
|
|
19
19
|
* // Before
|
|
20
20
|
* <ControlChip size="medium">Label</ControlChip>
|
|
21
|
-
*
|
|
21
|
+
*
|
|
22
22
|
* // After
|
|
23
23
|
* import { Chip } from "@seed-design/react";
|
|
24
24
|
* <Chip.Toggle size="medium" variant="outlineStrong">Label</Chip.Toggle>
|
|
@@ -46,7 +46,10 @@ const IconContext = createContext<{ register: () => void; unregister: () => void
|
|
|
46
46
|
export const IconRequired = ({
|
|
47
47
|
children,
|
|
48
48
|
enabled,
|
|
49
|
-
}: {
|
|
49
|
+
}: {
|
|
50
|
+
children: React.ReactNode;
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
}) => {
|
|
50
53
|
const registeredRef = useRef(false);
|
|
51
54
|
const parentContext = useContext(IconContext);
|
|
52
55
|
|
|
@@ -18,7 +18,10 @@ export function createSlotRecipeContext<
|
|
|
18
18
|
const ClassNamesProvider = ({
|
|
19
19
|
children,
|
|
20
20
|
value,
|
|
21
|
-
}: {
|
|
21
|
+
}: {
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
value: Classnames;
|
|
24
|
+
}) => {
|
|
22
25
|
return <ClassNamesContext.Provider value={value}>{children}</ClassNamesContext.Provider>;
|
|
23
26
|
};
|
|
24
27
|
|