xmlui 0.11.3 → 0.11.4

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.
Files changed (55) hide show
  1. package/dist/lib/{index-DSUDwtWN.js → index-Cq0EMm3L.js} +329 -315
  2. package/dist/lib/index.css +1 -1
  3. package/dist/lib/{initMock-DdH1iCH-.js → initMock-DCigV4Zh.js} +1 -1
  4. package/dist/lib/language-server-web-worker.js +1 -1
  5. package/dist/lib/language-server.js +1 -1
  6. package/dist/lib/{metadata-utils-D27cn-XB.js → metadata-utils-BiolWMg9.js} +5 -6
  7. package/dist/lib/{server-common-hq0poDwA.js → server-common-DyCHOk-z.js} +2674 -2642
  8. package/dist/lib/testing.js +1 -1
  9. package/dist/lib/{transform-Tooy42EB.js → transform-DHf9tQF7.js} +15 -1
  10. package/dist/lib/vite-xmlui-plugin/index.js +19 -2
  11. package/dist/lib/{xmlui-parser-BZZ430Wm.js → xmlui-parser-CHN3mADy.js} +1 -1
  12. package/dist/lib/xmlui-parser.d.ts +2 -0
  13. package/dist/lib/xmlui-parser.js +2 -2
  14. package/dist/lib/{xmlui-serializer-D9D2mQ8m.js → xmlui-serializer-CYNSHAlP.js} +1 -1
  15. package/dist/lib/xmlui.d.ts +2 -1
  16. package/dist/lib/xmlui.js +3 -3
  17. package/dist/metadata/{collectedComponentMetadata-C8Lr9TFe.js → collectedComponentMetadata-CLaDZhmc.js} +340 -311
  18. package/dist/metadata/{initMock-CWwgOjW_.js → initMock-Buqah4JF.js} +1 -1
  19. package/dist/metadata/style.css +1 -1
  20. package/dist/metadata/xmlui-metadata.js +1 -1
  21. package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
  22. package/dist/scripts/package.json +1 -1
  23. package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +113 -0
  24. package/dist/scripts/src/components/Charts/LabelList/LabelList.js +2 -2
  25. package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +2 -2
  26. package/dist/scripts/src/components/Checkbox/Checkbox.js +6 -6
  27. package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +30 -99
  28. package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +57 -14
  29. package/dist/scripts/src/components/DateInput/DateInput.spec.js +88 -17
  30. package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +9 -9
  31. package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +111 -86
  32. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +6 -6
  33. package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +30 -28
  34. package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +1 -1
  35. package/dist/scripts/src/components/Select/Select.js +1 -1
  36. package/dist/scripts/src/components/Select/Select.spec.js +92 -0
  37. package/dist/scripts/src/components/Slider/Slider.js +5 -5
  38. package/dist/scripts/src/components/Slider/Slider.spec.js +63 -29
  39. package/dist/scripts/src/components/Splitter/Splitter.js +51 -2
  40. package/dist/scripts/src/components/Splitter/Splitter.spec.js +225 -0
  41. package/dist/scripts/src/components/Splitter/SplitterNative.js +14 -12
  42. package/dist/scripts/src/components/Switch/Switch.js +6 -6
  43. package/dist/scripts/src/components/Switch/Switch.spec.js +44 -46
  44. package/dist/scripts/src/components/TextArea/TextArea.spec.js +94 -2
  45. package/dist/scripts/src/components/TextBox/TextBox.js +5 -3
  46. package/dist/scripts/src/components/TextBox/TextBox.spec.js +92 -59
  47. package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +101 -25
  48. package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +5 -4
  49. package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +23 -31
  50. package/dist/scripts/src/language-server/services/format.js +223 -84
  51. package/dist/scripts/src/parsers/xmlui-parser/parser.js +3 -2
  52. package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +16 -0
  53. package/dist/standalone/xmlui-standalone.es.d.ts +4 -2
  54. package/dist/standalone/xmlui-standalone.umd.js +36 -36
  55. package/package.json +1 -1
@@ -517,25 +517,25 @@ fixtures_1.test.describe("Input Adornments", () => {
517
517
  fixtures_1.test.describe("Theme Variables", () => {
518
518
  (0, fixtures_1.test)("backgroundColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
519
519
  yield initTestBed(`<NumberBox testId="input" />`, {
520
- testThemeVars: { "backgroundColor-NumberBox-default": "rgb(255, 0, 0)" },
520
+ testThemeVars: { "backgroundColor-NumberBox--default": "rgb(255, 0, 0)" },
521
521
  });
522
522
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("background-color", "rgb(255, 0, 0)");
523
523
  }));
524
524
  (0, fixtures_1.test)("borderColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
525
525
  yield initTestBed(`<NumberBox testId="input" />`, {
526
- testThemeVars: { "borderColor-NumberBox-default": "rgb(0, 255, 0)" },
526
+ testThemeVars: { "borderColor-NumberBox--default": "rgb(0, 255, 0)" },
527
527
  });
528
528
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(0, 255, 0)");
529
529
  }));
530
530
  (0, fixtures_1.test)("textColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
531
531
  yield initTestBed(`<NumberBox testId="input" />`, {
532
- testThemeVars: { "textColor-NumberBox-default": "rgb(0, 0, 255)" },
532
+ testThemeVars: { "textColor-NumberBox--default": "rgb(0, 0, 255)" },
533
533
  });
534
534
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("color", "rgb(0, 0, 255)");
535
535
  }));
