tinywidgets 1.0.0 → 1.0.2

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/bun.lockb CHANGED
Binary file
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "tinywidgets",
3
3
  "description": "A collection of tiny, reusable, React components",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "scripts": {
6
- "prePublishPackage": "eslint . && tsc"
6
+ "prePublishPackage": "eslint . && cspell --quiet . && tsc"
7
7
  },
8
8
  "author": "jamesgpearce",
9
9
  "repository": "github:tinyplex/tinywidgets",
@@ -13,6 +13,7 @@
13
13
  "@types/react-dom": "^18.3.0",
14
14
  "@typescript-eslint/eslint-plugin": "^8.7.0",
15
15
  "@typescript-eslint/parser": "^8.7.0",
16
+ "cspell": "^8.14.4",
16
17
  "eslint": "^8.57.0",
17
18
  "eslint-config-prettier": "^9.1.0",
18
19
  "eslint-plugin-react": "^7.36.1",
@@ -3,13 +3,11 @@ import 'prismjs';
3
3
  import 'prismjs/components/prism-jsx';
4
4
  import 'prismjs/components/prism-typescript';
5
5
  import 'prismjs/components/prism-tsx';
6
- import Prism from 'prismjs';
6
+ import {highlight, languages} from 'prismjs';
7
7
  import React from 'react';
8
8
  import {classNames} from '../../common/functions.tsx';
9
9
  import {pre} from './index.css.ts';
10
10
 
11
- const {highlight, languages} = Prism;
12
-
13
11
  /**
14
12
  * The `Code` component displays a block of pre-formatted code, and uses PrismJS
15
13
  * to parse its syntax. The coloring is based on the [prism-one-dark](https://github.com/PrismJS/prism-themes/blob/master/themes/prism-one-dark.css) and [prism-one-light](https://github.com/PrismJS/prism-themes/blob/master/themes/prism-one-light.css) themes.
@@ -20,7 +20,6 @@ export const tagVariants = styleVariants({
20
20
  accent: {
21
21
  backgroundColor: colors.accent,
22
22
  color: colors.accentContrast,
23
- boxShadow: colors.shadow,
24
23
  },
25
24
  });
26
25
 
package/src/index.css.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import './css/global.css.ts';
2
+
1
3
  export {colors} from './css/colors.css.ts';
2
4
  export {code} from './css/code.css.ts';
3
5
  export {dimensions} from './css/dimensions.css.ts';
package/src/index.ts CHANGED
@@ -1,5 +1,3 @@
1
- import './css/global.css.ts';
2
-
3
1
  export {App} from './components/App/index.tsx';
4
2
  export {Button} from './components/Button/index.tsx';
5
3
  export {Card} from './components/Card/index.tsx';