@dynamic-framework/ui-react 1.36.2 → 2.0.0-dev.2

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 (165) hide show
  1. package/dist/css/dynamic-ui-non-root.css +7220 -3665
  2. package/dist/css/dynamic-ui-non-root.min.css +2 -2
  3. package/dist/css/dynamic-ui-root.css +799 -127
  4. package/dist/css/dynamic-ui-root.min.css +2 -2
  5. package/dist/css/dynamic-ui.css +8012 -3785
  6. package/dist/css/dynamic-ui.min.css +2 -2
  7. package/dist/index.esm.js +250 -305
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +275 -314
  10. package/dist/index.js.map +1 -1
  11. package/dist/js/bootstrap.bundle.js +3 -6
  12. package/dist/js/bootstrap.bundle.min.js +2 -2
  13. package/dist/js/bootstrap.esm.js +3 -6
  14. package/dist/js/bootstrap.esm.min.js +2 -2
  15. package/dist/js/bootstrap.js +3 -6
  16. package/dist/js/bootstrap.min.js +2 -2
  17. package/dist/types/components/DAlert/DAlert.d.ts +3 -3
  18. package/dist/types/components/DAvatar/DAvatar.d.ts +1 -3
  19. package/dist/types/components/DBadge/DBadge.d.ts +4 -3
  20. package/dist/types/components/DBarChart/DBarChart.d.ts +9 -0
  21. package/dist/types/components/DBox/DBox.d.ts +5 -0
  22. package/dist/types/components/DBox/index.d.ts +2 -0
  23. package/dist/types/components/DBoxFile/useDBoxFile.d.ts +2 -2
  24. package/dist/types/components/DButton/DButton.d.ts +6 -5
  25. package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +3 -3
  26. package/dist/types/components/DCarousel/components/DCarouselSlide.d.ts +3 -1
  27. package/dist/types/components/DChip/DChip.d.ts +3 -3
  28. package/dist/types/components/DCollapse/DCollapse.d.ts +2 -2
  29. package/dist/types/components/DCreditCard/DCreditCard.d.ts +12 -0
  30. package/dist/types/components/DCreditCard/index.d.ts +2 -0
  31. package/dist/types/components/DDatePicker/DDatePicker.d.ts +3 -3
  32. package/dist/types/components/DDatePicker/components/DDatePickerHeaderSelector.d.ts +2 -4
  33. package/dist/types/components/DDropdown/DDropdown.d.ts +20 -0
  34. package/dist/types/components/DDropdown/index.d.ts +2 -0
  35. package/dist/types/components/DIconBase/DIconBase.d.ts +4 -8
  36. package/dist/types/components/DInput/DInput.d.ts +2 -2
  37. package/dist/types/components/DInputCounter/DInputCounter.d.ts +2 -2
  38. package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +3 -3
  39. package/dist/types/components/DInputMask/DInputMask.d.ts +1 -1
  40. package/dist/types/components/DInputPhone/DInputPhone.d.ts +2 -2
  41. package/dist/types/components/DInputPin/DInputPin.d.ts +3 -3
  42. package/dist/types/components/DInputRange/DInputRange.d.ts +2 -2
  43. package/dist/types/components/DInputSelect/DInputSelect.d.ts +3 -3
  44. package/dist/types/components/DLayout/DLayout.d.ts +11 -0
  45. package/dist/types/components/DLayout/components/DLayoutPane.d.ts +13 -0
  46. package/dist/types/components/DLayout/index.d.ts +3 -0
  47. package/dist/types/components/DListGroup/components/DListGroupItem.d.ts +4 -4
  48. package/dist/types/components/DMinimalLineChart/DMinimalLineChart.d.ts +9 -0
  49. package/dist/types/components/DMultiLineChart/DMultiLineChart.d.ts +9 -0
  50. package/dist/types/components/DOtp/DOtp.d.ts +16 -0
  51. package/dist/types/components/DOtp/DOtpspec.d.ts +0 -0
  52. package/dist/types/components/DOtp/components/OtpCountdown.d.ts +7 -0
  53. package/dist/types/components/DOtp/hooks/useCountdown.d.ts +4 -0
  54. package/dist/types/components/DOtp/index.d.ts +2 -0
  55. package/dist/types/components/DPaginator/DPaginator.d.ts +2 -27
  56. package/dist/types/components/DPieChart/DPieChart.d.ts +9 -0
  57. package/dist/types/components/DPopover/DPopover.d.ts +1 -1
  58. package/dist/types/components/DProgress/DProgress.d.ts +2 -1
  59. package/dist/types/components/DRadialBarChart/DRadialBarChart.d.ts +6 -0
  60. package/dist/types/components/DSelect/DSelect.d.ts +3 -3
  61. package/dist/types/components/DTabs/DTabs.d.ts +2 -2
  62. package/dist/types/components/DTimeline/DTimeline.d.ts +15 -0
  63. package/dist/types/components/DTimeline/index.d.ts +2 -0
  64. package/dist/types/components/DToastContainer/useDToast.d.ts +2 -2
  65. package/dist/types/components/DTooltip/DTooltip.d.ts +1 -2
  66. package/dist/types/components/index.d.ts +5 -8
  67. package/dist/types/components/interface.d.ts +3 -8
  68. package/dist/types/contexts/DContext.d.ts +0 -2
  69. package/dist/types/hooks/tests/useDisableBodyScrollEffect.spec.d.ts +1 -0
  70. package/dist/types/hooks/tests/useDisableInputWheel.spec.d.ts +1 -0
  71. package/dist/types/hooks/tests/useFormatCurrency.spec.d.ts +1 -0
  72. package/dist/types/hooks/tests/useInputCurrency.spec.d.ts +1 -0
  73. package/dist/types/hooks/tests/useItemSelection.spec.d.ts +1 -0
  74. package/dist/types/hooks/tests/useMediaBreakpointUp.spec.d.ts +1 -0
  75. package/dist/types/hooks/tests/useMediaQuery.spec.d.ts +1 -0
  76. package/dist/types/hooks/tests/usePortal.spec.d.ts +1 -0
  77. package/dist/types/hooks/tests/useProvidedRefOrCreate.spec.d.ts +1 -0
  78. package/dist/types/hooks/tests/useStackState.spec.d.ts +1 -0
  79. package/dist/types/hooks/useInputCurrency.d.ts +1 -1
  80. package/dist/types/hooks/useProvidedRefOrCreate.d.ts +1 -1
  81. package/dist/types/types/polymorphic.d.ts +3 -3
  82. package/dist/types/utils/tests/attr-accept.spec.d.ts +1 -0
  83. package/dist/types/utils/tests/changeQueryString.spec.d.ts +1 -0
  84. package/dist/types/utils/tests/configureI18n.spec.d.ts +1 -0
  85. package/dist/types/utils/tests/formatCurrency.spec.d.ts +1 -0
  86. package/dist/types/utils/tests/getCssVariable.spec.d.ts +1 -0
  87. package/dist/types/utils/tests/getKeyboardFocusableElements.spec.d.ts +1 -0
  88. package/dist/types/utils/tests/getQueryString.spec.d.ts +1 -0
  89. package/dist/types/utils/tests/mediaQuery.spec.d.ts +1 -0
  90. package/dist/types/utils/tests/validatePhoneNumber.spec.d.ts +1 -0
  91. package/jest/setup.js +94 -1
  92. package/package.json +32 -30
  93. package/src/style/_shame.scss +42 -1
  94. package/src/style/abstracts/_mixins.scss +1 -3
  95. package/src/style/abstracts/_utilities.scss +51 -1
  96. package/src/style/abstracts/variables/_+import.scss +3 -2
  97. package/src/style/abstracts/variables/_alerts.scss +2 -0
  98. package/src/style/abstracts/variables/_body.scss +10 -3
  99. package/src/style/abstracts/variables/_border.scss +5 -5
  100. package/src/style/abstracts/variables/_buttons.scss +17 -11
  101. package/src/style/abstracts/variables/_cards.scss +6 -4
  102. package/src/style/abstracts/variables/_chips.scss +2 -2
  103. package/src/style/abstracts/variables/_colors.scss +140 -69
  104. package/src/style/abstracts/variables/_datepicker.scss +10 -9
  105. package/src/style/abstracts/variables/_dropdowns.scss +6 -4
  106. package/src/style/abstracts/variables/_forms.scss +4 -4
  107. package/src/style/abstracts/variables/_list-group.scss +2 -2
  108. package/src/style/abstracts/variables/_modals.scss +4 -3
  109. package/src/style/abstracts/variables/_offcanvas.scss +1 -0
  110. package/src/style/abstracts/variables/_pagination.scss +4 -4
  111. package/src/style/abstracts/variables/_shadow.scss +1 -0
  112. package/src/style/abstracts/variables/_tables.scss +8 -3
  113. package/src/style/abstracts/variables/_tooltip.scss +1 -1
  114. package/src/style/abstracts/variables/_typography.scss +7 -7
  115. package/src/style/base/_+import.scss +1 -0
  116. package/src/style/base/_alert.scss +1 -27
  117. package/src/style/base/_badge.scss +50 -12
  118. package/src/style/base/_buttons.scss +143 -23
  119. package/src/style/base/_dropdown.scss +18 -0
  120. package/src/style/base/_input-group.scss +5 -0
  121. package/src/style/base/_list-group.scss +6 -0
  122. package/src/style/base/_pagination.scss +2 -0
  123. package/src/style/base/_tables.scss +4 -0
  124. package/src/style/base/_tooltip.scss +1 -10
  125. package/src/style/components/_+import.scss +4 -4
  126. package/src/style/components/_d-avatar.scss +2 -20
  127. package/src/style/components/_d-box.scss +13 -0
  128. package/src/style/components/_d-carousel.scss +19 -1
  129. package/src/style/components/_d-credit-card.scss +67 -0
  130. package/src/style/components/_d-datepicker.scss +64 -26
  131. package/src/style/components/_d-icon.scss +10 -3
  132. package/src/style/components/_d-modal.scss +3 -0
  133. package/src/style/components/_d-stepper-desktop.scss +61 -65
  134. package/src/style/components/_d-stepper-mobile.scss +2 -2
  135. package/src/style/components/_d-tabs.scss +37 -0
  136. package/src/style/components/_d-timeline.scss +108 -0
  137. package/src/style/helpers/_color-bg.scss +13 -3
  138. package/src/style/root/_root.scss +35 -18
  139. package/dist/css/bootstrap-icons.css +0 -2106
  140. package/dist/css/bootstrap-icons.json +0 -2080
  141. package/dist/css/bootstrap-icons.min.css +0 -5
  142. package/dist/css/bootstrap-icons.scss +0 -2118
  143. package/dist/css/fonts/bootstrap-icons.woff +0 -0
  144. package/dist/css/fonts/bootstrap-icons.woff2 +0 -0
  145. package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +0 -26
  146. package/dist/types/components/DInputCurrencyBase/index.d.ts +0 -2
  147. package/dist/types/components/DInputSearch/DInputSearch.d.ts +0 -17
  148. package/dist/types/components/DInputSearch/index.d.ts +0 -2
  149. package/dist/types/components/DList/DList.d.ts +0 -17
  150. package/dist/types/components/DList/components/DListItem.d.ts +0 -13
  151. package/dist/types/components/DList/index.d.ts +0 -3
  152. package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +0 -20
  153. package/dist/types/components/DQuickActionButton/index.d.ts +0 -2
  154. package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +0 -17
  155. package/dist/types/components/DQuickActionCheck/index.d.ts +0 -2
  156. package/dist/types/components/DQuickActionSelect/DQuickActionSelect.d.ts +0 -13
  157. package/dist/types/components/DQuickActionSelect/index.d.ts +0 -2
  158. package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +0 -15
  159. package/dist/types/components/DQuickActionSwitch/index.d.ts +0 -2
  160. package/dist/types/components/DSkeleton/DSkeleton.d.ts +0 -11
  161. package/dist/types/components/DSkeleton/index.d.ts +0 -2
  162. package/src/style/components/_d-quick-action-button.scss +0 -121
  163. package/src/style/components/_d-quick-action-check.scss +0 -74
  164. package/src/style/components/_d-quick-action-select.scss +0 -58
  165. package/src/style/components/_d-quick-action-switch.scss +0 -64
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/jest/setup.js CHANGED
@@ -1,6 +1,99 @@
1
+ /* eslint-disable react/prop-types */
2
+ const React = require('react');
3
+
1
4
  jest.mock('react-content-loader', () => jest.fn());
2
5
 
3
- jest.mock('react-responsive-pagination', () => jest.fn());
6
+ jest.mock('react-responsive-pagination', () => {
7
+ function MockPagination(props) {
8
+ const {
9
+ current,
10
+ total,
11
+ onPageChange,
12
+ className = '',
13
+ } = props;
14
+
15
+ const handleClick = React.useCallback(
16
+ (page) => {
17
+ if (page !== current && page >= 1 && page <= total) {
18
+ onPageChange(page);
19
+ }
20
+ },
21
+ [current, total, onPageChange],
22
+ );
23
+
24
+ return React.createElement('div', {
25
+ className,
26
+ 'data-testid': 'responsive-pagination',
27
+ }, [
28
+ React.createElement('button', {
29
+ type: 'button',
30
+ key: 'prev',
31
+ onClick: () => handleClick(current - 1),
32
+ disabled: current === 1,
33
+ 'data-testid': 'pagination-previous',
34
+ }, 'Previous'),
35
+
36
+ ...(function getPageButtons() {
37
+ const pageButtons = [];
38
+ const windowSize = 2; // Show current ±2
39
+ const startPage = Math.max(1, current - windowSize);
40
+ const endPage = Math.min(total, current + windowSize);
41
+ // Always show first page
42
+ if (startPage > 1) {
43
+ pageButtons.push(React.createElement('button', {
44
+ key: 1,
45
+ type: 'button',
46
+ onClick: () => handleClick(1),
47
+ 'data-testid': 'pagination-page-1',
48
+ 'aria-current': current === 1 ? 'page' : undefined,
49
+ style: { fontWeight: current === 1 ? 'bold' : 'normal' },
50
+ }, 1));
51
+ if (startPage > 2) {
52
+ pageButtons.push(React.createElement('span', { key: 'start-ellipsis', style: { margin: '0 4px' } }, '...'));
53
+ }
54
+ }
55
+ // Window of page buttons
56
+ for (let page = startPage; page <= endPage; page += 1) {
57
+ if (!(page === 1 && startPage > 1)) {
58
+ pageButtons.push(React.createElement('button', {
59
+ key: page,
60
+ type: 'button',
61
+ onClick: () => handleClick(page),
62
+ 'data-testid': `pagination-page-${page}`,
63
+ 'aria-current': page === current ? 'page' : undefined,
64
+ style: { fontWeight: page === current ? 'bold' : 'normal' },
65
+ }, page));
66
+ }
67
+ }
68
+ // Always show last page
69
+ if (endPage < total) {
70
+ if (endPage < total - 1) {
71
+ pageButtons.push(React.createElement('span', { key: 'end-ellipsis', style: { margin: '0 4px' } }, '...'));
72
+ }
73
+ pageButtons.push(React.createElement('button', {
74
+ key: total,
75
+ type: 'button',
76
+ onClick: () => handleClick(total),
77
+ 'data-testid': `pagination-page-${total}`,
78
+ 'aria-current': total === current ? 'page' : undefined,
79
+ style: { fontWeight: total === current ? 'bold' : 'normal' },
80
+ }, total));
81
+ }
82
+ return pageButtons;
83
+ }()),
84
+
85
+ React.createElement('button', {
86
+ key: 'next',
87
+ type: 'button',
88
+ onClick: () => handleClick(current + 1),
89
+ disabled: current === total,
90
+ 'data-testid': 'pagination-next',
91
+ }, 'Next'),
92
+ ]);
93
+ }
94
+
95
+ return MockPagination;
96
+ });
4
97
 
