@ebay/ui-core-react 1.8.3 → 2.0.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.
Files changed (107) hide show
  1. package/README.md +19 -9
  2. package/{ebay-floating-label → common/floating-label-utils}/hooks.d.ts +0 -0
  3. package/common/floating-label-utils/hooks.d.ts.map +1 -0
  4. package/{ebay-floating-label → common/floating-label-utils}/hooks.js +0 -0
  5. package/common/tooltip-utils/index.d.ts +0 -1
  6. package/common/tooltip-utils/index.d.ts.map +1 -1
  7. package/common/tooltip-utils/index.js +0 -3
  8. package/ebay-button/README.md +2 -2
  9. package/ebay-button/button.d.ts.map +1 -1
  10. package/ebay-button/button.js +2 -3
  11. package/ebay-button/types.d.ts +1 -1
  12. package/ebay-button/types.d.ts.map +1 -1
  13. package/ebay-dialog-base/dialog-base-with-state.js +1 -1
  14. package/ebay-field/index.d.ts +0 -1
  15. package/ebay-field/index.d.ts.map +1 -1
  16. package/ebay-field/index.js +0 -4
  17. package/ebay-fullscreen-dialog/fullscreen-dialog.d.ts +0 -1
  18. package/ebay-fullscreen-dialog/fullscreen-dialog.d.ts.map +1 -1
  19. package/ebay-fullscreen-dialog/fullscreen-dialog.js +2 -2
  20. package/ebay-icon/types.d.ts +1 -1
  21. package/ebay-icon/types.d.ts.map +1 -1
  22. package/ebay-infotip/index.d.ts +0 -1
  23. package/ebay-infotip/index.d.ts.map +1 -1
  24. package/ebay-infotip/index.js +0 -2
  25. package/ebay-listbox-button/listbox-button.js +6 -6
  26. package/ebay-menu/menu-item.d.ts.map +1 -1
  27. package/ebay-menu/menu-item.js +3 -2
  28. package/ebay-progress-spinner/README.md +1 -1
  29. package/ebay-progress-spinner/progress-spinner.d.ts +1 -1
  30. package/ebay-progress-spinner/progress-spinner.d.ts.map +1 -1
  31. package/ebay-progress-spinner/progress-spinner.js +3 -2
  32. package/ebay-progress-stepper/README.md +1 -3
  33. package/ebay-progress-stepper/ebay-progress-step.d.ts +1 -3
  34. package/ebay-progress-stepper/ebay-progress-step.d.ts.map +1 -1
  35. package/ebay-progress-stepper/ebay-progress-step.js +8 -19
  36. package/ebay-progress-stepper/ebay-progress-stepper.d.ts.map +1 -1
  37. package/ebay-progress-stepper/ebay-progress-stepper.js +16 -16
  38. package/ebay-progress-stepper/index.d.ts +1 -1
  39. package/ebay-progress-stepper/index.d.ts.map +1 -1
  40. package/ebay-progress-stepper/types.d.ts +1 -2
  41. package/ebay-progress-stepper/types.d.ts.map +1 -1
  42. package/ebay-section-title/README.md +0 -1
  43. package/ebay-section-title/cta.d.ts +1 -3
  44. package/ebay-section-title/cta.d.ts.map +1 -1
  45. package/ebay-section-title/cta.js +5 -9
  46. package/ebay-section-title/section-title.d.ts +1 -2
  47. package/ebay-section-title/section-title.d.ts.map +1 -1
  48. package/ebay-section-title/section-title.js +2 -5
  49. package/ebay-select/ebay-select.js +1 -1
  50. package/ebay-svg/svg.d.ts.map +1 -1
  51. package/ebay-svg/svg.js +108 -56
  52. package/ebay-tabs/README.md +0 -1
  53. package/ebay-tabs/tabs.d.ts +0 -2
  54. package/ebay-tabs/tabs.d.ts.map +1 -1
  55. package/ebay-textbox/textbox.d.ts +1 -2
  56. package/ebay-textbox/textbox.d.ts.map +1 -1
  57. package/ebay-textbox/textbox.js +2 -3
  58. package/ebay-tooltip/index.d.ts +0 -1
  59. package/ebay-tooltip/index.d.ts.map +1 -1
  60. package/ebay-tooltip/index.js +0 -3
  61. package/index.d.ts +4 -7
  62. package/index.d.ts.map +1 -1
  63. package/index.js +0 -12
  64. package/package.json +3 -3
  65. package/common/tooltip-utils/constants-legacy.d.ts +0 -10
  66. package/common/tooltip-utils/constants-legacy.d.ts.map +0 -1
  67. package/common/tooltip-utils/constants-legacy.js +0 -16
  68. package/ebay-dialog/README.md +0 -4
  69. package/ebay-expand-button/README.md +0 -36
  70. package/ebay-expand-button/expand-button.d.ts +0 -13
  71. package/ebay-expand-button/expand-button.d.ts.map +0 -1
  72. package/ebay-expand-button/expand-button.js +0 -73
  73. package/ebay-expand-button/index.d.ts +0 -2
  74. package/ebay-expand-button/index.d.ts.map +0 -1
  75. package/ebay-expand-button/index.js +0 -4
  76. package/ebay-field/enums.d.ts +0 -20
  77. package/ebay-field/enums.d.ts.map +0 -1
  78. package/ebay-field/enums.js +0 -27
  79. package/ebay-floating-label/README.md +0 -51
  80. package/ebay-floating-label/floating-label.d.ts +0 -10
  81. package/ebay-floating-label/floating-label.d.ts.map +0 -1
  82. package/ebay-floating-label/floating-label.js +0 -40
  83. package/ebay-floating-label/hooks.d.ts.map +0 -1
  84. package/ebay-floating-label/index.d.ts +0 -3
  85. package/ebay-floating-label/index.d.ts.map +0 -1
  86. package/ebay-floating-label/index.js +0 -4
  87. package/ebay-infotip/enums.d.ts +0 -8
  88. package/ebay-infotip/enums.d.ts.map +0 -1
  89. package/ebay-infotip/enums.js +0 -10
  90. package/ebay-legacy-floating-label/README.md +0 -47
  91. package/ebay-legacy-floating-label/index.d.ts +0 -2
  92. package/ebay-legacy-floating-label/index.d.ts.map +0 -1
  93. package/ebay-legacy-floating-label/index.js +0 -4
  94. package/ebay-legacy-floating-label/legacy-floating-label.d.ts +0 -8
  95. package/ebay-legacy-floating-label/legacy-floating-label.d.ts.map +0 -1
  96. package/ebay-legacy-floating-label/legacy-floating-label.js +0 -91
  97. package/ebay-notice-content/README.md +0 -6
  98. package/ebay-notice-content/index.d.ts +0 -2
  99. package/ebay-notice-content/index.d.ts.map +0 -1
  100. package/ebay-notice-content/index.js +0 -4
  101. package/ebay-tab/README.md +0 -1
  102. package/ebay-tab/enums.d.ts +0 -14
  103. package/ebay-tab/enums.d.ts.map +0 -1
  104. package/ebay-tab/enums.js +0 -17
  105. package/ebay-tab/index.d.ts +0 -6
  106. package/ebay-tab/index.d.ts.map +0 -1
  107. package/ebay-tab/index.js +0 -12
package/README.md CHANGED
@@ -8,9 +8,10 @@ eBayUI React components
8
8
 
