@steroidsjs/bootstrap 3.0.0-beta.12 → 3.0.0-beta.14

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 (40) hide show
  1. package/content/Accordion/AccordionItemView.d.ts +2 -0
  2. package/content/Accordion/AccordionItemView.js +96 -0
  3. package/content/Accordion/AccordionItemView.scss +200 -0
  4. package/content/Accordion/AccordionView.d.ts +2 -0
  5. package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
  6. package/content/Accordion/AccordionView.scss +14 -0
  7. package/content/Alert/AlertView.scss +5 -1
  8. package/content/Avatar/AvatarView.js +2 -3
  9. package/content/Avatar/AvatarView.scss +20 -34
  10. package/content/Badge/BadgeView.js +8 -6
  11. package/content/Badge/BadgeView.scss +94 -5
  12. package/content/DropDown/DropDownView.scss +59 -27
  13. package/form/Button/ButtonView.js +5 -7
  14. package/form/Button/ButtonView.scss +104 -78
  15. package/form/CheckboxField/CheckboxFieldView.js +3 -3
  16. package/form/CheckboxField/CheckboxFieldView.scss +120 -36
  17. package/icons/{fontawesome.js → index.js} +3 -0
  18. package/icons/svgs/accordion-chevron.svg +4 -0
  19. package/icons/svgs/badge-close.svg +3 -0
  20. package/icons/svgs/close.svg +4 -0
  21. package/icons/svgs/default.svg +11 -0
  22. package/icons/svgs/error.svg +12 -0
  23. package/icons/svgs/info.svg +12 -0
  24. package/icons/svgs/loader.svg +3 -0
  25. package/icons/svgs/success.svg +4 -0
  26. package/icons/svgs/warning.svg +12 -0
  27. package/index.d.ts +2 -2
  28. package/index.js +4 -4
  29. package/index.scss +2 -3
  30. package/package.json +4 -4
  31. package/scss/mixins/button.scss +49 -23
  32. package/scss/variables/common/colors.scss +47 -49
  33. package/scss/variables/common/typography.scss +0 -16
  34. package/content/Collapse/CollapseItemView.d.ts +0 -2
  35. package/content/Collapse/CollapseItemView.js +0 -65
  36. package/content/Collapse/CollapseItemView.scss +0 -88
  37. package/content/Collapse/CollapseView.d.ts +0 -2
  38. package/content/Collapse/CollapseView.scss +0 -15
  39. package/content/Icon/IconView.scss +0 -25
  40. /package/icons/{fontawesome.d.ts → index.d.ts} +0 -0
@@ -1,31 +1,63 @@
1
+ @import "../../scss/variables/";
2
+
3
+ :root {
4
+ --drop-down-background: #fff;
5
+
6
+ html[data-theme="dark"] {
7
+ --drop-down-background: #4e4f57;
8
+ }
9
+ }
10
+
11
+ $drop-down-background: var(--drop-down-background);
12
+
1
13
  $gap: 12px;
2
14
 
3
15
  .DropDownView {
4
- z-index: 1000;
5
- position: absolute;
6
-
7
- transform: translate(0,0);
8
- opacity: 0;
9
- transition: opacity .15s ease-in, transform .15s ease-in;
10
-
11
- border-radius: 4px;
12
- border: 1px solid #ccc;
13
- background-color: #fff;
14
- box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
15
-
16
- &_show {
17
- opacity: 1;
18
- }
19
- &_position-top, &_position-topLeft, &_position-topRight {
20
- transform: translateY(-$gap);
21
- }
22
- &_position-bottom, &_position-bottomLeft, &_position-bottomRight {
23
- transform: translateY($gap);
24
- }
25
- &_position-left, &_position-leftTop, &_position-leftBottom {
26
- transform: translateX(-$gap);
27
- }
28
- &_position-right, &_position-rightTop, &_position-rightBottom{
29
- transform: translateX($gap);
30
- }
16
+ z-index: 1000;
17
+ position: absolute;
18
+
19
+ transform: translate(0, 0);
20
+ opacity: 0;
21
+ transition: opacity 0.15s ease-in, transform 0.15s ease-in;
22
+
23
+ width: 200px;
24
+ padding: 12px;
25
+ border-radius: $radius-large;
26
+ background-color: $drop-down-background;
27
+ border: 1px solid $gray;
28
+
29
+ &_show {
30
+ opacity: 1;
31
+ }
32
+ &_position-top,
33
+ &_position-topLeft,
34
+ &_position-topRight {
35
+ transform: translateY(-$gap);
36
+ }
37
+ &_position-bottom,
38
+ &_position-bottomLeft,
39
+ &_position-bottomRight {
40
+ transform: translateY($gap);
41
+ }
42
+ &_position-left,
43
+ &_position-leftTop,
44
+ &_position-leftBottom {
45
+ transform: translateX(-$gap);
46
+ }
47
+ &_position-right,
48
+ &_position-rightTop,
49
+ &_position-rightBottom {
50
+ transform: translateX($gap);
51
+ }
52
+
53
+ &::before {
54
+ content: "";
55
+ position: absolute;
56
+ left: -10px;
57
+ top: 50%;
58
+ transform: translateY(-50%);
59
+ border-top: 10px solid transparent;
60
+ border-bottom: 10px solid transparent;
61
+ border-right: 10px solid #fff;
62
+ }
31
63
  }
