@chakra-ui/panda-preset 3.28.1 → 3.29.0

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.
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ 'use strict';
3
+
4
+ var def = require('../def.cjs');
5
+
6
+ const carouselSlotRecipe = def.defineSlotRecipe({
7
+ className: "carousel",
8
+ slots: [
9
+ "root",
10
+ "itemGroup",
11
+ "item",
12
+ "control",
13
+ "nextTrigger",
14
+ "prevTrigger",
15
+ "indicatorGroup",
16
+ "indicator",
17
+ "autoplayTrigger"
18
+ ],
19
+ base: {
20
+ root: {
21
+ position: "relative",
22
+ display: "flex",
23
+ gap: "2",
24
+ _horizontal: {
25
+ flexDirection: "column"
26
+ },
27
+ _vertical: {
28
+ flexDirection: "row"
29
+ }
30
+ },
31
+ item: {
32
+ _horizontal: {
33
+ width: "100%"
34
+ },
35
+ _vertical: {
36
+ height: "100%"
37
+ }
38
+ },
39
+ control: {
40
+ display: "flex",
41
+ alignItems: "center",
42
+ _horizontal: {
43
+ flexDirection: "row",
44
+ width: "100%"
45
+ },
46
+ _vertical: {
47
+ flexDirection: "column",
48
+ height: "100%"
49
+ }
50
+ },
51
+ indicatorGroup: {
52
+ display: "flex",
53
+ justifyContent: "center",
54
+ gap: "3",
55
+ _horizontal: {
56
+ flexDirection: "row"
57
+ },
58
+ _vertical: {
59
+ flexDirection: "column"
60
+ }
61
+ },
62
+ indicator: {
63
+ width: "2.5",
64
+ height: "2.5",
65
+ borderRadius: "full",
66
+ bg: "colorPalette.subtle",
67
+ cursor: "button",
68
+ _current: {
69
+ bg: "colorPalette.solid"
70
+ }
71
+ }
72
+ },
73
+ defaultVariants: {}
74
+ });
75
+
76
+ exports.carouselSlotRecipe = carouselSlotRecipe;
@@ -39,6 +39,17 @@ const comboboxSlotRecipe = def.defineSlotRecipe({
39
39
  layerStyle: "disabled"
40
40
  }
41
41
  },
