@deque/cauldron-react 6.5.0-canary.55de7bb9 → 6.5.0-canary.946b10da

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.
@@ -2,13 +2,14 @@ import React from 'react';
2
2
  interface TagProps {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
+ size?: 'default' | 'small';
5
6
  }
6
7
  export declare const TagLabel: {
7
8
  ({ children, className, ...other }: TagProps): React.JSX.Element;
8
9
  displayName: string;
9
10
  };
10
11
  declare const Tag: {
11
- ({ children, className, ...other }: TagProps): React.JSX.Element;
12
+ ({ children, className, size, ...other }: TagProps): React.JSX.Element;
12
13
  displayName: string;
13
14
  };
14
15
  export default Tag;
package/lib/index.js CHANGED
@@ -2634,8 +2634,10 @@ var TagLabel = function (_a) {
2634
2634
  };
2635
2635
  TagLabel.displayName = 'TagLabel';
2636
2636
  var Tag = function (_a) {
2637
- var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
2638
- return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Tag', className) }, other), children));
2637
+ var children = _a.children, className = _a.className, _b = _a.size, size = _b === void 0 ? 'default' : _b, other = tslib.__rest(_a, ["children", "className", "size"]);
2638
+ return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Tag', className, {
2639
+ 'Tag--small': size === 'small'
2640
+ }) }, other), children));
2639
2641
  };
2640
2642
  Tag.displayName = 'Tag';
2641
2643
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "6.5.0-canary.55de7bb9",
3
+ "version": "6.5.0-canary.946b10da",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Fully accessible react components library for Deque Cauldron",
6
6
  "homepage": "https://cauldron.dequelabs.com/",