@simpli-route/apollo-ds 0.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.
Files changed (45) hide show
  1. package/README.md +50 -0
  2. package/dist/components/Button/Button.d.ts +7 -0
  3. package/dist/components/Button/Button.test.d.ts +1 -0
  4. package/dist/components/Button/index.d.ts +2 -0
  5. package/dist/components/Button/types.d.ts +62 -0
  6. package/dist/components/Button/variants.d.ts +10 -0
  7. package/dist/components/Loader/Loader.d.ts +6 -0
  8. package/dist/components/Loader/index.d.ts +2 -0
  9. package/dist/components/index.d.ts +2 -0
  10. package/dist/index.cjs.js +1 -0
  11. package/dist/index.cjs10.js +1 -0
  12. package/dist/index.cjs11.js +1 -0
  13. package/dist/index.cjs2.js +1 -0
  14. package/dist/index.cjs3.js +1 -0
  15. package/dist/index.cjs4.js +1 -0
  16. package/dist/index.cjs5.js +1 -0
  17. package/dist/index.cjs6.js +1 -0
  18. package/dist/index.cjs7.js +1 -0
  19. package/dist/index.cjs8.js +9 -0
  20. package/dist/index.cjs9.js +19 -0
  21. package/dist/index.css +9 -0
  22. package/dist/index.d.ts +1 -0
  23. package/dist/index.es.js +8 -0
  24. package/dist/index.es10.js +4 -0
  25. package/dist/index.es11.js +4 -0
  26. package/dist/index.es2.js +81 -0
  27. package/dist/index.es3.js +8 -0
  28. package/dist/index.es4.js +8 -0
  29. package/dist/index.es5.js +147 -0
  30. package/dist/index.es6.js +52 -0
  31. package/dist/index.es7.js +4 -0
  32. package/dist/index.es8.js +32 -0
  33. package/dist/index.es9.js +601 -0
  34. package/dist/stories/Button.stories.d.ts +47 -0
  35. package/dist/style.css +1110 -0
  36. package/dist/testing/setupTests.d.ts +1 -0
  37. package/dist/testing/tests/checkAccessibility.d.ts +7 -0
  38. package/dist/testing/tests/index.d.ts +5 -0
  39. package/dist/testing/tests/itRendersChildren.d.ts +5 -0
  40. package/dist/testing/tests/itSupportsClassName.d.ts +5 -0
  41. package/dist/testing/tests/itSupportsFocusEvents.d.ts +6 -0
  42. package/dist/testing/tests/triggerPress.d.ts +4 -0
  43. package/dist/utils/index.d.ts +3 -0
  44. package/dist/vite.svg +1 -0
  45. package/package.json +84 -0
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+
3
+ /**
4
+ * @description This checks for any accessibility violations in the given elements.
5
+ *
6
+ */
7
+ export declare function checkAccessibility(elements: React.ReactElement[]): void;
@@ -0,0 +1,5 @@
1
+ export * from './checkAccessibility';
2
+ export * from './itRendersChildren';
3
+ export * from './itSupportsClassName';
4
+ export * from './itSupportsFocusEvents';
5
+ export * from './triggerPress';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @description This checks if the component renders children correctly.
3
+ *
4
+ */
5
+ export declare function itRendersChildren<P>(Component: React.ComponentType<P>, requiredProps: P): void;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @description This checks if the component renders with the given custom classes.
3
+ *
4
+ */
5
+ export declare function itSupportsClassName<P>(Component: React.ComponentType<P>, requiredProps: P, className: string): void;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare function itSupportsFocusEvents<P>(Component: React.ComponentType<P>, requiredProps: P, selector: string, skips?: {
4
+ skipFocus?: boolean;
5
+ skipBlur?: boolean;
6
+ }): void;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @description Triggers a press event on an element
3
+ */
4
+ export declare function triggerPress(element: HTMLElement): void;
@@ -0,0 +1,3 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ export declare function cn(...inputs: ClassValue[]): string;
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json ADDED
@@ -0,0 +1,84 @@
1
+ {
2
+ "name": "@simpli-route/apollo-ds",
3
+ "version": "0.0.2",
4
+ "type": "module",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.es.js",
10
+ "types": "dist/index.d.ts",
11
+ "scripts": {
12
+ "dev": "vite",
13
+ "build": "tsc && vite build && pnpm build:styles && pnpm tailwind-config",
14
+ "tailwind-config": "cp ./src/index.css ./dist",
15
+ "build:styles": "postcss ./src/index.css -o ./dist/style.css",
16
+ "lint": "eslint ./src --ext ts,tsx",
17
+ "check-types": "tsc",
18
+ "preview": "vite preview",
19
+ "test": "vitest",
20
+ "coverage": "vitest run --coverage",
21
+ "format": "npx prettier ./src --write",
22
+ "storybook": "storybook dev -p 6006",
23
+ "build-storybook": "storybook build"
24
+ },
25
+ "peerDependencies": {
26
+ "react": "^18.2.0",
27
+ "react-dom": "^18.2.0"
28
+ },
29
+ "dependencies": {
30
+ "@simpli-route/react-icons": "^1.0.9",
31
+ "@simpli-route/tailwind-preset": "^0.0.1",
32
+ "class-variance-authority": "^0.7.0",
33
+ "clsx": "^2.1.0",
34
+ "react-aria": "^3.32.1",
35
+ "react-aria-components": "^1.1.1",
36
+ "tailwind-merge": "^2.2.2"
37
+ },
38
+ "devDependencies": {
39
+ "@chromatic-com/storybook": "^1.3.1",
40
+ "@storybook/addon-essentials": "^8.0.6",
41
+ "@storybook/addon-interactions": "^8.0.6",
42
+ "@storybook/addon-links": "^8.0.6",
43
+ "@storybook/addon-onboarding": "^8.0.6",
44
+ "@storybook/blocks": "^8.0.6",
45
+ "@storybook/react": "^8.0.6",
46
+ "@storybook/react-vite": "^8.0.6",
47
+ "@storybook/test": "^8.0.6",
48
+ "@tailwindcss/forms": "^0.5.7",
49
+ "@testing-library/jest-dom": "^6.4.2",
50
+ "@testing-library/react": "^15.0.2",
51
+ "@types/react": "^18.2.66",
52
+ "@types/react-dom": "^18.2.22",
53
+ "@typescript-eslint/eslint-plugin": "^7.6.0",
54
+ "@typescript-eslint/parser": "^7.6.0",
55
+ "@vitejs/plugin-react": "^4.2.1",
56
+ "autoprefixer": "^10.4.19",
57
+ "eslint": "^8.57.0",
58
+ "eslint-config-prettier": "^9.1.0",
59
+ "eslint-plugin-import": "^2.29.1",
60
+ "eslint-plugin-jsx-a11y": "^6.8.0",
61
+ "eslint-plugin-prettier": "^5.1.3",
62
+ "eslint-plugin-react": "^7.34.1",
63
+ "eslint-plugin-react-hooks": "^4.6.0",
64
+ "eslint-plugin-react-refresh": "^0.4.6",
65
+ "eslint-plugin-simple-import-sort": "^12.1.0",
66
+ "eslint-plugin-storybook": "^0.8.0",
67
+ "eslint-plugin-tailwindcss": "^3.15.1",
68
+ "eslint-plugin-testing-library": "^6.2.2",
69
+ "jsdom": "^24.0.0",
70
+ "postcss": "^8.4.38",
71
+ "postcss-cli": "^11.0.0",
72
+ "prettier": "^3.2.5",
73
+ "prettier-plugin-tailwindcss": "^0.5.14",
74
+ "storybook": "^8.0.6",
75
+ "tailwindcss": "^3.4.3",
76
+ "tailwindcss-animate": "^1.0.7",
77
+ "typescript": "^5.2.2",
78
+ "vite": "^5.2.0",
79
+ "vite-plugin-dts": "^3.8.3",
80
+ "vitest": "^1.5.0",
81
+ "vitest-axe": "^0.1.0",
82
+ "vitest-canvas-mock": "^0.3.3"
83
+ }
84
+ }