@datacrest/dcuikit 1.0.21 → 1.0.23

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.
@@ -1 +1,9 @@
1
1
  export declare const DEFAULT_DATE_FORMAT = "PPP";
2
+ export declare const MONTH_OPTIONS: {
3
+ id: string;
4
+ label: string;
5
+ }[];
6
+ export declare const generateYearOptions: (minDate?: Date, maxDate?: Date) => {
7
+ id: string;
8
+ label: string;
9
+ }[];
@@ -19,4 +19,5 @@ export interface DatePickerProps {
19
19
  format?: string;
20
20
  variant?: 'primary' | 'secondary' | 'tertiary';
21
21
  dataTestId?: string;
22
+ enableYearMonthDropdowns?: boolean;
22
23
  }
@@ -1,5 +1,5 @@
1
1
  export * from './CustomDialogContent';
2
- export * from './Dialog';
3
2
  export * from './types';
4
3
  export * from './const';
5
4
  export * from './utils';
5
+ export { default as Dialog } from './Dialog';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SeparatorProps } from './types';
3
+ declare const Separator: React.FC<SeparatorProps>;
4
+ export default Separator;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Separator from './Separator';
3
+ declare const meta: Meta<typeof Separator>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const SeparatorStory: Story;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,2 @@
1
+ export { default as Separator } from './Separator';
2
+ export { orientations as separatorOrientations, weights as separatorWeights, variants as separatorVariants, colors as separatorColors, } from './types';
@@ -0,0 +1,18 @@
1
+ import { CSSProperties } from 'react';
2
+ export type SeparatorOrientation = 'horizontal' | 'vertical';
3
+ export type SeparatorWeight = 'small' | 'medium' | 'large';
4
+ export type SeparatorVariant = 'solid' | 'dashed' | 'dotted';
5
+ export type SeparatorColor = 'default' | 'primary' | 'secondary' | 'tertiary' | 'danger' | 'warning' | 'harford' | 'muted' | 'accent' | 'border' | 'input' | 'background' | 'foreground' | 'light' | 'dark';
6
+ export declare const orientations: SeparatorOrientation[];
7
+ export declare const weights: SeparatorWeight[];
8
+ export declare const variants: SeparatorVariant[];
9
+ export declare const colors: SeparatorColor[];
10
+ export interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
11
+ orientation?: SeparatorOrientation;
12
+ weight?: SeparatorWeight;
13
+ variant?: SeparatorVariant;
14
+ color?: SeparatorColor;
15
+ fluid?: boolean;
16
+ className?: string;
17
+ style?: CSSProperties;
18
+ }