@hebium-ui/core 0.1.0-alpha.2 → 0.1.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/logics/avatar-placeholder/get-avatar-placeholder.d.ts +0 -2
- package/dist/logics/avatar-placeholder/get-avatar-placeholder.js +1 -2
- package/dist/logics/avatar-placeholder/should-show-avatar-placeholder.d.ts +1 -3
- package/dist/logics/avatar-placeholder/should-show-avatar-placeholder.js +1 -2
- package/dist/logics/avatar-placeholder/should-show-avatar-placeholder.js.map +1 -1
- package/dist/logics/bool/to-bool.d.ts +0 -2
- package/dist/logics/bool/to-bool.js +1 -2
- package/dist/logics/bool/to-strbool.d.ts +0 -2
- package/dist/logics/bool/to-strbool.js +1 -2
- package/dist/logics/cc/cc-all.d.ts +1 -3
- package/dist/logics/cc/cc-all.js +1 -2
- package/dist/logics/cc/cc-all.js.map +1 -1
- package/dist/logics/cc/cc.d.ts +1 -3
- package/dist/logics/cc/cc.js +1 -2
- package/dist/logics/cc/cc.js.map +1 -1
- package/dist/logics/checkbox-control/checkbox-control.d.ts +4 -6
- package/dist/logics/checkbox-control/checkbox-control.js +2 -3
- package/dist/logics/checkbox-control/checkbox-control.js.map +1 -1
- package/dist/logics/dialog-control/dialog-control.d.ts +4 -6
- package/dist/logics/dialog-control/dialog-control.js +1 -2
- package/dist/logics/dialog-control/dialog-control.js.map +1 -1
- package/dist/logics/input-control/input-control.d.ts +2 -4
- package/dist/logics/input-control/input-control.js +1 -2
- package/dist/logics/input-control/input-control.js.map +1 -1
- package/dist/logics/label-marker/label-marker.d.ts +1 -3
- package/dist/logics/label-marker/label-marker.js +1 -2
- package/dist/logics/label-marker/label-marker.js.map +1 -1
- package/dist/logics/menu-control/menu-control.d.ts +4 -6
- package/dist/logics/menu-control/menu-control.js +1 -2
- package/dist/logics/menu-control/menu-control.js.map +1 -1
- package/dist/logics/ms/ms-all.d.ts +2 -3
- package/dist/logics/ms/ms-all.js +1 -2
- package/dist/logics/ms/ms-all.js.map +1 -1
- package/dist/logics/popover-control/popover-control.d.ts +2 -4
- package/dist/logics/popover-control/popover-control.js +1 -2
- package/dist/logics/popover-control/popover-control.js.map +1 -1
- package/dist/logics/progress-control/progress-control.d.ts +3 -5
- package/dist/logics/progress-control/progress-control.js +1 -2
- package/dist/logics/progress-control/progress-control.js.map +1 -1
- package/dist/logics/radio-control/radio-control.d.ts +3 -5
- package/dist/logics/radio-control/radio-control.js +1 -2
- package/dist/logics/radio-control/radio-control.js.map +1 -1
- package/dist/logics/radiogroup-control/radiogroup-control.d.ts +2 -4
- package/dist/logics/radiogroup-control/radiogroup-control.js +1 -2
- package/dist/logics/radiogroup-control/radiogroup-control.js.map +1 -1
- package/dist/logics/segmented-control/segmented-control.d.ts +1 -3
- package/dist/logics/segmented-control/segmented-control.js +1 -2
- package/dist/logics/segmented-control/segmented-control.js.map +1 -1
- package/dist/logics/tabs-control/tabs-control.d.ts +4 -6
- package/dist/logics/tabs-control/tabs-control.js +1 -2
- package/dist/logics/tabs-control/tabs-control.js.map +1 -1
- package/dist/logics/tabs-control/tabs-keymap.js +1 -2
- package/dist/logics/tabs-control/tabs-keymap.js.map +1 -1
- package/dist/logics/tooltip-control/tooltip-control.d.ts +2 -4
- package/dist/logics/tooltip-control/tooltip-control.js +1 -2
- package/dist/logics/tooltip-control/tooltip-control.js.map +1 -1
- package/dist/recipes/alert/alert.d.ts +2 -4
- package/dist/recipes/alert/alert.js +5 -4
- package/dist/recipes/alert/alert.js.map +1 -1
- package/dist/recipes/anchor/anchor.d.ts +0 -2
- package/dist/recipes/anchor/anchor.js +1 -2
- package/dist/recipes/avatar/avatar.d.ts +0 -2
- package/dist/recipes/avatar/avatar.js +1 -2
- package/dist/recipes/blockquote/blockquote.d.ts +0 -2
- package/dist/recipes/blockquote/blockquote.js +4 -3
- package/dist/recipes/blockquote/blockquote.js.map +1 -1
- package/dist/recipes/button/button.d.ts +6 -4
- package/dist/recipes/button/button.js +8 -5
- package/dist/recipes/button/button.js.map +1 -1
- package/dist/recipes/checkbox/checkbox.d.ts +2 -24
- package/dist/recipes/checkbox/checkbox.js +14 -20
- package/dist/recipes/checkbox/checkbox.js.map +1 -1
- package/dist/recipes/code/code.d.ts +0 -2
- package/dist/recipes/code/code.js +1 -2
- package/dist/recipes/container/container.d.ts +0 -2
- package/dist/recipes/container/container.js +1 -2
- package/dist/recipes/details/details.d.ts +3 -5
- package/dist/recipes/details/details.js +10 -6
- package/dist/recipes/details/details.js.map +1 -1
- package/dist/recipes/dialog/dialog.d.ts +3 -3
- package/dist/recipes/dialog/dialog.js +6 -3
- package/dist/recipes/dialog/dialog.js.map +1 -1
- package/dist/recipes/dl/dl.d.ts +0 -2
- package/dist/recipes/dl/dl.js +6 -3
- package/dist/recipes/dl/dl.js.map +1 -1
- package/dist/recipes/drawer/drawer.d.ts +0 -2
- package/dist/recipes/drawer/drawer.js +1 -2
- package/dist/recipes/fieldset/fieldset.d.ts +0 -2
- package/dist/recipes/fieldset/fieldset.js +4 -3
- package/dist/recipes/fieldset/fieldset.js.map +1 -1
- package/dist/recipes/focus-ring/focus-ring.d.ts +0 -2
- package/dist/recipes/focus-ring/focus-ring.js +1 -2
- package/dist/recipes/heading/heading.d.ts +0 -2
- package/dist/recipes/heading/heading.js +1 -2
- package/dist/recipes/hr/hr.d.ts +0 -2
- package/dist/recipes/hr/hr.js +4 -3
- package/dist/recipes/hr/hr.js.map +1 -1
- package/dist/recipes/input/input.d.ts +3 -5
- package/dist/recipes/input/input.js +6 -5
- package/dist/recipes/input/input.js.map +1 -1
- package/dist/recipes/label/label.d.ts +0 -2
- package/dist/recipes/label/label.js +1 -2
- package/dist/recipes/menu/menu.d.ts +0 -2
- package/dist/recipes/menu/menu.js +1 -2
- package/dist/recipes/paragraph/paragraph.d.ts +0 -2
- package/dist/recipes/paragraph/paragraph.js +1 -2
- package/dist/recipes/popover/popover.d.ts +0 -2
- package/dist/recipes/popover/popover.js +4 -3
- package/dist/recipes/popover/popover.js.map +1 -1
- package/dist/recipes/progress/progress.d.ts +0 -2
- package/dist/recipes/progress/progress.js +1 -2
- package/dist/recipes/radio/radio.d.ts +3 -5
- package/dist/recipes/radio/radio.js +7 -6
- package/dist/recipes/radio/radio.js.map +1 -1
- package/dist/recipes/radiogroup/radiogroup.d.ts +0 -2
- package/dist/recipes/radiogroup/radiogroup.js +1 -2
- package/dist/recipes/section/section.d.ts +3 -3
- package/dist/recipes/section/section.js +6 -3
- package/dist/recipes/section/section.js.map +1 -1
- package/dist/recipes/segmented-control/segmented-control.d.ts +0 -2
- package/dist/recipes/segmented-control/segmented-control.js +5 -3
- package/dist/recipes/segmented-control/segmented-control.js.map +1 -1
- package/dist/recipes/select/select.d.ts +2 -4
- package/dist/recipes/select/select.js +6 -5
- package/dist/recipes/select/select.js.map +1 -1
- package/dist/recipes/skip-link/skip-link.d.ts +6 -0
- package/dist/recipes/skip-link/skip-link.js +9 -0
- package/dist/recipes/skip-link/skip-link.js.map +1 -0
- package/dist/recipes/table/table.d.ts +6 -6
- package/dist/recipes/table/table.js +17 -7
- package/dist/recipes/table/table.js.map +1 -1
- package/dist/recipes/tabs/tabs.d.ts +0 -2
- package/dist/recipes/tabs/tabs.js +4 -3
- package/dist/recipes/tabs/tabs.js.map +1 -1
- package/dist/recipes/text/text.d.ts +53 -0
- package/dist/recipes/text/text.js +42 -0
- package/dist/recipes/text/text.js.map +1 -0
- package/dist/recipes/visually-hidden/visually-hidden.d.ts +0 -2
- package/dist/recipes/visually-hidden/visually-hidden.js +1 -2
- package/dist/style.css +1 -1
- package/dist/styles/css-vars.d.ts +0 -2
- package/dist/styles/css-vars.js +1 -2
- package/dist/styles/make-recipe-type.d.ts +0 -2
- package/dist/styles/make-recipe.d.ts +1 -3
- package/dist/styles/make-recipe.js +3 -4
- package/dist/styles/make-recipe.js.map +1 -1
- package/dist/styles/primitive-css/active.module.js +1 -2
- package/dist/styles/primitive-css/base.module.js +2 -2
- package/dist/styles/primitive-css/base.module.js.map +1 -1
- package/dist/styles/primitive-css/checked.module.js +5 -4
- package/dist/styles/primitive-css/checked.module.js.map +1 -1
- package/dist/styles/primitive-css/composite.module.js +1 -2
- package/dist/styles/primitive-css/disabled.module.js +1 -2
- package/dist/styles/primitive-css/focus.module.js +1 -2
- package/dist/styles/primitive-css/hover.module.js +3 -3
- package/dist/styles/primitive-css/hover.module.js.map +1 -1
- package/dist/styles/primitive-css/icon.module.js +2 -4
- package/dist/styles/primitive-css/icon.module.js.map +1 -1
- package/dist/styles/primitive-css/misc.module.js +3 -3
- package/dist/styles/primitive-css/misc.module.js.map +1 -1
- package/dist/styles/primitive-css/neutral.module.js +18 -12
- package/dist/styles/primitive-css/neutral.module.js.map +1 -1
- package/dist/styles/primitive-css/pseudo-element.module.js +1 -2
- package/dist/styles/primitive.gen.d.ts +48 -17
- package/dist/styles/primitive.gen.js +36 -18
- package/dist/styles/primitive.gen.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.js","names":[],"sources":["../../../src/recipes/blockquote/blockquote.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const blockquoteRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n baseBorderWidth: \"3px\",\n
|
|
1
|
+
{"version":3,"file":"blockquote.js","names":[],"sources":["../../../src/recipes/blockquote/blockquote.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const blockquoteRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n baseBorderWidth: \"3px\",\n borderInlineStartWidth: \"base\",\n borderStyle: \"solid\",\n borderColor: \"base-bottom\",\n bgColor: \"base-alpha\",\n paddingBlock: \"1x\",\n paddingInline: \"1.25x\",\n borderInlineEndRadius: \"base\",\n },\n blockquote: {\n reset: \"true\",\n },\n caption: {\n position: \"relative\",\n color: \"text-dimmed\",\n paddingBlockStart: \"0.5x\",\n _before: {\n content: \"caption-marker\",\n },\n },\n },\n variants: {\n color: {\n accent: { root: { baseColor: \"accent\" } },\n danger: { root: { baseColor: \"danger\" } },\n caution: { root: { baseColor: \"caution\" } },\n neutral: { root: { baseColor: \"neutral\" } },\n },\n },\n defaultVariants: {\n color: \"neutral\",\n },\n});\n\nexport type BlockquoteVariants = RecipeVariants<typeof blockquoteRecipe>;\nexport type BlockquoteSlots = RecipeSlots<typeof blockquoteRecipe>;\n"],"mappings":";;AAGA,MAAa,mBAAmB,WAAW;CACzC,MAAM;EACJ,MAAM;GACJ,OAAO;GACP,iBAAiB;GACjB,wBAAwB;GACxB,aAAa;GACb,aAAa;GACb,SAAS;GACT,cAAc;GACd,eAAe;GACf,uBAAuB;EACzB;EACA,YAAY,EACV,OAAO,OACT;EACA,SAAS;GACP,UAAU;GACV,OAAO;GACP,mBAAmB;GACnB,SAAS,EACP,SAAS,iBACX;EACF;CACF;CACA,UAAU,EACR,OAAO;EACL,QAAQ,EAAE,MAAM,EAAE,WAAW,SAAS,EAAE;EACxC,QAAQ,EAAE,MAAM,EAAE,WAAW,SAAS,EAAE;EACxC,SAAS,EAAE,MAAM,EAAE,WAAW,UAAU,EAAE;EAC1C,SAAS,EAAE,MAAM,EAAE,WAAW,UAAU,EAAE;CAC5C,EACF;CACA,iBAAiB,EACf,OAAO,UACT;AACF,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
//#region src/recipes/button/button.d.ts
|
|
4
3
|
export declare const buttonRecipe: Recipe<"root", {
|
|
5
4
|
variant: {
|
|
6
5
|
solid: {
|
|
@@ -23,7 +22,9 @@ export declare const buttonRecipe: Recipe<"root", {
|
|
|
23
22
|
root: {
|
|
24
23
|
color: "base";
|
|
25
24
|
bgColor: "section";
|
|
26
|
-
|
|
25
|
+
borderWidth: "base";
|
|
26
|
+
borderStyle: "solid";
|
|
27
|
+
borderColor: "divider";
|
|
27
28
|
_hover: {
|
|
28
29
|
bgColor: "base-alpha";
|
|
29
30
|
};
|
|
@@ -40,7 +41,9 @@ export declare const buttonRecipe: Recipe<"root", {
|
|
|
40
41
|
root: {
|
|
41
42
|
color: "base";
|
|
42
43
|
bgColor: "transparent";
|
|
43
|
-
|
|
44
|
+
borderWidth: "base";
|
|
45
|
+
borderStyle: "solid";
|
|
46
|
+
borderColor: "base";
|
|
44
47
|
_hover: {
|
|
45
48
|
bgColor: "base-alpha";
|
|
46
49
|
};
|
|
@@ -116,5 +119,4 @@ export declare const buttonRecipe: Recipe<"root", {
|
|
|
116
119
|
}>;
|
|
117
120
|
export type ButtonVariants = RecipeVariants<typeof buttonRecipe>;
|
|
118
121
|
export type ButtonSlots = RecipeSlots<typeof buttonRecipe>;
|
|
119
|
-
//#endregion
|
|
120
122
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/button/button.ts
|
|
3
3
|
const buttonRecipe = makeRecipe({
|
|
4
4
|
base: { root: {
|
|
5
5
|
reset: "true",
|
|
@@ -8,7 +8,7 @@ const buttonRecipe = makeRecipe({
|
|
|
8
8
|
alignItems: "center",
|
|
9
9
|
justifyContent: "center",
|
|
10
10
|
gap: "0.5x",
|
|
11
|
-
|
|
11
|
+
minHeight: "2x",
|
|
12
12
|
transition: "colors",
|
|
13
13
|
_focusVisible: { outline: "focus-ring" },
|
|
14
14
|
_disabled: { cursor: "not-allowed" }
|
|
@@ -28,7 +28,9 @@ const buttonRecipe = makeRecipe({
|
|
|
28
28
|
subtle: { root: {
|
|
29
29
|
color: "base",
|
|
30
30
|
bgColor: "section",
|
|
31
|
-
|
|
31
|
+
borderWidth: "base",
|
|
32
|
+
borderStyle: "solid",
|
|
33
|
+
borderColor: "divider",
|
|
32
34
|
_hover: { bgColor: "base-alpha" },
|
|
33
35
|
_active: { bgColor: "base-alpha-peak" },
|
|
34
36
|
_disabled: {
|
|
@@ -39,7 +41,9 @@ const buttonRecipe = makeRecipe({
|
|
|
39
41
|
outline: { root: {
|
|
40
42
|
color: "base",
|
|
41
43
|
bgColor: "transparent",
|
|
42
|
-
|
|
44
|
+
borderWidth: "base",
|
|
45
|
+
borderStyle: "solid",
|
|
46
|
+
borderColor: "base",
|
|
43
47
|
_hover: { bgColor: "base-alpha" },
|
|
44
48
|
_active: { bgColor: "base-alpha-peak" },
|
|
45
49
|
_disabled: {
|
|
@@ -84,7 +88,6 @@ const buttonRecipe = makeRecipe({
|
|
|
84
88
|
shape: "rectangle"
|
|
85
89
|
}
|
|
86
90
|
});
|
|
87
|
-
//#endregion
|
|
88
91
|
export { buttonRecipe };
|
|
89
92
|
|
|
90
93
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","names":[],"sources":["../../../src/recipes/button/button.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const buttonRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n borderRadius: \"base\",\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: \"0.5x\",\n
|
|
1
|
+
{"version":3,"file":"button.js","names":[],"sources":["../../../src/recipes/button/button.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const buttonRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n borderRadius: \"base\",\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: \"0.5x\",\n minHeight: \"2x\",\n transition: \"colors\",\n _focusVisible: {\n outline: \"focus-ring\",\n },\n _disabled: {\n cursor: \"not-allowed\",\n },\n },\n },\n variants: {\n variant: {\n solid: {\n root: {\n color: \"base-fg\",\n bgColor: \"base\",\n _hover: {\n bgColor: \"base-top\",\n },\n _active: {\n bgColor: \"base-bottom\",\n },\n _disabled: {\n color: \"base-fg-muted\",\n bgColor: \"base-muted\",\n },\n },\n },\n subtle: {\n root: {\n color: \"base\",\n bgColor: \"section\",\n borderWidth: \"base\",\n borderStyle: \"solid\",\n borderColor: \"divider\",\n _hover: {\n bgColor: \"base-alpha\",\n },\n _active: {\n bgColor: \"base-alpha-peak\",\n },\n _disabled: {\n color: \"base-muted\",\n bgColor: \"section\",\n },\n },\n },\n outline: {\n root: {\n color: \"base\",\n bgColor: \"transparent\",\n borderWidth: \"base\",\n borderStyle: \"solid\",\n borderColor: \"base\",\n _hover: {\n bgColor: \"base-alpha\",\n },\n _active: {\n bgColor: \"base-alpha-peak\",\n },\n _disabled: {\n color: \"base-muted\",\n bgColor: \"transparent\",\n borderColor: \"base-muted\",\n },\n },\n },\n ghost: {\n root: {\n color: \"base\",\n bgColor: \"transparent\",\n _hover: {\n bgColor: \"base-alpha\",\n },\n _active: {\n bgColor: \"base-alpha-peak\",\n },\n _disabled: {\n color: \"base-muted\",\n bgColor: \"transparent\",\n },\n },\n },\n },\n color: {\n accent: { root: { baseColor: \"accent\" } },\n danger: { root: { baseColor: \"danger\" } },\n caution: { root: { baseColor: \"caution\" } },\n neutral: { root: { baseColor: \"neutral\" } },\n },\n shape: {\n rectangle: {\n root: {\n paddingInline: \"1x\",\n },\n },\n square: {\n root: {\n justifyContent: \"center\",\n aspectRatio: \"1:1\",\n },\n },\n circle: {\n root: {\n justifyContent: \"center\",\n aspectRatio: \"1:1\",\n borderRadius: \"full\",\n },\n },\n },\n },\n defaultVariants: {\n variant: \"solid\",\n color: \"accent\",\n shape: \"rectangle\",\n },\n});\n\nexport type ButtonVariants = RecipeVariants<typeof buttonRecipe>;\nexport type ButtonSlots = RecipeSlots<typeof buttonRecipe>;\n"],"mappings":";;AAGA,MAAa,eAAe,WAAW;CACrC,MAAM,EACJ,MAAM;EACJ,OAAO;EACP,cAAc;EACd,SAAS;EACT,YAAY;EACZ,gBAAgB;EAChB,KAAK;EACL,WAAW;EACX,YAAY;EACZ,eAAe,EACb,SAAS,aACX;EACA,WAAW,EACT,QAAQ,cACV;CACF,EACF;CACA,UAAU;EACR,SAAS;GACP,OAAO,EACL,MAAM;IACJ,OAAO;IACP,SAAS;IACT,QAAQ,EACN,SAAS,WACX;IACA,SAAS,EACP,SAAS,cACX;IACA,WAAW;KACT,OAAO;KACP,SAAS;IACX;GACF,EACF;GACA,QAAQ,EACN,MAAM;IACJ,OAAO;IACP,SAAS;IACT,aAAa;IACb,aAAa;IACb,aAAa;IACb,QAAQ,EACN,SAAS,aACX;IACA,SAAS,EACP,SAAS,kBACX;IACA,WAAW;KACT,OAAO;KACP,SAAS;IACX;GACF,EACF;GACA,SAAS,EACP,MAAM;IACJ,OAAO;IACP,SAAS;IACT,aAAa;IACb,aAAa;IACb,aAAa;IACb,QAAQ,EACN,SAAS,aACX;IACA,SAAS,EACP,SAAS,kBACX;IACA,WAAW;KACT,OAAO;KACP,SAAS;KACT,aAAa;IACf;GACF,EACF;GACA,OAAO,EACL,MAAM;IACJ,OAAO;IACP,SAAS;IACT,QAAQ,EACN,SAAS,aACX;IACA,SAAS,EACP,SAAS,kBACX;IACA,WAAW;KACT,OAAO;KACP,SAAS;IACX;GACF,EACF;EACF;EACA,OAAO;GACL,QAAQ,EAAE,MAAM,EAAE,WAAW,SAAS,EAAE;GACxC,QAAQ,EAAE,MAAM,EAAE,WAAW,SAAS,EAAE;GACxC,SAAS,EAAE,MAAM,EAAE,WAAW,UAAU,EAAE;GAC1C,SAAS,EAAE,MAAM,EAAE,WAAW,UAAU,EAAE;EAC5C;EACA,OAAO;GACL,WAAW,EACT,MAAM,EACJ,eAAe,KACjB,EACF;GACA,QAAQ,EACN,MAAM;IACJ,gBAAgB;IAChB,aAAa;GACf,EACF;GACA,QAAQ,EACN,MAAM;IACJ,gBAAgB;IAChB,aAAa;IACb,cAAc;GAChB,EACF;EACF;CACF;CACA,iBAAiB;EACf,SAAS;EACT,OAAO;EACP,OAAO;CACT;AACF,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
//#region src/recipes/checkbox/checkbox.d.ts
|
|
4
3
|
export declare const checkboxRecipe: Recipe<"label" | "root" | "errorIcon" | "error" | "checkbox" | "errorMessage", {
|
|
5
4
|
color: {
|
|
6
5
|
accent: {
|
|
@@ -24,41 +23,20 @@ export declare const checkboxRecipe: Recipe<"label" | "root" | "errorIcon" | "er
|
|
|
24
23
|
};
|
|
25
24
|
};
|
|
26
25
|
};
|
|
27
|
-
icon: {
|
|
28
|
-
check: {
|
|
29
|
-
checkbox: {
|
|
30
|
-
_checked: {
|
|
31
|
-
border: "base";
|
|
32
|
-
icon: "check";
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
indeterminate: {
|
|
37
|
-
checkbox: {
|
|
38
|
-
border: "base";
|
|
39
|
-
icon: "indeterminate";
|
|
40
|
-
_checked: {
|
|
41
|
-
border: "base";
|
|
42
|
-
icon: "check";
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
26
|
error: {
|
|
48
27
|
true: {
|
|
49
28
|
checkbox: {
|
|
50
29
|
baseColor: "danger";
|
|
51
|
-
|
|
30
|
+
borderColor: "danger-divider";
|
|
52
31
|
};
|
|
53
32
|
};
|
|
54
33
|
false: {
|
|
55
34
|
checkbox: {
|
|
56
|
-
|
|
35
|
+
borderColor: "divider";
|
|
57
36
|
};
|
|
58
37
|
};
|
|
59
38
|
};
|
|
60
39
|
}>;
|
|
61
40
|
export type CheckboxVariants = RecipeVariants<typeof checkboxRecipe>;
|
|
62
41
|
export type CheckboxSlots = RecipeSlots<typeof checkboxRecipe>;
|
|
63
|
-
//#endregion
|
|
64
42
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/checkbox/checkbox.ts
|
|
3
3
|
const checkboxRecipe = makeRecipe({
|
|
4
4
|
base: {
|
|
5
5
|
root: {
|
|
@@ -14,10 +14,20 @@ const checkboxRecipe = makeRecipe({
|
|
|
14
14
|
width: "1x",
|
|
15
15
|
height: "1x",
|
|
16
16
|
borderRadius: "base",
|
|
17
|
+
borderWidth: "base",
|
|
18
|
+
borderStyle: "solid",
|
|
19
|
+
_checked: {
|
|
20
|
+
borderColor: "base",
|
|
21
|
+
icon: "check"
|
|
22
|
+
},
|
|
23
|
+
_indeterminate: {
|
|
24
|
+
borderColor: "base",
|
|
25
|
+
icon: "indeterminate"
|
|
26
|
+
},
|
|
17
27
|
_focusVisible: { outline: "focus-ring" },
|
|
18
28
|
_hover: {
|
|
19
29
|
bgColor: "base-alpha",
|
|
20
|
-
|
|
30
|
+
borderColor: "base-top"
|
|
21
31
|
},
|
|
22
32
|
_disabled: {
|
|
23
33
|
bgColor: "box",
|
|
@@ -52,35 +62,19 @@ const checkboxRecipe = makeRecipe({
|
|
|
52
62
|
caution: { checkbox: { baseColor: "caution" } },
|
|
53
63
|
neutral: { checkbox: { baseColor: "neutral" } }
|
|
54
64
|
},
|
|
55
|
-
icon: {
|
|
56
|
-
check: { checkbox: { _checked: {
|
|
57
|
-
border: "base",
|
|
58
|
-
icon: "check"
|
|
59
|
-
} } },
|
|
60
|
-
indeterminate: { checkbox: {
|
|
61
|
-
border: "base",
|
|
62
|
-
icon: "indeterminate",
|
|
63
|
-
_checked: {
|
|
64
|
-
border: "base",
|
|
65
|
-
icon: "check"
|
|
66
|
-
}
|
|
67
|
-
} }
|
|
68
|
-
},
|
|
69
65
|
error: {
|
|
70
66
|
true: { checkbox: {
|
|
71
67
|
baseColor: "danger",
|
|
72
|
-
|
|
68
|
+
borderColor: "danger-divider"
|
|
73
69
|
} },
|
|
74
|
-
false: { checkbox: {
|
|
70
|
+
false: { checkbox: { borderColor: "divider" } }
|
|
75
71
|
}
|
|
76
72
|
},
|
|
77
73
|
defaultVariants: {
|
|
78
74
|
color: "accent",
|
|
79
|
-
icon: "check",
|
|
80
75
|
error: "false"
|
|
81
76
|
}
|
|
82
77
|
});
|
|
83
|
-
//#endregion
|
|
84
78
|
export { checkboxRecipe };
|
|
85
79
|
|
|
86
80
|
//# sourceMappingURL=checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","names":[],"sources":["../../../src/recipes/checkbox/checkbox.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const checkboxRecipe = makeRecipe({\n base: {\n root: {\n display: \"flex\",\n gap: \"0.5x\",\n lineHeight: \"1\",\n color: \"text\",\n },\n checkbox: {\n reset: \"true\",\n transition: \"colors\",\n width: \"1x\",\n height: \"1x\",\n borderRadius: \"base\",\n _focusVisible: {\n outline: \"focus-ring\",\n },\n _hover: {\n bgColor: \"base-alpha\",\n
|
|
1
|
+
{"version":3,"file":"checkbox.js","names":[],"sources":["../../../src/recipes/checkbox/checkbox.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const checkboxRecipe = makeRecipe({\n base: {\n root: {\n display: \"flex\",\n gap: \"0.5x\",\n lineHeight: \"1\",\n color: \"text\",\n },\n checkbox: {\n reset: \"true\",\n transition: \"colors\",\n width: \"1x\",\n height: \"1x\",\n borderRadius: \"base\",\n borderWidth: \"base\",\n borderStyle: \"solid\",\n _checked: {\n borderColor: \"base\",\n icon: \"check\",\n },\n _indeterminate: {\n borderColor: \"base\",\n icon: \"indeterminate\",\n },\n _focusVisible: {\n outline: \"focus-ring\",\n },\n _hover: {\n bgColor: \"base-alpha\",\n borderColor: \"base-top\",\n },\n _disabled: {\n bgColor: \"box\",\n borderColor: \"base-muted\",\n cursor: \"not-allowed\",\n },\n },\n label: {\n color: \"text\",\n _disabled: {\n color: \"text-muted\",\n cursor: \"not-allowed\",\n },\n },\n error: {\n reset: \"true\",\n display: \"flex\",\n alignItems: \"center\",\n gap: \"0.25x\",\n fontSize: \"0.875x\",\n },\n errorIcon: {\n color: \"danger\",\n icon: \"error\",\n },\n errorMessage: {\n color: \"danger\",\n },\n },\n variants: {\n color: {\n accent: {\n checkbox: {\n baseColor: \"accent\",\n },\n },\n danger: {\n checkbox: {\n baseColor: \"danger\",\n },\n },\n caution: {\n checkbox: {\n baseColor: \"caution\",\n },\n },\n neutral: {\n checkbox: {\n baseColor: \"neutral\",\n },\n },\n },\n error: {\n true: {\n checkbox: {\n baseColor: \"danger\",\n borderColor: \"danger-divider\",\n },\n },\n false: {\n checkbox: {\n borderColor: \"divider\",\n },\n },\n },\n },\n defaultVariants: {\n color: \"accent\",\n error: \"false\",\n },\n});\n\nexport type CheckboxVariants = RecipeVariants<typeof checkboxRecipe>;\nexport type CheckboxSlots = RecipeSlots<typeof checkboxRecipe>;\n"],"mappings":";;AAGA,MAAa,iBAAiB,WAAW;CACvC,MAAM;EACJ,MAAM;GACJ,SAAS;GACT,KAAK;GACL,YAAY;GACZ,OAAO;EACT;EACA,UAAU;GACR,OAAO;GACP,YAAY;GACZ,OAAO;GACP,QAAQ;GACR,cAAc;GACd,aAAa;GACb,aAAa;GACb,UAAU;IACR,aAAa;IACb,MAAM;GACR;GACA,gBAAgB;IACd,aAAa;IACb,MAAM;GACR;GACA,eAAe,EACb,SAAS,aACX;GACA,QAAQ;IACN,SAAS;IACT,aAAa;GACf;GACA,WAAW;IACT,SAAS;IACT,aAAa;IACb,QAAQ;GACV;EACF;EACA,OAAO;GACL,OAAO;GACP,WAAW;IACT,OAAO;IACP,QAAQ;GACV;EACF;EACA,OAAO;GACL,OAAO;GACP,SAAS;GACT,YAAY;GACZ,KAAK;GACL,UAAU;EACZ;EACA,WAAW;GACT,OAAO;GACP,MAAM;EACR;EACA,cAAc,EACZ,OAAO,SACT;CACF;CACA,UAAU;EACR,OAAO;GACL,QAAQ,EACN,UAAU,EACR,WAAW,SACb,EACF;GACA,QAAQ,EACN,UAAU,EACR,WAAW,SACb,EACF;GACA,SAAS,EACP,UAAU,EACR,WAAW,UACb,EACF;GACA,SAAS,EACP,UAAU,EACR,WAAW,UACb,EACF;EACF;EACA,OAAO;GACL,MAAM,EACJ,UAAU;IACR,WAAW;IACX,aAAa;GACf,EACF;GACA,OAAO,EACL,UAAU,EACR,aAAa,UACf,EACF;EACF;CACF;CACA,iBAAiB;EACf,OAAO;EACP,OAAO;CACT;AACF,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
//#region src/recipes/code/code.d.ts
|
|
4
3
|
export declare const codeRecipe: Recipe<"root", {}>;
|
|
5
4
|
export type CodeVariants = RecipeVariants<typeof codeRecipe>;
|
|
6
5
|
export type CodeSlots = RecipeSlots<typeof codeRecipe>;
|
|
7
|
-
//#endregion
|
|
8
6
|
//# sourceMappingURL=code.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/code/code.ts
|
|
3
3
|
const codeRecipe = makeRecipe({
|
|
4
4
|
base: { root: {
|
|
5
5
|
bgColor: "box",
|
|
@@ -8,7 +8,6 @@ const codeRecipe = makeRecipe({
|
|
|
8
8
|
} },
|
|
9
9
|
variants: {}
|
|
10
10
|
});
|
|
11
|
-
//#endregion
|
|
12
11
|
export { codeRecipe };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=code.js.map
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
//#region src/recipes/container/container.d.ts
|
|
4
3
|
export declare const containerRecipe: Recipe<"root", {}>;
|
|
5
4
|
export type ContainerVariants = RecipeVariants<typeof containerRecipe>;
|
|
6
5
|
export type ContainerSlots = RecipeSlots<typeof containerRecipe>;
|
|
7
|
-
//#endregion
|
|
8
6
|
//# sourceMappingURL=container.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/container/container.ts
|
|
3
3
|
const containerRecipe = makeRecipe({
|
|
4
4
|
base: { root: {
|
|
5
5
|
overflowX: "auto",
|
|
@@ -9,7 +9,6 @@ const containerRecipe = makeRecipe({
|
|
|
9
9
|
} },
|
|
10
10
|
variants: {}
|
|
11
11
|
});
|
|
12
|
-
//#endregion
|
|
13
12
|
export { containerRecipe };
|
|
14
13
|
|
|
15
14
|
//# sourceMappingURL=container.js.map
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
//#region src/recipes/details/details.d.ts
|
|
4
3
|
export declare const detailsRecipe: Recipe<"root" | "content" | "summary", {
|
|
5
4
|
border: {
|
|
6
5
|
block: {
|
|
7
6
|
root: {
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
borderBlockStartWidth: "base";
|
|
8
|
+
borderBlockEndWidth: "base";
|
|
10
9
|
};
|
|
11
10
|
};
|
|
12
11
|
"block-end": {
|
|
13
12
|
root: {
|
|
14
|
-
|
|
13
|
+
borderBlockEndWidth: "base";
|
|
15
14
|
};
|
|
16
15
|
};
|
|
17
16
|
};
|
|
18
17
|
}>;
|
|
19
18
|
export type DetailsVariants = RecipeVariants<typeof detailsRecipe>;
|
|
20
19
|
export type DetailsSlots = RecipeSlots<typeof detailsRecipe>;
|
|
21
|
-
//#endregion
|
|
22
20
|
//# sourceMappingURL=details.d.ts.map
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/details/details.ts
|
|
3
3
|
const detailsRecipe = makeRecipe({
|
|
4
4
|
base: {
|
|
5
|
-
root: {
|
|
5
|
+
root: {
|
|
6
|
+
reset: "true",
|
|
7
|
+
borderStyle: "solid",
|
|
8
|
+
borderColor: "divider",
|
|
9
|
+
_detailsContent: { height: "toggle" }
|
|
10
|
+
},
|
|
6
11
|
summary: {
|
|
7
12
|
baseColor: "neutral",
|
|
8
13
|
transition: "colors",
|
|
@@ -25,14 +30,13 @@ const detailsRecipe = makeRecipe({
|
|
|
25
30
|
},
|
|
26
31
|
variants: { border: {
|
|
27
32
|
block: { root: {
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
borderBlockStartWidth: "base",
|
|
34
|
+
borderBlockEndWidth: "base"
|
|
30
35
|
} },
|
|
31
|
-
"block-end": { root: {
|
|
36
|
+
"block-end": { root: { borderBlockEndWidth: "base" } }
|
|
32
37
|
} },
|
|
33
38
|
defaultVariants: { border: "block" }
|
|
34
39
|
});
|
|
35
|
-
//#endregion
|
|
36
40
|
export { detailsRecipe };
|
|
37
41
|
|
|
38
42
|
//# sourceMappingURL=details.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details.js","names":[],"sources":["../../../src/recipes/details/details.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const detailsRecipe = makeRecipe({\n base: {\n root: {\n _detailsContent: {\n height: \"toggle\",\n },\n },\n summary: {\n baseColor: \"neutral\",\n transition: \"colors\",\n position: \"relative\",\n listStyle: \"none\",\n paddingInline: \"1.25x\",\n paddingBlock: \"0.5x\",\n fontSize: \"1.25x\",\n fontWeight: \"semi-bold\",\n icon: \"chevron-down\",\n _hover: {\n bgColor: \"base-alpha\",\n },\n _active: {\n bgColor: \"base-alpha-peak\",\n },\n _focusVisible: {\n outline: \"focus-ring\",\n },\n },\n content: {\n reset: \"true\",\n paddingInline: \"1.25x\",\n paddingBlock: \"0.75x\",\n },\n },\n variants: {\n border: {\n block: {\n root: {\n
|
|
1
|
+
{"version":3,"file":"details.js","names":[],"sources":["../../../src/recipes/details/details.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const detailsRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n borderStyle: \"solid\",\n borderColor: \"divider\",\n _detailsContent: {\n height: \"toggle\",\n },\n },\n summary: {\n baseColor: \"neutral\",\n transition: \"colors\",\n position: \"relative\",\n listStyle: \"none\",\n paddingInline: \"1.25x\",\n paddingBlock: \"0.5x\",\n fontSize: \"1.25x\",\n fontWeight: \"semi-bold\",\n icon: \"chevron-down\",\n _hover: {\n bgColor: \"base-alpha\",\n },\n _active: {\n bgColor: \"base-alpha-peak\",\n },\n _focusVisible: {\n outline: \"focus-ring\",\n },\n },\n content: {\n reset: \"true\",\n paddingInline: \"1.25x\",\n paddingBlock: \"0.75x\",\n },\n },\n variants: {\n border: {\n block: {\n root: {\n borderBlockStartWidth: \"base\",\n borderBlockEndWidth: \"base\",\n },\n },\n \"block-end\": {\n root: {\n borderBlockEndWidth: \"base\",\n },\n },\n },\n },\n defaultVariants: {\n border: \"block\",\n },\n});\n\nexport type DetailsVariants = RecipeVariants<typeof detailsRecipe>;\nexport type DetailsSlots = RecipeSlots<typeof detailsRecipe>;\n"],"mappings":";;AAGA,MAAa,gBAAgB,WAAW;CACtC,MAAM;EACJ,MAAM;GACJ,OAAO;GACP,aAAa;GACb,aAAa;GACb,iBAAiB,EACf,QAAQ,SACV;EACF;EACA,SAAS;GACP,WAAW;GACX,YAAY;GACZ,UAAU;GACV,WAAW;GACX,eAAe;GACf,cAAc;GACd,UAAU;GACV,YAAY;GACZ,MAAM;GACN,QAAQ,EACN,SAAS,aACX;GACA,SAAS,EACP,SAAS,kBACX;GACA,eAAe,EACb,SAAS,aACX;EACF;EACA,SAAS;GACP,OAAO;GACP,eAAe;GACf,cAAc;EAChB;CACF;CACA,UAAU,EACR,QAAQ;EACN,OAAO,EACL,MAAM;GACJ,uBAAuB;GACvB,qBAAqB;EACvB,EACF;EACA,aAAa,EACX,MAAM,EACJ,qBAAqB,OACvB,EACF;CACF,EACF;CACA,iBAAiB,EACf,QAAQ,QACV;AACF,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
//#region src/recipes/dialog/dialog.d.ts
|
|
4
3
|
export declare const dialogRecipe: Recipe<"root" | "header" | "heading" | "closeButton" | "closeButtonIcon", {
|
|
5
4
|
modal: {
|
|
6
5
|
true: {
|
|
@@ -19,12 +18,13 @@ export declare const dialogRecipe: Recipe<"root" | "header" | "heading" | "close
|
|
|
19
18
|
};
|
|
20
19
|
false: {
|
|
21
20
|
root: {
|
|
22
|
-
|
|
21
|
+
borderWidth: "base";
|
|
22
|
+
borderStyle: "solid";
|
|
23
|
+
borderColor: "divider";
|
|
23
24
|
};
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
27
|
}>;
|
|
27
28
|
export type DialogVariants = RecipeVariants<typeof dialogRecipe>;
|
|
28
29
|
export type DialogSlots = RecipeSlots<typeof dialogRecipe>;
|
|
29
|
-
//#endregion
|
|
30
30
|
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/dialog/dialog.ts
|
|
3
3
|
const dialogRecipe = makeRecipe({
|
|
4
4
|
base: {
|
|
5
5
|
root: {
|
|
@@ -37,10 +37,13 @@ const dialogRecipe = makeRecipe({
|
|
|
37
37
|
},
|
|
38
38
|
_open: { bodyOverflow: "hidden" }
|
|
39
39
|
} },
|
|
40
|
-
false: { root: {
|
|
40
|
+
false: { root: {
|
|
41
|
+
borderWidth: "base",
|
|
42
|
+
borderStyle: "solid",
|
|
43
|
+
borderColor: "divider"
|
|
44
|
+
} }
|
|
41
45
|
} }
|
|
42
46
|
});
|
|
43
|
-
//#endregion
|
|
44
47
|
export { dialogRecipe };
|
|
45
48
|
|
|
46
49
|
//# sourceMappingURL=dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","names":[],"sources":["../../../src/recipes/dialog/dialog.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const dialogRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n transition: \"fade\",\n boxShadow: \"bg-box\",\n color: \"text\",\n bgColor: \"body\",\n borderRadius: \"base\",\n inset: \"0\",\n margin: \"auto\",\n paddingInline: \"1.25x\",\n paddingBlock: \"1.25x\",\n _open: {\n opacity: \"1\",\n startingOpacity: \"0\",\n },\n },\n header: {\n display: \"flex\",\n marginBlockEnd: \"1x\",\n },\n heading: {},\n closeButton: {\n marginInlineStart: \"auto\",\n },\n closeButtonIcon: {\n icon: \"close\",\n },\n },\n variants: {\n modal: {\n true: {\n root: {\n _backdrop: {\n transition: \"blur\",\n openedBlur: \"3px\",\n openedBgColor: \"overlay\",\n startingOpenedBgColor: \"transparent\",\n startingOpenedBlur: \"0px\",\n },\n _open: {\n // prevent body scrolling\n bodyOverflow: \"hidden\",\n },\n },\n },\n false: {\n root: {\n
|
|
1
|
+
{"version":3,"file":"dialog.js","names":[],"sources":["../../../src/recipes/dialog/dialog.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const dialogRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n transition: \"fade\",\n boxShadow: \"bg-box\",\n color: \"text\",\n bgColor: \"body\",\n borderRadius: \"base\",\n inset: \"0\",\n margin: \"auto\",\n paddingInline: \"1.25x\",\n paddingBlock: \"1.25x\",\n _open: {\n opacity: \"1\",\n startingOpacity: \"0\",\n },\n },\n header: {\n display: \"flex\",\n marginBlockEnd: \"1x\",\n },\n heading: {},\n closeButton: {\n marginInlineStart: \"auto\",\n },\n closeButtonIcon: {\n icon: \"close\",\n },\n },\n variants: {\n modal: {\n true: {\n root: {\n _backdrop: {\n transition: \"blur\",\n openedBlur: \"3px\",\n openedBgColor: \"overlay\",\n startingOpenedBgColor: \"transparent\",\n startingOpenedBlur: \"0px\",\n },\n _open: {\n // prevent body scrolling\n bodyOverflow: \"hidden\",\n },\n },\n },\n false: {\n root: {\n borderWidth: \"base\",\n borderStyle: \"solid\",\n borderColor: \"divider\",\n },\n },\n },\n },\n});\n\nexport type DialogVariants = RecipeVariants<typeof dialogRecipe>;\nexport type DialogSlots = RecipeSlots<typeof dialogRecipe>;\n"],"mappings":";;AAGA,MAAa,eAAe,WAAW;CACrC,MAAM;EACJ,MAAM;GACJ,OAAO;GACP,YAAY;GACZ,WAAW;GACX,OAAO;GACP,SAAS;GACT,cAAc;GACd,OAAO;GACP,QAAQ;GACR,eAAe;GACf,cAAc;GACd,OAAO;IACL,SAAS;IACT,iBAAiB;GACnB;EACF;EACA,QAAQ;GACN,SAAS;GACT,gBAAgB;EAClB;EACA,SAAS,CAAC;EACV,aAAa,EACX,mBAAmB,OACrB;EACA,iBAAiB,EACf,MAAM,QACR;CACF;CACA,UAAU,EACR,OAAO;EACL,MAAM,EACJ,MAAM;GACJ,WAAW;IACT,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,uBAAuB;IACvB,oBAAoB;GACtB;GACA,OAAO,EAEL,cAAc,SAChB;EACF,EACF;EACA,OAAO,EACL,MAAM;GACJ,aAAa;GACb,aAAa;GACb,aAAa;EACf,EACF;CACF,EACF;AACF,CAAC"}
|
package/dist/recipes/dl/dl.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
//#region src/recipes/dl/dl.d.ts
|
|
4
3
|
export declare const dlRecipe: Recipe<"root", {}>;
|
|
5
4
|
export type DlVariants = RecipeVariants<typeof dlRecipe>;
|
|
6
5
|
export type DlSlots = RecipeSlots<typeof dlRecipe>;
|
|
@@ -10,5 +9,4 @@ export type DtSlots = RecipeSlots<typeof dtRecipe>;
|
|
|
10
9
|
export declare const ddRecipe: Recipe<"root", {}>;
|
|
11
10
|
export type DdVariants = RecipeVariants<typeof ddRecipe>;
|
|
12
11
|
export type DdSlots = RecipeSlots<typeof ddRecipe>;
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=dl.d.ts.map
|
package/dist/recipes/dl/dl.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/dl/dl.ts
|
|
3
3
|
const dlRecipe = makeRecipe({
|
|
4
4
|
base: { root: {
|
|
5
5
|
display: "grid",
|
|
@@ -12,16 +12,19 @@ const dlRecipe = makeRecipe({
|
|
|
12
12
|
const dtRecipe = makeRecipe({
|
|
13
13
|
base: { root: {
|
|
14
14
|
reset: "true",
|
|
15
|
+
gridColumn: "1",
|
|
15
16
|
color: "text-dimmed",
|
|
16
17
|
fontWeight: "semi-bold"
|
|
17
18
|
} },
|
|
18
19
|
variants: {}
|
|
19
20
|
});
|
|
20
21
|
const ddRecipe = makeRecipe({
|
|
21
|
-
base: { root: {
|
|
22
|
+
base: { root: {
|
|
23
|
+
reset: "true",
|
|
24
|
+
gridColumn: "2"
|
|
25
|
+
} },
|
|
22
26
|
variants: {}
|
|
23
27
|
});
|
|
24
|
-
//#endregion
|
|
25
28
|
export { ddRecipe, dlRecipe, dtRecipe };
|
|
26
29
|
|
|
27
30
|
//# sourceMappingURL=dl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dl.js","names":[],"sources":["../../../src/recipes/dl/dl.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const dlRecipe = makeRecipe({\n base: {\n root: {\n display: \"grid\",\n gridTemplateColumns: \"2column\",\n columnGap: \"2x\",\n rowGap: \"0.25x\",\n },\n },\n variants: {},\n});\nexport type DlVariants = RecipeVariants<typeof dlRecipe>;\nexport type DlSlots = RecipeSlots<typeof dlRecipe>;\n\nexport const dtRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n color: \"text-dimmed\",\n fontWeight: \"semi-bold\",\n },\n },\n variants: {},\n});\nexport type DtVariants = RecipeVariants<typeof dtRecipe>;\nexport type DtSlots = RecipeSlots<typeof dtRecipe>;\n\nexport const ddRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n },\n },\n variants: {},\n});\nexport type DdVariants = RecipeVariants<typeof ddRecipe>;\nexport type DdSlots = RecipeSlots<typeof ddRecipe>;\n"],"mappings":";;AAGA,MAAa,WAAW,WAAW;CACjC,MAAM,EACJ,MAAM;EACJ,SAAS;EACT,qBAAqB;EACrB,WAAW;EACX,QAAQ;CACV,EACF;CACA,UAAU,CAAC;AACb,CAAC;AAID,MAAa,WAAW,WAAW;CACjC,MAAM,EACJ,MAAM;EACJ,OAAO;EACP,OAAO;EACP,YAAY;CACd,EACF;CACA,UAAU,CAAC;AACb,CAAC;AAID,MAAa,WAAW,WAAW;CACjC,MAAM,EACJ,MAAM
|
|
1
|
+
{"version":3,"file":"dl.js","names":[],"sources":["../../../src/recipes/dl/dl.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const dlRecipe = makeRecipe({\n base: {\n root: {\n display: \"grid\",\n gridTemplateColumns: \"2column\",\n columnGap: \"2x\",\n rowGap: \"0.25x\",\n },\n },\n variants: {},\n});\nexport type DlVariants = RecipeVariants<typeof dlRecipe>;\nexport type DlSlots = RecipeSlots<typeof dlRecipe>;\n\nexport const dtRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n gridColumn: \"1\",\n color: \"text-dimmed\",\n fontWeight: \"semi-bold\",\n },\n },\n variants: {},\n});\nexport type DtVariants = RecipeVariants<typeof dtRecipe>;\nexport type DtSlots = RecipeSlots<typeof dtRecipe>;\n\nexport const ddRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n gridColumn: \"2\",\n },\n },\n variants: {},\n});\nexport type DdVariants = RecipeVariants<typeof ddRecipe>;\nexport type DdSlots = RecipeSlots<typeof ddRecipe>;\n"],"mappings":";;AAGA,MAAa,WAAW,WAAW;CACjC,MAAM,EACJ,MAAM;EACJ,SAAS;EACT,qBAAqB;EACrB,WAAW;EACX,QAAQ;CACV,EACF;CACA,UAAU,CAAC;AACb,CAAC;AAID,MAAa,WAAW,WAAW;CACjC,MAAM,EACJ,MAAM;EACJ,OAAO;EACP,YAAY;EACZ,OAAO;EACP,YAAY;CACd,EACF;CACA,UAAU,CAAC;AACb,CAAC;AAID,MAAa,WAAW,WAAW;CACjC,MAAM,EACJ,MAAM;EACJ,OAAO;EACP,YAAY;CACd,EACF;CACA,UAAU,CAAC;AACb,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
//#region src/recipes/drawer/drawer.d.ts
|
|
4
3
|
export declare const drawerRecipe: Recipe<"root" | "header" | "heading" | "closeButton" | "closeButtonIcon", {
|
|
5
4
|
placement: {
|
|
6
5
|
"inline-start": {
|
|
@@ -47,5 +46,4 @@ export declare const drawerRecipe: Recipe<"root" | "header" | "heading" | "close
|
|
|
47
46
|
}>;
|
|
48
47
|
export type DrawerVariants = RecipeVariants<typeof drawerRecipe>;
|
|
49
48
|
export type DrawerSlots = RecipeSlots<typeof drawerRecipe>;
|
|
50
|
-
//#endregion
|
|
51
49
|
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/drawer/drawer.ts
|
|
3
3
|
const drawerRecipe = makeRecipe({
|
|
4
4
|
base: {
|
|
5
5
|
root: {
|
|
@@ -63,7 +63,6 @@ const drawerRecipe = makeRecipe({
|
|
|
63
63
|
} },
|
|
64
64
|
defaultVariants: { placement: "inline-end" }
|
|
65
65
|
});
|
|
66
|
-
//#endregion
|
|
67
66
|
export { drawerRecipe };
|
|
68
67
|
|
|
69
68
|
//# sourceMappingURL=drawer.js.map
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
//#region src/recipes/fieldset/fieldset.d.ts
|
|
4
3
|
export declare const fieldsetRecipe: Recipe<"root", {}>;
|
|
5
4
|
export type FieldsetVariants = RecipeVariants<typeof fieldsetRecipe>;
|
|
6
5
|
export type FieldsetSlots = RecipeSlots<typeof fieldsetRecipe>;
|
|
7
|
-
//#endregion
|
|
8
6
|
//# sourceMappingURL=fieldset.d.ts.map
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/fieldset/fieldset.ts
|
|
3
3
|
const fieldsetRecipe = makeRecipe({
|
|
4
4
|
base: { root: {
|
|
5
|
-
|
|
5
|
+
borderWidth: "base",
|
|
6
|
+
borderStyle: "solid",
|
|
7
|
+
borderColor: "divider",
|
|
6
8
|
borderRadius: "base",
|
|
7
9
|
paddingBlock: "0.75x",
|
|
8
10
|
paddingInline: "1x",
|
|
@@ -10,7 +12,6 @@ const fieldsetRecipe = makeRecipe({
|
|
|
10
12
|
} },
|
|
11
13
|
variants: {}
|
|
12
14
|
});
|
|
13
|
-
//#endregion
|
|
14
15
|
export { fieldsetRecipe };
|
|
15
16
|
|
|
16
17
|
//# sourceMappingURL=fieldset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldset.js","names":[],"sources":["../../../src/recipes/fieldset/fieldset.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const fieldsetRecipe = makeRecipe({\n base: {\n root: {\n
|
|
1
|
+
{"version":3,"file":"fieldset.js","names":[],"sources":["../../../src/recipes/fieldset/fieldset.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const fieldsetRecipe = makeRecipe({\n base: {\n root: {\n borderWidth: \"base\",\n borderStyle: \"solid\",\n borderColor: \"divider\",\n borderRadius: \"base\",\n paddingBlock: \"0.75x\",\n paddingInline: \"1x\",\n paddingBlockStart: \"0.375x\",\n },\n },\n variants: {},\n});\n\nexport type FieldsetVariants = RecipeVariants<typeof fieldsetRecipe>;\nexport type FieldsetSlots = RecipeSlots<typeof fieldsetRecipe>;\n"],"mappings":";;AAGA,MAAa,iBAAiB,WAAW;CACvC,MAAM,EACJ,MAAM;EACJ,aAAa;EACb,aAAa;EACb,aAAa;EACb,cAAc;EACd,cAAc;EACd,eAAe;EACf,mBAAmB;CACrB,EACF;CACA,UAAU,CAAC;AACb,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
//#region src/recipes/focus-ring/focus-ring.d.ts
|
|
4
3
|
export declare const focusRingRecipe: Recipe<"root", {}>;
|
|
5
4
|
export type FocusRingVariants = RecipeVariants<typeof focusRingRecipe>;
|
|
6
5
|
export type FocusRingSlots = RecipeSlots<typeof focusRingRecipe>;
|
|
7
|
-
//#endregion
|
|
8
6
|
//# sourceMappingURL=focus-ring.d.ts.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/focus-ring/focus-ring.ts
|
|
3
3
|
const focusRingRecipe = makeRecipe({
|
|
4
4
|
base: { root: { _focusVisible: { outline: "focus-ring" } } },
|
|
5
5
|
variants: {}
|
|
6
6
|
});
|
|
7
|
-
//#endregion
|
|
8
7
|
export { focusRingRecipe };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=focus-ring.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
//#region src/recipes/heading/heading.d.ts
|
|
4
3
|
export declare const headingRecipe: Recipe<"root", {
|
|
5
4
|
level: {
|
|
6
5
|
"1": {
|
|
@@ -52,5 +51,4 @@ export declare const headingRecipe: Recipe<"root", {
|
|
|
52
51
|
}>;
|
|
53
52
|
export type HeadingVariants = RecipeVariants<typeof headingRecipe>;
|
|
54
53
|
export type HeadingSlots = RecipeSlots<typeof headingRecipe>;
|
|
55
|
-
//#endregion
|
|
56
54
|
//# sourceMappingURL=heading.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/heading/heading.ts
|
|
3
3
|
const headingRecipe = makeRecipe({
|
|
4
4
|
base: { root: {
|
|
5
5
|
reset: "true",
|
|
@@ -29,7 +29,6 @@ const headingRecipe = makeRecipe({
|
|
|
29
29
|
},
|
|
30
30
|
defaultVariants: { margin: "none" }
|
|
31
31
|
});
|
|
32
|
-
//#endregion
|
|
33
32
|
export { headingRecipe };
|
|
34
33
|
|
|
35
34
|
//# sourceMappingURL=heading.js.map
|
package/dist/recipes/hr/hr.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
//#region src/recipes/hr/hr.d.ts
|
|
4
3
|
export declare const hrRecipe: Recipe<"root", {}>;
|
|
5
4
|
export type HrVariants = RecipeVariants<typeof hrRecipe>;
|
|
6
5
|
export type HrSlots = RecipeSlots<typeof hrRecipe>;
|
|
7
|
-
//#endregion
|
|
8
6
|
//# sourceMappingURL=hr.d.ts.map
|