jy-headless 0.0.17 → 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/components/radio/RadioGroup.d.ts +0 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +55 -55
|
@@ -10,7 +10,6 @@ export interface RadioGroupContextProps {
|
|
|
10
10
|
export interface ItemComposition {
|
|
11
11
|
Item?: React.FC<RadioInputProps>;
|
|
12
12
|
}
|
|
13
|
-
export declare const RadioGroupContext: React.Context<RadioGroupContextProps>;
|
|
14
13
|
export interface RadioGroupProps {
|
|
15
14
|
children: ReactNode;
|
|
16
15
|
value?: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import Button from './components/button/Button';
|
|
|
2
2
|
import Input from './components/input/Input';
|
|
3
3
|
import Spinner from './components/spinner/Spinner';
|
|
4
4
|
import RadioInput from './components/radio/RadioInput';
|
|
5
|
-
import RadioGroup
|
|
5
|
+
import RadioGroup from './components/radio/RadioGroup';
|
|
6
6
|
import { CallIcon, CloseIcon, HomeIcon, SearchIcon } from './components/icons';
|
|
7
|
-
export { Button, Input, Spinner, CallIcon, CloseIcon, HomeIcon, SearchIcon, RadioInput, RadioGroup,
|
|
7
|
+
export { Button, Input, Spinner, CallIcon, CloseIcon, HomeIcon, SearchIcon, RadioInput, RadioGroup, };
|
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,
|
|
@@ -196,5 +196,5 @@ const SearchIcon = ({ color = '#000', size = '1em', bgColor = 'transparent', fil
|
|
|
196
196
|
// AUTHOR: Ankush Syal
|
|
197
197
|
// https://www.svgrepo.com/svg/520583/call
|
|
198
198
|
|
|
199
|
-
export { Button, CallIcon, CloseIcon, HomeIcon, Input, RadioGroup,
|
|
199
|
+
export { Button, CallIcon, CloseIcon, HomeIcon, Input, RadioGroup, RadioInput, SearchIcon, Spinner };
|
|
200
200
|
//# sourceMappingURL=index.esm.js.map
|
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,
|
|
@@ -204,7 +204,6 @@ exports.CloseIcon = CloseIcon;
|
|
|
204
204
|
exports.HomeIcon = HomeIcon;
|
|
205
205
|
exports.Input = Input;
|
|
206
206
|
exports.RadioGroup = RadioGroup;
|
|
207
|
-
exports.RadioGroupContext = RadioGroupContext;
|
|
208
207
|
exports.RadioInput = RadioInput;
|
|
209
208
|
exports.SearchIcon = SearchIcon;
|
|
210
209
|
exports.Spinner = Spinner;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "jy-headless",
|
|
3
|
-
"version": "0.0.
|
|
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
|
+
}
|