@zonos/amino 5.4.25 → 5.4.26
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/all.d.ts +0 -1
- package/package.json +1 -1
- package/components/text/LegacyText.d.ts +0 -10
- package/components/text/LegacyText.js +0 -1
package/all.d.ts
CHANGED
|
@@ -98,7 +98,6 @@ import './components/table/TableRowCollapse';
|
|
|
98
98
|
import './components/tabs/Tabs';
|
|
99
99
|
import './components/tag/Tag';
|
|
100
100
|
import './components/text-avatar/TextAvatar';
|
|
101
|
-
import './components/text/LegacyText';
|
|
102
101
|
import './components/text/Text';
|
|
103
102
|
import './components/textarea/Textarea';
|
|
104
103
|
import './components/theme-select/ThemeSelect';
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { BaseProps } from "../../types/BaseProps";
|
|
3
|
-
type LegacyTextStyle = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'code' | 'subtitle' | 'small-header' | 'input-label';
|
|
4
|
-
export type LegacyTextProps = BaseProps & {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
title?: string;
|
|
7
|
-
type?: LegacyTextStyle;
|
|
8
|
-
};
|
|
9
|
-
export declare const LegacyText: ({ children, className, style, title, type, }: LegacyTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("clsx"),s=require("../../style-inject.es-d4ddeae4.js");function l(e){return e&&e.__esModule?e:{default:e}}var a=l(t),i="Amino_LegacyText-module__subtitle--OBcTs",r="Amino_LegacyText-module__smallHeader--KFt66",n="Amino_LegacyText-module__inputLabel--obv0J";s.styleInject(".Amino_LegacyText-module__subtitle--OBcTs{color:var(--amino-gray-800);font-size:var(--amino-font-size-s);line-height:16px}.Amino_LegacyText-module__smallHeader--KFt66{font-size:13px;font-weight:500;letter-spacing:.05em;opacity:.5;text-transform:uppercase}.Amino_LegacyText-module__inputLabel--obv0J{color:var(--amino-gray-1000);display:block;font-family:var(--amino-font-sans);font-size:14px;font-weight:400;line-height:16px;margin-bottom:8px}");exports.LegacyText=function(t){var s=t.children,l=t.className,c=t.style,o=t.title;switch(t.type){case"h1":return e.jsx("h1",{className:l,style:c,title:o,children:s});case"h2":return e.jsx("h2",{className:l,style:c,title:o,children:s});case"h3":return e.jsx("h3",{className:l,style:c,title:o,children:s});case"h4":return e.jsx("h4",{className:l,style:c,title:o,children:s});case"h5":return e.jsx("h5",{className:l,style:c,title:o,children:s});case"h6":return e.jsx("h6",{className:l,style:c,title:o,children:s});case"subtitle":return e.jsx("span",{className:a.default(l,i),style:c,title:o,children:s});case"small-header":return e.jsx("span",{className:a.default(l,r),style:c,title:o,children:s});case"input-label":return e.jsx("span",{className:a.default(l,n),style:c,title:o,children:s});default:return e.jsx("p",{className:l,style:c,title:o,children:s})}};
|