@apify/ui-library 1.171.1-uilibraryversion2candida-85b55e.71 → 1.171.1

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.
Files changed (114) hide show
  1. package/README.md +1 -1
  2. package/dist/components/banner/banner.d.ts +11 -0
  3. package/dist/components/banner/banner.d.ts.map +1 -0
  4. package/dist/components/banner/banner.js +76 -0
  5. package/dist/components/banner/index.d.ts +2 -0
  6. package/dist/components/banner/index.d.ts.map +1 -0
  7. package/dist/components/chip/chip.d.ts +55 -0
  8. package/dist/components/chip/chip.d.ts.map +1 -0
  9. package/dist/components/chip/chip.js +144 -0
  10. package/dist/components/chip/index.d.ts +2 -0
  11. package/dist/components/chip/index.d.ts.map +1 -0
  12. package/dist/components/code/code_block/code_block.d.ts +3 -1
  13. package/dist/components/code/code_block/code_block.d.ts.map +1 -1
  14. package/dist/components/code/code_block/code_block.js +7 -1
  15. package/dist/components/code/code_block/code_block.styled.d.ts +1 -0
  16. package/dist/components/code/code_block/code_block.styled.d.ts.map +1 -1
  17. package/dist/components/code/code_block/code_block.styled.js +10 -0
  18. package/dist/components/code/inline_code/inline_code.d.ts.map +1 -1
  19. package/dist/components/color_wheel_gradient/color_wheel_gradient.d.ts +9 -0
  20. package/dist/components/color_wheel_gradient/color_wheel_gradient.d.ts.map +1 -0
  21. package/dist/components/color_wheel_gradient/color_wheel_gradient.js +27 -0
  22. package/dist/components/color_wheel_gradient/index.d.ts +2 -0
  23. package/dist/components/color_wheel_gradient/index.d.ts.map +1 -0
  24. package/dist/components/index.d.ts +3 -0
  25. package/dist/components/index.d.ts.map +1 -1
  26. package/dist/components/simple_markdown/simple_markdown.d.ts.map +1 -1
  27. package/dist/components/simple_markdown/simple_markdown.js +1 -1
  28. package/dist/components/simple_markdown/simple_markdown_components.d.ts +2 -5
  29. package/dist/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
  30. package/dist/components/simple_markdown/simple_markdown_components.js +3 -2
  31. package/dist/components/tag/tag.d.ts +1 -1
  32. package/dist/components/tag/tag.d.ts.map +1 -1
  33. package/dist/components/text/index.d.ts +1 -0
  34. package/dist/components/text/index.d.ts.map +1 -1
  35. package/dist/components/text/text_content.d.ts +1 -1
  36. package/dist/components/text/text_content.js +1 -1
  37. package/dist/files_hash_at_build.txt +1 -1
  38. package/dist/index.js +5 -1
  39. package/dist/src/components/banner/banner.d.ts +11 -0
  40. package/dist/src/components/banner/banner.d.ts.map +1 -0
  41. package/dist/src/components/banner/banner.js +70 -0
  42. package/dist/src/components/banner/banner.js.map +1 -0
  43. package/dist/src/components/banner/index.d.ts +2 -0
  44. package/dist/src/components/banner/index.d.ts.map +1 -0
  45. package/dist/src/components/banner/index.js +2 -0
  46. package/dist/src/components/banner/index.js.map +1 -0
  47. package/dist/src/components/chip/chip.d.ts +56 -0
  48. package/dist/src/components/chip/chip.d.ts.map +1 -0
  49. package/dist/src/components/chip/chip.js +123 -0
  50. package/dist/src/components/chip/chip.js.map +1 -0
  51. package/dist/src/components/chip/index.d.ts +2 -0
  52. package/dist/src/components/chip/index.d.ts.map +1 -0
  53. package/dist/src/components/chip/index.js +2 -0
  54. package/dist/src/components/chip/index.js.map +1 -0
  55. package/dist/src/components/code/code_block/code_block.d.ts +3 -1
  56. package/dist/src/components/code/code_block/code_block.d.ts.map +1 -1
  57. package/dist/src/components/code/code_block/code_block.js +3 -2
  58. package/dist/src/components/code/code_block/code_block.js.map +1 -1
  59. package/dist/src/components/code/code_block/code_block.styled.d.ts +1 -0
  60. package/dist/src/components/code/code_block/code_block.styled.d.ts.map +1 -1
  61. package/dist/src/components/code/code_block/code_block.styled.js +10 -0
  62. package/dist/src/components/code/code_block/code_block.styled.js.map +1 -1
  63. package/dist/src/components/code/inline_code/inline_code.d.ts.map +1 -1
  64. package/dist/src/components/code/inline_code/inline_code.js +1 -0
  65. package/dist/src/components/code/inline_code/inline_code.js.map +1 -1
  66. package/dist/src/components/color_wheel_gradient/color_wheel_gradient.d.ts +9 -0
  67. package/dist/src/components/color_wheel_gradient/color_wheel_gradient.d.ts.map +1 -0
  68. package/dist/src/components/color_wheel_gradient/color_wheel_gradient.js +25 -0
  69. package/dist/src/components/color_wheel_gradient/color_wheel_gradient.js.map +1 -0
  70. package/dist/src/components/color_wheel_gradient/index.d.ts +2 -0
  71. package/dist/src/components/color_wheel_gradient/index.d.ts.map +1 -0
  72. package/dist/src/components/color_wheel_gradient/index.js +2 -0
  73. package/dist/src/components/color_wheel_gradient/index.js.map +1 -0
  74. package/dist/src/components/index.d.ts +3 -0
  75. package/dist/src/components/index.d.ts.map +1 -1
  76. package/dist/src/components/index.js +3 -0
  77. package/dist/src/components/index.js.map +1 -1
  78. package/dist/src/components/simple_markdown/simple_markdown.d.ts.map +1 -1
  79. package/dist/src/components/simple_markdown/simple_markdown.js +1 -2
  80. package/dist/src/components/simple_markdown/simple_markdown.js.map +1 -1
  81. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts +4 -5
  82. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
  83. package/dist/src/components/simple_markdown/simple_markdown_components.js +4 -4
  84. package/dist/src/components/simple_markdown/simple_markdown_components.js.map +1 -1
  85. package/dist/src/components/tag/tag.d.ts +1 -1
  86. package/dist/src/components/tag/tag.d.ts.map +1 -1
  87. package/dist/src/components/text/index.d.ts +1 -0
  88. package/dist/src/components/text/index.d.ts.map +1 -1
  89. package/dist/src/components/text/index.js +1 -0
  90. package/dist/src/components/text/index.js.map +1 -1
  91. package/dist/src/components/text/text_content.d.ts +1 -1
  92. package/dist/src/components/text/text_content.js +1 -1
  93. package/dist/tsconfig.build.tsbuildinfo +1 -1
  94. package/package.json +2 -2
  95. package/src/components/banner/banner.stories.tsx +238 -0
  96. package/src/components/banner/banner.tsx +91 -0
  97. package/src/components/banner/index.ts +1 -0
  98. package/src/components/chip/chip.stories.tsx +311 -0
  99. package/src/components/chip/chip.tsx +167 -0
  100. package/src/components/chip/index.ts +1 -0
  101. package/src/components/code/code_block/code_block.stories.jsx +13 -6
  102. package/src/components/code/code_block/code_block.styled.tsx +11 -0
  103. package/src/components/code/code_block/code_block.tsx +8 -0
  104. package/src/components/code/inline_code/inline_code.tsx +1 -0
  105. package/src/components/color_wheel_gradient/color_wheel_gradient.stories.tsx +152 -0
  106. package/src/components/color_wheel_gradient/color_wheel_gradient.tsx +33 -0
  107. package/src/components/color_wheel_gradient/index.ts +1 -0
  108. package/src/components/index.ts +3 -0
  109. package/src/components/simple_markdown/simple_markdown.tsx +1 -2
  110. package/src/components/simple_markdown/simple_markdown_components.tsx +14 -8
  111. package/src/components/tag/tag.tsx +1 -1
  112. package/src/components/text/index.ts +1 -0
  113. package/src/components/text/text_content.stories.tsx +194 -0
  114. package/src/components/text/text_content.tsx +1 -1
