@egov3/system-design 1.3.255 → 1.3.256
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/cjs/baseComponents/RadioGroup/RadioGroup.module.css.js +2 -2
- package/dist/cjs/baseComponents/RadioGroup/index.js +2 -2
- package/dist/cjs/baseComponents/RadioGroup/index.js.map +1 -1
- package/dist/esm/baseComponents/RadioGroup/RadioGroup.module.css.js +2 -2
- package/dist/esm/baseComponents/RadioGroup/index.js +2 -2
- package/dist/esm/baseComponents/RadioGroup/index.js.map +1 -1
- package/dist/types/baseComponents/RadioGroup/index.d.ts +4 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var css_248z = ".RadioGroup-module_fieldsetGroup__OzOIG {\n border: 0;\n padding: 0;\n margin: 0;\n}\n\n.RadioGroup-module_radio__Pp5Uh {\n display: flex;\n align-items: center;\n cursor: pointer;\n padding: 8px 0px;\n gap: 12px;\n}\n\n.RadioGroup-module_legend__5w4Fj,\n.RadioGroup-module_radio__Pp5Uh input {\n position: absolute;\n width: 1px;\n height: 1px;\n clip-path: inset(50%);\n}\n\n.RadioGroup-module_radioBtn__Rdtno {\n position: relative;\n height: 20px;\n width: 20px;\n border-radius: 50%;\n border: 2px solid var(--button-secondary-on-hover);\n margin: 2px;\n transition: background 0.3s;\n box-sizing: border-box;\n flex-shrink: 0;\n}\n\n.RadioGroup-module_radioBtn__Rdtno::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n height: 10px;\n width: 10px;\n background: var(--button-primary-default);\n border-radius: 50%;\n transform: scale(0) translate(-50%, -50%);\n transition: transform 0.3s;\n}\n\ninput:checked + .RadioGroup-module_radioBtn__Rdtno::after {\n transform: scale(1) translate(-50%, -50%);\n}\n\ninput:checked + .RadioGroup-module_radioBtn__Rdtno {\n border: 2px solid var(--button-primary-default);\n}\n\n.RadioGroup-module_radioBtnText__7qJeI {\n width: fit-content;\n}\n\n.RadioGroup-module_hintText__EmsDd {\n width: fit-content;\n color: var(--text-secondary);\n}\n\n.RadioGroup-module_labelGroupWrap__-9ayB {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n";
|
|
6
|
-
var styles = {"fieldsetGroup":"RadioGroup-module_fieldsetGroup__OzOIG","radio":"RadioGroup-module_radio__Pp5Uh","legend":"RadioGroup-module_legend__5w4Fj","radioBtn":"RadioGroup-module_radioBtn__Rdtno","radioBtnText":"RadioGroup-module_radioBtnText__7qJeI","hintText":"RadioGroup-module_hintText__EmsDd","labelGroupWrap":"RadioGroup-module_labelGroupWrap__-9ayB"};
|
|
5
|
+
var css_248z = ".RadioGroup-module_fieldsetGroup__OzOIG {\n border: 0;\n padding: 0;\n margin: 0;\n}\n\n.RadioGroup-module_horizontal__Vf8L3 {\n display: flex;\n flex-wrap: wrap;\n column-gap: 24px;\n}\n\n.RadioGroup-module_radio__Pp5Uh {\n display: flex;\n align-items: center;\n cursor: pointer;\n padding: 8px 0px;\n gap: 12px;\n}\n\n.RadioGroup-module_legend__5w4Fj,\n.RadioGroup-module_radio__Pp5Uh input {\n position: absolute;\n width: 1px;\n height: 1px;\n clip-path: inset(50%);\n}\n\n.RadioGroup-module_radioBtn__Rdtno {\n position: relative;\n height: 20px;\n width: 20px;\n border-radius: 50%;\n border: 2px solid var(--button-secondary-on-hover);\n margin: 2px;\n transition: background 0.3s;\n box-sizing: border-box;\n flex-shrink: 0;\n}\n\n.RadioGroup-module_radioBtn__Rdtno::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n height: 10px;\n width: 10px;\n background: var(--button-primary-default);\n border-radius: 50%;\n transform: scale(0) translate(-50%, -50%);\n transition: transform 0.3s;\n}\n\ninput:checked + .RadioGroup-module_radioBtn__Rdtno::after {\n transform: scale(1) translate(-50%, -50%);\n}\n\ninput:checked + .RadioGroup-module_radioBtn__Rdtno {\n border: 2px solid var(--button-primary-default);\n}\n\n.RadioGroup-module_radioBtnText__7qJeI {\n width: fit-content;\n}\n\n.RadioGroup-module_hintText__EmsDd {\n width: fit-content;\n color: var(--text-secondary);\n}\n\n.RadioGroup-module_labelGroupWrap__-9ayB {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n";
|
|
6
|
+
var styles = {"fieldsetGroup":"RadioGroup-module_fieldsetGroup__OzOIG","horizontal":"RadioGroup-module_horizontal__Vf8L3","radio":"RadioGroup-module_radio__Pp5Uh","legend":"RadioGroup-module_legend__5w4Fj","radioBtn":"RadioGroup-module_radioBtn__Rdtno","radioBtnText":"RadioGroup-module_radioBtnText__7qJeI","hintText":"RadioGroup-module_hintText__EmsDd","labelGroupWrap":"RadioGroup-module_labelGroupWrap__-9ayB"};
|
|
7
7
|
function styleInject(css, options) {
|
|
8
8
|
if (typeof document === 'undefined') return;
|
|
9
9
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -6,11 +6,11 @@ var typography_module = require('../../styles/typography.module.css.js');
|
|
|
6
6
|
var RadioGroup_module = require('./RadioGroup.module.css.js');
|
|
7
7
|
|
|
8
8
|
const CustomRadioButton = ({ label, name, checked, onChange, value, hintText, required, }) => (jsxRuntime.jsxs("label", { "data-testid": "RadioGroupItem_LABEL", className: RadioGroup_module.default.radio, children: [jsxRuntime.jsx("input", { "data-testid": "RadioGroupItem_INPUT", value: value, type: "radio", name: name, checked: checked, onChange: onChange, required: required }), jsxRuntime.jsx("span", { "data-testid": "RadioGroupItem_RADIO", className: RadioGroup_module.default.radioBtn }), jsxRuntime.jsxs("div", { className: RadioGroup_module.default.labelGroupWrap, "data-testid": "RadioGroupItem_LABEL_WRAP", children: [jsxRuntime.jsx("span", { "data-testid": "RadioGroupItem_TEXT", className: joinClasses.joinClasses(RadioGroup_module.default.radioBtnText, typography_module.default.body2Regular), children: label }), hintText && hintText?.length > 0 && (jsxRuntime.jsx("span", { "data-testid": "RadioGroupItemHint_TEXT", className: joinClasses.joinClasses(RadioGroup_module.default.hintText, typography_module.default.caption1Regular), children: hintText }))] })] }));
|
|
9
|
-
const RadioGroup = ({ radioGroupItems, setSelectedOption, selectedOption, name, legend, required, }) => {
|
|
9
|
+
const RadioGroup = ({ radioGroupItems, setSelectedOption, selectedOption, name, legend, required, direction = "vertical", }) => {
|
|
10
10
|
const handleChange = (event) => {
|
|
11
11
|
setSelectedOption(event.target.value);
|
|
12
12
|
};
|
|
13
|
-
return (jsxRuntime.jsxs("fieldset", { className: RadioGroup_module.default.fieldsetGroup, "data-testid": "RadioGroup_FIELDSET", children: [jsxRuntime.jsx("legend", { className: RadioGroup_module.default.legend, "data-testid": "RadioGroup_LEGEND", children: legend }), radioGroupItems.map((item) => (jsxRuntime.jsx(CustomRadioButton, { label: item.label, name: name, checked: selectedOption === item.value, onChange: handleChange, value: item.value, hintText: item.hintText, required: required }, item.value)))] }));
|
|
13
|
+
return (jsxRuntime.jsxs("fieldset", { className: joinClasses.joinClasses(RadioGroup_module.default.fieldsetGroup, direction === "horizontal" && RadioGroup_module.default.horizontal), "data-testid": "RadioGroup_FIELDSET", children: [jsxRuntime.jsx("legend", { className: RadioGroup_module.default.legend, "data-testid": "RadioGroup_LEGEND", children: legend }), radioGroupItems.map((item) => (jsxRuntime.jsx(CustomRadioButton, { label: item.label, name: name, checked: selectedOption === item.value, onChange: handleChange, value: item.value, hintText: item.hintText, required: required }, item.value)))] }));
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
exports.CustomRadioButton = CustomRadioButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/RadioGroup/index.tsx"],"sourcesContent":[null],"names":["_jsxs","styles","_jsx","joinClasses","typography"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/RadioGroup/index.tsx"],"sourcesContent":[null],"names":["_jsxs","styles","_jsx","joinClasses","typography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AS,GAAG,UAAU,GACL,KAAI;AACrB,IAAA,MAAM,YAAY,GAAG,CAAC,KAA0C,KAAI;AAClE,QAAA,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;AACvC,IAAA,CAAC;IACD,QACEJ,8BACE,SAAS,EAAEG,uBAAW,CACpBF,yBAAM,CAAC,aAAa,EACpB,SAAS,KAAK,YAAY,IAAIA,yBAAM,CAAC,UAAU,CAChD,EAAA,aAAA,EACW,qBAAqB,EAAA,QAAA,EAAA,CAEjCC,cAAA,CAAA,QAAA,EAAA,EAAQ,SAAS,EAAED,yBAAM,CAAC,MAAM,EAAA,aAAA,EAAc,mBAAmB,EAAA,QAAA,EAC9D,MAAM,GACA,EACR,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,MACxBC,eAAC,iBAAiB,EAAA,EAEhB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC,KAAK,EACtC,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,QAAQ,EAAA,EAPb,IAAI,CAAC,KAAK,CAQf,CACH,CAAC,CAAA,EAAA,CACO;AAEf;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var css_248z = ".RadioGroup-module_fieldsetGroup__OzOIG {\n border: 0;\n padding: 0;\n margin: 0;\n}\n\n.RadioGroup-module_radio__Pp5Uh {\n display: flex;\n align-items: center;\n cursor: pointer;\n padding: 8px 0px;\n gap: 12px;\n}\n\n.RadioGroup-module_legend__5w4Fj,\n.RadioGroup-module_radio__Pp5Uh input {\n position: absolute;\n width: 1px;\n height: 1px;\n clip-path: inset(50%);\n}\n\n.RadioGroup-module_radioBtn__Rdtno {\n position: relative;\n height: 20px;\n width: 20px;\n border-radius: 50%;\n border: 2px solid var(--button-secondary-on-hover);\n margin: 2px;\n transition: background 0.3s;\n box-sizing: border-box;\n flex-shrink: 0;\n}\n\n.RadioGroup-module_radioBtn__Rdtno::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n height: 10px;\n width: 10px;\n background: var(--button-primary-default);\n border-radius: 50%;\n transform: scale(0) translate(-50%, -50%);\n transition: transform 0.3s;\n}\n\ninput:checked + .RadioGroup-module_radioBtn__Rdtno::after {\n transform: scale(1) translate(-50%, -50%);\n}\n\ninput:checked + .RadioGroup-module_radioBtn__Rdtno {\n border: 2px solid var(--button-primary-default);\n}\n\n.RadioGroup-module_radioBtnText__7qJeI {\n width: fit-content;\n}\n\n.RadioGroup-module_hintText__EmsDd {\n width: fit-content;\n color: var(--text-secondary);\n}\n\n.RadioGroup-module_labelGroupWrap__-9ayB {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n";
|
|
2
|
-
var styles = {"fieldsetGroup":"RadioGroup-module_fieldsetGroup__OzOIG","radio":"RadioGroup-module_radio__Pp5Uh","legend":"RadioGroup-module_legend__5w4Fj","radioBtn":"RadioGroup-module_radioBtn__Rdtno","radioBtnText":"RadioGroup-module_radioBtnText__7qJeI","hintText":"RadioGroup-module_hintText__EmsDd","labelGroupWrap":"RadioGroup-module_labelGroupWrap__-9ayB"};
|
|
1
|
+
var css_248z = ".RadioGroup-module_fieldsetGroup__OzOIG {\n border: 0;\n padding: 0;\n margin: 0;\n}\n\n.RadioGroup-module_horizontal__Vf8L3 {\n display: flex;\n flex-wrap: wrap;\n column-gap: 24px;\n}\n\n.RadioGroup-module_radio__Pp5Uh {\n display: flex;\n align-items: center;\n cursor: pointer;\n padding: 8px 0px;\n gap: 12px;\n}\n\n.RadioGroup-module_legend__5w4Fj,\n.RadioGroup-module_radio__Pp5Uh input {\n position: absolute;\n width: 1px;\n height: 1px;\n clip-path: inset(50%);\n}\n\n.RadioGroup-module_radioBtn__Rdtno {\n position: relative;\n height: 20px;\n width: 20px;\n border-radius: 50%;\n border: 2px solid var(--button-secondary-on-hover);\n margin: 2px;\n transition: background 0.3s;\n box-sizing: border-box;\n flex-shrink: 0;\n}\n\n.RadioGroup-module_radioBtn__Rdtno::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n height: 10px;\n width: 10px;\n background: var(--button-primary-default);\n border-radius: 50%;\n transform: scale(0) translate(-50%, -50%);\n transition: transform 0.3s;\n}\n\ninput:checked + .RadioGroup-module_radioBtn__Rdtno::after {\n transform: scale(1) translate(-50%, -50%);\n}\n\ninput:checked + .RadioGroup-module_radioBtn__Rdtno {\n border: 2px solid var(--button-primary-default);\n}\n\n.RadioGroup-module_radioBtnText__7qJeI {\n width: fit-content;\n}\n\n.RadioGroup-module_hintText__EmsDd {\n width: fit-content;\n color: var(--text-secondary);\n}\n\n.RadioGroup-module_labelGroupWrap__-9ayB {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n";
|
|
2
|
+
var styles = {"fieldsetGroup":"RadioGroup-module_fieldsetGroup__OzOIG","horizontal":"RadioGroup-module_horizontal__Vf8L3","radio":"RadioGroup-module_radio__Pp5Uh","legend":"RadioGroup-module_legend__5w4Fj","radioBtn":"RadioGroup-module_radioBtn__Rdtno","radioBtnText":"RadioGroup-module_radioBtnText__7qJeI","hintText":"RadioGroup-module_hintText__EmsDd","labelGroupWrap":"RadioGroup-module_labelGroupWrap__-9ayB"};
|
|
3
3
|
function styleInject(css, options) {
|
|
4
4
|
if (typeof document === 'undefined') return;
|
|
5
5
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -4,11 +4,11 @@ import typography from '../../styles/typography.module.css.js';
|
|
|
4
4
|
import styles from './RadioGroup.module.css.js';
|
|
5
5
|
|
|
6
6
|
const CustomRadioButton = ({ label, name, checked, onChange, value, hintText, required, }) => (jsxs("label", { "data-testid": "RadioGroupItem_LABEL", className: styles.radio, children: [jsx("input", { "data-testid": "RadioGroupItem_INPUT", value: value, type: "radio", name: name, checked: checked, onChange: onChange, required: required }), jsx("span", { "data-testid": "RadioGroupItem_RADIO", className: styles.radioBtn }), jsxs("div", { className: styles.labelGroupWrap, "data-testid": "RadioGroupItem_LABEL_WRAP", children: [jsx("span", { "data-testid": "RadioGroupItem_TEXT", className: joinClasses(styles.radioBtnText, typography.body2Regular), children: label }), hintText && hintText?.length > 0 && (jsx("span", { "data-testid": "RadioGroupItemHint_TEXT", className: joinClasses(styles.hintText, typography.caption1Regular), children: hintText }))] })] }));
|
|
7
|
-
const RadioGroup = ({ radioGroupItems, setSelectedOption, selectedOption, name, legend, required, }) => {
|
|
7
|
+
const RadioGroup = ({ radioGroupItems, setSelectedOption, selectedOption, name, legend, required, direction = "vertical", }) => {
|
|
8
8
|
const handleChange = (event) => {
|
|
9
9
|
setSelectedOption(event.target.value);
|
|
10
10
|
};
|
|
11
|
-
return (jsxs("fieldset", { className: styles.fieldsetGroup, "data-testid": "RadioGroup_FIELDSET", children: [jsx("legend", { className: styles.legend, "data-testid": "RadioGroup_LEGEND", children: legend }), radioGroupItems.map((item) => (jsx(CustomRadioButton, { label: item.label, name: name, checked: selectedOption === item.value, onChange: handleChange, value: item.value, hintText: item.hintText, required: required }, item.value)))] }));
|
|
11
|
+
return (jsxs("fieldset", { className: joinClasses(styles.fieldsetGroup, direction === "horizontal" && styles.horizontal), "data-testid": "RadioGroup_FIELDSET", children: [jsx("legend", { className: styles.legend, "data-testid": "RadioGroup_LEGEND", children: legend }), radioGroupItems.map((item) => (jsx(CustomRadioButton, { label: item.label, name: name, checked: selectedOption === item.value, onChange: handleChange, value: item.value, hintText: item.hintText, required: required }, item.value)))] }));
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { CustomRadioButton, RadioGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/RadioGroup/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/RadioGroup/index.ts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AAQ,EACR,SAAS,GAAG,UAAU,GACL,KAAI;AACrB,IAAA,MAAM,YAAY,GAAG,CAAC,KAA0C,KAAI;AAClE,QAAA,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;AACvC,IAAA,CAAC;IACD,QACED,mBACE,SAAS,EAAE,WAAW,CACpB,MAAM,CAAC,aAAa,EACpB,SAAS,KAAK,YAAY,IAAI,MAAM,CAAC,UAAU,CAChD,EAAA,aAAA,EACW,qBAAqB,EAAA,QAAA,EAAA,CAEjCC,GAAA,CAAA,QAAA,EAAA,EAAQ,SAAS,EAAE,MAAM,CAAC,MAAM,EAAA,aAAA,EAAc,mBAAmB,EAAA,QAAA,EAC9D,MAAM,GACA,EACR,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,MACxBA,IAAC,iBAAiB,EAAA,EAEhB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC,KAAK,EACtC,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,QAAQ,EAAA,EAPb,IAAI,CAAC,KAAK,CAQf,CACH,CAAC,CAAA,EAAA,CACO;AAEf;;;;"}
|
|
@@ -14,6 +14,7 @@ interface ICustomRadioButtonProps {
|
|
|
14
14
|
hintText?: string;
|
|
15
15
|
required?: boolean;
|
|
16
16
|
}
|
|
17
|
+
type TRadioGroupDirection = "vertical" | "horizontal";
|
|
17
18
|
interface IRadioGroupProps {
|
|
18
19
|
radioGroupItems: IRadioGroupItem[];
|
|
19
20
|
setSelectedOption: (value: string) => void;
|
|
@@ -21,9 +22,10 @@ interface IRadioGroupProps {
|
|
|
21
22
|
name: string;
|
|
22
23
|
legend: string;
|
|
23
24
|
required?: boolean;
|
|
25
|
+
direction?: TRadioGroupDirection;
|
|
24
26
|
}
|
|
25
27
|
declare const CustomRadioButton: ({ label, name, checked, onChange, value, hintText, required, }: ICustomRadioButtonProps) => react__default.JSX.Element;
|
|
26
|
-
declare const RadioGroup: ({ radioGroupItems, setSelectedOption, selectedOption, name, legend, required, }: IRadioGroupProps) => react__default.JSX.Element;
|
|
28
|
+
declare const RadioGroup: ({ radioGroupItems, setSelectedOption, selectedOption, name, legend, required, direction, }: IRadioGroupProps) => react__default.JSX.Element;
|
|
27
29
|
|
|
28
30
|
export { CustomRadioButton, RadioGroup };
|
|
29
|
-
export type { ICustomRadioButtonProps, IRadioGroupItem, IRadioGroupProps };
|
|
31
|
+
export type { ICustomRadioButtonProps, IRadioGroupItem, IRadioGroupProps, TRadioGroupDirection };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { IPageSizeSelectorProps, PageSizeSelector } from './baseComponents/PageS
|
|
|
16
16
|
export { IPaginationProps, Pagination } from './baseComponents/Pagination/index.js';
|
|
17
17
|
export { IPhotoCutterProps, PhotoCutter } from './baseComponents/PhotoCutter/index.js';
|
|
18
18
|
export { ProgressBar } from './baseComponents/ProgressBar/index.js';
|
|
19
|
-
export { CustomRadioButton, ICustomRadioButtonProps, IRadioGroupItem, IRadioGroupProps, RadioGroup } from './baseComponents/RadioGroup/index.js';
|
|
19
|
+
export { CustomRadioButton, ICustomRadioButtonProps, IRadioGroupItem, IRadioGroupProps, RadioGroup, TRadioGroupDirection } from './baseComponents/RadioGroup/index.js';
|
|
20
20
|
export { IRadioToggleProps, RadioToggle } from './baseComponents/RadioToggle/index.js';
|
|
21
21
|
export { IResponsesProps, Responses } from './baseComponents/Responses/index.js';
|
|
22
22
|
export { ISearchBarProps, SearchBar } from './baseComponents/SearchBar/index.js';
|