Skip to content

Commit 8598c60

Browse files
Merge pull request #63 from vtexdocs/chore/update-exports
chore: export copy link button
2 parents 408a7c2 + f34dcf7 commit 8598c60

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

dist/index.mjs

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5906,9 +5906,9 @@ var getIcon = (name) => {
59065906
return IconsMap.find((icon3) => icon3.name === name)?.Icon;
59075907
};
59085908
var OverviewCard = ({ icon: icon3, link: link2, children }) => {
5909-
const Icon31 = getIcon(icon3);
5909+
const Icon32 = getIcon(icon3);
59105910
return /* @__PURE__ */ jsx2(Link, { href: link2, children: /* @__PURE__ */ jsxs2(Flex, { sx: styles_default.overviewCard, children: [
5911-
Icon31 && /* @__PURE__ */ jsx2(Icon31, { sx: styles_default.overviewIcon }),
5911+
Icon32 && /* @__PURE__ */ jsx2(Icon32, { sx: styles_default.overviewIcon }),
59125912
/* @__PURE__ */ jsx2(Box, { children })
59135913
] }) });
59145914
};
@@ -8637,12 +8637,12 @@ var DocumentationCard = ({
86378637
description: description4,
86388638
link: link2,
86398639
containerType,
8640-
Icon: Icon31,
8640+
Icon: Icon32,
86418641
onClick
86428642
}) => {
86438643
return /* @__PURE__ */ jsx23(Link6, { href: link2, legacyBehavior: true, children: /* @__PURE__ */ jsx23("a", { onClick, style: { width: "100%" }, children: /* @__PURE__ */ jsxs17(Box13, { sx: cardContainer3(containerType), children: [
86448644
/* @__PURE__ */ jsxs17(Flex11, { sx: titleContainer2(containerType), children: [
8645-
/* @__PURE__ */ jsx23(Icon31, { sx: { color: "#4A596B" }, size: 24 }),
8645+
/* @__PURE__ */ jsx23(Icon32, { sx: { color: "#4A596B" }, size: 24 }),
86468646
/* @__PURE__ */ jsx23(Text7, { className: "title", sx: cardTitle(containerType), children: title6 })
86478647
] }),
86488648
/* @__PURE__ */ jsx23(Text7, { className: "description", sx: styles_default14.description, children: description4 })
@@ -10734,7 +10734,7 @@ var expanded_results_icon_default = ExpandedResultsIcon;
1073410734
// src/components/search-card/index.tsx
1073510735
import { jsx as jsx57, jsxs as jsxs45 } from "react/jsx-runtime";
1073610736
var SearchCard = ({
10737-
Icon: Icon31,
10737+
Icon: Icon32,
1073810738
title: title6,
1073910739
method,
1074010740
breadcrumbs,
@@ -10748,7 +10748,7 @@ var SearchCard = ({
1074810748
return /* @__PURE__ */ jsx57(Link9, { href: url, legacyBehavior: true, children: /* @__PURE__ */ jsxs45(Flex18, { sx: styles_default21.containerActive(method), children: [
1074910749
/* @__PURE__ */ jsxs45(Box21, { children: [
1075010750
/* @__PURE__ */ jsxs45(Text14, { className: "searchCardTitle", sx: styles_default21.title, children: [
10751-
Icon31 && /* @__PURE__ */ jsx57(Icon31, { sx: styles_default21.icon }),
10751+
Icon32 && /* @__PURE__ */ jsx57(Icon32, { sx: styles_default21.icon }),
1075210752
method ? /* @__PURE__ */ jsx57(
1075310753
method_category_default,
1075410754
{
@@ -11231,6 +11231,17 @@ var CookieBar = ({ onAccept }) => {
1123111231
);
1123211232
};
1123311233
var cookie_bar_default = CookieBar;
11234+
11235+
// src/components/copy-link-button/index.tsx
11236+
import { Button as Button8 } from "@vtex/brand-ui";
11237+
11238+
// src/components/icons/copy-icon.tsx
11239+
import { Icon as Icon31 } from "@vtex/brand-ui";
11240+
import { jsx as jsx63, jsxs as jsxs51 } from "react/jsx-runtime";
11241+
11242+
// src/components/copy-link-button/index.tsx
11243+
import { useState as useState16 } from "react";
11244+
import { jsx as jsx64 } from "react/jsx-runtime";
1123411245
export {
1123511246
cookie_bar_default as CookieBar,
1123611247
feedback_section_default as FeedbackSection,

dist/index.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/copy-link-button/CopyLinkButton.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ const meta = {
2828
export default meta
2929
type Story = StoryObj<typeof meta>
3030

31-
export const SimpleCookieBar: Story = {
31+
export const CopyLink: Story = {
3232
args: {},
3333
}

src/lib/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export { default as SearchInput } from '../components/search-input'
88
export { default as CookieBar } from './cookie-bar'
99
export { default as WhatsNextCard } from '../components/whats-next-card'
1010
export { default as ShareButton } from '../components/share-button'
11+
export { default as CopyLinkButton } from '../components/copy-link-button'
1112
export type { Item } from './table-of-contents'

0 commit comments

Comments
 (0)