@saas-ui/react 3.0.0-alpha.7 → 3.0.0-alpha.9

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/index.js CHANGED
@@ -1,19 +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-IFYV7NUJ.js";
8
7
  import {
9
8
  SearchInput
10
9
  } from "./chunk-LIYUBUOP.js";
11
- import {
12
- namespace_exports as namespace_exports3
13
- } from "./chunk-S3CQW7GD.js";
14
10
  import {
15
11
  SegmentedControl
16
12
  } from "./chunk-SKXSBAOS.js";
13
+ import {
14
+ namespace_exports as namespace_exports3
15
+ } from "./chunk-S3CQW7GD.js";
17
16
  import {
18
17
  sidebar_exports,
19
18
  useSidebar,
@@ -23,31 +22,32 @@ import {
23
22
  import {
24
23
  Switch
25
24
  } from "./chunk-SA3OGTOO.js";
26
- import {
27
- Tooltip
28
- } from "./chunk-QSNSWCTM.js";
29
25
  import {
30
26
  steps_exports
31
27
  } from "./chunk-6LOMIKR5.js";
32
28
  import {
33
- menu_exports
34
- } from "./chunk-5T7S5OAM.js";
29
+ Toaster,
30
+ toast
31
+ } from "./chunk-HELHPHIQ.js";
35
32
  import {
36
33
  loading_overlay_exports,
37
34
  useLoadingOverlayStyles
38
- } from "./chunk-YWJZWB6I.js";
35
+ } from "./chunk-7VSTNV2B.js";
39
36
  import {
40
37
  Spinner
41
38
  } from "./chunk-32JGENDB.js";
42
39
  import {
43
- navbar_exports
44
- } from "./chunk-3Z2C27LI.js";
40
+ menu_exports
41
+ } from "./chunk-JGHXJ3PI.js";
45
42
  import {
46
43
  NumberInput
47
44
  } from "./chunk-ULAJ3JEO.js";
48
45
  import {
49
46
  PasswordInput
50
47
  } from "./chunk-CD2JUFI2.js";
48
+ import {
49
+ navbar_exports
50
+ } from "./chunk-Q6SNJJO2.js";
51
51
  import {
52
52
  Persona,
53
53
  PersonaAvatar,
@@ -60,49 +60,50 @@ import {
60
60
  Radio,
61
61
  RadioGroup
62
62
  } from "./chunk-WYLMBMAH.js";
63
- import {
64
- namespace_exports
65
- } from "./chunk-ZWSZQZ5G.js";
66
63
  import {
67
64
  namespace_exports as namespace_exports2
68
- } from "./chunk-GEPWRHHH.js";
69
- import "./chunk-VBIVLREP.js";
65
+ } from "./chunk-H6TFEHY4.js";
66
+ import {
67
+ namespace_exports
68
+ } from "./chunk-CB52LBJK.js";
70
69
  import {
71
70
  EmptyState
72
71
  } from "./chunk-FJFNGSPL.js";
73
- import {
74
- grid_list_exports
75
- } from "./chunk-NSD5HRIP.js";
76
72
  import {
77
73
  IconBadge
78
74
  } from "./chunk-I2RXEKTB.js";
75
+ import {
76
+ grid_list_exports
77
+ } from "./chunk-NSD5HRIP.js";
79
78
  import "./chunk-KTLWEUNW.js";
80
79
  import {
81
80
  InputGroup
82
81
  } from "./chunk-PKI6YH2V.js";
83
82
  import {
84
- Link,
83
+ Link
84
+ } from "./chunk-TZBAM4AD.js";
85
+ import {
85
86
  SuiContext,
86
87
  SuiProvider,
87
88
  useLink,
88
89
  useSui
89
- } from "./chunk-BFA5FCA2.js";
90
+ } from "./chunk-O2WVT2BP.js";
91
+ import {
92
+ AppShell
93
+ } from "./chunk-6ZNR6N2K.js";
90
94
  import {
91
95
  Avatar,
92
96
  AvatarGroup
93
97
  } from "./chunk-UCQ3LZIE.js";
