dhre-component-lib 0.9.0 → 0.10.0

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,21 @@
1
+ import React from "react";
2
+ import "./RadioButtonV2.module.scss";
3
+ export interface RadioButtonV2Props {
4
+ /** Radio group name */
5
+ name: string;
6
+ /** Value for this option */
7
+ value: string;
8
+ /** Display label shown beside the circle */
9
+ label: string;
10
+ /** Whether this option is currently selected */
11
+ checked?: boolean;
12
+ /** Disables interaction and applies muted styling */
13
+ disabled?: boolean;
14
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
15
+ /** Input element id — links the label for accessibility */
16
+ id?: string;
17
+ /** Optional extra className on the wrapper */
18
+ className?: string;
19
+ }
20
+ declare const RadioButtonV2: React.FC<RadioButtonV2Props>;
21
+ export default RadioButtonV2;
@@ -1 +1,3 @@
1
1
  export { default } from "./RadioButton";
2
+ export { default as RadioButtonV2 } from "./RadioButtonV2";
3
+ export type { RadioButtonV2Props } from "./RadioButtonV2";
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const Showcase: React.FC;
3
+ export default Showcase;
@@ -0,0 +1,3 @@
1
+ import "./shim";
2
+ import "./theme.css";
3
+ import "./showcase.scss";
package/dist/index.d.ts CHANGED
@@ -192,6 +192,25 @@ interface RadioButtonProps {
192
192
  }
193
193
  declare const CustomRadioButton: React.FC<RadioButtonProps>;
194
194
 
195
+ interface RadioButtonV2Props {
196
+ /** Radio group name */
197
+ name: string;
198
+ /** Value for this option */
199
+ value: string;
200
+ /** Display label shown beside the circle */
201
+ label: string;
202
+ /** Whether this option is currently selected */
203
+ checked?: boolean;
204
+ /** Disables interaction and applies muted styling */
205
+ disabled?: boolean;
206
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
207
+ /** Input element id — links the label for accessibility */
208
+ id?: string;
209
+ /** Optional extra className on the wrapper */
210
+ className?: string;
211
+ }
212
+ declare const RadioButtonV2: React.FC<RadioButtonV2Props>;
213
+
195
214
  interface CustomInputFieldProps {
196
215
  label?: string;
197
216
  value?: any;
@@ -556,5 +575,5 @@ interface StepperInterface {
556
575
  }
557
576
  declare const Stepper: React.FC<StepperInterface>;
558
577
 
559
- export { Accordion as Accordian, Avatar, Badge, Breadcrumb as BreadCrumb, Button, ButtonCategory, ButtonV2, Carousel, Checkbox, CircularProgress, GetDirectionAction as Directions, CustomDivider as Divider, Drawer, Dropdown, MapComponent as GoogleMap, HoverOptionsWrapper, CustomInputField as InputTextField, Link, MediaType, Menu, Modal, ModalV2, OTPInput as OtpInput, Progress, CustomRadioButton as RadioButton, RangeSlider, Search, SearchV2, Stepper, Tabs, TextArea, Toast, ToastStatus, ToggleSwitch, Typography, PdfView as default };
560
- export type { ButtonV2Props, ButtonV2Size, ButtonV2Variant, ModalV2Props, SearchV2Props, SearchV2Size, SearchV2Suggestion };
578
+ export { Accordion as Accordian, Avatar, Badge, Breadcrumb as BreadCrumb, Button, ButtonCategory, ButtonV2, Carousel, Checkbox, CircularProgress, GetDirectionAction as Directions, CustomDivider as Divider, Drawer, Dropdown, MapComponent as GoogleMap, HoverOptionsWrapper, CustomInputField as InputTextField, Link, MediaType, Menu, Modal, ModalV2, OTPInput as OtpInput, Progress, CustomRadioButton as RadioButton, RadioButtonV2, RangeSlider, Search, SearchV2, Stepper, Tabs, TextArea, Toast, ToastStatus, ToggleSwitch, Typography, PdfView as default };
579
+ export type { ButtonV2Props, ButtonV2Size, ButtonV2Variant, ModalV2Props, RadioButtonV2Props, SearchV2Props, SearchV2Size, SearchV2Suggestion };