@salutejs/plasma-web 1.504.2-canary.1732.13047023818.0 → 1.505.0-canary.1719.13031725630.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -131,13 +131,15 @@ import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components'
131
131
  import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
132
132
  import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
133
133
  import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
134
- import { DropdownItemOption } from '@salutejs/plasma-new-hope';
134
+ import type { DropdownItemOption } from '@salutejs/plasma-new-hope';
135
135
  import { DropdownItemProps } from '@salutejs/plasma-hope';
136
136
  import { DropdownItem as DropdownItemType } from '@salutejs/plasma-hope';
137
137
  import type { DropdownNewProps } from '@salutejs/plasma-new-hope';
138
+ import type { DropdownNodeSelect } from '@salutejs/plasma-new-hope';
138
139
  import { DropdownNodeType } from '@salutejs/plasma-hope';
139
140
  import { DropdownPlacement } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
140
141
  import { DropdownPopupProps } from '@salutejs/plasma-hope';
142
+ import { DropdownProps } from '@salutejs/plasma-new-hope/styled-components';
141
143
  import { DropdownTrigger } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
142
144
  import { dropzoneClasses } from '@salutejs/plasma-new-hope/styled-components';
143
145
  import { dropzoneTokens } from '@salutejs/plasma-new-hope/styled-components';
@@ -269,9 +271,9 @@ import { SegmentItemProps } from '@salutejs/plasma-new-hope/styled-components';
269
271
  import { SegmentProvider } from '@salutejs/plasma-new-hope/styled-components';
270
272
  import { SegmentProviderProps } from '@salutejs/plasma-new-hope/styled-components';
271
273
  import { SelectGroup } from '@salutejs/plasma-hope';
272
- import { DropdownNodeSelect as SelectItemOption } from '@salutejs/plasma-new-hope';
273
274
  import { SelectPlacement } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
274
275
  import { SelectPlacementBasic } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
276
+ import { MergedSelectProps as SelectProps } from '@salutejs/plasma-new-hope/styled-components';
275
277
  import { SelectProps as SelectPropsHope } from '@salutejs/plasma-hope';
276
278
  import { selectText } from '@salutejs/plasma-hope';
277
279
  import { setRef } from '@salutejs/plasma-core';
@@ -1955,8 +1957,6 @@ default: PolymorphicClassName;
1955
1957
  // @public (undocumented)
1956
1958
  export const DropdownItem: React_2.ForwardRefExoticComponent<DropdownItemProps & React_2.RefAttributes<HTMLDivElement>>;
1957
1959
 
1958
- export { DropdownItemOption }
1959
-
1960
1960
  export { DropdownItemProps }
1961
1961
 
1962
1962
  export { DropdownItemType }
@@ -1971,10 +1971,7 @@ export const DropdownPopup: React_2.ForwardRefExoticComponent<DropdownPopupProps
1971
1971
 
1972
1972
  export { DropdownPopupProps }
1973
1973
 
1974
- // Warning: (ae-forgotten-export) The symbol "DropdownNewHope" needs to be exported by the entry point index.d.ts
1975
- //
1976
- // @public (undocumented)
1977
- export type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> & Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;
1974
+ export { DropdownProps }
1978
1975
 
1979
1976
  // @public (undocumented)
