@datability/8ui 1.1.8 → 1.2.0

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 (80) hide show
  1. package/README.md +146 -1
  2. package/package.json +8 -1
  3. package/dist/components/assets/closed.svg +0 -4
  4. package/dist/components/assets/expand-arrow.svg +0 -3
  5. package/dist/components/assets/visibility-off.svg +0 -5
  6. package/dist/components/assets/visibility.svg +0 -5
  7. package/dist/components/blackdrop/index.scss +0 -16
  8. package/dist/components/button/index.scss +0 -40
  9. package/dist/components/chip/index.scss +0 -32
  10. package/dist/components/divider/index.scss +0 -4
  11. package/dist/components/input/extend.scss +0 -19
  12. package/dist/components/input/input-async-auto-complete/index.scss +0 -66
  13. package/dist/components/input/input-async-select/index.scss +0 -94
  14. package/dist/components/input/input-auto-complete/index.scss +0 -53
  15. package/dist/components/input/input-base/index.scss +0 -14
  16. package/dist/components/input/input-basic/index.scss +0 -9
  17. package/dist/components/input/input-checkbox/index.scss +0 -30
  18. package/dist/components/input/input-date/index.scss +0 -102
  19. package/dist/components/input/input-date-range/index.scss +0 -101
  20. package/dist/components/input/input-date-time/index.scss +0 -179
  21. package/dist/components/input/input-number/index.scss +0 -9
  22. package/dist/components/input/input-password/index.scss +0 -22
  23. package/dist/components/input/input-radio/index.scss +0 -35
  24. package/dist/components/input/input-select/index.scss +0 -81
  25. package/dist/components/input/input-switch/index.scss +0 -84
  26. package/dist/components/input/input-textarea/index.scss +0 -10
  27. package/dist/components/menu/index.scss +0 -30
  28. package/dist/components/modal/index.scss +0 -33
  29. package/dist/index.css +0 -1
  30. package/dist/index.es.js +0 -2088
  31. package/dist/index.es.js.map +0 -1
  32. package/dist/index.umd.js +0 -8
  33. package/dist/index.umd.js.map +0 -1
  34. package/dist/types/App.d.ts +0 -2
  35. package/dist/types/components/blackdrop/index.d.ts +0 -4
  36. package/dist/types/components/blackdrop/index.type.d.ts +0 -6
  37. package/dist/types/components/button/index.d.ts +0 -4
  38. package/dist/types/components/button/index.type.d.ts +0 -12
  39. package/dist/types/components/chip/index.d.ts +0 -4
  40. package/dist/types/components/chip/index.type.d.ts +0 -9
  41. package/dist/types/components/context.d.ts +0 -8
  42. package/dist/types/components/divider/index.d.ts +0 -3
  43. package/dist/types/components/index.d.ts +0 -45
  44. package/dist/types/components/input/input-async-auto-complete/index.d.ts +0 -4
  45. package/dist/types/components/input/input-async-auto-complete/index.type.d.ts +0 -19
  46. package/dist/types/components/input/input-async-select/index.d.ts +0 -4
  47. package/dist/types/components/input/input-async-select/index.type.d.ts +0 -19
  48. package/dist/types/components/input/input-auto-complete/index.d.ts +0 -4
  49. package/dist/types/components/input/input-auto-complete/index.type.d.ts +0 -14
  50. package/dist/types/components/input/input-base/index.d.ts +0 -4
  51. package/dist/types/components/input/input-base/index.type.d.ts +0 -11
  52. package/dist/types/components/input/input-basic/index.d.ts +0 -4
  53. package/dist/types/components/input/input-basic/index.type.d.ts +0 -10
  54. package/dist/types/components/input/input-checkbox/index.d.ts +0 -4
  55. package/dist/types/components/input/input-checkbox/index.type.d.ts +0 -13
  56. package/dist/types/components/input/input-date/index.d.ts +0 -22
  57. package/dist/types/components/input/input-date/index.type.d.ts +0 -13
  58. package/dist/types/components/input/input-date-range/index.d.ts +0 -4
  59. package/dist/types/components/input/input-date-range/index.type.d.ts +0 -13
  60. package/dist/types/components/input/input-date-time/index.d.ts +0 -4
  61. package/dist/types/components/input/input-date-time/index.type.d.ts +0 -13
  62. package/dist/types/components/input/input-number/index.d.ts +0 -4
  63. package/dist/types/components/input/input-number/index.type.d.ts +0 -12
  64. package/dist/types/components/input/input-password/index.d.ts +0 -4
  65. package/dist/types/components/input/input-password/index.type.d.ts +0 -10
  66. package/dist/types/components/input/input-radio/index.d.ts +0 -4
  67. package/dist/types/components/input/input-radio/index.type.d.ts +0 -14
  68. package/dist/types/components/input/input-select/index.d.ts +0 -4
  69. package/dist/types/components/input/input-select/index.type.d.ts +0 -15
  70. package/dist/types/components/input/input-switch/index.d.ts +0 -4
  71. package/dist/types/components/input/input-switch/index.type.d.ts +0 -6
  72. package/dist/types/components/input/input-textarea/index.d.ts +0 -4
  73. package/dist/types/components/input/input-textarea/index.type.d.ts +0 -12
  74. package/dist/types/components/menu/index.d.ts +0 -4
  75. package/dist/types/components/menu/index.type.d.ts +0 -11
  76. package/dist/types/components/modal/index.d.ts +0 -4
  77. package/dist/types/components/modal/index.type.d.ts +0 -7
  78. package/dist/types/index.d.ts +0 -45
  79. package/dist/types/main.d.ts +0 -1
  80. package/dist/vite.svg +0 -1
