orio-ui 1.11.2 → 1.11.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.
Files changed (96) hide show
  1. package/dist/module.json +3 -3
  2. package/dist/module.mjs +2 -2
  3. package/dist/runtime/components/AnimatedContainer.d.vue.ts +20 -0
  4. package/dist/runtime/components/AnimatedContainer.vue +3 -9
  5. package/dist/runtime/components/AnimatedContainer.vue.d.ts +20 -0
  6. package/dist/runtime/components/Badge.d.vue.ts +26 -0
  7. package/dist/runtime/components/Badge.vue +4 -15
  8. package/dist/runtime/components/Badge.vue.d.ts +26 -0
  9. package/dist/runtime/components/Button.d.vue.ts +33 -0
  10. package/dist/runtime/components/Button.vue +11 -29
  11. package/dist/runtime/components/Button.vue.d.ts +33 -0
  12. package/dist/runtime/components/CheckBox.d.vue.ts +29 -0
  13. package/dist/runtime/components/CheckBox.vue +9 -10
  14. package/dist/runtime/components/CheckBox.vue.d.ts +29 -0
  15. package/dist/runtime/components/ControlElement.d.vue.ts +26 -0
  16. package/dist/runtime/components/ControlElement.vue +4 -15
  17. package/dist/runtime/components/ControlElement.vue.d.ts +26 -0
  18. package/dist/runtime/components/DashedContainer.d.vue.ts +14 -0
  19. package/dist/runtime/components/DashedContainer.vue +6 -10
  20. package/dist/runtime/components/DashedContainer.vue.d.ts +14 -0
  21. package/dist/runtime/components/DatePicker.d.vue.ts +15 -0
  22. package/dist/runtime/components/DatePicker.vue +6 -10
  23. package/dist/runtime/components/DatePicker.vue.d.ts +15 -0
  24. package/dist/runtime/components/DateRangePicker.d.vue.ts +18 -0
  25. package/dist/runtime/components/DateRangePicker.vue +8 -18
  26. package/dist/runtime/components/DateRangePicker.vue.d.ts +18 -0
  27. package/dist/runtime/components/EmptyState.d.vue.ts +21 -0
  28. package/dist/runtime/components/EmptyState.vue +6 -10
  29. package/dist/runtime/components/EmptyState.vue.d.ts +21 -0
  30. package/dist/runtime/components/Icon.d.vue.ts +12 -0
  31. package/dist/runtime/components/Icon.vue +16 -23
  32. package/dist/runtime/components/Icon.vue.d.ts +12 -0
  33. package/dist/runtime/components/Input.d.vue.ts +10 -0
  34. package/dist/runtime/components/Input.vue +2 -2
  35. package/dist/runtime/components/Input.vue.d.ts +10 -0
  36. package/dist/runtime/components/LoadingSpinner.d.vue.ts +3 -0
  37. package/dist/runtime/components/LoadingSpinner.vue +3 -2
  38. package/dist/runtime/components/LoadingSpinner.vue.d.ts +3 -0
  39. package/dist/runtime/components/Modal.d.vue.ts +30 -0
  40. package/dist/runtime/components/Modal.vue +7 -25
  41. package/dist/runtime/components/Modal.vue.d.ts +30 -0
  42. package/dist/runtime/components/NavButton.d.vue.ts +26 -0
  43. package/dist/runtime/components/NavButton.vue +8 -20
  44. package/dist/runtime/components/NavButton.vue.d.ts +26 -0
  45. package/dist/runtime/components/NumberInput/Horizontal.d.vue.ts +25 -0
  46. package/dist/runtime/components/NumberInput/Horizontal.vue +8 -19
  47. package/dist/runtime/components/NumberInput/Horizontal.vue.d.ts +25 -0
  48. package/dist/runtime/components/NumberInput/Vertical.d.vue.ts +25 -0
  49. package/dist/runtime/components/NumberInput/Vertical.vue +8 -19
  50. package/dist/runtime/components/NumberInput/Vertical.vue.d.ts +25 -0
  51. package/dist/runtime/components/NumberInput/index.d.vue.ts +40 -0
  52. package/dist/runtime/components/NumberInput/index.vue +15 -36
  53. package/dist/runtime/components/NumberInput/index.vue.d.ts +40 -0
  54. package/dist/runtime/components/Popover.d.vue.ts +76 -0
  55. package/dist/runtime/components/Popover.vue +21 -85
  56. package/dist/runtime/components/Popover.vue.d.ts +76 -0
  57. package/dist/runtime/components/Selector.d.vue.ts +64 -0
  58. package/dist/runtime/components/Selector.vue +28 -56
  59. package/dist/runtime/components/Selector.vue.d.ts +64 -0
  60. package/dist/runtime/components/SwitchButton.d.vue.ts +27 -0
  61. package/dist/runtime/components/SwitchButton.vue +5 -11
  62. package/dist/runtime/components/SwitchButton.vue.d.ts +27 -0
  63. package/dist/runtime/components/Tag.d.vue.ts +10 -0
  64. package/dist/runtime/components/Tag.vue +4 -9
  65. package/dist/runtime/components/Tag.vue.d.ts +10 -0
  66. package/dist/runtime/components/Textarea.d.vue.ts +13 -0
  67. package/dist/runtime/components/Textarea.vue +3 -7
  68. package/dist/runtime/components/Textarea.vue.d.ts +13 -0
  69. package/dist/runtime/components/Tooltip.d.vue.ts +28 -0
  70. package/dist/runtime/components/Tooltip.vue +16 -52
  71. package/dist/runtime/components/Tooltip.vue.d.ts +28 -0
  72. package/dist/runtime/components/gallery/Carousel.d.vue.ts +21 -0
  73. package/dist/runtime/components/gallery/Carousel.vue +16 -45
  74. package/dist/runtime/components/gallery/Carousel.vue.d.ts +21 -0
  75. package/dist/runtime/components/upload/index.d.vue.ts +35 -0
  76. package/dist/runtime/components/upload/index.vue +12 -30
  77. package/dist/runtime/components/upload/index.vue.d.ts +35 -0
  78. package/dist/runtime/components/view/Dates.d.vue.ts +16 -0
  79. package/dist/runtime/components/view/Dates.vue +11 -28
  80. package/dist/runtime/components/view/Dates.vue.d.ts +16 -0
  81. package/dist/runtime/components/view/Separator.d.vue.ts +12 -0
  82. package/dist/runtime/components/view/Separator.vue +5 -13
  83. package/dist/runtime/components/view/Separator.vue.d.ts +12 -0
  84. package/dist/runtime/components/view/Text.d.vue.ts +36 -0
  85. package/dist/runtime/components/view/Text.vue +8 -19
  86. package/dist/runtime/components/view/Text.vue.d.ts +36 -0
  87. package/dist/runtime/composables/useTheme.d.ts +2 -2
  88. package/dist/runtime/composables/useTheme.js +19 -14
  89. package/dist/runtime/index.js +1 -1
  90. package/dist/types.d.mts +2 -2
  91. package/package.json +7 -5
  92. package/dist/module.cjs +0 -5
  93. package/dist/module.d.ts +0 -3
  94. package/dist/runtime/composables/index.d.ts +0 -8
  95. package/dist/runtime/composables/index.js +0 -14
  96. package/dist/types.d.ts +0 -7
