bianic-ui 0.4.15 → 0.4.16
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
|
@@ -3197,11 +3197,11 @@ var P = function (_a) {
|
|
|
3197
3197
|
};
|
|
3198
3198
|
|
|
3199
3199
|
var Text = function (_a) {
|
|
3200
|
-
var variant = _a.variant, rest = __rest(_a, ["variant"]);
|
|
3200
|
+
var variant = _a.variant, action = _a.action, rest = __rest(_a, ["variant", "action"]);
|
|
3201
3201
|
var font = "font-['Segoe UI']";
|
|
3202
3202
|
var fontSize;
|
|
3203
3203
|
var fontWeight;
|
|
3204
|
-
var fontLeading =
|
|
3204
|
+
var fontLeading = "leading-[150%]";
|
|
3205
3205
|
if (variant === "large-text") {
|
|
3206
3206
|
// text-zinc-800 text-[1.375rem] font-normal font-['Segoe UI']
|
|
3207
3207
|
fontSize = "text-[1.375rem]";
|
|
@@ -3312,7 +3312,7 @@ var Text = function (_a) {
|
|
|
3312
3312
|
fontSize = "text-sm";
|
|
3313
3313
|
fontWeight = "font-normal";
|
|
3314
3314
|
}
|
|
3315
|
-
return (React.createElement("span", __assign({ className: "text ".concat(font, " ").concat(fontSize, " ").concat(fontWeight, " ").concat(fontLeading) }, rest), rest.children));
|
|
3315
|
+
return (React.createElement("span", __assign({ className: "text ".concat(font, " ").concat(fontSize, " ").concat(fontWeight, " ").concat(fontLeading, " ").concat(action) }, rest), rest.children));
|
|
3316
3316
|
};
|
|
3317
3317
|
|
|
3318
3318
|
var ModalBody = function (_a) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from "react";
|
|
2
2
|
export interface TextProps extends ComponentPropsWithoutRef<"span"> {
|
|
3
3
|
variant: string;
|
|
4
|
+
action: string;
|
|
4
5
|
}
|
|
5
|
-
declare const Text: ({ variant, ...rest }: TextProps) => React.JSX.Element;
|
|
6
|
+
declare const Text: ({ variant, action, ...rest }: TextProps) => React.JSX.Element;
|
|
6
7
|
export default Text;
|
package/dist/esm/index.js
CHANGED
|
@@ -3195,11 +3195,11 @@ var P = function (_a) {
|
|
|
3195
3195
|
};
|
|
3196
3196
|
|
|
3197
3197
|
var Text = function (_a) {
|
|
3198
|
-
var variant = _a.variant, rest = __rest(_a, ["variant"]);
|
|
3198
|
+
var variant = _a.variant, action = _a.action, rest = __rest(_a, ["variant", "action"]);
|
|
3199
3199
|
var font = "font-['Segoe UI']";
|
|
3200
3200
|
var fontSize;
|
|
3201
3201
|
var fontWeight;
|
|
3202
|
-
var fontLeading =
|
|
3202
|
+
var fontLeading = "leading-[150%]";
|
|
3203
3203
|
if (variant === "large-text") {
|
|
3204
3204
|
// text-zinc-800 text-[1.375rem] font-normal font-['Segoe UI']
|
|
3205
3205
|
fontSize = "text-[1.375rem]";
|
|
@@ -3310,7 +3310,7 @@ var Text = function (_a) {
|
|
|
3310
3310
|
fontSize = "text-sm";
|
|
3311
3311
|
fontWeight = "font-normal";
|
|
3312
3312
|
}
|
|
3313
|
-
return (React.createElement("span", __assign({ className: "text ".concat(font, " ").concat(fontSize, " ").concat(fontWeight, " ").concat(fontLeading) }, rest), rest.children));
|
|
3313
|
+
return (React.createElement("span", __assign({ className: "text ".concat(font, " ").concat(fontSize, " ").concat(fontWeight, " ").concat(fontLeading, " ").concat(action) }, rest), rest.children));
|
|
3314
3314
|
};
|
|
3315
3315
|
|
|
3316
3316
|
var ModalBody = function (_a) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from "react";
|
|
2
2
|
export interface TextProps extends ComponentPropsWithoutRef<"span"> {
|
|
3
3
|
variant: string;
|
|
4
|
+
action: string;
|
|
4
5
|
}
|
|
5
|
-
declare const Text: ({ variant, ...rest }: TextProps) => React.JSX.Element;
|
|
6
|
+
declare const Text: ({ variant, action, ...rest }: TextProps) => React.JSX.Element;
|
|
6
7
|
export default Text;
|
package/dist/index.d.ts
CHANGED
|
@@ -95,8 +95,9 @@ declare const P: ({ ...rest }: ParagraphProps) => React.JSX.Element;
|
|
|
95
95
|
|
|
96
96
|
interface TextProps extends ComponentPropsWithoutRef<"span"> {
|
|
97
97
|
variant: string;
|
|
98
|
+
action: string;
|
|
98
99
|
}
|
|
99
|
-
declare const Text: ({ variant, ...rest }: TextProps) => React.JSX.Element;
|
|
100
|
+
declare const Text: ({ variant, action, ...rest }: TextProps) => React.JSX.Element;
|
|
100
101
|
|
|
101
102
|
interface ModalProps extends ComponentPropsWithoutRef<"div"> {
|
|
102
103
|
modalSize: string;
|
package/package.json
CHANGED