@wistia/kaleidoscope 0.0.0
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 +31 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/package.json +53 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @wistia/kaleidoscope
|
|
2
|
+
|
|
3
|
+
TODO: describe what this package does.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
yarn add @wistia/kaleidoscope
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Development
|
|
12
|
+
|
|
13
|
+
This package lives in the [vhs monorepo](https://github.com/wistia/vhs). From the repo root:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
yarn vp run @wistia/kaleidoscope#build # build once
|
|
17
|
+
yarn workspace @wistia/kaleidoscope build:watch # rebuild on change, pushes to yalc consumers
|
|
18
|
+
yarn workspace @wistia/kaleidoscope test:watch
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Releasing
|
|
22
|
+
|
|
23
|
+
Add a changeset describing your change, then merge. The release PR opened on `main` publishes to npm when merged.
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
yarn changeset
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
Unlicensed — Copyright (c) Wistia, Inc. and its affiliates. All rights reserved.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/colorContrastRatiosByShape.d.ts
|
|
3
|
+
declare const colorContrastRatiosByShape: {
|
|
4
|
+
nonText: number;
|
|
5
|
+
largeText: number;
|
|
6
|
+
paragraphText: number;
|
|
7
|
+
smallText: number;
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { colorContrastRatiosByShape };
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/colorContrastRatiosByShape.ts"],"mappings":";;cAAa;EACX;EACA;EACA;EACA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* @license @wistia/kaleidoscope v0.0.0
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2026, Wistia, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is unlicensed, all rights reserved.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
//#region src/colorContrastRatiosByShape.ts
|
|
11
|
+
const colorContrastRatiosByShape = {
|
|
12
|
+
nonText: 3,
|
|
13
|
+
largeText: 3,
|
|
14
|
+
paragraphText: 4.5,
|
|
15
|
+
smallText: 5.5
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { colorContrastRatiosByShape };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/colorContrastRatiosByShape.ts"],"sourcesContent":["export const colorContrastRatiosByShape = {\n nonText: 3.0, // 3.0:1 - https://www.w3.org/TR/WCAG21/#non-text-contrast\n largeText: 3.0, // 3.0:1 - https://www.w3.org/TR/WCAG21/#contrast-minimum\n paragraphText: 4.5, // 4.5:1 - https://www.w3.org/TR/WCAG21/#contrast-minimum\n smallText: 5.5, // We're making this up, but it should be more than the paragraph text\n};\n"],"mappings":";;;;;;;;;;AAAA,MAAa,6BAA6B;CACxC,SAAS;CACT,WAAW;CACX,eAAe;CACf,WAAW;AACb"}
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wistia/kaleidoscope",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Shared logic and token engine for Wistia's audience-facing design system",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"exports": {
|
|
10
|
+
"./package.json": "./package.json",
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=24.0.0"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build:watch": "tsdown --watch",
|
|
24
|
+
"clean": "shx rm -rf ./dist && echo 'dist directory has been removed'",
|
|
25
|
+
"prepack": "vp run build",
|
|
26
|
+
"publint": "publint-check",
|
|
27
|
+
"publint:export": "check-export-map",
|
|
28
|
+
"test:ci": "vitest run --coverage",
|
|
29
|
+
"test:coverage": "yarn run test:ci && open ./coverage/index.html",
|
|
30
|
+
"test:watch": "vitest",
|
|
31
|
+
"typecheck": "tsc"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@repo/config": "workspace:*",
|
|
35
|
+
"@types/node": "^26.1.2",
|
|
36
|
+
"@vitest/coverage-istanbul": "^4.1.10",
|
|
37
|
+
"check-export-map": "^1.3.1",
|
|
38
|
+
"shx": "^0.4.0",
|
|
39
|
+
"tsdown": "^0.22.14",
|
|
40
|
+
"typescript-7": "npm:typescript@^7.0.2",
|
|
41
|
+
"vitest": "^4.1.10"
|
|
42
|
+
},
|
|
43
|
+
"author": "Wistia Engineering",
|
|
44
|
+
"license": "UNLICENSED",
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/wistia/vhs.git"
|
|
48
|
+
},
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/wistia/vhs/issues"
|
|
51
|
+
},
|
|
52
|
+
"homepage": "https://github.com/wistia/vhs#readme"
|
|
53
|
+
}
|