@dynamic-framework/ui-react 1.5.0 → 1.6.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-root.css +286 -0
- package/dist/css/dynamic-root.min.css +1 -0
- package/dist/css/dynamic-ui-all.css +16620 -1
- package/dist/css/dynamic-ui-all.min.css +1 -0
- package/dist/css/dynamic-ui-react.css +1919 -1
- package/dist/css/dynamic-ui-react.min.css +1 -0
- package/dist/css/dynamic-ui.css +14701 -1
- package/dist/css/dynamic-ui.min.css +1 -0
- package/dist/index.esm.js +41 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +42 -3
- package/dist/index.js.map +1 -1
- package/dist/types/components/DStepper.d.ts +5 -2
- package/dist/types/components/DStepperDesktop.d.ts +12 -0
- package/dist/types/components/DStepperMobile.d.ts +11 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/stories/components/DStepperDesktop.stories.d.ts +7 -0
- package/dist/types/stories/components/DStepperMobile.stories.d.ts +6 -0
- package/package.json +5 -8
- package/src/style/abstracts/variables/_box-file.scss +4 -4
- package/src/style/abstracts/variables/_collapse-icon-text.scss +3 -3
- package/src/style/components/_+import.scss +2 -1
- package/src/style/components/_d-card-account.scss +2 -2
- package/src/style/components/{_d-stepper.scss → _d-stepper-desktop.scss} +1 -1
- package/src/style/components/_d-stepper-mobile.scss +69 -0
- package/src/style/dynamic-root.scss +2 -0
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { BreakpointSize } from '@dynamic-framework/ui/dist/types/utils/component-interface';
|
|
2
|
+
declare type Step = {
|
|
2
3
|
label: string;
|
|
3
4
|
value: number;
|
|
5
|
+
description?: string;
|
|
4
6
|
};
|
|
5
7
|
declare type Props = {
|
|
6
8
|
options: Array<Step>;
|
|
7
9
|
currentStep: number;
|
|
8
10
|
successIcon?: string;
|
|
9
11
|
isVertical?: boolean;
|
|
12
|
+
breakpoint?: BreakpointSize;
|
|
10
13
|
};
|
|
11
|
-
export default function DStepper({ options, currentStep, successIcon, isVertical, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default function DStepper({ options, currentStep, successIcon, isVertical, breakpoint, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
15
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare type Step = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: number;
|
|
4
|
+
};
|
|
5
|
+
declare type Props = {
|
|
6
|
+
options: Array<Step>;
|
|
7
|
+
currentStep: number;
|
|
8
|
+
successIcon?: string;
|
|
9
|
+
isVertical?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export default function DStepper({ options, currentStep, successIcon, isVertical, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare type Step = {
|
|
2
|
+
label: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
declare type Props = {
|
|
7
|
+
options: Array<Step>;
|
|
8
|
+
currentStep: number;
|
|
9
|
+
};
|
|
10
|
+
export default function DStepper({ options, currentStep, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -19,6 +19,8 @@ export { default as DList } from './DList';
|
|
|
19
19
|
export { default as DListItem } from './DListItem';
|
|
20
20
|
export { default as DListItemMovement } from './DListItemMovement';
|
|
21
21
|
export { default as DStepper } from './DStepper';
|
|
22
|
+
export { default as DStepperDesktop } from './DStepperDesktop';
|
|
23
|
+
export { default as DStepperMobile } from './DStepperMobile';
|
|
22
24
|
export { default as DFormikInputCurrency } from './DFormikInputCurrency';
|
|
23
25
|
export { default as DCardAccount } from './DCardAccount';
|
|
24
26
|
export { default as DCard } from './DCard';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DStepperDesktop } from '../../components';
|
|
3
|
+
declare const config: Meta<typeof DStepperDesktop>;
|
|
4
|
+
export default config;
|
|
5
|
+
declare type Story = StoryObj<typeof DStepperDesktop>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Vertical: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DStepperMobile } from '../../components';
|
|
3
|
+
declare const config: Meta<typeof DStepperMobile>;
|
|
4
|
+
export default config;
|
|
5
|
+
declare type Story = StoryObj<typeof DStepperMobile>;
|
|
6
|
+
export declare const Default: Story;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-framework/ui-react",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.0",
|
|
5
5
|
"description": "React Dynamic Framework",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -22,13 +22,10 @@
|
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"test": "jest",
|
|
25
|
-
"build": "pnpm build:react && pnpm build:
|
|
25
|
+
"build": "pnpm build:react && pnpm build:scss",
|
|
26
26
|
"build:react": "rimraf dist && tsc -p . && rollup -c rollup.config.js",
|
|
27
27
|
"build:react:watch": "tsc -p . && rollup -c rollup.config.js",
|
|
28
|
-
"build:scss": "
|
|
29
|
-
"build:scss:watch": "sass --load-path=node_modules -w src/style:dist/css",
|
|
30
|
-
"build:autoprefixer": "postcss dist/css/*.css --replace --use autoprefixer --no-map",
|
|
31
|
-
"build:style": "pnpm build:scss && pnpm build:autoprefixer",
|
|
28
|
+
"build:scss": "./scripts/build-scss.sh",
|
|
32
29
|
"clean": "rimraf dist",
|
|
33
30
|
"compile": "tsc -p . && rollup -c rollup.config.js",
|
|
34
31
|
"storybook": "storybook dev -p 6006",
|
|
@@ -45,7 +42,7 @@
|
|
|
45
42
|
"src/style"
|
|
46
43
|
],
|
|
47
44
|
"dependencies": {
|
|
48
|
-
"@dynamic-framework/ui": "^1.
|
|
45
|
+
"@dynamic-framework/ui": "^1.7.0",
|
|
49
46
|
"@floating-ui/react": "^0.24.1",
|
|
50
47
|
"@splidejs/react-splide": "^0.7.12",
|
|
51
48
|
"@splidejs/splide": "^4.1.4",
|
|
@@ -133,5 +130,5 @@
|
|
|
133
130
|
"@dynamic-framework/ui"
|
|
134
131
|
]
|
|
135
132
|
},
|
|
136
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "e6757939aaf87031e5e416b603a2359446a2c219"
|
|
137
134
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
$box-file-gap: $spacer-3 !default;
|
|
1
|
+
$box-file-gap: var(--#{$prefix}ref-spacer-3) !default;
|
|
2
2
|
$box-file-border: 1px dashed var(--#{$prefix}gray-700) !default;
|
|
3
|
-
$box-file-border-radius: $border-radius !default;
|
|
4
|
-
$box-file-padding: $spacer-5 !default;
|
|
3
|
+
$box-file-border-radius: var(--#{$prefix}border-radius) !default;
|
|
4
|
+
$box-file-padding: var(--#{$prefix}ref-spacer-5) !default;
|
|
5
5
|
$box-file-content-max-width: 220px !default;
|
|
6
|
-
$box-file-icon-size: $spacer-8 !default;
|
|
6
|
+
$box-file-icon-size: var(--#{$prefix}ref-spacer-8) !default;
|
|
7
7
|
$box-file-icon-color: var(--#{$prefix}secondary-300) !default;
|
|
8
8
|
|
|
9
9
|
$box-file-hover-border: 1px dashed var(--#{$prefix}secondary-700) !default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
$collapse-icon-text-header-gap: $spacer-3 !default;
|
|
2
|
-
$collapse-icon-text-header-font-size: $
|
|
3
|
-
$collapse-icon-text-header-font-weight: $
|
|
1
|
+
$collapse-icon-text-header-gap: var(--#{$prefix}ref-spacer-3) !default;
|
|
2
|
+
$collapse-icon-text-header-font-size: var(--#{$prefix}ref-fs-6) !default;
|
|
3
|
+
$collapse-icon-text-header-font-weight: var(--#{$prefix}ref-fw-bold) !default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.d-card-account {
|
|
2
2
|
// Card
|
|
3
3
|
--#{$prefix}card-border-width: 0px;
|
|
4
|
-
--#{$prefix}card-spacer-y:
|
|
5
|
-
--#{$prefix}card-spacer-x:
|
|
4
|
+
--#{$prefix}card-spacer-y: var(--#{$prefix}ref-spacer-3);
|
|
5
|
+
--#{$prefix}card-spacer-x: var(--#{$prefix}ref-spacer-3);
|
|
6
6
|
--#{$prefix}card-color: var(--#{$prefix}body-color);
|
|
7
7
|
// Card body
|
|
8
8
|
--#{$prefix}card-body-gap: #{$spacer};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
.d-stepper {
|
|
2
|
+
/* Container */
|
|
3
|
+
--#{$prefix}step-container-gap: var(--#{$prefix}ref-spacer-3);
|
|
4
|
+
|
|
5
|
+
/* Outter circle */
|
|
6
|
+
--#{$prefix}step-progress-outter-size: 62px;
|
|
7
|
+
--#{$prefix}step-progress-outter-z-index: 1;
|
|
8
|
+
--#{$prefix}step-progress-outter-fill-background-color: var(--#{$prefix}secondary-500);
|
|
9
|
+
--#{$prefix}step-progress-outter-background-color: var(--#{$prefix}gray-300);
|
|
10
|
+
|
|
11
|
+
/* Inner circle */
|
|
12
|
+
--#{$prefix}step-progress-inner-size: 50px;
|
|
13
|
+
--#{$prefix}step-progress-inner-z-index: 2;
|
|
14
|
+
--#{$prefix}step-progress-inner-background-color: var(--#{$prefix}white);
|
|
15
|
+
|
|
16
|
+
/* Current step */
|
|
17
|
+
--#{$prefix}step-current-step-z-index: 3;
|
|
18
|
+
--#{$prefix}step-current-step-font-weight: var(--#{$prefix}ref-fw-bold);
|
|
19
|
+
--#{$prefix}step-current-step-color: var(--#{$prefix}gray-700);
|
|
20
|
+
|
|
21
|
+
/* Info circle */
|
|
22
|
+
--#{$prefix}step-info-max-width: 12rem;
|
|
23
|
+
--#{$prefix}step-info-label-font-size: var(--#{$prefix}ref-fs-6);
|
|
24
|
+
--#{$prefix}step-info-description-font-size: var(--#{$prefix}ref-fs-small);
|
|
25
|
+
--#{$prefix}step-info-description-color: var(--#{$prefix}gray-500);
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
display: flex;
|
|
29
|
+
gap: var(--#{$prefix}step-container-gap);
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
|
|
33
|
+
.d-step-bar {
|
|
34
|
+
position: relative;
|
|
35
|
+
z-index: var(--#{$prefix}step-progress-outter-z-index);
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
width: var(--#{$prefix}step-progress-outter-size);
|
|
40
|
+
height: var(--#{$prefix}step-progress-outter-size);
|
|
41
|
+
border-radius: var(--#{$prefix}step-progress-outter-size);
|
|
42
|
+
}
|
|
43
|
+
.d-step-bar::after {
|
|
44
|
+
position: absolute;
|
|
45
|
+
z-index: var(--#{$prefix}step-progress-inner-z-index);
|
|
46
|
+
width: var(--#{$prefix}step-progress-inner-size);
|
|
47
|
+
height: var(--#{$prefix}step-progress-inner-size);
|
|
48
|
+
content: "";
|
|
49
|
+
background-color: var(--#{$prefix}step-progress-inner-background-color);
|
|
50
|
+
border-radius: var(--#{$prefix}step-progress-inner-size);
|
|
51
|
+
}
|
|
52
|
+
.d-step-number {
|
|
53
|
+
z-index: var(--#{$prefix}step-current-step-z-index);
|
|
54
|
+
font-weight: var(--#{$prefix}step-current-step-font-weight);
|
|
55
|
+
color: var(--#{$prefix}step-current-step-color);
|
|
56
|
+
}
|
|
57
|
+
.d-step-info {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
max-width: var(--#{$prefix}step-info-max-width);
|
|
61
|
+
}
|
|
62
|
+
.d-step-label {
|
|
63
|
+
font-size: var(--#{$prefix}step-info-label-font-size);
|
|
64
|
+
}
|
|
65
|
+
.d-step-description {
|
|
66
|
+
font-size: var(--#{$prefix}step-info-description-font-size);
|
|
67
|
+
color: var(--#{$prefix}step-info-description-color);
|
|
68
|
+
}
|
|
69
|
+
}
|