@hebium-ui/core 0.1.0-alpha.2 → 0.1.0-alpha.4
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 +14 -2
- package/dist/index.js +17 -5
- package/dist/logics/avatar-placeholder/get-avatar-placeholder.d.ts +1 -4
- package/dist/logics/avatar-placeholder/get-avatar-placeholder.js +1 -2
- package/dist/logics/avatar-placeholder/should-show-avatar-placeholder.d.ts +2 -5
- 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 +1 -4
- package/dist/logics/bool/to-bool.js +1 -2
- package/dist/logics/bool/to-strbool.d.ts +1 -4
- package/dist/logics/bool/to-strbool.js +1 -2
- package/dist/logics/button-control/button-control.d.ts +16 -0
- package/dist/logics/button-control/button-control.js +26 -0
- package/dist/logics/button-control/button-control.js.map +1 -0
- package/dist/logics/cc/cc-all.d.ts +2 -5
- 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 +2 -5
- 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 +5 -8
- package/dist/logics/checkbox-control/checkbox-control.js +2 -3
- package/dist/logics/checkbox-control/checkbox-control.js.map +1 -1
- package/dist/logics/combobox-control/combobox-control.d.ts +100 -0
- package/dist/logics/combobox-control/combobox-control.js +100 -0
- package/dist/logics/combobox-control/combobox-control.js.map +1 -0
- package/dist/logics/combobox-control/combobox-filter.d.ts +13 -0
- package/dist/logics/combobox-control/combobox-filter.js +11 -0
- package/dist/logics/combobox-control/combobox-filter.js.map +1 -0
- package/dist/logics/combobox-control/combobox-navigation.d.ts +2 -0
- package/dist/logics/combobox-control/combobox-navigation.js +10 -0
- package/dist/logics/combobox-control/combobox-navigation.js.map +1 -0
- package/dist/logics/dialog-control/dialog-control.d.ts +5 -8
- 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 +3 -6
- 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 +2 -5
- 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 +5 -8
- 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 +3 -5
- package/dist/logics/ms/ms-all.js +1 -2
- package/dist/logics/ms/ms-all.js.map +1 -1
- package/dist/logics/multi-combobox-control/multi-combobox-control.d.ts +58 -0
- package/dist/logics/multi-combobox-control/multi-combobox-control.js +76 -0
- package/dist/logics/multi-combobox-control/multi-combobox-control.js.map +1 -0
- package/dist/logics/multi-combobox-control/multi-combobox-focus.d.ts +15 -0
- package/dist/logics/multi-combobox-control/multi-combobox-focus.js +46 -0
- package/dist/logics/multi-combobox-control/multi-combobox-focus.js.map +1 -0
- package/dist/logics/popover-control/popover-control.d.ts +5 -6
- package/dist/logics/popover-control/popover-control.js +6 -3
- package/dist/logics/popover-control/popover-control.js.map +1 -1
- package/dist/logics/progress-control/progress-control.d.ts +4 -7
- package/dist/logics/progress-control/progress-control.js +2 -3
- package/dist/logics/progress-control/progress-control.js.map +1 -1
- package/dist/logics/radio-control/radio-control.d.ts +4 -7
- 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 +3 -6
- 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 +3 -6
- package/dist/logics/segmented-control/segmented-control.js +2 -3
- package/dist/logics/segmented-control/segmented-control.js.map +1 -1
- package/dist/logics/tabs-control/tabs-control.d.ts +5 -8
- 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 +3 -6
- 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 +4 -7
- package/dist/recipes/alert/alert.js +6 -9
- package/dist/recipes/alert/alert.js.map +1 -1
- package/dist/recipes/anchor/anchor.d.ts +1 -4
- package/dist/recipes/anchor/anchor.js +1 -2
- package/dist/recipes/avatar/avatar.d.ts +1 -4
- package/dist/recipes/avatar/avatar.js +1 -2
- package/dist/recipes/blockquote/blockquote.d.ts +1 -4
- package/dist/recipes/blockquote/blockquote.js +4 -3
- package/dist/recipes/blockquote/blockquote.js.map +1 -1
- package/dist/recipes/button/button.d.ts +16 -7
- package/dist/recipes/button/button.js +39 -16
- package/dist/recipes/button/button.js.map +1 -1
- package/dist/recipes/checkbox/checkbox.d.ts +4 -27
- package/dist/recipes/checkbox/checkbox.js +14 -20
- package/dist/recipes/checkbox/checkbox.js.map +1 -1
- package/dist/recipes/code/code.d.ts +1 -4
- package/dist/recipes/code/code.js +1 -2
- package/dist/recipes/combobox/combobox.d.ts +8 -0
- package/dist/recipes/combobox/combobox.js +34 -0
- package/dist/recipes/combobox/combobox.js.map +1 -0
- package/dist/recipes/container/container.d.ts +1 -4
- package/dist/recipes/container/container.js +1 -2
- package/dist/recipes/details/details.d.ts +4 -7
- package/dist/recipes/details/details.js +10 -6
- package/dist/recipes/details/details.js.map +1 -1
- package/dist/recipes/dialog/dialog.d.ts +4 -5
- package/dist/recipes/dialog/dialog.js +6 -3
- package/dist/recipes/dialog/dialog.js.map +1 -1
- package/dist/recipes/dl/dl.d.ts +1 -4
- package/dist/recipes/dl/dl.js +6 -3
- package/dist/recipes/dl/dl.js.map +1 -1
- package/dist/recipes/drawer/drawer.d.ts +1 -4
- package/dist/recipes/drawer/drawer.js +1 -2
- package/dist/recipes/fieldset/fieldset.d.ts +1 -4
- 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 +1 -4
- package/dist/recipes/focus-ring/focus-ring.js +1 -2
- package/dist/recipes/heading/heading.d.ts +1 -4
- package/dist/recipes/heading/heading.js +1 -2
- package/dist/recipes/hr/hr.d.ts +1 -4
- package/dist/recipes/hr/hr.js +4 -3
- package/dist/recipes/hr/hr.js.map +1 -1
- package/dist/recipes/inline-feedback/inline-feedback.d.ts +50 -0
- package/dist/recipes/inline-feedback/inline-feedback.js +45 -0
- package/dist/recipes/inline-feedback/inline-feedback.js.map +1 -0
- package/dist/recipes/input/input.d.ts +4 -7
- package/dist/recipes/input/input.js +6 -5
- package/dist/recipes/input/input.js.map +1 -1
- package/dist/recipes/label/label.d.ts +2 -5
- package/dist/recipes/label/label.js +2 -2
- package/dist/recipes/label/label.js.map +1 -1
- package/dist/recipes/menu/menu.d.ts +1 -4
- package/dist/recipes/menu/menu.js +5 -3
- package/dist/recipes/menu/menu.js.map +1 -1
- package/dist/recipes/multi-combobox/multi-combobox.d.ts +8 -0
- package/dist/recipes/multi-combobox/multi-combobox.js +52 -0
- package/dist/recipes/multi-combobox/multi-combobox.js.map +1 -0
- package/dist/recipes/paragraph/paragraph.d.ts +1 -4
- package/dist/recipes/paragraph/paragraph.js +1 -2
- package/dist/recipes/popover/popover.d.ts +1 -4
- package/dist/recipes/popover/popover.js +4 -4
- package/dist/recipes/popover/popover.js.map +1 -1
- package/dist/recipes/progress/progress.d.ts +2 -5
- package/dist/recipes/progress/progress.js +1 -2
- package/dist/recipes/radio/radio.d.ts +4 -7
- package/dist/recipes/radio/radio.js +7 -6
- package/dist/recipes/radio/radio.js.map +1 -1
- package/dist/recipes/radiogroup/radiogroup.d.ts +1 -4
- package/dist/recipes/radiogroup/radiogroup.js +1 -2
- package/dist/recipes/section/section.d.ts +4 -5
- 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 +1 -4
- package/dist/recipes/segmented-control/segmented-control.js +11 -6
- package/dist/recipes/segmented-control/segmented-control.js.map +1 -1
- package/dist/recipes/select/select.d.ts +3 -6
- 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 +5 -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/status-icon/status-icon.d.ts +55 -0
- package/dist/recipes/status-icon/status-icon.js +39 -0
- package/dist/recipes/status-icon/status-icon.js.map +1 -0
- package/dist/recipes/table/table.d.ts +7 -8
- package/dist/recipes/table/table.js +17 -7
- package/dist/recipes/table/table.js.map +1 -1
- package/dist/recipes/tabs/tabs.d.ts +1 -4
- package/dist/recipes/tabs/tabs.js +4 -3
- package/dist/recipes/tabs/tabs.js.map +1 -1
- package/dist/recipes/tag/tag.d.ts +64 -0
- package/dist/recipes/tag/tag.js +86 -0
- package/dist/recipes/tag/tag.js.map +1 -0
- package/dist/recipes/text/text.d.ts +52 -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 +1 -4
- package/dist/recipes/visually-hidden/visually-hidden.js +1 -2
- package/dist/style.css +1 -1
- package/dist/styles/css-vars.d.ts +1 -4
- package/dist/styles/css-vars.js +1 -2
- package/dist/styles/make-recipe-type.d.ts +1 -4
- package/dist/styles/make-recipe.d.ts +2 -5
- 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 → active.module.css.js} +2 -3
- package/dist/styles/primitive-css/active.module.css.js.map +1 -0
- package/dist/styles/primitive-css/{base.module.js → base.module.css.js} +3 -3
- package/dist/styles/primitive-css/base.module.css.js.map +1 -0
- package/dist/styles/primitive-css/checked.module.css.js +11 -0
- package/dist/styles/primitive-css/checked.module.css.js.map +1 -0
- package/dist/styles/primitive-css/composite.module.css.js +5 -0
- package/dist/styles/primitive-css/composite.module.css.js.map +1 -0
- package/dist/styles/primitive-css/{disabled.module.js → disabled.module.css.js} +2 -3
- package/dist/styles/primitive-css/disabled.module.css.js.map +1 -0
- package/dist/styles/primitive-css/focus.module.css.js +10 -0
- package/dist/styles/primitive-css/focus.module.css.js.map +1 -0
- package/dist/styles/primitive-css/{hover.module.js → hover.module.css.js} +4 -4
- package/dist/styles/primitive-css/hover.module.css.js.map +1 -0
- package/dist/styles/primitive-css/icon.module.css.js +13 -0
- package/dist/styles/primitive-css/icon.module.css.js.map +1 -0
- package/dist/styles/primitive-css/{misc.module.js → misc.module.css.js} +8 -7
- package/dist/styles/primitive-css/misc.module.css.js.map +1 -0
- package/dist/styles/primitive-css/{neutral.module.js → neutral.module.css.js} +29 -13
- package/dist/styles/primitive-css/neutral.module.css.js.map +1 -0
- package/dist/styles/primitive-css/{pseudo-element.module.js → pseudo-element.module.css.js} +2 -3
- package/dist/styles/primitive-css/pseudo-element.module.css.js.map +1 -0
- package/dist/styles/primitive.gen.d.ts +80 -21
- package/dist/styles/primitive.gen.js +77 -38
- package/dist/styles/primitive.gen.js.map +1 -1
- package/package.json +5 -5
- package/dist/styles/primitive-css/active.module.js.map +0 -1
- package/dist/styles/primitive-css/base.module.js.map +0 -1
- package/dist/styles/primitive-css/checked.module.js +0 -10
- package/dist/styles/primitive-css/checked.module.js.map +0 -1
- package/dist/styles/primitive-css/composite.module.js +0 -6
- package/dist/styles/primitive-css/composite.module.js.map +0 -1
- package/dist/styles/primitive-css/disabled.module.js.map +0 -1
- package/dist/styles/primitive-css/focus.module.js +0 -10
- package/dist/styles/primitive-css/focus.module.js.map +0 -1
- package/dist/styles/primitive-css/hover.module.js.map +0 -1
- package/dist/styles/primitive-css/icon.module.js +0 -11
- package/dist/styles/primitive-css/icon.module.js.map +0 -1
- package/dist/styles/primitive-css/misc.module.js.map +0 -1
- package/dist/styles/primitive-css/neutral.module.js.map +0 -1
- package/dist/styles/primitive-css/pseudo-element.module.js.map +0 -1
|
@@ -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/anchor/anchor.d.ts
|
|
4
3
|
export declare const anchorRecipe: Recipe<"root", {
|
|
5
4
|
color: {
|
|
6
5
|
accent: {
|
|
@@ -103,6 +102,4 @@ export declare const anchorRecipe: Recipe<"root", {
|
|
|
103
102
|
};
|
|
104
103
|
}>;
|
|
105
104
|
export type AnchorVariants = RecipeVariants<typeof anchorRecipe>;
|
|
106
|
-
export type AnchorSlots = RecipeSlots<typeof anchorRecipe>;
|
|
107
|
-
//#endregion
|
|
108
|
-
//# sourceMappingURL=anchor.d.ts.map
|
|
105
|
+
export type AnchorSlots = RecipeSlots<typeof anchorRecipe>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/anchor/anchor.ts
|
|
3
3
|
const anchorRecipe = makeRecipe({
|
|
4
4
|
base: { root: {
|
|
5
5
|
reset: "true",
|
|
@@ -69,7 +69,6 @@ const anchorRecipe = makeRecipe({
|
|
|
69
69
|
decoration: "underline"
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
//#endregion
|
|
73
72
|
export { anchorRecipe };
|
|
74
73
|
|
|
75
74
|
//# sourceMappingURL=anchor.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/avatar/avatar.d.ts
|
|
4
3
|
export declare const avatartRecipe: Recipe<"root" | "img" | "placeholder", {
|
|
5
4
|
background: {
|
|
6
5
|
transparent: {
|
|
@@ -16,6 +15,4 @@ export declare const avatartRecipe: Recipe<"root" | "img" | "placeholder", {
|
|
|
16
15
|
};
|
|
17
16
|
}>;
|
|
18
17
|
export type AvatarVariants = RecipeVariants<typeof avatartRecipe>;
|
|
19
|
-
export type AvatarSlots = RecipeSlots<typeof avatartRecipe>;
|
|
20
|
-
//#endregion
|
|
21
|
-
//# sourceMappingURL=avatar.d.ts.map
|
|
18
|
+
export type AvatarSlots = RecipeSlots<typeof avatartRecipe>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/avatar/avatar.ts
|
|
3
3
|
const avatartRecipe = makeRecipe({
|
|
4
4
|
base: {
|
|
5
5
|
root: {
|
|
@@ -25,7 +25,6 @@ const avatartRecipe = makeRecipe({
|
|
|
25
25
|
} },
|
|
26
26
|
defaultVariants: { background: "transparent" }
|
|
27
27
|
});
|
|
28
|
-
//#endregion
|
|
29
28
|
export { avatartRecipe };
|
|
30
29
|
|
|
31
30
|
//# sourceMappingURL=avatar.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/blockquote/blockquote.d.ts
|
|
4
3
|
export declare const blockquoteRecipe: Recipe<"root" | "blockquote" | "caption", {
|
|
5
4
|
color: {
|
|
6
5
|
accent: {
|
|
@@ -26,6 +25,4 @@ export declare const blockquoteRecipe: Recipe<"root" | "blockquote" | "caption",
|
|
|
26
25
|
};
|
|
27
26
|
}>;
|
|
28
27
|
export type BlockquoteVariants = RecipeVariants<typeof blockquoteRecipe>;
|
|
29
|
-
export type BlockquoteSlots = RecipeSlots<typeof blockquoteRecipe>;
|
|
30
|
-
//#endregion
|
|
31
|
-
//# sourceMappingURL=blockquote.d.ts.map
|
|
28
|
+
export type BlockquoteSlots = RecipeSlots<typeof blockquoteRecipe>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/blockquote/blockquote.ts
|
|
3
3
|
const blockquoteRecipe = makeRecipe({
|
|
4
4
|
base: {
|
|
5
5
|
root: {
|
|
6
6
|
reset: "true",
|
|
7
7
|
baseBorderWidth: "3px",
|
|
8
|
-
|
|
8
|
+
borderInlineStartWidth: "base",
|
|
9
|
+
borderStyle: "solid",
|
|
10
|
+
borderColor: "base-bottom",
|
|
9
11
|
bgColor: "base-alpha",
|
|
10
12
|
paddingBlock: "1x",
|
|
11
13
|
paddingInline: "1.25x",
|
|
@@ -27,7 +29,6 @@ const blockquoteRecipe = makeRecipe({
|
|
|
27
29
|
} },
|
|
28
30
|
defaultVariants: { color: "neutral" }
|
|
29
31
|
});
|
|
30
|
-
//#endregion
|
|
31
32
|
export { blockquoteRecipe };
|
|
32
33
|
|
|
33
34
|
//# sourceMappingURL=blockquote.js.map
|
|
@@ -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,7 +1,14 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export declare const buttonRecipe: Recipe<"root" | "content" | "spinner" | "status", {
|
|
4
|
+
loading: {
|
|
5
|
+
true: {
|
|
6
|
+
content: {
|
|
7
|
+
opacity: "0";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
false: {};
|
|
11
|
+
};
|
|
5
12
|
variant: {
|
|
6
13
|
solid: {
|
|
7
14
|
root: {
|
|
@@ -23,7 +30,9 @@ export declare const buttonRecipe: Recipe<"root", {
|
|
|
23
30
|
root: {
|
|
24
31
|
color: "base";
|
|
25
32
|
bgColor: "section";
|
|
26
|
-
|
|
33
|
+
borderWidth: "base";
|
|
34
|
+
borderStyle: "solid";
|
|
35
|
+
borderColor: "divider";
|
|
27
36
|
_hover: {
|
|
28
37
|
bgColor: "base-alpha";
|
|
29
38
|
};
|
|
@@ -40,7 +49,9 @@ export declare const buttonRecipe: Recipe<"root", {
|
|
|
40
49
|
root: {
|
|
41
50
|
color: "base";
|
|
42
51
|
bgColor: "transparent";
|
|
43
|
-
|
|
52
|
+
borderWidth: "base";
|
|
53
|
+
borderStyle: "solid";
|
|
54
|
+
borderColor: "base";
|
|
44
55
|
_hover: {
|
|
45
56
|
bgColor: "base-alpha";
|
|
46
57
|
};
|
|
@@ -115,6 +126,4 @@ export declare const buttonRecipe: Recipe<"root", {
|
|
|
115
126
|
};
|
|
116
127
|
}>;
|
|
117
128
|
export type ButtonVariants = RecipeVariants<typeof buttonRecipe>;
|
|
118
|
-
export type ButtonSlots = RecipeSlots<typeof buttonRecipe>;
|
|
119
|
-
//#endregion
|
|
120
|
-
//# sourceMappingURL=button.d.ts.map
|
|
129
|
+
export type ButtonSlots = RecipeSlots<typeof buttonRecipe>;
|
|
@@ -1,19 +1,38 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/button/button.ts
|
|
3
3
|
const buttonRecipe = makeRecipe({
|
|
4
|
-
base: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
base: {
|
|
5
|
+
root: {
|
|
6
|
+
reset: "true",
|
|
7
|
+
position: "relative",
|
|
8
|
+
borderRadius: "base",
|
|
9
|
+
display: "inline-flex",
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
justifyContent: "center",
|
|
12
|
+
minHeight: "2x",
|
|
13
|
+
transition: "colors",
|
|
14
|
+
_focusVisible: { outline: "focus-ring" },
|
|
15
|
+
_disabled: { cursor: "not-allowed" }
|
|
16
|
+
},
|
|
17
|
+
content: {
|
|
18
|
+
display: "inline-flex",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
justifyContent: "center",
|
|
21
|
+
gap: "0.5x"
|
|
22
|
+
},
|
|
23
|
+
spinner: {
|
|
24
|
+
icon: "spinner",
|
|
25
|
+
position: "absolute",
|
|
26
|
+
inset: "0",
|
|
27
|
+
margin: "auto"
|
|
28
|
+
},
|
|
29
|
+
status: { visuallyHidden: "true" }
|
|
30
|
+
},
|
|
16
31
|
variants: {
|
|
32
|
+
loading: {
|
|
33
|
+
true: { content: { opacity: "0" } },
|
|
34
|
+
false: {}
|
|
35
|
+
},
|
|
17
36
|
variant: {
|
|
18
37
|
solid: { root: {
|
|
19
38
|
color: "base-fg",
|
|
@@ -28,7 +47,9 @@ const buttonRecipe = makeRecipe({
|
|
|
28
47
|
subtle: { root: {
|
|
29
48
|
color: "base",
|
|
30
49
|
bgColor: "section",
|
|
31
|
-
|
|
50
|
+
borderWidth: "base",
|
|
51
|
+
borderStyle: "solid",
|
|
52
|
+
borderColor: "divider",
|
|
32
53
|
_hover: { bgColor: "base-alpha" },
|
|
33
54
|
_active: { bgColor: "base-alpha-peak" },
|
|
34
55
|
_disabled: {
|
|
@@ -39,7 +60,9 @@ const buttonRecipe = makeRecipe({
|
|
|
39
60
|
outline: { root: {
|
|
40
61
|
color: "base",
|
|
41
62
|
bgColor: "transparent",
|
|
42
|
-
|
|
63
|
+
borderWidth: "base",
|
|
64
|
+
borderStyle: "solid",
|
|
65
|
+
borderColor: "base",
|
|
43
66
|
_hover: { bgColor: "base-alpha" },
|
|
44
67
|
_active: { bgColor: "base-alpha-peak" },
|
|
45
68
|
_disabled: {
|
|
@@ -79,12 +102,12 @@ const buttonRecipe = makeRecipe({
|
|
|
79
102
|
}
|
|
80
103
|
},
|
|
81
104
|
defaultVariants: {
|
|
105
|
+
loading: "false",
|
|
82
106
|
variant: "solid",
|
|
83
107
|
color: "accent",
|
|
84
108
|
shape: "rectangle"
|
|
85
109
|
}
|
|
86
110
|
});
|
|
87
|
-
//#endregion
|
|
88
111
|
export { buttonRecipe };
|
|
89
112
|
|
|
90
113
|
//# 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
|
|
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 position: \"relative\",\n borderRadius: \"base\",\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n minHeight: \"2x\",\n transition: \"colors\",\n _focusVisible: {\n outline: \"focus-ring\",\n },\n _disabled: {\n cursor: \"not-allowed\",\n },\n },\n content: {\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: \"0.5x\",\n },\n spinner: {\n icon: \"spinner\",\n position: \"absolute\",\n inset: \"0\",\n margin: \"auto\",\n },\n status: {\n visuallyHidden: \"true\",\n },\n },\n variants: {\n loading: {\n true: { content: { opacity: \"0\" } },\n false: {},\n },\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 loading: \"false\",\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;GACJ,OAAO;GACP,UAAU;GACV,cAAc;GACd,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,WAAW;GACX,YAAY;GACZ,eAAe,EACb,SAAS,aACX;GACA,WAAW,EACT,QAAQ,cACV;EACF;EACA,SAAS;GACP,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,KAAK;EACP;EACA,SAAS;GACP,MAAM;GACN,UAAU;GACV,OAAO;GACP,QAAQ;EACV;EACA,QAAQ,EACN,gBAAgB,OAClB;CACF;CACA,UAAU;EACR,SAAS;GACP,MAAM,EAAE,SAAS,EAAE,SAAS,IAAI,EAAE;GAClC,OAAO,CAAC;EACV;EACA,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,SAAS;EACT,OAAO;EACP,OAAO;CACT;AACF,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
2
|
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
-
|
|
4
|
-
export declare const checkboxRecipe: Recipe<"label" | "root" | "errorIcon" | "error" | "checkbox" | "errorMessage", {
|
|
3
|
+
export declare const checkboxRecipe: Recipe<"root" | "label" | "error" | "checkbox" | "errorIcon" | "errorMessage", {
|
|
5
4
|
color: {
|
|
6
5
|
accent: {
|
|
7
6
|
checkbox: {
|
|
@@ -24,41 +23,19 @@ 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
|
-
export type CheckboxSlots = RecipeSlots<typeof checkboxRecipe>;
|
|
63
|
-
//#endregion
|
|
64
|
-
//# sourceMappingURL=checkbox.d.ts.map
|
|
41
|
+
export type CheckboxSlots = RecipeSlots<typeof checkboxRecipe>;
|
|
@@ -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,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/code/code.d.ts
|
|
4
3
|
export declare const codeRecipe: Recipe<"root", {}>;
|
|
5
4
|
export type CodeVariants = RecipeVariants<typeof codeRecipe>;
|
|
6
|
-
export type CodeSlots = RecipeSlots<typeof codeRecipe>;
|
|
7
|
-
//#endregion
|
|
8
|
-
//# sourceMappingURL=code.d.ts.map
|
|
5
|
+
export type CodeSlots = RecipeSlots<typeof codeRecipe>;
|
|
@@ -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
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
|
+
import { RecipeSlots } from "../../styles/make-recipe-type.js";
|
|
3
|
+
import { InputSlots, InputVariants } from "../input/input.js";
|
|
4
|
+
declare const structureRecipe: Recipe<"list" | "item", {}>;
|
|
5
|
+
export type ComboboxVariants = Pick<InputVariants, "color" | "error">;
|
|
6
|
+
export type ComboboxSlots = InputSlots | RecipeSlots<typeof structureRecipe>;
|
|
7
|
+
export declare function comboboxRecipe(variants?: ComboboxVariants): Record<ComboboxSlots, string>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { cc } from "../../logics/cc/cc.js";
|
|
2
|
+
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
3
|
+
import { inputRecipe } from "../input/input.js";
|
|
4
|
+
import { menuitemRecipe } from "../menu/menu.js";
|
|
5
|
+
import { popoverRecipe } from "../popover/popover.js";
|
|
6
|
+
// src/recipes/combobox/combobox.ts
|
|
7
|
+
const structureRecipe = makeRecipe({
|
|
8
|
+
base: {
|
|
9
|
+
list: {
|
|
10
|
+
width: "anchor",
|
|
11
|
+
maxHeight: "15x",
|
|
12
|
+
overflowY: "auto"
|
|
13
|
+
},
|
|
14
|
+
item: { _focusVisible: { outlineOffset: "-1px" } }
|
|
15
|
+
},
|
|
16
|
+
variants: {}
|
|
17
|
+
});
|
|
18
|
+
function comboboxRecipe(variants = {}) {
|
|
19
|
+
const input = inputRecipe(variants);
|
|
20
|
+
const list = popoverRecipe({
|
|
21
|
+
position: "block-end",
|
|
22
|
+
padding: "sm"
|
|
23
|
+
});
|
|
24
|
+
const structure = structureRecipe();
|
|
25
|
+
return {
|
|
26
|
+
root: input.root,
|
|
27
|
+
input: input.input,
|
|
28
|
+
list: cc(list.root, structure.list),
|
|
29
|
+
item: cc(menuitemRecipe().root, structure.item)
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export { comboboxRecipe };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=combobox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combobox.js","names":[],"sources":["../../../src/recipes/combobox/combobox.ts"],"sourcesContent":["import { cc } from \"~/logics/cc\";\nimport { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots } from \"~/styles/make-recipe-type\";\nimport { inputRecipe, type InputSlots, type InputVariants } from \"../input\";\nimport { menuitemRecipe } from \"../menu\";\nimport { popoverRecipe } from \"../popover\";\n\nconst structureRecipe = makeRecipe({\n base: {\n list: {\n width: \"anchor\",\n maxHeight: \"15x\",\n overflowY: \"auto\",\n },\n item: {\n _focusVisible: {\n outlineOffset: \"-1px\",\n },\n },\n },\n variants: {},\n});\n\nexport type ComboboxVariants = Pick<InputVariants, \"color\" | \"error\">;\nexport type ComboboxSlots = InputSlots | RecipeSlots<typeof structureRecipe>;\n\nexport function comboboxRecipe(variants: ComboboxVariants = {}): Record<ComboboxSlots, string> {\n const input = inputRecipe(variants);\n const list = popoverRecipe({ position: \"block-end\", padding: \"sm\" });\n const structure = structureRecipe();\n return {\n root: input.root,\n input: input.input,\n list: cc(list.root, structure.list),\n item: cc(menuitemRecipe().root, structure.item),\n };\n}\n"],"mappings":";;;;;;AAOA,MAAM,kBAAkB,WAAW;CACjC,MAAM;EACJ,MAAM;GACJ,OAAO;GACP,WAAW;GACX,WAAW;EACb;EACA,MAAM,EACJ,eAAe,EACb,eAAe,OACjB,EACF;CACF;CACA,UAAU,CAAC;AACb,CAAC;AAKD,SAAgB,eAAe,WAA6B,CAAC,GAAkC;CAC7F,MAAM,QAAQ,YAAY,QAAQ;CAClC,MAAM,OAAO,cAAc;EAAE,UAAU;EAAa,SAAS;CAAK,CAAC;CACnE,MAAM,YAAY,gBAAgB;CAClC,OAAO;EACL,MAAM,MAAM;EACZ,OAAO,MAAM;EACb,MAAM,GAAG,KAAK,MAAM,UAAU,IAAI;EAClC,MAAM,GAAG,eAAe,CAAC,CAAC,MAAM,UAAU,IAAI;CAChD;AACF"}
|
|
@@ -1,8 +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/container/container.d.ts
|
|
4
3
|
export declare const containerRecipe: Recipe<"root", {}>;
|
|
5
4
|
export type ContainerVariants = RecipeVariants<typeof containerRecipe>;
|
|
6
|
-
export type ContainerSlots = RecipeSlots<typeof containerRecipe>;
|
|
7
|
-
//#endregion
|
|
8
|
-
//# sourceMappingURL=container.d.ts.map
|
|
5
|
+
export type ContainerSlots = RecipeSlots<typeof containerRecipe>;
|
|
@@ -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,19 @@
|
|
|
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
|
-
export type DetailsSlots = RecipeSlots<typeof detailsRecipe>;
|
|
21
|
-
//#endregion
|
|
22
|
-
//# sourceMappingURL=details.d.ts.map
|
|
19
|
+
export type DetailsSlots = RecipeSlots<typeof detailsRecipe>;
|
|
@@ -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,12 @@ 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
|
-
export type DialogSlots = RecipeSlots<typeof dialogRecipe>;
|
|
29
|
-
//#endregion
|
|
30
|
-
//# sourceMappingURL=dialog.d.ts.map
|
|
29
|
+
export type DialogSlots = RecipeSlots<typeof dialogRecipe>;
|
|
@@ -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
|