@economic/taco 1.0.0 → 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/Button/util.js +4 -4
- package/dist/esm/components/Button/util.js.map +1 -1
- 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 +5 -0
- package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/components/Table/hooks/plugins/useRowSelect.js +3 -4
- package/dist/esm/components/Table/hooks/plugins/useRowSelect.js.map +1 -1
- package/dist/esm/components/Table/util/renderColumn.js +2 -1
- package/dist/esm/components/Table/util/renderColumn.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 +102 -70
- 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
@@ -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');
|
@@ -3412,18 +3413,18 @@ var getAppearanceClasses = function getAppearanceClasses(value, icon) {
|
|
3412
3413
|
|
3413
3414
|
switch (value) {
|
3414
3415
|
case 'primary':
|
3415
|
-
return "yt-blue-solid border-blue focus:bg-blue focus:text-white focus:yt-focus active:bg-blue-dark active:text-white
|
3416
|
+
return "yt-blue-solid border-blue focus:bg-blue focus:text-white focus:yt-focus active:bg-blue-dark active:text-white hover:bg-blue-light hover:border-blue-light hover:text-white hover:focus:bg-blue-light hover:focus:border-blue-light hover:focus:text-white disabled:hover:yt-blue-solid disabled:hover:hover:border-blue";
|
3416
3417
|
|
3417
3418
|
case 'danger':
|
3418
|
-
return "yt-red-solid border-red focus:bg-red focus:text-white focus:yt-focus-red active:bg-red-dark active:text-white
|
3419
|
+
return "yt-red-solid border-red focus:bg-red focus:text-white focus:yt-focus-red active:bg-red-dark active:text-white hover:bg-red-light hover:text-white hover:focus:bg-red-light hover:focus:text-white disabled:hover:yt-red-solid";
|
3419
3420
|
|
3420
3421
|
case 'ghost':
|
3421
|
-
return "yt-blue-inverted focus:bg-transparent focus:text-blue focus:yt-focus active:bg-blue-lightest active:border-blue active:text-blue-dark
|
3422
|
+
return "yt-blue-inverted focus:bg-transparent focus:text-blue focus:yt-focus active:bg-blue-lightest active:border-blue active:text-blue-dark hover:bg-blue-lightest hover:border-blue-light hover:text-blue-light hover:focus:bg-blue-lightest hover:focus:border-blue-light hover:focus:text-blue-light disabled:hover:yt-blue-inverted";
|
3422
3423
|
|
3423
3424
|
case 'discrete':
|
3424
3425
|
{
|
3425
3426
|
if (icon) {
|
3426
|
-
return "bg-transparent text-black border-transparent focus:text-black focus:yt-focus active:text-black hover:text-grey-darkest hover:focus:text-grey-darkest disabled:hover:
|
3427
|
+
return "bg-transparent text-black border-transparent focus:text-black focus:yt-focus active:text-black hover:text-grey-darkest hover:focus:text-grey-darkest disabled:hover:text-black ";
|
3427
3428
|
}
|
3428
3429
|
|
3429
3430
|
return "yt-transparent border-transparent focus:text-blue focus:yt-focus active:text-blue-dark hover:text-blue-light hover:focus:text-blue-light disabled:hover:yt-transparent";
|
@@ -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;
|
@@ -6131,11 +6158,15 @@ var SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput(_ref, ref)
|
|
6131
6158
|
};
|
6132
6159
|
|
6133
6160
|
var handleKeyDown = function handleKeyDown(event) {
|
6161
|
+
var _props$onKeyDown;
|
6162
|
+
|
6134
6163
|
var isEnterKeyPressed = event.keyCode === keycode('enter');
|
6135
6164
|
|
6136
6165
|
if (isEnterKeyPressed) {
|
6137
6166
|
handleClick();
|
6138
6167
|
}
|
6168
|
+
|
6169
|
+
(_props$onKeyDown = props.onKeyDown) === null || _props$onKeyDown === void 0 ? void 0 : _props$onKeyDown.call(props, event);
|
6139
6170
|
};
|
6140
6171
|
|
6141
6172
|
return React.createElement(Input, Object.assign({
|
@@ -6174,7 +6205,7 @@ var useTypeahead = function useTypeahead(_ref) {
|
|
6174
6205
|
};
|
6175
6206
|
};
|
6176
6207
|
|
6177
|
-
var _excluded$
|
6208
|
+
var _excluded$t = ["data", "defaultValue", "disabled", "emptyValue", "id", "invalid", "name", "onChange", "onFocus", "onKeyDown", "value"];
|
6178
6209
|
var useListbox = function useListbox(_ref, ref) {
|
6179
6210
|
var _ref$data = _ref.data,
|
6180
6211
|
externalData = _ref$data === void 0 ? [] : _ref$data,
|
@@ -6189,7 +6220,7 @@ var useListbox = function useListbox(_ref, ref) {
|
|
6189
6220
|
onKeyDown = _ref.onKeyDown,
|
6190
6221
|
_ref$value = _ref.value,
|
6191
6222
|
value = _ref$value === void 0 ? emptyValue : _ref$value,
|
6192
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
6223
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
6193
6224
|
|
6194
6225
|
var data = useFlattenedData(emptyValue !== undefined ? [{
|
6195
6226
|
text: '',
|
@@ -6319,7 +6350,7 @@ var useListbox = function useListbox(_ref, ref) {
|
|
6319
6350
|
};
|
6320
6351
|
};
|
6321
6352
|
|
6322
|
-
var _excluded$
|
6353
|
+
var _excluded$u = ["data", "defaultValue", "disabled", "emptyValue", "id", "name", "onClick", "onChange", "onFocus", "onKeyDown", "value"];
|
6323
6354
|
var useMultiListbox = function useMultiListbox(_ref, ref) {
|
6324
6355
|
var _ref$data = _ref.data,
|
6325
6356
|
externalData = _ref$data === void 0 ? [] : _ref$data,
|
@@ -6332,7 +6363,7 @@ var useMultiListbox = function useMultiListbox(_ref, ref) {
|
|
6332
6363
|
onFocus = _ref.onFocus,
|
6333
6364
|
onKeyDown = _ref.onKeyDown,
|
6334
6365
|
value = _ref.value,
|
6335
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
6366
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
6336
6367
|
|
6337
6368
|
var _useLocalization = useLocalization(),
|
6338
6369
|
texts = _useLocalization.texts;
|
@@ -6531,11 +6562,11 @@ var useMultiListbox = function useMultiListbox(_ref, ref) {
|
|
6531
6562
|
};
|
6532
6563
|
};
|
6533
6564
|
|
6534
|
-
var _excluded$
|
6565
|
+
var _excluded$v = ["className"],
|
6535
6566
|
_excluded2$2 = ["className"];
|
6536
6567
|
var Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
|
6537
6568
|
var externalClassName = props.className,
|
6538
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6569
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$v);
|
6539
6570
|
|
6540
6571
|
var _useListbox = useListbox(otherProps, ref),
|
6541
6572
|
list = _useListbox.list,
|
@@ -6580,7 +6611,7 @@ var MultiListbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
|
|
6580
6611
|
})));
|
6581
6612
|
});
|
6582
6613
|
|
6583
|
-
var _excluded$
|
6614
|
+
var _excluded$w = ["children", "placement"];
|
6584
6615
|
|
6585
6616
|
var getAppearanceClasses$1 = function getAppearanceClasses(appearance) {
|
6586
6617
|
switch (appearance) {
|
@@ -6602,13 +6633,13 @@ var getAppearanceClasses$1 = function getAppearanceClasses(appearance) {
|
|
6602
6633
|
}
|
6603
6634
|
};
|
6604
6635
|
|
6605
|
-
var Content$
|
6636
|
+
var Content$5 = /*#__PURE__*/React.forwardRef(function MenuContent(props, ref) {
|
6606
6637
|
var internalRef = useProxiedRef(ref);
|
6607
6638
|
var menu = useCurrentMenu();
|
6608
6639
|
|
6609
6640
|
var children = props.children,
|
6610
6641
|
side = props.placement,
|
6611
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6642
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$w);
|
6612
6643
|
|
6613
6644
|
var className = cn('border rounded block outline-none p-1', getAppearanceClasses$1(menu === null || menu === void 0 ? void 0 : menu.appearance), props.className);
|
6614
6645
|
return React.createElement(DropdownMenuPrimitive.Content, Object.assign({}, otherProps, {
|
@@ -6624,7 +6655,7 @@ var Content$4 = /*#__PURE__*/React.forwardRef(function MenuContent(props, ref) {
|
|
6624
6655
|
}), children);
|
6625
6656
|
});
|
6626
6657
|
|
6627
|
-
var _excluded$
|
6658
|
+
var _excluded$x = ["dialog", "icon", "onClick", "shortcut"];
|
6628
6659
|
var Icon$1 = function Icon$1(_ref) {
|
6629
6660
|
var name = _ref.name;
|
6630
6661
|
return React.createElement("span", {
|
@@ -6711,7 +6742,7 @@ var Item$1 = /*#__PURE__*/React.forwardRef(function MenuItem(props, ref) {
|
|
6711
6742
|
icon = props.icon,
|
6712
6743
|
onClick = props.onClick,
|
6713
6744
|
shortcut = props.shortcut,
|
6714
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6745
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$x);
|
6715
6746
|
|
6716
6747
|
var className = useItemStyling({
|
6717
6748
|
disabled: props.disabled,
|
@@ -6756,12 +6787,12 @@ var Item$1 = /*#__PURE__*/React.forwardRef(function MenuItem(props, ref) {
|
|
6756
6787
|
return button;
|
6757
6788
|
});
|
6758
6789
|
|
6759
|
-
var _excluded$
|
6790
|
+
var _excluded$y = ["href", "icon", "onClick"];
|
6760
6791
|
var Link = /*#__PURE__*/React.forwardRef(function MenuLink(props, ref) {
|
6761
6792
|
var href = props.href,
|
6762
6793
|
icon = props.icon,
|
6763
6794
|
onClick = props.onClick,
|
6764
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6795
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$y);
|
6765
6796
|
|
6766
6797
|
var menu = useCurrentMenu();
|
6767
6798
|
var className = useItemStyling({
|
@@ -6788,7 +6819,7 @@ var Link = /*#__PURE__*/React.forwardRef(function MenuLink(props, ref) {
|
|
6788
6819
|
}), props.children));
|
6789
6820
|
});
|
6790
6821
|
|
6791
|
-
var Trigger$
|
6822
|
+
var Trigger$4 = /*#__PURE__*/React.forwardRef(function MenuTrigger(props, ref) {
|
6792
6823
|
var _props$children3, _props$children3$prop;
|
6793
6824
|
|
6794
6825
|
var menu = useCurrentMenu();
|
@@ -6814,12 +6845,12 @@ var Trigger$3 = /*#__PURE__*/React.forwardRef(function MenuTrigger(props, ref) {
|
|
6814
6845
|
}));
|
6815
6846
|
});
|
6816
6847
|
|
6817
|
-
var _excluded$
|
6848
|
+
var _excluded$z = ["checked", "children", "onChange"];
|
6818
6849
|
var Checkbox$1 = function Checkbox(props) {
|
6819
6850
|
var checked = props.checked,
|
6820
6851
|
children = props.children,
|
6821
6852
|
onChange = props.onChange,
|
6822
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6853
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$z);
|
6823
6854
|
|
6824
6855
|
var className = useItemStyling({
|
6825
6856
|
disabled: props.disabled,
|
@@ -6838,7 +6869,7 @@ var Checkbox$1 = function Checkbox(props) {
|
|
6838
6869
|
})), children);
|
6839
6870
|
};
|
6840
6871
|
|
6841
|
-
var _excluded$
|
6872
|
+
var _excluded$A = ["children", "value"],
|
6842
6873
|
_excluded2$3 = ["children", "defaultValue", "disabled", "invalid", "onChange", "orientation", "value"];
|
6843
6874
|
var getRadioGroupItemValueAsString = function getRadioGroupItemValueAsString(value) {
|
6844
6875
|
return value === null ? '' : String(value);
|
@@ -6857,7 +6888,7 @@ var RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props
|
|
6857
6888
|
|
6858
6889
|
var children = props.children,
|
6859
6890
|
value = props.value,
|
6860
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6891
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$A);
|
6861
6892
|
|
6862
6893
|
var isDisabled = context.disabled || props.disabled;
|
6863
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', {
|
@@ -6949,13 +6980,13 @@ var RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
|
|
6949
6980
|
});
|
6950
6981
|
RadioGroup.Item = RadioGroupItem;
|
6951
6982
|
|
6952
|
-
var _excluded$
|
6983
|
+
var _excluded$B = ["children", "value"];
|
6953
6984
|
var RadioItem = function RadioItem(props) {
|
6954
6985
|
var context = React.useContext(MenuRadioGroupContext);
|
6955
6986
|
|
6956
6987
|
var children = props.children,
|
6957
6988
|
value = props.value,
|
6958
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
6989
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$B);
|
6959
6990
|
|
6960
6991
|
var disabled = context.disabled || props.disabled;
|
6961
6992
|
var className = useItemStyling({
|
@@ -7049,12 +7080,12 @@ var Header = function Header(props) {
|
|
7049
7080
|
}));
|
7050
7081
|
};
|
7051
7082
|
|
7052
|
-
var _excluded$
|
7083
|
+
var _excluded$C = ["appearance", "children", "trigger"];
|
7053
7084
|
var Menu = function Menu(externalProps) {
|
7054
7085
|
var externalAppearance = externalProps.appearance,
|
7055
7086
|
children = externalProps.children,
|
7056
7087
|
trigger = externalProps.trigger,
|
7057
|
-
props = _objectWithoutPropertiesLoose(externalProps, _excluded$
|
7088
|
+
props = _objectWithoutPropertiesLoose(externalProps, _excluded$C);
|
7058
7089
|
|
7059
7090
|
var _React$useState = React.useState(false),
|
7060
7091
|
open = _React$useState[0],
|
@@ -7097,10 +7128,10 @@ var Menu = function Menu(externalProps) {
|
|
7097
7128
|
modal: false,
|
7098
7129
|
open: open,
|
7099
7130
|
onOpenChange: setOpen
|
7100
|
-
}), trigger && React.createElement(Trigger$
|
7131
|
+
}), trigger && React.createElement(Trigger$4, null, trigger), children));
|
7101
7132
|
};
|
7102
|
-
Menu.Trigger = Trigger$
|
7103
|
-
Menu.Content = Content$
|
7133
|
+
Menu.Trigger = Trigger$4;
|
7134
|
+
Menu.Content = Content$5;
|
7104
7135
|
Menu.Item = Item$1;
|
7105
7136
|
Menu.Link = Link;
|
7106
7137
|
Menu.Checkbox = Checkbox$1;
|
@@ -7108,7 +7139,7 @@ Menu.Separator = Separator;
|
|
7108
7139
|
Menu.Header = Header;
|
7109
7140
|
Menu.RadioGroup = RadioGroup$1;
|
7110
7141
|
|
7111
|
-
var _excluded$
|
7142
|
+
var _excluded$D = ["children", "className", "expanded", "title", "fixed", "onClick"];
|
7112
7143
|
var TreeviewItem = /*#__PURE__*/React__default.forwardRef(function TreeviewItem(props, ref) {
|
7113
7144
|
return React__default.createElement("a", Object.assign({}, props, {
|
7114
7145
|
ref: ref
|
@@ -7122,7 +7153,7 @@ var TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGrou
|
|
7122
7153
|
title = props.title,
|
7123
7154
|
fixed = props.fixed,
|
7124
7155
|
onClick = props.onClick,
|
7125
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
7156
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$D);
|
7126
7157
|
|
7127
7158
|
var _React$useState = React__default.useState(fixed || initialExpanded),
|
7128
7159
|
expanded = _React$useState[0],
|
@@ -7222,7 +7253,7 @@ var useDropTarget = function useDropTarget(onDrop) {
|
|
7222
7253
|
return [isDraggedOver, props];
|
7223
7254
|
};
|
7224
7255
|
|
7225
|
-
var _excluded$
|
7256
|
+
var _excluded$E = ["active", "children", "onDrop", "postfix", "prefix", "role"],
|
7226
7257
|
_excluded2$4 = ["children"];
|
7227
7258
|
var Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
|
7228
7259
|
var active = props.active,
|
@@ -7231,7 +7262,7 @@ var Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
|
|
7231
7262
|
postfix = props.postfix,
|
7232
7263
|
prefix = props.prefix,
|
7233
7264
|
role = props.role,
|
7234
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
7265
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$E);
|
7235
7266
|
|
7236
7267
|
var proxyRef = useProxiedRef(ref);
|
7237
7268
|
|
@@ -7395,7 +7426,7 @@ var PageNumbers = function PageNumbers(_ref) {
|
|
7395
7426
|
}));
|
7396
7427
|
};
|
7397
7428
|
|
7398
|
-
var _excluded$
|
7429
|
+
var _excluded$F = ["aria-label", "aria-labelledby", "data", "defaultValue", "disabled", "emptyValue", "id", "multiselect", "onBlur", "onClick", "onChange", "readOnly", "value"];
|
7399
7430
|
var useSelect = function useSelect(_ref, ref) {
|
7400
7431
|
var ariaLabel = _ref['aria-label'],
|
7401
7432
|
ariaLabelledBy = _ref['aria-labelledby'],
|
@@ -7410,7 +7441,7 @@ var useSelect = function useSelect(_ref, ref) {
|
|
7410
7441
|
onChange = _ref.onChange,
|
7411
7442
|
readOnly = _ref.readOnly,
|
7412
7443
|
value = _ref.value,
|
7413
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
7444
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
7414
7445
|
|
7415
7446
|
var _useLocalization = useLocalization(),
|
7416
7447
|
texts = _useLocalization.texts;
|
@@ -7613,13 +7644,13 @@ var useSelect = function useSelect(_ref, ref) {
|
|
7613
7644
|
};
|
7614
7645
|
};
|
7615
7646
|
|
7616
|
-
var _excluded$
|
7647
|
+
var _excluded$G = ["autoFocus", "className", "highlighted", "style"],
|
7617
7648
|
_excluded2$5 = ["editable"];
|
7618
7649
|
var BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
|
7619
7650
|
var autoFocus = props.autoFocus,
|
7620
7651
|
externalClassName = props.className,
|
7621
7652
|
style = props.style,
|
7622
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
7653
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$G);
|
7623
7654
|
|
7624
7655
|
var _useSelect = useSelect(otherProps, ref),
|
7625
7656
|
button = _useSelect.button,
|
@@ -7770,7 +7801,7 @@ var usePagination = function usePagination(initialPageIndex, initialPageSize) {
|
|
7770
7801
|
};
|
7771
7802
|
};
|
7772
7803
|
|
7773
|
-
var _excluded$
|
7804
|
+
var _excluded$H = ["length", "pageIndex", "pageSize", "pageSizes", "setPageIndex", "setPageSize", "showPageControls", "showPageNumbers", "showPageSize", "dangerouslyHijackGlobalKeyboardNavigation"];
|
7774
7805
|
|
7775
7806
|
var getShowingLabel = function getShowingLabel(length, pageIndex, pageSize, texts) {
|
7776
7807
|
var minItemIndex = pageIndex * pageSize + 1;
|
@@ -7794,7 +7825,7 @@ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
|
|
7794
7825
|
showPageSize = _props$showPageSize === void 0 ? true : _props$showPageSize,
|
7795
7826
|
_props$dangerouslyHij = props.dangerouslyHijackGlobalKeyboardNavigation,
|
7796
7827
|
dangerouslyHijackGlobalKeyboardNavigation = _props$dangerouslyHij === void 0 ? false : _props$dangerouslyHij,
|
7797
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
7828
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$H);
|
7798
7829
|
|
7799
7830
|
var _useLocalization = useLocalization(),
|
7800
7831
|
texts = _useLocalization.texts;
|
@@ -7877,13 +7908,13 @@ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
|
|
7877
7908
|
})));
|
7878
7909
|
});
|
7879
7910
|
|
7880
|
-
var _excluded$
|
7911
|
+
var _excluded$I = ["duration"];
|
7881
7912
|
var Progress = function Progress(_ref) {
|
7882
7913
|
var _cn;
|
7883
7914
|
|
7884
7915
|
var _ref$duration = _ref.duration,
|
7885
7916
|
duration = _ref$duration === void 0 ? undefined : _ref$duration,
|
7886
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
7917
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
|
7887
7918
|
|
7888
7919
|
var style;
|
7889
7920
|
|
@@ -7907,7 +7938,7 @@ var Progress = function Progress(_ref) {
|
|
7907
7938
|
}));
|
7908
7939
|
};
|
7909
7940
|
|
7910
|
-
var _excluded$
|
7941
|
+
var _excluded$J = ["children"];
|
7911
7942
|
var sanitizeRowProps = function sanitizeRowProps(row, rowExpansionRenderer) {
|
7912
7943
|
var _row$subRows;
|
7913
7944
|
|
@@ -7947,7 +7978,7 @@ var getColumnsFromChildren = function getColumnsFromChildren(children, rowExpans
|
|
7947
7978
|
.map(function (_ref) {
|
7948
7979
|
var _ref$props = _ref.props,
|
7949
7980
|
groupChildren = _ref$props.children,
|
7950
|
-
props = _objectWithoutPropertiesLoose(_ref$props, _excluded$
|
7981
|
+
props = _objectWithoutPropertiesLoose(_ref$props, _excluded$J);
|
7951
7982
|
|
7952
7983
|
var column = _extends({}, props);
|
7953
7984
|
|
@@ -8444,7 +8475,7 @@ var useRowActions = function useRowActions(inlineEditingUniqueId, handlers, acti
|
|
8444
8475
|
return plugin;
|
8445
8476
|
};
|
8446
8477
|
|
8447
|
-
var _excluded$
|
8478
|
+
var _excluded$K = ["onChange"],
|
8448
8479
|
_excluded2$6 = ["onChange"];
|
8449
8480
|
|
8450
8481
|
var toggleBetween = function toggleBetween(fromRowIndex, toRowIndex) {
|
@@ -8492,7 +8523,7 @@ var useRowSelect = function useRowSelect(onSelectedRows) {
|
|
8492
8523
|
rows = _ref.rows;
|
8493
8524
|
|
8494
8525
|
var _getToggleAllRowsSele = getToggleAllRowsSelectedProps(),
|
8495
|
-
props = _objectWithoutPropertiesLoose(_getToggleAllRowsSele, _excluded$
|
8526
|
+
props = _objectWithoutPropertiesLoose(_getToggleAllRowsSele, _excluded$K);
|
8496
8527
|
|
8497
8528
|
var onChange = function onChange(checked) {
|
8498
8529
|
if (checked) {
|
@@ -8504,8 +8535,7 @@ var useRowSelect = function useRowSelect(onSelectedRows) {
|
|
8504
8535
|
};
|
8505
8536
|
|
8506
8537
|
return React__default.createElement(Checkbox, Object.assign({}, props, {
|
8507
|
-
onChange: onChange
|
8508
|
-
className: "mt-px"
|
8538
|
+
onChange: onChange
|
8509
8539
|
}));
|
8510
8540
|
},
|
8511
8541
|
Cell: function Cell(_ref2) {
|
@@ -8537,7 +8567,7 @@ var useRowSelect = function useRowSelect(onSelectedRows) {
|
|
8537
8567
|
};
|
8538
8568
|
|
8539
8569
|
return React__default.createElement(Checkbox, Object.assign({}, props, {
|
8540
|
-
className: "mt-
|
8570
|
+
className: "mt-2.5",
|
8541
8571
|
onClick: onClick,
|
8542
8572
|
// this is necessary to remove console spam from eslint
|
8543
8573
|
onChange: function onChange() {
|
@@ -8546,7 +8576,7 @@ var useRowSelect = function useRowSelect(onSelectedRows) {
|
|
8546
8576
|
}));
|
8547
8577
|
},
|
8548
8578
|
flex: '0 0 36px',
|
8549
|
-
className: 'flex-col justify-start !
|
8579
|
+
className: 'flex-col justify-start !py-0'
|
8550
8580
|
}].concat(columns);
|
8551
8581
|
});
|
8552
8582
|
}
|
@@ -8809,7 +8839,7 @@ var useRowDraggable = function useRowDraggable(onRowDrag) {
|
|
8809
8839
|
return plugin;
|
8810
8840
|
};
|
8811
8841
|
|
8812
|
-
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"],
|
8813
8843
|
_excluded2$7 = ["headerGroups", "rows", "sortedRows", "prepareRow", "state", "page", "gotoPage", "setPageSize"];
|
8814
8844
|
|
8815
8845
|
var useTableRowActive = function useTableRowActive(activeIndex, rows, rowExpansionRenderer, handleonRowActive) {
|
@@ -8916,7 +8946,7 @@ var useTable = function useTable(props, ref) {
|
|
8916
8946
|
onRowActive = props.onRowActive,
|
8917
8947
|
_props$windowed = props.windowed,
|
8918
8948
|
windowed = _props$windowed === void 0 ? false : _props$windowed,
|
8919
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
8949
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$L);
|
8920
8950
|
|
8921
8951
|
if (onSelectedRows && !selectedRows || !onSelectedRows && selectedRows) {
|
8922
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');
|
@@ -9034,7 +9064,7 @@ var useTable = function useTable(props, ref) {
|
|
9034
9064
|
};
|
9035
9065
|
};
|
9036
9066
|
|
9037
|
-
var _excluded$
|
9067
|
+
var _excluded$M = ["row", "index", "instance", "headerGroups"];
|
9038
9068
|
|
9039
9069
|
var renderCell = function renderCell(cell, row) {
|
9040
9070
|
var props = _extends({}, cell.getCellProps(), {
|
@@ -9058,7 +9088,7 @@ var Row = /*#__PURE__*/React__default.forwardRef(function TableRow(_ref, ref) {
|
|
9058
9088
|
var row = _ref.row,
|
9059
9089
|
index = _ref.index,
|
9060
9090
|
instance = _ref.instance,
|
9061
|
-
rowProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
9091
|
+
rowProps = _objectWithoutPropertiesLoose(_ref, _excluded$M);
|
9062
9092
|
|
9063
9093
|
var activeIndex = rowProps.activeIndex,
|
9064
9094
|
onRowClick = rowProps.onRowClick,
|
@@ -9164,11 +9194,12 @@ var Column = function Column(_ref) {
|
|
9164
9194
|
}), React__default.createElement("span", {
|
9165
9195
|
className: "truncate"
|
9166
9196
|
}, cell.render('Header')), cell.isSorted ? React__default.createElement(Icon, {
|
9167
|
-
name: cell.isSortedDesc ? 'chevron-down-solid' : 'chevron-up-solid'
|
9197
|
+
name: cell.isSortedDesc ? 'chevron-down-solid' : 'chevron-up-solid',
|
9198
|
+
className: "-mt-0.5"
|
9168
9199
|
}) : null);
|
9169
9200
|
};
|
9170
9201
|
|
9171
|
-
var _excluded$
|
9202
|
+
var _excluded$N = ["autoFocus", "children", "disableSorting", "headerGroups", "headerRef", "bodyRef"];
|
9172
9203
|
var DefaultEmptyState = function DefaultEmptyState() {
|
9173
9204
|
return null;
|
9174
9205
|
};
|
@@ -9180,7 +9211,7 @@ var BaseTable = /*#__PURE__*/React__default.forwardRef(function BaseTable(props,
|
|
9180
9211
|
headerGroups = props.headerGroups,
|
9181
9212
|
headerRef = props.headerRef,
|
9182
9213
|
bodyRef = props.bodyRef,
|
9183
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
9214
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$N);
|
9184
9215
|
|
9185
9216
|
React__default.useEffect(function () {
|
9186
9217
|
if (autoFocus && tableRef.current) {
|
@@ -9215,11 +9246,11 @@ var BaseTable = /*#__PURE__*/React__default.forwardRef(function BaseTable(props,
|
|
9215
9246
|
}, children));
|
9216
9247
|
});
|
9217
9248
|
|
9218
|
-
var _excluded$
|
9249
|
+
var _excluded$O = ["emptyStateRenderer"];
|
9219
9250
|
var Table = /*#__PURE__*/React__default.forwardRef(function Table(props, ref) {
|
9220
9251
|
var _props$emptyStateRend = props.emptyStateRenderer,
|
9221
9252
|
emptyStateRenderer = _props$emptyStateRend === void 0 ? DefaultEmptyState : _props$emptyStateRend,
|
9222
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
9253
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$O);
|
9223
9254
|
|
9224
9255
|
var tableRef = useProxiedRef(ref);
|
9225
9256
|
|
@@ -9283,14 +9314,14 @@ PaginatedTable.Group = function () {
|
|
9283
9314
|
return null;
|
9284
9315
|
};
|
9285
9316
|
|
9286
|
-
var _excluded$
|
9317
|
+
var _excluded$P = ["height"],
|
9287
9318
|
_excluded2$8 = ["emptyStateRenderer", "length", "loadMore"];
|
9288
9319
|
var ROW_HEIGHT = 40;
|
9289
9320
|
var VariableRow = /*#__PURE__*/React__default.memo(function (_ref) {
|
9290
9321
|
var data = _ref.data,
|
9291
9322
|
index = _ref.index,
|
9292
9323
|
_ref$style = _ref.style,
|
9293
|
-
style = _objectWithoutPropertiesLoose(_ref$style, _excluded$
|
9324
|
+
style = _objectWithoutPropertiesLoose(_ref$style, _excluded$P);
|
9294
9325
|
|
9295
9326
|
var _useLocalization = useLocalization(),
|
9296
9327
|
texts = _useLocalization.texts;
|
@@ -9655,7 +9686,7 @@ var useTableRowCreation = function useTableRowCreation(data, tableRef) {
|
|
9655
9686
|
};
|
9656
9687
|
};
|
9657
9688
|
|
9658
|
-
var _excluded$
|
9689
|
+
var _excluded$Q = ["id", "defaultId", "children", "onChange", "orientation"],
|
9659
9690
|
_excluded2$9 = ["id", "disabled"],
|
9660
9691
|
_excluded3 = ["id"];
|
9661
9692
|
var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
|
@@ -9665,7 +9696,7 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
|
|
9665
9696
|
onChange = props.onChange,
|
9666
9697
|
_props$orientation = props.orientation,
|
9667
9698
|
orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
|
9668
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
9699
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$Q);
|
9669
9700
|
|
9670
9701
|
var className = cn('yt-tabs', "yt-tabs--" + orientation, {
|
9671
9702
|
'flex w-full': orientation === 'vertical'
|
@@ -9719,10 +9750,10 @@ Tabs.List = TabList;
|
|
9719
9750
|
Tabs.Trigger = TabTrigger;
|
9720
9751
|
Tabs.Content = TabContent;
|
9721
9752
|
|
9722
|
-
var _excluded$
|
9753
|
+
var _excluded$R = ["defaultValue", "highlighted", "invalid", "onKeyDown"];
|
9723
9754
|
var Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
|
9724
9755
|
var onKeyDown = props.onKeyDown,
|
9725
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
9756
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$R);
|
9726
9757
|
|
9727
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
|
9728
9759
|
// if it has scroll height then the browser reverts to native scrolling behaviour only
|
@@ -9749,11 +9780,11 @@ var Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
|
|
9749
9780
|
}));
|
9750
9781
|
});
|
9751
9782
|
|
9752
|
-
var _excluded$
|
9783
|
+
var _excluded$S = ["label", "onChange"];
|
9753
9784
|
var Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
|
9754
9785
|
var label = props.label,
|
9755
9786
|
onChange = props.onChange,
|
9756
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
9787
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$S);
|
9757
9788
|
|
9758
9789
|
var className = cn('group h-5 w-9 flex rounded-full inline-flex', {
|
9759
9790
|
'mr-2': !!label,
|
@@ -9780,7 +9811,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
|
|
9780
9811
|
return element;
|
9781
9812
|
});
|
9782
9813
|
|
9783
|
-
var _excluded$
|
9814
|
+
var _excluded$T = ["autoStart", "onComplete", "onClose", "onReady", "spotlightClicks", "disableCloseOnEsc", "disableScrollParentFix"];
|
9784
9815
|
|
9785
9816
|
var Tooltip$1 = function Tooltip(_ref) {
|
9786
9817
|
var continuous = _ref.continuous,
|
@@ -9845,7 +9876,7 @@ var Tour = function Tour(props) {
|
|
9845
9876
|
disableTourSkipOnEsc = props.disableCloseOnEsc,
|
9846
9877
|
_props$disableScrollP = props.disableScrollParentFix,
|
9847
9878
|
disableScrollParentFix = _props$disableScrollP === void 0 ? false : _props$disableScrollP,
|
9848
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
9879
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$T);
|
9849
9880
|
|
9850
9881
|
var steps = React.useMemo(function () {
|
9851
9882
|
return React.Children.map(props.children, function (child) {
|
@@ -9954,6 +9985,7 @@ exports.Field = Field;
|
|
9954
9985
|
exports.Form = Form;
|
9955
9986
|
exports.Group = Group;
|
9956
9987
|
exports.Hanger = Hanger;
|
9988
|
+
exports.HoverCard = HoverCard;
|
9957
9989
|
exports.Icon = Icon;
|
9958
9990
|
exports.IconButton = IconButton;
|
9959
9991
|
exports.Input = Input;
|