@pactor-app/ui 1.29.0 → 1.30.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.
|
@@ -4782,25 +4782,30 @@ function RadioGroup2({
|
|
|
4782
4782
|
),
|
|
4783
4783
|
style: inForm ? void 0 : style,
|
|
4784
4784
|
children: options.map((option, index) => {
|
|
4785
|
-
const
|
|
4786
|
-
const optionDisabled = disabled || option.disabled;
|
|
4785
|
+
const textId = `${controlId}-${index}`;
|
|
4786
|
+
const optionDisabled = disabled === true || option.disabled === true;
|
|
4787
4787
|
return /* @__PURE__ */ jsxs52("span", { className: "inline-flex items-center gap-2", children: [
|
|
4788
4788
|
/* @__PURE__ */ jsx74(
|
|
4789
4789
|
RadioGroupItem,
|
|
4790
4790
|
{
|
|
4791
|
-
id: optionId,
|
|
4792
4791
|
value: option.value,
|
|
4793
|
-
disabled: option.disabled
|
|
4792
|
+
disabled: option.disabled,
|
|
4793
|
+
"aria-labelledby": textId
|
|
4794
4794
|
}
|
|
4795
4795
|
),
|
|
4796
4796
|
/* @__PURE__ */ jsx74(
|
|
4797
|
-
"
|
|
4797
|
+
"span",
|
|
4798
4798
|
{
|
|
4799
|
-
|
|
4799
|
+
id: textId,
|
|
4800
4800
|
className: cn(
|
|
4801
4801
|
"text-sm leading-none font-medium",
|
|
4802
4802
|
optionDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"
|
|
4803
4803
|
),
|
|
4804
|
+
onClick: () => {
|
|
4805
|
+
if (!optionDisabled) {
|
|
4806
|
+
handleChange(option.value);
|
|
4807
|
+
}
|
|
4808
|
+
},
|
|
4804
4809
|
children: option.label
|
|
4805
4810
|
}
|
|
4806
4811
|
)
|
|
@@ -8411,25 +8411,30 @@ function RadioGroup2({
|
|
|
8411
8411
|
),
|
|
8412
8412
|
style: inForm ? void 0 : style,
|
|
8413
8413
|
children: options.map((option, index) => {
|
|
8414
|
-
const
|
|
8415
|
-
const optionDisabled = disabled || option.disabled;
|
|
8414
|
+
const textId = `${controlId}-${index}`;
|
|
8415
|
+
const optionDisabled = disabled === true || option.disabled === true;
|
|
8416
8416
|
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("span", { className: "inline-flex items-center gap-2", children: [
|
|
8417
8417
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8418
8418
|
RadioGroupItem,
|
|
8419
8419
|
{
|
|
8420
|
-
id: optionId,
|
|
8421
8420
|
value: option.value,
|
|
8422
|
-
disabled: option.disabled
|
|
8421
|
+
disabled: option.disabled,
|
|
8422
|
+
"aria-labelledby": textId
|
|
8423
8423
|
}
|
|
8424
8424
|
),
|
|
8425
8425
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8426
|
-
"
|
|
8426
|
+
"span",
|
|
8427
8427
|
{
|
|
8428
|
-
|
|
8428
|
+
id: textId,
|
|
8429
8429
|
className: cn(
|
|
8430
8430
|
"text-sm leading-none font-medium",
|
|
8431
8431
|
optionDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"
|
|
8432
8432
|
),
|
|
8433
|
+
onClick: () => {
|
|
8434
|
+
if (!optionDisabled) {
|
|
8435
|
+
handleChange(option.value);
|
|
8436
|
+
}
|
|
8437
|
+
},
|
|
8433
8438
|
children: option.label
|
|
8434
8439
|
}
|
|
8435
8440
|
)
|
package/dist/components/index.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -8450,25 +8450,30 @@ function RadioGroup2({
|
|
|
8450
8450
|
),
|
|
8451
8451
|
style: inForm ? void 0 : style,
|
|
8452
8452
|
children: options.map((option, index) => {
|
|
8453
|
-
const
|
|
8454
|
-
const optionDisabled = disabled || option.disabled;
|
|
8453
|
+
const textId = `${controlId}-${index}`;
|
|
8454
|
+
const optionDisabled = disabled === true || option.disabled === true;
|
|
8455
8455
|
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("span", { className: "inline-flex items-center gap-2", children: [
|
|
8456
8456
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8457
8457
|
RadioGroupItem,
|
|
8458
8458
|
{
|
|
8459
|
-
id: optionId,
|
|
8460
8459
|
value: option.value,
|
|
8461
|
-
disabled: option.disabled
|
|
8460
|
+
disabled: option.disabled,
|
|
8461
|
+
"aria-labelledby": textId
|
|
8462
8462
|
}
|
|
8463
8463
|
),
|
|
8464
8464
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8465
|
-
"
|
|
8465
|
+
"span",
|
|
8466
8466
|
{
|
|
8467
|
-
|
|
8467
|
+
id: textId,
|
|
8468
8468
|
className: cn(
|
|
8469
8469
|
"text-sm leading-none font-medium",
|
|
8470
8470
|
optionDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"
|
|
8471
8471
|
),
|
|
8472
|
+
onClick: () => {
|
|
8473
|
+
if (!optionDisabled) {
|
|
8474
|
+
handleChange(option.value);
|
|
8475
|
+
}
|
|
8476
|
+
},
|
|
8472
8477
|
children: option.label
|
|
8473
8478
|
}
|
|
8474
8479
|
)
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pactor-app/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.0",
|
|
4
4
|
"description": "Pactor UI kit (shadcn): the single built-in UI kit — vendored shadcn/ui components (Base UI primitives + cva + tailwind-merge + lucide-react), props contracts, interaction core (OverlayManager / UiBridge) and layouts, with build-time Tailwind v4 prebuilt styles.css (zero consumer-side Tailwind config)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pactor",
|
|
@@ -107,11 +107,11 @@
|
|
|
107
107
|
"react-resizable-panels": "^4.12.3",
|
|
108
108
|
"tailwind-merge": "^3.6.0",
|
|
109
109
|
"vaul": "^1.1.2",
|
|
110
|
-
"@pactor-app/core": "1.
|
|
111
|
-
"@pactor-app/
|
|
112
|
-
"@pactor-app/
|
|
113
|
-
"@pactor-app/router": "1.
|
|
114
|
-
"@pactor-app/runtime": "1.
|
|
110
|
+
"@pactor-app/core": "1.30.0",
|
|
111
|
+
"@pactor-app/markdown": "1.30.0",
|
|
112
|
+
"@pactor-app/permission": "1.30.0",
|
|
113
|
+
"@pactor-app/router": "1.30.0",
|
|
114
|
+
"@pactor-app/runtime": "1.30.0"
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"react": ">=18",
|