@insymetri/styleguide 0.1.38 → 0.1.40
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.
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
const density = useDensity()
|
|
22
22
|
|
|
23
23
|
const densityClasses = {
|
|
24
|
-
compact: 'h-28 text-tiny',
|
|
25
|
-
default: 'h-32 text-small',
|
|
26
|
-
comfortable: 'h-40 text-small',
|
|
27
|
-
mobile: 'h-48 text-default',
|
|
24
|
+
compact: 'h-28 px-8 text-tiny',
|
|
25
|
+
default: 'h-32 px-12 text-small',
|
|
26
|
+
comfortable: 'h-40 px-12 text-small',
|
|
27
|
+
mobile: 'h-48 px-16 text-default',
|
|
28
28
|
} as const
|
|
29
29
|
|
|
30
30
|
let containerEl = $state<HTMLDivElement | null>(null)
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
{#each tabs as tab (tab.value)}
|
|
66
66
|
<button
|
|
67
67
|
class={cn(
|
|
68
|
-
'flex items-center
|
|
68
|
+
'flex items-center rounded-control border-none outline-none cursor-default whitespace-nowrap',
|
|
69
69
|
densityClasses[density.value],
|
|
70
70
|
value === tab.value
|
|
71
71
|
? 'bg-gray-100 text-gray-700'
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</script>
|
|
28
28
|
|
|
29
29
|
<span
|
|
30
|
-
class="inline-flex items-center gap-4 px-8 h-24 bg-gray-100 border border-gray-200 rounded-
|
|
30
|
+
class="inline-flex items-center gap-4 px-8 h-24 bg-gray-100 border border-gray-200 rounded-control text-tiny text-secondary cursor-default"
|
|
31
31
|
>
|
|
32
32
|
<span class="flex items-center gap-4">
|
|
33
33
|
<span class="font-medium">{fieldLabel}</span>
|