@bl33dz/fa814698dcde12f86a37ac31dd3aedf9 1.0.4 → 1.0.5

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.0.4",
6
+ "version": "1.0.5",
7
7
  "main": "dist/perisai-ui.umd.js",
8
8
  "module": "dist/perisai-ui.es.js",
9
9
  "scripts": {
package/src/index.ts CHANGED
@@ -13,9 +13,6 @@ export { default as InputOTPSlot } from './ui/InputOTPSlot.vue';
13
13
  export { default as PopoverContent } from './ui/PopoverContent.vue';
14
14
  export { default as PopoverTrigger } from './ui/PopoverTrigger.vue';
15
15
  export { default as SelectContent } from './ui/SelectContent.vue';
16
- export { default as SelectGroup } from './ui/SelectGroup.vue';
17
- export { default as SelectItem } from './ui/SelectItem.vue';
18
- export { default as SelectLabel } from './ui/SelectLabel.vue';
19
16
  export { default as SelectSeparator } from './ui/SelectSeparator.vue';
20
17
  export { default as SelectTrigger } from './ui/SelectTrigger.vue';
21
18
  export { default as SelectValue } from './ui/SelectValue.vue';
@@ -1,22 +1,12 @@
1
1
  <script setup lang="ts">
2
- import { defineAsyncComponent } from 'vue';
3
- let SelectPrimitiveGroup: any = null;
4
- try {
5
- SelectPrimitiveGroup = defineAsyncComponent(() => import('shadcn-vue').then(m => m.SelectGroup));
6
- } catch (e) {
7
- SelectPrimitiveGroup = null;
8
- }
2
+ import { SelectGroup as RekaSelectGroup } from "reka-ui"
9
3
  </script>
4
+
10
5
  <template>
11
- <component
12
- v-if="SelectPrimitiveGroup"
13
- :is="SelectPrimitiveGroup"
6
+ <RekaSelectGroup
14
7
  data-slot="select-group"
15
8
  v-bind="$attrs"
16
9
  >
17
10
  <slot />
18
- </component>
19
- <div v-else data-slot="select-group" v-bind="$attrs">
20
- <slot />
21
- </div>
11
+ </RekaSelectGroup>
22
12
  </template>
@@ -1,27 +1,16 @@
1
- <script setup lang="ts">
2
- import { defineAsyncComponent } from 'vue';
3
- import { cn } from './utils';
4
- let SelectPrimitiveLabel: any = null;
5
- try {
6
- SelectPrimitiveLabel = defineAsyncComponent(() => import('shadcn-vue').then(m => m.SelectLabel));
7
- } catch (e) {
8
- SelectPrimitiveLabel = null;
9
- }
10
- defineProps({
11
- class: String,
12
- });
1
+ <script setup>
2
+ import { SelectLabel } from "reka-ui"
3
+ import { cn } from "./utils"
4
+ const props = defineProps({ class: String })
13
5
  </script>
6
+
14
7
  <template>
15
- <component
16
- v-if="SelectPrimitiveLabel"
17
- :is="SelectPrimitiveLabel"
8
+ <SelectLabel
18
9
  data-slot="select-label"
19
- :class="cn('text-muted-foreground px-2 py-1.5 text-xs', $props.class)"
10
+ :class="cn('text-muted-foreground px-2 py-1.5 text-xs', props.class)"
20
11
  v-bind="$attrs"
21
12
  >
22
13
  <slot />
23
- </component>
24
- <div v-else data-slot="select-label" :class="cn('text-muted-foreground px-2 py-1.5 text-xs', $props.class)" v-bind="$attrs">
25
- <slot />
26
- </div>
14
+ </SelectLabel>
27
15
  </template>
16
+
@@ -1,23 +1,17 @@
1
- <script setup lang="ts">
2
- import { defineAsyncComponent } from 'vue';
3
- import { cn } from './utils';
4
- let SelectPrimitiveSeparator: any = null;
5
- try {
6
- SelectPrimitiveSeparator = defineAsyncComponent(() => import('shadcn-vue').then(m => m.SelectSeparator));
7
- } catch (e) {
8
- SelectPrimitiveSeparator = null;
9
- }
10
- defineProps({
11
- class: String,
12
- });
1
+ <script setup>
2
+ import { SelectSeparator } from "reka-ui"
3
+ import { cn } from "./utils"
4
+
5
+ const props = defineProps({
6
+ class: String
7
+ })
13
8
  </script>
9
+
14
10
  <template>
15
- <component
16
- v-if="SelectPrimitiveSeparator"
17
- :is="SelectPrimitiveSeparator"
11
+ <SelectSeparator
18
12
  data-slot="select-separator"
19
- :class="cn('bg-border pointer-events-none -mx-1 my-1 h-px', $props.class)"
13
+ :class="cn('bg-border pointer-events-none -mx-1 my-1 h-px', props.class)"
20
14
  v-bind="$attrs"
21
15
  />
22
- <div v-else data-slot="select-separator" :class="cn('bg-border pointer-events-none -mx-1 my-1 h-px', $props.class)" v-bind="$attrs" />
23
16
  </template>
17
+