jy-headless 0.0.16 → 0.0.18

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/dist/index.esm.js CHANGED
@@ -129,7 +129,7 @@ const RadioGroup = ({ title, style, className, children, value = [], onChange, c
129
129
  setSelectedValues(() => result);
130
130
  onChange === null || onChange === undefined ? undefined : onChange(result);
131
131
  };
132
- return (React.createElement(RadioGroupContext, { value: { selectedValues, onToggle, clearable, readOnly, disabled } },
132
+ return (React.createElement(RadioGroupContext.Provider, { value: { selectedValues, onToggle, clearable, readOnly, disabled } },
133
133
  React.createElement("span", { role: 'radiogroup', style: Object.assign({ position: 'relative' }, style), className: className },
134
134
  typeof title === 'string' ? React.createElement("h3", null, title) : title,
135
135
  children,
package/dist/index.js CHANGED
@@ -131,7 +131,7 @@ const RadioGroup = ({ title, style, className, children, value = [], onChange, c
131
131
  setSelectedValues(() => result);
132
132
  onChange === null || onChange === undefined ? undefined : onChange(result);
133
133
  };
134
- return (React.createElement(RadioGroupContext, { value: { selectedValues, onToggle, clearable, readOnly, disabled } },
134
+ return (React.createElement(RadioGroupContext.Provider, { value: { selectedValues, onToggle, clearable, readOnly, disabled } },
135
135
  React.createElement("span", { role: 'radiogroup', style: Object.assign({ position: 'relative' }, style), className: className },
136
136
  typeof title === 'string' ? React.createElement("h3", null, title) : title,
137
137
  children,
package/package.json CHANGED
@@ -1,55 +1,55 @@
1
- {
2
- "name": "jy-headless",
3
- "version": "0.0.16",
4
- "description": "",
5
- "main": "dist/index.cjs",
6
- "typings": "dist/index.d.ts",
7
- "module": "dist/index.esm.js",
8
- "scripts": {
9
- "build": " rollup -c",
10
- "storybook": "storybook dev -p 6006",
11
- "build-storybook": "storybook build"
12
- },
13
- "files": [
14
- "dist"
15
- ],
16
- "exports": {
17
- "types": {
18
- "import": "./dist/index.d.ts",
19
- "require": "./dist/index.d.cts"
20
- },
21
- "import": "./dist/index.esm.js",
22
- "require": "./dist/index.cjs"
23
- },
24
- "keywords": [],
25
- "author": "",
26
- "license": "ISC",
27
- "type": "module",
28
- "devDependencies": {
29
- "@chromatic-com/storybook": "3.2.4",
30
- "@rollup/plugin-commonjs": "^28.0.2",
31
- "@rollup/plugin-node-resolve": "^16.0.0",
32
- "@storybook/addon-essentials": "8.5.0",
33
- "@storybook/addon-interactions": "8.5.0",
34
- "@storybook/addon-onboarding": "8.5.0",
35
- "@storybook/addon-postcss": "^2.0.0",
36
- "@storybook/blocks": "8.5.0",
37
- "@storybook/react": "8.5.0",
38
- "@storybook/react-vite": "8.5.0",
39
- "@storybook/test": "8.5.0",
40
- "@types/react": "^19.0.7",
41
- "@types/react-dom": "^19.0.3",
42
- "postcss": "^8.5.1",
43
- "prettier": "^3.4.2",
44
- "react": "^19.0.0",
45
- "react-dom": "^19.0.0",
46
- "rollup": "^4.31.0",
47
- "rollup-plugin-postcss": "^4.0.2",
48
- "rollup-plugin-typescript2": "^0.36.0",
49
- "storybook": "8.5.0",
50
- "typescript": "^5.7.3"
51
- },
52
- "dependencies": {
53
- "tslib": "^2.8.1"
54
- }
55
- }
1
+ {
2
+ "name": "jy-headless",
3
+ "version": "0.0.18",
4
+ "description": "",
5
+ "main": "dist/index.cjs",
6
+ "typings": "dist/index.d.ts",
7
+ "module": "dist/index.esm.js",
8
+ "scripts": {
9
+ "build": " rollup -c",
10
+ "storybook": "storybook dev -p 6006",
11
+ "build-storybook": "storybook build"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "exports": {
17
+ "types": {
18
+ "import": "./dist/index.d.ts",
19
+ "require": "./dist/index.d.cts"
20
+ },
21
+ "import": "./dist/index.esm.js",
22
+ "require": "./dist/index.cjs"
23
+ },
24
+ "keywords": [],
25
+ "author": "",
26
+ "license": "ISC",
27
+ "type": "module",
28
+ "devDependencies": {
29
+ "@chromatic-com/storybook": "3.2.4",
30
+ "@rollup/plugin-commonjs": "^28.0.2",
31
+ "@rollup/plugin-node-resolve": "^16.0.0",
32
+ "@storybook/addon-essentials": "8.5.0",
33
+ "@storybook/addon-interactions": "8.5.0",
34
+ "@storybook/addon-onboarding": "8.5.0",
35
+ "@storybook/addon-postcss": "^2.0.0",
36
+ "@storybook/blocks": "8.5.0",
37
+ "@storybook/react": "8.5.0",
38
+ "@storybook/react-vite": "8.5.0",
39
+ "@storybook/test": "8.5.0",
40
+ "@types/react": "^19.0.7",
41
+ "@types/react-dom": "^19.0.3",
42
+ "postcss": "^8.5.1",
43
+ "prettier": "^3.4.2",
44
+ "react": "^19.0.0",
45
+ "react-dom": "^19.0.0",
46
+ "rollup": "^4.31.0",
47
+ "rollup-plugin-postcss": "^4.0.2",
48
+ "rollup-plugin-typescript2": "^0.36.0",
49
+ "storybook": "8.5.0",
50
+ "typescript": "^5.7.3"
51
+ },
52
+ "dependencies": {
53
+ "tslib": "^2.8.1"
54
+ }
55
+ }