@delightui/components 0.1.9 → 0.1.11
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/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/components/molecules/Nav/NavLink/NavLink.types.d.ts +2 -1
- package/dist/cjs/components/molecules/TabItem/TabItem.types.d.ts +7 -3
- package/dist/cjs/library.css +25352 -6324
- 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/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/components/molecules/Nav/NavLink/NavLink.types.d.ts +2 -1
- package/dist/esm/components/molecules/TabItem/TabItem.types.d.ts +7 -3
- package/dist/esm/library.css +25352 -6324
- 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 +12 -3
- 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
|
@@ -730,6 +730,11 @@ type DatePickerProps = {
|
|
|
730
730
|
* this function will be used to parse initial date string and date string from input field.
|
|
731
731
|
*/
|
|
732
732
|
parseDate?: (date: string) => Date;
|
|
733
|
+
/**
|
|
734
|
+
* Allow user to type date/time in input.
|
|
735
|
+
* @default false
|
|
736
|
+
*/
|
|
737
|
+
allowInput?: boolean;
|
|
733
738
|
};
|
|
734
739
|
|
|
735
740
|
declare const DatePicker: (props: DatePickerProps) => React$1.JSX.Element;
|
|
@@ -1037,7 +1042,7 @@ type NavItemProps = LiHTMLAttributes<HTMLElement> & {};
|
|
|
1037
1042
|
|
|
1038
1043
|
declare const NavItem: (props: NavItemProps) => React$1.JSX.Element;
|
|
1039
1044
|
|
|
1040
|
-
type NavLinkProps = Omit<LinkProps, 'to'> & {
|
|
1045
|
+
type NavLinkProps = Omit<LinkProps, 'to'> & Pick<ButtonProps, 'size' | 'style' | 'type'> & {
|
|
1041
1046
|
/**
|
|
1042
1047
|
* The destination URL or path for the navigation link.
|
|
1043
1048
|
* If the URL starts with "https", it will be treated as an external link and rendered as an <a> tag.
|
|
@@ -1279,7 +1284,7 @@ interface TabContentProps {
|
|
|
1279
1284
|
|
|
1280
1285
|
declare const TabContent: (props: TabContentProps) => React$1.JSX.Element | null;
|
|
1281
1286
|
|
|
1282
|
-
|
|
1287
|
+
type TabItemProps = Omit<HTMLAttributes<HTMLButtonElement>, 'style'> & {
|
|
1283
1288
|
/**
|
|
1284
1289
|
* The tabs value.
|
|
1285
1290
|
* @remarks
|
|
@@ -1296,7 +1301,11 @@ interface TabItemProps extends ButtonProps {
|
|
|
1296
1301
|
* True means that this tab will be displayed initially
|
|
1297
1302
|
*/
|
|
1298
1303
|
defaultTab?: boolean;
|
|
1299
|
-
|
|
1304
|
+
/**
|
|
1305
|
+
* Click event handler for the button.
|
|
1306
|
+
*/
|
|
1307
|
+
onClick?: (event?: MouseEvent<HTMLElement>) => void;
|
|
1308
|
+
};
|
|
1300
1309
|
|
|
1301
1310
|
declare const TabItem: (props: TabItemProps) => React$1.JSX.Element;
|
|
1302
1311
|
|