@rescui/chip-list 0.11.1 → 0.11.3-RUI-226-Update-card-cn-6e43cc89.60

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.
@@ -4,59 +4,56 @@ import { useThemeWithUndefined } from '@rescui/ui-contexts';
4
4
  import { ChipListContext } from './chip-list-context.js';
5
5
  import styles from './chip-list.p.module.css.js';
6
6
  import { useItemsIds } from './use-items-ids.js';
7
- var STYLES_SIZES = {
7
+ const STYLES_SIZES = {
8
8
  xs: styles.sizeXs,
9
9
  s: styles.sizeS,
10
10
  m: styles.sizeM,
11
11
  l: styles.sizeL
12
12
  };
13
- var ALIGN_ITEMS_STYLES = {
13
+ const ALIGN_ITEMS_STYLES = {
14
14
  left: styles.alignLeft,
15
15
  center: styles.alignCenter,
16
16
  right: styles.alignRight
17
17
  };
18
18
 
19
19
  function ChipListBase(_ref) {
20
- var _ref$size = _ref.size,
21
- size = _ref$size === void 0 ? 'm' : _ref$size,
22
- _ref$sparse = _ref.sparse,
23
- sparse = _ref$sparse === void 0 ? false : _ref$sparse,
24
- _ref$compact = _ref.compact,
25
- compact = _ref$compact === void 0 ? false : _ref$compact,
26
- _ref$disabled = _ref.disabled,
27
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
28
- className = _ref.className,
29
- _ref$mode = _ref.mode,
30
- mode = _ref$mode === void 0 ? 'classic' : _ref$mode,
31
- _ref$alignItems = _ref.alignItems,
32
- alignItems = _ref$alignItems === void 0 ? 'left' : _ref$alignItems,
33
- themeFromProps = _ref.theme,
34
- value = _ref.value,
35
- onChange = _ref.onChange,
36
- compareValues = _ref.compareValues,
37
- children = _ref.children,
38
- e2eId = _ref['data-e2e'];
39
- var theme = useThemeWithUndefined(themeFromProps);
40
-
41
- var _useItemsIds = useItemsIds({
42
- children: children,
43
- compareValues: compareValues,
44
- value: value
45
- }),
46
- childrenWithValues = _useItemsIds.childrenWithValues,
47
- selectedIds = _useItemsIds.selectedIds;
48
-
20
+ let {
21
+ size = 'm',
22
+ sparse = false,
23
+ compact = false,
24
+ disabled = false,
25
+ className,
26
+ mode = 'classic',
27
+ alignItems = 'left',
28
+ theme: themeFromProps,
29
+ value,
30
+ onChange,
31
+ compareValues,
32
+ children,
33
+ ['data-e2e']: e2eId,
34
+ style
35
+ } = _ref;
36
+ const theme = useThemeWithUndefined(themeFromProps);
37
+ const {
38
+ childrenWithValues,
39
+ selectedIds
40
+ } = useItemsIds({
41
+ children,
42
+ compareValues,
43
+ value
44
+ });
49
45
  return /*#__PURE__*/React.createElement(ChipListContext.Provider, {
50
46
  value: {
51
- onChange: onChange,
52
- selectedIds: selectedIds,
53
- disabled: disabled
47
+ onChange,
48
+ selectedIds,
49
+ disabled
54
50
  }
55
51
  }, /*#__PURE__*/React.createElement("div", {
56
52
  className: cn(styles.main, styles[theme], styles[mode], STYLES_SIZES[size], sparse ? styles.innerOffsetL : styles.innerOffsetM, compact && styles.compact, disabled && styles.disabled, ALIGN_ITEMS_STYLES[alignItems], className),
57
- "data-e2e": e2eId ? "".concat(e2eId, "__chips-container") : null,
53
+ "data-e2e": e2eId ? `${e2eId}__chips-container` : null,
58
54
  "data-rs-internal": 'chip-list',
59
- "data-test": 'chip-list'
55
+ "data-test": 'chip-list',
56
+ style: style
60
57
  }, /*#__PURE__*/React.createElement("div", {
61
58
  className: styles.chipsContainer
62
59
  }, childrenWithValues)));
@@ -1,13 +1,11 @@
1
1
  import { createContext, useContext } from 'react';
2
- var ChipListContext = /*#__PURE__*/createContext({
2
+ const ChipListContext = /*#__PURE__*/createContext({
3
3
  // eslint-disable-next-line @typescript-eslint/no-empty-function
4
- onChange: function onChange() {},
4
+ onChange: () => {},
5
5
  selectedIds: [],
6
6
  disabled: false
7
7
  });
8
8
 
9
- var useChipListContext = function useChipListContext() {
10
- return useContext(ChipListContext);
11
- };
9
+ const useChipListContext = () => useContext(ChipListContext);
12
10
 
13
11
  export { ChipListContext, useChipListContext };
@@ -1,26 +1,26 @@
1
1
  var styles = {
2
- "light": "_light_5opd7e_8",
3
- "dark": "_dark_5opd7e_11",
4
- "alignLeft": "_alignLeft_5opd7e_15",
5
- "alignCenter": "_alignCenter_5opd7e_18",
6
- "alignRight": "_alignRight_5opd7e_21",
7
- "sizeXs": "_sizeXs_5opd7e_25",
8
- "sizeS": "_sizeS_5opd7e_28",
9
- "sizeM": "_sizeM_5opd7e_31",
10
- "sizeL": "_sizeL_5opd7e_34",
11
- "innerOffsetL": "_innerOffsetL_5opd7e_38",
12
- "innerOffsetM": "_innerOffsetM_5opd7e_41",
13
- "classic": "_classic_5opd7e_45",
14
- "rock": "_rock_5opd7e_48",
15
- "compact": "_compact_5opd7e_52",
16
- "main": "_main_5opd7e_56",
17
- "chipsContainer": "_chipsContainer_5opd7e_62",
18
- "alignIconLeft": "_alignIconLeft_5opd7e_72",
19
- "alignIconRight": "_alignIconRight_5opd7e_75",
20
- "chip": "_chip_5opd7e_62",
21
- "selected": "_selected_5opd7e_172",
22
- "disabled": "_disabled_5opd7e_179",
23
- "icon": "_icon_5opd7e_212",
24
- "withoutText": "_withoutText_5opd7e_223"
2
+ "light": "_light_ss5fh1_8",
3
+ "dark": "_dark_ss5fh1_11",
4
+ "alignLeft": "_alignLeft_ss5fh1_15",
5
+ "alignCenter": "_alignCenter_ss5fh1_18",
6
+ "alignRight": "_alignRight_ss5fh1_21",
7
+ "sizeXs": "_sizeXs_ss5fh1_25",
8
+ "sizeS": "_sizeS_ss5fh1_28",
9
+ "sizeM": "_sizeM_ss5fh1_31",
10
+ "sizeL": "_sizeL_ss5fh1_34",
11
+ "innerOffsetL": "_innerOffsetL_ss5fh1_38",
12
+ "innerOffsetM": "_innerOffsetM_ss5fh1_41",
13
+ "classic": "_classic_ss5fh1_45",
14
+ "rock": "_rock_ss5fh1_48",
15
+ "compact": "_compact_ss5fh1_52",
16
+ "main": "_main_ss5fh1_56",
17
+ "chipsContainer": "_chipsContainer_ss5fh1_62",
18
+ "alignIconLeft": "_alignIconLeft_ss5fh1_72",
19
+ "alignIconRight": "_alignIconRight_ss5fh1_75",
20
+ "chip": "_chip_ss5fh1_62",
21
+ "selected": "_selected_ss5fh1_172",
22
+ "disabled": "_disabled_ss5fh1_179",
23
+ "icon": "_icon_ss5fh1_212",
24
+ "withoutText": "_withoutText_ss5fh1_223"
25
25
  };
26
26
  export { styles as default };
package/lib/parts/chip.js CHANGED
@@ -1,98 +1,85 @@
1
- import "core-js/modules/es.object.to-string.js";
2
- import "core-js/modules/web.dom-collections.for-each.js";
3
- import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
4
- import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
5
- import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
6
- import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
7
- import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
8
- import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
9
- import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
- var _excluded = ["value", "className", "children", "icon", "iconPosition", "itemId", "onClick", "onKeyDown", "data-e2e"];
11
1
  import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
12
-
13
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
-
15
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
16
-
17
2
  import React, { forwardRef, cloneElement } from 'react';
18
3
  import PropTypes from 'prop-types';
19
4
  import cn from 'classnames';
20
5
  import styles from './chip-list.p.module.css.js';
21
6
  import { useChipListContext } from './chip-list-context.js';
22
- var ChipTag = /*#__PURE__*/forwardRef(function (props, ref) {
23
- var _useChipListContext = useChipListContext(),
24
- disabled = _useChipListContext.disabled;
7
+ const ChipTag = /*#__PURE__*/forwardRef((props, ref) => {
8
+ const {
9
+ disabled
10
+ } = useChipListContext();
25
11
 
26
12
  if (typeof props.href !== 'undefined') {
27
- return /*#__PURE__*/React.createElement("a", _objectSpread(_objectSpread({
28
- ref: ref
29
- }, props), {}, {
13
+ return /*#__PURE__*/React.createElement("a", {
14
+ ref: ref,
15
+ ...props,
30
16
  tabIndex: disabled ? -1 : props.tabIndex
31
- }), props.children);
17
+ }, props.children);
32
18
  }
33
19
 
34
- return /*#__PURE__*/React.createElement("button", _objectSpread(_objectSpread({
35
- ref: ref
36
- }, props), {}, {
20
+ return /*#__PURE__*/React.createElement("button", {
21
+ ref: ref,
22
+ ...props,
37
23
  disabled: disabled,
38
24
  type: "button"
39
- }), props.children);
25
+ }, props.children);
40
26
  });
41
27
  ChipTag.displayName = 'ChipTag'; // check for ignored jsx values and empty string, more info https://reactjs.org/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored
42
28
 
43
- var isWithoutChildren = function isWithoutChildren(children) {
44
- return children === null || typeof children === 'undefined' || children === false || children === true || children === '';
45
- };
46
-
47
- var Chip = /*#__PURE__*/forwardRef(function (_ref, ref) {
48
- var _cn, _restProps$tabIndex;
49
-
50
- var value = _ref.value,
51
- className = _ref.className,
52
- children = _ref.children,
53
- icon = _ref.icon,
54
- _ref$iconPosition = _ref.iconPosition,
55
- iconPosition = _ref$iconPosition === void 0 ? 'left' : _ref$iconPosition,
56
- itemId = _ref.itemId,
57
- _onClick = _ref.onClick,
58
- _onKeyDown = _ref.onKeyDown,
59
- e2eId = _ref['data-e2e'],
60
- restProps = _objectWithoutProperties(_ref, _excluded);
29
+ const isWithoutChildren = children => children === null || typeof children === 'undefined' || children === false || children === true || children === '';
61
30
 
62
- var _useChipListContext2 = useChipListContext(),
63
- onChange = _useChipListContext2.onChange,
64
- selectedIds = _useChipListContext2.selectedIds;
31
+ const Chip = /*#__PURE__*/forwardRef((_ref, ref) => {
32
+ let {
33
+ value,
34
+ className,
35
+ children,
36
+ icon,
37
+ iconPosition = 'left',
38
+ itemId,
39
+ onClick,
40
+ onKeyDown,
41
+ ['data-e2e']: e2eId,
42
+ ...restProps
43
+ } = _ref;
44
+ const {
45
+ onChange,
46
+ selectedIds
47
+ } = useChipListContext();
65
48
 
66
- var selected = _includesInstanceProperty(selectedIds).call(selectedIds, itemId);
49
+ const selected = _includesInstanceProperty(selectedIds).call(selectedIds, itemId);
67
50
 
68
- var isWithoutText = isWithoutChildren(children);
69
- return /*#__PURE__*/React.createElement(ChipTag, _objectSpread(_objectSpread({}, restProps), {}, {
70
- className: cn(styles.chip, (_cn = {}, _defineProperty(_cn, styles.selected, selected), _defineProperty(_cn, styles.withoutText, isWithoutText), _cn), iconPosition === 'right' ? styles.alignIconRight : styles.alignIconLeft, className),
71
- onClick: function onClick(e) {
72
- if (_onClick) {
73
- _onClick(e);
51
+ const isWithoutText = isWithoutChildren(children);
52
+ return /*#__PURE__*/React.createElement(ChipTag, { ...restProps,
53
+ className: cn(styles.chip, {
54
+ [styles.selected]: selected,
55
+ [styles.withoutText]: isWithoutText
56
+ }, iconPosition === 'right' ? styles.alignIconRight : styles.alignIconLeft, className),
57
+ onClick: e => {
58
+ if (onClick) {
59
+ onClick(e);
74
60
  }
75
61
 
76
62
  onChange(value);
77
63
  },
78
- onKeyDown: function onKeyDown(e) {
64
+ onKeyDown: e => {
79
65
  if (e.key === ' ') {
80
66
  e.target.click();
81
67
  e.preventDefault();
82
68
  }
83
69
 
84
- if (_onKeyDown) {
85
- _onKeyDown(e);
70
+ if (onKeyDown) {
71
+ onKeyDown(e);
86
72
  }
87
73
  },
88
74
  role: "tab",
89
- tabIndex: (_restProps$tabIndex = restProps.tabIndex) !== null && _restProps$tabIndex !== void 0 ? _restProps$tabIndex : 0,
75
+ tabIndex: restProps.tabIndex ?? 0,
90
76
  ref: ref,
91
77
  "data-e2e": e2eId,
92
- "data-test": "chip".concat(selected ? ' chip-selected' : ''),
78
+ "data-test": `chip${selected ? ' chip-selected' : ''}`,
93
79
  "data-rs-internal": 'chip-list__chip'
94
- }), icon && /*#__PURE__*/cloneElement(icon, {
95
- className: cn(icon.props.className, styles.icon)
80
+ }, icon && /*#__PURE__*/cloneElement(icon, {
81
+ className: cn(icon.props.className, styles.icon),
82
+ 'data-render-all-sizes': true
96
83
  }), !isWithoutText && /*#__PURE__*/React.createElement("span", null, children));
97
84
  });
98
85
  Chip.displayName = 'Chip';
@@ -1,12 +1,9 @@
1
- import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
2
1
  import React, { isValidElement, cloneElement } from 'react';
3
2
 
4
3
  function deepMap(children, fn) {
5
- var _context;
6
-
7
- var processChild = function processChild(child) {
8
- var i = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
9
- var returnChild = child;
4
+ const processChild = function (child) {
5
+ let i = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
6
+ let returnChild = child;
10
7
 
11
8
  if (! /*#__PURE__*/isValidElement(returnChild)) {
12
9
  return returnChild;
@@ -26,7 +23,7 @@ function deepMap(children, fn) {
26
23
  return processChild(children);
27
24
  }
28
25
 
29
- return _mapInstanceProperty(_context = React.Children).call(_context, children, processChild);
26
+ return React.Children.map(children, processChild);
30
27
  }
31
28
 
32
29
  export { deepMap };
@@ -1,47 +1,47 @@
1
- import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
- import "core-js/modules/es.object.to-string.js";
3
- import "core-js/modules/es.promise.js";
4
1
  import React, { useMemo, cloneElement } from 'react';
5
2
  import { deepMap } from './deep-map.js';
6
3
  import Chip from './chip.js';
7
4
 
8
5
  function patchItemIfNeeded(_ref) {
9
- var child = _ref.child,
10
- itemId = _ref.itemId,
11
- childValue = _ref.childValue;
6
+ let {
7
+ child,
8
+ itemId,
9
+ childValue
10
+ } = _ref;
12
11
  return /*#__PURE__*/cloneElement(child, {
13
- itemId: itemId,
12
+ itemId,
14
13
  value: childValue
15
14
  });
16
15
  }
17
16
 
18
- var hasElValue = function hasElValue(el) {
17
+ const hasElValue = el => {
19
18
  var _el$props, _el$props2;
20
19
 
21
20
  return ((_el$props = el.props) === null || _el$props === void 0 ? void 0 : _el$props.value) !== null && typeof ((_el$props2 = el.props) === null || _el$props2 === void 0 ? void 0 : _el$props2.value) !== 'undefined';
22
21
  };
23
22
 
24
- var useItemsIds = function useItemsIds(_ref2) {
25
- var children = _ref2.children,
26
- compareValues = _ref2.compareValues,
27
- value = _ref2.value;
28
-
29
- var _useMemo = useMemo(function () {
30
- var counter = 0;
31
- var currentSelectedItemIds = [];
32
- var items = deepMap(children, function (child) {
23
+ const useItemsIds = _ref2 => {
24
+ let {
25
+ children,
26
+ compareValues,
27
+ value
28
+ } = _ref2;
29
+ const [childrenWithValues, selectedIds] = useMemo(() => {
30
+ let counter = 0;
31
+ const currentSelectedItemIds = [];
32
+ const items = deepMap(children, child => {
33
33
  if (child.type === Chip) {
34
- var childValue = hasElValue(child) ? child.props.value : counter;
35
- var isSelectedItem = compareValues(value, childValue);
34
+ const childValue = hasElValue(child) ? child.props.value : counter;
35
+ const isSelectedItem = compareValues(value, childValue);
36
36
 
37
37
  if (isSelectedItem) {
38
38
  currentSelectedItemIds.push(counter);
39
39
  }
40
40
 
41
- var patchedItem = patchItemIfNeeded({
42
- child: child,
41
+ const patchedItem = patchItemIfNeeded({
42
+ child,
43
43
  itemId: counter,
44
- childValue: childValue
44
+ childValue
45
45
  });
46
46
  counter += 1;
47
47
  return patchedItem;
@@ -50,14 +50,10 @@ var useItemsIds = function useItemsIds(_ref2) {
50
50
  }
51
51
  });
52
52
  return [React.Children.toArray(items), currentSelectedItemIds];
53
- }, [children, value, compareValues]),
54
- _useMemo2 = _slicedToArray(_useMemo, 2),
55
- childrenWithValues = _useMemo2[0],
56
- selectedIds = _useMemo2[1];
57
-
53
+ }, [children, value, compareValues]);
58
54
  return {
59
- childrenWithValues: childrenWithValues,
60
- selectedIds: selectedIds
55
+ childrenWithValues,
56
+ selectedIds
61
57
  };
62
58
  };
63
59
 
@@ -44,7 +44,7 @@
44
44
  --_rs-cl-sparse-horizontal-gap:12px;
45
45
  }
46
46
  &:not(html) [data-rs-internal='chip-list__chip']{
47
- --_rs-typography-letter-spacing:0.0045em;
47
+ --_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
48
48
  --_rs-typography-text-transform:initial;
49
49
  --_rs-typography-font-variant-numeric:initial;
50
50
  --_rs-typography-font-family:var(
@@ -94,7 +94,7 @@
94
94
  --_rs-cl-sparse-horizontal-gap:12px;
95
95
  }
96
96
  &:not(html) [data-rs-internal='chip-list__chip']{
97
- --_rs-typography-letter-spacing:0.0045em;
97
+ --_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
98
98
  --_rs-typography-text-transform:initial;
99
99
  --_rs-typography-font-variant-numeric:initial;
100
100
  --_rs-typography-font-family:var(
@@ -144,7 +144,7 @@
144
144
  --_rs-cl-sparse-horizontal-gap:16px;
145
145
  }
146
146
  &:not(html) [data-rs-internal='chip-list__chip']{
147
- --_rs-typography-letter-spacing:0.0015em;
147
+ --_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
148
148
  --_rs-typography-text-transform:initial;
149
149
  --_rs-typography-font-variant-numeric:initial;
150
150
  --_rs-typography-font-family:var(
@@ -172,14 +172,17 @@
172
172
  --_rs-typography-text-auto-offset:16px;
173
173
  --_rs-typography-ul-list-li-padding-left:22px;
174
174
  --_rs-typography-ol-list-li-padding-left:26px;
175
- --_rs-typography-list-li-margin-top-from-text:16px;
175
+ --_rs-typography-list-li-margin-top-from-text:var(
176
+ --_rs-typography-text-2-sm-list-li-margin-top-from-text,
177
+ 16px
178
+ );
176
179
  --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
177
180
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
178
181
  --_rs-typography-link-border-bottom-width-from-text:1px;
179
182
  }
180
183
  @media screen and (max-width: 640px){
181
184
  &:not(html) [data-rs-internal='chip-list__chip']{
182
- --_rs-typography-list-li-margin-top-from-text:12px;
185
+ --_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
183
186
  }
184
187
  }
185
188
  }
@@ -204,7 +207,7 @@
204
207
  }
205
208
  }
206
209
  &:not(html) [data-rs-internal='chip-list__chip']{
207
- --_rs-typography-letter-spacing:normal;
210
+ --_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
208
211
  --_rs-typography-text-transform:initial;
209
212
  --_rs-typography-font-variant-numeric:initial;
210
213
  --_rs-typography-font-family:var(
@@ -232,14 +235,17 @@
232
235
  --_rs-typography-text-auto-offset:32px;
233
236
  --_rs-typography-ul-list-li-padding-left:26px;
234
237
  --_rs-typography-ol-list-li-padding-left:32px;
235
- --_rs-typography-list-li-margin-top-from-text:24px;
238
+ --_rs-typography-list-li-margin-top-from-text:var(
239
+ --_rs-typography-text-1-sm-list-li-margin-top-from-text,
240
+ 24px
241
+ );
236
242
  --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
237
243
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
238
244
  --_rs-typography-link-border-bottom-width-from-text:1px;
239
245
  }
240
246
  @media screen and (max-width: 640px){
241
247
  &:not(html) [data-rs-internal='chip-list__chip']{
242
- --_rs-typography-list-li-margin-top-from-text:16px;
248
+ --_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
243
249
  }
244
250
  }
245
251
  }
@@ -319,7 +325,7 @@
319
325
  --_rs-cl-sparse-horizontal-gap:12px;
320
326
  }
321
327
  &:not(html) [data-rs-internal='chip-list__chip']{
322
- --_rs-typography-letter-spacing:0.0045em;
328
+ --_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
323
329
  --_rs-typography-text-transform:initial;
324
330
  --_rs-typography-font-variant-numeric:initial;
325
331
  --_rs-typography-font-family:var(
@@ -369,7 +375,7 @@
369
375
  --_rs-cl-sparse-horizontal-gap:12px;
370
376
  }
371
377
  &:not(html) [data-rs-internal='chip-list__chip']{
372
- --_rs-typography-letter-spacing:0.0045em;
378
+ --_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
373
379
  --_rs-typography-text-transform:initial;
374
380
  --_rs-typography-font-variant-numeric:initial;
375
381
  --_rs-typography-font-family:var(
@@ -419,7 +425,7 @@
419
425
  --_rs-cl-sparse-horizontal-gap:16px;
420
426
  }
421
427
  &:not(html) [data-rs-internal='chip-list__chip']{
422
- --_rs-typography-letter-spacing:0.0015em;
428
+ --_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
423
429
  --_rs-typography-text-transform:initial;
424
430
  --_rs-typography-font-variant-numeric:initial;
425
431
  --_rs-typography-font-family:var(
@@ -447,14 +453,17 @@
447
453
  --_rs-typography-text-auto-offset:16px;
448
454
  --_rs-typography-ul-list-li-padding-left:22px;
449
455
  --_rs-typography-ol-list-li-padding-left:26px;
450
- --_rs-typography-list-li-margin-top-from-text:16px;
456
+ --_rs-typography-list-li-margin-top-from-text:var(
457
+ --_rs-typography-text-2-sm-list-li-margin-top-from-text,
458
+ 16px
459
+ );
451
460
  --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
452
461
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
453
462
  --_rs-typography-link-border-bottom-width-from-text:1px;
454
463
  }
455
464
  @media screen and (max-width: 640px){
456
465
  &:not(html) [data-rs-internal='chip-list__chip']{
457
- --_rs-typography-list-li-margin-top-from-text:12px;
466
+ --_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
458
467
  }
459
468
  }
460
469
  }
@@ -479,7 +488,7 @@
479
488
  }
480
489
  }
481
490
  &:not(html) [data-rs-internal='chip-list__chip']{
482
- --_rs-typography-letter-spacing:normal;
491
+ --_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
483
492
  --_rs-typography-text-transform:initial;
484
493
  --_rs-typography-font-variant-numeric:initial;
485
494
  --_rs-typography-font-family:var(
@@ -507,14 +516,17 @@
507
516
  --_rs-typography-text-auto-offset:32px;
508
517
  --_rs-typography-ul-list-li-padding-left:26px;
509
518
  --_rs-typography-ol-list-li-padding-left:32px;
510
- --_rs-typography-list-li-margin-top-from-text:24px;
519
+ --_rs-typography-list-li-margin-top-from-text:var(
520
+ --_rs-typography-text-1-sm-list-li-margin-top-from-text,
521
+ 24px
522
+ );
511
523
  --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
512
524
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
513
525
  --_rs-typography-link-border-bottom-width-from-text:1px;
514
526
  }
515
527
  @media screen and (max-width: 640px){
516
528
  &:not(html) [data-rs-internal='chip-list__chip']{
517
- --_rs-typography-list-li-margin-top-from-text:16px;
529
+ --_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
518
530
  }
519
531
  }
520
532
  }