@algorithm-shift/design-system 1.2.27 → 1.2.28
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 -11
- package/dist/index.d.ts +15 -11
- package/dist/index.js +1 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React$1 from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
6
|
import { ClassValue } from 'clsx';
|
|
4
7
|
|
|
5
8
|
interface ElementProps {
|
|
@@ -99,11 +102,6 @@ interface LogoProps extends ElementProps {
|
|
|
99
102
|
altText?: string;
|
|
100
103
|
}
|
|
101
104
|
|
|
102
|
-
interface ButtonProps extends ElementProps {
|
|
103
|
-
textContent?: string;
|
|
104
|
-
type?: 'button' | 'submit';
|
|
105
|
-
}
|
|
106
|
-
|
|
107
105
|
interface PieChartProps extends ElementProps {
|
|
108
106
|
data?: Record<string, any>;
|
|
109
107
|
showPercentage?: boolean;
|
|
@@ -163,14 +161,12 @@ declare const Grid: ({ children, className, style }: ElementProps) => react_jsx_
|
|
|
163
161
|
|
|
164
162
|
declare const Container: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
165
163
|
|
|
166
|
-
declare const ButtonComponent: ({ className, style, textContent, type, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
167
|
-
|
|
168
164
|
declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
169
165
|
|
|
170
166
|
declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
171
167
|
|
|
172
|
-
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) =>
|
|
173
|
-
style:
|
|
168
|
+
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React__default.DetailedReactHTMLElement<{
|
|
169
|
+
style: React__default.CSSProperties | undefined;
|
|
174
170
|
className: string;
|
|
175
171
|
}, HTMLElement>;
|
|
176
172
|
|
|
@@ -238,6 +234,14 @@ declare const DonutChart: ({ className, style, ...props }: PieChartProps) => rea
|
|
|
238
234
|
|
|
239
235
|
declare function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc, setShowBcc, cc, setCc, bcc, setBcc, subject, setSubject, body, setBody }: EmailComposerProps): react_jsx_runtime.JSX.Element;
|
|
240
236
|
|
|
237
|
+
declare const buttonVariants: (props?: ({
|
|
238
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
239
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
240
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
241
|
+
declare function Button({ className, variant, size, asChild, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
242
|
+
asChild?: boolean;
|
|
243
|
+
}): react_jsx_runtime.JSX.Element;
|
|
244
|
+
|
|
241
245
|
declare function cn(...inputs: ClassValue[]): string;
|
|
242
246
|
|
|
243
|
-
export { ChartComponent as BarChart,
|
|
247
|
+
export { ChartComponent as BarChart, Button, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput as Email, EmailComposer, FileInput, Flex as FlexLayout, Grid as GridLayout, ImageControl as Image, Logo, Modal, MultiCheckbox, Navbar, Notification, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, DonutChart as PieChart, Profile, RadioInput as RadioGroup, RichText, SearchInput as Search, Shape, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput as Text, Textarea, Typography, UrlInput as URL, cn };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React$1 from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
6
|
import { ClassValue } from 'clsx';
|
|
4
7
|
|
|
5
8
|
interface ElementProps {
|
|
@@ -99,11 +102,6 @@ interface LogoProps extends ElementProps {
|
|
|
99
102
|
altText?: string;
|
|
100
103
|
}
|
|
101
104
|
|
|
102
|
-
interface ButtonProps extends ElementProps {
|
|
103
|
-
textContent?: string;
|
|
104
|
-
type?: 'button' | 'submit';
|
|
105
|
-
}
|
|
106
|
-
|
|
107
105
|
interface PieChartProps extends ElementProps {
|
|
108
106
|
data?: Record<string, any>;
|
|
109
107
|
showPercentage?: boolean;
|
|
@@ -163,14 +161,12 @@ declare const Grid: ({ children, className, style }: ElementProps) => react_jsx_
|
|
|
163
161
|
|
|
164
162
|
declare const Container: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
165
163
|
|
|
166
|
-
declare const ButtonComponent: ({ className, style, textContent, type, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
167
|
-
|
|
168
164
|
declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
169
165
|
|
|
170
166
|
declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
171
167
|
|
|
172
|
-
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) =>
|
|
173
|
-
style:
|
|
168
|
+
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React__default.DetailedReactHTMLElement<{
|
|
169
|
+
style: React__default.CSSProperties | undefined;
|
|
174
170
|
className: string;
|
|
175
171
|
}, HTMLElement>;
|
|
176
172
|
|
|
@@ -238,6 +234,14 @@ declare const DonutChart: ({ className, style, ...props }: PieChartProps) => rea
|
|
|
238
234
|
|
|
239
235
|
declare function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc, setShowBcc, cc, setCc, bcc, setBcc, subject, setSubject, body, setBody }: EmailComposerProps): react_jsx_runtime.JSX.Element;
|
|
240
236
|
|
|
237
|
+
declare const buttonVariants: (props?: ({
|
|
238
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
239
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
240
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
241
|
+
declare function Button({ className, variant, size, asChild, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
242
|
+
asChild?: boolean;
|
|
243
|
+
}): react_jsx_runtime.JSX.Element;
|
|
244
|
+
|
|
241
245
|
declare function cn(...inputs: ClassValue[]): string;
|
|
242
246
|
|
|
243
|
-
export { ChartComponent as BarChart,
|
|
247
|
+
export { ChartComponent as BarChart, Button, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput as Email, EmailComposer, FileInput, Flex as FlexLayout, Grid as GridLayout, ImageControl as Image, Logo, Modal, MultiCheckbox, Navbar, Notification, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, DonutChart as PieChart, Profile, RadioInput as RadioGroup, RichText, SearchInput as Search, Shape, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput as Text, Textarea, Typography, UrlInput as URL, cn };
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
BarChart: () => BarChart_default,
|
|
34
|
-
Button: () =>
|
|
34
|
+
Button: () => Button,
|
|
35
35
|
Checkbox: () => Checkbox_default,
|
|
36
36
|
Container: () => Container_default,
|
|
37
37
|
DatePicker: () => DatePicker,
|
|
@@ -189,25 +189,6 @@ function Button({
|
|
|
189
189
|
|
|
190
190
|
// src/components/Basic/Button/Button.tsx
|
|
191
191
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
192
|
-
var ButtonComponent = ({
|
|
193
|
-
className,
|
|
194
|
-
style,
|
|
195
|
-
textContent = "Button",
|
|
196
|
-
type = "button",
|
|
197
|
-
...props
|
|
198
|
-
}) => {
|
|
199
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
200
|
-
Button,
|
|
201
|
-
{
|
|
202
|
-
...props,
|
|
203
|
-
type,
|
|
204
|
-
className,
|
|
205
|
-
style,
|
|
206
|
-
children: textContent
|
|
207
|
-
}
|
|
208
|
-
);
|
|
209
|
-
};
|
|
210
|
-
var Button_default = ButtonComponent;
|
|
211
192
|
|
|
212
193
|
// src/assets/image-placeholder.png
|
|
213
194
|
var image_placeholder_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAD25JREFUeJzt3XfwHGUdx/H3LyEJoQihJVITIEEQBUQHIQEBQaRMwApIyS8UQQREBQUZRaUXUQwwYoShSlWqQ5ci1ZE2YkIgEBIggNQEQgKk+Mf3t/7utt2ze7u35T6vmZ1M7vae57m7/fxu99nd5wERERERERERERERERERERERERERERERERERERERERERERERERERERERERGR7tJTdANiDAIOBDag3O2sm/eBS4Dnim6IxLsAWKKlkOVtYETrr6j+BhTdgBhfL7oBXWwYsH3RjSiDMgdkUNEN6HKDi25AGSxVdAMSeA14q+hG1FQPsFHRjZBk3qV5v/joYptTa0sTPA7pLbJBZVHmXSyRwikgIjEUEJEYCohIDAVEJIYCIhJDARGJoYCIxFBARGIoICIxqnQtVtYGAbsCewCf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