sdga-ui 1.0.2 → 1.0.3

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 (61) hide show
  1. package/.editorconfig +23 -23
  2. package/.github/workflows/publish.yml +38 -33
  3. package/.prettierignore +73 -73
  4. package/.prettierrc +17 -17
  5. package/LICENSE +21 -21
  6. package/README.md +167 -167
  7. package/fonts/IBM_Plex_Sans_Arabic/OFL.txt +93 -93
  8. package/package.json +51 -47
  9. package/theme/_fonts.scss +58 -58
  10. package/theme/_functions.scss +11 -11
  11. package/theme/_variables.scss +50 -50
  12. package/theme/components/_accordion.scss +35 -35
  13. package/theme/components/_alerts.scss +11 -11
  14. package/theme/components/_badges.scss +8 -8
  15. package/theme/components/_breadcrumb.scss +13 -13
  16. package/theme/components/_buttons.scss +270 -270
  17. package/theme/components/_cards.scss +21 -21
  18. package/theme/components/_carousel.scss +33 -33
  19. package/theme/components/_content.scss +211 -211
  20. package/theme/components/_dropdowns.scss +45 -45
  21. package/theme/components/_forms-check.scss +124 -124
  22. package/theme/components/_forms-floating.scss +17 -17
  23. package/theme/components/_forms-inputs.scss +70 -70
  24. package/theme/components/_forms-range.scss +26 -26
  25. package/theme/components/_forms-select.scss +47 -47
  26. package/theme/components/_forms-switch.scss +63 -63
  27. package/theme/components/_forms-validation.scss +16 -16
  28. package/theme/components/_forms.scss +14 -14
  29. package/theme/components/_list-group.scss +26 -26
  30. package/theme/components/_modals.scss +42 -42
  31. package/theme/components/_navbar.scss +40 -40
  32. package/theme/components/_navigation.scss +151 -151
  33. package/theme/components/_offcanvas.scss +15 -15
  34. package/theme/components/_overlays.scss +112 -112
  35. package/theme/components/_pagination.scss +39 -39
  36. package/theme/components/_popovers.scss +26 -26
  37. package/theme/components/_progress.scss +11 -11
  38. package/theme/components/_spinners.scss +11 -11
  39. package/theme/components/_tables.scss +47 -47
  40. package/theme/components/_toasts.scss +16 -16
  41. package/theme/components/_tooltips.scss +15 -15
  42. package/theme/config/_base.scss +111 -111
  43. package/theme/config/_colors.scss +303 -303
  44. package/theme/config/_effects.scss +227 -227
  45. package/theme/config/_radius.scss +78 -78
  46. package/theme/config/_spacing.scss +155 -155
  47. package/theme/config/_typography.scss +118 -118
  48. package/theme/customizations/_alerts.scss +242 -242
  49. package/theme/customizations/_badges.scss +15 -15
  50. package/theme/customizations/_buttons.scss +209 -209
  51. package/theme/customizations/_cards.scss +117 -117
  52. package/theme/customizations/_forms-check.scss +278 -278
  53. package/theme/customizations/_forms-inputs.scss +9 -9
  54. package/theme/customizations/_forms-switch.scss +91 -91
  55. package/theme/customizations/_forms.scss +5 -5
  56. package/theme/customizations/_global.scss +25 -25
  57. package/theme/customizations/_links.scss +46 -46
  58. package/theme/customizations/_tables.scss +67 -67
  59. package/theme/customizations/_toasts.scss +221 -221
  60. package/theme/customizations/_utilities.scss +138 -138
  61. package/theme/dga-ui.scss +28 -28
