@risalabs_frontend_org/oasis-ui-kit 0.1.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 (65) hide show
  1. package/README.md +25 -0
  2. package/dist/index.d.ts +31 -0
  3. package/dist/index.js +2 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/library/colors.scss +136 -0
  6. package/dist/library/globalStyles.scss +22 -0
  7. package/dist/library/globalVarialbes.scss +16 -0
  8. package/dist/library/library.scss +2 -0
  9. package/dist/library/mixins.scss +895 -0
  10. package/dist/src/SVG/ChevronDown.d.ts +6 -0
  11. package/dist/src/SVG/arrow-upward.d.ts +2 -0
  12. package/dist/src/SVG/black-eye-stroke.d.ts +2 -0
  13. package/dist/src/SVG/black-eye.d.ts +3 -0
  14. package/dist/src/SVG/calendar-icon.d.ts +3 -0
  15. package/dist/src/SVG/close-red.d.ts +2 -0
  16. package/dist/src/SVG/close.d.ts +3 -0
  17. package/dist/src/SVG/dashed-vertical-line.d.ts +2 -0
  18. package/dist/src/SVG/delete-bin.d.ts +2 -0
  19. package/dist/src/SVG/down-arrow.d.ts +3 -0
  20. package/dist/src/SVG/error-for-toast.d.ts +2 -0
  21. package/dist/src/SVG/green-cross.d.ts +2 -0
  22. package/dist/src/SVG/infoIcon.d.ts +8 -0
  23. package/dist/src/SVG/left-chevron.d.ts +8 -0
  24. package/dist/src/SVG/red-bin.d.ts +2 -0
  25. package/dist/src/SVG/red-cross.d.ts +2 -0
  26. package/dist/src/SVG/right-chevron.d.ts +8 -0
  27. package/dist/src/SVG/tick-for-toast.d.ts +2 -0
  28. package/dist/src/SVG/tick-with-green-bg.d.ts +2 -0
  29. package/dist/src/SVG/tick.d.ts +3 -0
  30. package/dist/src/SVG/up-arrow.d.ts +3 -0
  31. package/dist/src/SVG/uploaded-doc.d.ts +2 -0
  32. package/dist/src/SVG/warning-icon.d.ts +3 -0
  33. package/dist/src/components/ButtonWithDropdown/ButtonWithDropdown.d.ts +16 -0
  34. package/dist/src/components/ButtonWithDropdown/MenuItem.d.ts +15 -0
  35. package/dist/src/components/DatePicker/DatePicker.d.ts +8 -0
  36. package/dist/src/components/DateRangeCalendar/DateRangeCalendar.d.ts +10 -0
  37. package/dist/src/components/button/button.d.ts +11 -0
  38. package/dist/src/components/check-box/check-box.d.ts +14 -0
  39. package/dist/src/components/date-input/date-input.d.ts +25 -0
  40. package/dist/src/components/file-upload/file-upload.d.ts +11 -0
  41. package/dist/src/components/footer/footer.d.ts +13 -0
  42. package/dist/src/components/header-card/header-card.d.ts +10 -0
  43. package/dist/src/components/info-icon/info-icon.d.ts +12 -0
  44. package/dist/src/components/modal/modal.d.ts +21 -0
  45. package/dist/src/components/notification-card/notification-card.d.ts +15 -0
  46. package/dist/src/components/pagination/index.d.ts +1 -0
  47. package/dist/src/components/pagination/pagination.d.ts +12 -0
  48. package/dist/src/components/progress-loader-with-text/progress-loader-with-text.d.ts +8 -0
  49. package/dist/src/components/search/search.d.ts +9 -0
  50. package/dist/src/components/select/select.d.ts +26 -0
  51. package/dist/src/components/side-navigation/side-navigation.d.ts +10 -0
  52. package/dist/src/components/side-navigation/single-side-nav.d.ts +8 -0
  53. package/dist/src/components/spinning-loader/spinning-loader.d.ts +3 -0
  54. package/dist/src/components/status-text/status-text.d.ts +7 -0
  55. package/dist/src/components/stepper/stepper.d.ts +11 -0
  56. package/dist/src/components/tab/single-tab.d.ts +9 -0
  57. package/dist/src/components/tab/tab-container.d.ts +10 -0
  58. package/dist/src/components/text-input/text-input.d.ts +36 -0
  59. package/dist/src/components/time-due/time-due.d.ts +6 -0
  60. package/dist/src/components/toast/toast.d.ts +12 -0
  61. package/dist/src/components/toggle/toggle.d.ts +14 -0
  62. package/dist/src/components/toggle-switch/toggle-switch.d.ts +13 -0
  63. package/dist/src/components/uploaded-file-banner/uploaded-file-banner.d.ts +9 -0
  64. package/dist/src/shared/types.d.ts +160 -0
  65. package/package.json +82 -0
