@economic/taco 1.18.0 → 1.19.0

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.
Files changed (44) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +1 -1
  2. package/dist/components/Icon/components/Columns.d.ts +3 -0
  3. package/dist/components/Icon/components/DensityComfortable.d.ts +3 -0
  4. package/dist/components/Icon/components/DensityCompact.d.ts +3 -0
  5. package/dist/components/Icon/components/DensityNormal.d.ts +3 -0
  6. package/dist/components/Icon/components/DensitySpacious.d.ts +3 -0
  7. package/dist/components/Icon/components/TickBold.d.ts +3 -0
  8. package/dist/components/Icon/components/index.d.ts +1 -1
  9. package/dist/components/Input/Input.d.ts +1 -1
  10. package/dist/components/Menu/components/Item.d.ts +1 -1
  11. package/dist/components/Menu/components/Link.d.ts +1 -1
  12. package/dist/components/Select2/components/Option.d.ts +1 -1
  13. package/dist/components/Select2/components/Search.d.ts +1 -1
  14. package/dist/components/Tag/Tag.d.ts +1 -1
  15. package/dist/esm/index.css +6 -6
  16. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js +1 -1
  17. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js.map +1 -1
  18. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +2 -2
  19. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +1 -1
  20. package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js +1 -1
  21. package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js.map +1 -1
  22. package/dist/esm/packages/taco/src/components/Icon/components/Columns.js +19 -0
  23. package/dist/esm/packages/taco/src/components/Icon/components/Columns.js.map +1 -0
  24. package/dist/esm/packages/taco/src/components/Icon/components/DensityComfortable.js +19 -0
  25. package/dist/esm/packages/taco/src/components/Icon/components/DensityComfortable.js.map +1 -0
  26. package/dist/esm/packages/taco/src/components/Icon/components/DensityCompact.js +19 -0
  27. package/dist/esm/packages/taco/src/components/Icon/components/DensityCompact.js.map +1 -0
  28. package/dist/esm/packages/taco/src/components/Icon/components/DensityNormal.js +19 -0
  29. package/dist/esm/packages/taco/src/components/Icon/components/DensityNormal.js.map +1 -0
  30. package/dist/esm/packages/taco/src/components/Icon/components/DensitySpacious.js +19 -0
  31. package/dist/esm/packages/taco/src/components/Icon/components/DensitySpacious.js.map +1 -0
  32. package/dist/esm/packages/taco/src/components/Icon/components/TickBold.js +19 -0
  33. package/dist/esm/packages/taco/src/components/Icon/components/TickBold.js.map +1 -0
  34. package/dist/esm/packages/taco/src/components/Icon/components/index.js +12 -0
  35. package/dist/esm/packages/taco/src/components/Icon/components/index.js.map +1 -1
  36. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js +2 -2
  37. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -1
  38. package/dist/index.css +6 -6
  39. package/dist/taco.cjs.development.js +102 -6
  40. package/dist/taco.cjs.development.js.map +1 -1
  41. package/dist/taco.cjs.production.min.js +1 -1
  42. package/dist/taco.cjs.production.min.js.map +1 -1
  43. package/package.json +2 -2
  44. package/types.json +9 -3
package/dist/index.css CHANGED
@@ -513,7 +513,7 @@
513
513
 
514
514
  /* rows */
515
515
  .yt-table__row {
516
- @apply border-grey-200 flex border-b;
516
+ @apply border-grey-300 flex border-b;
517
517
  min-height: 2.5rem;
518
518
  }
519
519
 
@@ -545,12 +545,12 @@
545
545
  }
546
546
 
547
547
  .yt-table__head .yt-table__head__group .yt-table__cell.yt-table__cell__group {
548
- @apply border-grey-200 border-b;
548
+ @apply border-grey-300 border-b;
549
549
  flex-basis: 100%;
550
550
  }
551
551
 
552
552
  .yt-table__head .yt-table__head__group + .yt-table__head__group {
553
- @apply border-grey-200 border-l;
553
+ @apply border-grey-300 border-l;
554
554
  }
555
555
 
556
556
  .yt-table__head .yt-table__cell > [data-taco='icon'] {
@@ -558,7 +558,7 @@
558
558
  }
559
559
 
560
560
  .yt-table__head .yt-table__cell.yt-table__cell__group + .yt-table__cell__group {
561
- @apply border-grey-200 border-l-2;
561
+ @apply border-grey-300 border-l-2;
562
562
  }
563
563
 