package/dist/module.json CHANGED
@@ -4,9 +4,9 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0 || ^4.0.0"
6
6
  },
7
- "version": "1.11.2",
7
+ "version": "1.11.4",
8
8
  "builder": {
9
- "@nuxt/module-builder": "0.8.4",
10
- "unbuild": "2.0.0"
9
+ "@nuxt/module-builder": "1.0.2",
10
+ "unbuild": "3.6.1"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineNuxtModule, createResolver, addComponentsDir, addImportsDir } from '@nuxt/kit';
2
2
 
3
- const module = defineNuxtModule({
3
+ const module$1 = defineNuxtModule({
4
4
  meta: {
5
5
  name: "orio-ui",
6
6
  configKey: "orioUi",
@@ -21,4 +21,4 @@ const module = defineNuxtModule({
21
21
  }
22
22
  });
23
23
 
24
- export { module as default };
24
+ export { module$1 as default };
@@ -0,0 +1,20 @@
1
+ interface Props {
2
+ direction?: "column" | "row";
3
+ }
4
+ declare var __VLS_1: {
5
+ play: () => void;
6
+ };
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
11
+ direction: "column" | "row";
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -1,14 +1,8 @@
1
- <script setup lang="ts">
1
+ <script setup>
2
2
  import { useSound } from "../composables/useSound";
3
-
4
- interface Props {
5
- direction?: "column" | "row";
6
- }
7
-
8
- withDefaults(defineProps<Props>(), {
9
- direction: "row",
3
+ defineProps({
4
+ direction: { type: String, required: false, default: "row" }
10
5
  });
11
-
12
6
  const { play } = useSound();
13
7
  </script>
14
8
 
@@ -0,0 +1,20 @@
1
+ interface Props {
2
+ direction?: "column" | "row";
3
+ }
4
+ declare var __VLS_1: {
5
+ play: () => void;
6
+ };
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
11
+ direction: "column" | "row";
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,26 @@
1
+ export type BadgeVariant = "danger" | "alert" | "primary" | "grey";
2
+ export type BadgeType = "default" | "pill";
3
+ interface Props {
4
+ variant?: BadgeVariant;
5
+ type?: BadgeType;
6
+ }
7
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
8
+ type __VLS_Slots = {} & {
9
+ wrapping?: (props: typeof __VLS_1) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_3) => any;
12
+ } & {
13
+ default?: (props: typeof __VLS_5) => any;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
16
+ type: BadgeType;
17
+ variant: BadgeVariant;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -1,21 +1,10 @@
1
- <script setup lang="ts">
1
+ <script setup>
2
2
  import { useSlots, computed } from "vue";
3
-
4
- export type BadgeVariant = "danger" | "alert" | "primary" | "grey";
5
- export type BadgeType = "default" | "pill";
6
-
7
- interface Props {
8
- variant?: BadgeVariant;
9
- type?: BadgeType;
10
- }
11
-
12
- const props = withDefaults(defineProps<Props>(), {
13
- variant: "primary",
14
- type: "default",
3
+ const props = defineProps({
4
+ variant: { type: String, required: false, default: "primary" },
5
+ type: { type: String, required: false, default: "default" }
15
6
  });
16
-
17
7
  const slots = useSlots();
18
-
19
8
  const hasWrapping = computed(() => !!slots.wrapping);
20
9
  const hasDefaultContent = computed(() => !!slots.default);
21
10
  const isDot = computed(() => !hasDefaultContent.value);
@@ -0,0 +1,26 @@
1
+ export type BadgeVariant = "danger" | "alert" | "primary" | "grey";
2
+ export type BadgeType = "default" | "pill";
3
+ interface Props {
4
+ variant?: BadgeVariant;
5
+ type?: BadgeType;
6
+ }
7
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
8
+ type __VLS_Slots = {} & {
9
+ wrapping?: (props: typeof __VLS_1) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_3) => any;
12
+ } & {
13
+ default?: (props: typeof __VLS_5) => any;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
16
+ type: BadgeType;
17
+ variant: BadgeVariant;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,33 @@
1
+ interface Props {
2
+ variant?: "primary" | "secondary" | "subdued";
3
+ icon?: string;
4
+ loading?: boolean;
5
+ disabled?: boolean;
6
+ }
7
+ declare var __VLS_13: {}, __VLS_20: {};
8
+ type __VLS_Slots = {} & {
9
+ icon?: (props: typeof __VLS_13) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_20) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ click: (event: PointerEvent) => any;
15
+ mousedown: (event: MouseEvent) => any;
16
+ mouseup: (event: MouseEvent) => any;
17
+ mouseleave: (event: MouseEvent) => any;
18
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
19
+ onClick?: ((event: PointerEvent) => any) | undefined;
20
+ onMousedown?: ((event: MouseEvent) => any) | undefined;
21
+ onMouseup?: ((event: MouseEvent) => any) | undefined;
22
+ onMouseleave?: ((event: MouseEvent) => any) | undefined;
23
+ }>, {
24
+ variant: "primary" | "secondary" | "subdued";
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -1,50 +1,32 @@
1
- <script setup lang="ts">
1
+ <script setup>
2
2
  import { computed, toRefs, useAttrs, useSlots } from "vue";
3
-
4
- interface Props {
5
- variant?: "primary" | "secondary" | "subdued";
6
- icon?: string;
7
- loading?: boolean;
8
- disabled?: boolean;
9
- }
10
-
11
- const props = withDefaults(defineProps<Props>(), {
12
- variant: "primary",
3
+ const props = defineProps({
4
+ variant: { type: String, required: false, default: "primary" },
5
+ icon: { type: String, required: false },
6
+ loading: { type: Boolean, required: false },
7
+ disabled: { type: Boolean, required: false }
13
8
  });
14
-
15
9
  const { loading, disabled } = toRefs(props);
16
-
17
10
  const attrs = useAttrs();
18
11
  const slots = useSlots();
19
-
20
12
  const isIconOnly = computed(() => {
21
13
  const hasIcon = !!props.icon || !!slots.icon;
22
14
  const hasDefault = !!slots.default;
23
15
  return hasIcon && !hasDefault;
24
16
  });
25
-
26
- const emit = defineEmits<{
27
- (e: "click", event: PointerEvent): void;
28
- (e: "mousedown", event: MouseEvent): void;
29
- (e: "mouseup", event: MouseEvent): void;
30
- (e: "mouseleave", event: MouseEvent): void;
31
- }>();
32
-
33
- function click(event: PointerEvent) {
17
+ const emit = defineEmits(["click", "mousedown", "mouseup", "mouseleave"]);
18
+ function click(event) {
34
19
  if (loading.value || disabled.value) return;
35
20
  emit("click", event);
36
21
  }
37
-
38
- function onMousedown(event: MouseEvent) {
22
+ function onMousedown(event) {
39
23
  if (loading.value || disabled.value) return;
40
24
  emit("mousedown", event);
41
25
  }
42
-
43
- function onMouseup(event: MouseEvent) {
26
+ function onMouseup(event) {
44
27
  emit("mouseup", event);
45
28
  }
46
-
47
- function onMouseleave(event: MouseEvent) {
29
+ function onMouseleave(event) {
48
30
  emit("mouseleave", event);
49
31
  }
50
32
  </script>
@@ -0,0 +1,33 @@
1
+ interface Props {
2
+ variant?: "primary" | "secondary" | "subdued";
3
+ icon?: string;
4
+ loading?: boolean;
5
+ disabled?: boolean;
6
+ }
7
+ declare var __VLS_13: {}, __VLS_20: {};
8
+ type __VLS_Slots = {} & {
9
+ icon?: (props: typeof __VLS_13) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_20) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ click: (event: PointerEvent) => any;
15
+ mousedown: (event: MouseEvent) => any;
16
+ mouseup: (event: MouseEvent) => any;
17
+ mouseleave: (event: MouseEvent) => any;
18
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
19
+ onClick?: ((event: PointerEvent) => any) | undefined;
20
+ onMousedown?: ((event: MouseEvent) => any) | undefined;
21
+ onMouseup?: ((event: MouseEvent) => any) | undefined;
22
+ onMouseleave?: ((event: MouseEvent) => any) | undefined;
23
+ }>, {
24
+ variant: "primary" | "secondary" | "subdued";
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,29 @@
1
+ type __VLS_Props = {
2
+ checkedIcon?: string;
3
+ uncheckedIcon?: string;
4
+ };
5
+ type __VLS_ModelProps = {
6
+ modelValue?: boolean;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare var __VLS_8: {
10
+ checked: boolean | undefined;
11
+ }, __VLS_20: {};
12
+ type __VLS_Slots = {} & {
13
+ icon?: (props: typeof __VLS_8) => any;
14
+ } & {
15
+ default?: (props: typeof __VLS_20) => any;
16
+ };
17
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ "update:modelValue": (value: boolean | undefined) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -1,10 +1,9 @@
1
- <script setup lang="ts">
2
- const modelValue = defineModel<boolean>({ required: false });
3
-
4
- defineProps<{
5
- checkedIcon?: string; // optional: pass icon name for checked state
6
- uncheckedIcon?: string; // optional: pass icon name for unchecked state
7
- }>();
1
+ <script setup>
2
+ const modelValue = defineModel({ type: Boolean, ...{ required: false } });
3
+ defineProps({
4
+ checkedIcon: { type: String, required: false },
5
+ uncheckedIcon: { type: String, required: false }
6
+ });
8
7
  </script>
9
8
 
10
9
  <template>
@@ -19,9 +18,9 @@ defineProps<{
19
18
  <span
20
19
  class="checkbox-box"
21
20
  :class="{
22
- defaultChecked: !checkedIcon,
23
- defaultUnchecked: !uncheckedIcon,
24
- }"
21
+ defaultChecked: !checkedIcon,
22
+ defaultUnchecked: !uncheckedIcon
23
+ }"
25
24
  >
26
25
  <slot name="icon" :checked="modelValue">
27
26
  <orio-icon v-if="modelValue && checkedIcon" :name="checkedIcon" />
@@ -0,0 +1,29 @@
1
+ type __VLS_Props = {
2
+ checkedIcon?: string;
3
+ uncheckedIcon?: string;
4
+ };
5
+ type __VLS_ModelProps = {
6
+ modelValue?: boolean;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare var __VLS_8: {
10
+ checked: boolean | undefined;
11
+ }, __VLS_20: {};
12
+ type __VLS_Slots = {} & {
13
+ icon?: (props: typeof __VLS_8) => any;
14
+ } & {
15
+ default?: (props: typeof __VLS_20) => any;
16
+ };
17
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ "update:modelValue": (value: boolean | undefined) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,26 @@
1
+ export interface ControlProps {
2
+ /**
3
+ * Minimal will reset margin and remove border and box shadow from every element inside the slot
4
+ */
5
+ appearance?: "normal" | "minimal";
6
+ /**
7
+ * Error message to display below the control
8
+ */
9
+ error?: string | null;
10
+ }
11
+ declare var __VLS_1: {};
12
+ type __VLS_Slots = {} & {
13
+ default?: (props: typeof __VLS_1) => any;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<ControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ControlProps> & Readonly<{}>, {
16
+ appearance: "normal" | "minimal";
17
+ error: string | null;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -1,18 +1,7 @@
1
- <script setup lang="ts">
2
- export interface ControlProps {
3
- /**
4
- * Minimal will reset margin and remove border and box shadow from every element inside the slot
5
- */
6
- appearance?: "normal" | "minimal";
7
- /**
8
- * Error message to display below the control
9
- */
10
- error?: string | null;
11
- }
12
-
13
- withDefaults(defineProps<ControlProps>(), {
14
- appearance: "normal",
15
- error: null,
1
+ <script setup>
2
+ defineProps({
3
+ appearance: { type: String, required: false, default: "normal" },
4
+ error: { type: [String, null], required: false, default: null }
16
5
  });
17
6
  </script>
18
7
 
@@ -0,0 +1,26 @@
1
+ export interface ControlProps {
2
+ /**
3
+ * Minimal will reset margin and remove border and box shadow from every element inside the slot
4
+ */
5
+ appearance?: "normal" | "minimal";
6
+ /**
7
+ * Error message to display below the control
8
+ */
9
+ error?: string | null;
10
+ }
11
+ declare var __VLS_1: {};
12
+ type __VLS_Slots = {} & {
13
+ default?: (props: typeof __VLS_1) => any;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<ControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ControlProps> & Readonly<{}>, {
16
+ appearance: "normal" | "minimal";
17
+ error: string | null;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,14 @@
1
+ interface Props {
2
+ icon?: string;
3
+ text?: string;
4
+ size?: "small" | "medium" | "large";
5
+ }
6
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ click: (...args: any[]) => void;
8
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
+ onClick?: ((...args: any[]) => any) | undefined;
10
+ }>, {
11
+ size: "small" | "medium" | "large";
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -1,16 +1,11 @@
1
- <script setup lang="ts">
1
+ <script setup>
2
2
  import { computed } from "vue";
3
-
4
- interface Props {
5
- icon?: string;
6
- text?: string;
7
- size?: "small" | "medium" | "large";
8
- }
9
- const props = withDefaults(defineProps<Props>(), {
10
- size: "medium",
3
+ const props = defineProps({
4
+ icon: { type: String, required: false },
5
+ text: { type: String, required: false },
6
+ size: { type: String, required: false, default: "medium" }
11
7
  });
12
8
  defineEmits(["click"]);
13
-
14
9
  const iconSize = computed(() => {
15
10
  switch (props.size) {
16
11
  case "small":
@@ -22,6 +17,7 @@ const iconSize = computed(() => {
22
17
  }
23
18
  });
24
19
  </script>
20
+
25
21
  <template>
26
22
  <div class="dashed-container gradient-hover" @click="$emit('click')">
27
23
  <orio-icon v-if="icon" :name="icon" class="icon-class" :size="iconSize" />
@@ -0,0 +1,14 @@
1
+ interface Props {
2
+ icon?: string;
3
+ text?: string;
4
+ size?: "small" | "medium" | "large";
5
+ }
6
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ click: (...args: any[]) => void;
8
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
+ onClick?: ((...args: any[]) => any) | undefined;
10
+ }>, {
11
+ size: "small" | "medium" | "large";
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,15 @@
1
+ interface Props {
2
+ month?: boolean;
3
+ }
4
+ type __VLS_Props = Props;
5
+ type __VLS_ModelProps = {
6
+ "date": string | null | undefined;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:date": (value: string | null | undefined) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
+ "onUpdate:date"?: ((value: string | null | undefined) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -1,16 +1,12 @@
1
- <script setup lang="ts">
1
+ <script setup>
2
2
  import { computed } from "vue";
3
3
  import { nanoid } from "nanoid";
4
-
5
- interface Props {
6
- month?: boolean;
7
- }
8
- defineProps<Props>();
9
-
10
- const date = defineModel<string | null | undefined>("date", {
11
- required: true,
4
+ defineProps({
5
+ month: { type: Boolean, required: false }
12
6
  });
13
-
7
+ const date = defineModel("date", { type: null, ...{
8
+ required: true
9
+ } });
14
10
  const randomName = computed(() => `date-${nanoid(8)}`);
15
11
  </script>
16
12
 
@@ -0,0 +1,15 @@
1
+ interface Props {
2
+ month?: boolean;
3
+ }
4
+ type __VLS_Props = Props;
5
+ type __VLS_ModelProps = {
6
+ "date": string | null | undefined;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:date": (value: string | null | undefined) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
+ "onUpdate:date"?: ((value: string | null | undefined) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import type { ResumeDate } from "./view/Dates.vue.js";
2
+ export interface DateRangePickerProps {
3
+ month?: boolean;
4
+ }
5
+ type __VLS_Props = DateRangePickerProps;
6
+ type __VLS_ModelProps = {
7
+ "dates": ResumeDate;
8
+ };
9
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
11
+ dateIsCorrect: import("vue").ComputedRef<boolean>;
12
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ "update:dates": (value: ResumeDate) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
+ "onUpdate:dates"?: ((value: ResumeDate) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
@@ -1,33 +1,23 @@
1
- <script setup lang="ts">
1
+ <script setup>
2
2
  import { ref, watch, computed } from "vue";
3
- import type { ResumeDate } from "./view/Dates.vue";
4
-
5
- export interface DateRangePickerProps {
6
- month?: boolean;
7
- }
8
-
9
- defineProps<DateRangePickerProps>();
10
-
11
- const dates = defineModel<ResumeDate>("dates", { required: true });
12
-
3
+ defineProps({
4
+ month: { type: Boolean, required: false }
5
+ });
6
+ const dates = defineModel("dates", { type: Object, ...{ required: true } });
13
7
  const present = ref(dates.value.endDate !== "" && !dates.value.endDate);
14
-
15
8
  watch(present, (value) => {
16
9
  if (value) {
17
- dates.value.endDate = null; // Set end date to null when present is checked
10
+ dates.value.endDate = null;
18
11
  } else {
19
- dates.value.endDate = ""; // Reset end date when present is unchecked
12
+ dates.value.endDate = "";
20
13
  }
21
14
  });
22
-
23
15
  const dateIsCorrect = computed(() => {
24
- // Ensure that the start date is before the end date
25
16
  if (dates.value.startDate && dates.value.endDate) {
26
17
  return new Date(dates.value.startDate) <= new Date(dates.value.endDate);
27
18
  }
28
- return true; // If one of the dates is empty, consider it correct
19
+ return true;
29
20
  });
30
-
31
21
  defineExpose({ dateIsCorrect });
32
22
  </script>
33
23