@dynamic-framework/ui-react 1.9.1 → 1.11.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 (62) hide show
  1. package/dist/css/dynamic-ui-non-root.css +323 -349
  2. package/dist/css/dynamic-ui-non-root.min.css +1 -1
  3. package/dist/css/dynamic-ui.css +323 -349
  4. package/dist/css/dynamic-ui.min.css +1 -1
  5. package/dist/index.esm.js +206 -124
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +206 -123
  8. package/dist/index.js.map +1 -1
  9. package/dist/types/components/DAlertBox/DAlertBox.d.ts +9 -0
  10. package/dist/types/components/DAlertBox/index.d.ts +2 -0
  11. package/dist/types/components/DBadge/DBadge.d.ts +2 -2
  12. package/dist/types/components/DBoxFile/DBoxFile.d.ts +2 -3
  13. package/dist/types/components/DButton/DButton.d.ts +7 -5
  14. package/dist/types/components/DChip/DChip.d.ts +2 -1
  15. package/dist/types/components/DDatePicker/DDatePicker.d.ts +7 -3
  16. package/dist/types/components/DDatePickerHeader/DDatePickerHeader.d.ts +5 -3
  17. package/dist/types/components/DDatePickerInput/DDatePickerInput.d.ts +1 -1
  18. package/dist/types/components/DIcon/DIcon.d.ts +2 -2
  19. package/dist/types/components/DInput/DInput.d.ts +3 -2
  20. package/dist/types/components/DInputCheck/DInputCheck.d.ts +5 -4
  21. package/dist/types/components/DInputCounter/DInputCounter.d.ts +3 -2
  22. package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +3 -2
  23. package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +3 -2
  24. package/dist/types/components/DInputPin/DInputPin.d.ts +7 -7
  25. package/dist/types/components/DInputSearch/DInputSearch.d.ts +3 -2
  26. package/dist/types/components/DInputSelect/DInputSelect.d.ts +7 -6
  27. package/dist/types/components/DInputSwitch/DInputSwitch.d.ts +5 -4
  28. package/dist/types/components/DList/DList.d.ts +4 -4
  29. package/dist/types/components/DList/components/DListItem.d.ts +3 -3
  30. package/dist/types/components/DModal/DModal.d.ts +5 -5
  31. package/dist/types/components/DMonthPicker/DMonthPicker.d.ts +3 -1
  32. package/dist/types/components/DOffcanvas/DOffcanvas.d.ts +3 -3
  33. package/dist/types/components/DPopover/DPopover.d.ts +4 -4
  34. package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +2 -1
  35. package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +2 -2
  36. package/dist/types/components/DQuickActionSelect/DQuickActionSelect.d.ts +2 -2
  37. package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +3 -3
  38. package/dist/types/components/DStepper/DStepper.d.ts +2 -2
  39. package/dist/types/components/DStepperDesktop/DStepperDesktop.d.ts +2 -2
  40. package/dist/types/components/DTabs/DTabs.d.ts +3 -3
  41. package/dist/types/components/{DAlert/DAlert.d.ts → DToast/DToast.d.ts} +3 -3
  42. package/dist/types/components/DToast/index.d.ts +2 -0
  43. package/dist/types/components/DToastContainer/useToast.d.ts +2 -2
  44. package/dist/types/components/DTooltip/DTooltip.d.ts +2 -2
  45. package/dist/types/components/banking/DPermissionGroup.d.ts +1 -1
  46. package/dist/types/components/config.d.ts +2 -2
  47. package/dist/types/components/index.d.ts +2 -1
  48. package/dist/types/components/interface.d.ts +8 -3
  49. package/package.json +7 -2
  50. package/src/style/abstracts/_maps.scss +6 -0
  51. package/src/style/abstracts/_mixins.scss +53 -42
  52. package/src/style/abstracts/variables/_alerts.scss +1 -0
  53. package/src/style/abstracts/variables/_buttons.scss +7 -13
  54. package/src/style/abstracts/variables/_colors.scss +1 -1
  55. package/src/style/components/_+import.scss +1 -1
  56. package/src/style/components/_d-button.scss +12 -41
  57. package/src/style/components/_d-chip.scss +1 -1
  58. package/src/style/components/_d-datepicker.scss +9 -0
  59. package/src/style/components/_d-input-pin.scss +2 -6
  60. package/src/style/components/_d-input-select.scss +8 -1
  61. package/src/style/components/{_d-alert.scss → _d-toast.scss} +21 -1
  62. package/dist/types/components/DAlert/index.d.ts +0 -2
