@finafrica/fin-ui 1.1.40

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 (59) hide show
  1. package/README.md +27 -0
  2. package/dist/components/Avatar/Avatar.d.ts +13 -0
  3. package/dist/components/Avatar/Avatar.stories.d.ts +16 -0
  4. package/dist/components/Badge/Badge.d.ts +12 -0
  5. package/dist/components/Badge/Badge.stories.d.ts +12 -0
  6. package/dist/components/Box/Box.d.ts +9 -0
  7. package/dist/components/Box/Box.stories.d.ts +10 -0
  8. package/dist/components/BreadCrumbs/BreadCrumbs.d.ts +11 -0
  9. package/dist/components/BreadCrumbs/BreadCrumbs.stories.d.ts +8 -0
  10. package/dist/components/Button/Button.d.ts +28 -0
  11. package/dist/components/Button/Button.stories.d.ts +21 -0
  12. package/dist/components/Calendar/Calendar.d.ts +4 -0
  13. package/dist/components/Calendar/Calendar.stories.d.ts +6 -0
  14. package/dist/components/Container/Container.d.ts +10 -0
  15. package/dist/components/Container/Container.stories.d.ts +9 -0
  16. package/dist/components/DatePicker/DatePicker.d.ts +9 -0
  17. package/dist/components/DatePicker/DatePicker.stories.d.ts +6 -0
  18. package/dist/components/Debug/Debug.d.ts +4 -0
  19. package/dist/components/Debug/Debug.stories.d.ts +6 -0
  20. package/dist/components/Dialog/Dialog.d.ts +31 -0
  21. package/dist/components/Divider/Divider.d.ts +4 -0
  22. package/dist/components/Divider/Divider.stories.d.ts +6 -0
  23. package/dist/components/Document/Document.d.ts +8 -0
  24. package/dist/components/Document/Document.stories.d.ts +11 -0
  25. package/dist/components/DropDown/DropDown.d.ts +32 -0
  26. package/dist/components/Flex/Flex.d.ts +16 -0
  27. package/dist/components/Image/Image.d.ts +11 -0
  28. package/dist/components/InfoCard/InfoCard.d.ts +8 -0
  29. package/dist/components/InfoCard/InfoCard.stories.d.ts +9 -0
  30. package/dist/components/Input/Input.d.ts +6 -0
  31. package/dist/components/Input/Input.stories.d.ts +16 -0
  32. package/dist/components/InputButton/InputButton.d.ts +8 -0
  33. package/dist/components/Logo/Logo.d.ts +4 -0
  34. package/dist/components/Menu/Menu.d.ts +19 -0
  35. package/dist/components/Menu/Menu.stories.d.ts +6 -0
  36. package/dist/components/NavLink/NavLink.d.ts +9 -0
  37. package/dist/components/ObjectViewer/ObjectViewer.d.ts +7 -0
  38. package/dist/components/Select/Select.d.ts +13 -0
  39. package/dist/components/Switch/Switch.d.ts +6 -0
  40. package/dist/components/Switch/Switch.stories.d.ts +27 -0
  41. package/dist/components/Table/Table.d.ts +23 -0
  42. package/dist/components/Table/Table.stories.d.ts +6 -0
  43. package/dist/components/Tabs/Tabs.d.ts +17 -0
  44. package/dist/components/Tabs/Tabs.stories.d.ts +6 -0
  45. package/dist/components/Text/Text.d.ts +18 -0
  46. package/dist/components/Text/Text.stories.d.ts +10 -0
  47. package/dist/components/TextArea/TextArea.d.ts +6 -0
  48. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  49. package/dist/components/Wrapper/Wrapper.d.ts +12 -0
  50. package/dist/components/index.d.ts +31 -0
  51. package/dist/index.d.ts +345 -0
  52. package/dist/index.esm.js +7 -0
  53. package/dist/index.esm.js.map +1 -0
  54. package/dist/index.js +7 -0
  55. package/dist/index.js.map +1 -0
  56. package/dist/lib/classnames.d.ts +2 -0
  57. package/dist/lib/index.d.ts +1 -0
  58. package/package.json +94 -0
  59. package/tailwind.config.js +96 -0
