@useblu/ocean-react 1.26.1 → 1.27.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/CHANGELOG.md +6 -0
- package/Steps/Steps.d.ts +12 -0
- package/Steps/Steps.d.ts.map +1 -0
- package/Steps/index.d.ts +2 -0
- package/Steps/index.d.ts.map +1 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.es.js +74 -1
- package/index.es.js.map +1 -1
- package/index.js +74 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.27.0](https://github.com/ocean-ds/ocean-web/compare/v1.26.2...v1.27.0) (2022-02-01)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- Stepper Component ([#895](https://github.com/ocean-ds/ocean-web/issues/895)) ([afa651a](https://github.com/ocean-ds/ocean-web/commit/afa651a1e0575dc34364e4cf205a7d4811836371))
|
|
11
|
+
|
|
6
12
|
## [1.26.1](https://github.com/ocean-ds/ocean-web/compare/v1.26.0...v1.26.1) (2022-01-18)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @useblu/ocean-react
|
package/Steps/Steps.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export interface StepsProps {
|
|
3
|
+
currentStep: 1 | 2 | 3 | 4;
|
|
4
|
+
steps: 2 | 3 | 4;
|
|
5
|
+
}
|
|
6
|
+
declare const defaultProps: {
|
|
7
|
+
currentStep: number;
|
|
8
|
+
steps: number;
|
|
9
|
+
};
|
|
10
|
+
declare const Steps: ({ currentStep, steps, }: StepsProps & typeof defaultProps) => ReactElement;
|
|
11
|
+
export default Steps;
|
|
12
|
+
//# sourceMappingURL=Steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../src/Steps/Steps.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,UAAU;IAKzB,WAAW,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAM3B,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAClB;AACD,QAAA,MAAM,YAAY;;;CAGjB,CAAC;AAqBF,QAAA,MAAM,KAAK,4BAGR,UAAU,GAAG,mBAAmB,KAAG,YAuLrC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/Steps/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Steps/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -42,4 +42,6 @@ export { default as Search } from './Search';
|
|
|
42
42
|
export * from './Search';
|
|
43
43
|
export { default as TopBar } from './TopBar';
|
|
44
44
|
export * from './TopBar';
|
|
45
|
+
export { default as Steps } from './Steps';
|
|
46
|
+
export * from './Steps';
|
|
45
47
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AAC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,SAAS,CAAC;AAC3C,cAAc,SAAS,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -8099,5 +8099,78 @@ var TopBar = function (_a) {
|
|
|
8099
8099
|
description && e$1.createElement("span", null, description)))));
|
|
8100
8100
|
};
|
|
8101
8101
|
|
|
8102
|
-
|
|
8102
|
+
var FinalSteps = function () {
|
|
8103
|
+
return (e$1.createElement(e$1.Fragment, null,
|
|
8104
|
+
e$1.createElement("path", { d: "M52 10H64", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8105
|
+
e$1.createElement("path", { d: "M64 10L69 10", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8106
|
+
e$1.createElement("circle", { cx: "74", cy: "10", r: "5", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8107
|
+
e$1.createElement("path", { d: "M79 10H84", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8108
|
+
e$1.createElement("path", { d: "M84 10H96", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8109
|
+
e$1.createElement("circle", { r: "5", transform: "matrix(-1 0 0 1 106 10)", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8110
|
+
e$1.createElement("path", { d: "M101 10H96", stroke: "#EBECF5", strokeWidth: "2" })));
|
|
8111
|
+
};
|
|
8112
|
+
var Steps = function (_a) {
|
|
8113
|
+
var currentStep = _a.currentStep, steps = _a.steps;
|
|
8114
|
+
if (currentStep === 1) {
|
|
8115
|
+
return (e$1.createElement("svg", { width: "116", height: "20", viewBox: "0 0 116 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-testid": "step-1" },
|
|
8116
|
+
e$1.createElement("circle", { cx: "9.5", cy: "10.5", r: "5.5", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8117
|
+
e$1.createElement("path", { d: "M15 10H20", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8118
|
+
steps === 2 && (e$1.createElement(e$1.Fragment, null,
|
|
8119
|
+
e$1.createElement("path", { d: "M20 10H32", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8120
|
+
e$1.createElement("path", { d: "M32 10L37 10", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8121
|
+
e$1.createElement("circle", { cx: "42", cy: "10", r: "5", stroke: "#EBECF5", strokeWidth: "2" }))),
|
|
8122
|
+
steps === 3 && (e$1.createElement(e$1.Fragment, null,
|
|
8123
|
+
e$1.createElement("path", { d: "M20 10H32", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8124
|
+
e$1.createElement("path", { d: "M32 10L37 10", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8125
|
+
e$1.createElement("circle", { cx: "42", cy: "10", r: "5", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8126
|
+
e$1.createElement("path", { d: "M47 10H52", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8127
|
+
e$1.createElement("path", { d: "M52 10H64", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8128
|
+
e$1.createElement("path", { d: "M64 10L69 10", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8129
|
+
e$1.createElement("circle", { cx: "74", cy: "10", r: "5", stroke: "#EBECF5", strokeWidth: "2" }))),
|
|
8130
|
+
steps === 4 && (e$1.createElement(e$1.Fragment, null,
|
|
8131
|
+
e$1.createElement("path", { d: "M20 10H32", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8132
|
+
e$1.createElement("path", { d: "M32 10L37 10", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8133
|
+
e$1.createElement("circle", { cx: "42", cy: "10", r: "5", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8134
|
+
e$1.createElement("path", { d: "M47 10H52", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8135
|
+
e$1.createElement(FinalSteps, null)))));
|
|
8136
|
+
}
|
|
8137
|
+
if (currentStep === 2) {
|
|
8138
|
+
return (e$1.createElement("svg", { width: "116", height: "20", viewBox: "0 0 116 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-testid": "step-2" },
|
|
8139
|
+
e$1.createElement("circle", { cx: "10", cy: "10", r: "9", fill: "#13BDBD", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8140
|
+
e$1.createElement("path", { d: "M7 10L9 12L13 8", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
8141
|
+
e$1.createElement("path", { d: "M20 10H32", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8142
|
+
e$1.createElement("path", { d: "M32 10L37 10", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8143
|
+
e$1.createElement("circle", { cx: "42", cy: "10", r: "5", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8144
|
+
steps > 2 && (e$1.createElement(e$1.Fragment, null,
|
|
8145
|
+
e$1.createElement("path", { d: "M47 10H52", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8146
|
+
e$1.createElement("path", { d: "M52 10H64", stroke: "#EBECF5", strokeWidth: "2" }))),
|
|
8147
|
+
steps === 3 && (e$1.createElement(e$1.Fragment, null,
|
|
8148
|
+
e$1.createElement("path", { d: "M52 10H64", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8149
|
+
e$1.createElement("path", { d: "M64 10L69 10", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8150
|
+
e$1.createElement("circle", { cx: "74", cy: "10", r: "5", stroke: "#EBECF5", strokeWidth: "2" }))),
|
|
8151
|
+
steps === 4 && e$1.createElement(FinalSteps, null)));
|
|
8152
|
+
}
|
|
8153
|
+
return (e$1.createElement("svg", { width: "116", height: "20", viewBox: "0 0 116 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-testid": "step-3" },
|
|
8154
|
+
e$1.createElement("circle", { cx: "10", cy: "10", r: "9", fill: "#13BDBD", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8155
|
+
e$1.createElement("path", { d: "M7 10L9 12L13 8", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
8156
|
+
e$1.createElement("path", { d: "M20 10H32", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8157
|
+
e$1.createElement("circle", { cx: "42", cy: "10", r: "9", fill: "#13BDBD", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8158
|
+
e$1.createElement("path", { d: "M39 10L41 12L45 8", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
8159
|
+
e$1.createElement("path", { d: "M52 10H64", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8160
|
+
currentStep === 3 ? (e$1.createElement(e$1.Fragment, null,
|
|
8161
|
+
e$1.createElement("path", { d: "M64 10L69 10", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8162
|
+
e$1.createElement("circle", { cx: "74", cy: "10", r: "5", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8163
|
+
steps > 3 && (e$1.createElement(e$1.Fragment, null,
|
|
8164
|
+
e$1.createElement("path", { d: "M79 10H84", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8165
|
+
e$1.createElement("path", { d: "M84 10H96", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8166
|
+
e$1.createElement("path", { d: "M101 10H96", stroke: "#EBECF5", strokeWidth: "2" }),
|
|
8167
|
+
e$1.createElement("circle", { r: "5", transform: "matrix(-1 0 0 1 106 10)", stroke: "#EBECF5", strokeWidth: "2" }))))) : (e$1.createElement(e$1.Fragment, null,
|
|
8168
|
+
e$1.createElement("circle", { cx: "74", cy: "10", r: "9", fill: "#13BDBD", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8169
|
+
e$1.createElement("path", { d: "M71 10L73 12L77 8", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
8170
|
+
e$1.createElement("path", { d: "M84 10H96", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8171
|
+
e$1.createElement("path", { d: "M101 10H96", stroke: "#13BDBD", strokeWidth: "2" }),
|
|
8172
|
+
e$1.createElement("circle", { r: "5", transform: "matrix(-1 0 0 1 106 10)", stroke: "#13BDBD", strokeWidth: "2" })))));
|
|
8173
|
+
};
|
|
8174
|
+
|
|
8175
|
+
export { Alert, Button, Carousel, Checkbox, Col, Container, Divider, index$1 as Grid, IconButton, Input, Link, List, Modal, Progress, Radio, Row, Search, Select, Steps, SubHeader, Switch, Tag, TextArea, TopBar, TransactionListItem, Typography };
|
|
8103
8176
|
//# sourceMappingURL=index.es.js.map
|