@ganpatiinfo/gids-react-web 9.2.0 → 11.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 (137) hide show
  1. package/dist/components/GidsButton/GidsButton.d.ts +1 -1
  2. package/dist/components/GidsButton/GidsButton.d.ts.map +1 -1
  3. package/dist/components/GidsButton/GidsButton.js +2 -1
  4. package/dist/components/GidsButton/GidsButton.js.map +1 -1
  5. package/dist/components/GidsCalendarCell/GidsCalendarCell.d.ts +8 -0
  6. package/dist/components/GidsCalendarCell/GidsCalendarCell.d.ts.map +1 -0
  7. package/dist/components/GidsCalendarCell/GidsCalendarCell.js +37 -0
  8. package/dist/components/GidsCalendarCell/GidsCalendarCell.js.map +1 -0
  9. package/dist/components/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +5 -0
  10. package/dist/components/GidsCalendarDayCell/GidsCalendarDayCell.d.ts.map +1 -0
  11. package/dist/components/GidsCalendarDayCell/GidsCalendarDayCell.js +8 -0
  12. package/dist/components/GidsCalendarDayCell/GidsCalendarDayCell.js.map +1 -0
  13. package/dist/components/GidsDropdownItem/GidsDropdownItem.d.ts +10 -0
  14. package/dist/components/GidsDropdownItem/GidsDropdownItem.d.ts.map +1 -0
  15. package/dist/components/GidsDropdownItem/GidsDropdownItem.js +27 -0
  16. package/dist/components/GidsDropdownItem/GidsDropdownItem.js.map +1 -0
  17. package/dist/components/GidsDropdownMenu/GidsDropdownMenu.d.ts +6 -0
  18. package/dist/components/GidsDropdownMenu/GidsDropdownMenu.d.ts.map +1 -0
  19. package/dist/components/GidsDropdownMenu/GidsDropdownMenu.js +19 -0
  20. package/dist/components/GidsDropdownMenu/GidsDropdownMenu.js.map +1 -0
  21. package/dist/components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +5 -0
  22. package/dist/components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts.map +1 -0
  23. package/dist/components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.js +20 -0
  24. package/dist/components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.js.map +1 -0
  25. package/dist/components/GidsEditButton/GidsEditButton.d.ts +7 -0
  26. package/dist/components/GidsEditButton/GidsEditButton.d.ts.map +1 -0
  27. package/dist/components/GidsEditButton/GidsEditButton.js +26 -0
  28. package/dist/components/GidsEditButton/GidsEditButton.js.map +1 -0
  29. package/dist/components/GidsListItem/GidsListItem.d.ts +9 -0
  30. package/dist/components/GidsListItem/GidsListItem.d.ts.map +1 -0
  31. package/dist/components/GidsListItem/GidsListItem.js +183 -0
  32. package/dist/components/GidsListItem/GidsListItem.js.map +1 -0
  33. package/dist/components/GidsMenu/GidsMenu.d.ts +5 -0
  34. package/dist/components/GidsMenu/GidsMenu.d.ts.map +1 -0
  35. package/dist/components/GidsMenu/GidsMenu.js +13 -0
  36. package/dist/components/GidsMenu/GidsMenu.js.map +1 -0
  37. package/dist/components/GidsMenuGroup/GidsMenuGroup.d.ts +5 -0
  38. package/dist/components/GidsMenuGroup/GidsMenuGroup.d.ts.map +1 -0
  39. package/dist/components/GidsMenuGroup/GidsMenuGroup.js +13 -0
  40. package/dist/components/GidsMenuGroup/GidsMenuGroup.js.map +1 -0
  41. package/dist/components/GidsPageTitle/GidsPageTitle.d.ts +5 -0
  42. package/dist/components/GidsPageTitle/GidsPageTitle.d.ts.map +1 -0
  43. package/dist/components/GidsPageTitle/GidsPageTitle.js +10 -0
  44. package/dist/components/GidsPageTitle/GidsPageTitle.js.map +1 -0
  45. package/dist/components/stencil-generated/components.d.ts +20 -0
  46. package/dist/components/stencil-generated/components.d.ts.map +1 -1
  47. package/dist/components/stencil-generated/components.js +20 -0
  48. package/dist/components/stencil-generated/components.js.map +1 -1
  49. package/dist/components/stencil-generated/gids-activity-gauge.d.ts +10 -0
  50. package/dist/components/stencil-generated/gids-activity-gauge.d.ts.map +1 -0
  51. package/dist/components/stencil-generated/gids-activity-gauge.js +13 -0
  52. package/dist/components/stencil-generated/gids-activity-gauge.js.map +1 -0
  53. package/dist/components/stencil-generated/gids-bar-chart.d.ts +10 -0
  54. package/dist/components/stencil-generated/gids-bar-chart.d.ts.map +1 -0
  55. package/dist/components/stencil-generated/gids-bar-chart.js +13 -0
  56. package/dist/components/stencil-generated/gids-bar-chart.js.map +1 -0
  57. package/dist/components/stencil-generated/gids-calendar-header-panel.d.ts +10 -0
  58. package/dist/components/stencil-generated/gids-calendar-header-panel.d.ts.map +1 -0
  59. package/dist/components/stencil-generated/gids-calendar-header-panel.js +13 -0
  60. package/dist/components/stencil-generated/gids-calendar-header-panel.js.map +1 -0
  61. package/dist/components/stencil-generated/gids-calendar-month-list.d.ts +10 -0
  62. package/dist/components/stencil-generated/gids-calendar-month-list.d.ts.map +1 -0
  63. package/dist/components/stencil-generated/gids-calendar-month-list.js +13 -0
  64. package/dist/components/stencil-generated/gids-calendar-month-list.js.map +1 -0
  65. package/dist/components/stencil-generated/gids-calendar-year-list.d.ts +10 -0
  66. package/dist/components/stencil-generated/gids-calendar-year-list.d.ts.map +1 -0
  67. package/dist/components/stencil-generated/gids-calendar-year-list.js +13 -0
  68. package/dist/components/stencil-generated/gids-calendar-year-list.js.map +1 -0
  69. package/dist/components/stencil-generated/gids-calendar.d.ts +10 -0
  70. package/dist/components/stencil-generated/gids-calendar.d.ts.map +1 -0
  71. package/dist/components/stencil-generated/gids-calendar.js +13 -0
  72. package/dist/components/stencil-generated/gids-calendar.js.map +1 -0
  73. package/dist/components/stencil-generated/gids-chart-legend-item.d.ts +10 -0
  74. package/dist/components/stencil-generated/gids-chart-legend-item.d.ts.map +1 -0
  75. package/dist/components/stencil-generated/gids-chart-legend-item.js +13 -0
  76. package/dist/components/stencil-generated/gids-chart-legend-item.js.map +1 -0
  77. package/dist/components/stencil-generated/gids-chart-legend.d.ts +10 -0
  78. package/dist/components/stencil-generated/gids-chart-legend.d.ts.map +1 -0
  79. package/dist/components/stencil-generated/gids-chart-legend.js +13 -0
  80. package/dist/components/stencil-generated/gids-chart-legend.js.map +1 -0
  81. package/dist/components/stencil-generated/gids-chart.d.ts +10 -0
  82. package/dist/components/stencil-generated/gids-chart.d.ts.map +1 -0
  83. package/dist/components/stencil-generated/gids-chart.js +13 -0
  84. package/dist/components/stencil-generated/gids-chart.js.map +1 -0
  85. package/dist/components/stencil-generated/gids-chevron-button.d.ts +13 -0
  86. package/dist/components/stencil-generated/gids-chevron-button.d.ts.map +1 -0
  87. package/dist/components/stencil-generated/gids-chevron-button.js +13 -0
  88. package/dist/components/stencil-generated/gids-chevron-button.js.map +1 -0
  89. package/dist/components/stencil-generated/gids-dot.d.ts +10 -0
  90. package/dist/components/stencil-generated/gids-dot.d.ts.map +1 -0
  91. package/dist/components/stencil-generated/gids-dot.js +13 -0
  92. package/dist/components/stencil-generated/gids-dot.js.map +1 -0
  93. package/dist/components/stencil-generated/gids-dropdown-field.d.ts +10 -0
  94. package/dist/components/stencil-generated/gids-dropdown-field.d.ts.map +1 -0
  95. package/dist/components/stencil-generated/gids-dropdown-field.js +13 -0
  96. package/dist/components/stencil-generated/gids-dropdown-field.js.map +1 -0
  97. package/dist/components/stencil-generated/gids-dropdown-picker.d.ts +10 -0
  98. package/dist/components/stencil-generated/gids-dropdown-picker.d.ts.map +1 -0
  99. package/dist/components/stencil-generated/gids-dropdown-picker.js +13 -0
  100. package/dist/components/stencil-generated/gids-dropdown-picker.js.map +1 -0
  101. package/dist/components/stencil-generated/gids-dropdown.d.ts +10 -0
  102. package/dist/components/stencil-generated/gids-dropdown.d.ts.map +1 -0
  103. package/dist/components/stencil-generated/gids-dropdown.js +13 -0
  104. package/dist/components/stencil-generated/gids-dropdown.js.map +1 -0
  105. package/dist/components/stencil-generated/gids-level-gauge.d.ts +10 -0
  106. package/dist/components/stencil-generated/gids-level-gauge.d.ts.map +1 -0
  107. package/dist/components/stencil-generated/gids-level-gauge.js +13 -0
  108. package/dist/components/stencil-generated/gids-level-gauge.js.map +1 -0
  109. package/dist/components/stencil-generated/gids-line-chart.d.ts +10 -0
  110. package/dist/components/stencil-generated/gids-line-chart.d.ts.map +1 -0
  111. package/dist/components/stencil-generated/gids-line-chart.js +13 -0
  112. package/dist/components/stencil-generated/gids-line-chart.js.map +1 -0
  113. package/dist/components/stencil-generated/gids-pie-chart.d.ts +10 -0
  114. package/dist/components/stencil-generated/gids-pie-chart.d.ts.map +1 -0
  115. package/dist/components/stencil-generated/gids-pie-chart.js +13 -0
  116. package/dist/components/stencil-generated/gids-pie-chart.js.map +1 -0
  117. package/dist/components/stencil-generated/gids-popover.d.ts +10 -0
  118. package/dist/components/stencil-generated/gids-popover.d.ts.map +1 -0
  119. package/dist/components/stencil-generated/gids-popover.js +13 -0
  120. package/dist/components/stencil-generated/gids-popover.js.map +1 -0
  121. package/dist/components/stencil-generated/gids-progress-circle.d.ts +10 -0
  122. package/dist/components/stencil-generated/gids-progress-circle.d.ts.map +1 -0
  123. package/dist/components/stencil-generated/gids-progress-circle.js +13 -0
  124. package/dist/components/stencil-generated/gids-progress-circle.js.map +1 -0
  125. package/dist/components/stencil-generated/gids-tooltip.d.ts +10 -0
  126. package/dist/components/stencil-generated/gids-tooltip.d.ts.map +1 -0
  127. package/dist/components/stencil-generated/gids-tooltip.js +13 -0
  128. package/dist/components/stencil-generated/gids-tooltip.js.map +1 -0
  129. package/dist/customHooks/useChildrenValidation.d.ts +8 -0
  130. package/dist/customHooks/useChildrenValidation.d.ts.map +1 -0
  131. package/dist/customHooks/useChildrenValidation.js +28 -0
  132. package/dist/customHooks/useChildrenValidation.js.map +1 -0
  133. package/dist/index.d.ts +30 -0
  134. package/dist/index.d.ts.map +1 -1
  135. package/dist/index.js +32 -0
  136. package/dist/index.js.map +1 -1
  137. package/package.json +11 -11