@@ -1,102 +0,0 @@
1
- @import '../extend.scss';
2
-
3
- .DBui-inputDate {
4
- @extend .DBui-input;
5
- height: 35px;
6
- display: flex;
7
- align-items: center;
8
- cursor: pointer;
9
-
10
- &[data-disabled='true'] {
11
- @extend .DBui-disabled;
12
- }
13
-
14
- .DBui-clearIconInputDate {
15
- width: 20px;
16
-
17
- &[data-hidden='true'] {
18
- display: none !important;
19
- }
20
-
21
- &:hover {
22
- opacity: 0.8;
23
- }
24
- }
25
- }
26
-
27
- .DBui-inputDateWrapperCalendar {
28
- display: flex;
29
- flex-direction: column;
30
- gap: 0.3em;
31
- padding: 2em 0;
32
- justify-content: center;
33
- align-items: center;
34
-
35
- .DBui-inputDateRowMonthYear,
36
- .DBui-inputDateRowHeaderDay,
37
- .DBui-inputDateRowDay {
38
- display: flex;
39
- flex-direction: row;
40
- gap: 0.8em;
41
- }
42
-
43
- .DBui-inputDateRowMonthYear {
44
- gap: 0.5em;
45
- margin-left: 0.5em;
46
- align-items: center;
47
- }
48
-
49
- .DBui-inputDateRowHeaderDay,
50
- .DBui-inputDateRowDay {
51
-
52
- .DBui-inputDateHeader,
53
- .DBui-inputDateDay {
54
- width: 30px;
55
- height: 30px;
56
- text-align: center;
57
- display: flex;
58
- align-items: center;
59
- justify-content: center;
60
- }
61
-
62
- .DBui-inputDateDay {
63
- cursor: not-allowed;
64
-
65
- &[data-hidden-hover='false'] {
66
- cursor: pointer;
67
-
68
- &:hover {
69
- background-color: #03287E;
70
- border-radius: 100%;
71
- color: #FFFFFF;
72
- }
73
- }
74
-
75
- &[data-checked='true'] {
76
- background-color: #03287E;
77
- color: #FFFFFF;
78
- border-radius: 100%;
79
- }
80
- }
81
- }
82
- }
83
-
84
- .DBui-inputDateRowMonthYearSelected {
85
- cursor: pointer;
86
- text-align: center;
87
- }
88
-
89
- .DBui-inputDateRowMonthYearOption {
90
- cursor: pointer;
91
- padding: 0.5em 1em;
92
-
93
- &:hover {
94
- background-color: #03287E;
95
- color: #FFFFFF;
96
- }
97
-
98
- &[data-checked='true'] {
99
- background-color: #03287E;
100
- color: #FFFFFF;
101
- }
102
- }
@@ -1,101 +0,0 @@
1
- @import '../extend.scss';
2
-
3
- .DBui-inputDateRange {
4
- @extend .DBui-input;
5
- height: 35px;
6
- display: flex;
7
- align-items: center;
8
- cursor: pointer;
9
-
10
- &[data-disabled='true'] {
11
- @extend .DBui-disabled;
12
- }
13
-
14
- .DBui-clearIconInputDateRange {
15
- width: 20px;
16
-
17
- &[data-hidden='true'] {
18
- display: none !important;
19
- }
20
-
21
- &:hover {
22
- opacity: 0.8;
23
- }
24
- }
25
- }
26
-
27
- .DBui-inputDateRangeWrapperCalendar {
28
- display: flex;
29
- flex-direction: column;
30
- gap: 0.3em;
31
- padding: 2em 0;
32
- justify-content: center;
33
- align-items: center;
34
-
35
- .DBui-inputDateRangeRowMonthYear,
36
- .DBui-inputDateRangeRowHeaderDay,
37
- .DBui-inputDateRangeRowDay {
38
- display: flex;
39
- flex-direction: row;
40
- gap: 0.8em;
41
- }
42
-
43
- .DBui-inputDateRangeRowMonthYear {
44
- gap: 0.5em;
45
- margin-left: 0.5em;
46
- align-items: center;
47
- }
48
-
49
- .DBui-inputDateRangeRowHeaderDay,
50
- .DBui-inputDateRangeRowDay {
51
- cursor: pointer;
52
-
53
- .DBui-inputDateRangeHeader,
54
- .DBui-inputDateRangeDay {
55
- width: 30px;
56
- height: 30px;
57
- text-align: center;
58
- display: flex;
59
- align-items: center;
60
- justify-content: center;
61
- }
62
-
63
- .DBui-inputDateRangeDay {
64
-
65
- &[data-hidden-hover='false'] {
66
-
67
- &:hover {
68
- background-color: #03287E;
69
- border-radius: 100%;
70
- color: #FFFFFF;
71
- }
72
- }
73
-
74
- &[data-checked='true'] {
75
- background-color: #03287E;
76
- color: #FFFFFF;
77
- border-radius: 100%;
78
- }
79
- }
80
- }
81
- }
82
-
83
- .DBui-inputDateRangeRowMonthYearSelected {
84
- cursor: pointer;
85
- text-align: center;
86
- }
87
-
88
- .DBui-inputDateRangeRowMonthYearOption {
89
- cursor: pointer;
90
- padding: 0.5em 1em;
91
-
92
- &:hover {
93
- background-color: #03287E;
94
- color: #FFFFFF;
95
- }
96
-
97
- &[data-checked='true'] {
98
- background-color: #03287E;
99
- color: #FFFFFF;
100
- }
101
- }
@@ -1,179 +0,0 @@
1
- @import '../extend.scss';
2
-
3
- .DBui-inputDateTime {
4
- @extend .DBui-input;
5
- height: 35px;
6
- display: flex;
7
- align-items: center;
8
- cursor: pointer;
9
-
10
- &[data-disabled='true'] {
11
- @extend .DBui-disabled;
12
- }
13
-
14
- .DBui-clearIconInputDateTime {
15
- width: 20px;
16
-
17
- &[data-hidden='true'] {
18
- display: none !important;
19
- }
20
-
21
- &:hover {
22
- opacity: 0.8;
23
- }
24
- }
25
- }
26
-
27
- .DBui-inputDateTimeWrapperCalendar {
28
- display: flex;
29
- flex-direction: column;
30
- padding: 3em 1em;
31
- gap: 0.8em;
32
-
33
- @media (max-width: 425px) {
34
- padding: 2.5em 0;
35
- width: 99vw;
36
- }
37
-
38
- .DBui-inputDateTimeWrapperYearMonthDayTime {
39
- display: flex;
40
- flex-direction: row;
41
- gap: 0.3em;
42
- justify-content: center;
43
- align-items: center;
44
-
45
- @media (max-width: 425px) {
46
- gap: 0.2em;
47
- }
48
-
49
- .DBui-inputDateTimeWrapperYearMonthDay {
50
- display: flex;
51
- flex-direction: column;
52
- gap: 0.3em;
53
- justify-content: center;
54
- align-items: center;
55
- border-right: 1px solid gray;
56
- padding-right: 0.5em;
57
-
58
-
59
- .DBui-inputDateTimeRowMonthYear,
60
- .DBui-inputDateTimeRowHeaderDay,
61
- .DBui-inputDateTimeRowDay {
62
- display: flex;
63
- flex-direction: row;
64
- gap: 0.8em;
65
-
66
- @media (max-width: 425px) {
67
- gap: 0.2em;
68
- }
69
- }
70
-
71
- .DBui-inputDateTimeRowMonthYear {
72
- gap: 0.5em;
73
- margin-left: 0.5em;
74
- align-items: center;
75
- }
76
-
77
- .DBui-inputDateTimeRowHeaderDay,
78
- .DBui-inputDateTimeRowDay {
79
-
80
- .DBui-inputDateTimeHeader,
81
- .DBui-inputDateTimeDay {
82
- width: 30px;
83
- height: 30px;
84
- text-align: center;
85
- display: flex;
86
- align-items: center;
87
- justify-content: center;
88
- }
89
-
90
- .DBui-inputDateTimeDay {
91
-
92
- cursor: not-allowed;
93
-
94
- &[data-hidden-hover='false'] {
95
- cursor: pointer;
96
-
97
- &:hover {
98
- background-color: #03287E;
99
- border-radius: 100%;
100
- color: #FFFFFF;
101
- }
102
- }
103
-
104
- &[data-checked='true'] {
105
- background-color: #03287E;
106
- color: #FFFFFF;
107
- border-radius: 100%;
108
- }
109
- }
110
- }
111
- }
112
-
113
- .DBui-inputDateTimeWrapperHourMin {
114
- padding: 0 0.3em;
115
- align-self: flex-end;
116
- flex-direction: column;
117
- display: flex;
118
-
119
- @media (max-width: 425px) {
120
- padding: 0 0.2em;
121
- }
122
-
123
- .DBui-inputDateTimeWrapperHourMinOptions {
124
- max-height: 200px;
125
- overflow-y: scroll;
126
- -ms-overflow-style: none;
127
- /* IE and Edge */
128
- scrollbar-width: none;
129
- /* Firefox */
130
-
131
- /* Hide scrollbar for Chrome, Safari and Opera */
132
- &::-webkit-scrollbar {
133
- display: none;
134
- }
135
-
136
- p {
137
- padding: 0.5em;
138
- cursor: pointer;
139
-
140
- &:hover {
141
- background-color: #03287E;
142
- color: #FFFFFF;
143
- }
144
-
145
- &[data-checked='true'] {
146
- background-color: #03287E;
147
- color: #FFFFFF;
148
- }
149
- }
150
- }
151
- }
152
- }
153
-
154
- .DBui-inputDateTimeWrapperButton {
155
- display: flex;
156
- gap: 0.5em;
157
- justify-content: flex-end;
158
- }
159
- }
160
-
161
- .DBui-inputDateTimeRowMonthYearSelected {
162
- cursor: pointer;
163
- text-align: center;
164
- }
165
-
166
- .DBui-inputDateTimeRowMonthYearOption {
167
- cursor: pointer;
168
- padding: 0.5em 1em;
169
-
170
- &:hover {
171
- background-color: #03287E;
172
- color: #FFFFFF;
173
- }
174
-
175
- &[data-checked='true'] {
176
- background-color: #03287E;
177
- color: #FFFFFF;
178
- }
179
- }
@@ -1,9 +0,0 @@
1
- @import '../extend.scss';
2
-
3
- .DBui-inputNumber {
4
- @extend .DBui-input;
5
-
6
- &:disabled {
7
- @extend .DBui-disabled;
8
- }
9
- }
@@ -1,22 +0,0 @@
1
- @import '../extend.scss';
2
-
3
- .DBui-wrapInputPassword {
4
- width: 100%;
5
- position: relative;
6
-
7
- .DBui-inputPassword {
8
- @extend .DBui-input;
9
-
10
- padding-right: 1em;
11
- }
12
-
13
- .DBui-inputPasswordIcon {
14
- position: absolute;
15
- right: 5px;
16
- top: 50%;
17
- transform: translateY(-50%);
18
- cursor: pointer;
19
- width: 1.5em;
20
- height: 1.5em;
21
- }
22
- }
@@ -1,35 +0,0 @@
1
- @import '../extend.scss';
2
-
3
- .DBui-wrapInputRadioList {
4
- display: flex;
5
- width: 100%;
6
- gap: 1em;
7
-
8
- &[data-vertical='true'] {
9
- flex-direction: column;
10
- gap: 0.5em;
11
- }
12
-
13
- .DBui-wrapInputRadio {
14
- display: flex;
15
- align-items: center;
16
- gap: 0.3em;
17
-
18
- .DBui-labelRadio {
19
- &[data-invalid='true'] {
20
- color: #EB5757;
21
- }
22
- }
23
-
24
- .DBui-inputRadio {
25
- border-radius: 0.3em;
26
- width: 20px;
27
- height: 20px;
28
- cursor: pointer;
29
-
30
- &:disabled {
31
- @extend .DBui-disabled;
32
- }
33
- }
34
- }
35
- }
@@ -1,81 +0,0 @@
1
- @import '../extend.scss';
2
-
3
- .DBui-wrapperInputSelect {
4
- cursor: pointer;
5
- position: relative;
6
- height: 35px;
7
- width: 100%;
8
- padding: 0.3em 35px 0.3em 0.5em;
9
- border-radius: 8px;
10
- border: 1px solid #e3e3e8;
11
- background-color: #ffffff;
12
- color: #000000;
13
- display: flex;
14
-
15
- &[data-invalid='true'] {
16
- border: 1px solid #eb5757;
17
- }
18
-
19
- &[data-disabled='true'] {
20
- @extend .DBui-disabled;
21
- }
22
-
23
- .DBui-wrapperLabel {
24
- text-overflow: ellipsis;
25
- overflow: hidden;
26
- display: -webkit-box;
27
- -webkit-line-clamp: 1;
28
- -webkit-box-orient: vertical;
29
- }
30
-
31
- .DBui-placeholder {
32
- color: #c3c3c3;
33
- }
34
-
35
- .DBui-wrapperLabelInputSelect {
36
- display: flex;
37
- gap: 0.3em;
38
- align-items: center;
39
- width: 100%;
40
-
41
- .DBui-clearIconInputSelect {
42
- width: 20px;
43
-
44
- &[data-hidden='true'] {
45
- display: none !important;
46
- }
47
-
48
- &:hover {
49
- opacity: 0.8;
50
- }
51
- }
52
- }
53
-
54
- .DBui-arrowIconInputSelect {
55
- position: absolute;
56
- right: 5px;
57
- top: 50%;
58
- transform: translateY(-50%);
59
- transition: transform 0.2s;
60
-
61
- &[data-checked='false'] {
62
- transform: rotate(180deg) translateY(50%);
63
- }
64
- }
65
- }
66
-
67
- .DBui-menuItemInputSelect {
68
- background-color: #ffffff;
69
- color: #000000;
70
- padding: 0.3em 0.5em;
71
- cursor: pointer;
72
-
73
- &:hover {
74
- background-color: #fafafa;
75
- }
76
-
77
- &[data-checked='true'] {
78
- background-color: #0045a5;
79
- color: #ffffff;
80
- }
81
- }
@@ -1,84 +0,0 @@
1
- .DBui-switch {
2
- position: relative;
3
- display: inline-block;
4
- width: 51px;
5
- height: 28px;
6
-
7
- input {
8
- opacity: 0;
9
- width: 0;
10
- height: 0;
11
- }
12
-
13
- .DBui-minus {
14
- position: absolute;
15
- height: 9px;
16
- width: 1px;
17
- left: 18px;
18
- bottom: 9px;
19
- background-color: #1C1C1E;
20
- z-index: 1;
21
- border-radius: 999px;
22
- }
23
-
24
- .DBui-miniCircle {
25
- position: absolute;
26
- border-radius: 100%;
27
- height: 7px;
28
- width: 7px;
29
- right: 11px;
30
- bottom: 10px;
31
- box-shadow: 0 0 0px 1px #000000;
32
- z-index: 1;
33
- }
34
-
35
- .DBui-slider {
36
- border-radius: 34px;
37
-
38
- position: absolute;
39
- cursor: pointer;
40
- top: 0;
41
- left: 0;
42
- right: 0;
43
- bottom: 0;
44
- background-color: #AAAAAA;
45
- -webkit-transition: 0.3s cubic-bezier(0.61, -0.01, 0.2, 1.37);
46
- transition: 0.3s cubic-bezier(0.61, -0.01, 0.2, 1.37);
47
-
48
- &:before {
49
- border-radius: 50%;
50
- z-index: 2;
51
-
52
- position: absolute;
53
- content: '';
54
- height: 20px;
55
- width: 20px;
56
- left: 4px;
57
- bottom: 4px;
58
- background-color: #1C1C1E;
59
- box-shadow: 0px 0.31px 10px 0px #00000004;
60
- -webkit-transition: 0.3s cubic-bezier(0.61, -0.01, 0.2, 1.37);
61
- transition: 0.3s cubic-bezier(0.61, -0.01, 0.2, 1.37);
62
- }
63
- }
64
-
65
- input:checked+.DBui-slider {
66
- background-color: #477cee;
67
- }
68
-
69
- input:checked+.DBui-slider:before {
70
- -webkit-transform: translateX(22px);
71
- -ms-transform: translateX(22px);
72
- transform: translateX(22px);
73
- }
74
-
75
- .DBui-wrapInputList {
76
- display: flex;
77
- flex-direction: row;
78
-
79
- &[data-disabled='true'] {
80
- opacity: 0.6;
81
- pointer-events: none;
82
- }
83
- }
84
- }
@@ -1,10 +0,0 @@
1
- @import '../extend.scss';
2
-
3
- .DBui-inputTextarea {
4
- @extend .DBui-input;
5
- resize: none;
6
-
7
- &:disabled {
8
- @extend .DBui-disabled;
9
- }
10
- }
@@ -1,30 +0,0 @@
1
- .DBui-wrapperMenu {
2
- display: inline-flex;
3
- align-items: center;
4
- cursor: pointer;
5
- }
6
-
7
- .DBui-wrapperMenuItem {
8
- position: fixed;
9
- background: #fff;
10
- color: #000;
11
- border-radius: 0.3em;
12
- min-width: 140px;
13
- max-width: 320px;
14
- max-height: 45%;
15
- box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px;
16
- overflow-y: auto;
17
- overflow-x: hidden;
18
- transition: opacity 0.1s ease;
19
- z-index: var(--z-index-menu);
20
-
21
- &[data-hidden='true'] {
22
- opacity: 0;
23
- visibility: hidden;
24
- pointer-events: none;
25
- }
26
-
27
- &[data-is-in-modal='true'] {
28
- z-index: var(--z-index-menu-in-modal);
29
- }
30
- }
@@ -1,33 +0,0 @@
1
- .DBui-modalContent {
2
- top: 50%;
3
- left: 50%;
4
- transform: translate(-50%, -50%);
5
- position: absolute;
6
- border-radius: 1em;
7
- background-color: #FFFFFF;
8
- box-shadow: rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px;
9
- min-width: 320px;
10
- min-height: 150px;
11
- overflow-x: hidden;
12
- overflow-y: scroll;
13
- display: flex;
14
- flex-direction: column;
15
-
16
- &::-webkit-scrollbar {
17
- display: none;
18
- }
19
-
20
- .DBui-close {
21
- position: absolute;
22
- top: 10px;
23
- right: 10px;
24
- width: 30px;
25
- height: 30px;
26
- z-index: var(--z-index-normale);
27
- cursor: pointer;
28
-
29
- &:hover {
30
- opacity: 0.5;
31
- }
32
- }
33
- }