@agroshine/ags-web-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 (109) hide show
  1. package/README.md +75 -0
  2. package/dist/atoms/index.cjs +134 -0
  3. package/dist/atoms/index.cjs.map +1 -0
  4. package/dist/atoms/index.d.cts +583 -0
  5. package/dist/atoms/index.d.ts +583 -0
  6. package/dist/atoms/index.js +9 -0
  7. package/dist/atoms/index.js.map +1 -0
  8. package/dist/chunk-2KRMLIJQ.cjs +52 -0
  9. package/dist/chunk-2KRMLIJQ.cjs.map +1 -0
  10. package/dist/chunk-2TBYPKQ3.cjs +79 -0
  11. package/dist/chunk-2TBYPKQ3.cjs.map +1 -0
  12. package/dist/chunk-5FWELSEZ.js +1296 -0
  13. package/dist/chunk-5FWELSEZ.js.map +1 -0
  14. package/dist/chunk-5PEOJVY7.cjs +1502 -0
  15. package/dist/chunk-5PEOJVY7.cjs.map +1 -0
  16. package/dist/chunk-6LUGTNMH.js +259 -0
  17. package/dist/chunk-6LUGTNMH.js.map +1 -0
  18. package/dist/chunk-6O2IDBTX.js +112 -0
  19. package/dist/chunk-6O2IDBTX.js.map +1 -0
  20. package/dist/chunk-6YUNWKT3.js +26 -0
  21. package/dist/chunk-6YUNWKT3.js.map +1 -0
  22. package/dist/chunk-7R6OXNES.cjs +321 -0
  23. package/dist/chunk-7R6OXNES.cjs.map +1 -0
  24. package/dist/chunk-A3A7PJWG.cjs +13 -0
  25. package/dist/chunk-A3A7PJWG.cjs.map +1 -0
  26. package/dist/chunk-A7TDGQAB.js +557 -0
  27. package/dist/chunk-A7TDGQAB.js.map +1 -0
  28. package/dist/chunk-C4LX3XTN.cjs +1187 -0
  29. package/dist/chunk-C4LX3XTN.cjs.map +1 -0
  30. package/dist/chunk-DZW4GS2T.cjs +1340 -0
  31. package/dist/chunk-DZW4GS2T.cjs.map +1 -0
  32. package/dist/chunk-E3BTK736.cjs +174 -0
  33. package/dist/chunk-E3BTK736.cjs.map +1 -0
  34. package/dist/chunk-ERGKCXM2.cjs +267 -0
  35. package/dist/chunk-ERGKCXM2.cjs.map +1 -0
  36. package/dist/chunk-FOA46NSG.cjs +574 -0
  37. package/dist/chunk-FOA46NSG.cjs.map +1 -0
  38. package/dist/chunk-JTFCE6RA.js +1156 -0
  39. package/dist/chunk-JTFCE6RA.js.map +1 -0
  40. package/dist/chunk-KINOE57L.js +225 -0
  41. package/dist/chunk-KINOE57L.js.map +1 -0
  42. package/dist/chunk-MOED3QPY.js +11 -0
  43. package/dist/chunk-MOED3QPY.js.map +1 -0
  44. package/dist/chunk-NVR34DY2.cjs +4 -0
  45. package/dist/chunk-NVR34DY2.cjs.map +1 -0
  46. package/dist/chunk-PI3IJWBG.js +79 -0
  47. package/dist/chunk-PI3IJWBG.js.map +1 -0
  48. package/dist/chunk-PXAMTGYY.js +3 -0
  49. package/dist/chunk-PXAMTGYY.js.map +1 -0
  50. package/dist/chunk-QAZMI5VH.js +151 -0
  51. package/dist/chunk-QAZMI5VH.js.map +1 -0
  52. package/dist/chunk-QEG27NX6.js +30 -0
  53. package/dist/chunk-QEG27NX6.js.map +1 -0
  54. package/dist/chunk-THTOUSMG.cjs +52 -0
  55. package/dist/chunk-THTOUSMG.cjs.map +1 -0
  56. package/dist/chunk-UAXKB6IH.cjs +32 -0
  57. package/dist/chunk-UAXKB6IH.cjs.map +1 -0
  58. package/dist/chunk-W5IHWAMM.js +48 -0
  59. package/dist/chunk-W5IHWAMM.js.map +1 -0
  60. package/dist/chunk-X2UJQVZJ.cjs +139 -0
  61. package/dist/chunk-X2UJQVZJ.cjs.map +1 -0
  62. package/dist/chunk-X43C5OJD.js +1460 -0
  63. package/dist/chunk-X43C5OJD.js.map +1 -0
  64. package/dist/chunk-XCYSBWV4.js +56 -0
  65. package/dist/chunk-XCYSBWV4.js.map +1 -0
  66. package/dist/chunk-XX4CBCEB.cjs +102 -0
  67. package/dist/chunk-XX4CBCEB.cjs.map +1 -0
  68. package/dist/hooks/index.cjs +33 -0
  69. package/dist/hooks/index.cjs.map +1 -0
  70. package/dist/hooks/index.d.cts +59 -0
  71. package/dist/hooks/index.d.ts +59 -0
  72. package/dist/hooks/index.js +4 -0
  73. package/dist/hooks/index.js.map +1 -0
  74. package/dist/index.cjs +366 -0
  75. package/dist/index.cjs.map +1 -0
  76. package/dist/index.d.cts +13 -0
  77. package/dist/index.d.ts +13 -0
  78. package/dist/index.js +17 -0
  79. package/dist/index.js.map +1 -0
  80. package/dist/interface-DnK5S6ww.d.cts +51 -0
  81. package/dist/interface-DnK5S6ww.d.ts +51 -0
  82. package/dist/lib/index.cjs +13 -0
  83. package/dist/lib/index.cjs.map +1 -0
  84. package/dist/lib/index.d.cts +5 -0
  85. package/dist/lib/index.d.ts +5 -0
  86. package/dist/lib/index.js +4 -0
  87. package/dist/lib/index.js.map +1 -0
  88. package/dist/molecules/index.cjs +123 -0
  89. package/dist/molecules/index.cjs.map +1 -0
  90. package/dist/molecules/index.d.cts +449 -0
  91. package/dist/molecules/index.d.ts +449 -0
  92. package/dist/molecules/index.js +10 -0
  93. package/dist/molecules/index.js.map +1 -0
  94. package/dist/organisms/index.cjs +102 -0
  95. package/dist/organisms/index.cjs.map +1 -0
  96. package/dist/organisms/index.d.cts +396 -0
  97. package/dist/organisms/index.d.ts +396 -0
  98. package/dist/organisms/index.js +9 -0
  99. package/dist/organisms/index.js.map +1 -0
  100. package/dist/tooltip-Bl2ZTtfg.d.cts +16 -0
  101. package/dist/tooltip-Bl2ZTtfg.d.ts +16 -0
  102. package/dist/ui/index.cjs +955 -0
  103. package/dist/ui/index.cjs.map +1 -0
  104. package/dist/ui/index.d.cts +252 -0
  105. package/dist/ui/index.d.ts +252 -0
  106. package/dist/ui/index.js +642 -0
  107. package/dist/ui/index.js.map +1 -0
  108. package/package.json +200 -0
  109. package/tailwind.preset.cjs +134 -0
