@dubai-design-system/components-js 3.12.4 → 3.12.6

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 (152) hide show
  1. package/dist/cjs/dda-attach-file.cjs.entry.js +5 -2
  2. package/dist/cjs/dda-attach-file.cjs.entry.js.map +1 -1
  3. package/dist/cjs/dda-header.cjs.entry.js +8 -5
  4. package/dist/cjs/dda-header.cjs.entry.js.map +1 -1
  5. package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +1 -1
  6. package/dist/cjs/dda-segmented-tabs.cjs.entry.js +1 -1
  7. package/dist/cjs/dda-select.cjs.entry.js +9 -2
  8. package/dist/cjs/dda-select.cjs.entry.js.map +1 -1
  9. package/dist/cjs/dda-split-button.cjs.entry.js +104 -0
  10. package/dist/cjs/dda-split-button.cjs.entry.js.map +1 -0
  11. package/dist/cjs/dda-sticky-footer.cjs.entry.js +1 -1
  12. package/dist/cjs/dda-tabs.cjs.entry.js +1 -1
  13. package/dist/cjs/dda-textarea.cjs.entry.js +1 -1
  14. package/dist/cjs/dda-toggle.cjs.entry.js +2 -2
  15. package/dist/cjs/dda-tooltip.cjs.entry.js +1 -1
  16. package/dist/cjs/dda-vertical-stepper.cjs.entry.js +1 -1
  17. package/dist/cjs/dda.cjs.js +1 -1
  18. package/dist/cjs/loader.cjs.js +1 -1
  19. package/dist/collection/collection-manifest.json +1 -0
  20. package/dist/collection/components/dda-attach-file/dda-attach-file.js +24 -2
  21. package/dist/collection/components/dda-attach-file/dda-attach-file.js.map +1 -1
  22. package/dist/collection/components/dda-attach-file/dda-attach-file.stories.js +3 -0
  23. package/dist/collection/components/dda-attach-file/dda-attach-file.stories.js.map +1 -1
  24. package/dist/collection/components/dda-header/dda-header.js +8 -5
  25. package/dist/collection/components/dda-header/dda-header.js.map +1 -1
  26. package/dist/collection/components/dda-header/dda-header.stories.js +7 -0
  27. package/dist/collection/components/dda-header/dda-header.stories.js.map +1 -1
  28. package/dist/collection/components/dda-select/dda-select.js +12 -2
  29. package/dist/collection/components/dda-select/dda-select.js.map +1 -1
  30. package/dist/collection/components/dda-select/dda-select.stories.js +4 -3
  31. package/dist/collection/components/dda-select/dda-select.stories.js.map +1 -1
  32. package/dist/collection/components/dda-split-button/dda-split-button.js +442 -0
  33. package/dist/collection/components/dda-split-button/dda-split-button.js.map +1 -0
  34. package/dist/collection/components/dda-split-button/dda-split-button.stories.js +144 -0
  35. package/dist/collection/components/dda-split-button/dda-split-button.stories.js.map +1 -0
  36. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +1 -1
  37. package/dist/collection/components/dda-tabs/dda-tabs.js +1 -1
  38. package/dist/collection/components/dda-textarea/dda-textarea.js +1 -1
  39. package/dist/collection/components/dda-toggle/dda-toggle.js +2 -2
  40. package/dist/collection/components/dda-tooltip/dda-tooltip.js +1 -1
  41. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js +1 -1
  42. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js +1 -1
  43. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js +1 -1
  44. package/dist/collection/global/global.css +2988 -0
  45. package/dist/collection/global/input.css +674 -0
  46. package/dist/components/dda-attach-file.js +6 -2
  47. package/dist/components/dda-attach-file.js.map +1 -1
  48. package/dist/components/dda-header.js +9 -6
  49. package/dist/components/dda-header.js.map +1 -1
  50. package/dist/components/dda-horizontal-stepper.js +1 -1
  51. package/dist/components/dda-segmented-tabs.js +1 -1
  52. package/dist/components/dda-select.js +9 -2
  53. package/dist/components/dda-select.js.map +1 -1
  54. package/dist/components/dda-split-button.d.ts +11 -0
  55. package/dist/components/dda-split-button.js +136 -0
  56. package/dist/components/dda-split-button.js.map +1 -0
  57. package/dist/components/dda-sticky-footer.js +2 -2
  58. package/dist/components/dda-tabs.js +1 -1
  59. package/dist/components/dda-textarea.js +1 -1
  60. package/dist/components/dda-toggle.js +2 -2
  61. package/dist/components/dda-tooltip.js +1 -1
  62. package/dist/components/dda-vertical-stepper.js +1 -1
  63. package/dist/components/{p-e5df7bea.js → p-ba13ee0a.js} +2 -2
  64. package/dist/components/{p-e5df7bea.js.map → p-ba13ee0a.js.map} +1 -1
  65. package/dist/dda/dda.css +1 -1
  66. package/dist/dda/dda.esm.js +1 -1
  67. package/dist/dda/dda.esm.js.map +1 -1
  68. package/dist/dda/{p-e5783b18.entry.js → p-207203ae.entry.js} +2 -2
  69. package/dist/dda/p-3d1bd318.entry.js +2 -0
  70. package/dist/dda/p-3d1bd318.entry.js.map +1 -0
  71. package/dist/dda/{p-6907700e.entry.js → p-3fef96a8.entry.js} +2 -2
  72. package/dist/dda/{p-bdaee99c.entry.js → p-5bf0d4fe.entry.js} +2 -2
  73. package/dist/dda/{p-448d72f4.entry.js → p-5c5aeda7.entry.js} +2 -2
  74. package/dist/dda/p-5c5aeda7.entry.js.map +1 -0
  75. package/dist/dda/{p-3e36c414.entry.js → p-5d47716e.entry.js} +2 -2
  76. package/dist/dda/{p-a42f8db6.entry.js → p-60d855a6.entry.js} +2 -2
  77. package/dist/dda/{p-90c3c3b3.entry.js → p-6fd79768.entry.js} +2 -2
  78. package/{www/build/p-1cf47f82.entry.js → dist/dda/p-9636f669.entry.js} +2 -2
  79. package/dist/dda/{p-cd518bfb.entry.js → p-9c090bc6.entry.js} +2 -2
  80. package/dist/dda/p-9c090bc6.entry.js.map +1 -0
  81. package/dist/dda/{p-f60d6c1f.entry.js → p-b48e061c.entry.js} +2 -2
  82. package/dist/dda/p-dca57f55.entry.js +2 -0
  83. package/dist/dda/p-dca57f55.entry.js.map +1 -0
  84. package/dist/esm/dda-attach-file.entry.js +5 -2
  85. package/dist/esm/dda-attach-file.entry.js.map +1 -1
  86. package/dist/esm/dda-header.entry.js +8 -5
  87. package/dist/esm/dda-header.entry.js.map +1 -1
  88. package/dist/esm/dda-horizontal-stepper.entry.js +1 -1
  89. package/dist/esm/dda-segmented-tabs.entry.js +1 -1
  90. package/dist/esm/dda-select.entry.js +9 -2
  91. package/dist/esm/dda-select.entry.js.map +1 -1
  92. package/dist/esm/dda-split-button.entry.js +100 -0
  93. package/dist/esm/dda-split-button.entry.js.map +1 -0
  94. package/dist/esm/dda-sticky-footer.entry.js +1 -1
  95. package/dist/esm/dda-tabs.entry.js +1 -1
  96. package/dist/esm/dda-textarea.entry.js +1 -1
  97. package/dist/esm/dda-toggle.entry.js +2 -2
  98. package/dist/esm/dda-tooltip.entry.js +1 -1
  99. package/dist/esm/dda-vertical-stepper.entry.js +1 -1
  100. package/dist/esm/dda.js +1 -1
  101. package/dist/esm/loader.js +1 -1
  102. package/dist/types/components/dda-attach-file/dda-attach-file.d.ts +1 -0
  103. package/dist/types/components/dda-attach-file/dda-attach-file.stories.d.ts +4 -0
  104. package/dist/types/components/dda-split-button/dda-split-button.d.ts +36 -0
  105. package/dist/types/components/dda-split-button/dda-split-button.stories.d.ts +79 -0
  106. package/dist/types/components.d.ts +63 -0
  107. package/package.json +2 -2
  108. package/readme.md +11 -0
  109. package/www/build/dda.css +1 -1
  110. package/www/build/dda.esm.js +1 -1
  111. package/www/build/dda.esm.js.map +1 -1
  112. package/www/build/{p-e5783b18.entry.js → p-207203ae.entry.js} +2 -2
  113. package/www/build/p-3d1bd318.entry.js +2 -0
  114. package/www/build/p-3d1bd318.entry.js.map +1 -0
  115. package/www/build/{p-6907700e.entry.js → p-3fef96a8.entry.js} +2 -2
  116. package/www/build/{p-44246d95.css → p-46ac0422.css} +1 -1
  117. package/www/build/{p-bdaee99c.entry.js → p-5bf0d4fe.entry.js} +2 -2
  118. package/www/build/{p-448d72f4.entry.js → p-5c5aeda7.entry.js} +2 -2
  119. package/www/build/p-5c5aeda7.entry.js.map +1 -0
  120. package/www/build/{p-3e36c414.entry.js → p-5d47716e.entry.js} +2 -2
  121. package/www/build/{p-a42f8db6.entry.js → p-60d855a6.entry.js} +2 -2
  122. package/www/build/{p-90c3c3b3.entry.js → p-6fd79768.entry.js} +2 -2
  123. package/{dist/dda/p-1cf47f82.entry.js → www/build/p-9636f669.entry.js} +2 -2
  124. package/www/build/{p-cd518bfb.entry.js → p-9c090bc6.entry.js} +2 -2
  125. package/www/build/p-9c090bc6.entry.js.map +1 -0
  126. package/www/build/{p-f60d6c1f.entry.js → p-b48e061c.entry.js} +2 -2
  127. package/www/build/p-dca57f55.entry.js +2 -0
  128. package/www/build/p-dca57f55.entry.js.map +1 -0
  129. package/dist/dda/p-210d62fb.entry.js +0 -2
  130. package/dist/dda/p-210d62fb.entry.js.map +0 -1
  131. package/dist/dda/p-448d72f4.entry.js.map +0 -1
  132. package/dist/dda/p-cd518bfb.entry.js.map +0 -1
  133. package/www/build/p-210d62fb.entry.js +0 -2
  134. package/www/build/p-210d62fb.entry.js.map +0 -1
  135. package/www/build/p-448d72f4.entry.js.map +0 -1
  136. package/www/build/p-cd518bfb.entry.js.map +0 -1
  137. /package/dist/dda/{p-e5783b18.entry.js.map → p-207203ae.entry.js.map} +0 -0
  138. /package/dist/dda/{p-6907700e.entry.js.map → p-3fef96a8.entry.js.map} +0 -0
  139. /package/dist/dda/{p-bdaee99c.entry.js.map → p-5bf0d4fe.entry.js.map} +0 -0
  140. /package/dist/dda/{p-3e36c414.entry.js.map → p-5d47716e.entry.js.map} +0 -0
  141. /package/dist/dda/{p-a42f8db6.entry.js.map → p-60d855a6.entry.js.map} +0 -0
  142. /package/dist/dda/{p-90c3c3b3.entry.js.map → p-6fd79768.entry.js.map} +0 -0
  143. /package/dist/dda/{p-1cf47f82.entry.js.map → p-9636f669.entry.js.map} +0 -0
  144. /package/dist/dda/{p-f60d6c1f.entry.js.map → p-b48e061c.entry.js.map} +0 -0
  145. /package/www/build/{p-e5783b18.entry.js.map → p-207203ae.entry.js.map} +0 -0
  146. /package/www/build/{p-6907700e.entry.js.map → p-3fef96a8.entry.js.map} +0 -0
  147. /package/www/build/{p-bdaee99c.entry.js.map → p-5bf0d4fe.entry.js.map} +0 -0
  148. /package/www/build/{p-3e36c414.entry.js.map → p-5d47716e.entry.js.map} +0 -0
  149. /package/www/build/{p-a42f8db6.entry.js.map → p-60d855a6.entry.js.map} +0 -0
  150. /package/www/build/{p-90c3c3b3.entry.js.map → p-6fd79768.entry.js.map} +0 -0
  151. /package/www/build/{p-1cf47f82.entry.js.map → p-9636f669.entry.js.map} +0 -0
  152. /package/www/build/{p-f60d6c1f.entry.js.map → p-b48e061c.entry.js.map} +0 -0
