@purple/phoenix-components 4.20.2 → 4.21.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/CHANGELOG.md +8 -0
- package/dist/bundle.cjs.js +1 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +1 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +1 -1
- package/dist/bundle.umd.js.map +1 -1
- package/dist/index.d.ts +8 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { HTMLAttributes,
|
|
2
|
+
import React__default, { HTMLAttributes, ReactElement, InputHTMLAttributes, JSXElementConstructor, MouseEventHandler, FocusEventHandler, TextareaHTMLAttributes } from 'react';
|
|
3
3
|
import * as styled_components from 'styled-components';
|
|
4
4
|
import { IntrinsicElementsKeys } from 'styled-components';
|
|
5
5
|
import { LayoutProps, FlexboxProps, GridProps, BackgroundColorProps, BackgroundProps, OpacityProps, PositionProps } from 'styled-system';
|
|
@@ -278,11 +278,16 @@ interface CardProps extends PaddingProps, MarginProps, GenericComponentProps {
|
|
|
278
278
|
}
|
|
279
279
|
declare const Card: React__default.FC<CardProps>;
|
|
280
280
|
|
|
281
|
+
declare type FormControlWarningType = ReactElement | string;
|
|
282
|
+
declare type FormControlErrorType = ReactElement | string | boolean;
|
|
283
|
+
|
|
281
284
|
interface CheckboxRadioCommonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>, GenericComponentProps {
|
|
282
285
|
RTL?: boolean;
|
|
283
286
|
colorTheme?: ButtonColorTheme;
|
|
284
287
|
size?: ComponentSizeMediumLarge;
|
|
285
288
|
label?: React__default.ReactNode;
|
|
289
|
+
warning?: FormControlWarningType;
|
|
290
|
+
error?: FormControlErrorType;
|
|
286
291
|
}
|
|
287
292
|
|
|
288
293
|
declare type CheckboxProps = CheckboxRadioCommonProps;
|
|
@@ -309,9 +314,6 @@ interface CollapsibleCardProps extends CardProps, GenericComponentProps {
|
|
|
309
314
|
}
|
|
310
315
|
declare const CollapsibleCard: React$1.FC<CollapsibleCardProps>;
|
|
311
316
|
|
|
312
|
-
declare type FormControlWarningType = ReactElement | string;
|
|
313
|
-
declare type FormControlErrorType = ReactElement | string | boolean;
|
|
314
|
-
|
|
315
317
|
interface Month {
|
|
316
318
|
value: number;
|
|
317
319
|
label: string;
|
|
@@ -452,11 +454,12 @@ declare const MenuItem: React__default.FC<MenuItemProps>;
|
|
|
452
454
|
|
|
453
455
|
interface ModalProps extends GenericComponentProps, PaddingProps, MarginProps {
|
|
454
456
|
open: boolean;
|
|
455
|
-
onClose
|
|
457
|
+
onClose?: () => void;
|
|
456
458
|
showCloseButton?: boolean;
|
|
457
459
|
size?: ComponentSize;
|
|
458
460
|
animate?: boolean;
|
|
459
461
|
center?: boolean;
|
|
462
|
+
closeOnOverlayClick?: boolean;
|
|
460
463
|
}
|
|
461
464
|
declare const Modal: React__default.FC<ModalProps>;
|
|
462
465
|
|