@steroidsjs/bootstrap 3.0.0-beta.4 → 3.0.0-beta.40

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.
Files changed (124) hide show
  1. package/README.md +1 -2
  2. package/content/Accordion/AccordionItemView.d.ts +2 -0
  3. package/content/{Collapse/CollapseItemView.js → Accordion/AccordionItemView.js} +46 -22
  4. package/content/Accordion/AccordionItemView.scss +209 -0
  5. package/content/Accordion/AccordionView.d.ts +2 -0
  6. package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
  7. package/content/{Collapse/CollapseView.scss → Accordion/AccordionView.scss} +3 -4
  8. package/content/Alert/AlertView.scss +19 -4
  9. package/content/Avatar/AvatarView.js +2 -3
  10. package/content/Avatar/AvatarView.scss +32 -39
  11. package/content/Badge/BadgeView.d.ts +3 -0
  12. package/content/Badge/BadgeView.js +25 -0
  13. package/content/Badge/BadgeView.scss +135 -0
  14. package/content/Calendar/CaptionElement.scss +5 -4
  15. package/content/Card/CardView.js +36 -14
  16. package/content/Card/CardView.scss +139 -107
  17. package/content/Detail/DetailView.scss +75 -52
  18. package/content/DropDown/DropDownView.js +6 -3
  19. package/content/DropDown/DropDownView.scss +196 -27
  20. package/content/Icon/IconView.js +2 -2
  21. package/form/Button/ButtonView.js +12 -8
  22. package/form/Button/ButtonView.scss +166 -68
  23. package/form/CheckboxField/CheckboxFieldView.js +6 -3
  24. package/form/CheckboxField/CheckboxFieldView.scss +183 -36
  25. package/form/CheckboxListField/CheckboxListFieldView.js +19 -15
  26. package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
  27. package/form/DropDownField/DropDownFieldView.js +31 -47
  28. package/form/DropDownField/DropDownFieldView.scss +390 -182
  29. package/form/DropDownField/utils.d.ts +2 -0
  30. package/form/DropDownField/utils.js +15 -0
  31. package/form/DropDownFieldItem/DropDownFieldItemView.d.ts +2 -0
  32. package/form/DropDownFieldItem/DropDownFieldItemView.js +78 -0
  33. package/form/DropDownFieldItem/DropDownFieldItemView.scss +216 -0
  34. package/form/FieldLayout/FieldLayoutView.js +13 -9
  35. package/form/FieldLayout/FieldLayoutView.scss +129 -24
  36. package/form/FieldList/FieldListView.js +1 -1
  37. package/form/FileField/FileFieldView.js +1 -1
  38. package/form/Form/FormView.js +1 -4
  39. package/form/Form/FormView.scss +1 -14
  40. package/form/InputField/InputFieldView.js +30 -13
  41. package/form/InputField/InputFieldView.scss +245 -99
  42. package/form/NumberField/NumberFieldView.js +19 -13
  43. package/form/NumberField/NumberFieldView.scss +195 -89
  44. package/form/PasswordField/PasswordFieldView.js +11 -9
  45. package/form/PasswordField/PasswordFieldView.scss +231 -63
  46. package/form/RadioField/RadioFieldView.d.ts +3 -0
  47. package/form/RadioField/RadioFieldView.js +57 -0
  48. package/form/RadioField/RadioFieldView.scss +226 -0
  49. package/form/RadioListField/RadioListFieldView.js +20 -16
  50. package/form/RadioListField/RadioListFieldView.scss +11 -1
  51. package/form/ReCaptchaField/ReCaptchaFieldView.js +2 -2
  52. package/form/SwitcherField/SwitcherFieldView.js +1 -1
  53. package/form/TextField/TextFieldView.js +10 -2
  54. package/form/TextField/TextFieldView.scss +143 -2
  55. package/icons/index.d.ts +2 -0
  56. package/{icon/fontawesome.js → icons/index.js} +40 -11
  57. package/icons/svgs/accordion-chevron.svg +4 -0
  58. package/icons/svgs/arrow-left.svg +3 -0
  59. package/icons/svgs/arrow.svg +3 -0
  60. package/icons/svgs/badge-close.svg +3 -0
  61. package/icons/svgs/close.svg +4 -0
  62. package/icons/svgs/crossed-out-eye.svg +5 -0
  63. package/icons/svgs/default.svg +11 -0
  64. package/icons/svgs/dots.svg +5 -0
  65. package/icons/svgs/double-arrow-left.svg +4 -0
  66. package/icons/svgs/error.svg +12 -0
  67. package/icons/svgs/field-close.svg +4 -0
  68. package/icons/svgs/home.svg +4 -0
  69. package/icons/svgs/info.svg +12 -0
  70. package/icons/svgs/loader.svg +3 -0
  71. package/icons/svgs/search.svg +4 -0
  72. package/icons/svgs/success.svg +4 -0
  73. package/icons/svgs/user.svg +4 -0
  74. package/icons/svgs/visible-eye.svg +4 -0
  75. package/icons/svgs/warning.svg +12 -0
  76. package/index.d.ts +11 -2
  77. package/index.js +13 -4
  78. package/index.scss +8 -3
  79. package/layout/Header/HeaderView.scss +3 -3
  80. package/layout/Tooltip/TooltipView.js +6 -6
  81. package/layout/Tooltip/TooltipView.scss +45 -37
  82. package/list/Grid/GridView.js +1 -1
  83. package/list/Grid/GridView.scss +28 -30
  84. package/list/List/ListView.d.ts +1 -0
  85. package/list/List/ListView.js +5 -5
  86. package/list/List/ListView.scss +9 -0
  87. package/list/Pagination/PaginationButtonView.js +34 -5
  88. package/list/Pagination/PaginationButtonView.scss +258 -1
  89. package/list/Pagination/PaginationMoreView.js +1 -1
  90. package/list/Pagination/PaginationMoreView.scss +4 -1
  91. package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
  92. package/nav/Breadcrubms/BreadcrumbsView.scss +51 -0
  93. package/nav/Nav/NavIconView.js +1 -1
  94. package/nav/Nav/NavListView.js +1 -1
  95. package/nav/Nav/NavTabsView.js +1 -1
  96. package/nav/Tree/TreeView.scss +14 -11
  97. package/package.json +56 -56
  98. package/scss/fonts.scss +6 -0
  99. package/scss/mixins/button.scss +61 -24
  100. package/scss/mixins/index.scss +2 -1
  101. package/scss/mixins/scroll.scss +31 -0
  102. package/scss/mixins/typography.scss +26 -0
  103. package/scss/variables/common/colors.scss +95 -70
  104. package/scss/variables/common/media.scss +2 -0
  105. package/scss/variables/common/typography.scss +96 -28
  106. package/scss/variables/components/input.scss +7 -6
  107. package/scss/variables/index.scss +2 -2
  108. package/scss/variables/normalize.scss +25 -0
  109. package/typography/Text/TextView.d.ts +3 -0
  110. package/typography/Text/TextView.js +46 -0
  111. package/typography/Text/TextView.scss +16 -0
  112. package/typography/Title/TitleView.d.ts +3 -0
  113. package/typography/Title/TitleView.js +50 -0
  114. package/typography/Title/TitleView.scss +16 -0
  115. package/utils/renderIcon.d.ts +9 -0
  116. package/utils/renderIcon.js +27 -0
  117. package/content/Collapse/CollapseItemView.d.ts +0 -2
  118. package/content/Collapse/CollapseItemView.scss +0 -88
  119. package/content/Collapse/CollapseView.d.ts +0 -2
  120. package/content/Icon/IconView.scss +0 -25
  121. package/icon/fontawesome.d.ts +0 -2
  122. package/list/List/ListItemView.scss +0 -3
  123. package/scss/mixins/card.scss +0 -26
  124. package/scss/variables/components/card.scss +0 -20
