@becket-ui/react 0.1.2 → 0.2.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 (41) hide show
  1. package/dist/components/Box.d.ts +20 -0
  2. package/dist/components/Box.d.ts.map +1 -0
  3. package/dist/components/Box.js +21 -0
  4. package/dist/components/Box.js.map +1 -0
  5. package/dist/components/Button.d.ts +15 -12
  6. package/dist/components/Button.d.ts.map +1 -1
  7. package/dist/components/Button.js.map +1 -1
  8. package/dist/components/Container.d.ts +21 -0
  9. package/dist/components/Container.d.ts.map +1 -0
  10. package/dist/components/Container.js +21 -0
  11. package/dist/components/Container.js.map +1 -0
  12. package/dist/components/Glyphs.d.ts +16 -0
  13. package/dist/components/Glyphs.d.ts.map +1 -0
  14. package/dist/components/Glyphs.js +83 -0
  15. package/dist/components/Glyphs.js.map +1 -0
  16. package/dist/components/Icon.d.ts +20 -0
  17. package/dist/components/Icon.d.ts.map +1 -0
  18. package/dist/components/Icon.js +23 -0
  19. package/dist/components/Icon.js.map +1 -0
  20. package/dist/index.d.ts +8 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +34 -0
  23. package/dist/index.js.map +1 -1
  24. package/guides/building-with-becket.md +269 -0
  25. package/package.json +5 -4
  26. package/dist/components/Button.test.js +0 -45
  27. package/dist/components/Button.test.js.map +0 -1
  28. package/dist/components/Dialog.test.js +0 -89
  29. package/dist/components/Dialog.test.js.map +0 -1
  30. package/dist/components/Drawer.test.js +0 -50
  31. package/dist/components/Drawer.test.js.map +0 -1
  32. package/dist/components/Field.test.js +0 -33
  33. package/dist/components/Field.test.js.map +0 -1
  34. package/dist/components/Menu.test.js +0 -69
  35. package/dist/components/Menu.test.js.map +0 -1
  36. package/dist/components/Switch.test.js +0 -28
  37. package/dist/components/Switch.test.js.map +0 -1
  38. package/dist/components/Tabs.test.js +0 -41
  39. package/dist/components/Tabs.test.js.map +0 -1
  40. package/dist/components/Tooltip.test.js +0 -58
  41. package/dist/components/Tooltip.test.js.map +0 -1
@@ -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":[]}
@@ -1,24 +1,27 @@
1
- import type { ElementType } from 'react';
1
+ import type { ComponentPropsWithRef, ComponentPropsWithoutRef, ElementType, ReactElement } from 'react';
2
2
  type ButtonVisual = 'outline' | 'primary' | 'secondary' | 'neutral';
3
3
  type ButtonSize = 'sm' | 'md';
4
4
  type ButtonBorderRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
5
- export type ButtonProps = React.ComponentPropsWithoutRef<'button'> & {
5
+ type ButtonOwnProps = {
6
6
  visual?: ButtonVisual;
7
7
  size?: ButtonSize;
8
8
  borderRadius?: ButtonBorderRadius;
9
9
  withGradient?: boolean;
10
10
  /** Stretch to the parent width. Default is token `sizes.field` (12.5rem). */
11
11
  fullWidth?: boolean;
12
- as?: ElementType;
13
12
  };
14
- export declare const Button: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
15
- visual?: ButtonVisual;
16
- size?: ButtonSize;
17
- borderRadius?: ButtonBorderRadius;
18
- withGradient?: boolean;
19
- /** Stretch to the parent width. Default is token `sizes.field` (12.5rem). */
20
- fullWidth?: boolean;
21
- as?: ElementType;
22
- } & import("react").RefAttributes<HTMLButtonElement>>;
13
+ /**
14
+ * Props follow the rendered element: `<Button as="a" href="/docs">` accepts anchor props,
15
+ * and plain `<Button>` accepts button props only.
16
+ */
17
+ export type ButtonProps<T extends ElementType = 'button'> = ButtonOwnProps & {
18
+ as?: T;
19
+ } & Omit<ComponentPropsWithoutRef<T>, keyof ButtonOwnProps | 'as'>;
20
+ type PolymorphicButton = (<T extends ElementType = 'button'>(props: ButtonProps<T> & {
21
+ ref?: ComponentPropsWithRef<T>['ref'];
22
+ }) => ReactElement | null) & {
23
+ displayName?: string;
24
+ };
25
+ export declare const Button: PolymorphicButton;
23
26
  export {};