1980
1977
  export const Dropzone: FunctionComponent<PropsType< {
@@ -3621,17 +3618,14 @@ export { SegmentProvider }
3621
3618
 
3622
3619
  export { SegmentProviderProps }
3623
3620
 
3621
+ // Warning: (ae-forgotten-export) The symbol "SelectProps_2" needs to be exported by the entry point index.d.ts
3622
+ //
3624
3623
  // @public (undocumented)
3625
- export const Select: <T, K extends SelectItemOption>(props: SelectProps<T, K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
3624
+ export const Select: <T, K extends DropdownNodeSelect>(props: SelectProps_2<T, K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
3626
3625
 
3627
3626
  export { SelectGroup }
3628
3627
 
3629
- export { SelectItemOption }
3630
-
3631
- // Warning: (ae-forgotten-export) The symbol "SelectNewHope" needs to be exported by the entry point index.d.ts
3632
- //
3633
- // @public (undocumented)
3634
- export type SelectProps<T, K extends SelectItemOption> = DistributiveOmit<MergedSelectProps<T, K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
3628
+ export { SelectProps }
3635
3629
 
3636
3630
  export { SelectPropsHope }
3637
3631
 
@@ -4445,6 +4439,8 @@ export { TimingFunction }
4445
4439
  export const Toast: FunctionComponent<PropsType< {
4446
4440
  view: {
4447
4441
  default: PolymorphicClassName;
4442
+ positive: PolymorphicClassName;
4443
+ negative: PolymorphicClassName;
4448
4444
  primary: PolymorphicClassName;
4449
4445
  dark: PolymorphicClassName;
4450
4446
  light: PolymorphicClassName;
@@ -1,44 +1,5 @@
1
1
  import type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';
2
- import React, { ComponentProps } from 'react';
3
- declare const DropdownNewHope: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
4
- size: {
5
- l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
6
- m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
7
- s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
8
- xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
9
- };
10
- view: {
11
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
12
- };
13
- }> & {
14
- items: DropdownItemOption[];
15
- alwaysOpened?: boolean | undefined;
16
- children?: React.ReactNode;
17
- itemRole?: string | undefined;
18
- onHover?: ((index: number) => void) | undefined;
19
- onItemSelect?: ((item: DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
20
- trigger?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownTrigger | undefined;
21
- placement?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownPlacement | undefined;
22
- offset?: [number, number] | undefined;
23
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
24
- hasArrow?: boolean | undefined;
25
- closeOnSelect?: boolean | undefined;
26
- closeOnOverlayClick?: boolean | undefined;
27
- onToggle?: ((isOpen: boolean, event: Event | React.SyntheticEvent<Element, Event>) => void) | undefined;
28
- size?: string | undefined;
29
- view?: string | undefined;
30
- variant?: "normal" | "tight" | undefined;
31
- portal?: string | React.RefObject<HTMLElement> | undefined;
32
- renderItem?: ((item: DropdownItemOption) => React.ReactNode) | undefined;
33
- zIndex?: import("csstype").Property.ZIndex | undefined;
34
- beforeList?: React.ReactNode;
35
- afterList?: React.ReactNode;
36
- onItemClick?: ((item: DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
37
- listOverflow?: import("csstype").Property.Overflow | undefined;
38
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
39
- hoverIndex?: number | undefined;
40
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
41
- export declare type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> & Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;
2
+ import React from 'react';
42
3
  declare const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewProps<T>, "view" | "size"> & Pick<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
43
4
  size: {
44
5
  l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -1,7 +1,6 @@
1
1
  export { withAssistiveDropdown } from '@salutejs/plasma-hope';
2
+ export type { DropdownProps } from '@salutejs/plasma-new-hope/styled-components';
2
3
  export { Dropdown } from './Dropdown';
3
- export type { DropdownProps } from './Dropdown';
4
- export type { DropdownItemOption } from '@salutejs/plasma-new-hope';
5
4
  export { DropdownItem } from './components/DropdownItem';
6
5
  export { DropdownPopup } from './components/DropdownPopup';
7
6
  export { DropdownList } from './components/DropdownList';
@@ -327,6 +327,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
327
327
  hasItems?: boolean | undefined;
328
328
  isOpen?: boolean | undefined;
329
329
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>))>;
330
- export declare type SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<MergedSelectPropsNewHope<T, K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
330
+ declare type SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<MergedSelectPropsNewHope<T, K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
331
331
  declare const Select: <T, K extends DropdownNodeSelect>(props: SelectProps<T, K> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
332
332
  export { Select };
@@ -1,5 +1,4 @@
1
1
  export { Select } from './Select';
2
2
  export type { SelectProps as SelectPropsHope } from '@salutejs/plasma-hope';
3
- export type { SelectProps } from './Select';
4
- export type { DropdownNodeSelect as SelectItemOption } from '@salutejs/plasma-new-hope';
3
+ export type { MergedSelectProps as SelectProps } from '@salutejs/plasma-new-hope/styled-components';
5
4
  export { SelectGroup } from '@salutejs/plasma-hope';
@@ -7,12 +7,22 @@ export declare const config: {
7
7
  variations: {
8
8
  view: {
9
9
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
10
+ positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
11
+ negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
10
12
  /**
11
13
  * @deprecated
12
14
  * использовать `default`
13
15
  */
14
16
  primary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
17
+ /**
18
+ * @deprecated
19
+ * светлый и темный фон регулировать через `view` компонента `ViewContainer`
20
+ */
15
21
  dark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
22
+ /**
23
+ * @deprecated
24
+ * светлый и темный фон регулировать через `view` компонента `ViewContainer`
25
+ */
16
26
  light: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
17
27
  };
18
28
  size: {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.config = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
8
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
9
9
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
10
10
  var config = exports.config = {
11
11
  defaults: {
@@ -16,22 +16,32 @@ var config = exports.config = {
16
16
  variations: {
17
17
  view: {
18
18
  "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
19
+ positive: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n ", ": var(--text-positive);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.contentLeftColor, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
20
+ negative: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n ", ": var(--text-negative);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.contentLeftColor, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
19
21
  /**
20
22
  * @deprecated
21
23
  * использовать `default`
22
24
  */
23
- primary: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
24
- dark: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-dark-text-primary);\n ", ": var(--on-dark-surface-solid-primary-brightness);\n\n ", ": var(--on-dark-text-secondary);\n ", ": var(--on-dark-text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
25
- light: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-light-text-primary);\n ", ": var(--on-light-surface-solid-primary-brightness);\n\n ", ": var(--on-light-text-secondary);\n ", ": var(--on-light-text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover)
25
+ primary: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
26
+ /**
27
+ * @deprecated
28
+ * светлый и темный фон регулировать через `view` компонента `ViewContainer`
29
+ */
30
+ dark: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-dark-text-primary);\n ", ": var(--on-dark-surface-solid-primary-brightness);\n\n ", ": var(--on-dark-text-secondary);\n ", ": var(--on-dark-text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
31
+ /**
32
+ * @deprecated
33
+ * светлый и темный фон регулировать через `view` компонента `ViewContainer`
34
+ */
35
+ light: /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-light-text-primary);\n ", ": var(--on-light-surface-solid-primary-brightness);\n\n ", ": var(--on-light-text-secondary);\n ", ": var(--on-light-text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover)
26
36
  },
27
37
  size: {
28
- m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.75rem;\n ", ": calc(100vw - 5rem);\n ", ": 0.5625rem 0.75rem;\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ", ": -0.0625rem -0.25rem -0.0625rem 0.5rem;\n "])), _styledComponents.toastTokens.borderRadius, _styledComponents.toastTokens.maxWidth, _styledComponents.toastTokens.padding, _styledComponents.toastTokens.fontFamily, _styledComponents.toastTokens.fontSize, _styledComponents.toastTokens.fontStyle, _styledComponents.toastTokens.fontWeight, _styledComponents.toastTokens.letterSpacing, _styledComponents.toastTokens.lineHeight, _styledComponents.toastTokens.leftContentMargin, _styledComponents.toastTokens.closeIconMargin)
38
+ m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.75rem;\n ", ": calc(100vw - 5rem);\n ", ": 0.5625rem 0.75rem;\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ", ": -0.0625rem -0.25rem -0.0625rem 0.5rem;\n "])), _styledComponents.toastTokens.borderRadius, _styledComponents.toastTokens.maxWidth, _styledComponents.toastTokens.padding, _styledComponents.toastTokens.fontFamily, _styledComponents.toastTokens.fontSize, _styledComponents.toastTokens.fontStyle, _styledComponents.toastTokens.fontWeight, _styledComponents.toastTokens.letterSpacing, _styledComponents.toastTokens.lineHeight, _styledComponents.toastTokens.contentLeftMargin, _styledComponents.toastTokens.closeIconMargin)
29
39
  },
30
40
  closeIconType: {
31
- "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), _styledComponents.toastTokens.closeIconButtonSize, _styledComponents.toastTokens.closeIconSize)
41
+ "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), _styledComponents.toastTokens.closeIconButtonSize, _styledComponents.toastTokens.closeIconSize)
32
42
  },
33
43
  pilled: {
34
- "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n\n ", ": -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ", ": -0.0625rem -0.25rem -0.0625rem 0.375rem;\n "])), _styledComponents.toastTokens.pilledBorderRadius, _styledComponents.toastTokens.leftContentMargin, _styledComponents.toastTokens.closeIconMargin)
44
+ "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n\n ", ": -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ", ": -0.0625rem -0.25rem -0.0625rem 0.375rem;\n "])), _styledComponents.toastTokens.pilledBorderRadius, _styledComponents.toastTokens.contentLeftMargin, _styledComponents.toastTokens.closeIconMargin)
35
45
  }
36
46
  }
37
47
  };
@@ -3,6 +3,8 @@ export { useToast } from '@salutejs/plasma-new-hope/styled-components';
3
3
  export declare const Toast: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
4
4
  view: {
5
5
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
6
+ positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
7
+ negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
6
8
  primary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
7
9
  dark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
8
10
  light: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.js","sources":["../../../../src-css/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Dropdown.config';\n\nconst mergedConfig = mergeConfig(dropdownConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\nexport type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> &\n Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;\n\nconst DropdownComponent = <T extends DropdownItemOption>(\n props: DropdownProps<T>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <DropdownNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Dropdown = fixedForwardRef(DropdownComponent);\n\nexport { Dropdown };\n"],"names":["mergedConfig","mergeConfig","dropdownConfig","config","DropdownNewHope","component","DropdownComponent","props","ref","React","createElement","_extends","Dropdown","fixedForwardRef"],"mappings":";;;;;;;;;;;;;AAMA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,4BAAc,EAAEC,sBAAM,CAAC,CAAA;AACxD,IAAMC,eAAe,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAK/C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CACnBC,KAAuB,EACvBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACN,eAAe,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC5D,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,6BAAe,CAACP,iBAAiB;;;;"}
1
+ {"version":3,"file":"Dropdown.js","sources":["../../../../src-css/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Dropdown.config';\n\nconst mergedConfig = mergeConfig(dropdownConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\ntype DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> &\n Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;\n\nconst DropdownComponent = <T extends DropdownItemOption>(\n props: DropdownProps<T>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <DropdownNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Dropdown = fixedForwardRef(DropdownComponent);\n\nexport { Dropdown };\n"],"names":["mergedConfig","mergeConfig","dropdownConfig","config","DropdownNewHope","component","DropdownComponent","props","ref","React","createElement","_extends","Dropdown","fixedForwardRef"],"mappings":";;;;;;;;;;;;;AAMA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,4BAAc,EAAEC,sBAAM,CAAC,CAAA;AACxD,IAAMC,eAAe,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAK/C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CACnBC,KAAuB,EACvBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACN,eAAe,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC5D,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,6BAAe,CAACP,iBAAiB;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","sources":["../../../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\nimport type {\n DropdownNodeSelect,\n MergedSelectProps as MergedSelectPropsNewHope,\n DistributiveOmit,\n DistributivePick,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\nexport type SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<\n MergedSelectPropsNewHope<T, K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <T, K extends DropdownNodeSelect>(\n props: SelectProps<T, K>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <SelectNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Select = fixedForwardRef(SelectComponent);\n\nexport { Select };\n"],"names":["mergedConfig","mergeConfig","selectConfig","config","SelectNewHope","component","SelectComponent","props","ref","React","createElement","_extends","Select","fixedForwardRef"],"mappings":";;;;;;;;;;;;;AAWA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,0BAAY,EAAEC,oBAAM,CAAC,CAAA;AACtD,IAAMC,aAAa,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAQ7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CACjBC,KAAwB,EACxBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC1D,CAAC,CAAA;AAED,IAAMK,MAAM,gBAAGC,6BAAe,CAACP,eAAe;;;;"}
1
+ {"version":3,"file":"Select.js","sources":["../../../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\nimport type {\n DropdownNodeSelect,\n MergedSelectProps as MergedSelectPropsNewHope,\n DistributiveOmit,\n DistributivePick,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\ntype SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<\n MergedSelectPropsNewHope<T, K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <T, K extends DropdownNodeSelect>(\n props: SelectProps<T, K>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <SelectNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Select = fixedForwardRef(SelectComponent);\n\nexport { Select };\n"],"names":["mergedConfig","mergeConfig","selectConfig","config","SelectNewHope","component","SelectComponent","props","ref","React","createElement","_extends","Select","fixedForwardRef"],"mappings":";;;;;;;;;;;;;AAWA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,0BAAY,EAAEC,oBAAM,CAAC,CAAA;AACtD,IAAMC,aAAa,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAQ7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CACjBC,KAAwB,EACxBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC1D,CAAC,CAAA;AAED,IAAMK,MAAM,gBAAGC,6BAAe,CAACP,eAAe;;;;"}
@@ -1,4 +1,4 @@
1
- require('./Toast.config_1g4td0o.css');
1
+ require('./Toast.config_1i0lbln.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -12,22 +12,32 @@ var config = {
12
12
  variations: {
13
13
  view: {
14
14
  "default": "d1bsn3dp",
15
+ positive: "ptjd8cf",
16
+ negative: "n1i63r6p",
15
17
  /**
16
18
  * @deprecated
17
19
  * использовать `default`
18
20
  */
19
- primary: "ptjd8cf",
20
- dark: "d1i63r6p",
21
- light: "l1918q62"
21
+ primary: "p1918q62",
22
+ /**
23
+ * @deprecated
24
+ * светлый и темный фон регулировать через `view` компонента `ViewContainer`
25
+ */
26
+ dark: "d1jmouzj",
27
+ /**
28
+ * @deprecated
29
+ * светлый и темный фон регулировать через `view` компонента `ViewContainer`
30
+ */
31
+ light: "l1hfuauu"
22
32
  },
23
33
  size: {
24
- m: "m1jmouzj"
34
+ m: "mh1sjxu"
25
35
  },
26
36
  closeIconType: {
27
- "default": "d1hfuauu"
37
+ "default": "dtkpp4s"
28
38
  },
29
39
  pilled: {
30
- "true": "th1sjxu"
40
+ "true": "ty43uj2"
31
41
  }
32
42
  }
33
43
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.config.js","sources":["../../../../src-css/components/Toast/Toast.config.ts"],"sourcesContent":["import { css, toastTokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'm',\n closeIconType: 'default',\n },\n variations: {\n view: {\n default: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n /**\n * @deprecated\n * использовать `default`\n */\n primary: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n dark: css`\n ${toastTokens.color}: var(--on-dark-text-primary);\n ${toastTokens.background}: var(--on-dark-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-dark-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-dark-text-secondary);\n `,\n light: css`\n ${toastTokens.color}: var(--on-light-text-primary);\n ${toastTokens.background}: var(--on-light-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-light-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-light-text-secondary);\n `,\n },\n size: {\n m: css`\n ${toastTokens.borderRadius}: 0.75rem;\n ${toastTokens.maxWidth}: calc(100vw - 5rem);\n ${toastTokens.padding}: 0.5625rem 0.75rem;\n ${toastTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);\n ${toastTokens.fontSize}: var(--plasma-typo-body-xs-font-size);\n ${toastTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);\n ${toastTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${toastTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${toastTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.5rem;\n `,\n },\n closeIconType: {\n default: css`\n ${toastTokens.closeIconButtonSize}: 1rem;\n ${toastTokens.closeIconSize}: 1.5rem;\n `,\n },\n pilled: {\n true: css`\n ${toastTokens.pilledBorderRadius}: 1.5rem;\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.375rem;\n `,\n },\n },\n};\n"],"names":["config","defaults","view","size","closeIconType","variations","default","primary","dark","light","m","pilled","true"],"mappings":";;;;AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,aAAa,EAAE,SAAA;GAClB;AACDC,EAAAA,UAAU,EAAE;AACRH,IAAAA,IAAI,EAAE;AACFI,MAAAA,SAAAA,EAMC,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,OAAO,EAMN,SAAA;AACDC,MAAAA,IAAI,EAMH,UAAA;AACDC,MAAAA,KAAK,EAAA,UAAA;KAOR;AACDN,IAAAA,IAAI,EAAE;AACFO,MAAAA,CAAC,EAAA,UAAA;KAcJ;AACDN,IAAAA,aAAa,EAAE;MACXE,SAAO,EAAA,UAAA;KAIV;AACDK,IAAAA,MAAM,EAAE;MACJC,MAAI,EAAA,SAAA;AAMR,KAAA;AACJ,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"Toast.config.js","sources":["../../../../src-css/components/Toast/Toast.config.ts"],"sourcesContent":["import { css, toastTokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'm',\n closeIconType: 'default',\n },\n variations: {\n view: {\n default: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n positive: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n ${toastTokens.contentLeftColor}: var(--text-positive);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n negative: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n ${toastTokens.contentLeftColor}: var(--text-negative);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n /**\n * @deprecated\n * использовать `default`\n */\n primary: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n /**\n * @deprecated\n * светлый и темный фон регулировать через `view` компонента `ViewContainer`\n */\n dark: css`\n ${toastTokens.color}: var(--on-dark-text-primary);\n ${toastTokens.background}: var(--on-dark-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-dark-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-dark-text-secondary);\n `,\n /**\n * @deprecated\n * светлый и темный фон регулировать через `view` компонента `ViewContainer`\n */\n light: css`\n ${toastTokens.color}: var(--on-light-text-primary);\n ${toastTokens.background}: var(--on-light-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-light-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-light-text-secondary);\n `,\n },\n size: {\n m: css`\n ${toastTokens.borderRadius}: 0.75rem;\n ${toastTokens.maxWidth}: calc(100vw - 5rem);\n ${toastTokens.padding}: 0.5625rem 0.75rem;\n ${toastTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);\n ${toastTokens.fontSize}: var(--plasma-typo-body-xs-font-size);\n ${toastTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);\n ${toastTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${toastTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${toastTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${toastTokens.contentLeftMargin}: -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.5rem;\n `,\n },\n closeIconType: {\n default: css`\n ${toastTokens.closeIconButtonSize}: 1rem;\n ${toastTokens.closeIconSize}: 1.5rem;\n `,\n },\n pilled: {\n true: css`\n ${toastTokens.pilledBorderRadius}: 1.5rem;\n\n ${toastTokens.contentLeftMargin}: -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.375rem;\n `,\n },\n },\n};\n"],"names":["config","defaults","view","size","closeIconType","variations","default","positive","negative","primary","dark","light","m","pilled","true"],"mappings":";;;;AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,aAAa,EAAE,SAAA;GAClB;AACDC,EAAAA,UAAU,EAAE;AACRH,IAAAA,IAAI,EAAE;AACFI,MAAAA,SAAAA,EAMC,UAAA;AACDC,MAAAA,QAAQ,EAOP,SAAA;AACDC,MAAAA,QAAQ,EAOP,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,OAAO,EAMN,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,IAAI,EAMH,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,KAAK,EAAA,UAAA;KAOR;AACDR,IAAAA,IAAI,EAAE;AACFS,MAAAA,CAAC,EAAA,SAAA;KAcJ;AACDR,IAAAA,aAAa,EAAE;MACXE,SAAO,EAAA,SAAA;KAIV;AACDO,IAAAA,MAAM,EAAE;MACJC,MAAI,EAAA,SAAA;AAMR,KAAA;AACJ,GAAA;AACJ;;;;"}
@@ -0,0 +1,9 @@
1
+ .d1bsn3dp{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
2
+ .ptjd8cf{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-positive);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
3
+ .n1i63r6p{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-negative);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
4
+ .p1918q62{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
5
+ .d1jmouzj{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
6
+ .l1hfuauu{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
7
+ .mh1sjxu{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
8
+ .dtkpp4s{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
9
+ .ty43uj2{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
@@ -1,7 +1,9 @@
1
- .Toast_config_1g4td0o_d1bsn3dp__4cab1302{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
2
- .Toast_config_1g4td0o_ptjd8cf__4cab1302{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
3
- .Toast_config_1g4td0o_d1i63r6p__4cab1302{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
4
- .Toast_config_1g4td0o_l1918q62__4cab1302{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
5
- .Toast_config_1g4td0o_m1jmouzj__4cab1302{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
6
- .Toast_config_1g4td0o_d1hfuauu__4cab1302{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
7
- .Toast_config_1g4td0o_th1sjxu__4cab1302{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
1
+ .Toast_config_1i0lbln_d1bsn3dp__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
2
+ .Toast_config_1i0lbln_ptjd8cf__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-positive);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
3
+ .Toast_config_1i0lbln_n1i63r6p__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-negative);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
4
+ .Toast_config_1i0lbln_p1918q62__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
5
+ .Toast_config_1i0lbln_d1jmouzj__812411a4{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
6
+ .Toast_config_1i0lbln_l1hfuauu__812411a4{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
7
+ .Toast_config_1i0lbln_mh1sjxu__812411a4{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
8
+ .Toast_config_1i0lbln_dtkpp4s__812411a4{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
9
+ .Toast_config_1i0lbln_ty43uj2__812411a4{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
package/css/cjs/index.css CHANGED
@@ -656,13 +656,15 @@
656
656
 
657
657
 
658
658
 
659
- .Toast_config_1g4td0o_d1bsn3dp__4cab1302{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
660
- .Toast_config_1g4td0o_ptjd8cf__4cab1302{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
661
- .Toast_config_1g4td0o_d1i63r6p__4cab1302{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
662
- .Toast_config_1g4td0o_l1918q62__4cab1302{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
663
- .Toast_config_1g4td0o_m1jmouzj__4cab1302{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
664
- .Toast_config_1g4td0o_d1hfuauu__4cab1302{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
665
- .Toast_config_1g4td0o_th1sjxu__4cab1302{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
659
+ .Toast_config_1i0lbln_d1bsn3dp__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
660
+ .Toast_config_1i0lbln_ptjd8cf__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-positive);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
661
+ .Toast_config_1i0lbln_n1i63r6p__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-negative);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
662
+ .Toast_config_1i0lbln_p1918q62__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
663
+ .Toast_config_1i0lbln_d1jmouzj__812411a4{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
664
+ .Toast_config_1i0lbln_l1hfuauu__812411a4{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
665
+ .Toast_config_1i0lbln_mh1sjxu__812411a4{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
666
+ .Toast_config_1i0lbln_dtkpp4s__812411a4{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
667
+ .Toast_config_1i0lbln_ty43uj2__812411a4{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
666
668
 
667
669
  .Toolbar_config_1yum23z_d1ww92hn__4c35b6dd{--plasma-toolbar-box-shadow:0px 4px 14px -4px rgba(8,8,8,0.08),0px 1px 4px -1px rgba(0,0,0,0.04);--plasma-toolbar-background:var(--surface-solid-card-brightness);--plasma-toolbar-divider-color:var(--surface-transparent-tertiary);}
668
670
  .Toolbar_config_1yum23z_x1apuzov__4c35b6dd{--plasma-toolbar-size:2.5rem;--plasma-toolbar-padding:0.25rem;--plasma-toolbar-border-radius:0.75rem;--plasma-toolbar-divider-size:1.25rem;--plasma-toolbar-divider-offset:0.5rem;--plasma-toolbar-divider-border-radius:0.0625rem;}
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.js","sources":["../../../../src-css/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Dropdown.config';\n\nconst mergedConfig = mergeConfig(dropdownConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\nexport type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> &\n Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;\n\nconst DropdownComponent = <T extends DropdownItemOption>(\n props: DropdownProps<T>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <DropdownNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Dropdown = fixedForwardRef(DropdownComponent);\n\nexport { Dropdown };\n"],"names":["mergedConfig","mergeConfig","dropdownConfig","config","DropdownNewHope","component","DropdownComponent","props","ref","React","createElement","_extends","Dropdown","fixedForwardRef"],"mappings":";;;;;AAMA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,cAAc,EAAEC,MAAM,CAAC,CAAA;AACxD,IAAMC,eAAe,gBAAGC,SAAS,CAACL,YAAY,CAAC,CAAA;AAK/C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CACnBC,KAAuB,EACvBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,eAAe,EAAAO,QAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC5D,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,eAAe,CAACP,iBAAiB;;;;"}
1
+ {"version":3,"file":"Dropdown.js","sources":["../../../../src-css/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Dropdown.config';\n\nconst mergedConfig = mergeConfig(dropdownConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\ntype DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> &\n Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;\n\nconst DropdownComponent = <T extends DropdownItemOption>(\n props: DropdownProps<T>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <DropdownNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Dropdown = fixedForwardRef(DropdownComponent);\n\nexport { Dropdown };\n"],"names":["mergedConfig","mergeConfig","dropdownConfig","config","DropdownNewHope","component","DropdownComponent","props","ref","React","createElement","_extends","Dropdown","fixedForwardRef"],"mappings":";;;;;AAMA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,cAAc,EAAEC,MAAM,CAAC,CAAA;AACxD,IAAMC,eAAe,gBAAGC,SAAS,CAACL,YAAY,CAAC,CAAA;AAK/C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CACnBC,KAAuB,EACvBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,eAAe,EAAAO,QAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC5D,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,eAAe,CAACP,iBAAiB;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","sources":["../../../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\nimport type {\n DropdownNodeSelect,\n MergedSelectProps as MergedSelectPropsNewHope,\n DistributiveOmit,\n DistributivePick,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\nexport type SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<\n MergedSelectPropsNewHope<T, K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <T, K extends DropdownNodeSelect>(\n props: SelectProps<T, K>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <SelectNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Select = fixedForwardRef(SelectComponent);\n\nexport { Select };\n"],"names":["mergedConfig","mergeConfig","selectConfig","config","SelectNewHope","component","SelectComponent","props","ref","React","createElement","_extends","Select","fixedForwardRef"],"mappings":";;;;;AAWA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,YAAY,EAAEC,MAAM,CAAC,CAAA;AACtD,IAAMC,aAAa,gBAAGC,SAAS,CAACL,YAAY,CAAC,CAAA;AAQ7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CACjBC,KAAwB,EACxBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,QAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC1D,CAAC,CAAA;AAED,IAAMK,MAAM,gBAAGC,eAAe,CAACP,eAAe;;;;"}
1
+ {"version":3,"file":"Select.js","sources":["../../../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\nimport type {\n DropdownNodeSelect,\n MergedSelectProps as MergedSelectPropsNewHope,\n DistributiveOmit,\n DistributivePick,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\ntype SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<\n MergedSelectPropsNewHope<T, K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <T, K extends DropdownNodeSelect>(\n props: SelectProps<T, K>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <SelectNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Select = fixedForwardRef(SelectComponent);\n\nexport { Select };\n"],"names":["mergedConfig","mergeConfig","selectConfig","config","SelectNewHope","component","SelectComponent","props","ref","React","createElement","_extends","Select","fixedForwardRef"],"mappings":";;;;;AAWA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,YAAY,EAAEC,MAAM,CAAC,CAAA;AACtD,IAAMC,aAAa,gBAAGC,SAAS,CAACL,YAAY,CAAC,CAAA;AAQ7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CACjBC,KAAwB,EACxBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,QAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC1D,CAAC,CAAA;AAED,IAAMK,MAAM,gBAAGC,eAAe,CAACP,eAAe;;;;"}
@@ -1,4 +1,4 @@
1
- import './Toast.config_1g4td0o.css';
1
+ import './Toast.config_1i0lbln.css';
2
2
  var config = {
3
3
  defaults: {
4
4
  view: 'default',
@@ -8,22 +8,32 @@ var config = {
8
8
  variations: {
9
9
  view: {
10
10
  "default": "d1bsn3dp",
11
+ positive: "ptjd8cf",
12
+ negative: "n1i63r6p",
11
13
  /**
12
14
  * @deprecated
13
15
  * использовать `default`
14
16
  */
15
- primary: "ptjd8cf",
16
- dark: "d1i63r6p",
17
- light: "l1918q62"
17
+ primary: "p1918q62",
18
+ /**
19
+ * @deprecated
20
+ * светлый и темный фон регулировать через `view` компонента `ViewContainer`
21
+ */
22
+ dark: "d1jmouzj",
23
+ /**
24
+ * @deprecated
25
+ * светлый и темный фон регулировать через `view` компонента `ViewContainer`
26
+ */
27
+ light: "l1hfuauu"
18
28
  },
19
29
  size: {
20
- m: "m1jmouzj"
30
+ m: "mh1sjxu"
21
31
  },
22
32
  closeIconType: {
23
- "default": "d1hfuauu"
33
+ "default": "dtkpp4s"
24
34
  },
25
35
  pilled: {
26
- "true": "th1sjxu"
36
+ "true": "ty43uj2"
27
37
  }
28
38
  }
29
39
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.config.js","sources":["../../../../src-css/components/Toast/Toast.config.ts"],"sourcesContent":["import { css, toastTokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'm',\n closeIconType: 'default',\n },\n variations: {\n view: {\n default: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n /**\n * @deprecated\n * использовать `default`\n */\n primary: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n dark: css`\n ${toastTokens.color}: var(--on-dark-text-primary);\n ${toastTokens.background}: var(--on-dark-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-dark-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-dark-text-secondary);\n `,\n light: css`\n ${toastTokens.color}: var(--on-light-text-primary);\n ${toastTokens.background}: var(--on-light-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-light-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-light-text-secondary);\n `,\n },\n size: {\n m: css`\n ${toastTokens.borderRadius}: 0.75rem;\n ${toastTokens.maxWidth}: calc(100vw - 5rem);\n ${toastTokens.padding}: 0.5625rem 0.75rem;\n ${toastTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);\n ${toastTokens.fontSize}: var(--plasma-typo-body-xs-font-size);\n ${toastTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);\n ${toastTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${toastTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${toastTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.5rem;\n `,\n },\n closeIconType: {\n default: css`\n ${toastTokens.closeIconButtonSize}: 1rem;\n ${toastTokens.closeIconSize}: 1.5rem;\n `,\n },\n pilled: {\n true: css`\n ${toastTokens.pilledBorderRadius}: 1.5rem;\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.375rem;\n `,\n },\n },\n};\n"],"names":["config","defaults","view","size","closeIconType","variations","default","primary","dark","light","m","pilled","true"],"mappings":"AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,aAAa,EAAE,SAAA;GAClB;AACDC,EAAAA,UAAU,EAAE;AACRH,IAAAA,IAAI,EAAE;AACFI,MAAAA,SAAAA,EAMC,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,OAAO,EAMN,SAAA;AACDC,MAAAA,IAAI,EAMH,UAAA;AACDC,MAAAA,KAAK,EAAA,UAAA;KAOR;AACDN,IAAAA,IAAI,EAAE;AACFO,MAAAA,CAAC,EAAA,UAAA;KAcJ;AACDN,IAAAA,aAAa,EAAE;MACXE,SAAO,EAAA,UAAA;KAIV;AACDK,IAAAA,MAAM,EAAE;MACJC,MAAI,EAAA,SAAA;AAMR,KAAA;AACJ,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"Toast.config.js","sources":["../../../../src-css/components/Toast/Toast.config.ts"],"sourcesContent":["import { css, toastTokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'm',\n closeIconType: 'default',\n },\n variations: {\n view: {\n default: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n positive: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n ${toastTokens.contentLeftColor}: var(--text-positive);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n negative: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n ${toastTokens.contentLeftColor}: var(--text-negative);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n /**\n * @deprecated\n * использовать `default`\n */\n primary: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n /**\n * @deprecated\n * светлый и темный фон регулировать через `view` компонента `ViewContainer`\n */\n dark: css`\n ${toastTokens.color}: var(--on-dark-text-primary);\n ${toastTokens.background}: var(--on-dark-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-dark-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-dark-text-secondary);\n `,\n /**\n * @deprecated\n * светлый и темный фон регулировать через `view` компонента `ViewContainer`\n */\n light: css`\n ${toastTokens.color}: var(--on-light-text-primary);\n ${toastTokens.background}: var(--on-light-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-light-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-light-text-secondary);\n `,\n },\n size: {\n m: css`\n ${toastTokens.borderRadius}: 0.75rem;\n ${toastTokens.maxWidth}: calc(100vw - 5rem);\n ${toastTokens.padding}: 0.5625rem 0.75rem;\n ${toastTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);\n ${toastTokens.fontSize}: var(--plasma-typo-body-xs-font-size);\n ${toastTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);\n ${toastTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${toastTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${toastTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${toastTokens.contentLeftMargin}: -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.5rem;\n `,\n },\n closeIconType: {\n default: css`\n ${toastTokens.closeIconButtonSize}: 1rem;\n ${toastTokens.closeIconSize}: 1.5rem;\n `,\n },\n pilled: {\n true: css`\n ${toastTokens.pilledBorderRadius}: 1.5rem;\n\n ${toastTokens.contentLeftMargin}: -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.375rem;\n `,\n },\n },\n};\n"],"names":["config","defaults","view","size","closeIconType","variations","default","positive","negative","primary","dark","light","m","pilled","true"],"mappings":"AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,aAAa,EAAE,SAAA;GAClB;AACDC,EAAAA,UAAU,EAAE;AACRH,IAAAA,IAAI,EAAE;AACFI,MAAAA,SAAAA,EAMC,UAAA;AACDC,MAAAA,QAAQ,EAOP,SAAA;AACDC,MAAAA,QAAQ,EAOP,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,OAAO,EAMN,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,IAAI,EAMH,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,KAAK,EAAA,UAAA;KAOR;AACDR,IAAAA,IAAI,EAAE;AACFS,MAAAA,CAAC,EAAA,SAAA;KAcJ;AACDR,IAAAA,aAAa,EAAE;MACXE,SAAO,EAAA,SAAA;KAIV;AACDO,IAAAA,MAAM,EAAE;MACJC,MAAI,EAAA,SAAA;AAMR,KAAA;AACJ,GAAA;AACJ;;;;"}
@@ -0,0 +1,9 @@
1
+ .d1bsn3dp{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
2
+ .ptjd8cf{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-positive);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
3
+ .n1i63r6p{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-negative);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
4
+ .p1918q62{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
5
+ .d1jmouzj{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
6
+ .l1hfuauu{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
7
+ .mh1sjxu{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
8
+ .dtkpp4s{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
9
+ .ty43uj2{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
@@ -1,7 +1,9 @@
1
- .Toast_config_1g4td0o_d1bsn3dp__4cab1302{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
2
- .Toast_config_1g4td0o_ptjd8cf__4cab1302{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
3
- .Toast_config_1g4td0o_d1i63r6p__4cab1302{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
4
- .Toast_config_1g4td0o_l1918q62__4cab1302{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
5
- .Toast_config_1g4td0o_m1jmouzj__4cab1302{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
6
- .Toast_config_1g4td0o_d1hfuauu__4cab1302{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
7
- .Toast_config_1g4td0o_th1sjxu__4cab1302{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
1
+ .Toast_config_1i0lbln_d1bsn3dp__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
2
+ .Toast_config_1i0lbln_ptjd8cf__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-positive);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
3
+ .Toast_config_1i0lbln_n1i63r6p__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-negative);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
4
+ .Toast_config_1i0lbln_p1918q62__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
5
+ .Toast_config_1i0lbln_d1jmouzj__812411a4{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
6
+ .Toast_config_1i0lbln_l1hfuauu__812411a4{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
7
+ .Toast_config_1i0lbln_mh1sjxu__812411a4{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
8
+ .Toast_config_1i0lbln_dtkpp4s__812411a4{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
9
+ .Toast_config_1i0lbln_ty43uj2__812411a4{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
package/css/es/index.css CHANGED
@@ -656,13 +656,15 @@
656
656
 
657
657
 
658
658
 
659
- .Toast_config_1g4td0o_d1bsn3dp__4cab1302{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
660
- .Toast_config_1g4td0o_ptjd8cf__4cab1302{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
661
- .Toast_config_1g4td0o_d1i63r6p__4cab1302{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
662
- .Toast_config_1g4td0o_l1918q62__4cab1302{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
663
- .Toast_config_1g4td0o_m1jmouzj__4cab1302{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
664
- .Toast_config_1g4td0o_d1hfuauu__4cab1302{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
665
- .Toast_config_1g4td0o_th1sjxu__4cab1302{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
659
+ .Toast_config_1i0lbln_d1bsn3dp__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
660
+ .Toast_config_1i0lbln_ptjd8cf__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-positive);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
661
+ .Toast_config_1i0lbln_n1i63r6p__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-negative);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
662
+ .Toast_config_1i0lbln_p1918q62__812411a4{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
663
+ .Toast_config_1i0lbln_d1jmouzj__812411a4{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
664
+ .Toast_config_1i0lbln_l1hfuauu__812411a4{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
665
+ .Toast_config_1i0lbln_mh1sjxu__812411a4{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
666
+ .Toast_config_1i0lbln_dtkpp4s__812411a4{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
667
+ .Toast_config_1i0lbln_ty43uj2__812411a4{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
666
668
 
667
669
  .Toolbar_config_1yum23z_d1ww92hn__4c35b6dd{--plasma-toolbar-box-shadow:0px 4px 14px -4px rgba(8,8,8,0.08),0px 1px 4px -1px rgba(0,0,0,0.04);--plasma-toolbar-background:var(--surface-solid-card-brightness);--plasma-toolbar-divider-color:var(--surface-transparent-tertiary);}
668
670
  .Toolbar_config_1yum23z_x1apuzov__4c35b6dd{--plasma-toolbar-size:2.5rem;--plasma-toolbar-padding:0.25rem;--plasma-toolbar-border-radius:0.75rem;--plasma-toolbar-divider-size:1.25rem;--plasma-toolbar-divider-offset:0.5rem;--plasma-toolbar-divider-border-radius:0.0625rem;}
@@ -1,5 +1,6 @@
1
1
  export { withAssistiveDropdown } from '@salutejs/plasma-hope';
2
2
  export { Dropdown } from './Dropdown';
3
+
3
4
  // TODO: #1271
4
5
  export { DropdownItem } from './components/DropdownItem';
5
6
  export { DropdownPopup } from './components/DropdownPopup';
@@ -1,4 +1,4 @@
1
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
1
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import { css, toastTokens } from '@salutejs/plasma-new-hope/styled-components';
4
4
  export var config = {
@@ -10,22 +10,32 @@ export var config = {
10
10
  variations: {
11
11
  view: {
12
12
  "default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
13
+ positive: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n ", ": var(--text-positive);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.contentLeftColor, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
14
+ negative: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n ", ": var(--text-negative);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.contentLeftColor, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
13
15
  /**
14
16
  * @deprecated
15
17
  * использовать `default`
16
18
  */
17
- primary: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
18
- dark: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-dark-text-primary);\n ", ": var(--on-dark-surface-solid-primary-brightness);\n\n ", ": var(--on-dark-text-secondary);\n ", ": var(--on-dark-text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
19
- light: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-light-text-primary);\n ", ": var(--on-light-surface-solid-primary-brightness);\n\n ", ": var(--on-light-text-secondary);\n ", ": var(--on-light-text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover)
19
+ primary: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
20
+ /**
21
+ * @deprecated
22
+ * светлый и темный фон регулировать через `view` компонента `ViewContainer`
23
+ */
24
+ dark: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-dark-text-primary);\n ", ": var(--on-dark-surface-solid-primary-brightness);\n\n ", ": var(--on-dark-text-secondary);\n ", ": var(--on-dark-text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
25
+ /**
26
+ * @deprecated
27
+ * светлый и темный фон регулировать через `view` компонента `ViewContainer`
28
+ */
29
+ light: /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-light-text-primary);\n ", ": var(--on-light-surface-solid-primary-brightness);\n\n ", ": var(--on-light-text-secondary);\n ", ": var(--on-light-text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover)
20
30
  },
21
31
  size: {
22
- m: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.75rem;\n ", ": calc(100vw - 5rem);\n ", ": 0.5625rem 0.75rem;\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ", ": -0.0625rem -0.25rem -0.0625rem 0.5rem;\n "])), toastTokens.borderRadius, toastTokens.maxWidth, toastTokens.padding, toastTokens.fontFamily, toastTokens.fontSize, toastTokens.fontStyle, toastTokens.fontWeight, toastTokens.letterSpacing, toastTokens.lineHeight, toastTokens.leftContentMargin, toastTokens.closeIconMargin)
32
+ m: /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.75rem;\n ", ": calc(100vw - 5rem);\n ", ": 0.5625rem 0.75rem;\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ", ": -0.0625rem -0.25rem -0.0625rem 0.5rem;\n "])), toastTokens.borderRadius, toastTokens.maxWidth, toastTokens.padding, toastTokens.fontFamily, toastTokens.fontSize, toastTokens.fontStyle, toastTokens.fontWeight, toastTokens.letterSpacing, toastTokens.lineHeight, toastTokens.contentLeftMargin, toastTokens.closeIconMargin)
23
33
  },
24
34
  closeIconType: {
25
- "default": /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), toastTokens.closeIconButtonSize, toastTokens.closeIconSize)
35
+ "default": /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), toastTokens.closeIconButtonSize, toastTokens.closeIconSize)
26
36
  },
27
37
  pilled: {
28
- "true": /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n\n ", ": -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ", ": -0.0625rem -0.25rem -0.0625rem 0.375rem;\n "])), toastTokens.pilledBorderRadius, toastTokens.leftContentMargin, toastTokens.closeIconMargin)
38
+ "true": /*#__PURE__*/css(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n\n ", ": -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ", ": -0.0625rem -0.25rem -0.0625rem 0.375rem;\n "])), toastTokens.pilledBorderRadius, toastTokens.contentLeftMargin, toastTokens.closeIconMargin)
29
39
  }
30
40
  }
31
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-web",
3
- "version": "1.504.2-canary.1732.13047023818.0",
3
+ "version": "1.505.0-canary.1719.13031725630.0",
4
4
  "description": "Salute Design System / React UI kit for web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@salutejs/plasma-core": "1.191.0",
23
23
  "@salutejs/plasma-hope": "1.329.0",
24
- "@salutejs/plasma-new-hope": "0.248.1-dev.0",
24
+ "@salutejs/plasma-new-hope": "0.249.0-canary.1719.13031725630.0",
25
25
  "@salutejs/plasma-themes": "0.28.0",
26
26
  "@salutejs/plasma-tokens-b2b": "1.45.0",
27
27
  "@salutejs/plasma-tokens-b2c": "0.56.0",
@@ -111,5 +111,5 @@
111
111
  "Fanil Zubairov"
112
112
  ],
113
113
  "sideEffects": false,
114
- "gitHead": "98160d242a1f16d20447981735e089c1fc1affe4"
114
+ "gitHead": "eea2bffa25cdce9eca16bfcaa6a6aef02330fa48"
115
115
  }
@@ -131,13 +131,15 @@ import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components'
131
131
  import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
132
132
  import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
133
133
  import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
134
- import { DropdownItemOption } from '@salutejs/plasma-new-hope';
134
+ import type { DropdownItemOption } from '@salutejs/plasma-new-hope';
135
135
  import { DropdownItemProps } from '@salutejs/plasma-hope';
136
136
  import { DropdownItem as DropdownItemType } from '@salutejs/plasma-hope';
137
137
  import type { DropdownNewProps } from '@salutejs/plasma-new-hope';
138
+ import type { DropdownNodeSelect } from '@salutejs/plasma-new-hope';
138
139
  import { DropdownNodeType } from '@salutejs/plasma-hope';
139
140
  import { DropdownPlacement } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
140
141
  import { DropdownPopupProps } from '@salutejs/plasma-hope';
142
+ import { DropdownProps } from '@salutejs/plasma-new-hope/styled-components';
141
143
  import { DropdownTrigger } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
142
144
  import { dropzoneClasses } from '@salutejs/plasma-new-hope/styled-components';
143
145
  import { dropzoneTokens } from '@salutejs/plasma-new-hope/styled-components';
@@ -269,9 +271,9 @@ import { SegmentItemProps } from '@salutejs/plasma-new-hope/styled-components';
269
271
  import { SegmentProvider } from '@salutejs/plasma-new-hope/styled-components';
270
272
  import { SegmentProviderProps } from '@salutejs/plasma-new-hope/styled-components';
271
273
  import { SelectGroup } from '@salutejs/plasma-hope';
272
- import { DropdownNodeSelect as SelectItemOption } from '@salutejs/plasma-new-hope';
273
274
  import { SelectPlacement } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
274
275
  import { SelectPlacementBasic } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
276
+ import { MergedSelectProps as SelectProps } from '@salutejs/plasma-new-hope/styled-components';
275
277
  import { SelectProps as SelectPropsHope } from '@salutejs/plasma-hope';
276
278
  import { selectText } from '@salutejs/plasma-hope';
277
279
  import { setRef } from '@salutejs/plasma-core';
@@ -1955,8 +1957,6 @@ default: PolymorphicClassName;
1955
1957
  // @public (undocumented)
1956
1958
  export const DropdownItem: React_2.ForwardRefExoticComponent<DropdownItemProps & React_2.RefAttributes<HTMLDivElement>>;
1957
1959
 
1958
- export { DropdownItemOption }
1959
-
1960
1960
  export { DropdownItemProps }
1961
1961
 
1962
1962
  export { DropdownItemType }
@@ -1971,10 +1971,7 @@ export const DropdownPopup: React_2.ForwardRefExoticComponent<DropdownPopupProps
1971
1971
 
1972
1972
  export { DropdownPopupProps }
1973
1973
 
1974
- // Warning: (ae-forgotten-export) The symbol "DropdownNewHope" needs to be exported by the entry point index.d.ts
1975
- //
1976
- // @public (undocumented)
1977
- export type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> & Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;
1974
+ export { DropdownProps }
1978
1975
 
1979
1976
  // @public (undocumented)
1980
1977
  export const Dropzone: FunctionComponent<PropsType< {
@@ -3621,17 +3618,14 @@ export { SegmentProvider }
3621
3618
 
3622
3619
  export { SegmentProviderProps }
3623
3620
 
3621
+ // Warning: (ae-forgotten-export) The symbol "SelectProps_2" needs to be exported by the entry point index.d.ts
3622
+ //
3624
3623
  // @public (undocumented)
3625
- export const Select: <T, K extends SelectItemOption>(props: SelectProps<T, K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
3624
+ export const Select: <T, K extends DropdownNodeSelect>(props: SelectProps_2<T, K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
3626
3625
 
3627
3626
  export { SelectGroup }
3628
3627
 
3629
- export { SelectItemOption }
3630
-
3631
- // Warning: (ae-forgotten-export) The symbol "SelectNewHope" needs to be exported by the entry point index.d.ts
3632
- //
3633
- // @public (undocumented)
3634
- export type SelectProps<T, K extends SelectItemOption> = DistributiveOmit<MergedSelectProps<T, K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
3628
+ export { SelectProps }
3635
3629
 
3636
3630
  export { SelectPropsHope }
3637
3631
 
@@ -4445,6 +4439,8 @@ export { TimingFunction }
4445
4439
  export const Toast: FunctionComponent<PropsType< {
4446
4440
  view: {
4447
4441
  default: PolymorphicClassName;
4442
+ positive: PolymorphicClassName;
4443
+ negative: PolymorphicClassName;
4448
4444
  primary: PolymorphicClassName;
4449
4445
  dark: PolymorphicClassName;
4450
4446
  light: PolymorphicClassName;
@@ -1,7 +0,0 @@
1
- .d1bsn3dp{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
2
- .ptjd8cf{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
3
- .d1i63r6p{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
4
- .l1918q62{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
5
- .m1jmouzj{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
6
- .d1hfuauu{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
7
- .th1sjxu{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
@@ -1,7 +0,0 @@
1
- .d1bsn3dp{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
2
- .ptjd8cf{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
3
- .d1i63r6p{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
4
- .l1918q62{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
5
- .m1jmouzj{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
6
- .d1hfuauu{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
7
- .th1sjxu{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}