@atom-learning/components 9.0.0-beta.2 → 9.0.0-beta.3
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/badge/Badge.d.ts +6 -1
- package/dist/components/badge/BadgeText.d.ts +5 -0
- package/dist/components/data-table/DataTable.d.ts +6 -1
- package/dist/components/data-table/DataTable.types.d.ts +2 -2
- package/dist/components/data-table/DataTable.types.js.map +1 -1
- package/dist/components/data-table/usePagination.d.ts +1 -1
- package/dist/components/data-table/usePagination.js.map +1 -1
- package/dist/components/empty-state/EmptyState.d.ts +6 -1
- package/dist/components/empty-state/EmptyStateBody.d.ts +5 -0
- package/dist/components/file-input/FileInput.d.ts +3 -2
- package/dist/components/file-input/FileInput.js +5 -1
- package/dist/components/file-input/FileInput.js.map +1 -1
- package/dist/components/input/Input.d.ts +6 -1
- package/dist/components/keyboard-shortcut/KeyboardShortcut.d.ts +6 -1
- package/dist/components/keyboard-shortcut/index.d.ts +6 -1
- package/dist/components/navigation/NavigationMenu.d.ts +6 -1
- package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +6 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +6 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.d.ts +5 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts +10 -0
- package/dist/components/segmented-control/SegmentedControlDescription.d.ts +5 -0
- package/dist/components/segmented-control/SegmentedControlHeading.d.ts +5 -0
- package/dist/components/side-bar/SideBar.d.ts +6 -1
- package/dist/components/side-bar/SideBarComponents.d.ts +6 -1
- package/dist/components/stepper/StepperStepLabel.d.ts +5 -0
- package/dist/components/top-bar/TopBar.d.ts +6 -1
- package/dist/components/top-bar/TopBarBrand.d.ts +6 -1
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js +4 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/styled.d.ts +12 -2
- package/dist/styled.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,6 +16,11 @@ export declare const Badge: (({ ref, size, overflow, ...rest }: BadgeProps) => R
|
|
|
16
16
|
Icon: (props: React.ComponentProps<typeof Icon>) => React.JSX.Element;
|
|
17
17
|
Text: ({ children, ...rest }: {
|
|
18
18
|
overflow?: "ellipsis" | "wrap" | undefined;
|
|
19
|
+
} & {
|
|
20
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
21
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
22
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
23
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
19
24
|
} & {
|
|
20
25
|
as?: never;
|
|
21
26
|
} & Omit<{
|
|
@@ -25,6 +30,6 @@ export declare const Badge: (({ ref, size, overflow, ...rest }: BadgeProps) => R
|
|
|
25
30
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
26
31
|
} & {
|
|
27
32
|
as?: never;
|
|
28
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "as" | "family" | "noCapsize" | "size" | "weight">, "as" | "overflow">) => React.JSX.Element;
|
|
33
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "as" | "family" | "noCapsize" | "size" | "weight">, "as" | "family" | "noCapsize" | "overflow" | "size" | "weight">) => React.JSX.Element;
|
|
29
34
|
};
|
|
30
35
|
export {};
|
|
@@ -6,6 +6,11 @@ declare const StyledBadgeText: import("../..").PolymorphicComponent<import("../.
|
|
|
6
6
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
7
7
|
}>, {
|
|
8
8
|
overflow?: "ellipsis" | "wrap" | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
11
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
12
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
13
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
9
14
|
}>;
|
|
10
15
|
type BadgeTextProps = React.ComponentProps<typeof StyledBadgeText>;
|
|
11
16
|
export declare const BadgeText: ({ children, ...rest }: BadgeTextProps) => React.JSX.Element;
|
|
@@ -91,6 +91,11 @@ export declare const DataTable: (({ columns, data: dataProp, getAsyncData, defau
|
|
|
91
91
|
* If you need more customisation options, you can compose your own implementation with our UI-only input components and `useDataTable`.
|
|
92
92
|
*/
|
|
93
93
|
GlobalFilter: ({ onChange, label, hideLabel, ...rest }: Omit<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<{
|
|
94
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
95
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
96
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
97
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
98
|
+
} & {
|
|
94
99
|
as?: never;
|
|
95
100
|
} & Omit<{
|
|
96
101
|
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
@@ -99,7 +104,7 @@ export declare const DataTable: (({ columns, data: dataProp, getAsyncData, defau
|
|
|
99
104
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
100
105
|
} & {
|
|
101
106
|
as?: never;
|
|
102
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "as" | "family" | "noCapsize" | "size" | "weight">, "as">, "as" | "ref" | "type"> & {
|
|
107
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "as" | "family" | "noCapsize" | "size" | "weight">, "as" | "family" | "noCapsize" | "size" | "weight">, "as" | "ref" | "type"> & {
|
|
103
108
|
type?: 'text' | 'number' | 'email' | 'password' | 'tel' | 'url' | 'search';
|
|
104
109
|
as?: never;
|
|
105
110
|
disabled?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InitialTableState, Row, RowSelectionState, SortDirection, Table } from '@tanstack/react-table';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export declare enum AsyncDataState {
|
|
4
4
|
NONE = "none",
|
|
@@ -50,7 +50,7 @@ export type DataTableContextType<T = unknown> = Table<T> & {
|
|
|
50
50
|
setData: React.Dispatch<React.SetStateAction<AsyncDataResult>>;
|
|
51
51
|
};
|
|
52
52
|
export type TableData = Array<Record<string, unknown>>;
|
|
53
|
-
export type InitialState =
|
|
53
|
+
export type InitialState = InitialTableState;
|
|
54
54
|
export type DefaultSort = {
|
|
55
55
|
column: string;
|
|
56
56
|
direction: SortDirection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.types.js","names":[],"sources":["../../../src/components/data-table/DataTable.types.ts"],"sourcesContent":["import type {\n
|
|
1
|
+
{"version":3,"file":"DataTable.types.js","names":[],"sources":["../../../src/components/data-table/DataTable.types.ts"],"sourcesContent":["import type {\n InitialTableState,\n Row,\n RowSelectionState,\n SortDirection,\n Table\n} from '@tanstack/react-table'\nimport * as React from 'react'\n\nexport enum AsyncDataState {\n NONE = 'none',\n PENDING = 'pending',\n FULFILLED = 'fulfilled',\n REJECTED = 'rejected'\n}\n\nexport type AsyncDataResult = {\n total: number\n results: TableData\n}\n\nexport type AsyncDataOptions = {\n pageIndex: number\n pageSize: number\n sortBy?: string\n sortDirection?: SortDirection\n globalFilter?: string\n}\n\nexport type GetAsyncData = (\n options: AsyncDataOptions\n) => Promise<AsyncDataResult | undefined>\n\nexport type TablePosition = {\n top: number | null\n bottom: number | null\n offsetTop: number\n isVisible: boolean\n}\n\nexport type DataTableContextType<T = unknown> = Table<T> & {\n setIsSortable: React.Dispatch<React.SetStateAction<boolean>>\n applyPagination: () => void\n getTotalRows: () => number\n isSortable: boolean\n asyncDataState?: AsyncDataState\n runAsyncData?: (options: Partial<AsyncDataOptions>) => Promise<void>\n hasAsyncData: boolean\n disabledRows?: Record<string, boolean>\n enableRowSelection?: boolean | ((row: Row<unknown>) => boolean)\n rowSelection: RowSelectionState\n tablePosition?: TablePosition\n setTablePosition: React.Dispatch<React.SetStateAction<TablePosition>>\n data: AsyncDataResult\n columns: any\n tableId: string\n /**\n * Directly update the data array that the table rows are built from.\n * This is useful when re-ordering rows, but is high-risk if you're not sure what you're doing!\n *\n * Note in particular that this value is also updated if you update the value of the `DataTable`'s `data` prop\n * — it's probably best to only use one of those two methods for any given table.\n */\n setData: React.Dispatch<React.SetStateAction<AsyncDataResult>>\n}\n\nexport type TableData = Array<Record<string, unknown>>\n\n// Use tanstack's purpose-built initial-state type rather than composing from\n// the full `*TableState` interfaces: a shallow `Partial<… & PaginationTableState>`\n// leaves `pagination` typed as the full `PaginationState` (requiring `pageIndex`),\n// whereas `InitialTableState` correctly types it as `Partial<PaginationState>` so\n// consumers can pass e.g. `{ pagination: { pageSize } }`.\nexport type InitialState = InitialTableState\n\nexport type DefaultSort = { column: string; direction: SortDirection }\n"],"mappings":";;AASA,IAAY,iBAAL,yBAAA,gBAAA;CACL,eAAA,UAAA;CACA,eAAA,aAAA;CACA,eAAA,eAAA;CACA,eAAA,cAAA;;AACF,EAAA,CAAA,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PaginationState } from '@tanstack/react-table';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export declare const usePagination: (initialPaginationState: PaginationState | undefined) => {
|
|
3
|
+
export declare const usePagination: (initialPaginationState: Partial<PaginationState> | undefined) => {
|
|
4
4
|
isPaginated: boolean;
|
|
5
5
|
paginationState: PaginationState | undefined;
|
|
6
6
|
setPaginationState: React.Dispatch<React.SetStateAction<PaginationState | undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePagination.js","names":[],"sources":["../../../src/components/data-table/usePagination.ts"],"sourcesContent":["import type { PaginationState } from '@tanstack/react-table'\nimport * as React from 'react'\n\nconst defaultPaginationState: PaginationState = { pageIndex: 0, pageSize: 10 }\nexport const usePagination = (\n initialPaginationState: PaginationState | undefined\n) => {\n const [isPaginated, setIsPaginated] = React.useState<boolean>(\n !!initialPaginationState\n )\n\n const [paginationState, setPaginationState] = React.useState<\n PaginationState | undefined\n >({\n ...defaultPaginationState,\n ...(initialPaginationState || {})\n })\n\n const applyPagination = React.useCallback(() => {\n setIsPaginated(true)\n }, [])\n\n return {\n isPaginated,\n paginationState,\n setPaginationState,\n applyPagination\n }\n}\n"],"mappings":";;AAGA,IAAM,yBAA0C;CAAE,WAAW;CAAG,UAAU;AAAG;AAC7E,IAAa,
|
|
1
|
+
{"version":3,"file":"usePagination.js","names":[],"sources":["../../../src/components/data-table/usePagination.ts"],"sourcesContent":["import type { PaginationState } from '@tanstack/react-table'\nimport * as React from 'react'\n\nconst defaultPaginationState: PaginationState = { pageIndex: 0, pageSize: 10 }\nexport const usePagination = (\n // Initial pagination may be partial (e.g. just `pageSize`); defaults below\n // fill the rest, so the working `paginationState` stays a full PaginationState.\n initialPaginationState: Partial<PaginationState> | undefined\n) => {\n const [isPaginated, setIsPaginated] = React.useState<boolean>(\n !!initialPaginationState\n )\n\n const [paginationState, setPaginationState] = React.useState<\n PaginationState | undefined\n >({\n ...defaultPaginationState,\n ...(initialPaginationState || {})\n })\n\n const applyPagination = React.useCallback(() => {\n setIsPaginated(true)\n }, [])\n\n return {\n isPaginated,\n paginationState,\n setPaginationState,\n applyPagination\n }\n}\n"],"mappings":";;AAGA,IAAM,yBAA0C;CAAE,WAAW;CAAG,UAAU;AAAG;AAC7E,IAAa,iBAGX,2BACG;CACH,MAAM,CAAC,aAAa,kBAAkB,QAAM,SAC1C,CAAC,CAAC,sBACJ;CAEA,MAAM,CAAC,iBAAiB,sBAAsB,QAAM,SAElD;EACA,GAAG;EACH,GAAI,0BAA0B,CAAC;CACjC,CAAC;CAMD,OAAO;EACL;EACA;EACA;EACA,iBARsB,QAAM,kBAAkB;GAC9C,eAAe,IAAI;EACrB,GAAG,CAAC,CAMF;CACF;AACF"}
|
|
@@ -25,6 +25,11 @@ export declare const EmptyState: {
|
|
|
25
25
|
}) => React.JSX.Element;
|
|
26
26
|
Body: (props: {
|
|
27
27
|
size?: ("lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
28
|
+
} & {
|
|
29
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
30
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
31
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
32
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
28
33
|
} & {
|
|
29
34
|
as?: never;
|
|
30
35
|
} & Omit<{
|
|
@@ -34,6 +39,6 @@ export declare const EmptyState: {
|
|
|
34
39
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
35
40
|
} & {
|
|
36
41
|
as?: never;
|
|
37
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "as" | "family" | "noCapsize" | "size" | "weight">, "as" | "size">) => React.JSX.Element;
|
|
42
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "as" | "family" | "noCapsize" | "size" | "weight">, "as" | "family" | "noCapsize" | "size" | "weight">) => React.JSX.Element;
|
|
38
43
|
};
|
|
39
44
|
export {};
|
|
@@ -6,6 +6,11 @@ declare const StyledEmptyStateBody: import("../..").PolymorphicComponent<import(
|
|
|
6
6
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
7
7
|
}>, {
|
|
8
8
|
size?: ("lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
11
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
12
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
13
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
9
14
|
}>;
|
|
10
15
|
type EmptyStateBodyProps = React.ComponentProps<typeof StyledEmptyStateBody>;
|
|
11
16
|
export declare const EmptyStateBody: (props: EmptyStateBodyProps) => React.JSX.Element;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type StyledComponentProps } from '../../styled';
|
|
3
3
|
import { Button } from '../button/Button';
|
|
4
4
|
export type FileInputProps = Omit<StyledComponentProps<typeof Button, 'label'>, 'as'> & {
|
|
5
5
|
onFileSelect: (selection: FileList | null) => void;
|
|
6
6
|
accept?: string;
|
|
7
7
|
multiple?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare function FileInput({ accept, children, multiple, onFileSelect, ...rest }: FileInputProps): React.JSX.Element;
|
|
10
|
+
export declare function FileInput({ accept, children, className, disabled, multiple, onFileSelect, ...rest }: FileInputProps): React.JSX.Element;
|
|
10
11
|
export declare namespace FileInput {
|
|
11
12
|
var displayName: string;
|
|
12
13
|
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
import { cn } from "../../styled.js";
|
|
1
2
|
import { Button } from "../button/Button.js";
|
|
2
3
|
import { Icon } from "../icon/Icon.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { Upload } from "@atom-learning/icons";
|
|
6
7
|
//#region src/components/file-input/FileInput.tsx
|
|
7
|
-
var FileInput = ({ accept, children, multiple = false, onFileSelect, ...rest }) => {
|
|
8
|
+
var FileInput = ({ accept, children, className, disabled = false, multiple = false, onFileSelect, ...rest }) => {
|
|
8
9
|
const handleFileSelect = (event) => {
|
|
9
10
|
const { files } = event.target;
|
|
10
11
|
onFileSelect(files);
|
|
11
12
|
};
|
|
12
13
|
return /* @__PURE__ */ jsxs(Button, {
|
|
13
14
|
as: "label",
|
|
15
|
+
"aria-disabled": disabled || void 0,
|
|
16
|
+
className: cn(disabled && "pointer-events-none cursor-not-allowed opacity-30", className),
|
|
14
17
|
...rest,
|
|
15
18
|
children: [
|
|
16
19
|
/* @__PURE__ */ jsx(Icon, { is: Upload }),
|
|
@@ -20,6 +23,7 @@ var FileInput = ({ accept, children, multiple = false, onFileSelect, ...rest })
|
|
|
20
23
|
onChange: handleFileSelect,
|
|
21
24
|
accept,
|
|
22
25
|
multiple,
|
|
26
|
+
disabled,
|
|
23
27
|
hidden: true
|
|
24
28
|
})
|
|
25
29
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.js","names":[],"sources":["../../../src/components/file-input/FileInput.tsx"],"sourcesContent":["import { Upload } from '@atom-learning/icons'\nimport * as React from 'react'\n\nimport type
|
|
1
|
+
{"version":3,"file":"FileInput.js","names":[],"sources":["../../../src/components/file-input/FileInput.tsx"],"sourcesContent":["import { Upload } from '@atom-learning/icons'\nimport * as React from 'react'\n\nimport { cn, type StyledComponentProps } from '../../styled'\nimport { Button } from '../button/Button'\nimport { Icon } from '../icon/Icon'\n\n// FileInput always renders the Button as a <label>, so its public props are\n// Button's own props retargeted to the label element\nexport type FileInputProps = Omit<\n StyledComponentProps<typeof Button, 'label'>,\n 'as'\n> & {\n onFileSelect: (selection: FileList | null) => void\n accept?: string\n multiple?: boolean\n disabled?: boolean\n}\n\nexport const FileInput = ({\n accept,\n children,\n className,\n disabled = false,\n multiple = false,\n onFileSelect,\n ...rest\n}: FileInputProps) => {\n const handleFileSelect = (event: React.ChangeEvent<HTMLInputElement>) => {\n const { files } = event.target\n\n onFileSelect(files)\n }\n\n // The rendered element is a <label>, which ignores the `disabled` attribute\n // and never matches `:disabled`. Disable the hidden input (so the label can't\n // open the picker) and mirror Button's disabled affordance via aria-disabled\n // + pointer-events-none/opacity so the state is visible and interaction-free.\n return (\n <Button\n as=\"label\"\n aria-disabled={disabled || undefined}\n className={cn(\n disabled && 'pointer-events-none cursor-not-allowed opacity-30',\n className\n )}\n {...rest}\n >\n <Icon is={Upload} />\n {children}\n <input\n type=\"file\"\n onChange={handleFileSelect}\n accept={accept}\n multiple={multiple}\n disabled={disabled}\n hidden\n />\n </Button>\n )\n}\n\nFileInput.displayName = 'FileInput'\n"],"mappings":";;;;;;;AAmBA,IAAa,aAAa,EACxB,QACA,UACA,WACA,WAAW,OACX,WAAW,OACX,cACA,GAAG,WACiB;CACpB,MAAM,oBAAoB,UAA+C;EACvE,MAAM,EAAE,UAAU,MAAM;EAExB,aAAa,KAAK;CACpB;CAMA,OACE,qBAAC,QAAD;EACE,IAAG;EACH,iBAAe,YAAY,KAAA;EAC3B,WAAW,GACT,YAAY,qDACZ,SACF;EACA,GAAI;YAPN;GASE,oBAAC,MAAD,EAAM,IAAI,OAAS,CAAA;GAClB;GACD,oBAAC,SAAD;IACE,MAAK;IACL,UAAU;IACF;IACE;IACA;IACV,QAAA;GACD,CAAA;EACK;;AAEZ;AAEA,UAAU,cAAc"}
|
|
@@ -11,7 +11,12 @@ declare const StyledInputText: import("../..").PolymorphicComponent<import("../.
|
|
|
11
11
|
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
12
12
|
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
13
13
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
14
|
-
}>,
|
|
14
|
+
}>, {
|
|
15
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
16
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
17
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
18
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
19
|
+
}>;
|
|
15
20
|
export type InputTextProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> & Omit<React.ComponentProps<typeof StyledInputText>, 'type' | 'as' | 'ref'> & {
|
|
16
21
|
type?: 'text' | 'number' | 'email' | 'password' | 'tel' | 'url' | 'search';
|
|
17
22
|
as?: never;
|
|
@@ -20,7 +20,12 @@ declare const StyledKeyboardShortcutIndicator: import("../..").PolymorphicCompon
|
|
|
20
20
|
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
21
21
|
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
22
22
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
23
|
-
}>,
|
|
23
|
+
}>, {
|
|
24
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
25
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
26
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
27
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
28
|
+
}>;
|
|
24
29
|
type KeyboardShortcutIndicatorProps = React.ComponentProps<typeof StyledKeyboardShortcutIndicator>;
|
|
25
30
|
export declare const KeyboardShortcutIndicator: (props: KeyboardShortcutIndicatorProps) => React.JSX.Element;
|
|
26
31
|
export {};
|
|
@@ -12,6 +12,11 @@ export declare const KeyboardShortcut: (({ ref, asChild, config, targetWindow, o
|
|
|
12
12
|
ref?: React.Ref<HTMLDivElement>;
|
|
13
13
|
}) => import("react").JSX.Element) & {
|
|
14
14
|
Indicator: (props: {
|
|
15
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
16
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
17
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
18
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
19
|
+
} & {
|
|
15
20
|
as?: never;
|
|
16
21
|
} & Omit<{
|
|
17
22
|
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
@@ -20,5 +25,5 @@ export declare const KeyboardShortcut: (({ ref, asChild, config, targetWindow, o
|
|
|
20
25
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
21
26
|
} & {
|
|
22
27
|
as?: never;
|
|
23
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "as" | "family" | "noCapsize" | "size" | "weight">, "as">) => import("react").JSX.Element;
|
|
28
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "as" | "family" | "noCapsize" | "size" | "weight">, "as" | "family" | "noCapsize" | "size" | "weight">) => import("react").JSX.Element;
|
|
24
29
|
};
|
|
@@ -35,7 +35,12 @@ export declare const NavigationMenu: {
|
|
|
35
35
|
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
36
36
|
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
37
37
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
38
|
-
}>,
|
|
38
|
+
}>, {
|
|
39
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
40
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
41
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
42
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
43
|
+
}>;
|
|
39
44
|
DropdownTrigger: ({ ref, children, active, ...rest }: React.ComponentProps<import("../..").PolymorphicComponent<React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>, {
|
|
40
45
|
active?: boolean | undefined;
|
|
41
46
|
}>>) => React.JSX.Element;
|
|
@@ -6,4 +6,9 @@ export declare const NavigationMenuDropdownItemTitle: import("../..").Polymorphi
|
|
|
6
6
|
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
7
7
|
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
8
8
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
9
|
-
}>,
|
|
9
|
+
}>, {
|
|
10
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
11
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
12
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
13
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
14
|
+
}>;
|
|
@@ -596,6 +596,11 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: Navigation
|
|
|
596
596
|
}) => React.JSX.Element, unknown>>) => React.JSX.Element;
|
|
597
597
|
Text: (props: {
|
|
598
598
|
isExpanded?: boolean | undefined;
|
|
599
|
+
} & {
|
|
600
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
601
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
602
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
603
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
599
604
|
} & {
|
|
600
605
|
as?: never;
|
|
601
606
|
} & Omit<{
|
|
@@ -605,6 +610,6 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: Navigation
|
|
|
605
610
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
606
611
|
} & {
|
|
607
612
|
as?: never;
|
|
608
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "as" | "family" | "noCapsize" | "size" | "weight">, "as" | "isExpanded">) => React.JSX.Element;
|
|
613
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "as" | "family" | "noCapsize" | "size" | "weight">, "as" | "family" | "isExpanded" | "noCapsize" | "size" | "weight">) => React.JSX.Element;
|
|
609
614
|
};
|
|
610
615
|
export {};
|
|
@@ -6,6 +6,11 @@ declare const StyledNavigationMenuVerticalText: import("../..").PolymorphicCompo
|
|
|
6
6
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
7
7
|
}>, {
|
|
8
8
|
isExpanded?: boolean | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
11
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
12
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
13
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
9
14
|
}>;
|
|
10
15
|
type StyledNavigationMenuVerticalTextProps = React.ComponentProps<typeof StyledNavigationMenuVerticalText>;
|
|
11
16
|
export declare const NavigationMenuVerticalText: (props: StyledNavigationMenuVerticalTextProps) => React.JSX.Element;
|
|
@@ -11,6 +11,11 @@ export declare const SegmentedControl: {
|
|
|
11
11
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
size?: ("lg" | "md" | "sm" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "lg" | "md" | "sm">>) | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
16
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
17
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
18
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
14
19
|
}>>, 'size'>) => import("react").JSX.Element;
|
|
15
20
|
Description: (props: Omit<React.ComponentProps<import("../..").PolymorphicComponent<import("../..").PolymorphicComponent<"p", {
|
|
16
21
|
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
@@ -19,6 +24,11 @@ export declare const SegmentedControl: {
|
|
|
19
24
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
20
25
|
}>, {
|
|
21
26
|
size?: ("lg" | "md" | "sm" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "lg" | "md" | "sm">>) | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
29
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
30
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
31
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
22
32
|
}>>, 'size'>) => import("react").JSX.Element;
|
|
23
33
|
Icon: (props: Omit<React.ComponentProps<typeof import("..").Icon>, 'size'>) => import("react").JSX.Element;
|
|
24
34
|
Content: import("../..").PolymorphicComponent<import("react").ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsContentProps & import("react").RefAttributes<HTMLDivElement>>, unknown>;
|
|
@@ -6,6 +6,11 @@ declare const StyledText: import("../..").PolymorphicComponent<import("../..").P
|
|
|
6
6
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
7
7
|
}>, {
|
|
8
8
|
size?: ("lg" | "md" | "sm" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "lg" | "md" | "sm">>) | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
11
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
12
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
13
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
9
14
|
}>;
|
|
10
15
|
export declare const SegmentedControlDescription: (props: Omit<React.ComponentProps<typeof StyledText>, 'size'>) => React.JSX.Element;
|
|
11
16
|
export {};
|
|
@@ -6,6 +6,11 @@ declare const StyledHeading: import("../..").PolymorphicComponent<import("../.."
|
|
|
6
6
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
7
7
|
}>, {
|
|
8
8
|
size?: ("lg" | "md" | "sm" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "lg" | "md" | "sm">>) | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
11
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
12
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
13
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
9
14
|
}>;
|
|
10
15
|
export declare const SegmentedControlHeading: (props: Omit<React.ComponentProps<typeof StyledHeading>, 'size'>) => React.JSX.Element;
|
|
11
16
|
export {};
|
|
@@ -27,7 +27,12 @@ export declare const SideBar: (({ theme, className, children, type, offset, styl
|
|
|
27
27
|
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
28
28
|
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
29
29
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
30
|
-
}>,
|
|
30
|
+
}>, {
|
|
31
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
32
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
33
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
34
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
35
|
+
}>;
|
|
31
36
|
Header: import("../..").PolymorphicComponent<"div", unknown>;
|
|
32
37
|
Body: import("../..").PolymorphicComponent<"div", unknown>;
|
|
33
38
|
Footer: import("../..").PolymorphicComponent<"div", unknown>;
|
|
@@ -21,4 +21,9 @@ export declare const SideBarBrandName: import("../..").PolymorphicComponent<impo
|
|
|
21
21
|
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
22
22
|
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
23
23
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
24
|
-
}>,
|
|
24
|
+
}>, {
|
|
25
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
26
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
27
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
28
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
29
|
+
}>;
|
|
@@ -6,4 +6,9 @@ export declare const StepperStepLabel: import("../..").PolymorphicComponent<impo
|
|
|
6
6
|
}>, {
|
|
7
7
|
direction?: "horizontal" | "vertical" | undefined;
|
|
8
8
|
status?: "active" | "completed" | "default" | "reviewed" | "success" | "viewed" | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
11
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
12
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
13
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
9
14
|
}>;
|
|
@@ -21,7 +21,12 @@ export declare const TopBar: {
|
|
|
21
21
|
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
22
22
|
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
23
23
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
24
|
-
}>,
|
|
24
|
+
}>, {
|
|
25
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
26
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
27
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
28
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
29
|
+
}>;
|
|
25
30
|
ActionIcon: ({ ref, icon, ...rest }: Omit<Omit<{
|
|
26
31
|
theme?: ("danger" | "neutral" | "primary" | "primaryDark" | "success" | "warning" | "white" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "danger" | "neutral" | "primary" | "primaryDark" | "success" | "warning" | "white">>) | undefined;
|
|
27
32
|
appearance?: ("outline" | "simple" | "solid" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "outline" | "simple" | "solid">>) | undefined;
|
|
@@ -8,5 +8,10 @@ export declare const TopBarBrandName: import("../..").PolymorphicComponent<impor
|
|
|
8
8
|
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
9
9
|
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
10
10
|
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
11
|
-
}>,
|
|
11
|
+
}>, {
|
|
12
|
+
size?: ("2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "2xl" | "3xl" | "4xl" | "lg" | "md" | "sm" | "xl" | "xs">>) | undefined;
|
|
13
|
+
noCapsize?: (boolean | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", boolean>>) | undefined;
|
|
14
|
+
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "bold" | "normal">>) | undefined;
|
|
15
|
+
family?: ("body" | "display" | "mono" | Partial<Record<"@initial" | "@lg" | "@md" | "@sm" | "@xl", "body" | "display" | "mono">>) | undefined;
|
|
16
|
+
}>;
|
|
12
17
|
export declare const TopBarBrand: import("../..").PolymorphicComponent<"a", unknown>;
|