@steroidsjs/bootstrap 3.0.0-beta.3 → 3.0.0-beta.31
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/README.md +1 -2
- package/content/Accordion/AccordionItemView.d.ts +2 -0
- package/content/Accordion/AccordionItemView.js +96 -0
- package/content/Accordion/AccordionItemView.scss +209 -0
- package/content/Accordion/AccordionView.d.ts +2 -0
- package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
- package/content/{Collapse/CollapseView.scss → Accordion/AccordionView.scss} +3 -4
- package/content/Alert/AlertView.scss +19 -4
- package/content/Avatar/AvatarView.js +2 -3
- package/content/Avatar/AvatarView.scss +29 -36
- package/content/Badge/BadgeView.d.ts +3 -0
- package/content/Badge/BadgeView.js +25 -0
- package/content/Badge/BadgeView.scss +135 -0
- package/content/Calendar/CaptionElement.scss +5 -4
- package/content/Card/CardView.js +34 -14
- package/content/Card/CardView.scss +126 -110
- package/content/Detail/DetailView.scss +75 -52
- package/content/DropDown/DropDownView.js +6 -3
- package/content/DropDown/DropDownView.scss +196 -27
- package/content/Icon/IconView.js +2 -2
- package/form/Button/ButtonView.js +12 -8
- package/form/Button/ButtonView.scss +157 -71
- package/form/CheckboxField/CheckboxFieldView.js +6 -3
- package/form/CheckboxField/CheckboxFieldView.scss +185 -36
- package/form/DropDownField/DropDownFieldView.js +46 -47
- package/form/DropDownField/DropDownFieldView.scss +391 -181
- package/form/DropDownField/views/DropDownItem/DropDownItemView.d.ts +3 -0
- package/form/DropDownField/views/DropDownItem/DropDownItemView.js +80 -0
- package/form/DropDownField/views/DropDownItem/DropDownItemView.scss +217 -0
- package/form/DropDownField/views/DropDownItem/index.d.ts +2 -0
- package/form/DropDownField/views/DropDownItem/index.js +7 -0
- package/form/FieldLayout/FieldLayoutView.js +12 -4
- package/form/FieldLayout/FieldLayoutView.scss +128 -24
- package/form/Form/FormView.js +3 -3
- package/form/Form/FormView.scss +10 -14
- package/form/InputField/InputFieldView.js +32 -13
- package/form/InputField/InputFieldView.scss +245 -99
- package/form/NumberField/NumberFieldView.js +19 -13
- package/form/NumberField/NumberFieldView.scss +195 -89
- package/form/PasswordField/PasswordFieldView.js +11 -9
- package/form/PasswordField/PasswordFieldView.scss +231 -63
- package/form/RadioListField/RadioListFieldView.js +10 -3
- package/form/RadioListField/RadioListFieldView.scss +229 -1
- package/form/TextField/TextFieldView.js +10 -2
- package/form/TextField/TextFieldView.scss +143 -2
- package/icons/index.d.ts +2 -0
- package/{icon/fontawesome.js → icons/index.js} +37 -11
- package/icons/svgs/accordion-chevron.svg +4 -0
- package/icons/svgs/arrow.svg +3 -0
- package/icons/svgs/badge-close.svg +3 -0
- package/icons/svgs/close.svg +4 -0
- package/icons/svgs/crossed-out-eye.svg +5 -0
- package/icons/svgs/default.svg +11 -0
- package/icons/svgs/dots.svg +5 -0
- package/icons/svgs/error.svg +12 -0
- package/icons/svgs/field-close.svg +4 -0
- package/icons/svgs/info.svg +12 -0
- package/icons/svgs/loader.svg +3 -0
- package/icons/svgs/search.svg +4 -0
- package/icons/svgs/success.svg +4 -0
- package/icons/svgs/user.svg +4 -0
- package/icons/svgs/visible-eye.svg +4 -0
- package/icons/svgs/warning.svg +12 -0
- package/index.d.ts +11 -2
- package/index.js +13 -4
- package/index.scss +6 -3
- package/layout/Header/HeaderView.scss +3 -3
- package/layout/Tooltip/TooltipView.js +6 -6
- package/layout/Tooltip/TooltipView.scss +45 -37
- package/list/Grid/GridView.scss +28 -30
- package/nav/Tree/TreeView.scss +14 -11
- package/package.json +56 -56
- package/scss/fonts.scss +6 -0
- package/scss/mixins/button.scss +51 -25
- package/scss/mixins/index.scss +2 -1
- package/scss/mixins/scroll.scss +31 -0
- package/scss/mixins/typography.scss +26 -0
- package/scss/variables/common/colors.scss +87 -67
- package/scss/variables/common/media.scss +2 -0
- package/scss/variables/common/typography.scss +96 -28
- package/scss/variables/components/input.scss +7 -6
- package/scss/variables/index.scss +2 -2
- package/scss/variables/normalize.scss +21 -0
- package/typography/Text/TextView.d.ts +3 -0
- package/typography/Text/TextView.js +46 -0
- package/typography/Text/TextView.scss +16 -0
- package/typography/Title/TitleView.d.ts +3 -0
- package/typography/Title/TitleView.js +50 -0
- package/typography/Title/TitleView.scss +16 -0
- package/content/Collapse/CollapseItemView.d.ts +0 -2
- package/content/Collapse/CollapseItemView.js +0 -65
- package/content/Collapse/CollapseItemView.scss +0 -88
- package/content/Collapse/CollapseView.d.ts +0 -2
- package/content/Icon/IconView.scss +0 -25
- package/icon/fontawesome.d.ts +0 -2
- package/scss/mixins/card.scss +0 -26
- package/scss/variables/components/card.scss +0 -20
|
@@ -1,3 +1,231 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--radio-hover-color: #651fff;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
html[data-theme="dark"] {
|
|
6
|
+
--radio-hover-color: #6648A7;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
$radio-hover-color: var(--radio-hover-color);
|
|
10
|
+
|
|
1
11
|
.RadioListFieldView {
|
|
12
|
+
position: relative;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
|
|
15
|
+
$root: &;
|
|
16
|
+
|
|
17
|
+
font-family: $font-family-nunito;
|
|
18
|
+
color: $text-color;
|
|
19
|
+
line-height: 24px;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
font-size: $font-size-sm;
|
|
22
|
+
|
|
23
|
+
&__ellipse {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 50%;
|
|
26
|
+
left: 6px;
|
|
27
|
+
transform: translateY(-50%);
|
|
28
|
+
display: inline-block;
|
|
29
|
+
width: 12px;
|
|
30
|
+
height: 12px;
|
|
31
|
+
background-color: $primary;
|
|
32
|
+
border-radius: $radius-circle;
|
|
33
|
+
opacity: 0;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__label {
|
|
38
|
+
position: relative;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__input {
|
|
42
|
+
position: absolute;
|
|
43
|
+
z-index: -1;
|
|
44
|
+
opacity: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__input + &__label {
|
|
48
|
+
position: relative;
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
user-select: none;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
//Custom Radio
|
|
56
|
+
&__input + label::before {
|
|
57
|
+
content: "";
|
|
58
|
+
display: inline-block;
|
|
59
|
+
width: 24px;
|
|
60
|
+
height: 24px;
|
|
61
|
+
border-radius: $radius-circle;
|
|
62
|
+
border: 1px solid $border-color;
|
|
63
|
+
margin-right: 8px;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
|
|
66
|
+
background-repeat: no-repeat;
|
|
67
|
+
background-position: 53% 50%;
|
|
68
|
+
background-size: 50% 50%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__input + &__label::after {
|
|
72
|
+
content: "";
|
|
73
|
+
width: 26px;
|
|
74
|
+
height: 26px;
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 0;
|
|
77
|
+
left: 0;
|
|
78
|
+
border: 4px solid $primary-light;
|
|
79
|
+
border-radius: $radius-circle;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
opacity: 0;
|
|
82
|
+
|
|
83
|
+
transform: translate(-12%, -12%);
|
|
84
|
+
|
|
85
|
+
transition: opacity 150ms ease-in-out;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&__input:not(:disabled):not(:checked):hover + &__label::before {
|
|
89
|
+
border-color: $border-color-hover;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&__input:not(:disabled):not(:checked):active + &__label::before {
|
|
93
|
+
border-color: $primary;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&__input:not(:disabled):focus + &__label::after {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&__input:not(:disabled):focus + &__label &__ellipse {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__input:checked + &__label::before {
|
|
105
|
+
border: 1px solid $primary;
|
|
106
|
+
}
|
|
107
|
+
&__input:checked + &__label &__ellipse {
|
|
108
|
+
opacity: 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&__input:not(:disabled):checked:hover + &__label::before {
|
|
112
|
+
border-color: $primary-dark;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&__input:not(:disabled):checked:hover + &__label &__ellipse {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
background-color: $radio-hover-color;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&__input:not(:disabled):checked:active + &__label::before {
|
|
121
|
+
border-color: $primary-light;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&__input:not(:disabled):checked:active + &__label &__ellipse {
|
|
125
|
+
opacity: 1;
|
|
126
|
+
background-color: $primary-light;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&__input:disabled + &__label {
|
|
130
|
+
cursor: not-allowed;
|
|
131
|
+
color: $placeholder-color;
|
|
132
|
+
|
|
133
|
+
&::before {
|
|
134
|
+
cursor: not-allowed;
|
|
135
|
+
background-color: $background-disabled-color;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&__input:disabled:checked + &__label::before {
|
|
140
|
+
cursor: not-allowed;
|
|
141
|
+
|
|
142
|
+
background-color: transparent;
|
|
143
|
+
border-color: $background-disabled-color;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&__input:disabled:checked + &__label &__ellipse {
|
|
147
|
+
background-color: $background-disabled-color;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&__item_hasError {
|
|
151
|
+
#{$root}__input:not(:disabled):not(:checked) + #{$root}__label {
|
|
152
|
+
color: $danger;
|
|
153
|
+
|
|
154
|
+
&::before {
|
|
155
|
+
border-color: $danger;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&__item {
|
|
161
|
+
width: fit-content;
|
|
162
|
+
position: relative;
|
|
163
|
+
|
|
164
|
+
&_size {
|
|
165
|
+
&_lg {
|
|
166
|
+
#{$root}__label {
|
|
167
|
+
font-size: $font-size-lg;
|
|
168
|
+
line-height: 24px;
|
|
169
|
+
|
|
170
|
+
&::before {
|
|
171
|
+
width: 22px;
|
|
172
|
+
height: 22px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&::after {
|
|
176
|
+
width: 24px;
|
|
177
|
+
height: 24px;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&_md {
|
|
183
|
+
#{$root}__label {
|
|
184
|
+
font-size: $font-size-base;
|
|
185
|
+
line-height: 22px;
|
|
186
|
+
|
|
187
|
+
&::before {
|
|
188
|
+
width: 18px;
|
|
189
|
+
height: 18px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&::after {
|
|
193
|
+
width: 20px;
|
|
194
|
+
height: 20px;
|
|
195
|
+
transform: translate(-14.5%, -10.5%);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
#{$root}__ellipse {
|
|
200
|
+
width: 10px;
|
|
201
|
+
height: 10px;
|
|
202
|
+
left: 5px;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&_sm {
|
|
207
|
+
#{$root}__label {
|
|
208
|
+
font-size: $font-size-sm;
|
|
209
|
+
line-height: 18px;
|
|
210
|
+
|
|
211
|
+
&::before {
|
|
212
|
+
width: 14px;
|
|
213
|
+
height: 14px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&::after {
|
|
217
|
+
width: 16px;
|
|
218
|
+
height: 16px;
|
|
219
|
+
transform: translate(-16.5%, -12.5%);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
2
222
|
|
|
3
|
-
}
|
|
223
|
+
#{$root}__ellipse {
|
|
224
|
+
width: 8px;
|
|
225
|
+
height: 8px;
|
|
226
|
+
left: 4px;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
@@ -33,13 +33,21 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
33
33
|
__setModuleDefault(result, mod);
|
|
34
34
|
return result;
|
|
35
35
|
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
36
39
|
exports.__esModule = true;
|
|
37
40
|
var React = __importStar(require("react"));
|
|
38
41
|
var hooks_1 = require("@steroidsjs/core/hooks");
|
|
42
|
+
var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon"));
|
|
39
43
|
function TextFieldView(props) {
|
|
40
44
|
var bem = (0, hooks_1.useBem)('TextFieldView');
|
|
41
|
-
return (React.createElement("
|
|
45
|
+
return (React.createElement("div", { className: bem(bem.block({
|
|
46
|
+
hasErrors: !!props.errors,
|
|
47
|
+
filled: !!props.inputProps.value,
|
|
42
48
|
size: props.size
|
|
43
|
-
}),
|
|
49
|
+
}), props.className) },
|
|
50
|
+
React.createElement("textarea", __assign({ className: bem.element('textarea'), id: props.id }, props.inputProps)),
|
|
51
|
+
props.showClear && (React.createElement(Icon_1["default"], { className: bem.element('clear'), name: "field-close", onClick: props.onClear }))));
|
|
44
52
|
}
|
|
45
53
|
exports["default"] = TextFieldView;
|
|
@@ -1,4 +1,145 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--text-field-disabled-clear-color: #e5e9eb;
|
|
3
|
+
--text-field-active-clear-color: #323232;
|
|
4
|
+
--text-field-background-color: #ffffff;
|
|
5
|
+
--text-field-border-color:
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
html[data-theme="dark"] {
|
|
9
|
+
--text-field-background-color: #414141;
|
|
10
|
+
--text-field-disabled-clear-color: #4e4f57;
|
|
11
|
+
--text-field-active-clear-color: #ffffff;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
$text-field-background-color: var(--text-field-background-color);
|
|
15
|
+
$text-field-disabled-clear-color: var(--text-field-disabled-clear-color);
|
|
16
|
+
$text-field-active-clear-color: var(--text-field-active-clear-color);
|
|
17
|
+
|
|
1
18
|
.TextFieldView {
|
|
2
|
-
|
|
3
|
-
|
|
19
|
+
$root: &;
|
|
20
|
+
|
|
21
|
+
position: relative;
|
|
22
|
+
font-family: $font-family-nunito;
|
|
23
|
+
|
|
24
|
+
&_hasErrors {
|
|
25
|
+
#{$root}__textarea {
|
|
26
|
+
border-color: $danger;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__clear {
|
|
31
|
+
position: absolute;
|
|
32
|
+
width: 24px;
|
|
33
|
+
height: 24px;
|
|
34
|
+
z-index: 3;
|
|
35
|
+
top: 3%;
|
|
36
|
+
right: 10px;
|
|
37
|
+
|
|
38
|
+
transition: opacity 150ms ease-in-out;
|
|
39
|
+
opacity: 0;
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
|
|
42
|
+
svg {
|
|
43
|
+
path {
|
|
44
|
+
stroke: $background-disabled-color;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:focus {
|
|
49
|
+
outline: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__textarea {
|
|
54
|
+
width: 100%;
|
|
55
|
+
min-width: 240px;
|
|
56
|
+
min-height: 80px;
|
|
57
|
+
height: 80px;
|
|
58
|
+
|
|
59
|
+
border-radius: $radius-small;
|
|
60
|
+
background-color: $text-field-background-color;
|
|
61
|
+
|
|
62
|
+
padding: 5px 40px 8px 8px;
|
|
63
|
+
|
|
64
|
+
font-size: $font-size-sm;
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
line-height: 24px;
|
|
67
|
+
z-index: 2;
|
|
68
|
+
outline: none;
|
|
69
|
+
color: $text-color;
|
|
70
|
+
border: 1px solid $border-color;
|
|
71
|
+
|
|
72
|
+
&::placeholder {
|
|
73
|
+
color: $placeholder-color;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:hover {
|
|
77
|
+
border-color: $border-color-hover;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:focus {
|
|
81
|
+
border: 4px solid $primary-light;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:active {
|
|
85
|
+
border: 1px solid $primary;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:disabled {
|
|
89
|
+
background-color: $background-disabled-color;
|
|
90
|
+
border: none;
|
|
91
|
+
resize: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&:disabled::placeholder {
|
|
95
|
+
color: $placeholder-disabled-color;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:disabled + #{$root}__clear {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:not(:disabled):focus + #{$root}__clear {
|
|
103
|
+
svg {
|
|
104
|
+
path {
|
|
105
|
+
stroke: $text-field-active-clear-color;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&_size {
|
|
112
|
+
&_lg {
|
|
113
|
+
#{$root}__textarea {
|
|
114
|
+
height: 130px;
|
|
115
|
+
min-height: 130px;
|
|
116
|
+
border-radius: $radius-large;
|
|
117
|
+
font-size: $font-size-lg;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&_md {
|
|
122
|
+
#{$root}__textarea {
|
|
123
|
+
height: 100px;
|
|
124
|
+
min-height: 100px;
|
|
125
|
+
border-radius: $radius-large;
|
|
126
|
+
font-size: $font-size-base;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&_sm {
|
|
131
|
+
#{$root}__textarea {
|
|
132
|
+
height: 80px;
|
|
133
|
+
border-radius: $radius-small;
|
|
134
|
+
font-size: $font-size-sm;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&_filled {
|
|
140
|
+
#{$root}__clear {
|
|
141
|
+
opacity: 1;
|
|
142
|
+
pointer-events: all;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
4
145
|
}
|
package/icons/index.d.ts
ADDED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
exports.__esModule = true;
|
|
14
|
+
/* eslint-disable import/no-dynamic-require */
|
|
3
15
|
var groupedIcons = {
|
|
4
16
|
brands: [
|
|
5
17
|
'500px', 'accessible-icon', 'accusoft', 'acquisitions-incorporated', 'adn', 'adversal',
|
|
@@ -52,7 +64,7 @@ var groupedIcons = {
|
|
|
52
64
|
'strava', 'stripe', 'stripe-s', 'studiovinari', 'stumbleupon', 'stumbleupon-circle', 'superpowers',
|
|
53
65
|
'supple', 'suse', 'swift', 'symfony', 'teamspeak', 'telegram', 'telegram-plane', 'tencent-weibo',
|
|
54
66
|
'the-red-yeti', 'themeco', 'themeisle', 'think-peaks', 'tiktok', 'trade-federation', 'trello',
|
|
55
|
-
'
|
|
67
|
+
'tumblr', 'tumblr-square', 'twitch', 'twitter', 'twitter-square', 'typo3', 'uber', 'ubuntu',
|
|
56
68
|
'uikit', 'umbraco', 'uniregistry', 'unity', 'unsplash', 'untappd', 'ups', 'usb', 'usps', 'ussunnah',
|
|
57
69
|
'vaadin', 'viacoin', 'viadeo', 'viadeo-square', 'viber', 'vimeo', 'vimeo-square', 'vimeo-v', 'vine', 'vk',
|
|
58
70
|
'vnv', 'vuejs', 'waze', 'weebly', 'weibo', 'weixin', 'whatsapp', 'whatsapp-square', 'whmcs', 'wikipedia-w',
|
|
@@ -220,12 +232,11 @@ var groupedIcons = {
|
|
|
220
232
|
'yin-yang',
|
|
221
233
|
]
|
|
222
234
|
};
|
|
223
|
-
exports["default"] = (function () {
|
|
235
|
+
exports["default"] = (function (customIcons) {
|
|
224
236
|
// All icons
|
|
225
237
|
var icons = {};
|
|
226
238
|
Object.keys(groupedIcons).forEach(function (group) {
|
|
227
239
|
groupedIcons[group].forEach(function (name) {
|
|
228
|
-
// eslint-disable-next-line import/no-dynamic-require
|
|
229
240
|
icons[name] = require("@fortawesome/fontawesome-free/svgs/".concat(group, "/").concat(name, ".svg"));
|
|
230
241
|
});
|
|
231
242
|
});
|
|
@@ -239,16 +250,31 @@ exports["default"] = (function () {
|
|
|
239
250
|
reject: 'times-circle',
|
|
240
251
|
back: 'arrow-left',
|
|
241
252
|
securityEye: 'eye',
|
|
242
|
-
securityEyeSlash: 'eye-slash'
|
|
243
|
-
success: './svgs/success.svg',
|
|
244
|
-
info: './svgs/info.svg',
|
|
245
|
-
warning: './svgs/warning.svg',
|
|
246
|
-
error: './svgs/error.svg',
|
|
247
|
-
close: './svgs/close.svg',
|
|
248
|
-
"default": './svgs/default.svg'
|
|
253
|
+
securityEyeSlash: 'eye-slash'
|
|
249
254
|
};
|
|
255
|
+
var steroidsIcons = [
|
|
256
|
+
'success',
|
|
257
|
+
'info',
|
|
258
|
+
'warning',
|
|
259
|
+
'error',
|
|
260
|
+
'close',
|
|
261
|
+
'default',
|
|
262
|
+
'badge-close',
|
|
263
|
+
'loader',
|
|
264
|
+
'accordion-chevron',
|
|
265
|
+
'field-close',
|
|
266
|
+
'arrow',
|
|
267
|
+
'user',
|
|
268
|
+
'visible-eye',
|
|
269
|
+
'crossed-out-eye',
|
|
270
|
+
'dots',
|
|
271
|
+
'search',
|
|
272
|
+
];
|
|
273
|
+
steroidsIcons.forEach(function (iconName) {
|
|
274
|
+
icons[iconName] = require("./svgs/".concat(iconName, ".svg"));
|
|
275
|
+
});
|
|
250
276
|
Object.keys(coreIconsMap).forEach(function (name) {
|
|
251
277
|
icons[name] = icons[coreIconsMap[name]];
|
|
252
278
|
});
|
|
253
|
-
return icons;
|
|
279
|
+
return __assign(__assign({}, icons), customIcons);
|
|
254
280
|
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="24" height="24" rx="8" fill="white"/>
|
|
3
|
+
<path d="M7.75829 10.9995L12.0009 15.2422L16.2426 11.0005" stroke="#323232" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.246094" y="0.5" width="16" height="16" rx="8" fill="#323232"/>
|
|
3
|
+
<path d="M5.24609 5.5L11.2461 11.4784M5.24609 11.5L11.2461 5.52161" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.9202 13.2867C15.9725 13.0286 16 12.7615 16 12.4879C16 10.2788 14.2091 8.48792 12 8.48792C11.7264 8.48792 11.4593 8.51538 11.2012 8.56769L12.7295 10.096C13.5236 10.3379 14.15 10.9643 14.3919 11.7584L15.9202 13.2867ZM9.76246 11.3716C9.5945 11.7076 9.5 12.0867 9.5 12.4879C9.5 13.8686 10.6193 14.9879 12 14.9879C12.4012 14.9879 12.7803 14.8934 13.1163 14.7255L14.212 15.8212C13.5784 16.2424 12.8179 16.4879 12 16.4879C9.79086 16.4879 8 14.6971 8 12.4879C8 11.67 8.24547 10.9095 8.66676 10.2759L9.76246 11.3716Z" fill="#323232"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.7369 16.1634C19.5861 15.3972 20.278 14.625 20.7677 14.0304C20.7902 14.0031 20.8132 13.9755 20.8363 13.9476C21.1563 13.5626 21.521 13.1236 21.521 12.4879C21.521 11.8522 21.1563 11.4133 20.8363 11.0282C20.8132 11.0003 20.7902 10.9727 20.7677 10.9454C20.0353 10.0562 18.8506 8.7695 17.3636 7.6997C15.8826 6.63415 14.0377 5.73792 12.0007 5.73792C10.9236 5.73792 9.90014 5.98854 8.95578 6.3823L10.1221 7.5486C10.7332 7.35097 11.3622 7.23792 12.0007 7.23792C13.5996 7.23792 15.1386 7.94675 16.4876 8.91731C17.8307 9.88361 18.9222 11.0641 19.6099 11.899C19.8177 12.1514 19.92 12.2787 19.9814 12.3815C20.0213 12.4484 20.0212 12.4674 20.021 12.485L20.021 12.4879L20.021 12.4908C20.0212 12.5084 20.0213 12.5274 19.9814 12.5944C19.92 12.6971 19.8177 12.8245 19.6099 13.0768C19.1383 13.6493 18.4769 14.3843 17.6748 15.1013L18.7369 16.1634ZM8.64801 8.19585C8.25778 8.41127 7.87887 8.65471 7.51387 8.91731C6.17077 9.88361 5.07931 11.0641 4.39163 11.899C4.18379 12.1514 4.08145 12.2787 4.02013 12.3815C3.98021 12.4484 3.98034 12.4674 3.98046 12.485L3.98047 12.4879L3.98046 12.4908C3.98034 12.5084 3.98021 12.5274 4.02013 12.5944C4.08145 12.6971 4.18379 12.8245 4.39163 13.0768C5.0793 13.9117 6.17077 15.0922 7.51387 16.0585C8.86289 17.0291 10.4019 17.7379 12.0007 17.7379C13.5996 17.7379 15.1386 17.0291 16.4876 16.0585C16.4921 16.0553 16.4966 16.0521 16.501 16.0489L17.574 17.1219C17.5046 17.1737 17.4345 17.2252 17.3636 17.2761C15.8826 18.3417 14.0377 19.2379 12.0007 19.2379C9.96383 19.2379 8.11889 18.3417 6.63785 17.2761C5.15089 16.2063 3.96621 14.9197 3.2338 14.0304C3.21126 14.0031 3.18833 13.9755 3.16516 13.9476C2.8452 13.5626 2.48047 13.1236 2.48047 12.4879C2.48047 11.8522 2.8452 11.4133 3.16516 11.0282L3.16527 11.0281C3.1884 11.0003 3.21129 10.9727 3.2338 10.9454C3.96621 10.0562 5.15089 8.7695 6.63785 7.6997C6.92832 7.49072 7.23278 7.28825 7.54995 7.09778L8.64801 8.19585Z" fill="#323232"/>
|
|
4
|
+
<path d="M5 2.48792L21 18.4879" stroke="#323232"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_126_1078)">
|
|
3
|
+
<circle cx="12.7461" cy="12" r="12" fill="#E1E1E1"/>
|
|
4
|
+
<path d="M15.7791 8.73626H15.7131M17.7571 8.73626L18.7461 9.1978L17.7571 9.65934M14.6582 11.5055C14.6582 12.6264 13.801 13.4835 12.6802 13.4835C11.5593 13.4835 8.52631 13.4835 6.74609 13.4835M15.3175 6.75824C16.5703 6.75824 17.6252 7.81318 17.6252 9.13187C17.6252 9.85714 17.2955 10.5824 16.7681 10.978C17.2955 11.6374 17.6252 12.4945 17.6252 13.4176C17.6252 15.5275 15.9769 17.2418 13.9329 17.2418C11.889 17.2418 10.0428 15.3297 8.39445 13.4176C9.64719 11.6374 13.5373 6.75824 15.3175 6.75824Z" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<clipPath id="clip0_126_1078">
|
|
8
|
+
<rect width="24" height="24" fill="white" transform="translate(0.746094)"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="14.3535" y="2.58154" width="4" height="4" rx="2" transform="rotate(90 14.3535 2.58154)" fill="#323232"/>
|
|
3
|
+
<rect x="14.3535" y="10.5815" width="4" height="4" rx="2" transform="rotate(90 14.3535 10.5815)" fill="#323232"/>
|
|
4
|
+
<rect x="14.3535" y="18.5815" width="4" height="4" rx="2" transform="rotate(90 14.3535 18.5815)" fill="#323232"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_126_1073)">
|
|
3
|
+
<path d="M12.746 24C11.9983 24 11.2394 23.8103 10.5698 23.4197L3.94064 19.5917C2.60142 18.8105 1.7644 17.3708 1.7644 15.8196V8.186C1.7644 6.63474 2.60142 5.19507 3.94064 4.41386L10.5698 0.58591C11.909 -0.195303 13.5719 -0.195303 14.9223 0.58591L21.5514 4.41386C22.8907 5.19507 23.7277 6.63474 23.7277 8.186V15.8196C23.7277 17.3708 22.8907 18.8105 21.5514 19.5917L14.9223 23.4197C14.2527 23.8103 13.4938 24 12.746 24Z" fill="#FB4E4E"/>
|
|
4
|
+
<circle cx="12.7461" cy="16.75" r="0.75" fill="white"/>
|
|
5
|
+
<line x1="12.7461" y1="7.25" x2="12.7461" y2="13.75" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_126_1073">
|
|
9
|
+
<rect width="24" height="24" fill="white" transform="translate(0.746094)"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M16 8.69275L8 16.6927" stroke="#323232" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M8 8.69275L16 16.6927" stroke="#323232" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_126_1063)">
|
|
3
|
+
<circle cx="12.7461" cy="12" r="12" fill="#A7EFFF"/>
|
|
4
|
+
<circle cx="12.7461" cy="7.25" r="0.75" transform="rotate(-180 12.7461 7.25)" fill="white"/>
|
|
5
|
+
<line x1="12.7461" y1="16.75" x2="12.7461" y2="10.25" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_126_1063">
|
|
9
|
+
<rect width="24" height="24" fill="white" transform="translate(0.746094)"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7.07051 1.00041C5.8839 0.986525 4.71983 1.32482 3.72548 1.97252C2.73114 2.62022 1.9512 3.54823 1.48427 4.63919C1.01735 5.73016 0.884422 6.93509 1.1023 8.1016C1.32018 9.26812 1.87907 10.3438 2.70831 11.1927C3.53755 12.0416 4.59989 12.6255 5.76098 12.8706C6.92208 13.1157 8.12979 13.011 9.23139 12.5698C10.333 12.1285 11.279 11.3705 11.9498 10.3916C12.6206 9.41265 12.986 8.25681 12.9999 7.07021" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="11.3535" cy="11.7225" r="6" stroke="#323232" stroke-width="1.5"/>
|
|
3
|
+
<path d="M20.3535 20.7225L17.3535 17.7225" stroke="#323232" stroke-width="1.5" stroke-linecap="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="24" height="24" rx="12" fill="#2BC945"/>
|
|
3
|
+
<path d="M16.5 9L10.3125 15L7.5 12.2727" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="12" cy="8" r="3.25" stroke="#323232" stroke-width="1.5" stroke-linecap="round"/>
|
|
3
|
+
<path d="M6.24684 15.9465C7.45154 14.1154 9.25931 13.5 11.4511 13.5H12.4823C14.6828 13.5 16.5143 14.1468 17.7295 15.9814V15.9814C18.8016 17.6 17.9261 19.5 15.9847 19.5H8.00741C6.07032 19.5 5.18216 17.5648 6.24684 15.9465V15.9465Z" stroke="#323232" stroke-width="1.5" stroke-linecap="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="12" cy="12.4879" r="3.25" stroke="#323232" stroke-width="1.5"/>
|
|
3
|
+
<path d="M20.188 11.4222C20.5762 11.8935 20.7703 12.1291 20.7703 12.4879C20.7703 12.8467 20.5762 13.0824 20.188 13.5536C18.7679 15.2778 15.6357 18.4879 12 18.4879C8.36427 18.4879 5.23206 15.2778 3.81197 13.5536C3.42381 13.0824 3.22973 12.8467 3.22973 12.4879C3.22973 12.1291 3.42381 11.8935 3.81197 11.4222C5.23206 9.69805 8.36427 6.48792 12 6.48792C15.6357 6.48792 18.7679 9.69805 20.188 11.4222Z" stroke="#323232" stroke-width="1.5"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_126_1068)">
|
|
3
|
+
<path d="M10.148 3C11.3027 0.999997 14.1895 1 15.3442 3L24.0044 18C25.1591 20 23.7157 22.5 21.4063 22.5H4.08584C1.77644 22.5 0.333063 20 1.48776 18L10.148 3Z" fill="#FFE457"/>
|
|
4
|
+
<circle cx="12.7461" cy="16.75" r="0.75" fill="white"/>
|
|
5
|
+
<line x1="12.7461" y1="7.25" x2="12.7461" y2="13.75" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_126_1068">
|
|
9
|
+
<rect width="24" height="24" fill="white" transform="translate(0.746094)"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
package/index.d.ts
CHANGED
|
@@ -23,6 +23,9 @@ declare const _default: {
|
|
|
23
23
|
'content.IconView': {
|
|
24
24
|
lazy: () => any;
|
|
25
25
|
};
|
|
26
|
+
'content.BadgeView': {
|
|
27
|
+
lazy: () => any;
|
|
28
|
+
};
|
|
26
29
|
'form.AutoCompleteFieldView': {
|
|
27
30
|
lazy: () => any;
|
|
28
31
|
};
|
|
@@ -32,10 +35,10 @@ declare const _default: {
|
|
|
32
35
|
'content.CardView': {
|
|
33
36
|
lazy: () => any;
|
|
34
37
|
};
|
|
35
|
-
'content.
|
|
38
|
+
'content.AccordionView': {
|
|
36
39
|
lazy: () => any;
|
|
37
40
|
};
|
|
38
|
-
'content.
|
|
41
|
+
'content.AccordionItemView': {
|
|
39
42
|
lazy: () => any;
|
|
40
43
|
};
|
|
41
44
|
'form.CheckboxFieldView': {
|
|
@@ -215,5 +218,11 @@ declare const _default: {
|
|
|
215
218
|
'nav.TreeView': {
|
|
216
219
|
lazy: () => any;
|
|
217
220
|
};
|
|
221
|
+
'typography.TextView': {
|
|
222
|
+
lazy: () => any;
|
|
223
|
+
};
|
|
224
|
+
'typography.TitleView': {
|
|
225
|
+
lazy: () => any;
|
|
226
|
+
};
|
|
218
227
|
};
|
|
219
228
|
export default _default;
|