536
536
  (0, fixtures_1.test)("focus borderColor applies on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
537
537
  yield initTestBed(`<NumberBox testId="input" />`, {
538
- testThemeVars: { "borderColor-NumberBox-default--focus": "rgb(255, 255, 0)" },
538
+ testThemeVars: { "borderColor-NumberBox--default--focus": "rgb(255, 255, 0)" },
539
539
  });
540
540
  yield page.getByRole("textbox").focus();
541
541
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(255, 255, 0)");
@@ -548,7 +548,7 @@ fixtures_1.test.describe("Theme Variables", () => {
548
548
  }));
549
549
  (0, fixtures_1.test)("borderRadius applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
550
550
  yield initTestBed(`<NumberBox testId="input" />`, {
551
- testThemeVars: { "borderRadius-NumberBox-default": "10px" },
551
+ testThemeVars: { "borderRadius-NumberBox--default": "10px" },
552
552
  });
553
553
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-radius", "10px");
554
554
  }));
@@ -561,59 +561,59 @@ fixtures_1.test.describe("Theme Variables", () => {
561
561
  // Additional variant mixin theme variable tests
562
562
  (0, fixtures_1.test)("borderWidth applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
563
563
  yield initTestBed(`<NumberBox testId="input" />`, {
564
- testThemeVars: { "borderWidth-NumberBox-default": "3px" },
564
+ testThemeVars: { "borderWidth-NumberBox--default": "3px" },
565
565
  });
566
566
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-width", "3px");
567
567
  }));
568
568
  (0, fixtures_1.test)("borderStyle applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
569
569
  yield initTestBed(`<NumberBox testId="input" />`, {
570
- testThemeVars: { "borderStyle-NumberBox-default": "dashed" },
570
+ testThemeVars: { "borderStyle-NumberBox--default": "dashed" },
571
571
  });
572
572
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-style", "dashed");
573
573
  }));
574
574
  (0, fixtures_1.test)("fontSize applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
575
575
  yield initTestBed(`<NumberBox testId="input" />`, {
576
- testThemeVars: { "fontSize-NumberBox-default": "18px" },
576
+ testThemeVars: { "fontSize-NumberBox--default": "18px" },
577
577
  });
578
578
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("font-size", "18px");
579
579
  }));
580
580
  (0, fixtures_1.test)("boxShadow applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
581
581
  yield initTestBed(`<NumberBox testId="input" />`, {
582
- testThemeVars: { "boxShadow-NumberBox-default": "rgba(0, 0, 0, 0.2) 0px 2px 4px 0px" },
582
+ testThemeVars: { "boxShadow-NumberBox--default": "rgba(0, 0, 0, 0.2) 0px 2px 4px 0px" },
583
583
  });
584
584
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("box-shadow", "rgba(0, 0, 0, 0.2) 0px 2px 4px 0px");
585
585
  }));
586
586
  (0, fixtures_1.test)("hover borderColor applies on hover", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
587
587
  yield initTestBed(`<NumberBox testId="input" />`, {
588
- testThemeVars: { "borderColor-NumberBox-default--hover": "rgb(255, 100, 100)" },
588
+ testThemeVars: { "borderColor-NumberBox--default--hover": "rgb(255, 100, 100)" },
589
589
  });
590
590
  yield page.getByTestId("input").hover();
591
591
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(255, 100, 100)");
592
592
  }));
593
593
  (0, fixtures_1.test)("hover backgroundColor applies on hover", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
594
594
  yield initTestBed(`<NumberBox testId="input" />`, {
595
- testThemeVars: { "backgroundColor-NumberBox-default--hover": "rgb(240, 240, 240)" },
595
+ testThemeVars: { "backgroundColor-NumberBox--default--hover": "rgb(240, 240, 240)" },
596
596
  });
597
597
  yield page.getByTestId("input").hover();
598
598
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("background-color", "rgb(240, 240, 240)");
599
599
  }));
600
600
  (0, fixtures_1.test)("hover boxShadow applies on hover", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
601
601
  yield initTestBed(`<NumberBox testId="input" />`, {
602
- testThemeVars: { "boxShadow-NumberBox-default--hover": "rgba(0, 0, 0, 0.3) 0px 4px 8px 0px" },
602
+ testThemeVars: { "boxShadow-NumberBox--default--hover": "rgba(0, 0, 0, 0.3) 0px 4px 8px 0px" },
603
603
  });
604
604
  yield page.getByTestId("input").hover();
605
605
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("box-shadow", "rgba(0, 0, 0, 0.3) 0px 4px 8px 0px");
606
606
  }));
607
607
  (0, fixtures_1.test)("hover textColor applies on hover", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
608
608
  yield initTestBed(`<NumberBox testId="input" />`, {
609
- testThemeVars: { "textColor-NumberBox-default--hover": "rgb(50, 50, 50)" },
609
+ testThemeVars: { "textColor-NumberBox--default--hover": "rgb(50, 50, 50)" },
610
610
  });
611
611
  yield page.getByTestId("input").hover();
612
612
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("color", "rgb(50, 50, 50)");
613
613
  }));
