@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 +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>;
|
|
@@ -9,6 +8,4 @@ export type DtVariants = RecipeVariants<typeof dtRecipe>;
|
|
|
9
8
|
export type DtSlots = RecipeSlots<typeof dtRecipe>;
|
|
10
9
|
export declare const ddRecipe: Recipe<"root", {}>;
|
|
11
10
|
export type DdVariants = RecipeVariants<typeof ddRecipe>;
|
|
12
|
-
export type DdSlots = RecipeSlots<typeof ddRecipe>;
|
|
13
|
-
//#endregion
|
|
14
|
-
//# sourceMappingURL=dl.d.ts.map
|
|
11
|
+
export type DdSlots = RecipeSlots<typeof ddRecipe>;
|
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": {
|
|
@@ -46,6 +45,4 @@ export declare const drawerRecipe: Recipe<"root" | "header" | "heading" | "close
|
|
|
46
45
|
};
|
|
47
46
|
}>;
|
|
48
47
|
export type DrawerVariants = RecipeVariants<typeof drawerRecipe>;
|
|
49
|
-
export type DrawerSlots = RecipeSlots<typeof drawerRecipe>;
|
|
50
|
-
//#endregion
|
|
51
|
-
//# sourceMappingURL=drawer.d.ts.map
|
|
48
|
+
export type DrawerSlots = RecipeSlots<typeof drawerRecipe>;
|
|
@@ -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,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/fieldset/fieldset.d.ts
|
|
4
3
|
export declare const fieldsetRecipe: Recipe<"root", {}>;
|
|
5
4
|
export type FieldsetVariants = RecipeVariants<typeof fieldsetRecipe>;
|
|
6
|
-
export type FieldsetSlots = RecipeSlots<typeof fieldsetRecipe>;
|
|
7
|
-
//#endregion
|
|
8
|
-
//# sourceMappingURL=fieldset.d.ts.map
|
|
5
|
+
export type FieldsetSlots = RecipeSlots<typeof fieldsetRecipe>;
|
|
@@ -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,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/focus-ring/focus-ring.d.ts
|
|
4
3
|
export declare const focusRingRecipe: Recipe<"root", {}>;
|
|
5
4
|
export type FocusRingVariants = RecipeVariants<typeof focusRingRecipe>;
|
|
6
|
-
export type FocusRingSlots = RecipeSlots<typeof focusRingRecipe>;
|
|
7
|
-
//#endregion
|
|
8
|
-
//# sourceMappingURL=focus-ring.d.ts.map
|
|
5
|
+
export type FocusRingSlots = RecipeSlots<typeof focusRingRecipe>;
|
|
@@ -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": {
|
|
@@ -51,6 +50,4 @@ export declare const headingRecipe: Recipe<"root", {
|
|
|
51
50
|
};
|
|
52
51
|
}>;
|
|
53
52
|
export type HeadingVariants = RecipeVariants<typeof headingRecipe>;
|
|
54
|
-
export type HeadingSlots = RecipeSlots<typeof headingRecipe>;
|
|
55
|
-
//#endregion
|
|
56
|
-
//# sourceMappingURL=heading.d.ts.map
|
|
53
|
+
export type HeadingSlots = RecipeSlots<typeof headingRecipe>;
|
|
@@ -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,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/hr/hr.d.ts
|
|
4
3
|
export declare const hrRecipe: Recipe<"root", {}>;
|
|
5
4
|
export type HrVariants = RecipeVariants<typeof hrRecipe>;
|
|
6
|
-
export type HrSlots = RecipeSlots<typeof hrRecipe>;
|
|
7
|
-
//#endregion
|
|
8
|
-
//# sourceMappingURL=hr.d.ts.map
|
|
5
|
+
export type HrSlots = RecipeSlots<typeof hrRecipe>;
|
package/dist/recipes/hr/hr.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/hr/hr.ts
|
|
3
3
|
const hrRecipe = makeRecipe({
|
|
4
4
|
base: { root: {
|
|
5
5
|
reset: "true",
|
|
6
6
|
marginBlock: "0.5x",
|
|
7
|
-
|
|
7
|
+
borderBlockStartWidth: "base",
|
|
8
|
+
borderStyle: "solid",
|
|
9
|
+
borderColor: "divider"
|
|
8
10
|
} },
|
|
9
11
|
variants: {}
|
|
10
12
|
});
|
|
11
|
-
//#endregion
|
|
12
13
|
export { hrRecipe };
|
|
13
14
|
|
|
14
15
|
//# sourceMappingURL=hr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hr.js","names":[],"sources":["../../../src/recipes/hr/hr.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const hrRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n marginBlock: \"0.5x\",\n
|
|
1
|
+
{"version":3,"file":"hr.js","names":[],"sources":["../../../src/recipes/hr/hr.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const hrRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n marginBlock: \"0.5x\",\n borderBlockStartWidth: \"base\",\n borderStyle: \"solid\",\n borderColor: \"divider\",\n },\n },\n variants: {},\n});\n\nexport type HrVariants = RecipeVariants<typeof hrRecipe>;\nexport type HrSlots = RecipeSlots<typeof hrRecipe>;\n"],"mappings":";;AAGA,MAAa,WAAW,WAAW;CACjC,MAAM,EACJ,MAAM;EACJ,OAAO;EACP,aAAa;EACb,uBAAuB;EACvB,aAAa;EACb,aAAa;CACf,EACF;CACA,UAAU,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
|
+
import { RecipeSlots, RecipeVariants } from "../../styles/make-recipe-type.js";
|
|
3
|
+
export declare const inlineFeedbackRecipe: Recipe<"root", {
|
|
4
|
+
empty: {
|
|
5
|
+
true: {
|
|
6
|
+
root: {
|
|
7
|
+
visuallyHidden: "true";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
false: {};
|
|
11
|
+
};
|
|
12
|
+
color: {
|
|
13
|
+
text: {
|
|
14
|
+
root: {
|
|
15
|
+
color: "text";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
dimmed: {
|
|
19
|
+
root: {
|
|
20
|
+
color: "text-dimmed";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
accent: {
|
|
24
|
+
root: {
|
|
25
|
+
baseColor: "accent";
|
|
26
|
+
color: "base";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
danger: {
|
|
30
|
+
root: {
|
|
31
|
+
baseColor: "danger";
|
|
32
|
+
color: "base";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
caution: {
|
|
36
|
+
root: {
|
|
37
|
+
baseColor: "caution";
|
|
38
|
+
color: "base";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
neutral: {
|
|
42
|
+
root: {
|
|
43
|
+
baseColor: "neutral";
|
|
44
|
+
color: "base";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
export type InlineFeedbackVariants = RecipeVariants<typeof inlineFeedbackRecipe>;
|
|
50
|
+
export type InlineFeedbackSlots = RecipeSlots<typeof inlineFeedbackRecipe>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
+
// src/recipes/inline-feedback/inline-feedback.ts
|
|
3
|
+
const inlineFeedbackRecipe = makeRecipe({
|
|
4
|
+
base: { root: {
|
|
5
|
+
reset: "true",
|
|
6
|
+
display: "inline-flex",
|
|
7
|
+
alignItems: "center",
|
|
8
|
+
maxWidth: "100%",
|
|
9
|
+
gap: "0.5x",
|
|
10
|
+
fontSize: "inherit"
|
|
11
|
+
} },
|
|
12
|
+
variants: {
|
|
13
|
+
empty: {
|
|
14
|
+
true: { root: { visuallyHidden: "true" } },
|
|
15
|
+
false: {}
|
|
16
|
+
},
|
|
17
|
+
color: {
|
|
18
|
+
text: { root: { color: "text" } },
|
|
19
|
+
dimmed: { root: { color: "text-dimmed" } },
|
|
20
|
+
accent: { root: {
|
|
21
|
+
baseColor: "accent",
|
|
22
|
+
color: "base"
|
|
23
|
+
} },
|
|
24
|
+
danger: { root: {
|
|
25
|
+
baseColor: "danger",
|
|
26
|
+
color: "base"
|
|
27
|
+
} },
|
|
28
|
+
caution: { root: {
|
|
29
|
+
baseColor: "caution",
|
|
30
|
+
color: "base"
|
|
31
|
+
} },
|
|
32
|
+
neutral: { root: {
|
|
33
|
+
baseColor: "neutral",
|
|
34
|
+
color: "base"
|
|
35
|
+
} }
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
empty: "false",
|
|
40
|
+
color: "text"
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export { inlineFeedbackRecipe };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=inline-feedback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-feedback.js","names":[],"sources":["../../../src/recipes/inline-feedback/inline-feedback.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const inlineFeedbackRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n display: \"inline-flex\",\n alignItems: \"center\",\n maxWidth: \"100%\",\n gap: \"0.5x\",\n fontSize: \"inherit\",\n },\n },\n variants: {\n empty: {\n true: { root: { visuallyHidden: \"true\" } },\n false: {},\n },\n color: {\n text: { root: { color: \"text\" } },\n dimmed: { root: { color: \"text-dimmed\" } },\n accent: { root: { baseColor: \"accent\", color: \"base\" } },\n danger: { root: { baseColor: \"danger\", color: \"base\" } },\n caution: { root: { baseColor: \"caution\", color: \"base\" } },\n neutral: { root: { baseColor: \"neutral\", color: \"base\" } },\n },\n },\n defaultVariants: {\n empty: \"false\",\n color: \"text\",\n },\n});\n\nexport type InlineFeedbackVariants = RecipeVariants<typeof inlineFeedbackRecipe>;\nexport type InlineFeedbackSlots = RecipeSlots<typeof inlineFeedbackRecipe>;\n"],"mappings":";;AAGA,MAAa,uBAAuB,WAAW;CAC7C,MAAM,EACJ,MAAM;EACJ,OAAO;EACP,SAAS;EACT,YAAY;EACZ,UAAU;EACV,KAAK;EACL,UAAU;CACZ,EACF;CACA,UAAU;EACR,OAAO;GACL,MAAM,EAAE,MAAM,EAAE,gBAAgB,OAAO,EAAE;GACzC,OAAO,CAAC;EACV;EACA,OAAO;GACL,MAAM,EAAE,MAAM,EAAE,OAAO,OAAO,EAAE;GAChC,QAAQ,EAAE,MAAM,EAAE,OAAO,cAAc,EAAE;GACzC,QAAQ,EAAE,MAAM;IAAE,WAAW;IAAU,OAAO;GAAO,EAAE;GACvD,QAAQ,EAAE,MAAM;IAAE,WAAW;IAAU,OAAO;GAAO,EAAE;GACvD,SAAS,EAAE,MAAM;IAAE,WAAW;IAAW,OAAO;GAAO,EAAE;GACzD,SAAS,EAAE,MAAM;IAAE,WAAW;IAAW,OAAO;GAAO,EAAE;EAC3D;CACF;CACA,iBAAiB;EACf,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/input/input.d.ts
|
|
4
3
|
export declare const inputRecipe: Recipe<"root" | "input", {
|
|
5
4
|
color: {
|
|
6
5
|
accent: {
|
|
@@ -33,7 +32,7 @@ export declare const inputRecipe: Recipe<"root" | "input", {
|
|
|
33
32
|
};
|
|
34
33
|
md: {
|
|
35
34
|
input: {
|
|
36
|
-
|
|
35
|
+
minHeight: "2x";
|
|
37
36
|
};
|
|
38
37
|
};
|
|
39
38
|
};
|
|
@@ -43,17 +42,15 @@ export declare const inputRecipe: Recipe<"root" | "input", {
|
|
|
43
42
|
baseColor: "danger";
|
|
44
43
|
};
|
|
45
44
|
input: {
|
|
46
|
-
|
|
45
|
+
borderColor: "danger-divider";
|
|
47
46
|
};
|
|
48
47
|
};
|
|
49
48
|
false: {
|
|
50
49
|
input: {
|
|
51
|
-
|
|
50
|
+
borderColor: "divider";
|
|
52
51
|
};
|
|
53
52
|
};
|
|
54
53
|
};
|
|
55
54
|
}>;
|
|
56
55
|
export type InputVariants = RecipeVariants<typeof inputRecipe>;
|
|
57
|
-
export type InputSlots = RecipeSlots<typeof inputRecipe>;
|
|
58
|
-
//#endregion
|
|
59
|
-
//# sourceMappingURL=input.d.ts.map
|
|
56
|
+
export type InputSlots = RecipeSlots<typeof inputRecipe>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/input/input.ts
|
|
3
3
|
const inputRecipe = makeRecipe({
|
|
4
4
|
base: {
|
|
5
5
|
root: {
|
|
@@ -10,6 +10,8 @@ const inputRecipe = makeRecipe({
|
|
|
10
10
|
input: {
|
|
11
11
|
reset: "true",
|
|
12
12
|
transition: "colors",
|
|
13
|
+
borderWidth: "base",
|
|
14
|
+
borderStyle: "solid",
|
|
13
15
|
paddingInline: "0.75x",
|
|
14
16
|
borderRadius: "base",
|
|
15
17
|
outline: "transparent",
|
|
@@ -43,14 +45,14 @@ const inputRecipe = makeRecipe({
|
|
|
43
45
|
paddingBlock: "0.25x",
|
|
44
46
|
height: "auto"
|
|
45
47
|
} },
|
|
46
|
-
md: { input: {
|
|
48
|
+
md: { input: { minHeight: "2x" } }
|
|
47
49
|
},
|
|
48
50
|
error: {
|
|
49
51
|
true: {
|
|
50
52
|
root: { baseColor: "danger" },
|
|
51
|
-
input: {
|
|
53
|
+
input: { borderColor: "danger-divider" }
|
|
52
54
|
},
|
|
53
|
-
false: { input: {
|
|
55
|
+
false: { input: { borderColor: "divider" } }
|
|
54
56
|
}
|
|
55
57
|
},
|
|
56
58
|
defaultVariants: {
|
|
@@ -59,7 +61,6 @@ const inputRecipe = makeRecipe({
|
|
|
59
61
|
error: "false"
|
|
60
62
|
}
|
|
61
63
|
});
|
|
62
|
-
//#endregion
|
|
63
64
|
export { inputRecipe };
|
|
64
65
|
|
|
65
66
|
//# sourceMappingURL=input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","names":[],"sources":["../../../src/recipes/input/input.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const inputRecipe = makeRecipe({\n base: {\n root: {\n baseColor: \"accent\",\n display: \"flex-col\",\n width: \"fit-content\",\n },\n input: {\n reset: \"true\",\n transition: \"colors\",\n paddingInline: \"0.75x\",\n borderRadius: \"base\",\n outline: \"transparent\",\n color: \"text\",\n bgColor: \"transparent\",\n _hover: {\n bgColor: \"base-alpha\",\n },\n _focus: {\n borderColor: \"base\",\n outline: \"base-alpha-peak\",\n },\n _readOnly: {\n color: \"text-dimmed\",\n bgColor: \"section\",\n },\n _disabled: {\n color: \"base-muted\",\n bgColor: \"section\",\n cursor: \"not-allowed\",\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 height: {\n auto: {\n input: {\n paddingBlock: \"0.25x\",\n height: \"auto\",\n },\n },\n md: {\n input: {\n
|
|
1
|
+
{"version":3,"file":"input.js","names":[],"sources":["../../../src/recipes/input/input.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const inputRecipe = makeRecipe({\n base: {\n root: {\n baseColor: \"accent\",\n display: \"flex-col\",\n width: \"fit-content\",\n },\n input: {\n reset: \"true\",\n transition: \"colors\",\n borderWidth: \"base\",\n borderStyle: \"solid\",\n paddingInline: \"0.75x\",\n borderRadius: \"base\",\n outline: \"transparent\",\n color: \"text\",\n bgColor: \"transparent\",\n _hover: {\n bgColor: \"base-alpha\",\n },\n _focus: {\n borderColor: \"base\",\n outline: \"base-alpha-peak\",\n },\n _readOnly: {\n color: \"text-dimmed\",\n bgColor: \"section\",\n },\n _disabled: {\n color: \"base-muted\",\n bgColor: \"section\",\n cursor: \"not-allowed\",\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 height: {\n auto: {\n input: {\n paddingBlock: \"0.25x\",\n height: \"auto\",\n },\n },\n md: {\n input: {\n minHeight: \"2x\",\n },\n },\n },\n error: {\n true: {\n root: {\n baseColor: \"danger\",\n },\n input: {\n borderColor: \"danger-divider\",\n },\n },\n false: {\n input: {\n borderColor: \"divider\",\n },\n },\n },\n },\n defaultVariants: {\n color: \"accent\",\n height: \"md\",\n error: \"false\",\n },\n});\n\nexport type InputVariants = RecipeVariants<typeof inputRecipe>;\nexport type InputSlots = RecipeSlots<typeof inputRecipe>;\n"],"mappings":";;AAGA,MAAa,cAAc,WAAW;CACpC,MAAM;EACJ,MAAM;GACJ,WAAW;GACX,SAAS;GACT,OAAO;EACT;EACA,OAAO;GACL,OAAO;GACP,YAAY;GACZ,aAAa;GACb,aAAa;GACb,eAAe;GACf,cAAc;GACd,SAAS;GACT,OAAO;GACP,SAAS;GACT,QAAQ,EACN,SAAS,aACX;GACA,QAAQ;IACN,aAAa;IACb,SAAS;GACX;GACA,WAAW;IACT,OAAO;IACP,SAAS;GACX;GACA,WAAW;IACT,OAAO;IACP,SAAS;IACT,QAAQ;GACV;EACF;CACF;CACA,UAAU;EACR,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,QAAQ;GACN,MAAM,EACJ,OAAO;IACL,cAAc;IACd,QAAQ;GACV,EACF;GACA,IAAI,EACF,OAAO,EACL,WAAW,KACb,EACF;EACF;EACA,OAAO;GACL,MAAM;IACJ,MAAM,EACJ,WAAW,SACb;IACA,OAAO,EACL,aAAa,iBACf;GACF;GACA,OAAO,EACL,OAAO,EACL,aAAa,UACf,EACF;EACF;CACF;CACA,iBAAiB;EACf,OAAO;EACP,QAAQ;EACR,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 labelRecipe: Recipe<"root" | "errorIcon" | "error" | "description" | "errorMessage" | "fieldName" | "fieldMarker", {
|
|
3
|
+
export declare const labelRecipe: Recipe<"root" | "description" | "error" | "errorIcon" | "errorMessage" | "fieldName" | "fieldMarker", {
|
|
5
4
|
marker: {
|
|
6
5
|
text: {
|
|
7
6
|
fieldMarker: {
|
|
@@ -44,6 +43,4 @@ export declare const labelRecipe: Recipe<"root" | "errorIcon" | "error" | "descr
|
|
|
44
43
|
};
|
|
45
44
|
}>;
|
|
46
45
|
export type LabelVariants = RecipeVariants<typeof labelRecipe>;
|
|
47
|
-
export type LabelSlots = RecipeSlots<typeof labelRecipe>;
|
|
48
|
-
//#endregion
|
|
49
|
-
//# sourceMappingURL=label.d.ts.map
|
|
46
|
+
export type LabelSlots = RecipeSlots<typeof labelRecipe>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/label/label.ts
|
|
3
3
|
const labelRecipe = makeRecipe({
|
|
4
4
|
base: {
|
|
5
5
|
root: {
|
|
@@ -17,6 +17,7 @@ const labelRecipe = makeRecipe({
|
|
|
17
17
|
},
|
|
18
18
|
description: {
|
|
19
19
|
reset: "true",
|
|
20
|
+
display: "block",
|
|
20
21
|
color: "text-dimmed",
|
|
21
22
|
fontSize: "0.875x"
|
|
22
23
|
},
|
|
@@ -57,7 +58,6 @@ const labelRecipe = makeRecipe({
|
|
|
57
58
|
},
|
|
58
59
|
defaultVariants: { marker: "text" }
|
|
59
60
|
});
|
|
60
|
-
//#endregion
|
|
61
61
|
export { labelRecipe };
|
|
62
62
|
|
|
63
63
|
//# sourceMappingURL=label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","names":[],"sources":["../../../src/recipes/label/label.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const labelRecipe = makeRecipe({\n base: {\n root: {\n width: \"fit-content\",\n marginBlockEnd: \"0.25x\",\n },\n fieldName: {\n color: \"text\",\n fontWeight: \"semi-bold\",\n },\n fieldMarker: {\n color: \"text\",\n verticalAlign: \"top\",\n marginInline: \"0.25x\",\n },\n description: {\n reset: \"true\",\n color: \"text-dimmed\",\n fontSize: \"0.875x\",\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 marker: {\n text: {\n fieldMarker: {\n fontSize: \"0.75x\",\n },\n },\n asterisk: {\n fieldMarker: {\n fontSize: \"0.875x\",\n color: \"danger\",\n },\n },\n },\n variant: {\n disabled: {\n root: {\n cursor: \"not-allowed\",\n },\n fieldName: {\n color: \"text-muted\",\n },\n fieldMarker: {\n color: \"text-muted\",\n },\n description: {\n color: \"text-muted\",\n },\n },\n readonly: {\n fieldName: {\n color: \"text-dimmed\",\n },\n fieldMarker: {\n color: \"text-dimmed\",\n },\n description: {\n color: \"text-dimmed\",\n },\n },\n },\n },\n defaultVariants: {\n marker: \"text\",\n },\n});\n\nexport type LabelVariants = RecipeVariants<typeof labelRecipe>;\nexport type LabelSlots = RecipeSlots<typeof labelRecipe>;\n"],"mappings":";;AAGA,MAAa,cAAc,WAAW;CACpC,MAAM;EACJ,MAAM;GACJ,OAAO;GACP,gBAAgB;EAClB;EACA,WAAW;GACT,OAAO;GACP,YAAY;EACd;EACA,aAAa;GACX,OAAO;GACP,eAAe;GACf,cAAc;EAChB;EACA,aAAa;GACX,OAAO;GACP,OAAO;GACP,UAAU;EACZ;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,QAAQ;GACN,MAAM,EACJ,aAAa,EACX,UAAU,QACZ,EACF;GACA,UAAU,EACR,aAAa;IACX,UAAU;IACV,OAAO;GACT,EACF;EACF;EACA,SAAS;GACP,UAAU;IACR,MAAM,EACJ,QAAQ,cACV;IACA,WAAW,EACT,OAAO,aACT;IACA,aAAa,EACX,OAAO,aACT;IACA,aAAa,EACX,OAAO,aACT;GACF;GACA,UAAU;IACR,WAAW,EACT,OAAO,cACT;IACA,aAAa,EACX,OAAO,cACT;IACA,aAAa,EACX,OAAO,cACT;GACF;EACF;CACF;CACA,iBAAiB,EACf,QAAQ,OACV;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"label.js","names":[],"sources":["../../../src/recipes/label/label.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const labelRecipe = makeRecipe({\n base: {\n root: {\n width: \"fit-content\",\n marginBlockEnd: \"0.25x\",\n },\n fieldName: {\n color: \"text\",\n fontWeight: \"semi-bold\",\n },\n fieldMarker: {\n color: \"text\",\n verticalAlign: \"top\",\n marginInline: \"0.25x\",\n },\n description: {\n reset: \"true\",\n display: \"block\",\n color: \"text-dimmed\",\n fontSize: \"0.875x\",\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 marker: {\n text: {\n fieldMarker: {\n fontSize: \"0.75x\",\n },\n },\n asterisk: {\n fieldMarker: {\n fontSize: \"0.875x\",\n color: \"danger\",\n },\n },\n },\n variant: {\n disabled: {\n root: {\n cursor: \"not-allowed\",\n },\n fieldName: {\n color: \"text-muted\",\n },\n fieldMarker: {\n color: \"text-muted\",\n },\n description: {\n color: \"text-muted\",\n },\n },\n readonly: {\n fieldName: {\n color: \"text-dimmed\",\n },\n fieldMarker: {\n color: \"text-dimmed\",\n },\n description: {\n color: \"text-dimmed\",\n },\n },\n },\n },\n defaultVariants: {\n marker: \"text\",\n },\n});\n\nexport type LabelVariants = RecipeVariants<typeof labelRecipe>;\nexport type LabelSlots = RecipeSlots<typeof labelRecipe>;\n"],"mappings":";;AAGA,MAAa,cAAc,WAAW;CACpC,MAAM;EACJ,MAAM;GACJ,OAAO;GACP,gBAAgB;EAClB;EACA,WAAW;GACT,OAAO;GACP,YAAY;EACd;EACA,aAAa;GACX,OAAO;GACP,eAAe;GACf,cAAc;EAChB;EACA,aAAa;GACX,OAAO;GACP,SAAS;GACT,OAAO;GACP,UAAU;EACZ;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,QAAQ;GACN,MAAM,EACJ,aAAa,EACX,UAAU,QACZ,EACF;GACA,UAAU,EACR,aAAa;IACX,UAAU;IACV,OAAO;GACT,EACF;EACF;EACA,SAAS;GACP,UAAU;IACR,MAAM,EACJ,QAAQ,cACV;IACA,WAAW,EACT,OAAO,aACT;IACA,aAAa,EACX,OAAO,aACT;IACA,aAAa,EACX,OAAO,aACT;GACF;GACA,UAAU;IACR,WAAW,EACT,OAAO,cACT;IACA,aAAa,EACX,OAAO,cACT;IACA,aAAa,EACX,OAAO,cACT;GACF;EACF;CACF;CACA,iBAAiB,EACf,QAAQ,OACV;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/menu/menu.d.ts
|
|
4
3
|
export declare const menuitemRecipe: Recipe<"root", {
|
|
5
4
|
color: {
|
|
6
5
|
accent: {
|
|
@@ -26,6 +25,4 @@ export declare const menuitemRecipe: Recipe<"root", {
|
|
|
26
25
|
};
|
|
27
26
|
}>;
|
|
28
27
|
export type MenuitemVariants = RecipeVariants<typeof menuitemRecipe>;
|
|
29
|
-
export type MenuitemSlots = RecipeSlots<typeof menuitemRecipe>;
|
|
30
|
-
//#endregion
|
|
31
|
-
//# sourceMappingURL=menu.d.ts.map
|
|
28
|
+
export type MenuitemSlots = RecipeSlots<typeof menuitemRecipe>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
2
|
-
|
|
2
|
+
// src/recipes/menu/menu.ts
|
|
3
3
|
const menuitemRecipe = makeRecipe({
|
|
4
4
|
base: { root: {
|
|
5
5
|
reset: "true",
|
|
@@ -11,7 +11,10 @@ const menuitemRecipe = makeRecipe({
|
|
|
11
11
|
paddingBlock: "0.25x",
|
|
12
12
|
userSelect: "none",
|
|
13
13
|
bgColor: "transparent",
|
|
14
|
-
_focusVisible: {
|
|
14
|
+
_focusVisible: {
|
|
15
|
+
outline: "focus-ring",
|
|
16
|
+
outlineOffset: "-1px"
|
|
17
|
+
},
|
|
15
18
|
_hover: { bgColor: "base-alpha" },
|
|
16
19
|
_active: { bgColor: "base-alpha-peak" },
|
|
17
20
|
_disabled: {
|
|
@@ -28,7 +31,6 @@ const menuitemRecipe = makeRecipe({
|
|
|
28
31
|
} },
|
|
29
32
|
defaultVariants: { color: "neutral" }
|
|
30
33
|
});
|
|
31
|
-
//#endregion
|
|
32
34
|
export { menuitemRecipe };
|
|
33
35
|
|
|
34
36
|
//# sourceMappingURL=menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","names":[],"sources":["../../../src/recipes/menu/menu.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const menuitemRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n color: \"base\",\n display: \"flex\",\n transition: \"colors\",\n borderRadius: \"base\",\n paddingInline: \"0.75x\",\n paddingBlock: \"0.25x\",\n userSelect: \"none\",\n bgColor: \"transparent\",\n _focusVisible: {\n outline: \"focus-ring\",\n },\n _hover: {\n bgColor: \"base-alpha\",\n },\n _active: {\n bgColor: \"base-alpha-peak\",\n },\n _disabled: {\n cursor: \"not-allowed\",\n color: \"base-muted\",\n bgColor: \"transparent\",\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});\nexport type MenuitemVariants = RecipeVariants<typeof menuitemRecipe>;\nexport type MenuitemSlots = RecipeSlots<typeof menuitemRecipe>;\n"],"mappings":";;AAGA,MAAa,iBAAiB,WAAW;CACvC,MAAM,EACJ,MAAM;EACJ,OAAO;EACP,OAAO;EACP,SAAS;EACT,YAAY;EACZ,cAAc;EACd,eAAe;EACf,cAAc;EACd,YAAY;EACZ,SAAS;EACT,eAAe,
|
|
1
|
+
{"version":3,"file":"menu.js","names":[],"sources":["../../../src/recipes/menu/menu.ts"],"sourcesContent":["import { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots, type RecipeVariants } from \"~/styles/make-recipe-type\";\n\nexport const menuitemRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n color: \"base\",\n display: \"flex\",\n transition: \"colors\",\n borderRadius: \"base\",\n paddingInline: \"0.75x\",\n paddingBlock: \"0.25x\",\n userSelect: \"none\",\n bgColor: \"transparent\",\n _focusVisible: {\n outline: \"focus-ring\",\n outlineOffset: \"-1px\",\n },\n _hover: {\n bgColor: \"base-alpha\",\n },\n _active: {\n bgColor: \"base-alpha-peak\",\n },\n _disabled: {\n cursor: \"not-allowed\",\n color: \"base-muted\",\n bgColor: \"transparent\",\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});\nexport type MenuitemVariants = RecipeVariants<typeof menuitemRecipe>;\nexport type MenuitemSlots = RecipeSlots<typeof menuitemRecipe>;\n"],"mappings":";;AAGA,MAAa,iBAAiB,WAAW;CACvC,MAAM,EACJ,MAAM;EACJ,OAAO;EACP,OAAO;EACP,SAAS;EACT,YAAY;EACZ,cAAc;EACd,eAAe;EACf,cAAc;EACd,YAAY;EACZ,SAAS;EACT,eAAe;GACb,SAAS;GACT,eAAe;EACjB;EACA,QAAQ,EACN,SAAS,aACX;EACA,SAAS,EACP,SAAS,kBACX;EACA,WAAW;GACT,QAAQ;GACR,OAAO;GACP,SAAS;EACX;CACF,EACF;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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Recipe } from "../../styles/make-recipe.js";
|
|
2
|
+
import { RecipeSlots } from "../../styles/make-recipe-type.js";
|
|
3
|
+
import { ComboboxVariants } from "../combobox/combobox.js";
|
|
4
|
+
declare const structureRecipe: Recipe<"root" | "item" | "input" | "tags" | "itemIndicator", {}>;
|
|
5
|
+
export type MultiComboboxVariants = ComboboxVariants;
|
|
6
|
+
export type MultiComboboxSlots = RecipeSlots<typeof structureRecipe> | "list";
|
|
7
|
+
export declare function multiComboboxRecipe(variants?: MultiComboboxVariants): Record<MultiComboboxSlots, string>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { cc } from "../../logics/cc/cc.js";
|
|
2
|
+
import { makeRecipe } from "../../styles/make-recipe.js";
|
|
3
|
+
import { comboboxRecipe } from "../combobox/combobox.js";
|
|
4
|
+
// src/recipes/multi-combobox/multi-combobox.ts
|
|
5
|
+
const structureRecipe = makeRecipe({
|
|
6
|
+
base: {
|
|
7
|
+
root: {
|
|
8
|
+
reset: "true",
|
|
9
|
+
minWidth: "0"
|
|
10
|
+
},
|
|
11
|
+
tags: {
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexWrap: "wrap",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
gap: "0.25x",
|
|
16
|
+
minWidth: "0",
|
|
17
|
+
paddingBlockEnd: "0.125x"
|
|
18
|
+
},
|
|
19
|
+
input: {
|
|
20
|
+
minWidth: "0",
|
|
21
|
+
width: "100%"
|
|
22
|
+
},
|
|
23
|
+
item: {
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
gap: "0.5x"
|
|
26
|
+
},
|
|
27
|
+
itemIndicator: {
|
|
28
|
+
marginInlineStart: "auto",
|
|
29
|
+
width: "1x",
|
|
30
|
+
height: "1x",
|
|
31
|
+
flexShrink: "0",
|
|
32
|
+
position: "relative",
|
|
33
|
+
_selected: { icon: "check" }
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
variants: {}
|
|
37
|
+
});
|
|
38
|
+
function multiComboboxRecipe(variants = {}) {
|
|
39
|
+
const combobox = comboboxRecipe(variants);
|
|
40
|
+
const structure = structureRecipe();
|
|
41
|
+
return {
|
|
42
|
+
root: cc(combobox.root, structure.root),
|
|
43
|
+
tags: structure.tags,
|
|
44
|
+
input: cc(combobox.input, structure.input),
|
|
45
|
+
list: combobox.list,
|
|
46
|
+
item: cc(combobox.item, structure.item),
|
|
47
|
+
itemIndicator: structure.itemIndicator
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export { multiComboboxRecipe };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=multi-combobox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-combobox.js","names":[],"sources":["../../../src/recipes/multi-combobox/multi-combobox.ts"],"sourcesContent":["import { cc } from \"~/logics/cc\";\nimport { makeRecipe } from \"~/styles/make-recipe\";\nimport { type RecipeSlots } from \"~/styles/make-recipe-type\";\nimport { comboboxRecipe, type ComboboxVariants } from \"../combobox\";\n\nconst structureRecipe = makeRecipe({\n base: {\n root: {\n reset: \"true\",\n minWidth: \"0\",\n },\n tags: {\n display: \"flex\",\n flexWrap: \"wrap\",\n alignItems: \"center\",\n gap: \"0.25x\",\n minWidth: \"0\",\n paddingBlockEnd: \"0.125x\",\n },\n input: {\n minWidth: \"0\",\n width: \"100%\",\n },\n item: {\n alignItems: \"center\",\n gap: \"0.5x\",\n },\n itemIndicator: {\n marginInlineStart: \"auto\",\n width: \"1x\",\n height: \"1x\",\n flexShrink: \"0\",\n position: \"relative\",\n _selected: {\n icon: \"check\",\n },\n },\n },\n variants: {},\n});\n\nexport type MultiComboboxVariants = ComboboxVariants;\nexport type MultiComboboxSlots = RecipeSlots<typeof structureRecipe> | \"list\";\n\nexport function multiComboboxRecipe(variants: MultiComboboxVariants = {}): Record<MultiComboboxSlots, string> {\n const combobox = comboboxRecipe(variants);\n const structure = structureRecipe();\n return {\n root: cc(combobox.root, structure.root),\n tags: structure.tags,\n input: cc(combobox.input, structure.input),\n list: combobox.list,\n item: cc(combobox.item, structure.item),\n itemIndicator: structure.itemIndicator,\n };\n}\n"],"mappings":";;;;AAKA,MAAM,kBAAkB,WAAW;CACjC,MAAM;EACJ,MAAM;GACJ,OAAO;GACP,UAAU;EACZ;EACA,MAAM;GACJ,SAAS;GACT,UAAU;GACV,YAAY;GACZ,KAAK;GACL,UAAU;GACV,iBAAiB;EACnB;EACA,OAAO;GACL,UAAU;GACV,OAAO;EACT;EACA,MAAM;GACJ,YAAY;GACZ,KAAK;EACP;EACA,eAAe;GACb,mBAAmB;GACnB,OAAO;GACP,QAAQ;GACR,YAAY;GACZ,UAAU;GACV,WAAW,EACT,MAAM,QACR;EACF;CACF;CACA,UAAU,CAAC;AACb,CAAC;AAKD,SAAgB,oBAAoB,WAAkC,CAAC,GAAuC;CAC5G,MAAM,WAAW,eAAe,QAAQ;CACxC,MAAM,YAAY,gBAAgB;CAClC,OAAO;EACL,MAAM,GAAG,SAAS,MAAM,UAAU,IAAI;EACtC,MAAM,UAAU;EAChB,OAAO,GAAG,SAAS,OAAO,UAAU,KAAK;EACzC,MAAM,SAAS;EACf,MAAM,GAAG,SAAS,MAAM,UAAU,IAAI;EACtC,eAAe,UAAU;CAC3B;AACF"}
|
|
@@ -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/paragraph/paragraph.d.ts
|
|
4
3
|
export declare const paragraphRecipe: Recipe<"root", {
|
|
5
4
|
color: {
|
|
6
5
|
text: {
|
|
@@ -53,6 +52,4 @@ export declare const paragraphRecipe: Recipe<"root", {
|
|
|
53
52
|
};
|
|
54
53
|
}>;
|
|
55
54
|
export type ParagraphVariants = RecipeVariants<typeof paragraphRecipe>;
|
|
56
|
-
export type ParagraphSlots = RecipeSlots<typeof paragraphRecipe>;
|
|
57
|
-
//#endregion
|
|
58
|
-
//# sourceMappingURL=paragraph.d.ts.map
|
|
55
|
+
export type ParagraphSlots = RecipeSlots<typeof paragraphRecipe>;
|