@@ -1,5 +1,5 @@
1
- import { AlertTypeIconMap } from './interface';
1
+ import { ToastTypeIconMap } from './interface';
2
2
  export declare const PREFIX_BS = "bs-";
3
3
  export declare const ICON_FAMILY_CLASS = "bi";
4
4
  export declare const ICON_FAMILY_PREFIX = "bi-";
5
- export declare const ALERT_TYPE_ICON: AlertTypeIconMap;
5
+ export declare const ALERT_TYPE_ICON: ToastTypeIconMap;
@@ -1,5 +1,6 @@
1
1
  export * from './banking';
2
- export { default as DAlert } from './DAlert';
2
+ export { default as DToast } from './DToast';
3
+ export { default as DAlertBox } from './DAlertBox';
3
4
  export { default as DBadge } from './DBadge';
4
5
  export { default as DBoxFile } from './DBoxFile';
5
6
  export { default as DButton } from './DButton';
@@ -29,16 +29,21 @@ export type StartIconProps = {
29
29
  iconStart?: string;
30
30
  iconStartFamilyClass?: string;
31
31
  iconStartFamilyPrefix?: string;
32
+ iconStartAriaLabel?: string;
33
+ iconStartTabIndex?: number;
32
34
  };
33
35
  export type EndIconProps = {
34
36
  iconEnd?: string;
35
37
  iconEndFamilyClass?: string;
36
38
  iconEndFamilyPrefix?: string;
39
+ iconEndAriaLabel?: string;
40
+ iconEndTabIndex?: number;
37
41
  };
38
- export type AlertType = 'success' | 'info' | 'light' | 'dark' | 'warning' | 'danger';
39
- export type AlertTypeIconMap = {
40
- [state in AlertType]: string;
42
+ export type ToastType = 'success' | 'info' | 'warning' | 'danger' | 'light' | 'dark';
43
+ export type ToastTypeIconMap = {
44
+ [state in ToastType]: string;
41
45
  };
46
+ export type AlertBoxTheme = 'box-info' | 'box-white' | 'box-secondary';
42
47
  export type ButtonVariant = 'outline' | 'link';
43
48
  export type ButtonType = 'submit' | 'reset' | 'button';
44
49
  export type InputCheckType = 'checkbox' | 'radio';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sideEffects": [
4
4
  "*.css"
5
5
  ],
6
- "version": "1.9.1",
6
+ "version": "1.11.0",
7
7
  "description": "React Dynamic Framework",
8
8
  "license": "MIT",
9
9
  "repository": {
@@ -42,6 +42,7 @@
42
42
  "scripts": {
43
43
  "test": "jest",
44
44
  "test:watch": "jest --watch",
45
+ "test:storybook": "test-storybook",
45
46
  "build": "pnpm clean && pnpm build:react && pnpm build:scss",
46
47
  "build:react": "tsc -p ./tsconfig.build.json && rollup -c rollup.config.mjs",
47
48
  "build:react:watch": "tsc -p ./tsconfig.build.json && rollup -c rollup.config.mjs",
@@ -86,6 +87,7 @@
86
87
  "@babel/preset-typescript": "^7.23.2",
87
88
  "@mdx-js/react": "^2.3.0",
88
89
  "@rollup/plugin-node-resolve": "^15.2.3",
90
+ "@storybook/addon-a11y": "^7.5.3",
89
91
  "@storybook/addon-actions": "^7.5.1",
90
92
  "@storybook/addon-essentials": "^7.5.1",
91
93
  "@storybook/addon-interactions": "^7.5.1",
@@ -94,6 +96,7 @@
94
96
  "@storybook/blocks": "^7.5.1",
95
97
  "@storybook/react": "^7.5.1",
96
98
  "@storybook/react-webpack5": "^7.5.1",
99
+ "@storybook/test-runner": "^0.14.1",
97
100
  "@storybook/testing-library": "^0.2.2",
98
101
  "@storybook/theming": "^7.5.1",
99
102
  "@testing-library/jest-dom": "^6.1.4",
@@ -106,6 +109,7 @@
106
109
  "@typescript-eslint/eslint-plugin": "^6.9.0",
107
110
  "@typescript-eslint/parser": "^6.9.0",
108
111
  "autoprefixer": "^10.4.16",
112
+ "axe-playwright": "^1.2.3",
109
113
  "babel-loader": "^9.1.3",
110
114
  "bootstrap": "^5.3.2",
111
115
  "eslint": "^8.52.0",
@@ -116,6 +120,7 @@
116
120
  "eslint-plugin-react": "^7.33.2",
117
121
  "eslint-plugin-react-hooks": "^4.6.0",
118
122
  "jest": "^29.7.0",
123
+ "jest-axe": "^8.0.0",
119
124
  "jest-cli": "^29.7.0",
120
125
  "jest-environment-jsdom": "^29.7.0",
121
126
  "lint-staged": "^15.0.2",
@@ -138,5 +143,5 @@
138
143
  "react-dom": "^18.2.0",
139
144
  "react-i18next": "^13.3.1"
140
145
  },
141
- "gitHead": "06a9c8a57f224fd54a68bc521b45a4b1d75ac8ed"
146
+ "gitHead": "3c33b40ebe68b56e1f5e073a05c76ada032214ed"
142
147
  }
