@clayui/label 3.144.1 → 3.157.0-alpha.1

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.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Labels are a visual pattern used to categorize information providing quick and easy recognition.
4
4
 
5
- - [Documentation](https://clayui.com/docs/components/label.html)
6
- - [Changelog](./CHANGELOG.md)
7
- - [Breaking change schedule](./BREAKING.md)
5
+ - [Documentation](https://clayui.com/docs/components/label.html)
6
+ - [Changelog](./CHANGELOG.md)
7
+ - [Breaking change schedule](./BREAKING.md)
8
8
 
9
9
  ## Install
10
10
 
@@ -16,4 +16,4 @@ yarn add @clayui/label
16
16
 
17
17
  ## Contribute
18
18
 
19
- We'd love to get contributions from you! Please, check our [Contributing Guidelines](https://github.com/liferay/clay/blob/master/CONTRIBUTING.md) to see how you can help us improve.
19
+ We'd love to get contributions from you! Please, check our [Contributing Guidelines](https://github.com/liferay/clay/blob/master/CONTRIBUTING.md) to see how you can help us improve.
package/lib/cjs/index.js CHANGED
@@ -1,81 +1,104 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var src_exports = {};
30
+ __export(src_exports, {
31
+ ItemAfter: () => ItemAfter,
32
+ ItemBefore: () => ItemBefore,
33
+ ItemExpand: () => ItemExpand,
34
+ default: () => src_default
5
35
  });
6
- exports.default = exports.ItemExpand = exports.ItemBefore = exports.ItemAfter = void 0;
7
- var _icon = _interopRequireDefault(require("@clayui/icon"));
8
- var _link = _interopRequireDefault(require("@clayui/link"));
9
- var _classnames = _interopRequireDefault(require("classnames"));
10
- var _react = _interopRequireDefault(require("react"));
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /**
13
- * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
14
- * SPDX-License-Identifier: BSD-3-Clause
15
- */
16
- const ItemAfter = exports.ItemAfter = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
17
- let {
18
- children,
19
- className,
20
- ...otherProps
21
- } = _ref;
22
- return /*#__PURE__*/_react.default.createElement("span", _extends({}, otherProps, {
23
- className: (0, _classnames.default)(className, 'label-item label-item-after'),
24
- ref: ref
25
- }), children);
26
- });
27
- ItemAfter.displayName = 'ClayLabelItemAfter';
28
- const ItemBefore = exports.ItemBefore = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
29
- let {
30
- children,
31
- className,
32
- ...otherProps
33
- } = _ref2;
34
- return /*#__PURE__*/_react.default.createElement("span", _extends({}, otherProps, {
35
- className: (0, _classnames.default)(className, 'label-item label-item-before'),
36
- ref: ref
37
- }), children);
36
+ module.exports = __toCommonJS(src_exports);
37
+ var import_icon = __toESM(require("@clayui/icon"));
38
+ var import_link = __toESM(require("@clayui/link"));
39
+ var import_classnames = __toESM(require("classnames"));
40
+ var import_react = __toESM(require("react"));
41
+ const ItemAfter = import_react.default.forwardRef(({ children, className, ...otherProps }, ref) => /* @__PURE__ */ import_react.default.createElement(
42
+ "span",
43
+ {
44
+ ...otherProps,
45
+ className: (0, import_classnames.default)(className, "label-item label-item-after"),
46
+ ref
47
+ },
48
+ children
49
+ ));
50
+ ItemAfter.displayName = "ClayLabelItemAfter";
51
+ const ItemBefore = import_react.default.forwardRef(({ children, className, ...otherProps }, ref) => /* @__PURE__ */ import_react.default.createElement(
52
+ "span",
53
+ {
54
+ ...otherProps,
55
+ className: (0, import_classnames.default)(className, "label-item label-item-before"),
56
+ ref
57
+ },
58
+ children
59
+ ));
60
+ ItemBefore.displayName = "ClayLabelItemBefore";
61
+ const ItemExpand = import_react.default.forwardRef(({ children, className, href, ...otherProps }, ref) => {
62
+ const TagName = href ? import_link.default : "span";
63
+ return /* @__PURE__ */ import_react.default.createElement(
64
+ TagName,
65
+ {
66
+ ...otherProps,
67
+ className: (0, import_classnames.default)(className, "label-item label-item-expand"),
68
+ href,
69
+ ref
70
+ },
71
+ children
72
+ );
38
73
  });
