@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.
- package/components/dist/index.d.ts +107 -55
- package/components/dist/index.js +45839 -44321
- package/icons/index.ts +148 -148
- package/package.json +1 -1
- package/styles/dist/blue.css +154 -0
- package/styles/dist/main.css +205 -0
- package/styles/dist/purple.css +154 -0
- package/styles/dist/red.css +154 -0
- package/styles/dist/tailwind-tokens.js +1137 -0
- package/styles/dist/yellow.css +154 -0
|
@@ -1,72 +1,124 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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: ({
|
|
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 [
|
|
32
|
-
declare const variants: readonly [
|
|
33
|
-
type ButtonSize =
|
|
34
|
-
type Variant =
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
declare const buttonStyle: ({ size, variant
|
|
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
|
-
|
|
42
|
-
|
|
57
|
+
innerClassName?: string
|
|
58
|
+
loading?: boolean
|
|
43
59
|
}
|
|
44
|
-
declare const Button: react.ForwardRefExoticComponent<
|
|
60
|
+
declare const Button: react.ForwardRefExoticComponent<
|
|
61
|
+
Omit<ButtonProps, 'ref'> & react.RefAttributes<HTMLButtonElement>
|
|
62
|
+
>
|
|
45
63
|
|
|
46
|
-
declare const spinnerSizes: readonly [
|
|
47
|
-
declare const spinnerVariants: readonly [
|
|
48
|
-
type SpinnerSize =
|
|
49
|
-
type SpinnerVariant =
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
69
|
+
className?: string
|
|
70
|
+
size?: SpinnerSize
|
|
71
|
+
variant?: SpinnerVariant
|
|
54
72
|
}
|
|
55
|
-
declare const Spinner: ({
|
|
73
|
+
declare const Spinner: ({
|
|
74
|
+
className,
|
|
75
|
+
size,
|
|
76
|
+
variant,
|
|
77
|
+
}: SpinnerProps) => react_jsx_runtime.JSX.Element
|
|
56
78
|
type Props = {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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: ({
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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 {
|
|
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
|
+
}
|