@okaapp/oka-ui-sv 0.4.4 → 0.4.5

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.
@@ -18,6 +18,7 @@
18
18
  const selectedLabel = $derived(
19
19
  value ? items.find((item) => item.value === value)?.label : placeholder,
20
20
  );
21
+ const hasValue = $derived(!!value);
21
22
  </script>
22
23
 
23
24
  <Select.Root
@@ -32,7 +33,7 @@
32
33
  {...props}
33
34
  >
34
35
  <Select.Trigger
35
- class={`select-trigger focus-override`}
36
+ class={`select-trigger focus-override ${hasValue ? "has-value" : ""}`}
36
37
  aria-label="Chọn ở đây"
37
38
  >
38
39
  <span class="select-trigger-text">{selectedLabel}</span>
@@ -42,6 +42,11 @@
42
42
  font-weight: normal;
43
43
  }
44
44
 
45
+ .select-trigger.has-value {
46
+ color: var(--content-primary);
47
+ font-weight: 500;
48
+ }
49
+
45
50
  .select-trigger:disabled {
46
51
  cursor: not-allowed;
47
52
  background-color: var(--stroke-muted);
@@ -441,7 +441,7 @@ body.fengshui-kim {
441
441
  --accent-primary-surface: #FFF1D7;
442
442
  --accent-secondary: #FFD863;
443
443
  --accent-secondary-content: #463500;
444
- --accent-secondary-surface: #FFF0C2;
444
+ --accent-secondary-surface: #FFE699;
445
445
 
446
446
  --action-primary: #C88704;
447
447
  --action-primary-hover: #FAB01B;
@@ -464,7 +464,7 @@ body.fengshui-kim {
464
464
  --stroke-xtrabold: #FAAC0F;
465
465
 
466
466
  --surface-primary: #FFF;
467
- --surface-secondary: #FFF8EB;
467
+ --surface-secondary: #FFFAF0;
468
468
  --surface-tertiary: #FFF1D7;
469
469
  }
470
470
 
@@ -474,7 +474,7 @@ body.fengshui-moc {
474
474
  --accent-primary-surface: #E0F9DC;
475
475
  --accent-secondary: #99E62E;
476
476
  --accent-secondary-content: #172504;
477
- --accent-secondary-surface: #EDFBDA;
477
+ --accent-secondary-surface: #CAF291;
478
478
 
479
479
  --action-primary: #37BA20;
480
480
  --action-primary-hover: #48DC2E;
@@ -497,7 +497,7 @@ body.fengshui-moc {
497
497
  --stroke-xtrabold: #48DC2E;
498
498
 
499
499
  --surface-primary: #FFF;
500
- --surface-secondary: #F0FCEE;
500
+ --surface-secondary: #F2FFF0;
501
501
  --surface-tertiary: #E0F9DC;
502
502
  }
503
503
 
@@ -507,7 +507,7 @@ body.fengshui-thuy {
507
507
  --accent-primary-surface: #D9EFFC;
508
508
  --accent-secondary: #37E8E8;
509
509
  --accent-secondary-content: #063737;
510
- --accent-secondary-surface: #DAFBFB;
510
+ --accent-secondary-surface: #A4F4F4;
511
511
 
512
512
  --action-primary: #118BD1;
513
513
  --action-primary-hover: #1DA0ED;
@@ -530,7 +530,7 @@ body.fengshui-thuy {
530
530
  --stroke-xtrabold: #2FA8EE;
531
531
 
532
532
  --surface-primary: #FFF;
533
- --surface-secondary: #ECF7FD;
533
+ --surface-secondary: #F0FAFF;
534
534
  --surface-tertiary: #D9EFFC;
535
535
  }
536
536
 
@@ -540,7 +540,7 @@ body.fengshui-hoa {
540
540
  --accent-primary-surface: #F9DEDC;
541
541
  --accent-secondary: #FF6333;
542
542
  --accent-secondary-content: #3D0E00;
543
- --accent-secondary-surface: #FFE0D6;
543
+ --accent-secondary-surface: #FFB199;
544
544
 
545
545
  --action-primary: #DE3A2B;
546
546
  --action-primary-hover: #E04638;
@@ -563,7 +563,7 @@ body.fengshui-hoa {
563
563
  --stroke-xtrabold: #DE3A2B;
564
564
 
565
565
  --surface-primary: #FFF;
566
- --surface-secondary: #FCEFED;
566
+ --surface-secondary: #FFF2F2;
567
567
  --surface-tertiary: #F9DEDC;
568
568
  }
569
569
 
@@ -573,7 +573,7 @@ body.fengshui-tho {
573
573
  --accent-primary-surface: #F2E8E4;
574
574
  --accent-secondary: #A65E2E;
575
575
  --accent-secondary-content: #301B0D;
576
- --accent-secondary-surface: #F6E8DF;
576
+ --accent-secondary-surface: #E5BB9F;
577
577
 
578
578
  --action-primary: #734B39;
579
579
  --action-primary-hover: #96624A;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okaapp/oka-ui-sv",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "OKA UI Svelte components library for the Appta software platform",
5
5
  "license": "MIT",
6
6
  "scripts": {