@becket-ui/react 0.1.3 → 0.3.0

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 (68) hide show
  1. package/dist/components/Badge.d.ts +1 -1
  2. package/dist/components/Badge.js +1 -1
  3. package/dist/components/Box.d.ts +20 -0
  4. package/dist/components/Box.d.ts.map +1 -0
  5. package/dist/components/Box.js +21 -0
  6. package/dist/components/Box.js.map +1 -0
  7. package/dist/components/Container.d.ts +21 -0
  8. package/dist/components/Container.d.ts.map +1 -0
  9. package/dist/components/Container.js +21 -0
  10. package/dist/components/Container.js.map +1 -0
  11. package/dist/components/Dialog.js +1 -1
  12. package/dist/components/Drawer.js +1 -1
  13. package/dist/components/Flex.d.ts +2 -2
  14. package/dist/components/Flex.js +2 -2
  15. package/dist/components/Glyphs.d.ts +16 -0
  16. package/dist/components/Glyphs.d.ts.map +1 -0
  17. package/dist/components/Glyphs.js +83 -0
  18. package/dist/components/Glyphs.js.map +1 -0
  19. package/dist/components/Hide.d.ts +1 -1
  20. package/dist/components/Hide.js +1 -1
  21. package/dist/components/Icon.d.ts +20 -0
  22. package/dist/components/Icon.d.ts.map +1 -0
  23. package/dist/components/Icon.js +23 -0
  24. package/dist/components/Icon.js.map +1 -0
  25. package/dist/components/Prose.d.ts +20 -0
  26. package/dist/components/Prose.d.ts.map +1 -0
  27. package/dist/components/Prose.js +14 -0
  28. package/dist/components/Prose.js.map +1 -0
  29. package/dist/components/Radio.js +1 -1
  30. package/dist/components/Select.d.ts +1 -1
  31. package/dist/components/Select.js +1 -1
  32. package/dist/components/SimpleGrid.d.ts +1 -1
  33. package/dist/components/SimpleGrid.js +1 -1
  34. package/dist/components/Stack.d.ts +2 -2
  35. package/dist/components/Stack.js +2 -2
  36. package/dist/components/Tag.d.ts +1 -1
  37. package/dist/components/Tag.js +1 -1
  38. package/dist/components/TextField.d.ts +1 -1
  39. package/dist/components/TextField.js +1 -1
  40. package/dist/components/Textarea.d.ts +1 -1
  41. package/dist/components/Textarea.js +1 -1
  42. package/dist/helpers/responsive.d.ts +1 -1
  43. package/dist/helpers/responsive.js.map +1 -1
  44. package/dist/helpers/storybookControls.d.ts +1 -1
  45. package/dist/helpers/storybookControls.js +1 -1
  46. package/dist/helpers/storybookControls.js.map +1 -1
  47. package/dist/index.d.ts +44 -34
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +63 -27
  50. package/dist/index.js.map +1 -1
  51. package/guides/building-with-becket.md +39 -33
  52. package/package.json +4 -4
  53. package/dist/components/Button.test.js +0 -62
  54. package/dist/components/Button.test.js.map +0 -1
  55. package/dist/components/Dialog.test.js +0 -89
  56. package/dist/components/Dialog.test.js.map +0 -1
  57. package/dist/components/Drawer.test.js +0 -50
  58. package/dist/components/Drawer.test.js.map +0 -1
  59. package/dist/components/Field.test.js +0 -33
  60. package/dist/components/Field.test.js.map +0 -1
  61. package/dist/components/Menu.test.js +0 -69
  62. package/dist/components/Menu.test.js.map +0 -1
  63. package/dist/components/Switch.test.js +0 -28
  64. package/dist/components/Switch.test.js.map +0 -1
  65. package/dist/components/Tabs.test.js +0 -41
  66. package/dist/components/Tabs.test.js.map +0 -1
  67. package/dist/components/Tooltip.test.js +0 -58
  68. package/dist/components/Tooltip.test.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { type ComponentPropsWithoutRef, type ElementType } from 'react';
2
- import { type LabelCustomColors, type LabelVisual } from '../helpers/labelColors';
2
+ import { type LabelCustomColors, type LabelVisual } from '../helpers/labelColors.js';
3
3
  type BadgeSize = 'sm' | 'md' | 'lg';
4
4
  type BadgeBorderRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
5
5
  export type BadgeProps = ComponentPropsWithoutRef<'span'> & {
@@ -3,7 +3,7 @@ import { forwardRef } from "react";
3
3
  import { badge } from "@becket-ui/tokens/recipes";
4
4
  import {
5
5
  resolveLabelColorVars
6
- } from "../helpers/labelColors";
6
+ } from "../helpers/labelColors.js";
7
7
  function mergeClassName(...classes) {
8
8
  return classes.filter(Boolean).join(" ");
9
9
  }
