@drivenets/design-system 0.0.3 → 0.0.4
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/CHANGELOG.md +6 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.cjs +157 -52
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts +5 -5
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.js +157 -52
- package/dist/components/ds-alert-banner/ds-alert-banner.js.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.types.js.map +1 -1
- package/dist/components/ds-breadcrumb/ds-breadcrumb.cjs +59 -16
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js +59 -16
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js.map +1 -1
- package/dist/components/ds-button/ds-button.cjs +18 -2
- package/dist/components/ds-button/ds-button.d.cts +2 -2
- package/dist/components/ds-button/ds-button.d.ts +2 -2
- package/dist/components/ds-button/ds-button.js +18 -2
- package/dist/components/ds-button/ds-button.js.map +1 -1
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.cjs +79 -10
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js +79 -10
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js.map +1 -1
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.cjs +78 -10
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js +78 -10
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js.map +1 -1
- package/dist/components/ds-checkbox/ds-checkbox.cjs +89 -18
- package/dist/components/ds-checkbox/ds-checkbox.js +89 -18
- package/dist/components/ds-checkbox/ds-checkbox.js.map +1 -1
- package/dist/components/ds-chip/ds-chip.cjs +100 -30
- package/dist/components/ds-chip/ds-chip.js +100 -30
- package/dist/components/ds-chip/ds-chip.js.map +1 -1
- package/dist/components/ds-chip-group/ds-chip-group.cjs +6 -6
- package/dist/components/ds-chip-group/ds-chip-group.js +6 -6
- package/dist/components/ds-chip-group/ds-chip-group.js.map +1 -1
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.cjs +210 -56
- package/dist/components/ds-confirmation/ds-confirmation.d.cts +8 -8
- package/dist/components/ds-confirmation/ds-confirmation.d.cts.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.d.ts +8 -8
- package/dist/components/ds-confirmation/ds-confirmation.js +210 -56
- package/dist/components/ds-confirmation/ds-confirmation.js.map +1 -1
- package/dist/components/ds-dialog/ds-dialog.js.map +1 -1
- package/dist/components/ds-drawer/ds-drawer.cjs +261 -61
- package/dist/components/ds-drawer/ds-drawer.d.cts +9 -9
- package/dist/components/ds-drawer/ds-drawer.d.ts +9 -9
- package/dist/components/ds-drawer/ds-drawer.js +261 -61
- package/dist/components/ds-drawer/ds-drawer.js.map +1 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.cjs +481 -135
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js +481 -135
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js.map +1 -1
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.cjs +146 -56
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts +2 -2
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts +2 -2
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js +146 -56
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js.map +1 -1
- package/dist/components/ds-file-upload/components/file-upload/file-upload.cjs +190 -69
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js +190 -69
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js.map +1 -1
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.cjs +273 -132
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js +273 -132
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js.map +1 -1
- package/dist/components/ds-file-upload/ds-file-upload.cjs +96 -16
- package/dist/components/ds-file-upload/ds-file-upload.js +96 -16
- package/dist/components/ds-file-upload/ds-file-upload.js.map +1 -1
- package/dist/components/ds-file-upload/errors/file-upload-errors.js.map +1 -1
- package/dist/components/ds-file-upload/hooks/use-file-upload.cjs +93 -93
- package/dist/components/ds-file-upload/hooks/use-file-upload.js +93 -93
- package/dist/components/ds-file-upload/hooks/use-file-upload.js.map +1 -1
- package/dist/components/ds-file-upload/types/accept-types.js.map +1 -1
- package/dist/components/ds-file-upload/utils/accept-utils.js.map +1 -1
- package/dist/components/ds-file-upload/utils/constants.js.map +1 -1
- package/dist/components/ds-file-upload/utils/file-factory.js.map +1 -1
- package/dist/components/ds-file-upload/utils/format-file-size.js.map +1 -1
- package/dist/components/ds-file-upload/utils/generate-helper-text.js.map +1 -1
- package/dist/components/ds-file-upload/utils/get-error-message.js.map +1 -1
- package/dist/components/ds-file-upload/utils/is-file-equal.js.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.cjs +119 -34
- package/dist/components/ds-form-control/ds-form-control.d.cts +7 -7
- package/dist/components/ds-form-control/ds-form-control.d.ts +7 -7
- package/dist/components/ds-form-control/ds-form-control.d.ts.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.js +119 -34
- package/dist/components/ds-form-control/ds-form-control.js.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.types.js.map +1 -1
- package/dist/components/ds-grid/ds-grid.js.map +1 -1
- package/dist/components/ds-icon/ds-icon.cjs +84 -13
- package/dist/components/ds-icon/ds-icon.js +84 -13
- package/dist/components/ds-icon/ds-icon.js.map +1 -1
- package/dist/components/ds-icon/ds-icon.types.d.cts.map +1 -1
- package/dist/components/ds-icon/ds-icon.types.js.map +1 -1
- package/dist/components/ds-modal/ds-modal.cjs +222 -55
- package/dist/components/ds-modal/ds-modal.d.cts +8 -8
- package/dist/components/ds-modal/ds-modal.d.cts.map +1 -1
- package/dist/components/ds-modal/ds-modal.d.ts +8 -8
- package/dist/components/ds-modal/ds-modal.d.ts.map +1 -1
- package/dist/components/ds-modal/ds-modal.js +222 -55
- package/dist/components/ds-modal/ds-modal.js.map +1 -1
- package/dist/components/ds-number-input/ds-number-input.cjs +136 -49
- package/dist/components/ds-number-input/ds-number-input.js +136 -49
- package/dist/components/ds-number-input/ds-number-input.js.map +1 -1
- package/dist/components/ds-panel/ds-panel.cjs +111 -19
- package/dist/components/ds-panel/ds-panel.d.cts +2 -2
- package/dist/components/ds-panel/ds-panel.d.cts.map +1 -1
- package/dist/components/ds-panel/ds-panel.js +111 -19
- package/dist/components/ds-panel/ds-panel.js.map +1 -1
- package/dist/components/ds-password-input/ds-password-input.cjs +108 -41
- package/dist/components/ds-password-input/ds-password-input.js +108 -41
- package/dist/components/ds-password-input/ds-password-input.js.map +1 -1
- package/dist/components/ds-popover/ds-popover.cjs +50 -12
- package/dist/components/ds-popover/ds-popover.js +50 -12
- package/dist/components/ds-popover/ds-popover.js.map +1 -1
- package/dist/components/ds-radio-group/ds-radio-group.cjs +209 -53
- package/dist/components/ds-radio-group/ds-radio-group.js +209 -53
- package/dist/components/ds-radio-group/ds-radio-group.js.map +1 -1
- package/dist/components/ds-select/ds-select.cjs +198 -89
- package/dist/components/ds-select/ds-select.d.cts +2 -2
- package/dist/components/ds-select/ds-select.d.cts.map +1 -1
- package/dist/components/ds-select/ds-select.js +198 -89
- package/dist/components/ds-select/ds-select.js.map +1 -1
- package/dist/components/ds-select/select-items-chips.cjs +73 -22
- package/dist/components/ds-select/select-items-chips.js +73 -22
- package/dist/components/ds-select/select-items-chips.js.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.cjs +208 -46
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts +2 -2
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts +2 -2
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js +208 -46
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.js.map +1 -1
- package/dist/components/ds-spinner/ds-spinner.cjs +90 -20
- package/dist/components/ds-spinner/ds-spinner.js +90 -20
- package/dist/components/ds-spinner/ds-spinner.js.map +1 -1
- package/dist/components/ds-spinner/ds-spinner.types.js.map +1 -1
- package/dist/components/ds-status-badge/ds-status-badge.cjs +54 -11
- package/dist/components/ds-status-badge/ds-status-badge.js +54 -11
- package/dist/components/ds-status-badge/ds-status-badge.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-content.cjs +59 -13
- package/dist/components/ds-stepper/components/ds-step-content.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step-content.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step-content.js +59 -13
- package/dist/components/ds-stepper/components/ds-step-content.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-description.cjs +14 -5
- package/dist/components/ds-stepper/components/ds-step-description.js +14 -5
- package/dist/components/ds-stepper/components/ds-step-description.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-label.cjs +14 -5
- package/dist/components/ds-stepper/components/ds-step-label.js +14 -5
- package/dist/components/ds-stepper/components/ds-step-label.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-next-button.cjs +23 -6
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step-next-button.js +23 -6
- package/dist/components/ds-stepper/components/ds-step-next-button.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step.cjs +106 -25
- package/dist/components/ds-stepper/components/ds-step.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step.js +106 -25
- package/dist/components/ds-stepper/components/ds-step.js.map +1 -1
- package/dist/components/ds-stepper/ds-stepper.cjs +62 -15
- package/dist/components/ds-stepper/ds-stepper.d.cts +2 -2
- package/dist/components/ds-stepper/ds-stepper.d.cts.map +1 -1
- package/dist/components/ds-stepper/ds-stepper.d.ts +2 -2
- package/dist/components/ds-stepper/ds-stepper.js +62 -15
- package/dist/components/ds-stepper/ds-stepper.js.map +1 -1
- package/dist/components/ds-stepper/hooks/use-stepper.js.map +1 -1
- package/dist/components/ds-stepper/hooks/use-steps.cjs +29 -9
- package/dist/components/ds-stepper/hooks/use-steps.js +29 -9
- package/dist/components/ds-stepper/hooks/use-steps.js.map +1 -1
- package/dist/components/ds-system-status/ds-system-status.cjs +37 -7
- package/dist/components/ds-system-status/ds-system-status.js +37 -7
- package/dist/components/ds-system-status/ds-system-status.js.map +1 -1
- package/dist/components/ds-system-status/ds-system-status.types.js.map +1 -1
- package/dist/components/ds-table/components/core-table/core-table.cjs +281 -48
- package/dist/components/ds-table/components/core-table/core-table.js +281 -48
- package/dist/components/ds-table/components/core-table/core-table.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.cjs +134 -50
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js +134 -50
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.cjs +140 -43
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js +140 -43
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.cjs +37 -6
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js +37 -6
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.cjs +272 -100
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js +272 -100
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js.map +1 -1
- package/dist/components/ds-table/context/ds-table-context.js.map +1 -1
- package/dist/components/ds-table/ds-table.cjs +15 -15
- package/dist/components/ds-table/ds-table.d.cts +2 -2
- package/dist/components/ds-table/ds-table.js +15 -15
- package/dist/components/ds-table/ds-table.js.map +1 -1
- package/dist/components/ds-table/hooks/use-drag-and-drop.cjs +126 -38
- package/dist/components/ds-table/hooks/use-drag-and-drop.js +126 -38
- package/dist/components/ds-table/hooks/use-drag-and-drop.js.map +1 -1
- package/dist/components/ds-table/utils/column-styling.js.map +1 -1
- package/dist/components/ds-table/utils/create-columns-grid-template.js.map +1 -1
- package/dist/components/ds-table/utils/merge-refs.js.map +1 -1
- package/dist/components/ds-text-input/ds-text-input.cjs +128 -43
- package/dist/components/ds-text-input/ds-text-input.js +128 -43
- package/dist/components/ds-text-input/ds-text-input.js.map +1 -1
- package/dist/components/ds-text-input/ds-text-input.types.js.map +1 -1
- package/dist/components/ds-textarea/ds-textarea.cjs +66 -22
- package/dist/components/ds-textarea/ds-textarea.js +66 -22
- package/dist/components/ds-textarea/ds-textarea.js.map +1 -1
- package/dist/components/ds-toast/ds-toast-context.cjs +62 -17
- package/dist/components/ds-toast/ds-toast-context.js +62 -17
- package/dist/components/ds-toast/ds-toast-context.js.map +1 -1
- package/dist/components/ds-toast/ds-toast.cjs +90 -26
- package/dist/components/ds-toast/ds-toast.js +90 -26
- package/dist/components/ds-toast/ds-toast.js.map +1 -1
- package/dist/components/ds-tooltip/ds-tooltip.cjs +51 -13
- package/dist/components/ds-tooltip/ds-tooltip.js +51 -13
- package/dist/components/ds-tooltip/ds-tooltip.js.map +1 -1
- package/dist/components/ds-typography/ds-typography.cjs +51 -7
- package/dist/components/ds-typography/ds-typography.config.js.map +1 -1
- package/dist/components/ds-typography/ds-typography.js +51 -7
- package/dist/components/ds-typography/ds-typography.js.map +1 -1
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.cjs +91 -30
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts +5 -5
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts +5 -5
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js +91 -30
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +7 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_ds_radio_group_module = require('./ds-radio-group.module.cjs');
|
|
3
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
3
4
|
let classnames = require("classnames");
|
|
4
5
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
5
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -11,55 +12,223 @@ let __ark_ui_react_radio_group = require("@ark-ui/react/radio-group");
|
|
|
11
12
|
/**
|
|
12
13
|
* Root component - provides radio group context
|
|
13
14
|
*/
|
|
14
|
-
const Root = (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
const Root = (t0) => {
|
|
16
|
+
const $ = (0, react_compiler_runtime.c)(14);
|
|
17
|
+
let children;
|
|
18
|
+
let className;
|
|
19
|
+
let onValueChange;
|
|
20
|
+
let props;
|
|
21
|
+
if ($[0] !== t0) {
|
|
22
|
+
({className, children, onValueChange, ...props} = t0);
|
|
23
|
+
$[0] = t0;
|
|
24
|
+
$[1] = children;
|
|
25
|
+
$[2] = className;
|
|
26
|
+
$[3] = onValueChange;
|
|
27
|
+
$[4] = props;
|
|
28
|
+
} else {
|
|
29
|
+
children = $[1];
|
|
30
|
+
className = $[2];
|
|
31
|
+
onValueChange = $[3];
|
|
32
|
+
props = $[4];
|
|
33
|
+
}
|
|
34
|
+
let t1;
|
|
35
|
+
if ($[5] !== className) {
|
|
36
|
+
t1 = (0, classnames.default)(require_ds_radio_group_module.default.radioGroupRoot, className);
|
|
37
|
+
$[5] = className;
|
|
38
|
+
$[6] = t1;
|
|
39
|
+
} else t1 = $[6];
|
|
40
|
+
let t2;
|
|
41
|
+
if ($[7] !== onValueChange) {
|
|
42
|
+
t2 = (details) => onValueChange?.(details.value);
|
|
43
|
+
$[7] = onValueChange;
|
|
44
|
+
$[8] = t2;
|
|
45
|
+
} else t2 = $[8];
|
|
46
|
+
let t3;
|
|
47
|
+
if ($[9] !== children || $[10] !== props || $[11] !== t1 || $[12] !== t2) {
|
|
48
|
+
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_radio_group.RadioGroup.Root, {
|
|
49
|
+
className: t1,
|
|
50
|
+
onValueChange: t2,
|
|
51
|
+
...props,
|
|
52
|
+
children
|
|
53
|
+
});
|
|
54
|
+
$[9] = children;
|
|
55
|
+
$[10] = props;
|
|
56
|
+
$[11] = t1;
|
|
57
|
+
$[12] = t2;
|
|
58
|
+
$[13] = t3;
|
|
59
|
+
} else t3 = $[13];
|
|
60
|
+
return t3;
|
|
61
|
+
};
|
|
20
62
|
/**
|
|
21
63
|
* Item component - renders a single radio button with optional label
|
|
22
64
|
*/
|
|
23
|
-
const Item = (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
65
|
+
const Item = (t0) => {
|
|
66
|
+
const $ = (0, react_compiler_runtime.c)(22);
|
|
67
|
+
let children;
|
|
68
|
+
let className;
|
|
69
|
+
let label;
|
|
70
|
+
let labelInfo;
|
|
71
|
+
let props;
|
|
72
|
+
let style;
|
|
73
|
+
let value;
|
|
74
|
+
if ($[0] !== t0) {
|
|
75
|
+
({value, label, labelInfo, className, style, children, ...props} = t0);
|
|
76
|
+
$[0] = t0;
|
|
77
|
+
$[1] = children;
|
|
78
|
+
$[2] = className;
|
|
79
|
+
$[3] = label;
|
|
80
|
+
$[4] = labelInfo;
|
|
81
|
+
$[5] = props;
|
|
82
|
+
$[6] = style;
|
|
83
|
+
$[7] = value;
|
|
84
|
+
} else {
|
|
85
|
+
children = $[1];
|
|
86
|
+
className = $[2];
|
|
87
|
+
label = $[3];
|
|
88
|
+
labelInfo = $[4];
|
|
89
|
+
props = $[5];
|
|
90
|
+
style = $[6];
|
|
91
|
+
value = $[7];
|
|
92
|
+
}
|
|
93
|
+
let t1;
|
|
94
|
+
if ($[8] !== className) {
|
|
95
|
+
t1 = (0, classnames.default)(require_ds_radio_group_module.default.radioItemContainer, className);
|
|
96
|
+
$[8] = className;
|
|
97
|
+
$[9] = t1;
|
|
98
|
+
} else t1 = $[9];
|
|
99
|
+
let t2;
|
|
100
|
+
let t3;
|
|
101
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
102
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_radio_group.RadioGroup.ItemControl, {
|
|
103
|
+
className: require_ds_radio_group_module.default.radioItem,
|
|
104
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
105
|
+
className: require_ds_radio_group_module.default.radioItemWrapper,
|
|
32
106
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
33
|
-
className: require_ds_radio_group_module.default.
|
|
34
|
-
|
|
35
|
-
className: require_ds_radio_group_module.default.radioIndicator,
|
|
36
|
-
"data-part": "indicator"
|
|
37
|
-
})
|
|
107
|
+
className: require_ds_radio_group_module.default.radioIndicator,
|
|
108
|
+
"data-part": "indicator"
|
|
38
109
|
})
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
110
|
+
})
|
|
111
|
+
});
|
|
112
|
+
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_radio_group.RadioGroup.ItemHiddenInput, {});
|
|
113
|
+
$[10] = t2;
|
|
114
|
+
$[11] = t3;
|
|
115
|
+
} else {
|
|
116
|
+
t2 = $[10];
|
|
117
|
+
t3 = $[11];
|
|
118
|
+
}
|
|
119
|
+
let t4;
|
|
120
|
+
if ($[12] !== children || $[13] !== label || $[14] !== labelInfo) {
|
|
121
|
+
t4 = label ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__ark_ui_react_radio_group.RadioGroup.ItemText, {
|
|
122
|
+
className: require_ds_radio_group_module.default.radioLabel,
|
|
123
|
+
children: [label, labelInfo && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
124
|
+
className: require_ds_radio_group_module.default.labelInfo,
|
|
125
|
+
children: labelInfo
|
|
126
|
+
})]
|
|
127
|
+
}) : children;
|
|
128
|
+
$[12] = children;
|
|
129
|
+
$[13] = label;
|
|
130
|
+
$[14] = labelInfo;
|
|
131
|
+
$[15] = t4;
|
|
132
|
+
} else t4 = $[15];
|
|
133
|
+
let t5;
|
|
134
|
+
if ($[16] !== props || $[17] !== style || $[18] !== t1 || $[19] !== t4 || $[20] !== value) {
|
|
135
|
+
t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__ark_ui_react_radio_group.RadioGroup.Item, {
|
|
136
|
+
value,
|
|
137
|
+
className: t1,
|
|
138
|
+
style,
|
|
139
|
+
...props,
|
|
140
|
+
children: [
|
|
141
|
+
t2,
|
|
142
|
+
t3,
|
|
143
|
+
t4
|
|
144
|
+
]
|
|
145
|
+
});
|
|
146
|
+
$[16] = props;
|
|
147
|
+
$[17] = style;
|
|
148
|
+
$[18] = t1;
|
|
149
|
+
$[19] = t4;
|
|
150
|
+
$[20] = value;
|
|
151
|
+
$[21] = t5;
|
|
152
|
+
} else t5 = $[21];
|
|
153
|
+
return t5;
|
|
50
154
|
};
|
|
51
155
|
/**
|
|
52
156
|
* DEPRECATED: Legacy DsRadioGroup component with options array
|
|
53
157
|
* Use compound component pattern instead: DsRadioGroup.Root + DsRadioGroup.Item
|
|
54
158
|
* @deprecated
|
|
55
159
|
*/
|
|
56
|
-
const DsRadioGroupLegacy = (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
defaultValue
|
|
60
|
-
onValueChange
|
|
61
|
-
|
|
62
|
-
|
|
160
|
+
const DsRadioGroupLegacy = (t0) => {
|
|
161
|
+
const $ = (0, react_compiler_runtime.c)(18);
|
|
162
|
+
let className;
|
|
163
|
+
let defaultValue;
|
|
164
|
+
let onValueChange;
|
|
165
|
+
let options;
|
|
166
|
+
let props;
|
|
167
|
+
let value;
|
|
168
|
+
if ($[0] !== t0) {
|
|
169
|
+
({options, value, defaultValue, onValueChange, className, ...props} = t0);
|
|
170
|
+
$[0] = t0;
|
|
171
|
+
$[1] = className;
|
|
172
|
+
$[2] = defaultValue;
|
|
173
|
+
$[3] = onValueChange;
|
|
174
|
+
$[4] = options;
|
|
175
|
+
$[5] = props;
|
|
176
|
+
$[6] = value;
|
|
177
|
+
} else {
|
|
178
|
+
className = $[1];
|
|
179
|
+
defaultValue = $[2];
|
|
180
|
+
onValueChange = $[3];
|
|
181
|
+
options = $[4];
|
|
182
|
+
props = $[5];
|
|
183
|
+
value = $[6];
|
|
184
|
+
}
|
|
185
|
+
let t1;
|
|
186
|
+
if ($[7] !== className) {
|
|
187
|
+
t1 = (0, classnames.default)(require_ds_radio_group_module.default.radioGroupRoot, className);
|
|
188
|
+
$[7] = className;
|
|
189
|
+
$[8] = t1;
|
|
190
|
+
} else t1 = $[8];
|
|
191
|
+
let t2;
|
|
192
|
+
if ($[9] !== options) {
|
|
193
|
+
t2 = options.map(_temp);
|
|
194
|
+
$[9] = options;
|
|
195
|
+
$[10] = t2;
|
|
196
|
+
} else t2 = $[10];
|
|
197
|
+
let t3;
|
|
198
|
+
if ($[11] !== defaultValue || $[12] !== onValueChange || $[13] !== props || $[14] !== t1 || $[15] !== t2 || $[16] !== value) {
|
|
199
|
+
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_radio_group.Root, {
|
|
200
|
+
className: t1,
|
|
201
|
+
value,
|
|
202
|
+
defaultValue,
|
|
203
|
+
onValueChange,
|
|
204
|
+
...props,
|
|
205
|
+
children: t2
|
|
206
|
+
});
|
|
207
|
+
$[11] = defaultValue;
|
|
208
|
+
$[12] = onValueChange;
|
|
209
|
+
$[13] = props;
|
|
210
|
+
$[14] = t1;
|
|
211
|
+
$[15] = t2;
|
|
212
|
+
$[16] = value;
|
|
213
|
+
$[17] = t3;
|
|
214
|
+
} else t3 = $[17];
|
|
215
|
+
return t3;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Design system RadioGroup component
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* <DsRadioGroup.Root value={value} onValueChange={setValue}>
|
|
222
|
+
* <DsRadioGroup.Item value="option1" label="Option 1" />
|
|
223
|
+
* <DsRadioGroup.Item value="option2" label="Option 2" />
|
|
224
|
+
* </DsRadioGroup.Root>
|
|
225
|
+
*/
|
|
226
|
+
const DsRadioGroup = {
|
|
227
|
+
Root,
|
|
228
|
+
Item
|
|
229
|
+
};
|
|
230
|
+
function _temp(option) {
|
|
231
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
63
232
|
className: require_ds_radio_group_module.default.radioItemContainer,
|
|
64
233
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_radio_group.Item, {
|
|
65
234
|
className: require_ds_radio_group_module.default.radioItem,
|
|
@@ -78,21 +247,8 @@ const DsRadioGroupLegacy = ({ options, value, defaultValue, onValueChange, class
|
|
|
78
247
|
children: option.labelInfo
|
|
79
248
|
})]
|
|
80
249
|
})]
|
|
81
|
-
}, option.value)
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Design system RadioGroup component
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* <DsRadioGroup.Root value={value} onValueChange={setValue}>
|
|
88
|
-
* <DsRadioGroup.Item value="option1" label="Option 1" />
|
|
89
|
-
* <DsRadioGroup.Item value="option2" label="Option 2" />
|
|
90
|
-
* </DsRadioGroup.Root>
|
|
91
|
-
*/
|
|
92
|
-
const DsRadioGroup = {
|
|
93
|
-
Root,
|
|
94
|
-
Item
|
|
95
|
-
};
|
|
250
|
+
}, option.value);
|
|
251
|
+
}
|
|
96
252
|
|
|
97
253
|
//#endregion
|
|
98
254
|
exports.DsRadioGroup = DsRadioGroup;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ds_radio_group_module_default from "./ds-radio-group.module.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import classNames from "classnames";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
@@ -8,55 +9,223 @@ import { RadioGroup } from "@ark-ui/react/radio-group";
|
|
|
8
9
|
/**
|
|
9
10
|
* Root component - provides radio group context
|
|
10
11
|
*/
|
|
11
|
-
const Root = (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
const Root = (t0) => {
|
|
13
|
+
const $ = c(14);
|
|
14
|
+
let children;
|
|
15
|
+
let className;
|
|
16
|
+
let onValueChange;
|
|
17
|
+
let props;
|
|
18
|
+
if ($[0] !== t0) {
|
|
19
|
+
({className, children, onValueChange, ...props} = t0);
|
|
20
|
+
$[0] = t0;
|
|
21
|
+
$[1] = children;
|
|
22
|
+
$[2] = className;
|
|
23
|
+
$[3] = onValueChange;
|
|
24
|
+
$[4] = props;
|
|
25
|
+
} else {
|
|
26
|
+
children = $[1];
|
|
27
|
+
className = $[2];
|
|
28
|
+
onValueChange = $[3];
|
|
29
|
+
props = $[4];
|
|
30
|
+
}
|
|
31
|
+
let t1;
|
|
32
|
+
if ($[5] !== className) {
|
|
33
|
+
t1 = classNames(ds_radio_group_module_default.radioGroupRoot, className);
|
|
34
|
+
$[5] = className;
|
|
35
|
+
$[6] = t1;
|
|
36
|
+
} else t1 = $[6];
|
|
37
|
+
let t2;
|
|
38
|
+
if ($[7] !== onValueChange) {
|
|
39
|
+
t2 = (details) => onValueChange?.(details.value);
|
|
40
|
+
$[7] = onValueChange;
|
|
41
|
+
$[8] = t2;
|
|
42
|
+
} else t2 = $[8];
|
|
43
|
+
let t3;
|
|
44
|
+
if ($[9] !== children || $[10] !== props || $[11] !== t1 || $[12] !== t2) {
|
|
45
|
+
t3 = /* @__PURE__ */ jsx(RadioGroup.Root, {
|
|
46
|
+
className: t1,
|
|
47
|
+
onValueChange: t2,
|
|
48
|
+
...props,
|
|
49
|
+
children
|
|
50
|
+
});
|
|
51
|
+
$[9] = children;
|
|
52
|
+
$[10] = props;
|
|
53
|
+
$[11] = t1;
|
|
54
|
+
$[12] = t2;
|
|
55
|
+
$[13] = t3;
|
|
56
|
+
} else t3 = $[13];
|
|
57
|
+
return t3;
|
|
58
|
+
};
|
|
17
59
|
/**
|
|
18
60
|
* Item component - renders a single radio button with optional label
|
|
19
61
|
*/
|
|
20
|
-
const Item = (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
62
|
+
const Item = (t0) => {
|
|
63
|
+
const $ = c(22);
|
|
64
|
+
let children;
|
|
65
|
+
let className;
|
|
66
|
+
let label;
|
|
67
|
+
let labelInfo;
|
|
68
|
+
let props;
|
|
69
|
+
let style;
|
|
70
|
+
let value;
|
|
71
|
+
if ($[0] !== t0) {
|
|
72
|
+
({value, label, labelInfo, className, style, children, ...props} = t0);
|
|
73
|
+
$[0] = t0;
|
|
74
|
+
$[1] = children;
|
|
75
|
+
$[2] = className;
|
|
76
|
+
$[3] = label;
|
|
77
|
+
$[4] = labelInfo;
|
|
78
|
+
$[5] = props;
|
|
79
|
+
$[6] = style;
|
|
80
|
+
$[7] = value;
|
|
81
|
+
} else {
|
|
82
|
+
children = $[1];
|
|
83
|
+
className = $[2];
|
|
84
|
+
label = $[3];
|
|
85
|
+
labelInfo = $[4];
|
|
86
|
+
props = $[5];
|
|
87
|
+
style = $[6];
|
|
88
|
+
value = $[7];
|
|
89
|
+
}
|
|
90
|
+
let t1;
|
|
91
|
+
if ($[8] !== className) {
|
|
92
|
+
t1 = classNames(ds_radio_group_module_default.radioItemContainer, className);
|
|
93
|
+
$[8] = className;
|
|
94
|
+
$[9] = t1;
|
|
95
|
+
} else t1 = $[9];
|
|
96
|
+
let t2;
|
|
97
|
+
let t3;
|
|
98
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
99
|
+
t2 = /* @__PURE__ */ jsx(RadioGroup.ItemControl, {
|
|
100
|
+
className: ds_radio_group_module_default.radioItem,
|
|
101
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
102
|
+
className: ds_radio_group_module_default.radioItemWrapper,
|
|
29
103
|
children: /* @__PURE__ */ jsx("div", {
|
|
30
|
-
className: ds_radio_group_module_default.
|
|
31
|
-
|
|
32
|
-
className: ds_radio_group_module_default.radioIndicator,
|
|
33
|
-
"data-part": "indicator"
|
|
34
|
-
})
|
|
104
|
+
className: ds_radio_group_module_default.radioIndicator,
|
|
105
|
+
"data-part": "indicator"
|
|
35
106
|
})
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
107
|
+
})
|
|
108
|
+
});
|
|
109
|
+
t3 = /* @__PURE__ */ jsx(RadioGroup.ItemHiddenInput, {});
|
|
110
|
+
$[10] = t2;
|
|
111
|
+
$[11] = t3;
|
|
112
|
+
} else {
|
|
113
|
+
t2 = $[10];
|
|
114
|
+
t3 = $[11];
|
|
115
|
+
}
|
|
116
|
+
let t4;
|
|
117
|
+
if ($[12] !== children || $[13] !== label || $[14] !== labelInfo) {
|
|
118
|
+
t4 = label ? /* @__PURE__ */ jsxs(RadioGroup.ItemText, {
|
|
119
|
+
className: ds_radio_group_module_default.radioLabel,
|
|
120
|
+
children: [label, labelInfo && /* @__PURE__ */ jsx("div", {
|
|
121
|
+
className: ds_radio_group_module_default.labelInfo,
|
|
122
|
+
children: labelInfo
|
|
123
|
+
})]
|
|
124
|
+
}) : children;
|
|
125
|
+
$[12] = children;
|
|
126
|
+
$[13] = label;
|
|
127
|
+
$[14] = labelInfo;
|
|
128
|
+
$[15] = t4;
|
|
129
|
+
} else t4 = $[15];
|
|
130
|
+
let t5;
|
|
131
|
+
if ($[16] !== props || $[17] !== style || $[18] !== t1 || $[19] !== t4 || $[20] !== value) {
|
|
132
|
+
t5 = /* @__PURE__ */ jsxs(RadioGroup.Item, {
|
|
133
|
+
value,
|
|
134
|
+
className: t1,
|
|
135
|
+
style,
|
|
136
|
+
...props,
|
|
137
|
+
children: [
|
|
138
|
+
t2,
|
|
139
|
+
t3,
|
|
140
|
+
t4
|
|
141
|
+
]
|
|
142
|
+
});
|
|
143
|
+
$[16] = props;
|
|
144
|
+
$[17] = style;
|
|
145
|
+
$[18] = t1;
|
|
146
|
+
$[19] = t4;
|
|
147
|
+
$[20] = value;
|
|
148
|
+
$[21] = t5;
|
|
149
|
+
} else t5 = $[21];
|
|
150
|
+
return t5;
|
|
47
151
|
};
|
|
48
152
|
/**
|
|
49
153
|
* DEPRECATED: Legacy DsRadioGroup component with options array
|
|
50
154
|
* Use compound component pattern instead: DsRadioGroup.Root + DsRadioGroup.Item
|
|
51
155
|
* @deprecated
|
|
52
156
|
*/
|
|
53
|
-
const DsRadioGroupLegacy = (
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
defaultValue
|
|
57
|
-
onValueChange
|
|
58
|
-
|
|
59
|
-
|
|
157
|
+
const DsRadioGroupLegacy = (t0) => {
|
|
158
|
+
const $ = c(18);
|
|
159
|
+
let className;
|
|
160
|
+
let defaultValue;
|
|
161
|
+
let onValueChange;
|
|
162
|
+
let options;
|
|
163
|
+
let props;
|
|
164
|
+
let value;
|
|
165
|
+
if ($[0] !== t0) {
|
|
166
|
+
({options, value, defaultValue, onValueChange, className, ...props} = t0);
|
|
167
|
+
$[0] = t0;
|
|
168
|
+
$[1] = className;
|
|
169
|
+
$[2] = defaultValue;
|
|
170
|
+
$[3] = onValueChange;
|
|
171
|
+
$[4] = options;
|
|
172
|
+
$[5] = props;
|
|
173
|
+
$[6] = value;
|
|
174
|
+
} else {
|
|
175
|
+
className = $[1];
|
|
176
|
+
defaultValue = $[2];
|
|
177
|
+
onValueChange = $[3];
|
|
178
|
+
options = $[4];
|
|
179
|
+
props = $[5];
|
|
180
|
+
value = $[6];
|
|
181
|
+
}
|
|
182
|
+
let t1;
|
|
183
|
+
if ($[7] !== className) {
|
|
184
|
+
t1 = classNames(ds_radio_group_module_default.radioGroupRoot, className);
|
|
185
|
+
$[7] = className;
|
|
186
|
+
$[8] = t1;
|
|
187
|
+
} else t1 = $[8];
|
|
188
|
+
let t2;
|
|
189
|
+
if ($[9] !== options) {
|
|
190
|
+
t2 = options.map(_temp);
|
|
191
|
+
$[9] = options;
|
|
192
|
+
$[10] = t2;
|
|
193
|
+
} else t2 = $[10];
|
|
194
|
+
let t3;
|
|
195
|
+
if ($[11] !== defaultValue || $[12] !== onValueChange || $[13] !== props || $[14] !== t1 || $[15] !== t2 || $[16] !== value) {
|
|
196
|
+
t3 = /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, {
|
|
197
|
+
className: t1,
|
|
198
|
+
value,
|
|
199
|
+
defaultValue,
|
|
200
|
+
onValueChange,
|
|
201
|
+
...props,
|
|
202
|
+
children: t2
|
|
203
|
+
});
|
|
204
|
+
$[11] = defaultValue;
|
|
205
|
+
$[12] = onValueChange;
|
|
206
|
+
$[13] = props;
|
|
207
|
+
$[14] = t1;
|
|
208
|
+
$[15] = t2;
|
|
209
|
+
$[16] = value;
|
|
210
|
+
$[17] = t3;
|
|
211
|
+
} else t3 = $[17];
|
|
212
|
+
return t3;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Design system RadioGroup component
|
|
216
|
+
*
|
|
217
|
+
* @example
|
|
218
|
+
* <DsRadioGroup.Root value={value} onValueChange={setValue}>
|
|
219
|
+
* <DsRadioGroup.Item value="option1" label="Option 1" />
|
|
220
|
+
* <DsRadioGroup.Item value="option2" label="Option 2" />
|
|
221
|
+
* </DsRadioGroup.Root>
|
|
222
|
+
*/
|
|
223
|
+
const DsRadioGroup = {
|
|
224
|
+
Root,
|
|
225
|
+
Item
|
|
226
|
+
};
|
|
227
|
+
function _temp(option) {
|
|
228
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
60
229
|
className: ds_radio_group_module_default.radioItemContainer,
|
|
61
230
|
children: [/* @__PURE__ */ jsx(RadioGroupPrimitive.Item, {
|
|
62
231
|
className: ds_radio_group_module_default.radioItem,
|
|
@@ -75,21 +244,8 @@ const DsRadioGroupLegacy = ({ options, value, defaultValue, onValueChange, class
|
|
|
75
244
|
children: option.labelInfo
|
|
76
245
|
})]
|
|
77
246
|
})]
|
|
78
|
-
}, option.value)
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Design system RadioGroup component
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* <DsRadioGroup.Root value={value} onValueChange={setValue}>
|
|
85
|
-
* <DsRadioGroup.Item value="option1" label="Option 1" />
|
|
86
|
-
* <DsRadioGroup.Item value="option2" label="Option 2" />
|
|
87
|
-
* </DsRadioGroup.Root>
|
|
88
|
-
*/
|
|
89
|
-
const DsRadioGroup = {
|
|
90
|
-
Root,
|
|
91
|
-
Item
|
|
92
|
-
};
|
|
247
|
+
}, option.value);
|
|
248
|
+
}
|
|
93
249
|
|
|
94
250
|
//#endregion
|
|
95
251
|
export { DsRadioGroup, DsRadioGroupLegacy };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-radio-group.js","names":["
|
|
1
|
+
{"version":3,"file":"ds-radio-group.js","names":["React","RadioGroupPrimitive","RadioGroup","classNames","styles","DsRadioGroupItemProps","DsRadioGroupLegacyProps","DsRadioGroupRootProps","Root","FC","t0","$","_c","children","className","onValueChange","props","t1","radioGroupRoot","t2","details","value","t3","Item","label","labelInfo","style","radioItemContainer","Symbol","for","radioItem","radioItemWrapper","radioIndicator","t4","radioLabel","t5","DsRadioGroupLegacy","defaultValue","options","map","_temp","DsRadioGroup","option","disabled"],"sources":["../../../src/components/ds-radio-group/ds-radio-group.tsx"],"sourcesContent":["import type React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { RadioGroup } from '@ark-ui/react/radio-group';\nimport classNames from 'classnames';\nimport styles from './ds-radio-group.module.scss';\nimport type {\n\tDsRadioGroupItemProps,\n\tDsRadioGroupLegacyProps,\n\tDsRadioGroupRootProps,\n} from './ds-radio-group.types';\n\n/**\n * Root component - provides radio group context\n */\nconst Root: React.FC<DsRadioGroupRootProps> = ({ className, children, onValueChange, ...props }) => (\n\t<RadioGroup.Root\n\t\tclassName={classNames(styles.radioGroupRoot, className)}\n\t\tonValueChange={(details) => onValueChange?.(details.value)}\n\t\t{...props}\n\t>\n\t\t{children}\n\t</RadioGroup.Root>\n);\n\n/**\n * Item component - renders a single radio button with optional label\n */\nconst Item: React.FC<DsRadioGroupItemProps> = ({\n\tvalue,\n\tlabel,\n\tlabelInfo,\n\tclassName,\n\tstyle,\n\tchildren,\n\t...props\n}) => {\n\treturn (\n\t\t<RadioGroup.Item\n\t\t\tvalue={value}\n\t\t\tclassName={classNames(styles.radioItemContainer, className)}\n\t\t\tstyle={style}\n\t\t\t{...props}\n\t\t>\n\t\t\t<RadioGroup.ItemControl className={styles.radioItem}>\n\t\t\t\t<div className={styles.radioItemWrapper}>\n\t\t\t\t\t<div className={styles.radioIndicator} data-part=\"indicator\" />\n\t\t\t\t</div>\n\t\t\t</RadioGroup.ItemControl>\n\t\t\t<RadioGroup.ItemHiddenInput />\n\t\t\t{label ? (\n\t\t\t\t<RadioGroup.ItemText className={styles.radioLabel}>\n\t\t\t\t\t{label}\n\t\t\t\t\t{labelInfo && <div className={styles.labelInfo}>{labelInfo}</div>}\n\t\t\t\t</RadioGroup.ItemText>\n\t\t\t) : (\n\t\t\t\tchildren\n\t\t\t)}\n\t\t</RadioGroup.Item>\n\t);\n};\n\n/**\n * DEPRECATED: Legacy DsRadioGroup component with options array\n * Use compound component pattern instead: DsRadioGroup.Root + DsRadioGroup.Item\n * @deprecated\n */\nexport const DsRadioGroupLegacy: React.FC<DsRadioGroupLegacyProps> = ({\n\toptions,\n\tvalue,\n\tdefaultValue,\n\tonValueChange,\n\tclassName,\n\t...props\n}) => (\n\t<RadioGroupPrimitive.Root\n\t\tclassName={classNames(styles.radioGroupRoot, className)}\n\t\tvalue={value}\n\t\tdefaultValue={defaultValue}\n\t\tonValueChange={onValueChange}\n\t\t{...props}\n\t>\n\t\t{options.map((option) => (\n\t\t\t<div key={option.value} className={styles.radioItemContainer}>\n\t\t\t\t<RadioGroupPrimitive.Item\n\t\t\t\t\tclassName={styles.radioItem}\n\t\t\t\t\tvalue={option.value}\n\t\t\t\t\tdisabled={option.disabled}\n\t\t\t\t\tid={option.value}\n\t\t\t\t>\n\t\t\t\t\t<div className={styles.radioItemWrapper}>\n\t\t\t\t\t\t<RadioGroupPrimitive.Indicator className={styles.radioIndicator} />\n\t\t\t\t\t</div>\n\t\t\t\t</RadioGroupPrimitive.Item>\n\t\t\t\t<label className={styles.radioLabel} htmlFor={option.value}>\n\t\t\t\t\t{option.label}\n\t\t\t\t\t{option.labelInfo && <div className={styles.labelInfo}>{option.labelInfo}</div>}\n\t\t\t\t</label>\n\t\t\t</div>\n\t\t))}\n\t</RadioGroupPrimitive.Root>\n);\n\n/**\n * Design system RadioGroup component\n *\n * @example\n * <DsRadioGroup.Root value={value} onValueChange={setValue}>\n * <DsRadioGroup.Item value=\"option1\" label=\"Option 1\" />\n * <DsRadioGroup.Item value=\"option2\" label=\"Option 2\" />\n * </DsRadioGroup.Root>\n */\nexport const DsRad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