@instructure/ui-text-input 11.7.8 → 11.7.9-pr-snapshot-1792147648392

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.
@@ -1,257 +1,205 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
1
  import { calcFocusOutlineStyles } from '@instructure/emotion';
26
-
27
- /**
28
- * ---
29
- * private: true
30
- * ---
31
- * Generates the style object from the theme and provided additional information
32
- * @param componentTheme The theme variable object.
33
- * @param props the props of the component, the style is applied to
34
- * @param sharedTokens Shared token object that stores common values for the theme.
35
- * @param state the state of the component, the style is applied to
36
- * @return The final style object, which will be used in the component
37
- */
38
- const generateStyle = (componentTheme, props, sharedTokens, state) => {
39
- const {
40
- size,
41
- textAlign,
42
- shouldNotWrap,
43
- renderBeforeInputElementGap
44
- } = props;
45
- const {
46
- interaction,
47
- success,
48
- invalid,
49
- beforeElementExists
50
- } = state;
51
- const isEvenSpacing = renderBeforeInputElementGap === 'even';
52
- const contentGap = {
53
- small: sharedTokens.spacing.general.spaceXs,
54
- medium: sharedTokens.spacing.general.spaceXs,
55
- large: sharedTokens.spacing.general.spaceSm
56
- }[size];
57
- const contentPaddingBlock = {
58
- small: sharedTokens.spacing.general.space2xs,
59
- medium: sharedTokens.spacing.general.space2xs,
60
- large: sharedTokens.spacing.general.spaceXs
61
- }[size];
62
- const heightTokens = {
63
- small: componentTheme.heightSm,
64
- medium: componentTheme.heightMd,
65
- large: componentTheme.heightLg
66
- };
67
- const inputHeightStyle = sizeHeight => isEvenSpacing ? {
68
- height: 'auto'
69
- } : {
70
- height: `calc(${sizeHeight} - (2 * ${componentTheme.borderWidth}))`,
71
- lineHeight: `calc(${sizeHeight} - (2 * ${componentTheme.borderWidth}))`
72
- };
73
- const sizeVariants = {
74
- small: {
75
- fontSize: componentTheme.fontSizeSm,
76
- ...inputHeightStyle(componentTheme.heightSm)
77
- },
78
- medium: {
79
- fontSize: componentTheme.fontSizeMd,
80
- ...inputHeightStyle(componentTheme.heightMd)
81
- },
82
- large: {
83
- fontSize: componentTheme.fontSizeLg,
84
- ...inputHeightStyle(componentTheme.heightLg)
85
- }
86
- };
87
- const paddingHorizontalVariants = {
88
- small: componentTheme.paddingHorizontalSm,
89
- medium: componentTheme.paddingHorizontalMd,
90
- large: componentTheme.paddingHorizontalLg
91
- };
92
- const inputInteractionStates = {
93
- ...(interaction === 'enabled' && {
94
- color: componentTheme.textColor,
95
- '&::placeholder': {
96
- color: componentTheme.placeholderColor
97
- },
98
- '&:hover::placeholder': {
99
- color: componentTheme.placeholderHoverColor
100
- }
101
- // placeholder is not rendered in the `readOnly` and `disabled` state
102
- }),
103
- ...(interaction === 'readonly' && {
104
- color: componentTheme.textReadonlyColor
105
- }),
106
- ...(interaction === 'disabled' && {
107
- color: componentTheme.textDisabledColor
108
- })
109
- };
110
- const inputStyle = {
111
- all: 'initial',
112
- width: '100%',
113
- WebkitFontSmoothing: 'antialiased',
114
- MozOsxFontSmoothing: 'grayscale',
115
- appearance: 'none',
116
- margin: 0,
117
- display: 'block',
118
- boxSizing: 'border-box',
119
- outline: 'none',
120
- fontFamily: componentTheme.fontFamily,
121
- fontWeight: componentTheme.fontWeight,
122
- // padding of the text in the input
123
- padding: `0 ${componentTheme.gapContent} 0 ${componentTheme.gapContent}`,
124
- background: 'transparent',
125
- border: 'none',
126
- verticalAlign: 'baseline',
127
- '&[autocomplete="off"]::-webkit-contacts-auto-fill-button': {
128
- display: 'none !important'
129
- },
130
- '&:focus': {
131
- boxShadow: 'initial'
132
- },
133
- ...sizeVariants[size],
134
- textAlign: textAlign,
135
- ...inputInteractionStates
136
- };
137
- const viewBase = {
138
- boxSizing: 'border-box',
139
- fontFamily: componentTheme.fontFamily,
140
- maxWidth: '100%',
141
- overflow: 'visible',
142
- unicodeBidi: 'isolate'
143
- };
144
- const containerInteractionStates = {
145
- ...(interaction === 'enabled' && {
146
- backgroundColor: componentTheme.backgroundColor,
147
- borderColor: componentTheme.borderColor,
148
- ...(success && {
149
- borderColor: componentTheme.successBorderColor
150
- }),
151
- ...(invalid && {
152
- borderColor: componentTheme.errorBorderColor
153
- }),
154
- '&:hover': {
155
- backgroundColor: componentTheme.backgroundHoverColor,
156
- borderColor: componentTheme.borderHoverColor,
157
- ...(success && {
158
- borderColor: componentTheme.successBorderColor
159
- }),
160
- ...(invalid && {
161
- borderColor: componentTheme.errorBorderColor
162
- })
163
- }
164
- }),
165
- ...(interaction === 'readonly' && {
166
- backgroundColor: componentTheme.backgroundReadonlyColor,
167
- borderColor: componentTheme.borderReadonlyColor
168
- }),
169
- ...(interaction === 'disabled' && {
170
- cursor: 'not-allowed',
171
- pointerEvents: 'none',
172
- backgroundColor: componentTheme.backgroundDisabledColor,
173
- borderColor: componentTheme.borderDisabledColor
174
- })
175
- };
176
- const focusOutline = calcFocusOutlineStyles(sharedTokens.focusOutline, {
177
- focusColor: invalid ? 'danger' : success ? 'success' : undefined,
178
- // Only display the focus outline when the input is focused.
179
- // This is to prevent double focus ring when e.g., a Button is rendered in
180
- // `renderBeforeInput`
181
- customCSSSelector: '&:has(input:focus)'
182
- });
183
- return {
184
- textInput: {
185
- label: 'textInput',
186
- ...inputStyle,
187
- '&:is(input)[type]': inputStyle,
188
- '&:-webkit-any(input)[type]': inputStyle
189
- },
190
- facade: {
191
- label: 'textInput__facade',
192
- position: 'relative',
193
- display: 'block',
194
- boxSizing: 'border-box',
195
- border: `${componentTheme.borderWidth} solid`,
196
- borderRadius: componentTheme.borderRadius,
197
- color: componentTheme.textColor,
198
- ...containerInteractionStates,
199
- ...focusOutline
200
- },
201
- layout: {
202
- label: 'textInput__layout',
203
- ...viewBase,
204
- display: 'flex',
205
- alignItems: 'center',
206
- justifyContent: 'flex-start',
207
- flexDirection: 'row',
208
- ...(!shouldNotWrap && {
209
- flexWrap: 'wrap'
210
- }),
211
- // left padding of the `renderBeforeInput` element
212
- ...(beforeElementExists && {
213
- paddingInlineStart: paddingHorizontalVariants[size]
214
- }),
215
- ...(isEvenSpacing && {
216
- minHeight: heightTokens[size],
217
- paddingBlock: contentPaddingBlock,
218
- gap: contentGap
219
- })
220
- },
221
- inputLayout: {
222
- label: 'textInput__inputLayout',
223
- flexGrow: 1,
224
- ...viewBase,
225
- display: 'flex',
226
- alignItems: 'center',
227
- justifyContent: 'flex-start',
228
- flexDirection: 'row'
229
- },
230
- beforeElement: {
231
- label: 'textInput__beforeElement',
232
- ...(interaction === 'disabled' && !isEvenSpacing ? {
233
- opacity: 0.5
234
- } : {
235
- display: 'contents'
236
- }),
237
- ...(interaction === 'disabled' && isEvenSpacing && {
238
- '& > *': {
239
- opacity: 0.5
2
+ const generateStyle = (componentTheme, props, sharedTokens, state)=>{
3
+ const { size, textAlign, shouldNotWrap, renderBeforeInputElementGap } = props;
4
+ const { interaction, success, invalid, beforeElementExists } = state;
5
+ const isEvenSpacing = renderBeforeInputElementGap === 'even';
6
+ const contentGap = {
7
+ small: sharedTokens.spacing.general.spaceXs,
8
+ medium: sharedTokens.spacing.general.spaceXs,
9
+ large: sharedTokens.spacing.general.spaceSm
10
+ }[size];
11
+ const contentPaddingBlock = {
12
+ small: sharedTokens.spacing.general.space2xs,
13
+ medium: sharedTokens.spacing.general.space2xs,
14
+ large: sharedTokens.spacing.general.spaceXs
15
+ }[size];
16
+ const heightTokens = {
17
+ small: componentTheme.heightSm,
18
+ medium: componentTheme.heightMd,
19
+ large: componentTheme.heightLg
20
+ };
21
+ const inputHeightStyle = (sizeHeight)=>isEvenSpacing ? {
22
+ height: 'auto'
23
+ } : {
24
+ height: `calc(${sizeHeight} - (2 * ${componentTheme.borderWidth}))`,
25
+ lineHeight: `calc(${sizeHeight} - (2 * ${componentTheme.borderWidth}))`
26
+ };
27
+ const sizeVariants = {
28
+ small: {
29
+ fontSize: componentTheme.fontSizeSm,
30
+ ...inputHeightStyle(componentTheme.heightSm)
31
+ },
32
+ medium: {
33
+ fontSize: componentTheme.fontSizeMd,
34
+ ...inputHeightStyle(componentTheme.heightMd)
35
+ },
36
+ large: {
37
+ fontSize: componentTheme.fontSizeLg,
38
+ ...inputHeightStyle(componentTheme.heightLg)
240
39
  }
241
- })
242
- },
243
- afterElement: {
244
- ...(interaction === 'disabled' && {
245
- opacity: 0.5
246
- }),
247
- display: 'flex',
248
- alignItems: 'center',
249
- paddingInlineEnd: paddingHorizontalVariants[size],
250
- label: 'textInput__afterElement',
251
- ...viewBase,
252
- borderRadius: componentTheme.borderRadius,
253
- flexShrink: 0
254
- }
255
- };
40
+ };
41
+ const paddingHorizontalVariants = {
42
+ small: componentTheme.paddingHorizontalSm,
43
+ medium: componentTheme.paddingHorizontalMd,
44
+ large: componentTheme.paddingHorizontalLg
45
+ };
46
+ const inputInteractionStates = {
47
+ ...interaction === 'enabled' && {
48
+ color: componentTheme.textColor,
49
+ '&::placeholder': {
50
+ color: componentTheme.placeholderColor
51
+ },
52
+ '&:hover::placeholder': {
53
+ color: componentTheme.placeholderHoverColor
54
+ }
55
+ },
56
+ ...interaction === 'readonly' && {
57
+ color: componentTheme.textReadonlyColor
58
+ },
59
+ ...interaction === 'disabled' && {
60
+ color: componentTheme.textDisabledColor
61
+ }
62
+ };
63
+ const inputStyle = {
64
+ all: 'initial',
65
+ width: '100%',
66
+ WebkitFontSmoothing: 'antialiased',
67
+ MozOsxFontSmoothing: 'grayscale',
68
+ appearance: 'none',
69
+ margin: 0,
70
+ display: 'block',
71
+ boxSizing: 'border-box',
72
+ outline: 'none',
73
+ fontFamily: componentTheme.fontFamily,
74
+ fontWeight: componentTheme.fontWeight,
75
+ padding: `0 ${componentTheme.gapContent} 0 ${componentTheme.gapContent}`,
76
+ background: 'transparent',
77
+ border: 'none',
78
+ verticalAlign: 'baseline',
79
+ '&[autocomplete="off"]::-webkit-contacts-auto-fill-button': {
80
+ display: 'none !important'
81
+ },
82
+ '&:focus': {
83
+ boxShadow: 'initial'
84
+ },
85
+ ...sizeVariants[size],
86
+ textAlign: textAlign,
87
+ ...inputInteractionStates
88
+ };
89
+ const viewBase = {
90
+ boxSizing: 'border-box',
91
+ fontFamily: componentTheme.fontFamily,
92
+ maxWidth: '100%',
93
+ overflow: 'visible',
94
+ unicodeBidi: 'isolate'
95
+ };
96
+ const containerInteractionStates = {
97
+ ...interaction === 'enabled' && {
98
+ backgroundColor: componentTheme.backgroundColor,
99
+ borderColor: componentTheme.borderColor,
100
+ ...success && {
101
+ borderColor: componentTheme.successBorderColor
102
+ },
103
+ ...invalid && {
104
+ borderColor: componentTheme.errorBorderColor
105
+ },
106
+ '&:hover': {
107
+ backgroundColor: componentTheme.backgroundHoverColor,
108
+ borderColor: componentTheme.borderHoverColor,
109
+ ...success && {
110
+ borderColor: componentTheme.successBorderColor
111
+ },
112
+ ...invalid && {
113
+ borderColor: componentTheme.errorBorderColor
114
+ }
115
+ }
116
+ },
117
+ ...interaction === 'readonly' && {
118
+ backgroundColor: componentTheme.backgroundReadonlyColor,
119
+ borderColor: componentTheme.borderReadonlyColor
120
+ },
121
+ ...interaction === 'disabled' && {
122
+ cursor: 'not-allowed',
123
+ pointerEvents: 'none',
124
+ backgroundColor: componentTheme.backgroundDisabledColor,
125
+ borderColor: componentTheme.borderDisabledColor
126
+ }
127
+ };
128
+ const focusOutline = calcFocusOutlineStyles(sharedTokens.focusOutline, {
129
+ focusColor: invalid ? 'danger' : success ? 'success' : undefined,
130
+ customCSSSelector: '&:has(input:focus)'
131
+ });
132
+ return {
133
+ textInput: {
134
+ label: 'textInput',
135
+ ...inputStyle,
136
+ '&:is(input)[type]': inputStyle,
137
+ '&:-webkit-any(input)[type]': inputStyle
138
+ },
139
+ facade: {
140
+ label: 'textInput__facade',
141
+ position: 'relative',
142
+ display: 'block',
143
+ boxSizing: 'border-box',
144
+ border: `${componentTheme.borderWidth} solid`,
145
+ borderRadius: componentTheme.borderRadius,
146
+ color: componentTheme.textColor,
147
+ ...containerInteractionStates,
148
+ ...focusOutline
149
+ },
150
+ layout: {
151
+ label: 'textInput__layout',
152
+ ...viewBase,
153
+ display: 'flex',
154
+ alignItems: 'center',
155
+ justifyContent: 'flex-start',
156
+ flexDirection: 'row',
157
+ ...!shouldNotWrap && {
158
+ flexWrap: 'wrap'
159
+ },
160
+ ...beforeElementExists && {
161
+ paddingInlineStart: paddingHorizontalVariants[size]
162
+ },
163
+ ...isEvenSpacing && {
164
+ minHeight: heightTokens[size],
165
+ paddingBlock: contentPaddingBlock,
166
+ gap: contentGap
167
+ }
168
+ },
169
+ inputLayout: {
170
+ label: 'textInput__inputLayout',
171
+ flexGrow: 1,
172
+ ...viewBase,
173
+ display: 'flex',
174
+ alignItems: 'center',
175
+ justifyContent: 'flex-start',
176
+ flexDirection: 'row'
177
+ },
178
+ beforeElement: {
179
+ label: 'textInput__beforeElement',
180
+ ...interaction === 'disabled' && !isEvenSpacing ? {
181
+ opacity: 0.5
182
+ } : {
183
+ display: 'contents'
184
+ },
185
+ ...interaction === 'disabled' && isEvenSpacing && {
186
+ '& > *': {
187
+ opacity: 0.5
188
+ }
189
+ }
190
+ },
191
+ afterElement: {
192
+ ...interaction === 'disabled' && {
193
+ opacity: 0.5
194
+ },
195
+ display: 'flex',
196
+ alignItems: 'center',
197
+ paddingInlineEnd: paddingHorizontalVariants[size],
198
+ label: 'textInput__afterElement',
199
+ ...viewBase,
200
+ borderRadius: componentTheme.borderRadius,
201
+ flexShrink: 0
202
+ }
203
+ };
256
204
  };
257
- export default generateStyle;
205
+ export default generateStyle;
package/es/exports/a.js CHANGED
@@ -1,24 +1 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
- export { TextInput } from '../TextInput/v1/index.js';
1
+ export { TextInput } from '../TextInput/v1/index.js';
package/es/exports/b.js CHANGED
@@ -1,24 +1 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
- export { TextInput } from '../TextInput/v2/index.js';
1
+ export { TextInput } from '../TextInput/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-text-input",
3
- "version": "11.7.8",
3
+ "version": "11.7.9-pr-snapshot-1792147648392",
4
+ "type": "module",
4
5
  "description": "A styled HTML text input 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,21 +15,20 @@
15
15
  "license": "MIT",
16
16
  "devDependencies": {
17
17
  "vitest": "^5.0.0",
18
- "@instructure/ui-axe-check": "11.7.8",
19
- "@instructure/ui-badge": "11.7.8",
20
- "@instructure/ui-color-utils": "11.7.8",
21
- "@instructure/ui-babel-preset": "11.7.8"
18
+ "@instructure/ui-axe-check": "11.7.9-pr-snapshot-1792147648392",
19
+ "@instructure/ui-badge": "11.7.9-pr-snapshot-1792147648392",
20
+ "@instructure/ui-color-utils": "11.7.9-pr-snapshot-1792147648392"
22
21
  },
23
22
  "dependencies": {
24
- "@babel/runtime": "^7.29.7",
25
- "@instructure/emotion": "11.7.8",
26
- "@instructure/ui-dom-utils": "11.7.8",
27
- "@instructure/ui-a11y-utils": "11.7.8",
28
- "@instructure/shared-types": "11.7.8",
29
- "@instructure/ui-form-field": "11.7.8",
30
- "@instructure/ui-tag": "11.7.8",
31
- "@instructure/ui-themes": "11.7.8",
32
- "@instructure/ui-react-utils": "11.7.8"
23
+ "@swc/helpers": "^0.5.23",
24
+ "@instructure/emotion": "11.7.9-pr-snapshot-1792147648392",
25
+ "@instructure/ui-a11y-utils": "11.7.9-pr-snapshot-1792147648392",
26
+ "@instructure/shared-types": "11.7.9-pr-snapshot-1792147648392",
27
+ "@instructure/ui-dom-utils": "11.7.9-pr-snapshot-1792147648392",
28
+ "@instructure/ui-form-field": "11.7.9-pr-snapshot-1792147648392",
29
+ "@instructure/ui-tag": "11.7.9-pr-snapshot-1792147648392",
30
+ "@instructure/ui-themes": "11.7.9-pr-snapshot-1792147648392",
31
+ "@instructure/ui-react-utils": "11.7.9-pr-snapshot-1792147648392"
33
32
  },
34
33
  "peerDependencies": {
35
34
  "react": ">=18 <=19"
@@ -39,7 +38,6 @@
39
38
  },
40
39
  "sideEffects": false,
41
40
  "exports": {
42
- "./lib/*": "./lib/*",
43
41
  "./es/*": "./es/*",
44
42
  "./types/*": "./types/*",
45
43
  "./package.json": "./package.json",
@@ -48,28 +46,24 @@
48
46
  "src": "./src/exports/a.ts",
49
47
  "types": "./types/exports/a.d.ts",
50
48
  "import": "./es/exports/a.js",
51
- "require": "./lib/exports/a.js",
52
49
  "default": "./es/exports/a.js"
53
50
  },
54
51
  "./v11_6": {
55
52
  "src": "./src/exports/a.ts",
56
53
  "types": "./types/exports/a.d.ts",
57
54
  "import": "./es/exports/a.js",
58
- "require": "./lib/exports/a.js",
59
55
  "default": "./es/exports/a.js"
60
56
  },
61
57
  "./v11_7": {
62
58
  "src": "./src/exports/b.ts",
63
59
  "types": "./types/exports/b.d.ts",
64
60
  "import": "./es/exports/b.js",
65
- "require": "./lib/exports/b.js",
66
61
  "default": "./es/exports/b.js"
67
62
  },
68
63
  "./latest": {
69
64
  "src": "./src/exports/b.ts",
70
65
  "types": "./types/exports/b.d.ts",
71
66
  "import": "./es/exports/b.js",
72
- "require": "./lib/exports/b.js",
73
67
  "default": "./es/exports/b.js"
74
68
  }
75
69
  },
@@ -77,7 +71,7 @@
77
71
  "lint": "ui-scripts lint",
78
72
  "lint:fix": "ui-scripts lint --fix",
79
73
  "clean": "ui-scripts clean",
80
- "build": "ui-scripts build --modules es,cjs",
74
+ "build": "ui-scripts build",
81
75
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
82
76
  "build:types": "tsc -p tsconfig.build.json",
83
77
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -19,9 +19,6 @@
19
19
  {
20
20
  "path": "../ui-axe-check/tsconfig.build.json"
21
21
  },
22
- {
23
- "path": "../ui-babel-preset/tsconfig.build.json"
24
- },
25
22
  {
26
23
  "path": "../ui-badge/tsconfig.build.json"
27
24
  },