@@ -0,0 +1,20 @@
1
+ import { type ComponentPropsWithoutRef, type ElementType } from 'react';
2
+ type BoxSpacing = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
+ type BoxBackground = 'none' | 'background' | 'surface' | 'subtle';
4
+ type BoxRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
5
+ export type BoxProps = ComponentPropsWithoutRef<'div'> & {
6
+ padding?: BoxSpacing;
7
+ /** Token surfaces only; text color follows the theme. */
8
+ background?: BoxBackground;
9
+ radius?: BoxRadius;
10
+ as?: ElementType;
11
+ };
12
+ export declare const Box: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
13
+ padding?: BoxSpacing;
14
+ /** Token surfaces only; text color follows the theme. */
15
+ background?: BoxBackground;
16
+ radius?: BoxRadius;
17
+ as?: ElementType;
18
+ } & import("react").RefAttributes<HTMLDivElement>>;
19
+ export {};
20
+ //# sourceMappingURL=Box.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,wBAAwB,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpF,KAAK,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5D,KAAK,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;AAClE,KAAK,SAAS,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAE7D,MAAM,MAAM,QAAQ,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IACvD,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,yDAAyD;IACzD,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB,CAAC;AAMF,eAAO,MAAM,GAAG;cAXJ,UAAU;IACpB,yDAAyD;iBAC5C,aAAa;aACjB,SAAS;SACb,WAAW;kDAkBjB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { box as boxRecipe } from "@becket-ui/tokens/recipes";
4
+ function mergeClassName(...classes) {
5
+ return classes.filter(Boolean).join(" ");
6
+ }
7
+ const Box = forwardRef(
8
+ ({ padding = "none", background = "none", radius = "none", as: Component = "div", className, ...props }, ref) => /* @__PURE__ */ jsx(
9
+ Component,
10
+ {
11
+ ref,
12
+ ...props,
13
+ className: mergeClassName(boxRecipe({ padding, background, radius }), className)
14
+ }
15
+ )
16
+ );
17
+ Box.displayName = "Box";
18
+ export {
19
+ Box
20
+ };
21
+ //# sourceMappingURL=Box.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Box.tsx"],"sourcesContent":["import { forwardRef, type ComponentPropsWithoutRef, type ElementType } from 'react';\nimport { box as boxRecipe } from '@becket-ui/tokens/recipes';\n\ntype BoxSpacing = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';\ntype BoxBackground = 'none' | 'background' | 'surface' | 'subtle';\ntype BoxRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';\n\nexport type BoxProps = ComponentPropsWithoutRef<'div'> & {\n padding?: BoxSpacing;\n /** Token surfaces only; text color follows the theme. */\n background?: BoxBackground;\n radius?: BoxRadius;\n as?: ElementType;\n};\n\nfunction mergeClassName(...classes: (string | undefined)[]): string {\n return classes.filter(Boolean).join(' ');\n}\n\nexport const Box = forwardRef<HTMLDivElement, BoxProps>(\n (\n { padding = 'none', background = 'none', radius = 'none', as: Component = 'div', className, ...props },\n ref,\n ) => (\n <Component\n ref={ref}\n {...props}\n className={mergeClassName(boxRecipe({ padding, background, radius }), className)}\n />\n ),\n);\n\nBox.displayName = 'Box';\n"],"mappings":"AAwBI;AAxBJ,SAAS,kBAAmE;AAC5E,SAAS,OAAO,iBAAiB;AAcjC,SAAS,kBAAkB,SAAyC;AAClE,SAAO,QAAQ,OAAO,OAAO,EAAE,KAAK,GAAG;AACzC;AAEO,MAAM,MAAM;AAAA,EACjB,CACE,EAAE,UAAU,QAAQ,aAAa,QAAQ,SAAS,QAAQ,IAAI,YAAY,OAAO,WAAW,GAAG,MAAM,GACrG,QAEA;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACC,GAAG;AAAA,MACJ,WAAW,eAAe,UAAU,EAAE,SAAS,YAAY,OAAO,CAAC,GAAG,SAAS;AAAA;AAAA,EACjF;AAEJ;AAEA,IAAI,cAAc;","names":[]}
@@ -0,0 +1,21 @@
1
+ import { type ComponentPropsWithoutRef, type ElementType } from 'react';
2
+ type ContainerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
3
+ type ContainerPadding = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
+ export type ContainerProps = ComponentPropsWithoutRef<'div'> & {
5
+ /** Max width from the size scale: sm 48rem, md 64rem, lg 72rem, xl 80rem, full none. */
6
+ size?: ContainerSize;
7
+ /** Inline (left and right) page gutter. Vertical spacing belongs to Stack. */
8
+ padding?: ContainerPadding;
9
+ /** Render as a landmark, e.g. `main` or `section`. */
10
+ as?: ElementType;
11
+ };
12
+ export declare const Container: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
13
+ /** Max width from the size scale: sm 48rem, md 64rem, lg 72rem, xl 80rem, full none. */
14
+ size?: ContainerSize;
15
+ /** Inline (left and right) page gutter. Vertical spacing belongs to Stack. */
16
+ padding?: ContainerPadding;
17
+ /** Render as a landmark, e.g. `main` or `section`. */
18
+ as?: ElementType;
19
+ } & import("react").RefAttributes<HTMLDivElement>>;
20
+ export {};
21
+ //# sourceMappingURL=Container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../src/components/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,wBAAwB,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpF,KAAK,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AACxD,KAAK,gBAAgB,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElE,MAAM,MAAM,cAAc,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC7D,wFAAwF;IACxF,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,sDAAsD;IACtD,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB,CAAC;AAMF,eAAO,MAAM,SAAS;IAZpB,wFAAwF;WACjF,aAAa;IACpB,8EAA8E;cACpE,gBAAgB;IAC1B,sDAAsD;SACjD,WAAW;kDAejB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { container as containerRecipe } from "@becket-ui/tokens/recipes";
4
+ function mergeClassName(...classes) {
5
+ return classes.filter(Boolean).join(" ");
6
+ }
7
+ const Container = forwardRef(
8
+ ({ size = "lg", padding = "md", as: Component = "div", className, ...props }, ref) => /* @__PURE__ */ jsx(
9
+ Component,
10
+ {
11
+ ref,
12
+ ...props,
13
+ className: mergeClassName(containerRecipe({ size, padding }), className)
14
+ }
15
+ )
16
+ );
17
+ Container.displayName = "Container";
18
+ export {
19
+ Container
20
+ };
21
+ //# sourceMappingURL=Container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Container.tsx"],"sourcesContent":["import { forwardRef, type ComponentPropsWithoutRef, type ElementType } from 'react';\nimport { container as containerRecipe } from '@becket-ui/tokens/recipes';\n\ntype ContainerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';\ntype ContainerPadding = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n\nexport type ContainerProps = ComponentPropsWithoutRef<'div'> & {\n /** Max width from the size scale: sm 48rem, md 64rem, lg 72rem, xl 80rem, full none. */\n size?: ContainerSize;\n /** Inline (left and right) page gutter. Vertical spacing belongs to Stack. */\n padding?: ContainerPadding;\n /** Render as a landmark, e.g. `main` or `section`. */\n as?: ElementType;\n};\n\nfunction mergeClassName(...classes: (string | undefined)[]): string {\n return classes.filter(Boolean).join(' ');\n}\n\nexport const Container = forwardRef<HTMLDivElement, ContainerProps>(\n ({ size = 'lg', padding = 'md', as: Component = 'div', className, ...props }, ref) => (\n <Component\n ref={ref}\n {...props}\n className={mergeClassName(containerRecipe({ size, padding }), className)}\n />\n ),\n);\n\nContainer.displayName = 'Container';\n"],"mappings":"AAqBI;AArBJ,SAAS,kBAAmE;AAC5E,SAAS,aAAa,uBAAuB;AAc7C,SAAS,kBAAkB,SAAyC;AAClE,SAAO,QAAQ,OAAO,OAAO,EAAE,KAAK,GAAG;AACzC;AAEO,MAAM,YAAY;AAAA,EACvB,CAAC,EAAE,OAAO,MAAM,UAAU,MAAM,IAAI,YAAY,OAAO,WAAW,GAAG,MAAM,GAAG,QAC5E;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACC,GAAG;AAAA,MACJ,WAAW,eAAe,gBAAgB,EAAE,MAAM,QAAQ,CAAC,GAAG,SAAS;AAAA;AAAA,EACzE;AAEJ;AAEA,UAAU,cAAc;","names":[]}
@@ -8,7 +8,7 @@ import {
8
8
  useRef
9
9
  } from "react";
10
10
  import { dialog as dialogRecipe } from "@becket-ui/tokens/recipes";
11
- import { assignRef, useNativeDialog } from "../helpers/nativeDialog";
11
+ import { assignRef, useNativeDialog } from "../helpers/nativeDialog.js";
12
12
  const DialogContext = createContext(null);
