@xy-planning-network/trees 0.9.9 → 0.10.0-rc1

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 (40) hide show
  1. package/README.md +3 -11
  2. package/config/tailwind.config.js +8 -4
  3. package/config/theme/colors.ts +10 -1
  4. package/config/theme/index.ts +4 -1
  5. package/config/theme/layout.ts +11 -0
  6. package/config/theme/typography.ts +25 -0
  7. package/dist/trees.es.js +2338 -2164
  8. package/dist/trees.umd.js +8 -8
  9. package/package.json +5 -3
  10. package/src/index.css +106 -11
  11. package/src/lib-components/forms/FieldsetLegend.vue +1 -1
  12. package/src/lib-components/forms/InputHelp.vue +1 -1
  13. package/src/lib-components/forms/MultiCheckboxes.vue +11 -6
  14. package/src/lib-components/forms/Radio.vue +11 -6
  15. package/src/lib-components/forms/RadioCards.vue +6 -6
  16. package/src/lib-components/forms/YesOrNoRadio.vue +9 -4
  17. package/src/lib-components/indicators/InlineAlert.vue +3 -3
  18. package/src/lib-components/indicators/ProgressCircles.vue +87 -0
  19. package/src/lib-components/indicators/ProgressCirclesLabeled.vue +104 -0
  20. package/src/lib-components/layout/SidebarLayout.vue +61 -53
  21. package/src/lib-components/layout/StackedLayout.vue +1 -1
  22. package/src/lib-components/lists/Cards.vue +1 -1
  23. package/src/lib-components/navigation/Steps.vue +1 -1
  24. package/src/lib-components/overlays/ContentModal.vue +1 -1
  25. package/src/lib-components/overlays/Modal.vue +5 -5
  26. package/src/lib-components/overlays/Popover/PopoverContent.vue +1 -1
  27. package/src/lib-components/overlays/Tooltip.vue +2 -2
  28. package/types/components.d.ts +1 -1
  29. package/types/helpers/Slots.d.ts +2 -0
  30. package/types/lib-components/index.d.ts +5 -1
  31. package/types/lib-components/indicators/ProgressCircles.vue.d.ts +31 -0
  32. package/types/lib-components/indicators/ProgressCirclesLabeled.vue.d.ts +31 -0
  33. package/types/lib-components/layout/SidebarLayout.vue.d.ts +2 -0
  34. package/types/lib-components/lists/StaticTable.vue.d.ts +21 -0
  35. package/types/lib-components/lists/StaticTableActionSlot.vue.d.ts +27 -0
  36. package/types/lib-components/lists/Table.vue.d.ts +39 -0
  37. package/types/lib-components/navigation/ActionsDropdownCallback.vue.d.ts +18 -0
  38. package/types/lib-components/navigation/ActionsDropdownEmit.vue.d.ts +22 -0
  39. package/types/lib-components/overlays/AlertModal.vue.d.ts +68 -0
  40. package/config/theme/fontFamily.ts +0 -5
@@ -35,7 +35,7 @@ const isActive = (url: string): boolean => {
35
35
  }
36
36
  </script>
37
37
  <template>
38
- <div class="h-screen flex overflow-hidden bg-gray-100">
38
+ <div class="h-screen flex overflow-hidden bg-gray-50">
39
39
  <TransitionRoot as="template" :show="sidebarOpen">
40
40
  <Dialog
41
41
  as="div"
