@slipstream-ui/core 0.12.1 → 0.14.0
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.d.mts +208 -4
- package/dist/index.d.ts +208 -4
- package/dist/index.js +471 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +463 -11
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +1 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +1 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +1 -1
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +1 -1
- package/dist/manifests/calendar.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/consent-banner.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cover-image.manifest.json +1 -1
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +1 -1
- package/dist/manifests/date-picker-popover.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +1 -1
- package/dist/manifests/empty-state.manifest.json +1 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/figure.manifest.json +105 -0
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/icon-button.manifest.json +101 -0
- package/dist/manifests/icon-tile.manifest.json +107 -0
- package/dist/manifests/icon.manifest.json +119 -0
- package/dist/manifests/image.manifest.json +1 -1
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list-toolbar.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/media-card.manifest.json +1 -1
- package/dist/manifests/media.manifest.json +142 -0
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/month-schedule.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +1 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +1 -1
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +1 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/social-links.manifest.json +120 -0
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +1 -1
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +1 -1
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +49 -6
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +1 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/figure/Figure.d.ts +23 -0
- package/dist/src/components/figure/Figure.js +60 -0
- package/dist/src/components/figure/Figure.js.map +1 -0
- package/dist/src/components/figure/Figure.mjs +26 -0
- package/dist/src/components/figure/Figure.mjs.map +1 -0
- package/dist/src/components/figure/index.d.ts +2 -0
- package/dist/src/components/figure/index.js +29 -0
- package/dist/src/components/figure/index.js.map +1 -0
- package/dist/src/components/figure/index.mjs +5 -0
- package/dist/src/components/figure/index.mjs.map +1 -0
- package/dist/src/components/icon/Icon.d.ts +33 -0
- package/dist/src/components/icon/Icon.js +82 -0
- package/dist/src/components/icon/Icon.js.map +1 -0
- package/dist/src/components/icon/Icon.mjs +47 -0
- package/dist/src/components/icon/Icon.mjs.map +1 -0
- package/dist/src/components/icon/index.d.ts +2 -0
- package/dist/src/components/icon/index.js +31 -0
- package/dist/src/components/icon/index.js.map +1 -0
- package/dist/src/components/icon/index.mjs +6 -0
- package/dist/src/components/icon/index.mjs.map +1 -0
- package/dist/src/components/icon-button/IconButton.d.ts +25 -0
- package/dist/src/components/icon-button/IconButton.js +60 -0
- package/dist/src/components/icon-button/IconButton.js.map +1 -0
- package/dist/src/components/icon-button/IconButton.mjs +26 -0
- package/dist/src/components/icon-button/IconButton.mjs.map +1 -0
- package/dist/src/components/icon-button/index.d.ts +2 -0
- package/dist/src/components/icon-button/index.js +29 -0
- package/dist/src/components/icon-button/index.js.map +1 -0
- package/dist/src/components/icon-button/index.mjs +5 -0
- package/dist/src/components/icon-button/index.mjs.map +1 -0
- package/dist/src/components/icon-tile/IconTile.d.ts +23 -0
- package/dist/src/components/icon-tile/IconTile.js +75 -0
- package/dist/src/components/icon-tile/IconTile.js.map +1 -0
- package/dist/src/components/icon-tile/IconTile.mjs +40 -0
- package/dist/src/components/icon-tile/IconTile.mjs.map +1 -0
- package/dist/src/components/icon-tile/index.d.ts +2 -0
- package/dist/src/components/icon-tile/index.js +31 -0
- package/dist/src/components/icon-tile/index.js.map +1 -0
- package/dist/src/components/icon-tile/index.mjs +6 -0
- package/dist/src/components/icon-tile/index.mjs.map +1 -0
- package/dist/src/components/media/Media.d.ts +48 -0
- package/dist/src/components/media/Media.js +97 -0
- package/dist/src/components/media/Media.js.map +1 -0
- package/dist/src/components/media/Media.mjs +63 -0
- package/dist/src/components/media/Media.mjs.map +1 -0
- package/dist/src/components/media/index.d.ts +2 -0
- package/dist/src/components/media/index.js +29 -0
- package/dist/src/components/media/index.js.map +1 -0
- package/dist/src/components/media/index.mjs +5 -0
- package/dist/src/components/media/index.mjs.map +1 -0
- package/dist/src/components/social-links/SocialLinks.d.ts +34 -0
- package/dist/src/components/social-links/SocialLinks.js +69 -0
- package/dist/src/components/social-links/SocialLinks.js.map +1 -0
- package/dist/src/components/social-links/SocialLinks.mjs +35 -0
- package/dist/src/components/social-links/SocialLinks.mjs.map +1 -0
- package/dist/src/components/social-links/index.d.ts +2 -0
- package/dist/src/components/social-links/index.js +29 -0
- package/dist/src/components/social-links/index.js.map +1 -0
- package/dist/src/components/social-links/index.mjs +5 -0
- package/dist/src/components/social-links/index.mjs.map +1 -0
- package/dist/src/components/time-picker/TimePicker.d.ts +31 -2
- package/dist/src/components/time-picker/TimePicker.js +244 -11
- package/dist/src/components/time-picker/TimePicker.js.map +1 -1
- package/dist/src/components/time-picker/TimePicker.mjs +244 -11
- package/dist/src/components/time-picker/TimePicker.mjs.map +1 -1
- package/dist/src/index.d.ts +6 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -4
- package/src/components/figure/Figure.test.tsx +54 -0
- package/src/components/figure/Figure.tsx +38 -0
- package/src/components/figure/index.ts +2 -0
- package/src/components/icon/Icon.test.tsx +70 -0
- package/src/components/icon/Icon.tsx +61 -0
- package/src/components/icon/index.ts +2 -0
- package/src/components/icon-button/IconButton.test.tsx +76 -0
- package/src/components/icon-button/IconButton.tsx +38 -0
- package/src/components/icon-button/index.ts +2 -0
- package/src/components/icon-tile/IconTile.test.tsx +63 -0
- package/src/components/icon-tile/IconTile.tsx +55 -0
- package/src/components/icon-tile/index.ts +2 -0
- package/src/components/media/Media.test.tsx +53 -0
- package/src/components/media/Media.tsx +92 -0
- package/src/components/media/index.ts +2 -0
- package/src/components/social-links/SocialLinks.test.tsx +59 -0
- package/src/components/social-links/SocialLinks.tsx +73 -0
- package/src/components/social-links/index.ts +2 -0
- package/src/components/time-picker/TimePicker.test.tsx +77 -0
- package/src/components/time-picker/TimePicker.tsx +315 -12
- package/src/index.ts +6 -0
- package/src/manifests/accordion.manifest.json +1 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +1 -1
- package/src/manifests/app-shell.manifest.json +1 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +1 -1
- package/src/manifests/auth-layout.manifest.json +1 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +1 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +1 -1
- package/src/manifests/breadcrumb.manifest.json +1 -1
- package/src/manifests/button-group.manifest.json +1 -1
- package/src/manifests/button.manifest.json +1 -1
- package/src/manifests/calendar.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/consent-banner.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cover-image.manifest.json +1 -1
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +1 -1
- package/src/manifests/date-picker-popover.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +1 -1
- package/src/manifests/empty-state.manifest.json +1 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/figure.manifest.json +105 -0
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/icon-button.manifest.json +101 -0
- package/src/manifests/icon-tile.manifest.json +107 -0
- package/src/manifests/icon.manifest.json +119 -0
- package/src/manifests/image.manifest.json +1 -1
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list-toolbar.manifest.json +1 -1
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/media-card.manifest.json +1 -1
- package/src/manifests/media.manifest.json +142 -0
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/month-schedule.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +1 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +1 -1
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/social-links.manifest.json +120 -0
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +1 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +49 -6
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/figure/Figure.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type FigureProps = React.HTMLAttributes<HTMLElement> & {\n /** Caption rendered in <figcaption> below the media. */\n caption?: React.ReactNode;\n /** Optional credit/source line appended to the caption. */\n credit?: React.ReactNode;\n /** Caption alignment (default 'left'). */\n align?: 'left' | 'center';\n};\n\n/**\n * Semantic figure wrapper: media plus an optional caption and credit line.\n * Use for any illustrated or media content that needs a <figcaption>;\n * Media builds on this for aspect-ratio frames.\n */\nconst Figure = React.forwardRef<HTMLElement, FigureProps>(\n ({ className, caption, credit, align = 'left', children, ...props }, ref) => (\n <figure ref={ref} className={cn('m-0', className)} {...props}>\n {children}\n {(caption || credit) && (\n <figcaption\n className={cn(\n 'mt-2 text-xs text-muted-foreground',\n align === 'center' && 'text-center'\n )}\n >\n {caption}\n {credit && <span className=\"mt-0.5 block text-muted-foreground/80\">{credit}</span>}\n </figcaption>\n )}\n </figure>\n )\n);\nFigure.displayName = 'Figure';\n\nexport { Figure };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBQ;AAtBR,YAAuB;AACvB,gBAAmB;AAgBnB,MAAM,SAAS,MAAM;AAAA,EACnB,CAAC,EAAE,WAAW,SAAS,QAAQ,QAAQ,QAAQ,UAAU,GAAG,MAAM,GAAG,QACnE,6CAAC,YAAO,KAAU,eAAW,cAAG,OAAO,SAAS,GAAI,GAAG,OACpD;AAAA;AAAA,KACC,WAAW,WACX;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA,UAAU,YAAY;AAAA,QACxB;AAAA,QAEC;AAAA;AAAA,UACA,UAAU,4CAAC,UAAK,WAAU,yCAAyC,kBAAO;AAAA;AAAA;AAAA,IAC7E;AAAA,KAEJ;AAEJ;AACA,OAAO,cAAc;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../utils/cn.mjs";
|
|
4
|
+
const Figure = React.forwardRef(
|
|
5
|
+
({ className, caption, credit, align = "left", children, ...props }, ref) => /* @__PURE__ */ jsxs("figure", { ref, className: cn("m-0", className), ...props, children: [
|
|
6
|
+
children,
|
|
7
|
+
(caption || credit) && /* @__PURE__ */ jsxs(
|
|
8
|
+
"figcaption",
|
|
9
|
+
{
|
|
10
|
+
className: cn(
|
|
11
|
+
"mt-2 text-xs text-muted-foreground",
|
|
12
|
+
align === "center" && "text-center"
|
|
13
|
+
),
|
|
14
|
+
children: [
|
|
15
|
+
caption,
|
|
16
|
+
credit && /* @__PURE__ */ jsx("span", { className: "mt-0.5 block text-muted-foreground/80", children: credit })
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
] })
|
|
21
|
+
);
|
|
22
|
+
Figure.displayName = "Figure";
|
|
23
|
+
export {
|
|
24
|
+
Figure
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=Figure.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/figure/Figure.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type FigureProps = React.HTMLAttributes<HTMLElement> & {\n /** Caption rendered in <figcaption> below the media. */\n caption?: React.ReactNode;\n /** Optional credit/source line appended to the caption. */\n credit?: React.ReactNode;\n /** Caption alignment (default 'left'). */\n align?: 'left' | 'center';\n};\n\n/**\n * Semantic figure wrapper: media plus an optional caption and credit line.\n * Use for any illustrated or media content that needs a <figcaption>;\n * Media builds on this for aspect-ratio frames.\n */\nconst Figure = React.forwardRef<HTMLElement, FigureProps>(\n ({ className, caption, credit, align = 'left', children, ...props }, ref) => (\n <figure ref={ref} className={cn('m-0', className)} {...props}>\n {children}\n {(caption || credit) && (\n <figcaption\n className={cn(\n 'mt-2 text-xs text-muted-foreground',\n align === 'center' && 'text-center'\n )}\n >\n {caption}\n {credit && <span className=\"mt-0.5 block text-muted-foreground/80\">{credit}</span>}\n </figcaption>\n )}\n </figure>\n )\n);\nFigure.displayName = 'Figure';\n\nexport { Figure };\n"],"mappings":"AAsBQ,SAOa,KAPb;AAtBR,YAAY,WAAW;AACvB,SAAS,UAAU;AAgBnB,MAAM,SAAS,MAAM;AAAA,EACnB,CAAC,EAAE,WAAW,SAAS,QAAQ,QAAQ,QAAQ,UAAU,GAAG,MAAM,GAAG,QACnE,qBAAC,YAAO,KAAU,WAAW,GAAG,OAAO,SAAS,GAAI,GAAG,OACpD;AAAA;AAAA,KACC,WAAW,WACX;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,UACT;AAAA,UACA,UAAU,YAAY;AAAA,QACxB;AAAA,QAEC;AAAA;AAAA,UACA,UAAU,oBAAC,UAAK,WAAU,yCAAyC,kBAAO;AAAA;AAAA;AAAA,IAC7E;AAAA,KAEJ;AAEJ;AACA,OAAO,cAAc;","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var figure_exports = {};
|
|
20
|
+
__export(figure_exports, {
|
|
21
|
+
Figure: () => import_Figure.Figure
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(figure_exports);
|
|
24
|
+
var import_Figure = require("./Figure.js");
|
|
25
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
+
0 && (module.exports = {
|
|
27
|
+
Figure
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/figure/index.ts"],"sourcesContent":["export { Figure } from './Figure';\nexport type { FigureProps } from './Figure';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAuB;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/figure/index.ts"],"sourcesContent":["export { Figure } from './Figure';\nexport type { FigureProps } from './Figure';\n"],"mappings":"AAAA,SAAS,cAAc;","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const iconVariants: (props?: ({
|
|
4
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | "muted" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type IconProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof iconVariants> & {
|
|
8
|
+
/**
|
|
9
|
+
* The SVG to render (any icon component that forwards props to <svg>).
|
|
10
|
+
* Alternatively pass the SVG element as children.
|
|
11
|
+
*/
|
|
12
|
+
icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
13
|
+
/** Accessible name when the icon carries meaning on its own. */
|
|
14
|
+
label?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Consistent sizing and tinting for consumer-supplied icons. Decorative by
|
|
18
|
+
* default (`aria-hidden`); pass `label` to expose the icon to assistive tech
|
|
19
|
+
* when it carries meaning on its own.
|
|
20
|
+
*/
|
|
21
|
+
declare const Icon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
22
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
23
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | "muted" | null | undefined;
|
|
24
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
25
|
+
/**
|
|
26
|
+
* The SVG to render (any icon component that forwards props to <svg>).
|
|
27
|
+
* Alternatively pass the SVG element as children.
|
|
28
|
+
*/
|
|
29
|
+
icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
30
|
+
/** Accessible name when the icon carries meaning on its own. */
|
|
31
|
+
label?: string;
|
|
32
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
33
|
+
export { Icon, iconVariants };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var Icon_exports = {};
|
|
30
|
+
__export(Icon_exports, {
|
|
31
|
+
Icon: () => Icon,
|
|
32
|
+
iconVariants: () => iconVariants
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Icon_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
38
|
+
var import_cn = require("../../utils/cn.js");
|
|
39
|
+
const iconVariants = (0, import_class_variance_authority.cva)("inline-flex shrink-0 items-center justify-center [&_svg]:shrink-0", {
|
|
40
|
+
variants: {
|
|
41
|
+
size: {
|
|
42
|
+
sm: "[&_svg]:h-3.5 [&_svg]:w-3.5",
|
|
43
|
+
md: "[&_svg]:h-4 [&_svg]:w-4",
|
|
44
|
+
lg: "[&_svg]:h-5 [&_svg]:w-5",
|
|
45
|
+
xl: "[&_svg]:h-6 [&_svg]:w-6"
|
|
46
|
+
},
|
|
47
|
+
tone: {
|
|
48
|
+
default: "text-foreground",
|
|
49
|
+
muted: "text-muted-foreground",
|
|
50
|
+
primary: "text-primary-ink",
|
|
51
|
+
success: "text-success-ink",
|
|
52
|
+
warning: "text-warning-ink",
|
|
53
|
+
info: "text-info-ink",
|
|
54
|
+
destructive: "text-destructive"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
defaultVariants: {
|
|
58
|
+
size: "md",
|
|
59
|
+
tone: "default"
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
const Icon = React.forwardRef(
|
|
63
|
+
({ className, size, tone, icon: IconComponent, label, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
64
|
+
"span",
|
|
65
|
+
{
|
|
66
|
+
ref,
|
|
67
|
+
role: label ? "img" : void 0,
|
|
68
|
+
"aria-label": label,
|
|
69
|
+
"aria-hidden": label ? void 0 : true,
|
|
70
|
+
className: (0, import_cn.cn)(iconVariants({ size, tone }), className),
|
|
71
|
+
...props,
|
|
72
|
+
children: IconComponent ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconComponent, { "aria-hidden": "true", focusable: "false" }) : children
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
Icon.displayName = "Icon";
|
|
77
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
78
|
+
0 && (module.exports = {
|
|
79
|
+
Icon,
|
|
80
|
+
iconVariants
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=Icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/icon/Icon.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst iconVariants = cva('inline-flex shrink-0 items-center justify-center [&_svg]:shrink-0', {\n variants: {\n size: {\n sm: '[&_svg]:h-3.5 [&_svg]:w-3.5',\n md: '[&_svg]:h-4 [&_svg]:w-4',\n lg: '[&_svg]:h-5 [&_svg]:w-5',\n xl: '[&_svg]:h-6 [&_svg]:w-6',\n },\n tone: {\n default: 'text-foreground',\n muted: 'text-muted-foreground',\n primary: 'text-primary-ink',\n success: 'text-success-ink',\n warning: 'text-warning-ink',\n info: 'text-info-ink',\n destructive: 'text-destructive',\n },\n },\n defaultVariants: {\n size: 'md',\n tone: 'default',\n },\n});\n\nexport type IconProps = React.HTMLAttributes<HTMLSpanElement> &\n VariantProps<typeof iconVariants> & {\n /**\n * The SVG to render (any icon component that forwards props to <svg>).\n * Alternatively pass the SVG element as children.\n */\n icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;\n /** Accessible name when the icon carries meaning on its own. */\n label?: string;\n };\n\n/**\n * Consistent sizing and tinting for consumer-supplied icons. Decorative by\n * default (`aria-hidden`); pass `label` to expose the icon to assistive tech\n * when it carries meaning on its own.\n */\nconst Icon = React.forwardRef<HTMLSpanElement, IconProps>(\n ({ className, size, tone, icon: IconComponent, label, children, ...props }, ref) => (\n <span\n ref={ref}\n role={label ? 'img' : undefined}\n aria-label={label}\n aria-hidden={label ? undefined : true}\n className={cn(iconVariants({ size, tone }), className)}\n {...props}\n >\n {IconComponent ? <IconComponent aria-hidden=\"true\" focusable=\"false\" /> : children}\n </span>\n )\n);\nIcon.displayName = 'Icon';\n\nexport { Icon, iconVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsDuB;AAtDvB,YAAuB;AACvB,sCAAuC;AACvC,gBAAmB;AAEnB,MAAM,mBAAe,qCAAI,qEAAqE;AAAA,EAC5F,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,OAAO;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,MACT,SAAS;AAAA,MACT,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AACF,CAAC;AAkBD,MAAM,OAAO,MAAM;AAAA,EACjB,CAAC,EAAE,WAAW,MAAM,MAAM,MAAM,eAAe,OAAO,UAAU,GAAG,MAAM,GAAG,QAC1E;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAM,QAAQ,QAAQ;AAAA,MACtB,cAAY;AAAA,MACZ,eAAa,QAAQ,SAAY;AAAA,MACjC,eAAW,cAAG,aAAa,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS;AAAA,MACpD,GAAG;AAAA,MAEH,0BAAgB,4CAAC,iBAAc,eAAY,QAAO,WAAU,SAAQ,IAAK;AAAA;AAAA,EAC5E;AAEJ;AACA,KAAK,cAAc;","names":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { cn } from "../../utils/cn.mjs";
|
|
5
|
+
const iconVariants = cva("inline-flex shrink-0 items-center justify-center [&_svg]:shrink-0", {
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
sm: "[&_svg]:h-3.5 [&_svg]:w-3.5",
|
|
9
|
+
md: "[&_svg]:h-4 [&_svg]:w-4",
|
|
10
|
+
lg: "[&_svg]:h-5 [&_svg]:w-5",
|
|
11
|
+
xl: "[&_svg]:h-6 [&_svg]:w-6"
|
|
12
|
+
},
|
|
13
|
+
tone: {
|
|
14
|
+
default: "text-foreground",
|
|
15
|
+
muted: "text-muted-foreground",
|
|
16
|
+
primary: "text-primary-ink",
|
|
17
|
+
success: "text-success-ink",
|
|
18
|
+
warning: "text-warning-ink",
|
|
19
|
+
info: "text-info-ink",
|
|
20
|
+
destructive: "text-destructive"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
size: "md",
|
|
25
|
+
tone: "default"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const Icon = React.forwardRef(
|
|
29
|
+
({ className, size, tone, icon: IconComponent, label, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
30
|
+
"span",
|
|
31
|
+
{
|
|
32
|
+
ref,
|
|
33
|
+
role: label ? "img" : void 0,
|
|
34
|
+
"aria-label": label,
|
|
35
|
+
"aria-hidden": label ? void 0 : true,
|
|
36
|
+
className: cn(iconVariants({ size, tone }), className),
|
|
37
|
+
...props,
|
|
38
|
+
children: IconComponent ? /* @__PURE__ */ jsx(IconComponent, { "aria-hidden": "true", focusable: "false" }) : children
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
);
|
|
42
|
+
Icon.displayName = "Icon";
|
|
43
|
+
export {
|
|
44
|
+
Icon,
|
|
45
|
+
iconVariants
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=Icon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/icon/Icon.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst iconVariants = cva('inline-flex shrink-0 items-center justify-center [&_svg]:shrink-0', {\n variants: {\n size: {\n sm: '[&_svg]:h-3.5 [&_svg]:w-3.5',\n md: '[&_svg]:h-4 [&_svg]:w-4',\n lg: '[&_svg]:h-5 [&_svg]:w-5',\n xl: '[&_svg]:h-6 [&_svg]:w-6',\n },\n tone: {\n default: 'text-foreground',\n muted: 'text-muted-foreground',\n primary: 'text-primary-ink',\n success: 'text-success-ink',\n warning: 'text-warning-ink',\n info: 'text-info-ink',\n destructive: 'text-destructive',\n },\n },\n defaultVariants: {\n size: 'md',\n tone: 'default',\n },\n});\n\nexport type IconProps = React.HTMLAttributes<HTMLSpanElement> &\n VariantProps<typeof iconVariants> & {\n /**\n * The SVG to render (any icon component that forwards props to <svg>).\n * Alternatively pass the SVG element as children.\n */\n icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;\n /** Accessible name when the icon carries meaning on its own. */\n label?: string;\n };\n\n/**\n * Consistent sizing and tinting for consumer-supplied icons. Decorative by\n * default (`aria-hidden`); pass `label` to expose the icon to assistive tech\n * when it carries meaning on its own.\n */\nconst Icon = React.forwardRef<HTMLSpanElement, IconProps>(\n ({ className, size, tone, icon: IconComponent, label, children, ...props }, ref) => (\n <span\n ref={ref}\n role={label ? 'img' : undefined}\n aria-label={label}\n aria-hidden={label ? undefined : true}\n className={cn(iconVariants({ size, tone }), className)}\n {...props}\n >\n {IconComponent ? <IconComponent aria-hidden=\"true\" focusable=\"false\" /> : children}\n </span>\n )\n);\nIcon.displayName = 'Icon';\n\nexport { Icon, iconVariants };\n"],"mappings":"AAsDuB;AAtDvB,YAAY,WAAW;AACvB,SAAS,WAA8B;AACvC,SAAS,UAAU;AAEnB,MAAM,eAAe,IAAI,qEAAqE;AAAA,EAC5F,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,OAAO;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,MACT,SAAS;AAAA,MACT,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AACF,CAAC;AAkBD,MAAM,OAAO,MAAM;AAAA,EACjB,CAAC,EAAE,WAAW,MAAM,MAAM,MAAM,eAAe,OAAO,UAAU,GAAG,MAAM,GAAG,QAC1E;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAM,QAAQ,QAAQ;AAAA,MACtB,cAAY;AAAA,MACZ,eAAa,QAAQ,SAAY;AAAA,MACjC,WAAW,GAAG,aAAa,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS;AAAA,MACpD,GAAG;AAAA,MAEH,0BAAgB,oBAAC,iBAAc,eAAY,QAAO,WAAU,SAAQ,IAAK;AAAA;AAAA,EAC5E;AAEJ;AACA,KAAK,cAAc;","names":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var icon_exports = {};
|
|
20
|
+
__export(icon_exports, {
|
|
21
|
+
Icon: () => import_Icon.Icon,
|
|
22
|
+
iconVariants: () => import_Icon.iconVariants
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(icon_exports);
|
|
25
|
+
var import_Icon = require("./Icon.js");
|
|
26
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
+
0 && (module.exports = {
|
|
28
|
+
Icon,
|
|
29
|
+
iconVariants
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/icon/index.ts"],"sourcesContent":["export { Icon, iconVariants } from './Icon';\nexport type { IconProps } from './Icon';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAmC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/icon/index.ts"],"sourcesContent":["export { Icon, iconVariants } from './Icon';\nexport type { IconProps } from './Icon';\n"],"mappings":"AAAA,SAAS,MAAM,oBAAoB;","names":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ButtonProps } from '../button/Button';
|
|
3
|
+
export type IconButtonProps = Omit<ButtonProps, 'size'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Accessible name for the icon-only control. Required: an icon button
|
|
6
|
+
* without a label is invisible to screen readers.
|
|
7
|
+
*/
|
|
8
|
+
label: string;
|
|
9
|
+
/** Square edge length. `md` is Button's `icon` size (h-10 w-10). */
|
|
10
|
+
size?: 'sm' | 'md' | 'lg';
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Square icon-only button built on Button's `icon` size. `label` is required
|
|
14
|
+
* and becomes `aria-label`, so the control always has an accessible name.
|
|
15
|
+
*/
|
|
16
|
+
declare const IconButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "size"> & {
|
|
17
|
+
/**
|
|
18
|
+
* Accessible name for the icon-only control. Required: an icon button
|
|
19
|
+
* without a label is invisible to screen readers.
|
|
20
|
+
*/
|
|
21
|
+
label: string;
|
|
22
|
+
/** Square edge length. `md` is Button's `icon` size (h-10 w-10). */
|
|
23
|
+
size?: "sm" | "md" | "lg";
|
|
24
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
export { IconButton };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var IconButton_exports = {};
|
|
30
|
+
__export(IconButton_exports, {
|
|
31
|
+
IconButton: () => IconButton
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(IconButton_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_cn = require("../../utils/cn.js");
|
|
37
|
+
var import_Button = require("../button/Button.js");
|
|
38
|
+
const sizeClasses = {
|
|
39
|
+
sm: "h-8 w-8",
|
|
40
|
+
md: void 0,
|
|
41
|
+
lg: "h-11 w-11"
|
|
42
|
+
};
|
|
43
|
+
const IconButton = React.forwardRef(
|
|
44
|
+
({ className, label, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
45
|
+
import_Button.Button,
|
|
46
|
+
{
|
|
47
|
+
ref,
|
|
48
|
+
size: "icon",
|
|
49
|
+
"aria-label": label,
|
|
50
|
+
className: (0, import_cn.cn)(sizeClasses[size], className),
|
|
51
|
+
...props
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
);
|
|
55
|
+
IconButton.displayName = "IconButton";
|
|
56
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
+
0 && (module.exports = {
|
|
58
|
+
IconButton
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=IconButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/icon-button/IconButton.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Button, type ButtonProps } from '../button/Button';\n\nexport type IconButtonProps = Omit<ButtonProps, 'size'> & {\n /**\n * Accessible name for the icon-only control. Required: an icon button\n * without a label is invisible to screen readers.\n */\n label: string;\n /** Square edge length. `md` is Button's `icon` size (h-10 w-10). */\n size?: 'sm' | 'md' | 'lg';\n};\n\nconst sizeClasses = {\n sm: 'h-8 w-8',\n md: undefined,\n lg: 'h-11 w-11',\n} as const;\n\n/**\n * Square icon-only button built on Button's `icon` size. `label` is required\n * and becomes `aria-label`, so the control always has an accessible name.\n */\nconst IconButton = React.forwardRef<HTMLButtonElement, IconButtonProps>(\n ({ className, label, size = 'md', ...props }, ref) => (\n <Button\n ref={ref}\n size=\"icon\"\n aria-label={label}\n className={cn(sizeClasses[size], className)}\n {...props}\n />\n )\n);\nIconButton.displayName = 'IconButton';\n\nexport { IconButton };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA0BI;AA1BJ,YAAuB;AACvB,gBAAmB;AACnB,oBAAyC;AAYzC,MAAM,cAAc;AAAA,EAClB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAMA,MAAM,aAAa,MAAM;AAAA,EACvB,CAAC,EAAE,WAAW,OAAO,OAAO,MAAM,GAAG,MAAM,GAAG,QAC5C;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,cAAY;AAAA,MACZ,eAAW,cAAG,YAAY,IAAI,GAAG,SAAS;AAAA,MACzC,GAAG;AAAA;AAAA,EACN;AAEJ;AACA,WAAW,cAAc;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../utils/cn.mjs";
|
|
4
|
+
import { Button } from "../button/Button.mjs";
|
|
5
|
+
const sizeClasses = {
|
|
6
|
+
sm: "h-8 w-8",
|
|
7
|
+
md: void 0,
|
|
8
|
+
lg: "h-11 w-11"
|
|
9
|
+
};
|
|
10
|
+
const IconButton = React.forwardRef(
|
|
11
|
+
({ className, label, size = "md", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12
|
+
Button,
|
|
13
|
+
{
|
|
14
|
+
ref,
|
|
15
|
+
size: "icon",
|
|
16
|
+
"aria-label": label,
|
|
17
|
+
className: cn(sizeClasses[size], className),
|
|
18
|
+
...props
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
);
|
|
22
|
+
IconButton.displayName = "IconButton";
|
|
23
|
+
export {
|
|
24
|
+
IconButton
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=IconButton.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/icon-button/IconButton.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Button, type ButtonProps } from '../button/Button';\n\nexport type IconButtonProps = Omit<ButtonProps, 'size'> & {\n /**\n * Accessible name for the icon-only control. Required: an icon button\n * without a label is invisible to screen readers.\n */\n label: string;\n /** Square edge length. `md` is Button's `icon` size (h-10 w-10). */\n size?: 'sm' | 'md' | 'lg';\n};\n\nconst sizeClasses = {\n sm: 'h-8 w-8',\n md: undefined,\n lg: 'h-11 w-11',\n} as const;\n\n/**\n * Square icon-only button built on Button's `icon` size. `label` is required\n * and becomes `aria-label`, so the control always has an accessible name.\n */\nconst IconButton = React.forwardRef<HTMLButtonElement, IconButtonProps>(\n ({ className, label, size = 'md', ...props }, ref) => (\n <Button\n ref={ref}\n size=\"icon\"\n aria-label={label}\n className={cn(sizeClasses[size], className)}\n {...props}\n />\n )\n);\nIconButton.displayName = 'IconButton';\n\nexport { IconButton };\n"],"mappings":"AA0BI;AA1BJ,YAAY,WAAW;AACvB,SAAS,UAAU;AACnB,SAAS,cAAgC;AAYzC,MAAM,cAAc;AAAA,EAClB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAMA,MAAM,aAAa,MAAM;AAAA,EACvB,CAAC,EAAE,WAAW,OAAO,OAAO,MAAM,GAAG,MAAM,GAAG,QAC5C;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,cAAY;AAAA,MACZ,WAAW,GAAG,YAAY,IAAI,GAAG,SAAS;AAAA,MACzC,GAAG;AAAA;AAAA,EACN;AAEJ;AACA,WAAW,cAAc;","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var icon_button_exports = {};
|
|
20
|
+
__export(icon_button_exports, {
|
|
21
|
+
IconButton: () => import_IconButton.IconButton
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(icon_button_exports);
|
|
24
|
+
var import_IconButton = require("./IconButton.js");
|
|
25
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
+
0 && (module.exports = {
|
|
27
|
+
IconButton
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/icon-button/index.ts"],"sourcesContent":["export { IconButton } from './IconButton';\nexport type { IconButtonProps } from './IconButton';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2B;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/icon-button/index.ts"],"sourcesContent":["export { IconButton } from './IconButton';\nexport type { IconButtonProps } from './IconButton';\n"],"mappings":"AAAA,SAAS,kBAAkB;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const iconTileVariants: (props?: ({
|
|
4
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type IconTileProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof iconTileVariants> & {
|
|
8
|
+
/** Optional count or status marker pinned to the tile's top-right corner. */
|
|
9
|
+
badge?: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Tinted square surface for an icon — feature bullets, status markers and
|
|
13
|
+
* empty-state accents. `badge` renders a small counter or dot over the
|
|
14
|
+
* corner; tone pairs follow the Alert convention (ink text on a tint).
|
|
15
|
+
*/
|
|
16
|
+
declare const IconTile: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
17
|
+
tone?: "default" | "primary" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
18
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
19
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
20
|
+
/** Optional count or status marker pinned to the tile's top-right corner. */
|
|
21
|
+
badge?: React.ReactNode;
|
|
22
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
23
|
+
export { IconTile, iconTileVariants };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var IconTile_exports = {};
|
|
30
|
+
__export(IconTile_exports, {
|
|
31
|
+
IconTile: () => IconTile,
|
|
32
|
+
iconTileVariants: () => iconTileVariants
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(IconTile_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
38
|
+
var import_cn = require("../../utils/cn.js");
|
|
39
|
+
const iconTileVariants = (0, import_class_variance_authority.cva)(
|
|
40
|
+
"relative inline-flex shrink-0 items-center justify-center rounded-lg [&_svg]:shrink-0",
|
|
41
|
+
{
|
|
42
|
+
variants: {
|
|
43
|
+
tone: {
|
|
44
|
+
default: "bg-muted text-muted-foreground",
|
|
45
|
+
primary: "bg-primary/10 text-primary-ink",
|
|
46
|
+
success: "bg-success/10 text-success-ink",
|
|
47
|
+
warning: "bg-warning/10 text-warning-ink",
|
|
48
|
+
info: "bg-info/10 text-info-ink",
|
|
49
|
+
destructive: "bg-destructive/10 text-destructive"
|
|
50
|
+
},
|
|
51
|
+
size: {
|
|
52
|
+
sm: "h-8 w-8 [&_svg]:h-4 [&_svg]:w-4",
|
|
53
|
+
md: "h-10 w-10 [&_svg]:h-5 [&_svg]:w-5",
|
|
54
|
+
lg: "h-12 w-12 [&_svg]:h-6 [&_svg]:w-6"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
defaultVariants: {
|
|
58
|
+
tone: "default",
|
|
59
|
+
size: "md"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
const IconTile = React.forwardRef(
|
|
64
|
+
({ className, tone, size, badge, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { ref, className: (0, import_cn.cn)(iconTileVariants({ tone, size }), className), ...props, children: [
|
|
65
|
+
children,
|
|
66
|
+
badge !== void 0 && badge !== null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "absolute -right-1.5 -top-1.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-semibold leading-none text-primary-foreground", children: badge })
|
|
67
|
+
] })
|
|
68
|
+
);
|
|
69
|
+
IconTile.displayName = "IconTile";
|
|
70
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
71
|
+
0 && (module.exports = {
|
|
72
|
+
IconTile,
|
|
73
|
+
iconTileVariants
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=IconTile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/icon-tile/IconTile.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst iconTileVariants = cva(\n 'relative inline-flex shrink-0 items-center justify-center rounded-lg [&_svg]:shrink-0',\n {\n variants: {\n tone: {\n default: 'bg-muted text-muted-foreground',\n primary: 'bg-primary/10 text-primary-ink',\n success: 'bg-success/10 text-success-ink',\n warning: 'bg-warning/10 text-warning-ink',\n info: 'bg-info/10 text-info-ink',\n destructive: 'bg-destructive/10 text-destructive',\n },\n size: {\n sm: 'h-8 w-8 [&_svg]:h-4 [&_svg]:w-4',\n md: 'h-10 w-10 [&_svg]:h-5 [&_svg]:w-5',\n lg: 'h-12 w-12 [&_svg]:h-6 [&_svg]:w-6',\n },\n },\n defaultVariants: {\n tone: 'default',\n size: 'md',\n },\n }\n);\n\nexport type IconTileProps = React.HTMLAttributes<HTMLSpanElement> &\n VariantProps<typeof iconTileVariants> & {\n /** Optional count or status marker pinned to the tile's top-right corner. */\n badge?: React.ReactNode;\n };\n\n/**\n * Tinted square surface for an icon — feature bullets, status markers and\n * empty-state accents. `badge` renders a small counter or dot over the\n * corner; tone pairs follow the Alert convention (ink text on a tint).\n */\nconst IconTile = React.forwardRef<HTMLSpanElement, IconTileProps>(\n ({ className, tone, size, badge, children, ...props }, ref) => (\n <span ref={ref} className={cn(iconTileVariants({ tone, size }), className)} {...props}>\n {children}\n {badge !== undefined && badge !== null && (\n <span className=\"absolute -right-1.5 -top-1.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-semibold leading-none text-primary-foreground\">\n {badge}\n </span>\n )}\n </span>\n )\n);\nIconTile.displayName = 'IconTile';\n\nexport { IconTile, iconTileVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA0CI;AA1CJ,YAAuB;AACvB,sCAAuC;AACvC,gBAAmB;AAEnB,MAAM,uBAAmB;AAAA,EACvB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,SAAS;AAAA,QACT,SAAS;AAAA,QACT,SAAS;AAAA,QACT,MAAM;AAAA,QACN,aAAa;AAAA,MACf;AAAA,MACA,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MACN;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAaA,MAAM,WAAW,MAAM;AAAA,EACrB,CAAC,EAAE,WAAW,MAAM,MAAM,OAAO,UAAU,GAAG,MAAM,GAAG,QACrD,6CAAC,UAAK,KAAU,eAAW,cAAG,iBAAiB,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,GAAI,GAAG,OAC7E;AAAA;AAAA,IACA,UAAU,UAAa,UAAU,QAChC,4CAAC,UAAK,WAAU,yKACb,iBACH;AAAA,KAEJ;AAEJ;AACA,SAAS,cAAc;","names":[]}
|