commons-shared-web-ui 0.0.39 → 0.0.41

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 (29) hide show
  1. package/fesm2022/commons-shared-web-ui.mjs +2039 -1409
  2. package/fesm2022/commons-shared-web-ui.mjs.map +1 -1
  3. package/index.d.ts +127 -6
  4. package/package.json +1 -1
  5. package/src/lib/modules/alert/alert.theme.scss +84 -84
  6. package/src/lib/modules/button/button.theme.scss +120 -120
  7. package/src/lib/modules/configurable-form/configurable-form.theme.scss +77 -77
  8. package/src/lib/modules/confirmation-modal/confirmation-modal.theme.scss +86 -86
  9. package/src/lib/modules/filter/filter.theme.scss +91 -91
  10. package/src/lib/modules/filter-sidebar/filter-sidebar.theme.scss +37 -37
  11. package/src/lib/modules/filter-table-selector/filter-table-selector.theme.scss +36 -36
  12. package/src/lib/modules/form-builder/form-builder.theme.scss +212 -212
  13. package/src/lib/modules/form-components/components/checkbox/_theme.scss +62 -62
  14. package/src/lib/modules/form-components/components/datepicker/_theme.scss +81 -81
  15. package/src/lib/modules/form-components/components/dropdown/_theme.scss +90 -90
  16. package/src/lib/modules/form-components/components/input/_theme.scss +76 -76
  17. package/src/lib/modules/form-components/components/radio/_theme.scss +60 -60
  18. package/src/lib/modules/form-components/components/search/_theme.scss +72 -72
  19. package/src/lib/modules/form-components/components/toggle/_theme.scss +44 -44
  20. package/src/lib/modules/form-components/form-components.theme.scss +24 -24
  21. package/src/lib/modules/nav/nav.theme.scss +86 -86
  22. package/src/lib/modules/pagination/pagination.theme.scss +66 -66
  23. package/src/lib/modules/side-nav/side-nav.theme.scss +111 -111
  24. package/src/lib/modules/smart-form/smart-form.theme.scss +889 -889
  25. package/src/lib/modules/smart-table/smart-table.theme.scss +335 -323
  26. package/src/lib/modules/snackbar/snackbar.theme.scss +93 -93
  27. package/src/lib/modules/summary-card/summary-card.theme.scss +175 -175
  28. package/src/lib/styles/global.scss +151 -134
  29. package/src/lib/styles/utilities.scss +250 -250
