@selectwin/kit 0.1.214 → 0.1.216
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/SelectCodeBlock.d.ts +2 -0
- package/dist/SelectCodeBlock.js +22 -31
- package/dist/SelectCopyButton.d.ts +14 -0
- package/dist/SelectCopyButton.js +41 -0
- package/dist/SelectCopyRow.d.ts +10 -0
- package/dist/SelectCopyRow.js +50 -46
- package/dist/SelectLocale.d.ts +7 -0
- package/dist/SelectLocale.js +12 -2
- package/dist/SelectTooltip.d.ts +3 -1
- package/dist/SelectTooltip.js +38 -37
- package/dist/index.d.ts +3 -0
- package/dist/index.js +140 -139
- package/dist/internal/clipboard.d.ts +7 -0
- package/dist/internal/clipboard.js +32 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -76,142 +76,143 @@ import { SelectPagination as yr } from "./SelectPagination.js";
|
|
|
76
76
|
import { SelectListFooter as br } from "./internal/listChrome.js";
|
|
77
77
|
import { SelectTable as xr, SelectTableCell as Sr, SelectTableEmpty as Cr, SelectTableRow as wr, SelectUserCell as Tr } from "./SelectTable.js";
|
|
78
78
|
import { SelectFilterChip as Er } from "./SelectFilterChip.js";
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
163
|
-
import {
|
|
164
|
-
import {
|
|
165
|
-
import {
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
168
|
-
import {
|
|
169
|
-
import {
|
|
170
|
-
import {
|
|
171
|
-
import {
|
|
172
|
-
import {
|
|
173
|
-
import {
|
|
174
|
-
import {
|
|
175
|
-
import {
|
|
176
|
-
import {
|
|
177
|
-
import {
|
|
178
|
-
import {
|
|
179
|
-
import {
|
|
180
|
-
import {
|
|
181
|
-
import {
|
|
182
|
-
import {
|
|
183
|
-
import {
|
|
184
|
-
import {
|
|
185
|
-
import {
|
|
186
|
-
import {
|
|
187
|
-
import {
|
|
188
|
-
import {
|
|
189
|
-
import {
|
|
190
|
-
import {
|
|
191
|
-
import {
|
|
192
|
-
import {
|
|
193
|
-
import {
|
|
194
|
-
import {
|
|
195
|
-
import {
|
|
196
|
-
import {
|
|
197
|
-
import {
|
|
198
|
-
import {
|
|
199
|
-
import {
|
|
200
|
-
import {
|
|
201
|
-
import {
|
|
202
|
-
import {
|
|
203
|
-
import {
|
|
204
|
-
import {
|
|
205
|
-
import {
|
|
206
|
-
import {
|
|
207
|
-
import {
|
|
208
|
-
import {
|
|
209
|
-
import {
|
|
210
|
-
import {
|
|
211
|
-
import {
|
|
212
|
-
import {
|
|
213
|
-
import {
|
|
214
|
-
import {
|
|
215
|
-
import {
|
|
216
|
-
import {
|
|
217
|
-
export { t as AUTH_FX_VARIANTS, s as AppleIcon, c as AppsIcon, l as ArchiveIcon, u as ArrowLeftIcon, d as ArrowRightIcon, f as ArrowUpRightIcon, p as AtIcon, m as AuthAppIcon, h as AwardIcon, g as BagIcon, _ as BankIcon, v as BellIcon, y as BookIcon, b as BookmarkIcon, x as BroadcastIcon, S as BuildingIcon, C as CalendarIcon, w as CameraIcon, T as CartIcon, E as ChartLineIcon, D as ChatIcon, O as CheckCircleIcon, k as CheckIcon, A as ChevronDownIcon, j as ChevronLeftIcon, M as ChevronRightIcon, N as ChevronUpIcon, P as ClearFormatIcon, F as ClipboardIcon, I as ClockIcon, L as CloseCircleIcon, R as CloseIcon, z as CopyIcon, B as CreditCardIcon, V as CubeIcon, H as DatabaseIcon, U as DiscountIcon, W as DocumentTextIcon, G as DotsHorizontalIcon, K as EditIcon, q as ExportIcon, J as ExternalLinkIcon, Y as EyeIcon, X as EyeOffIcon, Z as FacebookIcon, Q as FileDownloadIcon, $ as FilterIcon, ee as FlagIcon, te as FlashIcon, ne as GiftIcon, re as GithubIcon, ie as GlobeIcon, ae as GoogleIcon, oe as GripIcon, se as HeadsetIcon, ce as HelpIcon, le as HomeIcon, ue as IdCardIcon, de as ImageIcon, fe as InfoIcon, pe as KeyIcon, me as LampIcon, he as LayoutIcon, ge as LinceIcon, _e as LinkIcon, ve as ListBulletIcon, ye as ListNumberIcon, be as LocationIcon, xe as LockIcon, Se as MailIcon, Ce as MailUnreadIcon, we as MenuIcon, Te as MinusCircleIcon, Ee as MobileIcon, De as MoneyReceiveIcon, Oe as MoneySendIcon, ke as MonitorIcon, Ae as MoonIcon, je as NoteIcon, Me as PaletteIcon, Ne as PaperclipIcon, Pe as PasskeyIcon, Fe as PauseIcon, Ie as PhoneIcon, Le as PinIcon, Re as PlayCircleIcon, ze as PlusIcon, Be as ReceiptIcon, Ve as RefreshIcon, He as RefundIcon, Ue as ReplyAllIcon, We as ReplyIcon, Ge as RocketIcon, Dn as SELECT_BRAND_NAMES, to as SELECT_BR_UF_TILES, Cn as SELECT_CARD_BRANDS, Ss as SELECT_COLOR_PRESETS, Mi as SELECT_COL_DATETIME, Ni as SELECT_COL_ID, on as SELECT_COUNTRIES, ls as SELECT_DAILY_PRESETS, us as SELECT_DATE_PRESETS, _n as SELECT_SPACE, Wi as SELECT_TOKEN_PATTERN, pn as SELECT_TRANSACTION_STATUS, Ke as SearchIcon, Ls as SelectAccordion, Mr as SelectActionCard, hn as SelectActionList, gn as SelectActionMenu, Ut as SelectAddButton, Ii as SelectAddCard, Bt as SelectAlert, Nr as SelectAppTile, Oa as SelectAssistant, n as SelectAuthFx, Ln as SelectAvatar, Wn as SelectBackLink, fn as SelectBadge, ba as SelectBalanceCard, en as SelectBankAccountField, kn as SelectBankIcon, Ia as SelectBarChart, vn as SelectBox, mo as SelectBoxPlot, On as SelectBrandIcon, Zn as SelectBreadcrumb, gs as SelectBuilderLayout, _s as SelectBuilderWorkspace, so as SelectBullet, Po as SelectBump, i as SelectButton, a as SelectButtonLink, Br as SelectCalendar, go as SelectCalendarHeatmap, po as SelectCandlestick, r as SelectCard, Li as SelectCardGrid, Fs as SelectCertificatePreview, Pa as SelectChartCard, Ha as SelectChartLegend, ka as SelectChatMessage, Aa as SelectChatTurn, ja as SelectChatTyping, Nt as SelectCheckbox, zn as SelectChipInput, Ms as SelectChoiceCard, Ns as SelectChoiceCardSkeleton, Ps as SelectChoiceGrid, To as SelectChord, zo as SelectCirclePack, Or as SelectCodeBlock, jr as SelectCollapsible, Cs as SelectColorField, Va as SelectColumnChart, za as SelectComboChart, Qt as SelectCombobox, Ai as SelectConfirmModal, vi as SelectConversation, yi as SelectConversationBubble, bi as SelectConversationDay, xi as SelectConversationEvent, Dr as SelectCopyRow, Ar as SelectCopyableId, Pr as SelectCreateTile, Pi as SelectDataTable, da as SelectDateField, ds as SelectDatePicker, fs as SelectDateRangeField, qo as SelectDetailList, Jo as SelectDetailRow, qi as SelectDeviceFrame, Mn as SelectDisclosureButton, In as SelectDivider, Di as SelectDnsRecords, zt as SelectDocumentField, Ba as SelectDonut, e as SelectDotField, Vi as SelectDragHandle, Hi as SelectDragPreview, yo as SelectDumbbell, Ri as SelectFactList, Ei as SelectFactStrip, xa as SelectFeeBreakdown, Pt as SelectField, $t as SelectFieldGrid, Ht as SelectFileDropzone, Vt as SelectFileTile, fa as SelectFilterBar, Er as SelectFilterChip, vs as SelectFlowCanvas, ys as SelectFlowLayout, bs as SelectFlowNode, tr as SelectFormLayout, ji as SelectFormModal, Qa as SelectFunnel, $a as SelectGauge, xo as SelectGaugeBands, Oo as SelectGlobe, yn as SelectGrid, eo as SelectHeatmap, Eo as SelectHexbin, $i as SelectHideMoneyToggle, ao as SelectHorizontalBar, Ur as SelectHtmlFrame, Io as SelectIcicle, rr as SelectIcon, jn as SelectIconButton, Zi as SelectIconPicker, qa as SelectIconTile, Hn as SelectIdentityFooter, Is as SelectImageField, Kt as SelectImageGalleryField, Gt as SelectImageUploadField, Wt as SelectImageUrlsField, is as SelectImageZoomModal, Wr as SelectInbox, Gr as SelectInboxBanner, Kr as SelectInboxEmpty, qr as SelectInboxToolbar, Mt as SelectInfoTip, bn as SelectInline, wa as SelectInsight, Ta as SelectInsightList, Ea as SelectInsightRow, Ga as SelectJourney, Nn as SelectJsonViewer, Rr as SelectKanban, zr as SelectKanbanCard, Wo as SelectKbd, cs as SelectKeyValueEditor, Ca as SelectKpiBand, Sa as SelectKpiCard, Ft as SelectLabelRow, Fr as SelectLauncherItem, Ir as SelectLauncherSection, zi as SelectLayoutThumb, Jr as SelectLeadChip, La as SelectLineChart, Fn as SelectLinkButton, es as SelectListCard, br as SelectListFooter, ts as SelectListLabel, ns as SelectListRow, Xn as SelectLoader, Et as SelectLocaleProvider, Yr as SelectMailAttachButton, Xr as SelectMailAttachment, Zr as SelectMailComposer, Qr as SelectMailComposerAttachments, $r as SelectMailComposerBody, ei as SelectMailComposerFooter, ti as SelectMailComposerInput, ni as SelectMailComposerRow, Si as SelectMailEditor, ri as SelectMailList, ii as SelectMailListGroup, ai as SelectMailListItem, oi as SelectMailListNote, si as SelectMailListSkeleton, ci as SelectMailMessage, li as SelectMailNotice, Ji as SelectMailPreview, ui as SelectMailReader, di as SelectMailUpload, fi as SelectMailboxStatus, bo as SelectMarimekko, ua as SelectMarkStack, os as SelectMediaCell, dr as SelectMenu, fr as SelectMenuButton, pr as SelectMenuDivider, mr as SelectMenuHeading, hr as SelectMenuItem, gr as SelectMenuLink, Yi as SelectMessageBubble, ea as SelectMetricDelta, Xa as SelectMiniStats, Ti as SelectModal, ta as SelectMoney, Rt as SelectMoneyField, Bo as SelectNetwork, ir as SelectNote, ps as SelectNumberField, Ma as SelectNumberedItem, Na as SelectNumberedList, sa as SelectOfferPrice, ss as SelectOfflineModal, Bn as SelectOptionList, Vn as SelectOptionRow, Un as SelectOtpInput, Qn as SelectPage, $n as SelectPageBackProvider, er as SelectPageHeader, yr as SelectPagination, sr as SelectPanel, Fo as SelectParallel, Ao as SelectPareto, Jn as SelectPasswordStrength, wn as SelectPaymentBrand, Za as SelectPaymentCard, sn as SelectPhoneField, Ka as SelectPips, $o as SelectPlanCard, _o as SelectPolarArea, Zt as SelectPopover, ya as SelectPreviewFrame, Xi as SelectPreviewStage, Os as SelectProgressBar, ro as SelectProgressList, Mo as SelectPyramid, No as SelectQrCode, ms as SelectQuantityField, ks as SelectQuestionChoices, As as SelectQuestionInput, js as SelectQuestionStage, uo as SelectRadar, io as SelectRadialBar, ln as SelectRadioCard, un as SelectRadioGroup, ho as SelectRangeBar, ca as SelectRating, la as SelectRatingQuote, pi as SelectRecipientInput, Bi as SelectRecordCard, lr as SelectRegions, hs as SelectRepeatingFieldArray, Gn as SelectResendButton, qn as SelectRetryStatus, Wa as SelectRing, ki as SelectRowActions, fo as SelectSankey, lo as SelectScatter, vr as SelectSearchInput, Vo as SelectSearchMenu, Ho as SelectSearchMenuGroup, Uo as SelectSearchMenuOption, cr as SelectSection, dn as SelectSegmented, Yt as SelectSelect, na as SelectSensitiveValue, ar as SelectSettingList, or as SelectSettingRow, Xo as SelectSetupGuide, Zo as SelectSetupNext, Ua as SelectShareBar, _r as SelectSideNav, nr as SelectSkeleton, vo as SelectSlope, Ui as SelectSortableItem, Fa as SelectSparkline, o as SelectSpinner, Qi as SelectSplitChain, Ja as SelectSpotlight, xn as SelectStack, Ra as SelectStackedArea, mn as SelectStatusBadge, Oi as SelectStatusPage, Yo as SelectSteps, So as SelectStreamGraph, Co as SelectSunburst, ga as SelectSurface, tn as SelectSwitch, xs as SelectSwitchField, xr as SelectTable, Sr as SelectTableCell, Cr as SelectTableEmpty, wr as SelectTableRow, ur as SelectTabs, ha as SelectTagSelect, Ya as SelectTaskCard, mi as SelectTemplateMenu, Sn as SelectText, It as SelectTextarea, Go as SelectThemeSwitcher, rs as SelectThumbnail, ko as SelectTicker, no as SelectTileMap, Pn as SelectTimeline, _a as SelectToastProvider, nn as SelectToggleList, an as SelectTogglePanel, rn as SelectToggleRow, Gi as SelectTokenTextarea, Tt as SelectTooltip, Qo as SelectTour, Lo as SelectTree, co as SelectTreemap, Lt as SelectUnitInput, Tr as SelectUserCell, ra as SelectValueVisibilityProvider, Ro as SelectVenn, wo as SelectViolin, jo as SelectWaffle, oo as SelectWaterfall, Do as SelectWordCloud, Lr as SelectWorkspaceSwitcher, as as SelectZoomThumbnail, qe as SelectorIcon, Je as SendIcon, Ye as Setting4Icon, Xe as SettingsIcon, Ze as ShieldIcon, Qe as ShieldTickIcon, $e as SidebarIcon, et as SmsIcon, tt as SparkleIcon, nt as SplitIcon, rt as StarIcon, it as StoreIcon, at as StorefrontIcon, ot as SunIcon, st as TargetIcon, ct as TerminalIcon, lt as TextBoldIcon, ut as TextItalicIcon, dt as TextQuoteIcon, ft as TextStrikeIcon, pt as TextUnderlineIcon, mt as TicketDiscountIcon, ht as TrashIcon, gt as TrendUpIcon, _t as TruckIcon, vt as UploadIcon, yt as UserIcon, bt as UsersIcon, xt as WalletIcon, St as WarningIcon, Ct as Web3Icon, wt as WhatsAppIcon, hi as attachmentExt, Rn as avatarInitials, Vr as calendarRange, Hr as calendarToday, ws as contrastRatio, Xt as detectSelectTheme, cn as dialCodeOf, Da as formatInsightImpact, Kn as formatResendWait, Dt as formatSelectNumber, qt as galleryItemFromFile, Jt as galleryItemFromUrl, Ts as hexToHsv, Es as hsvToHex, gi as isMailAddress, pa as joinFilterValues, Ci as mailLinkHref, _i as mailName, wi as mailTextToHtml, Ds as normalizeHex, Yn as passwordScore, kr as prettyCode, Ki as readTokenText, Ko as resolveSelectTheme, An as selectBankIspb, Tn as selectCardBrand, En as selectCardBrandLabel, Ot as selectIntlLocale, kt as selectKitMessages, ma as splitFilterValues, ia as useSelectHasSensitiveValues, At as useSelectLocale, jt as useSelectMessages, Fi as useSelectPageSize, aa as useSelectSensitiveValueMark, va as useSelectToast, oa as useSelectValueVisibility };
|
|
79
|
+
import { SelectCopyButton as Dr } from "./SelectCopyButton.js";
|
|
80
|
+
import { SelectCopyRow as Or } from "./SelectCopyRow.js";
|
|
81
|
+
import { SelectCodeBlock as kr, prettyCode as Ar } from "./SelectCodeBlock.js";
|
|
82
|
+
import { SelectCopyableId as jr } from "./SelectCopyableId.js";
|
|
83
|
+
import { SelectCollapsible as Mr } from "./SelectCollapsible.js";
|
|
84
|
+
import { SelectActionCard as Nr } from "./SelectActionCard.js";
|
|
85
|
+
import { SelectAppTile as Pr, SelectCreateTile as Fr } from "./SelectTile.js";
|
|
86
|
+
import { SelectLauncherItem as Ir, SelectLauncherSection as Lr } from "./SelectLauncher.js";
|
|
87
|
+
import { SelectWorkspaceSwitcher as Rr } from "./SelectWorkspaceSwitcher.js";
|
|
88
|
+
import { SelectKanban as zr, SelectKanbanCard as Br } from "./SelectKanban.js";
|
|
89
|
+
import { SelectCalendar as Vr, calendarRange as Hr, calendarToday as Ur } from "./SelectCalendar.js";
|
|
90
|
+
import { SelectHtmlFrame as Wr } from "./SelectHtmlFrame.js";
|
|
91
|
+
import { SelectInbox as Gr, SelectInboxBanner as Kr, SelectInboxEmpty as qr, SelectInboxToolbar as Jr, SelectLeadChip as Yr, SelectMailAttachButton as Xr, SelectMailAttachment as Zr, SelectMailComposer as Qr, SelectMailComposerAttachments as $r, SelectMailComposerBody as ei, SelectMailComposerFooter as ti, SelectMailComposerInput as ni, SelectMailComposerRow as ri, SelectMailList as ii, SelectMailListGroup as ai, SelectMailListItem as oi, SelectMailListNote as si, SelectMailListSkeleton as ci, SelectMailMessage as li, SelectMailNotice as ui, SelectMailReader as di, SelectMailUpload as fi, SelectMailboxStatus as pi, SelectRecipientInput as mi, SelectTemplateMenu as hi, attachmentExt as gi, isMailAddress as _i, mailName as vi } from "./SelectMail.js";
|
|
92
|
+
import { SelectConversation as yi, SelectConversationBubble as bi, SelectConversationDay as xi, SelectConversationEvent as Si } from "./SelectConversation.js";
|
|
93
|
+
import { SelectMailEditor as Ci, mailLinkHref as wi, mailTextToHtml as Ti } from "./SelectMailEditor.js";
|
|
94
|
+
import { SelectModal as Ei } from "./SelectModal.js";
|
|
95
|
+
import { SelectFactStrip as Di } from "./SelectFactStrip.js";
|
|
96
|
+
import { SelectDnsRecords as Oi } from "./SelectDnsRecords.js";
|
|
97
|
+
import { SelectStatusPage as ki } from "./SelectStatusPage.js";
|
|
98
|
+
import { SelectRowActions as Ai } from "./SelectRowActions.js";
|
|
99
|
+
import { SelectConfirmModal as ji } from "./SelectConfirmModal.js";
|
|
100
|
+
import { SelectFormModal as Mi } from "./SelectFormModal.js";
|
|
101
|
+
import { SELECT_COL_DATETIME as Ni, SELECT_COL_ID as Pi, SelectDataTable as Fi, useSelectPageSize as Ii } from "./SelectDataTable.js";
|
|
102
|
+
import { SelectAddCard as Li } from "./SelectAddCard.js";
|
|
103
|
+
import { SelectCardGrid as Ri } from "./SelectCardGrid.js";
|
|
104
|
+
import { SelectFactList as zi, SelectLayoutThumb as Bi, SelectRecordCard as Vi } from "./SelectRecordCard.js";
|
|
105
|
+
import { SelectDragHandle as Hi, SelectDragPreview as Ui, SelectSortableItem as Wi } from "./SelectSortable.js";
|
|
106
|
+
import { SELECT_TOKEN_PATTERN as Gi, SelectTokenTextarea as Ki, readTokenText as qi } from "./SelectTokenTextarea.js";
|
|
107
|
+
import { SelectDeviceFrame as Ji, SelectMailPreview as Yi, SelectMessageBubble as Xi, SelectPreviewStage as Zi } from "./SelectChannelPreview.js";
|
|
108
|
+
import { SelectIconPicker as Qi } from "./SelectIconPicker.js";
|
|
109
|
+
import { SelectSplitChain as $i } from "./SelectSplitChain.js";
|
|
110
|
+
import { SelectHideMoneyToggle as ea, SelectMetricDelta as ta, SelectMoney as na, SelectSensitiveValue as ra, SelectValueVisibilityProvider as ia, useSelectHasSensitiveValues as aa, useSelectSensitiveValueMark as oa, useSelectValueVisibility as sa } from "./SelectMoney.js";
|
|
111
|
+
import { SelectOfferPrice as ca } from "./SelectOfferPrice.js";
|
|
112
|
+
import { SelectRating as la } from "./SelectRating.js";
|
|
113
|
+
import { SelectRatingQuote as ua } from "./SelectRatingQuote.js";
|
|
114
|
+
import { SelectMarkStack as da } from "./SelectMarkStack.js";
|
|
115
|
+
import { SelectDateField as fa } from "./SelectDateField.js";
|
|
116
|
+
import { SelectFilterBar as pa, joinFilterValues as ma, splitFilterValues as ha } from "./SelectFilterBar.js";
|
|
117
|
+
import { SelectTagSelect as ga } from "./SelectTagSelect.js";
|
|
118
|
+
import { SelectSurface as _a } from "./SelectSurface.js";
|
|
119
|
+
import { SelectToastProvider as va, useSelectToast as ya } from "./SelectToast.js";
|
|
120
|
+
import { SelectPreviewFrame as ba } from "./SelectPreviewFrame.js";
|
|
121
|
+
import { SelectBalanceCard as xa } from "./SelectBalanceCard.js";
|
|
122
|
+
import { SelectFeeBreakdown as Sa } from "./SelectFeeBreakdown.js";
|
|
123
|
+
import { SelectKpiCard as Ca } from "./SelectKpiCard.js";
|
|
124
|
+
import { SelectKpiBand as wa } from "./SelectKpiBand.js";
|
|
125
|
+
import { SelectInsight as Ta, SelectInsightList as Ea, SelectInsightRow as Da, formatInsightImpact as Oa } from "./SelectInsight.js";
|
|
126
|
+
import { SelectAssistant as ka, SelectChatMessage as Aa, SelectChatTurn as ja, SelectChatTyping as Ma } from "./SelectAssistant.js";
|
|
127
|
+
import { SelectNumberedItem as Na, SelectNumberedList as Pa } from "./SelectNumberedList.js";
|
|
128
|
+
import { SelectChartCard as Fa } from "./SelectChartCard.js";
|
|
129
|
+
import { SelectSparkline as Ia } from "./SelectSparkline.js";
|
|
130
|
+
import { SelectBarChart as La } from "./SelectBarChart.js";
|
|
131
|
+
import { SelectLineChart as Ra } from "./SelectLineChart.js";
|
|
132
|
+
import { SelectStackedArea as za } from "./SelectStackedArea.js";
|
|
133
|
+
import { SelectComboChart as Ba } from "./SelectComboChart.js";
|
|
134
|
+
import { SelectDonut as Va } from "./SelectDonut.js";
|
|
135
|
+
import { SelectColumnChart as Ha } from "./SelectColumnChart.js";
|
|
136
|
+
import { SelectChartLegend as Ua } from "./SelectChartLegend.js";
|
|
137
|
+
import { SelectShareBar as Wa } from "./SelectShareBar.js";
|
|
138
|
+
import { SelectRing as Ga } from "./SelectRing.js";
|
|
139
|
+
import { SelectJourney as Ka } from "./SelectJourney.js";
|
|
140
|
+
import { SelectPips as qa } from "./SelectPips.js";
|
|
141
|
+
import { SelectIconTile as Ja } from "./SelectIconTile.js";
|
|
142
|
+
import { SelectSpotlight as Ya } from "./SelectSpotlight.js";
|
|
143
|
+
import { SelectTaskCard as Xa } from "./SelectTaskCard.js";
|
|
144
|
+
import { SelectMiniStats as Za } from "./SelectMiniStats.js";
|
|
145
|
+
import { SelectPaymentCard as Qa } from "./SelectPaymentCard.js";
|
|
146
|
+
import { SelectFunnel as $a } from "./SelectFunnel.js";
|
|
147
|
+
import { SelectGauge as eo } from "./SelectGauge.js";
|
|
148
|
+
import { SelectHeatmap as to } from "./SelectHeatmap.js";
|
|
149
|
+
import { SELECT_BR_UF_TILES as no, SelectTileMap as ro } from "./SelectTileMap.js";
|
|
150
|
+
import { SelectProgressList as io } from "./SelectProgressList.js";
|
|
151
|
+
import { SelectRadialBar as ao } from "./SelectRadialBar.js";
|
|
152
|
+
import { SelectHorizontalBar as oo } from "./SelectHorizontalBar.js";
|
|
153
|
+
import { SelectWaterfall as so } from "./SelectWaterfall.js";
|
|
154
|
+
import { SelectBullet as co } from "./SelectBullet.js";
|
|
155
|
+
import { SelectTreemap as lo } from "./SelectTreemap.js";
|
|
156
|
+
import { SelectScatter as uo } from "./SelectScatter.js";
|
|
157
|
+
import { SelectRadar as fo } from "./SelectRadar.js";
|
|
158
|
+
import { SelectSankey as po } from "./SelectSankey.js";
|
|
159
|
+
import { SelectCandlestick as mo } from "./SelectCandlestick.js";
|
|
160
|
+
import { SelectBoxPlot as ho } from "./SelectBoxPlot.js";
|
|
161
|
+
import { SelectRangeBar as go } from "./SelectRangeBar.js";
|
|
162
|
+
import { SelectCalendarHeatmap as _o } from "./SelectCalendarHeatmap.js";
|
|
163
|
+
import { SelectPolarArea as vo } from "./SelectPolarArea.js";
|
|
164
|
+
import { SelectSlope as yo } from "./SelectSlope.js";
|
|
165
|
+
import { SelectDumbbell as bo } from "./SelectDumbbell.js";
|
|
166
|
+
import { SelectMarimekko as xo } from "./SelectMarimekko.js";
|
|
167
|
+
import { SelectGaugeBands as So } from "./SelectGaugeBands.js";
|
|
168
|
+
import { SelectStreamGraph as Co } from "./SelectStreamGraph.js";
|
|
169
|
+
import { SelectSunburst as wo } from "./SelectSunburst.js";
|
|
170
|
+
import { SelectViolin as To } from "./SelectViolin.js";
|
|
171
|
+
import { SelectChord as Eo } from "./SelectChord.js";
|
|
172
|
+
import { SelectHexbin as Do } from "./SelectHexbin.js";
|
|
173
|
+
import { SelectWordCloud as Oo } from "./SelectWordCloud.js";
|
|
174
|
+
import { SelectGlobe as ko } from "./SelectGlobe.js";
|
|
175
|
+
import { SelectTicker as Ao } from "./SelectTicker.js";
|
|
176
|
+
import { SelectPareto as jo } from "./SelectPareto.js";
|
|
177
|
+
import { SelectWaffle as Mo } from "./SelectWaffle.js";
|
|
178
|
+
import { SelectPyramid as No } from "./SelectPyramid.js";
|
|
179
|
+
import { SelectQrCode as Po } from "./SelectQrCode.js";
|
|
180
|
+
import { SelectBump as Fo } from "./SelectBump.js";
|
|
181
|
+
import { SelectParallel as Io } from "./SelectParallel.js";
|
|
182
|
+
import { SelectIcicle as Lo } from "./SelectIcicle.js";
|
|
183
|
+
import { SelectTree as Ro } from "./SelectTree.js";
|
|
184
|
+
import { SelectVenn as zo } from "./SelectVenn.js";
|
|
185
|
+
import { SelectCirclePack as Bo } from "./SelectCirclePack.js";
|
|
186
|
+
import { SelectNetwork as Vo } from "./SelectNetwork.js";
|
|
187
|
+
import { SelectSearchMenu as Ho, SelectSearchMenuGroup as Uo, SelectSearchMenuOption as Wo } from "./SelectSearchMenu.js";
|
|
188
|
+
import { SelectKbd as Go } from "./SelectKbd.js";
|
|
189
|
+
import { SelectThemeSwitcher as Ko, resolveSelectTheme as qo } from "./SelectThemeSwitcher.js";
|
|
190
|
+
import { SelectDetailList as Jo, SelectDetailRow as Yo } from "./SelectDetail.js";
|
|
191
|
+
import { SelectSteps as Xo } from "./SelectSteps.js";
|
|
192
|
+
import { SelectSetupGuide as Zo, SelectSetupNext as Qo } from "./SelectSetupGuide.js";
|
|
193
|
+
import { SelectTour as $o } from "./SelectTour.js";
|
|
194
|
+
import { SelectPlanCard as es } from "./SelectPlanCard.js";
|
|
195
|
+
import { SelectListCard as ts, SelectListLabel as ns, SelectListRow as rs } from "./SelectListCard.js";
|
|
196
|
+
import { SelectThumbnail as is } from "./SelectThumbnail.js";
|
|
197
|
+
import { SelectImageZoomModal as as } from "./SelectImageZoomModal.js";
|
|
198
|
+
import { SelectZoomThumbnail as os } from "./SelectZoomThumbnail.js";
|
|
199
|
+
import { SelectMediaCell as ss } from "./SelectMediaCell.js";
|
|
200
|
+
import { SelectOfflineModal as cs } from "./SelectOfflineModal.js";
|
|
201
|
+
import { SelectKeyValueEditor as ls } from "./SelectKeyValueEditor.js";
|
|
202
|
+
import { SELECT_DAILY_PRESETS as us, SELECT_DATE_PRESETS as ds, SelectDatePicker as fs } from "./SelectDatePicker.js";
|
|
203
|
+
import { SelectDateRangeField as ps } from "./SelectDateRangeField.js";
|
|
204
|
+
import { SelectNumberField as ms } from "./SelectNumberField.js";
|
|
205
|
+
import { SelectQuantityField as hs } from "./SelectQuantityField.js";
|
|
206
|
+
import { SelectRepeatingFieldArray as gs } from "./SelectRepeatingFieldArray.js";
|
|
207
|
+
import { SelectBuilderLayout as _s } from "./SelectBuilderLayout.js";
|
|
208
|
+
import { SelectBuilderWorkspace as vs } from "./SelectBuilderWorkspace.js";
|
|
209
|
+
import { SelectFlowCanvas as ys, SelectFlowLayout as bs, SelectFlowNode as xs } from "./SelectFlowCanvas.js";
|
|
210
|
+
import { SelectSwitchField as Ss } from "./SelectSwitchField.js";
|
|
211
|
+
import { SELECT_COLOR_PRESETS as Cs, SelectColorField as ws, contrastRatio as Ts, hexToHsv as Es, hsvToHex as Ds, normalizeHex as Os } from "./SelectColorField.js";
|
|
212
|
+
import { SelectProgressBar as ks } from "./SelectProgressBar.js";
|
|
213
|
+
import { SelectQuestionChoices as As, SelectQuestionInput as js, SelectQuestionStage as Ms } from "./SelectQuestionStage.js";
|
|
214
|
+
import { SelectChoiceCard as Ns, SelectChoiceCardSkeleton as Ps, SelectChoiceGrid as Fs } from "./SelectChoiceCard.js";
|
|
215
|
+
import { SelectCertificatePreview as Is } from "./SelectCertificatePreview.js";
|
|
216
|
+
import { SelectImageField as Ls } from "./SelectImageField.js";
|
|
217
|
+
import { SelectAccordion as Rs } from "./SelectAccordion.js";
|
|
218
|
+
export { t as AUTH_FX_VARIANTS, s as AppleIcon, c as AppsIcon, l as ArchiveIcon, u as ArrowLeftIcon, d as ArrowRightIcon, f as ArrowUpRightIcon, p as AtIcon, m as AuthAppIcon, h as AwardIcon, g as BagIcon, _ as BankIcon, v as BellIcon, y as BookIcon, b as BookmarkIcon, x as BroadcastIcon, S as BuildingIcon, C as CalendarIcon, w as CameraIcon, T as CartIcon, E as ChartLineIcon, D as ChatIcon, O as CheckCircleIcon, k as CheckIcon, A as ChevronDownIcon, j as ChevronLeftIcon, M as ChevronRightIcon, N as ChevronUpIcon, P as ClearFormatIcon, F as ClipboardIcon, I as ClockIcon, L as CloseCircleIcon, R as CloseIcon, z as CopyIcon, B as CreditCardIcon, V as CubeIcon, H as DatabaseIcon, U as DiscountIcon, W as DocumentTextIcon, G as DotsHorizontalIcon, K as EditIcon, q as ExportIcon, J as ExternalLinkIcon, Y as EyeIcon, X as EyeOffIcon, Z as FacebookIcon, Q as FileDownloadIcon, $ as FilterIcon, ee as FlagIcon, te as FlashIcon, ne as GiftIcon, re as GithubIcon, ie as GlobeIcon, ae as GoogleIcon, oe as GripIcon, se as HeadsetIcon, ce as HelpIcon, le as HomeIcon, ue as IdCardIcon, de as ImageIcon, fe as InfoIcon, pe as KeyIcon, me as LampIcon, he as LayoutIcon, ge as LinceIcon, _e as LinkIcon, ve as ListBulletIcon, ye as ListNumberIcon, be as LocationIcon, xe as LockIcon, Se as MailIcon, Ce as MailUnreadIcon, we as MenuIcon, Te as MinusCircleIcon, Ee as MobileIcon, De as MoneyReceiveIcon, Oe as MoneySendIcon, ke as MonitorIcon, Ae as MoonIcon, je as NoteIcon, Me as PaletteIcon, Ne as PaperclipIcon, Pe as PasskeyIcon, Fe as PauseIcon, Ie as PhoneIcon, Le as PinIcon, Re as PlayCircleIcon, ze as PlusIcon, Be as ReceiptIcon, Ve as RefreshIcon, He as RefundIcon, Ue as ReplyAllIcon, We as ReplyIcon, Ge as RocketIcon, Dn as SELECT_BRAND_NAMES, no as SELECT_BR_UF_TILES, Cn as SELECT_CARD_BRANDS, Cs as SELECT_COLOR_PRESETS, Ni as SELECT_COL_DATETIME, Pi as SELECT_COL_ID, on as SELECT_COUNTRIES, us as SELECT_DAILY_PRESETS, ds as SELECT_DATE_PRESETS, _n as SELECT_SPACE, Gi as SELECT_TOKEN_PATTERN, pn as SELECT_TRANSACTION_STATUS, Ke as SearchIcon, Rs as SelectAccordion, Nr as SelectActionCard, hn as SelectActionList, gn as SelectActionMenu, Ut as SelectAddButton, Li as SelectAddCard, Bt as SelectAlert, Pr as SelectAppTile, ka as SelectAssistant, n as SelectAuthFx, Ln as SelectAvatar, Wn as SelectBackLink, fn as SelectBadge, xa as SelectBalanceCard, en as SelectBankAccountField, kn as SelectBankIcon, La as SelectBarChart, vn as SelectBox, ho as SelectBoxPlot, On as SelectBrandIcon, Zn as SelectBreadcrumb, _s as SelectBuilderLayout, vs as SelectBuilderWorkspace, co as SelectBullet, Fo as SelectBump, i as SelectButton, a as SelectButtonLink, Vr as SelectCalendar, _o as SelectCalendarHeatmap, mo as SelectCandlestick, r as SelectCard, Ri as SelectCardGrid, Is as SelectCertificatePreview, Fa as SelectChartCard, Ua as SelectChartLegend, Aa as SelectChatMessage, ja as SelectChatTurn, Ma as SelectChatTyping, Nt as SelectCheckbox, zn as SelectChipInput, Ns as SelectChoiceCard, Ps as SelectChoiceCardSkeleton, Fs as SelectChoiceGrid, Eo as SelectChord, Bo as SelectCirclePack, kr as SelectCodeBlock, Mr as SelectCollapsible, ws as SelectColorField, Ha as SelectColumnChart, Ba as SelectComboChart, Qt as SelectCombobox, ji as SelectConfirmModal, yi as SelectConversation, bi as SelectConversationBubble, xi as SelectConversationDay, Si as SelectConversationEvent, Dr as SelectCopyButton, Or as SelectCopyRow, jr as SelectCopyableId, Fr as SelectCreateTile, Fi as SelectDataTable, fa as SelectDateField, fs as SelectDatePicker, ps as SelectDateRangeField, Jo as SelectDetailList, Yo as SelectDetailRow, Ji as SelectDeviceFrame, Mn as SelectDisclosureButton, In as SelectDivider, Oi as SelectDnsRecords, zt as SelectDocumentField, Va as SelectDonut, e as SelectDotField, Hi as SelectDragHandle, Ui as SelectDragPreview, bo as SelectDumbbell, zi as SelectFactList, Di as SelectFactStrip, Sa as SelectFeeBreakdown, Pt as SelectField, $t as SelectFieldGrid, Ht as SelectFileDropzone, Vt as SelectFileTile, pa as SelectFilterBar, Er as SelectFilterChip, ys as SelectFlowCanvas, bs as SelectFlowLayout, xs as SelectFlowNode, tr as SelectFormLayout, Mi as SelectFormModal, $a as SelectFunnel, eo as SelectGauge, So as SelectGaugeBands, ko as SelectGlobe, yn as SelectGrid, to as SelectHeatmap, Do as SelectHexbin, ea as SelectHideMoneyToggle, oo as SelectHorizontalBar, Wr as SelectHtmlFrame, Lo as SelectIcicle, rr as SelectIcon, jn as SelectIconButton, Qi as SelectIconPicker, Ja as SelectIconTile, Hn as SelectIdentityFooter, Ls as SelectImageField, Kt as SelectImageGalleryField, Gt as SelectImageUploadField, Wt as SelectImageUrlsField, as as SelectImageZoomModal, Gr as SelectInbox, Kr as SelectInboxBanner, qr as SelectInboxEmpty, Jr as SelectInboxToolbar, Mt as SelectInfoTip, bn as SelectInline, Ta as SelectInsight, Ea as SelectInsightList, Da as SelectInsightRow, Ka as SelectJourney, Nn as SelectJsonViewer, zr as SelectKanban, Br as SelectKanbanCard, Go as SelectKbd, ls as SelectKeyValueEditor, wa as SelectKpiBand, Ca as SelectKpiCard, Ft as SelectLabelRow, Ir as SelectLauncherItem, Lr as SelectLauncherSection, Bi as SelectLayoutThumb, Yr as SelectLeadChip, Ra as SelectLineChart, Fn as SelectLinkButton, ts as SelectListCard, br as SelectListFooter, ns as SelectListLabel, rs as SelectListRow, Xn as SelectLoader, Et as SelectLocaleProvider, Xr as SelectMailAttachButton, Zr as SelectMailAttachment, Qr as SelectMailComposer, $r as SelectMailComposerAttachments, ei as SelectMailComposerBody, ti as SelectMailComposerFooter, ni as SelectMailComposerInput, ri as SelectMailComposerRow, Ci as SelectMailEditor, ii as SelectMailList, ai as SelectMailListGroup, oi as SelectMailListItem, si as SelectMailListNote, ci as SelectMailListSkeleton, li as SelectMailMessage, ui as SelectMailNotice, Yi as SelectMailPreview, di as SelectMailReader, fi as SelectMailUpload, pi as SelectMailboxStatus, xo as SelectMarimekko, da as SelectMarkStack, ss as SelectMediaCell, dr as SelectMenu, fr as SelectMenuButton, pr as SelectMenuDivider, mr as SelectMenuHeading, hr as SelectMenuItem, gr as SelectMenuLink, Xi as SelectMessageBubble, ta as SelectMetricDelta, Za as SelectMiniStats, Ei as SelectModal, na as SelectMoney, Rt as SelectMoneyField, Vo as SelectNetwork, ir as SelectNote, ms as SelectNumberField, Na as SelectNumberedItem, Pa as SelectNumberedList, ca as SelectOfferPrice, cs as SelectOfflineModal, Bn as SelectOptionList, Vn as SelectOptionRow, Un as SelectOtpInput, Qn as SelectPage, $n as SelectPageBackProvider, er as SelectPageHeader, yr as SelectPagination, sr as SelectPanel, Io as SelectParallel, jo as SelectPareto, Jn as SelectPasswordStrength, wn as SelectPaymentBrand, Qa as SelectPaymentCard, sn as SelectPhoneField, qa as SelectPips, es as SelectPlanCard, vo as SelectPolarArea, Zt as SelectPopover, ba as SelectPreviewFrame, Zi as SelectPreviewStage, ks as SelectProgressBar, io as SelectProgressList, No as SelectPyramid, Po as SelectQrCode, hs as SelectQuantityField, As as SelectQuestionChoices, js as SelectQuestionInput, Ms as SelectQuestionStage, fo as SelectRadar, ao as SelectRadialBar, ln as SelectRadioCard, un as SelectRadioGroup, go as SelectRangeBar, la as SelectRating, ua as SelectRatingQuote, mi as SelectRecipientInput, Vi as SelectRecordCard, lr as SelectRegions, gs as SelectRepeatingFieldArray, Gn as SelectResendButton, qn as SelectRetryStatus, Ga as SelectRing, Ai as SelectRowActions, po as SelectSankey, uo as SelectScatter, vr as SelectSearchInput, Ho as SelectSearchMenu, Uo as SelectSearchMenuGroup, Wo as SelectSearchMenuOption, cr as SelectSection, dn as SelectSegmented, Yt as SelectSelect, ra as SelectSensitiveValue, ar as SelectSettingList, or as SelectSettingRow, Zo as SelectSetupGuide, Qo as SelectSetupNext, Wa as SelectShareBar, _r as SelectSideNav, nr as SelectSkeleton, yo as SelectSlope, Wi as SelectSortableItem, Ia as SelectSparkline, o as SelectSpinner, $i as SelectSplitChain, Ya as SelectSpotlight, xn as SelectStack, za as SelectStackedArea, mn as SelectStatusBadge, ki as SelectStatusPage, Xo as SelectSteps, Co as SelectStreamGraph, wo as SelectSunburst, _a as SelectSurface, tn as SelectSwitch, Ss as SelectSwitchField, xr as SelectTable, Sr as SelectTableCell, Cr as SelectTableEmpty, wr as SelectTableRow, ur as SelectTabs, ga as SelectTagSelect, Xa as SelectTaskCard, hi as SelectTemplateMenu, Sn as SelectText, It as SelectTextarea, Ko as SelectThemeSwitcher, is as SelectThumbnail, Ao as SelectTicker, ro as SelectTileMap, Pn as SelectTimeline, va as SelectToastProvider, nn as SelectToggleList, an as SelectTogglePanel, rn as SelectToggleRow, Ki as SelectTokenTextarea, Tt as SelectTooltip, $o as SelectTour, Ro as SelectTree, lo as SelectTreemap, Lt as SelectUnitInput, Tr as SelectUserCell, ia as SelectValueVisibilityProvider, zo as SelectVenn, To as SelectViolin, Mo as SelectWaffle, so as SelectWaterfall, Oo as SelectWordCloud, Rr as SelectWorkspaceSwitcher, os as SelectZoomThumbnail, qe as SelectorIcon, Je as SendIcon, Ye as Setting4Icon, Xe as SettingsIcon, Ze as ShieldIcon, Qe as ShieldTickIcon, $e as SidebarIcon, et as SmsIcon, tt as SparkleIcon, nt as SplitIcon, rt as StarIcon, it as StoreIcon, at as StorefrontIcon, ot as SunIcon, st as TargetIcon, ct as TerminalIcon, lt as TextBoldIcon, ut as TextItalicIcon, dt as TextQuoteIcon, ft as TextStrikeIcon, pt as TextUnderlineIcon, mt as TicketDiscountIcon, ht as TrashIcon, gt as TrendUpIcon, _t as TruckIcon, vt as UploadIcon, yt as UserIcon, bt as UsersIcon, xt as WalletIcon, St as WarningIcon, Ct as Web3Icon, wt as WhatsAppIcon, gi as attachmentExt, Rn as avatarInitials, Hr as calendarRange, Ur as calendarToday, Ts as contrastRatio, Xt as detectSelectTheme, cn as dialCodeOf, Oa as formatInsightImpact, Kn as formatResendWait, Dt as formatSelectNumber, qt as galleryItemFromFile, Jt as galleryItemFromUrl, Es as hexToHsv, Ds as hsvToHex, _i as isMailAddress, ma as joinFilterValues, wi as mailLinkHref, vi as mailName, Ti as mailTextToHtml, Os as normalizeHex, Yn as passwordScore, Ar as prettyCode, qi as readTokenText, qo as resolveSelectTheme, An as selectBankIspb, Tn as selectCardBrand, En as selectCardBrandLabel, Ot as selectIntlLocale, kt as selectKitMessages, ha as splitFilterValues, aa as useSelectHasSensitiveValues, At as useSelectLocale, jt as useSelectMessages, Ii as useSelectPageSize, oa as useSelectSensitiveValueMark, ya as useSelectToast, sa as useSelectValueVisibility };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function writeClipboard(value: string, anchor: HTMLElement | null): Promise<boolean>;
|
|
2
|
+
export type CopyState = 'idle' | 'copied' | 'failed';
|
|
3
|
+
/** O estado do copiar: `copied` ou `failed` por 2 s, e de volta ao `idle`. */
|
|
4
|
+
export declare function useClipboard(): {
|
|
5
|
+
state: CopyState;
|
|
6
|
+
copy: (value: string, anchor: HTMLElement | null) => Promise<boolean>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
|
|
2
|
+
//#region src/internal/clipboard.ts
|
|
3
|
+
async function i(e, t) {
|
|
4
|
+
try {
|
|
5
|
+
if (!navigator.clipboard) throw Error("sem a área de transferência");
|
|
6
|
+
return await navigator.clipboard.writeText(e), !0;
|
|
7
|
+
} catch {
|
|
8
|
+
let n = document.createElement("textarea");
|
|
9
|
+
n.value = e, n.setAttribute("readonly", ""), n.style.position = "fixed", n.style.opacity = "0", (t ?? document.body).appendChild(n), n.select();
|
|
10
|
+
let r = !1;
|
|
11
|
+
try {
|
|
12
|
+
r = document.execCommand("copy");
|
|
13
|
+
} catch {
|
|
14
|
+
r = !1;
|
|
15
|
+
}
|
|
16
|
+
return n.remove(), r;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function a() {
|
|
20
|
+
let [a, o] = r("idle"), s = n(void 0);
|
|
21
|
+
return t(() => () => clearTimeout(s.current), []), {
|
|
22
|
+
state: a,
|
|
23
|
+
copy: e(async (e, t) => {
|
|
24
|
+
let n = await i(e, t);
|
|
25
|
+
return o(n ? "copied" : "failed"), clearTimeout(s.current), s.current = setTimeout(() => o("idle"), 2e3), n;
|
|
26
|
+
}, [])
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { a as useClipboard, i as writeClipboard };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=clipboard.js.map
|