@algorithm-shift/design-system 1.2.14 → 1.2.15
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 +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +17 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/public/logo_placeholder.png +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -97,6 +97,7 @@ interface NotificationProps extends ElementProps {
|
|
|
97
97
|
|
|
98
98
|
interface LogoProps extends ElementProps {
|
|
99
99
|
imageUrl?: string;
|
|
100
|
+
altText?: string;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
declare const Flex: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -110,7 +111,7 @@ declare const Typography: ({ className, style, tagName, textContent, }: Typograp
|
|
|
110
111
|
|
|
111
112
|
declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
112
113
|
|
|
113
|
-
declare const ImageControl
|
|
114
|
+
declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
114
115
|
|
|
115
116
|
declare const TextInput: ({ className, style, ...props }: TextInputProps) => react_jsx_runtime.JSX.Element;
|
|
116
117
|
|
|
@@ -158,8 +159,8 @@ declare const Profile: ({ profileType, showName, userName, className, style }: P
|
|
|
158
159
|
|
|
159
160
|
declare const Notification: ({ className, style, badgeType, badgeCount, hideBadgeWhenZero }: NotificationProps) => react_jsx_runtime.JSX.Element;
|
|
160
161
|
|
|
161
|
-
declare const
|
|
162
|
+
declare const Logo: ({ className, style, imageUrl, altText, }: LogoProps) => react_jsx_runtime.JSX.Element;
|
|
162
163
|
|
|
163
164
|
declare function cn(...inputs: ClassValue[]): string;
|
|
164
165
|
|
|
165
|
-
export { Button, CheckboxInput, DatePicker, DateRange, Dropdown, EmailInput, FileInput, Flex as FlexLayout, Grid as GridLayout, ImageControl
|
|
166
|
+
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, buttonVariants, cn };
|
package/dist/index.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ interface NotificationProps extends ElementProps {
|
|
|
97
97
|
|
|
98
98
|
interface LogoProps extends ElementProps {
|
|
99
99
|
imageUrl?: string;
|
|
100
|
+
altText?: string;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
declare const Flex: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -110,7 +111,7 @@ declare const Typography: ({ className, style, tagName, textContent, }: Typograp
|
|
|
110
111
|
|
|
111
112
|
declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
112
113
|
|
|
113
|
-
declare const ImageControl
|
|
114
|
+
declare const ImageControl: ({ className, style, imageUrl, imageUrlExternal, altText, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
114
115
|
|
|
115
116
|
declare const TextInput: ({ className, style, ...props }: TextInputProps) => react_jsx_runtime.JSX.Element;
|
|
116
117
|
|
|
@@ -158,8 +159,8 @@ declare const Profile: ({ profileType, showName, userName, className, style }: P
|
|
|
158
159
|
|
|
159
160
|
declare const Notification: ({ className, style, badgeType, badgeCount, hideBadgeWhenZero }: NotificationProps) => react_jsx_runtime.JSX.Element;
|
|
160
161
|
|
|
161
|
-
declare const
|
|
162
|
+
declare const Logo: ({ className, style, imageUrl, altText, }: LogoProps) => react_jsx_runtime.JSX.Element;
|
|
162
163
|
|
|
163
164
|
declare function cn(...inputs: ClassValue[]): string;
|
|
164
165
|
|
|
165
|
-
export { Button, CheckboxInput, DatePicker, DateRange, Dropdown, EmailInput, FileInput, Flex as FlexLayout, Grid as GridLayout, ImageControl
|
|
166
|
+
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, buttonVariants, cn };
|
package/dist/index.js
CHANGED
|
@@ -1947,29 +1947,28 @@ var Notification_default = Notification;
|
|
|
1947
1947
|
|
|
1948
1948
|
// src/components/Navigation/Logo/Logo.tsx
|
|
1949
1949
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
1950
|
-
var
|
|
1950
|
+
var Logo = ({
|
|
1951
1951
|
className,
|
|
1952
1952
|
style,
|
|
1953
|
-
imageUrl
|
|
1953
|
+
imageUrl,
|
|
1954
|
+
altText = "Preview"
|
|
1954
1955
|
}) => {
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
className: "opacity-50"
|
|
1968
|
-
};
|
|
1956
|
+
if (!imageUrl) {
|
|
1957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
1958
|
+
"div",
|
|
1959
|
+
{
|
|
1960
|
+
className: cn(
|
|
1961
|
+
className,
|
|
1962
|
+
"p-0"
|
|
1963
|
+
),
|
|
1964
|
+
style,
|
|
1965
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("img", { src: "/logo_placeholder.png", alt: altText, className: "opacity-50", width: 150, height: 80 })
|
|
1966
|
+
}
|
|
1967
|
+
);
|
|
1969
1968
|
}
|
|
1970
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("
|
|
1969
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("img", { src: imageUrl, alt: altText, className, style });
|
|
1971
1970
|
};
|
|
1972
|
-
var Logo_default =
|
|
1971
|
+
var Logo_default = Logo;
|
|
1973
1972
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1974
1973
|
0 && (module.exports = {
|
|
1975
1974
|
Button,
|