@saas-ui/react 3.0.0-alpha.12 → 3.0.0-alpha.14

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @saas-ui/react
2
2
 
3
+ ## 3.0.0-alpha.14
4
+
5
+ ### Patch Changes
6
+
7
+ - 0067207: Fixed issue where paddingStart would not apply to grouped inputs
8
+ - 0067207: Added 4.5 spacing
9
+
10
+ ## 3.0.0-alpha.13
11
+
12
+ ### Patch Changes
13
+
14
+ - b51aff9: Improved form components recipes sizing
15
+ - b51aff9: Fixed passing menu button props to button component
16
+
3
17
  ## 3.0.0-alpha.12
4
18
 
5
19
  ### Patch Changes
@@ -16,9 +16,10 @@ __export(steps_exports, {
16
16
  List: () => StepsList,
17
17
  NextTrigger: () => StepsNextTrigger,
18
18
  PrevTrigger: () => StepsPrevTrigger,
19
- Root: () => StepsRoot
19
+ Root: () => StepsRoot,
20
+ useContext: () => useStepsContext
20
21
  });
21
- import { Box, Steps as ChakraSteps } from "@chakra-ui/react";
22
+ import { Box, Steps as ChakraSteps, useStepsContext } from "@chakra-ui/react";
22
23
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
23
24
  var StepsItem = (props) => {
24
25
  const { title, description, completedIcon, icon, ...rest } = props;
@@ -84,7 +84,7 @@ var MenuTriggerItem = forwardRef(
84
84
  );
85
85
  var MenuButton = forwardRef(
86
86
  function MenuButton2(props, ref) {
87
- return /* @__PURE__ */ jsx(MenuTrigger, { ref, ...props, asChild: true, children: /* @__PURE__ */ jsx(Button, {}) });
87
+ return /* @__PURE__ */ jsx(MenuTrigger, { ref, asChild: true, children: /* @__PURE__ */ jsx(Button, { ...props }) });
88
88
  }
89
89
  );
90
90
  var MenuRadioItemGroup = ChakraMenu.RadioItemGroup;
@@ -231,7 +231,7 @@ var MenuTriggerItem = (0, import_react4.forwardRef)(
231
231
  );
232
232
  var MenuButton = (0, import_react4.forwardRef)(
233
233
  function MenuButton2(props, ref) {
234
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(MenuTrigger, { ref, ...props, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Button, {}) });
234
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(MenuTrigger, { ref, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Button, { ...props }) });
235
235
  }
236
236
  );
237
237
  var MenuRadioItemGroup = import_react5.Menu.RadioItemGroup;
@@ -1,7 +1,7 @@
1
1
  'use client'
2
2
  import {
3
3
  menu_exports
4
- } from "../../chunk-JGHXJ3PI.js";
4
+ } from "../../chunk-KK77TYNL.js";
5
5
  import "../../chunk-KTLWEUNW.js";
6
6
  import "../../chunk-BCNPBZZK.js";
7
7
  import "../../chunk-VDXTEASE.js";
@@ -35,7 +35,8 @@ __export(steps_exports, {
35
35
  List: () => StepsList,
36
36
  NextTrigger: () => StepsNextTrigger,
37
37
  PrevTrigger: () => StepsPrevTrigger,
38
- Root: () => StepsRoot
38
+ Root: () => StepsRoot,
39
+ useContext: () => import_react2.useStepsContext
39
40
  });
40
41
  var import_react2 = require("@chakra-ui/react");
41
42
 
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { Steps } from '@chakra-ui/react';
3
+ import { Steps, useStepsContext } from '@chakra-ui/react';
4
4
 
