@phsa.tec/design-system-react 0.1.6 → 0.1.9

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 (217) hide show
  1. package/README.md +390 -209
  2. package/dist/index.d.mts +485 -0
  3. package/dist/index.d.ts +485 -0
  4. package/dist/index.js +4259 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.mjs +4186 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/dist/styles.css +2534 -0
  9. package/dist/styles.css.map +1 -0
  10. package/dist/styles.d.mts +2 -0
  11. package/dist/styles.d.ts +2 -0
  12. package/package.json +46 -6
  13. package/.eslintrc.json +0 -7
  14. package/.github/workflows/deploy-storybook.yml +0 -75
  15. package/.storybook/main.ts +0 -16
  16. package/.storybook/preview.ts +0 -15
  17. package/components.json +0 -21
  18. package/jest.config.ts +0 -25
  19. package/next.config.ts +0 -7
  20. package/postcss.config.mjs +0 -8
  21. package/public/file.svg +0 -1
  22. package/public/globe.svg +0 -1
  23. package/public/next.svg +0 -1
  24. package/public/vercel.svg +0 -1
  25. package/public/window.svg +0 -1
  26. package/src/app/columns.tsx +0 -178
  27. package/src/app/favicon.ico +0 -0
  28. package/src/app/fonts/GeistMonoVF.woff +0 -0
  29. package/src/app/fonts/GeistVF.woff +0 -0
  30. package/src/app/globals.css +0 -94
  31. package/src/app/layout.tsx +0 -35
  32. package/src/app/page.tsx +0 -7
  33. package/src/components/actions/AlertDialog/AlertDialog.tsx +0 -45
  34. package/src/components/actions/AlertDialog/alert-dialog.stories.tsx +0 -21
  35. package/src/components/actions/AlertDialog/index.ts +0 -1
  36. package/src/components/actions/Button/Button.stories.ts +0 -38
  37. package/src/components/actions/Button/Button.tsx +0 -23
  38. package/src/components/actions/Button/index.ts +0 -1
  39. package/src/components/actions/Collapsible/index.ts +0 -1
  40. package/src/components/actions/Dialog/Dialog.stories.tsx +0 -70
  41. package/src/components/actions/Dialog/Dialog.tsx +0 -87
  42. package/src/components/actions/Dialog/components/DialogWithActions/index.tsx +0 -40
  43. package/src/components/actions/Dialog/index.ts +0 -1
  44. package/src/components/actions/Steps/Steps.stories.tsx +0 -25
  45. package/src/components/actions/Steps/Steps.tsx +0 -51
  46. package/src/components/actions/Steps/index.ts +0 -1
  47. package/src/components/actions/index.ts +0 -5
  48. package/src/components/dataDisplay/Avatar/Avatar.stories.tsx +0 -22
  49. package/src/components/dataDisplay/Avatar/Avatar.tsx +0 -21
  50. package/src/components/dataDisplay/Avatar/index.ts +0 -2
  51. package/src/components/dataDisplay/Badge/Badge.stories.tsx +0 -36
  52. package/src/components/dataDisplay/Badge/index.ts +0 -1
  53. package/src/components/dataDisplay/Card/Card.stories.tsx +0 -24
  54. package/src/components/dataDisplay/Card/Card.tsx +0 -34
  55. package/src/components/dataDisplay/Card/index.ts +0 -1
  56. package/src/components/dataDisplay/DataPairList/DataPairList.tsx +0 -56
  57. package/src/components/dataDisplay/DataPairList/data-pair-list.stories.tsx +0 -87
  58. package/src/components/dataDisplay/DataPairList/index.ts +0 -2
  59. package/src/components/dataDisplay/DataPairList/types.ts +0 -10
  60. package/src/components/dataDisplay/DropDownMenu/index.ts +0 -1
  61. package/src/components/dataDisplay/ErrorMessage/ErrorMessage.tsx +0 -6
  62. package/src/components/dataDisplay/ErrorMessage/index.ts +0 -1
  63. package/src/components/dataDisplay/Icon/Icon.stories.tsx +0 -21
  64. package/src/components/dataDisplay/Icon/Icon.tsx +0 -47
  65. package/src/components/dataDisplay/Icon/index.ts +0 -1
  66. package/src/components/dataDisplay/Icon/types.ts +0 -6
  67. package/src/components/dataDisplay/Label/Label.stories.tsx +0 -21
  68. package/src/components/dataDisplay/Label/Label.tsx +0 -10
  69. package/src/components/dataDisplay/Label/index.ts +0 -1
  70. package/src/components/dataDisplay/Table/Table.tsx +0 -173
  71. package/src/components/dataDisplay/Table/columns.tsx +0 -223
  72. package/src/components/dataDisplay/Table/components/DynamicTable/data-table-column-header.tsx +0 -72
  73. package/src/components/dataDisplay/Table/components/DynamicTable/data-table-pagination.tsx +0 -91
  74. package/src/components/dataDisplay/Table/components/DynamicTable/data-table-toolbar.tsx +0 -17
  75. package/src/components/dataDisplay/Table/components/DynamicTable/data-table-view-options.tsx +0 -58
  76. package/src/components/dataDisplay/Table/components/DynamicTable/data-table.stories.tsx +0 -118
  77. package/src/components/dataDisplay/Table/components/DynamicTable/index.tsx +0 -136
  78. package/src/components/dataDisplay/Table/components/DynamicTable/types.ts +0 -43
  79. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-column-header.tsx +0 -71
  80. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-faceted-filter.tsx +0 -147
  81. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-pagination.tsx +0 -97
  82. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-row-actions.tsx +0 -78
  83. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-toolbar.tsx +0 -60
  84. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-view-options.tsx +0 -59
  85. package/src/components/dataDisplay/Table/custom/CustomTable/data-table.tsx +0 -145
  86. package/src/components/dataDisplay/Table/custom/CustomTable/data.ts +0 -71
  87. package/src/components/dataDisplay/Table/custom/CustomTable/index.tsx +0 -34
  88. package/src/components/dataDisplay/Table/custom/CustomTable/schema.ts +0 -11
  89. package/src/components/dataDisplay/Table/index.ts +0 -2
  90. package/src/components/dataDisplay/Table/table.stories.tsx +0 -147
  91. package/src/components/dataDisplay/Table/types.ts +0 -15
  92. package/src/components/dataDisplay/Tabs/Tabs.stories.tsx +0 -34
  93. package/src/components/dataDisplay/Tabs/Tabs.tsx +0 -53
  94. package/src/components/dataDisplay/Tabs/index.ts +0 -1
  95. package/src/components/dataDisplay/Text/Text.stories.tsx +0 -66
  96. package/src/components/dataDisplay/Text/Text.tsx +0 -56
  97. package/src/components/dataDisplay/Text/index.ts +0 -1
  98. package/src/components/dataDisplay/index.ts +0 -8
  99. package/src/components/dataInput/Input/components/Input/Input.stories.tsx +0 -99
  100. package/src/components/dataInput/Input/components/Input/InputBase.tsx +0 -50
  101. package/src/components/dataInput/Input/components/Input/__tests__/input.test.tsx +0 -38
  102. package/src/components/dataInput/Input/components/Input/index.tsx +0 -48
  103. package/src/components/dataInput/Input/components/Input/types.ts +0 -15
  104. package/src/components/dataInput/Input/components/InputBase/index.tsx +0 -31
  105. package/src/components/dataInput/Input/components/MaskInput/__tests__/mask-input.test.tsx +0 -77
  106. package/src/components/dataInput/Input/components/MaskInput/index.ts +0 -1
  107. package/src/components/dataInput/Input/components/MaskInput/mask-input.stories.tsx +0 -85
  108. package/src/components/dataInput/Input/components/MaskInput/mask-input.tsx +0 -73
  109. package/src/components/dataInput/Input/components/MultipleInput/MultipleInput.tsx +0 -105
  110. package/src/components/dataInput/Input/components/MultipleInput/MultipleInputBase.tsx +0 -100
  111. package/src/components/dataInput/Input/components/MultipleInput/MultipleMaskInput.tsx +0 -35
  112. package/src/components/dataInput/Input/components/MultipleInput/MultipleNumberInput.tsx +0 -35
  113. package/src/components/dataInput/Input/components/MultipleInput/__tests__/multiple-input.test.tsx +0 -152
  114. package/src/components/dataInput/Input/components/MultipleInput/index.ts +0 -2
  115. package/src/components/dataInput/Input/components/MultipleInput/multiple-input.stories.tsx +0 -96
  116. package/src/components/dataInput/Input/components/NumberInput/__tests__/number-input.test.tsx +0 -175
  117. package/src/components/dataInput/Input/components/NumberInput/index.ts +0 -1
  118. package/src/components/dataInput/Input/components/NumberInput/number-input.stories.tsx +0 -76
  119. package/src/components/dataInput/Input/components/NumberInput/number-input.tsx +0 -70
  120. package/src/components/dataInput/Input/index.ts +0 -4
  121. package/src/components/dataInput/Select/MultiSelect/MultiSelect.stories.tsx +0 -119
  122. package/src/components/dataInput/Select/MultiSelect/MultiSelectBase.tsx +0 -135
  123. package/src/components/dataInput/Select/MultiSelect/index.tsx +0 -75
  124. package/src/components/dataInput/Select/Select.stories.tsx +0 -61
  125. package/src/components/dataInput/Select/Select.tsx +0 -73
  126. package/src/components/dataInput/Select/SelectBase.tsx +0 -58
  127. package/src/components/dataInput/Select/index.ts +0 -2
  128. package/src/components/dataInput/Switch/Switch.stories.tsx +0 -75
  129. package/src/components/dataInput/Switch/Switch.tsx +0 -52
  130. package/src/components/dataInput/Switch/index.ts +0 -1
  131. package/src/components/dataInput/checkbox/Checkbox.tsx +0 -57
  132. package/src/components/dataInput/checkbox/Checkbox_old.tsx +0 -58
  133. package/src/components/dataInput/checkbox/Checkout.stories.tsx +0 -62
  134. package/src/components/dataInput/checkbox/index.ts +0 -1
  135. package/src/components/dataInput/form/Form.tsx +0 -47
  136. package/src/components/dataInput/form/index.ts +0 -3
  137. package/src/components/dataInput/index.ts +0 -5
  138. package/src/components/feedback/ErrorLabel/index.tsx +0 -24
  139. package/src/components/feedback/Spinner/index.ts +0 -1
  140. package/src/components/feedback/Toast/Toast.stories.tsx +0 -45
  141. package/src/components/feedback/Toast/index.ts +0 -2
  142. package/src/components/feedback/index.ts +0 -2
  143. package/src/components/index.ts +0 -6
  144. package/src/components/layout/Crud/components/Table/index.tsx +0 -183
  145. package/src/components/layout/Crud/components/Table/types.ts +0 -15
  146. package/src/components/layout/Crud/crud.stories.tsx +0 -317
  147. package/src/components/layout/Crud/hook/useCrudLayout/index.tsx +0 -94
  148. package/src/components/layout/Crud/hook/useRequest/index.tsx +0 -156
  149. package/src/components/layout/Crud/index.tsx +0 -295
  150. package/src/components/layout/Crud/store/CrudLayoutStore.ts +0 -75
  151. package/src/components/layout/Crud/types.ts +0 -14
  152. package/src/components/layout/Drawer/CustomDrawer/index.tsx +0 -33
  153. package/src/components/layout/Drawer/Drawer.stories.tsx +0 -80
  154. package/src/components/layout/Drawer/index.ts +0 -2
  155. package/src/components/layout/PageLayout/PageLayout.stories.tsx +0 -42
  156. package/src/components/layout/PageLayout/index.tsx +0 -28
  157. package/src/components/layout/Separator/index.ts +0 -1
  158. package/src/components/layout/Sheet/Sheet.stories.tsx +0 -28
  159. package/src/components/layout/Sheet/Sheet.tsx +0 -22
  160. package/src/components/layout/Sheet/index.ts +0 -1
  161. package/src/components/layout/Sidebar/Sidebar.stories.tsx +0 -116
  162. package/src/components/layout/Sidebar/Sidebar.tsx +0 -50
  163. package/src/components/layout/Sidebar/components/app-sidebar.tsx +0 -203
  164. package/src/components/layout/Sidebar/components/footer-sidebar.tsx +0 -17
  165. package/src/components/layout/Sidebar/components/header-sidebar.tsx +0 -90
  166. package/src/components/layout/Sidebar/components/menus.tsx +0 -55
  167. package/src/components/layout/Sidebar/components/nav-projects.tsx +0 -88
  168. package/src/components/layout/Sidebar/components/nav-user.tsx +0 -114
  169. package/src/components/layout/Sidebar/components/team-switcher.tsx +0 -85
  170. package/src/components/layout/Sidebar/index.ts +0 -2
  171. package/src/components/layout/Sidebar/provider/index.tsx +0 -51
  172. package/src/components/layout/Tabs/Tabs.tsx +0 -51
  173. package/src/components/layout/Tabs/index.ts +0 -1
  174. package/src/components/layout/Tabs/tabs.stories.tsx +0 -57
  175. package/src/components/layout/index.ts +0 -6
  176. package/src/components/navigation/Breadcrumbs/Breadcrumbs.tsx +0 -66
  177. package/src/components/navigation/Breadcrumbs/index.ts +0 -2
  178. package/src/components/navigation/index.ts +0 -1
  179. package/src/components/ui/alert-dialog.tsx +0 -141
  180. package/src/components/ui/alert.tsx +0 -59
  181. package/src/components/ui/avatar.tsx +0 -50
  182. package/src/components/ui/badge.tsx +0 -40
  183. package/src/components/ui/breadcrumb.tsx +0 -115
  184. package/src/components/ui/button.tsx +0 -57
  185. package/src/components/ui/card.tsx +0 -83
  186. package/src/components/ui/checkbox.tsx +0 -34
  187. package/src/components/ui/collapsible.tsx +0 -11
  188. package/src/components/ui/command.tsx +0 -153
  189. package/src/components/ui/dialog.tsx +0 -124
  190. package/src/components/ui/drawer.tsx +0 -117
  191. package/src/components/ui/dropdown-menu.tsx +0 -201
  192. package/src/components/ui/form.tsx +0 -179
  193. package/src/components/ui/input.tsx +0 -24
  194. package/src/components/ui/label.tsx +0 -30
  195. package/src/components/ui/popover.tsx +0 -33
  196. package/src/components/ui/select.tsx +0 -161
  197. package/src/components/ui/separator.tsx +0 -31
  198. package/src/components/ui/sheet.tsx +0 -140
  199. package/src/components/ui/sidebar.tsx +0 -763
  200. package/src/components/ui/skeleton.tsx +0 -15
  201. package/src/components/ui/sonner.tsx +0 -31
  202. package/src/components/ui/spinner.tsx +0 -54
  203. package/src/components/ui/switch.tsx +0 -33
  204. package/src/components/ui/table.tsx +0 -120
  205. package/src/components/ui/tabs.tsx +0 -55
  206. package/src/components/ui/toast.tsx +0 -130
  207. package/src/components/ui/toaster.tsx +0 -35
  208. package/src/components/ui/tooltip.tsx +0 -32
  209. package/src/hooks/use-conditional-controller.tsx +0 -35
  210. package/src/hooks/use-mask.tsx +0 -116
  211. package/src/hooks/use-mobile.tsx +0 -19
  212. package/src/hooks/use-toast.ts +0 -191
  213. package/src/index.ts +0 -1
  214. package/src/introduction.mdx +0 -132
  215. package/src/lib/utils.ts +0 -6
  216. package/tailwind.config.ts +0 -83
  217. package/tsconfig.json +0 -27
