siesa-ui-kit 1.0.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 (198) hide show
  1. package/README.md +89 -0
  2. package/bin/install.cjs +502 -0
  3. package/bin/prepare-publish.cjs +28 -0
  4. package/bin/restore-folders.cjs +28 -0
  5. package/claude/agents/siesa-ui-kit-specialist.md +2401 -0
  6. package/claude/prompts/component-template.md +121 -0
  7. package/claude/settings.local.json +61 -0
  8. package/docs/border-radius.md +1261 -0
  9. package/docs/colors.md +832 -0
  10. package/docs/dark-mode-guide.md +1426 -0
  11. package/docs/filters.md +1243 -0
  12. package/docs/icons.md +1283 -0
  13. package/docs/shadows.md +1377 -0
  14. package/docs/spacing.md +1684 -0
  15. package/docs/typography.md +1268 -0
  16. package/package.json +83 -0
  17. package/postcss.config.cjs +6 -0
  18. package/public/,Business Logo.png +0 -0
  19. package/public/.Siesa Logo.png +0 -0
  20. package/public/bg_siesa.png +0 -0
  21. package/public/siesa_logo_mobile.png +0 -0
  22. package/public/vite.svg +1 -0
  23. package/src/App.css +42 -0
  24. package/src/App.tsx +8 -0
  25. package/src/ButtonTest.tsx +147 -0
  26. package/src/assets/fonts/README.md +261 -0
  27. package/src/assets/fonts/SiesaBT/SiesaBT-Bold.otf +0 -0
  28. package/src/assets/fonts/SiesaBT/SiesaBT-Light.otf +0 -0
  29. package/src/assets/fonts/SiesaBT/SiesaBT-Regular.otf +0 -0
  30. package/src/assets/react.svg +1 -0
  31. package/src/components/Alert/Alert.stories.tsx +332 -0
  32. package/src/components/Alert/Alert.tsx +106 -0
  33. package/src/components/Alert/Alert.types.ts +54 -0
  34. package/src/components/Avatar/Avatar.stories.tsx +494 -0
  35. package/src/components/Avatar/Avatar.tsx +143 -0
  36. package/src/components/Avatar/Avatar.types.ts +53 -0
  37. package/src/components/Badge/Badge.stories.tsx +339 -0
  38. package/src/components/Badge/Badge.tsx +278 -0
  39. package/src/components/Badge/Badge.types.ts +58 -0
  40. package/src/components/Button/Button.stories.tsx +950 -0
  41. package/src/components/Button/Button.tsx +337 -0
  42. package/src/components/Button/Button.types.ts +180 -0
  43. package/src/components/Button/icons.tsx +87 -0
  44. package/src/components/Button/index.ts +3 -0
  45. package/src/components/Checkbox/Checkbox.stories.tsx +453 -0
  46. package/src/components/Checkbox/Checkbox.tsx +208 -0
  47. package/src/components/Checkbox/Checkbox.types.ts +61 -0
  48. package/src/components/DescriptionList/DescriptionList.stories.tsx +250 -0
  49. package/src/components/DescriptionList/DescriptionList.tsx +96 -0
  50. package/src/components/DescriptionList/DescriptionList.types.ts +29 -0
  51. package/src/components/Divider/Divider.stories.tsx +263 -0
  52. package/src/components/Divider/Divider.tsx +80 -0
  53. package/src/components/Divider/Divider.types.ts +24 -0
  54. package/src/components/Dropdown/Dropdown.stories.tsx +552 -0
  55. package/src/components/Dropdown/Dropdown.tsx +422 -0
  56. package/src/components/Dropdown/Dropdown.types.ts +146 -0
  57. package/src/components/Dropdown/README.md +266 -0
  58. package/src/components/Dropdown/icons.tsx +72 -0
  59. package/src/components/Dropdown/index.ts +8 -0
  60. package/src/components/Input/Input.stories.tsx +583 -0
  61. package/src/components/Input/Input.tsx +204 -0
  62. package/src/components/Input/Input.types.ts +80 -0
  63. package/src/components/Input/icons.tsx +145 -0
  64. package/src/components/Input/index.ts +2 -0
  65. package/src/components/LoginView/LoginView.stories.tsx +148 -0
  66. package/src/components/LoginView/LoginView.tsx +426 -0
  67. package/src/components/LoginView/LoginView.types.ts +52 -0
  68. package/src/components/LoginView/README.md +396 -0
  69. package/src/components/LoginView/icons.tsx +85 -0
  70. package/src/components/LoginView/index.ts +3 -0
  71. package/src/components/Navbar/Navbar.stories.tsx +810 -0
  72. package/src/components/Navbar/Navbar.tsx +755 -0
  73. package/src/components/Navbar/Navbar.types.ts +219 -0
  74. package/src/components/Navbar/README.md +279 -0
  75. package/src/components/Navbar/icons.tsx +102 -0
  76. package/src/components/Navbar/index.ts +8 -0
  77. package/src/components/NavigationBar/NavigationBar.stories.tsx +406 -0
  78. package/src/components/NavigationBar/NavigationBar.tsx +246 -0
  79. package/src/components/NavigationBar/NavigationBar.types.ts +74 -0
  80. package/src/components/NavigationBar/README.md +469 -0
  81. package/src/components/NavigationBar/index.ts +2 -0
  82. package/src/components/NavigationRail/NavigationRail.stories.tsx +417 -0
  83. package/src/components/NavigationRail/NavigationRail.tsx +418 -0
  84. package/src/components/NavigationRail/NavigationRail.types.ts +109 -0
  85. package/src/components/NavigationRail/README.md +224 -0
  86. package/src/components/NavigationRail/index.ts +2 -0
  87. package/src/components/Notification/Notification.stories.tsx +513 -0
  88. package/src/components/Notification/Notification.tsx +145 -0
  89. package/src/components/Notification/Notification.types.ts +142 -0
  90. package/src/components/Notification/README.md +409 -0
  91. package/src/components/Notification/index.ts +3 -0
  92. package/src/components/POSConvention/POSConvention.stories.tsx +235 -0
  93. package/src/components/POSConvention/POSConvention.tsx +129 -0
  94. package/src/components/POSConvention/POSConvention.types.ts +38 -0
  95. package/src/components/POSConvention/README.md +123 -0
  96. package/src/components/POSConvention/icons.tsx +45 -0
  97. package/src/components/POSConvention/index.ts +3 -0
  98. package/src/components/POSLocationButton/POSLocationButton.stories.tsx +531 -0
  99. package/src/components/POSLocationButton/POSLocationButton.tsx +247 -0
  100. package/src/components/POSLocationButton/POSLocationButton.types.ts +87 -0
  101. package/src/components/POSLocationButton/README.md +253 -0
  102. package/src/components/POSLocationButton/icons.tsx +120 -0
  103. package/src/components/POSLocationButton/index.ts +14 -0
  104. package/src/components/POSNumberButton/POSNumberButton.stories.tsx +415 -0
  105. package/src/components/POSNumberButton/POSNumberButton.tsx +179 -0
  106. package/src/components/POSNumberButton/POSNumberButton.types.ts +51 -0
  107. package/src/components/POSNumberButton/README.md +321 -0
  108. package/src/components/POSNumberButton/index.ts +3 -0
  109. package/src/components/POSProductButton/POSProductButton.stories.tsx +318 -0
  110. package/src/components/POSProductButton/POSProductButton.tsx +152 -0
  111. package/src/components/POSProductButton/POSProductButton.types.ts +46 -0
  112. package/src/components/POSProductButton/README.md +269 -0
  113. package/src/components/POSProductButton/index.ts +2 -0
  114. package/src/components/POSProductCard/POSProductCard.stories.tsx +642 -0
  115. package/src/components/POSProductCard/POSProductCard.tsx +208 -0
  116. package/src/components/POSProductCard/POSProductCard.types.ts +76 -0
  117. package/src/components/POSProductCard/README.md +179 -0
  118. package/src/components/POSProductCard/icons.tsx +26 -0
  119. package/src/components/POSProductCard/index.ts +2 -0
  120. package/src/components/POSProductSidebarItems/POSProductSidebarItems.stories.tsx +753 -0
  121. package/src/components/POSProductSidebarItems/POSProductSidebarItems.tsx +332 -0
  122. package/src/components/POSProductSidebarItems/POSProductSidebarItems.types.ts +119 -0
  123. package/src/components/POSProductSidebarItems/README.md +198 -0
  124. package/src/components/POSProductSidebarItems/icons.tsx +21 -0
  125. package/src/components/POSProductSidebarItems/index.ts +3 -0
  126. package/src/components/POSTable/POSTable.stories.tsx +737 -0
  127. package/src/components/POSTable/POSTable.tsx +401 -0
  128. package/src/components/POSTable/POSTable.types.ts +83 -0
  129. package/src/components/POSTable/README.md +286 -0
  130. package/src/components/POSTable/index.ts +7 -0
  131. package/src/components/Pagination/Pagination.stories.tsx +555 -0
  132. package/src/components/Pagination/Pagination.tsx +286 -0
  133. package/src/components/Pagination/Pagination.types.ts +93 -0
  134. package/src/components/Pagination/README.md +298 -0
  135. package/src/components/Pagination/icons.tsx +47 -0
  136. package/src/components/Pagination/index.ts +3 -0
  137. package/src/components/Quantity/Quantity.stories.tsx +457 -0
  138. package/src/components/Quantity/Quantity.tsx +289 -0
  139. package/src/components/Quantity/Quantity.types.ts +70 -0
  140. package/src/components/Radio/Radio.stories.tsx +523 -0
  141. package/src/components/Radio/Radio.tsx +170 -0
  142. package/src/components/Radio/Radio.types.ts +122 -0
  143. package/src/components/Select/README.md +299 -0
  144. package/src/components/Select/Select.stories.tsx +673 -0
  145. package/src/components/Select/Select.tsx +454 -0
  146. package/src/components/Select/Select.types.ts +148 -0
  147. package/src/components/Select/icons.tsx +50 -0
  148. package/src/components/Select/index.ts +3 -0
  149. package/src/components/SignUpView/SignUpView.stories.tsx +129 -0
  150. package/src/components/SignUpView/SignUpView.tsx +503 -0
  151. package/src/components/SignUpView/SignUpView.types.ts +58 -0
  152. package/src/components/SignUpView/icons.tsx +71 -0
  153. package/src/components/SignUpView/index.ts +3 -0
  154. package/src/components/Switch/README.md +112 -0
  155. package/src/components/Switch/Switch.stories.tsx +550 -0
  156. package/src/components/Switch/Switch.tsx +246 -0
  157. package/src/components/Switch/Switch.types.ts +67 -0
  158. package/src/components/Table/README.md +369 -0
  159. package/src/components/Table/Table.stories.tsx +805 -0
  160. package/src/components/Table/Table.tsx +688 -0
  161. package/src/components/Table/Table.types.ts +204 -0
  162. package/src/components/Table/index.ts +9 -0
  163. package/src/components/Tabs/README.md +201 -0
  164. package/src/components/Tabs/Tabs.stories.tsx +580 -0
  165. package/src/components/Tabs/Tabs.tsx +356 -0
  166. package/src/components/Tabs/Tabs.types.ts +127 -0
  167. package/src/components/Tabs/icons.tsx +129 -0
  168. package/src/components/Tabs/index.ts +11 -0
  169. package/src/components/Textarea/Textarea.stories.tsx +535 -0
  170. package/src/components/Textarea/Textarea.tsx +188 -0
  171. package/src/components/Textarea/Textarea.types.ts +54 -0
  172. package/src/context/ThemeContext.tsx +99 -0
  173. package/src/context/index.ts +1 -0
  174. package/src/index.css +29 -0
  175. package/src/index.ts +39 -0
  176. package/src/main.tsx +10 -0
  177. package/src/views/ProductsView/ProductsView.stories.tsx +344 -0
  178. package/src/views/ProductsView/ProductsView.tsx +480 -0
  179. package/src/views/ProductsView/ProductsView.types.ts +238 -0
  180. package/src/views/ProductsView/README.md +312 -0
  181. package/src/views/ProductsView/icons.tsx +38 -0
  182. package/src/views/ProductsView/index.ts +8 -0
  183. package/src/views/RecoverPasswordView/README.md +269 -0
  184. package/src/views/RecoverPasswordView/RecoverPasswordView.stories.tsx +131 -0
  185. package/src/views/RecoverPasswordView/RecoverPasswordView.tsx +376 -0
  186. package/src/views/RecoverPasswordView/RecoverPasswordView.types.ts +56 -0
  187. package/src/views/RecoverPasswordView/icons.tsx +17 -0
  188. package/src/views/RecoverPasswordView/index.ts +2 -0
  189. package/src/views/TableLayoutView/README.md +268 -0
  190. package/src/views/TableLayoutView/TableLayoutView.stories.tsx +235 -0
  191. package/src/views/TableLayoutView/TableLayoutView.tsx +461 -0
  192. package/src/views/TableLayoutView/TableLayoutView.types.ts +209 -0
  193. package/src/views/TableLayoutView/icons.tsx +113 -0
  194. package/src/views/TableLayoutView/index.ts +6 -0
  195. package/storybook/main.ts +20 -0
  196. package/storybook/preview.tsx +84 -0
  197. package/storybook/vitest.setup.ts +7 -0
  198. package/tailwind.config.js +128 -0
