@moving-walls/design-system 1.0.14 → 1.0.16
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/components/ui/Form.d.ts +2 -1
- package/dist/components/ui/MetricCard.d.ts +16 -0
- package/dist/components/ui/ProgressBar.d.ts +18 -0
- package/dist/components/ui/index.d.ts +4 -0
- package/dist/index.esm.js +365 -228
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +366 -227
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -37568,7 +37568,8 @@ function Form(_ref) {
|
|
|
37568
37568
|
_ref$size = _ref.size,
|
|
37569
37569
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
37570
37570
|
_ref$layout = _ref.layout,
|
|
37571
|
-
layout = _ref$layout === void 0 ? 'vertical' : _ref$layout
|
|
37571
|
+
layout = _ref$layout === void 0 ? 'vertical' : _ref$layout,
|
|
37572
|
+
id = _ref.id;
|
|
37572
37573
|
var handleSubmit = function handleSubmit(event) {
|
|
37573
37574
|
if (onSubmit) {
|
|
37574
37575
|
event.preventDefault();
|
|
@@ -37581,6 +37582,7 @@ function Form(_ref) {
|
|
|
37581
37582
|
size: size
|
|
37582
37583
|
},
|
|
37583
37584
|
children: jsx("form", {
|
|
37585
|
+
id: id,
|
|
37584
37586
|
onSubmit: handleSubmit,
|
|
37585
37587
|
className: cn$m(formLayouts[layout], formSizes[size], className),
|
|
37586
37588
|
children: children
|
|
@@ -40477,6 +40479,338 @@ function CardDescription(_a) {
|
|
|
40477
40479
|
}));
|
|
40478
40480
|
}
|
|
40479
40481
|
|
|
40482
|
+
function cn$f() {
|
|
40483
|
+
for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
40484
|
+
classes[_key] = arguments[_key];
|
|
40485
|
+
}
|
|
40486
|
+
return classes.filter(Boolean).join(' ');
|
|
40487
|
+
}
|
|
40488
|
+
var containerSizes = {
|
|
40489
|
+
xs: 'max-w-xs',
|
|
40490
|
+
// 320px
|
|
40491
|
+
sm: 'max-w-sm',
|
|
40492
|
+
// 384px
|
|
40493
|
+
md: 'max-w-md',
|
|
40494
|
+
// 448px
|
|
40495
|
+
lg: 'max-w-lg',
|
|
40496
|
+
// 512px
|
|
40497
|
+
xl: 'max-w-xl',
|
|
40498
|
+
// 576px
|
|
40499
|
+
'2xl': 'max-w-2xl',
|
|
40500
|
+
// 672px
|
|
40501
|
+
full: 'max-w-full'
|
|
40502
|
+
};
|
|
40503
|
+
var containerPadding = {
|
|
40504
|
+
none: '',
|
|
40505
|
+
sm: 'px-4',
|
|
40506
|
+
md: 'px-6',
|
|
40507
|
+
lg: 'px-8',
|
|
40508
|
+
xl: 'px-12'
|
|
40509
|
+
};
|
|
40510
|
+
function Container(_ref) {
|
|
40511
|
+
var children = _ref.children,
|
|
40512
|
+
_ref$size = _ref.size,
|
|
40513
|
+
size = _ref$size === void 0 ? 'full' : _ref$size,
|
|
40514
|
+
_ref$padding = _ref.padding,
|
|
40515
|
+
padding = _ref$padding === void 0 ? 'md' : _ref$padding,
|
|
40516
|
+
_ref$centered = _ref.centered,
|
|
40517
|
+
centered = _ref$centered === void 0 ? true : _ref$centered,
|
|
40518
|
+
className = _ref.className,
|
|
40519
|
+
_ref$as = _ref.as,
|
|
40520
|
+
Component = _ref$as === void 0 ? 'div' : _ref$as;
|
|
40521
|
+
return jsx(Component, {
|
|
40522
|
+
className: cn$f(containerSizes[size], containerPadding[padding], centered && 'mx-auto', className),
|
|
40523
|
+
children: children
|
|
40524
|
+
});
|
|
40525
|
+
}
|
|
40526
|
+
function ResponsiveContainer(_ref2) {
|
|
40527
|
+
var children = _ref2.children,
|
|
40528
|
+
_ref2$breakpoints = _ref2.breakpoints,
|
|
40529
|
+
breakpoints = _ref2$breakpoints === void 0 ? {
|
|
40530
|
+
sm: 'sm',
|
|
40531
|
+
md: 'md',
|
|
40532
|
+
lg: 'lg',
|
|
40533
|
+
xl: 'xl',
|
|
40534
|
+
'2xl': '2xl'
|
|
40535
|
+
} : _ref2$breakpoints,
|
|
40536
|
+
_ref2$padding = _ref2.padding,
|
|
40537
|
+
padding = _ref2$padding === void 0 ? 'md' : _ref2$padding,
|
|
40538
|
+
_ref2$centered = _ref2.centered,
|
|
40539
|
+
centered = _ref2$centered === void 0 ? true : _ref2$centered,
|
|
40540
|
+
className = _ref2.className,
|
|
40541
|
+
_ref2$as = _ref2.as,
|
|
40542
|
+
Component = _ref2$as === void 0 ? 'div' : _ref2$as;
|
|
40543
|
+
var responsiveClasses = Object.entries(breakpoints).map(function (_ref3) {
|
|
40544
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
40545
|
+
breakpoint = _ref4[0],
|
|
40546
|
+
size = _ref4[1];
|
|
40547
|
+
if (breakpoint === 'sm') return containerSizes[size];
|
|
40548
|
+
return "".concat(breakpoint, ":").concat(containerSizes[size]);
|
|
40549
|
+
}).join(' ');
|
|
40550
|
+
return jsx(Component, {
|
|
40551
|
+
className: cn$f(responsiveClasses, containerPadding[padding], centered && 'mx-auto', className),
|
|
40552
|
+
children: children
|
|
40553
|
+
});
|
|
40554
|
+
}
|
|
40555
|
+
function GridContainer(_ref5) {
|
|
40556
|
+
var children = _ref5.children,
|
|
40557
|
+
_ref5$cols = _ref5.cols,
|
|
40558
|
+
cols = _ref5$cols === void 0 ? 1 : _ref5$cols,
|
|
40559
|
+
_ref5$gap = _ref5.gap,
|
|
40560
|
+
gap = _ref5$gap === void 0 ? 4 : _ref5$gap,
|
|
40561
|
+
className = _ref5.className;
|
|
40562
|
+
var getGridCols = function getGridCols() {
|
|
40563
|
+
if (typeof cols === 'number') {
|
|
40564
|
+
return "grid-cols-".concat(cols);
|
|
40565
|
+
}
|
|
40566
|
+
var classes = [];
|
|
40567
|
+
if (cols.sm) classes.push("grid-cols-".concat(cols.sm));
|
|
40568
|
+
if (cols.md) classes.push("md:grid-cols-".concat(cols.md));
|
|
40569
|
+
if (cols.lg) classes.push("lg:grid-cols-".concat(cols.lg));
|
|
40570
|
+
if (cols.xl) classes.push("xl:grid-cols-".concat(cols.xl));
|
|
40571
|
+
return classes.join(' ');
|
|
40572
|
+
};
|
|
40573
|
+
var getGap = function getGap() {
|
|
40574
|
+
if (typeof gap === 'number') {
|
|
40575
|
+
return "gap-".concat(gap);
|
|
40576
|
+
}
|
|
40577
|
+
var classes = [];
|
|
40578
|
+
if (gap.x) classes.push("gap-x-".concat(gap.x));
|
|
40579
|
+
if (gap.y) classes.push("gap-y-".concat(gap.y));
|
|
40580
|
+
return classes.join(' ');
|
|
40581
|
+
};
|
|
40582
|
+
return jsx("div", {
|
|
40583
|
+
className: cn$f('grid', getGridCols(), getGap(), className),
|
|
40584
|
+
children: children
|
|
40585
|
+
});
|
|
40586
|
+
}
|
|
40587
|
+
function FlexContainer(_ref6) {
|
|
40588
|
+
var children = _ref6.children,
|
|
40589
|
+
_ref6$direction = _ref6.direction,
|
|
40590
|
+
direction = _ref6$direction === void 0 ? 'row' : _ref6$direction,
|
|
40591
|
+
_ref6$wrap = _ref6.wrap,
|
|
40592
|
+
wrap = _ref6$wrap === void 0 ? 'nowrap' : _ref6$wrap,
|
|
40593
|
+
_ref6$align = _ref6.align,
|
|
40594
|
+
align = _ref6$align === void 0 ? 'start' : _ref6$align,
|
|
40595
|
+
_ref6$justify = _ref6.justify,
|
|
40596
|
+
justify = _ref6$justify === void 0 ? 'start' : _ref6$justify,
|
|
40597
|
+
_ref6$gap = _ref6.gap,
|
|
40598
|
+
gap = _ref6$gap === void 0 ? 0 : _ref6$gap,
|
|
40599
|
+
className = _ref6.className;
|
|
40600
|
+
var directionClasses = {
|
|
40601
|
+
'row': 'flex-row',
|
|
40602
|
+
'row-reverse': 'flex-row-reverse',
|
|
40603
|
+
'col': 'flex-col',
|
|
40604
|
+
'col-reverse': 'flex-col-reverse'
|
|
40605
|
+
};
|
|
40606
|
+
var wrapClasses = {
|
|
40607
|
+
'wrap': 'flex-wrap',
|
|
40608
|
+
'wrap-reverse': 'flex-wrap-reverse',
|
|
40609
|
+
'nowrap': 'flex-nowrap'
|
|
40610
|
+
};
|
|
40611
|
+
var alignClasses = {
|
|
40612
|
+
'start': 'items-start',
|
|
40613
|
+
'end': 'items-end',
|
|
40614
|
+
'center': 'items-center',
|
|
40615
|
+
'baseline': 'items-baseline',
|
|
40616
|
+
'stretch': 'items-stretch'
|
|
40617
|
+
};
|
|
40618
|
+
var justifyClasses = {
|
|
40619
|
+
'start': 'justify-start',
|
|
40620
|
+
'end': 'justify-end',
|
|
40621
|
+
'center': 'justify-center',
|
|
40622
|
+
'between': 'justify-between',
|
|
40623
|
+
'around': 'justify-around',
|
|
40624
|
+
'evenly': 'justify-evenly'
|
|
40625
|
+
};
|
|
40626
|
+
return jsx("div", {
|
|
40627
|
+
className: cn$f('flex', directionClasses[direction], wrapClasses[wrap], alignClasses[align], justifyClasses[justify], gap > 0 && "gap-".concat(gap), className),
|
|
40628
|
+
children: children
|
|
40629
|
+
});
|
|
40630
|
+
}
|
|
40631
|
+
function Stack(_ref7) {
|
|
40632
|
+
var children = _ref7.children,
|
|
40633
|
+
_ref7$spacing = _ref7.spacing,
|
|
40634
|
+
spacing = _ref7$spacing === void 0 ? 4 : _ref7$spacing,
|
|
40635
|
+
divider = _ref7.divider,
|
|
40636
|
+
className = _ref7.className;
|
|
40637
|
+
var childrenArray = React__default.Children.toArray(children);
|
|
40638
|
+
return jsx("div", {
|
|
40639
|
+
className: cn$f("space-y-".concat(spacing), className),
|
|
40640
|
+
children: childrenArray.map(function (child, index) {
|
|
40641
|
+
return jsxs(React__default.Fragment, {
|
|
40642
|
+
children: [child, divider && index < childrenArray.length - 1 && jsx("div", {
|
|
40643
|
+
className: "flex justify-center",
|
|
40644
|
+
children: divider
|
|
40645
|
+
})]
|
|
40646
|
+
}, index);
|
|
40647
|
+
})
|
|
40648
|
+
});
|
|
40649
|
+
}
|
|
40650
|
+
function HStack(_ref8) {
|
|
40651
|
+
var children = _ref8.children,
|
|
40652
|
+
_ref8$spacing = _ref8.spacing,
|
|
40653
|
+
spacing = _ref8$spacing === void 0 ? 4 : _ref8$spacing,
|
|
40654
|
+
divider = _ref8.divider,
|
|
40655
|
+
_ref8$align = _ref8.align,
|
|
40656
|
+
align = _ref8$align === void 0 ? 'center' : _ref8$align,
|
|
40657
|
+
className = _ref8.className;
|
|
40658
|
+
var childrenArray = React__default.Children.toArray(children);
|
|
40659
|
+
var alignClasses = {
|
|
40660
|
+
'start': 'items-start',
|
|
40661
|
+
'end': 'items-end',
|
|
40662
|
+
'center': 'items-center',
|
|
40663
|
+
'baseline': 'items-baseline',
|
|
40664
|
+
'stretch': 'items-stretch'
|
|
40665
|
+
};
|
|
40666
|
+
return jsx("div", {
|
|
40667
|
+
className: cn$f('flex', alignClasses[align], "gap-".concat(spacing), className),
|
|
40668
|
+
children: childrenArray.map(function (child, index) {
|
|
40669
|
+
return jsxs(React__default.Fragment, {
|
|
40670
|
+
children: [child, divider && index < childrenArray.length - 1 && jsx("div", {
|
|
40671
|
+
className: "flex items-center",
|
|
40672
|
+
children: divider
|
|
40673
|
+
})]
|
|
40674
|
+
}, index);
|
|
40675
|
+
})
|
|
40676
|
+
});
|
|
40677
|
+
}
|
|
40678
|
+
|
|
40679
|
+
function MetricCard(_ref) {
|
|
40680
|
+
var title = _ref.title,
|
|
40681
|
+
value = _ref.value,
|
|
40682
|
+
description = _ref.description,
|
|
40683
|
+
icon = _ref.icon,
|
|
40684
|
+
change = _ref.change,
|
|
40685
|
+
_ref$showTrendIcon = _ref.showTrendIcon,
|
|
40686
|
+
showTrendIcon = _ref$showTrendIcon === void 0 ? false : _ref$showTrendIcon,
|
|
40687
|
+
centerY = _ref.centerY,
|
|
40688
|
+
className = _ref.className;
|
|
40689
|
+
var shouldCenterY = centerY !== null && centerY !== void 0 ? centerY : false;
|
|
40690
|
+
var showTrend = (change === null || change === void 0 ? void 0 : change.value) != null && change.value !== '';
|
|
40691
|
+
var showIcon = showTrendIcon && showTrend;
|
|
40692
|
+
return jsx(Card, {
|
|
40693
|
+
className: clsx('flex-1 flex flex-col gap-2 rounded-md border border-mw-neutral-200 bg-white dark:bg-mw-neutral-900 dark:border-mw-neutral-700 p-4 min-w-0', className),
|
|
40694
|
+
children: jsxs(FlexContainer, {
|
|
40695
|
+
direction: icon ? 'row' : 'col',
|
|
40696
|
+
align: icon ? 'center' : undefined,
|
|
40697
|
+
gap: 3,
|
|
40698
|
+
className: clsx(shouldCenterY && 'h-full justify-center'),
|
|
40699
|
+
children: [icon && jsx("div", {
|
|
40700
|
+
className: "shrink-0",
|
|
40701
|
+
children: icon
|
|
40702
|
+
}), jsxs(FlexContainer, {
|
|
40703
|
+
direction: "col",
|
|
40704
|
+
gap: 2,
|
|
40705
|
+
children: [jsx("p", {
|
|
40706
|
+
className: "text-sm font-normal text-mw-neutral-500 dark:text-mw-neutral-400",
|
|
40707
|
+
children: title
|
|
40708
|
+
}), jsxs(FlexContainer, {
|
|
40709
|
+
direction: "col",
|
|
40710
|
+
gap: 1,
|
|
40711
|
+
children: [jsx("p", {
|
|
40712
|
+
className: "text-lg font-semibold text-mw-primary-600 dark:text-mw-primary-400",
|
|
40713
|
+
children: value
|
|
40714
|
+
}), description && jsx("p", {
|
|
40715
|
+
className: "text-xs font-normal text-mw-neutral-400 dark:text-mw-neutral-500",
|
|
40716
|
+
children: description
|
|
40717
|
+
}), showTrend && change && jsxs(FlexContainer, {
|
|
40718
|
+
direction: "row",
|
|
40719
|
+
align: "center",
|
|
40720
|
+
gap: 1,
|
|
40721
|
+
children: [showIcon && change.isPositive && jsx(TrendingUp, {
|
|
40722
|
+
className: "w-4 h-4 text-success-600 flex-shrink-0"
|
|
40723
|
+
}), showIcon && !change.isPositive && jsx(TrendingDown, {
|
|
40724
|
+
className: "w-4 h-4 text-error-500 flex-shrink-0"
|
|
40725
|
+
}), jsx("p", {
|
|
40726
|
+
className: clsx('text-xs font-normal', change.isPositive ? 'text-success-600 dark:text-success-400' : 'text-error-500 dark:text-error-400'),
|
|
40727
|
+
children: change.value
|
|
40728
|
+
})]
|
|
40729
|
+
})]
|
|
40730
|
+
})]
|
|
40731
|
+
})]
|
|
40732
|
+
})
|
|
40733
|
+
});
|
|
40734
|
+
}
|
|
40735
|
+
|
|
40736
|
+
var sizeConfig = {
|
|
40737
|
+
small: {
|
|
40738
|
+
track: 'h-1.5',
|
|
40739
|
+
fill: 'h-1.5'
|
|
40740
|
+
},
|
|
40741
|
+
medium: {
|
|
40742
|
+
track: 'h-2',
|
|
40743
|
+
fill: 'h-2'
|
|
40744
|
+
}
|
|
40745
|
+
};
|
|
40746
|
+
var colorConfig = {
|
|
40747
|
+
primary: {
|
|
40748
|
+
fill: 'bg-mw-primary-600',
|
|
40749
|
+
disabled: 'bg-mw-neutral-200'
|
|
40750
|
+
},
|
|
40751
|
+
success: {
|
|
40752
|
+
fill: 'bg-success-500',
|
|
40753
|
+
disabled: 'bg-mw-neutral-200'
|
|
40754
|
+
},
|
|
40755
|
+
danger: {
|
|
40756
|
+
fill: 'bg-error-500',
|
|
40757
|
+
disabled: 'bg-mw-neutral-200'
|
|
40758
|
+
},
|
|
40759
|
+
warning: {
|
|
40760
|
+
fill: 'bg-warning-500',
|
|
40761
|
+
disabled: 'bg-mw-neutral-200'
|
|
40762
|
+
},
|
|
40763
|
+
neutral: {
|
|
40764
|
+
fill: 'bg-mw-neutral-500',
|
|
40765
|
+
disabled: 'bg-mw-neutral-200'
|
|
40766
|
+
}
|
|
40767
|
+
};
|
|
40768
|
+
var ProgressBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
40769
|
+
var value = _ref.value,
|
|
40770
|
+
_ref$size = _ref.size,
|
|
40771
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
40772
|
+
_ref$color = _ref.color,
|
|
40773
|
+
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
40774
|
+
_ref$disabled = _ref.disabled,
|
|
40775
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
40776
|
+
_ref$showLabel = _ref.showLabel,
|
|
40777
|
+
showLabel = _ref$showLabel === void 0 ? true : _ref$showLabel,
|
|
40778
|
+
className = _ref.className,
|
|
40779
|
+
ariaLabel = _ref.ariaLabel;
|
|
40780
|
+
var clamped = Math.min(Math.max(value, 0), 100);
|
|
40781
|
+
var _sizeConfig$size = sizeConfig[size],
|
|
40782
|
+
track = _sizeConfig$size.track,
|
|
40783
|
+
fill = _sizeConfig$size.fill;
|
|
40784
|
+
var _colorConfig$color = colorConfig[color],
|
|
40785
|
+
fillColor = _colorConfig$color.fill,
|
|
40786
|
+
disabledColor = _colorConfig$color.disabled;
|
|
40787
|
+
return jsxs("div", {
|
|
40788
|
+
ref: ref,
|
|
40789
|
+
className: clsx('flex items-center gap-2 w-full', disabled && 'opacity-50', className),
|
|
40790
|
+
role: "progressbar",
|
|
40791
|
+
"aria-valuenow": clamped,
|
|
40792
|
+
"aria-valuemin": 0,
|
|
40793
|
+
"aria-valuemax": 100,
|
|
40794
|
+
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : "Progress: ".concat(clamped, "%"),
|
|
40795
|
+
children: [jsx("div", {
|
|
40796
|
+
className: "flex-1 min-w-0",
|
|
40797
|
+
children: jsx("div", {
|
|
40798
|
+
className: clsx('w-full rounded-full border border-mw-neutral-200 dark:border-mw-neutral-700', track, 'bg-mw-neutral-100 dark:bg-mw-neutral-800'),
|
|
40799
|
+
children: jsx("div", {
|
|
40800
|
+
className: clsx('rounded-full transition-all duration-300 ease-in-out', fill, disabled ? disabledColor : fillColor),
|
|
40801
|
+
style: {
|
|
40802
|
+
width: "".concat(clamped, "%")
|
|
40803
|
+
}
|
|
40804
|
+
})
|
|
40805
|
+
})
|
|
40806
|
+
}), showLabel && jsxs("span", {
|
|
40807
|
+
className: "shrink-0 text-sm font-normal text-mw-neutral-500 dark:text-mw-neutral-400 tabular-nums w-10 text-right",
|
|
40808
|
+
children: [Math.round(clamped), "%"]
|
|
40809
|
+
})]
|
|
40810
|
+
});
|
|
40811
|
+
});
|
|
40812
|
+
ProgressBar.displayName = 'ProgressBar';
|
|
40813
|
+
|
|
40480
40814
|
var badgeVariants = {
|
|
40481
40815
|
"default": 'bg-mw-primary-500 text-white dark:bg-mw-primary-600 dark:text-white',
|
|
40482
40816
|
primary: 'bg-mw-primary-100 text-mw-primary-500 dark:bg-mw-primary-900/20 dark:text-mw-primary-300',
|
|
@@ -41288,7 +41622,7 @@ var ModalFooter = function ModalFooter(_ref4) {
|
|
|
41288
41622
|
});
|
|
41289
41623
|
};
|
|
41290
41624
|
|
|
41291
|
-
function cn$
|
|
41625
|
+
function cn$e() {
|
|
41292
41626
|
for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
41293
41627
|
classes[_key] = arguments[_key];
|
|
41294
41628
|
}
|
|
@@ -41453,7 +41787,7 @@ function AdvancedTableHeaderCell(_ref) {
|
|
|
41453
41787
|
};
|
|
41454
41788
|
}, [isResizing, column.id, column.minWidth, onResize]);
|
|
41455
41789
|
return jsx("th", {
|
|
41456
|
-
className: cn$
|
|
41790
|
+
className: cn$e('bg-mw-neutral-50 dark:bg-mw-neutral-800 border-b border-mw-neutral-200 dark:border-mw-neutral-700 relative', densityClasses[density], column.align === 'center' && 'text-center', column.align === 'right' && 'text-right', column.sticky === 'left' && 'sticky left-0 z-20', column.sticky === 'right' && 'sticky right-0 z-20', column.pinned && 'bg-mw-primary-50 dark:bg-mw-primary-950/20'),
|
|
41457
41791
|
style: {
|
|
41458
41792
|
width: column.width,
|
|
41459
41793
|
minWidth: column.minWidth,
|
|
@@ -41464,7 +41798,7 @@ function AdvancedTableHeaderCell(_ref) {
|
|
|
41464
41798
|
children: [jsxs("div", {
|
|
41465
41799
|
className: "flex items-center space-x-2 min-w-0 flex-1",
|
|
41466
41800
|
children: [jsx("span", {
|
|
41467
|
-
className: cn$
|
|
41801
|
+
className: cn$e('text-xs font-medium text-mw-neutral-900 dark:text-white uppercase tracking-wider truncate', column.sortable && 'cursor-pointer hover:text-mw-primary-600 dark:hover:text-mw-primary-400 select-none'),
|
|
41468
41802
|
onClick: handleSort,
|
|
41469
41803
|
title: typeof column.header === 'string' ? column.header : column.id,
|
|
41470
41804
|
children: column.header
|
|
@@ -41660,7 +41994,7 @@ function AdvancedTableCell(_ref2) {
|
|
|
41660
41994
|
}
|
|
41661
41995
|
};
|
|
41662
41996
|
return jsx("td", {
|
|
41663
|
-
className: cn$
|
|
41997
|
+
className: cn$e('text-sm text-mw-neutral-900 dark:text-white border-r border-mw-neutral-200 dark:border-mw-neutral-700 last:border-r-0', densityClasses[density], column.align === 'center' && 'text-center', column.align === 'right' && 'text-right', column.sticky === 'left' && 'sticky left-0 z-10 bg-white dark:bg-mw-neutral-900', column.sticky === 'right' && 'sticky right-0 z-10 bg-white dark:bg-mw-neutral-900', onClick && 'cursor-pointer hover:bg-mw-neutral-50 dark:hover:bg-mw-neutral-800'),
|
|
41664
41998
|
onClick: onClick,
|
|
41665
41999
|
children: renderCellContent()
|
|
41666
42000
|
});
|
|
@@ -42185,7 +42519,7 @@ function AdvancedTable(_ref3) {
|
|
|
42185
42519
|
var hasActions = rowActions && rowActions.length > 0;
|
|
42186
42520
|
return jsxs("div", {
|
|
42187
42521
|
ref: tableRef,
|
|
42188
|
-
className: cn$
|
|
42522
|
+
className: cn$e('bg-white dark:bg-mw-neutral-900 border border-mw-neutral-200 dark:border-mw-neutral-700 rounded-lg overflow-hidden', isFullscreen && 'fixed inset-0 z-50 rounded-none', className),
|
|
42189
42523
|
children: [renderToolbar(), jsx(Modal, {
|
|
42190
42524
|
isOpen: showColumnSettings,
|
|
42191
42525
|
onClose: function onClose() {
|
|
@@ -42260,17 +42594,17 @@ function AdvancedTable(_ref3) {
|
|
|
42260
42594
|
})]
|
|
42261
42595
|
})
|
|
42262
42596
|
}), " ", jsx("div", {
|
|
42263
|
-
className: cn$
|
|
42597
|
+
className: cn$e('overflow-auto', stickyHeader && 'max-h-96'),
|
|
42264
42598
|
style: {
|
|
42265
42599
|
maxHeight: maxHeight
|
|
42266
42600
|
},
|
|
42267
42601
|
children: jsxs("table", {
|
|
42268
42602
|
className: "w-full",
|
|
42269
42603
|
children: [jsx("thead", {
|
|
42270
|
-
className: cn$
|
|
42604
|
+
className: cn$e(stickyHeader && 'sticky top-0 z-10'),
|
|
42271
42605
|
children: jsxs("tr", {
|
|
42272
42606
|
children: [hasSelection && jsx("th", {
|
|
42273
|
-
className: cn$
|
|
42607
|
+
className: cn$e('w-12 bg-mw-neutral-50 dark:bg-mw-neutral-800 border-b border-mw-neutral-200 dark:border-mw-neutral-700', internalState.density === 'compact' ? 'px-2 py-1' : internalState.density === 'normal' ? 'px-4 py-2' : 'px-6 py-3'),
|
|
42274
42608
|
children: selection.mode === 'multiple' && jsx("input", {
|
|
42275
42609
|
type: "checkbox",
|
|
42276
42610
|
checked: paginatedData.length > 0 && paginatedData.every(function (row, index) {
|
|
@@ -42289,7 +42623,7 @@ function AdvancedTable(_ref3) {
|
|
|
42289
42623
|
density: internalState.density
|
|
42290
42624
|
}, column.id);
|
|
42291
42625
|
}), hasActions && jsx("th", {
|
|
42292
|
-
className: cn$
|
|
42626
|
+
className: cn$e('w-16 bg-mw-neutral-50 dark:bg-mw-neutral-800 border-b border-mw-neutral-200 dark:border-mw-neutral-700', internalState.density === 'compact' ? 'px-2 py-1' : internalState.density === 'normal' ? 'px-4 py-2' : 'px-6 py-3'),
|
|
42293
42627
|
children: jsx("span", {
|
|
42294
42628
|
className: "sr-only",
|
|
42295
42629
|
children: "Actions"
|
|
@@ -42335,7 +42669,7 @@ function AdvancedTable(_ref3) {
|
|
|
42335
42669
|
var isSelected = selection === null || selection === void 0 ? void 0 : selection.selectedRows.has(rowId);
|
|
42336
42670
|
return jsxs(React__default.Fragment, {
|
|
42337
42671
|
children: [jsxs("tr", {
|
|
42338
|
-
className: cn$
|
|
42672
|
+
className: cn$e('transition-colors', hoverable && 'hover:bg-mw-neutral-50 dark:hover:bg-mw-neutral-800/50', striped && index % 2 === 1 && 'bg-mw-neutral-25 dark:bg-mw-neutral-950/50', isSelected && 'bg-mw-primary-50 dark:bg-mw-primary-950/20', onRowClick && 'cursor-pointer', internalState.density === 'compact' ? 'h-10' : internalState.density === 'normal' ? 'h-12' : 'h-16'),
|
|
42339
42673
|
onClick: function onClick() {
|
|
42340
42674
|
return onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(row, index);
|
|
42341
42675
|
},
|
|
@@ -42346,7 +42680,7 @@ function AdvancedTable(_ref3) {
|
|
|
42346
42680
|
return onRowHover === null || onRowHover === void 0 ? void 0 : onRowHover(row, index);
|
|
42347
42681
|
},
|
|
42348
42682
|
children: [hasSelection && jsx("td", {
|
|
42349
|
-
className: cn$
|
|
42683
|
+
className: cn$e(internalState.density === 'compact' ? 'px-2 py-1' : internalState.density === 'normal' ? 'px-4 py-2' : 'px-6 py-3'),
|
|
42350
42684
|
children: jsx("input", {
|
|
42351
42685
|
type: "checkbox",
|
|
42352
42686
|
checked: isSelected,
|
|
@@ -42367,7 +42701,7 @@ function AdvancedTable(_ref3) {
|
|
|
42367
42701
|
}
|
|
42368
42702
|
}, column.id);
|
|
42369
42703
|
}), hasActions && jsx("td", {
|
|
42370
|
-
className: cn$
|
|
42704
|
+
className: cn$e('text-center', internalState.density === 'compact' ? 'px-2 py-1' : internalState.density === 'normal' ? 'px-4 py-2' : 'px-6 py-3'),
|
|
42371
42705
|
children: jsxs("div", {
|
|
42372
42706
|
className: "flex items-center justify-center space-x-1",
|
|
42373
42707
|
children: [rowActions.slice(0, 3).map(function (action, actionIndex) {
|
|
@@ -42439,7 +42773,7 @@ function AdvancedTable(_ref3) {
|
|
|
42439
42773
|
className: "bg-mw-neutral-50 dark:bg-mw-neutral-800 border-t border-mw-neutral-200 dark:border-mw-neutral-700",
|
|
42440
42774
|
children: jsxs("tr", {
|
|
42441
42775
|
children: [hasSelection && jsx("td", {
|
|
42442
|
-
className: cn$
|
|
42776
|
+
className: cn$e(internalState.density === 'compact' ? 'px-2 py-1' : internalState.density === 'normal' ? 'px-4 py-2' : 'px-6 py-3')
|
|
42443
42777
|
}), visibleColumns.map(function (column) {
|
|
42444
42778
|
var columnData = processedData.map(function (row) {
|
|
42445
42779
|
return column.accessorFn ? column.accessorFn(row) : column.accessorKey ? row[column.accessorKey] : row;
|
|
@@ -42451,11 +42785,11 @@ function AdvancedTable(_ref3) {
|
|
|
42451
42785
|
footerContent = column.footer;
|
|
42452
42786
|
}
|
|
42453
42787
|
return jsx("td", {
|
|
42454
|
-
className: cn$
|
|
42788
|
+
className: cn$e('text-sm font-medium text-mw-neutral-900 dark:text-white', internalState.density === 'compact' ? 'px-2 py-1' : internalState.density === 'normal' ? 'px-4 py-2' : 'px-6 py-3', column.align === 'center' && 'text-center', column.align === 'right' && 'text-right'),
|
|
42455
42789
|
children: footerContent
|
|
42456
42790
|
}, column.id);
|
|
42457
42791
|
}), hasActions && jsx("td", {
|
|
42458
|
-
className: cn$
|
|
42792
|
+
className: cn$e(internalState.density === 'compact' ? 'px-2 py-1' : internalState.density === 'normal' ? 'px-4 py-2' : 'px-6 py-3')
|
|
42459
42793
|
})]
|
|
42460
42794
|
})
|
|
42461
42795
|
})]
|
|
@@ -42710,7 +43044,7 @@ function CollapsibleCode(_ref) {
|
|
|
42710
43044
|
});
|
|
42711
43045
|
}
|
|
42712
43046
|
|
|
42713
|
-
function cn$
|
|
43047
|
+
function cn$d() {
|
|
42714
43048
|
for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42715
43049
|
classes[_key] = arguments[_key];
|
|
42716
43050
|
}
|
|
@@ -42742,7 +43076,7 @@ function List(_ref) {
|
|
|
42742
43076
|
className = _ref.className;
|
|
42743
43077
|
var Component = variant === 'ordered' ? 'ol' : 'ul';
|
|
42744
43078
|
return jsx(Component, {
|
|
42745
|
-
className: cn$
|
|
43079
|
+
className: cn$d(listVariants[variant], listSizes[size], listSpacing[spacing], variant !== 'none' && 'pl-5', 'text-mw-neutral-700 dark:text-mw-neutral-300', className),
|
|
42746
43080
|
children: children
|
|
42747
43081
|
});
|
|
42748
43082
|
}
|
|
@@ -42752,7 +43086,7 @@ function ListItem(_ref2) {
|
|
|
42752
43086
|
startContent = _ref2.startContent,
|
|
42753
43087
|
endContent = _ref2.endContent;
|
|
42754
43088
|
return jsxs("li", {
|
|
42755
|
-
className: cn$
|
|
43089
|
+
className: cn$d('flex items-start', className),
|
|
42756
43090
|
children: [startContent && jsx("div", {
|
|
42757
43091
|
className: "flex-shrink-0 mr-2",
|
|
42758
43092
|
children: startContent
|
|
@@ -42771,14 +43105,14 @@ function DescriptionList(_ref3) {
|
|
|
42771
43105
|
layout = _ref3$layout === void 0 ? 'vertical' : _ref3$layout,
|
|
42772
43106
|
className = _ref3.className;
|
|
42773
43107
|
return jsx("dl", {
|
|
42774
|
-
className: cn$
|
|
43108
|
+
className: cn$d(layout === 'horizontal' ? 'grid grid-cols-3 gap-x-4 gap-y-2' : 'space-y-3', className),
|
|
42775
43109
|
children: items.map(function (item, index) {
|
|
42776
43110
|
return jsxs(React__default.Fragment, {
|
|
42777
43111
|
children: [jsx("dt", {
|
|
42778
|
-
className: cn$
|
|
43112
|
+
className: cn$d('font-medium text-mw-neutral-900 dark:text-white', layout === 'horizontal' ? 'col-span-1' : 'mb-1'),
|
|
42779
43113
|
children: item.term
|
|
42780
43114
|
}), jsx("dd", {
|
|
42781
|
-
className: cn$
|
|
43115
|
+
className: cn$d('text-mw-neutral-600 dark:text-mw-neutral-300', layout === 'horizontal' ? 'col-span-2' : ''),
|
|
42782
43116
|
children: item.description
|
|
42783
43117
|
})]
|
|
42784
43118
|
}, index);
|
|
@@ -42789,12 +43123,12 @@ function NavigationList(_ref4) {
|
|
|
42789
43123
|
var items = _ref4.items,
|
|
42790
43124
|
className = _ref4.className;
|
|
42791
43125
|
return jsx("ul", {
|
|
42792
|
-
className: cn$
|
|
43126
|
+
className: cn$d('space-y-1', className),
|
|
42793
43127
|
children: items.map(function (item, index) {
|
|
42794
43128
|
return jsx("li", {
|
|
42795
43129
|
children: item.href ? jsxs("a", {
|
|
42796
43130
|
href: item.href,
|
|
42797
|
-
className: cn$
|
|
43131
|
+
className: cn$d('flex items-center px-3 py-2 rounded-md text-sm font-medium transition-colors', item.active ? 'bg-mw-primary-100 dark:bg-mw-primary-900/20 text-mw-primary-700 dark:text-mw-primary-300' : 'text-mw-neutral-600 dark:text-mw-neutral-300 hover:bg-mw-neutral-100 dark:hover:bg-mw-neutral-800 hover:text-mw-neutral-900 dark:hover:text-white', item.disabled && 'opacity-50 cursor-not-allowed pointer-events-none'),
|
|
42798
43132
|
children: [item.icon && jsx("span", {
|
|
42799
43133
|
className: "mr-2",
|
|
42800
43134
|
children: item.icon
|
|
@@ -42802,7 +43136,7 @@ function NavigationList(_ref4) {
|
|
|
42802
43136
|
}) : jsxs("button", {
|
|
42803
43137
|
onClick: item.onClick,
|
|
42804
43138
|
disabled: item.disabled,
|
|
42805
|
-
className: cn$
|
|
43139
|
+
className: cn$d('w-full flex items-center px-3 py-2 rounded-md text-sm font-medium transition-colors text-left', item.active ? 'bg-mw-primary-100 dark:bg-mw-primary-900/20 text-mw-primary-700 dark:text-mw-primary-300' : 'text-mw-neutral-600 dark:text-mw-neutral-300 hover:bg-mw-neutral-100 dark:hover:bg-mw-neutral-800 hover:text-mw-neutral-900 dark:hover:text-white', item.disabled && 'opacity-50 cursor-not-allowed'),
|
|
42806
43140
|
children: [item.icon && jsx("span", {
|
|
42807
43141
|
className: "mr-2",
|
|
42808
43142
|
children: item.icon
|
|
@@ -42813,7 +43147,7 @@ function NavigationList(_ref4) {
|
|
|
42813
43147
|
});
|
|
42814
43148
|
}
|
|
42815
43149
|
|
|
42816
|
-
function cn$
|
|
43150
|
+
function cn$c() {
|
|
42817
43151
|
for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42818
43152
|
classes[_key] = arguments[_key];
|
|
42819
43153
|
}
|
|
@@ -42829,7 +43163,7 @@ function CarouselSlide(_ref) {
|
|
|
42829
43163
|
var children = _ref.children,
|
|
42830
43164
|
className = _ref.className;
|
|
42831
43165
|
return jsx("div", {
|
|
42832
|
-
className: cn$
|
|
43166
|
+
className: cn$c('flex-shrink-0 w-full', className),
|
|
42833
43167
|
children: children
|
|
42834
43168
|
});
|
|
42835
43169
|
}
|
|
@@ -42872,7 +43206,7 @@ function CarouselControls(_ref2) {
|
|
|
42872
43206
|
onClick: function onClick() {
|
|
42873
43207
|
return onSlideSelect(index);
|
|
42874
43208
|
},
|
|
42875
|
-
className: cn$
|
|
43209
|
+
className: cn$c('w-2 h-2 rounded-full transition-all duration-200', index === currentSlide ? 'bg-white dark:bg-mw-neutral-200 w-6' : 'bg-white/50 dark:bg-mw-neutral-200/50 hover:bg-white/75 dark:hover:bg-mw-neutral-200/75'),
|
|
42876
43210
|
"aria-label": "Go to slide ".concat(index + 1)
|
|
42877
43211
|
}, index);
|
|
42878
43212
|
}), onToggleAutoplay && jsx("button", {
|
|
@@ -43013,7 +43347,7 @@ function Carousel(_ref3) {
|
|
|
43013
43347
|
var translateX = -(currentSlide * (100 / slidesToShow));
|
|
43014
43348
|
return jsxs("div", {
|
|
43015
43349
|
ref: carouselRef,
|
|
43016
|
-
className: cn$
|
|
43350
|
+
className: cn$c('relative overflow-hidden rounded-lg focus:outline-none', aspectRatios$1[aspectRatio], className),
|
|
43017
43351
|
tabIndex: 0,
|
|
43018
43352
|
onMouseEnter: function onMouseEnter() {
|
|
43019
43353
|
return setIsPaused(true);
|
|
@@ -43068,7 +43402,7 @@ function ImageCarousel(_a) {
|
|
|
43068
43402
|
children: [jsx("img", {
|
|
43069
43403
|
src: image.src,
|
|
43070
43404
|
alt: image.alt,
|
|
43071
|
-
className: cn$
|
|
43405
|
+
className: cn$c('w-full h-full', objectFit === 'cover' ? 'object-cover' : 'object-contain')
|
|
43072
43406
|
}), image.caption && jsx("div", {
|
|
43073
43407
|
className: "absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/60 to-transparent p-4",
|
|
43074
43408
|
children: jsx("p", {
|
|
@@ -43082,203 +43416,6 @@ function ImageCarousel(_a) {
|
|
|
43082
43416
|
}));
|
|
43083
43417
|
}
|
|
43084
43418
|
|
|
43085
|
-
function cn$c() {
|
|
43086
|
-
for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
43087
|
-
classes[_key] = arguments[_key];
|
|
43088
|
-
}
|
|
43089
|
-
return classes.filter(Boolean).join(' ');
|
|
43090
|
-
}
|
|
43091
|
-
var containerSizes = {
|
|
43092
|
-
xs: 'max-w-xs',
|
|
43093
|
-
// 320px
|
|
43094
|
-
sm: 'max-w-sm',
|
|
43095
|
-
// 384px
|
|
43096
|
-
md: 'max-w-md',
|
|
43097
|
-
// 448px
|
|
43098
|
-
lg: 'max-w-lg',
|
|
43099
|
-
// 512px
|
|
43100
|
-
xl: 'max-w-xl',
|
|
43101
|
-
// 576px
|
|
43102
|
-
'2xl': 'max-w-2xl',
|
|
43103
|
-
// 672px
|
|
43104
|
-
full: 'max-w-full'
|
|
43105
|
-
};
|
|
43106
|
-
var containerPadding = {
|
|
43107
|
-
none: '',
|
|
43108
|
-
sm: 'px-4',
|
|
43109
|
-
md: 'px-6',
|
|
43110
|
-
lg: 'px-8',
|
|
43111
|
-
xl: 'px-12'
|
|
43112
|
-
};
|
|
43113
|
-
function Container(_ref) {
|
|
43114
|
-
var children = _ref.children,
|
|
43115
|
-
_ref$size = _ref.size,
|
|
43116
|
-
size = _ref$size === void 0 ? 'full' : _ref$size,
|
|
43117
|
-
_ref$padding = _ref.padding,
|
|
43118
|
-
padding = _ref$padding === void 0 ? 'md' : _ref$padding,
|
|
43119
|
-
_ref$centered = _ref.centered,
|
|
43120
|
-
centered = _ref$centered === void 0 ? true : _ref$centered,
|
|
43121
|
-
className = _ref.className,
|
|
43122
|
-
_ref$as = _ref.as,
|
|
43123
|
-
Component = _ref$as === void 0 ? 'div' : _ref$as;
|
|
43124
|
-
return jsx(Component, {
|
|
43125
|
-
className: cn$c(containerSizes[size], containerPadding[padding], centered && 'mx-auto', className),
|
|
43126
|
-
children: children
|
|
43127
|
-
});
|
|
43128
|
-
}
|
|
43129
|
-
function ResponsiveContainer(_ref2) {
|
|
43130
|
-
var children = _ref2.children,
|
|
43131
|
-
_ref2$breakpoints = _ref2.breakpoints,
|
|
43132
|
-
breakpoints = _ref2$breakpoints === void 0 ? {
|
|
43133
|
-
sm: 'sm',
|
|
43134
|
-
md: 'md',
|
|
43135
|
-
lg: 'lg',
|
|
43136
|
-
xl: 'xl',
|
|
43137
|
-
'2xl': '2xl'
|
|
43138
|
-
} : _ref2$breakpoints,
|
|
43139
|
-
_ref2$padding = _ref2.padding,
|
|
43140
|
-
padding = _ref2$padding === void 0 ? 'md' : _ref2$padding,
|
|
43141
|
-
_ref2$centered = _ref2.centered,
|
|
43142
|
-
centered = _ref2$centered === void 0 ? true : _ref2$centered,
|
|
43143
|
-
className = _ref2.className,
|
|
43144
|
-
_ref2$as = _ref2.as,
|
|
43145
|
-
Component = _ref2$as === void 0 ? 'div' : _ref2$as;
|
|
43146
|
-
var responsiveClasses = Object.entries(breakpoints).map(function (_ref3) {
|
|
43147
|
-
var _ref4 = _slicedToArray(_ref3, 2),
|
|
43148
|
-
breakpoint = _ref4[0],
|
|
43149
|
-
size = _ref4[1];
|
|
43150
|
-
if (breakpoint === 'sm') return containerSizes[size];
|
|
43151
|
-
return "".concat(breakpoint, ":").concat(containerSizes[size]);
|
|
43152
|
-
}).join(' ');
|
|
43153
|
-
return jsx(Component, {
|
|
43154
|
-
className: cn$c(responsiveClasses, containerPadding[padding], centered && 'mx-auto', className),
|
|
43155
|
-
children: children
|
|
43156
|
-
});
|
|
43157
|
-
}
|
|
43158
|
-
function GridContainer(_ref5) {
|
|
43159
|
-
var children = _ref5.children,
|
|
43160
|
-
_ref5$cols = _ref5.cols,
|
|
43161
|
-
cols = _ref5$cols === void 0 ? 1 : _ref5$cols,
|
|
43162
|
-
_ref5$gap = _ref5.gap,
|
|
43163
|
-
gap = _ref5$gap === void 0 ? 4 : _ref5$gap,
|
|
43164
|
-
className = _ref5.className;
|
|
43165
|
-
var getGridCols = function getGridCols() {
|
|
43166
|
-
if (typeof cols === 'number') {
|
|
43167
|
-
return "grid-cols-".concat(cols);
|
|
43168
|
-
}
|
|
43169
|
-
var classes = [];
|
|
43170
|
-
if (cols.sm) classes.push("grid-cols-".concat(cols.sm));
|
|
43171
|
-
if (cols.md) classes.push("md:grid-cols-".concat(cols.md));
|
|
43172
|
-
if (cols.lg) classes.push("lg:grid-cols-".concat(cols.lg));
|
|
43173
|
-
if (cols.xl) classes.push("xl:grid-cols-".concat(cols.xl));
|
|
43174
|
-
return classes.join(' ');
|
|
43175
|
-
};
|
|
43176
|
-
var getGap = function getGap() {
|
|
43177
|
-
if (typeof gap === 'number') {
|
|
43178
|
-
return "gap-".concat(gap);
|
|
43179
|
-
}
|
|
43180
|
-
var classes = [];
|
|
43181
|
-
if (gap.x) classes.push("gap-x-".concat(gap.x));
|
|
43182
|
-
if (gap.y) classes.push("gap-y-".concat(gap.y));
|
|
43183
|
-
return classes.join(' ');
|
|
43184
|
-
};
|
|
43185
|
-
return jsx("div", {
|
|
43186
|
-
className: cn$c('grid', getGridCols(), getGap(), className),
|
|
43187
|
-
children: children
|
|
43188
|
-
});
|
|
43189
|
-
}
|
|
43190
|
-
function FlexContainer(_ref6) {
|
|
43191
|
-
var children = _ref6.children,
|
|
43192
|
-
_ref6$direction = _ref6.direction,
|
|
43193
|
-
direction = _ref6$direction === void 0 ? 'row' : _ref6$direction,
|
|
43194
|
-
_ref6$wrap = _ref6.wrap,
|
|
43195
|
-
wrap = _ref6$wrap === void 0 ? 'nowrap' : _ref6$wrap,
|
|
43196
|
-
_ref6$align = _ref6.align,
|
|
43197
|
-
align = _ref6$align === void 0 ? 'start' : _ref6$align,
|
|
43198
|
-
_ref6$justify = _ref6.justify,
|
|
43199
|
-
justify = _ref6$justify === void 0 ? 'start' : _ref6$justify,
|
|
43200
|
-
_ref6$gap = _ref6.gap,
|
|
43201
|
-
gap = _ref6$gap === void 0 ? 0 : _ref6$gap,
|
|
43202
|
-
className = _ref6.className;
|
|
43203
|
-
var directionClasses = {
|
|
43204
|
-
'row': 'flex-row',
|
|
43205
|
-
'row-reverse': 'flex-row-reverse',
|
|
43206
|
-
'col': 'flex-col',
|
|
43207
|
-
'col-reverse': 'flex-col-reverse'
|
|
43208
|
-
};
|
|
43209
|
-
var wrapClasses = {
|
|
43210
|
-
'wrap': 'flex-wrap',
|
|
43211
|
-
'wrap-reverse': 'flex-wrap-reverse',
|
|
43212
|
-
'nowrap': 'flex-nowrap'
|
|
43213
|
-
};
|
|
43214
|
-
var alignClasses = {
|
|
43215
|
-
'start': 'items-start',
|
|
43216
|
-
'end': 'items-end',
|
|
43217
|
-
'center': 'items-center',
|
|
43218
|
-
'baseline': 'items-baseline',
|
|
43219
|
-
'stretch': 'items-stretch'
|
|
43220
|
-
};
|
|
43221
|
-
var justifyClasses = {
|
|
43222
|
-
'start': 'justify-start',
|
|
43223
|
-
'end': 'justify-end',
|
|
43224
|
-
'center': 'justify-center',
|
|
43225
|
-
'between': 'justify-between',
|
|
43226
|
-
'around': 'justify-around',
|
|
43227
|
-
'evenly': 'justify-evenly'
|
|
43228
|
-
};
|
|
43229
|
-
return jsx("div", {
|
|
43230
|
-
className: cn$c('flex', directionClasses[direction], wrapClasses[wrap], alignClasses[align], justifyClasses[justify], gap > 0 && "gap-".concat(gap), className),
|
|
43231
|
-
children: children
|
|
43232
|
-
});
|
|
43233
|
-
}
|
|
43234
|
-
function Stack(_ref7) {
|
|
43235
|
-
var children = _ref7.children,
|
|
43236
|
-
_ref7$spacing = _ref7.spacing,
|
|
43237
|
-
spacing = _ref7$spacing === void 0 ? 4 : _ref7$spacing,
|
|
43238
|
-
divider = _ref7.divider,
|
|
43239
|
-
className = _ref7.className;
|
|
43240
|
-
var childrenArray = React__default.Children.toArray(children);
|
|
43241
|
-
return jsx("div", {
|
|
43242
|
-
className: cn$c("space-y-".concat(spacing), className),
|
|
43243
|
-
children: childrenArray.map(function (child, index) {
|
|
43244
|
-
return jsxs(React__default.Fragment, {
|
|
43245
|
-
children: [child, divider && index < childrenArray.length - 1 && jsx("div", {
|
|
43246
|
-
className: "flex justify-center",
|
|
43247
|
-
children: divider
|
|
43248
|
-
})]
|
|
43249
|
-
}, index);
|
|
43250
|
-
})
|
|
43251
|
-
});
|
|
43252
|
-
}
|
|
43253
|
-
function HStack(_ref8) {
|
|
43254
|
-
var children = _ref8.children,
|
|
43255
|
-
_ref8$spacing = _ref8.spacing,
|
|
43256
|
-
spacing = _ref8$spacing === void 0 ? 4 : _ref8$spacing,
|
|
43257
|
-
divider = _ref8.divider,
|
|
43258
|
-
_ref8$align = _ref8.align,
|
|
43259
|
-
align = _ref8$align === void 0 ? 'center' : _ref8$align,
|
|
43260
|
-
className = _ref8.className;
|
|
43261
|
-
var childrenArray = React__default.Children.toArray(children);
|
|
43262
|
-
var alignClasses = {
|
|
43263
|
-
'start': 'items-start',
|
|
43264
|
-
'end': 'items-end',
|
|
43265
|
-
'center': 'items-center',
|
|
43266
|
-
'baseline': 'items-baseline',
|
|
43267
|
-
'stretch': 'items-stretch'
|
|
43268
|
-
};
|
|
43269
|
-
return jsx("div", {
|
|
43270
|
-
className: cn$c('flex', alignClasses[align], "gap-".concat(spacing), className),
|
|
43271
|
-
children: childrenArray.map(function (child, index) {
|
|
43272
|
-
return jsxs(React__default.Fragment, {
|
|
43273
|
-
children: [child, divider && index < childrenArray.length - 1 && jsx("div", {
|
|
43274
|
-
className: "flex items-center",
|
|
43275
|
-
children: divider
|
|
43276
|
-
})]
|
|
43277
|
-
}, index);
|
|
43278
|
-
})
|
|
43279
|
-
});
|
|
43280
|
-
}
|
|
43281
|
-
|
|
43282
43419
|
var TabsContext = /*#__PURE__*/React__default.createContext(null);
|
|
43283
43420
|
function Tabs(_ref) {
|
|
43284
43421
|
var _ref$defaultValue = _ref.defaultValue,
|
|
@@ -57139,5 +57276,5 @@ function getShortcutCategory(shortcut) {
|
|
|
57139
57276
|
// Version
|
|
57140
57277
|
var version = '1.0.0';
|
|
57141
57278
|
|
|
57142
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedTable, AgGridTable, Alert, AlertCircleIcon, AlertTriangleIcon, AnimatedElement, AppHeader, Autocomplete, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Breadcrumb, BreadcrumbItem, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselSlide, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, CloseIcon, CodeSnippet, Collapsible, CollapsibleCode, CollapsibleContent, CollapsibleTrigger, ColumnCustomizationDrawer, Command, CommandGroup, CommandItem, CommandSeparator, ConfirmSheet, Container, CounterAnimation, DataGrid, DatePicker, DateRangePicker, DescriptionList, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Display, DocumentEditor, DragDrop, Dropdown, DropdownContent, DropdownItem, Dropdown as DropdownMenu, DropdownContent as DropdownMenuContent, DropdownItem as DropdownMenuItem, DropdownMenuLabel, DropdownSeparator as DropdownMenuSeparator, DropdownTrigger as DropdownMenuTrigger, DropdownSeparator, DropdownTrigger, DynamicIcon, EmptyState, Fieldset, FileUpload, Filter, FlexContainer, FloatingElement, Footer, Form, FormActions, FormControl, FormDescription, FormError, FormField, FormGroup, FormItem, FormLabel, FormMessage, FormSection, GridContainer, HStack, Heading, Icon$2 as Icon, Image, ImageCarousel, ImageThumbnail, InfoIcon, Input, Label, List, ListItem, Loading, MWBounceLoader, MWBrandLoader, MWDotsLoader, MWHeartbeatLoader, MWLoader, MWMatrixLoader, MWProgressiveLoader, Menu, MenuCheckboxItem, MenuGroup, MenuItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MinusIcon, Modal, ModalBody, ModalFooter, ModalHeader, MultiSelect, Navigation, NavigationList, NoDataEmptyState, NoResultsEmptyState, Notification, NotificationBadge, NotificationBell, NotificationList, PageHeader, PageHero, Pagination, Panel, PanelGroup, PanelHeader, PanelResizer, PlusIcon, Popover, PopoverContent, PopoverTrigger, ProcessFlowAnimation, Progress, Radio$1 as Radio, RadioGroup, RadioGroupItem, Rating, ResponsiveContainer, RichTextEditor, ScheduleGrid, ScrollArea, SearchBar, SearchIcon, SearchResults, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarCollapseToggle, SidebarContent, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, SidebarNav, SidebarPanel, SidebarProvider, SidebarToggleButton, SidebarTrigger, SimpleSelect, Skeleton, Slider, SnackbarProvider, SortableList, Spinner, SplitPanel, Stack, StackPanel, StatusBadge, Stepper, Switch, SwitchGroup, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Text, Textarea, ThemeToggle, Thumbnail, ThumbnailGallery, TimePicker, TimeRangePicker, Timeline, TimelineItem, ToastProvider, ToggleGroup, ToggleGroupItem, Tooltip, TreeView, VideoThumbnail, borderRadius, borderWidth, breakpoints, cn, colors, cssVariables, debounce, effects, findTreeNode, formatIconName$1 as formatIconName, generateColorVariations, generateIconCode, getAllNodeIds, getParentIds, hexToRgb, shadows, spacing, tokens, typography, useDragDrop, useFormContext, useIconSearch, useKeyboardShortcuts, useSidebar, useSidebarSafe, useSnackbar, useSnackbarHelpers, useToast, version, zIndex };
|
|
57279
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedTable, AgGridTable, Alert, AlertCircleIcon, AlertTriangleIcon, AnimatedElement, AppHeader, Autocomplete, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Breadcrumb, BreadcrumbItem, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselSlide, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, CloseIcon, CodeSnippet, Collapsible, CollapsibleCode, CollapsibleContent, CollapsibleTrigger, ColumnCustomizationDrawer, Command, CommandGroup, CommandItem, CommandSeparator, ConfirmSheet, Container, CounterAnimation, DataGrid, DatePicker, DateRangePicker, DescriptionList, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Display, DocumentEditor, DragDrop, Dropdown, DropdownContent, DropdownItem, Dropdown as DropdownMenu, DropdownContent as DropdownMenuContent, DropdownItem as DropdownMenuItem, DropdownMenuLabel, DropdownSeparator as DropdownMenuSeparator, DropdownTrigger as DropdownMenuTrigger, DropdownSeparator, DropdownTrigger, DynamicIcon, EmptyState, Fieldset, FileUpload, Filter, FlexContainer, FloatingElement, Footer, Form, FormActions, FormControl, FormDescription, FormError, FormField, FormGroup, FormItem, FormLabel, FormMessage, FormSection, GridContainer, HStack, Heading, Icon$2 as Icon, Image, ImageCarousel, ImageThumbnail, InfoIcon, Input, Label, List, ListItem, Loading, MWBounceLoader, MWBrandLoader, MWDotsLoader, MWHeartbeatLoader, MWLoader, MWMatrixLoader, MWProgressiveLoader, Menu, MenuCheckboxItem, MenuGroup, MenuItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MetricCard, MinusIcon, Modal, ModalBody, ModalFooter, ModalHeader, MultiSelect, Navigation, NavigationList, NoDataEmptyState, NoResultsEmptyState, Notification, NotificationBadge, NotificationBell, NotificationList, PageHeader, PageHero, Pagination, Panel, PanelGroup, PanelHeader, PanelResizer, PlusIcon, Popover, PopoverContent, PopoverTrigger, ProcessFlowAnimation, Progress, ProgressBar, Radio$1 as Radio, RadioGroup, RadioGroupItem, Rating, ResponsiveContainer, RichTextEditor, ScheduleGrid, ScrollArea, SearchBar, SearchIcon, SearchResults, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarCollapseToggle, SidebarContent, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, SidebarNav, SidebarPanel, SidebarProvider, SidebarToggleButton, SidebarTrigger, SimpleSelect, Skeleton, Slider, SnackbarProvider, SortableList, Spinner, SplitPanel, Stack, StackPanel, StatusBadge, Stepper, Switch, SwitchGroup, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Text, Textarea, ThemeToggle, Thumbnail, ThumbnailGallery, TimePicker, TimeRangePicker, Timeline, TimelineItem, ToastProvider, ToggleGroup, ToggleGroupItem, Tooltip, TreeView, VideoThumbnail, borderRadius, borderWidth, breakpoints, cn, colors, cssVariables, debounce, effects, findTreeNode, formatIconName$1 as formatIconName, generateColorVariations, generateIconCode, getAllNodeIds, getParentIds, hexToRgb, shadows, spacing, tokens, typography, useDragDrop, useFormContext, useIconSearch, useKeyboardShortcuts, useSidebar, useSidebarSafe, useSnackbar, useSnackbarHelpers, useToast, version, zIndex };
|
|
57143
57280
|
//# sourceMappingURL=index.esm.js.map
|