@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.
Files changed (224) hide show
  1. package/dist/index.d.ts +14 -2
  2. package/dist/index.js +17 -5
  3. package/dist/logics/avatar-placeholder/get-avatar-placeholder.d.ts +1 -4
  4. package/dist/logics/avatar-placeholder/get-avatar-placeholder.js +1 -2
  5. package/dist/logics/avatar-placeholder/should-show-avatar-placeholder.d.ts +2 -5
  6. package/dist/logics/avatar-placeholder/should-show-avatar-placeholder.js +1 -2
  7. package/dist/logics/avatar-placeholder/should-show-avatar-placeholder.js.map +1 -1
  8. package/dist/logics/bool/to-bool.d.ts +1 -4
  9. package/dist/logics/bool/to-bool.js +1 -2
  10. package/dist/logics/bool/to-strbool.d.ts +1 -4
  11. package/dist/logics/bool/to-strbool.js +1 -2
  12. package/dist/logics/button-control/button-control.d.ts +16 -0
  13. package/dist/logics/button-control/button-control.js +26 -0
  14. package/dist/logics/button-control/button-control.js.map +1 -0
  15. package/dist/logics/cc/cc-all.d.ts +2 -5
  16. package/dist/logics/cc/cc-all.js +1 -2
  17. package/dist/logics/cc/cc-all.js.map +1 -1
  18. package/dist/logics/cc/cc.d.ts +2 -5
  19. package/dist/logics/cc/cc.js +1 -2
  20. package/dist/logics/cc/cc.js.map +1 -1
  21. package/dist/logics/checkbox-control/checkbox-control.d.ts +5 -8
  22. package/dist/logics/checkbox-control/checkbox-control.js +2 -3
  23. package/dist/logics/checkbox-control/checkbox-control.js.map +1 -1
  24. package/dist/logics/combobox-control/combobox-control.d.ts +100 -0
  25. package/dist/logics/combobox-control/combobox-control.js +100 -0
  26. package/dist/logics/combobox-control/combobox-control.js.map +1 -0
  27. package/dist/logics/combobox-control/combobox-filter.d.ts +13 -0
  28. package/dist/logics/combobox-control/combobox-filter.js +11 -0
  29. package/dist/logics/combobox-control/combobox-filter.js.map +1 -0
  30. package/dist/logics/combobox-control/combobox-navigation.d.ts +2 -0
  31. package/dist/logics/combobox-control/combobox-navigation.js +10 -0
  32. package/dist/logics/combobox-control/combobox-navigation.js.map +1 -0
  33. package/dist/logics/dialog-control/dialog-control.d.ts +5 -8
  34. package/dist/logics/dialog-control/dialog-control.js +1 -2
  35. package/dist/logics/dialog-control/dialog-control.js.map +1 -1
  36. package/dist/logics/input-control/input-control.d.ts +3 -6
  37. package/dist/logics/input-control/input-control.js +1 -2
  38. package/dist/logics/input-control/input-control.js.map +1 -1
  39. package/dist/logics/label-marker/label-marker.d.ts +2 -5
  40. package/dist/logics/label-marker/label-marker.js +1 -2
  41. package/dist/logics/label-marker/label-marker.js.map +1 -1
  42. package/dist/logics/menu-control/menu-control.d.ts +5 -8
  43. package/dist/logics/menu-control/menu-control.js +1 -2
  44. package/dist/logics/menu-control/menu-control.js.map +1 -1
  45. package/dist/logics/ms/ms-all.d.ts +3 -5
  46. package/dist/logics/ms/ms-all.js +1 -2
  47. package/dist/logics/ms/ms-all.js.map +1 -1
  48. package/dist/logics/multi-combobox-control/multi-combobox-control.d.ts +58 -0
  49. package/dist/logics/multi-combobox-control/multi-combobox-control.js +76 -0
  50. package/dist/logics/multi-combobox-control/multi-combobox-control.js.map +1 -0
  51. package/dist/logics/multi-combobox-control/multi-combobox-focus.d.ts +15 -0
  52. package/dist/logics/multi-combobox-control/multi-combobox-focus.js +46 -0
  53. package/dist/logics/multi-combobox-control/multi-combobox-focus.js.map +1 -0
  54. package/dist/logics/popover-control/popover-control.d.ts +5 -6
  55. package/dist/logics/popover-control/popover-control.js +6 -3
  56. package/dist/logics/popover-control/popover-control.js.map +1 -1
  57. package/dist/logics/progress-control/progress-control.d.ts +4 -7
  58. package/dist/logics/progress-control/progress-control.js +2 -3
  59. package/dist/logics/progress-control/progress-control.js.map +1 -1
  60. package/dist/logics/radio-control/radio-control.d.ts +4 -7
  61. package/dist/logics/radio-control/radio-control.js +1 -2
  62. package/dist/logics/radio-control/radio-control.js.map +1 -1
  63. package/dist/logics/radiogroup-control/radiogroup-control.d.ts +3 -6
  64. package/dist/logics/radiogroup-control/radiogroup-control.js +1 -2
  65. package/dist/logics/radiogroup-control/radiogroup-control.js.map +1 -1
  66. package/dist/logics/segmented-control/segmented-control.d.ts +3 -6
  67. package/dist/logics/segmented-control/segmented-control.js +2 -3
  68. package/dist/logics/segmented-control/segmented-control.js.map +1 -1
  69. package/dist/logics/tabs-control/tabs-control.d.ts +5 -8
  70. package/dist/logics/tabs-control/tabs-control.js +1 -2
  71. package/dist/logics/tabs-control/tabs-control.js.map +1 -1
  72. package/dist/logics/tabs-control/tabs-keymap.js +1 -2
  73. package/dist/logics/tabs-control/tabs-keymap.js.map +1 -1
  74. package/dist/logics/tooltip-control/tooltip-control.d.ts +3 -6
  75. package/dist/logics/tooltip-control/tooltip-control.js +1 -2
  76. package/dist/logics/tooltip-control/tooltip-control.js.map +1 -1
  77. package/dist/recipes/alert/alert.d.ts +4 -7
  78. package/dist/recipes/alert/alert.js +6 -9
  79. package/dist/recipes/alert/alert.js.map +1 -1
  80. package/dist/recipes/anchor/anchor.d.ts +1 -4
  81. package/dist/recipes/anchor/anchor.js +1 -2
  82. package/dist/recipes/avatar/avatar.d.ts +1 -4
  83. package/dist/recipes/avatar/avatar.js +1 -2
  84. package/dist/recipes/blockquote/blockquote.d.ts +1 -4
  85. package/dist/recipes/blockquote/blockquote.js +4 -3
  86. package/dist/recipes/blockquote/blockquote.js.map +1 -1
  87. package/dist/recipes/button/button.d.ts +16 -7
  88. package/dist/recipes/button/button.js +39 -16
  89. package/dist/recipes/button/button.js.map +1 -1
  90. package/dist/recipes/checkbox/checkbox.d.ts +4 -27
  91. package/dist/recipes/checkbox/checkbox.js +14 -20
  92. package/dist/recipes/checkbox/checkbox.js.map +1 -1
  93. package/dist/recipes/code/code.d.ts +1 -4
  94. package/dist/recipes/code/code.js +1 -2
  95. package/dist/recipes/combobox/combobox.d.ts +8 -0
  96. package/dist/recipes/combobox/combobox.js +34 -0
  97. package/dist/recipes/combobox/combobox.js.map +1 -0
  98. package/dist/recipes/container/container.d.ts +1 -4
  99. package/dist/recipes/container/container.js +1 -2
  100. package/dist/recipes/details/details.d.ts +4 -7
  101. package/dist/recipes/details/details.js +10 -6
  102. package/dist/recipes/details/details.js.map +1 -1
  103. package/dist/recipes/dialog/dialog.d.ts +4 -5
  104. package/dist/recipes/dialog/dialog.js +6 -3
  105. package/dist/recipes/dialog/dialog.js.map +1 -1
  106. package/dist/recipes/dl/dl.d.ts +1 -4
  107. package/dist/recipes/dl/dl.js +6 -3
  108. package/dist/recipes/dl/dl.js.map +1 -1
  109. package/dist/recipes/drawer/drawer.d.ts +1 -4
  110. package/dist/recipes/drawer/drawer.js +1 -2
  111. package/dist/recipes/fieldset/fieldset.d.ts +1 -4
  112. package/dist/recipes/fieldset/fieldset.js +4 -3
  113. package/dist/recipes/fieldset/fieldset.js.map +1 -1
  114. package/dist/recipes/focus-ring/focus-ring.d.ts +1 -4
  115. package/dist/recipes/focus-ring/focus-ring.js +1 -2
  116. package/dist/recipes/heading/heading.d.ts +1 -4
  117. package/dist/recipes/heading/heading.js +1 -2
  118. package/dist/recipes/hr/hr.d.ts +1 -4
  119. package/dist/recipes/hr/hr.js +4 -3
  120. package/dist/recipes/hr/hr.js.map +1 -1
  121. package/dist/recipes/inline-feedback/inline-feedback.d.ts +50 -0
  122. package/dist/recipes/inline-feedback/inline-feedback.js +45 -0
  123. package/dist/recipes/inline-feedback/inline-feedback.js.map +1 -0
  124. package/dist/recipes/input/input.d.ts +4 -7
  125. package/dist/recipes/input/input.js +6 -5
  126. package/dist/recipes/input/input.js.map +1 -1
  127. package/dist/recipes/label/label.d.ts +2 -5
  128. package/dist/recipes/label/label.js +2 -2
  129. package/dist/recipes/label/label.js.map +1 -1
  130. package/dist/recipes/menu/menu.d.ts +1 -4
  131. package/dist/recipes/menu/menu.js +5 -3
  132. package/dist/recipes/menu/menu.js.map +1 -1
  133. package/dist/recipes/multi-combobox/multi-combobox.d.ts +8 -0
  134. package/dist/recipes/multi-combobox/multi-combobox.js +52 -0
  135. package/dist/recipes/multi-combobox/multi-combobox.js.map +1 -0
  136. package/dist/recipes/paragraph/paragraph.d.ts +1 -4
  137. package/dist/recipes/paragraph/paragraph.js +1 -2
  138. package/dist/recipes/popover/popover.d.ts +1 -4
  139. package/dist/recipes/popover/popover.js +4 -4
  140. package/dist/recipes/popover/popover.js.map +1 -1
  141. package/dist/recipes/progress/progress.d.ts +2 -5
  142. package/dist/recipes/progress/progress.js +1 -2
  143. package/dist/recipes/radio/radio.d.ts +4 -7
  144. package/dist/recipes/radio/radio.js +7 -6
  145. package/dist/recipes/radio/radio.js.map +1 -1
  146. package/dist/recipes/radiogroup/radiogroup.d.ts +1 -4
  147. package/dist/recipes/radiogroup/radiogroup.js +1 -2
  148. package/dist/recipes/section/section.d.ts +4 -5
  149. package/dist/recipes/section/section.js +6 -3
  150. package/dist/recipes/section/section.js.map +1 -1
  151. package/dist/recipes/segmented-control/segmented-control.d.ts +1 -4
  152. package/dist/recipes/segmented-control/segmented-control.js +11 -6
  153. package/dist/recipes/segmented-control/segmented-control.js.map +1 -1
  154. package/dist/recipes/select/select.d.ts +3 -6
  155. package/dist/recipes/select/select.js +6 -5
  156. package/dist/recipes/select/select.js.map +1 -1
  157. package/dist/recipes/skip-link/skip-link.d.ts +5 -0
  158. package/dist/recipes/skip-link/skip-link.js +9 -0
  159. package/dist/recipes/skip-link/skip-link.js.map +1 -0
  160. package/dist/recipes/status-icon/status-icon.d.ts +55 -0
  161. package/dist/recipes/status-icon/status-icon.js +39 -0
  162. package/dist/recipes/status-icon/status-icon.js.map +1 -0
  163. package/dist/recipes/table/table.d.ts +7 -8
  164. package/dist/recipes/table/table.js +17 -7
  165. package/dist/recipes/table/table.js.map +1 -1
  166. package/dist/recipes/tabs/tabs.d.ts +1 -4
  167. package/dist/recipes/tabs/tabs.js +4 -3
  168. package/dist/recipes/tabs/tabs.js.map +1 -1
  169. package/dist/recipes/tag/tag.d.ts +64 -0
  170. package/dist/recipes/tag/tag.js +86 -0
  171. package/dist/recipes/tag/tag.js.map +1 -0
  172. package/dist/recipes/text/text.d.ts +52 -0
  173. package/dist/recipes/text/text.js +42 -0
  174. package/dist/recipes/text/text.js.map +1 -0
  175. package/dist/recipes/visually-hidden/visually-hidden.d.ts +1 -4
  176. package/dist/recipes/visually-hidden/visually-hidden.js +1 -2
  177. package/dist/style.css +1 -1
  178. package/dist/styles/css-vars.d.ts +1 -4
  179. package/dist/styles/css-vars.js +1 -2
  180. package/dist/styles/make-recipe-type.d.ts +1 -4
  181. package/dist/styles/make-recipe.d.ts +2 -5
  182. package/dist/styles/make-recipe.js +3 -4
  183. package/dist/styles/make-recipe.js.map +1 -1
  184. package/dist/styles/primitive-css/{active.module.js → active.module.css.js} +2 -3
  185. package/dist/styles/primitive-css/active.module.css.js.map +1 -0
  186. package/dist/styles/primitive-css/{base.module.js → base.module.css.js} +3 -3
  187. package/dist/styles/primitive-css/base.module.css.js.map +1 -0
  188. package/dist/styles/primitive-css/checked.module.css.js +11 -0
  189. package/dist/styles/primitive-css/checked.module.css.js.map +1 -0
  190. package/dist/styles/primitive-css/composite.module.css.js +5 -0
  191. package/dist/styles/primitive-css/composite.module.css.js.map +1 -0
  192. package/dist/styles/primitive-css/{disabled.module.js → disabled.module.css.js} +2 -3
  193. package/dist/styles/primitive-css/disabled.module.css.js.map +1 -0
  194. package/dist/styles/primitive-css/focus.module.css.js +10 -0
  195. package/dist/styles/primitive-css/focus.module.css.js.map +1 -0
  196. package/dist/styles/primitive-css/{hover.module.js → hover.module.css.js} +4 -4
  197. package/dist/styles/primitive-css/hover.module.css.js.map +1 -0
  198. package/dist/styles/primitive-css/icon.module.css.js +13 -0
  199. package/dist/styles/primitive-css/icon.module.css.js.map +1 -0
  200. package/dist/styles/primitive-css/{misc.module.js → misc.module.css.js} +8 -7
  201. package/dist/styles/primitive-css/misc.module.css.js.map +1 -0
  202. package/dist/styles/primitive-css/{neutral.module.js → neutral.module.css.js} +29 -13
  203. package/dist/styles/primitive-css/neutral.module.css.js.map +1 -0
  204. package/dist/styles/primitive-css/{pseudo-element.module.js → pseudo-element.module.css.js} +2 -3
  205. package/dist/styles/primitive-css/pseudo-element.module.css.js.map +1 -0
  206. package/dist/styles/primitive.gen.d.ts +80 -21
  207. package/dist/styles/primitive.gen.js +77 -38
  208. package/dist/styles/primitive.gen.js.map +1 -1
  209. package/package.json +5 -5
  210. package/dist/styles/primitive-css/active.module.js.map +0 -1
  211. package/dist/styles/primitive-css/base.module.js.map +0 -1
  212. package/dist/styles/primitive-css/checked.module.js +0 -10
  213. package/dist/styles/primitive-css/checked.module.js.map +0 -1
  214. package/dist/styles/primitive-css/composite.module.js +0 -6
  215. package/dist/styles/primitive-css/composite.module.js.map +0 -1
  216. package/dist/styles/primitive-css/disabled.module.js.map +0 -1
  217. package/dist/styles/primitive-css/focus.module.js +0 -10
  218. package/dist/styles/primitive-css/focus.module.js.map +0 -1
  219. package/dist/styles/primitive-css/hover.module.js.map +0 -1
  220. package/dist/styles/primitive-css/icon.module.js +0 -11
  221. package/dist/styles/primitive-css/icon.module.js.map +0 -1
  222. package/dist/styles/primitive-css/misc.module.js.map +0 -1
  223. package/dist/styles/primitive-css/neutral.module.js.map +0 -1
  224. 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
