@cerberus-design/react 0.10.4-next-1e18006 → 0.10.4-next-580a32d

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.
Files changed (28) hide show
  1. package/build/legacy/components/ModalHeader.cjs +2 -2
  2. package/build/legacy/components/ModalHeader.cjs.map +1 -1
  3. package/build/legacy/components/Radio.cjs +27 -14
  4. package/build/legacy/components/Radio.cjs.map +1 -1
  5. package/build/legacy/context/confirm-modal.cjs +2 -2
  6. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  7. package/build/legacy/context/prompt-modal.cjs +26 -15
  8. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  9. package/build/legacy/index.cjs +53 -29
  10. package/build/legacy/index.cjs.map +1 -1
  11. package/build/modern/{chunk-U56OV7EK.js → chunk-BADJ7VVO.js} +26 -15
  12. package/build/modern/{chunk-U56OV7EK.js.map → chunk-BADJ7VVO.js.map} +1 -1
  13. package/build/modern/chunk-FTPZHG6J.js +46 -0
  14. package/build/modern/{chunk-LJYCFFX7.js.map → chunk-FTPZHG6J.js.map} +1 -1
  15. package/build/modern/{chunk-WLEX22KS.js → chunk-ULYQLKWA.js} +3 -3
  16. package/build/modern/{chunk-WLEX22KS.js.map → chunk-ULYQLKWA.js.map} +1 -1
  17. package/build/modern/{chunk-K2QH37AW.js → chunk-XFKPALXB.js} +2 -2
  18. package/build/modern/components/ModalHeader.js +1 -1
  19. package/build/modern/components/Radio.js +1 -1
  20. package/build/modern/context/confirm-modal.js +2 -2
  21. package/build/modern/context/prompt-modal.js +2 -2
  22. package/build/modern/index.js +4 -4
  23. package/package.json +3 -3
  24. package/src/components/ModalHeader.tsx +2 -2
  25. package/src/components/Radio.tsx +10 -1
  26. package/src/context/prompt-modal.tsx +8 -1
  27. package/build/modern/chunk-LJYCFFX7.js +0 -33
  28. /package/build/modern/{chunk-K2QH37AW.js.map → chunk-XFKPALXB.js.map} +0 -0
@@ -1177,8 +1177,8 @@ function ModalHeader(props) {
1177
1177
  props.className,
1178
1178
  (0, import_patterns8.vstack)({
1179
1179
  alignItems: "flex-start",
1180
- gap: "4",
1181
- mb: "8"
1180
+ gap: "md",
1181
+ mb: "md"
1182
1182
  })
1183
1183
  )
1184
1184
  }
@@ -1562,20 +1562,33 @@ function Radio(props) {
1562
1562
  const { children, size, ...nativeProps } = props;
1563
1563
  const { invalid, ...state } = useFieldContext();
1564
1564
  const styles = (0, import_recipes20.radio)({ size });
1565
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: (0, import_css26.cx)("group", (0, import_patterns11.hstack)(), styles.root), tabIndex: 0, children: [
1566
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1567
- "input",
1568
- {
1569
- ...nativeProps,
1570
- ...state,
1571
- ...invalid && { "aria-invalid": true },
1572
- className: (0, import_css26.cx)(nativeProps.className, styles.input),
1573
- tabIndex: -1,
1574
- type: "radio"
1575
- }
1576
- ),
1577
- children
1578
- ] });
1565
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1566
+ "div",
1567
+ {
1568
+ className: (0, import_css26.cx)(
1569
+ "group",
1570
+ (0, import_patterns11.hstack)({
1571
+ gap: "sm"
1572
+ }),
1573
+ styles.root
1574
+ ),
1575
+ tabIndex: 0,
1576
+ children: [
1577
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1578
+ "input",
1579
+ {
1580
+ ...nativeProps,
1581
+ ...state,
1582
+ ...invalid && { "aria-invalid": true },
1583
+ className: (0, import_css26.cx)(nativeProps.className, styles.input),
1584
+ tabIndex: -1,
1585
+ type: "radio"
1586
+ }
1587
+ ),
1588
+ children
1589
+ ]
1590
+ }
1591
+ );
1579
1592
  }
1580
1593
 
1581
1594
  // src/components/Select.tsx
@@ -2521,19 +2534,30 @@ function PromptModal(props) {
2521
2534
  mb: "8"
2522
2535
  }),
2523
2536
  children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Field, { invalid: !isValid, children: [
2524
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Label, { htmlFor: "confirm", size: "md", children: [
2525
- "Type",
2526
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2527
- "strong",
2528
- {
2529
- className: (0, import_css41.css)({
2530
- textTransform: "uppercase"
2531
- }),
2532
- children: content == null ? void 0 : content.key
2533
- }
2534
- ),
2535
- "to confirm"
2536
- ] }),
2537
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
2538
+ Label,
2539
+ {
2540
+ className: (0, import_css41.css)({
2541
+ gap: 1,
2542
+ justifyContent: "flex-start"
2543
+ }),
2544
+ htmlFor: "confirm",
2545
+ size: "md",
2546
+ children: [
2547
+ "Type",
2548
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2549
+ "strong",
2550
+ {
2551
+ className: (0, import_css41.css)({
2552
+ textTransform: "uppercase"
2553
+ }),
2554
+ children: content == null ? void 0 : content.key
2555
+ }
2556
+ ),
2557
+ "to confirm"
2558
+ ]
2559
+ }
2560
+ ),
2537
2561
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2538
2562
  Input,
2539
2563
  {