@phsa.tec/design-system-react 0.1.5 → 0.1.8

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 (212) 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/package.json +46 -6
  9. package/.eslintrc.json +0 -7
  10. package/.github/workflows/deploy-storybook.yml +0 -75
  11. package/.storybook/main.ts +0 -16
  12. package/.storybook/preview.ts +0 -15
  13. package/components.json +0 -21
  14. package/jest.config.ts +0 -25
  15. package/next.config.ts +0 -7
  16. package/postcss.config.mjs +0 -8
  17. package/public/file.svg +0 -1
  18. package/public/globe.svg +0 -1
  19. package/public/next.svg +0 -1
  20. package/public/vercel.svg +0 -1
  21. package/public/window.svg +0 -1
  22. package/src/app/columns.tsx +0 -178
  23. package/src/app/favicon.ico +0 -0
  24. package/src/app/fonts/GeistMonoVF.woff +0 -0
  25. package/src/app/fonts/GeistVF.woff +0 -0
  26. package/src/app/globals.css +0 -94
  27. package/src/app/layout.tsx +0 -35
  28. package/src/app/page.tsx +0 -7
  29. package/src/components/actions/AlertDialog/AlertDialog.tsx +0 -45
  30. package/src/components/actions/AlertDialog/alert-dialog.stories.tsx +0 -21
  31. package/src/components/actions/AlertDialog/index.ts +0 -1
  32. package/src/components/actions/Button/Button.stories.ts +0 -38
  33. package/src/components/actions/Button/Button.tsx +0 -23
  34. package/src/components/actions/Button/index.ts +0 -1
  35. package/src/components/actions/Collapsible/index.ts +0 -1
  36. package/src/components/actions/Dialog/Dialog.stories.tsx +0 -70
  37. package/src/components/actions/Dialog/Dialog.tsx +0 -87
  38. package/src/components/actions/Dialog/components/DialogWithActions/index.tsx +0 -40
  39. package/src/components/actions/Dialog/index.ts +0 -1
  40. package/src/components/actions/Steps/Steps.stories.tsx +0 -25
  41. package/src/components/actions/Steps/Steps.tsx +0 -51
  42. package/src/components/actions/Steps/index.ts +0 -1
  43. package/src/components/actions/index.ts +0 -5
  44. package/src/components/dataDisplay/Avatar/Avatar.stories.tsx +0 -22
  45. package/src/components/dataDisplay/Avatar/Avatar.tsx +0 -21
  46. package/src/components/dataDisplay/Avatar/index.ts +0 -2
  47. package/src/components/dataDisplay/Badge/Badge.stories.tsx +0 -36
  48. package/src/components/dataDisplay/Badge/index.ts +0 -1
  49. package/src/components/dataDisplay/Card/Card.stories.tsx +0 -24
  50. package/src/components/dataDisplay/Card/Card.tsx +0 -34
  51. package/src/components/dataDisplay/Card/index.ts +0 -1
  52. package/src/components/dataDisplay/DataPairList/DataPairList.tsx +0 -56
  53. package/src/components/dataDisplay/DataPairList/data-pair-list.stories.tsx +0 -87
  54. package/src/components/dataDisplay/DataPairList/index.ts +0 -2
  55. package/src/components/dataDisplay/DataPairList/types.ts +0 -10
  56. package/src/components/dataDisplay/DropDownMenu/index.ts +0 -1
  57. package/src/components/dataDisplay/ErrorMessage/ErrorMessage.tsx +0 -6
  58. package/src/components/dataDisplay/ErrorMessage/index.ts +0 -1
  59. package/src/components/dataDisplay/Icon/Icon.stories.tsx +0 -21
  60. package/src/components/dataDisplay/Icon/Icon.tsx +0 -47
  61. package/src/components/dataDisplay/Icon/index.ts +0 -1
  62. package/src/components/dataDisplay/Icon/types.ts +0 -6
  63. package/src/components/dataDisplay/Label/Label.stories.tsx +0 -21
  64. package/src/components/dataDisplay/Label/Label.tsx +0 -10
  65. package/src/components/dataDisplay/Label/index.ts +0 -1
  66. package/src/components/dataDisplay/Table/Table.tsx +0 -173
  67. package/src/components/dataDisplay/Table/columns.tsx +0 -223
  68. package/src/components/dataDisplay/Table/components/DynamicTable/data-table-column-header.tsx +0 -72
  69. package/src/components/dataDisplay/Table/components/DynamicTable/data-table-pagination.tsx +0 -91
  70. package/src/components/dataDisplay/Table/components/DynamicTable/data-table-toolbar.tsx +0 -17
  71. package/src/components/dataDisplay/Table/components/DynamicTable/data-table-view-options.tsx +0 -58
  72. package/src/components/dataDisplay/Table/components/DynamicTable/data-table.stories.tsx +0 -118
  73. package/src/components/dataDisplay/Table/components/DynamicTable/index.tsx +0 -136
  74. package/src/components/dataDisplay/Table/components/DynamicTable/types.ts +0 -43
  75. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-column-header.tsx +0 -71
  76. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-faceted-filter.tsx +0 -147
  77. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-pagination.tsx +0 -97
  78. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-row-actions.tsx +0 -78
  79. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-toolbar.tsx +0 -60
  80. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-view-options.tsx +0 -59
  81. package/src/components/dataDisplay/Table/custom/CustomTable/data-table.tsx +0 -145
  82. package/src/components/dataDisplay/Table/custom/CustomTable/data.ts +0 -71
  83. package/src/components/dataDisplay/Table/custom/CustomTable/index.tsx +0 -34
  84. package/src/components/dataDisplay/Table/custom/CustomTable/schema.ts +0 -11
  85. package/src/components/dataDisplay/Table/index.ts +0 -2
  86. package/src/components/dataDisplay/Table/table.stories.tsx +0 -147
  87. package/src/components/dataDisplay/Table/types.ts +0 -15
  88. package/src/components/dataDisplay/Tabs/Tabs.stories.tsx +0 -34
  89. package/src/components/dataDisplay/Tabs/Tabs.tsx +0 -53
  90. package/src/components/dataDisplay/Tabs/index.ts +0 -1
  91. package/src/components/dataDisplay/Text/Text.stories.tsx +0 -66
  92. package/src/components/dataDisplay/Text/Text.tsx +0 -56
  93. package/src/components/dataDisplay/Text/index.ts +0 -1
  94. package/src/components/dataDisplay/index.ts +0 -8
  95. package/src/components/dataInput/Input/components/Input/Input.stories.tsx +0 -99
  96. package/src/components/dataInput/Input/components/Input/InputBase.tsx +0 -50
  97. package/src/components/dataInput/Input/components/Input/__tests__/input.test.tsx +0 -38
  98. package/src/components/dataInput/Input/components/Input/index.tsx +0 -48
  99. package/src/components/dataInput/Input/components/Input/types.ts +0 -15
  100. package/src/components/dataInput/Input/components/InputBase/index.tsx +0 -31
  101. package/src/components/dataInput/Input/components/MaskInput/__tests__/mask-input.test.tsx +0 -77
  102. package/src/components/dataInput/Input/components/MaskInput/index.ts +0 -1
  103. package/src/components/dataInput/Input/components/MaskInput/mask-input.stories.tsx +0 -85
  104. package/src/components/dataInput/Input/components/MaskInput/mask-input.tsx +0 -73
  105. package/src/components/dataInput/Input/components/MultipleInput/MultipleInput.tsx +0 -105
  106. package/src/components/dataInput/Input/components/MultipleInput/MultipleInputBase.tsx +0 -100
  107. package/src/components/dataInput/Input/components/MultipleInput/MultipleMaskInput.tsx +0 -35
  108. package/src/components/dataInput/Input/components/MultipleInput/MultipleNumberInput.tsx +0 -35
  109. package/src/components/dataInput/Input/components/MultipleInput/__tests__/multiple-input.test.tsx +0 -152
  110. package/src/components/dataInput/Input/components/MultipleInput/index.ts +0 -2
  111. package/src/components/dataInput/Input/components/MultipleInput/multiple-input.stories.tsx +0 -96
  112. package/src/components/dataInput/Input/components/NumberInput/index.ts +0 -1
  113. package/src/components/dataInput/Input/components/NumberInput/number-input.stories.tsx +0 -76
  114. package/src/components/dataInput/Input/components/NumberInput/number-input.tsx +0 -68
  115. package/src/components/dataInput/Input/index.ts +0 -4
  116. package/src/components/dataInput/Select/MultiSelect/MultiSelect.stories.tsx +0 -119
  117. package/src/components/dataInput/Select/MultiSelect/MultiSelectBase.tsx +0 -135
  118. package/src/components/dataInput/Select/MultiSelect/index.tsx +0 -75
  119. package/src/components/dataInput/Select/Select.stories.tsx +0 -61
  120. package/src/components/dataInput/Select/Select.tsx +0 -73
  121. package/src/components/dataInput/Select/SelectBase.tsx +0 -58
  122. package/src/components/dataInput/Select/index.ts +0 -2
  123. package/src/components/dataInput/Switch/Switch.stories.tsx +0 -75
  124. package/src/components/dataInput/Switch/Switch.tsx +0 -52
  125. package/src/components/dataInput/Switch/index.ts +0 -1
  126. package/src/components/dataInput/checkbox/Checkbox.tsx +0 -57
  127. package/src/components/dataInput/checkbox/Checkbox_old.tsx +0 -58
  128. package/src/components/dataInput/checkbox/Checkout.stories.tsx +0 -62
  129. package/src/components/dataInput/checkbox/index.ts +0 -1
  130. package/src/components/dataInput/form/Form.tsx +0 -47
  131. package/src/components/dataInput/form/index.ts +0 -3
  132. package/src/components/dataInput/index.ts +0 -5
  133. package/src/components/feedback/ErrorLabel/index.tsx +0 -24
  134. package/src/components/feedback/Spinner/index.ts +0 -1
  135. package/src/components/feedback/Toast/Toast.stories.tsx +0 -45
  136. package/src/components/feedback/Toast/index.ts +0 -2
  137. package/src/components/feedback/index.ts +0 -2
  138. package/src/components/index.ts +0 -6
  139. package/src/components/layout/Crud/components/Table/index.tsx +0 -183
  140. package/src/components/layout/Crud/components/Table/types.ts +0 -15
  141. package/src/components/layout/Crud/crud.stories.tsx +0 -317
  142. package/src/components/layout/Crud/hook/useCrudLayout/index.tsx +0 -94
  143. package/src/components/layout/Crud/hook/useRequest/index.tsx +0 -156
  144. package/src/components/layout/Crud/index.tsx +0 -295
  145. package/src/components/layout/Crud/store/CrudLayoutStore.ts +0 -75
  146. package/src/components/layout/Crud/types.ts +0 -14
  147. package/src/components/layout/Drawer/CustomDrawer/index.tsx +0 -33
  148. package/src/components/layout/Drawer/Drawer.stories.tsx +0 -80
  149. package/src/components/layout/Drawer/index.ts +0 -2
  150. package/src/components/layout/PageLayout/PageLayout.stories.tsx +0 -42
  151. package/src/components/layout/PageLayout/index.tsx +0 -28
  152. package/src/components/layout/Separator/index.ts +0 -1
  153. package/src/components/layout/Sheet/Sheet.stories.tsx +0 -28
  154. package/src/components/layout/Sheet/Sheet.tsx +0 -22
  155. package/src/components/layout/Sheet/index.ts +0 -1
  156. package/src/components/layout/Sidebar/Sidebar.stories.tsx +0 -116
  157. package/src/components/layout/Sidebar/Sidebar.tsx +0 -50
  158. package/src/components/layout/Sidebar/components/app-sidebar.tsx +0 -203
  159. package/src/components/layout/Sidebar/components/footer-sidebar.tsx +0 -17
  160. package/src/components/layout/Sidebar/components/header-sidebar.tsx +0 -90
  161. package/src/components/layout/Sidebar/components/menus.tsx +0 -55
  162. package/src/components/layout/Sidebar/components/nav-projects.tsx +0 -88
  163. package/src/components/layout/Sidebar/components/nav-user.tsx +0 -114
  164. package/src/components/layout/Sidebar/components/team-switcher.tsx +0 -85
  165. package/src/components/layout/Sidebar/index.ts +0 -2
  166. package/src/components/layout/Sidebar/provider/index.tsx +0 -51
  167. package/src/components/layout/Tabs/Tabs.tsx +0 -51
  168. package/src/components/layout/Tabs/index.ts +0 -1
  169. package/src/components/layout/Tabs/tabs.stories.tsx +0 -57
  170. package/src/components/layout/index.ts +0 -6
  171. package/src/components/navigation/Breadcrumbs/Breadcrumbs.tsx +0 -66
  172. package/src/components/navigation/Breadcrumbs/index.ts +0 -2
  173. package/src/components/navigation/index.ts +0 -1
  174. package/src/components/ui/alert-dialog.tsx +0 -141
  175. package/src/components/ui/alert.tsx +0 -59
  176. package/src/components/ui/avatar.tsx +0 -50
  177. package/src/components/ui/badge.tsx +0 -40
  178. package/src/components/ui/breadcrumb.tsx +0 -115
  179. package/src/components/ui/button.tsx +0 -57
  180. package/src/components/ui/card.tsx +0 -83
  181. package/src/components/ui/checkbox.tsx +0 -34
  182. package/src/components/ui/collapsible.tsx +0 -11
  183. package/src/components/ui/command.tsx +0 -153
  184. package/src/components/ui/dialog.tsx +0 -124
  185. package/src/components/ui/drawer.tsx +0 -117
  186. package/src/components/ui/dropdown-menu.tsx +0 -201
  187. package/src/components/ui/form.tsx +0 -179
  188. package/src/components/ui/input.tsx +0 -24
  189. package/src/components/ui/label.tsx +0 -30
  190. package/src/components/ui/popover.tsx +0 -33
  191. package/src/components/ui/select.tsx +0 -161
  192. package/src/components/ui/separator.tsx +0 -31
  193. package/src/components/ui/sheet.tsx +0 -140
  194. package/src/components/ui/sidebar.tsx +0 -763
  195. package/src/components/ui/skeleton.tsx +0 -15
  196. package/src/components/ui/sonner.tsx +0 -31
  197. package/src/components/ui/spinner.tsx +0 -54
  198. package/src/components/ui/switch.tsx +0 -33
  199. package/src/components/ui/table.tsx +0 -120
  200. package/src/components/ui/tabs.tsx +0 -55
  201. package/src/components/ui/toast.tsx +0 -130
  202. package/src/components/ui/toaster.tsx +0 -35
  203. package/src/components/ui/tooltip.tsx +0 -32
  204. package/src/hooks/use-conditional-controller.tsx +0 -35
  205. package/src/hooks/use-mask.tsx +0 -116
  206. package/src/hooks/use-mobile.tsx +0 -19
  207. package/src/hooks/use-toast.ts +0 -191
  208. package/src/index.ts +0 -1
  209. package/src/introduction.mdx +0 -132
  210. package/src/lib/utils.ts +0 -6
  211. package/tailwind.config.ts +0 -83
  212. package/tsconfig.json +0 -27
