react-miui 0.25.1 → 0.27.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 +8 -0
- package/dist/components/form/Checkbox.styled.d.ts +3 -0
- package/dist/components/form/Checkbox.styled.d.ts.map +1 -1
- package/dist/components/form/Select.styled.d.ts +1 -0
- package/dist/components/form/Select.styled.d.ts.map +1 -1
- package/dist/components/form/input/Input.styled.d.ts +4 -0
- package/dist/components/form/input/Input.styled.d.ts.map +1 -1
- package/dist/components/form/textarea/TextArea.styled.d.ts +1 -0
- package/dist/components/form/textarea/TextArea.styled.d.ts.map +1 -1
- package/dist/components/layout/header/Header.styled.d.ts +4 -0
- package/dist/components/layout/header/Header.styled.d.ts.map +1 -1
- package/dist/components/layout/header/HeaderIconAction.styled.d.ts +3 -0
- package/dist/components/layout/header/HeaderIconAction.styled.d.ts.map +1 -1
- package/dist/components/layout/header/StickyHeader.styled.d.ts +2 -0
- package/dist/components/layout/header/StickyHeader.styled.d.ts.map +1 -1
- package/dist/components/layout/list/Header.d.ts +2 -0
- package/dist/components/layout/list/Header.d.ts.map +1 -1
- package/dist/components/layout/list/Item.d.ts +1 -0
- package/dist/components/layout/list/Item.d.ts.map +1 -1
- package/dist/components/layout/list/Label.d.ts +1 -0
- package/dist/components/layout/list/Label.d.ts.map +1 -1
- package/dist/components/layout/list/List.d.ts +1 -0
- package/dist/components/layout/list/List.d.ts.map +1 -1
- package/dist/components/layout/list/Value.d.ts +1 -0
- package/dist/components/layout/list/Value.d.ts.map +1 -1
- package/dist/components/layout/section/Section.d.ts +1 -0
- package/dist/components/layout/section/Section.d.ts.map +1 -1
- package/dist/components/layout/section/SectionContainer.d.ts +1 -0
- package/dist/components/layout/section/SectionContainer.d.ts.map +1 -1
- package/dist/components/layout/table/Table.styled.d.ts +1 -0
- package/dist/components/layout/table/Table.styled.d.ts.map +1 -1
- package/dist/components/native/index.d.ts +1 -0
- package/dist/components/native/index.d.ts.map +1 -1
- package/dist/components/ui/action/Action.styled.d.ts +3 -0
- package/dist/components/ui/action/Action.styled.d.ts.map +1 -1
- package/dist/components/ui/button/Button.styled.d.ts +1 -0
- package/dist/components/ui/button/Button.styled.d.ts.map +1 -1
- package/dist/components/ui/line/Line.d.ts +87 -0
- package/dist/components/ui/line/Line.d.ts.map +1 -0
- package/dist/components/ui/line/Line.js +24 -0
- package/dist/components/ui/line/Line.js.map +1 -0
- package/dist/components/ui/line/Line.stories.d.ts +8 -0
- package/dist/components/ui/line/Line.stories.d.ts.map +1 -0
- package/dist/components/ui/line/Line.stories.js +33 -0
- package/dist/components/ui/line/Line.stories.js.map +1 -0
- package/dist/components/ui/message/Message.d.ts +1 -0
- package/dist/components/ui/message/Message.d.ts.map +1 -1
- package/dist/components/ui/message/Message.styled.d.ts +1 -0
- package/dist/components/ui/message/Message.styled.d.ts.map +1 -1
- package/dist/components/ui/modal/Modal.styled.d.ts +4 -0
- package/dist/components/ui/modal/Modal.styled.d.ts.map +1 -1
- package/dist/components/ui/modal/ModalButtons.styled.d.ts +2 -0
- package/dist/components/ui/modal/ModalButtons.styled.d.ts.map +1 -1
- package/dist/components/ui/pop/Pop.styled.d.ts +6 -0
- package/dist/components/ui/pop/Pop.styled.d.ts.map +1 -1
- package/dist/components/ui/progress/Progress.styled.d.ts +3 -0
- package/dist/components/ui/progress/Progress.styled.d.ts.map +1 -1
- package/dist/components/ui/toaster/Toaster.styled.d.ts +1 -0
- package/dist/components/ui/toaster/Toaster.styled.d.ts.map +1 -1
- package/dist/components/ui/toolButton/ToolButton.d.ts +2 -0
- package/dist/components/ui/toolButton/ToolButton.d.ts.map +1 -0
- package/dist/components/ui/toolButton/ToolButton.js +6 -0
- package/dist/components/ui/toolButton/ToolButton.js.map +1 -0
- package/dist/components/ui/toolButton/ToolButton.stories.d.ts +8 -0
- package/dist/components/ui/toolButton/ToolButton.stories.d.ts.map +1 -0
- package/dist/components/ui/toolButton/ToolButton.stories.js +35 -0
- package/dist/components/ui/toolButton/ToolButton.stories.js.map +1 -0
- package/dist/components/ui/toolButton/ToolButton.styled.d.ts +88 -0
- package/dist/components/ui/toolButton/ToolButton.styled.d.ts.map +1 -0
- package/dist/components/ui/toolButton/ToolButton.styled.js +49 -0
- package/dist/components/ui/toolButton/ToolButton.styled.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/theme.d.ts +10 -0
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +1 -0
- package/dist/theme.js.map +1 -1
- 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 +6 -4
- package/docs/functions/Button.html +6 -4
- package/docs/functions/Card.html +6 -4
- package/docs/functions/Checkbox.html +6 -4
- package/docs/functions/Choice.html +7 -5
- package/docs/functions/CoveringLoader.html +6 -4
- package/docs/functions/DirectionPad.html +6 -4
- package/docs/functions/EqualActions.html +6 -4
- package/docs/functions/FullLoader.html +6 -4
- package/docs/functions/HandleEsc.html +6 -4
- package/docs/functions/Header.html +6 -4
- package/docs/functions/HeaderIconAction.html +6 -4
- package/docs/functions/Icon-1.html +6 -4
- package/docs/functions/If.html +6 -4
- package/docs/functions/Input.html +7 -5
- package/docs/functions/KeyValue.html +6 -4
- package/docs/functions/Label.html +6 -4
- package/docs/functions/Line.html +160 -0
- package/docs/functions/List-1.html +6 -4
- package/docs/functions/Loader.html +6 -4
- package/docs/functions/Loading.html +6 -4
- package/docs/functions/Message.html +6 -4
- package/docs/functions/Modal-1.html +6 -4
- package/docs/functions/ModalButtons.html +6 -4
- package/docs/functions/PopLoader.html +6 -4
- package/docs/functions/PopOption.html +6 -4
- package/docs/functions/Progress.html +6 -4
- package/docs/functions/SearchContainer.html +6 -4
- package/docs/functions/Section.html +6 -4
- package/docs/functions/Select.html +6 -4
- package/docs/functions/Selector.html +7 -5
- package/docs/functions/Spacer.html +6 -4
- package/docs/functions/Stats.html +6 -4
- package/docs/functions/StickyHeader.html +6 -4
- package/docs/functions/Table.html +6 -4
- package/docs/functions/TextArea.html +6 -4
- package/docs/functions/Toggle.html +6 -4
- package/docs/functions/ToolButton.html +160 -0
- package/docs/functions/borderPxToRem.html +7 -5
- package/docs/functions/createTheme.html +8 -6
- package/docs/functions/css.html +6 -4
- package/docs/functions/dimensionsPxToRem.html +7 -5
- package/docs/functions/fontPxToRem.html +7 -5
- package/docs/functions/getCssText.html +6 -4
- package/docs/functions/globalCss.html +6 -4
- package/docs/functions/keyframes.html +6 -4
- package/docs/functions/pxToRem.html +7 -5
- package/docs/functions/styled.html +6 -4
- package/docs/functions/useToaster.html +7 -5
- package/docs/index.html +6 -4
- package/docs/interfaces/ActionProps.html +13 -13
- package/docs/interfaces/ChoiceProps.html +11 -11
- package/docs/interfaces/IconProps.html +7 -7
- package/docs/interfaces/InputCustomProps.html +10 -10
- package/docs/interfaces/StickyHeaderProps.html +9 -9
- package/docs/modules/List.html +7 -7
- package/docs/modules/Modal.html +6 -6
- package/docs/modules.html +8 -4
- package/docs/pages/tutorials/Test.html +6 -4
- package/docs/types/InputProps.html +7 -5
- package/docs/types/OverwriteProps.html +7 -5
- package/docs/types/ThemeCSS.html +7 -5
- package/docs/variables/BackgroundClassName.html +7 -5
- package/docs/variables/List.Header.html +5 -5
- package/docs/variables/List.Item.html +5 -5
- package/docs/variables/Modal.RemovePadding.html +5 -5
- package/docs/variables/ValueClassName.html +7 -5
- package/docs/variables/config.html +7 -5
- package/docs/variables/cssReset.html +7 -5
- package/docs/variables/miuiScrollbars.html +7 -5
- package/docs/variables/theme.html +8 -6
- package/esm/components/form/Checkbox.styled.d.ts +3 -0
- package/esm/components/form/Checkbox.styled.d.ts.map +1 -1
- package/esm/components/form/Select.styled.d.ts +1 -0
- package/esm/components/form/Select.styled.d.ts.map +1 -1
- package/esm/components/form/input/Input.styled.d.ts +4 -0
- package/esm/components/form/input/Input.styled.d.ts.map +1 -1
- package/esm/components/form/textarea/TextArea.styled.d.ts +1 -0
- package/esm/components/form/textarea/TextArea.styled.d.ts.map +1 -1
- package/esm/components/layout/header/Header.styled.d.ts +4 -0
- package/esm/components/layout/header/Header.styled.d.ts.map +1 -1
- package/esm/components/layout/header/HeaderIconAction.styled.d.ts +3 -0
- package/esm/components/layout/header/HeaderIconAction.styled.d.ts.map +1 -1
- package/esm/components/layout/header/StickyHeader.styled.d.ts +2 -0
- package/esm/components/layout/header/StickyHeader.styled.d.ts.map +1 -1
- package/esm/components/layout/list/Header.d.ts +2 -0
- package/esm/components/layout/list/Header.d.ts.map +1 -1
- package/esm/components/layout/list/Item.d.ts +1 -0
- package/esm/components/layout/list/Item.d.ts.map +1 -1
- package/esm/components/layout/list/Label.d.ts +1 -0
- package/esm/components/layout/list/Label.d.ts.map +1 -1
- package/esm/components/layout/list/List.d.ts +1 -0
- package/esm/components/layout/list/List.d.ts.map +1 -1
- package/esm/components/layout/list/Value.d.ts +1 -0
- package/esm/components/layout/list/Value.d.ts.map +1 -1
- package/esm/components/layout/section/Section.d.ts +1 -0
- package/esm/components/layout/section/Section.d.ts.map +1 -1
- package/esm/components/layout/section/SectionContainer.d.ts +1 -0
- package/esm/components/layout/section/SectionContainer.d.ts.map +1 -1
- package/esm/components/layout/table/Table.styled.d.ts +1 -0
- package/esm/components/layout/table/Table.styled.d.ts.map +1 -1
- package/esm/components/native/index.d.ts +1 -0
- package/esm/components/native/index.d.ts.map +1 -1
- package/esm/components/ui/action/Action.styled.d.ts +3 -0
- package/esm/components/ui/action/Action.styled.d.ts.map +1 -1
- package/esm/components/ui/button/Button.styled.d.ts +1 -0
- package/esm/components/ui/button/Button.styled.d.ts.map +1 -1
- package/esm/components/ui/line/Line.d.ts +87 -0
- package/esm/components/ui/line/Line.d.ts.map +1 -0
- package/esm/components/ui/line/Line.js +21 -0
- package/esm/components/ui/line/Line.js.map +1 -0
- package/esm/components/ui/line/Line.stories.d.ts +8 -0
- package/esm/components/ui/line/Line.stories.d.ts.map +1 -0
- package/esm/components/ui/line/Line.stories.js +27 -0
- package/esm/components/ui/line/Line.stories.js.map +1 -0
- package/esm/components/ui/message/Message.d.ts +1 -0
- package/esm/components/ui/message/Message.d.ts.map +1 -1
- package/esm/components/ui/message/Message.styled.d.ts +1 -0
- package/esm/components/ui/message/Message.styled.d.ts.map +1 -1
- package/esm/components/ui/modal/Modal.styled.d.ts +4 -0
- package/esm/components/ui/modal/Modal.styled.d.ts.map +1 -1
- package/esm/components/ui/modal/ModalButtons.styled.d.ts +2 -0
- package/esm/components/ui/modal/ModalButtons.styled.d.ts.map +1 -1
- package/esm/components/ui/pop/Pop.styled.d.ts +6 -0
- package/esm/components/ui/pop/Pop.styled.d.ts.map +1 -1
- package/esm/components/ui/progress/Progress.styled.d.ts +3 -0
- package/esm/components/ui/progress/Progress.styled.d.ts.map +1 -1
- package/esm/components/ui/toaster/Toaster.styled.d.ts +1 -0
- package/esm/components/ui/toaster/Toaster.styled.d.ts.map +1 -1
- package/esm/components/ui/toolButton/ToolButton.d.ts +2 -0
- package/esm/components/ui/toolButton/ToolButton.d.ts.map +1 -0
- package/esm/components/ui/toolButton/ToolButton.js +2 -0
- package/esm/components/ui/toolButton/ToolButton.js.map +1 -0
- package/esm/components/ui/toolButton/ToolButton.stories.d.ts +8 -0
- package/esm/components/ui/toolButton/ToolButton.stories.d.ts.map +1 -0
- package/esm/components/ui/toolButton/ToolButton.stories.js +29 -0
- package/esm/components/ui/toolButton/ToolButton.stories.js.map +1 -0
- package/esm/components/ui/toolButton/ToolButton.styled.d.ts +88 -0
- package/esm/components/ui/toolButton/ToolButton.styled.d.ts.map +1 -0
- package/esm/components/ui/toolButton/ToolButton.styled.js +46 -0
- package/esm/components/ui/toolButton/ToolButton.styled.js.map +1 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -1
- package/esm/theme.d.ts +10 -0
- package/esm/theme.d.ts.map +1 -1
- package/esm/theme.js +1 -0
- package/esm/theme.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/line/Line.stories.tsx +40 -0
- package/src/components/ui/line/Line.tsx +28 -0
- package/src/components/ui/toolButton/ToolButton.stories.tsx +41 -0
- package/src/components/ui/toolButton/ToolButton.styled.ts +56 -0
- package/src/components/ui/toolButton/ToolButton.ts +1 -0
- package/src/index.ts +2 -1
- package/src/theme.ts +2 -0
- package/b.mjs +0 -2
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
declare const ToolButton: import("@stitches/react/types/styled-component").StyledComponent<"button", {
|
|
2
|
+
inline?: boolean | "true";
|
|
3
|
+
variant?: "secondary" | "secondaryOnLight";
|
|
4
|
+
}, {}, import("@stitches/react/types/css-util").CSS<{}, {
|
|
5
|
+
colors: {
|
|
6
|
+
background: string;
|
|
7
|
+
mainColor: string;
|
|
8
|
+
mainColorAlt: string;
|
|
9
|
+
activeBg: string;
|
|
10
|
+
inactiveBg: string;
|
|
11
|
+
inactiveDarkBg: string;
|
|
12
|
+
toggleHandleBg: string;
|
|
13
|
+
toggleHandleBorder: string;
|
|
14
|
+
toggleBgDisabled: string;
|
|
15
|
+
toggleHandleBorderDisabled: string;
|
|
16
|
+
toggleHandleBgDisabled: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
border: string;
|
|
19
|
+
buttonBorder: string;
|
|
20
|
+
headerBorder: string;
|
|
21
|
+
headerBg: string;
|
|
22
|
+
headerText: string;
|
|
23
|
+
text: string;
|
|
24
|
+
sub: string;
|
|
25
|
+
popText: string;
|
|
26
|
+
toolbarBorder: string;
|
|
27
|
+
toolbarBg: string;
|
|
28
|
+
modalBg: string;
|
|
29
|
+
modalButtonBg: string;
|
|
30
|
+
modalButtonBorder: string;
|
|
31
|
+
inputDisabledBg: string;
|
|
32
|
+
inputDisabledText: string;
|
|
33
|
+
choiceBg: string;
|
|
34
|
+
choiceText: string;
|
|
35
|
+
choiceActiveBg: string;
|
|
36
|
+
choiceActiveText: string;
|
|
37
|
+
choiceBorder: string;
|
|
38
|
+
selectorText: string;
|
|
39
|
+
selectorActive: string;
|
|
40
|
+
blue1: string;
|
|
41
|
+
blue2: string;
|
|
42
|
+
blue3: string;
|
|
43
|
+
blue4: string;
|
|
44
|
+
blue5: string;
|
|
45
|
+
orange1: string;
|
|
46
|
+
orange1Darker: string;
|
|
47
|
+
purple1: string;
|
|
48
|
+
green1: string;
|
|
49
|
+
green1Darker: string;
|
|
50
|
+
pink1: string;
|
|
51
|
+
red1: string;
|
|
52
|
+
yellow1: string;
|
|
53
|
+
yellow2: string;
|
|
54
|
+
yellow3: string;
|
|
55
|
+
pinky1: string;
|
|
56
|
+
pinky2: string;
|
|
57
|
+
pinky3: string;
|
|
58
|
+
grey1: string;
|
|
59
|
+
focusColor: string;
|
|
60
|
+
scrollbarsThumb: string;
|
|
61
|
+
scrollbarsBg: string;
|
|
62
|
+
tableStripedBg: string;
|
|
63
|
+
toolButtonText: string;
|
|
64
|
+
};
|
|
65
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
66
|
+
mx: (value: string | number) => {
|
|
67
|
+
marginLeft: string | number;
|
|
68
|
+
marginRight: string | number;
|
|
69
|
+
};
|
|
70
|
+
my: (value: string | number) => {
|
|
71
|
+
marginTop: string | number;
|
|
72
|
+
marginBottom: string | number;
|
|
73
|
+
};
|
|
74
|
+
px: (value: string | number) => {
|
|
75
|
+
paddingLeft: string | number;
|
|
76
|
+
paddingRight: string | number;
|
|
77
|
+
};
|
|
78
|
+
py: (value: string | number) => {
|
|
79
|
+
paddingTop: string | number;
|
|
80
|
+
paddingBottom: string | number;
|
|
81
|
+
};
|
|
82
|
+
size: (value: string | number) => {
|
|
83
|
+
width: string | number;
|
|
84
|
+
height: string | number;
|
|
85
|
+
};
|
|
86
|
+
}>>;
|
|
87
|
+
export { ToolButton, };
|
|
88
|
+
//# sourceMappingURL=ToolButton.styled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolButton.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.styled.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8Cd,CAAC;AAEH,OAAO,EACH,UAAU,GACb,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { dimensionsPxToRem, fontPxToRem, styled } from "../../../theme.js";
|
|
2
|
+
const ToolButton = styled("button", {
|
|
3
|
+
"height": dimensionsPxToRem(79),
|
|
4
|
+
"borderRadius": dimensionsPxToRem(10),
|
|
5
|
+
"fontWeight": "bold",
|
|
6
|
+
"fontSize": fontPxToRem(23),
|
|
7
|
+
"display": "flex",
|
|
8
|
+
"alignItems": "center",
|
|
9
|
+
"justifyContent": "center",
|
|
10
|
+
"paddingInline": dimensionsPxToRem(16),
|
|
11
|
+
"background": "white",
|
|
12
|
+
"boxSizing": "border-box",
|
|
13
|
+
"border": `${dimensionsPxToRem(6)} solid transparent`,
|
|
14
|
+
"color": "$toolButtonText",
|
|
15
|
+
"&:hover": {
|
|
16
|
+
background: "#ffffffcc",
|
|
17
|
+
},
|
|
18
|
+
"variants": {
|
|
19
|
+
inline: {
|
|
20
|
+
true: {
|
|
21
|
+
width: "auto",
|
|
22
|
+
display: "inline-flex",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
variant: {
|
|
26
|
+
secondary: {
|
|
27
|
+
"border": `${dimensionsPxToRem(6)} solid #ffffff42`,
|
|
28
|
+
"background": "none",
|
|
29
|
+
"&:hover": {
|
|
30
|
+
background: "#ffffff22",
|
|
31
|
+
},
|
|
32
|
+
"color": "white",
|
|
33
|
+
},
|
|
34
|
+
secondaryOnLight: {
|
|
35
|
+
"border": `${dimensionsPxToRem(6)} solid $border`,
|
|
36
|
+
"background": "none",
|
|
37
|
+
"color": "$text",
|
|
38
|
+
"&:hover": {
|
|
39
|
+
borderColor: "$buttonBorder",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
export { ToolButton, };
|
|
46
|
+
//# sourceMappingURL=ToolButton.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolButton.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAKxE,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,iBAAiB,CAAC,EAAE,CAAC;IAC/B,cAAc,EAAE,iBAAiB,CAAC,EAAE,CAAC;IACrC,YAAY,EAAE,MAAM;IACpB,UAAU,EAAE,WAAW,CAAC,EAAE,CAAC;IAC3B,SAAS,EAAE,MAAM;IACjB,YAAY,EAAE,QAAQ;IACtB,gBAAgB,EAAE,QAAQ;IAC1B,eAAe,EAAE,iBAAiB,CAAC,EAAE,CAAC;IACtC,YAAY,EAAE,OAAO;IACrB,WAAW,EAAE,YAAY;IACzB,QAAQ,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,oBAAoB;IAErD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE;QACP,UAAU,EAAE,WAAW;KAC1B;IAED,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE;gBACF,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,aAAa;aACzB;SACJ;QACD,OAAO,EAAE;YACL,SAAS,EAAE;gBACP,QAAQ,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,kBAAkB;gBACnD,YAAY,EAAE,MAAM;gBAEpB,SAAS,EAAE;oBACP,UAAU,EAAE,WAAW;iBAC1B;gBACD,OAAO,EAAE,OAAO;aACnB;YACD,gBAAgB,EAAE;gBACd,QAAQ,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,gBAAgB;gBACjD,YAAY,EAAE,MAAM;gBACpB,OAAO,EAAE,OAAO;gBAEhB,SAAS,EAAE;oBACP,WAAW,EAAE,eAAe;iBAC/B;aACJ;SACJ;KACJ;CACJ,CAAC,CAAC;AAEH,OAAO,EACH,UAAU,GACb,CAAC"}
|
package/esm/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from "./components/ui/button/Button";
|
|
|
20
20
|
export * from "./components/ui/directionPad/Pad";
|
|
21
21
|
export * from "./components/ui/drawer/Drawer";
|
|
22
22
|
export * from "./components/ui/keyValue/KeyValue";
|
|
23
|
+
export * from "./components/ui/line/Line";
|
|
23
24
|
export * from "./components/ui/loader/CoveringLoader";
|
|
24
25
|
export * from "./components/ui/loader/FullLoader";
|
|
25
26
|
export * from "./components/ui/loader/Loader";
|
|
@@ -34,6 +35,7 @@ export * from "./components/ui/pop/PopOption";
|
|
|
34
35
|
export * from "./components/ui/stats/Stats";
|
|
35
36
|
export * from "./components/ui/tabs/Selector";
|
|
36
37
|
export * from "./components/ui/toaster/Toaster";
|
|
38
|
+
export * from "./components/ui/toolButton/ToolButton";
|
|
37
39
|
export * from "./components/utils/HandleEsc";
|
|
38
40
|
export * from "./components/utils/If";
|
|
39
41
|
export * from "./components/utils/Spacer";
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AAEzC,cAAc,yBAAyB,CAAC;AAExC,cAAc,yBAAy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+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAE1C,cAAc,kBAAkB,CAAC;AAEjC,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -20,6 +20,7 @@ export * from "./components/ui/button/Button.js";
|
|
|
20
20
|
export * from "./components/ui/directionPad/Pad.js";
|
|
21
21
|
export * from "./components/ui/drawer/Drawer.js";
|
|
22
22
|
export * from "./components/ui/keyValue/KeyValue.js";
|
|
23
|
+
export * from "./components/ui/line/Line.js";
|
|
23
24
|
export * from "./components/ui/loader/CoveringLoader.js";
|
|
24
25
|
export * from "./components/ui/loader/FullLoader.js";
|
|
25
26
|
export * from "./components/ui/loader/Loader.js";
|
|
@@ -34,6 +35,7 @@ export * from "./components/ui/pop/PopOption.js";
|
|
|
34
35
|
export * from "./components/ui/stats/Stats.js";
|
|
35
36
|
export * from "./components/ui/tabs/Selector.js";
|
|
36
37
|
export * from "./components/ui/toaster/Toaster.js";
|
|
38
|
+
export * from "./components/ui/toolButton/ToolButton.js";
|
|
37
39
|
export * from "./components/utils/HandleEsc.js";
|
|
38
40
|
export * from "./components/utils/If.js";
|
|
39
41
|
export * from "./components/utils/Spacer.js";
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AAEzC,cAAc,yBAAyB,CAAC;AAExC,cAAc,yBAAyB,CAAC;AAExC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,yCAAyC,CAAC;AACxD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAEhD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc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,SAAS,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC"}
|
package/esm/theme.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ declare const styled: <Type extends import("react").ComponentType<any> | keyof J
|
|
|
66
66
|
scrollbarsThumb: string;
|
|
67
67
|
scrollbarsBg: string;
|
|
68
68
|
tableStripedBg: string;
|
|
69
|
+
toolButtonText: string;
|
|
69
70
|
};
|
|
70
71
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
71
72
|
mx: (value: string | number) => {
|
|
@@ -158,6 +159,7 @@ declare const styled: <Type extends import("react").ComponentType<any> | keyof J
|
|
|
158
159
|
scrollbarsThumb: string;
|
|
159
160
|
scrollbarsBg: string;
|
|
160
161
|
tableStripedBg: string;
|
|
162
|
+
toolButtonText: string;
|
|
161
163
|
};
|
|
162
164
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
163
165
|
mx: (value: string | number) => {
|
|
@@ -241,6 +243,7 @@ declare const styled: <Type extends import("react").ComponentType<any> | keyof J
|
|
|
241
243
|
scrollbarsThumb: string;
|
|
242
244
|
scrollbarsBg: string;
|
|
243
245
|
tableStripedBg: string;
|
|
246
|
+
toolButtonText: string;
|
|
244
247
|
};
|
|
245
248
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
246
249
|
mx: (value: string | number) => {
|
|
@@ -339,6 +342,7 @@ declare const styled: <Type extends import("react").ComponentType<any> | keyof J
|
|
|
339
342
|
scrollbarsThumb: string;
|
|
340
343
|
scrollbarsBg: string;
|
|
341
344
|
tableStripedBg: string;
|
|
345
|
+
toolButtonText: string;
|
|
342
346
|
};
|
|
343
347
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
344
348
|
mx: (value: string | number) => {
|
|
@@ -421,6 +425,7 @@ declare const styled: <Type extends import("react").ComponentType<any> | keyof J
|
|
|
421
425
|
scrollbarsThumb: string;
|
|
422
426
|
scrollbarsBg: string;
|
|
423
427
|
tableStripedBg: string;
|
|
428
|
+
toolButtonText: string;
|
|
424
429
|
};
|
|
425
430
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
426
431
|
mx: (value: string | number) => {
|
|
@@ -503,6 +508,7 @@ declare const styled: <Type extends import("react").ComponentType<any> | keyof J
|
|
|
503
508
|
scrollbarsThumb: string;
|
|
504
509
|
scrollbarsBg: string;
|
|
505
510
|
tableStripedBg: string;
|
|
511
|
+
toolButtonText: string;
|
|
506
512
|
};
|
|
507
513
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
508
514
|
mx: (value: string | number) => {
|
|
@@ -591,6 +597,7 @@ declare const styled: <Type extends import("react").ComponentType<any> | keyof J
|
|
|
591
597
|
scrollbarsThumb: import("@stitches/react/types/theme").Token<"scrollbarsThumb", string, "colors", "">;
|
|
592
598
|
scrollbarsBg: import("@stitches/react/types/theme").Token<"scrollbarsBg", string, "colors", "">;
|
|
593
599
|
tableStripedBg: import("@stitches/react/types/theme").Token<"tableStripedBg", string, "colors", "">;
|
|
600
|
+
toolButtonText: import("@stitches/react/types/theme").Token<"toolButtonText", string, "colors", "">;
|
|
594
601
|
};
|
|
595
602
|
}, createTheme: <Argument0 extends string | ({
|
|
596
603
|
colors?: {
|
|
@@ -651,6 +658,7 @@ declare const styled: <Type extends import("react").ComponentType<any> | keyof J
|
|
|
651
658
|
scrollbarsThumb?: string | number | boolean;
|
|
652
659
|
scrollbarsBg?: string | number | boolean;
|
|
653
660
|
tableStripedBg?: string | number | boolean;
|
|
661
|
+
toolButtonText?: string | number | boolean;
|
|
654
662
|
};
|
|
655
663
|
} & {
|
|
656
664
|
[x: string]: {
|
|
@@ -716,6 +724,7 @@ declare const styled: <Type extends import("react").ComponentType<any> | keyof J
|
|
|
716
724
|
scrollbarsThumb?: string | number | boolean;
|
|
717
725
|
scrollbarsBg?: string | number | boolean;
|
|
718
726
|
tableStripedBg?: string | number | boolean;
|
|
727
|
+
toolButtonText?: string | number | boolean;
|
|
719
728
|
};
|
|
720
729
|
} & {
|
|
721
730
|
[x: string]: {
|
|
@@ -787,6 +796,7 @@ declare const styled: <Type extends import("react").ComponentType<any> | keyof J
|
|
|
787
796
|
scrollbarsThumb: string;
|
|
788
797
|
scrollbarsBg: string;
|
|
789
798
|
tableStripedBg: string;
|
|
799
|
+
toolButtonText: string;
|
|
790
800
|
};
|
|
791
801
|
};
|
|
792
802
|
themeMap: import("@stitches/react/types/config").DefaultThemeMap;
|
package/esm/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,KAAK,EAAE,GAAG,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAS1D,QAAA,MAAM,OAAO,OAAQ,MAAM,WAAoB,CAAC;AAChD,QAAA,MAAM,iBAAiB,OAAQ,MAAM,WAAoC,CAAC;AAC1E,QAAA,MAAM,aAAa,OAAQ,MAAM,WAAgC,CAAC;AAClE,QAAA,MAAM,WAAW,OAAQ,MAAM,WAA8B,CAAC;AAE9D,QAAA,MACI,MAAM
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,KAAK,EAAE,GAAG,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAS1D,QAAA,MAAM,OAAO,OAAQ,MAAM,WAAoB,CAAC;AAChD,QAAA,MAAM,iBAAiB,OAAQ,MAAM,WAAoC,CAAC;AAC1E,QAAA,MAAM,aAAa,OAAQ,MAAM,WAAgC,CAAC;AAClE,QAAA,MAAM,WAAW,OAAQ,MAAM,WAA8B,CAAC;AAE9D,QAAA,MACI,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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omit } from "@ezez/utils";
|
|
4
|
+
|
|
5
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
6
|
+
|
|
7
|
+
import { Line } from "./Line";
|
|
8
|
+
|
|
9
|
+
const meta: Meta = {
|
|
10
|
+
title: "Components/UI/Line",
|
|
11
|
+
component: Line,
|
|
12
|
+
tags: ["autodocs", "ui"],
|
|
13
|
+
argTypes: {
|
|
14
|
+
"--miui-line-size": {
|
|
15
|
+
description: "CSS property that defines length of the line",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
args: {
|
|
19
|
+
"vertical": false,
|
|
20
|
+
"--miui-line-size": "100px",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
type Story = StoryObj<typeof Line>;
|
|
25
|
+
|
|
26
|
+
const Primary: Story = {
|
|
27
|
+
render: (args) => {
|
|
28
|
+
type LineSizeObject = { "--miui-line-size": string };
|
|
29
|
+
type ExtraArgs = LineSizeObject & typeof args;
|
|
30
|
+
|
|
31
|
+
const lineSize = (args as ExtraArgs)["--miui-line-size"];
|
|
32
|
+
const props = omit(args as ExtraArgs, ["--miui-line-size"]);
|
|
33
|
+
return <Line {...props} css={{ "--miui-line-size": lineSize }} />;
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export default meta;
|
|
38
|
+
export {
|
|
39
|
+
Primary,
|
|
40
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { styled } from "../../../theme";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A visual separator
|
|
5
|
+
*/
|
|
6
|
+
const Line = styled("hr", {
|
|
7
|
+
"--miui-line-size": "100px",
|
|
8
|
+
"width": "var(--miui-line-size)",
|
|
9
|
+
"maxWidth": "100%",
|
|
10
|
+
"height": 1,
|
|
11
|
+
"backgroundColor": "$border",
|
|
12
|
+
"border": "none",
|
|
13
|
+
"margin": "auto",
|
|
14
|
+
|
|
15
|
+
"variants": {
|
|
16
|
+
vertical: {
|
|
17
|
+
true: {
|
|
18
|
+
width: 1,
|
|
19
|
+
height: "var(--miui-line-size)",
|
|
20
|
+
maxHeight: "100%",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
Line,
|
|
28
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
|
|
5
|
+
import { Div } from "../../native";
|
|
6
|
+
|
|
7
|
+
import { ToolButton } from "./ToolButton";
|
|
8
|
+
|
|
9
|
+
const meta: Meta = {
|
|
10
|
+
title: "Components/UI/ToolButton",
|
|
11
|
+
component: ToolButton,
|
|
12
|
+
tags: ["autodocs", "ui"],
|
|
13
|
+
argTypes: {
|
|
14
|
+
variant: {
|
|
15
|
+
control: {
|
|
16
|
+
type: "select",
|
|
17
|
+
},
|
|
18
|
+
options: ["default", "secondary", "secondaryOnLight"],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
type Story = StoryObj<typeof ToolButton>;
|
|
24
|
+
|
|
25
|
+
const Primary: Story = {
|
|
26
|
+
args: {
|
|
27
|
+
children: "Click me",
|
|
28
|
+
onClick: () => { alert("Clicked"); },
|
|
29
|
+
},
|
|
30
|
+
render: args => {
|
|
31
|
+
return (
|
|
32
|
+
<Div css={{ background: args.variant === "secondaryOnLight" ? "white" : "$blue5", padding: 50 }}>
|
|
33
|
+
<ToolButton {...args} />
|
|
34
|
+
</Div>
|
|
35
|
+
);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
export default meta;
|
|
39
|
+
export {
|
|
40
|
+
Primary,
|
|
41
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { dimensionsPxToRem, fontPxToRem, styled } from "../../../theme";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Small buttons for toolbars
|
|
5
|
+
*/
|
|
6
|
+
const ToolButton = styled("button", {
|
|
7
|
+
"height": dimensionsPxToRem(79),
|
|
8
|
+
"borderRadius": dimensionsPxToRem(10),
|
|
9
|
+
"fontWeight": "bold",
|
|
10
|
+
"fontSize": fontPxToRem(23),
|
|
11
|
+
"display": "flex",
|
|
12
|
+
"alignItems": "center",
|
|
13
|
+
"justifyContent": "center",
|
|
14
|
+
"paddingInline": dimensionsPxToRem(16),
|
|
15
|
+
"background": "white",
|
|
16
|
+
"boxSizing": "border-box",
|
|
17
|
+
"border": `${dimensionsPxToRem(6)} solid transparent`,
|
|
18
|
+
|
|
19
|
+
"color": "$toolButtonText",
|
|
20
|
+
"&:hover": {
|
|
21
|
+
background: "#ffffffcc",
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
"variants": {
|
|
25
|
+
inline: {
|
|
26
|
+
true: {
|
|
27
|
+
width: "auto",
|
|
28
|
+
display: "inline-flex",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
variant: {
|
|
32
|
+
secondary: {
|
|
33
|
+
"border": `${dimensionsPxToRem(6)} solid #ffffff42`,
|
|
34
|
+
"background": "none",
|
|
35
|
+
|
|
36
|
+
"&:hover": {
|
|
37
|
+
background: "#ffffff22",
|
|
38
|
+
},
|
|
39
|
+
"color": "white",
|
|
40
|
+
},
|
|
41
|
+
secondaryOnLight: {
|
|
42
|
+
"border": `${dimensionsPxToRem(6)} solid $border`,
|
|
43
|
+
"background": "none",
|
|
44
|
+
"color": "$text",
|
|
45
|
+
|
|
46
|
+
"&:hover": {
|
|
47
|
+
borderColor: "$buttonBorder",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
ToolButton,
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ToolButton } from "./ToolButton.styled";
|
package/src/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from "./components/ui/button/Button";
|
|
|
25
25
|
export * from "./components/ui/directionPad/Pad";
|
|
26
26
|
export * from "./components/ui/drawer/Drawer";
|
|
27
27
|
export * from "./components/ui/keyValue/KeyValue";
|
|
28
|
+
export * from "./components/ui/line/Line";
|
|
28
29
|
export * from "./components/ui/loader/CoveringLoader";
|
|
29
30
|
export * from "./components/ui/loader/FullLoader";
|
|
30
31
|
export * from "./components/ui/loader/Loader";
|
|
@@ -37,9 +38,9 @@ export * from "./components/ui/progress/Progress";
|
|
|
37
38
|
export * from "./components/ui/pop/Pop";
|
|
38
39
|
export * from "./components/ui/pop/PopOption";
|
|
39
40
|
export * from "./components/ui/stats/Stats";
|
|
40
|
-
|
|
41
41
|
export * from "./components/ui/tabs/Selector";
|
|
42
42
|
export * from "./components/ui/toaster/Toaster";
|
|
43
|
+
export * from "./components/ui/toolButton/ToolButton";
|
|
43
44
|
|
|
44
45
|
export * from "./components/utils/HandleEsc";
|
|
45
46
|
export * from "./components/utils/If";
|
package/src/theme.ts
CHANGED
package/b.mjs
DELETED