package/README.md ADDED
@@ -0,0 +1,75 @@
1
+ # ags-web-ui-kit
2
+
3
+ Librería de componentes React para AgroShine · Luna Nueva.
4
+
5
+ Stack: React 18+ · TypeScript · Tailwind CSS v4 · shadcn/ui · Radix UI · class-variance-authority · lucide-react.
6
+
7
+ ## Instalación (workspace pnpm)
8
+
9
+ Desde un consumidor del workspace (admin, client, website):
10
+
11
+ ```jsonc
12
+ // package.json
13
+ "dependencies": {
14
+ "ags-web-ui-kit": "workspace:*"
15
+ }
16
+ ```
17
+
18
+ Luego:
19
+
20
+ ```bash
21
+ pnpm install
22
+ pnpm --filter ags-web-ui-kit build
23
+ ```
24
+
25
+ ## Uso del Tailwind preset
26
+
27
+ ```js
28
+ // tailwind.config.{js,ts}
29
+ module.exports = {
30
+ presets: [require('ags-web-ui-kit/tailwind.preset')],
31
+ content: [
32
+ './src/**/*.{ts,tsx}',
33
+ './node_modules/ags-web-ui-kit/dist/**/*.{js,cjs}',
34
+ ],
35
+ };
36
+ ```
37
+
38
+ En Tailwind v4 (config CSS-first), importar también los tokens semánticos:
39
+
40
+ ```css
41
+ /* src/index.css */
42
+ @import 'tailwindcss';
43
+ @import 'ags-web-ui-kit/styles/tokens.css';
44
+ ```
45
+
46
+ ## Imports
47
+
48
+ ```ts
49
+ import { Button, Tag, Drawer } from 'ags-web-ui-kit';
50
+ // o por categoría:
51
+ import { Button } from 'ags-web-ui-kit/atoms';
52
+ import { Sheet } from 'ags-web-ui-kit/ui';
53
+ ```
54
+
55
+ ## Estructura
56
+
57
+ ```
58
+ src/
59
+ ├── ui/ shadcn-style primitives (badge, button, dialog, sheet, …)
60
+ ├── atoms/ Button, Input, Tag, Spinner, Checkbox, …
61
+ ├── molecules/ Drawer, Modal, Table, Steps, …
62
+ ├── organisms/ Layout, Sidebar, Header, FormCard, …
63
+ ├── hooks/ useDrawer, useModal, usePagination, …
64
+ ├── lib/ cn helper
65
+ └── styles/ tokens.css
66
+ ```
67
+
68
+ ## Scripts
69
+
70
+ | Script | Descripción |
71
+ |---|---|
72
+ | `pnpm build` | Build dual ESM+CJS con `tsup` (genera `.d.ts`) |
73
+ | `pnpm dev` | Watch mode |
74
+ | `pnpm typecheck` | `tsc --noEmit` |
75
+ | `pnpm clean` | Borra `dist/` |
@@ -0,0 +1,134 @@
1
+ 'use strict';
2
+
3
+ var chunk5PEOJVY7_cjs = require('../chunk-5PEOJVY7.cjs');
4
+ var chunkFOA46NSG_cjs = require('../chunk-FOA46NSG.cjs');
5
+ var chunkUAXKB6IH_cjs = require('../chunk-UAXKB6IH.cjs');
6
+ var chunkE3BTK736_cjs = require('../chunk-E3BTK736.cjs');
7
+ require('../chunk-ERGKCXM2.cjs');
8
+ require('../chunk-2TBYPKQ3.cjs');
9
+ require('../chunk-A3A7PJWG.cjs');
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "Avatar", {
14
+ enumerable: true,
15
+ get: function () { return chunk5PEOJVY7_cjs.Avatar; }
16
+ });
17
+ Object.defineProperty(exports, "Checkbox", {
18
+ enumerable: true,
19
+ get: function () { return chunk5PEOJVY7_cjs.Checkbox; }
20
+ });
21
+ Object.defineProperty(exports, "Descriptions", {
22
+ enumerable: true,
23
+ get: function () { return chunk5PEOJVY7_cjs.Descriptions; }
24
+ });
25
+ Object.defineProperty(exports, "Input", {
26
+ enumerable: true,
27
+ get: function () { return chunk5PEOJVY7_cjs.Input; }
28
+ });
29
+ Object.defineProperty(exports, "InputNumber", {
30
+ enumerable: true,
31
+ get: function () { return chunk5PEOJVY7_cjs.InputNumber; }
32
+ });
33
+ Object.defineProperty(exports, "MultiSelect", {
34
+ enumerable: true,
35
+ get: function () { return chunk5PEOJVY7_cjs.MultiSelect; }
36
+ });
37
+ Object.defineProperty(exports, "Progress", {
38
+ enumerable: true,
39
+ get: function () { return chunk5PEOJVY7_cjs.Progress; }
40
+ });
41
+ Object.defineProperty(exports, "Radio", {
42
+ enumerable: true,
43
+ get: function () { return chunk5PEOJVY7_cjs.Radio; }
44
+ });
45
+ Object.defineProperty(exports, "Rate", {
46
+ enumerable: true,
47
+ get: function () { return chunk5PEOJVY7_cjs.Rate; }
48
+ });
49
+ Object.defineProperty(exports, "Select", {
50
+ enumerable: true,
51
+ get: function () { return chunk5PEOJVY7_cjs.Select; }
52
+ });
53
+ Object.defineProperty(exports, "Separator", {
54
+ enumerable: true,
55
+ get: function () { return chunk5PEOJVY7_cjs.Separator; }
56
+ });
57
+ Object.defineProperty(exports, "Skeleton", {
58
+ enumerable: true,
59
+ get: function () { return chunk5PEOJVY7_cjs.Skeleton; }
60
+ });
61
+ Object.defineProperty(exports, "Slider", {
62
+ enumerable: true,
63
+ get: function () { return chunk5PEOJVY7_cjs.Slider; }
64
+ });
65
+ Object.defineProperty(exports, "Switch", {
66
+ enumerable: true,
67
+ get: function () { return chunk5PEOJVY7_cjs.Switch; }
68
+ });
69
+ Object.defineProperty(exports, "Tag", {
70
+ enumerable: true,
71
+ get: function () { return chunk5PEOJVY7_cjs.Tag; }
72
+ });
73
+ Object.defineProperty(exports, "Textarea", {
74
+ enumerable: true,
75
+ get: function () { return chunk5PEOJVY7_cjs.Textarea; }
76
+ });
77
+ Object.defineProperty(exports, "Toggle", {
78
+ enumerable: true,
79
+ get: function () { return chunk5PEOJVY7_cjs.Toggle; }
80
+ });
81
+ Object.defineProperty(exports, "ToggleGroup", {
82
+ enumerable: true,
83
+ get: function () { return chunk5PEOJVY7_cjs.ToggleGroup; }
84
+ });
85
+ Object.defineProperty(exports, "Dropdown", {
86
+ enumerable: true,
87
+ get: function () { return chunkFOA46NSG_cjs.Dropdown; }
88
+ });
89
+ Object.defineProperty(exports, "DropdownMenu", {
90
+ enumerable: true,
91
+ get: function () { return chunkFOA46NSG_cjs.DropdownMenu; }
92
+ });
93
+ Object.defineProperty(exports, "DropdownTrigger", {
94
+ enumerable: true,
95
+ get: function () { return chunkFOA46NSG_cjs.DropdownTrigger; }
96
+ });
97
+ Object.defineProperty(exports, "Pagination", {
98
+ enumerable: true,
99
+ get: function () { return chunkFOA46NSG_cjs.Pagination; }
100
+ });
101
+ Object.defineProperty(exports, "PaginationItem", {
102
+ enumerable: true,
103
+ get: function () { return chunkFOA46NSG_cjs.PaginationItem; }
104
+ });
105
+ Object.defineProperty(exports, "PaginationSizeSelect", {
106
+ enumerable: true,
107
+ get: function () { return chunkFOA46NSG_cjs.PaginationSizeSelect; }
108
+ });
109
+ Object.defineProperty(exports, "getItemRange", {
110
+ enumerable: true,
111
+ get: function () { return chunkFOA46NSG_cjs.getItemRange; }
112
+ });
113
+ Object.defineProperty(exports, "mapPlacementToRc", {
114
+ enumerable: true,
115
+ get: function () { return chunkFOA46NSG_cjs.mapPlacementToRc; }
116
+ });
117
+ Object.defineProperty(exports, "mapTriggerToRc", {
118
+ enumerable: true,
119
+ get: function () { return chunkFOA46NSG_cjs.mapTriggerToRc; }
120
+ });
121
+ Object.defineProperty(exports, "FormItem", {
122
+ enumerable: true,
123
+ get: function () { return chunkUAXKB6IH_cjs.FormItem; }
124
+ });
125
+ Object.defineProperty(exports, "Button", {
126
+ enumerable: true,
127
+ get: function () { return chunkE3BTK736_cjs.Button; }
128
+ });
129
+ Object.defineProperty(exports, "Spinner", {
130
+ enumerable: true,
131
+ get: function () { return chunkE3BTK736_cjs.Spinner; }
132
+ });
133
+ //# sourceMappingURL=index.cjs.map
134
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}