@bitrise/bitkit-v2 0.3.251 → 0.3.252-beta.1704
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BitkitActionBar/BitkitActionBar.js +1 -1
- package/dist/components/BitkitActionBar/BitkitActionBar.js.map +1 -1
- package/dist/components/BitkitAlert/BitkitAlert.js +2 -2
- package/dist/components/BitkitAlert/BitkitAlert.js.map +1 -1
- package/dist/components/BitkitAvatar/BitkitAvatar.d.ts +3 -4
- package/dist/components/BitkitAvatar/BitkitAvatar.js +4 -6
- package/dist/components/BitkitAvatar/BitkitAvatar.js.map +1 -1
- package/dist/components/BitkitBadge/BitkitBadge.d.ts +2 -5
- package/dist/components/BitkitBadge/BitkitBadge.js.map +1 -1
- package/dist/components/BitkitCloseButton/BitkitCloseButton.d.ts +1 -1
- package/dist/components/BitkitCloseButton/BitkitCloseButton.js +6 -3
- package/dist/components/BitkitCloseButton/BitkitCloseButton.js.map +1 -1
- package/dist/components/BitkitColorButton/BitkitColorButton.d.ts +1 -1
- package/dist/components/BitkitColorButton/BitkitColorButton.js.map +1 -1
- package/dist/components/BitkitLabel/BitkitLabel.js +1 -1
- package/dist/components/BitkitLabel/BitkitLabel.js.map +1 -1
- package/dist/components/BitkitList/BitkitList.d.ts +1 -1
- package/dist/components/BitkitList/BitkitList.js +6 -6
- package/dist/components/BitkitList/BitkitList.js.map +1 -1
- package/dist/components/BitkitMarkdown/BitkitMarkdown.js +1 -1
- package/dist/components/BitkitMarkdown/BitkitMarkdown.js.map +1 -1
- package/dist/components/BitkitMultiselect/BitkitMultiselect.js +3 -3
- package/dist/components/BitkitMultiselect/BitkitMultiselect.js.map +1 -1
- package/dist/components/BitkitPageFooter/BitkitPageFooter.d.ts +2 -2
- package/dist/components/BitkitPageFooter/BitkitPageFooter.js +7 -7
- package/dist/components/BitkitPageFooter/BitkitPageFooter.js.map +1 -1
- package/dist/components/BitkitRadio/BitkitRadio.js +1 -1
- package/dist/components/BitkitRadio/BitkitRadio.js.map +1 -1
- package/dist/components/BitkitRibbon/BitkitRibbon.d.ts +1 -1
- package/dist/components/BitkitRibbon/BitkitRibbon.js +4 -6
- package/dist/components/BitkitRibbon/BitkitRibbon.js.map +1 -1
- package/dist/components/BitkitSearchInput/BitkitSearchInput.js +1 -1
- package/dist/components/BitkitSearchInput/BitkitSearchInput.js.map +1 -1
- package/dist/components/BitkitSwitch/components/BitkitSwitchReadOnly.js +2 -2
- package/dist/components/BitkitSwitch/components/BitkitSwitchReadOnly.js.map +1 -1
- package/dist/components/BitkitTable/BitkitSortableColumnHeader.js +1 -1
- package/dist/components/BitkitTable/BitkitSortableColumnHeader.js.map +1 -1
- package/dist/components/BitkitTag/BitkitTag.js +1 -1
- package/dist/components/BitkitTag/BitkitTag.js.map +1 -1
- package/dist/components/BitkitToast/BitkitToaster.js +2 -2
- package/dist/components/BitkitToast/BitkitToaster.js.map +1 -1
- package/dist/components/BitkitTooltip/BitkitTooltip.js +1 -1
- package/dist/components/BitkitTooltip/BitkitTooltip.js.map +1 -1
- package/dist/components/common/notificationMaps.d.ts +8 -1
- package/dist/components/common/notificationMaps.js.map +1 -1
- package/dist/docs/shared.d.ts +1 -1
- package/dist/theme/common/AlertAndToast.common.js +1 -1
- package/dist/theme/common/AlertAndToast.common.js.map +1 -1
- package/dist/theme/global-css.js +1 -1
- package/dist/theme/global-css.js.map +1 -1
- package/dist/theme/recipes/Badge.recipe.d.ts +39 -5
- package/dist/theme/recipes/Badge.recipe.js +77 -20
- package/dist/theme/recipes/Badge.recipe.js.map +1 -1
- package/dist/theme/recipes/Button.recipe.js +12 -12
- package/dist/theme/recipes/Button.recipe.js.map +1 -1
- package/dist/theme/recipes/CloseButton.recipe.d.ts +68 -0
- package/dist/theme/recipes/CloseButton.recipe.js +56 -17
- package/dist/theme/recipes/CloseButton.recipe.js.map +1 -1
- package/dist/theme/recipes/ColorButton.recipe.d.ts +93 -0
- package/dist/theme/recipes/ColorButton.recipe.js +75 -30
- package/dist/theme/recipes/ColorButton.recipe.js.map +1 -1
- package/dist/theme/recipes/DefinitionTooltip.recipe.js +2 -2
- package/dist/theme/recipes/DefinitionTooltip.recipe.js.map +1 -1
- package/dist/theme/recipes/Link.recipe.d.ts +1 -1
- package/dist/theme/recipes/Link.recipe.js +1 -1
- package/dist/theme/recipes/Link.recipe.js.map +1 -1
- package/dist/theme/recipes/Separator.recipe.js +1 -1
- package/dist/theme/recipes/Separator.recipe.js.map +1 -1
- package/dist/theme/recipes/Skeleton.recipe.js +2 -2
- package/dist/theme/recipes/Skeleton.recipe.js.map +1 -1
- package/dist/theme/recipes/index.d.ts +201 -6
- package/dist/theme/semantic-tokens/index.d.ts +1772 -1
- package/dist/theme/semantic-tokens/semanticColors.d.ts +1772 -1
- package/dist/theme/semantic-tokens/semanticColors.js +356 -472
- package/dist/theme/semantic-tokens/semanticColors.js.map +1 -1
- package/dist/theme/slot-recipes/Avatar.recipe.d.ts +56 -0
- package/dist/theme/slot-recipes/Avatar.recipe.js +40 -3
- package/dist/theme/slot-recipes/Avatar.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Collapsible.recipe.js +1 -1
- package/dist/theme/slot-recipes/Collapsible.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Dialog.recipe.js +1 -1
- package/dist/theme/slot-recipes/Dialog.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Drawer.recipe.js +2 -2
- package/dist/theme/slot-recipes/Drawer.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/EmptyState.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/EmptyState.recipe.js +2 -2
- package/dist/theme/slot-recipes/EmptyState.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/MarkdownCard.recipe.d.ts +3 -3
- package/dist/theme/slot-recipes/MarkdownCard.recipe.js +4 -4
- package/dist/theme/slot-recipes/MarkdownCard.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/NoteCard.recipe.d.ts +2 -2
- package/dist/theme/slot-recipes/NoteCard.recipe.js +8 -8
- package/dist/theme/slot-recipes/NoteCard.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/OverflowContent.recipe.js +1 -1
- package/dist/theme/slot-recipes/OverflowContent.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/PageFooter.recipe.d.ts +4 -4
- package/dist/theme/slot-recipes/PageFooter.recipe.js +5 -5
- package/dist/theme/slot-recipes/PageFooter.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Ribbon.recipe.d.ts +39 -1
- package/dist/theme/slot-recipes/Ribbon.recipe.js +29 -5
- package/dist/theme/slot-recipes/Ribbon.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Tabs.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/Tabs.recipe.js +1 -1
- package/dist/theme/slot-recipes/Tabs.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Tag.recipe.d.ts +44 -0
- package/dist/theme/slot-recipes/Tag.recipe.js +38 -7
- package/dist/theme/slot-recipes/Tag.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/TagsInput.recipe.js +5 -5
- package/dist/theme/slot-recipes/TagsInput.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Tooltip.recipe.d.ts +2 -2
- package/dist/theme/slot-recipes/Tooltip.recipe.js +3 -3
- package/dist/theme/slot-recipes/Tooltip.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/index.d.ts +152 -14
- package/dist/theme/slot-recipes/index.js +1 -1
- package/dist/theme/tokens/colors.d.ts +4 -846
- package/dist/theme/tokens/colors.js +22 -137
- package/dist/theme/tokens/colors.js.map +1 -1
- package/dist/theme/tokens/index.d.ts +15 -312
- package/dist/theme/tokens/index.js +1 -1
- package/package.json +6 -5
- package/scripts/postinstall.cjs +8 -0
- package/scripts/prune-color-tokens.cjs +78 -0
|
@@ -29,38 +29,38 @@ var buttonRecipe = defineRecipe({
|
|
|
29
29
|
"ai-secondary",
|
|
30
30
|
"ai-tertiary"
|
|
31
31
|
].reduce((obj, variant) => {
|
|
32
|
-
let borderColor = variant?.includes("secondary") ? `
|
|
33
|
-
let disabledBorderColor = variant?.includes("secondary") ? `
|
|
32
|
+
let borderColor = variant?.includes("secondary") ? `button/${variant}/border` : `button/${variant}/bg`;
|
|
33
|
+
let disabledBorderColor = variant?.includes("secondary") ? `button/${variant}/border-disabled` : `button/${variant}/bg-disabled`;
|
|
34
34
|
if (variant?.includes("tertiary")) {
|
|
35
35
|
borderColor = "transparent";
|
|
36
36
|
disabledBorderColor = "transparent";
|
|
37
37
|
}
|
|
38
38
|
obj[variant] = {
|
|
39
39
|
"&:hover": {
|
|
40
|
-
backgroundColor: `
|
|
41
|
-
borderColor: variant?.includes("secondary") ? `
|
|
42
|
-
color: `
|
|
40
|
+
backgroundColor: `button/${variant}/bg-hover`,
|
|
41
|
+
borderColor: variant?.includes("secondary") ? `button/${variant}/border-hover` : `button/${variant}/bg-hover`,
|
|
42
|
+
color: `button/${variant}/fg-hover`,
|
|
43
43
|
_icon: { color: variant === "secondary" ? "currentColor" : void 0 }
|
|
44
44
|
},
|
|
45
45
|
"&:active": {
|
|
46
|
-
backgroundColor: `
|
|
47
|
-
borderColor: variant?.includes("secondary") ? `
|
|
48
|
-
color: `
|
|
46
|
+
backgroundColor: `button/${variant}/bg-active`,
|
|
47
|
+
borderColor: variant?.includes("secondary") ? `button/${variant}/border-active` : `button/${variant}/bg-active`,
|
|
48
|
+
color: `button/${variant}/fg-active`,
|
|
49
49
|
_icon: { color: variant === "secondary" ? "currentColor" : void 0 }
|
|
50
50
|
},
|
|
51
51
|
_disabled: {
|
|
52
|
-
backgroundColor: `
|
|
52
|
+
backgroundColor: `button/${variant}/bg-disabled!`,
|
|
53
53
|
borderColor: `${disabledBorderColor}!`,
|
|
54
|
-
color: `
|
|
54
|
+
color: `button/${variant}/fg-disabled!`,
|
|
55
55
|
cursor: "not-allowed",
|
|
56
56
|
_icon: { color: variant === "secondary" ? "currentColor" : void 0 }
|
|
57
57
|
},
|
|
58
58
|
_icon: { color: variant === "secondary" ? "button/secondary/fg/icon" : void 0 },
|
|
59
|
-
backgroundColor: `
|
|
59
|
+
backgroundColor: `button/${variant}/bg`,
|
|
60
60
|
borderColor,
|
|
61
61
|
borderStyle: "solid",
|
|
62
62
|
borderWidth: rem(1),
|
|
63
|
-
color: `
|
|
63
|
+
color: variant === "secondary" ? "button/secondary/fg/base" : `button/${variant}/fg`
|
|
64
64
|
};
|
|
65
65
|
return obj;
|
|
66
66
|
}, {}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.recipe.js","names":[],"sources":["../../../lib/theme/recipes/Button.recipe.ts"],"sourcesContent":["import { defineRecipe, type SystemStyleObject } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst buttonVariants = [\n 'primary',\n 'secondary',\n 'tertiary',\n 'danger-primary',\n 'danger-secondary',\n 'danger-tertiary',\n 'ai-primary',\n 'ai-secondary',\n 'ai-tertiary',\n];\n\nexport type Variant = (typeof buttonVariants)[number];\n\nconst variantStyles = buttonVariants.reduce(\n (obj, variant) => {\n let borderColor = variant?.includes('secondary')
|
|
1
|
+
{"version":3,"file":"Button.recipe.js","names":[],"sources":["../../../lib/theme/recipes/Button.recipe.ts"],"sourcesContent":["import { defineRecipe, type SystemStyleObject } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst buttonVariants = [\n 'primary',\n 'secondary',\n 'tertiary',\n 'danger-primary',\n 'danger-secondary',\n 'danger-tertiary',\n 'ai-primary',\n 'ai-secondary',\n 'ai-tertiary',\n];\n\nexport type Variant = (typeof buttonVariants)[number];\n\nconst variantStyles = buttonVariants.reduce(\n (obj, variant) => {\n let borderColor = variant?.includes('secondary') ? `button/${variant}/border` : `button/${variant}/bg`;\n let disabledBorderColor = variant?.includes('secondary')\n ? `button/${variant}/border-disabled`\n : `button/${variant}/bg-disabled`;\n if (variant?.includes('tertiary')) {\n borderColor = 'transparent';\n disabledBorderColor = 'transparent';\n }\n obj[variant as NonNullable<Variant>] = {\n '&:hover': {\n backgroundColor: `button/${variant}/bg-hover`,\n borderColor: variant?.includes('secondary') ? `button/${variant}/border-hover` : `button/${variant}/bg-hover`,\n color: `button/${variant}/fg-hover`,\n _icon: {\n color: variant === 'secondary' ? 'currentColor' : undefined,\n },\n },\n '&:active': {\n backgroundColor: `button/${variant}/bg-active`,\n borderColor: variant?.includes('secondary') ? `button/${variant}/border-active` : `button/${variant}/bg-active`,\n color: `button/${variant}/fg-active`,\n _icon: {\n color: variant === 'secondary' ? 'currentColor' : undefined,\n },\n },\n _disabled: {\n backgroundColor: `button/${variant}/bg-disabled!`,\n borderColor: `${disabledBorderColor}!`,\n color: `button/${variant}/fg-disabled!`,\n cursor: 'not-allowed',\n _icon: {\n color: variant === 'secondary' ? 'currentColor' : undefined,\n },\n },\n _icon: {\n color: variant === 'secondary' ? 'button/secondary/fg/icon' : undefined,\n },\n backgroundColor: `button/${variant}/bg`,\n borderColor,\n borderStyle: 'solid',\n borderWidth: rem(1),\n color: variant === 'secondary' ? 'button/secondary/fg/base' : `button/${variant}/fg`,\n };\n return obj;\n },\n {} as Record<NonNullable<Variant>, SystemStyleObject>,\n);\n\nconst buttonRecipe = defineRecipe({\n className: 'button',\n base: {\n borderRadius: '4',\n cursor: 'pointer',\n fontWeight: 600,\n border: '1px solid transparent',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n gap: '8',\n position: 'relative',\n '--spinner-color': 'currentColor',\n '--spinner-size': 'sizes.16',\n _disabled: {\n cursor: 'not-allowed',\n },\n },\n variants: {\n variant: variantStyles,\n size: {\n sm: {\n minWidth: '32',\n height: '32',\n paddingInline: rem(11),\n paddingBlock: rem(5),\n textStyle: 'comp/button/sm',\n },\n md: {\n minWidth: '40',\n height: '40',\n paddingInline: rem(15),\n paddingBlock: rem(7),\n textStyle: 'comp/button/md',\n },\n lg: {\n minWidth: '48',\n height: '48',\n padding: rem(15),\n textStyle: 'comp/button/lg',\n },\n },\n },\n defaultVariants: {\n variant: 'primary',\n size: 'lg',\n },\n});\n\nexport default buttonRecipe;\n"],"mappings":";;;AAoEA,IAAM,eAAe,aAAa;CAChC,WAAW;CACX,MAAM;EACJ,cAAc;EACd,QAAQ;EACR,YAAY;EACZ,QAAQ;EACR,SAAS;EACT,YAAY;EACZ,gBAAgB;EAChB,KAAK;EACL,UAAU;EACV,mBAAmB;EACnB,kBAAkB;EAClB,WAAW,EACT,QAAQ,cACV;CACF;CACA,UAAU;EACR,SArEkB;GAbpB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EAKoB,EAAe,QAClC,KAAK,YAAY;GAChB,IAAI,cAAc,SAAS,SAAS,WAAW,IAAI,UAAU,QAAQ,WAAW,UAAU,QAAQ;GAClG,IAAI,sBAAsB,SAAS,SAAS,WAAW,IACnD,UAAU,QAAQ,oBAClB,UAAU,QAAQ;GACtB,IAAI,SAAS,SAAS,UAAU,GAAG;IACjC,cAAc;IACd,sBAAsB;GACxB;GACA,IAAI,WAAmC;IACrC,WAAW;KACT,iBAAiB,UAAU,QAAQ;KACnC,aAAa,SAAS,SAAS,WAAW,IAAI,UAAU,QAAQ,iBAAiB,UAAU,QAAQ;KACnG,OAAO,UAAU,QAAQ;KACzB,OAAO,EACL,OAAO,YAAY,cAAc,iBAAiB,KAAA,EACpD;IACF;IACA,YAAY;KACV,iBAAiB,UAAU,QAAQ;KACnC,aAAa,SAAS,SAAS,WAAW,IAAI,UAAU,QAAQ,kBAAkB,UAAU,QAAQ;KACpG,OAAO,UAAU,QAAQ;KACzB,OAAO,EACL,OAAO,YAAY,cAAc,iBAAiB,KAAA,EACpD;IACF;IACA,WAAW;KACT,iBAAiB,UAAU,QAAQ;KACnC,aAAa,GAAG,oBAAoB;KACpC,OAAO,UAAU,QAAQ;KACzB,QAAQ;KACR,OAAO,EACL,OAAO,YAAY,cAAc,iBAAiB,KAAA,EACpD;IACF;IACA,OAAO,EACL,OAAO,YAAY,cAAc,6BAA6B,KAAA,EAChE;IACA,iBAAiB,UAAU,QAAQ;IACnC;IACA,aAAa;IACb,aAAa,IAAI,CAAC;IAClB,OAAO,YAAY,cAAc,6BAA6B,UAAU,QAAQ;GAClF;GACA,OAAO;EACT,GACA,CAAC,CAsBU;EACT,MAAM;GACJ,IAAI;IACF,UAAU;IACV,QAAQ;IACR,eAAe,IAAI,EAAE;IACrB,cAAc,IAAI,CAAC;IACnB,WAAW;GACb;GACA,IAAI;IACF,UAAU;IACV,QAAQ;IACR,eAAe,IAAI,EAAE;IACrB,cAAc,IAAI,CAAC;IACnB,WAAW;GACb;GACA,IAAI;IACF,UAAU;IACV,QAAQ;IACR,SAAS,IAAI,EAAE;IACf,WAAW;GACb;EACF;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CAAC"}
|
|
@@ -13,5 +13,73 @@ declare const closeButtonRecipe: import('@chakra-ui/react').RecipeDefinition<{
|
|
|
13
13
|
w: "40";
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
colorVariant: {
|
|
17
|
+
neutral: {
|
|
18
|
+
color: "color/neutral/strong";
|
|
19
|
+
'&:hover': {
|
|
20
|
+
backgroundColor: "color/neutral/subtle";
|
|
21
|
+
};
|
|
22
|
+
'&:active': {
|
|
23
|
+
backgroundColor: "color/neutral/moderate";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
blue: {
|
|
27
|
+
color: "color/blue/strong";
|
|
28
|
+
'&:hover': {
|
|
29
|
+
backgroundColor: "color/blue/subtle";
|
|
30
|
+
};
|
|
31
|
+
'&:active': {
|
|
32
|
+
backgroundColor: "color/blue/moderate";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
green: {
|
|
36
|
+
color: "color/green/strong";
|
|
37
|
+
'&:hover': {
|
|
38
|
+
backgroundColor: "color/green/subtle";
|
|
39
|
+
};
|
|
40
|
+
'&:active': {
|
|
41
|
+
backgroundColor: "color/green/moderate";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
red: {
|
|
45
|
+
color: "color/red/strong";
|
|
46
|
+
'&:hover': {
|
|
47
|
+
backgroundColor: "color/red/subtle";
|
|
48
|
+
};
|
|
49
|
+
'&:active': {
|
|
50
|
+
backgroundColor: "color/red/moderate";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
yellow: {
|
|
54
|
+
color: "color/yellow/strong";
|
|
55
|
+
'&:hover': {
|
|
56
|
+
backgroundColor: "color/yellow/subtle";
|
|
57
|
+
};
|
|
58
|
+
'&:active': {
|
|
59
|
+
backgroundColor: "color/yellow/moderate";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
purple: {
|
|
63
|
+
color: "color/purple/strong";
|
|
64
|
+
'&:hover': {
|
|
65
|
+
backgroundColor: "color/purple/subtle";
|
|
66
|
+
};
|
|
67
|
+
'&:active': {
|
|
68
|
+
backgroundColor: "color/purple/moderate";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
indigo: {
|
|
72
|
+
color: "color/indigo/strong";
|
|
73
|
+
'&:hover': {
|
|
74
|
+
backgroundColor: "color/indigo/subtle";
|
|
75
|
+
};
|
|
76
|
+
'&:active': {
|
|
77
|
+
backgroundColor: "color/indigo/moderate";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
white: {
|
|
81
|
+
color: "icon/on-contrast";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
16
84
|
}>;
|
|
17
85
|
export default closeButtonRecipe;
|
|
@@ -3,15 +3,11 @@ import { defineRecipe } from "@chakra-ui/react/styled-system";
|
|
|
3
3
|
var closeButtonRecipe = defineRecipe({
|
|
4
4
|
className: "close-button",
|
|
5
5
|
base: {
|
|
6
|
-
colorPalette: "neutral",
|
|
7
6
|
display: "inline-flex",
|
|
8
7
|
alignItems: "center",
|
|
9
8
|
justifyContent: "center",
|
|
10
9
|
borderRadius: "4",
|
|
11
|
-
color: "colorPalette.strong",
|
|
12
10
|
cursor: "pointer",
|
|
13
|
-
"&:hover": { backgroundColor: "colorPalette.subtle" },
|
|
14
|
-
"&:active": { backgroundColor: "colorPalette.moderate" },
|
|
15
11
|
_disabled: {
|
|
16
12
|
cursor: "not-allowed",
|
|
17
13
|
color: "icon/disabled",
|
|
@@ -19,21 +15,64 @@ var closeButtonRecipe = defineRecipe({
|
|
|
19
15
|
"&:active": { backgroundColor: "transparent" }
|
|
20
16
|
}
|
|
21
17
|
},
|
|
22
|
-
variants: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
variants: {
|
|
19
|
+
size: {
|
|
20
|
+
xs: {
|
|
21
|
+
h: "24",
|
|
22
|
+
w: "24"
|
|
23
|
+
},
|
|
24
|
+
sm: {
|
|
25
|
+
h: "32",
|
|
26
|
+
w: "32"
|
|
27
|
+
},
|
|
28
|
+
md: {
|
|
29
|
+
h: "40",
|
|
30
|
+
w: "40"
|
|
31
|
+
}
|
|
26
32
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
colorVariant: {
|
|
34
|
+
neutral: {
|
|
35
|
+
color: "color/neutral/strong",
|
|
36
|
+
"&:hover": { backgroundColor: "color/neutral/subtle" },
|
|
37
|
+
"&:active": { backgroundColor: "color/neutral/moderate" }
|
|
38
|
+
},
|
|
39
|
+
blue: {
|
|
40
|
+
color: "color/blue/strong",
|
|
41
|
+
"&:hover": { backgroundColor: "color/blue/subtle" },
|
|
42
|
+
"&:active": { backgroundColor: "color/blue/moderate" }
|
|
43
|
+
},
|
|
44
|
+
green: {
|
|
45
|
+
color: "color/green/strong",
|
|
46
|
+
"&:hover": { backgroundColor: "color/green/subtle" },
|
|
47
|
+
"&:active": { backgroundColor: "color/green/moderate" }
|
|
48
|
+
},
|
|
49
|
+
red: {
|
|
50
|
+
color: "color/red/strong",
|
|
51
|
+
"&:hover": { backgroundColor: "color/red/subtle" },
|
|
52
|
+
"&:active": { backgroundColor: "color/red/moderate" }
|
|
53
|
+
},
|
|
54
|
+
yellow: {
|
|
55
|
+
color: "color/yellow/strong",
|
|
56
|
+
"&:hover": { backgroundColor: "color/yellow/subtle" },
|
|
57
|
+
"&:active": { backgroundColor: "color/yellow/moderate" }
|
|
58
|
+
},
|
|
59
|
+
purple: {
|
|
60
|
+
color: "color/purple/strong",
|
|
61
|
+
"&:hover": { backgroundColor: "color/purple/subtle" },
|
|
62
|
+
"&:active": { backgroundColor: "color/purple/moderate" }
|
|
63
|
+
},
|
|
64
|
+
indigo: {
|
|
65
|
+
color: "color/indigo/strong",
|
|
66
|
+
"&:hover": { backgroundColor: "color/indigo/subtle" },
|
|
67
|
+
"&:active": { backgroundColor: "color/indigo/moderate" }
|
|
68
|
+
},
|
|
69
|
+
white: { color: "icon/on-contrast" }
|
|
34
70
|
}
|
|
35
|
-
}
|
|
36
|
-
defaultVariants: {
|
|
71
|
+
},
|
|
72
|
+
defaultVariants: {
|
|
73
|
+
colorVariant: "neutral",
|
|
74
|
+
size: "xs"
|
|
75
|
+
}
|
|
37
76
|
});
|
|
38
77
|
//#endregion
|
|
39
78
|
export { closeButtonRecipe as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloseButton.recipe.js","names":[],"sources":["../../../lib/theme/recipes/CloseButton.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst closeButtonRecipe = defineRecipe({\n className: 'close-button',\n base: {\n
|
|
1
|
+
{"version":3,"file":"CloseButton.recipe.js","names":[],"sources":["../../../lib/theme/recipes/CloseButton.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst closeButtonRecipe = defineRecipe({\n className: 'close-button',\n base: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '4',\n cursor: 'pointer',\n _disabled: {\n cursor: 'not-allowed',\n color: 'icon/disabled',\n '&:hover': {\n backgroundColor: 'transparent',\n },\n '&:active': {\n backgroundColor: 'transparent',\n },\n },\n },\n variants: {\n size: {\n xs: { h: '24', w: '24' },\n sm: { h: '32', w: '32' },\n md: { h: '40', w: '40' },\n },\n colorVariant: {\n neutral: {\n color: 'color/neutral/strong',\n '&:hover': { backgroundColor: 'color/neutral/subtle' },\n '&:active': { backgroundColor: 'color/neutral/moderate' },\n },\n blue: {\n color: 'color/blue/strong',\n '&:hover': { backgroundColor: 'color/blue/subtle' },\n '&:active': { backgroundColor: 'color/blue/moderate' },\n },\n green: {\n color: 'color/green/strong',\n '&:hover': { backgroundColor: 'color/green/subtle' },\n '&:active': { backgroundColor: 'color/green/moderate' },\n },\n red: {\n color: 'color/red/strong',\n '&:hover': { backgroundColor: 'color/red/subtle' },\n '&:active': { backgroundColor: 'color/red/moderate' },\n },\n yellow: {\n color: 'color/yellow/strong',\n '&:hover': { backgroundColor: 'color/yellow/subtle' },\n '&:active': { backgroundColor: 'color/yellow/moderate' },\n },\n purple: {\n color: 'color/purple/strong',\n '&:hover': { backgroundColor: 'color/purple/subtle' },\n '&:active': { backgroundColor: 'color/purple/moderate' },\n },\n indigo: {\n color: 'color/indigo/strong',\n '&:hover': { backgroundColor: 'color/indigo/subtle' },\n '&:active': { backgroundColor: 'color/indigo/moderate' },\n },\n white: {\n color: 'icon/on-contrast',\n },\n },\n },\n defaultVariants: {\n colorVariant: 'neutral',\n size: 'xs',\n },\n});\n\nexport default closeButtonRecipe;\n"],"mappings":";;AAEA,IAAM,oBAAoB,aAAa;CACrC,WAAW;CACX,MAAM;EACJ,SAAS;EACT,YAAY;EACZ,gBAAgB;EAChB,cAAc;EACd,QAAQ;EACR,WAAW;GACT,QAAQ;GACR,OAAO;GACP,WAAW,EACT,iBAAiB,cACnB;GACA,YAAY,EACV,iBAAiB,cACnB;EACF;CACF;CACA,UAAU;EACR,MAAM;GACJ,IAAI;IAAE,GAAG;IAAM,GAAG;GAAK;GACvB,IAAI;IAAE,GAAG;IAAM,GAAG;GAAK;GACvB,IAAI;IAAE,GAAG;IAAM,GAAG;GAAK;EACzB;EACA,cAAc;GACZ,SAAS;IACP,OAAO;IACP,WAAW,EAAE,iBAAiB,uBAAuB;IACrD,YAAY,EAAE,iBAAiB,yBAAyB;GAC1D;GACA,MAAM;IACJ,OAAO;IACP,WAAW,EAAE,iBAAiB,oBAAoB;IAClD,YAAY,EAAE,iBAAiB,sBAAsB;GACvD;GACA,OAAO;IACL,OAAO;IACP,WAAW,EAAE,iBAAiB,qBAAqB;IACnD,YAAY,EAAE,iBAAiB,uBAAuB;GACxD;GACA,KAAK;IACH,OAAO;IACP,WAAW,EAAE,iBAAiB,mBAAmB;IACjD,YAAY,EAAE,iBAAiB,qBAAqB;GACtD;GACA,QAAQ;IACN,OAAO;IACP,WAAW,EAAE,iBAAiB,sBAAsB;IACpD,YAAY,EAAE,iBAAiB,wBAAwB;GACzD;GACA,QAAQ;IACN,OAAO;IACP,WAAW,EAAE,iBAAiB,sBAAsB;IACpD,YAAY,EAAE,iBAAiB,wBAAwB;GACzD;GACA,QAAQ;IACN,OAAO;IACP,WAAW,EAAE,iBAAiB,sBAAsB;IACpD,YAAY,EAAE,iBAAiB,wBAAwB;GACzD;GACA,OAAO,EACL,OAAO,mBACT;EACF;CACF;CACA,iBAAiB;EACf,cAAc;EACd,MAAM;CACR;AACF,CAAC"}
|
|
@@ -16,5 +16,98 @@ declare const colorButtonRecipe: import('@chakra-ui/react').RecipeDefinition<{
|
|
|
16
16
|
textStyle: "comp/button/lg";
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
+
colorVariant: {
|
|
20
|
+
neutral: {
|
|
21
|
+
color: "color/neutral/strong";
|
|
22
|
+
'&:hover': {
|
|
23
|
+
backgroundColor: "color/neutral/subtle";
|
|
24
|
+
};
|
|
25
|
+
'&:active': {
|
|
26
|
+
backgroundColor: "color/neutral/moderate";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
blue: {
|
|
30
|
+
color: "color/blue/strong";
|
|
31
|
+
'&:hover': {
|
|
32
|
+
backgroundColor: "color/blue/subtle";
|
|
33
|
+
};
|
|
34
|
+
'&:active': {
|
|
35
|
+
backgroundColor: "color/blue/moderate";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
green: {
|
|
39
|
+
color: "color/green/strong";
|
|
40
|
+
'&:hover': {
|
|
41
|
+
backgroundColor: "color/green/subtle";
|
|
42
|
+
};
|
|
43
|
+
'&:active': {
|
|
44
|
+
backgroundColor: "color/green/moderate";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
red: {
|
|
48
|
+
color: "color/red/strong";
|
|
49
|
+
'&:hover': {
|
|
50
|
+
backgroundColor: "color/red/subtle";
|
|
51
|
+
};
|
|
52
|
+
'&:active': {
|
|
53
|
+
backgroundColor: "color/red/moderate";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
yellow: {
|
|
57
|
+
color: "color/yellow/strong";
|
|
58
|
+
'&:hover': {
|
|
59
|
+
backgroundColor: "color/yellow/subtle";
|
|
60
|
+
};
|
|
61
|
+
'&:active': {
|
|
62
|
+
backgroundColor: "color/yellow/moderate";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
purple: {
|
|
66
|
+
color: "color/purple/strong";
|
|
67
|
+
'&:hover': {
|
|
68
|
+
backgroundColor: "color/purple/subtle";
|
|
69
|
+
};
|
|
70
|
+
'&:active': {
|
|
71
|
+
backgroundColor: "color/purple/moderate";
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
orange: {
|
|
75
|
+
color: "color/orange/strong";
|
|
76
|
+
'&:hover': {
|
|
77
|
+
backgroundColor: "color/orange/subtle";
|
|
78
|
+
};
|
|
79
|
+
'&:active': {
|
|
80
|
+
backgroundColor: "color/orange/moderate";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
turquoise: {
|
|
84
|
+
color: "color/turquoise/strong";
|
|
85
|
+
'&:hover': {
|
|
86
|
+
backgroundColor: "color/turquoise/subtle";
|
|
87
|
+
};
|
|
88
|
+
'&:active': {
|
|
89
|
+
backgroundColor: "color/turquoise/moderate";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
indigo: {
|
|
93
|
+
color: "color/indigo/strong";
|
|
94
|
+
'&:hover': {
|
|
95
|
+
backgroundColor: "color/indigo/subtle";
|
|
96
|
+
};
|
|
97
|
+
'&:active': {
|
|
98
|
+
backgroundColor: "color/indigo/moderate";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
white: {
|
|
102
|
+
color: "text/on-color";
|
|
103
|
+
borderColor: "border/inverse";
|
|
104
|
+
'&:hover': {
|
|
105
|
+
backgroundColor: "color/white/a15";
|
|
106
|
+
};
|
|
107
|
+
'&:active': {
|
|
108
|
+
backgroundColor: "color/white/a30";
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
19
112
|
}>;
|
|
20
113
|
export default colorButtonRecipe;
|
|
@@ -3,44 +3,89 @@ import { defineRecipe } from "@chakra-ui/react/styled-system";
|
|
|
3
3
|
var colorButtonRecipe = defineRecipe({
|
|
4
4
|
className: "color-button",
|
|
5
5
|
base: {
|
|
6
|
-
colorPalette: "neutral",
|
|
7
6
|
display: "inline-flex",
|
|
8
7
|
alignItems: "center",
|
|
9
8
|
justifyContent: "center",
|
|
10
9
|
border: "1px solid",
|
|
11
10
|
borderRadius: "4",
|
|
12
|
-
|
|
13
|
-
cursor: "pointer",
|
|
14
|
-
"&:hover": { backgroundColor: "colorPalette.subtle" },
|
|
15
|
-
"&:active": { backgroundColor: "colorPalette.moderate" }
|
|
11
|
+
cursor: "pointer"
|
|
16
12
|
},
|
|
17
|
-
variants: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
variants: {
|
|
14
|
+
size: {
|
|
15
|
+
sm: {
|
|
16
|
+
height: "32",
|
|
17
|
+
paddingInline: "12",
|
|
18
|
+
textStyle: "comp/button/sm"
|
|
19
|
+
},
|
|
20
|
+
md: {
|
|
21
|
+
height: "40",
|
|
22
|
+
paddingInline: "12",
|
|
23
|
+
textStyle: "comp/button/md"
|
|
24
|
+
},
|
|
25
|
+
lg: {
|
|
26
|
+
height: "48",
|
|
27
|
+
paddingInline: "16",
|
|
28
|
+
textStyle: "comp/button/lg"
|
|
29
|
+
}
|
|
22
30
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
colorVariant: {
|
|
32
|
+
neutral: {
|
|
33
|
+
color: "color/neutral/strong",
|
|
34
|
+
"&:hover": { backgroundColor: "color/neutral/subtle" },
|
|
35
|
+
"&:active": { backgroundColor: "color/neutral/moderate" }
|
|
36
|
+
},
|
|
37
|
+
blue: {
|
|
38
|
+
color: "color/blue/strong",
|
|
39
|
+
"&:hover": { backgroundColor: "color/blue/subtle" },
|
|
40
|
+
"&:active": { backgroundColor: "color/blue/moderate" }
|
|
41
|
+
},
|
|
42
|
+
green: {
|
|
43
|
+
color: "color/green/strong",
|
|
44
|
+
"&:hover": { backgroundColor: "color/green/subtle" },
|
|
45
|
+
"&:active": { backgroundColor: "color/green/moderate" }
|
|
46
|
+
},
|
|
47
|
+
red: {
|
|
48
|
+
color: "color/red/strong",
|
|
49
|
+
"&:hover": { backgroundColor: "color/red/subtle" },
|
|
50
|
+
"&:active": { backgroundColor: "color/red/moderate" }
|
|
51
|
+
},
|
|
52
|
+
yellow: {
|
|
53
|
+
color: "color/yellow/strong",
|
|
54
|
+
"&:hover": { backgroundColor: "color/yellow/subtle" },
|
|
55
|
+
"&:active": { backgroundColor: "color/yellow/moderate" }
|
|
56
|
+
},
|
|
57
|
+
purple: {
|
|
58
|
+
color: "color/purple/strong",
|
|
59
|
+
"&:hover": { backgroundColor: "color/purple/subtle" },
|
|
60
|
+
"&:active": { backgroundColor: "color/purple/moderate" }
|
|
61
|
+
},
|
|
62
|
+
orange: {
|
|
63
|
+
color: "color/orange/strong",
|
|
64
|
+
"&:hover": { backgroundColor: "color/orange/subtle" },
|
|
65
|
+
"&:active": { backgroundColor: "color/orange/moderate" }
|
|
66
|
+
},
|
|
67
|
+
turquoise: {
|
|
68
|
+
color: "color/turquoise/strong",
|
|
69
|
+
"&:hover": { backgroundColor: "color/turquoise/subtle" },
|
|
70
|
+
"&:active": { backgroundColor: "color/turquoise/moderate" }
|
|
71
|
+
},
|
|
72
|
+
indigo: {
|
|
73
|
+
color: "color/indigo/strong",
|
|
74
|
+
"&:hover": { backgroundColor: "color/indigo/subtle" },
|
|
75
|
+
"&:active": { backgroundColor: "color/indigo/moderate" }
|
|
76
|
+
},
|
|
77
|
+
white: {
|
|
78
|
+
color: "text/on-color",
|
|
79
|
+
borderColor: "border/inverse",
|
|
80
|
+
"&:hover": { backgroundColor: "color/white/a15" },
|
|
81
|
+
"&:active": { backgroundColor: "color/white/a30" }
|
|
82
|
+
}
|
|
41
83
|
}
|
|
42
|
-
}
|
|
43
|
-
defaultVariants: {
|
|
84
|
+
},
|
|
85
|
+
defaultVariants: {
|
|
86
|
+
colorVariant: "neutral",
|
|
87
|
+
size: "sm"
|
|
88
|
+
}
|
|
44
89
|
});
|
|
45
90
|
//#endregion
|
|
46
91
|
export { colorButtonRecipe as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorButton.recipe.js","names":[],"sources":["../../../lib/theme/recipes/ColorButton.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst colorButtonRecipe = defineRecipe({\n className: 'color-button',\n base: {\n
|
|
1
|
+
{"version":3,"file":"ColorButton.recipe.js","names":[],"sources":["../../../lib/theme/recipes/ColorButton.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst colorButtonRecipe = defineRecipe({\n className: 'color-button',\n base: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n border: '1px solid',\n borderRadius: '4',\n cursor: 'pointer',\n },\n variants: {\n size: {\n sm: { height: '32', paddingInline: '12', textStyle: 'comp/button/sm' },\n md: { height: '40', paddingInline: '12', textStyle: 'comp/button/md' },\n lg: { height: '48', paddingInline: '16', textStyle: 'comp/button/lg' },\n },\n colorVariant: {\n neutral: {\n color: 'color/neutral/strong',\n '&:hover': { backgroundColor: 'color/neutral/subtle' },\n '&:active': { backgroundColor: 'color/neutral/moderate' },\n },\n blue: {\n color: 'color/blue/strong',\n '&:hover': { backgroundColor: 'color/blue/subtle' },\n '&:active': { backgroundColor: 'color/blue/moderate' },\n },\n green: {\n color: 'color/green/strong',\n '&:hover': { backgroundColor: 'color/green/subtle' },\n '&:active': { backgroundColor: 'color/green/moderate' },\n },\n red: {\n color: 'color/red/strong',\n '&:hover': { backgroundColor: 'color/red/subtle' },\n '&:active': { backgroundColor: 'color/red/moderate' },\n },\n yellow: {\n color: 'color/yellow/strong',\n '&:hover': { backgroundColor: 'color/yellow/subtle' },\n '&:active': { backgroundColor: 'color/yellow/moderate' },\n },\n purple: {\n color: 'color/purple/strong',\n '&:hover': { backgroundColor: 'color/purple/subtle' },\n '&:active': { backgroundColor: 'color/purple/moderate' },\n },\n orange: {\n color: 'color/orange/strong',\n '&:hover': { backgroundColor: 'color/orange/subtle' },\n '&:active': { backgroundColor: 'color/orange/moderate' },\n },\n turquoise: {\n color: 'color/turquoise/strong',\n '&:hover': { backgroundColor: 'color/turquoise/subtle' },\n '&:active': { backgroundColor: 'color/turquoise/moderate' },\n },\n indigo: {\n color: 'color/indigo/strong',\n '&:hover': { backgroundColor: 'color/indigo/subtle' },\n '&:active': { backgroundColor: 'color/indigo/moderate' },\n },\n white: {\n color: 'text/on-color',\n borderColor: 'border/inverse',\n '&:hover': { backgroundColor: 'color/white/a15' },\n '&:active': { backgroundColor: 'color/white/a30' },\n },\n },\n },\n defaultVariants: {\n colorVariant: 'neutral',\n size: 'sm',\n },\n});\n\nexport default colorButtonRecipe;\n"],"mappings":";;AAEA,IAAM,oBAAoB,aAAa;CACrC,WAAW;CACX,MAAM;EACJ,SAAS;EACT,YAAY;EACZ,gBAAgB;EAChB,QAAQ;EACR,cAAc;EACd,QAAQ;CACV;CACA,UAAU;EACR,MAAM;GACJ,IAAI;IAAE,QAAQ;IAAM,eAAe;IAAM,WAAW;GAAiB;GACrE,IAAI;IAAE,QAAQ;IAAM,eAAe;IAAM,WAAW;GAAiB;GACrE,IAAI;IAAE,QAAQ;IAAM,eAAe;IAAM,WAAW;GAAiB;EACvE;EACA,cAAc;GACZ,SAAS;IACP,OAAO;IACP,WAAW,EAAE,iBAAiB,uBAAuB;IACrD,YAAY,EAAE,iBAAiB,yBAAyB;GAC1D;GACA,MAAM;IACJ,OAAO;IACP,WAAW,EAAE,iBAAiB,oBAAoB;IAClD,YAAY,EAAE,iBAAiB,sBAAsB;GACvD;GACA,OAAO;IACL,OAAO;IACP,WAAW,EAAE,iBAAiB,qBAAqB;IACnD,YAAY,EAAE,iBAAiB,uBAAuB;GACxD;GACA,KAAK;IACH,OAAO;IACP,WAAW,EAAE,iBAAiB,mBAAmB;IACjD,YAAY,EAAE,iBAAiB,qBAAqB;GACtD;GACA,QAAQ;IACN,OAAO;IACP,WAAW,EAAE,iBAAiB,sBAAsB;IACpD,YAAY,EAAE,iBAAiB,wBAAwB;GACzD;GACA,QAAQ;IACN,OAAO;IACP,WAAW,EAAE,iBAAiB,sBAAsB;IACpD,YAAY,EAAE,iBAAiB,wBAAwB;GACzD;GACA,QAAQ;IACN,OAAO;IACP,WAAW,EAAE,iBAAiB,sBAAsB;IACpD,YAAY,EAAE,iBAAiB,wBAAwB;GACzD;GACA,WAAW;IACT,OAAO;IACP,WAAW,EAAE,iBAAiB,yBAAyB;IACvD,YAAY,EAAE,iBAAiB,2BAA2B;GAC5D;GACA,QAAQ;IACN,OAAO;IACP,WAAW,EAAE,iBAAiB,sBAAsB;IACpD,YAAY,EAAE,iBAAiB,wBAAwB;GACzD;GACA,OAAO;IACL,OAAO;IACP,aAAa;IACb,WAAW,EAAE,iBAAiB,kBAAkB;IAChD,YAAY,EAAE,iBAAiB,kBAAkB;GACnD;EACF;CACF;CACA,iBAAiB;EACf,cAAc;EACd,MAAM;CACR;AACF,CAAC"}
|
|
@@ -8,9 +8,9 @@ var definitionTooltipRecipe = defineRecipe({
|
|
|
8
8
|
letterSpacing: "inherit",
|
|
9
9
|
maxWidth: "100%",
|
|
10
10
|
textDecoration: "underline dotted",
|
|
11
|
-
textDecorationColor: "
|
|
11
|
+
textDecorationColor: "color/neutral/bold",
|
|
12
12
|
textUnderlineOffset: "0.375em",
|
|
13
|
-
"&:hover": { textDecorationColor: "
|
|
13
|
+
"&:hover": { textDecorationColor: "color/purple/base" }
|
|
14
14
|
},
|
|
15
15
|
variants: {
|
|
16
16
|
method: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefinitionTooltip.recipe.js","names":[],"sources":["../../../lib/theme/recipes/DefinitionTooltip.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst definitionTooltipRecipe = defineRecipe({\n className: 'definition-tooltip',\n base: {\n color: 'inherit',\n font: 'inherit',\n letterSpacing: 'inherit',\n maxWidth: '100%',\n textDecoration: 'underline dotted',\n textDecorationColor: '
|
|
1
|
+
{"version":3,"file":"DefinitionTooltip.recipe.js","names":[],"sources":["../../../lib/theme/recipes/DefinitionTooltip.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst definitionTooltipRecipe = defineRecipe({\n className: 'definition-tooltip',\n base: {\n color: 'inherit',\n font: 'inherit',\n letterSpacing: 'inherit',\n maxWidth: '100%',\n textDecoration: 'underline dotted',\n textDecorationColor: 'color/neutral/bold',\n textUnderlineOffset: '0.375em',\n '&:hover': {\n textDecorationColor: 'color/purple/base',\n },\n },\n variants: {\n method: {\n click: {\n cursor: 'pointer',\n },\n hover: {\n cursor: 'default',\n },\n },\n textSize: {\n lg: { textStyle: 'body/lg/regular' },\n md: { textStyle: 'body/md/regular', textUnderlineOffset: '0.25em' },\n sm: { textStyle: 'body/sm/regular', textUnderlineOffset: '0.25em' },\n },\n },\n defaultVariants: {\n textSize: 'lg',\n },\n});\n\nexport default definitionTooltipRecipe;\n"],"mappings":";;AAEA,IAAM,0BAA0B,aAAa;CAC3C,WAAW;CACX,MAAM;EACJ,OAAO;EACP,MAAM;EACN,eAAe;EACf,UAAU;EACV,gBAAgB;EAChB,qBAAqB;EACrB,qBAAqB;EACrB,WAAW,EACT,qBAAqB,oBACvB;CACF;CACA,UAAU;EACR,QAAQ;GACN,OAAO,EACL,QAAQ,UACV;GACA,OAAO,EACL,QAAQ,UACV;EACF;EACA,UAAU;GACR,IAAI,EAAE,WAAW,kBAAkB;GACnC,IAAI;IAAE,WAAW;IAAmB,qBAAqB;GAAS;GAClE,IAAI;IAAE,WAAW;IAAmB,qBAAqB;GAAS;EACpE;CACF;CACA,iBAAiB,EACf,UAAU,KACZ;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.recipe.js","names":[],"sources":["../../../lib/theme/recipes/Link.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst linkRecipe = defineRecipe({\n className: 'link',\n base: {\n color: 'currentcolor',\n _hover: {\n textDecoration: 'underline',\n },\n _disabled: {\n color: 'text/disabled !important',\n cursor: 'not-allowed',\n textDecoration: 'none !important',\n },\n '&:has(svg)': {\n display: 'inline-flex',\n gap: '4',\n alignItems: 'center',\n },\n },\n variants: {\n
|
|
1
|
+
{"version":3,"file":"Link.recipe.js","names":[],"sources":["../../../lib/theme/recipes/Link.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst linkRecipe = defineRecipe({\n className: 'link',\n base: {\n color: 'currentcolor',\n _hover: {\n textDecoration: 'underline',\n },\n _disabled: {\n color: 'text/disabled !important',\n cursor: 'not-allowed',\n textDecoration: 'none !important',\n },\n '&:has(svg)': {\n display: 'inline-flex',\n gap: '4',\n alignItems: 'center',\n },\n },\n variants: {\n colorVariant: {\n purple: {\n color: 'text/link',\n _hover: {\n color: 'text/link-hover',\n },\n },\n },\n },\n});\n\nexport default linkRecipe;\n"],"mappings":";;AAEA,IAAM,aAAa,aAAa;CAC9B,WAAW;CACX,MAAM;EACJ,OAAO;EACP,QAAQ,EACN,gBAAgB,YAClB;EACA,WAAW;GACT,OAAO;GACP,QAAQ;GACR,gBAAgB;EAClB;EACA,cAAc;GACZ,SAAS;GACT,KAAK;GACL,YAAY;EACd;CACF;CACA,UAAU,EACR,cAAc,EACZ,QAAQ;EACN,OAAO;EACP,QAAQ,EACN,OAAO,kBACT;CACF,EACF,EACF;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Separator.recipe.js","names":[],"sources":["../../../lib/theme/recipes/Separator.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst separatorRecipe = defineRecipe({\n className: 'separator',\n base: {\n display: 'block',\n borderColor: '
|
|
1
|
+
{"version":3,"file":"Separator.recipe.js","names":[],"sources":["../../../lib/theme/recipes/Separator.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst separatorRecipe = defineRecipe({\n className: 'separator',\n base: {\n display: 'block',\n borderColor: 'border/regular',\n borderStyle: 'solid',\n },\n variants: {\n variant: {},\n orientation: {\n horizontal: {\n borderTopWidth: 'var(--separator-thickness)',\n width: '100%',\n },\n vertical: {\n borderInlineStartWidth: 'var(--separator-thickness)',\n minHeight: '20',\n },\n },\n size: {\n '1': {\n '--separator-thickness': '1px',\n },\n '2': {\n '--separator-thickness': '2px',\n },\n },\n },\n defaultVariants: {\n size: '1',\n orientation: 'horizontal',\n },\n});\n\nexport default separatorRecipe;\n"],"mappings":";;AAEA,IAAM,kBAAkB,aAAa;CACnC,WAAW;CACX,MAAM;EACJ,SAAS;EACT,aAAa;EACb,aAAa;CACf;CACA,UAAU;EACR,SAAS,CAAC;EACV,aAAa;GACX,YAAY;IACV,gBAAgB;IAChB,OAAO;GACT;GACA,UAAU;IACR,wBAAwB;IACxB,WAAW;GACb;EACF;EACA,MAAM;GACJ,KAAK,EACH,yBAAyB,MAC3B;GACA,KAAK,EACH,yBAAyB,MAC3B;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,aAAa;CACf;AACF,CAAC"}
|
|
@@ -5,8 +5,8 @@ var skeletonRecipe = defineRecipe({
|
|
|
5
5
|
base: {
|
|
6
6
|
"--animate-from": "200%",
|
|
7
7
|
"--animate-to": "-200%",
|
|
8
|
-
"--start-color": "colors.utilities
|
|
9
|
-
"--end-color": "colors.utilities
|
|
8
|
+
"--start-color": "colors.utilities/skeleton",
|
|
9
|
+
"--end-color": "colors.utilities/skeleton-strong",
|
|
10
10
|
display: "flex",
|
|
11
11
|
alignItems: "center",
|
|
12
12
|
justifyContent: "center"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.recipe.js","names":[],"sources":["../../../lib/theme/recipes/Skeleton.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst skeletonRecipe = defineRecipe({\n className: 'skeleton',\n base: {\n '--animate-from': '200%',\n '--animate-to': '-200%',\n '--start-color': 'colors.utilities
|
|
1
|
+
{"version":3,"file":"Skeleton.recipe.js","names":[],"sources":["../../../lib/theme/recipes/Skeleton.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst skeletonRecipe = defineRecipe({\n className: 'skeleton',\n base: {\n '--animate-from': '200%',\n '--animate-to': '-200%',\n '--start-color': 'colors.utilities/skeleton',\n '--end-color': 'colors.utilities/skeleton-strong',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n\n variants: {\n loading: {\n true: {\n backgroundImage:\n 'linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))',\n backgroundSize: '400% 100%',\n animation: 'bg-position var(--duration, 10s) ease-in-out infinite',\n borderRadius: '4',\n borderColor: 'transparent',\n backgroundClip: 'padding-box',\n cursor: 'default',\n color: 'transparent',\n pointerEvents: 'none',\n userSelect: 'none',\n flexShrink: '0',\n '&::before, &::after, *': {\n visibility: 'hidden',\n },\n },\n false: {\n animation: 'fade-in var(--fade-duration, 0.1s) ease-out !important',\n },\n },\n },\n\n defaultVariants: {\n loading: true,\n },\n});\n\nexport default skeletonRecipe;\n"],"mappings":";;AAEA,IAAM,iBAAiB,aAAa;CAClC,WAAW;CACX,MAAM;EACJ,kBAAkB;EAClB,gBAAgB;EAChB,iBAAiB;EACjB,eAAe;EACf,SAAS;EACT,YAAY;EACZ,gBAAgB;CAClB;CAEA,UAAU,EACR,SAAS;EACP,MAAM;GACJ,iBACE;GACF,gBAAgB;GAChB,WAAW;GACX,cAAc;GACd,aAAa;GACb,gBAAgB;GAChB,QAAQ;GACR,OAAO;GACP,eAAe;GACf,YAAY;GACZ,YAAY;GACZ,0BAA0B,EACxB,YAAY,SACd;EACF;EACA,OAAO,EACL,WAAW,yDACb;CACF,EACF;CAEA,iBAAiB,EACf,SAAS,KACX;AACF,CAAC"}
|