@@ -0,0 +1,160 @@
1
+ export declare enum productWidgetColors {
2
+ blue = "#2e3a8c#ffffff",
3
+ green = "#3B755F#ffffff",
4
+ beige = "#F2EBDB#3B755F",
5
+ white = "#ffffff#3B755F",
6
+ black = "#000000#ffffff"
7
+ }
8
+ export type WidgetType = "carbon" | "plastic bottles" | "trees";
9
+ export declare const WidgetTypeDict: {
10
+ carbon: string;
11
+ "plastic bottles": string;
12
+ trees: string;
13
+ };
14
+ export type productWidgetActions = "collects" | "plants" | "offsets";
15
+ export interface IProductWidget {
16
+ readonly id: number;
17
+ readonly type: WidgetType;
18
+ readonly action: productWidgetActions;
19
+ readonly amount: number;
20
+ active: boolean;
21
+ linked: boolean;
22
+ selectedColor: productWidgetColors;
23
+ }
24
+ export interface IProductWidgetProps extends IProductWidget {
25
+ availableColors: string[];
26
+ handleCheckboxClick: (e: any) => void;
27
+ handleSwitchClick: (e: any) => void;
28
+ handleColorClick: (e: any, color: string) => void;
29
+ handleOnMouseEnter: (e: any) => void;
30
+ handleInfoMarkFocus: (e: any) => void;
31
+ handleInfoMarkBlur: (e: any) => void;
32
+ }
33
+ export declare enum Colors {
34
+ primaryGreen1 = "#003d15",
35
+ primaryGreen2 = "#00521d",
36
+ primaryGreen3 = "#007028",
37
+ primaryGreen4 = "#008f32",
38
+ primaryGreen5 = "#1db954",
39
+ primaryGreen6 = "#20cb5c",
40
+ primaryGreen7 = "#2cdd80",
41
+ primaryGreen8 = "#58e49b",
42
+ primaryGreen9 = "#84ebb5",
43
+ primaryGreen10 = "#caf6df",
44
+ primaryGreen11 = "#eefcf4",
45
+ primaryGray1 = "#0f0f0f",
46
+ primaryGray2 = "#1f1f1f",
47
+ primaryGray3 = "#2e2e2e",
48
+ primaryGray4 = "#3d3d3d",
49
+ primaryGray5 = "#4d4d4d",
50
+ primaryGray6 = "#5c5c5c",
51
+ primaryGray7 = "#6b6b6b",
52
+ primaryGray8 = "#7a7a7a",
53
+ primaryGray9 = "#8a8a8a",
54
+ primaryGray10 = "#999999",
55
+ primaryGray11 = "#a8a8a8",
56
+ primaryGray12 = "#b8b8b8",
57
+ primaryGray13 = "#c7c7c7",
58
+ primaryGray14 = "#d6d6d6",
59
+ primaryGray15 = "#e6e6e6",
60
+ primaryGray16 = "#f5f5f5",
61
+ white = "#ffffff",
62
+ black = "#000000",
63
+ secondaryPurple1 = "#1a004d",
64
+ secondaryPurple2 = "#220066",
65
+ secondaryPurple3 = "#330099",
66
+ secondaryPurple4 = "#4b00cc",
67
+ secondaryPurple5 = "#661aff",
68
+ secondaryPurple6 = "#7e33ff",
69
+ secondaryPurple7 = "#9e66ff",
70
+ secondaryPurple8 = "#c599ff",
71
+ secondaryPurple9 = "#e7ccff",
72
+ secondaryPurple10 = "#f6e5ff",
73
+ secondaryYellow1 = "#474100",
74
+ secondaryYellow2 = "#665e00",
75
+ secondaryYellow3 = "#857a00",
76
+ secondaryYellow4 = "#a39600",
77
+ secondaryYellow5 = "#c2b200",
78
+ secondaryYellow6 = "#e0ce00",
79
+ secondaryYellow7 = "#fae500",
80
+ secondaryYellow8 = "#ffef3d",
81
+ secondaryYellow9 = "#fff370",
82
+ secondaryYellow10 = "#fff8ad",
83
+ secondaryYellow11 = "#fffcd6",
84
+ secondaryOrange1 = "#8f3200",
85
+ secondaryOrange2 = "#c24400",
86
+ secondaryOrange3 = "#e65100",
87
+ secondaryOrange4 = "#ef6c00",
88
+ secondaryOrange5 = "#f57c00",
89
+ secondaryOrange6 = "#fb8c00",
90
+ secondaryOrange7 = "#ff9800",
91
+ secondaryOrange8 = "#ffa726",
92
+ secondaryOrange9 = "#ffb74d",
93
+ secondaryOrange10 = "#ffcc80",
94
+ secondaryOrange11 = "#ffe0b2",
95
+ secondaryOrange12 = "#fff3e0",
96
+ tertiaryRed1 = "#7b0300",
97
+ tertiaryRed2 = "#a3000e",
98
+ tertiaryRed3 = "#cc0300",
99
+ tertiaryRed4 = "#f50400",
100
+ tertiaryRed5 = "#ff332e",
101
+ tertiaryRed6 = "#ff5452",
102
+ tertiaryRed7 = "#ff7370",
103
+ tertiaryRed8 = "#ff9999",
104
+ tertiaryRed9 = "#ffbdbd",
105
+ tertiaryRed10 = "#ffd6d6",
106
+ tertiaryRed11 = "#ffe8e8",
107
+ tertiaryMagenta1 = "#5c0048",
108
+ tertiaryMagenta2 = "#7a005f",
109
+ tertiaryMagenta3 = "#990077",
110
+ tertiaryMagenta4 = "#c20097",
111
+ tertiaryMagenta5 = "#e000af",
112
+ tertiaryMagenta6 = "#ff1fce",
113
+ tertiaryMagenta7 = "#ff47d7",
114
+ tertiaryMagenta8 = "#ff70e2",
115
+ tertiaryMagenta9 = "#ff99eb",
116
+ tertiaryMagenta10 = "#ffb8f1",
117
+ tertiaryMagenta11 = "#ffd6f7",
118
+ tertiaryMagenta12 = "#ffebfb",
119
+ tertiaryCyan1 = "#002929",
120
+ tertiaryCyan2 = "#003d3d",
121
+ tertiaryCyan3 = "#005c5c",
122
+ tertiaryCyan4 = "#007a7a",
123
+ tertiaryCyan5 = "#008f8f",
124
+ tertiaryCyan6 = "#00b8b8",
125
+ tertiaryCyan7 = "#00e0e0",
126
+ tertiaryCyan8 = "#33ffff",
127
+ tertiaryCyan9 = "#70ffff",
128
+ tertiaryCyan10 = "#adffff",
129
+ tertiaryCyan11 = "#d6ffff",
130
+ tertiaryCyan12 = "#ebffff",
131
+ tertiaryLime1 = "#2a3d00",
132
+ tertiaryLime2 = "#375200",
133
+ tertiaryLime3 = "#537a00",
134
+ tertiaryLime4 = "#618f00",
135
+ tertiaryLime5 = "#7db800",
136
+ tertiaryLime6 = "#9feb00",
137
+ tertiaryLime7 = "#acff00",
138
+ tertiaryLime8 = "#c1ff3d",
139
+ tertiaryLime9 = "#d1ff70",
140
+ tertiaryLime10 = "#e5ffad",
141
+ tertiaryLime11 = "#f3ffd6",
142
+ tertiaryBlue1 = "#002152",
143
+ tertiaryBlue2 = "#00317a",
144
+ tertiaryBlue3 = "#0041a3",
145
+ tertiaryBlue4 = "#0056d6",
146
+ tertiaryBlue5 = "#0066ff",
147
+ tertiaryBlue6 = "#297fff",
148
+ tertiaryBlue7 = "#5297ff",
149
+ tertiaryBlue8 = "#7aafff",
150
+ tertiaryBlue9 = "#99c2ff",
151
+ tertiaryBlue10 = "#b8d4ff",
152
+ tertiaryBlue11 = "#d6e6ff",
153
+ tertiaryBlue12 = "#eaf2ff",
154
+ tertiaryBlue13 = "#f3f8ff",
155
+ grayscaleBlack1 = "#606060",
156
+ grayscaleBlack2 = "#404040",
157
+ grayscaleBlack3 = "#303030",
158
+ grayscaleBlack4 = "#202020",
159
+ grayscaleBlack5 = "#101010"
160
+ }
package/package.json ADDED
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "@risalabs_frontend_org/oasis-ui-kit",
3
+ "version": "0.1.0",
4
+ "description": "RISA Oasis UI",
5
+ "private": false,
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "scripts": {
9
+ "storybook": "storybook dev -p 6006",
10
+ "build-storybook": "storybook build",
11
+ "build": "webpack",
12
+ "chromatic": "npx chromatic --project-token=REACT_APP_CHROMATIC",
13
+ "test": "jest"
14
+ },
15
+ "files": [
16
+ "dist/**/*"
17
+ ],
18
+ "author": {
19
+ "name": "Deepak Prasad"
20
+ },
21
+ "devDependencies": {
22
+ "@babel/core": "^7.24.0",
23
+ "@babel/preset-env": "^7.24.0",
24
+ "@babel/preset-react": "^7.23.3",
25
+ "@storybook/addon-actions": "^7.6.20",
26
+ "@storybook/addon-console": "^3.0.0",
27
+ "@storybook/addon-essentials": "^7.6.17",
28
+ "@storybook/addon-interactions": "^7.6.17",
29
+ "@storybook/addon-links": "^7.6.17",
30
+ "@storybook/addon-onboarding": "^1.0.11",
31
+ "@storybook/addon-styling-webpack": "^0.0.6",
32
+ "@storybook/blocks": "^7.6.17",
33
+ "@storybook/react": "^7.6.20",
34
+ "@storybook/test": "^7.6.17",
35
+ "@testing-library/jest-dom": "^6.4.2",
36
+ "@testing-library/react": "^14.2.1",
37
+ "@types/jest": "^29.5.12",
38
+ "@types/react": "^18.2.61",
39
+ "@types/react-dom": "^18.2.19",
40
+ "babel-jest": "^29.7.0",
41
+ "babel-loader": "^9.1.3",
42
+ "chromatic": "^11.0.0",
43
+ "copy-webpack-plugin": "^12.0.2",
44
+ "css-loader": "^6.10.0",
45
+ "file-loader": "^6.2.0",
46
+ "i": "^0.3.7",
47
+ "jest": "^29.7.0",
48
+ "jest-css-modules-transform": "^4.4.2",
49
+ "jest-environment-jsdom": "^29.7.0",
50
+ "jest-transform-stub": "^2.0.0",
51
+ "mini-css-extract-plugin": "^2.9.0",
52
+ "npm": "^10.5.0",
53
+ "postcss": "^8.4.35",
54
+ "postcss-loader": "^8.1.1",
55
+ "prop-types": "^15.8.1",
56
+ "react": "^18.2.0",
57
+ "react-dom": "^18.2.0",
58
+ "react-test-renderer": "^18.2.0",
59
+ "resolve-url-loader": "^5.0.0",
60
+ "sass-loader": "^14.1.1",
61
+ "source-map-loader": "^5.0.0",
62
+ "storybook": "^7.6.17",
63
+ "style-loader": "^3.3.4",
64
+ "ts-jest": "^29.1.2",
65
+ "ts-loader": "^9.5.1",
66
+ "typescript": "^5.3.3",
67
+ "url-loader": "^4.1.1",
68
+ "webpack-cli": "^5.1.4"
69
+ },
70
+ "dependencies": {
71
+ "@storybook/react-webpack5": "^7.6.17",
72
+ "antd": "^5.24.3",
73
+ "date-fns": "^4.1.0",
74
+ "fuse.js": "^7.0.0",
75
+ "moment": "^2.30.1",
76
+ "react-feather": "^2.0.10",
77
+ "sass": "^1.71.1",
78
+ "storybook-addon-sass-postcss": "^0.2.0",
79
+ "webpack": "^5.90.3",
80
+ "webpack-node-externals": "^3.0.0"
81
+ }
82
+ }