siesa-ui-kit 1.0.2 → 1.0.3

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 (236) hide show
  1. package/package.json +2 -9
  2. package/claude/settings.local.json +0 -7
  3. package/docs/border-radius.md +0 -1261
  4. package/docs/colors.md +0 -832
  5. package/docs/dark-mode-guide.md +0 -1426
  6. package/docs/filters.md +0 -1243
  7. package/docs/icons.md +0 -1283
  8. package/docs/shadows.md +0 -1377
  9. package/docs/spacing.md +0 -1684
  10. package/docs/typography.md +0 -1268
  11. package/postcss.config.cjs +0 -6
  12. package/public/,Business Logo.png +0 -0
  13. package/public/.Siesa Logo.png +0 -0
  14. package/public/bg_siesa.png +0 -0
  15. package/public/siesa_logo_mobile.png +0 -0
  16. package/public/vite.svg +0 -1
  17. package/src/App.css +0 -42
  18. package/src/App.tsx +0 -8
  19. package/src/ButtonTest.tsx +0 -147
  20. package/src/assets/fonts/README.md +0 -261
  21. package/src/assets/fonts/SiesaBT/SiesaBT-Bold.otf +0 -0
  22. package/src/assets/fonts/SiesaBT/SiesaBT-Light.otf +0 -0
  23. package/src/assets/fonts/SiesaBT/SiesaBT-Regular.otf +0 -0
  24. package/src/assets/react.svg +0 -1
  25. package/src/components/Alert/Alert.stories.tsx +0 -332
  26. package/src/components/Alert/Alert.tsx +0 -106
  27. package/src/components/Alert/Alert.types.ts +0 -54
  28. package/src/components/Avatar/Avatar.stories.tsx +0 -494
  29. package/src/components/Avatar/Avatar.tsx +0 -143
  30. package/src/components/Avatar/Avatar.types.ts +0 -53
  31. package/src/components/Badge/Badge.stories.tsx +0 -339
  32. package/src/components/Badge/Badge.tsx +0 -278
  33. package/src/components/Badge/Badge.types.ts +0 -58
  34. package/src/components/Button/Button.stories.tsx +0 -950
  35. package/src/components/Button/Button.tsx +0 -337
  36. package/src/components/Button/Button.types.ts +0 -180
  37. package/src/components/Button/icons.tsx +0 -87
  38. package/src/components/Button/index.ts +0 -3
  39. package/src/components/Checkbox/Checkbox.stories.tsx +0 -453
  40. package/src/components/Checkbox/Checkbox.tsx +0 -208
  41. package/src/components/Checkbox/Checkbox.types.ts +0 -61
  42. package/src/components/DescriptionList/DescriptionList.stories.tsx +0 -250
  43. package/src/components/DescriptionList/DescriptionList.tsx +0 -96
  44. package/src/components/DescriptionList/DescriptionList.types.ts +0 -29
  45. package/src/components/Divider/Divider.stories.tsx +0 -263
  46. package/src/components/Divider/Divider.tsx +0 -80
  47. package/src/components/Divider/Divider.types.ts +0 -24
  48. package/src/components/Dropdown/Dropdown.stories.tsx +0 -552
  49. package/src/components/Dropdown/Dropdown.tsx +0 -422
  50. package/src/components/Dropdown/Dropdown.types.ts +0 -146
  51. package/src/components/Dropdown/README.md +0 -266
  52. package/src/components/Dropdown/icons.tsx +0 -72
  53. package/src/components/Dropdown/index.ts +0 -8
  54. package/src/components/DropdownItemCollapsible/DropdownItemCollapsible.stories.tsx +0 -317
  55. package/src/components/DropdownItemCollapsible/DropdownItemCollapsible.tsx +0 -287
  56. package/src/components/DropdownItemCollapsible/DropdownItemCollapsible.types.ts +0 -111
  57. package/src/components/DropdownItemCollapsible/README.md +0 -264
  58. package/src/components/DropdownItemCollapsible/icons.tsx +0 -57
  59. package/src/components/DropdownItemCollapsible/index.ts +0 -12
  60. package/src/components/DropdownItemHeading/DropdownItemHeading.stories.tsx +0 -386
  61. package/src/components/DropdownItemHeading/DropdownItemHeading.tsx +0 -216
  62. package/src/components/DropdownItemHeading/DropdownItemHeading.types.ts +0 -93
  63. package/src/components/DropdownItemHeading/README.md +0 -573
  64. package/src/components/DropdownItemHeading/icons.tsx +0 -125
  65. package/src/components/DropdownItemHeading/index.ts +0 -3
  66. package/src/components/Input/Input.stories.tsx +0 -583
  67. package/src/components/Input/Input.tsx +0 -204
  68. package/src/components/Input/Input.types.ts +0 -80
  69. package/src/components/Input/icons.tsx +0 -145
  70. package/src/components/Input/index.ts +0 -2
  71. package/src/components/LoginView/LoginView.stories.tsx +0 -148
  72. package/src/components/LoginView/LoginView.tsx +0 -426
  73. package/src/components/LoginView/LoginView.types.ts +0 -52
  74. package/src/components/LoginView/README.md +0 -396
  75. package/src/components/LoginView/icons.tsx +0 -85
  76. package/src/components/LoginView/index.ts +0 -3
  77. package/src/components/Navbar/Navbar.stories.tsx +0 -810
  78. package/src/components/Navbar/Navbar.tsx +0 -755
  79. package/src/components/Navbar/Navbar.types.ts +0 -219
  80. package/src/components/Navbar/README.md +0 -279
  81. package/src/components/Navbar/icons.tsx +0 -102
  82. package/src/components/Navbar/index.ts +0 -8
  83. package/src/components/NavigationBar/NavigationBar.stories.tsx +0 -406
  84. package/src/components/NavigationBar/NavigationBar.tsx +0 -246
  85. package/src/components/NavigationBar/NavigationBar.types.ts +0 -74
  86. package/src/components/NavigationBar/README.md +0 -469
  87. package/src/components/NavigationBar/index.ts +0 -2
  88. package/src/components/NavigationRail/NavigationRail.stories.tsx +0 -417
  89. package/src/components/NavigationRail/NavigationRail.tsx +0 -418
  90. package/src/components/NavigationRail/NavigationRail.types.ts +0 -109
  91. package/src/components/NavigationRail/README.md +0 -224
  92. package/src/components/NavigationRail/index.ts +0 -2
  93. package/src/components/NavigationRailItem/NavigationRailItem.stories.tsx +0 -667
  94. package/src/components/NavigationRailItem/NavigationRailItem.tsx +0 -313
  95. package/src/components/NavigationRailItem/NavigationRailItem.types.ts +0 -167
  96. package/src/components/NavigationRailItem/README.md +0 -476
  97. package/src/components/NavigationRailItem/index.ts +0 -2
  98. package/src/components/NavigationRailPanel/NavigationRailPanel.stories.tsx +0 -462
  99. package/src/components/NavigationRailPanel/NavigationRailPanel.tsx +0 -332
  100. package/src/components/NavigationRailPanel/NavigationRailPanel.types.ts +0 -178
  101. package/src/components/NavigationRailPanel/README.md +0 -461
  102. package/src/components/NavigationRailPanel/index.ts +0 -6
  103. package/src/components/NavigationRailTypes/NavigationRailTypes.stories.tsx +0 -528
  104. package/src/components/NavigationRailTypes/NavigationRailTypes.tsx +0 -378
  105. package/src/components/NavigationRailTypes/NavigationRailTypes.types.ts +0 -130
  106. package/src/components/NavigationRailTypes/README.md +0 -573
  107. package/src/components/NavigationRailTypes/icons.tsx +0 -141
  108. package/src/components/NavigationRailTypes/index.ts +0 -7
  109. package/src/components/Notification/Notification.stories.tsx +0 -513
  110. package/src/components/Notification/Notification.tsx +0 -145
  111. package/src/components/Notification/Notification.types.ts +0 -142
  112. package/src/components/Notification/README.md +0 -409
  113. package/src/components/Notification/index.ts +0 -3
  114. package/src/components/POSConvention/POSConvention.stories.tsx +0 -235
  115. package/src/components/POSConvention/POSConvention.tsx +0 -129
  116. package/src/components/POSConvention/POSConvention.types.ts +0 -38
  117. package/src/components/POSConvention/README.md +0 -123
  118. package/src/components/POSConvention/icons.tsx +0 -45
  119. package/src/components/POSConvention/index.ts +0 -3
  120. package/src/components/POSLocationButton/POSLocationButton.stories.tsx +0 -531
  121. package/src/components/POSLocationButton/POSLocationButton.tsx +0 -247
  122. package/src/components/POSLocationButton/POSLocationButton.types.ts +0 -87
  123. package/src/components/POSLocationButton/README.md +0 -253
  124. package/src/components/POSLocationButton/icons.tsx +0 -120
  125. package/src/components/POSLocationButton/index.ts +0 -14
  126. package/src/components/POSNumberButton/POSNumberButton.stories.tsx +0 -415
  127. package/src/components/POSNumberButton/POSNumberButton.tsx +0 -179
  128. package/src/components/POSNumberButton/POSNumberButton.types.ts +0 -51
  129. package/src/components/POSNumberButton/README.md +0 -321
  130. package/src/components/POSNumberButton/index.ts +0 -3
  131. package/src/components/POSProductButton/POSProductButton.stories.tsx +0 -318
  132. package/src/components/POSProductButton/POSProductButton.tsx +0 -152
  133. package/src/components/POSProductButton/POSProductButton.types.ts +0 -46
  134. package/src/components/POSProductButton/README.md +0 -269
  135. package/src/components/POSProductButton/index.ts +0 -2
  136. package/src/components/POSProductCard/POSProductCard.stories.tsx +0 -642
  137. package/src/components/POSProductCard/POSProductCard.tsx +0 -208
  138. package/src/components/POSProductCard/POSProductCard.types.ts +0 -76
  139. package/src/components/POSProductCard/README.md +0 -179
  140. package/src/components/POSProductCard/icons.tsx +0 -26
  141. package/src/components/POSProductCard/index.ts +0 -2
  142. package/src/components/POSProductSidebarItems/POSProductSidebarItems.stories.tsx +0 -753
  143. package/src/components/POSProductSidebarItems/POSProductSidebarItems.tsx +0 -332
  144. package/src/components/POSProductSidebarItems/POSProductSidebarItems.types.ts +0 -119
  145. package/src/components/POSProductSidebarItems/README.md +0 -198
  146. package/src/components/POSProductSidebarItems/icons.tsx +0 -21
  147. package/src/components/POSProductSidebarItems/index.ts +0 -3
  148. package/src/components/POSTable/POSTable.stories.tsx +0 -737
  149. package/src/components/POSTable/POSTable.tsx +0 -401
  150. package/src/components/POSTable/POSTable.types.ts +0 -83
  151. package/src/components/POSTable/README.md +0 -286
  152. package/src/components/POSTable/index.ts +0 -7
  153. package/src/components/Pagination/Pagination.stories.tsx +0 -555
  154. package/src/components/Pagination/Pagination.tsx +0 -286
  155. package/src/components/Pagination/Pagination.types.ts +0 -93
  156. package/src/components/Pagination/README.md +0 -298
  157. package/src/components/Pagination/icons.tsx +0 -47
  158. package/src/components/Pagination/index.ts +0 -3
  159. package/src/components/Quantity/Quantity.stories.tsx +0 -457
  160. package/src/components/Quantity/Quantity.tsx +0 -289
  161. package/src/components/Quantity/Quantity.types.ts +0 -70
  162. package/src/components/Radio/Radio.stories.tsx +0 -523
  163. package/src/components/Radio/Radio.tsx +0 -170
  164. package/src/components/Radio/Radio.types.ts +0 -122
  165. package/src/components/Select/README.md +0 -299
  166. package/src/components/Select/Select.stories.tsx +0 -673
  167. package/src/components/Select/Select.tsx +0 -454
  168. package/src/components/Select/Select.types.ts +0 -148
  169. package/src/components/Select/icons.tsx +0 -50
  170. package/src/components/Select/index.ts +0 -3
  171. package/src/components/SignUpView/SignUpView.stories.tsx +0 -129
  172. package/src/components/SignUpView/SignUpView.tsx +0 -503
  173. package/src/components/SignUpView/SignUpView.types.ts +0 -58
  174. package/src/components/SignUpView/icons.tsx +0 -71
  175. package/src/components/SignUpView/index.ts +0 -3
  176. package/src/components/Switch/README.md +0 -112
  177. package/src/components/Switch/Switch.stories.tsx +0 -550
  178. package/src/components/Switch/Switch.tsx +0 -246
  179. package/src/components/Switch/Switch.types.ts +0 -67
  180. package/src/components/Table/README.md +0 -369
  181. package/src/components/Table/Table.stories.tsx +0 -805
  182. package/src/components/Table/Table.tsx +0 -688
  183. package/src/components/Table/Table.types.ts +0 -204
  184. package/src/components/Table/index.ts +0 -9
  185. package/src/components/Tabs/README.md +0 -201
  186. package/src/components/Tabs/Tabs.stories.tsx +0 -580
  187. package/src/components/Tabs/Tabs.tsx +0 -356
  188. package/src/components/Tabs/Tabs.types.ts +0 -127
  189. package/src/components/Tabs/icons.tsx +0 -129
  190. package/src/components/Tabs/index.ts +0 -11
  191. package/src/components/Textarea/Textarea.stories.tsx +0 -535
  192. package/src/components/Textarea/Textarea.tsx +0 -188
  193. package/src/components/Textarea/Textarea.types.ts +0 -54
  194. package/src/context/ThemeContext.tsx +0 -99
  195. package/src/context/index.ts +0 -1
  196. package/src/index.css +0 -29
  197. package/src/index.ts +0 -102
  198. package/src/main.tsx +0 -10
  199. package/src/views/ListView/ListView.stories.tsx +0 -329
  200. package/src/views/ListView/ListView.tsx +0 -570
  201. package/src/views/ListView/ListView.types.ts +0 -211
  202. package/src/views/ListView/icons.tsx +0 -282
  203. package/src/views/ListView/index.ts +0 -11
  204. package/src/views/LoginView/LoginView.stories.tsx +0 -148
  205. package/src/views/LoginView/LoginView.tsx +0 -426
  206. package/src/views/LoginView/LoginView.types.ts +0 -52
  207. package/src/views/LoginView/README.md +0 -396
  208. package/src/views/LoginView/icons.tsx +0 -85
  209. package/src/views/LoginView/index.ts +0 -3
  210. package/src/views/ProductsView/ProductsView.stories.tsx +0 -344
  211. package/src/views/ProductsView/ProductsView.tsx +0 -480
  212. package/src/views/ProductsView/ProductsView.types.ts +0 -238
  213. package/src/views/ProductsView/README.md +0 -312
  214. package/src/views/ProductsView/icons.tsx +0 -38
  215. package/src/views/ProductsView/index.ts +0 -8
  216. package/src/views/RecoverPasswordView/README.md +0 -269
  217. package/src/views/RecoverPasswordView/RecoverPasswordView.stories.tsx +0 -131
  218. package/src/views/RecoverPasswordView/RecoverPasswordView.tsx +0 -376
  219. package/src/views/RecoverPasswordView/RecoverPasswordView.types.ts +0 -56
  220. package/src/views/RecoverPasswordView/icons.tsx +0 -17
  221. package/src/views/RecoverPasswordView/index.ts +0 -2
  222. package/src/views/SignUpView/SignUpView.stories.tsx +0 -129
  223. package/src/views/SignUpView/SignUpView.tsx +0 -503
  224. package/src/views/SignUpView/SignUpView.types.ts +0 -58
  225. package/src/views/SignUpView/icons.tsx +0 -71
  226. package/src/views/SignUpView/index.ts +0 -3
  227. package/src/views/TableLayoutView/README.md +0 -268
  228. package/src/views/TableLayoutView/TableLayoutView.stories.tsx +0 -235
  229. package/src/views/TableLayoutView/TableLayoutView.tsx +0 -461
  230. package/src/views/TableLayoutView/TableLayoutView.types.ts +0 -209
  231. package/src/views/TableLayoutView/icons.tsx +0 -113
  232. package/src/views/TableLayoutView/index.ts +0 -6
  233. package/storybook/main.ts +0 -20
  234. package/storybook/preview.tsx +0 -84
  235. package/storybook/vitest.setup.ts +0 -7
  236. package/tailwind.config.js +0 -128
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- }
Binary file
Binary file
Binary file
Binary file
package/public/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/src/App.css DELETED
@@ -1,42 +0,0 @@
1
- #root {
2
- max-width: 1280px;
3
- margin: 0 auto;
4
- padding: 2rem;
5
- text-align: center;
6
- }
7
-
8
- .logo {
9
- height: 6em;
10
- padding: 1.5em;
11
- will-change: filter;
12
- transition: filter 300ms;
13
- }
14
- .logo:hover {
15
- filter: drop-shadow(0 0 2em #646cffaa);
16
- }
17
- .logo.react:hover {
18
- filter: drop-shadow(0 0 2em #61dafbaa);
19
- }
20
-
21
- @keyframes logo-spin {
22
- from {
23
- transform: rotate(0deg);
24
- }
25
- to {
26
- transform: rotate(360deg);
27
- }
28
- }
29
-
30
- @media (prefers-reduced-motion: no-preference) {
31
- a:nth-of-type(2) .logo {
32
- animation: logo-spin infinite 20s linear;
33
- }
34
- }
35
-
36
- .card {
37
- padding: 2em;
38
- }
39
-
40
- .read-the-docs {
41
- color: #888;
42
- }
package/src/App.tsx DELETED
@@ -1,8 +0,0 @@
1
- import './App.css'
2
- import { ButtonTest } from './ButtonTest'
3
-
4
- function App() {
5
- return <ButtonTest />
6
- }
7
-
8
- export default App
@@ -1,147 +0,0 @@
1
- import React from 'react';
2
- import { Button, PlusIcon, ChevronDownIcon, ArrowRightIcon } from './components/Button';
3
-
4
- /**
5
- * Página de prueba para el componente Button
6
- */
7
- export const ButtonTest: React.FC = () => {
8
- return (
9
- <div className="p-8 space-y-8 bg-bg-primary min-h-screen">
10
- <h1 className="text-heading-lg text-content-primary mb-8">
11
- Siesa UI Kit - Button Component
12
- </h1>
13
-
14
- {/* Sección: Tipos de Botón */}
15
- <section className="space-y-4">
16
- <h2 className="text-2xl font-bold text-content-primary">Tipos de Botón</h2>
17
- <div className="flex gap-4 items-center flex-wrap">
18
- <Button type="default">Default Button</Button>
19
- <Button type="outline">Outline Button</Button>
20
- <Button type="plain">Plain Button</Button>
21
- </div>
22
- </section>
23
-
24
- {/* Sección: Tamaños */}
25
- <section className="space-y-4">
26
- <h2 className="text-2xl font-bold text-content-primary">Tamaños</h2>
27
- <div className="flex gap-4 items-center flex-wrap">
28
- <Button type="default" size="xs">Extra Small</Button>
29
- <Button type="default" size="sm">Small</Button>
30
- <Button type="default" size="base">Base</Button>
31
- <Button type="default" size="l">Large</Button>
32
- <Button type="default" size="xl">Extra Large</Button>
33
- </div>
34
- </section>
35
-
36
- {/* Sección: Con Iconos */}
37
- <section className="space-y-4">
38
- <h2 className="text-2xl font-bold text-content-primary">Con Iconos</h2>
39
- <div className="flex gap-4 items-center flex-wrap">
40
- <Button type="default" leftIcon={<PlusIcon />}>
41
- Con Icono Izquierdo
42
- </Button>
43
- <Button type="outline" rightIcon={<ChevronDownIcon />}>
44
- Con Icono Derecho
45
- </Button>
46
- <Button
47
- type="default"
48
- leftIcon={<PlusIcon />}
49
- rightIcon={<ArrowRightIcon />}
50
- >
51
- Con Ambos Iconos
52
- </Button>
53
- </div>
54
- </section>
55
-
56
- {/* Sección: Solo Iconos */}
57
- <section className="space-y-4">
58
- <h2 className="text-2xl font-bold text-content-primary">Solo Iconos</h2>
59
- <div className="flex gap-4 items-center flex-wrap">
60
- <Button type="default" size="xs" iconOnly leftIcon={<PlusIcon />} />
61
- <Button type="default" size="sm" iconOnly leftIcon={<PlusIcon />} />
62
- <Button type="default" size="base" iconOnly leftIcon={<PlusIcon />} />
63
- <Button type="default" size="l" iconOnly leftIcon={<PlusIcon />} />
64
- <Button type="default" size="xl" iconOnly leftIcon={<PlusIcon />} />
65
- </div>
66
- </section>
67
-
68
- {/* Sección: Outline + Solo Iconos */}
69
- <section className="space-y-4">
70
- <h2 className="text-2xl font-bold text-content-primary">
71
- Outline - Solo Iconos
72
- </h2>
73
- <div className="flex gap-4 items-center flex-wrap">
74
- <Button type="outline" size="xs" iconOnly leftIcon={<PlusIcon />} />
75
- <Button type="outline" size="sm" iconOnly leftIcon={<PlusIcon />} />
76
- <Button type="outline" size="base" iconOnly leftIcon={<PlusIcon />} />
77
- <Button type="outline" size="l" iconOnly leftIcon={<PlusIcon />} />
78
- <Button type="outline" size="xl" iconOnly leftIcon={<PlusIcon />} />
79
- </div>
80
- </section>
81
-
82
- {/* Sección: Plain + Solo Iconos */}
83
- <section className="space-y-4">
84
- <h2 className="text-2xl font-bold text-content-primary">
85
- Plain - Solo Iconos
86
- </h2>
87
- <div className="flex gap-4 items-center flex-wrap">
88
- <Button type="plain" size="xs" iconOnly leftIcon={<PlusIcon />} />
89
- <Button type="plain" size="sm" iconOnly leftIcon={<PlusIcon />} />
90
- <Button type="plain" size="base" iconOnly leftIcon={<PlusIcon />} />
91
- <Button type="plain" size="l" iconOnly leftIcon={<PlusIcon />} />
92
- <Button type="plain" size="xl" iconOnly leftIcon={<PlusIcon />} />
93
- </div>
94
- </section>
95
-
96
- {/* Sección: Estados Deshabilitados */}
97
- <section className="space-y-4">
98
- <h2 className="text-2xl font-bold text-content-primary">
99
- Estados Deshabilitados
100
- </h2>
101
- <div className="flex gap-4 items-center flex-wrap">
102
- <Button type="default" disabled>
103
- Default Disabled
104
- </Button>
105
- <Button type="outline" disabled>
106
- Outline Disabled
107
- </Button>
108
- <Button type="plain" disabled>
109
- Plain Disabled
110
- </Button>
111
- </div>
112
- </section>
113
-
114
- {/* Sección: Full Width */}
115
- <section className="space-y-4">
116
- <h2 className="text-2xl font-bold text-content-primary">Full Width</h2>
117
- <div className="space-y-2 max-w-md">
118
- <Button type="default" fullWidth>
119
- Full Width Default
120
- </Button>
121
- <Button type="outline" fullWidth>
122
- Full Width Outline
123
- </Button>
124
- </div>
125
- </section>
126
-
127
- {/* Sección: Comparación con Figma */}
128
- <section className="space-y-4">
129
- <h2 className="text-2xl font-bold text-content-primary">
130
- Comparación Pixel-Perfect con Figma
131
- </h2>
132
- <div className="bg-white p-6 rounded-lg border border-border-primary">
133
- <p className="text-sm text-content-primary mb-4">
134
- Estos botones replican exactamente las especificaciones de Figma:
135
- </p>
136
- <div className="flex gap-4 items-center flex-wrap">
137
- <Button type="default" size="xs" leftIcon={<PlusIcon />} rightIcon={<ChevronDownIcon />}>
138
- Button text
139
- </Button>
140
- <Button type="outline" size="xs" iconOnly leftIcon={<PlusIcon />} />
141
- <Button type="plain" size="xs" iconOnly leftIcon={<PlusIcon />} />
142
- </div>
143
- </div>
144
- </section>
145
- </div>
146
- );
147
- };
@@ -1,261 +0,0 @@
1
- # Fuentes del Siesa UI Kit
2
-
3
- ## 📋 Estructura
4
-
5
- ```
6
- fonts/
7
- └── SiesaBT/ # Familia tipográfica Siesa BT
8
- ├── SiesaBT-Regular.otf # 400 - Peso normal
9
- ├── SiesaBT-Light.otf # 300 - Peso ligero
10
- └── SiesaBT-Bold.otf # 700 - Peso negrita
11
- ```
12
-
13
- ## 🎨 Familia Tipográfica: SiesaBT
14
-
15
- ### Variantes Disponibles
16
-
17
- | Archivo | Peso | font-weight | Uso Principal |
18
- |---------|------|-------------|---------------|
19
- | **SiesaBT-Light.otf** | Light | 300 | Textos extensos, párrafos largos |
20
- | **SiesaBT-Regular.otf** | Regular | 400 | Texto base, contenido general |
21
- | **SiesaBT-Bold.otf** | Bold | 700 | Títulos, labels, botones, énfasis |
22
-
23
- ## 📦 Configuración
24
-
25
- ### En `src/index.css`:
26
-
27
- ```css
28
- @font-face {
29
- font-family: 'SiesaBT';
30
- src: url('./assets/fonts/SiesaBT/SiesaBT-Regular.otf') format('opentype');
31
- font-weight: 400;
32
- font-style: normal;
33
- font-display: swap;
34
- }
35
-
36
- @font-face {
37
- font-family: 'SiesaBT';
38
- src: url('./assets/fonts/SiesaBT/SiesaBT-Light.otf') format('opentype');
39
- font-weight: 300;
40
- font-style: normal;
41
- font-display: swap;
42
- }
43
-
44
- @font-face {
45
- font-family: 'SiesaBT';
46
- src: url('./assets/fonts/SiesaBT/SiesaBT-Bold.otf') format('opentype');
47
- font-weight: 700;
48
- font-style: normal;
49
- font-display: swap;
50
- }
51
- ```
52
-
53
- ### En `tailwind.config.js`:
54
-
55
- ```javascript
56
- fontFamily: {
57
- sans: ['SiesaBT', 'system-ui', 'sans-serif'],
58
- },
59
- ```
60
-
61
- ## 🚀 Uso en Componentes
62
-
63
- ### Con Tailwind CSS:
64
-
65
- ```tsx
66
- // Regular (400)
67
- <p className="font-normal">
68
- Texto con peso regular
69
- </p>
70
-
71
- // Light (300)
72
- <p className="font-light">
73
- Texto con peso ligero
74
- </p>
75
-
76
- // Bold (700)
77
- <h1 className="font-bold">
78
- Título con peso negrita
79
- </h1>
80
- ```
81
-
82
- ### Directamente con CSS:
83
-
84
- ```css
85
- .my-text {
86
- font-family: 'SiesaBT', sans-serif;
87
- font-weight: 400; /* Regular */
88
- }
89
-
90
- .my-title {
91
- font-family: 'SiesaBT', sans-serif;
92
- font-weight: 700; /* Bold */
93
- }
94
- ```
95
-
96
- ## 📐 Sistema Tipográfico
97
-
98
- El proyecto utiliza un sistema tipográfico estructurado basado en Tailwind:
99
-
100
- ### Escalas de Tamaño
101
-
102
- ```tsx
103
- text-xs // 12px - Label Tiny
104
- text-sm // 14px - Label Small
105
- text-base // 16px - Body Base
106
- text-lg // 18px - Body Large
107
- text-xl // 20px - Heading Small
108
- text-2xl // 24px - Heading Medium
109
- text-3xl // 30px - Heading Large
110
- text-4xl // 36px - Display Small
111
- ```
112
-
113
- ### Combinaciones Comunes
114
-
115
- ```tsx
116
- // Botones
117
- <button className="font-bold text-sm">Button</button>
118
-
119
- // Títulos de sección
120
- <h2 className="font-bold text-2xl">Section Title</h2>
121
-
122
- // Párrafos
123
- <p className="font-normal text-base">Regular text content</p>
124
-
125
- // Labels
126
- <label className="font-bold text-xs">Input Label</label>
127
- ```
128
-
129
- ## ⚡ Optimización
130
-
131
- ### Font Display Strategy
132
-
133
- Todas las fuentes usan `font-display: swap` para:
134
- - Mostrar texto inmediatamente con fuente fallback
135
- - Cambiar a la fuente personalizada cuando cargue
136
- - Evitar FOIT (Flash of Invisible Text)
137
-
138
- ### Preload (Opcional)
139
-
140
- Para fonts críticos que se usan inmediatamente:
141
-
142
- ```html
143
- <!-- En index.html -->
144
- <link
145
- rel="preload"
146
- href="/src/assets/fonts/SiesaBT/SiesaBT-Bold.otf"
147
- as="font"
148
- type="font/otf"
149
- crossorigin
150
- />
151
- ```
152
-
153
- ## 🔄 Proceso de Build
154
-
155
- Durante el build de Vite:
156
- 1. Las fuentes son detectadas automáticamente
157
- 2. Se copian a `dist/assets/` con hash de versión
158
- 3. Las referencias en CSS se actualizan automáticamente
159
-
160
- ```
161
- dist/
162
- └── assets/
163
- ├── SiesaBT-Bold-[hash].otf
164
- ├── SiesaBT-Light-[hash].otf
165
- ├── SiesaBT-Regular-[hash].otf
166
- └── index-[hash].css (con referencias actualizadas)
167
- ```
168
-
169
- ## 📚 Documentación Relacionada
170
-
171
- Para más información sobre el sistema tipográfico completo:
172
- - `docs/typography.md` - Guía completa de tipografía
173
- - `tailwind.config.js` - Configuración de fuentes en Tailwind
174
- - `src/index.css` - Declaraciones @font-face
175
-
176
- ## 🆕 Agregar Nuevas Fuentes
177
-
178
- Si necesitas agregar una nueva familia tipográfica:
179
-
180
- 1. **Crear carpeta**:
181
- ```
182
- src/assets/fonts/NuevaFuente/
183
- ```
184
-
185
- 2. **Agregar archivos**:
186
- ```
187
- NuevaFuente-Regular.otf
188
- NuevaFuente-Bold.otf
189
- etc.
190
- ```
191
-
192
- 3. **Declarar en `src/index.css`**:
193
- ```css
194
- @font-face {
195
- font-family: 'NuevaFuente';
196
- src: url('./assets/fonts/NuevaFuente/NuevaFuente-Regular.otf') format('opentype');
197
- font-weight: 400;
198
- font-style: normal;
199
- font-display: swap;
200
- }
201
- ```
202
-
203
- 4. **Configurar en `tailwind.config.js`**:
204
- ```javascript
205
- fontFamily: {
206
- nueva: ['NuevaFuente', 'sans-serif'],
207
- },
208
- ```
209
-
210
- 5. **Usar en código**:
211
- ```tsx
212
- <p className="font-nueva">Texto con nueva fuente</p>
213
- ```
214
-
215
- ## 📏 Mejores Prácticas
216
-
217
- ### ✅ Hacer
218
-
219
- - Usar los pesos definidos (300, 400, 700)
220
- - Mantener consistencia con el sistema tipográfico
221
- - Usar Tailwind utilities cuando sea posible
222
- - Incluir fallback fonts (`sans-serif`)
223
- - Usar `font-display: swap`
224
-
225
- ### ❌ Evitar
226
-
227
- - Agregar pesos de fuente no disponibles
228
- - Usar `font-display: block` (causa FOIT)
229
- - Referencias absolutas a fuentes
230
- - Cargar fuentes innecesarias
231
- - Múltiples declaraciones de la misma fuente
232
-
233
- ## 🔍 Troubleshooting
234
-
235
- ### Fuente no se carga
236
-
237
- 1. Verificar ruta en `src/index.css`
238
- 2. Verificar que el archivo existe en `src/assets/fonts/SiesaBT/`
239
- 3. Limpiar build: `rm -rf dist && npm run build`
240
- 4. Verificar consola del navegador
241
-
242
- ### Peso incorrecto
243
-
244
- Verificar que uses el `font-weight` correcto:
245
- ```css
246
- font-weight: 300; /* Light */
247
- font-weight: 400; /* Regular */
248
- font-weight: 700; /* Bold */
249
- ```
250
-
251
- ### Build falla
252
-
253
- Si el build falla después de mover fuentes:
254
- 1. Limpiar caché: `rm -rf node_modules/.vite`
255
- 2. Rebuild: `npm run build`
256
-
257
- ---
258
-
259
- **Última actualización**: 2025-11-11
260
- **Versión**: 1.0.0
261
- **Mantenedor**: Siesa UI Kit Team
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>