glints-aries 4.0.262 → 4.0.263

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,4 +2,5 @@ import { MenuProps } from './Menu';
2
2
  export declare const StyledMenu: import("styled-components").StyledComponent<"ul", any, MenuProps, never>;
3
3
  export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export declare const ListContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const List: import("styled-components").StyledComponent<"li", any, {}, never>;
5
6
  export declare const StyledSections: import("styled-components").StyledComponent<"ul", any, {}, never>;
@@ -5,7 +5,7 @@ import { space16, space4, space8 } from '../utilities/spacing';
5
5
  export var StyledMenu = styled.ul.withConfig({
6
6
  displayName: "MenuStyle__StyledMenu",
7
7
  componentId: "sc-zm0l1a-0"
8
- })(["list-style:none;padding:0;margin:0;li{display:flex;height:44px;position:relative;align-items:center;padding:0 ", ";margin-bottom:", ";svg{height:24px;width:24px;}&:hover{background:", ";border-radius:", ";cursor:pointer;}&:focus{outline:none;background:rgba(255,255,255,0.001);border:2px solid ", ";border-radius:", ";}&[aria-disabled='true']{cursor:default;pointer-events:none;span{color:", ";}}&[data-active='true']{background:", ";border-radius:", ";cursor:default;::before{content:'';display:block;position:absolute;top:0;left:-", ";height:44px;width:3px;background-color:", ";border-radius:0px 4px 4px 0px;}&[data-multiple='true']{background:", ";::before{content:none;}}}}"], space8, space4, Neutral.B99, borderRadius4, Blue.S54, space4, Neutral.B85, Blue.S08, borderRadius4, space8, Blue.S99, Neutral.B100);
8
+ })(["list-style:none;padding:0;margin:0;li{display:flex;min-height:44px;position:relative;align-items:center;padding:0 ", ";margin-bottom:", ";svg{height:24px;width:24px;}&:hover{background:", ";border-radius:", ";cursor:pointer;}&:focus{outline:none;background:rgba(255,255,255,0.001);border:2px solid ", ";border-radius:", ";}&[aria-disabled='true']{cursor:default;pointer-events:none;span{color:", ";}}&[data-active='true']{background:", ";border-radius:", ";cursor:default;::before{content:'';display:block;position:absolute;top:0;left:-", ";height:44px;width:3px;background-color:", ";border-radius:0px 4px 4px 0px;}&[data-multiple='true']{background:", ";::before{content:none;}}}}"], space8, space4, Neutral.B99, borderRadius4, Blue.S54, space4, Neutral.B85, Blue.S08, borderRadius4, space8, Blue.S99, Neutral.B100);
9
9
  export var TitleContainer = styled.div.withConfig({
10
10
  displayName: "MenuStyle__TitleContainer",
11
11
  componentId: "sc-zm0l1a-1"
@@ -14,7 +14,11 @@ export var ListContainer = styled.div.withConfig({
14
14
  displayName: "MenuStyle__ListContainer",
15
15
  componentId: "sc-zm0l1a-2"
16
16
  })(["padding:0 ", ";"], space8);
17
+ export var List = styled.li.withConfig({
18
+ displayName: "MenuStyle__List",
19
+ componentId: "sc-zm0l1a-3"
20
+ })(["height:max-content;span{overflow:hidden;width:100%;}"]);
17
21
  export var StyledSections = styled.ul.withConfig({
18
22
  displayName: "MenuStyle__StyledSections",
19
- componentId: "sc-zm0l1a-3"
23
+ componentId: "sc-zm0l1a-4"
20
24
  })(["list-style:none;padding:0;margin:", " 0;"], space8);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ListContainer } from '../MenuStyle';
2
+ import { List, ListContainer } from '../MenuStyle';
3
3
  export var MenuOption = function MenuOption(_ref) {
4
4
  var children = _ref.children,
5
5
  disabled = _ref.disabled,
@@ -13,7 +13,7 @@ export var MenuOption = function MenuOption(_ref) {
13
13
  value: event.currentTarget.dataset.value
14
14
  });
15
15
  };
