@logicplanes/kaeso-ui 0.2.2 → 0.3.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/AGENTS.md +2 -0
- package/NOTICE.md +1 -1
- package/ai/component-guides.md +223 -24
- package/ai/component-registry.json +985 -91
- package/ai/component-registry.md +219 -52
- package/ai/icons.md +1 -1
- package/ai/tokens.md +7 -3
- package/dist/blocks/delete-resource.js +1 -1
- package/dist/blocks/pages.js +5 -5
- package/dist/blocks/resource-list.js +4 -4
- package/dist/chunks/app-frame-B9vrgwaE.js +220 -0
- package/dist/chunks/app-frame-B9vrgwaE.js.map +1 -0
- package/dist/chunks/{avatar-D2nJNbtC.js → avatar-DOzOhYJr.js} +2 -2
- package/dist/chunks/{avatar-D2nJNbtC.js.map → avatar-DOzOhYJr.js.map} +1 -1
- package/dist/chunks/{badge-Dkyhs0_j.js → badge-wUHlj7m3.js} +2 -2
- package/dist/chunks/{badge-Dkyhs0_j.js.map → badge-wUHlj7m3.js.map} +1 -1
- package/dist/chunks/{banner-DxGBPQ7p.js → banner-BBlNFHd-.js} +4 -4
- package/dist/chunks/{banner-DxGBPQ7p.js.map → banner-BBlNFHd-.js.map} +1 -1
- package/dist/chunks/{button-DQvoOxVQ.js → button-CAPyW-v8.js} +8 -8
- package/dist/chunks/{button-DQvoOxVQ.js.map → button-CAPyW-v8.js.map} +1 -1
- package/dist/chunks/{calendar-CN3YJi2k.js → calendar-CBeptQFq.js} +2 -2
- package/dist/chunks/{calendar-CN3YJi2k.js.map → calendar-CBeptQFq.js.map} +1 -1
- package/dist/chunks/{checkbox-BgRdbfCE.js → checkbox-C5yvSS7O.js} +3 -3
- package/dist/chunks/{checkbox-BgRdbfCE.js.map → checkbox-C5yvSS7O.js.map} +1 -1
- package/dist/chunks/{cn-CidVUKMm.js → cn-DUDmdLpZ.js} +3 -1
- package/dist/chunks/cn-DUDmdLpZ.js.map +1 -0
- package/dist/chunks/{code-BADhvsgC.js → code-C49NzHUQ.js} +2 -2
- package/dist/chunks/{code-BADhvsgC.js.map → code-C49NzHUQ.js.map} +1 -1
- package/dist/chunks/{code-block-DxtladFW.js → code-block-DREsvJ-g.js} +24 -21
- package/dist/chunks/code-block-DREsvJ-g.js.map +1 -0
- package/dist/chunks/{collapsible-Cw_1aem5.js → collapsible-CDQq1Y9x.js} +6 -6
- package/dist/chunks/collapsible-CDQq1Y9x.js.map +1 -0
- package/dist/chunks/combobox-DqtzsAKG.js +314 -0
- package/dist/chunks/combobox-DqtzsAKG.js.map +1 -0
- package/dist/chunks/command-list-D5k0uvkR.js +417 -0
- package/dist/chunks/command-list-D5k0uvkR.js.map +1 -0
- package/dist/chunks/{copy-button-DXxn-YYZ.js → copy-button-CNpEnS04.js} +6 -6
- package/dist/chunks/{copy-button-DXxn-YYZ.js.map → copy-button-CNpEnS04.js.map} +1 -1
- package/dist/chunks/{core-K960A4OT.js → core-CqLWVMDI.js} +36 -36
- package/dist/chunks/core-CqLWVMDI.js.map +1 -0
- package/dist/chunks/{date-popup-B-6xhb-1.js → date-popup-BgDz6SUj.js} +4 -4
- package/dist/chunks/{date-popup-B-6xhb-1.js.map → date-popup-BgDz6SUj.js.map} +1 -1
- package/dist/chunks/{de-CTAo4KL7.js → de-CkXZKaBD.js} +37 -5
- package/dist/chunks/de-CkXZKaBD.js.map +1 -0
- package/dist/chunks/dialog-truWH0qe.js +353 -0
- package/dist/chunks/dialog-truWH0qe.js.map +1 -0
- package/dist/chunks/{empty-DIbBpytW.js → empty-YXmSkKzR.js} +2 -2
- package/dist/chunks/{empty-DIbBpytW.js.map → empty-YXmSkKzR.js.map} +1 -1
- package/dist/chunks/{field-d8V94bvZ.js → field-BZriODU7.js} +3 -3
- package/dist/chunks/field-BZriODU7.js.map +1 -0
- package/dist/chunks/{icon-CeNQtobn.js → icon-BqujXDUc.js} +2 -2
- package/dist/chunks/{icon-CeNQtobn.js.map → icon-BqujXDUc.js.map} +1 -1
- package/dist/chunks/{icon-button-_x1RUphC.js → icon-button-D4O4puwH.js} +3 -3
- package/dist/chunks/{icon-button-_x1RUphC.js.map → icon-button-D4O4puwH.js.map} +1 -1
- package/dist/chunks/identity-CsZvAUwu.js +361 -0
- package/dist/chunks/identity-CsZvAUwu.js.map +1 -0
- package/dist/chunks/{input-CNTfI6YE.js → input-B0wtkcNh.js} +5 -5
- package/dist/chunks/{input-CNTfI6YE.js.map → input-B0wtkcNh.js.map} +1 -1
- package/dist/chunks/{input-group-CYA1MEoZ.js → input-group-BQLw06B0.js} +33 -27
- package/dist/chunks/input-group-BQLw06B0.js.map +1 -0
- package/dist/chunks/{inset-BLMdxX4I.js → inset-BnBj8NJV.js} +12 -2
- package/dist/chunks/inset-BnBj8NJV.js.map +1 -0
- package/dist/chunks/{iso-field-1qmg7TP8.js → iso-field-BUXgY1dB.js} +5 -3
- package/dist/chunks/{iso-field-1qmg7TP8.js.map → iso-field-BUXgY1dB.js.map} +1 -1
- package/dist/chunks/{json-view-B6KHIWzh.js → json-view-BkG2hTXV.js} +11 -10
- package/dist/chunks/{json-view-B6KHIWzh.js.map → json-view-BkG2hTXV.js.map} +1 -1
- package/dist/chunks/{kbd-CBcBDvqU.js → kbd-DqWmbr_e.js} +2 -2
- package/dist/chunks/{kbd-CBcBDvqU.js.map → kbd-DqWmbr_e.js.map} +1 -1
- package/dist/chunks/{link-vz9aV8WX.js → link-YMcxM-BZ.js} +4 -4
- package/dist/chunks/{link-vz9aV8WX.js.map → link-YMcxM-BZ.js.map} +1 -1
- package/dist/chunks/{link-provider---9JdxTg.js → link-provider-BsUxhZKG.js} +2 -2
- package/dist/chunks/{link-provider---9JdxTg.js.map → link-provider-BsUxhZKG.js.map} +1 -1
- package/dist/chunks/list-wXZIZo_s.js +492 -0
- package/dist/chunks/list-wXZIZo_s.js.map +1 -0
- package/dist/chunks/{loader-CUehxvSZ.js → loader-ENBh2Fbt.js} +2 -2
- package/dist/chunks/{loader-CUehxvSZ.js.map → loader-ENBh2Fbt.js.map} +1 -1
- package/dist/chunks/{markdown-5NyaHHfN.js → markdown-DWyxjsSY.js} +10 -10
- package/dist/chunks/{markdown-5NyaHHfN.js.map → markdown-DWyxjsSY.js.map} +1 -1
- package/dist/chunks/{menu-DyVPwgfF.js → menu-Bnfi9P3t.js} +7 -7
- package/dist/chunks/{menu-DyVPwgfF.js.map → menu-Bnfi9P3t.js.map} +1 -1
- package/dist/chunks/{meter-DWhyzFGQ.js → meter-DhTnem4k.js} +2 -2
- package/dist/chunks/{meter-DWhyzFGQ.js.map → meter-DhTnem4k.js.map} +1 -1
- package/dist/chunks/nav-sheet-QqNRHo-y.js +60 -0
- package/dist/chunks/nav-sheet-QqNRHo-y.js.map +1 -0
- package/dist/chunks/{nav-wordmark-DLkItdvo.js → nav-wordmark-DmbT1Aiw.js} +2 -2
- package/dist/chunks/{nav-wordmark-DLkItdvo.js.map → nav-wordmark-DmbT1Aiw.js.map} +1 -1
- package/dist/chunks/option-checkbox-Df7WhGn4.js +25 -0
- package/dist/chunks/option-checkbox-Df7WhGn4.js.map +1 -0
- package/dist/chunks/over-sheet-B8vzr_zU.js +8 -0
- package/dist/chunks/over-sheet-B8vzr_zU.js.map +1 -0
- package/dist/chunks/{page-header-CEPZzhRp.js → page-header-Ccnrspbp.js} +5 -5
- package/dist/chunks/{page-header-CEPZzhRp.js.map → page-header-Ccnrspbp.js.map} +1 -1
- package/dist/chunks/{pagination-CCMxQ5pH.js → pagination-CEmWZNjp.js} +5 -4
- package/dist/chunks/{pagination-CCMxQ5pH.js.map → pagination-CEmWZNjp.js.map} +1 -1
- package/dist/chunks/picker-popover-C4ElNk7t.js +102 -0
- package/dist/chunks/picker-popover-C4ElNk7t.js.map +1 -0
- package/dist/chunks/{popover-BE7VO-a4.js → popover-bjxg020P.js} +3 -3
- package/dist/chunks/{popover-BE7VO-a4.js.map → popover-bjxg020P.js.map} +1 -1
- package/dist/chunks/{radio-CUxbLCvD.js → radio-DwYcXAzv.js} +2 -2
- package/dist/chunks/{radio-CUxbLCvD.js.map → radio-DwYcXAzv.js.map} +1 -1
- package/dist/chunks/range-popup-CG9Jo5B7.js +128 -0
- package/dist/chunks/range-popup-CG9Jo5B7.js.map +1 -0
- package/dist/chunks/{release-art-DEc9HNa6.js → release-art-Ogl-L1Vh.js} +189 -183
- package/dist/chunks/release-art-Ogl-L1Vh.js.map +1 -0
- package/dist/chunks/{resize-motion-CMaidkwe.js → resize-motion-BWGMchyP.js} +27 -23
- package/dist/chunks/resize-motion-BWGMchyP.js.map +1 -0
- package/dist/chunks/{rights-BbiJ0AJB.js → rights-hMoaFasn.js} +12 -12
- package/dist/chunks/rights-hMoaFasn.js.map +1 -0
- package/dist/chunks/{section-DzOLLN1p.js → section-BsET7Fo-.js} +4 -4
- package/dist/chunks/{section-DzOLLN1p.js.map → section-BsET7Fo-.js.map} +1 -1
- package/dist/chunks/{segmented-MrinfDL8.js → segmented-DXKVF-nY.js} +4 -4
- package/dist/chunks/{segmented-MrinfDL8.js.map → segmented-DXKVF-nY.js.map} +1 -1
- package/dist/chunks/{select-Bc4kRiSG.js → select-Bbv2f5F8.js} +63 -80
- package/dist/chunks/select-Bbv2f5F8.js.map +1 -0
- package/dist/chunks/{separator-D5AzVFTS.js → separator-CpAUELNs.js} +2 -2
- package/dist/chunks/{separator-D5AzVFTS.js.map → separator-CpAUELNs.js.map} +1 -1
- package/dist/chunks/{sidebar-5IA18LuP.js → sidebar-Dey1ZfGt.js} +54 -51
- package/dist/chunks/sidebar-Dey1ZfGt.js.map +1 -0
- package/dist/chunks/{sidebar-menu-DRWRxcJ3.js → sidebar-menu-ct8IiL4z.js} +2 -2
- package/dist/chunks/{sidebar-menu-DRWRxcJ3.js.map → sidebar-menu-ct8IiL4z.js.map} +1 -1
- package/dist/chunks/{skeleton-kfuqdl1a.js → skeleton-BM797MAg.js} +2 -2
- package/dist/chunks/{skeleton-kfuqdl1a.js.map → skeleton-BM797MAg.js.map} +1 -1
- package/dist/chunks/{slider-DbhjJ3ML.js → slider-Ds-tqY-1.js} +2 -2
- package/dist/chunks/{slider-DbhjJ3ML.js.map → slider-Ds-tqY-1.js.map} +1 -1
- package/dist/chunks/{status-dot-BzMlYuMe.js → status-dot-BqVOlShY.js} +3 -3
- package/dist/chunks/{status-dot-BzMlYuMe.js.map → status-dot-BqVOlShY.js.map} +1 -1
- package/dist/chunks/{styles-Btvg2DCf.js → styles-CVJU9t9v.js} +2 -2
- package/dist/chunks/{styles-Btvg2DCf.js.map → styles-CVJU9t9v.js.map} +1 -1
- package/dist/chunks/{swap-text-BhPI8DOf.js → swap-text-Cica0pUr.js} +2 -2
- package/dist/chunks/{swap-text-BhPI8DOf.js.map → swap-text-Cica0pUr.js.map} +1 -1
- package/dist/chunks/{switch-XMY_CQE-.js → switch-CSKMEomo.js} +3 -3
- package/dist/chunks/{switch-XMY_CQE-.js.map → switch-CSKMEomo.js.map} +1 -1
- package/dist/chunks/{table-DYKa86af.js → table-D-36EM7f.js} +2 -2
- package/dist/chunks/{table-DYKa86af.js.map → table-D-36EM7f.js.map} +1 -1
- package/dist/chunks/{tag-Dg89uYpV.js → tag-CwDKXVHj.js} +4 -4
- package/dist/chunks/{tag-Dg89uYpV.js.map → tag-CwDKXVHj.js.map} +1 -1
- package/dist/chunks/{text--5MKh2G4.js → text-Dvvgg5Jt.js} +3 -3
- package/dist/chunks/{text--5MKh2G4.js.map → text-Dvvgg5Jt.js.map} +1 -1
- package/dist/chunks/{textarea-Cj8iR82R.js → textarea-2d373OyU.js} +35 -31
- package/dist/chunks/textarea-2d373OyU.js.map +1 -0
- package/dist/chunks/timeseries-LRDAZHV0.js +339 -0
- package/dist/chunks/timeseries-LRDAZHV0.js.map +1 -0
- package/dist/chunks/{toolbar-Dw3uxpsE.js → toolbar-nVLFWH2i.js} +3 -3
- package/dist/chunks/{toolbar-Dw3uxpsE.js.map → toolbar-nVLFWH2i.js.map} +1 -1
- package/dist/chunks/{tooltip-DEbCCsru.js → tooltip-S1DmyLVl.js} +4 -4
- package/dist/chunks/{tooltip-DEbCCsru.js.map → tooltip-S1DmyLVl.js.map} +1 -1
- package/dist/chunks/{tooltip-root-DRd4ciUv.js → tooltip-root-vjylFUqw.js} +4 -4
- package/dist/chunks/{tooltip-root-DRd4ciUv.js.map → tooltip-root-vjylFUqw.js.map} +1 -1
- package/dist/chunks/{virtual-rows-BZe49bKi.js → virtual-rows-yAMjeAwj.js} +4 -3
- package/dist/chunks/virtual-rows-yAMjeAwj.js.map +1 -0
- package/dist/chunks/{zh-CN-C7GmVswt.js → zh-CN-CqEA4PCM.js} +37 -5
- package/dist/chunks/zh-CN-CqEA4PCM.js.map +1 -0
- package/dist/components/app-frame.js +2 -2
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/button-group.js +33 -32
- package/dist/components/button-group.js.map +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/charts/bar.js +34 -31
- package/dist/components/charts/bar.js.map +1 -1
- package/dist/components/charts/donut.js +2 -2
- package/dist/components/charts/gauge.js +2 -2
- package/dist/components/charts/heatmap.js +1 -1
- package/dist/components/charts/sankey.js +2 -2
- package/dist/components/charts/sparkline.js +1 -1
- package/dist/components/charts/timeseries.js +1 -255
- package/dist/components/charts.js +3 -3
- package/dist/components/checkbox.js +1 -1
- package/dist/components/code-block.js +2 -2
- package/dist/components/code.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-list.js +4 -0
- package/dist/components/command-palette.js +120 -171
- package/dist/components/command-palette.js.map +1 -1
- package/dist/components/copy-button.js +1 -1
- package/dist/components/data-table.js +251 -193
- package/dist/components/data-table.js.map +1 -1
- package/dist/components/date-picker.js +6 -6
- package/dist/components/dialog.js +7 -9
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/display-options.js +67 -53
- package/dist/components/display-options.js.map +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/filter-chip.js +138 -63
- package/dist/components/filter-chip.js.map +1 -1
- package/dist/components/filter-row.js +2 -2
- package/dist/components/flow.js +2 -2
- package/dist/components/heading.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/input.js +56 -54
- package/dist/components/input.js.map +1 -1
- package/dist/components/kaeso/conversation.js +88 -79
- package/dist/components/kaeso/conversation.js.map +1 -1
- package/dist/components/kaeso/identity.js +1 -1
- package/dist/components/kaeso/moments.js +8 -8
- package/dist/components/kaeso/moments.js.map +1 -1
- package/dist/components/kaeso/rights.js +1 -1
- package/dist/components/kaeso/usage.js +6 -6
- package/dist/components/kaeso/usage.js.map +1 -1
- package/dist/components/kaeso.js +212 -84
- package/dist/components/kaeso.js.map +1 -1
- package/dist/components/kbd.js +1 -1
- package/dist/components/key-value.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/loader.js +2 -2
- package/dist/components/logo.js +2 -2
- package/dist/components/markdown.js +1 -1
- package/dist/components/menu.js +2 -2
- package/dist/components/meter.js +1 -1
- package/dist/components/page-header.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/playground.js +654 -381
- package/dist/components/playground.js.map +1 -1
- package/dist/components/popover.js +2 -2
- package/dist/components/qr-code.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/release-art.js +1 -1
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/section.js +1 -1
- package/dist/components/segmented.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/separator.js +1 -1
- package/dist/components/settings.js +3 -3
- package/dist/components/sheet.js +69 -52
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/stat.js +88 -74
- package/dist/components/stat.js.map +1 -1
- package/dist/components/status-dot.js +1 -1
- package/dist/components/surface.js +1 -1
- package/dist/components/swap-text.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +48 -49
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/theme-image.js +1 -1
- package/dist/components/theme-menu.js +2 -2
- package/dist/components/theme-select.js +1 -1
- package/dist/components/timeline.js +1 -1
- package/dist/components/toast.js +4 -4
- package/dist/components/toc.js +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/visually-hidden.js +1 -1
- package/dist/format.js +87 -50
- package/dist/format.js.map +1 -1
- package/dist/i18n-provider.js +1 -1
- package/dist/index.js +115 -112
- package/dist/kaeso.css +20 -7
- package/dist/styles.css +1 -1
- package/dist/types/components/charts/bar.d.ts +6 -0
- package/dist/types/components/charts/core.d.ts +2 -2
- package/dist/types/components/charts/docs.d.ts +7 -0
- package/dist/types/components/charts/time-axis.d.ts +5 -0
- package/dist/types/components/charts/timeseries.d.ts +9 -0
- package/dist/types/components/code-block/highlighter.d.ts +2 -0
- package/dist/types/components/combobox/combobox.d.ts +2 -0
- package/dist/types/components/combobox/docs.d.ts +2 -4
- package/dist/types/components/command-list/command-list.d.ts +84 -0
- package/dist/types/components/command-list/docs.d.ts +52 -0
- package/dist/types/components/command-list/index.d.ts +3 -0
- package/dist/types/components/command-list/match.d.ts +1 -0
- package/dist/types/components/command-list/picker-popover.d.ts +44 -0
- package/dist/types/components/data-table/data-table.d.ts +3 -2
- package/dist/types/components/data-table/docs.d.ts +1 -0
- package/dist/types/components/date-picker/docs.d.ts +0 -6
- package/dist/types/components/dialog/dialog.d.ts +24 -0
- package/dist/types/components/dialog/docs.d.ts +4 -0
- package/dist/types/components/display-options/display-options.d.ts +1 -0
- package/dist/types/components/filter-chip/docs.d.ts +4 -0
- package/dist/types/components/filter-chip/filter-chip.d.ts +7 -0
- package/dist/types/components/input/docs.d.ts +2 -12
- package/dist/types/components/input/number-input.d.ts +1 -0
- package/dist/types/components/input/tag-input.d.ts +1 -0
- package/dist/types/components/kaeso/docs.d.ts +34 -0
- package/dist/types/components/kaeso/identity.d.ts +10 -1
- package/dist/types/components/kaeso/index.d.ts +1 -0
- package/dist/types/components/kaeso/provider-marks.d.ts +5 -1
- package/dist/types/components/kaeso/provider-picker.d.ts +42 -0
- package/dist/types/components/list/docs.d.ts +2 -0
- package/dist/types/components/list/list.d.ts +2 -0
- package/dist/types/components/menu/styles.d.ts +1 -1
- package/dist/types/components/playground/docs.d.ts +32 -0
- package/dist/types/components/playground/index.d.ts +1 -0
- package/dist/types/components/playground/model-picker.d.ts +39 -4
- package/dist/types/components/playground/reasoning.d.ts +29 -0
- package/dist/types/components/playground/response-view.d.ts +7 -1
- package/dist/types/components/release-art/docs.d.ts +1 -0
- package/dist/types/components/release-art/release-art.d.ts +1 -0
- package/dist/types/components/select/docs.d.ts +0 -2
- package/dist/types/components/select/option-checkbox.d.ts +1 -0
- package/dist/types/components/sidebar/sidebar.d.ts +1 -0
- package/dist/types/components/stat/docs.d.ts +1 -0
- package/dist/types/components/stat/stat.d.ts +1 -0
- package/dist/types/format/index.d.ts +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/inset.d.ts +5 -0
- package/dist/types/utils/over-sheet.d.ts +1 -0
- package/dist/types/utils/restore-focus.d.ts +1 -1
- package/dist/utils.js +4 -4
- package/foundations/layout.md +45 -0
- package/foundations/writing.md +1 -0
- package/package.json +2 -2
- package/dist/chunks/app-frame-BXh-06HL.js +0 -214
- package/dist/chunks/app-frame-BXh-06HL.js.map +0 -1
- package/dist/chunks/cn-CidVUKMm.js.map +0 -1
- package/dist/chunks/code-block-DxtladFW.js.map +0 -1
- package/dist/chunks/collapsible-Cw_1aem5.js.map +0 -1
- package/dist/chunks/combobox-D30Wt11R.js +0 -291
- package/dist/chunks/combobox-D30Wt11R.js.map +0 -1
- package/dist/chunks/core-K960A4OT.js.map +0 -1
- package/dist/chunks/de-CTAo4KL7.js.map +0 -1
- package/dist/chunks/dialog-LNKgPEsV.js +0 -319
- package/dist/chunks/dialog-LNKgPEsV.js.map +0 -1
- package/dist/chunks/field-d8V94bvZ.js.map +0 -1
- package/dist/chunks/field-press-DwzBFafd.js +0 -10
- package/dist/chunks/field-press-DwzBFafd.js.map +0 -1
- package/dist/chunks/identity-BtZC_d_Q.js +0 -342
- package/dist/chunks/identity-BtZC_d_Q.js.map +0 -1
- package/dist/chunks/input-group-CYA1MEoZ.js.map +0 -1
- package/dist/chunks/inset-BLMdxX4I.js.map +0 -1
- package/dist/chunks/list-CzaiyNja.js +0 -483
- package/dist/chunks/list-CzaiyNja.js.map +0 -1
- package/dist/chunks/nav-sheet-BIErlV74.js +0 -58
- package/dist/chunks/nav-sheet-BIErlV74.js.map +0 -1
- package/dist/chunks/range-popup-DGOnGGag.js +0 -111
- package/dist/chunks/range-popup-DGOnGGag.js.map +0 -1
- package/dist/chunks/release-art-DEc9HNa6.js.map +0 -1
- package/dist/chunks/resize-motion-CMaidkwe.js.map +0 -1
- package/dist/chunks/rights-BbiJ0AJB.js.map +0 -1
- package/dist/chunks/select-Bc4kRiSG.js.map +0 -1
- package/dist/chunks/sidebar-5IA18LuP.js.map +0 -1
- package/dist/chunks/textarea-Cj8iR82R.js.map +0 -1
- package/dist/chunks/virtual-rows-BZe49bKi.js.map +0 -1
- package/dist/chunks/zh-CN-C7GmVswt.js.map +0 -1
- package/dist/components/charts/timeseries.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./cn-
|
|
3
|
-
import { createElement as t, forwardRef as n, useId as r, useMemo as i } from "react";
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { art as
|
|
2
|
+
import { t as e } from "./cn-DUDmdLpZ.js";
|
|
3
|
+
import { createElement as t, forwardRef as n, useId as r, useMemo as i, useState as a } from "react";
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
import { art as c, font as l } from "@logicplanes/kaeso-tokens";
|
|
6
6
|
//#region src/components/release-art/drawing.ts
|
|
7
|
-
var
|
|
7
|
+
var u = [
|
|
8
8
|
"bauhaus",
|
|
9
9
|
"albers",
|
|
10
10
|
"stripes",
|
|
@@ -13,7 +13,7 @@ var l = [
|
|
|
13
13
|
"arcs",
|
|
14
14
|
"phyllotaxis",
|
|
15
15
|
"spiro"
|
|
16
|
-
],
|
|
16
|
+
], d = {
|
|
17
17
|
banner: {
|
|
18
18
|
w: 640,
|
|
19
19
|
h: 360
|
|
@@ -22,16 +22,16 @@ var l = [
|
|
|
22
22
|
w: 840,
|
|
23
23
|
h: 360
|
|
24
24
|
}
|
|
25
|
-
},
|
|
26
|
-
rx:
|
|
27
|
-
ry:
|
|
25
|
+
}, f = 40, p = {
|
|
26
|
+
rx: f * 7.5,
|
|
27
|
+
ry: f * 7.5
|
|
28
28
|
};
|
|
29
|
-
function
|
|
29
|
+
function m(e) {
|
|
30
30
|
let t = 2166136261;
|
|
31
31
|
for (let n = 0; n < e.length; n++) t ^= e.charCodeAt(n), t = Math.imul(t, 16777619);
|
|
32
32
|
return t >>> 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function h(e) {
|
|
35
35
|
let t = e >>> 0;
|
|
36
36
|
return () => {
|
|
37
37
|
t = t + 1831565813 >>> 0;
|
|
@@ -39,53 +39,53 @@ function m(e) {
|
|
|
39
39
|
return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function g(e) {
|
|
43
43
|
if (typeof e != "object" || !e) return !1;
|
|
44
44
|
let t = e;
|
|
45
|
-
return t.version === 1 && typeof t.seed == "number" && Number.isInteger(t.seed) && t.seed >= 0 && t.seed <= 4294967295 && typeof t.style == "string" &&
|
|
45
|
+
return t.version === 1 && typeof t.seed == "number" && Number.isInteger(t.seed) && t.seed >= 0 && t.seed <= 4294967295 && typeof t.style == "string" && u.includes(t.style) && typeof t.palette == "number" && Number.isInteger(t.palette) && t.palette >= 0 && t.palette < c.palettes.length;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function _(e = Math.random) {
|
|
48
48
|
let t = (t) => Math.min(t - 1, Math.floor(e() * t));
|
|
49
49
|
return {
|
|
50
50
|
version: 1,
|
|
51
51
|
seed: Math.min(4294967295, Math.floor(e() * 4294967296)),
|
|
52
|
-
style:
|
|
53
|
-
palette: t(
|
|
52
|
+
style: u[t(u.length)] ?? "bauhaus",
|
|
53
|
+
palette: t(c.palettes.length)
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
let n = e.slice(-3), r =
|
|
58
|
-
for (; a.has(
|
|
56
|
+
function v(e, t = Math.random) {
|
|
57
|
+
let n = e.slice(-3), r = u.filter((e) => !n.some((t) => t.style === e)), i = c.palettes.map((e, t) => t).filter((t) => !e.slice(-4).some((e) => e.palette === t)), a = new Set(e.map((e) => e.seed)), o = (e) => e[Math.min(e.length - 1, Math.floor(t() * e.length))], s = Math.min(4294967295, Math.floor(t() * 4294967296));
|
|
58
|
+
for (; a.has(s);) s = s + 1 >>> 0;
|
|
59
59
|
return {
|
|
60
60
|
version: 1,
|
|
61
|
-
seed:
|
|
61
|
+
seed: s,
|
|
62
62
|
style: o(r) ?? "bauhaus",
|
|
63
63
|
palette: o(i) ?? 0
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
let t =
|
|
66
|
+
function y(e) {
|
|
67
|
+
let t = m(e);
|
|
68
68
|
return {
|
|
69
69
|
version: 1,
|
|
70
70
|
seed: t,
|
|
71
|
-
style:
|
|
72
|
-
palette: (t >>> 8) %
|
|
71
|
+
style: u[t % u.length] ?? "bauhaus",
|
|
72
|
+
palette: (t >>> 8) % c.palettes.length
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var b = (e) => Math.round(e * 100) / 100, x = (e, t, n) => n ? {
|
|
76
76
|
tag: e,
|
|
77
77
|
attrs: t,
|
|
78
78
|
children: n
|
|
79
79
|
} : {
|
|
80
80
|
tag: e,
|
|
81
81
|
attrs: t
|
|
82
|
-
},
|
|
83
|
-
let n = (e.h - t) /
|
|
84
|
-
return n >= 1 ? 0 :
|
|
85
|
-
},
|
|
86
|
-
function
|
|
87
|
-
let o = [], s = e.int(0, 7), c = `rotate(${e.int(0, 3) * 90} ${
|
|
88
|
-
e.chance(.55) && o.push(
|
|
82
|
+
}, S = (e, t, n) => (t / p.rx) ** 2 + ((e.h - n) / p.ry) ** 2 < 1, C = (e, t) => {
|
|
83
|
+
let n = (e.h - t) / p.ry;
|
|
84
|
+
return n >= 1 ? 0 : p.rx * Math.sqrt(1 - n * n);
|
|
85
|
+
}, w = (e, t) => x("g", { mask: `url(#${e.id("clear")})` }, t);
|
|
86
|
+
function T(e, t, n, r, i, a) {
|
|
87
|
+
let o = [], s = e.int(0, 7), c = `rotate(${e.int(0, 3) * 90} ${b(t + r / 2)} ${b(n + r / 2)})`;
|
|
88
|
+
e.chance(.55) && o.push(x("rect", {
|
|
89
89
|
x: t,
|
|
90
90
|
y: n,
|
|
91
91
|
width: r,
|
|
@@ -95,21 +95,21 @@ function w(e, t, n, r, i, a) {
|
|
|
95
95
|
let l = o.length ? a : i;
|
|
96
96
|
switch (s) {
|
|
97
97
|
case 0:
|
|
98
|
-
o.push(
|
|
98
|
+
o.push(x("path", {
|
|
99
99
|
d: `M${t} ${n}L${t + r} ${n}A${r} ${r} 0 0 1 ${t} ${n + r}Z`,
|
|
100
100
|
fill: l,
|
|
101
101
|
transform: c
|
|
102
102
|
}));
|
|
103
103
|
break;
|
|
104
104
|
case 1:
|
|
105
|
-
o.push(
|
|
105
|
+
o.push(x("path", {
|
|
106
106
|
d: `M${t} ${n + r}A${r / 2} ${r / 2} 0 0 1 ${t + r} ${n + r}Z`,
|
|
107
107
|
fill: l,
|
|
108
108
|
transform: c
|
|
109
109
|
}));
|
|
110
110
|
break;
|
|
111
111
|
case 2:
|
|
112
|
-
o.push(
|
|
112
|
+
o.push(x("circle", {
|
|
113
113
|
cx: t + r / 2,
|
|
114
114
|
cy: n + r / 2,
|
|
115
115
|
r: r / 2,
|
|
@@ -117,14 +117,14 @@ function w(e, t, n, r, i, a) {
|
|
|
117
117
|
}));
|
|
118
118
|
break;
|
|
119
119
|
case 3:
|
|
120
|
-
o.push(
|
|
120
|
+
o.push(x("path", {
|
|
121
121
|
d: `M${t} ${n}L${t + r} ${n + r}L${t} ${n + r}Z`,
|
|
122
122
|
fill: l,
|
|
123
123
|
transform: c
|
|
124
124
|
}));
|
|
125
125
|
break;
|
|
126
126
|
case 4:
|
|
127
|
-
o.push(
|
|
127
|
+
o.push(x("circle", {
|
|
128
128
|
cx: t + r / 2,
|
|
129
129
|
cy: n + r / 2,
|
|
130
130
|
r: r / 4,
|
|
@@ -132,7 +132,7 @@ function w(e, t, n, r, i, a) {
|
|
|
132
132
|
}));
|
|
133
133
|
break;
|
|
134
134
|
case 5:
|
|
135
|
-
for (let e = 0; e < 3; e++) o.push(
|
|
135
|
+
for (let e = 0; e < 3; e++) o.push(x("rect", {
|
|
136
136
|
x: t + e * r / 3,
|
|
137
137
|
y: n,
|
|
138
138
|
width: r / 6,
|
|
@@ -142,17 +142,17 @@ function w(e, t, n, r, i, a) {
|
|
|
142
142
|
}));
|
|
143
143
|
break;
|
|
144
144
|
case 6:
|
|
145
|
-
o.push(
|
|
145
|
+
o.push(x("path", {
|
|
146
146
|
d: `M${t} ${n}L${t + r} ${n}L${t + r / 2} ${n + r / 2}Z`,
|
|
147
147
|
fill: l,
|
|
148
148
|
transform: c
|
|
149
|
-
})), o.push(
|
|
149
|
+
})), o.push(x("path", {
|
|
150
150
|
d: `M${t} ${n + r}L${t + r} ${n + r}L${t + r / 2} ${n + r / 2}Z`,
|
|
151
151
|
fill: l,
|
|
152
152
|
transform: c
|
|
153
153
|
}));
|
|
154
154
|
break;
|
|
155
|
-
default: o.push(
|
|
155
|
+
default: o.push(x("path", {
|
|
156
156
|
d: `M${t} ${n}A${r} ${r} 0 0 1 ${t + r} ${n + r}L${t} ${n + r}Z`,
|
|
157
157
|
fill: l,
|
|
158
158
|
transform: c
|
|
@@ -160,8 +160,8 @@ function w(e, t, n, r, i, a) {
|
|
|
160
160
|
}
|
|
161
161
|
return o;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
let t = /* @__PURE__ */ new Set(), n = (e, t) => `${e},${t}`, r = (t, n) =>
|
|
163
|
+
function E(e) {
|
|
164
|
+
let t = /* @__PURE__ */ new Set(), n = (e, t) => `${e},${t}`, r = (t, n) => S(e, t * f, (n + 1) * f), i = [], a = e.int(2, 4);
|
|
165
165
|
for (let o = 0; o < a; o++) {
|
|
166
166
|
let a = e.int(2, 3);
|
|
167
167
|
for (let o = 0; o < 20; o++) {
|
|
@@ -170,7 +170,7 @@ function T(e) {
|
|
|
170
170
|
if (!c) continue;
|
|
171
171
|
for (let e = 0; e < a; e++) for (let r = 0; r < a; r++) t.add(n(o + e, s + r));
|
|
172
172
|
let l = e.int(0, 3);
|
|
173
|
-
i.push(...
|
|
173
|
+
i.push(...T(e, o * f, s * f, a * f, e.color(l), e.color(l + e.int(1, 3))));
|
|
174
174
|
break;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -178,12 +178,12 @@ function T(e) {
|
|
|
178
178
|
for (let a = 0; a < e.cols; a++) for (let s = 0; s < e.rows; s++) {
|
|
179
179
|
if (t.has(n(a, s)) || r(a, s) || !e.chance(o)) continue;
|
|
180
180
|
let c = e.int(0, 3);
|
|
181
|
-
i.push(...
|
|
181
|
+
i.push(...T(e, a * f, s * f, f, e.color(c), e.color(c + e.int(1, 3))));
|
|
182
182
|
}
|
|
183
183
|
return i;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
let t = (e.h - 240) / 2, n =
|
|
185
|
+
function D(e) {
|
|
186
|
+
let t = (e.h - 240) / 2, n = p.rx - f / 2, r = e.w - t - 240, i = n + Math.round(e.next() * Math.max(0, r - n) / (f / 2)) * (f / 2), a = e.int(3, 4), o = [
|
|
187
187
|
0,
|
|
188
188
|
1,
|
|
189
189
|
2,
|
|
@@ -193,7 +193,7 @@ function E(e) {
|
|
|
193
193
|
let n = Math.floor(e.next() * (t + 1));
|
|
194
194
|
[o[t], o[n]] = [o[n] ?? n, o[t] ?? t];
|
|
195
195
|
}
|
|
196
|
-
return Array.from({ length: a }, (n, r) =>
|
|
196
|
+
return Array.from({ length: a }, (n, r) => x("rect", {
|
|
197
197
|
x: i + 24 * r,
|
|
198
198
|
y: t + 36 * r,
|
|
199
199
|
width: 240 - 48 * r,
|
|
@@ -201,21 +201,21 @@ function E(e) {
|
|
|
201
201
|
fill: e.color(o[r] ?? r)
|
|
202
202
|
}));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function O(e, t, n, r) {
|
|
205
205
|
let i = Math.hypot(e.w, e.h), a = [], o = -i, s = 0;
|
|
206
206
|
for (; o < i;) {
|
|
207
|
-
let t = n[s % n.length] ??
|
|
208
|
-
a.push(
|
|
209
|
-
x:
|
|
210
|
-
y:
|
|
207
|
+
let t = n[s % n.length] ?? f;
|
|
208
|
+
a.push(x("rect", {
|
|
209
|
+
x: b(o),
|
|
210
|
+
y: b(-i),
|
|
211
211
|
width: t,
|
|
212
|
-
height:
|
|
212
|
+
height: b(i * 2),
|
|
213
213
|
fill: e.color(s + r)
|
|
214
214
|
})), o += t, s += 1;
|
|
215
215
|
}
|
|
216
|
-
return
|
|
216
|
+
return x("g", { transform: `translate(${e.w / 2} ${e.h / 2}) rotate(${t})` }, a);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function k(e) {
|
|
219
219
|
let t = [
|
|
220
220
|
0,
|
|
221
221
|
90,
|
|
@@ -223,40 +223,40 @@ function O(e) {
|
|
|
223
223
|
-45,
|
|
224
224
|
30,
|
|
225
225
|
-60
|
|
226
|
-
][e.int(0, 5)] ?? 0, n = Array.from({ length: e.int(5, 9) }, () =>
|
|
226
|
+
][e.int(0, 5)] ?? 0, n = Array.from({ length: e.int(5, 9) }, () => f / 2 * e.int(1, 5)), r = e.id("disc"), i = f * e.int(2, 3) + f / 2, a = f * e.int(Math.ceil((p.rx + i) / f), e.cols - 2), o = f * e.int(3, e.rows - 3);
|
|
227
227
|
return [
|
|
228
|
-
|
|
228
|
+
x("defs", {}, [x("clipPath", { id: r }, [x("circle", {
|
|
229
229
|
cx: a,
|
|
230
230
|
cy: o,
|
|
231
231
|
r: i
|
|
232
232
|
})])]),
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
w(e, [O(e, t, n, 0)]),
|
|
234
|
+
x("g", { clipPath: `url(#${r})` }, [x("rect", {
|
|
235
235
|
width: e.w,
|
|
236
236
|
height: e.h,
|
|
237
237
|
fill: e.ground
|
|
238
|
-
}),
|
|
238
|
+
}), O(e, t + 90, n, 1)])
|
|
239
239
|
];
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
let t = [], n = e.int(14, 18), r =
|
|
241
|
+
function A(e) {
|
|
242
|
+
let t = [], n = e.int(14, 18), r = f * 2.5, i = (e.h - f - r) / (n - 1), a = e.w * e.between(.58, .74), o = e.w * e.between(.09, .14), s = e.chance(.6) ? e.int(2, n - 3) : -1;
|
|
243
243
|
for (let c = 0; c < n; c++) {
|
|
244
244
|
let n = r + c * i, l = Array.from({ length: e.int(3, 5) }, () => ({
|
|
245
245
|
x: a + e.between(-1.2, 1.2) * o,
|
|
246
246
|
h: e.between(.3, 1),
|
|
247
247
|
s: e.between(9, 22)
|
|
248
|
-
})), u = [e.between(0, 6.28), e.between(0, 6.28)],
|
|
249
|
-
for (let t =
|
|
248
|
+
})), u = [e.between(0, 6.28), e.between(0, 6.28)], d = Math.max(f, Math.ceil((C(e, n) + f / 2) / 4) * 4), p = [];
|
|
249
|
+
for (let t = d; t <= e.w - f; t += 4) {
|
|
250
250
|
let e = Math.exp(-((t - a) ** 2) / (2 * o * o)), n = 0;
|
|
251
251
|
for (let e of l) n += e.h * Math.exp(-((t - e.x) ** 2) / (2 * e.s * e.s));
|
|
252
252
|
let r = Math.sin(t * .21 + (u[0] ?? 0)) * .6 + Math.sin(t * .53 + (u[1] ?? 0)) * .4;
|
|
253
253
|
p.push([t, n * e + r * .04 * (.15 + e)]);
|
|
254
254
|
}
|
|
255
|
-
let m = Math.max(...p.map(([, e]) => e), .001), h = Math.min(i * e.between(2.4, 4.4), n -
|
|
256
|
-
t.push(
|
|
257
|
-
d: `${g}L${e.w -
|
|
255
|
+
let m = Math.max(...p.map(([, e]) => e), .001), h = Math.min(i * e.between(2.4, 4.4), n - f), g = `M${p.map(([e, t]) => `${e} ${b(n - t / m * h)}`).join("L")}`;
|
|
256
|
+
t.push(x("path", {
|
|
257
|
+
d: `${g}L${e.w - f} ${b(n + i)}L${d} ${b(n + i)}Z`,
|
|
258
258
|
fill: e.ground
|
|
259
|
-
})), t.push(
|
|
259
|
+
})), t.push(x("path", {
|
|
260
260
|
d: g,
|
|
261
261
|
fill: "none",
|
|
262
262
|
stroke: c === s ? e.color(1) : e.color(0),
|
|
@@ -267,38 +267,38 @@ function k(e) {
|
|
|
267
267
|
}
|
|
268
268
|
return t;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
let t =
|
|
270
|
+
function j(e) {
|
|
271
|
+
let t = b(80 * e.between(.2, .3)), n = e.chance(.5), r = [], i = Math.ceil(e.w / 80), a = Math.ceil(e.h / 80);
|
|
272
272
|
for (let t = 0; t < i; t++) for (let n = 0; n < a; n++) {
|
|
273
273
|
let i = t * 80, a = e.h - (n + 1) * 80;
|
|
274
|
-
if (
|
|
274
|
+
if (S(e, i, a + 80)) continue;
|
|
275
275
|
let o = e.chance(.5) ? `M${i + 40} ${a}A40 40 0 0 1 ${i} ${a + 40}M${i + 80} ${a + 40}A40 40 0 0 0 ${i + 40} ${a + 80}` : `M${i + 40} ${a}A40 40 0 0 0 ${i + 80} ${a + 40}M${i} ${a + 40}A40 40 0 0 1 ${i + 40} ${a + 80}`;
|
|
276
|
-
r.push(
|
|
276
|
+
r.push(x("path", { d: o }));
|
|
277
277
|
}
|
|
278
|
-
let o = [
|
|
278
|
+
let o = [x("g", {
|
|
279
279
|
fill: "none",
|
|
280
280
|
stroke: e.color(0),
|
|
281
281
|
strokeWidth: t
|
|
282
282
|
}, r)];
|
|
283
|
-
return n && o.push(
|
|
283
|
+
return n && o.push(x("g", {
|
|
284
284
|
fill: "none",
|
|
285
285
|
stroke: e.color(1),
|
|
286
|
-
strokeWidth:
|
|
286
|
+
strokeWidth: b(t * .34)
|
|
287
287
|
}, r)), o;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function M(e, t, n) {
|
|
290
290
|
let r = Infinity;
|
|
291
291
|
for (let i = 0; i <= 90; i++) {
|
|
292
292
|
let a = i / 90 * (Math.PI / 2);
|
|
293
|
-
r = Math.min(r, Math.hypot(t -
|
|
293
|
+
r = Math.min(r, Math.hypot(t - p.rx * Math.cos(a), n - (e.h - p.ry * Math.sin(a))));
|
|
294
294
|
}
|
|
295
|
-
return
|
|
295
|
+
return S(e, t, n) ? 0 : r;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function N(e) {
|
|
298
298
|
let t = [], n = e.int(2, 3), r = [
|
|
299
|
-
[
|
|
300
|
-
[
|
|
301
|
-
[e.w,
|
|
299
|
+
[f * e.int(4, e.cols - 2), 0],
|
|
300
|
+
[f * e.int(11, e.cols - 1), e.h],
|
|
301
|
+
[e.w, f * e.int(2, e.rows - 2)],
|
|
302
302
|
[e.w, 0],
|
|
303
303
|
[e.w, e.h],
|
|
304
304
|
[0, 0]
|
|
@@ -310,10 +310,10 @@ function M(e) {
|
|
|
310
310
|
let i = 0;
|
|
311
311
|
for (let [a, o] of r) {
|
|
312
312
|
if (i === n) break;
|
|
313
|
-
let r =
|
|
313
|
+
let r = f / 2 * e.int(1, 2), s = Math.floor((M(e, a, o) - f / 2) / r), c = Math.min(s, e.int(4, 10));
|
|
314
314
|
if (c < 3) continue;
|
|
315
315
|
let l = e.int(0, 3), u = e.chance(.4);
|
|
316
|
-
for (let n = c; n >= 1; n--) t.push(
|
|
316
|
+
for (let n = c; n >= 1; n--) t.push(x("circle", {
|
|
317
317
|
cx: a,
|
|
318
318
|
cy: o,
|
|
319
319
|
r: n * r,
|
|
@@ -323,9 +323,9 @@ function M(e) {
|
|
|
323
323
|
}
|
|
324
324
|
return t;
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
let t = [], n = e.w - e.h / 2 -
|
|
326
|
+
var P = 2.399963229728653;
|
|
327
|
+
function F(e) {
|
|
328
|
+
let t = [], n = e.w - e.h / 2 - f * e.int(0, 2), r = e.h / 2 + f * e.int(-1, 1), i = e.between(11, 14), a = [
|
|
329
329
|
8,
|
|
330
330
|
13,
|
|
331
331
|
21
|
|
@@ -333,33 +333,33 @@ function P(e) {
|
|
|
333
333
|
for (let c = 1;; c++) {
|
|
334
334
|
let l = i * Math.sqrt(c);
|
|
335
335
|
if (l > s) break;
|
|
336
|
-
let u = n + l * Math.cos(c *
|
|
337
|
-
if (u < -p || u > e.w + p ||
|
|
338
|
-
let m = o ? Math.floor(l / (
|
|
339
|
-
t.push(
|
|
340
|
-
cx:
|
|
341
|
-
cy:
|
|
342
|
-
r:
|
|
336
|
+
let u = n + l * Math.cos(c * P), d = r + l * Math.sin(c * P), p = i * (.3 + .12 * Math.min(1, l / (e.h / 2)));
|
|
337
|
+
if (u < -p || u > e.w + p || d < -p || d > e.h + p || S(e, u, d) || M(e, u, d) < p + f / 4) continue;
|
|
338
|
+
let m = o ? Math.floor(l / (f * 1.5)) % 4 : Math.floor(c % a / a * 4);
|
|
339
|
+
t.push(x("circle", {
|
|
340
|
+
cx: b(u),
|
|
341
|
+
cy: b(d),
|
|
342
|
+
r: b(p),
|
|
343
343
|
fill: e.color(m)
|
|
344
344
|
}));
|
|
345
345
|
}
|
|
346
346
|
return t;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
return t ?
|
|
348
|
+
function I(e, t) {
|
|
349
|
+
return t ? I(t, e % t) : e;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
let t = [], n = e.w - e.h / 2, r = e.h / 2, i = e.h / 2 -
|
|
353
|
-
for (;
|
|
351
|
+
function L(e) {
|
|
352
|
+
let t = [], n = e.w - e.h / 2, r = e.h / 2, i = e.h / 2 - f, a = e.int(7, 13), o = e.int(2, a - 2);
|
|
353
|
+
for (; I(a, o) !== 1;) o = e.int(2, a - 2);
|
|
354
354
|
let s = e.chance(.5) ? 2 : 1;
|
|
355
355
|
for (let c = 0; c < s; c++) {
|
|
356
|
-
let s = o * e.between(.75, 1.05), l = (a - o) / o, u = a - o + s, d = o /
|
|
356
|
+
let s = o * e.between(.75, 1.05), l = (a - o) / o, u = a - o + s, d = o / I(a, o), f = d * 360, p = [], m = i * (c === 0 ? 1 : e.between(.4, .55)) / u;
|
|
357
357
|
for (let e = 0; e <= f; e++) {
|
|
358
358
|
let t = e / f * d * Math.PI * 2, i = (a - o) * Math.cos(t) + s * Math.cos(l * t), c = (a - o) * Math.sin(t) - s * Math.sin(l * t);
|
|
359
|
-
p.push(`${
|
|
359
|
+
p.push(`${b(n + i * m)} ${b(r + c * m)}`);
|
|
360
360
|
}
|
|
361
361
|
let h = `M${p.join("L")}Z`;
|
|
362
|
-
t.push(
|
|
362
|
+
t.push(x("path", {
|
|
363
363
|
d: h,
|
|
364
364
|
fill: e.color(c),
|
|
365
365
|
fillRule: "evenodd"
|
|
@@ -367,178 +367,184 @@ function I(e) {
|
|
|
367
367
|
}
|
|
368
368
|
return t;
|
|
369
369
|
}
|
|
370
|
-
var
|
|
371
|
-
bauhaus:
|
|
372
|
-
albers:
|
|
373
|
-
stripes:
|
|
374
|
-
waves:
|
|
375
|
-
truchet:
|
|
376
|
-
arcs:
|
|
377
|
-
phyllotaxis:
|
|
378
|
-
spiro:
|
|
379
|
-
},
|
|
380
|
-
function
|
|
370
|
+
var R = {
|
|
371
|
+
bauhaus: E,
|
|
372
|
+
albers: D,
|
|
373
|
+
stripes: k,
|
|
374
|
+
waves: A,
|
|
375
|
+
truchet: j,
|
|
376
|
+
arcs: N,
|
|
377
|
+
phyllotaxis: F,
|
|
378
|
+
spiro: L
|
|
379
|
+
}, z = (e) => c.palettes[e.palette % c.palettes.length] ?? c.palettes[0];
|
|
380
|
+
function B(e) {
|
|
381
381
|
return {
|
|
382
|
-
color:
|
|
382
|
+
color: c.grounds[z(e).ground].text,
|
|
383
383
|
eyebrow: {
|
|
384
|
-
x:
|
|
384
|
+
x: f,
|
|
385
385
|
bottom: 96
|
|
386
386
|
},
|
|
387
387
|
title: {
|
|
388
388
|
x: 38,
|
|
389
|
-
bottom:
|
|
389
|
+
bottom: f
|
|
390
390
|
}
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
let { w: n, h: r } =
|
|
393
|
+
function V(e, t = {}) {
|
|
394
|
+
let { w: n, h: r } = d[t.shape ?? "banner"], i = h(e.seed), a = (e, t) => e + i() * (t - e), o = (e, t) => Math.min(t, e + Math.floor(i() * (t - e + 1))), s = z(e), u = B(e), m = c.grounds[s.ground], g = [...s.colors];
|
|
395
395
|
for (let e = g.length - 1; e > 0; e--) {
|
|
396
396
|
let t = Math.floor(i() * (e + 1));
|
|
397
|
-
[g[e], g[t]] = [g[t] ??
|
|
397
|
+
[g[e], g[t]] = [g[t] ?? m.text, g[e] ?? m.text];
|
|
398
398
|
}
|
|
399
399
|
let _ = t.idPrefix ?? "art", v = {
|
|
400
400
|
w: n,
|
|
401
401
|
h: r,
|
|
402
|
-
cols: n /
|
|
403
|
-
rows: r /
|
|
402
|
+
cols: n / f,
|
|
403
|
+
rows: r / f,
|
|
404
404
|
next: i,
|
|
405
405
|
between: a,
|
|
406
406
|
int: o,
|
|
407
407
|
chance: (e) => i() < e,
|
|
408
|
-
ground:
|
|
409
|
-
color: (e) => g[(e % g.length + g.length) % g.length] ??
|
|
408
|
+
ground: m.fill,
|
|
409
|
+
color: (e) => g[(e % g.length + g.length) % g.length] ?? m.text,
|
|
410
410
|
id: (e) => `${_}-${e}`
|
|
411
|
-
}, y = v.id("clear"),
|
|
411
|
+
}, y = v.id("clear"), b = R[e.style](v), S = [];
|
|
412
412
|
return t.eyebrow && S.push({
|
|
413
413
|
tag: "text",
|
|
414
414
|
attrs: {
|
|
415
|
-
x:
|
|
416
|
-
y: r -
|
|
417
|
-
fill:
|
|
415
|
+
x: u.eyebrow.x,
|
|
416
|
+
y: r - u.eyebrow.bottom,
|
|
417
|
+
fill: u.color,
|
|
418
418
|
fillOpacity: .7,
|
|
419
419
|
fontSize: 16,
|
|
420
420
|
fontWeight: 500,
|
|
421
421
|
letterSpacing: .1,
|
|
422
|
-
fontFamily:
|
|
422
|
+
fontFamily: l.sans
|
|
423
423
|
},
|
|
424
424
|
text: t.eyebrow
|
|
425
425
|
}), t.title && S.push({
|
|
426
426
|
tag: "text",
|
|
427
427
|
attrs: {
|
|
428
|
-
x:
|
|
429
|
-
y: r -
|
|
430
|
-
fill:
|
|
428
|
+
x: u.title.x,
|
|
429
|
+
y: r - u.title.bottom,
|
|
430
|
+
fill: u.color,
|
|
431
431
|
fontSize: 52,
|
|
432
432
|
fontWeight: 600,
|
|
433
433
|
letterSpacing: -1.5,
|
|
434
|
-
fontFamily:
|
|
434
|
+
fontFamily: l.sans
|
|
435
435
|
},
|
|
436
436
|
text: t.title
|
|
437
|
-
}),
|
|
437
|
+
}), x("svg", {
|
|
438
438
|
xmlns: "http://www.w3.org/2000/svg",
|
|
439
439
|
viewBox: `0 0 ${n} ${r}`
|
|
440
440
|
}, [
|
|
441
|
-
|
|
441
|
+
x("defs", {}, [x("mask", {
|
|
442
442
|
id: y,
|
|
443
443
|
maskUnits: "userSpaceOnUse",
|
|
444
444
|
x: 0,
|
|
445
445
|
y: 0,
|
|
446
446
|
width: n,
|
|
447
447
|
height: r
|
|
448
|
-
}, [
|
|
448
|
+
}, [x("rect", {
|
|
449
449
|
width: n,
|
|
450
450
|
height: r,
|
|
451
451
|
fill: "white"
|
|
452
|
-
}),
|
|
452
|
+
}), x("ellipse", {
|
|
453
453
|
cx: 0,
|
|
454
454
|
cy: r,
|
|
455
|
-
rx:
|
|
456
|
-
ry:
|
|
455
|
+
rx: p.rx,
|
|
456
|
+
ry: p.ry,
|
|
457
457
|
fill: "black"
|
|
458
458
|
})])]),
|
|
459
|
-
|
|
459
|
+
x("rect", {
|
|
460
460
|
width: n,
|
|
461
461
|
height: r,
|
|
462
|
-
fill:
|
|
462
|
+
fill: m.fill
|
|
463
463
|
}),
|
|
464
|
-
...
|
|
464
|
+
...b,
|
|
465
465
|
...S
|
|
466
466
|
]);
|
|
467
467
|
}
|
|
468
|
-
var
|
|
469
|
-
function
|
|
470
|
-
let t = Object.entries(e.attrs).map(([e, t]) => ` ${
|
|
468
|
+
var H = /* @__PURE__ */ new Set(["viewBox", "maskUnits"]), U = (e) => H.has(e) ? e : e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), W = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
469
|
+
function G(e) {
|
|
470
|
+
let t = Object.entries(e.attrs).map(([e, t]) => ` ${U(e)}="${W(String(t))}"`).join(""), n = e.text === void 0 ? (e.children ?? []).map(G).join("") : W(e.text);
|
|
471
471
|
return n ? `<${e.tag}${t}>${n}</${e.tag}>` : `<${e.tag}${t}/>`;
|
|
472
472
|
}
|
|
473
473
|
//#endregion
|
|
474
474
|
//#region src/components/release-art/release-art.tsx
|
|
475
|
-
var
|
|
475
|
+
var K = { shape: {
|
|
476
476
|
banner: { classes: "aspect-video" },
|
|
477
477
|
wide: { classes: "aspect-21/9" }
|
|
478
|
-
} },
|
|
479
|
-
function
|
|
478
|
+
} }, q = { shape: "banner" };
|
|
479
|
+
function J(e, n) {
|
|
480
480
|
return t(e.tag, {
|
|
481
481
|
...e.attrs,
|
|
482
482
|
key: n
|
|
483
|
-
}, e.text ?? e.children?.map(
|
|
483
|
+
}, e.text ?? e.children?.map(J));
|
|
484
484
|
}
|
|
485
|
-
var
|
|
486
|
-
let { w:
|
|
487
|
-
shape:
|
|
488
|
-
idPrefix:
|
|
485
|
+
var Y = /* @__PURE__ */ n(function({ seed: t, label: n, art: c, src: u, title: f, eyebrow: p, shape: m = "banner", className: h }, g) {
|
|
486
|
+
let { w: _, h: v } = d[m], [b, x] = a(null), S = `art${r().replace(/[^a-zA-Z0-9]/g, "")}`, C = c ?? y(t), w = i(() => V(C, {
|
|
487
|
+
shape: m,
|
|
488
|
+
idPrefix: S
|
|
489
489
|
}), [
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
]),
|
|
494
|
-
return /* @__PURE__ */
|
|
495
|
-
className: e("relative block w-full",
|
|
496
|
-
children: [/* @__PURE__ */
|
|
497
|
-
ref:
|
|
498
|
-
viewBox: `0 0 ${
|
|
490
|
+
C,
|
|
491
|
+
m,
|
|
492
|
+
S
|
|
493
|
+
]), T = B(C);
|
|
494
|
+
return /* @__PURE__ */ s("span", {
|
|
495
|
+
className: e("relative block w-full", h),
|
|
496
|
+
children: [/* @__PURE__ */ s("svg", {
|
|
497
|
+
ref: g,
|
|
498
|
+
viewBox: `0 0 ${_} ${v}`,
|
|
499
499
|
role: "img",
|
|
500
500
|
"aria-label": n,
|
|
501
501
|
preserveAspectRatio: "xMidYMid slice",
|
|
502
|
-
className: e("block w-full overflow-hidden rounded-well",
|
|
502
|
+
className: e("block w-full overflow-hidden rounded-well", K.shape[m].classes),
|
|
503
503
|
children: [
|
|
504
|
-
b
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
504
|
+
u && b !== u ? /* @__PURE__ */ o("image", {
|
|
505
|
+
href: u,
|
|
506
|
+
width: _,
|
|
507
|
+
height: v,
|
|
508
|
+
preserveAspectRatio: "xMidYMid slice",
|
|
509
|
+
onError: () => x(u)
|
|
510
|
+
}) : w.children?.map(J),
|
|
511
|
+
p && /* @__PURE__ */ o("text", {
|
|
512
|
+
x: T.eyebrow.x,
|
|
513
|
+
y: v - T.eyebrow.bottom,
|
|
514
|
+
fill: T.color,
|
|
509
515
|
fillOpacity: .7,
|
|
510
516
|
fontSize: 16,
|
|
511
517
|
fontWeight: 500,
|
|
512
518
|
letterSpacing: .1,
|
|
513
|
-
fontFamily:
|
|
514
|
-
children:
|
|
519
|
+
fontFamily: l.sans,
|
|
520
|
+
children: p
|
|
515
521
|
}),
|
|
516
|
-
|
|
517
|
-
x:
|
|
518
|
-
y:
|
|
519
|
-
fill:
|
|
522
|
+
f && /* @__PURE__ */ o("text", {
|
|
523
|
+
x: T.title.x,
|
|
524
|
+
y: v - T.title.bottom,
|
|
525
|
+
fill: T.color,
|
|
520
526
|
fontSize: 52,
|
|
521
527
|
fontWeight: 600,
|
|
522
528
|
letterSpacing: -1.5,
|
|
523
|
-
fontFamily:
|
|
524
|
-
children:
|
|
529
|
+
fontFamily: l.sans,
|
|
530
|
+
children: f
|
|
525
531
|
})
|
|
526
532
|
]
|
|
527
|
-
}), /* @__PURE__ */
|
|
533
|
+
}), /* @__PURE__ */ o("span", {
|
|
528
534
|
"aria-hidden": !0,
|
|
529
535
|
className: "pointer-events-none absolute inset-0 rounded-well shadow-ring"
|
|
530
536
|
})]
|
|
531
537
|
});
|
|
532
538
|
});
|
|
533
|
-
process.env.NODE_ENV !== "production" && (
|
|
534
|
-
function
|
|
535
|
-
let { w: o, h: s } =
|
|
539
|
+
process.env.NODE_ENV !== "production" && (Y.displayName = "ReleaseArt");
|
|
540
|
+
function X({ seed: e, label: t, art: n, title: r, eyebrow: i, shape: a = "banner" }) {
|
|
541
|
+
let { w: o, h: s } = d[a], c = V(n ?? y(e), {
|
|
536
542
|
shape: a,
|
|
537
543
|
title: r,
|
|
538
544
|
eyebrow: i,
|
|
539
545
|
idPrefix: "art"
|
|
540
546
|
});
|
|
541
|
-
return
|
|
547
|
+
return G({
|
|
542
548
|
...c,
|
|
543
549
|
attrs: {
|
|
544
550
|
...c.attrs,
|
|
@@ -550,6 +556,6 @@ function Y({ seed: e, label: t, art: n, title: r, eyebrow: i, shape: a = "banner
|
|
|
550
556
|
});
|
|
551
557
|
}
|
|
552
558
|
//#endregion
|
|
553
|
-
export {
|
|
559
|
+
export { u as a, _ as c, X as i, y as l, K as n, g as o, Y as r, v as s, q as t };
|
|
554
560
|
|
|
555
|
-
//# sourceMappingURL=release-art-
|
|
561
|
+
//# sourceMappingURL=release-art-Ogl-L1Vh.js.map
|