@saas-ui/react 3.0.0-alpha.16 → 3.0.0-alpha.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/{chunk-LIYUBUOP.js → chunk-46ISJZBS.js} +1 -1
  3. package/dist/{chunk-VDXTEASE.js → chunk-4TPVIHNO.js} +10 -1
  4. package/dist/{chunk-CB52LBJK.js → chunk-72LEGXHY.js} +1 -1
  5. package/dist/{chunk-FZW2DYK3.js → chunk-BKYGKH3L.js} +1 -1
  6. package/dist/{chunk-S3CQW7GD.js → chunk-BU7QENBQ.js} +1 -1
  7. package/dist/{chunk-KK77TYNL.js → chunk-C7B3ELC4.js} +1 -1
  8. package/dist/chunk-MLJN6IOJ.js +96 -0
  9. package/dist/{chunk-44ZA3TYW.js → chunk-VZG7EJ64.js} +1 -1
  10. package/dist/{chunk-H6TFEHY4.js → chunk-WS5XGFSL.js} +1 -1
  11. package/dist/components/close-button/index.cjs +8 -0
  12. package/dist/components/close-button/index.js +2 -2
  13. package/dist/components/dialog/index.cjs +8 -0
  14. package/dist/components/dialog/index.js +3 -3
  15. package/dist/components/drawer/index.cjs +8 -0
  16. package/dist/components/drawer/index.js +3 -3
  17. package/dist/components/grid-list/index.d.cts +4 -4
  18. package/dist/components/grid-list/index.d.ts +4 -4
  19. package/dist/components/icons/index.cjs +10 -0
  20. package/dist/components/icons/index.d.cts +2 -1
  21. package/dist/components/icons/index.d.ts +2 -1
  22. package/dist/components/icons/index.js +3 -1
  23. package/dist/components/menu/index.cjs +8 -0
  24. package/dist/components/menu/index.js +2 -2
  25. package/dist/components/pagination/index.cjs +215 -0
  26. package/dist/components/pagination/index.d.cts +41 -0
  27. package/dist/components/pagination/index.d.ts +41 -0
  28. package/dist/components/pagination/index.js +9 -0
  29. package/dist/components/search-input/index.cjs +8 -0
  30. package/dist/components/search-input/index.js +2 -2
  31. package/dist/components/select/index.cjs +8 -0
  32. package/dist/components/select/index.js +3 -3
  33. package/dist/components/steps/index.cjs +8 -0
  34. package/dist/components/steps/index.js +2 -2
  35. package/dist/index.cjs +331 -231
  36. package/dist/index.d.cts +1 -0
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.js +96 -78
  39. package/package.json +2 -2
package/dist/index.d.cts CHANGED
@@ -22,6 +22,7 @@ export { LoadingOverlay, useLoadingOverlayStyles } from './components/loading-ov
22
22
  export { Navbar } from './components/navbar/index.cjs';
23
23
  export { NumberInput, NumberInputProps } from './components/number-input/index.cjs';
24
24
  export { Menu } from './components/menu/index.cjs';
25
+ export { Pagination } from './components/pagination/index.cjs';
25
26
  export { PasswordInput, PasswordInputProps } from './components/password-input/index.cjs';
26
27
  export { Persona, PersonaAvatar, PersonaAvatarProps, PersonaProps, Presence, PresenceConfig, defaultPresenceOptions } from './components/persona/index.cjs';
27
28
  export { PinInput, PinInputProps } from './components/pin-input/index.cjs';
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export { LoadingOverlay, useLoadingOverlayStyles } from './components/loading-ov
22
22
  export { Navbar } from './components/navbar/index.js';
23
23
  export { NumberInput, NumberInputProps } from './components/number-input/index.js';
24
24
  export { Menu } from './components/menu/index.js';
25
+ export { Pagination } from './components/pagination/index.js';
25
26
  export { PasswordInput, PasswordInputProps } from './components/password-input/index.js';
26
27
  export { Persona, PersonaAvatar, PersonaAvatarProps, PersonaProps, Presence, PresenceConfig, defaultPresenceOptions } from './components/persona/index.js';
27
28
  export { PinInput, PinInputProps } from './components/pin-input/index.js';