@@ -1,91 +1,91 @@
1
- // Form Switch Customizations - RTL Support
2
-
3
- // ============================================
4
- // FORM SWITCH SPECIFIC STYLES
5
- // ============================================
6
-
7
- .form-switch {
8
- // Override default box-shadow for switches
9
- .form-check-input {
10
- box-shadow: none;
11
- }
12
- }
13
-
14
- // ============================================
15
- // HOVER AND ACTIVE STATES FOR FORM SWITCH
16
- // ============================================
17
-
18
- .form-switch .form-check-input:not(:disabled):not([readonly]) {
19
- // Unchecked hover
20
- &:not(:checked):hover {
21
- background-color: $form-switch-unchecked-hover-bg !important;
22
- border-color: $form-switch-unchecked-hover-border !important;
23
- $escaped-color: svg-encode-color($form-switch-unchecked-hover-color);
24
- background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$escaped-color}'/></svg>") !important;
25
- }
26
-
27
- // Checked hover
28
- &:checked:hover {
29
- background-color: $form-switch-checked-hover-bg !important;
30
- border-color: $form-switch-checked-hover-border !important;
31
- $escaped-color: svg-encode-color($form-switch-checked-hover-color);
32
- background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$escaped-color}'/></svg>") !important;
33
- }
34
-
35
- // Unchecked active/pressed
36
- &:not(:checked):active {
37
- background-color: $form-switch-unchecked-active-bg !important;
38
- border-color: $form-switch-unchecked-active-border !important;
39
- $escaped-color: svg-encode-color($form-switch-unchecked-active-color);
40
- background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$escaped-color}'/></svg>") !important;
41
- }
42
-
43
- // Checked active/pressed
44
- &:checked:active {
45
- background-color: $form-switch-checked-active-bg !important;
46
- border-color: $form-switch-checked-active-border !important;
47
- $escaped-color: svg-encode-color($form-switch-checked-active-color);
48
- background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$escaped-color}'/></svg>") !important;
49
- }
50
- }
51
-
52
- // ============================================
53
- // DISABLED STATE FOR FORM SWITCH
54
- // ============================================
55
-
56
- .form-switch .form-check-input:disabled {
57
- background-color: $form-switch-unchecked-disabled-bg;
58
- border-color: $form-switch-unchecked-disabled-border;
59
- cursor: not-allowed;
60
- $escaped-color: svg-encode-color($form-switch-unchecked-disabled-color);
61
- background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$escaped-color}'/></svg>");
62
-
63
- &:checked {
64
- background-color: $form-switch-checked-disabled-bg;
65
- border-color: $form-switch-checked-disabled-border;
66
- $escaped-color: svg-encode-color($form-switch-checked-disabled-color);
67
- background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$escaped-color}'/></svg>");
68
- }
69
- }
70
-
71
- // ============================================
72
- // RTL SUPPORT FOR FORM SWITCH
73
- // ============================================
74
-
75
- [dir="rtl"] {
76
- .form-switch {
77
- padding-left: 0;
78
- padding-right: $form-switch-padding-start;
79
-
80
- .form-check-input {
81
- margin-left: 0;
82
- margin-right: calc(#{$form-switch-padding-start} * -1);
83
- background-position: right center;
84
-
85
- // RTL: Flip background position for checked state
86
- &:checked {
87
- background-position: left center;
88
- }
89
- }
90
- }
91
- }
1
+ // Form Switch Customizations - RTL Support
2
+
3
+ // ============================================
4
+ // FORM SWITCH SPECIFIC STYLES
5
+ // ============================================
6
+
7
+ .form-switch {
8
+ // Override default box-shadow for switches
9
+ .form-check-input {
10
+ box-shadow: none;
11
+ }
12
+ }
13
+
14
+ // ============================================
15
+ // HOVER AND ACTIVE STATES FOR FORM SWITCH
16
+ // ============================================
17
+
18
+ .form-switch .form-check-input:not(:disabled):not([readonly]) {
19
+ // Unchecked hover
20
+ &:not(:checked):hover {
21
+ background-color: $form-switch-unchecked-hover-bg !important;
22
+ border-color: $form-switch-unchecked-hover-border !important;
23
+ $escaped-color: svg-encode-color($form-switch-unchecked-hover-color);
24
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$escaped-color}'/></svg>") !important;
25
+ }
26
+
27
+ // Checked hover
28
+ &:checked:hover {
29
+ background-color: $form-switch-checked-hover-bg !important;
30
+ border-color: $form-switch-checked-hover-border !important;
31
+ $escaped-color: svg-encode-color($form-switch-checked-hover-color);
32
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$escaped-color}'/></svg>") !important;
33
+ }
34
+
35
+ // Unchecked active/pressed
36
+ &:not(:checked):active {
37
+ background-color: $form-switch-unchecked-active-bg !important;
38
+ border-color: $form-switch-unchecked-active-border !important;
39
+ $escaped-color: svg-encode-color($form-switch-unchecked-active-color);
40
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$escaped-color}'/></svg>") !important;
41
+ }
42
+
43
+ // Checked active/pressed
44
+ &:checked:active {
45
+ background-color: $form-switch-checked-active-bg !important;
46
+ border-color: $form-switch-checked-active-border !important;
47
+ $escaped-color: svg-encode-color($form-switch-checked-active-color);
48
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$escaped-color}'/></svg>") !important;
49
+ }
50
+ }
51
+
52
+ // ============================================
53
+ // DISABLED STATE FOR FORM SWITCH
54
+ // ============================================
55
+
56
+ .form-switch .form-check-input:disabled {
57
+ background-color: $form-switch-unchecked-disabled-bg;
58
+ border-color: $form-switch-unchecked-disabled-border;
59
+ cursor: not-allowed;
60
+ $escaped-color: svg-encode-color($form-switch-unchecked-disabled-color);
61
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$escaped-color}'/></svg>");
62
+
63
+ &:checked {
64
+ background-color: $form-switch-checked-disabled-bg;
65
+ border-color: $form-switch-checked-disabled-border;
66
+ $escaped-color: svg-encode-color($form-switch-checked-disabled-color);
67
+ background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$escaped-color}'/></svg>");
68
+ }
69
+ }
70
+
71
+ // ============================================
72
+ // RTL SUPPORT FOR FORM SWITCH
73
+ // ============================================
74
+
75
+ [dir="rtl"] {
76
+ .form-switch {
77
+ padding-left: 0;
78
+ padding-right: $form-switch-padding-start;
79
+
80
+ .form-check-input {
81
+ margin-left: 0;
82
+ margin-right: calc(#{$form-switch-padding-start} * -1);
83
+ background-position: right center;
84
+
85
+ // RTL: Flip background position for checked state
86
+ &:checked {
87
+ background-position: left center;
88
+ }
89
+ }
90
+ }
91
+ }
@@ -1,5 +1,5 @@
1
- // Form Customizations - SDJA Custom Enhancements
2
-
3
- @import 'forms-inputs';
4
- @import 'forms-check';
5
-
1
+ // Form Customizations - SDJA Custom Enhancements
2
+
3
+ @import 'forms-inputs';
4
+ @import 'forms-check';
5
+
@@ -1,25 +1,25 @@
1
- // Global Customizations - SDGA Custom Enhancements
2
- // ============================================
3
- // GLOBAL FOCUS STYLING
4
- // ============================================
5
-
6
- // Global button focus styling - applies to all button variants
7
- *:focus-visible {
8
- outline-offset: 2px !important;
9
- outline: 2px solid #161616 !important;
10
- border-color: $border-color !important;
11
- }
12
-
13
- // ============================================
14
- // SAFARI COMPATIBILITY
15
- // ============================================
16
-
17
- // Fix Safari compatibility for text-align in table headers
18
- th {
19
- text-align: match-parent;
20
- }
21
-
22
- // Fix text-size-adjust for modern browsers
23
- html {
24
- text-size-adjust: 100%;
25
- }
1
+ // Global Customizations - SDGA Custom Enhancements
2
+ // ============================================
3
+ // GLOBAL FOCUS STYLING
4
+ // ============================================
5
+
6
+ // Global button focus styling - applies to all button variants
7
+ *:focus-visible {
8
+ outline-offset: 2px !important;
9
+ outline: 2px solid #161616 !important;
10
+ border-color: $border-color !important;
11
+ }
12
+
13
+ // ============================================
14
+ // SAFARI COMPATIBILITY
15
+ // ============================================
16
+
17
+ // Fix Safari compatibility for text-align in table headers
18
+ th {
19
+ text-align: match-parent;
20
+ }
21
+
22
+ // Fix text-size-adjust for modern browsers
23
+ html {
24
+ text-size-adjust: 100%;
25
+ }
@@ -1,47 +1,47 @@
1
- // Links Customizations - SDGA Custom Enhancements
2
-
3
- // ============================================
4
- // LINK COLOR VARIANTS
5
- // ============================================
6
-
7
- .link-primary {
8
- --#{$prefix}link-color: #{$primary-600};
9
- --#{$prefix}link-color-rgb: #{red($primary-600)}, #{green($primary-600)}, #{blue($primary-600)};
10
- --#{$prefix}link-hover-color: #{$primary-400};
11
- --#{$prefix}link-hover-color-rgb: #{red($primary-400)}, #{green($primary-400)}, #{blue($primary-400)};
12
- }
13
-
14
- .link-secondary {
15
- --#{$prefix}link-color: #{$secondary-600};
16
- --#{$prefix}link-color-rgb: #{red($secondary-600)}, #{green($secondary-600)}, #{blue($secondary-600)};
17
- --#{$prefix}link-hover-color: #{$secondary-400};
18
- --#{$prefix}link-hover-color-rgb: #{red($secondary-400)}, #{green($secondary-400)}, #{blue($secondary-400)};
19
- }
20
-
21
- .link-success {
22
- --#{$prefix}link-color: #{$success-600};
23
- --#{$prefix}link-color-rgb: #{red($success-600)}, #{green($success-600)}, #{blue($success-600)};
24
- --#{$prefix}link-hover-color: #{$success-400};
25
- --#{$prefix}link-hover-color-rgb: #{red($success-400)}, #{green($success-400)}, #{blue($success-400)};
26
- }
27
-
28
- .link-danger {
29
- --#{$prefix}link-color: #{$danger-600};
30
- --#{$prefix}link-color-rgb: #{red($danger-600)}, #{green($danger-600)}, #{blue($danger-600)};
31
- --#{$prefix}link-hover-color: #{$danger-400};
32
- --#{$prefix}link-hover-color-rgb: #{red($danger-400)}, #{green($danger-400)}, #{blue($danger-400)};
33
- }
34
-
35
- .link-warning {
36
- --#{$prefix}link-color: #{$warning-600};
37
- --#{$prefix}link-color-rgb: #{red($warning-600)}, #{green($warning-600)}, #{blue($warning-600)};
38
- --#{$prefix}link-hover-color: #{$warning-400};
39
- --#{$prefix}link-hover-color-rgb: #{red($warning-400)}, #{green($warning-400)}, #{blue($warning-400)};
40
- }
41
-
42
- .link-info {
43
- --#{$prefix}link-color: #{$info-600};
44
- --#{$prefix}link-color-rgb: #{red($info-600)}, #{green($info-600)}, #{blue($info-600)};
45
- --#{$prefix}link-hover-color: #{$info-400};
46
- --#{$prefix}link-hover-color-rgb: #{red($info-400)}, #{green($info-400)}, #{blue($info-400)};
1
+ // Links Customizations - SDGA Custom Enhancements
2
+
3
+ // ============================================
4
+ // LINK COLOR VARIANTS
5
+ // ============================================
6
+
7
+ .link-primary {
8
+ --#{$prefix}link-color: #{$primary-600};
9
+ --#{$prefix}link-color-rgb: #{red($primary-600)}, #{green($primary-600)}, #{blue($primary-600)};
10
+ --#{$prefix}link-hover-color: #{$primary-400};
11
+ --#{$prefix}link-hover-color-rgb: #{red($primary-400)}, #{green($primary-400)}, #{blue($primary-400)};
12
+ }
13
+
14
+ .link-secondary {
15
+ --#{$prefix}link-color: #{$secondary-600};
16
+ --#{$prefix}link-color-rgb: #{red($secondary-600)}, #{green($secondary-600)}, #{blue($secondary-600)};
17
+ --#{$prefix}link-hover-color: #{$secondary-400};
18
+ --#{$prefix}link-hover-color-rgb: #{red($secondary-400)}, #{green($secondary-400)}, #{blue($secondary-400)};
19
+ }
20
+
21
+ .link-success {
22
+ --#{$prefix}link-color: #{$success-600};
23
+ --#{$prefix}link-color-rgb: #{red($success-600)}, #{green($success-600)}, #{blue($success-600)};
24
+ --#{$prefix}link-hover-color: #{$success-400};
25
+ --#{$prefix}link-hover-color-rgb: #{red($success-400)}, #{green($success-400)}, #{blue($success-400)};
26
+ }
27
+
28
+ .link-danger {
29
+ --#{$prefix}link-color: #{$danger-600};
30
+ --#{$prefix}link-color-rgb: #{red($danger-600)}, #{green($danger-600)}, #{blue($danger-600)};
31
+ --#{$prefix}link-hover-color: #{$danger-400};
32
+ --#{$prefix}link-hover-color-rgb: #{red($danger-400)}, #{green($danger-400)}, #{blue($danger-400)};
33
+ }
34
+
35
+ .link-warning {
36
+ --#{$prefix}link-color: #{$warning-600};
37
+ --#{$prefix}link-color-rgb: #{red($warning-600)}, #{green($warning-600)}, #{blue($warning-600)};
38
+ --#{$prefix}link-hover-color: #{$warning-400};
39
+ --#{$prefix}link-hover-color-rgb: #{red($warning-400)}, #{green($warning-400)}, #{blue($warning-400)};
40
+ }
41
+
42
+ .link-info {
43
+ --#{$prefix}link-color: #{$info-600};
44
+ --#{$prefix}link-color-rgb: #{red($info-600)}, #{green($info-600)}, #{blue($info-600)};
45
+ --#{$prefix}link-hover-color: #{$info-400};
46
+ --#{$prefix}link-hover-color-rgb: #{red($info-400)}, #{green($info-400)}, #{blue($info-400)};
47
47
  }
@@ -1,68 +1,68 @@
1
- // Table Customizations - SDGA Custom Enhancements
2
-
3
- // ============================================
4
- // TABLE HOVER ENHANCEMENTS
5
- // ============================================
6
-
7
- // .table-hover-primary tbody tr:hover {
8
- // background-color: rgba($primary, 0.1);
9
- // }
10
-
11
- // .table-hover-secondary tbody tr:hover {
12
- // background-color: rgba($secondary, 0.1);
13
- // }
14
-
15
- .table {
16
- border: $table-th-border-width solid $table-th-border-color;
17
- border-radius: $table-thead-border-radius;
18
- border-collapse: separate;
19
- border-spacing: 0;
20
- overflow: hidden;
21
-
22
- &.side-borderless {
23
- border-inline: none;
24
- border-radius: 0;
25
- }
26
-
27
- thead {
28
- background-color: $table-thead-bg;
29
-
30
- th {
31
- height: 3rem;
32
- vertical-align: middle;
33
- padding: $table-cell-padding-y $table-cell-padding-x;
34
- background-color: transparent;
35
- color: $table-th-color;
36
- border-block-end: $table-thead-border-width solid $table-thead-border-color;
37
- border-block-start: none;
38
- border-inline-start: none;
39
- border-inline-end: $table-thead-border-width solid $table-thead-border-color;
40
-
41
- &:last-child {
42
- border-inline-end: none;
43
- }
44
- }
45
- }
46
-
47
- tbody {
48
- tr {
49
- th, td {
50
- height: 4rem;
51
- vertical-align: middle;
52
- border-inline: none;
53
- border-block-start: none;
54
- border-block-end: none;
55
- }
56
-
57
- th:first-child, td:first-child {
58
- border-inline-end: $table-th-border-width solid $table-th-border-color;
59
- }
60
-
61
- &:not(:last-child) {
62
- th, td {
63
- border-block-end: $table-border-width solid $table-border-color;
64
- }
65
- }
66
- }
67
- }
1
+ // Table Customizations - SDGA Custom Enhancements
2
+
3
+ // ============================================
4
+ // TABLE HOVER ENHANCEMENTS
5
+ // ============================================
6
+
7
+ // .table-hover-primary tbody tr:hover {
8
+ // background-color: rgba($primary, 0.1);
9
+ // }
10
+
11
+ // .table-hover-secondary tbody tr:hover {
12
+ // background-color: rgba($secondary, 0.1);
13
+ // }
14
+
15
+ .table {
16
+ border: $table-th-border-width solid $table-th-border-color;
17
+ border-radius: $table-thead-border-radius;
18
+ border-collapse: separate;
19
+ border-spacing: 0;
20
+ overflow: hidden;
21
+
22
+ &.side-borderless {
23
+ border-inline: none;
24
+ border-radius: 0;
25
+ }
26
+
27
+ thead {
28
+ background-color: $table-thead-bg;
29
+
30
+ th {
31
+ height: 3rem;
32
+ vertical-align: middle;
33
+ padding: $table-cell-padding-y $table-cell-padding-x;
34
+ background-color: transparent;
35
+ color: $table-th-color;
36
+ border-block-end: $table-thead-border-width solid $table-thead-border-color;
37
+ border-block-start: none;
38
+ border-inline-start: none;
39
+ border-inline-end: $table-thead-border-width solid $table-thead-border-color;
40
+
41
+ &:last-child {
42
+ border-inline-end: none;
43
+ }
44
+ }
45
+ }
46
+
47
+ tbody {
48
+ tr {
49
+ th, td {
50
+ height: 4rem;
51
+ vertical-align: middle;
52
+ border-inline: none;
53
+ border-block-start: none;
54
+ border-block-end: none;
55
+ }
56
+
57
+ th:first-child, td:first-child {
58
+ border-inline-end: $table-th-border-width solid $table-th-border-color;
59
+ }
60
+
61
+ &:not(:last-child) {
62
+ th, td {
63
+ border-block-end: $table-border-width solid $table-border-color;
64
+ }
65
+ }
66
+ }
67
+ }
68
68
  }