dfh-ui-library 1.2.25 → 1.2.27

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.
@@ -0,0 +1 @@
1
+ export { default as Heading } from "./Heading";
@@ -17,3 +17,4 @@ export { Tooltip } from "./Tooltip";
17
17
  export { default as DialogBox } from "../components/core/DialogBox";
18
18
  export { default as Modal } from "../components/Modal";
19
19
  export { default as CustomFileInput } from "./CustomFileInput";
20
+ export { Heading } from "./core/Heading";
@@ -214,7 +214,7 @@ export interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
214
214
  /**
215
215
  * Set Label type
216
216
  */
217
- labelType?: "default" | "black" | "smallSelect" | "blackSmall";
217
+ labelType?: "default" | "black" | "smallSelect" | "blackSmall" | "formLabelMedeum";
218
218
  /**
219
219
  * Set Input label name
220
220
  */
@@ -120,12 +120,41 @@ export interface CustomDatePickerProps {
120
120
  selectedDate: Date | null;
121
121
  onChange: (date: Date | null) => void;
122
122
  label?: string;
123
+ placeHolder?: string;
124
+ error?: string;
125
+ /**
126
+ * Ser Error message
127
+ */
128
+ isBorderedError?: boolean;
129
+ labelType?: "default" | "black" | "smallSelect" | "blackSmall" | "formLabelMedeum";
130
+ additionalClasses?: string | undefined;
131
+ readOnly?: boolean;
132
+ type?: InputType;
133
+ /**
134
+ * Set new variant of the input
135
+ */
136
+ inputVariant?: "default" | "large";
123
137
  }
124
138
  export interface PhoneNumberInputProps {
125
139
  value: string;
126
140
  onChange: (value: string) => void;
127
141
  placeholder?: string;
128
142
  additionalClasses?: string | undefined;
143
+ error?: string;
144
+ /**
145
+ * Ser Error message
146
+ */
147
+ isBorderedError?: boolean;
148
+ labelType?: "default" | "black" | "smallSelect" | "blackSmall" | "formLabelMedeum";
149
+ readOnly?: boolean;
150
+ type?: InputType;
151
+ /**
152
+ * Set new variant of the input
153
+ */
154
+ inputVariant?: "default" | "large";
155
+ label?: string | undefined;
156
+ additionalErrorClasses?: string;
157
+ isAdditionalErrorInput?: boolean;
129
158
  }
130
159
  export interface ModalProps {
131
160
  children?: React.ReactNode;
package/dist/index.d.ts CHANGED
@@ -80,12 +80,41 @@ interface CustomDatePickerProps {
80
80
  selectedDate: Date | null;
81
81
  onChange: (date: Date | null) => void;
82
82
  label?: string;
83
+ placeHolder?: string;
84
+ error?: string;
85
+ /**
86
+ * Ser Error message
87
+ */
88
+ isBorderedError?: boolean;
89
+ labelType?: "default" | "black" | "smallSelect" | "blackSmall" | "formLabelMedeum";
90
+ additionalClasses?: string | undefined;
91
+ readOnly?: boolean;
92
+ type?: InputType;
93
+ /**
94
+ * Set new variant of the input
95
+ */
96
+ inputVariant?: "default" | "large";
83
97
  }
84
98
  interface PhoneNumberInputProps {
85
99
  value: string;
86
100
  onChange: (value: string) => void;
87
101
  placeholder?: string;
88
102
  additionalClasses?: string | undefined;
103
+ error?: string;
104
+ /**
105
+ * Ser Error message
106
+ */
107
+ isBorderedError?: boolean;
108
+ labelType?: "default" | "black" | "smallSelect" | "blackSmall" | "formLabelMedeum";
109
+ readOnly?: boolean;
110
+ type?: InputType;
111
+ /**
112
+ * Set new variant of the input
113
+ */
114
+ inputVariant?: "default" | "large";
115
+ label?: string | undefined;
116
+ additionalErrorClasses?: string;
117
+ isAdditionalErrorInput?: boolean;
89
118
  }
90
119
  interface ModalProps {
91
120
  children?: React.ReactNode;
@@ -304,7 +333,7 @@ interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
304
333
  /**
305
334
  * Set Label type
306
335
  */
307
- labelType?: "default" | "black" | "smallSelect" | "blackSmall";
336
+ labelType?: "default" | "black" | "smallSelect" | "blackSmall" | "formLabelMedeum";
308
337
  /**
309
338
  * Set Input label name
310
339
  */
@@ -536,6 +565,29 @@ declare const Modal: React$1.FC<ModalProps>;
536
565
 
537
566
  declare const CustomFileInput: React$1.FC<CustomFileInputProps>;
538
567
 
568
+ interface HeadingProps {
569
+ /**
570
+ * Choose heading type
571
+ */
572
+ type?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
573
+ /**
574
+ * Use to decide the color
575
+ */
576
+ colorType?: "white" | "dark" | "gray" | undefined;
577
+ /**
578
+ * Heading contents
579
+ */
580
+ label?: string;
581
+ /**
582
+ * Optional for additional classes
583
+ */
584
+ additionalClasses?: string | undefined;
585
+ }
586
+ /**
587
+ * Primary UI component for user interaction
588
+ */
589
+ declare const Heading: React$1.FC<HeadingProps>;
590
+
539
591
  interface UseSchemaProcessorProps {
540
592
  schema: ISchema[];
541
593
  externalSetComponents: (data: IComponent[]) => void;
@@ -544,4 +596,4 @@ declare const useSchemaProcessor: ({ schema, externalSetComponents, }: UseSchema
544
596
  componentsRtn: IComponent[] | undefined;
545
597
  };
546
598
 
547
- export { Breadcrumb, Button, Card, Checkbox as CheckBox, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, IconInput, ImagePreview, Input, type InputType, InputValidation, Label, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, PhoneNumberInput, RadioButton, Row, Select, Textarea, Tooltip, Typhography, useSchemaProcessor as UseSchemaProcessor };
599
+ export { Breadcrumb, Button, Card, Checkbox as CheckBox, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, Heading, IconInput, ImagePreview, Input, type InputType, InputValidation, Label, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, PhoneNumberInput, RadioButton, Row, Select, Textarea, Tooltip, Typhography, useSchemaProcessor as UseSchemaProcessor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfh-ui-library",
3
- "version": "1.2.25",
3
+ "version": "1.2.27",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",