@oztix/roadie-components 0.2.1 → 1.0.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 +31 -111
- package/dist/Button.js +1 -1
- package/dist/Code.d.ts +15 -5
- package/dist/Code.js +1 -1
- package/dist/Heading.d.ts +23 -6
- package/dist/Heading.js +1 -1
- package/dist/Text.d.ts +24 -37
- package/dist/Text.js +1 -1
- package/dist/View.d.ts +7 -70
- package/dist/View.js +1 -1
- package/dist/_chunks/chunk-6FIUWNC7.js +9 -0
- package/dist/_chunks/chunk-6FIUWNC7.js.map +1 -0
- package/dist/_chunks/chunk-GSK3G4DW.js +9 -0
- package/dist/_chunks/chunk-GSK3G4DW.js.map +1 -0
- package/dist/_chunks/chunk-P5L5LN6E.js +9 -0
- package/dist/_chunks/chunk-P5L5LN6E.js.map +1 -0
- package/dist/_chunks/chunk-RJEJUZ3O.js +7 -0
- package/dist/_chunks/chunk-RJEJUZ3O.js.map +1 -0
- package/dist/_chunks/chunk-VDMZIGT2.js +10 -0
- package/dist/_chunks/chunk-VDMZIGT2.js.map +1 -0
- package/dist/index.d.ts +5 -6
- package/dist/index.js +5 -5
- package/package.json +10 -5
- package/src/components/Button/Button.test.tsx +156 -0
- package/src/components/Button/index.tsx +48 -0
- package/src/components/Code/Code.test.tsx +85 -0
- package/src/components/Code/index.tsx +37 -0
- package/src/components/Heading/Heading.test.tsx +128 -0
- package/src/components/Heading/index.tsx +52 -0
- package/src/components/Text/Text.test.tsx +121 -0
- package/src/components/Text/index.tsx +54 -0
- package/src/components/View/View.test.tsx +161 -0
- package/src/components/View/index.tsx +12 -0
- package/src/components/index.ts +14 -0
- package/src/index.test.tsx +37 -0
- package/src/index.tsx +5 -0
- package/dist/_chunks/chunk-5EABNA3A.js +0 -8
- package/dist/_chunks/chunk-5EABNA3A.js.map +0 -1
- package/dist/_chunks/chunk-72747LP3.js +0 -8
- package/dist/_chunks/chunk-72747LP3.js.map +0 -1
- package/dist/_chunks/chunk-76TTGNAE.js +0 -8
- package/dist/_chunks/chunk-76TTGNAE.js.map +0 -1
- package/dist/_chunks/chunk-CNVMCX74.js +0 -8
- package/dist/_chunks/chunk-CNVMCX74.js.map +0 -1
- package/dist/_chunks/chunk-JDVDZGUN.js +0 -9
- package/dist/_chunks/chunk-JDVDZGUN.js.map +0 -1
package/dist/Button.d.ts
CHANGED
|
@@ -1,116 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ColorPalette } from '@oztix/roadie-core';
|
|
3
|
+
import { HTMLStyledProps } from '@oztix/roadie-core/jsx';
|
|
4
|
+
import { ButtonVariantProps } from '@oztix/roadie-core/recipes';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
+
* A button component with various emphasis levels and sizes
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
interface ButtonProps extends HTMLStyledProps<'button'> {
|
|
10
|
+
/**
|
|
11
|
+
* The visual emphasis of the button
|
|
12
|
+
* @default 'default'
|
|
13
|
+
*/
|
|
14
|
+
emphasis?: ButtonVariantProps['emphasis'];
|
|
15
|
+
/**
|
|
16
|
+
* The size of the button
|
|
17
|
+
* @default 'md'
|
|
18
|
+
*/
|
|
19
|
+
size?: ButtonVariantProps['size'];
|
|
20
|
+
/**
|
|
21
|
+
* The color palette to use for the button
|
|
22
|
+
* @default 'neutral'
|
|
23
|
+
*/
|
|
24
|
+
colorPalette?: ColorPalette;
|
|
25
|
+
/**
|
|
26
|
+
* When true, the component will pass props to its child component
|
|
27
|
+
*/
|
|
28
|
+
asChild?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The content to display
|
|
31
|
+
*/
|
|
32
|
+
children?: React.ReactNode;
|
|
25
33
|
}
|
|
26
|
-
declare const
|
|
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;
|
|
34
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps>;
|
|
115
35
|
|
|
116
|
-
export { Button, type ButtonProps
|
|
36
|
+
export { Button, type ButtonProps };
|
package/dist/Button.js
CHANGED
package/dist/Code.d.ts
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ColorPalette } from '@oztix/roadie-core';
|
|
2
3
|
import { HTMLStyledProps } from '@oztix/roadie-core/jsx';
|
|
3
|
-
import {
|
|
4
|
+
import { CodeVariantProps } from '@oztix/roadie-core/recipes';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* A code component that inherits from Text and renders as a code element
|
|
7
8
|
*/
|
|
8
|
-
interface CodeProps extends HTMLStyledProps<'code'
|
|
9
|
+
interface CodeProps extends HTMLStyledProps<'code'> {
|
|
9
10
|
/**
|
|
10
11
|
* The appearance of the code block
|
|
11
|
-
* @default '
|
|
12
|
+
* @default 'default'
|
|
12
13
|
*/
|
|
13
|
-
emphasis?: '
|
|
14
|
+
emphasis?: CodeVariantProps['emphasis'];
|
|
15
|
+
/**
|
|
16
|
+
* The color palette to use for the code
|
|
17
|
+
* @default 'neutral'
|
|
18
|
+
*/
|
|
19
|
+
colorPalette?: ColorPalette;
|
|
20
|
+
/**
|
|
21
|
+
* The content to display
|
|
22
|
+
*/
|
|
23
|
+
children?: ReactNode;
|
|
14
24
|
}
|
|
15
25
|
declare const Code: React.ForwardRefExoticComponent<CodeProps>;
|
|
16
26
|
|
package/dist/Code.js
CHANGED
package/dist/Heading.d.ts
CHANGED
|
@@ -1,22 +1,39 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ColorPalette } from '@oztix/roadie-core';
|
|
2
3
|
import { HTMLStyledProps } from '@oztix/roadie-core/jsx';
|
|
4
|
+
import { HeadingVariantProps } from '@oztix/roadie-core/recipes';
|
|
3
5
|
import { JsxStyleProps } from '@oztix/roadie-core/types';
|
|
4
6
|
|
|
5
|
-
type
|
|
7
|
+
type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label';
|
|
8
|
+
type HeadingStyle = Extract<JsxStyleProps['textStyle'], `display.${string}`>;
|
|
6
9
|
/**
|
|
7
10
|
* A heading component that uses display styles for titles and section headers
|
|
8
11
|
*/
|
|
9
|
-
interface HeadingProps extends HTMLStyledProps<'h2'
|
|
12
|
+
interface HeadingProps extends HTMLStyledProps<'h2'> {
|
|
10
13
|
/**
|
|
11
|
-
* The heading
|
|
14
|
+
* The heading element to render
|
|
12
15
|
* @default 'h2'
|
|
13
16
|
*/
|
|
14
|
-
as?:
|
|
17
|
+
as?: HeadingElement;
|
|
15
18
|
/**
|
|
16
19
|
* The text style to use for the heading
|
|
17
20
|
* @default 'display.ui'
|
|
18
21
|
*/
|
|
19
|
-
textStyle?:
|
|
22
|
+
textStyle?: HeadingStyle;
|
|
23
|
+
/**
|
|
24
|
+
* The color palette to use for the heading
|
|
25
|
+
* @default 'neutral'
|
|
26
|
+
*/
|
|
27
|
+
colorPalette?: ColorPalette;
|
|
28
|
+
/**
|
|
29
|
+
* Set a sepecific empahasis level for differen fonts like subtitles
|
|
30
|
+
* @default 'default'
|
|
31
|
+
*/
|
|
32
|
+
emphasis?: HeadingVariantProps['emphasis'];
|
|
33
|
+
/**
|
|
34
|
+
* The content to display
|
|
35
|
+
*/
|
|
36
|
+
children?: ReactNode;
|
|
20
37
|
}
|
|
21
38
|
declare const Heading: React.ForwardRefExoticComponent<HeadingProps>;
|
|
22
39
|
|
package/dist/Heading.js
CHANGED
package/dist/Text.d.ts
CHANGED
|
@@ -1,54 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ColorPalette } from '@oztix/roadie-core';
|
|
3
|
+
import { HTMLStyledProps } from '@oztix/roadie-core/jsx';
|
|
4
|
+
import { TextVariantProps } from '@oztix/roadie-core/recipes';
|
|
3
5
|
|
|
4
|
-
type AsProp<C extends ElementType> = {
|
|
5
|
-
as?: C;
|
|
6
|
-
};
|
|
7
|
-
type PropsToOmit<C extends ElementType, P> = keyof (AsProp<C> & P);
|
|
8
6
|
/**
|
|
9
|
-
*
|
|
7
|
+
* Text component for displaying content with various styling options
|
|
10
8
|
*/
|
|
11
|
-
interface TextProps
|
|
9
|
+
interface TextProps extends HTMLStyledProps<'span'> {
|
|
12
10
|
/**
|
|
13
|
-
* The
|
|
14
|
-
* @default '
|
|
11
|
+
* The visual emphasis of the text
|
|
12
|
+
* @default 'default'
|
|
15
13
|
*/
|
|
16
|
-
|
|
14
|
+
emphasis?: TextVariantProps['emphasis'];
|
|
17
15
|
/**
|
|
18
|
-
*
|
|
19
|
-
* @default
|
|
16
|
+
* Whether the text is interactive
|
|
17
|
+
* @default false
|
|
20
18
|
*/
|
|
21
|
-
|
|
19
|
+
interactive?: TextVariantProps['interactive'];
|
|
22
20
|
/**
|
|
23
|
-
* The
|
|
24
|
-
* @default '
|
|
21
|
+
* The HTML element to render the text as
|
|
22
|
+
* @default 'span'
|
|
25
23
|
*/
|
|
26
|
-
|
|
24
|
+
as?: HTMLStyledProps<'span'>['as'];
|
|
27
25
|
/**
|
|
28
|
-
* The
|
|
29
|
-
*
|
|
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'
|
|
26
|
+
* The color palette to use for the text
|
|
27
|
+
* @default 'neutral'
|
|
34
28
|
*/
|
|
35
|
-
|
|
29
|
+
colorPalette?: ColorPalette;
|
|
36
30
|
/**
|
|
37
|
-
*
|
|
38
|
-
* @default false
|
|
31
|
+
* When true, the component will pass props to its child component
|
|
39
32
|
*/
|
|
40
|
-
|
|
33
|
+
asChild?: boolean;
|
|
41
34
|
/**
|
|
42
|
-
* The
|
|
43
|
-
* @default 'none'
|
|
35
|
+
* The content to display
|
|
44
36
|
*/
|
|
45
|
-
|
|
37
|
+
children?: ReactNode;
|
|
46
38
|
}
|
|
47
|
-
|
|
48
|
-
type TextComponent = {
|
|
49
|
-
<C extends ElementType = 'span'>(props: PolymorphicTextProps<C>): React.ReactElement | null;
|
|
50
|
-
displayName?: string;
|
|
51
|
-
};
|
|
52
|
-
declare const Text: TextComponent;
|
|
39
|
+
declare const Text: React.ForwardRefExoticComponent<TextProps>;
|
|
53
40
|
|
|
54
|
-
export {
|
|
41
|
+
export { Text, type TextProps };
|
package/dist/Text.js
CHANGED
package/dist/View.d.ts
CHANGED
|
@@ -1,75 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as _oztix_roadie_core_jsx from '@oztix/roadie-core/jsx';
|
|
2
|
+
import { View as View$1 } from '@oztix/roadie-core/jsx';
|
|
3
3
|
|
|
4
|
-
type AsProp<C extends ElementType> = {
|
|
5
|
-
as?: C;
|
|
6
|
-
};
|
|
7
|
-
type PropsToOmit<C extends ElementType, P> = keyof (AsProp<C> & P);
|
|
8
4
|
/**
|
|
9
5
|
* A foundational layout component that provides a flexible container with sensible defaults.
|
|
6
|
+
* Based on the Panda CSS Box pattern but with better defaults for application UI layout.
|
|
7
|
+
*
|
|
10
8
|
*/
|
|
11
|
-
|
|
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;
|
|
9
|
+
declare const View: FunctionComponent<_oztix_roadie_core_jsx.ViewProps>;
|
|
10
|
+
type ViewProps = React.ComponentProps<typeof View$1>;
|
|
74
11
|
|
|
75
|
-
export {
|
|
12
|
+
export { View, type ViewProps };
|
package/dist/View.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ark } from '@ark-ui/react/factory';
|
|
2
|
+
import { styled } from '@oztix/roadie-core/jsx';
|
|
3
|
+
import { heading } from '@oztix/roadie-core/recipes';
|
|
4
|
+
|
|
5
|
+
var r=styled(ark.h2,heading);r.displayName="Heading";
|
|
6
|
+
|
|
7
|
+
export { r as a };
|
|
8
|
+
//# sourceMappingURL=out.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-6FIUWNC7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Heading/index.tsx"],"names":["ark","styled","heading","Heading"],"mappings":"AAEA,OAAS,OAAAA,MAAW,wBAGpB,OAA+B,UAAAC,MAAc,yBAC7C,OAAmC,WAAAC,MAAe,6BAwC3C,IAAMC,EAAUF,EACrBD,EAAI,GACJE,CACF,EAEAC,EAAQ,YAAc","sourcesContent":["import type { ReactNode } from 'react'\n\nimport { ark } from '@ark-ui/react/factory'\n\nimport type { ColorPalette } from '@oztix/roadie-core'\nimport { type HTMLStyledProps, styled } from '@oztix/roadie-core/jsx'\nimport { type HeadingVariantProps, heading } from '@oztix/roadie-core/recipes'\nimport type { JsxStyleProps } from '@oztix/roadie-core/types'\n\ntype HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label'\ntype HeadingStyle = Extract<JsxStyleProps['textStyle'], `display.${string}`>\n\n/**\n * A heading component that uses display styles for titles and section headers\n */\nexport interface HeadingProps extends HTMLStyledProps<'h2'> {\n /**\n * The heading element to render\n * @default 'h2'\n */\n as?: HeadingElement\n\n /**\n * The text style to use for the heading\n * @default 'display.ui'\n */\n textStyle?: HeadingStyle\n\n /**\n * The color palette to use for the heading\n * @default 'neutral'\n */\n colorPalette?: ColorPalette\n\n /**\n * Set a sepecific empahasis level for differen fonts like subtitles\n * @default 'default'\n */\n emphasis?: HeadingVariantProps['emphasis']\n\n /**\n * The content to display\n */\n children?: ReactNode\n}\n\nexport const Heading = styled(\n ark.h2,\n heading\n) as React.ForwardRefExoticComponent<HeadingProps>\n\nHeading.displayName = 'Heading'\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ark } from '@ark-ui/react/factory';
|
|
2
|
+
import { styled } from '@oztix/roadie-core/jsx';
|
|
3
|
+
import { text } from '@oztix/roadie-core/recipes';
|
|
4
|
+
|
|
5
|
+
var r=styled(ark.span,text);r.displayName="Text";
|
|
6
|
+
|
|
7
|
+
export { r as a };
|
|
8
|
+
//# sourceMappingURL=out.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-GSK3G4DW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Text/index.tsx"],"names":["ark","styled","text","Text"],"mappings":"AAEA,OAAS,OAAAA,MAAW,wBAGpB,OAAS,UAAAC,MAAc,yBAEvB,OAAgC,QAAAC,MAAY,6BAyCrC,IAAMC,EAAOF,EAClBD,EAAI,KACJE,CACF,EAEAC,EAAK,YAAc","sourcesContent":["import type { ReactNode } from 'react'\n\nimport { ark } from '@ark-ui/react/factory'\n\nimport type { ColorPalette } from '@oztix/roadie-core'\nimport { styled } from '@oztix/roadie-core/jsx'\nimport type { HTMLStyledProps } from '@oztix/roadie-core/jsx'\nimport { type TextVariantProps, text } from '@oztix/roadie-core/recipes'\n\n/**\n * Text component for displaying content with various styling options\n */\nexport interface TextProps extends HTMLStyledProps<'span'> {\n /**\n * The visual emphasis of the text\n * @default 'default'\n */\n emphasis?: TextVariantProps['emphasis']\n\n /**\n * Whether the text is interactive\n * @default false\n */\n interactive?: TextVariantProps['interactive']\n\n /**\n * The HTML element to render the text as\n * @default 'span'\n */\n as?: HTMLStyledProps<'span'>['as']\n\n /**\n * The color palette to use for the text\n * @default 'neutral'\n */\n colorPalette?: ColorPalette\n\n /**\n * When true, the component will pass props to its child component\n */\n asChild?: boolean\n\n /**\n * The content to display\n */\n children?: ReactNode\n}\n\nexport const Text = styled(\n ark.span,\n text\n) as React.ForwardRefExoticComponent<TextProps>\n\nText.displayName = 'Text'\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ark } from '@ark-ui/react/factory';
|
|
2
|
+
import { styled } from '@oztix/roadie-core/jsx';
|
|
3
|
+
import { code } from '@oztix/roadie-core/recipes';
|
|
4
|
+
|
|
5
|
+
var t=styled(ark.code,code);t.displayName="Code";
|
|
6
|
+
|
|
7
|
+
export { t as a };
|
|
8
|
+
//# sourceMappingURL=out.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-P5L5LN6E.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Code/index.tsx"],"names":["ark","styled","code","Code"],"mappings":"AAEA,OAAS,OAAAA,MAAW,wBAGpB,OAAS,UAAAC,MAAc,yBAEvB,OAAgC,QAAAC,MAAY,6BAwBrC,IAAMC,EAAOF,EAClBD,EAAI,KACJE,CACF,EAEAC,EAAK,YAAc","sourcesContent":["import type { ReactNode } from 'react'\n\nimport { ark } from '@ark-ui/react/factory'\n\nimport type { ColorPalette } from '@oztix/roadie-core'\nimport { styled } from '@oztix/roadie-core/jsx'\nimport type { HTMLStyledProps } from '@oztix/roadie-core/jsx'\nimport { type CodeVariantProps, code } from '@oztix/roadie-core/recipes'\n\n/**\n * A code component that inherits from Text and renders as a code element\n */\nexport interface CodeProps extends HTMLStyledProps<'code'> {\n /**\n * The appearance of the code block\n * @default 'default'\n */\n emphasis?: CodeVariantProps['emphasis']\n\n /**\n * The color palette to use for the code\n * @default 'neutral'\n */\n colorPalette?: ColorPalette\n\n /**\n * The content to display\n */\n children?: ReactNode\n}\n\nexport const Code = styled(\n ark.code,\n code\n) as React.ForwardRefExoticComponent<CodeProps>\n\nCode.displayName = 'Code'\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/View/index.tsx"],"names":["ViewPattern","View"],"mappings":"AAAA,OAAS,QAAQA,MAAmB,yBAO7B,IAAMC,EAAOD,EAIpBC,EAAK,YAAc","sourcesContent":["import { View as ViewPattern } from '@oztix/roadie-core/jsx'\n\n/**\n * A foundational layout component that provides a flexible container with sensible defaults.\n * Based on the Panda CSS Box pattern but with better defaults for application UI layout.\n *\n */\nexport const View = ViewPattern\n\nexport type ViewProps = React.ComponentProps<typeof ViewPattern>\n\nView.displayName = 'View'\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import { ark } from '@ark-ui/react/factory';
|
|
3
|
+
import { styled } from '@oztix/roadie-core/jsx';
|
|
4
|
+
import { button } from '@oztix/roadie-core/recipes';
|
|
5
|
+
|
|
6
|
+
var r=styled(ark.button,button);r.displayName="Button";
|
|
7
|
+
|
|
8
|
+
export { r as a };
|
|
9
|
+
//# sourceMappingURL=out.js.map
|
|
10
|
+
//# sourceMappingURL=chunk-VDMZIGT2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Button/index.tsx"],"names":["ark","styled","button","Button"],"mappings":"AAAA,MAAkB,QAElB,OAAS,OAAAA,MAAW,wBAGpB,OAAS,UAAAC,MAAc,yBAEvB,OAAkC,UAAAC,MAAc,6BAmCzC,IAAMC,EAASF,EACpBD,EAAI,OACJE,CACF,EAEAC,EAAO,YAAc","sourcesContent":["import React from 'react'\n\nimport { ark } from '@ark-ui/react/factory'\n\nimport type { ColorPalette } from '@oztix/roadie-core'\nimport { styled } from '@oztix/roadie-core/jsx'\nimport type { HTMLStyledProps } from '@oztix/roadie-core/jsx'\nimport { type ButtonVariantProps, button } from '@oztix/roadie-core/recipes'\n\n/**\n * A button component with various emphasis levels and sizes\n */\nexport interface ButtonProps extends HTMLStyledProps<'button'> {\n /**\n * The visual emphasis of the button\n * @default 'default'\n */\n emphasis?: ButtonVariantProps['emphasis']\n\n /**\n * The size of the button\n * @default 'md'\n */\n size?: ButtonVariantProps['size']\n\n /**\n * The color palette to use for the button\n * @default 'neutral'\n */\n colorPalette?: ColorPalette\n\n /**\n * When true, the component will pass props to its child component\n */\n asChild?: boolean\n\n /**\n * The content to display\n */\n children?: React.ReactNode\n}\n\nexport const Button = styled(\n ark.button,\n button\n) as React.ForwardRefExoticComponent<ButtonProps>\n\nButton.displayName = 'Button'\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export { Button, ButtonProps
|
|
1
|
+
export { Button, ButtonProps } from './Button.js';
|
|
2
2
|
export { Code, CodeProps } from './Code.js';
|
|
3
3
|
export { Heading, HeadingProps } from './Heading.js';
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
import 'react/jsx-runtime';
|
|
7
|
-
import 'packages/core/dist/types';
|
|
8
|
-
import 'react-aria-components';
|
|
4
|
+
export { Text, TextProps } from './Text.js';
|
|
5
|
+
export { View, ViewProps } from './View.js';
|
|
9
6
|
import 'react';
|
|
7
|
+
import '@oztix/roadie-core';
|
|
10
8
|
import '@oztix/roadie-core/jsx';
|
|
9
|
+
import '@oztix/roadie-core/recipes';
|
|
11
10
|
import '@oztix/roadie-core/types';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { a as Code } from './_chunks/chunk-
|
|
3
|
-
export { a as Heading } from './_chunks/chunk-
|
|
4
|
-
export { a as Text } from './_chunks/chunk-
|
|
5
|
-
export { a as View } from './_chunks/chunk-
|
|
1
|
+
export { a as Button } from './_chunks/chunk-VDMZIGT2.js';
|
|
2
|
+
export { a as Code } from './_chunks/chunk-P5L5LN6E.js';
|
|
3
|
+
export { a as Heading } from './_chunks/chunk-6FIUWNC7.js';
|
|
4
|
+
export { a as Text } from './_chunks/chunk-GSK3G4DW.js';
|
|
5
|
+
export { a as View } from './_chunks/chunk-RJEJUZ3O.js';
|
|
6
6
|
//# sourceMappingURL=out.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oztix/roadie-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "The components for Roadie Design System at Oztix",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -11,11 +11,16 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.js",
|
|
13
13
|
"require": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./src/*": {
|
|
16
|
+
"types": "./src/*",
|
|
17
|
+
"import": "./src/*"
|
|
14
18
|
}
|
|
15
19
|
},
|
|
16
20
|
"sideEffects": false,
|
|
17
21
|
"files": [
|
|
18
|
-
"dist"
|
|
22
|
+
"dist",
|
|
23
|
+
"src"
|
|
19
24
|
],
|
|
20
25
|
"publishConfig": {
|
|
21
26
|
"access": "public"
|
|
@@ -25,11 +30,11 @@
|
|
|
25
30
|
"react-dom": "^19.0.0"
|
|
26
31
|
},
|
|
27
32
|
"dependencies": {
|
|
28
|
-
"@
|
|
29
|
-
"
|
|
33
|
+
"@ark-ui/react": "5.26.2",
|
|
34
|
+
"@oztix/roadie-core": "1.0.0"
|
|
30
35
|
},
|
|
31
36
|
"devDependencies": {
|
|
32
|
-
"@pandacss/dev": "
|
|
37
|
+
"@pandacss/dev": "1.4.3",
|
|
33
38
|
"@testing-library/jest-dom": "6.1.6",
|
|
34
39
|
"@testing-library/react": "15.0.0",
|
|
35
40
|
"@testing-library/user-event": "14.5.1",
|