@rfdtech/components 1.0.2 → 1.4.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 (34) hide show
  1. package/README.md +23 -6
  2. package/dist/components/app-switcher/AppSwitcher.d.ts +0 -1
  3. package/dist/components/app-switcher/AppSwitcher.d.ts.map +1 -1
  4. package/dist/components/app-switcher/AppSwitcherItem.d.ts.map +1 -1
  5. package/dist/components/app-switcher/hooks/useAppSwitcher.d.ts.map +1 -1
  6. package/dist/components/bulk-import-modal/BulkImportModal.d.ts +1 -2
  7. package/dist/components/bulk-import-modal/BulkImportModal.d.ts.map +1 -1
  8. package/dist/components/bulk-import-modal/{components → internal}/FieldMappingSelect.d.ts +5 -5
  9. package/dist/components/bulk-import-modal/internal/FieldMappingSelect.d.ts.map +1 -0
  10. package/dist/components/bulk-import-modal/steps/MatchColumnsStep.d.ts.map +1 -1
  11. package/dist/components/bulk-import-modal/steps/SelectHeaderRowStep.d.ts.map +1 -1
  12. package/dist/components/theme/ThemeContext.d.ts +3 -0
  13. package/dist/components/theme/ThemeContext.d.ts.map +1 -0
  14. package/dist/components/theme/ThemeProvider.d.ts +3 -0
  15. package/dist/components/theme/ThemeProvider.d.ts.map +1 -0
  16. package/dist/components/theme/ThemeProvider.test.d.ts +2 -0
  17. package/dist/components/theme/ThemeProvider.test.d.ts.map +1 -0
  18. package/dist/components/theme/index.d.ts +4 -0
  19. package/dist/components/theme/index.d.ts.map +1 -0
  20. package/dist/components/theme/resolveTheme.d.ts +3 -0
  21. package/dist/components/theme/resolveTheme.d.ts.map +1 -0
  22. package/dist/components/theme/useTheme.d.ts +3 -0
  23. package/dist/components/theme/useTheme.d.ts.map +1 -0
  24. package/dist/index.cjs +28 -28
  25. package/dist/index.css +1 -1
  26. package/dist/index.d.ts +2 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +4747 -4822
  29. package/dist/types/theme.d.ts +18 -0
  30. package/dist/types/theme.d.ts.map +1 -0
  31. package/package.json +23 -4
  32. package/dist/components/bulk-import-modal/components/FieldMappingSelect.d.ts.map +0 -1
  33. package/dist/components/bulk-import-modal/components/FieldMappingSelect.test.d.ts +0 -2
  34. package/dist/components/bulk-import-modal/components/FieldMappingSelect.test.d.ts.map +0 -1
@@ -0,0 +1,18 @@
1
+ import type { CSSProperties, ReactNode } from "react";
2
+ export type GslTheme = "light" | "dark" | "system";
3
+ export type ResolvedGslTheme = "light" | "dark";
4
+ export interface ThemeProviderProps {
5
+ theme?: GslTheme;
6
+ defaultTheme?: GslTheme;
7
+ onThemeChange?: (theme: GslTheme) => void;
8
+ className?: string;
9
+ style?: CSSProperties;
10
+ children: ReactNode;
11
+ }
12
+ export interface ThemeContextValue {
13
+ theme: GslTheme;
14
+ setTheme: (theme: GslTheme) => void;
15
+ resolvedTheme: ResolvedGslTheme;
16
+ }
17
+ export type UseThemeReturn = ThemeContextValue;
18
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/types/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnD,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEhD,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,QAAQ,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,gBAAgB,CAAC;CACjC;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@rfdtech/components",
3
- "version": "1.0.2",
3
+ "version": "1.4.0",
4
4
  "description": "Shared React component library for Ghana School of Law (GSL) projects",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
- "sideEffects": ["**/*.css", "./dist/index.css"],
9
+ "sideEffects": [
10
+ "**/*.css",
11
+ "./dist/index.css"
12
+ ],
10
13
  "exports": {
11
14
  ".": {
12
15
  "import": {
@@ -46,6 +49,10 @@
46
49
  "react-dom": ">=18.0.0"
47
50
  },
48
51
  "devDependencies": {
52
+ "@fontsource-variable/geist": "^5.2.9",
53
+ "@fontsource-variable/geist-mono": "^5.2.8",
54
+ "@mdx-js/react": "^3.1.1",
55
+ "@mdx-js/rollup": "^3.1.1",
49
56
  "@testing-library/jest-dom": "^6.9.1",
50
57
  "@testing-library/react": "^16.3.2",
51
58
  "@testing-library/user-event": "^14.6.1",
@@ -53,8 +60,12 @@
53
60
  "@types/react-dom": "^19.1.6",
54
61
  "@vitejs/plugin-react": "^4.6.0",
55
62
  "jsdom": "^29.1.1",
56
- "react": "^19.1.0",
57
- "react-dom": "^19.1.0",
63
+ "react": "^19.2.7",
64
+ "react-dom": "^19.2.7",
65
+ "react-router-dom": "^7.17.0",
66
+ "rehype-pretty-code": "^0.14.3",
67
+ "remark-gfm": "^4.0.1",
68
+ "shiki": "^4.2.0",
58
69
  "typescript": "^5.8.3",
59
70
  "vite": "^6.3.5",
60
71
  "vite-plugin-dts": "^4.5.4",
@@ -72,7 +83,15 @@
72
83
  "product-switcher"
73
84
  ],
74
85
  "license": "MIT",
86
+ "publishConfig": {
87
+ "access": "public"
88
+ },
75
89
  "dependencies": {
90
+ "@radix-ui/react-alert-dialog": "^1.1.16",
91
+ "@radix-ui/react-dialog": "^1.1.16",
92
+ "@radix-ui/react-popover": "^1.1.16",
93
+ "@radix-ui/react-radio-group": "^1.4.0",
94
+ "@radix-ui/react-select": "^2.3.0",
76
95
  "xlsx": "^0.18.5"
77
96
  }
78
97
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"FieldMappingSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/bulk-import-modal/components/FieldMappingSelect.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC1C;AAWD,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,WAAgC,EAChC,KAAK,EACL,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,QAAQ,GACT,EAAE,uBAAuB,+BAqKzB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=FieldMappingSelect.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FieldMappingSelect.test.d.ts","sourceRoot":"","sources":["../../../../src/components/bulk-import-modal/components/FieldMappingSelect.test.tsx"],"names":[],"mappings":""}