@ledgerhq/react-ui 0.14.11 → 0.14.12-nightly.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/lib/cjs/components/Tag/Tag.stories.js +1 -1
- package/lib/cjs/components/Tag/Tag.stories.js.map +2 -2
- package/lib/cjs/components/asorted/Divider/index.js +1 -1
- package/lib/cjs/components/asorted/Divider/index.js.map +2 -2
- package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js +21 -27
- package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js.map +2 -2
- package/lib/cjs/components/asorted/Icon/CryptoIcons.stories.js +11 -9
- package/lib/cjs/components/asorted/Icon/CryptoIcons.stories.js.map +2 -2
- package/lib/cjs/components/asorted/Icon/Icons.stories.js +46 -0
- package/lib/cjs/components/asorted/Icon/Icons.stories.js.map +2 -2
- package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js +25 -17
- package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js.map +2 -2
- package/lib/cjs/components/cta/Button/Button.stories.js +1 -1
- package/lib/cjs/components/cta/Button/Button.stories.js.map +1 -1
- package/lib/cjs/components/form/Dropdown/Dropdown.stories.js +4 -1
- package/lib/cjs/components/form/Dropdown/Dropdown.stories.js.map +2 -2
- package/lib/cjs/components/form/DropdownGeneric/DropdownGeneric.stories.js +14 -6
- package/lib/cjs/components/form/DropdownGeneric/DropdownGeneric.stories.js.map +2 -2
- package/lib/cjs/components/layout/Box/Box.stories.js +11 -4
- package/lib/cjs/components/layout/Box/Box.stories.js.map +2 -2
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js +2 -1
- package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js.map +3 -3
- package/lib/cjs/components/layout/List/VerticalTimeline/index.js.map +2 -2
- package/lib/cjs/components/layout/Popin/Popin.stories.js +11 -9
- package/lib/cjs/components/layout/Popin/Popin.stories.js.map +2 -2
- package/lib/cjs/components/layout/Side/Side.stories.js +4 -1
- package/lib/cjs/components/layout/Side/Side.stories.js.map +2 -2
- package/lib/cjs/components/loaders/ProgressLoader/index.js +1 -1
- package/lib/cjs/components/loaders/ProgressLoader/index.js.map +2 -2
- package/lib/cjs/components/message/Alert/Alert.stories.js +6 -4
- package/lib/cjs/components/message/Alert/Alert.stories.js.map +2 -2
- package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js +18 -7
- package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js.map +2 -2
- package/lib/cjs/components/message/Log/Log.stories.js +4 -2
- package/lib/cjs/components/message/Log/Log.stories.js.map +2 -2
- package/lib/cjs/components/message/Notification/Notification.stories.js +10 -8
- package/lib/cjs/components/message/Notification/Notification.stories.js.map +2 -2
- package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js +4 -2
- package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js.map +2 -2
- package/lib/cjs/components/message/Tip/Tip.stories.js +5 -2
- package/lib/cjs/components/message/Tip/Tip.stories.js.map +2 -2
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js +4 -1
- package/lib/cjs/components/message/Tooltip/Tooltip.stories.js.map +2 -2
- package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js +4 -1
- package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js.map +2 -2
- package/lib/cjs/components/navigation/progress/Stepper/index.js +25 -5
- package/lib/cjs/components/navigation/progress/Stepper/index.js.map +2 -2
- package/lib/cjs/components/styled.stories.js +7 -4
- package/lib/cjs/components/styled.stories.js.map +2 -2
- package/lib/components/asorted/Divider/index.js +1 -1
- package/lib/components/asorted/Divider/index.js.map +1 -1
- package/lib/components/layout/List/VerticalTimeline/TimelineItem.js +3 -1
- package/lib/components/layout/List/VerticalTimeline/TimelineItem.js.map +1 -1
- package/lib/components/layout/List/VerticalTimeline/index.d.ts +1 -0
- package/lib/components/layout/List/VerticalTimeline/index.js.map +1 -1
- package/lib/components/loaders/ProgressLoader/index.js +1 -1
- package/lib/components/loaders/ProgressLoader/index.js.map +1 -1
- package/lib/components/navigation/progress/Stepper/index.d.ts +9 -1
- package/lib/components/navigation/progress/Stepper/index.js +15 -5
- package/lib/components/navigation/progress/Stepper/index.js.map +1 -1
- package/package.json +14 -8
|
@@ -28,6 +28,14 @@ export interface Props extends FlexBoxProps {
|
|
|
28
28
|
* Steps with indexes contained inside the array will be shown as disabled.
|
|
29
29
|
*/
|
|
30
30
|
disabledIndexes?: number[];
|
|
31
|
+
/**
|
|
32
|
+
* Delete steps with same following labels
|
|
33
|
+
*/
|
|
34
|
+
filterDuplicate?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Complete all the steps
|
|
37
|
+
*/
|
|
38
|
+
isOver?: boolean;
|
|
31
39
|
}
|
|
32
40
|
export type StepProps = {
|
|
33
41
|
/**
|
|
@@ -68,6 +76,6 @@ export declare const StepText: import("styled-components").StyledComponent<"span
|
|
|
68
76
|
state: StepState;
|
|
69
77
|
}, keyof import("../../../asorted/Text").TextProps>;
|
|
70
78
|
export declare const Step: React.NamedExoticComponent<StepProps>;
|
|
71
|
-
declare function Stepper({ steps, activeIndex, errored, disabledIndexes, ...extraProps }: Props): React.JSX.Element;
|
|
79
|
+
declare function Stepper({ steps, activeIndex, errored, disabledIndexes, filterDuplicate, isOver, ...extraProps }: Props): React.JSX.Element;
|
|
72
80
|
declare const _default: React.MemoExoticComponent<typeof Stepper>;
|
|
73
81
|
export default _default;
|
|
@@ -55,6 +55,7 @@ export const Item = {
|
|
|
55
55
|
};
|
|
56
56
|
export const StepText = styled(Text) `
|
|
57
57
|
text-align: center;
|
|
58
|
+
white-space: pre-wrap;
|
|
58
59
|
color: ${p => {
|
|
59
60
|
if (p.state === "errored") {
|
|
60
61
|
return p.theme.colors.error.c50;
|
|
@@ -102,7 +103,10 @@ export const Step = memo(function Step({ state, label: Label, hideLeftSeparator,
|
|
|
102
103
|
(nextState && React.createElement(Separator.Item, { inactive: nextInactive, position: "right" })) || (React.createElement(Flex, { flex: "1" }))),
|
|
103
104
|
typeof Label === "string" ? (React.createElement(StepText, { state: state, variant: "small" }, Label)) : (React.createElement(Label, { state: state }))));
|
|
104
105
|
});
|
|
105
|
-
function getState(activeIndex, index, errored, disabled) {
|
|
106
|
+
function getState(activeIndex, index, errored, disabled, completed) {
|
|
107
|
+
if (completed) {
|
|
108
|
+
return "completed";
|
|
109
|
+
}
|
|
106
110
|
if (disabled) {
|
|
107
111
|
return "disabled";
|
|
108
112
|
}
|
|
@@ -115,10 +119,16 @@ function getState(activeIndex, index, errored, disabled) {
|
|
|
115
119
|
return "completed";
|
|
116
120
|
}
|
|
117
121
|
function Stepper(_a) {
|
|
118
|
-
var { steps, activeIndex = 0, errored, disabledIndexes } = _a, extraProps = __rest(_a, ["steps", "activeIndex", "errored", "disabledIndexes"]);
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
var { steps, activeIndex = 0, errored, disabledIndexes, filterDuplicate, isOver } = _a, extraProps = __rest(_a, ["steps", "activeIndex", "errored", "disabledIndexes", "filterDuplicate", "isOver"]);
|
|
123
|
+
const displayedSteps = filterDuplicate
|
|
124
|
+
? steps.filter((step, index) => index === 0 || step !== steps[index - 1])
|
|
125
|
+
: steps;
|
|
126
|
+
const dislayedActiveIndex = filterDuplicate
|
|
127
|
+
? displayedSteps.findIndex(step => step === steps[activeIndex])
|
|
128
|
+
: activeIndex;
|
|
129
|
+
return (React.createElement(Flex, Object.assign({ flexWrap: "nowrap", justifyContent: "space-between" }, extraProps), displayedSteps.map((step, idx) => {
|
|
130
|
+
const state = getState(dislayedActiveIndex, idx, errored, disabledIndexes === null || disabledIndexes === void 0 ? void 0 : disabledIndexes.includes(idx), isOver);
|
|
131
|
+
const nextState = idx < displayedSteps.length - 1 ? getState(dislayedActiveIndex, idx + 1) : undefined;
|
|
122
132
|
return (React.createElement(Fragment, { key: idx },
|
|
123
133
|
idx > 0 && React.createElement(Separator.Step, { inactive: state === "pending" }),
|
|
124
134
|
React.createElement(Step, { label: step, state: state, nextState: nextState, hideLeftSeparator: idx === 0 })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/navigation/progress/Stepper/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAe,KAAK,EAAc,KAAK,EAAc,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,IAAsB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/navigation/progress/Stepper/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAe,KAAK,EAAc,KAAK,EAAc,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,IAAsB,MAAM,sBAAsB,CAAC;AA2D1D,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;QAC1B,EAAE,EAAE,KAAK;KACV,CAAC,CAAuC;;;;aAI9B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;cACpB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;MAC7B,KAAK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,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACvF,OAAO,CACL,oBAAC,QAAQ,IAAC,GAAG,EAAE,GAAG;YACf,GAAG,GAAG,CAAC,IAAI,oBAAC,SAAS,CAAC,IAAI,IAAC,QAAQ,EAAE,KAAK,KAAK,SAAS,GAAI;YAC7D,oBAAC,IAAI,IAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC,GAAI,CAC9E,CACZ,CAAC;IACJ,CAAC,CAAC,CACG,CACR,CAAC;AACJ,CAAC;AAED,eAAe,IAAI,CAAC,OAAO,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/react-ui",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.12-nightly.0",
|
|
4
4
|
"description": "Ledger Live - Desktop UI",
|
|
5
5
|
"author": "Ledger Live Team <team-live@ledger.fr>",
|
|
6
6
|
"repository": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"react-transition-group": "^4.4.2",
|
|
69
69
|
"react-window": "^1.8.6",
|
|
70
70
|
"styled-system": "^5.1.5",
|
|
71
|
-
"@ledgerhq/crypto-icons-ui": "^0.6.
|
|
71
|
+
"@ledgerhq/crypto-icons-ui": "^0.6.2-nightly.0",
|
|
72
72
|
"@ledgerhq/icons-ui": "^0.6.2",
|
|
73
73
|
"@ledgerhq/ui-shared": "^0.2.1"
|
|
74
74
|
},
|
|
@@ -79,10 +79,14 @@
|
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@babel/core": "^7.22.8",
|
|
82
|
-
"@
|
|
83
|
-
"@
|
|
84
|
-
"@
|
|
85
|
-
"@storybook/
|
|
82
|
+
"@babel/preset-env": "^7.15.8",
|
|
83
|
+
"@babel/preset-react": "^7.23.3",
|
|
84
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
85
|
+
"@storybook/addon-actions": "^7.5.3",
|
|
86
|
+
"@storybook/addon-essentials": "^7.5.3",
|
|
87
|
+
"@storybook/addon-links": "^7.5.3",
|
|
88
|
+
"@storybook/react": "^7.5.3",
|
|
89
|
+
"@storybook/react-webpack5": "^7.5.3",
|
|
86
90
|
"@svgr/core": "^5.5.0",
|
|
87
91
|
"@svgr/plugin-svgo": "*",
|
|
88
92
|
"@types/color": "^3.0.2",
|
|
@@ -99,10 +103,12 @@
|
|
|
99
103
|
"esbuild": "^0.19.0",
|
|
100
104
|
"eslint-plugin-react": "^7.33.2",
|
|
101
105
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
106
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
102
107
|
"fs-extra": "^10.0.1",
|
|
103
108
|
"react": "^18.2.0",
|
|
104
109
|
"react-dom": "^18.2.0",
|
|
105
110
|
"rimraf": "^4.4.1",
|
|
111
|
+
"storybook": "^7.5.3",
|
|
106
112
|
"styled-components": "^5.3.3",
|
|
107
113
|
"stylelint": "^14.9.1",
|
|
108
114
|
"stylelint-config-recommended": "^13.0.0",
|
|
@@ -125,10 +131,10 @@
|
|
|
125
131
|
}
|
|
126
132
|
},
|
|
127
133
|
"scripts": {
|
|
128
|
-
"storybook": "
|
|
134
|
+
"storybook": "storybook dev -p 6006",
|
|
129
135
|
"build": "tsc -p tsconfig.prod.json && node scripts/transpile && node scripts/postBuild",
|
|
130
136
|
"prebuild:storybook": "pnpm -F ui-shared -F icons-ui -F crypto-icons-ui build",
|
|
131
|
-
"build:storybook": "
|
|
137
|
+
"build:storybook": "storybook build",
|
|
132
138
|
"watch": "tsc -p tsconfig.prod.json --watch",
|
|
133
139
|
"clean": "rimraf lib",
|
|
134
140
|
"lint": "eslint src --ext .js,.jsx,.ts,.tsx --cache",
|