13
13
  function useDialog() {
14
14
  const ctx = useContext(DialogContext);
@@ -8,7 +8,7 @@ import {
8
8
  useRef
9
9
  } from "react";
10
10
  import { drawer as drawerRecipe } from "@becket-ui/tokens/recipes";
11
- import { assignRef, useNativeDialog } from "../helpers/nativeDialog";
11
+ import { assignRef, useNativeDialog } from "../helpers/nativeDialog.js";
12
12
  const DrawerContext = createContext(null);
13
13
  function useDrawer() {
14
14
  const ctx = useContext(DrawerContext);
@@ -1,7 +1,7 @@
1
1
  import { type ComponentPropsWithoutRef, type ElementType } from 'react';
2
2
  import { flex } from '@becket-ui/tokens/patterns';
3
- import { type GradientBorderToken } from '../helpers/gradientBorder';
4
- import { type GapValue, type ResponsiveValue } from '../helpers/responsive';
3
+ import { type GradientBorderToken } from '../helpers/gradientBorder.js';
4
+ import { type GapValue, type ResponsiveValue } from '../helpers/responsive.js';
5
5
  type FlexOptions = NonNullable<Parameters<typeof flex>[0]>;
6
6
  type AlignVariant = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
7
7
  type JustifyVariant = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
@@ -5,8 +5,8 @@ import { flex } from "@becket-ui/tokens/patterns";
5
5
  import {
6
6
  getGradientBorderClassName,
7
7
  isGradientBorderToken
8
- } from "../helpers/gradientBorder";
9
- import { normalizeGapValue, normalizeResponsiveValue } from "../helpers/responsive";
8
+ } from "../helpers/gradientBorder.js";
9
+ import { normalizeGapValue, normalizeResponsiveValue } from "../helpers/responsive.js";
10
10
  const ALIGN_MAP = {
11
11
  start: "start",
12
12
  center: "center",
@@ -0,0 +1,16 @@
1
+ import { type IconProps } from './Icon.js';
2
+ export type GlyphProps = Omit<IconProps, 'children'>;
3
+ export declare const ChevronDownIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
4
+ export declare const ChevronRightIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
5
+ export declare const CloseIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
6
+ export declare const MenuIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
7
+ export declare const CheckIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
8
+ export declare const CopyIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
9
+ export declare const ExternalLinkIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
10
+ export declare const LinkIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
11
+ export declare const SearchIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
12
+ export declare const SunIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
13
+ export declare const MoonIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
14
+ export declare const InfoIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
15
+ export declare const WarningIcon: import("react").ForwardRefExoticComponent<GlyphProps & import("react").RefAttributes<HTMLSpanElement>>;
16
+ //# sourceMappingURL=Glyphs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Glyphs.d.ts","sourceRoot":"","sources":["../../src/components/Glyphs.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAwBrD,eAAO,MAAM,eAAe,wGAA4E,CAAC;AAEzG,eAAO,MAAM,gBAAgB,wGAA6E,CAAC;AAE3G,eAAO,MAAM,SAAS,wGAA8E,CAAC;AAErG,eAAO,MAAM,QAAQ,wGAAgF,CAAC;AAEtG,eAAO,MAAM,SAAS,wGAA8E,CAAC;AAErG,eAAO,MAAM,QAAQ,wGAMpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,wGAG5B,CAAC;AAEF,eAAO,MAAM,QAAQ,wGAGpB,CAAC;AAEF,eAAO,MAAM,UAAU,wGAMtB,CAAC;AAEF,eAAO,MAAM,OAAO,wGAMnB,CAAC;AAEF,eAAO,MAAM,QAAQ,wGAAsG,CAAC;AAE5H,eAAO,MAAM,QAAQ,wGAMpB,CAAC;AAEF,eAAO,MAAM,WAAW,wGAGvB,CAAC"}
@@ -0,0 +1,83 @@
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { Icon } from "./Icon.js";
4
+ function createGlyph(displayName, shapes) {
5
+ const Glyph = forwardRef((props, ref) => /* @__PURE__ */ jsx(Icon, { ref, ...props, children: /* @__PURE__ */ jsx(
6
+ "svg",
7
+ {
8
+ viewBox: "0 0 24 24",
9
+ fill: "none",
10
+ stroke: "currentColor",
11
+ strokeWidth: 2,
12
+ strokeLinecap: "round",
13
+ strokeLinejoin: "round",
14
+ "aria-hidden": "true",
15
+ focusable: "false",
16
+ children: shapes
17
+ }
18
+ ) }));
19
+ Glyph.displayName = displayName;
20
+ return Glyph;
21
+ }
22
+ const ChevronDownIcon = /* @__PURE__ */ createGlyph("ChevronDownIcon", /* @__PURE__ */ jsx("path", { d: "M6 9l6 6 6-6" }));
23
+ const ChevronRightIcon = /* @__PURE__ */ createGlyph("ChevronRightIcon", /* @__PURE__ */ jsx("path", { d: "M9 6l6 6-6 6" }));
24
+ const CloseIcon = /* @__PURE__ */ createGlyph("CloseIcon", /* @__PURE__ */ jsx("path", { d: "M6 6l12 12M18 6L6 18" }));
25
+ const MenuIcon = /* @__PURE__ */ createGlyph("MenuIcon", /* @__PURE__ */ jsx("path", { d: "M4 6h16M4 12h16M4 18h16" }));
26
+ const CheckIcon = /* @__PURE__ */ createGlyph("CheckIcon", /* @__PURE__ */ jsx("path", { d: "M5 12.5l4.5 4.5L19 7" }));
27
+ const CopyIcon = /* @__PURE__ */ createGlyph(
28
+ "CopyIcon",
29
+ /* @__PURE__ */ jsxs(Fragment, { children: [
30
+ /* @__PURE__ */ jsx("rect", { x: "9", y: "9", width: "11", height: "11", rx: "2" }),
31
+ /* @__PURE__ */ jsx("path", { d: "M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3" })
32
+ ] })
33
+ );
34
+ const ExternalLinkIcon = /* @__PURE__ */ createGlyph(
35
+ "ExternalLinkIcon",
36
+ /* @__PURE__ */ jsx("path", { d: "M14 4h6v6M20 4l-9 9M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4" })
37
+ );
38
+ const LinkIcon = /* @__PURE__ */ createGlyph(
39
+ "LinkIcon",
40
+ /* @__PURE__ */ jsx("path", { d: "M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1" })
41
+ );
42
+ const SearchIcon = /* @__PURE__ */ createGlyph(
43
+ "SearchIcon",
44
+ /* @__PURE__ */ jsxs(Fragment, { children: [
45
+ /* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "7" }),
46
+ /* @__PURE__ */ jsx("path", { d: "M20 20l-4-4" })
47
+ ] })
48
+ );
49
+ const SunIcon = /* @__PURE__ */ createGlyph(
50
+ "SunIcon",
51
+ /* @__PURE__ */ jsxs(Fragment, { children: [
52
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "4" }),
53
+ /* @__PURE__ */ jsx("path", { d: "M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4" })
54
+ ] })
55
+ );
56
+ const MoonIcon = /* @__PURE__ */ createGlyph("MoonIcon", /* @__PURE__ */ jsx("path", { d: "M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z" }));
57
+ const InfoIcon = /* @__PURE__ */ createGlyph(
58
+ "InfoIcon",
59
+ /* @__PURE__ */ jsxs(Fragment, { children: [
60
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
61
+ /* @__PURE__ */ jsx("path", { d: "M12 11v5M12 8h.01" })
62
+ ] })
63
+ );
64
+ const WarningIcon = /* @__PURE__ */ createGlyph(
65
+ "WarningIcon",
66
+ /* @__PURE__ */ jsx("path", { d: "M12 3.5L21.5 20h-19L12 3.5zM12 10v4M12 17h.01" })
67
+ );
68
+ export {
69
+ CheckIcon,
70
+ ChevronDownIcon,
71
+ ChevronRightIcon,
72
+ CloseIcon,
73
+ CopyIcon,
74
+ ExternalLinkIcon,
75
+ InfoIcon,
76
+ LinkIcon,
77
+ MenuIcon,
78
+ MoonIcon,
79
+ SearchIcon,
80
+ SunIcon,
81
+ WarningIcon
82
+ };
83
+ //# sourceMappingURL=Glyphs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Glyphs.tsx"],"sourcesContent":["import { forwardRef, type ReactNode } from 'react';\nimport { Icon, type IconProps } from './Icon';\n\nexport type GlyphProps = Omit<IconProps, 'children'>;\n\n// Every glyph shares one 24px grid and stroke so they sit together without tuning.\nfunction createGlyph(displayName: string, shapes: ReactNode) {\n const Glyph = forwardRef<HTMLSpanElement, GlyphProps>((props, ref) => (\n <Icon ref={ref} {...props}>\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n {shapes}\n </svg>\n </Icon>\n ));\n Glyph.displayName = displayName;\n return Glyph;\n}\n\nexport const ChevronDownIcon = /* @__PURE__ */ createGlyph('ChevronDownIcon', <path d=\"M6 9l6 6 6-6\" />);\n\nexport const ChevronRightIcon = /* @__PURE__ */ createGlyph('ChevronRightIcon', <path d=\"M9 6l6 6-6 6\" />);\n\nexport const CloseIcon = /* @__PURE__ */ createGlyph('CloseIcon', <path d=\"M6 6l12 12M18 6L6 18\" />);\n\nexport const MenuIcon = /* @__PURE__ */ createGlyph('MenuIcon', <path d=\"M4 6h16M4 12h16M4 18h16\" />);\n\nexport const CheckIcon = /* @__PURE__ */ createGlyph('CheckIcon', <path d=\"M5 12.5l4.5 4.5L19 7\" />);\n\nexport const CopyIcon = /* @__PURE__ */ createGlyph(\n 'CopyIcon',\n <>\n <rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" />\n <path d=\"M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3\" />\n </>,\n);\n\nexport const ExternalLinkIcon = /* @__PURE__ */ createGlyph(\n 'ExternalLinkIcon',\n <path d=\"M14 4h6v6M20 4l-9 9M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4\" />,\n);\n\nexport const LinkIcon = /* @__PURE__ */ createGlyph(\n 'LinkIcon',\n <path d=\"M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1\" />,\n);\n\nexport const SearchIcon = /* @__PURE__ */ createGlyph(\n 'SearchIcon',\n <>\n <circle cx=\"11\" cy=\"11\" r=\"7\" />\n <path d=\"M20 20l-4-4\" />\n </>,\n);\n\nexport const SunIcon = /* @__PURE__ */ createGlyph(\n 'SunIcon',\n <>\n <circle cx=\"12\" cy=\"12\" r=\"4\" />\n <path d=\"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4\" />\n </>,\n);\n\nexport const MoonIcon = /* @__PURE__ */ createGlyph('MoonIcon', <path d=\"M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z\" />);\n\nexport const InfoIcon = /* @__PURE__ */ createGlyph(\n 'InfoIcon',\n <>\n <circle cx=\"12\" cy=\"12\" r=\"9\" />\n <path d=\"M12 11v5M12 8h.01\" />\n </>,\n);\n\nexport const WarningIcon = /* @__PURE__ */ createGlyph(\n 'WarningIcon',\n <path d=\"M12 3.5L21.5 20h-19L12 3.5zM12 10v4M12 17h.01\" />,\n);\n"],"mappings":"AASM,SA8BJ,UA9BI,KA8BJ,YA9BI;AATN,SAAS,kBAAkC;AAC3C,SAAS,YAA4B;AAKrC,SAAS,YAAY,aAAqB,QAAmB;AAC3D,QAAM,QAAQ,WAAwC,CAAC,OAAO,QAC5D,oBAAC,QAAK,KAAW,GAAG,OAClB;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,QAAO;AAAA,MACP,aAAa;AAAA,MACb,eAAc;AAAA,MACd,gBAAe;AAAA,MACf,eAAY;AAAA,MACZ,WAAU;AAAA,MAET;AAAA;AAAA,EACH,GACF,CACD;AACD,QAAM,cAAc;AACpB,SAAO;AACT;AAEO,MAAM,kBAAkC,4BAAY,mBAAmB,oBAAC,UAAK,GAAE,gBAAe,CAAE;AAEhG,MAAM,mBAAmC,4BAAY,oBAAoB,oBAAC,UAAK,GAAE,gBAAe,CAAE;AAElG,MAAM,YAA4B,4BAAY,aAAa,oBAAC,UAAK,GAAE,wBAAuB,CAAE;AAE5F,MAAM,WAA2B,4BAAY,YAAY,oBAAC,UAAK,GAAE,2BAA0B,CAAE;AAE7F,MAAM,YAA4B,4BAAY,aAAa,oBAAC,UAAK,GAAE,wBAAuB,CAAE;AAE5F,MAAM,WAA2B;AAAA,EACtC;AAAA,EACA,iCACE;AAAA,wBAAC,UAAK,GAAE,KAAI,GAAE,KAAI,OAAM,MAAK,QAAO,MAAK,IAAG,KAAI;AAAA,IAChD,oBAAC,UAAK,GAAE,2DAA0D;AAAA,KACpE;AACF;AAEO,MAAM,mBAAmC;AAAA,EAC9C;AAAA,EACA,oBAAC,UAAK,GAAE,+EAA8E;AACxF;AAEO,MAAM,WAA2B;AAAA,EACtC;AAAA,EACA,oBAAC,UAAK,GAAE,4GAA2G;AACrH;AAEO,MAAM,aAA6B;AAAA,EACxC;AAAA,EACA,iCACE;AAAA,wBAAC,YAAO,IAAG,MAAK,IAAG,MAAK,GAAE,KAAI;AAAA,IAC9B,oBAAC,UAAK,GAAE,eAAc;AAAA,KACxB;AACF;AAEO,MAAM,UAA0B;AAAA,EACrC;AAAA,EACA,iCACE;AAAA,wBAAC,YAAO,IAAG,MAAK,IAAG,MAAK,GAAE,KAAI;AAAA,IAC9B,oBAAC,UAAK,GAAE,sGAAqG;AAAA,KAC/G;AACF;AAEO,MAAM,WAA2B,4BAAY,YAAY,oBAAC,UAAK,GAAE,iDAAgD,CAAE;AAEnH,MAAM,WAA2B;AAAA,EACtC;AAAA,EACA,iCACE;AAAA,wBAAC,YAAO,IAAG,MAAK,IAAG,MAAK,GAAE,KAAI;AAAA,IAC9B,oBAAC,UAAK,GAAE,qBAAoB;AAAA,KAC9B;AACF;AAEO,MAAM,cAA8B;AAAA,EACzC;AAAA,EACA,oBAAC,UAAK,GAAE,iDAAgD;AAC1D;","names":[]}
@@ -3,7 +3,7 @@
3
3
  * Uses CSS media queries — no JS flash; single DOM for UI tests.
