@kubit-ui-web/react-components 2.0.0-beta.16 → 2.0.0-beta.18
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/README.md +17 -27
- package/dist/cjs/.storybook/bundle-sizes.json +1 -1
- package/dist/cjs/_virtual/jsx-runtime.js +1 -1
- package/dist/cjs/assets/banner_kubit_readme.png +0 -0
- package/dist/cjs/components/chip/chipStandAlone.js +1 -1
- package/dist/cjs/lib/designSystem/kubit/css/kubit.css +1 -0
- package/dist/cjs/lib/designSystem/kubit/css/kubit.min.css +1 -0
- package/dist/cjs/lib/provider/cssProvider/provider.js +1 -1
- package/dist/cjs/lib/storybook/assets/icons/checkmark_thick.svg +3 -0
- package/dist/cjs/lib/storybook/assets/icons/icon_chevron_down.svg +3 -0
- package/dist/cjs/lib/storybook/assets/icons/icon_chevron_left.svg +3 -0
- package/dist/cjs/lib/storybook/assets/icons/icon_chevron_right.svg +3 -0
- package/dist/cjs/lib/storybook/assets/icons/icon_chevron_up.svg +3 -0
- package/dist/cjs/lib/storybook/assets/icons/icon_ds_handle.svg +3 -0
- package/dist/cjs/lib/storybook/assets/icons/icon_ghost.svg +5 -0
- package/dist/cjs/lib/storybook/assets/icons/icon_placeholder.svg +3 -0
- package/dist/cjs/lib/storybook/assets/icons/icon_x_close.svg +3 -0
- package/dist/cjs/lib/storybook/assets/icons/play_button.svg +3 -0
- package/dist/cjs/lib/storybook/assets/icons/replace.svg +38 -0
- package/dist/cjs/lib/storybook/assets/images/image_1.png +0 -0
- package/dist/cjs/lib/storybook/assets/images/image_2.png +0 -0
- package/dist/cjs/lib/storybook/assets/images/image_3.png +0 -0
- package/dist/cjs/lib/storybook/assets/images/image_4.png +0 -0
- package/dist/cjs/lib/storybook/assets/loader/loader.css +1 -0
- package/dist/cjs/lib/storybook/components/divider/divider.css +1 -0
- package/dist/cjs/lib/storybook/components/note/styles.css +1 -0
- package/dist/cjs/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +1 -0
- package/dist/cjs/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +1 -0
- package/dist/cjs/scripts/generate-bundle-sizes.mjs +1 -1
- package/dist/esm/.storybook/bundle-sizes.json +1 -1
- package/dist/esm/_virtual/jsx-runtime.js +1 -1
- package/dist/esm/assets/banner_kubit_readme.png +0 -0
- package/dist/esm/components/chip/chipStandAlone.js +6 -6
- package/dist/esm/lib/designSystem/kubit/css/kubit.css +1 -0
- package/dist/esm/lib/designSystem/kubit/css/kubit.min.css +1 -0
- package/dist/esm/lib/provider/cssProvider/provider.js +1 -1
- package/dist/esm/lib/storybook/assets/icons/checkmark_thick.svg +3 -0
- package/dist/esm/lib/storybook/assets/icons/icon_chevron_down.svg +3 -0
- package/dist/esm/lib/storybook/assets/icons/icon_chevron_left.svg +3 -0
- package/dist/esm/lib/storybook/assets/icons/icon_chevron_right.svg +3 -0
- package/dist/esm/lib/storybook/assets/icons/icon_chevron_up.svg +3 -0
- package/dist/esm/lib/storybook/assets/icons/icon_ds_handle.svg +3 -0
- package/dist/esm/lib/storybook/assets/icons/icon_ghost.svg +5 -0
- package/dist/esm/lib/storybook/assets/icons/icon_placeholder.svg +3 -0
- package/dist/esm/lib/storybook/assets/icons/icon_x_close.svg +3 -0
- package/dist/esm/lib/storybook/assets/icons/play_button.svg +3 -0
- package/dist/esm/lib/storybook/assets/icons/replace.svg +38 -0
- package/dist/esm/lib/storybook/assets/images/image_1.png +0 -0
- package/dist/esm/lib/storybook/assets/images/image_2.png +0 -0
- package/dist/esm/lib/storybook/assets/images/image_3.png +0 -0
- package/dist/esm/lib/storybook/assets/images/image_4.png +0 -0
- package/dist/esm/lib/storybook/assets/loader/loader.css +1 -0
- package/dist/esm/lib/storybook/components/divider/divider.css +1 -0
- package/dist/esm/lib/storybook/components/note/styles.css +1 -0
- package/dist/esm/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +1 -0
- package/dist/esm/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +1 -0
- package/dist/esm/scripts/generate-bundle-sizes.mjs +1 -1
- package/dist/types/index.d.ts +637 -5
- package/package.json +41 -36
package/dist/types/index.d.ts
CHANGED
|
@@ -542,6 +542,28 @@ export declare type ButtonVariantStyles<Variant extends string> = ButtonStylePro
|
|
|
542
542
|
[key in Variant]?: Partial<ButtonStyleProps>;
|
|
543
543
|
};
|
|
544
544
|
|
|
545
|
+
/**
|
|
546
|
+
* Calendar component for date selection.
|
|
547
|
+
*
|
|
548
|
+
* This component provides an interactive calendar interface for selecting single dates
|
|
549
|
+
* or date ranges. It supports month/year navigation, date restrictions, and customizable variants.
|
|
550
|
+
*
|
|
551
|
+
* @example
|
|
552
|
+
* ```tsx
|
|
553
|
+
* <Calendar
|
|
554
|
+
* selectedDate={new Date()}
|
|
555
|
+
* onSelectedDateChange={(date) => console.log(date)}
|
|
556
|
+
* />
|
|
557
|
+
*
|
|
558
|
+
* // Date range selection:
|
|
559
|
+
* <Calendar
|
|
560
|
+
* hasRange
|
|
561
|
+
* selectedDate={startDate}
|
|
562
|
+
* secondSelectedDate={endDate}
|
|
563
|
+
* onSelectedDateChange={(dates) => console.log(dates)}
|
|
564
|
+
* />
|
|
565
|
+
* ```
|
|
566
|
+
*/
|
|
545
567
|
export declare const Calendar: ForwardRefExoticComponent<CalendarProps<string> & RefAttributes<HTMLDivElement>>;
|
|
546
568
|
|
|
547
569
|
/**
|
|
@@ -796,16 +818,63 @@ export declare type ChecboxVariantStyles<Variant extends string> = ChecboxStyleP
|
|
|
796
818
|
[key in Variant]?: ChecboxStyleProps;
|
|
797
819
|
};
|
|
798
820
|
|
|
821
|
+
/**
|
|
822
|
+
* CheckboxUnControlled component with internal state management.
|
|
823
|
+
*
|
|
824
|
+
* This component renders a checkbox that manages its own checked state internally.
|
|
825
|
+
* Useful when you don't need to control the checkbox state from a parent component.
|
|
826
|
+
* It automatically handles toggle behavior on user interaction.
|
|
827
|
+
*
|
|
828
|
+
* @example
|
|
829
|
+
* ```tsx
|
|
830
|
+
* <CheckboxUnControlled
|
|
831
|
+
* checked={false}
|
|
832
|
+
* onChange={(e) => console.log(e.target.checked)}
|
|
833
|
+
* label="Remember me"
|
|
834
|
+
* />
|
|
835
|
+
* ```
|
|
836
|
+
*/
|
|
799
837
|
export declare const Checkbox: ForwardRefExoticComponent<CheckboxUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
800
838
|
|
|
801
839
|
declare type CheckboxAriaAttributes = Pick<React.AriaAttributes, 'aria-label' | 'aria-labelledby' | 'aria-hidden' | 'aria-describedby'>;
|
|
802
840
|
|
|
841
|
+
/**
|
|
842
|
+
* CheckboxBaseUnControlled component with internal state management.
|
|
843
|
+
*
|
|
844
|
+
* This is a low-level uncontrolled checkbox that manages its own checked state.
|
|
845
|
+
* It automatically handles toggle behavior and notifies via onChange callback.
|
|
846
|
+
* Useful for checkboxes that don't require external state control.
|
|
847
|
+
*
|
|
848
|
+
* @example
|
|
849
|
+
* ```tsx
|
|
850
|
+
* <CheckboxBaseUnControlled
|
|
851
|
+
* checked={false}
|
|
852
|
+
* onChange={(e) => console.log(e.target.checked)}
|
|
853
|
+
* />
|
|
854
|
+
* ```
|
|
855
|
+
*/
|
|
803
856
|
export declare const CheckboxBase: ForwardRefExoticComponent<CheckboxBaseUnControlledProps<string> & {
|
|
804
857
|
children?: ReactNode | undefined;
|
|
805
858
|
} & RefAttributes<HTMLDivElement>>;
|
|
806
859
|
|
|
807
860
|
declare type CheckboxBaseAriaAttributesProps = Pick<React.AriaAttributes, 'aria-label' | 'aria-labelledby' | 'aria-hidden' | 'aria-describedby'>;
|
|
808
861
|
|
|
862
|
+
/**
|
|
863
|
+
* CheckboxBaseControlled component for managed checkbox state.
|
|
864
|
+
*
|
|
865
|
+
* This is a low-level checkbox component where the checked state is controlled
|
|
866
|
+
* externally. It handles error states, required validation, and applies appropriate
|
|
867
|
+
* styling based on the checkbox state (checked, unchecked, indeterminate, disabled).
|
|
868
|
+
*
|
|
869
|
+
* @example
|
|
870
|
+
* ```tsx
|
|
871
|
+
* <CheckboxBaseControlled
|
|
872
|
+
* checked={isChecked}
|
|
873
|
+
* onChange={(e) => setIsChecked(e.target.checked)}
|
|
874
|
+
* error={hasError}
|
|
875
|
+
* />
|
|
876
|
+
* ```
|
|
877
|
+
*/
|
|
809
878
|
export declare const CheckboxBaseControlled: ForwardRefExoticComponent<CheckboxBaseControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
810
879
|
|
|
811
880
|
/**
|
|
@@ -848,6 +917,22 @@ export declare interface CheckboxBaseStandAloneProps extends InputActionsProps,
|
|
|
848
917
|
*/
|
|
849
918
|
export declare type CheckboxBaseUnControlledProps<Variant = undefined extends string ? unknown : string> = CheckboxBaseControlledProps<Variant>;
|
|
850
919
|
|
|
920
|
+
/**
|
|
921
|
+
* CheckboxControlled component for managed checkbox state.
|
|
922
|
+
*
|
|
923
|
+
* This component renders a checkbox where the checked state is controlled
|
|
924
|
+
* externally via props. It handles checked, indeterminate, disabled, and
|
|
925
|
+
* error states with appropriate styling and ARIA attributes.
|
|
926
|
+
*
|
|
927
|
+
* @example
|
|
928
|
+
* ```tsx
|
|
929
|
+
* <CheckboxControlled
|
|
930
|
+
* checked={isChecked}
|
|
931
|
+
* onChange={(e) => setIsChecked(e.target.checked)}
|
|
932
|
+
* label="Accept terms"
|
|
933
|
+
* />
|
|
934
|
+
* ```
|
|
935
|
+
*/
|
|
851
936
|
export declare const CheckboxControlled: ForwardRefExoticComponent<CheckboxControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
852
937
|
|
|
853
938
|
/**
|
|
@@ -958,11 +1043,6 @@ export declare interface ChipStandAloneProps extends DataAttributes {
|
|
|
958
1043
|
rangeIcon?: ElementOrIconProps;
|
|
959
1044
|
errorMessage?: CommonTextProps;
|
|
960
1045
|
rangeSeparator?: CommonTextProps;
|
|
961
|
-
/**
|
|
962
|
-
* @deprecated
|
|
963
|
-
* Use closeIcon -> altText instead
|
|
964
|
-
*/
|
|
965
|
-
deleteText?: string;
|
|
966
1046
|
state: ChipStateType;
|
|
967
1047
|
cssClasses?: ChipCssClasses;
|
|
968
1048
|
}
|
|
@@ -3082,6 +3162,21 @@ declare type DataAttributes = {
|
|
|
3082
3162
|
[key in `data-${string}`]?: string;
|
|
3083
3163
|
};
|
|
3084
3164
|
|
|
3165
|
+
/**
|
|
3166
|
+
* DataTable component for displaying structured data in a table format.
|
|
3167
|
+
*
|
|
3168
|
+
* This component provides advanced table functionality including sticky columns,
|
|
3169
|
+
* scrollable content, shadow effects, and divider management. It handles complex
|
|
3170
|
+
* table behaviors automatically through internal hooks.
|
|
3171
|
+
*
|
|
3172
|
+
* @example
|
|
3173
|
+
* ```tsx
|
|
3174
|
+
* <DataTable variant="striped">
|
|
3175
|
+
* <TableHead>...</TableHead>
|
|
3176
|
+
* <TableBody>...</TableBody>
|
|
3177
|
+
* </DataTable>
|
|
3178
|
+
* ```
|
|
3179
|
+
*/
|
|
3085
3180
|
export declare const DataTable: ForwardRefExoticComponent<DataTableProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3086
3181
|
|
|
3087
3182
|
export declare type DataTableCellProps = TableCellProps & {
|
|
@@ -3779,6 +3874,23 @@ export declare interface ImageStyleProps {
|
|
|
3779
3874
|
width?: string;
|
|
3780
3875
|
}
|
|
3781
3876
|
|
|
3877
|
+
/**
|
|
3878
|
+
* Input component for text input fields.
|
|
3879
|
+
*
|
|
3880
|
+
* This component provides a styled text input with support for labels, helper text,
|
|
3881
|
+
* error messages, icons, and various states (disabled, error, success). It manages
|
|
3882
|
+
* focus state internally and applies appropriate styling.
|
|
3883
|
+
*
|
|
3884
|
+
* @example
|
|
3885
|
+
* ```tsx
|
|
3886
|
+
* <Input
|
|
3887
|
+
* label="Email"
|
|
3888
|
+
* type="email"
|
|
3889
|
+
* placeholder="Enter your email"
|
|
3890
|
+
* error="Invalid email"
|
|
3891
|
+
* />
|
|
3892
|
+
* ```
|
|
3893
|
+
*/
|
|
3782
3894
|
export declare const Input: ForwardRefExoticComponent<InputProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3783
3895
|
|
|
3784
3896
|
declare type InputActionsProps = Pick<DOMAttributes<HTMLInputElement>, 'onBlur' | 'onChange'>;
|
|
@@ -3787,6 +3899,23 @@ export declare type InputActionsType = Pick<DOMAttributes<HTMLInputElement>, 'on
|
|
|
3787
3899
|
|
|
3788
3900
|
declare type InputActionsType_2 = Pick<DOMAttributes<HTMLInputElement>, 'onBlur' | 'onChange'>;
|
|
3789
3901
|
|
|
3902
|
+
/**
|
|
3903
|
+
* InputBase component for basic text input functionality.
|
|
3904
|
+
*
|
|
3905
|
+
* This is a low-level input component that provides the foundation for more
|
|
3906
|
+
* complex input components. It manages states (focused, filled, error, disabled)
|
|
3907
|
+
* and applies appropriate styling and ARIA attributes.
|
|
3908
|
+
*
|
|
3909
|
+
* @example
|
|
3910
|
+
* ```tsx
|
|
3911
|
+
* <InputBase
|
|
3912
|
+
* placeholder="Enter text"
|
|
3913
|
+
* error={hasError}
|
|
3914
|
+
* filled={!!value}
|
|
3915
|
+
* focused={isFocused}
|
|
3916
|
+
* />
|
|
3917
|
+
* ```
|
|
3918
|
+
*/
|
|
3790
3919
|
export declare const InputBase: ForwardRefExoticComponent<InputBaseProps<string> & RefAttributes<HTMLInputElement>>;
|
|
3791
3920
|
|
|
3792
3921
|
export declare type InputBaseActionsType = Pick<DOMAttributes<HTMLInputElement>, 'onKeyDown' | 'onFocus' | 'onBlur' | 'onPaste' | 'onCopy'>;
|
|
@@ -3842,6 +3971,24 @@ export declare type InputBaseVariantStyles<Variant extends string> = CssLibProps
|
|
|
3842
3971
|
|
|
3843
3972
|
declare type InputCssClasses = ComponentSelected<ComponentsTypesComponents['INPUT']>;
|
|
3844
3973
|
|
|
3974
|
+
/**
|
|
3975
|
+
* InputDecoration component for wrapping and decorating input fields.
|
|
3976
|
+
*
|
|
3977
|
+
* This component provides a styled container for input elements with support
|
|
3978
|
+
* for labels, icons, helper text, and various visual states. It manages the
|
|
3979
|
+
* state representation (focused, filled, error, disabled) for consistent styling.
|
|
3980
|
+
*
|
|
3981
|
+
* @example
|
|
3982
|
+
* ```tsx
|
|
3983
|
+
* <InputDecoration
|
|
3984
|
+
* label="Email"
|
|
3985
|
+
* error={hasError}
|
|
3986
|
+
* helperText="Enter a valid email"
|
|
3987
|
+
* >
|
|
3988
|
+
* <input type="email" />
|
|
3989
|
+
* </InputDecoration>
|
|
3990
|
+
* ```
|
|
3991
|
+
*/
|
|
3845
3992
|
export declare const InputDecoration: ForwardRefExoticComponent<InputDecorationProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3846
3993
|
|
|
3847
3994
|
declare type InputDecorationCssClasses = ComponentSelected<ComponentsTypesComponents['INPUT_DECORATION']>;
|
|
@@ -3895,8 +4042,43 @@ export declare interface InputProps<Variant = undefined extends string ? unknown
|
|
|
3895
4042
|
additionalClasses?: Partial<InputCssClasses>;
|
|
3896
4043
|
}
|
|
3897
4044
|
|
|
4045
|
+
/**
|
|
4046
|
+
* InputSignatureUnControlled component with internal signature management.
|
|
4047
|
+
*
|
|
4048
|
+
* This component provides a canvas-based signature capture that manages its own
|
|
4049
|
+
* state internally. It handles drawing, clearing, and state updates automatically.
|
|
4050
|
+
* Exposes methods via ref for resetting the signature canvas.
|
|
4051
|
+
*
|
|
4052
|
+
* @example
|
|
4053
|
+
* ```tsx
|
|
4054
|
+
* const signatureRef = useRef();
|
|
4055
|
+
*
|
|
4056
|
+
* <InputSignatureUnControlled
|
|
4057
|
+
* ref={signatureRef}
|
|
4058
|
+
* onChange={(dataUrl) => console.log(dataUrl)}
|
|
4059
|
+
* />
|
|
4060
|
+
*
|
|
4061
|
+
* // Reset signature: signatureRef.current.reset()
|
|
4062
|
+
* ```
|
|
4063
|
+
*/
|
|
3898
4064
|
export declare const InputSignature: ForwardRefExoticComponent<InputSignatureUnControlledProps<string> & RefAttributes<InputSignatureCustomHandle | undefined>>;
|
|
3899
4065
|
|
|
4066
|
+
/**
|
|
4067
|
+
* InputSignatureControlled component for capturing handwritten signatures.
|
|
4068
|
+
*
|
|
4069
|
+
* This component provides a canvas-based signature capture interface where
|
|
4070
|
+
* signature style (color, line width) is controlled externally. It's useful
|
|
4071
|
+
* for forms requiring user signatures.
|
|
4072
|
+
*
|
|
4073
|
+
* @example
|
|
4074
|
+
* ```tsx
|
|
4075
|
+
* <InputSignatureControlled
|
|
4076
|
+
* signatureStyle={{ color: '#000000', lineWidth: 2 }}
|
|
4077
|
+
* setSignatureStyles={(style) => console.log(style)}
|
|
4078
|
+
* onSignatureChange={(dataUrl) => setSignature(dataUrl)}
|
|
4079
|
+
* />
|
|
4080
|
+
* ```
|
|
4081
|
+
*/
|
|
3900
4082
|
export declare const InputSignatureControlled: ForwardRefExoticComponent<InputSignatureControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
3901
4083
|
|
|
3902
4084
|
/**
|
|
@@ -4310,6 +4492,21 @@ export declare type LinkVariantStyles<Variant extends string> = LinkStylesProps
|
|
|
4310
4492
|
[key in Variant]?: LinkStylesProps;
|
|
4311
4493
|
};
|
|
4312
4494
|
|
|
4495
|
+
/**
|
|
4496
|
+
* ListOptions component for displaying a list of selectable options.
|
|
4497
|
+
*
|
|
4498
|
+
* This component renders a list container for options/items, commonly used
|
|
4499
|
+
* in dropdowns, select menus, or autocomplete interfaces. It manages styling
|
|
4500
|
+
* and provides a consistent container for option elements.
|
|
4501
|
+
*
|
|
4502
|
+
* @example
|
|
4503
|
+
* ```tsx
|
|
4504
|
+
* <ListOptions variant="default">
|
|
4505
|
+
* <Option>Option 1</Option>
|
|
4506
|
+
* <Option>Option 2</Option>
|
|
4507
|
+
* </ListOptions>
|
|
4508
|
+
* ```
|
|
4509
|
+
*/
|
|
4313
4510
|
export declare const ListOptions: ForwardRefExoticComponent<ListOptionsProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4314
4511
|
|
|
4315
4512
|
/**
|
|
@@ -4392,6 +4589,23 @@ declare interface MediaQueries {
|
|
|
4392
4589
|
onlyLargeDesktop: string;
|
|
4393
4590
|
}
|
|
4394
4591
|
|
|
4592
|
+
/**
|
|
4593
|
+
* MessageUnControlled component with internal visibility state.
|
|
4594
|
+
*
|
|
4595
|
+
* This component renders a message that manages its own open/close state internally.
|
|
4596
|
+
* It displays by default and can be dismissed by the user via a close button.
|
|
4597
|
+
* Useful for notifications that don't require external state management.
|
|
4598
|
+
*
|
|
4599
|
+
* @example
|
|
4600
|
+
* ```tsx
|
|
4601
|
+
* <MessageUnControlled
|
|
4602
|
+
* variant="info"
|
|
4603
|
+
* title="Information"
|
|
4604
|
+
* description="This is an informational message"
|
|
4605
|
+
* defaultOpen={true}
|
|
4606
|
+
* />
|
|
4607
|
+
* ```
|
|
4608
|
+
*/
|
|
4395
4609
|
export declare const Message: ForwardRefExoticComponent<MessageUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4396
4610
|
|
|
4397
4611
|
/**
|
|
@@ -4411,6 +4625,23 @@ export declare interface MessageContainerAsLinkProps {
|
|
|
4411
4625
|
target?: React.HTMLAttributeAnchorTarget;
|
|
4412
4626
|
}
|
|
4413
4627
|
|
|
4628
|
+
/**
|
|
4629
|
+
* MessageControlled component for displaying notification messages.
|
|
4630
|
+
*
|
|
4631
|
+
* This component renders styled messages with icons, close buttons, and optional
|
|
4632
|
+
* action links. Useful for alerts, notifications, success/error messages, and
|
|
4633
|
+
* informational banners. State is controlled externally via props.
|
|
4634
|
+
*
|
|
4635
|
+
* @example
|
|
4636
|
+
* ```tsx
|
|
4637
|
+
* <MessageControlled
|
|
4638
|
+
* variant="success"
|
|
4639
|
+
* title="Success!"
|
|
4640
|
+
* description="Your changes have been saved."
|
|
4641
|
+
* onClose={() => {}}
|
|
4642
|
+
* />
|
|
4643
|
+
* ```
|
|
4644
|
+
*/
|
|
4414
4645
|
export declare const MessageControlled: ForwardRefExoticComponent<MessageProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4415
4646
|
|
|
4416
4647
|
declare type MessageCssClasses = ComponentSelected<ComponentsTypesComponents['MESSAGE']>;
|
|
@@ -4517,6 +4748,23 @@ declare interface MiddlewareOptions {
|
|
|
4517
4748
|
hideWhenDetached?: boolean;
|
|
4518
4749
|
}
|
|
4519
4750
|
|
|
4751
|
+
/**
|
|
4752
|
+
* ModalUnControlled component with internal state management.
|
|
4753
|
+
*
|
|
4754
|
+
* This component renders a modal that manages its own open/close state internally.
|
|
4755
|
+
* It automatically syncs with prop changes and handles keyboard interactions.
|
|
4756
|
+
* Useful when you don't need external control over the modal's visibility.
|
|
4757
|
+
*
|
|
4758
|
+
* @example
|
|
4759
|
+
* ```tsx
|
|
4760
|
+
* <ModalUnControlled
|
|
4761
|
+
* open={true}
|
|
4762
|
+
* onClose={() => console.log('closed')}
|
|
4763
|
+
* >
|
|
4764
|
+
* Modal content
|
|
4765
|
+
* </ModalUnControlled>
|
|
4766
|
+
* ```
|
|
4767
|
+
*/
|
|
4520
4768
|
export declare const Modal: ForwardRefExoticComponent<ModalUnControlledProps<string | undefined> & {
|
|
4521
4769
|
children?: ReactNode | undefined;
|
|
4522
4770
|
} & RefAttributes<HTMLDivElement>>;
|
|
@@ -4537,6 +4785,24 @@ export declare interface ModalContentContainerProps extends Pick<AriaAttributes,
|
|
|
4537
4785
|
role?: string;
|
|
4538
4786
|
}
|
|
4539
4787
|
|
|
4788
|
+
/**
|
|
4789
|
+
* ModalControlled component for displaying overlay dialogs.
|
|
4790
|
+
*
|
|
4791
|
+
* This component manages modal visibility externally through props. It provides
|
|
4792
|
+
* scroll detection, swipe-down gestures, focus management, and portal rendering.
|
|
4793
|
+
* Use this when you need full control over the modal's open/close state.
|
|
4794
|
+
*
|
|
4795
|
+
* @example
|
|
4796
|
+
* ```tsx
|
|
4797
|
+
* <ModalControlled
|
|
4798
|
+
* open={isOpen}
|
|
4799
|
+
* onClose={() => setIsOpen(false)}
|
|
4800
|
+
* variant="default"
|
|
4801
|
+
* >
|
|
4802
|
+
* Modal content here
|
|
4803
|
+
* </ModalControlled>
|
|
4804
|
+
* ```
|
|
4805
|
+
*/
|
|
4540
4806
|
export declare const ModalControlled: ForwardRefExoticComponent<ModalControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4541
4807
|
|
|
4542
4808
|
/**
|
|
@@ -4693,6 +4959,24 @@ declare type NonVariablesKeys_2<T> = {
|
|
|
4693
4959
|
[K in keyof T]: K extends `$${string}` ? never : K;
|
|
4694
4960
|
}[keyof T];
|
|
4695
4961
|
|
|
4962
|
+
/**
|
|
4963
|
+
* Option component for rendering selectable list items.
|
|
4964
|
+
*
|
|
4965
|
+
* This component represents a single option within a list, dropdown, or menu.
|
|
4966
|
+
* It manages focus states and supports custom variants for flexible styling.
|
|
4967
|
+
* Useful for building accessible select menus, autocomplete lists, or navigation options.
|
|
4968
|
+
*
|
|
4969
|
+
* Accepts a generic type parameter `<Variant extends string>` for custom variant values.
|
|
4970
|
+
*
|
|
4971
|
+
* @example
|
|
4972
|
+
* ```tsx
|
|
4973
|
+
* <Option value="option1" variant="default">Option 1</Option>
|
|
4974
|
+
*
|
|
4975
|
+
* // With custom variant:
|
|
4976
|
+
* type MyVariant = "primary" | "secondary";
|
|
4977
|
+
* <Option<MyVariant> variant="primary" value="item">Primary Option</Option>
|
|
4978
|
+
* ```
|
|
4979
|
+
*/
|
|
4696
4980
|
declare const Option_2: ForwardRefExoticComponent<OptionProps<string> & RefAttributes<HTMLElement>>;
|
|
4697
4981
|
export { Option_2 as Option }
|
|
4698
4982
|
|
|
@@ -4760,6 +5044,23 @@ export declare type OptionVariantStyles<Variant extends string> = OptionStylePro
|
|
|
4760
5044
|
[key in Variant]: OptionStyleProps;
|
|
4761
5045
|
};
|
|
4762
5046
|
|
|
5047
|
+
/**
|
|
5048
|
+
* PageControl component for pagination/slide navigation indicators.
|
|
5049
|
+
*
|
|
5050
|
+
* This component displays navigation dots or bullets with arrow controls for
|
|
5051
|
+
* paginated content like carousels. It handles position tracking, visibility
|
|
5052
|
+
* of dots, and direction-based navigation.
|
|
5053
|
+
*
|
|
5054
|
+
* @example
|
|
5055
|
+
* ```tsx
|
|
5056
|
+
* <PageControl
|
|
5057
|
+
* pages={10}
|
|
5058
|
+
* currentPosition={3}
|
|
5059
|
+
* onPageChange={(page) => console.log(page)}
|
|
5060
|
+
* isBullet
|
|
5061
|
+
* />
|
|
5062
|
+
* ```
|
|
5063
|
+
*/
|
|
4763
5064
|
export declare const PageControl: ForwardRefExoticComponent<PageControlProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4764
5065
|
|
|
4765
5066
|
/**
|
|
@@ -4827,6 +5128,26 @@ export declare type PageControlVariantStyles<Variant extends string> = PageContr
|
|
|
4827
5128
|
[key in Variant]: PageControlStyleProps;
|
|
4828
5129
|
};
|
|
4829
5130
|
|
|
5131
|
+
/**
|
|
5132
|
+
* Pagination component for navigating through multiple pages.
|
|
5133
|
+
*
|
|
5134
|
+
* This component renders a pagination control with page numbers and navigation buttons.
|
|
5135
|
+
* It automatically adjusts the visible page numbers based on screen size and configuration.
|
|
5136
|
+
* Useful for implementing page navigation in lists, tables, or content galleries.
|
|
5137
|
+
*
|
|
5138
|
+
* Accepts a generic type parameter `<Variant extends string>` for custom variant styling.
|
|
5139
|
+
*
|
|
5140
|
+
* @example
|
|
5141
|
+
* ```tsx
|
|
5142
|
+
* <Pagination
|
|
5143
|
+
* variant="default"
|
|
5144
|
+
* currentStep={5}
|
|
5145
|
+
* maxStepsNumber={100}
|
|
5146
|
+
* maxCountersNumber={7}
|
|
5147
|
+
* onStepChange={handlePageChange}
|
|
5148
|
+
* />
|
|
5149
|
+
* ```
|
|
5150
|
+
*/
|
|
4830
5151
|
export declare const Pagination: ForwardRefExoticComponent<PaginationProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4831
5152
|
|
|
4832
5153
|
/**
|
|
@@ -4925,6 +5246,24 @@ export declare interface PopoverStylePropsV2 extends CssLibPropsType {
|
|
|
4925
5246
|
|
|
4926
5247
|
declare type PositionType = 'bottom' | 'bottom-center' | 'bottom-center-fixed' | 'bottom-fixed' | 'bottom-gap-right' | 'bottom-left' | 'bottom-left-fit-content' | 'bottom-right' | 'bottom-right-fit-content' | 'center' | 'left' | 'left-bottom-fixed' | 'left-fixed' | 'right' | 'right-fixed' | 'top' | 'top-center' | 'top-center-fixed' | 'top-left' | 'top-right' | 'without';
|
|
4927
5248
|
|
|
5249
|
+
/**
|
|
5250
|
+
* ProgressBar component for displaying progress indicators.
|
|
5251
|
+
*
|
|
5252
|
+
* This component visualizes completion progress with customizable variants and sizes.
|
|
5253
|
+
* It displays a filled bar representing the percentage of progress completed.
|
|
5254
|
+
* Useful for showing loading states, task completion, or any measurable progress.
|
|
5255
|
+
*
|
|
5256
|
+
* Accepts generic type parameters `<Variant, Size>` for custom styling values.
|
|
5257
|
+
*
|
|
5258
|
+
* @example
|
|
5259
|
+
* ```tsx
|
|
5260
|
+
* <ProgressBar variant="primary" size="md" percentProgressCompleted={60} />
|
|
5261
|
+
*
|
|
5262
|
+
* // With custom types:
|
|
5263
|
+
* type MyVariant = "success" | "warning";
|
|
5264
|
+
* <ProgressBar<MyVariant> variant="success" percentProgressCompleted={100} />
|
|
5265
|
+
* ```
|
|
5266
|
+
*/
|
|
4928
5267
|
export declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps<string | undefined, unknown> & RefAttributes<HTMLDivElement>>;
|
|
4929
5268
|
|
|
4930
5269
|
/**
|
|
@@ -4987,6 +5326,22 @@ export declare type ProgressBarVariantStyles<Variant extends string> = {
|
|
|
4987
5326
|
|
|
4988
5327
|
declare type propsToOmit = 'styles' | 'filled' | 'focused' | 'inputBaseId' | 'labelId';
|
|
4989
5328
|
|
|
5329
|
+
/**
|
|
5330
|
+
* RadioButton component for single selection from multiple options.
|
|
5331
|
+
*
|
|
5332
|
+
* This component renders a styled radio input for use in forms and option groups.
|
|
5333
|
+
* It manages checked, disabled, and error states with appropriate visual feedback.
|
|
5334
|
+
*
|
|
5335
|
+
* @example
|
|
5336
|
+
* ```tsx
|
|
5337
|
+
* <RadioButton
|
|
5338
|
+
* name="option"
|
|
5339
|
+
* value="1"
|
|
5340
|
+
* checked={selectedValue === "1"}
|
|
5341
|
+
* onChange={(e) => setSelectedValue(e.target.value)}
|
|
5342
|
+
* />
|
|
5343
|
+
* ```
|
|
5344
|
+
*/
|
|
4990
5345
|
export declare const RadioButton: ({ additionalClasses, checked, cssClasses: propsStyles, disabled, error, variant, ...props }: RadioButtonProps) => JSX.Element;
|
|
4991
5346
|
|
|
4992
5347
|
/**
|
|
@@ -5092,6 +5447,23 @@ declare interface ScreenReaderOnlyProps extends DataAttributes {
|
|
|
5092
5447
|
role?: React.AriaRole;
|
|
5093
5448
|
}
|
|
5094
5449
|
|
|
5450
|
+
/**
|
|
5451
|
+
* SelectorBoxFile component for file upload with drag-and-drop support.
|
|
5452
|
+
*
|
|
5453
|
+
* This component provides a file selection interface with validation for file type
|
|
5454
|
+
* and size, upload progress display, error handling, and visual feedback states
|
|
5455
|
+
* (loading, success, error). It manages internal state for file selection and focus.
|
|
5456
|
+
*
|
|
5457
|
+
* @example
|
|
5458
|
+
* ```tsx
|
|
5459
|
+
* <SelectorBoxFile
|
|
5460
|
+
* accept="image/*"
|
|
5461
|
+
* maxSize={5000000}
|
|
5462
|
+
* onChange={(files) => console.log(files)}
|
|
5463
|
+
* onSizeError={(file) => alert('File too large')}
|
|
5464
|
+
* />
|
|
5465
|
+
* ```
|
|
5466
|
+
*/
|
|
5095
5467
|
export declare const SelectorBoxFile: ForwardRefExoticComponent<SelectorBoxFileProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5096
5468
|
|
|
5097
5469
|
/**
|
|
@@ -5216,6 +5588,20 @@ export declare type SelectorBoxFileVariantStyles<Variant extends string> = Selec
|
|
|
5216
5588
|
[key in Variant]?: SelectorBoxFileStyleProps;
|
|
5217
5589
|
};
|
|
5218
5590
|
|
|
5591
|
+
/**
|
|
5592
|
+
* Skeleton component for displaying loading placeholders.
|
|
5593
|
+
*
|
|
5594
|
+
* This component renders animated placeholder shapes while content is loading.
|
|
5595
|
+
* It supports different shapes (rectangle, circle, text) and variants for styling.
|
|
5596
|
+
* Useful for improving perceived performance by showing content structure during loading.
|
|
5597
|
+
*
|
|
5598
|
+
* @example
|
|
5599
|
+
* ```tsx
|
|
5600
|
+
* <Skeleton variant="rectangular" shapeVariant="image" />
|
|
5601
|
+
* <Skeleton variant="text" shapeVariant="heading" />
|
|
5602
|
+
* <Skeleton variant="circular" shapeVariant="avatar" />
|
|
5603
|
+
* ```
|
|
5604
|
+
*/
|
|
5219
5605
|
export declare const Skeleton: ForwardRefExoticComponent<SkeletonProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5220
5606
|
|
|
5221
5607
|
/**
|
|
@@ -5260,6 +5646,31 @@ export declare type SkeletonVariantStyles<Variant extends string> = CssLibPropsT
|
|
|
5260
5646
|
[key in Variant]?: CssLibPropsType;
|
|
5261
5647
|
};
|
|
5262
5648
|
|
|
5649
|
+
/**
|
|
5650
|
+
* Slider component for selecting values within a range.
|
|
5651
|
+
*
|
|
5652
|
+
* This component provides a draggable slider control for selecting single values
|
|
5653
|
+
* or value ranges. It supports keyboard navigation, custom min/max/step values,
|
|
5654
|
+
* tooltips, and range selection. Handles both mouse and touch interactions.
|
|
5655
|
+
*
|
|
5656
|
+
* @example
|
|
5657
|
+
* ```tsx
|
|
5658
|
+
* <Slider
|
|
5659
|
+
* min={0}
|
|
5660
|
+
* max={100}
|
|
5661
|
+
* value={50}
|
|
5662
|
+
* onChange={(value) => console.log(value)}
|
|
5663
|
+
* />
|
|
5664
|
+
*
|
|
5665
|
+
* // Range slider:
|
|
5666
|
+
* <Slider
|
|
5667
|
+
* min={0}
|
|
5668
|
+
* max={100}
|
|
5669
|
+
* rangeValue={[25, 75]}
|
|
5670
|
+
* onChange={(range) => console.log(range)}
|
|
5671
|
+
* />
|
|
5672
|
+
* ```
|
|
5673
|
+
*/
|
|
5263
5674
|
export declare const Slider: ForwardRefExoticComponent<SliderProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5264
5675
|
|
|
5265
5676
|
/**
|
|
@@ -5394,6 +5805,24 @@ export declare type SnackbarV2Popover = Omit<IPopover, 'children' | 'open'>;
|
|
|
5394
5805
|
|
|
5395
5806
|
declare type StateType = 'active' | 'active_filled' | 'active_filled_hide' | 'completed' | 'default' | 'default_selected' | 'default_unselected' | 'disabled' | 'disabled_empty' | 'disabled_filled' | 'disabled_filled_hide' | 'disabled_selected' | 'disabled_unselected' | 'error' | 'error_empty' | 'error_filled' | 'error_filled_hide' | 'empty' | 'filled' | 'filled_hide' | 'focus' | 'hover' | 'loading' | 'multiple_selected' | 'multiple_selected_hover' | 'prefilled' | 'pressed' | 'selected' | 'selected_hover' | 'success' | 'warning' | 'visited' | 'inactive' | 'filling' | 'blocked_by_system' | 'error_unselected' | 'error_selected' | 'current' | 'current_day' | 'start_date_range' | 'end_date_range' | 'midle_date_range' | 'pending' | 'unselected';
|
|
5396
5807
|
|
|
5808
|
+
/**
|
|
5809
|
+
* StepperNumber component for incrementing/decrementing numeric values.
|
|
5810
|
+
*
|
|
5811
|
+
* This component provides plus/minus buttons for adjusting numeric values with
|
|
5812
|
+
* configurable step intervals. Supports both horizontal and vertical orientations.
|
|
5813
|
+
*
|
|
5814
|
+
* @example
|
|
5815
|
+
* ```tsx
|
|
5816
|
+
* <StepperNumber
|
|
5817
|
+
* value={5}
|
|
5818
|
+
* min={0}
|
|
5819
|
+
* max={10}
|
|
5820
|
+
* step={1}
|
|
5821
|
+
* onChange={(newValue) => console.log(newValue)}
|
|
5822
|
+
* orientation="horizontal"
|
|
5823
|
+
* />
|
|
5824
|
+
* ```
|
|
5825
|
+
*/
|
|
5397
5826
|
export declare const StepperNumber: ForwardRefExoticComponent<StepperNumberProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5398
5827
|
|
|
5399
5828
|
declare type StepperNumberCssClasses = ComponentSelected<ComponentsTypesComponents['STEPPER_NUMBER']>;
|
|
@@ -5605,6 +6034,21 @@ export declare const Table: ForwardRefExoticComponent<TableProps & {
|
|
|
5605
6034
|
children?: ReactNode | undefined;
|
|
5606
6035
|
} & RefAttributes<HTMLDivElement>>;
|
|
5607
6036
|
|
|
6037
|
+
/**
|
|
6038
|
+
* TableBody component for rendering table body sections.
|
|
6039
|
+
*
|
|
6040
|
+
* This component wraps the tbody element with consistent styling and variant support.
|
|
6041
|
+
* Use it as a container for TableRow components within a Table.
|
|
6042
|
+
*
|
|
6043
|
+
* @example
|
|
6044
|
+
* ```tsx
|
|
6045
|
+
* <Table>
|
|
6046
|
+
* <TableBody variant="default">
|
|
6047
|
+
* <TableRow>...</TableRow>
|
|
6048
|
+
* </TableBody>
|
|
6049
|
+
* </Table>
|
|
6050
|
+
* ```
|
|
6051
|
+
*/
|
|
5608
6052
|
export declare const TableBody: ForwardRefExoticComponent<TableBodyProps & {
|
|
5609
6053
|
children?: ReactNode | undefined;
|
|
5610
6054
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5626,6 +6070,22 @@ export declare type TableBodyVariantStyles<Variant extends string> = CssLibProps
|
|
|
5626
6070
|
[key in Variant]: CssLibPropsType;
|
|
5627
6071
|
};
|
|
5628
6072
|
|
|
6073
|
+
/**
|
|
6074
|
+
* TableCaption component for providing titles or descriptions for tables.
|
|
6075
|
+
*
|
|
6076
|
+
* This component renders a caption element for tables, helping users understand
|
|
6077
|
+
* the table's purpose or contents. Important for accessibility and SEO.
|
|
6078
|
+
*
|
|
6079
|
+
* @example
|
|
6080
|
+
* ```tsx
|
|
6081
|
+
* <Table>
|
|
6082
|
+
* <TableCaption variant="default">
|
|
6083
|
+
* Sales Report for Q4 2024
|
|
6084
|
+
* </TableCaption>
|
|
6085
|
+
* <TableHead>...</TableHead>
|
|
6086
|
+
* </Table>
|
|
6087
|
+
* ```
|
|
6088
|
+
*/
|
|
5629
6089
|
export declare const TableCaption: ForwardRefExoticComponent<TableCaptionProps & {
|
|
5630
6090
|
children?: ReactNode | undefined;
|
|
5631
6091
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5648,6 +6108,20 @@ export declare type TableCaptionVariantStyles<Variant extends string> = CssLibPr
|
|
|
5648
6108
|
[key in Variant]: CssLibPropsType;
|
|
5649
6109
|
};
|
|
5650
6110
|
|
|
6111
|
+
/**
|
|
6112
|
+
* TableCell component for rendering individual table cells.
|
|
6113
|
+
*
|
|
6114
|
+
* This component wraps td or th elements with consistent styling and variant support.
|
|
6115
|
+
* Use it within TableRow components to display data or headers in a table.
|
|
6116
|
+
*
|
|
6117
|
+
* @example
|
|
6118
|
+
* ```tsx
|
|
6119
|
+
* <TableRow>
|
|
6120
|
+
* <TableCell variant="default">Cell content</TableCell>
|
|
6121
|
+
* <TableCell>Another cell</TableCell>
|
|
6122
|
+
* </TableRow>
|
|
6123
|
+
* ```
|
|
6124
|
+
*/
|
|
5651
6125
|
export declare const TableCell: ForwardRefExoticComponent<TableCellProps<string> & {
|
|
5652
6126
|
children?: ReactNode | undefined;
|
|
5653
6127
|
} & RefAttributes<HTMLTableCellElement>>;
|
|
@@ -5704,6 +6178,23 @@ export declare type TableCellVariantStyles<Variant extends string> = CssLibProps
|
|
|
5704
6178
|
|
|
5705
6179
|
declare type TableCssClasses = ComponentSelected<ComponentsTypesComponents['TABLE']>;
|
|
5706
6180
|
|
|
6181
|
+
/**
|
|
6182
|
+
* TableDivider component for rendering visual separators in tables.
|
|
6183
|
+
*
|
|
6184
|
+
* This component creates visual dividers or separators between table sections.
|
|
6185
|
+
* Useful for organizing complex tables with multiple logical groups of data.
|
|
6186
|
+
*
|
|
6187
|
+
* @example
|
|
6188
|
+
* ```tsx
|
|
6189
|
+
* <Table>
|
|
6190
|
+
* <TableBody>
|
|
6191
|
+
* <TableRow>...</TableRow>
|
|
6192
|
+
* <TableDivider variant="default" />
|
|
6193
|
+
* <TableRow>...</TableRow>
|
|
6194
|
+
* </TableBody>
|
|
6195
|
+
* </Table>
|
|
6196
|
+
* ```
|
|
6197
|
+
*/
|
|
5707
6198
|
export declare const TableDivider: ForwardRefExoticComponent<TableDividerProps & {
|
|
5708
6199
|
children?: ReactNode | undefined;
|
|
5709
6200
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5725,6 +6216,25 @@ export declare type TableDividerVariantStyles<Variant extends string> = CssLibPr
|
|
|
5725
6216
|
[key in Variant]: CssLibPropsType;
|
|
5726
6217
|
};
|
|
5727
6218
|
|
|
6219
|
+
/**
|
|
6220
|
+
* TableFoot component for rendering table footer sections.
|
|
6221
|
+
*
|
|
6222
|
+
* This component wraps the tfoot element with consistent styling and variant support.
|
|
6223
|
+
* Use it to display summary rows, totals, or footer information in a table.
|
|
6224
|
+
*
|
|
6225
|
+
* @example
|
|
6226
|
+
* ```tsx
|
|
6227
|
+
* <Table>
|
|
6228
|
+
* <TableBody>...</TableBody>
|
|
6229
|
+
* <TableFoot variant="default">
|
|
6230
|
+
* <TableRow>
|
|
6231
|
+
* <TableCell>Total</TableCell>
|
|
6232
|
+
* <TableCell>$1,234</TableCell>
|
|
6233
|
+
* </TableRow>
|
|
6234
|
+
* </TableFoot>
|
|
6235
|
+
* </Table>
|
|
6236
|
+
* ```
|
|
6237
|
+
*/
|
|
5728
6238
|
export declare const TableFoot: ForwardRefExoticComponent<TableFootProps & {
|
|
5729
6239
|
children?: ReactNode | undefined;
|
|
5730
6240
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5746,6 +6256,23 @@ export declare type TableFootVariantStyles<Variant extends string> = CssLibProps
|
|
|
5746
6256
|
[key in Variant]: CssLibPropsType;
|
|
5747
6257
|
};
|
|
5748
6258
|
|
|
6259
|
+
/**
|
|
6260
|
+
* TableHead component for rendering table header sections.
|
|
6261
|
+
*
|
|
6262
|
+
* This component wraps the thead element with consistent styling and variant support.
|
|
6263
|
+
* Use it as a container for TableRow components with header cells within a Table.
|
|
6264
|
+
*
|
|
6265
|
+
* @example
|
|
6266
|
+
* ```tsx
|
|
6267
|
+
* <Table>
|
|
6268
|
+
* <TableHead variant="default">
|
|
6269
|
+
* <TableRow>
|
|
6270
|
+
* <TableCell>Header 1</TableCell>
|
|
6271
|
+
* </TableRow>
|
|
6272
|
+
* </TableHead>
|
|
6273
|
+
* </Table>
|
|
6274
|
+
* ```
|
|
6275
|
+
*/
|
|
5749
6276
|
export declare const TableHead: ForwardRefExoticComponent<TableHeadProps & {
|
|
5750
6277
|
children?: ReactNode | undefined;
|
|
5751
6278
|
} & RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5777,6 +6304,22 @@ export declare interface TableProps extends Omit<TableStandAloneProps, 'hasScrol
|
|
|
5777
6304
|
additionalClasses?: Partial<TableCssClasses>;
|
|
5778
6305
|
}
|
|
5779
6306
|
|
|
6307
|
+
/**
|
|
6308
|
+
* TableRow component for rendering table rows.
|
|
6309
|
+
*
|
|
6310
|
+
* This component wraps the tr element with consistent styling and variant support.
|
|
6311
|
+
* Use it as a container for TableCell components within TableHead or TableBody sections.
|
|
6312
|
+
*
|
|
6313
|
+
* @example
|
|
6314
|
+
* ```tsx
|
|
6315
|
+
* <TableBody>
|
|
6316
|
+
* <TableRow variant="default">
|
|
6317
|
+
* <TableCell>Data 1</TableCell>
|
|
6318
|
+
* <TableCell>Data 2</TableCell>
|
|
6319
|
+
* </TableRow>
|
|
6320
|
+
* </TableBody>
|
|
6321
|
+
* ```
|
|
6322
|
+
*/
|
|
5780
6323
|
export declare const TableRow: ForwardRefExoticComponent<TableRowProps & {
|
|
5781
6324
|
children?: ReactNode | undefined;
|
|
5782
6325
|
} & RefAttributes<HTMLTableRowElement>>;
|
|
@@ -5826,8 +6369,44 @@ export declare type TableVariantStyles<Variant extends string> = TableStyleProps
|
|
|
5826
6369
|
[key in Variant]: TableStyleProps;
|
|
5827
6370
|
};
|
|
5828
6371
|
|
|
6372
|
+
/**
|
|
6373
|
+
* TabsUnControlled component with internal tab selection state.
|
|
6374
|
+
*
|
|
6375
|
+
* This component renders a tab navigation that manages the selected tab internally.
|
|
6376
|
+
* It starts with a default selected tab and updates automatically on user interaction.
|
|
6377
|
+
* Useful when you don't need to control tab selection from a parent component.
|
|
6378
|
+
*
|
|
6379
|
+
* @example
|
|
6380
|
+
* ```tsx
|
|
6381
|
+
* <TabsUnControlled
|
|
6382
|
+
* defaultSelectedTab={0}
|
|
6383
|
+
* tabs={[
|
|
6384
|
+
* { id: 'tab1', label: 'Tab 1' },
|
|
6385
|
+
* { id: 'tab2', label: 'Tab 2' }
|
|
6386
|
+
* ]}
|
|
6387
|
+
* onSelectTab={(index) => console.log(index)}
|
|
6388
|
+
* />
|
|
6389
|
+
* ```
|
|
6390
|
+
*/
|
|
5829
6391
|
export declare const Tabs: ForwardRefExoticComponent<TabsUnControlledProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
5830
6392
|
|
|
6393
|
+
/**
|
|
6394
|
+
* TabsControlled component for tab navigation with external state management.
|
|
6395
|
+
*
|
|
6396
|
+
* This component displays a set of tabs where the selected tab is controlled
|
|
6397
|
+
* externally via props. It's device-aware and adjusts behavior based on screen size.
|
|
6398
|
+
*
|
|
6399
|
+
* @example
|
|
6400
|
+
* ```tsx
|
|
6401
|
+
* <TabsControlled
|
|
6402
|
+
* defaultSelectedTab="tab1"
|
|
6403
|
+
* tabs={[
|
|
6404
|
+
* { id: 'tab1', label: 'Tab 1' },
|
|
6405
|
+
* { id: 'tab2', label: 'Tab 2' }
|
|
6406
|
+
* ]}
|
|
6407
|
+
* />
|
|
6408
|
+
* ```
|
|
6409
|
+
*/
|
|
5831
6410
|
export declare const TabsControlled: ForwardRefExoticComponent<TabsUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5832
6411
|
|
|
5833
6412
|
declare type TabsCssClasses = ComponentSelected<ComponentsTypesComponents['TABS']>;
|
|
@@ -5982,6 +6561,23 @@ export declare type TagVariantStyles<Variant extends string> = TagStyleProps & {
|
|
|
5982
6561
|
declare const Text_2: ForwardRefExoticComponent<TextProps<string> & RefAttributes<HTMLParagraphElement>>;
|
|
5983
6562
|
export { Text_2 as Text }
|
|
5984
6563
|
|
|
6564
|
+
/**
|
|
6565
|
+
* TextArea component for multi-line text input.
|
|
6566
|
+
*
|
|
6567
|
+
* This component provides a styled textarea with support for labels, error states,
|
|
6568
|
+
* character counting, and focus management. It handles internal focus state and
|
|
6569
|
+
* applies appropriate styling based on filled and error states.
|
|
6570
|
+
*
|
|
6571
|
+
* @example
|
|
6572
|
+
* ```tsx
|
|
6573
|
+
* <TextArea
|
|
6574
|
+
* label="Comments"
|
|
6575
|
+
* placeholder="Enter your comments"
|
|
6576
|
+
* maxLength={500}
|
|
6577
|
+
* error="Required field"
|
|
6578
|
+
* />
|
|
6579
|
+
* ```
|
|
6580
|
+
*/
|
|
5985
6581
|
export declare const TextArea: ForwardRefExoticComponent<TextAreaProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
5986
6582
|
|
|
5987
6583
|
export declare type TextAreaCssClasses = ComponentSelected<ComponentsTypesComponents['TEXT_AREA']>;
|
|
@@ -6267,6 +6863,23 @@ export declare type ToggleVariantStyles<Variant extends string> = ToggleVariantS
|
|
|
6267
6863
|
[key in Variant]?: ToggleVariantStyleProps;
|
|
6268
6864
|
};
|
|
6269
6865
|
|
|
6866
|
+
/**
|
|
6867
|
+
* TooltipUnControlled component with internal visibility management.
|
|
6868
|
+
*
|
|
6869
|
+
* This component renders a tooltip that manages its own open/close state based
|
|
6870
|
+
* on user interactions (hover, focus). It handles modal behavior on mobile devices,
|
|
6871
|
+
* scroll detection, swipe gestures, and focus trapping automatically.
|
|
6872
|
+
*
|
|
6873
|
+
* @example
|
|
6874
|
+
* ```tsx
|
|
6875
|
+
* <TooltipUnControlled
|
|
6876
|
+
* title="Helpful information"
|
|
6877
|
+
* variant="default"
|
|
6878
|
+
* >
|
|
6879
|
+
* <button>Hover me</button>
|
|
6880
|
+
* </TooltipUnControlled>
|
|
6881
|
+
* ```
|
|
6882
|
+
*/
|
|
6270
6883
|
export declare const Tooltip: ForwardRefExoticComponent<TooltipUnControlledProps<string | undefined> & RefAttributes<HTMLDivElement>>;
|
|
6271
6884
|
|
|
6272
6885
|
declare type TooltipAlignType = Extract<PositionType, 'top' | 'right' | 'bottom' | 'left'>;
|
|
@@ -6278,6 +6891,25 @@ export declare type TooltipCloseIconProps = Omit<IconProps, 'icon'> & {
|
|
|
6278
6891
|
icon?: string;
|
|
6279
6892
|
};
|
|
6280
6893
|
|
|
6894
|
+
/**
|
|
6895
|
+
* TooltipControlled component for displaying contextual information.
|
|
6896
|
+
*
|
|
6897
|
+
* This component renders a tooltip that can be shown on hover or focus.
|
|
6898
|
+
* It supports modal behavior on mobile devices and adjusts positioning based
|
|
6899
|
+
* on scroll detection. State is managed externally via props.
|
|
6900
|
+
*
|
|
6901
|
+
* @example
|
|
6902
|
+
* ```tsx
|
|
6903
|
+
* <TooltipControlled
|
|
6904
|
+
* variant="default"
|
|
6905
|
+
* title="Help text"
|
|
6906
|
+
* open={isOpen}
|
|
6907
|
+
* onOpenChange={setIsOpen}
|
|
6908
|
+
* >
|
|
6909
|
+
* <button>Hover me</button>
|
|
6910
|
+
* </TooltipControlled>
|
|
6911
|
+
* ```
|
|
6912
|
+
*/
|
|
6281
6913
|
export declare const TooltipControlled: <Variant extends string>({ additionalClasses, tooltipAriaLabel, tooltipAsModal: propTooltipAsModal, tooltipAsModal: isModal, tooltipRef, variant, ...props }: TooltipControlledProps<Variant>) => JSX.Element;
|
|
6282
6914
|
|
|
6283
6915
|
/**
|