@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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delightui/components",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "vite",