@dynamic-framework/ui-react 1.17.1 → 1.19.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.
- package/dist/css/dynamic-ui-non-root.css +1365 -873
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +493 -26
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +1857 -898
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +119 -163
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +120 -167
- package/dist/index.js.map +1 -1
- package/dist/types/components/DAvatar/DAvatar.d.ts +9 -0
- package/dist/types/components/DAvatar/index.d.ts +2 -0
- package/dist/types/components/DButton/DButton.d.ts +1 -1
- package/dist/types/components/DCarousel/DCarousel.d.ts +5 -4
- package/dist/types/components/DToastContainer/DToastContainer.d.ts +9 -7
- package/dist/types/components/DToastContainer/index.d.ts +1 -1
- package/dist/types/components/DToastContainer/{useToast.d.ts → useDToast.d.ts} +7 -4
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/interface.d.ts +1 -0
- package/dist/types/contexts/DContext.d.ts +8 -7
- package/dist/types/contexts/DPortalContext.d.ts +29 -0
- package/dist/types/contexts/index.d.ts +1 -2
- package/package.json +3 -3
- package/src/style/abstracts/_mixins.scss +110 -94
- package/src/style/abstracts/_utilities.scss +34 -1
- package/src/style/abstracts/variables/_+import.scss +2 -0
- package/src/style/abstracts/variables/_accordion.scss +2 -2
- package/src/style/abstracts/variables/_alerts.scss +1 -1
- package/src/style/abstracts/variables/_buttons.scss +3 -3
- package/src/style/abstracts/variables/_cards.scss +2 -0
- package/src/style/abstracts/variables/_collapse-icon-text.scss +2 -2
- package/src/style/abstracts/variables/_forms.scss +5 -7
- package/src/style/abstracts/variables/_navs.scss +2 -2
- package/src/style/abstracts/variables/_pagination.scss +4 -4
- package/src/style/abstracts/variables/_progress.scss +2 -2
- package/src/style/abstracts/variables/_quick-action-button.scss +4 -4
- package/src/style/abstracts/variables/_quick-action-check.scss +4 -4
- package/src/style/abstracts/variables/_quick-action-select.scss +3 -3
- package/src/style/abstracts/variables/_quick-action-switch.scss +2 -2
- package/src/style/abstracts/variables/_tooltip.scss +16 -0
- package/src/style/abstracts/variables/_typography.scss +76 -20
- package/src/style/abstracts/variables/_z-index.scss +11 -0
- package/src/style/base/_+import.scss +7 -2
- package/src/style/base/_avatar.scss +61 -0
- package/src/style/base/_backdrop.scss +9 -0
- package/src/style/base/_button-group.scss +13 -0
- package/src/style/base/{_button.scss → _buttons.scss} +14 -53
- package/src/style/base/_form-check.scss +2 -1
- package/src/style/base/_input-group.scss +11 -6
- package/src/style/base/_tooltip.scss +23 -0
- package/src/style/base/_type.scss +104 -0
- package/src/style/components/_+import.scss +0 -1
- package/src/style/components/_d-datepicker.scss +7 -7
- package/src/style/components/_d-monthpicker.scss +4 -4
- package/src/style/components/_d-quick-action-button.scss +8 -0
- package/src/style/components/_d-quick-action-select.scss +2 -0
- package/src/style/components/_d-quick-action-switch.scss +4 -4
- package/src/style/components/_d-select.scss +1 -1
- package/src/style/components/_d-stepper-mobile.scss +3 -3
- package/src/style/helpers/_+import.scss +1 -0
- package/src/style/helpers/_text-truncate.scss +8 -0
- package/src/style/root/_root.scss +98 -17
- package/dist/types/contexts/DModalContext.d.ts +0 -31
- package/dist/types/contexts/DOffcanvasContext.d.ts +0 -31
- package/src/style/components/_d-tooltip.scss +0 -35
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AvatarSize, BaseProps } from '../interface';
|
|
2
|
+
type Props = BaseProps & {
|
|
3
|
+
id?: string;
|
|
4
|
+
size?: AvatarSize;
|
|
5
|
+
image?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function DAvatar({ id, size, image, title, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -18,5 +18,5 @@ type Props = BaseProps & StartIconProps & EndIconProps & {
|
|
|
18
18
|
form?: string;
|
|
19
19
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
20
20
|
};
|
|
21
|
-
export default function DButton({ theme, size, variant, state, text, ariaLabel, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartMaterialStyle, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndMaterialStyle, value, type,
|
|
21
|
+
export default function DButton({ theme, size, variant, state, text, ariaLabel, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartMaterialStyle, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndMaterialStyle, value, type, loading, loadingAriaLabel, disabled, stopPropagationEnabled, className, style, form, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Splide } from '@splidejs/react-splide';
|
|
2
3
|
import type { SplideProps } from '@splidejs/react-splide';
|
|
3
4
|
import DCarouselSlide from './components/DCarouselSlide';
|
|
4
5
|
import type { BaseProps } from '../interface';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
declare const _default: import("react").ForwardRefExoticComponent<SplideProps & BaseProps & {
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
} & import("react").RefAttributes<Splide>> & {
|
|
8
9
|
Slide: typeof DCarouselSlide;
|
|
9
10
|
};
|
|
10
11
|
export default _default;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
import
|
|
4
|
-
type Props = BaseProps & {
|
|
2
|
+
import type { ToastContainerProps } from 'react-toastify';
|
|
3
|
+
import { BaseProps } from '../interface';
|
|
4
|
+
type Props = BaseProps & Pick<ToastContainerProps, 'autoClose' | 'closeOnClick' | 'position'> & {
|
|
5
|
+
containerId?: string;
|
|
6
|
+
stacked?: boolean;
|
|
5
7
|
style?: CSSProperties & {
|
|
6
|
-
'--toastify-toast-width':
|
|
7
|
-
[index: string]:
|
|
8
|
+
'--toastify-toast-width': string | number;
|
|
9
|
+
[index: string]: string | number;
|
|
8
10
|
};
|
|
9
|
-
|
|
11
|
+
transition?: 'slide' | 'flip' | 'bounce' | 'zoom';
|
|
10
12
|
};
|
|
11
|
-
export default function DToastContainer({ style, position,
|
|
13
|
+
export default function DToastContainer({ style, className, closeOnClick, position, autoClose, stacked, transition, containerId, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -2,12 +2,15 @@ import type { ToastPosition } from 'react-toastify';
|
|
|
2
2
|
import type { AlertType } from '../interface';
|
|
3
3
|
export type ToastConfig = {
|
|
4
4
|
type?: AlertType;
|
|
5
|
+
icon?: string;
|
|
6
|
+
iconClose?: string;
|
|
5
7
|
showClose?: boolean;
|
|
6
8
|
position?: ToastPosition;
|
|
7
9
|
autoClose?: number | false;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
stacked?: boolean;
|
|
11
|
+
containerId?: string;
|
|
12
|
+
transition?: 'slide' | 'flip' | 'bounce' | 'zoom';
|
|
10
13
|
};
|
|
11
|
-
export default function
|
|
12
|
-
toast: (message: string, {
|
|
14
|
+
export default function useDToast(): {
|
|
15
|
+
toast: (message: string, { icon, iconClose, type, showClose, transition, ...rest }: ToastConfig) => void;
|
|
13
16
|
};
|
|
@@ -38,4 +38,4 @@ export { default as DStepperDesktop } from './DStepperDesktop';
|
|
|
38
38
|
export { default as DStepperMobile } from './DStepperMobile';
|
|
39
39
|
export { default as DTooltip } from './DTooltip';
|
|
40
40
|
export { default as DTabs, useTabContext, DTabOption, DTabContent, } from './DTabs';
|
|
41
|
-
export { default as DToastContainer,
|
|
41
|
+
export { default as DToastContainer, useDToast, } from './DToastContainer';
|
|
@@ -12,6 +12,7 @@ export type NavegableProps = {
|
|
|
12
12
|
};
|
|
13
13
|
export type ComponentSize = 'sm' | 'lg';
|
|
14
14
|
export type BreakpointSize = 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
15
|
+
export type AvatarSize = 'xs' | 'sm' | 'lg' | 'xl' | 'xxl';
|
|
15
16
|
export type BaseProps = {
|
|
16
17
|
style?: CSSProperties;
|
|
17
18
|
className?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import { PortalContextProps } from './DPortalContext';
|
|
2
3
|
import type { AlertTypeIconMap } from '../components/interface';
|
|
3
4
|
type CurrencyProps = {
|
|
4
5
|
symbol: string;
|
|
@@ -32,16 +33,16 @@ type IconMapProps = {
|
|
|
32
33
|
increase: string;
|
|
33
34
|
};
|
|
34
35
|
};
|
|
35
|
-
type Props = {
|
|
36
|
+
type Props<T extends Record<string, unknown>> = {
|
|
36
37
|
language: string;
|
|
37
38
|
currency: CurrencyProps;
|
|
38
39
|
icon: IconProps;
|
|
39
40
|
iconMap: IconMapProps;
|
|
41
|
+
} & PortalContextProps<T>;
|
|
42
|
+
type Context<T extends Record<string, unknown>> = Props<T> & {
|
|
43
|
+
setContext: (value: Partial<Props<T>>) => void;
|
|
40
44
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
export declare const DContext: import("react").Context<Partial<Context>>;
|
|
45
|
-
export declare function DContextProvider({ language, currency, icon, iconMap, children, }: PropsWithChildren<Partial<Props>>): import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
export declare function useDContext(): Context;
|
|
45
|
+
export declare const DContext: import("react").Context<Partial<Context<any>>>;
|
|
46
|
+
export declare function DContextProvider<T extends Record<string, unknown>>({ language, currency, icon, iconMap, portalName, availablePortals, children, }: PropsWithChildren<Partial<Props<T>>>): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export declare function useDContext<T extends Record<string, unknown>>(): Context<T>;
|
|
47
48
|
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { PropsWithChildren, FC } from 'react';
|
|
2
|
+
type PortalComponent<P = any> = FC<PortalProps<P>>;
|
|
3
|
+
type PortalAvailableList<T extends Record<string, unknown>> = {
|
|
4
|
+
[K in keyof T]: PortalComponent<T[K]>;
|
|
5
|
+
};
|
|
6
|
+
export type PortalContextProps<T extends Record<string, unknown>> = PropsWithChildren<{
|
|
7
|
+
portalName: string;
|
|
8
|
+
availablePortals?: PortalAvailableList<T>;
|
|
9
|
+
}>;
|
|
10
|
+
type PortalStackItem<N extends string = string, P = any> = {
|
|
11
|
+
name: N;
|
|
12
|
+
Component: PortalComponent<P>;
|
|
13
|
+
payload: P;
|
|
14
|
+
};
|
|
15
|
+
type OpenPortalFunction<P = unknown> = (name: string, payload: P) => void;
|
|
16
|
+
type ClosePortalFunction = () => void;
|
|
17
|
+
export type PortalContextType<T extends Record<string, unknown>> = {
|
|
18
|
+
stack: PortalStackItem<string, T[keyof T]>[];
|
|
19
|
+
openPortal: OpenPortalFunction<T[keyof T]>;
|
|
20
|
+
closePortal: ClosePortalFunction;
|
|
21
|
+
};
|
|
22
|
+
export type PortalProps<P = unknown> = {
|
|
23
|
+
name: string;
|
|
24
|
+
payload: P;
|
|
25
|
+
};
|
|
26
|
+
export declare const DPortalContext: import("react").Context<PortalContextType<any> | undefined>;
|
|
27
|
+
export declare function DPortalContextProvider<T extends Record<string, unknown>>({ portalName, children, availablePortals, }: PortalContextProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function useDPortalContext<T extends Record<string, unknown>>(): PortalContextType<T>;
|
|
29
|
+
export {};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sideEffects": [
|
|
4
4
|
"*.css"
|
|
5
5
|
],
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.19.0",
|
|
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": {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"react-dropzone": "^14.2.3",
|
|
84
84
|
"react-responsive-pagination": "^2.4.1",
|
|
85
85
|
"react-select": "^5.8.0",
|
|
86
|
-
"react-toastify": "^
|
|
86
|
+
"react-toastify": "^10.0.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@babel/core": "^7.23.2",
|
|
@@ -149,5 +149,5 @@
|
|
|
149
149
|
"react-dom": "^18.2.0",
|
|
150
150
|
"react-i18next": "^13.3.1"
|
|
151
151
|
},
|
|
152
|
-
"gitHead": "
|
|
152
|
+
"gitHead": "9542d1738c6c95536756b97fb13d1f032d760523"
|
|
153
153
|
}
|
|
@@ -1,126 +1,142 @@
|
|
|
1
|
-
// scss-docs-start df-
|
|
2
|
-
@mixin df-button-variant(
|
|
1
|
+
// scss-docs-start df-button-variant-variables-mixin
|
|
2
|
+
@mixin df-button-variant-variables(
|
|
3
3
|
$color-name,
|
|
4
4
|
$default-color: var(--#{$prefix}#{$color-name}-500),
|
|
5
5
|
$hover-color: var(--#{$prefix}#{$color-name}-600),
|
|
6
|
-
$focus-color: var(--#{$prefix}#{$color-name}-
|
|
6
|
+
$focus-color: var(--#{$prefix}#{$color-name}-500),
|
|
7
7
|
$active-color: var(--#{$prefix}#{$color-name}-700),
|
|
8
|
-
$disabled-color: var(--#{$prefix}#{$color-name}-100),
|
|
9
8
|
$default-text-color: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-500)),
|
|
10
9
|
$hover-text-color: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-600)),
|
|
11
10
|
$focus-text-color: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-600)),
|
|
12
11
|
$active-text-color: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-700)),
|
|
13
|
-
$disabled-
|
|
12
|
+
$disabled-opacity: .5
|
|
14
13
|
) {
|
|
15
|
-
--#{$prefix}btn-color: #{$default-text-color};
|
|
16
|
-
--#{$prefix}btn-bg: #{$default-color};
|
|
17
|
-
--#{$prefix}btn-border-color: #{$default-color};
|
|
18
|
-
|
|
19
|
-
--#{$prefix}btn-hover-color: #{$hover-text-color};
|
|
20
|
-
--#{$prefix}btn-hover-bg: #{$hover-color};
|
|
21
|
-
--#{$prefix}btn-hover-border-color: #{$hover-color};
|
|
22
|
-
|
|
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};
|
|
28
|
-
--#{$prefix}btn-active-bg: #{$active-color};
|
|
29
|
-
--#{$prefix}btn-active-border-color: #{$active-color};
|
|
30
|
-
|
|
31
|
-
--#{$prefix}btn-disabled-color: #{$
|
|
32
|
-
--#{$prefix}btn-disabled-bg: #{$
|
|
33
|
-
--#{$prefix}btn-disabled-border-color: #{$
|
|
34
|
-
|
|
35
|
-
&.loading {
|
|
36
|
-
--#{$prefix}btn-disabled-opacity: 1;
|
|
37
|
-
--#{$prefix}btn-disabled-bg: #{$active-color};
|
|
38
|
-
--#{$prefix}btn-disabled-border-color: #{$active-color};
|
|
39
|
-
--#{$prefix}btn-disabled-color: #{$hover-text-color};
|
|
40
|
-
}
|
|
14
|
+
--#{$prefix}btn-#{$color-name}-color: #{$default-text-color};
|
|
15
|
+
--#{$prefix}btn-#{$color-name}-bg: #{$default-color};
|
|
16
|
+
--#{$prefix}btn-#{$color-name}-border-color: #{$default-color};
|
|
17
|
+
|
|
18
|
+
--#{$prefix}btn-#{$color-name}-hover-color: #{$hover-text-color};
|
|
19
|
+
--#{$prefix}btn-#{$color-name}-hover-bg: #{$hover-color};
|
|
20
|
+
--#{$prefix}btn-#{$color-name}-hover-border-color: #{$hover-color};
|
|
21
|
+
|
|
22
|
+
--#{$prefix}btn-#{$color-name}-focus-color: #{$focus-text-color};
|
|
23
|
+
--#{$prefix}btn-#{$color-name}-focus-bg: #{$focus-color};
|
|
24
|
+
--#{$prefix}btn-#{$color-name}-focus-border-color: #{$focus-color};
|
|
25
|
+
|
|
26
|
+
--#{$prefix}btn-#{$color-name}-active-color: #{$active-text-color};
|
|
27
|
+
--#{$prefix}btn-#{$color-name}-active-bg: #{$active-color};
|
|
28
|
+
--#{$prefix}btn-#{$color-name}-active-border-color: #{$active-color};
|
|
29
|
+
|
|
30
|
+
--#{$prefix}btn-#{$color-name}-disabled-color: #{$default-text-color};
|
|
31
|
+
--#{$prefix}btn-#{$color-name}-disabled-bg: #{$default-color};
|
|
32
|
+
--#{$prefix}btn-#{$color-name}-disabled-border-color: #{$default-color};
|
|
33
|
+
--#{$prefix}btn-#{$color-name}-disabled-opacity: #{$disabled-opacity};
|
|
41
34
|
}
|
|
42
|
-
// scss-docs-end df-
|
|
35
|
+
// scss-docs-end df-button-variant-variables-mixin
|
|
43
36
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
@mixin df-button-outline-variant(
|
|
37
|
+
// scss-docs-start df-btn-outline-variant-variables-mixin
|
|
38
|
+
@mixin df-button-outline-variant-variables(
|
|
47
39
|
$color-name,
|
|
48
40
|
$default-color: var(--#{$prefix}#{$color-name}-500),
|
|
49
41
|
$hover-bg-color: var(--#{$prefix}#{$color-name}-100),
|
|
50
|
-
$
|
|
51
|
-
$
|
|
52
|
-
$
|
|
53
|
-
$
|
|
42
|
+
$hover-text-color: var(--#{$prefix}#{$color-name}-500),
|
|
43
|
+
$focus-text-color: var(--#{$prefix}#{$color-name}-500),
|
|
44
|
+
$active-text-color: var(--#{$prefix}#{$color-name}-700),
|
|
45
|
+
$active-bg-color: var(--#{$prefix}#{$color-name}-100),
|
|
46
|
+
$active-border-color: var(--#{$prefix}#{$color-name}-700),
|
|
47
|
+
$disabled-opacity: .5
|
|
54
48
|
) {
|
|
55
|
-
--#{$prefix}btn-
|
|
56
|
-
--#{$prefix}btn-
|
|
57
|
-
--#{$prefix}btn-color: #{$default-color};
|
|
58
|
-
|
|
59
|
-
--#{$prefix}btn-hover-
|
|
60
|
-
--#{$prefix}btn-hover-
|
|
61
|
-
--#{$prefix}btn-hover-color: #{$default-color};
|
|
62
|
-
|
|
63
|
-
--#{$prefix}btn-focus-
|
|
64
|
-
--#{$prefix}btn-focus-
|
|
65
|
-
--#{$prefix}btn-focus-color: #{$default-color};
|
|
66
|
-
|
|
67
|
-
--#{$prefix}btn-active-
|
|
68
|
-
--#{$prefix}btn-active-
|
|
69
|
-
--#{$prefix}btn-active-color: #{$
|
|
70
|
-
|
|
71
|
-
--#{$prefix}btn-disabled-
|
|
72
|
-
--#{$prefix}btn-disabled-
|
|
73
|
-
--#{$prefix}btn-disabled-color: #{$
|
|
74
|
-
|
|
75
|
-
--#{$prefix}gradient: none;
|
|
76
|
-
|
|
77
|
-
&.loading {
|
|
78
|
-
--#{$prefix}btn-disabled-opacity: 1;
|
|
79
|
-
--#{$prefix}btn-disabled-bg: transparent;
|
|
80
|
-
--#{$prefix}btn-disabled-border-color: #{$default-color};
|
|
81
|
-
--#{$prefix}btn-disabled-color: #{$default-color};
|
|
82
|
-
}
|
|
49
|
+
--#{$prefix}btn-outline-#{$color-name}-color: #{$default-color};
|
|
50
|
+
--#{$prefix}btn-outline-#{$color-name}-bg: transparent;
|
|
51
|
+
--#{$prefix}btn-outline-#{$color-name}-border-color: #{$default-color};
|
|
52
|
+
|
|
53
|
+
--#{$prefix}btn-outline-#{$color-name}-hover-color: #{$hover-text-color};
|
|
54
|
+
--#{$prefix}btn-outline-#{$color-name}-hover-bg: #{$hover-bg-color};
|
|
55
|
+
--#{$prefix}btn-outline-#{$color-name}-hover-border-color: #{$default-color};
|
|
56
|
+
|
|
57
|
+
--#{$prefix}btn-outline-#{$color-name}-focus-color: #{$focus-text-color};
|
|
58
|
+
--#{$prefix}btn-outline-#{$color-name}-focus-bg: transparent;
|
|
59
|
+
--#{$prefix}btn-outline-#{$color-name}-focus-border-color: #{$default-color};
|
|
60
|
+
|
|
61
|
+
--#{$prefix}btn-outline-#{$color-name}-active-color: #{$active-text-color};
|
|
62
|
+
--#{$prefix}btn-outline-#{$color-name}-active-bg: #{$active-bg-color};
|
|
63
|
+
--#{$prefix}btn-outline-#{$color-name}-active-border-color: #{$active-border-color};
|
|
64
|
+
|
|
65
|
+
--#{$prefix}btn-outline-#{$color-name}-disabled-color: #{$default-color};
|
|
66
|
+
--#{$prefix}btn-outline-#{$color-name}-disabled-bg: transparent;
|
|
67
|
+
--#{$prefix}btn-outline-#{$color-name}-disabled-border-color: #{$default-color};
|
|
68
|
+
--#{$prefix}btn-outline-#{$color-name}-disabled-opacity: #{$disabled-opacity};
|
|
83
69
|
}
|
|
84
|
-
// scss-docs-end df-btn-outline-variant-mixin
|
|
70
|
+
// scss-docs-end df-btn-outline-variant-variables-mixin
|
|
85
71
|
|
|
86
|
-
// scss-docs-start df-btn-link-variant-mixin
|
|
87
|
-
@mixin df-button-link-variant(
|
|
72
|
+
// scss-docs-start df-btn-link-variant-variables-mixin
|
|
73
|
+
@mixin df-button-link-variant-variables(
|
|
88
74
|
$color-name,
|
|
89
|
-
$default-color: var(--#{$prefix}#{$color-name}-
|
|
75
|
+
$default-color: var(--#{$prefix}#{$color-name}-500),
|
|
90
76
|
$hover-bg-color: var(--#{$prefix}#{$color-name}-100),
|
|
91
|
-
$
|
|
92
|
-
$
|
|
77
|
+
$hover-text-color: var(--#{$prefix}#{$color-name}-500),
|
|
78
|
+
$focus-text-color: var(--#{$prefix}#{$color-name}-500),
|
|
79
|
+
$active-text-color: var(--#{$prefix}#{$color-name}-700),
|
|
80
|
+
$active-bg-color: var(--#{$prefix}#{$color-name}-100),
|
|
81
|
+
$disabled-opacity: .5
|
|
93
82
|
) {
|
|
94
|
-
--#{$prefix}btn-bg: transparent;
|
|
95
|
-
--#{$prefix}btn-border-color: transparent;
|
|
96
|
-
--#{$prefix}btn-color: #{$default-color};
|
|
83
|
+
--#{$prefix}btn-link-#{$color-name}-bg: transparent;
|
|
84
|
+
--#{$prefix}btn-link-#{$color-name}-border-color: transparent;
|
|
85
|
+
--#{$prefix}btn-link-#{$color-name}-color: #{$default-color};
|
|
86
|
+
|
|
87
|
+
--#{$prefix}btn-link-#{$color-name}-hover-bg: #{$hover-bg-color};
|
|
88
|
+
--#{$prefix}btn-link-#{$color-name}-hover-border-color: transparent;
|
|
89
|
+
--#{$prefix}btn-link-#{$color-name}-hover-color: #{$hover-text-color};
|
|
90
|
+
|
|
91
|
+
--#{$prefix}btn-link-#{$color-name}-focus-bg: transparent;
|
|
92
|
+
--#{$prefix}btn-link-#{$color-name}-focus-border-color: transparent;
|
|
93
|
+
--#{$prefix}btn-link-#{$color-name}-focus-color: #{$focus-text-color};
|
|
94
|
+
|
|
95
|
+
--#{$prefix}btn-link-#{$color-name}-active-bg: #{$active-bg-color};
|
|
96
|
+
--#{$prefix}btn-link-#{$color-name}-active-border-color: transparent;
|
|
97
|
+
--#{$prefix}btn-link-#{$color-name}-active-color: #{$active-text-color};
|
|
98
|
+
|
|
99
|
+
--#{$prefix}btn-link-#{$color-name}-disabled-bg: transparent;
|
|
100
|
+
--#{$prefix}btn-link-#{$color-name}-disabled-border-color: transparent;
|
|
101
|
+
--#{$prefix}btn-link-#{$color-name}-disabled-color: #{$default-color};
|
|
102
|
+
--#{$prefix}btn-link-#{$color-name}-disabled-opacity: #{$disabled-opacity};
|
|
103
|
+
}
|
|
104
|
+
// scss-docs-end df-btn-link-variant-variables-mixin
|
|
105
|
+
|
|
106
|
+
// scss-docs-start df-btn-variant-mixin
|
|
107
|
+
@mixin df-button-variant-mapper($color-name, $variant-name: "") {
|
|
108
|
+
@if $variant-name != "" {
|
|
109
|
+
$variant-name: "#{$variant-name}-";
|
|
110
|
+
}
|
|
97
111
|
|
|
98
|
-
--#{$prefix}btn-
|
|
99
|
-
--#{$prefix}btn-
|
|
100
|
-
--#{$prefix}btn-
|
|
112
|
+
--#{$prefix}btn-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-color);
|
|
113
|
+
--#{$prefix}btn-bg: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-bg);
|
|
114
|
+
--#{$prefix}btn-border-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-border-color);
|
|
101
115
|
|
|
102
|
-
--#{$prefix}btn-
|
|
103
|
-
--#{$prefix}btn-
|
|
104
|
-
--#{$prefix}btn-
|
|
116
|
+
--#{$prefix}btn-hover-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-hover-color);
|
|
117
|
+
--#{$prefix}btn-hover-bg: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-hover-bg);
|
|
118
|
+
--#{$prefix}btn-hover-border-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-hover-border-color);
|
|
105
119
|
|
|
106
|
-
--#{$prefix}btn-
|
|
107
|
-
--#{$prefix}btn-
|
|
108
|
-
--#{$prefix}btn-
|
|
120
|
+
--#{$prefix}btn-focus-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-focus-color);
|
|
121
|
+
--#{$prefix}btn-focus-bg: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-focus-bg);
|
|
122
|
+
--#{$prefix}btn-focus-border-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-focus-border-color);
|
|
109
123
|
|
|
110
|
-
--#{$prefix}btn-
|
|
111
|
-
--#{$prefix}btn-
|
|
112
|
-
--#{$prefix}btn-
|
|
124
|
+
--#{$prefix}btn-active-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-active-color);
|
|
125
|
+
--#{$prefix}btn-active-bg: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-active-bg);
|
|
126
|
+
--#{$prefix}btn-active-border-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-active-border-color);
|
|
113
127
|
|
|
114
|
-
--#{$prefix}btn-
|
|
128
|
+
--#{$prefix}btn-disabled-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-disabled-color);
|
|
129
|
+
--#{$prefix}btn-disabled-bg: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-disabled-bg);
|
|
130
|
+
--#{$prefix}btn-disabled-border-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-disabled-border-color);
|
|
131
|
+
--#{$prefix}btn-disabled-opacity: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-disabled-opacity);
|
|
115
132
|
|
|
116
133
|
&.loading {
|
|
117
|
-
--#{$prefix}btn-disabled-
|
|
118
|
-
--#{$prefix}btn-disabled-bg:
|
|
119
|
-
--#{$prefix}btn-disabled-border-color:
|
|
120
|
-
--#{$prefix}btn-disabled-color: #{$default-color};
|
|
134
|
+
--#{$prefix}btn-disabled-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-active-color);
|
|
135
|
+
--#{$prefix}btn-disabled-bg: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-active-bg);
|
|
136
|
+
--#{$prefix}btn-disabled-border-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-active-border-color);
|
|
121
137
|
}
|
|
122
138
|
}
|
|
123
|
-
// scss-docs-end df-btn-
|
|
139
|
+
// scss-docs-end df-btn-variant-mixin
|
|
124
140
|
|
|
125
141
|
// scss-docs-start df-table-variant
|
|
126
142
|
@mixin df-table-variant($state, $background) {
|
|
@@ -55,6 +55,12 @@ $utilities: map-merge(
|
|
|
55
55
|
)
|
|
56
56
|
)
|
|
57
57
|
),
|
|
58
|
+
"font-weight": map-merge(
|
|
59
|
+
map-get($utilities, "font-weight"),
|
|
60
|
+
(
|
|
61
|
+
responsive: true
|
|
62
|
+
)
|
|
63
|
+
),
|
|
58
64
|
"border-color": map-merge(
|
|
59
65
|
map-get($utilities, "border-color"),
|
|
60
66
|
(
|
|
@@ -76,9 +82,36 @@ $utilities: map-merge(
|
|
|
76
82
|
100: 1
|
|
77
83
|
)
|
|
78
84
|
),
|
|
85
|
+
"text-truncate": (
|
|
86
|
+
responsive: true,
|
|
87
|
+
class: "text-truncate",
|
|
88
|
+
css-var: true,
|
|
89
|
+
values: (
|
|
90
|
+
1: 1,
|
|
91
|
+
2: 2,
|
|
92
|
+
3: 3,
|
|
93
|
+
4: 4,
|
|
94
|
+
5: 6,
|
|
95
|
+
6: 6
|
|
96
|
+
)
|
|
97
|
+
),
|
|
79
98
|
"cursor": (
|
|
80
99
|
property: cursor,
|
|
81
|
-
values: $cursors
|
|
100
|
+
values: $cursors
|
|
101
|
+
),
|
|
102
|
+
"font-size": map-merge(
|
|
103
|
+
map-get($utilities, "font-size"),
|
|
104
|
+
(
|
|
105
|
+
responsive: true,
|
|
106
|
+
rfs: false
|
|
107
|
+
)
|
|
108
|
+
),
|
|
109
|
+
"display-font-size": (
|
|
110
|
+
class: "display",
|
|
111
|
+
responsive: true,
|
|
112
|
+
css-var: true,
|
|
113
|
+
css-variable-name: display-font-size,
|
|
114
|
+
values: $display-font-sizes
|
|
82
115
|
),
|
|
83
116
|
)
|
|
84
117
|
);
|
|
@@ -57,6 +57,7 @@ $input-btn-border-width: var(--#{$prefix}border-width) !default;
|
|
|
57
57
|
|
|
58
58
|
@import "buttons";
|
|
59
59
|
@import "forms";
|
|
60
|
+
@import "z-index";
|
|
60
61
|
@import "navs";
|
|
61
62
|
@import "navbar";
|
|
62
63
|
@import "dropdowns";
|
|
@@ -64,6 +65,7 @@ $input-btn-border-width: var(--#{$prefix}border-width) !default;
|
|
|
64
65
|
|
|
65
66
|
@import "cards";
|
|
66
67
|
@import "accordion";
|
|
68
|
+
@import "tooltip";
|
|
67
69
|
@import "badges";
|
|
68
70
|
@import "modals";
|
|
69
71
|
@import "alerts";
|
|
@@ -9,8 +9,8 @@ $accordion-bg: var(--#{$prefix}white) !default;
|
|
|
9
9
|
// custom
|
|
10
10
|
$accordion-body-padding-top: $accordion-padding-x !default;
|
|
11
11
|
$accordion-button-border-color: var(--#{$prefix}gray-100) !default;
|
|
12
|
-
$accordion-button-font-weight: var(--#{$prefix}
|
|
13
|
-
$accordion-button-font-size: var(--#{$prefix}
|
|
12
|
+
$accordion-button-font-weight: var(--#{$prefix}fw-bold) !default;
|
|
13
|
+
$accordion-button-font-size: var(--#{$prefix}fs-6) !default;
|
|
14
14
|
// end custom
|
|
15
15
|
|
|
16
16
|
$accordion-button-active-bg: var(--#{$prefix}secondary-soft) !default;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// scss-docs-start alert-variables
|
|
6
6
|
$alert-padding-x: $spacer-6 !default;
|
|
7
7
|
$alert-border-radius: var(--#{$prefix}border-radius-sm) !default;
|
|
8
|
-
$alert-link-font-weight: var(--#{$prefix}
|
|
8
|
+
$alert-link-font-weight: var(--#{$prefix}fw-bold) !default;
|
|
9
9
|
// scss-docs-end alert-variables
|
|
10
10
|
|
|
11
11
|
// fusv-disable
|
|
@@ -24,7 +24,7 @@ $btn-focus-box-shadow: none !default;
|
|
|
24
24
|
$btn-disabled-opacity: 1 !default;
|
|
25
25
|
$btn-active-box-shadow: none !default;
|
|
26
26
|
|
|
27
|
-
$btn-border-radius: var(--#{$prefix}border-radius-
|
|
28
|
-
$btn-border-radius-sm: var(--#{$prefix}border-radius-
|
|
29
|
-
$btn-border-radius-lg: var(--#{$prefix}border-radius) !default;
|
|
27
|
+
$btn-border-radius: var(--#{$prefix}border-radius-pill) !default;
|
|
28
|
+
$btn-border-radius-sm: var(--#{$prefix}border-radius-pill) !default;
|
|
29
|
+
$btn-border-radius-lg: var(--#{$prefix}border-radius-pill) !default;
|
|
30
30
|
// scss-docs-end btn-variables
|
|
@@ -4,4 +4,6 @@
|
|
|
4
4
|
$card-border-width: 0px !default; // stylelint-disable-line length-zero-no-unit
|
|
5
5
|
$card-box-shadow: var(--#{$prefix}box-shadow-sm) !default;
|
|
6
6
|
$card-bg: var(--#{$prefix}white) !default;
|
|
7
|
+
$card-spacer-y: $spacer-6 !default;
|
|
8
|
+
$card-spacer-x: $spacer-6 !default;
|
|
7
9
|
// scss-docs-end card-variables
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
$collapse-icon-text-header-gap: var(--#{$prefix}ref-spacer-4) !default;
|
|
2
|
-
$collapse-icon-text-header-font-size: var(--#{$prefix}
|
|
3
|
-
$collapse-icon-text-header-font-weight: var(--#{$prefix}
|
|
2
|
+
$collapse-icon-text-header-font-size: var(--#{$prefix}fs-6) !default;
|
|
3
|
+
$collapse-icon-text-header-font-weight: var(--#{$prefix}fw-bold) !default;
|
|
@@ -5,8 +5,8 @@ $form-text-color: $text-muted !default;
|
|
|
5
5
|
|
|
6
6
|
// scss-docs-start form-label-variables
|
|
7
7
|
$form-label-margin-bottom: 0 !default;
|
|
8
|
-
$form-label-font-size: var(--#{$prefix}
|
|
9
|
-
$form-label-font-weight: var(--#{$prefix}
|
|
8
|
+
$form-label-font-size: var(--#{$prefix}fs-small) !default;
|
|
9
|
+
$form-label-font-weight: var(--#{$prefix}fw-bold) !default;
|
|
10
10
|
$form-label-color: var(--#{$prefix}gray) !default;
|
|
11
11
|
// scss-docs-end form-label-variables
|
|
12
12
|
|
|
@@ -48,9 +48,9 @@ $input-plaintext-color: var(--#{$prefix}body-color) !default;
|
|
|
48
48
|
$form-check-size-multiplier: 1.5 !default;
|
|
49
49
|
// end custom
|
|
50
50
|
$form-check-input-width: 1em * $form-check-size-multiplier !default;
|
|
51
|
-
$form-check-min-height: $
|
|
51
|
+
$form-check-min-height: $form-check-input-width !default;
|
|
52
52
|
$form-check-padding-start: $form-check-input-width - .5em * $form-check-size-multiplier !default;
|
|
53
|
-
$form-check-margin-bottom: .125rem
|
|
53
|
+
$form-check-margin-bottom: .125rem !default;
|
|
54
54
|
|
|
55
55
|
// custom
|
|
56
56
|
$form-check-input-border-color: var(--#{$prefix}gray-400) !default;
|
|
@@ -69,9 +69,7 @@ $form-check-input-hover-border-color: var(--#{$prefix}focus-ring-color) !default
|
|
|
69
69
|
$form-check-input-checked-bg-image: url("data:image/svg+xml, <svg viewBox='-4 -6 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M14.294 0.594229C14.3863 0.498719 14.4966 0.422536 14.6186 0.370127C14.7406 0.317718 14.8719 0.290132 15.0046 0.288978C15.1374 0.287824 15.2691 0.313126 15.392 0.363407C15.5149 0.413688 15.6265 0.487941 15.7204 0.581833C15.8143 0.675726 15.8886 0.787378 15.9389 0.910275C15.9891 1.03317 16.0144 1.16485 16.0133 1.29763C16.0121 1.43041 15.9846 1.56163 15.9321 1.68363C15.8797 1.80564 15.8036 1.91598 15.708 2.00823L6.70804 11.0082C6.52051 11.1957 6.26621 11.301 6.00104 11.301C5.73588 11.301 5.48157 11.1957 5.29404 11.0082L0.293041 6.00723C0.110883 5.81863 0.0100885 5.56602 0.0123669 5.30383C0.0146453 5.04163 0.119815 4.79082 0.305223 4.60541C0.490631 4.42 0.741443 4.31483 1.00364 4.31255C1.26584 4.31028 1.51844 4.41107 1.70704 4.59323L6.00104 8.88723L14.294 0.594229V0.594229Z' fill='#{$white}'/></svg>") !default;
|
|
70
70
|
$form-check-radio-checked-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='2' fill='#{$white}'/></svg>") !default;
|
|
71
71
|
|
|
72
|
-
$form-check-input-indeterminate-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='#{$
|
|
73
|
-
|
|
74
|
-
$form-check-input-disabled-opacity: 1 !default;
|
|
72
|
+
$form-check-input-indeterminate-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='#{$white}' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/></svg>") !default;
|
|
75
73
|
|
|
76
74
|
// custom
|
|
77
75
|
$form-check-input-disabled-border-color: var(--#{$prefix}gray-300) !default;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// scss-docs-start nav-variables
|
|
4
4
|
$nav-link-font-size: var(--#{$prefix}body-font-size) !default;
|
|
5
|
-
$nav-link-font-weight: var(--#{$prefix}
|
|
5
|
+
$nav-link-font-weight: var(--#{$prefix}fw-normal) !default;
|
|
6
6
|
$nav-link-color: var(--#{$prefix}gray-500) !default;
|
|
7
7
|
$nav-link-hover-color: var(--#{$prefix}secondary-600) !default;
|
|
8
8
|
$nav-link-disabled-color: var(--#{$prefix}gray-200) !default;
|
|
@@ -12,7 +12,7 @@ $nav-link-border-height: 2px !default;
|
|
|
12
12
|
$nav-link-line-height: var(--#{$prefix}ref-spacer-6) !default;
|
|
13
13
|
$nav-link-border-border-radius: $border-radius-pill !default;
|
|
14
14
|
$nav-link-border-active-color: var(--#{$prefix}secondary) !default;
|
|
15
|
-
$nav-link-border-active-font-weight: var(--#{$prefix}
|
|
15
|
+
$nav-link-border-active-font-weight: var(--#{$prefix}fw-bold) !default;
|
|
16
16
|
$nav-link-border-active-bg: var(--#{$prefix}secondary) !default;
|
|
17
17
|
// end custom
|
|
18
18
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
// scss-docs-start pagination-variables
|
|
4
4
|
$pagination-padding-y: var(--#{$prefix}ref-spacer-1) !default;
|
|
5
5
|
$pagination-padding-x: var(--#{$prefix}ref-spacer-1) !default;
|
|
6
|
-
$pagination-padding-y-sm: var(--#{$prefix}ref-spacer-
|
|
7
|
-
$pagination-padding-x-sm: var(--#{$prefix}ref-spacer-
|
|
8
|
-
$pagination-padding-y-lg: var(--#{$prefix}ref-spacer-
|
|
9
|
-
$pagination-padding-x-lg: var(--#{$prefix}ref-spacer-
|
|
6
|
+
$pagination-padding-y-sm: var(--#{$prefix}ref-spacer-0) !default;
|
|
7
|
+
$pagination-padding-x-sm: var(--#{$prefix}ref-spacer-0) !default;
|
|
8
|
+
$pagination-padding-y-lg: var(--#{$prefix}ref-spacer-1) !default;
|
|
9
|
+
$pagination-padding-x-lg: var(--#{$prefix}ref-spacer-1) !default;
|
|
10
10
|
|
|
11
11
|
// custom
|
|
12
12
|
$pagination-page-item-size: $spacer-8 !default;
|