@ganpatiinfo/gids-react-web 3.0.0 → 4.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 (100) hide show
  1. package/dist/components/GidsDismissButton/GidsDismissButton.d.ts +7 -0
  2. package/dist/components/GidsDismissButton/GidsDismissButton.d.ts.map +1 -0
  3. package/dist/components/GidsDismissButton/GidsDismissButton.js +9 -0
  4. package/dist/components/GidsDismissButton/GidsDismissButton.js.map +1 -0
  5. package/dist/components/GidsHeading/GidsHeading.d.ts +6 -0
  6. package/dist/components/GidsHeading/GidsHeading.d.ts.map +1 -0
  7. package/dist/components/GidsHeading/GidsHeading.js +34 -0
  8. package/dist/components/GidsHeading/GidsHeading.js.map +1 -0
  9. package/dist/components/GidsLabel/GidsLabel.d.ts +1 -1
  10. package/dist/components/GidsLabel/GidsLabel.d.ts.map +1 -1
  11. package/dist/components/GidsLabel/GidsLabel.js +3 -1
  12. package/dist/components/GidsLabel/GidsLabel.js.map +1 -1
  13. package/dist/components/GidsLogo/GidsLogo.d.ts +8 -0
  14. package/dist/components/GidsLogo/GidsLogo.d.ts.map +1 -0
  15. package/dist/components/GidsLogo/GidsLogo.js +9 -0
  16. package/dist/components/GidsLogo/GidsLogo.js.map +1 -0
  17. package/dist/components/GidsRequirementsMeter/GidsRequirementsMeter.d.ts +6 -0
  18. package/dist/components/GidsRequirementsMeter/GidsRequirementsMeter.d.ts.map +1 -0
  19. package/dist/components/GidsRequirementsMeter/GidsRequirementsMeter.js +38 -0
  20. package/dist/components/GidsRequirementsMeter/GidsRequirementsMeter.js.map +1 -0
  21. package/dist/components/GidsSearchBar/GidsSearchBar.d.ts +15 -0
  22. package/dist/components/GidsSearchBar/GidsSearchBar.d.ts.map +1 -0
  23. package/dist/components/GidsSearchBar/GidsSearchBar.js +23 -0
  24. package/dist/components/GidsSearchBar/GidsSearchBar.js.map +1 -0
  25. package/dist/components/GidsSegmentedControl/GidsSegmentedControl.d.ts +7 -0
  26. package/dist/components/GidsSegmentedControl/GidsSegmentedControl.d.ts.map +1 -0
  27. package/dist/components/GidsSegmentedControl/GidsSegmentedControl.js +23 -0
  28. package/dist/components/GidsSegmentedControl/GidsSegmentedControl.js.map +1 -0
  29. package/dist/components/GidsSegmentedTabItem/GidsSegmentedTabItem.d.ts +7 -0
  30. package/dist/components/GidsSegmentedTabItem/GidsSegmentedTabItem.d.ts.map +1 -0
  31. package/dist/components/GidsSegmentedTabItem/GidsSegmentedTabItem.js +30 -0
  32. package/dist/components/GidsSegmentedTabItem/GidsSegmentedTabItem.js.map +1 -0
  33. package/dist/components/GidsStatusTag/GidsStatusTag.d.ts +6 -0
  34. package/dist/components/GidsStatusTag/GidsStatusTag.d.ts.map +1 -0
  35. package/dist/components/GidsStatusTag/GidsStatusTag.js +10 -0
  36. package/dist/components/GidsStatusTag/GidsStatusTag.js.map +1 -0
  37. package/dist/components/GidsStepper/GidsStepper.d.ts +8 -0
  38. package/dist/components/GidsStepper/GidsStepper.d.ts.map +1 -0
  39. package/dist/components/GidsStepper/GidsStepper.js +36 -0
  40. package/dist/components/GidsStepper/GidsStepper.js.map +1 -0
  41. package/dist/components/GidsStrengthMeter/GidsStrengthMeter.d.ts +6 -0
  42. package/dist/components/GidsStrengthMeter/GidsStrengthMeter.d.ts.map +1 -0
  43. package/dist/components/GidsStrengthMeter/GidsStrengthMeter.js +56 -0
  44. package/dist/components/GidsStrengthMeter/GidsStrengthMeter.js.map +1 -0
  45. package/dist/components/GidsTopNavigation/GidsTopNavigation.d.ts +9 -0
  46. package/dist/components/GidsTopNavigation/GidsTopNavigation.d.ts.map +1 -0
  47. package/dist/components/GidsTopNavigation/GidsTopNavigation.js +32 -0
  48. package/dist/components/GidsTopNavigation/GidsTopNavigation.js.map +1 -0
  49. package/dist/components/_GidsNotificationContainer/GidsNotificationContainer.d.ts +7 -0
  50. package/dist/components/_GidsNotificationContainer/GidsNotificationContainer.d.ts.map +1 -0
  51. package/dist/components/_GidsNotificationContainer/GidsNotificationContainer.js +37 -0
  52. package/dist/components/_GidsNotificationContainer/GidsNotificationContainer.js.map +1 -0
  53. package/dist/components/_GidsRequirementsMeterLabel/GidsRequirementsMeterLabel.d.ts +5 -0
  54. package/dist/components/_GidsRequirementsMeterLabel/GidsRequirementsMeterLabel.d.ts.map +1 -0
  55. package/dist/components/_GidsRequirementsMeterLabel/GidsRequirementsMeterLabel.js +13 -0
  56. package/dist/components/_GidsRequirementsMeterLabel/GidsRequirementsMeterLabel.js.map +1 -0
  57. package/dist/components/_GidsSnackbarContainer/GidsSnackbarContainer.d.ts +5 -0
  58. package/dist/components/_GidsSnackbarContainer/GidsSnackbarContainer.d.ts.map +1 -0
  59. package/dist/components/_GidsSnackbarContainer/GidsSnackbarContainer.js +14 -0
  60. package/dist/components/_GidsSnackbarContainer/GidsSnackbarContainer.js.map +1 -0
  61. package/dist/components/stencil-generated/components.d.ts +7 -0
  62. package/dist/components/stencil-generated/components.d.ts.map +1 -1
  63. package/dist/components/stencil-generated/components.js +7 -0
  64. package/dist/components/stencil-generated/components.js.map +1 -1
  65. package/dist/components/stencil-generated/gids-field.d.ts +10 -0
  66. package/dist/components/stencil-generated/gids-field.d.ts.map +1 -0
  67. package/dist/components/stencil-generated/gids-field.js +13 -0
  68. package/dist/components/stencil-generated/gids-field.js.map +1 -0
  69. package/dist/components/stencil-generated/gids-input.d.ts +10 -0
  70. package/dist/components/stencil-generated/gids-input.d.ts.map +1 -0
  71. package/dist/components/stencil-generated/gids-input.js +13 -0
  72. package/dist/components/stencil-generated/gids-input.js.map +1 -0
  73. package/dist/components/stencil-generated/gids-notification.d.ts +10 -0
  74. package/dist/components/stencil-generated/gids-notification.d.ts.map +1 -0
  75. package/dist/components/stencil-generated/gids-notification.js +13 -0
  76. package/dist/components/stencil-generated/gids-notification.js.map +1 -0
  77. package/dist/components/stencil-generated/gids-overlay-provider.d.ts +10 -0
  78. package/dist/components/stencil-generated/gids-overlay-provider.d.ts.map +1 -0
  79. package/dist/components/stencil-generated/gids-overlay-provider.js +13 -0
  80. package/dist/components/stencil-generated/gids-overlay-provider.js.map +1 -0
  81. package/dist/components/stencil-generated/gids-password-field.d.ts +16 -0
  82. package/dist/components/stencil-generated/gids-password-field.d.ts.map +1 -0
  83. package/dist/components/stencil-generated/gids-password-field.js +16 -0
  84. package/dist/components/stencil-generated/gids-password-field.js.map +1 -0
  85. package/dist/components/stencil-generated/gids-snackbar.d.ts +10 -0
  86. package/dist/components/stencil-generated/gids-snackbar.d.ts.map +1 -0
  87. package/dist/components/stencil-generated/gids-snackbar.js +13 -0
  88. package/dist/components/stencil-generated/gids-snackbar.js.map +1 -0
  89. package/dist/components/stencil-generated/gids-text-field.d.ts +13 -0
  90. package/dist/components/stencil-generated/gids-text-field.d.ts.map +1 -0
  91. package/dist/components/stencil-generated/gids-text-field.js +13 -0
  92. package/dist/components/stencil-generated/gids-text-field.js.map +1 -0
  93. package/dist/components/stencil-generated/gids-toggle-button.d.ts +2 -2
  94. package/dist/components/stencil-generated/gids-toggle-button.d.ts.map +1 -1
  95. package/dist/components/stencil-generated/gids-toggle-button.js.map +1 -1
  96. package/dist/index.d.ts +16 -0
  97. package/dist/index.d.ts.map +1 -1
  98. package/dist/index.js +17 -1
  99. package/dist/index.js.map +1 -1
  100. package/package.json +8 -8
