@algorithm-shift/design-system 1.2.21 → 1.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +15 -18
- package/dist/index.d.ts +15 -18
- package/dist/index.js +307 -258
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +282 -233
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import * as React$1 from 'react';
|
|
4
|
-
import React__default from 'react';
|
|
5
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import React$1 from 'react';
|
|
6
3
|
import { ClassValue } from 'clsx';
|
|
7
4
|
|
|
8
|
-
declare const buttonVariants: (props?: ({
|
|
9
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
10
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
11
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
12
|
-
declare function Button({ className, variant, size, asChild, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
13
|
-
asChild?: boolean;
|
|
14
|
-
}): react_jsx_runtime.JSX.Element;
|
|
15
|
-
|
|
16
5
|
interface ElementProps {
|
|
17
6
|
children?: React.ReactNode;
|
|
18
7
|
className?: string;
|
|
@@ -100,21 +89,29 @@ interface NotificationProps extends ElementProps {
|
|
|
100
89
|
interface LogoProps extends ElementProps {
|
|
101
90
|
imageUrl?: string;
|
|
102
91
|
altText?: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface ButtonProps extends ElementProps {
|
|
95
|
+
textContent?: string;
|
|
103
96
|
}
|
|
104
97
|
|
|
105
98
|
declare const Flex: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
106
99
|
|
|
107
100
|
declare const Grid: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
108
101
|
|
|
109
|
-
declare const
|
|
110
|
-
style: React__default.CSSProperties | undefined;
|
|
111
|
-
className: string;
|
|
112
|
-
}, HTMLElement>;
|
|
102
|
+
declare const Container: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
113
103
|
|
|
114
|
-
declare const
|
|
104
|
+
declare const ButtonComponent: ({ className, style, textContent, }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
115
105
|
|
|
116
106
|
declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
117
107
|
|
|
108
|
+
declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
109
|
+
|
|
110
|
+
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React$1.DetailedReactHTMLElement<{
|
|
111
|
+
style: React$1.CSSProperties | undefined;
|
|
112
|
+
className: string;
|
|
113
|
+
}, HTMLElement>;
|
|
114
|
+
|
|
118
115
|
declare const TextInput: ({ className, style, ...props }: TextInputProps) => react_jsx_runtime.JSX.Element;
|
|
119
116
|
|
|
120
117
|
declare const NumberInput: ({ className, style, ...props }: NumberInputProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -165,4 +162,4 @@ declare const Logo: ({ className, style, imageUrl, altText, }: LogoProps) => rea
|
|
|
165
162
|
|
|
166
163
|
declare function cn(...inputs: ClassValue[]): string;
|
|
167
164
|
|
|
168
|
-
export { Button, CheckboxInput, DatePicker, DateRange, Dropdown, EmailInput, FileInput, Flex as FlexLayout, Grid as GridLayout, ImageControl as Image, Logo, MultiCheckbox, Notification, NumberInput, PasswordInput, PhoneInput, Profile, RadioInput, RichText, SearchInput, Shape, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput, Textarea, Typography, UrlInput,
|
|
165
|
+
export { ButtonComponent as Button, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput, FileInput, Flex as FlexLayout, Grid as GridLayout, ImageControl as Image, Logo, MultiCheckbox, Notification, NumberInput, PasswordInput, PhoneInput, Profile, RadioInput, RichText, SearchInput, Shape, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput, Textarea, Typography, UrlInput, cn };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import * as React$1 from 'react';
|
|
4
|
-
import React__default from 'react';
|
|
5
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import React$1 from 'react';
|
|
6
3
|
import { ClassValue } from 'clsx';
|
|
7
4
|
|
|
8
|
-
declare const buttonVariants: (props?: ({
|
|
9
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
10
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
11
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
12
|
-
declare function Button({ className, variant, size, asChild, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
13
|
-
asChild?: boolean;
|
|
14
|
-
}): react_jsx_runtime.JSX.Element;
|
|
15
|
-
|
|
16
5
|
interface ElementProps {
|
|
17
6
|
children?: React.ReactNode;
|
|
18
7
|
className?: string;
|
|
@@ -100,21 +89,29 @@ interface NotificationProps extends ElementProps {
|
|
|
100
89
|
interface LogoProps extends ElementProps {
|
|
101
90
|
imageUrl?: string;
|
|
102
91
|
altText?: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface ButtonProps extends ElementProps {
|
|
95
|
+
textContent?: string;
|
|
103
96
|
}
|
|
104
97
|
|
|
105
98
|
declare const Flex: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
106
99
|
|
|
107
100
|
declare const Grid: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
108
101
|
|
|
109
|
-
declare const
|
|
110
|
-
style: React__default.CSSProperties | undefined;
|
|
111
|
-
className: string;
|
|
112
|
-
}, HTMLElement>;
|
|
102
|
+
declare const Container: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
113
103
|
|
|
114
|
-
declare const
|
|
104
|
+
declare const ButtonComponent: ({ className, style, textContent, }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
115
105
|
|
|
116
106
|
declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
117
107
|
|
|
108
|
+
declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
109
|
+
|
|
110
|
+
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React$1.DetailedReactHTMLElement<{
|
|
111
|
+
style: React$1.CSSProperties | undefined;
|
|
112
|
+
className: string;
|
|
113
|
+
}, HTMLElement>;
|
|
114
|
+
|
|
118
115
|
declare const TextInput: ({ className, style, ...props }: TextInputProps) => react_jsx_runtime.JSX.Element;
|
|
119
116
|
|
|
120
117
|
declare const NumberInput: ({ className, style, ...props }: NumberInputProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -165,4 +162,4 @@ declare const Logo: ({ className, style, imageUrl, altText, }: LogoProps) => rea
|
|
|
165
162
|
|
|
166
163
|
declare function cn(...inputs: ClassValue[]): string;
|
|
167
164
|
|
|
168
|
-
export { Button, CheckboxInput, DatePicker, DateRange, Dropdown, EmailInput, FileInput, Flex as FlexLayout, Grid as GridLayout, ImageControl as Image, Logo, MultiCheckbox, Notification, NumberInput, PasswordInput, PhoneInput, Profile, RadioInput, RichText, SearchInput, Shape, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput, Textarea, Typography, UrlInput,
|
|
165
|
+
export { ButtonComponent as Button, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput, FileInput, Flex as FlexLayout, Grid as GridLayout, ImageControl as Image, Logo, MultiCheckbox, Notification, NumberInput, PasswordInput, PhoneInput, Profile, RadioInput, RichText, SearchInput, Shape, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput, Textarea, Typography, UrlInput, cn };
|