@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.
- package/dist/css/dynamic-ui-non-root.css +7220 -3665
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +799 -127
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +8012 -3785
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +250 -305
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +275 -314
- package/dist/index.js.map +1 -1
- package/dist/js/bootstrap.bundle.js +3 -6
- package/dist/js/bootstrap.bundle.min.js +2 -2
- package/dist/js/bootstrap.esm.js +3 -6
- package/dist/js/bootstrap.esm.min.js +2 -2
- package/dist/js/bootstrap.js +3 -6
- package/dist/js/bootstrap.min.js +2 -2
- package/dist/types/components/DAlert/DAlert.d.ts +3 -3
- package/dist/types/components/DAvatar/DAvatar.d.ts +1 -3
- package/dist/types/components/DBadge/DBadge.d.ts +4 -3
- package/dist/types/components/DBarChart/DBarChart.d.ts +9 -0
- package/dist/types/components/DBox/DBox.d.ts +5 -0
- package/dist/types/components/DBox/index.d.ts +2 -0
- package/dist/types/components/DBoxFile/useDBoxFile.d.ts +2 -2
- package/dist/types/components/DButton/DButton.d.ts +6 -5
- package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +3 -3
- package/dist/types/components/DCarousel/components/DCarouselSlide.d.ts +3 -1
- package/dist/types/components/DChip/DChip.d.ts +3 -3
- package/dist/types/components/DCollapse/DCollapse.d.ts +2 -2
- package/dist/types/components/DCreditCard/DCreditCard.d.ts +12 -0
- package/dist/types/components/DCreditCard/index.d.ts +2 -0
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +3 -3
- package/dist/types/components/DDatePicker/components/DDatePickerHeaderSelector.d.ts +2 -4
- package/dist/types/components/DDropdown/DDropdown.d.ts +20 -0
- package/dist/types/components/DDropdown/index.d.ts +2 -0
- package/dist/types/components/DIconBase/DIconBase.d.ts +4 -8
- package/dist/types/components/DInput/DInput.d.ts +2 -2
- package/dist/types/components/DInputCounter/DInputCounter.d.ts +2 -2
- package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +3 -3
- package/dist/types/components/DInputMask/DInputMask.d.ts +1 -1
- package/dist/types/components/DInputPhone/DInputPhone.d.ts +2 -2
- package/dist/types/components/DInputPin/DInputPin.d.ts +3 -3
- package/dist/types/components/DInputRange/DInputRange.d.ts +2 -2
- package/dist/types/components/DInputSelect/DInputSelect.d.ts +3 -3
- package/dist/types/components/DLayout/DLayout.d.ts +11 -0
- package/dist/types/components/DLayout/components/DLayoutPane.d.ts +13 -0
- package/dist/types/components/DLayout/index.d.ts +3 -0
- package/dist/types/components/DListGroup/components/DListGroupItem.d.ts +4 -4
- package/dist/types/components/DMinimalLineChart/DMinimalLineChart.d.ts +9 -0
- package/dist/types/components/DMultiLineChart/DMultiLineChart.d.ts +9 -0
- package/dist/types/components/DOtp/DOtp.d.ts +16 -0
- package/dist/types/components/DOtp/DOtpspec.d.ts +0 -0
- package/dist/types/components/DOtp/components/OtpCountdown.d.ts +7 -0
- package/dist/types/components/DOtp/hooks/useCountdown.d.ts +4 -0
- package/dist/types/components/DOtp/index.d.ts +2 -0
- package/dist/types/components/DPaginator/DPaginator.d.ts +2 -27
- package/dist/types/components/DPieChart/DPieChart.d.ts +9 -0
- package/dist/types/components/DPopover/DPopover.d.ts +1 -1
- package/dist/types/components/DProgress/DProgress.d.ts +2 -1
- package/dist/types/components/DRadialBarChart/DRadialBarChart.d.ts +6 -0
- package/dist/types/components/DSelect/DSelect.d.ts +3 -3
- package/dist/types/components/DTabs/DTabs.d.ts +2 -2
- package/dist/types/components/DTimeline/DTimeline.d.ts +15 -0
- package/dist/types/components/DTimeline/index.d.ts +2 -0
- package/dist/types/components/DToastContainer/useDToast.d.ts +2 -2
- package/dist/types/components/DTooltip/DTooltip.d.ts +1 -2
- package/dist/types/components/index.d.ts +5 -8
- package/dist/types/components/interface.d.ts +3 -8
- package/dist/types/contexts/DContext.d.ts +0 -2
- package/dist/types/hooks/tests/useDisableBodyScrollEffect.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useDisableInputWheel.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useFormatCurrency.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useInputCurrency.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useItemSelection.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useMediaBreakpointUp.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useMediaQuery.spec.d.ts +1 -0
- package/dist/types/hooks/tests/usePortal.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useProvidedRefOrCreate.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useStackState.spec.d.ts +1 -0
- package/dist/types/hooks/useInputCurrency.d.ts +1 -1
- package/dist/types/hooks/useProvidedRefOrCreate.d.ts +1 -1
- package/dist/types/types/polymorphic.d.ts +3 -3
- package/dist/types/utils/tests/attr-accept.spec.d.ts +1 -0
- package/dist/types/utils/tests/changeQueryString.spec.d.ts +1 -0
- package/dist/types/utils/tests/configureI18n.spec.d.ts +1 -0
- package/dist/types/utils/tests/formatCurrency.spec.d.ts +1 -0
- package/dist/types/utils/tests/getCssVariable.spec.d.ts +1 -0
- package/dist/types/utils/tests/getKeyboardFocusableElements.spec.d.ts +1 -0
- package/dist/types/utils/tests/getQueryString.spec.d.ts +1 -0
- package/dist/types/utils/tests/mediaQuery.spec.d.ts +1 -0
- package/dist/types/utils/tests/validatePhoneNumber.spec.d.ts +1 -0
- package/jest/setup.js +94 -1
- package/package.json +32 -30
- package/src/style/_shame.scss +42 -1
- package/src/style/abstracts/_mixins.scss +1 -3
- package/src/style/abstracts/_utilities.scss +51 -1
- package/src/style/abstracts/variables/_+import.scss +3 -2
- package/src/style/abstracts/variables/_alerts.scss +2 -0
- package/src/style/abstracts/variables/_body.scss +10 -3
- package/src/style/abstracts/variables/_border.scss +5 -5
- package/src/style/abstracts/variables/_buttons.scss +17 -11
- package/src/style/abstracts/variables/_cards.scss +6 -4
- package/src/style/abstracts/variables/_chips.scss +2 -2
- package/src/style/abstracts/variables/_colors.scss +140 -69
- package/src/style/abstracts/variables/_datepicker.scss +10 -9
- package/src/style/abstracts/variables/_dropdowns.scss +6 -4
- package/src/style/abstracts/variables/_forms.scss +4 -4
- package/src/style/abstracts/variables/_list-group.scss +2 -2
- package/src/style/abstracts/variables/_modals.scss +4 -3
- package/src/style/abstracts/variables/_offcanvas.scss +1 -0
- package/src/style/abstracts/variables/_pagination.scss +4 -4
- package/src/style/abstracts/variables/_shadow.scss +1 -0
- package/src/style/abstracts/variables/_tables.scss +8 -3
- package/src/style/abstracts/variables/_tooltip.scss +1 -1
- package/src/style/abstracts/variables/_typography.scss +7 -7
- package/src/style/base/_+import.scss +1 -0
- package/src/style/base/_alert.scss +1 -27
- package/src/style/base/_badge.scss +50 -12
- package/src/style/base/_buttons.scss +143 -23
- package/src/style/base/_dropdown.scss +18 -0
- package/src/style/base/_input-group.scss +5 -0
- package/src/style/base/_list-group.scss +6 -0
- package/src/style/base/_pagination.scss +2 -0
- package/src/style/base/_tables.scss +4 -0
- package/src/style/base/_tooltip.scss +1 -10
- package/src/style/components/_+import.scss +4 -4
- package/src/style/components/_d-avatar.scss +2 -20
- package/src/style/components/_d-box.scss +13 -0
- package/src/style/components/_d-carousel.scss +19 -1
- package/src/style/components/_d-credit-card.scss +67 -0
- package/src/style/components/_d-datepicker.scss +64 -26
- package/src/style/components/_d-icon.scss +10 -3
- package/src/style/components/_d-modal.scss +3 -0
- package/src/style/components/_d-stepper-desktop.scss +61 -65
- package/src/style/components/_d-stepper-mobile.scss +2 -2
- package/src/style/components/_d-tabs.scss +37 -0
- package/src/style/components/_d-timeline.scss +108 -0
- package/src/style/helpers/_color-bg.scss +13 -3
- package/src/style/root/_root.scss +35 -18
- package/dist/css/bootstrap-icons.css +0 -2106
- package/dist/css/bootstrap-icons.json +0 -2080
- package/dist/css/bootstrap-icons.min.css +0 -5
- package/dist/css/bootstrap-icons.scss +0 -2118
- package/dist/css/fonts/bootstrap-icons.woff +0 -0
- package/dist/css/fonts/bootstrap-icons.woff2 +0 -0
- package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +0 -26
- package/dist/types/components/DInputCurrencyBase/index.d.ts +0 -2
- package/dist/types/components/DInputSearch/DInputSearch.d.ts +0 -17
- package/dist/types/components/DInputSearch/index.d.ts +0 -2
- package/dist/types/components/DList/DList.d.ts +0 -17
- package/dist/types/components/DList/components/DListItem.d.ts +0 -13
- package/dist/types/components/DList/index.d.ts +0 -3
- package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +0 -20
- package/dist/types/components/DQuickActionButton/index.d.ts +0 -2
- package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +0 -17
- package/dist/types/components/DQuickActionCheck/index.d.ts +0 -2
- package/dist/types/components/DQuickActionSelect/DQuickActionSelect.d.ts +0 -13
- package/dist/types/components/DQuickActionSelect/index.d.ts +0 -2
- package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +0 -15
- package/dist/types/components/DQuickActionSwitch/index.d.ts +0 -2
- package/dist/types/components/DSkeleton/DSkeleton.d.ts +0 -11
- package/dist/types/components/DSkeleton/index.d.ts +0 -2
- package/src/style/components/_d-quick-action-button.scss +0 -121
- package/src/style/components/_d-quick-action-check.scss +0 -74
- package/src/style/components/_d-quick-action-select.scss +0 -58
- package/src/style/components/_d-quick-action-switch.scss +0 -64
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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', () =>
|
|
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": "
|
|
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
|
|
77
|
+
"prepare": "husky",
|
|
72
78
|
"commitlint": "commitlint --edit"
|
|
73
79
|
},
|
|
74
80
|
"engines": {
|
|
75
|
-
"node": ">=
|
|
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
|
|
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": "~
|
|
114
|
-
"@storybook/addon-
|
|
115
|
-
"@storybook/addon-
|
|
116
|
-
"@storybook/
|
|
117
|
-
"@
|
|
118
|
-
"@
|
|
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": "
|
|
126
|
+
"@types/google-libphonenumber": "~7.4.30",
|
|
128
127
|
"@types/jest": "~29.5.12",
|
|
129
128
|
"@types/node": "~18.15.3",
|
|
130
|
-
"@types/react": "~
|
|
131
|
-
"@types/react-dom": "~
|
|
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": "
|
|
147
|
+
"formik": "~2.4.6",
|
|
148
148
|
"glob": "~10.3.10",
|
|
149
|
-
"husky": "~
|
|
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": "~
|
|
157
|
-
"react-dom": "~
|
|
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": "~
|
|
161
|
-
"
|
|
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": "~
|
|
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": "~
|
|
174
|
-
"react-dom": "~
|
|
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": "~
|
|
179
|
+
"recharts": "~3.1.0"
|
|
178
180
|
},
|
|
179
181
|
"peerDependenciesMeta": {
|
|
180
182
|
"recharts": {
|
package/src/style/_shame.scss
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
|
-
|
|
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:
|
|
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
|
|
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:
|
|
22
|
+
$focus-ring-border-color: transparent !default;
|
|
23
23
|
$focus-ring-color-mapping: "secondary-rgb" !default;
|
|
24
|
-
$focus-ring-color: var(--#{$prefix}
|
|
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";
|
|
@@ -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
|
-
|
|
9
|
-
$body-bg:
|
|
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:
|
|
12
|
-
$border-radius-sm: .
|
|
13
|
-
$border-radius-lg:
|
|
14
|
-
$border-radius-xl:
|
|
15
|
-
$border-radius-xxl:
|
|
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-
|
|
8
|
-
$btn-padding-x: $spacer-
|
|
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-
|
|
12
|
-
$btn-padding-x-sm: $spacer-
|
|
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-
|
|
16
|
-
$btn-padding-x-lg: $spacer-
|
|
17
|
-
$btn-
|
|
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:
|
|
26
|
-
$btn-border-radius-
|
|
27
|
-
$btn-
|
|
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-
|
|
8
|
-
$card-spacer-x: $spacer-
|
|
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-
|
|
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
|
|
12
|
+
$chip-line-height: $line-height-base !default;
|
|
13
13
|
// scss-docs-end chip-variables
|