614
614
  (0, fixtures_1.test)("focus backgroundColor applies on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
615
615
  yield initTestBed(`<NumberBox testId="input" />`, {
616
- testThemeVars: { "backgroundColor-NumberBox-default--focus": "rgb(250, 250, 250)" },
616
+ testThemeVars: { "backgroundColor-NumberBox--default--focus": "rgb(250, 250, 250)" },
617
617
  });
618
618
  yield page.getByRole("textbox").focus();
619
619
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("background-color", "rgb(250, 250, 250)");
@@ -621,7 +621,7 @@ fixtures_1.test.describe("Theme Variables", () => {
621
621
  (0, fixtures_1.test)("focus boxShadow applies on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
622
622
  yield initTestBed(`<NumberBox testId="input" />`, {
623
623
  testThemeVars: {
624
- "boxShadow-NumberBox-default--focus": "rgba(0, 100, 255, 0.4) 0px 0px 0px 3px",
624
+ "boxShadow-NumberBox--default--focus": "rgba(0, 100, 255, 0.4) 0px 0px 0px 3px",
625
625
  },
626
626
  });
627
627
  yield page.getByRole("textbox").focus();
@@ -629,7 +629,7 @@ fixtures_1.test.describe("Theme Variables", () => {
629
629
  }));
630
630
  (0, fixtures_1.test)("focus textColor applies on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
631
631
  yield initTestBed(`<NumberBox testId="input" />`, {
632
- testThemeVars: { "textColor-NumberBox-default--focus": "rgb(20, 20, 20)" },
632
+ testThemeVars: { "textColor-NumberBox--default--focus": "rgb(20, 20, 20)" },
633
633
  });
634
634
  yield page.getByRole("textbox").focus();
635
635
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("color", "rgb(20, 20, 20)");
@@ -637,10 +637,10 @@ fixtures_1.test.describe("Theme Variables", () => {
637
637
  (0, fixtures_1.test)("focus outline properties apply on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
638
638
  yield initTestBed(`<NumberBox testId="input" />`, {
639
639
  testThemeVars: {
640
- "outlineWidth-NumberBox-default--focus": "2px",
641
- "outlineColor-NumberBox-default--focus": "rgb(0, 123, 255)",
642
- "outlineStyle-NumberBox-default--focus": "solid",
643
- "outlineOffset-NumberBox-default--focus": "2px",
640
+ "outlineWidth-NumberBox--default--focus": "2px",
641
+ "outlineColor-NumberBox--default--focus": "rgb(0, 123, 255)",
642
+ "outlineStyle-NumberBox--default--focus": "solid",
643
+ "outlineOffset-NumberBox--default--focus": "2px",
644
644
  },
645
645
  });
646
646
  yield page.getByRole("textbox").focus();
@@ -651,7 +651,7 @@ fixtures_1.test.describe("Theme Variables", () => {
651
651
  }));
652
652
  (0, fixtures_1.test)("placeholder textColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
653
653
  yield initTestBed(`<NumberBox testId="input" placeholder="Enter number" />`, {
654
- testThemeVars: { "textColor-placeholder-NumberBox-default": "rgb(150, 150, 150)" },
654
+ testThemeVars: { "textColor-placeholder-NumberBox--default": "rgb(150, 150, 150)" },
655
655
  });
656
656
  const input = page.getByRole("textbox");
657
657
  const placeholderColor = yield input.evaluate((el) => {
@@ -661,7 +661,7 @@ fixtures_1.test.describe("Theme Variables", () => {
661
661
  }));
662
662
  (0, fixtures_1.test)("placeholder fontSize applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
663
663
  yield initTestBed(`<NumberBox testId="input" placeholder="Enter number" />`, {
664
- testThemeVars: { "fontSize-placeholder-NumberBox-default": "14px" },
664
+ testThemeVars: { "fontSize-placeholder-NumberBox--default": "14px" },
665
665
  });
666
666
  const input = page.getByRole("textbox");
667
667
  const placeholderFontSize = yield input.evaluate((el) => {
@@ -687,82 +687,107 @@ fixtures_1.test.describe("Theme Variables", () => {
687
687
  });
688
688
  yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(200, 200, 200)");
689
689
  }));
690
- // Error variant theme variables
691
- (0, fixtures_1.test)("error variant borderRadius applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
692
- yield initTestBed(`<NumberBox testId="input" validationStatus="error" />`, {
693
- testThemeVars: { "borderRadius-NumberBox-error": "8px" },
694
- });
695
- yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-radius", "8px");
696
- }));
697
- (0, fixtures_1.test)("error variant fontSize applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
698
- yield initTestBed(`<NumberBox testId="input" validationStatus="error" />`, {
699
- testThemeVars: { "fontSize-NumberBox-error": "16px" },
700
- });
701
- yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("font-size", "16px");
702
- }));
703
- (0, fixtures_1.test)("error variant backgroundColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
704
- yield initTestBed(`<NumberBox testId="input" validationStatus="error" />`, {
705
- testThemeVars: { "backgroundColor-NumberBox-error": "rgb(255, 240, 240)" },
706
- });
707
- yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("background-color", "rgb(255, 240, 240)");
708
- }));
709
- (0, fixtures_1.test)("warning variant textColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
710
- yield initTestBed(`<NumberBox testId="input" validationStatus="warning" />`, {
711
- testThemeVars: { "textColor-NumberBox-warning": "rgb(133, 100, 4)" },
712
- });
713
- yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("color", "rgb(133, 100, 4)");
714
- }));
715
- (0, fixtures_1.test)("success variant backgroundColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
716
- yield initTestBed(`<NumberBox testId="input" validationStatus="valid" />`, {
717
- testThemeVars: { "backgroundColor-NumberBox-success": "rgb(240, 255, 240)" },
718
- });
719
- yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("background-color", "rgb(240, 255, 240)");
720
- }));
721
690
  (0, fixtures_1.test)("input text adornment colors apply correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
722
691
  yield initTestBed(`<NumberBox testId="input" startText="$" endText="€" />`, {
723
- testThemeVars: { "color-adornment-NumberBox-default": "rgb(0, 123, 255)" },
692
+ testThemeVars: { "color-adornment-NumberBox--default": "rgb(0, 123, 255)" },
724
693
  });
725
694
  yield (0, fixtures_1.expect)(page.getByText("$")).toHaveCSS("color", "rgb(0, 123, 255)");
726
695
  yield (0, fixtures_1.expect)(page.getByText("€")).toHaveCSS("color", "rgb(0, 123, 255)");
727
696
  }));
