@economic/taco 1.36.0 → 1.38.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/Icon/components/EyeOff.d.ts +3 -0
- package/dist/components/Icon/components/EyeOn.d.ts +3 -0
- package/dist/components/Icon/components/index.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/util.d.ts +1 -1
- package/dist/components/Menu/components/Item.d.ts +1 -1
- package/dist/components/Menu/components/Link.d.ts +1 -1
- package/dist/components/Navigation2/components/Link.d.ts +1 -1
- package/dist/components/Provider/Localization.d.ts +1 -0
- package/dist/components/Select2/components/Option.d.ts +1 -1
- package/dist/components/Select2/components/Search.d.ts +1 -1
- package/dist/components/Select2/components/Trigger.d.ts +1 -0
- package/dist/components/Table2/Table2.d.ts +1 -0
- package/dist/components/Table2/hooks/useColumnDefinitions.d.ts +1 -1
- package/dist/components/Table2/types.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +0 -1
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/esm/index.css +0 -20
- package/dist/esm/packages/taco/src/components/Button/Button.js +0 -2
- package/dist/esm/packages/taco/src/components/Button/Button.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Button/util.js +7 -7
- package/dist/esm/packages/taco/src/components/Button/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js +7 -8
- package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +5 -8
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.js +6 -5
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Field/Field.js +1 -1
- package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Button.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Button.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Link.js +2 -2
- package/dist/esm/packages/taco/src/components/Header/components/Link.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Icon/components/EyeOff.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EyeOff.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EyeOn.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EyeOn.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/index.js +4 -0
- package/dist/esm/packages/taco/src/components/Icon/components/index.js.map +1 -1
- package/dist/esm/packages/taco/src/components/IconButton/IconButton.js +1 -3
- package/dist/esm/packages/taco/src/components/IconButton/IconButton.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/Input.js +1 -1
- package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/util.js +11 -11
- package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Provider/Localization.js +1 -0
- package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
- package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js +6 -4
- package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/Select2.js +1 -0
- package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Create.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Create.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Option.js +1 -2
- package/dist/esm/packages/taco/src/components/Select2/components/Option.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +3 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Switch/Switch.js +3 -3
- package/dist/esm/packages/taco/src/components/Switch/Switch.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table2/Table2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table2/components/column/Header.js +54 -39
- package/dist/esm/packages/taco/src/components/Table2/components/column/Header.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table2/hooks/useColumnDefinitions.js +4 -3
- package/dist/esm/packages/taco/src/components/Table2/hooks/useColumnDefinitions.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table2/hooks/useGridTemplate.js +3 -1
- package/dist/esm/packages/taco/src/components/Table2/hooks/useGridTemplate.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table2/types.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tabs/Tabs.js +21 -8
- package/dist/esm/packages/taco/src/components/Tabs/Tabs.js.map +1 -1
- package/dist/index.css +0 -20
- package/dist/taco.cjs.development.js +171 -110
- 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 +2 -2
- package/plugins/tailwindcss-aria-attributes.js +20 -36
- package/tailwind.config.js +6 -2
- package/types.json +14 -4
@@ -1460,6 +1460,36 @@ function IconExport(props, svgRef) {
|
|
1460
1460
|
}
|
1461
1461
|
var Export = /*#__PURE__*/React.forwardRef(IconExport);
|
1462
1462
|
|
1463
|
+
function IconEyeOff(props, svgRef) {
|
1464
|
+
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
1465
|
+
fill: "none",
|
1466
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1467
|
+
viewBox: "0 0 24 24",
|
1468
|
+
ref: svgRef
|
1469
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
1470
|
+
fillRule: "evenodd",
|
1471
|
+
clipRule: "evenodd",
|
1472
|
+
d: "M3.53 2.47a.75.75 0 00-1.06 1.06l3.605 3.605a10.258 10.258 0 00-4.097 6.208.75.75 0 101.466.314 8.757 8.757 0 013.71-5.443l1.987 1.988a4 4 0 005.656 5.656l5.673 5.672a.75.75 0 101.06-1.06l-18-18zm10.207 12.328l-3.535-3.535a2.5 2.5 0 003.535 3.535zM12.061 9L16 12.94A4 4 0 0012.06 9zM8.815 5.754l1.218 1.218a8.753 8.753 0 0110.523 6.685.75.75 0 101.467-.314C21.032 8.718 16.922 5.25 12 5.25c-1.112 0-2.182.177-3.185.504z",
|
1473
|
+
fill: "currentColor"
|
1474
|
+
}));
|
1475
|
+
}
|
1476
|
+
var EyeOff = /*#__PURE__*/React.forwardRef(IconEyeOff);
|
1477
|
+
|
1478
|
+
function IconEyeOn(props, svgRef) {
|
1479
|
+
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
1480
|
+
fill: "none",
|
1481
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1482
|
+
viewBox: "0 0 24 24",
|
1483
|
+
ref: svgRef
|
1484
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
1485
|
+
fillRule: "evenodd",
|
1486
|
+
clipRule: "evenodd",
|
1487
|
+
d: "M3.444 13.657a8.753 8.753 0 0117.112 0 .75.75 0 101.466-.314C21.033 8.718 16.922 5.25 12 5.25c-4.922 0-9.031 3.468-10.022 8.093a.75.75 0 101.466.314zM14.5 13a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm1.5 0a4 4 0 11-8 0 4 4 0 018 0z",
|
1488
|
+
fill: "currentColor"
|
1489
|
+
}));
|
1490
|
+
}
|
1491
|
+
var EyeOn = /*#__PURE__*/React.forwardRef(IconEyeOn);
|
1492
|
+
|
1463
1493
|
function IconFilterSolid(props, svgRef) {
|
1464
1494
|
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
1465
1495
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3139,6 +3169,8 @@ const icons = {
|
|
3139
3169
|
'export-to-excel': ExportToExcel,
|
3140
3170
|
'export-to-pdf': ExportToPdf,
|
3141
3171
|
export: Export,
|
3172
|
+
'eye-off': EyeOff,
|
3173
|
+
'eye-on': EyeOn,
|
3142
3174
|
'filter-solid': FilterSolid,
|
3143
3175
|
filter: Filter,
|
3144
3176
|
'graph-solid': GraphSolid,
|
@@ -3754,25 +3786,25 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
|
|
3754
3786
|
});
|
3755
3787
|
|
3756
3788
|
const getButtonClasses = () => {
|
3757
|
-
return 'flex-shrink-0 min-h-[theme(spacing.8)] min-w-[theme(spacing.8)] gap-1 h-max leading-5 inline-flex items-center justify-center';
|
3789
|
+
return 'flex-shrink-0 min-h-[theme(spacing.8)] min-w-[theme(spacing.8)] gap-1 h-max leading-5 inline-flex items-center justify-center focus-visible:yt-focus disabled:cursor-not-allowed';
|
3758
3790
|
};
|
3759
3791
|
const getAppearanceClasses = (value, icon = false) => {
|
3760
3792
|
switch (value) {
|
3761
3793
|
case 'primary':
|
3762
|
-
return `wcag-blue-500
|
3794
|
+
return `wcag-blue-500 enabled:hover:wcag-blue-700 enabled:hover:active:wcag-blue-500 disabled:bg-blue-500/50`;
|
3763
3795
|
case 'danger':
|
3764
|
-
return `wcag-red-500
|
3796
|
+
return `wcag-red-500 enabled:hover:wcag-red-700 enabled:hover:active:wcag-red-500 disabled:bg-red-500/50`;
|
3765
3797
|
case 'ghost':
|
3766
|
-
return `bg-white
|
3798
|
+
return `bg-white border border-blue-500 text-blue-500 enabled:hover:bg-blue-100 enabled:hover:text-blue-700 disabled:border-blue-500/50 disabled:text-blue-500/50`;
|
3767
3799
|
case 'discrete':
|
3768
3800
|
{
|
3769
3801
|
if (icon) {
|
3770
|
-
return `bg-transparent text-black
|
3802
|
+
return `bg-transparent text-black enabled:hover:bg-grey-200/80 disabled:text-black/30`;
|
3771
3803
|
}
|
3772
|
-
return `
|
3804
|
+
return `bg-transparent text-blue-500 enabled:hover:text-blue-700 disabled:text-blue-500/50`;
|
3773
3805
|
}
|
3774
3806
|
default:
|
3775
|
-
return `wcag-grey-200
|
3807
|
+
return `wcag-grey-200 enabled:hover:wcag-grey-300 disabled:bg-grey-200/50 disabled:text-black/30`;
|
3776
3808
|
}
|
3777
3809
|
};
|
3778
3810
|
const createButtonWithTooltip = (props, className, ref) => {
|
@@ -3833,9 +3865,7 @@ const Base = /*#__PURE__*/React.forwardRef(function IconButtonBase(props, ref) {
|
|
3833
3865
|
} = props;
|
3834
3866
|
const className = cn('w-8', getButtonClasses(), getAppearanceClasses(otherProps.appearance, true), {
|
3835
3867
|
'rounded-full': rounded,
|
3836
|
-
rounded: !rounded
|
3837
|
-
'cursor-not-allowed opacity-50': props.disabled,
|
3838
|
-
'focus:yt-focus active:focus:yt-focus': !props.disabled
|
3868
|
+
rounded: !rounded
|
3839
3869
|
}, props.className);
|
3840
3870
|
if (!icon) {
|
3841
3871
|
return null;
|
@@ -3960,6 +3990,7 @@ const defaultLocalisationTexts = {
|
|
3960
3990
|
selectAll: 'Select all rows'
|
3961
3991
|
},
|
3962
3992
|
menu: {
|
3993
|
+
hideColumn: 'Hide column',
|
3963
3994
|
freezeColumns: (count = 1) => count === 1 ? 'Freeze the first column' : `Freeze first ${count} columns`,
|
3964
3995
|
unfreezeColumns: 'Unfreeze all columns'
|
3965
3996
|
}
|
@@ -4113,8 +4144,6 @@ const Base$1 = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
|
4113
4144
|
...otherProps
|
4114
4145
|
} = props;
|
4115
4146
|
const className = cn(getButtonClasses(), getAppearanceClasses(appearance), 'rounded px-3', {
|
4116
|
-
'cursor-not-allowed opacity-50': props.disabled,
|
4117
|
-
'focus:yt-focus active:focus:yt-focus': !props.disabled,
|
4118
4147
|
'w-full': fluid
|
4119
4148
|
}, props.className);
|
4120
4149
|
return createButtonWithTooltip({
|
@@ -4322,7 +4351,6 @@ const useId = nativeId => {
|
|
4322
4351
|
const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
|
4323
4352
|
const {
|
4324
4353
|
checked,
|
4325
|
-
highlighted,
|
4326
4354
|
indeterminate,
|
4327
4355
|
invalid,
|
4328
4356
|
label,
|
@@ -4330,14 +4358,14 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
|
|
4330
4358
|
...otherProps
|
4331
4359
|
} = props;
|
4332
4360
|
const id = useId(props.id);
|
4333
|
-
const className = cn('bg-white h-5 w-5 border rounded text-sm flex-shrink-0 mt-[0.1rem] focus:yt-focus',
|
4334
|
-
//hover:shadow-[0_0_0_1px_rgba(235,235,235,1)]
|
4335
|
-
{
|
4336
|
-
'border-grey-300 text-blue-500 hover:text-blue-300 focus:border-blue-500 focus:hover:border-blue-300': !props.disabled && !invalid,
|
4337
|
-
'border-grey-200 text-blue-300 cursor-not-allowed': props.disabled,
|
4338
|
-
'bg-[rgba(255,255,0,0.2)] disabled:bg-[rgba(255,255,0,0.075)]': highlighted,
|
4339
|
-
'border-red-500 text-red-500 hover:text-red-300 hover:border-red-300 focus:border-red-500 focus:hover:border-red-300': invalid && !props.disabled,
|
4361
|
+
const className = cn('bg-white h-5 w-5 border rounded text-sm flex-shrink-0 mt-[0.1rem] focus-visible:yt-focus disabled:cursor-not-allowed text-white', {
|
4340
4362
|
'self-start': !!label
|
4363
|
+
}, invalid ? {
|
4364
|
+
'border-red-500 hover:border-red-700 aria-checked:border-red-500 aria-checked-mixed:border-red-500 aria-checked:bg-red-500 aria-checked-mixed:bg-red-500 aria-checked:hover:border-red-700 aria-checked-mixed:hover:border-red-700 aria-checked:hover:bg-red-700 aria-checked-mixed:hover:bg-red-700': !props.disabled,
|
4365
|
+
'border-red-500/50 aria-checked:wcag-red-500/50 aria-checked-mixed:wcag-red-500/50': props.disabled
|
4366
|
+
} : {
|
4367
|
+
'border-grey-500 hover:border-grey-700 aria-checked:border-blue-500 aria-checked-mixed:border-blue-500 aria-checked:bg-blue-500 aria-checked-mixed:bg-blue-500 aria-checked:hover:border-blue-700 aria-checked-mixed:hover:border-blue-700 aria-checked:hover:bg-blue-700 aria-checked-mixed:hover:bg-blue-700': !props.disabled,
|
4368
|
+
'border-grey-500/50 aria-checked:bg-blue-500/50 aria-checked-mixed:bg-blue-500/50': props.disabled
|
4341
4369
|
}, props.className);
|
4342
4370
|
let handleChange;
|
4343
4371
|
if (onChange) {
|
@@ -4388,28 +4416,28 @@ const getInputClasses = props => {
|
|
4388
4416
|
const disabled = props.disabled || !!props['aria-disabled'];
|
4389
4417
|
const readOnly = props.readOnly || !!props['aria-readonly'];
|
4390
4418
|
const invalid = props.invalid || !!props['aria-invalid'];
|
4391
|
-
return cn('peer text-black text-sm border font-normal not-italic no-underline rounded flex items-center leading-6 px-2 relative w-full text-ellipsis transition-colors transition-opacity ease-in min-h-[theme(spacing.8)]', {
|
4419
|
+
return cn('peer text-black text-sm border font-normal not-italic no-underline rounded flex items-center leading-6 px-2 relative w-full text-ellipsis transition-colors transition-opacity ease-in min-h-[theme(spacing.8)] focus-visible:yt-focus', {
|
4392
4420
|
'bg-white': !props.highlighted && !readOnly,
|
4393
4421
|
// default
|
4394
|
-
'border-grey-300
|
4395
|
-
'hover:shadow-[0_0_0.1rem_theme(colors.grey.500)] active:border-blue-700': !invalid && !disabled,
|
4422
|
+
'border-grey-300 enabled:hover:border-grey-500 disabled:border-grey-200': !invalid,
|
4396
4423
|
// disabled
|
4397
|
-
'
|
4424
|
+
'text-opacity-25 cursor-not-allowed placeholder:text-grey-700': disabled,
|
4398
4425
|
// highlighted
|
4399
|
-
'bg-
|
4400
|
-
'bg-
|
4426
|
+
'bg-yellow-100/50': props.highlighted && disabled,
|
4427
|
+
'bg-yellow-100': props.highlighted && !disabled,
|
4401
4428
|
// invalid
|
4402
|
-
'border-red
|
4403
|
-
'hover:shadow-[0_0_0.15rem_theme(colors.red.500)]': invalid && !disabled,
|
4429
|
+
'border-red-500 enabled:hover:border-red-700 disabled:border-red-500/50': invalid,
|
4404
4430
|
// readOnly
|
4405
4431
|
'cursor-not-allowed text-black bg-grey-200': readOnly
|
4406
4432
|
});
|
4407
4433
|
};
|
4408
|
-
const getButtonStateClasses = invalid => {
|
4434
|
+
const getButtonStateClasses = (invalid, disabled = false) => {
|
4409
4435
|
if (invalid) {
|
4410
|
-
return 'border
|
4436
|
+
return cn('border border-red-500 group-peer-hover:enabled:border-red-700 transition-colors ease-in', {
|
4437
|
+
'border-red-500/30': disabled
|
4438
|
+
});
|
4411
4439
|
}
|
4412
|
-
return 'border border-grey-300
|
4440
|
+
return 'border border-grey-300 group-peer-hover:enabled:border-grey-500 transition-colors transition-opacity ease-in';
|
4413
4441
|
};
|
4414
4442
|
|
4415
4443
|
const debounce = (fn, delay) => {
|
@@ -4554,7 +4582,7 @@ const Input = /*#__PURE__*/React.forwardRef(function LegacyInput(props, ref) {
|
|
4554
4582
|
let postfix;
|
4555
4583
|
if (button) {
|
4556
4584
|
const disabled = button.props.disabled || attributes.disabled;
|
4557
|
-
const buttonClassName = cn('items-center focus:z-10 flex justify-center rounded-l-none rounded-r h-full focus:rounded focus:outline-none', getButtonStateClasses(attributes.invalid), button.props.className);
|
4585
|
+
const buttonClassName = cn('items-center focus:z-10 flex justify-center rounded-l-none rounded-r h-full focus:rounded focus:outline-none', getButtonStateClasses(attributes.invalid, disabled), button.props.className);
|
4558
4586
|
postfix = /*#__PURE__*/React.cloneElement(button, {
|
4559
4587
|
className: buttonClassName,
|
4560
4588
|
disabled
|
@@ -5578,14 +5606,11 @@ const Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref)
|
|
5578
5606
|
"data-taco": "datepicker",
|
5579
5607
|
style: style
|
5580
5608
|
}, /*#__PURE__*/React.createElement(Input, Object.assign({}, input, {
|
5581
|
-
button: /*#__PURE__*/React.createElement(
|
5582
|
-
title: texts.datepicker.calendar
|
5583
|
-
}, /*#__PURE__*/React.createElement(IconButton, {
|
5609
|
+
button: /*#__PURE__*/React.createElement(IconButton, {
|
5584
5610
|
"aria-label": texts.datepicker.expand,
|
5585
5611
|
disabled: input.disabled || input.readOnly,
|
5586
5612
|
icon: "calendar",
|
5587
5613
|
tabIndex: -1,
|
5588
|
-
className: " border-grey-300 group-peer-focus:!border-blue-300 group-peer-focus:group-peer-active:!border-blue-700 flex h-full items-center justify-center rounded-l-none rounded-r border transition-colors transition-opacity ease-in focus:z-10 focus:rounded focus:!border-blue-300 focus:outline-none",
|
5589
5614
|
popover: props => /*#__PURE__*/React.createElement(Popover, Object.assign({}, props), /*#__PURE__*/React.createElement(Popover.Content, null, ({
|
5590
5615
|
close
|
5591
5616
|
}) => /*#__PURE__*/React.createElement("div", {
|
@@ -5611,14 +5636,15 @@ const Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref)
|
|
5611
5636
|
}
|
5612
5637
|
}, shortcut.text)))), handleReset && /*#__PURE__*/React.createElement("button", {
|
5613
5638
|
type: "button",
|
5614
|
-
className: "my-4
|
5639
|
+
className: "mx-auto my-4 mt-auto inline-flex cursor-pointer border-none bg-transparent text-xs text-blue-500 hover:text-blue-300",
|
5615
5640
|
onClick: event => {
|
5616
5641
|
event.persist();
|
5617
5642
|
handleReset(event);
|
5618
5643
|
close();
|
5619
5644
|
}
|
5620
|
-
}, texts.datepicker.clear)))))
|
5621
|
-
|
5645
|
+
}, texts.datepicker.clear))))),
|
5646
|
+
tooltip: texts.datepicker.calendar
|
5647
|
+
})
|
5622
5648
|
})));
|
5623
5649
|
});
|
5624
5650
|
Datepicker.displayName = 'Datepicker';
|
@@ -6113,15 +6139,16 @@ const InnerContent = /*#__PURE__*/React__default.forwardRef(function InnerConten
|
|
6113
6139
|
children,
|
6114
6140
|
...otherProps
|
6115
6141
|
} = props;
|
6116
|
-
const cName = cn('grow
|
6142
|
+
const cName = cn('grow flex flex-col', {
|
6143
|
+
'overflow-y-hidden': isScrollable,
|
6144
|
+
'p-4': !isScrollable
|
6145
|
+
}, className);
|
6117
6146
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, otherProps, {
|
6118
6147
|
className: cName,
|
6119
6148
|
ref: ref
|
6120
6149
|
}), isScrollable ? /*#__PURE__*/React__default.createElement(ScrollArea, {
|
6121
|
-
className: "w-full gap-y-0.5"
|
6122
|
-
}, children) :
|
6123
|
-
children
|
6124
|
-
});
|
6150
|
+
className: "w-full gap-y-0.5 p-4"
|
6151
|
+
}, children) : children);
|
6125
6152
|
});
|
6126
6153
|
const Portal = props => {
|
6127
6154
|
const {
|
@@ -6414,7 +6441,7 @@ const Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
|
|
6414
6441
|
'text-grey-700': !invalid,
|
6415
6442
|
'text-red-500': invalid,
|
6416
6443
|
'opacity-50': disabled
|
6417
|
-
}
|
6444
|
+
});
|
6418
6445
|
return /*#__PURE__*/React.createElement("label", Object.assign({}, otherProps, {
|
6419
6446
|
className: className,
|
6420
6447
|
"data-taco": "label",
|
@@ -7212,10 +7239,12 @@ const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(pro
|
|
7212
7239
|
...otherProps
|
7213
7240
|
} = props;
|
7214
7241
|
const isDisabled = context.disabled || props.disabled;
|
7215
|
-
const 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', {
|
7216
|
-
'border-
|
7217
|
-
'border-
|
7218
|
-
|
7242
|
+
const 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 focus-visible:yt-focus disabled:cursor-not-allowed hover:border-4', context.invalid ? {
|
7243
|
+
'border-red-500 hover:border-red-700 aria-checked:bg-red-500 aria-checked:border-red-500 hover:aria-checked:border-red-700': !isDisabled,
|
7244
|
+
'border-red-500/50 aria-checked:bg-red-500/50 aria-checked:border-red-500/50': isDisabled
|
7245
|
+
} : {
|
7246
|
+
'border-grey-500 hover:border-grey-700 aria-checked:bg-blue-500 aria-checked:border-blue-500 hover:aria-checked:border-blue-700': !isDisabled,
|
7247
|
+
'border-grey-500/50 aria-checked:bg-blue-500/50 aria-checked:border-blue-500/50': isDisabled
|
7219
7248
|
});
|
7220
7249
|
const labelClassName = cn('flex items-center gap-2', {
|
7221
7250
|
'cursor-pointer': !isDisabled,
|
@@ -9137,10 +9166,9 @@ const Option$1 = /*#__PURE__*/React__default.forwardRef(function Select2Option(p
|
|
9137
9166
|
}, /*#__PURE__*/React__default.createElement("span", null, children), description ? /*#__PURE__*/React__default.createElement("span", {
|
9138
9167
|
className: "text-grey-700 -mt-1.5 mb-1.5 text-xs"
|
9139
9168
|
}, description) : null)), popover ? /*#__PURE__*/React__default.createElement(IconButton, {
|
9140
|
-
rounded: true,
|
9141
9169
|
icon: "ellipsis-vertical",
|
9142
9170
|
appearance: "discrete",
|
9143
|
-
className: cn('group-aria-current:visible invisible ml-auto -
|
9171
|
+
className: cn('group-aria-current:visible invisible -mr-1 ml-auto !h-5 min-h-[theme(spacing.6)] !w-5 min-w-[theme(spacing.6)] hover:!bg-black/[.08] focus:!shadow-none group-hover:visible', {
|
9144
9172
|
'!visible': isMobileDevice((_window = window) === null || _window === void 0 ? void 0 : _window.navigator)
|
9145
9173
|
}),
|
9146
9174
|
onClick: event => {
|
@@ -9261,6 +9289,7 @@ const Button$2 = /*#__PURE__*/React__default.forwardRef(function Select2TriggerB
|
|
9261
9289
|
const Single = /*#__PURE__*/React__default.forwardRef(function Select2TriggerSingle(props, ref) {
|
9262
9290
|
const {
|
9263
9291
|
children,
|
9292
|
+
emptyValue,
|
9264
9293
|
value,
|
9265
9294
|
...buttonProps
|
9266
9295
|
} = props;
|
@@ -9273,7 +9302,7 @@ const Single = /*#__PURE__*/React__default.forwardRef(function Select2TriggerSin
|
|
9273
9302
|
const currentValue = children.find(matchesValue(value));
|
9274
9303
|
let output;
|
9275
9304
|
if (currentValue) {
|
9276
|
-
if (tags) {
|
9305
|
+
if (tags && emptyValue !== undefined && emptyValue !== value) {
|
9277
9306
|
output = /*#__PURE__*/React__default.createElement(Tag$1, {
|
9278
9307
|
className: "truncate",
|
9279
9308
|
color: currentValue.props.color,
|
@@ -9297,6 +9326,7 @@ const Multiple = /*#__PURE__*/React__default.forwardRef(function Select2TriggerM
|
|
9297
9326
|
var _buttonRef$current;
|
9298
9327
|
const {
|
9299
9328
|
children,
|
9329
|
+
emptyValue: _,
|
9300
9330
|
values = [],
|
9301
9331
|
...buttonProps
|
9302
9332
|
} = props;
|
@@ -9612,7 +9642,7 @@ const getNextColor = options => {
|
|
9612
9642
|
}, {});
|
9613
9643
|
const colors = Object.keys(occurences);
|
9614
9644
|
if (colors.length) {
|
9615
|
-
return colors.sort((a, b) => occurences[
|
9645
|
+
return colors.sort((a, b) => occurences[a] - occurences[b])[0];
|
9616
9646
|
}
|
9617
9647
|
return undefined;
|
9618
9648
|
};
|
@@ -9847,6 +9877,7 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
|
|
9847
9877
|
"data-taco": "Select2"
|
9848
9878
|
}, /*#__PURE__*/React__default.createElement(Trigger$7, Object.assign({}, otherProps, {
|
9849
9879
|
"aria-haspopup": "listbox",
|
9880
|
+
emptyValue: emptyValue,
|
9850
9881
|
onBlur: handleBlur,
|
9851
9882
|
onKeyDown: handleKeyDown,
|
9852
9883
|
ref: internalRef
|
@@ -9941,10 +9972,10 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
|
|
9941
9972
|
...otherProps
|
9942
9973
|
} = props;
|
9943
9974
|
const id = useId(props.id);
|
9944
|
-
const className = cn('group h-5 w-9 flex flex-shrink-0 rounded-full inline-flex', {
|
9975
|
+
const className = cn('group h-5 w-9 flex flex-shrink-0 rounded-full inline-flex focus-visible:yt-focus', {
|
9945
9976
|
'mr-2': !!label,
|
9946
|
-
'bg-grey-500 hover:bg-grey-
|
9947
|
-
'bg-grey-
|
9977
|
+
'bg-grey-500 hover:bg-grey-700 aria-checked:bg-blue-500 aria-checked:hover:bg-blue-700': !props.disabled,
|
9978
|
+
'bg-grey-500/50 aria-checked:bg-blue-500/50 cursor-not-allowed': props.disabled
|
9948
9979
|
}, props.className);
|
9949
9980
|
let labelledByProps = null;
|
9950
9981
|
if (label) {
|
@@ -12871,7 +12902,7 @@ const EditingCell = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__defaul
|
|
12871
12902
|
}));
|
12872
12903
|
|
12873
12904
|
const Header$1 = function Header(props) {
|
12874
|
-
var _header$column$column, _header$column$column2, _asc$desc$header$colu, _header$column$column4, _header$column$column5, _header$column$column6, _header$column$column7, _asc$desc$header$colu2, _header$column$column8
|
12905
|
+
var _header$column$column, _header$column$column2, _asc$desc$header$colu, _header$column$column4, _header$column$column5, _header$column$column6, _header$column$column7, _asc$desc$header$colu2, _header$column$column8;
|
12875
12906
|
const {
|
12876
12907
|
header,
|
12877
12908
|
index,
|
@@ -12923,7 +12954,9 @@ const Header$1 = function Header(props) {
|
|
12923
12954
|
const nextSizes = {
|
12924
12955
|
...sizes
|
12925
12956
|
};
|
12926
|
-
if (size) {
|
12957
|
+
if (size === 'grow') {
|
12958
|
+
nextSizes[header.id] = '1fr';
|
12959
|
+
} else if (typeof size === 'number') {
|
12927
12960
|
nextSizes[header.id] = !isInternalFrozenColumn(header.id) && size < MIN_COLUMN_SIZE ? MIN_COLUMN_SIZE : size;
|
12928
12961
|
} else {
|
12929
12962
|
delete nextSizes[header.id];
|
@@ -12977,8 +13010,7 @@ const Header$1 = function Header(props) {
|
|
12977
13010
|
className: "pointer-events-none -my-0.5"
|
12978
13011
|
})
|
12979
13012
|
}[header.column.getIsSorted()]) !== null && _asc$desc$header$colu2 !== void 0 ? _asc$desc$header$colu2 : null), !isInternalColumn(header.column.id) && ((_header$column$column8 = header.column.columnDef.meta) !== null && _header$column$column8 !== void 0 && _header$column$column8.menu || enableColumnFreezing) ? /*#__PURE__*/React__default.createElement(HeaderMenu, {
|
12980
|
-
|
12981
|
-
enableColumnFreezing: enableColumnFreezing,
|
13013
|
+
header: header,
|
12982
13014
|
table: table,
|
12983
13015
|
columnIndex: index
|
12984
13016
|
}) : null), header.column.getCanResize() ? /*#__PURE__*/React__default.createElement(Tooltip, {
|
@@ -13003,46 +13035,62 @@ const Header$1 = function Header(props) {
|
|
13003
13035
|
}))) : null);
|
13004
13036
|
};
|
13005
13037
|
const HeaderMenu = ({
|
13006
|
-
|
13007
|
-
enableColumnFreezing,
|
13038
|
+
header,
|
13008
13039
|
table,
|
13009
13040
|
columnIndex
|
13010
13041
|
}) => {
|
13042
|
+
var _header$column$column9;
|
13011
13043
|
const [open, setOpen] = React__default.useState(false);
|
13012
13044
|
const {
|
13013
13045
|
texts
|
13014
13046
|
} = useLocalization();
|
13047
|
+
const menu = (_header$column$column9 = header.column.columnDef.meta) === null || _header$column$column9 === void 0 ? void 0 : _header$column$column9.menu;
|
13048
|
+
const meta = table.options.meta;
|
13015
13049
|
const {
|
13016
13050
|
frozenColumnsCount,
|
13017
13051
|
setFrozenColumnsCount
|
13018
|
-
} =
|
13052
|
+
} = meta;
|
13019
13053
|
const columns = table.getVisibleLeafColumns();
|
13020
13054
|
const {
|
13021
13055
|
columnVisibility,
|
13022
13056
|
columnOrder
|
13023
13057
|
} = table.getState();
|
13024
13058
|
const visibleInternalColumnsCount = React__default.useMemo(() => columns.filter(column => isInternalFrozenColumn(column.id)).length, [columns]);
|
13025
|
-
const columnPosition = columnIndex + 1;
|
13026
|
-
const externalFrozenColumnsCount = columnPosition - visibleInternalColumnsCount;
|
13027
|
-
const isSomeExternalColumnFrozen = frozenColumnsCount !== 0;
|
13028
|
-
const freeAllColumns = () => {
|
13029
|
-
setFrozenColumnsCount(0);
|
13030
|
-
};
|
13031
|
-
const freezeColumns = () => {
|
13032
|
-
setFrozenColumnsCount(externalFrozenColumnsCount);
|
13033
|
-
};
|
13034
13059
|
const className = cn('-my-0.5 -mr-1 -ml-0.5 hidden !h-6 !min-h-[theme(spacing.6)] !w-6 !min-w-[theme(spacing.6)] flex-shrink-0 justify-end group-hover/header:flex', {
|
13035
13060
|
'!flex': open
|
13036
13061
|
});
|
13037
|
-
const
|
13038
|
-
|
13039
|
-
|
13040
|
-
|
13041
|
-
|
13042
|
-
|
13043
|
-
|
13044
|
-
|
13045
|
-
}
|
13062
|
+
const menuItems = [];
|
13063
|
+
if (table.options.enableHiding && header.column.getCanHide()) {
|
13064
|
+
// we do this in the next tick, otherwise the menu closes and react throws a "state update on unmounted component" error
|
13065
|
+
const handleClick = () => setTimeout(() => header.column.toggleVisibility(), 1);
|
13066
|
+
menuItems.push( /*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
13067
|
+
icon: "eye-off",
|
13068
|
+
onClick: handleClick
|
13069
|
+
}, texts.table2.columns.menu.hideColumn));
|
13070
|
+
}
|
13071
|
+
if (meta.enableColumnFreezing) {
|
13072
|
+
const columnPosition = columnIndex + 1;
|
13073
|
+
const externalFrozenColumnsCount = columnPosition - visibleInternalColumnsCount;
|
13074
|
+
const isSomeExternalColumnFrozen = frozenColumnsCount !== 0;
|
13075
|
+
const freeAllColumns = () => {
|
13076
|
+
setFrozenColumnsCount(0);
|
13077
|
+
};
|
13078
|
+
const freezeColumns = () => {
|
13079
|
+
setFrozenColumnsCount(externalFrozenColumnsCount);
|
13080
|
+
};
|
13081
|
+
menuItems.push( /*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
13082
|
+
icon: "column-freeze",
|
13083
|
+
onClick: freezeColumns,
|
13084
|
+
key: "_freeze-columns_"
|
13085
|
+
}, texts.table2.columns.menu.freezeColumns(externalFrozenColumnsCount)));
|
13086
|
+
if (isSomeExternalColumnFrozen) {
|
13087
|
+
menuItems.push( /*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
13088
|
+
icon: "column-unfreeze",
|
13089
|
+
onClick: freeAllColumns,
|
13090
|
+
key: "_unfreeze-columns_"
|
13091
|
+
}, texts.table2.columns.menu.unfreezeColumns));
|
13092
|
+
}
|
13093
|
+
}
|
13046
13094
|
React__default.useEffect(() => {
|
13047
13095
|
// Update column pinning/freezing whenever frozen columns count changes, or column order or visiblity changes
|
13048
13096
|
const totalFrozenColumnsCount = visibleInternalColumnsCount + frozenColumnsCount;
|
@@ -13059,23 +13107,21 @@ const HeaderMenu = ({
|
|
13059
13107
|
open: open,
|
13060
13108
|
onChange: setOpen
|
13061
13109
|
};
|
13062
|
-
let menuComponent = null;
|
13063
13110
|
if (menu) {
|
13064
|
-
|
13065
|
-
|
13066
|
-
|
13067
|
-
|
13068
|
-
|
13069
|
-
|
13070
|
-
|
13071
|
-
}
|
13072
|
-
|
13073
|
-
children: menuContentWithFreezingItems
|
13074
|
-
});
|
13111
|
+
const customMenu = menu({
|
13112
|
+
trigger: undefined
|
13113
|
+
});
|
13114
|
+
const customItems = React__default.Children.toArray(customMenu.props.children.props.children);
|
13115
|
+
if (customItems.length) {
|
13116
|
+
if (menuItems.length) {
|
13117
|
+
menuItems.push( /*#__PURE__*/React__default.createElement(Menu$1.Separator, null));
|
13118
|
+
}
|
13119
|
+
menuItems.push(...customItems);
|
13075
13120
|
}
|
13076
|
-
} else if (enableColumnFreezing) {
|
13077
|
-
menuComponent = /*#__PURE__*/React__default.createElement(Menu$1, Object.assign({}, menuProps), /*#__PURE__*/React__default.createElement(Menu$1.Content, null, freezeMenuItems));
|
13078
13121
|
}
|
13122
|
+
const menuComponent = /*#__PURE__*/React__default.createElement(Menu$1, Object.assign({}, menuProps), /*#__PURE__*/React__default.createElement(Menu$1.Content, null, menuItems.map((item, key) => /*#__PURE__*/React__default.cloneElement(item, {
|
13123
|
+
key
|
13124
|
+
}))));
|
13079
13125
|
// This div catches the mousedown events from menu item and menu trigger and prevents
|
13080
13126
|
// mousedown event from bubbling up to the Header component to prevent toggling sorting
|
13081
13127
|
return menuComponent ? /*#__PURE__*/React__default.createElement("div", {
|
@@ -13125,8 +13171,9 @@ function useColumnDefinitions(children, options, tableRef) {
|
|
13125
13171
|
React__default.Children.toArray(children).filter(child => !!child).forEach(child => {
|
13126
13172
|
if ( /*#__PURE__*/React__default.isValidElement(child)) {
|
13127
13173
|
var _child$props$minWidth;
|
13128
|
-
|
13129
|
-
|
13174
|
+
const defaultWidth = child.props.defaultWidth === 'grow' ? '1fr' : child.props.defaultWidth;
|
13175
|
+
if (defaultWidth) {
|
13176
|
+
defaultColumnSizing[child.props.accessor] = defaultWidth;
|
13130
13177
|
}
|
13131
13178
|
if (child.props.defaultHidden && options.enableColumnHiding) {
|
13132
13179
|
defaultColumnVisibility[child.props.accessor] = false;
|
@@ -13162,7 +13209,7 @@ function useColumnDefinitions(children, options, tableRef) {
|
|
13162
13209
|
className: child.props.className,
|
13163
13210
|
control: child.props.control,
|
13164
13211
|
dataType: child.props.dataType,
|
13165
|
-
defaultWidth
|
13212
|
+
defaultWidth,
|
13166
13213
|
disableReordering: child.props.disableReordering,
|
13167
13214
|
menu: child.props.menu,
|
13168
13215
|
tooltip: child.props.tooltip
|
@@ -13583,7 +13630,9 @@ const useGridTemplate = table => {
|
|
13583
13630
|
} else if (isInternalColumn(column.id)) {
|
13584
13631
|
size = `${column.getSize()}px`;
|
13585
13632
|
} else if (width) {
|
13586
|
-
if (
|
13633
|
+
if (width === '1fr') {
|
13634
|
+
size = 'minmax(max-content, 1fr)';
|
13635
|
+
} else if (isLastColumn) {
|
13587
13636
|
size = `minmax(${width}px, auto)`;
|
13588
13637
|
} else if (column.columnDef.minSize && width < column.columnDef.minSize) {
|
13589
13638
|
// react-table is supposed to handle minSize itself but it is really buggy
|
@@ -14916,7 +14965,7 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
|
|
14916
14965
|
orientation = 'horizontal',
|
14917
14966
|
...otherProps
|
14918
14967
|
} = props;
|
14919
|
-
const className = cn(
|
14968
|
+
const className = cn({
|
14920
14969
|
'flex w-full': orientation === 'vertical'
|
14921
14970
|
}, props.className);
|
14922
14971
|
return /*#__PURE__*/React.createElement(TabsPrimitive.Root, Object.assign({}, otherProps, {
|
@@ -14931,7 +14980,7 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
|
|
14931
14980
|
}), children);
|
14932
14981
|
});
|
14933
14982
|
const TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
|
14934
|
-
const className = cn('
|
14983
|
+
const className = cn('border-grey-300 flex flex-row m-0 mb-4', 'aria-orientation-horizontal:border-b', 'aria-orientation-vertical:border-r aria-orientation-vertical:m-0 aria-orientation-vertical:mr-4 aria-orientation-vertical:flex-col ', props.className);
|
14935
14984
|
return /*#__PURE__*/React.createElement(TabsPrimitive.List, Object.assign({}, props, {
|
14936
14985
|
className: className,
|
14937
14986
|
ref: ref
|
@@ -14939,19 +14988,31 @@ const TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
|
|
14939
14988
|
});
|
14940
14989
|
const TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
|
14941
14990
|
const {
|
14991
|
+
children,
|
14942
14992
|
id,
|
14943
14993
|
disabled,
|
14944
14994
|
...otherProps
|
14945
14995
|
} = props;
|
14946
|
-
const
|
14996
|
+
const triggerClassName = cn('group relative p-0.5 outline-none disabled:cursor-not-allowed disabled:text-black/50',
|
14997
|
+
// horizontal
|
14998
|
+
'[[aria-orientation="horizontal"]_&]:pb-1',
|
14999
|
+
// horizontal
|
15000
|
+
'[[aria-orientation="vertical"]_&]:pr-1');
|
15001
|
+
const buttonClassName = cn(getButtonClasses(), 'group-focus-visible:yt-focus-inset group-enabled:group-hover:wcag-grey-200 pointer-events-none rounded px-3');
|
15002
|
+
const activeClassName = cn('pointer-events-none absolute hidden bg-blue-500 group-aria-selected:flex',
|
15003
|
+
// horizontal
|
15004
|
+
'[[aria-orientation="horizontal"]_&]:rounded-t-sm [[aria-orientation="horizontal"]_&]:bottom-0 [[aria-orientation="horizontal"]_&]:left-0 [[aria-orientation="horizontal"]_&]:right-0 [[aria-orientation="horizontal"]_&]:-mb-px [[aria-orientation="horizontal"]_&]:h-0.5',
|
15005
|
+
// vertical
|
15006
|
+
'[[aria-orientation="vertical"]_&]:rounded-l-sm [[aria-orientation="vertical"]_&]:right-0 [[aria-orientation="vertical"]_&]:top-0 [[aria-orientation="vertical"]_&]:bottom-0 [[aria-orientation="vertical"]_&]:-mr-px [[aria-orientation="vertical"]_&]:w-0.5');
|
14947
15007
|
return /*#__PURE__*/React.createElement(TabsPrimitive.Trigger, Object.assign({}, otherProps, {
|
14948
|
-
className:
|
15008
|
+
className: triggerClassName,
|
14949
15009
|
disabled: disabled,
|
14950
15010
|
ref: ref,
|
14951
|
-
style: {
|
14952
|
-
transition: 'border 0.2s ease-in'
|
14953
|
-
},
|
14954
15011
|
value: id
|
15012
|
+
}), /*#__PURE__*/React.createElement("span", {
|
15013
|
+
className: buttonClassName
|
15014
|
+
}, children), /*#__PURE__*/React.createElement("span", {
|
15015
|
+
className: activeClassName
|
14955
15016
|
}));
|
14956
15017
|
});
|
14957
15018
|
const TabContent = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
|
@@ -14959,7 +15020,7 @@ const TabContent = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
|
|
14959
15020
|
id,
|
14960
15021
|
...otherProps
|
14961
15022
|
} = props;
|
14962
|
-
const className = cn('
|
15023
|
+
const className = cn('[&[data-orientation="vertical"]]:grow outline-none', props.className);
|
14963
15024
|
return /*#__PURE__*/React.createElement(TabsPrimitive.Content, Object.assign({}, otherProps, {
|
14964
15025
|
className: className,
|
14965
15026
|
ref: ref,
|
@@ -15140,7 +15201,7 @@ const Button$3 = /*#__PURE__*/React__default.forwardRef(function Button(props, r
|
|
15140
15201
|
ref: ref
|
15141
15202
|
}));
|
15142
15203
|
});
|
15143
|
-
const getButtonClasses$1 = (rounded = true) => cn('!h-9 !w-9 flex-shrink-0 flex-grow-0 cursor-pointer relative', 'focus:!outline-none focus:!shadow-none focus-visible:!yt-focus-dark ', 'bg-transparent hover:bg-white/[.08] focus:bg-white/[.08] aria-current-page:bg-white/[.08]', '
|
15204
|
+
const getButtonClasses$1 = (rounded = true) => cn('!h-9 !w-9 flex-shrink-0 flex-grow-0 cursor-pointer relative', 'focus:!outline-none focus:!shadow-none focus-visible:!yt-focus-dark ', 'bg-transparent enabled:hover:bg-white/[.08] focus:bg-white/[.08] aria-current-page:bg-white/[.08]', 'text-white', {
|
15144
15205
|
'!rounded-full': rounded
|
15145
15206
|
});
|
15146
15207
|
|
@@ -15166,7 +15227,7 @@ const Link$1 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
|
|
15166
15227
|
}) : null, children, isNew ? /*#__PURE__*/React__default.createElement(Badge, {
|
15167
15228
|
color: "blue",
|
15168
15229
|
small: true,
|
15169
|
-
className: "absolute
|
15230
|
+
className: "absolute right-0 top-0 -mr-2.5 -mt-1.5 !h-3 !px-0.5 text-[0.55rem] font-normal"
|
15170
15231
|
}, texts.header.new) : null);
|
15171
15232
|
if (tooltip) {
|
15172
15233
|
return /*#__PURE__*/React__default.createElement(Tooltip, {
|
@@ -15175,7 +15236,7 @@ const Link$1 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
|
|
15175
15236
|
}
|
15176
15237
|
return link;
|
15177
15238
|
});
|
15178
|
-
const getLinkClasses = (icon = undefined) => cn('flex h-8 flex-shrink-0 flex-grow-0 cursor-pointer items-center justify-center ', 'focus:!shadow-none focus:!outline-none focus-visible:!yt-focus-dark', 'bg-transparent hover:bg-white/[.08] focus:bg-white/[.08] aria-current-page:bg-white/[.08]', '
|
15239
|
+
const getLinkClasses = (icon = undefined) => cn('flex h-8 flex-shrink-0 flex-grow-0 cursor-pointer items-center justify-center ', 'focus:!shadow-none focus:!outline-none focus-visible:!yt-focus-dark', 'bg-transparent hover:bg-white/[.08] focus:bg-white/[.08] aria-current-page:bg-white/[.08]', 'text-white hover:text-white focus:text-white', {
|
15179
15240
|
'!rounded-full !h-9 !w-9': icon,
|
15180
15241
|
'whitespace-nowrap px-3 rounded text-sm hidden lg:flex': !icon
|
15181
15242
|
});
|