package/package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "name": "@phsa.tec/design-system-react",
3
- "version": "0.1.5",
3
+ "version": "0.1.8",
4
4
  "private": false,
5
- "main": "./src/index.ts",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ },
14
+ "./styles": "./dist/styles.css"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
6
19
  "scripts": {
7
20
  "dev": "next dev",
8
21
  "build": "next build",
@@ -12,7 +25,9 @@
12
25
  "build-storybook": "storybook build",
13
26
  "deploy-storybook": "storybook build && touch storybook-static/.nojekyll",
14
27
  "test": "jest",
15
- "prepare": "husky install"
28
+ "prepare": "husky install",
29
+ "build:lib": "tsup",
30
+ "prepublishOnly": "npm run build:lib"
16
31
  },
17
32
  "dependencies": {
18
33
  "@hookform/resolvers": "^3.9.1",
@@ -69,8 +84,8 @@
69
84
  "@types/jest": "^29.5.14",
70
85
  "@types/lodash": "^4.17.15",
71
86
  "@types/node": "^20",
72
- "@types/react": "^18",
73
- "@types/react-dom": "^18",
87
+ "@types/react": "^19.1.8",
88
+ "@types/react-dom": "^19.1.6",
74
89
  "@types/react-input-mask": "^3.0.6",
75
90
  "babel-jest": "^29.7.0",
76
91
  "eslint": "^8",
@@ -84,6 +99,7 @@
84
99
  "storybook": "^9.0.15",
85
100
  "tailwindcss": "^3.4.1",
86
101
  "ts-node": "^10.9.2",
102
+ "tsup": "^8.5.0",
87
103
  "typescript": "^5"
88
104
  },