16
- return /*#__PURE__*/React.createElement(ListContainer, null, /*#__PURE__*/React.createElement("li", {
16
+ return /*#__PURE__*/React.createElement(ListContainer, null, /*#__PURE__*/React.createElement(List, {
17
17
  "aria-disabled": disabled,
18
18
  "data-active": isSelected,
19
19
  "data-multiple": allowMultiple,
@@ -7,6 +7,7 @@ export declare const WithErrorNonSearchable: any;
7
7
  export declare const NonSearchableDisabled: any;
8
8
  export declare const SearchableMultiSelect: any;
9
9
  export declare const SearchableSingleSelect: any;
10
+ export declare const SearchableSingleSelectWithOverflowingInputState: any;
10
11
  export declare const SearchableSingleWithInputState: any;
11
12
  export declare const AsyncSearchableSingleWithInputState: any;
12
13
  export declare const MultiSelectScrollable: any;
@@ -4,7 +4,7 @@ var _excluded = ["disabled", "error", "filterOptions", "onSelect", "placeholder"
4
4
  import React, { forwardRef, useEffect, useRef, useState } from 'react';
5
5
  import { StyledInput, StyledPrefixContainer } from '../../../Input/InputStyle';
6
6
  import { ClearSelected } from './ClearSelected';
7
- import { InputContainer, StyledContainer, StyledSelectedValue } from './SearchableSelectInputStyle';
7
+ import { InputContainer, StyledContainer, StyledSelected, StyledSelectedValue } from './SearchableSelectInputStyle';
8
8
  export var SearchableSelectInput = /*#__PURE__*/forwardRef(function SearchableSelectInput(_ref, ref) {
9
9
  var _ref$disabled = _ref.disabled,
10
10
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
@@ -111,7 +111,7 @@ export var SearchableSelectInput = /*#__PURE__*/forwardRef(function SearchableSe
111
111
  }, /*#__PURE__*/React.createElement(StyledPrefixContainer, null, prefix), showSelected && /*#__PURE__*/React.createElement(StyledSelectedValue, {
112
112
  className: "searchable-select",
113
113
  onClick: handleSelectedClick
114
- }, selectedValue), showInput && /*#__PURE__*/React.createElement(InputContainer, null, /*#__PURE__*/React.createElement(StyledInput, _extends({
114
+ }, /*#__PURE__*/React.createElement(StyledSelected, null, selectedValue)), showInput && /*#__PURE__*/React.createElement(InputContainer, null, /*#__PURE__*/React.createElement(StyledInput, _extends({
115
115
  ref: inputRef,
116
116
  onChange: handleInputChange,
117
117
  placeholder: showPlaceholder ? placeholder : null,
@@ -1,4 +1,5 @@
1
1
  export declare const StyledContainer: import("styled-components").StyledComponent<"div", any, import("../../../Input/Input").InputProps & import("../../../Input/InputStyle").PreffixSuffixWidthProps, never>;
2
+ export declare const StyledSelected: import("styled-components").StyledComponent<"span", any, {}, never>;
2
3
  export declare const StyledSelectedValue: import("styled-components").StyledComponent<"div", any, {}, never>;
3
4
  export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
5
  export declare const ClearSelectedContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -16,15 +16,19 @@ export var StyledContainer = styled(StyledInputContainer).withConfig({
16
16
  }, function (props) {
17
17
  return props.suffixWidth;
18
18
  }, Red.B93, Neutral.B85, Neutral.B95, Neutral.B85);
19
+ export var StyledSelected = styled.span.withConfig({
20
+ displayName: "SearchableSelectInputStyle__StyledSelected",
21
+ componentId: "sc-1oj168h-1"
22
+ })(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
19
23
  export var StyledSelectedValue = styled.div.withConfig({
20
24
  displayName: "SearchableSelectInputStyle__StyledSelectedValue",
21
- componentId: "sc-1oj168h-1"
25
+ componentId: "sc-1oj168h-2"
22
26
  })(["border:1px solid ", ";border-radius:", ";background:transparent;box-sizing:border-box;padding:0 12px;height:36px;display:flex;align-items:center;grid-column:1 / 1;grid-row:1 / 1;font-family:", ",sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:", ";@media (max-width:", "){font-size:14px;}"], Neutral.B68, borderRadius4, NotoSans, Neutral.B18, Breakpoints.large);
23
27
  export var InputContainer = styled.div.withConfig({
24
28
  displayName: "SearchableSelectInputStyle__InputContainer",
25
- componentId: "sc-1oj168h-2"
29
+ componentId: "sc-1oj168h-3"
26
30
  })(["grid-column:1 / 1;grid-row:1 / 1;"]);
27
31
  export var ClearSelectedContainer = styled(StyledSuffixContainer).withConfig({
28
32
  displayName: "SearchableSelectInputStyle__ClearSelectedContainer",
29
- componentId: "sc-1oj168h-3"
33
+ componentId: "sc-1oj168h-4"
30
34
  })(["z-index:2;"]);
@@ -2,4 +2,5 @@ import { MenuProps } from './Menu';
2
2
  export declare const StyledMenu: import("styled-components").StyledComponent<"ul", any, MenuProps, never>;
3
3
  export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export declare const ListContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const List: import("styled-components").StyledComponent<"li", any, {}, never>;
5
6
  export declare const StyledSections: import("styled-components").StyledComponent<"ul", any, {}, never>;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
- exports.TitleContainer = exports.StyledSections = exports.StyledMenu = exports.ListContainer = void 0;
5
+ exports.TitleContainer = exports.StyledSections = exports.StyledMenu = exports.ListContainer = exports.List = void 0;
6
6
  var _styledComponents = _interopRequireDefault(require("styled-components"));
7
7
  var _borderRadius = require("../utilities/borderRadius");
8
8
  var _colors = require("../utilities/colors");
@@ -10,7 +10,7 @@ var _spacing = require("../utilities/spacing");
10
10
  var StyledMenu = _styledComponents["default"].ul.withConfig({
11
11
  displayName: "MenuStyle__StyledMenu",
12
12
  componentId: "sc-zm0l1a-0"
13
- })(["list-style:none;padding:0;margin:0;li{display:flex;height:44px;position:relative;align-items:center;padding:0 ", ";margin-bottom:", ";svg{height:24px;width:24px;}&:hover{background:", ";border-radius:", ";cursor:pointer;}&:focus{outline:none;background:rgba(255,255,255,0.001);border:2px solid ", ";border-radius:", ";}&[aria-disabled='true']{cursor:default;pointer-events:none;span{color:", ";}}&[data-active='true']{background:", ";border-radius:", ";cursor:default;::before{content:'';display:block;position:absolute;top:0;left:-", ";height:44px;width:3px;background-color:", ";border-radius:0px 4px 4px 0px;}&[data-multiple='true']{background:", ";::before{content:none;}}}}"], _spacing.space8, _spacing.space4, _colors.Neutral.B99, _borderRadius.borderRadius4, _colors.Blue.S54, _spacing.space4, _colors.Neutral.B85, _colors.Blue.S08, _borderRadius.borderRadius4, _spacing.space8, _colors.Blue.S99, _colors.Neutral.B100);
13
+ })(["list-style:none;padding:0;margin:0;li{display:flex;min-height:44px;position:relative;align-items:center;padding:0 ", ";margin-bottom:", ";svg{height:24px;width:24px;}&:hover{background:", ";border-radius:", ";cursor:pointer;}&:focus{outline:none;background:rgba(255,255,255,0.001);border:2px solid ", ";border-radius:", ";}&[aria-disabled='true']{cursor:default;pointer-events:none;span{color:", ";}}&[data-active='true']{background:", ";border-radius:", ";cursor:default;::before{content:'';display:block;position:absolute;top:0;left:-", ";height:44px;width:3px;background-color:", ";border-radius:0px 4px 4px 0px;}&[data-multiple='true']{background:", ";::before{content:none;}}}}"], _spacing.space8, _spacing.space4, _colors.Neutral.B99, _borderRadius.borderRadius4, _colors.Blue.S54, _spacing.space4, _colors.Neutral.B85, _colors.Blue.S08, _borderRadius.borderRadius4, _spacing.space8, _colors.Blue.S99, _colors.Neutral.B100);
14
14
  exports.StyledMenu = StyledMenu;
15
15
  var TitleContainer = _styledComponents["default"].div.withConfig({
16
16
  displayName: "MenuStyle__TitleContainer",
@@ -22,8 +22,13 @@ var ListContainer = _styledComponents["default"].div.withConfig({
22
22
  componentId: "sc-zm0l1a-2"
23
23
  })(["padding:0 ", ";"], _spacing.space8);
24
24
  exports.ListContainer = ListContainer;
25
+ var List = _styledComponents["default"].li.withConfig({
26
+ displayName: "MenuStyle__List",
27
+ componentId: "sc-zm0l1a-3"
28
+ })(["height:max-content;span{overflow:hidden;width:100%;}"]);
29
+ exports.List = List;
25
30
  var StyledSections = _styledComponents["default"].ul.withConfig({
26
31
  displayName: "MenuStyle__StyledSections",
27
- componentId: "sc-zm0l1a-3"
32
+ componentId: "sc-zm0l1a-4"
28
33
  })(["list-style:none;padding:0;margin:", " 0;"], _spacing.space8);
29
34
  exports.StyledSections = StyledSections;
@@ -18,7 +18,7 @@ var MenuOption = function MenuOption(_ref) {
18
18
  value: event.currentTarget.dataset.value
19
19
  });
20
20
  };
21
- return /*#__PURE__*/_react["default"].createElement(_MenuStyle.ListContainer, null, /*#__PURE__*/_react["default"].createElement("li", {
21
+ return /*#__PURE__*/_react["default"].createElement(_MenuStyle.ListContainer, null, /*#__PURE__*/_react["default"].createElement(_MenuStyle.List, {
22
22
  "aria-disabled": disabled,
23
23
  "data-active": isSelected,
24
24
  "data-multiple": allowMultiple,
@@ -7,6 +7,7 @@ export declare const WithErrorNonSearchable: any;
7
7
  export declare const NonSearchableDisabled: any;
8
8
  export declare const SearchableMultiSelect: any;
9
9
  export declare const SearchableSingleSelect: any;
10
+ export declare const SearchableSingleSelectWithOverflowingInputState: any;
10
11
  export declare const SearchableSingleWithInputState: any;
11
12
  export declare const AsyncSearchableSingleWithInputState: any;
12
13
  export declare const MultiSelectScrollable: any;
@@ -118,7 +118,7 @@ var SearchableSelectInput = /*#__PURE__*/(0, _react.forwardRef)(function Searcha
118
118
  }, /*#__PURE__*/_react["default"].createElement(_InputStyle.StyledPrefixContainer, null, prefix), showSelected && /*#__PURE__*/_react["default"].createElement(_SearchableSelectInputStyle.StyledSelectedValue, {
119
119
  className: "searchable-select",
120
120
  onClick: handleSelectedClick
121
- }, selectedValue), showInput && /*#__PURE__*/_react["default"].createElement(_SearchableSelectInputStyle.InputContainer, null, /*#__PURE__*/_react["default"].createElement(_InputStyle.StyledInput, (0, _extends2["default"])({
121
+ }, /*#__PURE__*/_react["default"].createElement(_SearchableSelectInputStyle.StyledSelected, null, selectedValue)), showInput && /*#__PURE__*/_react["default"].createElement(_SearchableSelectInputStyle.InputContainer, null, /*#__PURE__*/_react["default"].createElement(_InputStyle.StyledInput, (0, _extends2["default"])({
122
122
  ref: inputRef,
123
123
  onChange: handleInputChange,
124
124
  placeholder: showPlaceholder ? placeholder : null,
@@ -1,4 +1,5 @@
1
1
  export declare const StyledContainer: import("styled-components").StyledComponent<"div", any, import("../../../Input/Input").InputProps & import("../../../Input/InputStyle").PreffixSuffixWidthProps, never>;
2
+ export declare const StyledSelected: import("styled-components").StyledComponent<"span", any, {}, never>;
2
3
  export declare const StyledSelectedValue: import("styled-components").StyledComponent<"div", any, {}, never>;
3
4
  export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
5
  export declare const ClearSelectedContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
- exports.StyledSelectedValue = exports.StyledContainer = exports.InputContainer = exports.ClearSelectedContainer = void 0;
5
+ exports.StyledSelectedValue = exports.StyledSelected = exports.StyledContainer = exports.InputContainer = exports.ClearSelectedContainer = void 0;
6
6
  var _styledComponents = _interopRequireDefault(require("styled-components"));
7
7
  var Breakpoints = _interopRequireWildcard(require("../../../utilities/breakpoints"));
8
8
  var _colors = require("../../../utilities/colors");
@@ -24,18 +24,23 @@ var StyledContainer = (0, _styledComponents["default"])(_InputStyle.StyledContai
24
24
  return props.suffixWidth;
25
25
  }, _colors.Red.B93, _colors.Neutral.B85, _colors.Neutral.B95, _colors.Neutral.B85);
26
26
  exports.StyledContainer = StyledContainer;
27
+ var StyledSelected = _styledComponents["default"].span.withConfig({
28
+ displayName: "SearchableSelectInputStyle__StyledSelected",
29
+ componentId: "sc-1oj168h-1"
30
+ })(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
31
+ exports.StyledSelected = StyledSelected;
27
32
  var StyledSelectedValue = _styledComponents["default"].div.withConfig({
28
33
  displayName: "SearchableSelectInputStyle__StyledSelectedValue",
29
- componentId: "sc-1oj168h-1"
34
+ componentId: "sc-1oj168h-2"
30
35
  })(["border:1px solid ", ";border-radius:", ";background:transparent;box-sizing:border-box;padding:0 12px;height:36px;display:flex;align-items:center;grid-column:1 / 1;grid-row:1 / 1;font-family:", ",sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:", ";@media (max-width:", "){font-size:14px;}"], _colors.Neutral.B68, _borderRadius.borderRadius4, _fonts.NotoSans, _colors.Neutral.B18, Breakpoints.large);
31
36
  exports.StyledSelectedValue = StyledSelectedValue;
32
37
  var InputContainer = _styledComponents["default"].div.withConfig({
33
38
  displayName: "SearchableSelectInputStyle__InputContainer",
34
- componentId: "sc-1oj168h-2"
39
+ componentId: "sc-1oj168h-3"
35
40
  })(["grid-column:1 / 1;grid-row:1 / 1;"]);
36
41
  exports.InputContainer = InputContainer;
37
42
  var ClearSelectedContainer = (0, _styledComponents["default"])(_InputStyle.StyledSuffixContainer).withConfig({
38
43
  displayName: "SearchableSelectInputStyle__ClearSelectedContainer",
39
- componentId: "sc-1oj168h-3"
44
+ componentId: "sc-1oj168h-4"
40
45
  })(["z-index:2;"]);
41
46
  exports.ClearSelectedContainer = ClearSelectedContainer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glints-aries",
3
- "version": "4.0.262",
3
+ "version": "4.0.263",
4
4
  "description": "Glints ui-kit for frontend",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",