@harpercollins/harpercollins-design-system 1.12.1 → 1.13.1
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/dist/cjs/index.cjs +194 -113
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/index.d.ts +3 -1
- package/dist/cjs/types/src/components/inputs/{DateInput/DateInput.d.ts → DatePicker/DatePicker.d.ts} +2 -2
- package/dist/cjs/types/src/components/inputs/DatePicker/DatePicker.stories.d.ts +6 -0
- package/dist/cjs/types/src/components/inputs/DatePicker/index.d.ts +2 -0
- package/dist/cjs/types/src/components/inputs/DateTimeInput/DateTimeInput.d.ts +9 -0
- package/dist/cjs/types/src/components/inputs/DateTimeInput/DateTimeInput.stories.d.ts +6 -0
- package/dist/cjs/types/src/components/inputs/DateTimeInput/index.d.ts +2 -0
- package/dist/esm/index.js +217 -136
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/index.d.ts +3 -1
- package/dist/esm/types/src/components/inputs/{DateInput/DateInput.d.ts → DatePicker/DatePicker.d.ts} +2 -2
- package/dist/esm/types/src/components/inputs/DatePicker/DatePicker.stories.d.ts +6 -0
- package/dist/esm/types/src/components/inputs/DatePicker/index.d.ts +2 -0
- package/dist/esm/types/src/components/inputs/DateTimeInput/DateTimeInput.d.ts +9 -0
- package/dist/esm/types/src/components/inputs/DateTimeInput/DateTimeInput.stories.d.ts +6 -0
- package/dist/esm/types/src/components/inputs/DateTimeInput/index.d.ts +2 -0
- package/dist/index.d.ts +32 -20
- package/package.json +1 -1
- package/dist/cjs/types/src/components/inputs/DateInput/DateInput.stories.d.ts +0 -6
- package/dist/cjs/types/src/components/inputs/DateInput/index.d.ts +0 -2
- package/dist/esm/types/src/components/inputs/DateInput/DateInput.stories.d.ts +0 -6
- package/dist/esm/types/src/components/inputs/DateInput/index.d.ts +0 -2
|
@@ -17,6 +17,8 @@ import Checkbox from "./inputs/Checkbox";
|
|
|
17
17
|
import Chip from "./data-display/Chip";
|
|
18
18
|
import ChipIcon from "./data-display/ChipIcon";
|
|
19
19
|
import Container from "./layout/Container";
|
|
20
|
+
import DatePicker from "./inputs/DatePicker";
|
|
21
|
+
import DateTimeInput from "./inputs/DateTimeInput";
|
|
20
22
|
import Divider from "./data-display/Divider";
|
|
21
23
|
import Drawer from "./overlay/Drawer";
|
|
22
24
|
import Dropdown from "./navigation/Dropdown";
|
|
@@ -57,4 +59,4 @@ import TextField from "./inputs/TextField";
|
|
|
57
59
|
import ToastMessages from "./feedback/ToastMessages";
|
|
58
60
|
import Tooltip from "./data-display/Tooltip";
|
|
59
61
|
import Typography from "./data-display/Typography";
|
|
60
|
-
export { Accordion, Alert, AppBar, Autocomplete, AutocompleteSelectMultiple, Avatar, Badge, Box, Breadcrumb, Button, Card, CardActions, CardContent, CardCover, CardOverflow, Checkbox, Chip, ChipIcon, Container, Divider, Drawer, Dropdown, FormControl, FullPageErrorFallback, Grid, Heading, Icon, IconButton, Input, Layout, List, ListItem, ListItemButton, ListItemContent, ListItemDecorator, ListDivider, ListSubheader, LoadingSpinner, Logo, LogoMini, Menu, MenuButton, MenuHeading, MenuItem, ProgressBar, ProgressCircle, RadioButton, RadioGroup, ReadMore, RelativeTime, StatusIcon, Table, Tabs, Textarea, TextBlock, TextField, ToastMessages, Tooltip, Typography, };
|
|
62
|
+
export { Accordion, Alert, AppBar, Autocomplete, AutocompleteSelectMultiple, Avatar, Badge, Box, Breadcrumb, Button, Card, CardActions, CardContent, CardCover, CardOverflow, Checkbox, Chip, ChipIcon, Container, DatePicker, DateTimeInput, Divider, Drawer, Dropdown, FormControl, FullPageErrorFallback, Grid, Heading, Icon, IconButton, Input, Layout, List, ListItem, ListItemButton, ListItemContent, ListItemDecorator, ListDivider, ListSubheader, LoadingSpinner, Logo, LogoMini, Menu, MenuButton, MenuHeading, MenuItem, ProgressBar, ProgressCircle, RadioButton, RadioGroup, ReadMore, RelativeTime, StatusIcon, Table, Tabs, Textarea, TextBlock, TextField, ToastMessages, Tooltip, Typography, };
|
package/dist/cjs/types/src/components/inputs/{DateInput/DateInput.d.ts → DatePicker/DatePicker.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import ReactDatePicker, { ReactDatePickerProps } from "react-datepicker";
|
|
3
3
|
import "react-datepicker/dist/react-datepicker.css";
|
|
4
4
|
type DateInputProps = ReactDatePickerProps;
|
|
5
|
-
declare const DateInput: React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<
|
|
5
|
+
declare const DateInput: React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<ReactDatePicker<undefined, undefined>>>;
|
|
6
6
|
export default DateInput;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
|
+
declare function DateTimeInput({ id, name, defaultValue, onChangeValue, showNowButton, }: React.InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
+
onChangeValue?: (newDate: string) => void;
|
|
4
|
+
showNowButton?: boolean;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
}): ReactElement;
|
|
9
|
+
export default DateTimeInput;
|