orion-design 0.1.38 → 0.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +10 -0
  2. package/dist/_plugin-vue_export-helper-CHgC5LLL.js.map +1 -0
  3. package/dist/components/Card/Card.vue.d.ts +22 -0
  4. package/dist/components/Card/index.d.ts +28 -0
  5. package/dist/components/Card/index.js +38 -0
  6. package/dist/components/Card/index.js.map +1 -0
  7. package/dist/components/Form/StringInput/StringInput.vue.d.ts +18 -1
  8. package/dist/components/Form/index.js +450 -421
  9. package/dist/components/Form/index.js.map +1 -1
  10. package/dist/components/Icon/Icon.vue.d.ts +6 -0
  11. package/dist/components/Icon/index.d.ts +6 -0
  12. package/dist/components/Icon/index.js +34 -0
  13. package/dist/components/Icon/index.js.map +1 -0
  14. package/dist/components/Modal/index.js +40 -44
  15. package/dist/components/Modal/index.js.map +1 -1
  16. package/dist/components/Tree/index.d.ts +1 -0
  17. package/dist/components/Tree/index.js +2 -0
  18. package/dist/components/Tree/index.js.map +1 -0
  19. package/dist/components/components.d.ts +2 -0
  20. package/dist/components/components.js +20 -16
  21. package/dist/components/components.js.map +1 -1
  22. package/dist/components/index.js +30 -26
  23. package/dist/components/index.js.map +1 -1
  24. package/dist/components-Pdc4XEej.js +52 -0
  25. package/dist/{components-BJrXhY2G.js.map → components-Pdc4XEej.js.map} +1 -1
  26. package/dist/index.css +1 -1
  27. package/dist/index.js +27 -23
  28. package/dist/index.js.map +1 -1
  29. package/dist/version/version.d.ts +1 -1
  30. package/dist/version/version.js +1 -1
  31. package/dist/version/version.js.map +1 -1
  32. package/global.d.ts +5 -0
  33. package/package.json +1 -1
  34. package/dist/components-BJrXhY2G.js +0 -48
