@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.js
CHANGED
|
@@ -37588,7 +37588,8 @@ function Form(_ref) {
|
|
|
37588
37588
|
_ref$size = _ref.size,
|
|
37589
37589
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
37590
37590
|
_ref$layout = _ref.layout,
|
|
37591
|
-
layout = _ref$layout === void 0 ? 'vertical' : _ref$layout
|
|
37591
|
+
layout = _ref$layout === void 0 ? 'vertical' : _ref$layout,
|
|
37592
|
+
id = _ref.id;
|
|
37592
37593
|
var handleSubmit = function handleSubmit(event) {
|
|
37593
37594
|
if (onSubmit) {
|
|
37594
37595
|
event.preventDefault();
|
|
@@ -37601,6 +37602,7 @@ function Form(_ref) {
|
|
|
37601
37602
|
size: size
|
|
37602
37603
|
},
|
|
37603
37604
|
children: require$$1.jsx("form", {
|
|
37605
|
+
id: id,
|
|
37604
37606
|
onSubmit: handleSubmit,
|
|
37605
37607
|
className: cn$m(formLayouts[layout], formSizes[size], className),
|
|
37606
37608
|
children: children
|
|
@@ -40497,6 +40499,338 @@ function CardDescription(_a) {
|
|
|
40497
40499
|
}));
|
|
40498
40500
|
}
|
|
40499
40501
|
|
|
40502
|
+
function cn$f() {
|
|
40503
|
+
for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
40504
|
+
classes[_key] = arguments[_key];
|
|
40505
|
+
}
|
|
40506
|
+
return classes.filter(Boolean).join(' ');
|
|
40507
|
+
}
|
|
40508
|
+
var containerSizes = {
|
|
40509
|
+
xs: 'max-w-xs',
|
|
40510
|
+
// 320px
|
|
40511
|
+
sm: 'max-w-sm',
|
|
40512
|
+
// 384px
|
|
40513
|
+
md: 'max-w-md',
|
|
40514
|
+
// 448px
|
|
40515
|
+
lg: 'max-w-lg',
|
|
40516
|
+
// 512px
|
|
40517
|
+
xl: 'max-w-xl',
|
|
40518
|
+
// 576px
|
|
40519
|
+
'2xl': 'max-w-2xl',
|
|
40520
|
+
// 672px
|
|
40521
|
+
full: 'max-w-full'
|
|
40522
|
+
};
|
|
40523
|
+
var containerPadding = {
|
|
40524
|
+
none: '',
|
|
40525
|
+
sm: 'px-4',
|
|
40526
|
+
md: 'px-6',
|
|
40527
|
+
lg: 'px-8',
|
|
40528
|
+
xl: 'px-12'
|
|
40529
|
+
};
|
|
40530
|
+
function Container(_ref) {
|
|
40531
|
+
var children = _ref.children,
|
|
40532
|
+
_ref$size = _ref.size,
|
|
40533
|
+
size = _ref$size === void 0 ? 'full' : _ref$size,
|
|
40534
|
+
_ref$padding = _ref.padding,
|
|
40535
|
+
padding = _ref$padding === void 0 ? 'md' : _ref$padding,
|
|
40536
|
+
_ref$centered = _ref.centered,
|
|
40537
|
+
centered = _ref$centered === void 0 ? true : _ref$centered,
|
|
40538
|
+
className = _ref.className,
|
|
40539
|
+
_ref$as = _ref.as,
|
|
40540
|
+
Component = _ref$as === void 0 ? 'div' : _ref$as;
|
|
40541
|
+
return require$$1.jsx(Component, {
|
|
40542
|
+
className: cn$f(containerSizes[size], containerPadding[padding], centered && 'mx-auto', className),
|
|
40543
|
+
children: children
|
|
40544
|
+
});
|
|
40545
|
+
}
|
|
40546
|
+
function ResponsiveContainer(_ref2) {
|
|
40547
|
+
var children = _ref2.children,
|
|
40548
|
+
_ref2$breakpoints = _ref2.breakpoints,
|
|
40549
|
+
breakpoints = _ref2$breakpoints === void 0 ? {
|
|
40550
|
+
sm: 'sm',
|
|
40551
|
+
md: 'md',
|
|
40552
|
+
lg: 'lg',
|
|
40553
|
+
xl: 'xl',
|
|
40554
|
+
'2xl': '2xl'
|
|
40555
|
+
} : _ref2$breakpoints,
|
|
40556
|
+
_ref2$padding = _ref2.padding,
|
|
40557
|
+
padding = _ref2$padding === void 0 ? 'md' : _ref2$padding,
|
|
40558
|
+
_ref2$centered = _ref2.centered,
|
|
40559
|
+
centered = _ref2$centered === void 0 ? true : _ref2$centered,
|
|
40560
|
+
className = _ref2.className,
|
|
40561
|
+
_ref2$as = _ref2.as,
|
|
40562
|
+
Component = _ref2$as === void 0 ? 'div' : _ref2$as;
|
|
40563
|
+
var responsiveClasses = Object.entries(breakpoints).map(function (_ref3) {
|
|
40564
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
40565
|
+
breakpoint = _ref4[0],
|
|
40566
|
+
size = _ref4[1];
|
|
40567
|
+
if (breakpoint === 'sm') return containerSizes[size];
|
|
40568
|
+
return "".concat(breakpoint, ":").concat(containerSizes[size]);
|
|
40569
|
+
}).join(' ');
|
|
40570
|
+
return require$$1.jsx(Component, {
|
|
40571
|
+
className: cn$f(responsiveClasses, containerPadding[padding], centered && 'mx-auto', className),
|
|
40572
|
+
children: children
|
|
40573
|
+
});
|
|
40574
|
+
}
|
|
40575
|
+
function GridContainer(_ref5) {
|
|
40576
|
+
var children = _ref5.children,
|
|
40577
|
+
_ref5$cols = _ref5.cols,
|
|
40578
|
+
cols = _ref5$cols === void 0 ? 1 : _ref5$cols,
|
|
40579
|
+
_ref5$gap = _ref5.gap,
|
|
40580
|
+
gap = _ref5$gap === void 0 ? 4 : _ref5$gap,
|
|
40581
|
+
className = _ref5.className;
|
|
40582
|
+
var getGridCols = function getGridCols() {
|
|
40583
|
+
if (typeof cols === 'number') {
|
|
40584
|
+
return "grid-cols-".concat(cols);
|
|
40585
|
+
}
|
|
40586
|
+
var classes = [];
|
|
40587
|
+
if (cols.sm) classes.push("grid-cols-".concat(cols.sm));
|
|
40588
|
+
if (cols.md) classes.push("md:grid-cols-".concat(cols.md));
|
|
40589
|
+
if (cols.lg) classes.push("lg:grid-cols-".concat(cols.lg));
|
|
40590
|
+
if (cols.xl) classes.push("xl:grid-cols-".concat(cols.xl));
|
|
40591
|
+
return classes.join(' ');
|
|
40592
|
+
};
|
|
40593
|
+
var getGap = function getGap() {
|
|
40594
|
+
if (typeof gap === 'number') {
|
|
40595
|
+
return "gap-".concat(gap);
|
|
40596
|
+
}
|
|
40597
|
+
var classes = [];
|
|
40598
|
+
if (gap.x) classes.push("gap-x-".concat(gap.x));
|
|
40599
|
+
if (gap.y) classes.push("gap-y-".concat(gap.y));
|
|
40600
|
+
return classes.join(' ');
|
|
40601
|
+
};
|
|
40602
|
+
return require$$1.jsx("div", {
|
|
40603
|
+
className: cn$f('grid', getGridCols(), getGap(), className),
|
|
40604
|
+
children: children
|
|
40605
|
+
});
|
|
40606
|
+
}
|
|
40607
|
+
function FlexContainer(_ref6) {
|
|
40608
|
+
var children = _ref6.children,
|
|
40609
|
+
_ref6$direction = _ref6.direction,
|
|
40610
|
+
direction = _ref6$direction === void 0 ? 'row' : _ref6$direction,
|
|
40611
|
+
_ref6$wrap = _ref6.wrap,
|
|
40612
|
+
wrap = _ref6$wrap === void 0 ? 'nowrap' : _ref6$wrap,
|
|
40613
|
+
_ref6$align = _ref6.align,
|
|
40614
|
+
align = _ref6$align === void 0 ? 'start' : _ref6$align,
|
|
40615
|
+
_ref6$justify = _ref6.justify,
|
|
40616
|
+
justify = _ref6$justify === void 0 ? 'start' : _ref6$justify,
|
|
40617
|
+
_ref6$gap = _ref6.gap,
|
|
40618
|
+
gap = _ref6$gap === void 0 ? 0 : _ref6$gap,
|
|
40619
|
+
className = _ref6.className;
|
|
40620
|
+
var directionClasses = {
|
|
40621
|
+
'row': 'flex-row',
|
|
40622
|
+
'row-reverse': 'flex-row-reverse',
|
|
40623
|
+
'col': 'flex-col',
|
|
40624
|
+
'col-reverse': 'flex-col-reverse'
|
|
40625
|
+
};
|
|
40626
|
+
var wrapClasses = {
|
|
40627
|
+
'wrap': 'flex-wrap',
|
|
40628
|
+
'wrap-reverse': 'flex-wrap-reverse',
|
|
40629
|
+
'nowrap': 'flex-nowrap'
|
|
40630
|
+
};
|
|
40631
|
+
var alignClasses = {
|
|
40632
|
+
'start': 'items-start',
|
|
40633
|
+
'end': 'items-end',
|
|
40634
|
+
'center': 'items-center',
|
|
40635
|
+
'baseline': 'items-baseline',
|
|
40636
|
+
'stretch': 'items-stretch'
|
|
40637
|
+
};
|
|
40638
|
+
var justifyClasses = {
|
|
40639
|
+
'start': 'justify-start',
|
|
40640
|
+
'end': 'justify-end',
|
|
40641
|
+
'center': 'justify-center',
|
|
40642
|
+
'between': 'justify-between',
|
|
40643
|
+
'around': 'justify-around',
|
|
40644
|
+
'evenly': 'justify-evenly'
|
|
40645
|
+
};
|
|
40646
|
+
return require$$1.jsx("div", {
|
|
40647
|
+
className: cn$f('flex', directionClasses[direction], wrapClasses[wrap], alignClasses[align], justifyClasses[justify], gap > 0 && "gap-".concat(gap), className),
|
|
40648
|
+
children: children
|
|
40649
|
+
});
|
|
40650
|
+
}
|
|
40651
|
+
function Stack(_ref7) {
|
|
40652
|
+
var children = _ref7.children,
|
|
40653
|
+
_ref7$spacing = _ref7.spacing,
|
|
40654
|
+
spacing = _ref7$spacing === void 0 ? 4 : _ref7$spacing,
|
|
40655
|
+
divider = _ref7.divider,
|
|
40656
|
+
className = _ref7.className;
|
|
40657
|
+
var childrenArray = React.Children.toArray(children);
|
|
40658
|
+
return require$$1.jsx("div", {
|
|
40659
|
+
className: cn$f("space-y-".concat(spacing), className),
|
|
40660
|
+
children: childrenArray.map(function (child, index) {
|
|
40661
|
+
return require$$1.jsxs(React.Fragment, {
|
|
40662
|
+
children: [child, divider && index < childrenArray.length - 1 && require$$1.jsx("div", {
|
|
40663
|
+
className: "flex justify-center",
|
|
40664
|
+
children: divider
|
|
40665
|
+
})]
|
|
40666
|
+
}, index);
|
|
40667
|
+
})
|
|
40668
|
+
});
|
|
40669
|
+
}
|
|
40670
|
+
function HStack(_ref8) {
|
|
40671
|
+
var children = _ref8.children,
|
|
40672
|
+
_ref8$spacing = _ref8.spacing,
|
|
40673
|
+
spacing = _ref8$spacing === void 0 ? 4 : _ref8$spacing,
|
|
40674
|
+
divider = _ref8.divider,
|
|
40675
|
+
_ref8$align = _ref8.align,
|
|
40676
|
+
align = _ref8$align === void 0 ? 'center' : _ref8$align,
|
|
40677
|
+
className = _ref8.className;
|
|
40678
|
+
var childrenArray = React.Children.toArray(children);
|
|
40679
|
+
var alignClasses = {
|
|
40680
|
+
'start': 'items-start',
|
|
40681
|
+
'end': 'items-end',
|
|
40682
|
+
'center': 'items-center',
|
|
40683
|
+
'baseline': 'items-baseline',
|
|
40684
|
+
'stretch': 'items-stretch'
|
|
40685
|
+
};
|
|
40686
|
+
return require$$1.jsx("div", {
|
|
40687
|
+
className: cn$f('flex', alignClasses[align], "gap-".concat(spacing), className),
|
|
40688
|
+
children: childrenArray.map(function (child, index) {
|
|
40689
|
+
return require$$1.jsxs(React.Fragment, {
|
|
40690
|
+
children: [child, divider && index < childrenArray.length - 1 && require$$1.jsx("div", {
|
|
40691
|
+
className: "flex items-center",
|
|
40692
|
+
children: divider
|
|
40693
|
+
})]
|
|
40694
|
+
}, index);
|
|
40695
|
+
})
|
|
40696
|
+
});
|
|
40697
|
+
}
|
|
40698
|
+
|
|
40699
|
+
function MetricCard(_ref) {
|
|
40700
|
+
var title = _ref.title,
|
|
40701
|
+
value = _ref.value,
|
|
40702
|
+
description = _ref.description,
|
|
40703
|
+
icon = _ref.icon,
|
|
40704
|
+
change = _ref.change,
|
|
40705
|
+
_ref$showTrendIcon = _ref.showTrendIcon,
|
|
40706
|
+
showTrendIcon = _ref$showTrendIcon === void 0 ? false : _ref$showTrendIcon,
|
|
40707
|
+
centerY = _ref.centerY,
|
|
40708
|
+
className = _ref.className;
|
|
40709
|
+
var shouldCenterY = centerY !== null && centerY !== void 0 ? centerY : false;
|
|
40710
|
+
var showTrend = (change === null || change === void 0 ? void 0 : change.value) != null && change.value !== '';
|
|
40711
|
+
var showIcon = showTrendIcon && showTrend;
|
|
40712
|
+
return require$$1.jsx(Card, {
|
|
40713
|
+
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),
|
|
40714
|
+
children: require$$1.jsxs(FlexContainer, {
|
|
40715
|
+
direction: icon ? 'row' : 'col',
|
|
40716
|
+
align: icon ? 'center' : undefined,
|
|
40717
|
+
gap: 3,
|
|
40718
|
+
className: clsx(shouldCenterY && 'h-full justify-center'),
|
|
40719
|
+
children: [icon && require$$1.jsx("div", {
|
|
40720
|
+
className: "shrink-0",
|
|
40721
|
+
children: icon
|
|
40722
|
+
}), require$$1.jsxs(FlexContainer, {
|
|
40723
|
+
direction: "col",
|
|
40724
|
+
gap: 2,
|
|
40725
|
+
children: [require$$1.jsx("p", {
|
|
40726
|
+
className: "text-sm font-normal text-mw-neutral-500 dark:text-mw-neutral-400",
|
|
40727
|
+
children: title
|
|
40728
|
+
}), require$$1.jsxs(FlexContainer, {
|
|
40729
|
+
direction: "col",
|
|
40730
|
+
gap: 1,
|
|
40731
|
+
children: [require$$1.jsx("p", {
|
|
40732
|
+
className: "text-lg font-semibold text-mw-primary-600 dark:text-mw-primary-400",
|
|
40733
|
+
children: value
|
|
40734
|
+
}), description && require$$1.jsx("p", {
|
|
40735
|
+
className: "text-xs font-normal text-mw-neutral-400 dark:text-mw-neutral-500",
|
|
40736
|
+
children: description
|
|
40737
|
+
}), showTrend && change && require$$1.jsxs(FlexContainer, {
|
|
40738
|
+
direction: "row",
|
|
40739
|
+
align: "center",
|
|
40740
|
+
gap: 1,
|
|
40741
|
+
children: [showIcon && change.isPositive && require$$1.jsx(TrendingUp, {
|
|
40742
|
+
className: "w-4 h-4 text-success-600 flex-shrink-0"
|
|
40743
|
+
}), showIcon && !change.isPositive && require$$1.jsx(TrendingDown, {
|
|
40744
|
+
className: "w-4 h-4 text-error-500 flex-shrink-0"
|
|
40745
|
+
}), require$$1.jsx("p", {
|
|
40746
|
+
className: clsx('text-xs font-normal', change.isPositive ? 'text-success-600 dark:text-success-400' : 'text-error-500 dark:text-error-400'),
|
|
40747
|
+
children: change.value
|
|
40748
|
+
})]
|
|
40749
|
+
})]
|
|
40750
|
+
})]
|
|
40751
|
+
})]
|
|
40752
|
+
})
|
|
40753
|
+
});
|
|
40754
|
+
}
|
|
40755
|
+
|
|
40756
|
+
var sizeConfig = {
|
|
40757
|
+
small: {
|
|
40758
|
+
track: 'h-1.5',
|
|
40759
|
+
fill: 'h-1.5'
|
|
40760
|
+
},
|
|
40761
|
+
medium: {
|
|
40762
|
+
track: 'h-2',
|
|
40763
|
+
fill: 'h-2'
|
|
40764
|
+
}
|
|
40765
|
+
};
|
|
40766
|
+
var colorConfig = {
|
|
40767
|
+
primary: {
|
|
40768
|
+
fill: 'bg-mw-primary-600',
|
|
40769
|
+
disabled: 'bg-mw-neutral-200'
|
|
40770
|
+
},
|
|
40771
|
+
success: {
|
|
40772
|
+
fill: 'bg-success-500',
|
|
40773
|
+
disabled: 'bg-mw-neutral-200'
|
|
40774
|
+
},
|
|
40775
|
+
danger: {
|
|
40776
|
+
fill: 'bg-error-500',
|
|
40777
|
+
disabled: 'bg-mw-neutral-200'
|
|
40778
|
+
},
|
|
40779
|
+
warning: {
|
|
40780
|
+
fill: 'bg-warning-500',
|
|
40781
|
+
disabled: 'bg-mw-neutral-200'
|
|
40782
|
+
},
|
|
40783
|
+
neutral: {
|
|
40784
|
+
fill: 'bg-mw-neutral-500',
|
|
40785
|
+
disabled: 'bg-mw-neutral-200'
|
|
40786
|
+
}
|
|
40787
|
+
};
|
|
40788
|
+
var ProgressBar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
40789
|
+
var value = _ref.value,
|
|
40790
|
+
_ref$size = _ref.size,
|
|
40791
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
40792
|
+
_ref$color = _ref.color,
|
|
40793
|
+
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
40794
|
+
_ref$disabled = _ref.disabled,
|
|
40795
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
40796
|
+
_ref$showLabel = _ref.showLabel,
|
|
40797
|
+
showLabel = _ref$showLabel === void 0 ? true : _ref$showLabel,
|
|
40798
|
+
className = _ref.className,
|
|
40799
|
+
ariaLabel = _ref.ariaLabel;
|
|
40800
|
+
var clamped = Math.min(Math.max(value, 0), 100);
|
|
40801
|
+
var _sizeConfig$size = sizeConfig[size],
|
|
40802
|
+
track = _sizeConfig$size.track,
|
|
40803
|
+
fill = _sizeConfig$size.fill;
|
|
40804
|
+
var _colorConfig$color = colorConfig[color],
|
|
40805
|
+
fillColor = _colorConfig$color.fill,
|
|
40806
|
+
disabledColor = _colorConfig$color.disabled;
|
|
40807
|
+
return require$$1.jsxs("div", {
|
|
40808
|
+
ref: ref,
|
|
40809
|
+
className: clsx('flex items-center gap-2 w-full', disabled && 'opacity-50', className),
|
|
40810
|
+
role: "progressbar",
|
|
40811
|
+
"aria-valuenow": clamped,
|
|
40812
|
+
"aria-valuemin": 0,
|
|
40813
|
+
"aria-valuemax": 100,
|
|
40814
|
+
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : "Progress: ".concat(clamped, "%"),
|
|
40815
|
+
children: [require$$1.jsx("div", {
|
|
40816
|
+
className: "flex-1 min-w-0",
|
|
40817
|
+
children: require$$1.jsx("div", {
|
|
40818
|
+
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'),
|
|
40819
|
+
children: require$$1.jsx("div", {
|
|
40820
|
+
className: clsx('rounded-full transition-all duration-300 ease-in-out', fill, disabled ? disabledColor : fillColor),
|
|
40821
|
+
style: {
|
|
40822
|
+
width: "".concat(clamped, "%")
|
|
40823
|
+
}
|
|
40824
|
+
})
|
|
40825
|
+
})
|
|
40826
|
+
}), showLabel && require$$1.jsxs("span", {
|
|
40827
|
+
className: "shrink-0 text-sm font-normal text-mw-neutral-500 dark:text-mw-neutral-400 tabular-nums w-10 text-right",
|
|
40828
|
+
children: [Math.round(clamped), "%"]
|
|
40829
|
+
})]
|
|
40830
|
+
});
|
|
40831
|
+
});
|
|
40832
|
+
ProgressBar.displayName = 'ProgressBar';
|
|
40833
|
+
|
|
40500
40834
|
var badgeVariants = {
|
|
40501
40835
|
"default": 'bg-mw-primary-500 text-white dark:bg-mw-primary-600 dark:text-white',
|
|
40502
40836
|
primary: 'bg-mw-primary-100 text-mw-primary-500 dark:bg-mw-primary-900/20 dark:text-mw-primary-300',
|
|
@@ -41308,7 +41642,7 @@ var ModalFooter = function ModalFooter(_ref4) {
|
|
|
41308
41642
|
});
|
|
41309
41643
|
};
|
|
41310
41644
|
|
|
41311
|
-
function cn$
|
|
41645
|
+
function cn$e() {
|
|
41312
41646
|
for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
41313
41647
|
classes[_key] = arguments[_key];
|
|
41314
41648
|
}
|
|
@@ -41473,7 +41807,7 @@ function AdvancedTableHeaderCell(_ref) {
|
|
|
41473
41807
|
};
|
|
41474
41808
|
}, [isResizing, column.id, column.minWidth, onResize]);
|
|
41475
41809
|
return require$$1.jsx("th", {
|
|
41476
|
-
className: cn$
|
|
41810
|
+
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'),
|
|
41477
41811
|
style: {
|
|
41478
41812
|
width: column.width,
|
|
41479
41813
|
minWidth: column.minWidth,
|
|
@@ -41484,7 +41818,7 @@ function AdvancedTableHeaderCell(_ref) {
|
|
|
41484
41818
|
children: [require$$1.jsxs("div", {
|
|
41485
41819
|
className: "flex items-center space-x-2 min-w-0 flex-1",
|
|
41486
41820
|
children: [require$$1.jsx("span", {
|
|
41487
|
-
className: cn$
|
|
41821
|
+
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'),
|
|
41488
41822
|
onClick: handleSort,
|
|
41489
41823
|
title: typeof column.header === 'string' ? column.header : column.id,
|
|
41490
41824
|
children: column.header
|
|
@@ -41680,7 +42014,7 @@ function AdvancedTableCell(_ref2) {
|
|
|
41680
42014
|
}
|
|
41681
42015
|
};
|
|
41682
42016
|
return require$$1.jsx("td", {
|
|
41683
|
-
className: cn$
|
|
42017
|
+
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'),
|
|
41684
42018
|
onClick: onClick,
|
|
41685
42019
|
children: renderCellContent()
|
|
41686
42020
|
});
|
|
@@ -42205,7 +42539,7 @@ function AdvancedTable(_ref3) {
|
|
|
42205
42539
|
var hasActions = rowActions && rowActions.length > 0;
|
|
42206
42540
|
return require$$1.jsxs("div", {
|
|
42207
42541
|
ref: tableRef,
|
|
42208
|
-
className: cn$
|
|
42542
|
+
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),
|
|
42209
42543
|
children: [renderToolbar(), require$$1.jsx(Modal, {
|
|
42210
42544
|
isOpen: showColumnSettings,
|
|
42211
42545
|
onClose: function onClose() {
|
|
@@ -42280,17 +42614,17 @@ function AdvancedTable(_ref3) {
|
|
|
42280
42614
|
})]
|
|
42281
42615
|
})
|
|
42282
42616
|
}), " ", require$$1.jsx("div", {
|
|
42283
|
-
className: cn$
|
|
42617
|
+
className: cn$e('overflow-auto', stickyHeader && 'max-h-96'),
|
|
42284
42618
|
style: {
|
|
42285
42619
|
maxHeight: maxHeight
|
|
42286
42620
|
},
|
|
42287
42621
|
children: require$$1.jsxs("table", {
|
|
42288
42622
|
className: "w-full",
|
|
42289
42623
|
children: [require$$1.jsx("thead", {
|
|
42290
|
-
className: cn$
|
|
42624
|
+
className: cn$e(stickyHeader && 'sticky top-0 z-10'),
|
|
42291
42625
|
children: require$$1.jsxs("tr", {
|
|
42292
42626
|
children: [hasSelection && require$$1.jsx("th", {
|
|
42293
|
-
className: cn$
|
|
42627
|
+
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'),
|
|
42294
42628
|
children: selection.mode === 'multiple' && require$$1.jsx("input", {
|
|
42295
42629
|
type: "checkbox",
|
|
42296
42630
|
checked: paginatedData.length > 0 && paginatedData.every(function (row, index) {
|
|
@@ -42309,7 +42643,7 @@ function AdvancedTable(_ref3) {
|
|
|
42309
42643
|
density: internalState.density
|
|
42310
42644
|
}, column.id);
|
|
42311
42645
|
}), hasActions && require$$1.jsx("th", {
|
|
42312
|
-
className: cn$
|
|
42646
|
+
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'),
|
|
42313
42647
|
children: require$$1.jsx("span", {
|
|
42314
42648
|
className: "sr-only",
|
|
42315
42649
|
children: "Actions"
|
|
@@ -42355,7 +42689,7 @@ function AdvancedTable(_ref3) {
|
|
|
42355
42689
|
var isSelected = selection === null || selection === void 0 ? void 0 : selection.selectedRows.has(rowId);
|
|
42356
42690
|
return require$$1.jsxs(React.Fragment, {
|
|
42357
42691
|
children: [require$$1.jsxs("tr", {
|
|
42358
|
-
className: cn$
|
|
42692
|
+
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'),
|
|
42359
42693
|
onClick: function onClick() {
|
|
42360
42694
|
return onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(row, index);
|
|
42361
42695
|
},
|
|
@@ -42366,7 +42700,7 @@ function AdvancedTable(_ref3) {
|
|
|
42366
42700
|
return onRowHover === null || onRowHover === void 0 ? void 0 : onRowHover(row, index);
|
|
42367
42701
|
},
|
|
42368
42702
|
children: [hasSelection && require$$1.jsx("td", {
|
|
42369
|
-
className: cn$
|
|
42703
|
+
className: cn$e(internalState.density === 'compact' ? 'px-2 py-1' : internalState.density === 'normal' ? 'px-4 py-2' : 'px-6 py-3'),
|
|
42370
42704
|
children: require$$1.jsx("input", {
|
|
42371
42705
|
type: "checkbox",
|
|
42372
42706
|
checked: isSelected,
|
|
@@ -42387,7 +42721,7 @@ function AdvancedTable(_ref3) {
|
|
|
42387
42721
|
}
|
|
42388
42722
|
}, column.id);
|
|
42389
42723
|
}), hasActions && require$$1.jsx("td", {
|
|
42390
|
-
className: cn$
|
|
42724
|
+
className: cn$e('text-center', internalState.density === 'compact' ? 'px-2 py-1' : internalState.density === 'normal' ? 'px-4 py-2' : 'px-6 py-3'),
|
|
42391
42725
|
children: require$$1.jsxs("div", {
|
|
42392
42726
|
className: "flex items-center justify-center space-x-1",
|
|
42393
42727
|
children: [rowActions.slice(0, 3).map(function (action, actionIndex) {
|
|
@@ -42459,7 +42793,7 @@ function AdvancedTable(_ref3) {
|
|
|
42459
42793
|
className: "bg-mw-neutral-50 dark:bg-mw-neutral-800 border-t border-mw-neutral-200 dark:border-mw-neutral-700",
|
|
42460
42794
|
children: require$$1.jsxs("tr", {
|
|
42461
42795
|
children: [hasSelection && require$$1.jsx("td", {
|
|
42462
|
-
className: cn$
|
|
42796
|
+
className: cn$e(internalState.density === 'compact' ? 'px-2 py-1' : internalState.density === 'normal' ? 'px-4 py-2' : 'px-6 py-3')
|
|
42463
42797
|
}), visibleColumns.map(function (column) {
|
|
42464
42798
|
var columnData = processedData.map(function (row) {
|
|
42465
42799
|
return column.accessorFn ? column.accessorFn(row) : column.accessorKey ? row[column.accessorKey] : row;
|
|
@@ -42471,11 +42805,11 @@ function AdvancedTable(_ref3) {
|
|
|
42471
42805
|
footerContent = column.footer;
|
|
42472
42806
|
}
|
|
42473
42807
|
return require$$1.jsx("td", {
|
|
42474
|
-
className: cn$
|
|
42808
|
+
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'),
|
|
42475
42809
|
children: footerContent
|
|
42476
42810
|
}, column.id);
|
|
42477
42811
|
}), hasActions && require$$1.jsx("td", {
|
|
42478
|
-
className: cn$
|
|
42812
|
+
className: cn$e(internalState.density === 'compact' ? 'px-2 py-1' : internalState.density === 'normal' ? 'px-4 py-2' : 'px-6 py-3')
|
|
42479
42813
|
})]
|
|
42480
42814
|
})
|
|
42481
42815
|
})]
|
|
@@ -42730,7 +43064,7 @@ function CollapsibleCode(_ref) {
|
|
|
42730
43064
|
});
|
|
42731
43065
|
}
|
|
42732
43066
|
|
|
42733
|
-
function cn$
|
|
43067
|
+
function cn$d() {
|
|
42734
43068
|
for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42735
43069
|
classes[_key] = arguments[_key];
|
|
42736
43070
|
}
|
|
@@ -42762,7 +43096,7 @@ function List(_ref) {
|
|
|
42762
43096
|
className = _ref.className;
|
|
42763
43097
|
var Component = variant === 'ordered' ? 'ol' : 'ul';
|
|
42764
43098
|
return require$$1.jsx(Component, {
|
|
42765
|
-
className: cn$
|
|
43099
|
+
className: cn$d(listVariants[variant], listSizes[size], listSpacing[spacing], variant !== 'none' && 'pl-5', 'text-mw-neutral-700 dark:text-mw-neutral-300', className),
|
|
42766
43100
|
children: children
|
|
42767
43101
|
});
|
|
42768
43102
|
}
|
|
@@ -42772,7 +43106,7 @@ function ListItem(_ref2) {
|
|
|
42772
43106
|
startContent = _ref2.startContent,
|
|
42773
43107
|
endContent = _ref2.endContent;
|
|
42774
43108
|
return require$$1.jsxs("li", {
|
|
42775
|
-
className: cn$
|
|
43109
|
+
className: cn$d('flex items-start', className),
|
|
42776
43110
|
children: [startContent && require$$1.jsx("div", {
|
|
42777
43111
|
className: "flex-shrink-0 mr-2",
|
|
42778
43112
|
children: startContent
|
|
@@ -42791,14 +43125,14 @@ function DescriptionList(_ref3) {
|
|
|
42791
43125
|
layout = _ref3$layout === void 0 ? 'vertical' : _ref3$layout,
|
|
42792
43126
|
className = _ref3.className;
|
|
42793
43127
|
return require$$1.jsx("dl", {
|
|
42794
|
-
className: cn$
|
|
43128
|
+
className: cn$d(layout === 'horizontal' ? 'grid grid-cols-3 gap-x-4 gap-y-2' : 'space-y-3', className),
|
|
42795
43129
|
children: items.map(function (item, index) {
|
|
42796
43130
|
return require$$1.jsxs(React.Fragment, {
|
|
42797
43131
|
children: [require$$1.jsx("dt", {
|
|
42798
|
-
className: cn$
|
|
43132
|
+
className: cn$d('font-medium text-mw-neutral-900 dark:text-white', layout === 'horizontal' ? 'col-span-1' : 'mb-1'),
|
|
42799
43133
|
children: item.term
|
|
42800
43134
|
}), require$$1.jsx("dd", {
|
|
42801
|
-
className: cn$
|
|
43135
|
+
className: cn$d('text-mw-neutral-600 dark:text-mw-neutral-300', layout === 'horizontal' ? 'col-span-2' : ''),
|
|
42802
43136
|
children: item.description
|
|
42803
43137
|
})]
|
|
42804
43138
|
}, index);
|
|
@@ -42809,12 +43143,12 @@ function NavigationList(_ref4) {
|
|
|
42809
43143
|
var items = _ref4.items,
|
|
42810
43144
|
className = _ref4.className;
|
|
42811
43145
|
return require$$1.jsx("ul", {
|
|
42812
|
-
className: cn$
|
|
43146
|
+
className: cn$d('space-y-1', className),
|
|
42813
43147
|
children: items.map(function (item, index) {
|
|
42814
43148
|
return require$$1.jsx("li", {
|
|
42815
43149
|
children: item.href ? require$$1.jsxs("a", {
|
|
42816
43150
|
href: item.href,
|
|
42817
|
-
className: cn$
|
|
43151
|
+
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'),
|
|
42818
43152
|
children: [item.icon && require$$1.jsx("span", {
|
|
42819
43153
|
className: "mr-2",
|
|
42820
43154
|
children: item.icon
|
|
@@ -42822,7 +43156,7 @@ function NavigationList(_ref4) {
|
|
|
42822
43156
|
}) : require$$1.jsxs("button", {
|
|
42823
43157
|
onClick: item.onClick,
|
|
42824
43158
|
disabled: item.disabled,
|
|
42825
|
-
className: cn$
|
|
43159
|
+
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'),
|
|
42826
43160
|
children: [item.icon && require$$1.jsx("span", {
|
|
42827
43161
|
className: "mr-2",
|
|
42828
43162
|
children: item.icon
|
|
@@ -42833,7 +43167,7 @@ function NavigationList(_ref4) {
|
|
|
42833
43167
|
});
|
|
42834
43168
|
}
|
|
42835
43169
|
|
|
42836
|
-
function cn$
|
|
43170
|
+
function cn$c() {
|
|
42837
43171
|
for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42838
43172
|
classes[_key] = arguments[_key];
|
|
42839
43173
|
}
|
|
@@ -42849,7 +43183,7 @@ function CarouselSlide(_ref) {
|
|
|
42849
43183
|
var children = _ref.children,
|
|
42850
43184
|
className = _ref.className;
|
|
42851
43185
|
return require$$1.jsx("div", {
|
|
42852
|
-
className: cn$
|
|
43186
|
+
className: cn$c('flex-shrink-0 w-full', className),
|
|
42853
43187
|
children: children
|
|
42854
43188
|
});
|
|
42855
43189
|
}
|
|
@@ -42892,7 +43226,7 @@ function CarouselControls(_ref2) {
|
|
|
42892
43226
|
onClick: function onClick() {
|
|
42893
43227
|
return onSlideSelect(index);
|
|
42894
43228
|
},
|
|
42895
|
-
className: cn$
|
|
43229
|
+
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'),
|
|
42896
43230
|
"aria-label": "Go to slide ".concat(index + 1)
|
|
42897
43231
|
}, index);
|
|
42898
43232
|
}), onToggleAutoplay && require$$1.jsx("button", {
|
|
@@ -43033,7 +43367,7 @@ function Carousel(_ref3) {
|
|
|
43033
43367
|
var translateX = -(currentSlide * (100 / slidesToShow));
|
|
43034
43368
|
return require$$1.jsxs("div", {
|
|
43035
43369
|
ref: carouselRef,
|
|
43036
|
-
className: cn$
|
|
43370
|
+
className: cn$c('relative overflow-hidden rounded-lg focus:outline-none', aspectRatios$1[aspectRatio], className),
|
|
43037
43371
|
tabIndex: 0,
|
|
43038
43372
|
onMouseEnter: function onMouseEnter() {
|
|
43039
43373
|
return setIsPaused(true);
|
|
@@ -43088,7 +43422,7 @@ function ImageCarousel(_a) {
|
|
|
43088
43422
|
children: [require$$1.jsx("img", {
|
|
43089
43423
|
src: image.src,
|
|
43090
43424
|
alt: image.alt,
|
|
43091
|
-
className: cn$
|
|
43425
|
+
className: cn$c('w-full h-full', objectFit === 'cover' ? 'object-cover' : 'object-contain')
|
|
43092
43426
|
}), image.caption && require$$1.jsx("div", {
|
|
43093
43427
|
className: "absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/60 to-transparent p-4",
|
|
43094
43428
|
children: require$$1.jsx("p", {
|
|
@@ -43102,203 +43436,6 @@ function ImageCarousel(_a) {
|
|
|
43102
43436
|
}));
|
|
43103
43437
|
}
|
|
43104
43438
|
|
|
43105
|
-
function cn$c() {
|
|
43106
|
-
for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
43107
|
-
classes[_key] = arguments[_key];
|
|
43108
|
-
}
|
|
43109
|
-
return classes.filter(Boolean).join(' ');
|
|
43110
|
-
}
|
|
43111
|
-
var containerSizes = {
|
|
43112
|
-
xs: 'max-w-xs',
|
|
43113
|
-
// 320px
|
|
43114
|
-
sm: 'max-w-sm',
|
|
43115
|
-
// 384px
|
|
43116
|
-
md: 'max-w-md',
|
|
43117
|
-
// 448px
|
|
43118
|
-
lg: 'max-w-lg',
|
|
43119
|
-
// 512px
|
|
43120
|
-
xl: 'max-w-xl',
|
|
43121
|
-
// 576px
|
|
43122
|
-
'2xl': 'max-w-2xl',
|
|
43123
|
-
// 672px
|
|
43124
|
-
full: 'max-w-full'
|
|
43125
|
-
};
|
|
43126
|
-
var containerPadding = {
|
|
43127
|
-
none: '',
|
|
43128
|
-
sm: 'px-4',
|
|
43129
|
-
md: 'px-6',
|
|
43130
|
-
lg: 'px-8',
|
|
43131
|
-
xl: 'px-12'
|
|
43132
|
-
};
|
|
43133
|
-
function Container(_ref) {
|
|
43134
|
-
var children = _ref.children,
|
|
43135
|
-
_ref$size = _ref.size,
|
|
43136
|
-
size = _ref$size === void 0 ? 'full' : _ref$size,
|
|
43137
|
-
_ref$padding = _ref.padding,
|
|
43138
|
-
padding = _ref$padding === void 0 ? 'md' : _ref$padding,
|
|
43139
|
-
_ref$centered = _ref.centered,
|
|
43140
|
-
centered = _ref$centered === void 0 ? true : _ref$centered,
|
|
43141
|
-
className = _ref.className,
|
|
43142
|
-
_ref$as = _ref.as,
|
|
43143
|
-
Component = _ref$as === void 0 ? 'div' : _ref$as;
|
|
43144
|
-
return require$$1.jsx(Component, {
|
|
43145
|
-
className: cn$c(containerSizes[size], containerPadding[padding], centered && 'mx-auto', className),
|
|
43146
|
-
children: children
|
|
43147
|
-
});
|
|
43148
|
-
}
|
|
43149
|
-
function ResponsiveContainer(_ref2) {
|
|
43150
|
-
var children = _ref2.children,
|
|
43151
|
-
_ref2$breakpoints = _ref2.breakpoints,
|
|
43152
|
-
breakpoints = _ref2$breakpoints === void 0 ? {
|
|
43153
|
-
sm: 'sm',
|
|
43154
|
-
md: 'md',
|
|
43155
|
-
lg: 'lg',
|
|
43156
|
-
xl: 'xl',
|
|
43157
|
-
'2xl': '2xl'
|
|
43158
|
-
} : _ref2$breakpoints,
|
|
43159
|
-
_ref2$padding = _ref2.padding,
|
|
43160
|
-
padding = _ref2$padding === void 0 ? 'md' : _ref2$padding,
|
|
43161
|
-
_ref2$centered = _ref2.centered,
|
|
43162
|
-
centered = _ref2$centered === void 0 ? true : _ref2$centered,
|
|
43163
|
-
className = _ref2.className,
|
|
43164
|
-
_ref2$as = _ref2.as,
|
|
43165
|
-
Component = _ref2$as === void 0 ? 'div' : _ref2$as;
|
|
43166
|
-
var responsiveClasses = Object.entries(breakpoints).map(function (_ref3) {
|
|
43167
|
-
var _ref4 = _slicedToArray(_ref3, 2),
|
|
43168
|
-
breakpoint = _ref4[0],
|
|
43169
|
-
size = _ref4[1];
|
|
43170
|
-
if (breakpoint === 'sm') return containerSizes[size];
|
|
43171
|
-
return "".concat(breakpoint, ":").concat(containerSizes[size]);
|
|
43172
|
-
}).join(' ');
|
|
43173
|
-
return require$$1.jsx(Component, {
|
|
43174
|
-
className: cn$c(responsiveClasses, containerPadding[padding], centered && 'mx-auto', className),
|
|
43175
|
-
children: children
|
|
43176
|
-
});
|
|
43177
|
-
}
|
|
43178
|
-
function GridContainer(_ref5) {
|
|
43179
|
-
var children = _ref5.children,
|
|
43180
|
-
_ref5$cols = _ref5.cols,
|
|
43181
|
-
cols = _ref5$cols === void 0 ? 1 : _ref5$cols,
|
|
43182
|
-
_ref5$gap = _ref5.gap,
|
|
43183
|
-
gap = _ref5$gap === void 0 ? 4 : _ref5$gap,
|
|
43184
|
-
className = _ref5.className;
|
|
43185
|
-
var getGridCols = function getGridCols() {
|
|
43186
|
-
if (typeof cols === 'number') {
|
|
43187
|
-
return "grid-cols-".concat(cols);
|
|
43188
|
-
}
|
|
43189
|
-
var classes = [];
|
|
43190
|
-
if (cols.sm) classes.push("grid-cols-".concat(cols.sm));
|
|
43191
|
-
if (cols.md) classes.push("md:grid-cols-".concat(cols.md));
|
|
43192
|
-
if (cols.lg) classes.push("lg:grid-cols-".concat(cols.lg));
|
|
43193
|
-
if (cols.xl) classes.push("xl:grid-cols-".concat(cols.xl));
|
|
43194
|
-
return classes.join(' ');
|
|
43195
|
-
};
|
|
43196
|
-
var getGap = function getGap() {
|
|
43197
|
-
if (typeof gap === 'number') {
|
|
43198
|
-
return "gap-".concat(gap);
|
|
43199
|
-
}
|
|
43200
|
-
var classes = [];
|
|
43201
|
-
if (gap.x) classes.push("gap-x-".concat(gap.x));
|
|
43202
|
-
if (gap.y) classes.push("gap-y-".concat(gap.y));
|
|
43203
|
-
return classes.join(' ');
|
|
43204
|
-
};
|
|
43205
|
-
return require$$1.jsx("div", {
|
|
43206
|
-
className: cn$c('grid', getGridCols(), getGap(), className),
|
|
43207
|
-
children: children
|
|
43208
|
-
});
|
|
43209
|
-
}
|
|
43210
|
-
function FlexContainer(_ref6) {
|
|
43211
|
-
var children = _ref6.children,
|
|
43212
|
-
_ref6$direction = _ref6.direction,
|
|
43213
|
-
direction = _ref6$direction === void 0 ? 'row' : _ref6$direction,
|
|
43214
|
-
_ref6$wrap = _ref6.wrap,
|
|
43215
|
-
wrap = _ref6$wrap === void 0 ? 'nowrap' : _ref6$wrap,
|
|
43216
|
-
_ref6$align = _ref6.align,
|
|
43217
|
-
align = _ref6$align === void 0 ? 'start' : _ref6$align,
|
|
43218
|
-
_ref6$justify = _ref6.justify,
|
|
43219
|
-
justify = _ref6$justify === void 0 ? 'start' : _ref6$justify,
|
|
43220
|
-
_ref6$gap = _ref6.gap,
|
|
43221
|
-
gap = _ref6$gap === void 0 ? 0 : _ref6$gap,
|
|
43222
|
-
className = _ref6.className;
|
|
43223
|
-
var directionClasses = {
|
|
43224
|
-
'row': 'flex-row',
|
|
43225
|
-
'row-reverse': 'flex-row-reverse',
|
|
43226
|
-
'col': 'flex-col',
|
|
43227
|
-
'col-reverse': 'flex-col-reverse'
|
|
43228
|
-
};
|
|
43229
|
-
var wrapClasses = {
|
|
43230
|
-
'wrap': 'flex-wrap',
|
|
43231
|
-
'wrap-reverse': 'flex-wrap-reverse',
|
|
43232
|
-
'nowrap': 'flex-nowrap'
|
|
43233
|
-
};
|
|
43234
|
-
var alignClasses = {
|
|
43235
|
-
'start': 'items-start',
|
|
43236
|
-
'end': 'items-end',
|
|
43237
|
-
'center': 'items-center',
|
|
43238
|
-
'baseline': 'items-baseline',
|
|
43239
|
-
'stretch': 'items-stretch'
|
|
43240
|
-
};
|
|
43241
|
-
var justifyClasses = {
|
|
43242
|
-
'start': 'justify-start',
|
|
43243
|
-
'end': 'justify-end',
|
|
43244
|
-
'center': 'justify-center',
|
|
43245
|
-
'between': 'justify-between',
|
|
43246
|
-
'around': 'justify-around',
|
|
43247
|
-
'evenly': 'justify-evenly'
|
|
43248
|
-
};
|
|
43249
|
-
return require$$1.jsx("div", {
|
|
43250
|
-
className: cn$c('flex', directionClasses[direction], wrapClasses[wrap], alignClasses[align], justifyClasses[justify], gap > 0 && "gap-".concat(gap), className),
|
|
43251
|
-
children: children
|
|
43252
|
-
});
|
|
43253
|
-
}
|
|
43254
|
-
function Stack(_ref7) {
|
|
43255
|
-
var children = _ref7.children,
|
|
43256
|
-
_ref7$spacing = _ref7.spacing,
|
|
43257
|
-
spacing = _ref7$spacing === void 0 ? 4 : _ref7$spacing,
|
|
43258
|
-
divider = _ref7.divider,
|
|
43259
|
-
className = _ref7.className;
|
|
43260
|
-
var childrenArray = React.Children.toArray(children);
|
|
43261
|
-
return require$$1.jsx("div", {
|
|
43262
|
-
className: cn$c("space-y-".concat(spacing), className),
|
|
43263
|
-
children: childrenArray.map(function (child, index) {
|
|
43264
|
-
return require$$1.jsxs(React.Fragment, {
|
|
43265
|
-
children: [child, divider && index < childrenArray.length - 1 && require$$1.jsx("div", {
|
|
43266
|
-
className: "flex justify-center",
|
|
43267
|
-
children: divider
|
|
43268
|
-
})]
|
|
43269
|
-
}, index);
|
|
43270
|
-
})
|
|
43271
|
-
});
|
|
43272
|
-
}
|
|
43273
|
-
function HStack(_ref8) {
|
|
43274
|
-
var children = _ref8.children,
|
|
43275
|
-
_ref8$spacing = _ref8.spacing,
|
|
43276
|
-
spacing = _ref8$spacing === void 0 ? 4 : _ref8$spacing,
|
|
43277
|
-
divider = _ref8.divider,
|
|
43278
|
-
_ref8$align = _ref8.align,
|
|
43279
|
-
align = _ref8$align === void 0 ? 'center' : _ref8$align,
|
|
43280
|
-
className = _ref8.className;
|
|
43281
|
-
var childrenArray = React.Children.toArray(children);
|
|
43282
|
-
var alignClasses = {
|
|
43283
|
-
'start': 'items-start',
|
|
43284
|
-
'end': 'items-end',
|
|
43285
|
-
'center': 'items-center',
|
|
43286
|
-
'baseline': 'items-baseline',
|
|
43287
|
-
'stretch': 'items-stretch'
|
|
43288
|
-
};
|
|
43289
|
-
return require$$1.jsx("div", {
|
|
43290
|
-
className: cn$c('flex', alignClasses[align], "gap-".concat(spacing), className),
|
|
43291
|
-
children: childrenArray.map(function (child, index) {
|
|
43292
|
-
return require$$1.jsxs(React.Fragment, {
|
|
43293
|
-
children: [child, divider && index < childrenArray.length - 1 && require$$1.jsx("div", {
|
|
43294
|
-
className: "flex items-center",
|
|
43295
|
-
children: divider
|
|
43296
|
-
})]
|
|
43297
|
-
}, index);
|
|
43298
|
-
})
|
|
43299
|
-
});
|
|
43300
|
-
}
|
|
43301
|
-
|
|
43302
43439
|
var TabsContext = /*#__PURE__*/React.createContext(null);
|
|
43303
43440
|
function Tabs(_ref) {
|
|
43304
43441
|
var _ref$defaultValue = _ref.defaultValue,
|
|
@@ -57281,6 +57418,7 @@ exports.MenuItem = MenuItem;
|
|
|
57281
57418
|
exports.MenuRadioGroup = MenuRadioGroup;
|
|
57282
57419
|
exports.MenuRadioItem = MenuRadioItem;
|
|
57283
57420
|
exports.MenuSeparator = MenuSeparator;
|
|
57421
|
+
exports.MetricCard = MetricCard;
|
|
57284
57422
|
exports.MinusIcon = MinusIcon;
|
|
57285
57423
|
exports.Modal = Modal;
|
|
57286
57424
|
exports.ModalBody = ModalBody;
|
|
@@ -57308,6 +57446,7 @@ exports.PopoverContent = PopoverContent;
|
|
|
57308
57446
|
exports.PopoverTrigger = PopoverTrigger;
|
|
57309
57447
|
exports.ProcessFlowAnimation = ProcessFlowAnimation;
|
|
57310
57448
|
exports.Progress = Progress;
|
|
57449
|
+
exports.ProgressBar = ProgressBar;
|
|
57311
57450
|
exports.Radio = Radio$1;
|
|
57312
57451
|
exports.RadioGroup = RadioGroup;
|
|
57313
57452
|
exports.RadioGroupItem = RadioGroupItem;
|