564
564
  .yt-table.yt-table--windowed.table-with-scrollbar .yt-table__head {
@@ -582,7 +582,7 @@
582
582
  }
583
583
 
584
584
  .yt-table__body .yt-table__row.yt-table__row--active {
585
- @apply bg-grey-100;
585
+ @apply wcag-grey-200;
586
586
  }
587
587
 
588
588
  .yt-table__body .yt-table__row.yt-table__row--dragging,
@@ -592,7 +592,7 @@
592
592
 
593
593
  /* edit */
594
594
  .yt-table__body .yt-table__row.yt-table__row--editing {
595
- @apply border-grey-200 border-t;
595
+ @apply border-grey-300 border-t;
596
596
  }
597
597
 
598
598
  .yt-table__body .yt-table__row.yt-table__row--editing,
@@ -780,6 +780,21 @@ function IconClose(props, svgRef) {
780
780
  }
781
781
  var Close = /*#__PURE__*/React.forwardRef(IconClose);
782
782
 
783
+ function IconColumns(props, svgRef) {
784
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
785
+ fill: "none",
786
+ xmlns: "http://www.w3.org/2000/svg",
787
+ viewBox: "0 0 24 24",
788
+ ref: svgRef
789
+ }, props), /*#__PURE__*/React.createElement("path", {
790
+ fillRule: "evenodd",
791
+ clipRule: "evenodd",
792
+ d: "M14 4.5h-4v15h4v-15zm1.5 0v15h3.75a.25.25 0 00.25-.25V4.75a.25.25 0 00-.25-.25H15.5zm-10.75 0H8.5v15H4.75a.25.25 0 01-.25-.25V4.75a.25.25 0 01.25-.25zm0-1.5A1.75 1.75 0 003 4.75v14.5c0 .966.784 1.75 1.75 1.75h14.5A1.75 1.75 0 0021 19.25V4.75A1.75 1.75 0 0019.25 3H4.75z",
793
+ fill: "currentColor"
794
+ }));
795
+ }
796
+ var Columns = /*#__PURE__*/React.forwardRef(IconColumns);
797
+
783
798
  function IconConnectionEnable(props, svgRef) {
784
799
  return /*#__PURE__*/React.createElement("svg", Object.assign({
785
800
  xmlns: "http://www.w3.org/2000/svg",
@@ -881,6 +896,66 @@ function IconDelete(props, svgRef) {
881
896
  }
882
897
  var Delete = /*#__PURE__*/React.forwardRef(IconDelete);
883
898
 
899
+ function IconDensityComfortable(props, svgRef) {
900
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
901
+ fill: "none",
902
+ xmlns: "http://www.w3.org/2000/svg",
903
+ viewBox: "0 0 24 24",
904
+ ref: svgRef
905
+ }, props), /*#__PURE__*/React.createElement("path", {
906
+ fillRule: "evenodd",
907
+ clipRule: "evenodd",
908
+ d: "M18.53 2.97a.75.75 0 00-1.06 0l-3 3a.75.75 0 001.06 1.06l1.72-1.72v13.38l-1.72-1.72a.75.75 0 10-1.06 1.06l3 3a.75.75 0 001.06 0l3-3a.75.75 0 10-1.06-1.06l-1.72 1.72V5.31l1.72 1.72a.75.75 0 101.06-1.06l-3-3zM2.25 6A.75.75 0 013 5.25h8.5a.75.75 0 010 1.5H3A.75.75 0 012.25 6zM3 11.25a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5H3zm0 6a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5H3z",
909
+ fill: "currentColor"
910
+ }));
911
+ }
912
+ var DensityComfortable = /*#__PURE__*/React.forwardRef(IconDensityComfortable);
913
+
914
+ function IconDensityCompact(props, svgRef) {
915
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
916
+ fill: "none",
917
+ xmlns: "http://www.w3.org/2000/svg",
918
+ viewBox: "0 0 24 24",
919
+ ref: svgRef
920
+ }, props), /*#__PURE__*/React.createElement("path", {
921
+ fillRule: "evenodd",
922
+ clipRule: "evenodd",
923
+ d: "M18.53 2.97a.75.75 0 00-1.06 0l-3 3a.75.75 0 001.06 1.06l1.72-1.72v13.38l-1.72-1.72a.75.75 0 10-1.06 1.06l3 3a.75.75 0 001.06 0l3-3a.75.75 0 10-1.06-1.06l-1.72 1.72V5.31l1.72 1.72a.75.75 0 101.06-1.06l-3-3zM2.25 9A.75.75 0 013 8.25h8.5a.75.75 0 010 1.5H3A.75.75 0 012.25 9zM3 11.25a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5H3zm0 3a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5H3z",
924
+ fill: "currentColor"
925
+ }));
926
+ }
927
+ var DensityCompact = /*#__PURE__*/React.forwardRef(IconDensityCompact);
928
+
929
+ function IconDensityNormal(props, svgRef) {
930
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
931
+ fill: "none",
932
+ xmlns: "http://www.w3.org/2000/svg",
933
+ viewBox: "0 0 24 24",
934
+ ref: svgRef
935
+ }, props), /*#__PURE__*/React.createElement("path", {
936
+ fillRule: "evenodd",
937
+ clipRule: "evenodd",
938
+ d: "M18.53 2.97a.75.75 0 00-1.06 0l-3 3a.75.75 0 001.06 1.06l1.72-1.72v13.38l-1.72-1.72a.75.75 0 10-1.06 1.06l3 3a.75.75 0 001.06 0l3-3a.75.75 0 10-1.06-1.06l-1.72 1.72V5.31l1.72 1.72a.75.75 0 101.06-1.06l-3-3zM2.25 7.5A.75.75 0 013 6.75h8.5a.75.75 0 010 1.5H3a.75.75 0 01-.75-.75zM3 11.25a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5H3zm0 4.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5H3z",
939
+ fill: "currentColor"
940
+ }));
941
+ }
942
+ var DensityNormal = /*#__PURE__*/React.forwardRef(IconDensityNormal);
943
+
944
+ function IconDensitySpacious(props, svgRef) {
945
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
946
+ fill: "none",
947
+ xmlns: "http://www.w3.org/2000/svg",
948
+ viewBox: "0 0 24 24",
949
+ ref: svgRef
950
+ }, props), /*#__PURE__*/React.createElement("path", {
951
+ fillRule: "evenodd",
952
+ clipRule: "evenodd",
953
+ d: "M18.53 2.97a.75.75 0 00-1.06 0l-3 3a.75.75 0 001.06 1.06l1.72-1.72v13.38l-1.72-1.72a.75.75 0 10-1.06 1.06l3 3a.75.75 0 001.06 0l3-3a.75.75 0 10-1.06-1.06l-1.72 1.72V5.31l1.72 1.72a.75.75 0 101.06-1.06l-3-3zM3 19.25a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5H3zM2.25 12a.75.75 0 01.75-.75h8.5a.75.75 0 010 1.5H3a.75.75 0 01-.75-.75zM3 3.25a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5H3z",
954
+ fill: "currentColor"
955
+ }));
956
+ }
957
+ var DensitySpacious = /*#__PURE__*/React.forwardRef(IconDensitySpacious);
958
+
884
959
  function IconDepecriate(props, svgRef) {
885
960
  return /*#__PURE__*/React.createElement("svg", Object.assign({
886
961
  xmlns: "http://www.w3.org/2000/svg",
@@ -2733,6 +2808,21 @@ function IconThumbUp(props, svgRef) {
2733
2808
  }
2734
2809
  var ThumbUp = /*#__PURE__*/React.forwardRef(IconThumbUp);
2735
2810
 
2811
+ function IconTickBold(props, svgRef) {
2812
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
2813
+ fill: "none",
2814
+ xmlns: "http://www.w3.org/2000/svg",
2815
+ viewBox: "0 0 24 24",
2816
+ ref: svgRef
2817
+ }, props), /*#__PURE__*/React.createElement("path", {
2818
+ fillRule: "evenodd",
2819
+ clipRule: "evenodd",
2820
+ d: "M18.832 4.752a1.5 1.5 0 01.416 2.08l-8 12a1.5 1.5 0 01-2.496 0l-4-6a1.5 1.5 0 112.496-1.664L10 15.296l6.752-10.128a1.5 1.5 0 012.08-.416z",
2821
+ fill: "currentColor"
2822
+ }));
2823
+ }
2824
+ var TickBold = /*#__PURE__*/React.forwardRef(IconTickBold);
2825
+
2736
2826
  function IconTick(props, svgRef) {
2737
2827
  return /*#__PURE__*/React.createElement("svg", Object.assign({
2738
2828
  xmlns: "http://www.w3.org/2000/svg",
@@ -2962,6 +3052,7 @@ const icons = {
2962
3052
  'clamp-open': ClampOpen,
2963
3053
  clamp: Clamp,
2964
3054
  close: Close,
3055
+ columns: Columns,
2965
3056
  'connection-enable': ConnectionEnable,
2966
3057
  'connection-revoke': ConnectionRevoke,
2967
3058
  contacts: Contacts,
@@ -2970,6 +3061,10 @@ const icons = {
2970
3061
  credit: Credit,
2971
3062
  'delete-permanently': DeletePermanently,
2972
3063
  delete: Delete,
3064
+ 'density-comfortable': DensityComfortable,
3065
+ 'density-compact': DensityCompact,
3066
+ 'density-normal': DensityNormal,
3067
+ 'density-spacious': DensitySpacious,
2973
3068
  depecriate: Depecriate,
2974
3069
  developer: Developer,
2975
3070
  'distribution-template': DistributionTemplate,
@@ -3112,6 +3207,7 @@ const icons = {
3112
3207
  'thumb-down': ThumbDown,
3113
3208
  'thumb-up-solid': ThumbUpSolid,
3114
3209
  'thumb-up': ThumbUp,
3210
+ 'tick-bold': TickBold,
3115
3211
  tick: Tick,
3116
3212
  time: Time,
3117
3213
  'transfer-cancel': TransferCancel,
@@ -3212,7 +3308,7 @@ const Accordion = props => {
3212
3308
  value: id || undefined
3213
3309
  };
3214
3310
  }
3215
- const type = Array.isArray(valueProps.defaultValue) || Array.isArray(valueProps.value) ? 'multiple' : 'single';
3311
+ const type = typeof valueProps.defaultValue === 'string' || typeof valueProps.value === 'string' ? 'single' : 'multiple';
3216
3312
  const className = cn('divide-y divide-grey-200', props.className);
3217
3313
  return /*#__PURE__*/React__default.createElement(AccordionContext.Provider, {
3218
3314
  value: context
@@ -5236,8 +5332,8 @@ const Content$4 = /*#__PURE__*/React.forwardRef(function DialogContent(props, re
5236
5332
  const {
5237
5333
  texts
5238
5334
  } = useLocalization();
5239
- const className = cn('relative bg-white animate-[fade-in_150ms]', getDialogPositionClassnames(), getDialogSizeClassnames(dialog.size));
5240
- const containerClassName = cn('bg-white p-6 rounded relative z-10', 'shadow-[0_6px_9px_0_rgba(89,85,98,0.3),0_0_1px_0_rgba(89,85,98,0.2)]', {
5335
+ const className = cn('relative bg-white animate-[fade-in_150ms] rounded', getDialogPositionClassnames(), getDialogSizeClassnames(dialog.size));
5336
+ const containerClassName = cn('bg-white p-6 rounded relative z-10 shadow', {
5241
5337
  'rounded-b-none': !!dialog.elements.extra
5242
5338
  }, props.className);
5243
5339
  const handleEscapeKeyDown = event => {
@@ -5328,7 +5424,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function DialogDrawer(props, ref) {
5328
5424
  Drawer.displayName = 'DialogDrawer';
5329
5425
 
5330
5426
  const Extra = /*#__PURE__*/React.forwardRef(function DialogExtra(props, ref) {
5331
- const className = cn('bg-grey-100 yt-shadow-inset absolute top-full left-0 -mt-px w-full rounded-t-none rounded-b p-6 text-left', props.className);
5427
+ const className = cn('wcag-grey-100 absolute top-full left-0 -mt-px w-full rounded-t-none rounded-b p-6 text-left', props.className);
5332
5428
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
5333
5429
  className: className,
5334
5430
  "data-taco": "dialog-extra",
@@ -9734,8 +9830,8 @@ const Row = /*#__PURE__*/React__default.forwardRef(function TableRow({
9734
9830
  minHeight: rowHeight ? `${rowHeight}px` : undefined,
9735
9831
  paddingLeft: row.depth ? `${row.depth * 2}rem` : undefined
9736
9832
  },
9737
- className: cn('yt-table__row border-grey-100 flex border-b min-h-[2.5rem] hover:bg-grey-100', {
9738
- 'yt-table__row--active bg-grey-100 hover:bg-grey-100': activeIndex === index,
9833
+ className: cn('yt-table__row border-grey-300 flex border-b min-h-[2.5rem] hover:bg-grey-100', {
9834
+ 'yt-table__row--active bg-grey-200 hover:bg-grey-200': activeIndex === index,
9739
9835
  'yt-table__row--clickable': !!onRowClick,
9740
9836
  'yt-table__row--dragging': !!row.isDragging,
9741
9837
  'yt-table__row--editing': !!row.isEditing