@tailor-platform/app-shell 1.3.0 → 1.4.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.
@@ -47,6 +47,8 @@ declare interface ActionItem {
47
47
  disabled?: boolean;
48
48
  /** When true, show loading indicator in the row and make it non-interactive */
49
49
  loading?: boolean;
50
+ /** Visual variant. Use "destructive" for dangerous actions like delete. */
51
+ variant?: "default" | "destructive";
50
52
  }
51
53
 
52
54
  /**
@@ -96,7 +98,7 @@ export declare interface ActionPanelProps {
96
98
  }
97
99
 
98
100
  export declare const ActivityCard: typeof ActivityCardStandalone & {
99
- Root: typeof Root;
101
+ Root: typeof Root_2;
100
102
  Items: typeof Items;
101
103
  Item: typeof Item;
102
104
  };
@@ -186,6 +188,18 @@ export declare interface ActivityCardRootProps<T extends ActivityCardBaseItem> {
186
188
  */
187
189
  declare function ActivityCardStandalone({ items, title, maxVisible, overflowLabel, groupBy, className, }: ActivityCardProps): JSX.Element;
188
190
 
191
+ export declare const Alert: {
192
+ Root: typeof Root;
193
+ Title: typeof Title;
194
+ Description: typeof Description;
195
+ };
196
+
197
+ export declare type AlertProps = RootProps;
198
+
199
+ export declare const alertVariants: (props?: ({
200
+ variant?: "error" | "neutral" | "success" | "warning" | "info" | null | undefined;
201
+ } & ClassProp) | undefined) => string;
202
+
189
203
  export declare const AppShell: {
190
204
  (props: AppShellProps): JSX.Element | null;
191
205
  WithPages(pages: PageEntry[]): FC<AppShellProps>;
@@ -710,7 +724,7 @@ declare namespace AutocompleteValue {
710
724
  }
711
725
 
712
726
  export declare const Avatar: {
713
- Root: typeof Root_2;
727
+ Root: typeof Root_3;
714
728
  Image: typeof Image_2;
715
729
  Fallback: typeof Fallback;
716
730
  };
@@ -757,7 +771,7 @@ export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElemen
757
771
  export declare type BadgeVariant = NonNullable<BadgeProps["variant"]>;
758
772
 
759
773
  export declare const badgeVariants: (props?: ({
760
- variant?: "default" | "error" | "success" | "warning" | "neutral" | "subtle-success" | "subtle-warning" | "subtle-error" | "outline-success" | "outline-warning" | "outline-error" | "outline-info" | "outline-neutral" | null | undefined;
774
+ variant?: "default" | "error" | "neutral" | "success" | "warning" | "info" | "subtle-success" | "subtle-warning" | "subtle-error" | "subtle-info" | "outline-success" | "outline-warning" | "outline-error" | "outline-info" | "outline-neutral" | null | undefined;
761
775
  } & ClassProp) | undefined) => string;
762
776
 
763
777
  /** The table body section (`<tbody>`). */
@@ -815,7 +829,7 @@ declare namespace Caption {
815
829
  }
816
830
 
817
831
  export declare const Card: {
818
- Root: typeof Root_4;
832
+ Root: typeof Root_5;
819
833
  Header: typeof Header_3;
820
834
  Content: typeof Content;
821
835
  };
@@ -1501,7 +1515,7 @@ declare namespace Content_3 {
1501
1515
  }
1502
1516
 
1503
1517
  /** The main sheet panel. The `side` is inherited from `Sheet.Root` via context. */
1504
- declare function Content_4({ className, children, ...props }: React_2.ComponentProps<typeof Drawer.Popup>): JSX.Element;
1518
+ declare function Content_4({ className, children, size, ...props }: SheetContentProps): JSX.Element;
1505
1519
 
1506
1520
  declare namespace Content_4 {
1507
1521
  var displayName: string;
@@ -2231,29 +2245,35 @@ declare type DefineResourceProps = CommonProps & ErrorBoundaryProps & {
2231
2245
  subResources?: Array<Resource>;
2232
2246
  };
2233
2247
 
2234
- /** A description that provides additional context for the dialog. */
2235
- declare function Description({ className, ...props }: React_2.ComponentProps<typeof Dialog_2.Description>): JSX.Element;
2248
+ declare function Description({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
2236
2249
 
2237
2250
  declare namespace Description {
2238
2251
  var displayName: string;
2239
2252
  }
2240
2253
 
2254
+ /** A description that provides additional context for the dialog. */
2255
+ declare function Description_2({ className, ...props }: React_2.ComponentProps<typeof Dialog_2.Description>): JSX.Element;
2256
+
2257
+ declare namespace Description_2 {
2258
+ var displayName: string;
2259
+ }
2260
+
2241
2261
  /**
2242
2262
  * A paragraph with additional information about the field.
2243
2263
  *
2244
2264
  * Its ID is registered with the Field context so that the control
2245
2265
  * automatically receives a matching `aria-describedby` attribute.
2246
2266
  */
2247
- declare function Description_2({ className, ...props }: React_2.ComponentProps<typeof Field_2.Description>): JSX.Element;
2267
+ declare function Description_3({ className, ...props }: React_2.ComponentProps<typeof Field_2.Description>): JSX.Element;
2248
2268
 
2249
- declare namespace Description_2 {
2269
+ declare namespace Description_3 {
2250
2270
  var displayName: string;
2251
2271
  }
2252
2272
 
2253
2273
  /** A description that provides additional context for the sheet. */
2254
- declare function Description_3({ className, ...props }: React_2.ComponentProps<typeof Drawer.Description>): JSX.Element;
2274
+ declare function Description_4({ className, ...props }: React_2.ComponentProps<typeof Drawer.Description>): JSX.Element;
2255
2275
 
2256
- declare namespace Description_3 {
2276
+ declare namespace Description_4 {
2257
2277
  var displayName: string;
2258
2278
  }
2259
2279
 
@@ -2300,13 +2320,13 @@ export declare interface DescriptionCardProps {
2300
2320
  }
2301
2321
 
2302
2322
  export declare const Dialog: {
2303
- Root: typeof Root_5;
2323
+ Root: typeof Root_6;
2304
2324
  Close: typeof Close;
2305
2325
  Content: typeof Content_2;
2306
- Description: typeof Description;
2326
+ Description: typeof Description_2;
2307
2327
  Footer: typeof Footer_2;
2308
2328
  Header: typeof Header_4;
2309
- Title: typeof Title;
2329
+ Title: typeof Title_2;
2310
2330
  Trigger: typeof Trigger;
2311
2331
  };
2312
2332
 
@@ -2469,10 +2489,10 @@ declare namespace Fallback {
2469
2489
  }
2470
2490
 
2471
2491
  export declare const Field: {
2472
- Root: typeof Root_6;
2492
+ Root: typeof Root_7;
2473
2493
  Label: typeof Label;
2474
2494
  Control: typeof Control;
2475
- Description: typeof Description_2;
2495
+ Description: typeof Description_3;
2476
2496
  Error: typeof Error_2;
2477
2497
  Validity: typeof Validity;
2478
2498
  };
@@ -2576,7 +2596,7 @@ declare type FieldRootProps = Pick<React_2.ComponentProps<typeof Field_2.Root>,
2576
2596
  };
2577
2597
 
2578
2598
  export declare const Fieldset: {
2579
- Root: typeof Root_7;
2599
+ Root: typeof Root_8;
2580
2600
  Legend: typeof Legend;
2581
2601
  };
2582
2602
 
@@ -2934,8 +2954,8 @@ declare namespace Header_4 {
2934
2954
  var displayName: string;
2935
2955
  }
2936
2956
 
2937
- /** A layout wrapper for the sheet title and description. */
2938
- declare function Header_5({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
2957
+ /** A layout wrapper for the sheet title, close button, and optional action buttons. */
2958
+ declare function Header_5({ className, action, children, ...props }: SheetHeaderProps): JSX.Element;
2939
2959
 
2940
2960
  declare namespace Header_5 {
2941
2961
  var displayName: string;
@@ -3214,7 +3234,7 @@ export declare interface MappedItem {
3214
3234
  }
3215
3235
 
3216
3236
  export declare const Menu: {
3217
- Root: typeof Root_8;
3237
+ Root: typeof Root_9;
3218
3238
  Trigger: typeof Trigger_2;
3219
3239
  Content: typeof Content_3;
3220
3240
  Item: typeof Item_2;
@@ -3576,12 +3596,38 @@ declare type ResourceMeta = {
3576
3596
  breadcrumbTitle?: string | ((segment: string) => string);
3577
3597
  };
3578
3598
 
3579
- declare function Root<T extends ActivityCardBaseItem>({ items, title, maxVisible, overflowLabel, groupBy, className, children, }: ActivityCardRootProps<T>): JSX.Element;
3599
+ declare function Root({ className, variant, action, dismissible, onDismiss, children, ...props }: RootProps): JSX.Element | null;
3580
3600
 
3581
3601
  declare namespace Root {
3582
3602
  var displayName: string;
3583
3603
  }
3584
3604
 
3605
+ /**
3606
+ * The root component that manages sheet open/close state.
3607
+ * The `side` prop controls which edge of the screen the sheet slides in from.
3608
+ *
3609
+ * @example
3610
+ * ```tsx
3611
+ * <Sheet.Root side="right">
3612
+ * <Sheet.Trigger render={<Button />}>Open</Sheet.Trigger>
3613
+ * <Sheet.Content>
3614
+ * <Sheet.Header>
3615
+ * <Sheet.Title>Settings</Sheet.Title>
3616
+ * <Sheet.Description>Manage your preferences.</Sheet.Description>
3617
+ * </Sheet.Header>
3618
+ * <Sheet.Footer>
3619
+ * <Button>Save</Button>
3620
+ * </Sheet.Footer>
3621
+ * </Sheet.Content>
3622
+ * </Sheet.Root>
3623
+ * ```
3624
+ */
3625
+ declare function Root_10({ side, ...props }: SheetRootProps): JSX.Element;
3626
+
3627
+ declare namespace Root_10 {
3628
+ var displayName: string;
3629
+ }
3630
+
3585
3631
  /**
3586
3632
  * The root component that manages tab selection state.
3587
3633
  *
@@ -3599,9 +3645,9 @@ declare namespace Root {
3599
3645
  * </Tabs.Root>
3600
3646
  * ```
3601
3647
  */
3602
- declare function Root_10({ className, children, variant, ...props }: RootProps_2): JSX.Element;
3648
+ declare function Root_11({ className, children, variant, ...props }: RootProps_3): JSX.Element;
3603
3649
 
3604
- declare namespace Root_10 {
3650
+ declare namespace Root_11 {
3605
3651
  var displayName: string;
3606
3652
  }
3607
3653
 
@@ -3618,9 +3664,15 @@ declare namespace Root_10 {
3618
3664
  * </Tooltip.Root>
3619
3665
  * ```
3620
3666
  */
3621
- declare function Root_11({ children, ...props }: TooltipRootProps): JSX.Element;
3667
+ declare function Root_12({ children, ...props }: TooltipRootProps): JSX.Element;
3622
3668
 
3623
- declare namespace Root_11 {
3669
+ declare namespace Root_12 {
3670
+ var displayName: string;
3671
+ }
3672
+
3673
+ declare function Root_2<T extends ActivityCardBaseItem>({ items, title, maxVisible, overflowLabel, groupBy, className, children, }: ActivityCardRootProps<T>): JSX.Element;
3674
+
3675
+ declare namespace Root_2 {
3624
3676
  var displayName: string;
3625
3677
  }
3626
3678
 
@@ -3637,9 +3689,9 @@ declare namespace Root_11 {
3637
3689
  * </Avatar.Root>
3638
3690
  * ```
3639
3691
  */
3640
- declare function Root_2({ className, size, ...props }: AvatarProps): JSX.Element;
3692
+ declare function Root_3({ className, size, ...props }: AvatarProps): JSX.Element;
3641
3693
 
3642
- declare namespace Root_2 {
3694
+ declare namespace Root_3 {
3643
3695
  var displayName: string;
3644
3696
  }
3645
3697
 
@@ -3666,15 +3718,15 @@ declare namespace Root_2 {
3666
3718
  * </Table.Root>
3667
3719
  * ```
3668
3720
  */
3669
- declare function Root_3({ className, containerClassName, ...props }: RootProps): JSX.Element;
3721
+ declare function Root_4({ className, containerClassName, ...props }: RootProps_2): JSX.Element;
3670
3722
 
3671
- declare namespace Root_3 {
3723
+ declare namespace Root_4 {
3672
3724
  var displayName: string;
3673
3725
  }
3674
3726
 
3675
- declare function Root_4({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
3727
+ declare function Root_5({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
3676
3728
 
3677
- declare namespace Root_4 {
3729
+ declare namespace Root_5 {
3678
3730
  var displayName: string;
3679
3731
  }
3680
3732
 
@@ -3698,9 +3750,9 @@ declare namespace Root_4 {
3698
3750
  * </Dialog.Root>
3699
3751
  * ```
3700
3752
  */
3701
- declare function Root_5({ ...props }: DialogRootProps): JSX.Element;
3753
+ declare function Root_6({ ...props }: DialogRootProps): JSX.Element;
3702
3754
 
3703
- declare namespace Root_5 {
3755
+ declare namespace Root_6 {
3704
3756
  var displayName: string;
3705
3757
  }
3706
3758
 
@@ -3751,17 +3803,17 @@ declare namespace Root_5 {
3751
3803
  * > error routing, add `name={field.name}` to `Field.Root` so errors can be
3752
3804
  * > matched by field name.
3753
3805
  */
3754
- declare function Root_6({ className, children, isTouched, isDirty, invalid, error, isValidating: _isValidating, ...props }: FieldRootProps & {
3806
+ declare function Root_7({ className, children, isTouched, isDirty, invalid, error, isValidating: _isValidating, ...props }: FieldRootProps & {
3755
3807
  isValidating?: unknown;
3756
3808
  }): JSX.Element;
3757
3809
 
3758
- declare namespace Root_6 {
3810
+ declare namespace Root_7 {
3759
3811
  var displayName: string;
3760
3812
  }
3761
3813
 
3762
- declare function Root_7({ className, ...props }: FieldsetRootProps): JSX.Element;
3814
+ declare function Root_8({ className, ...props }: FieldsetRootProps): JSX.Element;
3763
3815
 
3764
- declare namespace Root_7 {
3816
+ declare namespace Root_8 {
3765
3817
  var displayName: string;
3766
3818
  }
3767
3819
 
@@ -3781,33 +3833,7 @@ declare namespace Root_7 {
3781
3833
  * </Menu.Root>
3782
3834
  * ```
3783
3835
  */
3784
- declare function Root_8({ children, ...props }: MenuRootProps): JSX.Element;
3785
-
3786
- declare namespace Root_8 {
3787
- var displayName: string;
3788
- }
3789
-
3790
- /**
3791
- * The root component that manages sheet open/close state.
3792
- * The `side` prop controls which edge of the screen the sheet slides in from.
3793
- *
3794
- * @example
3795
- * ```tsx
3796
- * <Sheet.Root side="right">
3797
- * <Sheet.Trigger render={<Button />}>Open</Sheet.Trigger>
3798
- * <Sheet.Content>
3799
- * <Sheet.Header>
3800
- * <Sheet.Title>Settings</Sheet.Title>
3801
- * <Sheet.Description>Manage your preferences.</Sheet.Description>
3802
- * </Sheet.Header>
3803
- * <Sheet.Footer>
3804
- * <Button>Save</Button>
3805
- * </Sheet.Footer>
3806
- * </Sheet.Content>
3807
- * </Sheet.Root>
3808
- * ```
3809
- */
3810
- declare function Root_9({ side, ...props }: SheetRootProps): JSX.Element;
3836
+ declare function Root_9({ children, ...props }: MenuRootProps): JSX.Element;
3811
3837
 
3812
3838
  declare namespace Root_9 {
3813
3839
  var displayName: string;
@@ -3821,12 +3847,18 @@ declare type RootConfiguration = {
3821
3847
  locale: string;
3822
3848
  };
3823
3849
 
3824
- declare type RootProps = React_2.ComponentProps<"table"> & {
3850
+ declare type RootProps = React_2.ComponentProps<"div"> & VariantProps<typeof alertVariants> & {
3851
+ action?: React_2.ReactNode;
3852
+ dismissible?: boolean;
3853
+ onDismiss?: () => void;
3854
+ };
3855
+
3856
+ declare type RootProps_2 = React_2.ComponentProps<"table"> & {
3825
3857
  /** Additional CSS classes for the outer scrollable `<div>` container. Use this to control height, overflow, or container-level layout. */
3826
3858
  containerClassName?: string;
3827
3859
  };
3828
3860
 
3829
- declare type RootProps_2 = Pick<React_2.ComponentProps<typeof Tabs_2.Root>, "defaultValue" | "value" | "onValueChange"> & {
3861
+ declare type RootProps_3 = Pick<React_2.ComponentProps<typeof Tabs_2.Root>, "defaultValue" | "value" | "onValueChange"> & {
3830
3862
  children: React_2.ReactNode;
3831
3863
  className?: string;
3832
3864
  variant?: TabsVariant;
@@ -4216,14 +4248,25 @@ declare type SharedAppShellProps = React.PropsWithChildren<{
4216
4248
  }>;
4217
4249
 
4218
4250
  export declare const Sheet: {
4219
- Root: typeof Root_9;
4251
+ Root: typeof Root_10;
4220
4252
  Trigger: typeof Trigger_3;
4221
4253
  Close: typeof Close_2;
4222
4254
  Content: typeof Content_4;
4223
4255
  Header: typeof Header_5;
4224
4256
  Footer: typeof Footer_3;
4225
- Title: typeof Title_2;
4226
- Description: typeof Description_3;
4257
+ Title: typeof Title_3;
4258
+ Description: typeof Description_4;
4259
+ };
4260
+
4261
+ declare type SheetContentProps = React_2.ComponentProps<typeof Drawer.Popup> & {
4262
+ /** Controls the max-width of the sheet panel (`sm` | `md` | `lg` | `xl` | `full`). Applies to left/right sides. @default "sm" */
4263
+ size?: Size;
4264
+ };
4265
+
4266
+ declare type SheetHeaderProps = Omit<React_2.ComponentProps<"div">, "children"> & {
4267
+ /** Action buttons displayed to the right of the title. */
4268
+ action?: React_2.ReactNode;
4269
+ children?: React_2.ReactNode;
4227
4270
  };
4228
4271
 
4229
4272
  declare type SheetRootProps = Pick<React_2.ComponentProps<typeof Drawer.Root>, "open" | "defaultOpen" | "onOpenChange" | "modal"> & {
@@ -4427,6 +4470,8 @@ export declare type SidebarLayoutProps = {
4427
4470
  */
4428
4471
  export declare const SidebarSeparator: () => JSX.Element;
4429
4472
 
4473
+ declare type Size = "sm" | "md" | "lg" | "xl" | "full";
4474
+
4430
4475
  /**
4431
4476
  * Sort configuration for a column.
4432
4477
  * The `type` determines how values are compared when sorting.
@@ -4480,7 +4525,7 @@ declare namespace Tab {
4480
4525
  }
4481
4526
 
4482
4527
  export declare const Table: {
4483
- Root: typeof Root_3;
4528
+ Root: typeof Root_4;
4484
4529
  Header: typeof Header_2;
4485
4530
  Body: typeof Body_2;
4486
4531
  Footer: typeof Footer;
@@ -4543,7 +4588,7 @@ export declare type TableOrderableFieldName<TTable extends TableMetadata> = Extr
4543
4588
  } ? N extends string ? N : never : never;
4544
4589
 
4545
4590
  export declare const Tabs: {
4546
- Root: typeof Root_10;
4591
+ Root: typeof Root_11;
4547
4592
  List: typeof List;
4548
4593
  Tab: typeof Tab;
4549
4594
  Panel: typeof Panel;
@@ -4559,22 +4604,28 @@ declare type ThemeProviderState = {
4559
4604
  setTheme: (theme: Theme) => void;
4560
4605
  };
4561
4606
 
4562
- /** The title of the dialog, announced by screen readers. */
4563
- declare function Title({ className, ...props }: React_2.ComponentProps<typeof Dialog_2.Title>): JSX.Element;
4607
+ declare function Title({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
4564
4608
 
4565
4609
  declare namespace Title {
4566
4610
  var displayName: string;
4567
4611
  }
4568
4612
 
4569
- /** The title of the sheet, announced by screen readers. */
4570
- declare function Title_2({ className, ...props }: React_2.ComponentProps<typeof Drawer.Title>): JSX.Element;
4613
+ /** The title of the dialog, announced by screen readers. */
4614
+ declare function Title_2({ className, ...props }: React_2.ComponentProps<typeof Dialog_2.Title>): JSX.Element;
4571
4615
 
4572
4616
  declare namespace Title_2 {
4573
4617
  var displayName: string;
4574
4618
  }
4575
4619
 
4620
+ /** The title of the sheet, announced by screen readers. */
4621
+ declare function Title_3({ className, ...props }: React_2.ComponentProps<typeof Drawer.Title>): JSX.Element;
4622
+
4623
+ declare namespace Title_3 {
4624
+ var displayName: string;
4625
+ }
4626
+
4576
4627
  export declare const Tooltip: {
4577
- Root: typeof Root_11;
4628
+ Root: typeof Root_12;
4578
4629
  Trigger: typeof Trigger_4;
4579
4630
  Content: typeof Content_5;
4580
4631
  Provider: typeof Provider;