@@ -7,7 +7,7 @@ export interface TransientContentTextProps {
7
7
  }
8
8
  export type ContentTextProps = TransientContentTextProps & TextBaseProps;
9
9
  /**
10
- * Internal to SimpleMarkdown, not exported from the package. Use Text elsewhere.
10
+ * @deprecated Use Text or TextMarketing from ui-library
11
11
  */
12
12
  export declare const TextContent: import('react').ForwardRefExoticComponent<ContentTextProps & import('react').RefAttributes<HTMLElement | undefined>>;
13
13
  //# sourceMappingURL=text_content.d.ts.map
@@ -58,7 +58,7 @@ var StyledTextContent = styled(TextBaseComponent)`
58
58
  ${(props) => TEXT_SHARED_VARIANTS_CSS[props.$type || "paragraph"][props.$weight || "normal"]}
59
59
  `;
60
60
  /**
61
- * Internal to SimpleMarkdown, not exported from the package. Use Text elsewhere.
61
+ * @deprecated Use Text or TextMarketing from ui-library
62
62
  */
63
63
  var TextContent = forwardRef(({ type, weight, as, ...rest }, ref) => {
64
64
  return /* @__PURE__ */ jsx(StyledTextContent, {
@@ -1 +1 @@
1
- 49d07939bac954c0376a29c4204286d215bcc98b
1
+ 5a2af91e7dd4a4e7708ade276ff414fd374ae02a
package/dist/index.js CHANGED
@@ -18,6 +18,7 @@ import { Box } from "./components/box/box.js";
18
18
  import { TextBaseComponent } from "./components/text/text_base.js";
19
19
  import { HeadingShared } from "./components/text/heading_shared.js";
20
20
  import { SHARED_TEXT_TYPES, TextShared } from "./components/text/text_shared.js";
21
+ import { TextContent } from "./components/text/text_content.js";
21
22
  import { TextMarketing } from "./components/text/text_marketing.js";
22
23
  import { HeadingContent } from "./components/text/heading_content.js";
23
24
  import { HeadingMarketing } from "./components/text/heading_marketing.js";
@@ -50,6 +51,7 @@ import { ActionBox, ActionLink, BackLink } from "./components/action_link/action
50
51
  import { Image } from "./components/image/image.js";
51
52
  import { cleanMarkdown, slugifyHeadingChildren, useActorTitleHeadingFilter } from "./components/readme_renderer/utils.js";
52
53
  import { pythonizeValue } from "./components/readme_renderer/pythonize_value.js";
54
+ import { ColorWheelGradient } from "./components/color_wheel_gradient/color_wheel_gradient.js";
53
55
  import { useCopyToClipboard } from "./utils/copy_to_clipboard.js";
54
56
  import { sanitizeUrl } from "./utils/sanitization.js";
55
57
  import { useResizeObserverSsr } from "./utils/resize_observer.js";
@@ -70,7 +72,9 @@ import { TabNumberChip } from "./components/tab_number_chip/tab_number_chip.js";
70
72
  import { HorizontalTile } from "./components/tile/horizontal_tile.js";
71
73
  import { VerticalTile } from "./components/tile/vertical_tile.js";
72
74
  import { BlogArticle } from "./components/blog_article/blog_article.js";
75
+ import { Banner } from "./components/banner/banner.js";
73
76
  import { ActorTemplateCard } from "./components/actor_template_card/actor_template_card.js";
77
+ import { CHIP_SIZES, CHIP_TYPES, Chip, DangerChip, NeutralChip, PrimaryChip, SuccessChip, WarningChip, classNames as classNames$1 } from "./components/chip/chip.js";
74
78
  import { Rating, RatingStats, SingleStarRating } from "./components/rating/rating.js";
75
79
  import { developerBadgeTestIds } from "./components/developer_badge/developer_badge.test_ids.js";
76
80
  import { DEVELOPER_BADGE, DeveloperBadge } from "./components/developer_badge/developer_badge.js";
@@ -106,4 +110,4 @@ import { TableEmptyRow } from "./components/table/table_empty_row.js";
106
110
  import { TableLoadingRow } from "./components/table/table_loading_row.js";
107
111
  import { TableErrorRow } from "./components/table/table_error_row.js";
108
112
  import { Breadcrumbs, breadcrumbClassNames } from "./components/breadcrumb/breadcrumb.js";
109
- export { APIFY_HOSTNAMES, ActionBox, ActionLink, ActorAvatar, ActorAvatarInner, ActorTemplateCard, AnthropicBrandIcon, BADGE_SIZES, BADGE_VARIANTS, BUTTON_COLOR_VARIANTS_CSS, BUTTON_SIZE_VARIANTS_CSS, BackLink, Badge, BlockSpinner, BlogArticle, BorderedActorAvatar, Box, Breadcrumbs, BrowserWindow, Button, CODE_BLOCK_TAB_CATALOG, CODE_BLOCK_WITH_TABS_CLASSNAMES, Card, CardContainer, ChatGptBrandIcon, CheckboxPrimitive, ClaudeBrandIcon, CodeBlock, CodeBlockWithTabs, CodeHighlighterLineBashPrefix, CodeHighlighterLinePrefix, CollapsibleCard, CursorBrandIcon, DEVELOPER_BADGE, DROPDOWN_ELEMENT_CLASSES, DangerMessage, DeveloperBadge, DiscordBrandIcon, DiscordSolidBrandIcon, Dropdown, DropdownButton, DropdownMenuBaseComponent, DropdownMenuBaseComponentWithCount, DropdownShell, FLOATING_PLACEMENT, GithubBrandIcon, HeadingShared as Heading, HeadingContent, HeadingMarketing, HorizontalTile, HorizontallyScrollableTableWrapper, ICON_BUTTON_VARIANTS, IconButton, Image, IndeterminateCheckbox, InfoMessage, InlineCode, InlineSpinner, Link, LinkedinBrandIcon, LinkedinSolidBrandIcon, ListMenuComponent, ListMenuItemComponent, MakeBrandIcon, MemoizedMarkdown as Markdown, MarkdownBlockQuote, MarkdownCode, MarkdownHeadingWrapper, MarkdownLink, MarkdownParagraphContent, MarkdownPlainHeading, MarkdownTable, Menu, Message, N8nBrandIcon, OneLineCode, PaginationButtons, PerplexityBrandIcon, PlainMenuBaseComponent, PrismSyntaxHighlighter, RadioButtonPrimitive, Rating, RatingStats, SHARED_TEXT_TYPES, SelectMultiValueRemove, SelectPrimitive, Shortcut, SimpleMarkdown, SingleStarRating, Skeleton, SkeletonFadeIn, SkeletonGroup, Spinner, SplitButton, StoreActorHeader, StyledAsLink, StyledCardWrapper, SuccessMessage, SwitchPrimitive, TAB_CLASSNAMES, TAG_SIZES, TAG_VARIANTS, TOOLTIP_SIZES, TOOLTIP_TEXT_ALIGNS, Tab, TabNumberChip, Table, TableBody, TableCell, TableCellLink, TableEmptyRow, TableErrorRow, TableExpansionRow, TableFoot, TableHead, TableHeadCell, TableHeadRow, TableLoadingRow, TableOfContents, TableRow, Tabs, Tag, TextShared as Text, TextShared, TextBaseComponent, TextMarketing, Tooltip, TwitterBrandIcon, UiDependencyProvider, UserAvatar, VerticalTile, WarningMessage, YoutubeBrandIcon, ZapierBrandIcon, actorAvatarClassnames, breadcrumbClassNames, classNames as browserWindowClassNames, cardClassNames, cardContainerClassNames, clampLines, cleanMarkdown, collapsibleCardClassNames, colorProperties, cssColorsVariablesBrandDark, tokens as cssColorsVariablesDark, tokens$1 as cssColorsVariablesLight, tokens$2 as cssColorsVariablesPaletteDark, tokens$3 as cssColorsVariablesPaletteLight, darkTheme, defaultAllowedElements, defaultRehypePlugins, defaultRemarkPlugins, developerBadgeTestIds, devices, getActorAvatarBorderRadius, getButtonColorStyles, getButtonDisabledStyles, getButtonSizeStyles, getResponsiveStyles, getResponsiveValueAtBreakpoint, gradients, hasUrlHttpProtocol, inlineCodeStyles, isResponsiveObject, isUrlEmail, isUrlExternal, layouts, lightTheme, menuClassNames, messageClassNames, omitDomainAndProtocol, oneLineCodeClassNames, pythonizeValue, radiuses, regularMarkdownSizeComponents, sanitizeUrl, selectDefaultGetIsSelected, shadows, skeletonClassNames, skeletonTestIds, slugifyHeadingChildren, smallMarkdownSizeComponents, spaces, spinnerClassNames, splitButtonClassNames, splitButtonMainActionTestId, splitButtonTriggerTestId, tableClassNames, tableTestIds, theme, transitions, useActorTitleHeadingFilter, useCopyToClipboard, useDefaultUrlTransform, useFloatingMenu, useImageColor, useResizeObserverSsr, useSharedUiDependencies, useShowTableOfContents, userAvatarBaseClassNames, withColor, withGradient, withReactSelectTheme, withSize, withTooltip };
113
+ export { APIFY_HOSTNAMES, ActionBox, ActionLink, ActorAvatar, ActorAvatarInner, ActorTemplateCard, AnthropicBrandIcon, BADGE_SIZES, BADGE_VARIANTS, BUTTON_COLOR_VARIANTS_CSS, BUTTON_SIZE_VARIANTS_CSS, BackLink, Badge, Banner, BlockSpinner, BlogArticle, BorderedActorAvatar, Box, Breadcrumbs, BrowserWindow, Button, CHIP_SIZES, CHIP_TYPES, CODE_BLOCK_TAB_CATALOG, CODE_BLOCK_WITH_TABS_CLASSNAMES, Card, CardContainer, ChatGptBrandIcon, CheckboxPrimitive, Chip, ClaudeBrandIcon, CodeBlock, CodeBlockWithTabs, CodeHighlighterLineBashPrefix, CodeHighlighterLinePrefix, CollapsibleCard, ColorWheelGradient, CursorBrandIcon, DEVELOPER_BADGE, DROPDOWN_ELEMENT_CLASSES, DangerChip, DangerMessage, DeveloperBadge, DiscordBrandIcon, DiscordSolidBrandIcon, Dropdown, DropdownButton, DropdownMenuBaseComponent, DropdownMenuBaseComponentWithCount, DropdownShell, FLOATING_PLACEMENT, GithubBrandIcon, HeadingShared as Heading, HeadingContent, HeadingMarketing, HorizontalTile, HorizontallyScrollableTableWrapper, ICON_BUTTON_VARIANTS, IconButton, Image, IndeterminateCheckbox, InfoMessage, InlineCode, InlineSpinner, Link, LinkedinBrandIcon, LinkedinSolidBrandIcon, ListMenuComponent, ListMenuItemComponent, MakeBrandIcon, MemoizedMarkdown as Markdown, MarkdownBlockQuote, MarkdownCode, MarkdownHeadingWrapper, MarkdownLink, MarkdownParagraphContent, MarkdownPlainHeading, MarkdownTable, Menu, Message, N8nBrandIcon, NeutralChip, OneLineCode, PaginationButtons, PerplexityBrandIcon, PlainMenuBaseComponent, PrimaryChip, PrismSyntaxHighlighter, RadioButtonPrimitive, Rating, RatingStats, SHARED_TEXT_TYPES, SelectMultiValueRemove, SelectPrimitive, Shortcut, SimpleMarkdown, SingleStarRating, Skeleton, SkeletonFadeIn, SkeletonGroup, Spinner, SplitButton, StoreActorHeader, StyledAsLink, StyledCardWrapper, SuccessChip, SuccessMessage, SwitchPrimitive, TAB_CLASSNAMES, TAG_SIZES, TAG_VARIANTS, TOOLTIP_SIZES, TOOLTIP_TEXT_ALIGNS, Tab, TabNumberChip, Table, TableBody, TableCell, TableCellLink, TableEmptyRow, TableErrorRow, TableExpansionRow, TableFoot, TableHead, TableHeadCell, TableHeadRow, TableLoadingRow, TableOfContents, TableRow, Tabs, Tag, TextShared as Text, TextShared, TextBaseComponent, TextContent, TextMarketing, Tooltip, TwitterBrandIcon, UiDependencyProvider, UserAvatar, VerticalTile, WarningChip, WarningMessage, YoutubeBrandIcon, ZapierBrandIcon, actorAvatarClassnames, breadcrumbClassNames, classNames as browserWindowClassNames, cardClassNames, cardContainerClassNames, clampLines, classNames$1 as classNames, cleanMarkdown, collapsibleCardClassNames, colorProperties, cssColorsVariablesBrandDark, tokens as cssColorsVariablesDark, tokens$1 as cssColorsVariablesLight, tokens$2 as cssColorsVariablesPaletteDark, tokens$3 as cssColorsVariablesPaletteLight, darkTheme, defaultAllowedElements, defaultRehypePlugins, defaultRemarkPlugins, developerBadgeTestIds, devices, getActorAvatarBorderRadius, getButtonColorStyles, getButtonDisabledStyles, getButtonSizeStyles, getResponsiveStyles, getResponsiveValueAtBreakpoint, gradients, hasUrlHttpProtocol, inlineCodeStyles, isResponsiveObject, isUrlEmail, isUrlExternal, layouts, lightTheme, menuClassNames, messageClassNames, omitDomainAndProtocol, oneLineCodeClassNames, pythonizeValue, radiuses, regularMarkdownSizeComponents, sanitizeUrl, selectDefaultGetIsSelected, shadows, skeletonClassNames, skeletonTestIds, slugifyHeadingChildren, smallMarkdownSizeComponents, spaces, spinnerClassNames, splitButtonClassNames, splitButtonMainActionTestId, splitButtonTriggerTestId, tableClassNames, tableTestIds, theme, transitions, useActorTitleHeadingFilter, useCopyToClipboard, useDefaultUrlTransform, useFloatingMenu, useImageColor, useResizeObserverSsr, useSharedUiDependencies, useShowTableOfContents, userAvatarBaseClassNames, withColor, withGradient, withReactSelectTheme, withSize, withTooltip };
@@ -0,0 +1,11 @@
1
+ import type React from 'react';
2
+ interface BannerProps {
3
+ background?: string;
4
+ useGradientBackground?: boolean;
5
+ width?: string;
6
+ className?: string;
7
+ children: React.ReactNode;
8
+ }
9
+ export declare const Banner: React.FC<BannerProps>;
10
+ export {};
11
+ //# sourceMappingURL=banner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../../src/components/banner/banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoD/B,UAAU,WAAW;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAuBD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CASxC,CAAC"}
@@ -0,0 +1,70 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styled, { css } from 'styled-components';
3
+ import { theme } from '../../design_system/theme';
4
+ const BANNER_GRADIENT_BACKGROUND_SVG = `<svg width="1200" height="148" viewBox="0 0 1200 148" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <g clip-path="url(#clip0_2285_34756)">
6
+ <g filter="url(#filter0_f_2285_34756)">
7
+ <path d="M-39.7702 191.085C-55.0622 193.205 -68.8864 201.311 -78.2029 213.621C-87.5194 225.932 -91.5654 241.438 -89.4512 256.731L-55.0077 502.652L89.8852 173L-39.7702 191.085Z" fill="url(#paint0_linear_2285_34756)"/>
8
+ </g>
9
+ <g filter="url(#filter1_f_2285_34756)">
10
+ <path d="M1267.53 398.062L1253.99 209.002C1252.85 193.626 1245.67 179.327 1234.01 169.234C1222.36 159.14 1207.18 154.073 1191.8 155.14C1190.5 155.19 1189.2 155.331 1187.92 155.564L1132 163.289L1254.84 438.685C1264.05 427.236 1268.59 412.721 1267.53 398.062Z" fill="url(#paint1_linear_2285_34756)"/>
11
+ </g>
12
+ <g filter="url(#filter2_f_2285_34756)">
13
+ <path d="M561 29.7691C570.917 30.4746 580.956 29.5571 590.142 27.1057L801.075 -28.7862L700.682 -170L561 29.7691Z" fill="url(#paint2_linear_2285_34756)"/>
14
+ </g>
15
+ </g>
16
+ <defs>
17
+ <filter id="filter0_f_2285_34756" x="-170" y="93" width="339.885" height="489.652" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
18
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
19
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
20
+ <feGaussianBlur stdDeviation="40" result="effect1_foregroundBlur_2285_34756"/>
21
+ </filter>
22
+ <filter id="filter1_f_2285_34756" x="1052" y="75" width="295.683" height="443.686" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
23
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
24
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
25
+ <feGaussianBlur stdDeviation="40" result="effect1_foregroundBlur_2285_34756"/>
26
+ </filter>
27
+ <filter id="filter2_f_2285_34756" x="481" y="-250" width="400.074" height="360" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
28
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
29
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
30
+ <feGaussianBlur stdDeviation="40" result="effect1_foregroundBlur_2285_34756"/>
31
+ </filter>
32
+ <linearGradient id="paint0_linear_2285_34756" x1="-0.0574112" y1="173" x2="-0.0574112" y2="502.652" gradientUnits="userSpaceOnUse">
33
+ <stop stop-color="#00FF85"/>
34
+ <stop offset="1" stop-color="#00FF47" stop-opacity="0"/>
35
+ </linearGradient>
36
+ <linearGradient id="paint1_linear_2285_34756" x1="1146.02" y1="174.549" x2="1333.1" y2="293.915" gradientUnits="userSpaceOnUse">
37
+ <stop stop-color="#00FFF0"/>
38
+ <stop offset="1" stop-color="#1672EB"/>
39
+ </linearGradient>
40
+ <linearGradient id="paint2_linear_2285_34756" x1="681.037" y1="-170" x2="681.037" y2="30" gradientUnits="userSpaceOnUse">
41
+ <stop stop-color="#F5B315"/>
42
+ <stop offset="1" stop-color="#FF2CC4"/>
43
+ </linearGradient>
44
+ <clipPath id="clip0_2285_34756">
45
+ <rect width="1200" height="1791.08" rx="16" fill="white"/>
46
+ </clipPath>
47
+ </defs>
48
+ </svg>
49
+ `;
50
+ const getBannerBackground = (background, useGradientBackground) => {
51
+ return css `
52
+ background-color: ${background || theme.color.neutral.backgroundSubtle};
53
+ ${useGradientBackground &&
54
+ `
55
+ background-image: url("data:image/svg+xml,${encodeURIComponent(BANNER_GRADIENT_BACKGROUND_SVG)}");
56
+ background-position: center;
57
+ background-repeat: no-repeat;
58
+ background-size: cover;
59
+ `}
60
+ `;
61
+ };
62
+ const StyledBanner = styled.div `
63
+ width: ${(props) => props.width || '100%'};
64
+ padding: ${theme.space.space40} ${theme.space.space80};
65
+ border-radius: ${theme.radius.radius16};
66
+
67
+ ${({ $background, $useGradientBackground }) => getBannerBackground($background, $useGradientBackground)};
68
+ `;
69
+ export const Banner = ({ useGradientBackground = true, background, children, ...otherProps }) => (_jsx(StyledBanner, { "$background": background, "$useGradientBackground": useGradientBackground, ...otherProps, children: children }));
70
+ //# sourceMappingURL=banner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banner.js","sourceRoot":"","sources":["../../../../src/components/banner/banner.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,MAAM,8BAA8B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CtC,CAAC;AAUF,MAAM,mBAAmB,GAAG,CAAC,UAAmB,EAAE,qBAA+B,EAAE,EAAE;IACjF,OAAO,GAAG,CAAA;4BACc,UAAU,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB;UACpE,qBAAqB;QACvB;wDACgD,kBAAkB,CAAC,8BAA8B,CAAC;;;;aAI7F;KACR,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAA4E;aAC9F,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,MAAM;eAC9B,KAAK,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO;qBACpC,KAAK,CAAC,MAAM,CAAC,QAAQ;;MAEpC,CAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,EAAE,EAAE,CAAC,mBAAmB,CAAC,WAAW,EAAE,sBAAsB,CAAC;CAC1G,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAA0B,CAAC,EAC1C,qBAAqB,GAAG,IAAI,EAC5B,UAAU,EACV,QAAQ,EACR,GAAG,UAAU,EAChB,EAAE,EAAE,CAAC,CACF,KAAC,YAAY,mBAAc,UAAU,4BAA0B,qBAAqB,KAAM,UAAU,YAC/F,QAAQ,GACE,CAClB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './banner';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/banner/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './banner';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/banner/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,56 @@
1
+ import type { FC } from 'react';
2
+ import type React from 'react';
3
+ import type { ValueOf } from '../../internal_type_utils';
4
+ import type { RegularBoxProps } from '../box';
5
+ export declare const CHIP_SIZES: {
6
+ readonly EXTRA_SMALL: "XS";
7
+ readonly SMALL: "S";
8
+ readonly MEDIUM: "M";
9
+ readonly LARGE: "L";
10
+ };
11
+ type CHIP_SIZES = ValueOf<typeof CHIP_SIZES>;
12
+ export declare const CHIP_TYPES: {
13
+ readonly DEFAULT: "DEFAULT";
14
+ readonly PRIMARY: "PRIMARY";
15
+ readonly SUCCESS: "SUCCESS";
16
+ readonly WARNING: "WARNING";
17
+ readonly DANGER: "DANGER";
18
+ };
19
+ export type CHIP_TYPES = ValueOf<typeof CHIP_TYPES>;
20
+ export declare const classNames: {
21
+ BODY: string;
22
+ };
23
+ export type ChipProps = RegularBoxProps & {
24
+ type?: CHIP_TYPES;
25
+ size?: CHIP_SIZES;
26
+ icon?: React.ReactNode;
27
+ clickable?: boolean;
28
+ };
29
+ /**
30
+ * Component for displaying status and for labelling other components.
31
+ * @deprecated Use Tag or Badge
32
+ */
33
+ export declare const Chip: React.ForwardRefExoticComponent<{
34
+ children?: React.ReactNode;
35
+ className?: string;
36
+ style?: React.CSSProperties;
37
+ onClick?: (e: React.MouseEvent) => void;
38
+ id?: string;
39
+ title?: string;
40
+ role?: React.AriaRole;
41
+ } & {
42
+ as?: React.ElementType;
43
+ } & {
44
+ type?: CHIP_TYPES;
45
+ size?: CHIP_SIZES;
46
+ icon?: React.ReactNode;
47
+ clickable?: boolean;
48
+ } & React.RefAttributes<unknown>>;
49
+ type SpecificChipProps = Omit<ChipProps, 'type'>;
50
+ export declare const PrimaryChip: FC<SpecificChipProps>;
51
+ export declare const NeutralChip: FC<SpecificChipProps>;
52
+ export declare const SuccessChip: FC<SpecificChipProps>;
53
+ export declare const DangerChip: FC<SpecificChipProps>;
54
+ export declare const WarningChip: FC<SpecificChipProps>;
55
+ export {};
56
+ //# sourceMappingURL=chip.d.ts.map
@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WAAW,EAAE,EAAE,CAAC,iBAAiB,CAA4D,CAAC"}
@@ -0,0 +1,123 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import clsx from 'clsx';
3
+ import { forwardRef } from 'react';
4
+ import styled, { css } from 'styled-components';
5
+ import { theme } from '../../design_system/theme';
6
+ export const CHIP_SIZES = {
7
+ EXTRA_SMALL: 'XS',
8
+ SMALL: 'S',
9
+ MEDIUM: 'M',
10
+ LARGE: 'L',
11
+ };
12
+ export const CHIP_TYPES = {
13
+ DEFAULT: 'DEFAULT',
14
+ PRIMARY: 'PRIMARY',
15
+ SUCCESS: 'SUCCESS',
16
+ WARNING: 'WARNING',
17
+ DANGER: 'DANGER',
18
+ };
19
+ export const classNames = {
20
+ BODY: 'Chip-body',
21
+ };
22
+ const chipSizeStyle = {
23
+ [CHIP_SIZES.EXTRA_SMALL]: css `
24
+ font-size: 12px;
25
+ line-height: 16px;
26
+ padding: 0 4px;
27
+ border-radius: 6px;
28
+ `,
29
+ [CHIP_SIZES.SMALL]: css `
30
+ font-size: 12px;
31
+ line-height: 16px;
32
+ padding: 2px 4px;
33
+ border-radius: 6px;
34
+ `,
35
+ [CHIP_SIZES.MEDIUM]: css `
36
+ font-size: 14px;
37
+ line-height: 20px;
38
+ padding: 2px 8px;
39
+ border-radius: 100px;
40
+ `,
41
+ [CHIP_SIZES.LARGE]: css `
42
+ /* TODO: (typography-mismatch) 16px/20px does not match any canonical typography token — needs designer input. Blocks migrating chipSizeStyle to typography token interpolations (XS/S match bodyS, M matches bodyM). */
43
+ font-size: 16px;
44
+ line-height: 20px;
45
+ padding: 2px 8px;
46
+ border-radius: 100px;
47
+ `,
48
+ };
49
+ const chipTypeStyle = {
50
+ [CHIP_TYPES.DEFAULT]: css `
51
+ color: ${theme.color.neutral.text};
52
+ background: ${theme.color.neutral.chipBackground};
53
+ `,
54
+ [CHIP_TYPES.PRIMARY]: css `
55
+ color: ${theme.color.primary.chipText};
56
+ background: ${theme.color.primary.chipBackground};
57
+ `,
58
+ [CHIP_TYPES.SUCCESS]: css `
59
+ color: ${theme.color.success.chipText};
60
+ background: ${theme.color.success.chipBackground};
61
+ `,
62
+ [CHIP_TYPES.WARNING]: css `
63
+ color: ${theme.color.warning.chipText};
64
+ background: ${theme.color.warning.chipBackground};
65
+ `,
66
+ [CHIP_TYPES.DANGER]: css `
67
+ color: ${theme.color.danger.chipText};
68
+ background: ${theme.color.danger.chipBackground};
69
+ `,
70
+ };
71
+ const chipTypeHoverStyle = {
72
+ [CHIP_TYPES.DEFAULT]: css `
73
+ background: ${theme.color.neutral.chipBackgroundHover};
74
+ `,
75
+ [CHIP_TYPES.PRIMARY]: css `
76
+ background: ${theme.color.primary.chipBackgroundHover};
77
+ `,
78
+ [CHIP_TYPES.SUCCESS]: css `
79
+ background: ${theme.color.success.chipBackgroundHover};
80
+ `,
81
+ [CHIP_TYPES.WARNING]: css `
82
+ background: ${theme.color.warning.chipBackgroundHover};
83
+ `,
84
+ [CHIP_TYPES.DANGER]: css `
85
+ background: ${theme.color.danger.chipBackgroundHover};
86
+ `,
87
+ };
88
+ const StyledChip = styled.span `
89
+ ${({ size }) => chipSizeStyle[size]};
90
+ ${({ type }) => chipTypeStyle[type]};
91
+ ${({ type, clickable }) => clickable &&
92
+ css `
93
+ &:hover {
94
+ ${chipTypeHoverStyle[type]};
95
+ }
96
+ `};
97
+ /* Static styles */
98
+ width: fit-content;
99
+ display: flex;
100
+ flex-direction: row;
101
+ justify-content: center;
102
+ align-items: center;
103
+ /* TODO: (typography-keyword) 'normal' keyword used instead of numeric value (400) or typography token. */
104
+ font-weight: normal;
105
+ white-space: nowrap;
106
+ cursor: ${({ clickable }) => (clickable ? 'pointer' : 'default')};
107
+ gap: ${theme.space.space4};
108
+ `;
109
+ /**
110
+ * Component for displaying status and for labelling other components.
111
+ * @deprecated Use Tag or Badge
112
+ */
113
+ export const Chip = forwardRef(({ type = CHIP_TYPES.DEFAULT, size = CHIP_SIZES.MEDIUM, clickable = false, icon, children, className, ...passThroughProps }, ref) => {
114
+ const otherProps = { ...passThroughProps, type, size, clickable, className: clsx(className, classNames.BODY) };
115
+ return (_jsxs(StyledChip, { ref: ref, ...otherProps, children: [children, icon] }));
116
+ });
117
+ Chip.displayName = 'Chip';
118
+ export const PrimaryChip = (props) => _jsx(Chip, { type: CHIP_TYPES.PRIMARY, ...props });
119
+ export const NeutralChip = (props) => _jsx(Chip, { type: CHIP_TYPES.DEFAULT, ...props });
120
+ export const SuccessChip = (props) => _jsx(Chip, { type: CHIP_TYPES.SUCCESS, ...props });
121
+ export const DangerChip = (props) => _jsx(Chip, { type: CHIP_TYPES.DANGER, ...props });
122
+ export const WarningChip = (props) => _jsx(Chip, { type: CHIP_TYPES.WARNING, ...props });
123
+ //# sourceMappingURL=chip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chip.js","sourceRoot":"","sources":["../../../../src/components/chip/chip.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAIlD,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,GAAG;CACJ,CAAC;AAGX,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC;AAGX,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,IAAI,EAAE,WAAW;CACpB,CAAC;AAEF,MAAM,aAAa,GAAG;IAClB,CAAC,UAAU,CAAC,WAAW,C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,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;IAE/G,OAAO,CACH,MAAC,UAAU,IAAC,GAAG,EAAE,GAAG,KAAM,UAAU,aAC/B,QAAQ,EACR,IAAI,IACI,CAChB,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;AAI1B,MAAM,CAAC,MAAM,WAAW,GAA0B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,UAAU,CAAC,OAAO,KAAM,KAAK,GAAI,CAAC;AAC3G,MAAM,CAAC,MAAM,WAAW,GAA0B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,UAAU,CAAC,OAAO,KAAM,KAAK,GAAI,CAAC;AAC3G,MAAM,CAAC,MAAM,WAAW,GAA0B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,UAAU,CAAC,OAAO,KAAM,KAAK,GAAI,CAAC;AAC3G,MAAM,CAAC,MAAM,UAAU,GAA0B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,UAAU,CAAC,MAAM,KAAM,KAAK,GAAI,CAAC;AACzG,MAAM,CAAC,MAAM,WAAW,GAA0B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,UAAU,CAAC,OAAO,KAAM,KAAK,GAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './chip';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/chip/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './chip';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/chip/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -18,6 +18,8 @@ export type CodeBlockProps = RegularBoxProps & {
18
18
  className?: string;
19
19
  hideBashHeader?: boolean;
20
20
  onTabChange?: (key: string, e: React.MouseEvent) => Promise<void> | void;
21
+ showGradient?: boolean;
22
+ gradientRotation?: number;
21
23
  highlightLines?: number[];
22
24
  showActionButton?: boolean;
23
25
  actionButtonLabel?: string;
@@ -31,6 +33,6 @@ export type CodeBlockProps = RegularBoxProps & {
31
33
  hideBashPromptPrefixes?: boolean;
32
34
  hideLineNumbers?: boolean | undefined;
33
35
  };
34
- export declare const CodeBlock: ({ content, size, language, highlightLines, onTabChange, defaultTabKey, hideBashHeader, showActionButton, fullWidth, actionButtonLabel, hideLineNumbers, fullHeight, title, hideCopyButton, bashCommandsStart, hideBashPromptPrefixes, onActionButtonClick, ...rest }: CodeBlockProps) => import("react/jsx-runtime").JSX.Element;
36
+ export declare const CodeBlock: ({ content, size, language, highlightLines, onTabChange, defaultTabKey, showGradient, hideBashHeader, showActionButton, fullWidth, actionButtonLabel, gradientRotation, hideLineNumbers, fullHeight, title, hideCopyButton, bashCommandsStart, hideBashPromptPrefixes, onActionButtonClick, ...rest }: CodeBlockProps) => import("react/jsx-runtime").JSX.Element;
35
37
  export {};
36
38
  //# sourceMappingURL=code_block.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"code_block.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAO7D,KAAK,OAAO,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI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CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,sSAqBvB,cAAc,4CAqFhB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { useMemo, useRef, useState } from 'react';
4
+ import { ColorWheelGradient } from '../../color_wheel_gradient';
4
5
  import { Link } from '../../link';
5
6
  import { Text } from '../../text';
6
7
  import { ActionButton, CopyButton } from '../action_button';
@@ -41,7 +42,7 @@ const Header = ({ tabs, currentTab, showBashHeader, onTabChange, title }) => {
41
42
  return (_jsx("div", { ...props, children: label }, tab.key));
42
43
  }) })] }));
