@mindlogic-ai/logician-ui 3.0.0-alpha.13 → 3.0.0-alpha.15

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 (95) hide show
  1. package/dist/components/Checkbox/Checkbox.d.ts +7 -2
  2. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  3. package/dist/components/Checkbox/Checkbox.js +7 -10
  4. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  5. package/dist/components/Checkbox/Checkbox.mjs +7 -10
  6. package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
  7. package/dist/components/Checkbox/Checkbox.types.d.ts +3 -2
  8. package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -1
  9. package/dist/components/Checkbox/CheckboxControl.d.ts +3 -0
  10. package/dist/components/Checkbox/CheckboxControl.d.ts.map +1 -0
  11. package/dist/components/Checkbox/CheckboxControl.js +13 -0
  12. package/dist/components/Checkbox/CheckboxControl.js.map +1 -0
  13. package/dist/components/Checkbox/CheckboxControl.mjs +11 -0
  14. package/dist/components/Checkbox/CheckboxControl.mjs.map +1 -0
  15. package/dist/components/Checkbox/CheckboxLabel.d.ts +3 -0
  16. package/dist/components/Checkbox/CheckboxLabel.d.ts.map +1 -0
  17. package/dist/components/Checkbox/CheckboxLabel.js +12 -0
  18. package/dist/components/Checkbox/CheckboxLabel.js.map +1 -0
  19. package/dist/components/Checkbox/CheckboxLabel.mjs +10 -0
  20. package/dist/components/Checkbox/CheckboxLabel.mjs.map +1 -0
  21. package/dist/components/Modal/ModalHeader.js +1 -1
  22. package/dist/components/Modal/ModalHeader.js.map +1 -1
  23. package/dist/components/Modal/ModalHeader.mjs +1 -1
  24. package/dist/components/Modal/ModalHeader.mjs.map +1 -1
  25. package/dist/components/Radio/Radio.d.ts +7 -3
  26. package/dist/components/Radio/Radio.d.ts.map +1 -1
  27. package/dist/components/Radio/Radio.js +7 -5
  28. package/dist/components/Radio/Radio.js.map +1 -1
  29. package/dist/components/Radio/Radio.mjs +7 -5
  30. package/dist/components/Radio/Radio.mjs.map +1 -1
  31. package/dist/components/Radio/Radio.types.d.ts +3 -4
  32. package/dist/components/Radio/Radio.types.d.ts.map +1 -1
  33. package/dist/components/Radio/RadioControl.d.ts +3 -0
  34. package/dist/components/Radio/RadioControl.d.ts.map +1 -0
  35. package/dist/components/Radio/RadioControl.js +13 -0
  36. package/dist/components/Radio/RadioControl.js.map +1 -0
  37. package/dist/components/Radio/RadioControl.mjs +11 -0
  38. package/dist/components/Radio/RadioControl.mjs.map +1 -0
  39. package/dist/components/Radio/RadioText.d.ts +3 -0
  40. package/dist/components/Radio/RadioText.d.ts.map +1 -0
  41. package/dist/components/Radio/RadioText.js +12 -0
  42. package/dist/components/Radio/RadioText.js.map +1 -0
  43. package/dist/components/Radio/RadioText.mjs +10 -0
  44. package/dist/components/Radio/RadioText.mjs.map +1 -0
  45. package/dist/components/Switch/Switch.d.ts +6 -4
  46. package/dist/components/Switch/Switch.d.ts.map +1 -1
  47. package/dist/components/Switch/Switch.js +9 -7
  48. package/dist/components/Switch/Switch.js.map +1 -1
  49. package/dist/components/Switch/Switch.mjs +9 -7
  50. package/dist/components/Switch/Switch.mjs.map +1 -1
  51. package/dist/components/Switch/Switch.types.d.ts +3 -2
  52. package/dist/components/Switch/Switch.types.d.ts.map +1 -1
  53. package/dist/components/Switch/SwitchControl.d.ts +3 -0
  54. package/dist/components/Switch/SwitchControl.d.ts.map +1 -0
  55. package/dist/components/Switch/SwitchControl.js +13 -0
  56. package/dist/components/Switch/SwitchControl.js.map +1 -0
  57. package/dist/components/Switch/SwitchControl.mjs +11 -0
  58. package/dist/components/Switch/SwitchControl.mjs.map +1 -0
  59. package/dist/components/Switch/SwitchLabel.d.ts +3 -0
  60. package/dist/components/Switch/SwitchLabel.d.ts.map +1 -0
  61. package/dist/components/Switch/SwitchLabel.js +12 -0
  62. package/dist/components/Switch/SwitchLabel.js.map +1 -0
  63. package/dist/components/Switch/SwitchLabel.mjs +10 -0
  64. package/dist/components/Switch/SwitchLabel.mjs.map +1 -0
  65. package/dist/components/Tabs/Tab/Tab.styles.d.ts +9 -0
  66. package/dist/components/Tabs/Tab/Tab.styles.d.ts.map +1 -1
  67. package/dist/components/Tabs/Tab/Tab.styles.js +9 -0
  68. package/dist/components/Tabs/Tab/Tab.styles.js.map +1 -1
  69. package/dist/components/Tabs/Tab/Tab.styles.mjs +9 -0
  70. package/dist/components/Tabs/Tab/Tab.styles.mjs.map +1 -1
  71. package/dist/components/Tabs/TabList/TabList.styles.d.ts +1 -0
  72. package/dist/components/Tabs/TabList/TabList.styles.d.ts.map +1 -1
  73. package/dist/components/Tabs/TabList/TabList.styles.js +1 -0
  74. package/dist/components/Tabs/TabList/TabList.styles.js.map +1 -1
  75. package/dist/components/Tabs/TabList/TabList.styles.mjs +1 -0
  76. package/dist/components/Tabs/TabList/TabList.styles.mjs.map +1 -1
  77. package/package.json +1 -1
  78. package/src/components/Checkbox/Checkbox.stories.tsx +70 -28
  79. package/src/components/Checkbox/Checkbox.tsx +16 -52
  80. package/src/components/Checkbox/Checkbox.types.ts +1 -1
  81. package/src/components/Checkbox/CheckboxControl.tsx +24 -0
  82. package/src/components/Checkbox/CheckboxLabel.tsx +8 -0
  83. package/src/components/Modal/ModalHeader.tsx +1 -1
  84. package/src/components/Radio/Radio.stories.tsx +90 -66
  85. package/src/components/Radio/Radio.tsx +16 -14
  86. package/src/components/Radio/Radio.types.ts +1 -4
  87. package/src/components/Radio/RadioControl.tsx +13 -0
  88. package/src/components/Radio/RadioText.tsx +8 -0
  89. package/src/components/Switch/Switch.stories.tsx +27 -14
  90. package/src/components/Switch/Switch.tsx +17 -25
  91. package/src/components/Switch/Switch.types.ts +1 -1
  92. package/src/components/Switch/SwitchControl.tsx +19 -0
  93. package/src/components/Switch/SwitchLabel.tsx +8 -0
  94. package/src/components/Tabs/Tab/Tab.styles.ts +9 -0
  95. package/src/components/Tabs/TabList/TabList.styles.ts +1 -0