@@ -1,191 +0,0 @@
1
- "use client";
2
-
3
- // Inspired by react-hot-toast library
4
- import * as React from "react";
5
-
6
- import type { ToastActionElement, ToastProps } from "../components/ui/toast";
7
-
8
- const TOAST_LIMIT = 1;
9
- const TOAST_REMOVE_DELAY = 1000000;
10
-
11
- type ToasterToast = ToastProps & {
12
- id: string;
13
- title?: React.ReactNode;
14
- description?: React.ReactNode;
15
- action?: ToastActionElement;
16
- };
17
-
18
- const actionTypes = {
19
- ADD_TOAST: "ADD_TOAST",
20
- UPDATE_TOAST: "UPDATE_TOAST",
21
- DISMISS_TOAST: "DISMISS_TOAST",
22
- REMOVE_TOAST: "REMOVE_TOAST",
23
- } as const;
24
-
25
- let count = 0;
26
-
27
- function genId() {
28
- count = (count + 1) % Number.MAX_SAFE_INTEGER;
29
- return count.toString();
30
- }
31
-
32
- type ActionType = typeof actionTypes;
33
-
34
- type Action =
35
- | {
36
- type: ActionType["ADD_TOAST"];
37
- toast: ToasterToast;
38
- }
39
- | {
40
- type: ActionType["UPDATE_TOAST"];
41
- toast: Partial<ToasterToast>;
42
- }
43
- | {
44
- type: ActionType["DISMISS_TOAST"];
45
- toastId?: ToasterToast["id"];
46
- }
47
- | {
48
- type: ActionType["REMOVE_TOAST"];
49
- toastId?: ToasterToast["id"];
50
- };
51
-
52
- interface State {
53
- toasts: ToasterToast[];
54
- }
55
-
56
- const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();
57
-
58
- const addToRemoveQueue = (toastId: string) => {
59
- if (toastTimeouts.has(toastId)) {
60
- return;
61
- }
62
-
63
- const timeout = setTimeout(() => {
64
- toastTimeouts.delete(toastId);
65
- dispatch({
66
- type: "REMOVE_TOAST",
67
- toastId: toastId,
68
- });
69
- }, TOAST_REMOVE_DELAY);
70
-
71
- toastTimeouts.set(toastId, timeout);
72
- };
73
-
74
- export const reducer = (state: State, action: Action): State => {
75
- switch (action.type) {
76
- case "ADD_TOAST":
77
- return {
78
- ...state,
79
- toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),
80
- };
81
-
82
- case "UPDATE_TOAST":
83
- return {
84
- ...state,
85
- toasts: state.toasts.map((t) =>
86
- t.id === action.toast.id ? { ...t, ...action.toast } : t
87
- ),
88
- };
89
-
90
- case "DISMISS_TOAST": {
91
- const { toastId } = action;
92
-
93
- // ! Side effects ! - This could be extracted into a dismissToast() action,
94
- // but I'll keep it here for simplicity
95
- if (toastId) {
96
- addToRemoveQueue(toastId);
97
- } else {
98
- state.toasts.forEach((toast) => {
99
- addToRemoveQueue(toast.id);
100
- });
101
- }
102
-
103
- return {
104
- ...state,
105
- toasts: state.toasts.map((t) =>
106
- t.id === toastId || toastId === undefined
107
- ? {
108
- ...t,
109
- open: false,
110
- }
111
- : t
112
- ),
113
- };
114
- }
115
- case "REMOVE_TOAST":
116
- if (action.toastId === undefined) {
117
- return {
118
- ...state,
119
- toasts: [],
120
- };
121
- }
122
- return {
123
- ...state,
124
- toasts: state.toasts.filter((t) => t.id !== action.toastId),
125
- };
126
- }
127
- };
128
-
129
- const listeners: Array<(state: State) => void> = [];
130
-
131
- let memoryState: State = { toasts: [] };
132
-
133
- function dispatch(action: Action) {
134
- memoryState = reducer(memoryState, action);
135
- listeners.forEach((listener) => {
136
- listener(memoryState);
137
- });
138
- }
139
-
140
- type Toast = Omit<ToasterToast, "id">;
141
-
142
- function toast({ ...props }: Toast) {
143
- const id = genId();
144
-
145
- const update = (props: ToasterToast) =>
146
- dispatch({
147
- type: "UPDATE_TOAST",
148
- toast: { ...props, id },
149
- });
150
- const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });
151
-
152
- dispatch({
153
- type: "ADD_TOAST",
154
- toast: {
155
- ...props,
156
- id,
157
- open: true,
158
- onOpenChange: (open) => {
159
- if (!open) dismiss();
160
- },
161
- },
162
- });
163
-
164
- return {
165
- id: id,
166
- dismiss,
167
- update,
168
- };
169
- }
170
-
171
- function useToast() {
172
- const [state, setState] = React.useState<State>(memoryState);
173
-
174
- React.useEffect(() => {
175
- listeners.push(setState);
176
- return () => {
177
- const index = listeners.indexOf(setState);
178
- if (index > -1) {
179
- listeners.splice(index, 1);
180
- }
181
- };
182
- }, [state]);
183
-
184
- return {
185
- ...state,
186
- toast,
187
- dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }),
188
- };
189
- }
190
-
191
- export { useToast, toast };
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./components";
@@ -1,132 +0,0 @@
1
- # PHSA Design System
2
-
3
- Welcome to the **PHSA Design System** - a modern and accessible React component library built with TypeScript, Tailwind CSS, and Radix UI.
4
-
5
- ## 🎯 About the Project
6
-
7
- The PHSA Design System is a collection of reusable components that follow best practices in design and accessibility. Our mission is to provide a solid foundation for building consistent and professional user interfaces.
8
-
9
- ## 🚀 Technologies
10
-
11
- - **React 19** - JavaScript library for user interfaces
12
- - **TypeScript** - Static typing for JavaScript
13
- - **Tailwind CSS** - Utility-first CSS framework
14
- - **Radix UI** - Accessible primitive components
15
- - **Lucide React** - Modern and consistent icons
16
- - **React Hook Form** - Form management
17
- - **Zod** - Schema validation
18
-
19
- ## 📦 Available Components
20
-
21
- ### Forms
22
-
23
- - Input, Textarea, Select
24
- - Checkbox, Switch, Radio
25
- - DatePicker, TimePicker
26
- - Form validation with Zod
27
-
28
- ### Navigation
29
-
30
- - Button, Link
31
- - Breadcrumb
32
- - Pagination
33
- - Tabs
34
-
35
- ### Feedback
36
-
37
- - Alert, Toast
38
- - Modal, Dialog
39
- - Tooltip, Popover
40
- - Loading states
41
-
42
- ### Layout
43
-
44
- - Card, Container
45
- - Grid, Flex
46
- - Divider, Spacer
47
-
48
- ### Data
49
-
50
- - Table
51
- - DataTable
52
- - Charts (in development)
53
-
54
- ## 🎨 Theme and Customization
55
-
56
- The design system supports light and dark themes with full customization through Tailwind CSS. All components follow a consistent design system with:
57
-
58
- - **Colors**: Semantic and accessible color palette
59
- - **Typography**: Clear text hierarchy
60
- - **Spacing**: Consistent spacing system
61
- - **Borders**: Standardized border radius
62
- - **Shadows**: Elevation system
63
-
64
- ## ♿ Accessibility
65
-
66
- All components are built with accessibility in mind:
67
-
68
- - Full keyboard navigation support
69
- - Screen reader compatibility
70
- - Adequate color contrast
71
- - Visible focus states
72
- - Appropriate ARIA labels
73
-
74
- ## 🛠️ How to Use
75
-
76
- ### Installation
77
-
78
- ```bash
79
- npm install @phsa.tec/design-system-react
80
- # or
81
- yarn add @phsa.tec/design-system-react
82
- ```
83
-
84
- ### Basic Setup
85
-
86
- ```tsx
87
- import { Button, Input, Card } from "@phsa.tec/design-system-react";
88
-
89
- function App() {
90
- return (
91
- <div>
92
- <Card>
93
- <Input placeholder="Type something..." />
94
- <Button>Click here</Button>
95
- </Card>
96
- </div>
97
- );
98
- }
99
- ```
100
-
101
- ### Theme Configuration
102
-
103
- ```tsx
104
- import { ThemeProvider } from "@phsa.tec/design-system-react";
105
-
106
- function App() {
107
- return (
108
- <ThemeProvider defaultTheme="light" storageKey="phsa-theme">
109
- {/* Your components here */}
110
- </ThemeProvider>
111
- );
112
- }
113
- ```
114
-
115
- ## 📚 Documentation
116
-
117
- - **Components**: Explore all available components
118
- - **Examples**: See practical usage examples
119
- - **API**: Complete documentation of props and methods
120
- - **Style Guide**: Design patterns and best practices
121
-
122
- ## 🤝 Contributing
123
-
124
- Contributions are welcome! Please read our contribution guide before submitting pull requests.
125
-
126
- ## 📄 License
127
-
128
- This project is licensed under the MIT License.
129
-
130
- ---
131
-
132
- **Need help?** Open an issue on GitHub or contact our team.
package/src/lib/utils.ts DELETED
@@ -1,6 +0,0 @@
1
- import { clsx, type ClassValue } from "clsx"
2
- import { twMerge } from "tailwind-merge"
3
-
4
- export function cn(...inputs: ClassValue[]) {
5
- return twMerge(clsx(inputs))
6
- }
@@ -1,83 +0,0 @@
1
- import type { Config } from "tailwindcss";
2
-
3
- export default {
4
- darkMode: ["class"],
5
- content: [
6
- "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
7
- "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
8
- "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
9
- ],
10
- theme: {
11
- extend: {
12
- fontFamily: {
13
- roboto: ["Roboto", "sans-serif"],
14
- },
15
- colors: {
16
- background: "hsl(var(--background))",
17
- foreground: "hsl(var(--foreground))",
18
- card: {
19
- DEFAULT: "hsl(var(--card))",
20
- foreground: "hsl(var(--card-foreground))",
21
- },
22
- popover: {
23
- DEFAULT: "hsl(var(--popover))",
24
- foreground: "hsl(var(--popover-foreground))",
25
- },
26
- primary: {
27
- DEFAULT: "hsl(var(--primary))",
28
- foreground: "hsl(var(--primary-foreground))",
29
- },
30
- secondary: {
31
- DEFAULT: "hsl(var(--secondary))",
32
- foreground: "hsl(var(--secondary-foreground))",
33
- },
34
- muted: {
35
- DEFAULT: "hsl(var(--muted))",
36
- foreground: "hsl(var(--muted-foreground))",
37
- },
38
- accent: {
39
- DEFAULT: "hsl(var(--accent))",
40
- foreground: "hsl(var(--accent-foreground))",
41
- },
42
- destructive: {
43
- DEFAULT: "hsl(var(--destructive))",
44
- foreground: "hsl(var(--destructive-foreground))",
45
- },
46
- success: {
47
- DEFAULT: "hsl(var(--success))",
48
- foreground: "hsl(var(--success-foreground))",
49
- },
50
- warning: {
51
- DEFAULT: "hsl(var(--warning))",
52
- },
53
- border: "hsl(var(--border))",
54
- input: "hsl(var(--input))",
55
- ring: "hsl(var(--ring))",
56
- chart: {
57
- "1": "hsl(var(--chart-1))",
58
- "2": "hsl(var(--chart-2))",
59
- "3": "hsl(var(--chart-3))",
60
- "4": "hsl(var(--chart-4))",
61
- "5": "hsl(var(--chart-5))",
62
- },
63
- sidebar: {
64
- DEFAULT: "hsl(var(--sidebar-background))",
65
- foreground: "hsl(var(--sidebar-foreground))",
66
- primary: "hsl(var(--sidebar-primary))",
67
- "primary-foreground": "hsl(var(--sidebar-primary-foreground))",
68
- accent: "hsl(var(--sidebar-accent))",
69
- "accent-foreground": "hsl(var(--sidebar-accent-foreground))",
70
- border: "hsl(var(--sidebar-border))",
71
- ring: "hsl(var(--sidebar-ring))",
72
- },
73
- },
74
- borderRadius: {
75
- lg: "var(--radius)",
76
- md: "calc(var(--radius) - 2px)",
77
- sm: "calc(var(--radius) - 4px)",
78
- },
79
- },
80
- },
81
- // eslint-disable-next-line @typescript-eslint/no-require-imports
82
- plugins: [require("tailwindcss-animate")],
83
- } satisfies Config;
package/tsconfig.json DELETED
@@ -1,27 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2017",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "strict": true,
8
- "noEmit": true,
9
- "esModuleInterop": true,
10
- "module": "esnext",
11
- "moduleResolution": "bundler",
12
- "resolveJsonModule": true,
13
- "isolatedModules": true,
14
- "jsx": "preserve",
15
- "incremental": true,
16
- "plugins": [
17
- {
18
- "name": "next"
19
- }
20
- ],
21
- "paths": {
22
- "@/*": ["./src/*"]
23
- }
24
- },
25
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
26
- "exclude": ["node_modules"]
27
- }