@salutejs/plasma-new-hope 0.194.0-canary.1560.11837986621.0 → 0.194.0-canary.1562.11845925215.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Combobox/ComboboxOld/Combobox.css +5 -4
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -4
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -4
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -4
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -4
- package/cjs/components/Dropdown/Dropdown.css +5 -4
- package/cjs/components/Dropdown/Dropdown.js +8 -4
- package/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/cjs/components/Dropdown/hooks/useHashMaps.js +4 -1
- package/cjs/components/Dropdown/hooks/useHashMaps.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -4
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -2
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +7 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_1b439rx.css → DropdownItem.styles_14yih1y.css} +1 -0
- package/cjs/components/Switch/Switch.css +2 -2
- package/cjs/components/Switch/Switch.tokens.js +1 -7
- package/cjs/components/Switch/Switch.tokens.js.map +1 -1
- package/cjs/components/Switch/_toggleSize/base.js +1 -1
- package/cjs/components/Switch/_toggleSize/base.js.map +1 -1
- package/cjs/components/Switch/_toggleSize/base_6i0904.css +1 -0
- package/cjs/components/Switch/_view/base.js +1 -1
- package/cjs/components/Switch/_view/base.js.map +1 -1
- package/cjs/components/Switch/_view/base_yxkf3s.css +1 -0
- package/cjs/index.css +7 -6
- package/emotion/cjs/components/Dropdown/Dropdown.js +8 -4
- package/emotion/cjs/components/Dropdown/hooks/useHashMaps.js +4 -1
- package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -2
- package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +15 -11
- package/emotion/cjs/components/Switch/Switch.tokens.js +1 -7
- package/emotion/cjs/components/Switch/_toggleSize/base.js +1 -1
- package/emotion/cjs/components/Switch/_view/base.js +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +8 -8
- package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.js +2 -5
- package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -33
- package/emotion/cjs/examples/plasma_web/components/Switch/Switch.config.js +8 -8
- package/emotion/cjs/examples/plasma_web/components/Switch/Switch.js +2 -5
- package/emotion/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -33
- package/emotion/es/components/Dropdown/Dropdown.js +8 -4
- package/emotion/es/components/Dropdown/hooks/useHashMaps.js +4 -1
- package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -3
- package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +15 -11
- package/emotion/es/components/Switch/Switch.tokens.js +1 -7
- package/emotion/es/components/Switch/_toggleSize/base.js +1 -1
- package/emotion/es/components/Switch/_view/base.js +1 -1
- package/emotion/es/examples/plasma_b2c/components/Switch/Switch.config.js +8 -8
- package/emotion/es/examples/plasma_b2c/components/Switch/Switch.js +1 -4
- package/emotion/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -33
- package/emotion/es/examples/plasma_web/components/Switch/Switch.config.js +8 -8
- package/emotion/es/examples/plasma_web/components/Switch/Switch.js +1 -4
- package/emotion/es/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -33
- package/es/components/Combobox/ComboboxOld/Combobox.css +5 -4
- package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -4
- package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -4
- package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -4
- package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -4
- package/es/components/Dropdown/Dropdown.css +5 -4
- package/es/components/Dropdown/Dropdown.js +8 -4
- package/es/components/Dropdown/Dropdown.js.map +1 -1
- package/es/components/Dropdown/hooks/useHashMaps.js +4 -1
- package/es/components/Dropdown/hooks/useHashMaps.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -4
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -3
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +7 -2
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_1b439rx.css → DropdownItem.styles_14yih1y.css} +1 -0
- package/es/components/Switch/Switch.css +2 -2
- package/es/components/Switch/Switch.tokens.js +1 -7
- package/es/components/Switch/Switch.tokens.js.map +1 -1
- package/es/components/Switch/_toggleSize/base.js +1 -1
- package/es/components/Switch/_toggleSize/base.js.map +1 -1
- package/es/components/Switch/_toggleSize/base_6i0904.css +1 -0
- package/es/components/Switch/_view/base.js +1 -1
- package/es/components/Switch/_view/base.js.map +1 -1
- package/es/components/Switch/_view/base_yxkf3s.css +1 -0
- package/es/index.css +7 -6
- package/package.json +3 -2
- package/styled-components/cjs/components/Dropdown/Dropdown.js +8 -4
- package/styled-components/cjs/components/Dropdown/hooks/useHashMaps.js +4 -1
- package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -2
- package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -2
- package/styled-components/cjs/components/Switch/Switch.tokens.js +1 -7
- package/styled-components/cjs/components/Switch/_toggleSize/base.js +1 -1
- package/styled-components/cjs/components/Switch/_view/base.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.js +2 -5
- package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -33
- package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.config.js +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.js +2 -5
- package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -33
- package/styled-components/es/components/Dropdown/Dropdown.js +8 -4
- package/styled-components/es/components/Dropdown/hooks/useHashMaps.js +4 -1
- package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +5 -3
- package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -2
- package/styled-components/es/components/Switch/Switch.tokens.js +1 -7
- package/styled-components/es/components/Switch/_toggleSize/base.js +1 -1
- package/styled-components/es/components/Switch/_view/base.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.config.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.js +1 -4
- package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -33
- package/styled-components/es/examples/plasma_web/components/Switch/Switch.config.js +1 -1
- package/styled-components/es/examples/plasma_web/components/Switch/Switch.js +1 -4
- package/styled-components/es/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -33
- package/types/components/Dropdown/Dropdown.d.ts +50 -2
- package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.types.d.ts +13 -6
- package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
- package/types/components/Dropdown/hooks/useHashMaps.d.ts +2 -1
- package/types/components/Dropdown/hooks/useHashMaps.d.ts.map +1 -1
- package/types/components/Dropdown/index.d.ts +1 -0
- package/types/components/Dropdown/index.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +1 -0
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
- package/types/components/Switch/Switch.tokens.d.ts +1 -7
- package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
- package/types/components/Switch/_toggleSize/base.d.ts.map +1 -1
- package/types/components/Switch/_view/base.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +25 -1
- package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Switch/Switch.d.ts +0 -20
- package/types/examples/plasma_b2c/components/Switch/Switch.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +25 -1
- package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Switch/Switch.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Switch/Switch.d.ts +0 -20
- package/types/examples/plasma_web/components/Switch/Switch.d.ts.map +1 -1
- package/cjs/components/Switch/_toggleSize/base_38anc0.css +0 -1
- package/cjs/components/Switch/_view/base_15atbyp.css +0 -1
- package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.outline.config.js +0 -37
- package/emotion/cjs/examples/plasma_web/components/Switch/Switch.outline.config.js +0 -37
- package/emotion/es/examples/plasma_b2c/components/Switch/Switch.outline.config.js +0 -31
- package/emotion/es/examples/plasma_web/components/Switch/Switch.outline.config.js +0 -31
- package/es/components/Switch/_toggleSize/base_38anc0.css +0 -1
- package/es/components/Switch/_view/base_15atbyp.css +0 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.outline.config.js +0 -37
- package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.outline.config.js +0 -37
- package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.outline.config.js +0 -31
- package/styled-components/es/examples/plasma_web/components/Switch/Switch.outline.config.js +0 -31
- package/types/examples/plasma_b2c/components/Switch/Switch.outline.config.d.ts +0 -30
- package/types/examples/plasma_b2c/components/Switch/Switch.outline.config.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Switch/Switch.outline.config.d.ts +0 -30
- package/types/examples/plasma_web/components/Switch/Switch.outline.config.d.ts.map +0 -1
@@ -19,7 +19,7 @@ export var config = {
|
|
19
19
|
s: /*#__PURE__*/css(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":1rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale)
|
20
20
|
},
|
21
21
|
view: {
|
22
|
-
"default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":
|
22
|
+
"default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":var(--on-dark-surface-solid-default);", ":0 1px 1px rgba(0,0,0,0.11);"], switchTokens.labelColor, switchTokens.descriptionColor, switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.thumbBackgroundColor, switchTokens.thumbBoxShadow)
|
23
23
|
},
|
24
24
|
disabled: {
|
25
25
|
"true": /*#__PURE__*/css(["", ":0.4;"], switchTokens.disabledOpacity)
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { switchConfig } from '../../../../components/Switch';
|
2
2
|
import { component, mergeConfig } from '../../../../engines';
|
3
3
|
import { config } from './Switch.config';
|
4
|
-
import { config as outlineConfig } from './Switch.outline.config';
|
5
4
|
var mergedConfig = /*#__PURE__*/mergeConfig(switchConfig, config);
|
6
|
-
export var Switch = /*#__PURE__*/component(mergedConfig);
|
7
|
-
var mergedOutlineConfig = /*#__PURE__*/mergeConfig(switchConfig, outlineConfig);
|
8
|
-
export var SwitchOutline = /*#__PURE__*/component(mergedOutlineConfig);
|
5
|
+
export var Switch = /*#__PURE__*/component(mergedConfig);
|
@@ -9,7 +9,7 @@ import { mergeConfig } from '../../../../engines';
|
|
9
9
|
import { WithTheme, argTypesFromConfig } from '../../../_helpers';
|
10
10
|
|
11
11
|
import { config } from './Switch.config';
|
12
|
-
import { Switch
|
12
|
+
import { Switch } from './Switch';
|
13
13
|
|
14
14
|
type SwitchProps = ComponentProps<typeof Switch>;
|
15
15
|
|
@@ -72,35 +72,3 @@ export const Default: StoryObj<SwitchProps> = {
|
|
72
72
|
},
|
73
73
|
render: (args) => <StoryDefault {...args} />,
|
74
74
|
};
|
75
|
-
|
76
|
-
const StoryOutline = (args: SwitchProps) => {
|
77
|
-
const value = 'yes';
|
78
|
-
const name = 'agree';
|
79
|
-
const [checked, setChecked] = useState(true);
|
80
|
-
|
81
|
-
return (
|
82
|
-
<StyledWrapper>
|
83
|
-
<SwitchOutline
|
84
|
-
value={value}
|
85
|
-
name={name}
|
86
|
-
checked={checked}
|
87
|
-
onChange={(event) => {
|
88
|
-
setChecked(event.target.checked);
|
89
|
-
onChange(event);
|
90
|
-
}}
|
91
|
-
onFocus={onFocus}
|
92
|
-
onBlur={onBlur}
|
93
|
-
{...args}
|
94
|
-
/>
|
95
|
-
</StyledWrapper>
|
96
|
-
);
|
97
|
-
};
|
98
|
-
|
99
|
-
export const Outline: StoryObj<SwitchProps> = {
|
100
|
-
args: {
|
101
|
-
size: 'm',
|
102
|
-
toggleSize: 'l',
|
103
|
-
disabled: false,
|
104
|
-
},
|
105
|
-
render: (args) => <StoryOutline {...args} />,
|
106
|
-
};
|
@@ -5,11 +5,59 @@ export declare const Context: React.Context<ItemContext>;
|
|
5
5
|
/**
|
6
6
|
* Выпадающий список.
|
7
7
|
*/
|
8
|
-
export declare const dropdownRoot: (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) => React.ForwardRefExoticComponent<
|
8
|
+
export declare const dropdownRoot: (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) => React.ForwardRefExoticComponent<{
|
9
|
+
items: import(".").DropdownItemOption[];
|
10
|
+
alwaysOpened?: boolean | undefined;
|
11
|
+
children?: React.ReactNode;
|
12
|
+
itemRole?: string | undefined;
|
13
|
+
onHover?: ((index: number) => void) | undefined;
|
14
|
+
onItemSelect?: ((item: import(".").DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
15
|
+
trigger?: import("./Dropdown.types").DropdownTrigger | undefined;
|
16
|
+
placement?: import("./Dropdown.types").DropdownPlacement | undefined;
|
17
|
+
offset?: [number, number] | undefined;
|
18
|
+
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
19
|
+
hasArrow?: boolean | undefined;
|
20
|
+
closeOnSelect?: boolean | undefined;
|
21
|
+
closeOnOverlayClick?: boolean | undefined;
|
22
|
+
onToggle?: ((isOpen: boolean, event: Event | React.SyntheticEvent<Element, Event>) => void) | undefined;
|
23
|
+
size?: string | undefined;
|
24
|
+
view?: string | undefined;
|
25
|
+
variant?: "normal" | "tight" | undefined;
|
26
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
27
|
+
renderItem?: ((item: import(".").DropdownItemOption) => React.ReactNode) | undefined;
|
28
|
+
onItemClick?: ((item: import(".").DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
29
|
+
listOverflow?: import("csstype").Property.Overflow | undefined;
|
30
|
+
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
31
|
+
hoverIndex?: number | undefined;
|
32
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
9
33
|
export declare const dropdownConfig: {
|
10
34
|
name: string;
|
11
35
|
tag: string;
|
12
|
-
layout: (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) => React.ForwardRefExoticComponent<
|
36
|
+
layout: (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) => React.ForwardRefExoticComponent<{
|
37
|
+
items: import(".").DropdownItemOption[];
|
38
|
+
alwaysOpened?: boolean | undefined;
|
39
|
+
children?: React.ReactNode;
|
40
|
+
itemRole?: string | undefined;
|
41
|
+
onHover?: ((index: number) => void) | undefined;
|
42
|
+
onItemSelect?: ((item: import(".").DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
43
|
+
trigger?: import("./Dropdown.types").DropdownTrigger | undefined;
|
44
|
+
placement?: import("./Dropdown.types").DropdownPlacement | undefined;
|
45
|
+
offset?: [number, number] | undefined;
|
46
|
+
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
47
|
+
hasArrow?: boolean | undefined;
|
48
|
+
closeOnSelect?: boolean | undefined;
|
49
|
+
closeOnOverlayClick?: boolean | undefined;
|
50
|
+
onToggle?: ((isOpen: boolean, event: Event | React.SyntheticEvent<Element, Event>) => void) | undefined;
|
51
|
+
size?: string | undefined;
|
52
|
+
view?: string | undefined;
|
53
|
+
variant?: "normal" | "tight" | undefined;
|
54
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
55
|
+
renderItem?: ((item: import(".").DropdownItemOption) => React.ReactNode) | undefined;
|
56
|
+
onItemClick?: ((item: import(".").DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
57
|
+
listOverflow?: import("csstype").Property.Overflow | undefined;
|
58
|
+
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
59
|
+
hoverIndex?: number | undefined;
|
60
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
13
61
|
base: import("@linaria/core").LinariaClassName;
|
14
62
|
variations: {
|
15
63
|
view: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAG7E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAW1C,OAAO,KAAK,EAAE,aAAa,EAA0B,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM3F,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAG7E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAW1C,OAAO,KAAK,EAAE,aAAa,EAA0B,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM3F,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;+EA4JrF,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBA9JQ,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+KzF,CAAC"}
|
@@ -1,14 +1,15 @@
|
|
1
|
-
import type {
|
1
|
+
import type { HTMLAttributes, ReactNode, SyntheticEvent, CSSProperties } from 'react';
|
2
2
|
import React from 'react';
|
3
3
|
import { FocusedPathState } from './reducers/focusedPathReducer';
|
4
4
|
import { DropdownItemOption } from './ui/DropdownItem/DropdownItem.type';
|
5
|
+
import type { ValueToItemMapType } from './hooks/useHashMaps';
|
5
6
|
export declare type DropdownPlacement = 'auto' | 'top' | 'right' | 'bottom' | 'left';
|
6
7
|
export declare type DropdownTrigger = 'hover' | 'click';
|
7
|
-
export
|
8
|
+
export declare type DropdownProps<T extends DropdownItemOption = DropdownItemOption> = {
|
8
9
|
/**
|
9
10
|
* Список элементов.
|
10
11
|
*/
|
11
|
-
items:
|
12
|
+
items: T[];
|
12
13
|
/**
|
13
14
|
* Дропдаун открыт всегда.
|
14
15
|
*/
|
@@ -29,7 +30,7 @@ export interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
29
30
|
/**
|
30
31
|
* Обработчик выбора item.
|
31
32
|
*/
|
32
|
-
onItemSelect?: (item:
|
33
|
+
onItemSelect?: (item: T, event: SyntheticEvent) => void;
|
33
34
|
/**
|
34
35
|
* Способ открытия дропдауна окна - наведение или клик мышью.
|
35
36
|
* @default click
|
@@ -80,11 +81,15 @@ export interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
80
81
|
* Портал для выпадающего списка. Принимает id контейнера или ref.
|
81
82
|
*/
|
82
83
|
portal?: string | React.RefObject<HTMLElement>;
|
84
|
+
/**
|
85
|
+
* Callback для кастомной настройки айтема в выпадающем списке.
|
86
|
+
*/
|
87
|
+
renderItem?: (item: T) => React.ReactNode;
|
83
88
|
/**
|
84
89
|
* Обработчик клика по item.
|
85
90
|
* @deprecated использовать onItemSelect.
|
86
91
|
*/
|
87
|
-
onItemClick?: (item:
|
92
|
+
onItemClick?: (item: T, event: SyntheticEvent) => void;
|
88
93
|
/**
|
89
94
|
* Значение css overflow для выпадающего меню.
|
90
95
|
* @default initial
|
@@ -104,7 +109,7 @@ export interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
104
109
|
* @deprecated использовать onHover
|
105
110
|
*/
|
106
111
|
hoverIndex?: number;
|
107
|
-
}
|
112
|
+
} & HTMLAttributes<HTMLDivElement>;
|
108
113
|
export declare type HandleGlobalToggleType = (opened: boolean, event: SyntheticEvent | Event) => void;
|
109
114
|
export declare type PlacementType = 'auto' | 'top-start' | 'right-start' | 'bottom-start' | 'left-start';
|
110
115
|
export declare type FloatingPopoverProps = {
|
@@ -130,5 +135,7 @@ export declare type ItemContext = {
|
|
130
135
|
onItemClick: DropdownProps['onItemClick'];
|
131
136
|
hasArrow: DropdownProps['hasArrow'];
|
132
137
|
treeId: string;
|
138
|
+
renderItem: DropdownProps['renderItem'];
|
139
|
+
valueToItemMap: ValueToItemMapType;
|
133
140
|
};
|
134
141
|
//# sourceMappingURL=Dropdown.types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Dropdown.types.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"Dropdown.types.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.types.ts"],"names":[],"mappings":"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"}
|
@@ -2,5 +2,6 @@ import { DropdownProps } from '../Dropdown.types';
|
|
2
2
|
import { DropdownItemOption } from '../ui/DropdownItem/DropdownItem.type';
|
3
3
|
export declare type PathMapType = Map<string | number, number>;
|
4
4
|
export declare type FocusedToValueMapType = Map<string, DropdownItemOption>;
|
5
|
-
export declare
|
5
|
+
export declare type ValueToItemMapType = Map<DropdownItemOption['value'], DropdownItemOption>;
|
6
|
+
export declare const useHashMaps: (items: DropdownProps['items']) => [PathMapType, FocusedToValueMapType, ValueToItemMapType];
|
6
7
|
//# sourceMappingURL=useHashMaps.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useHashMaps.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/hooks/useHashMaps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,oBAAY,WAAW,GAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;AACvD,oBAAY,qBAAqB,GAAG,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"useHashMaps.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/hooks/useHashMaps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,oBAAY,WAAW,GAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;AACvD,oBAAY,qBAAqB,GAAG,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AACpE,oBAAY,kBAAkB,GAAG,GAAG,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAKtF,eAAO,MAAM,WAAW,UAAW,aAAa,CAAC,OAAO,CAAC,6DA2BxD,CAAC"}
|
@@ -4,4 +4,5 @@ export { useKeyNavigation as useDropdownKeyNavigation } from './hooks/useKeyboar
|
|
4
4
|
export type { DropdownProps, DropdownPlacementBasic, DropdownPlacement, DropdownTrigger, } from './ui/DropdownOld/Dropdown.types';
|
5
5
|
export type { DropdownItemProps, DropdownItemOption } from './ui/DropdownItem/DropdownItem.type';
|
6
6
|
export * from './ui';
|
7
|
+
export type { DropdownProps as DropdownNewProps } from './Dropdown.types';
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,gBAAgB,IAAI,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,YAAY,EACR,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,GAClB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACjG,cAAc,MAAM,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,gBAAgB,IAAI,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,YAAY,EACR,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,GAClB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACjG,cAAc,MAAM,CAAC;AAErB,YAAY,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DropdownItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAqB,EAAE,EAAc,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"DropdownItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAqB,EAAE,EAAc,MAAM,OAAO,CAAC;AAgBjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAoH9C,CAAC"}
|
@@ -39,4 +39,5 @@ export declare const Divider: import("@linaria/react").StyledComponent<import("r
|
|
39
39
|
export declare const Wrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & {
|
40
40
|
variant: DropdownProps['variant'];
|
41
41
|
}>;
|
42
|
+
export declare const RenderItemWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
42
43
|
//# sourceMappingURL=DropdownItem.styles.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DropdownItem.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAOrD,eAAO,MAAM,WAAW,qKAgBvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qGAAiB,CAAC;AAEzC,eAAO,MAAM,qBAAqB,qKAGjC,CAAC;AAEF,eAAO,MAAM,OAAO;aAAyB,aAAa,CAAC,SAAS,CAAC;EASpE,CAAC;AAEF,eAAO,MAAM,OAAO;aAAwB,aAAa,CAAC,SAAS,CAAC;EAmDnE,CAAC"}
|
1
|
+
{"version":3,"file":"DropdownItem.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAOrD,eAAO,MAAM,WAAW,qKAgBvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qGAAiB,CAAC;AAEzC,eAAO,MAAM,qBAAqB,qKAGjC,CAAC;AAEF,eAAO,MAAM,OAAO;aAAyB,aAAa,CAAC,SAAS,CAAC;EASpE,CAAC;AAEF,eAAO,MAAM,OAAO;aAAwB,aAAa,CAAC,SAAS,CAAC;EAmDnE,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAG7B,CAAC"}
|
@@ -20,11 +20,6 @@ export declare const tokens: {
|
|
20
20
|
verticalGap: string;
|
21
21
|
trackWidth: string;
|
22
22
|
trackHeight: string;
|
23
|
-
trackBorderWidth: string;
|
24
|
-
trackBorderColorOn: string;
|
25
|
-
trackBorderColorOnHover: string;
|
26
|
-
trackBorderColorOff: string;
|
27
|
-
trackBorderColorOffHover: string;
|
28
23
|
trackBorderRadius: string;
|
29
24
|
trackBackgroundColorOn: string;
|
30
25
|
trackBackgroundColorOnHover: string;
|
@@ -35,8 +30,7 @@ export declare const tokens: {
|
|
35
30
|
thumbOffset: string;
|
36
31
|
thumbBorderRadius: string;
|
37
32
|
thumbPressScale: string;
|
38
|
-
|
39
|
-
thumbBackgroundColorOff: string;
|
33
|
+
thumbBackgroundColor: string;
|
40
34
|
thumbBoxShadow: string;
|
41
35
|
thumbBoxShadowOn: string;
|
42
36
|
labelOffsetPrivate: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;IAwBf,6DAA6D
|
1
|
+
{"version":3,"file":"Switch.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;IAwBf,6DAA6D;;;;;;;;;;;;;;;;;;;CA0BhE,CAAC;AAEF,eAAO,MAAM,OAAO;;;CAGnB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/_toggleSize/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/_toggleSize/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAkBhB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/_view/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/_view/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAiChB,CAAC"}
|
@@ -9,5 +9,29 @@ export declare const Dropdown: import("react").FunctionComponent<import("../../.
|
|
9
9
|
view: {
|
10
10
|
default: import("@linaria/core").LinariaClassName;
|
11
11
|
};
|
12
|
-
}> &
|
12
|
+
}> & {
|
13
|
+
items: import("../../../../components/Dropdown").DropdownItemOption[];
|
14
|
+
alwaysOpened?: boolean | undefined;
|
15
|
+
children?: import("react").ReactNode;
|
16
|
+
itemRole?: string | undefined;
|
17
|
+
onHover?: ((index: number) => void) | undefined;
|
18
|
+
onItemSelect?: ((item: import("../../../../components/Dropdown").DropdownItemOption, event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
19
|
+
trigger?: import("../../../../components/Dropdown/Dropdown.types").DropdownTrigger | undefined;
|
20
|
+
placement?: import("../../../../components/Dropdown/Dropdown.types").DropdownPlacement | undefined;
|
21
|
+
offset?: [number, number] | undefined;
|
22
|
+
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
23
|
+
hasArrow?: boolean | undefined;
|
24
|
+
closeOnSelect?: boolean | undefined;
|
25
|
+
closeOnOverlayClick?: boolean | undefined;
|
26
|
+
onToggle?: ((isOpen: boolean, event: Event | import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
27
|
+
size?: string | undefined;
|
28
|
+
view?: string | undefined;
|
29
|
+
variant?: "normal" | "tight" | undefined;
|
30
|
+
portal?: string | import("react").RefObject<HTMLElement> | undefined;
|
31
|
+
renderItem?: ((item: import("../../../../components/Dropdown").DropdownItemOption) => import("react").ReactNode) | undefined;
|
32
|
+
onItemClick?: ((item: import("../../../../components/Dropdown").DropdownItemOption, event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
33
|
+
listOverflow?: import("csstype").Property.Overflow | undefined;
|
34
|
+
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
35
|
+
hoverIndex?: number | undefined;
|
36
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
13
37
|
//# sourceMappingURL=Dropdown.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Dropdown/Dropdown.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,QAAQ
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Dropdown/Dropdown.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mGAA0B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Switch/Switch.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"Switch.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Switch/Switch.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGlB,CAAC"}
|
@@ -19,24 +19,4 @@ export declare const Switch: import("react").FunctionComponent<import("../../../
|
|
19
19
|
true: import("@linaria/core").LinariaClassName;
|
20
20
|
};
|
21
21
|
}> & import("../../../../components/Switch").SwitchProps & import("react").RefAttributes<HTMLInputElement>>;
|
22
|
-
export declare const SwitchOutline: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
|
23
|
-
size: {
|
24
|
-
s: import("@linaria/core").LinariaClassName;
|
25
|
-
m: import("@linaria/core").LinariaClassName;
|
26
|
-
l: import("@linaria/core").LinariaClassName;
|
27
|
-
};
|
28
|
-
toggleSize: {
|
29
|
-
l: import("@linaria/core").LinariaClassName;
|
30
|
-
s: import("@linaria/core").LinariaClassName;
|
31
|
-
};
|
32
|
-
view: {
|
33
|
-
default: import("@linaria/core").LinariaClassName;
|
34
|
-
};
|
35
|
-
disabled: {
|
36
|
-
true: import("@linaria/core").LinariaClassName;
|
37
|
-
};
|
38
|
-
focused: {
|
39
|
-
true: import("@linaria/core").LinariaClassName;
|
40
|
-
};
|
41
|
-
}> & import("../../../../components/Switch").SwitchProps & import("react").RefAttributes<HTMLInputElement>>;
|
42
22
|
//# sourceMappingURL=Switch.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Switch/Switch.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Switch/Switch.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;2GAA0B,CAAC"}
|
@@ -9,5 +9,29 @@ export declare const Dropdown: import("react").FunctionComponent<import("../../.
|
|
9
9
|
view: {
|
10
10
|
default: import("@linaria/core").LinariaClassName;
|
11
11
|
};
|
12
|
-
}> &
|
12
|
+
}> & {
|
13
|
+
items: import("../../../../components/Dropdown").DropdownItemOption[];
|
14
|
+
alwaysOpened?: boolean | undefined;
|
15
|
+
children?: import("react").ReactNode;
|
16
|
+
itemRole?: string | undefined;
|
17
|
+
onHover?: ((index: number) => void) | undefined;
|
18
|
+
onItemSelect?: ((item: import("../../../../components/Dropdown").DropdownItemOption, event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
19
|
+
trigger?: import("../../../../components/Dropdown/Dropdown.types").DropdownTrigger | undefined;
|
20
|
+
placement?: import("../../../../components/Dropdown/Dropdown.types").DropdownPlacement | undefined;
|
21
|
+
offset?: [number, number] | undefined;
|
22
|
+
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
23
|
+
hasArrow?: boolean | undefined;
|
24
|
+
closeOnSelect?: boolean | undefined;
|
25
|
+
closeOnOverlayClick?: boolean | undefined;
|
26
|
+
onToggle?: ((isOpen: boolean, event: Event | import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
27
|
+
size?: string | undefined;
|
28
|
+
view?: string | undefined;
|
29
|
+
variant?: "normal" | "tight" | undefined;
|
30
|
+
portal?: string | import("react").RefObject<HTMLElement> | undefined;
|
31
|
+
renderItem?: ((item: import("../../../../components/Dropdown").DropdownItemOption) => import("react").ReactNode) | undefined;
|
32
|
+
onItemClick?: ((item: import("../../../../components/Dropdown").DropdownItemOption, event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
33
|
+
listOverflow?: import("csstype").Property.Overflow | undefined;
|
34
|
+
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
35
|
+
hoverIndex?: number | undefined;
|
36
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
13
37
|
//# sourceMappingURL=Dropdown.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Dropdown/Dropdown.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,QAAQ
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Dropdown/Dropdown.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mGAA0B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Switch/Switch.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"Switch.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Switch/Switch.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGlB,CAAC"}
|
@@ -19,24 +19,4 @@ export declare const Switch: import("react").FunctionComponent<import("../../../
|
|
19
19
|
true: import("@linaria/core").LinariaClassName;
|
20
20
|
};
|
21
21
|
}> & import("../../../../components/Switch").SwitchProps & import("react").RefAttributes<HTMLInputElement>>;
|
22
|
-
export declare const SwitchOutline: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
|
23
|
-
size: {
|
24
|
-
s: import("@linaria/core").LinariaClassName;
|
25
|
-
m: import("@linaria/core").LinariaClassName;
|
26
|
-
l: import("@linaria/core").LinariaClassName;
|
27
|
-
};
|
28
|
-
toggleSize: {
|
29
|
-
l: import("@linaria/core").LinariaClassName;
|
30
|
-
s: import("@linaria/core").LinariaClassName;
|
31
|
-
};
|
32
|
-
view: {
|
33
|
-
default: import("@linaria/core").LinariaClassName;
|
34
|
-
};
|
35
|
-
disabled: {
|
36
|
-
true: import("@linaria/core").LinariaClassName;
|
37
|
-
};
|
38
|
-
focused: {
|
39
|
-
true: import("@linaria/core").LinariaClassName;
|
40
|
-
};
|
41
|
-
}> & import("../../../../components/Switch").SwitchProps & import("react").RefAttributes<HTMLInputElement>>;
|
42
22
|
//# sourceMappingURL=Switch.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Switch/Switch.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Switch/Switch.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;2GAA0B,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
.b1wld3h3 .s2cs3kf{--plasma_private-thumbSize:calc(var(--plasma-switch__thumb-size) - (2 * var(--plasma-switch__track-border)));box-sizing:border-box;-webkit-flex:0 0 var(--plasma-switch__track-width);-ms-flex:0 0 var(--plasma-switch__track-width);flex:0 0 var(--plasma-switch__track-width);border-style:solid;border-width:var(--plasma-switch__track-border);border-radius:var(--plasma-switch__track-border-radius);width:var(--plasma-switch__track-width);height:var(--plasma-switch__track-height);}.b1wld3h3 .s2cs3kf::after{width:var(--plasma_private-thumbSize);height:var(--plasma_private-thumbSize);border-radius:var(--plasma-switch__thumb-border-radius);margin:auto var(--plasma-switch__thumb-offset);}.b1wld3h3:active:not([disabled]) .s2cs3kf::after{width:calc(var(--plasma-switch__thumb-size) * var(--plasma-switch__thumb-scale,1));}
|
@@ -1 +0,0 @@
|
|
1
|
-
.b1g0jmh3 .s2cs3kf{background-color:var(--plasma-switch__track_checked_false-bg-color);border-color:var(--plasma-switch__track-checked_false-border-color);}.b1g0jmh3 .ssthlx1:not([disabled]) ~ .s2cs3kf:hover{background-color:var(--plasma-switch__track_checked_false_hovered_true-bg-color,var(--plasma-switch__track_checked_false-bg-color));border-color:var(--plasma-switch__track-checked_false_hovered_true-border-color,var(--plasma-switch__track-checked_false-border-color));}.b1g0jmh3 .ssthlx1:checked ~ .s2cs3kf{background-color:var(--plasma-switch__track_checked_true-bg-color);border-color:var(--plasma-switch__track-checked_true-border-color);}.b1g0jmh3 .ssthlx1:checked:not([disabled]) ~ .s2cs3kf:hover{background-color:var(--plasma-switch__track_checked_true_hovered_true-bg-color,var(--plasma-switch__track_checked_true-bg-color));border-color:var(--plasma-switch__track-checked_true_hovered_true-border-color,var(--plasma-switch__track-checked_true-border-color));}.b1g0jmh3 .s2cs3kf::after{background-color:var(--plasma-switch__thumb-checked_false-bg-color);box-shadow:var(--plasma-switch__thumb-box-shadow);}.b1g0jmh3 .ssthlx1:checked ~ .s2cs3kf::after{background-color:var(--plasma-switch__thumb_checked_true-bg-color);box-shadow:var(--plasma-switch__thumb-box-shadow_checked_true,var(--plasma-switch__thumb-box-shadow));}.b1g0jmh3 .s1ilr5eq{color:var(--plasma-switch__label-color);}.b1g0jmh3 .sdjnckq{color:var(--plasma-switch__description-color);}
|