5
5
  interface StepInfoProps {
6
6
  title?: React.ReactNode;
@@ -25,7 +25,7 @@ declare const StepsNextTrigger: (props: Steps.NextTriggerProps) => react_jsx_run
25
25
  declare const StepsPrevTrigger: (props: Steps.PrevTriggerProps) => react_jsx_runtime.JSX.Element;
26
26
 
27
27
  declare namespace steps {
28
- export { StepsCompletedContent as CompletedContent, StepsContent as Content, StepsIndicator as Indicator, type StepsIndicatorProps as IndicatorProps, StepsItem as Item, type StepsItemProps as ItemProps, StepsList as List, StepsNextTrigger as NextTrigger, StepsPrevTrigger as PrevTrigger, StepsRoot as Root, type StepsRootProps as RootProps };
28
+ export { StepsCompletedContent as CompletedContent, StepsContent as Content, StepsIndicator as Indicator, type StepsIndicatorProps as IndicatorProps, StepsItem as Item, type StepsItemProps as ItemProps, StepsList as List, StepsNextTrigger as NextTrigger, StepsPrevTrigger as PrevTrigger, StepsRoot as Root, type StepsRootProps as RootProps, useStepsContext as useContext };
29
29
  }
30
30
 
31
31
  export { steps as Steps };
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { Steps } from '@chakra-ui/react';
3
+ import { Steps, useStepsContext } from '@chakra-ui/react';
4
4
 
5
5
  interface StepInfoProps {
6
6
  title?: React.ReactNode;
@@ -25,7 +25,7 @@ declare const StepsNextTrigger: (props: Steps.NextTriggerProps) => react_jsx_run
25
25
  declare const StepsPrevTrigger: (props: Steps.PrevTriggerProps) => react_jsx_runtime.JSX.Element;
26
26
 
27
27
  declare namespace steps {
28
- export { StepsCompletedContent as CompletedContent, StepsContent as Content, StepsIndicator as Indicator, type StepsIndicatorProps as IndicatorProps, StepsItem as Item, type StepsItemProps as ItemProps, StepsList as List, StepsNextTrigger as NextTrigger, StepsPrevTrigger as PrevTrigger, StepsRoot as Root, type StepsRootProps as RootProps };
28
+ export { StepsCompletedContent as CompletedContent, StepsContent as Content, StepsIndicator as Indicator, type StepsIndicatorProps as IndicatorProps, StepsItem as Item, type StepsItemProps as ItemProps, StepsList as List, StepsNextTrigger as NextTrigger, StepsPrevTrigger as PrevTrigger, StepsRoot as Root, type StepsRootProps as RootProps, useStepsContext as useContext };
29
29
  }
30
30
 
31
31
  export { steps as Steps };
@@ -1,7 +1,7 @@
1
1
  'use client'
2
2
  import {
3
3
  steps_exports
4
- } from "../../chunk-6LOMIKR5.js";
4
+ } from "../../chunk-44ZA3TYW.js";
5
5
  import "../../chunk-KTLWEUNW.js";
6
6
  import "../../chunk-VDXTEASE.js";
7
7
  import "../../chunk-RTMS5TJN.js";
package/dist/index.cjs CHANGED
@@ -421,7 +421,7 @@ var buttonRecipe = (0, import_react5.defineRecipe)({
421
421
  minW: "8",
422
422
  textStyle: "sm",
423
423
  borderRadius: "md",
424
- px: "3"
424
+ px: "2.5"
425
425
  },
426
426
  md: {
427
427
  gap: "2",
@@ -429,7 +429,7 @@ var buttonRecipe = (0, import_react5.defineRecipe)({
429
429
  minW: "8",
430
430
  borderRadius: "md",
431
431
  textStyle: "sm",
432
- px: "4"
432
+ px: "3"
433
433
  },
434
434
  lg: {
435
435
  gap: "3",
@@ -437,7 +437,7 @@ var buttonRecipe = (0, import_react5.defineRecipe)({
437
437
  minW: "10",
438
438
  borderRadius: "lg",
439
439
  textStyle: "md",
440
- px: "5"
440
+ px: "4.5"
441
441
  },
442
442
  xl: {
443
443
  gap: "3",
@@ -722,14 +722,14 @@ var checkmarkRecipe = (0, import_react9.defineRecipe)({
722
722
  boxSize: "3"
723
723
  },
724
724
  sm: {
725
- boxSize: "4"
725
+ boxSize: "3.5"
726
726
  },
727
727
  md: {
728
- boxSize: "5",
728
+ boxSize: "4",
729
729
  p: "0.5"
730
730
  },
731
731
  lg: {
732
- boxSize: "6",
732
+ boxSize: "5",
733
733
  p: "0.5"
734
734
  }
735
735
  },
@@ -886,7 +886,6 @@ var inputRecipe = (0, import_react14.defineRecipe)({
886
886
  position: "relative",
887
887
  appearance: "none",
888
888
  textAlign: "start",
889
- borderRadius: "l2",
890
889
  _disabled: {
891
890
  layerStyle: "disabled"
892
891
  },
@@ -902,28 +901,33 @@ var inputRecipe = (0, import_react14.defineRecipe)({
902
901
  variants: {
903
902
  size: {
904
903
  xs: {
904
+ borderRadius: "sm",
905
905
  textStyle: "xs",
906
906
  px: "2",
907
- "--input-height": "sizes.8"
907
+ "--input-height": "sizes.6"
908
908
  },
909
909
  sm: {
910
+ borderRadius: "sm",
910
911
  textStyle: "sm",
911
912
  px: "2.5",
912
- "--input-height": "sizes.9"
913
+ "--input-height": "sizes.7"
913
914
  },
914
915
  md: {
916
+ borderRadius: "md",
915
917
  textStyle: "sm",
916
918
  px: "3",
917
- "--input-height": "sizes.10"
919
+ "--input-height": "sizes.8"
918
920
  },
919
921
  lg: {
922
+ borderRadius: "lg",
920
923
  textStyle: "md",
921
- px: "4",
922
- "--input-height": "sizes.11"
924
+ px: "4.5",
925
+ "--input-height": "sizes.10"
923
926
  },
924
927
  xl: {
928
+ borderRadius: "lg",
925
929
  textStyle: "md",
926
- px: "4.5",
930
+ px: "6",
927
931
  "--input-height": "sizes.12"
928
932
  }
929
933
  },
@@ -1201,13 +1205,13 @@ var radiomarkRecipe = (0, import_react19.defineRecipe)({
1201
1205
  boxSize: "3"
1202
1206
  },
1203
1207
  sm: {
1204
- boxSize: "4"
1208
+ boxSize: "3.5"
1205
1209
  },
1206
1210
  md: {
1207
- boxSize: "5"
1211
+ boxSize: "4"
1208
1212
  },
1209
1213
  lg: {
1210
- boxSize: "6"
1214
+ boxSize: "5"
1211
1215
  }
1212
1216
  }
1213
1217
  },
@@ -1397,7 +1401,6 @@ var textareaRecipe = (0, import_react24.defineRecipe)({
1397
1401
  position: "relative",
1398
1402
  appearance: "none",
1399
1403
  textAlign: "start",
1400
- borderRadius: "l2",
1401
1404
  _disabled: {
1402
1405
  layerStyle: "disabled"
1403
1406
  },
@@ -1411,30 +1414,35 @@ var textareaRecipe = (0, import_react24.defineRecipe)({
1411
1414
  variants: {
1412
1415
  size: {
1413
1416
  xs: {
1417
+ borderRadius: "sm",
1414
1418
  textStyle: "xs",
1415
1419
  px: "2",
1416
1420
  py: "1.5",
1417
1421
  scrollPaddingBottom: "1.5"
1418
1422
  },
1419
1423
  sm: {
1424
+ borderRadius: "sm",
1420
1425
  textStyle: "sm",
1421
1426
  px: "2.5",
1422
1427
  py: "2",
1423
1428
  scrollPaddingBottom: "2"
1424
1429
  },
1425
1430
  md: {
1431
+ borderRadius: "md",
1426
1432
  textStyle: "sm",
1427
1433
  px: "3",
1428
1434
  py: "2",
1429
1435
  scrollPaddingBottom: "2"
1430
1436
  },
1431
1437
  lg: {
1438
+ borderRadius: "md",
1432
1439
  textStyle: "md",
1433
1440
  px: "4",
1434
1441
  py: "3",
1435
1442
  scrollPaddingBottom: "3"
1436
1443
  },
1437
1444
  xl: {
1445
+ borderRadius: "lg",
1438
1446
  textStyle: "md",
1439
1447
  px: "4.5",
1440
1448
  py: "3.5",
@@ -5121,7 +5129,6 @@ var selectSlotRecipe = (0, import_react55.defineSlotRecipe)({
5121
5129
  width: "full",
5122
5130
  minH: "var(--select-trigger-height)",
5123
5131
  px: "var(--select-trigger-padding-x)",
5124
- borderRadius: "l2",
5125
5132
  userSelect: "none",
5126
5133
  textAlign: "start",
5127
5134
  focusVisibleRing: "inside",
@@ -5183,7 +5190,7 @@ var selectSlotRecipe = (0, import_react55.defineSlotRecipe)({
5183
5190
  textAlign: "start",
5184
5191
  borderRadius: "l1",
5185
5192
  _highlighted: {
5186
- bg: { _light: "bg.muted", _dark: "bg.emphasized" }
5193
+ bg: "bg.subtle"
5187
5194
  },
5188
5195
  _disabled: {
5189
5196
  pointerEvents: "none",
@@ -5243,7 +5250,7 @@ var selectSlotRecipe = (0, import_react55.defineSlotRecipe)({
5243
5250
  size: {
5244
5251
  xs: {
5245
5252
  root: {
5246
- "--select-trigger-height": "sizes.8",
5253
+ "--select-trigger-height": "sizes.6",
5247
5254
  "--select-trigger-padding-x": "spacing.2"
5248
5255
  },
5249
5256
  content: {
@@ -5252,6 +5259,7 @@ var selectSlotRecipe = (0, import_react55.defineSlotRecipe)({
5252
5259
  textStyle: "xs"
5253
5260
  },
5254
5261
  trigger: {
5262
+ borderRadius: "sm",
5255
5263
  textStyle: "xs",
5256
5264
  gap: "1"
5257
5265
  },
@@ -5272,7 +5280,7 @@ var selectSlotRecipe = (0, import_react55.defineSlotRecipe)({
5272
5280
  },
5273
5281
  sm: {
5274
5282
  root: {
5275
- "--select-trigger-height": "sizes.9",
5283
+ "--select-trigger-height": "sizes.7",
5276
5284
  "--select-trigger-padding-x": "spacing.2.5"
5277
5285
  },
5278
5286
  content: {
@@ -5280,6 +5288,7 @@ var selectSlotRecipe = (0, import_react55.defineSlotRecipe)({
5280
5288
  textStyle: "sm"
5281
5289
  },
5282
5290
  trigger: {
5291
+ borderRadius: "sm",
5283
5292
  textStyle: "sm",
5284
5293
  gap: "1"
5285
5294
  },
@@ -5303,7 +5312,7 @@ var selectSlotRecipe = (0, import_react55.defineSlotRecipe)({
5303
5312
  },
5304
5313
  md: {
5305
5314
  root: {
5306
- "--select-trigger-height": "sizes.10",
5315
+ "--select-trigger-height": "sizes.8",
5307
5316
  "--select-trigger-padding-x": "spacing.3"
5308
5317
  },
5309
5318
  content: {
@@ -5327,6 +5336,7 @@ var selectSlotRecipe = (0, import_react55.defineSlotRecipe)({
5327
5336
  px: "2"
5328
5337
  },
5329
5338
  trigger: {
5339
+ borderRadius: "md",
5330
5340
  textStyle: "sm",
5331
5341
  gap: "2"
5332
5342
  },
@@ -5339,7 +5349,7 @@ var selectSlotRecipe = (0, import_react55.defineSlotRecipe)({
5339
5349
  },
5340
5350
  lg: {
5341
5351
  root: {
5342
- "--select-trigger-height": "sizes.12",
5352
+ "--select-trigger-height": "sizes.10",
5343
5353
  "--select-trigger-padding-x": "spacing.4"
5344
5354
  },
5345
5355
  content: {
@@ -5358,6 +5368,7 @@ var selectSlotRecipe = (0, import_react55.defineSlotRecipe)({
5358
5368
  px: "3"
5359
5369
  },
5360
5370
  trigger: {
5371
+ borderRadius: "md",
5361
5372
  textStyle: "md",
5362
5373
  py: "3",
5363
5374
  gap: "2"
@@ -5654,7 +5665,15 @@ var pinInputSlotRecipe = (0, import_react58.defineSlotRecipe)({
5654
5665
  }
5655
5666
  },
5656
5667
  variants: {
5657
- size: mapEntries(variants2.size, (key, value) => [key, { input: value }]),
5668
+ size: mapEntries(variants2.size, (key, value) => [
5669
+ key,
5670
+ {
5671
+ input: {
5672
+ ...value,
5673
+ px: 0
5674
+ }
5675
+ }
5676
+ ]),
5658
5677
  variant: mapEntries(variants2.variant, (key, value) => [
5659
5678
  key,
5660
5679
  { input: value }
@@ -8708,6 +8727,7 @@ var spacing = import_react93.defineTokens.spacing({
8708
8727
  3: { value: scaleToken("0.75rem") },
8709
8728
  3.5: { value: scaleToken("0.875rem") },
8710
8729
  4: { value: scaleToken("1rem") },
8730
+ 4.5: { value: scaleToken("1.125rem") },
8711
8731
  5: { value: scaleToken("1.25rem") },
8712
8732
  6: { value: scaleToken("1.5rem") },
8713
8733
  7: { value: scaleToken("1.75rem") },
@@ -9635,7 +9655,7 @@ var MenuTriggerItem = (0, import_react136.forwardRef)(
9635
9655
  );
9636
9656
  var MenuButton = (0, import_react136.forwardRef)(
9637
9657
  function MenuButton2(props, ref) {
9638
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(MenuTrigger, { ref, ...props, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, {}) });
9658
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(MenuTrigger, { ref, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { ...props }) });
9639
9659
  }
9640
9660
  );
9641
9661
  var MenuRadioItemGroup = import_react137.Menu.RadioItemGroup;
@@ -10429,28 +10449,6 @@ var SidebarNavButtonEndElement = withItemContext(import_sidebar.Sidebar.NavItemE
10429
10449
  // src/components/sidebar/index.ts
10430
10450
  var import_sidebar2 = require("@saas-ui/core/sidebar");
10431
10451
 
10432
- // src/components/toaster/toaster.tsx
10433
- var import_react156 = require("@chakra-ui/react");
10434
- var import_jsx_runtime30 = require("react/jsx-runtime");
10435
- var toast = (0, import_react156.createToaster)({
10436
- placement: "bottom-end",
10437
- pauseOnPageIdle: true
10438
- });
10439
- var Toaster = () => {
10440
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Toaster, { toaster: toast, insetInline: { mdDown: "4" }, children: (toast2) => {
10441
- var _a7;
10442
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react156.Toast.Root, { width: { md: "sm" }, children: [
10443
- toast2.type === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Spinner, { size: "sm", color: "colorPalette.solid" }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Toast.Indicator, {}),
10444
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react156.Stack, { gap: "1", flex: "1", maxWidth: "100%", children: [
10445
- toast2.title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Toast.Title, { children: toast2.title }),
10446
- toast2.description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Toast.Description, { children: toast2.description })
10447
- ] }),
10448
- toast2.action && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Toast.ActionTrigger, { children: toast2.action.label }),
10449
- ((_a7 = toast2.meta) == null ? void 0 : _a7.closable) && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Toast.CloseTrigger, {})
10450
- ] });
10451
- } }) });
10452
- };
10453
-
10454
10452
  // src/components/steps/steps.tsx
10455
10453
  var steps_exports = {};
10456
10454
  __export(steps_exports, {
@@ -10461,72 +10459,95 @@ __export(steps_exports, {
10461
10459
  List: () => StepsList,
10462
10460
  NextTrigger: () => StepsNextTrigger,
10463
10461
  PrevTrigger: () => StepsPrevTrigger,
10464
- Root: () => StepsRoot
10462
+ Root: () => StepsRoot,
10463
+ useContext: () => import_react156.useStepsContext
10465
10464
  });
10466
- var import_react157 = require("@chakra-ui/react");
10467
- var import_jsx_runtime31 = require("react/jsx-runtime");
10465
+ var import_react156 = require("@chakra-ui/react");
10466
+ var import_jsx_runtime30 = require("react/jsx-runtime");
10468
10467
  var StepsItem = (props) => {
10469
10468
  const { title, description, completedIcon, icon, ...rest } = props;
10470
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react157.Steps.Item, { ...rest, children: [
10471
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react157.Steps.Trigger, { children: [
10472
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Steps.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
10473
- import_react157.Steps.Status,
10469
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react156.Steps.Item, { ...rest, children: [
10470
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react156.Steps.Trigger, { children: [
10471
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
10472
+ import_react156.Steps.Status,
10474
10473
  {
10475
- complete: completedIcon || /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CheckIcon, {}),
10476
- incomplete: icon || /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Steps.Number, {})
10474
+ complete: completedIcon || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CheckIcon, {}),
10475
+ incomplete: icon || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Number, {})
10477
10476
  }
10478
10477
  ) }),
10479
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(StepInfo, { title, description })
10478
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(StepInfo, { title, description })
10480
10479
  ] }),
10481
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Steps.Separator, {})
10480
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Separator, {})
10482
10481
  ] });
10483
10482
  };
10484
10483
  var StepInfo = (props) => {
10485
10484
  const { title, description } = props;
10486
10485
  if (title && description) {
10487
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react157.Box, { children: [
10488
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Steps.Title, { children: title }),
10489
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Steps.Description, { children: description })
10486
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react156.Box, { children: [
10487
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Title, { children: title }),
10488
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Description, { children: description })
10490
10489
  ] });
10491
10490
  }
10492
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
10493
- title && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Steps.Title, { children: title }),
10494
- description && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Steps.Description, { children: description })
10491
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
10492
+ title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Title, { children: title }),
10493
+ description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Description, { children: description })
10495
10494
  ] });
10496
10495
  };
10497
10496
  var StepsIndicator = (props) => {
10498
- const { icon = /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Steps.Number, {}), completedIcon } = props;
10499
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Steps.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Steps.Status, { complete: completedIcon, incomplete: icon }) });
10497
+ const { icon = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Number, {}), completedIcon } = props;
10498
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Status, { complete: completedIcon, incomplete: icon }) });
10500
10499
  };
10501
- var StepsList = import_react157.Steps.List;
10502
- var StepsRoot = import_react157.Steps.Root;
10503
- var StepsContent = import_react157.Steps.Content;
10504
- var StepsCompletedContent = import_react157.Steps.CompletedContent;
10500
+ var StepsList = import_react156.Steps.List;
10501
+ var StepsRoot = import_react156.Steps.Root;
10502
+ var StepsContent = import_react156.Steps.Content;
10503
+ var StepsCompletedContent = import_react156.Steps.CompletedContent;
10505
10504
  var StepsNextTrigger = (props) => {
10506
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Steps.NextTrigger, { ...props });
10505
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.NextTrigger, { ...props });
10507
10506
  };
10508
10507
  var StepsPrevTrigger = (props) => {
10509
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Steps.PrevTrigger, { ...props });
10508
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.PrevTrigger, { ...props });
10510
10509
  };
10511
10510
 
10512
10511
  // src/components/switch/switch.tsx
10513
- var import_react158 = require("@chakra-ui/react");
10514
- var import_react159 = require("react");
10515
- var import_jsx_runtime32 = require("react/jsx-runtime");
10516
- var Switch = (0, import_react159.forwardRef)(
10512
+ var import_react157 = require("@chakra-ui/react");
10513
+ var import_react158 = require("react");
10514
+ var import_jsx_runtime31 = require("react/jsx-runtime");
10515
+ var Switch = (0, import_react158.forwardRef)(
10517
10516
  function Switch2(props, ref) {
10518
10517
  const { inputProps, children, rootRef, trackLabel, thumbLabel, ...rest } = props;
10519
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react158.Switch.Root, { ref: rootRef, ...rest, children: [
10520
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Switch.HiddenInput, { ref, ...inputProps }),
10521
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react158.Switch.Control, { children: [
10522
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Switch.Thumb, { children: thumbLabel && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Switch.ThumbIndicator, { fallback: thumbLabel == null ? void 0 : thumbLabel.off, children: thumbLabel == null ? void 0 : thumbLabel.on }) }),
10523
- trackLabel && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Switch.Indicator, { fallback: trackLabel.off, children: trackLabel.on })
10518
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react157.Switch.Root, { ref: rootRef, ...rest, children: [
10519
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Switch.HiddenInput, { ref, ...inputProps }),
10520
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react157.Switch.Control, { children: [
10521
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Switch.Thumb, { children: thumbLabel && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Switch.ThumbIndicator, { fallback: thumbLabel == null ? void 0 : thumbLabel.off, children: thumbLabel == null ? void 0 : thumbLabel.on }) }),
10522
+ trackLabel && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Switch.Indicator, { fallback: trackLabel.off, children: trackLabel.on })
10524
10523
  ] }),
10525
- children != null && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Switch.Label, { children })
10524
+ children != null && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Switch.Label, { children })
10526
10525
  ] });
10527
10526
  }
10528
10527
  );
10529
10528
 
10529
+ // src/components/toaster/toaster.tsx
10530
+ var import_react159 = require("@chakra-ui/react");
10531
+ var import_jsx_runtime32 = require("react/jsx-runtime");
10532
+ var toast = (0, import_react159.createToaster)({
10533
+ placement: "bottom-end",
10534
+ pauseOnPageIdle: true
10535
+ });
10536
+ var Toaster = () => {
10537
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react159.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react159.Toaster, { toaster: toast, insetInline: { mdDown: "4" }, children: (toast2) => {
10538
+ var _a7;
10539
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react159.Toast.Root, { width: { md: "sm" }, children: [
10540
+ toast2.type === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react159.Spinner, { size: "sm", color: "colorPalette.solid" }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react159.Toast.Indicator, {}),
10541
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react159.Stack, { gap: "1", flex: "1", maxWidth: "100%", children: [
10542
+ toast2.title && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react159.Toast.Title, { children: toast2.title }),
10543
+ toast2.description && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react159.Toast.Description, { children: toast2.description })
10544
+ ] }),
10545
+ toast2.action && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react159.Toast.ActionTrigger, { children: toast2.action.label }),
10546
+ ((_a7 = toast2.meta) == null ? void 0 : _a7.closable) && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react159.Toast.CloseTrigger, {})
10547
+ ] });
10548
+ } }) });
10549
+ };
10550
+
10530
10551
  // src/components/tooltip/tooltip.tsx
