@pathscale/ui 0.0.77 → 0.0.78
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/index.js +14 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6345,7 +6345,7 @@ const collapse_Collapse = Object.assign(Collapse, {
|
|
|
6345
6345
|
Content: CollapseContent
|
|
6346
6346
|
});
|
|
6347
6347
|
var CopyButton_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<button type=button>");
|
|
6348
|
-
const
|
|
6348
|
+
const CopyButton_CopyButton = (props)=>{
|
|
6349
6349
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
6350
6350
|
"text",
|
|
6351
6351
|
"title",
|
|
@@ -6353,7 +6353,8 @@ const CopyButton = (props)=>{
|
|
|
6353
6353
|
"className",
|
|
6354
6354
|
"onCopy",
|
|
6355
6355
|
"children",
|
|
6356
|
-
"dataTheme"
|
|
6356
|
+
"dataTheme",
|
|
6357
|
+
"copiedToken"
|
|
6357
6358
|
]);
|
|
6358
6359
|
const [copied, setCopied] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
|
|
6359
6360
|
const copy = async ()=>{
|
|
@@ -6362,6 +6363,13 @@ const CopyButton = (props)=>{
|
|
|
6362
6363
|
local.onCopy?.();
|
|
6363
6364
|
setTimeout(()=>setCopied(false), 2000);
|
|
6364
6365
|
};
|
|
6366
|
+
const getContent = ()=>{
|
|
6367
|
+
if (local.children) return local.children;
|
|
6368
|
+
if (!copied()) return "Copy";
|
|
6369
|
+
if ("string" == typeof local.copiedToken) return local.copiedToken;
|
|
6370
|
+
if (local.copiedToken) return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(local.copiedToken, {});
|
|
6371
|
+
return "Copied!";
|
|
6372
|
+
};
|
|
6365
6373
|
return (()=>{
|
|
6366
6374
|
var _el$ = CopyButton_tmpl$();
|
|
6367
6375
|
_el$.$$click = copy;
|
|
@@ -6376,11 +6384,11 @@ const CopyButton = (props)=>{
|
|
|
6376
6384
|
return twMerge("btn btn-sm btn-ghost", copied() ? "text-success" : "", local.class, local.className);
|
|
6377
6385
|
}
|
|
6378
6386
|
}, others), false, true);
|
|
6379
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$,
|
|
6387
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, getContent);
|
|
6380
6388
|
return _el$;
|
|
6381
6389
|
})();
|
|
6382
6390
|
};
|
|
6383
|
-
const
|
|
6391
|
+
const CopyButton = CopyButton_CopyButton;
|
|
6384
6392
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
6385
6393
|
"click"
|
|
6386
6394
|
]);
|
|
@@ -9074,7 +9082,7 @@ const ShowcaseSection_ShowcaseSection = (props)=>{
|
|
|
9074
9082
|
}));
|
|
9075
9083
|
return _el$2;
|
|
9076
9084
|
})(),
|
|
9077
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(
|
|
9085
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(CopyButton, {
|
|
9078
9086
|
get text () {
|
|
9079
9087
|
return getSectionUrl();
|
|
9080
9088
|
},
|
|
@@ -11097,4 +11105,4 @@ const WindowMockup = (props)=>{
|
|
|
11097
11105
|
})();
|
|
11098
11106
|
};
|
|
11099
11107
|
const windowmockup_WindowMockup = WindowMockup;
|
|
11100
|
-
export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle,
|
|
11108
|
+
export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form, Grid, hero_Hero as Hero, icon_Icon as Icon, indicator_Indicator as Indicator, input_Input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, sidenav_Sidenav as Sidenav, sidenav_SidenavButton as SidenavButton, sidenav_SidenavGroup as SidenavGroup, sidenav_SidenavItem as SidenavItem, sidenav_SidenavLink as SidenavLink, sidenav_SidenavMenu as SidenavMenu, skeleton_Skeleton as Skeleton, Stack, stats_Stats as Stats, status_Status as Status, steps as Steps, Summary, SvgBackground, Swap, table_Table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, useDesktop, useFormValidation };
|