@britannica/ui
Advanced tools
Comparing version 1.13.0-beta.3 to 1.13.0-beta.4
@@ -74,13 +74,19 @@ 'use strict'; | ||
var BreadcrumbItem = function (_a) { | ||
function BreadcrumbItem(_a) { | ||
var className = _a.className, | ||
_b = _a.tag, | ||
Tag = _b === void 0 ? 'span' : _b, | ||
// @ts-ignore todo: fix this | ||
_b = _a.tag, | ||
// @ts-ignore todo: fix this | ||
Tag = _b === void 0 ? 'span' : _b, | ||
rest = __rest(_a, ["className", "tag"]); | ||
return /*#__PURE__*/React__default["default"].createElement(Tag, __assign({ | ||
className: classnames__default["default"](className, 'breadcrumb-item'), | ||
"data-testid": "BreadcrumbItem" | ||
}, rest)); | ||
}; | ||
return ( | ||
/*#__PURE__*/ | ||
// @ts-ignore todo: fix this | ||
React__default["default"].createElement(Tag, __assign({ | ||
className: classnames__default["default"](className, 'breadcrumb-item'), | ||
"data-testid": "BreadcrumbItem" | ||
}, rest)) | ||
); | ||
} | ||
@@ -87,0 +93,0 @@ function Button(_a) { |
@@ -65,13 +65,19 @@ import classnames from 'classnames'; | ||
var BreadcrumbItem = function (_a) { | ||
function BreadcrumbItem(_a) { | ||
var className = _a.className, | ||
_b = _a.tag, | ||
Tag = _b === void 0 ? 'span' : _b, | ||
// @ts-ignore todo: fix this | ||
_b = _a.tag, | ||
// @ts-ignore todo: fix this | ||
Tag = _b === void 0 ? 'span' : _b, | ||
rest = __rest(_a, ["className", "tag"]); | ||
return /*#__PURE__*/React.createElement(Tag, __assign({ | ||
className: classnames(className, 'breadcrumb-item'), | ||
"data-testid": "BreadcrumbItem" | ||
}, rest)); | ||
}; | ||
return ( | ||
/*#__PURE__*/ | ||
// @ts-ignore todo: fix this | ||
React.createElement(Tag, __assign({ | ||
className: classnames(className, 'breadcrumb-item'), | ||
"data-testid": "BreadcrumbItem" | ||
}, rest)) | ||
); | ||
} | ||
@@ -78,0 +84,0 @@ function Button(_a) { |
@@ -129,13 +129,19 @@ (function (global, factory) { | ||
var BreadcrumbItem = function (_a) { | ||
function BreadcrumbItem(_a) { | ||
var className = _a.className, | ||
_b = _a.tag, | ||
Tag = _b === void 0 ? 'span' : _b, | ||
// @ts-ignore todo: fix this | ||
_b = _a.tag, | ||
// @ts-ignore todo: fix this | ||
Tag = _b === void 0 ? 'span' : _b, | ||
rest = __rest(_a, ["className", "tag"]); | ||
return /*#__PURE__*/React__default["default"].createElement(Tag, __assign({ | ||
className: classnames(className, 'breadcrumb-item'), | ||
"data-testid": "BreadcrumbItem" | ||
}, rest)); | ||
}; | ||
return ( | ||
/*#__PURE__*/ | ||
// @ts-ignore todo: fix this | ||
React__default["default"].createElement(Tag, __assign({ | ||
className: classnames(className, 'breadcrumb-item'), | ||
"data-testid": "BreadcrumbItem" | ||
}, rest)) | ||
); | ||
} | ||
@@ -142,0 +148,0 @@ function Button(_a) { |
@@ -1,6 +0,6 @@ | ||
import type { ElementType, FC, HTMLAttributes } from 'react'; | ||
export interface BreadcrumbItemProps extends HTMLAttributes<HTMLElement> { | ||
tag?: ElementType; | ||
} | ||
declare const BreadcrumbItem: FC<BreadcrumbItemProps>; | ||
import type { ComponentPropsWithoutRef, ElementType } from 'react'; | ||
export declare type BreadcrumbItemProps<T extends ElementType> = ComponentPropsWithoutRef<T> & { | ||
tag?: T; | ||
}; | ||
declare function BreadcrumbItem<T extends ElementType>({ className, tag: Tag, ...rest }: BreadcrumbItemProps<T>): JSX.Element; | ||
export default BreadcrumbItem; |
@@ -5,4 +5,5 @@ import type { FC, HTMLAttributes, LegacyRef } from 'react'; | ||
isInvalid?: boolean; | ||
rows?: number; | ||
} | ||
declare const Textarea: FC<TextareaProps>; | ||
export default Textarea; |
126
package.json
{ | ||
"name": "@britannica/ui", | ||
"version": "1.13.0-beta.3", | ||
"version": "1.13.0-beta.4", | ||
"description": "Consumer style system", | ||
@@ -40,69 +40,69 @@ "main": "dist/britannica-ui.cjs.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.15.8", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5", | ||
"@babel/plugin-proposal-optional-chaining": "^7.14.5", | ||
"@babel/preset-react": "^7.14.5", | ||
"@britannica/eslint-config": "^1.5.0", | ||
"@commitlint/cli": "^13.2.1", | ||
"@commitlint/config-conventional": "^13.2.0", | ||
"@popperjs/core": "^2.11.5", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-commonjs": "^21.0.0", | ||
"@rollup/plugin-node-resolve": "^13.0.5", | ||
"@rollup/plugin-replace": "^4.0.0", | ||
"@rollup/plugin-typescript": "^8.3.3", | ||
"@semantic-release/commit-analyzer": "^9.0.1", | ||
"@semantic-release/git": "^10.0.0", | ||
"@semantic-release/github": "^8.0.1", | ||
"@semantic-release/npm": "^8.0.0", | ||
"@semantic-release/release-notes-generator": "^10.0.2", | ||
"@storybook/addon-actions": "^6.5.9", | ||
"@storybook/addon-essentials": "^6.5.9", | ||
"@storybook/addon-links": "^6.5.9", | ||
"@storybook/builder-webpack5": "^6.5.9", | ||
"@storybook/manager-webpack5": "^6.5.9", | ||
"@storybook/react": "^6.5.9", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@types/lodash-es": "^4.17.6", | ||
"@babel/core": "7.18.9", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6", | ||
"@babel/plugin-proposal-optional-chaining": "7.18.9", | ||
"@babel/preset-react": "7.18.6", | ||
"@britannica/eslint-config": "1.5.0", | ||
"@commitlint/cli": "13.2.1", | ||
"@commitlint/config-conventional": "13.2.0", | ||
"@popperjs/core": "2.11.5", | ||
"@rollup/plugin-babel": "5.3.1", | ||
"@rollup/plugin-commonjs": "21.1.0", | ||
"@rollup/plugin-node-resolve": "13.3.0", | ||
"@rollup/plugin-replace": "4.0.0", | ||
"@rollup/plugin-typescript": "8.3.3", | ||
"@semantic-release/commit-analyzer": "9.0.2", | ||
"@semantic-release/git": "10.0.1", | ||
"@semantic-release/github": "8.0.5", | ||
"@semantic-release/npm": "8.0.3", | ||
"@semantic-release/release-notes-generator": "10.0.3", | ||
"@storybook/addon-actions": "6.5.9", | ||
"@storybook/addon-essentials": "6.5.9", | ||
"@storybook/addon-links": "6.5.9", | ||
"@storybook/builder-webpack5": "6.5.9", | ||
"@storybook/manager-webpack5": "6.5.9", | ||
"@storybook/react": "6.5.9", | ||
"@testing-library/jest-dom": "5.16.4", | ||
"@types/lodash-es": "4.17.6", | ||
"@types/react": "^18.0.14", | ||
"@types/react-dom": "^18.0.5", | ||
"@typescript-eslint/parser": "^5.30.0", | ||
"babel-eslint": "^10.1.0", | ||
"babel-loader": "^8.2.2", | ||
"babel-plugin-annotate-pure-calls": "^0.4.0", | ||
"babel-plugin-dev-expression": "^0.2.3", | ||
"css-loader": "^6.4.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.25.2", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.26.1", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"husky": "^7.0.2", | ||
"jest": "^28.1.1", | ||
"@typescript-eslint/parser": "5.30.7", | ||
"@babel/eslint-parser": "7.11.0", | ||
"babel-loader": "8.2.5", | ||
"babel-plugin-annotate-pure-calls": "0.4.0", | ||
"babel-plugin-dev-expression": "0.2.3", | ||
"css-loader": "6.7.1", | ||
"eslint": "7.32.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-jsx-a11y": "6.6.0", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"eslint-plugin-react": "7.30.1", | ||
"eslint-plugin-react-hooks": "4.6.0", | ||
"husky": "7.0.4", | ||
"jest": "28.1.3", | ||
"jest-environment-jsdom": "28.1.3", | ||
"lodash-es": "^4.17.21", | ||
"postcss": "^8.3.9", | ||
"prettier": "^2.7.1", | ||
"pretty-quick": "^3.1.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.58.0", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-postcss": "^4.0.1", | ||
"rollup-plugin-sourcemaps": "^0.6.3", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"sass": "^1.35.0", | ||
"sass-loader": "^12.2.0", | ||
"semantic-release": "^18.0.0", | ||
"style-loader": "^3.3.0", | ||
"ts-jest": "^28.0.5", | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.7.4" | ||
"lodash-es": "4.17.21", | ||
"postcss": "8.4.14", | ||
"prettier": "2.7.1", | ||
"pretty-quick": "3.1.3", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"rimraf": "3.0.2", | ||
"rollup": "2.77.0", | ||
"rollup-plugin-peer-deps-external": "2.2.4", | ||
"rollup-plugin-postcss": "4.0.2", | ||
"rollup-plugin-sourcemaps": "0.6.3", | ||
"rollup-plugin-terser": "7.0.2", | ||
"sass": "1.53.0", | ||
"sass-loader": "12.6.0", | ||
"semantic-release": "18.0.1", | ||
"style-loader": "3.3.1", | ||
"ts-jest": "28.0.7", | ||
"tslib": "2.4.0", | ||
"typescript": "4.7.4" | ||
}, | ||
"dependencies": { | ||
"@testing-library/react": "^13.3.0", | ||
"classnames": "^2.3.1" | ||
"@testing-library/react": "13.3.0", | ||
"classnames": "2.3.1" | ||
}, | ||
@@ -109,0 +109,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
607737
16599
+ Added@testing-library/react@13.3.0(transitive)
+ Addedclassnames@2.3.1(transitive)
- Removed@testing-library/react@13.4.0(transitive)
- Removedclassnames@2.5.1(transitive)
Updatedclassnames@2.3.1