728
697
  (0, fixtures_1.test)("input icon adornment colors apply correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
729
698
  yield initTestBed(`<NumberBox testId="input" startIcon="search" endIcon="search" />`, {
730
- testThemeVars: { "color-adornment-NumberBox-default": "rgb(0, 123, 255)" },
699
+ testThemeVars: { "color-adornment-NumberBox--default": "rgb(0, 123, 255)" },
731
700
  });
732
701
  yield (0, fixtures_1.expect)(page.getByRole("img").first()).toHaveCSS("color", "rgb(0, 123, 255)");
733
702
  yield (0, fixtures_1.expect)(page.getByRole("img").nth(1)).toHaveCSS("color", "rgb(0, 123, 255)");
734
703
  }));
735
- });
736
- // =============================================================================
737
- // VALIDATION STATUS TESTS
738
- // =============================================================================
739
- fixtures_1.test.describe("Validation", () => {
740
- (0, fixtures_1.test)("error borderColor applies with error validation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
741
- yield initTestBed(`<NumberBox testId="input" validationStatus="error" />`, {
742
- testThemeVars: { "borderColor-NumberBox-error": "rgb(255, 0, 0)" },
743
- });
744
- yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(255, 0, 0)");
745
- }));
746
- (0, fixtures_1.test)("warning borderColor applies with warning validation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
747
- yield initTestBed(`<NumberBox testId="input" validationStatus="warning" />`, {
748
- testThemeVars: { "borderColor-NumberBox-warning": "rgb(255, 165, 0)" },
749
- });
750
- yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(255, 165, 0)");
751
- }));
752
- (0, fixtures_1.test)("success borderColor applies with valid validation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
753
- yield initTestBed(`<NumberBox testId="input" validationStatus="valid" />`, {
754
- testThemeVars: { "borderColor-NumberBox-success": "rgb(0, 128, 0)" },
755
- });
756
- yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(0, 128, 0)");
757
- }));
758
- (0, fixtures_1.test)("handles invalid validationStatus gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
759
- yield initTestBed(`<NumberBox testId="input" validationStatus="invalid-status" />`, {
760
- testThemeVars: {
761
- "borderColor-NumberBox": "rgb(0, 0, 0)",
762
- },
763
- });
764
- yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(0, 0, 0)");
765
- }));
704
+ [
705
+ { value: "--default", prop: "" },
706
+ { value: "--warning", prop: 'validationStatus="warning"' },
707
+ { value: "--error", prop: 'validationStatus="error"' },
708
+ { value: "--success", prop: 'validationStatus="valid"' },
709
+ ].forEach((variant) => {
710
+ (0, fixtures_1.test)(`applies correct borderRadius ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
711
+ yield initTestBed(`<NumberBox testId="test" ${variant.prop} />`, {
712
+ testThemeVars: { [`borderRadius-NumberBox${variant.value}`]: "12px" },
713
+ });
714
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-radius", "12px");
715
+ }));
716
+ (0, fixtures_1.test)(`applies correct borderColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
717
+ yield initTestBed(`<NumberBox testId="test" ${variant.prop} />`, {
718
+ testThemeVars: { [`borderColor-NumberBox${variant.value}`]: "rgb(255, 0, 0)" },
719
+ });
720
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-color", "rgb(255, 0, 0)");
721
+ }));
722
+ (0, fixtures_1.test)(`applies correct borderWidth ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
723
+ yield initTestBed(`<NumberBox testId="test" ${variant.prop} />`, {
724
+ testThemeVars: { [`borderWidth-NumberBox${variant.value}`]: "1px" },
725
+ });
726
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-width", "1px");
727
+ }));
728
+ (0, fixtures_1.test)(`applies correct borderStyle ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
729
+ yield initTestBed(`<NumberBox testId="test" ${variant.prop} />`, {
730
+ testThemeVars: { [`borderStyle-NumberBox${variant.value}`]: "dashed" },
731
+ });
732
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-style", "dashed");
733
+ }));
734
+ (0, fixtures_1.test)(`applies correct fontSize ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
735
+ yield initTestBed(`<NumberBox testId="test" ${variant.prop} />`, {
736
+ testThemeVars: { [`fontSize-NumberBox${variant.value}`]: "14px" },
737
+ });
738
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("font-size", "14px");
739
+ }));
740
+ (0, fixtures_1.test)(`applies correct backgroundColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
741
+ yield initTestBed(`<NumberBox testId="test" ${variant.prop} />`, {
742
+ testThemeVars: { [`backgroundColor-NumberBox${variant.value}`]: "rgb(240, 240, 240)" },
743
+ });
744
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("background-color", "rgb(240, 240, 240)");
745
+ }));
746
+ (0, fixtures_1.test)(`applies correct boxShadow ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
747
+ yield initTestBed(`<NumberBox testId="test" ${variant.prop} />`, {
748
+ testThemeVars: {
749
+ [`boxShadow-NumberBox${variant.value}`]: "0 2px 8px rgba(0, 0, 0, 0.1)",
750
+ },
751
+ });
752
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("box-shadow", "rgba(0, 0, 0, 0.1) 0px 2px 8px 0px");
753
+ }));
754
+ (0, fixtures_1.test)(`applies correct textColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
755
+ yield initTestBed(`<NumberBox testId="test" ${variant.prop} />`, {
756
+ testThemeVars: { [`textColor-NumberBox${variant.value}`]: "rgb(0, 0, 0)" },
757
+ });
758
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("color", "rgb(0, 0, 0)");
759
+ }));
760
+ (0, fixtures_1.test)(`applies correct borderColor on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
761
+ yield initTestBed(`<NumberBox testId="test" ${variant.prop} />`, {
762
+ testThemeVars: { [`borderColor-NumberBox${variant.value}--hover`]: "rgb(0, 0, 0)" },
763
+ });
764
+ yield page.getByTestId("test").hover();
765
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-color", "rgb(0, 0, 0)");
766
+ }));
767
+ (0, fixtures_1.test)(`applies correct backgroundColor on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
768
+ yield initTestBed(`<NumberBox testId="test" ${variant.prop} />`, {
769
+ testThemeVars: { [`backgroundColor-NumberBox${variant.value}--hover`]: "rgb(0, 0, 0)" },
770
+ });
771
+ yield page.getByTestId("test").hover();
772
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("background-color", "rgb(0, 0, 0)");
773
+ }));
774
+ (0, fixtures_1.test)(`applies correct boxShadow on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
775
+ yield initTestBed(`<NumberBox testId="test" ${variant.prop} />`, {
776
+ testThemeVars: {
777
+ [`boxShadow-NumberBox${variant.value}--hover`]: "0 2px 8px rgba(0, 0, 0, 0.1)",
778
+ },
779
+ });
780
+ yield page.getByTestId("test").hover();
781
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("box-shadow", "rgba(0, 0, 0, 0.1) 0px 2px 8px 0px");
782
+ }));
783
+ (0, fixtures_1.test)(`applies correct textColor on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
784
+ yield initTestBed(`<NumberBox testId="test" ${variant.prop} />`, {
785
+ testThemeVars: { [`textColor-NumberBox${variant.value}--hover`]: "rgb(0, 0, 0)" },
786
+ });
787
+ yield page.getByTestId("test").hover();
788
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("color", "rgb(0, 0, 0)");
789
+ }));
790
+ });
766
791
  });