@@ -0,0 +1,7 @@
1
+ import { type JSX, type ComponentPropsWithRef, MouseEvent } from 'react';
2
+ import { type GidsDismissButtonCommonProps } from '@ganpatiinfo/gids-core-shared';
3
+ export interface GidsDismissButtonProps extends GidsDismissButtonCommonProps, Omit<ComponentPropsWithRef<'button'>, 'onClick' | 'label'> {
4
+ onPressDismiss?: (event: MouseEvent<HTMLButtonElement>) => void;
5
+ }
6
+ export declare const GidsDismissButton: ({ appearance, size, disabled, className, onPressDismiss, label, ...rest }: GidsDismissButtonProps) => JSX.Element;
7
+ //# sourceMappingURL=GidsDismissButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsDismissButton.d.ts","sourceRoot":"","sources":["../../../src/components/GidsDismissButton/GidsDismissButton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,GAAG,EAAE,KAAK,qBAAqB,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAMlF,MAAM,WAAW,sBACf,SACE,4BAA4B,EAC5B,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC5D,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CACjE;AAED,eAAO,MAAM,iBAAiB,GAAI,2EAQ/B,sBAAsB,KAAG,GAAG,CAAC,OAgB/B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { GidsDismissButtonWebUtils } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsIcon } from '../GidsIcon/GidsIcon.js';
4
+ const { getGidsDismissButtonClassNames } = GidsDismissButtonWebUtils;
5
+ export const GidsDismissButton = ({ appearance = 'subtle', size = 'md', disabled = false, className, onPressDismiss, label, ...rest }) => {
6
+ return (React.createElement("button", { type: "button", className: getGidsDismissButtonClassNames({ size, appearance }, className), onClick: onPressDismiss, disabled: disabled, "aria-label": label, ...rest },
7
+ React.createElement(GidsIcon, { name: "cross", alt: "" })));
8
+ };
9
+ //# sourceMappingURL=GidsDismissButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsDismissButton.js","sourceRoot":"","sources":["../../../src/components/GidsDismissButton/GidsDismissButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,MAAM,EAAE,8BAA8B,EAAE,GAAG,yBAAyB,CAAC;AASrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,UAAU,GAAG,QAAQ,EACrB,IAAI,GAAG,IAAI,EACX,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,cAAc,EACd,KAAK,EACL,GAAG,IAAI,EACgB,EAAe,EAAE;IACxC,OAAO,CACL,gCACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,8BAA8B,CACvC,EAAE,IAAI,EAAE,UAAU,EAAE,EACpB,SAAS,CACV,EACD,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,QAAQ,gBACN,KAAK,KACb,IAAI;QAER,oBAAC,QAAQ,IAAC,IAAI,EAAC,OAAO,EAAC,GAAG,EAAC,EAAE,GAAG,CACzB,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
2
+ import { GidsHeadingCommonProps } from '@ganpatiinfo/gids-core-shared';
3
+ export interface GidsHeadingProps extends GidsHeadingCommonProps<ReactNode, ReactNode | string>, Omit<ComponentPropsWithoutRef<'div'>, 'onClick'> {
4
+ }
5
+ export declare const GidsHeading: FC<GidsHeadingProps>;
6
+ //# sourceMappingURL=GidsHeading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsHeading.d.ts","sourceRoot":"","sources":["../../../src/components/GidsHeading/GidsHeading.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,wBAAwB,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAKvE,MAAM,WAAW,gBACf,SACE,sBAAsB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAAC,EACrD,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;CAAG;AAEvD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA0D5C,CAAC"}
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { GidsHeadingWebUtils } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsButtonGroup } from '../GidsButtonGroup/GidsButtonGroup.js';
4
+ const { getGidsHeadingClassNames } = GidsHeadingWebUtils;
5
+ export const GidsHeading = ({ heading, supportingText, level = 'section', children, className, }) => {
6
+ const renderHeading = () => {
7
+ if (heading) {
8
+ if (typeof heading === 'string') {
9
+ return heading !== '' ? (React.createElement("span", { className: level === 'section'
10
+ ? 'gids-heading__heading-text-section'
11
+ : 'gids-heading__heading-text-group' }, heading)) : null;
12
+ }
13
+ return heading;
14
+ }
15
+ return null;
16
+ };
17
+ const renderSupportingText = () => {
18
+ if (supportingText) {
19
+ if (typeof supportingText === 'string') {
20
+ return supportingText !== '' ? (React.createElement("span", { className: level === 'section'
21
+ ? 'gids-heading__supporting-text-section'
22
+ : 'gids-heading__supporting-text-group' }, supportingText)) : null;
23
+ }
24
+ return supportingText;
25
+ }
26
+ return null;
27
+ };
28
+ return (React.createElement("div", { className: getGidsHeadingClassNames(className) },
29
+ React.createElement("div", { className: "gids-heading__content-container" },
30
+ renderHeading(),
31
+ renderSupportingText()),
32
+ children ? (React.createElement(GidsButtonGroup, { layout: "wrap" }, children)) : null));
33
+ };
34
+ //# sourceMappingURL=GidsHeading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsHeading.js","sourceRoot":"","sources":["../../../src/components/GidsHeading/GidsHeading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAExE,MAAM,EAAE,wBAAwB,EAAE,GAAG,mBAAmB,CAAC;AAOzD,MAAM,CAAC,MAAM,WAAW,GAAyB,CAAC,EAChD,OAAO,EACP,cAAc,EACd,KAAK,GAAG,SAAS,EACjB,QAAQ,EACR,SAAS,GACQ,EAAE,EAAE;IACrB,MAAM,aAAa,GAAG,GAAG,EAAE;QACzB,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAChC,OAAO,OAAO,KAAK,EAAE,CAAC,CAAC,CAAC,CACtB,8BACE,SAAS,EACP,KAAK,KAAK,SAAS;wBACjB,CAAC,CAAC,oCAAoC;wBACtC,CAAC,CAAC,kCAAkC,IAGvC,OAAO,CACH,CACR,CAAC,CAAC,CAAC,IAAI,CAAC;YACX,CAAC;YACD,OAAO,OAAO,CAAC;QACjB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,MAAM,oBAAoB,GAAG,GAAG,EAAE;QAChC,IAAI,cAAc,EAAE,CAAC;YACnB,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE,CAAC;gBACvC,OAAO,cAAc,KAAK,EAAE,CAAC,CAAC,CAAC,CAC7B,8BACE,SAAS,EACP,KAAK,KAAK,SAAS;wBACjB,CAAC,CAAC,uCAAuC;wBACzC,CAAC,CAAC,qCAAqC,IAG1C,cAAc,CACV,CACR,CAAC,CAAC,CAAC,IAAI,CAAC;YACX,CAAC;YACD,OAAO,cAAc,CAAC;QACxB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO,CACL,6BAAK,SAAS,EAAE,wBAAwB,CAAC,SAAS,CAAC;QACjD,6BAAK,SAAS,EAAC,iCAAiC;YAC7C,aAAa,EAAE;YACf,oBAAoB,EAAE,CACnB;QACL,QAAQ,CAAC,CAAC,CAAC,CACV,oBAAC,eAAe,IAAC,MAAM,EAAC,MAAM,IAAE,QAAQ,CAAmB,CAC5D,CAAC,CAAC,CAAC,IAAI,CACJ,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -30,5 +30,5 @@ export type GidsLabelProps = GidsLabelWebProps<ReactNode> & ComponentPropsWithRe
30
30
  * ```
31
31
  * Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsLabel />` component.