@@ -0,0 +1,674 @@
1
+ .dda-input-container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 8px;
5
+ position: relative;
6
+ }
7
+
8
+ .dda-input-label {
9
+ font-size: var(--font-body);
10
+ color: var(--dda-on-surface-0);
11
+ line-height: 24px;
12
+ font-weight: var(--font-weight-regular);
13
+ }
14
+ .light-mode .dda-input-label {
15
+ color: var(--dda-neutral-0);
16
+ }
17
+ .dda-input-field-wrapper {
18
+ position: relative;
19
+ }
20
+
21
+ .dda-field-group-input {
22
+ height: 32px;
23
+ background-color: transparent;
24
+ flex: 1;
25
+ font-size: var(--font-caption);
26
+ font-weight: var(--dda-fw-400);
27
+ padding: 0px;
28
+ color: var(--dda-on-surface-0);
29
+ border: none;
30
+ outline: none;
31
+ }
32
+ .light-mode .dda-field-group-input{
33
+ color: var(--dda-neutral-0);
34
+ }
35
+ .dda-input-field-group {
36
+ width: 100%;
37
+ height: 55px;
38
+ padding: 8px 16px;
39
+ background: var(--dda-surface-100);
40
+ border: 1px solid var(--dda-surface-90);
41
+ border-radius: 8px;
42
+ font-size: var(--font-caption);
43
+ color: var(--dda-on-surface-0);
44
+ position: relative;
45
+ display: flex;
46
+ align-items: center;
47
+ gap: 10px;
48
+ }
49
+ .light-mode .dda-input-field-group{
50
+ background: var(--dda-neutral-100);
51
+ border: 1px solid var(--dda-neutral-90);
52
+ color: var(--dda-neutral-0);
53
+ }
54
+ .dda-input-field {
55
+ width: 100%;
56
+ height: 55px;
57
+ padding: 8px 16px;
58
+ background: var(--dda-surface-100);
59
+ border: 1px solid var(--dda-surface-90);
60
+ border-radius: 8px;
61
+ font-size: var(--font-body);
62
+ color: var(--dda-on-surface-0);
63
+ font-weight: var(--dda-fw-400);
64
+ }
65
+ .dda-date-picker input{
66
+ color: var(--dda-on-surface-40)
67
+ }
68
+ .dda-date-picker input[type="date"]::-webkit-calendar-picker-indicator {
69
+ color: var(--dda-on-surface-40);
70
+ }
71
+ .dda-date-picker input[type="date"]::-moz-calendar-picker-indicator {
72
+ /* filter: invert(20%) sepia(90%) saturate(300%) hue-rotate(180deg); */
73
+ }
74
+ .dda-date-picker input[type="date"].has-value {
75
+ color: var(--dda-on-surface-0);
76
+ }
77
+ .light-mode .dda-input-field{
78
+ background: var(--dda-neutral-100);
79
+ border: 1px solid var(--dda-neutral-90);
80
+ color: var(--dda-neutral-0);
81
+ }
82
+ .dda-input-size-small .dda-input-field-group,
83
+ .dda-input-size-small .dda-input-field {
84
+ height: 48px;
85
+ padding: 8px 12px;
86
+ }
87
+
88
+ .dda-input-focus-filled .dda-phone-field,
89
+ .dda-input-focus .dda-input-field-group,
90
+ .dda-input-field:focus {
91
+ /* outline: none; */
92
+ border-color: var(--dda-color-primary-40);
93
+ box-shadow: 0px 0px 0px 3px var(--dda-primary-variant-95);
94
+ }
95
+ .dda-input-field:focus-visible {
96
+ outline: 1px solid var(--dda-color-primary-40);
97
+ outline-offset: -1px;
98
+ }
99
+ .light-mode.dda-input-focus-filled .dda-phone-field,
100
+ .light-mode.dda-input-focus .dda-input-field-group,
101
+ .light-mode .dda-input-field:focus {
102
+ outline: none;
103
+ border-color: var(--dda-primary-40);
104
+ box-shadow: 0px 0px 0px 3px var(--dda-primary-95);
105
+ }
106
+
107
+ .dda-input-dropdown-btn {
108
+ min-width: 110px;
109
+ position: relative;
110
+ display: inline-block;
111
+ padding: 0;
112
+ }
113
+
114
+ .dda-dropdown-select {
115
+ width: 100%;
116
+ height: 32px;
117
+ display: flex;
118
+ justify-content: space-between;
119
+ background: transparent;
120
+ border: transparent;
121
+ font-size: var(--font-caption);
122
+ color: var(--dda-on-surface-0);
123
+ padding: 0;
124
+ align-items: center;
125
+ cursor: pointer;
126
+ gap: 6px;
127
+ }
128
+ .dda-dropdown-select:focus-visible{
129
+ outline: 1px solid var(--dda-color-primary-40);
130
+ outline-offset: 1px;
131
+ }
132
+ .light-mode .dda-dropdown-select{
133
+ color: var(--dda-neutral-0);
134
+ }
135
+
136
+ .dda-dropdown-select img {
137
+ width: 24px;
138
+ }
139
+
140
+
141
+ .dda-dropdown-container {
142
+ position: relative;
143
+ width: auto;
144
+ /* min-width: 140px; */
145
+ }
146
+ .dda-dropdown-container.bg-transparent .dda-dropdown-header{
147
+ padding: 0px;
148
+ height: auto;
149
+ background: transparent;
150
+ border: transparent;
151
+ box-shadow: none;
152
+ }
153
+ .dda-dropdown-header {
154
+ width: auto;
155
+ display: flex;
156
+ align-items: center;
157
+ gap: 15px;
158
+ }
159
+ .dda-dropdown-header .three-dots{
160
+ font-size: 25px;
161
+ color: var(--dda-neutral-variant-60);
162
+ }
163
+ .dda-dropdown-header .three-dots path{
164
+ fill: var(--dda-neutral-variant-60);
165
+ }
166
+ .dda-dropdown-header .dda-dropdown-text{
167
+ flex: 1;
168
+ display: flex;
169
+ justify-content: space-between;
170
+ gap: 15px;
171
+ }
172
+ .dda-dropdown-header .dda-dropdown-text span{
173
+ color: var(--dda-on-surface-variant-30);
174
+ display: flex;
175
+ align-items: center;
176
+ }
177
+ .light-mode .dda-dropdown-text span{
178
+ color: var(--dda-neutral-variant-30);
179
+ }
180
+ .dda-dropdown-header .dda-dropdown-text i{
181
+ font-size: 31px;
182
+ }
183
+ .dda-dropdown-header .dda-dropdown-text path{
184
+ fill: var(--dda-on-surface-variant-30);
185
+ }
186
+ .light-mode .dda-dropdown-header .dda-dropdown-text path{
187
+ fill: var(--dda-neutral-variant-30);
188
+ }
189
+ .dda-dropdown-header:focus .three-dots path{
190
+ fill: var(--dda-on-surface-variant-30);
191
+ }
192
+ .dda-input-dropdown-list {
193
+ width: 100%;
194
+ min-width: 150px;
195
+ max-height: 200px;
196
+ background-color: var(--dda-neutral-100);
197
+ border: 1px solid var(--dda-neutral-90);
198
+ border-radius: 8px;
199
+ overflow-y: auto;
200
+ position: absolute;
201
+ top: 100%;
202
+ margin-top: 1px;
203
+ inset-inline-start: 0px;
204
+ z-index: 9999;
205
+ box-shadow: 0px 8px 10px -6px #1018281A;
206
+ }
207
+
208
+ .dda-input-dropdown-list::-webkit-scrollbar-track {
209
+ border-radius: 4px;
210
+ }
211
+
212
+ .dda-input-dropdown-list::-webkit-scrollbar {
213
+ width: 4px;
214
+ }
215
+
216
+ .dda-input-dropdown-list::-webkit-scrollbar-thumb {
217
+ border-radius: 4px;
218
+ background-color: var(--dda-neutral-variant-30);
219
+ }
220
+
221
+ .dda-input-dropdown-item {
222
+ display: flex;
223
+ align-items: center;
224
+ gap: 7px;
225
+ width: 100%;
226
+ font-size: var(--font-caption);
227
+ background: transparent;
228
+ border: transparent;
229
+ padding: 10px;
230
+ cursor: pointer;
231
+ }
232
+
233
+ .dda-input-dropdown-item:focus-visible,
234
+ .dda-input-dropdown-item:hover,
235
+ .dda-input-dropdown-item.selected {
236
+ background-color: var(--dda-neutral-variant-95);
237
+ outline: 0;
238
+ }
239
+ .dda-input-dropdown-list .country-select img{
240
+ width: 20px;
241
+ }
242
+
243
+ .dda-helper-text {
244
+ display: flex;
245
+ align-items: center;
246
+ justify-content: space-between;
247
+ font-size: var(--font-caption);
248
+ color: var(--dda-on-surface-variant-30);
249
+ }
250
+ .light-mode .dda-helper-text{
251
+ color: var(--dda-neutral-30);
252
+ }
253
+ .dda-error-message {
254
+ display: flex;
255
+ justify-content: space-between;
256
+ font-size: var(--font-caption);
257
+ color: var(--dda-color-error-40);
258
+ }
259
+
260
+ .dda-helper-text i,
261
+ .dda-helper-text svg,
262
+ .dda-error-message i,
263
+ .dda-error-message svg {
264
+ font-size: 21px;
265
+ }
266
+
267
+ .dda-success-text {
268
+ display: flex;
269
+ justify-content: space-between;
270
+ font-size: var(--font-caption);
271
+ color: var(--dda-color-success-40);
272
+ }
273
+
274
+ .dda-validation-error .dda-input-field-group,
275
+ .dda-validation-error .dda-input-field {
276
+ color: var(--dda-color-error-40);
277
+ border-color: var(--dda-color-error-40);
278
+ box-shadow: none;
279
+ }
280
+
281
+ .light-mode.dda-validation-error .dda-input-field-group,
282
+ .light-mode.dda-validation-error .dda-input-field {
283
+ color: var(--dda-error-40);
284
+ border-color: var(--dda-error-40);
285
+ box-shadow: none;
286
+ }
287
+
288
+ .dda-validation-error .icon-close,
289
+ .dda-validation-error .dda-error-message,
290
+ .dda-validation-error .dda-field-group-input,
291
+ .dda-validation-error .dda-file-input span {
292
+ color: var(--dda-color-error-40) !important;
293
+ }
294
+
295
+ .light-mode.dda-validation-error .icon-close,
296
+ .light-mode.dda-validation-error .dda-error-message,
297
+ .light-mode.dda-validation-error .dda-field-group-input,
298
+ .light-mode.dda-validation-error .dda-file-input span {
299
+ color: var(--dda-error-40) !important;
300
+ }
301
+
302
+ .dda-validation-error .dda-input-field::-ms-input-placeholder,
303
+ .dda-validation-error .dda-field-group-input::-ms-input-placeholder {
304
+ color: var(--dda-color-error-40);
305
+ }
306
+
307
+ .light-mode.dda-validation-error .dda-input-field::-ms-input-placeholder,
308
+ .light-mode.dda-validation-error .dda-field-group-input::-ms-input-placeholder {
309
+ color: var(--dda-error-40);
310
+ }
311
+
312
+ .dda-validation-error .dda-input-field::placeholder,
313
+ .dda-validation-error .dda-field-group-input::placeholder {
314
+ color: var(--dda-color-error-40);
315
+ }
316
+
317
+ .light-mode.dda-validation-error .dda-input-field::placeholder,
318
+ .light-mode.dda-validation-error .dda-field-group-input::placeholder {
319
+ color: var(--dda-error-40);
320
+ }
321
+
322
+ .dda-input-disabled .dda-input-label,
323
+ .dda-input-disabled .dda-helper-text,
324
+ .dda-input-disabled .dda-error-message,
325
+ .dda-input-disabled i,
326
+ .dda-input-disabled .dda-dropdown-select,
327
+ .dda-input-disabled .dda-file-input span,
328
+ .dda-input-disabled .dda-file-choose {
329
+ color: var(--dda-neutral-60) !important;
330
+ }
331
+
332
+ .dda-input-disabled .dda-input-field-group,
333
+ .dda-input-disabled .dda-input-field {
334
+ background: var(--dda-neutral-92);
335
+ border-color: var(--dda-neutral-90);
336
+ color: var(--dda-neutral-60) !important;
337
+ box-shadow: none;
338
+ pointer-events: none;
339
+ outline: none;
340
+ }
341
+ .dda-input-disabled i{
342
+ color: var(--dda-neutral-variant-60);
343
+ }
344
+ .dda-input-disabled svg path{
345
+ fill: var(--dda-neutral-variant-60);
346
+ }
347
+ .dda-input-disabled .dda-input-field::-ms-input-placeholder {
348
+ color: var(--dda-neutral-60);
349
+ }
350
+
351
+ .dda-input-disabled .dda-input-field::placeholder {
352
+ color: var(--dda-neutral-60);
353
+ }
354
+
355
+ .dda-input-disabled .dda-btn {
356
+ background-color: var(--dda-neutral-70) !important;
357
+ border-color: var(--dda-neutral-70) !important;
358
+ }
359
+
360
+ .dda-input-disabled .dda-dropdown-select img,
361
+ .dda-input-disabled .dda-input-field-wrapper img {
362
+ filter: grayscale(1);
363
+ }
364
+
365
+ /*Specifications*/
366
+
367
+ /*Number Field*/
368
+ .dda-number-field .dda-field-group-input {
369
+ padding-inline-end: 10px;
370
+ border-inline-end: solid 1px var(--dda-neutral-90);
371
+ }
372
+
373
+ .dda-number-field .dda-field-group-input:focus,
374
+ .dda-phone-field .dda-field-group-input:focus {
375
+ border-inline-start: solid 1px var(--dda-color-primary-40);
376
+ }
377
+ .dda-number-field .dda-field-group-input:focus-visible,
378
+ .dda-phone-field .dda-field-group-input:focus-visible {
379
+ outline: 1px solid var(--dda-surface-100);
380
+ outline-offset: -1px;
381
+ }
382
+ .dda-number-field .dda-input-dropdown-btn {
383
+ min-width: 80px;
384
+ }
385
+
386
+ .dda-number-field .dda-input-dropdown-list {
387
+ top: 44px;
388
+ }
389
+
390
+ .dda-input-size-small .dda-number-field .dda-input-dropdown-list {
391
+ top: 41px;
392
+ }
393
+
394
+ /*text ares*/
395
+ .dda-input-textarea {
396
+ height: auto;
397
+ min-height: 120px;
398
+ resize: vertical;
399
+ }
400
+
401
+ /*Search Field*/
402
+ .dda-search-area {
403
+ position: relative;
404
+ }
405
+
406
+ .dda-search-area .icon-left {
407
+ position: absolute;
408
+ top: 16px;
409
+ inset-inline-start: 15px;
410
+ font-size: 24px;
411
+ color: var(--dda-on-surface-variant-30);
412
+ }
413
+
414
+ .light-mode .dda-search-area .icon-left{
415
+ color: var(--dda-neutral-variant-30);
416
+ }
417
+
418
+ .dda-input-size-small .dda-search-area .icon-left {
419
+ top: 14px;
420
+ }
421
+
422
+ .dda-search-area .dda-search-btngroup {
423
+ height: 40px;
424
+ position: absolute;
425
+ top: 7px;
426
+ inset-inline-end: 7px;
427
+ display: inline-flex;
428
+ align-items: center;
429
+ gap: 5px;
430
+ }
431
+
432
+ .dda-input-size-small .dda-search-btngroup {
433
+ top: 4px;
434
+ }
435
+
436
+ .dda-search-area .dda-search-close-icon {
437
+ display: flex;
438
+ color: var(--dda-on-surface-variant-30);
439
+ font-size: 20px;
440
+ margin: 0px;
441
+ padding: 0px;
442
+ background: none;
443
+ border: 0;
444
+ cursor: pointer;
445
+ }
446
+
447
+ .light-mode .dda-search-area .dda-search-close-icon{
448
+ color: var(--dda-neutral-variant-30);
449
+ }
450
+
451
+ .dda-search-field {
452
+ padding: 8px 26px 8px 40px;
453
+ }
454
+
455
+ .dda-search-action .dda-search-field {
456
+ padding-top: 8px;
457
+ padding-bottom: 8px;
458
+ padding-inline-start: 40px;
459
+ }
460
+ .dda-search-action .dda-search-field.has-search-button{
461
+ padding-inline-end: 110px;
462
+ }
463
+ .dda-search-sm .icon-left {
464
+ top: 14px;
465
+ }
466
+
467
+ .dda-search-sm .dda-search-btngroup {
468
+ top: 4px;
469
+ }
470
+
471
+ /*Phone Field*/
472
+ .dda-phone-field-group {
473
+ display: flex;
474
+ justify-content: space-between;
475
+ align-items: center;
476
+ }
477
+
478
+ .dda-phone-field-group.dda-phone-field-small {
479
+ height: 48px;
480
+ }
481
+
482
+ .dda-phone-field-group.focused,
483
+ .dda-phone-field-group.filled {
484
+ outline: none;
485
+ border-color: var(--dda-color-primary-40);
486
+ box-shadow: 0px 0px 0px 3px var(--dda-primary-variant-95);
487
+ }
488
+
489
+ .dda-phone-field-group.error {
490
+ border-color: var(--dda-color-error-40);
491
+ box-shadow: none;
492
+ }
493
+
494
+ .phone-field-country-code {
495
+ border: none;
496
+ background: none;
497
+ margin-inline-end: 0.5rem;
498
+ font-size: 1rem;
499
+ color: var(--dda-on-surface-0);
500
+ }
501
+
502
+ .phone-field-country-code:focus-within {
503
+ outline: 0;
504
+ }
505
+
506
+ .dda-phone-field .dda-input-dropdown-list {
507
+ top: 44px;
508
+ }
509
+
510
+ .dda-input-size-small .dda-phone-field .dda-input-dropdown-list {
511
+ top: 41px;
512
+ }
513
+
514
+ /*Credit Card Field*/
515
+ .dda-credit-card-field .dda-creditcard-icon {
516
+ width: 40px;
517
+ position: absolute;
518
+ top: 14px;
519
+ inset-inline-start: 15px;
520
+ }
521
+
522
+ .dda-input-size-small .dda-creditcard-icon {
523
+ top: 11px;
524
+ }
525
+
526
+ .dda-credit-card-field .dda-input-field {
527
+ padding: 8px 16px 8px 65px;
528
+ }
529
+ [dir="rtl"] .dda-credit-card-field .dda-input-field {
530
+ padding: 8px 65px 8px 16px;
531
+ }
532
+ /*Select Field*/
533
+ .dda-select-header {
534
+ cursor: pointer;
535
+ display: flex;
536
+ justify-content: space-between;
537
+ align-items: center;
538
+ gap: 10px;
539
+ }
540
+
541
+ .dda-select-header i {
542
+ font-size: 28px;
543
+ color: var(--dda-on-surface-variant-30);
544
+ }
545
+ .dda-select-header .dda-select-button-label:empty {
546
+ flex-grow: 1;
547
+ }
548
+ /*Rich Text Editor*/
549
+ .dda-input-container.dda-richtext-editor {
550
+ gap: 0px;
551
+ }
552
+
553
+ .dda-richtext-editor .dda-input-label {
554
+ margin-bottom: 8px;
555
+ }
556
+
557
+ .dda-richtext-editor .dda-helper-text,
558
+ .dda-richtext-editor .dda-error-message {
559
+ margin-top: 8px;
560
+ }
561
+
562
+ .dda-richtext-editor .ql-toolbar.ql-snow {
563
+ border: 1px solid var(--dda-neutral-90) !important;
564
+ border-radius: 8px 8px 0 0;
565
+ }
566
+
567
+ .dda-richeditor-field {
568
+ border: 1px solid var(--dda-neutral-90) !important;
569
+ border-radius: 0 0 8px 8px;
570
+ }
571
+
572
+ .dda-richeditor-field .ql-editor {
573
+ height: 100px;
574
+ font-size: var(--font-caption);
575
+ }
576
+
577
+ /*Attach Files*/
578
+
579
+ .dda-input-field-group.dda-attach-file {
580
+ padding-inline-end: 6px;
581
+ }
582
+
583
+ .dda-file-input {
584
+ width: 100%;
585
+ display: flex;
586
+ justify-content: space-between;
587
+ align-items: center;
588
+ }
589
+
590
+ .dda-file-input span {
591
+ font-size: var(--font-caption);
592
+ color: var(--dda-on-surface-variant-30);
593
+ }
594
+ .light-mode .dda-file-input span{
595
+ color: var(--dda-neutral-variant-30);
596
+ }
597
+ .dda-file-choose {
598
+ height: 40px;
599
+ background-color: var(--dda-neutral-100);
600
+ border: solid 1px var(--dda-neutral-90);
601
+ color: var(--dda-color-primary-40);
602
+ font-weight: var(--dda-fw-500);
603
+ padding: 8px 16px;
604
+ border-radius: 8px;
605
+ cursor: pointer;
606
+ }
607
+ .dda-file-choose:focus{
608
+ outline: solid 1px var(--dda-color-primary-40);
609
+ outline-offset: -1px;
610
+ }
611
+
612
+ .light-mode .dda-file-choose {
613
+ color: var(--dda-primary-40);
614
+ }
615
+
616
+ .dda-input-disabled .dda-file-choose {
617
+ background-color: var(--dda-neutral-95);
618
+ }
619
+
620
+ .dda-file-choose input {
621
+ display: none;
622
+ }
623
+
624
+ .dda-file-details {
625
+ width: 100%;
626
+ display: flex;
627
+ align-items: center;
628
+ justify-content: space-between;
629
+ padding-inline-end: 10px;
630
+ }
631
+
632
+ .dda-file-icon {
633
+ width: 34px;
634
+ height: 34px;
635
+ }
636
+
637
+ .dda-items {
638
+ display: flex;
639
+ align-items: center;
640
+ gap: 8px;
641
+ }
642
+ .dda-file-details .remove-file{
643
+ margin: 0;
644
+ padding: 0;
645
+ background: transparent;
646
+ border: transparent;
647
+ }
648
+ .dda-file-details .remove-file svg{
649
+ font-size: var(--font-caption);
650
+ }
651
+ .dda-file-name {
652
+ font-size: var(--font-caption);
653
+ }
654
+
655
+ .dda-remove-file {
656
+ font-size: 20px;
657
+ background: transparent;
658
+ border: transparent;
659
+ color: var(--dda-on-surface-variant-30);
660
+ cursor: pointer;
661
+ padding: 0px;
662
+ }
663
+
664
+ input[type="date"]::-webkit-input-placeholder {
665
+ color: transparent;
666
+ }
667
+
668
+ input[type="date"]::-moz-placeholder {
669
+ color: transparent;
670
+ }
671
+
672
+ input[type="date"]::placeholder {
673
+ color: transparent;
674
+ }
@@ -49,6 +49,7 @@ const DdaAttachFile$1 = /*@__PURE__*/ proxyCustomElement(class DdaAttachFile ext
49
49
  }
