@stackshift-ui/text 6.0.5 → 6.0.7
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/chunk-VXRL4EN3.mjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/dist/text.d.ts +16 -0
- package/dist/text.js +1 -0
- package/dist/text.mjs +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DefaultComponent as h,useStackShiftUIComponents as T}from"@stackshift-ui/system";import C from"classnames";import{jsx as u}from"react/jsx-runtime";var t="Text",S=({type:n="p",style:l,muted:a=!1,weight:s="normal",fontSize:x="base",children:i,className:r,as:m="p",...p})=>{var o;let{[t]:c=h}=T(),f={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl"},d={thin:"font-thin",extralight:"font-extralight",light:"font-light",normal:"font-normal",semibold:"font-semibold",bold:"font-bold",medium:"font-mediun",extrabold:"font-extrabold",black:"font-black"},g=f[x]||"text-base",b=d[s]||"font-normal",e={p:`${g} ${b} ${a&&"text-gray-500"}`},y=(o=e[n])!=null?o:e.p;return u(c,{as:m,className:C(y,r),style:l,...p,"data-testid":t,children:i})};S.displayName=t;export{S as a};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./text";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var k=Object.create;var a=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var W=(t,e)=>{for(var o in e)a(t,o,{get:e[o],enumerable:!0})},m=(t,e,o,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of M(e))!R.call(t,n)&&n!==o&&a(t,n,{get:()=>e[n],enumerable:!(l=z(e,n))||l.enumerable});return t};var E=(t,e,o)=>(o=t!=null?k(P(t)):{},m(e||!t||!t.__esModule?a(o,"default",{value:t,enumerable:!0}):o,t)),H=t=>m(a({},"__esModule",{value:!0}),t);var L={};W(L,{Text:()=>c});module.exports=H(L);var s=require("@stackshift-ui/system"),p=E(require("classnames")),f=require("react/jsx-runtime"),x="Text",c=({type:t="p",style:e,muted:o=!1,weight:l="normal",fontSize:n="base",children:d,className:g,as:b="p",...y})=>{var r;let{[x]:h=s.DefaultComponent}=(0,s.useStackShiftUIComponents)(),T={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl"},C={thin:"font-thin",extralight:"font-extralight",light:"font-light",normal:"font-normal",semibold:"font-semibold",bold:"font-bold",medium:"font-mediun",extrabold:"font-extrabold",black:"font-black"},S=T[n]||"text-base",u=C[l]||"font-normal",i={p:`${S} ${u} ${o&&"text-gray-500"}`},N=(r=i[t])!=null?r:i.p;return(0,f.jsx)(h,{as:b,className:(0,p.default)(N,g),style:e,...y,"data-testid":x,children:d})};c.displayName=x;0&&(module.exports={Text});
|
package/dist/index.mjs
ADDED
package/dist/text.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ElementType, HTMLProps, ReactNode } from "react";
|
|
2
|
+
type fontSize = "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
|
|
3
|
+
type Weight = "thin" | "extralight" | "light" | "normal" | "semibold" | "bold" | "medium" | "extrabold" | "black";
|
|
4
|
+
export interface TextProps extends Omit<HTMLProps<HTMLElement>, "as"> {
|
|
5
|
+
type?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
muted?: boolean;
|
|
8
|
+
weight?: Weight;
|
|
9
|
+
fontSize?: fontSize;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
as?: ElementType;
|
|
14
|
+
}
|
|
15
|
+
export declare const Text: React.FC<TextProps>;
|
|
16
|
+
export {};
|
package/dist/text.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var k=Object.create;var a=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var W=(t,e)=>{for(var o in e)a(t,o,{get:e[o],enumerable:!0})},m=(t,e,o,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of M(e))!R.call(t,n)&&n!==o&&a(t,n,{get:()=>e[n],enumerable:!(l=z(e,n))||l.enumerable});return t};var E=(t,e,o)=>(o=t!=null?k(P(t)):{},m(e||!t||!t.__esModule?a(o,"default",{value:t,enumerable:!0}):o,t)),H=t=>m(a({},"__esModule",{value:!0}),t);var L={};W(L,{Text:()=>c});module.exports=H(L);var s=require("@stackshift-ui/system"),p=E(require("classnames")),f=require("react/jsx-runtime"),x="Text",c=({type:t="p",style:e,muted:o=!1,weight:l="normal",fontSize:n="base",children:d,className:g,as:b="p",...y})=>{var r;let{[x]:h=s.DefaultComponent}=(0,s.useStackShiftUIComponents)(),T={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl"},C={thin:"font-thin",extralight:"font-extralight",light:"font-light",normal:"font-normal",semibold:"font-semibold",bold:"font-bold",medium:"font-mediun",extrabold:"font-extrabold",black:"font-black"},S=T[n]||"text-base",u=C[l]||"font-normal",i={p:`${S} ${u} ${o&&"text-gray-500"}`},N=(r=i[t])!=null?r:i.p;return(0,f.jsx)(h,{as:b,className:(0,p.default)(N,g),style:e,...y,"data-testid":x,children:d})};c.displayName=x;0&&(module.exports={Text});
|
package/dist/text.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-VXRL4EN3.mjs";export{a as Text};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/text",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.7",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
"typescript": "^5.6.2",
|
|
30
30
|
"vite-tsconfig-paths": "^5.0.1",
|
|
31
31
|
"vitest": "^2.1.1",
|
|
32
|
-
"@stackshift-ui/
|
|
33
|
-
"@stackshift-ui/
|
|
32
|
+
"@stackshift-ui/eslint-config": "6.0.6",
|
|
33
|
+
"@stackshift-ui/typescript-config": "6.0.6"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
|
-
"@stackshift-ui/
|
|
38
|
-
"@stackshift-ui/
|
|
37
|
+
"@stackshift-ui/scripts": "6.0.6",
|
|
38
|
+
"@stackshift-ui/system": "6.0.7"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@types/react": "16.8 - 19",
|
|
42
42
|
"next": "10 - 14",
|
|
43
43
|
"react": "16.8 - 19",
|
|
44
44
|
"react-dom": "16.8 - 19",
|
|
45
|
-
"@stackshift-ui/system": ">=6.0.
|
|
45
|
+
"@stackshift-ui/system": ">=6.0.7"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
48
48
|
"next": {
|