43
44
  };
44
- export const CodeBlock = ({ content, size, language, highlightLines, onTabChange, defaultTabKey, hideBashHeader, showActionButton, fullWidth, actionButtonLabel, hideLineNumbers, fullHeight, title, hideCopyButton, bashCommandsStart, hideBashPromptPrefixes, onActionButtonClick, ...rest }) => {
45
+ export const CodeBlock = ({ content, size, language, highlightLines, onTabChange, defaultTabKey, showGradient, hideBashHeader, showActionButton, fullWidth, actionButtonLabel, gradientRotation = 340, hideLineNumbers, fullHeight, title, hideCopyButton, bashCommandsStart, hideBashPromptPrefixes, onActionButtonClick, ...rest }) => {
45
46
  const isMultiTab = content instanceof Array;
46
47
  const defaultTab = isMultiTab ? (content.find((tab) => tab.key === defaultTabKey) ?? content[0]) : null;
47
48
  const [currentTab, setCurrentTab] = useState(defaultTab);
@@ -69,6 +70,6 @@ export const CodeBlock = ({ content, size, language, highlightLines, onTabChange
69
70
  }
70
71
  return {};
71
72
  }, [showLineNumbers, showBashPrompt, currentCode, effectiveBashCommandsStart]);
72
- return (_jsxs(CodeBlockWrapper, { "$hasHeader": showHeader, "$hasActionButton": showActionButton, "$hasTabs": isMultiTab, "$fullWidth": fullWidth, "$fullHeight": fullHeight, "$showLineNumbers": showLineNumbers, ...rest, children: [showHeader && (_jsx(Header, { tabs: isMultiTab ? content : null, currentTab: currentTab, onTabChange: handleTabClick, showBashHeader: showBashHeader, title: title })), _jsx(PrismSyntaxHighlighter, { code: currentCode, linePrefixes: linePrefixes, highlightLines: currentHighlightLines, language: currentLanguage, size: size, ref: syntaxHighlighterRef, isSingleLine: false }), _jsxs("div", { className: "CodeBlock-TopRightActionsWrapper", children: [showActionButton && (_jsx(ActionButton, { successStyle: true, onClick: onActionButtonClick, children: actionButtonLabel ?? 'Run on Apify' })), !hideCopyButton && _jsx(CopyButton, { code: currentCode })] })] }));
73
+ return (_jsxs(CodeBlockWrapper, { "$hasHeader": showHeader, "$gradientRotation": gradientRotation, "$hasActionButton": showActionButton, "$hasTabs": isMultiTab, "$fullWidth": fullWidth, "$fullHeight": fullHeight, "$showLineNumbers": showLineNumbers, ...rest, children: [showHeader && (_jsx(Header, { tabs: isMultiTab ? content : null, currentTab: currentTab, onTabChange: handleTabClick, showBashHeader: showBashHeader, title: title })), _jsx(PrismSyntaxHighlighter, { code: currentCode, linePrefixes: linePrefixes, highlightLines: currentHighlightLines, language: currentLanguage, size: size, ref: syntaxHighlighterRef, isSingleLine: false }), _jsxs("div", { className: "CodeBlock-TopRightActionsWrapper", children: [showActionButton && (_jsx(ActionButton, { successStyle: true, onClick: onActionButtonClick, children: actionButtonLabel ?? 'Run on Apify' })), !hideCopyButton && _jsx(CopyButton, { code: currentCode })] }), showGradient && _jsx(ColorWheelGradient, { className: "CodeBlock-Gradient", blurSize: 69 })] }));
73
74
  };