@@ -1,5 +1,5 @@
1
1
  import { type GidsButtonWebProps, type PermittedGidsButtonElements } from '@ganpatiinfo/gids-web-shared';
2
2
  import { type ComponentPropsWithoutRef, type ReactNode, type JSX } from 'react';
3
3
  export type GidsButtonProps<E extends PermittedGidsButtonElements> = GidsButtonWebProps<ReactNode, ReactNode, E> & ComponentPropsWithoutRef<E>;
4
- export declare const GidsButton: <E extends PermittedGidsButtonElements = "button">({ as, children, appearance, size, width, destructive, loading, leadingIcon, trailingIcon, disabled, className, ...rest }: GidsButtonProps<E>) => JSX.Element;
4
+ export declare const GidsButton: <E extends PermittedGidsButtonElements = "button">({ as, children, appearance, size, width, destructive, positive, loading, leadingIcon, trailingIcon, disabled, className, ...rest }: GidsButtonProps<E>) => JSX.Element;
5
5
  //# sourceMappingURL=GidsButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GidsButton.d.ts","sourceRoot":"","sources":["../../../src/components/GidsButton/GidsButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,MAAM,8BAA8B,CAAC;AACtC,OAAc,EACb,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,KAAK,GAAG,EACR,MAAM,OAAO,CAAC;AAKf,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,2BAA2B,IAChE,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAE3E,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,2BAA2B,GAAG,QAAQ,EAAE,0HAa1E,eAAe,CAAC,CAAC,CAAC,KAAG,GAAG,CAAC,OAiC3B,CAAC"}
1
+ {"version":3,"file":"GidsButton.d.ts","sourceRoot":"","sources":["../../../src/components/GidsButton/GidsButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,MAAM,8BAA8B,CAAC;AACtC,OAAc,EACb,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,KAAK,GAAG,EACR,MAAM,OAAO,CAAC;AAKf,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,2BAA2B,IAChE,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAE3E,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,2BAA2B,GAAG,QAAQ,EAAE,oIAc1E,eAAe,CAAC,CAAC,CAAC,KAAG,GAAG,CAAC,OAkC3B,CAAC"}
@@ -2,7 +2,7 @@ import { GidsButtonWebUtils, } from '@ganpatiinfo/gids-web-shared';
2
2
  import React from 'react';
3
3
  import { GidsSpinnerControl } from '../_GidsSpinnerControl/GidsSpinnerControl.js';
4
4
  const { getGidsButtonClassNames } = GidsButtonWebUtils;
5
- export const GidsButton = ({ as, children, appearance, size, width, destructive, loading, leadingIcon, trailingIcon, disabled, className, ...rest }) => {
5
+ export const GidsButton = ({ as, children, appearance, size, width, destructive, positive, loading, leadingIcon, trailingIcon, disabled, className, ...rest }) => {
6
6
  const Component = as || 'button';
7
7
  const spinnerSize = size === 'lg' || size === undefined ? 'md' : size;
8
8
  if (as === 'button' && !('type' in rest)) {
@@ -16,6 +16,7 @@ export const GidsButton = ({ as, children, appearance, size, width, destructive,
16
16
  size,
17
17
  loading,
18
18
  destructive,
19
+ positive,
19
20
  }, !children && !!leadingIcon && !trailingIcon, className), disabled: as !== 'a' ? disabled : undefined, ...rest },
20
21
  React.createElement("span", { className: "gids-button__content" },
21
22
  leadingIcon,
@@ -1 +1 @@
1
- {"version":3,"file":"GidsButton.js","sourceRoot":"","sources":["../../../src/components/GidsButton/GidsButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,kBAAkB,GAGlB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAIN,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAElF,MAAM,EAAE,uBAAuB,EAAE,GAAG,kBAAkB,CAAC;AAKvD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAmD,EAC5E,EAAE,EACF,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,KAAK,EACL,WAAW,EACX,O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,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,KAAK,EACL,WAAW,EACX,QAAQ,EACR,OAAO,EACP,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACa,EAAe,EAAE;IACrC,MAAM,SAAS,GAAG,EAAE,IAAI,QAAQ,CAAC;IACjC,MAAM,WAAW,GAAG,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAEtE,IAAI,EAAE,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,IAAI,IAAI,CAAC,EAAE,CAAC;QACzC,IAAwC,CAAC,IAAI,GAAG,QAAQ,CAAC;IAC3D,CAAC;IAED,OAAO;IACN,mCAAmC;IACnC,oBAAC,SAAS,IACT,SAAS,EAAE,uBAAuB,CACjC;YACC,UAAU;YACV,KAAK;YACL,IAAI;YACJ,OAAO;YACP,WAAW;YACX,QAAQ;SACR,EACD,CAAC,QAAQ,IAAI,CAAC,CAAC,WAAW,IAAI,CAAC,YAAY,EAC3C,SAAS,CACT,EACD,QAAQ,EAAE,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,KACvC,IAAI;QAER,8BAAM,SAAS,EAAC,sBAAsB;YACpC,WAAW;YACX,QAAQ,CACH;QACN,OAAO,IAAI,oBAAC,kBAAkB,IAAC,IAAI,EAAE,WAAW,EAAE,aAAa,SAAG;QAClE,YAAY,CACF,CACZ,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type FC, type ComponentPropsWithoutRef } from 'react';
2
+ import { GidsCalendarCellSelectEventDetail } from '@ganpatiinfo/gids-core-shared';
3
+ import { GidsCalendarCellWebProps } from '@ganpatiinfo/gids-web-shared';
4
+ export interface GidsCalendarCellProps extends GidsCalendarCellWebProps, Omit<ComponentPropsWithoutRef<'button'>, 'label' | 'onClick' | 'children' | 'disabled' | 'selected'> {
5
+ onPressCalendarCell?: (event: CustomEvent<GidsCalendarCellSelectEventDetail>) => void;
6
+ }
7
+ export declare const GidsCalendarCell: FC<GidsCalendarCellProps>;
8
+ //# sourceMappingURL=GidsCalendarCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsCalendarCell.d.ts","sourceRoot":"","sources":["../../../src/components/GidsCalendarCell/GidsCalendarCell.tsx"],"names":[],"mappings":"AAAA,OAAc,EACb,KAAK,EAAE,EAEP,KAAK,wBAAwB,EAC7B,MAAM,OAAO,CAAC;AACf,OAAO,EACN,iCAAiC,EAEjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,wBAAwB,EAExB,MAAM,8BAA8B,CAAC;AAKtC,MAAM,WAAW,qBAChB,SACC,wBAAwB,EACxB,IAAI,CACH,wBAAwB,CAAC,QAAQ,CAAC,EAClC,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAC1D;IACF,mBAAmB,CAAC,EAAE,CACrB,KAAK,EAAE,WAAW,CAAC,iCAAiC,CAAC,KACjD,IAAI,CAAC;CACV;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAkEtD,CAAC"}
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { GidsCalendarCellWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsDot } from '../stencil-generated/components.js';
4
+ const { getGidsCalendarCellClassNames } = GidsCalendarCellWebUtils;
5
+ export const GidsCalendarCell = ({ label, dot, disabled, selected, today, onPressCalendarCell, className, cellType = 'effective', ...restProps }) => {
6
+ const hasPressableContent = !disabled && cellType === 'effective';
7
+ const handleClick = (event) => {
8
+ if (event.defaultPrevented || disabled || !hasPressableContent) {
9
+ return;
10
+ }
11
+ const customEvent = new CustomEvent('onPressCalendarCell', {
12
+ bubbles: true,
13
+ composed: true,
14
+ detail: {
15
+ cellValue: label,
16
+ selected,
17
+ disabled,
18
+ dot,
19
+ today,
20
+ },
21
+ });
22
+ if (onPressCalendarCell) {
23
+ onPressCalendarCell(customEvent);
24
+ }
25
+ };
26
+ const getDotAppearance = () => {
27
+ let dotAppearance = 'subtle';
28
+ if (selected && !disabled) {
29
+ dotAppearance = 'static-inverse';
30
+ }
31
+ return dotAppearance;
32
+ };
33
+ return (React.createElement("button", { ...restProps, className: getGidsCalendarCellClassNames({ disabled, selected, today, cellType, dot }, className), type: "button", disabled: disabled, onClick: handleClick },
34
+ label ? React.createElement("span", null, label) : null,
35
+ dot ? (React.createElement(GidsDot, { appearance: getDotAppearance(), disabled: disabled, size: "xs" })) : null));
36
+ };
37
+ //# sourceMappingURL=GidsCalendarCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsCalendarCell.js","sourceRoot":"","sources":["../../../src/components/GidsCalendarCell/GidsCalendarCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AAKf,OAAO,EAEN,wBAAwB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAE7D,MAAM,EAAE,6BAA6B,EAAE,GAAG,wBAAwB,CAAC;AAcnE,MAAM,CAAC,MAAM,gBAAgB,GAA8B,CAAC,EAC3D,KAAK,EACL,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,mBAAmB,EACnB,SAAS,EACT,QAAQ,GAAG,WAAW,EACtB,GAAG,SAAS,EACW,EAAE,EAAE;IAC3B,MAAM,mBAAmB,GAAG,CAAC,QAAQ,IAAI,QAAQ,KAAK,WAAW,CAAC;IAElE,MAAM,WAAW,GAAG,CAAC,KAAiB,EAAE,EAAE;QACzC,IAAI,KAAK,CAAC,gBAAgB,IAAI,QAAQ,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAChE,OAAO;QACR,CAAC;QACD,MAAM,WAAW,GAAG,IAAI,WAAW,CAClC,qBAAqB,EACrB;YACC,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE;gBACP,SAAS,EAAE,KAAK;gBAChB,QAAQ;gBACR,QAAQ;gBACR,GAAG;gBACH,KAAK;aACL;SACD,CACD,CAAC;QAEF,IAAI,mBAAmB,EAAE,CAAC;YACzB,mBAAmB,CAAC,WAAW,CAAC,CAAC;QAClC,CAAC;IACF,CAAC,CAAC;IAEF,MAAM,gBAAgB,GAAG,GAAG,EAAE;QAC7B,IAAI,aAAa,GAAsB,QAAQ,CAAC;QAChD,IAAI,QAAQ,IAAI,CAAC,QAAQ,EAAE,CAAC;YAC3B,aAAa,GAAG,gBAAgB,CAAC;QAClC,CAAC;QACD,OAAO,aAAa,CAAC;IACtB,CAAC,CAAC;IAEF,OAAO,CACN,mCACK,SAAS,EACb,SAAS,EAAE,6BAA6B,CACvC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,EAC5C,SAAS,CACT,EACD,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,WAAW;QAEnB,KAAK,CAAC,CAAC,CAAC,kCAAO,KAAK,CAAQ,CAAC,CAAC,CAAC,IAAI;QACnC,GAAG,CAAC,CAAC,CAAC,CACN,oBAAC,OAAO,IACP,UAAU,EAAE,gBAAgB,EAAE,EAC9B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,IAAI,GACR,CACF,CAAC,CAAC,CAAC,IAAI,CACA,CACT,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type ComponentPropsWithoutRef, type FC } from 'react';
2
+ import { GidsCalendarDayCellWebProps } from '@ganpatiinfo/gids-web-shared';
3
+ export type GidsCalendarDayCellProps = GidsCalendarDayCellWebProps & Omit<ComponentPropsWithoutRef<'button'>, 'label' | 'children' | 'onClick' | 'disabled' | 'selected'>;
4
+ export declare const GidsCalendarDayCell: FC<GidsCalendarDayCellProps>;
5
+ //# sourceMappingURL=GidsCalendarDayCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsCalendarDayCell.d.ts","sourceRoot":"","sources":["../../../src/components/GidsCalendarDayCell/GidsCalendarDayCell.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,wBAAwB,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EACN,2BAA2B,EAE3B,MAAM,8BAA8B,CAAC;AAKtC,MAAM,MAAM,wBAAwB,GAAG,2BAA2B,GACjE,IAAI,CACH,wBAAwB,CAAC,QAAQ,CAAC,EAClC,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAC1D,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAoB5D,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { GidsCalendarDayCellWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsCalendarCell } from '../GidsCalendarCell/GidsCalendarCell.js';
4
+ const { getGidsCalendarDayCellClassNames } = GidsCalendarDayCellWebUtils;
5
+ export const GidsCalendarDayCell = ({ id, label, className, ...restProps }) => {
6
+ return (React.createElement(GidsCalendarCell, { ...restProps, id: id, label: label, name: label, dot: false, disabled: false, selected: false, today: false, cellType: "non-effective", className: getGidsCalendarDayCellClassNames(className) }));
7
+ };
8
+ //# sourceMappingURL=GidsCalendarDayCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsCalendarDayCell.js","sourceRoot":"","sources":["../../../src/components/GidsCalendarDayCell/GidsCalendarDayCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,EAEN,2BAA2B,GAC3B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E,MAAM,EAAE,gCAAgC,EAAE,GAAG,2BAA2B,CAAC;AAQzE,MAAM,CAAC,MAAM,mBAAmB,GAAiC,CAAC,EACjE,EAAE,EACF,KAAK,EACL,SAAS,EACT,GAAG,SAAS,EACc,EAAE,EAAE;IAC9B,OAAO,CACN,oBAAC,gBAAgB,OACZ,SAAS,EACb,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,EACX,GAAG,EAAE,KAAK,EACV,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,KAAK,EACf,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAC,eAAe,EACxB,SAAS,EAAE,gCAAgC,CAAC,SAAS,CAAC,GACrD,CACF,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type ComponentPropsWithoutRef, type ReactNode, type FC } from 'react';
2
+ import { GidsDropdownItemWebProps } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsDropdownItemSelectEventDetail } from '@ganpatiinfo/gids-core-shared';
4
+ type NativeButtonProps = Omit<ComponentPropsWithoutRef<'button'>, 'disabled' | 'type' | 'onClick' | 'children' | 'value' | 'id'>;
5
+ export interface GidsDropdownItemProps extends GidsDropdownItemWebProps<ReactNode>, NativeButtonProps {
6
+ onPressDropdownItem?: (event: CustomEvent<GidsDropdownItemSelectEventDetail>) => void;
7
+ }
8
+ export declare const GidsDropdownItem: FC<GidsDropdownItemProps>;
9
+ export {};
10
+ //# sourceMappingURL=GidsDropdownItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsDropdownItem.d.ts","sourceRoot":"","sources":["../../../src/components/GidsDropdownItem/GidsDropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EACb,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,KAAK,EAAE,EACP,MAAM,OAAO,CAAC;AACf,OAAO,EACN,wBAAwB,EAExB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,iCAAiC,EAAE,MAAM,+BAA+B,CAAC;AAIlF,KAAK,iBAAiB,GAAG,IAAI,CAC5B,wBAAwB,CAAC,QAAQ,CAAC,EAClC,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI,CAC7D,CAAC;AAEF,MAAM,WAAW,qBAChB,SAAQ,wBAAwB,CAAC,SAAS,CAAC,EAAE,iBAAiB;IAC9D,mBAAmB,CAAC,EAAE,CACrB,KAAK,EAAE,WAAW,CAAC,iCAAiC,CAAC,KACjD,IAAI,CAAC;CACV;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA6DtD,CAAC"}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { GidsDropdownItemWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsListItem } from '../GidsListItem/GidsListItem.js';
4
+ const { getGidsDropdownItemClassNames } = GidsDropdownItemWebUtils;
5
+ export const GidsDropdownItem = ({ id, title, className: customClass, selected = false, disabled = false, role = 'list-item-option', value, name, onPressDropdownItem, index, defaultSelectedIndex, leadingAccessory, divider, ...restProps }) => {
6
+ const customClassStr = typeof customClass === 'string' ? customClass : undefined;
7
+ const dropdownItemClassNames = getGidsDropdownItemClassNames(customClassStr);
8
+ const handleDropdownItemClick = () => {
9
+ const detail = {
10
+ id,
11
+ title,
12
+ value,
13
+ disabled,
14
+ selectedIndex: index,
15
+ defaultSelectedIndex, // Toggles or passes current state
16
+ };
17
+ // Create a CustomEvent containing your specific detail payload
18
+ const customEvent = new CustomEvent('onPressDropdownItem', {
19
+ bubbles: true,
20
+ composed: true,
21
+ detail,
22
+ });
23
+ onPressDropdownItem?.(customEvent);
24
+ };
25
+ return (React.createElement(GidsListItem, { id: id, index: index ?? 0, defaultSelectedIndex: defaultSelectedIndex, selected: selected, disabled: disabled, role: role, value: value, name: name, leadingAccessory: leadingAccessory, className: dropdownItemClassNames, onPressListItem: handleDropdownItemClick, divider: divider, ...restProps }, title));
26
+ };
27
+ //# sourceMappingURL=GidsDropdownItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsDropdownItem.js","sourceRoot":"","sources":["../../../src/components/GidsDropdownItem/GidsDropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AACf,OAAO,EAEN,wBAAwB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAG/D,MAAM,EAAE,6BAA6B,EAAE,GAAG,wBAAwB,CAAC;AAcnE,MAAM,CAAC,MAAM,gBAAgB,GAA8B,CAAC,EAC3D,EAAE,EACF,KAAK,EACL,SAAS,EAAE,WAAW,EACtB,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,EAChB,IAAI,GAAG,kBAAkB,EACzB,KAAK,EACL,IAAI,EACJ,mBAAmB,EACnB,KAAK,EACL,oBAAoB,EACpB,gBAAgB,EAChB,OAAO,EACP,GAAG,SAAS,EACW,EAAE,EAAE;IAC3B,MAAM,cAAc,GACnB,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;IAE3D,MAAM,sBAAsB,GAAG,6BAA6B,CAAC,cAAc,CAAC,CAAC;IAE7E,MAAM,uBAAuB,GAAG,GAAG,EAAE;QACpC,MAAM,MAAM,GAAsC;YACjD,EAAE;YACF,KAAK;YACL,KAAK;YACL,QAAQ;YACR,aAAa,EAAE,KAAK;YACpB,oBAAoB,EAAE,kCAAkC;SACxD,CAAC;QACF,+DAA+D;QAC/D,MAAM,WAAW,GAAG,IAAI,WAAW,CAClC,qBAAqB,EACrB;YACC,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,MAAM;SACN,CACD,CAAC;QACF,mBAAmB,EAAE,CAAC,WAAW,CAAC,CAAC;IACpC,CAAC,CAAC;IAEF,OAAO,CACN,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,IAAI,CAAC,EACjB,oBAAoB,EAAE,oBAAoB,EAC1C,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,sBAAsB,EACjC,eAAe,EAAE,uBAAuB,EACxC,OAAO,EAAE,OAAO,KACZ,SAAS,IAEZ,KAAK,CACQ,CACf,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type FC, type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ import { type GidsDropdownMenuWebProps } from '@ganpatiinfo/gids-web-shared';
3
+ export interface GidsDropdownMenuProps extends GidsDropdownMenuWebProps<ReactNode>, Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onClick' | 'id'> {
4
+ }
5
+ export declare const GidsDropdownMenu: FC<GidsDropdownMenuProps>;
6
+ //# sourceMappingURL=GidsDropdownMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsDropdownMenu.d.ts","sourceRoot":"","sources":["../../../src/components/GidsDropdownMenu/GidsDropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAc,EACb,KAAK,EAAE,EACP,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AACf,OAAO,EACN,KAAK,wBAAwB,EAE7B,MAAM,8BAA8B,CAAC;AAOtC,MAAM,WAAW,qBAChB,SACC,wBAAwB,CAAC,SAAS,CAAC,EACnC,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI,CAAC;CAAG;AAEzE,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA2BtD,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { GidsDropdownMenuWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsHeading } from '../GidsHeading/GidsHeading.js';
4
+ import { useChildrenValidation } from '../../customHooks/useChildrenValidation.js';
5
+ import { GidsDropdownItem } from '../GidsDropdownItem/GidsDropdownItem.js';
6
+ const { getGidsDropdownMenuClassNames } = GidsDropdownMenuWebUtils;
7
+ export const GidsDropdownMenu = ({ children, sectionLabel, className, ...restProps }) => {
8
+ useChildrenValidation({
9
+ children,
10
+ validationAgainstComponent: GidsDropdownItem,
11
+ componentToBeValidated: 'GidsDropdownMenu', // Pass a clean string name for errors
12
+ });
13
+ return (React.createElement("div", { className: getGidsDropdownMenuClassNames(className), ...restProps },
14
+ sectionLabel !== undefined &&
15
+ sectionLabel !== null &&
16
+ sectionLabel !== '' ? (React.createElement(GidsHeading, { supportingText: sectionLabel, supportingTextTypography: "eyebrow-medium" })) : null,
17
+ children !== undefined && children !== null ? (React.createElement("div", { className: "gids-dropdown-menu__children" }, children)) : null));
18
+ };
19
+ //# sourceMappingURL=GidsDropdownMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsDropdownMenu.js","sourceRoot":"","sources":["../../../src/components/GidsDropdownMenu/GidsDropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AACf,OAAO,EAEN,wBAAwB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E,MAAM,EAAE,6BAA6B,EAAE,GAAG,wBAAwB,CAAC;AAOnE,MAAM,CAAC,MAAM,gBAAgB,GAA8B,CAAC,EAC3D,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,GAAG,SAAS,EACW,EAAE,EAAE;IAC3B,qBAAqB,CAAC;QACrB,QAAQ;QACR,0BAA0B,EAAE,gBAAgB;QAC5C,sBAAsB,EAAE,kBAAkB,EAAE,sCAAsC;KAClF,CAAC,CAAC;IAEH,OAAO,CACN,6BAAK,SAAS,EAAE,6BAA6B,CAAC,SAAS,CAAC,KAAM,SAAS;QACrE,YAAY,KAAK,SAAS;YAC3B,YAAY,KAAK,IAAI;YACrB,YAAY,KAAK,EAAE,CAAC,CAAC,CAAC,CACrB,oBAAC,WAAW,IACX,cAAc,EAAE,YAAY,EAC5B,wBAAwB,EAAC,gBAAgB,GACxC,CACF,CAAC,CAAC,CAAC,IAAI;QACP,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,CAC9C,6BAAK,SAAS,EAAC,8BAA8B,IAAE,QAAQ,CAAO,CAC9D,CAAC,CAAC,CAAC,IAAI,CACH,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type ComponentPropsWithoutRef, type ReactNode, type FC } from 'react';
2
+ import { GidsDropdownMenuGroupWebProps } from '@ganpatiinfo/gids-web-shared';
3
+ export type GidsDropdownMenuGroupProps = GidsDropdownMenuGroupWebProps<ReactNode> & Omit<ComponentPropsWithoutRef<'div'>, 'onClick' | 'children' | 'id'>;
4
+ export declare const GidsDropdownMenuGroup: FC<GidsDropdownMenuGroupProps>;
5
+ //# sourceMappingURL=GidsDropdownMenuGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsDropdownMenuGroup.d.ts","sourceRoot":"","sources":["../../../src/components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.tsx"],"names":[],"mappings":"AAAA,OAAc,EACb,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,KAAK,EAAE,EACP,MAAM,OAAO,CAAC;AACf,OAAO,EACN,6BAA6B,EAE7B,MAAM,8BAA8B,CAAC;AAOtC,MAAM,MAAM,0BAA0B,GACrC,6BAA6B,CAAC,SAAS,CAAC,GACvC,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,IAAI,CAAC,CAAC;AAEvE,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAyBhE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { GidsDropdownMenuGroupWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
+ import { useChildrenValidation } from '../../customHooks/useChildrenValidation';
4
+ import { GidsDropdownMenu } from '../GidsDropdownMenu/GidsDropdownMenu';
5
+ import { GidsSpinner } from '../GidsSpinner/GidsSpinner';
6
+ const { getGidsDropdownMenuGroupClassNames } = GidsDropdownMenuGroupWebUtils;
7
+ export const GidsDropdownMenuGroup = ({ type = 'no-options', supportingText = 'No options', children, className, ...restProps }) => {
8
+ useChildrenValidation({
9
+ children,
10
+ validationAgainstComponent: GidsDropdownMenu,
11
+ componentToBeValidated: 'GidsDropdownMenuGroup', // Pass a clean string name for errors
12
+ });
13
+ return (React.createElement("div", { className: getGidsDropdownMenuGroupClassNames({ type }, className), ...restProps },
14
+ type === 'loading' ? React.createElement(GidsSpinner, { indeterminate: true, size: "md" }) : null,
15
+ type === 'no-options' ? React.createElement("span", null, supportingText) : null,
16
+ type === 'default' && children !== undefined && children !== null
17
+ ? children
18
+ : null));
19
+ };
20
+ //# sourceMappingURL=GidsDropdownMenuGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsDropdownMenuGroup.js","sourceRoot":"","sources":["../../../src/components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AACf,OAAO,EAEN,6BAA6B,GAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,MAAM,EAAE,kCAAkC,EAAE,GAAG,6BAA6B,CAAC;AAM7E,MAAM,CAAC,MAAM,qBAAqB,GAAmC,CAAC,EACrE,IAAI,GAAG,YAAY,EACnB,cAAc,GAAG,YAAY,EAC7B,QAAQ,EACR,SAAS,EACT,GAAG,SAAS,EACgB,EAAE,EAAE;IAChC,qBAAqB,CAAC;QACrB,QAAQ;QACR,0BAA0B,EAAE,gBAAgB;QAC5C,sBAAsB,EAAE,uBAAuB,EAAE,sCAAsC;KACvF,CAAC,CAAC;IAEH,OAAO,CACN,6BACC,SAAS,EAAE,kCAAkC,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,KAC9D,SAAS;QAEZ,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,aAAa,QAAC,IAAI,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI;QACnE,IAAI,KAAK,YAAY,CAAC,CAAC,CAAC,kCAAO,cAAc,CAAQ,CAAC,CAAC,CAAC,IAAI;QAC5D,IAAI,KAAK,SAAS,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI;YACjE,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,IAAI,CACF,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ComponentPropsWithoutRef, FC, MouseEvent, ReactNode } from 'react';
2
+ import { GidsEditButtonWebProps } from '@ganpatiinfo/gids-web-shared';
3
+ export interface GidsEditButtonProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children' | 'onClick'>, GidsEditButtonWebProps<ReactNode> {
4
+ onPressEditButton: (event: MouseEvent) => void;
5
+ }
6
+ export declare const GidsEditButton: FC<GidsEditButtonProps>;
7
+ //# sourceMappingURL=GidsEditButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsEditButton.d.ts","sourceRoot":"","sources":["../../../src/components/GidsEditButton/GidsEditButton.tsx"],"names":[],"mappings":"AAAA,OAAc,EACb,wBAAwB,EACxB,EAAE,EACF,UAAU,EACV,SAAS,EACT,MAAM,OAAO,CAAC;AACf,OAAO,EACN,sBAAsB,EAEtB,MAAM,8BAA8B,CAAC;AAKtC,MAAM,WAAW,mBAChB,SACC,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,EAChE,sBAAsB,CAAC,SAAS,CAAC;IAClC,iBAAiB,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAuDlD,CAAC"}
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { GidsEditButtonWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsIcon } from '../GidsIcon/GidsIcon.js';
4
+ const { getGidsEditButtonClassNames } = GidsEditButtonWebUtils;
5
+ export const GidsEditButton = ({ disabled, children, size = 'md', editButtonType = 'add', onPressEditButton, className, ...rest }) => {
6
+ const getBtnIcon = () => {
7
+ if (editButtonType === 'custom' && children) {
8
+ return React.createElement("div", null, children);
9
+ }
10
+ if (editButtonType === 'add') {
11
+ return (React.createElement("div", { className: disabled
12
+ ? 'gids-edit-button__add gids-edit-button__disabled'
13
+ : 'gids-edit-button__add' },
14
+ React.createElement(GidsIcon, { name: "add", appearance: "filled", size: size })));
15
+ }
16
+ if (editButtonType === 'remove') {
17
+ return (React.createElement("div", { className: disabled
18
+ ? 'gids-edit-button__remove gids-edit-button__disabled'
19
+ : 'gids-edit-button__remove' },
20
+ React.createElement(GidsIcon, { appearance: "filled", name: "remove", size: size })));
21
+ }
22
+ return undefined;
23
+ };
24
+ return (React.createElement("button", { className: getGidsEditButtonClassNames({ size }, className), ...rest, onClick: onPressEditButton, disabled: disabled }, getBtnIcon()));
25
+ };
26
+ //# sourceMappingURL=GidsEditButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsEditButton.js","sourceRoot":"","sources":["../../../src/components/GidsEditButton/GidsEditButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAKN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UAAU,EAAE,CACL,CACT,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type FC, type ComponentPropsWithoutRef, type ReactNode, MouseEvent } from 'react';
2
+ import { GidsListItemWebProps } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsListItemSelectEventDetail } from '@ganpatiinfo/gids-core-shared';
4
+ export interface GidsListItemProps extends GidsListItemWebProps<ReactNode | string, ReactNode, ReactNode | string, ReactNode | string>, Omit<ComponentPropsWithoutRef<'button'>, 'children' | 'onClick' | 'disabled' | 'type' | 'value' | 'id'> {
5
+ onPressEditButton?: (event: MouseEvent) => void;
6
+ onPressListItem?: (event: CustomEvent<GidsListItemSelectEventDetail>) => void;
7
+ }
8
+ export declare const GidsListItem: FC<GidsListItemProps>;
9
+ //# sourceMappingURL=GidsListItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsListItem.d.ts","sourceRoot":"","sources":["../../../src/components/GidsListItem/GidsListItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EACb,KAAK,EAAE,EACP,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,UAAU,EACV,MAAM,OAAO,CAAC;AACf,OAAO,EACN,oBAAoB,EAEpB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAI9E,MAAM,WAAW,iBAChB,SACC,oBAAoB,CACnB,SAAS,GAAG,MAAM,EAClB,SAAS,EACT,SAAS,GAAG,MAAM,EAClB,SAAS,GAAG,MAAM,CAClB,EACD,IAAI,CACH,wBAAwB,CAAC,QAAQ,CAAC,EAClC,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAC7D;IACF,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,6BAA6B,CAAC,KAAK,IAAI,CAAC;CAC9E;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAiU9C,CAAC"}
@@ -0,0 +1,183 @@
1
+ import React from 'react';
2
+ import { GidsListItemWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsEditButton } from '../GidsEditButton/GidsEditButton.js';
4
+ import { GidsIcon } from '../GidsIcon/GidsIcon.js';
5
+ import { GidsDivider } from '../GidsDivider/GidsDivider.js';
6
+ const { getGidsListItemClassNames } = GidsListItemWebUtils;
7
+ export const GidsListItem = ({ id, index, value, defaultSelectedIndex, children, disabled, selected, editButton, onPressEditButton, onPressListItem, leadingAccessory, leadingSupport, leadingParagraph, trailingContent, trailingAccessory, trailingSupport, trailingParagraph, divider, role = 'list-item-option', className, }) => {
8
+ const getEditButton = () => {
9
+ if (editButton !== undefined &&
10
+ editButton !== null &&
11
+ editButton !== 'none' &&
12
+ !disabled) {
13
+ return (React.createElement(GidsEditButton, { size: "md", editButtonType: editButton, onPressEditButton: (event) => {
14
+ event?.stopPropagation();
15
+ if (onPressEditButton) {
16
+ onPressEditButton(event);
17
+ }
18
+ } }));
19
+ }
20
+ return null;
21
+ };
22
+ const renderLeadingLabel = () => {
23
+ if (children !== undefined && children !== null) {
24
+ if (typeof children === 'string') {
25
+ return (React.createElement("span", { className: disabled
26
+ ? 'gids-list-item__leading-content-label gids-list-item__text-content-disabled'
27
+ : 'gids-list-item__leading-content-label' }, children));
28
+ }
29
+ else {
30
+ return children;
31
+ }
32
+ }
33
+ return null;
34
+ };
35
+ const renderLeadingContentSupportingText = () => {
36
+ if (leadingSupport !== undefined && leadingSupport !== null) {
37
+ if (typeof leadingSupport === 'string') {
38
+ return (React.createElement("p", { className: disabled
39
+ ? 'gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled'
40
+ : 'gids-list-item__leading-content-supporting-text' }, leadingSupport));
41
+ }
42
+ else {
43
+ return leadingSupport;
44
+ }
45
+ }
46
+ return null;
47
+ };
48
+ const renderLeadingContentParagraphText = () => {
49
+ if (leadingParagraph !== undefined && leadingParagraph !== null) {
50
+ if (typeof leadingParagraph === 'string') {
51
+ return (React.createElement("p", { className: disabled
52
+ ? 'gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled'
53
+ : 'gids-list-item__leading-content-paragraph-text' }, leadingParagraph));
54
+ }
55
+ else {
56
+ return leadingParagraph;
57
+ }
58
+ }
59
+ return null;
60
+ };
61
+ const renderLeadingContent = () => {
62
+ return (React.createElement(React.Fragment, null,
63
+ renderLeadingLabel(),
64
+ React.createElement("div", { className: "gids-list-item__leading-support-content" },
65
+ renderLeadingContentSupportingText(),
66
+ renderLeadingContentParagraphText())));
67
+ };
68
+ const renderTrailingLabel = () => {
69
+ if (trailingContent !== undefined && trailingContent !== null) {
70
+ if (typeof trailingContent === 'string') {
71
+ return (React.createElement("span", { className: disabled
72
+ ? 'gids-list-item__trailing-content-label gids-list-item__text-content-disabled'
73
+ : 'gids-list-item__trailing-content-label' }, trailingContent));
74
+ }
75
+ else {
76
+ return trailingContent;
77
+ }
78
+ }
79
+ return null;
80
+ };
81
+ const renderTrailingContentSupportingText = () => {
82
+ if (trailingSupport !== undefined && trailingSupport !== null) {
83
+ if (typeof trailingSupport === 'string') {
84
+ return (React.createElement("p", { className: disabled
85
+ ? 'gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled'
86
+ : 'gids-list-item__trailing-content-supporting-text' }, trailingSupport));
87
+ }
88
+ else {
89
+ return trailingSupport;
90
+ }
91
+ }
92
+ return null;
93
+ };
94
+ const renderTrailingContentParagraphText = () => {
95
+ if (trailingParagraph !== undefined && trailingParagraph !== null) {
96
+ if (typeof trailingParagraph === 'string') {
97
+ return (React.createElement("p", { className: disabled
98
+ ? 'gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled'
99
+ : 'gids-list-item__trailing-content-paragraph-text' }, trailingParagraph));
100
+ }
101
+ else {
102
+ return trailingParagraph;
103
+ }
104
+ }
105
+ return null;
106
+ };
107
+ const renderTrailingContent = () => {
108
+ return (React.createElement(React.Fragment, null,
109
+ renderTrailingLabel(),
110
+ React.createElement("div", { className: "gids-list-item__trailing-support-content" },
111
+ renderTrailingContentSupportingText(),
112
+ renderTrailingContentParagraphText())));
113
+ };
114
+ const handleListItemClick = (event) => {
115
+ const button = event.currentTarget;
116
+ if (!button) {
117
+ return;
118
+ }
119
+ if (event.defaultPrevented || button.disabled) {
120
+ return;
121
+ }
122
+ const detail = {
123
+ selectedIndex: index,
124
+ defaultSelectedIndex,
125
+ };
126
+ // Create a CustomEvent containing your specific detail payload
127
+ const customEvent = new CustomEvent('onPressListItem', {
128
+ bubbles: true,
129
+ composed: true,
130
+ detail,
131
+ });
132
+ onPressListItem?.(customEvent);
133
+ };
134
+ const getValue = () => {
135
+ // 1. If it's a simple string, return it immediately
136
+ if (typeof value === 'string' && value.trim() !== '') {
137
+ return value;
138
+ }
139
+ // 2. Fall back to children if value is empty or missing
140
+ const nodes = children;
141
+ if (!nodes) {
142
+ return '';
143
+ }
144
+ // 3. Convert single child to an array format to normalize processing
145
+ const nodesArray = Array.isArray(nodes) ? nodes : [nodes];
146
+ // 4. Reduce nodes to extract and join text fragments
147
+ const textContent = nodesArray
148
+ .map((node) => {
149
+ if (typeof node === 'string' || typeof node === 'number') {
150
+ return String(node);
151
+ }
152
+ // Stencil stores raw text strings inside node.text
153
+ if (node && typeof node === 'object' && 'text' in node) {
154
+ return node.text ?? '';
155
+ }
156
+ return '';
157
+ })
158
+ .join('')
159
+ .trim();
160
+ return textContent;
161
+ };
162
+ return (React.createElement("button", { type: "button", id: id, value: getValue(), className: getGidsListItemClassNames({ selected, disabled }, className), role: role, "aria-selected": selected ? 'true' : 'false', disabled: disabled, onClick: handleListItemClick },
163
+ React.createElement("div", { className: "gids-list-item__main-container" },
164
+ getEditButton(),
165
+ leadingAccessory !== undefined && leadingAccessory !== null ? (React.createElement("div", { className: disabled
166
+ ? 'gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled'
167
+ : 'gids-list-item__leading-accessory-container' }, leadingAccessory)) : null,
168
+ React.createElement("div", { className: "gids-list-item__middle-content-container" },
169
+ React.createElement("div", { className: "gids-list-item__leading-content-container" }, renderLeadingContent()),
170
+ React.createElement("div", { className: "gids-list-item__trailing-content-container" }, renderTrailingContent())),
171
+ selected ? (React.createElement("div", { className: disabled
172
+ ? 'gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled'
173
+ : 'gids-list-item__trailing-accessory-container' },
174
+ React.createElement(GidsIcon, { name: "checkmark", size: "md", appearance: "regular" }))) : null,
175
+ !selected &&
176
+ trailingAccessory !== undefined &&
177
+ trailingAccessory !== null ? (React.createElement("div", { className: disabled
178
+ ? 'gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled'
179
+ : 'gids-list-item__trailing-accessory-container' }, trailingAccessory)) : null),
180
+ divider && !selected ? (React.createElement("div", { className: "gids-list-item__divider" },
181
+ React.createElement(GidsDivider, { orientation: "horizontal" }))) : null));
182
+ };
183
+ //# sourceMappingURL=GidsListItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsListItem.js","sourceRoot":"","sources":["../../../src/components/GidsListItem/GidsListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAC;AACf,OAAO,EAEN,oBAAoB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D,MAAM,EAAE,yBAAyB,EAAE,GAAG,oBAAoB,CAAC;AAkB3D,MAAM,CAAC,MAAM,YAAY,GAA0B,CAAC,EACnD,EAAE,EACF,KAAK,EACL,KAAK,EACL,oBAAoB,EACpB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EA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AC,yBAAyB;YACvC,oBAAC,WAAW,IAAC,WAAW,EAAC,YAAY,GAAG,CACnC,CACN,CAAC,CAAC,CAAC,IAAI,CACA,CACT,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type FC, type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ import { GidsMenuWebProps } from '@ganpatiinfo/gids-web-shared';
3
+ export type GidsMenuProps = GidsMenuWebProps<ReactNode, ReactNode | string> & Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onClick'>;
4
+ export declare const GidsMenu: FC<GidsMenuProps>;
5
+ //# sourceMappingURL=GidsMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.tsx"],"names":[],"mappings":"AAAA,OAAc,EACb,KAAK,EAAE,EACP,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AACf,OAAO,EACN,gBAAgB,EAEhB,MAAM,8BAA8B,CAAC;AAKtC,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAAC,GAC1E,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAE/D,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA4BtC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { GidsMenuWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsHeading } from '../GidsHeading/GidsHeading.js';
4
+ const { getGidsMenuClassNames } = GidsMenuWebUtils;
5
+ export const GidsMenu = ({ children, heading, supportingText, supportingTextTypography, className, ...restProps }) => {
6
+ return (React.createElement("div", { className: getGidsMenuClassNames(className) },
7
+ (heading !== undefined && heading !== null && heading !== '') ||
8
+ (supportingText !== undefined &&
9
+ supportingText !== null &&
10
+ supportingText !== '') ? (React.createElement(GidsHeading, { heading: heading, supportingText: supportingText, supportingTextTypography: supportingTextTypography ?? 'eyebrow-medium', ...restProps })) : null,
11
+ children !== undefined && children !== null ? (React.createElement("div", { className: "gids-menu__children" }, children)) : null));
12
+ };
13
+ //# sourceMappingURL=GidsMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsMenu.js","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AACf,OAAO,EAEN,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,MAAM,EAAE,qBAAqB,EAAE,GAAG,gBAAgB,CAAC;AAKnD,MAAM,CAAC,MAAM,QAAQ,GAAsB,CAAC,EAC3C,QAAQ,EACR,OAAO,EACP,cAAc,EACd,wBAAwB,EACxB,SAAS,EACT,GAAG,SAAS,EACG,EAAE,EAAE;IACnB,OAAO,CACN,6BAAK,SAAS,EAAE,qBAAqB,CAAC,SAAS,CAAC;QAC9C,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,EAAE,CAAC;YAC9D,CAAC,cAAc,KAAK,SAAS;gBAC5B,cAAc,KAAK,IAAI;gBACvB,cAAc,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CACzB,oBAAC,WAAW,IACX,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,wBAAwB,EACvB,wBAAwB,IAAI,gBAAgB,KAEzC,SAAS,GACZ,CACF,CAAC,CAAC,CAAC,IAAI;QACP,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,CAC9C,6BAAK,SAAS,EAAC,qBAAqB,IAAE,QAAQ,CAAO,CACrD,CAAC,CAAC,CAAC,IAAI,CACH,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type ComponentPropsWithoutRef, type FC, type ReactNode } from 'react';
2
+ import { type GidsMenuGroupWebProps } from '@ganpatiinfo/gids-web-shared';
3
+ export type GidsMenuGroupProps = GidsMenuGroupWebProps<ReactNode> & Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onClick'>;
4
+ export declare const GidsMenuGroup: FC<GidsMenuGroupProps>;
5
+ //# sourceMappingURL=GidsMenuGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsMenuGroup.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMenuGroup/GidsMenuGroup.tsx"],"names":[],"mappings":"AAAA,OAAc,EACb,KAAK,wBAAwB,EAC7B,KAAK,EAAE,EACP,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AACf,OAAO,EACN,KAAK,qBAAqB,EAE1B,MAAM,8BAA8B,CAAC;AAKtC,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,SAAS,CAAC,GAChE,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAgBhD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { GidsMenuGroupWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsSpinner } from '../GidsSpinner/GidsSpinner.js';
4
+ const { getGidsMenuGroupClassNames } = GidsMenuGroupWebUtils;
5
+ export const GidsMenuGroup = ({ type = 'no-options', supportingText = 'No options', children, className, ...rest }) => {
6
+ return (React.createElement("div", { className: getGidsMenuGroupClassNames({ type }, className), ...rest },
7
+ type === 'loading' ? React.createElement(GidsSpinner, { indeterminate: true, size: "md" }) : null,
8
+ type === 'no-options' ? React.createElement("span", null, supportingText) : null,
9
+ type === 'default' && children !== undefined && children !== null
10
+ ? children
11
+ : null));
12
+ };
13
+ //# sourceMappingURL=GidsMenuGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsMenuGroup.js","sourceRoot":"","sources":["../../../src/components/GidsMenuGroup/GidsMenuGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AACf,OAAO,EAEN,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,MAAM,EAAE,0BAA0B,EAAE,GAAG,qBAAqB,CAAC;AAK7D,MAAM,CAAC,MAAM,aAAa,GAA2B,CAAC,EACrD,IAAI,GAAG,YAAY,EACnB,cAAc,GAAG,YAAY,EAC7B,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACa,EAAE,EAAE;IACxB,OAAO,CACN,6BAAK,SAAS,EAAE,0BAA0B,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,KAAM,IAAI;QACvE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,aAAa,QAAC,IAAI,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI;QACnE,IAAI,KAAK,YAAY,CAAC,CAAC,CAAC,kCAAO,cAAc,CAAQ,CAAC,CAAC,CAAC,IAAI;QAC5D,IAAI,KAAK,SAAS,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI;YACjE,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,IAAI,CACF,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type FC, type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ import { GidsPageTitleWebProps } from '@ganpatiinfo/gids-web-shared';
3
+ export type GidsPageTitleProps = Omit<ComponentPropsWithoutRef<'div'>, 'title' | 'children'> & GidsPageTitleWebProps<ReactNode, ReactNode | string>;
4
+ export declare const GidsPageTitle: FC<GidsPageTitleProps>;
5
+ //# sourceMappingURL=GidsPageTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsPageTitle.d.ts","sourceRoot":"","sources":["../../../src/components/GidsPageTitle/GidsPageTitle.tsx"],"names":[],"mappings":"AAAA,OAAc,EACb,KAAK,EAAE,EACP,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AACf,OAAO,EACN,qBAAqB,EAErB,MAAM,8BAA8B,CAAC;AAItC,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACpC,wBAAwB,CAAC,KAAK,CAAC,EAC/B,OAAO,GAAG,UAAU,CACpB,GACA,qBAAqB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAAC,CAAC;AAEtD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAyBhD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { GidsPageTitleWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
+ const { getGidsPageTitleClassNames } = GidsPageTitleWebUtils;
4
+ export const GidsPageTitle = ({ level = 'parent', leadingAccessory, trailingAccessory, className, children, ...restProps }) => {
5
+ return (React.createElement("div", { className: getGidsPageTitleClassNames(className), ...restProps },
6
+ leadingAccessory && level === 'child' ? (React.createElement("div", { className: "gids-page-title__leading-accessory" }, leadingAccessory)) : null,
7
+ children ? (React.createElement("h1", { className: "gids-page-title__heading" }, children)) : null,
8
+ trailingAccessory ? (React.createElement("div", { className: "gids-page-title__trailing-accessory" }, trailingAccessory)) : null));
9
+ };
10
+ //# sourceMappingURL=GidsPageTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsPageTitle.js","sourceRoot":"","sources":["../../../src/components/GidsPageTitle/GidsPageTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AACf,OAAO,EAEN,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,EAAE,0BAA0B,EAAE,GAAG,qBAAqB,CAAC;AAQ7D,MAAM,CAAC,MAAM,aAAa,GAA2B,CAAC,EACrD,KAAK,GAAG,QAAQ,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,GAAG,SAAS,EACQ,EAAE,EAAE;IACxB,OAAO,CACN,6BAAK,SAAS,EAAE,0BAA0B,CAAC,SAAS,CAAC,KAAM,SAAS;QAClE,gBAAgB,IAAI,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,CACxC,6BAAK,SAAS,EAAC,oCAAoC,IACjD,gBAAgB,CACZ,CACN,CAAC,CAAC,CAAC,IAAI;QACP,QAAQ,CAAC,CAAC,CAAC,CACX,4BAAI,SAAS,EAAC,0BAA0B,IAAE,QAAQ,CAAM,CACxD,CAAC,CAAC,CAAC,IAAI;QACP,iBAAiB,CAAC,CAAC,CAAC,CACpB,6BAAK,SAAS,EAAC,qCAAqC,IAClD,iBAAiB,CACb,CACN,CAAC,CAAC,CAAC,IAAI,CACH,CACN,CAAC;AACH,CAAC,CAAC"}