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

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @saas-ui/react
2
2
 
3
+ ## 3.0.0-alpha.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 61ce1b5: Fixed sidebar item end element positioning
8
+
9
+ ## 3.0.0-alpha.11
10
+
11
+ ### Patch Changes
12
+
13
+ - 19309d4: Improved Sidebar recipe with beter balance and added --sidebar-item-icon-color variable
14
+ - 19309d4: Improved font size balance
15
+
3
16
  ## 3.0.0-alpha.10
4
17
 
5
18
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -554,6 +554,7 @@ var import_react6 = require("@chakra-ui/react");
554
554
  var commandRecipe = (0, import_react6.defineRecipe)({
555
555
  className: "sui-command",
556
556
  base: {
557
+ colorPalette: "gray",
557
558
  display: "inline-flex",
558
559
  gap: 1,
559
560
  "[role=tooltip] > &": {
@@ -2656,7 +2657,9 @@ var sidebarNavItemSlotRecipe = (0, import_react33.defineSlotRecipe)({
2656
2657
  slots: ["item", "button", "endElement"],
2657
2658
  base: {
2658
2659
  item: {
2659
- position: "relative"
2660
+ position: "relative",
2661
+ fontSize: "sm",
2662
+ py: "1px"
2660
2663
  },
2661
2664
  button: {
2662
2665
  display: "flex",
@@ -2672,7 +2675,8 @@ var sidebarNavItemSlotRecipe = (0, import_react33.defineSlotRecipe)({
2672
2675
  transitionDuration: "fast",
2673
2676
  focusVisibleRing: "outside",
2674
2677
  "& > svg": {
2675
- boxSize: 4
2678
+ boxSize: 4,
2679
+ color: "var(--sidebar-item-icon-color)"
2676
2680
  },
2677
2681
  '&:has([data-slot="endElement"])': {
2678
2682
  pe: 0
@@ -2680,7 +2684,8 @@ var sidebarNavItemSlotRecipe = (0, import_react33.defineSlotRecipe)({
2680
2684
  },
2681
2685
  endElement: {
2682
2686
  display: "flex",
2683
- gap: "1px"
2687
+ gap: "1px",
2688
+ ms: "auto"
2684
2689
  }
2685
2690
  },
2686
2691
  variants: {
@@ -2689,13 +2694,16 @@ var sidebarNavItemSlotRecipe = (0, import_react33.defineSlotRecipe)({
2689
2694
  button: {
2690
2695
  bg: "transparent",
2691
2696
  color: "sidebar.accent.fg/85",
2697
+ "--sidebar-item-icon-color": "sidebar.accent.fg/85",
2692
2698
  _hover: {
2693
2699
  bg: "sidebar.accent.bg/90",
2694
- color: "sidebar.accent.fg"
2700
+ color: "sidebar.accent.fg",
2701
+ "--sidebar-item-icon-color": "sidebar.accent.fg"
2695
2702
  },
2696
2703
  _active: {
2697
2704
  bg: "sidebar.accent.bg",
2698
- color: "sidebar.accent.fg"
2705
+ color: "sidebar.accent.fg",
2706
+ "--sidebar-item-icon-color": "sidebar.accent.fg"
2699
2707
  }
2700
2708
  }
2701
2709
  }
@@ -2825,9 +2833,9 @@ var sidebarSlotRecipe = (0, import_react34.defineSlotRecipe)({
2825
2833
  }
2826
2834
  },
2827
2835
  groupContent: {
2836
+ pt: 1,
2828
2837
  display: "flex",
2829
- flexDirection: "column",
2830
- gap: "1"
2838
+ flexDirection: "column"
2831
2839
  },
2832
2840
  track: {
2833
2841
  display: "flex",
@@ -8437,8 +8445,8 @@ var easings = import_react85.defineTokens.easings({
8437
8445
  // src/theme/tokens/font-sizes.ts
8438
8446
  var import_react86 = require("@chakra-ui/react");
8439
8447
  var fontSizes = import_react86.defineTokens.fontSizes({
8440
- "2xs": { value: scaleToken("0.65rem") },
8441
- xs: { value: scaleToken("0.725rem") },
8448
+ "2xs": { value: scaleToken("0.75rem") },
8449
+ xs: { value: scaleToken("0.8125rem") },
8442
8450
  sm: { value: scaleToken("0.875rem") },
8443
8451
  md: { value: scaleToken("1rem") },
8444
8452
  lg: { value: scaleToken("1.125rem") },
package/dist/index.js CHANGED
@@ -1,24 +1,19 @@
1
1
  import {
2
- Tooltip
3
- } from "./chunk-QSNSWCTM.js";
2
+ Toaster,
3
+ toast
4
+ } from "./chunk-HELHPHIQ.js";
4
5
  import {
5
6
  colors
6
7
  } from "./chunk-3MO37LYW.js";
7
- import {
8
- SegmentedControl
9
- } from "./chunk-SKXSBAOS.js";
10
8
  import {
11
9
  SearchInput
12
10
  } from "./chunk-LIYUBUOP.js";
11
+ import {
12
+ SegmentedControl
13
+ } from "./chunk-SKXSBAOS.js";
13
14
  import {
14
15
  namespace_exports as namespace_exports3
15
16
  } from "./chunk-S3CQW7GD.js";
16
- import {
17
- sidebar_exports,
18
- useSidebar,
19
- useSidebarItemStyles,
20
- useSidebarStyles
21
- } from "./chunk-GGAKUS66.js";
22
17
  import {
23
18
  steps_exports
24
19
  } from "./chunk-6LOMIKR5.js";
@@ -26,9 +21,14 @@ import {
26
21
  Switch
27
22
  } from "./chunk-SA3OGTOO.js";
28
23
  import {
29
- Toaster,
30
- toast
31
- } from "./chunk-HELHPHIQ.js";
24
+ sidebar_exports,
25
+ useSidebar,
26
+ useSidebarItemStyles,
27
+ useSidebarStyles
28
+ } from "./chunk-GGAKUS66.js";
29
+ import {
30
+ Tooltip
31
+ } from "./chunk-QSNSWCTM.js";
32
32
  import {
33
33
  loading_overlay_exports,
34
34
  useLoadingOverlayStyles
@@ -36,12 +36,12 @@ import {
36
36
  import {
37
37
  Spinner
38
38
  } from "./chunk-32JGENDB.js";
39
- import {
40
- menu_exports
41
- } from "./chunk-JGHXJ3PI.js";
42
39
  import {
43
40
  navbar_exports
44
41
  } 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";
@@ -98,12 +98,12 @@ import {
98
98
  import {
99
99
  breadcrumb_exports
100
100
  } from "./chunk-TT4C5VXB.js";
101
- import {
102
- Checkbox
103
- } from "./chunk-L356FPLY.js";
104
101
  import {
105
102
  Button
106
103
  } from "./chunk-BCNPBZZK.js";
104
+ import {
105
+ Checkbox
106
+ } from "./chunk-L356FPLY.js";
107
107
  import {
108
108
  CloseButton
109
109
  } from "./chunk-FZW2DYK3.js";
@@ -587,6 +587,7 @@ import { defineRecipe as defineRecipe2 } from "@chakra-ui/react";
587
587
  var commandRecipe = defineRecipe2({
588
588
  className: "sui-command",
589
589
  base: {
590
+ colorPalette: "gray",
590
591
  display: "inline-flex",
591
592
  gap: 1,
592
593
  "[role=tooltip] > &": {
@@ -2589,7 +2590,10 @@ var navbarSlotRecipe = defineSlotRecipe4({
2589
2590
  });
2590
2591
 
2591
2592
  // src/components/persona/persona.recipe.ts
2592
- import { defineSlotRecipe as defineSlotRecipe5, defineStyle } from "@chakra-ui/react";
2593
+ import {
2594
+ defineSlotRecipe as defineSlotRecipe5,
2595
+ defineStyle
2596
+ } from "@chakra-ui/react";
2593
2597
  var baseStyleLabel = defineStyle({
2594
2598
  overflow: "hidden",
2595
2599
  whiteSpace: "nowrap",
@@ -2689,7 +2693,9 @@ var sidebarNavItemSlotRecipe = defineSlotRecipe6({
2689
2693
  slots: ["item", "button", "endElement"],
2690
2694
  base: {
2691
2695
  item: {
2692
- position: "relative"
2696
+ position: "relative",
2697
+ fontSize: "sm",
2698
+ py: "1px"
2693
2699
  },
2694
2700
  button: {
2695
2701
  display: "flex",
@@ -2705,7 +2711,8 @@ var sidebarNavItemSlotRecipe = defineSlotRecipe6({
2705
2711
  transitionDuration: "fast",
2706
2712
  focusVisibleRing: "outside",
2707
2713
  "& > svg": {
2708
- boxSize: 4
2714
+ boxSize: 4,
2715
+ color: "var(--sidebar-item-icon-color)"
2709
2716
  },
2710
2717
  '&:has([data-slot="endElement"])': {
2711
2718
  pe: 0
@@ -2713,7 +2720,8 @@ var sidebarNavItemSlotRecipe = defineSlotRecipe6({
2713
2720
  },
2714
2721
  endElement: {
2715
2722
  display: "flex",
2716
- gap: "1px"
2723
+ gap: "1px",
2724
+ ms: "auto"
2717
2725
  }
2718
2726
  },
2719
2727
  variants: {
@@ -2722,13 +2730,16 @@ var sidebarNavItemSlotRecipe = defineSlotRecipe6({
2722
2730
  button: {
2723
2731
  bg: "transparent",
2724
2732
  color: "sidebar.accent.fg/85",
2733
+ "--sidebar-item-icon-color": "sidebar.accent.fg/85",
2725
2734
  _hover: {
2726
2735
  bg: "sidebar.accent.bg/90",
2727
- color: "sidebar.accent.fg"
2736
+ color: "sidebar.accent.fg",
2737
+ "--sidebar-item-icon-color": "sidebar.accent.fg"
2728
2738
  },
2729
2739
  _active: {
2730
2740
  bg: "sidebar.accent.bg",
2731
- color: "sidebar.accent.fg"
2741
+ color: "sidebar.accent.fg",
2742
+ "--sidebar-item-icon-color": "sidebar.accent.fg"
2732
2743
  }
2733
2744
  }
2734
2745
  }
@@ -2858,9 +2869,9 @@ var sidebarSlotRecipe = defineSlotRecipe7({
2858
2869
  }
2859
2870
  },
2860
2871
  groupContent: {
2872
+ pt: 1,
2861
2873
  display: "flex",
2862
- flexDirection: "column",
2863
- gap: "1"
2874
+ flexDirection: "column"
2864
2875
  },
2865
2876
  track: {
2866
2877
  display: "flex",
@@ -8149,8 +8160,8 @@ var easings = defineTokens7.easings({
8149
8160
  // src/theme/tokens/font-sizes.ts
8150
8161
  import { defineTokens as defineTokens8 } from "@chakra-ui/react";
8151
8162
  var fontSizes = defineTokens8.fontSizes({
8152
- "2xs": { value: scaleToken("0.65rem") },
8153
- xs: { value: scaleToken("0.725rem") },
8163
+ "2xs": { value: scaleToken("0.75rem") },
8164
+ xs: { value: scaleToken("0.8125rem") },
8154
8165
  sm: { value: scaleToken("0.875rem") },
8155
8166
  md: { value: scaleToken("1rem") },
8156
8167
  lg: { value: scaleToken("1.125rem") },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saas-ui/react",
3
- "version": "3.0.0-alpha.10",
3
+ "version": "3.0.0-alpha.12",
4
4
  "description": "Saas UI - The React component library for startups.",
5
5
  "type": "module",
6
6
  "exports": {