cax-design-system 1.2.13 → 2.0.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 (76) hide show
  1. package/README.md +1 -2
  2. package/badge/badge.d.ts +5 -7
  3. package/badge/badge.directive.d.ts +5 -5
  4. package/calendar/calendar.d.ts +1 -0
  5. package/checkbox/checkbox.d.ts +5 -1
  6. package/chip/chip.d.ts +4 -3
  7. package/colorpicker/colorpicker.d.ts +1 -8
  8. package/colorpicker/colorpicker.module.d.ts +9 -0
  9. package/colorpicker/public_api.d.ts +1 -0
  10. package/esm2022/avatar/avatar.mjs +3 -3
  11. package/esm2022/badge/badge.directive.mjs +15 -33
  12. package/esm2022/badge/badge.mjs +5 -6
  13. package/esm2022/calendar/calendar.mjs +22 -12
  14. package/esm2022/checkbox/checkbox.mjs +20 -5
  15. package/esm2022/chip/chip.mjs +11 -7
  16. package/esm2022/colorpicker/colorpicker.mjs +6 -120
  17. package/esm2022/colorpicker/colorpicker.module.mjs +19 -0
  18. package/esm2022/colorpicker/public_api.mjs +2 -1
  19. package/esm2022/confirmdialog/confirmdialog.mjs +2 -2
  20. package/esm2022/navigation/navigation.mjs +5 -14
  21. package/esm2022/radiobutton/radiobutton.mjs +10 -3
  22. package/esm2022/table/components/table-checkbox/table-checkbox.mjs +5 -4
  23. package/esm2022/table/components/table-header-checkbox/table-header-checkbox.mjs +3 -3
  24. package/esm2022/table/directives/cell-highlight.directive.mjs +42 -0
  25. package/esm2022/table/directives/dynamic-column-width.directive.mjs +34 -0
  26. package/esm2022/table/public_api.mjs +3 -1
  27. package/esm2022/table/table.mjs +20 -4
  28. package/esm2022/table/table.module.mjs +15 -5
  29. package/esm2022/tag/tag.mjs +3 -3
  30. package/fesm2022/cax-design-system-avatar.mjs +2 -2
  31. package/fesm2022/cax-design-system-avatar.mjs.map +1 -1
  32. package/fesm2022/cax-design-system-badge.mjs +18 -37
  33. package/fesm2022/cax-design-system-badge.mjs.map +1 -1
  34. package/fesm2022/cax-design-system-calendar.mjs +21 -11
  35. package/fesm2022/cax-design-system-calendar.mjs.map +1 -1
  36. package/fesm2022/cax-design-system-checkbox.mjs +19 -4
  37. package/fesm2022/cax-design-system-checkbox.mjs.map +1 -1
  38. package/fesm2022/cax-design-system-chip.mjs +10 -6
  39. package/fesm2022/cax-design-system-chip.mjs.map +1 -1
  40. package/fesm2022/cax-design-system-colorpicker.mjs +5 -104
  41. package/fesm2022/cax-design-system-colorpicker.mjs.map +1 -1
  42. package/fesm2022/cax-design-system-confirmdialog.mjs +1 -1
  43. package/fesm2022/cax-design-system-confirmdialog.mjs.map +1 -1
  44. package/fesm2022/cax-design-system-navigation.mjs +4 -13
  45. package/fesm2022/cax-design-system-navigation.mjs.map +1 -1
  46. package/fesm2022/cax-design-system-radiobutton.mjs +9 -2
  47. package/fesm2022/cax-design-system-radiobutton.mjs.map +1 -1
  48. package/fesm2022/cax-design-system-table.mjs +110 -13
  49. package/fesm2022/cax-design-system-table.mjs.map +1 -1
  50. package/fesm2022/cax-design-system-tag.mjs +2 -2
  51. package/fesm2022/cax-design-system-tag.mjs.map +1 -1
  52. package/navigation/navigation.d.ts +2 -6
  53. package/package.json +79 -79
  54. package/radiobutton/radiobutton.d.ts +6 -1
  55. package/resources/cax.min.scss +1 -1
  56. package/resources/cax.scss +9602 -6
  57. package/resources/components/avatar/avatar.scss +2 -1
  58. package/resources/components/calendar/calendar.scss +9 -4
  59. package/resources/components/chip/chip.scss +0 -57
  60. package/resources/components/colorpicker/colorpicker-images.css +2 -2
  61. package/resources/components/colorpicker/{colorpicker.css → colorpicker.scss} +19 -20
  62. package/resources/components/navigation/navigation.scss +2 -26
  63. package/resources/components/radiobutton/radiobutton.scss +0 -4
  64. package/resources/components/table/table.scss +92 -0
  65. package/resources/components/tag/tag.scss +9 -3
  66. package/resources/styles/colors.scss +397 -0
  67. package/resources/styles/shadow-blur.scss +22 -0
  68. package/resources/styles/space-radius-border.scss +49 -0
  69. package/resources/styles/typography.scss +135 -0
  70. package/table/components/table-checkbox/table-checkbox.d.ts +1 -0
  71. package/table/directives/cell-highlight.directive.d.ts +14 -0
  72. package/table/directives/dynamic-column-width.directive.d.ts +12 -0
  73. package/table/public_api.d.ts +2 -0
  74. package/table/table.d.ts +10 -1
  75. package/table/table.module.d.ts +5 -3
  76. package/resources/themes/cax-theme.scss +0 -9332
