@caratlogic/design-system 0.1.0 → 0.1.2
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.
- package/dist/components/atoms/Skeleton/SquareSkeleton.d.ts.map +1 -1
- package/dist/components/layouts/AppShell/DashboardShell.d.ts.map +1 -1
- package/dist/components/molecules/DateInput/DateInput.d.ts.map +1 -1
- package/dist/components/molecules/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/molecules/Pagination/Pagination.utils.d.ts +3 -5
- package/dist/components/molecules/Pagination/Pagination.utils.d.ts.map +1 -1
- package/dist/components/molecules/PaginationSelect/PaginationSelect.d.ts +11 -0
- package/dist/components/molecules/PaginationSelect/PaginationSelect.d.ts.map +1 -0
- package/dist/components/molecules/PaginationSelect/PaginationSelect.types.d.ts +24 -0
- package/dist/components/molecules/PaginationSelect/PaginationSelect.types.d.ts.map +1 -0
- package/dist/components/molecules/PaginationSelect/PaginationSelect.utils.d.ts +16 -0
- package/dist/components/molecules/PaginationSelect/PaginationSelect.utils.d.ts.map +1 -0
- package/dist/components/molecules/PaginationSelect/index.d.ts +3 -0
- package/dist/components/molecules/PaginationSelect/index.d.ts.map +1 -0
- package/dist/components/molecules/ShimmerTable/ShimmerTable.d.ts.map +1 -1
- package/dist/components/molecules/Sidebar/Sidebar.parts.d.ts.map +1 -1
- package/dist/hooks/useForwardedRef.d.ts +7 -0
- package/dist/hooks/useForwardedRef.d.ts.map +1 -0
- package/dist/hooks/useTruncatedText.d.ts +11 -0
- package/dist/hooks/useTruncatedText.d.ts.map +1 -0
- package/dist/index.cjs.js +354 -144
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +355 -146
- package/dist/index.esm.js.map +1 -1
- package/dist/source.css +12 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SquareSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Skeleton/SquareSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,EAAE,EAAE,MAAM,OAAO,CAAC;AAG/C,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiBD,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"SquareSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Skeleton/SquareSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,EAAE,EAAE,MAAM,OAAO,CAAC;AAG/C,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiBD,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAwBlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardShell.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/AppShell/DashboardShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DashboardShell.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/AppShell/DashboardShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,EAAE,EAAE,MAAM,OAAO,CAAC;AAuC/C,OAAO,KAAK,EAMV,mBAAmB,EAEpB,MAAM,kBAAkB,CAAC;AAgW1B,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAkDlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DateInput/DateInput.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,4CAA4C,CAAC;AACpD,OAAO,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DateInput/DateInput.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,4CAA4C,CAAC;AACpD,OAAO,yBAAyB,CAAC;AAQjC,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,SAAS,EACT,GAAG,EACH,GAAG,EACH,QAAQ,EACR,WAA2B,GAC5B,EAAE,cAAc,2CAkIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAyB3C,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,oBAAoB,CAAC;AAK7E,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA6O1C,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import type { PaginationSelectOption } from '@/components/molecules/PaginationSelect';
|
|
1
2
|
import type { PaginationSize } from './Pagination.types';
|
|
2
3
|
export type PageItem = number | 'ellipsis-l' | 'ellipsis-r';
|
|
4
|
+
export declare function buildPageOptions(totalPages: number): PaginationSelectOption[];
|
|
5
|
+
export declare function buildItemsPerPageOptions(options: number[]): PaginationSelectOption[];
|
|
3
6
|
export declare const pageButtonVariants: (props?: ({
|
|
4
7
|
size?: "xs" | "sm" | "lg" | "md" | null | undefined;
|
|
5
8
|
shape?: "square" | "rounded" | null | undefined;
|
|
@@ -10,11 +13,6 @@ export declare const navButtonVariants: (props?: ({
|
|
|
10
13
|
shape?: "square" | "rounded" | null | undefined;
|
|
11
14
|
variant?: "default" | "solid" | "underline" | "outlined" | null | undefined;
|
|
12
15
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
13
|
-
export declare const itemsPerPageVariants: (props?: ({
|
|
14
|
-
size?: "xs" | "sm" | "lg" | "md" | null | undefined;
|
|
15
|
-
shape?: "square" | "rounded" | null | undefined;
|
|
16
|
-
variant?: "default" | "solid" | "underline" | "outlined" | null | undefined;
|
|
17
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
18
16
|
export declare const navIconSizes: Record<PaginationSize, number>;
|
|
19
17
|
export declare const pageInfoSizes: Record<PaginationSize, string>;
|
|
20
18
|
/** Height classes used for the page-info center cell in combined mode */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Pagination/Pagination.utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,CAAC;AAE5D,
|
|
1
|
+
{"version":3,"file":"Pagination.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Pagination/Pagination.utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAEtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,CAAC;AAE5D,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,sBAAsB,EAAE,CAK7E;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EAAE,GAChB,sBAAsB,EAAE,CAE1B;AAED,eAAO,MAAM,kBAAkB;;;;mFAwB9B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;mFAwB7B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKxD,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKtD,CAAC;AAEF,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,QAAQ,GAAE,MAAU,GACnB,QAAQ,EAAE,CA2CZ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { PaginationSelectProps } from './PaginationSelect.types';
|
|
3
|
+
/**
|
|
4
|
+
* Compact dropdown for pagination controls (rows-per-page, jump-to-page).
|
|
5
|
+
*
|
|
6
|
+
* Replaces a native `<select>`: browsers hand the native option list to the OS,
|
|
7
|
+
* so on Windows it renders in system colours and ignores the app's dark theme.
|
|
8
|
+
* This one is a themed, portalled listbox, so it looks the same on every OS.
|
|
9
|
+
*/
|
|
10
|
+
export declare const PaginationSelect: FC<PaginationSelectProps>;
|
|
11
|
+
//# sourceMappingURL=PaginationSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaginationSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/PaginationSelect/PaginationSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAOhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAStE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAgEtD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type PaginationSelectSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
2
|
+
export type PaginationSelectShape = 'square' | 'rounded';
|
|
3
|
+
export type PaginationSelectVariant = 'default' | 'solid' | 'outlined' | 'underline';
|
|
4
|
+
export interface PaginationSelectOption {
|
|
5
|
+
value: number;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PaginationSelectProps {
|
|
9
|
+
/** Currently selected option value. */
|
|
10
|
+
value: number;
|
|
11
|
+
options: PaginationSelectOption[];
|
|
12
|
+
onChange: (value: number) => void;
|
|
13
|
+
/** Required — the trigger shows only the value, so it needs a spoken name. */
|
|
14
|
+
ariaLabel: string;
|
|
15
|
+
size?: PaginationSelectSize;
|
|
16
|
+
shape?: PaginationSelectShape;
|
|
17
|
+
variant?: PaginationSelectVariant;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Popup edge aligned to the trigger. */
|
|
20
|
+
align?: 'start' | 'center' | 'end';
|
|
21
|
+
className?: string;
|
|
22
|
+
contentClassName?: string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=PaginationSelect.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaginationSelect.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/PaginationSelect/PaginationSelect.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC7D,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,SAAS,CAAC;AACzD,MAAM,MAAM,uBAAuB,GAC/B,SAAS,GACT,OAAO,GACP,UAAU,GACV,WAAW,CAAC;AAEhB,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,8EAA8E;IAC9E,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PaginationSelectSize } from './PaginationSelect.types';
|
|
2
|
+
export declare const paginationSelectTriggerVariants: (props?: ({
|
|
3
|
+
size?: "xs" | "sm" | "lg" | "md" | null | undefined;
|
|
4
|
+
shape?: "square" | "rounded" | null | undefined;
|
|
5
|
+
variant?: "default" | "solid" | "underline" | "outlined" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
/**
|
|
8
|
+
* The popup is portalled to `document.body`, so it is styled purely from theme
|
|
9
|
+
* tokens — that is what keeps it identical on Windows, macOS and Linux instead
|
|
10
|
+
* of inheriting the OS's native listbox chrome.
|
|
11
|
+
*/
|
|
12
|
+
export declare const paginationSelectContentClass = "z-50 min-w-[var(--radix-select-trigger-width)] max-h-[--radix-select-content-available-height] overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-[0_10px_15px_-3px_rgba(0,0,0,0.10),0_4px_6px_-4px_rgba(0,0,0,0.10)] data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0";
|
|
13
|
+
export declare const paginationSelectItemClass = "relative flex w-full cursor-pointer select-none items-center whitespace-nowrap rounded-sm py-1.5 pl-2 pr-7 font-sans text-popover-foreground outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=checked]:font-medium data-[disabled]:pointer-events-none data-[disabled]:opacity-50";
|
|
14
|
+
export declare const paginationSelectItemSizes: Record<PaginationSelectSize, string>;
|
|
15
|
+
export declare const paginationSelectIconSizes: Record<PaginationSelectSize, number>;
|
|
16
|
+
//# sourceMappingURL=PaginationSelect.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaginationSelect.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/PaginationSelect/PaginationSelect.utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,+BAA+B;;;;mFAwB3C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,sZAC4W,CAAC;AAEtZ,eAAO,MAAM,yBAAyB,qUAC8R,CAAC;AAErU,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAK1E,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAK1E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/PaginationSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EACV,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShimmerTable.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ShimmerTable/ShimmerTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAWhC,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;
|
|
1
|
+
{"version":3,"file":"ShimmerTable.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ShimmerTable/ShimmerTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAWhC,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAUD,4EAA4E;AAC5E,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA2C9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.parts.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Sidebar/Sidebar.parts.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0B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GZ,OAAO;WACV,IAAI,GAAG,IAAI;eACP,OAAO;2CAwCpB,CAAC;AAGH,OAAO,EACL,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,GACf,CAAC;AAEF,eAAO,MAAM,WAAW,8GAA4B,CAAC;AACrD,eAAO,MAAM,kBAAkB,wHAA+B,CAAC;AAC/D,eAAO,MAAM,kBAAkB,qHAA+B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ForwardedRef, RefCallback, RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Gives a `forwardRef` component its own readable ref to the DOM node while
|
|
4
|
+
* still honouring the ref handed down by the parent.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useForwardedRef<T extends HTMLElement>(forwardedRef: ForwardedRef<T>): [RefObject<T | null>, RefCallback<T>];
|
|
7
|
+
//# sourceMappingURL=useForwardedRef.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useForwardedRef.d.ts","sourceRoot":"","sources":["../../src/hooks/useForwardedRef.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElE;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,EACnD,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,GAC5B,CAAC,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAgBvC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the full text of the first direct-child `<span>` of `ref` that is
|
|
4
|
+
* clipped by its container (i.e. showing an ellipsis), else `null` — so callers
|
|
5
|
+
* can surface a tooltip only when the label is actually unreadable.
|
|
6
|
+
*
|
|
7
|
+
* Re-measures on element resize (sidebar expand/collapse, window resize) and on
|
|
8
|
+
* label text changes.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useTruncatedText(ref: RefObject<HTMLElement | null>): string | null;
|
|
11
|
+
//# sourceMappingURL=useTruncatedText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTruncatedText.d.ts","sourceRoot":"","sources":["../../src/hooks/useTruncatedText.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAgBvC;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GACjC,MAAM,GAAG,IAAI,CAqCf"}
|