32
32
  **/
33
- export declare function GidsLabel({ children, disabled, fieldRequirement, fieldRequirementOptionalText, fieldRequirementRequiredText, info, htmlFor, labelId, className, ...rest }: GidsLabelProps): React.JSX.Element;
33
+ export declare function GidsLabel({ children, disabled, fieldRequirement, fieldRequirementOptionalText, fieldRequirementRequiredText, info, htmlFor, labelId, className, isLabelSentence, ...rest }: GidsLabelProps): React.JSX.Element;
34
34
  //# sourceMappingURL=GidsLabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GidsLabel.d.ts","sourceRoot":"","sources":["../../../src/components/GidsLabel/GidsLabel.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,iBAAiB,EAEtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK1E,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC,GACxD,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BI;AAEJ,wBAAgB,SAAS,CAAC,EACzB,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,4BAA4B,EAC5B,4BAA4B,EAC5B,IAAI,EACJ,OAAO,EACP,OAAO,EACP,SAAS,EACT,GAAG,IAAI,EACP,EAAE,cAAc,qBAiBhB"}
1
+ {"version":3,"file":"GidsLabel.d.ts","sourceRoot":"","sources":["../../../src/components/GidsLabel/GidsLabel.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK1E,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC,GACvD,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BI;AAEJ,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,4BAA4B,EAC5B,4BAA4B,EAC5B,IAAI,EACJ,OAAO,EACP,OAAO,EACP,SAAS,EACT,eAAe,EACf,GAAG,IAAI,EACR,EAAE,cAAc,qBAmBhB"}
@@ -32,11 +32,13 @@ const { getGidsLabelClassNames } = GidsLabelWebUtils;
32
32
  * ```
33
33
  * Click `Show code` below and play with the controls to see the various props that can be applied to the `<GidsLabel />` component.
34
34
  **/
35
- export function GidsLabel({ children, disabled, fieldRequirement, fieldRequirementOptionalText, fieldRequirementRequiredText, info, htmlFor, labelId, className, ...rest }) {
35
+ export function GidsLabel({ children, disabled, fieldRequirement, fieldRequirementOptionalText, fieldRequirementRequiredText, info, htmlFor, labelId, className, isLabelSentence, ...rest }) {
36
36
  const indicatorText = getIndicatorText({
37
+ children,
37
38
  fieldRequirement,
38
39
  fieldRequirementOptionalText,
39
40
  fieldRequirementRequiredText,
41
+ isLabelSentence,
40
42
  });
41
43
  return (React.createElement("div", { className: getGidsLabelClassNames({ disabled }, className), ...rest },
42
44
  React.createElement("label", { htmlFor: htmlFor, id: labelId },
@@ -1 +1 @@
1
- {"version":3,"file":"GidsLabel.js","sourceRoot":"","sources":["../../../src/components/GidsLabel/GidsLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAEN,iBAAiB,GACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAqD,MAAM,OAAO,CAAC;AAE1E,MAAM,EAAE,gBAAgB,EAAE,GAAG,oBAAoB,CAAC;AAClD,MAAM,EAAE,sBAAsB,EAAE,GAAG,iBAAiB,CAAC;AAKrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BI;AAEJ,MAAM,UAAU,SAAS,CAAC,EACzB,QAAQ,EACR,QAAQ,EACR,gBAAgB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AsB,CAAC,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,KAAM,IAAI;QACvE,+BAAO,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO;YACjC,QAAQ;YACR,aAAa,KAAK,SAAS,IAAI,CAC9B,8BAAM,SAAS,EAAC,+BAA+B,IAAE,aAAa,CAAQ,CACvE,CACK;QACP,IAAI,CACD,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type JSX, type ComponentPropsWithRef } from 'react';
2
+ import { type GidsLogoWebProps } from '@ganpatiinfo/gids-web-shared';
3
+ export interface GidsLogoProps extends Omit<ComponentPropsWithRef<'a'>, 'href'>, GidsLogoWebProps<string, string> {
4
+ imgProps?: Omit<ComponentPropsWithRef<'img'>, 'className' | 'src' | 'alt' | 'height'>;
5
+ imgClasses?: string;
6
+ }
7
+ export declare const GidsLogo: ({ className, href, imgProps, imgClasses, src, alt, clickable, imgHeight, ...rest }: GidsLogoProps) => JSX.Element;
8
+ //# sourceMappingURL=GidsLogo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsLogo.d.ts","sourceRoot":"","sources":["../../../src/components/GidsLogo/GidsLogo.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,GAAG,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AAKtC,MAAM,WAAW,aACf,SACE,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,EACxC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,IAAI,CACb,qBAAqB,CAAC,KAAK,CAAC,EAC5B,WAAW,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CACvC,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,QAAQ,GAAI,oFAUtB,aAAa,KAAG,GAAG,CAAC,OAkBtB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { GidsLogoWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
+ import clsx from 'clsx';
4
+ const { getGidsLogoClassNames } = GidsLogoWebUtils;
5
+ export const GidsLogo = ({ className, href, imgProps, imgClasses, src, alt, clickable = true, imgHeight = '100', ...rest }) => {
6
+ return (React.createElement("a", { href: clickable && href && href !== '' ? href : undefined, className: getGidsLogoClassNames(className), ...rest },
7
+ React.createElement("img", { className: clsx(`gids-logo__img gids-logo__img-height-${imgHeight}`, imgClasses), src: src, alt: alt, ...imgProps })));
8
+ };
9
+ //# sourceMappingURL=GidsLogo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsLogo.js","sourceRoot":"","sources":["../../../src/components/GidsLogo/GidsLogo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AACpE,OAAO,EACL,gBAAgB,GAEjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,EAAE,qBAAqB,EAAE,GAAG,gBAAgB,CAAC;AAanD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EACvB,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,GAAG,EACH,GAAG,EACH,SAAS,GAAG,IAAI,EAChB,SAAS,GAAG,KAAK,EACjB,GAAG,IAAI,EACO,EAAe,EAAE;IAC/B,OAAO,CACL,2BACE,IAAI,EAAE,SAAS,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EACzD,SAAS,EAAE,qBAAqB,CAAC,SAAS,CAAC,KACvC,IAAI;QAER,6BACE,SAAS,EAAE,IAAI,CACb,wCAAwC,SAAS,EAAE,EACnD,UAAU,CACX,EACD,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,KACJ,QAAQ,GACZ,CACA,CACL,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type ComponentPropsWithoutRef, type FC } from 'react';
2
+ import { GidsRequirementsMeterCommonProps } from '@ganpatiinfo/gids-core-shared';
3
+ export interface GidsRequirementsMeterProps extends GidsRequirementsMeterCommonProps, Omit<ComponentPropsWithoutRef<'div'>, 'onClick'> {
4
+ }
5
+ export declare const GidsRequirementsMeter: FC<GidsRequirementsMeterProps>;
6
+ //# sourceMappingURL=GidsRequirementsMeter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsRequirementsMeter.d.ts","sourceRoot":"","sources":["../../../src/components/GidsRequirementsMeter/GidsRequirementsMeter.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,wBAAwB,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EACL,gCAAgC,EAGjC,MAAM,+BAA+B,CAAC;AAQvC,MAAM,WAAW,0BACf,SACE,gCAAgC,EAChC,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;CAAG;AAEvD,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAoDhE,CAAC"}
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import { GidsRequirementsMeterCommonUtils, } from '@ganpatiinfo/gids-core-shared';
3
+ import { GidsRequirementsMeterWebUtils } from '@ganpatiinfo/gids-web-shared';
4
+ import { GidsRequirementsMeterLabel } from '../_GidsRequirementsMeterLabel/GidsRequirementsMeterLabel.js';
5
+ import { minLengthRuleCanBeApplied } from '@ganpatiinfo/gids-core-shared/dist/components/GidsRequirementsMeter/GidsRequirementsMeterCommonUtils.js';
6
+ const { checkRequirementRuleSatisfied } = GidsRequirementsMeterCommonUtils;
7
+ const { getGidsRequirementsMeterClassNames } = GidsRequirementsMeterWebUtils;
8
+ export const GidsRequirementsMeter = ({ requirements = [], text, textMinLength, className, }) => {
9
+ const renderLabel = (index, isSatisfied, requirement) => {
10
+ return (React.createElement(GidsRequirementsMeterLabel, { key: index.toString(), status: isSatisfied ? 'success' : 'error', label: requirement.requirementText }));
11
+ };
12
+ const renderRequirementsMeterLabels = () => {
13
+ return requirements.map((requirement, index) => {
14
+ if (requirement?.requirementText && requirement?.requirementRule) {
15
+ const isSatisfied = checkRequirementRuleSatisfied({
16
+ rule: requirement.requirementRule,
17
+ textMinLength,
18
+ text,
19
+ });
20
+ if (requirement.requirementRule === 'include-min-length') {
21
+ if (minLengthRuleCanBeApplied({
22
+ requirementRule: requirement.requirementRule,
23
+ textMinLength,
24
+ })) {
25
+ return renderLabel(index, isSatisfied, requirement);
26
+ }
27
+ return null;
28
+ }
29
+ else {
30
+ return renderLabel(index, isSatisfied, requirement);
31
+ }
32
+ }
33
+ return null;
34
+ });
35
+ };
36
+ return (React.createElement("div", { className: getGidsRequirementsMeterClassNames(className) }, renderRequirementsMeterLabels()));
37
+ };
38
+ //# sourceMappingURL=GidsRequirementsMeter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsRequirementsMeter.js","sourceRoot":"","sources":["../../../src/components/GidsRequirementsMeter/GidsRequirementsMeter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,EAEL,gCAAgC,GAEjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8DAA8D,CAAC;AAC1G,OAAO,EAAE,yBAAyB,EAAE,MAAM,yGAAyG,CAAC;AAEpJ,MAAM,EAAE,6BAA6B,EAAE,GAAG,gCAAgC,CAAC;AAC3E,MAAM,EAAE,kCAAkC,EAAE,GAAG,6BAA6B,CAAC;AAO7E,MAAM,CAAC,MAAM,qBAAqB,GAAmC,CAAC,EACpE,YAAY,GAAG,EAAE,EACjB,IAAI,EACJ,aAAa,EACb,SAAS,GACkB,EAAE,E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extField } from '../stencil-generated/gids-text-field.js';
3
+ import { type GidsSearchBarWebProps } from '@ganpatiinfo/gids-web-shared';
4
+ type GidsTextFieldBaseProps = ComponentPropsWithoutRef<typeof GidsTextField>;
5
+ type GidsTextFieldInputProps = GidsTextFieldBaseProps['inputProps'];
6
+ export interface GidsSearchBarProps extends Omit<GidsSearchBarWebProps<ReactNode, ComponentPropsWithoutRef<'input'>>, 'inputProps' | 'trailingIcon'>, Pick<GidsTextFieldBaseProps, 'onChange' | 'onInput' | 'onBlur' | 'onFocus'> {
7
+ wrapperClass?: string;
8
+ onGidsSearchBarClear?: (event: CustomEvent<void>) => void;
9
+ inputProps?: GidsTextFieldInputProps;
10
+ className?: string;
11
+ children?: ReactNode;
12
+ }
13
+ export declare const GidsSearchBar: FC<GidsSearchBarProps>;
14
+ export {};
15
+ //# sourceMappingURL=GidsSearchBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsSearchBar.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSearchBar/GidsSearchBar.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,wBAAwB,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAExE,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,8BAA8B,CAAC;AAMtC,KAAK,sBAAsB,GAAG,wBAAwB,CAAC,OAAO,aAAa,CAAC,CAAC;AAC7E,KAAK,uBAAuB,GAAG,sBAAsB,CAAC,YAAY,CAAC,CAAC;AAEpE,MAAM,WAAW,kBACf,SACE,IAAI,CACF,qBAAqB,CAAC,SAAS,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC,EACnE,YAAY,GAAG,cAAc,CAC9B,EACD,IAAI,CACF,sBAAsB,EACtB,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAC9C;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAC1D,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAuDhD,CAAC"}
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { GidsTextField } from '../stencil-generated/gids-text-field.js';
3
+ import { GidsIcon } from '../GidsIcon/GidsIcon.js';
4
+ import { GidsSearchBarWebUtils, } from '@ganpatiinfo/gids-web-shared';
5
+ import { GidsSearchBarCommonUtils } from '@ganpatiinfo/gids-core-shared';
6
+ const { getSearchBarValue } = GidsSearchBarCommonUtils;
7
+ const { getSearchBarType, getSearchBarClassNames } = GidsSearchBarWebUtils;
8
+ export const GidsSearchBar = ({ wrapperClass, leadingIcon, onGidsSearchBarClear, onChange, onInput, onFocus, onBlur, type = 'default', value = '', inputProps, children, ...restProps }) => {
9
+ const textFieldType = getSearchBarType(type);
10
+ const getLeadingIcon = () => {
11
+ return leadingIcon ? (leadingIcon) : (React.createElement(GidsIcon, { name: "search", appearance: "regular", size: "md", slot: "leadingIcon" }));
12
+ };
13
+ return (React.createElement("div", { className: getSearchBarClassNames(wrapperClass) },
14
+ React.createElement(GidsTextField, { ...restProps, showClearButton: true, onGidsTextFieldClear: onGidsSearchBarClear, onChange: onChange, onInput: onInput, onFocus: onFocus, onBlur: onBlur, type: textFieldType, label: undefined, value: getSearchBarValue(value), inputProps: {
15
+ ...inputProps,
16
+ placeholder: inputProps?.placeholder && inputProps.placeholder !== ''
17
+ ? inputProps.placeholder
18
+ : 'Search',
19
+ } },
20
+ getLeadingIcon(),
21
+ children ? children : null)));
22
+ };
23
+ //# sourceMappingURL=GidsSearchBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsSearchBar.js","sourceRoot":"","s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,EAAE,SAAS,EAChB,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAAC,EAC/B,UAAU,EAAE;gBACV,GAAG,UAAU;gBACb,WAAW,EACT,UAAU,EAAE,WAAW,IAAI,UAAU,CAAC,WAAW,KAAK,EAAE;oBACtD,CAAC,CAAC,UAAU,CAAC,WAAW;oBACxB,CAAC,CAAC,QAAQ;aACf;YAEA,cAAc,EAAE;YAChB,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CACb,CACZ,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type JSX, type ComponentPropsWithRef, type ReactNode } from 'react';
2
+ import { GidsSegmentedTabItemPressedReturnedProps, type GidsSegmentedControlCommonProps } from '@ganpatiinfo/gids-core-shared';
3
+ export interface GidsSegmentedControlProps extends Omit<ComponentPropsWithRef<'div'>, 'onClick' | 'children' | 'onChange' | 'onBlur'>, GidsSegmentedControlCommonProps<ReactNode, string> {
4
+ onPress?: (props: GidsSegmentedTabItemPressedReturnedProps) => void;
5
+ }
6
+ export declare const GidsSegmentedControl: ({ width, tabItems, onPress, className, ...rest }: GidsSegmentedControlProps) => JSX.Element;
7
+ //# sourceMappingURL=GidsSegmentedControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsSegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSegmentedControl/GidsSegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,KAAK,GAAG,EACR,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EACL,wCAAwC,EACxC,KAAK,+BAA+B,EACrC,MAAM,+BAA+B,CAAC;AAMvC,MAAM,WAAW,yBACf,SACE,IAAI,CACF,qBAAqB,CAAC,KAAK,CAAC,EAC5B,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAC/C,EACD,+BAA+B,CAAC,SAAS,EAAE,MAAM,CAAC;IACpD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,wCAAwC,KAAK,IAAI,CAAC;CACrE;AAED,eAAO,MAAM,oBAAoB,GAAI,kDAMlC,yBAAyB,KAAG,GAAG,CAAC,OAmClC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { GidsSegmentedControlWebUtils } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsSegmentedTabItem } from '../GidsSegmentedTabItem/GidsSegmentedTabItem.js';
4
+ const { getGidsSegmentedControlClassNames } = GidsSegmentedControlWebUtils;
5
+ export const GidsSegmentedControl = ({ width = 'intrinsic', tabItems = [], onPress, className, ...rest }) => {
6
+ const [currentSelectedIndex, setCurrentSelectedIndex] = React.useState(0);
7
+ const handlePress = (props) => {
8
+ if (props.selectedIndex !== undefined && props.selectedIndex !== null) {
9
+ setCurrentSelectedIndex(props.selectedIndex);
10
+ if (onPress) {
11
+ onPress(props);
12
+ }
13
+ }
14
+ };
15
+ return (React.createElement("div", { className: getGidsSegmentedControlClassNames({ width }, className), ...rest }, tabItems.map((tabItem, index) => {
16
+ return (React.createElement(GidsSegmentedTabItem, { ...tabItem, width: width, key: index.toString(), index: index,
17
+ // 4. Now this logic actually runs again on every click!
18
+ selected: index === currentSelectedIndex,
19
+ // eslint-disable-next-line react/jsx-no-bind
20
+ onPress: handlePress }));
21
+ })));
22
+ };
23
+ //# sourceMappingURL=GidsSegmentedControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsSegmentedControl.js","sourceRoot":"","sources":["../../../src/components/GidsSegmentedControl/GidsSegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AAEvF,MAAM,EAAE,iCAAiC,EAAE,GAAG,4BAA4B,CAAC;AAY3E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACnC,KAAK,GAAG,WAAW,EACnB,QAAQ,GAAG,EAAE,EACb,OAAO,EACP,SAAS,EACT,GAAG,IAAI,EACmB,EAAe,EAAE;IAC3C,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAEpE,CAAC,CAAC,CAAC;IAEL,MAAM,WAAW,GAAG,CAAC,KAA+C,EAAE,EAAE;QACtE,IAAI,KAAK,CAAC,aAAa,KAAK,SAAS,IAAI,KAAK,CAAC,aAAa,KAAK,IAAI,EAAE,CAAC;YACtE,uBAAuB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;YAC7C,IAAI,OAAO,EAAE,CAAC;gBACZ,OAAO,CAAC,KAAK,CAAC,CAAC;YACjB,CAAC;QACH,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,6BACE,SAAS,EAAE,iCAAiC,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,CAAC,KAC9D,IAAI,IAEP,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;QAC/B,OAAO,CACL,oBAAC,oBAAoB,OACf,OAAO,EACX,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,KAAK,CAAC,QAAQ,EAAE,EACrB,KAAK,EAAE,KAAK;YACZ,wDAAwD;YACxD,QAAQ,EAAE,KAAK,KAAK,oBAAoB;YACxC,6CAA6C;YAC7C,OAAO,EAAE,WAAW,GACpB,CACH,CAAC;IACJ,CAAC,CAAC,CACE,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type JSX, type ComponentPropsWithRef, type ReactNode } from 'react';
2
+ import { GidsSegmentedTabItemPressedReturnedProps, type GidsSegmentedTabItemCommonProps } from '@ganpatiinfo/gids-core-shared';
3
+ export interface GidsSegmentedTabItemProps extends Omit<ComponentPropsWithRef<'button'>, 'onClick' | 'children' | 'onChange' | 'onBlur'>, GidsSegmentedTabItemCommonProps<ReactNode, string> {
4
+ onPress?: (props: GidsSegmentedTabItemPressedReturnedProps) => void;
5
+ }
6
+ export declare const GidsSegmentedTabItem: ({ index, label, selected, badge, badgeAccessibleText, badgeAppearance, className, onPress, width, ...rest }: GidsSegmentedTabItemProps) => JSX.Element;
7
+ //# sourceMappingURL=GidsSegmentedTabItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsSegmentedTabItem.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSegmentedTabItem/GidsSegmentedTabItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,KAAK,GAAG,EACR,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EACL,wCAAwC,EACxC,KAAK,+BAA+B,EACrC,MAAM,+BAA+B,CAAC;AAOvC,MAAM,WAAW,yBACf,SACE,IAAI,CACF,qBAAqB,CAAC,QAAQ,CAAC,EAC/B,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAC/C,EACD,+BAA+B,CAAC,SAAS,EAAE,MAAM,CAAC;IACpD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,wCAAwC,KAAK,IAAI,CAAC;CACrE;AAED,eAAO,MAAM,oBAAoB,GAAI,6GAWlC,yBAAyB,KAAG,GAAG,CAAC,OAmDlC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { GidsSegmentedTabItemWebUtils } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsBadge } from '../GidsBadge/GidsBadge.js';
4
+ import clsx from 'clsx';
5
+ const { getGidsSegmentedTabItemClassNames } = GidsSegmentedTabItemWebUtils;
6
+ export const GidsSegmentedTabItem = ({ index, label, selected, badge, badgeAccessibleText, badgeAppearance = 'information', className, onPress, width = 'intrinsic', ...rest }) => {
7
+ const renderLabel = () => {
8
+ if (typeof label === 'string') {
9
+ return (React.createElement("label", { className: clsx('gids-segmented-tab-item__label', {
10
+ 'gids-segmented-tab-item__selected-label': selected,
11
+ }) }, label));
12
+ }
13
+ return label;
14
+ };
15
+ const onItemPress = () => {
16
+ if (onPress) {
17
+ onPress({ selectedIndex: index ? index : 0 });
18
+ }
19
+ };
20
+ const renderBadge = () => {
21
+ if (badge) {
22
+ return (React.createElement(GidsBadge, { accessibleText: badgeAccessibleText, appearance: badgeAppearance, outline: false, type: "dot" }));
23
+ }
24
+ return null;
25
+ };
26
+ return (React.createElement("button", { className: getGidsSegmentedTabItemClassNames({ selected, width }, className), onClick: onItemPress, role: "tab", "data-gids-segmented-item": "segmented-tab-item", ...rest },
27
+ renderLabel(),
28
+ renderBadge()));
29
+ };
30
+ //# sourceMappingURL=GidsSegmentedTabItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsSegmentedTabItem.js","sourceRoot":"","sources":["../../../src/components/GidsSegmentedTabItem/GidsSegmentedTabItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,EAAE,iCAAiC,EAAE,GAAG,4BAA4B,CAAC;AAY3E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACnC,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,mBAAmB,EACnB,eAAe,GAAG,aAAa,EAC/B,SAAS,EACT,OAAO,EACP,KAAK,GAAG,WAAW,EACnB,GAAG,IAAI,EACmB,EAAe,EAAE;IAC3C,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,CACL,+BACE,SAAS,EAAE,IAAI,CAAC,gCAAgC,EAAE;oBAChD,yCAAyC,EAAE,QAAQ;iBACpD,CAAC,IAED,KAAK,CACA,CACT,CAAC;QACJ,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAChD,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,CACL,oBAAC,SAAS,IACR,cAAc,EAAE,mBAAmB,EACnC,UAAU,EAAE,eAAe,EAC3B,OAAO,EAAE,KAAK,EACd,IAAI,EAAC,KAAK,GACV,CACH,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO,CACL,gCACE,SAAS,EAAE,iCAAiC,CAC1C,EAAE,QAAQ,EAAE,KAAK,EAAE,EACnB,SAAS,CACV,EACD,OAAO,EAAE,WAAW,EACpB,IAAI,EAAC,KAAK,8BACe,oBAAoB,KACzC,IAAI;QAEP,WAAW,EAAE;QACb,WAAW,EAAE,CACP,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { GidsStatusTagCommonProps } from '@ganpatiinfo/gids-core-shared';
2
+ import { ComponentPropsWithoutRef, FC } from 'react';
3
+ export interface GidsStatusTagProps extends GidsStatusTagCommonProps, Omit<ComponentPropsWithoutRef<'div'>, 'onClick'> {
4
+ }
5
+ export declare const GidsStatusTag: FC<GidsStatusTagProps>;
6
+ //# sourceMappingURL=GidsStatusTag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsStatusTag.d.ts","sourceRoot":"","sources":["../../../src/components/GidsStatusTag/GidsStatusTag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAc,EAAE,wBAAwB,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAM5D,MAAM,WAAW,kBACf,SACE,wBAAwB,EACxB,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;CAAG;AAEvD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAiBhD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { GidsStatusTagWebUtils } from '@ganpatiinfo/gids-web-shared';
2
+ import React from 'react';
3
+ import { GidsIcon } from '../GidsIcon/GidsIcon.js';
4
+ const { getGidsStatusTagClassNames, getStatusTagIconName, getStatusTagText } = GidsStatusTagWebUtils;
5
+ export const GidsStatusTag = ({ type = 'new', appearance = 'subtlest', size = 'sm', className, }) => {
6
+ return (React.createElement("div", { className: getGidsStatusTagClassNames({ type, size, appearance }, className) },
7
+ React.createElement(GidsIcon, { name: getStatusTagIconName(type), appearance: "filled" }),
8
+ React.createElement("label", null, getStatusTagText(type))));
9
+ };
10
+ //# sourceMappingURL=GidsStatusTag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsStatusTag.js","sourceRoot":"","sources":["../../../src/components/GidsStatusTag/GidsStatusTag.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,MAAM,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,GAC1E,qBAAqB,CAAC;AAOxB,MAAM,CAAC,MAAM,aAAa,GAA2B,CAAC,EACpD,IAAI,GAAG,KAAK,EACZ,UAAU,GAAG,UAAU,EACvB,IAAI,GAAG,IAAI,EACX,SAAS,GACU,EAAE,EAAE;IACvB,OAAO,CACL,6BACE,SAAS,EAAE,0BAA0B,CACnC,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,EAC1B,SAAS,CACV;QAED,oBAAC,QAAQ,IAAC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC,EAAE,UAAU,EAAC,QAAQ,GAAG;QAClE,mCAAQ,gBAAgB,CAAC,IAAI,CAAC,CAAS,CACnC,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ComponentPropsWithoutRef, FC } from 'react';
2
+ import { type GidsStepperCommonProps, type StepClickProps } from '@ganpatiinfo/gids-core-shared';
3
+ export interface GidsStepperProps extends GidsStepperCommonProps, Omit<ComponentPropsWithoutRef<'div'>, 'onClick'> {
4
+ onClickMinus?: (params: StepClickProps) => void;
5
+ onClickPlus?: (params: StepClickProps) => void;
6
+ }
7
+ export declare const GidsStepper: FC<GidsStepperProps>;
8
+ //# sourceMappingURL=GidsStepper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsStepper.d.ts","sourceRoot":"","sources":["../../../src/components/GidsStepper/GidsStepper.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,wBAAwB,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AACtE,OAAO,EACL,KAAK,sBAAsB,EAE3B,KAAK,cAAc,EACpB,MAAM,+BAA+B,CAAC;AASvC,MAAM,WAAW,gBACf,SACE,sBAAsB,EACtB,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClD,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAChD,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;CAChD;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAqE5C,CAAC"}
@@ -0,0 +1,36 @@
1
+ import React, { useState } from 'react';
2
+ import { GidsStepperCommonUtils, } from '@ganpatiinfo/gids-core-shared';
3
+ import { GidsStepperWebUtils } from '@ganpatiinfo/gids-web-shared';
4
+ import { GidsButton } from '../GidsButton/GidsButton.js';
5
+ import { GidsIcon } from '../GidsIcon/GidsIcon.js';
6
+ import clsx from 'clsx';
7
+ const { isStepperMinusDisabled } = GidsStepperCommonUtils;
8
+ const { getGidsStepperClassNames } = GidsStepperWebUtils;
9
+ export const GidsStepper = ({ disabled, className, onClickMinus, onClickPlus, }) => {
10
+ const [stepperText, setStepperText] = useState(0);
11
+ const onClickMinusStep = () => {
12
+ const newStepperText = stepperText && stepperText > 0 ? stepperText - 1 : 0;
13
+ setStepperText(newStepperText);
14
+ if (onClickMinus) {
15
+ onClickMinus({ stepText: newStepperText });
16
+ }
17
+ };
18
+ const onClickPlusStep = () => {
19
+ const newStepperText = stepperText + 1;
20
+ setStepperText(newStepperText);
21
+ if (onClickPlus) {
22
+ onClickPlus({ stepText: newStepperText });
23
+ }
24
+ };
25
+ return (React.createElement("div", { className: getGidsStepperClassNames(className) },
26
+ React.createElement(GidsButton, { disabled: disabled || isStepperMinusDisabled({ stepText: stepperText }), size: "sm", width: "intrinsic", appearance: "default", onClick: onClickMinusStep },
27
+ React.createElement(GidsIcon, { slot: "leadingIcon", name: "minus", size: "md", appearance: "regular" })),
28
+ React.createElement("label", { className: clsx('gids-stepper__label', {
29
+ 'gids-stepper__label=disabled': disabled,
30
+ }) }, stepperText === undefined || stepperText === null
31
+ ? `0`
32
+ : `${stepperText}`),
33
+ React.createElement(GidsButton, { disabled: disabled, size: "sm", width: "intrinsic", appearance: "default", onClick: onClickPlusStep },
34
+ React.createElement(GidsIcon, { slot: "leadingIcon", name: "plus", size: "md", appearance: "regular" }))));
35
+ };
36
+ //# sourceMappingURL=GidsStepper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsStepper.js","sourceRoot":"","sources":["../../../src/components/GidsStepper/GidsStepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgC,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAEL,sBAAsB,GAEvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAA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,EACjB,UAAU,EAAC,SAAS,EACpB,OAAO,EAAE,gBAAgB;YAEzB,oBAAC,QAAQ,IACP,IAAI,EAAC,aAAa,EAClB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,IAAI,EACT,UAAU,EAAC,SAAS,GACpB,CACS;QACb,+BACE,SAAS,EAAE,IAAI,CAAC,qBAAqB,EAAE;gBACrC,8BAA8B,EAAE,QAAQ;aACzC,CAAC,IAED,WAAW,KAAK,SAAS,IAAI,WAAW,KAAK,IAAI;YAChD,CAAC,CAAC,GAAG;YACL,CAAC,CAAC,GAAG,WAAW,EAAE,CACd;QACR,oBAAC,UAAU,IACT,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,IAAI,EACT,KAAK,EAAC,WAAW,EACjB,UAAU,EAAC,SAAS,EACpB,OAAO,EAAE,eAAe;YAExB,oBAAC,QAAQ,IACP,IAAI,EAAC,aAAa,EAClB,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,IAAI,EACT,UAAU,EAAC,SAAS,GACpB,CACS,CACT,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type ComponentPropsWithoutRef, type FC } from 'react';
2
+ import { type GidsStrengthMeterCommonProps } from '@ganpatiinfo/gids-core-shared';
3
+ export interface GidsStrengthMeterProps extends GidsStrengthMeterCommonProps, Omit<ComponentPropsWithoutRef<'div'>, 'onClick'> {
4
+ }
5
+ export declare const GidsStrengthMeter: FC<GidsStrengthMeterProps>;
6
+ //# sourceMappingURL=GidsStrengthMeter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsStrengthMeter.d.ts","sourceRoot":"","sources":["../../../src/components/GidsStrengthMeter/GidsStrengthMeter.tsx"],"names":[],"mappings":"AAAA,OAAc,EAEZ,KAAK,wBAAwB,EAC7B,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AACf,OAAO,EACL,KAAK,4BAA4B,EAElC,MAAM,+BAA+B,CAAC;AAQvC,MAAM,WAAW,sBACf,SACE,4BAA4B,EAC5B,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;CAAG;AAEvD,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA0ExD,CAAC"}
@@ -0,0 +1,56 @@
1
+ import React from 'react';
2
+ import { GidsStrengthMeterCommonUtils, } from '@ganpatiinfo/gids-core-shared';
3
+ import { GidsStrengthMeterWebUtils } from '@ganpatiinfo/gids-web-shared';
4
+ import { minLengthRuleCanBeApplied } from '@ganpatiinfo/gids-core-shared/dist/components/GidsRequirementsMeter/GidsRequirementsMeterCommonUtils';
5
+ const { getGidsStrengthMeterClassNames } = GidsStrengthMeterWebUtils;
6
+ const { getStrengthMeterScore, getColorModifierByScore } = GidsStrengthMeterCommonUtils;
7
+ export const GidsStrengthMeter = ({ text, textMinLength, meterRules = [
8
+ '1-uppercase',
9
+ '1-lowercase',
10
+ '1-digit',
11
+ '1-special-character',
12
+ 'include-min-length',
13
+ ], className, }) => {
14
+ const getMeterScore = () => {
15
+ const textScore = getStrengthMeterScore({
16
+ text,
17
+ textMinLength,
18
+ meterRules,
19
+ });
20
+ return textScore;
21
+ };
22
+ const renderStrengthLine = (index, isActive, colorModifier) => {
23
+ return (React.createElement("div", { className: [
24
+ `gids-strength-meter__strength-${index}`,
25
+ isActive ? 'is-active' : '',
26
+ isActive ? colorModifier : '',
27
+ ]
28
+ .filter(Boolean)
29
+ .join(' ') }));
30
+ };
31
+ const renderStrengths = () => {
32
+ const maxScore = meterRules.length;
33
+ const colorModifier = getColorModifierByScore({
34
+ textScore: getMeterScore(),
35
+ maxScore,
36
+ });
37
+ const strengths = [];
38
+ for (let i = 1; i <= maxScore; i++) {
39
+ const isActive = i <= getMeterScore();
40
+ if (meterRules[i] === 'include-min-length') {
41
+ if (minLengthRuleCanBeApplied({
42
+ requirementRule: 'include-min-length',
43
+ textMinLength,
44
+ })) {
45
+ strengths.push(renderStrengthLine(i, isActive, colorModifier));
46
+ }
47
+ }
48
+ else {
49
+ strengths.push(renderStrengthLine(i, isActive, colorModifier));
50
+ }
51
+ }
52
+ return strengths;
53
+ };
54
+ return meterRules.length > 0 ? (React.createElement("div", { className: getGidsStrengthMeterClassNames(className) }, renderStrengths())) : null;
55
+ };
56
+ //# sourceMappingURL=GidsStrengthMeter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsStrengthMeter.js","sourceRoot":"","sources":["../../../src/components/GidsStrengthMeter/GidsStrengthMeter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,4BAA4B,GAC7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sGAAsG,CAAC;AAEjJ,MAAM,EAAE,8BAA8B,EAAE,GAAG,yBAAyB,CAAC;AACrE,MAAM,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,GACtD,4BAA4B,CAAC;AAO/B,MAAM,CAAC,MAAM,iBAAiB,GAA+B,CAAC,EAC5D,IAAI,EACJ,aAAa,EACb,UAAU,GAAG;IACX,aAAa;IACb,aAAa;IACb,SAAS;IACT,qBAAqB;IACrB,oBAAoB;CACrB,EACD,SAAS,GACc,EAAE,EAAE;IAC3B,MAAM,aAAa,GAAG,GAAG,EAAE;QACzB,MAAM,SAAS,GAAG,qBAAqB,CAAC;YACtC,IAAI;YACJ,aAAa;YACb,UAAU;SACX,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,kBAAkB,GAAG,CACzB,KAAa,EACb,QAAiB,EACjB,aAAqB,EACrB,EAAE;QACF,OAAO,CACL,6BACE,SAAS,EAAE;gBACT,iCAAiC,KAAK,EAAE;gBACxC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;gBAC3B,QAAQ,CAAC,CAAC,CAAC,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
3
+ import { type GidsSegmentedControlProps } from '../GidsSegmentedControl/GidsSegmentedControl.js';
4
+ import { type GidsTopNavigationWebProps } from '@ganpatiinfo/gids-web-shared';
5
+ export interface GidsTopNavigationProps extends GidsTopNavigationWebProps<ReactNode, ReactNode, ReactNode, ReactNode | string, string, string, string>, Pick<GidsSearchBarProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Pick<GidsSegmentedControlProps, 'onPress'> {
6
+ className?: string;
7
+ }
8
+ export declare const GidsTopNavigation: FC<GidsTopNavigationProps>;
9
+ //# sourceMappingURL=GidsTopNavigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsTopNavigation.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTopNavigation/GidsTopNavigation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,iDAAiD,CAAC;AAEzD,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,8BAA8B,CAAC;AAKtC,MAAM,WAAW,sBACf,SACE,yBAAyB,CACvB,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,GAAG,MAAM,EAClB,MAAM,EACN,MAAM,EACN,MAAM,CACP,EACD,IAAI,CAAC,kBAAkB,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC,EACvE,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA6ExD,CAAC"}
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { GidsSearchBar, } from '../GidsSearchBar/GidsSearchBar.js';
3
+ import { GidsSegmentedControl, } from '../GidsSegmentedControl/GidsSegmentedControl.js';
4
+ import { GidsLogo } from '../GidsLogo/GidsLogo.js';
5
+ import { GidsTopNavigationWebUtils, } from '@ganpatiinfo/gids-web-shared';
6
+ const { getGidsTopNavigationClassNames, isContentValid } = GidsTopNavigationWebUtils;
7
+ export const GidsTopNavigation = (props) => {
8
+ const { isDefaultLeftContentRender = true, isDefaultMiddleContentRender = true, isDefaultRightContentRender = true, leftContent, middleContent, rightContent, src, imgHeight = '100', href, clickable, onPress, width, tabItems = [], className, ...rest } = props;
9
+ const isLeftContentValid = isContentValid({
10
+ content: leftContent,
11
+ defaultRender: isDefaultLeftContentRender,
12
+ });
13
+ const isMiddleContentValid = isContentValid({
14
+ content: middleContent,
15
+ defaultRender: isDefaultMiddleContentRender,
16
+ });
17
+ const isRightContentValid = isContentValid({
18
+ content: rightContent,
19
+ defaultRender: isDefaultRightContentRender,
20
+ });
21
+ return (React.createElement("nav", { className: getGidsTopNavigationClassNames(className) },
22
+ isLeftContentValid ? (React.createElement("div", { className: "gids-top-navigation__left-content" },
23
+ leftContent ? leftContent : null,
24
+ isDefaultLeftContentRender ? (React.createElement(GidsLogo, { src: src, imgHeight: imgHeight, alt: "logo-img", href: href && href !== '' ? href : '/', clickable: clickable })) : null)) : null,
25
+ isMiddleContentValid ? (React.createElement("div", { className: "gids-top-navigation__middle-content" },
26
+ middleContent ? middleContent : null,
27
+ isDefaultMiddleContentRender ? (React.createElement(GidsSearchBar, { type: "default", appearance: "default", status: "default", ...rest })) : null)) : null,
28
+ isRightContentValid ? (React.createElement("div", { className: "gids-top-navigation__right-content" },
29
+ rightContent ? rightContent : null,
30
+ isDefaultRightContentRender ? (React.createElement(GidsSegmentedControl, { width: width ? width : 'intrinsic', tabItems: tabItems, onPress: onPress })) : null)) : null));
31
+ };
32
+ //# sourceMappingURL=GidsTopNavigation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsTopNavigation.js","sourceRoot":"","sources":["../../../src/components/GidsTopNavigation/GidsTopNavigation.tsx"],"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,QAAQ,IACP,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,GAAG,EAAC,UAAU,EACd,IAAI,EAAE,IAAI,IAAI,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EACtC,SAAS,EAAE,SAAS,GACpB,CACH,CAAC,CAAC,CAAC,IAAI,CACJ,CACP,CAAC,CAAC,CAAC,IAAI;QACP,oBAAoB,CAAC,CAAC,CAAC,CACtB,6BAAK,SAAS,EAAC,qCAAqC;YACjD,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI;YACpC,4BAA4B,CAAC,CAAC,CAAC,CAC9B,oBAAC,aAAa,IACZ,IAAI,EAAC,SAAS,EACd,UAAU,EAAC,SAAS,EACpB,MAAM,EAAC,SAAS,KACZ,IAAI,GACR,CACH,CAAC,CAAC,CAAC,IAAI,CACJ,CACP,CAAC,CAAC,CAAC,IAAI;QACP,mBAAmB,CAAC,CAAC,CAAC,CACrB,6BAAK,SAAS,EAAC,oCAAoC;YAChD,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI;YAClC,2BAA2B,CAAC,CAAC,CAAC,CAC7B,oBAAC,oBAAoB,IACnB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,EAClC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,CACJ,CACP,CAAC,CAAC,CAAC,IAAI,CACJ,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ComponentPropsWithoutRef, FC, MouseEvent, ReactNode } from 'react';
2
+ import { GidsNotificationContainerCommonProps } from '@ganpatiinfo/gids-core-shared';
3
+ export interface GidsNotificationContainerProps extends GidsNotificationContainerCommonProps<ReactNode | string, ReactNode>, Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onClick'> {
4
+ onCloseNotificationClick?: (event: MouseEvent<HTMLButtonElement>) => void;
5
+ }
6
+ export declare const GidsNotificationContainer: FC<GidsNotificationContainerProps>;
7
+ //# sourceMappingURL=GidsNotificationContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsNotificationContainer.d.ts","sourceRoot":"","sources":["../../../src/components/_GidsNotificationContainer/GidsNotificationContainer.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,wBAAwB,EACxB,EAAE,EACF,UAAU,EACV,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,oCAAoC,EAAE,MAAM,+BAA+B,CAAC;AAYrF,MAAM,WAAW,8BACf,SACE,oCAAoC,CAAC,SAAS,GAAG,MAAM,EAAE,SAAS,CAAC,EACnE,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/D,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC3E;AAED,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CAiFxE,CAAC"}