@krizaka/ui 3.63.0 → 3.63.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.
- package/dist/account-settings.js +1 -1
- package/dist/action-bar.js +4 -4
- package/dist/analysis-report.d.ts +274 -0
- package/dist/analysis-report.js +207 -0
- package/dist/analysis-report.js.map +1 -0
- package/dist/argument-card.d.ts +1 -1
- package/dist/argument-card.js +5 -5
- package/dist/badge.js +4 -34
- package/dist/badge.js.map +1 -1
- package/dist/blocks.css +99 -8
- package/dist/button.js +1 -1
- package/dist/captcha.js +1 -1
- package/dist/chunk-5PFCELGW.js +41 -0
- package/dist/chunk-5PFCELGW.js.map +1 -0
- package/dist/chunk-5RWHDX5J.js +37 -0
- package/dist/chunk-5RWHDX5J.js.map +1 -0
- package/dist/{chunk-5LANVCK7.js → chunk-BG5APGX6.js} +2 -2
- package/dist/{chunk-WOZP3JLW.js → chunk-DJ5ZPPWL.js} +1 -1
- package/dist/chunk-DJ5ZPPWL.js.map +1 -0
- package/dist/{chunk-UV4HBVH7.js → chunk-EB45EVPJ.js} +2 -2
- package/dist/{chunk-SJS6RJIT.js.map → chunk-EB45EVPJ.js.map} +1 -1
- package/dist/{chunk-6EAHUURY.js → chunk-GHAN7OOE.js} +2 -2
- package/dist/chunk-JT7ZKZT5.js +1 -0
- package/dist/chunk-JT7ZKZT5.js.map +1 -0
- package/dist/{chunk-3DHNN5V7.js → chunk-M3GEYLMR.js} +2 -2
- package/dist/{chunk-3DHNN5V7.js.map → chunk-M3GEYLMR.js.map} +1 -1
- package/dist/{chunk-7J2L4HOD.js → chunk-MTVX4RRF.js} +2 -2
- package/dist/{chunk-7J2L4HOD.js.map → chunk-MTVX4RRF.js.map} +1 -1
- package/dist/{chunk-YKEIOYJ5.js → chunk-NPMGYLJV.js} +1 -1
- package/dist/chunk-NPMGYLJV.js.map +1 -0
- package/dist/{chunk-HEKDKM5Y.js → chunk-QVHSV6RA.js} +1 -1
- package/dist/{chunk-7JG3VR4C.js → chunk-RCKXJEDQ.js} +5 -5
- package/dist/chunk-U4XTZMB7.js +103 -0
- package/dist/chunk-U4XTZMB7.js.map +1 -0
- package/dist/{chunk-SJS6RJIT.js → chunk-V7W4RLRW.js} +2 -2
- package/dist/{chunk-UV4HBVH7.js.map → chunk-V7W4RLRW.js.map} +1 -1
- package/dist/command.js +2 -2
- package/dist/confirm-button.js +1 -1
- package/dist/continue-prompt.js +1 -1
- package/dist/continue-prompt.js.map +1 -1
- package/dist/cover-hero.js +1 -1
- package/dist/data-table.js +2 -2
- package/dist/date-picker.d.ts +15 -15
- package/dist/dialog.js +2 -2
- package/dist/embed-facade.d.ts +37 -0
- package/dist/embed-facade.js +96 -0
- package/dist/embed-facade.js.map +1 -0
- package/dist/filter-bar.d.ts +3 -3
- package/dist/force-update-screen.js +1 -1
- package/dist/genui.js +2 -2
- package/dist/kind-config-editor.js +1 -1
- package/dist/language-switch.d.ts +9 -9
- package/dist/link-card.js +2 -2
- package/dist/maintenance-screen.js +1 -1
- package/dist/map.js +6 -0
- package/dist/map.js.map +1 -1
- package/dist/margin-layout.d.ts +71 -0
- package/dist/margin-layout.js +29 -0
- package/dist/margin-layout.js.map +1 -0
- package/dist/match-dialog.js +1 -1
- package/dist/media-grid.js +1 -1
- package/dist/meter.js +2 -1
- package/dist/native/map.js +6 -0
- package/dist/native/map.js.map +1 -1
- package/dist/native.d.ts +88 -2
- package/dist/native.js +1667 -1529
- package/dist/native.js.map +1 -1
- package/dist/nav-bar.js +1 -1
- package/dist/page-DPHDmDAQ.d.ts +131 -0
- package/dist/page-hero.js +4 -4
- package/dist/page.d.ts +7 -125
- package/dist/page.js +13 -1
- package/dist/page.js.map +1 -1
- package/dist/quota-meter.js +2 -1
- package/dist/quota-meter.js.map +1 -1
- package/dist/retro-tv.d.ts +6 -3
- package/dist/retro-tv.js +6 -5
- package/dist/retro-tv.js.map +1 -1
- package/dist/reviews.d.ts +49 -0
- package/dist/reviews.js +66 -0
- package/dist/reviews.js.map +1 -0
- package/dist/separator.d.ts +26 -3
- package/dist/separator.js +19 -1
- package/dist/separator.js.map +1 -1
- package/dist/service-card.d.ts +56 -63
- package/dist/service-card.js +49 -10
- package/dist/service-card.js.map +1 -1
- package/dist/settings-layout.js +1 -1
- package/dist/site-cahier.js +1 -1
- package/dist/specimen-tag.d.ts +15 -3
- package/dist/specimen-tag.js +4 -27
- package/dist/specimen-tag.js.map +1 -1
- package/dist/stat.d.ts +87 -5
- package/dist/stat.js +9 -53
- package/dist/stat.js.map +1 -1
- package/dist/sticky-action.d.ts +7 -2
- package/dist/sticky-action.js +24 -3
- package/dist/sticky-action.js.map +1 -1
- package/dist/theme.js +1 -1
- package/dist/update-prompt.js +1 -1
- package/dist/usage.d.ts +229 -0
- package/dist/usage.js +189 -0
- package/dist/usage.js.map +1 -0
- package/dist/vertical-video.js +1 -1
- package/dist/wall.d.ts +24 -12
- package/dist/wall.js +106 -43
- package/dist/wall.js.map +1 -1
- package/package.json +87 -8
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +1 -1
- package/registry/achievement.json +1 -1
- package/registry/action-bar.json +1 -1
- package/registry/activity-feed.json +1 -1
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/analysis-report.json +445 -0
- package/registry/anatomy-plate.json +1 -1
- package/registry/app-header.json +1 -1
- package/registry/app-shell.json +1 -1
- package/registry/argument-card.json +3 -3
- package/registry/audio-player.json +1 -1
- package/registry/auth-layout.json +1 -1
- package/registry/avatar.json +1 -1
- package/registry/badge.json +1 -1
- package/registry/bird-plate.json +1 -1
- package/registry/button.json +2 -2
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +1 -1
- package/registry/card.json +1 -1
- package/registry/catalogue-page.json +1 -1
- package/registry/changelog-page.json +1 -1
- package/registry/chapter.json +1 -1
- package/registry/chat.json +1 -1
- package/registry/checkbox.json +1 -1
- package/registry/chip-link.json +1 -1
- package/registry/chip-row.json +1 -1
- package/registry/chip.json +1 -1
- package/registry/choice-grid.json +1 -1
- package/registry/code-block.json +1 -1
- package/registry/combobox.json +1 -1
- package/registry/command.json +1 -1
- package/registry/comparison-table.json +1 -1
- package/registry/component-page.json +1 -1
- package/registry/confirm-button.json +1 -1
- package/registry/contact-page.json +1 -1
- package/registry/continue-prompt.json +1 -1
- package/registry/countdown.json +1 -1
- package/registry/cover-hero.json +1 -1
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +1 -1
- package/registry/data-table.json +1 -1
- package/registry/date-picker.json +1 -1
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +1 -1
- package/registry/detail-layout.json +1 -1
- package/registry/dialog.json +1 -1
- package/registry/docs-article-page.json +1 -1
- package/registry/docs-hub-page.json +1 -1
- package/registry/docs-layout.json +1 -1
- package/registry/docs-nav.json +1 -1
- package/registry/document-viewer.json +1 -1
- package/registry/doodle.json +1 -1
- package/registry/drop-overlay.json +1 -1
- package/registry/dropdown-menu.json +1 -1
- package/registry/elephant.json +2 -2
- package/registry/embed-facade.json +243 -0
- package/registry/empty-state.json +1 -1
- package/registry/engine-flow.json +1 -1
- package/registry/environment-notice.json +1 -1
- package/registry/error-page.json +1 -1
- package/registry/examples/analysis-report/document-validation.d.ts +4 -0
- package/registry/examples/analysis-report/document-validation.js +47 -0
- package/registry/examples/analysis-report/document-validation.tsx +29 -0
- package/registry/examples/analysis-report/native/document-validation.d.ts +4 -0
- package/registry/examples/analysis-report/native/document-validation.dark.png +0 -0
- package/registry/examples/analysis-report/native/document-validation.js +48 -0
- package/registry/examples/analysis-report/native/document-validation.light.png +0 -0
- package/registry/examples/analysis-report/native/document-validation.tsx +32 -0
- package/registry/examples/analysis-report/streaming.d.ts +4 -0
- package/registry/examples/analysis-report/streaming.js +42 -0
- package/registry/examples/analysis-report/streaming.tsx +23 -0
- package/registry/examples/embed-facade/tiktok.d.ts +4 -0
- package/registry/examples/embed-facade/tiktok.js +20 -0
- package/registry/examples/embed-facade/tiktok.tsx +16 -0
- package/registry/examples/embed-facade/youtube.d.ts +4 -0
- package/registry/examples/embed-facade/youtube.js +22 -0
- package/registry/examples/embed-facade/youtube.tsx +20 -0
- package/registry/examples/margin-layout/findings.d.ts +4 -0
- package/registry/examples/margin-layout/findings.js +15 -0
- package/registry/examples/margin-layout/findings.tsx +18 -0
- package/registry/examples/margin-layout/steps.d.ts +4 -0
- package/registry/examples/margin-layout/steps.js +15 -0
- package/registry/examples/margin-layout/steps.tsx +16 -0
- package/registry/examples/page/kraft.d.ts +4 -0
- package/registry/examples/page/kraft.js +14 -0
- package/registry/examples/page/kraft.tsx +12 -0
- package/registry/examples/page/papers.d.ts +4 -0
- package/registry/examples/page/papers.js +14 -0
- package/registry/examples/page/papers.tsx +13 -0
- package/registry/examples/retro-tv/facade.d.ts +4 -0
- package/registry/examples/retro-tv/facade.js +12 -0
- package/registry/examples/retro-tv/facade.tsx +13 -0
- package/registry/examples/reviews/card.d.ts +4 -0
- package/registry/examples/reviews/card.js +23 -0
- package/registry/examples/reviews/card.tsx +19 -0
- package/registry/examples/reviews/summary.d.ts +4 -0
- package/registry/examples/reviews/summary.js +23 -0
- package/registry/examples/reviews/summary.tsx +17 -0
- package/registry/examples/separator/hand.d.ts +4 -0
- package/registry/examples/separator/hand.js +19 -0
- package/registry/examples/separator/hand.tsx +16 -0
- package/registry/examples/service-card/index-card.d.ts +4 -0
- package/registry/examples/service-card/index-card.js +15 -0
- package/registry/examples/service-card/index-card.tsx +12 -0
- package/registry/examples/service-card/index-list.d.ts +4 -0
- package/registry/examples/service-card/index-list.js +14 -0
- package/registry/examples/service-card/index-list.tsx +11 -0
- package/registry/examples/specimen-tag/facts.d.ts +4 -0
- package/registry/examples/specimen-tag/facts.js +23 -0
- package/registry/examples/specimen-tag/facts.tsx +18 -0
- package/registry/examples/stat/strip.d.ts +4 -0
- package/registry/examples/stat/strip.js +25 -0
- package/registry/examples/stat/strip.tsx +25 -0
- package/registry/examples/sticky-action/hide-while-visible.d.ts +4 -0
- package/registry/examples/sticky-action/hide-while-visible.js +16 -0
- package/registry/examples/sticky-action/hide-while-visible.tsx +17 -0
- package/registry/examples/usage/credits-page.d.ts +4 -0
- package/registry/examples/usage/credits-page.js +45 -0
- package/registry/examples/usage/credits-page.tsx +40 -0
- package/registry/examples/usage/empty.d.ts +4 -0
- package/registry/examples/usage/empty.js +15 -0
- package/registry/examples/usage/empty.tsx +12 -0
- package/registry/examples/wall/brick.js +1 -1
- package/registry/examples/wall/brick.tsx +1 -1
- package/registry/examples/wall/composition-fr.js +1 -1
- package/registry/examples/wall/composition-fr.tsx +1 -1
- package/registry/examples/wall/composition.js +1 -1
- package/registry/examples/wall/composition.tsx +1 -1
- package/registry/examples/wall/pinned-note.js +2 -2
- package/registry/examples/wall/pinned-note.tsx +3 -2
- package/registry/examples/wall/plaster.js +1 -1
- package/registry/examples/wall/plaster.tsx +1 -1
- package/registry/examples/wall/ridge.js +1 -1
- package/registry/examples/wall/ridge.tsx +1 -1
- package/registry/examples/wall/shop-sign.js +5 -4
- package/registry/examples/wall/shop-sign.tsx +7 -4
- package/registry/examples/wall/zellige.js +1 -1
- package/registry/examples/wall/zellige.tsx +1 -1
- package/registry/field.json +1 -1
- package/registry/file-upload.json +1 -1
- package/registry/filter-bar.json +1 -1
- package/registry/flock.json +1 -1
- package/registry/footnote.json +1 -1
- package/registry/force-update-screen.json +1 -1
- package/registry/form.json +1 -1
- package/registry/gallery-page.json +1 -1
- package/registry/genui.json +1 -1
- package/registry/glossary-term.json +1 -1
- package/registry/glossary.json +1 -1
- package/registry/glow-card.json +1 -1
- package/registry/goal-gauge.json +1 -1
- package/registry/grade-stamp.json +1 -1
- package/registry/how-it-works-page.json +1 -1
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +184 -17
- package/registry/iso.json +1 -1
- package/registry/kanban.json +1 -1
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +1 -1
- package/registry/kpi-explained.json +1 -1
- package/registry/landing-page.json +1 -1
- package/registry/landscape.json +1 -1
- package/registry/language-switch.json +1 -1
- package/registry/legal-page.json +1 -1
- package/registry/link-card.json +1 -1
- package/registry/list.json +1 -1
- package/registry/loader.json +1 -1
- package/registry/longform-page.json +1 -1
- package/registry/maintenance-screen.json +1 -1
- package/registry/map.json +2 -2
- package/registry/margin-layout.json +200 -0
- package/registry/markdown.json +1 -1
- package/registry/marketing-layout.json +1 -1
- package/registry/marquee.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +1 -1
- package/registry/match-dialog.json +1 -1
- package/registry/media-capture.json +1 -1
- package/registry/media-gallery.json +1 -1
- package/registry/media-grid.json +1 -1
- package/registry/meta-row.json +1 -1
- package/registry/meter.json +1 -1
- package/registry/nav-bar.json +2 -2
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +1 -1
- package/registry/number-ticker.json +1 -1
- package/registry/opening-hours.json +1 -1
- package/registry/page-header.json +1 -1
- package/registry/page-hero.json +1 -1
- package/registry/page-index.json +1 -1
- package/registry/page.json +53 -11
- package/registry/pagination.json +1 -1
- package/registry/photo-grid.json +1 -1
- package/registry/pointer-light.json +1 -1
- package/registry/popover.json +1 -1
- package/registry/pricing-page.json +1 -1
- package/registry/product-page.json +1 -1
- package/registry/profile-card.json +1 -1
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +1 -1
- package/registry/quota-meter.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/rail-nav.json +2 -2
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +45 -29
- package/registry/reviews.json +361 -0
- package/registry/router.json +1 -1
- package/registry/scroll-stage.json +1 -1
- package/registry/search-field.json +1 -1
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +71 -6
- package/registry/service-card.json +55 -6
- package/registry/settings-layout.json +1 -1
- package/registry/showcase.json +1 -1
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +1 -1
- package/registry/site-footer.json +2 -2
- package/registry/sites.json +1 -1
- package/registry/skeleton.json +1 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +1 -1
- package/registry/slot-picker.json +1 -1
- package/registry/slot.json +1 -1
- package/registry/specimen-tag.json +57 -5
- package/registry/speed-lines.json +1 -1
- package/registry/spinner.json +1 -1
- package/registry/split-view.json +1 -1
- package/registry/stage-banner.json +1 -1
- package/registry/stat.json +61 -9
- package/registry/status-chip.json +1 -1
- package/registry/status-page.json +1 -1
- package/registry/step-progress.json +1 -1
- package/registry/step-showcase.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/sticky-action.json +27 -4
- package/registry/stuck.json +1 -1
- package/registry/swipe-deck.json +1 -1
- package/registry/switch.json +1 -1
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +1 -1
- package/registry/taped-photo.json +1 -1
- package/registry/terminal-replay.json +1 -1
- package/registry/text-style.json +1 -1
- package/registry/theme.json +1 -1
- package/registry/toast.json +1 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +1 -1
- package/registry/tree-view.json +1 -1
- package/registry/update-prompt.json +1 -1
- package/registry/upload-queue.json +1 -1
- package/registry/usage.json +542 -0
- package/registry/verified-badge.json +1 -1
- package/registry/versus-card.json +1 -1
- package/registry/vertical-video.json +1 -1
- package/registry/video-player.json +1 -1
- package/registry/video-trimmer.json +3 -3
- package/registry/virtual.json +1 -1
- package/registry/wall.json +128 -40
- package/registry/waveform.json +1 -1
- package/dist/chunk-WOZP3JLW.js.map +0 -1
- package/dist/chunk-YKEIOYJ5.js.map +0 -1
- /package/dist/{chunk-5LANVCK7.js.map → chunk-BG5APGX6.js.map} +0 -0
- /package/dist/{chunk-6EAHUURY.js.map → chunk-GHAN7OOE.js.map} +0 -0
- /package/dist/{chunk-HEKDKM5Y.js.map → chunk-QVHSV6RA.js.map} +0 -0
- /package/dist/{chunk-7JG3VR4C.js.map → chunk-RCKXJEDQ.js.map} +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
declare const marginLayoutStyles: tailwind_variants.TVReturnType<{
|
|
5
|
+
[key: string]: {
|
|
6
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
+
number?: tailwind_variants.ClassValue;
|
|
8
|
+
root?: tailwind_variants.ClassValue;
|
|
9
|
+
item?: tailwind_variants.ClassValue;
|
|
10
|
+
body?: tailwind_variants.ClassValue;
|
|
11
|
+
note?: tailwind_variants.ClassValue;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
} | {
|
|
15
|
+
[x: string]: {
|
|
16
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
17
|
+
number?: tailwind_variants.ClassValue;
|
|
18
|
+
root?: tailwind_variants.ClassValue;
|
|
19
|
+
item?: tailwind_variants.ClassValue;
|
|
20
|
+
body?: tailwind_variants.ClassValue;
|
|
21
|
+
note?: tailwind_variants.ClassValue;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
} | {}, {
|
|
25
|
+
root: string;
|
|
26
|
+
item: string;
|
|
27
|
+
number: string;
|
|
28
|
+
body: string;
|
|
29
|
+
note: string;
|
|
30
|
+
}, undefined, {
|
|
31
|
+
[key: string]: {
|
|
32
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
33
|
+
number?: tailwind_variants.ClassValue;
|
|
34
|
+
root?: tailwind_variants.ClassValue;
|
|
35
|
+
item?: tailwind_variants.ClassValue;
|
|
36
|
+
body?: tailwind_variants.ClassValue;
|
|
37
|
+
note?: tailwind_variants.ClassValue;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
} | {}, {
|
|
41
|
+
root: string;
|
|
42
|
+
item: string;
|
|
43
|
+
number: string;
|
|
44
|
+
body: string;
|
|
45
|
+
note: string;
|
|
46
|
+
}, tailwind_variants.TVReturnTypeLike<unknown, {
|
|
47
|
+
root: string;
|
|
48
|
+
item: string;
|
|
49
|
+
number: string;
|
|
50
|
+
body: string;
|
|
51
|
+
note: string;
|
|
52
|
+
}>>;
|
|
53
|
+
type MarginLayoutProps = Omit<React.ComponentProps<"ol">, "children"> & {
|
|
54
|
+
/** The `MarginItem`s, in reading order. */
|
|
55
|
+
children: React.ReactNode;
|
|
56
|
+
};
|
|
57
|
+
/** The list of numbered items. */
|
|
58
|
+
declare function MarginLayout({ className, children, ...props }: MarginLayoutProps): React.JSX.Element;
|
|
59
|
+
type MarginItemProps = Omit<React.ComponentProps<"li">, "children"> & {
|
|
60
|
+
/** The number shown in the left margin (« 1 », « 02 »). Decorative: the list already announces the position. */
|
|
61
|
+
number: React.ReactNode;
|
|
62
|
+
/** The note shown in the right margin from 64 rem, and under the item below it (the article cited, « See in the document »). */
|
|
63
|
+
note?: React.ReactNode;
|
|
64
|
+
/** The item's content. */
|
|
65
|
+
children: React.ReactNode;
|
|
66
|
+
};
|
|
67
|
+
/** One item: its number, its content and, optionally, its margin note. */
|
|
68
|
+
declare function MarginItem({ number, note, className, children, ...props }: MarginItemProps): React.JSX.Element;
|
|
69
|
+
|
|
70
|
+
export { MarginItem, MarginLayout, marginLayoutStyles };
|
|
71
|
+
export type { MarginItemProps, MarginLayoutProps };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// src/margin-layout/margin-layout.tsx
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
var marginLayoutStyles = tv({
|
|
5
|
+
slots: {
|
|
6
|
+
root: "m-0 flex list-none flex-col gap-8 p-0",
|
|
7
|
+
item: "grid grid-cols-[2.5rem_minmax(0,1fr)] gap-x-4 gap-y-2 lg:grid-cols-[4rem_minmax(0,1fr)_16rem] lg:gap-x-8",
|
|
8
|
+
number: "font-display text-2xl font-bold leading-none tabular-nums text-fg-accent lg:text-3xl",
|
|
9
|
+
body: "col-start-2 min-w-0 text-fg",
|
|
10
|
+
note: "col-start-2 min-w-0 border-l-2 border-border pl-3 text-sm text-fg-secondary lg:col-start-3 lg:row-start-1"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
function MarginLayout({ className, children, ...props }) {
|
|
14
|
+
return /* @__PURE__ */ jsx("ol", { className: marginLayoutStyles().root({ className }), ...props, children });
|
|
15
|
+
}
|
|
16
|
+
function MarginItem({ number, note, className, children, ...props }) {
|
|
17
|
+
const s = marginLayoutStyles();
|
|
18
|
+
return /* @__PURE__ */ jsxs("li", { className: s.item({ className }), ...props, children: [
|
|
19
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: s.number(), children: number }),
|
|
20
|
+
/* @__PURE__ */ jsx("div", { className: s.body(), children }),
|
|
21
|
+
note ? /* @__PURE__ */ jsx("div", { "data-slot": "note", className: s.note(), children: note }) : null
|
|
22
|
+
] });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
MarginItem,
|
|
26
|
+
MarginLayout,
|
|
27
|
+
marginLayoutStyles
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=margin-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/margin-layout/margin-layout.tsx"],"sourcesContent":["// Server-safe. Numbered items with margin notes for product reading pages: the number in the left margin, the note in the right\n// margin from 64 rem and folded under the item below. An ordered list, so the order a screen reader hears is number, text, note.\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nexport const marginLayoutStyles = tv({\n slots: {\n root: \"m-0 flex list-none flex-col gap-8 p-0\",\n item: \"grid grid-cols-[2.5rem_minmax(0,1fr)] gap-x-4 gap-y-2 lg:grid-cols-[4rem_minmax(0,1fr)_16rem] lg:gap-x-8\",\n number: \"font-display text-2xl font-bold leading-none tabular-nums text-fg-accent lg:text-3xl\",\n body: \"col-start-2 min-w-0 text-fg\",\n note: \"col-start-2 min-w-0 border-l-2 border-border pl-3 text-sm text-fg-secondary lg:col-start-3 lg:row-start-1\",\n },\n});\n\nexport type MarginLayoutProps = Omit<React.ComponentProps<\"ol\">, \"children\"> & {\n /** The `MarginItem`s, in reading order. */\n children: React.ReactNode;\n};\n\n/** The list of numbered items. */\nexport function MarginLayout({ className, children, ...props }: MarginLayoutProps) {\n return (\n <ol className={marginLayoutStyles().root({ className })} {...props}>\n {children}\n </ol>\n );\n}\n\nexport type MarginItemProps = Omit<React.ComponentProps<\"li\">, \"children\"> & {\n /** The number shown in the left margin (« 1 », « 02 »). Decorative: the list already announces the position. */\n number: React.ReactNode;\n /** The note shown in the right margin from 64 rem, and under the item below it (the article cited, « See in the document »). */\n note?: React.ReactNode;\n /** The item's content. */\n children: React.ReactNode;\n};\n\n/** One item: its number, its content and, optionally, its margin note. */\nexport function MarginItem({ number, note, className, children, ...props }: MarginItemProps) {\n const s = marginLayoutStyles();\n return (\n <li className={s.item({ className })} {...props}>\n <span aria-hidden className={s.number()}>\n {number}\n </span>\n <div className={s.body()}>{children}</div>\n {note ? <div data-slot=\"note\" className={s.note()}>{note}</div> : null}\n </li>\n );\n}\n"],"mappings":";AAGA,SAAS,UAAU;AAoBf,cAmBA,YAnBA;AAlBG,IAAM,qBAAqB,GAAG;AAAA,EACnC,OAAO;AAAA,IACL,MAAM;AAAA,IACN,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AACF,CAAC;AAQM,SAAS,aAAa,EAAE,WAAW,UAAU,GAAG,MAAM,GAAsB;AACjF,SACE,oBAAC,QAAG,WAAW,mBAAmB,EAAE,KAAK,EAAE,UAAU,CAAC,GAAI,GAAG,OAC1D,UACH;AAEJ;AAYO,SAAS,WAAW,EAAE,QAAQ,MAAM,WAAW,UAAU,GAAG,MAAM,GAAoB;AAC3F,QAAM,IAAI,mBAAmB;AAC7B,SACE,qBAAC,QAAG,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,GAAI,GAAG,OACxC;AAAA,wBAAC,UAAK,eAAW,MAAC,WAAW,EAAE,OAAO,GACnC,kBACH;AAAA,IACA,oBAAC,SAAI,WAAW,EAAE,KAAK,GAAI,UAAS;AAAA,IACnC,OAAO,oBAAC,SAAI,aAAU,QAAO,WAAW,EAAE,KAAK,GAAI,gBAAK,IAAS;AAAA,KACpE;AAEJ;","names":[]}
|
package/dist/match-dialog.js
CHANGED
package/dist/media-grid.js
CHANGED
package/dist/meter.js
CHANGED
package/dist/native/map.js
CHANGED
|
@@ -111,6 +111,9 @@ var themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Object.freeze
|
|
|
111
111
|
"paperTag": "#2d3932",
|
|
112
112
|
"paperTagEdge": "#586a5f",
|
|
113
113
|
"paperTagInk": "#e9eee7",
|
|
114
|
+
"paperDot": "rgba(217,232,222,0.16)",
|
|
115
|
+
"paperKraft": "#41392f",
|
|
116
|
+
"paperKraftInk": "#f3efe7",
|
|
114
117
|
"surfaceSheen": "rgba(255,255,255,0)",
|
|
115
118
|
"fillShade": "rgba(0,0,0,0.12)",
|
|
116
119
|
"edgeLight": "rgba(255,255,255,0)",
|
|
@@ -176,6 +179,9 @@ var themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Object.freeze
|
|
|
176
179
|
"paperTag": "#eadfc2",
|
|
177
180
|
"paperTagEdge": "#b4a274",
|
|
178
181
|
"paperTagInk": "#282620",
|
|
182
|
+
"paperDot": "rgba(69,109,161,0.3)",
|
|
183
|
+
"paperKraft": "#d6be9a",
|
|
184
|
+
"paperKraftInk": "#221911",
|
|
179
185
|
"surfaceSheen": "rgba(255,255,255,0)",
|
|
180
186
|
"fillShade": "rgba(0,0,0,0.12)",
|
|
181
187
|
"edgeLight": "rgba(255,255,255,0)",
|