@salutejs/plasma-new-hope 0.328.0-canary.2056.15970842101.0 → 0.328.0-canary.2058.15974267377.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/DatePicker/RangeDate/RangeDate.js +12 -4
- package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/cjs/components/DatePicker/SingleDate/SingleDate.js +6 -2
- package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +12 -4
- package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +6 -2
- package/emotion/es/components/DatePicker/RangeDate/RangeDate.js +12 -4
- package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +6 -2
- package/es/components/DatePicker/RangeDate/RangeDate.js +12 -4
- package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/es/components/DatePicker/SingleDate/SingleDate.js +6 -2
- package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/package.json +5 -5
- package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +12 -4
- package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +6 -2
- package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +12 -4
- package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +6 -2
- package/types/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/types/components/Autocomplete/Autocomplete.types.d.ts +1 -1
- package/types/components/Carousel/CarouselNew/Carousel.d.ts +1 -1
- package/types/components/Carousel/CarouselOld/Carousel.d.ts +1 -1
- package/types/components/Carousel/CarouselOld/Carousel.types.d.ts +1 -1
- package/types/components/CodeField/CodeField.d.ts +1 -1
- package/types/components/CodeInput/CodeInput.d.ts +1 -1
- package/types/components/DatePicker/RangeDate/RangeDate.d.ts +1 -1
- package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
- package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.d.ts +2 -2
- package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.d.ts +1 -1
- package/types/components/Dropdown/ui/DropdownDivider/DropdownDivider.d.ts +1 -1
- package/types/components/Dropdown/ui/DropdownFooter/DropdownFooter.d.ts +1 -1
- package/types/components/Dropdown/ui/DropdownGroup/DropdownGroup.d.ts +1 -1
- package/types/components/Dropdown/ui/DropdownHeader/DropdownHeader.d.ts +1 -1
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts +1 -1
- package/types/components/Dropdown/ui/DropdownOld/DropdownOld.d.ts +1 -1
- package/types/components/Modal/Modal.d.ts +1 -1
- package/types/components/Popup/Popup.d.ts +1 -1
- package/types/components/Radiobox/Radiobox.d.ts +2 -2
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.d.ts +1 -1
- package/types/components/Segment/ui/SegmentItem/SegmentItem.d.ts +1 -1
- package/types/components/Select/Select.d.ts +1 -1
- package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts +1 -1
- package/types/components/Select/ui/Target/ui/Button/Button.styles.d.ts +2 -2
- package/types/components/Spinner/Spinner.d.ts +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.d.ts +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.d.ts +1 -1
- package/types/components/TextField/TextField.d.ts +1 -1
- package/types/components/Toast/ToastNew/ToastNew.d.ts +1 -1
@@ -307,14 +307,18 @@ export var datePickerRoot = function(Root) {
|
|
307
307
|
opened
|
308
308
|
]);
|
309
309
|
useLayoutEffect(function() {
|
310
|
-
|
310
|
+
if (!defaultDate) {
|
311
|
+
updateExternalDate(value);
|
312
|
+
}
|
311
313
|
}, [
|
312
314
|
value,
|
313
315
|
format,
|
314
316
|
lang
|
315
317
|
]);
|
316
318
|
useLayoutEffect(function() {
|
317
|
-
|
319
|
+
if (!value) {
|
320
|
+
updateExternalDate(defaultDate);
|
321
|
+
}
|
318
322
|
}, [
|
319
323
|
defaultDate,
|
320
324
|
format,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { InputHTMLAttributes, ReactNode } from 'react';
|
2
|
-
import { DistributiveOmit } from '
|
2
|
+
import { DistributiveOmit } from '../../types';
|
3
3
|
import { TextFieldPropsBase } from '../TextField/TextField.types';
|
4
4
|
export type SuggestionItemType = {
|
5
5
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
2
|
-
import { AsProps } from '
|
2
|
+
import { AsProps } from '../../../types';
|
3
3
|
export type SnapType = 'mandatory' | 'proximity' | 'none';
|
4
4
|
export type SnapAlign = 'start' | 'center' | 'end';
|
5
5
|
export type SnapStop = 'normal' | 'always';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { RootProps } from '
|
2
|
+
import type { RootProps } from '../../engines';
|
3
3
|
import type { CodeFieldProps } from './CodeField.types';
|
4
4
|
export declare const codeFieldRoot: (Root: RootProps<HTMLDivElement, CodeFieldProps>) => React.ForwardRefExoticComponent<{
|
5
5
|
value?: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { RootProps } from '
|
2
|
+
import type { RootProps } from '../../engines';
|
3
3
|
import type { CodeInputProps } from './CodeInput.types';
|
4
4
|
export declare const codeInputRoot: (Root: RootProps<HTMLDivElement, CodeInputProps>) => React.ForwardRefExoticComponent<{
|
5
5
|
view?: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { FocusEvent } from 'react';
|
3
|
-
import type { RootProps } from '
|
3
|
+
import type { RootProps } from '../../../engines';
|
4
4
|
import type { RangeInputRefs } from '../../Range/Range.types';
|
5
5
|
import type { DateType } from '../../Calendar/Calendar.types';
|
6
6
|
import type { DatePickerRangeProps } from './RangeDate.types';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RangeDate.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/RangeDate/RangeDate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2F,MAAM,OAAO,CAAC;AAEhH,OAAO,KAAK,EAAiB,UAAU,EAAuD,MAAM,OAAO,CAAC;AAC5G,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAK7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAK9D,OAAO,KAAK,EAAY,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAGxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAS9D,eAAO,MAAM,mBAAmB,SACtB,SAAS,CAAC,cAAc,EAAE,IAAI,CAAC,oBAAoB,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;iBAuC1E,CAAC;gBACnB,CAAP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+
|
1
|
+
{"version":3,"file":"RangeDate.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/RangeDate/RangeDate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2F,MAAM,OAAO,CAAC;AAEhH,OAAO,KAAK,EAAiB,UAAU,EAAuD,MAAM,OAAO,CAAC;AAC5G,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAK7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAK9D,OAAO,KAAK,EAAY,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAGxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAS9D,eAAO,MAAM,mBAAmB,SACtB,SAAS,CAAC,cAAc,EAAE,IAAI,CAAC,oBAAoB,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;iBAuC1E,CAAC;gBACnB,CAAP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+EAkhBJ,CAAC;AAEN,eAAO,MAAM,qBAAqB;;;mBA5jBxB,SAAS,CAAC,cAAc,EAAE,IAAI,CAAC,oBAAoB,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;qBAuC1E,CAAC;oBACnB,CAAP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6iBR,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { CalendarDoubleProps, CalendarBaseProps } from '
|
1
|
+
import type { CalendarDoubleProps, CalendarBaseProps } from '../../../../components/Calendar';
|
2
2
|
export declare const StyledCalendarDouble: import("@linaria/react").StyledComponent<{
|
3
3
|
innerWidth?: string;
|
4
4
|
innerHeight?: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { SyntheticEvent } from 'react';
|
2
|
-
import type { DateInfo, DateType } from '
|
3
|
-
import type { RootProps } from '
|
2
|
+
import type { DateInfo, DateType } from '../../../components/Calendar/Calendar.types';
|
3
|
+
import type { RootProps } from '../../../engines';
|
4
4
|
import type { DatePickerProps } from './SingleDate.types';
|
5
5
|
export declare const datePickerRoot: (Root: RootProps<HTMLDivElement, Omit<DatePickerProps, "opened" | "defaultValue" | "onChangeValue">>) => React.ForwardRefExoticComponent<import("../DatePickerBase.types").DatePickerVariationProps & {
|
6
6
|
requiredPlacement?: "left" | "right";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SingleDate.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/SingleDate/SingleDate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,cAAc,EAAgD,MAAM,OAAO,CAAC;AAGxG,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;A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QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;sBAevF,MAAA,YAAK;uBAGL,MAAA,YAAO;;;;mDAeP,CAAC,kBAED,CAAd,mBAA2B,CAAC,wBACA,CAAC,eACf,CAAH;8EAKY,CAAC,sBACP,CAAC,mBACJ,CAAC;;;qBAMmB,CAAC;oBACrB,CAAR;4BAAsB,CAAC;uBACf,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;CAySf,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { RootProps } from '
|
2
|
+
import type { RootProps } from '../../engines';
|
3
3
|
import type { DrawerProps } from './Drawer.types';
|
4
4
|
export declare const drawerRoot: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<import("../Popup").PopupProps & import("../Panel").PanelProps & {
|
5
5
|
placement?: import("./Drawer.types").DrawerPlacement;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { RootProps } from '
|
2
|
+
import { RootProps } from '../../engines/types';
|
3
3
|
import type { PopupPlacement, PopupPositionType, PopupProps } from './Popup.types';
|
4
4
|
export declare const handlePosition: (placement: PopupPlacement, offset: [number, number] | [string, string]) => PopupPositionType;
|
5
5
|
/**
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { InputHTMLAttributes } from '
|
3
|
-
import type { Filter, RootProps } from '
|
2
|
+
import type { InputHTMLAttributes } from '../../types';
|
3
|
+
import type { Filter, RootProps } from '../../engines/types';
|
4
4
|
import { BaseboxProps } from '../Checkbox/Checkbox.types';
|
5
5
|
type RadioboxProps = Filter<InputHTMLAttributes<HTMLInputElement>, 'size'> & Omit<BaseboxProps, 'indeterminate' | 'appearance'>;
|
6
6
|
export declare const radioboxRoot: (Root: RootProps<HTMLInputElement, RadioboxProps>) => React.ForwardRefExoticComponent<Filter<InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<BaseboxProps, "indeterminate" | "appearance"> & React.RefAttributes<HTMLInputElement>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { RootProps } from '
|
2
|
+
import type { RootProps } from '../../../../engines/types';
|
3
3
|
import type { SegmentGroupProps } from './SegmentGroup.types';
|
4
4
|
export declare const getChildNodes: (wrapper: HTMLElement | null) => HTMLElement[];
|
5
5
|
export declare const segmentGroupRoot: (Root: RootProps<HTMLDivElement, SegmentGroupProps>) => React.ForwardRefExoticComponent<SegmentGroupProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { MouseEvent } from 'react';
|
3
|
-
import type { RootProps } from '
|
3
|
+
import type { RootProps } from '../../../../engines/types';
|
4
4
|
import type { SegmentItemProps } from './SegmentItem.types';
|
5
5
|
export declare const segmentItemRoot: (Root: RootProps<HTMLLabelElement, SegmentItemProps>) => React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
6
6
|
value: string;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { SelectProps } from '
|
1
|
+
import type { SelectProps } from '../../../../../../components/Select';
|
2
2
|
export declare const StyledWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
3
3
|
disabled?: boolean;
|
4
4
|
}>;
|
@@ -15,7 +15,7 @@ export declare const StyledButton: import("@linaria/react").StyledMeta & import(
|
|
15
15
|
outlined?: boolean;
|
16
16
|
shiftLeft?: boolean;
|
17
17
|
shiftRight?: boolean;
|
18
|
-
blur?: import("
|
18
|
+
blur?: import("../../../../../../mixins").Blur;
|
19
19
|
} & {
|
20
20
|
value?: string | number;
|
21
21
|
contentRight?: never;
|
@@ -36,7 +36,7 @@ export declare const StyledButton: import("@linaria/react").StyledMeta & import(
|
|
36
36
|
outlined?: boolean;
|
37
37
|
shiftLeft?: boolean;
|
38
38
|
shiftRight?: boolean;
|
39
|
-
blur?: import("
|
39
|
+
blur?: import("../../../../../../mixins").Blur;
|
40
40
|
} & {
|
41
41
|
value?: never;
|
42
42
|
contentRight?: import("react").ReactNode;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { RootProps } from '
|
2
|
+
import type { RootProps } from '../../engines/types';
|
3
3
|
import type { SpinnerProps } from './Spinner.types';
|
4
4
|
export declare const spinnerRoot: (Root: RootProps<HTMLDivElement, SpinnerProps>) => React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
|
5
5
|
export declare const spinnerConfig: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { RootProps } from '
|
2
|
+
import type { RootProps } from '../../../../../engines/types';
|
3
3
|
import type { HorizontalTabsProps } from '../../../Tabs.types';
|
4
4
|
export declare const horizontalTabsRoot: (Root: RootProps<HTMLDivElement, HorizontalTabsProps>) => React.ForwardRefExoticComponent<HorizontalTabsProps & React.RefAttributes<HTMLDivElement>>;
|
5
5
|
export declare const horizontalTabsConfig: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { RootProps } from '
|
2
|
+
import type { RootProps } from '../../../../../engines/types';
|
3
3
|
import type { VerticalTabsProps } from '../../../Tabs.types';
|
4
4
|
export declare const verticalTabsRoot: (Root: RootProps<HTMLDivElement, VerticalTabsProps>) => React.ForwardRefExoticComponent<import("../../../Tabs.types").BaseTabsProps & import("../../../Tabs.types").CustomVerticalTabsProps & React.RefAttributes<HTMLDivElement>>;
|
5
5
|
export declare const verticalTabsConfig: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { RootProps } from '
|
2
|
+
import type { RootProps } from '../../engines';
|
3
3
|
import type { TextFieldProps, TextFieldRootProps } from './TextField.types';
|
4
4
|
export declare const base: import("@linaria/core").LinariaClassName;
|
5
5
|
export declare const textFieldRoot: (Root: RootProps<HTMLDivElement, TextFieldRootProps>) => React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { RootProps } from '
|
2
|
+
import type { RootProps } from '../../../engines';
|
3
3
|
import { ToastContainerProps, ShowToastProps } from './ToastNew.types';
|
4
4
|
export declare const toastContainerRoot: (Root: RootProps<HTMLDivElement, ToastContainerProps>) => React.ForwardRefExoticComponent<ToastContainerProps & React.RefAttributes<HTMLDivElement>>;
|
5
5
|
export declare const showToast: ShowToastProps;
|