@react-ui-org/react-ui 0.53.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 +10800 -0
- package/dist/react-ui.development.js +1568 -0
- package/dist/react-ui.js +1 -1
- package/package.json +7 -4
- 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 +9 -1
- package/src/components/InputGroup/InputGroup.module.scss +93 -0
- package/src/components/InputGroup/README.md +27 -10
- 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/CODEOWNERS +0 -23
- 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 -87
- 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,78 +0,0 @@
|
|
1
|
-
@use "sass:map";
|
2
|
-
@use "../../styles/theme/typography";
|
3
|
-
@use "../../styles/tools/accessibility";
|
4
|
-
@use "../../styles/tools/breakpoint";
|
5
|
-
@use "../../styles/tools/reset";
|
6
|
-
@use "../../styles/tools/spacing";
|
7
|
-
@use "settings";
|
8
|
-
@use "theme";
|
9
|
-
|
10
|
-
.root {
|
11
|
-
--rui-local-outer-spacing: #{theme.$outer-spacing-xs};
|
12
|
-
--rui-local-max-width: calc(100% - (2 * var(--rui-local-outer-spacing)));
|
13
|
-
--rui-local-max-height: calc(100% - (2 * var(--rui-local-outer-spacing)));
|
14
|
-
|
15
|
-
position: fixed;
|
16
|
-
left: 50%;
|
17
|
-
z-index: settings.$z-index;
|
18
|
-
display: flex;
|
19
|
-
flex-direction: column;
|
20
|
-
max-width: var(--rui-local-max-width);
|
21
|
-
max-height: var(--rui-local-max-height);
|
22
|
-
overflow-y: auto;
|
23
|
-
overscroll-behavior: contain;
|
24
|
-
border-radius: settings.$border-radius;
|
25
|
-
background: theme.$background;
|
26
|
-
box-shadow: theme.$box-shadow;
|
27
|
-
transform: translateX(-50%);
|
28
|
-
|
29
|
-
@include breakpoint.up(sm) {
|
30
|
-
--rui-local-outer-spacing: #{theme.$outer-spacing-sm};
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
.backdrop {
|
35
|
-
position: fixed;
|
36
|
-
top: 0;
|
37
|
-
left: 0;
|
38
|
-
z-index: settings.$backdrop-z-index;
|
39
|
-
width: 100vw;
|
40
|
-
height: 100vh;
|
41
|
-
background: theme.$backdrop-background;
|
42
|
-
}
|
43
|
-
|
44
|
-
.isRootSizeSmall {
|
45
|
-
width: map.get(theme.$sizes, small, width);
|
46
|
-
}
|
47
|
-
|
48
|
-
.isRootSizeMedium {
|
49
|
-
width: map.get(theme.$sizes, medium, width);
|
50
|
-
}
|
51
|
-
|
52
|
-
.isRootSizeLarge {
|
53
|
-
width: map.get(theme.$sizes, large, width);
|
54
|
-
}
|
55
|
-
|
56
|
-
.isRootSizeFullscreen {
|
57
|
-
width: map.get(theme.$sizes, fullscreen, width);
|
58
|
-
height: map.get(theme.$sizes, fullscreen, height);
|
59
|
-
}
|
60
|
-
|
61
|
-
.isRootSizeFullscreen .content {
|
62
|
-
height: 100%;
|
63
|
-
}
|
64
|
-
|
65
|
-
.isRootSizeAuto {
|
66
|
-
width: auto;
|
67
|
-
min-width: min(var(--rui-local-max-width), #{map.get(theme.$sizes, auto, min-width)});
|
68
|
-
max-width: min(var(--rui-local-max-width), #{map.get(theme.$sizes, auto, max-width)});
|
69
|
-
}
|
70
|
-
|
71
|
-
.isRootPositionCenter {
|
72
|
-
top: 50%;
|
73
|
-
transform: translate(-50%, -50%);
|
74
|
-
}
|
75
|
-
|
76
|
-
.isRootPositionTop {
|
77
|
-
top: var(--rui-local-outer-spacing);
|
78
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
.root {
|
2
|
-
flex: 1 1 auto;
|
3
|
-
}
|
4
|
-
|
5
|
-
.isRootScrollingAuto,
|
6
|
-
.isRootScrollingCustom {
|
7
|
-
min-height: 0;
|
8
|
-
}
|
9
|
-
|
10
|
-
.isRootScrollingAuto {
|
11
|
-
overflow-y: auto;
|
12
|
-
overscroll-behavior: contain;
|
13
|
-
}
|
14
|
-
|
15
|
-
.isRootScrollingCustom {
|
16
|
-
display: flex;
|
17
|
-
flex-direction: column;
|
18
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
@use "sass:map";
|
2
|
-
@use "../../styles/theme/typography";
|
3
|
-
@use "../../styles/tools/accessibility";
|
4
|
-
@use "../../styles/tools/reset";
|
5
|
-
@use "../../styles/tools/spacing";
|
6
|
-
|
7
|
-
.root {
|
8
|
-
@include reset.button();
|
9
|
-
@include accessibility.min-tap-target();
|
10
|
-
|
11
|
-
font-size: map.get(typography.$font-size-values, 4);
|
12
|
-
line-height: 1;
|
13
|
-
color: inherit;
|
14
|
-
|
15
|
-
&:disabled {
|
16
|
-
cursor: var(--rui-cursor-not-allowed);
|
17
|
-
}
|
18
|
-
}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
@use "settings";
|
2
|
-
@use "theme";
|
3
|
-
|
4
|
-
.root {
|
5
|
-
display: flex;
|
6
|
-
flex: none;
|
7
|
-
flex-wrap: wrap;
|
8
|
-
gap: theme.$footer-gap;
|
9
|
-
align-items: center;
|
10
|
-
padding: theme.$padding-y theme.$padding-x;
|
11
|
-
border-top: theme.$separator-width solid theme.$separator-color;
|
12
|
-
border-bottom-right-radius: settings.$border-radius;
|
13
|
-
border-bottom-left-radius: settings.$border-radius;
|
14
|
-
background: theme.$footer-background;
|
15
|
-
}
|
16
|
-
|
17
|
-
.isRootJustifiedToStart {
|
18
|
-
justify-content: flex-start;
|
19
|
-
}
|
20
|
-
|
21
|
-
.isRootJustifiedToCenter {
|
22
|
-
justify-content: center;
|
23
|
-
}
|
24
|
-
|
25
|
-
.isRootJustifiedToEnd {
|
26
|
-
justify-content: flex-end;
|
27
|
-
}
|
28
|
-
|
29
|
-
.isRootJustifiedToSpaceBetween {
|
30
|
-
justify-content: space-between;
|
31
|
-
}
|
32
|
-
|
33
|
-
.isRootJustifiedToStretch {
|
34
|
-
display: block;
|
35
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
@use "theme";
|
2
|
-
|
3
|
-
.root {
|
4
|
-
display: flex;
|
5
|
-
flex: none;
|
6
|
-
gap: theme.$header-gap;
|
7
|
-
align-items: baseline;
|
8
|
-
padding: theme.$padding-y theme.$padding-x;
|
9
|
-
border-bottom: theme.$separator-width solid theme.$separator-color;
|
10
|
-
}
|
11
|
-
|
12
|
-
.isRootJustifiedToStart {
|
13
|
-
justify-content: flex-start;
|
14
|
-
}
|
15
|
-
|
16
|
-
.isRootJustifiedToCenter {
|
17
|
-
justify-content: center;
|
18
|
-
}
|
19
|
-
|
20
|
-
.isRootJustifiedToEnd {
|
21
|
-
justify-content: flex-end;
|
22
|
-
}
|
23
|
-
|
24
|
-
.isRootJustifiedToSpaceBetween {
|
25
|
-
justify-content: space-between;
|
26
|
-
}
|
27
|
-
|
28
|
-
.isRootJustifiedToStretch {
|
29
|
-
display: block;
|
30
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
@use "theme";
|
2
|
-
|
3
|
-
.root {
|
4
|
-
padding: theme.$padding;
|
5
|
-
border: theme.$border-width solid theme.$border-color;
|
6
|
-
border-radius: theme.$border-radius;
|
7
|
-
background-color: theme.$background-color;
|
8
|
-
}
|
9
|
-
|
10
|
-
.isRootMuted {
|
11
|
-
background-color: theme.$muted-background-color;
|
12
|
-
opacity: theme.$muted-opacity;
|
13
|
-
}
|
14
|
-
|
15
|
-
.isRootRaised {
|
16
|
-
box-shadow: theme.$raised-box-shadow;
|
17
|
-
}
|
@@ -1,236 +0,0 @@
|
|
1
|
-
// 1. Reset positioning for controlled variant.
|
2
|
-
// 2. Shift Popover so there is space for the arrow between Popover and reference element.
|
3
|
-
// 3. Add top offset in case it's not defined by external library.
|
4
|
-
|
5
|
-
@use "theme";
|
6
|
-
|
7
|
-
.root {
|
8
|
-
position: absolute;
|
9
|
-
width: max-content;
|
10
|
-
max-width: theme.$max-width;
|
11
|
-
padding: theme.$padding;
|
12
|
-
text-align: left;
|
13
|
-
white-space: normal;
|
14
|
-
word-break: normal;
|
15
|
-
word-wrap: break-word;
|
16
|
-
color: theme.$color;
|
17
|
-
border: theme.$border-width solid theme.$border-color;
|
18
|
-
border-radius: theme.$border-radius;
|
19
|
-
background-color: theme.$background-color;
|
20
|
-
box-shadow: theme.$box-shadow;
|
21
|
-
}
|
22
|
-
|
23
|
-
.arrow {
|
24
|
-
position: absolute;
|
25
|
-
width: theme.$arrow-width;
|
26
|
-
height: theme.$arrow-height;
|
27
|
-
transform-origin: center bottom;
|
28
|
-
|
29
|
-
&::before,
|
30
|
-
&::after {
|
31
|
-
content: "";
|
32
|
-
position: absolute;
|
33
|
-
display: block;
|
34
|
-
border-style: solid;
|
35
|
-
border-color: transparent;
|
36
|
-
}
|
37
|
-
|
38
|
-
&::before {
|
39
|
-
bottom: 0;
|
40
|
-
border-width: theme.$arrow-height theme.$arrow-height 0;
|
41
|
-
border-top-color: theme.$border-color;
|
42
|
-
}
|
43
|
-
|
44
|
-
&::after {
|
45
|
-
bottom: theme.$border-width;
|
46
|
-
border-width: theme.$arrow-height theme.$arrow-height 0;
|
47
|
-
border-top-color: theme.$background-color;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
// Sides
|
52
|
-
.isRootAtTop {
|
53
|
-
bottom: 100%;
|
54
|
-
}
|
55
|
-
|
56
|
-
.isRootAtBottom {
|
57
|
-
top: 100%;
|
58
|
-
}
|
59
|
-
|
60
|
-
.isRootAtLeft {
|
61
|
-
right: 100%;
|
62
|
-
}
|
63
|
-
|
64
|
-
.isRootAtRight {
|
65
|
-
left: 100%;
|
66
|
-
}
|
67
|
-
|
68
|
-
// Arrows
|
69
|
-
.isRootAtTop > .arrow {
|
70
|
-
top: 100%;
|
71
|
-
}
|
72
|
-
|
73
|
-
.isRootAtBottom > .arrow {
|
74
|
-
bottom: 100%;
|
75
|
-
}
|
76
|
-
|
77
|
-
.isRootAtLeft > .arrow {
|
78
|
-
left: 100%;
|
79
|
-
}
|
80
|
-
|
81
|
-
.isRootAtRight > .arrow {
|
82
|
-
right: 100%;
|
83
|
-
}
|
84
|
-
|
85
|
-
// Side alignments: top
|
86
|
-
.isRootAtTop.isRootAtCenter {
|
87
|
-
left: 50%;
|
88
|
-
transform: translate(-50%, #{-1 * theme.$arrow-height});
|
89
|
-
}
|
90
|
-
|
91
|
-
.isRootAtTop.isRootAtStart {
|
92
|
-
left: 0;
|
93
|
-
transform: translate(0, #{-1 * theme.$arrow-height});
|
94
|
-
}
|
95
|
-
|
96
|
-
.isRootAtTop.isRootAtEnd {
|
97
|
-
right: 0;
|
98
|
-
transform: translate(0, #{-1 * theme.$arrow-height});
|
99
|
-
}
|
100
|
-
|
101
|
-
.isRootAtTop.isRootAtCenter > .arrow {
|
102
|
-
left: 50%;
|
103
|
-
transform: translate(-50%, 0) rotateZ(0);
|
104
|
-
}
|
105
|
-
|
106
|
-
.isRootAtTop.isRootAtStart > .arrow {
|
107
|
-
left: theme.$arrow-corner-offset;
|
108
|
-
transform: translate(0, 0) rotateZ(0);
|
109
|
-
}
|
110
|
-
|
111
|
-
.isRootAtTop.isRootAtEnd > .arrow {
|
112
|
-
right: theme.$arrow-corner-offset;
|
113
|
-
transform: translate(0, 0) rotateZ(0);
|
114
|
-
}
|
115
|
-
|
116
|
-
// Side alignments: bottom
|
117
|
-
.isRootAtBottom.isRootAtCenter {
|
118
|
-
left: 50%;
|
119
|
-
transform: translate(-50%, #{theme.$arrow-height});
|
120
|
-
}
|
121
|
-
|
122
|
-
.isRootAtBottom.isRootAtStart {
|
123
|
-
left: 0;
|
124
|
-
transform: translate(0, #{theme.$arrow-height});
|
125
|
-
}
|
126
|
-
|
127
|
-
.isRootAtBottom.isRootAtEnd {
|
128
|
-
right: 0;
|
129
|
-
transform: translate(0, #{theme.$arrow-height});
|
130
|
-
}
|
131
|
-
|
132
|
-
.isRootAtBottom.isRootAtCenter > .arrow {
|
133
|
-
left: 50%;
|
134
|
-
transform: translate(-50%, -100%) rotateZ(180deg);
|
135
|
-
}
|
136
|
-
|
137
|
-
.isRootAtBottom.isRootAtStart > .arrow {
|
138
|
-
left: theme.$arrow-corner-offset;
|
139
|
-
transform: translate(0, -100%) rotateZ(180deg);
|
140
|
-
}
|
141
|
-
|
142
|
-
.isRootAtBottom.isRootAtEnd > .arrow {
|
143
|
-
right: theme.$arrow-corner-offset;
|
144
|
-
transform: translate(0, -100%) rotateZ(180deg);
|
145
|
-
}
|
146
|
-
|
147
|
-
// Side alignments: left
|
148
|
-
.isRootAtLeft.isRootAtCenter {
|
149
|
-
top: 50%;
|
150
|
-
transform: translate(#{-1 * theme.$arrow-height}, -50%);
|
151
|
-
}
|
152
|
-
|
153
|
-
.isRootAtLeft.isRootAtStart {
|
154
|
-
top: 0;
|
155
|
-
transform: translate(#{-1 * theme.$arrow-height}, 0);
|
156
|
-
}
|
157
|
-
|
158
|
-
.isRootAtLeft.isRootAtEnd {
|
159
|
-
bottom: 0;
|
160
|
-
transform: translate(#{-1 * theme.$arrow-height}, 0);
|
161
|
-
}
|
162
|
-
|
163
|
-
.isRootAtLeft.isRootAtCenter > .arrow {
|
164
|
-
top: 50%;
|
165
|
-
transform: translate(0, -100%) rotateZ(-90deg);
|
166
|
-
}
|
167
|
-
|
168
|
-
.isRootAtLeft.isRootAtStart > .arrow {
|
169
|
-
top: theme.$arrow-corner-offset;
|
170
|
-
transform: translate(0, 0) rotateZ(-90deg);
|
171
|
-
}
|
172
|
-
|
173
|
-
.isRootAtLeft.isRootAtEnd > .arrow {
|
174
|
-
bottom: theme.$arrow-corner-offset;
|
175
|
-
transform: translate(0, -100%) rotateZ(-90deg);
|
176
|
-
}
|
177
|
-
|
178
|
-
// Side alignments: right
|
179
|
-
.isRootAtRight.isRootAtCenter {
|
180
|
-
top: 50%;
|
181
|
-
transform: translate(#{theme.$arrow-height}, -50%);
|
182
|
-
}
|
183
|
-
|
184
|
-
.isRootAtRight.isRootAtStart {
|
185
|
-
top: 0;
|
186
|
-
transform: translate(#{theme.$arrow-height}, 0);
|
187
|
-
}
|
188
|
-
|
189
|
-
.isRootAtRight.isRootAtEnd {
|
190
|
-
bottom: 0;
|
191
|
-
transform: translate(#{theme.$arrow-height}, 0);
|
192
|
-
}
|
193
|
-
|
194
|
-
.isRootAtRight.isRootAtCenter > .arrow {
|
195
|
-
top: 50%;
|
196
|
-
transform: translate(0, -100%) rotateZ(90deg);
|
197
|
-
}
|
198
|
-
|
199
|
-
.isRootAtRight.isRootAtStart > .arrow {
|
200
|
-
top: theme.$arrow-corner-offset;
|
201
|
-
transform: translate(0, 0) rotateZ(90deg);
|
202
|
-
}
|
203
|
-
|
204
|
-
.isRootAtRight.isRootAtEnd > .arrow {
|
205
|
-
bottom: theme.$arrow-corner-offset;
|
206
|
-
transform: translate(0, -100%) rotateZ(90deg);
|
207
|
-
}
|
208
|
-
|
209
|
-
// Controlled placement
|
210
|
-
.isRootControlled.isRootAtTop,
|
211
|
-
.isRootControlled.isRootAtBottom,
|
212
|
-
.isRootControlled.isRootAtLeft,
|
213
|
-
.isRootControlled.isRootAtRight {
|
214
|
-
inset: unset; // 1.
|
215
|
-
}
|
216
|
-
|
217
|
-
.isRootControlled.isRootAtTop {
|
218
|
-
transform: translate(0, #{-1 * theme.$arrow-height}); // 2.
|
219
|
-
}
|
220
|
-
|
221
|
-
.isRootControlled.isRootAtBottom {
|
222
|
-
transform: translate(0, #{theme.$arrow-height}); // 2.
|
223
|
-
}
|
224
|
-
|
225
|
-
.isRootControlled.isRootAtLeft {
|
226
|
-
transform: translate(#{-1 * theme.$arrow-height}, 0); // 2.
|
227
|
-
}
|
228
|
-
|
229
|
-
.isRootControlled.isRootAtRight {
|
230
|
-
transform: translate(#{theme.$arrow-height}, 0); // 2.
|
231
|
-
}
|
232
|
-
|
233
|
-
.isRootControlled.isRootAtLeft.isRootAtStart,
|
234
|
-
.isRootControlled.isRootAtRight.isRootAtStart {
|
235
|
-
top: 0; // 3.
|
236
|
-
}
|
@@ -1,83 +0,0 @@
|
|
1
|
-
// 1. Legends are tricky to style, let's use a `div` instead.
|
2
|
-
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset#styling_with_css
|
3
|
-
|
4
|
-
@use "../../styles/tools/form-fields/box-field-elements";
|
5
|
-
@use "../../styles/tools/form-fields/box-field-layout";
|
6
|
-
@use "../../styles/tools/form-fields/foundation";
|
7
|
-
@use "../../styles/tools/form-fields/inline-field-elements";
|
8
|
-
@use "../../styles/tools/form-fields/inline-field-layout";
|
9
|
-
@use "../../styles/tools/form-fields/variants";
|
10
|
-
@use "../../styles/tools/accessibility";
|
11
|
-
@use "../../styles/tools/reset";
|
12
|
-
@use "../../styles/tools/spacing";
|
13
|
-
|
14
|
-
// Foundation
|
15
|
-
.root {
|
16
|
-
@include foundation.root();
|
17
|
-
@include foundation.fieldset();
|
18
|
-
@include variants.visual(check);
|
19
|
-
}
|
20
|
-
|
21
|
-
// 1.
|
22
|
-
.legend {
|
23
|
-
@include accessibility.hide-text();
|
24
|
-
}
|
25
|
-
|
26
|
-
// 1.
|
27
|
-
.label,
|
28
|
-
.optionLabel {
|
29
|
-
@include foundation.label();
|
30
|
-
}
|
31
|
-
|
32
|
-
.options {
|
33
|
-
@include reset.list();
|
34
|
-
}
|
35
|
-
|
36
|
-
.option {
|
37
|
-
@include inline-field-layout.field($type: radio);
|
38
|
-
@include inline-field-elements.min-tap-target($type: radio);
|
39
|
-
}
|
40
|
-
|
41
|
-
.input {
|
42
|
-
@include inline-field-elements.check-input($type: radio);
|
43
|
-
}
|
44
|
-
|
45
|
-
.helpText,
|
46
|
-
.validationText {
|
47
|
-
@include foundation.help-text();
|
48
|
-
}
|
49
|
-
|
50
|
-
.isRootRequired .label {
|
51
|
-
@include foundation.label-required();
|
52
|
-
}
|
53
|
-
|
54
|
-
// States
|
55
|
-
.isRootStateInvalid {
|
56
|
-
@include variants.validation(invalid);
|
57
|
-
}
|
58
|
-
|
59
|
-
.isRootStateValid {
|
60
|
-
@include variants.validation(valid);
|
61
|
-
}
|
62
|
-
|
63
|
-
.isRootStateWarning {
|
64
|
-
@include variants.validation(warning);
|
65
|
-
}
|
66
|
-
|
67
|
-
// Layouts
|
68
|
-
.isRootLayoutVertical,
|
69
|
-
.isRootLayoutHorizontal {
|
70
|
-
@include box-field-layout.vertical($has-list: true);
|
71
|
-
}
|
72
|
-
|
73
|
-
.isRootLayoutHorizontal {
|
74
|
-
@include box-field-layout.horizontal($has-min-tap-target: true);
|
75
|
-
}
|
76
|
-
|
77
|
-
.isRootFullWidth {
|
78
|
-
@include box-field-layout.full-width();
|
79
|
-
}
|
80
|
-
|
81
|
-
.isRootInFormLayout {
|
82
|
-
@include box-field-layout.in-form-layout($is-fieldset: true);
|
83
|
-
}
|