@northlight/ui 2.43.0 → 2.43.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/dist/es/northlight.js +84 -43
- package/dist/es/northlight.js.map +1 -1
- package/dist/sandbox/index.cjs +88 -45
- package/dist/sandbox/index.cjs.map +1 -1
- package/dist/sandbox/index.js +88 -45
- package/dist/sandbox/index.js.map +1 -1
- package/dist/umd/northlight.cjs +84 -43
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +3 -3
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/lib/theme/components/textarea/index.ts +82 -41
- package/package.json +2 -2
- package/sandbox/lib/run-scenarios.ts +4 -1
- package/sandbox/node_modules/.yarn-integrity +0 -38
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/LICENSE +0 -127
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/README.md +0 -50
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/filter.d.ts +0 -2
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/filter.js +0 -39
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/filter.js.map +0 -1
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/index.d.ts +0 -11
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/index.js +0 -78
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/index.js.map +0 -1
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/lib.d.ts +0 -6
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/lib.js +0 -79
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/lib.js.map +0 -1
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/package.json +0 -34
- package/sandbox/node_modules/esbuild/LICENSE.md +0 -21
- package/sandbox/node_modules/esbuild/README.md +0 -3
- package/sandbox/node_modules/esbuild/bin/esbuild +0 -178
- package/sandbox/node_modules/esbuild/install.js +0 -244
- package/sandbox/node_modules/esbuild/lib/main.d.ts +0 -602
- package/sandbox/node_modules/esbuild/lib/main.js +0 -2332
- package/sandbox/node_modules/esbuild/package.json +0 -41
- package/sandbox/node_modules/esbuild-linux-64/README.md +0 -3
- package/sandbox/node_modules/esbuild-linux-64/bin/esbuild +0 -0
- package/sandbox/node_modules/esbuild-linux-64/package.json +0 -17
package/dist/sandbox/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var react$3 = require('@testing-library/react');
|
|
4
|
-
var
|
|
4
|
+
var userEventImport = require('@testing-library/user-event');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var react$2 = require('@chakra-ui/react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -1235,58 +1235,99 @@ const Tabs = {
|
|
|
1235
1235
|
|
|
1236
1236
|
const Textarea$1 = {
|
|
1237
1237
|
baseStyle: ({ theme: {
|
|
1238
|
-
|
|
1239
|
-
colors: color,
|
|
1240
|
-
borders: borderWidth,
|
|
1241
|
-
radii: borderRadius
|
|
1238
|
+
colors: color
|
|
1242
1239
|
} }) => ({
|
|
1243
|
-
paddingInlineStart: spacing["padding-inline"].textarea.default,
|
|
1244
|
-
paddingInlineEnd: spacing["padding-inline"].textarea.default,
|
|
1245
|
-
borderRadius: borderRadius.textarea.default,
|
|
1246
|
-
borderWidth: borderWidth.textarea.default,
|
|
1247
|
-
borderColor: color.border.textarea.default,
|
|
1248
1240
|
color: color.text.default,
|
|
1249
|
-
bgColor: color.background.textarea.default,
|
|
1250
|
-
_hover: {
|
|
1251
|
-
borderColor: color.border.textarea["default-hover"],
|
|
1252
|
-
bgColor: color.background.textarea.hover
|
|
1253
|
-
},
|
|
1254
|
-
_focusVisible: {
|
|
1255
|
-
borderColor: color.border.textarea.focus,
|
|
1256
|
-
boxShadow: `0 0 0 1px ${color.border.textarea.focus}`,
|
|
1257
|
-
bgColor: color.background.textarea.active
|
|
1258
|
-
},
|
|
1259
|
-
_invalid: {
|
|
1260
|
-
boxShadow: "none",
|
|
1261
|
-
borderColor: color.border.textarea.error,
|
|
1262
|
-
bgColor: color.background.textarea.error
|
|
1263
|
-
},
|
|
1264
|
-
_readOnly: {
|
|
1265
|
-
_focusVisible: {
|
|
1266
|
-
borderColor: color.border.textarea.readonly,
|
|
1267
|
-
bgColor: color.background.textarea.default
|
|
1268
|
-
},
|
|
1269
|
-
_hover: {
|
|
1270
|
-
borderColor: color.border.textarea.readonly
|
|
1271
|
-
}
|
|
1272
|
-
},
|
|
1273
|
-
_disabled: {
|
|
1274
|
-
bgColor: color.background.textarea.disabled,
|
|
1275
|
-
_hover: {
|
|
1276
|
-
borderColor: color.border.textarea.default
|
|
1277
|
-
}
|
|
1278
|
-
},
|
|
1279
1241
|
_placeholder: {
|
|
1280
1242
|
color: color.text.textarea.placeholder
|
|
1281
1243
|
}
|
|
1282
1244
|
}),
|
|
1283
1245
|
variants: {
|
|
1284
|
-
outline: {
|
|
1285
|
-
|
|
1246
|
+
outline: ({ theme: {
|
|
1247
|
+
space: spacing,
|
|
1248
|
+
colors: color,
|
|
1249
|
+
borders: borderWidth,
|
|
1250
|
+
radii: borderRadius
|
|
1251
|
+
} }) => ({
|
|
1252
|
+
paddingInlineStart: spacing["padding-inline"].textarea.default,
|
|
1253
|
+
paddingInlineEnd: spacing["padding-inline"].textarea.default,
|
|
1254
|
+
borderRadius: borderRadius.textarea.default,
|
|
1255
|
+
borderWidth: borderWidth.textarea.default,
|
|
1256
|
+
borderColor: color.border.textarea.default,
|
|
1257
|
+
bgColor: color.background.textarea.default,
|
|
1258
|
+
_hover: {
|
|
1259
|
+
borderColor: color.border.textarea["default-hover"],
|
|
1260
|
+
bgColor: color.background.textarea.hover
|
|
1261
|
+
},
|
|
1262
|
+
_focusVisible: {
|
|
1263
|
+
borderColor: color.border.textarea.focus,
|
|
1264
|
+
boxShadow: `0 0 0 1px ${color.border.textarea.focus}`,
|
|
1265
|
+
bgColor: color.background.textarea.active
|
|
1266
|
+
},
|
|
1267
|
+
_invalid: {
|
|
1268
|
+
boxShadow: "none",
|
|
1269
|
+
borderColor: color.border.textarea.error,
|
|
1270
|
+
bgColor: color.background.textarea.error
|
|
1271
|
+
},
|
|
1272
|
+
_readOnly: {
|
|
1273
|
+
_focusVisible: {
|
|
1274
|
+
borderColor: color.border.textarea.readonly,
|
|
1275
|
+
bgColor: color.background.textarea.default
|
|
1276
|
+
},
|
|
1277
|
+
_hover: {
|
|
1278
|
+
borderColor: color.border.textarea.readonly
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
_disabled: {
|
|
1282
|
+
bgColor: color.background.textarea.disabled,
|
|
1283
|
+
_hover: {
|
|
1284
|
+
borderColor: color.border.textarea.default
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
}),
|
|
1288
|
+
ai: ({ theme: {
|
|
1289
|
+
space: spacing,
|
|
1290
|
+
colors: color,
|
|
1291
|
+
borders: borderWidth,
|
|
1292
|
+
radii: borderRadius
|
|
1293
|
+
} }) => ({
|
|
1294
|
+
paddingInlineStart: spacing["padding-inline"].textarea.default,
|
|
1295
|
+
paddingInlineEnd: spacing["padding-inline"].textarea.default,
|
|
1296
|
+
borderRadius: borderRadius.textarea.default,
|
|
1297
|
+
borderWidth: borderWidth.textarea.default,
|
|
1298
|
+
borderColor: color.border.textarea.default,
|
|
1299
|
+
bgColor: color.background.textarea.default,
|
|
1300
|
+
_hover: {
|
|
1301
|
+
borderColor: color.border.textarea["default-hover"],
|
|
1302
|
+
bgColor: color.background.textarea.hover
|
|
1303
|
+
},
|
|
1286
1304
|
_focusVisible: {
|
|
1305
|
+
bgColor: color.background.textarea.active,
|
|
1306
|
+
boxShadow: `inset 0 0 0 1px ${color.border.ai}`,
|
|
1307
|
+
borderColor: color.border.ai,
|
|
1308
|
+
_invalid: {
|
|
1309
|
+
boxShadow: `inset 0 0 0 1px ${color.border.textarea.error}`,
|
|
1310
|
+
bgColor: color.background.textarea.error,
|
|
1311
|
+
borderColor: color.border.textarea.error
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1314
|
+
_invalid: {
|
|
1315
|
+
bgColor: color.background.textarea.error,
|
|
1316
|
+
borderColor: color.border.textarea.error
|
|
1317
|
+
},
|
|
1318
|
+
_readOnly: {
|
|
1319
|
+
_focusVisible: {
|
|
1320
|
+
borderColor: color.border.textarea.readonly,
|
|
1321
|
+
bgColor: color.background.textarea.default
|
|
1322
|
+
},
|
|
1323
|
+
_hover: {
|
|
1324
|
+
borderColor: color.border.textarea.readonly
|
|
1325
|
+
}
|
|
1326
|
+
},
|
|
1327
|
+
_disabled: {
|
|
1328
|
+
bgColor: color.background.textarea.disabled,
|
|
1287
1329
|
_hover: {
|
|
1288
|
-
|
|
1289
|
-
borderColor: color.border.ai
|
|
1330
|
+
borderColor: color.border.textarea.default
|
|
1290
1331
|
}
|
|
1291
1332
|
}
|
|
1292
1333
|
})
|
|
@@ -9851,6 +9892,8 @@ react$2.forwardRef((props, ref) => {
|
|
|
9851
9892
|
);
|
|
9852
9893
|
});
|
|
9853
9894
|
|
|
9895
|
+
var _a;
|
|
9896
|
+
const userEvent = (_a = userEventImport.default) != null ? _a : userEventImport;
|
|
9854
9897
|
if (typeof window !== "undefined" && !window.matchMedia) {
|
|
9855
9898
|
window.matchMedia = (query) => ({
|
|
9856
9899
|
matches: false,
|
|
@@ -10561,7 +10604,7 @@ function SandboxViewerContent({
|
|
|
10561
10604
|
const container = getContainer();
|
|
10562
10605
|
if (!container)
|
|
10563
10606
|
return;
|
|
10564
|
-
const user =
|
|
10607
|
+
const user = userEventImport.setup();
|
|
10565
10608
|
const context = {
|
|
10566
10609
|
screen: react$3.within(container),
|
|
10567
10610
|
documentScreen: react$3.screen,
|