@economic/taco 1.17.3 → 1.18.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/Icon/components/index.d.ts +1 -1
  2. package/dist/components/Input/Input.d.ts +1 -1
  3. package/dist/components/Menu/components/Item.d.ts +1 -1
  4. package/dist/components/Menu/components/Link.d.ts +1 -1
  5. package/dist/components/Progress/Progress.stories.d.ts +1 -0
  6. package/dist/components/Select2/Select2.stories.d.ts +1 -0
  7. package/dist/components/Select2/components/Edit.d.ts +2 -2
  8. package/dist/components/Select2/components/Option.d.ts +1 -1
  9. package/dist/components/Select2/components/Search.d.ts +1 -1
  10. package/dist/components/Tag/Tag.d.ts +14 -3
  11. package/dist/esm/index.css +3 -3
  12. package/dist/esm/packages/taco/src/components/Button/util.js +3 -3
  13. package/dist/esm/packages/taco/src/components/Button/util.js.map +1 -1
  14. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +1 -1
  15. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
  16. package/dist/esm/packages/taco/src/components/Icon/components/index.js +0 -2
  17. package/dist/esm/packages/taco/src/components/Icon/components/index.js.map +1 -1
  18. package/dist/esm/packages/taco/src/components/Input/util.js +1 -1
  19. package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
  20. package/dist/esm/packages/taco/src/components/Menu/components/Item.js +1 -1
  21. package/dist/esm/packages/taco/src/components/Menu/components/Item.js.map +1 -1
  22. package/dist/esm/packages/taco/src/components/Select2/Select2.js +19 -0
  23. package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
  24. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +3 -3
  25. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js.map +1 -1
  26. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +7 -7
  27. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
  28. package/dist/esm/packages/taco/src/components/Select2/utilities.js +1 -1
  29. package/dist/esm/packages/taco/src/components/Select2/utilities.js.map +1 -1
  30. package/dist/esm/packages/taco/src/components/Tag/Tag.js +13 -3
  31. package/dist/esm/packages/taco/src/components/Tag/Tag.js.map +1 -1
  32. package/dist/esm/packages/taco/src/index.js +1 -1
  33. package/dist/index.css +3 -3
  34. package/dist/taco.cjs.development.js +51 -49
  35. package/dist/taco.cjs.development.js.map +1 -1
  36. package/dist/taco.cjs.production.min.js +1 -1
  37. package/dist/taco.cjs.production.min.js.map +1 -1
  38. package/package.json +2 -2
  39. package/types.json +16 -5
  40. package/dist/components/Icon/components/Spinner.d.ts +0 -3
  41. package/dist/esm/packages/taco/src/components/Icon/components/Spinner.js +0 -20
  42. package/dist/esm/packages/taco/src/components/Icon/components/Spinner.js.map +0 -1
  43. package/dist/esm/packages/taco/src/utils/colors.js +0 -14
  44. package/dist/esm/packages/taco/src/utils/colors.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@economic/taco",
3
- "version": "1.17.3",
3
+ "version": "1.18.0",
4
4
  "description": "> TODO: description",
5
5
  "author": "Matt Daly <matthew.daly@visma.com>",
6
6
  "homepage": "https://github.com/e-conomic/taco#readme",
@@ -129,5 +129,5 @@
129
129
  "not ie < 11"
130
130
  ]
131
131
  },
132
- "gitHead": "8e11819a101ee2ae3b11aaffcc3be85b83680b8b"
132
+ "gitHead": "b86df167a95132652772eac2a1a2d03fc9118b89"
133
133
  }
package/types.json CHANGED
@@ -1503,7 +1503,6 @@
1503
1503
  "'sliders'",
1504
1504
  "'smartpay'",
1505
1505
  "'sort-by'",
1506
- "'spinner'",
1507
1506
  "'star-solid'",
1508
1507
  "'star'",
1509
1508
  "'subscriptions'",
@@ -2898,7 +2897,7 @@
2898
2897
  {
2899
2898
  "name": "color",
2900
2899
  "optional": true,
2901
- "type": "Color"
2900
+ "type": "TagColor"
2902
2901
  },
