@saas-ui/react 3.0.0-next.14 → 3.0.0-next.15

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,7 +1,7 @@
1
1
  'use client'
2
2
  import {
3
3
  ToggleTip
4
- } from "./chunk-OWFY465Z.js";
4
+ } from "./chunk-QITSWCWX.js";
5
5
  import {
6
6
  IconButton
7
7
  } from "./chunk-OJZPPAT6.js";
@@ -5350,9 +5350,109 @@ var numberInputSlotRecipe = defineSlotRecipe27({
5350
5350
  }
5351
5351
  });
5352
5352
 
5353
+ // src/components/page/page.recipe.ts
5354
+ import { defineSlotRecipe as defineSlotRecipe28 } from "@chakra-ui/react/styled-system";
5355
+ var slots = [
5356
+ "root",
5357
+ "header",
5358
+ "headerContent",
5359
+ "heading",
5360
+ "headerFooter",
5361
+ "title",
5362
+ "description",
5363
+ "body"
5364
+ ];
5365
+ var pageSlotRecipe = defineSlotRecipe28({
5366
+ className: "sui-page",
5367
+ slots,
5368
+ base: {
5369
+ root: {
5370
+ display: "flex",
5371
+ flexDirection: "column",
5372
+ flex: 1,
5373
+ minH: 0
5374
+ },
5375
+ title: {
5376
+ fontWeight: "medium",
5377
+ fontSize: "sm"
5378
+ },
5379
+ description: {
5380
+ color: "fg.muted",
5381
+ fontSize: "xs"
5382
+ },
5383
+ body: {
5384
+ flex: 1,
5385
+ overflowY: "auto",
5386
+ p: 4
5387
+ }
5388
+ },
5389
+ variants: {
5390
+ variant: {
5391
+ panel: {
5392
+ root: {
5393
+ "--page-bg-color": "colors.bg.muted",
5394
+ bg: "color-mix(in srgb, var(--page-bg-color) 50%, white)",
5395
+ zIndex: 1
5396
+ },
5397
+ header: {
5398
+ "--page-header-row-height": "40px",
5399
+ display: "grid",
5400
+ gridTemplateAreas: `"nav heading actions"
5401
+ "footer footer footer"`,
5402
+ gridTemplateColumns: "auto max-content 1fr",
5403
+ gridTemplateRows: "minmax(var(--page-header-row-height), auto)",
5404
+ columnGap: 2,
5405
+ alignItems: "center",
5406
+ justifyContent: "stretch",
5407
+ flexShrink: 0,
5408
+ px: 3,
5409
+ borderBottomWidth: "1px"
5410
+ },
5411
+ title: {
5412
+ me: 4
5413
+ }
5414
+ },
5415
+ settings: {
5416
+ root: {
5417
+ overflowY: "auto",
5418
+ px: 4
5419
+ },
5420
+ header: {
5421
+ flexDirection: "row",
5422
+ alignItems: "center",
5423
+ mb: {
5424
+ base: 4,
5425
+ lg: 8
5426
+ },
5427
+ minH: 24
5428
+ },
5429
+ heading: {
5430
+ py: {
5431
+ base: 4,
5432
+ lg: 8
5433
+ }
5434
+ },
5435
+ title: {
5436
+ textStyle: "2xl"
5437
+ },
5438
+ description: {
5439
+ textStyle: "md"
5440
+ },
5441
+ body: {
5442
+ overflow: "visible",
5443
+ p: 0
5444
+ }
5445
+ }
5446
+ }
5447
+ },
5448
+ defaultVariants: {
5449
+ variant: "panel"
5450
+ }
5451
+ });
5452
+
5353
5453
  // src/components/persona/persona.recipe.ts
5354
5454
  import {
5355
- defineSlotRecipe as defineSlotRecipe28,
5455
+ defineSlotRecipe as defineSlotRecipe29,
5356
5456
  defineStyle as defineStyle3
5357
5457
  } from "@chakra-ui/react/styled-system";
