@undefine-ui/design-system 3.8.1 → 3.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9265,8 +9265,8 @@ var RHFSwitch = ({
|
|
|
9265
9265
|
}
|
|
9266
9266
|
),
|
|
9267
9267
|
label: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_Stack6.default, { children: [
|
|
9268
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_Typography11.default, { variant: "
|
|
9269
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_Typography11.default, { variant: "
|
|
9268
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_Typography11.default, { variant: "h8", color: "text.header", fontWeight: 500, children: label }),
|
|
9269
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_Typography11.default, { variant: "bodyXs", color: "text.body", children: description })
|
|
9270
9270
|
] }),
|
|
9271
9271
|
sx: {
|
|
9272
9272
|
alignItems: description ? "flex-start" : "center",
|
|
@@ -9761,8 +9761,8 @@ var RHFRadioGroup = ({
|
|
|
9761
9761
|
}
|
|
9762
9762
|
),
|
|
9763
9763
|
label: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_Stack7.default, { children: [
|
|
9764
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_Typography12.default, { variant: "
|
|
9765
|
-
option?.description && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_Typography12.default, { variant: "
|
|
9764
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_Typography12.default, { variant: "h8", color: "text.header", fontWeight: 500, children: option.label }),
|
|
9765
|
+
option?.description && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_Typography12.default, { variant: "bodyXs", color: "text.body", children: option?.description })
|
|
9766
9766
|
] }),
|
|
9767
9767
|
sx: {
|
|
9768
9768
|
alignItems: option?.description ? "flex-start" : "center"
|
|
@@ -9838,6 +9838,7 @@ var RHFToggleButton = ({
|
|
|
9838
9838
|
options,
|
|
9839
9839
|
fullWidth,
|
|
9840
9840
|
slotProps,
|
|
9841
|
+
onValueChange,
|
|
9841
9842
|
sx,
|
|
9842
9843
|
...other
|
|
9843
9844
|
}) => {
|
|
@@ -9864,6 +9865,7 @@ var RHFToggleButton = ({
|
|
|
9864
9865
|
onChange: (_, newValue) => {
|
|
9865
9866
|
if (newValue !== null) {
|
|
9866
9867
|
field.onChange(newValue);
|
|
9868
|
+
onValueChange?.(newValue);
|
|
9867
9869
|
}
|
|
9868
9870
|
},
|
|
9869
9871
|
exclusive: true,
|
|
@@ -10106,8 +10108,8 @@ var RHFCheckbox = ({
|
|
|
10106
10108
|
}
|
|
10107
10109
|
),
|
|
10108
10110
|
label: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_Stack8.default, { children: [
|
|
10109
|
-
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_Typography13.default, { variant: "
|
|
10110
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_Typography13.default, { variant: "
|
|
10111
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_Typography13.default, { variant: "h8", color: "text.header", fontWeight: 500, children: label }),
|
|
10112
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_Typography13.default, { variant: "bodyXs", color: "text.body", children: description })
|
|
10111
10113
|
] }),
|
|
10112
10114
|
sx: {
|
|
10113
10115
|
alignItems: description ? "flex-start" : "center",
|