94
- import {
95
- AppShell
96
- } from "./chunk-6ZNR6N2K.js";
97
98
  import {
98
99
  breadcrumb_exports
99
100
  } from "./chunk-TT4C5VXB.js";
100
- import {
101
- Checkbox
102
- } from "./chunk-L356FPLY.js";
103
101
  import {
104
102
  Button
105
103
  } from "./chunk-BCNPBZZK.js";
104
+ import {
105
+ Checkbox
106
+ } from "./chunk-L356FPLY.js";
106
107
  import {
107
108
  CloseButton
108
109
  } from "./chunk-FZW2DYK3.js";
@@ -411,6 +412,7 @@ import { defineRecipe } from "@chakra-ui/react";
411
412
  var buttonRecipe = defineRecipe({
412
413
  className: "chakra-button",
413
414
  base: {
415
+ colorPalette: "gray",
414
416
  display: "inline-flex",
415
417
  appearance: "none",
416
418
  alignItems: "center",
@@ -2444,7 +2446,7 @@ var navbarSlotRecipe = defineSlotRecipe4({
2444
2446
  whiteSpace: "nowrap",
2445
2447
  boxSizing: "border-box"
2446
2448
  },
2447
- item: {
2449
+ link: {
2448
2450
  bg: "transparent",
2449
2451
  color: "currentColor",
2450
2452
  display: "inline-flex",
@@ -2500,7 +2502,7 @@ var navbarSlotRecipe = defineSlotRecipe4({
2500
2502
  },
2501
2503
  gap: 4
2502
2504
  },
2503
- item: {
2505
+ link: {
2504
2506
  px: 3,
2505
2507
  h: 8
2506
2508
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saas-ui/react",
3
- "version": "3.0.0-alpha.7",
3
+ "version": "3.0.0-alpha.9",
4
4
  "description": "Saas UI - The React component library for startups.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -69,11 +69,12 @@
69
69
  "url": "https://storybook.saas-ui.dev"
70
70
  },
71
71
  "dependencies": {
72
+ "@ark-ui/react": "^4.4.4",
72
73
  "@saas-ui/core": "3.0.0-alpha.4",
73
74
  "@saas-ui/hooks": "3.0.0-alpha.4"
74
75
  },
75
76
  "peerDependencies": {
76
- "@chakra-ui/react": "^3.2.1",
77
+ "@chakra-ui/react": "^3.2.2",
77
78
  "@emotion/react": "^11",
78
79
  "react": ">=18",
79
80
  "react-dom": ">=18"
@@ -1,45 +0,0 @@
1
- 'use client'
2
-
3
- // ../../node_modules/@ark-ui/react/dist/utils/create-context.js
4
- import { createContext as createContext$1, useContext } from "react";
5
- function getErrorMessage(hook, provider) {
6
- return `${hook} returned \`undefined\`. Seems you forgot to wrap component within ${provider}`;
7
- }
8
- function createContext(options = {}) {
9
- const {
10
- name,
11
- strict = true,
12
- hookName = "useContext",
13
- providerName = "Provider",
14
- errorMessage,
15
- defaultValue
16
- } = options;
17
- const Context = createContext$1(defaultValue);
18
- Context.displayName = name;
19
- function useContext$1() {
20
- var _a;
21
- const context = useContext(Context);
22
- if (!context && strict) {
23
- const error = new Error(errorMessage != null ? errorMessage : getErrorMessage(hookName, providerName));
24
- error.name = "ContextError";
25
- (_a = Error.captureStackTrace) == null ? void 0 : _a.call(Error, error, useContext$1);
26
- throw error;
27
- }
28
- return context;
29
- }
30
- return [Context.Provider, useContext$1, Context];
31
- }
32
-
33
- // ../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js
34
- var [DialogProvider, useDialogContext] = createContext({
35
- name: "DialogContext",
36
- hookName: "useDialogContext",
37
- providerName: "<DialogProvider />"
38
- });
39
-
40
- // ../../node_modules/@ark-ui/react/dist/components/dialog/dialog-context.js
41
- var DialogContext = (props) => props.children(useDialogContext());
42
-
43
- export {
44
- DialogContext
45
- };