dfh-ui-library 1.10.20 → 1.10.21
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/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts +1 -1
- package/dist/index.d.ts +33 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export { LogoProps } from "./shared/models/components/base.model";
|
|
|
6
6
|
export { MessageProps } from "./shared/models/components/common.model";
|
|
7
7
|
export { VariantTypes, BorderType, } from "./shared/models/components/base.model";
|
|
8
8
|
export { DropdownSearchProps, ClickedAction, TimelineEventProps, } from "./shared/models/components/common.model";
|
|
9
|
-
export { BtnOptionDropdown } from "./shared/models/components/common.model";
|
|
9
|
+
export { BtnOptionDropdown, BADGETYPE, } from "./shared/models/components/common.model";
|
|
10
10
|
export { OptionProps, NoteItemProps, } from "./shared/models/components/common.model";
|
|
11
11
|
export { ColumnDef, SortingState } from "@tanstack/react-table";
|
|
12
12
|
export { usePagination } from "./hooks/usePagination";
|
package/dist/index.d.ts
CHANGED
|
@@ -392,6 +392,36 @@ interface PaginationProps {
|
|
|
392
392
|
pageSize: number;
|
|
393
393
|
pageIndex: number;
|
|
394
394
|
}
|
|
395
|
+
declare enum BADGETYPE {
|
|
396
|
+
DEFAULT = "default",
|
|
397
|
+
LARGE = "large",
|
|
398
|
+
BORDERED = "bordered",
|
|
399
|
+
PILLS = "pills",
|
|
400
|
+
LINK = "link"
|
|
401
|
+
}
|
|
402
|
+
type BadgeColorVariant = "default" | "dark" | "red" | "green" | "yellow" | "indigo" | "purple" | "pink" | "error" | "success" | "warning" | "gray";
|
|
403
|
+
interface IBadgePropsBase extends AdditionalClassesProp$1 {
|
|
404
|
+
/** Type of badge based on predefined styles. */
|
|
405
|
+
badgeType?: BADGETYPE;
|
|
406
|
+
/** Content to be displayed inside the badge. */
|
|
407
|
+
children: React.ReactNode;
|
|
408
|
+
}
|
|
409
|
+
interface IBadgePropsWithColors extends IBadgePropsBase {
|
|
410
|
+
/** Custom text color for the badge. */
|
|
411
|
+
textColor: string;
|
|
412
|
+
/** Custom background color for the badge. */
|
|
413
|
+
backgroundColor: string;
|
|
414
|
+
/** Optional color variant, used when custom colors are not provided. */
|
|
415
|
+
colorVariant?: BadgeColorVariant;
|
|
416
|
+
}
|
|
417
|
+
interface IBadgePropsWithoutColors extends IBadgePropsBase {
|
|
418
|
+
/** Custom colors not allowed in this variant. */
|
|
419
|
+
textColor?: never;
|
|
420
|
+
backgroundColor?: never;
|
|
421
|
+
/** Mandatory color variant, used when custom colors are not provided. */
|
|
422
|
+
colorVariant: BadgeColorVariant;
|
|
423
|
+
}
|
|
424
|
+
type IBadgeProps = IBadgePropsWithColors | IBadgePropsWithoutColors;
|
|
395
425
|
interface ProgressBarProps {
|
|
396
426
|
percentage: number;
|
|
397
427
|
classes?: string;
|
|
@@ -1201,6 +1231,8 @@ declare const Typho: React__default.FC<ITyphoProps>;
|
|
|
1201
1231
|
|
|
1202
1232
|
declare const Spinner: React__default.FC;
|
|
1203
1233
|
|
|
1234
|
+
declare const Badge: React__default.FC<IBadgeProps>;
|
|
1235
|
+
|
|
1204
1236
|
interface UseSchemaProcessorProps {
|
|
1205
1237
|
schema: ISchema[];
|
|
1206
1238
|
externalSetComponents: (data: IComponent[]) => void;
|
|
@@ -1512,4 +1544,4 @@ declare const themeConfigs: {
|
|
|
1512
1544
|
plugins: any[];
|
|
1513
1545
|
};
|
|
1514
1546
|
|
|
1515
|
-
export { BorderType, Breadcrumb, type BtnOptionDropdown, Button, ButtonGroup, ButtonGroupFormGen, ButtonGroupWithInputs, ButtonGroupWithInputsFormGen, ButtonGroupWithUpload, Card, Checkbox as CheckBox, ClickedAction, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, type DropdownSearchProps, DynamicDualInputTextGroupFormGen, FilterButtonGroup, Heading, HistoryDetails, Icon, IconInput, ImageInput, ImagePreview, IndeterminateCheckbox, InfoCard, Input, type InputType, InputValidation, InputsGroup, Label, ListRow, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, NoteEditor, type NoteHistoryProps, type NoteItemProps, type OptionProps, PanelCard, PhoneNumberInput, PreviousDataBadge, ProgressBar, RadioButton, Row, SearchDropdownWithButton, Select, SelectUserWithButton, SortDropdown, Spinner, Stepper, Tab, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Timeline, type TimelineEventProps, Tooltip, Typho, Typhography, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, VersionDateDropdown, themeConfigs, usePagination, useSorting };
|
|
1547
|
+
export { BADGETYPE, Badge, BorderType, Breadcrumb, type BtnOptionDropdown, Button, ButtonGroup, ButtonGroupFormGen, ButtonGroupWithInputs, ButtonGroupWithInputsFormGen, ButtonGroupWithUpload, Card, Checkbox as CheckBox, ClickedAction, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, type DropdownSearchProps, DynamicDualInputTextGroupFormGen, FilterButtonGroup, Heading, HistoryDetails, Icon, IconInput, ImageInput, ImagePreview, IndeterminateCheckbox, InfoCard, Input, type InputType, InputValidation, InputsGroup, Label, ListRow, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, NoteEditor, type NoteHistoryProps, type NoteItemProps, type OptionProps, PanelCard, PhoneNumberInput, PreviousDataBadge, ProgressBar, RadioButton, Row, SearchDropdownWithButton, Select, SelectUserWithButton, SortDropdown, Spinner, Stepper, Tab, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Timeline, type TimelineEventProps, Tooltip, Typho, Typhography, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, VersionDateDropdown, themeConfigs, usePagination, useSorting };
|