Skip to content

Commit

Permalink
add select to index.ts (#23)
Browse files Browse the repository at this point in the history
* add shadcn components to /dist

* update

---------

Co-authored-by: Claire Olmstead <olmsteadclaire@gmail.com>
  • Loading branch information
claireclark1 and claireclark1 authored Oct 2, 2024
1 parent 0016db6 commit 12af0ab
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions components.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"style": "default",
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.pcss",
"css": "src/index.css",
"baseColor": "slate"
},
"aliases": {
"components": "src/shadcnComponents",
"components": "src/lib/shadcnComponents",
"utils": "src/utils"
},
"typescript": true
Expand Down
2 changes: 1 addition & 1 deletion src/lib/atoms/Select.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Root, Trigger, Value, Content, Item, Label } from '../../shadcnComponents/ui/select';
import { Root, Trigger, Value, Content, Item, Label } from '../shadcnComponents/ui/select';
export let label: string;
export let description: string | undefined;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Select as SelectPrimitive } from "bits-ui";
import Label from "./select-label.svelte";
import Item from "./select-item.svelte";
import Content from "./select-content.svelte";
import Trigger from "./select-trigger.svelte";
import Separator from "./select-separator.svelte";
import Label from "./select-label.svelte.js";
import Item from "./select-item.svelte.js";
import Content from "./select-content.svelte.js";
import Trigger from "./select-trigger.svelte.js";
import Separator from "./select-separator.svelte.js";
declare const Root: typeof SelectPrimitive.Root;
declare const Group: typeof SelectPrimitive.Group;
declare const Input: typeof SelectPrimitive.Input;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { Select as SelectPrimitive } from 'bits-ui';
import { scale } from 'svelte/transition';
import { cn, flyAndScale } from '../../../utils';
import { cn, flyAndScale } from '../../../../utils';
type $$Props = SelectPrimitive.ContentProps;
type $$Events = SelectPrimitive.ContentEvents;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import Check from '../../../assets/Check.svelte';
import Check from '../../../../assets/Check.svelte';
import { Select as SelectPrimitive } from 'bits-ui';
import { cn } from '../../../utils';
import { cn } from '../../../../utils';
type $$Props = SelectPrimitive.ItemProps;
type $$Events = SelectPrimitive.ItemEvents;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Select as SelectPrimitive } from 'bits-ui';
import { cn } from '../../../utils';
import { cn } from '../../../../utils';
export let isRequired: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Select as SelectPrimitive } from "bits-ui";
import { cn } from "../../../utils";
import { cn } from "../../../../utils";
type $$Props = SelectPrimitive.SeparatorProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import { Select as SelectPrimitive } from 'bits-ui';
import Chevron from '../../../assets/Chevron.svelte';
import Error from '../../../assets/Error.svelte';
import { cn } from '../../../utils';
import Chevron from '../../../../assets/Chevron.svelte';
import Error from '../../../../assets/Error.svelte';
import { cn } from '../../../../utils';
export let error: string | undefined;
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"$src/*": ["./src/*"],
"$lib": ["./src/lib"],
"$lib/*": ["./src/lib/*"],
"$shadcnComponents": ["./src/shadcnComponents"],
"$shadcnComponents/*": ["./src/shadcnComponents/*"]
"$shadcnComponents": ["./src/lib/shadcnComponents"],
"$shadcnComponents/*": ["./src/lib/shadcnComponents/*"]
},
"allowSyntheticDefaultImports": true,
"module": "ESNext",
Expand Down

0 comments on commit 12af0ab

Please sign in to comment.