5358
5458
  var baseStyleLabel = defineStyle3({
@@ -5362,7 +5462,7 @@ var baseStyleLabel = defineStyle3({
5362
5462
  minW: 0,
5363
5463
  color: "fg"
5364
5464
  });
5365
- var personaSlotRecipe = defineSlotRecipe28({
5465
+ var personaSlotRecipe = defineSlotRecipe29({
5366
5466
  className: "sui-persona",
5367
5467
  slots: [
5368
5468
  "root",
@@ -5463,9 +5563,9 @@ var personaSlotRecipe = defineSlotRecipe28({
5463
5563
 
5464
5564
  // src/components/pin-input/pin-input.recipe.ts
5465
5565
  import { pinInputAnatomy } from "@chakra-ui/react/anatomy";
5466
- import { defineSlotRecipe as defineSlotRecipe29 } from "@chakra-ui/react/styled-system";
5566
+ import { defineSlotRecipe as defineSlotRecipe30 } from "@chakra-ui/react/styled-system";
5467
5567
  var { variants: variants2, defaultVariants: defaultVariants2 } = inputRecipe;
5468
- var pinInputSlotRecipe = defineSlotRecipe29({
5568
+ var pinInputSlotRecipe = defineSlotRecipe30({
5469
5569
  className: "chakra-pin-input",
5470
5570
  slots: pinInputAnatomy.keys(),
5471
5571
  base: {
@@ -5495,8 +5595,8 @@ var pinInputSlotRecipe = defineSlotRecipe29({
5495
5595
 
5496
5596
  // src/components/popover/popover.recipe.ts
5497
5597
  import { popoverAnatomy } from "@chakra-ui/react/anatomy";
5498
- import { defineSlotRecipe as defineSlotRecipe30 } from "@chakra-ui/react/styled-system";
5499
- var popoverSlotRecipe = defineSlotRecipe30({
5598
+ import { defineSlotRecipe as defineSlotRecipe31 } from "@chakra-ui/react/styled-system";
5599
+ var popoverSlotRecipe = defineSlotRecipe31({
5500
5600
  className: "chakra-popover",
5501
5601
  slots: popoverAnatomy.keys(),
5502
5602
  base: {
@@ -5582,8 +5682,8 @@ var popoverSlotRecipe = defineSlotRecipe30({
5582
5682
 
5583
5683
  // src/components/progress-circle/progress-circle.recipe.ts
5584
5684
  import { progressAnatomy } from "@chakra-ui/react/anatomy";
5585
- import { defineSlotRecipe as defineSlotRecipe31 } from "@chakra-ui/react/styled-system";
5586
- var progressCircleSlotRecipe = defineSlotRecipe31({
5685
+ import { defineSlotRecipe as defineSlotRecipe32 } from "@chakra-ui/react/styled-system";
5686
+ var progressCircleSlotRecipe = defineSlotRecipe32({
5587
5687
  className: "chakra-progress-circle",
5588
5688
  slots: progressAnatomy.keys(),
5589
5689
  base: {
@@ -5675,8 +5775,8 @@ var progressCircleSlotRecipe = defineSlotRecipe31({
5675
5775
 
5676
5776
  // src/components/progress/progress.recipe.ts
5677
5777
  import { progressAnatomy as progressAnatomy2 } from "@chakra-ui/react/anatomy";
5678
- import { defineSlotRecipe as defineSlotRecipe32 } from "@chakra-ui/react/styled-system";
5679
- var progressSlotRecipe = defineSlotRecipe32({
5778
+ import { defineSlotRecipe as defineSlotRecipe33 } from "@chakra-ui/react/styled-system";
5779
+ var progressSlotRecipe = defineSlotRecipe33({
5680
5780
  slots: progressAnatomy2.keys(),
5681
5781
  className: "chakra-progress",
5682
5782
  base: {
@@ -5797,8 +5897,8 @@ var progressSlotRecipe = defineSlotRecipe32({
5797
5897
 
5798
5898
  // src/components/radio-card/radio-card.recipe.ts
5799
5899
  import { radioCardAnatomy } from "@chakra-ui/react/anatomy";
5800
- import { defineSlotRecipe as defineSlotRecipe33 } from "@chakra-ui/react/styled-system";
5801
- var radioCardSlotRecipe = defineSlotRecipe33({
5900
+ import { defineSlotRecipe as defineSlotRecipe34 } from "@chakra-ui/react/styled-system";
5901
+ var radioCardSlotRecipe = defineSlotRecipe34({
5802
5902
  className: "chakra-radio-card",
5803
5903
  slots: radioCardAnatomy.keys(),
5804
5904
  base: {
@@ -6007,8 +6107,8 @@ var radioCardSlotRecipe = defineSlotRecipe33({
6007
6107
 
6008
6108
  // src/components/radio-group/radio-group.recipe.ts
6009
6109
  import { radioGroupAnatomy } from "@chakra-ui/react/anatomy";
6010
- import { defineSlotRecipe as defineSlotRecipe34 } from "@chakra-ui/react/styled-system";
6011
- var radioGroupSlotRecipe = defineSlotRecipe34({
6110
+ import { defineSlotRecipe as defineSlotRecipe35 } from "@chakra-ui/react/styled-system";
6111
+ var radioGroupSlotRecipe = defineSlotRecipe35({
6012
6112
  className: "chakra-radio-group",
6013
6113
  slots: radioGroupAnatomy.keys(),
6014
6114
  base: {
@@ -6069,8 +6169,8 @@ var radioGroupSlotRecipe = defineSlotRecipe34({
6069
6169
 
6070
6170
  // src/components/rating-group/rating-group.recipe.ts
6071
6171
  import { ratingGroupAnatomy } from "@chakra-ui/react/anatomy";
6072
- import { defineSlotRecipe as defineSlotRecipe35 } from "@chakra-ui/react/styled-system";
6073
- var ratingGroupSlotRecipe = defineSlotRecipe35({
6172
+ import { defineSlotRecipe as defineSlotRecipe36 } from "@chakra-ui/react/styled-system";
6173
+ var ratingGroupSlotRecipe = defineSlotRecipe36({
6074
6174
  className: "chakra-rating-group",
6075
6175
  slots: ratingGroupAnatomy.keys(),
6076
6176
  base: {
@@ -6152,10 +6252,75 @@ var ratingGroupSlotRecipe = defineSlotRecipe35({
6152
6252
  }
6153
6253
  });
6154
6254
 
6255
+ // src/components/section/section.recipe.ts
6256
+ import { defineSlotRecipe as defineSlotRecipe37 } from "@chakra-ui/react/styled-system";
6257
+ var slots2 = ["root", "header", "title", "description", "body"];
6258
+ var sectionSlotRecipe = defineSlotRecipe37({
6259
+ className: "sui-section",
6260
+ slots: slots2,
6261
+ base: {
6262
+ root: {
6263
+ display: "flex",
6264
+ flexDirection: "column"
6265
+ },
6266
+ header: {
6267
+ flexShrink: 0,
6268
+ mb: 4
6269
+ },
6270
+ title: {
6271
+ textStyle: "heading",
6272
+ fontWeight: "semibold",
6273
+ lineHeight: "110%",
6274
+ letterSpacing: "-1%",
6275
+ mb: 1
6276
+ },
6277
+ description: {
6278
+ color: "fg.muted",
6279
+ fontSize: "md",
6280
+ "& a": {
6281
+ fontWeight: "medium",
6282
+ color: "fg"
6283
+ }
6284
+ },
6285
+ body: {
6286
+ flex: 1,
6287
+ minWidth: 0
6288
+ }
6289
+ },
6290
+ variants: {
6291
+ variant: {
6292
+ annotated: {
6293
+ root: {
6294
+ flexDirection: {
6295
+ base: "column",
6296
+ md: "row"
6297
+ },
6298
+ mt: 4
6299
+ },
6300
+ header: {
6301
+ width: {
6302
+ base: "full",
6303
+ md: "30%"
6304
+ },
6305
+ mb: {
6306
+ base: 4,
6307
+ md: 0
6308
+ },
6309
+ pe: {
6310
+ base: 4,
6311
+ md: 8
6312
+ }
6313
+ }
6314
+ }
6315
+ }
6316
+ },
6317
+ defaultVariants: {}
6318
+ });
6319
+
6155
6320
  // src/components/segmented-control/segment-group.recipe.ts
6156
6321
  import { segmentGroupAnatomy } from "@chakra-ui/react/anatomy";
6157
- import { defineSlotRecipe as defineSlotRecipe36 } from "@chakra-ui/react/styled-system";
6158
- var segmentGroupSlotRecipe = defineSlotRecipe36({
6322
+ import { defineSlotRecipe as defineSlotRecipe38 } from "@chakra-ui/react/styled-system";
6323
+ var segmentGroupSlotRecipe = defineSlotRecipe38({
6159
6324
  className: "chakra-segment-group",
6160
6325
  slots: segmentGroupAnatomy.keys(),
6161
6326
  base: {
@@ -6282,8 +6447,8 @@ var segmentGroupSlotRecipe = defineSlotRecipe36({
6282
6447
  });
6283
6448
 
6284
6449
  // src/components/sidebar/sidebar-nav-item.recipe.ts
6285
- import { defineSlotRecipe as defineSlotRecipe37 } from "@chakra-ui/react";
6286
- var sidebarNavItemSlotRecipe = defineSlotRecipe37({
6450
+ import { defineSlotRecipe as defineSlotRecipe39 } from "@chakra-ui/react";
6451
+ var sidebarNavItemSlotRecipe = defineSlotRecipe39({
6287
6452
  className: "sui-sidebar-nav-item",
6288
6453
  slots: ["item", "button", "endElement"],
6289
6454
  base: {
@@ -6394,8 +6559,8 @@ var sidebarNavItemSlotRecipe = defineSlotRecipe37({
6394
6559
  });
6395
6560
 
6396
6561
  // src/components/sidebar/sidebar.recipe.ts
6397
- import { defineSlotRecipe as defineSlotRecipe38 } from "@chakra-ui/react/styled-system";
6398
- var sidebarSlotRecipe = defineSlotRecipe38({
6562
+ import { defineSlotRecipe as defineSlotRecipe40 } from "@chakra-ui/react/styled-system";
6563
+ var sidebarSlotRecipe = defineSlotRecipe40({
6399
6564
  className: "sui-sidebar",
6400
6565
  slots: [
6401
6566
  "root",
@@ -6633,8 +6798,8 @@ var sidebarSlotRecipe = defineSlotRecipe38({
6633
6798
 
6634
6799
  // src/components/slider/slider.recipe.ts
6635
6800
  import { sliderAnatomy } from "@chakra-ui/react/anatomy";
6636
- import { defineSlotRecipe as defineSlotRecipe39 } from "@chakra-ui/react/styled-system";
6637
- var sliderSlotRecipe = defineSlotRecipe39({
6801
+ import { defineSlotRecipe as defineSlotRecipe41 } from "@chakra-ui/react/styled-system";
6802
+ var sliderSlotRecipe = defineSlotRecipe41({
6638
6803
  className: "chakra-slider",
6639
6804
  slots: sliderAnatomy.keys(),
6640
6805
  base: {
@@ -6810,8 +6975,8 @@ var sliderSlotRecipe = defineSlotRecipe39({
6810
6975
 
6811
6976
  // src/components/stat/stat.recipe.ts
6812
6977
  import { statAnatomy } from "@chakra-ui/react/anatomy";
6813
- import { defineSlotRecipe as defineSlotRecipe40 } from "@chakra-ui/react/styled-system";
6814
- var statSlotRecipe = defineSlotRecipe40({
6978
+ import { defineSlotRecipe as defineSlotRecipe42 } from "@chakra-ui/react/styled-system";
6979
+ var statSlotRecipe = defineSlotRecipe42({
6815
6980
  className: "chakra-stat",
6816
6981
  slots: statAnatomy.keys(),
6817
6982
  base: {
@@ -6888,8 +7053,8 @@ var statSlotRecipe = defineSlotRecipe40({
6888
7053
 
6889
7054
  // src/components/status/status.recipe.ts
6890
7055
  import { statusAnatomy } from "@chakra-ui/react/anatomy";
6891
- import { defineSlotRecipe as defineSlotRecipe41 } from "@chakra-ui/react/styled-system";
6892
- var statusSlotRecipe = defineSlotRecipe41({
7056
+ import { defineSlotRecipe as defineSlotRecipe43 } from "@chakra-ui/react/styled-system";
7057
+ var statusSlotRecipe = defineSlotRecipe43({
6893
7058
  className: "chakra-status",
6894
7059
  slots: statusAnatomy.keys(),
6895
7060
  base: {
@@ -6934,8 +7099,8 @@ var statusSlotRecipe = defineSlotRecipe41({
6934
7099
 
6935
7100
  // src/components/steps/steps.recipe.ts
6936
7101
  import { stepsAnatomy } from "@chakra-ui/react/anatomy";
6937
- import { defineSlotRecipe as defineSlotRecipe42 } from "@chakra-ui/react/styled-system";
6938
- var stepsSlotRecipe = defineSlotRecipe42({
7102
+ import { defineSlotRecipe as defineSlotRecipe44 } from "@chakra-ui/react/styled-system";
7103
+ var stepsSlotRecipe = defineSlotRecipe44({
6939
7104
  className: "chakra-steps",
6940
7105
  slots: stepsAnatomy.keys(),
6941
7106
  base: {
@@ -7149,8 +7314,8 @@ var stepsSlotRecipe = defineSlotRecipe42({
7149
7314
 
7150
7315
  // src/components/switch/switch.recipe.ts
7151
7316
  import { switchAnatomy } from "@chakra-ui/react/anatomy";
7152
- import { defineSlotRecipe as defineSlotRecipe43 } from "@chakra-ui/react/styled-system";
7153
- var switchSlotRecipe = defineSlotRecipe43({
7317
+ import { defineSlotRecipe as defineSlotRecipe45 } from "@chakra-ui/react/styled-system";
7318
+ var switchSlotRecipe = defineSlotRecipe45({
7154
7319
  slots: switchAnatomy.keys(),
7155
7320
  className: "chakra-switch",
7156
7321
  base: {
@@ -7307,8 +7472,8 @@ var switchSlotRecipe = defineSlotRecipe43({
7307
7472
 
7308
7473
  // src/components/table/table.recipe.ts
7309
7474
  import { tableAnatomy } from "@chakra-ui/react/anatomy";
7310
- import { defineSlotRecipe as defineSlotRecipe44 } from "@chakra-ui/react/styled-system";
7311
- var tableSlotRecipe = defineSlotRecipe44({
7475
+ import { defineSlotRecipe as defineSlotRecipe46 } from "@chakra-ui/react/styled-system";
7476
+ var tableSlotRecipe = defineSlotRecipe46({
7312
7477
  className: "chakra-table",
7313
7478
  slots: tableAnatomy.keys(),
7314
7479
  base: {
@@ -7470,8 +7635,8 @@ var tableSlotRecipe = defineSlotRecipe44({
7470
7635
 
7471
7636
  // src/components/tabs/tabs.recipe.ts
7472
7637
  import { tabsAnatomy } from "@chakra-ui/react/anatomy";
7473
- import { defineSlotRecipe as defineSlotRecipe45 } from "@chakra-ui/react/styled-system";
7474
- var tabsSlotRecipe = defineSlotRecipe45({
7638
+ import { defineSlotRecipe as defineSlotRecipe47 } from "@chakra-ui/react/styled-system";
7639
+ var tabsSlotRecipe = defineSlotRecipe47({
7475
7640
  slots: tabsAnatomy.keys(),
7476
7641
  className: "chakra-tabs",
7477
7642
  base: {
@@ -7784,9 +7949,9 @@ var tabsSlotRecipe = defineSlotRecipe45({
7784
7949
 
7785
7950
  // src/components/tag/tag.recipe.ts
7786
7951
  import { tagAnatomy } from "@chakra-ui/react/anatomy";
7787
- import { defineSlotRecipe as defineSlotRecipe46 } from "@chakra-ui/react/styled-system";
7952
+ import { defineSlotRecipe as defineSlotRecipe48 } from "@chakra-ui/react/styled-system";
7788
7953
  var badgeVariant = badgeRecipe.variants?.variant;
7789
- var tagSlotRecipe = defineSlotRecipe46({
7954
+ var tagSlotRecipe = defineSlotRecipe48({
7790
7955
  slots: tagAnatomy.keys(),
7791
7956
  className: "chakra-tag",
7792
7957
  base: {
@@ -7939,8 +8104,8 @@ var tagSlotRecipe = defineSlotRecipe46({
7939
8104
 
7940
8105
  // src/components/timeline/timeline.recipe.ts
7941
8106
  import { timelineAnatomy } from "@chakra-ui/react/anatomy";
7942
- import { defineSlotRecipe as defineSlotRecipe47 } from "@chakra-ui/react/styled-system";
7943
- var timelineSlotRecipe = defineSlotRecipe47({
8107
+ import { defineSlotRecipe as defineSlotRecipe49 } from "@chakra-ui/react/styled-system";
8108
+ var timelineSlotRecipe = defineSlotRecipe49({
7944
8109
  slots: timelineAnatomy.keys(),
7945
8110
  className: "chakra-timeline",
7946
8111
  base: {
@@ -8075,8 +8240,8 @@ var timelineSlotRecipe = defineSlotRecipe47({
8075
8240
 
8076
8241
  // src/components/toaster/toast.recipe.ts
8077
8242
  import { toastAnatomy } from "@chakra-ui/react/anatomy";
8078
- import { defineSlotRecipe as defineSlotRecipe48 } from "@chakra-ui/react/styled-system";
8079
- var toastSlotRecipe = defineSlotRecipe48({
8243
+ import { defineSlotRecipe as defineSlotRecipe50 } from "@chakra-ui/react/styled-system";
8244
+ var toastSlotRecipe = defineSlotRecipe50({
8080
8245
  slots: toastAnatomy.keys(),
8081
8246
  className: "chakra-toast",
8082
8247
  base: {
@@ -8167,8 +8332,8 @@ var toastSlotRecipe = defineSlotRecipe48({
8167
8332
 
8168
8333
  // src/components/tooltip/tooltip.recipe.ts
8169
8334
  import { tooltipAnatomy } from "@chakra-ui/react/anatomy";
8170
- import { defineSlotRecipe as defineSlotRecipe49 } from "@chakra-ui/react/styled-system";
8171
- var tooltipSlotRecipe = defineSlotRecipe49({
8335
+ import { defineSlotRecipe as defineSlotRecipe51 } from "@chakra-ui/react/styled-system";
8336
+ var tooltipSlotRecipe = defineSlotRecipe51({
8172
8337
  slots: tooltipAnatomy.keys(),
8173
8338
  className: "chakra-tooltip",
8174
8339
  base: {
@@ -8271,7 +8436,9 @@ var slotRecipes = {
8271
8436
  suiGridList: gridListSlotRecipe,
8272
8437
  suiNavbar: navbarSlotRecipe,
8273
8438
  suiSidebar: sidebarSlotRecipe,
8274
- suiSidebarNavItem: sidebarNavItemSlotRecipe
8439
+ suiSidebarNavItem: sidebarNavItemSlotRecipe,
8440
+ suiPage: pageSlotRecipe,
8441
+ suiSection: sectionSlotRecipe
8275
8442
  };
8276
8443
 
8277
8444
  // src/theme/text-styles.ts
@@ -39,7 +39,7 @@ var Toaster = (props) => {
39
39
  toast2.description && /* @__PURE__ */ jsx(Toast.Description, { children: toast2.description }),
40
40
  toast2.action && /* @__PURE__ */ jsx(Toast.ActionTrigger, { children: toast2.action.label })
41
41
  ] }),
42
- closable !== false && /* @__PURE__ */ jsx(Toast.CloseTrigger, { children: /* @__PURE__ */ jsx(CloseButton, { size: "xs" }) })
42
+ closable !== false && /* @__PURE__ */ jsx(Toast.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx(CloseButton, { size: "xs" }) })
43
43
  ] });
44
44
  } }) });
45
45
  };
@@ -0,0 +1,60 @@
1
+ 'use client'
2
+ import {
3
+ __export
4
+ } from "./chunk-RTMS5TJN.js";
5
+
6
+ // src/components/section/section.tsx
7
+ var section_exports = {};
8
+ __export(section_exports, {
9
+ Body: () => SectionBody,
10
+ Description: () => SectionDescription,
11
+ Header: () => SectionHeader,
12
+ Root: () => SectionRoot,
13
+ Title: () => SectionTitle
14
+ });
15
+ import {
16
+ chakra
17
+ } from "@chakra-ui/react";
18
+
19
+ // src/components/section/section.context.ts
20
+ import { createSlotRecipeContext } from "@chakra-ui/react";
21
+ var {
22
+ withProvider,
23
+ withContext,
24
+ useStyles: useSectionStyles,
25
+ useClassNames
26
+ } = createSlotRecipeContext({
27
+ key: "suiSection"
28
+ });
29
+
30
+ // src/components/section/section.tsx
31
+ import { jsx, jsxs } from "react/jsx-runtime";
32
+ var SectionRoot = withProvider(
33
+ "div",
34
+ "root"
35
+ );
36
+ var SectionBody = withContext("div", "body");
37
+ var SectionHeader = withContext(
38
+ (props) => {
39
+ const { title, description, children, ...rest } = props;
40
+ return /* @__PURE__ */ jsxs(chakra.div, { ...rest, children: [
41
+ typeof title === "string" ? /* @__PURE__ */ jsx(SectionTitle, { children: title }) : title,
42
+ typeof description === "string" ? /* @__PURE__ */ jsx(SectionDescription, { children: description }) : description,
43
+ children
44
+ ] });
45
+ },
46
+ "header"
47
+ );
48
+ var SectionTitle = withContext(
49
+ "h3",
50
+ "title"
51
+ );
52
+ var SectionDescription = withContext(
53
+ "div",
54
+ "description"
55
+ );
56
+
57
+ export {
58
+ useSectionStyles,
59
+ section_exports
60
+ };
@@ -1,10 +1,10 @@
1
1
  'use client'
2
2
  import {
3
3
  InfoTip
4
- } from "../../chunk-D72A4SU3.js";
5
- import "../../chunk-OWFY465Z.js";
6
- import "../../chunk-UZUMIWPJ.js";
4
+ } from "../../chunk-GQYL3VVZ.js";
5
+ import "../../chunk-QITSWCWX.js";
7
6
  import "../../chunk-FVUEAELO.js";
7
+ import "../../chunk-UZUMIWPJ.js";
8
8
  import "../../chunk-KTLWEUNW.js";
9
9
  import "../../chunk-JMYI6YXR.js";
10
10
  import "../../chunk-U2CWQDXE.js";
@@ -0,0 +1,81 @@
1
+ 'use client'
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/components/section/index.ts
22
+ var section_exports2 = {};
23
+ __export(section_exports2, {
24
+ Section: () => section_exports,
25
+ useSectionStyles: () => useSectionStyles
26
+ });
27
+ module.exports = __toCommonJS(section_exports2);
28
+
29
+ // src/components/section/section.tsx
30
+ var section_exports = {};
31
+ __export(section_exports, {
32
+ Body: () => SectionBody,
33
+ Description: () => SectionDescription,
34
+ Header: () => SectionHeader,
35
+ Root: () => SectionRoot,
36
+ Title: () => SectionTitle
37
+ });
38
+ var import_react2 = require("@chakra-ui/react");
39
+
40
+ // src/components/section/section.context.ts
41
+ var import_react = require("@chakra-ui/react");
42
+ var {
43
+ withProvider,
44
+ withContext,
45
+ useStyles: useSectionStyles,
46
+ useClassNames
47
+ } = (0, import_react.createSlotRecipeContext)({
48
+ key: "suiSection"
49
+ });
50
+
51
+ // src/components/section/section.tsx
52
+ var import_jsx_runtime = require("react/jsx-runtime");
53
+ var SectionRoot = withProvider(
54
+ "div",
55
+ "root"
56
+ );
57
+ var SectionBody = withContext("div", "body");
58
+ var SectionHeader = withContext(
59
+ (props) => {
60
+ const { title, description, children, ...rest } = props;
61
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.chakra.div, { ...rest, children: [
62
+ typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SectionTitle, { children: title }) : title,
63
+ typeof description === "string" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SectionDescription, { children: description }) : description,
64
+ children
65
+ ] });
66
+ },
67
+ "header"
68
+ );
69
+ var SectionTitle = withContext(
70
+ "h3",
71
+ "title"
72
+ );
73
+ var SectionDescription = withContext(
74
+ "div",
75
+ "description"
76
+ );
77
+ // Annotate the CommonJS export names for ESM import in node:
78
+ 0 && (module.exports = {
79
+ Section,
80
+ useSectionStyles
81
+ });
@@ -0,0 +1,2 @@
1
+ export { Section_alias_1 as Section } from '../../_tsup-dts-rollup.cjs';
2
+ export { useSectionStyles_alias_1 as useSectionStyles } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1,2 @@
1
+ export { Section_alias_1 as Section } from '../../_tsup-dts-rollup.js';
2
+ export { useSectionStyles_alias_1 as useSectionStyles } from '../../_tsup-dts-rollup.js';
@@ -0,0 +1,10 @@
1
+ 'use client'
2
+ import {
3
+ section_exports,
4
+ useSectionStyles
5
+ } from "../../chunk-NRC2PKPJ.js";
6
+ import "../../chunk-RTMS5TJN.js";
7
+ export {
8
+ section_exports as Section,
9
+ useSectionStyles
10
+ };
@@ -234,7 +234,7 @@ var Toaster = (props) => {
234
234
  toast2.description && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_toast.Toast.Description, { children: toast2.description }),
235
235
  toast2.action && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_toast.Toast.ActionTrigger, { children: toast2.action.label })
236
236
  ] }),
237
- closable !== false && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_toast.Toast.CloseTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CloseButton, { size: "xs" }) })
237
+ closable !== false && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_toast.Toast.CloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CloseButton, { size: "xs" }) })
238
238
  ] });
239
239
  } }) });
240
240
  };
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  Toaster,
4
4
  toast
5
- } from "../../chunk-GXOQVOKP.js";
5
+ } from "../../chunk-NBNSPEJB.js";
6
6
  import "../../chunk-MK3OG2I4.js";
7
7
  import "../../chunk-JMYI6YXR.js";
8
8
  import "../../chunk-U2CWQDXE.js";
@@ -1,9 +1,9 @@
1
1
  'use client'
2
2
  import {
3
3
  ToggleTip
4
- } from "../../chunk-OWFY465Z.js";
5
- import "../../chunk-UZUMIWPJ.js";
4
+ } from "../../chunk-QITSWCWX.js";
6
5
  import "../../chunk-FVUEAELO.js";
6
+ import "../../chunk-UZUMIWPJ.js";
7
7
  import "../../chunk-JMYI6YXR.js";
8
8
  import "../../chunk-U2CWQDXE.js";
9
9
  import "../../chunk-OJZPPAT6.js";