@itcase/ui 1.0.9 → 1.0.11

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.
@@ -135,7 +135,6 @@ function Tab(props) {
135
135
  });
136
136
  var _useStyles = useStyles.useStyles(props),
137
137
  tab = _useStyles.styles;
138
- console.log(tabConfig.appearance);
139
138
  return /*#__PURE__*/React__default.default.createElement("div", {
140
139
  className: clsx__default.default('tab', isActive && 'tab_state_active', isHover && 'tab_state_hover', appearance && ("fill_" + tabConfig.appearance[appearance].fillClass).replace(/([A-Z])/g, '-$1').toLowerCase(), appearance && ("fill_hover_" + tabConfig.appearance[appearance].fillHoverClass).replace(/([A-Z])/g, '-$1').toLowerCase(), className, sizeClass, fillClass, fillHoverClass, fillActiveClass, fillActiveHoverClass, fillDisabledClass, shapeClass, typeClass, widthClass, set && "tab_set_" + set, justifyContentClass),
141
140
  style: tab,
@@ -0,0 +1,67 @@
1
+ .choice {
2
+ display: flex;
3
+ align-items: center;
4
+ &__wrapper {
5
+ position: relative;
6
+ display: flex;
7
+ ^&__item {
8
+ min-width: 80px;
9
+ position: relative;
10
+ display: flex;
11
+ border-top: 0;
12
+ border-left: 0;
13
+ border-bottom: 0;
14
+ &last-child {
15
+ border-right: 0;
16
+ }
17
+ &_state_active {
18
+ }
19
+ & input {
20
+ width: 100%;
21
+ height: 100%;
22
+ position: absolute;
23
+ left: 0;
24
+ top: 0;
25
+ right: 0;
26
+ bottom: 0;
27
+ z-index: 2;
28
+ opacity: 0%;
29
+ cursor: pointer;
30
+ border: 0;
31
+ margin: 0;
32
+ }
33
+ &-label {
34
+ width: 100%;
35
+ text-align: center;
36
+ position: relative;
37
+ display: block;
38
+ z-index: 3;
39
+ transition: color 0.5s ease;
40
+ cursor: pointer;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ .choice {
46
+ &_shape {
47
+ &_rounded {
48
+ border-radius: 8px;
49
+ }
50
+ &_circular {
51
+ border-radius: 50%;
52
+ }
53
+ }
54
+ }
55
+ .choice {
56
+ &_size {
57
+ @each $size in normal, compact {
58
+ &_$(size) {
59
+ ^^&__item {
60
+ &-label {
61
+ padding: var(--choice-item-size-$(size)-padding, 10px 16px);
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }