glints-aries 4.0.251 → 4.0.252

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.
@@ -5,7 +5,7 @@ import React, { useEffect, useRef, useState } from 'react';
5
5
  import { Icon } from '../../../Icon';
6
6
  import { Typography } from '../../../Typography';
7
7
  import { Blue, Neutral } from '../../../utilities/colors';
8
- import { StyledSelect, StyledTag, TagsContainer } from './ActivatorStyle';
8
+ import { StyledSelect, StyledSelectTypography, StyledTag, TagsContainer } from './ActivatorStyle';
9
9
  export var ActivatorSelect = function ActivatorSelect(_ref) {
10
10
  var placeholder = _ref.placeholder,
11
11
  selectedValues = _ref.selectedValues,
@@ -76,9 +76,10 @@ export var ActivatorSelect = function ActivatorSelect(_ref) {
76
76
  onClick: handleClick,
77
77
  disabled: disabled,
78
78
  width: width
79
- }), allowMultiple ? tagsMarkup() : /*#__PURE__*/React.createElement(Typography, {
79
+ }), allowMultiple ? tagsMarkup() : /*#__PURE__*/React.createElement(StyledSelectTypography, {
80
80
  variant: "body1",
81
- color: disabled ? Neutral.B85 : Neutral.B40
81
+ "data-disabled": disabled,
82
+ color: hasSelectedValues ? Neutral.B18 : Neutral.B40
82
83
  }, hasSelectedValues ? selectedLabels[0] : placeholderMarkup), /*#__PURE__*/React.createElement(Icon, {
83
84
  height: 24,
84
85
  name: "ri-arrow-m-down-line",
@@ -7,3 +7,4 @@ export declare const StyledTextInput: import("styled-components").StyledComponen
7
7
  canClear?: boolean;
8
8
  onChange?: (value: string) => void;
9
9
  } & import("react").RefAttributes<HTMLInputElement>>, any, {}, never>;
10
+ export declare const StyledSelectTypography: import("styled-components").StyledComponent<({ as, children, variant, style, ...props }: import("../../../Typography").TypographyProps) => JSX.Element, any, {}, never>;
@@ -6,6 +6,7 @@ import { NotoSans } from '../../../utilities/fonts';
6
6
  import { space8 } from '../../../utilities/spacing';
7
7
  import { TextInput } from '../../../TextInput';
8
8
  import { Tag } from '../../../Tag';
9
+ import { Typography } from '../../../Typography';
9
10
  export var StyledSelect = styled.button.withConfig({
10
11
  displayName: "ActivatorStyle__StyledSelect",
11
12
  componentId: "sc-rui73p-0"
@@ -25,4 +26,8 @@ export var StyledTextInput = styled(TextInput).withConfig({
25
26
  componentId: "sc-rui73p-3"
26
27
  })(["width:", ";"], function (props) {
27
28
  return props.width;
28
- });
29
+ });
30
+ export var StyledSelectTypography = styled(Typography).withConfig({
31
+ displayName: "ActivatorStyle__StyledSelectTypography",
32
+ componentId: "sc-rui73p-4"
33
+ })(["&[data-disabled='true']{color:", ";}"], Neutral.B85);
@@ -83,9 +83,10 @@ var ActivatorSelect = function ActivatorSelect(_ref) {
83
83
  onClick: handleClick,
84
84
  disabled: disabled,
85
85
  width: width
86
- }), allowMultiple ? tagsMarkup() : /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
86
+ }), allowMultiple ? tagsMarkup() : /*#__PURE__*/_react["default"].createElement(_ActivatorStyle.StyledSelectTypography, {
87
87
  variant: "body1",
88
- color: disabled ? _colors.Neutral.B85 : _colors.Neutral.B40
88
+ "data-disabled": disabled,
89
+ color: hasSelectedValues ? _colors.Neutral.B18 : _colors.Neutral.B40
89
90
  }, hasSelectedValues ? selectedLabels[0] : placeholderMarkup), /*#__PURE__*/_react["default"].createElement(_Icon.Icon, {
90
91
  height: 24,
91
92
  name: "ri-arrow-m-down-line",
@@ -7,3 +7,4 @@ export declare const StyledTextInput: import("styled-components").StyledComponen
7
7
  canClear?: boolean;
8
8
  onChange?: (value: string) => void;
9
9
  } & import("react").RefAttributes<HTMLInputElement>>, any, {}, never>;
10
+ export declare const StyledSelectTypography: import("styled-components").StyledComponent<({ as, children, variant, style, ...props }: import("../../../Typography").TypographyProps) => JSX.Element, any, {}, never>;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
- exports.TagsContainer = exports.StyledTextInput = exports.StyledTag = exports.StyledSelect = void 0;
5
+ exports.TagsContainer = exports.StyledTextInput = exports.StyledTag = exports.StyledSelectTypography = exports.StyledSelect = void 0;
6
6
  var _styledComponents = _interopRequireDefault(require("styled-components"));
7
7
  var Breakpoints = _interopRequireWildcard(require("../../../utilities/breakpoints/Breakpoints"));
8
8
  var _borderRadius = require("../../../utilities/borderRadius");
@@ -11,6 +11,7 @@ var _fonts = require("../../../utilities/fonts");
11
11
  var _spacing = require("../../../utilities/spacing");
12
12
  var _TextInput = require("../../../TextInput");
13
13
  var _Tag = require("../../../Tag");
14
+ var _Typography = require("../../../Typography");
14
15
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
17
  var StyledSelect = _styledComponents["default"].button.withConfig({
@@ -36,4 +37,9 @@ var StyledTextInput = (0, _styledComponents["default"])(_TextInput.TextInput).wi
36
37
  })(["width:", ";"], function (props) {
37
38
  return props.width;
38
39
  });
39
- exports.StyledTextInput = StyledTextInput;
40
+ exports.StyledTextInput = StyledTextInput;
41
+ var StyledSelectTypography = (0, _styledComponents["default"])(_Typography.Typography).withConfig({
42
+ displayName: "ActivatorStyle__StyledSelectTypography",
43
+ componentId: "sc-rui73p-4"
44
+ })(["&[data-disabled='true']{color:", ";}"], _colors.Neutral.B85);
45
+ exports.StyledSelectTypography = StyledSelectTypography;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glints-aries",
3
- "version": "4.0.251",
3
+ "version": "4.0.252",
4
4
  "description": "Glints ui-kit for frontend",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",