@@ -1,3 +1,8 @@
1
- import { CheckboxProps } from './Checkbox.types';
2
- export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLLabelElement>>;
1
+ import { Checkbox as ChakraCheckbox } from '@chakra-ui/react';
2
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<ChakraCheckbox.RootProps & {
3
+ id?: string;
4
+ } & import("react").RefAttributes<HTMLLabelElement>> & {
5
+ Control: import("react").ForwardRefExoticComponent<ChakraCheckbox.ControlProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ Label: import("react").ForwardRefExoticComponent<Omit<ChakraCheckbox.LabelProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
7
+ };
3
8
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ,4GAgDpB,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAiB9D,eAAO,MAAM,QAAQ;;;;;CAGnB,CAAC"}
@@ -4,18 +4,15 @@
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var react = require('@chakra-ui/react');
7
- var focusRing = require('../../utils/focusRing.js');
7
+ var CheckboxControl = require('./CheckboxControl.js');
8
+ var CheckboxLabel = require('./CheckboxLabel.js');
8
9
 
9
- const Checkbox = React.forwardRef(({ id, size = 'sm', checked, disabled, invalid, onCheckedChange, children, cursor, ...controlRest }, ref) => {
10
- return (jsxRuntime.jsxs(react.Checkbox.Root, { ref: ref, size: size, checked: checked, disabled: disabled, invalid: invalid, cursor: cursor || (disabled ? 'not-allowed' : 'pointer'), onCheckedChange: onCheckedChange, children: [jsxRuntime.jsx(react.Checkbox.HiddenInput, { id: id }), jsxRuntime.jsx(react.Checkbox.Control, { borderRadius: "xs", borderColor: "gray.400", borderWidth: "1px", _checked: {
11
- bgColor: 'primary.main',
12
- borderColor: 'primary.main',
13
- }, _indeterminate: {
14
- bgColor: 'primary.main',
15
- borderColor: 'primary.main',
16
- }, cursor: "pointer", ...focusRing.focusRing, ...controlRest, children: jsxRuntime.jsx(react.Checkbox.Indicator, {}) }), children] }));
10
+ const CheckboxBase = React.forwardRef(({ id, size = 'sm', children, ...props }, ref) => (jsxRuntime.jsxs(react.Checkbox.Root, { ref: ref, size: size, cursor: "pointer", _disabled: { cursor: 'not-allowed' }, ...props, children: [jsxRuntime.jsx(react.Checkbox.HiddenInput, { id: id }), children] })));
11
+ CheckboxBase.displayName = 'Checkbox';
12
+ const Checkbox = Object.assign(CheckboxBase, {
13
+ Control: CheckboxControl.CheckboxControl,
14
+ Label: CheckboxLabel.CheckboxLabel,
17
15
  });
18
- Checkbox.displayName = 'Checkbox';
19
16
 
20
17
  exports.Checkbox = Checkbox;
21
18
  //# sourceMappingURL=Checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsxs","ChakraCheckbox","_jsx","focusRing"],"mappings":";;;;;;;;AAOO,MAAM,QAAQ,GAAGA,gBAAU,CAChC,CACE,EACE,EAAE,EACF,IAAI,GAAG,IAAI,EACX,OAAO,EACP,QAAQ,EACR,OAAO,EACP,eAAe,EACf,QAAQ,EACR,MAAM,EACN,GAAG,WAAW,EACf,EACD,GAAG,KACD;AACF,IAAA,QACEC,eAAA,CAACC,cAAc,CAAC,IAAI,EAAA,EAClB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,KAAK,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAC,EACxD,eAAe,EAAE,eAAe,EAAA,QAAA,EAAA,CAEhCC,cAAA,CAACD,cAAc,CAAC,WAAW,EAAA,EAAC,EAAE,EAAE,EAAE,EAAA,CAAI,EACtCC,cAAA,CAACD,cAAc,CAAC,OAAO,EAAA,EACrB,YAAY,EAAC,IAAI,EACjB,WAAW,EAAC,UAAU,EACtB,WAAW,EAAC,KAAK,EACjB,QAAQ,EAAE;AACR,oBAAA,OAAO,EAAE,cAAc;AACvB,oBAAA,WAAW,EAAE,cAAc;AAC5B,iBAAA,EACD,cAAc,EAAE;AACd,oBAAA,OAAO,EAAE,cAAc;AACvB,oBAAA,WAAW,EAAE,cAAc;AAC5B,iBAAA,EACD,MAAM,EAAC,SAAS,KACZE,mBAAS,EAAA,GACT,WAAW,EAAA,QAAA,EAEfD,cAAA,CAACD,cAAc,CAAC,SAAS,EAAA,EAAA,CAAG,EAAA,CACL,EACxB,QAAQ,CAAA,EAAA,CACW;AAE1B,CAAC;AAGH,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
1
+ {"version":3,"file":"Checkbox.js","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsxs","ChakraCheckbox","_jsx","CheckboxControl","CheckboxLabel"],"mappings":";;;;;;;;;AAOA,MAAM,YAAY,GAAGA,gBAAU,CAG7B,CAAC,EAAE,EAAE,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7CC,eAAA,CAACC,cAAc,CAAC,IAAI,EAAA,EAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAC,SAAS,EAAC,SAAS,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAA,GAAM,KAAK,EAAA,QAAA,EAAA,CACzGC,cAAA,CAACD,cAAc,CAAC,WAAW,EAAA,EAAC,EAAE,EAAE,EAAE,EAAA,CAAI,EACrC,QAAQ,CAAA,EAAA,CACW,CACvB,CAAC;AACF,YAAY,CAAC,WAAW,GAAG,UAAU;MAExB,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;AAClD,IAAA,OAAO,EAAEE,+BAAe;AACxB,IAAA,KAAK,EAAEC,2BAAa;AACrB,CAAA;;;;"}
@@ -2,18 +2,15 @@
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef } from 'react';
4
4
  import { Checkbox as Checkbox$1 } from '@chakra-ui/react';
5
- import { focusRing } from '../../utils/focusRing.mjs';
5
+ import { CheckboxControl } from './CheckboxControl.mjs';
6
+ import { CheckboxLabel } from './CheckboxLabel.mjs';
6
7
 