@@ -90,32 +90,36 @@ const isActive = (url: string): boolean => {
90
90
  <img class="w-auto h-12" :src="iconUrl" alt="Logo" />
91
91
  </div>
92
92
  <div class="mt-5 flex flex-col flex-1 h-0 overflow-y-auto">
93
- <nav class="flex-1 px-2 space-y-1">
94
- <a
95
- v-for="item in navigation"
96
- :key="item.name"
97
- :href="item.url"
98
- :class="[
99
- isActive(item.url)
100
- ? 'bg-gray-100 text-gray-900'
101
- : 'text-gray-700 hover:bg-gray-50 hover:text-gray-900',
102
- 'group flex items-center px-2 py-2 text-base font-medium rounded-md',
103
- ]"
104
- :target="item.openInTab ? '_blank' : '_self'"
105
- >
106
- <component
107
- :is="item.icon"
108
- :class="[
109
- isActive(item.url)
110
- ? 'text-gray-600'
111
- : 'text-gray-500 group-hover:text-gray-600',
112
- 'mr-4 h-6 w-6',
113
- ]"
114
- aria-hidden="true"
115
- />
116
- {{ item.name }}
117
- </a>
118
- </nav>
93
+ <div class="flex-1 px-2">
94
+ <slot name="sidebar-nav">
95
+ <nav class="space-y-1">
96
+ <a
97
+ v-for="item in navigation"
98
+ :key="item.name"
99
+ :href="item.url"
100
+ :class="[
101
+ isActive(item.url)
102
+ ? 'bg-gray-100 text-gray-900'
103
+ : 'text-gray-700 hover:bg-gray-50 hover:text-gray-900',
104
+ 'group flex items-center px-2 py-2 text-base font-semibold rounded-md',
105
+ ]"
106
+ :target="item.openInTab ? '_blank' : '_self'"
107
+ >
108
+ <component
109
+ :is="item.icon"
110
+ :class="[
111
+ isActive(item.url)
112
+ ? 'text-gray-600'
113
+ : 'text-gray-500 group-hover:text-gray-600',
114
+ 'mr-4 h-6 w-6',
115
+ ]"
116
+ aria-hidden="true"
117
+ />
118
+ {{ item.name }}
119
+ </a>
120
+ </nav>
121
+ </slot>
122
+ </div>
119
123
  <div v-if="$slots['sidebar-bottom']" class="mt-auto">
120
124
  <div class="mt-6 px-2">
121
125
  <slot name="sidebar-bottom" />
@@ -141,32 +145,36 @@ const isActive = (url: string): boolean => {
141
145
  <img class="w-auto h-12" :src="iconUrl" alt="Logo" />
142
146
  </div>
143
147
  <div class="mt-5 grow flex flex-col">
144
- <nav class="flex-1 px-2 bg-white space-y-1">
145
- <a
146
- v-for="item in navigation"
147
- :key="item.name"
148
- :href="item.url"
149
- :class="[
150
- isActive(item.url)
151
- ? 'bg-gray-100 text-gray-900'
152
- : 'text-gray-700 hover:bg-gray-100 hover:text-gray-900',
153
- 'group flex items-center px-2 py-2 text-sm font-medium rounded-md',
154
- ]"
155
- :target="item.openInTab ? '_blank' : '_self'"
156
- >
157
- <component
158
- :is="item.icon"
159
- :class="[
160
- isActive(item.url)
161
- ? 'text-gray-600'
162
- : 'text-gray-500 group-hover:text-gray-600',
163
- 'mr-3 h-6 w-6',
164
- ]"
165
- aria-hidden="true"
166
- />
167
- {{ item.name }}
168
- </a>
169
- </nav>
148
+ <div class="flex-1 px-2 bg-white">
149
+ <slot name="sidebar-nav">
150
+ <nav class="space-y-1">
151
+ <a
152
+ v-for="item in navigation"
153
+ :key="item.name"
154
+ :href="item.url"
155
+ :class="[
156
+ isActive(item.url)
157
+ ? 'bg-gray-100 text-gray-900'
158
+ : 'text-gray-800 hover:bg-gray-100 hover:text-gray-900',
159
+ 'group flex items-center px-2 py-2 text-sm font-semibold rounded-md',
160
+ ]"
161
+ :target="item.openInTab ? '_blank' : '_self'"
162
+ >
163
+ <component
164
+ :is="item.icon"
165
+ :class="[
166
+ isActive(item.url)
167
+ ? 'text-gray-600'
168
+ : 'text-gray-400 group-hover:text-gray-600',
169
+ 'mr-3 h-6 w-6',
170
+ ]"
171
+ aria-hidden="true"
172
+ />
173
+ {{ item.name }}
174
+ </a>
175
+ </nav>
176
+ </slot>
177
+ </div>
170
178
 
