@oztix/roadie-components 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- "use client";
1
+ import { Button as Button$1 } from 'react-aria-components';
2
+ import { cva, cx } from '@oztix/roadie-core/css';
3
+ import { jsx } from 'react/jsx-runtime';
4
+ import 'react';
5
+ import { styled } from '@oztix/roadie-core/jsx';
2
6
 
3
- // src/components/Button/index.tsx
4
- import { Button as AriaButton } from "react-aria-components";
5
- import { cva, cx } from "@oztix/roadie-core/css";
6
- import { jsx } from "react/jsx-runtime";
7
7
  var button = cva({
8
8
  base: {
9
9
  display: "inline-flex",
@@ -376,7 +376,7 @@ function Button({
376
376
  ...props
377
377
  }) {
378
378
  return /* @__PURE__ */ jsx(
379
- AriaButton,
379
+ Button$1,
380
380
  {
381
381
  onPress,
382
382
  isDisabled,
@@ -386,10 +386,6 @@ function Button({
386
386
  }
387
387
  );
388
388
  }
389
-
390
- // src/components/Code/index.tsx
391
- import "react";
392
- import { styled } from "@oztix/roadie-core/jsx";
393
389
  var Code = styled("code", {
394
390
  base: {
395
391
  backgroundColor: "bg.subtle",
@@ -413,32 +409,20 @@ var Code = styled("code", {
413
409
  }
414
410
  });
415
411
  Code.displayName = "Code";
416
-
417
- // src/components/Heading/index.tsx
418
- import "react";
419
- import { styled as styled2 } from "@oztix/roadie-core/jsx";
420
- var Heading = styled2("h2", {
412
+ var Heading = styled("h2", {
421
413
  base: {
422
414
  textStyle: "display.ui"
423
415
  }
424
416
  });
425
417
  Heading.displayName = "Heading";
426
-
427
- // src/components/Text/index.tsx
428
- import "react";
429
- import { styled as styled3 } from "@oztix/roadie-core/jsx";
430
- var StyledText = styled3("span", {
418
+ var StyledText = styled("span", {
431
419
  base: {
432
420
  textStyle: "ui"
433
421
  }
434
422
  });
435
423
  var Text = StyledText;
436
424
  Text.displayName = "Text";
437
-
438
- // src/components/View/index.tsx
439
- import "react";
440
- import { styled as styled4 } from "@oztix/roadie-core/jsx";
441
- var StyledView = styled4("div", {
425
+ var StyledView = styled("div", {
442
426
  base: {
443
427
  display: "flex",
444
428
  position: "relative",
@@ -453,11 +437,7 @@ var StyledView = styled4("div", {
453
437
  });
454
438
  var View = StyledView;
455
439
  View.displayName = "View";
456
- export {
457
- Button,
458
- Code,
459
- Heading,
460
- Text,
461
- View
462
- };
440
+
441
+ export { Button, Code, Heading, Text, View };
442
+ //# sourceMappingURL=out.js.map
463
443
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Button/index.tsx","../src/components/Code/index.tsx","../src/components/Heading/index.tsx","../src/components/Text/index.tsx","../src/components/View/index.tsx"],"sourcesContent":["import { Button as AriaButton, type ButtonProps as AriaButtonProps } from 'react-aria-components'\n\nimport { cva, cx } from '@oztix/roadie-core/css'\n\n/**\n * Button appearance variants\n */\ntype ButtonAppearance = 'solid' | 'outline' | 'ghost'\n\n/**\n * Button size variants\n */\ntype ButtonSize = 'sm' | 'md' | 'lg'\n\n/**\n * Button color variants\n */\ntype Emphasis = 'subtle' | 'accent' | 'inverse' | 'success' | 'warning' | 'danger'\n\n/**\n * Props for the Button component\n */\nexport interface ButtonProps extends Omit<AriaButtonProps, 'className'> {\n /** The visual style of the button */\n appearance?: ButtonAppearance\n /** The size of the button */\n size?: ButtonSize\n /** The color of the button */\n emphasis?: Emphasis\n /** Additional class names to be applied to the button */\n className?: string\n}\n\nconst button = cva({\n base: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'transparent',\n borderRadius: '050',\n fontWeight: 'semibold',\n fontFamily: 'ui',\n cursor: 'pointer',\n border: '1px solid',\n transition: 'all 0.2s',\n _disabled: {\n opacity: 0.4,\n cursor: 'not-allowed',\n backgroundColor: 'bg.disabled',\n color: 'fg.disabled'\n },\n _focus: {\n outline: 'none'\n },\n _focusVisible: {\n outline: '2px solid',\n outlineColor: 'border.focused'\n }\n },\n variants: {\n appearance: {\n solid: {\n backgroundColor: 'bg.subtle',\n borderColor: 'border.subtle',\n color: 'fg.subtle',\n _hover: {\n backgroundColor: 'bg.subtle.hovered'\n },\n _active: {\n backgroundColor: 'bg.subtle.pressed'\n }\n },\n outline: {\n border: '1px solid',\n borderColor: 'border.subtle',\n color: 'fg.subtle',\n _hover: {\n color: 'fg',\n borderColor: 'border.hovered',\n backgroundColor: 'bg.hovered'\n },\n _active: {\n color: 'fg',\n borderColor: 'border.pressed',\n backgroundColor: 'bg.pressed'\n }\n },\n ghost: {\n color: 'fg.subtle',\n borderColor: 'transparent',\n _hover: {\n color: 'fg',\n backgroundColor: 'bg.hovered'\n },\n _active: {\n color: 'fg',\n backgroundColor: 'bg.pressed'\n }\n }\n },\n size: {\n sm: {\n minHeight: '400',\n fontSize: 'sm',\n px: '200',\n py: '075'\n },\n md: {\n minHeight: '500',\n fontSize: 'md',\n px: '200',\n py: '100'\n },\n lg: {\n minHeight: '600',\n fontSize: 'lg',\n px: '300',\n py: '150'\n }\n },\n emphasis: {\n subtle: {\n color: 'fg.subtle'\n },\n accent: {\n color: 'fg.accent'\n },\n inverse: {\n color: 'fg.inverse'\n },\n success: {\n color: 'fg.success'\n },\n warning: {\n color: 'fg.warning'\n },\n danger: {\n color: 'fg.danger'\n }\n }\n },\n compoundVariants: [\n {\n appearance: 'solid',\n emphasis: 'subtle',\n css: {\n color: 'fg.subtle',\n _hover: {\n color: 'fg'\n },\n _active: {\n color: 'fg.subtle'\n }\n }\n },\n {\n appearance: 'solid',\n emphasis: 'accent',\n css: {\n backgroundColor: 'bg.accent.bold',\n color: 'fg.accent.inverse',\n borderColor: 'border.accent',\n _hover: {\n color: 'fg.inverse',\n backgroundColor: 'bg.accent.bold.hovered'\n },\n _active: {\n backgroundColor: 'bg.accent.bold.pressed'\n }\n }\n },\n {\n appearance: 'solid',\n emphasis: 'inverse',\n css: {\n backgroundColor: 'bg.inverse',\n color: 'fg.inverse',\n _hover: {\n backgroundColor: 'bg.inverse.hovered'\n },\n _active: {\n backgroundColor: 'bg.inverse.pressed'\n }\n }\n },\n {\n appearance: 'solid',\n emphasis: 'success',\n css: {\n backgroundColor: 'bg.success.bold',\n color: 'fg.success.inverse',\n borderColor: 'border.success',\n _hover: {\n backgroundColor: 'bg.success.bold.hovered'\n },\n _active: {\n backgroundColor: 'bg.success.bold.pressed'\n }\n }\n },\n {\n appearance: 'solid',\n emphasis: 'warning',\n css: {\n backgroundColor: 'bg.warning.bold',\n color: 'fg.warning.inverse',\n borderColor: 'border.warning',\n _hover: {\n backgroundColor: 'bg.warning.bold.hovered'\n },\n _active: {\n backgroundColor: 'bg.warning.bold.pressed'\n }\n }\n },\n {\n appearance: 'solid',\n emphasis: 'danger',\n css: {\n backgroundColor: 'bg.danger.bold',\n color: 'fg.danger.inverse',\n borderColor: 'border.danger',\n _hover: {\n backgroundColor: 'bg.danger.bold.hovered'\n },\n _active: {\n backgroundColor: 'bg.danger.bold.pressed'\n }\n }\n },\n {\n appearance: 'outline',\n emphasis: 'accent',\n css: {\n borderColor: 'border.accent',\n _hover: {\n color: 'fg.accent.hovered',\n borderColor: 'border.accent.hovered',\n backgroundColor: 'bg.accent.hovered'\n },\n _active: {\n color: 'fg.accent.pressed',\n borderColor: 'border.accent.pressed',\n backgroundColor: 'bg.accent.pressed'\n }\n }\n },\n {\n appearance: 'outline',\n emphasis: 'inverse',\n css: {\n borderColor: 'border.bold',\n color: 'fg',\n _hover: {\n color: 'fg.inverse.hovered',\n borderColor: 'border.bold.hovered',\n backgroundColor: 'bg.hovered'\n },\n _active: {\n color: 'fg.inverse.pressed',\n borderColor: 'border.bold.pressed',\n backgroundColor: 'bg.pressed'\n }\n }\n },\n {\n appearance: 'outline',\n emphasis: 'success',\n css: {\n borderColor: 'border.success',\n _hover: {\n color: 'fg.success.hovered',\n borderColor: 'border.success.hovered',\n backgroundColor: 'bg.success.hovered'\n },\n _active: {\n color: 'fg.success.pressed',\n borderColor: 'border.success.pressed',\n backgroundColor: 'bg.success.pressed'\n }\n }\n },\n {\n appearance: 'outline',\n emphasis: 'warning',\n css: {\n borderColor: 'border.warning',\n _hover: {\n color: 'fg.warning.hovered',\n borderColor: 'border.warning.hovered',\n backgroundColor: 'bg.warning.hovered'\n },\n _active: {\n color: 'fg.warning.pressed',\n borderColor: 'border.warning.pressed',\n backgroundColor: 'bg.warning.pressed'\n }\n }\n },\n {\n appearance: 'outline',\n emphasis: 'danger',\n css: {\n borderColor: 'border.danger',\n _hover: {\n color: 'fg.danger.hovered',\n borderColor: 'border.danger.hovered',\n backgroundColor: 'bg.danger.hovered'\n },\n _active: {\n color: 'fg.danger.pressed',\n borderColor: 'border.danger.pressed',\n backgroundColor: 'bg.danger.pressed'\n }\n }\n },\n {\n appearance: 'ghost',\n emphasis: 'accent',\n css: {\n _hover: {\n color: 'fg.accent.hovered',\n backgroundColor: 'bg.accent.hovered'\n },\n _active: {\n color: 'fg.accent.pressed',\n backgroundColor: 'bg.accent.pressed'\n }\n }\n },\n {\n appearance: 'ghost',\n emphasis: 'inverse',\n css: {\n color: 'fg',\n _hover: {\n color: 'fg.inverse.hovered',\n backgroundColor: 'bg.hovered'\n },\n _active: {\n color: 'fg.inverse.pressed',\n backgroundColor: 'bg.pressed'\n }\n }\n },\n {\n appearance: 'ghost',\n emphasis: 'success',\n css: {\n _hover: {\n color: 'fg.success.hovered',\n backgroundColor: 'bg.success.hovered'\n },\n _active: {\n color: 'fg.success.pressed',\n backgroundColor: 'bg.success.pressed'\n }\n }\n },\n {\n appearance: 'ghost',\n emphasis: 'warning',\n css: {\n _hover: {\n color: 'fg.warning.hovered',\n backgroundColor: 'bg.warning.hovered'\n },\n _active: {\n color: 'fg.warning.pressed',\n backgroundColor: 'bg.warning.pressed'\n }\n }\n },\n {\n appearance: 'ghost',\n emphasis: 'danger',\n css: {\n _hover: {\n color: 'fg.danger.hovered',\n backgroundColor: 'bg.danger.hovered'\n },\n _active: {\n color: 'fg.danger.pressed',\n backgroundColor: 'bg.danger.pressed'\n }\n }\n }\n ],\n defaultVariants: {\n appearance: 'solid',\n size: 'md',\n emphasis: 'subtle'\n }\n})\n\nexport function Button({\n children,\n appearance = 'solid',\n size = 'md',\n emphasis = 'subtle',\n isDisabled = false,\n onPress,\n className,\n ...props\n}: ButtonProps) {\n return (\n <AriaButton\n onPress={onPress}\n isDisabled={isDisabled}\n className={cx(button({ appearance, size, emphasis }), className)}\n {...props}\n >\n {children}\n </AriaButton>\n )\n}\n","import React from 'react'\n\nimport type { HTMLStyledProps } from '@oztix/roadie-core/jsx'\nimport { styled } from '@oztix/roadie-core/jsx'\nimport type { JsxStyleProps } from '@oztix/roadie-core/types'\n\n/**\n * A code component that inherits from Text and renders as a code element\n */\nexport interface CodeProps extends HTMLStyledProps<'code'>, JsxStyleProps {\n /**\n * The appearance of the code block\n * @default 'outline'\n */\n appearance?: 'outline' | 'ghost'\n}\n\nexport const Code = styled('code', {\n base: {\n backgroundColor: 'bg.subtle',\n textStyle: 'code',\n px: '050',\n borderRadius: '050',\n border: '1px solid'\n },\n variants: {\n appearance: {\n outline: {\n borderColor: 'border.subtlest'\n },\n ghost: {\n borderColor: 'transparent'\n }\n }\n },\n defaultVariants: {\n appearance: 'outline'\n }\n}) as React.ForwardRefExoticComponent<CodeProps>\n\nCode.displayName = 'Code'\n","import React from 'react'\n\nimport type { HTMLStyledProps } from '@oztix/roadie-core/jsx'\nimport { styled } from '@oztix/roadie-core/jsx'\nimport type { JsxStyleProps } from '@oztix/roadie-core/types'\n\ntype HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n\n/**\n * A heading component that uses display styles for titles and section headers\n */\nexport interface HeadingProps extends HTMLStyledProps<'h2'>, JsxStyleProps {\n /**\n * The heading level to render\n * @default 'h2'\n */\n as?: HeadingLevel\n /**\n * The text style to use for the heading\n * @default 'display.ui'\n */\n textStyle?: Extract<JsxStyleProps['textStyle'], 'display' | `display${string}`>\n}\n\nexport const Heading = styled('h2', {\n base: {\n textStyle: 'display.ui'\n }\n}) as React.ForwardRefExoticComponent<HeadingProps>\n\nHeading.displayName = 'Heading'\n","import type { ElementType } from 'react'\nimport React from 'react'\n\nimport { styled } from '@oztix/roadie-core/jsx'\nimport type { JsxStyleProps } from '@oztix/roadie-core/types'\n\ntype AsProp<C extends ElementType> = {\n as?: C\n}\n\ntype PropsToOmit<C extends ElementType, P> = keyof (AsProp<C> & P)\n\n/**\n * A foundational text component that is responsive and customizable.\n */\nexport interface TextProps<C extends ElementType = 'span'> {\n /**\n * The HTML element or React component to render the Text as\n * @default 'span'\n */\n as?: C\n /**\n * Controls the font family, line height, and letter spacing of the text.\n * @default 'ui'\n */\n textStyle?: JsxStyleProps['textStyle']\n /**\n * The color of the text\n * @default 'fg'\n */\n color?: Extract<JsxStyleProps['color'], `fg${string}` | 'fg'>\n /**\n * The line clamp of the text. Useful for limiting the number of lines of text in a component.\n * @default 'none'\n */\n lineClamp?: JsxStyleProps['lineClamp']\n}\n\nexport type PolymorphicTextProps<C extends ElementType> = TextProps<C> &\n Omit<React.ComponentPropsWithRef<C>, PropsToOmit<C, TextProps>> &\n JsxStyleProps\n\ntype TextComponent = {\n <C extends ElementType = 'span'>(props: PolymorphicTextProps<C>): React.ReactElement | null\n displayName?: string\n}\n\nconst StyledText = styled('span', {\n base: {\n textStyle: 'ui'\n }\n})\n\nexport const Text = StyledText as TextComponent\n\nText.displayName = 'Text'\n","import type { ElementType } from 'react'\nimport React from 'react'\n\nimport { styled } from '@oztix/roadie-core/jsx'\nimport type { JsxStyleProps } from '@oztix/roadie-core/types'\n\ntype AsProp<C extends ElementType> = {\n as?: C\n}\n\ntype PropsToOmit<C extends ElementType, P> = keyof (AsProp<C> & P)\n\n/**\n * A foundational layout component that provides a flexible container with sensible defaults.\n */\nexport interface ViewProps<C extends ElementType = 'div'> {\n /**\n * The HTML element or React component to render the View as\n * @default 'div'\n */\n as?: C\n /**\n * The display property of the View\n * @default 'flex'\n */\n display?: JsxStyleProps['display']\n /**\n * The position property of the View\n * @default 'relative'\n */\n position?: JsxStyleProps['position']\n /**\n * The flex direction property of the View\n * @default 'column'\n */\n flexDirection?: JsxStyleProps['flexDirection']\n /**\n * The flex wrap property of the View\n * @default 'nowrap'\n */\n flexWrap?: JsxStyleProps['flexWrap']\n /**\n * The align items property of the View\n * @default 'stretch'\n */\n alignItems?: JsxStyleProps['alignItems']\n /**\n * The align self property of the View\n * @default 'flex-start'\n */\n alignSelf?: JsxStyleProps['alignSelf']\n /**\n * The align content property of the View\n * @default 'flex-start'\n */\n alignContent?: JsxStyleProps['alignContent']\n /**\n * The justify content property of the View\n * @default 'flex-start'\n */\n justifyContent?: JsxStyleProps['justifyContent']\n /**\n * The min height property of the View\n * @default '0'\n */\n minHeight?: JsxStyleProps['minHeight']\n /**\n * The min width property of the View\n * @default '0'\n */\n minWidth?: JsxStyleProps['minWidth']\n}\n\nexport type PolymorphicViewProps<C extends ElementType> = ViewProps<C> &\n Omit<React.ComponentPropsWithRef<C>, PropsToOmit<C, ViewProps>> &\n JsxStyleProps\n\ntype ViewComponent = {\n <C extends ElementType = 'div'>(props: PolymorphicViewProps<C>): React.ReactElement | null\n displayName?: string\n}\n\nconst StyledView = styled('div', {\n base: {\n display: 'flex',\n position: 'relative',\n flexDirection: 'column',\n flexWrap: 'nowrap',\n alignItems: 'stretch',\n alignContent: 'flex-start',\n justifyContent: 'flex-start',\n minHeight: 0,\n minWidth: 0\n }\n})\n\nexport const View = StyledView as ViewComponent\n\nView.displayName = 'View'\n"],"mappings":";;;AAAA,SAAS,UAAU,kBAAuD;AAE1E,SAAS,KAAK,UAAU;AAoZpB;AArXJ,IAAM,SAAS,IAAI;AAAA,EACjB,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,QAAQ;AAAA,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AAY;AAAA,EACd;AACF,CAAC;AAED,KAAK,cAAc;;;ACxCnB,OAAkB;AAGlB,SAAS,UAAAA,eAAc;AAqBhB,IAAM,UAAUA,QAAO,MAAM;AAAA,EAClC,MAAM;AAAA,IACJ,WAAW;AAAA,EACb;AACF,CAAC;AAED,QAAQ,cAAc;;;AC7BtB,OAAkB;AAElB,SAAS,UAAAC,eAAc;AA4CvB,IAAM,aAAaA,QAAO,QAAQ;AAAA,EAChC,MAAM;AAAA,IACJ,WAAW;AAAA,EACb;AACF,CAAC;AAEM,IAAM,OAAO;AAEpB,KAAK,cAAc;;;ACtDnB,OAAkB;AAElB,SAAS,UAAAC,eAAc;AA+EvB,IAAM,aAAaA,QAAO,OAAO;AAAA,EAC/B,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,UAAU;AAAA,IACV,eAAe;AAAA,IACf,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,UAAU;AAAA,EACZ;AACF,CAAC;AAEM,IAAM,OAAO;AAEpB,KAAK,cAAc;","names":["styled","styled","styled"]}
1
+ {"version":3,"sources":["../src/components/Button/index.tsx","../src/components/Code/index.tsx","../src/components/Heading/index.tsx","../src/components/Text/index.tsx","../src/components/View/index.tsx"],"names":["styled"],"mappings":";;;AAAA,SAAS,UAAU,kBAAuD;AAE1E,SAAS,KAAK,UAAU;AAoZpB;AArXJ,IAAM,SAAS,IAAI;AAAA,EACjB,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,WAAW;AAAA,MACT,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,iBAAiB;AAAA,MACjB,OAAO;AAAA,IACT;AAAA,IACA,QAAQ;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J,WAAW;AAAA,EACb;AACF,CAAC;AAED,QAAQ,cAAc;;;AC7BtB,OAAkB;AAElB,SAAS,UAAAA,eAAc;AA4CvB,IAAM,aAAaA,QAAO,QAAQ;AAAA,EAChC,MAAM;AAAA,IACJ,WAAW;AAAA,EACb;AACF,CAAC;AAEM,IAAM,OAAO;AAEpB,KAAK,cAAc;;;ACtDnB,OAAkB;AAElB,SAAS,UAAAA,eAAc;AA+EvB,IAAM,aAAaA,QAAO,OAAO;AAAA,EAC/B,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,UAAU;AAAA,IACV,eAAe;AAAA,IACf,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,UAAU;AAAA,EACZ;AACF,CAAC;AAEM,IAAM,OAAO;AAEpB,KAAK,cAAc","sourcesContent":["import { Button as AriaButton, type ButtonProps as AriaButtonProps } from 'react-aria-components'\n\nimport { cva, cx } from '@oztix/roadie-core/css'\n\n/**\n * Button appearance variants\n */\ntype ButtonAppearance = 'solid' | 'outline' | 'ghost'\n\n/**\n * Button size variants\n */\ntype ButtonSize = 'sm' | 'md' | 'lg'\n\n/**\n * Button color variants\n */\ntype Emphasis = 'subtle' | 'accent' | 'inverse' | 'success' | 'warning' | 'danger'\n\n/**\n * Props for the Button component\n */\nexport interface ButtonProps extends Omit<AriaButtonProps, 'className'> {\n /** The visual style of the button */\n appearance?: ButtonAppearance\n /** The size of the button */\n size?: ButtonSize\n /** The color of the button */\n emphasis?: Emphasis\n /** Additional class names to be applied to the button */\n className?: string\n}\n\nconst button = cva({\n base: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'transparent',\n borderRadius: '050',\n fontWeight: 'semibold',\n fontFamily: 'ui',\n cursor: 'pointer',\n border: '1px solid',\n transition: 'all 0.2s',\n _disabled: {\n opacity: 0.4,\n cursor: 'not-allowed',\n backgroundColor: 'bg.disabled',\n color: 'fg.disabled'\n },\n _focus: {\n outline: 'none'\n },\n _focusVisible: {\n outline: '2px solid',\n outlineColor: 'border.focused'\n }\n },\n variants: {\n appearance: {\n solid: {\n backgroundColor: 'bg.subtle',\n borderColor: 'border.subtle',\n color: 'fg.subtle',\n _hover: {\n backgroundColor: 'bg.subtle.hovered'\n },\n _active: {\n backgroundColor: 'bg.subtle.pressed'\n }\n },\n outline: {\n border: '1px solid',\n borderColor: 'border.subtle',\n color: 'fg.subtle',\n _hover: {\n color: 'fg',\n borderColor: 'border.hovered',\n backgroundColor: 'bg.hovered'\n },\n _active: {\n color: 'fg',\n borderColor: 'border.pressed',\n backgroundColor: 'bg.pressed'\n }\n },\n ghost: {\n color: 'fg.subtle',\n borderColor: 'transparent',\n _hover: {\n color: 'fg',\n backgroundColor: 'bg.hovered'\n },\n _active: {\n color: 'fg',\n backgroundColor: 'bg.pressed'\n }\n }\n },\n size: {\n sm: {\n minHeight: '400',\n fontSize: 'sm',\n px: '200',\n py: '075'\n },\n md: {\n minHeight: '500',\n fontSize: 'md',\n px: '200',\n py: '100'\n },\n lg: {\n minHeight: '600',\n fontSize: 'lg',\n px: '300',\n py: '150'\n }\n },\n emphasis: {\n subtle: {\n color: 'fg.subtle'\n },\n accent: {\n color: 'fg.accent'\n },\n inverse: {\n color: 'fg.inverse'\n },\n success: {\n color: 'fg.success'\n },\n warning: {\n color: 'fg.warning'\n },\n danger: {\n color: 'fg.danger'\n }\n }\n },\n compoundVariants: [\n {\n appearance: 'solid',\n emphasis: 'subtle',\n css: {\n color: 'fg.subtle',\n _hover: {\n color: 'fg'\n },\n _active: {\n color: 'fg.subtle'\n }\n }\n },\n {\n appearance: 'solid',\n emphasis: 'accent',\n css: {\n backgroundColor: 'bg.accent.bold',\n color: 'fg.accent.inverse',\n borderColor: 'border.accent',\n _hover: {\n color: 'fg.inverse',\n backgroundColor: 'bg.accent.bold.hovered'\n },\n _active: {\n backgroundColor: 'bg.accent.bold.pressed'\n }\n }\n },\n {\n appearance: 'solid',\n emphasis: 'inverse',\n css: {\n backgroundColor: 'bg.inverse',\n color: 'fg.inverse',\n _hover: {\n backgroundColor: 'bg.inverse.hovered'\n },\n _active: {\n backgroundColor: 'bg.inverse.pressed'\n }\n }\n },\n {\n appearance: 'solid',\n emphasis: 'success',\n css: {\n backgroundColor: 'bg.success.bold',\n color: 'fg.success.inverse',\n borderColor: 'border.success',\n _hover: {\n backgroundColor: 'bg.success.bold.hovered'\n },\n _active: {\n backgroundColor: 'bg.success.bold.pressed'\n }\n }\n },\n {\n appearance: 'solid',\n emphasis: 'warning',\n css: {\n backgroundColor: 'bg.warning.bold',\n color: 'fg.warning.inverse',\n borderColor: 'border.warning',\n _hover: {\n backgroundColor: 'bg.warning.bold.hovered'\n },\n _active: {\n backgroundColor: 'bg.warning.bold.pressed'\n }\n }\n },\n {\n appearance: 'solid',\n emphasis: 'danger',\n css: {\n backgroundColor: 'bg.danger.bold',\n color: 'fg.danger.inverse',\n borderColor: 'border.danger',\n _hover: {\n backgroundColor: 'bg.danger.bold.hovered'\n },\n _active: {\n backgroundColor: 'bg.danger.bold.pressed'\n }\n }\n },\n {\n appearance: 'outline',\n emphasis: 'accent',\n css: {\n borderColor: 'border.accent',\n _hover: {\n color: 'fg.accent.hovered',\n borderColor: 'border.accent.hovered',\n backgroundColor: 'bg.accent.hovered'\n },\n _active: {\n color: 'fg.accent.pressed',\n borderColor: 'border.accent.pressed',\n backgroundColor: 'bg.accent.pressed'\n }\n }\n },\n {\n appearance: 'outline',\n emphasis: 'inverse',\n css: {\n borderColor: 'border.bold',\n color: 'fg',\n _hover: {\n color: 'fg.inverse.hovered',\n borderColor: 'border.bold.hovered',\n backgroundColor: 'bg.hovered'\n },\n _active: {\n color: 'fg.inverse.pressed',\n borderColor: 'border.bold.pressed',\n backgroundColor: 'bg.pressed'\n }\n }\n },\n {\n appearance: 'outline',\n emphasis: 'success',\n css: {\n borderColor: 'border.success',\n _hover: {\n color: 'fg.success.hovered',\n borderColor: 'border.success.hovered',\n backgroundColor: 'bg.success.hovered'\n },\n _active: {\n color: 'fg.success.pressed',\n borderColor: 'border.success.pressed',\n backgroundColor: 'bg.success.pressed'\n }\n }\n },\n {\n appearance: 'outline',\n emphasis: 'warning',\n css: {\n borderColor: 'border.warning',\n _hover: {\n color: 'fg.warning.hovered',\n borderColor: 'border.warning.hovered',\n backgroundColor: 'bg.warning.hovered'\n },\n _active: {\n color: 'fg.warning.pressed',\n borderColor: 'border.warning.pressed',\n backgroundColor: 'bg.warning.pressed'\n }\n }\n },\n {\n appearance: 'outline',\n emphasis: 'danger',\n css: {\n borderColor: 'border.danger',\n _hover: {\n color: 'fg.danger.hovered',\n borderColor: 'border.danger.hovered',\n backgroundColor: 'bg.danger.hovered'\n },\n _active: {\n color: 'fg.danger.pressed',\n borderColor: 'border.danger.pressed',\n backgroundColor: 'bg.danger.pressed'\n }\n }\n },\n {\n appearance: 'ghost',\n emphasis: 'accent',\n css: {\n _hover: {\n color: 'fg.accent.hovered',\n backgroundColor: 'bg.accent.hovered'\n },\n _active: {\n color: 'fg.accent.pressed',\n backgroundColor: 'bg.accent.pressed'\n }\n }\n },\n {\n appearance: 'ghost',\n emphasis: 'inverse',\n css: {\n color: 'fg',\n _hover: {\n color: 'fg.inverse.hovered',\n backgroundColor: 'bg.hovered'\n },\n _active: {\n color: 'fg.inverse.pressed',\n backgroundColor: 'bg.pressed'\n }\n }\n },\n {\n appearance: 'ghost',\n emphasis: 'success',\n css: {\n _hover: {\n color: 'fg.success.hovered',\n backgroundColor: 'bg.success.hovered'\n },\n _active: {\n color: 'fg.success.pressed',\n backgroundColor: 'bg.success.pressed'\n }\n }\n },\n {\n appearance: 'ghost',\n emphasis: 'warning',\n css: {\n _hover: {\n color: 'fg.warning.hovered',\n backgroundColor: 'bg.warning.hovered'\n },\n _active: {\n color: 'fg.warning.pressed',\n backgroundColor: 'bg.warning.pressed'\n }\n }\n },\n {\n appearance: 'ghost',\n emphasis: 'danger',\n css: {\n _hover: {\n color: 'fg.danger.hovered',\n backgroundColor: 'bg.danger.hovered'\n },\n _active: {\n color: 'fg.danger.pressed',\n backgroundColor: 'bg.danger.pressed'\n }\n }\n }\n ],\n defaultVariants: {\n appearance: 'solid',\n size: 'md',\n emphasis: 'subtle'\n }\n})\n\nexport function Button({\n children,\n appearance = 'solid',\n size = 'md',\n emphasis = 'subtle',\n isDisabled = false,\n onPress,\n className,\n ...props\n}: ButtonProps) {\n return (\n <AriaButton\n onPress={onPress}\n isDisabled={isDisabled}\n className={cx(button({ appearance, size, emphasis }), className)}\n {...props}\n >\n {children}\n </AriaButton>\n )\n}\n","import React from 'react'\n\nimport type { HTMLStyledProps } from '@oztix/roadie-core/jsx'\nimport { styled } from '@oztix/roadie-core/jsx'\nimport type { JsxStyleProps } from '@oztix/roadie-core/types'\n\n/**\n * A code component that inherits from Text and renders as a code element\n */\nexport interface CodeProps extends HTMLStyledProps<'code'>, JsxStyleProps {\n /**\n * The appearance of the code block\n * @default 'outline'\n */\n appearance?: 'outline' | 'ghost'\n}\n\nexport const Code = styled('code', {\n base: {\n backgroundColor: 'bg.subtle',\n textStyle: 'code',\n px: '050',\n borderRadius: '050',\n border: '1px solid'\n },\n variants: {\n appearance: {\n outline: {\n borderColor: 'border.subtlest'\n },\n ghost: {\n borderColor: 'transparent'\n }\n }\n },\n defaultVariants: {\n appearance: 'outline'\n }\n}) as React.ForwardRefExoticComponent<CodeProps>\n\nCode.displayName = 'Code'\n","import React from 'react'\n\nimport type { HTMLStyledProps } from '@oztix/roadie-core/jsx'\nimport { styled } from '@oztix/roadie-core/jsx'\nimport type { JsxStyleProps } from '@oztix/roadie-core/types'\n\ntype HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n\n/**\n * A heading component that uses display styles for titles and section headers\n */\nexport interface HeadingProps extends HTMLStyledProps<'h2'>, JsxStyleProps {\n /**\n * The heading level to render\n * @default 'h2'\n */\n as?: HeadingLevel\n /**\n * The text style to use for the heading\n * @default 'display.ui'\n */\n textStyle?: Extract<JsxStyleProps['textStyle'], 'display' | `display${string}`>\n}\n\nexport const Heading = styled('h2', {\n base: {\n textStyle: 'display.ui'\n }\n}) as React.ForwardRefExoticComponent<HeadingProps>\n\nHeading.displayName = 'Heading'\n","import type { ElementType } from 'react'\nimport React from 'react'\n\nimport { styled } from '@oztix/roadie-core/jsx'\nimport type { JsxStyleProps } from '@oztix/roadie-core/types'\n\ntype AsProp<C extends ElementType> = {\n as?: C\n}\n\ntype PropsToOmit<C extends ElementType, P> = keyof (AsProp<C> & P)\n\n/**\n * A foundational text component that is responsive and customizable.\n */\nexport interface TextProps<C extends ElementType = 'span'> {\n /**\n * The HTML element or React component to render the Text as\n * @default 'span'\n */\n as?: C\n /**\n * Controls the font family, line height, and letter spacing of the text.\n * @default 'ui'\n */\n textStyle?: JsxStyleProps['textStyle']\n /**\n * The color of the text\n * @default 'fg'\n */\n color?: Extract<JsxStyleProps['color'], `fg${string}` | 'fg'>\n /**\n * The line clamp of the text. Useful for limiting the number of lines of text in a component.\n * @default 'none'\n */\n lineClamp?: JsxStyleProps['lineClamp']\n}\n\nexport type PolymorphicTextProps<C extends ElementType> = TextProps<C> &\n Omit<React.ComponentPropsWithRef<C>, PropsToOmit<C, TextProps>> &\n JsxStyleProps\n\ntype TextComponent = {\n <C extends ElementType = 'span'>(props: PolymorphicTextProps<C>): React.ReactElement | null\n displayName?: string\n}\n\nconst StyledText = styled('span', {\n base: {\n textStyle: 'ui'\n }\n})\n\nexport const Text = StyledText as TextComponent\n\nText.displayName = 'Text'\n","import type { ElementType } from 'react'\nimport React from 'react'\n\nimport { styled } from '@oztix/roadie-core/jsx'\nimport type { JsxStyleProps } from '@oztix/roadie-core/types'\n\ntype AsProp<C extends ElementType> = {\n as?: C\n}\n\ntype PropsToOmit<C extends ElementType, P> = keyof (AsProp<C> & P)\n\n/**\n * A foundational layout component that provides a flexible container with sensible defaults.\n */\nexport interface ViewProps<C extends ElementType = 'div'> {\n /**\n * The HTML element or React component to render the View as\n * @default 'div'\n */\n as?: C\n /**\n * The display property of the View\n * @default 'flex'\n */\n display?: JsxStyleProps['display']\n /**\n * The position property of the View\n * @default 'relative'\n */\n position?: JsxStyleProps['position']\n /**\n * The flex direction property of the View\n * @default 'column'\n */\n flexDirection?: JsxStyleProps['flexDirection']\n /**\n * The flex wrap property of the View\n * @default 'nowrap'\n */\n flexWrap?: JsxStyleProps['flexWrap']\n /**\n * The align items property of the View\n * @default 'stretch'\n */\n alignItems?: JsxStyleProps['alignItems']\n /**\n * The align self property of the View\n * @default 'flex-start'\n */\n alignSelf?: JsxStyleProps['alignSelf']\n /**\n * The align content property of the View\n * @default 'flex-start'\n */\n alignContent?: JsxStyleProps['alignContent']\n /**\n * The justify content property of the View\n * @default 'flex-start'\n */\n justifyContent?: JsxStyleProps['justifyContent']\n /**\n * The min height property of the View\n * @default '0'\n */\n minHeight?: JsxStyleProps['minHeight']\n /**\n * The min width property of the View\n * @default '0'\n */\n minWidth?: JsxStyleProps['minWidth']\n}\n\nexport type PolymorphicViewProps<C extends ElementType> = ViewProps<C> &\n Omit<React.ComponentPropsWithRef<C>, PropsToOmit<C, ViewProps>> &\n JsxStyleProps\n\ntype ViewComponent = {\n <C extends ElementType = 'div'>(props: PolymorphicViewProps<C>): React.ReactElement | null\n displayName?: string\n}\n\nconst StyledView = styled('div', {\n base: {\n display: 'flex',\n position: 'relative',\n flexDirection: 'column',\n flexWrap: 'nowrap',\n alignItems: 'stretch',\n alignContent: 'flex-start',\n justifyContent: 'flex-start',\n minHeight: 0,\n minWidth: 0\n }\n})\n\nexport const View = StyledView as ViewComponent\n\nView.displayName = 'View'\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oztix/roadie-components",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The components for Roadie Design System at Oztix",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -52,6 +52,12 @@
52
52
  ]
53
53
  }
54
54
  },
55
+ "exports": {
56
+ ".": {
57
+ "import": "./dist/index.js",
58
+ "types": "./dist/index.d.ts"
59
+ }
60
+ },
55
61
  "scripts": {
56
62
  "build": "tsup",
57
63
  "clean": "rm -rf node_modules dist",