9
9
  * [Node.js](https://nodejs.org/en/) (v16.14+)
10
10
  * [React](https://reactjs.org/) (v16.8+)
11
- * [eBay Skin](https://ebay.github.io/skin/) (v14)
11
+ * [eBay Skin](https://ebay.github.io/skin/) (v15)
12
12
 
13
13
  ### eBayUI Components
14
+ * [ ] `ebay-3d-viewer`
14
15
  * [x] [ebay-alert-dialog](src/ebay-alert-dialog)
15
16
  * [x] [ebay-confirm-dialog](src/ebay-confirm-dialog)
16
17
  * [x] [ebay-badge](src/ebay-badge)
@@ -19,32 +20,33 @@ eBayUI React components
19
20
  * [ ] `ebay-carousel` (in progress...)
20
21
  * [x] [ebay-checkbox](src/ebay-checkbox)
21
22
  * [ ] `ebay-combobox`
22
- * [ ] `ebay-combobox-readonly`
23
+ * [ ] `ebay-confirm-dialog`
23
24
  * [x] [ebay-cta-button](src/ebay-cta-button)
24
25
  * [ ] `ebay-details`
25
26
  * [x] [ebay-drawer-dialog](src/ebay-drawer-dialog)
26
27
  * [x] [ebay-eek](src/ebay-eek)
27
- * [x] [ebay-expand-button](src/ebay-expand-button)
28
28
  * [x] [ebay-fullscreen-dialog](src/ebay-fullscreen-dialog)
29
+ * [ ] `eebay-fake-link`
29
30
  * [ ] `ebay-fake-menu` (in progress...)
30
31
  * [ ] `ebay-fake-menu-button` (in progress...)
31
32
  * [ ] `ebay-fake-tabs`
32
- * [x] [ebay-floating-label](src/ebay-floating-label)
33
33
  * [x] [ebay-field](src/ebay-field)
34
34
  * [ ] `ebay-filter` (in progress...)
35
35
  * [ ] `ebay-filter-menu`
36
36
  * [ ] `ebay-filter-menu-button`
37
+ * [ ] `ebay-icon-button`
37
38
  * [x] [ebay-icon](src/ebay-icon)
38
39
  * [x] [ebay-infotip](src/ebay-infotip)
39
40
  * [x] [ebay-inline-notice](src/ebay-inline-notice)
40
- * [x] [ebay-legacy-floating-label](src/ebay-legacy-floating-label)
41
41
  * [x] [ebay-lightbox-dialog](src/ebay-lightbox-dialog)
42
42
  * [x] [ebay-listbox-button](src/ebay-listbox-button)
43
+ * [ ] `ebay-listbox`
43
44
  * [x] [ebay-menu] (src/ebay-menu)
44
45
  * [ ] `ebay-menu-button` (in progress...)
45
46
  * [x] [ebay-page-notice](src/ebay-page-notice)
46
47
  * [x] [ebay-pagination](src/ebay-pagination)
47
48
  * [x] [ebay-panel-dialog](src/ebay-panel-dialog)
49
+ * [ ] `ebay-program-badge`
48
50
  * [x] [ebay-progress-bar](src/ebay-progress-bar)
49
51
  * [x] [ebay-progress-spinner](src/ebay-progress-spinner)
50
52
  * [x] [ebay-progress-stepper](src/ebay-progress-stepper)
@@ -53,17 +55,18 @@ eBayUI React components
53
55
  * [x] [ebay-section-notice](src/ebay-section-notice)
54
56
  * [x] [ebay-select](src/ebay-select)
55
57
  * [ ] `ebay-snackbar-dialog`
58
+ * [ ] `ebay-split-button`
59
+ * [ ] `ebay-star-rating`
60
+ * [ ] `ebay-star-rating-select`
56
61
  * [x] [ebay-switch](src/ebay-switch)
57
62
  * [x] [ebay-signal](src/ebay-signal)
58
- * [x] [ebay-tab](src/ebay-tabs)
63
+ * [x] [ebay-tabs](src/ebay-tabs)
59
64
  * [x] [ebay-textbox](src/ebay-textbox)
60
65
  * [x] [ebay-toast-dialog](src/ebay-toast-dialog)
61
66
  * [x] [ebay-tooltip](src/ebay-tooltip)
62
67
  * [ ] `ebay-tourtip`
68
+ * [ ] `ebay-tri-state-checkbox`
63
69
  * [ ] `ebay-video`
64
- * [ ] `ebay-window-notice`
65
-
66
- [Progress overview](https://github.com/eBay/ebayui-core-react/projects/1)
67
70
 
68
71
  ## Getting Started
69
72
 
@@ -176,7 +179,14 @@ One way to comply those guidelines is to implement your new component as similia
176
179
 
177
180
  ## Changelog
178
181
 
182
+ `@ebay/ui-core-react`
183
+ ### version 2.x (Skin 15)
184
+
185
+ `@ebay/ebayui-core-react`
186
+ ### version 10.x (Skin 14)
179
187
  ### version 9.x (skin 13)
188
+
189
+ `ebayui-core-react`
180
190
  ### version 8.x (skin 12)
181
191
  ### version 6.x (skin 10)
182
192
  ### version 5.x (removed less, changed imports to minimize bundle size)
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/common/floating-label-utils/hooks.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA+B,EAAE,EAAE,SAAS,EAAe,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGjH,aAAK,QAAQ,GAAG,SAAS,CAAC,iBAAiB,GAAG,mBAAmB,GAAG,gBAAgB,CAAC,GAAG,GAAG,CAAA;AAC3F,aAAK,sBAAsB,GAAG;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAChC,UAAU,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAA;AAED,aAAK,uBAAuB,GAAG;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,EAAE,CAAC;QAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;IACxC,GAAG,EAAE,QAAQ,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACvB,CAAA;AA4CD,wBAAgB,gBAAgB,CAAC,EAC7B,GAAG,EACH,OAAO,EACP,SAAS,EACT,QAAQ,EACR,KAAK,EACL,SAAS,EACT,UAAU,EACV,WAAW,EACX,OAAO,EACV,EAAG,sBAAsB,GAAG,uBAAuB,CA2EnD"}
@@ -4,5 +4,4 @@ export { default as TooltipContent } from './tooltip-content';
4
4
  export { useTooltip } from './use-tooltip';
5
5
  export { TooltipType, PointerDirection } from './types';
6
6
  export { DEFAULT_POINTER_DIRECTION, POINTER_STYLES } from './constants';
7
- export { POINTER_TYPES, TOOLTIP_TYPES } from './constants-legacy';
8
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACvD,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACvD,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA"}
@@ -11,6 +11,3 @@ Object.defineProperty(exports, "useTooltip", { enumerable: true, get: function (
11
11
  var constants_1 = require("./constants");
12
12
  Object.defineProperty(exports, "DEFAULT_POINTER_DIRECTION", { enumerable: true, get: function () { return constants_1.DEFAULT_POINTER_DIRECTION; } });
13
13
  Object.defineProperty(exports, "POINTER_STYLES", { enumerable: true, get: function () { return constants_1.POINTER_STYLES; } });
14
- var constants_legacy_1 = require("./constants-legacy");
15
- Object.defineProperty(exports, "POINTER_TYPES", { enumerable: true, get: function () { return constants_legacy_1.POINTER_TYPES; } });
16
- Object.defineProperty(exports, "TOOLTIP_TYPES", { enumerable: true, get: function () { return constants_legacy_1.TOOLTIP_TYPES; } });
@@ -44,8 +44,8 @@ import '@ebay/skin/button.css'
44
44
 
45
45
  Name | Type | Stateful | Required | Description | Data
46
46
  --- | --- | --- | --- | --- | ---
47
- `priority` | String | No | No | `primary`, `secondary` (default), `tertiary`, ~~`delete`~~ (deprecated, please use `variant="destructive"` ), `none`
48
- `variant` | String | Yes | No | `standard` (default), `detructive`
47
+ `priority` | String | No | No | `primary`, `secondary` (default), `tertiary`, `none`
48
+ `variant` | String | Yes | No | `standard` (default), `destructive`
49
49
  `size` | String | No | No | `default` (default), `large`
50
50
  `bodyState` | String | No | No | `loading`
51
51
  `href` | String | No | No | for link that looks like a button
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ebay-button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEV,cAAc,EAEd,aAAa,EACb,UAAU,EAGV,SAAS,EACZ,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAI5D,oBAAY,eAAe,GAAG;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACp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,aAAa,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC7E,YAAY,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;CACnE,CAAA;AAED,aAAK,KAAK,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC;;AAqF9E,wBAAyC"}
@@ -46,7 +46,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
46
46
  Object.defineProperty(exports, "__esModule", { value: true });
47
47
  var react_1 = __importStar(require("react"));
48
48
  var classnames_1 = __importDefault(require("classnames"));
49
- var forwardRef_1 = require("../common/component-utils/forwardRef");
49
+ var component_utils_1 = require("../common/component-utils");
50
50
  var ebay_icon_1 = require("../ebay-icon");
51
51
  var button_loading_1 = __importDefault(require("./button-loading"));
52
52
  function isIconOnly(children) {
@@ -58,7 +58,6 @@ var EbayButton = function (_a) {
58
58
  var iconOnly = isIconOnly(children);
59
59
  var classPrefix = href ? 'fake-btn' : 'btn';
60
60
  var priorityStyles = {
61
- delete: '',
62
61
  primary: classPrefix + "--primary",
63
62
  secondary: classPrefix + "--secondary",
64
63
  tertiary: classPrefix + "--tertiary",
@@ -80,4 +79,4 @@ var EbayButton = function (_a) {
80
79
  var ariaLive = isLoading ? "polite" : null;
81
80
  return href ? (react_1.default.createElement("a", __assign({ className: className, href: disabled ? undefined : href, ref: forwardedRef, onKeyDown: onKeyDown, "aria-live": ariaLive }, rest), bodyContent)) : (react_1.default.createElement("button", __assign({ disabled: disabled, "aria-disabled": partiallyDisabled, "aria-live": ariaLive, className: className, ref: forwardedRef, onKeyDown: onKeyDown }, rest), bodyContent));
82
81
  };
83
- exports.default = forwardRef_1.withForwardRef(EbayButton);
82
+ exports.default = component_utils_1.withForwardRef(EbayButton);
@@ -1,4 +1,4 @@
1
- export declare type Priority = 'primary' | 'secondary' | 'tertiary' | 'delete' | 'none';
1
+ export declare type Priority = 'primary' | 'secondary' | 'tertiary' | 'none';
2
2
  export declare type Variant = 'standard' | 'destructive';
3
3
  export declare type Size = 'default' | 'large';
4
4
  export declare type BodyState = 'loading';
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-button/types.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE/E,oBAAY,OAAO,GAAG,UAAU,GAAG,aAAa,CAAA;AAEhD,oBAAY,IAAI,GAAG,SAAS,GAAG,OAAO,CAAA;AAEtC,oBAAY,SAAS,GAAG,SAAS,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-button/types.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAA;AAEpE,oBAAY,OAAO,GAAG,UAAU,GAAG,aAAa,CAAA;AAEhD,oBAAY,IAAI,GAAG,SAAS,GAAG,OAAO,CAAA;AAEtC,oBAAY,SAAS,GAAG,SAAS,CAAA"}
@@ -47,7 +47,7 @@ var react_remove_scroll_1 = require("react-remove-scroll");
47
47
  var dialogBase_1 = require("./components/dialogBase");
48
48
  var index_1 = require("./index");
49
49
  exports.DialogBaseWithState = function (_a) {
50
- var isModal = _a.isModal, open = _a.open, children = _a.children, animated = _a.animated, rest = __rest(_a, ["isModal", "open", "children", "animated"]);
50
+ var isModal = _a.isModal, open = _a.open, children = _a.children, _b = _a.animated, animated = _b === void 0 ? true : _b, rest = __rest(_a, ["isModal", "open", "children", "animated"]);
51
51
  var shouldRenderModal = isModal !== false;
52
52
  var childrenArray = react_1.Children.toArray(children);
53
53
  var header = childrenArray.find(function (child) { return child.type === index_1.EbayDialogHeader; });
@@ -2,5 +2,4 @@ export { default as EbayField } from './field';
2
2
  export { default as EbayLabel, Props as EbayLabelProps } from './label';
3
3
  export { default as EbayFieldDescription } from './description';
4
4
  export { FieldDescriptionType, FieldDescriptionPosition, FieldLayoutType, LabelPosition } from './types';
5
- export { fieldLayoutType, fieldDescriptionType, fieldDescriptionPosition } from './enums';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACxG,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA"}
@@ -6,7 +6,3 @@ var label_1 = require("./label");
6
6
  Object.defineProperty(exports, "EbayLabel", { enumerable: true, get: function () { return label_1.default; } });
7
7
  var description_1 = require("./description");
8
8
  Object.defineProperty(exports, "EbayFieldDescription", { enumerable: true, get: function () { return description_1.default; } });
9
- var enums_1 = require("./enums");
10
- Object.defineProperty(exports, "fieldLayoutType", { enumerable: true, get: function () { return enums_1.fieldLayoutType; } });
11
- Object.defineProperty(exports, "fieldDescriptionType", { enumerable: true, get: function () { return enums_1.fieldDescriptionType; } });
12
- Object.defineProperty(exports, "fieldDescriptionPosition", { enumerable: true, get: function () { return enums_1.fieldDescriptionPosition; } });
@@ -2,7 +2,6 @@ import { FC } from 'react';
2
2
  import { DialogBaseProps } from '../ebay-dialog-base';
3
3
  export interface Props<T = any> extends DialogBaseProps<T> {
4
4
  open?: boolean;
5
- sliding?: boolean;
6
5
  onOpen?: () => void;
7
6
  onClose?: () => void;
8
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fullscreen-dialog.d.ts","sourceRoot":"","sources":["../../src/ebay-fullscreen-dialog/fullscreen-dialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,eAAe,EAAuB,MAAM,qBAAqB,CAAA;AAI1E,MAAM,WAAW,KAAK,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAkB;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,oBAAoB,EAAE,EAAE,CAAC,KAAK,CAqBnC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
1
+ {"version":3,"file":"fullscreen-dialog.d.ts","sourceRoot":"","sources":["../../src/ebay-fullscreen-dialog/fullscreen-dialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,eAAe,EAAuB,MAAM,qBAAqB,CAAA;AAI1E,MAAM,WAAW,KAAK,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,oBAAoB,EAAE,EAAE,CAAC,KAAK,CAoBnC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
@@ -30,7 +30,7 @@ var classnames_1 = __importDefault(require("classnames"));
30
30
  var ebay_dialog_base_1 = require("../ebay-dialog-base");
31
31
  var classPrefix = 'fullscreen-dialog';
32
32
  var EbayFullscreenDialog = function (_a) {
33
- var open = _a.open, _b = _a.onClose, onClose = _b === void 0 ? function () { } : _b, _c = _a.onOpen, onOpen = _c === void 0 ? function () { } : _c, _d = _a.a11yCloseText, a11yCloseText = _d === void 0 ? 'Close Dialog' : _d, className = _a.className, animated = _a.animated, sliding = _a.sliding, rest = __rest(_a, ["open", "onClose", "onOpen", "a11yCloseText", "className", "animated", "sliding"]);
34
- return (react_1.default.createElement(ebay_dialog_base_1.DialogBaseWithState, __assign({}, rest, { classPrefix: classPrefix, buttonPosition: "left", onCloseBtnClick: onClose, transitionElement: "window", animated: sliding || animated, className: classnames_1.default(className, classPrefix + "--mask-fade-slow"), windowClass: classnames_1.default(classPrefix + "__window", classPrefix + "__window--slide"), open: open })));
33
+ var open = _a.open, _b = _a.onClose, onClose = _b === void 0 ? function () { } : _b, _c = _a.onOpen, onOpen = _c === void 0 ? function () { } : _c, _d = _a.a11yCloseText, a11yCloseText = _d === void 0 ? 'Close Dialog' : _d, className = _a.className, animated = _a.animated, rest = __rest(_a, ["open", "onClose", "onOpen", "a11yCloseText", "className", "animated"]);
34
+ return (react_1.default.createElement(ebay_dialog_base_1.DialogBaseWithState, __assign({}, rest, { classPrefix: classPrefix, buttonPosition: "left", onCloseBtnClick: onClose, transitionElement: "window", animated: animated, className: classnames_1.default(className, classPrefix + "--mask-fade-slow"), windowClass: classnames_1.default(classPrefix + "__window", classPrefix + "__window--slide"), open: open })));
35
35
  };
36
36
  exports.default = EbayFullscreenDialog;
@@ -1,2 +1,2 @@
1
- export declare type Icon = 'add' | 'addSmall' | 'archive' | 'archiveSmall' | 'arrowLeft' | 'arrowLeftMedium' | 'arrowLeftSmall' | 'arrowMove' | 'arrowMoveSmall' | 'arrowRight' | 'arrowRightBold' | 'arrowRightExtraSmall' | 'arrowRightGroupTitles' | 'arrowRightSmall' | 'attention' | 'attentionFilled' | 'attentionFilledSmall' | 'attentionSmall' | 'avatar' | 'avatarDark' | 'avatarFilled' | 'avatarLight' | 'back' | 'bag' | 'bank' | 'bankLarge' | 'bids' | 'bidsLarge' | 'breadcrumb' | 'calendar' | 'calendarLarge' | 'calendarSmall' | 'camera' | 'cameraSmall' | 'carouselNext' | 'carouselPrev' | 'cart' | 'cartLarge' | 'cartSmall' | 'categories' | 'certifiedRecycle' | 'certifiedRecycleSmall' | 'chatLarge' | 'checkboxChecked' | 'checkboxCheckedLarge' | 'checkboxMixed' | 'checkboxMixedLarge' | 'checkboxSquareChecked' | 'checkboxSquareCheckedLarge' | 'checkboxSquareUnchecked' | 'checkboxSquareUncheckedLarge' | 'checkboxUnchecked' | 'checkboxUncheckedLarge' | 'chevronDown' | 'chevronDownBold' | 'chevronDownExtraSmall' | 'chevronDownSmall' | 'chevronLeft' | 'chevronLeftExtraSmall' | 'chevronLeftSmall' | 'chevronRight' | 'chevronRightExtraSmall' | 'chevronRightSmall' | 'chevronUp' | 'chevronUpBold' | 'chevronUpExtraSmall' | 'chevronUpSmall' | 'circle' | 'clear' | 'clearSmall' | 'clock' | 'clockSmall' | 'close' | 'closeSmall' | 'confirmation' | 'confirmationFilled' | 'confirmationFilledSmall' | 'confirmationSmall' | 'creditCard' | 'creditCardLarge' | 'creditCardSmall' | 'cta' | 'customize' | 'customizeSmall' | 'deals' | 'delete' | 'deleteSmall' | 'download' | 'downloadSmall' | 'dropdown' | 'edit' | 'editSmall' | 'eekArrow' | 'eekRangeArrow' | 'envelope' | 'event' | 'eventLarge' | 'fastNFree' | 'fastNFreeSmall' | 'filter' | 'filterGallery' | 'filterGallerySmall' | 'filterList' | 'filterListSmall' | 'filterSingle' | 'filterSingleSelected' | 'filterSingleSmall' | 'filterSmall' | 'fingerprintLarge' | 'flag' | 'flagSmall' | 'folder' | 'folderSmall' | 'following' | 'followingSmall' | 'gift' | 'giftLarge' | 'giftSmall' | 'help' | 'helpSmall' | 'hideSecret' | 'hideSecretSmall' | 'history' | 'home' | 'inbox' | 'inboxSmall' | 'information' | 'informationFilled' | 'informationFilledSmall' | 'informationSmall' | 'key' | 'largeBox' | 'largeCase' | 'lightbulb' | 'lightbulbSmall' | 'liveEye' | 'liveEyeSmall' | 'location' | 'locationLarge' | 'locked' | 'lockedSmall' | 'mailMove' | 'mailMoveSmall' | 'mailOpen' | 'mailOpenSmall' | 'mailUnread' | 'mailUnreadSmall' | 'mediumBox' | 'menu' | 'messages' | 'messagesLarge' | 'messagesSmall' | 'mic' | 'micSmall' | 'mobile' | 'mobileSignal' | 'moneyBackGuaranteeUs' | 'moneyBackGuaranteeUsSmall' | 'notification' | 'overflow' | 'overflowSmall' | 'package' | 'paginationNext' | 'paginationPrev' | 'pause' | 'pauseFilled' | 'pauseFilledLarge' | 'pauseLarge' | 'pauseSmall' | 'photoBrightness' | 'photoContrast' | 'photoCrop' | 'photoFlash' | 'photoFlipCamera' | 'photoGallery' | 'photoGalleryMore' | 'photoGallerySmall' | 'photoImage' | 'photoImageSmall' | 'photoRotate' | 'photoSelectAll' | 'photoSelectNone' | 'photoSharpen' | 'play' | 'playFilled' | 'playFilledLarge' | 'playLarge' | 'playSmall' | 'print' | 'profile' | 'programBadgeAuthenticityGuaranteed' | 'programBadgeClickToCall' | 'programBadgeEbayPlus' | 'programBadgeEscrow' | 'programBadgeFreeWarranty' | 'programBadgeMoneyBackGuaranteeChf' | 'programBadgeMoneyBackGuaranteeEu' | 'programBadgeMoneyBackGuaranteeUk' | 'programBadgeMoneyBackGuaranteeUs' | 'programBadgeMoneyBackGuaranteeZl' | 'programBadgeTopRatedSeller' | 'programBadgeVault' | 'purchases' | 'purchasesLarge' | 'radioChecked' | 'radioCheckedLarge' | 'radioUnchecked' | 'radioUncheckedLarge' | 'redLaser' | 'redLaserSmall' | 'refresh' | 'remove' | 'reply' | 'replySmall' | 'reportFlag' | 'reportFlagSmall' | 'return' | 'returnSmall' | 'save' | 'saveBold' | 'saveSelected' | 'saveSelectedSmall' | 'saveSmall' | 'scan' | 'scanSmall' | 'search' | 'searchActive' | 'searchBold' | 'searchLarge' | 'searchSmall' | 'securityKey' | 'selling' | 'sellingMedium' | 'send' | 'settings' | 'settingsSmall' | 'share' | 'shareSmall' | 'shoeBox' | 'showSecret' | 'showSecretSmall' | 'smallBox' | 'smallCase' | 'smallLetter' | 'socialDiscord' | 'socialFacebook' | 'socialInstagram' | 'socialLink' | 'socialLinkedin' | 'socialMessenger' | 'socialPinterest' | 'socialReddit' | 'socialTwitter' | 'socialWhatsapp' | 'sortDownSmall' | 'sortSmall' | 'sortUpSmall' | 'spinner' | 'spinnerLarge' | 'starDynamic' | 'starEmpty' | 'starEmptySmall' | 'starFull' | 'starFullSmall' | 'starHalf' | 'starHalfSmall' | 'starUndefined' | 'starUndefinedSmall' | 'stepperAttention' | 'stepperConfirmation' | 'stepperCurrent' | 'stepperInformation' | 'store' | 'storeLarge' | 'suitcase' | 'support' | 'tabletCondensedGrid' | 'tabletCondensedGridFilled' | 'tabletRelaxedGrid' | 'tabletRelaxedGridFilled' | 'tabletVerticalSplit' | 'tabletVerticalSplitFilled' | 'textMessagingLarge' | 'thumbsDown' | 'thumbsDownSelected' | 'thumbsDownSelectedSmall' | 'thumbsDownSmall' | 'thumbsUp' | 'thumbsUpSelected' | 'thumbsUpSelectedSmall' | 'thumbsUpSmall' | 'tick' | 'tickSmall' | 'topSeller' | 'truck' | 'truckSmall' | 'undo' | 'unlocked' | 'unlockedSmall' | 'userProfile' | 'vault' | 'vaultSmall' | 'videoPause' | 'videoPlay' | 'visa' | 'visaLarge' | 'visaSmall' | 'visaXsmall' | 'watch' | 'watchLarge' | 'window' | 'zoomIn' | 'zoomOut';
1
+ export declare type Icon = 'add' | 'addSmall' | 'archive' | 'archiveSmall' | 'arrowLeft' | 'arrowLeftMedium' | 'arrowLeftSmall' | 'arrowMove' | 'arrowMoveSmall' | 'arrowRight' | 'arrowRightBold' | 'arrowRightExtraSmall' | 'arrowRightGroupTitles' | 'arrowRightSmall' | 'attention' | 'attentionFilled' | 'attentionFilledSmall' | 'attentionSmall' | 'avatar' | 'avatarDark' | 'avatarFilled' | 'avatarLight' | 'back' | 'bag' | 'bank' | 'bankLarge' | 'bids' | 'bidsLarge' | 'breadcrumb' | 'calendar' | 'calendarLarge' | 'calendarSmall' | 'camera' | 'cameraSmall' | 'carouselNext' | 'carouselPrev' | 'cart' | 'cartLarge' | 'cartSmall' | 'categories' | 'certifiedRecycle' | 'certifiedRecycleSmall' | 'chatLarge' | 'checkboxChecked' | 'checkboxCheckedLarge' | 'checkboxMixed' | 'checkboxMixedLarge' | 'checkboxSquareChecked' | 'checkboxSquareCheckedLarge' | 'checkboxSquareUnchecked' | 'checkboxSquareUncheckedLarge' | 'checkboxUnchecked' | 'checkboxUncheckedLarge' | 'chevronDown' | 'chevronDownBold' | 'chevronDownExtraSmall' | 'chevronDownSmall' | 'chevronLeft' | 'chevronLeftExtraSmall' | 'chevronLeftSmall' | 'chevronRight' | 'chevronRightExtraSmall' | 'chevronRightSmall' | 'chevronUp' | 'chevronUpBold' | 'chevronUpExtraSmall' | 'chevronUpSmall' | 'circle' | 'clear' | 'clearSmall' | 'clock' | 'clockSmall' | 'close' | 'closeSmall' | 'confirmation' | 'confirmationFilled' | 'confirmationFilledSmall' | 'confirmationSmall' | 'creditCard' | 'creditCardLarge' | 'creditCardSmall' | 'cta' | 'customize' | 'customizeSmall' | 'deals' | 'delete' | 'deleteSmall' | 'download' | 'downloadSmall' | 'dropdown' | 'edit' | 'editSmall' | 'eekArrow' | 'eekRangeArrow' | 'envelope' | 'event' | 'eventLarge' | 'fastNFree' | 'fastNFreeSmall' | 'filter' | 'filterGallery' | 'filterGallerySmall' | 'filterList' | 'filterListSmall' | 'filterSingle' | 'filterSingleSelected' | 'filterSingleSmall' | 'filterSmall' | 'fingerprintLarge' | 'flag' | 'flagSmall' | 'folder' | 'folderSmall' | 'following' | 'followingSmall' | 'gift' | 'giftLarge' | 'giftSmall' | 'help' | 'helpSmall' | 'hideSecret' | 'hideSecretSmall' | 'history' | 'home' | 'inbox' | 'inboxSmall' | 'information' | 'informationFilled' | 'informationFilledSmall' | 'informationSmall' | 'key' | 'largeBox' | 'largeCase' | 'lightbulb' | 'lightbulbSmall' | 'liveEye' | 'liveEyeSmall' | 'location' | 'locationLarge' | 'locked' | 'lockedSmall' | 'mailMove' | 'mailMoveSmall' | 'mailOpen' | 'mailOpenSmall' | 'mailUnread' | 'mailUnreadSmall' | 'mediumBox' | 'menu' | 'messages' | 'messagesLarge' | 'messagesSmall' | 'mic' | 'micSmall' | 'mobile' | 'mobileSignal' | 'moneyBackGuaranteeUs' | 'moneyBackGuaranteeUsSmall' | 'notification' | 'overflow' | 'overflowSmall' | 'package' | 'paginationNext' | 'paginationPrev' | 'pause' | 'pauseFilled' | 'pauseFilledLarge' | 'pauseLarge' | 'pauseSmall' | 'photoBrightness' | 'photoContrast' | 'photoCrop' | 'photoFlash' | 'photoFlipCamera' | 'photoGallery' | 'photoGalleryMore' | 'photoGallerySmall' | 'photoImage' | 'photoImageSmall' | 'photoRotate' | 'photoSelectAll' | 'photoSelectNone' | 'photoSharpen' | 'play' | 'playFilled' | 'playFilledLarge' | 'playLarge' | 'playSmall' | 'print' | 'profile' | 'programBadgeAuthenticityGuaranteed' | 'programBadgeClickToCall' | 'programBadgeEbayPlus' | 'programBadgeEscrow' | 'programBadgeFreeWarranty' | 'programBadgeMoneyBackGuaranteeChf' | 'programBadgeMoneyBackGuaranteeEu' | 'programBadgeMoneyBackGuaranteeUk' | 'programBadgeMoneyBackGuaranteeUs' | 'programBadgeMoneyBackGuaranteeZl' | 'programBadgeTopRatedSeller' | 'programBadgeVault' | 'purchases' | 'purchasesLarge' | 'radioChecked' | 'radioCheckedLarge' | 'radioUnchecked' | 'radioUncheckedLarge' | 'redLaser' | 'redLaserSmall' | 'refresh' | 'remove' | 'reply' | 'replySmall' | 'reportFlag' | 'reportFlagSmall' | 'return' | 'returnSmall' | 'save' | 'saveBold' | 'saveSelected' | 'saveSelectedSmall' | 'saveSmall' | 'scan' | 'scanSmall' | 'search' | 'searchActive' | 'searchBold' | 'searchLarge' | 'searchSmall' | 'securityKey' | 'selling' | 'sellingMedium' | 'send' | 'settings' | 'settingsSmall' | 'share' | 'shareSmall' | 'shoeBox' | 'showSecret' | 'showSecretSmall' | 'smallBox' | 'smallCase' | 'smallLetter' | 'socialDiscord' | 'socialFacebook' | 'socialInstagram' | 'socialLink' | 'socialLinkedin' | 'socialMessenger' | 'socialPinterest' | 'socialReddit' | 'socialTwitter' | 'socialWhatsapp' | 'sortDownSmall' | 'sortSmall' | 'sortUpSmall' | 'spinner' | 'spinnerLarge' | 'spinnerSmall' | 'starDynamic' | 'starEmptyLarge' | 'starEmptySmall' | 'starFilledLarge' | 'starFilledSmall' | 'starFullSmall' | 'starHalfLarge' | 'starHalfSmall' | 'starUndefined' | 'starUndefinedSmall' | 'stepperAttention' | 'stepperConfirmation' | 'stepperCurrent' | 'stepperUpcoming' | 'store' | 'storeLarge' | 'suitcase' | 'support' | 'tabletCondensedGrid' | 'tabletCondensedGridFilled' | 'tabletRelaxedGrid' | 'tabletRelaxedGridFilled' | 'tabletVerticalSplit' | 'tabletVerticalSplitFilled' | 'textMessagingLarge' | 'thumbsDown' | 'thumbsDownSelected' | 'thumbsDownSelectedSmall' | 'thumbsDownSmall' | 'thumbsUp' | 'thumbsUpSelected' | 'thumbsUpSelectedSmall' | 'thumbsUpSmall' | 'tick' | 'tickSmall' | 'topSeller' | 'truck' | 'truckSmall' | 'undo' | 'unlocked' | 'unlockedSmall' | 'userProfile' | 'vault' | 'vaultSmall' | 'videoPause' | 'videoPlay' | 'visa' | 'visaLarge' | 'visaSmall' | 'visaXsmall' | 'watch' | 'watchLarge' | 'window' | 'zoomIn' | 'zoomOut';
2
2
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-icon/types.ts"],"names":[],"mappings":"AAEA,oBAAY,IAAI,GACZ,KAAK,GACL,UAAU,GACV,SAAS,GACT,cAAc,GACd,WAAW,GACX,iBAAiB,GACjB,gBAAgB,GAChB,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,sBAAsB,GACtB,uBAAuB,GACvB,iBAAiB,GACjB,WAAW,GACX,iBAAiB,GACjB,sBAAsB,GACtB,gBAAgB,GAChB,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,aAAa,GACb,MAAM,GACN,KAAK,GACL,MAAM,GACN,WAAW,GACX,MAAM,GACN,WAAW,GACX,YAAY,GACZ,UAAU,GACV,eAAe,GACf,eAAe,GACf,QAAQ,GACR,aAAa,GACb,cAAc,GACd,cAAc,GACd,MAAM,GACN,WAAW,GACX,WAAW,GACX,YAAY,GACZ,kBAAkB,GAClB,uBAAuB,GACvB,WAAW,GACX,iBAAiB,GACjB,sBAAsB,GACtB,eAAe,GACf,oBAAoB,GACpB,uBAAuB,GACvB,4BAA4B,GAC5B,yBAAyB,GACzB,8BAA8B,GAC9B,mBAAmB,GACnB,wBAAwB,GACxB,aAAa,GACb,iBAAiB,GACjB,uBAAuB,GACvB,kBAAkB,GAClB,aAAa,GACb,uBAAuB,GACvB,kBAAkB,GAClB,cAAc,GACd,wBAAwB,GACxB,mBAAmB,GACnB,WAAW,GACX,eAAe,GACf,qBAAqB,GACrB,gBAAgB,GAChB,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,cAAc,GACd,oBAAoB,GACpB,yBAAyB,GACzB,mBAAmB,GACnB,YAAY,GACZ,iBAAiB,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oBAAoB,GACpB,YAAY,GACZ,oBAAoB,GACpB,yBAAyB,GACzB,iBAAiB,GACjB,UAAU,GACV,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,MAAM,GACN,WAAW,GACX,WAAW,GACX,OAAO,GACP,YAAY,GACZ,MAAM,GACN,UAAU,GACV,eAAe,GACf,aAAa,GACb,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,MAAM,GACN,WAAW,GACX,WAAW,GACX,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,SAAS,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-icon/types.ts"],"names":[],"mappings":"AAEA,oBAAY,IAAI,GACZ,KAAK,GACL,UAAU,GACV,SAAS,GACT,cAAc,GACd,WAAW,GACX,iBAAiB,GACjB,gBAAgB,GAChB,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,sBAAsB,GACtB,uBAAuB,GACvB,iBAAiB,GACjB,WAAW,GACX,iBAAiB,GACjB,sBAAsB,GACtB,gBAAgB,GAChB,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,aAAa,GACb,MAAM,GACN,KAAK,GACL,MAAM,GACN,WAAW,GACX,MAAM,GACN,WAAW,GACX,YAAY,GACZ,UAAU,GACV,eAAe,GACf,eAAe,GACf,QAAQ,GACR,aAAa,GACb,cAAc,GACd,cAAc,GACd,MAAM,GACN,WAAW,GACX,WAAW,GACX,YAAY,GACZ,kBAAkB,GAClB,uBAAuB,GACvB,WAAW,GACX,iBAAiB,GACjB,sBAAsB,GACtB,eAAe,GACf,oBAAoB,GACpB,uBAAuB,GACvB,4BAA4B,GAC5B,yBAAyB,GACzB,8BAA8B,GAC9B,mBAAmB,GACnB,wBAAwB,GACxB,aAAa,GACb,iBAAiB,GACjB,uBAAuB,GACvB,kBAAkB,GAClB,aAAa,GACb,uBAAuB,GACvB,kBAAkB,GAClB,cAAc,GAC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GACjB,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,eAAe,GACf,eAAe,GACf,oBAAoB,GACpB,kBAAkB,GAClB,qBAAqB,GACrB,gBAAgB,GAChB,iBAAiB,GACjB,OAAO,GACP,YAAY,GACZ,UAAU,GACV,SAAS,GACT,qBAAqB,GACrB,2BAA2B,GAC3B,mBAAmB,GACnB,yBAAyB,GACzB,qBAAqB,GACrB,2BAA2B,GAC3B,oBAAoB,GACpB,YAAY,GACZ,oBAAoB,GACpB,yBAAyB,GACzB,iBAAiB,GACjB,UAAU,GACV,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,MAAM,GACN,WAAW,GACX,WAAW,GACX,OAAO,GACP,YAAY,GACZ,MAAM,GACN,UAAU,GACV,eAAe,GACf,aAAa,GACb,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,MAAM,GACN,WAAW,GACX,WAAW,GACX,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,SAAS,CAAA"}
@@ -3,5 +3,4 @@ export { default as EbayInfotipHost } from './ebay-infotip-host';
3
3
  export { default as EbayInfotipHeading } from './ebay-infotip-heading';
4
4
  export { default as EbayInfotipContent } from './ebay-infotip-content';
5
5
  export { Variant } from './types';
6
- export { variants } from './enums';
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-infotip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-infotip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -8,5 +8,3 @@ var ebay_infotip_heading_1 = require("./ebay-infotip-heading");
8
8
  Object.defineProperty(exports, "EbayInfotipHeading", { enumerable: true, get: function () { return ebay_infotip_heading_1.default; } });
9
9
  var ebay_infotip_content_1 = require("./ebay-infotip-content");
10
10
  Object.defineProperty(exports, "EbayInfotipContent", { enumerable: true, get: function () { return ebay_infotip_content_1.default; } });
11
- var enums_1 = require("./enums");
12
- Object.defineProperty(exports, "variants", { enumerable: true, get: function () { return enums_1.variants; } });
@@ -206,18 +206,18 @@ var ListboxButton = function (_a) {
206
206
  : optionsByIndexRef.current.set(index, optionNode); }
207
207
  }); });
208
208
  var wrapperClassName = classnames_1.default('listbox-button', className, { 'listbox-button--fluid': fluid });
209
- var buttonClassName = classnames_1.default('expand-btn', {
210
- 'expand-btn--borderless': borderless,
211
- 'expand-btn--floating-label': floatingLabel
209
+ var buttonClassName = classnames_1.default('btn btn--form', {
210
+ 'btn--borderless': borderless,
211
+ 'btn--floating-label': floatingLabel
212
212
  });
213
213
  var expandBtnTextId = prefixId && 'expand-btn-text';
214
214
  return (react_1.default.createElement("span", { className: wrapperClassName },
215
215
  react_1.default.createElement("button", __assign({}, rest, { type: "button", className: buttonClassName, "aria-expanded": expanded, "aria-haspopup": "listbox", "aria-labelledby": prefixId && prefixId + " " + expandBtnTextId, onClick: onButtonClick,
216
216
  // https://stackoverflow.com/questions/17769005/onclick-and-onblur-ordering-issue
217
217
  onMouseDown: function (e) { return e.preventDefault(); }, onKeyUp: onButtonKeyup, ref: buttonRef }),
218
- react_1.default.createElement("span", { className: "expand-btn__cell" },
219
- floatingLabel ? (react_1.default.createElement("span", { className: "expand-btn__floating-label" }, floatingLabel)) : null,
220
- react_1.default.createElement("span", { className: "expand-btn__text", id: expandBtnTextId }, selectedOption.props.children),
218
+ react_1.default.createElement("span", { className: "btn__cell" },
219
+ floatingLabel ? (react_1.default.createElement("span", { className: "btn__floating-label" }, floatingLabel)) : null,
220
+ react_1.default.createElement("span", { className: "btn__text", id: expandBtnTextId }, selectedOption.props.children),
221
221
  react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "dropdown" }))),
222
222
  (expanded || optionsOpened) &&
223
223
  react_1.default.createElement("div", { className: "listbox-button__listbox", ref: optionsParentContainerRef, style: { maxHeight: maxHeight } },
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../src/ebay-menu/menu-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAA;AAKpE,oBAAY,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,GAAG;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,aAAa,CAoCnC,CAAA;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../src/ebay-menu/menu-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAA;AAKpE,oBAAY,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,GAAG;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,aAAa,CAqCnC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -51,15 +51,16 @@ var ebay_icon_1 = require("../ebay-icon");
51
51
  var EbayMenuItem = function (_a) {
52
52
  var className = _a.className, checked = _a.checked, _b = _a.focused, focused = _b === void 0 ? false : _b, tabIndex = _a.tabIndex, disabled = _a.disabled, badgeNumber = _a.badgeNumber, children = _a.children, rest = __rest(_a, ["className", "checked", "focused", "tabIndex", "disabled", "badgeNumber", "children"]);
53
53
  var ref = react_1.useRef(null);
54
+ var hasBadge = badgeNumber !== undefined;
54
55
  react_1.useEffect(function () {
55
56
  if (ref.current && focused) {
56
57
  ref.current.focus();
57
58
  }
58
59
  }, [ref, focused]);
59
- return (react_1.default.createElement("div", __assign({}, rest, { ref: ref, className: classnames_1.default(className, 'menu__item'), role: "menuitem", "aria-checked": checked, "aria-disabled": disabled, "aria-hidden": badgeNumber !== undefined, tabIndex: focused ? 0 : tabIndex }),
60
+ return (react_1.default.createElement("div", __assign({}, rest, { ref: ref, className: classnames_1.default(className, 'menu__item', hasBadge && 'menu__item--badged'), role: "menuitem", "aria-checked": checked, "aria-disabled": disabled, "aria-hidden": hasBadge, tabIndex: focused ? 0 : tabIndex }),
60
61
  react_1.default.createElement("span", null,
61
62
  children,
62
- badgeNumber !== undefined && react_1.default.createElement(ebay_badge_1.EbayBadge, { type: "menu", number: badgeNumber })),
63
+ hasBadge && react_1.default.createElement(ebay_badge_1.EbayBadge, { type: "menu", number: badgeNumber })),
63
64
  react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "tickSmall" })));
64
65
  };
65
66
  exports.default = EbayMenuItem;
@@ -29,5 +29,5 @@ import '@ebay/skin/progress-spinner.css';
29
29
 
30
30
  Name | Type | Stateful | Required | Description | Data
31
31
  --- | --- | --- | --- | --- | ---
32
- `size` | String | No | No | `small` (default), `large`
32
+ `size` | String | No | No | `default` (default), `small`, `large`
33
33
  `aria-label` | String | No | No | custom aria label instead of `Busy`
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps, FC } from 'react';
2
- export declare type SpinnerSize = 'small' | 'large';
2
+ export declare type SpinnerSize = 'default' | 'small' | 'large';
3
3
  declare type EbayProgressSpinnerProps = {
4
4
  size?: SpinnerSize;
5
5
  'aria-label'?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"progress-spinner.d.ts","sourceRoot":"","sources":["../../src/ebay-progress-spinner/progress-spinner.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAIjD,oBAAY,WAAW,GAAG,OAAO,GAAG,OAAO,CAAA;AAE3C,aAAK,wBAAwB,GAAG;IAC5B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAA;AAED,aAAK,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;AAOtD,QAAA,MAAM,mBAAmB,EAAE,EAAE,CAAC,SAAS,GAAG,wBAAwB,CAcjE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
1
+ {"version":3,"file":"progress-spinner.d.ts","sourceRoot":"","sources":["../../src/ebay-progress-spinner/progress-spinner.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAIjD,oBAAY,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAA;AAEvD,aAAK,wBAAwB,GAAG;IAC5B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAA;AAED,aAAK,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;AAQtD,QAAA,MAAM,mBAAmB,EAAE,EAAE,CAAC,SAAS,GAAG,wBAAwB,CAcjE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
@@ -29,11 +29,12 @@ var react_1 = __importDefault(require("react"));
29
29
  var classnames_1 = __importDefault(require("classnames"));
30
30
  var ebay_icon_1 = require("../ebay-icon");
31
31
  var sizeClass = {
32
- 'small': '',
32
+ 'default': '',
33
+ 'small': 'progress-spinner--small',
33
34
  'large': 'progress-spinner--large'
34
35
  };
35
36
  var EbayProgressSpinner = function (_a) {
36
- var _b = _a.size, size = _b === void 0 ? 'SMALL' : _b, _c = _a["aria-label"], ariaLabel = _c === void 0 ? 'Busy' : _c, className = _a.className, rest = __rest(_a, ["size", 'aria-label', "className"]);
37
+ var _b = _a.size, size = _b === void 0 ? 'default' : _b, _c = _a["aria-label"], ariaLabel = _c === void 0 ? 'Busy' : _c, className = _a.className, rest = __rest(_a, ["size", 'aria-label', "className"]);
37
38
  return (react_1.default.createElement("span", __assign({}, rest, { className: classnames_1.default('progress-spinner', sizeClass[size], className), "aria-label": ariaLabel, role: "img" }),
38
39
  react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "spinner" })));
39
40
  };
@@ -43,7 +43,7 @@ customize the layout (`className` or `style`)
43
43
  Name | Type | Stateful | Required | Description
44
44
  --- | --- | --- | --- | ---
45
45
  `direction` | String | No | No | Either `column` or `row` (default). Will display stepper as a vertical column or horizontal row.
46
- `defaultState` | String | Yes | No | Either `complete`, `upcoming` or `active` (default). Defines the default state for all steps.
46
+ `defaultState` | String | Yes | No | `complete`: all items will be in `complete` state by default, `upcoming`:all items will be in `upcoming` state, `attention`: current item will be shown as blocked. Otherwise, default state (`active`) will change items based on the current item (defaults to first step if not set).
47
47
 
48
48
  ### EbayProgressStep
49
49
 
@@ -54,8 +54,6 @@ This component is used to render each step. It renders an icon, a title and a te
54
54
  Name | Type | Stateful | Required | Description
55
55
  --- | --- | --- | --- | ---
56
56
  `current` | Boolean | No | No | The current step. Only first step that has this property will be considered current. All steps before will be rendered as complete, and all after will render as upcoming. If not present on any step, then will render based on `defaultState` property
57
- `type` | String | No | No | Either `attention`, `information`, or `complete`. This takes prescedence over current. Will render the current step with the given icon and color
58
- `number` | Number | No | No | Renders the current step with the given number. Overrides the default number counting for this step
59
57
 
60
58
  ### EbayProgressTitle
61
59
 
@@ -1,10 +1,8 @@
1
1
  import { FC, ReactNode } from 'react';
2
- import { StepState, StepType } from './types';
2
+ import { StepState } from './types';
3
3
  export declare type EbayProgressStepProps = {
4
- type?: StepType;
5
4
  state?: StepState;
6
5
  current?: boolean;
7
- number?: number;
8
6
  className?: string;
9
7
  children?: ReactNode;
10
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ebay-progress-step.d.ts","sourceRoot":"","sources":["../../src/ebay-progress-stepper/ebay-progress-step.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAY,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AAGpE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAG7C,oBAAY,qBAAqB,GAAG;IAChC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAA;AAcD,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA8C/C,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"ebay-progress-step.d.ts","sourceRoot":"","sources":["../../src/ebay-progress-stepper/ebay-progress-step.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAY,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AAGpE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGnC,oBAAY,qBAAqB,GAAG;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAA;AASD,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAmC/C,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -48,33 +48,22 @@ var react_1 = __importStar(require("react"));
48
48
  var classnames_1 = __importDefault(require("classnames"));
49
49
  var ebay_icon_1 = require("../ebay-icon");
50
50
  var index_1 = require("./index");
51
- var typeClasses = {
52
- attention: 'progress-stepper__item--attention',
53
- information: 'progress-stepper__item--information',
54
- complete: 'progress-stepper__item--confirmation'
55
- };
56
51
  var typeIcons = {
57
52
  complete: 'stepperConfirmation',
58
- information: 'informationFilled',
59
- attention: 'attentionFilled'
53
+ attention: 'stepperAttention',
54
+ upcoming: 'stepperUpcoming',
55
+ active: 'stepperConfirmation'
60
56
  };
61
57
  var EbayProgressStep = function (_a) {
62
- var type = _a.type, current = _a.current, state = _a.state,
63
- /**
64
- * @deprecated Don't use number in v9+ (Skin 13+), left for backward-compatibility. TODO: remove in v10.
65
- */
66
- number = _a.number, children = _a.children, className = _a.className, rest = __rest(_a, ["type", "current", "state", "number", "children", "className"]);
58
+ var current = _a.current, _b = _a.state, state = _b === void 0 ? 'complete' : _b, children = _a.children, className = _a.className, rest = __rest(_a, ["current", "state", "children", "className"]);
67
59
  var childrenArray = react_1.Children.toArray(children);
68
60
  var title = childrenArray.find(function (child) { return child.type === index_1.EbayProgressTitle; });
69
61
  var text = childrenArray.filter(function (child) { return child.type !== index_1.EbayProgressTitle; });
70
- var stepClassNames = classnames_1.default(className, 'progress-stepper__item', typeClasses[type], { 'progress-stepper__item--current': current });
71
- var ariaLabel = number === undefined ? state : number.toString();
72
- var content = number === undefined ? null : number;
73
- var icon = typeIcons[type] || (current && 'stepperCurrent');
62
+ var stepClassNames = classnames_1.default(className, 'progress-stepper__item', { 'progress-stepper__item--attention': state === 'attention' });
63
+ var icon = typeIcons[state];
64
+ var ariaLabel = current ? 'current' : state;
74
65
  return (react_1.default.createElement("div", __assign({}, rest, { className: stepClassNames, role: "listitem", "aria-current": current ? 'step' : undefined }),
75
- react_1.default.createElement("div", { className: "progress-stepper__icon" }, icon ?
76
- react_1.default.createElement(ebay_icon_1.EbayIcon, { name: icon, height: "24", width: "24" }) :
77
- react_1.default.createElement("span", { role: "img", "aria-label": ariaLabel }, content)),
66
+ react_1.default.createElement("div", { className: "progress-stepper__icon" }, icon && react_1.default.createElement(ebay_icon_1.EbayIcon, { name: icon, height: "24", width: "24", "aria-label": ariaLabel })),
78
67
  react_1.default.createElement("div", { className: "progress-stepper__text" },
79
68
  title,
80
69
  text)));
@@ -1 +1 @@
1
- {"version":3,"file":"ebay-progress-stepper.d.ts","sourceRoot":"","sources":["../../src/ebay-progress-stepper/ebay-progress-stepper.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA0B,EAAE,EAA0B,SAAS,EAAE,MAAM,OAAO,CAAA;AAE5F,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAY,MAAM,SAAS,CAAA;AAG/D,aAAK,oBAAoB,GAAG;IACxB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAA;AAED,QAAA,MAAM,mBAAmB,EAAE,EAAE,CAAC,oBAAoB,CA6CjD,CAAA;AAQD,eAAe,mBAAmB,CAAA"}
1
+ {"version":3,"file":"ebay-progress-stepper.d.ts","sourceRoot":"","sources":["../../src/ebay-progress-stepper/ebay-progress-stepper.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA0B,EAAE,EAA0B,SAAS,EAAE,MAAM,OAAO,CAAA;AAE5F,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGrD,aAAK,oBAAoB,GAAG;IACxB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAA;AAED,QAAA,MAAM,mBAAmB,EAAE,EAAE,CAAC,oBAAoB,CAkCjD,CAAA;AAqBD,eAAe,mBAAmB,CAAA"}
@@ -49,29 +49,29 @@ var classnames_1 = __importDefault(require("classnames"));
49
49
  var EbayProgressStepper = function (_a) {
50
50
  var _b = _a.direction, direction = _b === void 0 ? 'row' : _b, _c = _a.defaultState, defaultState = _c === void 0 ? 'active' : _c, children = _a.children, className = _a.className, rest = __rest(_a, ["direction", "defaultState", "children", "className"]);
51
51
  var childrenArray = react_1.Children.toArray(children);
52
- var currentIndex = childrenArray.findIndex(function (child) { return child.props.current; });
52
+ var currentIndex = currentIndexByDefaultState(childrenArray, defaultState);
53
53
  return (react_1.default.createElement("div", __assign({}, rest, { className: classnames_1.default(className, 'progress-stepper', {
54
54
  'progress-stepper--vertical': direction === 'column'
55
55
  }) }),
56
- react_1.default.createElement("div", { role: "list", className: classnames_1.default('progress-stepper__items', {
57
- 'progress-stepper__items--upcoming': defaultState === 'upcoming'
58
- }) }, childrenArray.map(function (child, index) {
59
- var currentState = stepState(index, currentIndex);
60
- var stepTypes = {
61
- complete: 'complete',
62
- active: currentState === 'complete' ? 'complete' : undefined,
63
- upcoming: undefined
64
- };
65
- return (react_1.default.createElement(react_1.Fragment, { key: index },
66
- index > 0 && react_1.default.createElement("hr", { className: "progress-stepper__separator", role: "presentation" }),
67
- react_1.cloneElement(child, __assign({ type: stepTypes[defaultState], state: currentState }, child.props))));
68
- }))));
56
+ react_1.default.createElement("div", { role: "list", className: "progress-stepper__items" }, childrenArray.map(function (child, index) { return (react_1.default.createElement(react_1.Fragment, { key: index },
57
+ index > 0 && react_1.default.createElement("hr", { className: "progress-stepper__separator", role: "presentation" }),
58
+ react_1.cloneElement(child, __assign(__assign({ state: stepState(index, currentIndex) }, child.props), { current: currentIndex === index })))); }))));
69
59
  };
60
+ function currentIndexByDefaultState(steps, defaultState) {
61
+ var foundCurrentIndex = steps.findIndex(function (child) { return child.props.current; });
62
+ if (foundCurrentIndex === -1) {
63
+ // eslint-disable-next-line default-case
64
+ switch (defaultState) {
65
+ case 'complete': return steps.length - 1;
66
+ case 'upcoming': return 0;
67
+ }
68
+ }
69
+ return foundCurrentIndex;
70
+ }
70
71
  function stepState(stepIndex, currentIndex) {
71
- if (stepIndex < currentIndex)
72
+ if (stepIndex <= currentIndex)
72
73
  return 'complete';
73
74
  if (stepIndex > currentIndex)
74
75
  return 'upcoming';
75
- return 'active';
76
76
  }
77
77
  exports.default = EbayProgressStepper;
@@ -1,5 +1,5 @@
1
1
  export { default as EbayProgressStepper } from './ebay-progress-stepper';
2
2
  export { default as EbayProgressStep } from './ebay-progress-step';
3
3
  export { default as EbayProgressTitle } from './ebay-progress-title';
4
- export { StepperDirection, StepType, StepState } from './types';
4
+ export { StepperDirection, StepState } from './types';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-progress-stepper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-progress-stepper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA"}
@@ -1,4 +1,3 @@
1
1
  export declare type StepperDirection = 'column' | 'row';
2
- export declare type StepType = 'complete' | 'information' | 'attention';
3
- export declare type StepState = 'complete' | 'upcoming' | 'active';
2
+ export declare type StepState = 'complete' | 'upcoming' | 'attention' | 'active';
4
3
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-progress-stepper/types.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEhD,oBAAY,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,WAAW,CAAC;AAEhE,oBAAY,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-progress-stepper/types.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEhD,oBAAY,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC"}
@@ -41,7 +41,6 @@ Name | Type | Stateful | Required | Description
41
41
  --- | --- | --- | --- | ---
42
42
  `ctaText` | String | No | No | URL text. Optional content to be displayed next to title. `href` is required when using this attribute.
43
43
  `href` | String | No | No | URL. Title content and optional CTA content will link to this. Populating `cta-text` is optional.
44
- `size` | String | No | No | "small", "large", or "giant" (default: medium)
45
44
 
46
45
  ## Nested Components
47
46
  Name | Required | Description