pdm-ui-kit 0.1.50 → 0.3.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 (68) hide show
  1. package/README.md +356 -4
  2. package/esm2020/lib/components/alert-dialog/alert-dialog.component.mjs +3 -3
  3. package/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +37 -4
  4. package/esm2020/lib/components/button-group/button-group.component.mjs +208 -182
  5. package/esm2020/lib/components/calendar/calendar.component.mjs +3 -3
  6. package/esm2020/lib/components/card/card.component.mjs +36 -53
  7. package/esm2020/lib/components/combobox/combobox.component.mjs +136 -14
  8. package/esm2020/lib/components/command/command.component.mjs +3 -3
  9. package/esm2020/lib/components/context-menu/context-menu.component.mjs +121 -42
  10. package/esm2020/lib/components/data-table/data-table.component.mjs +214 -16
  11. package/esm2020/lib/components/date-picker/date-picker.component.mjs +66 -54
  12. package/esm2020/lib/components/dialog/dialog.component.mjs +171 -38
  13. package/esm2020/lib/components/draggable-table/draggable-table.component.mjs +300 -0
  14. package/esm2020/lib/components/drawer/drawer.component.mjs +123 -16
  15. package/esm2020/lib/components/dropdown-menu/dropdown-menu.component.mjs +3 -2
  16. package/esm2020/lib/components/hover-card/hover-card.component.mjs +185 -24
  17. package/esm2020/lib/components/input/input.component.mjs +15 -15
  18. package/esm2020/lib/components/input-group/input-group.component.mjs +14 -14
  19. package/esm2020/lib/components/menubar/menubar.component.mjs +105 -29
  20. package/esm2020/lib/components/navigation-menu/navigation-menu.component.mjs +25 -3
  21. package/esm2020/lib/components/pagination/pagination.component.mjs +3 -3
  22. package/esm2020/lib/components/popover/popover.component.mjs +107 -73
  23. package/esm2020/lib/components/select/select.component.mjs +26 -23
  24. package/esm2020/lib/components/sheet/sheet.component.mjs +68 -12
  25. package/esm2020/lib/components/sidebar/sidebar.component.mjs +52 -5
  26. package/esm2020/lib/components/table/table.component.mjs +165 -192
  27. package/esm2020/lib/components/tabs/tabs.component.mjs +6 -6
  28. package/esm2020/lib/components/toggle-group/toggle-group.component.mjs +6 -6
  29. package/esm2020/lib/components/tooltip/tooltip.component.mjs +162 -19
  30. package/esm2020/lib/overlay/z-index-helper.mjs +69 -0
  31. package/esm2020/lib/pdm-ui-kit.module.mjs +5 -1
  32. package/esm2020/lib/utils/responsive.mjs +143 -0
  33. package/esm2020/lib/utils/z-index.mjs +90 -0
  34. package/esm2020/public-api.mjs +67 -63
  35. package/fesm2015/pdm-ui-kit.mjs +2628 -847
  36. package/fesm2015/pdm-ui-kit.mjs.map +1 -1
  37. package/fesm2020/pdm-ui-kit.mjs +2630 -845
  38. package/fesm2020/pdm-ui-kit.mjs.map +1 -1
  39. package/lib/components/breadcrumb/breadcrumb.component.d.ts +23 -1
  40. package/lib/components/button-group/button-group.component.d.ts +8 -2
  41. package/lib/components/card/card.component.d.ts +32 -19
  42. package/lib/components/combobox/combobox.component.d.ts +20 -3
  43. package/lib/components/context-menu/context-menu.component.d.ts +17 -8
  44. package/lib/components/data-table/data-table.component.d.ts +172 -14
  45. package/lib/components/date-picker/date-picker.component.d.ts +5 -6
  46. package/lib/components/dialog/dialog.component.d.ts +38 -4
  47. package/lib/components/draggable-table/draggable-table.component.d.ts +74 -0
  48. package/lib/components/drawer/drawer.component.d.ts +65 -7
  49. package/lib/components/hover-card/hover-card.component.d.ts +27 -4
  50. package/lib/components/input/input.component.d.ts +3 -3
  51. package/lib/components/input-group/input-group.component.d.ts +1 -1
  52. package/lib/components/menubar/menubar.component.d.ts +16 -8
  53. package/lib/components/navigation-menu/navigation-menu.component.d.ts +22 -1
  54. package/lib/components/popover/popover.component.d.ts +13 -12
  55. package/lib/components/select/select.component.d.ts +4 -5
  56. package/lib/components/sheet/sheet.component.d.ts +30 -3
  57. package/lib/components/sidebar/sidebar.component.d.ts +39 -1
  58. package/lib/components/table/table.component.d.ts +47 -26
  59. package/lib/components/tabs/tabs.component.d.ts +1 -1
  60. package/lib/components/toggle-group/toggle-group.component.d.ts +1 -1
  61. package/lib/components/tooltip/tooltip.component.d.ts +21 -3
  62. package/lib/overlay/z-index-helper.d.ts +36 -0
  63. package/lib/pdm-ui-kit.module.d.ts +42 -41
  64. package/lib/utils/responsive.d.ts +107 -0
  65. package/lib/utils/z-index.d.ts +69 -0
  66. package/package.json +10 -8
  67. package/public-api.d.ts +66 -62
  68. package/src/lib/styles/tokens.css +182 -0