24
27
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,KAAK,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;AACpE,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAC9B,KAAK,kBAAkB,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAStE,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,GAAG;IACnE,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB,CAAC;AAMF,eAAO,MAAM,MAAM;aAbR,YAAY;WACd,UAAU;mBACF,kBAAkB;mBAClB,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,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/Button.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport type { ElementType } from 'react';\nimport { button } from '@becket-ui/tokens/recipes';\n\ntype ButtonVisual = 'outline' | 'primary' | 'secondary' | 'neutral';\ntype ButtonSize = 'sm' | 'md';\ntype ButtonBorderRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';\n\nconst VISUAL_TO_RECIPE: Record<ButtonVisual, ButtonVisual> = {\n primary: 'primary',\n secondary: 'secondary',\n neutral: 'neutral',\n outline: 'outline',\n};\n\nexport type ButtonProps = React.ComponentPropsWithoutRef<'button'> & {\n visual?: ButtonVisual;\n size?: ButtonSize;\n borderRadius?: ButtonBorderRadius;\n withGradient?: boolean;\n /** Stretch to the parent width. Default is token `sizes.field` (12.5rem). */\n fullWidth?: boolean;\n as?: ElementType;\n};\n\nfunction mergeClassName(...classes: (string | undefined)[]): string {\n return classes.filter(Boolean).join(' ');\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n visual = 'outline',\n size = 'md',\n borderRadius = 'md',\n withGradient = false,\n fullWidth = false,\n as: ButtonComponent = 'button',\n className,\n ...props\n },\n ref,\n ) => {\n const recipeClassName = (button)({\n visual: VISUAL_TO_RECIPE[visual],\n size,\n borderRadius,\n withGradient,\n fullWidth,\n });\n\n return (\n <ButtonComponent\n ref={ref}\n {...(ButtonComponent === 'button' ? { type: 'button' as const } : {})}\n {...props}\n className={mergeClassName(recipeClassName, className)}\n />\n );\n },\n);\n\nButton.displayName = 'Button';\n"],"mappings":"AAoDM;AApDN,SAAS,kBAAkB;AAE3B,SAAS,cAAc;AAMvB,MAAM,mBAAuD;AAAA,EAC3D,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,SAAS;AACX;AAYA,SAAS,kBAAkB,SAAyC;AAClE,SAAO,QAAQ,OAAO,OAAO,EAAE,KAAK,GAAG;AACzC;AAEO,MAAM,SAAS;AAAA,EACpB,CACE;AAAA,IACE,SAAS;AAAA,IACT,OAAO;AAAA,IACP,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,IAAI,kBAAkB;AAAA,IACtB;AAAA,IACA,GAAG;AAAA,EACL,GACA,QACG;AACH,UAAM,kBAAmB,OAAQ;AAAA,MAC/B,QAAQ,iBAAiB,MAAM;AAAA,MAC/B;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAED,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACC,GAAI,oBAAoB,WAAW,EAAE,MAAM,SAAkB,IAAI,CAAC;AAAA,QAClE,GAAG;AAAA,QACJ,WAAW,eAAe,iBAAiB,SAAS;AAAA;AAAA,IACtD;AAAA,EAEJ;AACF;AAEA,OAAO,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/components/Button.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport type { ComponentPropsWithRef, ComponentPropsWithoutRef, ElementType, ReactElement } from 'react';\nimport { button } from '@becket-ui/tokens/recipes';\n\ntype ButtonVisual = 'outline' | 'primary' | 'secondary' | 'neutral';\ntype ButtonSize = 'sm' | 'md';\ntype ButtonBorderRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';\n\nconst VISUAL_TO_RECIPE: Record<ButtonVisual, ButtonVisual> = {\n primary: 'primary',\n secondary: 'secondary',\n neutral: 'neutral',\n outline: 'outline',\n};\n\ntype ButtonOwnProps = {\n visual?: ButtonVisual;\n size?: ButtonSize;\n borderRadius?: ButtonBorderRadius;\n withGradient?: boolean;\n /** Stretch to the parent width. Default is token `sizes.field` (12.5rem). */\n fullWidth?: boolean;\n};\n\n/**\n * Props follow the rendered element: `<Button as=\"a\" href=\"/docs\">` accepts anchor props,\n * and plain `<Button>` accepts button props only.\n */\nexport type ButtonProps<T extends ElementType = 'button'> = ButtonOwnProps & {\n as?: T;\n} & Omit<ComponentPropsWithoutRef<T>, keyof ButtonOwnProps | 'as'>;\n\ntype PolymorphicButton = (<T extends ElementType = 'button'>(\n props: ButtonProps<T> & { ref?: ComponentPropsWithRef<T>['ref'] },\n) => ReactElement | null) & { displayName?: string };\n\nfunction mergeClassName(...classes: (string | undefined)[]): string {\n return classes.filter(Boolean).join(' ');\n}\n\n// forwardRef can't express a generic component; the cast restores the per-element prop types.\nexport const Button = forwardRef<HTMLElement, ButtonOwnProps & { as?: ElementType; className?: string }>(\n (\n {\n visual = 'outline',\n size = 'md',\n borderRadius = 'md',\n withGradient = false,\n fullWidth = false,\n as: ButtonComponent = 'button',\n className,\n ...props\n },\n ref,\n ) => {\n const recipeClassName = (button)({\n visual: VISUAL_TO_RECIPE[visual],\n size,\n borderRadius,\n withGradient,\n fullWidth,\n });\n\n return (\n <ButtonComponent\n ref={ref}\n {...(ButtonComponent === 'button' ? { type: 'button' as const } : {})}\n {...props}\n className={mergeClassName(recipeClassName, className)}\n />\n );\n },\n) as PolymorphicButton;\n\nButton.displayName = 'Button';\n"],"mappings":"AAgEM;AAhEN,SAAS,kBAAkB;AAE3B,SAAS,cAAc;AAMvB,MAAM,mBAAuD;AAAA,EAC3D,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,SAAS;AACX;AAuBA,SAAS,kBAAkB,SAAyC;AAClE,SAAO,QAAQ,OAAO,OAAO,EAAE,KAAK,GAAG;AACzC;AAGO,MAAM,SAAS;AAAA,EACpB,CACE;AAAA,IACE,SAAS;AAAA,IACT,OAAO;AAAA,IACP,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,IAAI,kBAAkB;AAAA,IACtB;AAAA,IACA,GAAG;AAAA,EACL,GACA,QACG;AACH,UAAM,kBAAmB,OAAQ;AAAA,MAC/B,QAAQ,iBAAiB,MAAM;AAAA,MAC/B;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAED,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACC,GAAI,oBAAoB,WAAW,EAAE,MAAM,SAAkB,IAAI,CAAC;AAAA,QAClE,GAAG;AAAA,QACJ,WAAW,eAAe,iBAAiB,SAAS;AAAA;AAAA,IACtD;AAAA,EAEJ;AACF;AAEA,OAAO,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":[]}
@@ -0,0 +1,16 @@
1
+ import { type IconProps } from './Icon';
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";
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 '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AC,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":[]}
@@ -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":[]}
package/dist/index.d.ts CHANGED
@@ -17,6 +17,10 @@ export { Select } from './components/Select';
17
17
  export { Textarea } from './components/Textarea';