767
792
  // =============================================================================
768
793
  // OTHER EDGE CASE TESTS
@@ -42,13 +42,13 @@ exports.RadioGroupMd = (0, metadata_helpers_1.createMetadata)({
42
42
  [`gap-${RGOption}`]: "$space-1_5",
43
43
  [`borderWidth-${RGOption}`]: "1px",
44
44
  [`borderWidth-${RGOption}-validation`]: `2px`,
45
- [`borderColor-${RGOption}-default`]: "$color-surface-500",
45
+ [`borderColor-${RGOption}--default`]: "$color-surface-500",
46
46
  [`borderColor-checked-${RGOption}`]: "$color-primary-500",
47
- [`borderColor-${RGOption}-default--hover`]: "$color-surface-700",
48
- [`borderColor-${RGOption}-default--active`]: "$color-primary-500",
49
- [`borderColor-${RGOption}-error`]: `$borderColor-Input-default--error`,
50
- [`borderColor-${RGOption}-warning`]: `$borderColor-Input-default--warning`,
51
- [`borderColor-${RGOption}-success`]: `$borderColor-Input-default--success`,
47
+ [`borderColor-${RGOption}--default--hover`]: "$color-surface-700",
48
+ [`borderColor-${RGOption}--default--active`]: "$color-primary-500",
49
+ [`borderColor-${RGOption}--error`]: `$borderColor-Input--error`,
50
+ [`borderColor-${RGOption}--warning`]: `$borderColor-Input--warning`,
51
+ [`borderColor-${RGOption}--success`]: `$borderColor-Input--success`,
52
52
  [`backgroundColor-${RGOption}--disabled`]: "$backgroundColor--disabled",
53
53
  [`backgroundColor-checked-${RGOption}`]: "$color-primary-500",
54
54
  [`backgroundColor-checked-${RGOption}--disabled`]: `$textColor--disabled`,
@@ -314,39 +314,39 @@ fixtures_1.test.describe("Basic Functionality", () => {
314
314
  yield fixtures_1.expect.poll(testStateDriver.testState).toBe("blurred");
315
315
  }));
316
316
  });