package/dist/index.js CHANGED
@@ -1,53 +1,60 @@
1
1
  import {
2
2
  Tooltip
3
3
  } from "./chunk-QSNSWCTM.js";
4
+ import {
5
+ Toaster,
6
+ toast
7
+ } from "./chunk-HELHPHIQ.js";
4
8
  import {
5
9
  colors
6
10
  } from "./chunk-3MO37LYW.js";
7
11
  import {
8
- SearchInput
9
- } from "./chunk-LIYUBUOP.js";
12
+ Radio,
13
+ RadioGroup
14
+ } from "./chunk-WYLMBMAH.js";
10
15
  import {
11
16
  SegmentedControl
12
17
  } from "./chunk-SKXSBAOS.js";
18
+ import {
19
+ SearchInput
20
+ } from "./chunk-46ISJZBS.js";
13
21
  import {
14
22
  namespace_exports as namespace_exports3
15
- } from "./chunk-S3CQW7GD.js";
23
+ } from "./chunk-BU7QENBQ.js";
24
+ import {
25
+ steps_exports
26
+ } from "./chunk-VZG7EJ64.js";
16
27
  import {
17
28
  sidebar_exports,
18
29
  useSidebar,
19
30
  useSidebarItemStyles,
20
31
  useSidebarStyles
21
32
  } from "./chunk-GGAKUS66.js";
22
- import {
23
- steps_exports
24
- } from "./chunk-44ZA3TYW.js";
25
33
  import {
26
34
  Switch
27
35
  } from "./chunk-SA3OGTOO.js";
28
- import {
29
- Toaster,
30
- toast
31
- } from "./chunk-HELHPHIQ.js";
32
- import {
33
- loading_overlay_exports,
34
- useLoadingOverlayStyles
35
- } from "./chunk-7VSTNV2B.js";
36
- import {
37
- Spinner
38
- } from "./chunk-32JGENDB.js";
39
36
  import {
40
37
  menu_exports
41
- } from "./chunk-KK77TYNL.js";
38
+ } from "./chunk-C7B3ELC4.js";
42
39
  import {
43
40
  navbar_exports
44
41
  } from "./chunk-Q6SNJJO2.js";
45
42
  import {
46
43
  NumberInput
47
44
  } from "./chunk-ULAJ3JEO.js";
45
+ import {
46
+ loading_overlay_exports,
47
+ useLoadingOverlayStyles
48
+ } from "./chunk-7VSTNV2B.js";
49
+ import {
50
+ Spinner
51
+ } from "./chunk-32JGENDB.js";
48
52
  import {
49
53
  PasswordInput
50
54
  } from "./chunk-CD2JUFI2.js";
