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
@@ -20,48 +20,49 @@ import * as i18 from "./components/context-menu/context-menu.component";
20
20
  import * as i19 from "./components/data-table/data-table.component";
21
21
  import * as i20 from "./components/date-picker/date-picker.component";
22
22
  import * as i21 from "./components/dialog/dialog.component";
23
- import * as i22 from "./components/dropdown-menu/dropdown-menu.component";
24
- import * as i23 from "./components/drawer/drawer.component";
25
- import * as i24 from "./components/empty/empty.component";
26
- import * as i25 from "./components/field/field.component";
27
- import * as i26 from "./components/hover-card/hover-card.component";
28
- import * as i27 from "./components/icon/icon.component";
29
- import * as i28 from "./components/item/item.component";
30
- import * as i29 from "./components/input/input.component";
31
- import * as i30 from "./components/input-password/input-password.component";
32
- import * as i31 from "./components/input-group/input-group.component";
33
- import * as i32 from "./components/input-otp/input-otp.component";
34
- import * as i33 from "./components/kbd/kbd.component";
35
- import * as i34 from "./components/label/label.component";
36
- import * as i35 from "./components/menubar/menubar.component";
37
- import * as i36 from "./components/native-select/native-select.component";
38
- import * as i37 from "./components/navigation-menu/navigation-menu.component";
39
- import * as i38 from "./overlay/pdm-outside-click.directive";
40
- import * as i39 from "./components/pagination/pagination.component";
41
- import * as i40 from "./components/popover/popover.component";
42
- import * as i41 from "./components/progress/progress.component";
43
- import * as i42 from "./components/radio-group/radio-group.component";
44
- import * as i43 from "./components/scroll-area/scroll-area.component";
45
- import * as i44 from "./components/select/select.component";
46
- import * as i45 from "./components/select/select-option.directive";
47
- import * as i46 from "./components/separator/separator.component";
48
- import * as i47 from "./components/sheet/sheet.component";
49
- import * as i48 from "./components/sidebar/sidebar.component";
50
- import * as i49 from "./components/skeleton/skeleton.component";
51
- import * as i50 from "./components/slider/slider.component";
52
- import * as i51 from "./components/sonner/sonner.component";
53
- import * as i52 from "./components/spinner/spinner.component";
54
- import * as i53 from "./components/switch/switch.component";
55
- import * as i54 from "./components/table/table.component";
56
- import * as i55 from "./components/tabs/tabs.component";
57
- import * as i56 from "./components/textarea/textarea.component";
58
- import * as i57 from "./components/toggle/toggle.component";
59
- import * as i58 from "./components/toggle-group/toggle-group.component";
60
- import * as i59 from "./components/tooltip/tooltip.component";
61
- import * as i60 from "@angular/common";
62
- import * as i61 from "@angular/cdk/overlay";
23
+ import * as i22 from "./components/draggable-table/draggable-table.component";
24
+ import * as i23 from "./components/dropdown-menu/dropdown-menu.component";
25
+ import * as i24 from "./components/drawer/drawer.component";
26
+ import * as i25 from "./components/empty/empty.component";
27
+ import * as i26 from "./components/field/field.component";
28
+ import * as i27 from "./components/hover-card/hover-card.component";
29
+ import * as i28 from "./components/icon/icon.component";
30
+ import * as i29 from "./components/item/item.component";
31
+ import * as i30 from "./components/input/input.component";
32
+ import * as i31 from "./components/input-password/input-password.component";
33
+ import * as i32 from "./components/input-group/input-group.component";
34
+ import * as i33 from "./components/input-otp/input-otp.component";
35
+ import * as i34 from "./components/kbd/kbd.component";
36
+ import * as i35 from "./components/label/label.component";
37
+ import * as i36 from "./components/menubar/menubar.component";
38
+ import * as i37 from "./components/native-select/native-select.component";
39
+ import * as i38 from "./components/navigation-menu/navigation-menu.component";
40
+ import * as i39 from "./overlay/pdm-outside-click.directive";
41
+ import * as i40 from "./components/pagination/pagination.component";
42
+ import * as i41 from "./components/popover/popover.component";
43
+ import * as i42 from "./components/progress/progress.component";
44
+ import * as i43 from "./components/radio-group/radio-group.component";
45
+ import * as i44 from "./components/scroll-area/scroll-area.component";
46
+ import * as i45 from "./components/select/select.component";
47
+ import * as i46 from "./components/select/select-option.directive";
48
+ import * as i47 from "./components/separator/separator.component";
49
+ import * as i48 from "./components/sheet/sheet.component";
50
+ import * as i49 from "./components/sidebar/sidebar.component";
51
+ import * as i50 from "./components/skeleton/skeleton.component";
52
+ import * as i51 from "./components/slider/slider.component";
53
+ import * as i52 from "./components/sonner/sonner.component";
54
+ import * as i53 from "./components/spinner/spinner.component";
55
+ import * as i54 from "./components/switch/switch.component";
56
+ import * as i55 from "./components/table/table.component";
57
+ import * as i56 from "./components/tabs/tabs.component";
58
+ import * as i57 from "./components/textarea/textarea.component";
59
+ import * as i58 from "./components/toggle/toggle.component";
60
+ import * as i59 from "./components/toggle-group/toggle-group.component";
61
+ import * as i60 from "./components/tooltip/tooltip.component";
62
+ import * as i61 from "@angular/common";
63
+ import * as i62 from "@angular/cdk/overlay";
63
64
  export declare class PdmUiKitModule {
64
65
  static ɵfac: i0.ɵɵFactoryDeclaration<PdmUiKitModule, never>;
65
- static ɵmod: i0.ɵɵNgModuleDeclaration<PdmUiKitModule, [typeof i1.PdmAccordionComponent, typeof i2.PdmAlertComponent, typeof i3.PdmAlertDialogComponent, typeof i4.PdmAspectRatioComponent, typeof i5.PdmAvatarComponent, typeof i6.PdmBadgeComponent, typeof i7.PdmBreadcrumbComponent, typeof i8.PdmButtonGroupComponent, typeof i9.PdmButtonComponent, typeof i10.PdmCalendarComponent, typeof i11.PdmCarouselComponent, typeof i12.PdmCardComponent, typeof i13.PdmChartComponent, typeof i14.PdmCheckboxComponent, typeof i15.PdmCollapsibleComponent, typeof i16.PdmComboboxComponent, typeof i17.PdmCommandComponent, typeof i18.PdmContextMenuComponent, typeof i19.PdmDataTableComponent, typeof i20.PdmDatePickerComponent, typeof i21.PdmDialogComponent, typeof i22.PdmDropdownMenuComponent, typeof i23.PdmDrawerComponent, typeof i24.PdmEmptyComponent, typeof i25.PdmFieldComponent, typeof i26.PdmHoverCardComponent, typeof i27.PdmIconComponent, typeof i28.PdmItemComponent, typeof i29.PdmInputComponent, typeof i30.PdmInputPasswordComponent, typeof i31.PdmInputGroupComponent, typeof i32.PdmInputOtpComponent, typeof i33.PdmKbdComponent, typeof i34.PdmLabelComponent, typeof i35.PdmMenubarComponent, typeof i36.PdmNativeSelectComponent, typeof i37.PdmNavigationMenuComponent, typeof i38.PdmOutsideClickDirective, typeof i39.PdmPaginationComponent, typeof i40.PdmPopoverComponent, typeof i41.PdmProgressComponent, typeof i42.PdmRadioGroupComponent, typeof i43.PdmScrollAreaComponent, typeof i44.PdmSelectComponent, typeof i45.PdmSelectOptionDirective, typeof i46.PdmSeparatorComponent, typeof i47.PdmSheetComponent, typeof i48.PdmSidebarComponent, typeof i49.PdmSkeletonComponent, typeof i50.PdmSliderComponent, typeof i51.PdmSonnerComponent, typeof i52.PdmSpinnerComponent, typeof i53.PdmSwitchComponent, typeof i54.PdmTableComponent, typeof i55.PdmTabsComponent, typeof i56.PdmTextareaComponent, typeof i57.PdmToggleComponent, typeof i58.PdmToggleGroupComponent, typeof i59.PdmTooltipComponent], [typeof i60.CommonModule, typeof i61.OverlayModule], [typeof i1.PdmAccordionComponent, typeof i2.PdmAlertComponent, typeof i3.PdmAlertDialogComponent, typeof i4.PdmAspectRatioComponent, typeof i5.PdmAvatarComponent, typeof i6.PdmBadgeComponent, typeof i7.PdmBreadcrumbComponent, typeof i8.PdmButtonGroupComponent, typeof i9.PdmButtonComponent, typeof i10.PdmCalendarComponent, typeof i11.PdmCarouselComponent, typeof i12.PdmCardComponent, typeof i13.PdmChartComponent, typeof i14.PdmCheckboxComponent, typeof i15.PdmCollapsibleComponent, typeof i16.PdmComboboxComponent, typeof i17.PdmCommandComponent, typeof i18.PdmContextMenuComponent, typeof i19.PdmDataTableComponent, typeof i20.PdmDatePickerComponent, typeof i21.PdmDialogComponent, typeof i22.PdmDropdownMenuComponent, typeof i23.PdmDrawerComponent, typeof i24.PdmEmptyComponent, typeof i25.PdmFieldComponent, typeof i26.PdmHoverCardComponent, typeof i27.PdmIconComponent, typeof i28.PdmItemComponent, typeof i29.PdmInputComponent, typeof i30.PdmInputPasswordComponent, typeof i31.PdmInputGroupComponent, typeof i32.PdmInputOtpComponent, typeof i33.PdmKbdComponent, typeof i34.PdmLabelComponent, typeof i35.PdmMenubarComponent, typeof i36.PdmNativeSelectComponent, typeof i37.PdmNavigationMenuComponent, typeof i38.PdmOutsideClickDirective, typeof i39.PdmPaginationComponent, typeof i40.PdmPopoverComponent, typeof i41.PdmProgressComponent, typeof i42.PdmRadioGroupComponent, typeof i43.PdmScrollAreaComponent, typeof i44.PdmSelectComponent, typeof i45.PdmSelectOptionDirective, typeof i46.PdmSeparatorComponent, typeof i47.PdmSheetComponent, typeof i48.PdmSidebarComponent, typeof i49.PdmSkeletonComponent, typeof i50.PdmSliderComponent, typeof i51.PdmSonnerComponent, typeof i52.PdmSpinnerComponent, typeof i53.PdmSwitchComponent, typeof i54.PdmTableComponent, typeof i55.PdmTabsComponent, typeof i56.PdmTextareaComponent, typeof i57.PdmToggleComponent, typeof i58.PdmToggleGroupComponent, typeof i59.PdmTooltipComponent]>;
66
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PdmUiKitModule, [typeof i1.PdmAccordionComponent, typeof i2.PdmAlertComponent, typeof i3.PdmAlertDialogComponent, typeof i4.PdmAspectRatioComponent, typeof i5.PdmAvatarComponent, typeof i6.PdmBadgeComponent, typeof i7.PdmBreadcrumbComponent, typeof i8.PdmButtonGroupComponent, typeof i9.PdmButtonComponent, typeof i10.PdmCalendarComponent, typeof i11.PdmCarouselComponent, typeof i12.PdmCardComponent, typeof i13.PdmChartComponent, typeof i14.PdmCheckboxComponent, typeof i15.PdmCollapsibleComponent, typeof i16.PdmComboboxComponent, typeof i17.PdmCommandComponent, typeof i18.PdmContextMenuComponent, typeof i19.PdmDataTableComponent, typeof i20.PdmDatePickerComponent, typeof i21.PdmDialogComponent, typeof i22.PdmDraggableTableComponent, typeof i23.PdmDropdownMenuComponent, typeof i24.PdmDrawerComponent, typeof i25.PdmEmptyComponent, typeof i26.PdmFieldComponent, typeof i27.PdmHoverCardComponent, typeof i28.PdmIconComponent, typeof i29.PdmItemComponent, typeof i30.PdmInputComponent, typeof i31.PdmInputPasswordComponent, typeof i32.PdmInputGroupComponent, typeof i33.PdmInputOtpComponent, typeof i34.PdmKbdComponent, typeof i35.PdmLabelComponent, typeof i36.PdmMenubarComponent, typeof i37.PdmNativeSelectComponent, typeof i38.PdmNavigationMenuComponent, typeof i39.PdmOutsideClickDirective, typeof i40.PdmPaginationComponent, typeof i41.PdmPopoverComponent, typeof i42.PdmProgressComponent, typeof i43.PdmRadioGroupComponent, typeof i44.PdmScrollAreaComponent, typeof i45.PdmSelectComponent, typeof i46.PdmSelectOptionDirective, typeof i47.PdmSeparatorComponent, typeof i48.PdmSheetComponent, typeof i49.PdmSidebarComponent, typeof i50.PdmSkeletonComponent, typeof i51.PdmSliderComponent, typeof i52.PdmSonnerComponent, typeof i53.PdmSpinnerComponent, typeof i54.PdmSwitchComponent, typeof i55.PdmTableComponent, typeof i56.PdmTabsComponent, typeof i57.PdmTextareaComponent, typeof i58.PdmToggleComponent, typeof i59.PdmToggleGroupComponent, typeof i60.PdmTooltipComponent], [typeof i61.CommonModule, typeof i62.OverlayModule], [typeof i1.PdmAccordionComponent, typeof i2.PdmAlertComponent, typeof i3.PdmAlertDialogComponent, typeof i4.PdmAspectRatioComponent, typeof i5.PdmAvatarComponent, typeof i6.PdmBadgeComponent, typeof i7.PdmBreadcrumbComponent, typeof i8.PdmButtonGroupComponent, typeof i9.PdmButtonComponent, typeof i10.PdmCalendarComponent, typeof i11.PdmCarouselComponent, typeof i12.PdmCardComponent, typeof i13.PdmChartComponent, typeof i14.PdmCheckboxComponent, typeof i15.PdmCollapsibleComponent, typeof i16.PdmComboboxComponent, typeof i17.PdmCommandComponent, typeof i18.PdmContextMenuComponent, typeof i19.PdmDataTableComponent, typeof i20.PdmDatePickerComponent, typeof i21.PdmDialogComponent, typeof i22.PdmDraggableTableComponent, typeof i23.PdmDropdownMenuComponent, typeof i24.PdmDrawerComponent, typeof i25.PdmEmptyComponent, typeof i26.PdmFieldComponent, typeof i27.PdmHoverCardComponent, typeof i28.PdmIconComponent, typeof i29.PdmItemComponent, typeof i30.PdmInputComponent, typeof i31.PdmInputPasswordComponent, typeof i32.PdmInputGroupComponent, typeof i33.PdmInputOtpComponent, typeof i34.PdmKbdComponent, typeof i35.PdmLabelComponent, typeof i36.PdmMenubarComponent, typeof i37.PdmNativeSelectComponent, typeof i38.PdmNavigationMenuComponent, typeof i39.PdmOutsideClickDirective, typeof i40.PdmPaginationComponent, typeof i41.PdmPopoverComponent, typeof i42.PdmProgressComponent, typeof i43.PdmRadioGroupComponent, typeof i44.PdmScrollAreaComponent, typeof i45.PdmSelectComponent, typeof i46.PdmSelectOptionDirective, typeof i47.PdmSeparatorComponent, typeof i48.PdmSheetComponent, typeof i49.PdmSidebarComponent, typeof i50.PdmSkeletonComponent, typeof i51.PdmSliderComponent, typeof i52.PdmSonnerComponent, typeof i53.PdmSpinnerComponent, typeof i54.PdmSwitchComponent, typeof i55.PdmTableComponent, typeof i56.PdmTabsComponent, typeof i57.PdmTextareaComponent, typeof i58.PdmToggleComponent, typeof i59.PdmToggleGroupComponent, typeof i60.PdmTooltipComponent]>;
66
67
  static ɵinj: i0.ɵɵInjectorDeclaration<PdmUiKitModule>;
67
68
  }
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Sistema de responsive utilities para PDM UI Kit
3
+ *
4
+ * Proporciona constantes, tipos y helpers para manejar responsive design
5
+ * de forma consistente en todos los componentes.
6
+ */
7
+ /**
8
+ * Breakpoints estándar de Tailwind CSS
9
+ * Mobile-first approach: los estilos base son para mobile, los breakpoints son MIN-WIDTH
10
+ */
11
+ export declare const BREAKPOINTS: {
12
+ readonly sm: "640px";
13
+ readonly md: "768px";
14
+ readonly lg: "1024px";
15
+ readonly xl: "1280px";
16
+ readonly '2xl': "1536px";
17
+ };
18
+ export declare type Breakpoint = keyof typeof BREAKPOINTS;
19
+ /**
20
+ * Estrategias de overflow para componentes que pueden desbordar
21
+ */
22
+ export declare type OverflowStrategy = 'auto' | 'scroll' | 'hidden' | 'visible';
23
+ /**
24
+ * Estrategias responsive para tablas
25
+ */
26
+ export declare type TableResponsiveStrategy = 'scroll' | 'stack' | 'wrap' | 'collapse';
27
+ /**
28
+ * Helper para generar clases responsive de forma programática
29
+ *
30
+ * @example
31
+ * responsive({ default: 'block', sm: 'flex', lg: 'grid' })
32
+ * // Returns: 'block sm:flex lg:grid'
33
+ */
34
+ export declare function responsive<T extends string>(config: Partial<Record<Breakpoint | 'default', T>>): string;
35
+ /**
36
+ * Helper para overflow responsive
37
+ * Maneja el caso común de scroll en mobile, auto en desktop
38
+ *
39
+ * @example
40
+ * overflowResponsive('x', 'scroll', 'auto')
41
+ * // Returns: 'overflow-x-scroll sm:overflow-x-auto'
42
+ */
43
+ export declare function overflowResponsive(axis: 'x' | 'y' | 'both', mobile: OverflowStrategy, desktop?: OverflowStrategy): string;
44
+ /**
45
+ * Helper para spacing responsive
46
+ * Útil para padding/margin que necesita ajustarse por breakpoint
47
+ *
48
+ * @example
49
+ * spacingResponsive('px', { default: '4', sm: '6', lg: '8' })
50
+ * // Returns: 'px-4 sm:px-6 lg:px-8'
51
+ */
52
+ export declare function spacingResponsive(property: 'p' | 'px' | 'py' | 'pt' | 'pr' | 'pb' | 'pl' | 'm' | 'mx' | 'my' | 'mt' | 'mr' | 'mb' | 'ml', values: Partial<Record<Breakpoint | 'default', string>>): string;
53
+ /**
54
+ * Helper para width responsive
55
+ *
56
+ * @example
57
+ * widthResponsive({ default: 'full', sm: 'auto', lg: '1/2' })
58
+ * // Returns: 'w-full sm:w-auto lg:w-1/2'
59
+ */
60
+ export declare function widthResponsive(values: Partial<Record<Breakpoint | 'default', string>>): string;
61
+ /**
62
+ * Clases comunes para containers responsive
63
+ * Pensadas para wrappers que contienen contenido que puede desbordar
64
+ */
65
+ export declare const RESPONSIVE_CONTAINER: {
66
+ readonly tableWrapper: "relative w-full overflow-x-auto sm:overflow-x-visible";
67
+ readonly tableWrapperFullBleed: "relative w-full -mx-4 px-4 overflow-x-auto sm:mx-0 sm:px-0 sm:overflow-x-visible";
68
+ readonly contentWrapper: "w-full mx-auto px-4 sm:px-6 lg:px-8 max-w-screen-2xl";
69
+ readonly modalWrapper: "w-full max-w-lg mx-auto px-4 sm:px-0";
70
+ readonly formWrapper: "w-full max-w-md mx-auto space-y-4";
71
+ };
72
+ /**
73
+ * Clases comunes para display responsive
74
+ */
75
+ export declare const RESPONSIVE_DISPLAY: {
76
+ readonly hideOnMobile: "hidden sm:block";
77
+ readonly showOnMobile: "block sm:hidden";
78
+ readonly stackToFlex: "flex flex-col sm:flex-row";
79
+ readonly stackToGrid: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3";
80
+ };
81
+ /**
82
+ * Clases para table responsive strategies
83
+ */
84
+ export declare const TABLE_RESPONSIVE: {
85
+ readonly scroll: {
86
+ readonly wrapper: "relative w-full overflow-x-auto";
87
+ readonly table: "w-full min-w-full";
88
+ readonly cell: "whitespace-nowrap";
89
+ };
90
+ readonly wrap: {
91
+ readonly wrapper: "relative w-full overflow-x-auto";
92
+ readonly table: "w-full";
93
+ readonly cell: "whitespace-normal break-words";
94
+ };
95
+ readonly stack: {
96
+ readonly wrapper: "relative w-full";
97
+ readonly table: "w-full";
98
+ readonly row: "block sm:table-row border-b sm:border-b-0";
99
+ readonly cell: "block sm:table-cell py-2 sm:py-0 before:content-[attr(data-label)] before:font-medium before:inline-block before:w-32 sm:before:content-none";
100
+ };
101
+ readonly collapse: {
102
+ readonly wrapper: "relative w-full overflow-x-auto";
103
+ readonly table: "w-full";
104
+ readonly cell: "whitespace-nowrap";
105
+ readonly optionalColumn: "hidden md:table-cell";
106
+ };
107
+ };
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Z-Index Scale - Sistema centralizado de z-index
3
+ *
4
+ * JERARQUÍA (de menor a mayor):
5
+ * 1. base (z-0) - Elementos normales del DOM
6
+ * 2. dropdown (z-10) - Selects, combobox, date-pickers
7
+ * 3. sticky (z-20) - Headers, navigation bars
8
+ * 4. drawerBackdrop (z-30) - Backdrop de drawers
9
+ * 5. drawer (z-40) - Sidebar drawer, sheets laterales
10
+ * 6. modalBackdrop (z-40) - Backdrop de modals ( mismo nivel que drawer)
11
+ * 7. modal (z-50) - Dialogs, alert-dialogs
12
+ * 8. popover (z-[70]) - Tooltips, dropdowns DENTRO de modals
13
+ * 9. toast (z-[100]) - Notificaciones que deben estar sobre TODO
14
+ *
15
+ * REGLA CRÍTICA:
16
+ * - Componentes overlay (select options, dropdown menu, tooltip) SIEMPRE z-[70] o mayor
17
+ * - Esto permite que funcionen DENTRO de modals (z-50)
18
+ * - Backdrop de modal debe ser z-40 para estar DEBAJO del contenido del modal (z-50)
19
+ */
20
+ export declare const Z_INDEX: {
21
+ /**
22
+ * Base - contenido normal del DOM
23
+ */
24
+ readonly base: "z-0";
25
+ /**
26
+ * Dropdown - Selects, combobox, date-pickers
27
+ * Debe estar SOBRE contenido normal pero BAJO overlays
28
+ */
29
+ readonly dropdown: "z-10";
30
+ /**
31
+ * Sticky - Headers, navigation fija
32
+ */
33
+ readonly sticky: "z-20";
34
+ /**
35
+ * Drawer backdrop - Backdrop de sidebar drawer
36
+ * Debe estar DEBAJO del drawer panel y DEBAJO de modals
37
+ */
38
+ readonly drawerBackdrop: "z-30";
39
+ /**
40
+ * Drawer - Sidebar drawer, sheets laterales
41
+ * Debe estar SOBRE su backdrop pero BAJO modals
42
+ */
43
+ readonly drawer: "z-40";
44
+ /**
45
+ * Modal backdrop - Backdrop de dialogs
46
+ * Mismo nivel que drawer backdrop (z-40)
47
+ */
48
+ readonly modalBackdrop: "z-40";
49
+ /**
50
+ * Modal - Dialogs, alert-dialogs
51
+ * Debe estar SOBRE su backdrop
52
+ */
53
+ readonly modal: "z-50";
54
+ /**
55
+ * Popover - Tooltips, dropdowns, selects options DENTRO de modals
56
+ * CRÍTICO: Debe ser MAYOR que modal (z-50) para aparecer sobre modals
57
+ * USAR SIEMPRE mergeOverlayPanelClass() para asegurar este valor
58
+ */
59
+ readonly popover: "z-[70]";
60
+ /**
61
+ * Toast - Notificaciones globales
62
+ * Debe estar sobre TODO
63
+ */
64
+ readonly toast: "z-[100]";
65
+ };
66
+ /**
67
+ * Helper para debugging z-index issues
68
+ */
69
+ export declare function logZIndexStack(element: HTMLElement): void;
package/package.json CHANGED
@@ -1,14 +1,16 @@
1
1
  {
2
2
  "name": "pdm-ui-kit",
3
- "version": "0.1.50",
4
- "description": "PDM UI Kit Angular components",
3
+ "version": "0.3.0",
4
+ "description": "PDM UI Kit Angular components - Responsive by default",
5
5
  "author": "Corelusa",
6
6
  "license": "MIT",
7
7
  "keywords": [
8
8
  "angular",
9
9
  "ui",
10
10
  "components",
11
- "design-system"
11
+ "design-system",
12
+ "responsive",
13
+ "shadcn"
12
14
  ],
13
15
  "repository": {
14
16
  "type": "git",
@@ -16,11 +18,11 @@
16
18
  },
17
19
  "sideEffects": false,
18
20
  "peerDependencies": {
19
- "@angular/common": ">=14.0.0 <16.0.0",
20
- "@angular/core": ">=14.0.0 <16.0.0",
21
- "@angular/platform-browser": ">=14.0.0 <16.0.0",
22
- "lucide": ">=0.575.0",
23
- "@angular/cdk": ">=14.2.7 <16.0.0"
21
+ "@angular/cdk": ">=15.0.0",
22
+ "@angular/common": ">=15.0.0",
23
+ "@angular/core": ">=15.0.0",
24
+ "@angular/platform-browser": ">=15.0.0",
25
+ "lucide": ">=0.575.0"
24
26
  },
25
27
  "dependencies": {
26
28
  "date-fns": "^2.30.0",
package/public-api.d.ts CHANGED
@@ -1,62 +1,66 @@
1
- export * from './lib/pdm-ui-kit.module';
2
- export * from './lib/overlay/pdm-overlay-options';
3
- export * from './lib/overlay/create-flexible-position-strategy';
4
- export * from './lib/overlay/pdm-outside-click.directive';
5
- export * from './lib/components/accordion/accordion.component';
6
- export * from './lib/components/alert/alert.component';
7
- export * from './lib/components/alert-dialog/alert-dialog.component';
8
- export * from './lib/components/aspect-ratio/aspect-ratio.component';
9
- export * from './lib/components/avatar/avatar.component';
10
- export * from './lib/components/badge/badge.component';
11
- export * from './lib/components/breadcrumb/breadcrumb.component';
12
- export * from './lib/components/button-group/button-group.component';
13
- export * from './lib/components/button/button.component';
14
- export * from './lib/components/calendar/calendar.component';
15
- export * from './lib/components/carousel/carousel.component';
16
- export * from './lib/components/card/card.component';
17
- export * from './lib/components/chart/chart.component';
18
- export * from './lib/components/checkbox/checkbox.component';
19
- export * from './lib/components/collapsible/collapsible.component';
20
- export * from './lib/components/combobox/combobox.component';
21
- export * from './lib/components/command/command.component';
22
- export * from './lib/components/context-menu/context-menu.component';
23
- export * from './lib/components/data-table/data-table.component';
24
- export * from './lib/components/date-picker/date-picker.component';
25
- export * from './lib/components/dialog/dialog.component';
26
- export * from './lib/components/dropdown-menu/dropdown-menu.component';
27
- export * from './lib/components/drawer/drawer.component';
28
- export * from './lib/components/empty/empty.component';
29
- export * from './lib/components/field/field.component';
30
- export * from './lib/components/hover-card/hover-card.component';
31
- export * from './lib/components/icon/icon.component';
32
- export * from './lib/components/item/item.component';
33
- export * from './lib/components/input/input.component';
34
- export * from './lib/components/input-password/input-password.component';
35
- export * from './lib/components/input-group/input-group.component';
36
- export * from './lib/components/input-otp/input-otp.component';
37
- export * from './lib/components/kbd/kbd.component';
38
- export * from './lib/components/label/label.component';
39
- export * from './lib/components/menubar/menubar.component';
40
- export * from './lib/components/native-select/native-select.component';
41
- export * from './lib/components/navigation-menu/navigation-menu.component';
42
- export * from './lib/components/pagination/pagination.component';
43
- export * from './lib/components/popover/popover.component';
44
- export * from './lib/components/progress/progress.component';
45
- export * from './lib/components/radio-group/radio-group.component';
46
- export * from './lib/components/scroll-area/scroll-area.component';
47
- export * from './lib/components/select/select.component';
48
- export * from './lib/components/select/select-option.directive';
49
- export * from './lib/components/separator/separator.component';
50
- export * from './lib/components/sheet/sheet.component';
51
- export * from './lib/components/sidebar/sidebar.component';
52
- export * from './lib/components/skeleton/skeleton.component';
53
- export * from './lib/components/slider/slider.component';
54
- export * from './lib/components/sonner/sonner.component';
55
- export * from './lib/components/spinner/spinner.component';
56
- export * from './lib/components/switch/switch.component';
57
- export * from './lib/components/table/table.component';
58
- export * from './lib/components/tabs/tabs.component';
59
- export * from './lib/components/textarea/textarea.component';
60
- export * from './lib/components/toggle/toggle.component';
61
- export * from './lib/components/toggle-group/toggle-group.component';
62
- export * from './lib/components/tooltip/tooltip.component';
1
+ export * from "./lib/pdm-ui-kit.module";
2
+ export * from "./lib/overlay/pdm-overlay-options";
3
+ export * from "./lib/overlay/create-flexible-position-strategy";
4
+ export * from "./lib/overlay/pdm-outside-click.directive";
5
+ export * from "./lib/overlay/z-index-helper";
6
+ export * from "./lib/utils/responsive";
7
+ export * from "./lib/utils/z-index";
8
+ export * from "./lib/components/accordion/accordion.component";
9
+ export * from "./lib/components/alert/alert.component";
10
+ export * from "./lib/components/alert-dialog/alert-dialog.component";
11
+ export * from "./lib/components/aspect-ratio/aspect-ratio.component";
12
+ export * from "./lib/components/avatar/avatar.component";
13
+ export * from "./lib/components/badge/badge.component";
14
+ export * from "./lib/components/breadcrumb/breadcrumb.component";
15
+ export * from "./lib/components/button-group/button-group.component";
16
+ export * from "./lib/components/button/button.component";
17
+ export * from "./lib/components/calendar/calendar.component";
18
+ export * from "./lib/components/carousel/carousel.component";
19
+ export * from "./lib/components/card/card.component";
20
+ export * from "./lib/components/chart/chart.component";
21
+ export * from "./lib/components/checkbox/checkbox.component";
22
+ export * from "./lib/components/collapsible/collapsible.component";
23
+ export * from "./lib/components/combobox/combobox.component";
24
+ export * from "./lib/components/command/command.component";
25
+ export * from "./lib/components/context-menu/context-menu.component";
26
+ export * from "./lib/components/data-table/data-table.component";
27
+ export * from "./lib/components/date-picker/date-picker.component";
28
+ export * from "./lib/components/dialog/dialog.component";
29
+ export * from "./lib/components/draggable-table/draggable-table.component";
30
+ export * from "./lib/components/dropdown-menu/dropdown-menu.component";
31
+ export * from "./lib/components/drawer/drawer.component";
32
+ export * from "./lib/components/empty/empty.component";
33
+ export * from "./lib/components/field/field.component";
34
+ export * from "./lib/components/hover-card/hover-card.component";
35
+ export * from "./lib/components/icon/icon.component";
36
+ export * from "./lib/components/item/item.component";
37
+ export * from "./lib/components/input/input.component";
38
+ export * from "./lib/components/input-password/input-password.component";
39
+ export * from "./lib/components/input-group/input-group.component";
40
+ export * from "./lib/components/input-otp/input-otp.component";
41
+ export * from "./lib/components/kbd/kbd.component";
42
+ export * from "./lib/components/label/label.component";
43
+ export * from "./lib/components/menubar/menubar.component";
44
+ export * from "./lib/components/native-select/native-select.component";
45
+ export * from "./lib/components/navigation-menu/navigation-menu.component";
46
+ export * from "./lib/components/pagination/pagination.component";
47
+ export * from "./lib/components/popover/popover.component";
48
+ export * from "./lib/components/progress/progress.component";
49
+ export * from "./lib/components/radio-group/radio-group.component";
50
+ export * from "./lib/components/scroll-area/scroll-area.component";
51
+ export * from "./lib/components/select/select.component";
52
+ export * from "./lib/components/select/select-option.directive";
53
+ export * from "./lib/components/separator/separator.component";
54
+ export * from "./lib/components/sheet/sheet.component";
55
+ export * from "./lib/components/sidebar/sidebar.component";
56
+ export * from "./lib/components/skeleton/skeleton.component";
57
+ export * from "./lib/components/slider/slider.component";
58
+ export * from "./lib/components/sonner/sonner.component";
59
+ export * from "./lib/components/spinner/spinner.component";
60
+ export * from "./lib/components/switch/switch.component";
61
+ export * from "./lib/components/table/table.component";
62
+ export * from "./lib/components/tabs/tabs.component";
63
+ export * from "./lib/components/textarea/textarea.component";
64
+ export * from "./lib/components/toggle/toggle.component";
65
+ export * from "./lib/components/toggle-group/toggle-group.component";
66
+ export * from "./lib/components/tooltip/tooltip.component";