@datability/8ui 1.3.0 → 1.4.1
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 +2 -0
- package/dist/components/input/date-extend.scss +1 -1
- package/dist/components/input/phone-input/index.scss +12 -0
- package/dist/components/menu/index.scss +2 -0
- package/dist/components/quantity/index.scss +70 -0
- package/dist/index.css +1 -1
- package/dist/index.es.js +1561 -1483
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/types/components/assets/flag-th.d.ts +3 -0
- package/dist/types/components/assets/minus.d.ts +3 -0
- package/dist/types/components/assets/plus.d.ts +3 -0
- package/dist/types/components/menu/index.type.d.ts +3 -1
- package/dist/types/components/menu/useMenuDropdown.d.ts +1 -1
- package/dist/types/components/quantity/index.d.ts +4 -0
- package/dist/types/components/quantity/index.type.d.ts +12 -0
- package/dist/types/index.d.ts +2 -6
- package/dist/types/pages/ComponentBase/demos/QuantityDemo.d.ts +3 -0
- package/package.json +2 -1
- package/dist/types/components/context.d.ts +0 -8
package/README.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
.DBui-phoneInput {
|
|
4
4
|
@include input-field-container;
|
|
5
|
+
gap: var(--textInputGapSm);
|
|
6
|
+
|
|
7
|
+
.DBui-phoneInputFlag {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
|
|
12
|
+
svg {
|
|
13
|
+
width: var(--input-icon-size);
|
|
14
|
+
height: auto;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
5
17
|
|
|
6
18
|
.DBui-phoneInputActions {
|
|
7
19
|
display: flex;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.DBui-quantity {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
background: #ebebeb;
|
|
5
|
+
border-radius: var(--radiusMd);
|
|
6
|
+
|
|
7
|
+
&[data-disabled="true"] {
|
|
8
|
+
opacity: 0.5;
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&[data-size="sm"] {
|
|
13
|
+
.DBui-quantityButton {
|
|
14
|
+
width: 28px;
|
|
15
|
+
height: 28px;
|
|
16
|
+
|
|
17
|
+
svg {
|
|
18
|
+
width: 16px;
|
|
19
|
+
height: 16px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.DBui-quantityValue {
|
|
24
|
+
width: 28px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&[data-size="md"] {
|
|
29
|
+
.DBui-quantityButton {
|
|
30
|
+
width: 32px;
|
|
31
|
+
height: 32px;
|
|
32
|
+
|
|
33
|
+
svg {
|
|
34
|
+
width: 20px;
|
|
35
|
+
height: 20px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.DBui-quantityValue {
|
|
40
|
+
width: 28px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.DBui-quantityButton {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
background: transparent;
|
|
49
|
+
border: none;
|
|
50
|
+
border-radius: var(--radiusMd);
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
color: black;
|
|
53
|
+
padding: 0;
|
|
54
|
+
|
|
55
|
+
&:hover:not(:disabled) {
|
|
56
|
+
background: rgba(0, 0, 0, 0.08);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:disabled {
|
|
60
|
+
opacity: 0.4;
|
|
61
|
+
cursor: not-allowed;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.DBui-quantityValue {
|
|
66
|
+
text-align: center;
|
|
67
|
+
color: black;
|
|
68
|
+
user-select: none;
|
|
69
|
+
}
|
|
70
|
+
}
|