4
4
  */
5
5
  import { type ComponentPropsWithoutRef, type ElementType } from 'react';
6
- import { type BreakpointAlias } from '../helpers/responsive';
6
+ import { type BreakpointAlias } from '../helpers/responsive.js';
7
7
  export type HideProps = ComponentPropsWithoutRef<'div'> & {
8
8
  /** Hide when viewport is **below** this breakpoint (show from breakpoint up). */
9
9
  below?: BreakpointAlias;
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { hide } from "@becket-ui/tokens/recipes";
4
- import { resolveBreakpointAlias } from "../helpers/responsive";
4
+ import { resolveBreakpointAlias } from "../helpers/responsive.js";
5
5
  function mergeClassName(...classes) {
6
6
  return classes.filter(Boolean).join(" ");
7
7
  }
@@ -0,0 +1,20 @@
1
+ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ type IconSize = 'sm' | 'md' | 'lg' | 'xl';
3
+ export type IconProps = Omit<ComponentPropsWithoutRef<'span'>, 'children'> & {
4
+ /** sm 1rem, md 1.25rem, lg 1.5rem, xl 2rem. */
5
+ size?: IconSize;
6
+ /** Accessible name. Without it the icon is decorative and hidden from assistive tech. */
7
+ label?: string;
8
+ /** One inline `<svg>`, drawn with `currentColor`. */
9
+ children: ReactNode;
10
+ };
11
+ export declare const Icon: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "children"> & {
12
+ /** sm 1rem, md 1.25rem, lg 1.5rem, xl 2rem. */
13
+ size?: IconSize;
14
+ /** Accessible name. Without it the icon is decorative and hidden from assistive tech. */
15
+ label?: string;
16
+ /** One inline `<svg>`, drawn with `currentColor`. */
17
+ children: ReactNode;
18
+ } & import("react").RefAttributes<HTMLSpanElement>>;
19
+ export {};
20
+ //# sourceMappingURL=Icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../src/components/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,wBAAwB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlF,KAAK,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG;IAC3E,+CAA+C;IAC/C,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAMF,eAAO,MAAM,IAAI;IAZf,+CAA+C;WACxC,QAAQ;IACf,yFAAyF;YACjF,MAAM;IACd,qDAAqD;cAC3C,SAAS;mDAkBpB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { icon as iconRecipe } from "@becket-ui/tokens/recipes";
4
+ function mergeClassName(...classes) {
5
+ return classes.filter(Boolean).join(" ");
6
+ }
7
+ const Icon = forwardRef(
8
+ ({ size = "md", label, className, children, ...props }, ref) => /* @__PURE__ */ jsx(
9
+ "span",
10
+ {
11
+ ref,
12
+ ...props,
13
+ ...label ? { role: "img", "aria-label": label } : { "aria-hidden": true },
14
+ className: mergeClassName(iconRecipe({ size }), className),
15
+ children
16
+ }
17
+ )
18
+ );
19
+ Icon.displayName = "Icon";
20
+ export {
21
+ Icon
22
+ };
23
+ //# sourceMappingURL=Icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Icon.tsx"],"sourcesContent":["import { forwardRef, type ComponentPropsWithoutRef, type ReactNode } from 'react';\nimport { icon as iconRecipe } from '@becket-ui/tokens/recipes';\n\ntype IconSize = 'sm' | 'md' | 'lg' | 'xl';\n\nexport type IconProps = Omit<ComponentPropsWithoutRef<'span'>, 'children'> & {\n /** sm 1rem, md 1.25rem, lg 1.5rem, xl 2rem. */\n size?: IconSize;\n /** Accessible name. Without it the icon is decorative and hidden from assistive tech. */\n label?: string;\n /** One inline `<svg>`, drawn with `currentColor`. */\n children: ReactNode;\n};\n\nfunction mergeClassName(...classes: (string | undefined)[]): string {\n return classes.filter(Boolean).join(' ');\n}\n\nexport const Icon = forwardRef<HTMLSpanElement, IconProps>(\n ({ size = 'md', label, className, children, ...props }, ref) => (\n <span\n ref={ref}\n {...props}\n {...(label ? { role: 'img', 'aria-label': label } : { 'aria-hidden': true })}\n className={mergeClassName(iconRecipe({ size }), className)}\n >\n {children}\n </span>\n ),\n);\n\nIcon.displayName = 'Icon';\n"],"mappings":"AAoBI;AApBJ,SAAS,kBAAiE;AAC1E,SAAS,QAAQ,kBAAkB;AAanC,SAAS,kBAAkB,SAAyC;AAClE,SAAO,QAAQ,OAAO,OAAO,EAAE,KAAK,GAAG;AACzC;AAEO,MAAM,OAAO;AAAA,EAClB,CAAC,EAAE,OAAO,MAAM,OAAO,WAAW,UAAU,GAAG,MAAM,GAAG,QACtD;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACC,GAAG;AAAA,MACH,GAAI,QAAQ,EAAE,MAAM,OAAO,cAAc,MAAM,IAAI,EAAE,eAAe,KAAK;AAAA,MAC1E,WAAW,eAAe,WAAW,EAAE,KAAK,CAAC,GAAG,SAAS;AAAA,MAExD;AAAA;AAAA,EACH;AAEJ;AAEA,KAAK,cAAc;","names":[]}
@@ -0,0 +1,20 @@
1
+ import { type ComponentPropsWithoutRef, type ElementType } from 'react';
2
+ type ProseSize = 'sm' | 'md' | 'lg';
3
+ export type ProseProps = ComponentPropsWithoutRef<'div'> & {
4
+ /** Base text size; headings, spacing and code scale with it. */
5
+ size?: ProseSize;
6
+ /** Usually `article` for a blog post. */
7
+ as?: ElementType;
8
+ };
9
+ /**
10
+ * Styles HTML from Markdown or MDX with Becket tokens. CSS only, no JS.
11
+ * Wrap embedded components in `data-not-prose` to keep their own styles.
12
+ */
13
+ export declare const Prose: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
14
+ /** Base text size; headings, spacing and code scale with it. */
15
+ size?: ProseSize;
16
+ /** Usually `article` for a blog post. */
17
+ as?: ElementType;
18
+ } & import("react").RefAttributes<HTMLDivElement>>;
19
+ export {};
20
+ //# sourceMappingURL=Prose.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Prose.d.ts","sourceRoot":"","sources":["../../src/components/Prose.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,wBAAwB,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpF,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpC,MAAM,MAAM,UAAU,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IACzD,gEAAgE;IAChE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yCAAyC;IACzC,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,KAAK;IAdhB,gEAAgE;WACzD,SAAS;IAChB,yCAAyC;SACpC,WAAW;kDAejB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { prose as proseRecipe } from "@becket-ui/tokens/recipes";
4
+ function mergeClassName(...classes) {
5
+ return classes.filter(Boolean).join(" ");
6
+ }
7
+ const Prose = forwardRef(
8
+ ({ size = "md", as: Component = "div", className, ...props }, ref) => /* @__PURE__ */ jsx(Component, { ref, ...props, className: mergeClassName(proseRecipe({ size }), className) })
9
+ );
10
+ Prose.displayName = "Prose";
11
+ export {
12
+ Prose
13
+ };
14
+ //# sourceMappingURL=Prose.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Prose.tsx"],"sourcesContent":["import { forwardRef, type ComponentPropsWithoutRef, type ElementType } from 'react';\nimport { prose as proseRecipe } from '@becket-ui/tokens/recipes';\n\ntype ProseSize = 'sm' | 'md' | 'lg';\n\nexport type ProseProps = ComponentPropsWithoutRef<'div'> & {\n /** Base text size; headings, spacing and code scale with it. */\n size?: ProseSize;\n /** Usually `article` for a blog post. */\n as?: ElementType;\n};\n\nfunction mergeClassName(...classes: (string | undefined)[]): string {\n return classes.filter(Boolean).join(' ');\n}\n\n/**\n * Styles HTML from Markdown or MDX with Becket tokens. CSS only, no JS.\n * Wrap embedded components in `data-not-prose` to keep their own styles.\n */\nexport const Prose = forwardRef<HTMLDivElement, ProseProps>(\n ({ size = 'md', as: Component = 'div', className, ...props }, ref) => (\n <Component ref={ref} {...props} className={mergeClassName(proseRecipe({ size }), className)} />\n ),\n);\n\nProse.displayName = 'Prose';\n"],"mappings":"AAsBI;AAtBJ,SAAS,kBAAmE;AAC5E,SAAS,SAAS,mBAAmB;AAWrC,SAAS,kBAAkB,SAAyC;AAClE,SAAO,QAAQ,OAAO,OAAO,EAAE,KAAK,GAAG;AACzC;AAMO,MAAM,QAAQ;AAAA,EACnB,CAAC,EAAE,OAAO,MAAM,IAAI,YAAY,OAAO,WAAW,GAAG,MAAM,GAAG,QAC5D,oBAAC,aAAU,KAAW,GAAG,OAAO,WAAW,eAAe,YAAY,EAAE,KAAK,CAAC,GAAG,SAAS,GAAG;AAEjG;AAEA,MAAM,cAAc;","names":[]}
@@ -8,7 +8,7 @@ import {
8
8
  useMemo
9
9
  } from "react";