@@ -0,0 +1,2 @@
1
+ import { ArgumentArray } from 'classnames';
2
+ export declare const cn: (...args: ArgumentArray) => string;
@@ -0,0 +1 @@
1
+ export { cn } from './classnames';
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "@finafrica/fin-ui",
3
+ "version": "1.1.40",
4
+ "description": "Component library for Fin",
5
+ "author": {
6
+ "name": "Joseph Mukorivo",
7
+ "url": "https://josemukorivo.com"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/FinAfrica/ui.fin.africa"
12
+ },
13
+ "files": [
14
+ "tailwind.config.js",
15
+ "dist"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "main": "dist/index.js",
21
+ "module": "dist/index.esm.js",
22
+ "types": "dist/index.d.ts",
23
+ "keywords": [
24
+ "storybook",
25
+ "react",
26
+ "typescript"
27
+ ],
28
+ "license": "MIT",
29
+ "devDependencies": {
30
+ "@babel/core": "^7.12.9",
31
+ "@babel/preset-env": "^7.21.5",
32
+ "@babel/preset-react": "^7.18.6",
33
+ "@babel/preset-typescript": "^7.21.5",
34
+ "@rollup/plugin-commonjs": "^25.0.4",
35
+ "@rollup/plugin-node-resolve": "^15.2.1",
36
+ "@rollup/plugin-typescript": "^11.1.3",
37
+ "@storybook/addon-actions": "^7.4.0",
38
+ "@storybook/addon-essentials": "^7.4.0",
39
+ "@storybook/addon-interactions": "^7.4.0",
40
+ "@storybook/addon-links": "^7.4.0",
41
+ "@storybook/addon-mdx-gfm": "^7.4.0",
42
+ "@storybook/addon-onboarding": "^1.0.8",
43
+ "@storybook/addon-styling": "^1.3.7",
44
+ "@storybook/blocks": "^7.4.0",
45
+ "@storybook/manager-api": "^7.4.0",
46
+ "@storybook/nextjs": "^7.4.0",
47
+ "@storybook/react": "^7.4.0",
48
+ "@storybook/testing-library": "^0.2.0",
49
+ "@storybook/theming": "^7.4.0",
50
+ "@types/react": "^18.0.27",
51
+ "@types/react-dom": "^17.0.20",
52
+ "autoprefixer": "^10.4.15",
53
+ "babel-loader": "^8.2.2",
54
+ "classnames": "^2.3.2",
55
+ "next": "^14.2.3",
56
+ "postcss": "^8.4.29",
57
+ "react": "^18.3.1",
58
+ "react-dom": "^18.3.1",
59
+ "react-icons": "^4.11.0",
60
+ "rollup": "^3.29.0",
61
+ "rollup-plugin-dts": "^6.0.1",
62
+ "rollup-plugin-peer-deps-external": "^2.2.4",
63
+ "rollup-plugin-postcss": "^4.0.2",
64
+ "storybook": "^7.4.0",
65
+ "tailwindcss": "^3.3.3",
66
+ "tslib": "^2.6.2",
67
+ "typescript": "^5.0.4"
68
+ },
69
+ "peerDependencies": {
70
+ "next": "^14.2.3 || ^15.0.0 || ^16.0.0",
71
+ "react": "^18.2.0 || ^19.0.0",
72
+ "react-dom": "^18.2.0 || ^19.0.0"
73
+ },
74
+ "dependencies": {
75
+ "@radix-ui/react-dialog": "^1.0.4",
76
+ "@radix-ui/react-dropdown-menu": "^2.0.5",
77
+ "@radix-ui/react-popover": "^1.0.6",
78
+ "@radix-ui/react-switch": "^1.0.3",
79
+ "@radix-ui/react-tabs": "^1.0.4",
80
+ "@radix-ui/react-tooltip": "^1.0.6",
81
+ "@rollup/plugin-terser": "^0.4.3",
82
+ "cva": "npm:class-variance-authority@^0.7.0",
83
+ "date-fns": "^2.30.0",
84
+ "react-day-picker": "^8.8.1",
85
+ "react-select": "^5.7.4",
86
+ "tailwind-merge": "^1.14.0"
87
+ },
88
+ "scripts": {
89
+ "test": "echo \"Error: no test specified\" && exit 1",
90
+ "dev": "storybook dev -p 6006",
91
+ "build-storybook": "storybook build",
92
+ "build": "rollup -c"
93
+ }
94
+ }
@@ -0,0 +1,96 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ // darkMode: ['class', '[data-mode="dark"]'],
4
+ darkMode: 'class',
5
+ content: [
6
+ './app/**/*.{js,ts,jsx,tsx,mdx}',
7
+ './pages/**/*.{js,ts,jsx,tsx,mdx}',
8
+ './components/**/*.{js,ts,jsx,tsx,mdx}',
9
+ './src/**/*.{js,ts,jsx,tsx,mdx}',
10
+ ],
11
+ theme: {
12
+ fontFamily: {
13
+ mono: "'Fira Code', monospace;",
14
+ },
15
+ colors: {
16
+ white: '#ffffff',
17
+ black: '#000000',
18
+ transparent: 'transparent',
19
+ current: 'currentColor',
20
+ primary: {
21
+ DEFAULT: '#1CD97E',
22
+ 50: '#B7F6D7',
23
+ 100: '#4AE89C',
24
+ 200: '#1CD97E',
25
+ 300: '#15A25E',
26
+ },
27
+ secondary: {
28
+ DEFAULT: '#0f172a',
29
+ 50: '#767683',
30
+ 100: '#474758',
31
+ 200: '#42526E',
32
+ 300: '#1e293b',
33
+ },
34
+ danger: {
35
+ DEFAULT: '#dc2626',
36
+ 50: '#fee2e2',
37
+ 100: '#fecaca',
38
+ 200: '#fca5a5',
39
+ 300: '#b91c1c',
40
+ },
41
+ warning: {
42
+ DEFAULT: '#FF801C',
43
+ 50: '#FFEED6',
44
+ 100: '#FFD599',
45
+ 200: '#FFC370',
46
+ 300: '#f97316',
47
+ },
48
+ success: {
49
+ DEFAULT: '#71CC98',
50
+ 50: '#E4F2E7',
51
+ 100: '#A5D7B7',
52
+ 200: '#91CFAA',
53
+ 300: '#84CBA2',
54
+ },
55
+ info: {
56
+ DEFAULT: '#33A1FD',
57
+ 50: '#D7EDFF',
58
+ 100: '#B1DCFB',
59
+ 200: '#9AD1FE',
60
+ 300: '#0ea5e9',
61
+ },
62
+ tertiary: {
63
+ DEFAULT: '#F4F7FA',
64
+ 50: '#DFE1E7',
65
+ 100: '#B3BAC5',
66
+ 200: '#9ca3af',
67
+ 300: '#6b7280',
68
+ },
69
+ blue: {
70
+ dark: '#1e293b',
71
+ darker: '#0f172a',
72
+ light: '#19BFD3',
73
+ },
74
+ gray: {
75
+ 50: '#F4F7FA',
76
+ 100: '#DFE1E7',
77
+ 200: '#B3BAC5',
78
+ 300: '#42526E',
79
+ 400: '#091E42',
80
+ background: '#D9D9D933',
81
+ light: '#85858580',
82
+ dark: '#333333',
83
+ label: '#858585',
84
+ },
85
+ },
86
+ extend: {
87
+ theme: {
88
+ extend: {
89
+ screens: {
90
+ '3xl': '1900px',
91
+ },
92
+ },
93
+ },
94
+ },
95
+ },
96
+ };