@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.
- package/dist/components/Checkbox/Checkbox.d.ts +7 -2
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +7 -10
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.mjs +7 -10
- package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.types.d.ts +3 -2
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -1
- package/dist/components/Checkbox/CheckboxControl.d.ts +3 -0
- package/dist/components/Checkbox/CheckboxControl.d.ts.map +1 -0
- package/dist/components/Checkbox/CheckboxControl.js +13 -0
- package/dist/components/Checkbox/CheckboxControl.js.map +1 -0
- package/dist/components/Checkbox/CheckboxControl.mjs +11 -0
- package/dist/components/Checkbox/CheckboxControl.mjs.map +1 -0
- package/dist/components/Checkbox/CheckboxLabel.d.ts +3 -0
- package/dist/components/Checkbox/CheckboxLabel.d.ts.map +1 -0
- package/dist/components/Checkbox/CheckboxLabel.js +12 -0
- package/dist/components/Checkbox/CheckboxLabel.js.map +1 -0
- package/dist/components/Checkbox/CheckboxLabel.mjs +10 -0
- package/dist/components/Checkbox/CheckboxLabel.mjs.map +1 -0
- package/dist/components/Modal/ModalHeader.js +1 -1
- package/dist/components/Modal/ModalHeader.js.map +1 -1
- package/dist/components/Modal/ModalHeader.mjs +1 -1
- package/dist/components/Modal/ModalHeader.mjs.map +1 -1
- package/dist/components/Radio/Radio.d.ts +7 -3
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/Radio.js +7 -5
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Radio/Radio.mjs +7 -5
- package/dist/components/Radio/Radio.mjs.map +1 -1
- package/dist/components/Radio/Radio.types.d.ts +3 -4
- package/dist/components/Radio/Radio.types.d.ts.map +1 -1
- package/dist/components/Radio/RadioControl.d.ts +3 -0
- package/dist/components/Radio/RadioControl.d.ts.map +1 -0
- package/dist/components/Radio/RadioControl.js +13 -0
- package/dist/components/Radio/RadioControl.js.map +1 -0
- package/dist/components/Radio/RadioControl.mjs +11 -0
- package/dist/components/Radio/RadioControl.mjs.map +1 -0
- package/dist/components/Radio/RadioText.d.ts +3 -0
- package/dist/components/Radio/RadioText.d.ts.map +1 -0
- package/dist/components/Radio/RadioText.js +12 -0
- package/dist/components/Radio/RadioText.js.map +1 -0
- package/dist/components/Radio/RadioText.mjs +10 -0
- package/dist/components/Radio/RadioText.mjs.map +1 -0
- package/dist/components/Switch/Switch.d.ts +6 -4
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +9 -7
- package/dist/components/Switch/Switch.js.map +1 -1
- package/dist/components/Switch/Switch.mjs +9 -7
- package/dist/components/Switch/Switch.mjs.map +1 -1
- package/dist/components/Switch/Switch.types.d.ts +3 -2
- package/dist/components/Switch/Switch.types.d.ts.map +1 -1
- package/dist/components/Switch/SwitchControl.d.ts +3 -0
- package/dist/components/Switch/SwitchControl.d.ts.map +1 -0
- package/dist/components/Switch/SwitchControl.js +13 -0
- package/dist/components/Switch/SwitchControl.js.map +1 -0
- package/dist/components/Switch/SwitchControl.mjs +11 -0
- package/dist/components/Switch/SwitchControl.mjs.map +1 -0
- package/dist/components/Switch/SwitchLabel.d.ts +3 -0
- package/dist/components/Switch/SwitchLabel.d.ts.map +1 -0
- package/dist/components/Switch/SwitchLabel.js +12 -0
- package/dist/components/Switch/SwitchLabel.js.map +1 -0
- package/dist/components/Switch/SwitchLabel.mjs +10 -0
- package/dist/components/Switch/SwitchLabel.mjs.map +1 -0
- package/dist/components/Tabs/Tab/Tab.styles.d.ts +9 -0
- package/dist/components/Tabs/Tab/Tab.styles.d.ts.map +1 -1
- package/dist/components/Tabs/Tab/Tab.styles.js +9 -0
- package/dist/components/Tabs/Tab/Tab.styles.js.map +1 -1
- package/dist/components/Tabs/Tab/Tab.styles.mjs +9 -0
- package/dist/components/Tabs/Tab/Tab.styles.mjs.map +1 -1
- package/dist/components/Tabs/TabList/TabList.styles.d.ts +1 -0
- package/dist/components/Tabs/TabList/TabList.styles.d.ts.map +1 -1
- package/dist/components/Tabs/TabList/TabList.styles.js +1 -0
- package/dist/components/Tabs/TabList/TabList.styles.js.map +1 -1
- package/dist/components/Tabs/TabList/TabList.styles.mjs +1 -0
- package/dist/components/Tabs/TabList/TabList.styles.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Checkbox/Checkbox.stories.tsx +70 -28
- package/src/components/Checkbox/Checkbox.tsx +16 -52
- package/src/components/Checkbox/Checkbox.types.ts +1 -1
- package/src/components/Checkbox/CheckboxControl.tsx +24 -0
- package/src/components/Checkbox/CheckboxLabel.tsx +8 -0
- package/src/components/Modal/ModalHeader.tsx +1 -1
- package/src/components/Radio/Radio.stories.tsx +90 -66
- package/src/components/Radio/Radio.tsx +16 -14
- package/src/components/Radio/Radio.types.ts +1 -4
- package/src/components/Radio/RadioControl.tsx +13 -0
- package/src/components/Radio/RadioText.tsx +8 -0
- package/src/components/Switch/Switch.stories.tsx +27 -14
- package/src/components/Switch/Switch.tsx +17 -25
- package/src/components/Switch/Switch.types.ts +1 -1
- package/src/components/Switch/SwitchControl.tsx +19 -0
- package/src/components/Switch/SwitchLabel.tsx +8 -0
- package/src/components/Tabs/Tab/Tab.styles.ts +9 -0
- package/src/components/Tabs/TabList/TabList.styles.ts +1 -0
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const Checkbox: import("react").ForwardRefExoticComponent<
|
|
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":"
|
|
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
|
|
7
|
+
var CheckboxControl = require('./CheckboxControl.js');
|
|
8
|
+
var CheckboxLabel = require('./CheckboxLabel.js');
|
|
8
9
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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","
|
|
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 {
|
|
5
|
+
import { CheckboxControl } from './CheckboxControl.mjs';
|
|
6
|
+
import { CheckboxLabel } from './CheckboxLabel.mjs';
|
|
6
7
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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":"
|
|
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
|
|
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,
|
|
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 @@
|
|
|
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,
|
|
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,
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
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":"
|
|
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
|
|
7
|
+
var RadioControl = require('./RadioControl.js');
|
|
8
|
+
var RadioText = require('./RadioText.js');
|
|
8
9
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
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","
|
|
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 {
|
|
5
|
+
import { RadioControl } from './RadioControl.mjs';
|
|
6
|
+
import { RadioText } from './RadioText.mjs';
|
|
6
7
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
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":"
|
|
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
|
|
3
|
-
|
|
4
|
-
|
|
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,
|
|
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 @@
|
|
|
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 {
|
|
2
|
-
export declare const Switch: {
|
|
3
|
-
|
|
4
|
-
|
|
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":"
|
|
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
|
|
7
|
+
var SwitchControl = require('./SwitchControl.js');
|
|
8
|
+
var SwitchLabel = require('./SwitchLabel.js');
|
|
7
9
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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","
|
|
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 {
|
|
5
|
+
import { SwitchControl } from './SwitchControl.mjs';
|
|
6
|
+
import { SwitchLabel } from './SwitchLabel.mjs';
|
|
5
7
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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":"
|
|
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 +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,
|
|
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 @@
|
|
|
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"}
|