@driveflux/beam 3.0.16 → 3.0.18
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/accordion/Accordion.js +87 -17
- package/dist/accordion/Accordion.stories.js +1 -1
- package/dist/alert/Alert.d.ts +1 -1
- package/dist/alert/Alert.d.ts.map +1 -1
- package/dist/alert/Alert.js +94 -21
- package/dist/alert/Alert.js.map +1 -1
- package/dist/alert/Alert.stories.js +3 -3
- package/dist/animations/LoadingAnimation.js +1 -1
- package/dist/badge/Badge.js +19 -10
- package/dist/badge/Badge.stories.js +1 -1
- package/dist/base-styles.css +1 -1
- package/dist/box/Box.js +75 -11
- package/dist/box/Box.stories.js +1 -1
- package/dist/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/breadcrumbs/Breadcrumbs.js +94 -31
- package/dist/breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/breadcrumbs/Breadcrumbs.stories.js +3 -3
- package/dist/button/Button.js +75 -11
- package/dist/button/Button.stories.js +1 -1
- package/dist/button/TextButton.js +75 -11
- package/dist/card/Card.js +105 -26
- package/dist/card/Card.stories.js +1 -1
- package/dist/carousel/Carousel.js +53 -26
- package/dist/carousel/Carousel.stories.js +1 -1
- package/dist/carousel/CarouselButton.js +75 -11
- package/dist/center/Center.js +75 -11
- package/dist/center/Center.stories.js +1 -1
- package/dist/checkbox/Checkbox.js +77 -13
- package/dist/checkbox/Checkbox.stories.js +1 -1
- package/dist/chip/Chip.js +75 -11
- package/dist/chip/Chip.stories.js +1 -1
- package/dist/circular-progress/CircularProgress.js +23 -14
- package/dist/circular-progress/CircularProgress.stories.js +4 -4
- package/dist/command/command.d.ts +1 -1
- package/dist/command/command.d.ts.map +1 -1
- package/dist/command/command.js +110 -31
- package/dist/command/command.js.map +1 -1
- package/dist/datepicker/DatePicker.d.ts.map +1 -1
- package/dist/datepicker/DatePicker.js +25 -16
- package/dist/datepicker/DatePicker.js.map +1 -1
- package/dist/datepicker/DatePicker.stories.js +12 -13
- package/dist/datepicker/DatePicker.stories.js.map +1 -1
- package/dist/datepicker/DatePickerDrawer.js +4 -4
- package/dist/datepicker/DatePickerPopover.js +7 -7
- package/dist/datepicker/utils.js +2 -2
- package/dist/dialog/index.js +97 -24
- package/dist/dialog/index.js.map +1 -1
- package/dist/divider/Divider.js +75 -11
- package/dist/divider/Divider.stories.js +1 -1
- package/dist/drawer/index.js +99 -26
- package/dist/dropdown/Dropdown.js +119 -34
- package/dist/dropdown/Dropdown.stories.js +3 -3
- package/dist/dropdown/Dropdown.stories.js.map +1 -1
- package/dist/field-wrapper/FieldWrapper.js +75 -11
- package/dist/field-wrapper/FieldWrapper.stories.js +5 -5
- package/dist/flex/Flex.js +75 -11
- package/dist/flex/Flex.stories.js +1 -1
- package/dist/grid/Grid.js +75 -11
- package/dist/grid/Grid.stories.js +1 -1
- package/dist/hooks/use-breakpoint-value.js +2 -2
- package/dist/hooks/use-media-query.js +4 -4
- package/dist/hstack/HStack.js +75 -11
- package/dist/hstack/HStack.stories.js +1 -1
- package/dist/icons/FluxLogo.js +22 -13
- package/dist/icons/FluxLogoTable.js +19 -10
- package/dist/icons/Icon.js +19 -10
- package/dist/icons/Icon.stories.js +1 -1
- package/dist/icons/Icon24Hours.js +19 -10
- package/dist/icons/IconAcceleration.js +19 -10
- package/dist/icons/IconAccount.js +19 -10
- package/dist/icons/IconApplicant.js +19 -10
- package/dist/icons/IconArrow.js +20 -11
- package/dist/icons/IconArrowBack.js +19 -10
- package/dist/icons/IconArrowForward.js +19 -10
- package/dist/icons/IconArrowTopLeft.js +19 -10
- package/dist/icons/IconBluesharkProductGuide.js +22 -13
- package/dist/icons/IconBolt.js +19 -10
- package/dist/icons/IconBriefcase.js +19 -10
- package/dist/icons/IconBulb.js +19 -10
- package/dist/icons/IconCalendar.js +19 -10
- package/dist/icons/IconCalendarArrowBack.js +19 -10
- package/dist/icons/IconCalendarArrowForward.js +19 -10
- package/dist/icons/IconCalendarDoubleArrowBack.js +19 -10
- package/dist/icons/IconCalendarDoubleArrowForward.js +19 -10
- package/dist/icons/IconCancel.js +19 -10
- package/dist/icons/IconCancelMark.js +19 -10
- package/dist/icons/IconCarSUV.js +19 -10
- package/dist/icons/IconCarSedan.js +23 -14
- package/dist/icons/IconChain.js +19 -10
- package/dist/icons/IconCheckmark.js +19 -10
- package/dist/icons/IconChevronRight.js +19 -10
- package/dist/icons/IconCircle.js +19 -10
- package/dist/icons/IconCircleCheckmark.js +19 -10
- package/dist/icons/IconCircleError.js +19 -10
- package/dist/icons/IconCircleExclamation.js +19 -10
- package/dist/icons/IconCircleMark.js +19 -10
- package/dist/icons/IconCircleOutline.js +19 -10
- package/dist/icons/IconClock.js +19 -10
- package/dist/icons/IconClose.js +19 -10
- package/dist/icons/IconCollapseAll.js +19 -10
- package/dist/icons/IconConcierge.js +19 -10
- package/dist/icons/IconConciergeService.js +19 -10
- package/dist/icons/IconCreditCard.js +19 -10
- package/dist/icons/IconDash.js +19 -10
- package/dist/icons/IconDeliver.js +19 -10
- package/dist/icons/IconDelivery.js +21 -12
- package/dist/icons/IconDetails.js +19 -10
- package/dist/icons/IconDot.js +19 -10
- package/dist/icons/IconDownload.js +19 -10
- package/dist/icons/IconEVCharging.js +19 -10
- package/dist/icons/IconElectricCarFuel.js +19 -10
- package/dist/icons/IconEllipsis.js +19 -10
- package/dist/icons/IconEnvelope.js +19 -10
- package/dist/icons/IconExpandAll.js +19 -10
- package/dist/icons/IconEye.js +22 -13
- package/dist/icons/IconFacebook.js +19 -10
- package/dist/icons/IconFilter.js +19 -10
- package/dist/icons/IconFlagMalaysia.js +19 -10
- package/dist/icons/IconGiveKey.js +19 -10
- package/dist/icons/IconGlobe.js +19 -10
- package/dist/icons/IconGoogle.js +22 -13
- package/dist/icons/IconHome.js +21 -12
- package/dist/icons/IconHostAdvertise.js +19 -10
- package/dist/icons/IconHostCar.js +19 -10
- package/dist/icons/IconHostCash.js +19 -10
- package/dist/icons/IconHostHandle.js +19 -10
- package/dist/icons/IconHostLocation.js +19 -10
- package/dist/icons/IconHostPayment.js +19 -10
- package/dist/icons/IconHostService.js +19 -10
- package/dist/icons/IconHotDeals.js +19 -10
- package/dist/icons/IconInfo.js +19 -10
- package/dist/icons/IconInstagram.js +19 -10
- package/dist/icons/IconInsurance.js +19 -10
- package/dist/icons/IconInternet.js +19 -10
- package/dist/icons/IconInventory.js +21 -12
- package/dist/icons/IconLaurel.js +19 -10
- package/dist/icons/IconLinkedIn.js +19 -10
- package/dist/icons/IconLoading.js +19 -10
- package/dist/icons/IconLocation.js +19 -10
- package/dist/icons/IconLock.js +19 -10
- package/dist/icons/IconLogistics.js +19 -10
- package/dist/icons/IconMail.js +25 -16
- package/dist/icons/IconMember.js +21 -12
- package/dist/icons/IconMobilePen.js +19 -10
- package/dist/icons/IconMotorcycleMoped.js +21 -12
- package/dist/icons/IconNoCost.js +21 -12
- package/dist/icons/IconPDF.js +19 -10
- package/dist/icons/IconPencil.js +19 -10
- package/dist/icons/IconPhone.js +19 -10
- package/dist/icons/IconPlus.js +19 -10
- package/dist/icons/IconPricing.js +19 -10
- package/dist/icons/IconProtected.js +20 -11
- package/dist/icons/IconPsychology.js +19 -10
- package/dist/icons/IconQuestionTooltip.js +75 -11
- package/dist/icons/IconQuote.js +19 -10
- package/dist/icons/IconRate.js +20 -11
- package/dist/icons/IconRegister.js +19 -10
- package/dist/icons/IconReport.js +21 -12
- package/dist/icons/IconReturn.js +19 -10
- package/dist/icons/IconSearch.js +19 -10
- package/dist/icons/IconSecure.js +20 -11
- package/dist/icons/IconSecurity.js +19 -10
- package/dist/icons/IconSedanOutline.js +19 -10
- package/dist/icons/IconSelectArrow.js +20 -11
- package/dist/icons/IconSort.js +19 -10
- package/dist/icons/IconSortListed.js +19 -10
- package/dist/icons/IconSortPriceAscending.js +19 -10
- package/dist/icons/IconSortPriceDescending.js +19 -10
- package/dist/icons/IconSortYear.js +19 -10
- package/dist/icons/IconSpan.js +20 -11
- package/dist/icons/IconSpeaker.js +19 -10
- package/dist/icons/IconSpecialCar.js +20 -11
- package/dist/icons/IconStar.js +19 -10
- package/dist/icons/IconStockPhoto.js +19 -10
- package/dist/icons/IconSubscription.js +19 -10
- package/dist/icons/IconSubscriptions.js +19 -10
- package/dist/icons/IconSwap.js +19 -10
- package/dist/icons/IconTax.js +19 -10
- package/dist/icons/IconThinArrow.js +20 -11
- package/dist/icons/IconThumbsdown.js +19 -10
- package/dist/icons/IconThumbsup.js +19 -10
- package/dist/icons/IconTool.js +20 -11
- package/dist/icons/IconTooltip.js +75 -11
- package/dist/icons/IconTrash.js +19 -10
- package/dist/icons/IconTriangleExclamation.js +19 -10
- package/dist/icons/IconTyersBrakes.js +19 -10
- package/dist/icons/IconTyre.js +19 -10
- package/dist/icons/IconVacancy.js +19 -10
- package/dist/icons/IconVolunteer.js +19 -10
- package/dist/icons/IconWhatsapp.js +19 -10
- package/dist/icons/IconXPlatform.js +19 -10
- package/dist/icons/IconZeroEffort.js +21 -12
- package/dist/icons/Logo.js +19 -10
- package/dist/input/Input.js +17 -8
- package/dist/input-mask/InputMask.js +19 -10
- package/dist/input-mask/mask-trackers.js +1 -1
- package/dist/input-select/InputSelect.js +74 -41
- package/dist/input-select/InputSelect.stories.js +1 -1
- package/dist/popover/popover.d.ts +1 -1
- package/dist/popover/popover.js +76 -12
- package/dist/progress/Progress.js +75 -11
- package/dist/radio/Radio.js +75 -11
- package/dist/scroll-area/scroll-area.js +81 -14
- package/dist/search-input-select/SearchInputSelect.js +72 -39
- package/dist/select/Select.js +73 -34
- package/dist/skeleton/Skeleton.js +19 -10
- package/dist/skeleton/Skeleton.stories.js +1 -1
- package/dist/slider/Slider.js +75 -11
- package/dist/slider/Slider.stories.js +1 -1
- package/dist/stack/Stack.js +75 -11
- package/dist/stack/Stack.stories.js +1 -1
- package/dist/styles.css +1 -7
- package/dist/table/Table.d.ts +1 -1
- package/dist/table/Table.d.ts.map +1 -1
- package/dist/table/Table.js +118 -33
- package/dist/table/Table.js.map +1 -1
- package/dist/table/Table.stories.js +1 -1
- package/dist/tabs/Tabs.js +89 -19
- package/dist/tabs/Tabs.stories.js +1 -1
- package/dist/text/Text.js +75 -11
- package/dist/text/Text.stories.js +1 -1
- package/dist/toast/Toast.stories.js +4 -4
- package/dist/toast/ToastBox.js +4 -4
- package/dist/toast/sonner.js +3 -3
- package/dist/toggle/Toggle.js +78 -14
- package/dist/toggle/Toggle.stories.js +1 -1
- package/dist/tooltip/Tooltip.js +32 -14
- package/dist/tooltip/Tooltip.stories.js +2 -2
- package/dist/vstack/VStack.js +75 -11
- package/dist/vstack/VStack.stories.js +1 -1
- package/package.json +29 -29
package/dist/card/Card.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
function _array_like_to_array(arr, len) {
|
|
2
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
|
+
return arr2;
|
|
5
|
+
}
|
|
6
|
+
function _array_with_holes(arr) {
|
|
7
|
+
if (Array.isArray(arr)) return arr;
|
|
8
|
+
}
|
|
1
9
|
function _define_property(obj, key, value) {
|
|
2
10
|
if (key in obj) {
|
|
3
11
|
Object.defineProperty(obj, key, {
|
|
@@ -11,6 +19,36 @@ function _define_property(obj, key, value) {
|
|
|
11
19
|
}
|
|
12
20
|
return obj;
|
|
13
21
|
}
|
|
22
|
+
function _iterable_to_array(iter) {
|
|
23
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
24
|
+
}
|
|
25
|
+
function _iterable_to_array_limit(arr, i) {
|
|
26
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
27
|
+
if (_i == null) return;
|
|
28
|
+
var _arr = [];
|
|
29
|
+
var _n = true;
|
|
30
|
+
var _d = false;
|
|
31
|
+
var _s, _e;
|
|
32
|
+
try {
|
|
33
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
34
|
+
_arr.push(_s.value);
|
|
35
|
+
if (i && _arr.length === i) break;
|
|
36
|
+
}
|
|
37
|
+
} catch (err) {
|
|
38
|
+
_d = true;
|
|
39
|
+
_e = err;
|
|
40
|
+
} finally{
|
|
41
|
+
try {
|
|
42
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
43
|
+
} finally{
|
|
44
|
+
if (_d) throw _e;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return _arr;
|
|
48
|
+
}
|
|
49
|
+
function _non_iterable_rest() {
|
|
50
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
51
|
+
}
|
|
14
52
|
function _object_spread(target) {
|
|
15
53
|
for(var i = 1; i < arguments.length; i++){
|
|
16
54
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -28,12 +66,22 @@ function _object_spread(target) {
|
|
|
28
66
|
}
|
|
29
67
|
function _object_without_properties(source, excluded) {
|
|
30
68
|
if (source == null) return {};
|
|
31
|
-
var target =
|
|
32
|
-
|
|
69
|
+
var target = {}, sourceKeys, key, i;
|
|
70
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
71
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
72
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
73
|
+
key = sourceKeys[i];
|
|
74
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
75
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
76
|
+
target[key] = source[key];
|
|
77
|
+
}
|
|
78
|
+
return target;
|
|
79
|
+
}
|
|
80
|
+
target = _object_without_properties_loose(source, excluded);
|
|
33
81
|
if (Object.getOwnPropertySymbols) {
|
|
34
|
-
|
|
35
|
-
for(i = 0; i <
|
|
36
|
-
key =
|
|
82
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
83
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
84
|
+
key = sourceKeys[i];
|
|
37
85
|
if (excluded.indexOf(key) >= 0) continue;
|
|
38
86
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
87
|
target[key] = source[key];
|
|
@@ -43,73 +91,104 @@ function _object_without_properties(source, excluded) {
|
|
|
43
91
|
}
|
|
44
92
|
function _object_without_properties_loose(source, excluded) {
|
|
45
93
|
if (source == null) return {};
|
|
46
|
-
var target = {};
|
|
47
|
-
var sourceKeys = Object.keys(source);
|
|
48
|
-
var key, i;
|
|
94
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
49
95
|
for(i = 0; i < sourceKeys.length; i++){
|
|
50
96
|
key = sourceKeys[i];
|
|
51
97
|
if (excluded.indexOf(key) >= 0) continue;
|
|
98
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
52
99
|
target[key] = source[key];
|
|
53
100
|
}
|
|
54
101
|
return target;
|
|
55
102
|
}
|
|
103
|
+
function _sliced_to_array(arr, i) {
|
|
104
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
105
|
+
}
|
|
106
|
+
function _to_array(arr) {
|
|
107
|
+
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
108
|
+
}
|
|
109
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
110
|
+
if (!o) return;
|
|
111
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
112
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
113
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
114
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
115
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
116
|
+
}
|
|
56
117
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
57
118
|
import * as React from 'react';
|
|
58
119
|
import { cn } from '../utils';
|
|
59
|
-
export var Card = /*#__PURE__*/ React.forwardRef(function(
|
|
60
|
-
var
|
|
120
|
+
export var Card = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
121
|
+
var _ref = [
|
|
122
|
+
_0,
|
|
123
|
+
_1
|
|
124
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
61
125
|
"className"
|
|
62
|
-
]);
|
|
126
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
63
127
|
return /*#__PURE__*/ _jsx("div", _object_spread({
|
|
64
128
|
ref: ref,
|
|
65
129
|
className: cn('transition-all duration-200 ease-in-out rounded-none shadow-md hover:shadow-lg', className)
|
|
66
130
|
}, props));
|
|
67
131
|
});
|
|
68
132
|
Card.displayName = 'Card';
|
|
69
|
-
export var CardHeader = /*#__PURE__*/ React.forwardRef(function(
|
|
70
|
-
var
|
|
133
|
+
export var CardHeader = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
134
|
+
var _ref = [
|
|
135
|
+
_0,
|
|
136
|
+
_1
|
|
137
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
71
138
|
"className"
|
|
72
|
-
]);
|
|
139
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
73
140
|
return /*#__PURE__*/ _jsx("div", _object_spread({
|
|
74
141
|
ref: ref,
|
|
75
142
|
className: cn('flex flex-col space-y-1.5 p-6', className)
|
|
76
143
|
}, props));
|
|
77
144
|
});
|
|
78
145
|
CardHeader.displayName = 'CardHeader';
|
|
79
|
-
export var CardTitle = /*#__PURE__*/ React.forwardRef(function(
|
|
80
|
-
var
|
|
146
|
+
export var CardTitle = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
147
|
+
var _ref = [
|
|
148
|
+
_0,
|
|
149
|
+
_1
|
|
150
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
81
151
|
"className"
|
|
82
|
-
]);
|
|
152
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
83
153
|
return /*#__PURE__*/ _jsx("h3", _object_spread({
|
|
84
154
|
ref: ref,
|
|
85
155
|
className: cn('text-2xl font-semibold leading-none tracking-tight', className)
|
|
86
156
|
}, props));
|
|
87
157
|
});
|
|
88
158
|
CardTitle.displayName = 'CardTitle';
|
|
89
|
-
export var CardDescription = /*#__PURE__*/ React.forwardRef(function(
|
|
90
|
-
var
|
|
159
|
+
export var CardDescription = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
160
|
+
var _ref = [
|
|
161
|
+
_0,
|
|
162
|
+
_1
|
|
163
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
91
164
|
"className"
|
|
92
|
-
]);
|
|
165
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
93
166
|
return /*#__PURE__*/ _jsx("p", _object_spread({
|
|
94
167
|
ref: ref,
|
|
95
168
|
className: cn('text-sm text-zinc-500 dark:text-zinc-400', className)
|
|
96
169
|
}, props));
|
|
97
170
|
});
|
|
98
171
|
CardDescription.displayName = 'CardDescription';
|
|
99
|
-
export var CardContent = /*#__PURE__*/ React.forwardRef(function(
|
|
100
|
-
var
|
|
172
|
+
export var CardContent = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
173
|
+
var _ref = [
|
|
174
|
+
_0,
|
|
175
|
+
_1
|
|
176
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
101
177
|
"className"
|
|
102
|
-
]);
|
|
178
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
103
179
|
return /*#__PURE__*/ _jsx("div", _object_spread({
|
|
104
180
|
ref: ref,
|
|
105
181
|
className: className
|
|
106
182
|
}, props));
|
|
107
183
|
});
|
|
108
184
|
CardContent.displayName = 'CardContent';
|
|
109
|
-
export var CardFooter = /*#__PURE__*/ React.forwardRef(function(
|
|
110
|
-
var
|
|
185
|
+
export var CardFooter = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
186
|
+
var _ref = [
|
|
187
|
+
_0,
|
|
188
|
+
_1
|
|
189
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
111
190
|
"className"
|
|
112
|
-
]);
|
|
191
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
113
192
|
return /*#__PURE__*/ _jsx("div", _object_spread({
|
|
114
193
|
ref: ref,
|
|
115
194
|
className: cn('flex items-center', className)
|
|
@@ -97,12 +97,22 @@ function _object_spread_props(target, source) {
|
|
|
97
97
|
}
|
|
98
98
|
function _object_without_properties(source, excluded) {
|
|
99
99
|
if (source == null) return {};
|
|
100
|
-
var target =
|
|
101
|
-
|
|
100
|
+
var target = {}, sourceKeys, key, i;
|
|
101
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
102
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
103
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
104
|
+
key = sourceKeys[i];
|
|
105
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
106
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
107
|
+
target[key] = source[key];
|
|
108
|
+
}
|
|
109
|
+
return target;
|
|
110
|
+
}
|
|
111
|
+
target = _object_without_properties_loose(source, excluded);
|
|
102
112
|
if (Object.getOwnPropertySymbols) {
|
|
103
|
-
|
|
104
|
-
for(i = 0; i <
|
|
105
|
-
key =
|
|
113
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
114
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
115
|
+
key = sourceKeys[i];
|
|
106
116
|
if (excluded.indexOf(key) >= 0) continue;
|
|
107
117
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
108
118
|
target[key] = source[key];
|
|
@@ -112,12 +122,11 @@ function _object_without_properties(source, excluded) {
|
|
|
112
122
|
}
|
|
113
123
|
function _object_without_properties_loose(source, excluded) {
|
|
114
124
|
if (source == null) return {};
|
|
115
|
-
var target = {};
|
|
116
|
-
var sourceKeys = Object.keys(source);
|
|
117
|
-
var key, i;
|
|
125
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
118
126
|
for(i = 0; i < sourceKeys.length; i++){
|
|
119
127
|
key = sourceKeys[i];
|
|
120
128
|
if (excluded.indexOf(key) >= 0) continue;
|
|
129
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
121
130
|
target[key] = source[key];
|
|
122
131
|
}
|
|
123
132
|
return target;
|
|
@@ -125,6 +134,9 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
125
134
|
function _sliced_to_array(arr, i) {
|
|
126
135
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
127
136
|
}
|
|
137
|
+
function _to_array(arr) {
|
|
138
|
+
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
139
|
+
}
|
|
128
140
|
function _to_consumable_array(arr) {
|
|
129
141
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
130
142
|
}
|
|
@@ -153,8 +165,11 @@ function useCarousel() {
|
|
|
153
165
|
}
|
|
154
166
|
return context;
|
|
155
167
|
}
|
|
156
|
-
export var Carousel = /*#__PURE__*/ React.forwardRef(function(
|
|
157
|
-
var
|
|
168
|
+
export var Carousel = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
169
|
+
var _ref = [
|
|
170
|
+
_0,
|
|
171
|
+
_1
|
|
172
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), opts = _ref2.opts, setApi = _ref2.setApi, _ref_plugins = _ref2.plugins, plugins = _ref_plugins === void 0 ? [] : _ref_plugins, className = _ref2.className, children = _ref2.children, _ref_showButtons = _ref2.showButtons, showButtons = _ref_showButtons === void 0 ? false : _ref_showButtons, _ref_useWheelGestures = _ref2.useWheelGestures, useWheelGestures = _ref_useWheelGestures === void 0 ? false : _ref_useWheelGestures, _ref_isMobile = _ref2.isMobile, isMobile = _ref_isMobile === void 0 ? false : _ref_isMobile, _ref_autoplay = _ref2.autoplay, autoplay = _ref_autoplay === void 0 ? false : _ref_autoplay, _ref_autoplayInterval = _ref2.autoplayInterval, autoplayInterval = _ref_autoplayInterval === void 0 ? 3000 : _ref_autoplayInterval, _ref_forceSnap = _ref2.forceSnap, forceSnap = _ref_forceSnap === void 0 ? false : _ref_forceSnap, props = _object_without_properties(_ref2, [
|
|
158
173
|
"opts",
|
|
159
174
|
"setApi",
|
|
160
175
|
"plugins",
|
|
@@ -166,7 +181,7 @@ export var Carousel = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
|
|
|
166
181
|
"autoplay",
|
|
167
182
|
"autoplayInterval",
|
|
168
183
|
"forceSnap"
|
|
169
|
-
]);
|
|
184
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
170
185
|
var emblaPlugins = useWheelGestures ? [
|
|
171
186
|
WheelGesturesPlugin()
|
|
172
187
|
].concat(_to_consumable_array(plugins)) : plugins;
|
|
@@ -270,13 +285,13 @@ export var Carousel = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
|
|
|
270
285
|
ref: ref,
|
|
271
286
|
className: cn('w-full gap-8', className),
|
|
272
287
|
"aria-roledescription": "carousel",
|
|
273
|
-
onPointerDown: function() {
|
|
288
|
+
onPointerDown: function onPointerDown() {
|
|
274
289
|
return setIsPaused(true);
|
|
275
290
|
},
|
|
276
|
-
onPointerUp: function() {
|
|
291
|
+
onPointerUp: function onPointerUp() {
|
|
277
292
|
return setIsPaused(false);
|
|
278
293
|
},
|
|
279
|
-
onPointerLeave: function() {
|
|
294
|
+
onPointerLeave: function onPointerLeave() {
|
|
280
295
|
return setIsPaused(false);
|
|
281
296
|
}
|
|
282
297
|
}, props), {
|
|
@@ -285,10 +300,13 @@ export var Carousel = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
|
|
|
285
300
|
});
|
|
286
301
|
});
|
|
287
302
|
Carousel.displayName = 'Carousel';
|
|
288
|
-
export var CarouselContent = /*#__PURE__*/ React.forwardRef(function(
|
|
289
|
-
var
|
|
303
|
+
export var CarouselContent = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
304
|
+
var _ref = [
|
|
305
|
+
_0,
|
|
306
|
+
_1
|
|
307
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
290
308
|
"className"
|
|
291
|
-
]);
|
|
309
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
292
310
|
var carouselRef = useCarousel().carouselRef;
|
|
293
311
|
return /*#__PURE__*/ _jsx("div", {
|
|
294
312
|
ref: carouselRef,
|
|
@@ -300,10 +318,13 @@ export var CarouselContent = /*#__PURE__*/ React.forwardRef(function(_param, ref
|
|
|
300
318
|
});
|
|
301
319
|
});
|
|
302
320
|
CarouselContent.displayName = 'CarouselContent';
|
|
303
|
-
export var CarouselItem = /*#__PURE__*/ React.forwardRef(function(
|
|
304
|
-
var
|
|
321
|
+
export var CarouselItem = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
322
|
+
var _ref = [
|
|
323
|
+
_0,
|
|
324
|
+
_1
|
|
325
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
305
326
|
"className"
|
|
306
|
-
]);
|
|
327
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
307
328
|
return /*#__PURE__*/ _jsx(VStack, _object_spread({
|
|
308
329
|
ref: ref,
|
|
309
330
|
role: "group",
|
|
@@ -312,11 +333,14 @@ export var CarouselItem = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
|
|
|
312
333
|
}, props));
|
|
313
334
|
});
|
|
314
335
|
CarouselItem.displayName = 'CarouselItem';
|
|
315
|
-
export var CarouselPrevious = /*#__PURE__*/ React.forwardRef(function(
|
|
316
|
-
var
|
|
336
|
+
export var CarouselPrevious = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
337
|
+
var _ref = [
|
|
338
|
+
_0,
|
|
339
|
+
_1
|
|
340
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), _ref_iconSize = _ref2.iconSize, iconSize = _ref_iconSize === void 0 ? 32 : _ref_iconSize, className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
317
341
|
"iconSize",
|
|
318
342
|
"className"
|
|
319
|
-
]);
|
|
343
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
320
344
|
var _useCarousel = useCarousel(), scrollPrev = _useCarousel.scrollPrev, canScrollPrev = _useCarousel.canScrollPrev;
|
|
321
345
|
return /*#__PURE__*/ _jsx(CarouselButton, _object_spread_props(_object_spread({
|
|
322
346
|
ref: ref,
|
|
@@ -330,11 +354,14 @@ export var CarouselPrevious = /*#__PURE__*/ React.forwardRef(function(_param, re
|
|
|
330
354
|
}));
|
|
331
355
|
});
|
|
332
356
|
CarouselPrevious.displayName = 'CarouselPrevious';
|
|
333
|
-
export var CarouselNext = /*#__PURE__*/ React.forwardRef(function(
|
|
334
|
-
var
|
|
357
|
+
export var CarouselNext = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
358
|
+
var _ref = [
|
|
359
|
+
_0,
|
|
360
|
+
_1
|
|
361
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), _ref_iconSize = _ref2.iconSize, iconSize = _ref_iconSize === void 0 ? 32 : _ref_iconSize, className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
335
362
|
"iconSize",
|
|
336
363
|
"className"
|
|
337
|
-
]);
|
|
364
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
338
365
|
var _useCarousel = useCarousel(), scrollNext = _useCarousel.scrollNext, canScrollNext = _useCarousel.canScrollNext;
|
|
339
366
|
return /*#__PURE__*/ _jsx(CarouselButton, _object_spread_props(_object_spread({
|
|
340
367
|
ref: ref,
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
function _array_like_to_array(arr, len) {
|
|
2
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
|
+
return arr2;
|
|
5
|
+
}
|
|
6
|
+
function _array_with_holes(arr) {
|
|
7
|
+
if (Array.isArray(arr)) return arr;
|
|
8
|
+
}
|
|
1
9
|
function _define_property(obj, key, value) {
|
|
2
10
|
if (key in obj) {
|
|
3
11
|
Object.defineProperty(obj, key, {
|
|
@@ -11,6 +19,36 @@ function _define_property(obj, key, value) {
|
|
|
11
19
|
}
|
|
12
20
|
return obj;
|
|
13
21
|
}
|
|
22
|
+
function _iterable_to_array(iter) {
|
|
23
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
24
|
+
}
|
|
25
|
+
function _iterable_to_array_limit(arr, i) {
|
|
26
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
27
|
+
if (_i == null) return;
|
|
28
|
+
var _arr = [];
|
|
29
|
+
var _n = true;
|
|
30
|
+
var _d = false;
|
|
31
|
+
var _s, _e;
|
|
32
|
+
try {
|
|
33
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
34
|
+
_arr.push(_s.value);
|
|
35
|
+
if (i && _arr.length === i) break;
|
|
36
|
+
}
|
|
37
|
+
} catch (err) {
|
|
38
|
+
_d = true;
|
|
39
|
+
_e = err;
|
|
40
|
+
} finally{
|
|
41
|
+
try {
|
|
42
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
43
|
+
} finally{
|
|
44
|
+
if (_d) throw _e;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return _arr;
|
|
48
|
+
}
|
|
49
|
+
function _non_iterable_rest() {
|
|
50
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
51
|
+
}
|
|
14
52
|
function _object_spread(target) {
|
|
15
53
|
for(var i = 1; i < arguments.length; i++){
|
|
16
54
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -28,12 +66,22 @@ function _object_spread(target) {
|
|
|
28
66
|
}
|
|
29
67
|
function _object_without_properties(source, excluded) {
|
|
30
68
|
if (source == null) return {};
|
|
31
|
-
var target =
|
|
32
|
-
|
|
69
|
+
var target = {}, sourceKeys, key, i;
|
|
70
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
71
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
72
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
73
|
+
key = sourceKeys[i];
|
|
74
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
75
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
76
|
+
target[key] = source[key];
|
|
77
|
+
}
|
|
78
|
+
return target;
|
|
79
|
+
}
|
|
80
|
+
target = _object_without_properties_loose(source, excluded);
|
|
33
81
|
if (Object.getOwnPropertySymbols) {
|
|
34
|
-
|
|
35
|
-
for(i = 0; i <
|
|
36
|
-
key =
|
|
82
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
83
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
84
|
+
key = sourceKeys[i];
|
|
37
85
|
if (excluded.indexOf(key) >= 0) continue;
|
|
38
86
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
87
|
target[key] = source[key];
|
|
@@ -43,27 +91,43 @@ function _object_without_properties(source, excluded) {
|
|
|
43
91
|
}
|
|
44
92
|
function _object_without_properties_loose(source, excluded) {
|
|
45
93
|
if (source == null) return {};
|
|
46
|
-
var target = {};
|
|
47
|
-
var sourceKeys = Object.keys(source);
|
|
48
|
-
var key, i;
|
|
94
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
49
95
|
for(i = 0; i < sourceKeys.length; i++){
|
|
50
96
|
key = sourceKeys[i];
|
|
51
97
|
if (excluded.indexOf(key) >= 0) continue;
|
|
98
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
52
99
|
target[key] = source[key];
|
|
53
100
|
}
|
|
54
101
|
return target;
|
|
55
102
|
}
|
|
103
|
+
function _sliced_to_array(arr, i) {
|
|
104
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
105
|
+
}
|
|
106
|
+
function _to_array(arr) {
|
|
107
|
+
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
108
|
+
}
|
|
109
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
110
|
+
if (!o) return;
|
|
111
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
112
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
113
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
114
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
115
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
116
|
+
}
|
|
56
117
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
57
118
|
import { Slot } from '@radix-ui/react-slot';
|
|
58
119
|
import { cva } from 'class-variance-authority';
|
|
59
120
|
import * as React from 'react';
|
|
60
121
|
import { cn } from '../utils.js';
|
|
61
122
|
var carouselButtonVariants = cva("inline-flex items-center justify-center whitespace-nowrap text-white font-medium disabled:pointer-events-none disabled:opacity-50 \n h-10 sm:h-9 lg:h-11 \n ");
|
|
62
|
-
var CarouselButton = /*#__PURE__*/ React.forwardRef(function(
|
|
63
|
-
var
|
|
123
|
+
var CarouselButton = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
124
|
+
var _ref = [
|
|
125
|
+
_0,
|
|
126
|
+
_1
|
|
127
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, _ref_asChild = _ref2.asChild, asChild = _ref_asChild === void 0 ? false : _ref_asChild, props = _object_without_properties(_ref2, [
|
|
64
128
|
"className",
|
|
65
129
|
"asChild"
|
|
66
|
-
]);
|
|
130
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
67
131
|
var Comp = asChild ? Slot : 'button';
|
|
68
132
|
return /*#__PURE__*/ _jsx(Comp, _object_spread({
|
|
69
133
|
className: cn(carouselButtonVariants({
|
package/dist/center/Center.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
function _array_like_to_array(arr, len) {
|
|
2
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
|
+
return arr2;
|
|
5
|
+
}
|
|
6
|
+
function _array_with_holes(arr) {
|
|
7
|
+
if (Array.isArray(arr)) return arr;
|
|
8
|
+
}
|
|
1
9
|
function _define_property(obj, key, value) {
|
|
2
10
|
if (key in obj) {
|
|
3
11
|
Object.defineProperty(obj, key, {
|
|
@@ -11,6 +19,36 @@ function _define_property(obj, key, value) {
|
|
|
11
19
|
}
|
|
12
20
|
return obj;
|
|
13
21
|
}
|
|
22
|
+
function _iterable_to_array(iter) {
|
|
23
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
24
|
+
}
|
|
25
|
+
function _iterable_to_array_limit(arr, i) {
|
|
26
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
27
|
+
if (_i == null) return;
|
|
28
|
+
var _arr = [];
|
|
29
|
+
var _n = true;
|
|
30
|
+
var _d = false;
|
|
31
|
+
var _s, _e;
|
|
32
|
+
try {
|
|
33
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
34
|
+
_arr.push(_s.value);
|
|
35
|
+
if (i && _arr.length === i) break;
|
|
36
|
+
}
|
|
37
|
+
} catch (err) {
|
|
38
|
+
_d = true;
|
|
39
|
+
_e = err;
|
|
40
|
+
} finally{
|
|
41
|
+
try {
|
|
42
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
43
|
+
} finally{
|
|
44
|
+
if (_d) throw _e;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return _arr;
|
|
48
|
+
}
|
|
49
|
+
function _non_iterable_rest() {
|
|
50
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
51
|
+
}
|
|
14
52
|
function _object_spread(target) {
|
|
15
53
|
for(var i = 1; i < arguments.length; i++){
|
|
16
54
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -28,12 +66,22 @@ function _object_spread(target) {
|
|
|
28
66
|
}
|
|
29
67
|
function _object_without_properties(source, excluded) {
|
|
30
68
|
if (source == null) return {};
|
|
31
|
-
var target =
|
|
32
|
-
|
|
69
|
+
var target = {}, sourceKeys, key, i;
|
|
70
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
71
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
72
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
73
|
+
key = sourceKeys[i];
|
|
74
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
75
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
76
|
+
target[key] = source[key];
|
|
77
|
+
}
|
|
78
|
+
return target;
|
|
79
|
+
}
|
|
80
|
+
target = _object_without_properties_loose(source, excluded);
|
|
33
81
|
if (Object.getOwnPropertySymbols) {
|
|
34
|
-
|
|
35
|
-
for(i = 0; i <
|
|
36
|
-
key =
|
|
82
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
83
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
84
|
+
key = sourceKeys[i];
|
|
37
85
|
if (excluded.indexOf(key) >= 0) continue;
|
|
38
86
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
87
|
target[key] = source[key];
|
|
@@ -43,24 +91,40 @@ function _object_without_properties(source, excluded) {
|
|
|
43
91
|
}
|
|
44
92
|
function _object_without_properties_loose(source, excluded) {
|
|
45
93
|
if (source == null) return {};
|
|
46
|
-
var target = {};
|
|
47
|
-
var sourceKeys = Object.keys(source);
|
|
48
|
-
var key, i;
|
|
94
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
49
95
|
for(i = 0; i < sourceKeys.length; i++){
|
|
50
96
|
key = sourceKeys[i];
|
|
51
97
|
if (excluded.indexOf(key) >= 0) continue;
|
|
98
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
52
99
|
target[key] = source[key];
|
|
53
100
|
}
|
|
54
101
|
return target;
|
|
55
102
|
}
|
|
103
|
+
function _sliced_to_array(arr, i) {
|
|
104
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
105
|
+
}
|
|
106
|
+
function _to_array(arr) {
|
|
107
|
+
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
108
|
+
}
|
|
109
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
110
|
+
if (!o) return;
|
|
111
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
112
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
113
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
114
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
115
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
116
|
+
}
|
|
56
117
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
57
118
|
import * as React from 'react';
|
|
58
119
|
import Box from '../box/Box';
|
|
59
120
|
import { cn } from '../utils';
|
|
60
|
-
var Center = /*#__PURE__*/ React.forwardRef(function(
|
|
61
|
-
var
|
|
121
|
+
var Center = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
122
|
+
var _ref = [
|
|
123
|
+
_0,
|
|
124
|
+
_1
|
|
125
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
62
126
|
"className"
|
|
63
|
-
]);
|
|
127
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
64
128
|
return /*#__PURE__*/ _jsx(Box, _object_spread({
|
|
65
129
|
className: cn('flex gap-4 justify-center items-center', className),
|
|
66
130
|
ref: ref
|