@veevarts/design-system 1.16.0 → 1.17.0-beta.2

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/README.md CHANGED
@@ -171,6 +171,18 @@ All HeroUI components are re-exported and themed:
171
171
  import { Card, Input, Modal, Dropdown } from '@veevarts/design-system';
172
172
  ```
173
173
 
174
+ The design system also overrides a few inputs with Veevart-specific wrappers. `DatePicker` supports three modes through one API:
175
+
176
+ ```tsx
177
+ import { DatePicker } from '@veevarts/design-system';
178
+
179
+ <DatePicker mode="date" label="Start date" />;
180
+ <DatePicker mode="datetime" label="Event starts" />;
181
+ <DatePicker mode="time" label="Doors open" minuteStep={15} />;
182
+ ```
183
+
184
+ For `mode="datetime"`, the design system does not convert timezones. The consuming app must pass the value already prepared in the business timezone it wants to present. The component hides timezone labels by default.
185
+
174
186
  For complete HeroUI documentation, visit: [HeroUI Storybook](https://storybook.heroui.com/)
175
187
 
176
188
  ### Configure Tailwind CSS
@@ -0,0 +1,17 @@
1
+ import { ButtonProps, DatePickerProps as HeroUIDatePickerProps, TimeInputProps as HeroUITimeInputProps } from '@heroui/react';
2
+ type DateOnlyProps = HeroUIDatePickerProps & {
3
+ mode?: 'date';
4
+ };
5
+ type DateTimeProps = HeroUIDatePickerProps & {
6
+ mode: 'datetime';
7
+ };
8
+ type TimeOnlyProps = HeroUITimeInputProps & {
9
+ mode: 'time';
10
+ minuteStep?: 5 | 10 | 15 | 30;
11
+ timeListClassName?: string;
12
+ timeListLabel?: string;
13
+ selectorButtonProps?: Omit<ButtonProps, 'children' | 'onPress' | 'isIconOnly'>;
14
+ };
15
+ export type DatePickerProps = DateOnlyProps | DateTimeProps | TimeOnlyProps;
16
+ export declare function DatePicker(props: DatePickerProps): import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,2 @@
1
+ export { DatePicker } from './DatePicker';
2
+ export type { DatePickerProps } from './DatePicker';
@@ -13,5 +13,7 @@ export * from '@heroui/react';
13
13
  export type * from '@heroui/react';
14
14
  export { Button } from './Button';
15
15
  export type { ButtonProps } from './Button';
16
+ export { DatePicker } from './DatePicker';
17
+ export type { DatePickerProps } from './DatePicker';
16
18
  export { Select } from './Select';
17
19
  export type { SelectProps } from './Select';