@@ -1 +1,7 @@
1
1
  // Theme maps
2
+
3
+ $alert-boxes: (
4
+ "secondary": (var(--#{$prefix}secondary-100), var(--#{$prefix}secondary)),
5
+ "white": (var(--#{$prefix}white), var(--#{$prefix}secondary)),
6
+ "info": (var(--#{$prefix}info-100), var(--#{$prefix}info)),
7
+ ) !default;
@@ -2,27 +2,33 @@
2
2
  @mixin df-button-variant(
3
3
  $color-name,
4
4
  $default-color: var(--#{$prefix}#{$color-name}-500),
5
- $hover-color: var(--#{$prefix}#{$color-name}-700),
6
- $active-color: var(--#{$prefix}#{$color-name}-600),
5
+ $hover-color: var(--#{$prefix}#{$color-name}-600),
6
+ $focus-color: var(--#{$prefix}#{$color-name}-600),
7
+ $active-color: var(--#{$prefix}#{$color-name}-700),
7
8
  $disabled-color: var(--#{$prefix}#{$color-name}-100),
8
- $text-color-100: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-100)),
9
- $text-color-500: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-500)),
10
- $text-color-700: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-600)),
11
- $text-color-900: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-700)),
9
+ $default-text-color: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-500)),
10
+ $hover-text-color: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-600)),
11
+ $focus-text-color: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-600)),
12
+ $active-text-color: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-700)),
13
+ $disabled-text-color: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-100)),
12
14
  ) {
13
- --#{$prefix}btn-color: #{$text-color-500};
15
+ --#{$prefix}btn-color: #{$default-text-color};
14
16
  --#{$prefix}btn-bg: #{$default-color};
15
17
  --#{$prefix}btn-border-color: #{$default-color};
16
18
 
17
- --#{$prefix}btn-hover-color: #{$text-color-900};
19
+ --#{$prefix}btn-hover-color: #{$hover-text-color};
18
20
  --#{$prefix}btn-hover-bg: #{$hover-color};
19
21
  --#{$prefix}btn-hover-border-color: #{$hover-color};
20
22
 
21
- --#{$prefix}btn-active-color: #{$text-color-700};
23
+ --#{$prefix}btn-focus-color: #{$focus-text-color};
24
+ --#{$prefix}btn-focus-bg: #{$focus-color};
25
+ --#{$prefix}btn-focus-border-color: #{$focus-color};
26
+
27
+ --#{$prefix}btn-active-color: #{$active-text-color};
22
28
  --#{$prefix}btn-active-bg: #{$active-color};
23
29
  --#{$prefix}btn-active-border-color: #{$active-color};
24
30
 
25
- --#{$prefix}btn-disabled-color: #{$text-color-100};
31
+ --#{$prefix}btn-disabled-color: #{$disabled-text-color};
26
32
  --#{$prefix}btn-disabled-bg: #{$disabled-color};
27
33
  --#{$prefix}btn-disabled-border-color: #{$disabled-color};
28
34
 
@@ -30,41 +36,49 @@
30
36
  --#{$prefix}btn-disabled-opacity: 1;
31
37
  --#{$prefix}btn-disabled-bg: #{$active-color};
32
38
  --#{$prefix}btn-disabled-border-color: #{$active-color};
33
- --#{$prefix}btn-disabled-color: #{$text-color-700};
39
+ --#{$prefix}btn-disabled-color: #{$hover-text-color};
34
40
  }
