@allxsmith/bestax-bulma 5.9.0 → 5.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +15 -0
- package/CLAUDE.md +15 -0
- package/dist/index.cjs.js +89 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +88 -29
- package/dist/index.esm.js.map +1 -1
- package/dist/types/columns/Column.d.ts +2 -2
- package/dist/types/components/Card.d.ts +49 -7
- package/dist/types/components/Sidebar.d.ts +2 -0
- package/dist/types/components/Tabs.d.ts +4 -0
- package/dist/types/elements/Button.d.ts +2 -0
- package/dist/types/elements/LinkButton.d.ts +1 -1
- package/dist/types/elements/SubTitle.d.ts +3 -4
- package/dist/types/elements/Table.d.ts +2 -0
- package/dist/types/elements/Tag.d.ts +2 -0
- package/dist/types/elements/Title.d.ts +3 -4
- package/dist/types/form/File.d.ts +2 -0
- package/dist/types/form/Numberinput.d.ts +4 -0
- package/dist/types/form/SelectBase.d.ts +2 -0
- package/dist/types/form/Taginput.d.ts +4 -0
- package/llms.txt +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1488,14 +1488,19 @@ const CardComponent = ({ className, children, textColor, color, bgColor, hasShad
|
|
|
1488
1488
|
* @param {CardHeaderProps} props - Props for the CardHeader component.
|
|
1489
1489
|
* @returns {JSX.Element} The rendered card header.
|
|
1490
1490
|
*/
|
|
1491
|
-
const CardHeader = ({ className, children, centered, ...props }) => {
|
|
1491
|
+
const CardHeader = ({ className, children, centered, color, bgColor, textColor, ...props }) => {
|
|
1492
1492
|
const { classPrefix } = useConfig();
|
|
1493
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1494
|
+
color: textColor ?? color,
|
|
1495
|
+
backgroundColor: bgColor,
|
|
1496
|
+
...props,
|
|
1497
|
+
});
|
|
1493
1498
|
// Check if children contains a CardHeaderTitle component
|
|
1494
1499
|
const hasHeaderTitle = React.Children.toArray(children).some(child => React.isValidElement(child) &&
|
|
1495
1500
|
typeof child.type === 'function' &&
|
|
1496
1501
|
child.type === CardHeaderTitle);
|
|
1497
1502
|
const headerClasses = usePrefixedClassNames('card-header');
|
|
1498
|
-
return (jsx("header", { className: classNames(headerClasses, className), ...
|
|
1503
|
+
return (jsx("header", { className: classNames(headerClasses, bulmaHelperClasses, className), ...rest, children: hasHeaderTitle ? (children) : (jsx("div", { className: classNames(prefixedClassNames(classPrefix, 'card-header-title', {
|
|
1499
1504
|
'is-centered': centered,
|
|
1500
1505
|
}), className), children: children })) }));
|
|
1501
1506
|
};
|
|
@@ -1506,9 +1511,16 @@ const CardHeader = ({ className, children, centered, ...props }) => {
|
|
|
1506
1511
|
* @param {CardHeaderTitleProps} props - Props for the CardHeaderTitle component.
|
|
1507
1512
|
* @returns {JSX.Element} The rendered card header title.
|
|
1508
1513
|
*/
|
|
1509
|
-
const CardHeaderTitle = ({ className, children, centered, ...props }) =>
|
|
1510
|
-
|
|
1511
|
-
|
|
1514
|
+
const CardHeaderTitle = ({ className, children, centered, color, bgColor, textColor, ...props }) => {
|
|
1515
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1516
|
+
color: textColor ?? color,
|
|
1517
|
+
backgroundColor: bgColor,
|
|
1518
|
+
...props,
|
|
1519
|
+
});
|
|
1520
|
+
return (jsx("div", { className: classNames(usePrefixedClassNames('card-header-title', {
|
|
1521
|
+
'is-centered': centered,
|
|
1522
|
+
}), bulmaHelperClasses, className), ...rest, children: children }));
|
|
1523
|
+
};
|
|
1512
1524
|
/**
|
|
1513
1525
|
* Card header icon compound component. Renders a `.card-header-icon` button.
|
|
1514
1526
|
*
|
|
@@ -1516,7 +1528,14 @@ const CardHeaderTitle = ({ className, children, centered, ...props }) => (jsx("d
|
|
|
1516
1528
|
* @param {CardHeaderIconProps} props - Props for the CardHeaderIcon component.
|
|
1517
1529
|
* @returns {JSX.Element} The rendered card header icon button.
|
|
1518
1530
|
*/
|
|
1519
|
-
const CardHeaderIcon = ({ className, children,
|
|
1531
|
+
const CardHeaderIcon = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
1532
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1533
|
+
color: textColor ?? color,
|
|
1534
|
+
backgroundColor: bgColor,
|
|
1535
|
+
...props,
|
|
1536
|
+
});
|
|
1537
|
+
return (jsx("button", { className: classNames(usePrefixedClassNames('card-header-icon'), bulmaHelperClasses, className), "aria-label": props['aria-label'] || 'more options', ...rest, children: children }));
|
|
1538
|
+
};
|
|
1520
1539
|
/**
|
|
1521
1540
|
* Card image compound component. Wraps children in a `.card-image` element.
|
|
1522
1541
|
*
|
|
@@ -1524,7 +1543,14 @@ const CardHeaderIcon = ({ className, children, ...props }) => (jsx("button", { c
|
|
|
1524
1543
|
* @param {CardImageProps} props - Props for the CardImage component.
|
|
1525
1544
|
* @returns {JSX.Element} The rendered card image container.
|
|
1526
1545
|
*/
|
|
1527
|
-
const CardImage = ({ className, children,
|
|
1546
|
+
const CardImage = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
1547
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1548
|
+
color: textColor ?? color,
|
|
1549
|
+
backgroundColor: bgColor,
|
|
1550
|
+
...props,
|
|
1551
|
+
});
|
|
1552
|
+
return (jsx("div", { className: classNames(usePrefixedClassNames('card-image'), bulmaHelperClasses, className), ...rest, children: children }));
|
|
1553
|
+
};
|
|
1528
1554
|
/**
|
|
1529
1555
|
* Card content compound component. Wraps children in a `.card-content` element.
|
|
1530
1556
|
*
|
|
@@ -1532,7 +1558,14 @@ const CardImage = ({ className, children, ...props }) => (jsx("div", { className
|
|
|
1532
1558
|
* @param {CardContentProps} props - Props for the CardContent component.
|
|
1533
1559
|
* @returns {JSX.Element} The rendered card content container.
|
|
1534
1560
|
*/
|
|
1535
|
-
const CardContent = ({ className, children,
|
|
1561
|
+
const CardContent = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
1562
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1563
|
+
color: textColor ?? color,
|
|
1564
|
+
backgroundColor: bgColor,
|
|
1565
|
+
...props,
|
|
1566
|
+
});
|
|
1567
|
+
return (jsx("div", { className: classNames(usePrefixedClassNames('card-content'), bulmaHelperClasses, className), ...rest, children: children }));
|
|
1568
|
+
};
|
|
1536
1569
|
/**
|
|
1537
1570
|
* Card footer compound component. Wraps children in a `.card-footer` element.
|
|
1538
1571
|
*
|
|
@@ -1540,7 +1573,14 @@ const CardContent = ({ className, children, ...props }) => (jsx("div", { classNa
|
|
|
1540
1573
|
* @param {CardFooterProps} props - Props for the CardFooter component.
|
|
1541
1574
|
* @returns {JSX.Element} The rendered card footer.
|
|
1542
1575
|
*/
|
|
1543
|
-
const CardFooter = ({ className, children,
|
|
1576
|
+
const CardFooter = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
1577
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1578
|
+
color: textColor ?? color,
|
|
1579
|
+
backgroundColor: bgColor,
|
|
1580
|
+
...props,
|
|
1581
|
+
});
|
|
1582
|
+
return (jsx("footer", { className: classNames(usePrefixedClassNames('card-footer'), bulmaHelperClasses, className), ...rest, children: children }));
|
|
1583
|
+
};
|
|
1544
1584
|
/**
|
|
1545
1585
|
* Card footer item compound component. Wraps children in a `.card-footer-item` span.
|
|
1546
1586
|
*
|
|
@@ -1548,7 +1588,14 @@ const CardFooter = ({ className, children, ...props }) => (jsx("footer", { class
|
|
|
1548
1588
|
* @param {CardFooterItemProps} props - Props for the CardFooterItem component.
|
|
1549
1589
|
* @returns {JSX.Element} The rendered card footer item.
|
|
1550
1590
|
*/
|
|
1551
|
-
const CardFooterItem = ({ className, children,
|
|
1591
|
+
const CardFooterItem = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
1592
|
+
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1593
|
+
color: textColor ?? color,
|
|
1594
|
+
backgroundColor: bgColor,
|
|
1595
|
+
...props,
|
|
1596
|
+
});
|
|
1597
|
+
return (jsx("span", { className: classNames(usePrefixedClassNames('card-footer-item'), bulmaHelperClasses, className), ...rest, children: children }));
|
|
1598
|
+
};
|
|
1552
1599
|
// Attach nested Title and Icon components to CardHeader
|
|
1553
1600
|
const CardHeaderCompound = withSubComponents(CardHeader, {
|
|
1554
1601
|
Title: CardHeaderTitle,
|
|
@@ -2641,7 +2688,7 @@ function useTabsContext() {
|
|
|
2641
2688
|
* </Tabs.Content>
|
|
2642
2689
|
* </Tabs>
|
|
2643
2690
|
*/
|
|
2644
|
-
const TabsComponent = ({ align, size, fullwidth, boxed, toggle, rounded, color, value, onChange, defaultValue = 0, vertical, side, expanded, className, children, ...props }) => {
|
|
2691
|
+
const TabsComponent = ({ align, size, isFullwidth, isFullWidth, fullwidth, boxed, toggle, rounded, color, value, onChange, defaultValue = 0, vertical, side, expanded, className, children, ...props }) => {
|
|
2645
2692
|
warnDeprecatedColorProp('Tabs', color, 'Remove the prop; no replacement exists.');
|
|
2646
2693
|
const { bulmaHelperClasses, rest } = useBulmaClasses({ ...props });
|
|
2647
2694
|
// Controlled vs uncontrolled state
|
|
@@ -2660,7 +2707,7 @@ const TabsComponent = ({ align, size, fullwidth, boxed, toggle, rounded, color,
|
|
|
2660
2707
|
[`is-${align}`]: align,
|
|
2661
2708
|
[`is-${size}`]: size,
|
|
2662
2709
|
[`is-${color}`]: color,
|
|
2663
|
-
'is-fullwidth': fullwidth,
|
|
2710
|
+
'is-fullwidth': isFullwidth ?? isFullWidth ?? fullwidth,
|
|
2664
2711
|
'is-boxed': boxed,
|
|
2665
2712
|
'is-toggle': toggle,
|
|
2666
2713
|
'is-toggle-rounded': rounded,
|
|
@@ -3350,9 +3397,10 @@ const Steps = withSubComponents(StepsComponent, { Step }, 'Steps');
|
|
|
3350
3397
|
* <div>Panel content</div>
|
|
3351
3398
|
* </Sidebar>
|
|
3352
3399
|
*/
|
|
3353
|
-
const SidebarComponent = forwardRef(({ isOpen, onClose, position = 'left', width = '260px', fullWidth
|
|
3400
|
+
const SidebarComponent = forwardRef(({ isOpen, onClose, position = 'left', width = '260px', isFullwidth, fullWidth, overlay = true, overlayClose = true, escapeClose = true, canCancel = true, children, inline = false, className, style, ...props }, ref) => {
|
|
3354
3401
|
const { bulmaHelperClasses, rest } = useBulmaClasses(props);
|
|
3355
3402
|
const sidebarRef = useRef(null);
|
|
3403
|
+
const resolvedFullwidth = isFullwidth ?? fullWidth ?? false;
|
|
3356
3404
|
// Close handler
|
|
3357
3405
|
const handleClose = useCallback(() => {
|
|
3358
3406
|
if (canCancel && onClose) {
|
|
@@ -3419,7 +3467,7 @@ const SidebarComponent = forwardRef(({ isOpen, onClose, position = 'left', width
|
|
|
3419
3467
|
const sidebarClasses = usePrefixedClassNames('sidebar', {
|
|
3420
3468
|
'is-active': isOpen,
|
|
3421
3469
|
[`is-${position}`]: position,
|
|
3422
|
-
'is-fullwidth':
|
|
3470
|
+
'is-fullwidth': resolvedFullwidth,
|
|
3423
3471
|
});
|
|
3424
3472
|
const backgroundClass = usePrefixedClassNames('sidebar-background', {
|
|
3425
3473
|
'is-active': isOpen,
|
|
@@ -3429,7 +3477,7 @@ const SidebarComponent = forwardRef(({ isOpen, onClose, position = 'left', width
|
|
|
3429
3477
|
// Custom style for width
|
|
3430
3478
|
const sidebarStyle = {
|
|
3431
3479
|
...style,
|
|
3432
|
-
'--bulma-sidebar-width':
|
|
3480
|
+
'--bulma-sidebar-width': resolvedFullwidth ? '100%' : width,
|
|
3433
3481
|
};
|
|
3434
3482
|
const sidebarContent = (jsxs(Fragment, { children: [overlay && (jsx("div", { className: backgroundClass, onClick: handleOverlayClick, "aria-hidden": "true" })), jsx("aside", { ref: combinedRef, className: combinedClasses, style: sidebarStyle, role: "dialog", "aria-modal": overlay ? 'true' : undefined, "aria-hidden": !isOpen, tabIndex: -1, ...rest, children: jsx("div", { className: contentClass, children: children }) })] }));
|
|
3435
3483
|
if (inline) {
|
|
@@ -3997,7 +4045,7 @@ const validButtonColors = [...validColors, 'text', 'ghost'];
|
|
|
3997
4045
|
* @returns {JSX.Element} The rendered button or anchor element.
|
|
3998
4046
|
* @see {@link https://bulma.io/documentation/elements/button/ | Bulma Button documentation}
|
|
3999
4047
|
*/
|
|
4000
|
-
const Button = ({ color, size, isLight, isRounded, isLoading, isStatic, isFullWidth, isOutlined, isInverted, isFocused, isActive, isHovered, isDisabled, className, children, textColor, bgColor, as: Component = 'button', href, onClick, target, rel, ...props }) => {
|
|
4048
|
+
const Button = ({ color, size, isLight, isRounded, isLoading, isStatic, isFullwidth, isFullWidth, isOutlined, isInverted, isFocused, isActive, isHovered, isDisabled, className, children, textColor, bgColor, as: Component = 'button', href, onClick, target, rel, ...props }) => {
|
|
4001
4049
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
4002
4050
|
color: textColor,
|
|
4003
4051
|
backgroundColor: bgColor,
|
|
@@ -4018,7 +4066,7 @@ const Button = ({ color, size, isLight, isRounded, isLoading, isStatic, isFullWi
|
|
|
4018
4066
|
'is-focused': isFocused,
|
|
4019
4067
|
'is-active': isActive,
|
|
4020
4068
|
'is-inverted': isInverted,
|
|
4021
|
-
'is-fullwidth': isFullWidth,
|
|
4069
|
+
'is-fullwidth': isFullwidth ?? isFullWidth,
|
|
4022
4070
|
});
|
|
4023
4071
|
// Combine prefixed Bulma classes with unprefixed user className and prefixed helper classes
|
|
4024
4072
|
const buttonClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
@@ -5234,8 +5282,11 @@ const SubTitle = ({ className, size, as = 'h1', hasSkeleton, textColor, bgColor,
|
|
|
5234
5282
|
});
|
|
5235
5283
|
// Validate 'as' prop at runtime
|
|
5236
5284
|
const element = validSubTitleElements.includes(as) ? as : 'h1';
|
|
5237
|
-
// Validate 'size' prop at runtime
|
|
5238
|
-
const
|
|
5285
|
+
// Validate 'size' prop at runtime (numeric sizes normalize to strings)
|
|
5286
|
+
const normalized = size == null ? undefined : String(size);
|
|
5287
|
+
const validSize = normalized && validSubTitleSizes.includes(normalized)
|
|
5288
|
+
? normalized
|
|
5289
|
+
: undefined;
|
|
5239
5290
|
const bulmaClasses = usePrefixedClassNames('subtitle', {
|
|
5240
5291
|
[`is-${validSize}`]: validSize,
|
|
5241
5292
|
'has-skeleton': hasSkeleton,
|
|
@@ -5395,7 +5446,7 @@ const Th = ({ className, isAligned, width, color, children, ...props }) => {
|
|
|
5395
5446
|
* @returns {JSX.Element} The rendered table element.
|
|
5396
5447
|
* @see {@link https://bulma.io/documentation/elements/table/ | Bulma Table documentation}
|
|
5397
5448
|
*/
|
|
5398
|
-
const TableComponent = ({ className, isBordered, isStriped, isNarrow, isHoverable, isFullwidth, isResponsive, children, ...props }) => {
|
|
5449
|
+
const TableComponent = ({ className, isBordered, isStriped, isNarrow, isHoverable, isFullwidth, isFullWidth, isResponsive, children, ...props }) => {
|
|
5399
5450
|
/**
|
|
5400
5451
|
* Generates Bulma helper classes and separates out remaining props.
|
|
5401
5452
|
*/
|
|
@@ -5405,7 +5456,7 @@ const TableComponent = ({ className, isBordered, isStriped, isNarrow, isHoverabl
|
|
|
5405
5456
|
'is-striped': isStriped,
|
|
5406
5457
|
'is-narrow': isNarrow,
|
|
5407
5458
|
'is-hoverable': isHoverable,
|
|
5408
|
-
'is-fullwidth': isFullwidth,
|
|
5459
|
+
'is-fullwidth': isFullwidth ?? isFullWidth,
|
|
5409
5460
|
});
|
|
5410
5461
|
const containerClass = usePrefixedClassNames('table-container');
|
|
5411
5462
|
const tableClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
@@ -5445,7 +5496,7 @@ const validTagSizes = ['normal', 'medium', 'large'];
|
|
|
5445
5496
|
* @returns {JSX.Element} The rendered tag element.
|
|
5446
5497
|
* @see {@link https://bulma.io/documentation/elements/tag/ | Bulma Tag documentation}
|
|
5447
5498
|
*/
|
|
5448
|
-
const Tag = ({ className, color, size, isRounded, isDelete, isHoverable, onDelete, children, ...props }) => {
|
|
5499
|
+
const Tag = ({ className, color, size, isLight, isRounded, isDelete, isHoverable, onDelete, children, ...props }) => {
|
|
5449
5500
|
/**
|
|
5450
5501
|
* Generates Bulma helper classes and separates out remaining props.
|
|
5451
5502
|
*/
|
|
@@ -5453,6 +5504,7 @@ const Tag = ({ className, color, size, isRounded, isDelete, isHoverable, onDelet
|
|
|
5453
5504
|
const bulmaClasses = usePrefixedClassNames('tag', {
|
|
5454
5505
|
[`is-${color}`]: color && validTagColors.includes(color),
|
|
5455
5506
|
[`is-${size}`]: size && size !== 'normal' && validTagSizes.includes(size),
|
|
5507
|
+
'is-light': isLight,
|
|
5456
5508
|
'is-rounded': isRounded,
|
|
5457
5509
|
'is-delete': isDelete,
|
|
5458
5510
|
'is-hoverable': isHoverable,
|
|
@@ -5507,8 +5559,11 @@ const Title = ({ className, size, isSpaced, as = 'h1', hasSkeleton, textColor, b
|
|
|
5507
5559
|
});
|
|
5508
5560
|
// Validate 'as' prop at runtime
|
|
5509
5561
|
const element = validTitleElements.includes(as) ? as : 'h1';
|
|
5510
|
-
// Validate 'size' prop at runtime
|
|
5511
|
-
const
|
|
5562
|
+
// Validate 'size' prop at runtime (numeric sizes normalize to strings)
|
|
5563
|
+
const normalized = size == null ? undefined : String(size);
|
|
5564
|
+
const validSize = normalized && validTitleSizes.includes(normalized)
|
|
5565
|
+
? normalized
|
|
5566
|
+
: undefined;
|
|
5512
5567
|
const bulmaClasses = usePrefixedClassNames('title', {
|
|
5513
5568
|
[`is-${validSize}`]: validSize,
|
|
5514
5569
|
'is-spaced': isSpaced,
|
|
@@ -5991,7 +6046,7 @@ const Checkboxes = withSubComponents(CheckboxesComponent, { Checkbox }, 'Checkbo
|
|
|
5991
6046
|
*/
|
|
5992
6047
|
const File = forwardRef(({
|
|
5993
6048
|
// Field props
|
|
5994
|
-
label, labelSize, labelProps, horizontal, message, messageColor, fieldClassName, color, size, isBoxed, isFullwidth, isRight, isCentered, hasName, buttonLabel, iconLeft, iconRight, className, inputClassName, fileName, ...props }, ref) => {
|
|
6049
|
+
label, labelSize, labelProps, horizontal, message, messageColor, fieldClassName, color, size, isBoxed, isFullwidth, isFullWidth, isRight, isCentered, hasName, buttonLabel, iconLeft, iconRight, className, inputClassName, fileName, ...props }, ref) => {
|
|
5995
6050
|
const insideField = useInsideField();
|
|
5996
6051
|
const { controlId, fieldLabelProps } = useAutoLabelId({
|
|
5997
6052
|
label,
|
|
@@ -6020,7 +6075,7 @@ label, labelSize, labelProps, horizontal, message, messageColor, fieldClassName,
|
|
|
6020
6075
|
[`is-${color}`]: !!color,
|
|
6021
6076
|
[`is-${size}`]: !!size,
|
|
6022
6077
|
'is-boxed': isBoxed,
|
|
6023
|
-
'is-fullwidth': isFullwidth,
|
|
6078
|
+
'is-fullwidth': isFullwidth ?? isFullWidth,
|
|
6024
6079
|
'has-name': hasName,
|
|
6025
6080
|
});
|
|
6026
6081
|
const fileClass = classNames(mainClass, bulmaHelperClasses, alignmentClass, className);
|
|
@@ -6861,6 +6916,8 @@ label, labelSize, labelProps, horizontal, message, messageColor, fieldClassName,
|
|
|
6861
6916
|
return (jsxs(Fragment, { children: [numberinputElement, messageEl] }));
|
|
6862
6917
|
});
|
|
6863
6918
|
Numberinput.displayName = 'Numberinput';
|
|
6919
|
+
/** @deprecated Use `Numberinput` — same component. */
|
|
6920
|
+
const NumberInput = Numberinput;
|
|
6864
6921
|
|
|
6865
6922
|
/**
|
|
6866
6923
|
* Default star icon component.
|
|
@@ -7688,6 +7745,8 @@ label, labelSize, labelProps, horizontal, message, messageColor, fieldClassName,
|
|
|
7688
7745
|
return (jsxs(Fragment, { children: [taginputElement, messageEl] }));
|
|
7689
7746
|
});
|
|
7690
7747
|
Taginput.displayName = 'Taginput';
|
|
7748
|
+
/** @deprecated Use `Taginput` — same component. */
|
|
7749
|
+
const TagInput = Taginput;
|
|
7691
7750
|
|
|
7692
7751
|
/**
|
|
7693
7752
|
* Bulma Input component with full Bulma helper class support.
|
|
@@ -7728,7 +7787,7 @@ InputBase.displayName = 'InputBase';
|
|
|
7728
7787
|
* @returns {JSX.Element} The rendered select element.
|
|
7729
7788
|
* @see {@link https://bulma.io/documentation/form/select/ | Bulma Select documentation}
|
|
7730
7789
|
*/
|
|
7731
|
-
const SelectBase = forwardRef(({ color, size, isRounded, isLoading, isActive, isHovered, isFocused, isFullwidth, className, disabled, children, multiple, multipleSize, ...props }, ref) => {
|
|
7790
|
+
const SelectBase = forwardRef(({ color, size, isRounded, isLoading, isActive, isHovered, isFocused, isFullwidth, isFullWidth, className, disabled, children, multiple, multipleSize, ...props }, ref) => {
|
|
7732
7791
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
7733
7792
|
color,
|
|
7734
7793
|
...props,
|
|
@@ -7741,7 +7800,7 @@ const SelectBase = forwardRef(({ color, size, isRounded, isLoading, isActive, is
|
|
|
7741
7800
|
'is-loading': isLoading,
|
|
7742
7801
|
'is-active': isActive,
|
|
7743
7802
|
'is-multiple': !!multiple,
|
|
7744
|
-
'is-fullwidth': isFullwidth,
|
|
7803
|
+
'is-fullwidth': isFullwidth ?? isFullWidth,
|
|
7745
7804
|
});
|
|
7746
7805
|
const selectClass = classNames(mainClass, bulmaHelperClasses, className);
|
|
7747
7806
|
// is-hovered / is-focused belong on the inner <select> element, not the wrapper.
|
|
@@ -12118,5 +12177,5 @@ const Section = ({ size, className, children, color, bgColor, textColor, ...prop
|
|
|
12118
12177
|
return (jsx("section", { className: sectionClasses, ...rest, children: children }));
|
|
12119
12178
|
};
|
|
12120
12179
|
|
|
12121
|
-
export { Autocomplete, Avatar, Avatars, Badge, Block, Box, Breadcrumb, Button, Buttons, Card, Carousel, CarouselItem, Cell, Checkbox, Checkboxes, Code, Collapse, Column, Columns, ConfigProvider, Container, Content, Control, DateInput, DateInputBase, DateTimeInput, DateTimeInputBase, Delete, Dialog, DialogContainer, Divider, Dropdown, DropdownDivider, DropdownItem, Emphasis, Field, FieldBody, FieldLabel, Figure, File, Footer, Grid, Hero, HeroBody, HeroFoot, HeroHead, Icon, IconText, Image, Input, InputBase, Level, LevelItem, LevelLeft, LevelRight, Link, LinkButton, ListItem, Loading, Media, MediaContent, MediaLeft, MediaRight, Menu, MenuItem, MenuLabel, MenuList, Message, Modal, Navbar, NavbarBrand, NavbarBurger, NavbarDivider, NavbarDropdown, NavbarDropdownMenu, NavbarEnd, NavbarItem, NavbarLink, NavbarMenu, NavbarStart, Notification, NotificationContainer, Numberinput, OrderedList, Pagination, PaginationEllipsis, PaginationLink, PaginationList, PaginationNext, PaginationPrevious, Panel, PanelBlock, PanelButtonBlock, PanelCheckboxBlock, PanelHeading, PanelIcon, PanelInputBlock, PanelTabs, Paragraph, Pre, Progress, Radio, Radios, Rate, Reveal, Section, Select, SelectBase, Sidebar, Skeleton, Slider, Span, Step, Steps, Strong, SubTitle, Switch, Tab, TabContentItem, TabItem, TabList, Table, Tabs, TabsContent, Tag, Taginput, Tags, Tbody, Td, TextArea, TextAreaBase, Tfoot, Th, Thead, Theme, TimeInput, TimeInputBase, Title, Toast, ToastContainer, Tooltip, Tr, UnorderedList, __test_exports__, checkboxColors, checkboxSizes, classNames, createPrefixedClassNames, dialog, isBrowser$1 as isBrowser, notification, prefixedClassNames, radioColors, radioSizes, switchColors, switchSizes, toast, useBulmaClasses, useClassPrefix, useColorClasses, useConfig, useFlexboxClasses, useIconLibrary, useInsideControl, useInsideField, useOtherClasses, usePrefixedClass, usePrefixedClassNames, useSpacingClasses, useTypographyClasses, useVisibilityClasses, validAlignContents, validAlignItems, validAlignSelfs, validAlignments$1 as validAlignments, validColorShades, validColors, validDisplays, validFlexDirections, validFlexGrowShrink, validFlexWraps, validFontFamilies, validJustifyContents, validSizes$1 as validSizes, validTableColors, validTextSizes, validTextTransforms, validTextWeights, validViewports, validVisibilities };
|
|
12180
|
+
export { Autocomplete, Avatar, Avatars, Badge, Block, Box, Breadcrumb, Button, Buttons, Card, Carousel, CarouselItem, Cell, Checkbox, Checkboxes, Code, Collapse, Column, Columns, ConfigProvider, Container, Content, Control, DateInput, DateInputBase, DateTimeInput, DateTimeInputBase, Delete, Dialog, DialogContainer, Divider, Dropdown, DropdownDivider, DropdownItem, Emphasis, Field, FieldBody, FieldLabel, Figure, File, Footer, Grid, Hero, HeroBody, HeroFoot, HeroHead, Icon, IconText, Image, Input, InputBase, Level, LevelItem, LevelLeft, LevelRight, Link, LinkButton, ListItem, Loading, Media, MediaContent, MediaLeft, MediaRight, Menu, MenuItem, MenuLabel, MenuList, Message, Modal, Navbar, NavbarBrand, NavbarBurger, NavbarDivider, NavbarDropdown, NavbarDropdownMenu, NavbarEnd, NavbarItem, NavbarLink, NavbarMenu, NavbarStart, Notification, NotificationContainer, NumberInput, Numberinput, OrderedList, Pagination, PaginationEllipsis, PaginationLink, PaginationList, PaginationNext, PaginationPrevious, Panel, PanelBlock, PanelButtonBlock, PanelCheckboxBlock, PanelHeading, PanelIcon, PanelInputBlock, PanelTabs, Paragraph, Pre, Progress, Radio, Radios, Rate, Reveal, Section, Select, SelectBase, Sidebar, Skeleton, Slider, Span, Step, Steps, Strong, SubTitle, Switch, Tab, TabContentItem, TabItem, TabList, Table, Tabs, TabsContent, Tag, TagInput, Taginput, Tags, Tbody, Td, TextArea, TextAreaBase, Tfoot, Th, Thead, Theme, TimeInput, TimeInputBase, Title, Toast, ToastContainer, Tooltip, Tr, UnorderedList, __test_exports__, checkboxColors, checkboxSizes, classNames, createPrefixedClassNames, dialog, isBrowser$1 as isBrowser, notification, prefixedClassNames, radioColors, radioSizes, switchColors, switchSizes, toast, useBulmaClasses, useClassPrefix, useColorClasses, useConfig, useFlexboxClasses, useIconLibrary, useInsideControl, useInsideField, useOtherClasses, usePrefixedClass, usePrefixedClassNames, useSpacingClasses, useTypographyClasses, useVisibilityClasses, validAlignContents, validAlignItems, validAlignSelfs, validAlignments$1 as validAlignments, validColorShades, validColors, validDisplays, validFlexDirections, validFlexGrowShrink, validFlexWraps, validFontFamilies, validJustifyContents, validSizes$1 as validSizes, validTableColors, validTextSizes, validTextTransforms, validTextWeights, validViewports, validVisibilities };
|
|
12122
12181
|
//# sourceMappingURL=index.esm.js.map
|