@@ -0,0 +1,10 @@
1
+ const s = (t, r) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [c, e] of r)
4
+ o[c] = e;
5
+ return o;
6
+ };
7
+ export {
8
+ s as _
9
+ };
10
+ //# sourceMappingURL=_plugin-vue_export-helper-CHgC5LLL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_plugin-vue_export-helper-CHgC5LLL.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -0,0 +1,22 @@
1
+ declare function __VLS_template(): {
2
+ slots: {
3
+ title?(_: {}): any;
4
+ "header-right"?(_: {}): any;
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ attrs: Partial<{}>;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<{
12
+ title?: string;
13
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
14
+ title?: string;
15
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,28 @@
1
+ declare const _default: import('../_util').SFCWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
+ title?: string;
4
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{
5
+ title?: string;
6
+ }> & Readonly<{}>, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
7
+ P: {};
8
+ B: {};
9
+ D: {};
10
+ C: {};
11
+ M: {};
12
+ Defaults: {};
13
+ }, Readonly<{
14
+ title?: string;
15
+ }> & Readonly<{}>, {}, {}, {}, {}, {}>;
16
+ __isFragment?: never;
17
+ __isTeleport?: never;
18
+ __isSuspense?: never;
19
+ } & import('vue').ComponentOptionsBase<Readonly<{
20
+ title?: string;
21
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
22
+ $slots: {
23
+ title?(_: {}): any;
24
+ "header-right"?(_: {}): any;
25
+ default?(_: {}): any;
26
+ };
27
+ })> & {};
28
+ export default _default;
@@ -0,0 +1,38 @@
1
+ import "lodash-es";
2
+ import { defineComponent as n, useSlots as l, computed as c, openBlock as s, createElementBlock as i, createElementVNode as e, renderSlot as o, createTextVNode as m, toDisplayString as _, createCommentVNode as p } from "vue";
3
+ import { withInstall as h } from "../_util/vue/install.js";
4
+ import "element-plus";
5
+ import { _ as u } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const f = { class: "orion-card" }, v = {
7
+ key: 0,
8
+ class: "orion-card_header"
9
+ }, C = { class: "title" }, g = { class: "orion-card_body" }, k = /* @__PURE__ */ n({
10
+ name: "OCard",
11
+ inheritAttrs: !1,
12
+ __name: "Card",
13
+ props: {
14
+ title: {}
15
+ },
16
+ setup(d) {
17
+ const r = l(), a = c(() => d.title || r.title || r["header-right"]);
18
+ return (t, N) => (s(), i("div", f, [
19
+ a.value ? (s(), i("div", v, [
20
+ e("div", C, [
21
+ o(t.$slots, "title", {}, () => [
22
+ m(_(t.title), 1)
23
+ ], !0)
24
+ ]),
25
+ e("div", null, [
26
+ o(t.$slots, "header-right", {}, void 0, !0)
27
+ ])
28
+ ])) : p("", !0),
29
+ e("div", g, [
30
+ o(t.$slots, "default", {}, void 0, !0)
31
+ ])
32
+ ]));
33
+ }
34
+ }), y = /* @__PURE__ */ u(k, [["__scopeId", "data-v-7d015909"]]), E = h(y, {});
35
+ export {
36
+ E as default
37
+ };
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Card/Card.vue","../../../src/components/Card/index.ts"],"sourcesContent":["<template>\r\n <div class=\"orion-card\">\r\n <div v-if=\"showHeader\" class=\"orion-card_header\">\r\n <div class=\"title\">\r\n <slot name=\"title\">{{ title }}</slot>\r\n </div>\r\n <div>\r\n <slot name=\"header-right\"></slot>\r\n </div>\r\n </div>\r\n <div class=\"orion-card_body\">\r\n <slot></slot>\r\n </div>\r\n </div>\r\n</template>\r\n<script lang=\"ts\" setup>\r\nimport { computed, useSlots } from 'vue';\r\n\r\ndefineOptions({\r\n name: 'OCard',\r\n inheritAttrs: false\r\n})\r\n\r\nconst slots = useSlots()\r\nconst { title } = defineProps<{ title?: string }>()\r\nconst showHeader = computed(() => title || slots['title'] || slots['header-right'])\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.orion-card {\r\n background-color: var(--orion-card-background-color);\r\n box-sizing: border-box;\r\n border: 1px solid var(--orion-card-border-color);\r\n border-radius: 4px;\r\n color: var(--orion-card-font-color);\r\n overflow: hidden;\r\n height: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n\r\n .orion-card_header {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: var(--orion-card-padding);\r\n\r\n .title {\r\n font-size: 18px;\r\n font-weight: bold;\r\n }\r\n }\r\n\r\n .orion-card_body {\r\n flex: 1;\r\n padding: var(--orion-card-padding);\r\n overflow: auto;\r\n }\r\n}\r\n</style>","import { withInstall } from '../_util'\r\n\r\nimport Card from './Card.vue'\r\n\r\nexport default withInstall<typeof Card, {}>(Card, {})\r\n"],"names":["slots","useSlots","showHeader","computed","__props","index","withInstall","Card"],"mappings":";;;;;;;;;;;;;;;;AAuBA,UAAMA,IAAQC,KAERC,IAAaC,EAAS,MAAMC,WAASJ,EAAM,SAAYA,EAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;kECrBlFK,IAAeC,EAA6BC,GAAM,EAAE;"}
@@ -1,3 +1,20 @@
1
1
  import { StringInputProps } from './StringInput';
2
- declare const _default: import('vue').DefineComponent<StringInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StringInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ prefix?(_: {}): any;
5
+ suffix?(_: {}): any;
6
+ prepend?(_: {}): any;
7
+ append?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ attrs: Partial<{}>;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<StringInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StringInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
3
15
  export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };