@omniumretail/component-library 1.1.55 → 1.1.57
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/dist/bundle.js +1 -1
- package/dist/main.css +1 -1
- package/dist/types/components/Category/CategoryContent/index.d.ts +1 -0
- package/dist/types/components/Category/CategorySidebar/index.d.ts +1 -0
- package/dist/types/components/Category/index.d.ts +1 -0
- package/dist/types/components/Questions/SingleQuestion/index.d.ts +1 -1
- package/dist/types/components/Questions/index.d.ts +1 -0
- package/dist/types/components/ResponsiveTable/index.d.ts +1 -0
- package/dist/types/components/Tag/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Category/Category.stories.tsx +1 -89
- package/src/components/Category/CategoryContent/index.tsx +11 -2
- package/src/components/Category/CategorySidebar/index.tsx +46 -14
- package/src/components/Category/index.tsx +5 -1
- package/src/components/Questions/SingleQuestion/index.tsx +29 -24
- package/src/components/Questions/index.tsx +5 -2
- package/src/components/ResponsiveTable/ResponsiveTable.stories.tsx +7 -3
- package/src/components/ResponsiveTable/index.tsx +9 -5
- package/src/components/Tag/index.tsx +43 -22
- package/src/components/Tag/styles.module.scss +50 -3
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
.tagfield {
|
|
2
2
|
contain: inline-size;
|
|
3
3
|
|
|
4
|
+
:global {
|
|
5
|
+
.ant-switch.ant-switch-checked .ant-switch-handle {
|
|
6
|
+
inset-inline-start: calc(100% - 14px);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
4
10
|
.tagsContainer {
|
|
5
11
|
margin-top: 16px;
|
|
6
12
|
|
|
@@ -16,6 +22,7 @@
|
|
|
16
22
|
gap: 12px;
|
|
17
23
|
padding: 16px;
|
|
18
24
|
margin-inline-end: 0;
|
|
25
|
+
width: 100%;
|
|
19
26
|
|
|
20
27
|
:global {
|
|
21
28
|
.ant-input {
|
|
@@ -43,14 +50,14 @@
|
|
|
43
50
|
padding-right: 24px;
|
|
44
51
|
min-height: 34px;
|
|
45
52
|
}
|
|
46
|
-
|
|
53
|
+
|
|
47
54
|
.anticon-close {
|
|
48
55
|
color: var(--color-white);
|
|
49
56
|
font-size: 12px;
|
|
50
57
|
position: absolute;
|
|
51
58
|
right: 4px;
|
|
52
59
|
top: 10px;
|
|
53
|
-
|
|
60
|
+
|
|
54
61
|
&:hover {
|
|
55
62
|
color: var(--color-black);
|
|
56
63
|
}
|
|
@@ -58,6 +65,46 @@
|
|
|
58
65
|
}
|
|
59
66
|
}
|
|
60
67
|
|
|
68
|
+
.switch {
|
|
69
|
+
background-color: var(--color-grey) !important;
|
|
70
|
+
|
|
71
|
+
&[aria-checked="true"] {
|
|
72
|
+
background: var(--color-orange) !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@media (max-width: 768px) {
|
|
76
|
+
min-width: 28px;
|
|
77
|
+
height: 16px;
|
|
78
|
+
line-height: 16px;
|
|
79
|
+
|
|
80
|
+
:global {
|
|
81
|
+
.ant-switch-handle {
|
|
82
|
+
width: 12px;
|
|
83
|
+
height: 12px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
.ant-switch-inner {
|
|
89
|
+
padding-inline-start: 18px;
|
|
90
|
+
padding-inline-end: 6px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.switchInputContainer {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
gap: 32px;
|
|
100
|
+
width: calc(100% - 40px);
|
|
101
|
+
|
|
102
|
+
@media (max-width: 768px) {
|
|
103
|
+
gap: 12px;
|
|
104
|
+
width: calc(100% - 20px);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
61
108
|
.advancedTagsWrapper {
|
|
62
109
|
display: flex;
|
|
63
110
|
gap: 12px;
|
|
@@ -74,4 +121,4 @@
|
|
|
74
121
|
cursor: pointer;
|
|
75
122
|
}
|
|
76
123
|
}
|
|
77
|
-
}
|
|
124
|
+
}
|