50
50
  handleFileInput(event) {
51
51
  var _a;
52
+ console.log(this.fileInputRef.value);
52
53
  const files = (_a = event.target) === null || _a === void 0 ? void 0 : _a.files;
53
54
  if (files && files.length > 0) {
54
55
  const selectedFile = files[0];
@@ -78,7 +79,9 @@ const DdaAttachFile$1 = /*@__PURE__*/ proxyCustomElement(class DdaAttachFile ext
78
79
  removeFile() {
79
80
  this.file = null;
80
81
  this.isFileUploaded = false;
81
- this.fileInputRef.value = '';
82
+ if (this.fileInputRef) {
83
+ this.fileInputRef.value = null;
84
+ }
82
85
  this.internalErrorMessage = '';
83
86
  this.validation_type = 'normal';
84
87
  this.fileChanged.emit(null);
@@ -98,7 +101,7 @@ const DdaAttachFile$1 = /*@__PURE__*/ proxyCustomElement(class DdaAttachFile ext
98
101
  this.component_mode,
99
102
  ].filter(Boolean).join(' ');
100
103
  const shouldShowError = this.validation_type === 'error' && (this.internalErrorMessage || this.error_message);
101
- return (h(Host, { key: '758e2884e019a1bb891616769c55674342bfab8f' }, h("div", { key: '66cf79b88609deedf5e628c85d73b495c552e436', class: inputClass }, this.label && (h("span", { key: 'f4afd4b20b6b5dfaaef91156917d18fc016f90df', class: "dda-input-label", id: `${this.input_id}-label` }, this.label)), h("div", { key: 'f31f4732a006f4ca2c690582bab7283581b443ae', class: "dda-input-field-group dda-attach-file" }, this.file ? (h("div", { class: "dda-file-details" }, h("div", { class: "dda-items" }, h("img", { src: this.getFileIcon(this.file.name), alt: "File Icon", class: "dda-file-icon" }), h("span", { class: "dda-file-name" }, this.file.name)), h("button", { type: "button", class: "remove-file", name: this.button_name, id: this.button_id, role: "button", tabIndex: 0, "aria-label": this.button_aria_label || 'Remove file', onClick: () => this.removeFile(), disabled: this.disabled }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close")))) : (h("div", { class: "dda-file-input" }, h("span", null, this.place_holder || 'No File Selected'), h("button", { type: "button", class: "dda-file-choose", name: this.button_name, id: this.button_id, tabIndex: 0, "aria-labelledby": `${this.button_id}-label`, onClick: () => { var _a; return (_a = this.fileInputRef) === null || _a === void 0 ? void 0 : _a.click(); }, disabled: this.disabled }, this.upload_button_text || 'Choose File'), h("span", { id: `${this.button_id}-label`, class: "visually-hidden" }, this.upload_button_text || 'Choose File'), h("label", { htmlFor: this.input_id, class: "visually-hidden" }, this.label), h("input", { id: this.input_id, name: this.input_name, type: "file", accept: this.accept, disabled: this.disabled, hidden: true, ref: (el) => (this.fileInputRef = el), onInput: (event) => this.handleFileInput(event) })))), shouldShowError ? (h("span", { class: "dda-error-message", id: this.validation_id, role: "alert", "aria-live": "assertive" }, h("span", { class: "dda-d-flex dda-align-items-start dda-gap-2" }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "info"), h("span", null, this.internalErrorMessage || this.error_message)))) : this.isFileUploaded && this.success_text ? (h("span", { class: "dda-success-text", id: this.validation_id, role: "status", "aria-live": "polite" }, h("span", { class: "dda-d-flex dda-align-items-start dda-gap-2" }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "check"), h("span", null, this.success_text)))) : this.helper_text ? (h("span", { class: "dda-helper-text", id: this.validation_id }, h("span", { class: "dda-d-flex dda-align-items-start dda-gap-2" }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "info"), h("span", null, this.helper_text)))) : null)));
104
+ return (h(Host, { key: 'a3af07f7c3cf84bbddd821adeb10c409dd00d049' }, h("div", { key: '08e612545cd7728e2c022b36e6b30334d5d8e07c', class: inputClass }, this.label && (h("span", { key: '95739b39f9672aac5bfdda980cafa85771c51d5a', class: "dda-input-label", id: `${this.input_id}-label` }, this.label)), h("div", { key: '167789dcacf1bdccb85148168f63d81785e780c9', class: "dda-input-field-group dda-attach-file" }, this.file ? (h("div", { class: "dda-file-details" }, h("div", { class: "dda-items" }, h("img", { src: this.getFileIcon(this.file.name), alt: "File Icon", class: "dda-file-icon" }), h("span", { class: "dda-file-name" }, this.file.name)), h("button", { type: "button", class: "remove-file", name: this.button_name, id: this.delete_button_id, role: "button", tabIndex: 0, "aria-label": this.button_aria_label || 'Remove file', onClick: () => this.removeFile(), disabled: this.disabled }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close")))) : (h("div", { class: "dda-file-input" }, h("span", null, this.place_holder || 'No File Selected'), h("button", { type: "button", class: "dda-file-choose", name: this.button_name, id: this.button_id, tabIndex: 0, "aria-labelledby": `${this.button_id}-label`, onClick: () => { var _a; return (_a = this.fileInputRef) === null || _a === void 0 ? void 0 : _a.click(); }, disabled: this.disabled }, this.upload_button_text || 'Choose File'), h("span", { id: `${this.button_id}-label`, class: "visually-hidden" }, this.upload_button_text || 'Choose File'), h("label", { htmlFor: this.input_id, class: "visually-hidden" }, this.label), h("input", { id: this.input_id, name: this.input_name, type: "file", accept: this.accept, disabled: this.disabled, hidden: true, ref: (el) => (this.fileInputRef = el), onInput: (event) => this.handleFileInput(event) })))), shouldShowError ? (h("span", { class: "dda-error-message", id: this.validation_id, role: "alert", "aria-live": "assertive" }, h("span", { class: "dda-d-flex dda-align-items-start dda-gap-2" }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "info"), h("span", null, this.internalErrorMessage || this.error_message)))) : this.isFileUploaded && this.success_text ? (h("span", { class: "dda-success-text", id: this.validation_id, role: "status", "aria-live": "polite" }, h("span", { class: "dda-d-flex dda-align-items-start dda-gap-2" }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "check"), h("span", null, this.success_text)))) : this.helper_text ? (h("span", { class: "dda-helper-text", id: this.validation_id }, h("span", { class: "dda-d-flex dda-align-items-start dda-gap-2" }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "info"), h("span", null, this.helper_text)))) : null)));
102
105
  }
103
106
  }, [0, "dda-attach-file", {
104
107
  "label": [1],
@@ -118,6 +121,7 @@ const DdaAttachFile$1 = /*@__PURE__*/ proxyCustomElement(class DdaAttachFile ext
118
121
  "input_id": [1],
119
122
  "input_name": [1],
120
123
  "button_id": [1],
124
+ "delete_button_id": [1],
121
125
  "button_name": [1],
122
126
  "accept": [1],
123
127
  "disabled": [4],