@instructure/ui-tag 11.6.0 → 11.6.1-pr-snapshot-1779894247159

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [11.6.1-pr-snapshot-1779894247159](https://github.com/instructure/instructure-ui/compare/v11.6.0...v11.6.1-pr-snapshot-1779894247159) (2026-05-27)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-tag
9
+
10
+
11
+
12
+
13
+
6
14
  # [11.6.0](https://github.com/instructure/instructure-ui/compare/v11.5.0...v11.6.0) (2026-02-18)
7
15
 
8
16
  **Note:** Version bump only for package @instructure/ui-tag
@@ -1,9 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.allowedProps = void 0;
7
1
  /*
8
2
  * The MIT License (MIT)
9
3
  *
@@ -28,4 +22,16 @@ exports.allowedProps = void 0;
28
22
  * SOFTWARE.
29
23
  */
30
24
 
31
- const allowedProps = exports.allowedProps = ['className', 'text', 'title', 'disabled', 'readOnly', 'dismissible', 'margin', 'onClick', 'elementRef', 'size', 'variant'];
25
+ module.exports = {
26
+ presets: [
27
+ [
28
+ require('@instructure/ui-babel-preset'),
29
+ {
30
+ coverage: Boolean(process.env.COVERAGE),
31
+ esModules: Boolean(process.env.ES_MODULES),
32
+ removeConsole: process.env.NODE_ENV === 'production',
33
+ transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
34
+ }
35
+ ]
36
+ ]
37
+ }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-tag",
3
- "version": "11.6.0",
3
+ "version": "11.6.1-pr-snapshot-1779894247159",
4
+ "type": "module",
4
5
  "description": "A tag component",
5
6
  "author": "Instructure, Inc. Engineering and Product Design",
6
7
  "module": "./es/index.js",
7
- "main": "./lib/index.js",
8
8
  "types": "./types/index.d.ts",
9
9
  "repository": {
10
10
  "type": "git",
@@ -15,23 +15,23 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.27.6",
18
- "@instructure/emotion": "11.6.0",
19
- "@instructure/shared-types": "11.6.0",
20
- "@instructure/console": "11.6.0",
21
- "@instructure/ui-color-utils": "11.6.0",
22
- "@instructure/ui-dom-utils": "11.6.0",
23
- "@instructure/ui-react-utils": "11.6.0",
24
- "@instructure/ui-icons": "11.6.0",
25
- "@instructure/ui-view": "11.6.0"
18
+ "@instructure/console": "11.6.1-pr-snapshot-1779894247159",
19
+ "@instructure/emotion": "11.6.1-pr-snapshot-1779894247159",
20
+ "@instructure/shared-types": "11.6.1-pr-snapshot-1779894247159",
21
+ "@instructure/ui-color-utils": "11.6.1-pr-snapshot-1779894247159",
22
+ "@instructure/ui-dom-utils": "11.6.1-pr-snapshot-1779894247159",
23
+ "@instructure/ui-icons": "11.6.1-pr-snapshot-1779894247159",
24
+ "@instructure/ui-react-utils": "11.6.1-pr-snapshot-1779894247159",
25
+ "@instructure/ui-view": "11.6.1-pr-snapshot-1779894247159"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@testing-library/jest-dom": "^6.6.3",
29
29
  "@testing-library/react": "15.0.7",
30
30
  "@testing-library/user-event": "^14.6.1",
31
31
  "vitest": "^3.2.2",
32
- "@instructure/ui-babel-preset": "11.6.0",
33
- "@instructure/ui-themes": "11.6.0",
34
- "@instructure/ui-axe-check": "11.6.0"
32
+ "@instructure/ui-babel-preset": "11.6.1-pr-snapshot-1779894247159",
33
+ "@instructure/ui-axe-check": "11.6.1-pr-snapshot-1779894247159",
34
+ "@instructure/ui-themes": "11.6.1-pr-snapshot-1779894247159"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "react": ">=18 <=19"
@@ -44,10 +44,8 @@
44
44
  ".": {
45
45
  "types": "./types/index.d.ts",
46
46
  "import": "./es/index.js",
47
- "require": "./lib/index.js",
48
47
  "default": "./es/index.js"
49
48
  },
50
- "./lib/*": "./lib/*",
51
49
  "./es/*": "./es/*",
52
50
  "./types/*": "./types/*",
53
51
  "./package.json": "./package.json",
@@ -57,7 +55,7 @@
57
55
  "lint": "ui-scripts lint",
58
56
  "lint:fix": "ui-scripts lint --fix",
59
57
  "clean": "ui-scripts clean",
60
- "build": "ui-scripts build --modules es,cjs",
58
+ "build": "ui-scripts build",
61
59
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
62
60
  "build:types": "tsc -p tsconfig.build.json",
63
61
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
package/lib/Tag/index.js DELETED
@@ -1,126 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = exports.Tag = void 0;
8
- var _react = require("react");
9
- var _IconXLine = require("@instructure/ui-icons/lib/IconXLine.js");
10
- var _View = require("@instructure/ui-view/lib/View");
11
- var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
12
- var _isActiveElement = require("@instructure/ui-dom-utils/lib/isActiveElement.js");
13
- var _emotion = require("@instructure/emotion");
14
- var _styles = _interopRequireDefault(require("./styles"));
15
- var _theme = _interopRequireDefault(require("./theme"));
16
- var _props = require("./props");
17
- var _jsxRuntime = require("@emotion/react/jsx-runtime");
18
- var _dec, _class, _Tag;
19
- /*
20
- * The MIT License (MIT)
21
- *
22
- * Copyright (c) 2015 - present Instructure, Inc.
23
- *
24
- * Permission is hereby granted, free of charge, to any person obtaining a copy
25
- * of this software and associated documentation files (the "Software"), to deal
26
- * in the Software without restriction, including without limitation the rights
27
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
28
- * copies of the Software, and to permit persons to whom the Software is
29
- * furnished to do so, subject to the following conditions:
30
- *
31
- * The above copyright notice and this permission notice shall be included in all
32
- * copies or substantial portions of the Software.
33
- *
34
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40
- * SOFTWARE.
41
- */
42
- /**
43
- ---
44
- category: components
45
- ---
46
- **/
47
- let Tag = exports.Tag = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_Tag = class Tag extends _react.Component {
48
- constructor(...args) {
49
- super(...args);
50
- this.ref = null;
51
- this.focus = () => {
52
- this.ref && this.ref.focus();
53
- };
54
- this.handleClick = e => {
55
- const _this$props = this.props,
56
- disabled = _this$props.disabled,
57
- readOnly = _this$props.readOnly,
58
- onClick = _this$props.onClick;
59
- if (disabled || readOnly) {
60
- e.preventDefault();
61
- e.stopPropagation();
62
- } else if (typeof onClick === 'function') {
63
- onClick(e);
64
- }
65
- };
66
- this.handleRef = element => {
67
- this.ref = element;
68
- if (typeof this.props.elementRef === 'function') {
69
- this.props.elementRef(element);
70
- }
71
- };
72
- }
73
- componentDidMount() {
74
- var _this$props$makeStyle, _this$props2;
75
- (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
76
- }
77
- componentDidUpdate() {
78
- var _this$props$makeStyle2, _this$props3;
79
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
80
- }
81
- get focused() {
82
- return (0, _isActiveElement.isActiveElement)(this.ref);
83
- }
84
- render() {
85
- const _this$props4 = this.props,
86
- className = _this$props4.className,
87
- dismissible = _this$props4.dismissible,
88
- disabled = _this$props4.disabled,
89
- readOnly = _this$props4.readOnly,
90
- text = _this$props4.text,
91
- title = _this$props4.title,
92
- onClick = _this$props4.onClick,
93
- margin = _this$props4.margin,
94
- styles = _this$props4.styles;
95
- const passthroughProps = _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Tag.allowedProps), Tag);
96
- return (0, _jsxRuntime.jsxs)(_View.View, {
97
- ...passthroughProps,
98
- elementRef: this.handleRef,
99
- css: styles === null || styles === void 0 ? void 0 : styles.tag,
100
- className: className,
101
- as: onClick ? 'button' : 'span',
102
- margin: margin,
103
- type: onClick ? 'button' : void 0,
104
- ...(onClick && {
105
- onClick: this.handleClick
106
- }),
107
- disabled: disabled || readOnly,
108
- display: void 0,
109
- title: title || (typeof text === 'string' ? text : void 0),
110
- "data-cid": "Tag",
111
- children: [(0, _jsxRuntime.jsx)("span", {
112
- css: styles === null || styles === void 0 ? void 0 : styles.text,
113
- children: text
114
- }), onClick && dismissible ? (0, _jsxRuntime.jsx)(_IconXLine.IconXLine, {
115
- css: styles === null || styles === void 0 ? void 0 : styles.icon
116
- }) : null]
117
- });
118
- }
119
- }, _Tag.displayName = "Tag", _Tag.componentId = 'Tag', _Tag.allowedProps = _props.allowedProps, _Tag.defaultProps = {
120
- size: 'medium',
121
- dismissible: false,
122
- variant: 'default',
123
- disabled: false,
124
- readOnly: false
125
- }, _Tag)) || _class);
126
- var _default = exports.default = Tag;
package/lib/Tag/styles.js DELETED
@@ -1,230 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- /*
8
- * The MIT License (MIT)
9
- *
10
- * Copyright (c) 2015 - present Instructure, Inc.
11
- *
12
- * Permission is hereby granted, free of charge, to any person obtaining a copy
13
- * of this software and associated documentation files (the "Software"), to deal
14
- * in the Software without restriction, including without limitation the rights
15
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
- * copies of the Software, and to permit persons to whom the Software is
17
- * furnished to do so, subject to the following conditions:
18
- *
19
- * The above copyright notice and this permission notice shall be included in all
20
- * copies or substantial portions of the Software.
21
- *
22
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
- * SOFTWARE.
29
- */
30
-
31
- /**
32
- * ---
33
- * private: true
34
- * ---
35
- * Generates the style object from the theme and provided additional information
36
- * @param {Object} componentTheme The theme variable object.
37
- * @param {Object} props the props of the component, the style is applied to
38
- * @param {Object} state the state of the component, the style is applied to
39
- * @return {Object} The final style object, which will be used in the component
40
- */
41
- const generateStyle = (componentTheme, props) => {
42
- const variant = props.variant,
43
- size = props.size,
44
- dismissible = props.dismissible,
45
- onClick = props.onClick,
46
- disabled = props.disabled;
47
- const isButton = !!onClick;
48
- const sizeVariants = {
49
- small: {
50
- tag: {
51
- padding: componentTheme.paddingSmall,
52
- fontSize: componentTheme.fontSizeSmall
53
- },
54
- text: {
55
- lineHeight: `calc(${componentTheme.heightSmall} - (${componentTheme.defaultBorderWidth} * 2))`
56
- },
57
- icon: {
58
- fontSize: '0.75rem'
59
- }
60
- },
61
- medium: {
62
- tag: {
63
- padding: componentTheme.padding,
64
- fontSize: `calc(${componentTheme.fontSizeMedium} - 0.0625rem)`
65
- },
66
- text: {
67
- lineHeight: `calc(${componentTheme.heightMedium} - (${componentTheme.defaultBorderWidth} * 2))`
68
- },
69
- icon: {
70
- fontSize: '0.875rem'
71
- }
72
- },
73
- large: {
74
- tag: {
75
- padding: componentTheme.padding,
76
- fontSize: `calc(${componentTheme.fontSizeLarge} - 0.0625rem)`
77
- },
78
- text: {
79
- lineHeight: `calc(${componentTheme.heightLarge} - (${componentTheme.defaultBorderWidth} * 2))`
80
- },
81
- icon: {
82
- fontSize: '1rem'
83
- }
84
- }
85
- };
86
- const buttonVariant = isButton ? {
87
- tag: {
88
- touchAction: 'manipulation',
89
- outline: 'none',
90
- position: 'relative',
91
- overflow: 'visible',
92
- transition: `background-color ${componentTheme.transitionTiming}`,
93
- ...(!dismissible && {
94
- cursor: 'pointer'
95
- }),
96
- '&:focus': {
97
- '&::before': {
98
- opacity: 1,
99
- transform: 'scale(1)'
100
- }
101
- },
102
- ...(disabled && {
103
- cursor: 'not-allowed',
104
- pointerEvents: 'none',
105
- opacity: 0.5
106
- })
107
- },
108
- tagBefore: {
109
- content: '""',
110
- boxSizing: 'border-box',
111
- border: `${componentTheme.focusOutlineWidth} ${componentTheme.focusOutlineStyle} ${componentTheme.focusOutlineColor}`,
112
- position: 'absolute',
113
- top: '-0.3125rem',
114
- bottom: '-0.3125rem',
115
- left: '-0.3125rem',
116
- right: '-0.3125rem',
117
- opacity: 0,
118
- transform: 'scale(0.9)',
119
- transition: `all ${componentTheme.transitionTiming}`,
120
- pointerEvents: 'none'
121
- }
122
- } : {};
123
- const tagVariantVariants = {
124
- default: {
125
- tag: {
126
- backgroundColor: componentTheme.defaultBackground,
127
- border: `${componentTheme.defaultBorderWidth} ${componentTheme.defaultBorderStyle} ${componentTheme.defaultBorderColor}`,
128
- borderRadius: componentTheme.defaultBorderRadius,
129
- color: componentTheme.defaultColor,
130
- ...(isButton && {
131
- '&:hover': {
132
- backgroundColor: componentTheme.defaultBackgroundHover
133
- }
134
- })
135
- },
136
- tagBefore: {
137
- ...(isButton && {
138
- borderRadius: componentTheme.defaultBorderRadius
139
- })
140
- }
141
- },
142
- inline: {
143
- tag: {
144
- backgroundColor: componentTheme.inlineBackground,
145
- border: `${componentTheme.inlineBorderWidth} ${componentTheme.inlineBorderStyle} ${componentTheme.inlineBorderColor}`,
146
- borderRadius: componentTheme.inlineBorderRadius,
147
- color: componentTheme.inlineColor,
148
- cursor: 'text',
149
- margin: '0 0.1875rem 0.1875rem',
150
- ...(isButton && {
151
- '&:hover': {
152
- backgroundColor: componentTheme.inlineBackgroundHover
153
- }
154
- })
155
- },
156
- tagBefore: {
157
- ...(isButton && {
158
- borderRadius: `calc(${componentTheme.inlineBorderRadius} * 1.5)`
159
- })
160
- }
161
- }
162
- };
163
- const iconVariantVariants = {
164
- default: {
165
- ...(dismissible && {
166
- color: componentTheme.defaultIconColor,
167
- '[class$="-tag"]:hover > &': {
168
- color: componentTheme.defaultIconHoverColor
169
- }
170
- })
171
- },
172
- inline: {
173
- ...(dismissible && {
174
- backgroundColor: componentTheme.inlineIconColor,
175
- borderRadius: '50%',
176
- color: componentTheme.inlineBackground,
177
- fontSize: '0.75rem',
178
- padding: '0.25rem',
179
- position: 'absolute',
180
- insetInlineEnd: 0,
181
- insetInlineStart: 'auto',
182
- top: 0,
183
- transform: 'translate(40%, -40%)',
184
- '[class$="-tag"]:hover > &': {
185
- backgroundColor: componentTheme.inlineIconHoverColor
186
- },
187
- '[dir="rtl"] &': {
188
- transform: 'translate(-40%, -40%)'
189
- }
190
- })
191
- }
192
- };
193
- return {
194
- tag: {
195
- label: 'tag',
196
- boxSizing: 'border-box',
197
- fontFamily: componentTheme.fontFamily,
198
- display: 'inline-flex',
199
- alignItems: 'center',
200
- textAlign: 'center',
201
- verticalAlign: 'middle',
202
- userSelect: 'none',
203
- ...sizeVariants[size].tag,
204
- ...buttonVariant.tag,
205
- ...tagVariantVariants[variant].tag,
206
- '&::before': {
207
- ...buttonVariant.tagBefore,
208
- ...tagVariantVariants[variant].tagBefore
209
- }
210
- },
211
- text: {
212
- label: 'tag__text',
213
- whiteSpace: 'nowrap',
214
- overflow: 'hidden',
215
- textOverflow: 'ellipsis',
216
- maxWidth: componentTheme.maxWidth,
217
- ...sizeVariants[size].text
218
- },
219
- icon: {
220
- label: 'tag__icon',
221
- marginInlineStart: componentTheme.iconMargin,
222
- marginInlineEnd: 0,
223
- transition: `all ${componentTheme.transitionTiming}`,
224
- cursor: 'pointer',
225
- ...sizeVariants[size].icon,
226
- ...iconVariantVariants[variant]
227
- }
228
- };
229
- };
230
- var _default = exports.default = generateStyle;
package/lib/Tag/theme.js DELETED
@@ -1,97 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- /*
8
- * The MIT License (MIT)
9
- *
10
- * Copyright (c) 2015 - present Instructure, Inc.
11
- *
12
- * Permission is hereby granted, free of charge, to any person obtaining a copy
13
- * of this software and associated documentation files (the "Software"), to deal
14
- * in the Software without restriction, including without limitation the rights
15
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
- * copies of the Software, and to permit persons to whom the Software is
17
- * furnished to do so, subject to the following conditions:
18
- *
19
- * The above copyright notice and this permission notice shall be included in all
20
- * copies or substantial portions of the Software.
21
- *
22
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
- * SOFTWARE.
29
- */
30
-
31
- /**
32
- * Generates the theme object for the component from the theme and provided additional information
33
- * @param {Object} theme The actual theme object.
34
- * @return {Object} The final theme object with the overrides and component variables
35
- */
36
- const generateComponentTheme = theme => {
37
- var _colors$contrasts, _colors$contrasts2, _colors$contrasts3, _colors$contrasts4, _colors$contrasts5, _colors$contrasts6, _colors$contrasts7, _colors$contrasts8, _colors$contrasts9, _colors$contrasts0, _colors$contrasts1, _colors$contrasts10, _colors$contrasts11, _colors$contrasts12, _colors$contrasts13;
38
- const borders = theme.borders,
39
- colors = theme.colors,
40
- forms = theme.forms,
41
- spacing = theme.spacing,
42
- typography = theme.typography,
43
- themeName = theme.key;
44
- const themeSpecificStyle = {
45
- 'canvas-high-contrast': {
46
- defaultBackground: colors === null || colors === void 0 ? void 0 : (_colors$contrasts = colors.contrasts) === null || _colors$contrasts === void 0 ? void 0 : _colors$contrasts.white1010,
47
- defaultBorderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts2 = colors.contrasts) === null || _colors$contrasts2 === void 0 ? void 0 : _colors$contrasts2.grey125125
48
- },
49
- canvas: {
50
- focusOutlineColor: theme['ic-brand-primary'],
51
- defaultIconColor: theme['ic-brand-font-color-dark'],
52
- defaultIconHoverColor: theme['ic-brand-primary'],
53
- defaultColor: theme['ic-brand-font-color-dark']
54
- }
55
- };
56
- const componentVariables = {
57
- fontFamily: typography.fontFamily,
58
- heightSmall: '1.3125rem',
59
- // matches Pill component height
60
- heightMedium: forms.inputHeightSmall,
61
- heightLarge: forms.inputHeightMedium,
62
- fontSizeSmall: typography.fontSizeXSmall,
63
- fontSizeMedium: typography.fontSizeSmall,
64
- fontSizeLarge: typography.fontSizeMedium,
65
- padding: `0 ${spacing.xSmall}`,
66
- paddingSmall: `0 ${spacing.xSmall}`,
67
- focusOutlineColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts3 = colors.contrasts) === null || _colors$contrasts3 === void 0 ? void 0 : _colors$contrasts3.blue4570,
68
- focusOutlineWidth: borders.widthMedium,
69
- focusOutlineStyle: borders.style,
70
- maxWidth: '10rem',
71
- iconMargin: spacing.xSmall,
72
- transitionTiming: '0.2s',
73
- defaultBackgroundHover: colors === null || colors === void 0 ? void 0 : (_colors$contrasts4 = colors.contrasts) === null || _colors$contrasts4 === void 0 ? void 0 : _colors$contrasts4.grey1214,
74
- defaultBackground: colors === null || colors === void 0 ? void 0 : (_colors$contrasts5 = colors.contrasts) === null || _colors$contrasts5 === void 0 ? void 0 : _colors$contrasts5.grey1111,
75
- defaultBorderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts6 = colors.contrasts) === null || _colors$contrasts6 === void 0 ? void 0 : _colors$contrasts6.grey1424,
76
- defaultBorderRadius: '999rem',
77
- defaultBorderStyle: borders.style,
78
- defaultBorderWidth: borders.widthSmall,
79
- defaultColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts7 = colors.contrasts) === null || _colors$contrasts7 === void 0 ? void 0 : _colors$contrasts7.grey125125,
80
- defaultIconColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts8 = colors.contrasts) === null || _colors$contrasts8 === void 0 ? void 0 : _colors$contrasts8.grey125125,
81
- defaultIconHoverColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts9 = colors.contrasts) === null || _colors$contrasts9 === void 0 ? void 0 : _colors$contrasts9.blue4570,
82
- inlineBackgroundHover: colors === null || colors === void 0 ? void 0 : (_colors$contrasts0 = colors.contrasts) === null || _colors$contrasts0 === void 0 ? void 0 : _colors$contrasts0.grey1111,
83
- inlineBackground: colors === null || colors === void 0 ? void 0 : (_colors$contrasts1 = colors.contrasts) === null || _colors$contrasts1 === void 0 ? void 0 : _colors$contrasts1.white1010,
84
- inlineBorderColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts10 = colors.contrasts) === null || _colors$contrasts10 === void 0 ? void 0 : _colors$contrasts10.grey4570,
85
- inlineBorderRadius: borders.radiusMedium,
86
- inlineBorderStyle: borders.style,
87
- inlineBorderWidth: borders.widthSmall,
88
- inlineColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts11 = colors.contrasts) === null || _colors$contrasts11 === void 0 ? void 0 : _colors$contrasts11.grey125125,
89
- inlineIconColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts12 = colors.contrasts) === null || _colors$contrasts12 === void 0 ? void 0 : _colors$contrasts12.grey4570,
90
- inlineIconHoverColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts13 = colors.contrasts) === null || _colors$contrasts13 === void 0 ? void 0 : _colors$contrasts13.blue4570
91
- };
92
- return {
93
- ...componentVariables,
94
- ...themeSpecificStyle[themeName]
95
- };
96
- };
97
- var _default = exports.default = generateComponentTheme;
package/lib/index.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Tag", {
7
- enumerable: true,
8
- get: function () {
9
- return _Tag.Tag;
10
- }
11
- });
12
- var _Tag = require("./Tag");
package/lib/package.json DELETED
@@ -1 +0,0 @@
1
- {"type":"commonjs"}