@rescui/tag 0.13.8 → 0.13.9-RUI-293-Update-menu-component-6ca9d26d3.22
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/README.md +3 -1
- package/lib/_virtual/index.css.js +12 -12
- package/lib/index.css +78 -78
- package/lib/index.d.ts +8 -8
- package/lib/parts/base-tag.d.ts +37 -36
- package/lib/parts/base-tag.p.module.css.js +9 -9
- package/lib/parts/presets.d.ts +194 -194
- package/lib/parts/presets.js +40 -40
- package/lib/parts/removable-tag.d.ts +16 -16
- package/lib/parts/removable-tag.p.module.css.js +12 -12
- package/lib/parts/sticky-tag.d.ts +50 -50
- package/lib/parts/sticky-tag.p.module.css.js +11 -11
- package/lib/parts/tag.p.module.css.js +1 -1
- package/lib/tag.d.ts +37 -37
- package/llm/components/tag.md +685 -0
- package/llm/index.md +2 -0
- package/package.json +7 -6
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { BaseTagIconPosition, BaseTagSize } from './base-tag';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
/** Tag additional class-name */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** Wrapper additional class-name */
|
|
12
|
-
wrapperClassName?: string;
|
|
13
|
-
/** The content of the attached Tag */
|
|
14
|
-
content: React.ReactNode;
|
|
15
|
-
/** Target element */
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
/** badge size */
|
|
18
|
-
size?: StickyTagSize;
|
|
19
|
-
/** Should the content be uppercase */
|
|
20
|
-
isUppercase?: boolean;
|
|
21
|
-
/** Tag placement */
|
|
22
|
-
placement?: StickyTagPlacement;
|
|
23
|
-
/** Tag align relative to the target border */
|
|
24
|
-
align?: StickyTagAlign;
|
|
25
|
-
/** Offset from the edge */
|
|
26
|
-
offset?: StickyTagOffset;
|
|
27
|
-
/** Text color. See [Presets](/components/tag/presets) page. */
|
|
28
|
-
color?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Background color. See [Presets](/components/tag/presets) page.
|
|
31
|
-
* @default transparent
|
|
32
|
-
* */
|
|
33
|
-
backgroundColor?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Border color. See [Presets](/components/tag/presets) page.
|
|
36
|
-
* @default transparent
|
|
37
|
-
* */
|
|
38
|
-
borderColor?: string;
|
|
39
|
-
/** Custom CSS styles */
|
|
40
|
-
style?: CSSProperties | undefined;
|
|
41
|
-
} & ({
|
|
42
|
-
/** Additional icon */
|
|
43
|
-
icon: React.ReactNode;
|
|
44
|
-
/** Additional icon position */
|
|
45
|
-
iconPosition?: StickyTagIconPosition;
|
|
46
|
-
} | {
|
|
47
|
-
icon?: never;
|
|
48
|
-
iconPosition?: never;
|
|
49
|
-
});
|
|
50
|
-
export declare const StickyTag: React.ForwardRefExoticComponent<StickyTagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { BaseTagIconPosition, BaseTagSize } from './base-tag';
|
|
3
|
+
export type StickyTagSize = BaseTagSize;
|
|
4
|
+
export type StickyTagIconPosition = BaseTagIconPosition;
|
|
5
|
+
export type StickyTagPlacement = 'top-start' | 'top-end' | 'left-end' | 'left-start';
|
|
6
|
+
export type StickyTagAlign = 'top' | 'middle';
|
|
7
|
+
export type StickyTagOffset = 16 | 24 | 32;
|
|
8
|
+
export type StickyTagProps = {
|
|
9
|
+
/** Tag additional class-name */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Wrapper additional class-name */
|
|
12
|
+
wrapperClassName?: string;
|
|
13
|
+
/** The content of the attached Tag */
|
|
14
|
+
content: React.ReactNode;
|
|
15
|
+
/** Target element */
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
/** badge size */
|
|
18
|
+
size?: StickyTagSize;
|
|
19
|
+
/** Should the content be uppercase */
|
|
20
|
+
isUppercase?: boolean;
|
|
21
|
+
/** Tag placement */
|
|
22
|
+
placement?: StickyTagPlacement;
|
|
23
|
+
/** Tag align relative to the target border */
|
|
24
|
+
align?: StickyTagAlign;
|
|
25
|
+
/** Offset from the edge */
|
|
26
|
+
offset?: StickyTagOffset;
|
|
27
|
+
/** Text color. See [Presets](/components/tag/presets) page. */
|
|
28
|
+
color?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Background color. See [Presets](/components/tag/presets) page.
|
|
31
|
+
* @default transparent
|
|
32
|
+
* */
|
|
33
|
+
backgroundColor?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Border color. See [Presets](/components/tag/presets) page.
|
|
36
|
+
* @default transparent
|
|
37
|
+
* */
|
|
38
|
+
borderColor?: string;
|
|
39
|
+
/** Custom CSS styles */
|
|
40
|
+
style?: CSSProperties | undefined;
|
|
41
|
+
} & ({
|
|
42
|
+
/** Additional icon */
|
|
43
|
+
icon: React.ReactNode;
|
|
44
|
+
/** Additional icon position */
|
|
45
|
+
iconPosition?: StickyTagIconPosition;
|
|
46
|
+
} | {
|
|
47
|
+
icon?: never;
|
|
48
|
+
iconPosition?: never;
|
|
49
|
+
});
|
|
50
|
+
export declare const StickyTag: React.ForwardRefExoticComponent<StickyTagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"wrapper": "
|
|
3
|
-
"offset16": "
|
|
4
|
-
"offset24": "
|
|
5
|
-
"offset32": "
|
|
6
|
-
"alignTop": "
|
|
7
|
-
"alignMiddle": "
|
|
8
|
-
"topStart": "
|
|
9
|
-
"topEnd": "
|
|
10
|
-
"leftStart": "
|
|
11
|
-
"leftEnd": "
|
|
12
|
-
"tag": "
|
|
2
|
+
"wrapper": "_wrapper_1herpl6_3",
|
|
3
|
+
"offset16": "_offset16_1herpl6_7",
|
|
4
|
+
"offset24": "_offset24_1herpl6_10",
|
|
5
|
+
"offset32": "_offset32_1herpl6_13",
|
|
6
|
+
"alignTop": "_alignTop_1herpl6_17",
|
|
7
|
+
"alignMiddle": "_alignMiddle_1herpl6_20",
|
|
8
|
+
"topStart": "_topStart_1herpl6_24",
|
|
9
|
+
"topEnd": "_topEnd_1herpl6_27",
|
|
10
|
+
"leftStart": "_leftStart_1herpl6_30",
|
|
11
|
+
"leftEnd": "_leftEnd_1herpl6_33",
|
|
12
|
+
"tag": "_tag_1herpl6_37"
|
|
13
13
|
};
|
|
14
14
|
export { styles as default };
|
package/lib/tag.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { BaseTagSize, BaseTagIconPosition } from './parts/base-tag';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
/** Additional class-name */
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Child element */
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
/** badge size */
|
|
11
|
-
size?: TagSize;
|
|
12
|
-
/** Should the content be uppercase */
|
|
13
|
-
isUppercase?: boolean;
|
|
14
|
-
/** Text color. See [Presets](/components/tag/presets) page. */
|
|
15
|
-
color?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Background color. See [Presets](/components/tag/presets) page.
|
|
18
|
-
* @default transparent
|
|
19
|
-
* */
|
|
20
|
-
backgroundColor?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Border color. See [Presets](/components/tag/presets) page.
|
|
23
|
-
* @default transparent
|
|
24
|
-
* */
|
|
25
|
-
borderColor?: string;
|
|
26
|
-
/** Custom CSS styles */
|
|
27
|
-
style?: CSSProperties | undefined;
|
|
28
|
-
} & ({
|
|
29
|
-
/** Additional icon */
|
|
30
|
-
icon: React.ReactNode;
|
|
31
|
-
/** Additional icon position */
|
|
32
|
-
iconPosition?: TagIconPosition;
|
|
33
|
-
} | {
|
|
34
|
-
icon?: never;
|
|
35
|
-
iconPosition?: never;
|
|
36
|
-
});
|
|
37
|
-
export declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { BaseTagSize, BaseTagIconPosition } from './parts/base-tag';
|
|
3
|
+
export type TagSize = BaseTagSize;
|
|
4
|
+
export type TagIconPosition = BaseTagIconPosition;
|
|
5
|
+
export type TagProps = {
|
|
6
|
+
/** Additional class-name */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Child element */
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
/** badge size */
|
|
11
|
+
size?: TagSize;
|
|
12
|
+
/** Should the content be uppercase */
|
|
13
|
+
isUppercase?: boolean;
|
|
14
|
+
/** Text color. See [Presets](/components/tag/presets) page. */
|
|
15
|
+
color?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Background color. See [Presets](/components/tag/presets) page.
|
|
18
|
+
* @default transparent
|
|
19
|
+
* */
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Border color. See [Presets](/components/tag/presets) page.
|
|
23
|
+
* @default transparent
|
|
24
|
+
* */
|
|
25
|
+
borderColor?: string;
|
|
26
|
+
/** Custom CSS styles */
|
|
27
|
+
style?: CSSProperties | undefined;
|
|
28
|
+
} & ({
|
|
29
|
+
/** Additional icon */
|
|
30
|
+
icon: React.ReactNode;
|
|
31
|
+
/** Additional icon position */
|
|
32
|
+
iconPosition?: TagIconPosition;
|
|
33
|
+
} | {
|
|
34
|
+
icon?: never;
|
|
35
|
+
iconPosition?: never;
|
|
36
|
+
});
|
|
37
|
+
export declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>>;
|