7
- const Checkbox = forwardRef(({ id, size = 'sm', checked, disabled, invalid, onCheckedChange, children, cursor, ...controlRest }, ref) => {
8
- return (jsxs(Checkbox$1.Root, { ref: ref, size: size, checked: checked, disabled: disabled, invalid: invalid, cursor: cursor || (disabled ? 'not-allowed' : 'pointer'), onCheckedChange: onCheckedChange, children: [jsx(Checkbox$1.HiddenInput, { id: id }), jsx(Checkbox$1.Control, { borderRadius: "xs", borderColor: "gray.400", borderWidth: "1px", _checked: {
9
- bgColor: 'primary.main',
10
- borderColor: 'primary.main',
11
- }, _indeterminate: {
12
- bgColor: 'primary.main',
13
- borderColor: 'primary.main',
14
- }, cursor: "pointer", ...focusRing, ...controlRest, children: jsx(Checkbox$1.Indicator, {}) }), children] }));
8
+ const CheckboxBase = forwardRef(({ id, size = 'sm', children, ...props }, ref) => (jsxs(Checkbox$1.Root, { ref: ref, size: size, cursor: "pointer", _disabled: { cursor: 'not-allowed' }, ...props, children: [jsx(Checkbox$1.HiddenInput, { id: id }), children] })));
9
+ CheckboxBase.displayName = 'Checkbox';
10
+ const Checkbox = Object.assign(CheckboxBase, {
11
+ Control: CheckboxControl,
12
+ Label: CheckboxLabel,
15
13
  });
16
- Checkbox.displayName = 'Checkbox';
17
14
 
18
15
  export { Checkbox };
19
16
  //# sourceMappingURL=Checkbox.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.mjs","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":[null],"names":["_jsxs","ChakraCheckbox","_jsx"],"mappings":";;;;;;AAOO,MAAM,QAAQ,GAAG,UAAU,CAChC,CACE,EACE,EAAE,EACF,IAAI,GAAG,IAAI,EACX,OAAO,EACP,QAAQ,EACR,OAAO,EACP,eAAe,EACf,QAAQ,EACR,MAAM,EACN,GAAG,WAAW,EACf,EACD,GAAG,KACD;AACF,IAAA,QACEA,IAAA,CAACC,UAAc,CAAC,IAAI,EAAA,EAClB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,KAAK,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAC,EACxD,eAAe,EAAE,eAAe,EAAA,QAAA,EAAA,CAEhCC,GAAA,CAACD,UAAc,CAAC,WAAW,EAAA,EAAC,EAAE,EAAE,EAAE,EAAA,CAAI,EACtCC,GAAA,CAACD,UAAc,CAAC,OAAO,EAAA,EACrB,YAAY,EAAC,IAAI,EACjB,WAAW,EAAC,UAAU,EACtB,WAAW,EAAC,KAAK,EACjB,QAAQ,EAAE;AACR,oBAAA,OAAO,EAAE,cAAc;AACvB,oBAAA,WAAW,EAAE,cAAc;AAC5B,iBAAA,EACD,cAAc,EAAE;AACd,oBAAA,OAAO,EAAE,cAAc;AACvB,oBAAA,WAAW,EAAE,cAAc;AAC5B,iBAAA,EACD,MAAM,EAAC,SAAS,KACZ,SAAS,EAAA,GACT,WAAW,EAAA,QAAA,EAEfC,GAAA,CAACD,UAAc,CAAC,SAAS,EAAA,EAAA,CAAG,EAAA,CACL,EACxB,QAAQ,CAAA,EAAA,CACW;AAE1B,CAAC;AAGH,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
1
+ {"version":3,"file":"Checkbox.mjs","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":[null],"names":["_jsxs","ChakraCheckbox","_jsx"],"mappings":";;;;;;;AAOA,MAAM,YAAY,GAAG,UAAU,CAG7B,CAAC,EAAE,EAAE,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC7CA,IAAA,CAACC,UAAc,CAAC,IAAI,EAAA,EAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAC,SAAS,EAAC,SAAS,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAA,GAAM,KAAK,EAAA,QAAA,EAAA,CACzGC,GAAA,CAACD,UAAc,CAAC,WAAW,EAAA,EAAC,EAAE,EAAE,EAAE,EAAA,CAAI,EACrC,QAAQ,CAAA,EAAA,CACW,CACvB,CAAC;AACF,YAAY,CAAC,WAAW,GAAG,UAAU;MAExB,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;AAClD,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,KAAK,EAAE,aAAa;AACrB,CAAA;;;;"}
@@ -1,4 +1,5 @@
1
1
  import { CheckboxRootProps as ChakraCheckboxRootProps } from '@chakra-ui/react';
2
- export interface CheckboxProps extends ChakraCheckboxRootProps {
3
- }
2
+ export type CheckboxProps = ChakraCheckboxRootProps & {
3
+ id?: string;
4
+ };
4
5
  //# sourceMappingURL=Checkbox.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.types.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhF,MAAM,WAAW,aAAc,SAAQ,uBAAuB;CAAG"}
1
+ {"version":3,"file":"Checkbox.types.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhF,MAAM,MAAM,aAAa,GAAG,uBAAuB,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Checkbox as ChakraCheckbox } from '@chakra-ui/react';
2
+ export declare const CheckboxControl: import("react").ForwardRefExoticComponent<ChakraCheckbox.ControlProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ //# sourceMappingURL=CheckboxControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxControl.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/CheckboxControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAwB,MAAM,kBAAkB,CAAC;AAIpF,eAAO,MAAM,eAAe,wHAiB3B,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var React = require('react');
6
+ var react = require('@chakra-ui/react');
7
+ var focusRing = require('../../utils/focusRing.js');
8
+
9
+ const CheckboxControl = React.forwardRef((props, ref) => (jsxRuntime.jsx(react.Checkbox.Control, { ref: ref, borderRadius: "xs", borderColor: "gray.400", borderWidth: "1px", _checked: { bgColor: 'primary.main', borderColor: 'primary.main' }, _indeterminate: { bgColor: 'primary.main', borderColor: 'primary.main' }, cursor: "pointer", _disabled: { cursor: 'not-allowed' }, ...focusRing.focusRing, ...props, children: jsxRuntime.jsx(react.Checkbox.Indicator, {}) })));
10
+ CheckboxControl.displayName = 'Checkbox.Control';
11
+
12
+ exports.CheckboxControl = CheckboxControl;
13
+ //# sourceMappingURL=CheckboxControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxControl.js","sources":["../../../src/components/Checkbox/CheckboxControl.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","ChakraCheckbox","focusRing"],"mappings":";;;;;;;;AAKO,MAAM,eAAe,GAAGA,gBAAU,CACvC,CAAC,KAAK,EAAE,GAAG,MACTC,cAAA,CAACC,cAAc,CAAC,OAAO,EAAA,EACrB,GAAG,EAAE,GAAG,EACR,YAAY,EAAC,IAAI,EACjB,WAAW,EAAC,UAAU,EACtB,WAAW,EAAC,KAAK,EACjB,QAAQ,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,EAClE,cAAc,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,EACxE,MAAM,EAAC,SAAS,EAChB,SAAS,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAA,GAChCC,mBAAS,EAAA,GACT,KAAK,EAAA,QAAA,EAETF,cAAA,CAACC,cAAc,CAAC,SAAS,KAAG,EAAA,CACL,CAC1B;AAEH,eAAe,CAAC,WAAW,GAAG,kBAAkB;;;;"}
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
4
+ import { Checkbox } from '@chakra-ui/react';
5
+ import { focusRing } from '../../utils/focusRing.mjs';
6
+
7
+ const CheckboxControl = forwardRef((props, ref) => (jsx(Checkbox.Control, { ref: ref, borderRadius: "xs", borderColor: "gray.400", borderWidth: "1px", _checked: { bgColor: 'primary.main', borderColor: 'primary.main' }, _indeterminate: { bgColor: 'primary.main', borderColor: 'primary.main' }, cursor: "pointer", _disabled: { cursor: 'not-allowed' }, ...focusRing, ...props, children: jsx(Checkbox.Indicator, {}) })));
8
+ CheckboxControl.displayName = 'Checkbox.Control';
9
+
10
+ export { CheckboxControl };
11
+ //# sourceMappingURL=CheckboxControl.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxControl.mjs","sources":["../../../src/components/Checkbox/CheckboxControl.tsx"],"sourcesContent":[null],"names":["_jsx","ChakraCheckbox"],"mappings":";;;;;;AAKO,MAAM,eAAe,GAAG,UAAU,CACvC,CAAC,KAAK,EAAE,GAAG,MACTA,GAAA,CAACC,QAAc,CAAC,OAAO,EAAA,EACrB,GAAG,EAAE,GAAG,EACR,YAAY,EAAC,IAAI,EACjB,WAAW,EAAC,UAAU,EACtB,WAAW,EAAC,KAAK,EACjB,QAAQ,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,EAClE,cAAc,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,EACxE,MAAM,EAAC,SAAS,EAChB,SAAS,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAA,GAChC,SAAS,EAAA,GACT,KAAK,EAAA,QAAA,EAETD,GAAA,CAACC,QAAc,CAAC,SAAS,KAAG,EAAA,CACL,CAC1B;AAEH,eAAe,CAAC,WAAW,GAAG,kBAAkB;;;;"}
@@ -0,0 +1,3 @@
1
+ import { Checkbox as ChakraCheckbox } from '@chakra-ui/react';
2
+ export declare const CheckboxLabel: import("react").ForwardRefExoticComponent<Omit<ChakraCheckbox.LabelProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
3
+ //# sourceMappingURL=CheckboxLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxLabel.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/CheckboxLabel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE9D,eAAO,MAAM,aAAa,iLAGuD,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var React = require('react');
6
+ var react = require('@chakra-ui/react');
7
+
8
+ const CheckboxLabel = React.forwardRef((props, ref) => jsxRuntime.jsx(react.Checkbox.Label, { ref: ref, cursor: "inherit", ...props }));
9
+ CheckboxLabel.displayName = 'Checkbox.Label';
10
+
11
+ exports.CheckboxLabel = CheckboxLabel;
12
+ //# sourceMappingURL=CheckboxLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxLabel.js","sources":["../../../src/components/Checkbox/CheckboxLabel.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","ChakraCheckbox"],"mappings":";;;;;;;AAGO,MAAM,aAAa,GAAGA,gBAAU,CAGrC,CAAC,KAAK,EAAE,GAAG,KAAKC,cAAA,CAACC,cAAc,CAAC,KAAK,EAAA,EAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAC,SAAS,EAAA,GAAK,KAAK,EAAA,CAAI;AAChF,aAAa,CAAC,WAAW,GAAG,gBAAgB;;;;"}
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
4
+ import { Checkbox } from '@chakra-ui/react';
5
+
6
+ const CheckboxLabel = forwardRef((props, ref) => jsx(Checkbox.Label, { ref: ref, cursor: "inherit", ...props }));
7
+ CheckboxLabel.displayName = 'Checkbox.Label';
8
+
9
+ export { CheckboxLabel };
10
+ //# sourceMappingURL=CheckboxLabel.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxLabel.mjs","sources":["../../../src/components/Checkbox/CheckboxLabel.tsx"],"sourcesContent":[null],"names":["_jsx","ChakraCheckbox"],"mappings":";;;;;AAGO,MAAM,aAAa,GAAG,UAAU,CAGrC,CAAC,KAAK,EAAE,GAAG,KAAKA,GAAA,CAACC,QAAc,CAAC,KAAK,EAAA,EAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAC,SAAS,EAAA,GAAK,KAAK,EAAA,CAAI;AAChF,aAAa,CAAC,WAAW,GAAG,gBAAgB;;;;"}
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
5
5
  var react = require('@chakra-ui/react');
6
6
 
7
7
  const ModalHeader = ({ ...rest }) => {
8
- return jsxRuntime.jsx(react.Dialog.Header, { textStyle: "h4", ...rest });
8
+ return jsxRuntime.jsx(react.Dialog.Header, { textStyle: "h4", px: 4, pt: 4, pb: 0, ...rest });
9
9
  };
10
10
 
11
11
  exports.ModalHeader = ModalHeader;
@@ -1 +1 @@
1
- {"version":3,"file":"ModalHeader.js","sources":["../../../src/components/Modal/ModalHeader.tsx"],"sourcesContent":[null],"names":["_jsx","Dialog"],"mappings":";;;;;;AAGO,MAAM,WAAW,GAAG,CAAC,EAAE,GAAG,IAAI,EAAsB,KAAI;IAC7D,OAAOA,cAAA,CAACC,YAAM,CAAC,MAAM,EAAA,EAAC,SAAS,EAAC,IAAI,EAAA,GAAK,IAAI,EAAA,CAAI;AACnD;;;;"}
1
+ {"version":3,"file":"ModalHeader.js","sources":["../../../src/components/Modal/ModalHeader.tsx"],"sourcesContent":[null],"names":["_jsx","Dialog"],"mappings":";;;;;;AAGO,MAAM,WAAW,GAAG,CAAC,EAAE,GAAG,IAAI,EAAsB,KAAI;IAC7D,OAAOA,cAAA,CAACC,YAAM,CAAC,MAAM,IAAC,SAAS,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAA,GAAM,IAAI,EAAA,CAAI;AACxE;;;;"}
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { Dialog } from '@chakra-ui/react';
4
4
 
5
5
  const ModalHeader = ({ ...rest }) => {
6
- return jsx(Dialog.Header, { textStyle: "h4", ...rest });
6
+ return jsx(Dialog.Header, { textStyle: "h4", px: 4, pt: 4, pb: 0, ...rest });
7
7
  };
8
8
 
9
9
  export { ModalHeader };
@@ -1 +1 @@
1
- {"version":3,"file":"ModalHeader.mjs","sources":["../../../src/components/Modal/ModalHeader.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;AAGO,MAAM,WAAW,GAAG,CAAC,EAAE,GAAG,IAAI,EAAsB,KAAI;IAC7D,OAAOA,GAAA,CAAC,MAAM,CAAC,MAAM,EAAA,EAAC,SAAS,EAAC,IAAI,EAAA,GAAK,IAAI,EAAA,CAAI;AACnD;;;;"}
1
+ {"version":3,"file":"ModalHeader.mjs","sources":["../../../src/components/Modal/ModalHeader.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;AAGO,MAAM,WAAW,GAAG,CAAC,EAAE,GAAG,IAAI,EAAsB,KAAI;IAC7D,OAAOA,GAAA,CAAC,MAAM,CAAC,MAAM,IAAC,SAAS,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAA,GAAM,IAAI,EAAA,CAAI;AACxE;;;;"}
@@ -1,4 +1,8 @@
1
- import React from 'react';
2
- import { RadioProps } from './Radio.types';
3
- export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
1
+ import { RadioGroup } from '@chakra-ui/react';
2
+ export declare const Radio: import("react").ForwardRefExoticComponent<RadioGroup.ItemProps & {
3
+ id?: string;
4
+ } & import("react").RefAttributes<HTMLDivElement>> & {
5
+ Control: import("react").ForwardRefExoticComponent<RadioGroup.ItemControlProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ Text: import("react").ForwardRefExoticComponent<Omit<RadioGroup.ItemTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
7
+ };
4
8
  //# sourceMappingURL=Radio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,eAAO,MAAM,KAAK,qFAUhB,CAAC"}
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAiB9C,eAAO,MAAM,KAAK;;;;;CAGhB,CAAC"}
@@ -4,13 +4,15 @@
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var react = require('@chakra-ui/react');
7
- var focusRing = require('../../utils/focusRing.js');
7
+ var RadioControl = require('./RadioControl.js');
8
+ var RadioText = require('./RadioText.js');
8
9
 
9
- const Radio = React.forwardRef((props, ref) => {
10
- const { children, inputProps, rootRef, ...rest } = props;
11
- return (jsxRuntime.jsxs(react.RadioGroup.Item, { ref: rootRef, ...rest, children: [jsxRuntime.jsx(react.RadioGroup.ItemHiddenInput, { ref: ref, ...inputProps }), jsxRuntime.jsx(react.RadioGroup.ItemIndicator, { ...focusRing.focusRing }), children && jsxRuntime.jsx(react.RadioGroup.ItemText, { children: children })] }));
10
+ const RadioBase = React.forwardRef(({ id, children, ...props }, ref) => (jsxRuntime.jsxs(react.RadioGroup.Item, { ref: ref, cursor: "pointer", _disabled: { cursor: 'not-allowed' }, ...props, children: [jsxRuntime.jsx(react.RadioGroup.ItemHiddenInput, { id: id }), children] })));
11
+ RadioBase.displayName = 'Radio';
12
+ const Radio = Object.assign(RadioBase, {
13
+ Control: RadioControl.RadioControl,
14
+ Text: RadioText.RadioText,
12
15
  });
13
- Radio.displayName = 'Radio';
14
16
 
15
17
  exports.Radio = Radio;
16
18
  //# sourceMappingURL=Radio.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.js","sources":["../../../src/components/Radio/Radio.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsxs","RadioGroup","_jsx","focusRing"],"mappings":";;;;;;;;AAOO,MAAM,KAAK,GAAGA,gBAAU,CAA+B,CAAC,KAAK,EAAE,GAAG,KAAI;AAC3E,IAAA,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAExD,IAAA,QACEC,eAAA,CAACC,gBAAU,CAAC,IAAI,EAAA,EAAC,GAAG,EAAE,OAAO,KAAM,IAAI,EAAA,QAAA,EAAA,CACrCC,eAACD,gBAAU,CAAC,eAAe,EAAA,EAAC,GAAG,EAAE,GAAG,EAAA,GAAM,UAAU,EAAA,CAAI,EACxDC,eAACD,gBAAU,CAAC,aAAa,EAAA,EAAA,GAAKE,mBAAS,GAAI,EAC1C,QAAQ,IAAID,cAAA,CAACD,gBAAU,CAAC,QAAQ,EAAA,EAAA,QAAA,EAAE,QAAQ,EAAA,CAAuB,CAAA,EAAA,CAClD;AAEtB,CAAC;AAED,KAAK,CAAC,WAAW,GAAG,OAAO;;;;"}
1
+ {"version":3,"file":"Radio.js","sources":["../../../src/components/Radio/Radio.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsxs","RadioGroup","_jsx","RadioControl","RadioText"],"mappings":";;;;;;;;;AAOA,MAAM,SAAS,GAAGA,gBAAU,CAG1B,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAChCC,eAAA,CAACC,gBAAU,CAAC,IAAI,EAAA,EAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAC,SAAS,EAAC,SAAS,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAA,GAAM,KAAK,EAAA,QAAA,EAAA,CACzFC,cAAA,CAACD,gBAAU,CAAC,eAAe,EAAA,EAAC,EAAE,EAAE,EAAE,EAAA,CAAI,EACrC,QAAQ,CAAA,EAAA,CACO,CACnB,CAAC;AACF,SAAS,CAAC,WAAW,GAAG,OAAO;MAElB,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;AAC5C,IAAA,OAAO,EAAEE,yBAAY;AACrB,IAAA,IAAI,EAAEC,mBAAS;AAChB,CAAA;;;;"}
@@ -2,13 +2,15 @@
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef } from 'react';
4
4
  import { RadioGroup } from '@chakra-ui/react';
5
- import { focusRing } from '../../utils/focusRing.mjs';
5
+ import { RadioControl } from './RadioControl.mjs';
6
+ import { RadioText } from './RadioText.mjs';
6
7
 
7
- const Radio = forwardRef((props, ref) => {
8
- const { children, inputProps, rootRef, ...rest } = props;
9
- return (jsxs(RadioGroup.Item, { ref: rootRef, ...rest, children: [jsx(RadioGroup.ItemHiddenInput, { ref: ref, ...inputProps }), jsx(RadioGroup.ItemIndicator, { ...focusRing }), children && jsx(RadioGroup.ItemText, { children: children })] }));
8
+ const RadioBase = forwardRef(({ id, children, ...props }, ref) => (jsxs(RadioGroup.Item, { ref: ref, cursor: "pointer", _disabled: { cursor: 'not-allowed' }, ...props, children: [jsx(RadioGroup.ItemHiddenInput, { id: id }), children] })));
9
+ RadioBase.displayName = 'Radio';
10
+ const Radio = Object.assign(RadioBase, {
11
+ Control: RadioControl,
12
+ Text: RadioText,
10
13
  });
11
- Radio.displayName = 'Radio';
12
14
 
13
15
  export { Radio };
14
16
  //# sourceMappingURL=Radio.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.mjs","sources":["../../../src/components/Radio/Radio.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;AAOO,MAAM,KAAK,GAAG,UAAU,CAA+B,CAAC,KAAK,EAAE,GAAG,KAAI;AAC3E,IAAA,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAExD,IAAA,QACEA,IAAA,CAAC,UAAU,CAAC,IAAI,EAAA,EAAC,GAAG,EAAE,OAAO,KAAM,IAAI,EAAA,QAAA,EAAA,CACrCC,IAAC,UAAU,CAAC,eAAe,EAAA,EAAC,GAAG,EAAE,GAAG,EAAA,GAAM,UAAU,EAAA,CAAI,EACxDA,IAAC,UAAU,CAAC,aAAa,EAAA,EAAA,GAAK,SAAS,GAAI,EAC1C,QAAQ,IAAIA,GAAA,CAAC,UAAU,CAAC,QAAQ,EAAA,EAAA,QAAA,EAAE,QAAQ,EAAA,CAAuB,CAAA,EAAA,CAClD;AAEtB,CAAC;AAED,KAAK,CAAC,WAAW,GAAG,OAAO;;;;"}
1
+ {"version":3,"file":"Radio.mjs","sources":["../../../src/components/Radio/Radio.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;AAOA,MAAM,SAAS,GAAG,UAAU,CAG1B,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAChCA,IAAA,CAAC,UAAU,CAAC,IAAI,EAAA,EAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAC,SAAS,EAAC,SAAS,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAA,GAAM,KAAK,EAAA,QAAA,EAAA,CACzFC,GAAA,CAAC,UAAU,CAAC,eAAe,EAAA,EAAC,EAAE,EAAE,EAAE,EAAA,CAAI,EACrC,QAAQ,CAAA,EAAA,CACO,CACnB,CAAC;AACF,SAAS,CAAC,WAAW,GAAG,OAAO;MAElB,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;AAC5C,IAAA,OAAO,EAAE,YAAY;AACrB,IAAA,IAAI,EAAE,SAAS;AAChB,CAAA;;;;"}
@@ -1,6 +1,5 @@
1
1
  import { RadioGroup } from '@chakra-ui/react';
2
- export interface RadioProps extends RadioGroup.ItemProps {
3
- rootRef?: React.RefObject<HTMLDivElement | null>;
4
- inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
5
- }
2
+ export type RadioProps = RadioGroup.ItemProps & {
3
+ id?: string;
4
+ };
6
5
  //# sourceMappingURL=Radio.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.types.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,WAAW,UAAW,SAAQ,UAAU,CAAC,SAAS;IACtD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACjD,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;CAC1D"}
1
+ {"version":3,"file":"Radio.types.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { RadioGroup } from '@chakra-ui/react';
2
+ export declare const RadioControl: import("react").ForwardRefExoticComponent<RadioGroup.ItemControlProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ //# sourceMappingURL=RadioControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioControl.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/RadioControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAA8B,MAAM,kBAAkB,CAAC;AAI1E,eAAO,MAAM,YAAY,wHAMxB,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var React = require('react');
6
+ var react = require('@chakra-ui/react');
7
+ var focusRing = require('../../utils/focusRing.js');
8
+
9
+ const RadioControl = React.forwardRef((props, ref) => (jsxRuntime.jsx(react.RadioGroup.ItemControl, { ref: ref, ...focusRing.focusRing, ...props, children: jsxRuntime.jsx(react.RadioGroup.ItemIndicator, {}) })));
10
+ RadioControl.displayName = 'Radio.Control';
11
+
12
+ exports.RadioControl = RadioControl;
13
+ //# sourceMappingURL=RadioControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioControl.js","sources":["../../../src/components/Radio/RadioControl.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","RadioGroup","focusRing"],"mappings":";;;;;;;;AAKO,MAAM,YAAY,GAAGA,gBAAU,CACpC,CAAC,KAAK,EAAE,GAAG,MACTC,eAACC,gBAAU,CAAC,WAAW,EAAA,EAAC,GAAG,EAAE,GAAG,EAAA,GAAMC,mBAAS,KAAM,KAAK,EAAA,QAAA,EACxDF,cAAA,CAACC,gBAAU,CAAC,aAAa,EAAA,EAAA,CAAG,EAAA,CACL,CAC1B;AAEH,YAAY,CAAC,WAAW,GAAG,eAAe;;;;"}
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
4
+ import { RadioGroup } from '@chakra-ui/react';
5
+ import { focusRing } from '../../utils/focusRing.mjs';
6
+
7
+ const RadioControl = forwardRef((props, ref) => (jsx(RadioGroup.ItemControl, { ref: ref, ...focusRing, ...props, children: jsx(RadioGroup.ItemIndicator, {}) })));
8
+ RadioControl.displayName = 'Radio.Control';
9
+
10
+ export { RadioControl };
11
+ //# sourceMappingURL=RadioControl.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioControl.mjs","sources":["../../../src/components/Radio/RadioControl.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAKO,MAAM,YAAY,GAAG,UAAU,CACpC,CAAC,KAAK,EAAE,GAAG,MACTA,IAAC,UAAU,CAAC,WAAW,EAAA,EAAC,GAAG,EAAE,GAAG,EAAA,GAAM,SAAS,KAAM,KAAK,EAAA,QAAA,EACxDA,GAAA,CAAC,UAAU,CAAC,aAAa,EAAA,EAAA,CAAG,EAAA,CACL,CAC1B;AAEH,YAAY,CAAC,WAAW,GAAG,eAAe;;;;"}
@@ -0,0 +1,3 @@
1
+ import { RadioGroup } from '@chakra-ui/react';
2
+ export declare const RadioText: import("react").ForwardRefExoticComponent<Omit<RadioGroup.ItemTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
3
+ //# sourceMappingURL=RadioText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioText.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/RadioText.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,eAAO,MAAM,SAAS,oLAG0D,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var React = require('react');
6
+ var react = require('@chakra-ui/react');
7
+
8
+ const RadioText = React.forwardRef((props, ref) => jsxRuntime.jsx(react.RadioGroup.ItemText, { ref: ref, cursor: "inherit", ...props }));
9
+ RadioText.displayName = 'Radio.Text';
10
+
11
+ exports.RadioText = RadioText;
12
+ //# sourceMappingURL=RadioText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioText.js","sources":["../../../src/components/Radio/RadioText.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","RadioGroup"],"mappings":";;;;;;;AAGO,MAAM,SAAS,GAAGA,gBAAU,CAGjC,CAAC,KAAK,EAAE,GAAG,KAAKC,cAAA,CAACC,gBAAU,CAAC,QAAQ,EAAA,EAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAC,SAAS,EAAA,GAAK,KAAK,EAAA,CAAI;AAC/E,SAAS,CAAC,WAAW,GAAG,YAAY;;;;"}
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
4
+ import { RadioGroup } from '@chakra-ui/react';
5
+
6
+ const RadioText = forwardRef((props, ref) => jsx(RadioGroup.ItemText, { ref: ref, cursor: "inherit", ...props }));
7
+ RadioText.displayName = 'Radio.Text';
8
+
9
+ export { RadioText };
10
+ //# sourceMappingURL=RadioText.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioText.mjs","sources":["../../../src/components/Radio/RadioText.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;AAGO,MAAM,SAAS,GAAG,UAAU,CAGjC,CAAC,KAAK,EAAE,GAAG,KAAKA,GAAA,CAAC,UAAU,CAAC,QAAQ,EAAA,EAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAC,SAAS,EAAA,GAAK,KAAK,EAAA,CAAI;AAC/E,SAAS,CAAC,WAAW,GAAG,YAAY;;;;"}
@@ -1,6 +1,8 @@
1
- import { SwitchProps } from './Switch.types';
2
- export declare const Switch: {
3
- ({ checked, disabled, ...rest }: SwitchProps): import("react/jsx-runtime").JSX.Element;
4
- displayName: string;
1
+ import { Switch as ChakraSwitch } from '@chakra-ui/react';
2
+ export declare const Switch: import("react").ForwardRefExoticComponent<ChakraSwitch.RootProps & {
3
+ id?: string;
4
+ } & import("react").RefAttributes<HTMLLabelElement>> & {
5
+ Control: import("react").ForwardRefExoticComponent<ChakraSwitch.ControlProps & import("react").RefAttributes<HTMLSpanElement>>;
6
+ Label: import("react").ForwardRefExoticComponent<Omit<ChakraSwitch.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
5
7
  };
6
8
  //# sourceMappingURL=Switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,eAAO,MAAM,MAAM;qCAAoC,WAAW;;CAoBjE,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiB1D,eAAO,MAAM,MAAM;;;;;CAGjB,CAAC"}
@@ -2,15 +2,17 @@
2
2
  'use strict';
3
3
 
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
+ var React = require('react');
5
6
  var react = require('@chakra-ui/react');
6
- var focusRing = require('../../utils/focusRing.js');
7
+ var SwitchControl = require('./SwitchControl.js');
8
+ var SwitchLabel = require('./SwitchLabel.js');
7
9
 
8
- const Switch = ({ checked, disabled, ...rest }) => {
9
- return (jsxRuntime.jsxs(react.Switch.Root, { colorPalette: "primary", checked: checked, disabled: disabled, ...rest, children: [jsxRuntime.jsx(react.Switch.HiddenInput, {}), jsxRuntime.jsx(react.Switch.Control, { bg: "gray.200", _checked: {
10
- bg: 'primary.main',
11
- }, ...focusRing.focusRing, children: jsxRuntime.jsx(react.Switch.Thumb, {}) })] }));
12
- };
13
- Switch.displayName = 'Switch';
10
+ const SwitchBase = React.forwardRef(({ id, children, ...props }, ref) => (jsxRuntime.jsxs(react.Switch.Root, { ref: ref, colorPalette: "primary", cursor: "pointer", _disabled: { cursor: 'not-allowed' }, ...props, children: [jsxRuntime.jsx(react.Switch.HiddenInput, { id: id }), children] })));
11
+ SwitchBase.displayName = 'Switch';
12
+ const Switch = Object.assign(SwitchBase, {
13
+ Control: SwitchControl.SwitchControl,
14
+ Label: SwitchLabel.SwitchLabel,
15
+ });
14
16
 
15
17
  exports.Switch = Switch;
16
18
  //# sourceMappingURL=Switch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.js","sources":["../../../src/components/Switch/Switch.tsx"],"sourcesContent":[null],"names":["_jsxs","ChakraSwitch","_jsx","focusRing"],"mappings":";;;;;;;AAOO,MAAM,MAAM,GAAG,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAe,KAAI;AACpE,IAAA,QACEA,eAAA,CAACC,YAAY,CAAC,IAAI,IAChB,YAAY,EAAC,SAAS,EACtB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAAA,GACd,IAAI,EAAA,QAAA,EAAA,CAERC,eAACD,YAAY,CAAC,WAAW,EAAA,EAAA,CAAG,EAC5BC,cAAA,CAACD,YAAY,CAAC,OAAO,IACnB,EAAE,EAAC,UAAU,EACb,QAAQ,EAAE;AACR,oBAAA,EAAE,EAAE,cAAc;iBACnB,EAAA,GACGE,mBAAS,EAAA,QAAA,EAEbD,cAAA,CAACD,YAAY,CAAC,KAAK,EAAA,EAAA,CAAG,EAAA,CACD,CAAA,EAAA,CACL;AAExB;AAEA,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
1
+ {"version":3,"file":"Switch.js","sources":["../../../src/components/Switch/Switch.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsxs","ChakraSwitch","_jsx","SwitchControl","SwitchLabel"],"mappings":";;;;;;;;;AAOA,MAAM,UAAU,GAAGA,gBAAU,CAG3B,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAChCC,eAAA,CAACC,YAAY,CAAC,IAAI,EAAA,EAAC,GAAG,EAAE,GAAG,EAAE,YAAY,EAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAC,SAAS,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAA,GAAM,KAAK,EAAA,QAAA,EAAA,CAClHC,cAAA,CAACD,YAAY,CAAC,WAAW,EAAA,EAAC,EAAE,EAAE,EAAE,EAAA,CAAI,EACnC,QAAQ,CAAA,EAAA,CACS,CACrB,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,QAAQ;MAEpB,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE;AAC9C,IAAA,OAAO,EAAEE,2BAAa;AACtB,IAAA,KAAK,EAAEC,uBAAW;AACnB,CAAA;;;;"}
@@ -1,14 +1,16 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
3
4
  import { Switch as Switch$1 } from '@chakra-ui/react';
4
- import { focusRing } from '../../utils/focusRing.mjs';
5
+ import { SwitchControl } from './SwitchControl.mjs';
6
+ import { SwitchLabel } from './SwitchLabel.mjs';
5
7
 
6
- const Switch = ({ checked, disabled, ...rest }) => {
7
- return (jsxs(Switch$1.Root, { colorPalette: "primary", checked: checked, disabled: disabled, ...rest, children: [jsx(Switch$1.HiddenInput, {}), jsx(Switch$1.Control, { bg: "gray.200", _checked: {
8
- bg: 'primary.main',
9
- }, ...focusRing, children: jsx(Switch$1.Thumb, {}) })] }));
10
- };
11
- Switch.displayName = 'Switch';
8
+ const SwitchBase = forwardRef(({ id, children, ...props }, ref) => (jsxs(Switch$1.Root, { ref: ref, colorPalette: "primary", cursor: "pointer", _disabled: { cursor: 'not-allowed' }, ...props, children: [jsx(Switch$1.HiddenInput, { id: id }), children] })));
9
+ SwitchBase.displayName = 'Switch';
10
+ const Switch = Object.assign(SwitchBase, {
11
+ Control: SwitchControl,
12
+ Label: SwitchLabel,
13
+ });
12
14
 
13
15
  export { Switch };
14
16
  //# sourceMappingURL=Switch.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.mjs","sources":["../../../src/components/Switch/Switch.tsx"],"sourcesContent":[null],"names":["_jsxs","ChakraSwitch","_jsx"],"mappings":";;;;;AAOO,MAAM,MAAM,GAAG,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAe,KAAI;AACpE,IAAA,QACEA,IAAA,CAACC,QAAY,CAAC,IAAI,IAChB,YAAY,EAAC,SAAS,EACtB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAAA,GACd,IAAI,EAAA,QAAA,EAAA,CAERC,IAACD,QAAY,CAAC,WAAW,EAAA,EAAA,CAAG,EAC5BC,GAAA,CAACD,QAAY,CAAC,OAAO,IACnB,EAAE,EAAC,UAAU,EACb,QAAQ,EAAE;AACR,oBAAA,EAAE,EAAE,cAAc;iBACnB,EAAA,GACG,SAAS,EAAA,QAAA,EAEbC,GAAA,CAACD,QAAY,CAAC,KAAK,EAAA,EAAA,CAAG,EAAA,CACD,CAAA,EAAA,CACL;AAExB;AAEA,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
1
+ {"version":3,"file":"Switch.mjs","sources":["../../../src/components/Switch/Switch.tsx"],"sourcesContent":[null],"names":["_jsxs","ChakraSwitch","_jsx"],"mappings":";;;;;;;AAOA,MAAM,UAAU,GAAG,UAAU,CAG3B,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAChCA,IAAA,CAACC,QAAY,CAAC,IAAI,EAAA,EAAC,GAAG,EAAE,GAAG,EAAE,YAAY,EAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAC,SAAS,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAA,GAAM,KAAK,EAAA,QAAA,EAAA,CAClHC,GAAA,CAACD,QAAY,CAAC,WAAW,EAAA,EAAC,EAAE,EAAE,EAAE,EAAA,CAAI,EACnC,QAAQ,CAAA,EAAA,CACS,CACrB,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,QAAQ;MAEpB,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE;AAC9C,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,KAAK,EAAE,WAAW;AACnB,CAAA;;;;"}
@@ -1,4 +1,5 @@
1
1
  import { SwitchRootProps as ChakraSwitchRootProps } from '@chakra-ui/react';
2
- export interface SwitchProps extends ChakraSwitchRootProps {
3
- }
2
+ export type SwitchProps = ChakraSwitchRootProps & {
3
+ id?: string;
4
+ };
4
5
  //# sourceMappingURL=Switch.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.types.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,MAAM,WAAW,WAAY,SAAQ,qBAAqB;CAAG"}
1
+ {"version":3,"file":"Switch.types.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,MAAM,MAAM,WAAW,GAAG,qBAAqB,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Switch as ChakraSwitch } from '@chakra-ui/react';
2
+ export declare const SwitchControl: import("react").ForwardRefExoticComponent<ChakraSwitch.ControlProps & import("react").RefAttributes<HTMLSpanElement>>;
3
+ //# sourceMappingURL=SwitchControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwitchControl.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/SwitchControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAsB,MAAM,kBAAkB,CAAC;AAI9E,eAAO,MAAM,aAAa,uHAYzB,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var React = require('react');
6
+ var react = require('@chakra-ui/react');
7
+ var focusRing = require('../../utils/focusRing.js');
8
+
9
+ const SwitchControl = React.forwardRef((props, ref) => (jsxRuntime.jsx(react.Switch.Control, { ref: ref, bg: "gray.200", _checked: { bg: 'primary.main' }, ...focusRing.focusRing, ...props, children: jsxRuntime.jsx(react.Switch.Thumb, {}) })));
10
+ SwitchControl.displayName = 'Switch.Control';
11
+
12
+ exports.SwitchControl = SwitchControl;
13
+ //# sourceMappingURL=SwitchControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwitchControl.js","sources":["../../../src/components/Switch/SwitchControl.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","ChakraSwitch","focusRing"],"mappings":";;;;;;;;MAKa,aAAa,GAAGA,gBAAU,CACrC,CAAC,KAAK,EAAE,GAAG,MACTC,cAAA,CAACC,YAAY,CAAC,OAAO,EAAA,EACnB,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,UAAU,EACb,QAAQ,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,EAAA,GAC5BC,mBAAS,KACT,KAAK,EAAA,QAAA,EAETF,eAACC,YAAY,CAAC,KAAK,EAAA,EAAA,CAAG,EAAA,CACD,CACxB;AAEH,aAAa,CAAC,WAAW,GAAG,gBAAgB;;;;"}
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
4
+ import { Switch } from '@chakra-ui/react';
5
+ import { focusRing } from '../../utils/focusRing.mjs';
6
+
7
+ const SwitchControl = forwardRef((props, ref) => (jsx(Switch.Control, { ref: ref, bg: "gray.200", _checked: { bg: 'primary.main' }, ...focusRing, ...props, children: jsx(Switch.Thumb, {}) })));
8
+ SwitchControl.displayName = 'Switch.Control';
9
+
10
+ export { SwitchControl };
11
+ //# sourceMappingURL=SwitchControl.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwitchControl.mjs","sources":["../../../src/components/Switch/SwitchControl.tsx"],"sourcesContent":[null],"names":["_jsx","ChakraSwitch"],"mappings":";;;;;;MAKa,aAAa,GAAG,UAAU,CACrC,CAAC,KAAK,EAAE,GAAG,MACTA,GAAA,CAACC,MAAY,CAAC,OAAO,EAAA,EACnB,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,UAAU,EACb,QAAQ,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,EAAA,GAC5B,SAAS,KACT,KAAK,EAAA,QAAA,EAETD,IAACC,MAAY,CAAC,KAAK,EAAA,EAAA,CAAG,EAAA,CACD,CACxB;AAEH,aAAa,CAAC,WAAW,GAAG,gBAAgB;;;;"}
@@ -0,0 +1,3 @@
1
+ import { Switch as ChakraSwitch } from '@chakra-ui/react';
2
+ export declare const SwitchLabel: import("react").ForwardRefExoticComponent<Omit<ChakraSwitch.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
3
+ //# sourceMappingURL=SwitchLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwitchLabel.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/SwitchLabel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE1D,eAAO,MAAM,WAAW,mLAGuD,CAAC"}