@okaapp/oka-ui-sv 0.4.2 → 0.4.3

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,5 @@
1
1
  .button {
2
- width: fit-content;
2
+ width: max-content;
3
3
  cursor: pointer;
4
4
  border-radius: 12px;
5
5
  display: inline-flex;
@@ -11,7 +11,6 @@
11
11
  value = $bindable(),
12
12
  items = [] as SelectItem[],
13
13
  placeholder = "Chọn ở đây",
14
- class: className,
15
14
  ...props
16
15
  } = $props();
17
16
 
@@ -4,7 +4,6 @@ declare const SingleSelect: import("svelte").Component<{
4
4
  value?: any;
5
5
  items?: SelectItem[];
6
6
  placeholder?: string;
7
- class: any;
8
7
  } & Record<string, any>, {}, "value">;
9
8
  type SingleSelect = ReturnType<typeof SingleSelect>;
10
9
  export default SingleSelect;
@@ -44,8 +44,8 @@
44
44
 
45
45
  .select-trigger:disabled {
46
46
  cursor: not-allowed;
47
- background-color: var(--surface-tertiary);
48
- border-color: var(--stroke-muted);
47
+ background-color: var(--stroke-muted);
48
+ border-color: var(--stroke-light);
49
49
  }
50
50
 
51
51
  .select-trigger:invalid {
@@ -13,7 +13,8 @@
13
13
  border-radius: 12px;
14
14
  font-size: 14px;
15
15
  font-weight: 500;
16
- max-width: 200px;
16
+ max-width: 320px;
17
+ width: max-content;
17
18
  word-wrap: break-word;
18
19
  /* box-shadow: 0 0 12px rgba(0, 0, 0, 0.12); */
19
20
  animation: tooltip-in 200ms ease-out;
@@ -319,27 +319,27 @@ body.neutral-dark {
319
319
  }
320
320
 
321
321
  body.nord-light {
322
- --accent-primary: #88C0D0;
323
- --accent-primary-content: #2E3440;
324
- --accent-primary-surface: #D8DEE9;
325
- --accent-secondary: #b93552;
326
- --accent-secondary-content: #52212d;
327
- --accent-secondary-surface: #f7e0e8;
328
- --action-primary: #88C0D0;
329
- --action-primary-hover: #8FBCBB;
330
- --action-primary-muted: #C0CAD6;
331
- --action-primary-press: #5E81AC;
322
+ --accent-primary: #1BD4DA;
323
+ --accent-primary-content: #194749;
324
+ --accent-primary-surface: #C9F7F8;
325
+ --accent-secondary: #E62263;
326
+ --accent-secondary-content: #25040F;
327
+ --accent-secondary-surface: #fdcfde;
328
+ --action-primary: #149FA3;
329
+ --action-primary-hover: #16B0B6;
330
+ --action-primary-muted: #CBD3E1;
331
+ --action-primary-press: #128D91;
332
332
  --action-secondary: #d1d9e7;
333
- --action-secondary-hover: #D8DEE9;
333
+ --action-secondary-hover: #e2e6ee;
334
334
  --action-secondary-press: #C0CAD6;
335
335
  --content-inversed: #ECEFF4;
336
- --content-muted: #70798C;
336
+ --content-muted: #b7bcc9;
337
337
  --content-primary: #2E3440;
338
338
  --content-secondary: #3B4252;
339
339
  --content-tertiary: #4C566A;
340
340
  --stroke-bold: #3B4252;
341
- --stroke-light: #D8DEE9;
342
- --stroke-medium: #B0BEC5;
341
+ --stroke-light: #c6ced8;
342
+ --stroke-medium: #a8b6bd;
343
343
  --stroke-muted: #C0CAD6;
344
344
  --stroke-xtrabold: #2E3440;
345
345
  --surface-primary: #ECEFF4;
@@ -349,7 +349,7 @@ body.nord-light {
349
349
 
350
350
  body.nord-dark {
351
351
  --accent-primary: #88C0D0;
352
- --accent-primary-content: #ECEFF4;
352
+ --accent-primary-content: #cfdee2;
353
353
  --accent-primary-surface: #3B4252;
354
354
  --accent-secondary: #b83556;
355
355
  --accent-secondary-content: #f7e0e8;
@@ -363,7 +363,7 @@ body.nord-dark {
363
363
  --action-secondary-press: #2E3440;
364
364
  --content-error: #EBCB8B;
365
365
  --content-inversed: #2E3440;
366
- --content-muted: #70798C;
366
+ --content-muted: #5f6779;
367
367
  --content-primary: #ECEFF4;
368
368
  --content-secondary: #D8DEE9;
369
369
  --content-severe: #EBCB8B;
@@ -436,15 +436,15 @@ body.nord-dark {
436
436
  }
437
437
 
438
438
  body.fengshui-kim {
439
- --accent-primary: #F99D1B;
439
+ --accent-primary: #FAB01B;
440
440
  --accent-primary-content: #442f07;
441
- --accent-primary-surface: #FFF3D6;
442
- --accent-secondary: #FFD463;
441
+ --accent-primary-surface: #FFF1D7;
442
+ --accent-secondary: #FFD863;
443
443
  --accent-secondary-content: #463500;
444
- --accent-secondary-surface: #FFEFBE;
444
+ --accent-secondary-surface: #FFF0C2;
445
445
 
446
- --action-primary: #dfa30a;
447
- --action-primary-hover: #f9b31b;
446
+ --action-primary: #C88704;
447
+ --action-primary-hover: #FAB01B;
448
448
  --action-primary-muted: #FFEFBE;
449
449
  --action-primary-press: #e6a900;
450
450
  --action-secondary: #f1e3c3;
@@ -455,149 +455,149 @@ body.fengshui-kim {
455
455
  --content-muted: #dad1bc;
456
456
  --content-primary: #2C1B00;
457
457
  --content-secondary: #5C4500;
458
- --content-tertiary: #8C7C5C;
458
+ --content-tertiary: #685734;
459
459
 
460
- --stroke-bold: #E68A00;
461
- --stroke-light: #FFEFBE;
462
- --stroke-medium: #FFE6A0;
463
- --stroke-muted: #FFF3D6;
464
- --stroke-xtrabold: #2C1B00;
460
+ --stroke-bold: #FBBA37;
461
+ --stroke-light: #FDDC93;
462
+ --stroke-medium: #FCC85F;
463
+ --stroke-muted: #FEEAC3;
464
+ --stroke-xtrabold: #FAAC0F;
465
465
 
466
466
  --surface-primary: #FFF;
467
- --surface-secondary: #FFF8E9;
468
- --surface-tertiary: #FFF3D6;
467
+ --surface-secondary: #FFF8EB;
468
+ --surface-tertiary: #FFF1D7;
469
469
  }
470
470
 
471
471
  body.fengshui-moc {
472
- --accent-primary: #BDE23A;
473
- --accent-primary-content: #314419;
474
- --accent-primary-surface: #F4FBE4;
475
- --accent-secondary: #31ba1f;
476
- --accent-secondary-content: #133f12;
477
- --accent-secondary-surface: #99e78a;
478
-
479
- --action-primary: #89c014;
480
- --action-primary-hover: #BDE23A;
481
- --action-primary-muted: #e4ebd5;
482
- --action-primary-press: #93C82A;
483
- --action-secondary: #e3eccc;
484
- --action-secondary-hover: #E9F5C2;
485
- --action-secondary-press: #DDF1A5;
486
-
487
- --content-inversed: #F4FBE4;
488
- --content-muted: #5E6B4A;
472
+ --accent-primary: #37BA20;
473
+ --accent-primary-content: #0F3409;
474
+ --accent-primary-surface: #E0F9DC;
475
+ --accent-secondary: #99E62E;
476
+ --accent-secondary-content: #172504;
477
+ --accent-secondary-surface: #EDFBDA;
478
+
479
+ --action-primary: #37BA20;
480
+ --action-primary-hover: #48DC2E;
481
+ --action-primary-muted: #D1F6CB;
482
+ --action-primary-press: #2E9D1B;
483
+ --action-secondary: #E4F9C8;
484
+ --action-secondary-hover: #D3F4A4;
485
+ --action-secondary-press: #CAF291;
486
+
487
+ --content-inversed: #fff;
488
+ --content-muted: #CFD8C1;
489
489
  --content-primary: #1D2C13;
490
490
  --content-secondary: #38472A;
491
491
  --content-tertiary: #6B7A52;
492
492
 
493
- --stroke-bold: #93C82A;
494
- --stroke-light: #E6F4C7;
495
- --stroke-medium: #C9E78A;
496
- --stroke-muted: #DDF1A5;
497
- --stroke-xtrabold: #2C3A1A;
493
+ --stroke-bold: #66E151;
494
+ --stroke-light: #C2F3B9;
495
+ --stroke-medium: #A3ED96;
496
+ --stroke-muted: #D1F6CB;
497
+ --stroke-xtrabold: #48DC2E;
498
498
 
499
499
  --surface-primary: #FFF;
500
- --surface-secondary: #F9FDF1;
501
- --surface-tertiary: #F4FBE4;
500
+ --surface-secondary: #F0FCEE;
501
+ --surface-tertiary: #E0F9DC;
502
502
  }
503
503
 
504
504
  body.fengshui-thuy {
505
- --accent-primary: #0E93D3;
506
- --accent-primary-content: #0c3547;
507
- --accent-primary-surface: #d6e8f1;
508
- --accent-secondary: #37e8e8;
509
- --accent-secondary-content: #0e4444;
510
- --accent-secondary-surface: #d7fbfc;
511
-
512
- --action-primary: #37B2E8;
513
- --action-primary-hover: #0E93D3;
514
- --action-primary-muted: #D7F0FC;
515
- --action-primary-press: #0078B6;
516
- --action-secondary: #e6f1f7;
517
- --action-secondary-hover: #D7F0FC;
518
- --action-secondary-press: #CDEBFA;
519
-
520
- --content-inversed: #F1FAFF;
521
- --content-muted: #ccdae2;
522
- --content-primary: #031F2C;
523
- --content-secondary: #08384F;
524
- --content-tertiary: #547C91;
525
-
526
- --stroke-bold: #0078B6;
527
- --stroke-light: #D7F0FC;
528
- --stroke-medium: #CDEBFA;
529
- --stroke-muted: #E4F6FF;
530
- --stroke-xtrabold: #031F2C;
505
+ --accent-primary: #118BD1;
506
+ --accent-primary-content: #052639;
507
+ --accent-primary-surface: #D9EFFC;
508
+ --accent-secondary: #37E8E8;
509
+ --accent-secondary-content: #063737;
510
+ --accent-secondary-surface: #DAFBFB;
511
+
512
+ --action-primary: #118BD1;
513
+ --action-primary-hover: #1DA0ED;
514
+ --action-primary-muted: #C6E7FA;
515
+ --action-primary-press: #0F7DBD;
516
+ --action-secondary: #C8F9F9;
517
+ --action-secondary-hover: #A4F4F4;
518
+ --action-secondary-press: #B6F6F6;
519
+
520
+ --content-inversed: #FAFEFF;
521
+ --content-muted: #CCDAE2;
522
+ --content-primary: #020D13;
523
+ --content-secondary: #06324B;
524
+ --content-tertiary: #0B5884;
525
+
526
+ --stroke-bold: #55B8F1;
527
+ --stroke-light: #B4DFF9;
528
+ --stroke-medium: #8ED0F6;
529
+ --stroke-muted: #C6E7FA;
530
+ --stroke-xtrabold: #2FA8EE;
531
531
 
532
532
  --surface-primary: #FFF;
533
- --surface-secondary: #ebf4fa;
534
- --surface-tertiary: #d6e8f1;
533
+ --surface-secondary: #ECF7FD;
534
+ --surface-tertiary: #D9EFFC;
535
535
  }
536
536
 
537
537
  body.fengshui-hoa {
538
- --accent-primary: #F5272E;
539
- --accent-primary-content: #3d0f0e;
540
- --accent-primary-surface: #FFF4F2;
541
- --accent-secondary: #FF6B3E;
542
- --accent-secondary-content: #42160f;
543
- --accent-secondary-surface: #FFE3DA;
544
-
545
- --action-primary: #FF6B3E;
546
- --action-primary-hover: #F5272E;
547
- --action-primary-muted: #FFE3DA;
548
- --action-primary-press: #E92020;
538
+ --accent-primary: #E04638;
539
+ --accent-primary-content: #350C08;
540
+ --accent-primary-surface: #F9DEDC;
541
+ --accent-secondary: #FF6333;
542
+ --accent-secondary-content: #3D0E00;
543
+ --accent-secondary-surface: #FFE0D6;
544
+
545
+ --action-primary: #DE3A2B;
546
+ --action-primary-hover: #E04638;
547
+ --action-primary-muted: #e7dad8;
548
+ --action-primary-press: #C21C1E;
549
549
  --action-secondary: #f5d9d4;
550
550
  --action-secondary-hover: #FFE3DA;
551
551
  --action-secondary-press: #FFD2C8;
552
552
 
553
- --content-inversed: #FFF4F2;
554
- --content-muted: #e4cdca;
555
- --content-primary: #280403;
556
- --content-secondary: #512620;
557
- --content-tertiary: #7A4138;
553
+ --content-inversed: #FFF;
554
+ --content-muted: #dfd0ce;
555
+ --content-primary: #180402;
556
+ --content-secondary: #461c18;
557
+ --content-tertiary: #77413d;
558
558
 
559
- --stroke-bold: #E92020;
560
- --stroke-light: #FFD2C8;
561
- --stroke-medium: #FFC1B3;
562
- --stroke-muted: #FFE3DA;
563
- --stroke-xtrabold: #280403;
559
+ --stroke-bold: #E66B60;
560
+ --stroke-light: #F4BDB8;
561
+ --stroke-medium: #EE9D95;
562
+ --stroke-muted: #F7CECA;
563
+ --stroke-xtrabold: #DE3A2B;
564
564
 
565
565
  --surface-primary: #FFF;
566
- --surface-secondary: #FFF7F5;
567
- --surface-tertiary: #FFF4F2;
566
+ --surface-secondary: #FCEFED;
567
+ --surface-tertiary: #F9DEDC;
568
568
  }
569
569
 
570
570
  body.fengshui-tho {
571
- --accent-primary: #683820;
572
- --accent-primary-content: #3d271b;
573
- --accent-primary-surface: #F7EFE8;
574
- --accent-secondary: #A26D4B;
575
- --accent-secondary-content: #3f240f;
576
- --accent-secondary-surface: #F1E3D8;
577
-
578
- --action-primary: #A26D4B;
579
- --action-primary-hover: #855438;
580
- --action-primary-muted: #F1E3D8;
581
- --action-primary-press: #6E3E23;
582
- --action-secondary: #f5e3d4;
583
- --action-secondary-hover: #F1E3D8;
584
- --action-secondary-press: #EBDACF;
585
-
586
- --content-inversed: #FCF7F3;
587
- --content-muted: #ddd7c7;
588
- --content-primary: #3f281b;
589
- --content-secondary: #533B2C;
590
- --content-tertiary: #8C7766;
591
-
592
- --stroke-bold: #855438;
593
- --stroke-light: #EBDACF;
594
- --stroke-medium: #DCC4B4;
595
- --stroke-muted: #F1E3D8;
596
- --stroke-xtrabold: #2E1C12;
571
+ --accent-primary: #96624A;
572
+ --accent-primary-content: #291B14;
573
+ --accent-primary-surface: #F2E8E4;
574
+ --accent-secondary: #A65E2E;
575
+ --accent-secondary-content: #301B0D;
576
+ --accent-secondary-surface: #F6E8DF;
577
+
578
+ --action-primary: #734B39;
579
+ --action-primary-hover: #96624A;
580
+ --action-primary-muted: #E4D1C8;
581
+ --action-primary-press: #603E2F;
582
+ --action-secondary: #F2DDCF;
583
+ --action-secondary-hover: #E9C6AF;
584
+ --action-secondary-press: #F2DDCF;
585
+
586
+ --content-inversed: #FFF;
587
+ --content-muted: #DDC6BB;
588
+ --content-primary: #0E0907;
589
+ --content-secondary: #382b24;
590
+ --content-tertiary: #68564e;
591
+
592
+ --stroke-bold: #BC8C76;
593
+ --stroke-light: #DDC6BB;
594
+ --stroke-medium: #D0AF9F;
595
+ --stroke-muted: #E4D1C8;
596
+ --stroke-xtrabold: #AE755B;
597
597
 
598
598
  --surface-primary: #FFF;
599
- --surface-secondary: #FCF7F3;
600
- --surface-tertiary: #F7EFE8;
599
+ --surface-secondary: #F8F4F1;
600
+ --surface-tertiary: #F2E8E4;
601
601
  }
602
602
 
603
603
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okaapp/oka-ui-sv",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "OKA UI Svelte components library for the Appta software platform",
5
5
  "license": "MIT",
6
6
  "scripts": {