74
75
  //# sourceMappingURL=code_block.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"code_block.js","sourceRoot":"","sources":["../../../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oBAAoB,EACzB,YAAY,EAAE,KAAK,GACrB,EAEF,eAAK,SAAS,EAAC,kCAAkC,aAC5C,gBAAgB,IAAI,CACjB,KAAC,YAAY,IAAC,YAAY,QAAC,OAAO,EAAE,mBAAmB,YAClD,iBAAiB,IAAI,cAAc,GACzB,CAClB,EACA,CAAC,cAAc,IAAI,KAAC,UAAU,IAAC,IAAI,EAAE,WAAW,GAAI,IACnD,IACS,CACtB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"code_block.js","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAqBrE,MAAM,8BAA8B,GAAG;IACnC,MAAM;IACN,OAAO;IACP,OAAO;IACP,KAAK;IACL,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,YAAY;IACZ,MAAM;CACT,CAAC;AAEF,MAAM,UAAU,GAAG,GAAG,EAAE;IACpB,OAAO,CACH,eAAK,SAAS,EAAC,4BAA4B,aACvC,cAAK,SAAS,EAAC,qBAAqB,GAAG,EACvC,cAAK,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BAAgB,cACxB,UAAU,gBACR,SAAS,iBACR,UAAU,sBACL,eAAe,KAC7B,IAAI,aAEP,UAAU,IAAI,CACX,KAAC,MAAM,IACH,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EACjC,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,cAAc,EAC3B,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,GACd,CACL,EAED,KAAC,sBAAsB,IACnB,IAAI,EAAE,WAAW,EACjB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,qBAAqB,EACrC,QAAQ,EAAE,eAAe,EACzB,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,oBAAoB,EACzB,YAAY,EAAE,KAAK,GACrB,EAEF,eAAK,SAAS,EAAC,kCAAkC,aAC5C,gBAAgB,IAAI,CACjB,KAAC,YAAY,IAAC,YAAY,QAAC,OAAO,EAAE,mBAAmB,YAClD,iBAAiB,IAAI,cAAc,GACzB,CAClB,EACA,CAAC,cAAc,IAAI,KAAC,UAAU,IAAC,IAAI,EAAE,WAAW,GAAI,IACnD,EAEL,YAAY,IAAI,KAAC,kBAAkB,IAAC,SAAS,EAAC,oBAAoB,EAAC,QAAQ,EAAE,EAAE,GAAI,IACrE,CACtB,CAAC;AACN,CAAC,CAAC"}
