mainbase-ui 1.2.5-b → 1.2.5
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/index.cjs +54 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +37 -6
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +51 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode, CSSProperties, HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, PropsWithChildren, ImgHTMLAttributes, ReactElement, MouseEvent, KeyboardEvent, Ref, RefObject, TextareaHTMLAttributes, ElementType } from 'react';
|
|
2
|
+
import { ReactNode, CSSProperties, HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, PropsWithChildren, ImgHTMLAttributes, ReactElement, MouseEvent, KeyboardEvent, Ref, AnchorHTMLAttributes, RefObject, TextareaHTMLAttributes, ElementType } from 'react';
|
|
3
3
|
|
|
4
4
|
type MainbaseColorScheme = "light" | "dark";
|
|
5
5
|
type MainbaseRadius = number | string;
|
|
@@ -727,6 +727,12 @@ interface HighlightProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
727
727
|
}
|
|
728
728
|
declare function Highlight({ children, color, className, ...props }: HighlightProps): react.JSX.Element;
|
|
729
729
|
|
|
730
|
+
type LinkVariant = "default" | "primary" | "muted";
|
|
731
|
+
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
732
|
+
variant?: LinkVariant;
|
|
733
|
+
}
|
|
734
|
+
declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
735
|
+
|
|
730
736
|
type ClickOutsideEvent = "mousedown" | "touchstart" | "pointerdown";
|
|
731
737
|
interface UseClickOutsideOptions {
|
|
732
738
|
enabled?: boolean;
|
|
@@ -806,4 +812,4 @@ interface TitleProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
|
806
812
|
}
|
|
807
813
|
declare function Title({ order, size, weight, color, leftSection, rightSection, className, children, ...props }: TitleProps): react.JSX.Element;
|
|
808
814
|
|
|
809
|
-
export { Accordion, type AccordionChevronPosition, type AccordionControlProps, type AccordionItemProps, type AccordionPanelProps, type AccordionProps, type AccordionSize, type AccordionType, type AccordionValue, type AccordionVariant, Alert, type AlertProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Button, Card, type CardProps, Checkbox, type CheckboxProps, type ClassValue, DatePicker, type DatePickerProps, type DatePickerSize, type DatePickerType, type DatePickerValue, type DateRangeValue, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, FileInput, type FileInputProps, type FileInputSize, Group, type GroupProps, Highlight, type HighlightProps, Icon, IconButton, type IconButtonProps, type IconProps, Image, type ImageFit, type ImageProps, Input, type InputProps, type MainbaseColorScheme, type MainbaseColors, type MainbaseComponentDefaults, MainbasePortalContext, MainbaseProvider, type MainbaseProviderProps, type MainbaseRadii, type MainbaseShadows, type MainbaseSpacing, type MainbaseTheme, type MainbaseThemeOverride, type MainbaseTransitions, type MainbaseTypography, type MainbaseZIndex, Menu, type MenuDividerProps, type MenuDropdownProps, type MenuItemProps, type MenuLabelProps, type MenuPosition, type MenuProps, type MenuTargetProps, type MenuWidth, Modal, type ModalProps, Pagination, type PaginationProps, type PaginationSize, type PaginationVariant, PasswordInput, type PasswordInputProps, type PasswordInputSize, PinInput, type PinInputProps, type PinInputSize, type PinInputType, Popover, type PopoverDropdownProps, type PopoverPosition, type PopoverProps, type PopoverTargetProps, Portal, type PortalProps, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, Tabs, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, type TabsSize, TabsTab, type TabsTabProps, type TabsVariant, Text, type TextProps, Textarea, type TextareaProps, Title, type TitleProps, type ToastApi, type ToastItem, type ToastOptions, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastShortcutInput, type ToastVariant, Tooltip, type TooltipPosition, type TooltipProps, type UseClickOutsideOptions, type UseControllableStateOptions, type UseDisclosureHandlers, type UseDisclosureReturn, cx, defaultMainbaseTheme, useClickOutside, useComponentDefaults, useControllableState, useDisclosure, useLockScroll, useMainbaseTheme, useToast };
|
|
815
|
+
export { Accordion, type AccordionChevronPosition, type AccordionControlProps, type AccordionItemProps, type AccordionPanelProps, type AccordionProps, type AccordionSize, type AccordionType, type AccordionValue, type AccordionVariant, Alert, type AlertProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Button, Card, type CardProps, Checkbox, type CheckboxProps, type ClassValue, DatePicker, type DatePickerProps, type DatePickerSize, type DatePickerType, type DatePickerValue, type DateRangeValue, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, FileInput, type FileInputProps, type FileInputSize, Group, type GroupProps, Highlight, type HighlightProps, Icon, IconButton, type IconButtonProps, type IconProps, Image, type ImageFit, type ImageProps, Input, type InputProps, Link, type LinkProps, type LinkVariant, type MainbaseColorScheme, type MainbaseColors, type MainbaseComponentDefaults, MainbasePortalContext, MainbaseProvider, type MainbaseProviderProps, type MainbaseRadii, type MainbaseShadows, type MainbaseSpacing, type MainbaseTheme, type MainbaseThemeOverride, type MainbaseTransitions, type MainbaseTypography, type MainbaseZIndex, Menu, type MenuDividerProps, type MenuDropdownProps, type MenuItemProps, type MenuLabelProps, type MenuPosition, type MenuProps, type MenuTargetProps, type MenuWidth, Modal, type ModalProps, Pagination, type PaginationProps, type PaginationSize, type PaginationVariant, PasswordInput, type PasswordInputProps, type PasswordInputSize, PinInput, type PinInputProps, type PinInputSize, type PinInputType, Popover, type PopoverDropdownProps, type PopoverPosition, type PopoverProps, type PopoverTargetProps, Portal, type PortalProps, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, Tabs, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, type TabsSize, TabsTab, type TabsTabProps, type TabsVariant, Text, type TextProps, Textarea, type TextareaProps, Title, type TitleProps, type ToastApi, type ToastItem, type ToastOptions, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastShortcutInput, type ToastVariant, Tooltip, type TooltipPosition, type TooltipProps, type UseClickOutsideOptions, type UseControllableStateOptions, type UseDisclosureHandlers, type UseDisclosureReturn, cx, defaultMainbaseTheme, useClickOutside, useComponentDefaults, useControllableState, useDisclosure, useLockScroll, useMainbaseTheme, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode, CSSProperties, HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, PropsWithChildren, ImgHTMLAttributes, ReactElement, MouseEvent, KeyboardEvent, Ref, RefObject, TextareaHTMLAttributes, ElementType } from 'react';
|
|
2
|
+
import { ReactNode, CSSProperties, HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, PropsWithChildren, ImgHTMLAttributes, ReactElement, MouseEvent, KeyboardEvent, Ref, AnchorHTMLAttributes, RefObject, TextareaHTMLAttributes, ElementType } from 'react';
|
|
3
3
|
|
|
4
4
|
type MainbaseColorScheme = "light" | "dark";
|
|
5
5
|
type MainbaseRadius = number | string;
|
|
@@ -727,6 +727,12 @@ interface HighlightProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
727
727
|
}
|
|
728
728
|
declare function Highlight({ children, color, className, ...props }: HighlightProps): react.JSX.Element;
|
|
729
729
|
|
|
730
|
+
type LinkVariant = "default" | "primary" | "muted";
|
|
731
|
+
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
732
|
+
variant?: LinkVariant;
|
|
733
|
+
}
|
|
734
|
+
declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
735
|
+
|
|
730
736
|
type ClickOutsideEvent = "mousedown" | "touchstart" | "pointerdown";
|
|
731
737
|
interface UseClickOutsideOptions {
|
|
732
738
|
enabled?: boolean;
|
|
@@ -806,4 +812,4 @@ interface TitleProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
|
806
812
|
}
|
|
807
813
|
declare function Title({ order, size, weight, color, leftSection, rightSection, className, children, ...props }: TitleProps): react.JSX.Element;
|
|
808
814
|
|
|
809
|
-
export { Accordion, type AccordionChevronPosition, type AccordionControlProps, type AccordionItemProps, type AccordionPanelProps, type AccordionProps, type AccordionSize, type AccordionType, type AccordionValue, type AccordionVariant, Alert, type AlertProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Button, Card, type CardProps, Checkbox, type CheckboxProps, type ClassValue, DatePicker, type DatePickerProps, type DatePickerSize, type DatePickerType, type DatePickerValue, type DateRangeValue, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, FileInput, type FileInputProps, type FileInputSize, Group, type GroupProps, Highlight, type HighlightProps, Icon, IconButton, type IconButtonProps, type IconProps, Image, type ImageFit, type ImageProps, Input, type InputProps, type MainbaseColorScheme, type MainbaseColors, type MainbaseComponentDefaults, MainbasePortalContext, MainbaseProvider, type MainbaseProviderProps, type MainbaseRadii, type MainbaseShadows, type MainbaseSpacing, type MainbaseTheme, type MainbaseThemeOverride, type MainbaseTransitions, type MainbaseTypography, type MainbaseZIndex, Menu, type MenuDividerProps, type MenuDropdownProps, type MenuItemProps, type MenuLabelProps, type MenuPosition, type MenuProps, type MenuTargetProps, type MenuWidth, Modal, type ModalProps, Pagination, type PaginationProps, type PaginationSize, type PaginationVariant, PasswordInput, type PasswordInputProps, type PasswordInputSize, PinInput, type PinInputProps, type PinInputSize, type PinInputType, Popover, type PopoverDropdownProps, type PopoverPosition, type PopoverProps, type PopoverTargetProps, Portal, type PortalProps, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, Tabs, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, type TabsSize, TabsTab, type TabsTabProps, type TabsVariant, Text, type TextProps, Textarea, type TextareaProps, Title, type TitleProps, type ToastApi, type ToastItem, type ToastOptions, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastShortcutInput, type ToastVariant, Tooltip, type TooltipPosition, type TooltipProps, type UseClickOutsideOptions, type UseControllableStateOptions, type UseDisclosureHandlers, type UseDisclosureReturn, cx, defaultMainbaseTheme, useClickOutside, useComponentDefaults, useControllableState, useDisclosure, useLockScroll, useMainbaseTheme, useToast };
|
|
815
|
+
export { Accordion, type AccordionChevronPosition, type AccordionControlProps, type AccordionItemProps, type AccordionPanelProps, type AccordionProps, type AccordionSize, type AccordionType, type AccordionValue, type AccordionVariant, Alert, type AlertProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Button, Card, type CardProps, Checkbox, type CheckboxProps, type ClassValue, DatePicker, type DatePickerProps, type DatePickerSize, type DatePickerType, type DatePickerValue, type DateRangeValue, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, FileInput, type FileInputProps, type FileInputSize, Group, type GroupProps, Highlight, type HighlightProps, Icon, IconButton, type IconButtonProps, type IconProps, Image, type ImageFit, type ImageProps, Input, type InputProps, Link, type LinkProps, type LinkVariant, type MainbaseColorScheme, type MainbaseColors, type MainbaseComponentDefaults, MainbasePortalContext, MainbaseProvider, type MainbaseProviderProps, type MainbaseRadii, type MainbaseShadows, type MainbaseSpacing, type MainbaseTheme, type MainbaseThemeOverride, type MainbaseTransitions, type MainbaseTypography, type MainbaseZIndex, Menu, type MenuDividerProps, type MenuDropdownProps, type MenuItemProps, type MenuLabelProps, type MenuPosition, type MenuProps, type MenuTargetProps, type MenuWidth, Modal, type ModalProps, Pagination, type PaginationProps, type PaginationSize, type PaginationVariant, PasswordInput, type PasswordInputProps, type PasswordInputSize, PinInput, type PinInputProps, type PinInputSize, type PinInputType, Popover, type PopoverDropdownProps, type PopoverPosition, type PopoverProps, type PopoverTargetProps, Portal, type PortalProps, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, Tabs, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, type TabsSize, TabsTab, type TabsTabProps, type TabsVariant, Text, type TextProps, Textarea, type TextareaProps, Title, type TitleProps, type ToastApi, type ToastItem, type ToastOptions, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastShortcutInput, type ToastVariant, Tooltip, type TooltipPosition, type TooltipProps, type UseClickOutsideOptions, type UseControllableStateOptions, type UseDisclosureHandlers, type UseDisclosureReturn, cx, defaultMainbaseTheme, useClickOutside, useComponentDefaults, useControllableState, useDisclosure, useLockScroll, useMainbaseTheme, useToast };
|
package/dist/index.js
CHANGED
|
@@ -6296,8 +6296,34 @@ function Highlight({
|
|
|
6296
6296
|
);
|
|
6297
6297
|
}
|
|
6298
6298
|
|
|
6299
|
+
// src/components/Link/Link.tsx
|
|
6300
|
+
import {
|
|
6301
|
+
forwardRef as forwardRef7
|
|
6302
|
+
} from "react";
|
|
6303
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
6304
|
+
var Link = forwardRef7(function Link2({
|
|
6305
|
+
variant = "default",
|
|
6306
|
+
className = "",
|
|
6307
|
+
children,
|
|
6308
|
+
...props
|
|
6309
|
+
}, ref) {
|
|
6310
|
+
return /* @__PURE__ */ jsx35(
|
|
6311
|
+
"a",
|
|
6312
|
+
{
|
|
6313
|
+
ref,
|
|
6314
|
+
className: cx(
|
|
6315
|
+
"mb-link",
|
|
6316
|
+
`mb-link--${variant}`,
|
|
6317
|
+
className
|
|
6318
|
+
),
|
|
6319
|
+
...props,
|
|
6320
|
+
children
|
|
6321
|
+
}
|
|
6322
|
+
);
|
|
6323
|
+
});
|
|
6324
|
+
|
|
6299
6325
|
// src/components/Card/Card.tsx
|
|
6300
|
-
import { jsx as
|
|
6326
|
+
import { jsx as jsx36, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6301
6327
|
function Card({
|
|
6302
6328
|
padding,
|
|
6303
6329
|
radius,
|
|
@@ -6325,9 +6351,9 @@ function Card({
|
|
|
6325
6351
|
className: classes,
|
|
6326
6352
|
...props,
|
|
6327
6353
|
children: [
|
|
6328
|
-
header != null ? /* @__PURE__ */
|
|
6329
|
-
/* @__PURE__ */
|
|
6330
|
-
footer != null ? /* @__PURE__ */
|
|
6354
|
+
header != null ? /* @__PURE__ */ jsx36("div", { className: "mb-card__header", children: header }) : null,
|
|
6355
|
+
/* @__PURE__ */ jsx36("div", { className: "mb-card__content", children }),
|
|
6356
|
+
footer != null ? /* @__PURE__ */ jsx36("div", { className: "mb-card__footer", children: footer }) : null
|
|
6331
6357
|
]
|
|
6332
6358
|
}
|
|
6333
6359
|
);
|
|
@@ -6335,10 +6361,10 @@ function Card({
|
|
|
6335
6361
|
|
|
6336
6362
|
// src/components/IconButton/IconButton.tsx
|
|
6337
6363
|
import {
|
|
6338
|
-
forwardRef as
|
|
6364
|
+
forwardRef as forwardRef8
|
|
6339
6365
|
} from "react";
|
|
6340
|
-
import { jsx as
|
|
6341
|
-
var IconButton =
|
|
6366
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
6367
|
+
var IconButton = forwardRef8(function IconButton2({
|
|
6342
6368
|
icon,
|
|
6343
6369
|
label,
|
|
6344
6370
|
variant,
|
|
@@ -6363,7 +6389,7 @@ var IconButton = forwardRef7(function IconButton2({
|
|
|
6363
6389
|
md: 18,
|
|
6364
6390
|
lg: 20
|
|
6365
6391
|
}[resolvedSize];
|
|
6366
|
-
return /* @__PURE__ */
|
|
6392
|
+
return /* @__PURE__ */ jsx37(
|
|
6367
6393
|
"button",
|
|
6368
6394
|
{
|
|
6369
6395
|
ref,
|
|
@@ -6373,7 +6399,7 @@ var IconButton = forwardRef7(function IconButton2({
|
|
|
6373
6399
|
"aria-label": label,
|
|
6374
6400
|
"aria-busy": loading || void 0,
|
|
6375
6401
|
...props,
|
|
6376
|
-
children: loading ? /* @__PURE__ */
|
|
6402
|
+
children: loading ? /* @__PURE__ */ jsx37(
|
|
6377
6403
|
Spinner,
|
|
6378
6404
|
{
|
|
6379
6405
|
size: 14,
|
|
@@ -6382,13 +6408,13 @@ var IconButton = forwardRef7(function IconButton2({
|
|
|
6382
6408
|
trackColor: "transparent",
|
|
6383
6409
|
"aria-hidden": "true"
|
|
6384
6410
|
}
|
|
6385
|
-
) : /* @__PURE__ */
|
|
6411
|
+
) : /* @__PURE__ */ jsx37(Icon, { size: iconSize, children: icon })
|
|
6386
6412
|
}
|
|
6387
6413
|
);
|
|
6388
6414
|
});
|
|
6389
6415
|
|
|
6390
6416
|
// src/components/Input/Input.tsx
|
|
6391
|
-
import { jsx as
|
|
6417
|
+
import { jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6392
6418
|
function Input({
|
|
6393
6419
|
leftSection,
|
|
6394
6420
|
rightSection,
|
|
@@ -6406,8 +6432,8 @@ function Input({
|
|
|
6406
6432
|
className
|
|
6407
6433
|
].filter(Boolean).join(" ");
|
|
6408
6434
|
return /* @__PURE__ */ jsxs28("div", { className: classes, children: [
|
|
6409
|
-
leftSection ? /* @__PURE__ */
|
|
6410
|
-
/* @__PURE__ */
|
|
6435
|
+
leftSection ? /* @__PURE__ */ jsx38("span", { className: "mb-input__section mb-input__section--left", children: /* @__PURE__ */ jsx38(Icon, { size: 18, children: leftSection }) }) : null,
|
|
6436
|
+
/* @__PURE__ */ jsx38(
|
|
6411
6437
|
"input",
|
|
6412
6438
|
{
|
|
6413
6439
|
className: "mb-input__control",
|
|
@@ -6416,17 +6442,17 @@ function Input({
|
|
|
6416
6442
|
...props
|
|
6417
6443
|
}
|
|
6418
6444
|
),
|
|
6419
|
-
rightSection ? /* @__PURE__ */
|
|
6445
|
+
rightSection ? /* @__PURE__ */ jsx38("span", { className: "mb-input__section mb-input__section--right", children: /* @__PURE__ */ jsx38(Icon, { size: 18, children: rightSection }) }) : null
|
|
6420
6446
|
] });
|
|
6421
6447
|
}
|
|
6422
6448
|
|
|
6423
6449
|
// src/components/Textarea/Textarea.tsx
|
|
6424
|
-
import { jsx as
|
|
6450
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
6425
6451
|
function Textarea({
|
|
6426
6452
|
className = "",
|
|
6427
6453
|
...props
|
|
6428
6454
|
}) {
|
|
6429
|
-
return /* @__PURE__ */
|
|
6455
|
+
return /* @__PURE__ */ jsx39(
|
|
6430
6456
|
"textarea",
|
|
6431
6457
|
{
|
|
6432
6458
|
className: `mb-textarea ${className}`,
|
|
@@ -6436,7 +6462,7 @@ function Textarea({
|
|
|
6436
6462
|
}
|
|
6437
6463
|
|
|
6438
6464
|
// src/components/Text/Text.tsx
|
|
6439
|
-
import { jsx as
|
|
6465
|
+
import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6440
6466
|
function Text({
|
|
6441
6467
|
as: Component = "p",
|
|
6442
6468
|
size,
|
|
@@ -6471,16 +6497,16 @@ function Text({
|
|
|
6471
6497
|
className: classes,
|
|
6472
6498
|
...props,
|
|
6473
6499
|
children: [
|
|
6474
|
-
leftSection != null ? /* @__PURE__ */
|
|
6475
|
-
/* @__PURE__ */
|
|
6476
|
-
rightSection != null ? /* @__PURE__ */
|
|
6500
|
+
leftSection != null ? /* @__PURE__ */ jsx40(Icon, { size: iconSize, children: leftSection }) : null,
|
|
6501
|
+
/* @__PURE__ */ jsx40("span", { className: "mb-text__content", children }),
|
|
6502
|
+
rightSection != null ? /* @__PURE__ */ jsx40(Icon, { size: iconSize, children: rightSection }) : null
|
|
6477
6503
|
]
|
|
6478
6504
|
}
|
|
6479
6505
|
);
|
|
6480
6506
|
}
|
|
6481
6507
|
|
|
6482
6508
|
// src/components/Title/Title.tsx
|
|
6483
|
-
import { jsx as
|
|
6509
|
+
import { jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6484
6510
|
function Title({
|
|
6485
6511
|
order,
|
|
6486
6512
|
size,
|
|
@@ -6524,9 +6550,9 @@ function Title({
|
|
|
6524
6550
|
className: classes,
|
|
6525
6551
|
...props,
|
|
6526
6552
|
children: [
|
|
6527
|
-
leftSection != null ? /* @__PURE__ */
|
|
6528
|
-
/* @__PURE__ */
|
|
6529
|
-
rightSection != null ? /* @__PURE__ */
|
|
6553
|
+
leftSection != null ? /* @__PURE__ */ jsx41(Icon, { size: iconSize, children: leftSection }) : null,
|
|
6554
|
+
/* @__PURE__ */ jsx41("span", { className: "mb-title__content", children }),
|
|
6555
|
+
rightSection != null ? /* @__PURE__ */ jsx41(Icon, { size: iconSize, children: rightSection }) : null
|
|
6530
6556
|
]
|
|
6531
6557
|
}
|
|
6532
6558
|
);
|
|
@@ -6550,6 +6576,7 @@ export {
|
|
|
6550
6576
|
IconButton,
|
|
6551
6577
|
Image,
|
|
6552
6578
|
Input,
|
|
6579
|
+
Link,
|
|
6553
6580
|
MainbasePortalContext,
|
|
6554
6581
|
MainbaseProvider,
|
|
6555
6582
|
Menu,
|