@semcore/typography 5.53.2 → 5.54.0-prerelease.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.
- package/CHANGELOG.md +6 -0
- package/lib/cjs/components/Blockquote/Blockquote.js +37 -0
- package/lib/cjs/components/Blockquote/Blockquote.js.map +1 -0
- package/lib/cjs/components/Blockquote/Blockquote.type.js +2 -0
- package/lib/cjs/components/Blockquote/Blockquote.type.js.map +1 -0
- package/lib/cjs/{List.js → components/List/List.js} +26 -36
- package/lib/cjs/components/List/List.js.map +1 -0
- package/lib/cjs/components/List/List.type.js +2 -0
- package/lib/cjs/components/List/List.type.js.map +1 -0
- package/lib/cjs/components/Text/Text.js +185 -0
- package/lib/cjs/components/Text/Text.js.map +1 -0
- package/lib/cjs/components/Text/Text.type.js +2 -0
- package/lib/cjs/components/Text/Text.type.js.map +1 -0
- package/lib/cjs/index.js +45 -11
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/blockquote.shadow.css +3 -3
- package/lib/cjs/style/list.shadow.css +1 -1
- package/lib/cjs/style/text.shadow.css +370 -4
- package/lib/es6/components/Blockquote/Blockquote.js +32 -0
- package/lib/es6/components/Blockquote/Blockquote.js.map +1 -0
- package/lib/es6/components/Blockquote/Blockquote.type.js +2 -0
- package/lib/es6/components/Blockquote/Blockquote.type.js.map +1 -0
- package/lib/es6/{List.js → components/List/List.js} +22 -29
- package/lib/es6/components/List/List.js.map +1 -0
- package/lib/es6/components/List/List.type.js +2 -0
- package/lib/es6/components/List/List.type.js.map +1 -0
- package/lib/es6/components/Text/Text.js +180 -0
- package/lib/es6/components/Text/Text.js.map +1 -0
- package/lib/es6/components/Text/Text.type.js +2 -0
- package/lib/es6/components/Text/Text.type.js.map +1 -0
- package/lib/es6/index.js +6 -4
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/blockquote.shadow.css +3 -3
- package/lib/es6/style/list.shadow.css +1 -1
- package/lib/es6/style/text.shadow.css +370 -4
- package/lib/esm/components/Blockquote/Blockquote.mjs +36 -0
- package/lib/esm/components/Blockquote/Blockquote.type.mjs +1 -0
- package/lib/esm/{List.mjs → components/List/List.mjs} +30 -37
- package/lib/esm/components/List/List.type.mjs +1 -0
- package/lib/esm/components/Text/Text.mjs +172 -0
- package/lib/esm/components/Text/Text.type.mjs +1 -0
- package/lib/esm/index.mjs +6 -5
- package/lib/esm/style/blockquote.shadow.css +3 -3
- package/lib/esm/style/list.shadow.css +1 -1
- package/lib/esm/style/text.shadow.css +370 -4
- package/lib/types/components/Blockquote/Blockquote.d.ts +3 -0
- package/lib/types/components/Blockquote/Blockquote.type.d.ts +12 -0
- package/lib/types/components/List/List.d.ts +3 -0
- package/lib/types/components/List/List.type.d.ts +34 -0
- package/lib/types/components/Text/Text.d.ts +3 -0
- package/lib/types/components/Text/Text.type.d.ts +82 -0
- package/lib/types/index.d.ts +6 -117
- package/package.json +5 -5
- package/lib/cjs/Blockquote.js +0 -38
- package/lib/cjs/Blockquote.js.map +0 -1
- package/lib/cjs/Hint.js +0 -89
- package/lib/cjs/Hint.js.map +0 -1
- package/lib/cjs/List.js.map +0 -1
- package/lib/cjs/Text.js +0 -80
- package/lib/cjs/Text.js.map +0 -1
- package/lib/cjs/index.d.js +0 -2
- package/lib/cjs/index.d.js.map +0 -1
- package/lib/cjs/style/hint.shadow.css +0 -51
- package/lib/es6/Blockquote.js +0 -31
- package/lib/es6/Blockquote.js.map +0 -1
- package/lib/es6/Hint.js +0 -83
- package/lib/es6/Hint.js.map +0 -1
- package/lib/es6/List.js.map +0 -1
- package/lib/es6/Text.js +0 -73
- package/lib/es6/Text.js.map +0 -1
- package/lib/es6/index.d.js +0 -2
- package/lib/es6/index.d.js.map +0 -1
- package/lib/es6/style/hint.shadow.css +0 -51
- package/lib/esm/Blockquote.mjs +0 -37
- package/lib/esm/Hint.mjs +0 -81
- package/lib/esm/Text.mjs +0 -78
- package/lib/esm/style/hint.shadow.css +0 -51
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BoxProps } from '@semcore/base-components';
|
|
2
|
+
import type { Intergalactic } from '@semcore/core';
|
|
3
|
+
declare namespace NSBlockquote {
|
|
4
|
+
type Props = BoxProps & {
|
|
5
|
+
/** Source of the quote */
|
|
6
|
+
author?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
type Component = Intergalactic.Component<'blockquote', Props>;
|
|
9
|
+
}
|
|
10
|
+
/** @deprecated It will be removed in v18. */
|
|
11
|
+
export type BlockquoteProps = NSBlockquote.Props;
|
|
12
|
+
export type { NSBlockquote };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Flex, FlexProps } from '@semcore/base-components';
|
|
2
|
+
import type { Intergalactic } from '@semcore/core';
|
|
3
|
+
import type React from 'react';
|
|
4
|
+
import type { NSText } from '../Text/Text.type';
|
|
5
|
+
declare namespace NSList {
|
|
6
|
+
type Props = NSText.Props & {
|
|
7
|
+
/** Marker of the entire list
|
|
8
|
+
* @default • */
|
|
9
|
+
marker?: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
namespace Item {
|
|
12
|
+
type Props = NSText.Props & {
|
|
13
|
+
/** Individual marker of a list item */
|
|
14
|
+
marker?: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
namespace Content {
|
|
17
|
+
type Props = FlexProps;
|
|
18
|
+
type Component = Intergalactic.Component<typeof Flex, Props>;
|
|
19
|
+
}
|
|
20
|
+
type Component = Intergalactic.Component<'li', Props> & {
|
|
21
|
+
Content: Content.Component;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
type Component = Intergalactic.Component<'ul', Props> & {
|
|
25
|
+
Item: Item.Component;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/** @deprecated It will be removed in v18. */
|
|
29
|
+
export type ListItemProps = NSList.Item.Props;
|
|
30
|
+
/** @deprecated It will be removed in v18. */
|
|
31
|
+
export type ListItemContentProps = NSList.Item.Content.Props;
|
|
32
|
+
/** @deprecated It will be removed in v18. */
|
|
33
|
+
export type ListProps = NSList.Props;
|
|
34
|
+
export type { NSList };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { BoxProps, EllipsisSettings, SimpleHintPopperProps, Ellipsis as EllipsisInstance } from '@semcore/base-components';
|
|
2
|
+
import type { Intergalactic } from '@semcore/core';
|
|
3
|
+
import type { Property } from 'csstype';
|
|
4
|
+
declare namespace NSText {
|
|
5
|
+
type BaseProps = {
|
|
6
|
+
/** Font size and line-heights */
|
|
7
|
+
size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
|
|
8
|
+
/**
|
|
9
|
+
* The text will not be wrapped on a new line and will be cut off with ellipsis
|
|
10
|
+
* @deprecated use ellipsis prop instead
|
|
11
|
+
**/
|
|
12
|
+
noWrap?: boolean;
|
|
13
|
+
/** CSS property `font-weight: 700;` */
|
|
14
|
+
bold?: boolean;
|
|
15
|
+
/** CSS property `font-weight: 600;` */
|
|
16
|
+
semibold?: boolean;
|
|
17
|
+
/** CSS property `font-weight: 500;` */
|
|
18
|
+
medium?: boolean;
|
|
19
|
+
/** Italicized text */
|
|
20
|
+
italic?: boolean;
|
|
21
|
+
/** Underlined text */
|
|
22
|
+
underline?: boolean;
|
|
23
|
+
/** CSS property `font-family: monospace;` */
|
|
24
|
+
monospace?: boolean;
|
|
25
|
+
/** Strikethrough text */
|
|
26
|
+
lineThrough?: boolean;
|
|
27
|
+
/** Uppercase text */
|
|
28
|
+
uppercase?: boolean;
|
|
29
|
+
/** Lowercase text */
|
|
30
|
+
lowercase?: boolean;
|
|
31
|
+
/** Capitalized text */
|
|
32
|
+
capitalize?: boolean;
|
|
33
|
+
/** Text color **/
|
|
34
|
+
color?: string;
|
|
35
|
+
/** Custom `font-size` */
|
|
36
|
+
fontSize?: Property.FontSize<any>;
|
|
37
|
+
/** Custom `line-height` */
|
|
38
|
+
lineHeight?: Property.LineHeight<any>;
|
|
39
|
+
/** Custom `font-weight` */
|
|
40
|
+
fontWeight?: Property.FontWeight;
|
|
41
|
+
/** Text alignment */
|
|
42
|
+
textAlign?: Property.TextAlign;
|
|
43
|
+
/** Enforces text color */
|
|
44
|
+
use?: 'primary' | 'secondary';
|
|
45
|
+
/** Makes text semi-transparent to indicate disabled state */
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
};
|
|
48
|
+
type HintProps = {
|
|
49
|
+
/** Manually enabled/disabled Hint */
|
|
50
|
+
hint?: boolean;
|
|
51
|
+
} & {
|
|
52
|
+
[K in keyof SimpleHintPopperProps as `hint:${string & K}`]?: SimpleHintPopperProps[K];
|
|
53
|
+
};
|
|
54
|
+
type EllipsisProps = {
|
|
55
|
+
/** Manually enabled/disabled Ellipsis or provide an instance of it. */
|
|
56
|
+
ellipsis?: boolean | EllipsisInstance;
|
|
57
|
+
} & {
|
|
58
|
+
[K in keyof EllipsisSettings as `ellipsis:${string & K}`]?: EllipsisSettings[K];
|
|
59
|
+
};
|
|
60
|
+
type Props = BoxProps & NSText.BaseProps & ({
|
|
61
|
+
/** Enable formatting/styling for all nested HTML tags with our default styles for them */
|
|
62
|
+
formatTags?: boolean;
|
|
63
|
+
ellipsis?: never;
|
|
64
|
+
ellipsisProps?: never;
|
|
65
|
+
hint?: never;
|
|
66
|
+
hintProps?: never;
|
|
67
|
+
} | ({
|
|
68
|
+
formatTags?: never;
|
|
69
|
+
} & NSText.HintProps & NSText.EllipsisProps));
|
|
70
|
+
type Component = Intergalactic.Component<'span', Props>;
|
|
71
|
+
}
|
|
72
|
+
/** @deprecated It will be removed in v18. */
|
|
73
|
+
export type TextHintProps = NSText.HintProps;
|
|
74
|
+
/** @deprecated It will be removed in v18. */
|
|
75
|
+
export type TextEllipsisProps = NSText.EllipsisProps;
|
|
76
|
+
/** @deprecated It will be removed in v18. */
|
|
77
|
+
export type BaseTextProps = NSText.BaseProps;
|
|
78
|
+
/** @deprecated It will be removed in v18. */
|
|
79
|
+
export type TextProps = NSText.Props;
|
|
80
|
+
/** @deprecated It will be removed in v18. */
|
|
81
|
+
export type TextComponent = NSText.Component;
|
|
82
|
+
export type { NSText };
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,117 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/** @deprecated */
|
|
9
|
-
export interface ITextProps extends TextProps, UnknownProperties {}
|
|
10
|
-
export type TextProps = BoxProps & {
|
|
11
|
-
/** Font size and line-heights */
|
|
12
|
-
size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
|
|
13
|
-
/** The text will not be wrapped on a new line and will be cut off with ellipsis */
|
|
14
|
-
noWrap?: boolean;
|
|
15
|
-
/** CSS property `font-weight: 700;` */
|
|
16
|
-
bold?: boolean;
|
|
17
|
-
/** CSS property `font-weight: 600;` */
|
|
18
|
-
semibold?: boolean;
|
|
19
|
-
/** CSS property `font-weight: 500;` */
|
|
20
|
-
medium?: boolean;
|
|
21
|
-
/** Italicized text */
|
|
22
|
-
italic?: boolean;
|
|
23
|
-
/** Underlined text */
|
|
24
|
-
underline?: boolean;
|
|
25
|
-
/** CSS property `font-family: monospace;` */
|
|
26
|
-
monospace?: boolean;
|
|
27
|
-
/** Strikethrough text */
|
|
28
|
-
lineThrough?: boolean;
|
|
29
|
-
/** Uppercase text */
|
|
30
|
-
uppercase?: boolean;
|
|
31
|
-
/** Lowercase text */
|
|
32
|
-
lowercase?: boolean;
|
|
33
|
-
/** Capitalized text */
|
|
34
|
-
capitalize?: boolean;
|
|
35
|
-
/** Text color **/
|
|
36
|
-
color?: string;
|
|
37
|
-
/** Custom `font-size` */
|
|
38
|
-
fontSize?: Property.FontSize<any>;
|
|
39
|
-
/** Custom `line-height` */
|
|
40
|
-
lineHeight?: Property.LineHeight<any>;
|
|
41
|
-
/** Custom `font-weight` */
|
|
42
|
-
fontWeight?: Property.FontWeight;
|
|
43
|
-
/** Text alignment */
|
|
44
|
-
textAlign?: Property.TextAlign;
|
|
45
|
-
/** Enforces text color */
|
|
46
|
-
use?: 'primary' | 'secondary';
|
|
47
|
-
/** Makes text semi-transparent to indicate disabled state */
|
|
48
|
-
disabled?: boolean;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
/** @deprecated */
|
|
52
|
-
export interface IListProps extends ListProps, UnknownProperties {}
|
|
53
|
-
export type ListProps = TextProps & {
|
|
54
|
-
/** Marker of the entire list
|
|
55
|
-
* @default • */
|
|
56
|
-
marker?: React.ReactNode;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
/** @deprecated */
|
|
60
|
-
export interface IListItemProps extends ListItemProps, UnknownProperties {}
|
|
61
|
-
export type ListItemProps = TextProps & {
|
|
62
|
-
/** Individual marker of a list item */
|
|
63
|
-
marker?: React.ReactNode;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export type ListItemContentProps = FlexProps;
|
|
67
|
-
|
|
68
|
-
/** @deprecated */
|
|
69
|
-
export interface IListContext extends ListContext, UnknownProperties {}
|
|
70
|
-
export type ListContext = {
|
|
71
|
-
getItemProps: PropGetterFn;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/** @deprecated */
|
|
75
|
-
export interface IHintProps extends HintProps, UnknownProperties {}
|
|
76
|
-
export type TypographyHintProps = TextProps &
|
|
77
|
-
KeyboardFocusProps & {
|
|
78
|
-
/** The value responsible for the activity of the element
|
|
79
|
-
* @default false
|
|
80
|
-
*/
|
|
81
|
-
disabled?: boolean;
|
|
82
|
-
/** Enable `active` state */
|
|
83
|
-
active?: boolean;
|
|
84
|
-
/** Left addon hint */
|
|
85
|
-
addonLeft?: React.ElementType;
|
|
86
|
-
/** Right addon hint */
|
|
87
|
-
addonRight?: React.ElementType;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
/** @deprecated use `TypographyHintProps` instead */
|
|
91
|
-
export type HintProps = TypographyHintProps;
|
|
92
|
-
|
|
93
|
-
/** @deprecated */
|
|
94
|
-
export interface IBlockquoteProps extends BlockquoteProps, UnknownProperties {}
|
|
95
|
-
export type BlockquoteProps = BoxProps & {
|
|
96
|
-
/** Source of the quote */
|
|
97
|
-
author?: React.ReactNode;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
declare const Hint: Intergalactic.Component<'abbr', HintProps> & {
|
|
101
|
-
Addon: typeof Box;
|
|
102
|
-
Text: typeof Box;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
declare const Item: Intergalactic.Component<'li', ListItemProps> & {
|
|
106
|
-
Content: Intergalactic.Component<typeof Flex, ListItemContentProps>;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
declare const List: Intergalactic.Component<'ul', ListProps> & {
|
|
110
|
-
Item: typeof Item;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
declare const Text: Intergalactic.Component<'span', TextProps>;
|
|
114
|
-
|
|
115
|
-
declare const Blockquote: Intergalactic.Component<'blockquote', BlockquoteProps>;
|
|
116
|
-
|
|
117
|
-
export { Text, List, Hint, Blockquote };
|
|
1
|
+
export { default as Text } from './components/Text/Text';
|
|
2
|
+
export { default as Blockquote } from './components/Blockquote/Blockquote';
|
|
3
|
+
export { default as List } from './components/List/List';
|
|
4
|
+
export * from './components/Text/Text.type';
|
|
5
|
+
export * from './components/Blockquote/Blockquote.type';
|
|
6
|
+
export * from './components/List/List.type';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/typography",
|
|
3
3
|
"description": "Semrush Typography Component",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.54.0-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/utils": "4.
|
|
18
|
-
"@semcore/flex-box": "5.
|
|
19
|
-
"@semcore/icon": "4.
|
|
17
|
+
"@semcore/utils": "4.49.0-prerelease.0",
|
|
18
|
+
"@semcore/flex-box": "5.42.0-prerelease.0",
|
|
19
|
+
"@semcore/icon": "4.63.0-prerelease.0",
|
|
20
20
|
"csstype": "3.0.8"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@semcore/core": "^2.
|
|
23
|
+
"@semcore/core": "^2.40.0-prerelease.0",
|
|
24
24
|
"react": "16.8 - 18",
|
|
25
25
|
"react-dom": "16.8 - 18"
|
|
26
26
|
},
|
package/lib/cjs/Blockquote.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
-
var _index = require("@semcore/utils/lib/core/index");
|
|
10
|
-
var _core = require("@semcore/core");
|
|
11
|
-
var _react = _interopRequireDefault(require("react"));
|
|
12
|
-
var _isNode = _interopRequireDefault(require("@semcore/utils/lib/isNode"));
|
|
13
|
-
var _flexBox = require("@semcore/flex-box");
|
|
14
|
-
/*!__reshadow-styles__:"./style/blockquote.shadow.css"*/
|
|
15
|
-
var styles = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SBlockquote_3xpje_gg_{position:relative;display:flex;font-style:italic;font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);color:var(--intergalactic-text-primary, #191b23)}.___SDoubleQuotation_3xpje_gg_{position:relative;margin-right:var(--intergalactic-spacing-5x, 20px);font-family:\"Times New Roman\",serif;font-style:normal;font-size:68px;line-height:52px;color:var(--intergalactic-text-large-secondary, #a9abb6)}.___SAuthor_3xpje_gg_{display:block;margin-top:var(--intergalactic-spacing-4x, 16px);color:var(--intergalactic-text-secondary, #6c6e79);font-style:normal;font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}", /*__inner_css_end__*/"3xpje_gg_"),
|
|
16
|
-
/*__reshadow_css_end__*/
|
|
17
|
-
{
|
|
18
|
-
"__SBlockquote": "___SBlockquote_3xpje_gg_",
|
|
19
|
-
"__SDoubleQuotation": "___SDoubleQuotation_3xpje_gg_",
|
|
20
|
-
"__SAuthor": "___SAuthor_3xpje_gg_"
|
|
21
|
-
});
|
|
22
|
-
function Blockquote(props, ref) {
|
|
23
|
-
var _ref = arguments[0],
|
|
24
|
-
_ref2;
|
|
25
|
-
var SBlockquote = _flexBox.Box;
|
|
26
|
-
var SDoubleQuotation = 'span';
|
|
27
|
-
var SAuthor = 'cite';
|
|
28
|
-
var children = props.children,
|
|
29
|
-
author = props.author;
|
|
30
|
-
return _ref2 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SBlockquote, _ref2.cn("SBlockquote", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
31
|
-
"tag": 'blockquote',
|
|
32
|
-
"ref": ref
|
|
33
|
-
}, _ref))), /*#__PURE__*/_react["default"].createElement(SDoubleQuotation, _ref2.cn("SDoubleQuotation", {}), "\u201C"), /*#__PURE__*/_react["default"].createElement("span", _ref2.cn("span", {}), children, (0, _isNode["default"])(author) && /*#__PURE__*/_react["default"].createElement(SAuthor, _ref2.cn("SAuthor", {}), author)));
|
|
34
|
-
}
|
|
35
|
-
Blockquote.displayName = 'Blockquote';
|
|
36
|
-
var _default = (0, _core.createBaseComponent)(Blockquote);
|
|
37
|
-
exports["default"] = _default;
|
|
38
|
-
//# sourceMappingURL=Blockquote.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Blockquote.js","names":["_core","require","_react","_interopRequireDefault","_isNode","_flexBox","styles","_index","sstyled","insert","Blockquote","props","ref","_ref","arguments[0]","_ref2","SBlockquote","Box","SDoubleQuotation","SAuthor","children","author","createElement","cn","_objectSpread2","assignProps","isNode","displayName","_default","createBaseComponent","exports"],"sources":["../../src/Blockquote.jsx"],"sourcesContent":["import React from 'react';\nimport { createBaseComponent, Root, sstyled } from '@semcore/core';\nimport isNode from '@semcore/utils/lib/isNode';\nimport { Box } from '@semcore/flex-box';\n\nimport styles from './style/blockquote.shadow.css';\n\nfunction Blockquote(props, ref) {\n const SBlockquote = Root;\n const SDoubleQuotation = 'span';\n const SAuthor = 'cite';\n const { children, author } = props;\n\n return sstyled(styles)(\n <SBlockquote render={Box} tag='blockquote' ref={ref}>\n <SDoubleQuotation>“</SDoubleQuotation>\n <span>\n {children}\n {isNode(author) && <SAuthor>{author}</SAuthor>}\n </span>\n </SBlockquote>,\n );\n}\n\nBlockquote.displayName = 'Blockquote';\n\nexport default createBaseComponent(Blockquote);\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAAwC;AAAA,IAAAK,MAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;AAAA;AAIxC,SAASC,UAAUA,CAACC,KAAK,EAAEC,GAAG,EAAE;EAAA,IAAAC,IAAA,GAAAC,YAAA;IAAAC,KAAA;EAC9B,IAAMC,WAAW,GAMMC,YAAG;EAL1B,IAAMC,gBAAgB,GAAG,MAAM;EAC/B,IAAMC,OAAO,GAAG,MAAM;EACtB,IAAQC,QAAQ,GAAaT,KAAK,CAA1BS,QAAQ;IAAEC,MAAM,GAAKV,KAAK,CAAhBU,MAAM;EAExB,OAAAN,KAAA,GAAO,IAAAP,aAAO,EAACF,MAAM,CAAC,eACpBJ,MAAA,YAAAoB,aAAA,CAACN,WAAW,EAAAD,KAAA,CAAAQ,EAAA,oBAAAC,cAAA,qBAAAxB,KAAA,CAAAyB,WAAA;IAAA,OAAkB,YAAY;IAAA,OAAMb;EAAG,GAAAC,IAAA,kBACjDX,MAAA,YAAAoB,aAAA,CAACJ,gBAAgB,EAAAH,KAAA,CAAAQ,EAAA,0BAAC,QAAC,CAAmB,eACtCrB,MAAA,YAAAoB,aAAA,SAAAP,KAAA,CAAAQ,EAAA,cACGH,QAAQ,EACR,IAAAM,kBAAM,EAACL,MAAM,CAAC,iBAAInB,MAAA,YAAAoB,aAAA,CAACH,OAAO,EAAAJ,KAAA,CAAAQ,EAAA,iBAAEF,MAAM,CAAW,CACzC,CACK;AAElB;AAEAX,UAAU,CAACiB,WAAW,GAAG,YAAY;AAAC,IAAAC,QAAA,GAEvB,IAAAC,yBAAmB,EAACnB,UAAU,CAAC;AAAAoB,OAAA,cAAAF,QAAA"}
|
package/lib/cjs/Hint.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
14
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
var _index = require("@semcore/utils/lib/core/index");
|
|
16
|
-
var _core = _interopRequireWildcard(require("@semcore/core"));
|
|
17
|
-
var _react = _interopRequireDefault(require("react"));
|
|
18
|
-
var _flexBox = require("@semcore/flex-box");
|
|
19
|
-
var _keyboardFocusEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/keyboardFocusEnhance"));
|
|
20
|
-
var _addonTextChildren = _interopRequireDefault(require("@semcore/utils/lib/addonTextChildren"));
|
|
21
|
-
var _Text = _interopRequireDefault(require("./Text"));
|
|
22
|
-
/*!__reshadow-styles__:"./style/hint.shadow.css"*/
|
|
23
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SHint_pakd3_gg_{display:inline-block;transition:all .15s ease-in-out;-webkit-text-decoration:none;text-decoration:none;outline:0;cursor:pointer;color:var(--intergalactic-text-secondary, #6c6e79)}.___SHint_pakd3_gg_.__active_pakd3_gg_,.___SHint_pakd3_gg_:active{color:var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SHint_pakd3_gg_:hover{color:var(--intergalactic-text-hint-hover-active, #484a54)}}.___SHint_pakd3_gg_.__keyboardFocused_pakd3_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHint_pakd3_gg_.__disabled_pakd3_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SAddon_pakd3_gg_{vertical-align:middle;display:inline-flex}.___SHint_pakd3_gg_ .___SAddon_pakd3_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SHint_pakd3_gg_ .___SAddon_pakd3_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SText_pakd3_gg_{border-bottom-width:1px;border-bottom-style:dashed;border-color:currentColor}@media (prefers-reduced-motion){.___SHint_pakd3_gg_{transition:none}}", /*__inner_css_end__*/"pakd3_gg_"),
|
|
24
|
-
/*__reshadow_css_end__*/
|
|
25
|
-
{
|
|
26
|
-
"__SHint": "___SHint_pakd3_gg_",
|
|
27
|
-
"_keyboardFocused": "__keyboardFocused_pakd3_gg_",
|
|
28
|
-
"_disabled": "__disabled_pakd3_gg_",
|
|
29
|
-
"__SAddon": "___SAddon_pakd3_gg_",
|
|
30
|
-
"__SText": "___SText_pakd3_gg_",
|
|
31
|
-
"_active": "__active_pakd3_gg_"
|
|
32
|
-
});
|
|
33
|
-
var RootHint = /*#__PURE__*/function (_Component) {
|
|
34
|
-
(0, _inherits2["default"])(RootHint, _Component);
|
|
35
|
-
var _super = (0, _createSuper2["default"])(RootHint);
|
|
36
|
-
function RootHint() {
|
|
37
|
-
(0, _classCallCheck2["default"])(this, RootHint);
|
|
38
|
-
return _super.apply(this, arguments);
|
|
39
|
-
}
|
|
40
|
-
(0, _createClass2["default"])(RootHint, [{
|
|
41
|
-
key: "render",
|
|
42
|
-
value: function render() {
|
|
43
|
-
var _ref = this.asProps,
|
|
44
|
-
_ref4;
|
|
45
|
-
var SHint = _Text["default"];
|
|
46
|
-
var _this$asProps = this.asProps,
|
|
47
|
-
styles = _this$asProps.styles,
|
|
48
|
-
Children = _this$asProps.Children,
|
|
49
|
-
addonLeft = _this$asProps.addonLeft,
|
|
50
|
-
addonRight = _this$asProps.addonRight;
|
|
51
|
-
return _ref4 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SHint, _ref4.cn("SHint", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
52
|
-
"tag": 'abbr'
|
|
53
|
-
}, _ref))), addonLeft ? /*#__PURE__*/_react["default"].createElement(Hint.Addon, {
|
|
54
|
-
tag: addonLeft
|
|
55
|
-
}) : null, (0, _addonTextChildren["default"])(Children, Hint.Text, Hint.Addon), addonRight ? /*#__PURE__*/_react["default"].createElement(Hint.Addon, {
|
|
56
|
-
tag: addonRight
|
|
57
|
-
}) : null);
|
|
58
|
-
}
|
|
59
|
-
}]);
|
|
60
|
-
return RootHint;
|
|
61
|
-
}(_core.Component);
|
|
62
|
-
(0, _defineProperty2["default"])(RootHint, "displayName", 'Hint');
|
|
63
|
-
(0, _defineProperty2["default"])(RootHint, "style", style);
|
|
64
|
-
(0, _defineProperty2["default"])(RootHint, "enhance", [(0, _keyboardFocusEnhance["default"])()]);
|
|
65
|
-
function Addon(props) {
|
|
66
|
-
var _ref2 = arguments[0],
|
|
67
|
-
_ref5;
|
|
68
|
-
var SAddon = _flexBox.Box;
|
|
69
|
-
var styles = props.styles;
|
|
70
|
-
return _ref5 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SAddon, _ref5.cn("SAddon", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
71
|
-
"tag": 'span'
|
|
72
|
-
}, _ref2))));
|
|
73
|
-
}
|
|
74
|
-
function HintText(props) {
|
|
75
|
-
var _ref3 = arguments[0],
|
|
76
|
-
_ref6;
|
|
77
|
-
var SText = _flexBox.Box;
|
|
78
|
-
var styles = props.styles;
|
|
79
|
-
return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SText, _ref6.cn("SText", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
80
|
-
"tag": 'span'
|
|
81
|
-
}, _ref3))));
|
|
82
|
-
}
|
|
83
|
-
var Hint = (0, _core["default"])(RootHint, {
|
|
84
|
-
Text: HintText,
|
|
85
|
-
Addon: Addon
|
|
86
|
-
});
|
|
87
|
-
var _default = Hint;
|
|
88
|
-
exports["default"] = _default;
|
|
89
|
-
//# sourceMappingURL=Hint.js.map
|
package/lib/cjs/Hint.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Hint.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_keyboardFocusEnhance","_addonTextChildren","_Text","style","_index","sstyled","insert","RootHint","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","render","_ref","asProps","_ref4","SHint","Text","_this$asProps","styles","Children","addonLeft","addonRight","createElement","cn","_objectSpread2","assignProps","Hint","Addon","tag","addonTextChildren","Component","_defineProperty2","keyboardFocusEnhance","props","_ref2","arguments[0]","_ref5","SAddon","Box","HintText","_ref3","_ref6","SText","createComponent","_default","exports"],"sources":["../../src/Hint.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport addonTextChildren from '@semcore/utils/lib/addonTextChildren';\n\nimport Text from './Text';\n\nimport style from './style/hint.shadow.css';\n\nclass RootHint extends Component {\n static displayName = 'Hint';\n static style = style;\n static enhance = [keyboardFocusEnhance()];\n\n render() {\n const SHint = Root;\n const { styles, Children, addonLeft, addonRight } = this.asProps;\n return sstyled(styles)(\n <SHint render={Text} tag='abbr'>\n {addonLeft ? <Hint.Addon tag={addonLeft} /> : null}\n {addonTextChildren(Children, Hint.Text, Hint.Addon)}\n {addonRight ? <Hint.Addon tag={addonRight} /> : null}\n </SHint>,\n );\n }\n}\n\nfunction Addon(props) {\n const SAddon = Root;\n const { styles } = props;\n return sstyled(styles)(<SAddon render={Box} tag='span' />);\n}\n\nfunction HintText(props) {\n const SText = Root;\n const { styles } = props;\n return sstyled(styles)(<SText render={Box} tag='span' />);\n}\n\nconst Hint = createComponent(RootHint, {\n Text: HintText,\n Addon,\n});\n\nexport default Hint;\n"],"mappings":";;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,kBAAA,GAAAH,sBAAA,CAAAF,OAAA;AAEA,IAAAM,KAAA,GAAAJ,sBAAA,CAA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/List.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_isNode","_findComponent","_Text","style","_index","sstyled","insert","ListRoot","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","getItemProps","marker","asProps","render","_ref","_ref4","SList","Text","styles","createElement","cn","_objectSpread2","assignProps","Component","_defineProperty2","ItemRoot","_Component2","_super2","_ref2","_ref5","SItem","_this$asProps","children","markerNode","Children","SMarker","SContent","isAdvancedMode","isAdvanceMode","List","Item","Content","displayName","isNode","props","_ref3","arguments[0]","_ref6","Flex","createComponent","_default","exports"],"sources":["../../src/List.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Flex } from '@semcore/flex-box';\nimport isNode from '@semcore/utils/lib/isNode';\nimport { isAdvanceMode } from '@semcore/utils/lib/findComponent';\n\nimport Text from './Text';\n\nimport style from './style/list.shadow.css';\n\nclass ListRoot extends Component {\n static displayName = 'List';\n static style = style;\n static defaultProps = {\n marker: '•',\n };\n\n getItemProps() {\n const { marker } = this.asProps;\n return {\n marker,\n };\n }\n\n render() {\n const SList = Root;\n const { styles } = this.asProps;\n return sstyled(styles)(<SList render={Text} tag='ul' role='list' />);\n }\n}\n\nclass ItemRoot extends Component {\n static style = style;\n static displayName = 'Item';\n\n render() {\n const SItem = Root;\n const { styles, children, marker: markerNode, Children } = this.asProps;\n const SMarker = 'span';\n const SContent = 'div';\n\n const isAdvancedMode = isAdvanceMode(Children, [List.Item.Content.displayName]);\n\n return sstyled(styles)(\n <SItem render={Text} tag='li' role='listitem'>\n {isNode(markerNode) && <SMarker aria-hidden='true'>{markerNode}</SMarker>}\n {isAdvancedMode ? <Children /> : <SContent>{children}</SContent>}\n </SItem>,\n );\n }\n}\n\nfunction Content(props) {\n const { styles, children } = props;\n const SContent = Root;\n\n return sstyled(styles)(<SContent render={Flex}>{children}</SContent>);\n}\n\nContent.displayName = 'Content';\n\nconst Item = createComponent(ItemRoot, { Content });\n\nconst List = createComponent(ListRoot, { Item });\n\nexport default List;\n"],"mappings":";;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AAEA,IAAAM,KAAA,GAAAJ,sBAAA,CAAAF,OAAA;AAA0B;AAAA,IAAAO,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,IAIpBC,QAAQ,0BAAAC,UAAA;EAAA,IAAAC,UAAA,aAAAF,QAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,OAAAC,aAAA,aAAAJ,QAAA;EAAA,SAAAA,SAAA;IAAA,IAAAK,gBAAA,mBAAAL,QAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAA,IAAAC,aAAA,aAAAR,QAAA;IAAAS,GAAA;IAAAC,KAAA,EAOZ,SAAAC,aAAA,EAAe;MACb,IAAQC,MAAM,GAAK,IAAI,CAACC,OAAO,CAAvBD,MAAM;MACd,OAAO;QACLA,MAAM,EAANA;MACF,CAAC;IACH;EAAC;IAAAH,GAAA;IAAAC,KAAA,EAED,SAAAI,OAAA,EAAS;MAAA,IAAAC,IAAA,QAAAF,OAAA;QAAAG,KAAA;MACP,IAAMC,KAAK,GAE2BC,gBAAI;MAD1C,IAAQC,MAAM,GAAK,IAAI,CAACN,OAAO,CAAvBM,MAAM;MACd,OAAAH,KAAA,GAAO,IAAAlB,aAAO,EAACqB,MAAM,CAAC,eAAC7B,MAAA,YAAA8B,aAAA,CAACH,KAAK,EAAAD,KAAA,CAAAK,EAAA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EAAClD,QAAQ,EAAE;EAAEyC,IAAI,EAAJA;AAAK,CAAC,CAAC;AAAC,IAAAU,QAAA,GAElCX,IAAI;AAAAY,OAAA,cAAAD,QAAA"}
|
package/lib/cjs/Text.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
-
var _index = require("@semcore/utils/lib/core/index");
|
|
10
|
-
var _core = require("@semcore/core");
|
|
11
|
-
var _react = _interopRequireDefault(require("react"));
|
|
12
|
-
var _flexBox = require("@semcore/flex-box");
|
|
13
|
-
var _useColorResolver = require("@semcore/utils/lib/use/useColorResolver");
|
|
14
|
-
/*!__reshadow-styles__:"./style/text.shadow.css"*/
|
|
15
|
-
var styles = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SText_f18pk_gg_{padding:0;margin:0}.___SText_f18pk_gg_._size_100_f18pk_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_f18pk_gg_._size_200_f18pk_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_f18pk_gg_._size_300_f18pk_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_f18pk_gg_._size_400_f18pk_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_f18pk_gg_._size_500_f18pk_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_f18pk_gg_._size_600_f18pk_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_f18pk_gg_._size_700_f18pk_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_f18pk_gg_._size_800_f18pk_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_f18pk_gg_.__noWrap_f18pk_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_f18pk_gg_.__medium_f18pk_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_f18pk_gg_.__semibold_f18pk_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_f18pk_gg_.__bold_f18pk_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_f18pk_gg_.__italic_f18pk_gg_{font-style:italic}.___SText_f18pk_gg_.__monospace_f18pk_gg_{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_f18pk_gg_.__uppercase_f18pk_gg_{text-transform:uppercase}.___SText_f18pk_gg_.__lowercase_f18pk_gg_{text-transform:lowercase}.___SText_f18pk_gg_.__capitalize_f18pk_gg_{text-transform:capitalize}.___SText_f18pk_gg_.__decoration_f18pk_gg_{-webkit-text-decoration:var(--decoration_f18pk);text-decoration:var(--decoration_f18pk)}.___SText_f18pk_gg_.__color_f18pk_gg_{color:var(--color_f18pk)}.___SText_f18pk_gg_.__fontSize_f18pk_gg_{font-size:var(--fontSize_f18pk)}.___SText_f18pk_gg_.__lineHeight_f18pk_gg_{line-height:var(--lineHeight_f18pk)}.___SText_f18pk_gg_.__fontWeight_f18pk_gg_{font-weight:var(--fontWeight_f18pk)}.___SText_f18pk_gg_.__textAlign_f18pk_gg_{text-align:var(--textAlign_f18pk)}.___SText_f18pk_gg_._use_primary_f18pk_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_f18pk_gg_._use_secondary_f18pk_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_f18pk_gg_.__disabled_f18pk_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}", /*__inner_css_end__*/"f18pk_gg_"),
|
|
16
|
-
/*__reshadow_css_end__*/
|
|
17
|
-
{
|
|
18
|
-
"__SText": "___SText_f18pk_gg_",
|
|
19
|
-
"_size_100": "_size_100_f18pk_gg_",
|
|
20
|
-
"_size_200": "_size_200_f18pk_gg_",
|
|
21
|
-
"_size_300": "_size_300_f18pk_gg_",
|
|
22
|
-
"_size_400": "_size_400_f18pk_gg_",
|
|
23
|
-
"_size_500": "_size_500_f18pk_gg_",
|
|
24
|
-
"_size_600": "_size_600_f18pk_gg_",
|
|
25
|
-
"_size_700": "_size_700_f18pk_gg_",
|
|
26
|
-
"_size_800": "_size_800_f18pk_gg_",
|
|
27
|
-
"_noWrap": "__noWrap_f18pk_gg_",
|
|
28
|
-
"_medium": "__medium_f18pk_gg_",
|
|
29
|
-
"_semibold": "__semibold_f18pk_gg_",
|
|
30
|
-
"_bold": "__bold_f18pk_gg_",
|
|
31
|
-
"_italic": "__italic_f18pk_gg_",
|
|
32
|
-
"_monospace": "__monospace_f18pk_gg_",
|
|
33
|
-
"_uppercase": "__uppercase_f18pk_gg_",
|
|
34
|
-
"_lowercase": "__lowercase_f18pk_gg_",
|
|
35
|
-
"_capitalize": "__capitalize_f18pk_gg_",
|
|
36
|
-
"_decoration": "__decoration_f18pk_gg_",
|
|
37
|
-
"--decoration": "--decoration_f18pk",
|
|
38
|
-
"_color": "__color_f18pk_gg_",
|
|
39
|
-
"--color": "--color_f18pk",
|
|
40
|
-
"_fontSize": "__fontSize_f18pk_gg_",
|
|
41
|
-
"--fontSize": "--fontSize_f18pk",
|
|
42
|
-
"_lineHeight": "__lineHeight_f18pk_gg_",
|
|
43
|
-
"--lineHeight": "--lineHeight_f18pk",
|
|
44
|
-
"_fontWeight": "__fontWeight_f18pk_gg_",
|
|
45
|
-
"--fontWeight": "--fontWeight_f18pk",
|
|
46
|
-
"_textAlign": "__textAlign_f18pk_gg_",
|
|
47
|
-
"--textAlign": "--textAlign_f18pk",
|
|
48
|
-
"_use_primary": "_use_primary_f18pk_gg_",
|
|
49
|
-
"_use_secondary": "_use_secondary_f18pk_gg_",
|
|
50
|
-
"_disabled": "__disabled_f18pk_gg_"
|
|
51
|
-
});
|
|
52
|
-
function getTextDecoration(underline, lineThrough) {
|
|
53
|
-
if (underline) {
|
|
54
|
-
return 'underline';
|
|
55
|
-
}
|
|
56
|
-
if (lineThrough) {
|
|
57
|
-
return 'line-through';
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function Text(props, ref) {
|
|
61
|
-
var _ref = arguments[0],
|
|
62
|
-
_ref2;
|
|
63
|
-
var SText = _flexBox.Box;
|
|
64
|
-
var color = props.color,
|
|
65
|
-
underline = props.underline,
|
|
66
|
-
lineThrough = props.lineThrough;
|
|
67
|
-
var textDecoration = getTextDecoration(underline, lineThrough);
|
|
68
|
-
var resolveColor = (0, _useColorResolver.useColorResolver)();
|
|
69
|
-
return _ref2 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SText, _ref2.cn("SText", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
70
|
-
"tag": 'span',
|
|
71
|
-
"data-ui-name": 'Text',
|
|
72
|
-
"ref": ref,
|
|
73
|
-
"use:decoration": textDecoration,
|
|
74
|
-
"use:color": resolveColor(color)
|
|
75
|
-
}, _ref))));
|
|
76
|
-
}
|
|
77
|
-
Text.displayName = 'Text';
|
|
78
|
-
var _default = (0, _core.createBaseComponent)(Text);
|
|
79
|
-
exports["default"] = _default;
|
|
80
|
-
//# sourceMappingURL=Text.js.map
|
package/lib/cjs/Text.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","names":["_core","require","_react","_interopRequireDefault","_flexBox","_useColorResolver","styles","_index","sstyled","insert","getTextDecoration","underline","lineThrough","Text","props","ref","_ref","arguments[0]","_ref2","SText","Box","color","textDecoration","resolveColor","useColorResolver","createElement","cn","_objectSpread2","assignProps","displayName","_default","createBaseComponent","exports"],"sources":["../../src/Text.jsx"],"sourcesContent":["import React from 'react';\nimport { createBaseComponent, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\n\nimport styles from './style/text.shadow.css';\nimport { useColorResolver } from '@semcore/utils/lib/use/useColorResolver';\n\nfunction getTextDecoration(underline, lineThrough) {\n if (underline) {\n return 'underline';\n }\n\n if (lineThrough) {\n return 'line-through';\n }\n}\n\nfunction Text(props, ref) {\n const SText = Root;\n const { color, underline, lineThrough } = props;\n const textDecoration = getTextDecoration(underline, lineThrough);\n const resolveColor = useColorResolver();\n\n return sstyled(styles)(\n <SText\n render={Box}\n tag='span'\n data-ui-name='Text'\n ref={ref}\n use:decoration={textDecoration}\n use:color={resolveColor(color)}\n />,\n );\n}\n\nText.displayName = 'Text';\n\nexport default createBaseComponent(Text);\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AAGA,IAAAI,iBAAA,GAAAJ,OAAA;AAA2E;AAAA,IAAAK,MAAA,+BAAAC,MAAA,CAAAC,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;AAAA;AAE3E,SAASC,iBAAiBA,CAACC,SAAS,EAAEC,WAAW,EAAE;EACjD,IAAID,SAAS,EAAE;IACb,OAAO,WAAW;EACpB;EAEA,IAAIC,WAAW,EAAE;IACf,OAAO,cAAc;EACvB;AACF;AAEA,SAASC,IAAIA,CAACC,KAAK,EAAEC,GAAG,EAAE;EAAA,IAAAC,IAAA,GAAAC,YAAA;IAAAC,KAAA;EACxB,IAAMC,KAAK,GAOCC,YAAG;EANf,IAAQC,KAAK,GAA6BP,KAAK,CAAvCO,KAAK;IAAEV,SAAS,GAAkBG,KAAK,CAAhCH,SAAS;IAAEC,WAAW,GAAKE,KAAK,CAArBF,WAAW;EACrC,IAAMU,cAAc,GAAGZ,iBAAiB,CAACC,SAAS,EAAEC,WAAW,CAAC;EAChE,IAAMW,YAAY,GAAG,IAAAC,kCAAgB,GAAE;EAEvC,OAAAN,KAAA,GAAO,IAAAV,aAAO,EAACF,MAAM,CAAC,eACpBJ,MAAA,YAAAuB,aAAA,CAACN,KAAK,EAAAD,KAAA,CAAAQ,EAAA,cAAAC,cAAA,qBAAA3B,KAAA,CAAA4B,WAAA;IAAA,OAEA,MAAM;IAAA,gBACG,MAAM;IAAA,OACdb,GAAG;IAAA,kBACQO,cAAc;IAAA,aACnBC,YAAY,CAACF,KAAK;EAAC,GAAAL,IAAA,IAC9B;AAEN;AAEAH,IAAI,CAACgB,WAAW,GAAG,MAAM;AAAC,IAAAC,QAAA,GAEX,IAAAC,yBAAmB,EAAClB,IAAI,CAAC;AAAAmB,OAAA,cAAAF,QAAA"}
|
package/lib/cjs/index.d.js
DELETED
package/lib/cjs/index.d.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\n\nimport { Property } from 'csstype';\nimport { Box, BoxProps, Flex, FlexProps } from '@semcore/flex-box';\nimport { KeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\n\n/** @deprecated */\nexport interface ITextProps extends TextProps, UnknownProperties {}\nexport type TextProps = BoxProps & {\n /** Font size and line-heights */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;\n /** The text will not be wrapped on a new line and will be cut off with ellipsis */\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/** @deprecated */\nexport interface IListProps extends ListProps, UnknownProperties {}\nexport type ListProps = TextProps & {\n /** Marker of the entire list\n * @default • */\n marker?: React.ReactNode;\n};\n\n/** @deprecated */\nexport interface IListItemProps extends ListItemProps, UnknownProperties {}\nexport type ListItemProps = TextProps & {\n /** Individual marker of a list item */\n marker?: React.ReactNode;\n};\n\nexport type ListItemContentProps = FlexProps;\n\n/** @deprecated */\nexport interface IListContext extends ListContext, UnknownProperties {}\nexport type ListContext = {\n getItemProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IHintProps extends HintProps, UnknownProperties {}\nexport type TypographyHintProps = TextProps &\n KeyboardFocusProps & {\n /** The value responsible for the activity of the element\n * @default false\n */\n disabled?: boolean;\n /** Enable `active` state */\n active?: boolean;\n /** Left addon hint */\n addonLeft?: React.ElementType;\n /** Right addon hint */\n addonRight?: React.ElementType;\n };\n\n/** @deprecated use `TypographyHintProps` instead */\nexport type HintProps = TypographyHintProps;\n\n/** @deprecated */\nexport interface IBlockquoteProps extends BlockquoteProps, UnknownProperties {}\nexport type BlockquoteProps = BoxProps & {\n /** Source of the quote */\n author?: React.ReactNode;\n};\n\ndeclare const Hint: Intergalactic.Component<'abbr', HintProps> & {\n Addon: typeof Box;\n Text: typeof Box;\n};\n\ndeclare const Item: Intergalactic.Component<'li', ListItemProps> & {\n Content: Intergalactic.Component<typeof Flex, ListItemContentProps>;\n};\n\ndeclare const List: Intergalactic.Component<'ul', ListProps> & {\n Item: typeof Item;\n};\n\ndeclare const Text: Intergalactic.Component<'span', TextProps>;\n\ndeclare const Blockquote: Intergalactic.Component<'blockquote', BlockquoteProps>;\n\nexport { Text, List, Hint, Blockquote };\n"],"mappings":""}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
SHint {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
transition: all 0.15s ease-in-out;
|
|
4
|
-
text-decoration: none;
|
|
5
|
-
outline: none;
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
color: var(--intergalactic-text-secondary, #6c6e79);
|
|
8
|
-
|
|
9
|
-
&[active],
|
|
10
|
-
&:active,
|
|
11
|
-
&:hover {
|
|
12
|
-
color: var(--intergalactic-text-hint-hover-active, #484a54);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
SHint[keyboardFocused] {
|
|
17
|
-
box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
SHint[disabled] {
|
|
21
|
-
opacity: var(--intergalactic-disabled-opacity, 0.3);
|
|
22
|
-
cursor: default;
|
|
23
|
-
pointer-events: none; /* Disable hint interactions */
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
SAddon {
|
|
27
|
-
vertical-align: middle;
|
|
28
|
-
display: inline-flex;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
SHint SAddon {
|
|
32
|
-
&:not(:only-child):first-child {
|
|
33
|
-
margin-right: var(--intergalactic-spacing-1x, 4px);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:not(:only-child):last-child {
|
|
37
|
-
margin-left: var(--intergalactic-spacing-1x, 4px);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
SText {
|
|
42
|
-
border-bottom-width: 1px;
|
|
43
|
-
border-bottom-style: dashed;
|
|
44
|
-
border-color: currentColor;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@media (prefers-reduced-motion) {
|
|
48
|
-
SHint {
|
|
49
|
-
transition: none;
|
|
50
|
-
}
|
|
51
|
-
}
|