sevago-library 1.1.8 → 1.2.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.
@@ -11,6 +11,7 @@ export * from './text-field-search/text-field-search.element';
11
11
  export * from './text-field-select-search-object/text-field-select-search-object.element';
12
12
  export * from './text-field-select/text-field-select.element';
13
13
  export * from './text-field-time/text-field-time.element';
14
+ export * from './text-field-time-range/text-field-time-range.element';
14
15
  export * from './text-field-upload-image/text-field-upload-image.element';
15
16
  export * from './text-field-upload-images/text-field-upload-images.element';
16
17
  export * from './text-field.element';
@@ -0,0 +1,6 @@
1
+ import { ArgTypes } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import { TextFieldTimeRangeElement } from './text-field-time-range.element';
4
+ type TextFieldTimeRangeElementProps = ComponentProps<typeof TextFieldTimeRangeElement>;
5
+ export declare const textFieldTimeRangeArgTypes: Partial<ArgTypes<TextFieldTimeRangeElementProps>>;
6
+ export {};
@@ -0,0 +1,27 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { TimePickerProps } from '@mui/x-date-pickers/TimePicker';
3
+ import { default as React } from 'react';
4
+ type TimeRangeChangeEvent = {
5
+ target: {
6
+ name?: string;
7
+ value: string;
8
+ };
9
+ };
10
+ export interface TextFieldTimeRangeElementProps extends Omit<TimePickerProps, 'value' | 'onChange' | 'defaultValue'> {
11
+ name?: string;
12
+ value?: string;
13
+ label?: string;
14
+ fromPlaceholder?: string;
15
+ toPlaceholder?: string;
16
+ separator?: string;
17
+ format?: string;
18
+ valueFormat?: string;
19
+ required?: boolean;
20
+ sx?: SxProps<Theme>;
21
+ onChange?: (event: TimeRangeChangeEvent) => void;
22
+ onFromTimeChange?: (time: string) => void;
23
+ onToTimeChange?: (time: string) => void;
24
+ onTimeRangeChange?: (value: string, fromTime: string, toTime: string) => void;
25
+ }
26
+ export declare const TextFieldTimeRangeElement: React.FC<TextFieldTimeRangeElementProps>;
27
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { TextFieldTimeRangeElement } from './text-field-time-range.element';
3
+ declare const meta: Meta<typeof TextFieldTimeRangeElement>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TextFieldTimeRangeElement>;
6
+ export declare const Default: Story;
7
+ export declare const EmptyValue: Story;
8
+ export declare const Disabled: Story;
9
+ export declare const CustomFormat: Story;
10
+ export declare const TwelveHourFormat: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sevago-library",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "description": "Sevago SSO Frontend Library - A comprehensive SSO solution with React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",