@oztix/roadie-components 0.1.0 → 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.
- package/dist/Button.d.ts +116 -0
- package/dist/Button.js +3 -0
- package/dist/Button.js.map +1 -0
- package/dist/Code.d.ts +17 -0
- package/dist/Code.js +3 -0
- package/dist/Code.js.map +1 -0
- package/dist/Heading.d.ts +23 -0
- package/dist/Heading.js +3 -0
- package/dist/Heading.js.map +1 -0
- package/dist/Text.d.ts +54 -0
- package/dist/Text.js +3 -0
- package/dist/Text.js.map +1 -0
- package/dist/View.d.ts +75 -0
- package/dist/View.js +3 -0
- package/dist/View.js.map +1 -0
- package/dist/_chunks/chunk-5EABNA3A.js +8 -0
- package/dist/_chunks/chunk-5EABNA3A.js.map +1 -0
- package/dist/_chunks/chunk-72747LP3.js +8 -0
- package/dist/_chunks/chunk-72747LP3.js.map +1 -0
- package/dist/_chunks/chunk-76TTGNAE.js +8 -0
- package/dist/_chunks/chunk-76TTGNAE.js.map +1 -0
- package/dist/_chunks/chunk-CNVMCX74.js +8 -0
- package/dist/_chunks/chunk-CNVMCX74.js.map +1 -0
- package/dist/_chunks/chunk-JDVDZGUN.js +9 -0
- package/dist/_chunks/chunk-JDVDZGUN.js.map +1 -0
- package/dist/index.d.ts +11 -171
- package/dist/index.js +6 -462
- package/dist/index.js.map +1 -1
- package/package.json +9 -2
package/dist/Button.d.ts
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as packages_core_dist_types from 'packages/core/dist/types';
|
|
3
|
+
import { ButtonProps as ButtonProps$1 } from 'react-aria-components';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Button emphasis variants
|
|
7
|
+
*/
|
|
8
|
+
type ButtonEmphasis = 'strong' | 'default' | 'subtle' | 'muted';
|
|
9
|
+
/**
|
|
10
|
+
* Button size variants
|
|
11
|
+
*/
|
|
12
|
+
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
13
|
+
/**
|
|
14
|
+
* Props for the Button component
|
|
15
|
+
*/
|
|
16
|
+
interface ButtonProps extends Omit<ButtonProps$1, 'className'> {
|
|
17
|
+
/** The visual style of the button */
|
|
18
|
+
emphasis?: ButtonEmphasis;
|
|
19
|
+
/** The size of the button */
|
|
20
|
+
size?: ButtonSize;
|
|
21
|
+
/** The color palette to use for the button */
|
|
22
|
+
colorPalette?: 'neutral' | 'accent' | 'brand' | 'information' | 'success' | 'warning' | 'danger';
|
|
23
|
+
/** Additional class names to be applied to the button */
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const buttonRecipe: packages_core_dist_types.RecipeRuntimeFn<{
|
|
27
|
+
emphasis: {
|
|
28
|
+
strong: {
|
|
29
|
+
color: "colorPalette.fg.inverted";
|
|
30
|
+
backgroundColor: "colorPalette.solid.strong";
|
|
31
|
+
_hover: {
|
|
32
|
+
color: "colorPalette.fg.inverted.hover";
|
|
33
|
+
backgroundColor: "colorPalette.solid.strong.hover";
|
|
34
|
+
};
|
|
35
|
+
_active: {
|
|
36
|
+
color: "colorPalette.fg.inverted.active";
|
|
37
|
+
backgroundColor: "colorPalette.solid.strong.active";
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
default: {
|
|
41
|
+
borderColor: "colorPalette.border";
|
|
42
|
+
backgroundColor: "colorPalette.surface.subtle";
|
|
43
|
+
_hover: {
|
|
44
|
+
borderColor: "colorPalette.border.hover";
|
|
45
|
+
backgroundColor: "colorPalette.surface.subtle.hover";
|
|
46
|
+
};
|
|
47
|
+
_active: {
|
|
48
|
+
borderColor: "colorPalette.border.active";
|
|
49
|
+
backgroundColor: "colorPalette.surface.subtle.active";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
subtle: {
|
|
53
|
+
backgroundColor: "colorPalette.solid.subtle";
|
|
54
|
+
_hover: {
|
|
55
|
+
backgroundColor: "colorPalette.solid.subtle.hover";
|
|
56
|
+
};
|
|
57
|
+
_active: {
|
|
58
|
+
backgroundColor: "colorPalette.solid.subtle.active";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
muted: {
|
|
62
|
+
_hover: {
|
|
63
|
+
backgroundColor: "colorPalette.solid.subtle.hover";
|
|
64
|
+
};
|
|
65
|
+
_active: {
|
|
66
|
+
backgroundColor: "colorPalette.solid.subtle.active";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
colorPalette: {
|
|
71
|
+
neutral: {
|
|
72
|
+
colorPalette: "neutral";
|
|
73
|
+
};
|
|
74
|
+
accent: {
|
|
75
|
+
colorPalette: "accent";
|
|
76
|
+
};
|
|
77
|
+
brand: {
|
|
78
|
+
colorPalette: "brand";
|
|
79
|
+
};
|
|
80
|
+
information: {
|
|
81
|
+
colorPalette: "information";
|
|
82
|
+
};
|
|
83
|
+
success: {
|
|
84
|
+
colorPalette: "success";
|
|
85
|
+
};
|
|
86
|
+
warning: {
|
|
87
|
+
colorPalette: "warning";
|
|
88
|
+
};
|
|
89
|
+
danger: {
|
|
90
|
+
colorPalette: "danger";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
size: {
|
|
94
|
+
sm: {
|
|
95
|
+
minHeight: "400";
|
|
96
|
+
fontSize: "sm";
|
|
97
|
+
px: "200";
|
|
98
|
+
py: "075";
|
|
99
|
+
};
|
|
100
|
+
md: {
|
|
101
|
+
minHeight: "500";
|
|
102
|
+
fontSize: "md";
|
|
103
|
+
px: "200";
|
|
104
|
+
py: "100";
|
|
105
|
+
};
|
|
106
|
+
lg: {
|
|
107
|
+
minHeight: "600";
|
|
108
|
+
fontSize: "lg";
|
|
109
|
+
px: "300";
|
|
110
|
+
py: "150";
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}>;
|
|
114
|
+
declare function Button({ children, emphasis, size, colorPalette, isDisabled, onPress, className, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
115
|
+
|
|
116
|
+
export { Button, type ButtonProps, buttonRecipe };
|
package/dist/Button.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/Code.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HTMLStyledProps } from '@oztix/roadie-core/jsx';
|
|
3
|
+
import { JsxStyleProps } from '@oztix/roadie-core/types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A code component that inherits from Text and renders as a code element
|
|
7
|
+
*/
|
|
8
|
+
interface CodeProps extends HTMLStyledProps<'code'>, JsxStyleProps {
|
|
9
|
+
/**
|
|
10
|
+
* The appearance of the code block
|
|
11
|
+
* @default 'outline'
|
|
12
|
+
*/
|
|
13
|
+
emphasis?: 'default' | 'strong' | 'subtle' | 'muted';
|
|
14
|
+
}
|
|
15
|
+
declare const Code: React.ForwardRefExoticComponent<CodeProps>;
|
|
16
|
+
|
|
17
|
+
export { Code, type CodeProps };
|
package/dist/Code.js
ADDED
package/dist/Code.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HTMLStyledProps } from '@oztix/roadie-core/jsx';
|
|
3
|
+
import { JsxStyleProps } from '@oztix/roadie-core/types';
|
|
4
|
+
|
|
5
|
+
type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
6
|
+
/**
|
|
7
|
+
* A heading component that uses display styles for titles and section headers
|
|
8
|
+
*/
|
|
9
|
+
interface HeadingProps extends HTMLStyledProps<'h2'>, JsxStyleProps {
|
|
10
|
+
/**
|
|
11
|
+
* The heading level to render
|
|
12
|
+
* @default 'h2'
|
|
13
|
+
*/
|
|
14
|
+
as?: HeadingLevel;
|
|
15
|
+
/**
|
|
16
|
+
* The text style to use for the heading
|
|
17
|
+
* @default 'display.ui'
|
|
18
|
+
*/
|
|
19
|
+
textStyle?: Extract<JsxStyleProps['textStyle'], 'display' | `display${string}`>;
|
|
20
|
+
}
|
|
21
|
+
declare const Heading: React.ForwardRefExoticComponent<HeadingProps>;
|
|
22
|
+
|
|
23
|
+
export { Heading, type HeadingProps };
|
package/dist/Heading.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/Text.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React, { ElementType } from 'react';
|
|
2
|
+
import { JsxStyleProps } from '@oztix/roadie-core/types';
|
|
3
|
+
|
|
4
|
+
type AsProp<C extends ElementType> = {
|
|
5
|
+
as?: C;
|
|
6
|
+
};
|
|
7
|
+
type PropsToOmit<C extends ElementType, P> = keyof (AsProp<C> & P);
|
|
8
|
+
/**
|
|
9
|
+
* A foundational text component that is responsive and customizable.
|
|
10
|
+
*/
|
|
11
|
+
interface TextProps<C extends ElementType = 'span'> {
|
|
12
|
+
/**
|
|
13
|
+
* The HTML element or React component to render the Text as
|
|
14
|
+
* @default 'span'
|
|
15
|
+
*/
|
|
16
|
+
as?: C;
|
|
17
|
+
/**
|
|
18
|
+
* Controls the font family, line height, and letter spacing of the text.
|
|
19
|
+
* @default 'ui'
|
|
20
|
+
*/
|
|
21
|
+
textStyle?: JsxStyleProps['textStyle'];
|
|
22
|
+
/**
|
|
23
|
+
* The color of the text
|
|
24
|
+
* @default 'neutral'
|
|
25
|
+
*/
|
|
26
|
+
colorPalette?: 'neutral' | 'accent' | 'brand' | 'information' | 'success' | 'warning' | 'danger';
|
|
27
|
+
/**
|
|
28
|
+
* The emphasis of the text
|
|
29
|
+
* - default: For standard body text and general content
|
|
30
|
+
* - strong: For text that needs visual emphasis or importance, like headings, key terms or warnings
|
|
31
|
+
* - subtle: For secondary or supplementary text that should be visually de-emphasized
|
|
32
|
+
* - muted: For text that should be visually muted, like placeholder text or disabled text
|
|
33
|
+
* @default 'default'
|
|
34
|
+
*/
|
|
35
|
+
emphasis?: 'default' | 'strong' | 'subtle' | 'muted';
|
|
36
|
+
/**
|
|
37
|
+
* Whether the text is interactive. Adds hover, focus, and active styles. Includes group styles.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
interactive?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The line clamp of the text. Useful for limiting the number of lines of text in a component.
|
|
43
|
+
* @default 'none'
|
|
44
|
+
*/
|
|
45
|
+
lineClamp?: JsxStyleProps['lineClamp'];
|
|
46
|
+
}
|
|
47
|
+
type PolymorphicTextProps<C extends ElementType> = TextProps<C> & Omit<React.ComponentPropsWithRef<C>, PropsToOmit<C, TextProps>> & JsxStyleProps;
|
|
48
|
+
type TextComponent = {
|
|
49
|
+
<C extends ElementType = 'span'>(props: PolymorphicTextProps<C>): React.ReactElement | null;
|
|
50
|
+
displayName?: string;
|
|
51
|
+
};
|
|
52
|
+
declare const Text: TextComponent;
|
|
53
|
+
|
|
54
|
+
export { type PolymorphicTextProps, Text, type TextProps };
|
package/dist/Text.js
ADDED
package/dist/Text.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/View.d.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React, { ElementType } from 'react';
|
|
2
|
+
import { JsxStyleProps } from '@oztix/roadie-core/types';
|
|
3
|
+
|
|
4
|
+
type AsProp<C extends ElementType> = {
|
|
5
|
+
as?: C;
|
|
6
|
+
};
|
|
7
|
+
type PropsToOmit<C extends ElementType, P> = keyof (AsProp<C> & P);
|
|
8
|
+
/**
|
|
9
|
+
* A foundational layout component that provides a flexible container with sensible defaults.
|
|
10
|
+
*/
|
|
11
|
+
interface ViewProps<C extends ElementType = 'div'> {
|
|
12
|
+
/**
|
|
13
|
+
* The HTML element or React component to render the View as
|
|
14
|
+
* @default 'div'
|
|
15
|
+
*/
|
|
16
|
+
as?: C;
|
|
17
|
+
/**
|
|
18
|
+
* The display property of the View
|
|
19
|
+
* @default 'flex'
|
|
20
|
+
*/
|
|
21
|
+
display?: JsxStyleProps['display'];
|
|
22
|
+
/**
|
|
23
|
+
* The position property of the View
|
|
24
|
+
* @default 'relative'
|
|
25
|
+
*/
|
|
26
|
+
position?: JsxStyleProps['position'];
|
|
27
|
+
/**
|
|
28
|
+
* The flex direction property of the View
|
|
29
|
+
* @default 'column'
|
|
30
|
+
*/
|
|
31
|
+
flexDirection?: JsxStyleProps['flexDirection'];
|
|
32
|
+
/**
|
|
33
|
+
* The flex wrap property of the View
|
|
34
|
+
* @default 'nowrap'
|
|
35
|
+
*/
|
|
36
|
+
flexWrap?: JsxStyleProps['flexWrap'];
|
|
37
|
+
/**
|
|
38
|
+
* The align items property of the View
|
|
39
|
+
* @default 'stretch'
|
|
40
|
+
*/
|
|
41
|
+
alignItems?: JsxStyleProps['alignItems'];
|
|
42
|
+
/**
|
|
43
|
+
* The align self property of the View
|
|
44
|
+
* @default 'flex-start'
|
|
45
|
+
*/
|
|
46
|
+
alignSelf?: JsxStyleProps['alignSelf'];
|
|
47
|
+
/**
|
|
48
|
+
* The align content property of the View
|
|
49
|
+
* @default 'flex-start'
|
|
50
|
+
*/
|
|
51
|
+
alignContent?: JsxStyleProps['alignContent'];
|
|
52
|
+
/**
|
|
53
|
+
* The justify content property of the View
|
|
54
|
+
* @default 'flex-start'
|
|
55
|
+
*/
|
|
56
|
+
justifyContent?: JsxStyleProps['justifyContent'];
|
|
57
|
+
/**
|
|
58
|
+
* The min height property of the View
|
|
59
|
+
* @default '0'
|
|
60
|
+
*/
|
|
61
|
+
minHeight?: JsxStyleProps['minHeight'];
|
|
62
|
+
/**
|
|
63
|
+
* The min width property of the View
|
|
64
|
+
* @default '0'
|
|
65
|
+
*/
|
|
66
|
+
minWidth?: JsxStyleProps['minWidth'];
|
|
67
|
+
}
|
|
68
|
+
type PolymorphicViewProps<C extends ElementType> = ViewProps<C> & Omit<React.ComponentPropsWithRef<C>, PropsToOmit<C, ViewProps>> & JsxStyleProps;
|
|
69
|
+
type ViewComponent = {
|
|
70
|
+
<C extends ElementType = 'div'>(props: PolymorphicViewProps<C>): React.ReactElement | null;
|
|
71
|
+
displayName?: string;
|
|
72
|
+
};
|
|
73
|
+
declare const View: ViewComponent;
|
|
74
|
+
|
|
75
|
+
export { type PolymorphicViewProps, View, type ViewProps };
|
package/dist/View.js
ADDED
package/dist/View.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import { styled } from '@oztix/roadie-core/jsx';
|
|
3
|
+
|
|
4
|
+
var t=styled("h2",{base:{textStyle:"display.ui",color:"accent.fg.strong"}});t.displayName="Heading";
|
|
5
|
+
|
|
6
|
+
export { t as a };
|
|
7
|
+
//# sourceMappingURL=out.js.map
|
|
8
|
+
//# sourceMappingURL=chunk-5EABNA3A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Heading/index.tsx"],"names":["styled","Heading"],"mappings":"AAAA,MAAkB,QAGlB,OAAS,UAAAA,MAAc,yBAwBhB,IAAMC,EAAUD,EAAO,KAAM,CAClC,KAAM,CACJ,UAAW,aACX,MAAO,kBACT,CACF,CAAC,EAEDC,EAAQ,YAAc","sourcesContent":["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<\n JsxStyleProps['textStyle'],\n 'display' | `display${string}`\n >\n}\n\nexport const Heading = styled('h2', {\n base: {\n textStyle: 'display.ui',\n color: 'accent.fg.strong'\n }\n}) as React.ForwardRefExoticComponent<HeadingProps>\n\nHeading.displayName = 'Heading'\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import { styled } from '@oztix/roadie-core/jsx';
|
|
3
|
+
|
|
4
|
+
var t=styled("div",{base:{display:"flex",position:"relative",flexDirection:"column",flexWrap:"nowrap",alignItems:"stretch",alignContent:"flex-start",justifyContent:"flex-start",minHeight:0,minWidth:0}}),o=t;o.displayName="View";
|
|
5
|
+
|
|
6
|
+
export { o as a };
|
|
7
|
+
//# sourceMappingURL=out.js.map
|
|
8
|
+
//# sourceMappingURL=chunk-72747LP3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/View/index.tsx"],"names":["styled","StyledView","View"],"mappings":"AACA,MAAkB,QAElB,OAAS,UAAAA,MAAc,yBAiFvB,IAAMC,EAAaD,EAAO,MAAO,CAC/B,KAAM,CACJ,QAAS,OACT,SAAU,WACV,cAAe,SACf,SAAU,SACV,WAAY,UACZ,aAAc,aACd,eAAgB,aAChB,UAAW,EACX,SAAU,CACZ,CACF,CAAC,EAEYE,EAAOD,EAEpBC,EAAK,YAAc","sourcesContent":["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'>(\n props: PolymorphicViewProps<C>\n ): 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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import { styled } from '@oztix/roadie-core/jsx';
|
|
3
|
+
|
|
4
|
+
var e=styled("code",{base:{backgroundColor:"neutral.surface.subtle",textStyle:"code",px:"050",borderRadius:"050",border:"1px solid"},variants:{emphasis:{default:{borderColor:"neutral.border",backgroundColor:"neutral.surface.subtle"},strong:{borderColor:"neutral.border.strong",backgroundColor:"neutral.surface.strong"},subtle:{borderColor:"neutral.border.subtle"},muted:{borderColor:"transparent"}}},defaultVariants:{emphasis:"default"}});e.displayName="Code";
|
|
5
|
+
|
|
6
|
+
export { e as a };
|
|
7
|
+
//# sourceMappingURL=out.js.map
|
|
8
|
+
//# sourceMappingURL=chunk-76TTGNAE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Code/index.tsx"],"names":["styled","Code"],"mappings":"AAAA,MAAkB,QAGlB,OAAS,UAAAA,MAAc,yBAchB,IAAMC,EAAOD,EAAO,OAAQ,CACjC,KAAM,CACJ,gBAAiB,yBACjB,UAAW,OACX,GAAI,MACJ,aAAc,MACd,OAAQ,WACV,EACA,SAAU,CACR,SAAU,CACR,QAAS,CACP,YAAa,iBACb,gBAAiB,wBACnB,EACA,OAAQ,CACN,YAAa,wBACb,gBAAiB,wBACnB,EACA,OAAQ,CACN,YAAa,uBACf,EACA,MAAO,CACL,YAAa,aACf,CACF,CACF,EACA,gBAAiB,CACf,SAAU,SACZ,CACF,CAAC,EAEDC,EAAK,YAAc","sourcesContent":["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 emphasis?: 'default' | 'strong' | 'subtle' | 'muted'\n}\n\nexport const Code = styled('code', {\n base: {\n backgroundColor: 'neutral.surface.subtle',\n textStyle: 'code',\n px: '050',\n borderRadius: '050',\n border: '1px solid'\n },\n variants: {\n emphasis: {\n default: {\n borderColor: 'neutral.border',\n backgroundColor: 'neutral.surface.subtle'\n },\n strong: {\n borderColor: 'neutral.border.strong',\n backgroundColor: 'neutral.surface.strong'\n },\n subtle: {\n borderColor: 'neutral.border.subtle'\n },\n muted: {\n borderColor: 'transparent'\n }\n }\n },\n defaultVariants: {\n emphasis: 'default'\n }\n}) as React.ForwardRefExoticComponent<CodeProps>\n\nCode.displayName = 'Code'\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import { styled } from '@oztix/roadie-core/jsx';
|
|
3
|
+
|
|
4
|
+
var t=styled("span",{base:{textStyle:"ui",color:"colorPalette.fg"},variants:{emphasis:{default:{color:"colorPalette.fg"},strong:{color:"colorPalette.fg.strong",fontWeight:"semibold"},subtle:{color:"colorPalette.fg.subtle"},muted:{color:"colorPalette.fg.muted"}},interactive:{true:{cursor:"pointer",_hover:{color:"colorPalette.fg.hover"},_focus:{color:"colorPalette.fg.hover"},_active:{color:"colorPalette.fg.active"},_groupHover:{color:"colorPalette.fg.hover"},_groupFocus:{color:"colorPalette.fg.hover"},_groupActive:{color:"colorPalette.fg.active"}}}},defaultVariants:{emphasis:"default",interactive:!1}}),o=t;o.displayName="Text";
|
|
5
|
+
|
|
6
|
+
export { o as a };
|
|
7
|
+
//# sourceMappingURL=out.js.map
|
|
8
|
+
//# sourceMappingURL=chunk-CNVMCX74.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Text/index.tsx"],"names":["styled","StyledText","Text"],"mappings":"AACA,MAAkB,QAElB,OAAS,UAAAA,MAAc,yBAmEvB,IAAMC,EAAaD,EAAO,OAAQ,CAChC,KAAM,CACJ,UAAW,KACX,MAAO,iBACT,EACA,SAAU,CACR,SAAU,CACR,QAAS,CACP,MAAO,iBACT,EACA,OAAQ,CACN,MAAO,yBACP,WAAY,UACd,EACA,OAAQ,CACN,MAAO,wBACT,EACA,MAAO,CACL,MAAO,uBACT,CACF,EACA,YAAa,CACX,KAAM,CACJ,OAAQ,UACR,OAAQ,CACN,MAAO,uBACT,EACA,OAAQ,CACN,MAAO,uBACT,EACA,QAAS,CACP,MAAO,wBACT,EACA,YAAa,CACX,MAAO,uBACT,EACA,YAAa,CACX,MAAO,uBACT,EACA,aAAc,CACZ,MAAO,wBACT,CACF,CACF,CACF,EACA,gBAAiB,CACf,SAAU,UACV,YAAa,EACf,CACF,CAAC,EAEYE,EAAOD,EAEpBC,EAAK,YAAc","sourcesContent":["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 'neutral'\n */\n colorPalette?:\n | 'neutral'\n | 'accent'\n | 'brand'\n | 'information'\n | 'success'\n | 'warning'\n | 'danger'\n /**\n * The emphasis of the text\n * - default: For standard body text and general content\n * - strong: For text that needs visual emphasis or importance, like headings, key terms or warnings\n * - subtle: For secondary or supplementary text that should be visually de-emphasized\n * - muted: For text that should be visually muted, like placeholder text or disabled text\n * @default 'default'\n */\n emphasis?: 'default' | 'strong' | 'subtle' | 'muted'\n /**\n * Whether the text is interactive. Adds hover, focus, and active styles. Includes group styles.\n * @default false\n */\n interactive?: boolean\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'>(\n props: PolymorphicTextProps<C>\n ): React.ReactElement | null\n displayName?: string\n}\n\nconst StyledText = styled('span', {\n base: {\n textStyle: 'ui',\n color: 'colorPalette.fg'\n },\n variants: {\n emphasis: {\n default: {\n color: 'colorPalette.fg'\n },\n strong: {\n color: 'colorPalette.fg.strong',\n fontWeight: 'semibold'\n },\n subtle: {\n color: 'colorPalette.fg.subtle'\n },\n muted: {\n color: 'colorPalette.fg.muted'\n }\n },\n interactive: {\n true: {\n cursor: 'pointer',\n _hover: {\n color: 'colorPalette.fg.hover'\n },\n _focus: {\n color: 'colorPalette.fg.hover'\n },\n _active: {\n color: 'colorPalette.fg.active'\n },\n _groupHover: {\n color: 'colorPalette.fg.hover'\n },\n _groupFocus: {\n color: 'colorPalette.fg.hover'\n },\n _groupActive: {\n color: 'colorPalette.fg.active'\n }\n }\n }\n },\n defaultVariants: {\n emphasis: 'default',\n interactive: false\n }\n})\n\nexport const Text = StyledText as TextComponent\n\nText.displayName = 'Text'\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Button } from 'react-aria-components';
|
|
2
|
+
import { cva, cx } from '@oztix/roadie-core/css';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var d=cva({base:{display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent",borderRadius:"050",fontWeight:"medium",fontFamily:"ui",cursor:"pointer",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",transition:"all 0.2s",color:"colorPalette.fg",_hover:{color:"colorPalette.fg.hover"},_active:{color:"colorPalette.fg.active"},_disabled:{opacity:.4,cursor:"not-allowed",color:"colorPalette.fg.subtle"},_focusVisible:{outlineColor:"colorPalette.border.strong",outlineWidth:"2px",outlineStyle:"solid",outlineOffset:"2px"}},variants:{emphasis:{strong:{color:"colorPalette.fg.inverted",backgroundColor:"colorPalette.solid.strong",_hover:{color:"colorPalette.fg.inverted.hover",backgroundColor:"colorPalette.solid.strong.hover"},_active:{color:"colorPalette.fg.inverted.active",backgroundColor:"colorPalette.solid.strong.active"}},default:{borderColor:"colorPalette.border",backgroundColor:"colorPalette.surface.subtle",_hover:{borderColor:"colorPalette.border.hover",backgroundColor:"colorPalette.surface.subtle.hover"},_active:{borderColor:"colorPalette.border.active",backgroundColor:"colorPalette.surface.subtle.active"}},subtle:{backgroundColor:"colorPalette.solid.subtle",_hover:{backgroundColor:"colorPalette.solid.subtle.hover"},_active:{backgroundColor:"colorPalette.solid.subtle.active"}},muted:{_hover:{backgroundColor:"colorPalette.solid.subtle.hover"},_active:{backgroundColor:"colorPalette.solid.subtle.active"}}},colorPalette:{neutral:{colorPalette:"neutral"},accent:{colorPalette:"accent"},brand:{colorPalette:"brand"},information:{colorPalette:"information"},success:{colorPalette:"success"},warning:{colorPalette:"warning"},danger:{colorPalette:"danger"}},size:{sm:{minHeight:"400",fontSize:"sm",px:"200",py:"075"},md:{minHeight:"500",fontSize:"md",px:"200",py:"100"},lg:{minHeight:"600",fontSize:"lg",px:"300",py:"150"}}},defaultVariants:{emphasis:"default",colorPalette:"neutral",size:"md"}});function f({children:o,emphasis:e="default",size:t="md",colorPalette:r="neutral",isDisabled:l=!1,onPress:a,className:n,...c}){return jsx(Button,{onPress:a,isDisabled:l,className:cx(d({emphasis:e,size:t,colorPalette:r}),n),...c,children:o})}
|
|
6
|
+
|
|
7
|
+
export { d as a, f as b };
|
|
8
|
+
//# sourceMappingURL=out.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-JDVDZGUN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Button/index.tsx"],"names":["AriaButton","cva","cx","jsx","buttonRecipe","Button","children","emphasis","size","colorPalette","isDisabled","onPress","className","props"],"mappings":"AAAA,OACE,UAAUA,MAEL,wBAEP,OAAS,OAAAC,EAAK,MAAAC,MAAU,yBA6KpB,cAAAC,MAAA,oBA5IG,IAAMC,EAAeH,EAAI,CAC9B,KAAM,CACJ,QAAS,cACT,WAAY,SACZ,eAAgB,SAChB,gBAAiB,cACjB,aAAc,MACd,WAAY,SACZ,WAAY,KACZ,OAAQ,UACR,YAAa,MACb,YAAa,QACb,YAAa,cACb,WAAY,WACZ,MAAO,kBACP,OAAQ,CACN,MAAO,uBACT,EACA,QAAS,CACP,MAAO,wBACT,EACA,UAAW,CACT,QAAS,GACT,OAAQ,cACR,MAAO,wBACT,EACA,cAAe,CACb,aAAc,6BACd,aAAc,MACd,aAAc,QACd,cAAe,KACjB,CACF,EACA,SAAU,CACR,SAAU,CACR,OAAQ,CACN,MAAO,2BACP,gBAAiB,4BACjB,OAAQ,CACN,MAAO,iCACP,gBAAiB,iCACnB,EACA,QAAS,CACP,MAAO,kCACP,gBAAiB,kCACnB,CACF,EACA,QAAS,CACP,YAAa,sBACb,gBAAiB,8BACjB,OAAQ,CACN,YAAa,4BACb,gBAAiB,mCACnB,EACA,QAAS,CACP,YAAa,6BACb,gBAAiB,oCACnB,CACF,EACA,OAAQ,CACN,gBAAiB,4BAEjB,OAAQ,CACN,gBAAiB,iCACnB,EACA,QAAS,CACP,gBAAiB,kCACnB,CACF,EACA,MAAO,CACL,OAAQ,CACN,gBAAiB,iCACnB,EACA,QAAS,CACP,gBAAiB,kCACnB,CACF,CACF,EACA,aAAc,CACZ,QAAS,CACP,aAAc,SAChB,EACA,OAAQ,CACN,aAAc,QAChB,EACA,MAAO,CACL,aAAc,OAChB,EACA,YAAa,CACX,aAAc,aAChB,EACA,QAAS,CACP,aAAc,SAChB,EACA,QAAS,CACP,aAAc,SAChB,EACA,OAAQ,CACN,aAAc,QAChB,CACF,EACA,KAAM,CACJ,GAAI,CACF,UAAW,MACX,SAAU,KACV,GAAI,MACJ,GAAI,KACN,EACA,GAAI,CACF,UAAW,MACX,SAAU,KACV,GAAI,MACJ,GAAI,KACN,EACA,GAAI,CACF,UAAW,MACX,SAAU,KACV,GAAI,MACJ,GAAI,KACN,CACF,CACF,EACA,gBAAiB,CACf,SAAU,UACV,aAAc,UACd,KAAM,IACR,CACF,CAAC,EAEM,SAASI,EAAO,CACrB,SAAAC,EACA,SAAAC,EAAW,UACX,KAAAC,EAAO,KACP,aAAAC,EAAe,UACf,WAAAC,EAAa,GACb,QAAAC,EACA,UAAAC,EACA,GAAGC,CACL,EAAgB,CACd,OACEV,EAACH,EAAA,CACC,QAASW,EACT,WAAYD,EACZ,UAAWR,EAAGE,EAAa,CAAE,SAAAG,EAAU,KAAAC,EAAM,aAAAC,CAAa,CAAC,EAAGG,CAAS,EACtE,GAAGC,EAEH,SAAAP,EACH,CAEJ","sourcesContent":["import {\n Button as AriaButton,\n type ButtonProps as AriaButtonProps\n} from 'react-aria-components'\n\nimport { cva, cx } from '@oztix/roadie-core/css'\n\n/**\n * Button emphasis variants\n */\ntype ButtonEmphasis = 'strong' | 'default' | 'subtle' | 'muted'\n\n/**\n * Button size variants\n */\ntype ButtonSize = 'sm' | 'md' | 'lg'\n\n/**\n * Props for the Button component\n */\nexport interface ButtonProps extends Omit<AriaButtonProps, 'className'> {\n /** The visual style of the button */\n emphasis?: ButtonEmphasis\n /** The size of the button */\n size?: ButtonSize\n /** The color palette to use for the button */\n colorPalette?:\n | 'neutral'\n | 'accent'\n | 'brand'\n | 'information'\n | 'success'\n | 'warning'\n | 'danger'\n /** Additional class names to be applied to the button */\n className?: string\n}\n\nexport const buttonRecipe = cva({\n base: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'transparent',\n borderRadius: '050',\n fontWeight: 'medium',\n fontFamily: 'ui',\n cursor: 'pointer',\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: 'transparent',\n transition: 'all 0.2s',\n color: 'colorPalette.fg',\n _hover: {\n color: 'colorPalette.fg.hover'\n },\n _active: {\n color: 'colorPalette.fg.active'\n },\n _disabled: {\n opacity: 0.4,\n cursor: 'not-allowed',\n color: 'colorPalette.fg.subtle'\n },\n _focusVisible: {\n outlineColor: 'colorPalette.border.strong',\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineOffset: '2px'\n }\n },\n variants: {\n emphasis: {\n strong: {\n color: 'colorPalette.fg.inverted',\n backgroundColor: 'colorPalette.solid.strong',\n _hover: {\n color: 'colorPalette.fg.inverted.hover',\n backgroundColor: 'colorPalette.solid.strong.hover'\n },\n _active: {\n color: 'colorPalette.fg.inverted.active',\n backgroundColor: 'colorPalette.solid.strong.active'\n }\n },\n default: {\n borderColor: 'colorPalette.border',\n backgroundColor: 'colorPalette.surface.subtle',\n _hover: {\n borderColor: 'colorPalette.border.hover',\n backgroundColor: 'colorPalette.surface.subtle.hover'\n },\n _active: {\n borderColor: 'colorPalette.border.active',\n backgroundColor: 'colorPalette.surface.subtle.active'\n }\n },\n subtle: {\n backgroundColor: 'colorPalette.solid.subtle',\n\n _hover: {\n backgroundColor: 'colorPalette.solid.subtle.hover'\n },\n _active: {\n backgroundColor: 'colorPalette.solid.subtle.active'\n }\n },\n muted: {\n _hover: {\n backgroundColor: 'colorPalette.solid.subtle.hover'\n },\n _active: {\n backgroundColor: 'colorPalette.solid.subtle.active'\n }\n }\n },\n colorPalette: {\n neutral: {\n colorPalette: 'neutral'\n },\n accent: {\n colorPalette: 'accent'\n },\n brand: {\n colorPalette: 'brand'\n },\n information: {\n colorPalette: 'information'\n },\n success: {\n colorPalette: 'success'\n },\n warning: {\n colorPalette: 'warning'\n },\n danger: {\n colorPalette: 'danger'\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 },\n defaultVariants: {\n emphasis: 'default',\n colorPalette: 'neutral',\n size: 'md'\n }\n})\n\nexport function Button({\n children,\n emphasis = 'default',\n size = 'md',\n colorPalette = 'neutral',\n isDisabled = false,\n onPress,\n className,\n ...props\n}: ButtonProps) {\n return (\n <AriaButton\n onPress={onPress}\n isDisabled={isDisabled}\n className={cx(buttonRecipe({ emphasis, size, colorPalette }), className)}\n {...props}\n >\n {children}\n </AriaButton>\n )\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,171 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* Button size variants
|
|
13
|
-
*/
|
|
14
|
-
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
15
|
-
/**
|
|
16
|
-
* Button color variants
|
|
17
|
-
*/
|
|
18
|
-
type Emphasis = 'subtle' | 'accent' | 'inverse' | 'success' | 'warning' | 'danger';
|
|
19
|
-
/**
|
|
20
|
-
* Props for the Button component
|
|
21
|
-
*/
|
|
22
|
-
interface ButtonProps extends Omit<ButtonProps$1, 'className'> {
|
|
23
|
-
/** The visual style of the button */
|
|
24
|
-
appearance?: ButtonAppearance;
|
|
25
|
-
/** The size of the button */
|
|
26
|
-
size?: ButtonSize;
|
|
27
|
-
/** The color of the button */
|
|
28
|
-
emphasis?: Emphasis;
|
|
29
|
-
/** Additional class names to be applied to the button */
|
|
30
|
-
className?: string;
|
|
31
|
-
}
|
|
32
|
-
declare function Button({ children, appearance, size, emphasis, isDisabled, onPress, className, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* A code component that inherits from Text and renders as a code element
|
|
36
|
-
*/
|
|
37
|
-
interface CodeProps extends HTMLStyledProps<'code'>, JsxStyleProps {
|
|
38
|
-
/**
|
|
39
|
-
* The appearance of the code block
|
|
40
|
-
* @default 'outline'
|
|
41
|
-
*/
|
|
42
|
-
appearance?: 'outline' | 'ghost';
|
|
43
|
-
}
|
|
44
|
-
declare const Code: React.ForwardRefExoticComponent<CodeProps>;
|
|
45
|
-
|
|
46
|
-
type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
47
|
-
/**
|
|
48
|
-
* A heading component that uses display styles for titles and section headers
|
|
49
|
-
*/
|
|
50
|
-
interface HeadingProps extends HTMLStyledProps<'h2'>, JsxStyleProps {
|
|
51
|
-
/**
|
|
52
|
-
* The heading level to render
|
|
53
|
-
* @default 'h2'
|
|
54
|
-
*/
|
|
55
|
-
as?: HeadingLevel;
|
|
56
|
-
/**
|
|
57
|
-
* The text style to use for the heading
|
|
58
|
-
* @default 'display.ui'
|
|
59
|
-
*/
|
|
60
|
-
textStyle?: Extract<JsxStyleProps['textStyle'], 'display' | `display${string}`>;
|
|
61
|
-
}
|
|
62
|
-
declare const Heading: React.ForwardRefExoticComponent<HeadingProps>;
|
|
63
|
-
|
|
64
|
-
type AsProp$1<C extends ElementType> = {
|
|
65
|
-
as?: C;
|
|
66
|
-
};
|
|
67
|
-
type PropsToOmit$1<C extends ElementType, P> = keyof (AsProp$1<C> & P);
|
|
68
|
-
/**
|
|
69
|
-
* A foundational text component that is responsive and customizable.
|
|
70
|
-
*/
|
|
71
|
-
interface TextProps<C extends ElementType = 'span'> {
|
|
72
|
-
/**
|
|
73
|
-
* The HTML element or React component to render the Text as
|
|
74
|
-
* @default 'span'
|
|
75
|
-
*/
|
|
76
|
-
as?: C;
|
|
77
|
-
/**
|
|
78
|
-
* Controls the font family, line height, and letter spacing of the text.
|
|
79
|
-
* @default 'ui'
|
|
80
|
-
*/
|
|
81
|
-
textStyle?: JsxStyleProps['textStyle'];
|
|
82
|
-
/**
|
|
83
|
-
* The color of the text
|
|
84
|
-
* @default 'fg'
|
|
85
|
-
*/
|
|
86
|
-
color?: Extract<JsxStyleProps['color'], `fg${string}` | 'fg'>;
|
|
87
|
-
/**
|
|
88
|
-
* The line clamp of the text. Useful for limiting the number of lines of text in a component.
|
|
89
|
-
* @default 'none'
|
|
90
|
-
*/
|
|
91
|
-
lineClamp?: JsxStyleProps['lineClamp'];
|
|
92
|
-
}
|
|
93
|
-
type PolymorphicTextProps<C extends ElementType> = TextProps<C> & Omit<React.ComponentPropsWithRef<C>, PropsToOmit$1<C, TextProps>> & JsxStyleProps;
|
|
94
|
-
type TextComponent = {
|
|
95
|
-
<C extends ElementType = 'span'>(props: PolymorphicTextProps<C>): React.ReactElement | null;
|
|
96
|
-
displayName?: string;
|
|
97
|
-
};
|
|
98
|
-
declare const Text: TextComponent;
|
|
99
|
-
|
|
100
|
-
type AsProp<C extends ElementType> = {
|
|
101
|
-
as?: C;
|
|
102
|
-
};
|
|
103
|
-
type PropsToOmit<C extends ElementType, P> = keyof (AsProp<C> & P);
|
|
104
|
-
/**
|
|
105
|
-
* A foundational layout component that provides a flexible container with sensible defaults.
|
|
106
|
-
*/
|
|
107
|
-
interface ViewProps<C extends ElementType = 'div'> {
|
|
108
|
-
/**
|
|
109
|
-
* The HTML element or React component to render the View as
|
|
110
|
-
* @default 'div'
|
|
111
|
-
*/
|
|
112
|
-
as?: C;
|
|
113
|
-
/**
|
|
114
|
-
* The display property of the View
|
|
115
|
-
* @default 'flex'
|
|
116
|
-
*/
|
|
117
|
-
display?: JsxStyleProps['display'];
|
|
118
|
-
/**
|
|
119
|
-
* The position property of the View
|
|
120
|
-
* @default 'relative'
|
|
121
|
-
*/
|
|
122
|
-
position?: JsxStyleProps['position'];
|
|
123
|
-
/**
|
|
124
|
-
* The flex direction property of the View
|
|
125
|
-
* @default 'column'
|
|
126
|
-
*/
|
|
127
|
-
flexDirection?: JsxStyleProps['flexDirection'];
|
|
128
|
-
/**
|
|
129
|
-
* The flex wrap property of the View
|
|
130
|
-
* @default 'nowrap'
|
|
131
|
-
*/
|
|
132
|
-
flexWrap?: JsxStyleProps['flexWrap'];
|
|
133
|
-
/**
|
|
134
|
-
* The align items property of the View
|
|
135
|
-
* @default 'stretch'
|
|
136
|
-
*/
|
|
137
|
-
alignItems?: JsxStyleProps['alignItems'];
|
|
138
|
-
/**
|
|
139
|
-
* The align self property of the View
|
|
140
|
-
* @default 'flex-start'
|
|
141
|
-
*/
|
|
142
|
-
alignSelf?: JsxStyleProps['alignSelf'];
|
|
143
|
-
/**
|
|
144
|
-
* The align content property of the View
|
|
145
|
-
* @default 'flex-start'
|
|
146
|
-
*/
|
|
147
|
-
alignContent?: JsxStyleProps['alignContent'];
|
|
148
|
-
/**
|
|
149
|
-
* The justify content property of the View
|
|
150
|
-
* @default 'flex-start'
|
|
151
|
-
*/
|
|
152
|
-
justifyContent?: JsxStyleProps['justifyContent'];
|
|
153
|
-
/**
|
|
154
|
-
* The min height property of the View
|
|
155
|
-
* @default '0'
|
|
156
|
-
*/
|
|
157
|
-
minHeight?: JsxStyleProps['minHeight'];
|
|
158
|
-
/**
|
|
159
|
-
* The min width property of the View
|
|
160
|
-
* @default '0'
|
|
161
|
-
*/
|
|
162
|
-
minWidth?: JsxStyleProps['minWidth'];
|
|
163
|
-
}
|
|
164
|
-
type PolymorphicViewProps<C extends ElementType> = ViewProps<C> & Omit<React.ComponentPropsWithRef<C>, PropsToOmit<C, ViewProps>> & JsxStyleProps;
|
|
165
|
-
type ViewComponent = {
|
|
166
|
-
<C extends ElementType = 'div'>(props: PolymorphicViewProps<C>): React.ReactElement | null;
|
|
167
|
-
displayName?: string;
|
|
168
|
-
};
|
|
169
|
-
declare const View: ViewComponent;
|
|
170
|
-
|
|
171
|
-
export { Button, type ButtonProps, Code, type CodeProps, Heading, type HeadingProps, type PolymorphicTextProps, type PolymorphicViewProps, Text, type TextProps, View, type ViewProps };
|
|
1
|
+
export { Button, ButtonProps, buttonRecipe } from './Button.js';
|
|
2
|
+
export { Code, CodeProps } from './Code.js';
|
|
3
|
+
export { Heading, HeadingProps } from './Heading.js';
|
|
4
|
+
export { PolymorphicTextProps, Text, TextProps } from './Text.js';
|
|
5
|
+
export { PolymorphicViewProps, View, ViewProps } from './View.js';
|
|
6
|
+
import 'react/jsx-runtime';
|
|
7
|
+
import 'packages/core/dist/types';
|
|
8
|
+
import 'react-aria-components';
|
|
9
|
+
import 'react';
|
|
10
|
+
import '@oztix/roadie-core/jsx';
|
|
11
|
+
import '@oztix/roadie-core/types';
|
package/dist/index.js
CHANGED
|
@@ -1,463 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var button = cva({
|
|
8
|
-
base: {
|
|
9
|
-
display: "inline-flex",
|
|
10
|
-
alignItems: "center",
|
|
11
|
-
justifyContent: "center",
|
|
12
|
-
backgroundColor: "transparent",
|
|
13
|
-
borderRadius: "050",
|
|
14
|
-
fontWeight: "semibold",
|
|
15
|
-
fontFamily: "ui",
|
|
16
|
-
cursor: "pointer",
|
|
17
|
-
border: "1px solid",
|
|
18
|
-
transition: "all 0.2s",
|
|
19
|
-
_disabled: {
|
|
20
|
-
opacity: 0.4,
|
|
21
|
-
cursor: "not-allowed",
|
|
22
|
-
backgroundColor: "bg.disabled",
|
|
23
|
-
color: "fg.disabled"
|
|
24
|
-
},
|
|
25
|
-
_focus: {
|
|
26
|
-
outline: "none"
|
|
27
|
-
},
|
|
28
|
-
_focusVisible: {
|
|
29
|
-
outline: "2px solid",
|
|
30
|
-
outlineColor: "border.focused"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
variants: {
|
|
34
|
-
appearance: {
|
|
35
|
-
solid: {
|
|
36
|
-
backgroundColor: "bg.subtle",
|
|
37
|
-
borderColor: "border.subtle",
|
|
38
|
-
color: "fg.subtle",
|
|
39
|
-
_hover: {
|
|
40
|
-
backgroundColor: "bg.subtle.hovered"
|
|
41
|
-
},
|
|
42
|
-
_active: {
|
|
43
|
-
backgroundColor: "bg.subtle.pressed"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
outline: {
|
|
47
|
-
border: "1px solid",
|
|
48
|
-
borderColor: "border.subtle",
|
|
49
|
-
color: "fg.subtle",
|
|
50
|
-
_hover: {
|
|
51
|
-
color: "fg",
|
|
52
|
-
borderColor: "border.hovered",
|
|
53
|
-
backgroundColor: "bg.hovered"
|
|
54
|
-
},
|
|
55
|
-
_active: {
|
|
56
|
-
color: "fg",
|
|
57
|
-
borderColor: "border.pressed",
|
|
58
|
-
backgroundColor: "bg.pressed"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
ghost: {
|
|
62
|
-
color: "fg.subtle",
|
|
63
|
-
borderColor: "transparent",
|
|
64
|
-
_hover: {
|
|
65
|
-
color: "fg",
|
|
66
|
-
backgroundColor: "bg.hovered"
|
|
67
|
-
},
|
|
68
|
-
_active: {
|
|
69
|
-
color: "fg",
|
|
70
|
-
backgroundColor: "bg.pressed"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
size: {
|
|
75
|
-
sm: {
|
|
76
|
-
minHeight: "400",
|
|
77
|
-
fontSize: "sm",
|
|
78
|
-
px: "200",
|
|
79
|
-
py: "075"
|
|
80
|
-
},
|
|
81
|
-
md: {
|
|
82
|
-
minHeight: "500",
|
|
83
|
-
fontSize: "md",
|
|
84
|
-
px: "200",
|
|
85
|
-
py: "100"
|
|
86
|
-
},
|
|
87
|
-
lg: {
|
|
88
|
-
minHeight: "600",
|
|
89
|
-
fontSize: "lg",
|
|
90
|
-
px: "300",
|
|
91
|
-
py: "150"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
emphasis: {
|
|
95
|
-
subtle: {
|
|
96
|
-
color: "fg.subtle"
|
|
97
|
-
},
|
|
98
|
-
accent: {
|
|
99
|
-
color: "fg.accent"
|
|
100
|
-
},
|
|
101
|
-
inverse: {
|
|
102
|
-
color: "fg.inverse"
|
|
103
|
-
},
|
|
104
|
-
success: {
|
|
105
|
-
color: "fg.success"
|
|
106
|
-
},
|
|
107
|
-
warning: {
|
|
108
|
-
color: "fg.warning"
|
|
109
|
-
},
|
|
110
|
-
danger: {
|
|
111
|
-
color: "fg.danger"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
compoundVariants: [
|
|
116
|
-
{
|
|
117
|
-
appearance: "solid",
|
|
118
|
-
emphasis: "subtle",
|
|
119
|
-
css: {
|
|
120
|
-
color: "fg.subtle",
|
|
121
|
-
_hover: {
|
|
122
|
-
color: "fg"
|
|
123
|
-
},
|
|
124
|
-
_active: {
|
|
125
|
-
color: "fg.subtle"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
appearance: "solid",
|
|
131
|
-
emphasis: "accent",
|
|
132
|
-
css: {
|
|
133
|
-
backgroundColor: "bg.accent.bold",
|
|
134
|
-
color: "fg.accent.inverse",
|
|
135
|
-
borderColor: "border.accent",
|
|
136
|
-
_hover: {
|
|
137
|
-
color: "fg.inverse",
|
|
138
|
-
backgroundColor: "bg.accent.bold.hovered"
|
|
139
|
-
},
|
|
140
|
-
_active: {
|
|
141
|
-
backgroundColor: "bg.accent.bold.pressed"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
appearance: "solid",
|
|
147
|
-
emphasis: "inverse",
|
|
148
|
-
css: {
|
|
149
|
-
backgroundColor: "bg.inverse",
|
|
150
|
-
color: "fg.inverse",
|
|
151
|
-
_hover: {
|
|
152
|
-
backgroundColor: "bg.inverse.hovered"
|
|
153
|
-
},
|
|
154
|
-
_active: {
|
|
155
|
-
backgroundColor: "bg.inverse.pressed"
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
appearance: "solid",
|
|
161
|
-
emphasis: "success",
|
|
162
|
-
css: {
|
|
163
|
-
backgroundColor: "bg.success.bold",
|
|
164
|
-
color: "fg.success.inverse",
|
|
165
|
-
borderColor: "border.success",
|
|
166
|
-
_hover: {
|
|
167
|
-
backgroundColor: "bg.success.bold.hovered"
|
|
168
|
-
},
|
|
169
|
-
_active: {
|
|
170
|
-
backgroundColor: "bg.success.bold.pressed"
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
appearance: "solid",
|
|
176
|
-
emphasis: "warning",
|
|
177
|
-
css: {
|
|
178
|
-
backgroundColor: "bg.warning.bold",
|
|
179
|
-
color: "fg.warning.inverse",
|
|
180
|
-
borderColor: "border.warning",
|
|
181
|
-
_hover: {
|
|
182
|
-
backgroundColor: "bg.warning.bold.hovered"
|
|
183
|
-
},
|
|
184
|
-
_active: {
|
|
185
|
-
backgroundColor: "bg.warning.bold.pressed"
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
appearance: "solid",
|
|
191
|
-
emphasis: "danger",
|
|
192
|
-
css: {
|
|
193
|
-
backgroundColor: "bg.danger.bold",
|
|
194
|
-
color: "fg.danger.inverse",
|
|
195
|
-
borderColor: "border.danger",
|
|
196
|
-
_hover: {
|
|
197
|
-
backgroundColor: "bg.danger.bold.hovered"
|
|
198
|
-
},
|
|
199
|
-
_active: {
|
|
200
|
-
backgroundColor: "bg.danger.bold.pressed"
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
appearance: "outline",
|
|
206
|
-
emphasis: "accent",
|
|
207
|
-
css: {
|
|
208
|
-
borderColor: "border.accent",
|
|
209
|
-
_hover: {
|
|
210
|
-
color: "fg.accent.hovered",
|
|
211
|
-
borderColor: "border.accent.hovered",
|
|
212
|
-
backgroundColor: "bg.accent.hovered"
|
|
213
|
-
},
|
|
214
|
-
_active: {
|
|
215
|
-
color: "fg.accent.pressed",
|
|
216
|
-
borderColor: "border.accent.pressed",
|
|
217
|
-
backgroundColor: "bg.accent.pressed"
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
appearance: "outline",
|
|
223
|
-
emphasis: "inverse",
|
|
224
|
-
css: {
|
|
225
|
-
borderColor: "border.bold",
|
|
226
|
-
color: "fg",
|
|
227
|
-
_hover: {
|
|
228
|
-
color: "fg.inverse.hovered",
|
|
229
|
-
borderColor: "border.bold.hovered",
|
|
230
|
-
backgroundColor: "bg.hovered"
|
|
231
|
-
},
|
|
232
|
-
_active: {
|
|
233
|
-
color: "fg.inverse.pressed",
|
|
234
|
-
borderColor: "border.bold.pressed",
|
|
235
|
-
backgroundColor: "bg.pressed"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
appearance: "outline",
|
|
241
|
-
emphasis: "success",
|
|
242
|
-
css: {
|
|
243
|
-
borderColor: "border.success",
|
|
244
|
-
_hover: {
|
|
245
|
-
color: "fg.success.hovered",
|
|
246
|
-
borderColor: "border.success.hovered",
|
|
247
|
-
backgroundColor: "bg.success.hovered"
|
|
248
|
-
},
|
|
249
|
-
_active: {
|
|
250
|
-
color: "fg.success.pressed",
|
|
251
|
-
borderColor: "border.success.pressed",
|
|
252
|
-
backgroundColor: "bg.success.pressed"
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
appearance: "outline",
|
|
258
|
-
emphasis: "warning",
|
|
259
|
-
css: {
|
|
260
|
-
borderColor: "border.warning",
|
|
261
|
-
_hover: {
|
|
262
|
-
color: "fg.warning.hovered",
|
|
263
|
-
borderColor: "border.warning.hovered",
|
|
264
|
-
backgroundColor: "bg.warning.hovered"
|
|
265
|
-
},
|
|
266
|
-
_active: {
|
|
267
|
-
color: "fg.warning.pressed",
|
|
268
|
-
borderColor: "border.warning.pressed",
|
|
269
|
-
backgroundColor: "bg.warning.pressed"
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
appearance: "outline",
|
|
275
|
-
emphasis: "danger",
|
|
276
|
-
css: {
|
|
277
|
-
borderColor: "border.danger",
|
|
278
|
-
_hover: {
|
|
279
|
-
color: "fg.danger.hovered",
|
|
280
|
-
borderColor: "border.danger.hovered",
|
|
281
|
-
backgroundColor: "bg.danger.hovered"
|
|
282
|
-
},
|
|
283
|
-
_active: {
|
|
284
|
-
color: "fg.danger.pressed",
|
|
285
|
-
borderColor: "border.danger.pressed",
|
|
286
|
-
backgroundColor: "bg.danger.pressed"
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
appearance: "ghost",
|
|
292
|
-
emphasis: "accent",
|
|
293
|
-
css: {
|
|
294
|
-
_hover: {
|
|
295
|
-
color: "fg.accent.hovered",
|
|
296
|
-
backgroundColor: "bg.accent.hovered"
|
|
297
|
-
},
|
|
298
|
-
_active: {
|
|
299
|
-
color: "fg.accent.pressed",
|
|
300
|
-
backgroundColor: "bg.accent.pressed"
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
appearance: "ghost",
|
|
306
|
-
emphasis: "inverse",
|
|
307
|
-
css: {
|
|
308
|
-
color: "fg",
|
|
309
|
-
_hover: {
|
|
310
|
-
color: "fg.inverse.hovered",
|
|
311
|
-
backgroundColor: "bg.hovered"
|
|
312
|
-
},
|
|
313
|
-
_active: {
|
|
314
|
-
color: "fg.inverse.pressed",
|
|
315
|
-
backgroundColor: "bg.pressed"
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
appearance: "ghost",
|
|
321
|
-
emphasis: "success",
|
|
322
|
-
css: {
|
|
323
|
-
_hover: {
|
|
324
|
-
color: "fg.success.hovered",
|
|
325
|
-
backgroundColor: "bg.success.hovered"
|
|
326
|
-
},
|
|
327
|
-
_active: {
|
|
328
|
-
color: "fg.success.pressed",
|
|
329
|
-
backgroundColor: "bg.success.pressed"
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
appearance: "ghost",
|
|
335
|
-
emphasis: "warning",
|
|
336
|
-
css: {
|
|
337
|
-
_hover: {
|
|
338
|
-
color: "fg.warning.hovered",
|
|
339
|
-
backgroundColor: "bg.warning.hovered"
|
|
340
|
-
},
|
|
341
|
-
_active: {
|
|
342
|
-
color: "fg.warning.pressed",
|
|
343
|
-
backgroundColor: "bg.warning.pressed"
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
appearance: "ghost",
|
|
349
|
-
emphasis: "danger",
|
|
350
|
-
css: {
|
|
351
|
-
_hover: {
|
|
352
|
-
color: "fg.danger.hovered",
|
|
353
|
-
backgroundColor: "bg.danger.hovered"
|
|
354
|
-
},
|
|
355
|
-
_active: {
|
|
356
|
-
color: "fg.danger.pressed",
|
|
357
|
-
backgroundColor: "bg.danger.pressed"
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
],
|
|
362
|
-
defaultVariants: {
|
|
363
|
-
appearance: "solid",
|
|
364
|
-
size: "md",
|
|
365
|
-
emphasis: "subtle"
|
|
366
|
-
}
|
|
367
|
-
});
|
|
368
|
-
function Button({
|
|
369
|
-
children,
|
|
370
|
-
appearance = "solid",
|
|
371
|
-
size = "md",
|
|
372
|
-
emphasis = "subtle",
|
|
373
|
-
isDisabled = false,
|
|
374
|
-
onPress,
|
|
375
|
-
className,
|
|
376
|
-
...props
|
|
377
|
-
}) {
|
|
378
|
-
return /* @__PURE__ */ jsx(
|
|
379
|
-
AriaButton,
|
|
380
|
-
{
|
|
381
|
-
onPress,
|
|
382
|
-
isDisabled,
|
|
383
|
-
className: cx(button({ appearance, size, emphasis }), className),
|
|
384
|
-
...props,
|
|
385
|
-
children
|
|
386
|
-
}
|
|
387
|
-
);
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
// src/components/Code/index.tsx
|
|
391
|
-
import "react";
|
|
392
|
-
import { styled } from "@oztix/roadie-core/jsx";
|
|
393
|
-
var Code = styled("code", {
|
|
394
|
-
base: {
|
|
395
|
-
backgroundColor: "bg.subtle",
|
|
396
|
-
textStyle: "code",
|
|
397
|
-
px: "050",
|
|
398
|
-
borderRadius: "050",
|
|
399
|
-
border: "1px solid"
|
|
400
|
-
},
|
|
401
|
-
variants: {
|
|
402
|
-
appearance: {
|
|
403
|
-
outline: {
|
|
404
|
-
borderColor: "border.subtlest"
|
|
405
|
-
},
|
|
406
|
-
ghost: {
|
|
407
|
-
borderColor: "transparent"
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
},
|
|
411
|
-
defaultVariants: {
|
|
412
|
-
appearance: "outline"
|
|
413
|
-
}
|
|
414
|
-
});
|
|
415
|
-
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", {
|
|
421
|
-
base: {
|
|
422
|
-
textStyle: "display.ui"
|
|
423
|
-
}
|
|
424
|
-
});
|
|
425
|
-
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", {
|
|
431
|
-
base: {
|
|
432
|
-
textStyle: "ui"
|
|
433
|
-
}
|
|
434
|
-
});
|
|
435
|
-
var Text = StyledText;
|
|
436
|
-
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", {
|
|
442
|
-
base: {
|
|
443
|
-
display: "flex",
|
|
444
|
-
position: "relative",
|
|
445
|
-
flexDirection: "column",
|
|
446
|
-
flexWrap: "nowrap",
|
|
447
|
-
alignItems: "stretch",
|
|
448
|
-
alignContent: "flex-start",
|
|
449
|
-
justifyContent: "flex-start",
|
|
450
|
-
minHeight: 0,
|
|
451
|
-
minWidth: 0
|
|
452
|
-
}
|
|
453
|
-
});
|
|
454
|
-
var View = StyledView;
|
|
455
|
-
View.displayName = "View";
|
|
456
|
-
export {
|
|
457
|
-
Button,
|
|
458
|
-
Code,
|
|
459
|
-
Heading,
|
|
460
|
-
Text,
|
|
461
|
-
View
|
|
462
|
-
};
|
|
1
|
+
export { b as Button, a as buttonRecipe } from './_chunks/chunk-JDVDZGUN.js';
|
|
2
|
+
export { a as Code } from './_chunks/chunk-76TTGNAE.js';
|
|
3
|
+
export { a as Heading } from './_chunks/chunk-5EABNA3A.js';
|
|
4
|
+
export { a as Text } from './_chunks/chunk-CNVMCX74.js';
|
|
5
|
+
export { a as View } from './_chunks/chunk-72747LP3.js';
|
|
6
|
+
//# sourceMappingURL=out.js.map
|
|
463
7
|
//# 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;AA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A,iBAAiB;AAAA,IACf,YAAY;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":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oztix/roadie-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "The components for Roadie Design System at Oztix",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
9
16
|
"sideEffects": false,
|
|
10
17
|
"files": [
|
|
11
18
|
"dist"
|
|
@@ -18,7 +25,7 @@
|
|
|
18
25
|
"react-dom": "^19.0.0"
|
|
19
26
|
},
|
|
20
27
|
"dependencies": {
|
|
21
|
-
"@oztix/roadie-core": "^0.
|
|
28
|
+
"@oztix/roadie-core": "^0.2.0",
|
|
22
29
|
"react-aria-components": "1.0.0"
|
|
23
30
|
},
|
|
24
31
|
"devDependencies": {
|