react-miui 0.20.0 → 0.21.0
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 +19 -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 +68 -36
- 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/{layout/list/Value.styled.d.ts → form/textarea/TextArea.styled.d.ts} +24 -12
- 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/components/icons/Icon.js +1 -2
- package/dist/components/icons/Icon.js.map +1 -1
- package/dist/components/layout/list/Header.d.ts +174 -7
- package/dist/components/layout/list/Header.d.ts.map +1 -1
- package/dist/components/layout/list/Header.js +36 -11
- package/dist/components/layout/list/Header.js.map +1 -1
- package/dist/components/layout/list/Header.stories.d.ts +8 -0
- package/dist/components/layout/list/Header.stories.d.ts.map +1 -0
- package/dist/components/layout/list/Header.stories.js +33 -0
- package/dist/components/layout/list/Header.stories.js.map +1 -0
- package/dist/components/layout/list/Item.d.ts +88 -7
- package/dist/components/layout/list/Item.d.ts.map +1 -1
- package/dist/components/layout/list/Item.js +66 -33
- package/dist/components/layout/list/Item.js.map +1 -1
- package/dist/components/layout/list/Item.stories.d.ts +10 -0
- package/dist/components/layout/list/Item.stories.d.ts.map +1 -0
- package/dist/components/layout/list/Item.stories.js +65 -0
- package/dist/components/layout/list/Item.stories.js.map +1 -0
- package/dist/components/layout/list/Label.d.ts +83 -5
- package/dist/components/layout/list/Label.d.ts.map +1 -1
- package/dist/components/layout/list/Label.js +24 -6
- package/dist/components/layout/list/Label.js.map +1 -1
- package/dist/components/layout/list/Label.stories.d.ts +8 -0
- package/dist/components/layout/list/Label.stories.d.ts.map +1 -0
- package/dist/components/layout/list/Label.stories.js +35 -0
- package/dist/components/layout/list/Label.stories.js.map +1 -0
- package/dist/components/layout/list/List.d.ts +86 -7
- package/dist/components/layout/list/List.d.ts.map +1 -1
- package/dist/components/layout/list/List.js +15 -9
- package/dist/components/layout/list/List.js.map +1 -1
- package/dist/components/layout/list/List.stories.d.ts +9 -0
- package/dist/components/layout/list/List.stories.d.ts.map +1 -0
- package/dist/components/layout/list/List.stories.js +53 -0
- package/dist/components/layout/list/List.stories.js.map +1 -0
- package/dist/components/layout/list/Value.d.ts +81 -1
- package/dist/components/layout/list/Value.d.ts.map +1 -1
- package/dist/components/layout/list/Value.js +9 -2
- package/dist/components/layout/list/Value.js.map +1 -1
- package/dist/components/layout/list/Value.stories.d.ts +8 -0
- package/dist/components/layout/list/Value.stories.d.ts.map +1 -0
- package/dist/components/layout/list/Value.stories.js +29 -0
- package/dist/components/layout/list/Value.stories.js.map +1 -0
- package/dist/components/layout/section/Section.d.ts +83 -8
- package/dist/components/layout/section/Section.d.ts.map +1 -1
- package/dist/components/layout/section/Section.js +17 -15
- package/dist/components/layout/section/Section.js.map +1 -1
- package/dist/components/layout/section/Section.stories.d.ts +8 -0
- package/dist/components/layout/section/Section.stories.d.ts.map +1 -0
- package/dist/components/layout/section/Section.stories.js +37 -0
- package/dist/components/layout/section/Section.stories.js.map +1 -0
- package/dist/components/layout/section/SectionContainer.d.ts +80 -5
- package/dist/components/layout/section/SectionContainer.d.ts.map +1 -1
- package/dist/components/layout/section/SectionContainer.js +9 -8
- package/dist/components/layout/section/SectionContainer.js.map +1 -1
- package/dist/components/ui/message/Message.d.ts +17 -9
- package/dist/components/ui/message/Message.d.ts.map +1 -1
- package/dist/components/ui/message/Message.styled.d.ts +17 -9
- package/dist/components/ui/message/Message.styled.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- 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 +125 -69
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +2 -0
- package/dist/theme.js.map +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Drawer.html +14 -16
- package/docs/classes/Pop.html +14 -16
- package/docs/classes/ToasterProvider.html +10 -12
- package/docs/enums/ICON.html +14 -16
- package/docs/functions/Action.html +6 -8
- package/docs/functions/Button.html +6 -8
- package/docs/functions/Card.html +6 -8
- package/docs/functions/Checkbox.html +6 -8
- package/docs/functions/Choice.html +7 -9
- package/docs/functions/CoveringLoader.html +6 -8
- package/docs/functions/DirectionPad.html +6 -8
- package/docs/functions/EqualActions.html +6 -8
- package/docs/functions/FullLoader.html +6 -8
- package/docs/functions/HandleEsc.html +6 -8
- package/docs/functions/Header.html +6 -8
- package/docs/functions/HeaderIconAction.html +6 -8
- package/docs/functions/Icon-1.html +6 -8
- package/docs/functions/If.html +6 -8
- package/docs/functions/Input.html +7 -9
- package/docs/functions/KeyValue.html +6 -8
- package/docs/functions/Label.html +6 -8
- package/docs/functions/List-1.html +18 -10
- package/docs/functions/Loader.html +6 -8
- package/docs/functions/Loading.html +6 -8
- package/docs/functions/Message.html +6 -8
- package/docs/functions/Modal-1.html +6 -8
- package/docs/functions/ModalButtons-1.html +6 -8
- package/docs/functions/PopLoader.html +6 -8
- package/docs/functions/PopOption.html +6 -8
- package/docs/functions/SearchContainer.html +6 -8
- package/docs/functions/Section.html +146 -0
- package/docs/functions/Select.html +6 -8
- package/docs/functions/Selector.html +7 -9
- package/docs/functions/Spacer.html +6 -8
- package/docs/functions/Stats.html +6 -8
- package/docs/functions/StickyHeader-1.html +6 -8
- package/docs/functions/StickyHeader.Content.html +5 -7
- package/docs/functions/Table.html +6 -8
- package/docs/functions/TextArea.html +6 -8
- package/docs/functions/Toggle.html +6 -8
- package/docs/functions/getCssText.html +6 -8
- package/docs/functions/styled.html +6 -8
- package/docs/functions/useToaster.html +7 -9
- package/docs/index.html +6 -8
- package/docs/modules/List.html +10 -9
- package/docs/modules/Modal.html +6 -8
- package/docs/modules/ModalButtons.html +6 -8
- package/docs/modules/StickyHeader.html +6 -8
- package/docs/modules.html +9 -13
- package/docs/pages/tutorials/Test.html +6 -8
- package/docs/types/ThemeCSS.html +7 -9
- package/docs/variables/List.Header.html +8 -9
- package/docs/variables/List.Item.html +54 -0
- package/docs/variables/Modal.NegateMargin.html +5 -7
- package/docs/variables/ModalButtons.Button.html +5 -7
- package/docs/variables/cssReset.html +7 -9
- package/docs/variables/miuiScrollbars.html +96 -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 +68 -36
- 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/{layout/list/Value.styled.d.ts → form/textarea/TextArea.styled.d.ts} +24 -12
- 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/components/layout/list/Header.d.ts +174 -7
- package/esm/components/layout/list/Header.d.ts.map +1 -1
- package/esm/components/layout/list/Header.js +24 -11
- package/esm/components/layout/list/Header.js.map +1 -1
- package/esm/components/layout/list/Header.stories.d.ts +8 -0
- package/esm/components/layout/list/Header.stories.d.ts.map +1 -0
- package/esm/components/layout/list/Header.stories.js +27 -0
- package/esm/components/layout/list/Header.stories.js.map +1 -0
- package/esm/components/layout/list/Item.d.ts +88 -7
- package/esm/components/layout/list/Item.d.ts.map +1 -1
- package/esm/components/layout/list/Item.js +64 -33
- package/esm/components/layout/list/Item.js.map +1 -1
- package/esm/components/layout/list/Item.stories.d.ts +10 -0
- package/esm/components/layout/list/Item.stories.d.ts.map +1 -0
- package/esm/components/layout/list/Item.stories.js +57 -0
- package/esm/components/layout/list/Item.stories.js.map +1 -0
- package/esm/components/layout/list/Label.d.ts +83 -5
- package/esm/components/layout/list/Label.d.ts.map +1 -1
- package/esm/components/layout/list/Label.js +12 -6
- package/esm/components/layout/list/Label.js.map +1 -1
- package/esm/components/layout/list/Label.stories.d.ts +8 -0
- package/esm/components/layout/list/Label.stories.d.ts.map +1 -0
- package/esm/components/layout/list/Label.stories.js +29 -0
- package/esm/components/layout/list/Label.stories.js.map +1 -0
- package/esm/components/layout/list/List.d.ts +86 -7
- package/esm/components/layout/list/List.d.ts.map +1 -1
- package/esm/components/layout/list/List.js +15 -9
- package/esm/components/layout/list/List.js.map +1 -1
- package/esm/components/layout/list/List.stories.d.ts +9 -0
- package/esm/components/layout/list/List.stories.d.ts.map +1 -0
- package/esm/components/layout/list/List.stories.js +46 -0
- package/esm/components/layout/list/List.stories.js.map +1 -0
- package/esm/components/layout/list/Value.d.ts +81 -1
- package/esm/components/layout/list/Value.d.ts.map +1 -1
- package/esm/components/layout/list/Value.js +9 -1
- package/esm/components/layout/list/Value.js.map +1 -1
- package/esm/components/layout/list/Value.stories.d.ts +8 -0
- package/esm/components/layout/list/Value.stories.d.ts.map +1 -0
- package/esm/components/layout/list/Value.stories.js +23 -0
- package/esm/components/layout/list/Value.stories.js.map +1 -0
- package/esm/components/layout/section/Section.d.ts +83 -8
- package/esm/components/layout/section/Section.d.ts.map +1 -1
- package/esm/components/layout/section/Section.js +17 -12
- package/esm/components/layout/section/Section.js.map +1 -1
- package/esm/components/layout/section/Section.stories.d.ts +8 -0
- package/esm/components/layout/section/Section.stories.d.ts.map +1 -0
- package/esm/components/layout/section/Section.stories.js +31 -0
- package/esm/components/layout/section/Section.stories.js.map +1 -0
- package/esm/components/layout/section/SectionContainer.d.ts +80 -5
- package/esm/components/layout/section/SectionContainer.d.ts.map +1 -1
- package/esm/components/layout/section/SectionContainer.js +9 -5
- package/esm/components/layout/section/SectionContainer.js.map +1 -1
- package/esm/components/ui/message/Message.d.ts +17 -9
- package/esm/components/ui/message/Message.d.ts.map +1 -1
- package/esm/components/ui/message/Message.styled.d.ts +17 -9
- package/esm/components/ui/message/Message.styled.d.ts.map +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- 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 +125 -69
- package/esm/theme.d.ts.map +1 -1
- package/esm/theme.js +2 -0
- package/esm/theme.js.map +1 -1
- package/package.json +7 -6
- package/src/components/form/input/Input.css.ts +60 -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/components/layout/list/Header.stories.tsx +40 -0
- package/src/components/layout/list/Header.tsx +43 -26
- package/src/components/layout/list/Item.stories.tsx +69 -0
- package/src/components/layout/list/Item.tsx +118 -46
- package/src/components/layout/list/Label.stories.tsx +45 -0
- package/src/components/layout/list/Label.tsx +21 -12
- package/src/components/layout/list/List.stories.tsx +84 -0
- package/src/components/layout/list/List.tsx +34 -23
- package/src/components/layout/list/Value.stories.tsx +37 -0
- package/src/components/layout/list/Value.tsx +15 -1
- package/src/components/layout/section/Section.stories.tsx +54 -0
- package/src/components/layout/section/Section.tsx +27 -27
- package/src/components/layout/section/SectionContainer.tsx +10 -13
- package/src/demo/components/form/Choice.tsx +3 -3
- package/src/demo/components/form/Form.tsx +1 -1
- package/src/demo/components/form/Search.tsx +3 -1
- package/src/demo/components/form/Toggle.tsx +3 -1
- package/src/demo/components/layout/card/Card.tsx +3 -3
- package/src/demo/components/ui/icons/Icons.tsx +3 -1
- package/src/demo/components/ui/keyValue/KeyValue.tsx +1 -1
- package/src/demo/components/ui/modal/Modal.tsx +4 -2
- package/src/demo/components/ui/pop/Pop.tsx +1 -1
- package/src/demo/componentsMap.ts +0 -52
- package/src/index.ts +3 -2
- package/src/pages/_app.tsx +2 -0
- package/src/scrollbars.css.ts +56 -0
- package/src/theme.ts +5 -3
- package/dist/components/form/TextArea.d.ts.map +0 -1
- package/dist/components/form/TextArea.js.map +0 -1
- package/dist/components/layout/list/Header.module.scss +0 -8
- package/dist/components/layout/list/Item.module.scss +0 -46
- package/dist/components/layout/list/Label.module.scss +0 -9
- package/dist/components/layout/list/List.module.scss +0 -8
- package/dist/components/layout/list/Value.styled.d.ts.map +0 -1
- package/dist/components/layout/list/Value.styled.js +0 -13
- package/dist/components/layout/list/Value.styled.js.map +0 -1
- package/dist/components/layout/section/Section.module.scss +0 -24
- package/dist/components/layout/section/SectionContainer.module.scss +0 -4
- package/docs/functions/Item-1.html +0 -109
- package/docs/functions/Section-1.html +0 -109
- package/docs/modules/Item.html +0 -64
- package/docs/modules/Section.html +0 -61
- package/docs/variables/Item.Label.html +0 -56
- package/docs/variables/Item.Value.html +0 -56
- package/docs/variables/Section.Container.html +0 -55
- 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/esm/components/layout/list/Header.module.scss +0 -8
- package/esm/components/layout/list/Item.module.scss +0 -46
- package/esm/components/layout/list/Label.module.scss +0 -9
- package/esm/components/layout/list/List.module.scss +0 -8
- package/esm/components/layout/list/Value.styled.d.ts.map +0 -1
- package/esm/components/layout/list/Value.styled.js +0 -10
- package/esm/components/layout/list/Value.styled.js.map +0 -1
- package/esm/components/layout/section/Section.module.scss +0 -24
- package/esm/components/layout/section/SectionContainer.module.scss +0 -4
- package/src/components/layout/list/Header.module.scss +0 -8
- package/src/components/layout/list/Item.module.scss +0 -46
- package/src/components/layout/list/Label.module.scss +0 -9
- package/src/components/layout/list/List.module.scss +0 -8
- package/src/components/layout/list/Value.styled.ts +0 -13
- package/src/components/layout/section/Section.module.scss +0 -24
- package/src/components/layout/section/SectionContainer.module.scss +0 -4
- package/src/demo/components/form/Input.tsx +0 -28
- package/src/demo/components/layout/list/Header.tsx +0 -23
- package/src/demo/components/layout/list/Inset.tsx +0 -23
- package/src/demo/components/layout/list/ItemRatio.tsx +0 -20
- package/src/demo/components/layout/list/Label.tsx +0 -31
- package/src/demo/components/layout/list/List.Item.module.scss +0 -7
- package/src/demo/components/layout/list/List.Item.tsx +0 -24
- package/src/demo/components/layout/list/Selection.tsx +0 -16
- package/src/demo/components/layout/list/Value.module.scss +0 -4
- package/src/demo/components/layout/list/Value.tsx +0 -25
- package/src/demo/components/layout/section/Section.tsx +0 -33
- package/src/demo/components/ui/message/Message.tsx +0 -27
- /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
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.OnClick = exports.Alignment = exports.Primary = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const NextLink_js_1 = require("../../../demo/NextLink.js");
|
|
9
|
+
const Item_js_1 = require("./Item.js");
|
|
10
|
+
const List_js_1 = require("./List.js");
|
|
11
|
+
const meta = {
|
|
12
|
+
title: "Components/Layout/List/Item",
|
|
13
|
+
component: Item_js_1.Item,
|
|
14
|
+
tags: ["autodocs", "layout"],
|
|
15
|
+
argTypes: {
|
|
16
|
+
inset: {
|
|
17
|
+
type: "boolean",
|
|
18
|
+
},
|
|
19
|
+
Link: {
|
|
20
|
+
controls: "none",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
const Primary = {
|
|
25
|
+
args: {
|
|
26
|
+
children: "I am a list item",
|
|
27
|
+
inset: false,
|
|
28
|
+
Link: NextLink_js_1.NextLink,
|
|
29
|
+
},
|
|
30
|
+
render: (args) => {
|
|
31
|
+
return react_1.default.createElement(List_js_1.List, null,
|
|
32
|
+
react_1.default.createElement(Item_js_1.Item, Object.assign({}, args)));
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
exports.Primary = Primary;
|
|
36
|
+
const Alignment = {
|
|
37
|
+
args: {
|
|
38
|
+
children: [
|
|
39
|
+
react_1.default.createElement("div", { key: "1st" }, "first"),
|
|
40
|
+
react_1.default.createElement("div", { key: "2nd" }, "2nd"),
|
|
41
|
+
react_1.default.createElement("div", { key: "3rd" }, "last"),
|
|
42
|
+
],
|
|
43
|
+
ratio: "1/2/1",
|
|
44
|
+
},
|
|
45
|
+
render: (args) => {
|
|
46
|
+
return react_1.default.createElement(List_js_1.List, null,
|
|
47
|
+
react_1.default.createElement(Item_js_1.Item, Object.assign({}, args)));
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
exports.Alignment = Alignment;
|
|
51
|
+
const OnClick = {
|
|
52
|
+
args: {
|
|
53
|
+
children: "I am a list item, but I will render a button, click me",
|
|
54
|
+
onClick: () => {
|
|
55
|
+
alert("Clicked!");
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
render: (args) => {
|
|
59
|
+
return react_1.default.createElement(List_js_1.List, null,
|
|
60
|
+
react_1.default.createElement(Item_js_1.Item, Object.assign({}, args)));
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
exports.OnClick = OnClick;
|
|
64
|
+
exports.default = meta;
|
|
65
|
+
//# sourceMappingURL=Item.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Item.stories.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Item.stories.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAI1B,2DAAqD;AAErD,uCAAiC;AACjC,uCAAiC;AAEjC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,cAAI;IACf,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC5B,QAAQ,EAAE;QACN,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;SAClB;QACD,IAAI,EAAE;YACF,QAAQ,EAAE,MAAM;SACnB;KACJ;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,QAAQ,EAAE,kBAAkB;QAC5B,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,sBAAQ;KACjB;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,8BAAC,cAAI;YAAC,8BAAC,cAAI,oBAAK,IAAI,EAAI,CAAO,CAAC;IAC3C,CAAC;CACJ,CAAC;AA6BE,0BAAO;AA3BX,MAAM,SAAS,GAAU;IACrB,IAAI,EAAE;QACF,QAAQ,EAAE;YACN,uCAAK,GAAG,EAAE,KAAK,YAAa;YAC5B,uCAAK,GAAG,EAAE,KAAK,UAAW;YAC1B,uCAAK,GAAG,EAAE,KAAK,WAAY;SAC9B;QACD,KAAK,EAAE,OAAO;KACjB;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,8BAAC,cAAI;YAAC,8BAAC,cAAI,oBAAK,IAAI,EAAI,CAAO,CAAC;IAC3C,CAAC;CACJ,CAAC;AAgBE,8BAAS;AAdb,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,QAAQ,EAAE,wDAAwD;QAClE,OAAO,EAAE,GAAG,EAAE;YACV,KAAK,CAAC,UAAU,CAAC,CAAC;QACtB,CAAC;KACJ;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,8BAAC,cAAI;YAAC,8BAAC,cAAI,oBAAK,IAAI,EAAI,CAAO,CAAC;IAC3C,CAAC;CACJ,CAAC;AAKE,0BAAO;AAGX,kBAAe,IAAI,CAAC"}
|
|
@@ -1,10 +1,88 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
-
|
|
3
|
+
declare const StyledLabel: import("@stitches/react/types/styled-component.js").StyledComponent<"div", {}, {}, import("@stitches/react/types/css-util.js").CSS<{}, {
|
|
4
|
+
colors: {
|
|
5
|
+
background: string;
|
|
6
|
+
mainColor: string;
|
|
7
|
+
mainColorAlt: string;
|
|
8
|
+
activeBg: string;
|
|
9
|
+
inactiveBg: string;
|
|
10
|
+
inactiveDarkBg: string;
|
|
11
|
+
toggleHandleBg: string;
|
|
12
|
+
toggleHandleBorder: string;
|
|
13
|
+
toggleBgDisabled: string;
|
|
14
|
+
toggleHandleBorderDisabled: string;
|
|
15
|
+
toggleHandleBgDisabled: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
border: string;
|
|
18
|
+
buttonBorder: string;
|
|
19
|
+
headerBorder: string;
|
|
20
|
+
headerBg: string;
|
|
21
|
+
headerText: string;
|
|
22
|
+
text: string;
|
|
23
|
+
sub: string;
|
|
24
|
+
popText: string;
|
|
25
|
+
toolbarBorder: string;
|
|
26
|
+
toolbarBg: string;
|
|
27
|
+
modalBg: string;
|
|
28
|
+
modalButtonBg: string;
|
|
29
|
+
modalButtonBorder: string;
|
|
30
|
+
inputDisabledBg: string;
|
|
31
|
+
inputDisabledText: string;
|
|
32
|
+
choiceBg: string;
|
|
33
|
+
choiceText: string;
|
|
34
|
+
choiceActiveBg: string;
|
|
35
|
+
choiceActiveText: string;
|
|
36
|
+
choiceBorder: string;
|
|
37
|
+
selectorText: string;
|
|
38
|
+
selectorActive: string;
|
|
39
|
+
blue1: string;
|
|
40
|
+
blue2: string;
|
|
41
|
+
blue3: string;
|
|
42
|
+
orange1: string;
|
|
43
|
+
orange1Darker: string;
|
|
44
|
+
purple1: string;
|
|
45
|
+
green1: string;
|
|
46
|
+
green1Darker: string;
|
|
47
|
+
pink1: string;
|
|
48
|
+
red1: string;
|
|
49
|
+
yellow1: string;
|
|
50
|
+
yellow2: string;
|
|
51
|
+
yellow3: string;
|
|
52
|
+
pinky1: string;
|
|
53
|
+
pinky2: string;
|
|
54
|
+
pinky3: string;
|
|
55
|
+
grey1: string;
|
|
56
|
+
focusColor: string;
|
|
57
|
+
scrollbarsThumb: string;
|
|
58
|
+
scrollbarsBg: string;
|
|
59
|
+
tableStripedBg: string;
|
|
60
|
+
};
|
|
61
|
+
}, import("@stitches/react/types/config.js").DefaultThemeMap, {
|
|
62
|
+
mx: (value: string | number) => {
|
|
63
|
+
marginLeft: string | number;
|
|
64
|
+
marginRight: string | number;
|
|
65
|
+
};
|
|
66
|
+
my: (value: string | number) => {
|
|
67
|
+
marginTop: string | number;
|
|
68
|
+
marginBottom: string | number;
|
|
69
|
+
};
|
|
70
|
+
px: (value: string | number) => {
|
|
71
|
+
paddingLeft: string | number;
|
|
72
|
+
paddingRight: string | number;
|
|
73
|
+
};
|
|
74
|
+
py: (value: string | number) => {
|
|
75
|
+
paddingTop: string | number;
|
|
76
|
+
paddingBottom: string | number;
|
|
77
|
+
};
|
|
78
|
+
size: (value: string | number) => {
|
|
79
|
+
width: string | number;
|
|
80
|
+
height: string | number;
|
|
81
|
+
};
|
|
82
|
+
}>>;
|
|
83
|
+
type StyledLabelProps = React.ComponentProps<typeof StyledLabel>;
|
|
84
|
+
declare const Label: React.FC<StyledLabelProps & {
|
|
4
85
|
sub?: ReactNode;
|
|
5
|
-
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare const Label: React.FC<Props>;
|
|
86
|
+
}>;
|
|
9
87
|
export { Label };
|
|
10
88
|
//# sourceMappingURL=Label.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYvC,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGf,CAAC;AAEH,KAAK,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAMjE,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG;IAAE,GAAG,CAAC,EAAE,SAAS,CAAA;CAAE,CAO3D,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,17 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
17
|
exports.Label = void 0;
|
|
7
18
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
19
|
+
const theme_js_1 = require("../../../theme.js");
|
|
20
|
+
const SubLabel = (0, theme_js_1.styled)("div", {
|
|
21
|
+
fontSize: (0, theme_js_1.fontPxToRem)(27),
|
|
22
|
+
color: "$sub",
|
|
23
|
+
marginTop: (0, theme_js_1.fontPxToRem)(27 / 3),
|
|
24
|
+
});
|
|
25
|
+
const StyledLabel = (0, theme_js_1.styled)("div", {
|
|
26
|
+
padding: `${(0, theme_js_1.dimensionsPxToRem)(54)} 0`,
|
|
27
|
+
});
|
|
28
|
+
const Label = (_a) => {
|
|
29
|
+
var { sub } = _a, props = __rest(_a, ["sub"]);
|
|
30
|
+
return (react_1.default.createElement(StyledLabel, Object.assign({}, props),
|
|
13
31
|
react_1.default.createElement("div", null, props.children),
|
|
14
|
-
sub));
|
|
32
|
+
sub && react_1.default.createElement(SubLabel, null, sub)));
|
|
15
33
|
};
|
|
16
34
|
exports.Label = Label;
|
|
17
35
|
//# sourceMappingURL=Label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Label.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Label.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAG1B,gDAA2E;AAE3E,MAAM,QAAQ,GAAG,IAAA,iBAAM,EAAC,KAAK,EAAE;IAE3B,QAAQ,EAAE,IAAA,sBAAW,EAAC,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM;IAEb,SAAS,EAAE,IAAA,sBAAW,EAAC,EAAE,GAAG,CAAC,CAAC;CACjC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,IAAA,iBAAM,EAAC,KAAK,EAAE;IAE9B,OAAO,EAAE,GAAG,IAAA,4BAAiB,EAAC,EAAE,CAAC,IAAI;CACxC,CAAC,CAAC;AAQH,MAAM,KAAK,GAAqD,CAAC,EAAiB,EAAE,EAAE;QAArB,EAAE,GAAG,OAAY,EAAP,KAAK,cAAf,OAAiB,CAAF;IAC5E,OAAO,CACH,8BAAC,WAAW,oBAAK,KAAK;QAClB,2CAAM,KAAK,CAAC,QAAQ,CAAO;QAC1B,GAAG,IAAI,8BAAC,QAAQ,QAAE,GAAG,CAAY,CACxB,CACjB,CAAC;AACN,CAAC,CAAC;AAEO,sBAAK"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
import { Label } from "./Label.js";
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
type Story = StoryObj<typeof Label>;
|
|
5
|
+
declare const Primary: Story;
|
|
6
|
+
export { Primary, };
|
|
7
|
+
export default meta;
|
|
8
|
+
//# sourceMappingURL=Label.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Label.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAInC,QAAA,MAAM,IAAI,EAAE,IASX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,QAAA,MAAM,OAAO,EAAE,KAiBd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Primary = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const Label_js_1 = require("./Label.js");
|
|
9
|
+
const List_js_1 = require("./List.js");
|
|
10
|
+
const Item_js_1 = require("./Item.js");
|
|
11
|
+
const meta = {
|
|
12
|
+
title: "Components/Layout/List/Label",
|
|
13
|
+
component: Label_js_1.Label,
|
|
14
|
+
tags: ["autodocs", "layout"],
|
|
15
|
+
argTypes: {
|
|
16
|
+
sub: {
|
|
17
|
+
type: "string",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
const Primary = {
|
|
22
|
+
args: {
|
|
23
|
+
children: "I am a label",
|
|
24
|
+
sub: "Sub text",
|
|
25
|
+
},
|
|
26
|
+
render: (args) => {
|
|
27
|
+
return (react_1.default.createElement(List_js_1.List, null,
|
|
28
|
+
react_1.default.createElement(Item_js_1.Item, null,
|
|
29
|
+
react_1.default.createElement(Label_js_1.Label, Object.assign({}, args))),
|
|
30
|
+
react_1.default.createElement(Item_js_1.Item, null, "I am classic list item")));
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
exports.Primary = Primary;
|
|
34
|
+
exports.default = meta;
|
|
35
|
+
//# sourceMappingURL=Label.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.stories.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Label.stories.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAI1B,yCAAmC;AACnC,uCAAiC;AACjC,uCAAiC;AAEjC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,gBAAK;IAChB,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC5B,QAAQ,EAAE;QACN,GAAG,EAAE;YACD,IAAI,EAAE,QAAQ;SACjB;KACJ;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,QAAQ,EAAE,cAAc;QACxB,GAAG,EAAE,UAAU;KAClB;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,8BAAC,cAAI;YACD,8BAAC,cAAI;gBACD,8BAAC,gBAAK,oBAAK,IAAI,EAAI,CAChB;YACP,8BAAC,cAAI,iCAEE,CACJ,CACV,CAAC;IACN,CAAC;CACJ,CAAC;AAGE,0BAAO;AAGX,kBAAe,IAAI,CAAC"}
|
|
@@ -1,14 +1,93 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Header } from "./Header.js";
|
|
3
|
-
|
|
4
|
-
interface Props {
|
|
5
|
-
className?: string;
|
|
6
|
-
variant?: Variant | Variant[];
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}
|
|
3
|
+
import { Item } from "./Item.js";
|
|
9
4
|
interface SubComponents {
|
|
10
5
|
Header: typeof Header;
|
|
6
|
+
Item: typeof Item;
|
|
11
7
|
}
|
|
12
|
-
declare const
|
|
8
|
+
declare const StyledList: import("@stitches/react/types/styled-component.js").StyledComponent<"ul", {
|
|
9
|
+
inset?: boolean | "true";
|
|
10
|
+
}, {}, import("@stitches/react/types/css-util.js").CSS<{}, {
|
|
11
|
+
colors: {
|
|
12
|
+
background: string;
|
|
13
|
+
mainColor: string;
|
|
14
|
+
mainColorAlt: string;
|
|
15
|
+
activeBg: string;
|
|
16
|
+
inactiveBg: string;
|
|
17
|
+
inactiveDarkBg: string;
|
|
18
|
+
toggleHandleBg: string;
|
|
19
|
+
toggleHandleBorder: string;
|
|
20
|
+
toggleBgDisabled: string;
|
|
21
|
+
toggleHandleBorderDisabled: string;
|
|
22
|
+
toggleHandleBgDisabled: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
border: string;
|
|
25
|
+
buttonBorder: string;
|
|
26
|
+
headerBorder: string;
|
|
27
|
+
headerBg: string;
|
|
28
|
+
headerText: string;
|
|
29
|
+
text: string;
|
|
30
|
+
sub: string;
|
|
31
|
+
popText: string;
|
|
32
|
+
toolbarBorder: string;
|
|
33
|
+
toolbarBg: string;
|
|
34
|
+
modalBg: string;
|
|
35
|
+
modalButtonBg: string;
|
|
36
|
+
modalButtonBorder: string;
|
|
37
|
+
inputDisabledBg: string;
|
|
38
|
+
inputDisabledText: string;
|
|
39
|
+
choiceBg: string;
|
|
40
|
+
choiceText: string;
|
|
41
|
+
choiceActiveBg: string;
|
|
42
|
+
choiceActiveText: string;
|
|
43
|
+
choiceBorder: string;
|
|
44
|
+
selectorText: string;
|
|
45
|
+
selectorActive: string;
|
|
46
|
+
blue1: string;
|
|
47
|
+
blue2: string;
|
|
48
|
+
blue3: string;
|
|
49
|
+
orange1: string;
|
|
50
|
+
orange1Darker: string;
|
|
51
|
+
purple1: string;
|
|
52
|
+
green1: string;
|
|
53
|
+
green1Darker: string;
|
|
54
|
+
pink1: string;
|
|
55
|
+
red1: string;
|
|
56
|
+
yellow1: string;
|
|
57
|
+
yellow2: string;
|
|
58
|
+
yellow3: string;
|
|
59
|
+
pinky1: string;
|
|
60
|
+
pinky2: string;
|
|
61
|
+
pinky3: string;
|
|
62
|
+
grey1: string;
|
|
63
|
+
focusColor: string;
|
|
64
|
+
scrollbarsThumb: string;
|
|
65
|
+
scrollbarsBg: string;
|
|
66
|
+
tableStripedBg: string;
|
|
67
|
+
};
|
|
68
|
+
}, import("@stitches/react/types/config.js").DefaultThemeMap, {
|
|
69
|
+
mx: (value: string | number) => {
|
|
70
|
+
marginLeft: string | number;
|
|
71
|
+
marginRight: string | number;
|
|
72
|
+
};
|
|
73
|
+
my: (value: string | number) => {
|
|
74
|
+
marginTop: string | number;
|
|
75
|
+
marginBottom: string | number;
|
|
76
|
+
};
|
|
77
|
+
px: (value: string | number) => {
|
|
78
|
+
paddingLeft: string | number;
|
|
79
|
+
paddingRight: string | number;
|
|
80
|
+
};
|
|
81
|
+
py: (value: string | number) => {
|
|
82
|
+
paddingTop: string | number;
|
|
83
|
+
paddingBottom: string | number;
|
|
84
|
+
};
|
|
85
|
+
size: (value: string | number) => {
|
|
86
|
+
width: string | number;
|
|
87
|
+
height: string | number;
|
|
88
|
+
};
|
|
89
|
+
}>>;
|
|
90
|
+
type StyledListProps = React.ComponentProps<typeof StyledList>;
|
|
91
|
+
declare const List: React.FC<StyledListProps> & SubComponents;
|
|
13
92
|
export { List };
|
|
14
93
|
//# sourceMappingURL=List.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,UAAU,aAAa;IACnB,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,IAAI,EAAE,OAAO,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYd,CAAC;AAEH,KAAK,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;AAc/D,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,GAAG,aAavC,CAAC;AAIF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -5,26 +5,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.List = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const
|
|
9
|
-
const index_js_1 = require("../../../utils/index.js");
|
|
8
|
+
const theme_js_1 = require("../../../theme.js");
|
|
10
9
|
const Header_js_1 = require("./Header.js");
|
|
11
10
|
const Item_js_1 = require("./Item.js");
|
|
12
|
-
const
|
|
11
|
+
const StyledList = (0, theme_js_1.styled)("ul", {
|
|
12
|
+
margin: `0 ${(0, theme_js_1.pxToRem)(23)}`,
|
|
13
|
+
padding: 0,
|
|
14
|
+
variants: {
|
|
15
|
+
inset: {
|
|
16
|
+
true: {
|
|
17
|
+
margin: 0,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
13
22
|
const List = (props) => {
|
|
14
|
-
const v = (0, index_js_1.makeVariants)(props.variant);
|
|
15
23
|
const chld = react_1.default.Children.map(props.children, (child) => {
|
|
16
24
|
if (child && typeof child === "object" && "type" in child && (child.type === Item_js_1.Item || child.type === Header_js_1.Header)) {
|
|
17
25
|
return react_1.default.cloneElement(child, {
|
|
18
|
-
|
|
26
|
+
inset: props.inset,
|
|
19
27
|
});
|
|
20
28
|
}
|
|
21
29
|
return child;
|
|
22
30
|
});
|
|
23
|
-
|
|
24
|
-
[List_module_scss_1.default.inset]: v.includes("inset"),
|
|
25
|
-
});
|
|
26
|
-
return (react_1.default.createElement("ul", { className: cls }, chld));
|
|
31
|
+
return (react_1.default.createElement(StyledList, Object.assign({}, props), chld));
|
|
27
32
|
};
|
|
28
33
|
exports.List = List;
|
|
29
34
|
List.Header = Header_js_1.Header;
|
|
35
|
+
List.Item = Item_js_1.Item;
|
|
30
36
|
//# sourceMappingURL=List.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../../src/components/layout/list/List.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,
|
|
1
|
+
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../../src/components/layout/list/List.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,gDAAoD;AAEpD,2CAAqC;AACrC,uCAAiC;AAOjC,MAAM,UAAU,GAAG,IAAA,iBAAM,EAAC,IAAI,EAAE;IAE5B,MAAM,EAAE,KAAK,IAAA,kBAAO,EAAC,EAAE,CAAC,EAAE;IAC1B,OAAO,EAAE,CAAC;IAEV,QAAQ,EAAE;QACN,KAAK,EAAE;YACH,IAAI,EAAE;gBACF,MAAM,EAAE,CAAC;aACZ;SACJ;KACJ;CACJ,CAAC,CAAC;AAgBH,MAAM,IAAI,GAA8C,CAAC,KAAK,EAAE,EAAE;IAC9D,MAAM,IAAI,GAAG,eAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;QACtD,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,cAAI,IAAI,KAAK,CAAC,IAAI,KAAK,kBAAM,CAAC,EAAE;YACzG,OAAO,eAAK,CAAC,YAAY,CAAC,KAAK,EAAE;gBAC7B,KAAK,EAAE,KAAK,CAAC,KAAK;aACrB,CAAC,CAAC;SACN;QACD,OAAO,KAAK,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,OAAO,CACH,8BAAC,UAAU,oBAAK,KAAK,GAAG,IAAI,CAAc,CAC7C,CAAC;AACN,CAAC,CAAC;AAIO,oBAAI;AAHb,IAAI,CAAC,MAAM,GAAG,kBAAM,CAAC;AACrB,IAAI,CAAC,IAAI,GAAG,cAAI,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
import { List } from "./List.js";
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
type Story = StoryObj<typeof List>;
|
|
5
|
+
declare const Primary: Story;
|
|
6
|
+
declare const FullFeaturedExample: Story;
|
|
7
|
+
export { Primary, FullFeaturedExample, };
|
|
8
|
+
export default meta;
|
|
9
|
+
//# sourceMappingURL=List.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/List.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IASX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,QAAA,MAAM,OAAO,EAAE,KAYd,CAAC;AAEF,QAAA,MAAM,mBAAmB,EAAE,KAyC1B,CAAC;AAEF,OAAO,EACH,OAAO,EACP,mBAAmB,GACtB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FullFeaturedExample = exports.Primary = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const Icon_js_1 = require("../../icons/Icon.js");
|
|
9
|
+
const List_js_1 = require("./List.js");
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Components/Layout/List/List",
|
|
12
|
+
component: List_js_1.List,
|
|
13
|
+
tags: ["autodocs", "layout"],
|
|
14
|
+
argTypes: {
|
|
15
|
+
inset: {
|
|
16
|
+
type: "boolean",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
const Primary = {
|
|
21
|
+
args: {
|
|
22
|
+
inset: false,
|
|
23
|
+
},
|
|
24
|
+
render: (args) => {
|
|
25
|
+
return (react_1.default.createElement(List_js_1.List, Object.assign({}, args),
|
|
26
|
+
react_1.default.createElement(List_js_1.List.Item, null, "I am a list item"),
|
|
27
|
+
react_1.default.createElement(List_js_1.List.Item, null, "I am a list item")));
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
exports.Primary = Primary;
|
|
31
|
+
const FullFeaturedExample = {
|
|
32
|
+
render: (args) => {
|
|
33
|
+
return (react_1.default.createElement(List_js_1.List, null,
|
|
34
|
+
react_1.default.createElement(List_js_1.List.Header, null, "GPS settings"),
|
|
35
|
+
react_1.default.createElement(List_js_1.List.Item, null,
|
|
36
|
+
react_1.default.createElement(List_js_1.List.Item.Label, { sub: "Higher precision means higher battery usage" }, "GPS precision"),
|
|
37
|
+
react_1.default.createElement(List_js_1.List.Item.Value, null, "Low"),
|
|
38
|
+
react_1.default.createElement(Icon_js_1.Icon, { name: Icon_js_1.ICON.forward })),
|
|
39
|
+
react_1.default.createElement(List_js_1.List.Item, null,
|
|
40
|
+
react_1.default.createElement(List_js_1.List.Item, null, "Something")),
|
|
41
|
+
react_1.default.createElement(List_js_1.List.Header, null, "Last trips"),
|
|
42
|
+
react_1.default.createElement(List_js_1.List.Item, null, "Portugal"),
|
|
43
|
+
react_1.default.createElement(List_js_1.List.Item, null,
|
|
44
|
+
react_1.default.createElement(List_js_1.List.Item.Label, { sub: "Visited 2 times in last year" }, "Poland")),
|
|
45
|
+
react_1.default.createElement(List_js_1.List.Item, null, "Sweden"),
|
|
46
|
+
react_1.default.createElement(List_js_1.List.Header, null, "Choose one option"),
|
|
47
|
+
react_1.default.createElement(List_js_1.List.Item, { selected: true }, "yes"),
|
|
48
|
+
react_1.default.createElement(List_js_1.List.Item, { selected: false }, "no")));
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
exports.FullFeaturedExample = FullFeaturedExample;
|
|
52
|
+
exports.default = meta;
|
|
53
|
+
//# sourceMappingURL=List.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.stories.js","sourceRoot":"","sources":["../../../../src/components/layout/list/List.stories.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAI1B,iDAAiD;AAEjD,uCAAiC;AAEjC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,cAAI;IACf,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC5B,QAAQ,EAAE;QACN,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;SAClB;KACJ;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,KAAK,EAAE,KAAK;KACf;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,8BAAC,cAAI,oBAAK,IAAI;YACV,8BAAC,cAAI,CAAC,IAAI,2BAA6B;YACvC,8BAAC,cAAI,CAAC,IAAI,2BAA6B,CACpC,CACV,CAAC;IACN,CAAC;CACJ,CAAC;AA8CE,0BAAO;AA5CX,MAAM,mBAAmB,GAAU;IAC/B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,8BAAC,cAAI;YACD,8BAAC,cAAI,CAAC,MAAM,uBAA2B;YACvC,8BAAC,cAAI,CAAC,IAAI;gBACN,8BAAC,cAAI,CAAC,IAAI,CAAC,KAAK,IAAC,GAAG,EAAE,6CAA6C,oBAEjD;gBAClB,8BAAC,cAAI,CAAC,IAAI,CAAC,KAAK,cAEE;gBAClB,8BAAC,cAAI,IAAC,IAAI,EAAE,cAAI,CAAC,OAAO,GAAI,CACpB;YACZ,8BAAC,cAAI,CAAC,IAAI;gBACN,8BAAC,cAAI,CAAC,IAAI,oBAEE,CACJ;YACZ,8BAAC,cAAI,CAAC,MAAM,qBAEE;YACd,8BAAC,cAAI,CAAC,IAAI,mBAEE;YACZ,8BAAC,cAAI,CAAC,IAAI;gBACN,8BAAC,cAAI,CAAC,IAAI,CAAC,KAAK,IAAC,GAAG,EAAE,8BAA8B,aAElC,CACV;YACZ,8BAAC,cAAI,CAAC,IAAI,iBAEE;YACZ,8BAAC,cAAI,CAAC,MAAM,4BAEE;YACd,8BAAC,cAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,IAAI,UAAiB;YAC1C,8BAAC,cAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,KAAK,SAAgB,CACvC,CACV,CAAC;IACN,CAAC;CACJ,CAAC;AAIE,kDAAmB;AAGvB,kBAAe,IAAI,CAAC"}
|
|
@@ -1,2 +1,82 @@
|
|
|
1
|
-
|
|
1
|
+
declare const Value: import("@stitches/react/types/styled-component.js").StyledComponent<"div", {}, {}, import("@stitches/react/types/css-util.js").CSS<{}, {
|
|
2
|
+
colors: {
|
|
3
|
+
background: string;
|
|
4
|
+
mainColor: string;
|
|
5
|
+
mainColorAlt: string;
|
|
6
|
+
activeBg: string;
|
|
7
|
+
inactiveBg: string;
|
|
8
|
+
inactiveDarkBg: string;
|
|
9
|
+
toggleHandleBg: string;
|
|
10
|
+
toggleHandleBorder: string;
|
|
11
|
+
toggleBgDisabled: string;
|
|
12
|
+
toggleHandleBorderDisabled: string;
|
|
13
|
+
toggleHandleBgDisabled: string;
|
|
14
|
+
icon: string;
|
|
15
|
+
border: string;
|
|
16
|
+
buttonBorder: string;
|
|
17
|
+
headerBorder: string;
|
|
18
|
+
headerBg: string;
|
|
19
|
+
headerText: string;
|
|
20
|
+
text: string;
|
|
21
|
+
sub: string;
|
|
22
|
+
popText: string;
|
|
23
|
+
toolbarBorder: string;
|
|
24
|
+
toolbarBg: string;
|
|
25
|
+
modalBg: string;
|
|
26
|
+
modalButtonBg: string;
|
|
27
|
+
modalButtonBorder: string;
|
|
28
|
+
inputDisabledBg: string;
|
|
29
|
+
inputDisabledText: string;
|
|
30
|
+
choiceBg: string;
|
|
31
|
+
choiceText: string;
|
|
32
|
+
choiceActiveBg: string;
|
|
33
|
+
choiceActiveText: string;
|
|
34
|
+
choiceBorder: string;
|
|
35
|
+
selectorText: string;
|
|
36
|
+
selectorActive: string;
|
|
37
|
+
blue1: string;
|
|
38
|
+
blue2: string;
|
|
39
|
+
blue3: string;
|
|
40
|
+
orange1: string;
|
|
41
|
+
orange1Darker: string;
|
|
42
|
+
purple1: string;
|
|
43
|
+
green1: string;
|
|
44
|
+
green1Darker: string;
|
|
45
|
+
pink1: string;
|
|
46
|
+
red1: string;
|
|
47
|
+
yellow1: string;
|
|
48
|
+
yellow2: string;
|
|
49
|
+
yellow3: string;
|
|
50
|
+
pinky1: string;
|
|
51
|
+
pinky2: string;
|
|
52
|
+
pinky3: string;
|
|
53
|
+
grey1: string;
|
|
54
|
+
focusColor: string;
|
|
55
|
+
scrollbarsThumb: string;
|
|
56
|
+
scrollbarsBg: string;
|
|
57
|
+
tableStripedBg: string;
|
|
58
|
+
};
|
|
59
|
+
}, import("@stitches/react/types/config.js").DefaultThemeMap, {
|
|
60
|
+
mx: (value: string | number) => {
|
|
61
|
+
marginLeft: string | number;
|
|
62
|
+
marginRight: string | number;
|
|
63
|
+
};
|
|
64
|
+
my: (value: string | number) => {
|
|
65
|
+
marginTop: string | number;
|
|
66
|
+
marginBottom: string | number;
|
|
67
|
+
};
|
|
68
|
+
px: (value: string | number) => {
|
|
69
|
+
paddingLeft: string | number;
|
|
70
|
+
paddingRight: string | number;
|
|
71
|
+
};
|
|
72
|
+
py: (value: string | number) => {
|
|
73
|
+
paddingTop: string | number;
|
|
74
|
+
paddingBottom: string | number;
|
|
75
|
+
};
|
|
76
|
+
size: (value: string | number) => {
|
|
77
|
+
width: string | number;
|
|
78
|
+
height: string | number;
|
|
79
|
+
};
|
|
80
|
+
}>>;
|
|
81
|
+
export { Value };
|
|
2
82
|
//# sourceMappingURL=Value.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Value.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Value.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOT,CAAC;AAEH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Value = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
const theme_js_1 = require("../../../theme.js");
|
|
5
|
+
const Value = (0, theme_js_1.styled)("div", {
|
|
6
|
+
color: "$icon",
|
|
7
|
+
fontSize: (0, theme_js_1.fontPxToRem)(26),
|
|
8
|
+
display: "flex",
|
|
9
|
+
justifyContent: "flex-end",
|
|
10
|
+
flex: 1,
|
|
11
|
+
});
|
|
12
|
+
exports.Value = Value;
|
|
6
13
|
//# sourceMappingURL=Value.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Value.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Value.tsx"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"Value.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Value.tsx"],"names":[],"mappings":";;;AAAA,gDAAwD;AAKxD,MAAM,KAAK,GAAG,IAAA,iBAAM,EAAC,KAAK,EAAE;IACxB,KAAK,EAAE,OAAO;IAEd,QAAQ,EAAE,IAAA,sBAAW,EAAC,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM;IACf,cAAc,EAAE,UAAU;IAC1B,IAAI,EAAE,CAAC;CACV,CAAC,CAAC;AAEM,sBAAK"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
import { Value } from "./Value.js";
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
type Story = StoryObj<typeof Value>;
|
|
5
|
+
declare const Primary: Story;
|
|
6
|
+
export { Primary, };
|
|
7
|
+
export default meta;
|
|
8
|
+
//# sourceMappingURL=Value.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Value.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Value.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAInC,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,QAAA,MAAM,OAAO,EAAE,KAcd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
|