@tuspe/components 1.7.15 → 1.7.17

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.
@@ -1,5 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {page} from '$app/state'
3
+ import {onMount} from 'svelte'
3
4
  import {validateArray, type Breadcrumb} from './'
4
5
 
5
6
  interface Props {
@@ -39,7 +40,7 @@
39
40
  : ''
40
41
  )
41
42
 
42
- $effect(() => {
43
+ onMount(() => {
43
44
  classes += outerClass ? ` ${outerClass}` : ' border-bottom'
44
45
  })
45
46
  </script>
@@ -2,6 +2,7 @@
2
2
  import {loading, type SelectItem} from './'
3
3
 
4
4
  interface Props {
5
+ colorBg?: string
5
6
  disabled?: boolean
6
7
  id?: string
7
8
  innerClass?: string
@@ -14,7 +15,20 @@
14
15
  values: SelectItem[]
15
16
  }
16
17
 
17
- let {disabled, id, innerClass, label, onchange, outerClass, placeholder, required = false, value = $bindable(), values}: Props = $props()
18
+ let {
19
+ colorBg = 'transparent',
20
+ disabled,
21
+ id,
22
+ innerClass,
23
+ label,
24
+ onchange,
25
+ outerClass,
26
+ placeholder,
27
+ required = false,
28
+ value = $bindable(),
29
+ values
30
+ }: Props = $props(),
31
+ classes = $state(`bg-${colorBg}`)
18
32
  </script>
19
33
 
20
34
  <label class={outerClass}>
@@ -29,7 +43,6 @@
29
43
 
30
44
  <style scoped>
31
45
  select {
32
- background-color: transparent;
33
46
  border-radius: 0.375rem;
34
47
  border: 1px solid var(--color-border);
35
48
  color: var(--color-content);
@@ -40,6 +53,10 @@
40
53
  width: 100%;
41
54
  }
42
55
 
56
+ select.bg-transparent {
57
+ background-color: transparent;
58
+ }
59
+
43
60
  select:disabled {
44
61
  cursor: not-allowed;
45
62
  opacity: 0.6;
@@ -1,5 +1,6 @@
1
1
  import { type SelectItem } from './';
2
2
  interface Props {
3
+ colorBg?: string;
3
4
  disabled?: boolean;
4
5
  id?: string;
5
6
  innerClass?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuspe/components",
3
- "version": "1.7.15",
3
+ "version": "1.7.17",
4
4
  "description": "A reusable SvelteKit component library for form elements, breadcrumbs, prices and images.",
5
5
  "keywords": [
6
6
  "svelteKit",
@@ -72,10 +72,10 @@
72
72
  "globals": "^16.0.0",
73
73
  "prettier-plugin-svelte": "^3.3.3",
74
74
  "prettier": "^3.5.3",
75
- "publint": "^0.3.8",
75
+ "publint": "^0.3.9",
76
76
  "svelte-check": "^4.1.5",
77
- "svelte": "^5.22.6",
78
- "typescript-eslint": "^8.26.0",
77
+ "svelte": "^5.23.0",
78
+ "typescript-eslint": "^8.26.1",
79
79
  "typescript": "^5.8.2",
80
80
  "vite": "^6.2.1"
81
81
  }