@economic/taco 1.0.2 → 1.0.3
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/HoverCard/HoverCard.d.ts +16 -0
- package/dist/esm/components/HoverCard/HoverCard.js +33 -0
- package/dist/esm/components/HoverCard/HoverCard.js.map +1 -0
- package/dist/esm/components/SearchInput/SearchInput.js +1 -0
- package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/taco.cjs.development.js +89 -61
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/package.json +3 -2
- package/types.json +405 -379
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Placement } from '../..';
|
3
|
+
export declare type HoverCardTriggerProps = React.HTMLAttributes<HTMLAnchorElement>;
|
4
|
+
export declare type HoverCardContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
5
|
+
/** Set the position of the HoverCard relative to its trigger. Default value is `bottom` */
|
6
|
+
placement?: Placement;
|
7
|
+
};
|
8
|
+
export declare type HoverCardProps = React.PropsWithChildren<{}>;
|
9
|
+
export declare const HoverCard: {
|
10
|
+
(props: HoverCardProps): JSX.Element;
|
11
|
+
Trigger: React.ForwardRefExoticComponent<HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
12
|
+
Content: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
13
|
+
/** Set the position of the HoverCard relative to its trigger. Default value is `bottom` */
|
14
|
+
placement?: "right" | "left" | "top" | "bottom" | undefined;
|
15
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
16
|
+
};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { objectWithoutPropertiesLoose as _objectWithoutPropertiesLoose } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
2
|
+
import { createElement, forwardRef } from 'react';
|
3
|
+
import cn from 'classnames';
|
4
|
+
import { Root, Trigger as Trigger$1, Content as Content$1 } from '@radix-ui/react-hover-card';
|
5
|
+
|
6
|
+
var _excluded = ["placement"];
|
7
|
+
var Trigger = /*#__PURE__*/forwardRef(function HoverCardTrigger(props, ref) {
|
8
|
+
return createElement(Trigger$1, Object.assign({}, props, {
|
9
|
+
asChild: true,
|
10
|
+
ref: ref
|
11
|
+
}));
|
12
|
+
});
|
13
|
+
var Content = /*#__PURE__*/forwardRef(function HoverCardContent(externalProps, ref) {
|
14
|
+
var placement = externalProps.placement,
|
15
|
+
props = _objectWithoutPropertiesLoose(externalProps, _excluded);
|
16
|
+
|
17
|
+
var className = cn('bg-white rounded p-3 yt-shadow', props.className);
|
18
|
+
return createElement(Content$1, Object.assign({}, props, {
|
19
|
+
className: className,
|
20
|
+
ref: ref,
|
21
|
+
side: placement
|
22
|
+
}));
|
23
|
+
});
|
24
|
+
var HoverCard = function HoverCard(props) {
|
25
|
+
return createElement(Root, Object.assign({}, props, {
|
26
|
+
openDelay: 300
|
27
|
+
}));
|
28
|
+
};
|
29
|
+
HoverCard.Trigger = Trigger;
|
30
|
+
HoverCard.Content = Content;
|
31
|
+
|
32
|
+
export { HoverCard };
|
33
|
+
//# sourceMappingURL=HoverCard.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HoverCard.js","sources":["../../../../src/components/HoverCard/HoverCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport cn from 'classnames';\nimport * as HoverCardPrimitive from '@radix-ui/react-hover-card';\nimport { Placement } from '../..';\n\nexport type HoverCardTriggerProps = React.HTMLAttributes<HTMLAnchorElement>;\nconst Trigger = React.forwardRef(function HoverCardTrigger(props: HoverCardTriggerProps, ref: React.Ref<HTMLAnchorElement>) {\n return <HoverCardPrimitive.Trigger {...props} asChild ref={ref} />;\n});\n\nexport type HoverCardContentProps = React.HTMLAttributes<HTMLDivElement> & {\n /** Set the position of the HoverCard relative to its trigger. Default value is `bottom` */\n placement?: Placement;\n};\nconst Content = React.forwardRef(function HoverCardContent(externalProps: HoverCardContentProps, ref: React.Ref<HTMLDivElement>) {\n const { placement, ...props } = externalProps;\n const className = cn('bg-white rounded p-3 yt-shadow', props.className);\n\n return <HoverCardPrimitive.Content {...props} className={className} ref={ref} side={placement} />;\n});\n\nexport type HoverCardProps = React.PropsWithChildren<{}>;\n\nexport const HoverCard = (props: HoverCardProps) => {\n return <HoverCardPrimitive.Root {...props} openDelay={300} />;\n};\nHoverCard.Trigger = Trigger;\nHoverCard.Content = Content;\n"],"names":["Trigger","React","HoverCardTrigger","props","ref","HoverCardPrimitive","asChild","Content","HoverCardContent","externalProps","placement","className","cn","side","HoverCard","openDelay"],"mappings":";;;;;;AAMA,IAAMA,OAAO,gBAAGC,UAAA,CAAiB,SAASC,gBAAT,CAA0BC,KAA1B,EAAwDC,GAAxD;AAC7B,SAAOH,aAAA,CAACI,SAAD,oBAAgCF;AAAOG,IAAAA,OAAO;AAACF,IAAAA,GAAG,EAAEA;IAApD,CAAP;AACH,CAFe,CAAhB;AAQA,IAAMG,OAAO,gBAAGN,UAAA,CAAiB,SAASO,gBAAT,CAA0BC,aAA1B,EAAgEL,GAAhE;AAC7B,MAAQM,SAAR,GAAgCD,aAAhC,CAAQC,SAAR;AAAA,MAAsBP,KAAtB,iCAAgCM,aAAhC;;AACA,MAAME,SAAS,GAAGC,EAAE,CAAC,gCAAD,EAAmCT,KAAK,CAACQ,SAAzC,CAApB;AAEA,SAAOV,aAAA,CAACI,SAAD,oBAAgCF;AAAOQ,IAAAA,SAAS,EAAEA;AAAWP,IAAAA,GAAG,EAAEA;AAAKS,IAAAA,IAAI,EAAEH;IAA7E,CAAP;AACH,CALe,CAAhB;IASaI,SAAS,GAAG,SAAZA,SAAY,CAACX,KAAD;AACrB,SAAOF,aAAA,CAACI,IAAD,oBAA6BF;AAAOY,IAAAA,SAAS,EAAE;IAA/C,CAAP;AACH;AACDD,SAAS,CAACd,OAAV,GAAoBA,OAApB;AACAc,SAAS,CAACP,OAAV,GAAoBA,OAApB;;;;"}
|
@@ -29,6 +29,7 @@ import '../Field/Field.js';
|
|
29
29
|
import '../Form/Form.js';
|
30
30
|
import '../Group/Group.js';
|
31
31
|
import '../Hanger/Hanger.js';
|
32
|
+
import '../HoverCard/HoverCard.js';
|
32
33
|
import '../Listbox/Listbox.js';
|
33
34
|
import '../RadioGroup/RadioGroup.js';
|
34
35
|
import '../Menu/Menu.js';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SearchInput.js","sources":["../../../../src/components/SearchInput/SearchInput.tsx"],"sourcesContent":["import * as React from 'react';\nimport keycode from 'keycode';\nimport { Input, InputProps, useLocalization, IconButton } from '../..';\n\nexport type SearchInputTexts = {\n /**\n * aria-label text for input\n */\n inputLabel: string;\n};\n\nexport type SearchInputProps = Omit<InputProps, 'icon'> & {\n /** Current input value will be passed to the method. In order to get the value, the component must be controlled otherwise value will always be undefined */\n onSearch?: (value: string | number | readonly string[] | undefined) => void;\n};\n\nexport const SearchInput = React.forwardRef(function SearchInput(\n { onSearch, ...props }: SearchInputProps,\n ref: React.Ref<HTMLInputElement>\n) {\n const { texts } = useLocalization();\n\n const handleClick = (): void => {\n if (!props.disabled) {\n onSearch?.(props.value);\n }\n };\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>): void => {\n const isEnterKeyPressed = event.keyCode === keycode('enter');\n\n if (isEnterKeyPressed) {\n handleClick();\n }\n\n props.onKeyDown?.(event);\n };\n\n return (\n <Input\n aria-label={texts.searchInput.inputLabel}\n {...props}\n button={\n <IconButton\n icon=\"search\"\n className=\"!border-transparent !bg-transparent focus:!border-transparent peer-focus:!border-transparent peer-focus:peer-active:!border-transparent\"\n disabled={props.disabled}\n onClick={handleClick}\n />\n }\n onKeyDown={handleKeyDown}\n ref={ref}\n type=\"search\"\n />\n );\n});\n"],"names":["SearchInput","React","ref","onSearch","props","useLocalization","texts","handleClick","disabled","value","handleKeyDown","event","isEnterKeyPressed","keyCode","keycode","onKeyDown","Input","searchInput","inputLabel","button","IconButton","icon","className","onClick","type"],"mappings":"
|
1
|
+
{"version":3,"file":"SearchInput.js","sources":["../../../../src/components/SearchInput/SearchInput.tsx"],"sourcesContent":["import * as React from 'react';\nimport keycode from 'keycode';\nimport { Input, InputProps, useLocalization, IconButton } from '../..';\n\nexport type SearchInputTexts = {\n /**\n * aria-label text for input\n */\n inputLabel: string;\n};\n\nexport type SearchInputProps = Omit<InputProps, 'icon'> & {\n /** Current input value will be passed to the method. In order to get the value, the component must be controlled otherwise value will always be undefined */\n onSearch?: (value: string | number | readonly string[] | undefined) => void;\n};\n\nexport const SearchInput = React.forwardRef(function SearchInput(\n { onSearch, ...props }: SearchInputProps,\n ref: React.Ref<HTMLInputElement>\n) {\n const { texts } = useLocalization();\n\n const handleClick = (): void => {\n if (!props.disabled) {\n onSearch?.(props.value);\n }\n };\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>): void => {\n const isEnterKeyPressed = event.keyCode === keycode('enter');\n\n if (isEnterKeyPressed) {\n handleClick();\n }\n\n props.onKeyDown?.(event);\n };\n\n return (\n <Input\n aria-label={texts.searchInput.inputLabel}\n {...props}\n button={\n <IconButton\n icon=\"search\"\n className=\"!border-transparent !bg-transparent focus:!border-transparent peer-focus:!border-transparent peer-focus:peer-active:!border-transparent\"\n disabled={props.disabled}\n onClick={handleClick}\n />\n }\n onKeyDown={handleKeyDown}\n ref={ref}\n type=\"search\"\n />\n );\n});\n"],"names":["SearchInput","React","ref","onSearch","props","useLocalization","texts","handleClick","disabled","value","handleKeyDown","event","isEnterKeyPressed","keyCode","keycode","onKeyDown","Input","searchInput","inputLabel","button","IconButton","icon","className","onClick","type"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBaA,WAAW,gBAAGC,UAAA,CAAiB,SAASD,WAAT,OAExCE,GAFwC;MACtCC,gBAAAA;MAAaC;;AAGf,yBAAkBC,eAAe,EAAjC;AAAA,MAAQC,KAAR,oBAAQA,KAAR;;AAEA,MAAMC,WAAW,GAAG,SAAdA,WAAc;AAChB,QAAI,CAACH,KAAK,CAACI,QAAX,EAAqB;AACjBL,MAAAA,QAAQ,SAAR,IAAAA,QAAQ,WAAR,YAAAA,QAAQ,CAAGC,KAAK,CAACK,KAAT,CAAR;AACH;AACJ,GAJD;;AAMA,MAAMC,aAAa,GAAG,SAAhBA,aAAgB,CAACC,KAAD;;;AAClB,QAAMC,iBAAiB,GAAGD,KAAK,CAACE,OAAN,KAAkBC,OAAO,CAAC,OAAD,CAAnD;;AAEA,QAAIF,iBAAJ,EAAuB;AACnBL,MAAAA,WAAW;AACd;;AAED,wBAAAH,KAAK,CAACW,SAAN,2EAAAX,KAAK,EAAaO,KAAb,CAAL;AACH,GARD;;AAUA,SACIV,aAAA,CAACe,KAAD;kBACgBV,KAAK,CAACW,WAAN,CAAkBC;KAC1Bd;AACJe,IAAAA,MAAM,EACFlB,aAAA,CAACmB,UAAD;AACIC,MAAAA,IAAI,EAAC;AACLC,MAAAA,SAAS,EAAC;AACVd,MAAAA,QAAQ,EAAEJ,KAAK,CAACI;AAChBe,MAAAA,OAAO,EAAEhB;KAJb;AAOJQ,IAAAA,SAAS,EAAEL;AACXR,IAAAA,GAAG,EAAEA;AACLsB,IAAAA,IAAI,EAAC;IAbT,CADJ;AAiBH,CAvC0B;;;;"}
|
package/dist/esm/index.js
CHANGED
@@ -26,6 +26,7 @@ export { Field } from './components/Field/Field.js';
|
|
26
26
|
export { Form } from './components/Form/Form.js';
|
27
27
|
export { Group } from './components/Group/Group.js';
|
28
28
|
export { Hanger, Title } from './components/Hanger/Hanger.js';
|
29
|
+
export { HoverCard } from './components/HoverCard/HoverCard.js';
|
29
30
|
export { SearchInput } from './components/SearchInput/SearchInput.js';
|
30
31
|
export { Listbox, MultiListbox } from './components/Listbox/Listbox.js';
|
31
32
|
export { RadioGroup, findByValue, getRadioGroupItemValueAsString, useRadioGroup } from './components/RadioGroup/RadioGroup.js';
|
package/dist/esm/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
@@ -13,6 +13,7 @@ export * from './components/Field/Field';
|
|
13
13
|
export * from './components/Form/Form';
|
14
14
|
export * from './components/Group/Group';
|
15
15
|
export * from './components/Hanger/Hanger';
|
16
|
+
export * from './components/HoverCard/HoverCard';
|
16
17
|
export * from './components/Icon/Icon';
|
17
18
|
export * from './components/IconButton/IconButton';
|
18
19
|
export * from './components/Input/Input';
|
@@ -19,6 +19,7 @@ var debounce = _interopDefault(require('lodash/debounce'));
|
|
19
19
|
var dateFns = require('date-fns');
|
20
20
|
var DialogPrimitive = require('@radix-ui/react-dialog');
|
21
21
|
var interactions = require('@react-aria/interactions');
|
22
|
+
var HoverCardPrimitive = require('@radix-ui/react-hover-card');
|
22
23
|
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
23
24
|
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
24
25
|
var reactTable = require('react-table');
|
@@ -6116,10 +6117,36 @@ Hanger.Anchor = Anchor;
|
|
6116
6117
|
Hanger.Content = Content$3;
|
6117
6118
|
Hanger.Title = Title$1;
|
6118
6119
|
|
6119
|
-
var _excluded$r = ["
|
6120
|
+
var _excluded$r = ["placement"];
|
6121
|
+
var Trigger$3 = /*#__PURE__*/React.forwardRef(function HoverCardTrigger(props, ref) {
|
6122
|
+
return React.createElement(HoverCardPrimitive.Trigger, Object.assign({}, props, {
|
6123
|
+
asChild: true,
|
6124
|
+
ref: ref
|
6125
|
+
}));
|
6126
|
+
});
|
6127
|
+
var Content$4 = /*#__PURE__*/React.forwardRef(function HoverCardContent(externalProps, ref) {
|
6128
|
+
var placement = externalProps.placement,
|
6129
|
+
props = _objectWithoutPropertiesLoose(externalProps, _excluded$r);
|
6130
|
+
|
6131
|
+
var className = cn('bg-white rounded p-3 yt-shadow', props.className);
|
6132
|
+
return React.createElement(HoverCardPrimitive.Content, Object.assign({}, props, {
|
6133
|
+
className: className,
|
6134
|
+
ref: ref,
|
6135
|
+
side: placement
|
6136
|
+
}));
|
6137
|
+
});
|
6138
|
+
var HoverCard = function HoverCard(props) {
|
6139
|
+
return React.createElement(HoverCardPrimitive.Root, Object.assign({}, props, {
|
6140
|
+
openDelay: 300
|
6141
|
+
}));
|
6142
|
+
};
|
6143
|
+
HoverCard.Trigger = Trigger$3;
|
6144
|
+
HoverCard.Content = Content$4;
|
6145
|
+
|
6146
|
+
var _excluded$s = ["onSearch"];
|
6120
6147
|
var SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput(_ref, ref) {
|
6121
6148
|
var onSearch = _ref.onSearch,
|
6122
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
6149
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
6123
6150
|
|
6124
6151
|
var _useLocalization = useLocalization(),
|
6125
6152
|
texts = _useLocalization.texts;
|
@@ -6178,7 +6205,7 @@ var useTypeahead = function useTypeahead(_ref) {
|
|
6178
6205
|
};
|
6179
6206
|
};
|
6180
6207
|
|
6181
|
-
var _excluded$
|
6208
|
+
var _excluded$t = ["data", "defaultValue", "disabled", "emptyValue", "id", "invalid", "name", "onChange", "onFocus", "onKeyDown", "value"];
|
6182
6209
|
var useListbox = function useListbox(_ref, ref) {
|
6183
6210
|
var _ref$data = _ref.data,
|
6184
6211
|
externalData = _ref$data === void 0 ? [] : _ref$data,
|
@@ -6193,7 +6220,7 @@ var useListbox = function useListbox(_ref, ref) {
|
|
6193
6220
|
onKeyDown = _ref.onKeyDown,
|
6194
6221
|
_ref$value = _ref.value,
|
6195
6222
|
value = _ref$value === void 0 ? emptyValue : _ref$value,
|
6196
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
6223
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
6197
6224
|
|
6198
6225
|
var data = useFlattenedData(emptyValue !== undefined ? [{
|
6199
6226
|
text: '',
|
@@ -6323,7 +6350,7 @@ var useListbox = function useListbox(_ref, ref) {
|
|
6323
6350
|
};
|
6324
6351
|
};
|
6325
6352
|
|
6326
|
-
var _excluded$
|
6353
|
+
var _excluded$u = ["data", "defaultValue", "disabled", "emptyValue", "id", "name", "onClick", "onChange", "onFocus", "onKeyDown", "value"];
|
6327
6354
|
var useMultiListbox = function useMultiListbox(_ref, ref) {
|
6328
6355
|
var _ref$data = _ref.data,
|
6329
6356
|
externalData = _ref$data === void 0 ? [] : _ref$data,
|
@@ -6336,7 +6363,7 @@ var useMultiListbox = function useMultiListbox(_ref, ref) {
|
|
6336
6363
|
onFocus = _ref.onFocus,
|
6337
6364
|
onKeyDown = _ref.onKeyDown,
|
6338
6365
|
value = _ref.value,
|
6339
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
6366
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
6340
6367
|
|
6341
6368
|
var _useLocalization = useLocalization(),
|
6342
6369
|
texts = _useLocalization.texts;
|
@@ -6535,11 +6562,11 @@ var useMultiListbox = function useMultiListbox(_ref, ref) {
|
|
6535
6562
|
};
|
6536
6563
|
};
|
6537
6564
|
|
6538
|
-
var _excluded$
|
6565
|
+
var _excluded$v = ["className"],
|
6539
6566
|
_excluded2$2 = ["className"];
|
6540
6567
|
var Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
|
6541
6568
|
var externalClassName = props.className,
|
6542
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6569
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$v);
|
6543
6570
|
|
6544
6571
|
var _useListbox = useListbox(otherProps, ref),
|
6545
6572
|
list = _useListbox.list,
|
@@ -6584,7 +6611,7 @@ var MultiListbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
|
|
6584
6611
|
})));
|
6585
6612
|
});
|
6586
6613
|
|
6587
|
-
var _excluded$
|
6614
|
+
var _excluded$w = ["children", "placement"];
|
6588
6615
|
|
6589
6616
|
var getAppearanceClasses$1 = function getAppearanceClasses(appearance) {
|
6590
6617
|
switch (appearance) {
|
@@ -6606,13 +6633,13 @@ var getAppearanceClasses$1 = function getAppearanceClasses(appearance) {
|
|
6606
6633
|
}
|
6607
6634
|
};
|
6608
6635
|
|
6609
|
-
var Content$
|
6636
|
+
var Content$5 = /*#__PURE__*/React.forwardRef(function MenuContent(props, ref) {
|
6610
6637
|
var internalRef = useProxiedRef(ref);
|
6611
6638
|
var menu = useCurrentMenu();
|
6612
6639
|
|
6613
6640
|
var children = props.children,
|
6614
6641
|
side = props.placement,
|
6615
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6642
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$w);
|
6616
6643
|
|
6617
6644
|
var className = cn('border rounded block outline-none p-1', getAppearanceClasses$1(menu === null || menu === void 0 ? void 0 : menu.appearance), props.className);
|
6618
6645
|
return React.createElement(DropdownMenuPrimitive.Content, Object.assign({}, otherProps, {
|
@@ -6628,7 +6655,7 @@ var Content$4 = /*#__PURE__*/React.forwardRef(function MenuContent(props, ref) {
|
|
6628
6655
|
}), children);
|
6629
6656
|
});
|
6630
6657
|
|
6631
|
-
var _excluded$
|
6658
|
+
var _excluded$x = ["dialog", "icon", "onClick", "shortcut"];
|
6632
6659
|
var Icon$1 = function Icon$1(_ref) {
|
6633
6660
|
var name = _ref.name;
|
6634
6661
|
return React.createElement("span", {
|
@@ -6715,7 +6742,7 @@ var Item$1 = /*#__PURE__*/React.forwardRef(function MenuItem(props, ref) {
|
|
6715
6742
|
icon = props.icon,
|
6716
6743
|
onClick = props.onClick,
|
6717
6744
|
shortcut = props.shortcut,
|
6718
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6745
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$x);
|
6719
6746
|
|
6720
6747
|
var className = useItemStyling({
|
6721
6748
|
disabled: props.disabled,
|
@@ -6760,12 +6787,12 @@ var Item$1 = /*#__PURE__*/React.forwardRef(function MenuItem(props, ref) {
|
|
6760
6787
|
return button;
|
6761
6788
|
});
|
6762
6789
|
|
6763
|
-
var _excluded$
|
6790
|
+
var _excluded$y = ["href", "icon", "onClick"];
|
6764
6791
|
var Link = /*#__PURE__*/React.forwardRef(function MenuLink(props, ref) {
|
6765
6792
|
var href = props.href,
|
6766
6793
|
icon = props.icon,
|
6767
6794
|
onClick = props.onClick,
|
6768
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6795
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$y);
|
6769
6796
|
|
6770
6797
|
var menu = useCurrentMenu();
|
6771
6798
|
var className = useItemStyling({
|
@@ -6792,7 +6819,7 @@ var Link = /*#__PURE__*/React.forwardRef(function MenuLink(props, ref) {
|
|
6792
6819
|
}), props.children));
|
6793
6820
|
});
|
6794
6821
|
|
6795
|
-
var Trigger$
|
6822
|
+
var Trigger$4 = /*#__PURE__*/React.forwardRef(function MenuTrigger(props, ref) {
|
6796
6823
|
var _props$children3, _props$children3$prop;
|
6797
6824
|
|
6798
6825
|
var menu = useCurrentMenu();
|
@@ -6818,12 +6845,12 @@ var Trigger$3 = /*#__PURE__*/React.forwardRef(function MenuTrigger(props, ref) {
|
|
6818
6845
|
}));
|
6819
6846
|
});
|
6820
6847
|
|
6821
|
-
var _excluded$
|
6848
|
+
var _excluded$z = ["checked", "children", "onChange"];
|
6822
6849
|
var Checkbox$1 = function Checkbox(props) {
|
6823
6850
|
var checked = props.checked,
|
6824
6851
|
children = props.children,
|
6825
6852
|
onChange = props.onChange,
|
6826
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6853
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$z);
|
6827
6854
|
|
6828
6855
|
var className = useItemStyling({
|
6829
6856
|
disabled: props.disabled,
|
@@ -6842,7 +6869,7 @@ var Checkbox$1 = function Checkbox(props) {
|
|
6842
6869
|
})), children);
|
6843
6870
|
};
|
6844
6871
|
|
6845
|
-
var _excluded$
|
6872
|
+
var _excluded$A = ["children", "value"],
|
6846
6873
|
_excluded2$3 = ["children", "defaultValue", "disabled", "invalid", "onChange", "orientation", "value"];
|
6847
6874
|
var getRadioGroupItemValueAsString = function getRadioGroupItemValueAsString(value) {
|
6848
6875
|
return value === null ? '' : String(value);
|
@@ -6861,7 +6888,7 @@ var RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props
|
|
6861
6888
|
|
6862
6889
|
var children = props.children,
|
6863
6890
|
value = props.value,
|
6864
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6891
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$A);
|
6865
6892
|
|
6866
6893
|
var isDisabled = context.disabled || props.disabled;
|
6867
6894
|
var className = cn('flex flex-shrink-0 self-start items-center justify-center h-4 w-4 mt-[0.2rem] rounded-full bg-white border-2 hover:border-4', {
|
@@ -6953,13 +6980,13 @@ var RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
|
|
6953
6980
|
});
|
6954
6981
|
RadioGroup.Item = RadioGroupItem;
|
6955
6982
|
|
6956
|
-
var _excluded$
|
6983
|
+
var _excluded$B = ["children", "value"];
|
6957
6984
|
var RadioItem = function RadioItem(props) {
|
6958
6985
|
var context = React.useContext(MenuRadioGroupContext);
|
6959
6986
|
|
6960
6987
|
var children = props.children,
|
6961
6988
|
value = props.value,
|
6962
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6989
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$B);
|
6963
6990
|
|
6964
6991
|
var disabled = context.disabled || props.disabled;
|
6965
6992
|
var className = useItemStyling({
|
@@ -7053,12 +7080,12 @@ var Header = function Header(props) {
|
|
7053
7080
|
}));
|
7054
7081
|
};
|
7055
7082
|
|
7056
|
-
var _excluded$
|
7083
|
+
var _excluded$C = ["appearance", "children", "trigger"];
|
7057
7084
|
var Menu = function Menu(externalProps) {
|
7058
7085
|
var externalAppearance = externalProps.appearance,
|
7059
7086
|
children = externalProps.children,
|
7060
7087
|
trigger = externalProps.trigger,
|
7061
|
-
props = _objectWithoutPropertiesLoose(externalProps, _excluded$
|
7088
|
+
props = _objectWithoutPropertiesLoose(externalProps, _excluded$C);
|
7062
7089
|
|
7063
7090
|
var _React$useState = React.useState(false),
|
7064
7091
|
open = _React$useState[0],
|
@@ -7101,10 +7128,10 @@ var Menu = function Menu(externalProps) {
|
|
7101
7128
|
modal: false,
|
7102
7129
|
open: open,
|
7103
7130
|
onOpenChange: setOpen
|
7104
|
-
}), trigger && React.createElement(Trigger$
|
7131
|
+
}), trigger && React.createElement(Trigger$4, null, trigger), children));
|
7105
7132
|
};
|
7106
|
-
Menu.Trigger = Trigger$
|
7107
|
-
Menu.Content = Content$
|
7133
|
+
Menu.Trigger = Trigger$4;
|
7134
|
+
Menu.Content = Content$5;
|
7108
7135
|
Menu.Item = Item$1;
|
7109
7136
|
Menu.Link = Link;
|
7110
7137
|
Menu.Checkbox = Checkbox$1;
|
@@ -7112,7 +7139,7 @@ Menu.Separator = Separator;
|
|
7112
7139
|
Menu.Header = Header;
|
7113
7140
|
Menu.RadioGroup = RadioGroup$1;
|
7114
7141
|
|
7115
|
-
var _excluded$
|
7142
|
+
var _excluded$D = ["children", "className", "expanded", "title", "fixed", "onClick"];
|
7116
7143
|
var TreeviewItem = /*#__PURE__*/React__default.forwardRef(function TreeviewItem(props, ref) {
|
7117
7144
|
return React__default.createElement("a", Object.assign({}, props, {
|
7118
7145
|
ref: ref
|
@@ -7126,7 +7153,7 @@ var TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGrou
|
|
7126
7153
|
title = props.title,
|
7127
7154
|
fixed = props.fixed,
|
7128
7155
|
onClick = props.onClick,
|
7129
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
7156
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$D);
|
7130
7157
|
|
7131
7158
|
var _React$useState = React__default.useState(fixed || initialExpanded),
|
7132
7159
|
expanded = _React$useState[0],
|
@@ -7226,7 +7253,7 @@ var useDropTarget = function useDropTarget(onDrop) {
|
|
7226
7253
|
return [isDraggedOver, props];
|
7227
7254
|
};
|
7228
7255
|
|
7229
|
-
var _excluded$
|
7256
|
+
var _excluded$E = ["active", "children", "onDrop", "postfix", "prefix", "role"],
|
7230
7257
|
_excluded2$4 = ["children"];
|
7231
7258
|
var Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
|
7232
7259
|
var active = props.active,
|
@@ -7235,7 +7262,7 @@ var Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
|
|
7235
7262
|
postfix = props.postfix,
|
7236
7263
|
prefix = props.prefix,
|
7237
7264
|
role = props.role,
|
7238
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
7265
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$E);
|
7239
7266
|
|
7240
7267
|
var proxyRef = useProxiedRef(ref);
|
7241
7268
|
|
@@ -7399,7 +7426,7 @@ var PageNumbers = function PageNumbers(_ref) {
|
|
7399
7426
|
}));
|
7400
7427
|
};
|
7401
7428
|
|
7402
|
-
var _excluded$
|
7429
|
+
var _excluded$F = ["aria-label", "aria-labelledby", "data", "defaultValue", "disabled", "emptyValue", "id", "multiselect", "onBlur", "onClick", "onChange", "readOnly", "value"];
|
7403
7430
|
var useSelect = function useSelect(_ref, ref) {
|
7404
7431
|
var ariaLabel = _ref['aria-label'],
|
7405
7432
|
ariaLabelledBy = _ref['aria-labelledby'],
|
@@ -7414,7 +7441,7 @@ var useSelect = function useSelect(_ref, ref) {
|
|
7414
7441
|
onChange = _ref.onChange,
|
7415
7442
|
readOnly = _ref.readOnly,
|
7416
7443
|
value = _ref.value,
|
7417
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
7444
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
7418
7445
|
|
7419
7446
|
var _useLocalization = useLocalization(),
|
7420
7447
|
texts = _useLocalization.texts;
|
@@ -7617,13 +7644,13 @@ var useSelect = function useSelect(_ref, ref) {
|
|
7617
7644
|
};
|
7618
7645
|
};
|
7619
7646
|
|
7620
|
-
var _excluded$
|
7647
|
+
var _excluded$G = ["autoFocus", "className", "highlighted", "style"],
|
7621
7648
|
_excluded2$5 = ["editable"];
|
7622
7649
|
var BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
|
7623
7650
|
var autoFocus = props.autoFocus,
|
7624
7651
|
externalClassName = props.className,
|
7625
7652
|
style = props.style,
|
7626
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
7653
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$G);
|
7627
7654
|
|
7628
7655
|
var _useSelect = useSelect(otherProps, ref),
|
7629
7656
|
button = _useSelect.button,
|
@@ -7774,7 +7801,7 @@ var usePagination = function usePagination(initialPageIndex, initialPageSize) {
|
|
7774
7801
|
};
|
7775
7802
|
};
|
7776
7803
|
|
7777
|
-
var _excluded$
|
7804
|
+
var _excluded$H = ["length", "pageIndex", "pageSize", "pageSizes", "setPageIndex", "setPageSize", "showPageControls", "showPageNumbers", "showPageSize", "dangerouslyHijackGlobalKeyboardNavigation"];
|
7778
7805
|
|
7779
7806
|
var getShowingLabel = function getShowingLabel(length, pageIndex, pageSize, texts) {
|
7780
7807
|
var minItemIndex = pageIndex * pageSize + 1;
|
@@ -7798,7 +7825,7 @@ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
|
|
7798
7825
|
showPageSize = _props$showPageSize === void 0 ? true : _props$showPageSize,
|
7799
7826
|
_props$dangerouslyHij = props.dangerouslyHijackGlobalKeyboardNavigation,
|
7800
7827
|
dangerouslyHijackGlobalKeyboardNavigation = _props$dangerouslyHij === void 0 ? false : _props$dangerouslyHij,
|
7801
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
7828
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$H);
|
7802
7829
|
|
7803
7830
|
var _useLocalization = useLocalization(),
|
7804
7831
|
texts = _useLocalization.texts;
|
@@ -7881,13 +7908,13 @@ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
|
|
7881
7908
|
})));
|
7882
7909
|
});
|
7883
7910
|
|
7884
|
-
var _excluded$
|
7911
|
+
var _excluded$I = ["duration"];
|
7885
7912
|
var Progress = function Progress(_ref) {
|
7886
7913
|
var _cn;
|
7887
7914
|
|
7888
7915
|
var _ref$duration = _ref.duration,
|
7889
7916
|
duration = _ref$duration === void 0 ? undefined : _ref$duration,
|
7890
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
7917
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
|
7891
7918
|
|
7892
7919
|
var style;
|
7893
7920
|
|
@@ -7911,7 +7938,7 @@ var Progress = function Progress(_ref) {
|
|
7911
7938
|
}));
|
7912
7939
|
};
|
7913
7940
|
|
7914
|
-
var _excluded$
|
7941
|
+
var _excluded$J = ["children"];
|
7915
7942
|
var sanitizeRowProps = function sanitizeRowProps(row, rowExpansionRenderer) {
|
7916
7943
|
var _row$subRows;
|
7917
7944
|
|
@@ -7951,7 +7978,7 @@ var getColumnsFromChildren = function getColumnsFromChildren(children, rowExpans
|
|
7951
7978
|
.map(function (_ref) {
|
7952
7979
|
var _ref$props = _ref.props,
|
7953
7980
|
groupChildren = _ref$props.children,
|
7954
|
-
props = _objectWithoutPropertiesLoose(_ref$props, _excluded$
|
7981
|
+
props = _objectWithoutPropertiesLoose(_ref$props, _excluded$J);
|
7955
7982
|
|
7956
7983
|
var column = _extends({}, props);
|
7957
7984
|
|
@@ -8448,7 +8475,7 @@ var useRowActions = function useRowActions(inlineEditingUniqueId, handlers, acti
|
|
8448
8475
|
return plugin;
|
8449
8476
|
};
|
8450
8477
|
|
8451
|
-
var _excluded$
|
8478
|
+
var _excluded$K = ["onChange"],
|
8452
8479
|
_excluded2$6 = ["onChange"];
|
8453
8480
|
|
8454
8481
|
var toggleBetween = function toggleBetween(fromRowIndex, toRowIndex) {
|
@@ -8496,7 +8523,7 @@ var useRowSelect = function useRowSelect(onSelectedRows) {
|
|
8496
8523
|
rows = _ref.rows;
|
8497
8524
|
|
8498
8525
|
var _getToggleAllRowsSele = getToggleAllRowsSelectedProps(),
|
8499
|
-
props = _objectWithoutPropertiesLoose(_getToggleAllRowsSele, _excluded$
|
8526
|
+
props = _objectWithoutPropertiesLoose(_getToggleAllRowsSele, _excluded$K);
|
8500
8527
|
|
8501
8528
|
var onChange = function onChange(checked) {
|
8502
8529
|
if (checked) {
|
@@ -8812,7 +8839,7 @@ var useRowDraggable = function useRowDraggable(onRowDrag) {
|
|
8812
8839
|
return plugin;
|
8813
8840
|
};
|
8814
8841
|
|
8815
|
-
var _excluded$
|
8842
|
+
var _excluded$L = ["children", "data", "dangerouslyHijackGlobalKeyboardNavigation", "onRowClick", "onRowDrag", "onSelectedRows", "rowClassName", "rowExpansionRenderer", "rowHeight", "selectedRows", "disableSorting", "manualSorting", "onSort", "sortRules", "disablePagination", "length", "onPaginate", "pageSize", "pageIndex", "inlineEditingUniqueId", "onRowCreate", "actions", "onRowEdit", "onRowCopy", "onRowDelete", "onRowActive", "windowed"],
|
8816
8843
|
_excluded2$7 = ["headerGroups", "rows", "sortedRows", "prepareRow", "state", "page", "gotoPage", "setPageSize"];
|
8817
8844
|
|
8818
8845
|
var useTableRowActive = function useTableRowActive(activeIndex, rows, rowExpansionRenderer, handleonRowActive) {
|
@@ -8919,7 +8946,7 @@ var useTable = function useTable(props, ref) {
|
|
8919
8946
|
onRowActive = props.onRowActive,
|
8920
8947
|
_props$windowed = props.windowed,
|
8921
8948
|
windowed = _props$windowed === void 0 ? false : _props$windowed,
|
8922
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
8949
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$L);
|
8923
8950
|
|
8924
8951
|
if (onSelectedRows && !selectedRows || !onSelectedRows && selectedRows) {
|
8925
8952
|
throw new Error('Selected rows in a Table component are fully controlled - you must pass both the `onSelectedRows` and `selectedRows` props when using row selection');
|
@@ -9037,7 +9064,7 @@ var useTable = function useTable(props, ref) {
|
|
9037
9064
|
};
|
9038
9065
|
};
|
9039
9066
|
|
9040
|
-
var _excluded$
|
9067
|
+
var _excluded$M = ["row", "index", "instance", "headerGroups"];
|
9041
9068
|
|
9042
9069
|
var renderCell = function renderCell(cell, row) {
|
9043
9070
|
var props = _extends({}, cell.getCellProps(), {
|
@@ -9061,7 +9088,7 @@ var Row = /*#__PURE__*/React__default.forwardRef(function TableRow(_ref, ref) {
|
|
9061
9088
|
var row = _ref.row,
|
9062
9089
|
index = _ref.index,
|
9063
9090
|
instance = _ref.instance,
|
9064
|
-
rowProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
9091
|
+
rowProps = _objectWithoutPropertiesLoose(_ref, _excluded$M);
|
9065
9092
|
|
9066
9093
|
var activeIndex = rowProps.activeIndex,
|
9067
9094
|
onRowClick = rowProps.onRowClick,
|
@@ -9172,7 +9199,7 @@ var Column = function Column(_ref) {
|
|
9172
9199
|
}) : null);
|
9173
9200
|
};
|
9174
9201
|
|
9175
|
-
var _excluded$
|
9202
|
+
var _excluded$N = ["autoFocus", "children", "disableSorting", "headerGroups", "headerRef", "bodyRef"];
|
9176
9203
|
var DefaultEmptyState = function DefaultEmptyState() {
|
9177
9204
|
return null;
|
9178
9205
|
};
|
@@ -9184,7 +9211,7 @@ var BaseTable = /*#__PURE__*/React__default.forwardRef(function BaseTable(props,
|
|
9184
9211
|
headerGroups = props.headerGroups,
|
9185
9212
|
headerRef = props.headerRef,
|
9186
9213
|
bodyRef = props.bodyRef,
|
9187
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
9214
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$N);
|
9188
9215
|
|
9189
9216
|
React__default.useEffect(function () {
|
9190
9217
|
if (autoFocus && tableRef.current) {
|
@@ -9219,11 +9246,11 @@ var BaseTable = /*#__PURE__*/React__default.forwardRef(function BaseTable(props,
|
|
9219
9246
|
}, children));
|
9220
9247
|
});
|
9221
9248
|
|
9222
|
-
var _excluded$
|
9249
|
+
var _excluded$O = ["emptyStateRenderer"];
|
9223
9250
|
var Table = /*#__PURE__*/React__default.forwardRef(function Table(props, ref) {
|
9224
9251
|
var _props$emptyStateRend = props.emptyStateRenderer,
|
9225
9252
|
emptyStateRenderer = _props$emptyStateRend === void 0 ? DefaultEmptyState : _props$emptyStateRend,
|
9226
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
9253
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$O);
|
9227
9254
|
|
9228
9255
|
var tableRef = useProxiedRef(ref);
|
9229
9256
|
|
@@ -9287,14 +9314,14 @@ PaginatedTable.Group = function () {
|
|
9287
9314
|
return null;
|
9288
9315
|
};
|
9289
9316
|
|
9290
|
-
var _excluded$
|
9317
|
+
var _excluded$P = ["height"],
|
9291
9318
|
_excluded2$8 = ["emptyStateRenderer", "length", "loadMore"];
|
9292
9319
|
var ROW_HEIGHT = 40;
|
9293
9320
|
var VariableRow = /*#__PURE__*/React__default.memo(function (_ref) {
|
9294
9321
|
var data = _ref.data,
|
9295
9322
|
index = _ref.index,
|
9296
9323
|
_ref$style = _ref.style,
|
9297
|
-
style = _objectWithoutPropertiesLoose(_ref$style, _excluded$
|
9324
|
+
style = _objectWithoutPropertiesLoose(_ref$style, _excluded$P);
|
9298
9325
|
|
9299
9326
|
var _useLocalization = useLocalization(),
|
9300
9327
|
texts = _useLocalization.texts;
|
@@ -9659,7 +9686,7 @@ var useTableRowCreation = function useTableRowCreation(data, tableRef) {
|
|
9659
9686
|
};
|
9660
9687
|
};
|
9661
9688
|
|
9662
|
-
var _excluded$
|
9689
|
+
var _excluded$Q = ["id", "defaultId", "children", "onChange", "orientation"],
|
9663
9690
|
_excluded2$9 = ["id", "disabled"],
|
9664
9691
|
_excluded3 = ["id"];
|
9665
9692
|
var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
|
@@ -9669,7 +9696,7 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
|
|
9669
9696
|
onChange = props.onChange,
|
9670
9697
|
_props$orientation = props.orientation,
|
9671
9698
|
orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
|
9672
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
9699
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$Q);
|
9673
9700
|
|
9674
9701
|
var className = cn('yt-tabs', "yt-tabs--" + orientation, {
|
9675
9702
|
'flex w-full': orientation === 'vertical'
|
@@ -9723,10 +9750,10 @@ Tabs.List = TabList;
|
|
9723
9750
|
Tabs.Trigger = TabTrigger;
|
9724
9751
|
Tabs.Content = TabContent;
|
9725
9752
|
|
9726
|
-
var _excluded$
|
9753
|
+
var _excluded$R = ["defaultValue", "highlighted", "invalid", "onKeyDown"];
|
9727
9754
|
var Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
|
9728
9755
|
var onKeyDown = props.onKeyDown,
|
9729
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
9756
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$R);
|
9730
9757
|
|
9731
9758
|
var classNames = cn(getInputClasses(props), 'py-1 min-h-[75px] disabled:resize-none', props.className); // home and end keys only navigate to the start/end of textarea value if the textarea container does not scroll
|
9732
9759
|
// if it has scroll height then the browser reverts to native scrolling behaviour only
|
@@ -9753,11 +9780,11 @@ var Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
|
|
9753
9780
|
}));
|
9754
9781
|
});
|
9755
9782
|
|
9756
|
-
var _excluded$
|
9783
|
+
var _excluded$S = ["label", "onChange"];
|
9757
9784
|
var Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
|
9758
9785
|
var label = props.label,
|
9759
9786
|
onChange = props.onChange,
|
9760
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
9787
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$S);
|
9761
9788
|
|
9762
9789
|
var className = cn('group h-5 w-9 flex rounded-full inline-flex', {
|
9763
9790
|
'mr-2': !!label,
|
@@ -9784,7 +9811,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
|
|
9784
9811
|
return element;
|
9785
9812
|
});
|
9786
9813
|
|
9787
|
-
var _excluded$
|
9814
|
+
var _excluded$T = ["autoStart", "onComplete", "onClose", "onReady", "spotlightClicks", "disableCloseOnEsc", "disableScrollParentFix"];
|
9788
9815
|
|
9789
9816
|
var Tooltip$1 = function Tooltip(_ref) {
|
9790
9817
|
var continuous = _ref.continuous,
|
@@ -9849,7 +9876,7 @@ var Tour = function Tour(props) {
|
|
9849
9876
|
disableTourSkipOnEsc = props.disableCloseOnEsc,
|
9850
9877
|
_props$disableScrollP = props.disableScrollParentFix,
|
9851
9878
|
disableScrollParentFix = _props$disableScrollP === void 0 ? false : _props$disableScrollP,
|
9852
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
9879
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$T);
|
9853
9880
|
|
9854
9881
|
var steps = React.useMemo(function () {
|
9855
9882
|
return React.Children.map(props.children, function (child) {
|
@@ -9958,6 +9985,7 @@ exports.Field = Field;
|
|
9958
9985
|
exports.Form = Form;
|
9959
9986
|
exports.Group = Group;
|
9960
9987
|
exports.Hanger = Hanger;
|
9988
|
+
exports.HoverCard = HoverCard;
|
9961
9989
|
exports.Icon = Icon;
|
9962
9990
|
exports.IconButton = IconButton;
|
9963
9991
|
exports.Input = Input;
|