@dynamic-framework/ui-react 1.32.3 → 1.34.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/bootstrap-icons.css +2078 -0
- package/dist/css/bootstrap-icons.json +2052 -0
- package/dist/css/bootstrap-icons.min.css +5 -0
- package/dist/css/bootstrap-icons.scss +2090 -0
- package/dist/css/dynamic-ui-non-root.css +21 -8
- package/dist/css/dynamic-ui-non-root.min.css +3 -3
- package/dist/css/dynamic-ui-root.css +2 -2
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +21 -8
- package/dist/css/dynamic-ui.min.css +3 -3
- package/dist/css/fonts/bootstrap-icons.woff +0 -0
- package/dist/css/fonts/bootstrap-icons.woff2 +0 -0
- package/dist/index.esm.js +148 -57
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +164 -63
- package/dist/index.js.map +1 -1
- package/dist/types/components/DInputCheck/DInputCheck.d.ts +2 -1
- package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +4 -9
- package/dist/types/components/DSelect/DSelect.d.ts +3 -1
- package/dist/types/components/DSelect/components/DSelectPlaceholder.d.ts +2 -0
- package/dist/types/contexts/DContext.d.ts +9 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useMediaBreakpointUp.d.ts +6 -0
- package/dist/types/hooks/useMediaQuery.d.ts +1 -0
- package/dist/types/utils/getCssVariable.d.ts +1 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/mediaQuery.d.ts +2 -0
- package/package.json +96 -88
- package/src/style/abstracts/variables/_forms.scss +1 -1
- package/src/style/base/_form-check.scss +18 -0
- package/src/style/components/_d-quick-action-button.scss +4 -2
|
@@ -10,9 +10,10 @@ type Props = ComponentPropsWithoutRef<'input'> & BaseProps & {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
invalid?: boolean;
|
|
12
12
|
valid?: boolean;
|
|
13
|
+
hint?: string;
|
|
13
14
|
indeterminate?: boolean;
|
|
14
15
|
value?: string;
|
|
15
16
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
16
17
|
};
|
|
17
|
-
export default function DInputCheck({ id: idProp, type, name, label, ariaLabel, checked, disabled, invalid, valid, indeterminate, value, onChange, className, style, dataAttributes, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function DInputCheck({ id: idProp, type, name, label, ariaLabel, checked, disabled, invalid, valid, indeterminate, value, hint, onChange, className, style, dataAttributes, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export {};
|
|
@@ -2,11 +2,8 @@ import type { BaseProps } from '../interface';
|
|
|
2
2
|
type Props = BaseProps & {
|
|
3
3
|
line1: string;
|
|
4
4
|
line2: string;
|
|
5
|
-
actionLinkText?: string;
|
|
6
|
-
actionLinkTheme?: string;
|
|
7
5
|
actionIcon?: string;
|
|
8
|
-
|
|
9
|
-
secondaryActionAriaLabel?: string;
|
|
6
|
+
actionIconTheme?: string;
|
|
10
7
|
actionIconFamilyClass?: string;
|
|
11
8
|
actionIconFamilyPrefix?: string;
|
|
12
9
|
representativeImage?: string;
|
|
@@ -15,11 +12,9 @@ type Props = BaseProps & {
|
|
|
15
12
|
representativeIconHasCircle?: boolean;
|
|
16
13
|
representativeIconFamilyClass?: string;
|
|
17
14
|
representativeIconFamilyPrefix?: string;
|
|
15
|
+
href?: string;
|
|
16
|
+
hrefTarget?: string;
|
|
18
17
|
onClick?: () => void;
|
|
19
|
-
onClickSecondary?: () => void;
|
|
20
18
|
};
|
|
21
|
-
|
|
22
|
-
* @deprecated
|
|
23
|
-
*/
|
|
24
|
-
export default function DQuickActionButton({ line1, line2, className, actionLinkText, actionLinkTheme, actionIcon, secondaryActionIcon, secondaryActionAriaLabel, actionIconFamilyClass, actionIconFamilyPrefix, representativeImage, representativeIcon, representativeIconTheme, representativeIconHasCircle, representativeIconFamilyClass, representativeIconFamilyPrefix, onClick, onClickSecondary, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default function DQuickActionButton({ line1, line2, className, actionIcon, actionIconFamilyClass, actionIconFamilyPrefix, actionIconTheme, representativeImage, representativeIcon, representativeIconTheme, representativeIconHasCircle, representativeIconFamilyClass, representativeIconFamilyPrefix, onClick, href, hrefTarget, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
25
20
|
export {};
|
|
@@ -9,6 +9,7 @@ import DSelectLoadingIndicator from './components/DSelectLoadingIndicator';
|
|
|
9
9
|
import DSelectOptionEmoji from './components/DSelectOptionEmoji';
|
|
10
10
|
import DSelectSingleValueEmoji from './components/DSelectSingleValueEmoji';
|
|
11
11
|
import DSelectSingleValueEmojiText from './components/DSelectSingleValueEmojiText';
|
|
12
|
+
import DSelectPlaceholder from './components/DSelectPlaceholder';
|
|
12
13
|
import type { BaseProps, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps } from '../interface';
|
|
13
14
|
type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & Omit<SelectProps<Option, IsMulti, Group>, 'isDisabled' | 'isClearable' | 'isLoading' | 'isRtl' | 'isSearchable' | 'isMulti'> & {
|
|
14
15
|
label?: string;
|
|
@@ -25,7 +26,7 @@ type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = B
|
|
|
25
26
|
searchable?: SelectProps<Option, IsMulti, Group>['isSearchable'];
|
|
26
27
|
multi?: SelectProps<Option, IsMulti, Group>['isMulti'];
|
|
27
28
|
};
|
|
28
|
-
declare function DSelect<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id, className, style, label, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, hint, iconFamilyClass, iconFamilyPrefix, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconStartTabIndex, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, iconEndTabIndex, invalid, valid, menuWithMaxContent, disabled, clearable, loading, rtl, searchable, multi, components, defaultValue, onIconStartClick, onIconEndClick, dataAttributes, ...props }: Props<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function DSelect<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id: idProp, className, style, label, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, hint, iconFamilyClass, iconFamilyPrefix, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconStartTabIndex, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, iconEndTabIndex, invalid, valid, menuWithMaxContent, disabled, clearable, loading, rtl, searchable, multi, components, defaultValue, placeholder, onIconStartClick, onIconEndClick, dataAttributes, ...props }: Props<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
29
30
|
declare const _default: typeof DSelect & {
|
|
30
31
|
OptionCheck: typeof DSelectOptionCheck;
|
|
31
32
|
OptionIcon: typeof DSelectOptionIcon;
|
|
@@ -37,5 +38,6 @@ declare const _default: typeof DSelect & {
|
|
|
37
38
|
OptionEmoji: typeof DSelectOptionEmoji;
|
|
38
39
|
SingleValueEmoji: typeof DSelectSingleValueEmoji;
|
|
39
40
|
SingleValueEmojiText: typeof DSelectSingleValueEmojiText;
|
|
41
|
+
Placeholder: typeof DSelectPlaceholder;
|
|
40
42
|
};
|
|
41
43
|
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { GroupBase, PlaceholderProps } from 'react-select';
|
|
2
|
+
export default function DSelectPlaceholder<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ selectProps, innerProps: innerPropsProp, children, ...props }: PlaceholderProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -33,11 +33,20 @@ type IconMapProps = {
|
|
|
33
33
|
increase: string;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
+
export type BreakpointProps = {
|
|
37
|
+
xs: string;
|
|
38
|
+
sm: string;
|
|
39
|
+
md: string;
|
|
40
|
+
lg: string;
|
|
41
|
+
xl: string;
|
|
42
|
+
xxl: string;
|
|
43
|
+
};
|
|
36
44
|
type Props<T extends Record<string, unknown>> = {
|
|
37
45
|
language: string;
|
|
38
46
|
currency: CurrencyProps;
|
|
39
47
|
icon: IconProps;
|
|
40
48
|
iconMap: IconMapProps;
|
|
49
|
+
breakpoints: BreakpointProps;
|
|
41
50
|
} & PortalContextProps<T>;
|
|
42
51
|
type Context<T extends Record<string, unknown>> = Props<T> & {
|
|
43
52
|
setContext: (value: Partial<Props<T>>) => void;
|
|
@@ -6,3 +6,5 @@ export { default as useStackState } from './useStackState';
|
|
|
6
6
|
export { default as useDisableBodyScrollEffect } from './useDisableBodyScrollEffect';
|
|
7
7
|
export { default as usePortal } from './usePortal';
|
|
8
8
|
export { default as useItemSelection } from './useItemSelection';
|
|
9
|
+
export { default as useMediaQuery } from './useMediaQuery';
|
|
10
|
+
export { useMediaBreakpointUpXs, useMediaBreakpointUpSm, useMediaBreakpointUpMd, useMediaBreakpointUpLg, useMediaBreakpointUpXl, useMediaBreakpointUpXxl, } from './useMediaBreakpointUp';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function useMediaBreakpointUpXs(useListener?: boolean): boolean;
|
|
2
|
+
export declare function useMediaBreakpointUpSm(useListener?: boolean): boolean;
|
|
3
|
+
export declare function useMediaBreakpointUpMd(useListener?: boolean): boolean;
|
|
4
|
+
export declare function useMediaBreakpointUpLg(useListener?: boolean): boolean;
|
|
5
|
+
export declare function useMediaBreakpointUpXl(useListener?: boolean): boolean;
|
|
6
|
+
export declare function useMediaBreakpointUpXxl(useListener?: boolean): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useMediaQuery(mediaQuery: string, useListener?: boolean): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getCssVariable(variable: string): string;
|
|
@@ -2,3 +2,5 @@ export { default as formatCurrency } from './formatCurrency';
|
|
|
2
2
|
export { default as configureI18n } from './configureI18n';
|
|
3
3
|
export { default as getQueryString } from './getQueryString';
|
|
4
4
|
export { default as changeQueryString } from './changeQueryString';
|
|
5
|
+
export { default as getCssVariable } from './getCssVariable';
|
|
6
|
+
export * from './mediaQuery';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sideEffects": [
|
|
4
4
|
"*.css"
|
|
5
5
|
],
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.34.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": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"test": "jest",
|
|
44
44
|
"test:watch": "jest --watch",
|
|
45
45
|
"test:storybook": "test-storybook",
|
|
46
|
-
"build": "
|
|
46
|
+
"build": "npm run clean && npm run build:react && npm run build:scss && npm run cp",
|
|
47
47
|
"build:react": "tsc -p ./tsconfig.build.json && rollup -c rollup.config.mjs",
|
|
48
48
|
"build:react:watch": "tsc -p ./tsconfig.build.json && rollup -c rollup.config.mjs",
|
|
49
49
|
"build:scss": "node scripts/build-scss.js",
|
|
50
|
-
"cp": "
|
|
50
|
+
"cp": "npm run cp:bootstrap && npm run cp:popper && npm run cp:bootstrap-icons",
|
|
51
51
|
"cp:bootstrap": "scripts/cp-boostrap.sh",
|
|
52
52
|
"cp:bootstrap-icons": "scripts/cp-boostrap-icons.sh",
|
|
53
53
|
"cp:popper": "scripts/cp-popper.sh",
|
|
@@ -55,17 +55,22 @@
|
|
|
55
55
|
"compile": "tsc -p . && rollup -c rollup.config.mjs",
|
|
56
56
|
"storybook": "storybook dev -p 6006",
|
|
57
57
|
"build:storybook": "storybook build --docs -o docs",
|
|
58
|
-
"eslint": "
|
|
58
|
+
"eslint": "npm run eslint:src && npm run eslint:stories && npm run eslint:test",
|
|
59
59
|
"eslint:src": "eslint src/**/*{.ts,.tsx} --ignore-pattern '**/*.spec.tsx'",
|
|
60
60
|
"eslint:stories": "eslint stories/**/*.stories.tsx",
|
|
61
61
|
"eslint:test": "eslint src/**/*.spec.tsx",
|
|
62
62
|
"stylelint": "stylelint \"**/*.{css,scss}\" --rd",
|
|
63
|
-
"postversion": "
|
|
64
|
-
"publish:cdn": "
|
|
63
|
+
"postversion": "npm run build:scss",
|
|
64
|
+
"publish:cdn": "npm run publish:cdn-version && npm run publish:cdn-latest",
|
|
65
65
|
"publish:cdn-version": "node scripts/publish-cdn.js",
|
|
66
66
|
"publish:cdn-latest": "aws s3 sync ./dist/ s3://dynamicframework-cdn/assets/latest/ui-react --delete --acl public-read",
|
|
67
67
|
"publish:cdn-rc": "aws s3 sync ./dist/ s3://dynamicframework-cdn/assets/rc/ui-react --delete --acl public-read",
|
|
68
|
-
"lint-staged": "lint-staged"
|
|
68
|
+
"lint-staged": "lint-staged",
|
|
69
|
+
"prepare": "husky install",
|
|
70
|
+
"commitlint": "commitlint --edit"
|
|
71
|
+
},
|
|
72
|
+
"engines": {
|
|
73
|
+
"node": ">=20.13.1"
|
|
69
74
|
},
|
|
70
75
|
"main": "./dist/index.js",
|
|
71
76
|
"module": "./dist/index.esm.js",
|
|
@@ -76,94 +81,97 @@
|
|
|
76
81
|
"jest/"
|
|
77
82
|
],
|
|
78
83
|
"dependencies": {
|
|
79
|
-
"@floating-ui/react": "
|
|
80
|
-
"@react-input/mask": "
|
|
81
|
-
"@splidejs/react-splide": "
|
|
82
|
-
"@splidejs/splide": "
|
|
83
|
-
"@types/react-datepicker": "
|
|
84
|
-
"bootstrap": "
|
|
85
|
-
"classnames": "
|
|
86
|
-
"currency.js": "
|
|
87
|
-
"date-fns": "
|
|
88
|
-
"i18next": "
|
|
89
|
-
"react-content-loader": "
|
|
90
|
-
"react-datepicker": "
|
|
91
|
-
"react-dropzone": "
|
|
92
|
-
"react-responsive-pagination": "^2.
|
|
93
|
-
"react-select": "^5.8.
|
|
84
|
+
"@floating-ui/react": "~0.26.1",
|
|
85
|
+
"@react-input/mask": "~1.0.20",
|
|
86
|
+
"@splidejs/react-splide": "~0.7.12",
|
|
87
|
+
"@splidejs/splide": "~4.1.4",
|
|
88
|
+
"@types/react-datepicker": "~4.19.1",
|
|
89
|
+
"bootstrap": "~5.3.3",
|
|
90
|
+
"classnames": "~2.3.2",
|
|
91
|
+
"currency.js": "~2.0.4",
|
|
92
|
+
"date-fns": "~2.30.0",
|
|
93
|
+
"i18next": "~23.6.0",
|
|
94
|
+
"react-content-loader": "~6.2.1",
|
|
95
|
+
"react-datepicker": "~4.21.0",
|
|
96
|
+
"react-dropzone": "~14.2.3",
|
|
97
|
+
"react-responsive-pagination": "^2.9.0",
|
|
98
|
+
"react-select": "^5.8.3"
|
|
94
99
|
},
|
|
95
100
|
"devDependencies": {
|
|
96
|
-
"@babel/core": "
|
|
97
|
-
"@babel/preset-env": "
|
|
98
|
-
"@babel/preset-react": "
|
|
99
|
-
"@babel/preset-typescript": "
|
|
100
|
-
"@
|
|
101
|
-
"@
|
|
102
|
-
"@
|
|
103
|
-
"@
|
|
104
|
-
"@
|
|
105
|
-
"@storybook/addon-
|
|
106
|
-
"@storybook/addon-
|
|
107
|
-
"@storybook/addon-
|
|
108
|
-
"@storybook/addon-
|
|
109
|
-
"@storybook/
|
|
110
|
-
"@storybook/
|
|
111
|
-
"@storybook/
|
|
112
|
-
"@storybook/
|
|
113
|
-
"@storybook/
|
|
114
|
-
"@
|
|
115
|
-
"@
|
|
116
|
-
"@
|
|
117
|
-
"@
|
|
118
|
-
"@types/
|
|
119
|
-
"@types/
|
|
120
|
-
"@types/react
|
|
121
|
-
"@
|
|
122
|
-
"@
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"eslint
|
|
131
|
-
"eslint-
|
|
132
|
-
"eslint-
|
|
133
|
-
"eslint-plugin-
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
101
|
+
"@babel/core": "~7.23.2",
|
|
102
|
+
"@babel/preset-env": "~7.23.2",
|
|
103
|
+
"@babel/preset-react": "~7.22.15",
|
|
104
|
+
"@babel/preset-typescript": "~7.23.2",
|
|
105
|
+
"@commitlint/cli": "~19.3.0",
|
|
106
|
+
"@commitlint/config-conventional": "~19.2.2",
|
|
107
|
+
"@mdx-js/react": "~2.3.0",
|
|
108
|
+
"@popperjs/core": "~2.11.8",
|
|
109
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
110
|
+
"@storybook/addon-a11y": "~8.2.9",
|
|
111
|
+
"@storybook/addon-actions": "~8.2.9",
|
|
112
|
+
"@storybook/addon-essentials": "~8.2.9",
|
|
113
|
+
"@storybook/addon-interactions": "~8.2.9",
|
|
114
|
+
"@storybook/addon-links": "~8.2.9",
|
|
115
|
+
"@storybook/addon-viewport": "~8.2.9",
|
|
116
|
+
"@storybook/blocks": "~8.2.9",
|
|
117
|
+
"@storybook/react": "~8.2.9",
|
|
118
|
+
"@storybook/react-vite": "~8.2.9",
|
|
119
|
+
"@storybook/test": "~8.2.9",
|
|
120
|
+
"@storybook/theming": "~8.2.9",
|
|
121
|
+
"@testing-library/jest-dom": "~6.1.4",
|
|
122
|
+
"@testing-library/react": "~14.0.0",
|
|
123
|
+
"@types/jest": "~29.5.12",
|
|
124
|
+
"@types/node": "~18.15.3",
|
|
125
|
+
"@types/react": "~18.2.31",
|
|
126
|
+
"@types/react-datepicker": "~4.19.1",
|
|
127
|
+
"@types/react-dom": "~18.2.14",
|
|
128
|
+
"@typescript-eslint/eslint-plugin": "~6.9.0",
|
|
129
|
+
"@typescript-eslint/parser": "~6.9.0",
|
|
130
|
+
"autoprefixer": "~10.4.16",
|
|
131
|
+
"axe-playwright": "~1.2.3",
|
|
132
|
+
"babel-loader": "~9.1.3",
|
|
133
|
+
"bootstrap-icons": "~1.11.3",
|
|
134
|
+
"conventional-changelog-conventionalcommits": "~6.1.0",
|
|
135
|
+
"eslint": "~8.52.0",
|
|
136
|
+
"eslint-config-airbnb": "~19.0.4",
|
|
137
|
+
"eslint-config-airbnb-typescript": "~17.1.0",
|
|
138
|
+
"eslint-plugin-import": "~2.29.0",
|
|
139
|
+
"eslint-plugin-jsx-a11y": "~6.7.1",
|
|
140
|
+
"eslint-plugin-react": "~7.33.2",
|
|
141
|
+
"eslint-plugin-react-hooks": "~4.6.0",
|
|
142
|
+
"glob": "~10.3.10",
|
|
143
|
+
"husky": "~8.0.3",
|
|
144
|
+
"jest": "~29.7.0",
|
|
145
|
+
"jest-axe": "~8.0.0",
|
|
146
|
+
"jest-cli": "~29.7.0",
|
|
147
|
+
"jest-environment-jsdom": "~29.7.0",
|
|
148
|
+
"lint-staged": "^15.2.10",
|
|
149
|
+
"postcss-cli": "~10.1.0",
|
|
150
|
+
"react": "~18.2.0",
|
|
151
|
+
"react-dom": "~18.2.0",
|
|
152
|
+
"react-hot-toast": "~2.4.1",
|
|
153
|
+
"react-i18next": "~13.3.1",
|
|
154
|
+
"recharts": "~2.12.7",
|
|
155
|
+
"rimraf": "~5.0.5",
|
|
156
|
+
"rollup": "^4.27.4",
|
|
157
|
+
"sass": "~1.69.4",
|
|
158
|
+
"storybook": "~8.2.9",
|
|
159
|
+
"stylelint": "~15.11.0",
|
|
160
|
+
"stylelint-config-twbs-bootstrap": "~11.0.1",
|
|
161
|
+
"ts-jest": "~29.2.3",
|
|
162
|
+
"tslib": "~2.6.2",
|
|
163
|
+
"typescript": "~5.2.2"
|
|
155
164
|
},
|
|
156
165
|
"peerDependencies": {
|
|
157
|
-
"react": "
|
|
158
|
-
"react-dom": "
|
|
159
|
-
"react-hot-toast": "
|
|
160
|
-
"react-i18next": "
|
|
161
|
-
"recharts": "
|
|
166
|
+
"react": "~18.2.0",
|
|
167
|
+
"react-dom": "~18.2.0",
|
|
168
|
+
"react-hot-toast": "~2.4.1",
|
|
169
|
+
"react-i18next": "~13.3.1",
|
|
170
|
+
"recharts": "~2.12.7"
|
|
162
171
|
},
|
|
163
172
|
"peerDependenciesMeta": {
|
|
164
173
|
"recharts": {
|
|
165
174
|
"optional": true
|
|
166
175
|
}
|
|
167
|
-
}
|
|
168
|
-
"gitHead": "6e5aeff615f821945f2b52eb1b58180cd9e0622d"
|
|
176
|
+
}
|
|
169
177
|
}
|
|
@@ -46,7 +46,7 @@ $input-plaintext-color: var(--#{$prefix}body-color) !default;
|
|
|
46
46
|
// scss-docs-start form-check-variables
|
|
47
47
|
$form-check-input-width: 1em !default;
|
|
48
48
|
$form-check-min-height: $form-check-input-width !default;
|
|
49
|
-
$form-check-padding-start: $form-check-input-width
|
|
49
|
+
$form-check-padding-start: $form-check-input-width !default;
|
|
50
50
|
$form-check-input-focus-box-shadow: var(--#{$prefix}form-check-input-focus-box-shadow) !default;
|
|
51
51
|
$form-check-input-focus-border: var(--#{$prefix}form-check-input-focus-border-color) !default;
|
|
52
52
|
$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;
|
|
@@ -6,3 +6,21 @@
|
|
|
6
6
|
--#{$prefix}form-check-input-focus-border-color: #{$component-focus-border-color};
|
|
7
7
|
--#{$prefix}form-check-input-focus-box-shadow: #{$input-btn-focus-box-shadow};
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
.form-check {
|
|
11
|
+
.form-text {
|
|
12
|
+
--#{$prefix}form-text-padding: 0 var(--#{$prefix}ref-spacer-2);
|
|
13
|
+
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@each $state, $data in $form-validation-states {
|
|
18
|
+
$border-color: map-get($data, "border-color");
|
|
19
|
+
|
|
20
|
+
&:has(.form-check-input.is-#{$state}) {
|
|
21
|
+
.form-text {
|
|
22
|
+
color: $border-color;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -53,13 +53,15 @@
|
|
|
53
53
|
border-radius: var(--#{$prefix}quick-action-button-border-radius);
|
|
54
54
|
box-shadow: var(--#{$prefix}quick-action-button-box-shadow);
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
&.d-quick-action-button-feedback:hover {
|
|
57
|
+
text-decoration: none;
|
|
57
58
|
background: var(--#{$prefix}quick-action-button-hover-bg);
|
|
58
59
|
border-color: var(--#{$prefix}quick-action-button-hover-border-color);
|
|
59
60
|
box-shadow: var(--#{$prefix}quick-action-button-hover-box-shadow);
|
|
60
61
|
}
|
|
61
62
|
|
|
62
|
-
|
|
63
|
+
&.d-quick-action-button-feedback:active {
|
|
64
|
+
text-decoration: none;
|
|
63
65
|
background: var(--#{$prefix}quick-action-button-active-bg);
|
|
64
66
|
border-color: var(--#{$prefix}quick-action-button-active-border-color);
|
|
65
67
|
box-shadow: var(--#{$prefix}quick-action-button-active-box-shadow);
|