55
+ import {
56
+ pagination_exports
57
+ } from "./chunk-MLJN6IOJ.js";
51
58
  import {
52
59
  Persona,
53
60
  PersonaAvatar,
@@ -56,16 +63,9 @@ import {
56
63
  import {
57
64
  PinInput
58
65
  } from "./chunk-2EUACKRH.js";
59
- import {
60
- Radio,
61
- RadioGroup
62
- } from "./chunk-WYLMBMAH.js";
63
- import {
64
- namespace_exports
65
- } from "./chunk-CB52LBJK.js";
66
66
  import {
67
67
  namespace_exports as namespace_exports2
68
- } from "./chunk-H6TFEHY4.js";
68
+ } from "./chunk-WS5XGFSL.js";
69
69
  import {
70
70
  EmptyState
71
71
  } from "./chunk-FJFNGSPL.js";
@@ -75,6 +75,9 @@ import {
75
75
  import {
76
76
  IconBadge
77
77
  } from "./chunk-I2RXEKTB.js";
78
+ import {
79
+ namespace_exports
80
+ } from "./chunk-72LEGXHY.js";
78
81
  import "./chunk-KTLWEUNW.js";
79
82
  import {
80
83
  InputGroup
@@ -106,8 +109,8 @@ import {
106
109
  } from "./chunk-L356FPLY.js";
107
110
  import {
108
111
  CloseButton
109
- } from "./chunk-FZW2DYK3.js";
110
- import "./chunk-VDXTEASE.js";
112
+ } from "./chunk-BKYGKH3L.js";
113
+ import "./chunk-4TPVIHNO.js";
111
114
  import {
112
115
  Command
113
116
  } from "./chunk-UASXI64E.js";
@@ -2302,7 +2305,7 @@ var appShellSlotRecipe = defineSlotRecipe({
2302
2305
  position: {
2303
2306
  static: {
2304
2307
  root: {
2305
- height: "100vh"
2308
+ height: "100dvh"
2306
2309
  }
2307
2310
  },
2308
2311
  fullscreen: {
@@ -2313,18 +2316,12 @@ var appShellSlotRecipe = defineSlotRecipe({
2313
2316
  }
2314
2317
  },
2315
2318
  variant: {
2316
- plain: {},
2317
- raised: {
2318
- main: {
2319
- boxShadow: "xs",
2320
- zIndex: "layer-1"
2321
- }
2322
- }
2319
+ plain: {}
2323
2320
  }
2324
2321
  },
2325
2322
  defaultVariants: {
2326
2323
  position: "static",
2327
- variant: "raised"
2324
+ variant: "plain"
2328
2325
  }
2329
2326
  });
2330
2327
 
@@ -2335,7 +2332,6 @@ var gridListSlotRecipe = defineSlotRecipe2({
2335
2332
  slots: ["root", "item", "header", "cell"],
2336
2333
  base: {
2337
2334
  root: {
2338
- py: 2,
2339
2335
  position: "relative"
2340
2336
  },
2341
2337
  item: {
@@ -2344,35 +2340,14 @@ var gridListSlotRecipe = defineSlotRecipe2({
2344
2340
  alignItems: "center",
2345
2341
  justifyContent: "space-between",
2346
2342
  flex: 1,
2347
- cursor: "pointer",
2348
2343
  userSelect: "none",
2349
- transitionProperty: "common",
2350
- transitionDuration: "normal",
2351
2344
  borderRadius: "inherit",
2352
2345
  outline: "none",
2353
- _hover: {
2354
- bg: "blackAlpha.50",
2355
- _dark: {
2356
- bg: "whiteAlpha.50"
2357
- }
2358
- },
2359
2346
  _focusVisible: {
2360
2347
  boxShadow: "outline"
2361
2348
  },
2362
- _focus: {
2363
- bg: "blackAlpha.50",
2364
- _dark: {
2365
- bg: "whiteAlpha.50"
2366
- }
2367
- },
2368
- _active: {
2369
- bg: "blackAlpha.100",
2370
- _dark: {
2371
- bg: "whiteAlpha.100"
2372
- }
2373
- },
2374
2349
  _disabled: {
2375
- cursor: "inherit",
2350
+ cursor: "disabled",
2376
2351
  opacity: 0.5,
2377
2352
  _hover: {
2378
2353
  bg: "transparent",
@@ -2394,50 +2369,92 @@ var gridListSlotRecipe = defineSlotRecipe2({
2394
2369
  position: "sticky",
2395
2370
  fontSize: "md",
2396
2371
  fontWeight: "semibold",
2397
- color: "muted"
2372
+ color: "fg.muted"
2398
2373
  },
2399
2374
  cell: {
2400
- display: "flex",
2401
2375
  flexShrink: 0
2402
2376
  }
2403
2377
  },
2404
2378
  variants: {
2379
+ interactive: {
2380
+ true: {
2381
+ item: {
2382
+ cursor: "button",
2383
+ transitionProperty: "bg",
2384
+ transitionDuration: "fast",
2385
+ _hover: {
2386
+ bg: "bg.subtle"
2387
+ },
2388
+ _active: {
2389
+ bg: "bg.subtle"
2390
+ }
2391
+ }
2392
+ }
2393
+ },
2394
+ variant: {
2395
+ simple: {},
2396
+ rounded: {
2397
+ item: {
2398
+ borderRadius: "md",
2399
+ mb: 0.5
2400
+ }
2401
+ }
2402
+ },
2405
2403
  size: {
2406
2404
  sm: {
2407
2405
  root: {
2408
- fontSize: "sm"
2406
+ textStyle: "sm",
2407
+ py: 0.5
2409
2408
  },
2410
2409
  item: {
2411
2410
  py: 1,
2412
- px: 1
2411
+ px: 2,
2412
+ gap: 1
2413
2413
  },
2414
2414
  header: {
2415
2415
  py: 1,
2416
- px: 1
2417
- },
2418
- cell: {
2419
- px: 1
2416
+ px: 2
2420
2417
  }
2421
2418
  },
2422
2419
  md: {
2423
2420
  root: {
2424
- fontSize: "md"
2421
+ textStyle: "md",
2422
+ py: 1
2425
2423
  },
2426
2424
  item: {
2427
2425
  py: 2,
2428
- px: 2
2426
+ px: 3,
2427
+ gap: 2
2429
2428
  },
2430
2429
  header: {
2431
2430
  py: 2,
2432
- px: 2
2433
- },
2434
- cell: {
2435
- px: 2
2431
+ px: 3
2436
2432
  }
2437
2433
  }
2438
2434
  }
2439
2435
  },
2436
+ compoundVariants: [
2437
+ {
2438
+ variant: "rounded",
2439
+ size: "sm",
2440
+ css: {
2441
+ root: {
2442
+ p: 1
2443
+ }
2444
+ }
2445
+ },
2446
+ {
2447
+ variant: "rounded",
2448
+ size: "md",
2449
+ css: {
2450
+ root: {
2451
+ p: 2
2452
+ }
2453
+ }
2454
+ }
2455
+ ],
2440
2456
  defaultVariants: {
2457
+ variant: "simple",
2441
2458
  size: "md"
2442
2459
  }
2443
2460
  });
@@ -2520,7 +2537,7 @@ var navbarSlotRecipe = defineSlotRecipe4({
2520
2537
  top: 0,
2521
2538
  insetX: 0,
2522
2539
  transitionProperty: "common",
2523
- transitionDuration: "normal",
2540
+ transitionDuration: "moderate",
2524
2541
  transitionTimingFunction: "ease-in-out",
2525
2542
  _hidden: {
2526
2543
  transform: "translateY(-100%)"
@@ -2556,7 +2573,7 @@ var navbarSlotRecipe = defineSlotRecipe4({
2556
2573
  boxSizing: "border-box",
2557
2574
  borderRadius: "md",
2558
2575
  transitionProperty: "common",
2559
- transitionDuration: "normal",
2576
+ transitionDuration: "moderate",
2560
2577
  lineHeight: 1,
2561
2578
  _focusVisible: {
2562
2579
  outline: "none",
@@ -4605,7 +4622,7 @@ var editableSlotRecipe = defineSlotRecipe21({
4605
4622
  display: "inline-flex",
4606
4623
  alignItems: "center",
4607
4624
  transitionProperty: "common",
4608
- transitionDuration: "normal",
4625
+ transitionDuration: "moderate",
4609
4626
  cursor: "text",
4610
4627
  _hover: {
4611
4628
  bg: "bg.muted"
@@ -4620,7 +4637,7 @@ var editableSlotRecipe = defineSlotRecipe21({
4620
4637
  py: "1",
4621
4638
  px: "1",
4622
4639
  transitionProperty: "common",
4623
- transitionDuration: "normal",
4640
+ transitionDuration: "moderate",
4624
4641
  width: "full",
4625
4642
  focusVisibleRing: "inside",
4626
4643
  focusRingWidth: "2px",
@@ -8675,6 +8692,7 @@ export {
8675
8692
  menu_exports as Menu,
8676
8693
  navbar_exports as Navbar,
8677
8694
  NumberInput,
8695
+ pagination_exports as Pagination,
8678
8696
  PasswordInput,
8679
8697
  Persona,
8680
8698
  PersonaAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saas-ui/react",
3
- "version": "3.0.0-alpha.16",
3
+ "version": "3.0.0-alpha.18",
4
4
  "description": "Saas UI - The React component library for startups.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@ark-ui/react": "^4.4.4",
73
- "@saas-ui/core": "3.0.0-alpha.4",
73
+ "@saas-ui/core": "3.0.0-alpha.5",
74
74
  "@saas-ui/hooks": "3.0.0-alpha.4"
75
75
  },
76
76
  "peerDependencies": {