@@ -0,0 +1,182 @@
1
+ /**
2
+ * PDM UI Kit - CSS Design Tokens
3
+ *
4
+ * Este archivo define los tokens de diseño centralizados que los componentes
5
+ * consumen via CSS custom properties (variables CSS).
6
+ *
7
+ * USO:
8
+ * 1. Importar en el proyecto consumidor: @import 'pdm-ui-kit/styles';
9
+ * 2. O copiar las variables al CSS base del consumidor
10
+ *
11
+ * TOKENS DEFINIDOS:
12
+ * - Colores: background, foreground, primary, secondary, muted, accent, destructive, etc.
13
+ * - Bordes: border, input, ring
14
+ * - Radio: radius
15
+ * - Charts: --chart-1 a --chart-4
16
+ */
17
+
18
+ :root {
19
+ /* ============================================
20
+ * COLORES BASE
21
+ * ============================================ */
22
+
23
+ /* Background - Color de fondo principal */
24
+ --background: 0 0% 100%;
25
+
26
+ /* Foreground - Color de texto principal */
27
+ --foreground: 222.2 84% 4.9%;
28
+
29
+ /* ============================================
30
+ * COLORES DE COMPONENTE
31
+ * ============================================ */
32
+
33
+ /* Card - Fondo para tarjetas y contenedores elevados */
34
+ --card: 0 0% 100%;
35
+ --card-foreground: 222.2 84% 4.9%;
36
+
37
+ /* Popover - Fondo para elementos flotantes */
38
+ --popover: 0 0% 100%;
39
+ --popover-foreground: 222.2 84% 4.9%;
40
+
41
+ /* Primary - Color primario de la marca */
42
+ --primary: 221.2 83.2% 53.3%;
43
+ --primary-foreground: 210 40% 98%;
44
+
45
+ /* Secondary - Color secundario */
46
+ --secondary: 210 40% 96.1%;
47
+ --secondary-foreground: 222.2 47.4% 11.2%;
48
+
49
+ /* Muted - Elementos discretos/silueteados */
50
+ --muted: 210 40% 96.1%;
51
+ --muted-foreground: 215.4 16.3% 46.9%;
52
+
53
+ /* Accent - Acentos y elementos destacados */
54
+ --accent: 210 40% 96.1%;
55
+ --accent-foreground: 222.2 47.4% 11.2%;
56
+
57
+ /* Destructive - Acciones destructivas (borrar, error) */
58
+ --destructive: 0 84.2% 60.2%;
59
+ --destructive-foreground: 210 40% 98%;
60
+
61
+ /* ============================================
62
+ * BORDES Y INPUTS
63
+ * ============================================ */
64
+
65
+ /* Border - Bordes de componentes */
66
+ --border: 214.3 31.8% 91.4%;
67
+
68
+ /* Input - Bordes de campos de entrada */
69
+ --input: 214.3 31.8% 91.4%;
70
+
71
+ /* Ring - Anillos de focus/accessibility */
72
+ --ring: 221.2 83.2% 53.3%;
73
+
74
+ /* ============================================
75
+ * RADIO DE BORDES
76
+ * ============================================ */
77
+
78
+ --radius: 0.5rem;
79
+
80
+ /* ============================================
81
+ * COLORES DE CHARTS (para pdm-chart)
82
+ * ============================================ */
83
+
84
+ --chart-1: 12 76% 61%;
85
+ --chart-2: 173 58% 39%;
86
+ --chart-3: 197 37% 24%;
87
+ --chart-4: 43 74% 66%;
88
+ --chart-5: 27 87% 67%;
89
+
90
+ /* ============================================
91
+ * VARIANTES DARK MODE (opcional)
92
+ * ============================================ */
93
+
94
+ /* Descomentar para dark mode:
95
+ .dark {
96
+ --background: 222.2 84% 4.9%;
97
+ --foreground: 210 40% 98%;
98
+ --card: 222.2 84% 4.9%;
99
+ --card-foreground: 210 40% 98%;
100
+ --popover: 222.2 84% 4.9%;
101
+ --popover-foreground: 210 40% 98%;
102
+ --primary: 217.2 91.2% 59.8%;
103
+ --primary-foreground: 222.2 47.4% 11.2%;
104
+ --secondary: 217.2 32.6% 17.5%;
105
+ --secondary-foreground: 210 40% 98%;
106
+ --muted: 217.2 32.6% 17.5%;
107
+ --muted-foreground: 215 20.2% 65.1%;
108
+ --accent: 217.2 32.6% 17.5%;
109
+ --accent-foreground: 210 40% 98%;
110
+ --destructive: 0 62.8% 30.6%;
111
+ --destructive-foreground: 210 40% 98%;
112
+ --border: 217.2 32.6% 17.5%;
113
+ --input: 217.2 32.6% 17.5%;
114
+ --ring: 224.3 76.3% 48%;
115
+ }
116
+ */
117
+ }
118
+
119
+ /**
120
+ * CONFIGURACIÓN TAILWIND (para el proyecto consumidor)
121
+ *
122
+ * Agregar en tailwind.config.js:
123
+ *
124
+ * module.exports = {
125
+ * content: [
126
+ * // ... otros paths
127
+ * 'node_modules/pdm-ui-kit/**/*.{ts,html}',
128
+ * ],
129
+ * theme: {
130
+ * extend: {
131
+ * colors: {
132
+ * background: 'hsl(var(--background))',
133
+ * foreground: 'hsl(var(--foreground))',
134
+ * card: {
135
+ * DEFAULT: 'hsl(var(--card))',
136
+ * foreground: 'hsl(var(--card-foreground))'
137
+ * },
138
+ * popover: {
139
+ * DEFAULT: 'hsl(var(--popover))',
140
+ * foreground: 'hsl(var(--popover-foreground))'
141
+ * },
142
+ * primary: {
143
+ * DEFAULT: 'hsl(var(--primary))',
144
+ * foreground: 'hsl(var(--primary-foreground))'
145
+ * },
146
+ * secondary: {
147
+ * DEFAULT: 'hsl(var(--secondary))',
148
+ * foreground: 'hsl(var(--secondary-foreground))'
149
+ * },
150
+ * muted: {
151
+ * DEFAULT: 'hsl(var(--muted))',
152
+ * foreground: 'hsl(var(--muted-foreground))'
153
+ * },
154
+ * accent: {
155
+ * DEFAULT: 'hsl(var(--accent))',
156
+ * foreground: 'hsl(var(--accent-foreground))'
157
+ * },
158
+ * destructive: {
159
+ * DEFAULT: 'hsl(var(--destructive))',
160
+ * foreground: 'hsl(var(--destructive-foreground))'
161
+ * },
162
+ * border: 'hsl(var(--border))',
163
+ * input: 'hsl(var(--input))',
164
+ * ring: 'hsl(var(--ring))',
165
+ * chart: {
166
+ * '1': 'hsl(var(--chart-1))',
167
+ * '2': 'hsl(var(--chart-2))',
168
+ * '3': 'hsl(var(--chart-3))',
169
+ * '4': 'hsl(var(--chart-4))',
170
+ * '5': 'hsl(var(--chart-5))',
171
+ * }
172
+ * },
173
+ * borderRadius: {
174
+ * lg: 'var(--radius)',
175
+ * md: 'calc(var(--radius) - 2px)',
176
+ * sm: 'calc(var(--radius) - 4px)'
177
+ * }
178
+ * }
179
+ * },
180
+ * plugins: [require('tailwindcss-animate')]
181
+ * }
182
+ */