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 +1 -1
- package/src/components/hamzus-ui/DropdownMenu/Root.svelte +1 -1
- package/src/components/hamzus-ui/MonthPicker/MonthPicker.svelte +3 -3
- package/src/components/hamzus-ui/OldDatePicker/OldDatePicker.svelte +49 -0
- package/src/components/hamzus-ui/Skeleton/Skeleton.svelte +1 -1
- package/src/components/hamzus-ui/Table/ActionsBar.svelte +4 -4
- package/src/components/hamzus-ui/Table/Content.svelte +1 -1
- package/src/components/hamzus-ui/Table/Header.svelte +1 -1
- package/src/components/hamzus-ui/Table/Root.svelte +1 -1
package/package.json
CHANGED
|
@@ -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')
|
|
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-
|
|
119
|
-
background-color: var(--bg-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
644
|
+
background-color: var(--bg-1);
|
|
645
645
|
}
|
|
646
646
|
.filter-column {
|
|
647
|
-
background-color: var(--bg-
|
|
647
|
+
background-color: var(--bg-2);
|
|
648
648
|
padding: 0px 6px;
|
|
649
649
|
border-radius: var(--radius-s);
|
|
650
650
|
}
|