39
- ItemBefore.displayName = 'ClayLabelItemBefore';
40
- const ItemExpand = exports.ItemExpand = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
41
- let {
42
- children,
43
- className,
44
- href,
45
- ...otherProps
46
- } = _ref3;
47
- const TagName = href ? _link.default : 'span';
48
- return /*#__PURE__*/_react.default.createElement(TagName, _extends({}, otherProps, {
49
- className: (0, _classnames.default)(className, 'label-item label-item-expand'),
50
- href: href,
51
- ref: ref
52
- }), children);
53
- });
54
- ItemExpand.displayName = 'ClayLabelItemExpand';
55
- const OldLabel = /*#__PURE__*/_react.default.forwardRef((_ref4, ref) => {
56
- let {
74
+ ItemExpand.displayName = "ClayLabelItemExpand";
75
+ const OldLabel = import_react.default.forwardRef(
76
+ ({
57
77
  children,
58
78
  className,
59
79
  dismissible,
60
- displayType = 'secondary',
80
+ displayType = "secondary",
61
81
  large = false,
62
82
  ...otherProps
63
- } = _ref4;
64
- return /*#__PURE__*/_react.default.createElement("span", _extends({}, otherProps, {
65
- className: (0, _classnames.default)('label', className, {
66
- 'label-dismissible': dismissible,
67
- 'label-lg': large,
68
- [`label-${displayType}`]: displayType
69
- }),
70
- ref: ref
71
- }), children);
72
- });
73
- OldLabel.displayName = 'ClayLabel';
74
- function forwardRef(component) {
75
- return /*#__PURE__*/_react.default.forwardRef(component);
76
- }
77
- const Label = forwardRef((_ref5, ref) => {
78
- let {
83
+ }, ref) => {
84
+ return /* @__PURE__ */ import_react.default.createElement(
85
+ "span",
86
+ {
87
+ ...otherProps,
88
+ className: (0, import_classnames.default)("label", className, {
89
+ "label-dismissible": dismissible,
90
+ "label-lg": large,
91
+ [`label-${displayType}`]: displayType
92
+ }),
93
+ ref
94
+ },
95
+ children
96
+ );
97
+ }
98
+ );
99
+ OldLabel.displayName = "ClayLabel";
100
+ const LabelComponent = import_react.default.forwardRef(
101
+ ({
79
102
  children,
80
103
  closeButtonProps,
81
104
  href,
@@ -83,23 +106,40 @@ const Label = forwardRef((_ref5, ref) => {
83
106
  withClose = true,
84
107
  spritemap,
85
108
  ...otherProps
86
- } = _ref5;
87
- return /*#__PURE__*/_react.default.createElement(OldLabel, _extends({
88
- dismissible: withClose && !!closeButtonProps
89
- }, otherProps, {
90
- ref: ref
91
- }), !withClose && children, withClose && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(ItemExpand, _extends({}, innerElementProps, {
92
- href: href
93
- }), children), closeButtonProps && /*#__PURE__*/_react.default.createElement(ItemAfter, null, /*#__PURE__*/_react.default.createElement("button", _extends({}, closeButtonProps, {
94
- className: (0, _classnames.default)(closeButtonProps.className, 'close'),
95
- type: "button"
96
- }), /*#__PURE__*/_react.default.createElement(_icon.default, {
97
- spritemap: spritemap,
98
- symbol: "times-small"
99
- })))));
109
+ }, ref) => {
110
+ return /* @__PURE__ */ import_react.default.createElement(
111
+ OldLabel,
112
+ {
113
+ dismissible: withClose && !!closeButtonProps,
114
+ ...otherProps,
115
+ ref
116
+ },
117
+ !withClose && children,
118
+ withClose && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(ItemExpand, { ...innerElementProps, href }, children), closeButtonProps && /* @__PURE__ */ import_react.default.createElement(ItemAfter, null, /* @__PURE__ */ import_react.default.createElement(
119
+ "button",
120
+ {
121
+ ...closeButtonProps,
122
+ className: (0, import_classnames.default)(
123
+ closeButtonProps.className,
124
+ "close"
125
+ ),
126
+ type: "button"
127
+ },
128
+ /* @__PURE__ */ import_react.default.createElement(
129
+ import_icon.default,
130
+ {
131
+ spritemap,
132
+ symbol: "times-small"
133
+ }
134
+ )
135
+ )))
136
+ );
137
+ }
138
+ );
139
+ LabelComponent.displayName = "ClayLabel";
140
+ const Label = Object.assign(LabelComponent, {
141
+ ItemAfter,
142
+ ItemBefore,
143
+ ItemExpand
100
144
  });
101
- Label.displayName = 'ClayLabel';
102
- Label.ItemAfter = ItemAfter;
103
- Label.ItemBefore = ItemBefore;
104
- Label.ItemExpand = ItemExpand;
105
- var _default = exports.default = Label;
145
+ var src_default = Label;
package/lib/esm/index.js CHANGED
@@ -1,76 +1,68 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- /**
3
- * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
-
7
- import ClayIcon from '@clayui/icon';
8
- import ClayLink from '@clayui/link';
9
- import classNames from 'classnames';
10
- import React from 'react';
11
- export const ItemAfter = /*#__PURE__*/React.forwardRef((_ref, ref) => {
12
- let {
13
- children,
14
- className,
15
- ...otherProps
16
- } = _ref;
17
- return /*#__PURE__*/React.createElement("span", _extends({}, otherProps, {
18
- className: classNames(className, 'label-item label-item-after'),
19
- ref: ref
20
- }), children);
21
- });
22
- ItemAfter.displayName = 'ClayLabelItemAfter';
23
- export const ItemBefore = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
24
- let {
25
- children,
26
- className,
27
- ...otherProps
28
- } = _ref2;
29
- return /*#__PURE__*/React.createElement("span", _extends({}, otherProps, {
30
- className: classNames(className, 'label-item label-item-before'),
31
- ref: ref
32
- }), children);
1
+ import ClayIcon from "@clayui/icon";
2
+ import ClayLink from "@clayui/link";
3
+ import classNames from "classnames";
4
+ import React from "react";
5
+ const ItemAfter = React.forwardRef(({ children, className, ...otherProps }, ref) => /* @__PURE__ */ React.createElement(
6
+ "span",
7
+ {
8
+ ...otherProps,
9
+ className: classNames(className, "label-item label-item-after"),
10
+ ref
11
+ },
12
+ children
13
+ ));
14
+ ItemAfter.displayName = "ClayLabelItemAfter";
15
+ const ItemBefore = React.forwardRef(({ children, className, ...otherProps }, ref) => /* @__PURE__ */ React.createElement(
16
+ "span",
17
+ {
18
+ ...otherProps,
19
+ className: classNames(className, "label-item label-item-before"),
20
+ ref
21
+ },
22
+ children
23
+ ));
24
+ ItemBefore.displayName = "ClayLabelItemBefore";
25
+ const ItemExpand = React.forwardRef(({ children, className, href, ...otherProps }, ref) => {
26
+ const TagName = href ? ClayLink : "span";
27
+ return /* @__PURE__ */ React.createElement(
28
+ TagName,
29
+ {
30
+ ...otherProps,
31
+ className: classNames(className, "label-item label-item-expand"),
32
+ href,
33
+ ref
34
+ },
35
+ children
36
+ );
33
37
  });
34
- ItemBefore.displayName = 'ClayLabelItemBefore';
35
- export const ItemExpand = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
36
- let {
37
- children,
38
- className,
39
- href,
40
- ...otherProps
41
- } = _ref3;
42
- const TagName = href ? ClayLink : 'span';
43
- return /*#__PURE__*/React.createElement(TagName, _extends({}, otherProps, {
44
- className: classNames(className, 'label-item label-item-expand'),
45
- href: href,
46
- ref: ref
47
- }), children);
48
- });
49
- ItemExpand.displayName = 'ClayLabelItemExpand';
50
- const OldLabel = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
51
- let {
38
+ ItemExpand.displayName = "ClayLabelItemExpand";
39
+ const OldLabel = React.forwardRef(
40
+ ({
52
41
  children,
53
42
  className,
54
43
  dismissible,
55
- displayType = 'secondary',
44
+ displayType = "secondary",
56
45
  large = false,
57
46
  ...otherProps
58
- } = _ref4;
59
- return /*#__PURE__*/React.createElement("span", _extends({}, otherProps, {
60
- className: classNames('label', className, {
61
- 'label-dismissible': dismissible,
62
- 'label-lg': large,
63
- [`label-${displayType}`]: displayType
64
- }),
65
- ref: ref
66
- }), children);
67
- });
68
- OldLabel.displayName = 'ClayLabel';
69
- function forwardRef(component) {
70
- return /*#__PURE__*/React.forwardRef(component);
71
- }
72
- const Label = forwardRef((_ref5, ref) => {
73
- let {
47
+ }, ref) => {
48
+ return /* @__PURE__ */ React.createElement(
49
+ "span",
50
+ {
51
+ ...otherProps,
52
+ className: classNames("label", className, {
53
+ "label-dismissible": dismissible,
54
+ "label-lg": large,
55
+ [`label-${displayType}`]: displayType
56
+ }),
57
+ ref
58
+ },
59
+ children
60
+ );
61
+ }
62
+ );
63
+ OldLabel.displayName = "ClayLabel";
64
+ const LabelComponent = React.forwardRef(
65
+ ({
74
66
  children,
75
67
  closeButtonProps,
76
68
  href,
@@ -78,23 +70,46 @@ const Label = forwardRef((_ref5, ref) => {
78
70
  withClose = true,
79
71
  spritemap,
80
72
  ...otherProps
81
- } = _ref5;
82
- return /*#__PURE__*/React.createElement(OldLabel, _extends({
83
- dismissible: withClose && !!closeButtonProps
84
- }, otherProps, {
85
- ref: ref
86
- }), !withClose && children, withClose && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemExpand, _extends({}, innerElementProps, {
87
- href: href
88
- }), children), closeButtonProps && /*#__PURE__*/React.createElement(ItemAfter, null, /*#__PURE__*/React.createElement("button", _extends({}, closeButtonProps, {
89
- className: classNames(closeButtonProps.className, 'close'),
90
- type: "button"
91
- }), /*#__PURE__*/React.createElement(ClayIcon, {
92
- spritemap: spritemap,
93
- symbol: "times-small"
94
- })))));
73
+ }, ref) => {
74
+ return /* @__PURE__ */ React.createElement(
75
+ OldLabel,
76
+ {
77
+ dismissible: withClose && !!closeButtonProps,
78
+ ...otherProps,
79
+ ref
80
+ },
81
+ !withClose && children,
82
+ withClose && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(ItemExpand, { ...innerElementProps, href }, children), closeButtonProps && /* @__PURE__ */ React.createElement(ItemAfter, null, /* @__PURE__ */ React.createElement(
83
+ "button",
84
+ {
85
+ ...closeButtonProps,
86
+ className: classNames(
87
+ closeButtonProps.className,
88
+ "close"
89
+ ),
90
+ type: "button"
91
+ },
92
+ /* @__PURE__ */ React.createElement(
93
+ ClayIcon,
94
+ {
95
+ spritemap,
96
+ symbol: "times-small"
97
+ }
98
+ )
99
+ )))
100
+ );
101
+ }
102
+ );
103
+ LabelComponent.displayName = "ClayLabel";
104
+ const Label = Object.assign(LabelComponent, {
105
+ ItemAfter,
106
+ ItemBefore,
107
+ ItemExpand
95
108
  });