89
105
  "publishConfig": {
@@ -91,7 +107,7 @@
91
107
  },
92
108
  "repository": {
93
109
  "type": "git",
94
- "url": "https://github.com/henriques4nti4go/phsa-design-system"
110
+ "url": "git+https://github.com/henriques4nti4go/phsa-design-system.git"
95
111
  },
96
112
  "keywords": [
97
113
  "react",
@@ -123,5 +139,29 @@
123
139
  "homepage": "https://github.com/henriques4nti4go/phsa-design-system#readme",
124
140
  "bugs": {
125
141
  "url": "https://github.com/henriques4nti4go/phsa-design-system/issues"
142
+ },
143
+ "peerDependencies": {
144
+ "react": ">=18.0.0",
145
+ "react-dom": ">=18.0.0",
146
+ "@radix-ui/react-alert-dialog": "^1.1.6",
147
+ "@radix-ui/react-avatar": "^1.1.1",
148
+ "@radix-ui/react-checkbox": "^1.1.2",
149
+ "@radix-ui/react-collapsible": "^1.1.1",
150
+ "@radix-ui/react-dialog": "^1.1.2",
151
+ "@radix-ui/react-dropdown-menu": "^2.1.2",
152
+ "@radix-ui/react-icons": "^1.3.1",
153
+ "@radix-ui/react-label": "^2.1.0",
154
+ "@radix-ui/react-popover": "^1.1.2",
155
+ "@radix-ui/react-select": "^2.1.2",
156
+ "@radix-ui/react-separator": "^1.1.0",
157
+ "@radix-ui/react-slot": "^1.1.2",
158
+ "@radix-ui/react-switch": "^1.1.3",
159
+ "@radix-ui/react-tabs": "^1.1.3",
160
+ "@radix-ui/react-toast": "^1.2.2",
161
+ "@radix-ui/react-tooltip": "^1.1.4",
162
+ "class-variance-authority": "^0.7.0",
163
+ "clsx": "^2.1.1",
164
+ "lucide-react": "^0.460.0",
165
+ "tailwind-merge": "^2.5.4"
126
166
  }
127
167
  }
