ui-thing 0.1.7 → 0.1.9
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/.github/workflows/main.yml +1 -1
- package/.github/workflows/test.yml +1 -1
- package/CHANGELOG.md +53 -21
- package/dist/index.js +70 -103
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/comps.ts +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,35 +1,67 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## v0.1.
|
|
3
|
+
## v0.1.9
|
|
4
4
|
|
|
5
|
-
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.1.
|
|
5
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.1.8...v0.1.9)
|
|
6
6
|
|
|
7
7
|
### 🏡 Chore
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
- **datatables:** Update datatables comp ([ce0b4c4](https://github.com/BayBreezy/ui-thing-cli/commit/ce0b4c4))
|
|
12
|
-
|
|
13
|
-
### ❤️ Contributors
|
|
14
|
-
|
|
15
|
-
- Behon Baker <behon.baker@yahoo.com>
|
|
16
|
-
|
|
17
|
-
## v0.1.6
|
|
18
|
-
|
|
19
|
-
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.1.5...v0.1.6)
|
|
20
|
-
|
|
21
|
-
### 🚀 Enhancements
|
|
22
|
-
|
|
23
|
-
- Update to latest version of datatables ([f973a89](https://github.com/BayBreezy/ui-thing-cli/commit/f973a89))
|
|
24
|
-
|
|
25
|
-
### 🏡 Chore
|
|
26
|
-
|
|
27
|
-
- Bump deps ([a2be074](https://github.com/BayBreezy/ui-thing-cli/commit/a2be074))
|
|
9
|
+
- **form-elements:** Use nuxt's `useId` composable instead of the one from radix-vue ([17a952e](https://github.com/BayBreezy/ui-thing-cli/commit/17a952e))
|
|
10
|
+
- Bump deps ([557e58c](https://github.com/BayBreezy/ui-thing-cli/commit/557e58c))
|
|
28
11
|
|
|
29
12
|
### ❤️ Contributors
|
|
30
13
|
|
|
31
14
|
- Behon Baker <behon.baker@yahoo.com>
|
|
32
15
|
|
|
16
|
+
## v0.1.8
|
|
17
|
+
|
|
18
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.1.7...v0.1.8)
|
|
19
|
+
|
|
20
|
+
### 🏡 Chore
|
|
21
|
+
|
|
22
|
+
- Bump deps ([22f3b36](https://github.com/BayBreezy/ui-thing-cli/commit/22f3b36))
|
|
23
|
+
- Add slot for navigationmenu viewport & icon ([339656e](https://github.com/BayBreezy/ui-thing-cli/commit/339656e))
|
|
24
|
+
|
|
25
|
+
### 🤖 CI
|
|
26
|
+
|
|
27
|
+
- **test:** Update test github action ([6345fc6](https://github.com/BayBreezy/ui-thing-cli/commit/6345fc6))
|
|
28
|
+
- **build:** Update main github action ([9353995](https://github.com/BayBreezy/ui-thing-cli/commit/9353995))
|
|
29
|
+
|
|
30
|
+
### ❤️ Contributors
|
|
31
|
+
|
|
32
|
+
- BayBreezy <behon.baker@yahoo.com>
|
|
33
|
+
- Behon Baker <behon.baker@yahoo.com>
|
|
34
|
+
|
|
35
|
+
## v0.1.7
|
|
36
|
+
|
|
37
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.1.6...v0.1.7)
|
|
38
|
+
|
|
39
|
+
### 🏡 Chore
|
|
40
|
+
|
|
41
|
+
- Bump deps ([24db3af](https://github.com/BayBreezy/ui-thing-cli/commit/24db3af))
|
|
42
|
+
- **add:** Remove overrides addition logic ([86dcae6](https://github.com/BayBreezy/ui-thing-cli/commit/86dcae6))
|
|
43
|
+
- **datatables:** Update datatables comp ([ce0b4c4](https://github.com/BayBreezy/ui-thing-cli/commit/ce0b4c4))
|
|
44
|
+
|
|
45
|
+
### ❤️ Contributors
|
|
46
|
+
|
|
47
|
+
- Behon Baker <behon.baker@yahoo.com>
|
|
48
|
+
|
|
49
|
+
## v0.1.6
|
|
50
|
+
|
|
51
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.1.5...v0.1.6)
|
|
52
|
+
|
|
53
|
+
### 🚀 Enhancements
|
|
54
|
+
|
|
55
|
+
- Update to latest version of datatables ([f973a89](https://github.com/BayBreezy/ui-thing-cli/commit/f973a89))
|
|
56
|
+
|
|
57
|
+
### 🏡 Chore
|
|
58
|
+
|
|
59
|
+
- Bump deps ([a2be074](https://github.com/BayBreezy/ui-thing-cli/commit/a2be074))
|
|
60
|
+
|
|
61
|
+
### ❤️ Contributors
|
|
62
|
+
|
|
63
|
+
- Behon Baker <behon.baker@yahoo.com>
|
|
64
|
+
|
|
33
65
|
## v0.1.5
|
|
34
66
|
|
|
35
67
|
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.1.4...v0.1.5)
|
package/dist/index.js
CHANGED
|
@@ -4702,8 +4702,6 @@ export function useFormField() {
|
|
|
4702
4702
|
</script>
|
|
4703
4703
|
|
|
4704
4704
|
<script lang="ts" setup>
|
|
4705
|
-
import { useId } from "radix-vue";
|
|
4706
|
-
|
|
4707
4705
|
defineOptions({ inheritAttrs: false });
|
|
4708
4706
|
|
|
4709
4707
|
const id = useId();
|
|
@@ -5778,30 +5776,32 @@ export function useFormField() {
|
|
|
5778
5776
|
base: "group flex flex-1 list-none items-center justify-center space-x-1",
|
|
5779
5777
|
});
|
|
5780
5778
|
</script>
|
|
5781
|
-
`},{fileName:"NavigationMenu/NavigationMenu.vue",dirPath:"components/UI",fileContent:`<template
|
|
5782
|
-
<NavigationMenuRoot :class="styles({ class: props.class })" v-bind="forwarded"
|
|
5783
|
-
<slot></slot
|
|
5784
|
-
<
|
|
5785
|
-
|
|
5786
|
-
</
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
const
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5779
|
+
`},{fileName:"NavigationMenu/NavigationMenu.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
5780
|
+
<NavigationMenuRoot :class="styles({ class: props.class })" v-bind="forwarded">\r
|
|
5781
|
+
<slot></slot>\r
|
|
5782
|
+
<slot name="viewport">\r
|
|
5783
|
+
<UiNavigationMenuViewport />\r
|
|
5784
|
+
</slot>\r
|
|
5785
|
+
</NavigationMenuRoot>\r
|
|
5786
|
+
</template>\r
|
|
5787
|
+
\r
|
|
5788
|
+
<script lang="ts" setup>\r
|
|
5789
|
+
import { NavigationMenuRoot, useForwardPropsEmits } from "radix-vue";\r
|
|
5790
|
+
import type { NavigationMenuRootEmits, NavigationMenuRootProps } from "radix-vue";\r
|
|
5791
|
+
\r
|
|
5792
|
+
const props = defineProps<\r
|
|
5793
|
+
NavigationMenuRootProps & {\r
|
|
5794
|
+
/** Custom class(es) to add to the parent */\r
|
|
5795
|
+
class?: any;\r
|
|
5796
|
+
}\r
|
|
5797
|
+
>();\r
|
|
5798
|
+
const emits = defineEmits<NavigationMenuRootEmits>();\r
|
|
5799
|
+
const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);\r
|
|
5800
|
+
\r
|
|
5801
|
+
const styles = tv({\r
|
|
5802
|
+
base: "relative flex max-w-max flex-1 items-center justify-center",\r
|
|
5803
|
+
});\r
|
|
5804
|
+
</script>\r
|
|
5805
5805
|
`},{fileName:"NavigationMenu/Sub.vue",dirPath:"components/UI",fileContent:`<template>
|
|
5806
5806
|
<NavigationMenuSub v-bind="forwarded">
|
|
5807
5807
|
<slot></slot>
|
|
@@ -5816,39 +5816,41 @@ export function useFormField() {
|
|
|
5816
5816
|
const emits = defineEmits<NavigationMenuSubEmits>();
|
|
5817
5817
|
const forwarded = useForwardPropsEmits(props, emits);
|
|
5818
5818
|
</script>
|
|
5819
|
-
`},{fileName:"NavigationMenu/Trigger.vue",dirPath:"components/UI",fileContent:`<template
|
|
5820
|
-
<NavigationMenuTrigger
|
|
5821
|
-
v-bind="reactiveOmit(props, 'class', 'icon', 'title')"
|
|
5822
|
-
:class="styles({ class: props.class })"
|
|
5823
|
-
|
|
5824
|
-
<slot>{{ title }}</slot
|
|
5825
|
-
<
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
</
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
/**
|
|
5842
|
-
|
|
5843
|
-
/**
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5819
|
+
`},{fileName:"NavigationMenu/Trigger.vue",dirPath:"components/UI",fileContent:`<template>\r
|
|
5820
|
+
<NavigationMenuTrigger\r
|
|
5821
|
+
v-bind="reactiveOmit(props, 'class', 'icon', 'title')"\r
|
|
5822
|
+
:class="styles({ class: props.class })"\r
|
|
5823
|
+
>\r
|
|
5824
|
+
<slot>{{ title }}</slot>\r
|
|
5825
|
+
<slot name="icon">\r
|
|
5826
|
+
<Icon\r
|
|
5827
|
+
:name="icon || 'lucide:chevron-down'"\r
|
|
5828
|
+
class="relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180"\r
|
|
5829
|
+
aria-hidden="true"\r
|
|
5830
|
+
/>\r
|
|
5831
|
+
</slot>\r
|
|
5832
|
+
</NavigationMenuTrigger>\r
|
|
5833
|
+
</template>\r
|
|
5834
|
+
\r
|
|
5835
|
+
<script lang="ts" setup>\r
|
|
5836
|
+
import { NavigationMenuTrigger } from "radix-vue";\r
|
|
5837
|
+
import type { NavigationMenuTriggerProps } from "radix-vue";\r
|
|
5838
|
+
\r
|
|
5839
|
+
const props = defineProps<\r
|
|
5840
|
+
NavigationMenuTriggerProps & {\r
|
|
5841
|
+
/** Custom class(es) to add to the parent */\r
|
|
5842
|
+
class?: any;\r
|
|
5843
|
+
/** Icon to show */\r
|
|
5844
|
+
icon?: string;\r
|
|
5845
|
+
/** Title to show */\r
|
|
5846
|
+
title?: string;\r
|
|
5847
|
+
}\r
|
|
5848
|
+
>();\r
|
|
5849
|
+
\r
|
|
5850
|
+
const styles = tv({\r
|
|
5851
|
+
base: "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50",\r
|
|
5852
|
+
});\r
|
|
5853
|
+
</script>\r
|
|
5852
5854
|
`},{fileName:"NavigationMenu/Viewport.vue",dirPath:"components/UI",fileContent:`<template>
|
|
5853
5855
|
<div class="absolute left-0 top-full flex justify-center">
|
|
5854
5856
|
<NavigationMenuViewport
|
|
@@ -8880,8 +8882,6 @@ export { toast, useToast };
|
|
|
8880
8882
|
</template>
|
|
8881
8883
|
|
|
8882
8884
|
<script lang="ts" setup>
|
|
8883
|
-
import { useId } from "radix-vue";
|
|
8884
|
-
|
|
8885
8885
|
const props = defineProps<{
|
|
8886
8886
|
label?: string;
|
|
8887
8887
|
icon?: string;
|
|
@@ -8902,9 +8902,7 @@ export { toast, useToast };
|
|
|
8902
8902
|
base: "flex gap-3",
|
|
8903
8903
|
});
|
|
8904
8904
|
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
const inputId = useId(props.id);
|
|
8905
|
+
const inputId = props.id || useId();
|
|
8908
8906
|
|
|
8909
8907
|
const { errorMessage, checked, handleChange } = useField(
|
|
8910
8908
|
() => props.name || inputId,
|
|
@@ -8967,8 +8965,6 @@ export { toast, useToast };
|
|
|
8967
8965
|
</template>
|
|
8968
8966
|
|
|
8969
8967
|
<script lang="ts" setup>
|
|
8970
|
-
import { useId } from "radix-vue";
|
|
8971
|
-
|
|
8972
8968
|
const props = withDefaults(
|
|
8973
8969
|
defineProps<{
|
|
8974
8970
|
label?: string;
|
|
@@ -8989,9 +8985,7 @@ export { toast, useToast };
|
|
|
8989
8985
|
}
|
|
8990
8986
|
);
|
|
8991
8987
|
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
const inputId = useId(props.id);
|
|
8988
|
+
const inputId = props.id || useId();
|
|
8995
8989
|
|
|
8996
8990
|
const hasIcon = computed(() => Boolean(props.icon) || Boolean(useSlots().icon));
|
|
8997
8991
|
|
|
@@ -9044,8 +9038,6 @@ export { toast, useToast };
|
|
|
9044
9038
|
</template>
|
|
9045
9039
|
|
|
9046
9040
|
<script lang="ts" setup>
|
|
9047
|
-
import { useId } from "radix-vue";
|
|
9048
|
-
|
|
9049
9041
|
const props = defineProps<{
|
|
9050
9042
|
label?: string;
|
|
9051
9043
|
icon?: string;
|
|
@@ -9058,14 +9050,12 @@ export { toast, useToast };
|
|
|
9058
9050
|
accept?: string;
|
|
9059
9051
|
}>();
|
|
9060
9052
|
|
|
9061
|
-
defineOptions({ inheritAttrs: false });
|
|
9062
|
-
|
|
9063
9053
|
const emits = defineEmits<{
|
|
9064
9054
|
change: [files?: FileList | File | File[] | null];
|
|
9065
9055
|
blur: [event?: FocusEvent];
|
|
9066
9056
|
}>();
|
|
9067
9057
|
|
|
9068
|
-
const inputId =
|
|
9058
|
+
const inputId = props.id || useId();
|
|
9069
9059
|
|
|
9070
9060
|
const hasIcon = computed(() => Boolean(props.icon) || Boolean(useSlots().icon));
|
|
9071
9061
|
|
|
@@ -9114,8 +9104,6 @@ export { toast, useToast };
|
|
|
9114
9104
|
</template>
|
|
9115
9105
|
|
|
9116
9106
|
<script lang="ts" setup>
|
|
9117
|
-
import { useId } from "radix-vue";
|
|
9118
|
-
|
|
9119
9107
|
const props = defineProps<{
|
|
9120
9108
|
label?: string;
|
|
9121
9109
|
labelHint?: string;
|
|
@@ -9131,9 +9119,7 @@ export { toast, useToast };
|
|
|
9131
9119
|
placeholder?: string;
|
|
9132
9120
|
}>();
|
|
9133
9121
|
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
const inputId = useId(props.id);
|
|
9122
|
+
const inputId = props.id || useId();
|
|
9137
9123
|
|
|
9138
9124
|
const hasIcon = computed(() => Boolean(props.icon) || Boolean(useSlots().icon));
|
|
9139
9125
|
|
|
@@ -9193,8 +9179,6 @@ export { toast, useToast };
|
|
|
9193
9179
|
|
|
9194
9180
|
import "@vueform/multiselect/themes/default.css";
|
|
9195
9181
|
|
|
9196
|
-
import { useId } from "radix-vue";
|
|
9197
|
-
|
|
9198
9182
|
const multiselect = shallowRef<InstanceType<typeof Multiselect> | null>(null);
|
|
9199
9183
|
|
|
9200
9184
|
interface Props
|
|
@@ -9234,9 +9218,7 @@ export { toast, useToast };
|
|
|
9234
9218
|
"ready",
|
|
9235
9219
|
]);
|
|
9236
9220
|
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
const inputId = useId(props.id);
|
|
9221
|
+
const inputId = props.id || useId();
|
|
9240
9222
|
|
|
9241
9223
|
const { errorMessage, value } = useField(() => props.name || inputId, props.rules, {
|
|
9242
9224
|
initialValue: props.modelValue,
|
|
@@ -9350,7 +9332,6 @@ export { toast, useToast };
|
|
|
9350
9332
|
</template>
|
|
9351
9333
|
|
|
9352
9334
|
<script lang="ts" setup>
|
|
9353
|
-
import { useId } from "radix-vue";
|
|
9354
9335
|
import type { PinInputRootProps } from "radix-vue";
|
|
9355
9336
|
|
|
9356
9337
|
const props = defineProps<
|
|
@@ -9369,9 +9350,7 @@ export { toast, useToast };
|
|
|
9369
9350
|
complete: [value: string[]];
|
|
9370
9351
|
}>();
|
|
9371
9352
|
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
const inputId = useId(props.id);
|
|
9353
|
+
const inputId = props.id || useId();
|
|
9375
9354
|
|
|
9376
9355
|
const { errorMessage, value } = useField(() => props.name || inputId, props.rules, {
|
|
9377
9356
|
initialValue: props.modelValue || [],
|
|
@@ -9485,8 +9464,6 @@ export { toast, useToast };
|
|
|
9485
9464
|
</template>
|
|
9486
9465
|
|
|
9487
9466
|
<script lang="ts" setup>
|
|
9488
|
-
import { useId } from "radix-vue";
|
|
9489
|
-
|
|
9490
9467
|
const props = defineProps<{
|
|
9491
9468
|
label?: string;
|
|
9492
9469
|
icon?: string;
|
|
@@ -9500,9 +9477,7 @@ export { toast, useToast };
|
|
|
9500
9477
|
trailingIcon?: string;
|
|
9501
9478
|
}>();
|
|
9502
9479
|
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
const inputId = useId(props.id);
|
|
9480
|
+
const inputId = props.id || useId();
|
|
9506
9481
|
|
|
9507
9482
|
const hasIcon = computed(() => Boolean(props.icon) || Boolean(useSlots().icon));
|
|
9508
9483
|
|
|
@@ -9551,8 +9526,6 @@ export { toast, useToast };
|
|
|
9551
9526
|
</template>
|
|
9552
9527
|
|
|
9553
9528
|
<script lang="ts" setup>
|
|
9554
|
-
import { useId } from "radix-vue";
|
|
9555
|
-
|
|
9556
9529
|
const props = defineProps<{
|
|
9557
9530
|
label?: string;
|
|
9558
9531
|
icon?: string;
|
|
@@ -9567,9 +9540,7 @@ export { toast, useToast };
|
|
|
9567
9540
|
placeholder?: string;
|
|
9568
9541
|
}>();
|
|
9569
9542
|
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
const inputId = useId(props.id);
|
|
9543
|
+
const inputId = props.id || useId();
|
|
9573
9544
|
|
|
9574
9545
|
const hasIcon = computed(() => Boolean(props.icon) || Boolean(useSlots().icon));
|
|
9575
9546
|
|
|
@@ -9615,8 +9586,6 @@ export { toast, useToast };
|
|
|
9615
9586
|
</template>
|
|
9616
9587
|
|
|
9617
9588
|
<script lang="ts" setup>
|
|
9618
|
-
import { useId } from "radix-vue";
|
|
9619
|
-
|
|
9620
9589
|
const props = defineProps<{
|
|
9621
9590
|
label?: string;
|
|
9622
9591
|
icon?: string;
|
|
@@ -9630,9 +9599,7 @@ export { toast, useToast };
|
|
|
9630
9599
|
rows?: number;
|
|
9631
9600
|
}>();
|
|
9632
9601
|
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
const inputId = useId(props.id);
|
|
9602
|
+
const inputId = props.id || useId();
|
|
9636
9603
|
|
|
9637
9604
|
const hasIcon = computed(() => Boolean(props.icon) || Boolean(useSlots().icon));
|
|
9638
9605
|
|