hamzus-ui 0.0.138 → 0.0.140

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamzus-ui",
3
- "version": "0.0.138",
3
+ "version": "0.0.140",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -1,4 +1,8 @@
1
- <div class="list" {...$$restProps}>
1
+ <script>
2
+ export let direction = "default"
3
+ </script>
4
+
5
+ <div class="list {direction === "reverse" ? "reverse" : ""}" {...$$restProps}>
2
6
  <slot/>
3
7
  </div>
4
8
 
@@ -9,4 +13,8 @@
9
13
  row-gap: var(--pad-m);
10
14
  width: 100%;
11
15
  }
16
+
17
+ .list.reverse :global(.line) {
18
+ flex-direction: row-reverse;
19
+ }
12
20
  </style>
@@ -41,6 +41,10 @@
41
41
  // fnctions
42
42
  function formatInput(inputValue) {
43
43
 
44
+ if (!inputValue.replace) {
45
+ inputValue = inputValue.toString()
46
+ }
47
+
44
48
  // verifier que c est un nombre
45
49
  if (type === 'number') {
46
50
  // Remplace les virgules par des points