317
- (0, fixtures_1.test)("validationStatus 'none' is applied correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
317
+ (0, fixtures_1.test)("correct borderColor applied on validationStatus 'default'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
318
318
  yield initTestBed(`
319
- <RadioGroup validationStatus="none" initialValue="1">
319
+ <RadioGroup initialValue="1">
320
320
  <Option value="1">Option 1</Option>
321
321
  <Option value="2">Option 2</Option>
322
- </RadioGroup>
323
-
324
- `, {
322
+ </RadioGroup>`, {
325
323
  testThemeVars: {
324
+ "borderColor-RadioGroupOption--default": "rgb(80, 80, 80)",
326
325
  "borderColor-checked-RadioGroupOption": "rgb(80, 80, 80)",
327
326
  },
328
327
  });
329
328
  const options = page.getByRole("radiogroup").getByRole("radio");
330
- yield (0, fixtures_1.expect)(options.nth(0)).toHaveCSS("border-top-color", "rgb(80, 80, 80)");
331
- yield (0, fixtures_1.expect)(options.nth(1)).toHaveCSS("border-top-color", "rgb(80, 80, 80)");
329
+ yield (0, fixtures_1.expect)(options.nth(0)).toHaveCSS("border-color", "rgb(80, 80, 80)");
330
+ yield (0, fixtures_1.expect)(options.nth(1)).toHaveCSS("border-color", "rgb(80, 80, 80)");
332
331
  }));
333
- (0, fixtures_1.test)("validationStatus 'error' is applied correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
332
+ (0, fixtures_1.test)("correct borderColor applied on validationStatus 'error'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
334
333
  yield initTestBed(`
335
- <Theme
336
- borderColor-RadioGroupOption-error="rgb(255, 32, 0)"
337
- borderColor-checked-RadioGroupOption="rgb(80, 80, 80)"
338
- >
339
- <RadioGroup validationStatus="error" initialValue="1">
340
- <Option value="1">Option 1</Option>
341
- <Option value="2">Option 2</Option>
342
- </RadioGroup>
343
- </Theme>
344
- `);
334
+ <RadioGroup validationStatus="error" initialValue="1">
335
+ <Option value="1">Option 1</Option>
336
+ <Option value="2">Option 2</Option>
337
+ </RadioGroup>
338
+ `, {
339
+ testThemeVars: {
340
+ "borderColor-RadioGroupOption--error": "rgb(255, 32, 0)",
341
+ "borderColor-RadioGroupOption--default": "rgb(80, 80, 80)",
342
+ "borderColor-checked-RadioGroupOption": "rgb(80, 80, 80)",
343
+ },
344
+ });
345
345
  const options = page.getByRole("radiogroup").getByRole("radio");
346
- yield (0, fixtures_1.expect)(options.nth(0)).toHaveCSS("border-top-color", "rgb(255, 32, 0)");
347
- yield (0, fixtures_1.expect)(options.nth(1)).toHaveCSS("border-top-color", "rgb(80, 80, 80)");
346
+ yield (0, fixtures_1.expect)(options.nth(0)).toHaveCSS("border-color", "rgb(255, 32, 0)");
347
+ yield (0, fixtures_1.expect)(options.nth(1)).toHaveCSS("border-color", "rgb(80, 80, 80)");
348
348
  }));
349
- (0, fixtures_1.test)("validationStatus 'warning' is applied correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
349
+ (0, fixtures_1.test)("correct borderColor applied on validationStatus 'warning'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
350
350
  yield initTestBed(`
351
351
  <RadioGroup validationStatus="warning" initialValue="1">
352
352
  <Option value="1">Option 1</Option>
@@ -354,15 +354,16 @@ fixtures_1.test.describe("Basic Functionality", () => {
354
354
  </RadioGroup>
355
355
  `, {
356
356
  testThemeVars: {
357
- "borderColor-RadioGroupOption-warning": "rgb(255, 180, 0)",
357
+ "borderColor-RadioGroupOption--warning": "rgb(255, 180, 0)",
358
+ "borderColor-RadioGroupOption--default": "rgb(80, 80, 80)",
358
359
  "borderColor-checked-RadioGroupOption": "rgb(80, 80, 80)",
359
360
  },
360
361
  });
361
362
  const options = page.getByRole("radiogroup").getByRole("radio");
362
- yield (0, fixtures_1.expect)(options.nth(0)).toHaveCSS("border-top-color", "rgb(255, 180, 0)");
363
- yield (0, fixtures_1.expect)(options.nth(1)).toHaveCSS("border-top-color", "rgb(80, 80, 80)");
363
+ yield (0, fixtures_1.expect)(options.nth(0)).toHaveCSS("border-color", "rgb(255, 180, 0)");
364
+ yield (0, fixtures_1.expect)(options.nth(1)).toHaveCSS("border-color", "rgb(80, 80, 80)");
364
365
  }));
365
- (0, fixtures_1.test)("validationStatus 'valid' is applied correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
366
+ (0, fixtures_1.test)("correct borderColor applied on validationStatus 'valid'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
366
367
  yield initTestBed(`
367
368
  <RadioGroup validationStatus="valid" initialValue="1">
368
369
  <Option value="1">Option 1</Option>
@@ -370,13 +371,14 @@ fixtures_1.test.describe("Basic Functionality", () => {
370
371
  </RadioGroup>
371
372
  `, {
372
373
  testThemeVars: {
373
- "borderColor-RadioGroupOption-success": "rgb(0, 180, 0)",
374
+ "borderColor-RadioGroupOption--success": "rgb(0, 180, 0)",
375
+ "borderColor-RadioGroupOption--default": "rgb(80, 80, 80)",
374
376
  "borderColor-checked-RadioGroupOption": "rgb(80, 80, 80)",
375
377
  },
376
378
  });
377
379
  const options = page.getByRole("radiogroup").getByRole("radio");
378
- yield (0, fixtures_1.expect)(options.nth(1)).toHaveCSS("border-top-color", "rgb(80, 80, 80)");
379
- yield (0, fixtures_1.expect)(options.nth(0)).toHaveCSS("border-top-color", "rgb(0, 180, 0)");
380
+ yield (0, fixtures_1.expect)(options.nth(1)).toHaveCSS("border-color", "rgb(80, 80, 80)");
381
+ yield (0, fixtures_1.expect)(options.nth(0)).toHaveCSS("border-color", "rgb(0, 180, 0)");
380
382
  }));