@@ -1,121 +1,121 @@
1
- @use 'sass:map';
2
-
3
- // Default Button Configuration
4
- $default-button-config: (
5
- // Common
6
- font-family: ('Roboto', sans-serif),
7
- font-weight: 500,
8
- font-size: 1rem,
9
- // 16px
10
- padding: 0.5rem 1rem,
11
- // 8px 16px
12
-
13
- // Primary (Dark)
14
- primary-bg: #262125,
15
- primary-color: #FFFFFF,
16
- primary-radius: 0.5rem,
17
- // 8px
18
- primary-border: none,
19
-
20
- // Warning (Yellow)
21
- warning-bg: #F9C80E,
22
- warning-color: #000000,
23
- warning-radius: 0.25rem,
24
- // 4px
25
- warning-border: none,
26
-
27
- // Outline (Grey Outline)
28
- outline-bg: transparent,
29
- outline-color: #000000,
30
- outline-radius: 0.25rem,
31
- // 4px
32
- outline-border: 0.0625rem solid #BDC1C6,
33
- // 1px solid
34
-
35
- // Secondary (Light Grey)
36
- secondary-bg: #E8EAED,
37
- secondary-color: #000000,
38
- secondary-radius: 0.25rem,
39
- // 4px
40
- secondary-border: none,
41
-
42
- // Success (Green)
43
- success-bg: #16A34A,
44
- success-color: #FFFFFF,
45
- success-radius: 0.5rem,
46
- // 8px
47
- success-border: none,
48
-
49
- // Danger (Red)
50
- danger-bg: #E63E30,
51
- danger-color: #FFFFFF,
52
- danger-radius: 0.25rem,
53
- // 4px
54
- danger-border: none,
55
-
56
- // Danger Outline (Red Outline)
57
- danger-outline-bg: transparent,
58
- danger-outline-color: #E63E30,
59
- danger-outline-radius: 0.5rem,
60
- // 8px
61
- danger-outline-border: 0.0625rem solid #E63E30,
62
- // 1px solid
63
-
64
- // Disabled State
65
- disabled-opacity: 0.6,
66
- disabled-cursor: not-allowed
67
- );
68
-
69
- @mixin button-theme($user-config: ()) {
70
- $config: map.merge($default-button-config, $user-config);
71
-
72
- // Common
73
- --cc-btn-font-family: #{map.get($config, font-family)};
74
- --cc-btn-font-weight: #{map.get($config, font-weight)};
75
- --cc-btn-font-size: #{map.get($config, font-size)};
76
- --cc-btn-padding: #{map.get($config, padding)};
77
- --cc-btn-disabled-opacity: #{map.get($config, disabled-opacity)};
78
- --cc-btn-disabled-cursor: #{map.get($config, disabled-cursor)};
79
-
80
- // Primary
81
- --cc-btn-primary-bg: #{map.get($config, primary-bg)};
82
- --cc-btn-primary-color: #{map.get($config, primary-color)};
83
- --cc-btn-primary-radius: #{map.get($config, primary-radius)};
84
- --cc-btn-primary-border: #{map.get($config, primary-border)};
85
-
86
- // Warning
87
- --cc-btn-warning-bg: #{map.get($config, warning-bg)};
88
- --cc-btn-warning-color: #{map.get($config, warning-color)};
89
- --cc-btn-warning-radius: #{map.get($config, warning-radius)};
90
- --cc-btn-warning-border: #{map.get($config, warning-border)};
91
-
92
- // Outline
93
- --cc-btn-outline-bg: #{map.get($config, outline-bg)};
94
- --cc-btn-outline-color: #{map.get($config, outline-color)};
95
- --cc-btn-outline-radius: #{map.get($config, outline-radius)};
96
- --cc-btn-outline-border: #{map.get($config, outline-border)};
97
-
98
- // Secondary
99
- --cc-btn-secondary-bg: #{map.get($config, secondary-bg)};
100
- --cc-btn-secondary-color: #{map.get($config, secondary-color)};
101
- --cc-btn-secondary-radius: #{map.get($config, secondary-radius)};
102
- --cc-btn-secondary-border: #{map.get($config, secondary-border)};
103
-
104
- // Success
105
- --cc-btn-success-bg: #{map.get($config, success-bg)};
106
- --cc-btn-success-color: #{map.get($config, success-color)};
107
- --cc-btn-success-radius: #{map.get($config, success-radius)};
108
- --cc-btn-success-border: #{map.get($config, success-border)};
109
-
110
- // Danger
111
- --cc-btn-danger-bg: #{map.get($config, danger-bg)};
112
- --cc-btn-danger-color: #{map.get($config, danger-color)};
113
- --cc-btn-danger-radius: #{map.get($config, danger-radius)};
114
- --cc-btn-danger-border: #{map.get($config, danger-border)};
115
-
116
- // Danger Outline
117
- --cc-btn-danger-outline-bg: #{map.get($config, danger-outline-bg)};
118
- --cc-btn-danger-outline-color: #{map.get($config, danger-outline-color)};
119
- --cc-btn-danger-outline-radius: #{map.get($config, danger-outline-radius)};
120
- --cc-btn-danger-outline-border: #{map.get($config, danger-outline-border)};
1
+ @use 'sass:map';
2
+
3
+ // Default Button Configuration
4
+ $default-button-config: (
5
+ // Common
6
+ font-family: ('Roboto', sans-serif),
7
+ font-weight: 500,
8
+ font-size: 1rem,
9
+ // 16px
10
+ padding: 0.5rem 1rem,
11
+ // 8px 16px
12
+
13
+ // Primary (Dark)
14
+ primary-bg: #262125,
15
+ primary-color: #FFFFFF,
16
+ primary-radius: 0.5rem,
17
+ // 8px
18
+ primary-border: none,
19
+
20
+ // Warning (Yellow)
21
+ warning-bg: #F9C80E,
22
+ warning-color: #000000,
23
+ warning-radius: 0.25rem,
24
+ // 4px
25
+ warning-border: none,
26
+
27
+ // Outline (Grey Outline)
28
+ outline-bg: transparent,
29
+ outline-color: #000000,
30
+ outline-radius: 0.25rem,
31
+ // 4px
32
+ outline-border: 0.0625rem solid #BDC1C6,
33
+ // 1px solid
34
+
35
+ // Secondary (Light Grey)
36
+ secondary-bg: #E8EAED,
37
+ secondary-color: #000000,
38
+ secondary-radius: 0.25rem,
39
+ // 4px
40
+ secondary-border: none,
41
+
42
+ // Success (Green)
43
+ success-bg: #16A34A,
44
+ success-color: #FFFFFF,
45
+ success-radius: 0.5rem,
46
+ // 8px
47
+ success-border: none,
48
+
49
+ // Danger (Red)
50
+ danger-bg: #E63E30,
51
+ danger-color: #FFFFFF,
52
+ danger-radius: 0.25rem,
53
+ // 4px
54
+ danger-border: none,
55
+
56
+ // Danger Outline (Red Outline)
57
+ danger-outline-bg: transparent,
58
+ danger-outline-color: #E63E30,
59
+ danger-outline-radius: 0.5rem,
60
+ // 8px
61
+ danger-outline-border: 0.0625rem solid #E63E30,
62
+ // 1px solid
63
+
64
+ // Disabled State
65
+ disabled-opacity: 0.6,
66
+ disabled-cursor: not-allowed
67
+ );
68
+
69
+ @mixin button-theme($user-config: ()) {
70
+ $config: map.merge($default-button-config, $user-config);
71
+
72
+ // Common
73
+ --cc-btn-font-family: #{map.get($config, font-family)};
74
+ --cc-btn-font-weight: #{map.get($config, font-weight)};
75
+ --cc-btn-font-size: #{map.get($config, font-size)};
76
+ --cc-btn-padding: #{map.get($config, padding)};
77
+ --cc-btn-disabled-opacity: #{map.get($config, disabled-opacity)};
78
+ --cc-btn-disabled-cursor: #{map.get($config, disabled-cursor)};
79
+
80
+ // Primary
81
+ --cc-btn-primary-bg: #{map.get($config, primary-bg)};
82
+ --cc-btn-primary-color: #{map.get($config, primary-color)};
83
+ --cc-btn-primary-radius: #{map.get($config, primary-radius)};
84
+ --cc-btn-primary-border: #{map.get($config, primary-border)};
85
+
86
+ // Warning
87
+ --cc-btn-warning-bg: #{map.get($config, warning-bg)};
88
+ --cc-btn-warning-color: #{map.get($config, warning-color)};
89
+ --cc-btn-warning-radius: #{map.get($config, warning-radius)};
90
+ --cc-btn-warning-border: #{map.get($config, warning-border)};
91
+
92
+ // Outline
93
+ --cc-btn-outline-bg: #{map.get($config, outline-bg)};
94
+ --cc-btn-outline-color: #{map.get($config, outline-color)};
95
+ --cc-btn-outline-radius: #{map.get($config, outline-radius)};
96
+ --cc-btn-outline-border: #{map.get($config, outline-border)};
97
+
98
+ // Secondary
99
+ --cc-btn-secondary-bg: #{map.get($config, secondary-bg)};
100
+ --cc-btn-secondary-color: #{map.get($config, secondary-color)};
101
+ --cc-btn-secondary-radius: #{map.get($config, secondary-radius)};
102
+ --cc-btn-secondary-border: #{map.get($config, secondary-border)};
103
+
104
+ // Success
105
+ --cc-btn-success-bg: #{map.get($config, success-bg)};
106
+ --cc-btn-success-color: #{map.get($config, success-color)};
107
+ --cc-btn-success-radius: #{map.get($config, success-radius)};
108
+ --cc-btn-success-border: #{map.get($config, success-border)};
109
+
110
+ // Danger
111
+ --cc-btn-danger-bg: #{map.get($config, danger-bg)};
112
+ --cc-btn-danger-color: #{map.get($config, danger-color)};
113
+ --cc-btn-danger-radius: #{map.get($config, danger-radius)};
114
+ --cc-btn-danger-border: #{map.get($config, danger-border)};
115
+
116
+ // Danger Outline
117
+ --cc-btn-danger-outline-bg: #{map.get($config, danger-outline-bg)};
118
+ --cc-btn-danger-outline-color: #{map.get($config, danger-outline-color)};
119
+ --cc-btn-danger-outline-radius: #{map.get($config, danger-outline-radius)};
120
+ --cc-btn-danger-outline-border: #{map.get($config, danger-outline-border)};
121
121
  }
@@ -1,78 +1,78 @@
1
- @use 'sass:map';
2
-
3
- // Default configuration for the configurable form theme
4
- $default-configurable-form-config: (
5
- // Colors
6
- primary-color: #3B82F6,
7
- surface-background: #ffffff,
8
- border-color: #D1D5DB,
9
- text-primary: #111827,
10
- text-secondary: #6B7280,
11
- error-color: #DC2626,
12
- disabled-background: #F3F4F6,
13
- hover-background: #F9FAFB,
14
-
15
- // Inputs specific
16
- input-border-color: #D1D5DB,
17
- input-focus-border-color: #3B82F6,
18
- input-hover-border-color: #9CA3AF,
19
- input-bg: #ffffff,
20
-
21
- // Dimensions
22
- section-radius: 12px,
23
- section-padding: 2rem,
24
- section-spacing: 1.5rem,
25
- input-radius: 8px,
26
- input-padding-y: 0.625rem,
27
- input-padding-x: 0.875rem,
28
-
29
- // Typography
30
- font-family: (-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif),
31
- section-title-size: 1.25rem,
32
- section-title-weight: 600,
33
- label-size: 0.875rem,
34
- label-weight: 600,
35
- input-font-size: 0.875rem,
36
- hint-size: 0.75rem,
37
-
38
- // Shadows
39
- section-shadow: (0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)),
40
- );
41
-
42
- // Mixin to generate CSS variables for the configurable form component
43
- @mixin configurable-form-theme($user-config: ()) {
44
- // Merge user config with defaults
45
- $config: map.merge($default-configurable-form-config, $user-config);
46
-
47
- // Generate CSS Variables
48
- --cf-primary-color: #{map.get($config, primary-color)};
49
- --cf-surface-background: #{map.get($config, surface-background)};
50
- --cf-border-color: #{map.get($config, border-color)};
51
- --cf-text-primary: #{map.get($config, text-primary)};
52
- --cf-text-secondary: #{map.get($config, text-secondary)};
53
- --cf-error-color: #{map.get($config, error-color)};
54
- --cf-disabled-background: #{map.get($config, disabled-background)};
55
- --cf-hover-background: #{map.get($config, hover-background)};
56
-
57
- --cf-input-border-color: #{map.get($config, input-border-color)};
58
- --cf-input-focus-border-color: #{map.get($config, input-focus-border-color)};
59
- --cf-input-hover-border-color: #{map.get($config, input-hover-border-color)};
60
- --cf-input-bg: #{map.get($config, input-bg)};
61
-
62
- --cf-section-radius: #{map.get($config, section-radius)};
63
- --cf-section-padding: #{map.get($config, section-padding)};
64
- --cf-section-spacing: #{map.get($config, section-spacing)};
65
- --cf-input-radius: #{map.get($config, input-radius)};
66
- --cf-input-padding-y: #{map.get($config, input-padding-y)};
67
- --cf-input-padding-x: #{map.get($config, input-padding-x)};
68
-
69
- --cf-font-family: #{map.get($config, font-family)};
70
- --cf-section-title-size: #{map.get($config, section-title-size)};
71
- --cf-section-title-weight: #{map.get($config, section-title-weight)};
72
- --cf-label-size: #{map.get($config, label-size)};
73
- --cf-label-weight: #{map.get($config, label-weight)};
74
- --cf-input-font-size: #{map.get($config, input-font-size)};
75
- --cf-hint-size: #{map.get($config, hint-size)};
76
-
77
- --cf-section-shadow: #{map.get($config, section-shadow)};
1
+ @use 'sass:map';
2
+
3
+ // Default configuration for the configurable form theme
4
+ $default-configurable-form-config: (
5
+ // Colors
6
+ primary-color: #3B82F6,
7
+ surface-background: #ffffff,
8
+ border-color: #D1D5DB,
9
+ text-primary: #111827,
10
+ text-secondary: #6B7280,
11
+ error-color: #DC2626,
12
+ disabled-background: #F3F4F6,
13
+ hover-background: #F9FAFB,
14
+
15
+ // Inputs specific
16
+ input-border-color: #D1D5DB,
17
+ input-focus-border-color: #3B82F6,
18
+ input-hover-border-color: #9CA3AF,
19
+ input-bg: #ffffff,
20
+
21
+ // Dimensions
22
+ section-radius: 12px,
23
+ section-padding: 2rem,
24
+ section-spacing: 1.5rem,
25
+ input-radius: 8px,
26
+ input-padding-y: 0.625rem,
27
+ input-padding-x: 0.875rem,
28
+
29
+ // Typography
30
+ font-family: (-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif),
31
+ section-title-size: 1.25rem,
32
+ section-title-weight: 600,
33
+ label-size: 0.875rem,
34
+ label-weight: 600,
35
+ input-font-size: 0.875rem,
36
+ hint-size: 0.75rem,
37
+
38
+ // Shadows
39
+ section-shadow: (0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)),
40
+ );
41
+
42
+ // Mixin to generate CSS variables for the configurable form component
43
+ @mixin configurable-form-theme($user-config: ()) {
44
+ // Merge user config with defaults
45
+ $config: map.merge($default-configurable-form-config, $user-config);
46
+
47
+ // Generate CSS Variables
48
+ --cf-primary-color: #{map.get($config, primary-color)};
49
+ --cf-surface-background: #{map.get($config, surface-background)};
50
+ --cf-border-color: #{map.get($config, border-color)};
51
+ --cf-text-primary: #{map.get($config, text-primary)};
52
+ --cf-text-secondary: #{map.get($config, text-secondary)};
53
+ --cf-error-color: #{map.get($config, error-color)};
54
+ --cf-disabled-background: #{map.get($config, disabled-background)};
55
+ --cf-hover-background: #{map.get($config, hover-background)};
56
+
57
+ --cf-input-border-color: #{map.get($config, input-border-color)};
58
+ --cf-input-focus-border-color: #{map.get($config, input-focus-border-color)};
59
+ --cf-input-hover-border-color: #{map.get($config, input-hover-border-color)};
60
+ --cf-input-bg: #{map.get($config, input-bg)};
61
+
62
+ --cf-section-radius: #{map.get($config, section-radius)};
63
+ --cf-section-padding: #{map.get($config, section-padding)};
64
+ --cf-section-spacing: #{map.get($config, section-spacing)};
65
+ --cf-input-radius: #{map.get($config, input-radius)};
66
+ --cf-input-padding-y: #{map.get($config, input-padding-y)};
67
+ --cf-input-padding-x: #{map.get($config, input-padding-x)};
68
+
69
+ --cf-font-family: #{map.get($config, font-family)};
70
+ --cf-section-title-size: #{map.get($config, section-title-size)};
71
+ --cf-section-title-weight: #{map.get($config, section-title-weight)};
72
+ --cf-label-size: #{map.get($config, label-size)};
73
+ --cf-label-weight: #{map.get($config, label-weight)};
74
+ --cf-input-font-size: #{map.get($config, input-font-size)};
75
+ --cf-hint-size: #{map.get($config, hint-size)};
76
+
77
+ --cf-section-shadow: #{map.get($config, section-shadow)};
78
78
  }
