@oxide/design-system 0.12.0 → 0.12.1--canary.fcbeb0f.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.
@@ -1,72 +1,124 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as _asciidoctor_core_types from '@asciidoctor/core/types';
3
- import * as react from 'react';
4
- import { ReactNode } from 'react';
5
- import { TabsProps, TabsTriggerProps, TabsListProps, TabsContentProps } from '@radix-ui/react-tabs';
6
- import { SetRequired } from 'type-fest';
1
+ import * as _asciidoctor_core_types from '@asciidoctor/core/types'
2
+ import {
3
+ TabsContentProps,
4
+ TabsListProps,
5
+ TabsProps,
6
+ TabsTriggerProps,
7
+ } from '@radix-ui/react-tabs'
8
+ import * as react from 'react'
9
+ import { ReactNode } from 'react'
10
+ import * as react_jsx_runtime from 'react/jsx-runtime'
11
+ import { SetRequired } from 'type-fest'
7
12
 
8
13
  declare const AsciiDocBlocks: {
9
- Admonition: ({ node }: {
10
- node: _asciidoctor_core_types.Block;
11
- }) => react_jsx_runtime.JSX.Element;
12
- Listing: ({ node }: {
13
- node: _asciidoctor_core_types.Block;
14
- }) => react_jsx_runtime.JSX.Element;
15
- Table: ({ node }: {
16
- node: _asciidoctor_core_types.Table;
17
- }) => react_jsx_runtime.JSX.Element;
18
- };
14
+ Admonition: ({
15
+ node,
16
+ }: {
17
+ node: _asciidoctor_core_types.Block
18
+ }) => react_jsx_runtime.JSX.Element
19
+ Listing: ({
20
+ node,
21
+ }: {
22
+ node: _asciidoctor_core_types.Block
23
+ }) => react_jsx_runtime.JSX.Element
24
+ Table: ({
25
+ node,
26
+ }: {
27
+ node: _asciidoctor_core_types.Table
28
+ }) => react_jsx_runtime.JSX.Element
29
+ }
19
30
 
20
- type BadgeColor = 'default' | 'destructive' | 'notice' | 'neutral' | 'purple' | 'blue';
21
- type BadgeVariant = 'default' | 'solid';
31
+ type BadgeColor = 'default' | 'destructive' | 'notice' | 'neutral' | 'purple' | 'blue'
32
+ type BadgeVariant = 'default' | 'solid'
22
33
  interface BadgeProps {
23
- color?: BadgeColor;
24
- className?: string;
25
- children: React.ReactNode;
26
- variant?: BadgeVariant;
34
+ color?: BadgeColor
35
+ className?: string
36
+ children: React.ReactNode
37
+ variant?: BadgeVariant
27
38
  }
28
- declare const badgeColors: Record<BadgeVariant, Record<BadgeColor, string>>;
29
- declare const Badge: ({ className, children, color, variant, }: BadgeProps) => react_jsx_runtime.JSX.Element;
39
+ declare const badgeColors: Record<BadgeVariant, Record<BadgeColor, string>>
40
+ declare const Badge: ({
41
+ className,
42
+ children,
43
+ color,
44
+ variant,
45
+ }: BadgeProps) => react_jsx_runtime.JSX.Element
30
46
 
31
- declare const buttonSizes: readonly ["sm", "icon", "base"];
32
- declare const variants: readonly ["primary", "secondary", "ghost", "danger"];
33
- type ButtonSize = (typeof buttonSizes)[number];
34
- type Variant = (typeof variants)[number];
47
+ declare const buttonSizes: readonly ['sm', 'icon', 'base']
48
+ declare const variants: readonly ['primary', 'secondary', 'ghost', 'danger']
49
+ type ButtonSize = typeof buttonSizes[number]
50
+ type Variant = typeof variants[number]
35
51
  type ButtonStyleProps = {
36
- size?: ButtonSize;
37
- variant?: Variant;
38
- };
39
- declare const buttonStyle: ({ size, variant, }?: ButtonStyleProps) => string;
52
+ size?: ButtonSize
53
+ variant?: Variant
54
+ }
55
+ declare const buttonStyle: ({ size, variant }?: ButtonStyleProps) => string
40
56
  interface ButtonProps extends React.ComponentPropsWithRef<'button'>, ButtonStyleProps {
41
- innerClassName?: string;
42
- loading?: boolean;
57
+ innerClassName?: string
58
+ loading?: boolean
43
59
  }
