@nulogy/components 14.3.0 → 14.4.1

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.
@@ -1,10 +1,9 @@
1
1
  import React from "react";
2
2
  import type { AppName } from "./constants";
3
3
  import { AppTagType } from "./types";
4
- type AppTagProps = {
4
+ export type AppTagProps = {
5
5
  app: AppName;
6
6
  type?: AppTagType;
7
7
  hideTooltip?: boolean;
8
8
  };
9
9
  export default function AppTag({ app, type, hideTooltip }: AppTagProps): React.JSX.Element;
10
- export {};
@@ -1 +1,3 @@
1
1
  export { default as AppTag } from "./AppTag";
2
+ export type { AppTagProps } from "./AppTag";
3
+ export type { AppName } from "./constants";
@@ -21,3 +21,7 @@ export declare const WithTooltip: {
21
21
  (): React.JSX.Element;
22
22
  storyName: string;
23
23
  };
24
+ export declare const InsideAModal: {
25
+ (): React.JSX.Element;
26
+ storyName: string;
27
+ };
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { PositionProps, SpaceProps } from "styled-system";
3
3
  import { IconName } from "@nulogy/icons";
4
- interface IconProps extends SpaceProps {
4
+ export interface IconProps extends SpaceProps {
5
5
  icon: IconName | "loading";
6
6
  className?: string;
7
7
  size?: string;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { TruncatedTextProps } from "./types";
3
- declare const TruncatedText: ({ indicator, element, maxCharacters, fullWidth, showTooltip, "data-testid": dataTestId, children, ...props }: TruncatedTextProps) => React.JSX.Element;
3
+ declare const TruncatedText: ({ indicator, element, maxCharacters, fullWidth, showTooltip, "data-testid": dataTestId, children, ...rest }: TruncatedTextProps) => React.JSX.Element;
4
4
  export default TruncatedText;
@@ -51,3 +51,7 @@ export declare const WithoutChildren: {
51
51
  name: string;
52
52
  };
53
53
  };
54
+ export declare const TooltipInsideModal: {
55
+ (): React.JSX.Element;
56
+ storyName: string;
57
+ };
@@ -10,5 +10,5 @@ export type MaybeTooltipProps = PropsWithChildren<{
10
10
  maxWidth?: MaxWidthProps["maxWidth"];
11
11
  supportMobileTap?: boolean;
12
12
  }>;
13
- declare const MaybeTooltip: React.FC<MaybeTooltipProps>;
13
+ declare function MaybeTooltip({ tooltip, children, placement, defaultOpen, showDelay, maxWidth, showTooltip, supportMobileTap, className, }: MaybeTooltipProps): React.JSX.Element;
14
14
  export default MaybeTooltip;
@@ -5,7 +5,10 @@ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
5
5
  type TooltipProps = TooltipPrimitive.TooltipProps & {
6
6
  supportMobileTap?: boolean;
7
7
  };
8
- declare const Tooltip: React.FC<TooltipProps>;
8
+ declare function Tooltip({ children, ...props }: TooltipProps): React.JSX.Element;
9
+ declare namespace Tooltip {
10
+ var displayName: string;
11
+ }
9
12
  declare const TooltipTrigger: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
13
  interface StyledTooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, MaxWidthProps {
11
14
  children?: React.ReactNode;
@@ -9,5 +9,5 @@ export interface TruncatedTextProps extends TextProps {
9
9
  showTooltip?: boolean;
10
10
  fullWidth?: boolean;
11
11
  "data-testid"?: string;
12
- tooltipProps?: MaybeTooltipProps;
12
+ tooltipProps?: Partial<MaybeTooltipProps>;
13
13
  }
@@ -1,5 +1,7 @@
1
1
  export { Alert, NotificationTypes } from "./Alert";
2
2
  export type { NotificationType } from "./Alert";
3
+ export { AppTag } from "./AppTag";
4
+ export type { AppName, AppTagProps } from "./AppTag";
3
5
  export { AsyncSelect } from "./AsyncSelect";
4
6
  export { Banner } from "./Banner";
5
7
  export { BottomSheet, BottomSheetParts } from "./BottomSheet";
@@ -15,7 +17,7 @@ export { Card, CardSet } from "./Card";
15
17
  export { Checkbox, CheckboxGroup } from "./Checkbox";
16
18
  export { DatePicker, MonthPicker, WeekPicker } from "./DatePickers";
17
19
  export { DateRange } from "./DateRange";
18
- export { DescriptionList, DescriptionDetails, DescriptionGroup, DescriptionTerm } from "./DescriptionList";
20
+ export { DescriptionDetails, DescriptionGroup, DescriptionList, DescriptionTerm } from "./DescriptionList";
19
21
  export type { DescriptionListProps } from "./DescriptionList";
20
22
  export { Divider } from "./Divider";
21
23
  export { DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText } from "./DropdownMenu";
@@ -36,7 +38,7 @@ export { Overlay } from "./Overlay";
36
38
  export { Pagination } from "./Pagination";
37
39
  export { Radio, RadioGroup } from "./Radio";
38
40
  export { RangeContainer } from "./RangeContainer";
39
- export { Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption, type SelectOptionProps, type NDSOption, type NDSOptionValue, type NDSSelectProps, } from "./Select";
41
+ export { Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption, type NDSOption, type NDSOptionValue, type NDSSelectProps, type SelectOptionProps, } from "./Select";
40
42
  export { SortingTable } from "./SortingTable";
41
43
  export { StatusIndicator, StatusIndicatorValues } from "./StatusIndicator";
42
44
  export type { StatusIndicatorType } from "./StatusIndicator";
@@ -64,4 +66,3 @@ export type { TextProps } from "./Type";
64
66
  export { useWindowDimensions } from "./utils";
65
67
  export { InlineValidation } from "./Validation";
66
68
  export { VerticalDivider } from "./VerticalDivider";
67
- export { AppTag } from "./AppTag";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "14.3.0",
3
+ "version": "14.4.1",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {