fis-component 0.1.9 → 0.1.11

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
@@ -61893,6 +61893,11 @@ function SeparatorIcon(props) {
61893
61893
  return (jsxRuntime.jsx("svg", { width: width, height: height, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsxRuntime.jsx("path", { d: "M3.5 11L8.5 1", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round", strokeLinejoin: "round" }) }));
61894
61894
  }
61895
61895
 
61896
+ function HomeIcon(props) {
61897
+ const { width = 16, height = 16, ...rest } = props;
61898
+ return (jsxRuntime.jsx("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsxRuntime.jsx("path", { d: "M5.33333 11.3333H10.6667M7.34513 1.84267L2.82359 5.35942C2.52135 5.5945 2.37022 5.71204 2.26135 5.85925C2.16491 5.98964 2.09307 6.13653 2.04935 6.29271C2 6.46902 2 6.66047 2 7.04338V11.8667C2 12.6134 2 12.9868 2.14532 13.272C2.27316 13.5229 2.47713 13.7268 2.72801 13.8547C3.01323 14 3.3866 14 4.13333 14H11.8667C12.6134 14 12.9868 14 13.272 13.8547C13.5229 13.7268 13.7268 13.5229 13.8547 13.272C14 12.9868 14 12.6134 14 11.8667V7.04338C14 6.66047 14 6.46902 13.9506 6.29271C13.9069 6.13653 13.8351 5.98964 13.7386 5.85925C13.6298 5.71204 13.4787 5.5945 13.1764 5.35942L8.65487 1.84267C8.42065 1.6605 8.30354 1.56942 8.17423 1.53441C8.06013 1.50351 7.93987 1.50351 7.82577 1.53441C7.69646 1.56942 7.57935 1.6605 7.34513 1.84267Z", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }) }));
61899
+ }
61900
+
61896
61901
  function CloseIcon(props) {
61897
61902
  const { width = 16, height = 16, ...rest } = props;
61898
61903
  return (jsxRuntime.jsx("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsxRuntime.jsx("path", { d: "M12.6671 3.33325L3.33374 12.6666M3.33374 3.33325L12.6671 12.6666", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
@@ -64256,7 +64261,7 @@ const BreadcrumbEllipsis = () => (jsxRuntime.jsxs(jsxRuntime.Fragment, { childre
64256
64261
  const FISBreadcrumb = ({ items, className }) => {
64257
64262
  if (items.length === 0)
64258
64263
  return null;
64259
- return (jsxRuntime.jsxs(DivContainerSC$9, { className: className, children: [items?.[0]?.icon && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(FISIconButton, { size: "xs", icon: items?.[0]?.icon, variant: "tertiary-invisible", onClick: items[0].onClick }), jsxRuntime.jsx(DivSeparatorIconSC$1, { children: jsxRuntime.jsx(SeparatorIcon, {}) })] })), items.length > MAX_VISIBLE_ITEMS ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [items.slice(1, 2).map((item, index) => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(BreadcrumbItem, { ...item }), jsxRuntime.jsx(DivSeparatorIconSC$1, { children: jsxRuntime.jsx(SeparatorIcon, {}) })] }, index))), jsxRuntime.jsx(BreadcrumbEllipsis, {}), items.slice(-2).map((item, index) => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(BreadcrumbItem, { ...item }), jsxRuntime.jsx(DivSeparatorIconSC$1, { children: jsxRuntime.jsx(SeparatorIcon, {}) })] }, `end-${index}`)))] })) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: items.slice(1).map((item, index) => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(BreadcrumbItem, { ...item }), jsxRuntime.jsx(DivSeparatorIconSC$1, { children: jsxRuntime.jsx(SeparatorIcon, {}) })] }, index))) }))] }));
64264
+ return (jsxRuntime.jsxs(DivContainerSC$9, { className: className, children: [jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(FISIconButton, { size: "xs", icon: items?.[0]?.icon ?? jsxRuntime.jsx(HomeIcon, {}), variant: "tertiary-invisible", onClick: items[0].onClick }), jsxRuntime.jsx(DivSeparatorIconSC$1, { children: jsxRuntime.jsx(SeparatorIcon, {}) })] }), items.length > MAX_VISIBLE_ITEMS ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [items.slice(1, 2).map((item, index) => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(BreadcrumbItem, { ...item }), jsxRuntime.jsx(DivSeparatorIconSC$1, { children: jsxRuntime.jsx(SeparatorIcon, {}) })] }, index))), jsxRuntime.jsx(BreadcrumbEllipsis, {}), items.slice(-2).map((item, index) => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(BreadcrumbItem, { ...item }), jsxRuntime.jsx(DivSeparatorIconSC$1, { children: jsxRuntime.jsx(SeparatorIcon, {}) })] }, `end-${index}`)))] })) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: items.slice(1).map((item, index) => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(BreadcrumbItem, { ...item }), jsxRuntime.jsx(DivSeparatorIconSC$1, { children: jsxRuntime.jsx(SeparatorIcon, {}) })] }, index))) }))] }));
64260
64265
  };
64261
64266
  FISBreadcrumb.displayName = "FISBreadcrumb";
64262
64267
 
@@ -75081,6 +75086,102 @@ const FISPagination = ({ pageSize = LIMIT_DEFAULT, current = 1, total = 0, minim
75081
75086
  } })] })] }));
75082
75087
  };
75083
75088
 
75089
+ const TextSC = styled.p `
75090
+ color: ${(props) => props.$color};
75091
+
75092
+ ${({ $variant }) => {
75093
+ switch ($variant) {
75094
+ case "Emphasis/Emp-6":
75095
+ return styled.css `
75096
+ ${getTheme("Emphasis/Emp-6")}
75097
+ `;
75098
+ case "Emphasis/Emp-5":
75099
+ return styled.css `
75100
+ ${getTheme("Emphasis/Emp-5")}
75101
+ `;
75102
+ case "Emphasis/Emp-4":
75103
+ return styled.css `
75104
+ ${getTheme("Emphasis/Emp-4")}
75105
+ `;
75106
+ case "Emphasis/Emp-3":
75107
+ return styled.css `
75108
+ ${getTheme("Emphasis/Emp-3")}
75109
+ `;
75110
+ case "Emphasis/Emp-2":
75111
+ return styled.css `
75112
+ ${getTheme("Emphasis/Emp-2")}
75113
+ `;
75114
+ case "Emphasis/Emp-1":
75115
+ return styled.css `
75116
+ ${getTheme("Emphasis/Emp-1")}
75117
+ `;
75118
+ case "Label/XL":
75119
+ return styled.css `
75120
+ ${getTheme("Label/XL")}
75121
+ `;
75122
+ case "Label/Lg":
75123
+ return styled.css `
75124
+ ${getTheme("Label/Lg")}
75125
+ `;
75126
+ case "Label/Md":
75127
+ return styled.css `
75128
+ ${getTheme("Label/Md")}
75129
+ `;
75130
+ case "Label/Sm":
75131
+ return styled.css `
75132
+ ${getTheme("Label/Sm")}
75133
+ `;
75134
+ case "Label/XS":
75135
+ return styled.css `
75136
+ ${getTheme("Label/XS")}
75137
+ `;
75138
+ case "Subheading/Lg":
75139
+ return styled.css `
75140
+ ${getTheme("Subheading/Lg")}
75141
+ `;
75142
+ case "Subheading/Md":
75143
+ return styled.css `
75144
+ ${getTheme("Subheading/Md")}
75145
+ `;
75146
+ case "Subheading/Sm":
75147
+ return styled.css `
75148
+ ${getTheme("Subheading/Sm")}
75149
+ `;
75150
+ case "Subheading/XS":
75151
+ return styled.css `
75152
+ ${getTheme("Subheading/XS")}
75153
+ `;
75154
+ case "Paragraph/XL":
75155
+ return styled.css `
75156
+ ${getTheme("Paragraph/XL")}
75157
+ `;
75158
+ case "Paragraph/Lg":
75159
+ return styled.css `
75160
+ ${getTheme("Paragraph/Lg")}
75161
+ `;
75162
+ case "Paragraph/Md":
75163
+ return styled.css `
75164
+ ${getTheme("Paragraph/Md")}
75165
+ `;
75166
+ case "Paragraph/Sm":
75167
+ return styled.css `
75168
+ ${getTheme("Paragraph/Sm")}
75169
+ `;
75170
+ case "Paragraph/XS":
75171
+ return styled.css `
75172
+ ${getTheme("Paragraph/XS")}
75173
+ `;
75174
+ case "_Guide/Flow-Line/Label":
75175
+ return styled.css `
75176
+ ${getTheme("_Guide/Flow-Line/Label")}
75177
+ `;
75178
+ }
75179
+ }}
75180
+ `;
75181
+
75182
+ const FISText = React.forwardRef(({ tag, variant, children, color, ...rest }, ref) => (jsxRuntime.jsx(TextSC, { as: tag, "$variant": variant, "$color": color ? theme[color] : "", ref: ref, ...rest, children: children })));
75183
+ FISText.displayName = "FISText";
75184
+
75084
75185
  exports.FISAlertBanner = FISAlertBanner;
75085
75186
  exports.FISAvatar = FISAvatar;
75086
75187
  exports.FISBadge = FISBadge;
@@ -75121,6 +75222,7 @@ exports.FISTab = FISTab;
75121
75222
  exports.FISTable = FISTable;
75122
75223
  exports.FISTableCell = FISTableCell;
75123
75224
  exports.FISTableHeaderCell = FISTableHeaderCell;
75225
+ exports.FISText = FISText;
75124
75226
  exports.FISThemeProvider = FISThemeProvider;
75125
75227
  exports.FISToast = FISToast;
75126
75228
  exports.FISTooltip = FISTooltip;