44
- declare const Button: react.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
60
+ declare const Button: react.ForwardRefExoticComponent<
61
+ Omit<ButtonProps, 'ref'> & react.RefAttributes<HTMLButtonElement>
62
+ >
45
63
 
46
- declare const spinnerSizes: readonly ["base", "lg"];
47
- declare const spinnerVariants: readonly ["primary", "secondary", "ghost", "danger"];
48
- type SpinnerSize = (typeof spinnerSizes)[number];
49
- type SpinnerVariant = (typeof spinnerVariants)[number];
64
+ declare const spinnerSizes: readonly ['base', 'lg']
65
+ declare const spinnerVariants: readonly ['primary', 'secondary', 'ghost', 'danger']
66
+ type SpinnerSize = typeof spinnerSizes[number]
67
+ type SpinnerVariant = typeof spinnerVariants[number]
50
68
  interface SpinnerProps {
51
- className?: string;
52
- size?: SpinnerSize;
53
- variant?: SpinnerVariant;
69
+ className?: string
70
+ size?: SpinnerSize
71
+ variant?: SpinnerVariant
54
72
  }
55
- declare const Spinner: ({ className, size, variant, }: SpinnerProps) => react_jsx_runtime.JSX.Element;
73
+ declare const Spinner: ({
74
+ className,
75
+ size,
76
+ variant,
77
+ }: SpinnerProps) => react_jsx_runtime.JSX.Element
56
78
  type Props = {
57
- isLoading: boolean;
58
- children?: ReactNode;
59
- minTime?: number;
60
- };
79
+ isLoading: boolean
80
+ children?: ReactNode
81
+ minTime?: number
82
+ }
61
83
  /** Loading spinner that shows for a minimum of `minTime` */
62
- declare const SpinnerLoader: ({ isLoading, children, minTime }: Props) => react_jsx_runtime.JSX.Element;
84
+ declare const SpinnerLoader: ({
85
+ isLoading,
86
+ children,
87
+ minTime,
88
+ }: Props) => react_jsx_runtime.JSX.Element
63
89
 
64
- type TabsRootProps = SetRequired<TabsProps, 'defaultValue'>;
90
+ type TabsRootProps = SetRequired<TabsProps, 'defaultValue'>
65
91
  declare const Tabs: {
66
- Root: ({ className, ...props }: TabsRootProps) => react_jsx_runtime.JSX.Element;
67
- Trigger: ({ children, className, ...props }: TabsTriggerProps) => react_jsx_runtime.JSX.Element;
68
- List: ({ className, ...props }: TabsListProps) => react_jsx_runtime.JSX.Element;
69
- Content: ({ className, ...props }: TabsContentProps) => react_jsx_runtime.JSX.Element;
70
- };
92
+ Root: ({ className, ...props }: TabsRootProps) => react_jsx_runtime.JSX.Element
93
+ Trigger: ({
94
+ children,
95
+ className,
96
+ ...props
97
+ }: TabsTriggerProps) => react_jsx_runtime.JSX.Element
98
+ List: ({ className, ...props }: TabsListProps) => react_jsx_runtime.JSX.Element
99
+ Content: ({ className, ...props }: TabsContentProps) => react_jsx_runtime.JSX.Element
100
+ }
71
101
 
72
- export { AsciiDocBlocks, Badge, BadgeColor, BadgeProps, BadgeVariant, Button, ButtonProps, ButtonSize, Spinner, SpinnerLoader, SpinnerSize, SpinnerVariant, Tabs, TabsRootProps, Variant, badgeColors, buttonSizes, buttonStyle, spinnerSizes, spinnerVariants, variants };
102
+ export {
103
+ AsciiDocBlocks,
104
+ Badge,
105
+ BadgeColor,
106
+ BadgeProps,
107
+ BadgeVariant,
108
+ Button,
109
+ ButtonProps,
110
+ ButtonSize,
111
+ Spinner,
112
+ SpinnerLoader,
113
+ SpinnerSize,
114
+ SpinnerVariant,
115
+ Tabs,
116
+ TabsRootProps,
117
+ Variant,
118
+ badgeColors,
119
+ buttonSizes,
120
+ buttonStyle,
121
+ spinnerSizes,
122
+ spinnerVariants,
123
+ variants,
124
+ }