@@ -6,7 +6,8 @@
6
6
  width: 36px;
7
7
  height: 36px;
8
8
  font-size: 14px;
9
- font-weight: 500;
9
+ line-height: 20px;
10
+ font-weight: 700;
10
11
  }
11
12
 
12
13
  .cax-avatar.cax-avatar-image {
@@ -7,7 +7,6 @@
7
7
 
8
8
  .cax-calendar .cax-inputtext {
9
9
  flex: 1 1 auto;
10
- width: 1%;
11
10
  text-overflow: ellipsis;
12
11
  }
13
12
 
@@ -21,6 +20,10 @@
21
20
  border-bottom-left-radius: 0;
22
21
  }
23
22
 
23
+ .cax-datepicker-calendar-container {
24
+ padding: 4px;
25
+ }
26
+
24
27
  /* Fluid */
25
28
  .cax-fluid .cax-calendar {
26
29
  display: flex;
@@ -36,7 +39,7 @@
36
39
  }
37
40
 
38
41
  .cax-datepicker {
39
- width: auto;
42
+ width: 372px;
40
43
  position: absolute;
41
44
  top: 0;
42
45
  left: 0;
@@ -102,6 +105,7 @@
102
105
  /* Month Picker */
103
106
  .cax-monthpicker-month {
104
107
  width: 33.3%;
108
+ height: 56px;
105
109
  display: inline-flex;
106
110
  align-items: center;
107
111
  justify-content: center;
@@ -113,7 +117,7 @@
113
117
  /* Button Bar */
114
118
  .cax-datepicker-buttonbar {
115
119
  display: flex;
116
- justify-content: space-between;
120
+ justify-content: center;
117
121
  align-items: center;
118
122
  }
119
123
 
@@ -151,7 +155,8 @@
151
155
 
152
156
  /* Year Picker */
153
157
  .cax-yearpicker-year {
154
- width: 50%;
158
+ width: 33.3%;
159
+ height: 56px;
155
160
  display: inline-flex;
156
161
  align-items: center;
157
162
  justify-content: center;
@@ -2,62 +2,5 @@
2
2
  .cax-chip {
3
3
  display: inline-flex;
4
4
  align-items: center;
5
- padding: 6px 8px;
6
- height: 30px !important;
7
5
  }
8
-
9
- .cax-chip-text {
10
- line-height: 1.5;
11
- font-weight: 600;
12
- }
13
-
14
- .cax-chip-icon {
15
- line-height: 1.5;
16
- font-weight: 600 !important;
17
- }
18
-
19
- .cax-chip-remove-icon {
20
- line-height: 1.5;
21
- font-weight: 600 !important;
22
-
23
- }
24
-
25
- .cax-chip-remove-icon {
26
- cursor: pointer;
27
- }
28
-
29
- .cax-chip img {
30
- border-radius: 50%;
31
- }
32
-
33
-
34
- .cax-chip-success {
35
- background-color: var(--green-200);
36
- color: var(--green-base) ;
37
-
38
- transition: background-color 0.3s ease;
39
- }
40
- .cax-chip-success:hover {
41
- background-color: var(--green-300);
42
- cursor: pointer;
43
- }
44
- .cax-chip-warning {
45
- background-color: var(--orange-200);
46
- color: var(--orange-base);
47
- transition: background-color 0.3s ease;
48
- }
49
- .cax-chip-warning:hover {
50
- background-color: var(--orange-300);
51
- cursor: pointer;
52
- }
53
-
54
- .cax-chip-danger {
55
- background-color: #FFEBEB;
56
- color: var(--red-base);
57
- transition: background-color 0.3s ease;
58
- }
59
- .cax-chip-danger:hover {
60
- background-color: var(--red-200);
61
- cursor: pointer;
62
- }
63
6
  }
@@ -1,7 +1,7 @@
1
- .p-colorpicker-panel .p-colorpicker-color {
1
+ .cax-colorpicker-panel .cax-colorpicker-color {
2
2
  background: transparent url("./images/color.png") no-repeat left top;
3
3
  }
4
4
 
5
- .p-colorpicker-panel .p-colorpicker-hue {
5
+ .cax-colorpicker-panel .cax-colorpicker-hue {
6
6
  background: transparent url("./images/hue.png") no-repeat left top;
7
7
  }
@@ -1,50 +1,50 @@
1
1
  @layer cax {
2
- .p-colorpicker {
2
+ .cax-colorpicker {
3
3
  display: inline-block;
4
4
  }
5
5
 
6
- .p-colorpicker-dragging {
6
+ .cax-colorpicker-dragging {
7
7
  cursor: pointer;
8
8
  }
9
9
 
10
- .p-colorpicker-overlay {
10
+ .cax-colorpicker-overlay {
11
11
  position: relative;
12
12
  }
13
13
 
14
- .p-colorpicker-panel {
14
+ .cax-colorpicker-panel {
15
15
  position: relative;
16
- width: 193px;
17
- height: 166px;
16
+ min-width: 198px;
17
+ min-height: 174px;
18
+ border-radius: var(--radius-100);
18
19
  }
19
20
 
20
- .p-colorpicker-overlay-panel {
21
+ .cax-colorpicker-overlay-panel {
21
22
  position: absolute;
22
23
  top: 0;
23
24
  left: 0;
24
25
  }
25
26
 
26
- .p-colorpicker-preview {
27
+ .cax-colorpicker-preview {
27
28
  cursor: pointer;
28
29
  }
29
30
 
30
- .p-colorpicker-panel .p-colorpicker-content {
31
+ .cax-colorpicker-panel .cax-colorpicker-content {
31
32
  position: relative;
33
+ margin: var(--space-100);
32
34
  }
33
35
 
34
- .p-colorpicker-panel .p-colorpicker-color-selector {
36
+ .cax-colorpicker-panel .cax-colorpicker-color-selector {
35
37
  width: 150px;
36
38
  height: 150px;
37
- top: 8px;
38
- left: 8px;
39
39
  position: absolute;
40
40
  }
41
41
 
42
- .p-colorpicker-panel .p-colorpicker-color {
42
+ .cax-colorpicker-panel .cax-colorpicker-color {
43
43
  width: 150px;
44
44
  height: 150px;
45
45
  }
46
46
 
47
- .p-colorpicker-panel .p-colorpicker-color-handle {
47
+ .cax-colorpicker-panel .cax-colorpicker-color-handle {
48
48
  position: absolute;
49
49
  top: 0px;
50
50
  left: 150px;
@@ -58,20 +58,19 @@
58
58
  opacity: 0.85;
59
59
  }
60
60
 
61
- .p-colorpicker-panel .p-colorpicker-hue {
62
- width: 17px;
61
+ .cax-colorpicker-panel .cax-colorpicker-hue {
62
+ width: 16px;
63
63
  height: 150px;
64
- top: 8px;
65
- left: 167px;
64
+ left: 165px;
66
65
  position: absolute;
67
66
  opacity: 0.85;
68
67
  }
69
68
 
70
- .p-colorpicker-panel .p-colorpicker-hue-handle {
69
+ .cax-colorpicker-panel .cax-colorpicker-hue-handle {
71
70
  position: absolute;
72
71
  top: 150px;
73
72
  left: 0px;
74
- width: 21px;
73
+ width: 20px;
75
74
  margin-left: -2px;
76
75
  margin-top: -5px;
77
76
  height: 10px;
@@ -12,8 +12,8 @@
12
12
  }
13
13
  .cax-nav.cax-nav-expand {
14
14
  width: 264px;
15
- .cax-nav-header-container {
16
- margin-right: 10px;
15
+ .cax-nav-bottom-container {
16
+ width: 248px;
17
17
  }
18
18
  }
19
19
  .cax-nav-header-container {
@@ -31,30 +31,6 @@
31
31
  font-size: 12px;
32
32
  }
33
33
  }
34
- .cax-nav-toggle {
35
- width: 36px;
36
- height: 36px;
37
- border-radius: 50%;
38
- display: flex;
39
- align-items: center;
40
- justify-content: center;
41
- font-size: 20px;
42
- position: fixed;
43
- cursor: pointer;
44
- transition:
45
- transform 0.3s ease-in-out,
46
- left 0.3s ease-in-out;
47
- }
48
-
49
- .cax-nav .cax-nav-toggle {
50
- left: 68px;
51
- top: 28px;
52
- }
53
-
54
- .cax-nav.cax-nav-expand .cax-nav-toggle {
55
- left: 244px;
56
- transform: rotate(180deg);
57
- }
58
34
 
59
35
  .cax-nav .cax-divider.cax-divider-vertical {
60
36
  margin: 0 8px;
@@ -31,8 +31,4 @@
31
31
  vertical-align: bottom;
32
32
  align-items: center;
33
33
  }
34
-
35
- .cax-radiobutton-label {
36
- line-height: 1;
37
- }
38
34
  }
@@ -261,3 +261,95 @@
261
261
  left: 0;
262
262
  }
263
263
  }
264
+
265
+ .cax-datatable .cax-editable-column .cax-inputtext {
266
+ width: 100%;
267
+ box-shadow: none;
268
+ border: 0;
269
+ padding: 0;
270
+ line-height: normal;
271
+ }
272
+ .cax-datatable.cax-datatable-font-sm .cax-datatable-tbody > tr > td {
273
+ font-size: 12px;
274
+ .cax-inputtext {
275
+ font-size: 12px;
276
+ }
277
+ }
278
+ .cax-datatable.cax-datatable-font-md .cax-datatable-tbody > tr > td {
279
+ font-size: 14px;
280
+ .cax-inputtext {
281
+ font-size: 14px;
282
+ }
283
+ }
284
+ .cax-datatable.cax-datatable-font-lg .cax-datatable-tbody > tr > td {
285
+ font-size: 16px;
286
+ .cax-inputtext {
287
+ font-size: 16px;
288
+ }
289
+ }
290
+ .cax-datatable.cax-datatable-font-xl .cax-datatable-tbody > tr > td {
291
+ font-size: 18px;
292
+ .cax-inputtext {
293
+ font-size: 18px;
294
+ }
295
+ }
296
+ .cax-datatable.cax-datatable-font-sm.cax-datatable-row-sm .cax-datatable-tbody > tr > td {
297
+ height: 42px;
298
+ }
299
+ .cax-datatable.cax-datatable-font-sm.cax-datatable-row-md .cax-datatable-tbody > tr > td {
300
+ height: 56px;
301
+ }
302
+ .cax-datatable.cax-datatable-font-sm.cax-datatable-row-lg .cax-datatable-tbody > tr > td {
303
+ height: 72px;
304
+ }
305
+ .cax-datatable.cax-datatable-font-sm.cax-datatable-row-xl .cax-datatable-tbody > tr > td {
306
+ height: 88px;
307
+ }
308
+ .cax-datatable.cax-datatable-font-md.cax-datatable-row-sm .cax-datatable-tbody > tr > td {
309
+ height: 44px;
310
+ }
311
+ .cax-datatable.cax-datatable-font-md.cax-datatable-row-md .cax-datatable-tbody > tr > td {
312
+ height: 60px;
313
+ }
314
+ .cax-datatable.cax-datatable-font-md.cax-datatable-row-lg .cax-datatable-tbody > tr > td {
315
+ height: 78px;
316
+ }
317
+ .cax-datatable.cax-datatable-font-md.cax-datatable-row-xl .cax-datatable-tbody > tr > td {
318
+ height: 96px;
319
+ }
320
+ .cax-datatable.cax-datatable-font-lg.cax-datatable-row-sm .cax-datatable-tbody > tr > td {
321
+ height: 54px;
322
+ }
323
+ .cax-datatable.cax-datatable-font-lg.cax-datatable-row-md .cax-datatable-tbody > tr > td {
324
+ height: 66px;
325
+ }
326
+ .cax-datatable.cax-datatable-font-lg.cax-datatable-row-lg .cax-datatable-tbody > tr > td {
327
+ height: 86px;
328
+ }
329
+ .cax-datatable.cax-datatable-font-lg.cax-datatable-row-xl .cax-datatable-tbody > tr > td {
330
+ height: 108px;
331
+ }
332
+ .cax-datatable.cax-datatable-font-xl.cax-datatable-row-sm .cax-datatable-tbody > tr > td {
333
+ height: 56px;
334
+ }
335
+ .cax-datatable.cax-datatable-font-xl.cax-datatable-row-md .cax-datatable-tbody > tr > td {
336
+ height: 70px;
337
+ }
338
+ .cax-datatable.cax-datatable-font-xl.cax-datatable-row-lg .cax-datatable-tbody > tr > td {
339
+ height: 94px;
340
+ }
341
+ .cax-datatable.cax-datatable-font-xl.cax-datatable-row-xl .cax-datatable-tbody > tr > td {
342
+ height: 116px;
343
+ }
344
+
345
+ .cax-cell-highlight-default {
346
+ border: 1px solid var(--primary-500) !important;
347
+ }
348
+
349
+ .cax-cell-highlight-error {
350
+ border: 1px solid var(--error-600) !important;
351
+ }
352
+
353
+ .cax-cell-background-error {
354
+ background: var(--error-50);
355
+ }
@@ -5,10 +5,16 @@
5
5
  justify-content: center;
6
6
  }
7
7
 
8
- .cax-tag-icon,
8
+ .cax-tag-icon {
9
+ width: 10.5px;
10
+ height: 10.5px;
11
+ }
12
+
9
13
  .cax-tag-value,
10
- .cax-tag-icon.pi {
11
- line-height: 1.5;
14
+ .cax-tag-icon.cax {
15
+ line-height: 18px;
16
+ font-weight: 500;
17
+ font-size: 10.5px;
12
18
  }
13
19
 
14
20
  .cax-tag.cax-tag-rounded {