10531
10552
  var import_react160 = require("react");
10532
10553
  var import_react161 = require("@chakra-ui/react");
package/dist/index.d.cts CHANGED
@@ -31,10 +31,10 @@ export { Select } from './components/select/index.cjs';
31
31
  export { SegmentedControl, SegmentedControlProps } from './components/segmented-control/index.cjs';
32
32
  export { Sidebar, useSidebarItemStyles, useSidebarStyles } from './components/sidebar/index.cjs';
33
33
  export { useSidebar } from '@saas-ui/core/sidebar';
34
- export { Toaster, ToasterProps, toast } from './components/toaster/index.cjs';
35
34
  export { Spinner, SpinnerProps } from './components/spinner/index.cjs';
36
35
  export { Steps } from './components/steps/index.cjs';
37
36
  export { Switch, SwitchProps } from './components/switch/index.cjs';
37
+ export { Toaster, ToasterProps, toast } from './components/toaster/index.cjs';
38
38
  export { Tooltip, TooltipProps } from './components/tooltip/index.cjs';
39
39
  import '@ark-ui/react/dialog';
40
40
  import '@ark-ui/react';
package/dist/index.d.ts CHANGED
@@ -31,10 +31,10 @@ export { Select } from './components/select/index.js';
31
31
  export { SegmentedControl, SegmentedControlProps } from './components/segmented-control/index.js';