96
- Label.displayName = 'ClayLabel';
97
- Label.ItemAfter = ItemAfter;
98
- Label.ItemBefore = ItemBefore;
99
- Label.ItemExpand = ItemExpand;
100
- export default Label;
109
+ var src_default = Label;
110
+ export {
111
+ ItemAfter,
112
+ ItemBefore,
113
+ ItemExpand,
114
+ src_default as default
115
+ };
package/lib/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
3
- * SPDX-License-Identifier: BSD-3-Clause
2
+ * SPDX-FileCopyrightText: (c) 2026 Liferay, Inc. https://liferay.com
3
+ * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
4
4
  */
5
5
  import React from 'react';
6
6
  export declare const ItemAfter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
7
7
  export declare const ItemBefore: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
8
- export declare const ItemExpand: React.ForwardRefExoticComponent<React.BaseHTMLAttributes<HTMLSpanElement | HTMLAnchorElement> & React.RefAttributes<HTMLSpanElement | HTMLAnchorElement>>;
8
+ export declare const ItemExpand: React.ForwardRefExoticComponent<React.BaseHTMLAttributes<HTMLAnchorElement | HTMLSpanElement> & React.RefAttributes<HTMLAnchorElement | HTMLSpanElement>>;
9
9
  interface IBaseProps extends React.BaseHTMLAttributes<HTMLSpanElement> {
10
10
  /**
11
11
  * Flag to indicate if `label-dismissible` class should be applied.
@@ -40,10 +40,9 @@ interface IProps extends IBaseProps {
40
40
  */
41
41
  withClose?: boolean;
42
42
  }