@@ -7,6 +7,7 @@ export type SyntaxHighlighterBaseStylesWrapperProps = SharedTextProps & {
7
7
  export declare const SyntaxHighlighterBaseStylesWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(import("../..").BoxProps & import("react").RefAttributes<HTMLElement>) & import("styled-components/dist/types").BaseObject, SyntaxHighlighterBaseStylesWrapperProps>> & string & Omit<import("react").ForwardRefExoticComponent<import("../..").BoxProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
8
8
  export declare const CodeBlockWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<(import("../..").BoxProps & import("react").RefAttributes<HTMLElement>) & import("styled-components/dist/types").BaseObject, SyntaxHighlighterBaseStylesWrapperProps> & import("styled-components/dist/types").BaseObject, {
9
9
  $hasHeader: boolean;
10
+ $gradientRotation?: number;
10
11
  $highlightLines?: number[];
11
12
  $hasActionButton?: boolean;
12
13
  $hasTabs?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"code_block.styled.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.styled.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE9E,MAAM,MAAM,uCAAuC,GAAG,eAAe,GAAG;IACpE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,kCAAkC,8cAoB9C,CAAC;AAEF,eAAO,MAAM,gBAAgB;gBACb,OAAO;sBACD,MAAM,EAAE;uBACP,OAAO;eACf,OAAO;iBACL,OAAO;uBACD,OAAO;kBACZ,OAAO;WACd,cAAc;YAqIxB,CAAC"}
1
+ {"version":3,"file":"code_block.styled.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.styled.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE9E,MAAM,MAAM,uCAAuC,GAAG,eAAe,GAAG;IACpE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,kCAAkC,8cAoB9C,CAAC;AAEF,eAAO,MAAM,gBAAgB;gBACb,OAAO;wBACC,MAAM;sBACR,MAAM,EAAE;uBACP,OAAO;eACf,OAAO;iBACL,OAAO;uBACD,OAAO;kBACZ,OAAO;WACd,cAAc;YA+IxB,CAAC"}
@@ -134,6 +134,16 @@ export const CodeBlockWrapper = styled(SyntaxHighlighterBaseStylesWrapper) `
134
134
  `}