32
32
  export { Sidebar, useSidebarItemStyles, useSidebarStyles } from './components/sidebar/index.js';
33
33
  export { useSidebar } from '@saas-ui/core/sidebar';
34
- export { Toaster, ToasterProps, toast } from './components/toaster/index.js';
35
34
  export { Spinner, SpinnerProps } from './components/spinner/index.js';
36
35
  export { Steps } from './components/steps/index.js';
37
36
  export { Switch, SwitchProps } from './components/switch/index.js';
37
+ export { Toaster, ToasterProps, toast } from './components/toaster/index.js';
38
38
  export { Tooltip, TooltipProps } from './components/tooltip/index.js';
39
39
  import '@ark-ui/react/dialog';
40
40
  import '@ark-ui/react';
package/dist/index.js CHANGED
@@ -1,25 +1,18 @@
1
1
  import {
2
- Toaster,
3
- toast
4
- } from "./chunk-HELHPHIQ.js";
2
+ Tooltip
3
+ } from "./chunk-QSNSWCTM.js";
5
4
  import {
6
5
  colors
7
6
  } from "./chunk-3MO37LYW.js";
8
- import {
9
- SearchInput
10
- } from "./chunk-LIYUBUOP.js";
11
7
  import {
12
8
  SegmentedControl
13
9
  } from "./chunk-SKXSBAOS.js";