2903
2902
  {
2904
2903
  "name": "text",
@@ -2954,7 +2953,7 @@
2954
2953
  {
2955
2954
  "type": "reflection",
2956
2955
  "declaration": {
2957
- "id": 2280,
2956
+ "id": 2289,
2958
2957
  "name": "__type",
2959
2958
  "kind": 65536,
2960
2959
  "kindString": "Type literal",
@@ -3140,7 +3139,7 @@
3140
3139
  "constraint": {
3141
3140
  "type": "reflection",
3142
3141
  "declaration": {
3143
- "id": 1663,
3142
+ "id": 1661,
3144
3143
  "name": "__type",
3145
3144
  "kind": 65536,
3146
3145
  "kindString": "Type literal",
@@ -3987,6 +3986,18 @@
3987
3986
  }
3988
3987
  },
3989
3988
  "Tag": {
3989
+ "TagColor": {
3990
+ "type": "typeOperator",
3991
+ "operator": "keyof",
3992
+ "target": {
3993
+ "type": "query",
3994
+ "queryType": {
3995
+ "type": "reference",
3996
+ "id": 2149,
3997
+ "name": "TAG_COLORS"
3998
+ }
3999
+ }
4000
+ },
3990
4001
  "TagProps": {
3991
4002
  "intersections": [
3992
4003
  "Omit<HTMLAttributes<HTMLSpanElement>, 'children'>"
@@ -4000,7 +4011,7 @@
4000
4011
  {
4001
4012
  "name": "color",
4002
4013
  "optional": true,
4003
- "type": "Color"
4014
+ "type": "TagColor"
4004
4015
  },
4005
4016
  {
4006
4017
  "name": "disabled",
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement>, "string" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "className" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "style" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPath" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filter" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "mask" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "path" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<SVGSVGElement>>;
3
- export default _default;
@@ -1,20 +0,0 @@
1
- import { forwardRef, createElement } from 'react';
2
-
3
- function IconSpinner(props, svgRef) {
4
- return /*#__PURE__*/createElement("svg", Object.assign({
5
- xmlns: "http://www.w3.org/2000/svg",
6
- viewBox: "0 0 24 24",
7
- ref: svgRef
8
- }, props), /*#__PURE__*/createElement("g", {
9
- fill: "currentColor",
10
- fillRule: "evenodd"
11
- }, /*#__PURE__*/createElement("path", {
12
- d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 1.5a8.5 8.5 0 110 17 8.5 8.5 0 010-17z"
13
- }), /*#__PURE__*/createElement("path", {
14
- d: "M12 2a.75.75 0 110 1.5 8.5 8.5 0 108.5 8.5.75.75 0 111.5 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"
15
- })));
16
- }
17
- var Spinner = /*#__PURE__*/forwardRef(IconSpinner);
18
-
19
- export default Spinner;
20
- //# sourceMappingURL=Spinner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Spinner.js","sources":["../../../../../../../../src/components/Icon/components/Spinner.tsx"],"sourcesContent":["import * as React from 'react';\nfunction IconSpinner(props: React.SVGProps<SVGSVGElement>, svgRef?: React.Ref<SVGSVGElement>): JSX.Element {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" ref={svgRef} {...props}>\n <g fill=\"currentColor\" fillRule=\"evenodd\">\n <path d=\"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 1.5a8.5 8.5 0 110 17 8.5 8.5 0 010-17z\" />\n <path d=\"M12 2a.75.75 0 110 1.5 8.5 8.5 0 108.5 8.5.75.75 0 111.5 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z\" />\n </g>\n </svg>\n );\n}\nexport default React.forwardRef(IconSpinner);\n"],"names":["IconSpinner","props","svgRef","React","xmlns","viewBox","ref","fill","fillRule","d"],"mappings":";;AACA,SAASA,WAAW,CAACC,KAAoC,EAAEC,MAAiC;EACxF,oBACIC;IAAKC,KAAK,EAAC,4BAA4B;IAACC,OAAO,EAAC,WAAW;IAACC,GAAG,EAAEJ;KAAYD,KAAK,gBAC9EE;IAAGI,IAAI,EAAC,cAAc;IAACC,QAAQ,EAAC;kBAC5BL;IAAMM,CAAC,EAAC;IAAqH,eAC7HN;IAAMM,CAAC,EAAC;IAAkH,CAC1H,CACF;AAEd;AACA,2BAAeN,UAAgB,CAACH,WAAW,CAAC;;;;"}
@@ -1,14 +0,0 @@
1
- const colors = {
2
- green: 'bg-green-100 text-green-900',
3
- yellow: 'bg-yellow-100 text-yellow-900',
4
- red: 'bg-red-100 text-red-900',
5
- blue: 'bg-blue-100 text-blue-900',
6
- purple: 'bg-purple-100 text-purple-900',
7
- orange: 'bg-orange-100 text-orange-900',
8
- brown: 'bg-brown-100 text-brown-900',
9
- pink: 'bg-pink-100 text-pink-900',
10
- grey: 'bg-grey-200 text-grey-900'
11
- };
12
-
13
- export { colors };
14
- //# sourceMappingURL=colors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.js","sources":["../../../../../../src/utils/colors.ts"],"sourcesContent":["export const colors = {\n green: 'bg-green-100 text-green-900',\n yellow: 'bg-yellow-100 text-yellow-900',\n red: 'bg-red-100 text-red-900',\n blue: 'bg-blue-100 text-blue-900',\n purple: 'bg-purple-100 text-purple-900',\n orange: 'bg-orange-100 text-orange-900',\n brown: 'bg-brown-100 text-brown-900',\n pink: 'bg-pink-100 text-pink-900',\n grey: 'bg-grey-200 text-grey-900',\n};\n\nexport type Color = keyof typeof colors;\n"],"names":["colors","green","yellow","red","blue","purple","orange","brown","pink","grey"],"mappings":"MAAaA,MAAM,GAAG;EAClBC,KAAK,EAAE,6BAA6B;EACpCC,MAAM,EAAE,+BAA+B;EACvCC,GAAG,EAAE,yBAAyB;EAC9BC,IAAI,EAAE,2BAA2B;EACjCC,MAAM,EAAE,+BAA+B;EACvCC,MAAM,EAAE,+BAA+B;EACvCC,KAAK,EAAE,6BAA6B;EACpCC,IAAI,EAAE,2BAA2B;EACjCC,IAAI,EAAE;;;;;"}