@@ -0,0 +1,226 @@
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
+
11
+ .RadioFieldView {
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
+ &_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
+ &_size {
161
+ &_lg {
162
+ #{$root}__label {
163
+ font-size: $font-size-lg;
164
+ line-height: 24px;
165
+
166
+ &::before {
167
+ width: 22px;
168
+ height: 22px;
169
+ }
170
+
171
+ &::after {
172
+ width: 24px;
173
+ height: 24px;
174
+ }
175
+ }
176
+ }
177
+
178
+ &_md {
179
+ #{$root}__label {
180
+ font-size: $font-size-base;
181
+ line-height: 22px;
182
+
183
+ &::before {
184
+ width: 18px;
185
+ height: 18px;
186
+ }
187
+
188
+ &::after {
189
+ width: 20px;
190
+ height: 20px;
191
+ transform: translate(-14.5%, -10.5%);
192
+ }
193
+ }
194
+
195
+ #{$root}__ellipse {
196
+ width: 10px;
197
+ height: 10px;
198
+ left: 5px;
199
+ }
200
+ }
201
+
202
+ &_sm {
203
+ #{$root}__label {
204
+ font-size: $font-size-sm;
205
+ line-height: 18px;
206
+
207
+ &::before {
208
+ width: 14px;
209
+ height: 14px;
210
+ }
211
+
212
+ &::after {
213
+ width: 16px;
214
+ height: 16px;
215
+ transform: translate(-16.5%, -12.5%);
216
+ }
217
+ }
218
+
219
+ #{$root}__ellipse {
220
+ width: 8px;
221
+ height: 8px;
222
+ left: 4px;
223
+ }
224
+ }
225
+ }
226
+ }
@@ -1,15 +1,4 @@
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
- };
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -41,12 +30,27 @@ var React = __importStar(require("react"));
41
30
  var hooks_1 = require("@steroidsjs/core/hooks");
