@adam-milo/ui 1.0.72 → 1.0.73
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/index48.cjs +1 -1
- package/dist/index48.js +2 -2
- package/dist/src/components/typography/heading/Heading.component.d.ts.map +1 -1
- package/dist/src/components/typography/heading/Heading.types.d.ts +2 -0
- package/dist/src/components/typography/heading/Heading.types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index48.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("./index52.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("./index52.cjs"),i=require("./index91.cjs"),s=t.forwardRef(({level:t=2,size:s,weight:a="bold",color:l="text",align:d="start",className:n="",required:c,"data-cy":o,"data-testid":g,children:u,...y},h)=>{const x=s??i.levelToSizeMap[t],S=o||`heading-h${t}-${x}`,j=g||`heading-h${t}-${x}`,m=c?"string"==typeof u?u.includes("*")?u:`${u} *`:e.jsxs(e.Fragment,{children:[u," *"]}):u,p=r.cn(i.rootStyles,i.sizeStyles[x],i.weightStyles[a],i.colorStyles[l],i.alignStyles[d],n),$=`h${t}`;return e.jsx($,{ref:h,className:p,"data-cy":S,"data-testid":j,...y,children:m})});s.displayName="Heading",exports.Heading=s;
|
package/dist/index48.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
return
|
|
1
|
+
import{jsxs as e,Fragment as t,jsx as r}from"react/jsx-runtime";import{forwardRef as i}from"react";import{cn as a}from"./index52.js";import{levelToSizeMap as d,alignStyles as s,colorStyles as n,weightStyles as o,sizeStyles as c,rootStyles as l}from"./index91.js";const m=i(({level:i=2,size:m,weight:h="bold",color:p="text",align:f="start",className:g="",required:$,"data-cy":x,"data-testid":u,children:y,...j},N)=>{const b=m??d[i],q=x||`heading-h${i}-${b}`,v=u||`heading-h${i}-${b}`,w=$?"string"==typeof y?y.includes("*")?y:`${y} *`/* @__PURE__ */:e(t,{children:[y," *"]}):y,z=a(l,c[b],o[h],n[p],s[f],g);/* @__PURE__ */
|
|
2
|
+
return r(`h${i}`,{ref:N,className:z,"data-cy":q,"data-testid":v,...j,children:w})});m.displayName="Heading";export{m as Heading};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/heading/Heading.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAUpD,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Heading.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/heading/Heading.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAUpD,eAAO,MAAM,OAAO,6GA0DnB,CAAC;AAIF,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,GACb,MAAM,iBAAiB,CAAC"}
|
|
@@ -11,6 +11,8 @@ export interface HeadingProps extends Omit<ComponentPropsWithoutRef<'h1'>, 'colo
|
|
|
11
11
|
weight?: HeadingWeight;
|
|
12
12
|
color?: HeadingColor;
|
|
13
13
|
align?: HeadingAlign;
|
|
14
|
+
/** When true, appends * to heading text (for required field labels). */
|
|
15
|
+
required?: boolean;
|
|
14
16
|
className?: string;
|
|
15
17
|
'data-cy'?: string;
|
|
16
18
|
'data-testid'?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/heading/Heading.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAC;AAC3E,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,YAAY,CAAC;AACrE,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,QAAQ,GACR,WAAW,GACX,OAAO,GACP,OAAO,GACP,WAAW,GACX,aAAa,GACb,SAAS,CAAC;AAEd,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACjF,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
|
|
1
|
+
{"version":3,"file":"Heading.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/heading/Heading.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAC;AAC3E,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,YAAY,CAAC;AACrE,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,QAAQ,GACR,WAAW,GACX,OAAO,GACP,OAAO,GACP,WAAW,GACX,aAAa,GACb,SAAS,CAAC;AAEd,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACjF,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
|