alicia-design-system 1.99.1 → 1.99.2
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.
|
@@ -15,9 +15,12 @@ exports.Checkbox = void 0;
|
|
|
15
15
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
const react_1 = require("@chakra-ui/react");
|
|
17
17
|
const polished_1 = require("polished");
|
|
18
|
+
const CheckboxControl = react_1.Checkbox.Control;
|
|
19
|
+
const CheckboxIndicator = react_1.Checkbox.Indicator;
|
|
20
|
+
const CheckboxLabel = react_1.Checkbox.Label;
|
|
18
21
|
const Checkbox = (_a) => {
|
|
19
22
|
var { isActive, label, textColor } = _a, props = __rest(_a, ["isActive", "label", "textColor"]);
|
|
20
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.Checkbox.Root, Object.assign({}, props, { checked: isActive, display: "flex", gap: (0, polished_1.rem)(8), alignItems: "center", children: [(0, jsx_runtime_1.jsx)(react_1.Checkbox.HiddenInput, {}), (0, jsx_runtime_1.jsx)(
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Checkbox.Root, Object.assign({}, props, { checked: isActive, display: "flex", gap: (0, polished_1.rem)(8), alignItems: "center", children: [(0, jsx_runtime_1.jsx)(react_1.Checkbox.HiddenInput, {}), (0, jsx_runtime_1.jsx)(CheckboxControl, { css: { borderColor: textColor }, children: (0, jsx_runtime_1.jsx)(CheckboxIndicator, {}) }), label && ((0, jsx_runtime_1.jsx)(CheckboxLabel, { css: { color: textColor }, children: label }))] })));
|
|
21
24
|
};
|
|
22
25
|
exports.Checkbox = Checkbox;
|
|
23
26
|
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../../src/alicia/common/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,4CAE0B;AAC1B,uCAA+B;
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../../src/alicia/common/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,4CAE0B;AAC1B,uCAA+B;AAE/B,MAAM,eAAe,GAAG,gBAAc,CAAC,OAAc,CAAC;AACtD,MAAM,iBAAiB,GAAG,gBAAc,CAAC,SAAgB,CAAC;AAC1D,MAAM,aAAa,GAAG,gBAAc,CAAC,KAAY,CAAC;AAE3C,MAAM,QAAQ,GAA4B,CAAC,EAKjD,EAAE,EAAE;QAL6C,EAChD,QAAQ,EACR,KAAK,EACL,SAAS,OAEV,EADI,KAAK,cAJwC,kCAKjD,CADS;IAER,OAAO,CACL,wBAAC,gBAAc,CAAC,IAAI,oBACd,KAAK,IACT,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAC,MAAM,EACd,GAAG,EAAE,IAAA,cAAG,EAAC,CAAC,CAAC,EACX,UAAU,EAAC,QAAQ,aAEnB,uBAAC,gBAAc,CAAC,WAAW,KAAG,EAC9B,uBAAC,eAAe,IAAC,GAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,YAC9C,uBAAC,iBAAiB,KAAG,GACL,EACjB,KAAK,IAAI,CACR,uBAAC,aAAa,IAAC,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,YACrC,KAAK,GACQ,CACjB,KACmB,CACvB,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,QAAQ,YAyBnB"}
|
|
@@ -12,8 +12,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Checkbox as ChakraCheckbox } from '@chakra-ui/react';
|
|
14
14
|
import { rem } from 'polished';
|
|
15
|
+
const CheckboxControl = ChakraCheckbox.Control;
|
|
16
|
+
const CheckboxIndicator = ChakraCheckbox.Indicator;
|
|
17
|
+
const CheckboxLabel = ChakraCheckbox.Label;
|
|
15
18
|
export const Checkbox = (_a) => {
|
|
16
19
|
var { isActive, label, textColor } = _a, props = __rest(_a, ["isActive", "label", "textColor"]);
|
|
17
|
-
return (_jsxs(ChakraCheckbox.Root, Object.assign({}, props, { checked: isActive, display: "flex", gap: rem(8), alignItems: "center", children: [_jsx(ChakraCheckbox.HiddenInput, {}), _jsx(
|
|
20
|
+
return (_jsxs(ChakraCheckbox.Root, Object.assign({}, props, { checked: isActive, display: "flex", gap: rem(8), alignItems: "center", children: [_jsx(ChakraCheckbox.HiddenInput, {}), _jsx(CheckboxControl, { css: { borderColor: textColor }, children: _jsx(CheckboxIndicator, {}) }), label && (_jsx(CheckboxLabel, { css: { color: textColor }, children: label }))] })));
|
|
18
21
|
};
|
|
19
22
|
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../../src/alicia/common/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EACL,QAAQ,IAAI,cAAc,EAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAKjD,EAAE,EAAE;QAL6C,EAChD,QAAQ,EACR,KAAK,EACL,SAAS,OAEV,EADI,KAAK,cAJwC,kCAKjD,CADS;IAER,OAAO,
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../../src/alicia/common/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EACL,QAAQ,IAAI,cAAc,EAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,MAAM,eAAe,GAAG,cAAc,CAAC,OAAc,CAAC;AACtD,MAAM,iBAAiB,GAAG,cAAc,CAAC,SAAgB,CAAC;AAC1D,MAAM,aAAa,GAAG,cAAc,CAAC,KAAY,CAAC;AAElD,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAKjD,EAAE,EAAE;QAL6C,EAChD,QAAQ,EACR,KAAK,EACL,SAAS,OAEV,EADI,KAAK,cAJwC,kCAKjD,CADS;IAER,OAAO,CACL,MAAC,cAAc,CAAC,IAAI,oBACd,KAAK,IACT,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAC,MAAM,EACd,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,EACX,UAAU,EAAC,QAAQ,aAEnB,KAAC,cAAc,CAAC,WAAW,KAAG,EAC9B,KAAC,eAAe,IAAC,GAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,YAC9C,KAAC,iBAAiB,KAAG,GACL,EACjB,KAAK,IAAI,CACR,KAAC,aAAa,IAAC,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,YACrC,KAAK,GACQ,CACjB,KACmB,CACvB,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alicia-design-system",
|
|
3
|
-
"version": "1.99.
|
|
3
|
+
"version": "1.99.2",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"@chakra-ui/react": "^3.31.0",
|
|
21
21
|
"@emotion/react": "^11.14.0",
|
|
22
22
|
"@testing-library/jest-dom": "^6.6.3",
|
|
23
|
-
"@testing-library/react": "^
|
|
23
|
+
"@testing-library/react": "^14.3.1",
|
|
24
24
|
"@testing-library/user-event": "^14.5.2",
|
|
25
25
|
"@types/node": "^16.18.2",
|
|
26
|
-
"@types/react": "
|
|
26
|
+
"@types/react": "^18.3.1",
|
|
27
27
|
"framer-motion": "^12.4.0",
|
|
28
28
|
"js-base64": "^3.7.5",
|
|
29
29
|
"lodash": "^4.17.21",
|
|
30
30
|
"moment": "^2.29.4",
|
|
31
31
|
"polished": "^4.2.2",
|
|
32
|
-
"react": "^
|
|
32
|
+
"react": "^18.3.1",
|
|
33
33
|
"react-calendar": "^4.0.0",
|
|
34
34
|
"react-date-picker": "^10.6.0",
|
|
35
|
-
"react-dom": "^
|
|
35
|
+
"react-dom": "^18.3.1",
|
|
36
36
|
"react-dropzone": "^14.2.3",
|
|
37
37
|
"react-icons": "^5.5.0",
|
|
38
38
|
"react-router-dom": "^6.30.2",
|
|
@@ -128,8 +128,8 @@
|
|
|
128
128
|
"peerDependencies": {
|
|
129
129
|
"@chakra-ui/icons": "^2.0.18",
|
|
130
130
|
"@chakra-ui/react": "^3.31.0",
|
|
131
|
-
"react": "^
|
|
132
|
-
"react-dom": "^
|
|
131
|
+
"react": "^18.3.1",
|
|
132
|
+
"react-dom": "^18.3.1"
|
|
133
133
|
},
|
|
134
134
|
"jest": {
|
|
135
135
|
"moduleNameMapper": {
|