@purple/phoenix-components 5.0.0 → 5.1.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 +2 -2
- 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 +10 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -465,10 +465,17 @@ interface FileWithPreview extends File {
|
|
|
465
465
|
interface FilePreviewCommonProps {
|
|
466
466
|
setFiles: (files: FileWithPreview[]) => void;
|
|
467
467
|
onPassword?(filename: string, password: string): void;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
interface PasswordModalCommonProps {
|
|
468
471
|
passwordPromptText?: string;
|
|
469
472
|
passwordIncorrectText?: string;
|
|
473
|
+
passwordConfirmButtonText?: string;
|
|
474
|
+
passwordCancelButtonText?: string;
|
|
475
|
+
passwordPlaceholderText?: string;
|
|
470
476
|
}
|
|
471
|
-
|
|
477
|
+
|
|
478
|
+
interface FileUploadProps extends GenericComponentProps, FilePreviewCommonProps, PasswordModalCommonProps {
|
|
472
479
|
files: FileWithPreview[];
|
|
473
480
|
label?: string;
|
|
474
481
|
labelTouchDevice?: string;
|
|
@@ -486,6 +493,7 @@ interface FileUploadProps extends GenericComponentProps, FilePreviewCommonProps
|
|
|
486
493
|
fileValidation?: (file: File) => Promise<string | null>;
|
|
487
494
|
withIcon?: boolean;
|
|
488
495
|
}
|
|
496
|
+
|
|
489
497
|
declare const FileUpload: React$1.FC<FileUploadProps>;
|
|
490
498
|
|
|
491
499
|
declare const Flex: React$1.FC<BoxProps>;
|
|
@@ -1789,4 +1797,4 @@ interface BoxShadowObj {
|
|
|
1789
1797
|
}
|
|
1790
1798
|
declare const getBoxShadow: (shadow: BoxShadowObj | BoxShadowObj[]) => string;
|
|
1791
1799
|
|
|
1792
|
-
export { Box, BoxProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, Checkbox, CheckboxProps, ClosableButton, ClosableButtonProps, ClosableItem, ClosableItemProps, Collapsible, CollapsibleCard, CollapsibleCardProps, CollapsibleProps, Color, ColorAndTheme, ColorTheme, DateInput, DateInputProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, DateRangeValue, DateValue, Dropdown, DropdownProps,
|
|
1800
|
+
export { Box, BoxProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, Checkbox, CheckboxProps, ClosableButton, ClosableButtonProps, ClosableItem, ClosableItemProps, Collapsible, CollapsibleCard, CollapsibleCardProps, CollapsibleProps, Color, ColorAndTheme, ColorTheme, DateInput, DateInputProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, DateRangeValue, DateValue, Dropdown, DropdownProps, FileUpload, Flex, GlobalStyles, Grid, Heading, HeadingElement, HeadingProps, HorizontalDivider, HorizontalDividerProps, Icon, IconAlignment, IconProps, IconType, Label, LabelProps, Link, LinkButton, LinkButtonProps, LinkProps, List, ListItem, ListItemProps, ListProps, Menu, MenuItem, MenuItemProps, MenuProps, Modal, ModalProps, MultiSelect, MultiSelectProps, MultiSlider, MultiSliderProps, MultiSliderValue, Notice, NoticeProps, NumberInput, NumberInputProps, Paragraph, ParagraphProps, PhoenixIcons, PhoenixIconsColored, PhoenixIconsColoredSrc, PhoenixIconsOutlined, PhoenixIconsOutlinedSrc, PhoenixIconsSrc, Radio, RadioProps, Select, SelectNative, SelectNativeProps, SelectOption, SelectPicker, SelectPickerOption, SelectPickerProps, SelectProps, Sizing, SizingMdLg, SizingSmMd, SizingSmMdLg, Slider, SliderProps, SliderValue, Spacing, Spinner, SpinnerProps, Tab, TabFunctionProps, TabList, TabListProps, TabProps, Tag, TagProps, Text, TextArea, TextAreaProps, TextColor, TextInput, TextInputProps, TextProps, prefixedTheme as Theme, TimezonePicker, TimezonePickerProps, Tooltip, TooltipProps, getBoxShadow, getLineHeightUnitless, getSpacingCssValue, getTextColor, getOptions as getTimezoneOptions, getUnitlessNumber, isColorTheme, isSizing, isSpacing, isTextColor };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purple/phoenix-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/bundle.umd.js",
|
|
6
6
|
"module": "dist/bundle.esm.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"predeploy": "npm run storybook:build",
|
|
41
41
|
"release:feature": "standard-version && git push --follow-tags",
|
|
42
42
|
"release:publish": "npm run build && npm publish --access public && npm run deploy-storybook",
|
|
43
|
-
"deploy-storybook": "npm run storybook:build && cp -r .circleci storybook-static && storybook-to-ghpages -e=storybook-static",
|
|
43
|
+
"deploy-storybook": "npm run storybook:build && cp -r .circleci storybook-static && cp -r storybook-build-v4 storybook-static/v4 && storybook-to-ghpages -e=storybook-static",
|
|
44
44
|
"snapshot": "build-storybook -c .storybook && percy storybook ./storybook-static",
|
|
45
45
|
"percy": "if [[ $(git rev-parse --symbolic-full-name --abbrev-ref HEAD) != \"master\" ]]; then percy storybook ./storybook-static; else echo \"ERROR: percy should not be run on master because these snapshots are auto-approved\"; fi;",
|
|
46
46
|
"test": "jest"
|