mainstack-design-system 0.0.3 → 0.0.4
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/package.json
CHANGED
|
@@ -133,7 +133,7 @@ const CustomToolbar = ({
|
|
|
133
133
|
);
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
const MarkdownEditor = ({
|
|
137
137
|
defaultValue,
|
|
138
138
|
onChange,
|
|
139
139
|
border,
|
|
@@ -244,3 +244,5 @@ export const MarkdownEditor = ({
|
|
|
244
244
|
</Box>
|
|
245
245
|
);
|
|
246
246
|
};
|
|
247
|
+
|
|
248
|
+
export default MarkdownEditor;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
export { default as Button } from "./Button";
|
|
4
|
+
export { default as IconButton } from "./Button/IconButton";
|
|
5
|
+
export { default as Accordion } from "./Accordion";
|
|
6
|
+
export { default as Avatars } from "./Avatars";
|
|
7
|
+
export { default as Chip } from "./controls/Chip";
|
|
8
|
+
export { default as DoubleTab } from "./controls/DoubleTab";
|
|
9
|
+
export { default as Pagination } from "./controls/Pagination";
|
|
10
|
+
export { default as RadioButton } from "./controls/RadioButton";
|
|
11
|
+
export { default as RectangleCheckButton } from "./controls/RectangleCheckButton";
|
|
12
|
+
export { default as RoundCheckButton } from "./controls/RoundCheckButton";
|
|
13
|
+
export { default as Stepper } from "./controls/Stepper";
|
|
14
|
+
export { default as TabMenu } from "./controls/TabMenu";
|
|
15
|
+
export { default as ToggleButton } from "./controls/ToggleButton";
|
|
16
|
+
export * from "./InputFields/SelectInput";
|
|
17
|
+
export { default as Input } from "./InputFields/Input";
|
|
18
|
+
export { default as MarkdownEditor } from "./InputFields/MarkdownEditor";
|
|
19
|
+
export { default as SearchInput } from "./InputFields/SearchInput";
|
|
20
|
+
export { default as TextArea } from "./InputFields/TextArea";
|
|
21
|
+
export { default as UsernameInput } from "./InputFields/UsernameInput";
|
|
22
|
+
export { default as Banner } from "./notifications/Banner";
|
|
23
|
+
export { default as ClickTooltip } from "./notifications/ClickTooltip";
|
|
24
|
+
export { default as HoverTooltip } from "./notifications/HoverTooltip";
|
|
25
|
+
export { default as Snackbar } from "./notifications/Snackbar";
|
|
26
|
+
export { default as Colors } from "./styleGuide/Colors";
|
|
27
|
+
export { default as Tiles } from "./Tiles";
|
|
28
|
+
export { default as Display } from "./Typography/Display";
|
|
29
|
+
export { default as Heading } from "./Typography/Heading";
|
|
30
|
+
export { default as Paragraph } from "./Typography/Paragraph";
|
|
31
|
+
export { default as Subtitle } from "./Typography/Subtitle";
|
|
32
|
+
export { default as FileUploader } from "./Uploader/FileUploader";
|
|
33
|
+
export { default as ImageUploader } from "./Uploader/ImageUploader";
|
package/src/index.ts
ADDED
package/src/pages/Home.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @format */
|
|
2
2
|
|
|
3
3
|
import { Box, Text } from "@chakra-ui/react";
|
|
4
|
-
import { MarkdownEditor } from "components
|
|
4
|
+
import { Button, MarkdownEditor } from "components";
|
|
5
5
|
import CountrySelectWrapper from "stories/InputFields/Select/CountrySelectWrapper";
|
|
6
6
|
import PhoneNumberInputWrapper from "stories/InputFields/Select/PhoneNumberInputWrapper";
|
|
7
7
|
import SelectWrapper from "stories/InputFields/Select/SelectWrapper";
|
package/vite.config.ts
CHANGED
|
@@ -5,6 +5,7 @@ import react from "@vitejs/plugin-react";
|
|
|
5
5
|
import viteTsconfigPaths from "vite-tsconfig-paths";
|
|
6
6
|
import svgrPlugin from "vite-plugin-svgr";
|
|
7
7
|
import envCompatible from "vite-plugin-env-compatible";
|
|
8
|
+
import { resolve } from "path";
|
|
8
9
|
|
|
9
10
|
export default defineConfig({
|
|
10
11
|
envPrefix: "REACT_APP_",
|
|
@@ -20,6 +21,9 @@ export default defineConfig({
|
|
|
20
21
|
},
|
|
21
22
|
build: {
|
|
22
23
|
outDir: "build",
|
|
24
|
+
lib: {
|
|
25
|
+
entry: resolve(__dirname, "./src/index.ts"),
|
|
26
|
+
},
|
|
23
27
|
commonjsOptions: {
|
|
24
28
|
transformMixedEsModules: true,
|
|
25
29
|
},
|