42
+ control: {
43
+ pos: "relative",
44
+ "--padding-factor": "1",
45
+ "--combobox-input-padding-end": "var(--combobox-input-padding-x)",
46
+ "&:has([data-part=trigger]), &:has([data-part=clear-trigger])": {
47
+ "--combobox-input-padding-end": "calc(var(--combobox-input-height) * var(--padding-factor))"
48
+ },
49
+ "&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))": {
50
+ "--padding-factor": "1.5"
51
+ }
52
+ },
42
53
  input: {
43
54
  display: "flex",
44
55
  alignItems: "center",
@@ -46,7 +57,8 @@ const comboboxSlotRecipe = def.defineSlotRecipe({
46
57
  background: "bg.panel",
47
58
  width: "full",
48
59
  minH: "var(--combobox-input-height)",
49
- px: "var(--combobox-input-padding-x)",
60
+ ps: "var(--combobox-input-padding-x)",
61
+ pe: "var(--combobox-input-padding-end)",
50
62
  "--input-height": "var(--combobox-input-height)",
51
63
  borderRadius: "l2",
52
64
  outline: 0,
@@ -78,9 +90,6 @@ const comboboxSlotRecipe = def.defineSlotRecipe({
78
90
  focusRingWidth: "2px",
79
91
  rounded: "l1"
80
92
  },
81
- control: {
82
- pos: "relative"
83
- },
84
93
  indicatorGroup: {
85
94
  display: "flex",
86
95
  alignItems: "center",
@@ -8,6 +8,7 @@ var avatar = require('./avatar.cjs');
8
8
  var blockquote = require('./blockquote.cjs');
9
9
  var breadcrumb = require('./breadcrumb.cjs');
10
10
  var card = require('./card.cjs');
11
+ var carousel = require('./carousel.cjs');
11
12
  var checkbox = require('./checkbox.cjs');
12
13
  var checkboxCard = require('./checkbox-card.cjs');
13
14
  var codeBlock = require('./code-block.cjs');
@@ -61,6 +62,7 @@ const slotRecipes = {
61
62
  blockquote: blockquote.blockquoteSlotRecipe,
62
63
  breadcrumb: breadcrumb.breadcrumbSlotRecipe,
63
64
  card: card.cardSlotRecipe,
65
+ carousel: carousel.carouselSlotRecipe,
64
66
  checkbox: checkbox.checkboxSlotRecipe,
65
67
  checkboxCard: checkboxCard.checkboxCardSlotRecipe,
66
68
  codeBlock: codeBlock.codeBlockSlotRecipe,
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ import { defineSlotRecipe } from '../def.js';
3
+
4
+ const carouselSlotRecipe = defineSlotRecipe({
5
+ className: "carousel",
6
+ slots: [
7
+ "root",
8
+ "itemGroup",
9
+ "item",
10
+ "control",
11
+ "nextTrigger",
12
+ "prevTrigger",
13
+ "indicatorGroup",
14
+ "indicator",
15
+ "autoplayTrigger"
16
+ ],
17
+ base: {
18
+ root: {
19
+ position: "relative",
20
+ display: "flex",
21
+ gap: "2",
22
+ _horizontal: {
23
+ flexDirection: "column"
24
+ },
25
+ _vertical: {
26
+ flexDirection: "row"
27
+ }
28
+ },
29
+ item: {
30
+ _horizontal: {
31
+ width: "100%"
32
+ },
33
+ _vertical: {
34
+ height: "100%"
35
+ }
36
+ },
37
+ control: {
38
+ display: "flex",
39
+ alignItems: "center",
40
+ _horizontal: {
41
+ flexDirection: "row",
42
+ width: "100%"
43
+ },
44
+ _vertical: {
45
+ flexDirection: "column",
46
+ height: "100%"
47
+ }
48
+ },
49
+ indicatorGroup: {
50
+ display: "flex",
51
+ justifyContent: "center",
52
+ gap: "3",
53
+ _horizontal: {
54
+ flexDirection: "row"
55
+ },
56
+ _vertical: {
57
+ flexDirection: "column"
58
+ }
59
+ },
60
+ indicator: {
61
+ width: "2.5",
62
+ height: "2.5",
63
+ borderRadius: "full",
64
+ bg: "colorPalette.subtle",
65
+ cursor: "button",
66
+ _current: {
67
+ bg: "colorPalette.solid"
68
+ }
69
+ }
70
+ },
71
+ defaultVariants: {}
72
+ });
73
+
74
+ export { carouselSlotRecipe };
@@ -37,6 +37,17 @@ const comboboxSlotRecipe = defineSlotRecipe({
37
37
  layerStyle: "disabled"
38
38
  }
39
39
  },
40
+ control: {
41
+ pos: "relative",
42
+ "--padding-factor": "1",
43
+ "--combobox-input-padding-end": "var(--combobox-input-padding-x)",
44
+ "&:has([data-part=trigger]), &:has([data-part=clear-trigger])": {
45
+ "--combobox-input-padding-end": "calc(var(--combobox-input-height) * var(--padding-factor))"
46
+ },
47
+ "&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))": {
48
+ "--padding-factor": "1.5"
49
+ }
50
+ },
40
51
  input: {
41
52
  display: "flex",
42
53
  alignItems: "center",
@@ -44,7 +55,8 @@ const comboboxSlotRecipe = defineSlotRecipe({
44
55
  background: "bg.panel",
45
56
  width: "full",
46
57
  minH: "var(--combobox-input-height)",
47
- px: "var(--combobox-input-padding-x)",
58
+ ps: "var(--combobox-input-padding-x)",
59
+ pe: "var(--combobox-input-padding-end)",
48
60
  "--input-height": "var(--combobox-input-height)",
49
61
  borderRadius: "l2",
50
62
  outline: 0,
@@ -76,9 +88,6 @@ const comboboxSlotRecipe = defineSlotRecipe({
76
88
  focusRingWidth: "2px",
77
89
  rounded: "l1"
78
90
  },
79
- control: {
80
- pos: "relative"
81
- },
82
91
  indicatorGroup: {
83
92
  display: "flex",
84
93
  alignItems: "center",
@@ -6,6 +6,7 @@ import { avatarSlotRecipe } from './avatar.js';
6
6
  import { blockquoteSlotRecipe } from './blockquote.js';
7
7
  import { breadcrumbSlotRecipe } from './breadcrumb.js';
8
8
  import { cardSlotRecipe } from './card.js';
9
+ import { carouselSlotRecipe } from './carousel.js';
9
10
  import { checkboxSlotRecipe } from './checkbox.js';
10
11
  import { checkboxCardSlotRecipe } from './checkbox-card.js';
11
12
  import { codeBlockSlotRecipe } from './code-block.js';
@@ -59,6 +60,7 @@ const slotRecipes = {
59
60
  blockquote: blockquoteSlotRecipe,
60
61
  breadcrumb: breadcrumbSlotRecipe,
61
62
  card: cardSlotRecipe,
63
+ carousel: carouselSlotRecipe,
62
64
  checkbox: checkboxSlotRecipe,
63
65
  checkboxCard: checkboxCardSlotRecipe,
64
66
  codeBlock: codeBlockSlotRecipe,
@@ -0,0 +1 @@
1
+ export declare const carouselSlotRecipe: import("@pandacss/types").SlotRecipeConfig;
@@ -6,6 +6,7 @@ export declare const slotRecipes: {
6
6
  blockquote: import("@pandacss/types").SlotRecipeConfig;
7
7
  breadcrumb: import("@pandacss/types").SlotRecipeConfig;
8
8
  card: import("@pandacss/types").SlotRecipeConfig;
9
+ carousel: import("@pandacss/types").SlotRecipeConfig;
9
10
  checkbox: import("@pandacss/types").SlotRecipeConfig;
10
11
  checkboxCard: import("@pandacss/types").SlotRecipeConfig;
11
12
  codeBlock: import("@pandacss/types").SlotRecipeConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chakra-ui/panda-preset",
3
- "version": "3.28.1",
3
+ "version": "3.29.0",
4
4
  "description": "Panda preset for Chakra UI",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.cjs",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "globby": "14.1.0",
52
- "@chakra-ui/cli": "3.28.1"
52
+ "@chakra-ui/cli": "3.29.0"
53
53
  },
54
54
  "scripts": {
55
55
  "theme:eject": "chakra eject --outdir=src",