@companycam/slab-web 0.0.21 → 0.0.23-beta.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.
Files changed (35) hide show
  1. package/README.md +7 -0
  2. package/index.esm.d.ts +1 -0
  3. package/index.esm.js +1 -0
  4. package/package.json +5 -59
  5. package/src/index.d.ts +1 -0
  6. package/src/lib/ScreenReaderContent.d.ts +6 -0
  7. package/dist/bundle.js +0 -1436
  8. package/shared/index.js +0 -13
  9. package/shared/legacyStyles.js +0 -78
  10. package/shared/package.json +0 -3
  11. package/shared/styles.js +0 -40
  12. package/shared/theming/CCThemeProvider.js +0 -22
  13. package/shared/theming/CCThemeProvider.native.js +0 -22
  14. package/shared/theming/themes/base.js +0 -42
  15. package/shared/theming/themes/dark_environment.js +0 -57
  16. package/shared/theming/themes/light_environment.js +0 -57
  17. package/shared/theming/useCCTheme.js +0 -16
  18. package/shared/theming/utils.js +0 -23
  19. package/shared/theming/withTheme.js +0 -29
  20. package/shared/tokens/build/css/base.css +0 -324
  21. package/shared/tokens/build/css/dark_environment.css +0 -334
  22. package/shared/tokens/build/css/light_environment.css +0 -334
  23. package/shared/tokens/build/docs/token_docs.js +0 -1015
  24. package/shared/tokens/build/js/tokens.js +0 -126
  25. package/shared/tokens/build/json/tokens.json +0 -123
  26. package/shared/tokens/build/scss/tokens.scss +0 -125
  27. package/shared/tokens/config.js +0 -231
  28. package/shared/tokens/properties/color.json +0 -344
  29. package/shared/tokens/properties/size.json +0 -113
  30. package/web/components/Icon/Icon.jsx +0 -92
  31. package/web/components/Icon/index.js +0 -3
  32. package/web/components/Icon/names.js +0 -3
  33. package/web/components/Icon/utils.js +0 -12
  34. package/web/components/index.js +0 -3
  35. package/web/index.js +0 -6
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # slab-web
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test slab-web` to execute the unit tests via [Jest](https://jestjs.io).
package/index.esm.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./src/index";
package/index.esm.js ADDED
@@ -0,0 +1 @@
1
+ import 'react/jsx-runtime';
package/package.json CHANGED
@@ -1,61 +1,7 @@
1
1
  {
2
2
  "name": "@companycam/slab-web",
3
- "version": "0.0.21",
4
- "description": "Design System for use across CompanyCam web applications",
5
- "main": "web/index.js",
6
- "module": "dist/bundle.js",
7
- "scripts": {
8
- "release": "yarn clean && yarn copy-source && yarn build && yarn bump-version && yarn publish-latest",
9
- "bump-version": "yarn version --patch",
10
- "publish-latest": "yarn publish . --tag latest && git push",
11
- "copy-source": "cp -r ../src/shared ./ && cp -r ../src/web ./",
12
- "build": "yarn build:tokens && rollup --config ./rollup.config.js",
13
- "build:tokens": "style-dictionary build --config ./shared/tokens/config.js",
14
- "clean": "rimraf ./dist/* && rimraf ./web/* && rimraf ./shared/*"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "git+https://github.com/CompanyCam/slab.git"
19
- },
20
- "author": "",
21
- "license": "ISC",
22
- "bugs": {
23
- "url": "https://github.com/CompanyCam/slab/issues"
24
- },
25
- "homepage": "https://github.com/CompanyCam/slab#readme",
26
- "dependencies": {
27
- "@companycam/companycam-colors": "^1.6.0",
28
- "@mdi/js": "^6.6.96",
29
- "@mdi/react": "^1.6.0",
30
- "deepmerge": "4.2.2",
31
- "hoist-non-react-statics": "^3.3.2",
32
- "polished": "^4.1.3",
33
- "react-is": "^16.8.0",
34
- "styled-components": "^5.1.1"
35
- },
36
- "files": [
37
- "dist",
38
- "shared",
39
- "web"
40
- ],
41
- "devDependencies": {
42
- "@babel/core": "7.17.9",
43
- "@babel/plugin-transform-runtime": "^7.17.0",
44
- "@babel/preset-env": "7.16.11",
45
- "@babel/preset-react": "7.16.7",
46
- "@babel/runtime": "^7.17.9",
47
- "@rollup/plugin-alias": "^3.1.9",
48
- "@rollup/plugin-babel": "^5.3.1",
49
- "@rollup/plugin-commonjs": "^21.1.0",
50
- "@rollup/plugin-json": "^4.1.0",
51
- "@rollup/plugin-node-resolve": "^13.2.1",
52
- "react-dom": "17.0.2",
53
- "rimraf": "^3.0.2",
54
- "rollup": "^2.70.2",
55
- "style-dictionary": "3.0.3"
56
- },
57
- "peerDependencies": {
58
- "prop-types": ">= 15",
59
- "react": ">= 16"
60
- }
61
- }
3
+ "version": "0.0.23-beta.0",
4
+ "module": "./index.esm.js",
5
+ "type": "module",
6
+ "main": "./index.esm.js"
7
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './lib/ScreenReaderContent';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface ScreenReaderContentProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare const ScreenReaderContent: ({ children }: ScreenReaderContentProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default ScreenReaderContent;