381
383
  (0, fixtures_1.test)("label is rendered if provided", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
382
384
  yield initTestBed(`
@@ -57,6 +57,6 @@ const UnwrappedRadioItem = ({ id, checked = exports.defaultProps.checked, value
57
57
  const onInputChange = (0, react_1.useCallback)((_) => {
58
58
  onDidChange(value);
59
59
  }, [onDidChange, value]);
60
- return ((0, jsx_runtime_1.jsx)(InnerRadioGroup.Item, { className: (0, classnames_1.default)(RadioGroup_module_scss_1.default.radioOption, statusStyles), id: id, value: (0, OptionNative_1.convertOptionValue)(value), checked: checked, disabled: disabled, onClick: onInputChange, children: (0, jsx_runtime_1.jsx)(InnerRadioGroup.Indicator, { className: (0, classnames_1.default)(RadioGroup_module_scss_1.default.indicator, statusStyles) }) }));
60
+ return ((0, jsx_runtime_1.jsx)(InnerRadioGroup.Item, { className: (0, classnames_1.default)(RadioGroup_module_scss_1.default.radioOption, statusStyles, { [RadioGroup_module_scss_1.default.checked]: checked }), id: id, value: (0, OptionNative_1.convertOptionValue)(value), checked: checked, disabled: disabled, onClick: onInputChange, children: (0, jsx_runtime_1.jsx)(InnerRadioGroup.Indicator, { className: (0, classnames_1.default)(RadioGroup_module_scss_1.default.indicator, statusStyles) }) }));
61
61
  };
62
62
  exports.UnwrappedRadioItem = UnwrappedRadioItem;
@@ -114,7 +114,7 @@ exports.selectComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP,
114
114
  const multiSelect = extractValue.asOptionalBoolean(node.props.multiSelect);
115
115
  const searchable = extractValue.asOptionalBoolean(node.props.searchable);
116
116
  const isControlled = node.props.value !== undefined;
117
- return ((0, jsx_runtime_1.jsx)(SelectNative_1.Select, { multiSelect: multiSelect, className: className, inProgress: extractValue.asOptionalBoolean(node.props.inProgress), inProgressNotificationMessage: extractValue.asOptionalString(node.props.inProgressNotificationMessage), readOnly: extractValue.asOptionalBoolean(node.props.readOnly), updateState: isControlled ? undefined : updateState, searchable: searchable, initialValue: extractValue(node.props.initialValue), value: state === null || state === void 0 ? void 0 : state.value, autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus), enabled: extractValue.asOptionalBoolean(node.props.enabled), placeholder: extractValue.asOptionalString(node.props.placeholder), validationStatus: extractValue(node.props.validationStatus), onDidChange: lookupEventHandler("didChange"), onFocus: lookupEventHandler("gotFocus"), onBlur: lookupEventHandler("lostFocus"), registerComponentApi: registerComponentApi, emptyListTemplate: renderChild(node.props.emptyListTemplate), dropdownHeight: extractValue(node.props.dropdownHeight), required: extractValue.asOptionalBoolean(node.props.required), valueRenderer: node.props.valueTemplate
117
+ return ((0, jsx_runtime_1.jsx)(SelectNative_1.Select, { multiSelect: multiSelect, className: className, inProgress: extractValue.asOptionalBoolean(node.props.inProgress), inProgressNotificationMessage: extractValue.asOptionalString(node.props.inProgressNotificationMessage), readOnly: extractValue.asOptionalBoolean(node.props.readOnly), updateState: isControlled ? undefined : updateState, searchable: searchable, initialValue: extractValue(node.props.initialValue), value: isControlled ? extractValue(node.props.value) : state === null || state === void 0 ? void 0 : state.value, autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus), enabled: extractValue.asOptionalBoolean(node.props.enabled), placeholder: extractValue.asOptionalString(node.props.placeholder), validationStatus: extractValue(node.props.validationStatus), onDidChange: lookupEventHandler("didChange"), onFocus: lookupEventHandler("gotFocus"), onBlur: lookupEventHandler("lostFocus"), registerComponentApi: registerComponentApi, emptyListTemplate: renderChild(node.props.emptyListTemplate), dropdownHeight: extractValue(node.props.dropdownHeight), required: extractValue.asOptionalBoolean(node.props.required), valueRenderer: node.props.valueTemplate
118
118
  ? (item, removeItem) => {
119
119
  return ((0, jsx_runtime_1.jsx)(container_helpers_1.MemoizedItem, { contextVars: {
120
120
  $itemContext: { removeItem },
@@ -669,3 +669,95 @@ fixtures_1.test.describe("Z-Index and Modal Layering", () => {
669
669
  yield (0, fixtures_1.expect)(page.getByRole("option", { name: "Account" })).toBeVisible();
670
670
  }));
671
671
  });
672
+ // =============================================================================
673
+ // THEME VARIABLE TESTS
674
+ // =============================================================================
675
+ fixtures_1.test.describe("Theme Variables", () => {
676
+ [
677
+ { value: "--default", prop: "" },
678
+ { value: "--warning", prop: 'validationStatus="warning"' },
679
+ { value: "--error", prop: 'validationStatus="error"' },
680
+ { value: "--success", prop: 'validationStatus="valid"' },
681
+ ].forEach((variant) => {
682
+ (0, fixtures_1.test)(`applies correct borderRadius ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
683
+ yield initTestBed(`<Select testId="test" ${variant.prop} />`, {
684
+ testThemeVars: { [`borderRadius-Select${variant.value}`]: "12px" },
685
+ });
686
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-radius", "12px");
687
+ }));
688
+ (0, fixtures_1.test)(`applies correct borderColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
689
+ yield initTestBed(`<Select testId="test" ${variant.prop} />`, {
690
+ testThemeVars: { [`borderColor-Select${variant.value}`]: "rgb(255, 0, 0)" },
691
+ });
692
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-color", "rgb(255, 0, 0)");
693
+ }));
694
+ (0, fixtures_1.test)(`applies correct borderWidth ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
695
+ yield initTestBed(`<Select testId="test" ${variant.prop} />`, {
696
+ testThemeVars: { [`borderWidth-Select${variant.value}`]: "1px" },
697
+ });
698
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-width", "1px");
699
+ }));
700
+ (0, fixtures_1.test)(`applies correct borderStyle ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
701
+ yield initTestBed(`<Select testId="test" ${variant.prop} />`, {
702
+ testThemeVars: { [`borderStyle-Select${variant.value}`]: "dashed" },
703
+ });
704
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-style", "dashed");
705
+ }));
706
+ (0, fixtures_1.test)(`applies correct fontSize ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
707
+ yield initTestBed(`<Select testId="test" ${variant.prop} />`, {
708
+ testThemeVars: { [`fontSize-Select${variant.value}`]: "14px" },
709
+ });
710
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("font-size", "14px");
711
+ }));
712
+ (0, fixtures_1.test)(`applies correct backgroundColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
713
+ yield initTestBed(`<Select testId="test" ${variant.prop} />`, {
714
+ testThemeVars: { [`backgroundColor-Select${variant.value}`]: "rgb(240, 240, 240)" },
715
+ });
716
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("background-color", "rgb(240, 240, 240)");
717
+ }));
718
+ (0, fixtures_1.test)(`applies correct boxShadow ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
719
+ yield initTestBed(`<Select testId="test" ${variant.prop} />`, {
720
+ testThemeVars: {
721
+ [`boxShadow-Select${variant.value}`]: "0 2px 8px rgba(0, 0, 0, 0.1)",
722
+ },
723
+ });
724
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("box-shadow", "rgba(0, 0, 0, 0.1) 0px 2px 8px 0px");
725
+ }));
726
+ (0, fixtures_1.test)(`applies correct textColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
727
+ yield initTestBed(`<Select testId="test" ${variant.prop} />`, {
728
+ testThemeVars: { [`textColor-Select${variant.value}`]: "rgb(0, 0, 0)" },
729
+ });
730
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("color", "rgb(0, 0, 0)");
731
+ }));
732
+ (0, fixtures_1.test)(`applies correct borderColor on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
733
+ yield initTestBed(`<Select testId="test" ${variant.prop} />`, {
734
+ testThemeVars: { [`borderColor-Select${variant.value}--hover`]: "rgb(0, 0, 0)" },
735
+ });
736
+ yield page.getByTestId("test").hover();
737
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-color", "rgb(0, 0, 0)");
738
+ }));
739
+ (0, fixtures_1.test)(`applies correct backgroundColor on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
740
+ yield initTestBed(`<Select testId="test" ${variant.prop} />`, {
741
+ testThemeVars: { [`backgroundColor-Select${variant.value}--hover`]: "rgb(0, 0, 0)" },
742
+ });
743
+ yield page.getByTestId("test").hover();
744
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("background-color", "rgb(0, 0, 0)");
745
+ }));
746
+ (0, fixtures_1.test)(`applies correct boxShadow on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
747
+ yield initTestBed(`<Select testId="test" ${variant.prop} />`, {
748
+ testThemeVars: {
749
+ [`boxShadow-Select${variant.value}--hover`]: "0 2px 8px rgba(0, 0, 0, 0.1)",
750
+ },
751
+ });
752
+ yield page.getByTestId("test").hover();
753
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("box-shadow", "rgba(0, 0, 0, 0.1) 0px 2px 8px 0px");
754
+ }));
755
+ (0, fixtures_1.test)(`applies correct textColor on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
756
+ yield initTestBed(`<Select testId="test" ${variant.prop} />`, {
757
+ testThemeVars: { [`textColor-Select${variant.value}--hover`]: "rgb(0, 0, 0)" },
758
+ });
759
+ yield page.getByTestId("test").hover();
760
+ yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("color", "rgb(0, 0, 0)");
761
+ }));
762
+ });
763
+ });
@@ -90,11 +90,11 @@ exports.SliderMd = (0, metadata_helpers_1.createMetadata)({
90
90
  [`boxShadow-thumb-${COMP}--hover`]: "0 0 0 6px rgb(from $color-primary r g b / 0.4)",
91
91
  [`backgroundColor-thumb-${COMP}--active`]: "$color-primary-400",
92
92
  [`boxShadow-thumb-${COMP}--active`]: "0 0 0 6px rgb(from $color-primary r g b / 0.4)",
93
- [`borderRadius-${COMP}-default`]: "$borderRadius",
94
- [`borderColor-${COMP}-default`]: "transparent",
95
- [`borderWidth-${COMP}-default`]: "0",
96
- [`borderStyle-${COMP}-default`]: "solid",
97
- [`boxShadow-${COMP}-default`]: "none",
93
+ [`borderRadius-${COMP}--default`]: "$borderRadius",
94
+ [`borderColor-${COMP}--default`]: "transparent",
95
+ [`borderWidth-${COMP}--default`]: "0",
96
+ [`borderStyle-${COMP}--default`]: "solid",
97
+ [`boxShadow-${COMP}--default`]: "none",
98
98
  light: {
99
99
  [`backgroundColor-track-${COMP}--disabled`]: "$color-surface-300",
100
100
  [`backgroundColor-range-${COMP}--disabled`]: "$color-surface-400",