@bitrise/bitkit-v2 0.3.263 → 0.3.265

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.
Files changed (63) hide show
  1. package/dist/components/BitkitPopover/BitkitPopover.d.ts +31 -0
  2. package/dist/components/BitkitPopover/BitkitPopover.js +92 -0
  3. package/dist/components/BitkitPopover/BitkitPopover.js.map +1 -0
  4. package/dist/components/index.d.ts +1 -0
  5. package/dist/main.js +2 -1
  6. package/dist/theme/common/InputAndTextarea.common.d.ts +1 -1
  7. package/dist/theme/common/InputAndTextarea.common.js +1 -1
  8. package/dist/theme/common/InputAndTextarea.common.js.map +1 -1
  9. package/dist/theme/recipes/Button.recipe.js +1 -1
  10. package/dist/theme/recipes/Button.recipe.js.map +1 -1
  11. package/dist/theme/recipes/Spinner.recipe.js +1 -2
  12. package/dist/theme/recipes/Spinner.recipe.js.map +1 -1
  13. package/dist/theme/recipes/ToggleButton.recipe.js +1 -1
  14. package/dist/theme/recipes/ToggleButton.recipe.js.map +1 -1
  15. package/dist/theme/slot-recipes/Dialog.recipe.js +1 -1
  16. package/dist/theme/slot-recipes/Dialog.recipe.js.map +1 -1
  17. package/dist/theme/slot-recipes/Drawer.recipe.js +1 -1
  18. package/dist/theme/slot-recipes/Drawer.recipe.js.map +1 -1
  19. package/dist/theme/slot-recipes/FileUpload.recipe.js +1 -1
  20. package/dist/theme/slot-recipes/FileUpload.recipe.js.map +1 -1
  21. package/dist/theme/slot-recipes/ImageCropper.recipe.js +5 -5
  22. package/dist/theme/slot-recipes/ImageCropper.recipe.js.map +1 -1
  23. package/dist/theme/slot-recipes/Multiselect.recipe.js +1 -1
  24. package/dist/theme/slot-recipes/Multiselect.recipe.js.map +1 -1
  25. package/dist/theme/slot-recipes/NativeSelect.recipe.js +1 -1
  26. package/dist/theme/slot-recipes/NativeSelect.recipe.js.map +1 -1
  27. package/dist/theme/slot-recipes/Pagination.recipe.d.ts +1 -1
  28. package/dist/theme/slot-recipes/Pagination.recipe.js +1 -1
  29. package/dist/theme/slot-recipes/Pagination.recipe.js.map +1 -1
  30. package/dist/theme/slot-recipes/PaginationLoadMore.recipe.js +1 -1
  31. package/dist/theme/slot-recipes/PaginationLoadMore.recipe.js.map +1 -1
  32. package/dist/theme/slot-recipes/Popover.recipe.d.ts +2 -0
  33. package/dist/theme/slot-recipes/Popover.recipe.js +107 -0
  34. package/dist/theme/slot-recipes/Popover.recipe.js.map +1 -0
  35. package/dist/theme/slot-recipes/Ribbon.recipe.js +1 -1
  36. package/dist/theme/slot-recipes/Ribbon.recipe.js.map +1 -1
  37. package/dist/theme/slot-recipes/SegmentGroup.recipe.js +1 -1
  38. package/dist/theme/slot-recipes/SegmentGroup.recipe.js.map +1 -1
  39. package/dist/theme/slot-recipes/Select.recipe.js +2 -2
  40. package/dist/theme/slot-recipes/Select.recipe.js.map +1 -1
  41. package/dist/theme/slot-recipes/SplitButton.recipe.d.ts +1 -1
  42. package/dist/theme/slot-recipes/SplitButton.recipe.js +1 -2
  43. package/dist/theme/slot-recipes/SplitButton.recipe.js.map +1 -1
  44. package/dist/theme/slot-recipes/Steps.recipe.d.ts +2 -2
  45. package/dist/theme/slot-recipes/Steps.recipe.js +3 -3
  46. package/dist/theme/slot-recipes/Steps.recipe.js.map +1 -1
  47. package/dist/theme/slot-recipes/Table.recipe.d.ts +5 -5
  48. package/dist/theme/slot-recipes/Table.recipe.js +6 -6
  49. package/dist/theme/slot-recipes/Table.recipe.js.map +1 -1
  50. package/dist/theme/slot-recipes/TagsInput.recipe.js +2 -2
  51. package/dist/theme/slot-recipes/TagsInput.recipe.js.map +1 -1
  52. package/dist/theme/slot-recipes/Tooltip.recipe.js +2 -2
  53. package/dist/theme/slot-recipes/Tooltip.recipe.js.map +1 -1
  54. package/dist/theme/slot-recipes/index.d.ts +10 -9
  55. package/dist/theme/slot-recipes/index.js +2 -0
  56. package/dist/theme/slot-recipes/index.js.map +1 -1
  57. package/dist/theme/tokens/border-widths.d.ts +9 -0
  58. package/dist/theme/tokens/border-widths.js +10 -0
  59. package/dist/theme/tokens/border-widths.js.map +1 -0
  60. package/dist/theme/tokens/index.d.ts +8 -0
  61. package/dist/theme/tokens/index.js +2 -0
  62. package/dist/theme/tokens/index.js.map +1 -1
  63. package/package.json +1 -1
@@ -51,7 +51,7 @@ var paginationSlotRecipe = defineSlotRecipe({
51
51
  root: {
52
52
  paddingInline: "24",
53
53
  paddingBlock: "16",
54
- borderTopWidth: rem(1),
54
+ borderTopWidth: "1",
55
55
  borderTopStyle: "solid",
56
56
  borderTopColor: "border/regular"
57
57
  },
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Pagination.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst paginationSlotRecipe = defineSlotRecipe({\n className: 'pagination',\n slots: ['itemsBlock', 'itemsSelect', 'pageBlock', 'pageSelect', 'root', 'text'],\n base: {\n itemsBlock: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n flexShrink: 0,\n },\n itemsSelect: {\n width: rem(88),\n },\n pageBlock: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n flexShrink: 0,\n },\n pageSelect: {\n width: rem(80),\n },\n root: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n overflow: 'clip',\n width: 'full',\n },\n text: {\n textStyle: 'body/md/regular',\n whiteSpace: 'nowrap',\n flexShrink: 0,\n },\n },\n variants: {\n variant: {\n card: {\n root: {\n paddingInline: '24',\n paddingBlock: '8',\n },\n text: {\n color: 'text/tertiary',\n },\n },\n page: {\n root: {\n paddingInline: '24',\n paddingBlock: '16',\n borderTopWidth: rem(1),\n borderTopStyle: 'solid',\n borderTopColor: 'border/regular',\n },\n text: {\n color: 'text/secondary',\n },\n },\n table: {\n root: {\n paddingInline: '16',\n paddingBlock: '8',\n },\n text: {\n color: 'text/secondary',\n },\n },\n },\n },\n defaultVariants: {\n variant: 'table',\n },\n});\n\nexport default paginationSlotRecipe;\n"],"mappings":";;;AAIA,IAAM,uBAAuB,iBAAiB;CAC5C,WAAW;CACX,OAAO;EAAC;EAAc;EAAe;EAAa;EAAc;EAAQ;CAAM;CAC9E,MAAM;EACJ,YAAY;GACV,SAAS;GACT,YAAY;GACZ,KAAK;GACL,YAAY;EACd;EACA,aAAa,EACX,OAAO,IAAI,EAAE,EACf;EACA,WAAW;GACT,SAAS;GACT,YAAY;GACZ,KAAK;GACL,YAAY;EACd;EACA,YAAY,EACV,OAAO,IAAI,EAAE,EACf;EACA,MAAM;GACJ,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,UAAU;GACV,OAAO;EACT;EACA,MAAM;GACJ,WAAW;GACX,YAAY;GACZ,YAAY;EACd;CACF;CACA,UAAU,EACR,SAAS;EACP,MAAM;GACJ,MAAM;IACJ,eAAe;IACf,cAAc;GAChB;GACA,MAAM,EACJ,OAAO,gBACT;EACF;EACA,MAAM;GACJ,MAAM;IACJ,eAAe;IACf,cAAc;IACd,gBAAgB,IAAI,CAAC;IACrB,gBAAgB;IAChB,gBAAgB;GAClB;GACA,MAAM,EACJ,OAAO,iBACT;EACF;EACA,OAAO;GACL,MAAM;IACJ,eAAe;IACf,cAAc;GAChB;GACA,MAAM,EACJ,OAAO,iBACT;EACF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,QACX;AACF,CAAC"}
1
+ {"version":3,"file":"Pagination.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Pagination.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst paginationSlotRecipe = defineSlotRecipe({\n className: 'pagination',\n slots: ['itemsBlock', 'itemsSelect', 'pageBlock', 'pageSelect', 'root', 'text'],\n base: {\n itemsBlock: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n flexShrink: 0,\n },\n itemsSelect: {\n width: rem(88),\n },\n pageBlock: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n flexShrink: 0,\n },\n pageSelect: {\n width: rem(80),\n },\n root: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n overflow: 'clip',\n width: 'full',\n },\n text: {\n textStyle: 'body/md/regular',\n whiteSpace: 'nowrap',\n flexShrink: 0,\n },\n },\n variants: {\n variant: {\n card: {\n root: {\n paddingInline: '24',\n paddingBlock: '8',\n },\n text: {\n color: 'text/tertiary',\n },\n },\n page: {\n root: {\n paddingInline: '24',\n paddingBlock: '16',\n borderTopWidth: '1',\n borderTopStyle: 'solid',\n borderTopColor: 'border/regular',\n },\n text: {\n color: 'text/secondary',\n },\n },\n table: {\n root: {\n paddingInline: '16',\n paddingBlock: '8',\n },\n text: {\n color: 'text/secondary',\n },\n },\n },\n },\n defaultVariants: {\n variant: 'table',\n },\n});\n\nexport default paginationSlotRecipe;\n"],"mappings":";;;AAIA,IAAM,uBAAuB,iBAAiB;CAC5C,WAAW;CACX,OAAO;EAAC;EAAc;EAAe;EAAa;EAAc;EAAQ;CAAM;CAC9E,MAAM;EACJ,YAAY;GACV,SAAS;GACT,YAAY;GACZ,KAAK;GACL,YAAY;EACd;EACA,aAAa,EACX,OAAO,IAAI,EAAE,EACf;EACA,WAAW;GACT,SAAS;GACT,YAAY;GACZ,KAAK;GACL,YAAY;EACd;EACA,YAAY,EACV,OAAO,IAAI,EAAE,EACf;EACA,MAAM;GACJ,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,UAAU;GACV,OAAO;EACT;EACA,MAAM;GACJ,WAAW;GACX,YAAY;GACZ,YAAY;EACd;CACF;CACA,UAAU,EACR,SAAS;EACP,MAAM;GACJ,MAAM;IACJ,eAAe;IACf,cAAc;GAChB;GACA,MAAM,EACJ,OAAO,gBACT;EACF;EACA,MAAM;GACJ,MAAM;IACJ,eAAe;IACf,cAAc;IACd,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;GAClB;GACA,MAAM,EACJ,OAAO,iBACT;EACF;EACA,OAAO;GACL,MAAM;IACJ,eAAe;IACf,cAAc;GAChB;GACA,MAAM,EACJ,OAAO,iBACT;EACF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,QACX;AACF,CAAC"}
@@ -17,7 +17,7 @@ var paginationLoadMoreRecipe = defineSlotRecipe({
17
17
  "&:has(+ *)": {
18
18
  borderInlineEndColor: "border/regular",
19
19
  borderInlineEndStyle: "solid",
20
- borderInlineEndWidth: "1px"
20
+ borderInlineEndWidth: "1"
21
21
  }
22
22
  }
23
23
  },
