@cognite/aura 1.49677.0 → 1.49681.0

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.
@@ -84,7 +84,7 @@ const Loader = /*#__PURE__*/ forwardRef((props, ref)=>{
84
84
  children: header
85
85
  }),
86
86
  description && /*#__PURE__*/ _jsx("p", {
87
- className: "w-full text-sm leading-[18px] tracking-tight text-secondary-foreground",
87
+ className: "w-full text-sm leading-4.5 tracking-tight text-secondary-foreground",
88
88
  children: description
89
89
  })
90
90
  ]
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/ui/core/loader/loader.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentRef,\n type HTMLAttributes,\n forwardRef,\n} from 'react';\n\nimport { cn } from '../../../../lib/utils';\n\ninterface LoaderGlyphProps {\n size?: number;\n className?: string;\n strokeClassName?: string;\n}\n\nconst LoaderGlyph = ({\n size = 16,\n className,\n strokeClassName,\n}: LoaderGlyphProps) => {\n return (\n <svg\n aria-hidden=\"true\"\n focusable=\"false\"\n className={cn('overflow-visible', strokeClassName, className)}\n height={size}\n viewBox=\"0 0 167 216\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n className=\"aura-loader-rect aura-loader-rect-1\"\n data-slot=\"loader-rect\"\n x=\"10\"\n y=\"10\"\n width=\"98\"\n height=\"196\"\n rx=\"49\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"20\"\n strokeLinecap=\"round\"\n />\n <rect\n className=\"aura-loader-rect aura-loader-rect-2\"\n data-slot=\"loader-rect\"\n x=\"59\"\n y=\"10\"\n width=\"98\"\n height=\"196\"\n rx=\"49\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"20\"\n strokeLinecap=\"round\"\n />\n </svg>\n );\n};\n\ntype LoaderSharedProps = HTMLAttributes<HTMLDivElement>;\n\ninterface InlineLoaderProps extends LoaderSharedProps {\n variant?: 'inline';\n size?: number;\n}\n\ninterface PageLoaderProps extends LoaderSharedProps {\n variant: 'page';\n header: string;\n description?: string;\n}\n\ntype LoaderProps = InlineLoaderProps | PageLoaderProps;\n\nconst isPageLoaderProps = (props: LoaderProps): props is PageLoaderProps => {\n return props.variant === 'page';\n};\n\nconst Loader: ForwardRefExoticComponent<\n LoaderProps & RefAttributes<HTMLDivElement>\n> = forwardRef<ComponentRef<'div'>, LoaderProps>((props, ref) => {\n const className = props.className;\n const role = props.role ?? 'status';\n const ariaLabel = props['aria-label'] ?? 'Loading';\n\n if (!isPageLoaderProps(props)) {\n const {\n size = 16,\n variant: _variant,\n className: _className,\n role: _role,\n 'aria-label': _ariaLabel,\n ...divProps\n } = props;\n\n return (\n <div\n ref={ref}\n data-slot=\"loader\"\n role={role}\n aria-label={ariaLabel}\n className={cn('inline-flex items-center justify-center', className)}\n {...divProps}\n >\n <LoaderGlyph size={size} strokeClassName=\"text-current\" />\n </div>\n );\n }\n\n const {\n variant: _variant,\n className: _className,\n role: _role,\n 'aria-label': _ariaLabel,\n header,\n description,\n ...divProps\n } = props;\n\n return (\n <div\n ref={ref}\n data-slot=\"loader\"\n role={role}\n aria-label={ariaLabel}\n className={cn(\n 'text-foreground flex h-[11.5rem] w-80 flex-col items-center justify-center gap-2',\n className\n )}\n {...divProps}\n >\n <LoaderGlyph\n size={112}\n className=\"size-28\"\n strokeClassName=\"text-current\"\n />\n\n <div className=\"flex w-full flex-col items-center justify-center gap-1 text-center\">\n <p className=\"text-lg font-medium leading-6 tracking-tightest text-foreground\">\n {header}\n </p>\n {description && (\n <p className=\"w-full text-sm leading-[18px] tracking-tight text-secondary-foreground\">\n {description}\n </p>\n )}\n </div>\n </div>\n );\n});\n\nLoader.displayName = 'Loader';\n\nexport { Loader };\nexport type { LoaderProps };\n"],"names":["forwardRef","cn","LoaderGlyph","size","className","strokeClassName","svg","aria-hidden","focusable","height","viewBox","width","xmlns","rect","data-slot","x","y","rx","fill","stroke","strokeWidth","strokeLinecap","isPageLoaderProps","props","variant","Loader","ref","role","ariaLabel","_variant","_className","_role","_ariaLabel","divProps","div","aria-label","header","description","p","displayName"],"mappings":";AAAA,SAKEA,UAAU,QACL,QAAQ;AAEf,SAASC,EAAE,QAAQ,wBAAwB;AAQ3C,MAAMC,cAAc,CAAC,EACnBC,OAAO,EAAE,EACTC,SAAS,EACTC,eAAe,EACE;IACjB,qBACE,MAACC;QACCC,eAAY;QACZC,WAAU;QACVJ,WAAWH,GAAG,oBAAoBI,iBAAiBD;QACnDK,QAAQN;QACRO,SAAQ;QACRC,OAAOR;QACPS,OAAM;;0BAEN,KAACC;gBACCT,WAAU;gBACVU,aAAU;gBACVC,GAAE;gBACFC,GAAE;gBACFL,OAAM;gBACNF,QAAO;gBACPQ,IAAG;gBACHC,MAAK;gBACLC,QAAO;gBACPC,aAAY;gBACZC,eAAc;;0BAEhB,KAACR;gBACCT,WAAU;gBACVU,aAAU;gBACVC,GAAE;gBACFC,GAAE;gBACFL,OAAM;gBACNF,QAAO;gBACPQ,IAAG;gBACHC,MAAK;gBACLC,QAAO;gBACPC,aAAY;gBACZC,eAAc;;;;AAItB;AAiBA,MAAMC,oBAAoB,CAACC;IACzB,OAAOA,MAAMC,OAAO,KAAK;AAC3B;AAEA,MAAMC,uBAEFzB,WAA6C,CAACuB,OAAOG;IACvD,MAAMtB,YAAYmB,MAAMnB,SAAS;IACjC,MAAMuB,OAAOJ,MAAMI,IAAI,IAAI;IAC3B,MAAMC,YAAYL,KAAK,CAAC,aAAa,IAAI;IAEzC,IAAI,CAACD,kBAAkBC,QAAQ;QAC7B,MAAM,EACJpB,OAAO,EAAE,EACTqB,SAASK,QAAQ,EACjBzB,WAAW0B,UAAU,EACrBH,MAAMI,KAAK,EACX,cAAcC,UAAU,EACxB,GAAGC,UACJ,GAAGV;QAEJ,qBACE,KAACW;YACCR,KAAKA;YACLZ,aAAU;YACVa,MAAMA;YACNQ,cAAYP;YACZxB,WAAWH,GAAG,2CAA2CG;YACxD,GAAG6B,QAAQ;sBAEZ,cAAA,KAAC/B;gBAAYC,MAAMA;gBAAME,iBAAgB;;;IAG/C;IAEA,MAAM,EACJmB,SAASK,QAAQ,EACjBzB,WAAW0B,UAAU,EACrBH,MAAMI,KAAK,EACX,cAAcC,UAAU,EACxBI,MAAM,EACNC,WAAW,EACX,GAAGJ,UACJ,GAAGV;IAEJ,qBACE,MAACW;QACCR,KAAKA;QACLZ,aAAU;QACVa,MAAMA;QACNQ,cAAYP;QACZxB,WAAWH,GACT,oFACAG;QAED,GAAG6B,QAAQ;;0BAEZ,KAAC/B;gBACCC,MAAM;gBACNC,WAAU;gBACVC,iBAAgB;;0BAGlB,MAAC6B;gBAAI9B,WAAU;;kCACb,KAACkC;wBAAElC,WAAU;kCACVgC;;oBAEFC,6BACC,KAACC;wBAAElC,WAAU;kCACViC;;;;;;AAMb;AAEAZ,OAAOc,WAAW,GAAG;AAErB,SAASd,MAAM,GAAG"}
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/loader/loader.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentRef,\n type HTMLAttributes,\n forwardRef,\n} from 'react';\n\nimport { cn } from '../../../../lib/utils';\n\ninterface LoaderGlyphProps {\n size?: number;\n className?: string;\n strokeClassName?: string;\n}\n\nconst LoaderGlyph = ({\n size = 16,\n className,\n strokeClassName,\n}: LoaderGlyphProps) => {\n return (\n <svg\n aria-hidden=\"true\"\n focusable=\"false\"\n className={cn('overflow-visible', strokeClassName, className)}\n height={size}\n viewBox=\"0 0 167 216\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n className=\"aura-loader-rect aura-loader-rect-1\"\n data-slot=\"loader-rect\"\n x=\"10\"\n y=\"10\"\n width=\"98\"\n height=\"196\"\n rx=\"49\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"20\"\n strokeLinecap=\"round\"\n />\n <rect\n className=\"aura-loader-rect aura-loader-rect-2\"\n data-slot=\"loader-rect\"\n x=\"59\"\n y=\"10\"\n width=\"98\"\n height=\"196\"\n rx=\"49\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"20\"\n strokeLinecap=\"round\"\n />\n </svg>\n );\n};\n\ntype LoaderSharedProps = HTMLAttributes<HTMLDivElement>;\n\ninterface InlineLoaderProps extends LoaderSharedProps {\n variant?: 'inline';\n size?: number;\n}\n\ninterface PageLoaderProps extends LoaderSharedProps {\n variant: 'page';\n header: string;\n description?: string;\n}\n\ntype LoaderProps = InlineLoaderProps | PageLoaderProps;\n\nconst isPageLoaderProps = (props: LoaderProps): props is PageLoaderProps => {\n return props.variant === 'page';\n};\n\nconst Loader: ForwardRefExoticComponent<\n LoaderProps & RefAttributes<HTMLDivElement>\n> = forwardRef<ComponentRef<'div'>, LoaderProps>((props, ref) => {\n const className = props.className;\n const role = props.role ?? 'status';\n const ariaLabel = props['aria-label'] ?? 'Loading';\n\n if (!isPageLoaderProps(props)) {\n const {\n size = 16,\n variant: _variant,\n className: _className,\n role: _role,\n 'aria-label': _ariaLabel,\n ...divProps\n } = props;\n\n return (\n <div\n ref={ref}\n data-slot=\"loader\"\n role={role}\n aria-label={ariaLabel}\n className={cn('inline-flex items-center justify-center', className)}\n {...divProps}\n >\n <LoaderGlyph size={size} strokeClassName=\"text-current\" />\n </div>\n );\n }\n\n const {\n variant: _variant,\n className: _className,\n role: _role,\n 'aria-label': _ariaLabel,\n header,\n description,\n ...divProps\n } = props;\n\n return (\n <div\n ref={ref}\n data-slot=\"loader\"\n role={role}\n aria-label={ariaLabel}\n className={cn(\n 'text-foreground flex h-[11.5rem] w-80 flex-col items-center justify-center gap-2',\n className\n )}\n {...divProps}\n >\n <LoaderGlyph\n size={112}\n className=\"size-28\"\n strokeClassName=\"text-current\"\n />\n\n <div className=\"flex w-full flex-col items-center justify-center gap-1 text-center\">\n <p className=\"text-lg font-medium leading-6 tracking-tightest text-foreground\">\n {header}\n </p>\n {description && (\n <p className=\"w-full text-sm leading-4.5 tracking-tight text-secondary-foreground\">\n {description}\n </p>\n )}\n </div>\n </div>\n );\n});\n\nLoader.displayName = 'Loader';\n\nexport { Loader };\nexport type { LoaderProps };\n"],"names":["forwardRef","cn","LoaderGlyph","size","className","strokeClassName","svg","aria-hidden","focusable","height","viewBox","width","xmlns","rect","data-slot","x","y","rx","fill","stroke","strokeWidth","strokeLinecap","isPageLoaderProps","props","variant","Loader","ref","role","ariaLabel","_variant","_className","_role","_ariaLabel","divProps","div","aria-label","header","description","p","displayName"],"mappings":";AAAA,SAKEA,UAAU,QACL,QAAQ;AAEf,SAASC,EAAE,QAAQ,wBAAwB;AAQ3C,MAAMC,cAAc,CAAC,EACnBC,OAAO,EAAE,EACTC,SAAS,EACTC,eAAe,EACE;IACjB,qBACE,MAACC;QACCC,eAAY;QACZC,WAAU;QACVJ,WAAWH,GAAG,oBAAoBI,iBAAiBD;QACnDK,QAAQN;QACRO,SAAQ;QACRC,OAAOR;QACPS,OAAM;;0BAEN,KAACC;gBACCT,WAAU;gBACVU,aAAU;gBACVC,GAAE;gBACFC,GAAE;gBACFL,OAAM;gBACNF,QAAO;gBACPQ,IAAG;gBACHC,MAAK;gBACLC,QAAO;gBACPC,aAAY;gBACZC,eAAc;;0BAEhB,KAACR;gBACCT,WAAU;gBACVU,aAAU;gBACVC,GAAE;gBACFC,GAAE;gBACFL,OAAM;gBACNF,QAAO;gBACPQ,IAAG;gBACHC,MAAK;gBACLC,QAAO;gBACPC,aAAY;gBACZC,eAAc;;;;AAItB;AAiBA,MAAMC,oBAAoB,CAACC;IACzB,OAAOA,MAAMC,OAAO,KAAK;AAC3B;AAEA,MAAMC,uBAEFzB,WAA6C,CAACuB,OAAOG;IACvD,MAAMtB,YAAYmB,MAAMnB,SAAS;IACjC,MAAMuB,OAAOJ,MAAMI,IAAI,IAAI;IAC3B,MAAMC,YAAYL,KAAK,CAAC,aAAa,IAAI;IAEzC,IAAI,CAACD,kBAAkBC,QAAQ;QAC7B,MAAM,EACJpB,OAAO,EAAE,EACTqB,SAASK,QAAQ,EACjBzB,WAAW0B,UAAU,EACrBH,MAAMI,KAAK,EACX,cAAcC,UAAU,EACxB,GAAGC,UACJ,GAAGV;QAEJ,qBACE,KAACW;YACCR,KAAKA;YACLZ,aAAU;YACVa,MAAMA;YACNQ,cAAYP;YACZxB,WAAWH,GAAG,2CAA2CG;YACxD,GAAG6B,QAAQ;sBAEZ,cAAA,KAAC/B;gBAAYC,MAAMA;gBAAME,iBAAgB;;;IAG/C;IAEA,MAAM,EACJmB,SAASK,QAAQ,EACjBzB,WAAW0B,UAAU,EACrBH,MAAMI,KAAK,EACX,cAAcC,UAAU,EACxBI,MAAM,EACNC,WAAW,EACX,GAAGJ,UACJ,GAAGV;IAEJ,qBACE,MAACW;QACCR,KAAKA;QACLZ,aAAU;QACVa,MAAMA;QACNQ,cAAYP;QACZxB,WAAWH,GACT,oFACAG;QAED,GAAG6B,QAAQ;;0BAEZ,KAAC/B;gBACCC,MAAM;gBACNC,WAAU;gBACVC,iBAAgB;;0BAGlB,MAAC6B;gBAAI9B,WAAU;;kCACb,KAACkC;wBAAElC,WAAU;kCACVgC;;oBAEFC,6BACC,KAACC;wBAAElC,WAAU;kCACViC;;;;;;AAMb;AAEAZ,OAAOc,WAAW,GAAG;AAErB,SAASd,MAAM,GAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/aura",
3
- "version": "1.49677.0",
3
+ "version": "1.49681.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": [