18
18
  export { Card, CardHeader, CardBody, CardFooter, CardTitle, CardDescription, } from './components/Card';
19
19
  export { SimpleGrid } from './components/SimpleGrid';
20
+ export { Container } from './components/Container';
21
+ export type { ContainerProps } from './components/Container';
22
+ export { Box } from './components/Box';
23
+ export type { BoxProps } from './components/Box';
20
24
  export { Hide } from './components/Hide';
21
25
  export type { HideProps } from './components/Hide';
22
26
  export { Tooltip } from './components/Tooltip';
@@ -27,6 +31,10 @@ export { Menu, MenuItem } from './components/Menu';
27
31
  export { Tabs, TabList, Tab, TabPanel } from './components/Tabs';
28
32
  export { Table, TableCaption, TableHeader, TableBody, TableFooter, TableRow, TableColumnHeader, TableCell, Thead, Tbody, Tfoot, Tr, Th, Td, } from './components/Table';
29
33
  export { Spinner } from './components/Spinner';
34
+ export { Icon } from './components/Icon';
35
+ export type { IconProps } from './components/Icon';
36
+ export { CheckIcon, ChevronDownIcon, ChevronRightIcon, CloseIcon, CopyIcon, ExternalLinkIcon, InfoIcon, LinkIcon, MenuIcon, MoonIcon, SearchIcon, SunIcon, WarningIcon, } from './components/Glyphs';
37
+ export type { GlyphProps } from './components/Glyphs';
30
38
  export { Link } from './components/Link';
