hamzus-ui 0.0.32 → 0.0.34

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.32",
3
+ "version": "0.0.34",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -234,7 +234,7 @@ import { onDestroy, onMount } from 'svelte';
234
234
  if (event.target.closest('.parent-popover-hamzus') && event.target.closest('.parent-popover-hamzus') === originalParent) {
235
235
  return
236
236
  }
237
- if (event.target.closest('.content-popover-hamzus') && event.target.closest('.content-popover-hamzus') === content) {
237
+ if (event.target.closest('.content-popover-hamzus')) {
238
238
  return
239
239
  }
240
240
 
@@ -115,8 +115,8 @@ import Button from "../Button/Button.svelte";
115
115
  border-radius: var(--radius-xl);
116
116
  padding: var(--pad-xl);
117
117
  font-size: 16px;
118
- color: var(--font-d);
119
- background-color: var(--bg-u);
118
+ color: var(--font-2);
119
+ background-color: var(--bg-1);
120
120
  outline: none;
121
121
  cursor: pointer;
122
122
  display: flex;
@@ -127,7 +127,7 @@ import Button from "../Button/Button.svelte";
127
127
  }
128
128
 
129
129
  .date-input:hover {
130
- background-color: var(--bg-d);
130
+ background-color: var(--bg-2);
131
131
  }
132
132
  .content{
133
133
  display: flex;
@@ -0,0 +1,49 @@
1
+ <script>
2
+ export let label = 'date';
3
+ export let required = false;
4
+ export let name = 'date';
5
+ export let value = '';
6
+ export let onChange = undefined;
7
+
8
+ function handleChange(){
9
+ if (onChange !== undefined) {
10
+ onChange(value)
11
+ }
12
+ }
13
+ </script>
14
+
15
+ <div {...$$restProps} class="date-input-container">
16
+ <label for="date" class="h5">
17
+ {label}
18
+ {#if required}
19
+ <span style="color:var(--red);">*</span>
20
+ {/if}
21
+ </label>
22
+ <input type="date" on:change={handleChange} bind:value {name} {required} class="date-input h4" />
23
+ </div>
24
+
25
+ <style>
26
+ .date-input-container {
27
+ display: flex;
28
+ flex-direction: column;
29
+ gap: var(--pad-l);
30
+ }
31
+
32
+ .date-input {
33
+ appearance: none; /* Enlève le style par défaut des navigateurs */
34
+ border: 1px solid var(--stroke);
35
+ border-radius: var(--radius-xl);
36
+ padding: var(--pad-xl);
37
+ font-size: 16px;
38
+ color: var(--font-2);
39
+ background-color: var(--bg-1);
40
+ outline: none;
41
+ }
42
+ .date-input:has(input:user-invalid){
43
+ border: 1px solid var(--red);
44
+ }
45
+
46
+ .date-input:hover {
47
+ background-color: var(--bg-2);
48
+ }
49
+ </style>
@@ -6,7 +6,7 @@
6
6
 
7
7
  <style>
8
8
  .skeleton {
9
- background: linear-gradient(90deg, var(--bg-d) 25%, var(--bg-t) 50%, var(--bg-d) 75%);
9
+ background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
10
10
  background-size: 200% 100%;
11
11
  animation: skeleton-loading 1.5s infinite;
12
12
  border-radius: 4px; /* Pour arrondir les coins */
@@ -497,10 +497,10 @@
497
497
  >
498
498
  <DropdownMenu.Separator></DropdownMenu.Separator>
499
499
  <h4>
500
- Page <span style="color: var(--font-u);"
500
+ Page <span style="color: var(--font-1);"
501
501
  >{Math.floor($tableData[tableId].offset / $tableData[tableId].limit) + 1}</span
502
502
  >/{Math.ceil($tableData[tableId].totalOfRows / $tableData[tableId].limit)} |
503
- <span style="color: var(--font-u);">{$tableData[tableId].totalOfRows}</span> elements
503
+ <span style="color: var(--font-1);">{$tableData[tableId].totalOfRows}</span> elements
504
504
  </h4>
505
505
  </DropdownMenu.Content>
506
506
  </DropdownMenu.Root>
@@ -641,10 +641,10 @@
641
641
  }
642
642
  .filters.mobile {
643
643
  border-bottom: 1px solid var(--stroke);
644
- background-color: var(--bg-u);
644
+ background-color: var(--bg-1);
645
645
  }
646
646
  .filter-column {
647
- background-color: var(--bg-d);
647
+ background-color: var(--bg-2);
648
648
  padding: 0px 6px;
649
649
  border-radius: var(--radius-s);
650
650
  }
@@ -147,7 +147,7 @@
147
147
  position: relative;
148
148
  }
149
149
  .row:hover {
150
- background-color: var(--bg-d);
150
+ background-color: var(--bg-2);
151
151
  }
152
152
 
153
153
  .selector {
@@ -363,7 +363,7 @@
363
363
  display: flex;
364
364
  border-bottom: 1px solid var(--stroke);
365
365
  user-select: none;
366
- background-color: var(--bg-d);
366
+ background-color: var(--bg-2);
367
367
  position: sticky;
368
368
  top: 0;
369
369
  z-index: 1;
@@ -217,7 +217,7 @@
217
217
  .top-bar{
218
218
  position: sticky;
219
219
  top: 0;
220
- background-color: var(--bg-u);
220
+ background-color: var(--bg-1);
221
221
  z-index: 1;
222
222
  }
223
223
  </style>