@rockshin/tao-ui 0.0.41 → 0.0.42
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 +33 -7
- package/THIRD_PARTY_NOTICES.md +34 -0
- package/component-manifest.json +1321 -10
- package/dist/components/affix/affix.css +11 -0
- package/dist/components/affix/affix.d.ts +21 -0
- package/dist/components/affix/affix.js +140 -0
- package/dist/components/app/app-modals.d.ts +2 -0
- package/dist/components/app/app-modals.js +266 -0
- package/dist/components/app/app-notices.d.ts +6 -0
- package/dist/components/app/app-notices.js +334 -0
- package/dist/components/app/app-types.d.ts +154 -0
- package/dist/components/app/app-types.js +0 -0
- package/dist/components/app/app.css +221 -0
- package/dist/components/app/app.d.ts +7 -0
- package/dist/components/app/app.js +69 -0
- package/dist/components/auto-complete/auto-complete.css +35 -0
- package/dist/components/auto-complete/auto-complete.d.ts +47 -0
- package/dist/components/auto-complete/auto-complete.js +106 -0
- package/dist/components/avatar/avatar.css +95 -0
- package/dist/components/avatar/avatar.d.ts +50 -0
- package/dist/components/avatar/avatar.js +159 -0
- package/dist/components/badge/badge.css +165 -0
- package/dist/components/badge/badge.d.ts +48 -0
- package/dist/components/badge/badge.js +412 -0
- package/dist/components/border-beam/border-beam.css +35 -0
- package/dist/components/border-beam/border-beam.d.ts +27 -0
- package/dist/components/border-beam/border-beam.js +215 -0
- package/dist/components/button/button.css +7 -0
- package/dist/components/calendar/calendar.css +176 -0
- package/dist/components/calendar/calendar.d.ts +56 -0
- package/dist/components/calendar/calendar.js +175 -0
- package/dist/components/card/card-tabs.d.ts +43 -0
- package/dist/components/card/card-tabs.js +455 -0
- package/dist/components/card/card.css +401 -0
- package/dist/components/card/card.d.ts +74 -0
- package/dist/components/card/card.js +362 -0
- package/dist/components/carousel/carousel.css +231 -0
- package/dist/components/carousel/carousel.d.ts +35 -0
- package/dist/components/carousel/carousel.js +193 -0
- package/dist/components/cascader/cascader.css +123 -0
- package/dist/components/cascader/cascader.d.ts +58 -0
- package/dist/components/cascader/cascader.js +132 -0
- package/dist/components/checkbox/checkbox.css +7 -0
- package/dist/components/color-picker/color-picker-types.d.ts +78 -0
- package/dist/components/color-picker/color-picker-types.js +0 -0
- package/dist/components/color-picker/color-picker.css +299 -0
- package/dist/components/color-picker/color-picker.d.ts +5 -0
- package/dist/components/color-picker/color-picker.js +974 -0
- package/dist/components/color-picker/color.d.ts +35 -0
- package/dist/components/color-picker/color.js +65 -0
- package/dist/components/date-picker/calendar/calendar-grid.js +4 -11
- package/dist/components/date-picker/calendar/calendar-header.js +76 -69
- package/dist/components/date-picker/calendar/month-grid.js +20 -31
- package/dist/components/date-picker/calendar/time-panel.js +46 -41
- package/dist/components/date-picker/date-picker.css +4 -0
- package/dist/components/date-picker/date-picker.js +4 -4
- package/dist/components/date-picker/range-picker.js +14 -13
- package/dist/components/descriptions/descriptions.css +109 -0
- package/dist/components/descriptions/descriptions.d.ts +49 -0
- package/dist/components/descriptions/descriptions.js +189 -0
- package/dist/components/divider/divider.css +71 -0
- package/dist/components/divider/divider.d.ts +31 -0
- package/dist/components/divider/divider.js +83 -0
- package/dist/components/drawer/drawer.js +199 -184
- package/dist/components/empty/empty.css +35 -0
- package/dist/components/empty/empty.d.ts +25 -0
- package/dist/components/empty/empty.js +278 -0
- package/dist/components/float-button/float-button.css +146 -0
- package/dist/components/float-button/float-button.d.ts +67 -0
- package/dist/components/float-button/float-button.js +347 -0
- package/dist/components/form/form-item.d.ts +1 -1
- package/dist/components/form/form.js +3 -1
- package/dist/components/image/image-icons.d.ts +16 -0
- package/dist/components/image/image-icons.js +63 -0
- package/dist/components/image/image.css +253 -0
- package/dist/components/image/image.d.ts +75 -0
- package/dist/components/image/image.js +818 -0
- package/dist/components/input/input.css +8 -6
- package/dist/components/list/list-pagination.css +127 -0
- package/dist/components/list/list-pagination.d.ts +38 -0
- package/dist/components/list/list-pagination.js +321 -0
- package/dist/components/list/list.css +225 -0
- package/dist/components/list/list.d.ts +77 -0
- package/dist/components/list/list.js +660 -0
- package/dist/components/listy/listy.css +55 -0
- package/dist/components/listy/listy.d.ts +20 -0
- package/dist/components/listy/listy.js +158 -0
- package/dist/components/masonry/masonry.css +13 -0
- package/dist/components/masonry/masonry.d.ts +39 -0
- package/dist/components/masonry/masonry.js +287 -0
- package/dist/components/mentions/mentions.css +172 -0
- package/dist/components/mentions/mentions.d.ts +48 -0
- package/dist/components/mentions/mentions.js +115 -0
- package/dist/components/modal/modal.d.ts +30 -4
- package/dist/components/modal/modal.js +534 -241
- package/dist/components/pagination/pagination.css +10 -0
- package/dist/components/progress/progress.css +187 -0
- package/dist/components/progress/progress.d.ts +66 -0
- package/dist/components/progress/progress.js +567 -0
- package/dist/components/qr-code/qr-code.css +39 -0
- package/dist/components/qr-code/qr-code.d.ts +43 -0
- package/dist/components/qr-code/qr-code.js +286 -0
- package/dist/components/radio/radio.css +7 -0
- package/dist/components/rate/rate.css +97 -0
- package/dist/components/rate/rate.d.ts +17 -0
- package/dist/components/rate/rate.js +172 -0
- package/dist/components/result/result.css +69 -0
- package/dist/components/result/result.d.ts +33 -0
- package/dist/components/result/result.js +320 -0
- package/dist/components/segmented/segmented.css +134 -0
- package/dist/components/segmented/segmented.d.ts +40 -0
- package/dist/components/segmented/segmented.js +169 -0
- package/dist/components/select/mobile-select.d.ts +10 -4
- package/dist/components/select/mobile-select.js +166 -58
- package/dist/components/select/select-tags.js +178 -130
- package/dist/components/select/select-types.d.ts +51 -0
- package/dist/components/select/select.css +69 -10
- package/dist/components/select/select.js +30 -16
- package/dist/components/select/use-select-selection.js +44 -43
- package/dist/components/skeleton/skeleton.css +129 -0
- package/dist/components/skeleton/skeleton.d.ts +78 -0
- package/dist/components/skeleton/skeleton.js +457 -0
- package/dist/components/slider/slider.css +191 -0
- package/dist/components/slider/slider.d.ts +47 -0
- package/dist/components/slider/slider.js +310 -0
- package/dist/components/statistic/statistic.css +34 -0
- package/dist/components/statistic/statistic.d.ts +46 -0
- package/dist/components/statistic/statistic.js +491 -0
- package/dist/components/switch/switch-touch.css +20 -0
- package/dist/components/switch/switch.css +24 -13
- package/dist/components/switch/switch.js +8 -5
- package/dist/components/textarea/textarea.css +1 -1
- package/dist/components/time-picker/time-picker.css +205 -0
- package/dist/components/time-picker/time-picker.d.ts +63 -0
- package/dist/components/time-picker/time-picker.js +356 -0
- package/dist/components/timeline/timeline.css +259 -0
- package/dist/components/timeline/timeline.d.ts +50 -0
- package/dist/components/timeline/timeline.js +140 -0
- package/dist/components/tour/tour.css +151 -0
- package/dist/components/tour/tour.d.ts +45 -0
- package/dist/components/tour/tour.js +575 -0
- package/dist/components/transfer/transfer-list.d.ts +2 -0
- package/dist/components/transfer/transfer-list.js +513 -0
- package/dist/components/transfer/transfer-parts.d.ts +3 -0
- package/dist/components/transfer/transfer-parts.js +163 -0
- package/dist/components/transfer/transfer-types.d.ts +163 -0
- package/dist/components/transfer/transfer-types.js +0 -0
- package/dist/components/transfer/transfer.css +226 -0
- package/dist/components/transfer/transfer.d.ts +13 -0
- package/dist/components/transfer/transfer.js +204 -0
- package/dist/components/tree/tree.css +250 -0
- package/dist/components/tree/tree.d.ts +46 -0
- package/dist/components/tree/tree.js +389 -0
- package/dist/components/tree-select/select-engine.css +231 -0
- package/dist/components/tree-select/select-engine.d.ts +20 -0
- package/dist/components/tree-select/select-engine.js +46 -0
- package/dist/components/tree-select/tree-select.css +25 -0
- package/dist/components/tree-select/tree-select.d.ts +50 -0
- package/dist/components/tree-select/tree-select.js +131 -0
- package/dist/components/upload/upload-types.d.ts +135 -0
- package/dist/components/upload/upload-types.js +0 -0
- package/dist/components/upload/upload.css +177 -0
- package/dist/components/upload/upload.d.ts +12 -0
- package/dist/components/upload/upload.js +455 -0
- package/dist/components/watermark/watermark-context.d.ts +7 -0
- package/dist/components/watermark/watermark-context.js +20 -0
- package/dist/components/watermark/watermark.css +10 -0
- package/dist/components/watermark/watermark.d.ts +38 -0
- package/dist/components/watermark/watermark.js +436 -0
- package/dist/docs/component-docs.d.ts +35 -29
- package/dist/docs/component-docs.js +73 -1
- package/dist/docs/components/affix.doc.d.ts +14 -0
- package/dist/docs/components/affix.doc.js +22 -0
- package/dist/docs/components/app.doc.d.ts +18 -0
- package/dist/docs/components/app.doc.js +42 -0
- package/dist/docs/components/auto-complete.doc.d.ts +18 -0
- package/dist/docs/components/auto-complete.doc.js +49 -0
- package/dist/docs/components/avatar.doc.d.ts +17 -0
- package/dist/docs/components/avatar.doc.js +36 -0
- package/dist/docs/components/badge.doc.d.ts +17 -0
- package/dist/docs/components/badge.doc.js +34 -0
- package/dist/docs/components/border-beam.doc.d.ts +14 -0
- package/dist/docs/components/border-beam.doc.js +22 -0
- package/dist/docs/components/calendar.doc.d.ts +18 -0
- package/dist/docs/components/calendar.doc.js +45 -0
- package/dist/docs/components/card.doc.d.ts +17 -0
- package/dist/docs/components/card.doc.js +39 -0
- package/dist/docs/components/carousel.doc.d.ts +15 -0
- package/dist/docs/components/carousel.doc.js +26 -0
- package/dist/docs/components/cascader.doc.d.ts +18 -0
- package/dist/docs/components/cascader.doc.js +54 -0
- package/dist/docs/components/color-picker.doc.d.ts +18 -0
- package/dist/docs/components/color-picker.doc.js +46 -0
- package/dist/docs/components/descriptions.doc.d.ts +14 -0
- package/dist/docs/components/descriptions.doc.js +26 -0
- package/dist/docs/components/divider.doc.d.ts +17 -0
- package/dist/docs/components/divider.doc.js +34 -0
- package/dist/docs/components/empty.doc.d.ts +18 -0
- package/dist/docs/components/empty.doc.js +40 -0
- package/dist/docs/components/float-button.doc.d.ts +14 -0
- package/dist/docs/components/float-button.doc.js +23 -0
- package/dist/docs/components/form.doc.d.ts +1 -1
- package/dist/docs/components/image.doc.d.ts +15 -0
- package/dist/docs/components/image.doc.js +38 -0
- package/dist/docs/components/list.doc.d.ts +18 -0
- package/dist/docs/components/list.doc.js +43 -0
- package/dist/docs/components/listy.doc.d.ts +18 -0
- package/dist/docs/components/listy.doc.js +40 -0
- package/dist/docs/components/masonry.doc.d.ts +14 -0
- package/dist/docs/components/masonry.doc.js +22 -0
- package/dist/docs/components/mentions.doc.d.ts +18 -0
- package/dist/docs/components/mentions.doc.js +43 -0
- package/dist/docs/components/modal.doc.js +3 -0
- package/dist/docs/components/progress.doc.d.ts +18 -0
- package/dist/docs/components/progress.doc.js +41 -0
- package/dist/docs/components/qr-code.doc.d.ts +18 -0
- package/dist/docs/components/qr-code.doc.js +41 -0
- package/dist/docs/components/rate.doc.d.ts +18 -0
- package/dist/docs/components/rate.doc.js +38 -0
- package/dist/docs/components/result.doc.d.ts +18 -0
- package/dist/docs/components/result.doc.js +42 -0
- package/dist/docs/components/segmented.doc.d.ts +14 -0
- package/dist/docs/components/segmented.doc.js +24 -0
- package/dist/docs/components/skeleton.doc.d.ts +18 -0
- package/dist/docs/components/skeleton.doc.js +42 -0
- package/dist/docs/components/slider.doc.d.ts +18 -0
- package/dist/docs/components/slider.doc.js +41 -0
- package/dist/docs/components/statistic.doc.d.ts +14 -0
- package/dist/docs/components/statistic.doc.js +27 -0
- package/dist/docs/components/time-picker.doc.d.ts +18 -0
- package/dist/docs/components/time-picker.doc.js +45 -0
- package/dist/docs/components/timeline.doc.d.ts +14 -0
- package/dist/docs/components/timeline.doc.js +29 -0
- package/dist/docs/components/tooltip.doc.d.ts +2 -2
- package/dist/docs/components/tour.doc.d.ts +15 -0
- package/dist/docs/components/tour.doc.js +36 -0
- package/dist/docs/components/transfer.doc.d.ts +18 -0
- package/dist/docs/components/transfer.doc.js +48 -0
- package/dist/docs/components/tree-select.doc.d.ts +18 -0
- package/dist/docs/components/tree-select.doc.js +55 -0
- package/dist/docs/components/tree.doc.d.ts +18 -0
- package/dist/docs/components/tree.doc.js +46 -0
- package/dist/docs/components/upload.doc.d.ts +18 -0
- package/dist/docs/components/upload.doc.js +43 -0
- package/dist/docs/components/watermark.doc.d.ts +14 -0
- package/dist/docs/components/watermark.doc.js +22 -0
- package/dist/entries/affix.d.ts +3 -0
- package/dist/entries/affix.js +4 -0
- package/dist/entries/app.d.ts +3 -0
- package/dist/entries/app.js +4 -0
- package/dist/entries/auto-complete.d.ts +4 -0
- package/dist/entries/auto-complete.js +4 -0
- package/dist/entries/avatar.d.ts +3 -0
- package/dist/entries/avatar.js +4 -0
- package/dist/entries/badge.d.ts +3 -0
- package/dist/entries/badge.js +4 -0
- package/dist/entries/border-beam.d.ts +3 -0
- package/dist/entries/border-beam.js +4 -0
- package/dist/entries/calendar.d.ts +3 -0
- package/dist/entries/calendar.js +4 -0
- package/dist/entries/card.d.ts +3 -0
- package/dist/entries/card.js +4 -0
- package/dist/entries/carousel.d.ts +3 -0
- package/dist/entries/carousel.js +4 -0
- package/dist/entries/cascader.d.ts +4 -0
- package/dist/entries/cascader.js +4 -0
- package/dist/entries/color-picker.d.ts +5 -0
- package/dist/entries/color-picker.js +4 -0
- package/dist/entries/descriptions.d.ts +3 -0
- package/dist/entries/descriptions.js +4 -0
- package/dist/entries/divider.d.ts +3 -0
- package/dist/entries/divider.js +4 -0
- package/dist/entries/empty.d.ts +3 -0
- package/dist/entries/empty.js +4 -0
- package/dist/entries/float-button.d.ts +3 -0
- package/dist/entries/float-button.js +4 -0
- package/dist/entries/image.d.ts +3 -0
- package/dist/entries/image.js +4 -0
- package/dist/entries/list.d.ts +3 -0
- package/dist/entries/list.js +4 -0
- package/dist/entries/listy.d.ts +3 -0
- package/dist/entries/listy.js +4 -0
- package/dist/entries/masonry.d.ts +3 -0
- package/dist/entries/masonry.js +4 -0
- package/dist/entries/mentions.d.ts +4 -0
- package/dist/entries/mentions.js +4 -0
- package/dist/entries/progress.d.ts +3 -0
- package/dist/entries/progress.js +4 -0
- package/dist/entries/provider.d.ts +1 -1
- package/dist/entries/provider.js +1 -1
- package/dist/entries/qr-code.d.ts +4 -0
- package/dist/entries/qr-code.js +4 -0
- package/dist/entries/rate.d.ts +3 -0
- package/dist/entries/rate.js +4 -0
- package/dist/entries/result.d.ts +3 -0
- package/dist/entries/result.js +4 -0
- package/dist/entries/segmented.d.ts +3 -0
- package/dist/entries/segmented.js +4 -0
- package/dist/entries/skeleton.d.ts +3 -0
- package/dist/entries/skeleton.js +4 -0
- package/dist/entries/slider.d.ts +3 -0
- package/dist/entries/slider.js +4 -0
- package/dist/entries/statistic.d.ts +3 -0
- package/dist/entries/statistic.js +4 -0
- package/dist/entries/time-picker.d.ts +3 -0
- package/dist/entries/time-picker.js +4 -0
- package/dist/entries/timeline.d.ts +3 -0
- package/dist/entries/timeline.js +4 -0
- package/dist/entries/tour.d.ts +3 -0
- package/dist/entries/tour.js +4 -0
- package/dist/entries/transfer.d.ts +3 -0
- package/dist/entries/transfer.js +4 -0
- package/dist/entries/tree-select.d.ts +4 -0
- package/dist/entries/tree-select.js +4 -0
- package/dist/entries/tree.d.ts +3 -0
- package/dist/entries/tree.js +4 -0
- package/dist/entries/upload.d.ts +4 -0
- package/dist/entries/upload.js +4 -0
- package/dist/entries/util.d.ts +1 -0
- package/dist/entries/util.js +1 -0
- package/dist/entries/watermark.d.ts +3 -0
- package/dist/entries/watermark.js +4 -0
- package/dist/index.d.ts +48 -3
- package/dist/index.js +38 -2
- package/dist/provider/locale.d.ts +59 -0
- package/dist/provider/locale.js +136 -0
- package/dist/provider/tao-provider.d.ts +16 -1
- package/dist/provider/tao-provider.js +104 -87
- package/dist/theme/control.css +10 -0
- package/dist/theme/theme.css +1 -1
- package/dist/utils/breakpoint.d.ts +2 -2
- package/dist/utils/breakpoint.js +3 -1
- package/dist/utils/interop-default.d.ts +2 -0
- package/dist/utils/interop-default.js +4 -0
- package/dist/utils/types.d.ts +7 -0
- package/dist/utils/types.js +0 -0
- package/llms.txt +476 -8
- package/package.json +27 -6
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
|
|
3
|
+
import './watermark.css';
|
|
4
|
+
export interface WatermarkFont {
|
|
5
|
+
color?: CanvasFillStrokeStyles['fillStyle'];
|
|
6
|
+
fontSize?: number | string;
|
|
7
|
+
fontWeight?: 'normal' | 'lighter' | 'bold' | 'bolder' | number;
|
|
8
|
+
fontStyle?: 'none' | 'normal' | 'italic' | 'oblique';
|
|
9
|
+
fontFamily?: string;
|
|
10
|
+
textAlign?: CanvasTextAlign;
|
|
11
|
+
}
|
|
12
|
+
export interface WatermarkText {
|
|
13
|
+
text: string;
|
|
14
|
+
font?: WatermarkFont;
|
|
15
|
+
}
|
|
16
|
+
export type WatermarkContent = string | WatermarkText;
|
|
17
|
+
export type WatermarkSemanticPart = 'root' | 'mark';
|
|
18
|
+
export interface WatermarkProps extends Omit<HTMLAttributes<HTMLDivElement>, 'content'> {
|
|
19
|
+
zIndex?: number;
|
|
20
|
+
rotate?: number;
|
|
21
|
+
width?: number;
|
|
22
|
+
height?: number;
|
|
23
|
+
image?: string;
|
|
24
|
+
content?: WatermarkContent | WatermarkContent[];
|
|
25
|
+
font?: WatermarkFont;
|
|
26
|
+
rootClassName?: string;
|
|
27
|
+
gap?: [number, number];
|
|
28
|
+
offset?: [number, number];
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
inherit?: boolean;
|
|
31
|
+
onRemove?: () => void;
|
|
32
|
+
classNames?: SemanticClassNames<WatermarkSemanticPart>;
|
|
33
|
+
styles?: SemanticStyles<WatermarkSemanticPart>;
|
|
34
|
+
}
|
|
35
|
+
export interface WatermarkRef {
|
|
36
|
+
nativeElement: HTMLDivElement;
|
|
37
|
+
}
|
|
38
|
+
export declare const Watermark: import("react").ForwardRefExoticComponent<WatermarkProps & import("react").RefAttributes<WatermarkRef>>;
|
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "react-compiler-runtime";
|
|
3
|
+
import { forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
4
|
+
import { useTaoInternalConfig } from "../../provider/tao-provider.js";
|
|
5
|
+
import { cx } from "../../utils/semantic.js";
|
|
6
|
+
import { WatermarkContext } from "./watermark-context.js";
|
|
7
|
+
import "./watermark.css";
|
|
8
|
+
const EMPTY_FONT = {};
|
|
9
|
+
function fontString(font) {
|
|
10
|
+
return `${'none' === font.fontStyle ? 'normal' : font.fontStyle ?? 'normal'} ${font.fontWeight ?? 400} ${'number' == typeof font.fontSize ? `${font.fontSize}px` : font.fontSize ?? '16px'} ${font.fontFamily ?? 'sans-serif'}`;
|
|
11
|
+
}
|
|
12
|
+
const Watermark = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
13
|
+
const $ = c(73);
|
|
14
|
+
let children;
|
|
15
|
+
let className;
|
|
16
|
+
let classNames;
|
|
17
|
+
let content;
|
|
18
|
+
let height;
|
|
19
|
+
let image;
|
|
20
|
+
let offset;
|
|
21
|
+
let onRemove;
|
|
22
|
+
let rest;
|
|
23
|
+
let rootClassName;
|
|
24
|
+
let style;
|
|
25
|
+
let styles;
|
|
26
|
+
let t0;
|
|
27
|
+
let t1;
|
|
28
|
+
let t2;
|
|
29
|
+
let t3;
|
|
30
|
+
let width;
|
|
31
|
+
let zIndex;
|
|
32
|
+
if ($[0] !== props) {
|
|
33
|
+
({ zIndex, rotate: t0, width, height, image, content, font: t1, rootClassName, gap: t2, offset, children, inherit: t3, onRemove, classNames, styles, className, style, ...rest } = props);
|
|
34
|
+
$[0] = props;
|
|
35
|
+
$[1] = children;
|
|
36
|
+
$[2] = className;
|
|
37
|
+
$[3] = classNames;
|
|
38
|
+
$[4] = content;
|
|
39
|
+
$[5] = height;
|
|
40
|
+
$[6] = image;
|
|
41
|
+
$[7] = offset;
|
|
42
|
+
$[8] = onRemove;
|
|
43
|
+
$[9] = rest;
|
|
44
|
+
$[10] = rootClassName;
|
|
45
|
+
$[11] = style;
|
|
46
|
+
$[12] = styles;
|
|
47
|
+
$[13] = t0;
|
|
48
|
+
$[14] = t1;
|
|
49
|
+
$[15] = t2;
|
|
50
|
+
$[16] = t3;
|
|
51
|
+
$[17] = width;
|
|
52
|
+
$[18] = zIndex;
|
|
53
|
+
} else {
|
|
54
|
+
children = $[1];
|
|
55
|
+
className = $[2];
|
|
56
|
+
classNames = $[3];
|
|
57
|
+
content = $[4];
|
|
58
|
+
height = $[5];
|
|
59
|
+
image = $[6];
|
|
60
|
+
offset = $[7];
|
|
61
|
+
onRemove = $[8];
|
|
62
|
+
rest = $[9];
|
|
63
|
+
rootClassName = $[10];
|
|
64
|
+
style = $[11];
|
|
65
|
+
styles = $[12];
|
|
66
|
+
t0 = $[13];
|
|
67
|
+
t1 = $[14];
|
|
68
|
+
t2 = $[15];
|
|
69
|
+
t3 = $[16];
|
|
70
|
+
width = $[17];
|
|
71
|
+
zIndex = $[18];
|
|
72
|
+
}
|
|
73
|
+
const rotate = void 0 === t0 ? -22 : t0;
|
|
74
|
+
const font = void 0 === t1 ? EMPTY_FONT : t1;
|
|
75
|
+
let t4;
|
|
76
|
+
if ($[19] !== t2) {
|
|
77
|
+
t4 = void 0 === t2 ? [
|
|
78
|
+
100,
|
|
79
|
+
100
|
|
80
|
+
] : t2;
|
|
81
|
+
$[19] = t2;
|
|
82
|
+
$[20] = t4;
|
|
83
|
+
} else t4 = $[20];
|
|
84
|
+
const gap = t4;
|
|
85
|
+
const inherit = void 0 === t3 ? true : t3;
|
|
86
|
+
const theme = useTaoInternalConfig();
|
|
87
|
+
const root = useRef(null);
|
|
88
|
+
const [tile, setTile] = useState();
|
|
89
|
+
const [panels, setPanels] = useState(_temp);
|
|
90
|
+
const removeCallback = useRef(onRemove);
|
|
91
|
+
let t5;
|
|
92
|
+
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
93
|
+
t5 = ()=>({
|
|
94
|
+
nativeElement: root.current
|
|
95
|
+
});
|
|
96
|
+
$[21] = t5;
|
|
97
|
+
} else t5 = $[21];
|
|
98
|
+
useImperativeHandle(ref, t5);
|
|
99
|
+
let t6;
|
|
100
|
+
let t7;
|
|
101
|
+
if ($[22] !== onRemove) {
|
|
102
|
+
t6 = ()=>{
|
|
103
|
+
removeCallback.current = onRemove;
|
|
104
|
+
};
|
|
105
|
+
t7 = [
|
|
106
|
+
onRemove
|
|
107
|
+
];
|
|
108
|
+
$[22] = onRemove;
|
|
109
|
+
$[23] = t6;
|
|
110
|
+
$[24] = t7;
|
|
111
|
+
} else {
|
|
112
|
+
t6 = $[23];
|
|
113
|
+
t7 = $[24];
|
|
114
|
+
}
|
|
115
|
+
useLayoutEffect(t6, t7);
|
|
116
|
+
let t8;
|
|
117
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
118
|
+
t8 = {
|
|
119
|
+
add: (element)=>setPanels((previous)=>previous.has(element) ? previous : new Set([
|
|
120
|
+
...previous,
|
|
121
|
+
element
|
|
122
|
+
])),
|
|
123
|
+
remove: (element_0)=>setPanels((previous_0)=>{
|
|
124
|
+
if (!previous_0.has(element_0)) return previous_0;
|
|
125
|
+
const next = new Set(previous_0);
|
|
126
|
+
next.delete(element_0);
|
|
127
|
+
return next;
|
|
128
|
+
})
|
|
129
|
+
};
|
|
130
|
+
$[25] = t8;
|
|
131
|
+
} else t8 = $[25];
|
|
132
|
+
const context = t8;
|
|
133
|
+
const [gapX, gapY] = gap;
|
|
134
|
+
let t10;
|
|
135
|
+
let t9;
|
|
136
|
+
if ($[26] !== content || $[27] !== font || $[28] !== gapX || $[29] !== gapY || $[30] !== height || $[31] !== image || $[32] !== rotate || $[33] !== theme.mode || $[34] !== theme.tokenStyle || $[35] !== width) {
|
|
137
|
+
t9 = ()=>{
|
|
138
|
+
let cancelled = false;
|
|
139
|
+
const canvas = document.createElement("canvas");
|
|
140
|
+
const ctx = canvas.getContext("2d");
|
|
141
|
+
if (!ctx) throw new Error("Watermark requires a Canvas 2D rendering context.");
|
|
142
|
+
const probe = document.createElement("span");
|
|
143
|
+
probe.style.color = "var(--tao-color-fill)";
|
|
144
|
+
probe.dataset.taoTheme = theme.mode;
|
|
145
|
+
Object.entries(theme.tokenStyle).forEach((t11)=>{
|
|
146
|
+
const [key, value] = t11;
|
|
147
|
+
probe.style.setProperty(key, String(value));
|
|
148
|
+
});
|
|
149
|
+
root.current.append(probe);
|
|
150
|
+
const defaultColor = getComputedStyle(probe).color;
|
|
151
|
+
probe.remove();
|
|
152
|
+
const lines = (Array.isArray(content) ? content : void 0 === content ? [] : [
|
|
153
|
+
content
|
|
154
|
+
]).map((line)=>"string" == typeof line ? {
|
|
155
|
+
text: line,
|
|
156
|
+
font
|
|
157
|
+
} : {
|
|
158
|
+
text: line.text,
|
|
159
|
+
font: {
|
|
160
|
+
...font,
|
|
161
|
+
...line.font
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
const metrics = lines.map((line_0)=>{
|
|
165
|
+
ctx.font = fontString(line_0.font);
|
|
166
|
+
const size = ctx.measureText(line_0.text);
|
|
167
|
+
return {
|
|
168
|
+
width: size.width,
|
|
169
|
+
height: (size.fontBoundingBoxAscent ?? size.actualBoundingBoxAscent ?? 12) + (size.fontBoundingBoxDescent ?? size.actualBoundingBoxDescent ?? 4)
|
|
170
|
+
};
|
|
171
|
+
});
|
|
172
|
+
const markWidth = width ?? (image ? 120 : Math.ceil(Math.max(0, ...metrics.map(_temp2))));
|
|
173
|
+
const markHeight = height ?? (image ? 64 : metrics.reduce(_temp3, 0) + 3 * Math.max(0, lines.length - 1));
|
|
174
|
+
const radians = rotate * Math.PI / 180;
|
|
175
|
+
const rotatedWidth = Math.abs(markWidth * Math.cos(radians)) + Math.abs(markHeight * Math.sin(radians));
|
|
176
|
+
const rotatedHeight = Math.abs(markWidth * Math.sin(radians)) + Math.abs(markHeight * Math.cos(radians));
|
|
177
|
+
const tileWidth = Math.max(1, Math.ceil(rotatedWidth + gapX));
|
|
178
|
+
const tileHeight = Math.max(1, Math.ceil(rotatedHeight + gapY));
|
|
179
|
+
const draw = (picture)=>{
|
|
180
|
+
if (cancelled) return;
|
|
181
|
+
const ratio = window.devicePixelRatio || 1;
|
|
182
|
+
canvas.width = Math.ceil(tileWidth * ratio);
|
|
183
|
+
canvas.height = Math.ceil(tileHeight * ratio);
|
|
184
|
+
ctx.scale(ratio, ratio);
|
|
185
|
+
ctx.translate(tileWidth / 2, tileHeight / 2);
|
|
186
|
+
ctx.rotate(radians);
|
|
187
|
+
if (picture) ctx.drawImage(picture, -markWidth / 2, -markHeight / 2, markWidth, markHeight);
|
|
188
|
+
else {
|
|
189
|
+
let y = -markHeight / 2;
|
|
190
|
+
lines.forEach((line_1, index)=>{
|
|
191
|
+
ctx.font = fontString(line_1.font);
|
|
192
|
+
ctx.fillStyle = line_1.font.color ?? defaultColor;
|
|
193
|
+
ctx.textAlign = line_1.font.textAlign ?? "center";
|
|
194
|
+
ctx.textBaseline = "top";
|
|
195
|
+
const x = "left" === ctx.textAlign || "start" === ctx.textAlign ? -markWidth / 2 : "right" === ctx.textAlign || "end" === ctx.textAlign ? markWidth / 2 : 0;
|
|
196
|
+
ctx.fillText(line_1.text, x, y);
|
|
197
|
+
y += metrics[index].height + 3;
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
setTile({
|
|
201
|
+
url: canvas.toDataURL(),
|
|
202
|
+
width: tileWidth,
|
|
203
|
+
height: tileHeight
|
|
204
|
+
});
|
|
205
|
+
};
|
|
206
|
+
let picture_0;
|
|
207
|
+
if (image) {
|
|
208
|
+
picture_0 = new Image();
|
|
209
|
+
picture_0.crossOrigin = "anonymous";
|
|
210
|
+
picture_0.referrerPolicy = "no-referrer";
|
|
211
|
+
picture_0.onload = ()=>draw(picture_0);
|
|
212
|
+
picture_0.onerror = ()=>draw();
|
|
213
|
+
picture_0.src = image;
|
|
214
|
+
} else draw();
|
|
215
|
+
return ()=>{
|
|
216
|
+
cancelled = true;
|
|
217
|
+
if (picture_0) {
|
|
218
|
+
picture_0.onload = null;
|
|
219
|
+
picture_0.onerror = null;
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
t10 = [
|
|
224
|
+
rotate,
|
|
225
|
+
width,
|
|
226
|
+
height,
|
|
227
|
+
image,
|
|
228
|
+
content,
|
|
229
|
+
font,
|
|
230
|
+
gapX,
|
|
231
|
+
gapY,
|
|
232
|
+
theme.mode,
|
|
233
|
+
theme.tokenStyle
|
|
234
|
+
];
|
|
235
|
+
$[26] = content;
|
|
236
|
+
$[27] = font;
|
|
237
|
+
$[28] = gapX;
|
|
238
|
+
$[29] = gapY;
|
|
239
|
+
$[30] = height;
|
|
240
|
+
$[31] = image;
|
|
241
|
+
$[32] = rotate;
|
|
242
|
+
$[33] = theme.mode;
|
|
243
|
+
$[34] = theme.tokenStyle;
|
|
244
|
+
$[35] = width;
|
|
245
|
+
$[36] = t10;
|
|
246
|
+
$[37] = t9;
|
|
247
|
+
} else {
|
|
248
|
+
t10 = $[36];
|
|
249
|
+
t9 = $[37];
|
|
250
|
+
}
|
|
251
|
+
useEffect(t9, t10);
|
|
252
|
+
const offsetX = (offset?.[0] ?? gapX / 2) - gapX / 2;
|
|
253
|
+
const offsetY = (offset?.[1] ?? gapY / 2) - gapY / 2;
|
|
254
|
+
const rootPosition = style?.position ?? styles?.root?.position ?? "relative";
|
|
255
|
+
const rootOverflow = style?.overflow ?? styles?.root?.overflow ?? "hidden";
|
|
256
|
+
let t11;
|
|
257
|
+
if ($[38] !== classNames?.mark || $[39] !== offsetX || $[40] !== offsetY || $[41] !== panels || $[42] !== rootOverflow || $[43] !== rootPosition || $[44] !== styles?.mark || $[45] !== tile || $[46] !== zIndex) {
|
|
258
|
+
t11 = ()=>{
|
|
259
|
+
if (!tile) return;
|
|
260
|
+
const holders = [
|
|
261
|
+
root.current,
|
|
262
|
+
...panels
|
|
263
|
+
];
|
|
264
|
+
const cleanups = holders.map((holder)=>{
|
|
265
|
+
const originalPosition = holder.style.position;
|
|
266
|
+
if ("static" === getComputedStyle(holder).position) holder.style.position = "relative";
|
|
267
|
+
const mark = document.createElement("div");
|
|
268
|
+
mark.setAttribute("data-tao-watermark-mark", "");
|
|
269
|
+
mark.setAttribute("aria-hidden", "true");
|
|
270
|
+
const markStyle = {
|
|
271
|
+
position: "absolute",
|
|
272
|
+
left: Math.max(0, offsetX),
|
|
273
|
+
top: Math.max(0, offsetY),
|
|
274
|
+
width: offsetX > 0 ? `calc(100% - ${offsetX}px)` : "100%",
|
|
275
|
+
height: offsetY > 0 ? `calc(100% - ${offsetY}px)` : "100%",
|
|
276
|
+
zIndex: zIndex ?? "calc(var(--tao-z-index-popup-base) - 1)",
|
|
277
|
+
pointerEvents: "none",
|
|
278
|
+
backgroundRepeat: "repeat",
|
|
279
|
+
backgroundImage: `url("${tile.url}")`,
|
|
280
|
+
backgroundSize: `${tile.width}px ${tile.height}px`,
|
|
281
|
+
backgroundPosition: `${Math.min(0, offsetX)}px ${Math.min(0, offsetY)}px`,
|
|
282
|
+
...styles?.mark
|
|
283
|
+
};
|
|
284
|
+
Object.assign(mark.style, Object.fromEntries(Object.entries(markStyle).map(_temp4)));
|
|
285
|
+
mark.style.setProperty("visibility", "visible", "important");
|
|
286
|
+
const expectedStyle = mark.style.cssText;
|
|
287
|
+
const expectedClass = classNames?.mark ?? "";
|
|
288
|
+
mark.className = expectedClass;
|
|
289
|
+
holder.append(mark);
|
|
290
|
+
const observer = new MutationObserver((records)=>{
|
|
291
|
+
const removed = mark.parentElement !== holder;
|
|
292
|
+
const changed = records.some((record)=>record.target === mark);
|
|
293
|
+
const rootChanged = holder === root.current && records.some((record_0)=>record_0.target === holder && "style" === record_0.attributeName);
|
|
294
|
+
if (!removed && !changed && !rootChanged) return;
|
|
295
|
+
observer.disconnect();
|
|
296
|
+
if (removed) {
|
|
297
|
+
holder.append(mark);
|
|
298
|
+
removeCallback.current?.();
|
|
299
|
+
}
|
|
300
|
+
mark.style.cssText = expectedStyle;
|
|
301
|
+
mark.className = expectedClass;
|
|
302
|
+
mark.removeAttribute("hidden");
|
|
303
|
+
if (rootChanged) {
|
|
304
|
+
holder.style.position = rootPosition;
|
|
305
|
+
holder.style.overflow = rootOverflow;
|
|
306
|
+
}
|
|
307
|
+
observer.observe(holder, {
|
|
308
|
+
childList: true,
|
|
309
|
+
attributes: true,
|
|
310
|
+
subtree: true
|
|
311
|
+
});
|
|
312
|
+
});
|
|
313
|
+
observer.observe(holder, {
|
|
314
|
+
childList: true,
|
|
315
|
+
attributes: true,
|
|
316
|
+
subtree: true
|
|
317
|
+
});
|
|
318
|
+
return ()=>{
|
|
319
|
+
observer.disconnect();
|
|
320
|
+
mark.remove();
|
|
321
|
+
if (holder !== root.current && "relative" === holder.style.position) holder.style.position = originalPosition;
|
|
322
|
+
};
|
|
323
|
+
});
|
|
324
|
+
return ()=>{
|
|
325
|
+
cleanups.forEach(_temp5);
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
$[38] = classNames?.mark;
|
|
329
|
+
$[39] = offsetX;
|
|
330
|
+
$[40] = offsetY;
|
|
331
|
+
$[41] = panels;
|
|
332
|
+
$[42] = rootOverflow;
|
|
333
|
+
$[43] = rootPosition;
|
|
334
|
+
$[44] = styles?.mark;
|
|
335
|
+
$[45] = tile;
|
|
336
|
+
$[46] = zIndex;
|
|
337
|
+
$[47] = t11;
|
|
338
|
+
} else t11 = $[47];
|
|
339
|
+
const t12 = styles?.mark;
|
|
340
|
+
const t13 = classNames?.mark;
|
|
341
|
+
let t14;
|
|
342
|
+
if ($[48] !== offsetX || $[49] !== offsetY || $[50] !== panels || $[51] !== rootOverflow || $[52] !== rootPosition || $[53] !== t12 || $[54] !== t13 || $[55] !== tile || $[56] !== zIndex) {
|
|
343
|
+
t14 = [
|
|
344
|
+
tile,
|
|
345
|
+
panels,
|
|
346
|
+
zIndex,
|
|
347
|
+
offsetX,
|
|
348
|
+
offsetY,
|
|
349
|
+
t12,
|
|
350
|
+
t13,
|
|
351
|
+
rootPosition,
|
|
352
|
+
rootOverflow
|
|
353
|
+
];
|
|
354
|
+
$[48] = offsetX;
|
|
355
|
+
$[49] = offsetY;
|
|
356
|
+
$[50] = panels;
|
|
357
|
+
$[51] = rootOverflow;
|
|
358
|
+
$[52] = rootPosition;
|
|
359
|
+
$[53] = t12;
|
|
360
|
+
$[54] = t13;
|
|
361
|
+
$[55] = tile;
|
|
362
|
+
$[56] = zIndex;
|
|
363
|
+
$[57] = t14;
|
|
364
|
+
} else t14 = $[57];
|
|
365
|
+
useEffect(t11, t14);
|
|
366
|
+
const t15 = classNames?.root;
|
|
367
|
+
let t16;
|
|
368
|
+
if ($[58] !== className || $[59] !== rootClassName || $[60] !== t15) {
|
|
369
|
+
t16 = cx(t15, className, rootClassName);
|
|
370
|
+
$[58] = className;
|
|
371
|
+
$[59] = rootClassName;
|
|
372
|
+
$[60] = t15;
|
|
373
|
+
$[61] = t16;
|
|
374
|
+
} else t16 = $[61];
|
|
375
|
+
const t17 = styles?.root;
|
|
376
|
+
let t18;
|
|
377
|
+
if ($[62] !== style || $[63] !== t17) {
|
|
378
|
+
t18 = {
|
|
379
|
+
position: "relative",
|
|
380
|
+
overflow: "hidden",
|
|
381
|
+
...t17,
|
|
382
|
+
...style
|
|
383
|
+
};
|
|
384
|
+
$[62] = style;
|
|
385
|
+
$[63] = t17;
|
|
386
|
+
$[64] = t18;
|
|
387
|
+
} else t18 = $[64];
|
|
388
|
+
let t19;
|
|
389
|
+
if ($[65] !== children || $[66] !== inherit) {
|
|
390
|
+
t19 = inherit ? /*#__PURE__*/ jsx(WatermarkContext.Provider, {
|
|
391
|
+
value: context,
|
|
392
|
+
children: children
|
|
393
|
+
}) : children;
|
|
394
|
+
$[65] = children;
|
|
395
|
+
$[66] = inherit;
|
|
396
|
+
$[67] = t19;
|
|
397
|
+
} else t19 = $[67];
|
|
398
|
+
let t20;
|
|
399
|
+
if ($[68] !== rest || $[69] !== t16 || $[70] !== t18 || $[71] !== t19) {
|
|
400
|
+
t20 = /*#__PURE__*/ jsx("div", {
|
|
401
|
+
...rest,
|
|
402
|
+
ref: root,
|
|
403
|
+
"data-tao-watermark": "",
|
|
404
|
+
className: t16,
|
|
405
|
+
style: t18,
|
|
406
|
+
children: t19
|
|
407
|
+
});
|
|
408
|
+
$[68] = rest;
|
|
409
|
+
$[69] = t16;
|
|
410
|
+
$[70] = t18;
|
|
411
|
+
$[71] = t19;
|
|
412
|
+
$[72] = t20;
|
|
413
|
+
} else t20 = $[72];
|
|
414
|
+
return t20;
|
|
415
|
+
});
|
|
416
|
+
Watermark.displayName = 'Watermark';
|
|
417
|
+
function _temp() {
|
|
418
|
+
return new Set();
|
|
419
|
+
}
|
|
420
|
+
function _temp2(metric) {
|
|
421
|
+
return metric.width;
|
|
422
|
+
}
|
|
423
|
+
function _temp3(sum, metric_0) {
|
|
424
|
+
return sum + metric_0.height;
|
|
425
|
+
}
|
|
426
|
+
function _temp4(t0) {
|
|
427
|
+
const [key_0, value_0] = t0;
|
|
428
|
+
return [
|
|
429
|
+
key_0,
|
|
430
|
+
"number" == typeof value_0 && "zIndex" !== key_0 && "opacity" !== key_0 ? `${value_0}px` : value_0
|
|
431
|
+
];
|
|
432
|
+
}
|
|
433
|
+
function _temp5(cleanup) {
|
|
434
|
+
cleanup();
|
|
435
|
+
}
|
|
436
|
+
export { Watermark };
|
|
@@ -2,35 +2,20 @@ import type { ComponentDoc } from './component-doc.js';
|
|
|
2
2
|
export declare const componentDocs: ({
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
5
|
-
category: "
|
|
5
|
+
category: "Navigation";
|
|
6
6
|
description: string;
|
|
7
7
|
exports: string[];
|
|
8
8
|
source: string;
|
|
9
9
|
story: string;
|
|
10
10
|
tests: string[];
|
|
11
11
|
semanticParts: string[];
|
|
12
|
-
keywords: string[];
|
|
13
|
-
related: string[];
|
|
14
12
|
usage: {
|
|
15
13
|
description: string;
|
|
16
|
-
bestPractices: string[];
|
|
17
|
-
avoid: string[];
|
|
18
14
|
};
|
|
19
|
-
props: ({
|
|
20
|
-
name: string;
|
|
21
|
-
type: string;
|
|
22
|
-
description: string;
|
|
23
|
-
defaultValue: string;
|
|
24
|
-
} | {
|
|
25
|
-
name: string;
|
|
26
|
-
type: string;
|
|
27
|
-
description: string;
|
|
28
|
-
defaultValue?: undefined;
|
|
29
|
-
})[];
|
|
30
15
|
} | {
|
|
31
16
|
name: string;
|
|
32
17
|
displayName: string;
|
|
33
|
-
category: "
|
|
18
|
+
category: "Config";
|
|
34
19
|
description: string;
|
|
35
20
|
exports: string[];
|
|
36
21
|
source: string;
|
|
@@ -47,18 +32,28 @@ export declare const componentDocs: ({
|
|
|
47
32
|
} | {
|
|
48
33
|
name: string;
|
|
49
34
|
displayName: string;
|
|
50
|
-
category: "
|
|
35
|
+
category: "General";
|
|
36
|
+
description: string;
|
|
37
|
+
exports: string[];
|
|
38
|
+
source: string;
|
|
39
|
+
story: string;
|
|
40
|
+
tests: string[];
|
|
41
|
+
semanticParts: string[];
|
|
42
|
+
usage: {
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
} | {
|
|
46
|
+
name: string;
|
|
47
|
+
displayName: string;
|
|
48
|
+
category: "Data Display";
|
|
51
49
|
description: string;
|
|
52
50
|
exports: string[];
|
|
53
51
|
source: string;
|
|
54
52
|
story: string;
|
|
55
53
|
tests: string[];
|
|
56
54
|
semanticParts: string[];
|
|
57
|
-
keywords: string[];
|
|
58
|
-
related: string[];
|
|
59
55
|
usage: {
|
|
60
56
|
description: string;
|
|
61
|
-
bestPractices: string[];
|
|
62
57
|
};
|
|
63
58
|
} | {
|
|
64
59
|
name: string;
|
|
@@ -71,20 +66,21 @@ export declare const componentDocs: ({
|
|
|
71
66
|
tests: string[];
|
|
72
67
|
semanticParts: string[];
|
|
73
68
|
keywords: string[];
|
|
74
|
-
related: string[];
|
|
75
69
|
usage: {
|
|
76
70
|
description: string;
|
|
77
71
|
bestPractices: string[];
|
|
72
|
+
avoid: string[];
|
|
78
73
|
};
|
|
79
74
|
} | {
|
|
80
75
|
name: string;
|
|
81
76
|
displayName: string;
|
|
82
|
-
category: "
|
|
77
|
+
category: "Layout";
|
|
83
78
|
description: string;
|
|
84
79
|
exports: string[];
|
|
85
80
|
source: string;
|
|
86
81
|
story: string;
|
|
87
82
|
tests: string[];
|
|
83
|
+
semanticParts: string[];
|
|
88
84
|
keywords: string[];
|
|
89
85
|
related: string[];
|
|
90
86
|
usage: {
|
|
@@ -94,13 +90,12 @@ export declare const componentDocs: ({
|
|
|
94
90
|
} | {
|
|
95
91
|
name: string;
|
|
96
92
|
displayName: string;
|
|
97
|
-
category: "
|
|
93
|
+
category: "Headless";
|
|
98
94
|
description: string;
|
|
99
95
|
exports: string[];
|
|
100
96
|
source: string;
|
|
101
97
|
story: string;
|
|
102
98
|
tests: string[];
|
|
103
|
-
semanticParts: string[];
|
|
104
99
|
keywords: string[];
|
|
105
100
|
related: string[];
|
|
106
101
|
usage: {
|
|
@@ -110,18 +105,15 @@ export declare const componentDocs: ({
|
|
|
110
105
|
} | {
|
|
111
106
|
name: string;
|
|
112
107
|
displayName: string;
|
|
113
|
-
category: "Data
|
|
108
|
+
category: "Data Entry";
|
|
114
109
|
description: string;
|
|
115
110
|
exports: string[];
|
|
116
111
|
source: string;
|
|
117
112
|
story: string;
|
|
118
113
|
tests: string[];
|
|
119
114
|
semanticParts: string[];
|
|
120
|
-
keywords: string[];
|
|
121
|
-
related: string[];
|
|
122
115
|
usage: {
|
|
123
116
|
description: string;
|
|
124
|
-
bestPractices: string[];
|
|
125
117
|
};
|
|
126
118
|
} | {
|
|
127
119
|
name: string;
|
|
@@ -144,5 +136,19 @@ export declare const componentDocs: ({
|
|
|
144
136
|
type: string;
|
|
145
137
|
description: string;
|
|
146
138
|
}[];
|
|
139
|
+
} | {
|
|
140
|
+
name: string;
|
|
141
|
+
displayName: string;
|
|
142
|
+
category: "Feedback";
|
|
143
|
+
description: string;
|
|
144
|
+
exports: string[];
|
|
145
|
+
source: string;
|
|
146
|
+
story: string;
|
|
147
|
+
tests: string[];
|
|
148
|
+
semanticParts: string[];
|
|
149
|
+
usage: {
|
|
150
|
+
description: string;
|
|
151
|
+
bestPractices: string[];
|
|
152
|
+
};
|
|
147
153
|
})[];
|
|
148
154
|
export declare function getComponentDoc(name: string): ComponentDoc | undefined;
|