171
179
  <div v-if="$slots['sidebar-bottom']" class="mt-atuo">
172
180
  <div class="mt-6 px-2">
@@ -31,7 +31,7 @@ const isActive = (url: string): boolean => {
31
31
  }
32
32
  </script>
33
33
  <template>
34
- <div class="min-h-screen bg-gray-100">
34
+ <div class="min-h-screen bg-gray-50">
35
35
  <Disclosure v-slot="{ open }" as="nav" class="bg-white shadow-sm">
36
36
  <div class="mx-auto px-4 sm:px-6 lg:px-8">
37
37
  <div class="flex justify-between h-16">
@@ -14,7 +14,7 @@ defineProps<{
14
14
  <div
15
15
  v-for="(card, idx) in cards"
16
16
  :key="idx"
17
- class="bg-white overflow-hidden shadow rounded-lg"
17
+ class="bg-white overflow-hidden shadow rounded-xy"
18
18
  >
19
19
  <div class="px-4 py-5 sm:p-6 text-center">
20
20
  <dl>
@@ -65,7 +65,7 @@ const previous = (): void => {
65
65
  <span v-if="!hidePrevious" class="inline-flex rounded-md shadow-sm">
66
66
  <button
67
67
  type="button"
68
- class="xy-btn-white"
68
+ class="xy-btn-secondary"
69
69
  @click="previous"
70
70
  v-text="previousText"
71
71
  ></button>
@@ -67,7 +67,7 @@ const updateModelValue = (value: boolean) => {
67
67
  leave-to="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
68
68
  >
69
69
  <div
70
- class="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6"
70
+ class="inline-block align-bottom bg-white rounded-xy px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-md sm:w-full sm:p-8 sm:rounded-xy-lg"
71
71
  >
72
72
  <div>
73
73
  <slot name="icon"></slot>
@@ -81,10 +81,10 @@ const updateModelValue = (value: boolean) => {
81
81
  leave-to="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
82
82
  >
83
83
  <div
84
- class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle w-full"
84
+ class="inline-block align-bottom bg-white rounded-xy text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:rounded-xy-lg w-full"
85
85
  :class="wide ? 'sm:max-w-6xl' : 'sm:max-w-2xl'"
86
86
  >
87
- <div class="block absolute top-0 right-0 pt-4 pr-4">
87
+ <div class="block absolute top-0 right-0 pt-4 pr-4 sm:pt-6 sm:pr-8">
88
88
  <button
89
89
  type="button"
90
90
  class="bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
@@ -94,7 +94,7 @@ const updateModelValue = (value: boolean) => {
94
94
  <XIcon class="h-6 w-6" aria-hidden="true" />
95
95
  </button>
96
96
  </div>
97
- <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
97
+ <div class="bg-white px-4 pt-5 pb-4 sm:p-8 sm:pb-6">
98
98
  <div class="mt-3 sm:mt-0 sm:text-left">
99
99
  <DialogTitle
100
100
  as="h3"
@@ -108,7 +108,7 @@ const updateModelValue = (value: boolean) => {
108
108
  </div>
109
109
  <div
110
110
  v-if="submitText"
111
- class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"
111
+ class="bg-gray-50 px-4 py-3 sm:py-4 sm:px-8 sm:flex sm:flex-row-reverse"
112
112
  >
113
113
  <button
114
114
  type="button"
@@ -121,7 +121,7 @@ const updateModelValue = (value: boolean) => {
121
121
  <button
122
122
  ref="cancelButtonRef"
123
123
  type="button"
124
- class="xy-btn-white mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
124
+ class="xy-btn-neutral mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
125
125
  @click="updateModelValue(false)"
126
126
  >
127
127
  Cancel
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <!--styling wrapper - top level element will merge attrs for class overrides -->
3
3
  <div
4
- class="w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md"
4
+ class="w-full max-w-xs bg-white rounded-xy p-2 border border-gray-100 shadow-md"
5
5
  >
6
6
  <slot></slot>
7
7
  </div>
@@ -36,7 +36,7 @@ const hoverPopover = (e: MouseEvent, open: boolean): void => {
36
36
 
37
37
  <template>
38
38
  <Popover :position="position" :as="as">
39
- <template #button="{ open, close }: { open: boolean, close: () => void }">
39
+ <template #button="{ open, close }: { open: boolean; close: () => void }">
40
40
  <div
41
41
  class="leading-none relative w-4 h-4"
42
42
  @mouseover="hoverPopover($event, open)"
@@ -51,7 +51,7 @@ const hoverPopover = (e: MouseEvent, open: boolean): void => {
51
51
  </template>
52
52
  <template #default="{ close }: { close: () => void }">
53
53
  <div
54
- class="sm:min-w-max bg-white rounded-md px-3 py-2 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium"
54
+ class="sm:min-w-max bg-white rounded-xy px-3.5 py-2.5 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium"
55
55
  @mouseover.prevent="popoverHover = true"
56
56
  @mouseleave.prevent="closePopover(close)"
57
57
  >
@@ -6,7 +6,7 @@ import { TreesComponents } from "./lib-components"
6
6
  * import GlobalComponents from "@xy-planning-network/trees/types/components"
7
7
  * in the project.
8
8
  */
9
- declare module "@vue/runtime-core" {
9
+ declare module "vue" {
10
10
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
11
11
  interface GlobalComponents extends TreesComponents {}
12
12
  }
@@ -0,0 +1,2 @@
1
+ import { Slot } from "vue";
2
+ export declare function hasSlotContent(slot: Slot | undefined, slotProps?: {}): boolean;
@@ -22,6 +22,8 @@ import { default as DynamicTable } from "./lists/DynamicTable.vue";
22
22
  import { default as Tabs } from "./navigation/Tabs.vue";
23
23
  import { default as Toggle } from "./forms/Toggle.vue";
24
24
  import { default as XYSpinner } from "./indicators/XYSpinner.vue";
25
+ import { default as ProgressCircles } from "./indicators/ProgressCircles.vue";
26
+ import { default as ProgressCirclesLabeled } from "./indicators/ProgressCirclesLabeled.vue";
25
27
  import { default as BaseInput } from "./forms/BaseInput.vue";
26
28
  import { default as Checkbox } from "./forms/Checkbox.vue";
27
29
  import { default as DateRangePicker } from "./forms/DateRangePicker.vue";
@@ -37,7 +39,7 @@ import { default as Select } from "./forms/Select.vue";
37
39
  import { default as TextArea } from "./forms/TextArea.vue";
38
40
  import { default as YesOrNoRadio } from "./forms/YesOrNoRadio.vue";
39
41
  export { ActionsDropdown, Cards, ContentModal, DateFilter, DetailList, DownloadCell, Flash, InlineAlert, Modal, SidebarLayout, Slideover, StackedLayout, Popover, PopoverContent, PopoverPosition, // Type export
40
- Paginator, Spinner, DataTable, Steps, DynamicTable, Tabs, Toggle, Tooltip, BaseInput, Checkbox, DateRangePicker, DateTime, InputError, InputHelp, InputLabel, FieldsetLegend, MultiCheckboxes, Radio, RadioCards, Select, TextArea, YesOrNoRadio, XYSpinner, };
42
+ Paginator, Spinner, DataTable, Steps, DynamicTable, Tabs, Toggle, Tooltip, BaseInput, Checkbox, DateRangePicker, DateTime, InputError, InputHelp, InputLabel, FieldsetLegend, MultiCheckboxes, Radio, RadioCards, Select, TextArea, YesOrNoRadio, XYSpinner, ProgressCircles, ProgressCirclesLabeled, };
41
43
  /**
42
44
  * declare global component types for App.use(Trees)
43
45
  */
@@ -78,4 +80,6 @@ export interface TreesComponents {
78
80
  TextArea: typeof TextArea;
79
81
  YesOrNoRadio: typeof YesOrNoRadio;
80
82
  XYSpinner: typeof XYSpinner;
83
+ ProgressCircles: typeof ProgressCircles;
84
+ ProgressCirclesLabeled: typeof ProgressCirclesLabeled;
81
85
  }
@@ -0,0 +1,31 @@
1
+ interface Step {
2
+ name: string;
3
+ description?: string;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
6
+ /**
7
+ * current sets the "current" step using an index of the steps prop
8
+ * to show all steps in an "incomplete" state set step to -1
9
+ * to show all steps in an "complete" state set step to a value >= steps.length
10
+ */
11
+ current: number;
12
+ steps: Step[];
13
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
14
+ /**
15
+ * current sets the "current" step using an index of the steps prop
16
+ * to show all steps in an "incomplete" state set step to -1
17
+ * to show all steps in an "complete" state set step to a value >= steps.length
18
+ */
19
+ current: number;
20
+ steps: Step[];
21
+ }>>>, {}, {}>;
22
+ export default _default;
23
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
+ type __VLS_TypePropsToOption<T> = {
25
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
26
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
+ } : {
28
+ type: import('vue').PropType<T[K]>;
29
+ required: true;
30
+ };
31
+ };
@@ -0,0 +1,31 @@
1
+ interface Step {
2
+ name: string;
3
+ description?: string;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
6
+ /**
7
+ * current sets the "current" step using an index of the steps prop
8
+ * to show all steps in an "incomplete" state set step to -1
9
+ * to show all steps in an "complete" state set step to a value >= steps.length
10
+ */
11
+ current: number;
12
+ steps: Step[];
13
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
14
+ /**
15
+ * current sets the "current" step using an index of the steps prop
16
+ * to show all steps in an "incomplete" state set step to -1
17
+ * to show all steps in an "complete" state set step to a value >= steps.length
18
+ */
19
+ current: number;
20
+ steps: Step[];
21
+ }>>>, {}, {}>;
22
+ export default _default;
23
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
+ type __VLS_TypePropsToOption<T> = {
25
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
26
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
+ } : {
28
+ type: import('vue').PropType<T[K]>;
29
+ required: true;
30
+ };
31
+ };
@@ -16,6 +16,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
16
16
  }>>>, {
17
17
  activeUrl: string;
18
18
  }, {}>, {
19
+ "sidebar-nav"?(_: {}): any;
20
+ "sidebar-nav"?(_: {}): any;
19
21
  "sidebar-bottom"?(_: {}): any;
20
22
  "sidebar-bottom"?(_: {}): any;
21
23
  header?(_: {}): any;
@@ -0,0 +1,21 @@
1
+ import type { TableColumn, TableRow } from "../../composables/table";
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ columns: TableColumn<TableRow>[];
4
+ rows: TableRow[];
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
6
+ columns?: unknown;
7
+ rows?: unknown;
8
+ } & {
9
+ columns: TableColumn<TableRow>[];
10
+ rows: TableRow[];
11
+ } & {}>, {}>;
12
+ export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToRuntimeProps<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
@@ -0,0 +1,27 @@
1
+ import * as TableTypes from "../../composables/table";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ tableData: Omit<TableTypes.Static, "currentUser">;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
5
+ tableData?: unknown;
6
+ } & {
7
+ tableData: Omit<TableTypes.Static, "currentUser">;
8
+ } & {}>, {}>, {
9
+ actions: (_: {
10
+ row: Record<string, unknown>;
11
+ }) => any;
12
+ }>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,39 @@
1
+ import * as TableTypes from "../../composables/table";
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ clickable?: boolean | undefined;
4
+ loader?: boolean | undefined;
5
+ tableData: TableTypes.Dynamic;
6
+ }>, {
7
+ clickable: boolean;
8
+ loader: boolean;
9
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ handleClick: (v: any) => void;
11
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
12
+ tableData?: unknown;
13
+ clickable?: unknown;
14
+ loader?: unknown;
15
+ } & {
16
+ tableData: TableTypes.Dynamic;
17
+ clickable: boolean;
18
+ loader: boolean;
19
+ } & {}> & {
20
+ onHandleClick?: ((v: any) => any) | undefined;
21
+ }, {
22
+ clickable: boolean;
23
+ loader: boolean;
24
+ }>;
25
+ export default _default;
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToRuntimeProps<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
35
+ type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
37
+ default: D[K];
38
+ } : P[K];
39
+ };
@@ -0,0 +1,18 @@
1
+ import type { ActionMenuItemCallback } from "../../composables/nav";
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ items: ActionMenuItemCallback[];
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
5
+ items?: unknown;
6
+ } & {
7
+ items: ActionMenuItemCallback[];
8
+ } & {}>, {}>;
9
+ export default _default;
10
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
@@ -0,0 +1,22 @@
1
+ import type { ActionMenuEmit } from "../../composables/nav";
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ items: ActionMenuEmit[];
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ click: (v: string) => void;
6
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
7
+ items?: unknown;
8
+ } & {
9
+ items: ActionMenuEmit[];
10
+ } & {}> & {
11
+ onClick?: ((v: string) => any) | undefined;
12
+ }, {}>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
@@ -0,0 +1,68 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ title: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
5
+ };
6
+ modelValue: {
7
+ type: import("vue").PropType<boolean>;
8
+ required: true;
9
+ };
10
+ content: {
11
+ type: import("vue").PropType<string | string[]>;
12
+ required: true;
13
+ };
14
+ kind: {
15
+ type: import("vue").PropType<"alert" | "warn" | "info" | "success">;
16
+ required: true;
17
+ };
18
+ sticky: {
19
+ type: import("vue").PropType<boolean>;
20
+ default: boolean;
21
+ };
22
+ cancelText: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ submitText: {
27
+ type: import("vue").PropType<string>;
28
+ required: true;
29
+ };
30
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
+ submit: (e?: void | undefined) => void;
32
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ title: {
34
+ type: import("vue").PropType<string>;
35
+ default: string;
36
+ };
37
+ modelValue: {
38
+ type: import("vue").PropType<boolean>;
39
+ required: true;
40
+ };
41
+ content: {
42
+ type: import("vue").PropType<string | string[]>;
43
+ required: true;
44
+ };
45
+ kind: {
46
+ type: import("vue").PropType<"alert" | "warn" | "info" | "success">;
47
+ required: true;
48
+ };
49
+ sticky: {
50
+ type: import("vue").PropType<boolean>;
51
+ default: boolean;
52
+ };
53
+ cancelText: {
54
+ type: import("vue").PropType<string>;
55
+ default: string;
56
+ };
57
+ submitText: {
58
+ type: import("vue").PropType<string>;
59
+ required: true;
60
+ };
61
+ }>> & {
62
+ onSubmit?: ((e?: void | undefined) => any) | undefined;
63
+ }, {
64
+ title: string;
65
+ sticky: boolean;
66
+ cancelText: string;
67
+ }, {}>;
68
+ export default _default;
@@ -1,5 +0,0 @@
1
- import defaultTheme from "tailwindcss/defaultTheme"
2
- export default {
3
- display: ["Work Sans", ...defaultTheme.fontFamily.sans],
4
- sans: ["Inter var", ...defaultTheme.fontFamily.sans],
5
- }