135
135
  }
136
136
 
137
+ .CodeBlock-Gradient {
138
+ right: 0px;
139
+ bottom: 0px;
140
+
141
+ aspect-ratio: 1/1;
142
+ height: 250%;
143
+
144
+ transform: translate(50%, 70%) rotate(${({ $gradientRotation }) => $gradientRotation ?? 0}deg) scaleX(-1);
145
+ }
146
+
137
147
  .CodeBlock-HederDotsWrapper {
138
148
  display: flex;
139
149
  padding: ${theme.space.space8};
@@ -1 +1 @@
1
- {"version":3,"file":"code_block.styled.js","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.styled.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAShC,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAyC;wBAC9E,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe;wBACnC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM;qBAC7B,KAAK,CAAC,MAAM,CAAC,QAAQ;;;;MAIpC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CACjB,CAAC,UAAU;IACX,GAAG,CAAA;;SAEF;MACH,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAClB,CAAC,WAAW;IACZ,GAAG,CAAA;;SAEF;;;;CAIR,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,kCAAkC,CAAC,CASxE;;;;;;;;eAQa,KAAK,CAAC,KAAK,CAAC,MAAM;4BACL,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB;mC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ACjB,UAAU;IACV,GAAG,CAAA;gCACiB,KAAK,CAAC,KAAK,CAAC,OAAO;qEACkB,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB;aAC5F;;;;;mBAKM,KAAK,CAAC,KAAK,CAAC,MAAM;;eAEtB,KAAK,CAAC,KAAK,CAAC,MAAM;;uBAEV,KAAK,CAAC,KAAK,CAAC,MAAM;;;;;;;gCAOT,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU;;;CAG7D,CAAC"}
1
+ {"version":3,"file":"code_block.styled.js","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.styled.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAShC,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAyC;wBAC9E,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe;wBACnC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM;qBAC7B,KAAK,CAAC,MAAM,CAAC,QAAQ;;;;MAIpC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CACjB,CAAC,UAAU;IACX,GAAG,CAAA;;SAEF;MACH,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAClB,CAAC,WAAW;IACZ,GAAG,CAAA;;SAEF;;;;CAIR,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAUxE;;;;;;;;eAQa,KAAK,CAAC,KAAK,CAAC,MAAM;4BACL,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB;mCAC7B,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM;;;;;;;2BAOlC,KAAK,CAAC,KAAK,CAAC,OAAO;6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,OAAO,CAAC,gBAAgB;aAC5F;;;;;;;;;;gDAUmC,CAAC,EAAE,iBAAiB,EAAE,EAAE,EAAE,CAAC,iBAAiB,IAAI,CAAC;;;;;mBAK9E,KAAK,CAAC,KAAK,CAAC,MAAM;;eAEtB,KAAK,CAAC,KAAK,CAAC,MAAM;;uBAEV,KAAK,CAAC,KAAK,CAAC,MAAM;;;;;;;gCAOT,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU;;;CAG7D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inline_code.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/inline_code/inline_code.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,eAAO,MAAM,gBAAgB,6CAM5B,CAAC;AAwBF,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG;IAC5C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAOhD,CAAC"}
1
+ {"version":3,"file":"inline_code.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/inline_code/inline_code.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,eAAO,MAAM,gBAAgB,6CAM5B,CAAC;AAwBF,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG;IAC5C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAOhD,CAAC"}
@@ -27,5 +27,6 @@ const Wrapper = styled.span `
27
27
  ${inlineCodeStyles}
28
28
  }
29
29
  `;
30
+ // This might be just a Chip component
30
31
  export const InlineCode = ({ children, size, withCopyButton, ...props }) => (_jsx(Wrapper, { ...props, children: _jsxs(Text, { type: "code", as: "code", size: size, children: [children, withCopyButton && _jsx(CopyButton, { text: children?.toString() ?? '' })] }) }));
31
32
  //# sourceMappingURL=inline_code.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"inline_code.js","sourceRoot":"","sources":["../../../../../src/components/code/inline_code/inline_code.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,wEAAwE;AACxE,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;eAEpB,KAAK,CAAC,KAAK,CAAC,MAAM;wBACT,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe;qBACtC,KAAK,CAAC,MAAM,CAAC,OAAO;wBACjB,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM;CACjD,CAAC;AAEF,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;mBAIjB,KAAK,CAAC,KAAK,CAAC,MAAM;CACpC,CAAC;AAEF,MAAM,UAAU,GAA+B,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACxD,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,CAAC"}
@@ -0,0 +1,9 @@
1
+ export interface ColorWheelGradientProps {
2
+ translateX?: number;
3
+ translateY?: number;
4
+ rotation?: number;
5
+ radius?: number;
6
+ blurSize?: number;
7
+ }
8
+ export declare const ColorWheelGradient: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ColorWheelGradientProps>> & string;
9
+ //# sourceMappingURL=color_wheel_gradient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color_wheel_gradient.d.ts","sourceRoot":"","sources":["../../../../src/components/color_wheel_gradient/color_wheel_gradient.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,4PAsB9B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import styled from 'styled-components';
2
+ export const ColorWheelGradient = styled.div `
3
+ ${({ radius, rotation = 0, blurSize = 40, translateX = 0, translateY = 0 }) => `
4
+ z-index: 1;
5
+ position: absolute;
6
+ width: ${radius ? `${radius}px` : 'auto'};
7
+ height: ${radius ? `${radius}px` : 'auto'};
8
+ transform-origin: center;
9
+ transform: translate(${translateX}px, ${translateY}px) rotate(${rotation}deg);
10
+
11
+ opacity: 0.30;
12
+ background: conic-gradient(
13
+ rgba(93, 133, 225, 0.99) 0deg,
14
+ rgba(106, 20, 222, 0.99) 69deg,
15
+ rgba(228, 68, 103, 0.99) 150deg,
16
+ rgba(250, 129, 54, 0.99) 221deg,
17
+ rgba(240, 178, 27, 0.99) 287deg,
18
+ rgba(18, 150, 111, 0.99) 360deg
19
+ );
20
+
21
+ border-radius: 50%;
22
+ filter: blur(${blurSize}px)
23
+ `}
24
+ `;
25
+ //# sourceMappingURL=color_wheel_gradient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color_wheel_gradient.js","sourceRoot":"","sources":["../../../../src/components/color_wheel_gradient/color_wheel_gradient.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAUvC,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAyB;MAC/D,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,EAAE,EAAE,UAAU,GAAG,CAAC,EAAE,UAAU,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC;;;aAGtE,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM;cAC9B,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM;;2BAElB,UAAU,OAAO,UAAU,cAAc,QAAQ;;;;;;;;;;;;;mBAazD,QAAQ;CAC1B;CACA,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './color_wheel_gradient';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/color_wheel_gradient/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './color_wheel_gradient';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/color_wheel_gradient/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}