@@ -0,0 +1,121 @@
1
+ # 🎯 Prompt Template: Crear/Corregir Componentes
2
+
3
+ ## ✅ Crear Componente Nuevo
4
+
5
+ ```
6
+ Usando el agente @.claude\agents\siesa-ui-kit-specialist.md CREA el componente [NOMBRE_COMPONENTE]
7
+
8
+ **Figma:** [LINK_FIGMA o "No disponible"]
9
+
10
+ **Proceso completo:**
11
+ 1. Si hay Figma: extrae specs (colores, tamaños, espaciados, estados)
12
+ 2. Revisa docs necesarias (colors.md, typography.md, spacing.md, shadows.md)
13
+ 3. Usa Button como referencia de implementación
14
+ 4. Genera estructura completa en src/components/[NOMBRE_COMPONENTE]/
15
+ 5. Implementa usando tokens del sistema
16
+ 6. Asegura dark mode completo en TODOS los elementos
17
+ 7. Valida con npm run build
18
+ 8. Crea stories con todos los estados y ejemplos
19
+ 9. Genera README del componente
20
+
21
+ **Checklist obligatorio:**
22
+ - [ ] Todos los archivos necesarios (.tsx, .types.ts, .stories.tsx, index.ts, README.md)
23
+ - [ ] JSDoc completo con Usando el agente @see references
24
+ - [ ] Dark mode en todos los estados (hover, focus, active, disabled)
25
+ - [ ] Focus rings adaptativos
26
+ - [ ] Props con defaults y tipos estrictos
27
+ - [ ] Tokens del sistema (NO colores hardcodeados)
28
+ - [ ] Build sin errores
29
+ - [ ] Stories con ejemplos completos
30
+ - [ ] Pixel-perfect vs Figma (si aplica)
31
+
32
+ Reporta detalladamente todos los cambios realizados.
33
+ ```
34
+
35
+ ---
36
+
37
+ ## 🔧 Corregir Componente Existente
38
+
39
+ ```
40
+ Usando el agente @.claude\agents\siesa-ui-kit-specialist.md CORRIGE el componente [NOMBRE_COMPONENTE]
41
+
42
+ **Figma:** [LINK_FIGMA o "No disponible"]
43
+
44
+ **Proceso completo:**
45
+ 1. Si hay Figma: extrae specs (colores, tamaños, espaciados, estados)
46
+ 2. Revisa docs necesarias (colors.md, typography.md, spacing.md, shadows.md)
47
+ 3. Usa Button como referencia de implementación
48
+ 4. Compara con implementación actual en src/components/[NOMBRE_COMPONENTE]/
49
+ 5. Corrige usando tokens del sistema
50
+ 6. Asegura dark mode completo en TODOS los elementos
51
+ 7. Valida con npm run build
52
+ 8. Actualiza stories con todos los estados y ejemplos
53
+ 9. Actualiza README del componente si es necesario
54
+
55
+ **Checklist obligatorio:**
56
+ - [ ] Todos los archivos actualizados (.tsx, .types.ts, .stories.tsx)
57
+ - [ ] JSDoc completo con Usando el agente @see references
58
+ - [ ] Dark mode en todos los estados (hover, focus, active, disabled)
59
+ - [ ] Focus rings adaptativos
60
+ - [ ] Props con defaults y tipos estrictos
61
+ - [ ] Tokens del sistema (NO colores hardcodeados)
62
+ - [ ] Build sin errores
63
+ - [ ] Stories con ejemplos completos
64
+ - [ ] Pixel-perfect vs Figma (si aplica)
65
+
66
+ Reporta detalladamente todos los cambios realizados.
67
+ ```
68
+
69
+ ---
70
+
71
+ ## 🖼️ Crear/Corregir Vista (Página Completa)
72
+
73
+ ```
74
+ Usando el agente @.claude\agents\siesa-ui-kit-specialist.md CREA la vista [NOMBRE_VISTA]
75
+
76
+ **Figma:** [LINK_FIGMA]
77
+
78
+ **Descripción:** [Breve descripción de la vista/página]
79
+
80
+ **Proceso completo:**
81
+ 1. Analiza el diseño de Figma en detalle (layout, composición, espaciado)
82
+ 2. Identifica componentes existentes en src/components/ que se pueden reutilizar
83
+ 3. Si faltan componentes, créalos primero siguiendo el template de componentes
84
+ 4. Revisa docs de layout patterns (si existen) o usa principios de spacing.md
85
+ 5. Crea estructura en src/views/[NOMBRE_VISTA]/ con:
86
+ - [NombreVista].tsx (componente principal)
87
+ - [NombreVista].stories.tsx (Storybook)
88
+ - index.ts (exports)
89
+ - README.md (documentación)
90
+ 6. Compone la vista usando componentes del Storybook
91
+ 7. Aplica responsive design (mobile-first)
92
+ 8. Asegura dark mode completo
93
+ 9. Valida con npm run build y npm run storybook
94
+ 10. Documenta uso y props en README
95
+
96
+ **Checklist obligatorio:**
97
+ - [ ] Análisis completo de Figma (secciones, componentes, layout)
98
+ - [ ] Todos los componentes necesarios existen o fueron creados
99
+ - [ ] Composición correcta con componentes del sistema
100
+ - [ ] Responsive design (breakpoints: sm, md, lg, xl)
101
+ - [ ] Dark mode en toda la vista
102
+ - [ ] Tokens del sistema para espaciado y colores
103
+ - [ ] Stories con diferentes estados (empty, loading, error, success)
104
+ - [ ] README con capturas y ejemplos de uso
105
+ - [ ] Build sin errores
106
+ - [ ] Pixel-perfect vs Figma
107
+
108
+ **Estructura esperada:**
109
+ src/views/[NombreVista]/
110
+ ├── [NombreVista].tsx
111
+ ├── [NombreVista].stories.tsx
112
+ ├── index.ts
113
+ └── README.md
114
+
115
+ Reporta detalladamente la composición y componentes utilizados.
116
+ ```
117
+
118
+ ---
119
+
120
+ **Versión**: 1.1.0
121
+ **Última actualización**: 2025-11-12
@@ -0,0 +1,61 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(claude mcp add:*)",
5
+ "Bash(where:*)",
6
+ "Bash(set CLAUDE_CODE_GIT_BASH_PATH=C:UsersssanchezeAppDataLocalProgramsGitusrbinbash.exe)",
7
+ "Bash(setx CLAUDE_CODE_GIT_BASH_PATH \"C:\\Users\\ssancheze\\AppData\\Local\\Programs\\Git\\usr\\bin\\bash.exe\")",
8
+ "Bash($env:CLAUDE_CODE_GIT_BASH_PATH=\"C:\\Users\\ssancheze\\AppData\\Local\\Programs\\Git\\usr\\bin\\bash.exe\")",
9
+ "Bash(export CLAUDE_CODE_GIT_BASH_PATH=\"C:\\Users\\ssancheze\\AppData\\Local\\Programs\\Git\\usr\\bin\\bash.exe\")",
10
+ "Bash(claude mcp list:*)",
11
+ "Bash(claude mcp)",
12
+ "Bash(nul)",
13
+ "WebSearch",
14
+ "Bash(cmd /c npx -y figma-developer-mcp --help)",
15
+ "Bash(npx -y figma-developer-mcp:*)",
16
+ "Bash(claude mcp get:*)",
17
+ "Bash(npm install:*)",
18
+ "Bash(npx tailwindcss init:*)",
19
+ "Bash(npm run storybook:*)",
20
+ "Bash(taskkill:*)",
21
+ "Bash(npx kill-port:*)",
22
+ "Bash(cmd /c claude mcp add --transport http figma-desktop http://127.0.0.1:3845/mcp)",
23
+ "Bash(dir \"C:\\Users\\ssancheze\\AppData\\Local\\Programs\\Git\")",
24
+ "Bash(dir /B:*)",
25
+ "WebFetch(domain:www.figma.com)",
26
+ "mcp__figma-desktop__get_design_context",
27
+ "mcp__figma-desktop__get_variable_defs",
28
+ "mcp__figma-desktop__get_screenshot",
29
+ "Bash(npm run build:*)",
30
+ "Bash(timeout 10 npm run dev:*)",
31
+ "Bash(npm run dev:*)",
32
+ "mcp__figma-desktop__get_metadata",
33
+ "Bash(netstat:*)",
34
+ "Bash(findstr:*)",
35
+ "WebFetch(domain:storybook.js.org)",
36
+ "Bash(if not exist docs mkdir docs)",
37
+ "Bash(npm uninstall:*)",
38
+ "Bash(move postcss.config.js postcss.config.cjs)",
39
+ "Bash(del .storybookpreview.ts)",
40
+ "Bash(python update_stories.py:*)",
41
+ "Bash(del update_stories.py)",
42
+ "Bash(timeout /t 15 /nobreak:*)",
43
+ "Bash(dir:*)",
44
+ "Bash(git mv:*)",
45
+ "mcp__figma__get_metadata",
46
+ "mcp__figma__get_design_context",
47
+ "mcp__figma__get_screenshot",
48
+ "Bash(if not exist \"C:\\Users\\ssancheze\\Desktop\\Dev\\SiesaUIKit\\src\\components\\Navbar\" mkdir \"C:\\Users\\ssancheze\\Desktop\\Dev\\SiesaUIKit\\src\\components\\Navbar\")",
49
+ "Bash(timeout:*)",
50
+ "Bash(ping:*)",
51
+ "Bash(if not exist \"public\" mkdir \"public\")",
52
+ "Bash(if not exist \"C:\\Users\\ssancheze\\Desktop\\Dev\\SiesaUIKit\\src\\components\\NavigationRail\" mkdir \"C:\\Users\\ssancheze\\Desktop\\Dev\\SiesaUIKit\\src\\components\\NavigationRail\")",
53
+ "Bash(mkdir:*)",
54
+ "Bash(find:*)",
55
+ "Bash(curl:*)",
56
+ "mcp__figma__get_variable_defs"
57
+ ],
58
+ "deny": [],
59
+ "ask": []
60
+ }
61
+ }