@@ -38,16 +38,14 @@ function ButtonView(props) {
38
38
  ? props.label
39
39
  : (props.hint || null);
40
40
  return (React.createElement(React.Fragment, null,
41
- props.isLoading && (React.createElement("div", { className: bem.element('preloader') },
42
- React.createElement("span", { className: 'spinner-border spinner-border-sm', role: 'status', "aria-hidden": 'true' }))),
43
- (props.showLabelOnLoading || !props.isLoading) && (React.createElement("span", { className: bem.element('label') },
41
+ props.isLoading && (React.createElement(Icon_1["default"], { className: bem.element('loader'), name: 'loader' })),
42
+ !props.isLoading && (React.createElement("span", { className: bem.element('label') },
44
43
  props.icon && (React.createElement(Icon_1["default"], { name: props.icon, title: title, className: bem.element('icon', !props.label && 'without-label') })),
45
44
  props.children))));
46
45
  };
47
46
  var renderBadge = function () {
48
- if (!props.badge.enable) {
47
+ if (!props.badge || !props.badge.enable)
49
48
  return null;
50
- }
51
49
  return (React.createElement("span", { className: bem('badge', props.badge.color && "badge-".concat(props.badge.color), bem.element('badge'), props.badge.className) }, props.badge.value));
52
50
  };
53
51
  var className = bem(bem.block((_a = {
@@ -59,7 +57,7 @@ function ButtonView(props) {
59
57
  _a.size = props.size,
60
58
  _a.disabled = props.disabled,
61
59
  _a.submitting = props.submitting,
62
- _a.loading = props.isLoading,
60
+ _a.loading = !!props.isLoading,
63
61
  _a.failed = props.isFailed,
64
62
  _a.link = props.tag === 'a',
65
63
  _a)), props.block && 'btn-block', props.link && 'btn-link', props.className);
@@ -68,7 +66,7 @@ function ButtonView(props) {
68
66
  renderLabel(),
69
67
  renderBadge()));
70
68
  }
71
- return (React.createElement("button", { title: props.hint, type: props.type, disabled: props.disabled, onClick: props.onClick, style: props.style, className: className },
69
+ return (React.createElement("button", { title: props.hint, type: props.type, disabled: props.disabled || props.isLoading, onClick: props.onClick, style: props.style, className: className },
72
70
  renderLabel(),
73
71
  renderBadge()));
74
72
  }
@@ -1,96 +1,122 @@
1
+ $btn-font-weight-sm: 400;
2
+ $btn-font-weight-lg: 800;
3
+ $btn-line-height: 24px;
4
+ $btn-letter-spacing: 0.1em;
5
+
1
6
  .ButtonView {
2
- $root: &;
3
-
4
- transition-property: color, background-color, border-color, box-shadow;
5
- transition-duration: .15s;
6
- transition-timing-function: ease-in-out;
7
-
8
- &_button {
9
- position: relative;
10
- border-radius: $button-border-radius;
11
- user-select: none;
12
- border: $button-border;
13
-
14
- padding: $button-padding-y $button-padding-x;
15
- display: flex;
16
- justify-content: center;
17
- align-items: center;
18
-
19
- font-weight: $button-font-weight;
20
- font-size: $button-font-size;
21
-
22
- @each $color, $value in $color-themes {
23
- &#{$root}_color_#{$color} {
24
- @include button-theme($value)
25
- }
7
+ $root: &;
8
+
9
+ transition-property: color, background-color, border-color, box-shadow;
10
+ transition-duration: 0.15s;
11
+ transition-timing-function: ease-in-out;
12
+
13
+ width: 160px;
14
+
15
+ &_button {
16
+ position: relative;
17
+ border-radius: 8px;
18
+ user-select: none;
19
+ border: 3px solid transparent;
20
+
21
+ padding: 0 20px;
22
+ display: flex;
23
+ justify-content: center;
24
+ align-items: center;
25
+
26
+ font-family: $font-family-nunito;
27
+ font-weight: $btn-font-weight-sm;
28
+ font-size: $font-size-sm;
29
+ line-height: $btn-line-height;
30
+ outline: none;
31
+
32
+ @each $colorName, $colorMap in $color-themes {
33
+ &#{$root}_color_#{$colorName} {
34
+ @include button-theme($colorMap, $colorName, $root);
35
+ }
36
+ }
37
+
38
+ @each $colorName, $colorMap in $color-themes {
39
+ &#{$root}_outline_#{$colorName} {
40
+ @include button-outline-theme($colorMap, $colorName, $root);
41
+ }
42
+ }
26
43
  }
27
44
 
28
- @each $color, $value in $color-themes {
29
- &#{$root}_outline_#{$color} {
30
- @include button-outline-theme($value)
31
- }
45
+ &_disabled {
46
+ opacity: 0.5;
47
+ color: rgba(0, 0, 0, 0.25);
48
+ cursor: not-allowed;
49
+ input {
50
+ cursor: inherit;
51
+ }
32
52
  }
33
53
 
34
- }
54
+ &_size {
55
+ &_sm {
56
+ height: 34px;
57
+ font-size: $font-size-sm;
58
+ border-radius: $radius-small;
59
+ }
60
+ &_md {
61
+ height: 46px;
62
+ font-size: $font-size-base;
63
+ border-radius: $radius-large;
64
+ }
65
+ &_lg {
66
+ height: 56px;
67
+ font-size: $font-size-lg;
68
+ border-radius: $radius-large;
69
+ }
70
+ }
35
71
 
36
- &_disabled {
37
- opacity: .5;
38
- color: rgba(0, 0, 0, .25);
39
- cursor: not-allowed;
40
- input {
41
- cursor: inherit;
72
+ &_link {
73
+ justify-content: center;
74
+ background-color: transparent;
42
75
  }
43
- }
44
76
 
45
- &_size {
46
- &_sm {
47
- height: $button-height-sm;
48
- font-size: $button-font-size-sm;
77
+ &__icon {
78
+ &_without-label {
79
+ margin: 0;
80
+ }
49
81
  }
50
- &_md {
51
- height: $button-height-md;
52
- font-size: $button-font-size-md;
82
+
83
+ &_failed {
84
+ &,
85
+ &:hover {
86
+ border-color: $danger;
87
+ box-shadow: 0 0 1rem rgba($danger, 0.2);
88
+ }
53
89
  }
54
- &_lg {
55
- height: $button-height-lg;
56
- font-size: $button-font-size-lg;
90
+
91
+ &__preloader {
92
+ position: absolute;
93
+ top: 50%;
94
+ left: 50%;
95
+ transform: translate(-50%, -50%);
57
96
  }
58
- }
59
97
 
60
- &_link {
61
- justify-content: flex-start;
62
- background-color: transparent;
63
- }
98
+ &__badge {
99
+ position: relative;
100
+ top: -1px;
101
+ margin-left: 4px;
102
+ }
64
103
 
65
- &__icon {
66
- margin-right: 3px;
104
+ &__loader {
105
+ svg {
106
+ transform-origin: center;
107
+ animation: rotate 1.45s linear infinite;
108
+ }
109
+ }
67
110
 
68
- &_without-label {
69
- margin: 0;
111
+ &__label {
112
+ display: flex;
113
+ flex-direction: row;
114
+ column-gap: 10px;
70
115
  }
71
- }
116
+ }
72
117
 
73
- &_failed {
74
- &, &:hover {
75
- border-color: $danger;
76
- box-shadow: 0 0 1rem rgba($danger, .2);
118
+ @keyframes rotate {
119
+ 100% {
120
+ transform: rotate(360deg);
77
121
  }
78
- }
79
-
80
- &_loading &__label {
81
- opacity: 0;
82
- }
83
-
84
- &__preloader {
85
- position: absolute;
86
- top: 50%;
87
- left: 50%;
88
- transform: translate(-50%, -50%);
89
- }
90
-
91
- &__badge {
92
- position: relative;
93
- top: -1px;
94
- margin-left: 4px;
95
- }
96
122
  }
@@ -43,9 +43,9 @@ var useUniqueId_1 = __importDefault(require("@steroidsjs/core/hooks/useUniqueId"
43
43
  function CheckboxFieldView(props) {
44
44
  var bem = (0, hooks_1.useBem)('CheckboxFieldView');
45
45
  var id = (0, useUniqueId_1["default"])('checkbox');
46
- return (React.createElement("div", { className: bem(bem.block({ 'is-invalid': !!props.errors }), 'custom-control', 'custom-checkbox') },
47
- React.createElement("input", __assign({ className: bem(bem.element('input'), 'custom-control-input', !!props.errors && 'is-invalid', props.className), id: id }, props.inputProps, { disabled: props.disabled, required: props.required })),
48
- React.createElement("label", { className: bem(bem.element('label'), 'custom-control-label'), htmlFor: id },
46
+ return (React.createElement("div", { className: "".concat(bem.block(), " \n ").concat(bem(props.className), "\n ").concat(props.errors ? 'has-errors' : ''), style: props.style, onClick: props.onChange },
47
+ React.createElement("input", __assign({ className: bem(bem.element('input')), id: id }, props.inputProps, { disabled: props.disabled, required: props.required })),
48
+ React.createElement("label", { className: bem(bem.element('label')), htmlFor: id },
49
49
  React.createElement("span", { className: bem.element('label-text', { required: props.required }) }, props.label))));
50
50
  }
51
51
  exports["default"] = CheckboxFieldView;
@@ -1,46 +1,130 @@
1
1
  .CheckboxFieldView {
2
- display: inline-block;
2
+ $root: &;
3
3
 
4
- &__label {
5
- &-text {
6
- &_required:after {
7
- display: inline-block;
8
- content: '*';
9
- color: $danger;
10
- margin: 0 0 0 3px;
11
- }
12
- }
13
- }
14
- .custom-control-label {
15
- &::before, &::after {
16
- top: 0;
4
+ display: inline-block;
5
+
6
+ font-family: $font-family-nunito;
7
+
8
+ &__input + &__label {
9
+ display: inline-flex;
10
+ align-items: center;
11
+ user-select: none;
17
12
  }
18
- }
19
-
20
- .custom-control-input {
21
- &:checked ~ .custom-control-label {
22
- &::before {
23
- border-color: $primary;
24
- background: $primary;
25
- }
26
- &:hover {
13
+
14
+ &__label {
15
+ position: relative;
16
+ cursor: pointer;
17
+
18
+ //Сам кастомный checkbox
27
19
  &::before {
28
- background: $primary-dark;
20
+ content: "";
21
+ display: inline-block;
22
+ width: 24px;
23
+ height: 24px;
24
+ flex-shrink: 0;
25
+ flex-grow: 0;
26
+
27
+ border: 1px solid $gray;
28
+ border-radius: $radius-small;
29
+ margin-right: 8px;
30
+
31
+ background-repeat: no-repeat;
32
+ background-position: center center;
33
+ background-size: 50% 50%;
29
34
  }
30
- }
31
- &:active {
32
- &::before {
33
- background: $primary-light;
35
+
36
+ //Псевдоэлемент который служит для применения эффектов на чекбокс
37
+ &::after {
38
+ content: "";
39
+ display: inline-block;
40
+ position: absolute;
41
+ transform: translateX(-7.5%);
42
+
43
+ width: 28px;
44
+ height: 28px;
45
+ flex-shrink: 0;
46
+ flex-grow: 0;
47
+
48
+ border-radius: $radius-small;
49
+ border: 4px solid $primary-light;
50
+ opacity: 0;
51
+
52
+ background: transparent;
53
+ }
54
+
55
+ &-text {
56
+ color: $text-color;
57
+ font-size: $font-size-sm;
58
+ font-weight: $font-weight-md;
34
59
  }
35
- }
36
60
  }
37
- &:disabled ~ .custom-control-label {
38
- color: $border-default;
39
61
 
40
- &::before {
41
- border: unset;
42
- background-color: $back-disabled;
43
- }
62
+ &__input {
63
+ position: absolute;
64
+ z-index: -1;
65
+ opacity: 0;
66
+
67
+ //HOVER
68
+ &:not(:disabled):not(:checked):not(:active) + #{$root}__label:hover::before {
69
+ border-color: #d0d0d0;
70
+ }
71
+
72
+ //ACTIVE
73
+ &:not(:disabled):not(:checked):active + #{$root}__label::before {
74
+ border-color: $primary;
75
+ }
76
+
77
+ &:active:checked + #{$root}__label::after {
78
+ opacity: 0;
79
+ }
80
+
81
+ &:checked:active + #{$root}__label::before {
82
+ background-color: $primary-light;
83
+ border: none;
84
+ }
85
+
86
+ //FOCUS
87
+ &:focus + #{$root}__label::after {
88
+ opacity: 1;
89
+ }
90
+
91
+ //CHECKED
92
+ &:checked + #{$root}__label::before {
93
+ border-color: $primary;
94
+ background-color: $primary;
95
+ background-image: url("data:image/svg+xml,%3Csvg width='11' height='8' viewBox='0 0 11 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.20898 1L3.70898 7L1.20898 4.27273' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
96
+ }
97
+
98
+ //DISABLED
99
+ &:disabled + #{$root}__label {
100
+ cursor: not-allowed;
101
+ color: $gray;
102
+
103
+ span {
104
+ color: currentColor;
105
+ }
106
+
107
+ &::before {
108
+ background: currentColor;
109
+ border: none;
110
+ }
111
+ }
112
+
113
+ &:disabled:checked #{$root}__label::before {
114
+ background-color: $gray;
115
+ border-color: none;
116
+ background-image: url("data:image/svg+xml,%3Csvg width='11' height='9' viewBox='0 0 11 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.8584 1.48401L4.3584 7.48401L1.8584 4.75674' stroke='black' stroke-opacity='0.1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
117
+ }
118
+
119
+ //ERROR
120
+ }
121
+ }
122
+ .has-errors label {
123
+ &::before {
124
+ border-color: $danger;
125
+ }
126
+
127
+ span {
128
+ color: $danger;
44
129
  }
45
- }
46
130
  }
@@ -248,6 +248,9 @@ exports["default"] = (function () {
248
248
  'error',
249
249
  'close',
250
250
  'default',
251
+ 'badge-close',
252
+ 'loader',
253
+ 'accordion-chevron',
251
254
  ];
252
255
  steroidsIcons.forEach(function (iconName) {
253
256
  icons[iconName] = require("./svgs/".concat(iconName, ".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="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="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,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,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,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="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,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
@@ -35,10 +35,10 @@ declare const _default: {
35
35
  'content.CardView': {
36
36
  lazy: () => any;
37
37
  };
38
- 'content.CollapseView': {
38
+ 'content.AccordionView': {
39
39
  lazy: () => any;
40
40
  };
41
- 'content.CollapseItemView': {
41
+ 'content.AccordionItemView': {
42
42
  lazy: () => any;
43
43
  };
44
44
  'form.CheckboxFieldView': {
package/index.js CHANGED
@@ -38,11 +38,11 @@ exports["default"] = {
38
38
  'content.CardView': {
39
39
  lazy: function () { return require('./content/Card/CardView')["default"]; }
40
40
  },
41
- 'content.CollapseView': {
42
- lazy: function () { return require('./content/Collapse/CollapseView')["default"]; }
41
+ 'content.AccordionView': {
42
+ lazy: function () { return require('./content/Accordion/AccordionView')["default"]; }
43
43
  },
44
- 'content.CollapseItemView': {
45
- lazy: function () { return require('./content/Collapse/CollapseItemView')["default"]; }
44
+ 'content.AccordionItemView': {
45
+ lazy: function () { return require('./content/Accordion/AccordionItemView')["default"]; }
46
46
  },
47
47
  'form.CheckboxFieldView': {
48
48
  lazy: function () { return require('./form/CheckboxField/CheckboxFieldView')["default"]; }
package/index.scss CHANGED
@@ -9,8 +9,8 @@
9
9
  @import './content/Calendar/CalendarView';
10
10
  @import './content/Calendar/CaptionElement';
11
11
  @import './content/Card/CardView';
12
- @import './content/Collapse/CollapseView';
13
- @import './content/Collapse/CollapseItemView';
12
+ @import './content/Accordion/AccordionView';
13
+ @import './content/Accordion/AccordionItemView';
14
14
  @import './content/Detail/DetailView';
15
15
  @import './form/AutoCompleteField/AutoCompleteFieldView';
16
16
  @import './form/Button/ButtonView';
@@ -39,7 +39,6 @@
39
39
  @import './form/TextField/TextFieldView';
40
40
  @import './form/TimeField/TimeFieldView';
41
41
  @import './form/TimeField/TimePanelView';
42
- @import './content/Icon/IconView';
43
42
  @import './layout/Header/HeaderView';
44
43
  @import './layout/Tooltip/TooltipView';
45
44
  @import './layout/Notifications/NotificationsView';