@economic/taco 1.0.0-alpha.0 → 1.0.1
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/Hanger/Hanger.d.ts +3 -0
- package/dist/esm/components/Badge/Badge.js +1 -1
- package/dist/esm/components/Badge/Badge.js.map +1 -1
- package/dist/esm/components/Banner/Banner.js +2 -2
- package/dist/esm/components/Banner/Banner.js.map +1 -1
- package/dist/esm/components/Banner/util.js +4 -4
- package/dist/esm/components/Banner/util.js.map +1 -1
- package/dist/esm/components/Button/util.js +5 -5
- package/dist/esm/components/Button/util.js.map +1 -1
- package/dist/esm/components/Checkbox/Checkbox.js +5 -5
- package/dist/esm/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/components/Datepicker/Datepicker.js +6 -8
- package/dist/esm/components/Datepicker/Datepicker.js.map +1 -1
- package/dist/esm/components/Hanger/Hanger.js +11 -3
- package/dist/esm/components/Hanger/Hanger.js.map +1 -1
- package/dist/esm/components/Icon/Icon.js +1 -1
- package/dist/esm/components/Icon/Icon.js.map +1 -1
- package/dist/esm/components/Input/Input.js +2 -2
- package/dist/esm/components/Input/Input.js.map +1 -1
- package/dist/esm/components/RadioGroup/RadioGroup.js +11 -11
- package/dist/esm/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/esm/components/Select/useSelect.js +1 -1
- package/dist/esm/components/Select/useSelect.js.map +1 -1
- package/dist/esm/components/Switch/Switch.js +3 -3
- package/dist/esm/components/Switch/Switch.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/components/Tooltip/Tooltip.js +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/index.css +6 -10
- package/dist/esm/index.js +1 -1
- package/dist/index.css +6 -10
- package/dist/taco.cjs.development.js +57 -50
- 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/tailwind.config.js +1 -1
- package/types.json +404 -383
@@ -3148,7 +3148,7 @@ var Icon = /*#__PURE__*/React__default.forwardRef(function Icon(props, ref) {
|
|
3148
3148
|
var Component = icons[name];
|
3149
3149
|
/* 24x24 _at the base body font_ - must be em so that they scale with font size - tailwind spacing uses rem */
|
3150
3150
|
|
3151
|
-
var className = cn('inline-flex h-[1.715em] w-[1.715em]', props.className, {
|
3151
|
+
var className = cn('inline-flex h-[1.715em] w-[1.715em] flex-shrink-0', props.className, {
|
3152
3152
|
'p-[3px]': (_props$className = props.className) === null || _props$className === void 0 ? void 0 : _props$className.includes('rounded-full')
|
3153
3153
|
});
|
3154
3154
|
return Component ? React__default.createElement(Component, Object.assign({}, otherProps, {
|
@@ -3311,7 +3311,7 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
|
|
3311
3311
|
state = props.state,
|
3312
3312
|
otherProps = _objectWithoutPropertiesLoose(props, _excluded$2);
|
3313
3313
|
|
3314
|
-
var className = cn('rounded-full border font-bold text-xs uppercase overflow-hidden whitespace-nowrap inline-flex items-center justify-center h-5', (_cn = {}, _cn[getOutlineClasses(state)] = outline, _cn["border-transparent " + getStateClasses(state)] = !outline, _cn['h-2 w-2 min-w-0'] = compact, _cn['h-5 py-0 px-
|
3314
|
+
var className = cn('rounded-full border font-bold text-xs uppercase overflow-hidden whitespace-nowrap inline-flex items-center justify-center h-5', (_cn = {}, _cn[getOutlineClasses(state)] = outline, _cn["border-transparent " + getStateClasses(state)] = !outline, _cn['h-2 w-2 min-w-0'] = compact, _cn['h-5 py-0 px-1.5'] = !compact, _cn), props.className);
|
3315
3315
|
return React.createElement("span", Object.assign({}, otherProps, {
|
3316
3316
|
"aria-atomic": "true",
|
3317
3317
|
"aria-live": "polite",
|
@@ -3328,25 +3328,25 @@ var getBannerIcon = function getBannerIcon(type) {
|
|
3328
3328
|
case 'success':
|
3329
3329
|
return React__default.createElement(Icon, {
|
3330
3330
|
name: "tick",
|
3331
|
-
className: "
|
3331
|
+
className: "yt-green-solid mt-1 self-start rounded-full"
|
3332
3332
|
});
|
3333
3333
|
|
3334
3334
|
case 'error':
|
3335
3335
|
return React__default.createElement(Icon, {
|
3336
3336
|
name: "warning",
|
3337
|
-
className: "
|
3337
|
+
className: "yt-red-solid mt-1 self-start rounded-full"
|
3338
3338
|
});
|
3339
3339
|
|
3340
3340
|
case 'warning':
|
3341
3341
|
return React__default.createElement(Icon, {
|
3342
3342
|
name: "warning",
|
3343
|
-
className: "
|
3343
|
+
className: "yt-yellow-solid mt-1 self-start rounded-full"
|
3344
3344
|
});
|
3345
3345
|
|
3346
3346
|
case 'information':
|
3347
3347
|
return React__default.createElement(Icon, {
|
3348
3348
|
name: "info",
|
3349
|
-
className: "
|
3349
|
+
className: "yt-blue-solid mt-1 self-start rounded-full"
|
3350
3350
|
});
|
3351
3351
|
|
3352
3352
|
default:
|
@@ -3391,7 +3391,7 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
|
|
3391
3391
|
side: placement,
|
3392
3392
|
sideOffset: 3
|
3393
3393
|
}), React.createElement("div", {
|
3394
|
-
className: "wcag-purple animate-[fade-in_150ms] rounded-sm px-2 py-1 text-xs font-bold",
|
3394
|
+
className: "wcag-purple max-w-[theme(spacing.56)] animate-[fade-in_150ms] rounded-sm px-2 py-1 text-xs font-bold opacity-90",
|
3395
3395
|
"data-taco": "tooltip",
|
3396
3396
|
style: {
|
3397
3397
|
transformOrigin: 'var(--radix-tooltip-content-transform-origin)'
|
@@ -3403,7 +3403,7 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
|
|
3403
3403
|
|
3404
3404
|
var _excluded$5 = ["dialog", "hanger", "menu", "popover", "tooltip"];
|
3405
3405
|
var getButtonClasses = function getButtonClasses() {
|
3406
|
-
return 'min-h-[theme(spacing.8)] min-w-[theme(spacing.8)] gap-1 h-max inline-flex items-center justify-center border';
|
3406
|
+
return 'min-h-[theme(spacing.8)] min-w-[theme(spacing.8)] gap-1 h-max leading-5 inline-flex items-center justify-center border';
|
3407
3407
|
};
|
3408
3408
|
var getAppearanceClasses = function getAppearanceClasses(value, icon) {
|
3409
3409
|
if (icon === void 0) {
|
@@ -3412,18 +3412,18 @@ var getAppearanceClasses = function getAppearanceClasses(value, icon) {
|
|
3412
3412
|
|
3413
3413
|
switch (value) {
|
3414
3414
|
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
|
3415
|
+
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
3416
|
|
3417
3417
|
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
|
3418
|
+
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
3419
|
|
3420
3420
|
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
|
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 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
3422
|
|
3423
3423
|
case 'discrete':
|
3424
3424
|
{
|
3425
3425
|
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:
|
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:text-black ";
|
3427
3427
|
}
|
3428
3428
|
|
3429
3429
|
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";
|
@@ -3507,13 +3507,13 @@ var Banner = /*#__PURE__*/React.forwardRef(function Banner(props, ref) {
|
|
3507
3507
|
var children = props.children,
|
3508
3508
|
state = props.state,
|
3509
3509
|
onClose = props.onClose;
|
3510
|
-
var className = cn('bg-white relative flex items-center px-4
|
3510
|
+
var className = cn('bg-white relative flex items-center gap-2 py-2 px-4 leading-6 shadow-md z-10', props.className);
|
3511
3511
|
return React.createElement("div", {
|
3512
3512
|
className: className,
|
3513
3513
|
"data-taco": "banner",
|
3514
3514
|
ref: ref
|
3515
3515
|
}, getBannerIcon(state), children, onClose ? React.createElement(IconButton, {
|
3516
|
-
className: "ml-auto -mr-2",
|
3516
|
+
className: "ml-auto -mr-2 self-start",
|
3517
3517
|
icon: "close",
|
3518
3518
|
appearance: "discrete",
|
3519
3519
|
onClick: onClose
|
@@ -4202,12 +4202,12 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
|
|
4202
4202
|
onChange = props.onChange,
|
4203
4203
|
otherProps = _objectWithoutPropertiesLoose(props, _excluded$c);
|
4204
4204
|
|
4205
|
-
var className = cn('bg-white h-5 w-5 border rounded text-sm flex-shrink-0 self-start mt-[0.1rem]',
|
4206
|
-
|
4207
|
-
'border-grey-dark text-blue focus:border-blue focus:
|
4205
|
+
var className = cn('bg-white h-5 w-5 border rounded text-sm flex-shrink-0 self-start mt-[0.1rem] focus:yt-focus', //hover:shadow-[0_0_0_1px_rgba(235,235,235,1)]
|
4206
|
+
props.className, {
|
4207
|
+
'border-grey-dark text-blue hover:text-blue-light focus:border-blue focus:hover:border-blue-light': !props.disabled && !invalid,
|
4208
4208
|
'border-grey text-blue-light cursor-not-allowed': props.disabled,
|
4209
4209
|
'bg-[rgba(255,255,0,0.2)] disabled:bg-[rgba(255,255,0,0.075)]': highlighted,
|
4210
|
-
'border-red text-red
|
4210
|
+
'border-red text-red hover:text-red-light hover:border-red-light focus:border-red focus:hover:border-red-light': invalid && !props.disabled
|
4211
4211
|
});
|
4212
4212
|
var handleChange;
|
4213
4213
|
|
@@ -4231,7 +4231,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
|
|
4231
4231
|
})));
|
4232
4232
|
|
4233
4233
|
if (label) {
|
4234
|
-
var labelClassName = cn('flex items-center cursor-pointer', {
|
4234
|
+
var labelClassName = cn('flex items-center cursor-pointer gap-2', {
|
4235
4235
|
'cursor-not-allowed text-grey-dark': props.disabled
|
4236
4236
|
}, props.className);
|
4237
4237
|
return React.createElement("label", {
|
@@ -4319,9 +4319,9 @@ var Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
|
|
4319
4319
|
var extra;
|
4320
4320
|
|
4321
4321
|
if (button) {
|
4322
|
-
var
|
4322
|
+
var _cn;
|
4323
4323
|
|
4324
|
-
var disabled =
|
4324
|
+
var disabled = button.props.disabled || otherProps.disabled;
|
4325
4325
|
var buttonClassName = cn('items-center flex justify-center border absolute rounded-l-none rounded-r right-0 h-full focus:rounded focus:outline-none', (_cn = {}, _cn[getButtonStateClasses(invalid)] = !props.disabled, _cn), button.props.className);
|
4326
4326
|
extra = React.cloneElement(button, {
|
4327
4327
|
className: buttonClassName,
|
@@ -5573,8 +5573,6 @@ Popover.Close = Close$1;
|
|
5573
5573
|
|
5574
5574
|
var _excluded$l = ["className", "onReset", "style", "shortcuts", "shortcutsText"];
|
5575
5575
|
var Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
|
5576
|
-
var _input$disabled;
|
5577
|
-
|
5578
5576
|
var externalClassName = props.className,
|
5579
5577
|
handleReset = props.onReset,
|
5580
5578
|
style = props.style,
|
@@ -5597,12 +5595,12 @@ var Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
|
|
5597
5595
|
}, React.createElement(Input, Object.assign({}, input, {
|
5598
5596
|
button: React.createElement(Popover, null, React.createElement(Popover.Trigger, null, React.createElement(IconButton, {
|
5599
5597
|
"aria-label": texts.datepicker.expand,
|
5600
|
-
disabled:
|
5598
|
+
disabled: input.disabled || input.readOnly,
|
5601
5599
|
icon: "calendar"
|
5602
5600
|
})), React.createElement(Popover.Content, null, function (_ref) {
|
5603
5601
|
var close = _ref.close;
|
5604
5602
|
return React.createElement("div", {
|
5605
|
-
className: "
|
5603
|
+
className: "-m-3 flex"
|
5606
5604
|
}, React.createElement(Calendar$1, Object.assign({}, calendar, {
|
5607
5605
|
onChange: function onChange(date, event) {
|
5608
5606
|
calendar.onChange(date, event);
|
@@ -5610,14 +5608,14 @@ var Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
|
|
5610
5608
|
},
|
5611
5609
|
tabIndex: -1
|
5612
5610
|
})), shortcuts && React.createElement("div", {
|
5613
|
-
className: "border-
|
5611
|
+
className: "border-grey-dark flex flex-col border-l"
|
5614
5612
|
}, React.createElement("span", {
|
5615
|
-
className: "
|
5613
|
+
className: "m-4 mb-3 flex h-8 w-32 items-center text-xs font-semibold"
|
5616
5614
|
}, shortcutsText !== null && shortcutsText !== void 0 ? shortcutsText : texts.datepicker.shortcuts), React.createElement("ul", null, shortcuts.map(function (shortcut, i) {
|
5617
5615
|
return React.createElement("li", {
|
5618
5616
|
key: i
|
5619
5617
|
}, React.createElement("button", {
|
5620
|
-
className: "w-full px-4 py-1
|
5618
|
+
className: "hover:bg-grey-light flex w-full items-start px-4 py-1 text-xs",
|
5621
5619
|
onClick: function onClick(event) {
|
5622
5620
|
event.persist();
|
5623
5621
|
shortcut.onClick(event);
|
@@ -5625,7 +5623,7 @@ var Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
|
|
5625
5623
|
}
|
5626
5624
|
}, shortcut.text));
|
5627
5625
|
})), handleReset && React.createElement("button", {
|
5628
|
-
className: "text-blue hover:text-blue-light
|
5626
|
+
className: "text-blue hover:text-blue-light my-4 mx-auto mt-auto inline-flex cursor-pointer border-none bg-transparent text-xs",
|
5629
5627
|
onClick: function onClick(event) {
|
5630
5628
|
event.persist();
|
5631
5629
|
handleReset(event);
|
@@ -6047,13 +6045,20 @@ var Anchor = /*#__PURE__*/React.forwardRef(function HangerAnchor(props, ref) {
|
|
6047
6045
|
asChild: true
|
6048
6046
|
}));
|
6049
6047
|
});
|
6048
|
+
var Title$1 = /*#__PURE__*/React.forwardRef(function DialogTitle(props, ref) {
|
6049
|
+
var className = cn('mb-1 text-base font-bold flex w-full', props.className);
|
6050
|
+
return React.createElement("span", Object.assign({}, props, {
|
6051
|
+
className: className,
|
6052
|
+
ref: ref
|
6053
|
+
}));
|
6054
|
+
});
|
6050
6055
|
var Content$3 = /*#__PURE__*/React.forwardRef(function HangerContent(props, ref) {
|
6051
6056
|
var context = React.useContext(HangerContext);
|
6052
6057
|
|
6053
6058
|
var _useLocalization = useLocalization(),
|
6054
6059
|
texts = _useLocalization.texts;
|
6055
6060
|
|
6056
|
-
var className = cn('wcag-blue border border-transparent rounded p-3 pr-12 yt-shadow z-[996] focus:border-transparent', props.className);
|
6061
|
+
var className = cn('wcag-blue border border-transparent rounded p-3 pr-12 yt-shadow z-[996] focus:border-transparent max-w-sm', props.className);
|
6057
6062
|
|
6058
6063
|
var handleInteractOutside = function handleInteractOutside(event) {
|
6059
6064
|
event.preventDefault();
|
@@ -6109,6 +6114,7 @@ var Hanger = /*#__PURE__*/React.forwardRef(function Hanger(props, ref) {
|
|
6109
6114
|
});
|
6110
6115
|
Hanger.Anchor = Anchor;
|
6111
6116
|
Hanger.Content = Content$3;
|
6117
|
+
Hanger.Title = Title$1;
|
6112
6118
|
|
6113
6119
|
var _excluded$r = ["onSearch"];
|
6114
6120
|
var SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput(_ref, ref) {
|
@@ -6853,20 +6859,20 @@ var RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props
|
|
6853
6859
|
value = props.value,
|
6854
6860
|
otherProps = _objectWithoutPropertiesLoose(props, _excluded$z);
|
6855
6861
|
|
6856
|
-
var
|
6857
|
-
var className = cn('flex flex-shrink-0 self-start items-center justify-center h-4 w-4
|
6858
|
-
'border-grey-dark focus:
|
6859
|
-
'border-grey cursor-not-allowed aria-checked:bg-
|
6860
|
-
'border-red text-red focus:border-red focus:yt-focus-red aria-checked:bg-red aria-checked:border-red': context.invalid && !
|
6862
|
+
var isDisabled = context.disabled || props.disabled;
|
6863
|
+
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', {
|
6864
|
+
'border-grey-dark focus:yt-focus aria-checked:bg-blue aria-checked:border-blue hover:aria-checked:border-blue-light': !isDisabled && !context.invalid,
|
6865
|
+
'border-grey cursor-not-allowed aria-checked:bg-blue-light aria-checked:border-blue-light ': isDisabled,
|
6866
|
+
'border-red text-red focus:border-red focus:yt-focus-red aria-checked:bg-red aria-checked:border-red': context.invalid && !isDisabled
|
6861
6867
|
});
|
6862
|
-
var labelClassName = cn('flex items-center cursor-pointer', {
|
6863
|
-
'cursor-not-allowed text-grey-dark':
|
6868
|
+
var labelClassName = cn('flex items-center cursor-pointer gap-2', {
|
6869
|
+
'cursor-not-allowed text-grey-dark': isDisabled
|
6864
6870
|
}, props.className);
|
6865
6871
|
return React.createElement("label", {
|
6866
6872
|
className: labelClassName
|
6867
6873
|
}, React.createElement(RadioGroupPrimitive.Item, Object.assign({}, otherProps, {
|
6868
6874
|
className: className,
|
6869
|
-
disabled:
|
6875
|
+
disabled: isDisabled,
|
6870
6876
|
ref: ref,
|
6871
6877
|
value: getRadioGroupItemValueAsString(value)
|
6872
6878
|
}), React.createElement(RadioGroupPrimitive.Indicator, {
|
@@ -6929,9 +6935,9 @@ var RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
|
|
6929
6935
|
context = _useRadioGroup.context,
|
6930
6936
|
otherProps = _useRadioGroup.props;
|
6931
6937
|
|
6932
|
-
var className = cn('flex items-start', {
|
6933
|
-
'flex-wrap
|
6934
|
-
'flex-col
|
6938
|
+
var className = cn('flex items-start gap-y-2', {
|
6939
|
+
'flex-wrap gap-x-4 ': otherProps.orientation === 'horizontal',
|
6940
|
+
'flex-col': otherProps.orientation === 'vertical'
|
6935
6941
|
}, otherProps.className);
|
6936
6942
|
return React.createElement(RadioGroupContext.Provider, {
|
6937
6943
|
value: context
|
@@ -7561,7 +7567,7 @@ var useSelect = function useSelect(_ref, ref) {
|
|
7561
7567
|
'aria-haspopup': 'listbox',
|
7562
7568
|
'aria-label': ariaLabel ? ariaLabel + " " + text : undefined,
|
7563
7569
|
'aria-labelledby': ariaLabelledBy ? ariaLabelledBy + " " + buttonId : undefined,
|
7564
|
-
disabled: disabled,
|
7570
|
+
disabled: disabled || readOnly,
|
7565
7571
|
id: buttonId,
|
7566
7572
|
onKeyDown: !disabled && !readOnly ? handleButtonKeyDown : undefined,
|
7567
7573
|
type: 'button'
|
@@ -8498,8 +8504,7 @@ var useRowSelect = function useRowSelect(onSelectedRows) {
|
|
8498
8504
|
};
|
8499
8505
|
|
8500
8506
|
return React__default.createElement(Checkbox, Object.assign({}, props, {
|
8501
|
-
onChange: onChange
|
8502
|
-
className: "mt-px"
|
8507
|
+
onChange: onChange
|
8503
8508
|
}));
|
8504
8509
|
},
|
8505
8510
|
Cell: function Cell(_ref2) {
|
@@ -8531,7 +8536,7 @@ var useRowSelect = function useRowSelect(onSelectedRows) {
|
|
8531
8536
|
};
|
8532
8537
|
|
8533
8538
|
return React__default.createElement(Checkbox, Object.assign({}, props, {
|
8534
|
-
className: "mt-
|
8539
|
+
className: "mt-2.5",
|
8535
8540
|
onClick: onClick,
|
8536
8541
|
// this is necessary to remove console spam from eslint
|
8537
8542
|
onChange: function onChange() {
|
@@ -8540,7 +8545,7 @@ var useRowSelect = function useRowSelect(onSelectedRows) {
|
|
8540
8545
|
}));
|
8541
8546
|
},
|
8542
8547
|
flex: '0 0 36px',
|
8543
|
-
className: 'flex-col justify-start !
|
8548
|
+
className: 'flex-col justify-start !py-0'
|
8544
8549
|
}].concat(columns);
|
8545
8550
|
});
|
8546
8551
|
}
|
@@ -9158,7 +9163,8 @@ var Column = function Column(_ref) {
|
|
9158
9163
|
}), React__default.createElement("span", {
|
9159
9164
|
className: "truncate"
|
9160
9165
|
}, cell.render('Header')), cell.isSorted ? React__default.createElement(Icon, {
|
9161
|
-
name: cell.isSortedDesc ? 'chevron-down-solid' : 'chevron-up-solid'
|
9166
|
+
name: cell.isSortedDesc ? 'chevron-down-solid' : 'chevron-up-solid',
|
9167
|
+
className: "-mt-0.5"
|
9162
9168
|
}) : null);
|
9163
9169
|
};
|
9164
9170
|
|
@@ -9749,9 +9755,9 @@ var Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
|
|
9749
9755
|
onChange = props.onChange,
|
9750
9756
|
otherProps = _objectWithoutPropertiesLoose(props, _excluded$R);
|
9751
9757
|
|
9752
|
-
var className = cn('group h-
|
9758
|
+
var className = cn('group h-5 w-9 flex rounded-full inline-flex', {
|
9753
9759
|
'mr-2': !!label,
|
9754
|
-
'bg-grey-darker aria-checked:bg-blue focus:yt-focus': !props.disabled,
|
9760
|
+
'bg-grey-darker hover:bg-grey-dark aria-checked:bg-blue aria-checked:hover:bg-blue-light focus:yt-focus': !props.disabled,
|
9755
9761
|
'bg-grey-light cursor-not-allowed aria-checked:bg-blue-light': props.disabled
|
9756
9762
|
}, props.className);
|
9757
9763
|
var element = React.createElement(PrimitiveSwitch.Root, Object.assign({}, otherProps, {
|
@@ -9759,7 +9765,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
|
|
9759
9765
|
onCheckedChange: onChange,
|
9760
9766
|
ref: ref
|
9761
9767
|
}), React.createElement(PrimitiveSwitch.Thumb, {
|
9762
|
-
className: "'will-change-transform
|
9768
|
+
className: "'will-change-transform group-aria-checked:translate-x-[1.1rem] mt-0.5 h-4 w-4 translate-x-[0.15rem] rounded-full bg-white transition-transform group-disabled:opacity-50"
|
9763
9769
|
}));
|
9764
9770
|
|
9765
9771
|
if (label) {
|
@@ -9968,6 +9974,7 @@ exports.Switch = Switch;
|
|
9968
9974
|
exports.Table = Table;
|
9969
9975
|
exports.Tabs = Tabs;
|
9970
9976
|
exports.Textarea = Textarea;
|
9977
|
+
exports.Title = Title$1;
|
9971
9978
|
exports.ToastProvider = ToastProvider;
|
9972
9979
|
exports.Tooltip = Tooltip;
|
9973
9980
|
exports.Tour = Tour;
|