42
31
  var useUniqueId_1 = __importDefault(require("@steroidsjs/core/hooks/useUniqueId"));
43
32
  function RadioListFieldView(props) {
33
+ var _a;
44
34
  var bem = (0, hooks_1.useBem)('RadioListFieldView');
45
35
  var prefix = (0, useUniqueId_1["default"])('radio');
46
- return (React.createElement("div", { className: bem.block() }, props.items.map(function (item) { return (React.createElement("div", { key: typeof item.id !== 'boolean' ? item.id : (item.id ? 'true' : 'false'), className: 'custom-control custom-radio' },
47
- React.createElement("input", __assign({}, props.inputProps, { id: "".concat(prefix, "_").concat(item.id), className: bem(bem.element('input'), 'custom-control-input', !!props.errors && 'is-invalid'), checked: props.selectedIds.includes(item.id), disabled: props.disabled || item.disabled, onChange: function () {
48
- props.onItemSelect(item.id);
49
- } })),
50
- React.createElement("label", { className: 'custom-control-label', htmlFor: "".concat(prefix, "_").concat(item.id) }, item.label))); })));
36
+ return (React.createElement("div", { className: bem(bem.block((_a = {},
37
+ _a["".concat(props.orientation)] = !!props.orientation,
38
+ _a)), props.className) }, props.items.map(function (radio, radioIndex) { return props.renderRadio({
39
+ inputProps: {
40
+ name: "".concat(prefix, "_").concat(radio.id),
41
+ checked: null,
42
+ type: 'radio',
43
+ disabled: false,
44
+ onChange: function () {
45
+ props.onItemSelect(radio.id);
46
+ }
47
+ },
48
+ disabled: props.disabled,
49
+ checked: props.selectedIds.includes(radio.id),
50
+ label: radio.label,
51
+ id: "".concat(prefix, "_").concat(radio.id),
52
+ key: radioIndex,
53
+ size: props.size
54
+ }); })));
51
55
  }
52
56
  exports["default"] = RadioListFieldView;
@@ -1,3 +1,13 @@
1
1
  .RadioListFieldView {
2
+ display: flex;
2
3
 
3
- }
4
+ &_vertical {
5
+ flex-flow: column wrap;
6
+ row-gap: 8px;
7
+ }
8
+
9
+ &_horizontal {
10
+ flex-flow: row nowrap;
11
+ column-gap: 8px;
12
+ }
13
+ }
@@ -31,9 +31,9 @@ function ReCaptchaFieldView(props) {
31
31
  return (React.createElement("div", { className: bem.block() },
32
32
  React.createElement("small", { className: 'text-muted' },
33
33
  __('This site is protected by reCAPTCHA and the Google') + ' ',
34
- React.createElement(nav_1.Link, { url: 'https://policies.google.com/privacy', target: '_blank', label: __('Privacy Policy'), layout: false }),
34
+ React.createElement(nav_1.Link, { url: 'https://policies.google.com/privacy', target: '_blank', label: __('Privacy Policy') }),
35
35
  ' ' + __('and') + ' ',
36
- React.createElement(nav_1.Link, { url: 'https://policies.google.com/terms', target: '_blank', label: __('Terms of Service'), layout: false }),
36
+ React.createElement(nav_1.Link, { url: 'https://policies.google.com/terms', target: '_blank', label: __('Terms of Service') }),
37
37
  ' ' + __('apply'),
38
38
  ".")));
39
39
  }
