@cloudraker/reki 2.6.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/CHANGELOG.md +1892 -0
- package/README.md +525 -0
- package/ai/USAGE.md +201 -0
- package/ai/component-registry.json +6707 -0
- package/ai/component-registry.md +8346 -0
- package/ai/schemas.ts +955 -0
- package/bin/reki.js +36 -0
- package/dist/.build-complete +1 -0
- package/dist/ai/schemas.d.ts +2514 -0
- package/dist/ai/schemas.d.ts.map +1 -0
- package/dist/ai/schemas.js +3985 -0
- package/dist/ai/schemas.js.map +1 -0
- package/dist/blocks-source/delete-resource/delete-resource.tsx +213 -0
- package/dist/blocks-source/page-header/page-header.tsx +99 -0
- package/dist/blocks-source/resource-list/resource-list.test.tsx +28 -0
- package/dist/blocks-source/resource-list/resource-list.tsx +69 -0
- package/dist/catalog.js +229 -0
- package/dist/catalog.js.map +1 -0
- package/dist/chunks/SankeyChart-jwwpwps4npqzbrvn.js +890 -0
- package/dist/chunks/SankeyChart-jwwpwps4npqzbrvn.js.map +1 -0
- package/dist/chunks/autocomplete-f4vetako14h2aqsw.js +193 -0
- package/dist/chunks/autocomplete-f4vetako14h2aqsw.js.map +1 -0
- package/dist/chunks/badge-pc33c5ir7muabgfh.js +163 -0
- package/dist/chunks/badge-pc33c5ir7muabgfh.js.map +1 -0
- package/dist/chunks/banner-kis9h1yq636liunc.js +120 -0
- package/dist/chunks/banner-kis9h1yq636liunc.js.map +1 -0
- package/dist/chunks/bash-g5z23u7me5rx7bzt.js +15 -0
- package/dist/chunks/bash-g5z23u7me5rx7bzt.js.map +1 -0
- package/dist/chunks/breadcrumbs-d6149hyct4puz3x4.js +169 -0
- package/dist/chunks/breadcrumbs-d6149hyct4puz3x4.js.map +1 -0
- package/dist/chunks/button-nc5p1h28cwes0tjw.js +237 -0
- package/dist/chunks/button-nc5p1h28cwes0tjw.js.map +1 -0
- package/dist/chunks/checkbox-g2661n3eodgoispq.js +216 -0
- package/dist/chunks/checkbox-g2661n3eodgoispq.js.map +1 -0
- package/dist/chunks/clipboard-text-g3659lejx2d7i93e.js +191 -0
- package/dist/chunks/clipboard-text-g3659lejx2d7i93e.js.map +1 -0
- package/dist/chunks/cloudflare-logo-k0f07zztsda8m4ca.js +175 -0
- package/dist/chunks/cloudflare-logo-k0f07zztsda8m4ca.js.map +1 -0
- package/dist/chunks/cn-ct4n7r74mh8y0f48.js +26 -0
- package/dist/chunks/cn-ct4n7r74mh8y0f48.js.map +1 -0
- package/dist/chunks/code-fm5rpi47v6cj9o8o.js +61 -0
- package/dist/chunks/code-fm5rpi47v6cj9o8o.js.map +1 -0
- package/dist/chunks/collapsible-ndvmgo29s5iqfcor.js +76 -0
- package/dist/chunks/collapsible-ndvmgo29s5iqfcor.js.map +1 -0
- package/dist/chunks/combobox-i38w67netm8ukw4f.js +408 -0
- package/dist/chunks/combobox-i38w67netm8ukw4f.js.map +1 -0
- package/dist/chunks/command-palette-fe5cjfdgsg3t17vq.js +403 -0
- package/dist/chunks/command-palette-fe5cjfdgsg3t17vq.js.map +1 -0
- package/dist/chunks/core-oowp00biqxe3hvjc.js +5806 -0
- package/dist/chunks/core-oowp00biqxe3hvjc.js.map +1 -0
- package/dist/chunks/css-d1mi3wy1sl3fzekh.js +8 -0
- package/dist/chunks/css-d1mi3wy1sl3fzekh.js.map +1 -0
- package/dist/chunks/date-picker-81mc3zrsmobm3ydm.js +2921 -0
- package/dist/chunks/date-picker-81mc3zrsmobm3ydm.js.map +1 -0
- package/dist/chunks/date-range-picker-c8ttrfaos9mb1w5n.js +408 -0
- package/dist/chunks/date-range-picker-c8ttrfaos9mb1w5n.js.map +1 -0
- package/dist/chunks/dialog-m4go8xof25fospqo.js +134 -0
- package/dist/chunks/dialog-m4go8xof25fospqo.js.map +1 -0
- package/dist/chunks/diff-cpj1h9lg0bw716mj.js +8 -0
- package/dist/chunks/diff-cpj1h9lg0bw716mj.js.map +1 -0
- package/dist/chunks/dropdown-j5uht8mn4z7xc9fc.js +313 -0
- package/dist/chunks/dropdown-j5uht8mn4z7xc9fc.js.map +1 -0
- package/dist/chunks/empty-kazxr0248zjemw6n.js +94 -0
- package/dist/chunks/empty-kazxr0248zjemw6n.js.map +1 -0
- package/dist/chunks/engine-javascript-iqcmg6wi2pjun29k.js +2637 -0
- package/dist/chunks/engine-javascript-iqcmg6wi2pjun29k.js.map +1 -0
- package/dist/chunks/engine-oniguruma-g75h8oxao68cjmhg.js +295 -0
- package/dist/chunks/engine-oniguruma-g75h8oxao68cjmhg.js.map +1 -0
- package/dist/chunks/field-fe5m8z3vbpvtctbe.js +77 -0
- package/dist/chunks/field-fe5m8z3vbpvtctbe.js.map +1 -0
- package/dist/chunks/github-light-ulev8flhimfg79ob.js +6 -0
- package/dist/chunks/github-light-ulev8flhimfg79ob.js.map +1 -0
- package/dist/chunks/graphql-ft2h47erta7isqn4.js +16 -0
- package/dist/chunks/graphql-ft2h47erta7isqn4.js.map +1 -0
- package/dist/chunks/grid-enlbb88vucgeq1np.js +128 -0
- package/dist/chunks/grid-enlbb88vucgeq1np.js.map +1 -0
- package/dist/chunks/hcl-hcu7d6ja6t540ijn.js +8 -0
- package/dist/chunks/hcl-hcu7d6ja6t540ijn.js.map +1 -0
- package/dist/chunks/html-kl304jmqj4jxj777.js +12 -0
- package/dist/chunks/html-kl304jmqj4jxj777.js.map +1 -0
- package/dist/chunks/input-area-ciw85g3fno06t4tw.js +78 -0
- package/dist/chunks/input-area-ciw85g3fno06t4tw.js.map +1 -0
- package/dist/chunks/input-group-mo7tq7jr19hmgor5.js +505 -0
- package/dist/chunks/input-group-mo7tq7jr19hmgor5.js.map +1 -0
- package/dist/chunks/input-i5nefqk213n4z7pr.js +130 -0
- package/dist/chunks/input-i5nefqk213n4z7pr.js.map +1 -0
- package/dist/chunks/javascript-hhx3avh9uv2o27ay.js +8 -0
- package/dist/chunks/javascript-hhx3avh9uv2o27ay.js.map +1 -0
- package/dist/chunks/json-jovp9qemdkp5cziz.js +8 -0
- package/dist/chunks/json-jovp9qemdkp5cziz.js.map +1 -0
- package/dist/chunks/jsonc-jbkkgjer6ispw2u3.js +8 -0
- package/dist/chunks/jsonc-jbkkgjer6ispw2u3.js.map +1 -0
- package/dist/chunks/jsx-ij885l2li2lzfoss.js +8 -0
- package/dist/chunks/jsx-ij885l2li2lzfoss.js.map +1 -0
- package/dist/chunks/label-fcho4757rbdess0c.js +68 -0
- package/dist/chunks/label-fcho4757rbdess0c.js.map +1 -0
- package/dist/chunks/layer-card-kzu48dhzxm3e9p4u.js +47 -0
- package/dist/chunks/layer-card-kzu48dhzxm3e9p4u.js.map +1 -0
- package/dist/chunks/link-j2gu5dr3nr4i4yf0.js +95 -0
- package/dist/chunks/link-j2gu5dr3nr4i4yf0.js.map +1 -0
- package/dist/chunks/link-provider-bgljdgs4hs438h0u.js +22 -0
- package/dist/chunks/link-provider-bgljdgs4hs438h0u.js.map +1 -0
- package/dist/chunks/loader-cxzp72mn53lzbv9c.js +109 -0
- package/dist/chunks/loader-cxzp72mn53lzbv9c.js.map +1 -0
- package/dist/chunks/markdown-n2vyyq7l68fy32wc.js +8 -0
- package/dist/chunks/markdown-n2vyyq7l68fy32wc.js.map +1 -0
- package/dist/chunks/menubar-ir5gbjmsizsddz7g.js +98 -0
- package/dist/chunks/menubar-ir5gbjmsizsddz7g.js.map +1 -0
- package/dist/chunks/meter-o5yd7ctjf80vvyjx.js +51 -0
- package/dist/chunks/meter-o5yd7ctjf80vvyjx.js.map +1 -0
- package/dist/chunks/pagination-bryw6rohfr7mm3km.js +266 -0
- package/dist/chunks/pagination-bryw6rohfr7mm3km.js.map +1 -0
- package/dist/chunks/popover-elxcmvv7mu7m7uk4.js +181 -0
- package/dist/chunks/popover-elxcmvv7mu7m7uk4.js.map +1 -0
- package/dist/chunks/portal-provider-off76og7tjyz96ys.js +18 -0
- package/dist/chunks/portal-provider-off76og7tjyz96ys.js.map +1 -0
- package/dist/chunks/python-gg755pb8oe9ra1d1.js +8 -0
- package/dist/chunks/python-gg755pb8oe9ra1d1.js.map +1 -0
- package/dist/chunks/radio-newyq331uk4lltr6.js +226 -0
- package/dist/chunks/radio-newyq331uk4lltr6.js.map +1 -0
- package/dist/chunks/resolve-variant-t8jcltsizeg29ege.js +11 -0
- package/dist/chunks/resolve-variant-t8jcltsizeg29ege.js.map +1 -0
- package/dist/chunks/select-h5480mbro0ypxu0b.js +237 -0
- package/dist/chunks/select-h5480mbro0ypxu0b.js.map +1 -0
- package/dist/chunks/sensitive-input-lqugq6uvx0lkpu0u.js +273 -0
- package/dist/chunks/sensitive-input-lqugq6uvx0lkpu0u.js.map +1 -0
- package/dist/chunks/sidebar-noz668nhdu2gso12.js +1144 -0
- package/dist/chunks/sidebar-noz668nhdu2gso12.js.map +1 -0
- package/dist/chunks/skeleton-line-epxenksfesr2fkcv.js +33 -0
- package/dist/chunks/skeleton-line-epxenksfesr2fkcv.js.map +1 -0
- package/dist/chunks/sql-ovukp5mrfunfk5tv.js +8 -0
- package/dist/chunks/sql-ovukp5mrfunfk5tv.js.map +1 -0
- package/dist/chunks/surface-cyxme7mlr49l33f8.js +29 -0
- package/dist/chunks/surface-cyxme7mlr49l33f8.js.map +1 -0
- package/dist/chunks/switch-bigo96fyjlh7ivbi.js +256 -0
- package/dist/chunks/switch-bigo96fyjlh7ivbi.js.map +1 -0
- package/dist/chunks/table-mwcmwp6a80zvyrxw.js +208 -0
- package/dist/chunks/table-mwcmwp6a80zvyrxw.js.map +1 -0
- package/dist/chunks/table-of-contents-gkuvkr2w6lbhi7wt.js +106 -0
- package/dist/chunks/table-of-contents-gkuvkr2w6lbhi7wt.js.map +1 -0
- package/dist/chunks/tabs-e4pcjkw94kpe35x0.js +177 -0
- package/dist/chunks/tabs-e4pcjkw94kpe35x0.js.map +1 -0
- package/dist/chunks/text-oxsrbmjmfq99ue85.js +103 -0
- package/dist/chunks/text-oxsrbmjmfq99ue85.js.map +1 -0
- package/dist/chunks/toast-ivr4097bstjcjotf.js +370 -0
- package/dist/chunks/toast-ivr4097bstjcjotf.js.map +1 -0
- package/dist/chunks/toml-nczb2z9n0o23o3ci.js +8 -0
- package/dist/chunks/toml-nczb2z9n0o23o3ci.js.map +1 -0
- package/dist/chunks/tooltip-ncaia8n1lavkyw8n.js +103 -0
- package/dist/chunks/tooltip-ncaia8n1lavkyw8n.js.map +1 -0
- package/dist/chunks/tsx-ehy8lrzet6v54zur.js +8 -0
- package/dist/chunks/tsx-ehy8lrzet6v54zur.js.map +1 -0
- package/dist/chunks/typescript-k4ggjrxhrhcdni6u.js +8 -0
- package/dist/chunks/typescript-k4ggjrxhrhcdni6u.js.map +1 -0
- package/dist/chunks/vendor-base-ui-bgl9g5nkvqy3tn36.js +24690 -0
- package/dist/chunks/vendor-base-ui-bgl9g5nkvqy3tn36.js.map +1 -0
- package/dist/chunks/vendor-floating-ui-dn8xswn8036udsqq.js +1311 -0
- package/dist/chunks/vendor-floating-ui-dn8xswn8036udsqq.js.map +1 -0
- package/dist/chunks/vendor-styling-gobnkhsy0rva4qd3.js +2775 -0
- package/dist/chunks/vendor-styling-gobnkhsy0rva4qd3.js.map +1 -0
- package/dist/chunks/vendor-utils-m5h2xu7s2rs3pgk5.js +217 -0
- package/dist/chunks/vendor-utils-m5h2xu7s2rs3pgk5.js.map +1 -0
- package/dist/chunks/vesper-ebfu9ns65f2v830s.js +6 -0
- package/dist/chunks/vesper-ebfu9ns65f2v830s.js.map +1 -0
- package/dist/chunks/wasm-oj22f8usru9h7dzg.js +9 -0
- package/dist/chunks/wasm-oj22f8usru9h7dzg.js.map +1 -0
- package/dist/chunks/yaml-e2v22lr79tss2brj.js +8 -0
- package/dist/chunks/yaml-e2v22lr79tss2brj.js.map +1 -0
- package/dist/code/server.js +88 -0
- package/dist/code/server.js.map +1 -0
- package/dist/code.js +256 -0
- package/dist/code.js.map +1 -0
- package/dist/command-line/cli.js +850 -0
- package/dist/command-line/commands/add.js +282 -0
- package/dist/command-line/commands/ai.js +22 -0
- package/dist/command-line/commands/blocks.js +61 -0
- package/dist/command-line/commands/doc.js +167 -0
- package/dist/command-line/commands/init.js +95 -0
- package/dist/command-line/commands/ls.js +53 -0
- package/dist/components/autocomplete.js +9 -0
- package/dist/components/autocomplete.js.map +1 -0
- package/dist/components/badge.js +7 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/banner.js +7 -0
- package/dist/components/banner.js.map +1 -0
- package/dist/components/breadcrumbs.js +9 -0
- package/dist/components/breadcrumbs.js.map +1 -0
- package/dist/components/button.js +9 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/chart.js +10 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox.js +8 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/clipboard-text.js +6 -0
- package/dist/components/clipboard-text.js.map +1 -0
- package/dist/components/cloudflare-logo.js +10 -0
- package/dist/components/cloudflare-logo.js.map +1 -0
- package/dist/components/code.js +7 -0
- package/dist/components/code.js.map +1 -0
- package/dist/components/collapsible.js +6 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/combobox.js +6 -0
- package/dist/components/combobox.js.map +1 -0
- package/dist/components/command-palette.js +8 -0
- package/dist/components/command-palette.js.map +1 -0
- package/dist/components/date-picker.js +6 -0
- package/dist/components/date-picker.js.map +1 -0
- package/dist/components/date-range-picker.js +6 -0
- package/dist/components/date-range-picker.js.map +1 -0
- package/dist/components/dialog.js +11 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/dropdown.js +6 -0
- package/dist/components/dropdown.js.map +1 -0
- package/dist/components/empty.js +9 -0
- package/dist/components/empty.js.map +1 -0
- package/dist/components/field.js +10 -0
- package/dist/components/field.js.map +1 -0
- package/dist/components/flow.js +5831 -0
- package/dist/components/flow.js.map +1 -0
- package/dist/components/grid.js +11 -0
- package/dist/components/grid.js.map +1 -0
- package/dist/components/input-group.js +8 -0
- package/dist/components/input-group.js.map +1 -0
- package/dist/components/input.js +14 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.js +10 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/layer-card.js +6 -0
- package/dist/components/layer-card.js.map +1 -0
- package/dist/components/link.js +9 -0
- package/dist/components/link.js.map +1 -0
- package/dist/components/loader.js +8 -0
- package/dist/components/loader.js.map +1 -0
- package/dist/components/menubar.js +7 -0
- package/dist/components/menubar.js.map +1 -0
- package/dist/components/meter.js +6 -0
- package/dist/components/meter.js.map +1 -0
- package/dist/components/pagination.js +6 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/popover.js +14 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/radio.js +10 -0
- package/dist/components/radio.js.map +1 -0
- package/dist/components/select.js +6 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/sensitive-input.js +8 -0
- package/dist/components/sensitive-input.js.map +1 -0
- package/dist/components/sidebar.js +34 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/surface.js +6 -0
- package/dist/components/surface.js.map +1 -0
- package/dist/components/switch.js +8 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table-of-contents.js +8 -0
- package/dist/components/table-of-contents.js.map +1 -0
- package/dist/components/table.js +8 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.js +6 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/text.js +6 -0
- package/dist/components/text.js.map +1 -0
- package/dist/components/toast.js +11 -0
- package/dist/components/toast.js.map +1 -0
- package/dist/components/tooltip.js +7 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/index.js +344 -0
- package/dist/index.js.map +1 -0
- package/dist/primitives/accordion.js +6 -0
- package/dist/primitives/accordion.js.map +1 -0
- package/dist/primitives/alert-dialog.js +6 -0
- package/dist/primitives/alert-dialog.js.map +1 -0
- package/dist/primitives/autocomplete.js +6 -0
- package/dist/primitives/autocomplete.js.map +1 -0
- package/dist/primitives/avatar.js +6 -0
- package/dist/primitives/avatar.js.map +1 -0
- package/dist/primitives/button.js +6 -0
- package/dist/primitives/button.js.map +1 -0
- package/dist/primitives/checkbox-group.js +6 -0
- package/dist/primitives/checkbox-group.js.map +1 -0
- package/dist/primitives/checkbox.js +6 -0
- package/dist/primitives/checkbox.js.map +1 -0
- package/dist/primitives/collapsible.js +6 -0
- package/dist/primitives/collapsible.js.map +1 -0
- package/dist/primitives/combobox.js +6 -0
- package/dist/primitives/combobox.js.map +1 -0
- package/dist/primitives/context-menu.js +6 -0
- package/dist/primitives/context-menu.js.map +1 -0
- package/dist/primitives/csp-provider.js +6 -0
- package/dist/primitives/csp-provider.js.map +1 -0
- package/dist/primitives/dialog.js +6 -0
- package/dist/primitives/dialog.js.map +1 -0
- package/dist/primitives/direction-provider.js +7 -0
- package/dist/primitives/direction-provider.js.map +1 -0
- package/dist/primitives/drawer.js +6 -0
- package/dist/primitives/drawer.js.map +1 -0
- package/dist/primitives/field.js +6 -0
- package/dist/primitives/field.js.map +1 -0
- package/dist/primitives/fieldset.js +6 -0
- package/dist/primitives/fieldset.js.map +1 -0
- package/dist/primitives/form.js +6 -0
- package/dist/primitives/form.js.map +1 -0
- package/dist/primitives/input.js +6 -0
- package/dist/primitives/input.js.map +1 -0
- package/dist/primitives/menu.js +6 -0
- package/dist/primitives/menu.js.map +1 -0
- package/dist/primitives/menubar.js +6 -0
- package/dist/primitives/menubar.js.map +1 -0
- package/dist/primitives/meter.js +6 -0
- package/dist/primitives/meter.js.map +1 -0
- package/dist/primitives/navigation-menu.js +6 -0
- package/dist/primitives/navigation-menu.js.map +1 -0
- package/dist/primitives/number-field.js +6 -0
- package/dist/primitives/number-field.js.map +1 -0
- package/dist/primitives/otp-field.js +6 -0
- package/dist/primitives/otp-field.js.map +1 -0
- package/dist/primitives/popover.js +6 -0
- package/dist/primitives/popover.js.map +1 -0
- package/dist/primitives/preview-card.js +6 -0
- package/dist/primitives/preview-card.js.map +1 -0
- package/dist/primitives/progress.js +6 -0
- package/dist/primitives/progress.js.map +1 -0
- package/dist/primitives/radio-group.js +6 -0
- package/dist/primitives/radio-group.js.map +1 -0
- package/dist/primitives/radio.js +6 -0
- package/dist/primitives/radio.js.map +1 -0
- package/dist/primitives/scroll-area.js +6 -0
- package/dist/primitives/scroll-area.js.map +1 -0
- package/dist/primitives/select.js +6 -0
- package/dist/primitives/select.js.map +1 -0
- package/dist/primitives/separator.js +6 -0
- package/dist/primitives/separator.js.map +1 -0
- package/dist/primitives/slider.js +6 -0
- package/dist/primitives/slider.js.map +1 -0
- package/dist/primitives/switch.js +6 -0
- package/dist/primitives/switch.js.map +1 -0
- package/dist/primitives/tabs.js +6 -0
- package/dist/primitives/tabs.js.map +1 -0
- package/dist/primitives/toast.js +6 -0
- package/dist/primitives/toast.js.map +1 -0
- package/dist/primitives/toggle-group.js +6 -0
- package/dist/primitives/toggle-group.js.map +1 -0
- package/dist/primitives/toggle.js +6 -0
- package/dist/primitives/toggle.js.map +1 -0
- package/dist/primitives/toolbar.js +6 -0
- package/dist/primitives/toolbar.js.map +1 -0
- package/dist/primitives/tooltip.js +6 -0
- package/dist/primitives/tooltip.js.map +1 -0
- package/dist/primitives.js +46 -0
- package/dist/primitives.js.map +1 -0
- package/dist/registry.js +2 -0
- package/dist/registry.js.map +1 -0
- package/dist/scripts/theme-generator/config.d.ts +6 -0
- package/dist/scripts/theme-generator/config.d.ts.map +1 -0
- package/dist/scripts/theme-generator/config.js +629 -0
- package/dist/scripts/theme-generator/config.js.map +1 -0
- package/dist/scripts/theme-generator/generate-css.d.ts +31 -0
- package/dist/scripts/theme-generator/generate-css.d.ts.map +1 -0
- package/dist/scripts/theme-generator/index.d.ts +13 -0
- package/dist/scripts/theme-generator/index.d.ts.map +1 -0
- package/dist/scripts/theme-generator/migrate.d.ts +56 -0
- package/dist/scripts/theme-generator/migrate.d.ts.map +1 -0
- package/dist/scripts/theme-generator/types.d.ts +82 -0
- package/dist/scripts/theme-generator/types.d.ts.map +1 -0
- package/dist/scripts/theme-generator/types.js +2 -0
- package/dist/scripts/theme-generator/types.js.map +1 -0
- package/dist/src/blocks/delete-resource/delete-resource.d.ts +46 -0
- package/dist/src/blocks/delete-resource/delete-resource.d.ts.map +1 -0
- package/dist/src/blocks/delete-resource/index.d.ts +2 -0
- package/dist/src/blocks/delete-resource/index.d.ts.map +1 -0
- package/dist/src/blocks/page-header/index.d.ts +2 -0
- package/dist/src/blocks/page-header/index.d.ts.map +1 -0
- package/dist/src/blocks/page-header/page-header.d.ts +38 -0
- package/dist/src/blocks/page-header/page-header.d.ts.map +1 -0
- package/dist/src/blocks/resource-list/index.d.ts +2 -0
- package/dist/src/blocks/resource-list/index.d.ts.map +1 -0
- package/dist/src/blocks/resource-list/resource-list.d.ts +18 -0
- package/dist/src/blocks/resource-list/resource-list.d.ts.map +1 -0
- package/dist/src/catalog/catalog.d.ts +75 -0
- package/dist/src/catalog/catalog.d.ts.map +1 -0
- package/dist/src/catalog/data.d.ts +44 -0
- package/dist/src/catalog/data.d.ts.map +1 -0
- package/dist/src/catalog/index.d.ts +39 -0
- package/dist/src/catalog/index.d.ts.map +1 -0
- package/dist/src/catalog/types.d.ts +226 -0
- package/dist/src/catalog/types.d.ts.map +1 -0
- package/dist/src/catalog/visibility.d.ts +37 -0
- package/dist/src/catalog/visibility.d.ts.map +1 -0
- package/dist/src/code/code-highlighted.d.ts +32 -0
- package/dist/src/code/code-highlighted.d.ts.map +1 -0
- package/dist/src/code/context.d.ts +16 -0
- package/dist/src/code/context.d.ts.map +1 -0
- package/dist/src/code/index.d.ts +32 -0
- package/dist/src/code/index.d.ts.map +1 -0
- package/dist/src/code/provider.d.ts +13 -0
- package/dist/src/code/provider.d.ts.map +1 -0
- package/dist/src/code/server.d.ts +95 -0
- package/dist/src/code/server.d.ts.map +1 -0
- package/dist/src/code/types.d.ts +130 -0
- package/dist/src/code/types.d.ts.map +1 -0
- package/dist/src/code/use-shiki-highlighter.d.ts +36 -0
- package/dist/src/code/use-shiki-highlighter.d.ts.map +1 -0
- package/dist/src/command-line/build-cli.d.ts +7 -0
- package/dist/src/command-line/build-cli.d.ts.map +1 -0
- package/dist/src/command-line/cli.d.ts +13 -0
- package/dist/src/command-line/cli.d.ts.map +1 -0
- package/dist/src/command-line/commands/add.d.ts +10 -0
- package/dist/src/command-line/commands/add.d.ts.map +1 -0
- package/dist/src/command-line/commands/ai.d.ts +10 -0
- package/dist/src/command-line/commands/ai.d.ts.map +1 -0
- package/dist/src/command-line/commands/blocks.d.ts +10 -0
- package/dist/src/command-line/commands/blocks.d.ts.map +1 -0
- package/dist/src/command-line/commands/doc.d.ts +14 -0
- package/dist/src/command-line/commands/doc.d.ts.map +1 -0
- package/dist/src/command-line/commands/init.d.ts +18 -0
- package/dist/src/command-line/commands/init.d.ts.map +1 -0
- package/dist/src/command-line/commands/ls.d.ts +10 -0
- package/dist/src/command-line/commands/ls.d.ts.map +1 -0
- package/dist/src/command-line/commands/migrate.d.ts +10 -0
- package/dist/src/command-line/commands/migrate.d.ts.map +1 -0
- package/dist/src/command-line/utils/config.d.ts +42 -0
- package/dist/src/command-line/utils/config.d.ts.map +1 -0
- package/dist/src/command-line/utils/transformer.d.ts +21 -0
- package/dist/src/command-line/utils/transformer.d.ts.map +1 -0
- package/dist/src/components/autocomplete/autocomplete.d.ts +181 -0
- package/dist/src/components/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/src/components/autocomplete/index.d.ts +3 -0
- package/dist/src/components/autocomplete/index.d.ts.map +1 -0
- package/dist/src/components/badge/badge.d.ts +180 -0
- package/dist/src/components/badge/badge.d.ts.map +1 -0
- package/dist/src/components/badge/index.d.ts +2 -0
- package/dist/src/components/badge/index.d.ts.map +1 -0
- package/dist/src/components/banner/banner.d.ts +106 -0
- package/dist/src/components/banner/banner.d.ts.map +1 -0
- package/dist/src/components/banner/index.d.ts +2 -0
- package/dist/src/components/banner/index.d.ts.map +1 -0
- package/dist/src/components/breadcrumbs/breadcrumbs.d.ts +78 -0
- package/dist/src/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
- package/dist/src/components/breadcrumbs/index.d.ts +2 -0
- package/dist/src/components/breadcrumbs/index.d.ts.map +1 -0
- package/dist/src/components/button/button.d.ts +214 -0
- package/dist/src/components/button/button.d.ts.map +1 -0
- package/dist/src/components/button/index.d.ts +2 -0
- package/dist/src/components/button/index.d.ts.map +1 -0
- package/dist/src/components/chart/Color.d.ts +91 -0
- package/dist/src/components/chart/Color.d.ts.map +1 -0
- package/dist/src/components/chart/EChart.d.ts +159 -0
- package/dist/src/components/chart/EChart.d.ts.map +1 -0
- package/dist/src/components/chart/Legend.d.ts +51 -0
- package/dist/src/components/chart/Legend.d.ts.map +1 -0
- package/dist/src/components/chart/SankeyChart.d.ts +98 -0
- package/dist/src/components/chart/SankeyChart.d.ts.map +1 -0
- package/dist/src/components/chart/TimeseriesChart.d.ts +181 -0
- package/dist/src/components/chart/TimeseriesChart.d.ts.map +1 -0
- package/dist/src/components/chart/index.d.ts +6 -0
- package/dist/src/components/chart/index.d.ts.map +1 -0
- package/dist/src/components/checkbox/checkbox.d.ts +197 -0
- package/dist/src/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/src/components/checkbox/index.d.ts +2 -0
- package/dist/src/components/checkbox/index.d.ts.map +1 -0
- package/dist/src/components/clipboard-text/clipboard-text.d.ts +88 -0
- package/dist/src/components/clipboard-text/clipboard-text.d.ts.map +1 -0
- package/dist/src/components/clipboard-text/index.d.ts +2 -0
- package/dist/src/components/clipboard-text/index.d.ts.map +1 -0
- package/dist/src/components/cloudflare-logo/cloudflare-logo.d.ts +133 -0
- package/dist/src/components/cloudflare-logo/cloudflare-logo.d.ts.map +1 -0
- package/dist/src/components/cloudflare-logo/index.d.ts +2 -0
- package/dist/src/components/cloudflare-logo/index.d.ts.map +1 -0
- package/dist/src/components/code/code.d.ts +189 -0
- package/dist/src/components/code/code.d.ts.map +1 -0
- package/dist/src/components/code/index.d.ts +4 -0
- package/dist/src/components/code/index.d.ts.map +1 -0
- package/dist/src/components/collapsible/collapsible.d.ts +109 -0
- package/dist/src/components/collapsible/collapsible.d.ts.map +1 -0
- package/dist/src/components/collapsible/index.d.ts +2 -0
- package/dist/src/components/collapsible/index.d.ts.map +1 -0
- package/dist/src/components/combobox/combobox.d.ts +246 -0
- package/dist/src/components/combobox/combobox.d.ts.map +1 -0
- package/dist/src/components/combobox/index.d.ts +3 -0
- package/dist/src/components/combobox/index.d.ts.map +1 -0
- package/dist/src/components/command-palette/command-palette.d.ts +258 -0
- package/dist/src/components/command-palette/command-palette.d.ts.map +1 -0
- package/dist/src/components/command-palette/index.d.ts +3 -0
- package/dist/src/components/command-palette/index.d.ts.map +1 -0
- package/dist/src/components/command-palette/types.d.ts +168 -0
- package/dist/src/components/command-palette/types.d.ts.map +1 -0
- package/dist/src/components/date-picker/date-picker.d.ts +65 -0
- package/dist/src/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/src/components/date-picker/index.d.ts +4 -0
- package/dist/src/components/date-picker/index.d.ts.map +1 -0
- package/dist/src/components/date-range-picker/date-range-picker.d.ts +125 -0
- package/dist/src/components/date-range-picker/date-range-picker.d.ts.map +1 -0
- package/dist/src/components/date-range-picker/index.d.ts +5 -0
- package/dist/src/components/date-range-picker/index.d.ts.map +1 -0
- package/dist/src/components/dialog/dialog.d.ts +242 -0
- package/dist/src/components/dialog/dialog.d.ts.map +1 -0
- package/dist/src/components/dialog/index.d.ts +2 -0
- package/dist/src/components/dialog/index.d.ts.map +1 -0
- package/dist/src/components/dropdown/dropdown.d.ts +116 -0
- package/dist/src/components/dropdown/dropdown.d.ts.map +1 -0
- package/dist/src/components/dropdown/index.d.ts +2 -0
- package/dist/src/components/dropdown/index.d.ts.map +1 -0
- package/dist/src/components/empty/empty.d.ts +69 -0
- package/dist/src/components/empty/empty.d.ts.map +1 -0
- package/dist/src/components/empty/index.d.ts +2 -0
- package/dist/src/components/empty/index.d.ts.map +1 -0
- package/dist/src/components/field/field.d.ts +89 -0
- package/dist/src/components/field/field.d.ts.map +1 -0
- package/dist/src/components/field/index.d.ts +2 -0
- package/dist/src/components/field/index.d.ts.map +1 -0
- package/dist/src/components/flow/connectors.d.ts +41 -0
- package/dist/src/components/flow/connectors.d.ts.map +1 -0
- package/dist/src/components/flow/diagram.d.ts +96 -0
- package/dist/src/components/flow/diagram.d.ts.map +1 -0
- package/dist/src/components/flow/index.d.ts +26 -0
- package/dist/src/components/flow/index.d.ts.map +1 -0
- package/dist/src/components/flow/node.d.ts +61 -0
- package/dist/src/components/flow/node.d.ts.map +1 -0
- package/dist/src/components/flow/parallel.d.ts +13 -0
- package/dist/src/components/flow/parallel.d.ts.map +1 -0
- package/dist/src/components/flow/use-children.d.ts +87 -0
- package/dist/src/components/flow/use-children.d.ts.map +1 -0
- package/dist/src/components/grid/grid.d.ts +135 -0
- package/dist/src/components/grid/grid.d.ts.map +1 -0
- package/dist/src/components/grid/index.d.ts +2 -0
- package/dist/src/components/grid/index.d.ts.map +1 -0
- package/dist/src/components/input/index.d.ts +19 -0
- package/dist/src/components/input/index.d.ts.map +1 -0
- package/dist/src/components/input/input-area.d.ts +65 -0
- package/dist/src/components/input/input-area.d.ts.map +1 -0
- package/dist/src/components/input/input.d.ts +175 -0
- package/dist/src/components/input/input.d.ts.map +1 -0
- package/dist/src/components/input-group/context.d.ts +96 -0
- package/dist/src/components/input-group/context.d.ts.map +1 -0
- package/dist/src/components/input-group/index.d.ts +2 -0
- package/dist/src/components/input-group/index.d.ts.map +1 -0
- package/dist/src/components/input-group/input-group-addon.d.ts +15 -0
- package/dist/src/components/input-group/input-group-addon.d.ts.map +1 -0
- package/dist/src/components/input-group/input-group-button.d.ts +36 -0
- package/dist/src/components/input-group/input-group-button.d.ts.map +1 -0
- package/dist/src/components/input-group/input-group-input.d.ts +9 -0
- package/dist/src/components/input-group/input-group-input.d.ts.map +1 -0
- package/dist/src/components/input-group/input-group-suffix.d.ts +13 -0
- package/dist/src/components/input-group/input-group-suffix.d.ts.map +1 -0
- package/dist/src/components/input-group/input-group.d.ts +43 -0
- package/dist/src/components/input-group/input-group.d.ts.map +1 -0
- package/dist/src/components/label/index.d.ts +2 -0
- package/dist/src/components/label/index.d.ts.map +1 -0
- package/dist/src/components/label/label.d.ts +67 -0
- package/dist/src/components/label/label.d.ts.map +1 -0
- package/dist/src/components/layer-card/index.d.ts +2 -0
- package/dist/src/components/layer-card/index.d.ts.map +1 -0
- package/dist/src/components/layer-card/layer-card.d.ts +60 -0
- package/dist/src/components/layer-card/layer-card.d.ts.map +1 -0
- package/dist/src/components/link/index.d.ts +2 -0
- package/dist/src/components/link/index.d.ts.map +1 -0
- package/dist/src/components/link/link.d.ts +66 -0
- package/dist/src/components/link/link.d.ts.map +1 -0
- package/dist/src/components/loader/index.d.ts +3 -0
- package/dist/src/components/loader/index.d.ts.map +1 -0
- package/dist/src/components/loader/loader.d.ts +70 -0
- package/dist/src/components/loader/loader.d.ts.map +1 -0
- package/dist/src/components/loader/skeleton-line.d.ts +11 -0
- package/dist/src/components/loader/skeleton-line.d.ts.map +1 -0
- package/dist/src/components/menubar/index.d.ts +3 -0
- package/dist/src/components/menubar/index.d.ts.map +1 -0
- package/dist/src/components/menubar/menubar.d.ts +66 -0
- package/dist/src/components/menubar/menubar.d.ts.map +1 -0
- package/dist/src/components/menubar/use-menu-navigation.d.ts +8 -0
- package/dist/src/components/menubar/use-menu-navigation.d.ts.map +1 -0
- package/dist/src/components/meter/index.d.ts +2 -0
- package/dist/src/components/meter/index.d.ts.map +1 -0
- package/dist/src/components/meter/meter.d.ts +44 -0
- package/dist/src/components/meter/meter.d.ts.map +1 -0
- package/dist/src/components/pagination/index.d.ts +2 -0
- package/dist/src/components/pagination/index.d.ts.map +1 -0
- package/dist/src/components/pagination/pagination.d.ts +241 -0
- package/dist/src/components/pagination/pagination.d.ts.map +1 -0
- package/dist/src/components/popover/index.d.ts +3 -0
- package/dist/src/components/popover/index.d.ts.map +1 -0
- package/dist/src/components/popover/popover.d.ts +178 -0
- package/dist/src/components/popover/popover.d.ts.map +1 -0
- package/dist/src/components/radio/index.d.ts +2 -0
- package/dist/src/components/radio/index.d.ts.map +1 -0
- package/dist/src/components/radio/radio.d.ts +277 -0
- package/dist/src/components/radio/radio.d.ts.map +1 -0
- package/dist/src/components/radio/radio.type-spec.d.ts +12 -0
- package/dist/src/components/radio/radio.type-spec.d.ts.map +1 -0
- package/dist/src/components/select/index.d.ts +2 -0
- package/dist/src/components/select/index.d.ts.map +1 -0
- package/dist/src/components/select/select.d.ts +288 -0
- package/dist/src/components/select/select.d.ts.map +1 -0
- package/dist/src/components/sensitive-input/index.d.ts +2 -0
- package/dist/src/components/sensitive-input/index.d.ts.map +1 -0
- package/dist/src/components/sensitive-input/sensitive-input.d.ts +94 -0
- package/dist/src/components/sensitive-input/sensitive-input.d.ts.map +1 -0
- package/dist/src/components/sidebar/index.d.ts +2 -0
- package/dist/src/components/sidebar/index.d.ts.map +1 -0
- package/dist/src/components/sidebar/sidebar.d.ts +581 -0
- package/dist/src/components/sidebar/sidebar.d.ts.map +1 -0
- package/dist/src/components/surface/index.d.ts +5 -0
- package/dist/src/components/surface/index.d.ts.map +1 -0
- package/dist/src/components/surface/surface.d.ts +64 -0
- package/dist/src/components/surface/surface.d.ts.map +1 -0
- package/dist/src/components/switch/index.d.ts +2 -0
- package/dist/src/components/switch/index.d.ts.map +1 -0
- package/dist/src/components/switch/switch.d.ts +197 -0
- package/dist/src/components/switch/switch.d.ts.map +1 -0
- package/dist/src/components/table/index.d.ts +2 -0
- package/dist/src/components/table/index.d.ts.map +1 -0
- package/dist/src/components/table/table.d.ts +138 -0
- package/dist/src/components/table/table.d.ts.map +1 -0
- package/dist/src/components/table-of-contents/index.d.ts +2 -0
- package/dist/src/components/table-of-contents/index.d.ts.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.d.ts +72 -0
- package/dist/src/components/table-of-contents/table-of-contents.d.ts.map +1 -0
- package/dist/src/components/tabs/index.d.ts +3 -0
- package/dist/src/components/tabs/index.d.ts.map +1 -0
- package/dist/src/components/tabs/tabs.d.ts +116 -0
- package/dist/src/components/tabs/tabs.d.ts.map +1 -0
- package/dist/src/components/text/index.d.ts +2 -0
- package/dist/src/components/text/index.d.ts.map +1 -0
- package/dist/src/components/text/text.d.ts +214 -0
- package/dist/src/components/text/text.d.ts.map +1 -0
- package/dist/src/components/text/text.type-spec.d.ts +44 -0
- package/dist/src/components/text/text.type-spec.d.ts.map +1 -0
- package/dist/src/components/toast/index.d.ts +5 -0
- package/dist/src/components/toast/index.d.ts.map +1 -0
- package/dist/src/components/toast/toast.d.ts +197 -0
- package/dist/src/components/toast/toast.d.ts.map +1 -0
- package/dist/src/components/tooltip/index.d.ts +2 -0
- package/dist/src/components/tooltip/index.d.ts.map +1 -0
- package/dist/src/components/tooltip/tooltip.d.ts +108 -0
- package/dist/src/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/src/index.d.ts +84 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/primitives/accordion.d.ts +13 -0
- package/dist/src/primitives/accordion.d.ts.map +1 -0
- package/dist/src/primitives/alert-dialog.d.ts +13 -0
- package/dist/src/primitives/alert-dialog.d.ts.map +1 -0
- package/dist/src/primitives/autocomplete.d.ts +13 -0
- package/dist/src/primitives/autocomplete.d.ts.map +1 -0
- package/dist/src/primitives/avatar.d.ts +13 -0
- package/dist/src/primitives/avatar.d.ts.map +1 -0
- package/dist/src/primitives/button.d.ts +13 -0
- package/dist/src/primitives/button.d.ts.map +1 -0
- package/dist/src/primitives/checkbox-group.d.ts +13 -0
- package/dist/src/primitives/checkbox-group.d.ts.map +1 -0
- package/dist/src/primitives/checkbox.d.ts +13 -0
- package/dist/src/primitives/checkbox.d.ts.map +1 -0
- package/dist/src/primitives/collapsible.d.ts +13 -0
- package/dist/src/primitives/collapsible.d.ts.map +1 -0
- package/dist/src/primitives/combobox.d.ts +13 -0
- package/dist/src/primitives/combobox.d.ts.map +1 -0
- package/dist/src/primitives/context-menu.d.ts +13 -0
- package/dist/src/primitives/context-menu.d.ts.map +1 -0
- package/dist/src/primitives/csp-provider.d.ts +13 -0
- package/dist/src/primitives/csp-provider.d.ts.map +1 -0
- package/dist/src/primitives/dialog.d.ts +13 -0
- package/dist/src/primitives/dialog.d.ts.map +1 -0
- package/dist/src/primitives/direction-provider.d.ts +13 -0
- package/dist/src/primitives/direction-provider.d.ts.map +1 -0
- package/dist/src/primitives/drawer.d.ts +13 -0
- package/dist/src/primitives/drawer.d.ts.map +1 -0
- package/dist/src/primitives/field.d.ts +13 -0
- package/dist/src/primitives/field.d.ts.map +1 -0
- package/dist/src/primitives/fieldset.d.ts +13 -0
- package/dist/src/primitives/fieldset.d.ts.map +1 -0
- package/dist/src/primitives/form.d.ts +13 -0
- package/dist/src/primitives/form.d.ts.map +1 -0
- package/dist/src/primitives/index.d.ts +55 -0
- package/dist/src/primitives/index.d.ts.map +1 -0
- package/dist/src/primitives/input.d.ts +13 -0
- package/dist/src/primitives/input.d.ts.map +1 -0
- package/dist/src/primitives/menu.d.ts +13 -0
- package/dist/src/primitives/menu.d.ts.map +1 -0
- package/dist/src/primitives/menubar.d.ts +13 -0
- package/dist/src/primitives/menubar.d.ts.map +1 -0
- package/dist/src/primitives/meter.d.ts +13 -0
- package/dist/src/primitives/meter.d.ts.map +1 -0
- package/dist/src/primitives/navigation-menu.d.ts +13 -0
- package/dist/src/primitives/navigation-menu.d.ts.map +1 -0
- package/dist/src/primitives/number-field.d.ts +13 -0
- package/dist/src/primitives/number-field.d.ts.map +1 -0
- package/dist/src/primitives/otp-field.d.ts +13 -0
- package/dist/src/primitives/otp-field.d.ts.map +1 -0
- package/dist/src/primitives/popover.d.ts +13 -0
- package/dist/src/primitives/popover.d.ts.map +1 -0
- package/dist/src/primitives/preview-card.d.ts +13 -0
- package/dist/src/primitives/preview-card.d.ts.map +1 -0
- package/dist/src/primitives/progress.d.ts +13 -0
- package/dist/src/primitives/progress.d.ts.map +1 -0
- package/dist/src/primitives/radio-group.d.ts +13 -0
- package/dist/src/primitives/radio-group.d.ts.map +1 -0
- package/dist/src/primitives/radio.d.ts +13 -0
- package/dist/src/primitives/radio.d.ts.map +1 -0
- package/dist/src/primitives/scroll-area.d.ts +13 -0
- package/dist/src/primitives/scroll-area.d.ts.map +1 -0
- package/dist/src/primitives/select.d.ts +13 -0
- package/dist/src/primitives/select.d.ts.map +1 -0
- package/dist/src/primitives/separator.d.ts +13 -0
- package/dist/src/primitives/separator.d.ts.map +1 -0
- package/dist/src/primitives/slider.d.ts +13 -0
- package/dist/src/primitives/slider.d.ts.map +1 -0
- package/dist/src/primitives/switch.d.ts +13 -0
- package/dist/src/primitives/switch.d.ts.map +1 -0
- package/dist/src/primitives/tabs.d.ts +13 -0
- package/dist/src/primitives/tabs.d.ts.map +1 -0
- package/dist/src/primitives/toast.d.ts +13 -0
- package/dist/src/primitives/toast.d.ts.map +1 -0
- package/dist/src/primitives/toggle-group.d.ts +13 -0
- package/dist/src/primitives/toggle-group.d.ts.map +1 -0
- package/dist/src/primitives/toggle.d.ts +13 -0
- package/dist/src/primitives/toggle.d.ts.map +1 -0
- package/dist/src/primitives/toolbar.d.ts +13 -0
- package/dist/src/primitives/toolbar.d.ts.map +1 -0
- package/dist/src/primitives/tooltip.d.ts +13 -0
- package/dist/src/primitives/tooltip.d.ts.map +1 -0
- package/dist/src/registry/index.d.ts +8 -0
- package/dist/src/registry/index.d.ts.map +1 -0
- package/dist/src/registry/types.d.ts +191 -0
- package/dist/src/registry/types.d.ts.map +1 -0
- package/dist/src/utils/cn.d.ts +4 -0
- package/dist/src/utils/cn.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +4 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/link-provider.d.ts +66 -0
- package/dist/src/utils/link-provider.d.ts.map +1 -0
- package/dist/src/utils/portal-provider.d.ts +56 -0
- package/dist/src/utils/portal-provider.d.ts.map +1 -0
- package/dist/src/utils/prop-examples.d.ts +36 -0
- package/dist/src/utils/prop-examples.d.ts.map +1 -0
- package/dist/src/utils/resolve-variant.d.ts +27 -0
- package/dist/src/utils/resolve-variant.d.ts.map +1 -0
- package/dist/styles/reki-binding.css +303 -0
- package/dist/styles/reki-standalone.css +2 -0
- package/dist/styles/reki.css +700 -0
- package/dist/styles/theme-fedramp.css +39 -0
- package/dist/styles/theme-reki.css +412 -0
- package/dist/utils.js +12 -0
- package/dist/utils.js.map +1 -0
- package/package.json +511 -0
- package/scripts/component-registry/cache.ts +123 -0
- package/scripts/component-registry/discovery.ts +469 -0
- package/scripts/component-registry/example-cleanup.ts +168 -0
- package/scripts/component-registry/index.test.ts +987 -0
- package/scripts/component-registry/index.ts +970 -0
- package/scripts/component-registry/markdown-generator.ts +222 -0
- package/scripts/component-registry/metadata.ts +956 -0
- package/scripts/component-registry/props-filter.ts +310 -0
- package/scripts/component-registry/schema-generator.ts +331 -0
- package/scripts/component-registry/sub-components.ts +380 -0
- package/scripts/component-registry/types.ts +158 -0
- package/scripts/component-registry/utils.ts +280 -0
- package/scripts/component-registry/variant-parser.ts +261 -0
- package/scripts/css-build.ts +105 -0
- package/scripts/generate-primitives.ts +183 -0
- package/scripts/theme-generator/config.ts +653 -0
- package/scripts/theme-generator/generate-css.test.ts +30 -0
- package/scripts/theme-generator/generate-css.ts +351 -0
- package/scripts/theme-generator/index.ts +159 -0
- package/scripts/theme-generator/migrate.ts +560 -0
- package/scripts/theme-generator/types.ts +92 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { useState, useCallback, useEffect } from "react";
|
|
2
|
+
import {
|
|
3
|
+
Dialog,
|
|
4
|
+
DialogRoot,
|
|
5
|
+
DialogTitle,
|
|
6
|
+
DialogClose,
|
|
7
|
+
} from "../../components/dialog";
|
|
8
|
+
import { Input } from "../../components/input";
|
|
9
|
+
import { Button } from "../../components/button";
|
|
10
|
+
import { cn } from "../../utils/cn";
|
|
11
|
+
import {
|
|
12
|
+
CheckIcon,
|
|
13
|
+
CopyIcon,
|
|
14
|
+
WarningCircleIcon,
|
|
15
|
+
XIcon,
|
|
16
|
+
} from "@phosphor-icons/react";
|
|
17
|
+
import { Banner } from "../../components/banner";
|
|
18
|
+
|
|
19
|
+
export const REKI_DELETE_RESOURCE_VARIANTS = {
|
|
20
|
+
size: {
|
|
21
|
+
sm: {
|
|
22
|
+
classes: "",
|
|
23
|
+
description: "Small dialog for simple delete confirmations",
|
|
24
|
+
},
|
|
25
|
+
base: {
|
|
26
|
+
classes: "",
|
|
27
|
+
description: "Default delete confirmation dialog size",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
} as const;
|
|
31
|
+
|
|
32
|
+
export const REKI_DELETE_RESOURCE_DEFAULT_VARIANTS = {
|
|
33
|
+
size: "base",
|
|
34
|
+
} as const;
|
|
35
|
+
|
|
36
|
+
export type RekiDeleteResourceSize =
|
|
37
|
+
keyof typeof REKI_DELETE_RESOURCE_VARIANTS.size;
|
|
38
|
+
|
|
39
|
+
export interface RekiDeleteResourceVariantsProps {
|
|
40
|
+
size?: RekiDeleteResourceSize;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface DeleteResourceProps extends RekiDeleteResourceVariantsProps {
|
|
44
|
+
/** Whether the dialog is open */
|
|
45
|
+
open: boolean;
|
|
46
|
+
/** Callback when open state changes */
|
|
47
|
+
onOpenChange: (open: boolean) => void;
|
|
48
|
+
/** The type of resource being deleted (e.g., "Zone", "Worker", "KV Namespace") */
|
|
49
|
+
resourceType: string;
|
|
50
|
+
/** The name of the specific resource being deleted */
|
|
51
|
+
resourceName: string;
|
|
52
|
+
/** Callback when delete is confirmed */
|
|
53
|
+
onDelete: () => void | Promise<void>;
|
|
54
|
+
/** Whether the delete action is in progress */
|
|
55
|
+
isDeleting?: boolean;
|
|
56
|
+
/** Whether the confirmation input should be case-sensitive (default: true) */
|
|
57
|
+
caseSensitive?: boolean;
|
|
58
|
+
/** Custom delete button text (defaults to "Delete {resourceType}") */
|
|
59
|
+
deleteButtonText?: string;
|
|
60
|
+
/** Additional className for the dialog */
|
|
61
|
+
className?: string;
|
|
62
|
+
/** Error message to display if the delete action fails */
|
|
63
|
+
errorMessage?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function DeleteResource({
|
|
67
|
+
open,
|
|
68
|
+
onOpenChange,
|
|
69
|
+
resourceType,
|
|
70
|
+
resourceName,
|
|
71
|
+
onDelete,
|
|
72
|
+
isDeleting = false,
|
|
73
|
+
caseSensitive = true,
|
|
74
|
+
deleteButtonText,
|
|
75
|
+
size = REKI_DELETE_RESOURCE_DEFAULT_VARIANTS.size,
|
|
76
|
+
errorMessage,
|
|
77
|
+
className,
|
|
78
|
+
}: DeleteResourceProps) {
|
|
79
|
+
const [confirmationInput, setConfirmationInput] = useState("");
|
|
80
|
+
const [copied, setCopied] = useState(false);
|
|
81
|
+
|
|
82
|
+
useEffect(() => {
|
|
83
|
+
if (!open) {
|
|
84
|
+
setConfirmationInput("");
|
|
85
|
+
setCopied(false);
|
|
86
|
+
}
|
|
87
|
+
}, [open]);
|
|
88
|
+
|
|
89
|
+
const normalizeForComparison = useCallback(
|
|
90
|
+
(str: string) => (caseSensitive ? str : str.toLowerCase()),
|
|
91
|
+
[caseSensitive],
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
const isConfirmed =
|
|
95
|
+
normalizeForComparison(confirmationInput) ===
|
|
96
|
+
normalizeForComparison(resourceName);
|
|
97
|
+
|
|
98
|
+
const handleDelete = useCallback(async () => {
|
|
99
|
+
if (!isConfirmed || isDeleting) return;
|
|
100
|
+
await onDelete();
|
|
101
|
+
}, [isConfirmed, isDeleting, onDelete]);
|
|
102
|
+
|
|
103
|
+
const handleCopy = useCallback(async () => {
|
|
104
|
+
await navigator.clipboard.writeText(resourceName);
|
|
105
|
+
setCopied(true);
|
|
106
|
+
setTimeout(() => setCopied(false), 1500);
|
|
107
|
+
}, [resourceName]);
|
|
108
|
+
|
|
109
|
+
return (
|
|
110
|
+
<DialogRoot open={open} onOpenChange={onOpenChange}>
|
|
111
|
+
<Dialog size={size} className={cn("p-0", className)}>
|
|
112
|
+
<div className="flex items-center justify-between border-b border-reki-line px-6 py-4">
|
|
113
|
+
<DialogTitle className="text-lg font-semibold">
|
|
114
|
+
Delete {resourceName}
|
|
115
|
+
</DialogTitle>
|
|
116
|
+
<DialogClose
|
|
117
|
+
render={(props) => (
|
|
118
|
+
<Button
|
|
119
|
+
{...props}
|
|
120
|
+
variant="ghost"
|
|
121
|
+
shape="square"
|
|
122
|
+
size="sm"
|
|
123
|
+
aria-label="Close"
|
|
124
|
+
disabled={isDeleting}
|
|
125
|
+
>
|
|
126
|
+
<XIcon size={18} />
|
|
127
|
+
</Button>
|
|
128
|
+
)}
|
|
129
|
+
/>
|
|
130
|
+
</div>
|
|
131
|
+
|
|
132
|
+
<div className="flex flex-col p-6 gap-4">
|
|
133
|
+
<div className="flex flex-col gap-2">
|
|
134
|
+
{errorMessage && (
|
|
135
|
+
<Banner icon={<WarningCircleIcon />} variant="error">
|
|
136
|
+
{errorMessage}
|
|
137
|
+
</Banner>
|
|
138
|
+
)}
|
|
139
|
+
<p className="text-base text-reki-subtle max-w-prose text-pretty">
|
|
140
|
+
This action cannot be undone. This will permanently delete the{" "}
|
|
141
|
+
<span className="font-medium text-reki-default">
|
|
142
|
+
{resourceName}
|
|
143
|
+
</span>{" "}
|
|
144
|
+
{resourceType.toLowerCase()}.
|
|
145
|
+
</p>
|
|
146
|
+
</div>
|
|
147
|
+
|
|
148
|
+
<div className="flex flex-col gap-2">
|
|
149
|
+
<div className="flex items-center gap-1.5 text-base">
|
|
150
|
+
<span>
|
|
151
|
+
Type{" "}
|
|
152
|
+
<button
|
|
153
|
+
className="font-mono text-sm inline font-semibold bg-reki-tint hover:bg-reki-fill rounded-md px-2 py-1 group hover:cursor-pointer"
|
|
154
|
+
onClick={handleCopy}
|
|
155
|
+
aria-label={`Copy ${resourceName} to clipboard`}
|
|
156
|
+
>
|
|
157
|
+
{resourceName}
|
|
158
|
+
|
|
159
|
+
{copied ? (
|
|
160
|
+
<CheckIcon
|
|
161
|
+
size={12}
|
|
162
|
+
weight="bold"
|
|
163
|
+
className="inline ml-1.5"
|
|
164
|
+
/>
|
|
165
|
+
) : (
|
|
166
|
+
<CopyIcon
|
|
167
|
+
size={12}
|
|
168
|
+
weight="bold"
|
|
169
|
+
className="inline text-reki-subtle group-hover:text-reki-default ml-1.5"
|
|
170
|
+
/>
|
|
171
|
+
)}
|
|
172
|
+
</button>{" "}
|
|
173
|
+
to confirm:
|
|
174
|
+
</span>
|
|
175
|
+
</div>
|
|
176
|
+
<Input
|
|
177
|
+
placeholder={resourceName}
|
|
178
|
+
value={confirmationInput}
|
|
179
|
+
onChange={(e) => setConfirmationInput(e.target.value)}
|
|
180
|
+
disabled={isDeleting}
|
|
181
|
+
autoComplete="off"
|
|
182
|
+
autoCorrect="off"
|
|
183
|
+
autoCapitalize="off"
|
|
184
|
+
spellCheck={false}
|
|
185
|
+
aria-label={`Type ${resourceName} to confirm deletion`}
|
|
186
|
+
className="w-full"
|
|
187
|
+
/>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
<div className="flex justify-end gap-3 border-t border-reki-line px-6 py-4">
|
|
192
|
+
<DialogClose
|
|
193
|
+
render={(props) => (
|
|
194
|
+
<Button {...props} variant="secondary" disabled={isDeleting}>
|
|
195
|
+
Cancel
|
|
196
|
+
</Button>
|
|
197
|
+
)}
|
|
198
|
+
/>
|
|
199
|
+
<Button
|
|
200
|
+
variant="destructive"
|
|
201
|
+
onClick={handleDelete}
|
|
202
|
+
disabled={!isConfirmed || isDeleting}
|
|
203
|
+
loading={isDeleting}
|
|
204
|
+
>
|
|
205
|
+
{deleteButtonText || `Delete ${resourceType}`}
|
|
206
|
+
</Button>
|
|
207
|
+
</div>
|
|
208
|
+
</Dialog>
|
|
209
|
+
</DialogRoot>
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
DeleteResource.displayName = "DeleteResource";
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Tabs, type TabsItem } from "../../components/tabs";
|
|
3
|
+
import { cn } from "../../utils/cn";
|
|
4
|
+
|
|
5
|
+
export const REKI_PAGE_HEADER_VARIANTS = {
|
|
6
|
+
spacing: {
|
|
7
|
+
compact: {
|
|
8
|
+
classes: "gap-1",
|
|
9
|
+
description: "Compact spacing between header elements",
|
|
10
|
+
},
|
|
11
|
+
base: {
|
|
12
|
+
classes: "gap-2",
|
|
13
|
+
description: "Default spacing between header elements",
|
|
14
|
+
},
|
|
15
|
+
relaxed: {
|
|
16
|
+
classes: "gap-4",
|
|
17
|
+
description: "Relaxed spacing for more prominent headers",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
} as const;
|
|
21
|
+
|
|
22
|
+
export const REKI_PAGE_HEADER_DEFAULT_VARIANTS = {
|
|
23
|
+
spacing: "base",
|
|
24
|
+
} as const;
|
|
25
|
+
|
|
26
|
+
export type RekiPageHeaderSpacing =
|
|
27
|
+
keyof typeof REKI_PAGE_HEADER_VARIANTS.spacing;
|
|
28
|
+
|
|
29
|
+
export interface RekiPageHeaderVariantsProps {
|
|
30
|
+
spacing?: RekiPageHeaderSpacing;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function pageHeaderVariants({
|
|
34
|
+
spacing = REKI_PAGE_HEADER_DEFAULT_VARIANTS.spacing,
|
|
35
|
+
}: RekiPageHeaderVariantsProps = {}) {
|
|
36
|
+
return cn(
|
|
37
|
+
"flex flex-col",
|
|
38
|
+
REKI_PAGE_HEADER_VARIANTS.spacing[spacing].classes,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface PageHeaderProps extends RekiPageHeaderVariantsProps {
|
|
43
|
+
breadcrumbs: ReactNode;
|
|
44
|
+
title?: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
tabs?: TabsItem[];
|
|
47
|
+
defaultTab?: string;
|
|
48
|
+
onValueChange?: (value: string) => void;
|
|
49
|
+
className?: string;
|
|
50
|
+
children?: React.ReactNode;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PageHeader({
|
|
54
|
+
breadcrumbs,
|
|
55
|
+
title,
|
|
56
|
+
description,
|
|
57
|
+
tabs,
|
|
58
|
+
defaultTab,
|
|
59
|
+
onValueChange,
|
|
60
|
+
spacing = "base",
|
|
61
|
+
className,
|
|
62
|
+
children,
|
|
63
|
+
}: PageHeaderProps) {
|
|
64
|
+
return (
|
|
65
|
+
<div className={cn(pageHeaderVariants({ spacing }), className)}>
|
|
66
|
+
<div className="border-b border-reki-line">{breadcrumbs}</div>
|
|
67
|
+
|
|
68
|
+
{(title || description) && (
|
|
69
|
+
<div className="flex flex-col gap-2 py-3 pl-3">
|
|
70
|
+
{title && (
|
|
71
|
+
<h1 className="font-heading text-3xl font-semibold text-reki-default">
|
|
72
|
+
{title}
|
|
73
|
+
</h1>
|
|
74
|
+
)}
|
|
75
|
+
{description && (
|
|
76
|
+
<p className="max-w-prose text-base text-reki-subtle">
|
|
77
|
+
{description}
|
|
78
|
+
</p>
|
|
79
|
+
)}
|
|
80
|
+
</div>
|
|
81
|
+
)}
|
|
82
|
+
|
|
83
|
+
{tabs && (
|
|
84
|
+
<div className="flex w-full items-center justify-between border-b border-reki-line pt-1 pb-3 pl-3">
|
|
85
|
+
<Tabs
|
|
86
|
+
tabs={tabs}
|
|
87
|
+
selectedValue={defaultTab}
|
|
88
|
+
onValueChange={(nextValue) => {
|
|
89
|
+
const stringValue = String(nextValue);
|
|
90
|
+
onValueChange?.(stringValue);
|
|
91
|
+
}}
|
|
92
|
+
/>
|
|
93
|
+
|
|
94
|
+
<div className="flex items-center gap-2">{children}</div>
|
|
95
|
+
</div>
|
|
96
|
+
)}
|
|
97
|
+
</div>
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest";
|
|
2
|
+
import { ResourceListPage } from "./resource-list";
|
|
3
|
+
|
|
4
|
+
describe("ResourceListPage", () => {
|
|
5
|
+
it("should be defined", () => {
|
|
6
|
+
expect(ResourceListPage).toBeDefined();
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
it("should accept required props", () => {
|
|
10
|
+
const props = {
|
|
11
|
+
children: "Test content",
|
|
12
|
+
};
|
|
13
|
+
expect(() => ResourceListPage(props)).not.toThrow();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it("should accept all optional props", () => {
|
|
17
|
+
const props = {
|
|
18
|
+
title: "Test Title",
|
|
19
|
+
description: "Test Description",
|
|
20
|
+
icon: "Icon",
|
|
21
|
+
usage: "Usage",
|
|
22
|
+
additionalContent: "Additional",
|
|
23
|
+
children: "Content",
|
|
24
|
+
className: "custom-class",
|
|
25
|
+
};
|
|
26
|
+
expect(() => ResourceListPage(props)).not.toThrow();
|
|
27
|
+
});
|
|
28
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { cn } from "../../utils/cn";
|
|
3
|
+
|
|
4
|
+
export interface ResourceListPageProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
usage?: ReactNode;
|
|
9
|
+
additionalContent?: ReactNode;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* ResourceListPage - A layout component for resource list pages
|
|
16
|
+
*
|
|
17
|
+
* Layouts are page-level components that provide consistent structure
|
|
18
|
+
* for common page patterns like resource lists, dashboards, and settings.
|
|
19
|
+
*/
|
|
20
|
+
export function ResourceListPage({
|
|
21
|
+
title,
|
|
22
|
+
description,
|
|
23
|
+
icon,
|
|
24
|
+
usage,
|
|
25
|
+
additionalContent,
|
|
26
|
+
children,
|
|
27
|
+
className,
|
|
28
|
+
}: ResourceListPageProps) {
|
|
29
|
+
return (
|
|
30
|
+
<div
|
|
31
|
+
className={cn(
|
|
32
|
+
"h-full min-h-screen w-full bg-reki-overlay",
|
|
33
|
+
className,
|
|
34
|
+
)}
|
|
35
|
+
>
|
|
36
|
+
<div className="mx-auto flex max-w-[1400px] flex-col p-6 md:gap-4 md:p-8 lg:px-10 lg:py-9 xl:gap-6">
|
|
37
|
+
<div className="flex flex-col">
|
|
38
|
+
<div className="mb-1.5 flex items-center gap-1.5">
|
|
39
|
+
{icon}
|
|
40
|
+
<h1 className="font-heading m-0 p-0 text-3xl font-semibold">
|
|
41
|
+
{title}
|
|
42
|
+
</h1>
|
|
43
|
+
</div>
|
|
44
|
+
<p className="hidden p-0 text-lg leading-normal text-pretty text-reki-subtle md:block">
|
|
45
|
+
{description}
|
|
46
|
+
</p>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div className="flex flex-col-reverse gap-6 xl:flex-row xl:gap-8">
|
|
50
|
+
<div className="min-w-0 grow">{children}</div>
|
|
51
|
+
|
|
52
|
+
{(usage || additionalContent) && (
|
|
53
|
+
<div
|
|
54
|
+
className={`top-22 flex h-fit w-full shrink-0 flex-col gap-4 xl:sticky xl:w-[380px]`}
|
|
55
|
+
>
|
|
56
|
+
{usage}
|
|
57
|
+
|
|
58
|
+
<div className={cn("hidden xl:block", usage ? "mt-6" : "")}>
|
|
59
|
+
{additionalContent}
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
)}
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<div className="mt-6 xl:hidden">{additionalContent}</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
);
|
|
69
|
+
}
|
package/dist/catalog.js
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
let c = null, h = null;
|
|
3
|
+
async function y() {
|
|
4
|
+
return c || h || (h = import("./ai/schemas.js").then((t) => (c = t, c)), h);
|
|
5
|
+
}
|
|
6
|
+
function l() {
|
|
7
|
+
if (!c)
|
|
8
|
+
throw new Error(
|
|
9
|
+
"Schemas not loaded. Call initCatalog(catalog) first or use async validation."
|
|
10
|
+
);
|
|
11
|
+
return c;
|
|
12
|
+
}
|
|
13
|
+
function E(t = {}) {
|
|
14
|
+
const { actions: s = {} } = t, r = Object.keys(s);
|
|
15
|
+
return {
|
|
16
|
+
get componentNames() {
|
|
17
|
+
return l().REKI_COMPONENT_NAMES;
|
|
18
|
+
},
|
|
19
|
+
get actionNames() {
|
|
20
|
+
return r;
|
|
21
|
+
},
|
|
22
|
+
hasComponent(n) {
|
|
23
|
+
try {
|
|
24
|
+
return l().REKI_COMPONENT_NAMES.includes(n);
|
|
25
|
+
} catch {
|
|
26
|
+
return !1;
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
hasAction(n) {
|
|
30
|
+
return n in s;
|
|
31
|
+
},
|
|
32
|
+
validateElement(n) {
|
|
33
|
+
try {
|
|
34
|
+
const e = l(), a = e.UIElementBaseSchema.safeParse(n);
|
|
35
|
+
if (a.success) {
|
|
36
|
+
const u = e.validateElementProps(
|
|
37
|
+
a.data
|
|
38
|
+
);
|
|
39
|
+
return u.success ? { success: !0, data: a.data } : {
|
|
40
|
+
success: !1,
|
|
41
|
+
error: u.error.issues.map((o) => ({
|
|
42
|
+
message: o.message,
|
|
43
|
+
path: ["props", ...o.path]
|
|
44
|
+
}))
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
success: !1,
|
|
49
|
+
error: a.error?.issues.map((u) => ({
|
|
50
|
+
message: u.message,
|
|
51
|
+
path: u.path
|
|
52
|
+
})) ?? [{ message: "Validation failed", path: [] }]
|
|
53
|
+
};
|
|
54
|
+
} catch (e) {
|
|
55
|
+
return {
|
|
56
|
+
success: !1,
|
|
57
|
+
error: [
|
|
58
|
+
{
|
|
59
|
+
message: e instanceof Error ? e.message : "Validation failed",
|
|
60
|
+
path: []
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
validateTree(n) {
|
|
67
|
+
try {
|
|
68
|
+
const a = l().validateUITree(n);
|
|
69
|
+
return a.success ? { success: !0, data: a.data } : {
|
|
70
|
+
success: !1,
|
|
71
|
+
error: a.error.issues.map((u) => ({
|
|
72
|
+
message: u.message,
|
|
73
|
+
path: u.path
|
|
74
|
+
}))
|
|
75
|
+
};
|
|
76
|
+
} catch (e) {
|
|
77
|
+
return {
|
|
78
|
+
success: !1,
|
|
79
|
+
error: [
|
|
80
|
+
{
|
|
81
|
+
message: e instanceof Error ? e.message : "Validation failed",
|
|
82
|
+
path: []
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
generatePrompt() {
|
|
89
|
+
const n = l(), e = [
|
|
90
|
+
"# Reki Component Catalog",
|
|
91
|
+
"",
|
|
92
|
+
"You are generating UI using Reki components. Output must be valid JSON matching the UITree schema.",
|
|
93
|
+
"",
|
|
94
|
+
"## Available Components",
|
|
95
|
+
""
|
|
96
|
+
];
|
|
97
|
+
for (const a of n.REKI_COMPONENT_NAMES)
|
|
98
|
+
e.push(`- \`${a}\``);
|
|
99
|
+
if (r.length > 0) {
|
|
100
|
+
e.push(""), e.push("## Available Actions"), e.push("");
|
|
101
|
+
for (const [a, u] of Object.entries(s))
|
|
102
|
+
e.push(`- \`${a}\`: ${u.description}`);
|
|
103
|
+
}
|
|
104
|
+
return e.push(""), e.push("## Output Format"), e.push(""), e.push("```json"), e.push("{"), e.push(' "root": "element-1",'), e.push(' "elements": {'), e.push(' "element-1": {'), e.push(' "key": "element-1",'), e.push(' "type": "ComponentName",'), e.push(' "props": { ... },'), e.push(' "children": ["element-2"],'), e.push(
|
|
105
|
+
' "visible": true | { "path": "/data/path" } | { "auth": "signedIn" }'
|
|
106
|
+
), e.push(" }"), e.push(" }"), e.push("}"), e.push("```"), e.push(""), e.push("## Dynamic Values"), e.push(""), e.push(
|
|
107
|
+
'Props can reference data model values using `{ path: "/data/path" }`:'
|
|
108
|
+
), e.push(""), e.push("```json"), e.push("{"), e.push(' "type": "Text",'), e.push(' "props": {'), e.push(' "children": { "path": "/user/name" }'), e.push(" }"), e.push("}"), e.push("```"), e.push(""), e.join(`
|
|
109
|
+
`);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
async function v(t) {
|
|
114
|
+
t.validateTree({});
|
|
115
|
+
}
|
|
116
|
+
function p(t, s) {
|
|
117
|
+
if (!s || s === "/")
|
|
118
|
+
return t;
|
|
119
|
+
const r = s.startsWith("/") ? s.slice(1).split("/") : s.split("/");
|
|
120
|
+
let n = t;
|
|
121
|
+
for (const e of r) {
|
|
122
|
+
if (n == null)
|
|
123
|
+
return;
|
|
124
|
+
if (typeof n == "object")
|
|
125
|
+
n = n[e];
|
|
126
|
+
else
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
return n;
|
|
130
|
+
}
|
|
131
|
+
function b(t, s, r) {
|
|
132
|
+
const n = s.startsWith("/") ? s.slice(1).split("/") : s.split("/");
|
|
133
|
+
if (n.length === 0) return;
|
|
134
|
+
let e = t;
|
|
135
|
+
for (let u = 0; u < n.length - 1; u++) {
|
|
136
|
+
const o = n[u];
|
|
137
|
+
(!(o in e) || typeof e[o] != "object") && (e[o] = {}), e = e[o];
|
|
138
|
+
}
|
|
139
|
+
const a = n[n.length - 1];
|
|
140
|
+
e[a] = r;
|
|
141
|
+
}
|
|
142
|
+
function m(t) {
|
|
143
|
+
return typeof t == "object" && t !== null && "path" in t && typeof t.path == "string";
|
|
144
|
+
}
|
|
145
|
+
function i(t, s) {
|
|
146
|
+
if (t != null)
|
|
147
|
+
return m(t) ? p(s, t.path) : t;
|
|
148
|
+
}
|
|
149
|
+
function d(t, s) {
|
|
150
|
+
const r = {};
|
|
151
|
+
for (const [n, e] of Object.entries(t))
|
|
152
|
+
m(e) ? r[n] = p(s, e.path) : typeof e == "object" && e !== null && !Array.isArray(e) ? r[n] = d(e, s) : r[n] = e;
|
|
153
|
+
return r;
|
|
154
|
+
}
|
|
155
|
+
function g(t) {
|
|
156
|
+
return t == null ? !1 : typeof t == "boolean" ? t : typeof t == "number" ? t !== 0 : typeof t == "string" || Array.isArray(t) ? t.length > 0 : typeof t == "object" ? Object.keys(t).length > 0 : !!t;
|
|
157
|
+
}
|
|
158
|
+
function f(t, s) {
|
|
159
|
+
if ("path" in t && !("eq" in t) && !("neq" in t)) {
|
|
160
|
+
const r = p(s.data, t.path);
|
|
161
|
+
return g(r);
|
|
162
|
+
}
|
|
163
|
+
if ("and" in t)
|
|
164
|
+
return t.and.every((r) => f(r, s));
|
|
165
|
+
if ("or" in t)
|
|
166
|
+
return t.or.some((r) => f(r, s));
|
|
167
|
+
if ("not" in t)
|
|
168
|
+
return !f(t.not, s);
|
|
169
|
+
if ("eq" in t) {
|
|
170
|
+
const r = t, n = i(r.eq[0], s.data), e = i(r.eq[1], s.data);
|
|
171
|
+
return n === e;
|
|
172
|
+
}
|
|
173
|
+
if ("neq" in t) {
|
|
174
|
+
const r = t, n = i(r.neq[0], s.data), e = i(r.neq[1], s.data);
|
|
175
|
+
return n !== e;
|
|
176
|
+
}
|
|
177
|
+
if ("gt" in t) {
|
|
178
|
+
const r = t, n = i(r.gt[0], s.data), e = i(r.gt[1], s.data);
|
|
179
|
+
return n > e;
|
|
180
|
+
}
|
|
181
|
+
if ("gte" in t) {
|
|
182
|
+
const r = t, n = i(r.gte[0], s.data), e = i(r.gte[1], s.data);
|
|
183
|
+
return n >= e;
|
|
184
|
+
}
|
|
185
|
+
if ("lt" in t) {
|
|
186
|
+
const r = t, n = i(r.lt[0], s.data), e = i(r.lt[1], s.data);
|
|
187
|
+
return n < e;
|
|
188
|
+
}
|
|
189
|
+
if ("lte" in t) {
|
|
190
|
+
const r = t, n = i(r.lte[0], s.data), e = i(r.lte[1], s.data);
|
|
191
|
+
return n <= e;
|
|
192
|
+
}
|
|
193
|
+
return !0;
|
|
194
|
+
}
|
|
195
|
+
function A(t, s) {
|
|
196
|
+
if (t === void 0)
|
|
197
|
+
return !0;
|
|
198
|
+
if (typeof t == "boolean")
|
|
199
|
+
return t;
|
|
200
|
+
if ("auth" in t)
|
|
201
|
+
return t.auth === "signedIn" ? s.auth.isSignedIn : t.auth === "signedOut" ? !s.auth.isSignedIn : !0;
|
|
202
|
+
if ("path" in t && !("and" in t) && !("or" in t)) {
|
|
203
|
+
const r = p(s.data, t.path);
|
|
204
|
+
return g(r);
|
|
205
|
+
}
|
|
206
|
+
return f(t, s);
|
|
207
|
+
}
|
|
208
|
+
function N(t = {}, s = {}) {
|
|
209
|
+
return {
|
|
210
|
+
data: t,
|
|
211
|
+
auth: {
|
|
212
|
+
isSignedIn: s.isSignedIn ?? !1,
|
|
213
|
+
user: s.user
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
export {
|
|
218
|
+
E as createRekiCatalog,
|
|
219
|
+
N as createVisibilityContext,
|
|
220
|
+
A as evaluateVisibility,
|
|
221
|
+
p as getByPath,
|
|
222
|
+
v as initCatalog,
|
|
223
|
+
m as isDynamicPath,
|
|
224
|
+
y as loadSchemas,
|
|
225
|
+
i as resolveDynamicValue,
|
|
226
|
+
d as resolveProps,
|
|
227
|
+
b as setByPath
|
|
228
|
+
};
|
|
229
|
+
//# sourceMappingURL=catalog.js.map
|