@tailor-platform/app-shell 0.22.0 → 0.23.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.
- package/dist/app-shell.css +1 -1
- package/dist/app-shell.js +737 -570
- package/dist/index.d.ts +66 -0
- package/package.json +1 -3
package/dist/index.d.ts
CHANGED
|
@@ -258,6 +258,21 @@ export declare const badgeVariants: (props?: ({
|
|
|
258
258
|
*/
|
|
259
259
|
declare type BadgeVariantType = "default" | "success" | "warning" | "error" | "neutral" | "outline-success" | "outline-warning" | "outline-error" | "outline-info" | "outline-neutral";
|
|
260
260
|
|
|
261
|
+
/**
|
|
262
|
+
* Supported column count options
|
|
263
|
+
*/
|
|
264
|
+
declare type ColumnCount = 1 | 2 | 3;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Props for individual Layout.Column component
|
|
268
|
+
*/
|
|
269
|
+
declare interface ColumnProps {
|
|
270
|
+
/** Additional CSS classes */
|
|
271
|
+
className?: string;
|
|
272
|
+
/** Child content */
|
|
273
|
+
children?: ReactNode;
|
|
274
|
+
}
|
|
275
|
+
|
|
261
276
|
/**
|
|
262
277
|
* Column layout options for the card
|
|
263
278
|
*/
|
|
@@ -658,6 +673,57 @@ declare type LabelDefinition<Def extends Record<string, LabelValue>> = {
|
|
|
658
673
|
*/
|
|
659
674
|
declare type LabelValue = string | ((props: any) => string);
|
|
660
675
|
|
|
676
|
+
/**
|
|
677
|
+
* Layout - Responsive column layout component
|
|
678
|
+
*
|
|
679
|
+
* Automatically handles responsive behavior for 1, 2, or 3 column layouts.
|
|
680
|
+
* Uses flexbox with viewport breakpoints for simple, CSS-only responsive behavior.
|
|
681
|
+
*
|
|
682
|
+
* @example
|
|
683
|
+
* ```tsx
|
|
684
|
+
* // Basic layout
|
|
685
|
+
* <Layout columns={2}>
|
|
686
|
+
* <Layout.Column>Main content</Layout.Column>
|
|
687
|
+
* <Layout.Column>Side panel</Layout.Column>
|
|
688
|
+
* </Layout>
|
|
689
|
+
*
|
|
690
|
+
* // With header and actions
|
|
691
|
+
* <Layout columns={2} title="Page Title" actions={[<Button key="save">Save</Button>]}>
|
|
692
|
+
* <Layout.Column>...</Layout.Column>
|
|
693
|
+
* <Layout.Column>...</Layout.Column>
|
|
694
|
+
* </Layout>
|
|
695
|
+
* ```
|
|
696
|
+
*/
|
|
697
|
+
export declare function Layout({ columns, className, gap, title, actions, children, }: LayoutProps): JSX.Element;
|
|
698
|
+
|
|
699
|
+
export declare namespace Layout {
|
|
700
|
+
var Column: React_2.ForwardRefExoticComponent<ColumnProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Props for the Layout component
|
|
705
|
+
*/
|
|
706
|
+
export declare interface LayoutProps {
|
|
707
|
+
/**
|
|
708
|
+
* Number of columns (1, 2, or 3).
|
|
709
|
+
*
|
|
710
|
+
* **Required.** Must match the exact number of `Layout.Column` children.
|
|
711
|
+
* The component will throw an error in development if there's a mismatch.
|
|
712
|
+
*/
|
|
713
|
+
columns: ColumnCount;
|
|
714
|
+
/** Additional CSS classes */
|
|
715
|
+
className?: string;
|
|
716
|
+
/** Gap between columns (default: 4 = 16px) */
|
|
717
|
+
gap?: number;
|
|
718
|
+
/** Header title - displayed at the top of the layout */
|
|
719
|
+
title?: string;
|
|
720
|
+
/** Header actions - array of action components (e.g., buttons) displayed on the right side of the header.
|
|
721
|
+
* Layout and spacing are handled automatically. */
|
|
722
|
+
actions?: ReactNode[];
|
|
723
|
+
/** Child elements - must be exactly `columns` number of Layout.Column components */
|
|
724
|
+
children: ReactNode;
|
|
725
|
+
}
|
|
726
|
+
|
|
661
727
|
export { Link }
|
|
662
728
|
|
|
663
729
|
declare type LoaderHandler = (args: LoaderFunctionArgs) => Promise<unknown> | unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/app-shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./styles": "./dist/app-shell.css",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"react-dom": ">= 19"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@badgateway/oauth2-client": "^3.3.0",
|
|
22
21
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
23
22
|
"@radix-ui/react-collapsible": "^1.1.12",
|
|
24
23
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
@@ -26,7 +25,6 @@
|
|
|
26
25
|
"@radix-ui/react-label": "^2.1.8",
|
|
27
26
|
"@radix-ui/react-navigation-menu": "^1.2.14",
|
|
28
27
|
"@radix-ui/react-popover": "^1.1.15",
|
|
29
|
-
"@radix-ui/react-select": "^2.1.6",
|
|
30
28
|
"@radix-ui/react-separator": "^1.1.8",
|
|
31
29
|
"@radix-ui/react-slot": "^1.2.4",
|
|
32
30
|
"@radix-ui/react-tooltip": "^1.2.8",
|