@kubit-ui-web/react-components 2.0.0-beta.18 → 2.0.0-beta.19
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/.storybook/bundle-sizes.json +1 -1
- package/dist/cjs/components/alert/alertControlled.js +1 -0
- package/dist/cjs/components/alert/alertStandAlone.js +1 -0
- package/dist/cjs/components/alert/index.js +2 -0
- package/dist/cjs/components/progressBar/progressBarStandAlone.js +1 -1
- package/dist/cjs/components/selectorBoxFile/components/selectorBoxFileContainerBox.js +1 -1
- package/dist/cjs/components/selectorBoxFile/selectorBoxFile.js +1 -1
- package/dist/cjs/components/selectorBoxFile/selectorBoxFileStandAlone.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/lib/designSystem/kubit/css/kubit.css +1 -1
- package/dist/cjs/lib/designSystem/kubit/css/kubit.min.css +1 -1
- package/dist/cjs/lib/provider/cssProvider/provider.js +1 -1
- package/dist/cjs/lib/provider/cssProvider/stats/stats.js +1 -1
- package/dist/cjs/react-components.css +1 -1
- package/dist/esm/.storybook/bundle-sizes.json +1 -1
- package/dist/esm/components/alert/alertControlled.js +2 -0
- package/dist/esm/components/alert/alertStandAlone.js +2 -0
- package/dist/esm/components/alert/index.js +1 -0
- package/dist/esm/components/progressBar/progressBarStandAlone.js +4 -4
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileContainerBox.js +6 -7
- package/dist/esm/components/selectorBoxFile/selectorBoxFile.js +2 -2
- package/dist/esm/components/selectorBoxFile/selectorBoxFileStandAlone.js +4 -7
- package/dist/esm/index.js +1 -1
- package/dist/esm/lib/designSystem/kubit/css/kubit.css +1 -1
- package/dist/esm/lib/designSystem/kubit/css/kubit.min.css +1 -1
- package/dist/esm/lib/provider/cssProvider/provider.js +1 -1
- package/dist/esm/lib/provider/cssProvider/stats/stats.js +1 -1
- package/dist/esm/react-components.css +1 -1
- package/dist/styles/kubit/css/kubit.css +9 -56
- package/dist/styles/kubit/css/kubit.min.css +1 -1
- package/dist/types/index.d.ts +76 -286
- package/package.json +2 -2
- package/dist/cjs/components/message/index.js +0 -4
- package/dist/cjs/components/message/messageControlled.js +0 -1
- package/dist/cjs/components/message/messageStandAlone.js +0 -1
- package/dist/cjs/components/message/messageUnControlled.js +0 -1
- package/dist/cjs/components/selectorBoxFile/components/selectorBoxFileErrorMessage.js +0 -1
- package/dist/cjs/components/selectorBoxFile/components/selectorBoxFileHeader.js +0 -1
- package/dist/cjs/components/selectorBoxFile/components/selectorBoxFileTooltip.js +0 -1
- package/dist/esm/components/message/index.js +0 -2
- package/dist/esm/components/message/messageControlled.js +0 -2
- package/dist/esm/components/message/messageStandAlone.js +0 -5
- package/dist/esm/components/message/messageUnControlled.js +0 -2
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileErrorMessage.js +0 -3
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileHeader.js +0 -5
- package/dist/esm/components/selectorBoxFile/components/selectorBoxFileTooltip.js +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -121,6 +121,58 @@ export declare type AccordionVariantStyles<Variant extends string> = AccordionSt
|
|
|
121
121
|
[key in Variant]: AccordionStyleProps;
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Alert component for displaying notification messages.
|
|
126
|
+
*
|
|
127
|
+
* This component renders styled alerts.
|
|
128
|
+
* Useful for notifications, success/error messages, and informational banners.
|
|
129
|
+
* Always visible - no open/close functionality.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```tsx
|
|
133
|
+
* <Alert
|
|
134
|
+
* variant="success"
|
|
135
|
+
* content={{ content: "Your changes have been saved." }}
|
|
136
|
+
* />
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
export declare const Alert: ForwardRefExoticComponent<AlertProps<string> & RefAttributes<HTMLDivElement>>;
|
|
140
|
+
|
|
141
|
+
declare type AlertCssClasses = ComponentSelected<ComponentsTypesComponents['ALERT']>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Interface for the Alert component.
|
|
145
|
+
* Extends the AlertStandAloneProps interface and adds a variant and additional CSS classes.
|
|
146
|
+
*
|
|
147
|
+
* @template Variant - The type of the variant for the Alert.
|
|
148
|
+
*/
|
|
149
|
+
export declare interface AlertProps<Variant = undefined extends string ? unknown : string> extends AlertStandAloneProps {
|
|
150
|
+
variant?: Variant;
|
|
151
|
+
additionalClasses?: Partial<AlertCssClasses>;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Interface for the standalone Alert component.
|
|
156
|
+
* A simplified component that displays alert messages. Always visible.
|
|
157
|
+
*/
|
|
158
|
+
export declare interface AlertStandAloneProps extends DataAttributes {
|
|
159
|
+
content: CommonTextProps;
|
|
160
|
+
role?: React.AriaRole;
|
|
161
|
+
id?: string;
|
|
162
|
+
ariaLive?: AriaAttributes['aria-live'];
|
|
163
|
+
cssClasses?: AlertCssClasses;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export declare interface AlertStyleProps extends CssLibPropsType {
|
|
167
|
+
_container?: CssLibPropsType;
|
|
168
|
+
_contentContainer?: CssLibPropsType;
|
|
169
|
+
_description?: CssLibPropsType;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export declare type AlertVariantStyles<Variant extends string> = AlertStyleProps & {
|
|
173
|
+
[key in Variant]: AlertStyleProps;
|
|
174
|
+
};
|
|
175
|
+
|
|
124
176
|
export declare interface ArrowsControlStyleProps extends CssLibPropsType {
|
|
125
177
|
_leftArrowControlContainer?: CssLibPropsType;
|
|
126
178
|
_rightArrowControlContainer?: CssLibPropsType;
|
|
@@ -1076,7 +1128,7 @@ declare type ComponentSelected<T> = Pick<T, NonVariablesKeys<T>>;
|
|
|
1076
1128
|
|
|
1077
1129
|
declare type ComponentSelected_2<T> = Pick<T, NonVariablesKeys_2<T>>;
|
|
1078
1130
|
|
|
1079
|
-
declare type ComponentsTypesAvailableComponents = 'ACCORDION' | 'AVATAR' | 'BADGE' | 'BREADCRUMBS' | 'BUTTON' | 'CALENDAR' | 'CARD_IMAGE' | 'CAROUSEL' | 'CHECKBOX' | 'CHECKBOX_BASE' | 'CHIP' | 'CONTAINER' | 'DATA_TABLE' | 'DOT' | 'DROPDOWN_SELECTED' | 'ERROR_MESSAGE' | 'ICON' | 'INPUT' | 'INPUT_BASE' | 'INPUT_DECORATION' | 'INPUT_SIGNATURE' | 'ITEM_ROVE' | 'LINK' | 'LINK_AS_BUTTON' | 'LIST_OPTIONS' | '
|
|
1131
|
+
declare type ComponentsTypesAvailableComponents = 'ACCORDION' | 'ALERT' | 'AVATAR' | 'BADGE' | 'BREADCRUMBS' | 'BUTTON' | 'CALENDAR' | 'CARD_IMAGE' | 'CAROUSEL' | 'CHECKBOX' | 'CHECKBOX_BASE' | 'CHIP' | 'CONTAINER' | 'DATA_TABLE' | 'DOT' | 'DROPDOWN_SELECTED' | 'ERROR_MESSAGE' | 'ICON' | 'INPUT' | 'INPUT_BASE' | 'INPUT_DECORATION' | 'INPUT_SIGNATURE' | 'ITEM_ROVE' | 'LINK' | 'LINK_AS_BUTTON' | 'LIST_OPTIONS' | 'MODAL' | 'NAVBAR' | 'OPTION' | 'OVERLAY' | 'PAGE_CONTROL' | 'PAGINATION' | 'POPOVER' | 'PROGRESS_BAR' | 'RADIO_BUTTON' | 'SELECTOR_BOX_FILE' | 'SKELETON' | 'SLIDER' | 'SNACKBAR' | 'STEPPER_NUMBER' | 'TABLE' | 'TABLE_BODY' | 'TABLE_CAPTION' | 'TABLE_CELL' | 'TABLE_DIVIDER' | 'TABLE_FOOT' | 'TABLE_HEAD' | 'TABLE_ROW' | 'TABS' | 'TAG' | 'TEXT' | 'TEXT_AREA' | 'TEXT_COUNT' | 'TOGGLE' | 'TOOLTIP' | 'VIRTUAL_KEYBOARD';
|
|
1080
1132
|
|
|
1081
1133
|
declare type ComponentsTypesComponents = {
|
|
1082
1134
|
ACCORDION: {
|
|
@@ -1092,6 +1144,27 @@ declare type ComponentsTypesComponents = {
|
|
|
1092
1144
|
accordion: string;
|
|
1093
1145
|
};
|
|
1094
1146
|
};
|
|
1147
|
+
ALERT: {
|
|
1148
|
+
container: string;
|
|
1149
|
+
contentcontainer: string;
|
|
1150
|
+
description: string;
|
|
1151
|
+
$_error: {
|
|
1152
|
+
alert: string;
|
|
1153
|
+
container: string;
|
|
1154
|
+
};
|
|
1155
|
+
$_informative: {
|
|
1156
|
+
alert: string;
|
|
1157
|
+
container: string;
|
|
1158
|
+
};
|
|
1159
|
+
$_success: {
|
|
1160
|
+
alert: string;
|
|
1161
|
+
container: string;
|
|
1162
|
+
};
|
|
1163
|
+
$_warning: {
|
|
1164
|
+
alert: string;
|
|
1165
|
+
container: string;
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1095
1168
|
AVATAR: {
|
|
1096
1169
|
avatar: string;
|
|
1097
1170
|
dot: string;
|
|
@@ -1167,10 +1240,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1167
1240
|
button: string;
|
|
1168
1241
|
icon: string;
|
|
1169
1242
|
};
|
|
1170
|
-
$_medium: {
|
|
1171
|
-
button: string;
|
|
1172
|
-
icon: string;
|
|
1173
|
-
};
|
|
1174
1243
|
$_small: {
|
|
1175
1244
|
button: string;
|
|
1176
1245
|
icon: string;
|
|
@@ -1606,49 +1675,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1606
1675
|
titlecontainer: string;
|
|
1607
1676
|
};
|
|
1608
1677
|
};
|
|
1609
|
-
MESSAGE: {
|
|
1610
|
-
message: string;
|
|
1611
|
-
actionbuttoncontainer: string;
|
|
1612
|
-
buttonsectioncontainer: string;
|
|
1613
|
-
closeicon: string;
|
|
1614
|
-
container: string;
|
|
1615
|
-
contentcontainer: string;
|
|
1616
|
-
contentcontainerlargemessage: string;
|
|
1617
|
-
description: string;
|
|
1618
|
-
extraactionbuttoncontainer: string;
|
|
1619
|
-
headercontainer: string;
|
|
1620
|
-
headercontainerlargemessage: string;
|
|
1621
|
-
infoicon: string;
|
|
1622
|
-
linkcontainer: string;
|
|
1623
|
-
linkscontainer: string;
|
|
1624
|
-
title: string;
|
|
1625
|
-
titlecontainer: string;
|
|
1626
|
-
$_error: {
|
|
1627
|
-
message: string;
|
|
1628
|
-
container: string;
|
|
1629
|
-
infoicon: string;
|
|
1630
|
-
};
|
|
1631
|
-
$_informative: {
|
|
1632
|
-
message: string;
|
|
1633
|
-
container: string;
|
|
1634
|
-
infoicon: string;
|
|
1635
|
-
};
|
|
1636
|
-
$_success: {
|
|
1637
|
-
message: string;
|
|
1638
|
-
container: string;
|
|
1639
|
-
infoicon: string;
|
|
1640
|
-
};
|
|
1641
|
-
$_warning: {
|
|
1642
|
-
message: string;
|
|
1643
|
-
container: string;
|
|
1644
|
-
infoicon: string;
|
|
1645
|
-
};
|
|
1646
|
-
action_button: {
|
|
1647
|
-
button: string;
|
|
1648
|
-
icon: string;
|
|
1649
|
-
loader: string;
|
|
1650
|
-
};
|
|
1651
|
-
};
|
|
1652
1678
|
MODAL: {
|
|
1653
1679
|
modal: string;
|
|
1654
1680
|
closebuttoncontainer: string;
|
|
@@ -1899,7 +1925,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1899
1925
|
};
|
|
1900
1926
|
SELECTOR_BOX_FILE: {
|
|
1901
1927
|
selector_box_file: string;
|
|
1902
|
-
actiondescriptioncontainer: string;
|
|
1903
1928
|
actionicon: string;
|
|
1904
1929
|
actioniconandactiontextcontainer: string;
|
|
1905
1930
|
animationcontainer: string;
|
|
@@ -1912,57 +1937,13 @@ declare type ComponentsTypesComponents = {
|
|
|
1912
1937
|
containerboxfilename: string;
|
|
1913
1938
|
containerboxicon: string;
|
|
1914
1939
|
containerboxtextscontainer: string;
|
|
1915
|
-
description: string;
|
|
1916
|
-
descriptioncontainer: string;
|
|
1917
|
-
errormessage: string;
|
|
1918
|
-
errormessagecontainer: string;
|
|
1919
|
-
errormessageicon: string;
|
|
1920
1940
|
header: string;
|
|
1921
1941
|
leftanimationcontainer: string;
|
|
1922
1942
|
rightanimationcontainer: string;
|
|
1923
|
-
subtitle: string;
|
|
1924
|
-
subtitletooltipcontainer: string;
|
|
1925
|
-
title: string;
|
|
1926
|
-
titlesubtitlecontainer: string;
|
|
1927
|
-
tooltipicon: string;
|
|
1928
|
-
tooltipiconcontainer: string;
|
|
1929
1943
|
topanimationcontainer: string;
|
|
1930
1944
|
$_default: {
|
|
1931
1945
|
selector_box_file: string;
|
|
1932
1946
|
};
|
|
1933
|
-
button_size: {
|
|
1934
|
-
icon: string;
|
|
1935
|
-
button: string;
|
|
1936
|
-
loader: string;
|
|
1937
|
-
};
|
|
1938
|
-
button_variant: {
|
|
1939
|
-
button: string;
|
|
1940
|
-
icon: string;
|
|
1941
|
-
loader: string;
|
|
1942
|
-
};
|
|
1943
|
-
tooltip: {
|
|
1944
|
-
arrowcontainer: string;
|
|
1945
|
-
arrowposition: string;
|
|
1946
|
-
arrowsize: string;
|
|
1947
|
-
closebuttoncontainer: string;
|
|
1948
|
-
closebuttonicon: string;
|
|
1949
|
-
headercontainer: string;
|
|
1950
|
-
paragraph: string;
|
|
1951
|
-
paragraphcontainer: string;
|
|
1952
|
-
title: string;
|
|
1953
|
-
tooltipexternalcontainer: string;
|
|
1954
|
-
tooltipinternalcontainer: string;
|
|
1955
|
-
popover: {
|
|
1956
|
-
arrow: string;
|
|
1957
|
-
popover: string;
|
|
1958
|
-
};
|
|
1959
|
-
arrow: string;
|
|
1960
|
-
divider: string;
|
|
1961
|
-
dragicon: string;
|
|
1962
|
-
dragiconcontainer: string;
|
|
1963
|
-
tooltipalignstyles: string;
|
|
1964
|
-
tooltipasmodal: string;
|
|
1965
|
-
};
|
|
1966
1947
|
};
|
|
1967
1948
|
SKELETON: {
|
|
1968
1949
|
skeleton: string;
|
|
@@ -4589,156 +4570,6 @@ declare interface MediaQueries {
|
|
|
4589
4570
|
onlyLargeDesktop: string;
|
|
4590
4571
|
}
|
|
4591
4572
|
|
|
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
|
-
*/
|
|
4609
|
-
export declare const Message: ForwardRefExoticComponent<MessageUnControlledProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4610
|
-
|
|
4611
|
-
/**
|
|
4612
|
-
* Represents the type for the action button in the Message component.
|
|
4613
|
-
*/
|
|
4614
|
-
export declare type MessageActionButtonProps = Omit<ButtonProps, 'children' | 'size'> & {
|
|
4615
|
-
content?: React.ReactNode;
|
|
4616
|
-
size?: string;
|
|
4617
|
-
};
|
|
4618
|
-
|
|
4619
|
-
/**
|
|
4620
|
-
* Represents the type for the container as a link in the Message component.
|
|
4621
|
-
*/
|
|
4622
|
-
export declare interface MessageContainerAsLinkProps {
|
|
4623
|
-
onClick?: () => void;
|
|
4624
|
-
url?: string;
|
|
4625
|
-
target?: React.HTMLAttributeAnchorTarget;
|
|
4626
|
-
}
|
|
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
|
-
*/
|
|
4645
|
-
export declare const MessageControlled: ForwardRefExoticComponent<MessageProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4646
|
-
|
|
4647
|
-
declare type MessageCssClasses = ComponentSelected<ComponentsTypesComponents['MESSAGE']>;
|
|
4648
|
-
|
|
4649
|
-
/**
|
|
4650
|
-
* Represents the type for the extra action button in the Message component.
|
|
4651
|
-
*/
|
|
4652
|
-
export declare type MessageExtraActionButtonProps = Omit<ButtonProps, 'children'> & {
|
|
4653
|
-
content?: React.ReactNode;
|
|
4654
|
-
};
|
|
4655
|
-
|
|
4656
|
-
/**
|
|
4657
|
-
* Represents the type for the link in the Message component.
|
|
4658
|
-
*/
|
|
4659
|
-
export declare type MessageLinkProps = Omit<LinkProps, 'children'> & {
|
|
4660
|
-
content?: string;
|
|
4661
|
-
};
|
|
4662
|
-
|
|
4663
|
-
/**
|
|
4664
|
-
* Interface for the controlled Message component.
|
|
4665
|
-
* Extends the MessageStandAloneProps interface and adds a variant and additional CSS classes.
|
|
4666
|
-
*
|
|
4667
|
-
* @template Variant - The type of the variant for the Message.
|
|
4668
|
-
*/
|
|
4669
|
-
export declare interface MessageProps<Variant = undefined extends string ? unknown : string> extends Omit<MessageStandAloneProps, 'linkComponent'> {
|
|
4670
|
-
open: boolean;
|
|
4671
|
-
variant?: Variant;
|
|
4672
|
-
additionalClasses?: Partial<MessageCssClasses>;
|
|
4673
|
-
}
|
|
4674
|
-
|
|
4675
|
-
/**
|
|
4676
|
-
* Interface for the standalone Message component.
|
|
4677
|
-
* Includes properties for icons, buttons, links, tags, and CSS classes.
|
|
4678
|
-
*/
|
|
4679
|
-
export declare interface MessageStandAloneProps extends DataAttributes {
|
|
4680
|
-
linkComponent: GenericLinkType;
|
|
4681
|
-
messageContainerProps?: MessageContainerAsLinkProps;
|
|
4682
|
-
titleAndContentContainerProps?: MessageContainerAsLinkProps;
|
|
4683
|
-
titleAndContentRole?: AriaRole;
|
|
4684
|
-
infoIcon?: ElementOrIconProps;
|
|
4685
|
-
actionButton?: MessageActionButtonProps;
|
|
4686
|
-
extraActionButton?: MessageExtraActionButtonProps;
|
|
4687
|
-
content: CommonTextProps;
|
|
4688
|
-
inlineLink?: MessageLinkProps;
|
|
4689
|
-
title?: CommonTextProps;
|
|
4690
|
-
tag?: MessageTagProps;
|
|
4691
|
-
ariaMessageId?: string;
|
|
4692
|
-
closeIcon?: ElementOrIconProps;
|
|
4693
|
-
maxContentLength?: number;
|
|
4694
|
-
open: boolean;
|
|
4695
|
-
role?: React.AriaRole;
|
|
4696
|
-
id?: string;
|
|
4697
|
-
ariaLive?: AriaAttributes['aria-live'];
|
|
4698
|
-
links?: MessageLinkProps[];
|
|
4699
|
-
cssClasses?: MessageCssClasses;
|
|
4700
|
-
}
|
|
4701
|
-
|
|
4702
|
-
export declare interface MessageStyleProps extends CssLibPropsType {
|
|
4703
|
-
_container?: CssLibPropsType;
|
|
4704
|
-
_headerContainer?: CssLibPropsType;
|
|
4705
|
-
_headerContainerLargeMessage?: CssLibPropsType;
|
|
4706
|
-
_title?: CssLibPropsType;
|
|
4707
|
-
_titleContainer?: CssLibPropsType;
|
|
4708
|
-
_contentContainer?: CssLibPropsType;
|
|
4709
|
-
_contentContainerLargeMessage?: CssLibPropsType;
|
|
4710
|
-
_description?: CssLibPropsType;
|
|
4711
|
-
_infoIcon?: CssLibPropsType;
|
|
4712
|
-
_closeIcon?: CssLibPropsType;
|
|
4713
|
-
_buttonSectionContainer?: CssLibPropsType;
|
|
4714
|
-
_actionButtonContainer?: CssLibPropsType;
|
|
4715
|
-
_extraActionButtonContainer?: CssLibPropsType;
|
|
4716
|
-
_illustration?: CssLibPropsType;
|
|
4717
|
-
_linkContainer?: CssLibPropsType;
|
|
4718
|
-
_linksContainer?: CssLibPropsType;
|
|
4719
|
-
}
|
|
4720
|
-
|
|
4721
|
-
/**
|
|
4722
|
-
* Represents the type for the tag in the Message component.
|
|
4723
|
-
*/
|
|
4724
|
-
export declare type MessageTagProps = Omit<TagProps, 'children'> & {
|
|
4725
|
-
content: string;
|
|
4726
|
-
};
|
|
4727
|
-
|
|
4728
|
-
/**
|
|
4729
|
-
* Interface for the uncontrolled Message component.
|
|
4730
|
-
* Extends the MessageProps interface and omits specific properties.
|
|
4731
|
-
*
|
|
4732
|
-
* @template Variant - The type of the variant for the Message.
|
|
4733
|
-
*/
|
|
4734
|
-
export declare interface MessageUnControlledProps<Variant = undefined extends string ? unknown : string> extends Omit<MessageProps<Variant>, 'open'> {
|
|
4735
|
-
defaultOpen?: boolean;
|
|
4736
|
-
}
|
|
4737
|
-
|
|
4738
|
-
export declare type MessageVariantStyles<Variant extends string> = MessageStyleProps & {
|
|
4739
|
-
[key in Variant]: MessageStyleProps;
|
|
4740
|
-
};
|
|
4741
|
-
|
|
4742
4573
|
/**
|
|
4743
4574
|
* Options for middleware configuration in the popover
|
|
4744
4575
|
*/
|
|
@@ -5300,11 +5131,6 @@ export declare interface ProgressBarStandAloneProps extends DataAttributes {
|
|
|
5300
5131
|
cssSizeClasses?: ProgressBarCssClasses;
|
|
5301
5132
|
barAriaLabel?: string;
|
|
5302
5133
|
progressCompleted: number;
|
|
5303
|
-
onChange?: (value: number) => void;
|
|
5304
|
-
onDragStart?: () => void;
|
|
5305
|
-
onDragEnd?: () => void;
|
|
5306
|
-
tooltip?: SliderTooltipProps;
|
|
5307
|
-
useAsSlider?: boolean;
|
|
5308
5134
|
progressAnimation?: {
|
|
5309
5135
|
duration?: string;
|
|
5310
5136
|
timingFunction?: string;
|
|
@@ -5466,15 +5292,6 @@ declare interface ScreenReaderOnlyProps extends DataAttributes {
|
|
|
5466
5292
|
*/
|
|
5467
5293
|
export declare const SelectorBoxFile: ForwardRefExoticComponent<SelectorBoxFileProps<string> & RefAttributes<HTMLDivElement>>;
|
|
5468
5294
|
|
|
5469
|
-
/**
|
|
5470
|
-
* Represents the type for the button in the SelectorBoxFile component.
|
|
5471
|
-
*/
|
|
5472
|
-
export declare type SelectorBoxFileButtonProps = Omit<ButtonProps, 'children' | 'variant' | 'size'> & {
|
|
5473
|
-
content: string;
|
|
5474
|
-
variant?: string;
|
|
5475
|
-
size?: string;
|
|
5476
|
-
};
|
|
5477
|
-
|
|
5478
5295
|
/**
|
|
5479
5296
|
* Represents the mapping of states to content in the SelectorBoxFile component.
|
|
5480
5297
|
*/
|
|
@@ -5501,6 +5318,8 @@ export declare interface SelectorBoxFileProps<Variant = undefined extends string
|
|
|
5501
5318
|
success?: boolean;
|
|
5502
5319
|
error?: boolean;
|
|
5503
5320
|
disabled?: boolean;
|
|
5321
|
+
errorMaxSizeMessage?: CommonTextProps;
|
|
5322
|
+
errorFileExtensionMessage?: CommonTextProps;
|
|
5504
5323
|
percentage?: number;
|
|
5505
5324
|
variant?: Variant;
|
|
5506
5325
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
@@ -5515,16 +5334,8 @@ export declare interface SelectorBoxFileProps<Variant = undefined extends string
|
|
|
5515
5334
|
*/
|
|
5516
5335
|
export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
5517
5336
|
state: SelectorBoxFileStateType;
|
|
5518
|
-
title?: CommonTextProps;
|
|
5519
|
-
subtitle?: CommonTextProps;
|
|
5520
|
-
tooltipIcon?: ElementOrIconProps;
|
|
5521
|
-
tooltip?: SelectorBoxFileTooltipProps;
|
|
5522
5337
|
containerBoxStateContent: SelectorBoxFileContainerBoxStateContentProps;
|
|
5523
5338
|
filename?: string;
|
|
5524
|
-
errorMessageIcon?: ElementOrIconProps;
|
|
5525
|
-
errorMessage?: CommonTextProps;
|
|
5526
|
-
errorMaxSizeMessage?: CommonTextProps;
|
|
5527
|
-
errorFileExtensionMessage?: CommonTextProps;
|
|
5528
5339
|
focus: boolean;
|
|
5529
5340
|
onFocus: React.FocusEventHandler<HTMLInputElement>;
|
|
5530
5341
|
onBlur: React.FocusEventHandler<HTMLInputElement>;
|
|
@@ -5535,8 +5346,6 @@ export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
|
5535
5346
|
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
5536
5347
|
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
5537
5348
|
onAnimationCompleted?: () => void;
|
|
5538
|
-
description?: CommonTextProps;
|
|
5539
|
-
button?: SelectorBoxFileButtonProps;
|
|
5540
5349
|
maxSize?: number;
|
|
5541
5350
|
fileExtension?: string[];
|
|
5542
5351
|
loader?: React.ReactNode;
|
|
@@ -5547,19 +5356,7 @@ export declare interface SelectorBoxFileStandAloneProps extends DataAttributes {
|
|
|
5547
5356
|
declare type SelectorBoxFileStateType = Extract<StateType, 'default' | 'loading' | 'success' | 'error' | 'disabled'>;
|
|
5548
5357
|
|
|
5549
5358
|
export declare interface SelectorBoxFileStyleProps extends CssLibPropsType {
|
|
5550
|
-
_actionDescriptionContainer?: CssLibPropsType;
|
|
5551
5359
|
_header?: CssLibPropsType;
|
|
5552
|
-
_titleSubtitleContainer?: CssLibPropsType;
|
|
5553
|
-
_title?: CssLibPropsType;
|
|
5554
|
-
_subtitle?: CssLibPropsType;
|
|
5555
|
-
_subtitleTooltipContainer?: CssLibPropsType;
|
|
5556
|
-
_descriptionContainer?: CssLibPropsType;
|
|
5557
|
-
_description?: CssLibPropsType;
|
|
5558
|
-
_tooltipIconContainer?: CssLibPropsType;
|
|
5559
|
-
_tooltipIcon?: CssLibPropsType;
|
|
5560
|
-
_errorMessageContainer?: CssLibPropsType;
|
|
5561
|
-
_errorMessageIcon?: CssLibPropsType;
|
|
5562
|
-
_errorMessage?: CssLibPropsType;
|
|
5563
5360
|
_animationContainer?: CssLibPropsType;
|
|
5564
5361
|
_topAnimationContainer?: CssLibPropsType;
|
|
5565
5362
|
_leftAnimationContainer?: CssLibPropsType;
|
|
@@ -5577,13 +5374,6 @@ export declare interface SelectorBoxFileStyleProps extends CssLibPropsType {
|
|
|
5577
5374
|
_containerActionContainer?: CssLibPropsType;
|
|
5578
5375
|
}
|
|
5579
5376
|
|
|
5580
|
-
/**
|
|
5581
|
-
* Represents the type for the tooltip in the SelectorBoxFile component.
|
|
5582
|
-
*/
|
|
5583
|
-
export declare type SelectorBoxFileTooltipProps = Omit<TooltipUnControlledProps, 'children' | 'variant'> & {
|
|
5584
|
-
variant?: string;
|
|
5585
|
-
};
|
|
5586
|
-
|
|
5587
5377
|
export declare type SelectorBoxFileVariantStyles<Variant extends string> = SelectorBoxFileStyleProps & {
|
|
5588
5378
|
[key in Variant]?: SelectorBoxFileStyleProps;
|
|
5589
5379
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubit-ui-web/react-components",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.19",
|
|
4
4
|
"description": "Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Kubit",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"@vitejs/plugin-react": "^5.1.2",
|
|
132
132
|
"@vitest/coverage-v8": "^4.0.16",
|
|
133
133
|
"@vitest/ui": "^4.0.16",
|
|
134
|
-
"bernova": "0.
|
|
134
|
+
"bernova": "1.0.0",
|
|
135
135
|
"cssnano": "^7.1.2",
|
|
136
136
|
"eslint": "^9.39.2",
|
|
137
137
|
"eslint-config-kubit": "1.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.js"),s=require("react"),r=require("../../lib/hooks/useClassName/useClassName.js"),o=require("../../lib/provider/genericComponentsProvider/genericComponentsProvider.js"),n=require("./messageStandAlone.js"),a=s.forwardRef(({additionalClasses:s,variant:a,...t},i)=>{const l=r.useClassName({additionalClassNames:s,component:"MESSAGE",variant:a}),{LINK:u}=o.useGenericComponents();return e.jsxRuntimeExports.jsx(n.MessageStandAlone,{ref:i,cssClasses:l,linkComponent:u,...t})});exports.MessageControlled=a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.js"),t=require("react"),n=require("../button/button.js"),s=require("../tag/tag.js"),o=require("../text/text.js"),i=require("../../lib/components/elementOrIcon/elementOrIcon.js"),r=require("../../lib/utils/classNames/classNames.js"),a=require("../../lib/utils/pickCustomAttributes/pickCustomAttributes.js"),l=require("../../lib/utils/process/processCommonProp.js"),c=require("../../lib/components/customComponent/customComponent.js"),u=require("../link/link.js"),x=t.forwardRef(({actionButton:t,ariaLive:x="off",ariaMessageId:m,closeIcon:d,content:p,cssClasses:j,extraActionButton:g,id:h,infoIcon:C,inlineLink:E,linkComponent:R,links:v,maxContentLength:b=246,messageContainerProps:k,open:N,role:f,tag:q,title:A,titleAndContentContainerProps:I,titleAndContentRole:P,...T},y)=>{const L=T["data-testid"]||"message",O=a.pickCustomAttributes(T),S=l.processTextProp(p),B=l.processTextProp(A),M="string"==typeof S.children&&S.children?.toString().length>=b;return e.jsxRuntimeExports.jsx("div",{...O,"aria-live":x,className:j?.message,children:N&&e.jsxRuntimeExports.jsxs(c.CustomComponent,{ref:y,className:j?.container,component:k?.url?R:"div","data-testid":L,id:h,role:f,target:k?.target,url:k?.url||void 0,onClick:k?.onClick,children:[C?.icon?e.jsxRuntimeExports.jsx(i.ElementOrIcon,{className:j?.infoicon,...C}):null,e.jsxRuntimeExports.jsxs(c.CustomComponent,{className:r.classNames(j?.headercontainer,{[`${j?.headercontainerlargemessage}`]:M}),component:I?.url?R:"div",role:P,target:I?.target,url:I?.url||void 0,onClick:I?.onClick,children:[!!A&&("string"==typeof B.children?e.jsxRuntimeExports.jsx("div",{"aria-errormessage":m,className:j?.titlecontainer,children:e.jsxRuntimeExports.jsx(o.Text,{additionalClasses:{text:j?.title},component:"p",...B})}):B.children),!!q?.content&&(q?.content?e.jsxRuntimeExports.jsx(s.Tag,{variant:"",...q,label:{content:q?.content}}):null),e.jsxRuntimeExports.jsxs("div",{className:r.classNames(j?.contentcontainer,{[`${j?.contentcontainerlargemessage}`]:M}),children:["string"==typeof p?e.jsxRuntimeExports.jsx(o.Text,{additionalClasses:{text:j?.description},component:"p",...S}):S.children,!!E?.content&&e.jsxRuntimeExports.jsx(u.Link,{decoration:"underline",...E,url:E?.url||"",children:E?.content||""})]}),!(!g&&!t)&&e.jsxRuntimeExports.jsxs("div",{className:j?.buttonsectioncontainer,children:[g?.content?e.jsxRuntimeExports.jsx("div",{className:j?.extraactionbuttoncontainer,children:e.jsxRuntimeExports.jsx(n.Button,{...g,children:g?.content})}):null,t?.content?e.jsxRuntimeExports.jsx("div",{className:j?.actionbuttoncontainer,children:e.jsxRuntimeExports.jsx(n.Button,{additionalSizeClasses:t?.variant?void 0:j?.action_button,...t,children:t?.content})}):null]}),!!(v&&v.length>0)&&e.jsxRuntimeExports.jsx("div",{className:j?.linkscontainer,children:v?.map(t=>t.content?e.jsxRuntimeExports.jsx("div",{className:j?.linkcontainer,children:e.jsxRuntimeExports.jsx(u.Link,{decoration:"underline",...t,children:t.content})},t.content):null)})]}),e.jsxRuntimeExports.jsx(i.ElementOrIcon,{className:j?.closeicon,...d})]})})});exports.MessageStandAlone=x;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.js"),o=require("react"),r=require("./messageControlled.js"),s=o.forwardRef(({closeIcon:s,defaultOpen:t=!0,...l},n)=>{const[a,u]=o.useState(t),c=o.useCallback(e=>{u(!1),s?.onClick?.(e)},[s]);return e.jsxRuntimeExports.jsx(r.MessageControlled,{...l,ref:n,closeIcon:s?{...s,onClick:c}:void 0,open:a})});exports.Message=s,exports.MessageUnControlled=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/jsx-runtime.js"),s=require("../../text/text.js"),r=require("../../../lib/components/elementOrIcon/elementOrIcon.js"),t=require("../../../lib/types/states/states.js"),o=require("../../../lib/utils/process/processCommonProp.js");exports.SelectorBoxFileErrorMessage=({cssClasses:i,errorMessage:n,errorMessageIcon:a,errorMessageId:l,state:x})=>e.jsxRuntimeExports.jsx("div",{"aria-live":"polite",children:o.processTextProp(n)&&x===t.STATES.ERROR?e.jsxRuntimeExports.jsxs("div",{className:i?.errormessagecontainer,id:l,children:[e.jsxRuntimeExports.jsx(r.ElementOrIcon,{className:i?.errormessageicon,...a}),e.jsxRuntimeExports.jsx(s.Text,{additionalClasses:{text:i?.errormessage},...o.processTextProp(n)})]}):null});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../_virtual/jsx-runtime.js"),s=require("../../button/button.js"),e=require("../../text/text.js"),i=require("../../../lib/utils/process/processCommonProp.js"),o=require("./selectorBoxFileTooltip.js");exports.SelectorBoxFileHeader=({button:r,cssClasses:n,description:a,headerId:x,subtitle:l,title:c,tooltip:p,tooltipIcon:u})=>t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs("div",{className:n?.titlesubtitlecontainer,id:x,children:[!!c&&t.jsxRuntimeExports.jsx(e.Text,{additionalClasses:{text:n?.title},component:"h5",...i.processTextProp(c)}),!!l&&t.jsxRuntimeExports.jsxs("div",{className:n?.actiondescriptioncontainer,children:[t.jsxRuntimeExports.jsx(e.Text,{additionalClasses:{text:n?.subtitle},...i.processTextProp(l)}),t.jsxRuntimeExports.jsx(o.SelectorBoxFileTooltip,{cssClasses:n,tooltip:p,tooltipIcon:u})]})]}),!(!a&&!r)&&t.jsxRuntimeExports.jsxs("div",{className:n?.descriptioncontainer,children:[t.jsxRuntimeExports.jsx(e.Text,{additionalClasses:{text:n?.description},...i.processTextProp(a)}),(!!n?.button_variant||!!r?.size)&&(!!n?.button_size||!!r?.variant)&&t.jsxRuntimeExports.jsx(s.Button,{additionalSizeClasses:r?.variant?void 0:n?.button_size,additionalVariantClasses:r?.size?void 0:n?.button_variant,size:r?.size,variant:r?.variant,...r,children:r?.content})]})]});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../_virtual/jsx-runtime.js"),t=require("../../tooltip/tooltipUnControlled.js"),e=require("../../../lib/components/elementOrIcon/elementOrIcon.js");exports.SelectorBoxFileTooltip=({cssClasses:i,tooltip:n,tooltipIcon:s})=>{if(!s?.icon)return null;const l=o.jsxRuntimeExports.jsx(e.ElementOrIcon,{className:i?.tooltipicon,...s});return n?o.jsxRuntimeExports.jsx("div",{className:i?.tooltipiconcontainer,children:o.jsxRuntimeExports.jsx(t.TooltipUnControlled,{additionalClasses:i?.tooltip,...n,children:l})}):o.jsxRuntimeExports.jsx("div",{className:i?.tooltipiconcontainer,children:l})};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j as s}from"../../_virtual/jsx-runtime.js";import{forwardRef as o}from"react";import{useClassName as r}from"../../lib/hooks/useClassName/useClassName.js";import{useGenericComponents as e}from"../../lib/provider/genericComponentsProvider/genericComponentsProvider.js";import{MessageStandAlone as a}from"./messageStandAlone.js";const i=o(({additionalClasses:o,variant:i,...n},t)=>{const m=r({additionalClassNames:o,component:"MESSAGE",variant:i}),{LINK:l}=e();/* @__PURE__ */
|
|
2
|
-
return s.jsx(a,{ref:t,cssClasses:m,linkComponent:l,...n})});export{i as MessageControlled};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as n}from"../../_virtual/jsx-runtime.js";import{forwardRef as t}from"react";import{Button as e}from"../button/button.js";import{Tag as o}from"../tag/tag.js";import{Text as i}from"../text/text.js";import{ElementOrIcon as s}from"../../lib/components/elementOrIcon/elementOrIcon.js";import{classNames as r}from"../../lib/utils/classNames/classNames.js";import{pickCustomAttributes as l}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{processTextProp as a}from"../../lib/utils/process/processCommonProp.js";import{CustomComponent as c}from"../../lib/components/customComponent/customComponent.js";import{Link as m}from"../link/link.js";const d=t(({actionButton:t,ariaLive:d="off",ariaMessageId:p,closeIcon:u,content:j,cssClasses:x,extraActionButton:h,id:g,infoIcon:f,inlineLink:C,linkComponent:v,links:b,maxContentLength:N=246,messageContainerProps:k,open:A,role:I,tag:y,title:L,titleAndContentContainerProps:P,titleAndContentRole:B,...O},S)=>{const $=O["data-testid"]||"message",_=l(O),z=a(j),M=a(L),R="string"==typeof z.children&&z.children?.toString().length>=N;/* @__PURE__ */
|
|
2
|
-
return n.jsx("div",{..._,"aria-live":d,className:x?.message,children:A&&/* @__PURE__ */n.jsxs(c,{ref:S,className:x?.container,component:k?.url?v:"div","data-testid":$,id:g,role:I,target:k?.target,url:k?.url||void 0,onClick:k?.onClick,children:[f?.icon?/* @__PURE__ */n.jsx(s,{className:x?.infoicon,...f}):null,
|
|
3
|
-
/* @__PURE__ */n.jsxs(c,{className:r(x?.headercontainer,{[`${x?.headercontainerlargemessage}`]:R}),component:P?.url?v:"div",role:B,target:P?.target,url:P?.url||void 0,onClick:P?.onClick,children:[!!L&&("string"==typeof M.children?/* @__PURE__ */n.jsx("div",{"aria-errormessage":p,className:x?.titlecontainer,children:/* @__PURE__ */n.jsx(i,{additionalClasses:{text:x?.title},component:"p",...M})}):M.children),!!y?.content&&(y?.content?/* @__PURE__ */n.jsx(o,{variant:"",...y,label:{content:y?.content}}):null),
|
|
4
|
-
/* @__PURE__ */n.jsxs("div",{className:r(x?.contentcontainer,{[`${x?.contentcontainerlargemessage}`]:R}),children:["string"==typeof j?/* @__PURE__ */n.jsx(i,{additionalClasses:{text:x?.description},component:"p",...z}):z.children,!!C?.content&&/* @__PURE__ */n.jsx(m,{decoration:"underline",...C,url:C?.url||"",children:C?.content||""})]}),!(!h&&!t)&&/* @__PURE__ */n.jsxs("div",{className:x?.buttonsectioncontainer,children:[h?.content?/* @__PURE__ */n.jsx("div",{className:x?.extraactionbuttoncontainer,children:/* @__PURE__ */n.jsx(e,{...h,children:h?.content})}):null,t?.content?/* @__PURE__ */n.jsx("div",{className:x?.actionbuttoncontainer,children:/* @__PURE__ */n.jsx(e,{additionalSizeClasses:t?.variant?void 0:x?.action_button,...t,children:t?.content})}):null]}),!!(b&&b.length>0)&&/* @__PURE__ */n.jsx("div",{className:x?.linkscontainer,children:b?.map(t=>t.content?/* @__PURE__ */n.jsx("div",{className:x?.linkcontainer,children:/* @__PURE__ */n.jsx(m,{decoration:"underline",...t,children:t.content})},t.content):null)})]}),
|
|
5
|
-
/* @__PURE__ */n.jsx(s,{className:x?.closeicon,...u})]})})});export{d as MessageStandAlone};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j as o}from"../../_virtual/jsx-runtime.js";import{forwardRef as e,useState as r,useCallback as s}from"react";import{MessageControlled as t}from"./messageControlled.js";const n=e(({closeIcon:e,defaultOpen:n=!0,...c},i)=>{const[l,m]=r(n),a=s(o=>{m(!1),e?.onClick?.(o)},[e]);/* @__PURE__ */
|
|
2
|
-
return o.jsx(t,{...c,ref:i,closeIcon:e?{...e,onClick:a}:void 0,open:l})});export{n as Message,n as MessageUnControlled};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{j as s}from"../../../_virtual/jsx-runtime.js";import{Text as e}from"../../text/text.js";import{ElementOrIcon as r}from"../../../lib/components/elementOrIcon/elementOrIcon.js";import{STATES as o}from"../../../lib/types/states/states.js";import{processTextProp as t}from"../../../lib/utils/process/processCommonProp.js";const i=({cssClasses:i,errorMessage:a,errorMessageIcon:m,errorMessageId:l,state:n})=>/* @__PURE__ */s.jsx("div",{"aria-live":"polite",children:t(a)&&n===o.ERROR?/* @__PURE__ */s.jsxs("div",{className:i?.errormessagecontainer,id:l,children:[
|
|
2
|
-
/* @__PURE__ */s.jsx(r,{className:i?.errormessageicon,...m}),
|
|
3
|
-
/* @__PURE__ */s.jsx(e,{additionalClasses:{text:i?.errormessage},...t(a)})]}):null});export{i as SelectorBoxFileErrorMessage};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as t}from"../../../_virtual/jsx-runtime.js";import{Button as s}from"../../button/button.js";import{Text as i}from"../../text/text.js";import{processTextProp as o}from"../../../lib/utils/process/processCommonProp.js";import{SelectorBoxFileTooltip as e}from"./selectorBoxFileTooltip.js";const a=({button:a,cssClasses:n,description:r,headerId:l,subtitle:d,title:c,tooltip:p,tooltipIcon:m})=>/* @__PURE__ */t.jsxs(t.Fragment,{children:[
|
|
2
|
-
/* @__PURE__ */t.jsxs("div",{className:n?.titlesubtitlecontainer,id:l,children:[!!c&&/* @__PURE__ */t.jsx(i,{additionalClasses:{text:n?.title},component:"h5",...o(c)}),!!d&&/* @__PURE__ */t.jsxs("div",{className:n?.actiondescriptioncontainer,children:[
|
|
3
|
-
/* @__PURE__ */t.jsx(i,{additionalClasses:{text:n?.subtitle},...o(d)}),
|
|
4
|
-
/* @__PURE__ */t.jsx(e,{cssClasses:n,tooltip:p,tooltipIcon:m})]})]}),!(!r&&!a)&&/* @__PURE__ */t.jsxs("div",{className:n?.descriptioncontainer,children:[
|
|
5
|
-
/* @__PURE__ */t.jsx(i,{additionalClasses:{text:n?.description},...o(r)}),(!!n?.button_variant||!!a?.size)&&(!!n?.button_size||!!a?.variant)&&/* @__PURE__ */t.jsx(s,{additionalSizeClasses:a?.variant?void 0:n?.button_size,additionalVariantClasses:a?.size?void 0:n?.button_variant,size:a?.size,variant:a?.variant,...a,children:a?.content})]})]});export{a as SelectorBoxFileHeader};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"../../../_virtual/jsx-runtime.js";import{TooltipUnControlled as t}from"../../tooltip/tooltipUnControlled.js";import{ElementOrIcon as i}from"../../../lib/components/elementOrIcon/elementOrIcon.js";const n=({cssClasses:n,tooltip:s,tooltipIcon:l})=>{if(!l?.icon)return null;const e=/* @__PURE__ */o.jsx(i,{className:n?.tooltipicon,...l});return s?/* @__PURE__ */o.jsx("div",{className:n?.tooltipiconcontainer,children:/* @__PURE__ */o.jsx(t,{additionalClasses:n?.tooltip,...s,children:e})}):/* @__PURE__ */o.jsx("div",{className:n?.tooltipiconcontainer,children:e})};export{n as SelectorBoxFileTooltip};
|