@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
|
@@ -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] : {};
|
|
@@ -52,12 +90,22 @@ function _object_spread_props(target, source) {
|
|
|
52
90
|
}
|
|
53
91
|
function _object_without_properties(source, excluded) {
|
|
54
92
|
if (source == null) return {};
|
|
55
|
-
var target =
|
|
56
|
-
|
|
93
|
+
var target = {}, sourceKeys, key, i;
|
|
94
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
95
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
96
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
97
|
+
key = sourceKeys[i];
|
|
98
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
99
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
100
|
+
target[key] = source[key];
|
|
101
|
+
}
|
|
102
|
+
return target;
|
|
103
|
+
}
|
|
104
|
+
target = _object_without_properties_loose(source, excluded);
|
|
57
105
|
if (Object.getOwnPropertySymbols) {
|
|
58
|
-
|
|
59
|
-
for(i = 0; i <
|
|
60
|
-
key =
|
|
106
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
107
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
108
|
+
key = sourceKeys[i];
|
|
61
109
|
if (excluded.indexOf(key) >= 0) continue;
|
|
62
110
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
63
111
|
target[key] = source[key];
|
|
@@ -67,16 +115,29 @@ function _object_without_properties(source, excluded) {
|
|
|
67
115
|
}
|
|
68
116
|
function _object_without_properties_loose(source, excluded) {
|
|
69
117
|
if (source == null) return {};
|
|
70
|
-
var target = {};
|
|
71
|
-
var sourceKeys = Object.keys(source);
|
|
72
|
-
var key, i;
|
|
118
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
73
119
|
for(i = 0; i < sourceKeys.length; i++){
|
|
74
120
|
key = sourceKeys[i];
|
|
75
121
|
if (excluded.indexOf(key) >= 0) continue;
|
|
122
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
76
123
|
target[key] = source[key];
|
|
77
124
|
}
|
|
78
125
|
return target;
|
|
79
126
|
}
|
|
127
|
+
function _sliced_to_array(arr, i) {
|
|
128
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
129
|
+
}
|
|
130
|
+
function _to_array(arr) {
|
|
131
|
+
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
132
|
+
}
|
|
133
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
134
|
+
if (!o) return;
|
|
135
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
136
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
137
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
138
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
139
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
140
|
+
}
|
|
80
141
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
81
142
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
82
143
|
import * as React from 'react';
|
|
@@ -84,10 +145,13 @@ import Center from '../center/Center';
|
|
|
84
145
|
import Flex from '../flex/Flex';
|
|
85
146
|
import IconCheckMark from '../icons/IconCheckmark';
|
|
86
147
|
import { cn } from '../utils';
|
|
87
|
-
var CheckboxRoot = /*#__PURE__*/ React.forwardRef(function(
|
|
88
|
-
var
|
|
148
|
+
var CheckboxRoot = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
149
|
+
var _ref = [
|
|
150
|
+
_0,
|
|
151
|
+
_1
|
|
152
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
89
153
|
"className"
|
|
90
|
-
]);
|
|
154
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
91
155
|
return /*#__PURE__*/ _jsx(CheckboxPrimitive.Root, _object_spread_props(_object_spread({
|
|
92
156
|
ref: ref,
|
|
93
157
|
className: cn('peer h-4 w-4 border-2 border-primary3 ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-white data-[state=checked]:border-none data-[state=checked]:bg-black', className)
|
|
@@ -102,8 +166,8 @@ var CheckboxRoot = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
|
|
|
102
166
|
}));
|
|
103
167
|
});
|
|
104
168
|
CheckboxRoot.displayName = CheckboxPrimitive.Root.displayName;
|
|
105
|
-
var Checkbox = function(
|
|
106
|
-
var children =
|
|
169
|
+
var Checkbox = function Checkbox(_0) {
|
|
170
|
+
var children = _0.children, htmlFor = _0.htmlFor, props = _object_without_properties(_0, [
|
|
107
171
|
"children",
|
|
108
172
|
"htmlFor"
|
|
109
173
|
]);
|
package/dist/chip/Chip.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] : {};
|
|
@@ -52,12 +90,22 @@ function _object_spread_props(target, source) {
|
|
|
52
90
|
}
|
|
53
91
|
function _object_without_properties(source, excluded) {
|
|
54
92
|
if (source == null) return {};
|
|
55
|
-
var target =
|
|
56
|
-
|
|
93
|
+
var target = {}, sourceKeys, key, i;
|
|
94
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
95
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
96
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
97
|
+
key = sourceKeys[i];
|
|
98
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
99
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
100
|
+
target[key] = source[key];
|
|
101
|
+
}
|
|
102
|
+
return target;
|
|
103
|
+
}
|
|
104
|
+
target = _object_without_properties_loose(source, excluded);
|
|
57
105
|
if (Object.getOwnPropertySymbols) {
|
|
58
|
-
|
|
59
|
-
for(i = 0; i <
|
|
60
|
-
key =
|
|
106
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
107
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
108
|
+
key = sourceKeys[i];
|
|
61
109
|
if (excluded.indexOf(key) >= 0) continue;
|
|
62
110
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
63
111
|
target[key] = source[key];
|
|
@@ -67,29 +115,45 @@ function _object_without_properties(source, excluded) {
|
|
|
67
115
|
}
|
|
68
116
|
function _object_without_properties_loose(source, excluded) {
|
|
69
117
|
if (source == null) return {};
|
|
70
|
-
var target = {};
|
|
71
|
-
var sourceKeys = Object.keys(source);
|
|
72
|
-
var key, i;
|
|
118
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
73
119
|
for(i = 0; i < sourceKeys.length; i++){
|
|
74
120
|
key = sourceKeys[i];
|
|
75
121
|
if (excluded.indexOf(key) >= 0) continue;
|
|
122
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
76
123
|
target[key] = source[key];
|
|
77
124
|
}
|
|
78
125
|
return target;
|
|
79
126
|
}
|
|
127
|
+
function _sliced_to_array(arr, i) {
|
|
128
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
129
|
+
}
|
|
130
|
+
function _to_array(arr) {
|
|
131
|
+
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
132
|
+
}
|
|
133
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
134
|
+
if (!o) return;
|
|
135
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
136
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
137
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
138
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
139
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
140
|
+
}
|
|
80
141
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
81
142
|
import * as React from 'react';
|
|
82
143
|
import HStack from '../hstack/HStack';
|
|
83
144
|
import IconClose from '../icons/IconClose';
|
|
84
145
|
import { cn } from '../utils';
|
|
85
|
-
var Chip = /*#__PURE__*/ React.forwardRef(function(
|
|
86
|
-
var
|
|
146
|
+
var Chip = /*#__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, variant = _ref2.variant, onClick = _ref2.onClick, value = _ref2.value, _ref_isRemovable = _ref2.isRemovable, isRemovable = _ref_isRemovable === void 0 ? false : _ref_isRemovable, props = _object_without_properties(_ref2, [
|
|
87
151
|
"className",
|
|
88
152
|
"variant",
|
|
89
153
|
"onClick",
|
|
90
154
|
"value",
|
|
91
155
|
"isRemovable"
|
|
92
|
-
]);
|
|
156
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
93
157
|
return /*#__PURE__*/ _jsxs(HStack, _object_spread_props(_object_spread({
|
|
94
158
|
as: "button",
|
|
95
159
|
type: "button",
|
|
@@ -52,12 +52,22 @@ function _object_spread_props(target, source) {
|
|
|
52
52
|
}
|
|
53
53
|
function _object_without_properties(source, excluded) {
|
|
54
54
|
if (source == null) return {};
|
|
55
|
-
var target =
|
|
56
|
-
|
|
55
|
+
var target = {}, sourceKeys, key, i;
|
|
56
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
57
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
58
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
59
|
+
key = sourceKeys[i];
|
|
60
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
61
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
62
|
+
target[key] = source[key];
|
|
63
|
+
}
|
|
64
|
+
return target;
|
|
65
|
+
}
|
|
66
|
+
target = _object_without_properties_loose(source, excluded);
|
|
57
67
|
if (Object.getOwnPropertySymbols) {
|
|
58
|
-
|
|
59
|
-
for(i = 0; i <
|
|
60
|
-
key =
|
|
68
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
69
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
70
|
+
key = sourceKeys[i];
|
|
61
71
|
if (excluded.indexOf(key) >= 0) continue;
|
|
62
72
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
63
73
|
target[key] = source[key];
|
|
@@ -67,20 +77,19 @@ function _object_without_properties(source, excluded) {
|
|
|
67
77
|
}
|
|
68
78
|
function _object_without_properties_loose(source, excluded) {
|
|
69
79
|
if (source == null) return {};
|
|
70
|
-
var target = {};
|
|
71
|
-
var sourceKeys = Object.keys(source);
|
|
72
|
-
var key, i;
|
|
80
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
73
81
|
for(i = 0; i < sourceKeys.length; i++){
|
|
74
82
|
key = sourceKeys[i];
|
|
75
83
|
if (excluded.indexOf(key) >= 0) continue;
|
|
84
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
76
85
|
target[key] = source[key];
|
|
77
86
|
}
|
|
78
87
|
return target;
|
|
79
88
|
}
|
|
80
89
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
81
90
|
import { cn } from '../utils';
|
|
82
|
-
var Circle = function(
|
|
83
|
-
var size =
|
|
91
|
+
var Circle = function Circle(_0) {
|
|
92
|
+
var size = _0.size, percentage = _0.percentage, _0_thickness = _0.thickness, thickness = _0_thickness === void 0 ? 2 : _0_thickness, className = _0.className, props = _object_without_properties(_0, [
|
|
84
93
|
"size",
|
|
85
94
|
"percentage",
|
|
86
95
|
"thickness",
|
|
@@ -100,8 +109,8 @@ var Circle = function(_param) {
|
|
|
100
109
|
className: cn(percentage !== undefined ? 'stroke-primary4' : 'stroke-primary1', className)
|
|
101
110
|
}, props));
|
|
102
111
|
};
|
|
103
|
-
export var CircularProgressLabel = function(
|
|
104
|
-
var children =
|
|
112
|
+
export var CircularProgressLabel = function CircularProgressLabel(_0) {
|
|
113
|
+
var children = _0.children, className = _0.className, props = _object_without_properties(_0, [
|
|
105
114
|
"children",
|
|
106
115
|
"className"
|
|
107
116
|
]);
|
|
@@ -115,8 +124,8 @@ export var CircularProgressLabel = function(_param) {
|
|
|
115
124
|
children: children
|
|
116
125
|
}));
|
|
117
126
|
};
|
|
118
|
-
var CircularProgress = function(
|
|
119
|
-
var value =
|
|
127
|
+
var CircularProgress = function CircularProgress(_0) {
|
|
128
|
+
var value = _0.value, _0_size = _0.size, size = _0_size === void 0 ? 48 : _0_size, fillCircleClassName = _0.fillCircleClassName, trackCircleClassName = _0.trackCircleClassName, children = _0.children, props = _object_without_properties(_0, [
|
|
120
129
|
"value",
|
|
121
130
|
"size",
|
|
122
131
|
"fillCircleClassName",
|
|
@@ -10,7 +10,7 @@ var meta = {
|
|
|
10
10
|
export default meta;
|
|
11
11
|
export var Basic = {};
|
|
12
12
|
export var Standard = {
|
|
13
|
-
render: function() {
|
|
13
|
+
render: function render() {
|
|
14
14
|
return /*#__PURE__*/ _jsx(CircularProgress, {
|
|
15
15
|
value: 80,
|
|
16
16
|
fillCircleClassName: "stroke-warning4",
|
|
@@ -24,7 +24,7 @@ export var Standard = {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
export var Zero = {
|
|
27
|
-
render: function() {
|
|
27
|
+
render: function render() {
|
|
28
28
|
return /*#__PURE__*/ _jsx(CircularProgress, {
|
|
29
29
|
value: 0,
|
|
30
30
|
children: /*#__PURE__*/ _jsxs(CircularProgressLabel, {
|
|
@@ -37,7 +37,7 @@ export var Zero = {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
export var Hundred = {
|
|
40
|
-
render: function() {
|
|
40
|
+
render: function render() {
|
|
41
41
|
return /*#__PURE__*/ _jsx(CircularProgress, {
|
|
42
42
|
value: 100,
|
|
43
43
|
children: /*#__PURE__*/ _jsxs(CircularProgressLabel, {
|
|
@@ -50,7 +50,7 @@ export var Hundred = {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
export var Creative = {
|
|
53
|
-
render: function() {
|
|
53
|
+
render: function render() {
|
|
54
54
|
return /*#__PURE__*/ _jsx(CircularProgress, {
|
|
55
55
|
value: 100,
|
|
56
56
|
size: 200,
|
|
@@ -82,5 +82,5 @@ declare const CommandShortcut: {
|
|
|
82
82
|
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
83
83
|
displayName: string;
|
|
84
84
|
};
|
|
85
|
-
export { Command, CommandDialog,
|
|
85
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
|
|
86
86
|
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/command/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;sFAYX,CAAA;AAGF,UAAU,kBAAmB,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,4CAUhE,CAAA;AAED,KAAK,iBAAiB,GAAG;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,QAAA,MAAM,YAAY;;;;;;;8GAmBhB,CAAA;AAIF,QAAA,MAAM,WAAW;;;;;;;;sFASf,CAAA;AAIF,QAAA,MAAM,YAAY;;;;;;uJAShB,CAAA;AAIF,QAAA,MAAM,YAAY;;;;;;;;;;sFAYhB,CAAA;AAIF,QAAA,MAAM,gBAAgB;;;;;;sFASpB,CAAA;AAGF,QAAA,MAAM,WAAW;;;;;;;;;;;;sFAYf,CAAA;AAIF,QAAA,MAAM,eAAe;8BAGlB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAUvC,CAAA;AAGD,OAAO,EACN,OAAO,EACP,aAAa,EACb,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/command/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;sFAYX,CAAA;AAGF,UAAU,kBAAmB,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,4CAUhE,CAAA;AAED,KAAK,iBAAiB,GAAG;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,QAAA,MAAM,YAAY;;;;;;;8GAmBhB,CAAA;AAIF,QAAA,MAAM,WAAW;;;;;;;;sFASf,CAAA;AAIF,QAAA,MAAM,YAAY;;;;;;uJAShB,CAAA;AAIF,QAAA,MAAM,YAAY;;;;;;;;;;sFAYhB,CAAA;AAIF,QAAA,MAAM,gBAAgB;;;;;;sFASpB,CAAA;AAGF,QAAA,MAAM,WAAW;;;;;;;;;;;;sFAYf,CAAA;AAIF,QAAA,MAAM,eAAe;8BAGlB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAUvC,CAAA;AAGD,OAAO,EACN,OAAO,EACP,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,GACf,CAAA"}
|
package/dist/command/command.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
function _array_like_to_array(arr, len) {
|
|
3
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
4
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5
|
+
return arr2;
|
|
6
|
+
}
|
|
7
|
+
function _array_with_holes(arr) {
|
|
8
|
+
if (Array.isArray(arr)) return arr;
|
|
9
|
+
}
|
|
2
10
|
function _define_property(obj, key, value) {
|
|
3
11
|
if (key in obj) {
|
|
4
12
|
Object.defineProperty(obj, key, {
|
|
@@ -12,6 +20,36 @@ function _define_property(obj, key, value) {
|
|
|
12
20
|
}
|
|
13
21
|
return obj;
|
|
14
22
|
}
|
|
23
|
+
function _iterable_to_array(iter) {
|
|
24
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
25
|
+
}
|
|
26
|
+
function _iterable_to_array_limit(arr, i) {
|
|
27
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
28
|
+
if (_i == null) return;
|
|
29
|
+
var _arr = [];
|
|
30
|
+
var _n = true;
|
|
31
|
+
var _d = false;
|
|
32
|
+
var _s, _e;
|
|
33
|
+
try {
|
|
34
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
35
|
+
_arr.push(_s.value);
|
|
36
|
+
if (i && _arr.length === i) break;
|
|
37
|
+
}
|
|
38
|
+
} catch (err) {
|
|
39
|
+
_d = true;
|
|
40
|
+
_e = err;
|
|
41
|
+
} finally{
|
|
42
|
+
try {
|
|
43
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
44
|
+
} finally{
|
|
45
|
+
if (_d) throw _e;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return _arr;
|
|
49
|
+
}
|
|
50
|
+
function _non_iterable_rest() {
|
|
51
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
52
|
+
}
|
|
15
53
|
function _object_spread(target) {
|
|
16
54
|
for(var i = 1; i < arguments.length; i++){
|
|
17
55
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -53,12 +91,22 @@ function _object_spread_props(target, source) {
|
|
|
53
91
|
}
|
|
54
92
|
function _object_without_properties(source, excluded) {
|
|
55
93
|
if (source == null) return {};
|
|
56
|
-
var target =
|
|
57
|
-
|
|
94
|
+
var target = {}, sourceKeys, key, i;
|
|
95
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
96
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
97
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
98
|
+
key = sourceKeys[i];
|
|
99
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
100
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
101
|
+
target[key] = source[key];
|
|
102
|
+
}
|
|
103
|
+
return target;
|
|
104
|
+
}
|
|
105
|
+
target = _object_without_properties_loose(source, excluded);
|
|
58
106
|
if (Object.getOwnPropertySymbols) {
|
|
59
|
-
|
|
60
|
-
for(i = 0; i <
|
|
61
|
-
key =
|
|
107
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
108
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
109
|
+
key = sourceKeys[i];
|
|
62
110
|
if (excluded.indexOf(key) >= 0) continue;
|
|
63
111
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
64
112
|
target[key] = source[key];
|
|
@@ -68,34 +116,50 @@ function _object_without_properties(source, excluded) {
|
|
|
68
116
|
}
|
|
69
117
|
function _object_without_properties_loose(source, excluded) {
|
|
70
118
|
if (source == null) return {};
|
|
71
|
-
var target = {};
|
|
72
|
-
var sourceKeys = Object.keys(source);
|
|
73
|
-
var key, i;
|
|
119
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
74
120
|
for(i = 0; i < sourceKeys.length; i++){
|
|
75
121
|
key = sourceKeys[i];
|
|
76
122
|
if (excluded.indexOf(key) >= 0) continue;
|
|
123
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
77
124
|
target[key] = source[key];
|
|
78
125
|
}
|
|
79
126
|
return target;
|
|
80
127
|
}
|
|
128
|
+
function _sliced_to_array(arr, i) {
|
|
129
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
130
|
+
}
|
|
131
|
+
function _to_array(arr) {
|
|
132
|
+
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
|
|
133
|
+
}
|
|
134
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
135
|
+
if (!o) return;
|
|
136
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
137
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
138
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
139
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
140
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
141
|
+
}
|
|
81
142
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
82
143
|
import { Command as CommandPrimitive } from 'cmdk';
|
|
83
144
|
import * as React from 'react';
|
|
84
145
|
import { Dialog, DialogContent } from '../dialog/index';
|
|
85
146
|
import IconSearch from '../icons/IconSearch';
|
|
86
147
|
import { cn } from '../utils';
|
|
87
|
-
var Command = /*#__PURE__*/ React.forwardRef(function(
|
|
88
|
-
var
|
|
148
|
+
var Command = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
149
|
+
var _ref = [
|
|
150
|
+
_0,
|
|
151
|
+
_1
|
|
152
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
89
153
|
"className"
|
|
90
|
-
]);
|
|
154
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
91
155
|
return /*#__PURE__*/ _jsx(CommandPrimitive, _object_spread({
|
|
92
156
|
ref: ref,
|
|
93
157
|
className: cn('flex h-full w-full flex-col overflow-hidden rounded-lg bg-white text-zinc-950 dark:bg-zinc-950 dark:text-zinc-50', className)
|
|
94
158
|
}, props));
|
|
95
159
|
});
|
|
96
160
|
Command.displayName = CommandPrimitive.displayName;
|
|
97
|
-
var CommandDialog = function(
|
|
98
|
-
var children =
|
|
161
|
+
var CommandDialog = function CommandDialog(_0) {
|
|
162
|
+
var children = _0.children, props = _object_without_properties(_0, [
|
|
99
163
|
"children"
|
|
100
164
|
]);
|
|
101
165
|
return /*#__PURE__*/ _jsx(Dialog, _object_spread_props(_object_spread({}, props), {
|
|
@@ -108,11 +172,14 @@ var CommandDialog = function(_param) {
|
|
|
108
172
|
})
|
|
109
173
|
}));
|
|
110
174
|
};
|
|
111
|
-
var CommandInput = /*#__PURE__*/ React.forwardRef(function(
|
|
112
|
-
var
|
|
175
|
+
var CommandInput = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
176
|
+
var _ref = [
|
|
177
|
+
_0,
|
|
178
|
+
_1
|
|
179
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, containerClassName = _ref2.containerClassName, props = _object_without_properties(_ref2, [
|
|
113
180
|
"className",
|
|
114
181
|
"containerClassName"
|
|
115
|
-
]);
|
|
182
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
116
183
|
return /*#__PURE__*/ _jsxs("div", {
|
|
117
184
|
className: cn('flex h-10 items-center border-b px-3', containerClassName),
|
|
118
185
|
"cmdk-input-wrapper": "",
|
|
@@ -128,10 +195,13 @@ var CommandInput = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
|
|
|
128
195
|
});
|
|
129
196
|
});
|
|
130
197
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
131
|
-
var CommandList = /*#__PURE__*/ React.forwardRef(function(
|
|
132
|
-
var
|
|
198
|
+
var CommandList = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
199
|
+
var _ref = [
|
|
200
|
+
_0,
|
|
201
|
+
_1
|
|
202
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
133
203
|
"className"
|
|
134
|
-
]);
|
|
204
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
135
205
|
return /*#__PURE__*/ _jsx(CommandPrimitive.List, _object_spread({
|
|
136
206
|
ref: ref,
|
|
137
207
|
className: cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className)
|
|
@@ -145,38 +215,47 @@ var CommandEmpty = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
145
215
|
}, props));
|
|
146
216
|
});
|
|
147
217
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
148
|
-
var CommandGroup = /*#__PURE__*/ React.forwardRef(function(
|
|
149
|
-
var
|
|
218
|
+
var CommandGroup = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
219
|
+
var _ref = [
|
|
220
|
+
_0,
|
|
221
|
+
_1
|
|
222
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
150
223
|
"className"
|
|
151
|
-
]);
|
|
224
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
152
225
|
return /*#__PURE__*/ _jsx(CommandPrimitive.Group, _object_spread({
|
|
153
226
|
ref: ref,
|
|
154
227
|
className: cn('overflow-hidden p-1 text-zinc-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-zinc-500 dark:text-zinc-50 dark:[&_[cmdk-group-heading]]:text-zinc-400', className)
|
|
155
228
|
}, props));
|
|
156
229
|
});
|
|
157
230
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
158
|
-
var CommandSeparator = /*#__PURE__*/ React.forwardRef(function(
|
|
159
|
-
var
|
|
231
|
+
var CommandSeparator = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
232
|
+
var _ref = [
|
|
233
|
+
_0,
|
|
234
|
+
_1
|
|
235
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
160
236
|
"className"
|
|
161
|
-
]);
|
|
237
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
162
238
|
return /*#__PURE__*/ _jsx(CommandPrimitive.Separator, _object_spread({
|
|
163
239
|
ref: ref,
|
|
164
240
|
className: cn('-mx-1 h-px bg-zinc-200 dark:bg-zinc-800', className)
|
|
165
241
|
}, props));
|
|
166
242
|
});
|
|
167
243
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
168
|
-
var CommandItem = /*#__PURE__*/ React.forwardRef(function(
|
|
169
|
-
var
|
|
244
|
+
var CommandItem = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
|
|
245
|
+
var _ref = [
|
|
246
|
+
_0,
|
|
247
|
+
_1
|
|
248
|
+
], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
|
|
170
249
|
"className"
|
|
171
|
-
]);
|
|
250
|
+
]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
|
|
172
251
|
return /*#__PURE__*/ _jsx(CommandPrimitive.Item, _object_spread({
|
|
173
252
|
ref: ref,
|
|
174
253
|
className: cn("relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected='true']:bg-zinc-100 data-[selected=true]:text-zinc-900 data-[disabled=true]:opacity-50 dark:data-[selected='true']:bg-zinc-800 dark:data-[selected=true]:text-zinc-50", className)
|
|
175
254
|
}, props));
|
|
176
255
|
});
|
|
177
256
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
178
|
-
var CommandShortcut = function(
|
|
179
|
-
var className =
|
|
257
|
+
var CommandShortcut = function CommandShortcut(_0) {
|
|
258
|
+
var className = _0.className, props = _object_without_properties(_0, [
|
|
180
259
|
"className"
|
|
181
260
|
]);
|
|
182
261
|
return /*#__PURE__*/ _jsx("span", _object_spread({
|
|
@@ -184,4 +263,4 @@ var CommandShortcut = function(_param) {
|
|
|
184
263
|
}, props));
|
|
185
264
|
};
|
|
186
265
|
CommandShortcut.displayName = 'CommandShortcut';
|
|
187
|
-
export { Command, CommandDialog,
|
|
266
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../src/command/command.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAA;AAClD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAA;AAE7B,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAG9B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACnC,KAAC,gBAAgB,IAChB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACZ,kHAAkH,EAClH,SAAS,CACT,KACG,KAAK,GACR,CACF,CAAC,CAAA;AACF,OAAO,CAAC,WAAW,GAAG,gBAAgB,CAAC,WAAW,CAAA;AAIlD,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAsB,EAAE,EAAE;IACpE,OAAO,CACN,KAAC,MAAM,OAAK,KAAK,YAChB,KAAC,aAAa,IAAC,SAAS,EAAC,+BAA+B,YACvD,KAAC,OAAO,IAAC,SAAS,EAAC,iZAAiZ,YACla,QAAQ,GACA,GACK,GACR,CACT,CAAA;AACF,CAAC,CAAA;AAMD,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