@ebay/ui-core-react 5.3.1 → 5.4.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.
@@ -1,6 +1,7 @@
1
1
  import { FC, RefObject, ReactNode, ComponentProps } from 'react';
2
2
  declare type InputRef = RefObject<HTMLSelectElement | HTMLTextAreaElement | HTMLInputElement> | any;
3
3
  declare type FloatingLabelHookProps = {
4
+ type?: string;
4
5
  inputId?: string;
5
6
  ref?: InputRef;
6
7
  disabled?: boolean;
@@ -23,6 +24,6 @@ declare type FloatingLabelHookReturn = {
23
24
  ref: InputRef;
24
25
  placeholder: string;
25
26
  };
26
- export declare function useFloatingLabel({ ref, inputId, className, disabled, label, inputSize, inputValue, placeholder, invalid, opaqueLabel, onMount }: FloatingLabelHookProps): FloatingLabelHookReturn;
27
+ export declare function useFloatingLabel({ ref, inputId, className, disabled, label, inputSize, inputValue, placeholder, invalid, opaqueLabel, type, onMount }: FloatingLabelHookProps): FloatingLabelHookReturn;
27
28
  export {};
28
29
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +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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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;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,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,EACP,WAAW,EACX,IAAI,EACJ,OAAkB,EACrB,EAAG,sBAAsB,GAAG,uBAAuB,CA6EnD"}
@@ -60,7 +60,7 @@ var getPlaceholder = function (element) {
60
60
  };
61
61
  function useFloatingLabel(_a) {
62
62
  var _b;
63
- var ref = _a.ref, inputId = _a.inputId, className = _a.className, disabled = _a.disabled, label = _a.label, inputSize = _a.inputSize, inputValue = _a.inputValue, placeholder = _a.placeholder, invalid = _a.invalid, opaqueLabel = _a.opaqueLabel, _c = _a.onMount, onMount = _c === void 0 ? function () { } : _c;
63
+ var ref = _a.ref, inputId = _a.inputId, className = _a.className, disabled = _a.disabled, label = _a.label, inputSize = _a.inputSize, inputValue = _a.inputValue, placeholder = _a.placeholder, invalid = _a.invalid, opaqueLabel = _a.opaqueLabel, type = _a.type, _c = _a.onMount, onMount = _c === void 0 ? function () { } : _c;
64
64
  var _internalInputRef = react_1.useRef(null);
65
65
  var inputRef = function () { return ref || _internalInputRef; };
66
66
  var _d = react_1.useState(Boolean(inputValue)), isFloating = _d[0], setFloating = _d[1];
@@ -99,7 +99,7 @@ function useFloatingLabel(_a) {
99
99
  var labelClassName = classnames_1.default(className, classPrefix, (_b = {},
100
100
  _b[classPrefix + "--disabled"] = disabled,
101
101
  _b[classPrefix + "--animate"] = shouldAnimate,
102
- _b[classPrefix + "--inline"] = !isFloating,
102
+ _b[classPrefix + "--inline"] = !isFloating && type !== 'date',
103
103
  _b[classPrefix + "--invalid"] = invalid,
104
104
  _b));
105
105
  var floatingLabelClassName = classnames_1.default("floating-label", {
@@ -25,21 +25,24 @@ yarn add @ebay/ui-core-react
25
25
 
26
26
  ## Attributes
27
27
 
28
- Name | Type | Stateful | Description
29
- --- | --- | --- | ---
30
- `value` | String | No |
31
- `aria-disabled` | boolean | No | Set to true if the field is disabled
32
- `aria-invalid` | boolean | No | Set to true if the field is invalid
33
- `fluid` | boolean | No | To make the listbox fluid
34
- `borderless` | boolean | No | To make the listbox borderless
35
- `maxHeight` | string | No | example: 100px, 200px, 10rem
36
- `prefixId` | string | No | The id of an external element to use as the a11y prefix label for the listbox button.
37
- `floatingLabel` | string | No | Indicates that the listbox is a floating label type and renders it with a label
28
+ | Name | Type | Required | Description |
29
+ |------------------|---------|----------|---------------------------------------------------------------------------------------------------------|
30
+ | `value` | string | No | Allows you to set the selected option to the one with `value` |
31
+ | `selected` | number | No | Allows you to set the selected index option to `selected` |
32
+ | `aria-disabled` | boolean | No | Set to true if the field is disabled |
33
+ | `aria-invalid` | boolean | No | Set to true if the field is invalid |
34
+ | `fluid` | boolean | No | To make the listbox fluid |
35
+ | `borderless` | boolean | No | To make the listbox borderless |
36
+ | `maxHeight` | string | No | example: 100px, 200px, 10rem |
37
+ | `prefixId` | string | No | The id of an external element to use as the a11y prefix label for the listbox button. |
38
+ | `prefixLabel` | string | No | The label to add before selected option on the button. Cannot be used with `prefixId` |
39
+ | `floatingLabel` | string | No | Indicates that the listbox is a floating label type and renders it with a label |
40
+ | `unselectedText` | string | No | The text to be shown when no options are selected. Default is '-'. Cannot be used with `floating-label` |
38
41
 
39
42
  ## Callbacks
40
43
 
41
- | Name | Type | Required | Description | Data |
42
- |------------|----------|----------|-----------------------|------------------------------------------------------------------------------|
43
- | `onChange` | Function | No | triggered on change | `(ChangeEvent, { index: number, selected: string[] , wasClicked: boolean })` |
44
- | `onCollapse` | Function | No | triggered on collapse | `()` |
45
- | `onExpand` | Function | No | triggered on expand | `()` |
44
+ | Name | Type | Required | Description | Data |
45
+ |--------------|----------|----------|-----------------------|------------------------------------------------------------------------------|
46
+ | `onChange` | Function | No | triggered on change | `(ChangeEvent, { index: number, selected: string[] , wasClicked: boolean })` |
47
+ | `onCollapse` | Function | No | triggered on collapse | `()` |
48
+ | `onExpand` | Function | No | triggered on expand | `()` |
@@ -6,11 +6,14 @@ export declare type ChangeEventProps = {
6
6
  wasClicked: boolean;
7
7
  };
8
8
  export declare type EbayListboxButtonProps = Omit<ComponentProps<'input'>, 'onChange'> & {
9
+ selected?: number;
9
10
  borderless?: boolean;
10
11
  fluid?: boolean;
11
12
  maxHeight?: string;
12
13
  prefixId?: string;
14
+ prefixLabel?: string;
13
15
  floatingLabel?: string;
16
+ unselectedText?: string;
14
17
  onChange?: EbayChangeEventHandler<HTMLButtonElement, ChangeEventProps>;
15
18
  onCollapse?: () => void;
16
19
  onExpand?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"listbox-button.d.ts","sourceRoot":"","sources":["../../src/ebay-listbox-button/listbox-button.tsx"],"names":[],"mappings":"AAAA,OAAc,EAEV,cAAc,EAAE,EAAE,EACrB,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,sBAAsB,EAAO,MAAM,6BAA6B,CAAA;AAIzE,oBAAY,gBAAgB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,O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AAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,sBAAsB,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;IACvE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB,CAAA;AAED,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,sBAAsB,CA6R7C,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -50,7 +50,7 @@ var ebay_icon_1 = require("../ebay-icon");
50
50
  var component_utils_1 = require("../common/component-utils");
51
51
  var listbox_button_option_1 = __importDefault(require("./listbox-button-option"));
52
52
  var ListboxButton = function (_a) {
53
- var children = _a.children, name = _a.name, value = _a.value, borderless = _a.borderless, fluid = _a.fluid, className = _a.className, maxHeight = _a.maxHeight, prefixId = _a.prefixId, floatingLabel = _a.floatingLabel, _b = _a.onChange, onChange = _b === void 0 ? function () { } : _b, _c = _a.onCollapse, onCollapse = _c === void 0 ? function () { } : _c, _d = _a.onExpand, onExpand = _d === void 0 ? function () { } : _d, rest = __rest(_a, ["children", "name", "value", "borderless", "fluid", "className", "maxHeight", "prefixId", "floatingLabel", "onChange", "onCollapse", "onExpand"]);
53
+ var children = _a.children, name = _a.name, value = _a.value, selected = _a.selected, borderless = _a.borderless, fluid = _a.fluid, className = _a.className, maxHeight = _a.maxHeight, prefixId = _a.prefixId, prefixLabel = _a.prefixLabel, floatingLabel = _a.floatingLabel, _b = _a.unselectedText, unselectedText = _b === void 0 ? '-' : _b, _c = _a.onChange, onChange = _c === void 0 ? function () { } : _c, _d = _a.onCollapse, onCollapse = _d === void 0 ? function () { } : _d, _e = _a.onExpand, onExpand = _e === void 0 ? function () { } : _e, rest = __rest(_a, ["children", "name", "value", "selected", "borderless", "fluid", "className", "maxHeight", "prefixId", "prefixLabel", "floatingLabel", "unselectedText", "onChange", "onCollapse", "onExpand"]);
54
54
  var optionsContainerRef = react_1.useRef(null);
55
55
  var optionsParentContainerRef = react_1.useRef();
56
56
  var optionsByIndexRef = react_1.useRef(new Map());
@@ -60,26 +60,26 @@ var ListboxButton = function (_a) {
60
60
  throw new Error("EbayListboxButton: Please use a\n EbayListboxButtonOption that defines the options of the listbox");
61
61
  }
62
62
  var getInitialSelectedOption = function () {
63
- var selectedIndex = listBoxButtonOptions.findIndex(function (_a) {
63
+ var selectedIndex = selected !== undefined ? selected : listBoxButtonOptions.findIndex(function (_a) {
64
64
  var props = _a.props;
65
- return props.value === value;
65
+ return value !== undefined && props.value === value;
66
66
  });
67
- var index = selectedIndex > -1 || floatingLabel ? selectedIndex : 0;
67
+ var index = selectedIndex > -1 || floatingLabel ? selectedIndex : undefined;
68
68
  return {
69
69
  option: listBoxButtonOptions[index],
70
70
  index: index
71
71
  };
72
72
  };
73
73
  // Get the default Selected value and set it in the state
74
- var _e = getInitialSelectedOption(), selectedOptionFromValue = _e.option, initialSelectedOptionIndex = _e.index;
74
+ var _f = getInitialSelectedOption(), selectedOptionFromValue = _f.option, initialSelectedOptionIndex = _f.index;
75
75
  // Update the selected option to the state
76
- var _f = react_1.useState(selectedOptionFromValue), selectedOption = _f[0], setSelectedOption = _f[1];
77
- var _g = react_1.useState(initialSelectedOptionIndex), selectedIndex = _g[0], setSelectedIndex = _g[1];
76
+ var _g = react_1.useState(selectedOptionFromValue), selectedOption = _g[0], setSelectedOption = _g[1];
77
+ var _h = react_1.useState(initialSelectedOptionIndex), selectedIndex = _h[0], setSelectedIndex = _h[1];
78
78
  // Update the expanded status to the state
79
- var _h = react_1.useState(), expanded = _h[0], setExpanded = _h[1];
79
+ var _j = react_1.useState(), expanded = _j[0], setExpanded = _j[1];
80
80
  // Additional flag to avoid multiple re-render when users tries to open and close
81
- var _j = react_1.useState(false), optionsOpened = _j[0], setOptionsOpened = _j[1];
82
- var _k = react_1.useState(), wasClicked = _k[0], setWasClicked = _k[1];
81
+ var _k = react_1.useState(false), optionsOpened = _k[0], setOptionsOpened = _k[1];
82
+ var _l = react_1.useState(), wasClicked = _l[0], setWasClicked = _l[1];
83
83
  react_1.useEffect(function () {
84
84
  setSelectedOption(selectedOptionFromValue);
85
85
  }, [value]);
@@ -233,14 +233,15 @@ var ListboxButton = function (_a) {
233
233
  'btn--floating-label': floatingLabel && selectedOption
234
234
  });
235
235
  var expandBtnTextId = prefixId && 'expand-btn-text';
236
+ var buttonLabel = floatingLabel ? (react_1.default.createElement("span", { className: "btn__floating-label" }, floatingLabel)) : (react_1.default.createElement(react_1.default.Fragment, null,
237
+ prefixLabel && react_1.default.createElement("span", { className: "btn__label" }, prefixLabel),
238
+ react_1.default.createElement("span", { className: "btn__text", id: expandBtnTextId }, (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.props.children) || unselectedText)));
236
239
  return (react_1.default.createElement("span", { className: wrapperClassName },
237
240
  react_1.default.createElement("button", __assign({}, rest, { type: "button", className: buttonClassName, "aria-expanded": !!expanded, "aria-haspopup": "listbox", "aria-labelledby": prefixId && prefixId + " " + expandBtnTextId, onClick: onButtonClick,
238
241
  // https://stackoverflow.com/questions/17769005/onclick-and-onblur-ordering-issue
239
242
  onMouseDown: function (e) { return e.preventDefault(); }, onKeyUp: onButtonKeyup, ref: buttonRef }),
240
243
  react_1.default.createElement("span", { className: "btn__cell" },
241
- floatingLabel ? (react_1.default.createElement("span", { className: "btn__floating-label" }, floatingLabel)) : null,
242
- selectedOption &&
243
- react_1.default.createElement("span", { className: "btn__text", id: expandBtnTextId }, selectedOption.props.children),
244
+ buttonLabel,
244
245
  react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "chevronDown16" }))),
245
246
  (expanded || optionsOpened) &&
246
247
  react_1.default.createElement("div", { className: "listbox-button__listbox", ref: optionsParentContainerRef, style: { maxHeight: maxHeight } },
@@ -1 +1 @@
1
- {"version":3,"file":"textbox.d.ts","sourceRoot":"","sources":["../../src/ebay-textbox/textbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACI,cAAc,EAAM,G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ueLabel: opaqueLabel,
68
69
  onMount: onFloatingLabelInit
69
70
  }), label = _s.label, Container = _s.Container, onFloatingLabelBlur = _s.onBlur, onFloatingLabelFocus = _s.onFocus, ref = _s.ref, floatingLabelPlaceholder = _s.placeholder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebay/ui-core-react",
3
- "version": "5.3.1",
3
+ "version": "5.4.1",
4
4
  "description": "Skin components build off React",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"