@react-ui-org/react-ui 0.54.0 → 0.55.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -5
- package/dist/react-ui.css +36 -38
- package/dist/react-ui.development.css +10021 -10523
- package/dist/react-ui.development.js +211 -231
- package/dist/react-ui.js +1 -1
- package/package.json +3 -2
- package/src/components/Alert/Alert.jsx +1 -1
- package/src/components/Alert/Alert.module.scss +100 -0
- package/src/components/Alert/README.md +9 -7
- package/src/components/Badge/Badge.jsx +1 -1
- package/src/components/Badge/Badge.module.scss +109 -0
- package/src/components/Badge/README.md +9 -7
- package/src/components/Button/Button.jsx +1 -1
- package/src/components/Button/README.md +9 -7
- package/src/components/Button/_base.scss +117 -115
- package/src/components/Button/_priorities.scss +135 -133
- package/src/components/ButtonGroup/ButtonGroup.jsx +1 -1
- package/src/components/ButtonGroup/ButtonGroup.module.scss +35 -0
- package/src/components/ButtonGroup/README.md +10 -8
- package/src/components/Card/Card.jsx +1 -1
- package/src/components/Card/Card.module.scss +72 -0
- package/src/components/Card/CardBody.jsx +1 -1
- package/src/components/Card/CardFooter.jsx +1 -1
- package/src/components/Card/README.md +9 -7
- package/src/components/CheckboxField/CheckboxField.jsx +1 -1
- package/src/components/CheckboxField/CheckboxField.module.scss +63 -0
- package/src/components/CheckboxField/README.md +10 -8
- package/src/components/FileInputField/FileInputField.jsx +1 -1
- package/src/components/FileInputField/FileInputField.module.scss +65 -0
- package/src/components/FileInputField/README.md +10 -8
- package/src/components/FormLayout/FormLayout.jsx +1 -1
- package/src/components/FormLayout/{FormLayout.scss → FormLayout.module.scss} +30 -28
- package/src/components/FormLayout/FormLayoutCustomField.jsx +1 -1
- package/src/components/FormLayout/FormLayoutCustomField.module.scss +65 -0
- package/src/components/FormLayout/README.md +11 -9
- package/src/components/Grid/Grid.jsx +1 -1
- package/src/components/Grid/Grid.module.scss +66 -0
- package/src/components/Grid/GridSpan.jsx +1 -1
- package/src/components/Grid/README.md +11 -8
- package/src/components/InputGroup/InputGroup.jsx +1 -1
- package/src/components/InputGroup/InputGroup.module.scss +93 -0
- package/src/components/InputGroup/README.md +10 -8
- package/src/components/Modal/Modal.jsx +1 -1
- package/src/components/Modal/Modal.module.scss +80 -0
- package/src/components/Modal/ModalBody.jsx +1 -1
- package/src/components/Modal/ModalBody.module.scss +20 -0
- package/src/components/Modal/ModalCloseButton.jsx +1 -1
- package/src/components/Modal/ModalCloseButton.module.scss +20 -0
- package/src/components/Modal/ModalContent.jsx +1 -1
- package/src/components/Modal/ModalContent.module.scss +7 -0
- package/src/components/Modal/ModalFooter.jsx +1 -1
- package/src/components/Modal/ModalFooter.module.scss +37 -0
- package/src/components/Modal/ModalHeader.jsx +1 -1
- package/src/components/Modal/ModalHeader.module.scss +32 -0
- package/src/components/Modal/ModalTitle.jsx +1 -1
- package/src/components/Modal/ModalTitle.module.scss +12 -0
- package/src/components/Modal/README.md +17 -14
- package/src/components/Paper/Paper.jsx +1 -1
- package/src/components/Paper/Paper.module.scss +19 -0
- package/src/components/Paper/README.md +9 -7
- package/src/components/Popover/Popover.jsx +1 -1
- package/src/components/Popover/Popover.module.scss +238 -0
- package/src/components/Popover/PopoverWrapper.jsx +1 -2
- package/src/components/Popover/PopoverWrapper.module.scss +5 -0
- package/src/components/Popover/README.md +9 -7
- package/src/components/Radio/README.md +12 -10
- package/src/components/Radio/Radio.jsx +1 -1
- package/src/components/Radio/Radio.module.scss +85 -0
- package/src/components/ScrollView/README.md +10 -8
- package/src/components/ScrollView/ScrollView.jsx +1 -1
- package/src/components/ScrollView/ScrollView.module.scss +233 -0
- package/src/components/SelectField/README.md +10 -8
- package/src/components/SelectField/SelectField.jsx +1 -1
- package/src/components/SelectField/SelectField.module.scss +111 -0
- package/src/components/Table/README.md +10 -8
- package/src/components/Table/Table.jsx +1 -1
- package/src/components/Table/Table.module.scss +30 -0
- package/src/components/Table/_components/TableBodyCell/TableBodyCell.jsx +1 -1
- package/src/components/Table/_components/TableCell.module.scss +28 -0
- package/src/components/Table/_components/TableHeaderCell/TableHeaderCell.jsx +1 -1
- package/src/components/Tabs/README.md +16 -10
- package/src/components/Tabs/Tabs.jsx +1 -1
- package/src/components/Tabs/Tabs.module.scss +31 -0
- package/src/components/Tabs/TabsItem.jsx +1 -1
- package/src/components/Tabs/TabsItem.module.scss +119 -0
- package/src/components/Text/README.md +15 -9
- package/src/components/Text/Text.jsx +1 -1
- package/src/components/Text/Text.module.scss +42 -0
- package/src/components/TextArea/README.md +10 -8
- package/src/components/TextArea/TextArea.jsx +1 -1
- package/src/components/TextArea/TextArea.module.scss +97 -0
- package/src/components/TextField/README.md +13 -8
- package/src/components/TextField/TextField.jsx +1 -1
- package/src/components/TextField/TextField.module.scss +109 -0
- package/src/components/TextLink/README.md +10 -8
- package/src/components/TextLink/TextLink.jsx +1 -1
- package/src/components/TextLink/TextLink.module.scss +18 -0
- package/src/components/Toggle/README.md +10 -8
- package/src/components/Toggle/Toggle.jsx +1 -1
- package/src/components/Toggle/Toggle.module.scss +63 -0
- package/src/components/Toolbar/README.md +9 -7
- package/src/components/Toolbar/Toolbar.jsx +1 -1
- package/src/components/Toolbar/Toolbar.module.scss +85 -0
- package/src/components/Toolbar/ToolbarGroup.jsx +1 -1
- package/src/components/Toolbar/ToolbarItem.jsx +1 -1
- package/src/components/_helpers/transferProps.js +47 -7
- package/src/foundation.scss +22 -17
- package/src/helpers.scss +12 -8
- package/src/index.js +3 -4
- package/src/index.scss +7 -0
- package/src/layers.scss +4 -0
- package/src/styles/elements/_page.scss +0 -4
- package/src/styles/helpers/_animation.scss +2 -2
- package/src/styles/tools/_utilities.scss +1 -1
- package/src/theme.scss +1040 -1038
- package/src/components/Alert/Alert.scss +0 -98
- package/src/components/Badge/Badge.scss +0 -107
- package/src/components/ButtonGroup/ButtonGroup.scss +0 -33
- package/src/components/Card/Card.scss +0 -70
- package/src/components/CheckboxField/CheckboxField.scss +0 -61
- package/src/components/FileInputField/FileInputField.scss +0 -63
- package/src/components/FormLayout/FormLayoutCustomField.scss +0 -63
- package/src/components/Grid/Grid.scss +0 -63
- package/src/components/InputGroup/InputGroup.scss +0 -91
- package/src/components/Modal/Modal.scss +0 -78
- package/src/components/Modal/ModalBody.scss +0 -18
- package/src/components/Modal/ModalCloseButton.scss +0 -18
- package/src/components/Modal/ModalContent.scss +0 -5
- package/src/components/Modal/ModalFooter.scss +0 -35
- package/src/components/Modal/ModalHeader.scss +0 -30
- package/src/components/Modal/ModalTitle.scss +0 -10
- package/src/components/Paper/Paper.scss +0 -17
- package/src/components/Popover/Popover.scss +0 -236
- package/src/components/Popover/PopoverWrapper.scss +0 -3
- package/src/components/Radio/Radio.scss +0 -83
- package/src/components/ScrollView/ScrollView.scss +0 -227
- package/src/components/SelectField/SelectField.scss +0 -109
- package/src/components/Table/Table.scss +0 -28
- package/src/components/Table/_components/TableCell.scss +0 -26
- package/src/components/Tabs/Tabs.scss +0 -28
- package/src/components/Tabs/TabsItem.scss +0 -117
- package/src/components/Text/Text.scss +0 -40
- package/src/components/TextArea/TextArea.scss +0 -95
- package/src/components/TextField/TextField.scss +0 -107
- package/src/components/TextLink/TextLink.scss +0 -16
- package/src/components/Toggle/Toggle.scss +0 -61
- package/src/components/Toolbar/Toolbar.scss +0 -83
- /package/src/components/Button/{Button.scss → Button.module.scss} +0 -0
@@ -1,107 +0,0 @@
|
|
1
|
-
@use "../../styles/tools/form-fields/box-field-elements";
|
2
|
-
@use "../../styles/tools/form-fields/box-field-layout";
|
3
|
-
@use "../../styles/tools/form-fields/box-field-sizes";
|
4
|
-
@use "../../styles/tools/form-fields/foundation";
|
5
|
-
@use "../../styles/tools/form-fields/variants";
|
6
|
-
@use "../../styles/tools/accessibility";
|
7
|
-
|
8
|
-
// Foundation
|
9
|
-
.root {
|
10
|
-
@include foundation.root();
|
11
|
-
}
|
12
|
-
|
13
|
-
.label {
|
14
|
-
@include foundation.label();
|
15
|
-
}
|
16
|
-
|
17
|
-
.inputContainer {
|
18
|
-
@include box-field-elements.input-container();
|
19
|
-
}
|
20
|
-
|
21
|
-
.input {
|
22
|
-
@include box-field-elements.input();
|
23
|
-
}
|
24
|
-
|
25
|
-
.bottomLine {
|
26
|
-
@include box-field-elements.bottom-line();
|
27
|
-
}
|
28
|
-
|
29
|
-
.helpText,
|
30
|
-
.validationText {
|
31
|
-
@include foundation.help-text();
|
32
|
-
}
|
33
|
-
|
34
|
-
.hasRootCustomInputSize .input {
|
35
|
-
@include box-field-elements.input-size();
|
36
|
-
}
|
37
|
-
|
38
|
-
.isRootRequired .label {
|
39
|
-
@include foundation.label-required();
|
40
|
-
}
|
41
|
-
|
42
|
-
// Variants
|
43
|
-
.isRootVariantFilled {
|
44
|
-
@include variants.visual(box, $variant: filled);
|
45
|
-
}
|
46
|
-
|
47
|
-
.isRootVariantOutline {
|
48
|
-
@include variants.visual(box, $variant: outline);
|
49
|
-
}
|
50
|
-
|
51
|
-
// States
|
52
|
-
.isRootStateInvalid {
|
53
|
-
@include variants.validation(invalid);
|
54
|
-
}
|
55
|
-
|
56
|
-
.isRootStateValid {
|
57
|
-
@include variants.validation(valid);
|
58
|
-
}
|
59
|
-
|
60
|
-
.isRootStateWarning {
|
61
|
-
@include variants.validation(warning);
|
62
|
-
}
|
63
|
-
|
64
|
-
// Invisible label
|
65
|
-
.isLabelHidden {
|
66
|
-
@include accessibility.hide-text();
|
67
|
-
}
|
68
|
-
|
69
|
-
// Layouts
|
70
|
-
.isRootLayoutVertical,
|
71
|
-
.isRootLayoutHorizontal {
|
72
|
-
@include box-field-layout.vertical();
|
73
|
-
}
|
74
|
-
|
75
|
-
.isRootLayoutHorizontal {
|
76
|
-
@include box-field-layout.horizontal();
|
77
|
-
}
|
78
|
-
|
79
|
-
.isRootFullWidth {
|
80
|
-
@include box-field-layout.full-width();
|
81
|
-
}
|
82
|
-
|
83
|
-
.isRootInFormLayout {
|
84
|
-
@include box-field-layout.in-form-layout();
|
85
|
-
}
|
86
|
-
|
87
|
-
.hasRootSmallInput.isRootLayoutHorizontal {
|
88
|
-
@include box-field-layout.horizontal-with-small-input();
|
89
|
-
}
|
90
|
-
|
91
|
-
// Sizes
|
92
|
-
.isRootSizeSmall {
|
93
|
-
@include box-field-sizes.size(small);
|
94
|
-
}
|
95
|
-
|
96
|
-
.isRootSizeMedium {
|
97
|
-
@include box-field-sizes.size(medium);
|
98
|
-
}
|
99
|
-
|
100
|
-
.isRootSizeLarge {
|
101
|
-
@include box-field-sizes.size(large);
|
102
|
-
}
|
103
|
-
|
104
|
-
// Groups
|
105
|
-
.isRootGrouped {
|
106
|
-
@include box-field-elements.in-group-layout();
|
107
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
@use "theme";
|
2
|
-
|
3
|
-
.root {
|
4
|
-
text-decoration: theme.$text-decoration;
|
5
|
-
color: theme.$color;
|
6
|
-
|
7
|
-
&:hover {
|
8
|
-
text-decoration: theme.$hover-text-decoration;
|
9
|
-
color: theme.$hover-color;
|
10
|
-
}
|
11
|
-
|
12
|
-
&:active {
|
13
|
-
text-decoration: theme.$active-text-decoration;
|
14
|
-
color: theme.$active-color;
|
15
|
-
}
|
16
|
-
}
|
@@ -1,61 +0,0 @@
|
|
1
|
-
@use "../../styles/tools/form-fields/foundation";
|
2
|
-
@use "../../styles/tools/form-fields/inline-field-elements";
|
3
|
-
@use "../../styles/tools/form-fields/inline-field-layout";
|
4
|
-
@use "../../styles/tools/form-fields/variants";
|
5
|
-
@use "../../styles/tools/accessibility";
|
6
|
-
|
7
|
-
// Foundation
|
8
|
-
.root {
|
9
|
-
@include foundation.root();
|
10
|
-
@include inline-field-layout.root();
|
11
|
-
@include inline-field-elements.min-tap-target($type: toggle);
|
12
|
-
@include variants.visual(check);
|
13
|
-
}
|
14
|
-
|
15
|
-
.label {
|
16
|
-
@include foundation.label();
|
17
|
-
}
|
18
|
-
|
19
|
-
.field {
|
20
|
-
@include inline-field-layout.field($type: toggle);
|
21
|
-
}
|
22
|
-
|
23
|
-
.input {
|
24
|
-
@include inline-field-elements.check-input($type: toggle);
|
25
|
-
}
|
26
|
-
|
27
|
-
.helpText,
|
28
|
-
.validationText {
|
29
|
-
@include foundation.help-text();
|
30
|
-
}
|
31
|
-
|
32
|
-
.isRootRequired .label {
|
33
|
-
@include foundation.label-required();
|
34
|
-
}
|
35
|
-
|
36
|
-
// States
|
37
|
-
.isRootStateInvalid {
|
38
|
-
@include variants.validation(invalid);
|
39
|
-
}
|
40
|
-
|
41
|
-
.isRootStateValid {
|
42
|
-
@include variants.validation(valid);
|
43
|
-
}
|
44
|
-
|
45
|
-
.isRootStateWarning {
|
46
|
-
@include variants.validation(warning);
|
47
|
-
}
|
48
|
-
|
49
|
-
// Invisible label
|
50
|
-
.isLabelHidden {
|
51
|
-
@include accessibility.hide-text();
|
52
|
-
}
|
53
|
-
|
54
|
-
// Layouts
|
55
|
-
.hasRootLabelBefore {
|
56
|
-
@include inline-field-layout.has-label-before();
|
57
|
-
}
|
58
|
-
|
59
|
-
.isRootInFormLayout {
|
60
|
-
@include inline-field-layout.in-form-layout();
|
61
|
-
}
|
@@ -1,83 +0,0 @@
|
|
1
|
-
// 1. Get rid of unwanted spacing of inline elements by invocation of flex layout.
|
2
|
-
|
3
|
-
@use "../../styles/tools/spacing";
|
4
|
-
@use "theme";
|
5
|
-
|
6
|
-
.toolbar,
|
7
|
-
.group {
|
8
|
-
display: flex;
|
9
|
-
flex-wrap: wrap;
|
10
|
-
gap: theme.$gap;
|
11
|
-
}
|
12
|
-
|
13
|
-
.toolbar {
|
14
|
-
@include spacing.bottom(layouts);
|
15
|
-
}
|
16
|
-
|
17
|
-
.item {
|
18
|
-
display: flex; // 1.
|
19
|
-
flex: none;
|
20
|
-
flex-direction: column; // 1.
|
21
|
-
}
|
22
|
-
|
23
|
-
.isItemFlexible {
|
24
|
-
flex: 1;
|
25
|
-
min-width: 0;
|
26
|
-
}
|
27
|
-
|
28
|
-
.isToolbarAlignedToTop,
|
29
|
-
.isGroupAlignedToTop {
|
30
|
-
align-items: flex-start;
|
31
|
-
}
|
32
|
-
|
33
|
-
.isToolbarAlignedToMiddle,
|
34
|
-
.isGroupAlignedToMiddle {
|
35
|
-
align-items: center;
|
36
|
-
}
|
37
|
-
|
38
|
-
.isToolbarAlignedToBottom,
|
39
|
-
.isGroupAlignedToBottom {
|
40
|
-
align-items: flex-end;
|
41
|
-
}
|
42
|
-
|
43
|
-
.isToolbarAlignedToBaseline,
|
44
|
-
.isGroupAlignedToBaseline {
|
45
|
-
align-items: baseline;
|
46
|
-
}
|
47
|
-
|
48
|
-
.isToolbarJustifiedToStart,
|
49
|
-
.isGroupJustifiedToStart {
|
50
|
-
justify-content: flex-start;
|
51
|
-
}
|
52
|
-
|
53
|
-
.isToolbarJustifiedToCenter,
|
54
|
-
.isGroupJustifiedToCenter {
|
55
|
-
justify-content: center;
|
56
|
-
}
|
57
|
-
|
58
|
-
.isToolbarJustifiedToEnd,
|
59
|
-
.isGroupJustifiedToEnd {
|
60
|
-
justify-content: flex-end;
|
61
|
-
}
|
62
|
-
|
63
|
-
.isToolbarJustifiedToSpaceBetween,
|
64
|
-
.isGroupJustifiedToSpaceBetween {
|
65
|
-
justify-content: space-between;
|
66
|
-
}
|
67
|
-
|
68
|
-
.isToolbarDense,
|
69
|
-
.isGroupDense,
|
70
|
-
.isToolbarDense .group,
|
71
|
-
.isGroupDense .group {
|
72
|
-
gap: theme.$gap-dense;
|
73
|
-
}
|
74
|
-
|
75
|
-
.isToolbarNowrap,
|
76
|
-
.isGroupNowrap {
|
77
|
-
flex-wrap: nowrap;
|
78
|
-
}
|
79
|
-
|
80
|
-
.isToolbarNowrap > .item:not(.isItemFlexible),
|
81
|
-
.isGroupNowrap > .item:not(.isItemFlexible) {
|
82
|
-
flex: 0 1 auto;
|
83
|
-
}
|
File without changes
|