@semcore/typography 17.2.1-prerelease.0 → 17.2.1-prerelease.3

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/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [17.2.1] - 2026-06-25
5
+ ## [17.2.1] - 2026-06-26
6
6
 
7
7
  ### Fixed
8
8
 
@@ -1 +1 @@
1
- {"version":3,"file":"Blockquote.type.js","names":[],"sources":["../../../../src/components/Blockquote/Blockquote.type.ts"],"sourcesContent":["import type { BoxProps } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\n\ndeclare namespace NSBlockquote {\n type Props = BoxProps & {\n /** Source of the quote */\n author?: React.ReactNode;\n };\n\n type Component = Intergalactic.Component<'blockquote', Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type BlockquoteProps = NSBlockquote.Props;\n\nexport type { NSBlockquote };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"Blockquote.type.js","names":[],"sources":["../../../../src/components/Blockquote/Blockquote.type.ts"],"sourcesContent":["import type { NSBox } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\n\ndeclare namespace NSBlockquote {\n type Props = NSBox.Props & {\n /** Source of the quote */\n author?: React.ReactNode;\n };\n\n type Component = Intergalactic.Component<'blockquote', Props>;\n}\n\n/** @deprecated It will be removed in v19. */\nexport type BlockquoteProps = NSBlockquote.Props;\n\nexport type { NSBlockquote };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"List.type.js","names":[],"sources":["../../../../src/components/List/List.type.ts"],"sourcesContent":["import type { Flex, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type React from 'react';\n\nimport type { NSText } from '../Text/Text.type';\n\ndeclare namespace NSList {\n type Props = NSText.Props & {\n /** Marker of the entire list\n * @default • */\n marker?: React.ReactNode;\n };\n\n type DefaultProps = {\n marker: '•';\n };\n\n namespace Item {\n type Props = NSText.Props & {\n /** Individual marker of a list item */\n marker?: React.ReactNode;\n };\n\n namespace Content {\n type Props = FlexProps;\n type Component = Intergalactic.Component<typeof Flex, Props>;\n }\n\n type Component = Intergalactic.Component<'li', Props> & {\n Content: Content.Component;\n };\n }\n\n type Component = Intergalactic.Component<'ul', Props> & {\n Item: Item.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ListItemProps = NSList.Item.Props;\n/** @deprecated It will be removed in v18. */\nexport type ListItemContentProps = NSList.Item.Content.Props;\n/** @deprecated It will be removed in v18. */\nexport type ListProps = NSList.Props;\n\nexport type { NSList };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"List.type.js","names":[],"sources":["../../../../src/components/List/List.type.ts"],"sourcesContent":["import type { NSFlex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type React from 'react';\n\nimport type { NSText } from '../Text/Text.type';\n\ndeclare namespace NSList {\n type Props = NSText.Props & {\n /** Marker of the entire list\n * @default • */\n marker?: React.ReactNode;\n };\n\n type DefaultProps = {\n marker: '•';\n };\n\n namespace Item {\n type Props = NSText.Props & {\n /** Individual marker of a list item */\n marker?: React.ReactNode;\n };\n\n namespace Content {\n type Props = NSFlex.Props;\n type Component = Intergalactic.Component<NSFlex.Component, Props>;\n }\n\n type Component = Intergalactic.Component<'li', Props> & {\n Content: Content.Component;\n };\n }\n\n type Component = Intergalactic.Component<'ul', Props> & {\n Item: Item.Component;\n };\n}\n\n/** @deprecated It will be removed in v19. */\nexport type ListItemProps = NSList.Item.Props;\n/** @deprecated It will be removed in v19. */\nexport type ListItemContentProps = NSList.Item.Content.Props;\n/** @deprecated It will be removed in v19. */\nexport type ListProps = NSList.Props;\n\nexport type { NSList };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","names":["_core","require","_baseComponents","_resolveColorEnhance","_interopRequireDefault","_react","styles","sstyled","insert","TextRoot","Component","constructor","props","_defineProperty2","default","React","createRef","isEllipsized","handleEllipsized","bind","componentDidMount","initEllipsis","componentDidUpdate","prevProps","ellipsisKeys","hasChanges","some","key","asProps","ellipsis","cleanUpEllipsis","componentWillUnmount","render","_ref","_ref2","SText","Box","color","underline","lineThrough","hint","hintProps","children","ellipsisProps","resolveColor","state","cropPosition","withHint","maxLineValue","maxLine","undefined","createElement","Fragment","cn","assignProps","innerRef","getTextDecoration","Boolean","Hint","setState","shouldInit","current","Ellipsis","on","off","cleanUp","resolveColorEnhance","Text","createComponent","_default","exports"],"sources":["../../../../src/components/Text/Text.tsx"],"sourcesContent":["import { Ellipsis, Hint, Box, type EllipsisSettings } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { Root, sstyled, Component, createComponent } from '@semcore/core';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport React from 'react';\n\nimport type { NSText } from './Text.type';\nimport styles from '../../style/text.shadow.css';\n\ntype State = {\n isEllipsized: boolean;\n};\n\nclass TextRoot extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSText.Component>,\n typeof TextRoot.enhance,\n {},\n {},\n State\n> {\n private ellipsis: Ellipsis | null = null;\n private innerRef = React.createRef<HTMLElement | null>();\n\n static enhance = [resolveColorEnhance()] as const;\n static styles = styles;\n static displayName = 'Text';\n\n state = {\n isEllipsized: false,\n };\n\n constructor(props: NSText.Props) {\n super(props);\n\n this.handleEllipsized = this.handleEllipsized.bind(this);\n }\n\n componentDidMount(): void {\n this.initEllipsis();\n }\n\n componentDidUpdate(prevProps: NSText.EllipsisProps) {\n const ellipsisKeys: Array<keyof EllipsisSettings> = [\n 'cropPosition',\n 'maxLine',\n 'lastRequiredSymbols',\n 'containerElement',\n 'recalculateContainerWidth',\n 'observeChildrenMutations',\n ];\n\n const hasChanges = ellipsisKeys.some((key) => {\n return prevProps[`ellipsis:${key}`] !== this.asProps[`ellipsis:${key}`];\n });\n\n if (prevProps.ellipsis !== this.asProps.ellipsis || hasChanges) {\n this.cleanUpEllipsis();\n\n this.initEllipsis();\n }\n }\n\n componentWillUnmount() {\n this.cleanUpEllipsis();\n }\n\n render(): React.ReactNode {\n const SText = Root;\n const { color, underline, lineThrough, hint, hintProps, children, ellipsis, ellipsisProps, resolveColor } =\n this.asProps;\n const { isEllipsized } = this.state;\n\n const cropPosition = ellipsisProps?.cropPosition ?? 'end';\n let withHint = hint !== false;\n\n const maxLineValue = ellipsisProps?.maxLine;\n if (hint !== true && hintProps === undefined && maxLineValue !== undefined && maxLineValue > 1) {\n withHint = false;\n }\n\n return sstyled(styles)(\n <>\n <SText\n render={Box}\n tag='span'\n data-ui-name='Text'\n ref={this.innerRef}\n use:decoration={this.getTextDecoration(underline, lineThrough)}\n textColor={resolveColor(color)}\n use:ellipsis={ellipsis !== undefined ? ellipsis : Boolean(ellipsisProps)}\n isEllipsized={isEllipsized}\n maxLine={maxLineValue}\n trim={cropPosition}\n use:color={undefined}\n />\n {isEllipsized && withHint && (\n <Hint triggerRef={this.innerRef} {...hintProps}>\n {children}\n </Hint>\n )}\n </>,\n );\n }\n\n private handleEllipsized(isEllipsized: boolean) {\n this.setState({ isEllipsized: isEllipsized });\n }\n\n private initEllipsis() {\n const { ellipsis, ellipsisProps, hint } = this.asProps;\n const shouldInit = hint !== false || ellipsisProps?.cropPosition === 'middle';\n\n if (shouldInit && (ellipsis || ellipsisProps) && this.innerRef.current) {\n this.ellipsis =\n ellipsis instanceof Ellipsis ? ellipsis : new Ellipsis(this.innerRef.current, ellipsisProps ?? {});\n\n this.ellipsis.on('isEllipsized', this.handleEllipsized);\n }\n }\n\n private cleanUpEllipsis() {\n this.ellipsis?.off('isEllipsized', this.handleEllipsized);\n this.ellipsis?.cleanUp();\n this.setState({ isEllipsized: false });\n }\n\n private getTextDecoration(underline?: boolean, lineThrough?: boolean) {\n if (underline) {\n return 'underline';\n }\n\n if (lineThrough) {\n return 'line-through';\n }\n }\n}\n\n/**\n * Text\n *\n * {@link https://developer.semrush.com/intergalactic/style/typography/typography-api#text|API} | {@link https://developer.semrush.com/intergalactic/style/typography/typography-code|Examples}\n */\nconst Text = createComponent<\n NSText.Component,\n typeof TextRoot\n>(TextRoot);\n\nexport default Text;\n"],"mappings":";;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,eAAA,GAAAD,OAAA;AAGA,IAAAE,oBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAD,sBAAA,CAAAH,OAAA;AAA0B;AAAA,MAAAK,MAAA,8BAAAN,KAAA,CAAAO,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAS1B,MAAMC,QAAQ,SAASC,eAAS,CAM9B;EAYAC,WAAWA,CAACC,KAAmB,EAAE;IAC/B,KAAK,CAACA,KAAK,CAAC;IAAC,IAAAC,gBAAA,CAAAC,OAAA,oBAZqB,IAAI;IAAA,IAAAD,gBAAA,CAAAC,OAAA,iCACrBC,cAAK,CAACC,SAAS,CAAqB,CAAC;IAAA,IAAAH,gBAAA,CAAAC,OAAA,iBAMhD;MACNG,YAAY,EAAE;IAChB,CAAC;IAKC,IAAI,CAACC,gBAAgB,GAAG,IAAI,CAACA,gBAAgB,CAACC,IAAI,CAAC,IAAI,CAAC;EAC1D;EAEAC,iBAAiBA,CAAA,EAAS;IACxB,IAAI,CAACC,YAAY,CAAC,CAAC;EACrB;EAEAC,kBAAkBA,CAACC,SAA+B,EAAE;IAClD,MAAMC,YAA2C,GA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,GAAGjC,QAAQ,GAAG,IAAIiC,wBAAQ,CAAC,IAAI,CAACP,QAAQ,CAACM,OAAO,EAAElB,aAAa,IAAI,CAAC,CAAC,CAAC;MAEpG,IAAI,CAACd,QAAQ,CAACkC,EAAE,CAAC,cAAc,EAAE,IAAI,CAAC7C,gBAAgB,CAAC;IACzD;EACF;EAEQY,eAAeA,CAAA,EAAG;IACxB,IAAI,CAACD,QAAQ,EAAEmC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC9C,gBAAgB,CAAC;IACzD,IAAI,CAACW,QAAQ,EAAEoC,OAAO,CAAC,CAAC;IACxB,IAAI,CAACN,QAAQ,CAAC;MAAE1C,YAAY,EAAE;IAAM,CAAC,CAAC;EACxC;EAEQuC,iBAAiBA,CAAClB,SAAmB,EAAEC,WAAqB,EAAE;IACpE,IAAID,SAAS,EAAE;MACb,OAAO,WAAW;IACpB;IAEA,IAAIC,WAAW,EAAE;MACf,OAAO,cAAc;IACvB;EACF;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJA,IAAA1B,gBAAA,CAAAC,OAAA,EA5HML,QAAQ,aAUK,CAAC,IAAAyD,4BAAmB,EAAC,CAAC,CAAC;AAAA,IAAArD,gBAAA,CAAAC,OAAA,EAVpCL,QAAQ,YAWIH,MAAM;AAAA,IAAAO,gBAAA,CAAAC,OAAA,EAXlBL,QAAQ,iBAYS,MAAM;AAqH7B,MAAM0D,IAAI,GAAG,IAAAC,qBAAe,EAG1B3D,QAAQ,CAAC;AAAC,IAAA4D,QAAA,GAAAC,OAAA,CAAAxD,OAAA,GAEGqD,IAAI","ignoreList":[]}
1
+ {"version":3,"file":"Text.js","names":["_core","require","_baseComponents","_resolveColorEnhance","_interopRequireDefault","_react","styles","sstyled","insert","TextRoot","Component","constructor","props","_defineProperty2","default","React","createRef","isEllipsized","handleEllipsized","bind","componentDidMount","initEllipsis","componentDidUpdate","prevProps","ellipsisKeys","hasChanges","some","key","asProps","ellipsis","cleanUpEllipsis","componentWillUnmount","render","_ref","_ref2","SText","Box","color","underline","lineThrough","hint","hintProps","children","ellipsisProps","resolveColor","state","cropPosition","withHint","maxLineValue","maxLine","undefined","createElement","Fragment","cn","assignProps","innerRef","getTextDecoration","Boolean","Hint","setState","shouldInit","current","Ellipsis","on","off","cleanUp","resolveColorEnhance","Text","createComponent","_default","exports"],"sources":["../../../../src/components/Text/Text.tsx"],"sourcesContent":["import type { NSEllipsis } from '@semcore/base-components';\nimport { Ellipsis, Hint, Box } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { Root, sstyled, Component, createComponent } from '@semcore/core';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport React from 'react';\n\nimport type { NSText } from './Text.type';\nimport styles from '../../style/text.shadow.css';\n\ntype State = {\n isEllipsized: boolean;\n};\n\nclass TextRoot extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSText.Component>,\n typeof TextRoot.enhance,\n {},\n {},\n State\n> {\n private ellipsis: Ellipsis | null = null;\n private innerRef = React.createRef<HTMLElement | null>();\n\n static enhance = [resolveColorEnhance()] as const;\n static styles = styles;\n static displayName = 'Text';\n\n state = {\n isEllipsized: false,\n };\n\n constructor(props: NSText.Props) {\n super(props);\n\n this.handleEllipsized = this.handleEllipsized.bind(this);\n }\n\n componentDidMount(): void {\n this.initEllipsis();\n }\n\n componentDidUpdate(prevProps: NSText.EllipsisProps) {\n const ellipsisKeys: Array<keyof NSEllipsis.Settings> = [\n 'cropPosition',\n 'maxLine',\n 'lastRequiredSymbols',\n 'containerElement',\n 'recalculateContainerWidth',\n 'observeChildrenMutations',\n ];\n\n const hasChanges = ellipsisKeys.some((key) => {\n return prevProps[`ellipsis:${key}`] !== this.asProps[`ellipsis:${key}`];\n });\n\n if (prevProps.ellipsis !== this.asProps.ellipsis || hasChanges) {\n this.cleanUpEllipsis();\n\n this.initEllipsis();\n }\n }\n\n componentWillUnmount() {\n this.cleanUpEllipsis();\n }\n\n render(): React.ReactNode {\n const SText = Root;\n const { color, underline, lineThrough, hint, hintProps, children, ellipsis, ellipsisProps, resolveColor } =\n this.asProps;\n const { isEllipsized } = this.state;\n\n const cropPosition = ellipsisProps?.cropPosition ?? 'end';\n let withHint = hint !== false;\n\n const maxLineValue = ellipsisProps?.maxLine;\n if (hint !== true && hintProps === undefined && maxLineValue !== undefined && maxLineValue > 1) {\n withHint = false;\n }\n\n return sstyled(styles)(\n <>\n <SText\n render={Box}\n tag='span'\n data-ui-name='Text'\n ref={this.innerRef}\n use:decoration={this.getTextDecoration(underline, lineThrough)}\n textColor={resolveColor(color)}\n use:ellipsis={ellipsis !== undefined ? ellipsis : Boolean(ellipsisProps)}\n isEllipsized={isEllipsized}\n maxLine={maxLineValue}\n trim={cropPosition}\n use:color={undefined}\n />\n {isEllipsized && withHint && (\n <Hint triggerRef={this.innerRef} {...hintProps}>\n {children}\n </Hint>\n )}\n </>,\n );\n }\n\n private handleEllipsized(isEllipsized: boolean) {\n this.setState({ isEllipsized: isEllipsized });\n }\n\n private initEllipsis() {\n const { ellipsis, ellipsisProps, hint } = this.asProps;\n const shouldInit = hint !== false || ellipsisProps?.cropPosition === 'middle';\n\n if (shouldInit && (ellipsis || ellipsisProps) && this.innerRef.current) {\n this.ellipsis =\n ellipsis instanceof Ellipsis ? ellipsis : new Ellipsis(this.innerRef.current, ellipsisProps ?? {});\n\n this.ellipsis.on('isEllipsized', this.handleEllipsized);\n }\n }\n\n private cleanUpEllipsis() {\n this.ellipsis?.off('isEllipsized', this.handleEllipsized);\n this.ellipsis?.cleanUp();\n this.setState({ isEllipsized: false });\n }\n\n private getTextDecoration(underline?: boolean, lineThrough?: boolean) {\n if (underline) {\n return 'underline';\n }\n\n if (lineThrough) {\n return 'line-through';\n }\n }\n}\n\n/**\n * Text\n *\n * {@link https://developer.semrush.com/intergalactic/style/typography/typography-api#text|API} | {@link https://developer.semrush.com/intergalactic/style/typography/typography-code|Examples}\n */\nconst Text = createComponent<\n NSText.Component,\n typeof TextRo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AC7C,gBAAgB,CAAC;IACzD;EACF;EAEQY,eAAeA,CAAA,EAAG;IACxB,IAAI,CAACD,QAAQ,EAAEmC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC9C,gBAAgB,CAAC;IACzD,IAAI,CAACW,QAAQ,EAAEoC,OAAO,CAAC,CAAC;IACxB,IAAI,CAACN,QAAQ,CAAC;MAAE1C,YAAY,EAAE;IAAM,CAAC,CAAC;EACxC;EAEQuC,iBAAiBA,CAAClB,SAAmB,EAAEC,WAAqB,EAAE;IACpE,IAAID,SAAS,EAAE;MACb,OAAO,WAAW;IACpB;IAEA,IAAIC,WAAW,EAAE;MACf,OAAO,cAAc;IACvB;EACF;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJA,IAAA1B,gBAAA,CAAAC,OAAA,EA5HML,QAAQ,aAUK,CAAC,IAAAyD,4BAAmB,EAAC,CAAC,CAAC;AAAA,IAAArD,gBAAA,CAAAC,OAAA,EAVpCL,QAAQ,YAWIH,MAAM;AAAA,IAAAO,gBAAA,CAAAC,OAAA,EAXlBL,QAAQ,iBAYS,MAAM;AAqH7B,MAAM0D,IAAI,GAAG,IAAAC,qBAAe,EAG1B3D,QAAQ,CAAC;AAAC,IAAA4D,QAAA,GAAAC,OAAA,CAAAxD,OAAA,GAEGqD,IAAI","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Text.type.js","names":[],"sources":["../../../../src/components/Text/Text.type.ts"],"sourcesContent":["import type {\n BoxProps,\n EllipsisSettings,\n SimpleHintPopperProps,\n Ellipsis as EllipsisInstance,\n} from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type { Property } from 'csstype';\n\ndeclare namespace NSText {\n type BaseProps = {\n /** Font size and line-heights */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;\n /**\n * The text will not be wrapped on a new line and will be cut off with ellipsis\n * @deprecated use ellipsis prop instead\n **/\n noWrap?: boolean;\n /** CSS property `font-weight: 700;` */\n bold?: boolean;\n /** CSS property `font-weight: 600;` */\n semibold?: boolean;\n /** CSS property `font-weight: 500;` */\n medium?: boolean;\n /** Italicized text */\n italic?: boolean;\n /** Underlined text */\n underline?: boolean;\n /** CSS property `font-family: monospace;` */\n monospace?: boolean;\n /** Strikethrough text */\n lineThrough?: boolean;\n /** Uppercase text */\n uppercase?: boolean;\n /** Lowercase text */\n lowercase?: boolean;\n /** Capitalized text */\n capitalize?: boolean;\n /** Text color **/\n color?: string;\n /** Custom `font-size` */\n fontSize?: Property.FontSize<any>;\n /** Custom `line-height` */\n lineHeight?: Property.LineHeight<any>;\n /** Custom `font-weight` */\n fontWeight?: Property.FontWeight;\n /** Text alignment */\n textAlign?: Property.TextAlign;\n /** Enforces text color */\n use?: 'primary' | 'secondary';\n /** Makes text semi-transparent to indicate disabled state */\n disabled?: boolean;\n };\n\n type HintProps = {\n /** Manually enabled/disabled Hint */\n hint?: boolean;\n } & {\n /** Settings for a hint with full text (cropped by ellipsis) */\n [K in keyof SimpleHintPopperProps as `hint:${string & K}`]?: SimpleHintPopperProps[K];\n };\n\n type EllipsisProps = {\n /** Manually enabled/disabled Ellipsis or provide an instance of it. */\n ellipsis?: boolean | EllipsisInstance;\n } & {\n /** Settings for an Ellipsis */\n [K in keyof EllipsisSettings as `ellipsis:${string & K}`]?: EllipsisSettings[K];\n };\n\n type Props = BoxProps & NSText.BaseProps &\n (\n | {\n /** Enable formatting/styling for all nested HTML tags with our default styles for them */\n formatTags?: boolean;\n ellipsis?: never;\n ellipsisProps?: never;\n hint?: never;\n hintProps?: never;\n }\n | ({\n formatTags?: never;\n } & NSText.HintProps & NSText.EllipsisProps)\n );\n\n type Component = Intergalactic.Component<'span', Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type TextHintProps = NSText.HintProps;\n/** @deprecated It will be removed in v18. */\nexport type TextEllipsisProps = NSText.EllipsisProps;\n/** @deprecated It will be removed in v18. */\nexport type BaseTextProps = NSText.BaseProps;\n/** @deprecated It will be removed in v18. */\nexport type TextProps = NSText.Props;\n/** @deprecated It will be removed in v18. */\nexport type TextComponent = NSText.Component;\n\nexport type { NSText };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"Text.type.js","names":[],"sources":["../../../../src/components/Text/Text.type.ts"],"sourcesContent":["import type {\n NSBox,\n NSEllipsis,\n NSHint,\n Ellipsis as EllipsisInstance,\n} from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type { Property } from 'csstype';\n\ndeclare namespace NSText {\n type BaseProps = {\n /** Font size and line-heights */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;\n /**\n * The text will not be wrapped on a new line and will be cut off with ellipsis\n * @deprecated use ellipsis prop instead\n **/\n noWrap?: boolean;\n /** CSS property `font-weight: 700;` */\n bold?: boolean;\n /** CSS property `font-weight: 600;` */\n semibold?: boolean;\n /** CSS property `font-weight: 500;` */\n medium?: boolean;\n /** Italicized text */\n italic?: boolean;\n /** Underlined text */\n underline?: boolean;\n /** CSS property `font-family: monospace;` */\n monospace?: boolean;\n /** Strikethrough text */\n lineThrough?: boolean;\n /** Uppercase text */\n uppercase?: boolean;\n /** Lowercase text */\n lowercase?: boolean;\n /** Capitalized text */\n capitalize?: boolean;\n /** Text color **/\n color?: string;\n /** Custom `font-size` */\n fontSize?: Property.FontSize<any>;\n /** Custom `line-height` */\n lineHeight?: Property.LineHeight<any>;\n /** Custom `font-weight` */\n fontWeight?: Property.FontWeight;\n /** Text alignment */\n textAlign?: Property.TextAlign;\n /** Enforces text color */\n use?: 'primary' | 'secondary';\n /** Makes text semi-transparent to indicate disabled state */\n disabled?: boolean;\n };\n\n type HintProps = {\n /** Manually enabled/disabled Hint */\n hint?: boolean;\n } & {\n /** Settings for a hint with full text (cropped by ellipsis) */\n [K in keyof NSHint.Props as `hint:${string & K}`]?: NSHint.Props[K];\n };\n\n type EllipsisProps = {\n /** Manually enabled/disabled Ellipsis or provide an instance of it. */\n ellipsis?: boolean | EllipsisInstance;\n } & {\n /** Settings for an Ellipsis */\n [K in keyof NSEllipsis.Settings as `ellipsis:${string & K}`]?: NSEllipsis.Settings[K];\n };\n\n type Props = NSBox.Props & NSText.BaseProps &\n (\n | {\n /** Enable formatting/styling for all nested HTML tags with our default styles for them */\n formatTags?: boolean;\n ellipsis?: never;\n ellipsisProps?: never;\n hint?: never;\n hintProps?: never;\n }\n | ({\n formatTags?: never;\n } & NSText.HintProps & NSText.EllipsisProps)\n );\n\n type Component = Intergalactic.Component<'span', Props>;\n}\n\n/** @deprecated It will be removed in v19. */\nexport type TextHintProps = NSText.HintProps;\n/** @deprecated It will be removed in v19. */\nexport type TextEllipsisProps = NSText.EllipsisProps;\n/** @deprecated It will be removed in v19. */\nexport type BaseTextProps = NSText.BaseProps;\n/** @deprecated It will be removed in v19. */\nexport type TextProps = NSText.Props;\n/** @deprecated It will be removed in v19. */\nexport type TextComponent = NSText.Component;\n\nexport type { NSText };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Blockquote.type.js","names":[],"sources":["../../../../src/components/Blockquote/Blockquote.type.ts"],"sourcesContent":["import type { BoxProps } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\n\ndeclare namespace NSBlockquote {\n type Props = BoxProps & {\n /** Source of the quote */\n author?: React.ReactNode;\n };\n\n type Component = Intergalactic.Component<'blockquote', Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type BlockquoteProps = NSBlockquote.Props;\n\nexport type { NSBlockquote };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"Blockquote.type.js","names":[],"sources":["../../../../src/components/Blockquote/Blockquote.type.ts"],"sourcesContent":["import type { NSBox } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\n\ndeclare namespace NSBlockquote {\n type Props = NSBox.Props & {\n /** Source of the quote */\n author?: React.ReactNode;\n };\n\n type Component = Intergalactic.Component<'blockquote', Props>;\n}\n\n/** @deprecated It will be removed in v19. */\nexport type BlockquoteProps = NSBlockquote.Props;\n\nexport type { NSBlockquote };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"List.type.js","names":[],"sources":["../../../../src/components/List/List.type.ts"],"sourcesContent":["import type { Flex, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type React from 'react';\n\nimport type { NSText } from '../Text/Text.type';\n\ndeclare namespace NSList {\n type Props = NSText.Props & {\n /** Marker of the entire list\n * @default • */\n marker?: React.ReactNode;\n };\n\n type DefaultProps = {\n marker: '•';\n };\n\n namespace Item {\n type Props = NSText.Props & {\n /** Individual marker of a list item */\n marker?: React.ReactNode;\n };\n\n namespace Content {\n type Props = FlexProps;\n type Component = Intergalactic.Component<typeof Flex, Props>;\n }\n\n type Component = Intergalactic.Component<'li', Props> & {\n Content: Content.Component;\n };\n }\n\n type Component = Intergalactic.Component<'ul', Props> & {\n Item: Item.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ListItemProps = NSList.Item.Props;\n/** @deprecated It will be removed in v18. */\nexport type ListItemContentProps = NSList.Item.Content.Props;\n/** @deprecated It will be removed in v18. */\nexport type ListProps = NSList.Props;\n\nexport type { NSList };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"List.type.js","names":[],"sources":["../../../../src/components/List/List.type.ts"],"sourcesContent":["import type { NSFlex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type React from 'react';\n\nimport type { NSText } from '../Text/Text.type';\n\ndeclare namespace NSList {\n type Props = NSText.Props & {\n /** Marker of the entire list\n * @default • */\n marker?: React.ReactNode;\n };\n\n type DefaultProps = {\n marker: '•';\n };\n\n namespace Item {\n type Props = NSText.Props & {\n /** Individual marker of a list item */\n marker?: React.ReactNode;\n };\n\n namespace Content {\n type Props = NSFlex.Props;\n type Component = Intergalactic.Component<NSFlex.Component, Props>;\n }\n\n type Component = Intergalactic.Component<'li', Props> & {\n Content: Content.Component;\n };\n }\n\n type Component = Intergalactic.Component<'ul', Props> & {\n Item: Item.Component;\n };\n}\n\n/** @deprecated It will be removed in v19. */\nexport type ListItemProps = NSList.Item.Props;\n/** @deprecated It will be removed in v19. */\nexport type ListItemContentProps = NSList.Item.Content.Props;\n/** @deprecated It will be removed in v19. */\nexport type ListProps = NSList.Props;\n\nexport type { NSList };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","names":["Ellipsis","Hint","Box","Root","sstyled","Component","createComponent","resolveColorEnhance","React","styles","_sstyled","insert","TextRoot","constructor","props","_defineProperty","createRef","isEllipsized","handleEllipsized","bind","componentDidMount","initEllipsis","componentDidUpdate","prevProps","ellipsisKeys","hasChanges","some","key","asProps","ellipsis","cleanUpEllipsis","componentWillUnmount","render","_ref","_ref2","SText","color","underline","lineThrough","hint","hintProps","children","ellipsisProps","resolveColor","state","cropPosition","withHint","maxLineValue","maxLine","undefined","createElement","Fragment","cn","_assignProps","innerRef","getTextDecoration","Boolean","setState","shouldInit","current","on","off","cleanUp","Text"],"sources":["../../../../src/components/Text/Text.tsx"],"sourcesContent":["import { Ellipsis, Hint, Box, type EllipsisSettings } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { Root, sstyled, Component, createComponent } from '@semcore/core';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport React from 'react';\n\nimport type { NSText } from './Text.type';\nimport styles from '../../style/text.shadow.css';\n\ntype State = {\n isEllipsized: boolean;\n};\n\nclass TextRoot extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSText.Component>,\n typeof TextRoot.enhance,\n {},\n {},\n State\n> {\n private ellipsis: Ellipsis | null = null;\n private innerRef = React.createRef<HTMLElement | null>();\n\n static enhance = [resolveColorEnhance()] as const;\n static styles = styles;\n static displayName = 'Text';\n\n state = {\n isEllipsized: false,\n };\n\n constructor(props: NSText.Props) {\n super(props);\n\n this.handleEllipsized = this.handleEllipsized.bind(this);\n }\n\n componentDidMount(): void {\n this.initEllipsis();\n }\n\n componentDidUpdate(prevProps: NSText.EllipsisProps) {\n const ellipsisKeys: Array<keyof EllipsisSettings> = [\n 'cropPosition',\n 'maxLine',\n 'lastRequiredSymbols',\n 'containerElement',\n 'recalculateContainerWidth',\n 'observeChildrenMutations',\n ];\n\n const hasChanges = ellipsisKeys.some((key) => {\n return prevProps[`ellipsis:${key}`] !== this.asProps[`ellipsis:${key}`];\n });\n\n if (prevProps.ellipsis !== this.asProps.ellipsis || hasChanges) {\n this.cleanUpEllipsis();\n\n this.initEllipsis();\n }\n }\n\n componentWillUnmount() {\n this.cleanUpEllipsis();\n }\n\n render(): React.ReactNode {\n const SText = Root;\n const { color, underline, lineThrough, hint, hintProps, children, ellipsis, ellipsisProps, resolveColor } =\n this.asProps;\n const { isEllipsized } = this.state;\n\n const cropPosition = ellipsisProps?.cropPosition ?? 'end';\n let withHint = hint !== false;\n\n const maxLineValue = ellipsisProps?.maxLine;\n if (hint !== true && hintProps === undefined && maxLineValue !== undefined && maxLineValue > 1) {\n withHint = false;\n }\n\n return sstyled(styles)(\n <>\n <SText\n render={Box}\n tag='span'\n data-ui-name='Text'\n ref={this.innerRef}\n use:decoration={this.getTextDecoration(underline, lineThrough)}\n textColor={resolveColor(color)}\n use:ellipsis={ellipsis !== undefined ? ellipsis : Boolean(ellipsisProps)}\n isEllipsized={isEllipsized}\n maxLine={maxLineValue}\n trim={cropPosition}\n use:color={undefined}\n />\n {isEllipsized && withHint && (\n <Hint triggerRef={this.innerRef} {...hintProps}>\n {children}\n </Hint>\n )}\n </>,\n );\n }\n\n private handleEllipsized(isEllipsized: boolean) {\n this.setState({ isEllipsized: isEllipsized });\n }\n\n private initEllipsis() {\n const { ellipsis, ellipsisProps, hint } = this.asProps;\n const shouldInit = hint !== false || ellipsisProps?.cropPosition === 'middle';\n\n if (shouldInit && (ellipsis || ellipsisProps) && this.innerRef.current) {\n this.ellipsis =\n ellipsis instanceof Ellipsis ? ellipsis : new Ellipsis(this.innerRef.current, ellipsisProps ?? {});\n\n this.ellipsis.on('isEllipsized', this.handleEllipsized);\n }\n }\n\n private cleanUpEllipsis() {\n this.ellipsis?.off('isEllipsized', this.handleEllipsized);\n this.ellipsis?.cleanUp();\n this.setState({ isEllipsized: false });\n }\n\n private getTextDecoration(underline?: boolean, lineThrough?: boolean) {\n if (underline) {\n return 'underline';\n }\n\n if (lineThrough) {\n return 'line-through';\n }\n }\n}\n\n/**\n * Text\n *\n * {@link https://developer.semrush.com/intergalactic/style/typography/typography-api#text|API} | {@link https://developer.semrush.com/intergalactic/style/typography/typography-code|Examples}\n */\nconst Text = createComponent<\n NSText.Component,\n typeof TextRoot\n>(TextRoot);\n\nexport default Text;\n"],"mappings":";;;AAAA,SAASA,QAAQ,EAAEC,IAAI,EAAEC,GAAG,QAA+B,0BAA0B;AAErF,SAASC,IAAI,EAAEC,OAAO,EAAEC,SAAS,EAAEC,eAAe,QAAQ,eAAe;AACzE,OAAOC,mBAAmB,MAAM,sDAAsD;AACtF,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,MAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAS1B,MAAMC,QAAQ,SAASP,SAAS,CAM9B;EAYAQ,WAAWA,CAACC,KAAmB,EAAE;IAC/B,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,mBAZqB,IAAI;IAAAA,eAAA,gCACrBP,KAAK,CAACQ,SAAS,CAAqB,CAAC;IAAAD,eAAA,gBAMhD;MACNE,YAAY,EAAE;IAChB,CAAC;IAKC,IAAI,CAACC,gBAAgB,GAAG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,IAAI,IAAI,CAACY,QAAQ,CAACK,OAAO,EAAE;MACtE,IAAI,CAAC9B,QAAQ,GACXA,QAAQ,YAAY7B,QAAQ,GAAG6B,QAAQ,GAAG,IAAI7B,QAAQ,CAAC,IAAI,CAACsD,QAAQ,CAACK,OAAO,EAAEjB,aAAa,IAAI,CAAC,CAAC,CAAC;MAEpG,IAAI,CAACb,QAAQ,CAAC+B,EAAE,CAAC,cAAc,EAAE,IAAI,CAAC1C,gBAAgB,CAAC;IACzD;EACF;EAEQY,eAAeA,CAAA,EAAG;IACxB,IAAI,CAACD,QAAQ,EAAEgC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC3C,gBAAgB,CAAC;IACzD,IAAI,CAACW,QAAQ,EAAEiC,OAAO,CAAC,CAAC;IACxB,IAAI,CAACL,QAAQ,CAAC;MAAExC,YAAY,EAAE;IAAM,CAAC,CAAC;EACxC;EAEQsC,iBAAiBA,CAAClB,SAAmB,EAAEC,WAAqB,EAAE;IACpE,IAAID,SAAS,EAAE;MACb,OAAO,WAAW;IACpB;IAEA,IAAIC,WAAW,EAAE;MACf,OAAO,cAAc;IACvB;EACF;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJAvB,eAAA,CA5HMH,QAAQ,aAUK,CAACL,mBAAmB,CAAC,CAAC,CAAC;AAAAQ,eAAA,CAVpCH,QAAQ,YAWIH,MAAM;AAAAM,eAAA,CAXlBH,QAAQ,iBAYS,MAAM;AAqH7B,MAAMmD,IAAI,GAAGzD,eAAe,CAG1BM,QAAQ,CAAC;AAEX,eAAemD,IAAI","ignoreList":[]}
1
+ {"version":3,"file":"Text.js","names":["Ellipsis","Hint","Box","Root","sstyled","Component","createComponent","resolveColorEnhance","React","styles","_sstyled","insert","TextRoot","constructor","props","_defineProperty","createRef","isEllipsized","handleEllipsized","bind","componentDidMount","initEllipsis","componentDidUpdate","prevProps","ellipsisKeys","hasChanges","some","key","asProps","ellipsis","cleanUpEllipsis","componentWillUnmount","render","_ref","_ref2","SText","color","underline","lineThrough","hint","hintProps","children","ellipsisProps","resolveColor","state","cropPosition","withHint","maxLineValue","maxLine","undefined","createElement","Fragment","cn","_assignProps","innerRef","getTextDecoration","Boolean","setState","shouldInit","current","on","off","cleanUp","Text"],"sources":["../../../../src/components/Text/Text.tsx"],"sourcesContent":["import type { NSEllipsis } from '@semcore/base-components';\nimport { Ellipsis, Hint, Box } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { Root, sstyled, Component, createComponent } from '@semcore/core';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport React from 'react';\n\nimport type { NSText } from './Text.type';\nimport styles from '../../style/text.shadow.css';\n\ntype State = {\n isEllipsized: boolean;\n};\n\nclass TextRoot extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSText.Component>,\n typeof TextRoot.enhance,\n {},\n {},\n State\n> {\n private ellipsis: Ellipsis | null = null;\n private innerRef = React.createRef<HTMLElement | null>();\n\n static enhance = [resolveColorEnhance()] as const;\n static styles = styles;\n static displayName = 'Text';\n\n state = {\n isEllipsized: false,\n };\n\n constructor(props: NSText.Props) {\n super(props);\n\n this.handleEllipsized = this.handleEllipsized.bind(this);\n }\n\n componentDidMount(): void {\n this.initEllipsis();\n }\n\n componentDidUpdate(prevProps: NSText.EllipsisProps) {\n const ellipsisKeys: Array<keyof NSEllipsis.Settings> = [\n 'cropPosition',\n 'maxLine',\n 'lastRequiredSymbols',\n 'containerElement',\n 'recalculateContainerWidth',\n 'observeChildrenMutations',\n ];\n\n const hasChanges = ellipsisKeys.some((key) => {\n return prevProps[`ellipsis:${key}`] !== this.asProps[`ellipsis:${key}`];\n });\n\n if (prevProps.ellipsis !== this.asProps.ellipsis || hasChanges) {\n this.cleanUpEllipsis();\n\n this.initEllipsis();\n }\n }\n\n componentWillUnmount() {\n this.cleanUpEllipsis();\n }\n\n render(): React.ReactNode {\n const SText = Root;\n const { color, underline, lineThrough, hint, hintProps, children, ellipsis, ellipsisProps, resolveColor } =\n this.asProps;\n const { isEllipsized } = this.state;\n\n const cropPosition = ellipsisProps?.cropPosition ?? 'end';\n let withHint = hint !== false;\n\n const maxLineValue = ellipsisProps?.maxLine;\n if (hint !== true && hintProps === undefined && maxLineValue !== undefined && maxLineValue > 1) {\n withHint = false;\n }\n\n return sstyled(styles)(\n <>\n <SText\n render={Box}\n tag='span'\n data-ui-name='Text'\n ref={this.innerRef}\n use:decoration={this.getTextDecoration(underline, lineThrough)}\n textColor={resolveColor(color)}\n use:ellipsis={ellipsis !== undefined ? ellipsis : Boolean(ellipsisProps)}\n isEllipsized={isEllipsized}\n maxLine={maxLineValue}\n trim={cropPosition}\n use:color={undefined}\n />\n {isEllipsized && withHint && (\n <Hint triggerRef={this.innerRef} {...hintProps}>\n {children}\n </Hint>\n )}\n </>,\n );\n }\n\n private handleEllipsized(isEllipsized: boolean) {\n this.setState({ isEllipsized: isEllipsized });\n }\n\n private initEllipsis() {\n const { ellipsis, ellipsisProps, hint } = this.asProps;\n const shouldInit = hint !== false || ellipsisProps?.cropPosition === 'middle';\n\n if (shouldInit && (ellipsis || ellipsisProps) && this.innerRef.current) {\n this.ellipsis =\n ellipsis instanceof Ellipsis ? ellipsis : new Ellipsis(this.innerRef.current, ellipsisProps ?? {});\n\n this.ellipsis.on('isEllipsized', this.handleEllipsized);\n }\n }\n\n private cleanUpEllipsis() {\n this.ellipsis?.off('isEllipsized', this.handleEllipsized);\n this.ellipsis?.cleanUp();\n this.setState({ isEllipsized: false });\n }\n\n private getTextDecoration(underline?: boolean, lineThrough?: boolean) {\n if (underline) {\n return 'underline';\n }\n\n if (lineThrough) {\n return 'line-through';\n }\n }\n}\n\n/**\n * Text\n *\n * {@link https://developer.semrush.com/intergalactic/style/typography/typography-api#text|API} | {@link https://developer.semrush.com/intergalactic/style/typography/typography-code|Examples}\n */\nconst Text = createComponent<\n NSText.Component,\n typeof TextRoot\n>(TextRoot);\n\nexport default Text;\n"],"mappings":";;;AACA,SAASA,QAAQ,EA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C,CAAC;IACxB,IAAI,CAACL,QAAQ,CAAC;MAAExC,YAAY,EAAE;IAAM,CAAC,CAAC;EACxC;EAEQsC,iBAAiBA,CAAClB,SAAmB,EAAEC,WAAqB,EAAE;IACpE,IAAID,SAAS,EAAE;MACb,OAAO,WAAW;IACpB;IAEA,IAAIC,WAAW,EAAE;MACf,OAAO,cAAc;IACvB;EACF;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJAvB,eAAA,CA5HMH,QAAQ,aAUK,CAACL,mBAAmB,CAAC,CAAC,CAAC;AAAAQ,eAAA,CAVpCH,QAAQ,YAWIH,MAAM;AAAAM,eAAA,CAXlBH,QAAQ,iBAYS,MAAM;AAqH7B,MAAMmD,IAAI,GAAGzD,eAAe,CAG1BM,QAAQ,CAAC;AAEX,eAAemD,IAAI","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Text.type.js","names":[],"sources":["../../../../src/components/Text/Text.type.ts"],"sourcesContent":["import type {\n BoxProps,\n EllipsisSettings,\n SimpleHintPopperProps,\n Ellipsis as EllipsisInstance,\n} from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type { Property } from 'csstype';\n\ndeclare namespace NSText {\n type BaseProps = {\n /** Font size and line-heights */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;\n /**\n * The text will not be wrapped on a new line and will be cut off with ellipsis\n * @deprecated use ellipsis prop instead\n **/\n noWrap?: boolean;\n /** CSS property `font-weight: 700;` */\n bold?: boolean;\n /** CSS property `font-weight: 600;` */\n semibold?: boolean;\n /** CSS property `font-weight: 500;` */\n medium?: boolean;\n /** Italicized text */\n italic?: boolean;\n /** Underlined text */\n underline?: boolean;\n /** CSS property `font-family: monospace;` */\n monospace?: boolean;\n /** Strikethrough text */\n lineThrough?: boolean;\n /** Uppercase text */\n uppercase?: boolean;\n /** Lowercase text */\n lowercase?: boolean;\n /** Capitalized text */\n capitalize?: boolean;\n /** Text color **/\n color?: string;\n /** Custom `font-size` */\n fontSize?: Property.FontSize<any>;\n /** Custom `line-height` */\n lineHeight?: Property.LineHeight<any>;\n /** Custom `font-weight` */\n fontWeight?: Property.FontWeight;\n /** Text alignment */\n textAlign?: Property.TextAlign;\n /** Enforces text color */\n use?: 'primary' | 'secondary';\n /** Makes text semi-transparent to indicate disabled state */\n disabled?: boolean;\n };\n\n type HintProps = {\n /** Manually enabled/disabled Hint */\n hint?: boolean;\n } & {\n /** Settings for a hint with full text (cropped by ellipsis) */\n [K in keyof SimpleHintPopperProps as `hint:${string & K}`]?: SimpleHintPopperProps[K];\n };\n\n type EllipsisProps = {\n /** Manually enabled/disabled Ellipsis or provide an instance of it. */\n ellipsis?: boolean | EllipsisInstance;\n } & {\n /** Settings for an Ellipsis */\n [K in keyof EllipsisSettings as `ellipsis:${string & K}`]?: EllipsisSettings[K];\n };\n\n type Props = BoxProps & NSText.BaseProps &\n (\n | {\n /** Enable formatting/styling for all nested HTML tags with our default styles for them */\n formatTags?: boolean;\n ellipsis?: never;\n ellipsisProps?: never;\n hint?: never;\n hintProps?: never;\n }\n | ({\n formatTags?: never;\n } & NSText.HintProps & NSText.EllipsisProps)\n );\n\n type Component = Intergalactic.Component<'span', Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type TextHintProps = NSText.HintProps;\n/** @deprecated It will be removed in v18. */\nexport type TextEllipsisProps = NSText.EllipsisProps;\n/** @deprecated It will be removed in v18. */\nexport type BaseTextProps = NSText.BaseProps;\n/** @deprecated It will be removed in v18. */\nexport type TextProps = NSText.Props;\n/** @deprecated It will be removed in v18. */\nexport type TextComponent = NSText.Component;\n\nexport type { NSText };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"Text.type.js","names":[],"sources":["../../../../src/components/Text/Text.type.ts"],"sourcesContent":["import type {\n NSBox,\n NSEllipsis,\n NSHint,\n Ellipsis as EllipsisInstance,\n} from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type { Property } from 'csstype';\n\ndeclare namespace NSText {\n type BaseProps = {\n /** Font size and line-heights */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;\n /**\n * The text will not be wrapped on a new line and will be cut off with ellipsis\n * @deprecated use ellipsis prop instead\n **/\n noWrap?: boolean;\n /** CSS property `font-weight: 700;` */\n bold?: boolean;\n /** CSS property `font-weight: 600;` */\n semibold?: boolean;\n /** CSS property `font-weight: 500;` */\n medium?: boolean;\n /** Italicized text */\n italic?: boolean;\n /** Underlined text */\n underline?: boolean;\n /** CSS property `font-family: monospace;` */\n monospace?: boolean;\n /** Strikethrough text */\n lineThrough?: boolean;\n /** Uppercase text */\n uppercase?: boolean;\n /** Lowercase text */\n lowercase?: boolean;\n /** Capitalized text */\n capitalize?: boolean;\n /** Text color **/\n color?: string;\n /** Custom `font-size` */\n fontSize?: Property.FontSize<any>;\n /** Custom `line-height` */\n lineHeight?: Property.LineHeight<any>;\n /** Custom `font-weight` */\n fontWeight?: Property.FontWeight;\n /** Text alignment */\n textAlign?: Property.TextAlign;\n /** Enforces text color */\n use?: 'primary' | 'secondary';\n /** Makes text semi-transparent to indicate disabled state */\n disabled?: boolean;\n };\n\n type HintProps = {\n /** Manually enabled/disabled Hint */\n hint?: boolean;\n } & {\n /** Settings for a hint with full text (cropped by ellipsis) */\n [K in keyof NSHint.Props as `hint:${string & K}`]?: NSHint.Props[K];\n };\n\n type EllipsisProps = {\n /** Manually enabled/disabled Ellipsis or provide an instance of it. */\n ellipsis?: boolean | EllipsisInstance;\n } & {\n /** Settings for an Ellipsis */\n [K in keyof NSEllipsis.Settings as `ellipsis:${string & K}`]?: NSEllipsis.Settings[K];\n };\n\n type Props = NSBox.Props & NSText.BaseProps &\n (\n | {\n /** Enable formatting/styling for all nested HTML tags with our default styles for them */\n formatTags?: boolean;\n ellipsis?: never;\n ellipsisProps?: never;\n hint?: never;\n hintProps?: never;\n }\n | ({\n formatTags?: never;\n } & NSText.HintProps & NSText.EllipsisProps)\n );\n\n type Component = Intergalactic.Component<'span', Props>;\n}\n\n/** @deprecated It will be removed in v19. */\nexport type TextHintProps = NSText.HintProps;\n/** @deprecated It will be removed in v19. */\nexport type TextEllipsisProps = NSText.EllipsisProps;\n/** @deprecated It will be removed in v19. */\nexport type BaseTextProps = NSText.BaseProps;\n/** @deprecated It will be removed in v19. */\nexport type TextProps = NSText.Props;\n/** @deprecated It will be removed in v19. */\nexport type TextComponent = NSText.Component;\n\nexport type { NSText };\n"],"mappings":"","ignoreList":[]}
@@ -6,3 +6,4 @@ import type { NSBlockquote } from './Blockquote.type';
6
6
  */
7
7
  declare const Blockquote: NSBlockquote.Component;
8
8
  export default Blockquote;
9
+ //# sourceMappingURL=Blockquote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockquote.d.ts","sourceRoot":"","sources":["../../../../src/components/Blockquote/Blockquote.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAyBtD;;;;GAIG;AACH,QAAA,MAAM,UAAU,wBAA8D,CAAC;AAE/E,eAAe,UAAU,CAAC"}
@@ -1,12 +1,13 @@
1
- import type { BoxProps } from '@semcore/base-components';
1
+ import type { NSBox } from '@semcore/base-components';
2
2
  import type { Intergalactic } from '@semcore/core';
3
3
  declare namespace NSBlockquote {
4
- type Props = BoxProps & {
4
+ type Props = NSBox.Props & {
5
5
  /** Source of the quote */
6
6
  author?: React.ReactNode;
7
7
  };
8
8
  type Component = Intergalactic.Component<'blockquote', Props>;
9
9
  }
10
- /** @deprecated It will be removed in v18. */
10
+ /** @deprecated It will be removed in v19. */
11
11
  export type BlockquoteProps = NSBlockquote.Props;
12
12
  export type { NSBlockquote };
13
+ //# sourceMappingURL=Blockquote.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockquote.type.d.ts","sourceRoot":"","sources":["../../../../src/components/Blockquote/Blockquote.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,WAAW,YAAY,CAAC;IAC7B,KAAK,KAAK,GAAG,KAAK,CAAC,KAAK,GAAG;QAC3B,0BAA0B;QACxB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KAC1B,CAAC;IAEF,KAAK,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;CAC/D;AAED,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,KAAK,CAAC;AAEjD,YAAY,EAAE,YAAY,EAAE,CAAC"}
@@ -6,3 +6,4 @@ import type { NSList } from './List.type';
6
6
  */
7
7
  declare const List: NSList.Component;
8
8
  export default List;
9
+ //# sourceMappingURL=List.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/List/List.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAqE1C;;;;GAIG;AACH,QAAA,MAAM,IAAI,kBAGW,CAAC;AAEtB,eAAe,IAAI,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Flex, FlexProps } from '@semcore/base-components';
1
+ import type { NSFlex } from '@semcore/base-components';
2
2
  import type { Intergalactic } from '@semcore/core';
3
3
  import type React from 'react';
4
4
  import type { NSText } from '../Text/Text.type';
@@ -17,8 +17,8 @@ declare namespace NSList {
17
17
  marker?: React.ReactNode;
18
18
  };
19
19
  namespace Content {
20
- type Props = FlexProps;
21
- type Component = Intergalactic.Component<typeof Flex, Props>;
20
+ type Props = NSFlex.Props;
21
+ type Component = Intergalactic.Component<NSFlex.Component, Props>;
22
22
  }
23
23
  type Component = Intergalactic.Component<'li', Props> & {
24
24
  Content: Content.Component;
@@ -28,10 +28,11 @@ declare namespace NSList {
28
28
  Item: Item.Component;
29
29
  };
30
30
  }
31
- /** @deprecated It will be removed in v18. */
31
+ /** @deprecated It will be removed in v19. */
32
32
  export type ListItemProps = NSList.Item.Props;
33
- /** @deprecated It will be removed in v18. */
33
+ /** @deprecated It will be removed in v19. */
34
34
  export type ListItemContentProps = NSList.Item.Content.Props;
35
- /** @deprecated It will be removed in v18. */
35
+ /** @deprecated It will be removed in v19. */
36
36
  export type ListProps = NSList.Props;
37
37
  export type { NSList };
38
+ //# sourceMappingURL=List.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.type.d.ts","sourceRoot":"","sources":["../../../../src/components/List/List.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,WAAW,MAAM,CAAC;IACvB,KAAK,KAAK,GAAG,MAAM,CAAC,KAAK,GAAG;QAC1B;wBACgB;QAChB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KAC1B,CAAC;IAEF,KAAK,YAAY,GAAG;QAClB,MAAM,EAAE,GAAG,CAAC;KACb,CAAC;IAEF,UAAU,IAAI,CAAC;QACb,KAAK,KAAK,GAAG,MAAM,CAAC,KAAK,GAAG;YAC1B,uCAAuC;YACvC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;SAC1B,CAAC;QAEF,UAAU,OAAO,CAAC;YAChB,KAAK,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;YAC1B,KAAK,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;SACnE;QAED,KAAK,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG;YACtD,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC;SAC5B,CAAC;KACH;IAED,KAAK,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG;QACtD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;KACtB,CAAC;CACH;AAED,6CAA6C;AAC7C,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;AAC9C,6CAA6C;AAC7C,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;AAC7D,6CAA6C;AAC7C,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC;AAErC,YAAY,EAAE,MAAM,EAAE,CAAC"}
@@ -6,3 +6,4 @@ import type { NSText } from './Text.type';
6
6
  */
7
7
  declare const Text: NSText.Component;
8
8
  export default Text;
9
+ //# sourceMappingURL=Text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAmI1C;;;;GAIG;AACH,QAAA,MAAM,IAAI,kBAGC,CAAC;AAEZ,eAAe,IAAI,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { BoxProps, EllipsisSettings, SimpleHintPopperProps, Ellipsis as EllipsisInstance } from '@semcore/base-components';
1
+ import type { NSBox, NSEllipsis, NSHint, Ellipsis as EllipsisInstance } from '@semcore/base-components';
2
2
  import type { Intergalactic } from '@semcore/core';
3
3
  import type { Property } from 'csstype';
4
4
  declare namespace NSText {
@@ -49,15 +49,15 @@ declare namespace NSText {
49
49
  /** Manually enabled/disabled Hint */
50
50
  hint?: boolean;
51
51
  } & {
52
- [K in keyof SimpleHintPopperProps as `hint:${string & K}`]?: SimpleHintPopperProps[K];
52
+ [K in keyof NSHint.Props as `hint:${string & K}`]?: NSHint.Props[K];
53
53
  };
54
54
  type EllipsisProps = {
55
55
  /** Manually enabled/disabled Ellipsis or provide an instance of it. */
56
56
  ellipsis?: boolean | EllipsisInstance;
57
57
  } & {
58
- [K in keyof EllipsisSettings as `ellipsis:${string & K}`]?: EllipsisSettings[K];
58
+ [K in keyof NSEllipsis.Settings as `ellipsis:${string & K}`]?: NSEllipsis.Settings[K];
59
59
  };
60
- type Props = BoxProps & NSText.BaseProps & ({
60
+ type Props = NSBox.Props & NSText.BaseProps & ({
61
61
  /** Enable formatting/styling for all nested HTML tags with our default styles for them */
62
62
  formatTags?: boolean;
63
63
  ellipsis?: never;
@@ -69,14 +69,15 @@ declare namespace NSText {
69
69
  } & NSText.HintProps & NSText.EllipsisProps));
70
70
  type Component = Intergalactic.Component<'span', Props>;
71
71
  }
72
- /** @deprecated It will be removed in v18. */
72
+ /** @deprecated It will be removed in v19. */
73
73
  export type TextHintProps = NSText.HintProps;
74
- /** @deprecated It will be removed in v18. */
74
+ /** @deprecated It will be removed in v19. */
75
75
  export type TextEllipsisProps = NSText.EllipsisProps;
76
- /** @deprecated It will be removed in v18. */
76
+ /** @deprecated It will be removed in v19. */
77
77
  export type BaseTextProps = NSText.BaseProps;
78
- /** @deprecated It will be removed in v18. */
78
+ /** @deprecated It will be removed in v19. */
79
79
  export type TextProps = NSText.Props;
80
- /** @deprecated It will be removed in v18. */
80
+ /** @deprecated It will be removed in v19. */
81
81
  export type TextComponent = NSText.Component;
82
82
  export type { NSText };
83
+ //# sourceMappingURL=Text.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.type.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/Text.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,UAAU,EACV,MAAM,EACN,QAAQ,IAAI,gBAAgB,EAC7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS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,CAAC;AACrC,6CAA6C;AAC7C,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC;AAE7C,YAAY,EAAE,MAAM,EAAE,CAAC"}
@@ -4,3 +4,4 @@ export { default as List } from './components/List/List';
4
4
  export * from './components/Text/Text.type';
5
5
  export * from './components/Blockquote/Blockquote.type';
6
6
  export * from './components/List/List.type';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAEzD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yCAAyC,CAAC;AACxD,cAAc,6BAA6B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/typography",
3
3
  "description": "Semrush Typography Component",
4
- "version": "17.2.1-prerelease.0",
4
+ "version": "17.2.1-prerelease.3",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {},
17
17
  "peerDependencies": {
18
- "@semcore/base-components": "^17.2.1",
19
- "@semcore/icon": "^17.2.1"
18
+ "@semcore/base-components": "^17.2.2-prerelease.3",
19
+ "@semcore/icon": "^17.2.1-prerelease.3"
20
20
  },
21
21
  "repository": {
22
22
  "type": "git",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "csstype": "3.1.3",
28
- "@semcore/core": "17.2.1-prerelease.0",
29
28
  "@semcore/testing-utils": "1.0.0",
30
- "@semcore/base-components": "17.2.1-prerelease.0",
31
- "@semcore/icon": "17.2.1-prerelease.0"
29
+ "@semcore/core": "17.3.1-prerelease.3",
30
+ "@semcore/base-components": "17.2.2-prerelease.3",
31
+ "@semcore/icon": "17.2.1-prerelease.3"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "pnpm semcore-builder && pnpm vite build"