Build out components #45

Merged
BenjaminPalko merged 14 commits from build-out-components into master 2025-01-04 22:14:19 -05:00
BenjaminPalko commented 2025-01-04 19:11:34 -05:00 (Migrated from github.com)

I made some of the simpler Daisy components, we can leave the more complex ones for later

I made some of the simpler Daisy components, we can leave the more complex ones for later
DanMihailescu (Migrated from github.com) reviewed 2025-01-04 19:11:34 -05:00
piopi (Migrated from github.com) reviewed 2025-01-04 21:28:47 -05:00
@ -1,61 +1,68 @@
<script lang="ts">
import type { DaisyColor, DaisySize } from '$lib/types';
piopi (Migrated from github.com) commented 2025-01-04 21:28:47 -05:00

Any reason or standard you had to change the onClick to onclick?

Any reason or standard you had to change the onClick to onclick?
BenjaminPalko (Migrated from github.com) reviewed 2025-01-04 21:34:02 -05:00
@ -1,61 +1,68 @@
<script lang="ts">
import type { DaisyColor, DaisySize } from '$lib/types';
BenjaminPalko (Migrated from github.com) commented 2025-01-04 21:34:02 -05:00

Yeah, onclick is the default prop name on elements in svelte, its not the same as with React where it follows JS camel case styling.

Yeah, onclick is the default prop name on elements in svelte, its not the same as with React where it follows JS camel case styling.
piopi (Migrated from github.com) approved these changes 2025-01-04 21:34:27 -05:00
@ -0,0 +18,4 @@
'success',
'warning',
'error',
],
piopi (Migrated from github.com) commented 2025-01-04 21:30:42 -05:00

I see some of them also used in the alert and other place, maybe it could be worth it to put them in an array or enums as UI tokens

I see some of them also used in the alert and other place, maybe it could be worth it to put them in an array or enums as UI tokens
piopi (Migrated from github.com) commented 2025-01-04 21:31:06 -05:00

Same thing for the sizes tokens and anything you see used in common

Same thing for the sizes tokens and anything you see used in common
piopi (Migrated from github.com) commented 2025-01-04 21:33:21 -05:00

Just noticed my comment is on the stories file but I meant it to be on the component itself

Just noticed my comment is on the stories file but I meant it to be on the component itself
piopi (Migrated from github.com) reviewed 2025-01-04 21:34:54 -05:00
@ -1,61 +1,68 @@
<script lang="ts">
import type { DaisyColor, DaisySize } from '$lib/types';
piopi (Migrated from github.com) commented 2025-01-04 21:34:54 -05:00

kk thanks, good to know

kk thanks, good to know
BenjaminPalko (Migrated from github.com) reviewed 2025-01-04 21:35:03 -05:00
@ -1,61 +1,68 @@
<script lang="ts">
import type { DaisyColor, DaisySize } from '$lib/types';
BenjaminPalko (Migrated from github.com) commented 2025-01-04 21:35:02 -05:00

actually, I think I'm gonig to redo the typing here, there is redundancy

actually, I think I'm gonig to redo the typing here, there is redundancy
BenjaminPalko (Migrated from github.com) reviewed 2025-01-04 21:46:12 -05:00
@ -0,0 +18,4 @@
'success',
'warning',
'error',
],
BenjaminPalko (Migrated from github.com) commented 2025-01-04 21:46:12 -05:00

It did occur to me, there can be variation between components though, some will have ghost, others might have neutral, or not. So I just haven't made a decision for it yet.

It did occur to me, there can be variation between components though, some will have ghost, others might have neutral, or not. So I just haven't made a decision for it yet.
Sign in to join this conversation.
No description provided.