5
98
  jest.mock('@react-input/mask', () => ({
6
99
  InputMask: jest.fn(),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sideEffects": [
4
4
  "*.css"
5
5
  ],
6
- "version": "1.36.2",
6
+ "version": "2.0.0-dev.2",
7
7
  "description": "React Dynamic Framework",
8
8
  "license": "https://github.com/dynamic-framework/dynamic-ui/blob/master/libraries/dynamic-ui-react/LICENSE.md",
9
9
  "repository": {
@@ -49,6 +49,11 @@
49
49
  "build:react:watch": "tsc -p ./tsconfig.build.json && rollup -c rollup.config.mjs",
50
50
  "build:scss": "node scripts/build-scss.js",
51
51
  "build:scss:watch": "npx nodemon --watch src --ext scss --exec 'npm run build:scss'",
52
+ "dev:ts": "tsc -p tsconfig.build.json",
53
+ "dev:rollup": "rollup -c rollup.config.mjs",
54
+ "dev:scss": "node scripts/build-scss.js",
55
+ "build:once": "npm run dev:ts && npm run dev:rollup && sleep 0.5 && npm run dev:scss && yalc push",
56
+ "watch:ds": "npx nodemon --watch src --ext ts,tsx,scss --delay 1000ms --exec \"npm run build:once\"",
52
57
  "cp": "npm run cp:bootstrap && npm run cp:popper && npm run cp:bootstrap-icons",
53
58
  "cp:bootstrap": "scripts/cp-boostrap.sh",
54
59
  "cp:bootstrap-icons": "scripts/cp-boostrap-icons.sh",
@@ -67,12 +72,13 @@
67
72
  "publish:cdn-version": "node scripts/publish-cdn.js",
68
73
  "publish:cdn-latest": "aws s3 sync ./dist/ s3://dynamicframework-cdn/assets/latest/ui-react --delete --acl public-read",
69
74
  "publish:cdn-rc": "aws s3 sync ./dist/ s3://dynamicframework-cdn/assets/rc/ui-react --delete --acl public-read",
75
+ "publish:cdn-dev": "aws s3 sync ./dist/ s3://dynamicframework-cdn/assets/dev/ui-react --delete --acl public-read",
70
76
  "lint-staged": "lint-staged",
71
- "prepare": "husky install",
77
+ "prepare": "husky",
72
78
  "commitlint": "commitlint --edit"
73
79
  },
74
80
  "engines": {
75
- "node": ">=20.13.1"
81
+ "node": ">=22.0.0"
76
82
  },
77
83
  "main": "./dist/index.js",
78
84
  "module": "./dist/index.esm.js",
@@ -94,7 +100,7 @@
94
100
  "file-selector": "^2.1.2",
95
101
  "google-libphonenumber": "^3.2.40",
96
102
  "i18next": "~23.6.0",
97
- "react-content-loader": "~6.2.1",
103
+ "lucide-react": "^0.548.0",
98
104
  "react-datepicker": "~8.3.0",
99
105
  "react-international-phone": "~4.5.0",
100
106
  "react-responsive-pagination": "^2.9.0",
@@ -110,27 +116,21 @@
110
116
  "@mdx-js/react": "~2.3.0",
111
117
  "@popperjs/core": "~2.11.8",
112
118
  "@rollup/plugin-node-resolve": "^15.3.0",
113
- "@storybook/addon-a11y": "~8.2.9",
114
- "@storybook/addon-actions": "~8.2.9",
115
- "@storybook/addon-essentials": "~8.2.9",
116
- "@storybook/addon-interactions": "~8.2.9",
117
- "@storybook/addon-links": "~8.2.9",
118
- "@storybook/addon-viewport": "~8.2.9",
119
- "@storybook/blocks": "~8.2.9",
120
- "@storybook/react": "~8.2.9",
121
- "@storybook/react-vite": "~8.2.9",
122
- "@storybook/test": "~8.2.9",
123
- "@storybook/theming": "~8.2.9",
124
- "@testing-library/jest-dom": "~6.1.4",
125
- "@testing-library/react": "~14.0.0",
119
+ "@storybook/addon-a11y": "~9.0.17",
120
+ "@storybook/addon-docs": "~9.0.17",
121
+ "@storybook/addon-links": "~9.0.17",
122
+ "@storybook/react-vite": "~9.0.17",
123
+ "@testing-library/jest-dom": "~6.6.3",
124
+ "@testing-library/react": "~16.3.0",
126
125
  "@testing-library/user-event": "^14.6.1",
127
- "@types/google-libphonenumber": "^7.4.30",
126
+ "@types/google-libphonenumber": "~7.4.30",
128
127
  "@types/jest": "~29.5.12",
129
128
  "@types/node": "~18.15.3",
130
- "@types/react": "~18.2.31",
131
- "@types/react-dom": "~18.2.14",
129
+ "@types/react": "~19.1.8",
130
+ "@types/react-dom": "~19.1.6",
132
131
  "@typescript-eslint/eslint-plugin": "~6.9.0",
133
132
  "@typescript-eslint/parser": "~6.9.0",
133
+ "@vitejs/plugin-react": "~4.7.0",
134
134
  "autoprefixer": "~10.4.16",
135
135
  "axe-playwright": "~1.2.3",
136
136
  "babel-jest": "^29.7.0",
@@ -144,37 +144,39 @@
144
144
  "eslint-plugin-jsx-a11y": "~6.7.1",
145
145
  "eslint-plugin-react": "~7.33.2",
146
146
  "eslint-plugin-react-hooks": "~4.6.0",
147
- "formik": "^2.4.6",
147
+ "formik": "~2.4.6",
148
148
  "glob": "~10.3.10",
149
- "husky": "~8.0.3",
149
+ "husky": "~9.1.7",
150
150
  "jest": "~29.7.0",
151
151
  "jest-axe": "~8.0.0",
152
152
  "jest-cli": "~29.7.0",
153
153
  "jest-environment-jsdom": "~29.7.0",
154
154
  "lint-staged": "^15.2.10",
155
155
  "postcss-cli": "~10.1.0",
156
- "react": "~18.3.1",
157
- "react-dom": "~18.2.0",
156
+ "react": "~19.1.0",
157
+ "react-dom": "~19.1.0",
158
158
  "react-hot-toast": "~2.5.2",
159
159
  "react-i18next": "~13.3.1",
160
- "recharts": "~2.12.7",
161
- "rimraf": "~5.0.5",
160
+ "recharts": "~3.1.0",
161
+ "remark-gfm": "~4.0.1",
162
+ "rimraf": "~6.0.1",
162
163
  "rollup": "^4.27.4",
163
164
  "sass": "~1.69.4",
164
- "storybook": "~8.2.9",
165
+ "storybook": "~9.0.17",
165
166
  "stylelint": "^16.16.0",
166
167
  "stylelint-config-twbs-bootstrap": "^16.0.0",
167
168
  "ts-jest": "~29.2.3",
168
169
  "tslib": "~2.6.2",
169
170
  "typescript": "~5.2.2",
171
+ "vite": "^6.4.1",
170
172
  "yup": "^1.6.1"
171
173
  },
172
174
  "peerDependencies": {
173
- "react": "~18.3.1",
174
- "react-dom": "~18.2.0",
175
+ "react": "~19.1.0",
176
+ "react-dom": "~19.1.0",
175
177
  "react-hot-toast": "~2.5.2",
176
178
  "react-i18next": "~13.3.1",
177
- "recharts": "~2.12.7"
179
+ "recharts": "~3.1.0"
178
180
  },
179
181
  "peerDependenciesMeta": {
180
182
  "recharts": {
@@ -1,5 +1,46 @@
1
- // keep empty.
1
+ /* stylelint-disable declaration-no-important */
2
2
 
3
3
  .flex-1 {
4
4
  flex: 1;
5
5
  }
6
+
7
+ .text-muted {
8
+ --#{$prefix}text-muted: var(--#{$prefix}gray-400);
9
+ color: var(--#{$prefix}text-muted) !important;
10
+ }
11
+
12
+ .form-text {
13
+ --#{$prefix}form-text: var(--#{$prefix}gray-400);
14
+ color: var(--#{$prefix}form-text) !important;
15
+ }
16
+
17
+ .spinner-border {
18
+ margin-top: 4px;
19
+ margin-bottom: 4px;
20
+ }
21
+
22
+ th {
23
+ font-weight: var(--#{$prefix}fw-semibold) !important;
24
+ }
25
+
26
+ @media (min-width: 1200px) {
27
+ legend {
28
+ margin-bottom: 1rem;
29
+ font-size: 1.25rem;
30
+ line-height: 1;
31
+ }
32
+ }
33
+
34
+ $container-max-widths: (
35
+ sm: 540px,
36
+ md: 720px,
37
+ lg: 960px,
38
+ xl: 1140px,
39
+ xxl: 1320px
40
+ ) !default;
41
+
42
+ @each $size, $width in $container-max-widths {
43
+ .max-w-#{$size} {
44
+ max-width: $width;
45
+ }
46
+ }
@@ -152,8 +152,6 @@
152
152
 
153
153
  &.loading {
154
154
  --#{$prefix}btn-disabled-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-active-color);
155
- --#{$prefix}btn-disabled-bg: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-active-bg);
156
- --#{$prefix}btn-disabled-border-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-active-border-color);
157
155
  }
158
156
  }
159
157
  // scss-docs-end df-btn-variant-mixin
@@ -170,7 +168,7 @@
170
168
  --#{$prefix}table-striped-color: #{$color};
171
169
  --#{$prefix}table-active-bg: #{unquote("color-mix(in srgb, var(--#{$prefix}#{$background}), var(--#{$prefix}white) #{(100% - $table-bg-scale) * $table-active-bg-factor})")};
172
170
  --#{$prefix}table-active-color: #{$color};
173
- --#{$prefix}table-hover-bg: #{unquote("color-mix(in srgb, var(--#{$prefix}#{$background}), var(--#{$prefix}white) #{(100% - $table-bg-scale) * $table-hover-bg-factor})")};
171
+ --#{$prefix}table-hover-bg: var(--#{$prefix}gray-25);
174
172
  --#{$prefix}table-hover-color: #{$color};
175
173
 
176
174
  color: var(--#{$prefix}table-color);
@@ -30,7 +30,7 @@ $utilities: map-merge(
30
30
  values: map-merge(
31
31
  map-get(map-get($utilities, "background-color"), "values"),
32
32
  map-loop(
33
- map-merge-multiple($theme-colors-palettes, $palette-grays, $bg-surface-colors, $bg-soft-colors),
33
+ map-merge-multiple($theme-colors-palettes, $palette-grays),
34
34
  rgba-css-var,
35
35
  "$key",
36
36
  "bg"
@@ -66,6 +66,12 @@ $utilities: map-merge(
66
66
  responsive: true
67
67
  )
68
68
  ),
69
+ "position": map-merge(
70
+ map-get($utilities, "position"),
71
+ (
72
+ responsive: true
73
+ )
74
+ ),
69
75
  "border-color": map-merge(
70
76
  map-get($utilities, "border-color"),
71
77
  (
@@ -130,6 +136,50 @@ $utilities: map-merge(
130
136
  responsive: true,
131
137
  )
132
138
  ),
139
+ "v-align": (
140
+ property: vertical-align,
141
+ responsive: true,
142
+ class: "v-align",
143
+ values: (
144
+ baseline: baseline,
145
+ top: top,
146
+ bottom: bottom,
147
+ text-top: text-top,
148
+ text-bottom: text-bottom,
149
+ sub: sub,
150
+ super: super,
151
+ middle: middle,
152
+ )
153
+ ),
154
+ "display": (
155
+ property: display,
156
+ responsive: true,
157
+ class: "d",
158
+ values: (
159
+ inline: inline,
160
+ inline-block: inline-block,
161
+ block: block,
162
+ table: table,
163
+ table-row: table-row,
164
+ table-cell: table-cell,
165
+ flex: flex,
166
+ inline-flex: inline-flex,
167
+ none: none,
168
+ grid: grid,
169
+ table-header-group: table-header-group,
170
+ )
171
+ ),
172
+ "text-wrap": (
173
+ property: text-wrap,
174
+ responsive: true,
175
+ class: "text-wrap",
176
+ values: (
177
+ balance: balance,
178
+ normal: normal,
179
+ truncate: truncate,
180
+ wrap: wrap
181
+ )
182
+ ),
133
183
  "body-font-size": (
134
184
  class: "fs-body",
135
185
  responsive: true,
@@ -19,9 +19,9 @@ $focus-ring-width: .25rem !default;
19
19
  $focus-ring-opacity: .25 !default;
20
20
  $focus-ring-blur: 0 !default;
21
21
  // custom
22
- $focus-ring-border-color: var(--#{$prefix}secondary-300-rgb) !default;
22
+ $focus-ring-border-color: transparent !default;
23
23
  $focus-ring-color-mapping: "secondary-rgb" !default;
24
- $focus-ring-color: var(--#{$prefix}focus-ring-color) !default;
24
+ $focus-ring-color: var(--#{$prefix}gray-100) !default;
25
25
  // end custom
26
26
  $focus-ring-box-shadow: 0 0 $focus-ring-blur $focus-ring-width $focus-ring-color !default;
27
27
  // scss-docs-end focus-ring-variables
@@ -66,6 +66,7 @@ $input-btn-border-width: var(--#{$prefix}border-width) !default;
66
66
  @import "buttons";
67
67
  @import "forms";
68
68
  @import "z-index";
69
+ @import "shadow";
69
70
  @import "navs";
70
71
  @import "navbar";
71
72
  @import "dropdowns";
@@ -13,5 +13,7 @@ $alert-color-scale: 100% !default;
13
13
  // custom
14
14
  $alert-gap: var(--#{$prefix}ref-spacer-4) !default;
15
15
  $alert-close-icon-size: var(--#{$prefix}ref-spacer-4) !default;
16
+
17
+
16
18
  // end custom
17
19
  // scss-docs-end alert-variables
@@ -5,8 +5,16 @@
5
5
  // custom
6
6
  $body-color-mapping: "gray-900" !default;
7
7
  $body-color: map-get($all-colors, $body-color-mapping) !default;
8
- $body-bg-mapping: "secondary-soft" !default;
9
- $body-bg: map-get($all-colors, $body-bg-mapping) !default;
8
+
9
+ // $body-bg-mapping: "secondary-soft" !default;
10
+ // $body-bg: map-get($all-colors, $body-bg-mapping) !default;
11
+ // Se mapeaba a la variable css
12
+ // Al final quedaba: --bs-secondary-soft-rgb
13
+
14
+ // WIP: Se asigna el color manualmente
15
+ // este color no existe en la paleta de grises
16
+ // ¿Se tendría que agregar?
17
+ $body-bg: #f5f6fa !default;
10
18
 
11
19
  $body-secondary-color: var(--#{$prefix}body-color-rgb) !default;
12
20
  $body-secondary-bg: var(--#{$prefix}gray-200) !default;
@@ -29,4 +37,3 @@ $link-hover-color: map-get($all-colors, $link-hover-color-mapping) !default;
29
37
  // end custom
30
38
 
31
39
  $link-decoration: none !default;
32
- $link-hover-decoration: underline !default;
@@ -8,10 +8,10 @@ $border-color-translucent: rgba(var(--#{$prefix}black-rgb), .175) !default;
8
8
  // scss-docs-end border-variables
9
9
 
10
10
  // scss-docs-start border-radius-variables
11
- $border-radius: 1rem !default;
12
- $border-radius-sm: .5rem !default;
13
- $border-radius-lg: 1.5rem !default;
14
- $border-radius-xl: 2rem !default;
15
- $border-radius-xxl: 2.5rem !default;
11
+ $border-radius: .5rem !default;
12
+ $border-radius-sm: .25rem !default;
13
+ $border-radius-lg: 1rem !default;
14
+ $border-radius-xl: 1.5rem !default;
15
+ $border-radius-xxl: 2rem !default;
16
16
  $border-radius-pill: 50rem !default;
17
17
  // scss-docs-end border-radius-variables
@@ -4,17 +4,18 @@
4
4
 
5
5
  // scss-docs-start btn-variables
6
6
  $btn-color: var(--#{$prefix}body-color) !default;
7
- $btn-padding-y: $spacer-3 !default;
8
- $btn-padding-x: $spacer-8 !default;
9
- $btn-line-height: 1 !default;
7
+ $btn-padding-y: $spacer-2 !default;
8
+ $btn-padding-x: $spacer-4 !default;
9
+ $btn-line-height: 1.5 !default;
10
+ $btn-font-weight: $font-weight-semibold !default;
10
11
 
11
- $btn-padding-y-sm: $spacer-2 !default;
12
- $btn-padding-x-sm: $spacer-4 !default;
12
+ $btn-padding-y-sm: $spacer-1 !default;
13
+ $btn-padding-x-sm: $spacer-3 !default;
13
14
  $btn-font-size-sm: $small-font-size !default;
14
15
 
15
- $btn-padding-y-lg: $spacer-4 !default;
16
- $btn-padding-x-lg: $spacer-8 !default;
17
- $btn-font-size-lg: $h6-font-size !default;
16
+ $btn-padding-y-lg: $spacer-3 !default;
17
+ $btn-padding-x-lg: $spacer-5 !default;
18
+ $btn-lg-font-size: 1.15rem !default;
18
19
 
19
20
  $btn-border-width: $input-btn-border-width !default;
20
21
 
@@ -22,9 +23,14 @@ $btn-box-shadow: 0 0 0 transparent !default; // to avoid the none in the bootstr
22
23
  $btn-disabled-opacity: .65 !default;
23
24
  $btn-active-box-shadow: 0 0 0 transparent !default; // to avoid the none in the bootstrap box-shadow calculation
24
25
 
25
- $btn-border-radius: var(--#{$prefix}border-radius-pill) !default;
26
- $btn-border-radius-sm: var(--#{$prefix}border-radius-pill) !default;
27
- $btn-border-radius-lg: var(--#{$prefix}border-radius-pill) !default;
26
+ $btn-border-radius: .5rem !default;
27
+ $btn-border-radius-lg: .5rem !default;
28
+ $btn-box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1) !default;
29
+ $btn-border-radius-sm: .25rem !default;
28
30
 
29
31
  $btn-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;
30
32
  // scss-docs-end btn-variables
33
+
34
+ $btn-outline-primary-hover-color: inherit !default;
35
+ $btn-outline-primary-hover-bg: transparent !default;
36
+ $btn-outline-primary-focus-bg: transparent !default;
@@ -1,9 +1,11 @@
1
1
  // Cards
2
2
 
3
3
  // scss-docs-start card-variables
4
- $card-border-width: 0px !default;
5
- $card-box-shadow: var(--#{$prefix}box-shadow-sm) !default;
6
4
  $card-bg: var(--#{$prefix}white) !default;
7
- $card-spacer-y: $spacer-6 !default;
8
- $card-spacer-x: $spacer-6 !default;
5
+ $card-spacer-y: $spacer-4 !default;
6
+ $card-spacer-x: $spacer-4 !default;
7
+ $card-cap-padding-y: $spacer-4 !default;
8
+ $card-cap-bg: transparent !default;
9
+ $card-border-color: var(--#{$prefix}gray-50) !default;
10
+
9
11
  // scss-docs-end card-variables
@@ -5,9 +5,9 @@ $chip-gap: $spacer-1 !default;
5
5
  $chip-bg: var(--#{$prefix}white) !default;
6
6
  $chip-color: var(--#{$prefix}gray-900) !default;
7
7
  $chip-border-radius: $border-radius-pill !default;
8
- $chip-padding-x: $spacer-2 !default;
8
+ $chip-padding-x: $spacer-3 !default;
9
9
  $chip-padding-y: $spacer-1 !default;
10
10
  $chip-font-size: $small-font-size !default;
11
11
  $chip-font-weight: $font-weight-bold !default;
12
- $chip-line-height: $line-height-base * $spacer-4 !default;
12
+ $chip-line-height: $line-height-base !default;
13
13
  // scss-docs-end chip-variables