@dynamic-framework/ui-react 2.0.0-dev.1 → 2.0.0-dev.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.
- package/dist/css/dynamic-ui-non-root.css +7153 -3699
- 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 +7950 -3824
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +255 -301
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +280 -310
- package/dist/index.js.map +1 -1
- 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/DButton/DButton.d.ts +6 -5
- package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +3 -3
- package/dist/types/components/DChip/DChip.d.ts +3 -3
- package/dist/types/components/DCollapse/DCollapse.d.ts +1 -1
- 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 +21 -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/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/package.json +8 -3
- package/src/style/_shame.scss +42 -1
- package/src/style/abstracts/_mixins.scss +1 -7
- 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 +148 -22
- 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/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
|
@@ -10,8 +10,8 @@ import DSelectOptionEmoji from './components/DSelectOptionEmoji';
|
|
|
10
10
|
import DSelectSingleValueEmoji from './components/DSelectSingleValueEmoji';
|
|
11
11
|
import DSelectSingleValueEmojiText from './components/DSelectSingleValueEmojiText';
|
|
12
12
|
import DSelectPlaceholder from './components/DSelectPlaceholder';
|
|
13
|
-
import type { BaseProps, EndIconProps, FamilyIconProps,
|
|
14
|
-
type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseProps & FamilyIconProps &
|
|
13
|
+
import type { BaseProps, EndIconProps, FamilyIconProps, StartIconProps } from '../interface';
|
|
14
|
+
type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseProps & FamilyIconProps & StartIconProps & EndIconProps & Omit<SelectProps<Option, IsMulti, Group>, 'isDisabled' | 'isClearable' | 'isLoading' | 'isRtl' | 'isSearchable' | 'isMulti'> & {
|
|
15
15
|
label?: string;
|
|
16
16
|
hint?: string;
|
|
17
17
|
invalid?: boolean;
|
|
@@ -27,7 +27,7 @@ type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = B
|
|
|
27
27
|
searchable?: SelectProps<Option, IsMulti, Group>['isSearchable'];
|
|
28
28
|
multi?: SelectProps<Option, IsMulti, Group>['isMulti'];
|
|
29
29
|
};
|
|
30
|
-
declare function DSelect<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id: idProp, className, style, label,
|
|
30
|
+
declare function DSelect<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id: idProp, className, style, label, hint, iconFamilyClass, iconFamilyPrefix, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconStartTabIndex, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, iconEndTabIndex, invalid, valid, menuWithMaxContent, disabled, clearable, loading, floatingLabel, rtl, searchable, multi, components, defaultValue, placeholder, onIconStartClick, onIconEndClick, dataAttributes, ...props }: Props<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
declare const _default: typeof DSelect & {
|
|
32
32
|
OptionCheck: typeof DSelectOptionCheck;
|
|
33
33
|
OptionIcon: typeof DSelectOptionIcon;
|
|
@@ -2,11 +2,11 @@ import type { PropsWithChildren } from 'react';
|
|
|
2
2
|
import DTabContent from './components/DTabContent';
|
|
3
3
|
import type { BaseProps } from '../interface';
|
|
4
4
|
export type DTabOption = {
|
|
5
|
-
label: string;
|
|
5
|
+
label: string | React.ReactNode;
|
|
6
6
|
tab: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export type TabVariant = 'tabs' | 'pills' | 'underline';
|
|
9
|
+
export type TabVariant = 'tabs' | 'pills' | 'underline' | 'toggle-button-group';
|
|
10
10
|
type Props = BaseProps & PropsWithChildren<{
|
|
11
11
|
classNameTab?: string;
|
|
12
12
|
onChange?: (option: DTabOption) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BaseProps } from '../interface';
|
|
3
|
+
export type DTimelineItem = {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
time?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
status?: 'success' | 'warning' | 'danger' | 'info';
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
type Props = BaseProps & {
|
|
12
|
+
items: DTimelineItem[];
|
|
13
|
+
};
|
|
14
|
+
export default function DTimeline({ className, style, dataAttributes, items, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Renderable, Toast, ValueFunction } from 'react-hot-toast';
|
|
2
|
+
import { ComponentStateColor } from '../interface';
|
|
2
3
|
type ToastData = {
|
|
3
4
|
title: string;
|
|
4
5
|
description?: string;
|
|
5
6
|
timestamp?: string;
|
|
6
7
|
icon?: string;
|
|
7
8
|
closeIcon?: string;
|
|
8
|
-
|
|
9
|
-
soft?: boolean;
|
|
9
|
+
color?: ComponentStateColor;
|
|
10
10
|
};
|
|
11
11
|
type Props = Partial<Pick<Toast, 'id' | 'duration' | 'position'>>;
|
|
12
12
|
export default function useDToast(): {
|
|
@@ -9,9 +9,8 @@ export type Props = BaseProps & PropsWithChildren<{
|
|
|
9
9
|
withFocus?: boolean;
|
|
10
10
|
withClick?: boolean;
|
|
11
11
|
open?: boolean;
|
|
12
|
-
theme?: string;
|
|
13
12
|
size?: ComponentSize;
|
|
14
13
|
placement?: Placement;
|
|
15
14
|
Component: ReactNode;
|
|
16
15
|
}>;
|
|
17
|
-
export default function DTooltip({ className, childrenClassName, style, offSet, padding, withFocus, withClick, withHover, open,
|
|
16
|
+
export default function DTooltip({ className, childrenClassName, style, offSet, padding, withFocus, withClick, withHover, open, placement, size, Component, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as DAlert } from './DAlert';
|
|
2
2
|
export { default as DAvatar } from './DAvatar';
|
|
3
3
|
export { default as DBadge } from './DBadge';
|
|
4
|
+
export { default as DBox } from './DBox';
|
|
4
5
|
export { default as DBoxFile } from './DBoxFile';
|
|
5
6
|
export { default as DButton } from './DButton';
|
|
6
7
|
export { default as DButtonIcon } from './DButtonIcon';
|
|
@@ -11,13 +12,12 @@ export { default as DCollapse } from './DCollapse';
|
|
|
11
12
|
export { default as DCurrencyText } from './DCurrencyText';
|
|
12
13
|
export { default as DDatePicker } from './DDatePicker';
|
|
13
14
|
export { default as DIcon } from './DIcon';
|
|
15
|
+
export { default as DLayout, DLayoutPane, } from './DLayout';
|
|
14
16
|
export { default as DIconBase } from './DIconBase';
|
|
15
17
|
export { default as DInput } from './DInput';
|
|
16
18
|
export { default as DInputMask } from './DInputMask';
|
|
17
19
|
export { default as DInputCounter } from './DInputCounter';
|
|
18
|
-
export { default as DInputCurrencyBase } from './DInputCurrencyBase';
|
|
19
20
|
export { default as DInputCurrency } from './DInputCurrency';
|
|
20
|
-
export { default as DInputSearch } from './DInputSearch';
|
|
21
21
|
export { default as DInputPassword } from './DInputPassword';
|
|
22
22
|
export { default as DInputCheck } from './DInputCheck';
|
|
23
23
|
export { default as DInputPin } from './DInputPin';
|
|
@@ -26,25 +26,22 @@ export type { DInputSelectDefaultOption, DInputSelectProps } from './DInputSelec
|
|
|
26
26
|
export { default as DInputSwitch } from './DInputSwitch';
|
|
27
27
|
export { default as DInputRange } from './DInputRange';
|
|
28
28
|
export { default as DSelect } from './DSelect';
|
|
29
|
-
export { default as DList, DListItem, } from './DList';
|
|
30
29
|
export { default as DListGroup, DListGroupItem, } from './DListGroup';
|
|
31
30
|
export { default as DModal, DModalHeader, DModalBody, DModalFooter, } from './DModal';
|
|
32
31
|
export { default as DOffcanvas, DOffcanvasHeader, DOffcanvasBody, DOffcanvasFooter, } from './DOffcanvas';
|
|
33
32
|
export { default as DPaginator } from './DPaginator';
|
|
34
33
|
export { default as DPopover } from './DPopover';
|
|
35
34
|
export { default as DProgress } from './DProgress';
|
|
36
|
-
export { default as DQuickActionButton } from './DQuickActionButton';
|
|
37
|
-
export { default as DQuickActionCheck } from './DQuickActionCheck';
|
|
38
|
-
export { default as DQuickActionSelect } from './DQuickActionSelect';
|
|
39
|
-
export { default as DQuickActionSwitch } from './DQuickActionSwitch';
|
|
40
|
-
export { default as DSkeleton } from './DSkeleton';
|
|
41
35
|
export { default as DStepper } from './DStepper';
|
|
42
36
|
export { default as DStepperDesktop } from './DStepperDesktop';
|
|
43
37
|
export { default as DStepperMobile } from './DStepperMobile';
|
|
44
38
|
export { default as DTooltip } from './DTooltip';
|
|
39
|
+
export { default as DTimeline } from './DTimeline';
|
|
45
40
|
export { default as DTabs, useTabContext, DTabContent, } from './DTabs';
|
|
46
41
|
export type { DTabOption } from './DTabs';
|
|
47
42
|
export { default as DToast } from './DToast';
|
|
48
43
|
export { default as DToastContainer, useDToast, } from './DToastContainer';
|
|
49
44
|
export { default as DTableHead } from './DTableHead';
|
|
50
45
|
export { default as DInputPhone } from './DInputPhone';
|
|
46
|
+
export { default as DCreditCard } from './DCreditCard';
|
|
47
|
+
export { default as DDropdown } from './DDropdown';
|
|
@@ -24,12 +24,6 @@ export type FamilyIconProps = {
|
|
|
24
24
|
iconFamilyPrefix?: string;
|
|
25
25
|
iconMaterialStyle?: boolean;
|
|
26
26
|
};
|
|
27
|
-
export type LabelIconProps = {
|
|
28
|
-
labelIcon?: string;
|
|
29
|
-
labelIconFamilyClass?: string;
|
|
30
|
-
labelIconFamilyPrefix?: string;
|
|
31
|
-
labelIconMaterialStyle?: boolean;
|
|
32
|
-
};
|
|
33
27
|
export type StartIconProps = {
|
|
34
28
|
iconStart?: string;
|
|
35
29
|
iconStartDisabled?: boolean;
|
|
@@ -48,9 +42,10 @@ export type EndIconProps = {
|
|
|
48
42
|
iconEndTabIndex?: number;
|
|
49
43
|
iconEndMaterialStyle?: boolean;
|
|
50
44
|
};
|
|
51
|
-
export type
|
|
45
|
+
export type ComponentColor = string;
|
|
46
|
+
export type ComponentStateColor = 'success' | 'danger' | 'warning' | 'info';
|
|
52
47
|
export type AlertThemeIconMap = {
|
|
53
|
-
[state in
|
|
48
|
+
[state in ComponentStateColor]: string;
|
|
54
49
|
};
|
|
55
50
|
export type ButtonVariant = 'outline' | 'link';
|
|
56
51
|
export type ButtonType = 'submit' | 'reset' | 'button';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sideEffects": [
|
|
4
4
|
"*.css"
|
|
5
5
|
],
|
|
6
|
-
"version": "2.0.0-dev.
|
|
6
|
+
"version": "2.0.0-dev.3",
|
|
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",
|
|
@@ -95,7 +100,7 @@
|
|
|
95
100
|
"file-selector": "^2.1.2",
|
|
96
101
|
"google-libphonenumber": "^3.2.40",
|
|
97
102
|
"i18next": "~23.6.0",
|
|
98
|
-
"react
|
|
103
|
+
"lucide-react": "^0.548.0",
|
|
99
104
|
"react-datepicker": "~8.3.0",
|
|
100
105
|
"react-international-phone": "~4.5.0",
|
|
101
106
|
"react-responsive-pagination": "^2.9.0",
|
|
@@ -163,7 +168,7 @@
|
|
|
163
168
|
"ts-jest": "~29.2.3",
|
|
164
169
|
"tslib": "~2.6.2",
|
|
165
170
|
"typescript": "~5.2.2",
|
|
166
|
-
"vite": "
|
|
171
|
+
"vite": "^6.4.1",
|
|
167
172
|
"yup": "^1.6.1"
|
|
168
173
|
},
|
|
169
174
|
"peerDependencies": {
|
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
|
+
}
|
|
@@ -149,12 +149,6 @@
|
|
|
149
149
|
--#{$prefix}btn-disabled-bg: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-disabled-bg);
|
|
150
150
|
--#{$prefix}btn-disabled-border-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-disabled-border-color);
|
|
151
151
|
--#{$prefix}btn-disabled-opacity: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-disabled-opacity);
|
|
152
|
-
|
|
153
|
-
&.loading {
|
|
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
|
-
}
|
|
158
152
|
}
|
|
159
153
|
// scss-docs-end df-btn-variant-mixin
|
|
160
154
|
|
|
@@ -170,7 +164,7 @@
|
|
|
170
164
|
--#{$prefix}table-striped-color: #{$color};
|
|
171
165
|
--#{$prefix}table-active-bg: #{unquote("color-mix(in srgb, var(--#{$prefix}#{$background}), var(--#{$prefix}white) #{(100% - $table-bg-scale) * $table-active-bg-factor})")};
|
|
172
166
|
--#{$prefix}table-active-color: #{$color};
|
|
173
|
-
--#{$prefix}table-hover-bg:
|
|
167
|
+
--#{$prefix}table-hover-bg: var(--#{$prefix}gray-25);
|
|
174
168
|
--#{$prefix}table-hover-color: #{$color};
|
|
175
169
|
|
|
176
170
|
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
|