Skip to content

Commit

Permalink
fix external packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kewcoder committed Nov 14, 2023
1 parent 377057b commit a6d8f2b
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/@orchidui-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orchidui/vue",
"version": "0.1.115",
"version": "0.1.118",
"type": "module",
"scripts": {
"build": "vite build",
Expand Down
2 changes: 2 additions & 0 deletions packages/@orchidui-vue/src/ComplexCalendar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

export * from "./form/ComplexCalendar/OcComplexCalendar.js";
2 changes: 2 additions & 0 deletions packages/@orchidui-vue/src/ComplexDatePicker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

export * from "./form/ComplexDatePicker/OcComplexDatePicker.js"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
PAYMENTS_SIDEBAR_GROUP,
POS_SIDEBAR_GROUP,
ONLINE_STORE_SIDEBAR_GROUP,
} from "./HitpaySidebar.js";
} from "./HitpaySidebar.sample.js";

export default {
component: Sidebar,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

import ComplexCalendar from "./OcComplexCalendar.vue";
import { Theme } from "@/orchidui";
import dayjs from "dayjs";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup>
import { ComplexCalendar, Dropdown, Input } from "@/orchidui";
import { Dropdown, Input } from "@/orchidui";
import { ComplexCalendar } from '@/orchidui/ComplexCalendar'
import { ref } from "vue";
import dayjs from "dayjs";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { TextEditor, Theme } from "@/orchidui";
import { Theme } from "@/orchidui";
import { TextEditor } from '@/orchidui/TextEditor'
import { ref } from "vue";

export default {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup>
import "@vueup/vue-quill/dist/vue-quill.snow.css";
import { onMounted, ref } from "vue";
import { Quill, QuillEditor } from "@vueup/vue-quill";
Expand Down
6 changes: 1 addition & 5 deletions packages/@orchidui-vue/src/Form/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@ export * from "./Select/OcSelect.js";
export * from "./Toggle/OcToggle.js";
export * from "./LinkInput/OcLinkInput.js";
export * from "./TextArea/OcTextArea.js";
export * from "./TextEditor/OcTextEditor.js";
export * from "./MultipleUploadFile/OcMultipleUploadFile.js";
export * from "./SingleFileUpload/OcSingleFileUpload.js";

export * from "./Calendar/OcCalendar.js";
export * from "./ComplexCalendar/OcComplexCalendar.js";
export * from "./DatePicker/OcDatePicker.js";
export * from "./ComplexDatePicker/OcComplexDatePicker.js";
export * from "./DatePicker/OcDatePicker.js";;
export * from "./TimePicker/OcTimePicker.js";

export * from "./Slider/OcSlider.js";
1 change: 1 addition & 0 deletions packages/@orchidui-vue/src/TextEditor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./form/TextEditor/OcTextEditor.js";
7 changes: 6 additions & 1 deletion packages/@orchidui-vue/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const entryPoints = ["src/**/*.js"];
// Returns an array of absolute file paths.
const files = fg.sync(entryPoints, { absolute: true });

const externalComponents = [
"ComplexCalendar",
"ComplexDatePicker",
"TextEditor"
]
// Maps the file paths in the "files" array to an array of key-value pair.
const entities = files
.map((file) => {
Expand All @@ -25,7 +30,7 @@ const entities = files
return (
!entry[0].includes(".sample") &&
!entry[0].includes(".stories") &&
!entry[0].includes("HitpaySidebar")
!externalComponents.includes(entry[0])
);
});

Expand Down

0 comments on commit a6d8f2b

Please sign in to comment.