10
10
  import { radio as radioRecipe } from "@becket-ui/tokens/recipes";
11
- import { useOptionalField } from "./Field";
11
+ import { useOptionalField } from "./Field.js";
12
12
  const RadioGroupContext = createContext(null);
13
13
  function mergeClassName(...classes) {
14
14
  return classes.filter(Boolean).join(" ");
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode, type SelectHTMLAttributes } from 'react';
2
- import { type FieldSize } from './Field';
2
+ import { type FieldSize } from './Field.js';
3
3
  export type SelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> & {
4
4
  label?: ReactNode;
5
5
  helperText?: ReactNode;
@@ -7,7 +7,7 @@ import {
7
7
  FieldHelper,
8
8
  FieldLabel,
9
9
  FieldSelect
10
- } from "./Field";
10
+ } from "./Field.js";
11
11
  const Select = forwardRef(
12
12
  ({
13
13
  label,
@@ -1,6 +1,6 @@
1
1
  import { type ComponentPropsWithoutRef, type ElementType } from 'react';
2
2
  import { grid } from '@becket-ui/tokens/patterns';
3
- import { type GapValue, type ResponsiveValue } from '../helpers/responsive';
3
+ import { type GapValue, type ResponsiveValue } from '../helpers/responsive.js';
4
4
  type GridOptions = NonNullable<Parameters<typeof grid>[0]>;
5
5
  export type SimpleGridProps = ComponentPropsWithoutRef<'div'> & {
6
6
  columns?: ResponsiveValue<number> | GridOptions['columns'];
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { css } from "@becket-ui/tokens/css";
4
4
  import { grid } from "@becket-ui/tokens/patterns";
5
- import { normalizeGapValue, normalizeResponsiveValue } from "../helpers/responsive";
5
+ import { normalizeGapValue, normalizeResponsiveValue } from "../helpers/responsive.js";
6
6
  function mergeClassName(...classes) {
7
7
  return classes.filter(Boolean).join(" ");
8
8
  }
@@ -1,7 +1,7 @@
1
1
  import { type ComponentPropsWithoutRef, type ElementType } from 'react';
2
2
  import { stack } from '@becket-ui/tokens/patterns';
3
- import { type GradientBorderToken } from '../helpers/gradientBorder';
4
- import { type GapValue, type ResponsiveValue } from '../helpers/responsive';
3
+ import { type GradientBorderToken } from '../helpers/gradientBorder.js';
4
+ import { type GapValue, type ResponsiveValue } from '../helpers/responsive.js';
5
5
  type StackOptions = NonNullable<Parameters<typeof stack>[0]>;
6
6
  type AlignVariant = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
7
7
  type JustifyVariant = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
@@ -5,8 +5,8 @@ import { stack } from "@becket-ui/tokens/patterns";
5
5
  import {
6
6
  getGradientBorderClassName,
7
7
  isGradientBorderToken
8
- } from "../helpers/gradientBorder";
9
- import { normalizeGapValue, normalizeResponsiveValue } from "../helpers/responsive";
8
+ } from "../helpers/gradientBorder.js";
9
+ import { normalizeGapValue, normalizeResponsiveValue } from "../helpers/responsive.js";
10
10
  const ALIGN_MAP = {
11
11
  start: "start",
12
12
  center: "center",
@@ -1,5 +1,5 @@
1
1
  import { type ComponentPropsWithoutRef, type ElementType } from 'react';
2
- import { type LabelCustomColors, type LabelVisual } from '../helpers/labelColors';
2
+ import { type LabelCustomColors, type LabelVisual } from '../helpers/labelColors.js';
3
3
  type TagSize = 'sm' | 'md' | 'lg';
4
4
  type TagBorderRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
5
5
  export type TagProps = ComponentPropsWithoutRef<'span'> & {
@@ -3,7 +3,7 @@ import { forwardRef } from "react";
3
3
  import { tag } from "@becket-ui/tokens/recipes";
4
4
  import {
5
5
  resolveLabelColorVars
6
- } from "../helpers/labelColors";
6
+ } from "../helpers/labelColors.js";
7
7
  function mergeClassName(...classes) {
8
8
  return classes.filter(Boolean).join(" ");
9
9
  }
@@ -1,5 +1,5 @@
1
1
  import { type InputHTMLAttributes, type ReactNode } from 'react';
2
- import { type FieldSize } from './Field';
2
+ import { type FieldSize } from './Field.js';
3
3
  export type TextFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {
4
4
  label?: ReactNode;
5
5
  helperText?: ReactNode;
@@ -7,7 +7,7 @@ import {
7
7
  FieldError,
8
8
  FieldHelper,
9
9
  FieldLabel
10
- } from "./Field";
10
+ } from "./Field.js";
11
11
  const TextField = forwardRef(
12
12
  ({
13
13
  label,
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode, type TextareaHTMLAttributes } from 'react';
2
- import { type FieldSize } from './Field';
2
+ import { type FieldSize } from './Field.js';
3
3
  export type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> & {
4
4
  label?: ReactNode;
5
5
  helperText?: ReactNode;
@@ -7,7 +7,7 @@ import {
7
7
  FieldHelper,
8
8
  FieldLabel,
9
9
  FieldTextarea
10
- } from "./Field";
10
+ } from "./Field.js";
11
11
  const Textarea = forwardRef(
12
12
  ({
13
13
  label,
@@ -35,7 +35,7 @@ export declare const SEMANTIC_TO_BREAKPOINT: {
35
35
  export declare const SPACING_SCALE: readonly [0, 1, 2, 3, 5, 8, 13, 21, 34];
36
36
  export type SpacingStep = (typeof SPACING_SCALE)[number];
37
37
  /** Semantic aliases preferred in apps. */
38
- export type SpacingSemantic = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xs';
38
+ export type SpacingSemantic = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
39
39
  /**
40
40
  * Values that show up in IDE autocomplete for `gap` / spacing props.
41
41
  * Numeric literals + string keys + semantic tokens.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/responsive.ts"],"sourcesContent":["import type { ConditionalValue } from '@becket-ui/tokens/types';\n\n/**\n * Responsive props — Chakra-aligned, mobile-first (min-width).\n *\n * Prefer **object syntax** with a `base`/`mobile` value (Chakra docs + community\n * best practice). Arrays are supported for parity but are harder to read.\n *\n * @see https://chakra-ui.com/docs/styling/responsive-design\n */\n\n/** Token breakpoints (Panda / Chakra keys). */\nexport type Breakpoint = 'base' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n/**\n * Semantic aliases for layout in consuming apps.\n * Map onto token breakpoints — do not invent separate media queries.\n */\nexport type SemanticBreakpoint = 'mobile' | 'tablet' | 'desktop' | 'largeDesktop';\n\nexport type BreakpointAlias = Breakpoint | SemanticBreakpoint;\n\n/** Breakpoint-only keys for responsive object props (token + semantic). */\nexport type BreakpointMap<T> = Partial<Record<BreakpointAlias, T>>;\n\n/**\n * Chakra-style responsive value: single value, per-breakpoint object, or array\n * (index 0 = base, 1 = sm, 2 = md, …).\n */\nexport type ResponsiveValue<T> = ConditionalValue<T> | BreakpointMap<T>;\n\nexport const BREAKPOINTS = ['base', 'sm', 'md', 'lg', 'xl', '2xl'] as const satisfies readonly Breakpoint[];\n\nexport const SEMANTIC_BREAKPOINTS = [\n 'mobile',\n 'tablet',\n 'desktop',\n 'largeDesktop',\n] as const satisfies readonly SemanticBreakpoint[];\n\n/** Semantic → token breakpoint (Chakra mobile-first scale). */\nexport const SEMANTIC_TO_BREAKPOINT = {\n mobile: 'base',\n tablet: 'md',\n desktop: 'lg',\n largeDesktop: 'xl',\n} as const satisfies Record<SemanticBreakpoint, Breakpoint>;\n\n/** Becket-authored spacing steps (Fibonacci + zero). */\nexport const SPACING_SCALE = [0, 1, 2, 3, 5, 8, 13, 21, 34] as const;\n\nexport type SpacingStep = (typeof SPACING_SCALE)[number];\n\n/** Semantic aliases preferred in apps. */\nexport type SpacingSemantic = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xs';\n\n/**\n * Values that show up in IDE autocomplete for `gap` / spacing props.\n * Numeric literals + string keys + semantic tokens.\n * `(string & {})` / `(number & {})` keep IntelliSense while allowing escapes.\n */\nexport type SpacingScale =\n | SpacingSemantic\n | SpacingStep\n | `${SpacingStep}`\n | (string & {})\n | (number & {});\n\n/** Gap prop: single value or responsive ConditionalValue. */\nexport type GapValue = ResponsiveValue<SpacingScale>;\n\nexport function isSemanticBreakpoint(key: string): key is SemanticBreakpoint {\n return (SEMANTIC_BREAKPOINTS as readonly string[]).includes(key);\n}\n\nexport function isTokenBreakpoint(key: string): key is Breakpoint {\n return (BREAKPOINTS as readonly string[]).includes(key);\n}\n\n/** Resolve `desktop` → `lg`, leave `md` unchanged. */\nexport function resolveBreakpointAlias(key: string): string {\n if (isSemanticBreakpoint(key)) return SEMANTIC_TO_BREAKPOINT[key];\n return key;\n}\n\n/**\n * Expand semantic keys in a responsive object to token breakpoints.\n * Token keys already present win (not overwritten by semantic aliases).\n * Non-objects / arrays pass through.\n */\nexport function normalizeResponsiveValue<T>(value: T): T {\n if (value == null || typeof value !== 'object' || Array.isArray(value)) {\n return value;\n }\n const input = value as Record<string, unknown>;\n const out: Record<string, unknown> = {};\n\n // Pass 1: token keys\n for (const [key, entry] of Object.entries(input)) {\n if (isTokenBreakpoint(key) || key === 'base') {\n out[key] = normalizeResponsiveValue(entry);\n }\n }\n // Pass 2: semantic → token if token slot empty\n for (const [key, entry] of Object.entries(input)) {\n if (!isSemanticBreakpoint(key)) {\n if (!isTokenBreakpoint(key) && key !== 'base') {\n // Unknown keys (e.g. _hover) — keep as-is for Panda\n out[key] = normalizeResponsiveValue(entry);\n }\n continue;\n }\n const token = SEMANTIC_TO_BREAKPOINT[key];\n if (out[token] === undefined) {\n out[token] = normalizeResponsiveValue(entry);\n }\n }\n return out as T;\n}\n\n/**\n * Coerce gap values so `gap={3}` and `gap=\"3\"` both resolve to token key `\"3\"`.\n * Walks responsive objects/arrays. Leaves semantic tokens unchanged.\n * Expands semantic breakpoint keys (`mobile` → `base`, etc.).\n */\nexport function normalizeGapValue<T>(gap: T): T {\n if (typeof gap === 'number' && Number.isFinite(gap)) {\n return String(gap) as T;\n }\n if (Array.isArray(gap)) {\n return gap.map((item) => normalizeGapValue(item)) as T;\n }\n if (gap && typeof gap === 'object') {\n const withBreakpoints = normalizeResponsiveValue(gap) as Record<string, unknown>;\n const out: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(withBreakpoints)) {\n out[key] = normalizeGapValue(value);\n }\n return out as T;\n }\n return gap;\n}\n"],"mappings":"AA+BO,MAAM,cAAc,CAAC,QAAQ,MAAM,MAAM,MAAM,MAAM,KAAK;AAE1D,MAAM,uBAAuB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,MAAM,yBAAyB;AAAA,EACpC,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,cAAc;AAChB;AAGO,MAAM,gBAAgB,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,IAAI,EAAE;AAsBnD,SAAS,qBAAqB,KAAwC;AAC3E,SAAQ,qBAA2C,SAAS,GAAG;AACjE;AAEO,SAAS,kBAAkB,KAAgC;AAChE,SAAQ,YAAkC,SAAS,GAAG;AACxD;AAGO,SAAS,uBAAuB,KAAqB;AAC1D,MAAI,qBAAqB,GAAG,EAAG,QAAO,uBAAuB,GAAG;AAChE,SAAO;AACT;AAOO,SAAS,yBAA4B,OAAa;AACvD,MAAI,SAAS,QAAQ,OAAO,UAAU,YAAY,MAAM,QAAQ,KAAK,GAAG;AACtE,WAAO;AAAA,EACT;AACA,QAAM,QAAQ;AACd,QAAM,MAA+B,CAAC;AAGtC,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAK,GAAG;AAChD,QAAI,kBAAkB,GAAG,KAAK,QAAQ,QAAQ;AAC5C,UAAI,GAAG,IAAI,yBAAyB,KAAK;AAAA,IAC3C;AAAA,EACF;AAEA,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAK,GAAG;AAChD,QAAI,CAAC,qBAAqB,GAAG,GAAG;AAC9B,UAAI,CAAC,kBAAkB,GAAG,KAAK,QAAQ,QAAQ;AAE7C,YAAI,GAAG,IAAI,yBAAyB,KAAK;AAAA,MAC3C;AACA;AAAA,IACF;AACA,UAAM,QAAQ,uBAAuB,GAAG;AACxC,QAAI,IAAI,KAAK,MAAM,QAAW;AAC5B,UAAI,KAAK,IAAI,yBAAyB,KAAK;AAAA,IAC7C;AAAA,EACF;AACA,SAAO;AACT;AAOO,SAAS,kBAAqB,KAAW;AAC9C,MAAI,OAAO,QAAQ,YAAY,OAAO,SAAS,GAAG,GAAG;AACnD,WAAO,OAAO,GAAG;AAAA,EACnB;AACA,MAAI,MAAM,QAAQ,GAAG,GAAG;AACtB,WAAO,IAAI,IAAI,CAAC,SAAS,kBAAkB,IAAI,CAAC;AAAA,EAClD;AACA,MAAI,OAAO,OAAO,QAAQ,UAAU;AAClC,UAAM,kBAAkB,yBAAyB,GAAG;AACpD,UAAM,MAA+B,CAAC;AACtC,eAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,eAAe,GAAG;AAC1D,UAAI,GAAG,IAAI,kBAAkB,KAAK;AAAA,IACpC;AACA,WAAO;AAAA,EACT;AACA,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../../src/helpers/responsive.ts"],"sourcesContent":["import type { ConditionalValue } from '@becket-ui/tokens/types';\n\n/**\n * Responsive props — Chakra-aligned, mobile-first (min-width).\n *\n * Prefer **object syntax** with a `base`/`mobile` value (Chakra docs + community\n * best practice). Arrays are supported for parity but are harder to read.\n *\n * @see https://chakra-ui.com/docs/styling/responsive-design\n */\n\n/** Token breakpoints (Panda / Chakra keys). */\nexport type Breakpoint = 'base' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n/**\n * Semantic aliases for layout in consuming apps.\n * Map onto token breakpoints — do not invent separate media queries.\n */\nexport type SemanticBreakpoint = 'mobile' | 'tablet' | 'desktop' | 'largeDesktop';\n\nexport type BreakpointAlias = Breakpoint | SemanticBreakpoint;\n\n/** Breakpoint-only keys for responsive object props (token + semantic). */\nexport type BreakpointMap<T> = Partial<Record<BreakpointAlias, T>>;\n\n/**\n * Chakra-style responsive value: single value, per-breakpoint object, or array\n * (index 0 = base, 1 = sm, 2 = md, …).\n */\nexport type ResponsiveValue<T> = ConditionalValue<T> | BreakpointMap<T>;\n\nexport const BREAKPOINTS = ['base', 'sm', 'md', 'lg', 'xl', '2xl'] as const satisfies readonly Breakpoint[];\n\nexport const SEMANTIC_BREAKPOINTS = [\n 'mobile',\n 'tablet',\n 'desktop',\n 'largeDesktop',\n] as const satisfies readonly SemanticBreakpoint[];\n\n/** Semantic → token breakpoint (Chakra mobile-first scale). */\nexport const SEMANTIC_TO_BREAKPOINT = {\n mobile: 'base',\n tablet: 'md',\n desktop: 'lg',\n largeDesktop: 'xl',\n} as const satisfies Record<SemanticBreakpoint, Breakpoint>;\n\n/** Becket-authored spacing steps (Fibonacci + zero). */\nexport const SPACING_SCALE = [0, 1, 2, 3, 5, 8, 13, 21, 34] as const;\n\nexport type SpacingStep = (typeof SPACING_SCALE)[number];\n\n/** Semantic aliases preferred in apps. */\nexport type SpacingSemantic = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n/**\n * Values that show up in IDE autocomplete for `gap` / spacing props.\n * Numeric literals + string keys + semantic tokens.\n * `(string & {})` / `(number & {})` keep IntelliSense while allowing escapes.\n */\nexport type SpacingScale =\n | SpacingSemantic\n | SpacingStep\n | `${SpacingStep}`\n | (string & {})\n | (number & {});\n\n/** Gap prop: single value or responsive ConditionalValue. */\nexport type GapValue = ResponsiveValue<SpacingScale>;\n\nexport function isSemanticBreakpoint(key: string): key is SemanticBreakpoint {\n return (SEMANTIC_BREAKPOINTS as readonly string[]).includes(key);\n}\n\nexport function isTokenBreakpoint(key: string): key is Breakpoint {\n return (BREAKPOINTS as readonly string[]).includes(key);\n}\n\n/** Resolve `desktop` → `lg`, leave `md` unchanged. */\nexport function resolveBreakpointAlias(key: string): string {\n if (isSemanticBreakpoint(key)) return SEMANTIC_TO_BREAKPOINT[key];\n return key;\n}\n\n/**\n * Expand semantic keys in a responsive object to token breakpoints.\n * Token keys already present win (not overwritten by semantic aliases).\n * Non-objects / arrays pass through.\n */\nexport function normalizeResponsiveValue<T>(value: T): T {\n if (value == null || typeof value !== 'object' || Array.isArray(value)) {\n return value;\n }\n const input = value as Record<string, unknown>;\n const out: Record<string, unknown> = {};\n\n // Pass 1: token keys\n for (const [key, entry] of Object.entries(input)) {\n if (isTokenBreakpoint(key) || key === 'base') {\n out[key] = normalizeResponsiveValue(entry);\n }\n }\n // Pass 2: semantic → token if token slot empty\n for (const [key, entry] of Object.entries(input)) {\n if (!isSemanticBreakpoint(key)) {\n if (!isTokenBreakpoint(key) && key !== 'base') {\n // Unknown keys (e.g. _hover) — keep as-is for Panda\n out[key] = normalizeResponsiveValue(entry);\n }\n continue;\n }\n const token = SEMANTIC_TO_BREAKPOINT[key];\n if (out[token] === undefined) {\n out[token] = normalizeResponsiveValue(entry);\n }\n }\n return out as T;\n}\n\n/**\n * Coerce gap values so `gap={3}` and `gap=\"3\"` both resolve to token key `\"3\"`.\n * Walks responsive objects/arrays. Leaves semantic tokens unchanged.\n * Expands semantic breakpoint keys (`mobile` → `base`, etc.).\n */\nexport function normalizeGapValue<T>(gap: T): T {\n if (typeof gap === 'number' && Number.isFinite(gap)) {\n return String(gap) as T;\n }\n if (Array.isArray(gap)) {\n return gap.map((item) => normalizeGapValue(item)) as T;\n }\n if (gap && typeof gap === 'object') {\n const withBreakpoints = normalizeResponsiveValue(gap) as Record<string, unknown>;\n const out: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(withBreakpoints)) {\n out[key] = normalizeGapValue(value);\n }\n return out as T;\n }\n return gap;\n}\n"],"mappings":"AA+BO,MAAM,cAAc,CAAC,QAAQ,MAAM,MAAM,MAAM,MAAM,KAAK;AAE1D,MAAM,uBAAuB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,MAAM,yBAAyB;AAAA,EACpC,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,cAAc;AAChB;AAGO,MAAM,gBAAgB,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,IAAI,EAAE;AAsBnD,SAAS,qBAAqB,KAAwC;AAC3E,SAAQ,qBAA2C,SAAS,GAAG;AACjE;AAEO,SAAS,kBAAkB,KAAgC;AAChE,SAAQ,YAAkC,SAAS,GAAG;AACxD;AAGO,SAAS,uBAAuB,KAAqB;AAC1D,MAAI,qBAAqB,GAAG,EAAG,QAAO,uBAAuB,GAAG;AAChE,SAAO;AACT;AAOO,SAAS,yBAA4B,OAAa;AACvD,MAAI,SAAS,QAAQ,OAAO,UAAU,YAAY,MAAM,QAAQ,KAAK,GAAG;AACtE,WAAO;AAAA,EACT;AACA,QAAM,QAAQ;AACd,QAAM,MAA+B,CAAC;AAGtC,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAK,GAAG;AAChD,QAAI,kBAAkB,GAAG,KAAK,QAAQ,QAAQ;AAC5C,UAAI,GAAG,IAAI,yBAAyB,KAAK;AAAA,IAC3C;AAAA,EACF;AAEA,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAK,GAAG;AAChD,QAAI,CAAC,qBAAqB,GAAG,GAAG;AAC9B,UAAI,CAAC,kBAAkB,GAAG,KAAK,QAAQ,QAAQ;AAE7C,YAAI,GAAG,IAAI,yBAAyB,KAAK;AAAA,MAC3C;AACA;AAAA,IACF;AACA,UAAM,QAAQ,uBAAuB,GAAG;AACxC,QAAI,IAAI,KAAK,MAAM,QAAW;AAC5B,UAAI,KAAK,IAAI,yBAAyB,KAAK;AAAA,IAC7C;AAAA,EACF;AACA,SAAO;AACT;AAOO,SAAS,kBAAqB,KAAW;AAC9C,MAAI,OAAO,QAAQ,YAAY,OAAO,SAAS,GAAG,GAAG;AACnD,WAAO,OAAO,GAAG;AAAA,EACnB;AACA,MAAI,MAAM,QAAQ,GAAG,GAAG;AACtB,WAAO,IAAI,IAAI,CAAC,SAAS,kBAAkB,IAAI,CAAC;AAAA,EAClD;AACA,MAAI,OAAO,OAAO,QAAQ,UAAU;AAClC,UAAM,kBAAkB,yBAAyB,GAAG;AACpD,UAAM,MAA+B,CAAC;AACtC,eAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,eAAe,GAAG;AAC1D,UAAI,GAAG,IAAI,kBAAkB,KAAK;AAAA,IACpC;AACA,WAAO;AAAA,EACT;AACA,SAAO;AACT;","names":[]}
@@ -1,5 +1,5 @@
1
1
  /** Shared Storybook knob values. ConditionalValue props infer as object controls — always override. */
2
- export declare const GAP_OPTIONS: readonly ['xs', 'sm', 'md', 'lg', 'xl', '2xs'];
2
+ export declare const GAP_OPTIONS: readonly ['xs', 'sm', 'md', 'lg', 'xl', '2xl'];
3
3
  export declare const FLEX_DIRECTION_OPTIONS: readonly ['row', 'column', 'row-reverse', 'column-reverse'];
4
4
  export declare const STACK_DIRECTION_OPTIONS: readonly ['row', 'column'];
5
5
  export declare const ALIGN_OPTIONS: readonly ['start', 'center', 'end', 'stretch', 'baseline'];
@@ -1,4 +1,4 @@
1
- const GAP_OPTIONS = ["xs", "sm", "md", "lg", "xl", "2xs"];
1
+ const GAP_OPTIONS = ["xs", "sm", "md", "lg", "xl", "2xl"];
2
2
  const FLEX_DIRECTION_OPTIONS = [
3
3
  "row",
4
4
  "column",