43
- interface IForwardRef<T, P = {}> extends React.ForwardRefExoticComponent<P & React.RefAttributes<T>> {
44
- ItemAfter: typeof ItemAfter;
45
- ItemBefore: typeof ItemBefore;
46
- ItemExpand: typeof ItemExpand;
47
- }
48
- declare const Label: IForwardRef<HTMLSpanElement | HTMLAnchorElement, IProps>;
43
+ declare const Label: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLAnchorElement | HTMLSpanElement>> & {
44
+ ItemAfter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
45
+ ItemBefore: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
46
+ ItemExpand: React.ForwardRefExoticComponent<React.BaseHTMLAttributes<HTMLAnchorElement | HTMLSpanElement> & React.RefAttributes<HTMLAnchorElement | HTMLSpanElement>>;
47
+ };
49
48
  export default Label;
package/package.json CHANGED
@@ -1,46 +1,45 @@
1
1
  {
2
- "name": "@clayui/label",
3
- "version": "3.144.1",
4
- "description": "ClayLabel component",
5
- "license": "BSD-3-Clause",
6
- "repository": "https://github.com/liferay/clay",
7
- "main": "lib/cjs/index.js",
8
- "module": "lib/esm/index.js",
9
- "exports": {
10
- ".": {
11
- "types": "./lib/index.d.ts",
12
- "import": "./lib/esm/index.js",
13
- "require": "./lib/cjs/index.js"
14
- }
2
+ "browserslist": [
3
+ "extends browserslist-config-clay"
4
+ ],
5
+ "dependencies": {
6
+ "@clayui/icon": "^3.157.0-alpha.1",
7
+ "@clayui/link": "^3.157.0-alpha.1",
8
+ "classnames": "2.3.1"
15
9
  },
16
- "types": "lib/index.d.ts",
17
- "ts:main": "src/index.tsx",
10
+ "description": "ClayLabel component",
18
11
  "files": [
19
12
  "lib"
20
13
  ],
21
- "scripts": {
22
- "build": "yarn build:cjs && yarn build:esm",
23
- "build:cjs": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib/cjs --extensions .ts,.tsx",
24
- "build:esm": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib/esm --extensions .ts,.tsx --env-name esm",
25
- "buildTypes": "tsc --project ./tsconfig.declarations.json",
26
- "test": "jest --config ../../jest.config.js"
27
- },
28
14
  "keywords": [
29
15
  "clay",
30
16
  "react"
31
17
  ],
32
- "dependencies": {
33
- "@clayui/icon": "^3.144.1",
34
- "@clayui/link": "^3.144.1",
35
- "classnames": "^2.2.6"
36
- },
18
+ "license": "BSD-3-Clause",
19
+ "main": "lib/cjs/index.js",
20
+ "name": "@clayui/label",
37
21
  "peerDependencies": {
38
- "@clayui/css": "3.x",
22
+ "@clayui/css": "^3.157.0-alpha.1",
39
23
  "react": "^16.0.0 || ^17.0.0 || ^18.0.0",
40
24
  "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
41
25
  },
42
- "browserslist": [
43
- "extends browserslist-config-clay"
44
- ],
45
- "gitHead": "96b1e589bb0777fb30d4fbe050ce7670c8061fe5"
26
+ "repository": "https://github.com/liferay/clay",
27
+ "scripts": {
28
+ "build": "yarn build:cjs && yarn build:esm",
29
+ "build:cjs": "cross-env NODE_ENV=production node ../build-package-esbuild.js --format=cjs --outdir=lib/cjs",
30
+ "build:esm": "cross-env NODE_ENV=production node ../build-package-esbuild.js --format=esm --outdir=lib/esm",
31
+ "buildTypes": "tsc --project ./tsconfig.declarations.json",
32
+ "test": "jest --config ../../jest.config.js"
33
+ },
34
+ "version": "3.157.0-alpha.1",
35
+ "module": "lib/esm/index.js",
36
+ "exports": {
37
+ ".": {
38
+ "types": "./lib/index.d.ts",
39
+ "import": "./lib/esm/index.js",
40
+ "require": "./lib/cjs/index.js"
41
+ }
42
+ },
43
+ "types": "lib/index.d.ts",
44
+ "ts:main": "src/index.tsx"
46
45
  }