@elliemae/ds-wizard 3.0.0-alpha.0 → 3.0.0-alpha.1

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.
@@ -2,9 +2,35 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
6
  var __getProtoOf = Object.getPrototypeOf;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
+ var __spreadValues = (a, b) => {
11
+ for (var prop in b || (b = {}))
12
+ if (__hasOwnProp.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ if (__getOwnPropSymbols)
15
+ for (var prop of __getOwnPropSymbols(b)) {
16
+ if (__propIsEnum.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
18
+ }
19
+ return a;
20
+ };
7
21
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
22
+ var __objRest = (source, exclude) => {
23
+ var target = {};
24
+ for (var prop in source)
25
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
26
+ target[prop] = source[prop];
27
+ if (source != null && __getOwnPropSymbols)
28
+ for (var prop of __getOwnPropSymbols(source)) {
29
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
30
+ target[prop] = source[prop];
31
+ }
32
+ return target;
33
+ };
8
34
  var __export = (target, all) => {
9
35
  for (var name in all)
10
36
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -37,22 +63,19 @@ var import_ds_classnames = require("@elliemae/ds-classnames");
37
63
  var import_WizardStep = __toESM(require("./WizardStep"));
38
64
  var import_blockNames = require("./blockNames");
39
65
  const StepsWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(import_blockNames.indicatorBlockName);
40
- function WizardSteps({ current = 0, steps, children, ...otherProps }) {
66
+ function WizardSteps(_a) {
67
+ var _b = _a, { current = 0, steps, children } = _b, otherProps = __objRest(_b, ["current", "steps", "children"]);
41
68
  const items = (0, import_react.useMemo)(() => {
42
69
  const mergeStepProps = (step, index) => ({
43
70
  index,
44
71
  active: current === index,
45
72
  completed: index < current
46
73
  });
47
- return steps ? steps.map((step, index) => /* @__PURE__ */ import_react.default.createElement(import_WizardStep.default, {
48
- key: index,
49
- ...step,
50
- ...mergeStepProps(step, index)
51
- })) : import_react.default.Children.map(children, (item, index) => (0, import_react.cloneElement)(item, mergeStepProps(item, index)));
74
+ return steps ? steps.map((step, index) => /* @__PURE__ */ import_react.default.createElement(import_WizardStep.default, __spreadValues(__spreadValues({
75
+ key: index
76
+ }, step), mergeStepProps(step, index)))) : import_react.default.Children.map(children, (item, index) => (0, import_react.cloneElement)(item, mergeStepProps(item, index)));
52
77
  }, [current, children]);
53
- return /* @__PURE__ */ import_react.default.createElement(StepsWrapper, {
54
- ...otherProps
55
- }, items);
78
+ return /* @__PURE__ */ import_react.default.createElement(StepsWrapper, __spreadValues({}, otherProps), items);
56
79
  }
57
80
  WizardSteps.Item = import_WizardStep.default;
58
81
  const wizzardProps = {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/WizardSteps.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable indent */\n/* eslint-disable react/no-array-index-key */\nimport React, { cloneElement, useMemo } from 'react';\nimport { describe, PropTypes } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport WizardStep from './WizardStep';\nimport { indicatorBlockName } from './blockNames';\n\nconst StepsWrapper = aggregatedClasses('div')(indicatorBlockName);\n\nfunction WizardSteps({ current = 0, steps, children, ...otherProps }) {\n const items = useMemo(() => {\n const mergeStepProps = (step, index) => ({\n index,\n active: current === index,\n completed: index < current,\n });\n\n return steps\n ? steps.map((step, index) => (\n <WizardStep key={index} {...step} {...mergeStepProps(step, index)} />\n ))\n : React.Children.map(children, (item, index) =>\n cloneElement(item, mergeStepProps(item, index)),\n );\n }, [current, children]);\n\n return <StepsWrapper {...otherProps}>{items}</StepsWrapper>;\n}\n\nWizardSteps.Item = WizardStep;\n\nconst wizzardProps = {\n current: PropTypes.number\n .description('Current active state index')\n .defaultValue(0),\n steps: PropTypes.arrayOf(PropTypes.shape({}))\n .description('Array of steps objects')\n .defaultValue([]).isRequired,\n children: PropTypes.arrayOf(PropTypes.instanceOf(WizardStep)).description(\n 'List of WizardStep components',\n ),\n};\n\nWizardSteps.propTypes = wizzardProps;\n\nconst WizzardWithSchema = describe(WizardSteps);\nWizzardWithSchema.propTypes = wizzardProps;\n\nexport { WizzardWithSchema };\nexport default WizardSteps;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,mBAA6C;AAC7C,wBAAoC;AACpC,2BAAkC;AAClC,wBAAuB;AACvB,wBAAmC;AAEnC,MAAM,eAAe,4CAAkB,OAAO;AAE9C,qBAAqB,EAAE,UAAU,GAAG,OAAO,aAAa,cAAc;AACpE,QAAM,QAAQ,0BAAQ,MAAM;AAC1B,UAAM,iBAAiB,CAAC,MAAM,UAAW;AAAA,MACvC;AAAA,MACA,QAAQ,YAAY;AAAA,MACpB,WAAW,QAAQ;AAAA;AAGrB,WAAO,QACH,MAAM,IAAI,CAAC,MAAM,UACf,mDAAC,2BAAD;AAAA,MAAY,KAAK;AAAA,SAAW;AAAA,SAAU,eAAe,MAAM;AAAA,UAE7D,qBAAM,SAAS,IAAI,UAAU,CAAC,MAAM,UAClC,+BAAa,MAAM,eAAe,MAAM;AAAA,KAE7C,CAAC,SAAS;AAEb,SAAO,mDAAC,cAAD;AAAA,OAAkB;AAAA,KAAa;AAAA;AAGxC,YAAY,OAAO;AAEnB,MAAM,eAAe;AAAA,EACnB,SAAS,4BAAU,OAChB,YAAY,8BACZ,aAAa;AAAA,EAChB,OAAO,4BAAU,QAAQ,4BAAU,MAAM,KACtC,YAAY,0BACZ,aAAa,IAAI;AAAA,EACpB,UAAU,4BAAU,QAAQ,4BAAU,WAAW,4BAAa,YAC5D;AAAA;AAIJ,YAAY,YAAY;AAExB,MAAM,oBAAoB,gCAAS;AACnC,kBAAkB,YAAY;AAG9B,IAAO,sBAAQ;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,mBAA6C;AAC7C,wBAAoC;AACpC,2BAAkC;AAClC,wBAAuB;AACvB,wBAAmC;AAEnC,MAAM,eAAe,4CAAkB,OAAO;AAE9C,qBAAqB,IAAiD;AAAjD,eAAE,YAAU,GAAG,OAAO,aAAtB,IAAmC,uBAAnC,IAAmC,CAAjC,WAAa,SAAO;AACzC,QAAM,QAAQ,0BAAQ,MAAM;AAC1B,UAAM,iBAAiB,CAAC,MAAM,UAAW;AAAA,MACvC;AAAA,MACA,QAAQ,YAAY;AAAA,MACpB,WAAW,QAAQ;AAAA;AAGrB,WAAO,QACH,MAAM,IAAI,CAAC,MAAM,UACf,mDAAC,2BAAD;AAAA,MAAY,KAAK;AAAA,OAAW,OAAU,eAAe,MAAM,YAE7D,qBAAM,SAAS,IAAI,UAAU,CAAC,MAAM,UAClC,+BAAa,MAAM,eAAe,MAAM;AAAA,KAE7C,CAAC,SAAS;AAEb,SAAO,mDAAC,cAAD,mBAAkB,aAAa;AAAA;AAGxC,YAAY,OAAO;AAEnB,MAAM,eAAe;AAAA,EACnB,SAAS,4BAAU,OAChB,YAAY,8BACZ,aAAa;AAAA,EAChB,OAAO,4BAAU,QAAQ,4BAAU,MAAM,KACtC,YAAY,0BACZ,aAAa,IAAI;AAAA,EACpB,UAAU,4BAAU,QAAQ,4BAAU,WAAW,4BAAa,YAC5D;AAAA;AAIJ,YAAY,YAAY;AAExB,MAAM,oBAAoB,gCAAS;AACnC,kBAAkB,YAAY;AAG9B,IAAO,sBAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,31 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
17
+ var __objRest = (source, exclude) => {
18
+ var target = {};
19
+ for (var prop in source)
20
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
21
+ target[prop] = source[prop];
22
+ if (source != null && __getOwnPropSymbols)
23
+ for (var prop of __getOwnPropSymbols(source)) {
24
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
25
+ target[prop] = source[prop];
26
+ }
27
+ return target;
28
+ };
1
29
  import * as React from "react";
2
30
  import React2, { cloneElement, useMemo } from "react";
3
31
  import { describe, PropTypes } from "react-desc";
@@ -5,22 +33,19 @@ import { aggregatedClasses } from "@elliemae/ds-classnames";
5
33
  import WizardStep from "./WizardStep";
6
34
  import { indicatorBlockName } from "./blockNames";
7
35
  const StepsWrapper = aggregatedClasses("div")(indicatorBlockName);
8
- function WizardSteps({ current = 0, steps, children, ...otherProps }) {
36
+ function WizardSteps(_a) {
37
+ var _b = _a, { current = 0, steps, children } = _b, otherProps = __objRest(_b, ["current", "steps", "children"]);
9
38
  const items = useMemo(() => {
10
39
  const mergeStepProps = (step, index) => ({
11
40
  index,
12
41
  active: current === index,
13
42
  completed: index < current
14
43
  });
15
- return steps ? steps.map((step, index) => /* @__PURE__ */ React2.createElement(WizardStep, {
16
- key: index,
17
- ...step,
18
- ...mergeStepProps(step, index)
19
- })) : React2.Children.map(children, (item, index) => cloneElement(item, mergeStepProps(item, index)));
44
+ return steps ? steps.map((step, index) => /* @__PURE__ */ React2.createElement(WizardStep, __spreadValues(__spreadValues({
45
+ key: index
46
+ }, step), mergeStepProps(step, index)))) : React2.Children.map(children, (item, index) => cloneElement(item, mergeStepProps(item, index)));
20
47
  }, [current, children]);
21
- return /* @__PURE__ */ React2.createElement(StepsWrapper, {
22
- ...otherProps
23
- }, items);
48
+ return /* @__PURE__ */ React2.createElement(StepsWrapper, __spreadValues({}, otherProps), items);
24
49
  }
25
50
  WizardSteps.Item = WizardStep;
26
51
  const wizzardProps = {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/WizardSteps.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable indent */\n/* eslint-disable react/no-array-index-key */\nimport React, { cloneElement, useMemo } from 'react';\nimport { describe, PropTypes } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport WizardStep from './WizardStep';\nimport { indicatorBlockName } from './blockNames';\n\nconst StepsWrapper = aggregatedClasses('div')(indicatorBlockName);\n\nfunction WizardSteps({ current = 0, steps, children, ...otherProps }) {\n const items = useMemo(() => {\n const mergeStepProps = (step, index) => ({\n index,\n active: current === index,\n completed: index < current,\n });\n\n return steps\n ? steps.map((step, index) => (\n <WizardStep key={index} {...step} {...mergeStepProps(step, index)} />\n ))\n : React.Children.map(children, (item, index) =>\n cloneElement(item, mergeStepProps(item, index)),\n );\n }, [current, children]);\n\n return <StepsWrapper {...otherProps}>{items}</StepsWrapper>;\n}\n\nWizardSteps.Item = WizardStep;\n\nconst wizzardProps = {\n current: PropTypes.number\n .description('Current active state index')\n .defaultValue(0),\n steps: PropTypes.arrayOf(PropTypes.shape({}))\n .description('Array of steps objects')\n .defaultValue([]).isRequired,\n children: PropTypes.arrayOf(PropTypes.instanceOf(WizardStep)).description(\n 'List of WizardStep components',\n ),\n};\n\nWizardSteps.propTypes = wizzardProps;\n\nconst WizzardWithSchema = describe(WizardSteps);\nWizzardWithSchema.propTypes = wizzardProps;\n\nexport { WizzardWithSchema };\nexport default WizardSteps;\n"],
5
- "mappings": "AAAA;ACEA;AACA;AACA;AACA;AACA;AAEA,MAAM,eAAe,kBAAkB,OAAO;AAE9C,qBAAqB,EAAE,UAAU,GAAG,OAAO,aAAa,cAAc;AACpE,QAAM,QAAQ,QAAQ,MAAM;AAC1B,UAAM,iBAAiB,CAAC,MAAM,UAAW;AAAA,MACvC;AAAA,MACA,QAAQ,YAAY;AAAA,MACpB,WAAW,QAAQ;AAAA;AAGrB,WAAO,QACH,MAAM,IAAI,CAAC,MAAM,UACf,qCAAC,YAAD;AAAA,MAAY,KAAK;AAAA,SAAW;AAAA,SAAU,eAAe,MAAM;AAAA,UAE7D,OAAM,SAAS,IAAI,UAAU,CAAC,MAAM,UAClC,aAAa,MAAM,eAAe,MAAM;AAAA,KAE7C,CAAC,SAAS;AAEb,SAAO,qCAAC,cAAD;AAAA,OAAkB;AAAA,KAAa;AAAA;AAGxC,YAAY,OAAO;AAEnB,MAAM,eAAe;AAAA,EACnB,SAAS,UAAU,OAChB,YAAY,8BACZ,aAAa;AAAA,EAChB,OAAO,UAAU,QAAQ,UAAU,MAAM,KACtC,YAAY,0BACZ,aAAa,IAAI;AAAA,EACpB,UAAU,UAAU,QAAQ,UAAU,WAAW,aAAa,YAC5D;AAAA;AAIJ,YAAY,YAAY;AAExB,MAAM,oBAAoB,SAAS;AACnC,kBAAkB,YAAY;AAG9B,IAAO,sBAAQ;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;ACEA;AACA;AACA;AACA;AACA;AAEA,MAAM,eAAe,kBAAkB,OAAO;AAE9C,qBAAqB,IAAiD;AAAjD,eAAE,YAAU,GAAG,OAAO,aAAtB,IAAmC,uBAAnC,IAAmC,CAAjC,WAAa,SAAO;AACzC,QAAM,QAAQ,QAAQ,MAAM;AAC1B,UAAM,iBAAiB,CAAC,MAAM,UAAW;AAAA,MACvC;AAAA,MACA,QAAQ,YAAY;AAAA,MACpB,WAAW,QAAQ;AAAA;AAGrB,WAAO,QACH,MAAM,IAAI,CAAC,MAAM,UACf,qCAAC,YAAD;AAAA,MAAY,KAAK;AAAA,OAAW,OAAU,eAAe,MAAM,YAE7D,OAAM,SAAS,IAAI,UAAU,CAAC,MAAM,UAClC,aAAa,MAAM,eAAe,MAAM;AAAA,KAE7C,CAAC,SAAS;AAEb,SAAO,qCAAC,cAAD,mBAAkB,aAAa;AAAA;AAGxC,YAAY,OAAO;AAEnB,MAAM,eAAe;AAAA,EACnB,SAAS,UAAU,OAChB,YAAY,8BACZ,aAAa;AAAA,EAChB,OAAO,UAAU,QAAQ,UAAU,MAAM,KACtC,YAAY,0BACZ,aAAa,IAAI;AAAA,EACpB,UAAU,UAAU,QAAQ,UAAU,WAAW,aAAa,YAC5D;AAAA;AAIJ,YAAY,YAAY;AAExB,MAAM,oBAAoB,SAAS;AACnC,kBAAkB,YAAY;AAG9B,IAAO,sBAAQ;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-wizard",
3
- "version": "3.0.0-alpha.0",
3
+ "version": "3.0.0-alpha.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Wizard",
6
6
  "files": [
@@ -55,11 +55,11 @@
55
55
  "indent": 4
56
56
  },
57
57
  "dependencies": {
58
- "@elliemae/ds-button": "3.0.0-alpha.0",
59
- "@elliemae/ds-classnames": "3.0.0-alpha.0",
60
- "@elliemae/ds-icons": "3.0.0-alpha.0",
61
- "@elliemae/ds-utilities": "3.0.0-alpha.0",
62
- "@elliemae/ds-wizard": "3.0.0-alpha.0",
58
+ "@elliemae/ds-button": "3.0.0-alpha.1",
59
+ "@elliemae/ds-classnames": "3.0.0-alpha.1",
60
+ "@elliemae/ds-icons": "3.0.0-alpha.1",
61
+ "@elliemae/ds-utilities": "3.0.0-alpha.1",
62
+ "@elliemae/ds-wizard": "3.0.0-alpha.1",
63
63
  "prop-types": "~15.7.2",
64
64
  "react-desc": "~4.1.3"
65
65
  },
@@ -76,6 +76,7 @@
76
76
  "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
77
77
  "test": "node ../../scripts/testing/test.mjs",
78
78
  "lint": "node ../../scripts/lint.mjs",
79
+ "dts": "node ../../scripts/dts.mjs",
79
80
  "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
80
81
  }
81
82
  }
@@ -1,57 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
- }
18
- return target;
19
- };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
- var steps_exports = {};
29
- __export(steps_exports, {
30
- steps: () => steps
31
- });
32
- var React = __toESM(require("react"));
33
- var import_react = __toESM(require("react"));
34
- const Step1Content = () => /* @__PURE__ */ import_react.default.createElement("div", null, "Step 1 Content");
35
- const Step2Content = () => /* @__PURE__ */ import_react.default.createElement("div", null, "Step 2 Content");
36
- const Step3Content = () => /* @__PURE__ */ import_react.default.createElement("div", null, "Step 3 Content");
37
- const Step4Content = () => /* @__PURE__ */ import_react.default.createElement("div", null, "Step 4 Content");
38
- const steps = [
39
- {
40
- label: "Step 1",
41
- content: Step1Content
42
- },
43
- {
44
- label: "Step Lorem Ipsum",
45
- content: Step2Content
46
- },
47
- {
48
- label: "Step Lorem",
49
- content: Step3Content
50
- },
51
- {
52
- label: "Step Lorem 4",
53
- content: Step4Content
54
- }
55
- ];
56
- module.exports = __toCommonJS(steps_exports);
57
- //# sourceMappingURL=steps.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/stories/steps.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\n\nconst Step1Content = () => <div>Step 1 Content</div>;\nconst Step2Content = () => <div>Step 2 Content</div>;\nconst Step3Content = () => <div>Step 3 Content</div>;\nconst Step4Content = () => <div>Step 4 Content</div>;\n\nexport const steps = [\n {\n label: 'Step 1',\n content: Step1Content,\n },\n {\n label: 'Step Lorem Ipsum',\n content: Step2Content,\n },\n {\n label: 'Step Lorem',\n content: Step3Content,\n },\n {\n label: 'Step Lorem 4',\n content: Step4Content,\n },\n];\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAElB,MAAM,eAAe,MAAM,mDAAC,OAAD,MAAK;AAChC,MAAM,eAAe,MAAM,mDAAC,OAAD,MAAK;AAChC,MAAM,eAAe,MAAM,mDAAC,OAAD,MAAK;AAChC,MAAM,eAAe,MAAM,mDAAC,OAAD,MAAK;AAEzB,MAAM,QAAQ;AAAA,EACnB;AAAA,IACE,OAAO;AAAA,IACP,SAAS;AAAA;AAAA,EAEX;AAAA,IACE,OAAO;AAAA,IACP,SAAS;AAAA;AAAA,EAEX;AAAA,IACE,OAAO;AAAA,IACP,SAAS;AAAA;AAAA,EAEX;AAAA,IACE,OAAO;AAAA,IACP,SAAS;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,28 +0,0 @@
1
- import * as React from "react";
2
- import React2 from "react";
3
- const Step1Content = () => /* @__PURE__ */ React2.createElement("div", null, "Step 1 Content");
4
- const Step2Content = () => /* @__PURE__ */ React2.createElement("div", null, "Step 2 Content");
5
- const Step3Content = () => /* @__PURE__ */ React2.createElement("div", null, "Step 3 Content");
6
- const Step4Content = () => /* @__PURE__ */ React2.createElement("div", null, "Step 4 Content");
7
- const steps = [
8
- {
9
- label: "Step 1",
10
- content: Step1Content
11
- },
12
- {
13
- label: "Step Lorem Ipsum",
14
- content: Step2Content
15
- },
16
- {
17
- label: "Step Lorem",
18
- content: Step3Content
19
- },
20
- {
21
- label: "Step Lorem 4",
22
- content: Step4Content
23
- }
24
- ];
25
- export {
26
- steps
27
- };
28
- //# sourceMappingURL=steps.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/stories/steps.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\n\nconst Step1Content = () => <div>Step 1 Content</div>;\nconst Step2Content = () => <div>Step 2 Content</div>;\nconst Step3Content = () => <div>Step 3 Content</div>;\nconst Step4Content = () => <div>Step 4 Content</div>;\n\nexport const steps = [\n {\n label: 'Step 1',\n content: Step1Content,\n },\n {\n label: 'Step Lorem Ipsum',\n content: Step2Content,\n },\n {\n label: 'Step Lorem',\n content: Step3Content,\n },\n {\n label: 'Step Lorem 4',\n content: Step4Content,\n },\n];\n"],
5
- "mappings": "AAAA;ACAA;AAEA,MAAM,eAAe,MAAM,qCAAC,OAAD,MAAK;AAChC,MAAM,eAAe,MAAM,qCAAC,OAAD,MAAK;AAChC,MAAM,eAAe,MAAM,qCAAC,OAAD,MAAK;AAChC,MAAM,eAAe,MAAM,qCAAC,OAAD,MAAK;AAEzB,MAAM,QAAQ;AAAA,EACnB;AAAA,IACE,OAAO;AAAA,IACP,SAAS;AAAA;AAAA,EAEX;AAAA,IACE,OAAO;AAAA,IACP,SAAS;AAAA;AAAA,EAEX;AAAA,IACE,OAAO;AAAA,IACP,SAAS;AAAA;AAAA,EAEX;AAAA,IACE,OAAO;AAAA,IACP,SAAS;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,9 +0,0 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { WizardStepsIndicator as component };
4
- export namespace parameters {
5
- export { WizzardWithSchema as propsSchemas };
6
- }
7
- }
8
- export default _default;
9
- export * from "./stories/wizzard-overview.stories";
@@ -1,55 +0,0 @@
1
- /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
- /// <reference types="react" />
3
- declare function WizardStep({ label, icon, iconCompleted, iconActive, active, completed, index, }: {
4
- label?: string | undefined;
5
- icon?: null | undefined;
6
- iconCompleted?: JSX.Element | undefined;
7
- iconActive?: null | undefined;
8
- active?: boolean | undefined;
9
- completed?: boolean | undefined;
10
- index?: number | undefined;
11
- }): JSX.Element;
12
- declare namespace WizardStep {
13
- var propTypes: {
14
- label: {
15
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
16
- deprecated: import("react-desc").PropTypesDescValidator;
17
- };
18
- isRequired: import("react-desc").PropTypesDescValue;
19
- };
20
- icon: {
21
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
22
- deprecated: import("react-desc").PropTypesDescValidator;
23
- };
24
- isRequired: import("react-desc").PropTypesDescValue;
25
- };
26
- iconCompleted: {
27
- deprecated: import("react-desc").PropTypesDescValidator;
28
- };
29
- iconActive: {
30
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
31
- deprecated: import("react-desc").PropTypesDescValidator;
32
- };
33
- isRequired: import("react-desc").PropTypesDescValue;
34
- };
35
- active: {
36
- deprecated: import("react-desc").PropTypesDescValidator;
37
- };
38
- completed: {
39
- deprecated: import("react-desc").PropTypesDescValidator;
40
- };
41
- index: {
42
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
43
- deprecated: import("react-desc").PropTypesDescValidator;
44
- };
45
- isRequired: import("react-desc").PropTypesDescValue;
46
- };
47
- };
48
- }
49
- declare const WizzardStepWithSchema: {
50
- (props?: unknown): JSX.Element;
51
- propTypes: unknown;
52
- toTypescript: () => import("react-desc").TypescriptSchema;
53
- };
54
- export { WizzardStepWithSchema };
55
- export default WizardStep;
@@ -1,31 +0,0 @@
1
- /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
- /// <reference types="react" />
3
- import WizardStep from './WizardStep';
4
- declare function WizardSteps({ current, steps, children, ...otherProps }: {
5
- [x: string]: any;
6
- current?: number | undefined;
7
- steps: any;
8
- children: any;
9
- }): JSX.Element;
10
- declare namespace WizardSteps {
11
- var Item: typeof WizardStep;
12
- var propTypes: {
13
- current: {
14
- deprecated: import("react-desc").PropTypesDescValidator;
15
- };
16
- steps: any;
17
- children: {
18
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
19
- deprecated: import("react-desc").PropTypesDescValidator;
20
- };
21
- isRequired: import("react-desc").PropTypesDescValue;
22
- };
23
- };
24
- }
25
- declare const WizzardWithSchema: {
26
- (props?: unknown): JSX.Element;
27
- propTypes: unknown;
28
- toTypescript: () => import("react-desc").TypescriptSchema;
29
- };
30
- export { WizzardWithSchema };
31
- export default WizardSteps;
@@ -1,3 +0,0 @@
1
- export declare const wizardBlockName = "wizard";
2
- export declare const indicatorBlockName: string;
3
- export declare const indicatorItemBlockName: string;
@@ -1,4 +0,0 @@
1
- import WizardStepsIndicator, { WizzardWithSchema } from './WizardSteps';
2
- import WizardStep, { WizzardStepWithSchema } from './WizardStep';
3
- import useWizard from './useWizard';
4
- export { useWizard, WizardStepsIndicator, WizardStep, WizzardWithSchema, WizzardStepWithSchema, };
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const steps: {
3
- label: string;
4
- content: () => JSX.Element;
5
- }[];
@@ -1 +0,0 @@
1
- export function Overview(): JSX.Element;
@@ -1,14 +0,0 @@
1
- export default function useWizard({ steps: wizardSteps, current, onNext, onPrevious, initial, }: {
2
- steps: any;
3
- current: any;
4
- onNext?: (() => null) | undefined;
5
- onPrevious?: (() => null) | undefined;
6
- initial?: number | undefined;
7
- }): {
8
- current: any;
9
- next: () => void;
10
- previous: () => void;
11
- canNext: boolean;
12
- canPrevious: boolean;
13
- WizardCurrentContent: any;
14
- };