@igne-agency/react-web-ui 0.4.0 → 0.6.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/dist/base.css +3 -0
- package/dist/components/accordion/accordion.css +21 -21
- package/dist/components/accordion/accordion.d.ts +17 -4
- package/dist/components/accordion/accordion.js +83 -36
- package/dist/components/accordion/accordion.module.js +6 -6
- package/dist/components/attachment-tile/attachment-preview.d.ts +56 -13
- package/dist/components/attachment-tile/attachment-preview.js +388 -119
- package/dist/components/attachment-tile/attachment-tile.css +31 -25
- package/dist/components/attachment-tile/attachment-tile.d.ts +32 -10
- package/dist/components/attachment-tile/attachment-tile.js +160 -43
- package/dist/components/attachment-tile/attachment-tile.module.js +8 -8
- package/dist/components/attachment-tile/index.d.ts +1 -1
- package/dist/components/avatar/avatar.css +9 -9
- package/dist/components/avatar/avatar.d.ts +50 -5
- package/dist/components/avatar/avatar.js +178 -64
- package/dist/components/avatar/avatar.module.js +3 -3
- package/dist/components/avatar-group/avatar-group-context.d.ts +2 -4
- package/dist/components/avatar-group/avatar-group-context.js +2 -2
- package/dist/components/avatar-group/avatar-group.css +26 -20
- package/dist/components/avatar-group/avatar-group.d.ts +85 -27
- package/dist/components/avatar-group/avatar-group.js +400 -246
- package/dist/components/avatar-group/avatar-group.module.js +8 -8
- package/dist/components/breadcrumbs/breadcrumbs.css +12 -12
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +69 -23
- package/dist/components/breadcrumbs/breadcrumbs.js +299 -248
- package/dist/components/breadcrumbs/breadcrumbs.module.js +8 -8
- package/dist/components/button/button.css +29 -31
- package/dist/components/button/button.d.ts +20 -16
- package/dist/components/button/button.js +140 -145
- package/dist/components/button/button.module.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/checkbox-field/checkbox-field.js +63 -49
- package/dist/components/checkbox-field/checkbox.css +105 -56
- package/dist/components/checkbox-field/checkbox.d.ts +3 -2
- package/dist/components/checkbox-field/checkbox.js +12 -9
- package/dist/components/checkbox-field/checkbox.module.js +4 -4
- package/dist/components/checkbox-group-field/checkbox-group-field.js +78 -72
- package/dist/components/checkbox-group-field/checkbox-group.css +14 -10
- package/dist/components/checkbox-group-field/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group-field/checkbox-group.js +2 -2
- package/dist/components/checkbox-group-field/checkbox-group.module.js +2 -2
- package/dist/components/collapsible/collapsible.css +20 -20
- package/dist/components/collapsible/collapsible.d.ts +17 -4
- package/dist/components/collapsible/collapsible.js +83 -36
- package/dist/components/collapsible/collapsible.module.js +5 -5
- package/dist/components/combobox-field/combobox-field.js +206 -158
- package/dist/components/combobox-field/combobox.css +492 -277
- package/dist/components/combobox-field/combobox.d.ts +148 -39
- package/dist/components/combobox-field/combobox.js +506 -206
- package/dist/components/combobox-field/combobox.module.js +21 -21
- package/dist/components/combobox-field/value-state-view.css +5 -5
- package/dist/components/combobox-field/value-state-view.module.js +4 -4
- package/dist/components/composer/composer-attachments.d.ts +30 -11
- package/dist/components/composer/composer-attachments.js +45 -40
- package/dist/components/composer/composer-editor.css +40 -35
- package/dist/components/composer/composer-editor.d.ts +14 -4
- package/dist/components/composer/composer-editor.js +134 -44
- package/dist/components/composer/composer-editor.module.js +5 -5
- package/dist/components/composer/composer.css +22 -22
- package/dist/components/composer/composer.d.ts +13 -2
- package/dist/components/composer/composer.js +78 -63
- package/dist/components/composer/composer.module.js +5 -5
- package/dist/components/composer/index.d.ts +2 -2
- package/dist/components/composer/mention-text.css +5 -5
- package/dist/components/composer/mention-text.module.js +1 -1
- package/dist/components/confirm-dialog/confirm-dialog.css +29 -29
- package/dist/components/confirm-dialog/confirm-dialog.d.ts +57 -3
- package/dist/components/confirm-dialog/confirm-dialog.js +266 -108
- package/dist/components/confirm-dialog/confirm-dialog.module.js +5 -5
- package/dist/components/conversation/conversation.css +52 -52
- package/dist/components/conversation/conversation.d.ts +43 -18
- package/dist/components/conversation/conversation.js +120 -78
- package/dist/components/conversation/conversation.module.js +15 -15
- package/dist/components/date-field/date-field.d.ts +1 -1
- package/dist/components/date-field/date-field.js +202 -100
- package/dist/components/date-field/date-input.d.ts +73 -37
- package/dist/components/date-field/date-input.js +72 -45
- package/dist/components/date-field/index.d.ts +1 -1
- package/dist/components/date-range-field/date-range-field.d.ts +1 -1
- package/dist/components/date-range-field/date-range-field.js +219 -107
- package/dist/components/date-range-field/date-range-input.d.ts +84 -40
- package/dist/components/date-range-field/date-range-input.js +83 -48
- package/dist/components/dialog/dialog.css +32 -32
- package/dist/components/dialog/dialog.d.ts +8 -7
- package/dist/components/dialog/dialog.js +8 -26
- package/dist/components/dialog/dialog.module.js +6 -6
- package/dist/components/divider/divider.css +6 -6
- package/dist/components/divider/divider.d.ts +36 -2
- package/dist/components/divider/divider.js +195 -29
- package/dist/components/divider/divider.module.js +3 -3
- package/dist/components/drawer/drawer.css +55 -56
- package/dist/components/drawer/drawer.d.ts +8 -7
- package/dist/components/drawer/drawer.js +8 -26
- package/dist/components/drawer/drawer.module.js +6 -6
- package/dist/components/field/field.css +34 -24
- package/dist/components/field/field.d.ts +60 -37
- package/dist/components/field/field.js +242 -157
- package/dist/components/field/field.module.js +12 -10
- package/dist/components/field/input-parts.d.ts +11 -13
- package/dist/components/field/input-parts.js +23 -42
- package/dist/components/field-placeholder/field-placeholder.css +6 -6
- package/dist/components/field-placeholder/field-placeholder.module.js +4 -4
- package/dist/components/fieldset/field-group.d.ts +1 -1
- package/dist/components/fieldset/field-group.js +48 -42
- package/dist/components/fieldset/fieldset-root.d.ts +1 -1
- package/dist/components/fieldset/fieldset-root.js +19 -17
- package/dist/components/fieldset/fieldset.d.ts +2 -2
- package/dist/components/fieldset/fieldset.js +2 -2
- package/dist/components/file-field/file-field.css +126 -60
- package/dist/components/file-field/file-field.js +201 -109
- package/dist/components/file-field/file-field.module.js +4 -4
- package/dist/components/file-field/file-input.d.ts +66 -40
- package/dist/components/file-field/file-input.js +188 -132
- package/dist/components/filter-bar/filter-bar.css +8 -8
- package/dist/components/filter-bar/filter-bar.d.ts +12 -3
- package/dist/components/filter-bar/filter-bar.js +23 -25
- package/dist/components/filter-bar/filter-bar.module.js +5 -5
- package/dist/components/form/form.d.ts +19 -7
- package/dist/components/form/form.js +80 -29
- package/dist/components/icon/icon.css +2 -2
- package/dist/components/icon/icon.module.js +1 -1
- package/dist/components/link/link.css +6 -5
- package/dist/components/link/link.module.js +1 -1
- package/dist/components/menu/menu.css +52 -47
- package/dist/components/menu/menu.d.ts +32 -25
- package/dist/components/menu/menu.js +75 -124
- package/dist/components/menu/menu.module.js +8 -8
- package/dist/components/nav/nav-context.d.ts +1 -1
- package/dist/components/nav/nav-item-view.d.ts +10 -13
- package/dist/components/nav/nav-item-view.js +42 -54
- package/dist/components/nav/nav.css +150 -119
- package/dist/components/nav/nav.d.ts +61 -17
- package/dist/components/nav/nav.js +271 -176
- package/dist/components/nav/nav.module.js +17 -15
- package/dist/components/number-field/number-field.css +153 -64
- package/dist/components/number-field/number-field.d.ts +2 -2
- package/dist/components/number-field/number-field.js +112 -91
- package/dist/components/number-field/number-field.module.js +6 -6
- package/dist/components/number-field/number-input.d.ts +43 -23
- package/dist/components/number-field/number-input.js +179 -125
- package/dist/components/otp-field/otp-field.css +153 -60
- package/dist/components/otp-field/otp-field.d.ts +2 -2
- package/dist/components/otp-field/otp-field.js +62 -46
- package/dist/components/otp-field/otp-field.module.js +4 -4
- package/dist/components/otp-field/otp-input.d.ts +8 -6
- package/dist/components/otp-field/otp-input.js +92 -92
- package/dist/components/pagination/pagination.d.ts +46 -15
- package/dist/components/pagination/pagination.js +217 -224
- package/dist/components/password-field/password-field.css +23 -23
- package/dist/components/password-field/password-field.js +107 -85
- package/dist/components/password-field/password-field.module.js +8 -8
- package/dist/components/password-field/password-strength.d.ts +107 -3
- package/dist/components/password-field/password-strength.js +569 -92
- package/dist/components/photo-field/photo-field.js +137 -112
- package/dist/components/photo-field/photo-input.css +67 -44
- package/dist/components/photo-field/photo-input.d.ts +59 -15
- package/dist/components/photo-field/photo-input.js +173 -86
- package/dist/components/photo-field/photo-input.module.js +10 -8
- package/dist/components/popover/popover.css +41 -41
- package/dist/components/popover/popover.d.ts +66 -25
- package/dist/components/popover/popover.js +332 -217
- package/dist/components/popover/popover.module.js +15 -19
- package/dist/components/radio-group-field/radio-group-field.js +80 -71
- package/dist/components/radio-group-field/radio-group.css +112 -60
- package/dist/components/radio-group-field/radio-group.d.ts +19 -3
- package/dist/components/radio-group-field/radio-group.js +66 -23
- package/dist/components/radio-group-field/radio-group.module.js +4 -4
- package/dist/components/segmented-control-field/segmented-control-field.d.ts +1 -1
- package/dist/components/segmented-control-field/segmented-control-field.js +111 -96
- package/dist/components/segmented-control-field/segmented-control.css +132 -79
- package/dist/components/segmented-control-field/segmented-control.d.ts +39 -15
- package/dist/components/segmented-control-field/segmented-control.js +124 -41
- package/dist/components/segmented-control-field/segmented-control.module.js +4 -4
- package/dist/components/select-field/select.css +214 -101
- package/dist/components/select-field/select.d.ts +43 -11
- package/dist/components/select-field/select.js +194 -109
- package/dist/components/select-field/select.module.js +14 -14
- package/dist/components/skeleton/skeleton.css +4 -4
- package/dist/components/skeleton/skeleton.module.js +3 -3
- package/dist/components/stale/stale.css +15 -15
- package/dist/components/stale/stale.d.ts +27 -3
- package/dist/components/stale/stale.js +147 -66
- package/dist/components/stale/stale.module.js +6 -6
- package/dist/components/status-message/status-message.css +22 -22
- package/dist/components/status-message/status-message.module.js +6 -6
- package/dist/components/switch-field/switch-field.js +77 -57
- package/dist/components/switch-field/switch.css +112 -63
- package/dist/components/switch-field/switch.d.ts +20 -3
- package/dist/components/switch-field/switch.js +70 -27
- package/dist/components/switch-field/switch.module.js +4 -4
- package/dist/components/tabs/tabs.css +32 -32
- package/dist/components/tabs/tabs.d.ts +21 -7
- package/dist/components/tabs/tabs.js +73 -14
- package/dist/components/tabs/tabs.module.js +7 -7
- package/dist/components/tag/tag.css +84 -84
- package/dist/components/tag/tag.module.js +3 -3
- package/dist/components/tag-group/tag-group.css +94 -94
- package/dist/components/tag-group/tag-group.module.js +4 -4
- package/dist/components/text-field/text-field.css +159 -82
- package/dist/components/text-field/text-field.d.ts +1 -1
- package/dist/components/text-field/text-field.js +139 -110
- package/dist/components/text-field/text-field.module.js +9 -9
- package/dist/components/text-field/text-input.d.ts +81 -45
- package/dist/components/text-field/text-input.js +366 -217
- package/dist/components/textarea-field/textarea-field.css +7 -2
- package/dist/components/textarea-field/textarea-field.js +72 -56
- package/dist/components/textarea-field/textarea-field.module.js +2 -2
- package/dist/components/time-field/time-field.js +153 -60
- package/dist/components/time-field/time-input.d.ts +21 -10
- package/dist/components/time-field/time-input.js +22 -11
- package/dist/components/toast/toast-provider.css +34 -31
- package/dist/components/toast/toast-provider.d.ts +63 -14
- package/dist/components/toast/toast-provider.js +174 -111
- package/dist/components/toast/toast-provider.module.js +7 -7
- package/dist/components/toggle-group-field/toggle-group-field.d.ts +1 -1
- package/dist/components/toggle-group-field/toggle-group-field.js +95 -89
- package/dist/components/toggle-group-field/toggle-group.css +117 -67
- package/dist/components/toggle-group-field/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group-field/toggle-group.js +2 -2
- package/dist/components/toggle-group-field/toggle-group.module.js +2 -2
- package/dist/components/tooltip/tooltip.css +4 -4
- package/dist/components/tooltip/tooltip.module.js +1 -1
- package/dist/data-table/data-table-content.js +6 -5
- package/dist/data-table/data-table-parts.d.ts +41 -13
- package/dist/data-table/data-table-parts.js +213 -172
- package/dist/data-table/data-table-selection.d.ts +105 -3
- package/dist/data-table/data-table-selection.js +654 -145
- package/dist/data-table/data-table.css +125 -128
- package/dist/data-table/data-table.d.ts +21 -26
- package/dist/data-table/data-table.js +20 -23
- package/dist/data-table/data-table.module.js +32 -34
- package/dist/data-table/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/lib/calendar/calendar-navigation.d.ts +39 -5
- package/dist/lib/calendar/calendar-navigation.js +185 -118
- package/dist/lib/calendar/calendar-parts.d.ts +143 -0
- package/dist/lib/calendar/calendar-parts.js +540 -0
- package/dist/lib/calendar/calendar-prefab.d.ts +52 -0
- package/dist/lib/calendar/calendar-prefab.js +311 -0
- package/dist/lib/calendar/calendar-year.d.ts +3 -1
- package/dist/lib/calendar/calendar-year.js +139 -131
- package/dist/lib/calendar/temporal.css +325 -232
- package/dist/lib/calendar/temporal.d.ts +67 -82
- package/dist/lib/calendar/temporal.js +258 -569
- package/dist/lib/calendar/temporal.module.js +38 -38
- package/dist/lib/forms/use-connected-field.d.ts +1 -1
- package/dist/lib/forms/use-connected-field.js +1 -1
- package/dist/lib/render-as.d.ts +13 -0
- package/dist/lib/render-as.js +46 -0
- package/dist/terrazzo/index.d.ts +4 -3
- package/dist/terrazzo/index.js +17 -6
- package/dist/tokens.css +28 -4
- package/package.json +2 -2
- package/tokens/dark.tokens.json +6 -0
- package/tokens/sys.tokens.json +7 -0
- package/dist/components/button/close-button.d.ts +0 -16
- package/dist/components/button/close-button.js +0 -30
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import './popover.css';// src/components/popover/popover.module.scss
|
|
2
|
-
var positioner = "
|
|
3
|
-
var visuallyHidden = "
|
|
4
|
-
var popup = "
|
|
5
|
-
var arrow = "
|
|
6
|
-
var arrowFill = "
|
|
7
|
-
var title = "
|
|
8
|
-
var rows = "
|
|
9
|
-
var row = "
|
|
10
|
-
var rowLabel = "
|
|
11
|
-
var rowValue = "
|
|
12
|
-
var skeletonText = "
|
|
13
|
-
var skeletonTextContent = "
|
|
14
|
-
var skeletonTextOverlay = "
|
|
15
|
-
var titleSkeleton = "_titleSkeleton_ixh47_114";
|
|
16
|
-
var valueSkeleton = "_valueSkeleton_ixh47_117";
|
|
2
|
+
var positioner = "_positioner_1yoda_3";
|
|
3
|
+
var visuallyHidden = "_visuallyHidden_1yoda_18";
|
|
4
|
+
var popup = "_popup_1yoda_26";
|
|
5
|
+
var arrow = "_arrow_1yoda_47";
|
|
6
|
+
var arrowFill = "_arrowFill_1yoda_65";
|
|
7
|
+
var title = "_title_1yoda_68";
|
|
8
|
+
var rows = "_rows_1yoda_73";
|
|
9
|
+
var row = "_row_1yoda_73";
|
|
10
|
+
var rowLabel = "_rowLabel_1yoda_86";
|
|
11
|
+
var rowValue = "_rowValue_1yoda_87";
|
|
12
|
+
var skeletonText = "_skeletonText_1yoda_101";
|
|
13
|
+
var skeletonTextContent = "_skeletonTextContent_1yoda_105";
|
|
14
|
+
var skeletonTextOverlay = "_skeletonTextOverlay_1yoda_108";
|
|
17
15
|
var popover_module_default = {
|
|
18
16
|
positioner,
|
|
19
17
|
visuallyHidden,
|
|
@@ -27,8 +25,6 @@ var popover_module_default = {
|
|
|
27
25
|
rowValue,
|
|
28
26
|
skeletonText,
|
|
29
27
|
skeletonTextContent,
|
|
30
|
-
skeletonTextOverlay
|
|
31
|
-
titleSkeleton,
|
|
32
|
-
valueSkeleton
|
|
28
|
+
skeletonTextOverlay
|
|
33
29
|
};
|
|
34
|
-
export { arrow, arrowFill, popover_module_default as default, popup, positioner, row, rowLabel, rowValue, rows, skeletonText, skeletonTextContent, skeletonTextOverlay, title,
|
|
30
|
+
export { arrow, arrowFill, popover_module_default as default, popup, positioner, row, rowLabel, rowValue, rows, skeletonText, skeletonTextContent, skeletonTextOverlay, title, visuallyHidden };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Field } from "../field/field.js";
|
|
1
2
|
import { detachHiddenInput } from "../field/hidden-input.js";
|
|
2
3
|
import { RadioGroup } from "./radio-group.js";
|
|
3
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -17,73 +18,78 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
17
18
|
* />
|
|
18
19
|
*/
|
|
19
20
|
var RadioGroupField = (t0) => {
|
|
20
|
-
const $ = c(
|
|
21
|
+
const $ = c(37);
|
|
21
22
|
const { label, description, errors, requiredness, optionalLabel, dirty, touched, pending, options, className, value, defaultValue, onValueChange, onBlur, name, disabled, readOnly } = t0;
|
|
22
23
|
const ids = RadioGroup.useIds();
|
|
23
24
|
const t1 = value !== void 0 && value !== null && value !== "";
|
|
24
25
|
let t2;
|
|
25
|
-
if ($[0] !==
|
|
26
|
-
t2 = /* @__PURE__ */ jsx(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
if ($[0] !== optionalLabel) {
|
|
27
|
+
t2 = /* @__PURE__ */ jsx(Field.Requiredness, { optionalLabel });
|
|
28
|
+
$[0] = optionalLabel;
|
|
29
|
+
$[1] = t2;
|
|
30
|
+
} else t2 = $[1];
|
|
31
|
+
let t3;
|
|
32
|
+
if ($[2] !== label || $[3] !== t2) {
|
|
33
|
+
t3 = /* @__PURE__ */ jsxs(RadioGroup.Legend, { children: [
|
|
34
|
+
label,
|
|
35
|
+
" ",
|
|
36
|
+
t2
|
|
37
|
+
] });
|
|
38
|
+
$[2] = label;
|
|
34
39
|
$[3] = t2;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const t4 = ids.controlId;
|
|
38
|
-
const t5 =
|
|
39
|
-
|
|
40
|
-
if ($[4] !== options) {
|
|
41
|
-
t6 = options.map(_temp);
|
|
42
|
-
$[4] = options;
|
|
43
|
-
$[5] = t6;
|
|
44
|
-
} else t6 = $[5];
|
|
40
|
+
$[4] = t3;
|
|
41
|
+
} else t3 = $[4];
|
|
42
|
+
const t4 = name ?? ids.controlId;
|
|
43
|
+
const t5 = ids.controlId;
|
|
44
|
+
const t6 = requiredness === "required";
|
|
45
45
|
let t7;
|
|
46
|
-
if ($[
|
|
47
|
-
t7 =
|
|
46
|
+
if ($[5] !== options) {
|
|
47
|
+
t7 = options.map(_temp);
|
|
48
|
+
$[5] = options;
|
|
49
|
+
$[6] = t7;
|
|
50
|
+
} else t7 = $[6];
|
|
51
|
+
let t8;
|
|
52
|
+
if ($[7] !== defaultValue || $[8] !== disabled || $[9] !== ids.controlId || $[10] !== onBlur || $[11] !== onValueChange || $[12] !== readOnly || $[13] !== t4 || $[14] !== t6 || $[15] !== t7 || $[16] !== value) {
|
|
53
|
+
t8 = /* @__PURE__ */ jsx(RadioGroup.Group, {
|
|
48
54
|
value,
|
|
49
55
|
defaultValue,
|
|
50
56
|
onValueChange,
|
|
51
57
|
onBlur,
|
|
52
|
-
name:
|
|
58
|
+
name: t4,
|
|
53
59
|
inputRef: detachHiddenInput,
|
|
54
|
-
id:
|
|
60
|
+
id: t5,
|
|
55
61
|
disabled,
|
|
56
62
|
readOnly,
|
|
57
|
-
required:
|
|
58
|
-
children:
|
|
63
|
+
required: t6,
|
|
64
|
+
children: t7
|
|
59
65
|
});
|
|
60
|
-
$[
|
|
61
|
-
$[
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
-
$[
|
|
67
|
-
$[13] = t5;
|
|
66
|
+
$[7] = defaultValue;
|
|
67
|
+
$[8] = disabled;
|
|
68
|
+
$[9] = ids.controlId;
|
|
69
|
+
$[10] = onBlur;
|
|
70
|
+
$[11] = onValueChange;
|
|
71
|
+
$[12] = readOnly;
|
|
72
|
+
$[13] = t4;
|
|
68
73
|
$[14] = t6;
|
|
69
|
-
$[15] =
|
|
70
|
-
$[16] =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
if ($[17] !== description) {
|
|
74
|
-
t8 = /* @__PURE__ */ jsx(RadioGroup.Description, { children: description });
|
|
75
|
-
$[17] = description;
|
|
76
|
-
$[18] = t8;
|
|
77
|
-
} else t8 = $[18];
|
|
74
|
+
$[15] = t7;
|
|
75
|
+
$[16] = value;
|
|
76
|
+
$[17] = t8;
|
|
77
|
+
} else t8 = $[17];
|
|
78
78
|
let t9;
|
|
79
|
-
if ($[
|
|
80
|
-
t9 = /* @__PURE__ */ jsx(RadioGroup.
|
|
81
|
-
$[
|
|
82
|
-
$[
|
|
83
|
-
} else t9 = $[
|
|
79
|
+
if ($[18] !== description) {
|
|
80
|
+
t9 = /* @__PURE__ */ jsx(RadioGroup.Description, { children: description });
|
|
81
|
+
$[18] = description;
|
|
82
|
+
$[19] = t9;
|
|
83
|
+
} else t9 = $[19];
|
|
84
84
|
let t10;
|
|
85
|
-
if ($[
|
|
86
|
-
t10 = /* @__PURE__ */
|
|
85
|
+
if ($[20] !== errors) {
|
|
86
|
+
t10 = /* @__PURE__ */ jsx(RadioGroup.Error, { children: errors });
|
|
87
|
+
$[20] = errors;
|
|
88
|
+
$[21] = t10;
|
|
89
|
+
} else t10 = $[21];
|
|
90
|
+
let t11;
|
|
91
|
+
if ($[22] !== className || $[23] !== dirty || $[24] !== disabled || $[25] !== errors || $[26] !== name || $[27] !== pending || $[28] !== readOnly || $[29] !== requiredness || $[30] !== t1 || $[31] !== t10 || $[32] !== t3 || $[33] !== t8 || $[34] !== t9 || $[35] !== touched) {
|
|
92
|
+
t11 = /* @__PURE__ */ jsxs(RadioGroup.Root, {
|
|
87
93
|
name,
|
|
88
94
|
className,
|
|
89
95
|
disabled,
|
|
@@ -95,34 +101,37 @@ var RadioGroupField = (t0) => {
|
|
|
95
101
|
pending,
|
|
96
102
|
filled: t1,
|
|
97
103
|
children: [
|
|
98
|
-
|
|
99
|
-
t7,
|
|
104
|
+
t3,
|
|
100
105
|
t8,
|
|
101
|
-
t9
|
|
106
|
+
t9,
|
|
107
|
+
t10
|
|
102
108
|
]
|
|
103
109
|
});
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
$[
|
|
108
|
-
$[
|
|
109
|
-
$[
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
} else
|
|
120
|
-
return
|
|
110
|
+
$[22] = className;
|
|
111
|
+
$[23] = dirty;
|
|
112
|
+
$[24] = disabled;
|
|
113
|
+
$[25] = errors;
|
|
114
|
+
$[26] = name;
|
|
115
|
+
$[27] = pending;
|
|
116
|
+
$[28] = readOnly;
|
|
117
|
+
$[29] = requiredness;
|
|
118
|
+
$[30] = t1;
|
|
119
|
+
$[31] = t10;
|
|
120
|
+
$[32] = t3;
|
|
121
|
+
$[33] = t8;
|
|
122
|
+
$[34] = t9;
|
|
123
|
+
$[35] = touched;
|
|
124
|
+
$[36] = t11;
|
|
125
|
+
} else t11 = $[36];
|
|
126
|
+
return t11;
|
|
121
127
|
};
|
|
122
128
|
function _temp(option) {
|
|
123
129
|
return /* @__PURE__ */ jsxs(RadioGroup.Item, {
|
|
124
130
|
disabled: option.disabled,
|
|
125
|
-
children: [/* @__PURE__ */ jsx(RadioGroup.Radio, {
|
|
131
|
+
children: [/* @__PURE__ */ jsx(RadioGroup.Radio, {
|
|
132
|
+
value: option.value,
|
|
133
|
+
children: /* @__PURE__ */ jsx(RadioGroup.Indicator, {})
|
|
134
|
+
}), option.label]
|
|
126
135
|
}, option.value);
|
|
127
136
|
}
|
|
128
137
|
export { RadioGroupField };
|
|
@@ -1,115 +1,167 @@
|
|
|
1
1
|
@layer kit.reset, kit.base, kit.components;
|
|
2
2
|
@layer kit.components {
|
|
3
|
-
.
|
|
3
|
+
._group_1ipzk_3 {
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
align-items: flex-start;
|
|
7
7
|
gap: var(--radio-group-gap, var(--sys-unit-2));
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
._item_1ipzk_9 {
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
flex: 0 0 auto;
|
|
12
12
|
align-items: center;
|
|
13
13
|
gap: var(--radio-group-item-gap, var(--sys-unit-6));
|
|
14
|
-
min-block-size: var(--sys-unit-20);
|
|
14
|
+
min-block-size: var(--radio-group-item-min-block-size, var(--sys-unit-20));
|
|
15
|
+
font: var(--radio-group-item-font, inherit);
|
|
15
16
|
cursor: pointer;
|
|
16
17
|
}
|
|
17
|
-
.
|
|
18
|
-
border-color: var(--sys-color-primary);
|
|
18
|
+
._item_1ipzk_9:hover ._radio_1ipzk_18 {
|
|
19
|
+
border-color: var(--checkbox-hover-border, var(--sys-color-primary));
|
|
19
20
|
}
|
|
20
|
-
:where([data-readonly], [data-disabled]) .
|
|
21
|
+
:where([data-readonly], [data-disabled]) ._item_1ipzk_9 {
|
|
21
22
|
cursor: default;
|
|
22
23
|
}
|
|
23
|
-
:where([data-readonly], [data-disabled]) .
|
|
24
|
-
border-color: var(--
|
|
25
|
-
}
|
|
26
|
-
.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
--
|
|
24
|
+
:where([data-readonly], [data-disabled]) ._item_1ipzk_9:hover ._radio_1ipzk_18:not([data-checked]) {
|
|
25
|
+
border-color: var(--_checkbox-border, var(--checkbox-border, var(--sys-color-border)));
|
|
26
|
+
}
|
|
27
|
+
._item_1ipzk_9[data-disabled]:not([data-disabled] ._item_1ipzk_9) {
|
|
28
|
+
opacity: var(--radio-group-item-disabled-opacity, 1);
|
|
29
|
+
}
|
|
30
|
+
._radio_1ipzk_18 {
|
|
31
|
+
--_checkbox-border: var(
|
|
32
|
+
--checkbox-border,
|
|
33
|
+
var(--sys-color-border)
|
|
34
|
+
);
|
|
35
|
+
--_checkbox-bg: var(
|
|
36
|
+
--checkbox-bg,
|
|
37
|
+
var(--sys-color-surface)
|
|
38
|
+
);
|
|
39
|
+
--_checkbox-fg: var(
|
|
40
|
+
--checkbox-fg,
|
|
41
|
+
var(--sys-color-on-primary)
|
|
42
|
+
);
|
|
43
|
+
--_checkbox-checked-bg: var(
|
|
44
|
+
--checkbox-checked-bg,
|
|
45
|
+
var(--sys-color-primary)
|
|
46
|
+
);
|
|
31
47
|
display: grid;
|
|
32
48
|
flex: 0 0 auto;
|
|
33
49
|
place-items: center;
|
|
34
50
|
box-sizing: border-box;
|
|
35
51
|
inline-size: var(--checkbox-size, var(--sys-unit-16));
|
|
36
52
|
block-size: var(--checkbox-size, var(--sys-unit-16));
|
|
37
|
-
border: 1px solid var(--
|
|
38
|
-
border-radius: var(--sys-radius-sm);
|
|
39
|
-
background: var(--
|
|
40
|
-
color: var(--
|
|
53
|
+
border: var(--checkbox-border-width, 1px) solid var(--_checkbox-border);
|
|
54
|
+
border-radius: var(--checkbox-radius, var(--sys-radius-sm));
|
|
55
|
+
background: var(--_checkbox-bg);
|
|
56
|
+
color: var(--_checkbox-fg);
|
|
41
57
|
}
|
|
42
58
|
@media not (prefers-reduced-motion) {
|
|
43
|
-
.
|
|
59
|
+
._radio_1ipzk_18 {
|
|
44
60
|
transition: background var(--sys-motion-instant) var(--sys-motion-standard), border-color var(--sys-motion-instant) var(--sys-motion-standard);
|
|
45
61
|
}
|
|
46
62
|
}
|
|
47
|
-
.
|
|
48
|
-
border-color: var(--sys-color-primary);
|
|
63
|
+
._radio_1ipzk_18:focus-visible {
|
|
64
|
+
border-color: var(--checkbox-focus-border, var(--sys-color-primary));
|
|
49
65
|
}
|
|
50
|
-
.
|
|
66
|
+
._radio_1ipzk_18 {
|
|
51
67
|
outline: 0 solid var(--sys-color-focus-ring);
|
|
52
68
|
outline-offset: var(--sys-focus-ring-offset);
|
|
53
69
|
}
|
|
54
|
-
.
|
|
70
|
+
._radio_1ipzk_18[data-focus-visible] {
|
|
55
71
|
outline-width: var(--sys-focus-ring-width);
|
|
56
72
|
}
|
|
57
|
-
.
|
|
73
|
+
._radio_1ipzk_18 {
|
|
58
74
|
position: relative;
|
|
59
|
-
border-radius: var(--sys-radius-circle);
|
|
60
|
-
}
|
|
61
|
-
.
|
|
62
|
-
--
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
--
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
--
|
|
81
|
-
|
|
75
|
+
border-radius: var(--radio-group-radio-radius, var(--sys-radius-circle));
|
|
76
|
+
}
|
|
77
|
+
._radio_1ipzk_18[data-invalid] {
|
|
78
|
+
--_checkbox-border: var(
|
|
79
|
+
--checkbox-invalid-border,
|
|
80
|
+
var(--sys-color-error-fg)
|
|
81
|
+
);
|
|
82
|
+
--_checkbox-bg: var(
|
|
83
|
+
--checkbox-invalid-bg,
|
|
84
|
+
var(--sys-color-error-bg)
|
|
85
|
+
);
|
|
86
|
+
--_checkbox-checked-bg: var(
|
|
87
|
+
--checkbox-invalid-checked-bg,
|
|
88
|
+
var(--sys-color-error-fg)
|
|
89
|
+
);
|
|
90
|
+
--_checkbox-fg: var(
|
|
91
|
+
--checkbox-invalid-fg,
|
|
92
|
+
var(--sys-color-error-bg)
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
._radio_1ipzk_18[data-readonly] {
|
|
96
|
+
--_checkbox-border: var(
|
|
97
|
+
--checkbox-readonly-border,
|
|
98
|
+
var(--sys-color-outline)
|
|
99
|
+
);
|
|
100
|
+
--_checkbox-bg: var(
|
|
101
|
+
--checkbox-readonly-bg,
|
|
102
|
+
var(--sys-color-surface-high)
|
|
103
|
+
);
|
|
104
|
+
--_checkbox-checked-bg: var(
|
|
105
|
+
--checkbox-readonly-checked-bg,
|
|
106
|
+
var(--sys-color-primary-container)
|
|
107
|
+
);
|
|
108
|
+
--_checkbox-fg: var(
|
|
109
|
+
--checkbox-readonly-fg,
|
|
110
|
+
var(--sys-color-on-primary-container)
|
|
111
|
+
);
|
|
112
|
+
border-style: var(--checkbox-readonly-border-style, dashed);
|
|
113
|
+
}
|
|
114
|
+
._radio_1ipzk_18[data-checked] {
|
|
115
|
+
--_checkbox-border: var(
|
|
116
|
+
--checkbox-checked-border,
|
|
117
|
+
var(--_checkbox-checked-bg)
|
|
118
|
+
);
|
|
119
|
+
--_checkbox-bg: var(--_checkbox-checked-bg);
|
|
120
|
+
}
|
|
121
|
+
._radio_1ipzk_18[data-disabled] {
|
|
122
|
+
--_checkbox-bg: var(
|
|
123
|
+
--checkbox-disabled-bg,
|
|
124
|
+
var(--sys-color-disabled-bg)
|
|
125
|
+
);
|
|
126
|
+
--_checkbox-checked-bg: var(
|
|
127
|
+
--checkbox-disabled-checked-bg,
|
|
128
|
+
var(--sys-color-disabled-bg)
|
|
129
|
+
);
|
|
130
|
+
--_checkbox-fg: var(
|
|
131
|
+
--checkbox-disabled-fg,
|
|
132
|
+
var(--sys-color-disabled-fg)
|
|
133
|
+
);
|
|
82
134
|
cursor: not-allowed;
|
|
83
135
|
}
|
|
84
|
-
.
|
|
136
|
+
._indicator_1ipzk_136 {
|
|
85
137
|
display: grid;
|
|
86
138
|
place-items: center;
|
|
87
139
|
}
|
|
88
|
-
.
|
|
89
|
-
inline-size: calc(var(--checkbox-size, var(--sys-unit-16)) * 0.7);
|
|
90
|
-
block-size: calc(var(--checkbox-size, var(--sys-unit-16)) * 0.7);
|
|
140
|
+
._indicator_1ipzk_136 svg {
|
|
141
|
+
inline-size: var(--checkbox-indicator-size, calc(var(--checkbox-size, var(--sys-unit-16)) * 0.7));
|
|
142
|
+
block-size: var(--checkbox-indicator-size, calc(var(--checkbox-size, var(--sys-unit-16)) * 0.7));
|
|
91
143
|
}
|
|
92
|
-
.
|
|
144
|
+
._indicator_1ipzk_136 {
|
|
93
145
|
opacity: 0;
|
|
94
146
|
scale: 0;
|
|
95
147
|
}
|
|
96
148
|
@media not (prefers-reduced-motion) {
|
|
97
|
-
.
|
|
149
|
+
._indicator_1ipzk_136 {
|
|
98
150
|
transition: opacity var(--sys-motion-instant) var(--sys-motion-standard), scale var(--sys-motion-instant) var(--sys-motion-standard);
|
|
99
151
|
}
|
|
100
152
|
}
|
|
101
|
-
.
|
|
102
|
-
inline-size: calc(var(--checkbox-size, var(--sys-unit-16)) * 0.4);
|
|
103
|
-
block-size: calc(var(--checkbox-size, var(--sys-unit-16)) * 0.4);
|
|
104
|
-
border-radius: var(--sys-radius-circle);
|
|
105
|
-
background: currentcolor;
|
|
153
|
+
._indicator_1ipzk_136 {
|
|
154
|
+
inline-size: var(--radio-group-indicator-size, calc(var(--checkbox-size, var(--sys-unit-16)) * 0.4));
|
|
155
|
+
block-size: var(--radio-group-indicator-size, calc(var(--checkbox-size, var(--sys-unit-16)) * 0.4));
|
|
156
|
+
border-radius: var(--radio-group-indicator-radius, var(--sys-radius-circle));
|
|
157
|
+
background: var(--radio-group-indicator-bg, currentcolor);
|
|
106
158
|
}
|
|
107
|
-
.
|
|
159
|
+
._indicator_1ipzk_136[data-checked] {
|
|
108
160
|
opacity: 1;
|
|
109
161
|
scale: 1;
|
|
110
162
|
}
|
|
111
163
|
@media not (prefers-reduced-motion) {
|
|
112
|
-
.
|
|
164
|
+
._indicator_1ipzk_136[data-checked] {
|
|
113
165
|
transition: opacity var(--sys-motion-instant) var(--sys-motion-standard), scale var(--sys-motion-short) var(--sys-motion-overshoot);
|
|
114
166
|
}
|
|
115
167
|
}
|
|
@@ -7,7 +7,20 @@ import { FieldsetLegend, FieldsetRoot, type FieldsetRootProps } from "../fieldse
|
|
|
7
7
|
export type RadioGroupRootProps = FieldsetRootProps;
|
|
8
8
|
declare const RadioGroupGroup: <TValue>({ className, ...props }: BaseRadioGroup.Props<TValue>) => ReactNode;
|
|
9
9
|
declare const RadioGroupItem: ({ className, ...props }: BaseField.Item.Props) => ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* One radio, which takes a `RadioGroup.Indicator` as its child.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* <RadioGroup.Radio value="direct"><RadioGroup.Indicator /></RadioGroup.Radio>
|
|
15
|
+
*/
|
|
10
16
|
declare const RadioGroupRadio: ({ className, ...props }: BaseRadio.Root.Props) => ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* The dot inside a radio, which pops in while it is chosen.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* <RadioGroup.Indicator />
|
|
22
|
+
*/
|
|
23
|
+
declare const RadioGroupIndicator: ({ className, keepMounted, ...props }: BaseRadio.Indicator.Props) => ReactNode;
|
|
11
24
|
/** The parts of a radio group. */
|
|
12
25
|
export type RadioGroupParts = Readonly<{
|
|
13
26
|
Root: typeof FieldsetRoot;
|
|
@@ -15,6 +28,7 @@ export type RadioGroupParts = Readonly<{
|
|
|
15
28
|
Group: typeof RadioGroupGroup;
|
|
16
29
|
Item: typeof RadioGroupItem;
|
|
17
30
|
Radio: typeof RadioGroupRadio;
|
|
31
|
+
Indicator: typeof RadioGroupIndicator;
|
|
18
32
|
Description: typeof Field.Description;
|
|
19
33
|
Error: typeof Field.Error;
|
|
20
34
|
useIds: typeof Field.useIds;
|
|
@@ -24,11 +38,13 @@ export type RadioGroupParts = Readonly<{
|
|
|
24
38
|
* its `Legend`. For the ordinary case, use `RadioGroupField`.
|
|
25
39
|
*
|
|
26
40
|
* @example
|
|
27
|
-
* <RadioGroup.Root filled={kind !== null}>
|
|
28
|
-
* <RadioGroup.Legend optionalLabel="optional"
|
|
41
|
+
* <RadioGroup.Root filled={kind !== null} requiredness="optional">
|
|
42
|
+
* <RadioGroup.Legend>Kind <Field.Requiredness optionalLabel="optional" /></RadioGroup.Legend>
|
|
29
43
|
* <RadioGroup.Group value={kind} onValueChange={setKind}>
|
|
30
44
|
* <RadioGroup.Item>
|
|
31
|
-
* <RadioGroup.Radio value="direct"
|
|
45
|
+
* <RadioGroup.Radio value="direct">
|
|
46
|
+
* <RadioGroup.Indicator />
|
|
47
|
+
* </RadioGroup.Radio>
|
|
32
48
|
* Direct
|
|
33
49
|
* </RadioGroup.Item>
|
|
34
50
|
* </RadioGroup.Group>
|
|
@@ -78,8 +78,14 @@ var RadioGroupItem = (t0) => {
|
|
|
78
78
|
} else t3 = $[8];
|
|
79
79
|
return t3;
|
|
80
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* One radio, which takes a `RadioGroup.Indicator` as its child.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* <RadioGroup.Radio value="direct"><RadioGroup.Indicator /></RadioGroup.Radio>
|
|
86
|
+
*/
|
|
81
87
|
var RadioGroupRadio = (t0) => {
|
|
82
|
-
const $ = c(
|
|
88
|
+
const $ = c(12);
|
|
83
89
|
let className;
|
|
84
90
|
let props;
|
|
85
91
|
if ($[0] !== t0) {
|
|
@@ -105,41 +111,77 @@ var RadioGroupRadio = (t0) => {
|
|
|
105
111
|
$[6] = t2;
|
|
106
112
|
} else t2 = $[6];
|
|
107
113
|
let t3;
|
|
108
|
-
if ($[7]
|
|
109
|
-
t3 = /* @__PURE__ */ jsx(Radio.
|
|
110
|
-
keepMounted: true,
|
|
111
|
-
className: radio_group_module_default.indicator
|
|
112
|
-
});
|
|
113
|
-
$[7] = t3;
|
|
114
|
-
} else t3 = $[7];
|
|
115
|
-
let t4;
|
|
116
|
-
if ($[8] !== focus.props || $[9] !== props || $[10] !== t1 || $[11] !== t2) {
|
|
117
|
-
t4 = /* @__PURE__ */ jsx(Radio.Root, {
|
|
114
|
+
if ($[7] !== focus.props || $[8] !== props || $[9] !== t1 || $[10] !== t2) {
|
|
115
|
+
t3 = /* @__PURE__ */ jsx(Radio.Root, {
|
|
118
116
|
className: t1,
|
|
119
117
|
"aria-readonly": void 0,
|
|
120
118
|
...t2,
|
|
121
119
|
...props,
|
|
122
|
-
...focus.props
|
|
123
|
-
children: t3
|
|
120
|
+
...focus.props
|
|
124
121
|
});
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
} else
|
|
131
|
-
return
|
|
122
|
+
$[7] = focus.props;
|
|
123
|
+
$[8] = props;
|
|
124
|
+
$[9] = t1;
|
|
125
|
+
$[10] = t2;
|
|
126
|
+
$[11] = t3;
|
|
127
|
+
} else t3 = $[11];
|
|
128
|
+
return t3;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* The dot inside a radio, which pops in while it is chosen.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* <RadioGroup.Indicator />
|
|
135
|
+
*/
|
|
136
|
+
var RadioGroupIndicator = (t0) => {
|
|
137
|
+
const $ = c(10);
|
|
138
|
+
let className;
|
|
139
|
+
let props;
|
|
140
|
+
let t1;
|
|
141
|
+
if ($[0] !== t0) {
|
|
142
|
+
({className, keepMounted: t1, ...props} = t0);
|
|
143
|
+
$[0] = t0;
|
|
144
|
+
$[1] = className;
|
|
145
|
+
$[2] = props;
|
|
146
|
+
$[3] = t1;
|
|
147
|
+
} else {
|
|
148
|
+
className = $[1];
|
|
149
|
+
props = $[2];
|
|
150
|
+
t1 = $[3];
|
|
151
|
+
}
|
|
152
|
+
const keepMounted = t1 === void 0 ? true : t1;
|
|
153
|
+
let t2;
|
|
154
|
+
if ($[4] !== className) {
|
|
155
|
+
t2 = clsx(radio_group_module_default.indicator, className);
|
|
156
|
+
$[4] = className;
|
|
157
|
+
$[5] = t2;
|
|
158
|
+
} else t2 = $[5];
|
|
159
|
+
let t3;
|
|
160
|
+
if ($[6] !== keepMounted || $[7] !== props || $[8] !== t2) {
|
|
161
|
+
t3 = /* @__PURE__ */ jsx(Radio.Indicator, {
|
|
162
|
+
keepMounted,
|
|
163
|
+
className: t2,
|
|
164
|
+
...props
|
|
165
|
+
});
|
|
166
|
+
$[6] = keepMounted;
|
|
167
|
+
$[7] = props;
|
|
168
|
+
$[8] = t2;
|
|
169
|
+
$[9] = t3;
|
|
170
|
+
} else t3 = $[9];
|
|
171
|
+
return t3;
|
|
132
172
|
};
|
|
133
173
|
/**
|
|
134
174
|
* The styled parts of a base-ui radio group. The `Root` is a fieldset named by
|
|
135
175
|
* its `Legend`. For the ordinary case, use `RadioGroupField`.
|
|
136
176
|
*
|
|
137
177
|
* @example
|
|
138
|
-
* <RadioGroup.Root filled={kind !== null}>
|
|
139
|
-
* <RadioGroup.Legend optionalLabel="optional"
|
|
178
|
+
* <RadioGroup.Root filled={kind !== null} requiredness="optional">
|
|
179
|
+
* <RadioGroup.Legend>Kind <Field.Requiredness optionalLabel="optional" /></RadioGroup.Legend>
|
|
140
180
|
* <RadioGroup.Group value={kind} onValueChange={setKind}>
|
|
141
181
|
* <RadioGroup.Item>
|
|
142
|
-
* <RadioGroup.Radio value="direct"
|
|
182
|
+
* <RadioGroup.Radio value="direct">
|
|
183
|
+
* <RadioGroup.Indicator />
|
|
184
|
+
* </RadioGroup.Radio>
|
|
143
185
|
* Direct
|
|
144
186
|
* </RadioGroup.Item>
|
|
145
187
|
* </RadioGroup.Group>
|
|
@@ -151,6 +193,7 @@ var RadioGroup$1 = {
|
|
|
151
193
|
Group: RadioGroupGroup,
|
|
152
194
|
Item: RadioGroupItem,
|
|
153
195
|
Radio: RadioGroupRadio,
|
|
196
|
+
Indicator: RadioGroupIndicator,
|
|
154
197
|
Description: Field$1.Description,
|
|
155
198
|
Error: Field$1.Error,
|
|
156
199
|
useIds: Field$1.useIds
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './radio-group.css';// src/components/radio-group-field/radio-group.module.scss
|
|
2
|
-
var group = "
|
|
3
|
-
var item = "
|
|
4
|
-
var radio = "
|
|
5
|
-
var indicator = "
|
|
2
|
+
var group = "_group_1ipzk_3";
|
|
3
|
+
var item = "_item_1ipzk_9";
|
|
4
|
+
var radio = "_radio_1ipzk_18";
|
|
5
|
+
var indicator = "_indicator_1ipzk_136";
|
|
6
6
|
var radio_group_module_default = {
|
|
7
7
|
group,
|
|
8
8
|
item,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ToggleGroup as BaseToggleGroup } from "@base-ui/react/toggle-group";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
-
import type
|
|
3
|
+
import { type FieldBlurHandler, type ChoiceOption, type FieldProps } from "../field/index.ts";
|
|
4
4
|
export type SegmentedControlFieldProps = FieldProps & Readonly<{
|
|
5
5
|
/** The choices, in the order they read. */
|
|
6
6
|
options: readonly ChoiceOption[];
|