@@ -1 +1 @@
1
- {"version":3,"file":"PaginationLoadMore.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/PaginationLoadMore.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst paginationLoadMoreRecipe = defineSlotRecipe({\n className: 'pagination-load-more',\n slots: ['root', 'counter'],\n base: {\n root: {\n alignItems: 'center',\n display: 'flex',\n paddingBlock: '8',\n paddingInline: '16',\n },\n counter: {\n color: 'text/secondary',\n fontVariantNumeric: 'tabular-nums',\n '&:has(+ *)': {\n borderInlineEndColor: 'border/regular',\n borderInlineEndStyle: 'solid',\n borderInlineEndWidth: '1px',\n },\n },\n },\n variants: {\n size: {\n md: {\n root: {\n gap: '24',\n minHeight: rem(56),\n },\n counter: {\n textStyle: 'body/md/regular',\n '&:has(+ *)': {\n paddingInlineEnd: '24',\n },\n },\n },\n sm: {\n root: {\n gap: '16',\n minHeight: '48',\n },\n counter: {\n textStyle: 'body/md/regular',\n '&:has(+ *)': {\n paddingInlineEnd: '16',\n },\n },\n },\n xs: {\n root: {\n gap: '12',\n minHeight: '32',\n },\n counter: {\n textStyle: 'body/sm/regular',\n '&:has(+ *)': {\n paddingInlineEnd: '12',\n },\n },\n },\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\nexport default paginationLoadMoreRecipe;\n"],"mappings":";;;AAIA,IAAM,2BAA2B,iBAAiB;CAChD,WAAW;CACX,OAAO,CAAC,QAAQ,SAAS;CACzB,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,cAAc;GACd,eAAe;EACjB;EACA,SAAS;GACP,OAAO;GACP,oBAAoB;GACpB,cAAc;IACZ,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;GACxB;EACF;CACF;CACA,UAAU,EACR,MAAM;EACJ,IAAI;GACF,MAAM;IACJ,KAAK;IACL,WAAW,IAAI,EAAE;GACnB;GACA,SAAS;IACP,WAAW;IACX,cAAc,EACZ,kBAAkB,KACpB;GACF;EACF;EACA,IAAI;GACF,MAAM;IACJ,KAAK;IACL,WAAW;GACb;GACA,SAAS;IACP,WAAW;IACX,cAAc,EACZ,kBAAkB,KACpB;GACF;EACF;EACA,IAAI;GACF,MAAM;IACJ,KAAK;IACL,WAAW;GACb;GACA,SAAS;IACP,WAAW;IACX,cAAc,EACZ,kBAAkB,KACpB;GACF;EACF;CACF,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC"}
1
+ {"version":3,"file":"PaginationLoadMore.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/PaginationLoadMore.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst paginationLoadMoreRecipe = defineSlotRecipe({\n className: 'pagination-load-more',\n slots: ['root', 'counter'],\n base: {\n root: {\n alignItems: 'center',\n display: 'flex',\n paddingBlock: '8',\n paddingInline: '16',\n },\n counter: {\n color: 'text/secondary',\n fontVariantNumeric: 'tabular-nums',\n '&:has(+ *)': {\n borderInlineEndColor: 'border/regular',\n borderInlineEndStyle: 'solid',\n borderInlineEndWidth: '1',\n },\n },\n },\n variants: {\n size: {\n md: {\n root: {\n gap: '24',\n minHeight: rem(56),\n },\n counter: {\n textStyle: 'body/md/regular',\n '&:has(+ *)': {\n paddingInlineEnd: '24',\n },\n },\n },\n sm: {\n root: {\n gap: '16',\n minHeight: '48',\n },\n counter: {\n textStyle: 'body/md/regular',\n '&:has(+ *)': {\n paddingInlineEnd: '16',\n },\n },\n },\n xs: {\n root: {\n gap: '12',\n minHeight: '32',\n },\n counter: {\n textStyle: 'body/sm/regular',\n '&:has(+ *)': {\n paddingInlineEnd: '12',\n },\n },\n },\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\nexport default paginationLoadMoreRecipe;\n"],"mappings":";;;AAIA,IAAM,2BAA2B,iBAAiB;CAChD,WAAW;CACX,OAAO,CAAC,QAAQ,SAAS;CACzB,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,cAAc;GACd,eAAe;EACjB;EACA,SAAS;GACP,OAAO;GACP,oBAAoB;GACpB,cAAc;IACZ,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;GACxB;EACF;CACF;CACA,UAAU,EACR,MAAM;EACJ,IAAI;GACF,MAAM;IACJ,KAAK;IACL,WAAW,IAAI,EAAE;GACnB;GACA,SAAS;IACP,WAAW;IACX,cAAc,EACZ,kBAAkB,KACpB;GACF;EACF;EACA,IAAI;GACF,MAAM;IACJ,KAAK;IACL,WAAW;GACb;GACA,SAAS;IACP,WAAW;IACX,cAAc,EACZ,kBAAkB,KACpB;GACF;EACF;EACA,IAAI;GACF,MAAM;IACJ,KAAK;IACL,WAAW;GACb;GACA,SAAS;IACP,WAAW;IACX,cAAc,EACZ,kBAAkB,KACpB;GACF;EACF;CACF,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const popoverSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"anchor" | "content" | "body" | "footer" | "header" | "title" | "trigger" | "arrow" | "arrowTip" | "positioner" | "closeTrigger" | "indicator" | "description" | "scrollBody" | "scrollGradient" | "scrollButton", import('@chakra-ui/react').SlotRecipeVariantRecord<"anchor" | "content" | "body" | "footer" | "header" | "title" | "trigger" | "arrow" | "arrowTip" | "positioner" | "closeTrigger" | "indicator" | "description" | "scrollBody" | "scrollGradient" | "scrollButton">>;
2
+ export default popoverSlotRecipe;
@@ -0,0 +1,107 @@
1
+ import { rem } from "../themeUtils.js";
2
+ import { defineSlotRecipe } from "@chakra-ui/react/styled-system";
3
+ import { popoverAnatomy } from "@chakra-ui/react/anatomy";
4
+ //#region lib/theme/slot-recipes/Popover.recipe.ts
5
+ var popoverSlotRecipe = defineSlotRecipe({
6
+ className: "popover",
7
+ slots: [
8
+ ...popoverAnatomy.keys(),
9
+ "scrollBody",
10
+ "scrollButton",
11
+ "scrollGradient"
12
+ ],
13
+ base: {
14
+ content: {
15
+ background: "background/primary",
16
+ borderRadius: "8",
17
+ boxShadow: "elevation/lg",
18
+ display: "flex",
19
+ flexDirection: "column",
20
+ maxHeight: "60vh",
21
+ outline: "none",
22
+ overflow: "hidden",
23
+ position: "relative",
24
+ transformOrigin: "var(--transform-origin)",
25
+ width: rem(360),
26
+ zIndex: "popover",
27
+ _open: {
28
+ animationStyle: "scale-fade-in",
29
+ animationDuration: "fast"
30
+ },
31
+ _closed: {
32
+ animationStyle: "scale-fade-out",
33
+ animationDuration: "faster"
34
+ }
35
+ },
36
+ header: {
37
+ alignItems: "flex-start",
38
+ display: "flex",
39
+ flexShrink: 0,
40
+ gap: "8",
41
+ paddingBlockEnd: "8",
42
+ paddingBlockStart: "16",
43
+ paddingInline: "16"
44
+ },
45
+ title: {
46
+ color: "text/primary",
47
+ flex: "1",
48
+ minWidth: 0,
49
+ textStyle: "heading/h4",
50
+ wordBreak: "break-word"
51
+ },
52
+ closeTrigger: { flexShrink: 0 },
53
+ scrollBody: {
54
+ display: "flex",
55
+ flex: "1",
56
+ flexDirection: "column",
57
+ minHeight: 0,
58
+ position: "relative"
59
+ },
60
+ body: {
61
+ flex: "1",
62
+ minHeight: 0,
63
+ overflowY: "auto",
64
+ paddingBlockEnd: "16",
65
+ paddingBlockStart: "8",
66
+ paddingInline: "16"
67
+ },
68
+ footer: {
69
+ alignItems: "center",
70
+ display: "flex",
71
+ flexShrink: 0,
72
+ gap: "8",
73
+ justifyContent: "space-between",
74
+ paddingBlockEnd: "16",
75
+ paddingBlockStart: "24",
76
+ paddingInline: "16"
77
+ },
78
+ scrollGradient: {
79
+ background: "linear-gradient(0deg, {colors.neutral.100} 0%, transparent 100%)",
80
+ bottom: 0,
81
+ height: "32",
82
+ pointerEvents: "none",
83
+ position: "absolute",
84
+ width: "100%"
85
+ },
86
+ scrollButton: {
87
+ alignItems: "center",
88
+ alignSelf: "center",
89
+ background: "background/primary",
90
+ borderColor: "border/minimal",
91
+ borderRadius: "full",
92
+ borderWidth: "1px",
93
+ bottom: "8",
94
+ boxShadow: "elevation/lg",
95
+ cursor: "pointer",
96
+ display: "flex",
97
+ height: "32",
98
+ justifyContent: "center",
99
+ position: "absolute",
100
+ width: "32"
101
+ }
102
+ }
103
+ });
104
+ //#endregion
105
+ export { popoverSlotRecipe as default };
106
+
107
+ //# sourceMappingURL=Popover.recipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Popover.recipe.ts"],"sourcesContent":["import { popoverAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst popoverSlotRecipe = defineSlotRecipe({\n className: 'popover',\n slots: [...popoverAnatomy.keys(), 'scrollBody', 'scrollButton', 'scrollGradient'] as const,\n base: {\n content: {\n background: 'background/primary',\n borderRadius: '8',\n boxShadow: 'elevation/lg',\n display: 'flex',\n flexDirection: 'column',\n maxHeight: '60vh',\n outline: 'none',\n overflow: 'hidden',\n position: 'relative',\n transformOrigin: 'var(--transform-origin)',\n width: rem(360),\n zIndex: 'popover',\n _open: {\n animationStyle: 'scale-fade-in',\n animationDuration: 'fast',\n },\n _closed: {\n animationStyle: 'scale-fade-out',\n animationDuration: 'faster',\n },\n },\n header: {\n alignItems: 'flex-start',\n display: 'flex',\n flexShrink: 0,\n gap: '8',\n paddingBlockEnd: '8',\n paddingBlockStart: '16',\n paddingInline: '16',\n },\n title: {\n color: 'text/primary',\n flex: '1',\n minWidth: 0,\n textStyle: 'heading/h4',\n wordBreak: 'break-word',\n },\n closeTrigger: {\n flexShrink: 0,\n },\n scrollBody: {\n display: 'flex',\n flex: '1',\n flexDirection: 'column',\n minHeight: 0,\n position: 'relative',\n },\n body: {\n flex: '1',\n minHeight: 0,\n overflowY: 'auto',\n paddingBlockEnd: '16',\n paddingBlockStart: '8',\n paddingInline: '16',\n },\n footer: {\n alignItems: 'center',\n display: 'flex',\n flexShrink: 0,\n gap: '8',\n justifyContent: 'space-between',\n paddingBlockEnd: '16',\n paddingBlockStart: '24',\n paddingInline: '16',\n },\n scrollGradient: {\n background: 'linear-gradient(0deg, {colors.neutral.100} 0%, transparent 100%)',\n bottom: 0,\n height: '32',\n pointerEvents: 'none',\n position: 'absolute',\n width: '100%',\n },\n scrollButton: {\n alignItems: 'center',\n alignSelf: 'center',\n background: 'background/primary',\n borderColor: 'border/minimal',\n borderRadius: 'full',\n borderWidth: '1px',\n bottom: '8',\n boxShadow: 'elevation/lg',\n cursor: 'pointer',\n display: 'flex',\n height: '32',\n justifyContent: 'center',\n position: 'absolute',\n width: '32',\n },\n },\n});\n\nexport default popoverSlotRecipe;\n"],"mappings":";;;;AAKA,IAAM,oBAAoB,iBAAiB;CACzC,WAAW;CACX,OAAO;EAAC,GAAG,eAAe,KAAK;EAAG;EAAc;EAAgB;CAAgB;CAChF,MAAM;EACJ,SAAS;GACP,YAAY;GACZ,cAAc;GACd,WAAW;GACX,SAAS;GACT,eAAe;GACf,WAAW;GACX,SAAS;GACT,UAAU;GACV,UAAU;GACV,iBAAiB;GACjB,OAAO,IAAI,GAAG;GACd,QAAQ;GACR,OAAO;IACL,gBAAgB;IAChB,mBAAmB;GACrB;GACA,SAAS;IACP,gBAAgB;IAChB,mBAAmB;GACrB;EACF;EACA,QAAQ;GACN,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,KAAK;GACL,iBAAiB;GACjB,mBAAmB;GACnB,eAAe;EACjB;EACA,OAAO;GACL,OAAO;GACP,MAAM;GACN,UAAU;GACV,WAAW;GACX,WAAW;EACb;EACA,cAAc,EACZ,YAAY,EACd;EACA,YAAY;GACV,SAAS;GACT,MAAM;GACN,eAAe;GACf,WAAW;GACX,UAAU;EACZ;EACA,MAAM;GACJ,MAAM;GACN,WAAW;GACX,WAAW;GACX,iBAAiB;GACjB,mBAAmB;GACnB,eAAe;EACjB;EACA,QAAQ;GACN,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,KAAK;GACL,gBAAgB;GAChB,iBAAiB;GACjB,mBAAmB;GACnB,eAAe;EACjB;EACA,gBAAgB;GACd,YAAY;GACZ,QAAQ;GACR,QAAQ;GACR,eAAe;GACf,UAAU;GACV,OAAO;EACT;EACA,cAAc;GACZ,YAAY;GACZ,WAAW;GACX,YAAY;GACZ,aAAa;GACb,cAAc;GACd,aAAa;GACb,QAAQ;GACR,WAAW;GACX,QAAQ;GACR,SAAS;GACT,QAAQ;GACR,gBAAgB;GAChB,UAAU;GACV,OAAO;EACT;CACF;AACF,CAAC"}
@@ -11,7 +11,7 @@ var ribbonSlotRecipe = defineSlotRecipe({
11
11
  root: {
12
12
  alignItems: "center",
13
13
  borderBlockStyle: "solid",
14
- borderBlockWidth: "1px",
14
+ borderBlockWidth: "1",
15
15
  display: "flex",
16
16
  paddingBlock: "12",
17
17
  paddingInline: "24",
@@ -1 +1 @@
1
- {"version":3,"file":"Ribbon.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Ribbon.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst ribbonSlotRecipe = defineSlotRecipe({\n className: 'ribbon',\n slots: ['root', 'content', 'textBlock'],\n base: {\n root: {\n alignItems: 'center',\n borderBlockStyle: 'solid',\n borderBlockWidth: '1px',\n display: 'flex',\n paddingBlock: '12',\n paddingInline: '24',\n width: 'full',\n },\n content: {\n alignItems: 'center',\n display: 'flex',\n flex: '1 0 0',\n gap: '16',\n justifyContent: 'center',\n minHeight: '32',\n minWidth: 0,\n },\n textBlock: {\n alignItems: 'baseline',\n display: 'flex',\n gap: '4',\n minWidth: 0,\n textStyle: 'body/md/regular',\n },\n },\n variants: {\n colorVariant: {\n blue: { root: { background: 'color/blue/subtle', borderColor: 'color/blue/muted', color: 'color/blue/strong' } },\n green: {\n root: { background: 'color/green/subtle', borderColor: 'color/green/muted', color: 'color/green/strong' },\n },\n yellow: {\n root: { background: 'color/yellow/subtle', borderColor: 'color/yellow/muted', color: 'color/yellow/strong' },\n },\n red: { root: { background: 'color/red/subtle', borderColor: 'color/red/muted', color: 'color/red/strong' } },\n purple: {\n root: { background: 'color/purple/subtle', borderColor: 'color/purple/muted', color: 'color/purple/strong' },\n },\n },\n },\n defaultVariants: {\n colorVariant: 'blue',\n },\n});\n\nexport default ribbonSlotRecipe;\n"],"mappings":";;AAEA,IAAM,mBAAmB,iBAAiB;CACxC,WAAW;CACX,OAAO;EAAC;EAAQ;EAAW;CAAW;CACtC,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,kBAAkB;GAClB,kBAAkB;GAClB,SAAS;GACT,cAAc;GACd,eAAe;GACf,OAAO;EACT;EACA,SAAS;GACP,YAAY;GACZ,SAAS;GACT,MAAM;GACN,KAAK;GACL,gBAAgB;GAChB,WAAW;GACX,UAAU;EACZ;EACA,WAAW;GACT,YAAY;GACZ,SAAS;GACT,KAAK;GACL,UAAU;GACV,WAAW;EACb;CACF;CACA,UAAU,EACR,cAAc;EACZ,MAAM,EAAE,MAAM;GAAE,YAAY;GAAqB,aAAa;GAAoB,OAAO;EAAoB,EAAE;EAC/G,OAAO,EACL,MAAM;GAAE,YAAY;GAAsB,aAAa;GAAqB,OAAO;EAAqB,EAC1G;EACA,QAAQ,EACN,MAAM;GAAE,YAAY;GAAuB,aAAa;GAAsB,OAAO;EAAsB,EAC7G;EACA,KAAK,EAAE,MAAM;GAAE,YAAY;GAAoB,aAAa;GAAmB,OAAO;EAAmB,EAAE;EAC3G,QAAQ,EACN,MAAM;GAAE,YAAY;GAAuB,aAAa;GAAsB,OAAO;EAAsB,EAC7G;CACF,EACF;CACA,iBAAiB,EACf,cAAc,OAChB;AACF,CAAC"}
1
+ {"version":3,"file":"Ribbon.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Ribbon.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst ribbonSlotRecipe = defineSlotRecipe({\n className: 'ribbon',\n slots: ['root', 'content', 'textBlock'],\n base: {\n root: {\n alignItems: 'center',\n borderBlockStyle: 'solid',\n borderBlockWidth: '1',\n display: 'flex',\n paddingBlock: '12',\n paddingInline: '24',\n width: 'full',\n },\n content: {\n alignItems: 'center',\n display: 'flex',\n flex: '1 0 0',\n gap: '16',\n justifyContent: 'center',\n minHeight: '32',\n minWidth: 0,\n },\n textBlock: {\n alignItems: 'baseline',\n display: 'flex',\n gap: '4',\n minWidth: 0,\n textStyle: 'body/md/regular',\n },\n },\n variants: {\n colorVariant: {\n blue: { root: { background: 'color/blue/subtle', borderColor: 'color/blue/muted', color: 'color/blue/strong' } },\n green: {\n root: { background: 'color/green/subtle', borderColor: 'color/green/muted', color: 'color/green/strong' },\n },\n yellow: {\n root: { background: 'color/yellow/subtle', borderColor: 'color/yellow/muted', color: 'color/yellow/strong' },\n },\n red: { root: { background: 'color/red/subtle', borderColor: 'color/red/muted', color: 'color/red/strong' } },\n purple: {\n root: { background: 'color/purple/subtle', borderColor: 'color/purple/muted', color: 'color/purple/strong' },\n },\n },\n },\n defaultVariants: {\n colorVariant: 'blue',\n },\n});\n\nexport default ribbonSlotRecipe;\n"],"mappings":";;AAEA,IAAM,mBAAmB,iBAAiB;CACxC,WAAW;CACX,OAAO;EAAC;EAAQ;EAAW;CAAW;CACtC,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,kBAAkB;GAClB,kBAAkB;GAClB,SAAS;GACT,cAAc;GACd,eAAe;GACf,OAAO;EACT;EACA,SAAS;GACP,YAAY;GACZ,SAAS;GACT,MAAM;GACN,KAAK;GACL,gBAAgB;GAChB,WAAW;GACX,UAAU;EACZ;EACA,WAAW;GACT,YAAY;GACZ,SAAS;GACT,KAAK;GACL,UAAU;GACV,WAAW;EACb;CACF;CACA,UAAU,EACR,cAAc;EACZ,MAAM,EAAE,MAAM;GAAE,YAAY;GAAqB,aAAa;GAAoB,OAAO;EAAoB,EAAE;EAC/G,OAAO,EACL,MAAM;GAAE,YAAY;GAAsB,aAAa;GAAqB,OAAO;EAAqB,EAC1G;EACA,QAAQ,EACN,MAAM;GAAE,YAAY;GAAuB,aAAa;GAAsB,OAAO;EAAsB,EAC7G;EACA,KAAK,EAAE,MAAM;GAAE,YAAY;GAAoB,aAAa;GAAmB,OAAO;EAAmB,EAAE;EAC3G,QAAQ,EACN,MAAM;GAAE,YAAY;GAAuB,aAAa;GAAsB,OAAO;EAAsB,EAC7G;CACF,EACF;CACA,iBAAiB,EACf,cAAc,OAChB;AACF,CAAC"}
@@ -11,7 +11,7 @@ var segmentGroupSlotRecipe = defineSlotRecipe({
11
11
  borderColor: "border/minimal",
12
12
  borderRadius: "4",
13
13
  borderStyle: "solid",
14
- borderWidth: "1px",
14
+ borderWidth: "1",
15
15
  display: "inline-flex",
16
16
  gap: "1",
17
17
  isolation: "isolate",
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentGroup.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/SegmentGroup.recipe.ts"],"sourcesContent":["import { segmentGroupAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst segmentGroupSlotRecipe = defineSlotRecipe({\n slots: segmentGroupAnatomy.keys(),\n className: 'segment-group',\n base: {\n root: {\n alignItems: 'center',\n backgroundColor: 'background/secondary',\n borderColor: 'border/minimal',\n borderRadius: '4',\n borderStyle: 'solid',\n borderWidth: '1px',\n display: 'inline-flex',\n gap: '1',\n isolation: 'isolate',\n position: 'relative',\n },\n // Zag.js positions the indicator via inline CSS variables (--width, --height, --top, --left).\n // We must reference them here because our custom recipe replaces the Chakra default entirely.\n indicator: {\n backgroundColor: 'background/primary',\n borderRadius: '4',\n boxShadow: 'small',\n height: 'var(--height)',\n left: 'var(--left)',\n outline: '1px solid',\n outlineColor: 'border/regular',\n position: 'absolute',\n top: 'var(--top)',\n width: 'var(--width)',\n zIndex: -1,\n },\n item: {\n alignItems: 'center',\n borderRadius: '4',\n color: 'text/secondary',\n cursor: 'pointer',\n _icon: {\n color: 'icon/secondary',\n },\n display: 'flex',\n gap: '4',\n justifyContent: 'center',\n paddingInline: '12',\n position: 'relative',\n textStyle: 'body/md/regular',\n // Vertical separator between items\n _before: {\n backgroundColor: 'border/minimal',\n content: '\"\"',\n insetBlock: '8',\n insetInlineStart: '-1px',\n position: 'absolute',\n width: '1',\n },\n // Hide separator on first item, and on both sides of the checked item\n '& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type': {\n _before: { opacity: '0' },\n },\n // Focus ring on item when its hidden input is focused (same as Chakra default)\n '&:has(input:focus-visible)': {\n focusRing: 'outside',\n },\n _hover: {\n backgroundColor: 'background/hover',\n color: 'text/primary',\n _active: {\n backgroundColor: 'background/active',\n },\n },\n _active: {\n backgroundColor: 'background/active',\n color: 'text/primary',\n },\n _checked: {\n backgroundColor: 'transparent',\n color: 'text/primary',\n _active: {\n backgroundColor: 'transparent',\n },\n _hover: {\n backgroundColor: 'transparent',\n _active: {\n backgroundColor: 'transparent',\n },\n },\n },\n _disabled: {\n color: 'text/disabled',\n cursor: 'not-allowed',\n _hover: {\n backgroundColor: 'transparent',\n },\n },\n },\n itemText: {\n paddingInline: '4',\n },\n },\n variants: {\n fullWidth: {\n true: {\n root: {\n display: 'flex',\n width: '100%',\n },\n item: {\n flex: '1',\n },\n },\n },\n size: {\n lg: {\n item: {\n paddingBlock: '12',\n textStyle: 'body/lg/regular',\n },\n },\n md: {\n item: {\n paddingBlock: '8',\n },\n },\n sm: {\n item: {\n paddingBlock: '6',\n },\n },\n },\n },\n defaultVariants: {\n size: 'sm',\n },\n});\n\nexport default segmentGroupSlotRecipe;\n"],"mappings":";;;AAGA,IAAM,yBAAyB,iBAAiB;CAC9C,OAAO,oBAAoB,KAAK;CAChC,WAAW;CACX,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,iBAAiB;GACjB,aAAa;GACb,cAAc;GACd,aAAa;GACb,aAAa;GACb,SAAS;GACT,KAAK;GACL,WAAW;GACX,UAAU;EACZ;EAGA,WAAW;GACT,iBAAiB;GACjB,cAAc;GACd,WAAW;GACX,QAAQ;GACR,MAAM;GACN,SAAS;GACT,cAAc;GACd,UAAU;GACV,KAAK;GACL,OAAO;GACP,QAAQ;EACV;EACA,MAAM;GACJ,YAAY;GACZ,cAAc;GACd,OAAO;GACP,QAAQ;GACR,OAAO,EACL,OAAO,iBACT;GACA,SAAS;GACT,KAAK;GACL,gBAAgB;GAChB,eAAe;GACf,UAAU;GACV,WAAW;GAEX,SAAS;IACP,iBAAiB;IACjB,SAAS;IACT,YAAY;IACZ,kBAAkB;IAClB,UAAU;IACV,OAAO;GACT;GAEA,yEAAyE,EACvE,SAAS,EAAE,SAAS,IAAI,EAC1B;GAEA,8BAA8B,EAC5B,WAAW,UACb;GACA,QAAQ;IACN,iBAAiB;IACjB,OAAO;IACP,SAAS,EACP,iBAAiB,oBACnB;GACF;GACA,SAAS;IACP,iBAAiB;IACjB,OAAO;GACT;GACA,UAAU;IACR,iBAAiB;IACjB,OAAO;IACP,SAAS,EACP,iBAAiB,cACnB;IACA,QAAQ;KACN,iBAAiB;KACjB,SAAS,EACP,iBAAiB,cACnB;IACF;GACF;GACA,WAAW;IACT,OAAO;IACP,QAAQ;IACR,QAAQ,EACN,iBAAiB,cACnB;GACF;EACF;EACA,UAAU,EACR,eAAe,IACjB;CACF;CACA,UAAU;EACR,WAAW,EACT,MAAM;GACJ,MAAM;IACJ,SAAS;IACT,OAAO;GACT;GACA,MAAM,EACJ,MAAM,IACR;EACF,EACF;EACA,MAAM;GACJ,IAAI,EACF,MAAM;IACJ,cAAc;IACd,WAAW;GACb,EACF;GACA,IAAI,EACF,MAAM,EACJ,cAAc,IAChB,EACF;GACA,IAAI,EACF,MAAM,EACJ,cAAc,IAChB,EACF;EACF;CACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC"}
1
+ {"version":3,"file":"SegmentGroup.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/SegmentGroup.recipe.ts"],"sourcesContent":["import { segmentGroupAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst segmentGroupSlotRecipe = defineSlotRecipe({\n slots: segmentGroupAnatomy.keys(),\n className: 'segment-group',\n base: {\n root: {\n alignItems: 'center',\n backgroundColor: 'background/secondary',\n borderColor: 'border/minimal',\n borderRadius: '4',\n borderStyle: 'solid',\n borderWidth: '1',\n display: 'inline-flex',\n gap: '1',\n isolation: 'isolate',\n position: 'relative',\n },\n // Zag.js positions the indicator via inline CSS variables (--width, --height, --top, --left).\n // We must reference them here because our custom recipe replaces the Chakra default entirely.\n indicator: {\n backgroundColor: 'background/primary',\n borderRadius: '4',\n boxShadow: 'small',\n height: 'var(--height)',\n left: 'var(--left)',\n outline: '1px solid',\n outlineColor: 'border/regular',\n position: 'absolute',\n top: 'var(--top)',\n width: 'var(--width)',\n zIndex: -1,\n },\n item: {\n alignItems: 'center',\n borderRadius: '4',\n color: 'text/secondary',\n cursor: 'pointer',\n _icon: {\n color: 'icon/secondary',\n },\n display: 'flex',\n gap: '4',\n justifyContent: 'center',\n paddingInline: '12',\n position: 'relative',\n textStyle: 'body/md/regular',\n // Vertical separator between items\n _before: {\n backgroundColor: 'border/minimal',\n content: '\"\"',\n insetBlock: '8',\n insetInlineStart: '-1px',\n position: 'absolute',\n width: '1',\n },\n // Hide separator on first item, and on both sides of the checked item\n '& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type': {\n _before: { opacity: '0' },\n },\n // Focus ring on item when its hidden input is focused (same as Chakra default)\n '&:has(input:focus-visible)': {\n focusRing: 'outside',\n },\n _hover: {\n backgroundColor: 'background/hover',\n color: 'text/primary',\n _active: {\n backgroundColor: 'background/active',\n },\n },\n _active: {\n backgroundColor: 'background/active',\n color: 'text/primary',\n },\n _checked: {\n backgroundColor: 'transparent',\n color: 'text/primary',\n _active: {\n backgroundColor: 'transparent',\n },\n _hover: {\n backgroundColor: 'transparent',\n _active: {\n backgroundColor: 'transparent',\n },\n },\n },\n _disabled: {\n color: 'text/disabled',\n cursor: 'not-allowed',\n _hover: {\n backgroundColor: 'transparent',\n },\n },\n },\n itemText: {\n paddingInline: '4',\n },\n },\n variants: {\n fullWidth: {\n true: {\n root: {\n display: 'flex',\n width: '100%',\n },\n item: {\n flex: '1',\n },\n },\n },\n size: {\n lg: {\n item: {\n paddingBlock: '12',\n textStyle: 'body/lg/regular',\n },\n },\n md: {\n item: {\n paddingBlock: '8',\n },\n },\n sm: {\n item: {\n paddingBlock: '6',\n },\n },\n },\n },\n defaultVariants: {\n size: 'sm',\n },\n});\n\nexport default segmentGroupSlotRecipe;\n"],"mappings":";;;AAGA,IAAM,yBAAyB,iBAAiB;CAC9C,OAAO,oBAAoB,KAAK;CAChC,WAAW;CACX,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,iBAAiB;GACjB,aAAa;GACb,cAAc;GACd,aAAa;GACb,aAAa;GACb,SAAS;GACT,KAAK;GACL,WAAW;GACX,UAAU;EACZ;EAGA,WAAW;GACT,iBAAiB;GACjB,cAAc;GACd,WAAW;GACX,QAAQ;GACR,MAAM;GACN,SAAS;GACT,cAAc;GACd,UAAU;GACV,KAAK;GACL,OAAO;GACP,QAAQ;EACV;EACA,MAAM;GACJ,YAAY;GACZ,cAAc;GACd,OAAO;GACP,QAAQ;GACR,OAAO,EACL,OAAO,iBACT;GACA,SAAS;GACT,KAAK;GACL,gBAAgB;GAChB,eAAe;GACf,UAAU;GACV,WAAW;GAEX,SAAS;IACP,iBAAiB;IACjB,SAAS;IACT,YAAY;IACZ,kBAAkB;IAClB,UAAU;IACV,OAAO;GACT;GAEA,yEAAyE,EACvE,SAAS,EAAE,SAAS,IAAI,EAC1B;GAEA,8BAA8B,EAC5B,WAAW,UACb;GACA,QAAQ;IACN,iBAAiB;IACjB,OAAO;IACP,SAAS,EACP,iBAAiB,oBACnB;GACF;GACA,SAAS;IACP,iBAAiB;IACjB,OAAO;GACT;GACA,UAAU;IACR,iBAAiB;IACjB,OAAO;IACP,SAAS,EACP,iBAAiB,cACnB;IACA,QAAQ;KACN,iBAAiB;KACjB,SAAS,EACP,iBAAiB,cACnB;IACF;GACF;GACA,WAAW;IACT,OAAO;IACP,QAAQ;IACR,QAAQ,EACN,iBAAiB,cACnB;GACF;EACF;EACA,UAAU,EACR,eAAe,IACjB;CACF;CACA,UAAU;EACR,WAAW,EACT,MAAM;GACJ,MAAM;IACJ,SAAS;IACT,OAAO;GACT;GACA,MAAM,EACJ,MAAM,IACR;EACF,EACF;EACA,MAAM;GACJ,IAAI,EACF,MAAM;IACJ,cAAc;IACd,WAAW;GACb,EACF;GACA,IAAI,EACF,MAAM,EACJ,cAAc,IAChB,EACF;GACA,IAAI,EACF,MAAM,EACJ,cAAc,IAChB,EACF;EACF;CACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC"}
@@ -26,7 +26,7 @@ var selectSlotRecipe = defineSlotRecipe({
26
26
  trigger: {
27
27
  display: "flex",
28
28
  alignItems: "center",
29
- borderWidth: rem(1),
29
+ borderWidth: "1",
30
30
  borderColor: "border/strong",
31
31
  background: "bg.muted",
32
32
  color: "input/text/inputValue",
@@ -154,7 +154,7 @@ var selectSlotRecipe = defineSlotRecipe({
154
154
  alignItems: "center",
155
155
  justifyContent: "center",
156
156
  flexShrink: 0,
157
- borderWidth: rem(1),
157
+ borderWidth: "1",
158
158
  borderColor: "border/regular",
159
159
  borderRadius: "4",
160
160
  background: "background/primary",
@@ -1 +1 @@
1
- {"version":3,"file":"Select.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Select.recipe.ts"],"sourcesContent":["import { selectAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { base, variants } from '../common/ComboboxAndSelect.common';\nimport { rem } from '../themeUtils';\n\nexport const selectSlotRecipe = defineSlotRecipe({\n className: 'select',\n slots: [\n ...selectAnatomy.keys(),\n 'searchInputGroup',\n 'searchInput',\n 'searchClear',\n 'actionContainer',\n 'action',\n 'checkbox',\n 'checkmark',\n 'itemList',\n 'itemContent',\n 'itemLabel',\n 'itemHelperText',\n 'itemLoading',\n 'itemLoadingLabel',\n 'emptyState',\n ],\n base: {\n trigger: {\n display: 'flex',\n alignItems: 'center',\n borderWidth: rem(1),\n borderColor: 'border/strong',\n background: 'bg.muted',\n color: 'input/text/inputValue',\n gap: '8',\n justifyContent: 'space-between',\n paddingInlineStart: '16',\n paddingInlineEnd: '48',\n paddingBlock: rem(11),\n borderRadius: '4',\n userSelect: 'none',\n textAlign: 'start',\n focusVisibleRing: 'inside',\n width: '100%',\n _open: {\n borderColor: 'border/focus',\n },\n _placeholderShown: {\n color: 'text/secondary',\n },\n _disabled: {\n color: 'text/disabled',\n background: 'background/disabled',\n },\n _invalid: {\n borderColor: 'border/error',\n },\n _readOnly: {\n background: 'background/disabled',\n },\n },\n indicatorGroup: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n position: 'absolute',\n insetEnd: 0,\n top: 0,\n bottom: 0,\n paddingInline: '16',\n pointerEvents: 'none',\n },\n indicator: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n color: 'icon/secondary',\n _disabled: {\n color: 'icon/disabled',\n },\n _readOnly: {\n color: 'icon/on-disabled',\n },\n },\n ...base,\n content: {\n ...base.content,\n overflow: 'hidden',\n display: 'flex',\n flexDirection: 'column',\n maxWidth: rem(800),\n focusVisibleRing: 'none',\n },\n item: {\n ...base.item,\n _active: {\n background: 'background/active',\n },\n _selected: {\n background: 'background/selected',\n _highlighted: {\n background: 'background/selected-hover',\n },\n },\n _disabled: {\n cursor: 'not-allowed',\n color: 'text/disabled',\n _highlighted: {\n background: 'transparent',\n },\n },\n },\n control: {\n position: 'relative',\n width: '100%',\n },\n valueText: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n flex: '1 1 0',\n minWidth: 0,\n overflow: 'hidden',\n },\n itemList: {\n flex: '1 1 auto',\n minHeight: 0,\n overflowY: 'auto',\n paddingBlock: '8',\n },\n itemContent: {\n display: 'flex',\n flexDirection: 'column',\n flex: '1 0 0',\n minWidth: 0,\n },\n itemLoading: {\n flexShrink: 0,\n },\n itemLoadingLabel: {\n color: 'text/secondary',\n flex: '1 0 0',\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n emptyState: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n paddingInline: '16',\n },\n itemLabel: {\n color: 'text/body',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n minWidth: 0,\n '[data-disabled] &': {\n color: 'text/disabled',\n },\n },\n itemHelperText: {\n color: 'text/helper',\n textStyle: 'body/sm/regular',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n minWidth: 0,\n '[data-disabled] &': {\n color: 'text/disabled',\n },\n },\n checkbox: {\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n borderWidth: rem(1),\n borderColor: 'border/regular',\n borderRadius: '4',\n background: 'background/primary',\n boxShadow: 'inset/field',\n color: 'icon/on-color',\n '[data-state=checked] &': {\n background: 'input/checkbox/selection',\n borderColor: 'input/checkbox/selection',\n boxShadow: 'none',\n },\n '[data-disabled] &': {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n },\n },\n checkmark: {\n opacity: 0,\n color: 'icon/on-color',\n '[data-state=checked] &': {\n opacity: 1,\n },\n },\n searchInputGroup: {\n borderBottom: '1px solid',\n borderColor: 'border/minimal',\n background: 'background/primary',\n display: 'flex',\n alignItems: 'center',\n gap: '12',\n paddingInlineStart: '16',\n paddingInlineEnd: '12',\n overflow: 'hidden',\n flexShrink: 0,\n _hover: {\n background: 'background/secondary',\n },\n _focusWithin: {\n background: 'background/primary',\n },\n },\n searchInput: {\n flex: '1 0 0',\n minWidth: 0,\n border: 'none',\n outline: 'none',\n background: 'transparent',\n color: 'input/text/inputValue',\n paddingInline: 0,\n paddingBlock: 0,\n _placeholder: {\n color: 'input/text/placeholder',\n },\n },\n searchClear: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '4',\n color: 'icon/primary',\n cursor: 'pointer',\n flexShrink: 0,\n _hover: {\n background: 'background/hover',\n },\n },\n actionContainer: {\n borderTop: '1px solid',\n borderColor: 'border/minimal',\n paddingBlock: '8',\n flexShrink: 0,\n },\n action: {\n display: 'flex',\n alignItems: 'center',\n gap: '12',\n paddingInlineEnd: '24',\n paddingInlineStart: '16',\n color: 'text/primary',\n width: '100%',\n cursor: 'pointer',\n textAlign: 'start',\n _icon: {\n color: 'icon/secondary',\n },\n _hover: {\n background: 'button/secondary/bg-hover',\n _active: {\n background: 'button/secondary/bg-active',\n },\n },\n _active: {\n background: 'button/secondary/bg-active',\n },\n _focusVisible: {\n outlineOffset: '-3px',\n },\n },\n },\n\n variants: {\n hasStatusIcon: {\n true: {\n trigger: {\n paddingInlineEnd: '96',\n },\n },\n false: {},\n },\n size: {\n lg: {\n ...variants.size.lg,\n checkbox: {\n width: '24',\n height: '24',\n },\n item: {\n ...variants.size.lg.item,\n '&:has([data-slot=\"avatar\"])': {\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlock: '8',\n gap: '8',\n },\n '&:has([data-slot=\"checkbox\"])': {\n minHeight: '48',\n paddingInlineEnd: '24',\n paddingBlock: '12',\n gap: '12',\n },\n },\n itemList: {\n // 5.5 × 48px item + 16px paddingBlock\n maxHeight: rem(280),\n },\n itemLabel: {\n textStyle: 'body/lg/regular',\n lineHeight: 'normal',\n },\n itemLoadingLabel: {\n textStyle: 'body/lg/regular',\n },\n emptyState: {\n paddingBlock: '12',\n },\n action: {\n minHeight: '48',\n paddingBlock: '12',\n textStyle: 'body/lg/regular',\n lineHeight: 'normal',\n },\n searchInputGroup: {\n height: rem(56),\n paddingBlock: '16',\n },\n searchInput: {\n textStyle: 'body/lg/regular',\n },\n searchClear: {\n padding: '8',\n },\n },\n md: {\n ...variants.size.md,\n checkbox: {\n width: '20',\n height: '20',\n },\n item: {\n ...variants.size.md.item,\n '&:has([data-slot=\"avatar\"])': {\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlock: '4',\n gap: '8',\n },\n '&:has([data-slot=\"checkbox\"])': {\n minHeight: '40',\n paddingInlineEnd: '24',\n paddingBlock: '8',\n gap: '12',\n },\n },\n itemList: {\n // 5.5 × 40px item (checkbox/avatar row) + 16px paddingBlock\n maxHeight: rem(236),\n },\n itemLabel: {\n textStyle: 'body/md/regular',\n lineHeight: 'normal',\n },\n itemLoadingLabel: {\n textStyle: 'body/md/regular',\n },\n emptyState: {\n paddingBlock: '8',\n },\n action: {\n minHeight: '40',\n paddingBlock: '8',\n textStyle: 'body/md/regular',\n lineHeight: 'normal',\n },\n trigger: {\n textStyle: 'body/md/regular',\n paddingBlock: rem(9),\n },\n searchInputGroup: {\n height: '48',\n paddingBlock: '12',\n },\n searchInput: {\n textStyle: 'body/md/regular',\n },\n searchClear: {\n padding: '4',\n },\n },\n },\n },\n defaultVariants: {\n size: 'lg',\n },\n});\n"],"mappings":";;;;;AAMA,IAAa,mBAAmB,iBAAiB;CAC/C,WAAW;CACX,OAAO;EACL,GAAG,cAAc,KAAK;EACtB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,MAAM;EACJ,SAAS;GACP,SAAS;GACT,YAAY;GACZ,aAAa,IAAI,CAAC;GAClB,aAAa;GACb,YAAY;GACZ,OAAO;GACP,KAAK;GACL,gBAAgB;GAChB,oBAAoB;GACpB,kBAAkB;GAClB,cAAc,IAAI,EAAE;GACpB,cAAc;GACd,YAAY;GACZ,WAAW;GACX,kBAAkB;GAClB,OAAO;GACP,OAAO,EACL,aAAa,eACf;GACA,mBAAmB,EACjB,OAAO,iBACT;GACA,WAAW;IACT,OAAO;IACP,YAAY;GACd;GACA,UAAU,EACR,aAAa,eACf;GACA,WAAW,EACT,YAAY,sBACd;EACF;EACA,gBAAgB;GACd,SAAS;GACT,YAAY;GACZ,KAAK;GACL,UAAU;GACV,UAAU;GACV,KAAK;GACL,QAAQ;GACR,eAAe;GACf,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,OAAO;GACP,WAAW,EACT,OAAO,gBACT;GACA,WAAW,EACT,OAAO,mBACT;EACF;EACA,GAAG;EACH,SAAS;GACP,GAAG,KAAK;GACR,UAAU;GACV,SAAS;GACT,eAAe;GACf,UAAU,IAAI,GAAG;GACjB,kBAAkB;EACpB;EACA,MAAM;GACJ,GAAG,KAAK;GACR,SAAS,EACP,YAAY,oBACd;GACA,WAAW;IACT,YAAY;IACZ,cAAc,EACZ,YAAY,4BACd;GACF;GACA,WAAW;IACT,QAAQ;IACR,OAAO;IACP,cAAc,EACZ,YAAY,cACd;GACF;EACF;EACA,SAAS;GACP,UAAU;GACV,OAAO;EACT;EACA,WAAW;GACT,SAAS;GACT,YAAY;GACZ,KAAK;GACL,MAAM;GACN,UAAU;GACV,UAAU;EACZ;EACA,UAAU;GACR,MAAM;GACN,WAAW;GACX,WAAW;GACX,cAAc;EAChB;EACA,aAAa;GACX,SAAS;GACT,eAAe;GACf,MAAM;GACN,UAAU;EACZ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WAAW,IAAI,GAAG,EACpB;IACA,WAAW;KACT,WAAW;KACX,YAAY;IACd;IACA,kBAAkB,EAChB,WAAW,kBACb;IACA,YAAY,EACV,cAAc,IAChB;IACA,QAAQ;KACN,WAAW;KACX,cAAc;KACd,WAAW;KACX,YAAY;IACd;IACA,SAAS;KACP,WAAW;KACX,cAAc,IAAI,CAAC;IACrB;IACA,kBAAkB;KAChB,QAAQ;KACR,cAAc;IAChB;IACA,aAAa,EACX,WAAW,kBACb;IACA,aAAa,EACX,SAAS,IACX;GACF;EACF;CACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC"}
1
+ {"version":3,"file":"Select.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Select.recipe.ts"],"sourcesContent":["import { selectAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { base, variants } from '../common/ComboboxAndSelect.common';\nimport { rem } from '../themeUtils';\n\nexport const selectSlotRecipe = defineSlotRecipe({\n className: 'select',\n slots: [\n ...selectAnatomy.keys(),\n 'searchInputGroup',\n 'searchInput',\n 'searchClear',\n 'actionContainer',\n 'action',\n 'checkbox',\n 'checkmark',\n 'itemList',\n 'itemContent',\n 'itemLabel',\n 'itemHelperText',\n 'itemLoading',\n 'itemLoadingLabel',\n 'emptyState',\n ],\n base: {\n trigger: {\n display: 'flex',\n alignItems: 'center',\n borderWidth: '1',\n borderColor: 'border/strong',\n background: 'bg.muted',\n color: 'input/text/inputValue',\n gap: '8',\n justifyContent: 'space-between',\n paddingInlineStart: '16',\n paddingInlineEnd: '48',\n paddingBlock: rem(11),\n borderRadius: '4',\n userSelect: 'none',\n textAlign: 'start',\n focusVisibleRing: 'inside',\n width: '100%',\n _open: {\n borderColor: 'border/focus',\n },\n _placeholderShown: {\n color: 'text/secondary',\n },\n _disabled: {\n color: 'text/disabled',\n background: 'background/disabled',\n },\n _invalid: {\n borderColor: 'border/error',\n },\n _readOnly: {\n background: 'background/disabled',\n },\n },\n indicatorGroup: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n position: 'absolute',\n insetEnd: 0,\n top: 0,\n bottom: 0,\n paddingInline: '16',\n pointerEvents: 'none',\n },\n indicator: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n color: 'icon/secondary',\n _disabled: {\n color: 'icon/disabled',\n },\n _readOnly: {\n color: 'icon/on-disabled',\n },\n },\n ...base,\n content: {\n ...base.content,\n overflow: 'hidden',\n display: 'flex',\n flexDirection: 'column',\n maxWidth: rem(800),\n focusVisibleRing: 'none',\n },\n item: {\n ...base.item,\n _active: {\n background: 'background/active',\n },\n _selected: {\n background: 'background/selected',\n _highlighted: {\n background: 'background/selected-hover',\n },\n },\n _disabled: {\n cursor: 'not-allowed',\n color: 'text/disabled',\n _highlighted: {\n background: 'transparent',\n },\n },\n },\n control: {\n position: 'relative',\n width: '100%',\n },\n valueText: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n flex: '1 1 0',\n minWidth: 0,\n overflow: 'hidden',\n },\n itemList: {\n flex: '1 1 auto',\n minHeight: 0,\n overflowY: 'auto',\n paddingBlock: '8',\n },\n itemContent: {\n display: 'flex',\n flexDirection: 'column',\n flex: '1 0 0',\n minWidth: 0,\n },\n itemLoading: {\n flexShrink: 0,\n },\n itemLoadingLabel: {\n color: 'text/secondary',\n flex: '1 0 0',\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n emptyState: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n paddingInline: '16',\n },\n itemLabel: {\n color: 'text/body',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n minWidth: 0,\n '[data-disabled] &': {\n color: 'text/disabled',\n },\n },\n itemHelperText: {\n color: 'text/helper',\n textStyle: 'body/sm/regular',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n minWidth: 0,\n '[data-disabled] &': {\n color: 'text/disabled',\n },\n },\n checkbox: {\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n borderWidth: '1',\n borderColor: 'border/regular',\n borderRadius: '4',\n background: 'background/primary',\n boxShadow: 'inset/field',\n color: 'icon/on-color',\n '[data-state=checked] &': {\n background: 'input/checkbox/selection',\n borderColor: 'input/checkbox/selection',\n boxShadow: 'none',\n },\n '[data-disabled] &': {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n },\n },\n checkmark: {\n opacity: 0,\n color: 'icon/on-color',\n '[data-state=checked] &': {\n opacity: 1,\n },\n },\n searchInputGroup: {\n borderBottom: '1px solid',\n borderColor: 'border/minimal',\n background: 'background/primary',\n display: 'flex',\n alignItems: 'center',\n gap: '12',\n paddingInlineStart: '16',\n paddingInlineEnd: '12',\n overflow: 'hidden',\n flexShrink: 0,\n _hover: {\n background: 'background/secondary',\n },\n _focusWithin: {\n background: 'background/primary',\n },\n },\n searchInput: {\n flex: '1 0 0',\n minWidth: 0,\n border: 'none',\n outline: 'none',\n background: 'transparent',\n color: 'input/text/inputValue',\n paddingInline: 0,\n paddingBlock: 0,\n _placeholder: {\n color: 'input/text/placeholder',\n },\n },\n searchClear: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '4',\n color: 'icon/primary',\n cursor: 'pointer',\n flexShrink: 0,\n _hover: {\n background: 'background/hover',\n },\n },\n actionContainer: {\n borderTop: '1px solid',\n borderColor: 'border/minimal',\n paddingBlock: '8',\n flexShrink: 0,\n },\n action: {\n display: 'flex',\n alignItems: 'center',\n gap: '12',\n paddingInlineEnd: '24',\n paddingInlineStart: '16',\n color: 'text/primary',\n width: '100%',\n cursor: 'pointer',\n textAlign: 'start',\n _icon: {\n color: 'icon/secondary',\n },\n _hover: {\n background: 'button/secondary/bg-hover',\n _active: {\n background: 'button/secondary/bg-active',\n },\n },\n _active: {\n background: 'button/secondary/bg-active',\n },\n _focusVisible: {\n outlineOffset: '-3px',\n },\n },\n },\n\n variants: {\n hasStatusIcon: {\n true: {\n trigger: {\n paddingInlineEnd: '96',\n },\n },\n false: {},\n },\n size: {\n lg: {\n ...variants.size.lg,\n checkbox: {\n width: '24',\n height: '24',\n },\n item: {\n ...variants.size.lg.item,\n '&:has([data-slot=\"avatar\"])': {\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlock: '8',\n gap: '8',\n },\n '&:has([data-slot=\"checkbox\"])': {\n minHeight: '48',\n paddingInlineEnd: '24',\n paddingBlock: '12',\n gap: '12',\n },\n },\n itemList: {\n // 5.5 × 48px item + 16px paddingBlock\n maxHeight: rem(280),\n },\n itemLabel: {\n textStyle: 'body/lg/regular',\n lineHeight: 'normal',\n },\n itemLoadingLabel: {\n textStyle: 'body/lg/regular',\n },\n emptyState: {\n paddingBlock: '12',\n },\n action: {\n minHeight: '48',\n paddingBlock: '12',\n textStyle: 'body/lg/regular',\n lineHeight: 'normal',\n },\n searchInputGroup: {\n height: rem(56),\n paddingBlock: '16',\n },\n searchInput: {\n textStyle: 'body/lg/regular',\n },\n searchClear: {\n padding: '8',\n },\n },\n md: {\n ...variants.size.md,\n checkbox: {\n width: '20',\n height: '20',\n },\n item: {\n ...variants.size.md.item,\n '&:has([data-slot=\"avatar\"])': {\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlock: '4',\n gap: '8',\n },\n '&:has([data-slot=\"checkbox\"])': {\n minHeight: '40',\n paddingInlineEnd: '24',\n paddingBlock: '8',\n gap: '12',\n },\n },\n itemList: {\n // 5.5 × 40px item (checkbox/avatar row) + 16px paddingBlock\n maxHeight: rem(236),\n },\n itemLabel: {\n textStyle: 'body/md/regular',\n lineHeight: 'normal',\n },\n itemLoadingLabel: {\n textStyle: 'body/md/regular',\n },\n emptyState: {\n paddingBlock: '8',\n },\n action: {\n minHeight: '40',\n paddingBlock: '8',\n textStyle: 'body/md/regular',\n lineHeight: 'normal',\n },\n trigger: {\n textStyle: 'body/md/regular',\n paddingBlock: rem(9),\n },\n searchInputGroup: {\n height: '48',\n paddingBlock: '12',\n },\n searchInput: {\n textStyle: 'body/md/regular',\n },\n searchClear: {\n padding: '4',\n },\n },\n },\n },\n defaultVariants: {\n size: 'lg',\n },\n});\n"],"mappings":";;;;;AAMA,IAAa,mBAAmB,iBAAiB;CAC/C,WAAW;CACX,OAAO;EACL,GAAG,cAAc,KAAK;EACtB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,MAAM;EACJ,SAAS;GACP,SAAS;GACT,YAAY;GACZ,aAAa;GACb,aAAa;GACb,YAAY;GACZ,OAAO;GACP,KAAK;GACL,gBAAgB;GAChB,oBAAoB;GACpB,kBAAkB;GAClB,cAAc,IAAI,EAAE;GACpB,cAAc;GACd,YAAY;GACZ,WAAW;GACX,kBAAkB;GAClB,OAAO;GACP,OAAO,EACL,aAAa,eACf;GACA,mBAAmB,EACjB,OAAO,iBACT;GACA,WAAW;IACT,OAAO;IACP,YAAY;GACd;GACA,UAAU,EACR,aAAa,eACf;GACA,WAAW,EACT,YAAY,sBACd;EACF;EACA,gBAAgB;GACd,SAAS;GACT,YAAY;GACZ,KAAK;GACL,UAAU;GACV,UAAU;GACV,KAAK;GACL,QAAQ;GACR,eAAe;GACf,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,OAAO;GACP,WAAW,EACT,OAAO,gBACT;GACA,WAAW,EACT,OAAO,mBACT;EACF;EACA,GAAG;EACH,SAAS;GACP,GAAG,KAAK;GACR,UAAU;GACV,SAAS;GACT,eAAe;GACf,UAAU,IAAI,GAAG;GACjB,kBAAkB;EACpB;EACA,MAAM;GACJ,GAAG,KAAK;GACR,SAAS,EACP,YAAY,oBACd;GACA,WAAW;IACT,YAAY;IACZ,cAAc,EACZ,YAAY,4BACd;GACF;GACA,WAAW;IACT,QA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GACF;GACA,IAAI;IACF,GAAG,SAAS,KAAK;IACjB,UAAU;KACR,OAAO;KACP,QAAQ;IACV;IACA,MAAM;KACJ,GAAG,SAAS,KAAK,GAAG;KACpB,iCAA+B;MAC7B,oBAAoB;MACpB,kBAAkB;MAClB,cAAc;MACd,KAAK;KACP;KACA,mCAAiC;MAC/B,WAAW;MACX,kBAAkB;MAClB,cAAc;MACd,KAAK;KACP;IACF;IACA,UAAU,EAER,WAAW,IAAI,GAAG,EACpB;IACA,WAAW;KACT,WAAW;KACX,YAAY;IACd;IACA,kBAAkB,EAChB,WAAW,kBACb;IACA,YAAY,EACV,cAAc,IAChB;IACA,QAAQ;KACN,WAAW;KACX,cAAc;KACd,WAAW;KACX,YAAY;IACd;IACA,SAAS;KACP,WAAW;KACX,cAAc,IAAI,CAAC;IACrB;IACA,kBAAkB;KAChB,QAAQ;KACR,cAAc;IAChB;IACA,aAAa,EACX,WAAW,kBACb;IACA,aAAa,EACX,SAAS,IACX;GACF;EACF;CACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC"}
@@ -3,7 +3,7 @@ declare const splitButtonSlotRecipe: import('@chakra-ui/react').SlotRecipeDefini
3
3
  primary: {
4
4
  trigger: {
5
5
  borderWidth: "0";
6
- borderInlineStartWidth: string;
6
+ borderInlineStartWidth: "1";
7
7
  borderInlineStartColor: "border/on-contrast";
8
8
  _hover: {
9
9
  borderInlineStartColor: "border/on-contrast";
@@ -1,4 +1,3 @@
1
- import { rem } from "../themeUtils.js";
2
1
  import { defineSlotRecipe } from "@chakra-ui/react/styled-system";
3
2
  //#region lib/theme/slot-recipes/SplitButton.recipe.ts
4
3
  var splitButtonSlotRecipe = defineSlotRecipe({
@@ -21,7 +20,7 @@ var splitButtonSlotRecipe = defineSlotRecipe({
21
20
  variants: { variant: {
22
21
  primary: { trigger: {
23
22
  borderWidth: "0",
24
- borderInlineStartWidth: rem(1),
23
+ borderInlineStartWidth: "1",
25
24
  borderInlineStartColor: "border/on-contrast",
26
25
  _hover: {
27
26
  borderInlineStartColor: "border/on-contrast",
@@ -1 +1 @@
1
- {"version":3,"file":"SplitButton.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/SplitButton.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst splitButtonSlotRecipe = defineSlotRecipe({\n slots: ['root', 'action', 'trigger'],\n className: 'split-button',\n base: {\n action: {\n borderStartEndRadius: 0,\n borderEndEndRadius: 0,\n },\n trigger: {\n borderStartStartRadius: 0,\n borderEndStartRadius: 0,\n },\n },\n variants: {\n variant: {\n primary: {\n trigger: {\n borderWidth: '0',\n borderInlineStartWidth: rem(1),\n borderInlineStartColor: 'border/on-contrast',\n _hover: {\n borderInlineStartColor: 'border/on-contrast',\n _active: {\n borderInlineStartColor: 'border/on-contrast',\n },\n },\n _active: {\n borderInlineStartColor: 'border/on-contrast',\n },\n _disabled: {\n borderInlineStartColor: 'border/on-contrast',\n },\n _open: {\n backgroundColor: 'button/primary/bg-active',\n },\n },\n },\n secondary: {\n trigger: {\n _open: {\n backgroundColor: 'button/secondary/bg-active',\n borderColor: 'button/secondary/border-active',\n color: 'button/secondary/text-active',\n _icon: { color: 'button/secondary/icon-active' },\n },\n },\n },\n },\n },\n defaultVariants: {\n variant: 'primary',\n },\n});\n\nexport default splitButtonSlotRecipe;\n"],"mappings":";;;AAIA,IAAM,wBAAwB,iBAAiB;CAC7C,OAAO;EAAC;EAAQ;EAAU;CAAS;CACnC,WAAW;CACX,MAAM;EACJ,QAAQ;GACN,sBAAsB;GACtB,oBAAoB;EACtB;EACA,SAAS;GACP,wBAAwB;GACxB,sBAAsB;EACxB;CACF;CACA,UAAU,EACR,SAAS;EACP,SAAS,EACP,SAAS;GACP,aAAa;GACb,wBAAwB,IAAI,CAAC;GAC7B,wBAAwB;GACxB,QAAQ;IACN,wBAAwB;IACxB,SAAS,EACP,wBAAwB,qBAC1B;GACF;GACA,SAAS,EACP,wBAAwB,qBAC1B;GACA,WAAW,EACT,wBAAwB,qBAC1B;GACA,OAAO,EACL,iBAAiB,2BACnB;EACF,EACF;EACA,WAAW,EACT,SAAS,EACP,OAAO;GACL,iBAAiB;GACjB,aAAa;GACb,OAAO;GACP,OAAO,EAAE,OAAO,+BAA+B;EACjD,EACF,EACF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CAAC"}
1
+ {"version":3,"file":"SplitButton.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/SplitButton.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst splitButtonSlotRecipe = defineSlotRecipe({\n slots: ['root', 'action', 'trigger'],\n className: 'split-button',\n base: {\n action: {\n borderStartEndRadius: 0,\n borderEndEndRadius: 0,\n },\n trigger: {\n borderStartStartRadius: 0,\n borderEndStartRadius: 0,\n },\n },\n variants: {\n variant: {\n primary: {\n trigger: {\n borderWidth: '0',\n borderInlineStartWidth: '1',\n borderInlineStartColor: 'border/on-contrast',\n _hover: {\n borderInlineStartColor: 'border/on-contrast',\n _active: {\n borderInlineStartColor: 'border/on-contrast',\n },\n },\n _active: {\n borderInlineStartColor: 'border/on-contrast',\n },\n _disabled: {\n borderInlineStartColor: 'border/on-contrast',\n },\n _open: {\n backgroundColor: 'button/primary/bg-active',\n },\n },\n },\n secondary: {\n trigger: {\n _open: {\n backgroundColor: 'button/secondary/bg-active',\n borderColor: 'button/secondary/border-active',\n color: 'button/secondary/text-active',\n _icon: { color: 'button/secondary/icon-active' },\n },\n },\n },\n },\n },\n defaultVariants: {\n variant: 'primary',\n },\n});\n\nexport default splitButtonSlotRecipe;\n"],"mappings":";;AAEA,IAAM,wBAAwB,iBAAiB;CAC7C,OAAO;EAAC;EAAQ;EAAU;CAAS;CACnC,WAAW;CACX,MAAM;EACJ,QAAQ;GACN,sBAAsB;GACtB,oBAAoB;EACtB;EACA,SAAS;GACP,wBAAwB;GACxB,sBAAsB;EACxB;CACF;CACA,UAAU,EACR,SAAS;EACP,SAAS,EACP,SAAS;GACP,aAAa;GACb,wBAAwB;GACxB,wBAAwB;GACxB,QAAQ;IACN,wBAAwB;IACxB,SAAS,EACP,wBAAwB,qBAC1B;GACF;GACA,SAAS,EACP,wBAAwB,qBAC1B;GACA,WAAW,EACT,wBAAwB,qBAC1B;GACA,OAAO,EACL,iBAAiB,2BACnB;EACF,EACF;EACA,WAAW,EACT,SAAS,EACP,OAAO;GACL,iBAAiB;GACjB,aAAa;GACb,OAAO;GACP,OAAO,EAAE,OAAO,+BAA+B;EACjD,EACF,EACF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CAAC"}
@@ -7,7 +7,7 @@ declare const stepsSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"
7
7
  };
8
8
  item: {
9
9
  alignItems: "center";
10
- borderTopWidth: "2px";
10
+ borderTopWidth: "2";
11
11
  paddingBlock: "16";
12
12
  paddingInlineEnd: "24";
13
13
  "&[data-step-status=inProgress]": {
@@ -30,7 +30,7 @@ declare const stepsSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"
30
30
  };
31
31
  item: {
32
32
  alignItems: "flex-start";
33
- borderInlineStartWidth: "2px";
33
+ borderInlineStartWidth: "2";
34
34
  paddingInlineStart: "12";
35
35
  paddingInlineEnd: "24";
36
36
  paddingBlockEnd: "24";
@@ -41,7 +41,7 @@ var stepsSlotRecipe = defineSlotRecipe({
41
41
  alignItems: "center",
42
42
  flexShrink: "0",
43
43
  borderRadius: "9999px",
44
- borderWidth: "2px",
44
+ borderWidth: "2",
45
45
  borderStyle: "solid",
46
46
  width: "24",
47
47
  height: "24",
@@ -114,7 +114,7 @@ var stepsSlotRecipe = defineSlotRecipe({
114
114
  },
115
115
  item: {
116
116
  alignItems: "center",
117
- borderTopWidth: "2px",
117
+ borderTopWidth: "2",
118
118
  paddingBlock: "16",
119
119
  paddingInlineEnd: "24",
120
120
  [STATUS_IN_PROGRESS]: { _before: {
@@ -135,7 +135,7 @@ var stepsSlotRecipe = defineSlotRecipe({
135
135
  },
136
136
  item: {
137
137
  alignItems: "flex-start",
138
- borderInlineStartWidth: "2px",
138
+ borderInlineStartWidth: "2",
139
139
  paddingInlineStart: "12",
140
140
  paddingInlineEnd: "24",
141
141
  paddingBlockEnd: "24",
@@ -1 +1 @@
1
- {"version":3,"file":"Steps.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Steps.recipe.ts"],"sourcesContent":["import { stepsAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst STATUS_COMPLETED = '&[data-step-status=completed]';\nconst STATUS_DISABLED = '&[data-step-status=disabled]';\nconst STATUS_IN_PROGRESS = '&[data-step-status=inProgress]';\nconst STATUS_INVALID = '&[data-step-status=invalid]';\nconst STATUS_NOT_STARTED = '&[data-step-status=notStarted]';\nconst STATUS_SKIPPABLE = '&[data-step-status=skippable]';\nconst STATUS_SKIPPED = '&[data-step-status=skipped]';\n\nconst truncate = { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' } as const;\n\nconst stepsSlotRecipe = defineSlotRecipe({\n className: 'steps',\n slots: stepsAnatomy.keys(),\n base: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n },\n list: {\n display: 'flex',\n gap: 0,\n },\n item: {\n display: 'flex',\n flex: '1 0 0',\n gap: '8',\n borderStyle: 'solid',\n borderColor: 'border/disabled',\n\n [`${STATUS_COMPLETED}, ${STATUS_SKIPPED}`]: { borderColor: 'border/selected' },\n [STATUS_IN_PROGRESS]: { position: 'relative' },\n },\n indicator: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n flexShrink: '0',\n borderRadius: '9999px',\n borderWidth: '2px',\n borderStyle: 'solid',\n width: '24',\n height: '24',\n overflow: 'clip',\n textStyle: 'body/md/semibold',\n lineHeight: 'initial',\n\n [STATUS_NOT_STARTED]: {\n bg: 'background/primary',\n borderColor: 'border/strong',\n color: 'text/secondary',\n },\n [STATUS_IN_PROGRESS]: { bg: 'interactive/subtle', borderColor: 'border/selected', color: 'text/selected' },\n [STATUS_COMPLETED]: { bg: 'interactive/base', borderColor: 'border/selected', color: 'icon/on-color' },\n [STATUS_INVALID]: {\n bg: 'status/critical/bg',\n borderColor: 'border/error',\n color: 'text/negative',\n textStyle: 'heading/h4',\n },\n [`${STATUS_SKIPPABLE}, ${STATUS_SKIPPED}, ${STATUS_DISABLED}`]: {\n bg: 'background/primary',\n borderColor: 'border/disabled',\n color: 'text/disabled',\n },\n },\n trigger: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n flex: '1 0 0',\n minWidth: '1',\n },\n title: {\n ...truncate,\n textStyle: 'body/md/regular',\n color: 'text/secondary',\n lineHeight: 'initial!',\n\n [STATUS_IN_PROGRESS]: { textStyle: 'body/md/semibold', color: 'text/primary' },\n [`${STATUS_SKIPPABLE}, ${STATUS_SKIPPED}, ${STATUS_DISABLED}`]: { color: 'text/disabled' },\n },\n description: {\n ...truncate,\n textStyle: 'body/sm/regular',\n color: 'text/secondary',\n\n [`${STATUS_SKIPPABLE}, ${STATUS_SKIPPED}`]: { color: 'text/tertiary' },\n [STATUS_DISABLED]: { color: 'text/disabled' },\n },\n // Required by stepsAnatomy but unused in this component\n content: {},\n nextTrigger: {},\n prevTrigger: {},\n progress: {},\n separator: {},\n },\n variants: {\n orientation: {\n horizontal: {\n list: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n item: {\n alignItems: 'center',\n borderTopWidth: '2px',\n paddingBlock: '16',\n paddingInlineEnd: '24',\n\n [STATUS_IN_PROGRESS]: {\n _before: {\n content: '\"\"',\n position: 'absolute',\n insetBlockStart: '-2px',\n insetInlineStart: 0,\n width: '50%',\n height: '2',\n bg: 'border/selected',\n },\n },\n },\n },\n vertical: {\n list: {\n flexDirection: 'column',\n alignItems: 'stretch',\n },\n item: {\n alignItems: 'flex-start',\n borderInlineStartWidth: '2px',\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlockEnd: '24',\n\n '&:last-of-type': {\n paddingBlockEnd: 0,\n },\n\n [STATUS_IN_PROGRESS]: {\n _before: {\n content: '\"\"',\n position: 'absolute',\n insetBlockStart: 0,\n insetInlineStart: '-2px',\n width: '2',\n height: '50%',\n bg: 'border/selected',\n },\n },\n },\n trigger: {\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: '2',\n paddingBlockStart: '4',\n },\n },\n },\n },\n defaultVariants: {\n orientation: 'horizontal',\n },\n});\n\nexport default stepsSlotRecipe;\n"],"mappings":";;;AAGA,IAAM,mBAAmB;AACzB,IAAM,kBAAkB;AACxB,IAAM,qBAAqB;AAC3B,IAAM,iBAAiB;AACvB,IAAM,qBAAqB;AAC3B,IAAM,mBAAmB;AACzB,IAAM,iBAAiB;AAEvB,IAAM,WAAW;CAAE,UAAU;CAAU,cAAc;CAAY,YAAY;AAAS;AAEtF,IAAM,kBAAkB,iBAAiB;CACvC,WAAW;CACX,OAAO,aAAa,KAAK;CACzB,MAAM;EACJ,MAAM;GACJ,SAAS;GACT,eAAe;GACf,OAAO;EACT;EACA,MAAM;GACJ,SAAS;GACT,KAAK;EACP;EACA,MAAM;GACJ,SAAS;GACT,MAAM;GACN,KAAK;GACL,aAAa;GACb,aAAa;IAEZ,GAAG,iBAAiB,IAAI,mBAAmB,EAAE,aAAa,kBAAkB;IAC5E,qBAAqB,EAAE,UAAU,WAAW;EAC/C;EACA,WAAW;GACT,SAAS;GACT,gBAAgB;GAChB,YAAY;GACZ,YAAY;GACZ,cAAc;GACd,aAAa;GACb,aAAa;GACb,OAAO;GACP,QAAQ;GACR,UAAU;GACV,WAAW;GACX,YAAY;IAEX,qBAAqB;IACpB,IAAI;IACJ,aAAa;IACb,OAAO;GACT;IACC,qBAAqB;IAAE,IAAI;IAAsB,aAAa;IAAmB,OAAO;GAAgB;IACxG,mBAAmB;IAAE,IAAI;IAAoB,aAAa;IAAmB,OAAO;GAAgB;IAC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;IACL,mBAAmB;GACrB;EACF;CACF,EACF;CACA,iBAAiB,EACf,aAAa,aACf;AACF,CAAC"}
1
+ {"version":3,"file":"Steps.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Steps.recipe.ts"],"sourcesContent":["import { stepsAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst STATUS_COMPLETED = '&[data-step-status=completed]';\nconst STATUS_DISABLED = '&[data-step-status=disabled]';\nconst STATUS_IN_PROGRESS = '&[data-step-status=inProgress]';\nconst STATUS_INVALID = '&[data-step-status=invalid]';\nconst STATUS_NOT_STARTED = '&[data-step-status=notStarted]';\nconst STATUS_SKIPPABLE = '&[data-step-status=skippable]';\nconst STATUS_SKIPPED = '&[data-step-status=skipped]';\n\nconst truncate = { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' } as const;\n\nconst stepsSlotRecipe = defineSlotRecipe({\n className: 'steps',\n slots: stepsAnatomy.keys(),\n base: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n },\n list: {\n display: 'flex',\n gap: 0,\n },\n item: {\n display: 'flex',\n flex: '1 0 0',\n gap: '8',\n borderStyle: 'solid',\n borderColor: 'border/disabled',\n\n [`${STATUS_COMPLETED}, ${STATUS_SKIPPED}`]: { borderColor: 'border/selected' },\n [STATUS_IN_PROGRESS]: { position: 'relative' },\n },\n indicator: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n flexShrink: '0',\n borderRadius: '9999px',\n borderWidth: '2',\n borderStyle: 'solid',\n width: '24',\n height: '24',\n overflow: 'clip',\n textStyle: 'body/md/semibold',\n lineHeight: 'initial',\n\n [STATUS_NOT_STARTED]: {\n bg: 'background/primary',\n borderColor: 'border/strong',\n color: 'text/secondary',\n },\n [STATUS_IN_PROGRESS]: { bg: 'interactive/subtle', borderColor: 'border/selected', color: 'text/selected' },\n [STATUS_COMPLETED]: { bg: 'interactive/base', borderColor: 'border/selected', color: 'icon/on-color' },\n [STATUS_INVALID]: {\n bg: 'status/critical/bg',\n borderColor: 'border/error',\n color: 'text/negative',\n textStyle: 'heading/h4',\n },\n [`${STATUS_SKIPPABLE}, ${STATUS_SKIPPED}, ${STATUS_DISABLED}`]: {\n bg: 'background/primary',\n borderColor: 'border/disabled',\n color: 'text/disabled',\n },\n },\n trigger: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n flex: '1 0 0',\n minWidth: '1',\n },\n title: {\n ...truncate,\n textStyle: 'body/md/regular',\n color: 'text/secondary',\n lineHeight: 'initial!',\n\n [STATUS_IN_PROGRESS]: { textStyle: 'body/md/semibold', color: 'text/primary' },\n [`${STATUS_SKIPPABLE}, ${STATUS_SKIPPED}, ${STATUS_DISABLED}`]: { color: 'text/disabled' },\n },\n description: {\n ...truncate,\n textStyle: 'body/sm/regular',\n color: 'text/secondary',\n\n [`${STATUS_SKIPPABLE}, ${STATUS_SKIPPED}`]: { color: 'text/tertiary' },\n [STATUS_DISABLED]: { color: 'text/disabled' },\n },\n // Required by stepsAnatomy but unused in this component\n content: {},\n nextTrigger: {},\n prevTrigger: {},\n progress: {},\n separator: {},\n },\n variants: {\n orientation: {\n horizontal: {\n list: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n item: {\n alignItems: 'center',\n borderTopWidth: '2',\n paddingBlock: '16',\n paddingInlineEnd: '24',\n\n [STATUS_IN_PROGRESS]: {\n _before: {\n content: '\"\"',\n position: 'absolute',\n insetBlockStart: '-2px',\n insetInlineStart: 0,\n width: '50%',\n height: '2',\n bg: 'border/selected',\n },\n },\n },\n },\n vertical: {\n list: {\n flexDirection: 'column',\n alignItems: 'stretch',\n },\n item: {\n alignItems: 'flex-start',\n borderInlineStartWidth: '2',\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlockEnd: '24',\n\n '&:last-of-type': {\n paddingBlockEnd: 0,\n },\n\n [STATUS_IN_PROGRESS]: {\n _before: {\n content: '\"\"',\n position: 'absolute',\n insetBlockStart: 0,\n insetInlineStart: '-2px',\n width: '2',\n height: '50%',\n bg: 'border/selected',\n },\n },\n },\n trigger: {\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: '2',\n paddingBlockStart: '4',\n },\n },\n },\n },\n defaultVariants: {\n orientation: 'horizontal',\n },\n});\n\nexport default stepsSlotRecipe;\n"],"mappings":";;;AAGA,IAAM,mBAAmB;AACzB,IAAM,kBAAkB;AACxB,IAAM,qBAAqB;AAC3B,IAAM,iBAAiB;AACvB,IAAM,qBAAqB;AAC3B,IAAM,mBAAmB;AACzB,IAAM,iBAAiB;AAEvB,IAAM,WAAW;CAAE,UAAU;CAAU,cAAc;CAAY,YAAY;AAAS;AAEtF,IAAM,kBAAkB,iBAAiB;CACvC,WAAW;CACX,OAAO,aAAa,KAAK;CACzB,MAAM;EACJ,MAAM;GACJ,SAAS;GACT,eAAe;GACf,OAAO;EACT;EACA,MAAM;GACJ,SAAS;GACT,KAAK;EACP;EACA,MAAM;GACJ,SAAS;GACT,MAAM;GACN,KAAK;GACL,aAAa;GACb,aAAa;IAEZ,GAAG,iBAAiB,IAAI,mBAAmB,EAAE,aAAa,kBAAkB;IAC5E,qBAAqB,EAAE,UAAU,WAAW;EAC/C;EACA,WAAW;GACT,SAAS;GACT,gBAAgB;GAChB,YAAY;GACZ,YAAY;GACZ,cAAc;GACd,aAAa;GACb,aAAa;GACb,OAAO;GACP,QAAQ;GACR,UAAU;GACV,WAAW;GACX,YAAY;IAEX,qBAAqB;IACpB,IAAI;IACJ,aAAa;IACb,OAAO;GACT;IACC,qBAAqB;IAAE,IAAI;IAAsB,aAAa;IAAmB,OAAO;GAAgB;IACxG,mBAAmB;IAAE,IAAI;IAAoB,aAAa;IAAmB,OAAO;GAAgB;IACpG,iBAAiB;IAChB,IAAI;IACJ,aAAa;IACb,OAAO;IACP,WAAW;GACb;IACC,GAAG,iBAAiB,IAAI,eAAe,IAAI,oBAAoB;IAC9D,IAAI;IACJ,aAAa;IACb,OAAO;GACT;EACF;EACA,SAAS;GACP,SAAS;GACT,YAAY;GACZ,KAAK;GACL,MAAM;GACN,UAAU;EACZ;EACA,OAAO;GACL,GAAG;GACH,WAAW;GACX,OAAO;GACP,YAAY;IAEX,qBAAqB;IAAE,WAAW;IAAoB,OAAO;GAAe;IAC5E,GAAG,iBAAiB,IAAI,eAAe,IAAI,oBAAoB,EAAE,OAAO,gBAAgB;EAC3F;EACA,aAAa;GACX,GAAG;GACH,WAAW;GACX,OAAO;IAEN,GAAG,iBAAiB,IAAI,mBAAmB,EAAE,OAAO,gBAAgB;IACpE,kBAAkB,EAAE,OAAO,gBAAgB;EAC9C;EAEA,SAAS,CAAC;EACV,aAAa,CAAC;EACd,aAAa,CAAC;EACd,UAAU,CAAC;EACX,WAAW,CAAC;CACd;CACA,UAAU,EACR,aAAa;EACX,YAAY;GACV,MAAM;IACJ,eAAe;IACf,YAAY;GACd;GACA,MAAM;IACJ,YAAY;IACZ,gBAAgB;IAChB,cAAc;IACd,kBAAkB;KAEjB,qBAAqB,EACpB,SAAS;KACP,SAAS;KACT,UAAU;KACV,iBAAiB;KACjB,kBAAkB;KAClB,OAAO;KACP,QAAQ;KACR,IAAI;IACN,EACF;GACF;EACF;EACA,UAAU;GACR,MAAM;IACJ,eAAe;IACf,YAAY;GACd;GACA,MAAM;IACJ,YAAY;IACZ,wBAAwB;IACxB,oBAAoB;IACpB,kBAAkB;IAClB,iBAAiB;IAEjB,kBAAkB,EAChB,iBAAiB,EACnB;KAEC,qBAAqB,EACpB,SAAS;KACP,SAAS;KACT,UAAU;KACV,iBAAiB;KACjB,kBAAkB;KAClB,OAAO;KACP,QAAQ;KACR,IAAI;IACN,EACF;GACF;GACA,SAAS;IACP,eAAe;IACf,YAAY;IACZ,KAAK;IACL,mBAAmB;GACrB;EACF;CACF,EACF;CACA,iBAAiB,EACf,aAAa,aACf;AACF,CAAC"}
@@ -5,7 +5,7 @@ declare const tableSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"
5
5
  borderColor: "border/minimal";
6
6
  borderRadius: "4";
7
7
  borderStyle: "solid";
8
- borderWidth: "1px";
8
+ borderWidth: "1";
9
9
  overflow: "hidden";
10
10
  };
11
11
  header: {
@@ -68,7 +68,7 @@ declare const tableSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"
68
68
  };
69
69
  columnHeader: {
70
70
  borderBottomStyle: "solid";
71
- borderBottomWidth: "1px";
71
+ borderBottomWidth: "1";
72
72
  color: "text/primary";
73
73
  fontWeight: "bold";
74
74
  textAlign: "start";
@@ -77,7 +77,7 @@ declare const tableSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"
77
77
  };
78
78
  cell: {
79
79
  borderBottomStyle: "solid";
80
- borderBottomWidth: "1px";
80
+ borderBottomWidth: "1";
81
81
  verticalAlign: "middle";
82
82
  };
83
83
  body: {
@@ -101,7 +101,7 @@ declare const tableSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"
101
101
  backgroundColor: "background/tertiary";
102
102
  borderBottomColor: "border/minimal";
103
103
  borderBottomStyle: "solid";
104
- borderBottomWidth: "1px";
104
+ borderBottomWidth: "1";
105
105
  };
106
106
  header: {
107
107
  borderWidth: "0";
@@ -120,7 +120,7 @@ declare const tableSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"
120
120
  row: {
121
121
  borderBottomColor: "border/minimal";
122
122
  borderBottomStyle: "solid";
123
- borderBottomWidth: "1px";
123
+ borderBottomWidth: "1";
124
124
  display: "block";
125
125
  paddingBlock: "12";
126
126
  '&:last-child': {
@@ -22,7 +22,7 @@ var tableSlotRecipe = defineSlotRecipe({
22
22
  },
23
23
  footer: {
24
24
  borderTopStyle: "solid",
25
- borderTopWidth: "1px"
25
+ borderTopWidth: "1"
26
26
  }
27
27
  },
28
28
  variants: {
@@ -32,7 +32,7 @@ var tableSlotRecipe = defineSlotRecipe({
32
32
  borderColor: "border/minimal",
33
33
  borderRadius: "4",
34
34
  borderStyle: "solid",
35
- borderWidth: "1px",
35
+ borderWidth: "1",
36
36
  overflow: "hidden"
37
37
  },
38
38
  header: { "& :where(th)": { backgroundColor: "background/tertiary" } },
@@ -73,7 +73,7 @@ var tableSlotRecipe = defineSlotRecipe({
73
73
  caption: { marginBlockEnd: "24" },
74
74
  columnHeader: {
75
75
  borderBottomStyle: "solid",
76
- borderBottomWidth: "1px",
76
+ borderBottomWidth: "1",
77
77
  color: "text/primary",
78
78
  fontWeight: "bold",
79
79
  textAlign: "start",
@@ -82,7 +82,7 @@ var tableSlotRecipe = defineSlotRecipe({
82
82
  },
83
83
  cell: {
84
84
  borderBottomStyle: "solid",
85
- borderBottomWidth: "1px",
85
+ borderBottomWidth: "1",
86
86
  verticalAlign: "middle"
87
87
  },
88
88
  body: {
@@ -98,7 +98,7 @@ var tableSlotRecipe = defineSlotRecipe({
98
98
  backgroundColor: "background/tertiary",
99
99
  borderBottomColor: "border/minimal",
100
100
  borderBottomStyle: "solid",
101
- borderBottomWidth: "1px"
101
+ borderBottomWidth: "1"
102
102
  },
103
103
  header: {
104
104
  borderWidth: "0",
@@ -115,7 +115,7 @@ var tableSlotRecipe = defineSlotRecipe({
115
115
  row: {
116
116
  borderBottomColor: "border/minimal",
117
117
  borderBottomStyle: "solid",
118
- borderBottomWidth: "1px",
118
+ borderBottomWidth: "1",
119
119
  display: "block",
120
120
  paddingBlock: "12",
121
121
  "&:last-child": { borderBottomWidth: "0" }
@@ -1 +1 @@
1
- {"version":3,"file":"Table.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Table.recipe.ts"],"sourcesContent":["import { tableAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst tableSlotRecipe = defineSlotRecipe({\n className: 'table',\n slots: tableAnatomy.keys(),\n base: {\n root: {\n fontVariantNumeric: 'lining-nums tabular-nums',\n textAlign: 'start',\n width: 'full',\n },\n caption: {\n captionSide: 'top !important',\n textAlign: 'start',\n '& > * + *': {\n marginBlockStart: '4',\n },\n },\n cell: {\n color: 'text/body',\n textStyle: 'body/md/regular',\n },\n footer: {\n borderTopStyle: 'solid',\n borderTopWidth: '1px',\n },\n },\n variants: {\n variant: {\n default: {\n root: {\n borderColor: 'border/minimal',\n borderRadius: '4',\n borderStyle: 'solid',\n borderWidth: '1px',\n overflow: 'hidden',\n },\n header: {\n '& :where(th)': {\n backgroundColor: 'background/tertiary',\n },\n },\n columnHeader: {\n borderBottomColor: 'border/minimal',\n paddingBlock: '12',\n paddingInline: '16',\n },\n cell: {\n borderBottomColor: 'border/minimal',\n paddingInline: '16',\n },\n footer: {\n borderTopColor: 'border/minimal',\n },\n },\n borderless: {\n columnHeader: {\n borderBottomColor: 'border/regular',\n padding: '12',\n },\n cell: {\n borderBottomColor: 'border/regular',\n paddingInline: '12',\n },\n footer: {\n borderTopColor: 'border/regular',\n },\n },\n },\n size: {\n sm: {\n cell: {\n height: '48',\n },\n },\n md: {\n cell: {\n height: rem(56),\n },\n },\n lg: {\n cell: {\n height: '64',\n },\n },\n },\n layout: {\n table: {\n root: {\n borderCollapse: 'separate',\n borderSpacing: '0',\n },\n caption: {\n marginBlockEnd: '24',\n },\n columnHeader: {\n borderBottomStyle: 'solid',\n borderBottomWidth: '1px',\n color: 'text/primary',\n fontWeight: 'bold',\n textAlign: 'start',\n textStyle: 'heading/h5',\n verticalAlign: 'middle',\n },\n cell: {\n borderBottomStyle: 'solid',\n borderBottomWidth: '1px',\n verticalAlign: 'middle',\n },\n body: {\n '& :where(tr)': {\n _hover: {\n backgroundColor: 'background/hover',\n },\n },\n '& :where(tr:last-child) td': {\n borderBottomWidth: '0',\n },\n },\n },\n stacked: {\n root: {\n display: 'block',\n },\n caption: {\n display: 'block',\n padding: '16',\n backgroundColor: 'background/tertiary',\n borderBottomColor: 'border/minimal',\n borderBottomStyle: 'solid',\n borderBottomWidth: '1px',\n },\n header: {\n borderWidth: '0',\n clip: 'rect(0, 0, 0, 0)',\n height: '1',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1',\n },\n body: {\n display: 'block',\n },\n row: {\n borderBottomColor: 'border/minimal',\n borderBottomStyle: 'solid',\n borderBottomWidth: '1px',\n display: 'block',\n paddingBlock: '12',\n '&:last-child': {\n borderBottomWidth: '0',\n },\n },\n cell: {\n alignItems: 'center',\n display: 'flex',\n minHeight: '48',\n paddingInline: '16',\n _before: {\n alignSelf: 'center',\n color: 'text/primary',\n content: 'attr(data-label)',\n flexShrink: 0,\n fontWeight: 'semibold',\n paddingInlineEnd: '16',\n width: '96',\n },\n },\n footer: {\n display: 'block',\n },\n },\n },\n },\n compoundVariants: [\n {\n css: {\n row: {\n borderBottomColor: 'border/regular',\n },\n },\n layout: 'stacked',\n variant: 'borderless',\n },\n ],\n defaultVariants: {\n layout: 'table',\n size: 'lg',\n variant: 'default',\n },\n});\n\nexport default tableSlotRecipe;\n"],"mappings":";;;;AAKA,IAAM,kBAAkB,iBAAiB;CACvC,WAAW;CACX,OAAO,aAAa,KAAK;CACzB,MAAM;EACJ,MAAM;GACJ,oBAAoB;GACpB,WAAW;GACX,OAAO;EACT;EACA,SAAS;GACP,aAAa;GACb,WAAW;GACX,aAAa,EACX,kBAAkB,IACpB;EACF;EACA,MAAM;GACJ,OAAO;GACP,WAAW;EACb;EACA,QAAQ;GACN,gBAAgB;GAChB,gBAAgB;EAClB;CACF;CACA,UAAU;EACR,SAAS;GACP,SAAS;IACP,MAAM;KACJ,aAAa;KACb,cAAc;KACd,aAAa;KACb,aAAa;KACb,UAAU;IACZ;IACA,QAAQ,EACN,gBAAgB,EACd,iBAAiB,sBACnB,EACF;IACA,cAAc;KACZ,mBAAmB;KACnB,cAAc;KACd,eAAe;IACjB;IACA,MAAM;KACJ,mBAAmB;KACnB,eAAe;IACjB;IACA,QAAQ,EACN,gBAAgB,iBAClB;GACF;GACA,YAAY;IACV,cAAc;KACZ,mBAAmB;KACnB,SAAS;IACX;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AK,EACH,KAAK,EACH,mBAAmB,iBACrB,EACF;EACA,QAAQ;EACR,SAAS;CACX,CACF;CACA,iBAAiB;EACf,QAAQ;EACR,MAAM;EACN,SAAS;CACX;AACF,CAAC"}
1
+ {"version":3,"file":"Table.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Table.recipe.ts"],"sourcesContent":["import { tableAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst tableSlotRecipe = defineSlotRecipe({\n className: 'table',\n slots: tableAnatomy.keys(),\n base: {\n root: {\n fontVariantNumeric: 'lining-nums tabular-nums',\n textAlign: 'start',\n width: 'full',\n },\n caption: {\n captionSide: 'top !important',\n textAlign: 'start',\n '& > * + *': {\n marginBlockStart: '4',\n },\n },\n cell: {\n color: 'text/body',\n textStyle: 'body/md/regular',\n },\n footer: {\n borderTopStyle: 'solid',\n borderTopWidth: '1',\n },\n },\n variants: {\n variant: {\n default: {\n root: {\n borderColor: 'border/minimal',\n borderRadius: '4',\n borderStyle: 'solid',\n borderWidth: '1',\n overflow: 'hidden',\n },\n header: {\n '& :where(th)': {\n backgroundColor: 'background/tertiary',\n },\n },\n columnHeader: {\n borderBottomColor: 'border/minimal',\n paddingBlock: '12',\n paddingInline: '16',\n },\n cell: {\n borderBottomColor: 'border/minimal',\n paddingInline: '16',\n },\n footer: {\n borderTopColor: 'border/minimal',\n },\n },\n borderless: {\n columnHeader: {\n borderBottomColor: 'border/regular',\n padding: '12',\n },\n cell: {\n borderBottomColor: 'border/regular',\n paddingInline: '12',\n },\n footer: {\n borderTopColor: 'border/regular',\n },\n },\n },\n size: {\n sm: {\n cell: {\n height: '48',\n },\n },\n md: {\n cell: {\n height: rem(56),\n },\n },\n lg: {\n cell: {\n height: '64',\n },\n },\n },\n layout: {\n table: {\n root: {\n borderCollapse: 'separate',\n borderSpacing: '0',\n },\n caption: {\n marginBlockEnd: '24',\n },\n columnHeader: {\n borderBottomStyle: 'solid',\n borderBottomWidth: '1',\n color: 'text/primary',\n fontWeight: 'bold',\n textAlign: 'start',\n textStyle: 'heading/h5',\n verticalAlign: 'middle',\n },\n cell: {\n borderBottomStyle: 'solid',\n borderBottomWidth: '1',\n verticalAlign: 'middle',\n },\n body: {\n '& :where(tr)': {\n _hover: {\n backgroundColor: 'background/hover',\n },\n },\n '& :where(tr:last-child) td': {\n borderBottomWidth: '0',\n },\n },\n },\n stacked: {\n root: {\n display: 'block',\n },\n caption: {\n display: 'block',\n padding: '16',\n backgroundColor: 'background/tertiary',\n borderBottomColor: 'border/minimal',\n borderBottomStyle: 'solid',\n borderBottomWidth: '1',\n },\n header: {\n borderWidth: '0',\n clip: 'rect(0, 0, 0, 0)',\n height: '1',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1',\n },\n body: {\n display: 'block',\n },\n row: {\n borderBottomColor: 'border/minimal',\n borderBottomStyle: 'solid',\n borderBottomWidth: '1',\n display: 'block',\n paddingBlock: '12',\n '&:last-child': {\n borderBottomWidth: '0',\n },\n },\n cell: {\n alignItems: 'center',\n display: 'flex',\n minHeight: '48',\n paddingInline: '16',\n _before: {\n alignSelf: 'center',\n color: 'text/primary',\n content: 'attr(data-label)',\n flexShrink: 0,\n fontWeight: 'semibold',\n paddingInlineEnd: '16',\n width: '96',\n },\n },\n footer: {\n display: 'block',\n },\n },\n },\n },\n compoundVariants: [\n {\n css: {\n row: {\n borderBottomColor: 'border/regular',\n },\n },\n layout: 'stacked',\n variant: 'borderless',\n },\n ],\n defaultVariants: {\n layout: 'table',\n size: 'lg',\n variant: 'default',\n },\n});\n\nexport default tableSlotRecipe;\n"],"mappings":";;;;AAKA,IAAM,kBAAkB,iBAAiB;CACvC,WAAW;CACX,OAAO,aAAa,KAAK;CACzB,MAAM;EACJ,MAAM;GACJ,oBAAoB;GACpB,WAAW;GACX,OAAO;EACT;EACA,SAAS;GACP,aAAa;GAC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