10
+ import {
11
+ SearchInput
12
+ } from "./chunk-LIYUBUOP.js";
14
13
  import {
15
14
  namespace_exports as namespace_exports3
16
15
  } from "./chunk-S3CQW7GD.js";
17
- import {
18
- steps_exports
19
- } from "./chunk-6LOMIKR5.js";
20
- import {
21
- Switch
22
- } from "./chunk-SA3OGTOO.js";
23
16
  import {
24
17
  sidebar_exports,
25
18
  useSidebar,
@@ -27,8 +20,18 @@ import {
27
20
  useSidebarStyles
28
21
  } from "./chunk-GGAKUS66.js";
29
22
  import {
30
- Tooltip
31
- } from "./chunk-QSNSWCTM.js";
23
+ Switch
24
+ } from "./chunk-SA3OGTOO.js";
25
+ import {
26
+ Toaster,
27
+ toast
28
+ } from "./chunk-HELHPHIQ.js";
29
+ import {
30
+ steps_exports
31
+ } from "./chunk-44ZA3TYW.js";
32
+ import {
33
+ menu_exports
34
+ } from "./chunk-KK77TYNL.js";
32
35
  import {
33
36
  loading_overlay_exports,
34
37
  useLoadingOverlayStyles
@@ -39,23 +42,20 @@ import {
39
42
  import {
40
43
  navbar_exports
41
44
  } from "./chunk-Q6SNJJO2.js";
42
- import {
43
- menu_exports
44
- } from "./chunk-JGHXJ3PI.js";
45
45
  import {
46
46
  NumberInput
47
47
  } from "./chunk-ULAJ3JEO.js";
48
48
  import {
49
49
  PasswordInput
50
50
  } from "./chunk-CD2JUFI2.js";
51
+ import {
52
+ PinInput
53
+ } from "./chunk-2EUACKRH.js";
51
54
  import {
52
55
  Persona,
53
56
  PersonaAvatar,
54
57
  defaultPresenceOptions
55
58
  } from "./chunk-M7FOBCOV.js";
56
- import {
57
- PinInput
58
- } from "./chunk-2EUACKRH.js";
59
59
  import {
60
60
  Radio,
61
61
  RadioGroup
@@ -454,7 +454,7 @@ var buttonRecipe = defineRecipe({
454
454
  minW: "8",
455
455
  textStyle: "sm",
456
456
  borderRadius: "md",
457
- px: "3"
457
+ px: "2.5"
458
458
  },
459
459
  md: {
460
460
  gap: "2",
@@ -462,7 +462,7 @@ var buttonRecipe = defineRecipe({
462
462
  minW: "8",
463
463
  borderRadius: "md",
464
464
  textStyle: "sm",
465
- px: "4"
465
+ px: "3"
466
466
  },
467
467
  lg: {
468
468
  gap: "3",
@@ -470,7 +470,7 @@ var buttonRecipe = defineRecipe({
470
470
  minW: "10",
471
471
  borderRadius: "lg",
472
472
  textStyle: "md",
473
- px: "5"
473
+ px: "4.5"
474
474
  },
475
475
  xl: {
476
476
  gap: "3",
@@ -755,14 +755,14 @@ var checkmarkRecipe = defineRecipe5({
755
755
  boxSize: "3"
756
756
  },
757
757
  sm: {
758
- boxSize: "4"
758
+ boxSize: "3.5"
759
759
  },
760
760
  md: {
761
- boxSize: "5",
761
+ boxSize: "4",
762
762
  p: "0.5"
763
763
  },
764
764
  lg: {
765
- boxSize: "6",
765
+ boxSize: "5",
766
766
  p: "0.5"
767
767
  }
768
768
  },
@@ -919,7 +919,6 @@ var inputRecipe = defineRecipe10({
919
919
  position: "relative",
920
920
  appearance: "none",
921
921
  textAlign: "start",
922
- borderRadius: "l2",
923
922
  _disabled: {
924
923
  layerStyle: "disabled"
925
924
  },
@@ -935,28 +934,33 @@ var inputRecipe = defineRecipe10({
935
934
  variants: {
936
935
  size: {
937
936
  xs: {
937
+ borderRadius: "sm",
938
938
  textStyle: "xs",
939
939
  px: "2",
940
- "--input-height": "sizes.8"
940
+ "--input-height": "sizes.6"
941
941
  },
942
942
  sm: {
943
+ borderRadius: "sm",
943
944
  textStyle: "sm",
944
945
  px: "2.5",
945
- "--input-height": "sizes.9"
946
+ "--input-height": "sizes.7"
946
947
  },
947
948
  md: {
949
+ borderRadius: "md",
948
950
  textStyle: "sm",
949
951
  px: "3",
950
- "--input-height": "sizes.10"
952
+ "--input-height": "sizes.8"
951
953
  },
952
954
  lg: {
955
+ borderRadius: "lg",
953
956
  textStyle: "md",
954
- px: "4",
955
- "--input-height": "sizes.11"
957
+ px: "4.5",
958
+ "--input-height": "sizes.10"
956
959
  },
957
960
  xl: {
961
+ borderRadius: "lg",
958
962
  textStyle: "md",
959
- px: "4.5",
963
+ px: "6",
960
964
  "--input-height": "sizes.12"
961
965
  }
962
966
  },
@@ -1234,13 +1238,13 @@ var radiomarkRecipe = defineRecipe15({
1234
1238
  boxSize: "3"
1235
1239
  },
1236
1240
  sm: {
1237
- boxSize: "4"
1241
+ boxSize: "3.5"
1238
1242
  },
1239
1243
  md: {
1240
- boxSize: "5"
1244
+ boxSize: "4"
1241
1245
  },
1242
1246
  lg: {
1243
- boxSize: "6"
1247
+ boxSize: "5"
1244
1248
  }
1245
1249
  }
1246
1250
  },
@@ -1430,7 +1434,6 @@ var textareaRecipe = defineRecipe20({
1430
1434
  position: "relative",
1431
1435
  appearance: "none",
1432
1436
  textAlign: "start",
1433
- borderRadius: "l2",
1434
1437
  _disabled: {
1435
1438
  layerStyle: "disabled"
1436
1439
  },
@@ -1444,30 +1447,35 @@ var textareaRecipe = defineRecipe20({
1444
1447
  variants: {
1445
1448
  size: {
1446
1449
  xs: {
1450
+ borderRadius: "sm",
1447
1451
  textStyle: "xs",
1448
1452
  px: "2",
1449
1453
  py: "1.5",
1450
1454
  scrollPaddingBottom: "1.5"
1451
1455
  },
1452
1456
  sm: {
1457
+ borderRadius: "sm",
1453
1458
  textStyle: "sm",
1454
1459
  px: "2.5",
1455
1460
  py: "2",
1456
1461
  scrollPaddingBottom: "2"
1457
1462
  },
1458
1463
  md: {
1464
+ borderRadius: "md",
1459
1465
  textStyle: "sm",
1460
1466
  px: "3",
1461
1467
  py: "2",
1462
1468
  scrollPaddingBottom: "2"
1463
1469
  },
1464
1470
  lg: {
1471
+ borderRadius: "md",
1465
1472
  textStyle: "md",
1466
1473
  px: "4",
1467
1474
  py: "3",
1468
1475
  scrollPaddingBottom: "3"
1469
1476
  },
1470
1477
  xl: {
1478
+ borderRadius: "lg",
1471
1479
  textStyle: "md",
1472
1480
  px: "4.5",
1473
1481
  py: "3.5",
@@ -5157,7 +5165,6 @@ var selectSlotRecipe = defineSlotRecipe28({
5157
5165
  width: "full",
5158
5166
  minH: "var(--select-trigger-height)",
5159
5167
  px: "var(--select-trigger-padding-x)",
5160
- borderRadius: "l2",
5161
5168
  userSelect: "none",
5162
5169
  textAlign: "start",
5163
5170
  focusVisibleRing: "inside",
@@ -5219,7 +5226,7 @@ var selectSlotRecipe = defineSlotRecipe28({
5219
5226
  textAlign: "start",
5220
5227
  borderRadius: "l1",
5221
5228
  _highlighted: {
5222
- bg: { _light: "bg.muted", _dark: "bg.emphasized" }
5229
+ bg: "bg.subtle"
5223
5230
  },
5224
5231
  _disabled: {
5225
5232
  pointerEvents: "none",
@@ -5279,7 +5286,7 @@ var selectSlotRecipe = defineSlotRecipe28({
5279
5286
  size: {
5280
5287
  xs: {
5281
5288
  root: {
5282
- "--select-trigger-height": "sizes.8",
5289
+ "--select-trigger-height": "sizes.6",
5283
5290
  "--select-trigger-padding-x": "spacing.2"
5284
5291
  },
5285
5292
  content: {
@@ -5288,6 +5295,7 @@ var selectSlotRecipe = defineSlotRecipe28({
5288
5295
  textStyle: "xs"
5289
5296
  },
5290
5297
  trigger: {
5298
+ borderRadius: "sm",
5291
5299
  textStyle: "xs",
5292
5300
  gap: "1"
5293
5301
  },
@@ -5308,7 +5316,7 @@ var selectSlotRecipe = defineSlotRecipe28({
5308
5316
  },
5309
5317
  sm: {
5310
5318
  root: {
5311
- "--select-trigger-height": "sizes.9",
5319
+ "--select-trigger-height": "sizes.7",
5312
5320
  "--select-trigger-padding-x": "spacing.2.5"
5313
5321
  },
5314
5322
  content: {
@@ -5316,6 +5324,7 @@ var selectSlotRecipe = defineSlotRecipe28({
5316
5324
  textStyle: "sm"
5317
5325
  },
5318
5326
  trigger: {
5327
+ borderRadius: "sm",
5319
5328
  textStyle: "sm",
5320
5329
  gap: "1"
5321
5330
  },
@@ -5339,7 +5348,7 @@ var selectSlotRecipe = defineSlotRecipe28({
5339
5348
  },
5340
5349
  md: {
5341
5350
  root: {
5342
- "--select-trigger-height": "sizes.10",
5351
+ "--select-trigger-height": "sizes.8",
5343
5352
  "--select-trigger-padding-x": "spacing.3"
5344
5353
  },
5345
5354
  content: {
@@ -5363,6 +5372,7 @@ var selectSlotRecipe = defineSlotRecipe28({
5363
5372
  px: "2"
5364
5373
  },
5365
5374
  trigger: {
5375
+ borderRadius: "md",
5366
5376
  textStyle: "sm",
5367
5377
  gap: "2"
5368
5378
  },
@@ -5375,7 +5385,7 @@ var selectSlotRecipe = defineSlotRecipe28({
5375
5385
  },
5376
5386
  lg: {
5377
5387
  root: {
5378
- "--select-trigger-height": "sizes.12",
5388
+ "--select-trigger-height": "sizes.10",
5379
5389
  "--select-trigger-padding-x": "spacing.4"
5380
5390
  },
5381
5391
  content: {
@@ -5394,6 +5404,7 @@ var selectSlotRecipe = defineSlotRecipe28({
5394
5404
  px: "3"
5395
5405
  },
5396
5406
  trigger: {
5407
+ borderRadius: "md",
5397
5408
  textStyle: "md",
5398
5409
  py: "3",
5399
5410
  gap: "2"
@@ -5690,7 +5701,15 @@ var pinInputSlotRecipe = defineSlotRecipe31({
5690
5701
  }
5691
5702
  },
5692
5703
  variants: {
5693
- size: mapEntries(variants2.size, (key, value) => [key, { input: value }]),
5704
+ size: mapEntries(variants2.size, (key, value) => [
5705
+ key,
5706
+ {
5707
+ input: {
5708
+ ...value,
5709
+ px: 0
5710
+ }
5711
+ }
5712
+ ]),
5694
5713
  variant: mapEntries(variants2.variant, (key, value) => [
5695
5714
  key,
5696
5715
  { input: value }
@@ -8423,6 +8442,7 @@ var spacing = defineTokens14.spacing({
8423
8442
  3: { value: scaleToken("0.75rem") },
8424
8443
  3.5: { value: scaleToken("0.875rem") },
8425
8444
  4: { value: scaleToken("1rem") },
8445
+ 4.5: { value: scaleToken("1.125rem") },
8426
8446
  5: { value: scaleToken("1.25rem") },
8427
8447
  6: { value: scaleToken("1.5rem") },
8428
8448
  7: { value: scaleToken("1.75rem") },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saas-ui/react",
3
- "version": "3.0.0-alpha.12",
3
+ "version": "3.0.0-alpha.14",
4
4
  "description": "Saas UI - The React component library for startups.",
5
5
  "type": "module",
6
6
  "exports": {