glints-aries 4.0.316 → 4.0.318

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.
@@ -15,7 +15,7 @@ var buttonSizeStyleMap = {
15
15
  export var StyledButton = styled.button.withConfig({
16
16
  displayName: "ButtonStyle__StyledButton",
17
17
  componentId: "sc-8t0676-0"
18
- })(["display:flex;gap:8px;border-width:1px;border-style:solid;border-radius:", ";flex-direction:row;align-items:center;justify-content:center;flex:none;order:0;flex-grow:0;color:", ";background:", ";border-color:", ";box-shadow:", ";&:hover{cursor:pointer;background:", ";}&:focus{outline:none;border-color:", ";box-shadow:", ";}&:active{background:", ";border:1px solid ", ";box-shadow:", ";}&:active > svg{fill:", ";}&:disabled{color:", ";background:", ";pointer-events:none;}&:disabled svg{fill:", ";}", " svg{width:20px;height:20px;fill:", ";}.spinner-container{position:absolute;}&[data-active='true']{color:", ";background:", ";}&[data-full-width='true']{width:100%;}&[data-active='true'] svg{fill:", ";}&[data-loading='true']{background:", ";color:transparent;}&[data-loading='true'] svg{fill:transparent;}&[data-loading='true'] .spinner-container svg{fill:", ";position:static;}"], borderRadius4, Neutral.B18, Neutral.B100, Neutral.B68, button, Neutral.B99, Neutral.B68, buttonFocused, Neutral.B95, Neutral.B68, insetButtonPressed, Neutral.B40, Neutral.B68, Neutral.B95, Neutral.B85, function (_ref) {
18
+ })(["display:flex;gap:8px;border-width:1px;border-style:solid;border-radius:", ";flex-direction:row;align-items:center;justify-content:center;flex:none;order:0;flex-grow:0;color:", ";background:", ";border-color:", ";box-shadow:", ";&:hover{cursor:pointer;background:", ";}&:focus{outline:none;border-color:", ";box-shadow:", ";}&:active{background:", ";border:1px solid ", ";box-shadow:", ";}&:active > svg{fill:", ";}&:disabled{color:", ";background:", ";border-color:", ";pointer-events:none;}&:disabled svg{fill:", ";}", " svg{width:20px;height:20px;fill:", ";}.spinner-container{position:absolute;}&[data-active='true']{color:", ";background:", ";}&[data-full-width='true']{width:100%;}&[data-active='true'] svg{fill:", ";}&[data-loading='true']{background:", ";color:transparent;}&[data-loading='true'] svg{fill:transparent;}&[data-loading='true'] .spinner-container svg{fill:", ";position:static;}"], borderRadius4, Neutral.B18, Neutral.B100, Neutral.B68, button, Neutral.B99, Neutral.B68, buttonFocused, Neutral.B95, Neutral.B68, insetButtonPressed, Neutral.B40, Neutral.B68, Neutral.B95, Neutral.B95, Neutral.B85, function (_ref) {
19
19
  var _ref$size = _ref.size,
20
20
  size = _ref$size === void 0 ? 'default' : _ref$size;
21
21
  var sizeStyle = buttonSizeStyleMap[size];
@@ -25,6 +25,8 @@ export interface SelectProps {
25
25
  onSelect?({ value }: {
26
26
  value: string;
27
27
  }): void;
28
+ /** callback function when select component is clicked (opened) */
29
+ onSelectClick?: () => void;
28
30
  options?: Option[];
29
31
  /** sets whether OptionList will follow content's width */
30
32
  optionListFitContent?: boolean;
@@ -43,5 +45,5 @@ export interface SelectProps {
43
45
  /** sets z-index override for option list dropdown. z-index default to 400 */
44
46
  zIndexOverride?: number;
45
47
  }
46
- export declare const Select: ({ allowMultiple, customActivatorIcon, disabled, hasError, helpText, label, listHeight, loadingOptions, name, onClose, onRemoveTag, onSelect, optionListFitContent, options, placeholder, prefix, searchable, searchableProps, scrollable, sections, selectedValues, width, zIndexOverride, }: SelectProps) => JSX.Element;
48
+ export declare const Select: ({ allowMultiple, customActivatorIcon, disabled, hasError, helpText, label, listHeight, loadingOptions, name, onClose, onRemoveTag, onSelect, onSelectClick, optionListFitContent, options, placeholder, prefix, searchable, searchableProps, scrollable, sections, selectedValues, width, zIndexOverride, }: SelectProps) => JSX.Element;
47
49
  export {};
@@ -23,6 +23,7 @@ export var Select = function Select(_ref) {
23
23
  onClose = _ref.onClose,
24
24
  onRemoveTag = _ref.onRemoveTag,
25
25
  onSelect = _ref.onSelect,
26
+ onSelectClick = _ref.onSelectClick,
26
27
  _ref$optionListFitCon = _ref.optionListFitContent,
27
28
  optionListFitContent = _ref$optionListFitCon === void 0 ? false : _ref$optionListFitCon,
28
29
  _ref$options = _ref.options,
@@ -138,7 +139,8 @@ export var Select = function Select(_ref) {
138
139
  selectedValues: selectedValues,
139
140
  options: options,
140
141
  name: name,
141
- prefix: prefix
142
+ prefix: prefix,
143
+ onClick: onSelectClick
142
144
  });
143
145
  };
144
146
  return /*#__PURE__*/React.createElement(Popover, {
@@ -47,7 +47,7 @@ export var ActivatorSelect = function ActivatorSelect(_ref) {
47
47
  e.preventDefault();
48
48
  e.stopPropagation();
49
49
  onSelectClick();
50
- onClick;
50
+ onClick(e);
51
51
  };
52
52
  var placeholderMarkup = /*#__PURE__*/React.createElement(Typography, {
53
53
  variant: "body1",
@@ -22,7 +22,7 @@ var buttonSizeStyleMap = {
22
22
  var StyledButton = _styledComponents["default"].button.withConfig({
23
23
  displayName: "ButtonStyle__StyledButton",
24
24
  componentId: "sc-8t0676-0"
25
- })(["display:flex;gap:8px;border-width:1px;border-style:solid;border-radius:", ";flex-direction:row;align-items:center;justify-content:center;flex:none;order:0;flex-grow:0;color:", ";background:", ";border-color:", ";box-shadow:", ";&:hover{cursor:pointer;background:", ";}&:focus{outline:none;border-color:", ";box-shadow:", ";}&:active{background:", ";border:1px solid ", ";box-shadow:", ";}&:active > svg{fill:", ";}&:disabled{color:", ";background:", ";pointer-events:none;}&:disabled svg{fill:", ";}", " svg{width:20px;height:20px;fill:", ";}.spinner-container{position:absolute;}&[data-active='true']{color:", ";background:", ";}&[data-full-width='true']{width:100%;}&[data-active='true'] svg{fill:", ";}&[data-loading='true']{background:", ";color:transparent;}&[data-loading='true'] svg{fill:transparent;}&[data-loading='true'] .spinner-container svg{fill:", ";position:static;}"], _borderRadius.borderRadius4, _colors.Neutral.B18, _colors.Neutral.B100, _colors.Neutral.B68, _dropShadow.button, _colors.Neutral.B99, _colors.Neutral.B68, _dropShadow.buttonFocused, _colors.Neutral.B95, _colors.Neutral.B68, _dropShadow.insetButtonPressed, _colors.Neutral.B40, _colors.Neutral.B68, _colors.Neutral.B95, _colors.Neutral.B85, function (_ref) {
25
+ })(["display:flex;gap:8px;border-width:1px;border-style:solid;border-radius:", ";flex-direction:row;align-items:center;justify-content:center;flex:none;order:0;flex-grow:0;color:", ";background:", ";border-color:", ";box-shadow:", ";&:hover{cursor:pointer;background:", ";}&:focus{outline:none;border-color:", ";box-shadow:", ";}&:active{background:", ";border:1px solid ", ";box-shadow:", ";}&:active > svg{fill:", ";}&:disabled{color:", ";background:", ";border-color:", ";pointer-events:none;}&:disabled svg{fill:", ";}", " svg{width:20px;height:20px;fill:", ";}.spinner-container{position:absolute;}&[data-active='true']{color:", ";background:", ";}&[data-full-width='true']{width:100%;}&[data-active='true'] svg{fill:", ";}&[data-loading='true']{background:", ";color:transparent;}&[data-loading='true'] svg{fill:transparent;}&[data-loading='true'] .spinner-container svg{fill:", ";position:static;}"], _borderRadius.borderRadius4, _colors.Neutral.B18, _colors.Neutral.B100, _colors.Neutral.B68, _dropShadow.button, _colors.Neutral.B99, _colors.Neutral.B68, _dropShadow.buttonFocused, _colors.Neutral.B95, _colors.Neutral.B68, _dropShadow.insetButtonPressed, _colors.Neutral.B40, _colors.Neutral.B68, _colors.Neutral.B95, _colors.Neutral.B95, _colors.Neutral.B85, function (_ref) {
26
26
  var _ref$size = _ref.size,
27
27
  size = _ref$size === void 0 ? 'default' : _ref$size;
28
28
  var sizeStyle = buttonSizeStyleMap[size];
@@ -25,6 +25,8 @@ export interface SelectProps {
25
25
  onSelect?({ value }: {
26
26
  value: string;
27
27
  }): void;
28
+ /** callback function when select component is clicked (opened) */
29
+ onSelectClick?: () => void;
28
30
  options?: Option[];
29
31
  /** sets whether OptionList will follow content's width */
30
32
  optionListFitContent?: boolean;
@@ -43,5 +45,5 @@ export interface SelectProps {
43
45
  /** sets z-index override for option list dropdown. z-index default to 400 */
44
46
  zIndexOverride?: number;
45
47
  }
46
- export declare const Select: ({ allowMultiple, customActivatorIcon, disabled, hasError, helpText, label, listHeight, loadingOptions, name, onClose, onRemoveTag, onSelect, optionListFitContent, options, placeholder, prefix, searchable, searchableProps, scrollable, sections, selectedValues, width, zIndexOverride, }: SelectProps) => JSX.Element;
48
+ export declare const Select: ({ allowMultiple, customActivatorIcon, disabled, hasError, helpText, label, listHeight, loadingOptions, name, onClose, onRemoveTag, onSelect, onSelectClick, optionListFitContent, options, placeholder, prefix, searchable, searchableProps, scrollable, sections, selectedValues, width, zIndexOverride, }: SelectProps) => JSX.Element;
47
49
  export {};
@@ -29,6 +29,7 @@ var Select = function Select(_ref) {
29
29
  onClose = _ref.onClose,
30
30
  onRemoveTag = _ref.onRemoveTag,
31
31
  onSelect = _ref.onSelect,
32
+ onSelectClick = _ref.onSelectClick,
32
33
  _ref$optionListFitCon = _ref.optionListFitContent,
33
34
  optionListFitContent = _ref$optionListFitCon === void 0 ? false : _ref$optionListFitCon,
34
35
  _ref$options = _ref.options,
@@ -144,7 +145,8 @@ var Select = function Select(_ref) {
144
145
  selectedValues: selectedValues,
145
146
  options: options,
146
147
  name: name,
147
- prefix: prefix
148
+ prefix: prefix,
149
+ onClick: onSelectClick
148
150
  });
149
151
  };
150
152
  return /*#__PURE__*/_react["default"].createElement(_Popover.Popover, {
@@ -54,7 +54,7 @@ var ActivatorSelect = function ActivatorSelect(_ref) {
54
54
  e.preventDefault();
55
55
  e.stopPropagation();
56
56
  onSelectClick();
57
- onClick;
57
+ onClick(e);
58
58
  };
59
59
  var placeholderMarkup = /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
60
60
  variant: "body1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glints-aries",
3
- "version": "4.0.316",
3
+ "version": "4.0.318",
4
4
  "description": "Glints ui-kit for frontend",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",