- //#region src/recipes/anchor/anchor.ts
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
- //#region src/recipes/avatar/avatar.ts
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
- //#region src/recipes/blockquote/blockquote.ts
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
- borderInlineStart: "base-bottom",
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 borderInlineStart: \"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,mBAAmB;GACnB,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
+ {"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
- //#region src/recipes/button/button.d.ts
4
- export declare const buttonRecipe: Recipe<"root", {
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
- border: "divider";
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
- border: "base";
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
- //#region src/recipes/button/button.ts
2
+ // src/recipes/button/button.ts
3
3
  const buttonRecipe = makeRecipe({
4
- base: { root: {
5
- reset: "true",
6
- borderRadius: "base",
7
- display: "inline-flex",
8
- alignItems: "center",
9
- justifyContent: "center",
10
- gap: "0.5x",
11
- height: "2x",
12
- transition: "colors",
13
- _focusVisible: { outline: "focus-ring" },
14
- _disabled: { cursor: "not-allowed" }
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
- border: "divider",
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
- border: "base",
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 gap: \"0.5x\",\n height: \"2x\",\n transition: \"colors\",\n _focusVisible: {\n outline: \"focus-ring\",\n },\n _disabled: {\n cursor: \"not-allowed\",\n },\n },\n },\n variants: {\n variant: {\n solid: {\n root: {\n color: \"base-fg\",\n bgColor: \"base\",\n _hover: {\n bgColor: \"base-top\",\n },\n _active: {\n bgColor: \"base-bottom\",\n },\n _disabled: {\n color: \"base-fg-muted\",\n bgColor: \"base-muted\",\n },\n },\n },\n subtle: {\n root: {\n color: \"base\",\n bgColor: \"section\",\n border: \"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 border: \"base\",\n _hover: {\n bgColor: \"base-alpha\",\n },\n _active: {\n bgColor: \"base-alpha-peak\",\n },\n _disabled: {\n color: \"base-muted\",\n bgColor: \"transparent\",\n borderColor: \"base-muted\",\n },\n },\n },\n ghost: {\n root: {\n color: \"base\",\n bgColor: \"transparent\",\n _hover: {\n bgColor: \"base-alpha\",\n },\n _active: {\n bgColor: \"base-alpha-peak\",\n },\n _disabled: {\n color: \"base-muted\",\n bgColor: \"transparent\",\n },\n },\n },\n },\n color: {\n accent: { root: { baseColor: \"accent\" } },\n danger: { root: { baseColor: \"danger\" } },\n caution: { root: { baseColor: \"caution\" } },\n neutral: { root: { baseColor: \"neutral\" } },\n },\n shape: {\n rectangle: {\n root: {\n paddingInline: \"1x\",\n },\n },\n square: {\n root: {\n justifyContent: \"center\",\n aspectRatio: \"1:1\",\n },\n },\n circle: {\n root: {\n justifyContent: \"center\",\n aspectRatio: \"1:1\",\n borderRadius: \"full\",\n },\n },\n },\n },\n defaultVariants: {\n variant: \"solid\",\n color: \"accent\",\n shape: \"rectangle\",\n },\n});\n\nexport type ButtonVariants = RecipeVariants<typeof buttonRecipe>;\nexport type ButtonSlots = RecipeSlots<typeof buttonRecipe>;\n"],"mappings":";;AAGA,MAAa,eAAe,WAAW;CACrC,MAAM,EACJ,MAAM;EACJ,OAAO;EACP,cAAc;EACd,SAAS;EACT,YAAY;EACZ,gBAAgB;EAChB,KAAK;EACL,QAAQ;EACR,YAAY;EACZ,eAAe,EACb,SAAS,aACX;EACA,WAAW,EACT,QAAQ,cACV;CACF,EACF;CACA,UAAU;EACR,SAAS;GACP,OAAO,EACL,MAAM;IACJ,OAAO;IACP,SAAS;IACT,QAAQ,EACN,SAAS,WACX;IACA,SAAS,EACP,SAAS,cACX;IACA,WAAW;KACT,OAAO;KACP,SAAS;IACX;GACF,EACF;GACA,QAAQ,EACN,MAAM;IACJ,OAAO;IACP,SAAS;IACT,QAAQ;IACR,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,QAAQ;IACR,QAAQ,EACN,SAAS,aACX;IACA,SAAS,EACP,SAAS,kBACX;IACA,WAAW;KACT,OAAO;KACP,SAAS;KACT,aAAa;IACf;GACF,EACF;GACA,OAAO,EACL,MAAM;IACJ,OAAO;IACP,SAAS;IACT,QAAQ,EACN,SAAS,aACX;IACA,SAAS,EACP,SAAS,kBACX;IACA,WAAW;KACT,OAAO;KACP,SAAS;IACX;GACF,EACF;EACF;EACA,OAAO;GACL,QAAQ,EAAE,MAAM,EAAE,WAAW,SAAS,EAAE;GACxC,QAAQ,EAAE,MAAM,EAAE,WAAW,SAAS,EAAE;GACxC,SAAS,EAAE,MAAM,EAAE,WAAW,UAAU,EAAE;GAC1C,SAAS,EAAE,MAAM,EAAE,WAAW,UAAU,EAAE;EAC5C;EACA,OAAO;GACL,WAAW,EACT,MAAM,EACJ,eAAe,KACjB,EACF;GACA,QAAQ,EACN,MAAM;IACJ,gBAAgB;IAChB,aAAa;GACf,EACF;GACA,QAAQ,EACN,MAAM;IACJ,gBAAgB;IAChB,aAAa;IACb,cAAc;GAChB,EACF;EACF;CACF;CACA,iBAAiB;EACf,SAAS;EACT,OAAO;EACP,OAAO;CACT;AACF,CAAC"}
1
+ {"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
- //#region src/recipes/checkbox/checkbox.d.ts
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
- border: "danger-divider";
30
+ borderColor: "danger-divider";
52
31
  };
53
32
  };
54
33
  false: {
55
34
  checkbox: {
56
- border: "divider";
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
- //#region src/recipes/checkbox/checkbox.ts
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
- border: "base-top"
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
- border: "danger-divider"
68
+ borderColor: "danger-divider"
73
69
  } },
74
- false: { checkbox: { border: "divider" } }
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 border: \"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 icon: {\n check: {\n checkbox: {\n _checked: {\n border: \"base\",\n icon: \"check\",\n },\n },\n },\n indeterminate: {\n checkbox: {\n border: \"base\",\n icon: \"indeterminate\",\n _checked: {\n border: \"base\",\n icon: \"check\",\n },\n },\n },\n },\n error: {\n true: {\n checkbox: {\n baseColor: \"danger\",\n border: \"danger-divider\",\n },\n },\n false: {\n checkbox: {\n border: \"divider\",\n },\n },\n },\n },\n defaultVariants: {\n color: \"accent\",\n icon: \"check\",\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,eAAe,EACb,SAAS,aACX;GACA,QAAQ;IACN,SAAS;IACT,QAAQ;GACV;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,MAAM;GACJ,OAAO,EACL,UAAU,EACR,UAAU;IACR,QAAQ;IACR,MAAM;GACR,EACF,EACF;GACA,eAAe,EACb,UAAU;IACR,QAAQ;IACR,MAAM;IACN,UAAU;KACR,QAAQ;KACR,MAAM;IACR;GACF,EACF;EACF;EACA,OAAO;GACL,MAAM,EACJ,UAAU;IACR,WAAW;IACX,QAAQ;GACV,EACF;GACA,OAAO,EACL,UAAU,EACR,QAAQ,UACV,EACF;EACF;CACF;CACA,iBAAiB;EACf,OAAO;EACP,MAAM;EACN,OAAO;CACT;AACF,CAAC"}
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
- //#region src/recipes/code/code.ts
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
- //#region src/recipes/container/container.ts
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
- borderBlockStart: "divider";
9
- borderBlockEnd: "divider";
7
+ borderBlockStartWidth: "base";
8
+ borderBlockEndWidth: "base";
10
9
  };
11
10
  };
12
11
  "block-end": {
13
12
  root: {
14
- borderBlockEnd: "divider";
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
- //#region src/recipes/details/details.ts
2
+ // src/recipes/details/details.ts
3
3
  const detailsRecipe = makeRecipe({
4
4
  base: {
5
- root: { _detailsContent: { height: "toggle" } },
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
- borderBlockStart: "divider",
29
- borderBlockEnd: "divider"
33
+ borderBlockStartWidth: "base",
34
+ borderBlockEndWidth: "base"
30
35
  } },
31
- "block-end": { root: { borderBlockEnd: "divider" } }
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 borderBlockStart: \"divider\",\n borderBlockEnd: \"divider\",\n },\n },\n \"block-end\": {\n root: {\n borderBlockEnd: \"divider\",\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,EACJ,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,kBAAkB;GAClB,gBAAgB;EAClB,EACF;EACA,aAAa,EACX,MAAM,EACJ,gBAAgB,UAClB,EACF;CACF,EACF;CACA,iBAAiB,EACf,QAAQ,QACV;AACF,CAAC"}
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
- border: "divider";
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
- //#region src/recipes/dialog/dialog.ts
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: { border: "divider" } }
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