package/.eslintrc.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "extends": [
3
- "next/core-web-vitals",
4
- "next/typescript",
5
- "plugin:storybook/recommended"
6
- ]
7
- }
@@ -1,75 +0,0 @@
1
- name: Deploy Storybook to GitHub Pages
2
-
3
- on:
4
- push:
5
- branches: [master]
6
- pull_request:
7
- branches: [master]
8
-
9
- permissions:
10
- contents: read
11
- pages: write
12
- id-token: write
13
-
14
- concurrency:
15
- group: "pages"
16
- cancel-in-progress: false
17
-
18
- jobs:
19
- test:
20
- runs-on: ubuntu-latest
21
- steps:
22
- - name: Checkout
23
- uses: actions/checkout@v4
24
-
25
- - name: Setup Node
26
- uses: actions/setup-node@v4
27
- with:
28
- node-version: "20"
29
- cache: "yarn"
30
-
31
- - name: Install dependencies
32
- run: yarn install --frozen-lockfile
33
-
34
- - name: Run tests
35
- run: yarn test
36
-
37
- build:
38
- runs-on: ubuntu-latest
39
- needs: test
40
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
41
- steps:
42
- - name: Checkout
43
- uses: actions/checkout@v4
44
-
45
- - name: Setup Node
46
- uses: actions/setup-node@v4
47
- with:
48
- node-version: "20"
49
- cache: "yarn"
50
-
51
- - name: Install dependencies
52
- run: yarn install --frozen-lockfile
53
-
54
- - name: Build Storybook
55
- run: yarn build-storybook
56
-
57
- - name: Setup Pages
58
- uses: actions/configure-pages@v4
59
-
60
- - name: Upload artifact
61
- uses: actions/upload-pages-artifact@v3
62
- with:
63
- path: "./storybook-static"
64
-
65
- deploy:
66
- environment:
67
- name: github-pages
68
- url: ${{ steps.deployment.outputs.page_url }}
69
- runs-on: ubuntu-latest
70
- needs: build
71
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
72
- steps:
73
- - name: Deploy to GitHub Pages
74
- id: deployment
75
- uses: actions/deploy-pages@v4
@@ -1,16 +0,0 @@
1
- import type { StorybookConfig } from "@storybook/nextjs";
2
-
3
- const config: StorybookConfig = {
4
- stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
5
- addons: [
6
- "@storybook/addon-onboarding",
7
- "@chromatic-com/storybook",
8
- "@storybook/addon-docs"
9
- ],
10
- framework: {
11
- name: "@storybook/nextjs",
12
- options: {},
13
- },
14
- staticDirs: ["../public"],
15
- };
16
- export default config;
@@ -1,15 +0,0 @@
1
- import type { Preview } from "@storybook/nextjs";
2
- import "../src/app/globals.css";
3
-
4
- const preview: Preview = {
5
- parameters: {
6
- controls: {
7
- matchers: {
8
- color: /(background|color)$/i,
9
- date: /Date$/i,
10
- },
11
- },
12
- },
13
- };
14
-
15
- export default preview;
package/components.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema.json",
3
- "style": "new-york",
4
- "rsc": true,
5
- "tsx": true,
6
- "tailwind": {
7
- "config": "tailwind.config.ts",
8
- "css": "src/app/globals.css",
9
- "baseColor": "neutral",
10
- "cssVariables": true,
11
- "prefix": ""
12
- },
13
- "aliases": {
14
- "components": "@/components",
15
- "utils": "@/lib/utils",
16
- "ui": "@/components/ui",
17
- "lib": "@/lib",
18
- "hooks": "@/hooks"
19
- },
20
- "iconLibrary": "lucide"
21
- }
package/jest.config.ts DELETED
@@ -1,25 +0,0 @@
1
- import type { Config } from "jest";
2
- import nextJest from "next/jest.js";
3
-
4
- const createJestConfig = nextJest({
5
- // Provide the path to your Next.js app to load next.config.js and .env files in your test environment
6
- dir: "./",
7
- });
8
-
9
- // Add any custom config to be passed to Jest
10
- const config: Config = {
11
- coverageProvider: "v8",
12
- testEnvironment: "jsdom",
13
- // Add more setup options before each test is run
14
- // setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
15
- testMatch: [
16
- "<rootDir>/**/__tests__/**/*.test.[jt]s?(x)",
17
- "<rootDir>/**/?(*.)+(spec|test).[jt]s?(x)",
18
- ],
19
- moduleNameMapper: {
20
- "^rehype-raw$": "<rootDir>/__mocks__/rehype-raw.js",
21
- },
22
- };
23
-
24
- // createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
25
- export default createJestConfig(config);
package/next.config.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { NextConfig } from "next";
2
-
3
- const nextConfig: NextConfig = {
4
- /* config options here */
5
- };
6
-
7
- export default nextConfig;
@@ -1,8 +0,0 @@
1
- /** @type {import('postcss-load-config').Config} */
2
- const config = {
3
- plugins: {
4
- tailwindcss: {},
5
- },
6
- };
7
-
8
- export default config;
package/public/file.svg DELETED
@@ -1 +0,0 @@
1
- <svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 13.5V5.41a1 1 0 0 0-.3-.7L9.8.29A1 1 0 0 0 9.08 0H1.5v13.5A2.5 2.5 0 0 0 4 16h8a2.5 2.5 0 0 0 2.5-2.5m-1.5 0v-7H8v-5H3v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1M9.5 5V2.12L12.38 5zM5.13 5h-.62v1.25h2.12V5zm-.62 3h7.12v1.25H4.5zm.62 3h-.62v1.25h7.12V11z" clip-rule="evenodd" fill="#666" fill-rule="evenodd"/></svg>
package/public/globe.svg DELETED
@@ -1 +0,0 @@
1
- <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.27 14.1a6.5 6.5 0 0 0 3.67-3.45q-1.24.21-2.7.34-.31 1.83-.97 3.1M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.48-1.52a7 7 0 0 1-.96 0H7.5a4 4 0 0 1-.84-1.32q-.38-.89-.63-2.08a40 40 0 0 0 3.92 0q-.25 1.2-.63 2.08a4 4 0 0 1-.84 1.31zm2.94-4.76q1.66-.15 2.95-.43a7 7 0 0 0 0-2.58q-1.3-.27-2.95-.43a18 18 0 0 1 0 3.44m-1.27-3.54a17 17 0 0 1 0 3.64 39 39 0 0 1-4.3 0 17 17 0 0 1 0-3.64 39 39 0 0 1 4.3 0m1.1-1.17q1.45.13 2.69.34a6.5 6.5 0 0 0-3.67-3.44q.65 1.26.98 3.1M8.48 1.5l.01.02q.41.37.84 1.31.38.89.63 2.08a40 40 0 0 0-3.92 0q.25-1.2.63-2.08a4 4 0 0 1 .85-1.32 7 7 0 0 1 .96 0m-2.75.4a6.5 6.5 0 0 0-3.67 3.44 29 29 0 0 1 2.7-.34q.31-1.83.97-3.1M4.58 6.28q-1.66.16-2.95.43a7 7 0 0 0 0 2.58q1.3.27 2.95.43a18 18 0 0 1 0-3.44m.17 4.71q-1.45-.12-2.69-.34a6.5 6.5 0 0 0 3.67 3.44q-.65-1.27-.98-3.1" fill="#666"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>
package/public/next.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
package/public/vercel.svg DELETED
@@ -1 +0,0 @@
1
- <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1155 1000"><path d="m577.3 0 577.4 1000H0z" fill="#fff"/></svg>
package/public/window.svg DELETED
@@ -1 +0,0 @@
1
- <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2.5h13v10a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1zM0 1h16v11.5a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 0 12.5zm3.75 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5M7 4.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m1.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5" fill="#666"/></svg>
@@ -1,178 +0,0 @@
1
- "use client";
2
-
3
- import { ColumnDef } from "@tanstack/react-table";
4
- import { z } from "zod";
5
- import {
6
- ArrowDownIcon,
7
- ArrowRightIcon,
8
- ArrowUpIcon,
9
- CheckCircledIcon,
10
- CircleIcon,
11
- CrossCircledIcon,
12
- QuestionMarkCircledIcon,
13
- StopwatchIcon,
14
- } from "@radix-ui/react-icons";
15
- import {
16
- Badge,
17
- DataTableColumnHeader,
18
- DataTableRowActions,
19
- } from "@/components";
20
-
21
- export const labels = [
22
- {
23
- value: "bug",
24
- label: "Bug",
25
- },
26
- {
27
- value: "feature",
28
- label: "Feature",
29
- },
30
- {
31
- value: "documentation",
32
- label: "Documentation",
33
- },
34
- ];
35
-
36
- export const statuses = [
37
- {
38
- value: "backlog",
39
- label: "Backlog",
40
- icon: QuestionMarkCircledIcon,
41
- },
42
- {
43
- value: "todo",
44
- label: "Todo",
45
- icon: CircleIcon,
46
- },
47
- {
48
- value: "in progress",
49
- label: "In Progress",
50
- icon: StopwatchIcon,
51
- },
52
- {
53
- value: "done",
54
- label: "Done",
55
- icon: CheckCircledIcon,
56
- },
57
- {
58
- value: "canceled",
59
- label: "Canceled",
60
- icon: CrossCircledIcon,
61
- },
62
- ];
63
-
64
- export const priorities = [
65
- {
66
- label: "Low",
67
- value: "low",
68
- icon: ArrowDownIcon,
69
- },
70
- {
71
- label: "Medium",
72
- value: "medium",
73
- icon: ArrowRightIcon,
74
- },
75
- {
76
- label: "High",
77
- value: "high",
78
- icon: ArrowUpIcon,
79
- },
80
- ];
81
-
82
- export const taskSchema = z.object({
83
- id: z.string(),
84
- title: z.string(),
85
- status: z.string(),
86
- label: z.string(),
87
- priority: z.string(),
88
- });
89
-
90
- export type Task = z.infer<typeof taskSchema>;
91
-
92
- export const columns: ColumnDef<Task>[] = [
93
- {
94
- accessorKey: "id",
95
- header: ({ column }) => (
96
- <DataTableColumnHeader column={column} title="Task" />
97
- ),
98
- cell: ({ row }) => <div className="w-[80px]">{row.getValue("id")}</div>,
99
- enableSorting: false,
100
- enableHiding: false,
101
- },
102
- {
103
- accessorKey: "title",
104
- header: ({ column }) => (
105
- <DataTableColumnHeader column={column} title="Title" />
106
- ),
107
- cell: ({ row }) => {
108
- const label = labels.find((label) => label.value === row.original.label);
109
-
110
- return (
111
- <div className="flex space-x-2">
112
- {label && <Badge variant="outline">{label.label}</Badge>}
113
- <span className="max-w-[500px] truncate font-medium">
114
- {row.getValue("title")}
115
- </span>
116
- </div>
117
- );
118
- },
119
- },
120
- {
121
- accessorKey: "status",
122
- header: ({ column }) => (
123
- <DataTableColumnHeader column={column} title="Status" />
124
- ),
125
- cell: ({ row }) => {
126
- const status = statuses.find(
127
- (status) => status.value === row.getValue("status")
128
- );
129
-
130
- if (!status) {
131
- return null;
132
- }
133
-
134
- return (
135
- <div className="flex w-[100px] items-center">
136
- {status.icon && (
137
- <status.icon className="mr-2 h-4 w-4 text-muted-foreground" />
138
- )}
139
- <span>{status.label}</span>
140
- </div>
141
- );
142
- },
143
- filterFn: (row, id, value) => {
144
- return value.includes(row.getValue(id));
145
- },
146
- },
147
- {
148
- accessorKey: "priority",
149
- header: ({ column }) => (
150
- <DataTableColumnHeader column={column} title="Priority" />
151
- ),
152
- cell: ({ row }) => {
153
- const priority = priorities.find(
154
- (priority) => priority.value === row.getValue("priority")
155
- );
156
-
157
- if (!priority) {
158
- return null;
159
- }
160
-
161
- return (
162
- <div className="flex items-center">
163
- {priority.icon && (
164
- <priority.icon className="mr-2 h-4 w-4 text-muted-foreground" />
165
- )}
166
- <span>{priority.label}</span>
167
- </div>
168
- );
169
- },
170
- filterFn: (row, id, value) => {
171
- return value.includes(row.getValue(id));
172
- },
173
- },
174
- {
175
- id: "actions",
176
- cell: ({ row }) => <DataTableRowActions row={row} />,
177
- },
178
- ];
Binary file
Binary file
Binary file
@@ -1,94 +0,0 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");
2
-
3
- @tailwind base;
4
- @tailwind components;
5
- @tailwind utilities;
6
-
7
- body {
8
- font-family: "Roboto", Arial, Helvetica, sans-serif; /* Adicionando a fonte Roboto */
9
- }
10
-
11
- @layer base {
12
- :root {
13
- --background: 0 0% 100%;
14
- --foreground: 150 6% 25%;
15
- --card: 0 0% 100%;
16
- --card-foreground: 150 6% 25%;
17
- --popover: 0 0% 100%;
18
- --popover-foreground: 150 6% 25%;
19
- --primary: 145 63% 42%;
20
- --primary-foreground: 0 0% 98%;
21
- --secondary: 150 10% 96%;
22
- --secondary-foreground: 150 6% 25%;
23
- --muted: 150 10% 96%;
24
- --muted-foreground: 150 6% 45%;
25
- --accent: 150 10% 96%;
26
- --accent-foreground: 150 6% 25%;
27
- --success: 145 63% 42%;
28
- --success-foreground: 0 0% 98%;
29
- --warning: 48 89% 50%;
30
- --destructive: 0 84.2% 60.2%;
31
- --destructive-foreground: 0 0% 98%;
32
- --border: 150 12% 88%;
33
- --input: 150 12% 88%;
34
- --ring: 145 63% 42%;
35
- --chart-1: 12 76% 61%;
36
- --chart-2: 173 58% 39%;
37
- --chart-3: 197 37% 24%;
38
- --chart-4: 43 74% 66%;
39
- --chart-5: 27 87% 67%;
40
- --radius: 0.5rem;
41
- --sidebar-background: 150 15% 98%;
42
- --sidebar-foreground: 150 6% 30%;
43
- --sidebar-primary: 145 63% 42%;
44
- --sidebar-primary-foreground: 0 0% 98%;
45
- --sidebar-accent: 150 15% 95%;
46
- --sidebar-accent-foreground: 150 6% 25%;
47
- --sidebar-border: 150 15% 90%;
48
- --sidebar-ring: 145 63% 42%;
49
- }
50
-
51
- .dark {
52
- --background: 150 15% 4%;
53
- --foreground: 150 10% 95%;
54
- --card: 150 15% 4%;
55
- --card-foreground: 150 10% 95%;
56
- --popover: 150 15% 4%;
57
- --popover-foreground: 150 10% 95%;
58
- --primary: 145 63% 48%;
59
- --primary-foreground: 150 15% 8%;
60
- --secondary: 150 12% 12%;
61
- --secondary-foreground: 150 10% 95%;
62
- --muted: 150 12% 12%;
63
- --muted-foreground: 150 8% 60%;
64
- --accent: 150 12% 12%;
65
- --accent-foreground: 150 10% 95%;
66
- --destructive: 0 62.8% 30.6%;
67
- --destructive-foreground: 0 0% 98%;
68
- --border: 150 12% 18%;
69
- --input: 150 12% 18%;
70
- --ring: 145 63% 48%;
71
- --chart-1: 220 70% 50%;
72
- --chart-2: 160 60% 45%;
73
- --chart-3: 30 80% 55%;
74
- --chart-4: 280 65% 60%;
75
- --chart-5: 340 75% 55%;
76
- --sidebar-background: 150 15% 8%;
77
- --sidebar-foreground: 150 10% 90%;
78
- --sidebar-primary: 145 63% 48%;
79
- --sidebar-primary-foreground: 150 15% 8%;
80
- --sidebar-accent: 150 12% 15%;
81
- --sidebar-accent-foreground: 150 10% 90%;
82
- --sidebar-border: 150 12% 15%;
83
- --sidebar-ring: 145 63% 48%;
84
- }
85
- }
86
-
87
- @layer base {
88
- * {
89
- @apply border-border;
90
- }
91
- body {
92
- @apply bg-background text-foreground;
93
- }
94
- }
@@ -1,35 +0,0 @@
1
- import type { Metadata } from "next";
2
- import localFont from "next/font/local";
3
- import "./globals.css";
4
-
5
- const geistSans = localFont({
6
- src: "./fonts/GeistVF.woff",
7
- variable: "--font-geist-sans",
8
- weight: "100 900",
9
- });
10
- const geistMono = localFont({
11
- src: "./fonts/GeistMonoVF.woff",
12
- variable: "--font-geist-mono",
13
- weight: "100 900",
14
- });
15
-
16
- export const metadata: Metadata = {
17
- title: "Create Next App",
18
- description: "Generated by create next app",
19
- };
20
-
21
- export default function RootLayout({
22
- children,
23
- }: Readonly<{
24
- children: React.ReactNode;
25
- }>) {
26
- return (
27
- <html lang="en">
28
- <body
29
- className={`${geistSans.variable} ${geistMono.variable} antialiased`}
30
- >
31
- {children}
32
- </body>
33
- </html>
34
- );
35
- }
package/src/app/page.tsx DELETED
@@ -1,7 +0,0 @@
1
- "use client";
2
-
3
- export default function Home() {
4
- return (
5
- <div className="flex w-full justify-center flex-col items-center"></div>
6
- );
7
- }
@@ -1,45 +0,0 @@
1
- import {
2
- AlertDialog as AlertDialogUI,
3
- AlertDialogAction,
4
- AlertDialogCancel,
5
- AlertDialogContent,
6
- AlertDialogDescription,
7
- AlertDialogFooter,
8
- AlertDialogHeader,
9
- AlertDialogTitle,
10
- AlertDialogTrigger,
11
- } from "../../ui/alert-dialog";
12
-
13
- export type AlertDialogProps = {
14
- title: string;
15
- description?: string;
16
- children: React.ReactNode;
17
- onConfirm?: () => void;
18
- onCancel?: () => void;
19
- };
20
-
21
- export const AlertDialog = ({
22
- title,
23
- description,
24
- children,
25
- onConfirm,
26
- onCancel,
27
- }: AlertDialogProps) => {
28
- return (
29
- <AlertDialogUI>
30
- <AlertDialogTrigger asChild>{children}</AlertDialogTrigger>
31
- <AlertDialogContent>
32
- <AlertDialogHeader>
33
- <AlertDialogTitle>{title}</AlertDialogTitle>
34
- {description && (
35
- <AlertDialogDescription>{description}</AlertDialogDescription>
36
- )}
37
- </AlertDialogHeader>
38
- <AlertDialogFooter>
39
- <AlertDialogCancel onClick={onCancel}>Cancel</AlertDialogCancel>
40
- <AlertDialogAction onClick={onConfirm}>Continue</AlertDialogAction>
41
- </AlertDialogFooter>
42
- </AlertDialogContent>
43
- </AlertDialogUI>
44
- );
45
- };