31
39
  export { Separator } from './components/Separator';
32
40
  export type { LabelCustomColors, LabelVisual } from './helpers/labelColors';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC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B,EACtB,aAAa,EACb,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -30,6 +30,8 @@ import {
30
30
  CardDescription
31
31
  } from "./components/Card";
32
32
  import { SimpleGrid } from "./components/SimpleGrid";
33
+ import { Container } from "./components/Container";
34
+ import { Box } from "./components/Box";
33
35
  import { Hide } from "./components/Hide";
34
36
  import { Tooltip } from "./components/Tooltip";
35
37
  import {
@@ -67,6 +69,22 @@ import {
67
69
  Td
68
70
  } from "./components/Table";
69
71
  import { Spinner } from "./components/Spinner";
72
+ import { Icon } from "./components/Icon";
73
+ import {
74
+ CheckIcon,
75
+ ChevronDownIcon,
76
+ ChevronRightIcon,
77
+ CloseIcon,
78
+ CopyIcon,
79
+ ExternalLinkIcon,
80
+ InfoIcon,
81
+ LinkIcon,
82
+ MenuIcon,
83
+ MoonIcon,
84
+ SearchIcon,
85
+ SunIcon,
86
+ WarningIcon
87
+ } from "./components/Glyphs";
70
88
  import { Link } from "./components/Link";
71
89
  import { Separator } from "./components/Separator";
72
90
  import {
@@ -81,6 +99,7 @@ import {
81
99
  export {
82
100
  BREAKPOINTS,
83
101
  Badge,
102
+ Box,
84
103
  Button,
85
104
  Card,
86
105
  CardBody,
@@ -88,7 +107,13 @@ export {
88
107
  CardFooter,
89
108
  CardHeader,
90
109
  CardTitle,
110
+ CheckIcon,
91
111
  Checkbox,
112
+ ChevronDownIcon,
113
+ ChevronRightIcon,
114
+ CloseIcon,
115
+ Container,
116
+ CopyIcon,
92
117
  Dialog,
93
118
  DialogBody,
94
119
  DialogClose,
@@ -101,6 +126,7 @@ export {
101
126
  DrawerFooter,
102
127
  DrawerHeader,
103
128
  DrawerTitle,
129
+ ExternalLinkIcon,
104
130
  Field,
105
131
  FieldControl,
106
132
  FieldError,
@@ -112,19 +138,26 @@ export {
112
138
  HStack,
113
139
  Heading,
114
140
  Hide,
141
+ Icon,
142
+ InfoIcon,
115
143
  Link,
144
+ LinkIcon,
116
145
  Menu,
146
+ MenuIcon,
117
147
  MenuItem,
148
+ MoonIcon,
118
149
  Radio,
119
150
  RadioGroup,
120
151
  SEMANTIC_BREAKPOINTS,
121
152
  SEMANTIC_TO_BREAKPOINT,
122
153
  SPACING_SCALE,
154
+ SearchIcon,
123
155
  Select,
124
156
  Separator,
125
157
  SimpleGrid,
126
158
  Spinner,
127
159
  Stack,
160
+ SunIcon,
128
161
  Switch,
129
162
  Tab,
130
163
  TabList,
@@ -150,6 +183,7 @@ export {
150
183
  Tooltip,
151
184
  Tr,
152
185
  VStack,
186
+ WarningIcon,
153
187
  normalizeGapValue,
154
188
  normalizeResponsiveValue,
155
189
  resolveBreakpointAlias,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { Button } from './components/Button';\nexport { Heading } from './components/Heading';\nexport { Text } from './components/Text';\nexport { Flex } from './components/Flex';\nexport { Stack, HStack, VStack } from './components/Stack';\nexport { Tag } from './components/Tag';\nexport { Badge } from './components/Badge';\nexport { Switch } from './components/Switch';\nexport type { SwitchProps } from './components/Switch';\nexport {\n Field,\n FieldLabel,\n FieldHelper,\n FieldError,\n FieldControl,\n FieldSelect,\n FieldTextarea,\n useField,\n} from './components/Field';\nexport type { FieldSize, FieldContextValue } from './components/Field';\nexport { TextField } from './components/TextField';\nexport { Checkbox } from './components/Checkbox';\nexport { Radio, RadioGroup } from './components/Radio';\nexport type { RadioProps, RadioGroupProps } from './components/Radio';\nexport { Select } from './components/Select';\nexport { Textarea } from './components/Textarea';\nexport {\n Card,\n CardHeader,\n CardBody,\n CardFooter,\n CardTitle,\n CardDescription,\n} from './components/Card';\nexport { SimpleGrid } from './components/SimpleGrid';\nexport { Hide } from './components/Hide';\nexport type { HideProps } from './components/Hide';\nexport { Tooltip } from './components/Tooltip';\nexport type { TooltipPlacement, TooltipProps } from './components/Tooltip';\nexport {\n Dialog,\n DialogHeader,\n DialogBody,\n DialogFooter,\n DialogTitle,\n DialogClose,\n} from './components/Dialog';\nexport {\n Drawer,\n DrawerHeader,\n DrawerBody,\n DrawerFooter,\n DrawerTitle,\n DrawerClose,\n} from './components/Drawer';\nexport { Menu, MenuItem } from './components/Menu';\nexport { Tabs, TabList, Tab, TabPanel } from './components/Tabs';\nexport {\n Table,\n TableCaption,\n TableHeader,\n TableBody,\n TableFooter,\n TableRow,\n TableColumnHeader,\n TableCell,\n Thead,\n Tbody,\n Tfoot,\n Tr,\n Th,\n Td,\n} from './components/Table';\nexport { Spinner } from './components/Spinner';\nexport { Link } from './components/Link';\nexport { Separator } from './components/Separator';\nexport type { LabelCustomColors, LabelVisual } from './helpers/labelColors';\nexport type {\n Breakpoint,\n BreakpointAlias,\n BreakpointMap,\n ResponsiveValue,\n GapValue,\n SpacingScale,\n SpacingStep,\n SpacingSemantic,\n SemanticBreakpoint,\n} from './helpers/responsive';\nexport {\n BREAKPOINTS,\n SEMANTIC_BREAKPOINTS,\n SEMANTIC_TO_BREAKPOINT,\n SPACING_SCALE,\n normalizeResponsiveValue,\n normalizeGapValue,\n resolveBreakpointAlias,\n} from './helpers/responsive';\n"],"mappings":"AAAA,SAAS,cAAc;AACvB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,OAAO,QAAQ,cAAc;AACtC,SAAS,WAAW;AACpB,SAAS,aAAa;AACtB,SAAS,cAAc;AAEvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB;AACzB,SAAS,OAAO,kBAAkB;AAElC,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AAErB,SAAS,eAAe;AAExB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,MAAM,gBAAgB;AAC/B,SAAS,MAAM,SAAS,KAAK,gBAAgB;AAC7C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAa1B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { Button } from './components/Button';\nexport { Heading } from './components/Heading';\nexport { Text } from './components/Text';\nexport { Flex } from './components/Flex';\nexport { Stack, HStack, VStack } from './components/Stack';\nexport { Tag } from './components/Tag';\nexport { Badge } from './components/Badge';\nexport { Switch } from './components/Switch';\nexport type { SwitchProps } from './components/Switch';\nexport {\n Field,\n FieldLabel,\n FieldHelper,\n FieldError,\n FieldControl,\n FieldSelect,\n FieldTextarea,\n useField,\n} from './components/Field';\nexport type { FieldSize, FieldContextValue } from './components/Field';\nexport { TextField } from './components/TextField';\nexport { Checkbox } from './components/Checkbox';\nexport { Radio, RadioGroup } from './components/Radio';\nexport type { RadioProps, RadioGroupProps } from './components/Radio';\nexport { Select } from './components/Select';\nexport { Textarea } from './components/Textarea';\nexport {\n Card,\n CardHeader,\n CardBody,\n CardFooter,\n CardTitle,\n CardDescription,\n} from './components/Card';\nexport { SimpleGrid } from './components/SimpleGrid';\nexport { Container } from './components/Container';\nexport type { ContainerProps } from './components/Container';\nexport { Box } from './components/Box';\nexport type { BoxProps } from './components/Box';\nexport { Hide } from './components/Hide';\nexport type { HideProps } from './components/Hide';\nexport { Tooltip } from './components/Tooltip';\nexport type { TooltipPlacement, TooltipProps } from './components/Tooltip';\nexport {\n Dialog,\n DialogHeader,\n DialogBody,\n DialogFooter,\n DialogTitle,\n DialogClose,\n} from './components/Dialog';\nexport {\n Drawer,\n DrawerHeader,\n DrawerBody,\n DrawerFooter,\n DrawerTitle,\n DrawerClose,\n} from './components/Drawer';\nexport { Menu, MenuItem } from './components/Menu';\nexport { Tabs, TabList, Tab, TabPanel } from './components/Tabs';\nexport {\n Table,\n TableCaption,\n TableHeader,\n TableBody,\n TableFooter,\n TableRow,\n TableColumnHeader,\n TableCell,\n Thead,\n Tbody,\n Tfoot,\n Tr,\n Th,\n Td,\n} from './components/Table';\nexport { Spinner } from './components/Spinner';\nexport { Icon } from './components/Icon';\nexport type { IconProps } from './components/Icon';\nexport {\n CheckIcon,\n ChevronDownIcon,\n ChevronRightIcon,\n CloseIcon,\n CopyIcon,\n ExternalLinkIcon,\n InfoIcon,\n LinkIcon,\n MenuIcon,\n MoonIcon,\n SearchIcon,\n SunIcon,\n WarningIcon,\n} from './components/Glyphs';\nexport type { GlyphProps } from './components/Glyphs';\nexport { Link } from './components/Link';\nexport { Separator } from './components/Separator';\nexport type { LabelCustomColors, LabelVisual } from './helpers/labelColors';\nexport type {\n Breakpoint,\n BreakpointAlias,\n BreakpointMap,\n ResponsiveValue,\n GapValue,\n SpacingScale,\n SpacingStep,\n SpacingSemantic,\n SemanticBreakpoint,\n} from './helpers/responsive';\nexport {\n BREAKPOINTS,\n SEMANTIC_BREAKPOINTS,\n SEMANTIC_TO_BREAKPOINT,\n SPACING_SCALE,\n normalizeResponsiveValue,\n normalizeGapValue,\n resolveBreakpointAlias,\n} from './helpers/responsive';\n"],"mappings":"AAAA,SAAS,cAAc;AACvB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,OAAO,QAAQ,cAAc;AACtC,S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