35
41
  }
36
42
  // scss-docs-end df-btn-variant-mixin
37
43
 
38
44
 
39
45
  // scss-docs-start df-btn-outline-variant-mixin
40
- @mixin df-button-outline-variant($color-name) {
46
+ @mixin df-button-outline-variant(
47
+ $color-name,
48
+ $default-color: var(--#{$prefix}#{$color-name}-600),
49
+ $hover-bg-color: var(--#{$prefix}#{$color-name}-100),
50
+ $focus-bg-color: var(--#{$prefix}#{$color-name}-100),
51
+ $active-bg-color: var(--#{$prefix}#{$color-name}-200),
52
+ $disabled-color: var(--#{$prefix}#{$color-name}-100),
53
+ $disabled-text-color: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-100)),
54
+ ) {
41
55
  --#{$prefix}btn-bg: transparent;
42
- --#{$prefix}btn-border-color: var(--#{$prefix}#{$color-name}-500);
43
- --#{$prefix}btn-color: var(--#{$prefix}#{$color-name}-500);
56
+ --#{$prefix}btn-border-color: #{$default-color};
57
+ --#{$prefix}btn-color: #{$default-color};
44
58
 
45
- --#{$prefix}btn-hover-bg: var(--#{$prefix}#{$color-name}-100);
46
- --#{$prefix}btn-hover-border-color: var(--#{$prefix}#{$color-name}-600);
47
- --#{$prefix}btn-hover-color: var(--#{$prefix}#{$color-name}-600);
59
+ --#{$prefix}btn-hover-bg: #{$hover-bg-color};
60
+ --#{$prefix}btn-hover-border-color: #{$default-color};
61
+ --#{$prefix}btn-hover-color: #{$default-color};
48
62
 
49
- --#{$prefix}btn-focus-bg: var(--#{$prefix}#{$color-name}-100);
50
- --#{$prefix}btn-focus-border-color: var(--#{$prefix}#{$color-name});
51
- --#{$prefix}btn-focus-color: var(--#{$prefix}#{$color-name});
63
+ --#{$prefix}btn-focus-bg: #{$focus-bg-color};
64
+ --#{$prefix}btn-focus-border-color: #{$default-color};
65
+ --#{$prefix}btn-focus-color: #{$default-color};
52
66
 
53
- --#{$prefix}btn-active-bg: var(--#{$prefix}#{$color-name}-300);
54
- --#{$prefix}btn-active-border-color: var(--#{$prefix}#{$color-name}-600);
55
- --#{$prefix}btn-active-color: var(--#{$prefix}#{$color-name}-600);
67
+ --#{$prefix}btn-active-bg: #{$active-bg-color};
68
+ --#{$prefix}btn-active-border-color: #{$default-color};
69
+ --#{$prefix}btn-active-color: #{$default-color};
56
70
 
57
71
  --#{$prefix}btn-disabled-bg: transparent;
58
- --#{$prefix}btn-disabled-border-color: var(--#{$prefix}#{$color-name}-100);
59
- --#{$prefix}btn-disabled-color: var(--#{$prefix}#{$color-name}-100);
72
+ --#{$prefix}btn-disabled-border-color: #{$disabled-color};
73
+ --#{$prefix}btn-disabled-color: #{$disabled-text-color};
60
74
 
61
75
  --#{$prefix}gradient: none;
62
76
 
63
77
  &.loading {
64
78
  --#{$prefix}btn-disabled-opacity: 1;
65
79
  --#{$prefix}btn-disabled-bg: transparent;
66
- --#{$prefix}btn-disabled-border-color: var(--#{$prefix}#{$color-name}-600);
67
- --#{$prefix}btn-disabled-color: var(--#{$prefix}#{$color-name}-600);
80
+ --#{$prefix}btn-disabled-border-color: #{$default-color};
81
+ --#{$prefix}btn-disabled-color: #{$default-color};
68
82
  }
69
83
  }
70
84
  // scss-docs-end df-btn-outline-variant-mixin
@@ -72,33 +86,30 @@
72
86
  // scss-docs-start df-btn-link-variant-mixin
73
87
  @mixin df-button-link-variant(
74
88
  $color-name,
75
- $text-color-100: var(--#{$prefix}#{$color-name}-100),
76
- $text-color-500: var(--#{$prefix}#{$color-name}-500),
77
- $text-color-700: var(--#{$prefix}#{$color-name}-600),
78
- $text-color-900: var(--#{$prefix}#{$color-name}-700),
89
+ $default-color: var(--#{$prefix}#{$color-name}-600),
90
+ $hover-bg-color: var(--#{$prefix}#{$color-name}-100),
91
+ $active-bg-color: var(--#{$prefix}#{$color-name}-200),
92
+ $disable-color: var(--#{$prefix}#{$color-name}-300),
79
93
  ) {
80
- --#{$prefix}btn-padding-x: var(--#{$prefix}btn-link-padding-x);
81
- --#{$prefix}btn-padding-y: var(--#{$prefix}btn-link-padding-y);
82
-
83
94
  --#{$prefix}btn-bg: transparent;
84
95
  --#{$prefix}btn-border-color: transparent;
85
- --#{$prefix}btn-color: #{$text-color-500};
96
+ --#{$prefix}btn-color: #{$default-color};
86
97
 
87
- --#{$prefix}btn-hover-bg: transparent;
98
+ --#{$prefix}btn-hover-bg: #{$hover-bg-color};
88
99
  --#{$prefix}btn-hover-border-color: transparent;
89
- --#{$prefix}btn-hover-color: #{$text-color-900};
100
+ --#{$prefix}btn-hover-color: #{$default-color};
90
101
 
91
102
  --#{$prefix}btn-focus-bg: transparent;
92
103
  --#{$prefix}btn-focus-border-color: transparent;
93
- --#{$prefix}btn-focus-color: #{$text-color-500};
104
+ --#{$prefix}btn-focus-color: #{$default-color};
94
105
 
95
- --#{$prefix}btn-active-bg: transparent;
106
+ --#{$prefix}btn-active-bg: #{$active-bg-color};
96
107
  --#{$prefix}btn-active-border-color: transparent;
97
- --#{$prefix}btn-active-color: #{$text-color-700};
108
+ --#{$prefix}btn-active-color: #{$default-color};
98
109
 
99
110
  --#{$prefix}btn-disabled-bg: transparent;
100
111
  --#{$prefix}btn-disabled-border-color: transparent;
101
- --#{$prefix}btn-disabled-color: #{$text-color-100};
112
+ --#{$prefix}btn-disabled-color: #{$disable-color};
102
113
 
103
114
  --#{$prefix}btn-focus-outline-offset: 0;
104
115
 
@@ -106,7 +117,7 @@
106
117
  --#{$prefix}btn-disabled-opacity: 1;
107
118
  --#{$prefix}btn-disabled-bg: transparent;
108
119
  --#{$prefix}btn-disabled-border-color: transparent;
109
- --#{$prefix}btn-disabled-color: var(--#{$prefix}#{$color-name}-600);
120
+ --#{$prefix}btn-disabled-color: #{$default-color};
110
121
  }
111
122
  }
112
123
  // scss-docs-end df-btn-link-variant-mixin
@@ -17,6 +17,7 @@ $alert-dismissible-padding-r: $alert-padding-x * 3 !default; // 3x covers width
17
17
  // custom
18
18
  $alert-gap: $spacer-3 !default;
19
19
  $alert-box-shadow: var(--#{$prefix}box-shadow-sm) !default;
20
+ $alert-close-icon-size: .75rem !default;
20
21
  // end custom
21
22
  // scss-docs-end alert-variables
22
23
 
@@ -4,18 +4,18 @@
4
4
 
5
5
  // scss-docs-start btn-variables
6
6
  $btn-color: var(--#{$prefix}body-color) !default;
7
- $btn-padding-y: $small-font-size !default;
8
- $btn-padding-x: $spacer-4 !default;
7
+ $btn-padding-y: $spacer-2 !default;
8
+ $btn-padding-x: $spacer-3 !default;
9
9
  $btn-font-family: $input-btn-font-family !default;
10
10
  $btn-font-size: $input-btn-font-size !default;
11
- $btn-line-height: 1rem !default;
11
+ $btn-line-height: $line-height-base * 1rem !default;
12
12
  $btn-white-space: null !default; // Set to `nowrap` to prevent text wrapping
13
13
 
14
- $btn-padding-y-sm: .625rem !default;
15
- $btn-padding-x-sm: $spacer-4 !default;
14
+ $btn-padding-y-sm: $spacer-1 !default;
15
+ $btn-padding-x-sm: $spacer-3 !default;
16
16
  $btn-font-size-sm: $small-font-size !default;
17
17
 
18
- $btn-padding-y-lg: 1.125rem !default;
18
+ $btn-padding-y-lg: .875rem !default;
19
19
  $btn-padding-x-lg: $spacer-4 !default;
20
20
  $btn-font-size-lg: $h6-font-size !default;
21
21
 
@@ -25,19 +25,13 @@ $btn-font-weight: $font-weight-normal !default;
25
25
  $btn-box-shadow: none !default;
26
26
  $btn-focus-width: 0 !default;
27
27
  $btn-focus-box-shadow: none !default;
28
- $btn-disabled-opacity: .5 !default;
28
+ $btn-disabled-opacity: 1 !default;
29
29
  $btn-active-box-shadow: none !default;
30
30
 
31
31
  $btn-link-color: var(--#{$prefix}link-color) !default;
32
32
  $btn-link-hover-color: var(--#{$prefix}link-hover-color) !default;
33
33
  $btn-link-disabled-color: $gray-600 !default;
34
34
 
35
- // custom
36
- $btn-link-padding-y: $spacer-2 !default;
37
- $btn-link-padding-x: $spacer-2 !default;
38
- $btn-link-font-size-sm: $small-font-size !default;
39
- // end custom
40
-
41
35
  $btn-border-radius: $border-radius-sm !default;
42
36
  $btn-border-radius-sm: $border-radius-sm !default;
43
37
  $btn-border-radius-lg: $border-radius-lg !default;
@@ -80,7 +80,7 @@ $bg-soft-colors: (
80
80
  $min-contrast-ratio: 4.5 !default;
81
81
 
82
82
  // Customize the light and dark text colors for use in our color contrast function.
83
- $color-contrast-dark: $gray-900 !default;
83
+ $color-contrast-dark: $gray-700 !default;
84
84
  $color-contrast-light: $white !default;
85
85
 
86
86
  // fusv-disable
@@ -37,7 +37,7 @@
37
37
  @import "d-quick-action-check";
38
38
  @import "d-quick-action-switch";
39
39
  @import "d-progress";
40
- @import "d-alert";
40
+ @import "d-toast";
41
41
  @import "d-badge";
42
42
  @import "d-chip";
43
43
  @import "d-modal";
@@ -14,10 +14,7 @@
14
14
  --#{$prefix}btn-box-shadow: #{$btn-box-shadow};
15
15
  --#{$prefix}btn-disabled-opacity: #{$btn-disabled-opacity};
16
16
  --#{$prefix}btn-focus-box-shadow: 0 0 0 #{$btn-focus-width} rgba(var(--#{$prefix}btn-focus-shadow-rgb), .5);
17
-
18
- --#{$prefix}btn-link-padding-y: #{$btn-link-padding-y};
19
- --#{$prefix}btn-link-padding-x: #{$btn-link-padding-x};
20
- @include rfs($btn-link-font-size-sm, --#{$prefix}btn-link-font-size-sm);
17
+ --#{$prefix}btn–text-decoration: if($link-decoration == none, null, none);
21
18
 
22
19
  --#{$prefix}btn-lg-padding-y: #{$btn-padding-y-lg};
23
20
  --#{$prefix}btn-lg-padding-x: #{$btn-padding-x-lg};
@@ -29,7 +26,6 @@
29
26
  --#{$prefix}btn-sm-font-size: #{$btn-font-size-sm};
30
27
  --#{$prefix}btn-sm-border-radius: var(--#{$prefix}btn-component-sm-border-radius, #{$btn-border-radius-sm});
31
28
 
32
-
33
29
  display: flex;
34
30
  flex-direction: row;
35
31
  gap: var(--#{$prefix}btn-gap, $spacer-2);
@@ -42,7 +38,7 @@
42
38
  line-height: var(--#{$prefix}btn-line-height);
43
39
  color: var(--#{$prefix}btn-color);
44
40
  text-align: center;
45
- text-decoration: if($link-decoration == none, null, none);
41
+ text-decoration: none;
46
42
  white-space: $btn-white-space;
47
43
  vertical-align: middle;
48
44
  cursor: if($enable-button-pointers, pointer, null);
@@ -53,11 +49,14 @@
53
49
  @include box-shadow(var(--#{$prefix}btn-box-shadow));
54
50
  @include transition($btn-transition);
55
51
 
52
+ > span {
53
+ text-decoration: var(--#{$prefix}btn-text-decoration);
54
+ }
55
+
56
56
  // hover selectors
57
57
  &:hover,
58
58
  &.hover {
59
59
  color: var(--#{$prefix}btn-hover-color);
60
- text-decoration: if($link-hover-decoration == underline, none, null);
61
60
  background-color: var(--#{$prefix}btn-hover-bg);
62
61
  border-color: var(--#{$prefix}btn-hover-border-color);
63
62
  }
@@ -74,9 +73,9 @@
74
73
  &:focus-visible,
75
74
  &.focus-visible {
76
75
  // copy of .btn:focus bootstrap + focus var
77
- color: var(var(--#{$prefix}btn-focus-color), var(--#{$prefix}btn-hover-color));
78
- @include gradient-bg(var(var(--#{$prefix}btn-focus-bg), var(--#{$prefix}btn-hover-bg)));
79
- border-color: var(var(--#{$prefix}btn-focus-border-color), var(--#{$prefix}btn-hover-border-color));
76
+ color: var(--#{$prefix}btn-focus-color, var(--#{$prefix}btn-hover-color));
77
+ @include gradient-bg(var(--#{$prefix}btn-focus-bg, var(--#{$prefix}btn-hover-bg)));
78
+ border-color: var(--#{$prefix}btn-focus-border-color, var(--#{$prefix}btn-hover-border-color));
80
79
  // end copy
81
80
 
82
81
  outline: var(--#{$prefix}btn-focus-border-width, var(--#{$prefix}btn-border-width)) solid var(--#{$prefix}btn-focus-outline-color, var(--#{$prefix}focus-ring-color));
@@ -130,29 +129,9 @@
130
129
  .btn-outline-#{$color} {
131
130
  @include df-button-outline-variant($color);
132
131
  }
133
- }
134
132
 
135
- @each $color, $value in $theme-colors {
136
133
  .btn-link-#{$color} {
137
- @if $color == "light" {
138
- @include df-button-link-variant(
139
- $color,
140
- $text-color-100: var(--#{$prefix}light),
141
- $text-color-500: var(--#{$prefix}light),
142
- $text-color-700: var(--#{$prefix}light),
143
- $text-color-900: var(--#{$prefix}light),
144
- );
145
- } @else if $color == "dark" {
146
- @include df-button-link-variant(
147
- $color,
148
- $text-color-100: var(--#{$prefix}dark),
149
- $text-color-500: var(--#{$prefix}dark),
150
- $text-color-700: var(--#{$prefix}dark),
151
- $text-color-900: var(--#{$prefix}dark),
152
- );
153
- } @else {
154
- @include df-button-link-variant($color);
155
- }
134
+ @include df-button-link-variant($color);
156
135
  }
157
136
  }
158
137
 
@@ -174,16 +153,8 @@
174
153
  );
175
154
  }
176
155
 
177
- [class^="btn-link"] {
178
- text-decoration: var(--#{$prefix}link-decoration);
179
-
180
- > span {
181
- text-decoration: var(--#{$prefix}link-decoration);
182
- }
183
-
184
- &.btn-sm {
185
- @include font-size(var(--#{$prefix}btn-link-font-size-sm));
186
- }
156
+ [class*="btn-link-"] {
157
+ --#{$prefix}btn-text-decoration: var(--#{$prefix}link-decoration);
187
158
 
188
159
  @if $enable-gradients {
189
160
  background-image: none;
@@ -9,7 +9,7 @@
9
9
  --#{$prefix}chip-font-weight: #{$chip-font-weight};
10
10
  --#{$prefix}chip-line-height: #{$chip-line-height};
11
11
 
12
- display: flex;
12
+ display: inline-flex;
13
13
  flex-direction: row;
14
14
  gap: var(--#{$prefix}chip-gap);
15
15
  align-items: center;
@@ -27,6 +27,7 @@
27
27
  --#{$prefix}datepicker-month-gap: var(--#{$prefix}ref-fs-small);
28
28
  --#{$prefix}datepicker-month-padding: var(--#{$prefix}ref-spacer-3) var(--#{$prefix}ref-spacer-4) var(--#{$prefix}ref-spacer-4);
29
29
  --#{$prefix}datepicker-month-margin: 0;
30
+ --#{$prefix}datepicker-month-color: var(--#{$prefix}white);
30
31
 
31
32
  --#{$prefix}datepicker-week-gap: 1.875rem;
32
33
 
@@ -93,6 +94,14 @@
93
94
  }
94
95
  }
95
96
 
97
+ &.d-month-picker {
98
+ .react-datepicker__month-container {
99
+ .d-icon {
100
+ --#{$prefix}icon-component-color: var(--#{$prefix}datepicker-month-color);
101
+ }
102
+ }
103
+ }
104
+
96
105
  .react-datepicker__month {
97
106
  display: flex;
98
107
  flex-direction: column;
@@ -39,9 +39,7 @@
39
39
  color: var(--#{$prefix}input-pin-label-color);
40
40
 
41
41
  .d-input-pin-icon {
42
- .d-icon {
43
- --#{$prefix}icon-color: var(--#{$prefix}focus-ring-color);
44
- }
42
+ --#{$prefix}icon-color: var(--#{$prefix}focus-ring-color);
45
43
  }
46
44
  }
47
45
 
@@ -99,9 +97,7 @@
99
97
  }
100
98
 
101
99
  .d-input-pin-validation-icon {
102
- .d-icon {
103
- --#{$prefix}icon-color: #{$tooltip-bg-color};
104
- }
100
+ --#{$prefix}icon-color: #{$tooltip-bg-color};
105
101
  }
106
102
  }
107
103
  }
@@ -3,12 +3,19 @@
3
3
  --#{$prefix}input-group-border-color: var(--#{$prefix}input-group-hover-border-color);
4
4
  }
5
5
 
6
+ .form-floating:not(:last-child) {
7
+ .form-select {
8
+ padding-right: $form-select-padding-x * 2;
9
+ background-position: right center;
10
+ }
11
+ }
12
+
6
13
  .form-select {
7
14
  text-align: var(--#{$prefix}input-form-control-text-align);
8
15
  border-width: 0;
9
16
  box-shadow: none;
10
17
 
11
- &:not(:last-child) {
18
+ &:not(:last-child, .floating-label) {
12
19
  padding-right: $form-select-padding-x * 2;
13
20
  background-position: right center;
14
21
  }
@@ -3,6 +3,7 @@
3
3
  --#{$prefix}alert-box-shadow: #{$alert-box-shadow};
4
4
  --#{$prefix}alert-icon-color: var(--#{$prefix}alert-component-icon-color, var(--#{$prefix}alert-color));
5
5
  --#{$prefix}alert-separator-opacity: var(--#{$prefix}alert-component-separator-opacity);
6
+ --#{$prefix}alert-close-icon-size: #{$alert-close-icon-size};
6
7
 
7
8
  display: flex;
8
9
  flex-direction: row;
@@ -25,12 +26,13 @@
25
26
  --#{$prefix}btn-close-bg: transparent;
26
27
  }
27
28
 
28
- .alert-icon .d-icon {
29
+ .alert-icon.d-icon {
29
30
  --#{$prefix}icon-color: var(--#{$prefix}alert-icon-color);
30
31
  }
31
32
 
32
33
  .alert-close-icon {
33
34
  --#{$prefix}icon-color: var(--#{$prefix}alert-icon-color);
35
+ --#{$prefix}icon-size: var(--#{$prefix}alert-close-icon-size);
34
36
  }
35
37
 
36
38
  @each $theme, $value in $theme-colors {
@@ -42,4 +44,22 @@
42
44
  --#{$prefix}alert-link-color: #{$color};
43
45
  }
44
46
  }
47
+
48
+ &.alert-box {
49
+ --#{$prefix}alert-color: var(--#{$prefix}gray-900);
50
+
51
+ border-width: 0 0 0 5px;
52
+
53
+ @each $theme, $value in $alert-boxes {
54
+ $background: nth($value, 1);
55
+ $color: nth($value, 2);
56
+
57
+ &.alert-box-#{$theme} {
58
+ --#{$prefix}alert-icon-color: #{$color};
59
+ --#{$prefix}alert-border-color: #{$color};
60
+
61
+ --#{$prefix}alert-bg: #{$background};
62
+ }
63
+ }
64
+ }
45
65
  }
@@ -1,2 +0,0 @@
1
- import DAlert from './DAlert';
2
- export default DAlert;