@@ -1,87 +1,87 @@
1
- @use 'sass:map';
2
-
3
- $default-confirmation-modal-config: (
4
- bg: #FFFFFF,
5
- radius: 0.75rem,
6
- // 12px
7
- shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.15),
8
- // 0 4px 24px
9
- border: none,
10
-
11
- // Header
12
- header-padding: 0.5rem 1rem,
13
- // 24px
14
- header-border-bottom: 0.0625rem solid #E5E7EB,
15
- // 1px
16
- title-font-size: 0.875rem,
17
- // 20px
18
- title-font-weight: 600,
19
- title-color: #111827,
20
- icon-size: 1.5rem,
21
- // 24px
22
- close-icon-size: 1.25rem,
23
- // 20px
24
-
25
- // Body
26
- body-padding: 1.5rem,
27
- // 24px
28
- body-text-color: #374151,
29
-
30
- // Inputs (Defaults)
31
- input-padding: 0.625rem 0.75rem,
32
- // 10px 12px
33
- input-radius: 0.375rem,
34
- // 6px
35
- input-font-size: 0.875rem,
36
- // 14px
37
- label-margin-bottom: 0.5rem,
38
- // 8px
39
- textarea-min-height: 6.25rem,
40
- // 100px
41
-
42
- // Footer
43
- footer-bg: #F9FAFB,
44
- footer-padding: 1rem 1.5rem,
45
- // 24px
46
- footer-border-top: 0.0625rem solid #E5E7EB,
47
- // 1px
48
-
49
- // Spinner
50
- spinner-size: 1rem // 16px
51
- );
52
-
53
- @mixin confirmation-modal-theme($user-config: ()) {
54
- $config: map.merge($default-confirmation-modal-config, $user-config);
55
-
56
- --cc-modal-bg: #{map.get($config, bg)};
57
- --cc-modal-radius: #{map.get($config, radius)};
58
- --cc-modal-shadow: #{map.get($config, shadow)};
59
- --cc-modal-border: #{map.get($config, border)};
60
-
61
- // Header Themes
62
- --cc-modal-header-bg-dark: #262125;
63
- --cc-modal-header-title-color-dark: #FFFFFF;
64
-
65
- --cc-modal-header-padding: #{map.get($config, header-padding)};
66
- --cc-modal-header-border-bottom: #{map.get($config, header-border-bottom)};
67
- --cc-modal-title-size: #{map.get($config, title-font-size)};
68
- --cc-modal-title-weight: #{map.get($config, title-font-weight)};
69
- --cc-modal-title-color: #{map.get($config, title-color)};
70
- --cc-modal-icon-size: #{map.get($config, icon-size)};
71
- --cc-modal-close-icon-size: #{map.get($config, close-icon-size)};
72
-
73
- --cc-modal-body-padding: #{map.get($config, body-padding)};
74
- --cc-modal-body-color: #{map.get($config, body-text-color)};
75
-
76
- --cc-modal-input-padding: #{map.get($config, input-padding)};
77
- --cc-modal-input-radius: #{map.get($config, input-radius)};
78
- --cc-modal-input-font-size: #{map.get($config, input-font-size)};
79
- --cc-modal-label-margin-bottom: #{map.get($config, label-margin-bottom)};
80
- --cc-modal-textarea-min-height: #{map.get($config, textarea-min-height)};
81
-
82
- --cc-modal-footer-bg: #{map.get($config, footer-bg)};
83
- --cc-modal-footer-padding: #{map.get($config, footer-padding)};
84
- --cc-modal-footer-border-top: #{map.get($config, footer-border-top)};
85
-
86
- --cc-modal-spinner-size: #{map.get($config, spinner-size)};
1
+ @use 'sass:map';
2
+
3
+ $default-confirmation-modal-config: (
4
+ bg: #FFFFFF,
5
+ radius: 0.75rem,
6
+ // 12px
7
+ shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.15),
8
+ // 0 4px 24px
9
+ border: none,
10
+
11
+ // Header
12
+ header-padding: 0.5rem 1rem,
13
+ // 24px
14
+ header-border-bottom: 0.0625rem solid #E5E7EB,
15
+ // 1px
16
+ title-font-size: 0.875rem,
17
+ // 20px
18
+ title-font-weight: 600,
19
+ title-color: #111827,
20
+ icon-size: 1.5rem,
21
+ // 24px
22
+ close-icon-size: 1.25rem,
23
+ // 20px
24
+
25
+ // Body
26
+ body-padding: 1.5rem,
27
+ // 24px
28
+ body-text-color: #374151,
29
+
30
+ // Inputs (Defaults)
31
+ input-padding: 0.625rem 0.75rem,
32
+ // 10px 12px
33
+ input-radius: 0.375rem,
34
+ // 6px
35
+ input-font-size: 0.875rem,
36
+ // 14px
37
+ label-margin-bottom: 0.5rem,
38
+ // 8px
39
+ textarea-min-height: 6.25rem,
40
+ // 100px
41
+
42
+ // Footer
43
+ footer-bg: #F9FAFB,
44
+ footer-padding: 1rem 1.5rem,
45
+ // 24px
46
+ footer-border-top: 0.0625rem solid #E5E7EB,
47
+ // 1px
48
+
49
+ // Spinner
50
+ spinner-size: 1rem // 16px
51
+ );
52
+
53
+ @mixin confirmation-modal-theme($user-config: ()) {
54
+ $config: map.merge($default-confirmation-modal-config, $user-config);
55
+
56
+ --cc-modal-bg: #{map.get($config, bg)};
57
+ --cc-modal-radius: #{map.get($config, radius)};
58
+ --cc-modal-shadow: #{map.get($config, shadow)};
59
+ --cc-modal-border: #{map.get($config, border)};
60
+
61
+ // Header Themes
62
+ --cc-modal-header-bg-dark: #262125;
63
+ --cc-modal-header-title-color-dark: #FFFFFF;
64
+
65
+ --cc-modal-header-padding: #{map.get($config, header-padding)};
66
+ --cc-modal-header-border-bottom: #{map.get($config, header-border-bottom)};
67
+ --cc-modal-title-size: #{map.get($config, title-font-size)};
68
+ --cc-modal-title-weight: #{map.get($config, title-font-weight)};
69
+ --cc-modal-title-color: #{map.get($config, title-color)};
70
+ --cc-modal-icon-size: #{map.get($config, icon-size)};
71
+ --cc-modal-close-icon-size: #{map.get($config, close-icon-size)};
72
+
73
+ --cc-modal-body-padding: #{map.get($config, body-padding)};
74
+ --cc-modal-body-color: #{map.get($config, body-text-color)};
75
+
76
+ --cc-modal-input-padding: #{map.get($config, input-padding)};
77
+ --cc-modal-input-radius: #{map.get($config, input-radius)};
78
+ --cc-modal-input-font-size: #{map.get($config, input-font-size)};
79
+ --cc-modal-label-margin-bottom: #{map.get($config, label-margin-bottom)};
80
+ --cc-modal-textarea-min-height: #{map.get($config, textarea-min-height)};
81
+
82
+ --cc-modal-footer-bg: #{map.get($config, footer-bg)};
83
+ --cc-modal-footer-padding: #{map.get($config, footer-padding)};
84
+ --cc-modal-footer-border-top: #{map.get($config, footer-border-top)};
85
+
86
+ --cc-modal-spinner-size: #{map.get($config, spinner-size)};
87
87
  }