fis-component 0.1.23 → 0.1.24

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/dist/cjs/index.js CHANGED
@@ -76547,97 +76547,10 @@ const FISPagination = ({ pageSize = LIMIT_DEFAULT, current = 1, total = 0, minim
76547
76547
  const TextSC = styled.p `
76548
76548
  color: ${(props) => props.$color};
76549
76549
 
76550
- ${({ $variant }) => {
76551
- switch ($variant) {
76552
- case "Emphasis/Emp-6":
76553
- return styled.css `
76554
- ${getTheme("Emphasis/Emp-6")}
76555
- `;
76556
- case "Emphasis/Emp-5":
76557
- return styled.css `
76558
- ${getTheme("Emphasis/Emp-5")}
76559
- `;
76560
- case "Emphasis/Emp-4":
76561
- return styled.css `
76562
- ${getTheme("Emphasis/Emp-4")}
76563
- `;
76564
- case "Emphasis/Emp-3":
76565
- return styled.css `
76566
- ${getTheme("Emphasis/Emp-3")}
76567
- `;
76568
- case "Emphasis/Emp-2":
76569
- return styled.css `
76570
- ${getTheme("Emphasis/Emp-2")}
76571
- `;
76572
- case "Emphasis/Emp-1":
76573
- return styled.css `
76574
- ${getTheme("Emphasis/Emp-1")}
76575
- `;
76576
- case "Label/XL":
76577
- return styled.css `
76578
- ${getTheme("Label/XL")}
76579
- `;
76580
- case "Label/Lg":
76581
- return styled.css `
76582
- ${getTheme("Label/Lg")}
76583
- `;
76584
- case "Label/Md":
76585
- return styled.css `
76586
- ${getTheme("Label/Md")}
76587
- `;
76588
- case "Label/Sm":
76589
- return styled.css `
76590
- ${getTheme("Label/Sm")}
76591
- `;
76592
- case "Label/XS":
76593
- return styled.css `
76594
- ${getTheme("Label/XS")}
76595
- `;
76596
- case "Subheading/Lg":
76597
- return styled.css `
76598
- ${getTheme("Subheading/Lg")}
76599
- `;
76600
- case "Subheading/Md":
76601
- return styled.css `
76602
- ${getTheme("Subheading/Md")}
76603
- `;
76604
- case "Subheading/Sm":
76605
- return styled.css `
76606
- ${getTheme("Subheading/Sm")}
76607
- `;
76608
- case "Subheading/XS":
76609
- return styled.css `
76610
- ${getTheme("Subheading/XS")}
76611
- `;
76612
- case "Paragraph/XL":
76613
- return styled.css `
76614
- ${getTheme("Paragraph/XL")}
76615
- `;
76616
- case "Paragraph/Lg":
76617
- return styled.css `
76618
- ${getTheme("Paragraph/Lg")}
76619
- `;
76620
- case "Paragraph/Md":
76621
- return styled.css `
76622
- ${getTheme("Paragraph/Md")}
76623
- `;
76624
- case "Paragraph/Sm":
76625
- return styled.css `
76626
- ${getTheme("Paragraph/Sm")}
76627
- `;
76628
- case "Paragraph/XS":
76629
- return styled.css `
76630
- ${getTheme("Paragraph/XS")}
76631
- `;
76632
- case "_Guide/Flow-Line/Label":
76633
- return styled.css `
76634
- ${getTheme("_Guide/Flow-Line/Label")}
76635
- `;
76636
- }
76637
- }}
76550
+ ${({ $variant }) => $variant && styled.css `${getTheme($variant)}`}
76638
76551
  `;
76639
76552
 
76640
- const FISText = React.forwardRef(({ tag, variant, children, color, ...rest }, ref) => (jsxRuntime.jsx(TextSC, { as: tag, "$variant": variant, "$color": color ? getTheme(color) : "", ref: ref, ...rest, children: children })));
76553
+ const FISText = React.forwardRef(({ tag, as, variant, children, color, ...rest }, ref) => (jsxRuntime.jsx(TextSC, { as: as ?? tag, "$variant": variant, "$color": color ? getTheme(color) : "", ref: ref, ...rest, children: children })));
76641
76554
  FISText.displayName = "FISText";
76642
76555
 
76643
76556
  exports.FISAlertBanner = FISAlertBanner;