react-miui 0.20.0 → 0.20.1
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/CHANGELOG.md +9 -0
- package/dist/components/form/input/Input.css.d.ts +47 -0
- package/dist/components/form/input/Input.css.d.ts.map +1 -0
- package/dist/components/form/input/Input.css.js +52 -0
- package/dist/components/form/input/Input.css.js.map +1 -0
- package/dist/components/form/input/Input.styled.d.ts.map +1 -1
- package/dist/components/form/input/Input.styled.js +3 -48
- package/dist/components/form/input/Input.styled.js.map +1 -1
- package/dist/components/form/textarea/TextArea.d.ts.map +1 -0
- package/dist/components/form/{TextArea.js → textarea/TextArea.js} +3 -10
- package/dist/components/form/textarea/TextArea.js.map +1 -0
- package/dist/components/form/textarea/TextArea.stories.d.ts +8 -0
- package/dist/components/form/textarea/TextArea.stories.d.ts.map +1 -0
- package/dist/components/form/textarea/TextArea.stories.js +15 -0
- package/dist/components/form/textarea/TextArea.stories.js.map +1 -0
- package/dist/components/form/textarea/TextArea.styled.d.ts +78 -0
- package/dist/components/form/textarea/TextArea.styled.d.ts.map +1 -0
- package/dist/components/form/textarea/TextArea.styled.js +9 -0
- package/dist/components/form/textarea/TextArea.styled.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/scrollbars.css.d.ts +4 -0
- package/dist/scrollbars.css.d.ts.map +1 -0
- package/dist/scrollbars.css.js +34 -0
- package/dist/scrollbars.css.js.map +1 -0
- package/dist/theme.d.ts +2 -2
- package/docs/assets/search.js +1 -1
- package/docs/classes/Drawer.html +14 -14
- package/docs/classes/Pop.html +14 -14
- package/docs/classes/ToasterProvider.html +10 -10
- package/docs/enums/ICON.html +14 -14
- package/docs/functions/Action.html +5 -4
- package/docs/functions/Button.html +5 -4
- package/docs/functions/Card.html +5 -4
- package/docs/functions/Checkbox.html +5 -4
- package/docs/functions/Choice.html +6 -5
- package/docs/functions/CoveringLoader.html +5 -4
- package/docs/functions/DirectionPad.html +5 -4
- package/docs/functions/EqualActions.html +5 -4
- package/docs/functions/FullLoader.html +5 -4
- package/docs/functions/HandleEsc.html +5 -4
- package/docs/functions/Header.html +5 -4
- package/docs/functions/HeaderIconAction.html +5 -4
- package/docs/functions/Icon-1.html +5 -4
- package/docs/functions/If.html +5 -4
- package/docs/functions/Input.html +6 -5
- package/docs/functions/Item-1.html +5 -4
- package/docs/functions/KeyValue.html +5 -4
- package/docs/functions/Label.html +5 -4
- package/docs/functions/List-1.html +5 -4
- package/docs/functions/Loader.html +5 -4
- package/docs/functions/Loading.html +5 -4
- package/docs/functions/Message.html +5 -4
- package/docs/functions/Modal-1.html +5 -4
- package/docs/functions/ModalButtons-1.html +5 -4
- package/docs/functions/PopLoader.html +5 -4
- package/docs/functions/PopOption.html +5 -4
- package/docs/functions/SearchContainer.html +5 -4
- package/docs/functions/Section-1.html +5 -4
- package/docs/functions/Select.html +5 -4
- package/docs/functions/Selector.html +6 -5
- package/docs/functions/Spacer.html +5 -4
- package/docs/functions/Stats.html +5 -4
- package/docs/functions/StickyHeader-1.html +5 -4
- package/docs/functions/StickyHeader.Content.html +5 -5
- package/docs/functions/Table.html +5 -4
- package/docs/functions/TextArea.html +5 -4
- package/docs/functions/Toggle.html +5 -4
- package/docs/functions/getCssText.html +5 -4
- package/docs/functions/styled.html +5 -4
- package/docs/functions/useToaster.html +6 -5
- package/docs/index.html +5 -4
- package/docs/modules/Item.html +7 -7
- package/docs/modules/List.html +6 -6
- package/docs/modules/Modal.html +6 -6
- package/docs/modules/ModalButtons.html +6 -6
- package/docs/modules/Section.html +6 -6
- package/docs/modules/StickyHeader.html +6 -6
- package/docs/modules.html +6 -4
- package/docs/pages/tutorials/Test.html +5 -4
- package/docs/types/ThemeCSS.html +6 -5
- package/docs/variables/Item.Label.html +5 -5
- package/docs/variables/Item.Value.html +5 -5
- package/docs/variables/List.Header.html +5 -5
- package/docs/variables/Modal.NegateMargin.html +5 -5
- package/docs/variables/ModalButtons.Button.html +5 -5
- package/docs/variables/Section.Container.html +5 -5
- package/docs/variables/cssReset.html +6 -5
- package/docs/variables/miuiScrollbars.html +99 -0
- package/esm/components/form/input/Input.css.d.ts +47 -0
- package/esm/components/form/input/Input.css.d.ts.map +1 -0
- package/esm/components/form/input/Input.css.js +48 -0
- package/esm/components/form/input/Input.css.js.map +1 -0
- package/esm/components/form/input/Input.styled.d.ts.map +1 -1
- package/esm/components/form/input/Input.styled.js +4 -49
- package/esm/components/form/input/Input.styled.js.map +1 -1
- package/esm/components/form/textarea/TextArea.d.ts.map +1 -0
- package/esm/components/form/textarea/TextArea.js +16 -0
- package/esm/components/form/textarea/TextArea.js.map +1 -0
- package/esm/components/form/textarea/TextArea.stories.d.ts +8 -0
- package/esm/components/form/textarea/TextArea.stories.d.ts.map +1 -0
- package/esm/components/form/textarea/TextArea.stories.js +12 -0
- package/esm/components/form/textarea/TextArea.stories.js.map +1 -0
- package/esm/components/form/textarea/TextArea.styled.d.ts +78 -0
- package/esm/components/form/textarea/TextArea.styled.d.ts.map +1 -0
- package/esm/components/form/textarea/TextArea.styled.js +14 -0
- package/esm/components/form/textarea/TextArea.styled.js.map +1 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -1
- package/esm/index.js.map +1 -1
- package/esm/scrollbars.css.d.ts +4 -0
- package/esm/scrollbars.css.d.ts.map +1 -0
- package/esm/scrollbars.css.js +49 -0
- package/esm/scrollbars.css.js.map +1 -0
- package/esm/theme.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/form/input/Input.css.ts +58 -0
- package/src/components/form/input/Input.styled.ts +4 -52
- package/src/components/form/textarea/TextArea.stories.tsx +21 -0
- package/src/components/form/textarea/TextArea.styled.ts +19 -0
- package/src/components/form/{TextArea.tsx → textarea/TextArea.tsx} +10 -9
- package/src/index.ts +3 -1
- package/src/scrollbars.css.ts +56 -0
- package/dist/components/form/TextArea.d.ts.map +0 -1
- package/dist/components/form/TextArea.js.map +0 -1
- package/esm/components/form/TextArea.d.ts.map +0 -1
- package/esm/components/form/TextArea.js +0 -20
- package/esm/components/form/TextArea.js.map +0 -1
- /package/dist/components/form/{TextArea.d.ts → textarea/TextArea.d.ts} +0 -0
- /package/esm/components/form/{TextArea.d.ts → textarea/TextArea.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file.
|
|
|
3
3
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
4
4
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [0.20.1] - 2022-06-08
|
|
7
|
+
### Fixed
|
|
8
|
+
- broken input styles
|
|
9
|
+
- broken textarea styles
|
|
10
|
+
### Dev
|
|
11
|
+
- added textarea storybook
|
|
12
|
+
### Added
|
|
13
|
+
- exported custom scrollbars as stitches styles
|
|
14
|
+
|
|
6
15
|
## [0.20.0] - 2022-06-08
|
|
7
16
|
### Added
|
|
8
17
|
- loader components: CoveringLoader, FullLoader, Loader, Loading, PopLoader
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const input: {
|
|
2
|
+
height: string;
|
|
3
|
+
fontSize: string;
|
|
4
|
+
color: "$text";
|
|
5
|
+
border: "none";
|
|
6
|
+
display: "block";
|
|
7
|
+
width: "100%";
|
|
8
|
+
background: "none";
|
|
9
|
+
fontFamily: "inherit";
|
|
10
|
+
padding: "1.2em 0";
|
|
11
|
+
flex: number;
|
|
12
|
+
"&::placeholder": {
|
|
13
|
+
color: "$sub";
|
|
14
|
+
};
|
|
15
|
+
"&:read-only, &:disabled": {
|
|
16
|
+
color: "inherit";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare const wrapper: {
|
|
20
|
+
background: "white";
|
|
21
|
+
display: "inline-flex";
|
|
22
|
+
width: "100%";
|
|
23
|
+
borderRadius: "2px";
|
|
24
|
+
padding: `0 ${string}`;
|
|
25
|
+
border: `${string} solid $border`;
|
|
26
|
+
alignItems: "center";
|
|
27
|
+
variants: {
|
|
28
|
+
disabled: {
|
|
29
|
+
true: {
|
|
30
|
+
background: string;
|
|
31
|
+
color: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readOnly: {
|
|
35
|
+
true: {
|
|
36
|
+
color: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
focused: {
|
|
40
|
+
true: {
|
|
41
|
+
borderColor: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export { input, wrapper, };
|
|
47
|
+
//# sourceMappingURL=Input.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.css.d.ts","sourceRoot":"","sources":["../../../../src/components/form/input/Input.css.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;CAmBS,CAAC;AAErB,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BO,CAAC;AAErB,OAAO,EACH,KAAK,EACL,OAAO,GACV,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.wrapper = exports.input = void 0;
|
|
4
|
+
const theme_js_1 = require("../../../theme.js");
|
|
5
|
+
const input = {
|
|
6
|
+
"height": (0, theme_js_1.dimensionsPxToRem)(103),
|
|
7
|
+
"fontSize": (0, theme_js_1.fontPxToRem)(25),
|
|
8
|
+
"color": "$text",
|
|
9
|
+
"border": "none",
|
|
10
|
+
"display": "block",
|
|
11
|
+
"width": "100%",
|
|
12
|
+
"background": "none",
|
|
13
|
+
"fontFamily": "inherit",
|
|
14
|
+
"padding": "1.2em 0",
|
|
15
|
+
"flex": 1,
|
|
16
|
+
"&::placeholder": {
|
|
17
|
+
color: "$sub",
|
|
18
|
+
},
|
|
19
|
+
"&:read-only, &:disabled": {
|
|
20
|
+
color: "inherit",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
exports.input = input;
|
|
24
|
+
const wrapper = {
|
|
25
|
+
background: "white",
|
|
26
|
+
display: "inline-flex",
|
|
27
|
+
width: "100%",
|
|
28
|
+
borderRadius: "2px",
|
|
29
|
+
padding: `0 ${(0, theme_js_1.dimensionsPxToRem)(36)}`,
|
|
30
|
+
border: `${(0, theme_js_1.borderPxToRem)(1)} solid $border`,
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
variants: {
|
|
33
|
+
disabled: {
|
|
34
|
+
true: {
|
|
35
|
+
background: "$inputDisabledBg",
|
|
36
|
+
color: "$inputDisabledText",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
readOnly: {
|
|
40
|
+
true: {
|
|
41
|
+
color: "$inputDisabledText",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
focused: {
|
|
45
|
+
true: {
|
|
46
|
+
borderColor: "$focusColor",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
exports.wrapper = wrapper;
|
|
52
|
+
//# sourceMappingURL=Input.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.css.js","sourceRoot":"","sources":["../../../../src/components/form/input/Input.css.ts"],"names":[],"mappings":";;;AAEA,gDAAkF;AAElF,MAAM,KAAK,GAAG;IACV,QAAQ,EAAE,IAAA,4BAAiB,EAAC,GAAG,CAAC;IAChC,UAAU,EAAE,IAAA,sBAAW,EAAC,EAAE,CAAC;IAC3B,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,MAAM;IACf,YAAY,EAAE,MAAM;IACpB,YAAY,EAAE,SAAS;IACvB,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,CAAC;IAET,gBAAgB,EAAE;QACd,KAAK,EAAE,MAAM;KAChB;IAED,yBAAyB,EAAE;QACvB,KAAK,EAAE,SAAS;KACnB;CACe,CAAC;AAgCjB,sBAAK;AA9BT,MAAM,OAAO,GAAG;IACZ,UAAU,EAAE,OAAO;IACnB,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,MAAM;IACb,YAAY,EAAE,KAAK;IACnB,OAAO,EAAE,KAAK,IAAA,4BAAiB,EAAC,EAAE,CAAC,EAAE;IACrC,MAAM,EAAE,GAAG,IAAA,wBAAa,EAAC,CAAC,CAAC,gBAAgB;IAC3C,UAAU,EAAE,QAAQ;IAEpB,QAAQ,EAAE;QACN,QAAQ,EAAE;YACN,IAAI,EAAE;gBACF,UAAU,EAAE,kBAAkB;gBAC9B,KAAK,EAAE,oBAAoB;aAC9B;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE;gBACF,KAAK,EAAE,oBAAoB;aAC9B;SACJ;QACD,OAAO,EAAE;YACL,IAAI,EAAE;gBACF,WAAW,EAAE,aAAa;aAC7B;SACJ;KACJ;CACe,CAAC;AAIjB,0BAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/form/input/Input.styled.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/form/input/Input.styled.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyB,CAAC;AAE3C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyB,CAAC;AAE7C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGhB,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGhB,CAAC;AAEH,OAAO,EACH,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,GACf,CAAC"}
|
|
@@ -2,55 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StyledSuffix = exports.StyledPrefix = exports.StyledWrapper = exports.StyledInput = void 0;
|
|
4
4
|
const theme_js_1 = require("../../../theme.js");
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
"fontSize": (0, theme_js_1.fontPxToRem)(34),
|
|
8
|
-
"color": "$text",
|
|
9
|
-
"border": "none",
|
|
10
|
-
"display": "block",
|
|
11
|
-
"width": "100%",
|
|
12
|
-
"background": "none",
|
|
13
|
-
"fontFamily": "inherit",
|
|
14
|
-
"padding": "1.2em 0",
|
|
15
|
-
"flex": 1,
|
|
16
|
-
"&::placeholder": {
|
|
17
|
-
color: "$sub",
|
|
18
|
-
},
|
|
19
|
-
});
|
|
5
|
+
const Input_css_js_1 = require("./Input.css.js");
|
|
6
|
+
const StyledInput = (0, theme_js_1.styled)("input", Input_css_js_1.input);
|
|
20
7
|
exports.StyledInput = StyledInput;
|
|
21
|
-
const StyledWrapper = (0, theme_js_1.styled)("div",
|
|
22
|
-
background: "white",
|
|
23
|
-
display: "inline-flex",
|
|
24
|
-
width: "100%",
|
|
25
|
-
borderRadius: "2px",
|
|
26
|
-
padding: `0 ${(0, theme_js_1.dimensionsPxToRem)(36)}`,
|
|
27
|
-
border: `${(0, theme_js_1.borderPxToRem)(1)} solid $border`,
|
|
28
|
-
alignItems: "center",
|
|
29
|
-
variants: {
|
|
30
|
-
disabled: {
|
|
31
|
-
true: {
|
|
32
|
-
background: "$inputDisabledBg",
|
|
33
|
-
color: "$inputDisabledText",
|
|
34
|
-
[StyledInput.toString()]: {
|
|
35
|
-
color: "$inputDisabledText",
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
readOnly: {
|
|
40
|
-
true: {
|
|
41
|
-
color: "$inputDisabledText",
|
|
42
|
-
[StyledInput.toString()]: {
|
|
43
|
-
color: "$inputDisabledText",
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
focused: {
|
|
48
|
-
true: {
|
|
49
|
-
borderColor: "$focusColor",
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
});
|
|
8
|
+
const StyledWrapper = (0, theme_js_1.styled)("div", Input_css_js_1.wrapper);
|
|
54
9
|
exports.StyledWrapper = StyledWrapper;
|
|
55
10
|
const StyledPrefix = (0, theme_js_1.styled)("div", {
|
|
56
11
|
marginRight: (0, theme_js_1.dimensionsPxToRem)(36),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.styled.js","sourceRoot":"","sources":["../../../../src/components/form/input/Input.styled.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"Input.styled.js","sourceRoot":"","sources":["../../../../src/components/form/input/Input.styled.ts"],"names":[],"mappings":";;;AAAA,gDAA8D;AAE9D,iDAAgD;AAEhD,MAAM,WAAW,GAAG,IAAA,iBAAM,EAAC,OAAO,EAAE,oBAAK,CAAC,CAAC;AAevC,kCAAW;AAbf,MAAM,aAAa,GAAG,IAAA,iBAAM,EAAC,KAAK,EAAE,sBAAO,CAAC,CAAC;AAczC,sCAAa;AAZjB,MAAM,YAAY,GAAG,IAAA,iBAAM,EAAC,KAAK,EAAE;IAC/B,WAAW,EAAE,IAAA,4BAAiB,EAAC,EAAE,CAAC;IAClC,OAAO,EAAE,MAAM;CAClB,CAAC,CAAC;AAUC,oCAAY;AARhB,MAAM,YAAY,GAAG,IAAA,iBAAM,EAAC,KAAK,EAAE;IAC/B,UAAU,EAAE,IAAA,4BAAiB,EAAC,EAAE,CAAC;IACjC,OAAO,EAAE,MAAM;CAClB,CAAC,CAAC;AAMC,oCAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/form/textarea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAIrD,UAAU,KAAK;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC;CACpB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,GAAG,KAAK,CA2BjF,CAAC;AAEF,OAAO,EACH,QAAQ,GACX,CAAC"}
|
|
@@ -33,16 +33,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
33
33
|
}
|
|
34
34
|
return t;
|
|
35
35
|
};
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
37
|
exports.TextArea = void 0;
|
|
41
38
|
const react_1 = __importStar(require("react"));
|
|
42
|
-
const
|
|
43
|
-
const Input_module_scss_1 = __importDefault(require("./input/Input.module.scss"));
|
|
39
|
+
const TextArea_styled_1 = require("./TextArea.styled");
|
|
44
40
|
const TextArea = (_a) => {
|
|
45
|
-
var {
|
|
41
|
+
var { children, onFocus, onBlur } = _a, props = __rest(_a, ["children", "onFocus", "onBlur"]);
|
|
46
42
|
const [focused, setFocused] = (0, react_1.useState)(false);
|
|
47
43
|
const handleFocus = (0, react_1.useCallback)((e) => {
|
|
48
44
|
setFocused(true);
|
|
@@ -52,10 +48,7 @@ const TextArea = (_a) => {
|
|
|
52
48
|
setFocused(false);
|
|
53
49
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
54
50
|
}, [onBlur]);
|
|
55
|
-
|
|
56
|
-
[Input_module_scss_1.default.wrapperFocused]: focused,
|
|
57
|
-
}, Input_module_scss_1.default.input, Input_module_scss_1.default.textarea, className);
|
|
58
|
-
return (react_1.default.createElement("textarea", Object.assign({}, props, { onFocus: handleFocus, onBlur: handleBlur, className: cls })));
|
|
51
|
+
return (react_1.default.createElement(TextArea_styled_1.StyledTextArea, Object.assign({}, props, { disabled: Boolean(props.disabled), readOnly: Boolean(props.readOnly), focused: focused, onFocus: handleFocus, onBlur: handleBlur })));
|
|
59
52
|
};
|
|
60
53
|
exports.TextArea = TextArea;
|
|
61
54
|
//# sourceMappingURL=TextArea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../../src/components/form/textarea/TextArea.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAqD;AAErD,uDAAmD;AAMnD,MAAM,QAAQ,GAAwE,CAAC,EAItF,EAAE,EAAE;QAJkF,EACnF,QAAQ,EACR,OAAO,EAAE,MAAM,OAElB,EADM,KAAK,cAH2E,iCAItF,CADW;IAER,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAwC,EAAE,EAAE;QACzE,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,CAAC,CAAC,CAAC;IACjB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,MAAM,UAAU,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAwC,EAAE,EAAE;QACxE,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,CAAC,CAAC;IAChB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,CACH,8BAAC,gCAAc,oBACP,KAAK,IACT,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,EACjC,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,EACjC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,IACpB,CACL,CAAC;AACN,CAAC,CAAC;AAGE,4BAAQ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
import { TextArea } from "./TextArea.js";
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
type Story = StoryObj<typeof TextArea>;
|
|
5
|
+
declare const Primary: Story;
|
|
6
|
+
export { Primary, };
|
|
7
|
+
export default meta;
|
|
8
|
+
//# sourceMappingURL=TextArea.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/form/textarea/TextArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEvC,QAAA,MAAM,OAAO,EAAE,KAEd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Primary = void 0;
|
|
4
|
+
const TextArea_js_1 = require("./TextArea.js");
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Components/Form/TextArea",
|
|
7
|
+
component: TextArea_js_1.TextArea,
|
|
8
|
+
tags: ["autodocs", "form"],
|
|
9
|
+
};
|
|
10
|
+
const Primary = {
|
|
11
|
+
args: {},
|
|
12
|
+
};
|
|
13
|
+
exports.Primary = Primary;
|
|
14
|
+
exports.default = meta;
|
|
15
|
+
//# sourceMappingURL=TextArea.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.stories.js","sourceRoot":"","sources":["../../../../src/components/form/textarea/TextArea.stories.tsx"],"names":[],"mappings":";;;AAEA,+CAAyC;AAEzC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,sBAAQ;IACnB,IAAI,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE,EAAE;CACX,CAAC;AAGE,0BAAO;AAGX,kBAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
declare const StyledTextArea: import("@stitches/react/types/styled-component.js").StyledComponent<"textarea", {
|
|
2
|
+
disabled?: boolean | "true";
|
|
3
|
+
readOnly?: boolean | "true";
|
|
4
|
+
focused?: boolean | "true";
|
|
5
|
+
}, {}, import("@stitches/react/types/css-util.js").CSS<{}, {
|
|
6
|
+
colors: {
|
|
7
|
+
background: string;
|
|
8
|
+
mainColor: string;
|
|
9
|
+
mainColorAlt: string;
|
|
10
|
+
activeBg: string;
|
|
11
|
+
inactiveBg: string;
|
|
12
|
+
inactiveDarkBg: string;
|
|
13
|
+
toggleHandleBg: string;
|
|
14
|
+
toggleHandleBorder: string;
|
|
15
|
+
toggleBgDisabled: string;
|
|
16
|
+
toggleHandleBorderDisabled: string;
|
|
17
|
+
toggleHandleBgDisabled: string;
|
|
18
|
+
icon: string;
|
|
19
|
+
border: string;
|
|
20
|
+
buttonBorder: string;
|
|
21
|
+
headerBorder: string;
|
|
22
|
+
headerBg: string;
|
|
23
|
+
headerText: string;
|
|
24
|
+
text: string;
|
|
25
|
+
sub: string;
|
|
26
|
+
popText: string;
|
|
27
|
+
toolbarBorder: string;
|
|
28
|
+
toolbarBg: string;
|
|
29
|
+
modalBg: string;
|
|
30
|
+
modalButtonBg: string;
|
|
31
|
+
modalButtonBorder: string;
|
|
32
|
+
inputDisabledBg: string;
|
|
33
|
+
inputDisabledText: string;
|
|
34
|
+
choiceBg: string;
|
|
35
|
+
choiceText: string;
|
|
36
|
+
choiceActiveBg: string;
|
|
37
|
+
choiceActiveText: string;
|
|
38
|
+
choiceBorder: string;
|
|
39
|
+
selectorText: string;
|
|
40
|
+
selectorActive: string;
|
|
41
|
+
blue1: string;
|
|
42
|
+
blue2: string;
|
|
43
|
+
blue3: string;
|
|
44
|
+
orange1: string;
|
|
45
|
+
orange1Darker: string;
|
|
46
|
+
purple1: string;
|
|
47
|
+
green1: string;
|
|
48
|
+
green1Darker: string;
|
|
49
|
+
pink1: string;
|
|
50
|
+
red1: string;
|
|
51
|
+
yellow1: string;
|
|
52
|
+
yellow2: string;
|
|
53
|
+
yellow3: string;
|
|
54
|
+
pinky1: string;
|
|
55
|
+
pinky2: string;
|
|
56
|
+
pinky3: string;
|
|
57
|
+
grey1: string;
|
|
58
|
+
focusColor: string;
|
|
59
|
+
scrollbarsThumb: string;
|
|
60
|
+
scrollbarsBg: string;
|
|
61
|
+
tableStripedBg: string;
|
|
62
|
+
};
|
|
63
|
+
}, import("@stitches/react/types/config.js").DefaultThemeMap, {
|
|
64
|
+
mx: (value: string) => {
|
|
65
|
+
marginLeft: string;
|
|
66
|
+
marginRight: string;
|
|
67
|
+
};
|
|
68
|
+
my: (value: string) => {
|
|
69
|
+
marginTop: string;
|
|
70
|
+
marginBottom: string;
|
|
71
|
+
};
|
|
72
|
+
size: (value: string) => {
|
|
73
|
+
width: string;
|
|
74
|
+
height: string;
|
|
75
|
+
};
|
|
76
|
+
}>>;
|
|
77
|
+
export { StyledTextArea, };
|
|
78
|
+
//# sourceMappingURL=TextArea.styled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/form/textarea/TextArea.styled.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUlB,CAAC;AAEH,OAAO,EACH,cAAc,GACjB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledTextArea = void 0;
|
|
4
|
+
const theme_js_1 = require("../../../theme.js");
|
|
5
|
+
const Input_css_1 = require("../input/Input.css");
|
|
6
|
+
const scrollbars_css_1 = require("../../../scrollbars.css");
|
|
7
|
+
const StyledTextArea = (0, theme_js_1.styled)("textarea", Object.assign(Object.assign(Object.assign(Object.assign({}, scrollbars_css_1.miuiScrollbars), Input_css_1.input), Input_css_1.wrapper), { padding: `1.2em ${(0, theme_js_1.dimensionsPxToRem)(36)}`, height: "unset", resize: "vertical", minHeight: (0, theme_js_1.dimensionsPxToRem)(103) }));
|
|
8
|
+
exports.StyledTextArea = StyledTextArea;
|
|
9
|
+
//# sourceMappingURL=TextArea.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.styled.js","sourceRoot":"","sources":["../../../../src/components/form/textarea/TextArea.styled.ts"],"names":[],"mappings":";;;AAAA,gDAA8D;AAC9D,kDAAoD;AACpD,4DAAyD;AAEzD,MAAM,cAAc,GAAG,IAAA,iBAAM,EAAC,UAAU,8DACjC,+BAAc,GACd,iBAAK,GACL,mBAAO,KAEV,OAAO,EAAE,SAAS,IAAA,4BAAiB,EAAC,EAAE,CAAC,EAAE,EACzC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,IAAA,4BAAiB,EAAC,GAAG,CAAC,IAEnC,CAAC;AAGC,wCAAc"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export * from "./components/form/choice/Choice.js";
|
|
|
2
2
|
export * from "./components/form/Checkbox.js";
|
|
3
3
|
export * from "./components/form/Label.js";
|
|
4
4
|
export * from "./components/form/Select.js";
|
|
5
|
-
export * from "./components/form/TextArea.js";
|
|
5
|
+
export * from "./components/form/textarea/TextArea.js";
|
|
6
6
|
export * from "./components/form/Toggle.js";
|
|
7
7
|
export * from "./components/form/index.js";
|
|
8
8
|
export * from "./components/icons/Icon.js";
|
|
@@ -37,6 +37,7 @@ export * from "./components/ui/toaster/Toaster.js";
|
|
|
37
37
|
export * from "./components/utils/HandleEsc.js";
|
|
38
38
|
export * from "./components/utils/If.js";
|
|
39
39
|
export * from "./components/utils/Spacer.js";
|
|
40
|
+
export * from "./scrollbars.css.js";
|
|
40
41
|
export type { ThemeCSS } from "./theme.js";
|
|
41
42
|
export { getCssText, styled } from "./theme.js";
|
|
42
43
|
export { cssReset } from "./theme.css-reset.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAE5C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAE/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAE7C,cAAc,qBAAqB,CAAC;AAEpC,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ __exportStar(require("./components/form/choice/Choice.js"), exports);
|
|
|
19
19
|
__exportStar(require("./components/form/Checkbox.js"), exports);
|
|
20
20
|
__exportStar(require("./components/form/Label.js"), exports);
|
|
21
21
|
__exportStar(require("./components/form/Select.js"), exports);
|
|
22
|
-
__exportStar(require("./components/form/TextArea.js"), exports);
|
|
22
|
+
__exportStar(require("./components/form/textarea/TextArea.js"), exports);
|
|
23
23
|
__exportStar(require("./components/form/Toggle.js"), exports);
|
|
24
24
|
__exportStar(require("./components/form/index.js"), exports);
|
|
25
25
|
__exportStar(require("./components/icons/Icon.js"), exports);
|
|
@@ -54,6 +54,7 @@ __exportStar(require("./components/ui/toaster/Toaster.js"), exports);
|
|
|
54
54
|
__exportStar(require("./components/utils/HandleEsc.js"), exports);
|
|
55
55
|
__exportStar(require("./components/utils/If.js"), exports);
|
|
56
56
|
__exportStar(require("./components/utils/Spacer.js"), exports);
|
|
57
|
+
__exportStar(require("./scrollbars.css.js"), exports);
|
|
57
58
|
var theme_js_1 = require("./theme.js");
|
|
58
59
|
Object.defineProperty(exports, "getCssText", { enumerable: true, get: function () { return theme_js_1.getCssText; } });
|
|
59
60
|
Object.defineProperty(exports, "styled", { enumerable: true, get: function () { return theme_js_1.styled; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,qEAAmD;AACnD,gEAA8C;AAC9C,6DAA2C;AAC3C,8DAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,qEAAmD;AACnD,gEAA8C;AAC9C,6DAA2C;AAC3C,8DAA4C;AAC5C,yEAAuD;AACvD,8DAA4C;AAE5C,6DAA2C;AAE3C,6DAA2C;AAE3C,mEAAiD;AACjD,uEAAqD;AACrD,iFAA+D;AAC/D,6EAA2D;AAC3D,mEAAiD;AACjD,mEAAiD;AACjD,iFAA+D;AAC/D,yEAAuD;AACvD,qEAAmD;AAEnD,mEAAiD;AACjD,yEAAuD;AACvD,mEAAiD;AACjD,sEAAoD;AACpD,mEAAiD;AACjD,uEAAqD;AACrD,2EAAyD;AACzD,uEAAqD;AACrD,mEAAiD;AACjD,oEAAkD;AAClD,sEAAoD;AACpD,qEAAmD;AACnD,iEAA+C;AAC/C,wEAAsD;AACtD,6DAA2C;AAC3C,mEAAiD;AACjD,iEAA+C;AAE/C,mEAAiD;AACjD,qEAAmD;AAEnD,kEAAgD;AAChD,2DAAyC;AACzC,+DAA6C;AAE7C,sDAAoC;AAIpC,uCAAgD;AAAvC,sGAAA,UAAU,OAAA;AAAE,kGAAA,MAAM,OAAA;AAC3B,2DAAgD;AAAvC,8GAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollbars.css.d.ts","sourceRoot":"","sources":["../src/scrollbars.css.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAiBxC,QAAA,MAAM,cAAc,EAAE,QAoCrB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.miuiScrollbars = void 0;
|
|
4
|
+
const theme_js_1 = require("./theme.js");
|
|
5
|
+
const thumbStyle = {
|
|
6
|
+
background: "var(--scrollbars-thumb)",
|
|
7
|
+
backgroundClip: "padding-box",
|
|
8
|
+
border: "2px solid var(--scrollbars-bg)",
|
|
9
|
+
borderRadius: "$1",
|
|
10
|
+
};
|
|
11
|
+
const thumbActive = {
|
|
12
|
+
background: "var(--scrollbars-thumb-active)",
|
|
13
|
+
border: "2px solid var(--scrollbars-bg)",
|
|
14
|
+
};
|
|
15
|
+
const miuiScrollbars = {
|
|
16
|
+
"--scrollbars-thumb": "#737373",
|
|
17
|
+
"--scrollbars-thumb-active": "#737373",
|
|
18
|
+
"--scrollbars-bg": "transparent",
|
|
19
|
+
"scrollbar-color": "var(--scrollbars-thumb) var(--scrollbars-bg)",
|
|
20
|
+
"scrollbar-width": "thin !important",
|
|
21
|
+
"&::-webkit-scrollbar": {
|
|
22
|
+
height: (0, theme_js_1.pxToRem)(7),
|
|
23
|
+
width: (0, theme_js_1.pxToRem)(7),
|
|
24
|
+
backgroundColor: "transparent",
|
|
25
|
+
borderRadius: (0, theme_js_1.pxToRem)(7),
|
|
26
|
+
},
|
|
27
|
+
"&::-webkit-scrollbar-thumb:vertical": Object.assign(Object.assign({}, thumbStyle), { "minHeight": (0, theme_js_1.pxToRem)(10), "marginRight": (0, theme_js_1.pxToRem)(2), "&:active": Object.assign(Object.assign({}, thumbActive), { minHeight: (0, theme_js_1.pxToRem)(8), marginRight: (0, theme_js_1.pxToRem)(4) }) }),
|
|
28
|
+
"&::-webkit-scrollbar-thumb:horizontal": Object.assign(Object.assign({}, thumbStyle), { "minWidth": (0, theme_js_1.pxToRem)(10), "marginBottom": (0, theme_js_1.pxToRem)(2), "&:active": Object.assign(Object.assign({}, thumbActive), { minWidth: (0, theme_js_1.pxToRem)(8), marginBottom: (0, theme_js_1.pxToRem)(4) }) }),
|
|
29
|
+
"&::-webkit-scrollbar-corner": {
|
|
30
|
+
backgroundColor: "transparent",
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
exports.miuiScrollbars = miuiScrollbars;
|
|
34
|
+
//# sourceMappingURL=scrollbars.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollbars.css.js","sourceRoot":"","sources":["../src/scrollbars.css.ts"],"names":[],"mappings":";;;AAEA,yCAAqC;AAErC,MAAM,UAAU,GAAG;IACf,UAAU,EAAE,yBAAyB;IACrC,cAAc,EAAE,aAAa;IAC7B,MAAM,EAAE,gCAAgC;IACxC,YAAY,EAAE,IAAI;CACrB,CAAC;AAEF,MAAM,WAAW,GAAa;IAC1B,UAAU,EAAE,gCAAgC;IAC5C,MAAM,EAAE,gCAAgC;CAC3C,CAAC;AAGF,MAAM,cAAc,GAAa;IAC7B,oBAAoB,EAAE,SAAS;IAC/B,2BAA2B,EAAE,SAAS;IACtC,iBAAiB,EAAE,aAAa;IAChC,iBAAiB,EAAE,8CAA8C;IACjE,iBAAiB,EAAE,iBAAiB;IAEpC,sBAAsB,EAAE;QACpB,MAAM,EAAE,IAAA,kBAAO,EAAC,CAAC,CAAC;QAClB,KAAK,EAAE,IAAA,kBAAO,EAAC,CAAC,CAAC;QACjB,eAAe,EAAE,aAAa;QAC9B,YAAY,EAAE,IAAA,kBAAO,EAAC,CAAC,CAAC;KAC3B;IACD,qCAAqC,kCAC9B,UAAU,KACb,WAAW,EAAE,IAAA,kBAAO,EAAC,EAAE,CAAC,EACxB,aAAa,EAAE,IAAA,kBAAO,EAAC,CAAC,CAAC,EACzB,UAAU,kCACH,WAAW,KACd,SAAS,EAAE,IAAA,kBAAO,EAAC,CAAC,CAAC,EACrB,WAAW,EAAE,IAAA,kBAAO,EAAC,CAAC,CAAC,MAE9B;IACD,uCAAuC,kCAChC,UAAU,KACb,UAAU,EAAE,IAAA,kBAAO,EAAC,EAAE,CAAC,EACvB,cAAc,EAAE,IAAA,kBAAO,EAAC,CAAC,CAAC,EAC1B,UAAU,kCACH,WAAW,KACd,QAAQ,EAAE,IAAA,kBAAO,EAAC,CAAC,CAAC,EACpB,YAAY,EAAE,IAAA,kBAAO,EAAC,CAAC,CAAC,MAE/B;IACD,6BAA6B,EAAE;QAC3B,eAAe,EAAE,aAAa;KACjC;CACJ,CAAC;AAEO,wCAAc"}
|
package/dist/theme.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ declare const styled: <Type extends import("react").ComponentType<any> | keyof J
|
|
|
89
89
|
css: CSS;
|
|
90
90
|
})[];
|
|
91
91
|
defaultVariants?: "variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T_1 ? { [Name_1 in keyof T_1]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]>; } : never : import("@stitches/react/types/util").WideObject;
|
|
92
|
-
} & CSS & (Composers[K] extends infer T_2 ? { [K2 in keyof T_2]: K2 extends "
|
|
92
|
+
} & CSS & (Composers[K] extends infer T_2 ? { [K2 in keyof T_2]: K2 extends "variants" | "compoundVariants" | "defaultVariants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; } : never); }) => StyledComponent<Type, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, import("@stitches/react/types/css-util").CSS<{}, {
|
|
93
93
|
colors: {
|
|
94
94
|
background: string;
|
|
95
95
|
mainColor: string;
|
|
@@ -244,7 +244,7 @@ declare const styled: <Type extends import("react").ComponentType<any> | keyof J
|
|
|
244
244
|
css: CSS;
|
|
245
245
|
})[];
|
|
246
246
|
defaultVariants?: "variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T_1 ? { [Name_1 in keyof T_1]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]>; } : never : import("@stitches/react/types/util").WideObject;
|
|
247
|
-
} & CSS & (Composers[K] extends infer T_2 ? { [K2 in keyof T_2]: K2 extends "
|
|
247
|
+
} & CSS & (Composers[K] extends infer T_2 ? { [K2 in keyof T_2]: K2 extends "variants" | "compoundVariants" | "defaultVariants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; } : never); }) => import("@stitches/react/types/styled-component").CssComponent<import("@stitches/react/types/styled-component").StyledComponentType<Composers>, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, CSS>, globalCss: <Styles extends {
|
|
248
248
|
[K: string]: any;
|
|
249
249
|
}>(...styles: ({
|
|
250
250
|
'@import'?: unknown;
|