@salutejs/sdds-serv 0.233.2-canary.1732.13047023818.0 → 0.234.0-canary.1719.12951148116.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-serv.api.md +12 -28
- package/components/Combobox/Combobox.d.ts +1 -1
- package/components/Combobox/Combobox.js.map +1 -1
- package/components/Combobox/index.d.ts +0 -2
- package/components/Dropdown/Dropdown.d.ts +1 -40
- package/components/Dropdown/Dropdown.js.map +1 -1
- package/components/Dropdown/index.d.ts +0 -2
- package/components/Select/Select.d.ts +1 -1
- package/components/Select/Select.js.map +1 -1
- package/components/Select/index.d.ts +0 -2
- package/components/Toast/Toast.config.d.ts +10 -0
- package/components/Toast/Toast.config.js +16 -6
- package/components/Toast/Toast.config.js.map +1 -1
- package/components/Toast/Toast.config_mtfyaa.css +8 -0
- package/components/Toast/Toast.css +8 -6
- package/components/Toast/Toast.d.ts +2 -0
- package/emotion/cjs/components/Toast/Toast.config.js +16 -6
- package/emotion/cjs/components/Toast/Toast.stories.tsx +12 -8
- package/emotion/es/components/Toast/Toast.config.js +16 -6
- package/emotion/es/components/Toast/Toast.stories.tsx +12 -8
- package/es/components/Combobox/Combobox.js.map +1 -1
- package/es/components/Dropdown/Dropdown.js.map +1 -1
- package/es/components/Select/Select.js.map +1 -1
- package/es/components/Toast/Toast.config.js +16 -6
- package/es/components/Toast/Toast.config.js.map +1 -1
- package/es/components/Toast/Toast.config_mtfyaa.css +8 -0
- package/es/components/Toast/Toast.css +8 -6
- package/es/index.css +8 -6
- package/package.json +3 -3
- package/styled-components/cjs/components/Toast/Toast.config.js +16 -6
- package/styled-components/es/components/Toast/Toast.config.js +16 -6
- package/components/Toast/Toast.config_7vhrqm.css +0 -6
- package/es/components/Toast/Toast.config_7vhrqm.css +0 -6
package/api/sdds-serv.api.md
CHANGED
@@ -61,8 +61,7 @@ import { ColCount } from '@salutejs/plasma-new-hope/styled-components';
|
|
61
61
|
import { ColOffsetProps } from '@salutejs/plasma-new-hope/styled-components';
|
62
62
|
import { ColProps } from '@salutejs/plasma-new-hope/styled-components';
|
63
63
|
import { ColSizeProps } from '@salutejs/plasma-new-hope/styled-components';
|
64
|
-
import {
|
65
|
-
import type { ComboboxProps as ComboboxProps_2 } from '@salutejs/plasma-new-hope';
|
64
|
+
import type { ComboboxProps } from '@salutejs/plasma-new-hope';
|
66
65
|
import { CommitInstanceCallback } from '@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types';
|
67
66
|
import { ComponentProps } from 'react';
|
68
67
|
import { CounterProps } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -95,7 +94,7 @@ import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components'
|
|
95
94
|
import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
|
96
95
|
import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
|
97
96
|
import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
|
98
|
-
import { DropdownItemOption } from '@salutejs/plasma-new-hope';
|
97
|
+
import type { DropdownItemOption } from '@salutejs/plasma-new-hope';
|
99
98
|
import type { DropdownNewProps } from '@salutejs/plasma-new-hope';
|
100
99
|
import { DropdownNodeSelect } from '@salutejs/plasma-new-hope/styled-components';
|
101
100
|
import { DropdownPlacement } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
|
@@ -136,6 +135,8 @@ import { ImgHTMLAttributes } from 'react';
|
|
136
135
|
import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
|
137
136
|
import { InputHTMLAttributes } from '@salutejs/plasma-new-hope/styled-components';
|
138
137
|
import { InputHTMLAttributes as InputHTMLAttributes_2 } from 'react';
|
138
|
+
import type { ItemOption } from '@salutejs/plasma-new-hope';
|
139
|
+
import type { ItemOptionSelect } from '@salutejs/plasma-new-hope';
|
139
140
|
import { JSXElementConstructor } from 'react';
|
140
141
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
141
142
|
import { LabelProps } from '@salutejs/plasma-new-hope/types/components/TextField/TextField.types';
|
@@ -175,7 +176,7 @@ import { priceClasses } from '@salutejs/plasma-new-hope/styled-components';
|
|
175
176
|
import { PriceProps } from '@salutejs/plasma-new-hope/types/components/Price/Price.types';
|
176
177
|
import { ProgressProps } from '@salutejs/plasma-new-hope/styled-components';
|
177
178
|
import { Property } from 'csstype';
|
178
|
-
import { Props } from '@salutejs/plasma-new-hope/types/components/EmptyState/EmptyState.types';
|
179
|
+
import { Props as Props_2 } from '@salutejs/plasma-new-hope/types/components/EmptyState/EmptyState.types';
|
179
180
|
import { PropsType } from '@salutejs/plasma-new-hope/types/engines/types';
|
180
181
|
import { RadioGroup } from '@salutejs/plasma-new-hope/styled-components';
|
181
182
|
import { RangeInputRefs } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -199,7 +200,6 @@ import { SegmentGroupProps } from '@salutejs/plasma-new-hope/styled-components';
|
|
199
200
|
import { SegmentItemProps } from '@salutejs/plasma-new-hope/styled-components';
|
200
201
|
import { SegmentProvider } from '@salutejs/plasma-new-hope/styled-components';
|
201
202
|
import { SegmentProviderProps } from '@salutejs/plasma-new-hope/styled-components';
|
202
|
-
import { ItemOptionSelect as SelectItemOption } from '@salutejs/plasma-new-hope';
|
203
203
|
import { SelectPlacement } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
|
204
204
|
import { SelectPlacementBasic } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
|
205
205
|
import type { SelectProps as SelectProps_2 } from '@salutejs/plasma-new-hope';
|
@@ -1397,16 +1397,10 @@ export { ColProps }
|
|
1397
1397
|
|
1398
1398
|
export { ColSizeProps }
|
1399
1399
|
|
1400
|
-
//
|
1401
|
-
export const Combobox: <T extends ComboboxItemOption>(props: ComboboxProps<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
|
1402
|
-
|
1403
|
-
export { ComboboxItemOption }
|
1404
|
-
|
1405
|
-
// Warning: (ae-forgotten-export) The symbol "PropsFromConfig" needs to be exported by the entry point index.d.ts
|
1406
|
-
// Warning: (ae-forgotten-export) The symbol "ComboboxNew" needs to be exported by the entry point index.d.ts
|
1400
|
+
// Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts
|
1407
1401
|
//
|
1408
1402
|
// @public (undocumented)
|
1409
|
-
export
|
1403
|
+
export const Combobox: <T extends ItemOption>(props: Props<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
|
1410
1404
|
|
1411
1405
|
// @public
|
1412
1406
|
export const Counter: FunctionComponent<PropsType< {
|
@@ -1670,13 +1664,6 @@ default: PolymorphicClassName;
|
|
1670
1664
|
hoverIndex?: number | undefined;
|
1671
1665
|
} & React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>, "size" | "view"> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
|
1672
1666
|
|
1673
|
-
export { DropdownItemOption }
|
1674
|
-
|
1675
|
-
// Warning: (ae-forgotten-export) The symbol "DropdownNewHope" needs to be exported by the entry point index.d.ts
|
1676
|
-
//
|
1677
|
-
// @public (undocumented)
|
1678
|
-
export type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> & Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;
|
1679
|
-
|
1680
1667
|
// @public (undocumented)
|
1681
1668
|
export const Dropzone: FunctionComponent<PropsType< {
|
1682
1669
|
view: {
|
@@ -1763,7 +1750,7 @@ m: PolymorphicClassName;
|
|
1763
1750
|
s: PolymorphicClassName;
|
1764
1751
|
xs: PolymorphicClassName;
|
1765
1752
|
};
|
1766
|
-
}> &
|
1753
|
+
}> & Props_2 & RefAttributes<HTMLDivElement>>;
|
1767
1754
|
|
1768
1755
|
// @public (undocumented)
|
1769
1756
|
export const Flow: FunctionComponent<PropsType< {}> & FlowProps & {
|
@@ -3181,15 +3168,10 @@ export { SegmentProvider }
|
|
3181
3168
|
|
3182
3169
|
export { SegmentProviderProps }
|
3183
3170
|
|
3184
|
-
//
|
3185
|
-
export const Select: <K extends SelectItemOption>(props: SelectProps<K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
|
3186
|
-
|
3187
|
-
export { SelectItemOption }
|
3188
|
-
|
3189
|
-
// Warning: (ae-forgotten-export) The symbol "SelectNewHope" needs to be exported by the entry point index.d.ts
|
3171
|
+
// Warning: (ae-forgotten-export) The symbol "SelectProps" needs to be exported by the entry point index.d.ts
|
3190
3172
|
//
|
3191
3173
|
// @public (undocumented)
|
3192
|
-
export
|
3174
|
+
export const Select: <K extends ItemOptionSelect>(props: SelectProps<K> & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | null;
|
3193
3175
|
|
3194
3176
|
// @public
|
3195
3177
|
export const Sheet: FunctionComponent<PropsType< {
|
@@ -4314,6 +4296,8 @@ export { textXSBold }
|
|
4314
4296
|
export const Toast: FunctionComponent<PropsType< {
|
4315
4297
|
view: {
|
4316
4298
|
default: PolymorphicClassName;
|
4299
|
+
positive: PolymorphicClassName;
|
4300
|
+
negative: PolymorphicClassName;
|
4317
4301
|
dark: PolymorphicClassName;
|
4318
4302
|
light: PolymorphicClassName;
|
4319
4303
|
};
|
@@ -1161,6 +1161,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1161
1161
|
hintContentLeft?: undefined;
|
1162
1162
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>))>;
|
1163
1163
|
declare type PropsFromConfig = keyof typeof config['variations'];
|
1164
|
-
|
1164
|
+
declare type Props<T extends ItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> & DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;
|
1165
1165
|
declare const Combobox: <T extends ItemOption>(props: Props<T> & React.RefAttributes<HTMLInputElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
1166
1166
|
export { Combobox };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.js","sources":["../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps } from 'react';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nconst ComboboxNew = component(mergedConfig);\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\
|
1
|
+
{"version":3,"file":"Combobox.js","sources":["../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps } from 'react';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nconst ComboboxNew = component(mergedConfig);\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\ntype Props<T extends ItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> &\n DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\nconst ComboboxComponent = <T extends ItemOption>(props: Props<T>, ref: React.ForwardedRef<HTMLInputElement>) => {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n};\n\nconst Combobox = fixedForwardRef(ComboboxComponent);\n\nexport { Combobox };\n"],"names":["mergedConfig","mergeConfig","comboboxNewConfig","config","ComboboxNew","component","ComboboxComponent","props","ref","React","createElement","_extends","Combobox","fixedForwardRef"],"mappings":";;;;;;;;;;;;;AAWA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,+BAAiB,EAAEC,sBAAM,CAAC,CAAA;AAC3D,IAAMC,WAAW,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAO3C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CAA0BC,KAAe,EAAEC,GAAyC,EAAK;AAC5G,EAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACN,WAAW,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,6BAAe,CAACP,iBAAiB;;;;"}
|
@@ -1,44 +1,5 @@
|
|
1
1
|
import type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';
|
2
|
-
import 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>, "size" | "view"> & 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 +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\
|
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;;;;"}
|
@@ -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
|
-
|
330
|
+
declare type SelectProps<K extends ItemOptionSelect> = DistributiveOmit<SelectPropsNewHope<K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
|
331
331
|
declare const Select: <K extends ItemOptionSelect>(props: SelectProps<K> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
332
332
|
export { Select };
|
@@ -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 type {\n SelectProps as SelectPropsNewHope,\n ItemOptionSelect,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\
|
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 type {\n SelectProps as SelectPropsNewHope,\n ItemOptionSelect,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\ntype SelectProps<K extends ItemOptionSelect> = DistributiveOmit<\n SelectPropsNewHope<K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <K extends ItemOptionSelect>(props: SelectProps<K>, ref: ForwardedRef<HTMLButtonElement>) => {\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,CAAgCC,KAAqB,EAAEC,GAAoC,EAAK;AACjH,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;;;;"}
|
@@ -7,7 +7,17 @@ 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;
|
12
|
+
/**
|
13
|
+
* @deprecated
|
14
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
15
|
+
*/
|
10
16
|
dark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
17
|
+
/**
|
18
|
+
* @deprecated
|
19
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
20
|
+
*/
|
11
21
|
light: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
22
|
};
|
13
23
|
size: {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require('./Toast.
|
1
|
+
require('./Toast.config_mtfyaa.css');
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
@@ -12,17 +12,27 @@ var config = {
|
|
12
12
|
variations: {
|
13
13
|
view: {
|
14
14
|
"default": "d1bsn3dp",
|
15
|
-
|
16
|
-
|
15
|
+
positive: "ptjd8cf",
|
16
|
+
negative: "n1i63r6p",
|
17
|
+
/**
|
18
|
+
* @deprecated
|
19
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
20
|
+
*/
|
21
|
+
dark: "d1918q62",
|
22
|
+
/**
|
23
|
+
* @deprecated
|
24
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
25
|
+
*/
|
26
|
+
light: "l1jmouzj"
|
17
27
|
},
|
18
28
|
size: {
|
19
|
-
m: "
|
29
|
+
m: "m1hfuauu"
|
20
30
|
},
|
21
31
|
closeIconType: {
|
22
|
-
"default": "
|
32
|
+
"default": "dh1sjxu"
|
23
33
|
},
|
24
34
|
pilled: {
|
25
|
-
"true": "
|
35
|
+
"true": "ttkpp4s"
|
26
36
|
}
|
27
37
|
}
|
28
38
|
};
|
@@ -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 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.
|
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 * светлый и темный фон регулировать через `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","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,IAAI,EAMH,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,KAAK,EAAA,UAAA;KAOR;AACDP,IAAAA,IAAI,EAAE;AACFQ,MAAAA,CAAC,EAAA,UAAA;KAcJ;AACDP,IAAAA,aAAa,EAAE;MACXE,SAAO,EAAA,SAAA;KAIV;AACDM,IAAAA,MAAM,EAAE;MACJC,MAAI,EAAA,SAAA;AAMR,KAAA;AACJ,GAAA;AACJ;;;;"}
|
@@ -0,0 +1,8 @@
|
|
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
|
+
.d1918q62{--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);}
|
5
|
+
.l1jmouzj{--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);}
|
6
|
+
.m1hfuauu{--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;}
|
7
|
+
.dh1sjxu{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
8
|
+
.ttkpp4s{--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,6 +1,8 @@
|
|
1
|
-
.
|
2
|
-
.
|
3
|
-
.
|
4
|
-
.
|
5
|
-
.
|
6
|
-
.
|
1
|
+
.Toast_config_mtfyaa_d1bsn3dp__5ad6d13b{--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_mtfyaa_ptjd8cf__5ad6d13b{--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_mtfyaa_n1i63r6p__5ad6d13b{--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_mtfyaa_d1918q62__5ad6d13b{--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);}
|
5
|
+
.Toast_config_mtfyaa_l1jmouzj__5ad6d13b{--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);}
|
6
|
+
.Toast_config_mtfyaa_m1hfuauu__5ad6d13b{--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;}
|
7
|
+
.Toast_config_mtfyaa_dh1sjxu__5ad6d13b{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
8
|
+
.Toast_config_mtfyaa_ttkpp4s__5ad6d13b{--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;}
|
@@ -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
|
dark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
9
|
light: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
8
10
|
};
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.config = void 0;
|
7
7
|
var _emotion = /*#__PURE__*/require("@salutejs/plasma-new-hope/emotion");
|
8
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
8
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
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,17 +16,27 @@ var config = exports.config = {
|
|
16
16
|
variations: {
|
17
17
|
view: {
|
18
18
|
"default": /*#__PURE__*/(0, _emotion.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 "])), _emotion.toastTokens.color, _emotion.toastTokens.background, _emotion.toastTokens.closeIconColor, _emotion.toastTokens.closeIconColorOnHover),
|
19
|
-
|
20
|
-
|
19
|
+
positive: /*#__PURE__*/(0, _emotion.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 "])), _emotion.toastTokens.color, _emotion.toastTokens.background, _emotion.toastTokens.contentLeftColor, _emotion.toastTokens.closeIconColor, _emotion.toastTokens.closeIconColorOnHover),
|
20
|
+
negative: /*#__PURE__*/(0, _emotion.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 "])), _emotion.toastTokens.color, _emotion.toastTokens.background, _emotion.toastTokens.contentLeftColor, _emotion.toastTokens.closeIconColor, _emotion.toastTokens.closeIconColorOnHover),
|
21
|
+
/**
|
22
|
+
* @deprecated
|
23
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
24
|
+
*/
|
25
|
+
dark: /*#__PURE__*/(0, _emotion.css)(_templateObject4 || (_templateObject4 = /*#__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 "])), _emotion.toastTokens.color, _emotion.toastTokens.background, _emotion.toastTokens.closeIconColor, _emotion.toastTokens.closeIconColorOnHover),
|
26
|
+
/**
|
27
|
+
* @deprecated
|
28
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
29
|
+
*/
|
30
|
+
light: /*#__PURE__*/(0, _emotion.css)(_templateObject5 || (_templateObject5 = /*#__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 "])), _emotion.toastTokens.color, _emotion.toastTokens.background, _emotion.toastTokens.closeIconColor, _emotion.toastTokens.closeIconColorOnHover)
|
21
31
|
},
|
22
32
|
size: {
|
23
|
-
m: /*#__PURE__*/(0, _emotion.css)(
|
33
|
+
m: /*#__PURE__*/(0, _emotion.css)(_templateObject6 || (_templateObject6 = /*#__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 "])), _emotion.toastTokens.borderRadius, _emotion.toastTokens.maxWidth, _emotion.toastTokens.padding, _emotion.toastTokens.fontFamily, _emotion.toastTokens.fontSize, _emotion.toastTokens.fontStyle, _emotion.toastTokens.fontWeight, _emotion.toastTokens.letterSpacing, _emotion.toastTokens.lineHeight, _emotion.toastTokens.contentLeftMargin, _emotion.toastTokens.closeIconMargin)
|
24
34
|
},
|
25
35
|
closeIconType: {
|
26
|
-
"default": /*#__PURE__*/(0, _emotion.css)(
|
36
|
+
"default": /*#__PURE__*/(0, _emotion.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), _emotion.toastTokens.closeIconButtonSize, _emotion.toastTokens.closeIconSize)
|
27
37
|
},
|
28
38
|
pilled: {
|
29
|
-
"true": /*#__PURE__*/(0, _emotion.css)(
|
39
|
+
"true": /*#__PURE__*/(0, _emotion.css)(_templateObject8 || (_templateObject8 = /*#__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 "])), _emotion.toastTokens.pilledBorderRadius, _emotion.toastTokens.contentLeftMargin, _emotion.toastTokens.closeIconMargin)
|
30
40
|
}
|
31
41
|
}
|
32
42
|
};
|
@@ -10,23 +10,22 @@ import { ToastController, ToastProvider } from './Toast';
|
|
10
10
|
|
11
11
|
import { Toast, useToast } from '.';
|
12
12
|
|
13
|
+
const views = ['default', 'positive', 'negative'];
|
14
|
+
|
13
15
|
const meta: Meta<typeof ToastController> = {
|
14
16
|
title: 'Overlay/Toast',
|
15
17
|
decorators: [InSpacingDecorator],
|
16
18
|
argTypes: {
|
17
19
|
view: {
|
18
|
-
options:
|
20
|
+
options: views,
|
19
21
|
control: {
|
20
22
|
type: 'select',
|
21
23
|
},
|
22
24
|
},
|
23
|
-
|
24
|
-
|
25
|
-
control: {
|
26
|
-
type: 'inline-radio',
|
27
|
-
},
|
25
|
+
textColor: {
|
26
|
+
control: 'color',
|
28
27
|
},
|
29
|
-
...disableProps(['role', 'onShow', 'onHide', 'contentLeft']),
|
28
|
+
...disableProps(['closeIconType', 'size', 'role', 'onShow', 'onHide', 'contentLeft']),
|
30
29
|
},
|
31
30
|
};
|
32
31
|
|
@@ -54,7 +53,6 @@ const BellIcon = (props) => (
|
|
54
53
|
);
|
55
54
|
|
56
55
|
const ToastContainer = styled.div`
|
57
|
-
position: fixed;
|
58
56
|
transform: translateX(50%);
|
59
57
|
`;
|
60
58
|
|
@@ -66,7 +64,9 @@ const Container = styled.div`
|
|
66
64
|
export const ToastComponent: StoryComponent = {
|
67
65
|
args: {
|
68
66
|
text: 'Текст всплывающего уведомления',
|
67
|
+
textColor: undefined,
|
69
68
|
view: 'default',
|
69
|
+
closeIconType: 'default',
|
70
70
|
size: 'm',
|
71
71
|
hasClose: true,
|
72
72
|
enableContentLeft: true,
|
@@ -90,6 +90,8 @@ const StoryLiveDemo = ({
|
|
90
90
|
size,
|
91
91
|
hasClose,
|
92
92
|
enableContentLeft,
|
93
|
+
closeIconType,
|
94
|
+
textColor,
|
93
95
|
}: StoryProps) => {
|
94
96
|
const { showToast, hideToast } = useToast();
|
95
97
|
const contentLeft = enableContentLeft && <BellIcon width="1rem" height="1rem" />;
|
@@ -110,6 +112,8 @@ const StoryLiveDemo = ({
|
|
110
112
|
view,
|
111
113
|
size,
|
112
114
|
hasClose,
|
115
|
+
closeIconType,
|
116
|
+
textColor,
|
113
117
|
onHide: action('onHide'),
|
114
118
|
onShow: action('onShow'),
|
115
119
|
});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
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/emotion';
|
4
4
|
export var config = {
|
@@ -10,17 +10,27 @@ 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
|
-
|
14
|
-
|
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),
|
15
|
+
/**
|
16
|
+
* @deprecated
|
17
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
18
|
+
*/
|
19
|
+
dark: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__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),
|
20
|
+
/**
|
21
|
+
* @deprecated
|
22
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
23
|
+
*/
|
24
|
+
light: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__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)
|
15
25
|
},
|
16
26
|
size: {
|
17
|
-
m: /*#__PURE__*/css(
|
27
|
+
m: /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__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)
|
18
28
|
},
|
19
29
|
closeIconType: {
|
20
|
-
"default": /*#__PURE__*/css(
|
30
|
+
"default": /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), toastTokens.closeIconButtonSize, toastTokens.closeIconSize)
|
21
31
|
},
|
22
32
|
pilled: {
|
23
|
-
"true": /*#__PURE__*/css(
|
33
|
+
"true": /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__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)
|
24
34
|
}
|
25
35
|
}
|
26
36
|
};
|
@@ -10,23 +10,22 @@ import { ToastController, ToastProvider } from './Toast';
|
|
10
10
|
|
11
11
|
import { Toast, useToast } from '.';
|
12
12
|
|
13
|
+
const views = ['default', 'positive', 'negative'];
|
14
|
+
|
13
15
|
const meta: Meta<typeof ToastController> = {
|
14
16
|
title: 'Overlay/Toast',
|
15
17
|
decorators: [InSpacingDecorator],
|
16
18
|
argTypes: {
|
17
19
|
view: {
|
18
|
-
options:
|
20
|
+
options: views,
|
19
21
|
control: {
|
20
22
|
type: 'select',
|
21
23
|
},
|
22
24
|
},
|
23
|
-
|
24
|
-
|
25
|
-
control: {
|
26
|
-
type: 'inline-radio',
|
27
|
-
},
|
25
|
+
textColor: {
|
26
|
+
control: 'color',
|
28
27
|
},
|
29
|
-
...disableProps(['role', 'onShow', 'onHide', 'contentLeft']),
|
28
|
+
...disableProps(['closeIconType', 'size', 'role', 'onShow', 'onHide', 'contentLeft']),
|
30
29
|
},
|
31
30
|
};
|
32
31
|
|
@@ -54,7 +53,6 @@ const BellIcon = (props) => (
|
|
54
53
|
);
|
55
54
|
|
56
55
|
const ToastContainer = styled.div`
|
57
|
-
position: fixed;
|
58
56
|
transform: translateX(50%);
|
59
57
|
`;
|
60
58
|
|
@@ -66,7 +64,9 @@ const Container = styled.div`
|
|
66
64
|
export const ToastComponent: StoryComponent = {
|
67
65
|
args: {
|
68
66
|
text: 'Текст всплывающего уведомления',
|
67
|
+
textColor: undefined,
|
69
68
|
view: 'default',
|
69
|
+
closeIconType: 'default',
|
70
70
|
size: 'm',
|
71
71
|
hasClose: true,
|
72
72
|
enableContentLeft: true,
|
@@ -90,6 +90,8 @@ const StoryLiveDemo = ({
|
|
90
90
|
size,
|
91
91
|
hasClose,
|
92
92
|
enableContentLeft,
|
93
|
+
closeIconType,
|
94
|
+
textColor,
|
93
95
|
}: StoryProps) => {
|
94
96
|
const { showToast, hideToast } = useToast();
|
95
97
|
const contentLeft = enableContentLeft && <BellIcon width="1rem" height="1rem" />;
|
@@ -110,6 +112,8 @@ const StoryLiveDemo = ({
|
|
110
112
|
view,
|
111
113
|
size,
|
112
114
|
hasClose,
|
115
|
+
closeIconType,
|
116
|
+
textColor,
|
113
117
|
onHide: action('onHide'),
|
114
118
|
onShow: action('onShow'),
|
115
119
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.js","sources":["../../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps } from 'react';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nconst ComboboxNew = component(mergedConfig);\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\
|
1
|
+
{"version":3,"file":"Combobox.js","sources":["../../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps } from 'react';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nconst ComboboxNew = component(mergedConfig);\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\ntype Props<T extends ItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> &\n DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\nconst ComboboxComponent = <T extends ItemOption>(props: Props<T>, ref: React.ForwardedRef<HTMLInputElement>) => {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n};\n\nconst Combobox = fixedForwardRef(ComboboxComponent);\n\nexport { Combobox };\n"],"names":["mergedConfig","mergeConfig","comboboxNewConfig","config","ComboboxNew","component","ComboboxComponent","props","ref","React","createElement","_extends","Combobox","fixedForwardRef"],"mappings":";;;;;AAWA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,iBAAiB,EAAEC,MAAM,CAAC,CAAA;AAC3D,IAAMC,WAAW,gBAAGC,SAAS,CAACL,YAAY,CAAC,CAAA;AAO3C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CAA0BC,KAAe,EAAEC,GAAyC,EAAK;AAC5G,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,WAAW,EAAAO,QAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,eAAe,CAACP,iBAAiB;;;;"}
|
@@ -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\
|
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 type {\n SelectProps as SelectPropsNewHope,\n ItemOptionSelect,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\
|
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 type {\n SelectProps as SelectPropsNewHope,\n ItemOptionSelect,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\ntype SelectProps<K extends ItemOptionSelect> = DistributiveOmit<\n SelectPropsNewHope<K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <K extends ItemOptionSelect>(props: SelectProps<K>, ref: ForwardedRef<HTMLButtonElement>) => {\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,CAAgCC,KAAqB,EAAEC,GAAoC,EAAK;AACjH,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.
|
1
|
+
import './Toast.config_mtfyaa.css';
|
2
2
|
var config = {
|
3
3
|
defaults: {
|
4
4
|
view: 'default',
|
@@ -8,17 +8,27 @@ var config = {
|
|
8
8
|
variations: {
|
9
9
|
view: {
|
10
10
|
"default": "d1bsn3dp",
|
11
|
-
|
12
|
-
|
11
|
+
positive: "ptjd8cf",
|
12
|
+
negative: "n1i63r6p",
|
13
|
+
/**
|
14
|
+
* @deprecated
|
15
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
16
|
+
*/
|
17
|
+
dark: "d1918q62",
|
18
|
+
/**
|
19
|
+
* @deprecated
|
20
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
21
|
+
*/
|
22
|
+
light: "l1jmouzj"
|
13
23
|
},
|
14
24
|
size: {
|
15
|
-
m: "
|
25
|
+
m: "m1hfuauu"
|
16
26
|
},
|
17
27
|
closeIconType: {
|
18
|
-
"default": "
|
28
|
+
"default": "dh1sjxu"
|
19
29
|
},
|
20
30
|
pilled: {
|
21
|
-
"true": "
|
31
|
+
"true": "ttkpp4s"
|
22
32
|
}
|
23
33
|
}
|
24
34
|
};
|
@@ -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 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.
|
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 * светлый и темный фон регулировать через `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","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,IAAI,EAMH,UAAA;AACD;AACZ;AACA;AACA;AACYC,MAAAA,KAAK,EAAA,UAAA;KAOR;AACDP,IAAAA,IAAI,EAAE;AACFQ,MAAAA,CAAC,EAAA,UAAA;KAcJ;AACDP,IAAAA,aAAa,EAAE;MACXE,SAAO,EAAA,SAAA;KAIV;AACDM,IAAAA,MAAM,EAAE;MACJC,MAAI,EAAA,SAAA;AAMR,KAAA;AACJ,GAAA;AACJ;;;;"}
|
@@ -0,0 +1,8 @@
|
|
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
|
+
.d1918q62{--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);}
|
5
|
+
.l1jmouzj{--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);}
|
6
|
+
.m1hfuauu{--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;}
|
7
|
+
.dh1sjxu{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
8
|
+
.ttkpp4s{--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,6 +1,8 @@
|
|
1
|
-
.
|
2
|
-
.
|
3
|
-
.
|
4
|
-
.
|
5
|
-
.
|
6
|
-
.
|
1
|
+
.Toast_config_mtfyaa_d1bsn3dp__5ad6d13b{--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_mtfyaa_ptjd8cf__5ad6d13b{--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_mtfyaa_n1i63r6p__5ad6d13b{--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_mtfyaa_d1918q62__5ad6d13b{--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);}
|
5
|
+
.Toast_config_mtfyaa_l1jmouzj__5ad6d13b{--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);}
|
6
|
+
.Toast_config_mtfyaa_m1hfuauu__5ad6d13b{--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;}
|
7
|
+
.Toast_config_mtfyaa_dh1sjxu__5ad6d13b{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
8
|
+
.Toast_config_mtfyaa_ttkpp4s__5ad6d13b{--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/es/index.css
CHANGED
@@ -604,12 +604,14 @@
|
|
604
604
|
|
605
605
|
|
606
606
|
|
607
|
-
.
|
608
|
-
.
|
609
|
-
.
|
610
|
-
.
|
611
|
-
.
|
612
|
-
.
|
607
|
+
.Toast_config_mtfyaa_d1bsn3dp__5ad6d13b{--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);}
|
608
|
+
.Toast_config_mtfyaa_ptjd8cf__5ad6d13b{--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);}
|
609
|
+
.Toast_config_mtfyaa_n1i63r6p__5ad6d13b{--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);}
|
610
|
+
.Toast_config_mtfyaa_d1918q62__5ad6d13b{--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);}
|
611
|
+
.Toast_config_mtfyaa_l1jmouzj__5ad6d13b{--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);}
|
612
|
+
.Toast_config_mtfyaa_m1hfuauu__5ad6d13b{--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;}
|
613
|
+
.Toast_config_mtfyaa_dh1sjxu__5ad6d13b{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
614
|
+
.Toast_config_mtfyaa_ttkpp4s__5ad6d13b{--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;}
|
613
615
|
|
614
616
|
.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);}
|
615
617
|
.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;}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-serv",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.234.0-canary.1719.12951148116.0",
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS SERV web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -32,7 +32,7 @@
|
|
32
32
|
"directory": "packages/sdds-serv"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@salutejs/plasma-new-hope": "0.
|
35
|
+
"@salutejs/plasma-new-hope": "0.249.0-canary.1719.12951148116.0",
|
36
36
|
"@salutejs/sdds-themes": "0.31.0"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
@@ -136,5 +136,5 @@
|
|
136
136
|
"sideEffects": [
|
137
137
|
"*.css"
|
138
138
|
],
|
139
|
-
"gitHead": "
|
139
|
+
"gitHead": "948aef0496344b4eb08549a4a05ae39eaca108a4"
|
140
140
|
}
|
@@ -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;
|
8
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
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,17 +16,27 @@ 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
|
-
|
20
|
-
|
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),
|
21
|
+
/**
|
22
|
+
* @deprecated
|
23
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
24
|
+
*/
|
25
|
+
dark: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__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),
|
26
|
+
/**
|
27
|
+
* @deprecated
|
28
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
29
|
+
*/
|
30
|
+
light: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__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)
|
21
31
|
},
|
22
32
|
size: {
|
23
|
-
m: /*#__PURE__*/(0, _styledComponents.css)(
|
33
|
+
m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__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)
|
24
34
|
},
|
25
35
|
closeIconType: {
|
26
|
-
"default": /*#__PURE__*/(0, _styledComponents.css)(
|
36
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), _styledComponents.toastTokens.closeIconButtonSize, _styledComponents.toastTokens.closeIconSize)
|
27
37
|
},
|
28
38
|
pilled: {
|
29
|
-
"true": /*#__PURE__*/(0, _styledComponents.css)(
|
39
|
+
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject8 || (_templateObject8 = /*#__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)
|
30
40
|
}
|
31
41
|
}
|
32
42
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
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,17 +10,27 @@ 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
|
-
|
14
|
-
|
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),
|
15
|
+
/**
|
16
|
+
* @deprecated
|
17
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
18
|
+
*/
|
19
|
+
dark: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__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),
|
20
|
+
/**
|
21
|
+
* @deprecated
|
22
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
23
|
+
*/
|
24
|
+
light: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__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)
|
15
25
|
},
|
16
26
|
size: {
|
17
|
-
m: /*#__PURE__*/css(
|
27
|
+
m: /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__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)
|
18
28
|
},
|
19
29
|
closeIconType: {
|
20
|
-
"default": /*#__PURE__*/css(
|
30
|
+
"default": /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), toastTokens.closeIconButtonSize, toastTokens.closeIconSize)
|
21
31
|
},
|
22
32
|
pilled: {
|
23
|
-
"true": /*#__PURE__*/css(
|
33
|
+
"true": /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__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)
|
24
34
|
}
|
25
35
|
}
|
26
36
|
};
|
@@ -1,6 +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
|
-
.dtjd8cf{--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);}
|
3
|
-
.l1i63r6p{--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);}
|
4
|
-
.m1918q62{--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;}
|
5
|
-
.d1jmouzj{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
6
|
-
.t1hfuauu{--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,6 +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
|
-
.dtjd8cf{--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);}
|
3
|
-
.l1i63r6p{--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);}
|
4
|
-
.m1918q62{--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;}
|
5
|
-
.d1jmouzj{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
6
|
-
.t1hfuauu{--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;}
|