@delightui/components 0.1.10 → 0.1.12
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/App.d.ts +0 -2
- package/dist/cjs/components/atoms/Button/Button.types.d.ts +6 -0
- package/dist/cjs/components/atoms/IconButton/IconButton.types.d.ts +6 -0
- package/dist/cjs/components/molecules/DatePicker/DatePicker.types.d.ts +8 -0
- package/dist/cjs/components/molecules/DatePicker/Plugins/dateTimeSelector.d.ts +4 -0
- package/dist/cjs/components/molecules/DatePicker/Plugins/timeSelector.d.ts +4 -0
- package/dist/cjs/components/molecules/DatePicker/Plugins/utils.d.ts +32 -0
- package/dist/cjs/library.css +22705 -13126
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/cjs/modules/theme/ThemeProvider.d.ts +2 -0
- package/dist/esm/App.d.ts +0 -2
- package/dist/esm/components/atoms/Button/Button.types.d.ts +6 -0
- package/dist/esm/components/atoms/IconButton/IconButton.types.d.ts +6 -0
- package/dist/esm/components/molecules/DatePicker/DatePicker.types.d.ts +8 -0
- package/dist/esm/components/molecules/DatePicker/Plugins/dateTimeSelector.d.ts +4 -0
- package/dist/esm/components/molecules/DatePicker/Plugins/timeSelector.d.ts +4 -0
- package/dist/esm/components/molecules/DatePicker/Plugins/utils.d.ts +32 -0
- package/dist/esm/library.css +22705 -13126
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/esm/modules/theme/ThemeProvider.d.ts +2 -0
- package/dist/index.d.ts +17 -0
- package/package.json +1 -1
|
@@ -2,5 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ThemeContextType, ThemeProviderProps } from './ThemeProvider.types';
|
|
3
3
|
import '../../resources/scss/fonts.scss';
|
|
4
4
|
import '../../resources/themes/base.css';
|
|
5
|
+
import '../../resources/themes/light.css';
|
|
6
|
+
import '../../resources/themes/dark.css';
|
|
5
7
|
export declare const ThemeContext: React.Context<ThemeContextType>;
|
|
6
8
|
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -90,10 +90,16 @@ type ActionImageProps = ImageProps & {
|
|
|
90
90
|
declare const ActionImage: (props: ActionImageProps) => React$1.JSX.Element;
|
|
91
91
|
|
|
92
92
|
type ButtonTypeEnum = 'Filled' | 'Outlined' | 'Ghost';
|
|
93
|
+
type ButtonAppearanceEnum = 'Default' | 'Inverse';
|
|
93
94
|
type ButtonStyleEnum = 'Primary' | 'Secondary' | 'Destructive';
|
|
94
95
|
type ButtonSizeEnum = 'Small' | 'Medium' | 'Large';
|
|
95
96
|
type ButtonActionTypeEnum = 'button' | 'submit' | 'reset';
|
|
96
97
|
type ButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, 'style'> & {
|
|
98
|
+
/**
|
|
99
|
+
* Appearance of the button.
|
|
100
|
+
* @default 'Default'
|
|
101
|
+
*/
|
|
102
|
+
appearance?: ButtonAppearanceEnum;
|
|
97
103
|
/**
|
|
98
104
|
* Type of the button.
|
|
99
105
|
* @default 'Filled'
|
|
@@ -188,9 +194,15 @@ interface IconProps {
|
|
|
188
194
|
|
|
189
195
|
declare const Icon: (props: IconProps) => React$1.JSX.Element | null;
|
|
190
196
|
|
|
197
|
+
type IconButtonAppearanceEnum = 'Default' | 'Inverse';
|
|
191
198
|
type IconButtonStyleEnum = 'Primary' | 'Secondary';
|
|
192
199
|
type IconButtonSizeEnum = 'Small' | 'Medium';
|
|
193
200
|
interface IconButtonProps extends Omit<ButtonProps, 'leadingIcon' | 'trailingIcon' | 'style' | 'size'> {
|
|
201
|
+
/**
|
|
202
|
+
* Appearance of the button.
|
|
203
|
+
* @default 'Default'
|
|
204
|
+
*/
|
|
205
|
+
appearance?: IconButtonAppearanceEnum;
|
|
194
206
|
/**
|
|
195
207
|
* The icon to be displayed.
|
|
196
208
|
*/
|
|
@@ -730,6 +742,11 @@ type DatePickerProps = {
|
|
|
730
742
|
* this function will be used to parse initial date string and date string from input field.
|
|
731
743
|
*/
|
|
732
744
|
parseDate?: (date: string) => Date;
|
|
745
|
+
/**
|
|
746
|
+
* Allow user to type date/time in input.
|
|
747
|
+
* @default false
|
|
748
|
+
*/
|
|
749
|
+
allowInput?: boolean;
|
|
733
750
|
};
|
|
734
751
|
|
|
735
752
|
declare const DatePicker: (props: DatePickerProps) => React$1.JSX.Element;
|