@algorithm-shift/design-system 1.2.12 → 1.2.14
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.css +2314 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +4 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
- package/src/components/Basic/Image/Image.stories.tsx +0 -13
- package/src/components/Basic/Image/Image.tsx +0 -52
- package/src/components/Basic/Shape/Shape.tsx +0 -16
- package/src/components/Basic/Typography/Typography.stories.tsx +0 -18
- package/src/components/Basic/Typography/Typography.tsx +0 -31
- package/src/components/DataDisplay/Table/Table.stories.tsx +0 -35
- package/src/components/DataDisplay/Table/Table.tsx +0 -15
- package/src/components/DataDisplay/index.ts +0 -1
- package/src/components/Global/SelectDropdown.tsx +0 -61
- package/src/components/Global/TinyMceEditor.tsx +0 -81
- package/src/components/Inputs/Checkbox/Checkbox.tsx +0 -18
- package/src/components/Inputs/DatePicker/DatePicker.tsx +0 -81
- package/src/components/Inputs/DateRange/DateRange.tsx +0 -64
- package/src/components/Inputs/Dropdown/Dropdown.tsx +0 -62
- package/src/components/Inputs/EmailInput/EmailInput.tsx +0 -64
- package/src/components/Inputs/FileInput/FileInput.tsx +0 -24
- package/src/components/Inputs/MultiCheckbox/MultiCheckbox.tsx +0 -24
- package/src/components/Inputs/NumberInput/NumberInput.tsx +0 -66
- package/src/components/Inputs/PasswordInput/PasswordInput.tsx +0 -66
- package/src/components/Inputs/PhoneInput/PhoneInput.tsx +0 -58
- package/src/components/Inputs/RadioInput/RadioInput.tsx +0 -24
- package/src/components/Inputs/RichText/RichText.tsx +0 -10
- package/src/components/Inputs/SearchInput/SearchInput.tsx +0 -64
- package/src/components/Inputs/SwitchToggle/SwitchToggle.tsx +0 -22
- package/src/components/Inputs/TextInput/TextInput.tsx +0 -59
- package/src/components/Inputs/Textarea/Textarea.tsx +0 -58
- package/src/components/Inputs/UrlInput/UrlInput.tsx +0 -66
- package/src/components/Layout/Flex.tsx +0 -13
- package/src/components/Layout/Grid.tsx +0 -13
- package/src/components/Navigation/Logo/Logo.stories.tsx +0 -25
- package/src/components/Navigation/Logo/Logo.tsx +0 -33
- package/src/components/Navigation/Notification/Notification.stories.tsx +0 -20
- package/src/components/Navigation/Notification/Notification.tsx +0 -20
- package/src/components/Navigation/Profile/Profile.stories.tsx +0 -20
- package/src/components/Navigation/Profile/Profile.tsx +0 -25
- package/src/components/Navigation/Spacer/Spacer.stories.tsx +0 -18
- package/src/components/Navigation/Spacer/Spacer.tsx +0 -11
- package/src/components/Navigation/Stages/Stages.stories.tsx +0 -24
- package/src/components/Navigation/Stages/Stages.tsx +0 -49
- package/src/components/Navigation/Tabs/Tabs.stories.tsx +0 -38
- package/src/components/Navigation/Tabs/Tabs.tsx +0 -72
- package/src/components/Navigation/index.ts +0 -6
- package/src/components/index.ts +0 -27
- package/src/components/ui/button.stories.tsx +0 -24
- package/src/components/ui/button.tsx +0 -59
- package/src/components/ui/calendar.tsx +0 -211
- package/src/components/ui/checkbox.tsx +0 -30
- package/src/components/ui/data-table.tsx +0 -138
- package/src/components/ui/dropdown-menu.tsx +0 -258
- package/src/components/ui/input.tsx +0 -21
- package/src/components/ui/label.tsx +0 -22
- package/src/components/ui/popover.tsx +0 -46
- package/src/components/ui/radio-group.tsx +0 -43
- package/src/components/ui/select.tsx +0 -183
- package/src/components/ui/switch.tsx +0 -29
- package/src/components/ui/table.tsx +0 -121
- package/src/components/ui/textarea.tsx +0 -18
- package/src/global.css +0 -6
- package/src/index.css +0 -119
- package/src/index.ts +0 -4
- package/src/lib/utils.ts +0 -6
- package/src/stories/Button.stories.ts +0 -54
- package/src/stories/Button.tsx +0 -35
- package/src/stories/Configure.mdx +0 -364
- package/src/stories/Header.stories.ts +0 -34
- package/src/stories/Header.tsx +0 -54
- package/src/stories/Page.stories.ts +0 -33
- package/src/stories/Page.tsx +0 -73
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +0 -1
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +0 -1
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +0 -1
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +0 -1
- package/src/stories/assets/youtube.svg +0 -1
- package/src/stories/button.css +0 -30
- package/src/stories/header.css +0 -32
- package/src/stories/page.css +0 -68
- package/src/types/global.d.ts +0 -85
package/dist/index.mjs
CHANGED
|
@@ -124,34 +124,16 @@ var ImageControl = ({
|
|
|
124
124
|
}) => {
|
|
125
125
|
const imageClass = cn(
|
|
126
126
|
"h-[200px] w-[200px] border-1",
|
|
127
|
-
"border-2 border-dashed border-gray-400 flex items-center justify-center cursor-pointer hover:border-blue-500 transition"
|
|
128
|
-
className
|
|
127
|
+
"border-2 border-dashed border-gray-400 flex items-center justify-center cursor-pointer hover:border-blue-500 transition"
|
|
129
128
|
);
|
|
130
129
|
const defaultImgClass = cn(
|
|
131
130
|
"w-full h-full",
|
|
132
131
|
className
|
|
133
132
|
);
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (imageUrlExternal) {
|
|
137
|
-
src = imageUrlExternal;
|
|
138
|
-
extraProps = {
|
|
139
|
-
className: defaultImgClass
|
|
140
|
-
};
|
|
141
|
-
} else if (imageUrl) {
|
|
142
|
-
src = imageUrl;
|
|
143
|
-
extraProps = {
|
|
144
|
-
className: defaultImgClass
|
|
145
|
-
};
|
|
146
|
-
} else {
|
|
147
|
-
src = "./image-placeholder.png";
|
|
148
|
-
extraProps = {
|
|
149
|
-
width: 50,
|
|
150
|
-
height: 50,
|
|
151
|
-
className: "opacity-50"
|
|
152
|
-
};
|
|
133
|
+
if (!imageUrl && !imageUrlExternal) {
|
|
134
|
+
/* @__PURE__ */ jsx5("div", { className: imageClass, children: /* @__PURE__ */ jsx5("img", { src: "./image-placeholder.png", alt: altText, className: "opacity-50", width: 50, height: 50 }) });
|
|
153
135
|
}
|
|
154
|
-
return /* @__PURE__ */ jsx5("
|
|
136
|
+
return /* @__PURE__ */ jsx5("img", { src: imageUrlExternal || imageUrl, alt: altText, className: defaultImgClass, style });
|
|
155
137
|
};
|
|
156
138
|
var Image_default = ImageControl;
|
|
157
139
|
|