@expcat/tigercat-react 2.0.0-preview.2 → 2.0.0-preview.4
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/dist/{chunk-2YDLAZTK.mjs → chunk-3O2WHF3U.mjs} +5 -2
- package/dist/{chunk-MZPKFMQC.mjs → chunk-44BPUG24.mjs} +13 -7
- package/dist/{chunk-7TVZTASQ.mjs → chunk-44CQTGAN.mjs} +22 -3
- package/dist/{chunk-7PP6RECM.mjs → chunk-532RNNPH.mjs} +3 -3
- package/dist/{chunk-533KLM7P.mjs → chunk-5IHOOP5A.mjs} +2 -2
- package/dist/{chunk-CR4QBH46.mjs → chunk-5RVLBNLI.mjs} +1 -1
- package/dist/{chunk-UPQGB5NQ.mjs → chunk-6SEPT4C5.mjs} +22 -11
- package/dist/{chunk-GCOA4AO6.mjs → chunk-773LH7BK.mjs} +1 -1
- package/dist/{chunk-MZCGQED3.mjs → chunk-7EXOY7GD.mjs} +1 -1
- package/dist/{chunk-AF3N4GJJ.mjs → chunk-7KCQMXJA.mjs} +1 -1
- package/dist/{chunk-SNE3E22Q.mjs → chunk-A6JNS35U.mjs} +5 -2
- package/dist/{chunk-FWIYDMJA.mjs → chunk-AGTXDHQJ.mjs} +1 -1
- package/dist/{chunk-WTIEJCRV.mjs → chunk-AJJJ6HWC.mjs} +1 -1
- package/dist/{chunk-SHJNDDYK.mjs → chunk-ASLRAZZN.mjs} +54 -29
- package/dist/{chunk-WLFLQB4R.mjs → chunk-BEJZPJIK.mjs} +1 -1
- package/dist/{chunk-JNZHZVPW.mjs → chunk-CN3QXWK3.mjs} +1 -1
- package/dist/{chunk-OTRPN5ZG.mjs → chunk-CT36XD5I.mjs} +1 -1
- package/dist/{chunk-LJWQ7T57.mjs → chunk-CVYA3MI2.mjs} +10 -6
- package/dist/{chunk-6REMGSLS.mjs → chunk-D4LASFVY.mjs} +1 -1
- package/dist/{chunk-XHNR3A7A.mjs → chunk-DJ4PSDQS.mjs} +5 -2
- package/dist/{chunk-Z2NZ2XC5.mjs → chunk-EKESN747.mjs} +1 -1
- package/dist/{chunk-7S4TP4MZ.mjs → chunk-EW5EO7VE.mjs} +1 -1
- package/dist/{chunk-ZG2W4HS5.mjs → chunk-F2ITBDUS.mjs} +2 -1
- package/dist/chunk-F6T3OLTQ.mjs +12 -0
- package/dist/{chunk-NRWH5IWZ.mjs → chunk-F6WV53BS.mjs} +11 -4
- package/dist/{chunk-D524E52A.mjs → chunk-FDKWHP2K.mjs} +22 -6
- package/dist/{chunk-4R5YXNU4.mjs → chunk-FPQMJFFM.mjs} +20 -3
- package/dist/{chunk-2UFTDDPW.mjs → chunk-HXD7KMRP.mjs} +1 -1
- package/dist/{chunk-HDCC4FBL.mjs → chunk-I5TELDUV.mjs} +2 -1
- package/dist/{chunk-GQPKHMHA.mjs → chunk-IBSOUQGB.mjs} +1 -1
- package/dist/{chunk-YN4FMZX5.mjs → chunk-IPJLQSAF.mjs} +4 -4
- package/dist/{chunk-VBGJQPPI.mjs → chunk-IZYFETUS.mjs} +3 -3
- package/dist/{chunk-YTFQBXH4.mjs → chunk-JTFNGXOC.mjs} +1 -1
- package/dist/{chunk-TJDZFN2Z.mjs → chunk-K7MYQISG.mjs} +1 -1
- package/dist/{chunk-GFLKO46C.mjs → chunk-KFPQ6DIH.mjs} +1 -1
- package/dist/{chunk-I3SE5HMH.mjs → chunk-KMP5CVNK.mjs} +1 -1
- package/dist/{chunk-32PAZTVF.mjs → chunk-KVARQQAG.mjs} +64 -19
- package/dist/{chunk-B3O6MAC3.mjs → chunk-L55UK45A.mjs} +6 -4
- package/dist/{chunk-3HPDLIX3.mjs → chunk-LADKKOJT.mjs} +4 -2
- package/dist/{chunk-2PZICT2T.mjs → chunk-LZKBDQE4.mjs} +1 -1
- package/dist/{chunk-K6JLLCY7.mjs → chunk-MGQWVJHX.mjs} +2 -2
- package/dist/{chunk-H4MPPCTB.mjs → chunk-MOWK7CND.mjs} +1 -1
- package/dist/{chunk-RCUL6RZU.mjs → chunk-MXXAJSRS.mjs} +28 -8
- package/dist/{chunk-KWVA2DN3.mjs → chunk-O5RAMCBV.mjs} +1 -1
- package/dist/{chunk-ZRZB3C5J.mjs → chunk-OIGEBCAS.mjs} +1 -1
- package/dist/{chunk-4ZZ7YRTB.mjs → chunk-OO562MFD.mjs} +1 -1
- package/dist/{chunk-7RI5W465.mjs → chunk-OQLP452R.mjs} +1 -1
- package/dist/{chunk-BPQEM6AF.mjs → chunk-OTBXERJD.mjs} +1 -1
- package/dist/{chunk-YLVXXP7E.mjs → chunk-PAN256RW.mjs} +2 -2
- package/dist/{chunk-LAKPYMBZ.mjs → chunk-PAS347EX.mjs} +1 -1
- package/dist/{chunk-V23KR23W.mjs → chunk-PGD5RPKF.mjs} +20 -3
- package/dist/{chunk-SHDQJ5BJ.mjs → chunk-PU3JY6RE.mjs} +1 -1
- package/dist/{chunk-R67HTROL.mjs → chunk-PXRZ6CKY.mjs} +3 -3
- package/dist/{chunk-2GSXSLGC.mjs → chunk-PYDWF4ED.mjs} +7 -7
- package/dist/{chunk-Z6BDNV3S.mjs → chunk-QB5472NM.mjs} +1 -1
- package/dist/{chunk-BSXPB2V6.mjs → chunk-QGZ32NFQ.mjs} +1 -1
- package/dist/{chunk-MMWF2OPA.mjs → chunk-SHCBCM2W.mjs} +6 -3
- package/dist/{chunk-WKTIDYPD.mjs → chunk-SZBYEGKU.mjs} +1 -1
- package/dist/{chunk-QWOE4FGJ.mjs → chunk-TDFLUDRM.mjs} +78 -22
- package/dist/{chunk-4F3UTDFE.mjs → chunk-TFMEHUVZ.mjs} +1 -1
- package/dist/chunk-TGXBCKOU.mjs +35 -0
- package/dist/{chunk-3OBUJIJI.mjs → chunk-TO2URY7X.mjs} +3 -3
- package/dist/{chunk-VKIGZWRK.mjs → chunk-TORX7SG4.mjs} +1 -1
- package/dist/{chunk-LOM6NNQK.mjs → chunk-U7RLVY67.mjs} +1 -1
- package/dist/{chunk-XSAKD4MX.mjs → chunk-UHK2ISKR.mjs} +19 -9
- package/dist/{chunk-4SU6D2E7.mjs → chunk-UYQBXVFE.mjs} +1 -1
- package/dist/{chunk-5SX2M3LU.mjs → chunk-VA6PZWOH.mjs} +1 -1
- package/dist/{chunk-T6HNFCOW.mjs → chunk-VD55SSP7.mjs} +1 -1
- package/dist/{chunk-NJHZQBA7.mjs → chunk-W7BC4I2Y.mjs} +1 -1
- package/dist/{chunk-MOLUSXVC.mjs → chunk-XIVU7TWX.mjs} +4 -4
- package/dist/{chunk-QAIBQHIO.mjs → chunk-YSIXURBW.mjs} +16 -1
- package/dist/{chunk-J4HCTYJG.mjs → chunk-Z3CRHC5F.mjs} +21 -2
- package/dist/{chunk-YCEH4N3Z.mjs → chunk-Z47SG5L5.mjs} +3 -3
- package/dist/{chunk-AMEH5EHB.mjs → chunk-ZEP7I6WB.mjs} +2 -2
- package/dist/{chunk-ZFGSZW7S.mjs → chunk-ZMRTETN2.mjs} +1 -1
- package/dist/components/ActivityFeed.d.mts +5 -5
- package/dist/components/ActivityFeed.mjs +8 -7
- package/dist/components/Affix.d.mts +4 -4
- package/dist/components/Alert.d.mts +7 -7
- package/dist/components/Anchor.d.mts +9 -9
- package/dist/components/AreaChart.d.mts +2 -2
- package/dist/components/AreaChart.mjs +2 -2
- package/dist/components/AutoComplete.d.mts +3 -3
- package/dist/components/AutoComplete.mjs +3 -2
- package/dist/components/Avatar.d.mts +4 -4
- package/dist/components/Avatar.mjs +4 -2
- package/dist/components/AvatarGroup.d.mts +10 -6
- package/dist/components/AvatarGroup.mjs +3 -1
- package/dist/components/BackTop.d.mts +5 -5
- package/dist/components/Badge.d.mts +4 -4
- package/dist/components/Badge.mjs +3 -2
- package/dist/components/BarChart.d.mts +2 -2
- package/dist/components/BarChart.mjs +2 -2
- package/dist/components/Breadcrumb.d.mts +10 -10
- package/dist/components/Button.d.mts +5 -5
- package/dist/components/ButtonGroup.d.mts +4 -4
- package/dist/components/Calendar.d.mts +2 -2
- package/dist/components/Calendar.mjs +3 -2
- package/dist/components/Card.d.mts +7 -7
- package/dist/components/Carousel.d.mts +9 -5
- package/dist/components/Carousel.mjs +3 -1
- package/dist/components/Cascader.d.mts +3 -3
- package/dist/components/Cascader.mjs +3 -2
- package/dist/components/ChartAxis.d.mts +3 -3
- package/dist/components/ChartCanvas.d.mts +3 -3
- package/dist/components/ChartGrid.d.mts +3 -3
- package/dist/components/ChartLegend.d.mts +3 -2
- package/dist/components/ChartLegend.mjs +1 -1
- package/dist/components/ChartSeries.d.mts +4 -4
- package/dist/components/ChartTooltip.d.mts +2 -2
- package/dist/components/ChatWindow.d.mts +4 -4
- package/dist/components/ChatWindow.mjs +8 -6
- package/dist/components/Checkbox.d.mts +5 -5
- package/dist/components/CheckboxGroup.d.mts +4 -4
- package/dist/components/Code.d.mts +3 -3
- package/dist/components/CodeEditor.d.mts +4 -4
- package/dist/components/Col.d.mts +3 -3
- package/dist/components/Collapse.d.mts +4 -4
- package/dist/components/CollapsePanel.d.mts +6 -6
- package/dist/components/ColorPicker.d.mts +2 -2
- package/dist/components/ColorPicker.mjs +1 -1
- package/dist/components/ColorSwatch.d.mts +2 -2
- package/dist/components/CommentThread.d.mts +3 -3
- package/dist/components/CommentThread.mjs +6 -5
- package/dist/components/ConfigProvider.d.mts +3 -3
- package/dist/components/ConfigProvider.mjs +2 -1
- package/dist/components/Container.d.mts +4 -4
- package/dist/components/Content.d.mts +4 -4
- package/dist/components/Countdown.d.mts +3 -3
- package/dist/components/CronEditor.d.mts +7 -3
- package/dist/components/CronEditor.mjs +3 -1
- package/dist/components/CropUpload.d.mts +3 -3
- package/dist/components/CropUpload.mjs +5 -4
- package/dist/components/DataTableWithToolbar.d.mts +6 -6
- package/dist/components/DataTableWithToolbar.mjs +8 -6
- package/dist/components/DatePicker.d.mts +3 -3
- package/dist/components/DatePicker.mjs +3 -2
- package/dist/components/Descriptions.d.mts +7 -7
- package/dist/components/Divider.d.mts +3 -3
- package/dist/components/DonutChart.d.mts +2 -2
- package/dist/components/DonutChart.mjs +3 -3
- package/dist/components/Drawer.d.mts +7 -7
- package/dist/components/Drawer.mjs +3 -2
- package/dist/components/Dropdown.d.mts +15 -15
- package/dist/components/Empty.d.mts +6 -6
- package/dist/components/Empty.mjs +3 -2
- package/dist/components/FileManager.d.mts +3 -3
- package/dist/components/FileManager.mjs +3 -2
- package/dist/components/FloatButton.d.mts +9 -9
- package/dist/components/Footer.d.mts +4 -4
- package/dist/components/Form.d.mts +3 -3
- package/dist/components/Form.mjs +3 -2
- package/dist/components/FormItem.d.mts +3 -3
- package/dist/components/FormItem.mjs +5 -3
- package/dist/components/FormItemContext.d.mts +12 -0
- package/dist/components/FormItemContext.mjs +8 -0
- package/dist/components/FormWizard.d.mts +5 -5
- package/dist/components/FormWizard.mjs +3 -2
- package/dist/components/FunnelChart.d.mts +2 -2
- package/dist/components/FunnelChart.mjs +2 -2
- package/dist/components/Gantt.d.mts +2 -2
- package/dist/components/GaugeChart.d.mts +2 -2
- package/dist/components/Header.d.mts +4 -4
- package/dist/components/HeatmapChart.d.mts +2 -2
- package/dist/components/Icon.d.mts +4 -4
- package/dist/components/Icon.mjs +1 -1
- package/dist/components/Image.d.mts +5 -5
- package/dist/components/Image.mjs +5 -4
- package/dist/components/ImageAnnotation.d.mts +3 -3
- package/dist/components/ImageAnnotation.mjs +3 -2
- package/dist/components/ImageCropper.d.mts +3 -3
- package/dist/components/ImageCropper.mjs +3 -2
- package/dist/components/ImageGroup.d.mts +4 -4
- package/dist/components/ImageGroup.mjs +4 -3
- package/dist/components/ImagePreview.d.mts +2 -2
- package/dist/components/ImagePreview.mjs +3 -2
- package/dist/components/ImageViewer.d.mts +2 -2
- package/dist/components/ImageViewer.mjs +3 -2
- package/dist/components/InfiniteScroll.d.mts +5 -5
- package/dist/components/InfiniteScroll.mjs +3 -2
- package/dist/components/Input.d.mts +9 -9
- package/dist/components/Input.mjs +2 -1
- package/dist/components/InputGroup.d.mts +6 -6
- package/dist/components/InputNumber.d.mts +4 -4
- package/dist/components/InputNumber.mjs +1 -1
- package/dist/components/Kanban.d.mts +5 -5
- package/dist/components/Kanban.mjs +4 -3
- package/dist/components/Layout.d.mts +4 -4
- package/dist/components/LineChart.d.mts +2 -2
- package/dist/components/LineChart.mjs +2 -2
- package/dist/components/Link.d.mts +5 -5
- package/dist/components/List.d.mts +6 -6
- package/dist/components/List.mjs +3 -2
- package/dist/components/Loading.d.mts +3 -3
- package/dist/components/Loading.mjs +3 -2
- package/dist/components/MarkdownEditor.d.mts +8 -4
- package/dist/components/MarkdownEditor.mjs +3 -1
- package/dist/components/Mentions.d.mts +2 -2
- package/dist/components/Menu.d.mts +9 -9
- package/dist/components/Message.mjs +14 -1
- package/dist/components/MessageContainer.d.mts +2 -2
- package/dist/components/MessageContainer.mjs +1 -1
- package/dist/components/MessageRoot.mjs +1 -1
- package/dist/components/Modal.d.mts +6 -6
- package/dist/components/Modal.mjs +3 -2
- package/dist/components/Notification.mjs +14 -1
- package/dist/components/NotificationCenter.d.mts +3 -3
- package/dist/components/NotificationCenter.mjs +6 -5
- package/dist/components/NotificationContainer.d.mts +2 -2
- package/dist/components/NotificationContainer.mjs +1 -1
- package/dist/components/NotificationRoot.mjs +1 -1
- package/dist/components/NumberKeyboard.d.mts +3 -3
- package/dist/components/NumberKeyboard.mjs +3 -2
- package/dist/components/OrgChart.d.mts +2 -2
- package/dist/components/Pagination.d.mts +4 -4
- package/dist/components/Pagination.mjs +3 -2
- package/dist/components/PieChart.d.mts +2 -2
- package/dist/components/PieChart.mjs +2 -2
- package/dist/components/Popconfirm.d.mts +8 -8
- package/dist/components/Popover.d.mts +8 -8
- package/dist/components/PrintLayout.d.mts +8 -8
- package/dist/components/PrintLayout.mjs +1 -1
- package/dist/components/Progress.d.mts +3 -3
- package/dist/components/QRCode.d.mts +2 -2
- package/dist/components/QRCode.mjs +3 -2
- package/dist/components/RadarChart.d.mts +2 -2
- package/dist/components/RadarChart.mjs +2 -2
- package/dist/components/Radio.d.mts +4 -4
- package/dist/components/RadioGroup.d.mts +5 -5
- package/dist/components/Rate.d.mts +7 -3
- package/dist/components/Rate.mjs +3 -1
- package/dist/components/Resizable.d.mts +4 -4
- package/dist/components/Result.d.mts +6 -6
- package/dist/components/RichTextEditor.d.mts +8 -4
- package/dist/components/RichTextEditor.mjs +3 -1
- package/dist/components/Row.d.mts +4 -4
- package/dist/components/ScatterChart.d.mts +5 -3
- package/dist/components/ScatterChart.mjs +4 -2
- package/dist/components/ScrollSpy.d.mts +5 -5
- package/dist/components/Segmented.d.mts +2 -2
- package/dist/components/Select.d.mts +3 -3
- package/dist/components/Select.mjs +3 -2
- package/dist/components/Sidebar.d.mts +4 -4
- package/dist/components/Signature.d.mts +3 -3
- package/dist/components/Signature.mjs +3 -2
- package/dist/components/Skeleton.d.mts +3 -3
- package/dist/components/Slider.d.mts +3 -3
- package/dist/components/Space.d.mts +5 -5
- package/dist/components/Splitter.d.mts +4 -4
- package/dist/components/Spotlight.d.mts +3 -3
- package/dist/components/Spotlight.mjs +3 -2
- package/dist/components/Statistic.d.mts +2 -2
- package/dist/components/Stepper.d.mts +2 -2
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/Steps.d.mts +7 -7
- package/dist/components/SunburstChart.d.mts +2 -2
- package/dist/components/SunburstChart.mjs +2 -2
- package/dist/components/Switch.d.mts +3 -3
- package/dist/components/Table.d.mts +2 -2
- package/dist/components/Table.mjs +5 -4
- package/dist/components/Tabs.d.mts +15 -10
- package/dist/components/Tabs.mjs +3 -1
- package/dist/components/Tag.d.mts +5 -5
- package/dist/components/Tag.mjs +3 -2
- package/dist/components/TaskBoard.d.mts +8 -8
- package/dist/components/TaskBoard.mjs +3 -2
- package/dist/components/Text.d.mts +4 -4
- package/dist/components/Textarea.d.mts +7 -7
- package/dist/components/TimePicker.d.mts +3 -3
- package/dist/components/TimePicker.mjs +3 -2
- package/dist/components/Timeline.d.mts +7 -7
- package/dist/components/Timeline.mjs +3 -2
- package/dist/components/Tooltip.d.mts +6 -6
- package/dist/components/Tour.d.mts +2 -2
- package/dist/components/Tour.mjs +3 -2
- package/dist/components/Transfer.d.mts +6 -4
- package/dist/components/Transfer.mjs +3 -2
- package/dist/components/Tree.d.mts +4 -4
- package/dist/components/Tree.mjs +3 -2
- package/dist/components/TreeMapChart.d.mts +2 -2
- package/dist/components/TreeMapChart.mjs +2 -2
- package/dist/components/TreeSelect.d.mts +3 -3
- package/dist/components/TreeSelect.mjs +3 -2
- package/dist/components/Upload.d.mts +3 -3
- package/dist/components/Upload.mjs +3 -2
- package/dist/components/VirtualList.d.mts +3 -3
- package/dist/components/VirtualTable.d.mts +3 -3
- package/dist/components/VirtualTable.mjs +3 -2
- package/dist/components/Watermark.d.mts +4 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +92 -0
- package/package.json +2 -2
- /package/dist/{chunk-BPFKTAF2.mjs → chunk-L5KAXWQI.mjs} +0 -0
- /package/dist/{chunk-FNBTGIDG.mjs → chunk-Y3SGFGN6.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useTigerConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YSIXURBW.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/TreeSelect.tsx
|
|
6
6
|
import { useState, useMemo, useRef, useEffect, useId } from "react";
|
|
@@ -197,7 +197,7 @@ var TreeSelect = (props) => {
|
|
|
197
197
|
"span",
|
|
198
198
|
{
|
|
199
199
|
className: "absolute right-2 top-1/2 -translate-y-1/2 text-[var(--tiger-treeselect-clear,var(--tiger-text-muted,#9ca3af))] hover:text-[var(--tiger-treeselect-clear-hover,var(--tiger-text,#111827))]",
|
|
200
|
-
"aria-label": "Clear selection",
|
|
200
|
+
"aria-label": resolveLocaleText("Clear selection", mergedLocale?.common?.clearText),
|
|
201
201
|
onClick: handleClear,
|
|
202
202
|
children: /* @__PURE__ */ jsx(
|
|
203
203
|
"svg",
|
|
@@ -231,7 +231,7 @@ var TreeSelect = (props) => {
|
|
|
231
231
|
className: treeSelectSearchClasses,
|
|
232
232
|
placeholder: resolveLocaleText("Search...", mergedLocale?.common?.searchPlaceholder),
|
|
233
233
|
value: searchQuery,
|
|
234
|
-
"aria-label": "Search tree",
|
|
234
|
+
"aria-label": resolveLocaleText("Search tree", mergedLocale?.common?.searchPlaceholder),
|
|
235
235
|
onChange: (e) => updateSearchValue(e.target.value)
|
|
236
236
|
}
|
|
237
237
|
),
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useTigerConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YSIXURBW.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/Transfer.tsx
|
|
6
6
|
import { useState, useMemo } from "react";
|
|
7
7
|
import {
|
|
8
8
|
resolveLocaleText,
|
|
9
9
|
mergeTigerLocale,
|
|
10
|
+
getTransferLabels,
|
|
10
11
|
transferBaseClasses,
|
|
11
12
|
transferPanelClasses,
|
|
12
13
|
transferPanelHeaderClasses,
|
|
@@ -55,14 +56,15 @@ var Transfer = (props) => {
|
|
|
55
56
|
searchable = false,
|
|
56
57
|
searchValue,
|
|
57
58
|
defaultSearchValue,
|
|
58
|
-
sourceTitle
|
|
59
|
-
targetTitle
|
|
59
|
+
sourceTitle,
|
|
60
|
+
targetTitle,
|
|
60
61
|
emptyText,
|
|
61
62
|
filterOption,
|
|
62
63
|
className,
|
|
63
64
|
onChange,
|
|
64
65
|
onSearchChange,
|
|
65
66
|
locale,
|
|
67
|
+
labels: labelsOverride,
|
|
66
68
|
...rest
|
|
67
69
|
} = props;
|
|
68
70
|
const resolvedValue = value ?? targetKeys ?? EMPTY_TRANSFER_VALUE;
|
|
@@ -71,6 +73,14 @@ var Transfer = (props) => {
|
|
|
71
73
|
() => mergeTigerLocale(config.locale, locale),
|
|
72
74
|
[config.locale, locale]
|
|
73
75
|
);
|
|
76
|
+
const labels = useMemo(
|
|
77
|
+
() => getTransferLabels(mergedLocale, {
|
|
78
|
+
...labelsOverride,
|
|
79
|
+
sourceTitle,
|
|
80
|
+
targetTitle
|
|
81
|
+
}),
|
|
82
|
+
[mergedLocale, labelsOverride, sourceTitle, targetTitle]
|
|
83
|
+
);
|
|
74
84
|
const divProps = {};
|
|
75
85
|
for (const key of Object.keys(rest)) {
|
|
76
86
|
if (!TRANSFER_KEYS.has(key)) {
|
|
@@ -165,7 +175,7 @@ var Transfer = (props) => {
|
|
|
165
175
|
className: transferSearchClasses,
|
|
166
176
|
placeholder: resolveLocaleText("Search...", mergedLocale?.common?.searchPlaceholder),
|
|
167
177
|
value: searchValue2,
|
|
168
|
-
"aria-label":
|
|
178
|
+
"aria-label": labels.searchAriaLabel.replace("{title}", title),
|
|
169
179
|
onChange: (e) => onSearchInput(e.target.value)
|
|
170
180
|
}
|
|
171
181
|
),
|
|
@@ -173,7 +183,7 @@ var Transfer = (props) => {
|
|
|
173
183
|
"div",
|
|
174
184
|
{
|
|
175
185
|
className: transferPanelBodyClasses,
|
|
176
|
-
...getPickerListboxAria({ label:
|
|
186
|
+
...getPickerListboxAria({ label: labels.itemsAriaLabel.replace("{title}", title) }),
|
|
177
187
|
children: items.length > 0 ? items.map((item) => {
|
|
178
188
|
const isSelected = selectedKeys.has(item.key);
|
|
179
189
|
const isDisabled = disabled || !!item.disabled;
|
|
@@ -207,7 +217,7 @@ var Transfer = (props) => {
|
|
|
207
217
|
}
|
|
208
218
|
return /* @__PURE__ */ jsxs("div", { className: classNames(transferBaseClasses, className), ...divProps, children: [
|
|
209
219
|
renderPanel(
|
|
210
|
-
sourceTitle,
|
|
220
|
+
labels.sourceTitle,
|
|
211
221
|
filteredSourceItems,
|
|
212
222
|
sourceSelectedKeys,
|
|
213
223
|
toggleSourceItem,
|
|
@@ -221,7 +231,7 @@ var Transfer = (props) => {
|
|
|
221
231
|
type: "button",
|
|
222
232
|
className: getTransferButtonClasses(!canMoveRight),
|
|
223
233
|
disabled: !canMoveRight,
|
|
224
|
-
"aria-label":
|
|
234
|
+
"aria-label": labels.moveToTargetAriaLabel,
|
|
225
235
|
onClick: moveRight,
|
|
226
236
|
children: /* @__PURE__ */ jsx(
|
|
227
237
|
"svg",
|
|
@@ -241,7 +251,7 @@ var Transfer = (props) => {
|
|
|
241
251
|
type: "button",
|
|
242
252
|
className: getTransferButtonClasses(!canMoveLeft),
|
|
243
253
|
disabled: !canMoveLeft,
|
|
244
|
-
"aria-label":
|
|
254
|
+
"aria-label": labels.moveToSourceAriaLabel,
|
|
245
255
|
onClick: moveLeft,
|
|
246
256
|
children: /* @__PURE__ */ jsx(
|
|
247
257
|
"svg",
|
|
@@ -257,7 +267,7 @@ var Transfer = (props) => {
|
|
|
257
267
|
)
|
|
258
268
|
] }),
|
|
259
269
|
renderPanel(
|
|
260
|
-
targetTitle,
|
|
270
|
+
labels.targetTitle,
|
|
261
271
|
filteredTargetItems,
|
|
262
272
|
targetSelectedKeys,
|
|
263
273
|
toggleTargetItem,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Timeline
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QB5472NM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Link
|
|
6
6
|
} from "./chunk-XZVQ3PJS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Loading
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AJJJ6HWC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Tag
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7EXOY7GD.mjs";
|
|
13
13
|
import {
|
|
14
14
|
Text
|
|
15
15
|
} from "./chunk-HLS4CHWX.mjs";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-IXV5YBCZ.mjs";
|
|
19
19
|
import {
|
|
20
20
|
Avatar
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OO562MFD.mjs";
|
|
22
22
|
|
|
23
23
|
// src/components/ActivityFeed.tsx
|
|
24
24
|
import { useMemo } from "react";
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createGlobalTigerLocaleHandle
|
|
3
|
+
} from "./chunk-TGXBCKOU.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/ConfigProvider.tsx
|
|
2
|
-
import React, { useContext, useEffect, useMemo, useState } from "react";
|
|
6
|
+
import React, { useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
3
7
|
import {
|
|
4
8
|
mergeTigerLocale,
|
|
5
9
|
isLazyTigerLocale,
|
|
@@ -18,6 +22,7 @@ var ConfigProvider = ({
|
|
|
18
22
|
children
|
|
19
23
|
}) => {
|
|
20
24
|
const parent = useContext(TigerConfigContext);
|
|
25
|
+
const globalLocaleHandleRef = useRef(null);
|
|
21
26
|
const isLazy = isLazyTigerLocale(locale);
|
|
22
27
|
const immediateLocale = isLazy ? void 0 : getImmediateTigerLocale(locale);
|
|
23
28
|
const [resolvedLocale, setResolvedLocale] = useState(
|
|
@@ -75,6 +80,16 @@ var ConfigProvider = ({
|
|
|
75
80
|
useEffect(() => {
|
|
76
81
|
if (value.colorScheme) ThemeManager.setColorScheme(value.colorScheme);
|
|
77
82
|
}, [value.colorScheme]);
|
|
83
|
+
useEffect(() => {
|
|
84
|
+
globalLocaleHandleRef.current = createGlobalTigerLocaleHandle(value.locale);
|
|
85
|
+
return () => {
|
|
86
|
+
globalLocaleHandleRef.current?.dispose();
|
|
87
|
+
globalLocaleHandleRef.current = null;
|
|
88
|
+
};
|
|
89
|
+
}, []);
|
|
90
|
+
useEffect(() => {
|
|
91
|
+
globalLocaleHandleRef.current?.update(value.locale);
|
|
92
|
+
}, [value.locale]);
|
|
78
93
|
useEffect(() => {
|
|
79
94
|
if (!value.direction || typeof document === "undefined") return;
|
|
80
95
|
const root = document.documentElement;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-YSIXURBW.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/Tabs.tsx
|
|
2
6
|
import React, {
|
|
3
7
|
createContext,
|
|
@@ -24,6 +28,8 @@ import {
|
|
|
24
28
|
resolveSwipeGesture,
|
|
25
29
|
isKeyActive,
|
|
26
30
|
getNextActiveKey,
|
|
31
|
+
mergeTigerLocale,
|
|
32
|
+
getTabsLabels,
|
|
27
33
|
tabAddButtonClasses,
|
|
28
34
|
tabCloseButtonClasses,
|
|
29
35
|
tabContentBaseClasses
|
|
@@ -151,7 +157,7 @@ var TabPane = ({
|
|
|
151
157
|
{
|
|
152
158
|
type: "button",
|
|
153
159
|
className: tabCloseButtonClasses,
|
|
154
|
-
"aria-label":
|
|
160
|
+
"aria-label": tabsContext.labels.closeTabAriaLabel.replace("{label}", String(label)),
|
|
155
161
|
tabIndex: -1,
|
|
156
162
|
onClick: handleClose,
|
|
157
163
|
children: /* @__PURE__ */ jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: closeIconViewBox, children: /* @__PURE__ */ jsx(
|
|
@@ -199,13 +205,24 @@ var Tabs = ({
|
|
|
199
205
|
swipeable = true,
|
|
200
206
|
className,
|
|
201
207
|
style,
|
|
208
|
+
locale,
|
|
209
|
+
labels: labelsOverride,
|
|
202
210
|
onActiveKeyChange,
|
|
203
211
|
onTabClick,
|
|
204
212
|
onEdit,
|
|
205
213
|
children
|
|
206
214
|
}) => {
|
|
215
|
+
const config = useTigerConfig();
|
|
207
216
|
const reactId = useId();
|
|
208
217
|
const idBase = useMemo(() => `tiger-tabs-${reactId.replace(/[^a-zA-Z0-9_-]/g, "")}`, [reactId]);
|
|
218
|
+
const mergedLocale = useMemo(
|
|
219
|
+
() => mergeTigerLocale(config.locale, locale),
|
|
220
|
+
[config.locale, locale]
|
|
221
|
+
);
|
|
222
|
+
const labels = useMemo(
|
|
223
|
+
() => getTabsLabels(mergedLocale, labelsOverride),
|
|
224
|
+
[mergedLocale, labelsOverride]
|
|
225
|
+
);
|
|
209
226
|
const [internalActiveKey, setInternalActiveKey] = useState(
|
|
210
227
|
defaultActiveKey
|
|
211
228
|
);
|
|
@@ -329,6 +346,7 @@ var Tabs = ({
|
|
|
329
346
|
lazy,
|
|
330
347
|
swipeable,
|
|
331
348
|
idBase,
|
|
349
|
+
labels,
|
|
332
350
|
handleTabClick,
|
|
333
351
|
handleTabClose
|
|
334
352
|
}),
|
|
@@ -342,6 +360,7 @@ var Tabs = ({
|
|
|
342
360
|
lazy,
|
|
343
361
|
swipeable,
|
|
344
362
|
idBase,
|
|
363
|
+
labels,
|
|
345
364
|
handleTabClick,
|
|
346
365
|
handleTabClose
|
|
347
366
|
]
|
|
@@ -374,7 +393,7 @@ var Tabs = ({
|
|
|
374
393
|
type: "button",
|
|
375
394
|
className: tabAddButtonClasses,
|
|
376
395
|
onClick: handleTabAdd,
|
|
377
|
-
"aria-label":
|
|
396
|
+
"aria-label": labels.addTabAriaLabel,
|
|
378
397
|
children: "+"
|
|
379
398
|
}
|
|
380
399
|
)
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Select
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PAN256RW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Radio
|
|
6
6
|
} from "./chunk-IIWUQK2P.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Empty
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W7BC4I2Y.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Checkbox
|
|
12
12
|
} from "./chunk-EPWAROC2.mjs";
|
|
13
13
|
import {
|
|
14
14
|
useTigerConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YSIXURBW.mjs";
|
|
16
16
|
|
|
17
17
|
// src/components/Table.tsx
|
|
18
18
|
import { useEffect as useEffect2, useMemo as useMemo2, useRef, useState as useState2 } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { ActivityFeedProps as ActivityFeedProps$1, ActivityItem, ActivityGroup } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
|
-
interface ActivityFeedProps extends Omit<ActivityFeedProps$1, 'renderItem' | 'renderGroupHeader'>, Omit<
|
|
5
|
-
renderItem?: (item: ActivityItem, index: number, group?: ActivityGroup) =>
|
|
6
|
-
renderGroupHeader?: (group: ActivityGroup) =>
|
|
4
|
+
interface ActivityFeedProps extends Omit<ActivityFeedProps$1, 'renderItem' | 'renderGroupHeader'>, Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
5
|
+
renderItem?: (item: ActivityItem, index: number, group?: ActivityGroup) => React__default.ReactNode;
|
|
6
|
+
renderGroupHeader?: (group: ActivityGroup) => React__default.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
declare const ActivityFeed:
|
|
8
|
+
declare const ActivityFeed: React__default.FC<ActivityFeedProps>;
|
|
9
9
|
|
|
10
10
|
export { ActivityFeed, type ActivityFeedProps, ActivityFeed as default };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ActivityFeed,
|
|
3
3
|
ActivityFeed_default
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-XIVU7TWX.mjs";
|
|
5
|
+
import "../chunk-QB5472NM.mjs";
|
|
6
6
|
import "../chunk-XZVQ3PJS.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-AJJJ6HWC.mjs";
|
|
8
8
|
import "../chunk-SEWNVIHH.mjs";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-7EXOY7GD.mjs";
|
|
10
10
|
import "../chunk-HLS4CHWX.mjs";
|
|
11
11
|
import "../chunk-IXV5YBCZ.mjs";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-OO562MFD.mjs";
|
|
13
|
+
import "../chunk-FPQMJFFM.mjs";
|
|
14
|
+
import "../chunk-YSIXURBW.mjs";
|
|
15
|
+
import "../chunk-TGXBCKOU.mjs";
|
|
15
16
|
export {
|
|
16
17
|
ActivityFeed,
|
|
17
18
|
ActivityFeed_default as default
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { AffixProps as AffixProps$1 } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
|
-
interface AffixProps extends Omit<
|
|
5
|
-
children?:
|
|
4
|
+
interface AffixProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>, AffixProps$1 {
|
|
5
|
+
children?: React__default.ReactNode;
|
|
6
6
|
/** Callback when affixed state changes */
|
|
7
7
|
onChange?: (affixed: boolean) => void;
|
|
8
8
|
}
|
|
9
|
-
declare const Affix:
|
|
9
|
+
declare const Affix: React__default.FC<AffixProps>;
|
|
10
10
|
|
|
11
11
|
export { Affix, type AffixProps };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { AlertProps as AlertProps$1 } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
|
-
interface AlertProps extends Omit<
|
|
4
|
+
interface AlertProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'title'>, AlertProps$1 {
|
|
5
5
|
/**
|
|
6
6
|
* Alert content (React children)
|
|
7
7
|
*/
|
|
8
|
-
children?:
|
|
8
|
+
children?: React__default.ReactNode;
|
|
9
9
|
/**
|
|
10
10
|
* Custom title content (overrides title prop)
|
|
11
11
|
*/
|
|
12
|
-
titleSlot?:
|
|
12
|
+
titleSlot?: React__default.ReactNode;
|
|
13
13
|
/**
|
|
14
14
|
* Custom description content (overrides description prop)
|
|
15
15
|
*/
|
|
16
|
-
descriptionSlot?:
|
|
16
|
+
descriptionSlot?: React__default.ReactNode;
|
|
17
17
|
/**
|
|
18
18
|
* Callback when alert is closed.
|
|
19
19
|
* Receives the click event for manual close; called without an event on auto-close.
|
|
20
20
|
*/
|
|
21
|
-
onClose?: (event?:
|
|
21
|
+
onClose?: (event?: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
22
22
|
}
|
|
23
|
-
declare const Alert:
|
|
23
|
+
declare const Alert: React__default.FC<AlertProps>;
|
|
24
24
|
|
|
25
25
|
export { Alert, type AlertProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { AnchorProps as AnchorProps$1, AnchorDirection } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
4
|
interface AnchorContextValue {
|
|
@@ -6,11 +6,11 @@ interface AnchorContextValue {
|
|
|
6
6
|
direction: AnchorDirection;
|
|
7
7
|
registerLink: (href: string) => void;
|
|
8
8
|
unregisterLink: (href: string) => void;
|
|
9
|
-
handleLinkClick: (href: string, event:
|
|
9
|
+
handleLinkClick: (href: string, event: React__default.MouseEvent) => void;
|
|
10
10
|
scrollTo: (href: string) => void;
|
|
11
11
|
}
|
|
12
12
|
declare function useAnchorContext(): AnchorContextValue | null;
|
|
13
|
-
interface AnchorLinkProps extends Omit<
|
|
13
|
+
interface AnchorLinkProps extends Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
|
|
14
14
|
/**
|
|
15
15
|
* Target anchor ID (with #)
|
|
16
16
|
*/
|
|
@@ -26,9 +26,9 @@ interface AnchorLinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElem
|
|
|
26
26
|
/**
|
|
27
27
|
* Children content
|
|
28
28
|
*/
|
|
29
|
-
children?:
|
|
29
|
+
children?: React__default.ReactNode;
|
|
30
30
|
}
|
|
31
|
-
declare const AnchorLink:
|
|
31
|
+
declare const AnchorLink: React__default.FC<AnchorLinkProps>;
|
|
32
32
|
interface AnchorProps extends Omit<AnchorProps$1, 'style'> {
|
|
33
33
|
/**
|
|
34
34
|
* Target element to listen for scroll events
|
|
@@ -38,7 +38,7 @@ interface AnchorProps extends Omit<AnchorProps$1, 'style'> {
|
|
|
38
38
|
/**
|
|
39
39
|
* Click event handler
|
|
40
40
|
*/
|
|
41
|
-
onClick?: (event:
|
|
41
|
+
onClick?: (event: React__default.MouseEvent, href: string) => void;
|
|
42
42
|
/**
|
|
43
43
|
* Change event handler when active anchor changes
|
|
44
44
|
*/
|
|
@@ -46,12 +46,12 @@ interface AnchorProps extends Omit<AnchorProps$1, 'style'> {
|
|
|
46
46
|
/**
|
|
47
47
|
* Children (AnchorLink components)
|
|
48
48
|
*/
|
|
49
|
-
children?:
|
|
49
|
+
children?: React__default.ReactNode;
|
|
50
50
|
/**
|
|
51
51
|
* Custom styles
|
|
52
52
|
*/
|
|
53
|
-
style?:
|
|
53
|
+
style?: React__default.CSSProperties;
|
|
54
54
|
}
|
|
55
|
-
declare const Anchor:
|
|
55
|
+
declare const Anchor: React__default.FC<AnchorProps>;
|
|
56
56
|
|
|
57
57
|
export { Anchor, type AnchorContextValue, AnchorLink, type AnchorLinkProps, type AnchorProps, Anchor as default, useAnchorContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { AreaChartProps as AreaChartProps$1, LineChartDatum, AreaChartSeries, ChartPadding, ChartScale } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
4
|
interface AreaChartProps extends AreaChartProps$1 {
|
|
@@ -19,6 +19,6 @@ interface AreaChartProps extends AreaChartProps$1 {
|
|
|
19
19
|
strokeGradient?: boolean;
|
|
20
20
|
pointGradient?: boolean;
|
|
21
21
|
}
|
|
22
|
-
declare const AreaChart:
|
|
22
|
+
declare const AreaChart: React__default.FC<AreaChartProps>;
|
|
23
23
|
|
|
24
24
|
export { AreaChart, type AreaChartProps, AreaChart as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AreaChart,
|
|
3
3
|
AreaChart_default
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DJ4PSDQS.mjs";
|
|
5
5
|
import "../chunk-DNOPEJ5I.mjs";
|
|
6
6
|
import "../chunk-YORCCCQX.mjs";
|
|
7
7
|
import "../chunk-RQSQXQN6.mjs";
|
|
8
8
|
import "../chunk-DKNVSQSV.mjs";
|
|
9
9
|
import "../chunk-677VSTPW.mjs";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-F2ITBDUS.mjs";
|
|
11
11
|
import "../chunk-SDLMB34Y.mjs";
|
|
12
12
|
export {
|
|
13
13
|
AreaChart,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { AutoCompleteProps as AutoCompleteProps$1, AutoCompleteOption } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
|
-
interface AutoCompleteProps extends AutoCompleteProps$1, Omit<
|
|
4
|
+
interface AutoCompleteProps extends AutoCompleteProps$1, Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'onChange'> {
|
|
5
5
|
/** Controlled value */
|
|
6
6
|
value?: string | number;
|
|
7
7
|
/** Called when value changes (input or selection) */
|
|
@@ -11,6 +11,6 @@ interface AutoCompleteProps extends AutoCompleteProps$1, Omit<React.HTMLAttribut
|
|
|
11
11
|
/** Called when search text changes */
|
|
12
12
|
onSearchChange?: (value: string) => void;
|
|
13
13
|
}
|
|
14
|
-
declare const AutoComplete:
|
|
14
|
+
declare const AutoComplete: React__default.FC<AutoCompleteProps>;
|
|
15
15
|
|
|
16
16
|
export { AutoComplete, type AutoCompleteProps };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { AvatarProps as AvatarProps$1 } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
|
-
interface AvatarProps extends Omit<AvatarProps$1, 'icon'>,
|
|
4
|
+
interface AvatarProps extends Omit<AvatarProps$1, 'icon'>, React__default.HTMLAttributes<HTMLSpanElement> {
|
|
5
5
|
/**
|
|
6
6
|
* Icon content (children for icon mode)
|
|
7
7
|
*/
|
|
8
|
-
children?:
|
|
8
|
+
children?: React__default.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare const Avatar:
|
|
10
|
+
declare const Avatar: React__default.FC<AvatarProps>;
|
|
11
11
|
|
|
12
12
|
export { Avatar, type AvatarProps };
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AvatarGroupProps as AvatarGroupProps$1, AvatarSize } from '@expcat/tigercat-core';
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { AvatarGroupProps as AvatarGroupProps$1, TigerLocale, TigerLocaleAvatarGroup, AvatarSize } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
4
|
interface AvatarGroupContextValue {
|
|
5
5
|
size?: AvatarSize;
|
|
6
6
|
itemClass: string;
|
|
7
7
|
}
|
|
8
|
-
declare const AvatarGroupContext:
|
|
9
|
-
interface AvatarGroupProps extends AvatarGroupProps$1 {
|
|
10
|
-
children?:
|
|
8
|
+
declare const AvatarGroupContext: React__default.Context<AvatarGroupContextValue | null>;
|
|
9
|
+
interface AvatarGroupProps extends AvatarGroupProps$1, React__default.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
children?: React__default.ReactNode;
|
|
11
|
+
/** Locale overrides merged on top of ConfigProvider locale */
|
|
12
|
+
locale?: Partial<TigerLocale>;
|
|
13
|
+
/** Text/aria label overrides */
|
|
14
|
+
labels?: Partial<TigerLocaleAvatarGroup>;
|
|
11
15
|
}
|
|
12
|
-
declare const AvatarGroup:
|
|
16
|
+
declare const AvatarGroup: React__default.FC<AvatarGroupProps>;
|
|
13
17
|
|
|
14
18
|
export { AvatarGroup, AvatarGroupContext, type AvatarGroupContextValue, type AvatarGroupProps };
|