@@ -45,6 +45,6 @@ function SwitcherFieldView(props) {
45
45
  var bem = (0, hooks_1.useBem)('SwitcherFieldView');
46
46
  return (React.createElement("div", { className: bem(bem.block({
47
47
  size: props.size
48
- }), props.className, 'btn-group') }, props.items.map(function (item) { return (React.createElement(Button_1["default"], __assign({ key: String(item[props.primaryKey]) }, props.buttonProps, { className: bem((0, get_1["default"])(props, 'buttonProps.className'), props.hoveredId === item[props.primaryKey] && 'hover', props.selectedIds.includes(item[props.primaryKey]) && 'active'), disabled: props.disabled, onClick: function () { return props.onItemSelect(item[props.primaryKey]); }, onMouseOver: function () { return props.onItemHover(item[props.primaryKey]); }, layout: false }), item.label)); })));
48
+ }), props.className, 'btn-group') }, props.items.map(function (item) { return (React.createElement(Button_1["default"], __assign({ key: String(item[props.primaryKey]) }, props.buttonProps, { className: bem((0, get_1["default"])(props, 'buttonProps.className'), props.hoveredId === item[props.primaryKey] && 'hover', props.selectedIds.includes(item[props.primaryKey]) && 'active'), disabled: props.disabled, onClick: function () { return props.onItemSelect(item[props.primaryKey]); }, onMouseOver: function () { return props.onItemHover(item[props.primaryKey]); } }), item.label)); })));
49
49
  }
50
50
  exports["default"] = SwitcherFieldView;
@@ -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("textarea", __assign({ className: bem(bem.block({
45
+ return (React.createElement("div", { className: bem(bem.block({
46
+ hasErrors: !!props.errors,
47
+ filled: !!props.inputProps.value,
42
48
  size: props.size
43
- }), 'form-control', 'form-control-' + props.size, !!props.errors && 'is-invalid', props.className) }, props.inputProps)));
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
- min-height: 38px;
3
- box-sizing: border-box;
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
  }
@@ -0,0 +1,2 @@
1
+ declare const _default: (customIcons: Record<string, any>) => {};
2
+ export default _default;
@@ -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
- 'tripadvisor', 'tumblr', 'tumblr-square', 'twitch', 'twitter', 'twitter-square', 'typo3', 'uber', 'ubuntu',
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,34 @@ 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
+ 'home',
273
+ 'arrow-left',
274
+ 'double-arrow-left',
275
+ ];
276
+ steroidsIcons.forEach(function (iconName) {
277
+ icons[iconName] = require("./svgs/".concat(iconName, ".svg"));
278
+ });
250
279
  Object.keys(coreIconsMap).forEach(function (name) {
251
280
  icons[name] = icons[coreIconsMap[name]];
252
281
  });
253
- return icons;
282
+ return __assign(__assign({}, icons), customIcons);
254
283
  });
@@ -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,3 @@
1
+ <svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14.3535 8.58148L10.3535 12.5815L14.3535 16.5815" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="36" height="28" viewBox="0 0 36 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M22.2417 16.3981L17.9991 12.1554L13.7574 16.3971" stroke="#414141" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="17" height="17" viewBox="0 0 17 17" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M6.28906 6.5L10.2891 10.4856M6.28906 10.5L10.2891 6.51441" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </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,4 @@
1
+ <svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.8535 16.5815L7.85352 12.5815L11.8535 8.58148" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M16.8535 16.5815L12.8535 12.5815L16.8535 8.58148" stroke="white" 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_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,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M5.35352 12.3655C5.35352 11.0077 5.35352 10.3289 5.62798 9.73213C5.90244 9.13539 6.41788 8.69358 7.44877 7.80997L8.44877 6.95282C10.3121 5.35569 11.2437 4.55713 12.3535 4.55713C13.4633 4.55713 14.3949 5.35569 16.2583 6.95282L17.2583 7.80997C18.2892 8.69358 18.8046 9.13539 19.0791 9.73213C19.3535 10.3289 19.3535 11.0077 19.3535 12.3655V16.6059C19.3535 18.4915 19.3535 19.4343 18.7677 20.0201C18.1819 20.6059 17.2391 20.6059 15.3535 20.6059H9.35352C7.4679 20.6059 6.52509 20.6059 5.9393 20.0201C5.35352 19.4343 5.35352 18.4915 5.35352 16.6059V12.3655Z" stroke="#323232"/>
3
+ <path d="M14.8535 20.606V15.606C14.8535 15.0537 14.4058 14.606 13.8535 14.606H10.8535C10.3012 14.606 9.85352 15.0537 9.85352 15.606V20.606" stroke="#323232" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>