@peak-ai/canvas 1.4.2-rc.7 → 1.4.2-rc.9
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/.babelrc +14 -0
- package/.eslintignore +5 -0
- package/.eslintrc.js +29 -0
- package/dist/package.json +58 -0
- package/dist/plugins/grapejs-plugin.js.map +1 -0
- package/dist/plugins/helpers/render-components.js +10 -0
- package/dist/plugins/helpers/render-components.js.map +1 -0
- package/dist/shadcn/components/ui/error-container.d.ts +22 -0
- package/dist/shadcn/components/ui/error-container.js +2 -0
- package/dist/shadcn/components/ui/error-container.js.map +1 -0
- package/dist/shadcn/components/ui/error-wrapper.d.ts +17 -0
- package/dist/shadcn/components/ui/error-wrapper.js +2 -0
- package/dist/shadcn/components/ui/error-wrapper.js.map +1 -0
- package/{shadcn → dist/shadcn}/components/ui/filter.js +2 -2
- package/dist/shadcn/components/ui/filter.js.map +1 -0
- package/dist/shadcn/components/ui/search.js +2 -0
- package/dist/shadcn/components/ui/search.js.map +1 -0
- package/{shadcn → dist/shadcn}/components/ui/skeleton.d.ts +1 -5
- package/dist/shadcn/components/ui/skeleton.js +2 -0
- package/dist/shadcn/components/ui/skeleton.js.map +1 -0
- package/package.json +44 -6
- package/scripts/build.ts +88 -0
- package/src/GrapesjsCanvas.tsx +332 -0
- package/src/constants/index.ts +27 -0
- package/src/helpers/compiled-table.css +2429 -0
- package/src/helpers/css.ts +2375 -0
- package/src/helpers/date-picker.ts +807 -0
- package/src/helpers/index.ts +13 -0
- package/src/helpers/merge-json.ts +106 -0
- package/src/index.styles.ts +58 -0
- package/src/index.ts +4 -0
- package/src/plugins/grapejs-plugin.tsx +139 -0
- package/src/plugins/helpers/data-table.tsx +284 -0
- package/src/plugins/helpers/extra.tsx +164 -0
- package/src/plugins/helpers/render-components.tsx +995 -0
- package/src/public/canvas.css +42 -0
- package/src/public/components-css/table/table-output.css +2436 -0
- package/src/public/components-css/table/table.css +30 -0
- package/src/public/output.css +2199 -0
- package/src/public/table.css +135 -0
- package/src/shadcn/components/ui/button.tsx +132 -0
- package/src/shadcn/components/ui/card.tsx +92 -0
- package/src/shadcn/components/ui/chart.tsx +324 -0
- package/src/shadcn/components/ui/checkbox.tsx +27 -0
- package/src/shadcn/components/ui/date-filter.tsx +816 -0
- package/src/shadcn/components/ui/error-container.tsx +125 -0
- package/src/shadcn/components/ui/error-wrapper.tsx +73 -0
- package/src/shadcn/components/ui/filter.tsx +364 -0
- package/src/shadcn/components/ui/hover-card.tsx +36 -0
- package/src/shadcn/components/ui/input.tsx +20 -0
- package/src/shadcn/components/ui/label.tsx +24 -0
- package/src/shadcn/components/ui/pagination.tsx +213 -0
- package/src/shadcn/components/ui/scroll-area.tsx +59 -0
- package/src/shadcn/components/ui/search.tsx +164 -0
- package/src/shadcn/components/ui/separator.tsx +26 -0
- package/src/shadcn/components/ui/skeleton.tsx +69 -0
- package/src/shadcn/components/ui/table.tsx +196 -0
- package/src/shadcn/components/ui/tabs.tsx +55 -0
- package/src/shadcn/components/ui/textarea.tsx +18 -0
- package/src/shadcn/components/ui/tooltip.tsx +87 -0
- package/src/shadcn/utils.ts +6 -0
- package/src/types/grapesjs-tailwind.d.ts +61 -0
- package/tailwind.config.js +5 -0
- package/tooling/tailwind-compiler/index.js +99 -0
- package/tooling/tailwind-compiler/node_modules/.yarn-integrity +37 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/cascade-layer-name-parser/CHANGELOG.md +10 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/cascade-layer-name-parser/LICENSE.md +20 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/cascade-layer-name-parser/README.md +32 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/cascade-layer-name-parser/dist/index.cjs +1 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/cascade-layer-name-parser/dist/index.d.ts +35 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/cascade-layer-name-parser/dist/index.mjs +1 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/cascade-layer-name-parser/package.json +67 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-parser-algorithms/CHANGELOG.md +9 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-parser-algorithms/LICENSE.md +20 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-parser-algorithms/README.md +119 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-parser-algorithms/dist/index.cjs +1 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-parser-algorithms/dist/index.d.ts +604 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-parser-algorithms/dist/index.mjs +1 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-parser-algorithms/package.json +65 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-tokenizer/CHANGELOG.md +9 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-tokenizer/LICENSE.md +20 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-tokenizer/README.md +111 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-tokenizer/dist/index.cjs +1 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-tokenizer/dist/index.d.ts +593 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-tokenizer/dist/index.mjs +1 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/css-tokenizer/package.json +62 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/utilities/CHANGELOG.md +9 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/utilities/LICENSE.md +18 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/utilities/README.md +25 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/utilities/dist/index.cjs +1 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/utilities/dist/index.d.ts +24 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/utilities/dist/index.mjs +1 -0
- package/tooling/tailwind-compiler/node_modules/@csstools/utilities/package.json +66 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/LICENSE +20 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/README.md +66 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/bin/autoprefixer +22 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/data/prefixes.js +1136 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/at-rule.js +35 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/autoprefixer.d.ts +95 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/autoprefixer.js +164 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/brackets.js +51 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/browsers.js +79 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/declaration.js +187 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/align-content.js +49 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/align-items.js +46 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/align-self.js +56 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/animation.js +17 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/appearance.js +23 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/autofill.js +26 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/backdrop-filter.js +20 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/background-clip.js +24 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/background-size.js +23 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/block-logical.js +40 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/border-image.js +15 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/border-radius.js +40 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/break-props.js +63 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/cross-fade.js +35 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/display-flex.js +65 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/display-grid.js +21 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/file-selector-button.js +26 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/filter-value.js +14 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/filter.js +19 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/flex-basis.js +39 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/flex-direction.js +72 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/flex-flow.js +53 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/flex-grow.js +30 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/flex-shrink.js +39 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/flex-spec.js +19 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/flex-wrap.js +19 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/flex.js +54 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/fullscreen.js +20 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/gradient.js +448 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/grid-area.js +34 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/grid-column-align.js +28 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/grid-end.js +52 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/grid-row-align.js +28 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/grid-row-column.js +33 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/grid-rows-columns.js +125 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/grid-start.js +33 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/grid-template-areas.js +84 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/grid-template.js +69 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/grid-utils.js +1113 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/image-rendering.js +48 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/image-set.js +18 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/inline-logical.js +34 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/intrinsic.js +61 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/justify-content.js +54 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/mask-border.js +38 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/mask-composite.js +88 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/order.js +42 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/overscroll-behavior.js +33 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/pixelated.js +34 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/place-self.js +32 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/placeholder-shown.js +19 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/placeholder.js +33 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/print-color-adjust.js +25 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js +23 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/text-decoration.js +25 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/text-emphasis-position.js +14 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/transform-decl.js +79 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/user-select.js +33 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/hacks/writing-mode.js +42 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/info.js +123 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/old-selector.js +67 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/old-value.js +22 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/prefixer.js +144 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/prefixes.js +428 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/processor.js +709 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/resolution.js +97 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/selector.js +150 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/supports.js +302 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/transition.js +329 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/utils.js +93 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/value.js +125 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/lib/vendor.js +14 -0
- package/tooling/tailwind-compiler/node_modules/autoprefixer/package.json +49 -0
- package/tooling/tailwind-compiler/node_modules/browserslist/LICENSE +20 -0
- package/tooling/tailwind-compiler/node_modules/browserslist/README.md +67 -0
- package/tooling/tailwind-compiler/node_modules/browserslist/browser.js +54 -0
- package/tooling/tailwind-compiler/node_modules/browserslist/cli.js +156 -0
- package/tooling/tailwind-compiler/node_modules/browserslist/error.d.ts +7 -0
- package/tooling/tailwind-compiler/node_modules/browserslist/error.js +12 -0
- package/tooling/tailwind-compiler/node_modules/browserslist/index.d.ts +224 -0
- package/tooling/tailwind-compiler/node_modules/browserslist/index.js +1235 -0
- package/tooling/tailwind-compiler/node_modules/browserslist/node.js +469 -0
- package/tooling/tailwind-compiler/node_modules/browserslist/package.json +44 -0
- package/tooling/tailwind-compiler/node_modules/browserslist/parse.js +78 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/LICENSE +395 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/README.md +6 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/agents.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/browserVersions.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/browsers.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/aac.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/accelerometer.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/ambient-light.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/apng.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/array-find-index.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/array-find.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/array-flat.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/array-includes.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/asmjs.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/async-functions.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/audio-api.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/audio.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/audiotracks.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/autofocus.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/auxclick.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/av1.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/avif.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/background-attachment.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/background-sync.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/battery-status.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/beacon.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/bigint.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/bloburls.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/border-image.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/border-radius.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/brotli.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/calc.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/canvas-text.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/canvas.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/ch-unit.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/classlist.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/clipboard.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/colr-v1.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/colr.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/console-basic.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/console-time.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/const.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/contenteditable.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/cors.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/credential-management.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/cryptography.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-all.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-animation.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-any-link.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-appearance.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-autofill.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-canvas.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-color-function.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-containment.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-counters.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-element-function.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-env-function.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-filters.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-first-line.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-fixed.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-gradients.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-grid.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-has.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-image-set.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-masks.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-nesting.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-opacity.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-overflow.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-page-break.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-reflections.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-regions.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-resize.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-sel2.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-sel3.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-selection.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-shapes.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-sticky.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-table.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-transitions.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-variables.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-when-else.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css-zoom.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css3-attr.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css3-colors.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/currentcolor.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/custom-elements.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/customevent.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/datalist.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/dataset.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/datauri.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/decorators.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/details.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/dialog.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/dnssec.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/do-not-track.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/document-policy.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/documenthead.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/dom-range.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/dommatrix.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/download.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/dragndrop.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/element-closest.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/element-from-point.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/eme.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/eot.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/es5.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/es6-class.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/es6-generators.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/es6-module.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/es6-number.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/es6.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/eventsource.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/feature-policy.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/fetch.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/fileapi.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/filereader.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/filereadersync.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/filesystem.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/flac.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/flexbox.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/flow-root.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/font-feature.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/font-kerning.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/font-loading.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/font-smooth.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/fontface.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/form-attribute.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/form-validation.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/forms.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/fullscreen.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/gamepad.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/geolocation.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/gyroscope.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/hashchange.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/heif.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/hevc.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/hidden.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/history.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/html5semantic.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/http2.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/http3.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/imagecapture.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/ime.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/import-maps.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/imports.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/indexeddb.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/inline-block.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/innertext.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-color.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-datetime.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-event.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-minlength.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-number.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-pattern.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-range.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-search.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/input-selection.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/internationalization.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/jpegxl.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/jpegxr.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/json.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/lazyload.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/let.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/localecompare.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/magnetometer.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/matchesselector.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/matchmedia.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mathml.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/maxlength.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/media-fragments.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mediasource.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/menu.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/meter.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/midi.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mp3.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mpeg4.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/multicolumn.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mutation-events.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/nav-timing.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/netinfo.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/notifications.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/object-entries.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/object-fit.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/object-observe.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/object-values.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/objectrtc.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/offline-apps.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/ogv.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/online-status.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/opus.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/outline.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/passkeys.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/passwordrules.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/path2d.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/payment-request.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/permissions-api.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/picture.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/ping.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/png-alpha.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/pointer-events.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/pointer.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/pointerlock.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/portals.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/progress.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/promise-finally.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/promises.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/proximity.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/proxy.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/push-api.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/queryselector.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/rellist.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/rem.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/resource-timing.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/ruby.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/run-in.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/script-async.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/script-defer.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/sdch.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/selection-api.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/selectlist.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/server-timing.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/setimmediate.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/shadowdom.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/sni.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/spdy.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/sql-storage.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/srcset.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/stream.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/streams.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/style-scoped.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/svg-css.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/svg-filters.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/svg-html.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/svg-html5.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/svg-img.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/svg-smil.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/svg.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/sxg.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/template-literals.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/template.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/temporal.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/testfeat.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/text-decoration.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/text-overflow.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/text-stroke.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/textcontent.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/textencoder.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/tls1-1.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/tls1-2.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/tls1-3.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/touch.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/transforms2d.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/transforms3d.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/trusted-types.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/ttf.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/typedarrays.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/u2f.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/url.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/use-strict.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/user-select-none.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/user-timing.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/vector-effect.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/vibration.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/video.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/videotracks.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/view-transitions.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/viewport-units.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wai-aria.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wake-lock.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wasm.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wav.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wbr-element.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/web-animation.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/web-serial.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/web-share.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webauthn.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webcodecs.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webgl.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webgl2.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webgpu.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webhid.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webm.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webnfc.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webp.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/websockets.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webtransport.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webusb.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webvr.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webvtt.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webworkers.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/webxr.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/will-change.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/woff.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/woff2.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/word-break.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/wordwrap.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/xhr2.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/xhtml.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features/zstd.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/features.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AD.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AF.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AI.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AL.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AO.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AS.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AT.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AU.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AW.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AX.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/AZ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BA.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BB.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BD.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BF.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BH.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BI.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BJ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BN.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BO.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BS.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BT.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BW.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BY.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/BZ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CA.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CD.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CF.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CH.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CI.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CK.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CL.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CN.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CO.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CU.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CV.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CX.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CY.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/CZ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/DE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/DJ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/DK.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/DM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/DO.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/DZ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/EC.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/EE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/EG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/ER.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/ES.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/ET.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/FI.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/FJ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/FK.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/FM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/FO.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/FR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GA.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GB.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GD.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GF.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GH.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GI.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GL.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GN.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GP.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GQ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GT.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GU.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GW.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/GY.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/HK.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/HN.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/HR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/HT.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/HU.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/ID.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/IE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/IL.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/IM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/IN.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/IQ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/IR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/IS.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/IT.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/JE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/JM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/JO.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/JP.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/KE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/KG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/KH.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/KI.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/KM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/KN.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/KP.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/KR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/KW.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/KY.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/KZ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/LA.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/LB.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/LC.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/LI.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/LK.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/LR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/LS.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/LT.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/LU.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/LV.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/LY.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MA.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MC.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MD.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/ME.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MH.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MK.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/ML.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MN.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MO.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MP.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MQ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MS.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MT.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MU.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MV.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MW.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MX.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MY.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/MZ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/NA.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/NC.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/NE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/NF.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/NG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/NI.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/NL.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/NO.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/NP.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/NR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/NU.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/NZ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/OM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PA.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PF.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PH.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PK.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PL.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PN.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PS.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PT.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PW.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/PY.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/QA.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/RE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/RO.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/RS.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/RU.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/RW.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SA.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SB.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SC.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SD.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SH.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SI.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SK.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SL.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SN.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SO.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/ST.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SV.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SY.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/SZ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TC.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TD.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TH.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TJ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TL.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TN.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TO.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TR.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TT.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TV.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TW.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/TZ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/UA.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/UG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/US.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/UY.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/UZ.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/VA.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/VC.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/VE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/VG.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/VI.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/VN.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/VU.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/WF.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/WS.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/YE.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/YT.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/ZA.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/ZM.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/ZW.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/alt-af.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/alt-an.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/alt-as.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/alt-eu.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/alt-na.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/alt-oc.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/alt-sa.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/data/regions/alt-ww.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/dist/lib/statuses.js +9 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/dist/lib/supported.js +9 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/dist/unpacker/agents.js +47 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/dist/unpacker/browserVersions.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/dist/unpacker/browsers.js +1 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/dist/unpacker/feature.js +52 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/dist/unpacker/features.js +6 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/dist/unpacker/index.js +4 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/dist/unpacker/region.js +22 -0
- package/tooling/tailwind-compiler/node_modules/caniuse-lite/package.json +34 -0
- package/tooling/tailwind-compiler/node_modules/electron-to-chromium/LICENSE +5 -0
- package/tooling/tailwind-compiler/node_modules/electron-to-chromium/README.md +186 -0
- package/tooling/tailwind-compiler/node_modules/electron-to-chromium/chromium-versions.js +78 -0
- package/tooling/tailwind-compiler/node_modules/electron-to-chromium/chromium-versions.json +1 -0
- package/tooling/tailwind-compiler/node_modules/electron-to-chromium/full-chromium-versions.js +2396 -0
- package/tooling/tailwind-compiler/node_modules/electron-to-chromium/full-chromium-versions.json +1 -0
- package/tooling/tailwind-compiler/node_modules/electron-to-chromium/full-versions.js +1550 -0
- package/tooling/tailwind-compiler/node_modules/electron-to-chromium/full-versions.json +1 -0
- package/tooling/tailwind-compiler/node_modules/electron-to-chromium/index.js +36 -0
- package/tooling/tailwind-compiler/node_modules/electron-to-chromium/package.json +44 -0
- package/tooling/tailwind-compiler/node_modules/electron-to-chromium/versions.js +192 -0
- package/tooling/tailwind-compiler/node_modules/electron-to-chromium/versions.json +1 -0
- package/tooling/tailwind-compiler/node_modules/escalade/dist/index.js +22 -0
- package/tooling/tailwind-compiler/node_modules/escalade/dist/index.mjs +22 -0
- package/tooling/tailwind-compiler/node_modules/escalade/index.d.mts +11 -0
- package/tooling/tailwind-compiler/node_modules/escalade/index.d.ts +15 -0
- package/tooling/tailwind-compiler/node_modules/escalade/license +9 -0
- package/tooling/tailwind-compiler/node_modules/escalade/package.json +74 -0
- package/tooling/tailwind-compiler/node_modules/escalade/readme.md +211 -0
- package/tooling/tailwind-compiler/node_modules/escalade/sync/index.d.mts +9 -0
- package/tooling/tailwind-compiler/node_modules/escalade/sync/index.d.ts +13 -0
- package/tooling/tailwind-compiler/node_modules/escalade/sync/index.js +18 -0
- package/tooling/tailwind-compiler/node_modules/escalade/sync/index.mjs +18 -0
- package/tooling/tailwind-compiler/node_modules/fraction.js/LICENSE +21 -0
- package/tooling/tailwind-compiler/node_modules/fraction.js/README.md +466 -0
- package/tooling/tailwind-compiler/node_modules/fraction.js/bigfraction.js +899 -0
- package/tooling/tailwind-compiler/node_modules/fraction.js/fraction.cjs +904 -0
- package/tooling/tailwind-compiler/node_modules/fraction.js/fraction.d.ts +60 -0
- package/tooling/tailwind-compiler/node_modules/fraction.js/fraction.js +891 -0
- package/tooling/tailwind-compiler/node_modules/fraction.js/fraction.min.js +18 -0
- package/tooling/tailwind-compiler/node_modules/fraction.js/package.json +55 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/LICENSE +20 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/README.md +39 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/async/index.browser.cjs +69 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/async/index.browser.js +34 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/async/index.cjs +71 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/async/index.d.ts +56 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/async/index.js +35 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/async/index.native.js +26 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/async/package.json +12 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/bin/nanoid.cjs +55 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/index.browser.cjs +72 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/index.browser.js +34 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/index.cjs +85 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/index.d.cts +91 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/index.d.ts +91 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/index.js +45 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/nanoid.js +1 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/non-secure/index.cjs +34 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/non-secure/index.js +21 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/non-secure/package.json +6 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/package.json +89 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/url-alphabet/index.cjs +7 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/url-alphabet/index.js +3 -0
- package/tooling/tailwind-compiler/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/tooling/tailwind-compiler/node_modules/node-releases/LICENSE +21 -0
- package/tooling/tailwind-compiler/node_modules/node-releases/README.md +12 -0
- package/tooling/tailwind-compiler/node_modules/node-releases/data/processed/envs.json +1 -0
- package/tooling/tailwind-compiler/node_modules/node-releases/data/release-schedule/release-schedule.json +1 -0
- package/tooling/tailwind-compiler/node_modules/node-releases/package.json +22 -0
- package/tooling/tailwind-compiler/node_modules/normalize-range/index.js +54 -0
- package/tooling/tailwind-compiler/node_modules/normalize-range/license +21 -0
- package/tooling/tailwind-compiler/node_modules/normalize-range/package.json +46 -0
- package/tooling/tailwind-compiler/node_modules/normalize-range/readme.md +148 -0
- package/tooling/tailwind-compiler/node_modules/picocolors/LICENSE +15 -0
- package/tooling/tailwind-compiler/node_modules/picocolors/README.md +21 -0
- package/tooling/tailwind-compiler/node_modules/picocolors/package.json +25 -0
- package/tooling/tailwind-compiler/node_modules/picocolors/picocolors.browser.js +4 -0
- package/tooling/tailwind-compiler/node_modules/picocolors/picocolors.d.ts +5 -0
- package/tooling/tailwind-compiler/node_modules/picocolors/picocolors.js +75 -0
- package/tooling/tailwind-compiler/node_modules/picocolors/types.d.ts +51 -0
- package/tooling/tailwind-compiler/node_modules/postcss/LICENSE +20 -0
- package/tooling/tailwind-compiler/node_modules/postcss/README.md +28 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/at-rule.d.ts +140 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/at-rule.js +25 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/comment.d.ts +68 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/comment.js +13 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/container.d.ts +480 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/container.js +447 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/css-syntax-error.d.ts +248 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/css-syntax-error.js +133 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/declaration.d.ts +151 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/declaration.js +24 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/document.d.ts +69 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/document.js +33 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/fromJSON.d.ts +9 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/fromJSON.js +54 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/input.d.ts +206 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/input.js +251 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/lazy-result.d.ts +190 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/lazy-result.js +550 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/list.d.ts +60 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/list.js +58 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/map-generator.js +368 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/no-work-result.d.ts +46 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/no-work-result.js +138 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/node.d.ts +541 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/node.js +434 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/parse.d.ts +9 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/parse.js +42 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/parser.js +611 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/postcss.d.mts +69 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/postcss.d.ts +458 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/postcss.js +101 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/postcss.mjs +30 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/previous-map.d.ts +81 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/previous-map.js +144 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/processor.d.ts +115 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/processor.js +67 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/result.d.ts +205 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/result.js +42 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/root.d.ts +87 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/root.js +61 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/rule.d.ts +126 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/rule.js +27 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/stringifier.d.ts +46 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/stringifier.js +353 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/stringify.d.ts +9 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/stringify.js +11 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/symbols.js +5 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/terminal-highlight.js +70 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/tokenize.js +266 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/warn-once.js +13 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/warning.d.ts +147 -0
- package/tooling/tailwind-compiler/node_modules/postcss/lib/warning.js +37 -0
- package/tooling/tailwind-compiler/node_modules/postcss/package.json +88 -0
- package/tooling/tailwind-compiler/node_modules/postcss-custom-properties/CHANGELOG.md +11 -0
- package/tooling/tailwind-compiler/node_modules/postcss-custom-properties/LICENSE.md +21 -0
- package/tooling/tailwind-compiler/node_modules/postcss-custom-properties/README.md +173 -0
- package/tooling/tailwind-compiler/node_modules/postcss-custom-properties/dist/index.cjs +1 -0
- package/tooling/tailwind-compiler/node_modules/postcss-custom-properties/dist/index.d.ts +12 -0
- package/tooling/tailwind-compiler/node_modules/postcss-custom-properties/dist/index.mjs +1 -0
- package/tooling/tailwind-compiler/node_modules/postcss-custom-properties/package.json +75 -0
- package/tooling/tailwind-compiler/node_modules/postcss-value-parser/LICENSE +22 -0
- package/tooling/tailwind-compiler/node_modules/postcss-value-parser/README.md +263 -0
- package/tooling/tailwind-compiler/node_modules/postcss-value-parser/lib/index.d.ts +177 -0
- package/tooling/tailwind-compiler/node_modules/postcss-value-parser/lib/index.js +28 -0
- package/tooling/tailwind-compiler/node_modules/postcss-value-parser/lib/parse.js +321 -0
- package/tooling/tailwind-compiler/node_modules/postcss-value-parser/lib/stringify.js +48 -0
- package/tooling/tailwind-compiler/node_modules/postcss-value-parser/lib/unit.js +120 -0
- package/tooling/tailwind-compiler/node_modules/postcss-value-parser/lib/walk.js +22 -0
- package/tooling/tailwind-compiler/node_modules/postcss-value-parser/package.json +58 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/LICENSE +28 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/README.md +765 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/array-set.js +121 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/base64.js +67 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/source-node.d.ts +1 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/source-node.js +413 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/lib/util.js +594 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/package.json +71 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/source-map.d.ts +104 -0
- package/tooling/tailwind-compiler/node_modules/source-map-js/source-map.js +8 -0
- package/tooling/tailwind-compiler/node_modules/update-browserslist-db/LICENSE +20 -0
- package/tooling/tailwind-compiler/node_modules/update-browserslist-db/README.md +22 -0
- package/tooling/tailwind-compiler/node_modules/update-browserslist-db/check-npm-version.js +17 -0
- package/tooling/tailwind-compiler/node_modules/update-browserslist-db/cli.js +42 -0
- package/tooling/tailwind-compiler/node_modules/update-browserslist-db/index.d.ts +6 -0
- package/tooling/tailwind-compiler/node_modules/update-browserslist-db/index.js +341 -0
- package/tooling/tailwind-compiler/node_modules/update-browserslist-db/package.json +40 -0
- package/tooling/tailwind-compiler/node_modules/update-browserslist-db/utils.js +25 -0
- package/tooling/tailwind-compiler/package.json +11 -0
- package/tooling/tailwind-compiler/yarn.lock +123 -0
- package/tsconfig.build.json +15 -0
- package/tsconfig.json +8 -0
- package/plugins/grapejs-plugin.js.map +0 -1
- package/plugins/helpers/render-components.js +0 -11
- package/plugins/helpers/render-components.js.map +0 -1
- package/shadcn/components/ui/filter.js.map +0 -1
- package/shadcn/components/ui/search.js +0 -2
- package/shadcn/components/ui/search.js.map +0 -1
- package/shadcn/components/ui/skeleton.js +0 -2
- package/shadcn/components/ui/skeleton.js.map +0 -1
- /package/{GrapesjsCanvas.d.ts → dist/GrapesjsCanvas.d.ts} +0 -0
- /package/{GrapesjsCanvas.js → dist/GrapesjsCanvas.js} +0 -0
- /package/{GrapesjsCanvas.js.map → dist/GrapesjsCanvas.js.map} +0 -0
- /package/{constants → dist/constants}/index.d.ts +0 -0
- /package/{constants → dist/constants}/index.js +0 -0
- /package/{constants → dist/constants}/index.js.map +0 -0
- /package/{helpers → dist/helpers}/compiled-table.css +0 -0
- /package/{helpers → dist/helpers}/css.d.ts +0 -0
- /package/{helpers → dist/helpers}/css.js +0 -0
- /package/{helpers → dist/helpers}/css.js.map +0 -0
- /package/{helpers → dist/helpers}/date-picker.d.ts +0 -0
- /package/{helpers → dist/helpers}/date-picker.js +0 -0
- /package/{helpers → dist/helpers}/date-picker.js.map +0 -0
- /package/{helpers → dist/helpers}/index.d.ts +0 -0
- /package/{helpers → dist/helpers}/index.js +0 -0
- /package/{helpers → dist/helpers}/index.js.map +0 -0
- /package/{helpers → dist/helpers}/merge-json.d.ts +0 -0
- /package/{helpers → dist/helpers}/merge-json.js +0 -0
- /package/{helpers → dist/helpers}/merge-json.js.map +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{index.js.map → dist/index.js.map} +0 -0
- /package/{index.styles.d.ts → dist/index.styles.d.ts} +0 -0
- /package/{index.styles.js → dist/index.styles.js} +0 -0
- /package/{index.styles.js.map → dist/index.styles.js.map} +0 -0
- /package/{plugins → dist/plugins}/grapejs-plugin.d.ts +0 -0
- /package/{plugins → dist/plugins}/grapejs-plugin.js +0 -0
- /package/{plugins → dist/plugins}/helpers/data-table.d.ts +0 -0
- /package/{plugins → dist/plugins}/helpers/data-table.js +0 -0
- /package/{plugins → dist/plugins}/helpers/data-table.js.map +0 -0
- /package/{plugins → dist/plugins}/helpers/extra.d.ts +0 -0
- /package/{plugins → dist/plugins}/helpers/extra.js +0 -0
- /package/{plugins → dist/plugins}/helpers/extra.js.map +0 -0
- /package/{plugins → dist/plugins}/helpers/render-components.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/button.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/button.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/button.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/card.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/card.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/card.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/chart.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/chart.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/chart.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/checkbox.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/checkbox.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/checkbox.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/date-filter.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/date-filter.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/date-filter.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/filter.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/hover-card.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/hover-card.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/hover-card.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/input.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/input.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/input.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/label.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/label.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/label.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/pagination.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/pagination.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/pagination.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/scroll-area.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/scroll-area.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/scroll-area.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/search.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/separator.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/separator.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/separator.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/table.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/table.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/table.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/tabs.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/tabs.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/tabs.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/textarea.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/textarea.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/textarea.js.map +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/tooltip.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/tooltip.js +0 -0
- /package/{shadcn → dist/shadcn}/components/ui/tooltip.js.map +0 -0
- /package/{shadcn → dist/shadcn}/utils.d.ts +0 -0
- /package/{shadcn → dist/shadcn}/utils.js +0 -0
- /package/{shadcn → dist/shadcn}/utils.js.map +0 -0
- /package/{types → dist/types}/grapesjs-tailwind.d.js +0 -0
- /package/{types → dist/types}/grapesjs-tailwind.d.js.map +0 -0
package/.babelrc
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"presets": [
|
|
3
|
+
"@babel/preset-typescript",
|
|
4
|
+
["@babel/preset-react", { "runtime": "automatic" }],
|
|
5
|
+
["@babel/preset-env", { "modules": false, "loose": true }]
|
|
6
|
+
],
|
|
7
|
+
"plugins": [
|
|
8
|
+
"babel-plugin-styled-components",
|
|
9
|
+
["@babel/plugin-transform-class-properties", { "loose": true }],
|
|
10
|
+
["@babel/plugin-transform-private-methods", { "loose": true }],
|
|
11
|
+
["@babel/plugin-transform-private-property-in-object", { "loose": true }],
|
|
12
|
+
"@babel/plugin-transform-runtime"
|
|
13
|
+
]
|
|
14
|
+
}
|
package/.eslintignore
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
root: true,
|
|
5
|
+
parserOptions: {
|
|
6
|
+
project: path.resolve(__dirname, 'tsconfig.json'),
|
|
7
|
+
tsconfigRootDir: __dirname,
|
|
8
|
+
},
|
|
9
|
+
settings: {
|
|
10
|
+
'import/resolver': {
|
|
11
|
+
typescript: {
|
|
12
|
+
project: path.resolve(__dirname, 'tsconfig.json'),
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
extends: [
|
|
17
|
+
'@peak-ai/eslint-config-peak-api',
|
|
18
|
+
'@peak-ai/eslint-config-peak-base',
|
|
19
|
+
'@peak-ai/eslint-config-peak-typescript',
|
|
20
|
+
],
|
|
21
|
+
overrides: [
|
|
22
|
+
{
|
|
23
|
+
files: ['**/*.test.ts', '**/*.test.tsx'],
|
|
24
|
+
env: {
|
|
25
|
+
jest: true,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@peak-ai/canvas",
|
|
3
|
+
"author": "squad-builder-experience",
|
|
4
|
+
"license": "UNLICENSED",
|
|
5
|
+
"version": "1.4.2-rc.9",
|
|
6
|
+
"description": "",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@peak-ai/ais-components": "6.41.0",
|
|
9
|
+
"@radix-ui/react-checkbox": "^1.3.2",
|
|
10
|
+
"@radix-ui/react-hover-card": "^1.1.7",
|
|
11
|
+
"@radix-ui/react-label": "^2.1.3",
|
|
12
|
+
"@radix-ui/react-scroll-area": "^1.2.5",
|
|
13
|
+
"@radix-ui/react-separator": "^1.1.3",
|
|
14
|
+
"@radix-ui/react-slot": "^1.2.0",
|
|
15
|
+
"@radix-ui/react-tabs": "1.0.0",
|
|
16
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
|
17
|
+
"@tailwindcss/cli": "^4.1.3",
|
|
18
|
+
"@types/chroma-js": "^3.1.1",
|
|
19
|
+
"@types/react-datepicker": "^7.0.0",
|
|
20
|
+
"chroma-js": "^3.1.2",
|
|
21
|
+
"class-variance-authority": "^0.7.1",
|
|
22
|
+
"clsx": "^2.1.1",
|
|
23
|
+
"date-fns": "^4.1.0",
|
|
24
|
+
"grapesjs": "0.22.6",
|
|
25
|
+
"grapesjs-tailwind": "1.0.7",
|
|
26
|
+
"lodash": "^4.17.21",
|
|
27
|
+
"lucide-react": "^0.525.0",
|
|
28
|
+
"markdown": "^0.5.0",
|
|
29
|
+
"markdown-to-jsx": "7.4.1",
|
|
30
|
+
"plotly.js": "2.34.0",
|
|
31
|
+
"react": "^17.0.2",
|
|
32
|
+
"react-datepicker": "^8.4.0",
|
|
33
|
+
"react-dom": "^17.0.2",
|
|
34
|
+
"react-plotly.js": "^2.6.0",
|
|
35
|
+
"react-resizable-panels": "^2.1.9",
|
|
36
|
+
"styled-components": "^5.0.0",
|
|
37
|
+
"tailwind-merge": "^3.2.0",
|
|
38
|
+
"tailwindcss": "^4.1.3",
|
|
39
|
+
"tailwindcss-animate": "^1.0.7",
|
|
40
|
+
"tslib": "^2.7.0",
|
|
41
|
+
"tw-animate-css": "^1.2.5",
|
|
42
|
+
"sherlockjs": "^1.4.2",
|
|
43
|
+
"date-fns-tz": "^2.0.0"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": "^17.0.2",
|
|
47
|
+
"react-dom": "^17.0.2"
|
|
48
|
+
},
|
|
49
|
+
"resolutions": {
|
|
50
|
+
"@babel/traverse": "7.25.7",
|
|
51
|
+
"minimist": "1.2.6",
|
|
52
|
+
"tar": "^6.1.11"
|
|
53
|
+
},
|
|
54
|
+
"main": "index.js",
|
|
55
|
+
"types": "index.d.ts",
|
|
56
|
+
"module": "index.js",
|
|
57
|
+
"sideEffects": false
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grapejs-plugin.js","names":["ReactDOM","getRenderers","jsx","_jsx","createGrapesjsShadcnGenericPlugin","mode","performInteraction","renderedComponents","grapesjsShadcnGenericPlugin","editor","DomComponents","addType","model","defaults","tagName","droppable","componentName","componentProps","traits","view","events","handleSlotInput","e","target","slot","dataset","text","innerText","props","get","startsWith","_props$data","idx","parseInt","split","dataKeys","Object","keys","data","headerMapper","key","set","_extends","render","_this","compName","compProps","JSON","parse","err","console","error","isEditable","onChange","renderers","Renderer","gjsModel","el","children","components","tabsContent","querySelectorAll","each","childModel","i","childView","createView","appendChild","innerHTML","_this$em$get$getType","ComponentView","em","getType","warn","config","componentTypes","remove","unmountComponentAtNode"],"sources":["../../src/plugins/grapejs-plugin.tsx"],"sourcesContent":["/* eslint-disable import/no-named-as-default-member */\n/* eslint-disable func-names */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport ReactDOM from 'react-dom';\nimport { Editor, Component } from 'grapesjs';\nimport { getRenderers } from './helpers/render-components';\n\nexport function createGrapesjsShadcnGenericPlugin(\n mode: 'editor' | 'preview',\n performInteraction: (payload: Record<string, any>) => void,\n renderedComponents: Record<string, Component> = {},\n) {\n return function grapesjsShadcnGenericPlugin(editor: Editor): void {\n editor.DomComponents.addType('shadcn-generic', {\n model: {\n defaults: {\n tagName: 'div',\n droppable: false,\n componentName: 'Card',\n componentProps: {},\n traits: [],\n },\n },\n view: {\n events: {\n 'input [data-slot]': 'handleSlotInput',\n } as any,\n handleSlotInput(e: Event) {\n const target = e.target as HTMLElement;\n const slot = target.dataset.slot;\n const text = target.innerText;\n\n const props = this.model.get('componentProps') || {};\n\n if (!slot) {\n return;\n }\n\n if (slot.startsWith('table-header-')) {\n const idx = parseInt(slot.split('-')[2], 10);\n const dataKeys = Object.keys(props.data?.[0] || {});\n\n if (!props.headerMapper) {\n props.headerMapper = {};\n }\n\n const key = dataKeys[idx];\n\n if (key) {\n props.headerMapper[key] = text;\n }\n } else {\n props[slot] = text;\n }\n\n this.model.set('componentProps', {\n ...props,\n });\n },\n render: function () {\n const compName: string = this.model.get('componentName');\n let compProps: any = this.model.get('componentProps');\n\n if (typeof compProps === 'string') {\n try {\n compProps = JSON.parse(compProps);\n } catch (err) {\n // eslint-disable-next-line no-console\n console.error('Invalid JSON in componentProps', err);\n compProps = {};\n }\n }\n\n compProps.isEditable = mode === 'editor';\n compProps.performInteraction = performInteraction;\n\n compProps.onChange = (data: Record<string, any>) => {\n this.model.set('componentProps', {\n ...this.model.get('componentProps'),\n ...data,\n });\n };\n\n const renderers = getRenderers();\n const Renderer = renderers[compName];\n\n if (Renderer) {\n if (compName === 'Tabs') {\n ReactDOM.render(<Renderer {...compProps} gjsModel={this.model} />, this.el);\n\n const children = this.model.components();\n const tabsContent = this.el.querySelectorAll('.tabs-content');\n children.each((childModel, i) => {\n const childView = this.createView(childModel);\n\n if (childView) {\n childView.render();\n tabsContent[i].appendChild(childView.el);\n }\n });\n } else {\n ReactDOM.render(<Renderer {...compProps} gjsModel={this.model} />, this.el);\n }\n } else {\n this.el.innerHTML = `<div>Unsupported component: ${compName}</div>`;\n }\n\n renderedComponents[this.model.get('id')] = this.model;\n\n return this;\n },\n createView(model: any) {\n const ComponentView = this.em.get('DomComponents').getType(model.get('type'))?.view;\n\n if (!ComponentView) {\n // eslint-disable-next-line no-console\n console.warn('No view found for component type:', model.get('type'));\n\n return null;\n }\n\n const view = new ComponentView({\n model,\n config: this.config,\n componentTypes: this.componentTypes,\n });\n\n return view;\n },\n remove: function () {\n // eslint-disable-next-line import/no-named-as-default-member\n ReactDOM.unmountComponentAtNode(this.el);\n\n return this;\n },\n },\n });\n };\n}\n"],"mappings":"qDAAA,sDACA,+BACA,uDACA,MAAO,CAAAA,QAAQ,KAAM,WAAW,CAEhC,OAASC,YAAY,KAAQ,6BAA6B,CAAC,OAAAC,GAAA,IAAAC,IAAA,yBAE3D,MAAO,SAAS,CAAAC,iCAAiCA,CAC/CC,IAA0B,CAC1BC,kBAA0D,CAC1DC,kBAA6C,CAC7C,IADAA,kBAA6C,WAA7CA,kBAA6C,CAAG,CAAC,CAAC,CAElD,MAAO,SAAS,CAAAC,2BAA2BA,CAACC,MAAc,CAAQ,CAChEA,MAAM,CAACC,aAAa,CAACC,OAAO,CAAC,gBAAgB,CAAE,CAC7CC,KAAK,CAAE,CACLC,QAAQ,CAAE,CACRC,OAAO,CAAE,KAAK,CACdC,SAAS,CAAE,KAAK,CAChBC,aAAa,CAAE,MAAM,CACrB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,MAAM,CAAE,IAAI,CAACA,MAAM,CACnBC,cAAc,CAAE,IAAI,CAACA,cACvB,CAAC,CAAC,CAEF,MAAO,CAAAxD,IACT,CAAC,CACDyD,MAAM,CAAE,QAAR,CAAAA,MAAMA,CAAA,CAAc,CAClB;AACA5E,QAAQ,CAAC6E,sBAAsB,CAAC,IAAI,CAACpB,EAAE,CAAC,CAExC,MAAO,KACT,CACF,CACF,CAAC,CACH,CACF","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _asyncToGenerator from"@babel/runtime/helpers/asyncToGenerator";import _extends from"@babel/runtime/helpers/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/objectWithoutPropertiesLoose";var _excluded=["gjsModel"],_excluded2=["isEditable","gjsModel"],_excluded3=["isEditable","gjsModel"],_excluded4=["gjsModel","performInteraction"],_excluded5=["gjsModel"];import _regeneratorRuntime from"@babel/runtime/regenerator";function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}/* eslint-disable no-nested-ternary *//* eslint-disable @typescript-eslint/ban-ts-comment *//* eslint-disable func-style *//* eslint-disable @typescript-eslint/no-empty-function *//* eslint-disable func-names *//* eslint-disable @typescript-eslint/no-explicit-any */import chroma from"chroma-js";import React,{useEffect,useRef,useState}from"react";import{renderNoDataFallback}from"./extra";import{CircleAlert}from"lucide-react";import{theme}from"@peak-ai/ais-components/theme";import Markdown from"markdown-to-jsx";import{Bar,BarChart,CartesianGrid,Legend,Line,LineChart,Pie,PieChart,ResponsiveContainer,XAxis,YAxis}from"recharts/lib";// @ts-ignore
|
|
2
|
+
import*as domutil from"recharts/lib/util/DOMUtils";import{TooltipButton}from"../../shadcn/components/ui/button";import{Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle}from"../../shadcn/components/ui/card";import{ChartContainer,ChartTooltip,ChartTooltipContent}from"../../shadcn/components/ui/chart";import{renderFilter}from"../../shadcn/components/ui/filter";import{ScrollArea,ScrollBar}from"../../shadcn/components/ui/scroll-area";import{renderSearch}from"../../shadcn/components/ui/search";import{CardLoader,ChartLoader,MarkdownLoader}from"../../shadcn/components/ui/skeleton";import{Tabs,TabsContent,TabsList,TabsTrigger}from"../../shadcn/components/ui/tabs";import{cn}from"../../shadcn/utils";import{getAffectedComponentsWithLoader}from"../../helpers";import{DataTable}from"./data-table";import{ErrorWrapper}from"../../shadcn/components/ui/error-wrapper";// Monkey-patching the getOffset function to use iframe's window instead of global one
|
|
3
|
+
// REMEMBER TO UDPATE THIS WHEN recharts IS UPGRADED
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";domutil.getOffset=function(el){var html=el.ownerDocument.documentElement;var box={top:0,left:0};if(typeof el.getBoundingClientRect!=="undefined"){box=el.getBoundingClientRect()}var iframe=document.querySelector(".gjs-frame");var iframeWindow=iframe==null?void 0:iframe.contentWindow;return{top:box.top+iframeWindow.pageYOffset-html.clientTop,left:box.left+iframeWindow.pageXOffset-html.clientLeft}};var baseColors=[[theme.colors.Blue_100,theme.colors.Blue_30],[theme.colors.Purpley_100,theme.colors.Purpley_30],[theme.colors.Light_Bluish_Green,"#06601b"],[theme.colors.Wild_Strawberry,"#4d001c"]];function getNColors(n){var colors=[];for(var _iterator=_createForOfIteratorHelperLoose(baseColors),_step;!(_step=_iterator()).done;){var baseColor=_step.value;// eslint-disable-next-line import/no-named-as-default-member
|
|
6
|
+
colors.push(chroma.scale(baseColor).mode("lab").colors(n))}function getOneColor(existing){var color=null;do{var base=colors[Math.floor(Math.random()*colors.length)];var selectedColorIndex=Math.floor(Math.random()*base.length);color=base[selectedColorIndex]}while(existing.includes(color));return color}var selectedColors=[];for(var i=0;i<n;i++){selectedColors.push(getOneColor(selectedColors))}return selectedColors}/* TODO: Loader remains */export function renderActionCard(props){var gjsModel=props.gjsModel,rest=_objectWithoutPropertiesLoose(props,_excluded);var _useState=useState(_extends({},props)),allData=_useState[0],setAllData=_useState[1];var _allData$headerConten=allData.headerContent,headerContent=_allData$headerConten===void 0?"Default Action Card Title":_allData$headerConten,icon=allData.icon,_allData$bodyContent=allData.bodyContent,bodyContent=_allData$bodyContent===void 0?"Default body content. Click to edit.":_allData$bodyContent;var _useState2=useState(_extends({},gjsModel.get("attributes"))),setAttributes=_useState2[1];useEffect(function(){gjsModel.on("change:componentProps",function(){setAllData(_extends({},gjsModel.get("componentProps")))})},[]);useEffect(function(){gjsModel.on("change:attributes",function(){setAttributes(_extends({},gjsModel.get("attributes")))})},[]);var defaultClasses="bg-white text-black p-4 rounded-lg shadow border flex flex-col h-full";return/*#__PURE__*/_jsx(Card,_extends({className:defaultClasses,isEditable:false,contentEditable:false},rest,{children:/*#__PURE__*/_jsx(CardContent,{className:"p-0",isEditable:false,contentEditable:false,children:/*#__PURE__*/_jsx("div",{className:"px-4 py-3",children:/*#__PURE__*/_jsxs("div",{className:"flex items-start",children:[/*#__PURE__*/_jsx("span",{className:"text-5xl mr-2","aria-hidden":"true",children:icon}),/*#__PURE__*/_jsxs("div",{className:"flex-1",children:[/*#__PURE__*/_jsx("div",{className:"text-xl font-semibold",children:headerContent}),!bodyContent?/*#__PURE__*/_jsxs("span",{className:"flex flex-row items-center px-3 py-2",children:[/*#__PURE__*/_jsx(CircleAlert,{className:"w-3 h-3 text-gray-400 mr-1"}),/*#__PURE__*/_jsx("p",{className:"text-sm text-gray-500 max-w-md text-center",children:"No data available for given filters"})]}):/*#__PURE__*/_jsx("div",{className:"text-base leading-relaxed mt-1",children:bodyContent})]})]})})})}))}export function renderCard(props){var _props$isEditable=props.isEditable,isEditable=_props$isEditable===void 0?false:_props$isEditable,gjsModel=props.gjsModel,rest=_objectWithoutPropertiesLoose(props,_excluded2);var _useState3=useState(_extends({},props)),allData=_useState3[0],setAllData=_useState3[1];var headerContent=allData.headerContent,headerDescription=allData.headerDescription,bodyContent=allData.bodyContent,footerContent=allData.footerContent,footerClass=allData.footerClass,footerIcon=allData.footerIcon,contentMetadata=allData.contentMetadata,contentMetadataClass=allData.contentMetadataClass,className=allData.className;var _useState4=useState(_extends({},gjsModel.get("attributes"))),attributes=_useState4[0],setAttributes=_useState4[1];useEffect(function(){gjsModel.on("change:componentProps",function(){setAllData(_extends({},gjsModel.get("componentProps")))})},[]);useEffect(function(){gjsModel.on("change:attributes",function(){setAttributes(_extends({},gjsModel.get("attributes")))})},[]);var defaultClasses="bg-white text-black p-4 rounded-lg shadow border flex flex-col h-full";var defaultFooterClasses="text-sm";var defaultContentMetadataClasses="text-xs";var mergedCardClassName=className?cn(defaultClasses,className):defaultClasses;var mergedFooterClassName=footerClass?cn(defaultFooterClasses,footerClass):defaultFooterClasses;var mergedContentMetadataClassName=contentMetadataClass?cn(defaultContentMetadataClasses,contentMetadataClass):defaultContentMetadataClasses;function getCardContent(){if(attributes.interactionApiInProgress||attributes.loading){return/*#__PURE__*/_jsx(CardContent,{children:/*#__PURE__*/_jsx(CardLoader,{})})}return/*#__PURE__*/_jsxs(React.Fragment,{children:[/*#__PURE__*/_jsxs(CardHeader,{children:[/*#__PURE__*/_jsx(CardTitle,{"data-slot":"headerContent",contentEditable:isEditable,className:"text-lg",children:headerContent}),/*#__PURE__*/_jsx(CardDescription,{"data-slot":"headerDescription",contentEditable:isEditable,className:"text-sm",children:headerDescription})]}),!bodyContent?/*#__PURE__*/_jsxs("span",{className:"flex flex-row items-center px-3 py-2",children:[/*#__PURE__*/_jsx(CircleAlert,{className:"w-3 h-3 text-gray-400 mr-1"}),/*#__PURE__*/_jsx("p",{className:"text-sm text-gray-500 max-w-md text-center",children:"No data available for given filters"})]}):/*#__PURE__*/_jsxs(CardContent,{"data-slot":"bodyContent",contentEditable:false,className:"flex-grow",children:[/*#__PURE__*/_jsx("div",{className:"text-3xl font-semibold truncate",children:bodyContent}),contentMetadata&&/*#__PURE__*/_jsx("div",{className:mergedContentMetadataClassName,style:{color:"#2A44D4"},children:contentMetadata})]}),/*#__PURE__*/_jsxs(CardFooter,{"data-slot":"footerContent",contentEditable:isEditable,className:cn(mergedFooterClassName),children:[footerIcon&&/*#__PURE__*/_jsx("span",{className:"mr-2","aria-hidden":"true",children:footerIcon}),footerContent]})]})}return/*#__PURE__*/_jsx(Card,_extends({},rest,{className:mergedCardClassName,children:getCardContent()}))}function renderChartComponent(chartType,data,config){if(!data||data.length===0){return renderNoDataFallback()}switch(chartType){case"pie":return/*#__PURE__*/_jsxs(PieChart,{children:[data.length>=20&&/*#__PURE__*/_jsx(ChartTooltip,{cursor:false,content:/*#__PURE__*/_jsx(ChartTooltipContent,{hideLabel:true})}),/*#__PURE__*/_jsx(Pie,{data:data,dataKey:config.dataKey,nameKey:config.nameKey,innerRadius:60,strokeWidth:10,label:data.length<20?function(_ref){var name=_ref.name,percent=_ref.percent;return name+": "+(percent*100).toFixed(0)+"%"}:undefined,labelLine:false})]});case"bar":config.dataKeys=config.dataKeys||[];return/*#__PURE__*/_jsxs(BarChart,_extends({data:data},config.chartUi,{children:[/*#__PURE__*/_jsx(CartesianGrid,{vertical:false}),/*#__PURE__*/_jsx(XAxis,{dataKey:config.xAxis}),/*#__PURE__*/_jsx(YAxis,{}),/*#__PURE__*/_jsx(Legend,{align:"left",wrapperStyle:{marginLeft:20}}),config.dataKeys.map(function(_ref2){var key=_ref2.key,name=_ref2.name,color=_ref2.color;return/*#__PURE__*/_jsx(Bar,{dataKey:key,fill:color!=null?color:"#4caf50",name:name,radius:2},key)}),/*#__PURE__*/_jsx(ChartTooltip,{cursor:false,content:/*#__PURE__*/_jsx(ChartTooltipContent,{indicator:"dashed"})})]}));case"line":config.dataKeys=config.dataKeys||[];return/*#__PURE__*/_jsxs(LineChart,{data:data,children:[/*#__PURE__*/_jsx(CartesianGrid,{vertical:false}),/*#__PURE__*/_jsx(XAxis,{dataKey:config.xAxis}),/*#__PURE__*/_jsx(YAxis,{}),/*#__PURE__*/_jsx(ChartTooltip,{cursor:false,content:/*#__PURE__*/_jsx(ChartTooltipContent,{indicator:"dashed"})}),config.dataKeys.map(function(_ref3){var key=_ref3.key,name=_ref3.name,color=_ref3.color;return/*#__PURE__*/_jsx(Line,{type:"monotone",dataKey:key,stroke:color!=null?color:"#4caf50",name:name},key)}),/*#__PURE__*/_jsx(Legend,{align:"left"})]});default:return/*#__PURE__*/_jsxs(PieChart,{children:[data.length>=20&&/*#__PURE__*/_jsx(ChartTooltip,{cursor:false,content:/*#__PURE__*/_jsx(ChartTooltipContent,{hideLabel:true})}),/*#__PURE__*/_jsx(Pie,{data:data,dataKey:config.dataKey,nameKey:config.nameKey,innerRadius:60,strokeWidth:10,label:data.length<20?function(_ref4){var name=_ref4.name,percent=_ref4.percent;return name+": "+(percent*100).toFixed(0)+"%"}:undefined,labelLine:false})]})}}export function renderChart(props){var _props$isEditable2=props.isEditable,isEditable=_props$isEditable2===void 0?false:_props$isEditable2,gjsModel=props.gjsModel,rest=_objectWithoutPropertiesLoose(props,_excluded3);var _useState5=useState(_extends({},props)),allData=_useState5[0],setAllData=_useState5[1];var _useState6=useState(_extends({},gjsModel.get("attributes"))),attributes=_useState6[0],setAttributes=_useState6[1];var containerRef=useRef(null);var _useState7=useState(0),containerWidth=_useState7[0],setContainerWidth=_useState7[1];useEffect(function(){gjsModel.on("change:componentProps",function(){setAllData(_extends({},gjsModel.get("componentProps")))})},[]);useEffect(function(){gjsModel.on("change:attributes",function(){setAttributes(_extends({},gjsModel.get("attributes")))});console.log("Attributes",attributes)},[]);useEffect(function(){var updateContainerWidth=function updateContainerWidth(){if(containerRef.current){setContainerWidth(containerRef.current.offsetWidth)}};updateContainerWidth();window.addEventListener("resize",updateContainerWidth);return function(){return window.removeEventListener("resize",updateContainerWidth)}},[]);var _allData$config=allData.config,config=_allData$config===void 0?{}:_allData$config,_allData$chartType=allData.chartType,chartType=_allData$chartType===void 0?"pie":_allData$chartType,_allData$chartData=allData.chartData,chartData=_allData$chartData===void 0?[]:_allData$chartData,className=allData.className,_allData$title=allData.title,title=_allData$title===void 0?"Title":_allData$title,_allData$subTitle=allData.subTitle,subTitle=_allData$subTitle===void 0?"Subtitle":_allData$subTitle;var defaultClasses="aspect-auto h-[250px] w-full";var mergedClasses=className?cn(defaultClasses,className):defaultClasses;if(chartType==="pie"){var colors=getNColors(chartData.length);for(var i=0;i<chartData.length;i++){var data=chartData[i];if(!data.fill){data.fill=colors[i]}}}else if(!config.color){config.color=baseColors[Math.floor(Math.random()*baseColors.length)]}var width=undefined;var totalDataPoints=0;// Helper function to get responsive config
|
|
7
|
+
var getResponsiveConfig=function getResponsiveConfig(){if(chartType==="bar"&&totalDataPoints>15&&containerWidth>0&&width&&width<=containerWidth){// If chart fits in container, use responsive behavior
|
|
8
|
+
return _extends({},config,{chartUi:{}})}return config};if(chartType==="bar"){totalDataPoints=chartData.length*config.dataKeys.length;if(totalDataPoints>15){width=totalDataPoints*20+config.dataKeys.length*8*chartData.length+chartData.length*15;config.chartUi={barCategoryGap:"10%",width:width}}else{config.chartUi={}}}var chartUi=attributes.interactionApiInProgress||attributes.loading?/*#__PURE__*/_jsx(ChartLoader,{}):!chartData?renderNoDataFallback():/*#__PURE__*/_jsx(React.Fragment,{children:chartType==="bar"&&totalDataPoints>15&&config.chartUi&&width&&(containerWidth===0||width>containerWidth)?/*#__PURE__*/_jsx("div",{className:"w-full",children:/*#__PURE__*/_jsxs(ScrollArea,{className:"w-full",children:[/*#__PURE__*/_jsx("div",{style:{minWidth:width+"px",width:"max-content"},children:/*#__PURE__*/_jsx(ResponsiveContainer,{width:width,height:250,children:/*#__PURE__*/_jsx(ChartContainer,_extends({},rest,{config:config,className:mergedClasses,children:renderChartComponent(chartType,chartData,config)}))})}),/*#__PURE__*/_jsx(ScrollBar,{orientation:"horizontal"})]})}):/*#__PURE__*/_jsx(ResponsiveContainer,{width:"100%",height:250,children:/*#__PURE__*/_jsx(ChartContainer,_extends({},rest,{config:getResponsiveConfig(),className:mergedClasses,children:renderChartComponent(chartType,chartData,getResponsiveConfig())}))})});return/*#__PURE__*/_jsxs(Card,{className:"shadow border mt-2 mb-2",children:[/*#__PURE__*/_jsxs(CardHeader,{children:[/*#__PURE__*/_jsx(CardTitle,{"data-slot":"title",contentEditable:isEditable,className:"text-2xl",children:title}),/*#__PURE__*/_jsx(CardDescription,{"data-slot":"subTitle",contentEditable:isEditable,className:"text-sm",children:subTitle})]}),/*#__PURE__*/_jsx(CardContent,{ref:containerRef,"data-slot":"bodyContent",contentEditable:false,className:"px-6",children:chartUi})]})}export function renderTable(props){var gjsModel=props.gjsModel,_props$performInterac=props.performInteraction,performInteraction=_props$performInterac===void 0?function(){}:_props$performInterac,rest=_objectWithoutPropertiesLoose(props,_excluded4);var _useState8=useState(_extends({},props)),allData=_useState8[0],setAllData=_useState8[1];var cardRef=useRef(null);var _useState9=useState(_extends({},gjsModel.get("attributes"))),attributes=_useState9[0],setAttributes=_useState9[1];var _allData$data=allData.data,data=_allData$data===void 0?[]:_allData$data,_allData$headerMapper=allData.headerMapper,rawHeaderMapper=_allData$headerMapper===void 0?{}:_allData$headerMapper,className=allData.className,_allData$isEditable=allData.isEditable,isEditable=_allData$isEditable===void 0?false:_allData$isEditable,_allData$title2=allData.title,title=_allData$title2===void 0?"Title":_allData$title2,_allData$subTitle2=allData.subTitle,subTitle=_allData$subTitle2===void 0?"Subtitle":_allData$subTitle2,_allData$actions=allData.actions,actions=_allData$actions===void 0?[]:_allData$actions,pagination=allData.pagination;var headerMapper=function(){var cleaned=_extends({},rawHeaderMapper);if("id"in cleaned){delete cleaned.id}if(data.length>0){var dataKeys=Object.keys(data[0]||{});return Object.fromEntries(Object.entries(cleaned).filter(function(_ref5){var key=_ref5[0];return dataKeys.includes(key)}))}return cleaned}();var sortConfig=function(_gjsModel$get,_ref7){var _ref6=(_gjsModel$get=gjsModel.get("componentProps"))!=null?_gjsModel$get:{},sortColumn=_ref6.sortColumn,sortDirection=_ref6.sortDirection;return sortColumn&&sortDirection?(_ref7={},_ref7[sortColumn]=sortDirection,_ref7):{}}();useEffect(function(){gjsModel.on("change:componentProps",function(){setAllData(_extends({},gjsModel.get("componentProps")))})},[]);useEffect(function(){gjsModel.on("change:attributes",function(){setAttributes(_extends({},gjsModel.get("attributes")))});console.log("attributes",attributes)},[]);var parsedData=function(){if(typeof data==="object"&&data!==null&&data.name==="__peak_placeholder"){return[]}if(!Array.isArray(data)){return[]}return data.map(function(datum){var newData=_extends({},datum);delete newData.id;return newData})}();function onRowAction(_x,_x2){return _onRowAction.apply(this,arguments)}function _onRowAction(){_onRowAction=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(rowIndex,actionId){var id;return _regeneratorRuntime.wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:id=gjsModel.get("id");_context.next=3;return performInteraction({id:actionId,interactionType:"tableButton",payload:{row:data[rowIndex],tableId:id},affectedComponents:[]});case 3:case"end":return _context.stop()}},_callee)}));return _onRowAction.apply(this,arguments)}function onPageChange(_x3,_x4){return _onPageChange.apply(this,arguments)}function _onPageChange(){_onPageChange=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(pageNumber,pageSize){var _gjsModel$get2;var id,_ref8,sortColumn,sortDirection;return _regeneratorRuntime.wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:id=gjsModel.get("id");_ref8=(_gjsModel$get2=gjsModel.get("componentProps"))!=null?_gjsModel$get2:{},sortColumn=_ref8.sortColumn,sortDirection=_ref8.sortDirection;_context2.next=4;return performInteraction({id:id,interactionType:"pagination",payload:_extends({pageNumber:pageNumber,pageSize:pageSize},sortColumn&&sortDirection&&{sortColumn:sortColumn,sortDirection:sortDirection}),affectedComponents:getAffectedComponentsWithLoader([id],true)});case 4:case"end":return _context2.stop()}},_callee2)}));return _onPageChange.apply(this,arguments)}function handleSort(_x5,_x6){return _handleSort.apply(this,arguments)}function _handleSort(){_handleSort=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(column,direction){var currentProps,id;return _regeneratorRuntime.wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:currentProps=gjsModel.get("componentProps");id=gjsModel.get("id");gjsModel.set("componentProps",_extends({},currentProps,{sortColumn:direction?column:null,sortDirection:direction}));_context3.next=5;return performInteraction({id:id,interactionType:"tableSort",payload:{sortColumn:direction?column:null,sortDirection:direction,tableId:id},affectedComponents:getAffectedComponentsWithLoader([id],true)});case 5:case"end":return _context3.stop()}},_callee3)}));return _handleSort.apply(this,arguments)}return/*#__PURE__*/_jsxs(Card,{ref:cardRef,className:"shadow border","data-component-type":"table",children:[/*#__PURE__*/_jsxs(CardHeader,{children:[/*#__PURE__*/_jsx(CardTitle,{"data-slot":"title",contentEditable:isEditable,className:"text-2xl",children:title}),/*#__PURE__*/_jsx(CardDescription,{"data-slot":"subTitle",contentEditable:isEditable,className:"text-sm",children:subTitle})]}),/*#__PURE__*/_jsx(CardContent,{"data-slot":"bodyContent",contentEditable:false,children:/*#__PURE__*/_jsx(DataTable,{data:parsedData,headerMapper:headerMapper,className:className,isEditable:isEditable,actions:actions,pagination:pagination,isLoading:attributes.interactionApiInProgress,onRowAction:onRowAction,onPageChange:onPageChange,onSort:handleSort,sortConfig:sortConfig,otherProps:rest})})]})}export function renderTab(props){var tabsWidth=200;if(props.tabs.length>4){tabsWidth=150}return/*#__PURE__*/_jsxs(Tabs,{defaultValue:props.defaultValue,children:[/*#__PURE__*/_jsx("div",{className:"text-center mb-4",children:/*#__PURE__*/_jsx(TabsList,{className:"bg-gray-300",children:props.tabs.map(function(tab){return/*#__PURE__*/_jsx(TabsTrigger,{value:tab,className:"text-md w-["+tabsWidth+"px]",children:tab},tab)})})}),props.tabs.map(function(tab){return/*#__PURE__*/_jsx(TabsContent,{value:tab,className:"tabs-content"},tab)})]})}export function renderMarkdown(props){var gjsModel=props.gjsModel,rest=_objectWithoutPropertiesLoose(props,_excluded5);var _useState10=useState(_extends({},props)),allData=_useState10[0],setAllData=_useState10[1];var _useState11=useState(_extends({},gjsModel.get("attributes"))),attributes=_useState11[0],setAttributes=_useState11[1];useEffect(function(){gjsModel.on("change:componentProps",function(){setAllData(_extends({},gjsModel.get("componentProps")))})},[]);useEffect(function(){gjsModel.on("change:attributes",function(){setAttributes(_extends({},gjsModel.get("attributes")))})},[]);var _useState12=useState(false),isEditing=_useState12[0],setIsEditing=_useState12[1];var editRef=useRef(null);var startEditing=function startEditing(){setIsEditing(true);setTimeout(function(){setupEditor()},0)};var setupEditor=function setupEditor(){if(!editRef.current){return}var editor=editRef.current;editor.innerHTML="";editor.textContent=allData.summaryText;editor.focus()};// Save changes and exit editing mode
|
|
9
|
+
var saveChanges=function saveChanges(){if(!editRef.current){return}var content=editRef.current.innerText||"";setAllData(function(prev){return _extends({},prev,{summaryText:content})});setIsEditing(false);editRef.current.innerHTML=""};var markdownStyles={ul:{props:{className:"list-disc"}},h1:{props:{className:"text-4xl font-bold leading-[4rem]"}},h2:{props:{className:"text-3xl font-bold leading-[3rem]"}},h3:{props:{className:"text-2xl font-bold leading-[2rem]"}},h4:{props:{className:"text-xl font-bold leading-[2.5rem]"}},h5:{props:{className:"text-lg font-bold leading-[2.5rem]"}},h6:{props:{className:"text-base font-bold leading-[2rem]"}}};if(attributes.loading){return/*#__PURE__*/_jsx(MarkdownLoader,{})}if(!allData.isEditable){return/*#__PURE__*/_jsx("div",_extends({className:"px-[1em]"},rest,{children:/*#__PURE__*/_jsx("div",{"data-slot":"summaryText",children:/*#__PURE__*/_jsx(Markdown,{options:{overrides:markdownStyles},children:allData.summaryText})})}))}return/*#__PURE__*/_jsx("div",_extends({className:"p-[1em]"},rest,{children:isEditing?/*#__PURE__*/_jsx("div",{ref:editRef,contentEditable:true,onBlur:saveChanges,"data-slot":"summaryText",className:"p-2 min-h-[100px] whitespace-pre-wrap",suppressContentEditableWarning:true,style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}}):/*#__PURE__*/_jsx("div",{onClick:startEditing,"data-slot":"summaryText",style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:/*#__PURE__*/_jsx(Markdown,{options:{overrides:markdownStyles},children:allData.summaryText})})}))}export function renderButton(props){var _props$isEditable3=props.isEditable,isEditable=_props$isEditable3===void 0?false:_props$isEditable3,gjsModel=props.gjsModel,_props$performInterac2=props.performInteraction,performInteraction=_props$performInterac2===void 0?function(){}:_props$performInterac2;var _useState13=useState(_extends({},props)),allData=_useState13[0],setAllData=_useState13[1];var _useState14=useState(_extends({},gjsModel.get("attributes"))),attributes=_useState14[0],setAttributes=_useState14[1];useEffect(function(){gjsModel.on("change:componentProps",function(){setAllData(_extends({},gjsModel.get("componentProps")))})},[]);useEffect(function(){gjsModel.on("change:attributes",function(){setAttributes(_extends({},gjsModel.get("attributes")))})},[]);var text=allData.text,className=allData.className,payload=allData.payload,_allData$variant=allData.variant,variant=_allData$variant===void 0?"default":_allData$variant,_allData$size=allData.size,size=_allData$size===void 0?"sm":_allData$size,affectedComponents=allData.affectedComponents,tooltipContent=allData.tooltipContent;function interact(){var id=gjsModel.get("id");performInteraction({id:id,interactionType:"button",affectedComponents:getAffectedComponentsWithLoader([id].concat(affectedComponents),true),payload:payload})}return/*#__PURE__*/_jsx(TooltipButton,{className:className,isEditable:isEditable,interact:interact,attributes:attributes,variant:variant,size:size,text:text,tooltipContent:tooltipContent})}var renderActionCardWithError=function renderActionCardWithError(props){return/*#__PURE__*/_jsx(ErrorWrapper,{componentProps:props,children:renderActionCard(props)})};var renderButtonWithError=function renderButtonWithError(props){return/*#__PURE__*/_jsx(ErrorWrapper,{componentProps:props,children:renderButton(props)})};var renderCardWithError=function renderCardWithError(props){return/*#__PURE__*/_jsxs(ErrorWrapper,{componentProps:props,children:["console.log(props)",renderCard(props)]})};var renderChartWithError=function renderChartWithError(props){return/*#__PURE__*/_jsxs(ErrorWrapper,{componentProps:props,children:["console.log(props)",renderChart(props)]})};var renderFilterWithError=function renderFilterWithError(props){return/*#__PURE__*/_jsx(ErrorWrapper,{componentProps:props,children:renderFilter(props)})};var renderMarkdownWithError=function renderMarkdownWithError(props){return/*#__PURE__*/_jsx(ErrorWrapper,{componentProps:props,children:renderMarkdown(props)})};var renderSearchWithError=function renderSearchWithError(props){return/*#__PURE__*/_jsx(ErrorWrapper,{componentProps:props,children:renderSearch(props)})};var renderTableWithError=function renderTableWithError(props){return/*#__PURE__*/_jsx(ErrorWrapper,{componentProps:props,children:renderTable(props)})};var renderTabWithError=function renderTabWithError(props){return/*#__PURE__*/_jsx(ErrorWrapper,{componentProps:props,children:renderTab(props)})};export function getRenderers(){return{ActionCard:renderActionCardWithError,Button:renderButtonWithError,Card:renderCardWithError,Chart:renderChartWithError,Filter:renderFilterWithError,Markdown:renderMarkdownWithError,Search:renderSearchWithError,Table:renderTableWithError,Tabs:renderTabWithError}}
|
|
10
|
+
//# sourceMappingURL=render-components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-components.js","names":["chroma","React","useEffect","useRef","useState","renderNoDataFallback","CircleAlert","theme","Markdown","Bar","BarChart","CartesianGrid","Legend","Line","LineChart","Pie","PieChart","ResponsiveContainer","XAxis","YAxis","domutil","TooltipButton","Card","CardContent","CardDescription","CardFooter","CardHeader","CardTitle","ChartContainer","ChartTooltip","ChartTooltipContent","renderFilter","ScrollArea","ScrollBar","renderSearch","CardLoader","ChartLoader","MarkdownLoader","Tabs","TabsContent","TabsList","TabsTrigger","cn","getAffectedComponentsWithLoader","DataTable","ErrorWrapper","jsx","_jsx","jsxs","_jsxs","getOffset","el","html","ownerDocument","documentElement","box","top","left","getBoundingClientRect","iframe","document","querySelector","iframeWindow","contentWindow","pageYOffset","clientTop","pageXOffset","clientLeft","baseColors","colors","Blue_100","Blue_30","Purpley_100","Purpley_30","Light_Bluish_Green","Wild_Strawberry","getNColors","n","_iterator","_createForOfIteratorHelperLoose","_step","done","baseColor","value","push","scale","mode","getOneColor","existing","color","base","Math","floor","random","length","selectedColorIndex","includes","selectedColors","i","renderActionCard","props","gjsModel","rest","_objectWithoutPropertiesLoose","_excluded","_useState","_extends","allData","setAllData","_allData$headerConten","headerContent","icon","_allData$bodyContent","bodyContent","_useState2","get","setAttributes","on","defaultClasses","className","isEditable","contentEditable","children","renderCard","_props$isEditable","_excluded2","_useState3","headerDescription","footerContent","footerClass","footerIcon","contentMetadata","contentMetadataClass","_useState4","attributes","defaultFooterClasses","defaultContentMetadataClasses","mergedCardClassName","mergedFooterClassName","mergedContentMetadataClassName","getCardContent","interactionApiInProgress","loading","Fragment","style","renderChartComponent","chartType","data","config","cursor","content","hideLabel","dataKey","nameKey","innerRadius","strokeWidth","label","_ref","name","percent","toFixed","undefined","labelLine","dataKeys","chartUi","vertical","xAxis","align","wrapperStyle","marginLeft","map","_ref2","key","fill","radius","indicator","_ref3","type","stroke","_ref4","renderChart","_props$isEditable2","_excluded3","_useState5","_useState6","containerRef","_useState7","containerWidth","setContainerWidth","console","log","updateContainerWidth","current","offsetWidth","window","addEventListener","removeEventListener","_allData$config","_allData$chartType","_allData$chartData","chartData","_allData$title","title","_allData$subTitle","subTitle","mergedClasses","width","totalDataPoints","getResponsiveConfig","barCategoryGap","minWidth","height","orientation","ref","renderTable","_props$performInterac","performInteraction","_excluded4","_useState8","cardRef","_useState9","_allData$data","_allData$headerMapper","headerMapper","rawHeaderMapper","_allData$isEditable","_allData$title2","_allData$subTitle2","_allData$actions","actions","pagination","cleaned","id","Object","keys","fromEntries","entries","filter","_ref5","sortConfig","_gjsModel$get","_ref7","_ref6","sortColumn","sortDirection","parsedData","Array","isArray","datum","newData","onRowAction","_x","_x2","_onRowAction","apply","arguments","_asyncToGenerator","_regeneratorRuntime","mark","_callee","rowIndex","actionId","wrap","_callee$","_context","prev","next","interactionType","payload","row","tableId","affectedComponents","stop","onPageChange","_x3","_x4","_onPageChange","_callee2","pageNumber","pageSize","_gjsModel$get2","_ref8","_callee2$","_context2","handleSort","_x5","_x6","_handleSort","_callee3","column","direction","currentProps","_callee3$","_context3","set","isLoading","onSort","otherProps","renderTab","tabsWidth","tabs","defaultValue","tab","renderMarkdown","_excluded5","_useState10","_useState11","_useState12","isEditing","setIsEditing","editRef","startEditing","setTimeout","setupEditor","editor","innerHTML","textContent","summaryText","focus","saveChanges","innerText","markdownStyles","ul","h1","h2","h3","h4","h5","h6","options","overrides","onBlur","suppressContentEditableWarning","whiteSpace","wordWrap","onClick","renderButton","_props$isEditable3","_props$performInterac2","_useState13","_useState14","text","_allData$variant","variant","_allData$size","size","tooltipContent","interact","concat","renderActionCardWithError","componentProps","renderButtonWithError","renderCardWithError","renderChartWithError","renderFilterWithError","renderMarkdownWithError","renderSearchWithError","renderTableWithError","renderTabWithError","getRenderers","ActionCard","Button","Chart","Filter","Search","Table"],"sources":["../../../src/plugins/helpers/render-components.tsx"],"sourcesContent":["/* eslint-disable no-nested-ternary */\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n/* eslint-disable func-style */\n/* eslint-disable @typescript-eslint/no-empty-function */\n/* eslint-disable func-names */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport chroma from 'chroma-js';\nimport React, {JSX, useEffect, useRef, useState} from 'react';\nimport {renderNoDataFallback} from './extra'\nimport {CircleAlert} from 'lucide-react';\n\nimport {theme} from '@peak-ai/ais-components/theme';\n\nimport Markdown from 'markdown-to-jsx';\n\nimport {\n Bar,\n BarChart,\n CartesianGrid,\n Legend,\n Line,\n LineChart,\n Pie,\n PieChart,\n ResponsiveContainer,\n XAxis,\n YAxis,\n} from 'recharts/lib';\n\n// @ts-ignore\nimport * as domutil from 'recharts/lib/util/DOMUtils';\n\nimport {TooltipButton} from '../../shadcn/components/ui/button';\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from '../../shadcn/components/ui/card';\nimport {ChartContainer, ChartTooltip, ChartTooltipContent,} from '../../shadcn/components/ui/chart';\nimport {renderFilter} from '../../shadcn/components/ui/filter';\nimport {ScrollArea, ScrollBar} from '../../shadcn/components/ui/scroll-area';\nimport {renderSearch} from '../../shadcn/components/ui/search';\nimport {CardLoader, ChartLoader, MarkdownLoader} from '../../shadcn/components/ui/skeleton';\nimport {SortDirection} from '../../shadcn/components/ui/table';\nimport {Tabs, TabsContent, TabsList, TabsTrigger} from '../../shadcn/components/ui/tabs';\n\nimport {cn} from '../../shadcn/utils';\nimport {getAffectedComponentsWithLoader} from '../../helpers';\nimport {DataTable} from './data-table';\nimport { ErrorWrapper } from '../../shadcn/components/ui/error-wrapper';\n\n// Monkey-patching the getOffset function to use iframe's window instead of global one\n// REMEMBER TO UDPATE THIS WHEN recharts IS UPGRADED\n// @ts-ignore\ndomutil.getOffset = (el: HTMLElement): {\n top: number;\n left: number;\n} => {\n const html = el.ownerDocument.documentElement;\n let box = { top: 0, left: 0 };\n\n if (typeof el.getBoundingClientRect !== 'undefined') {\n box = el.getBoundingClientRect();\n }\n\n const iframe = document.querySelector('.gjs-frame');\n const iframeWindow = (iframe as any)?.contentWindow;\n\n return {\n top: box.top + iframeWindow.pageYOffset - html.clientTop,\n left: box.left + iframeWindow.pageXOffset - html.clientLeft,\n };\n};\n\n\nconst baseColors = [\n [theme.colors.Blue_100, theme.colors.Blue_30],\n [theme.colors.Purpley_100, theme.colors.Purpley_30],\n [theme.colors.Light_Bluish_Green, '#06601b'],\n [theme.colors.Wild_Strawberry, '#4d001c'],\n];\n\nfunction getNColors(n: number) {\n const colors: Array<string[]> = [];\n\n for (const baseColor of baseColors) {\n // eslint-disable-next-line import/no-named-as-default-member\n colors.push(chroma.scale(baseColor).mode('lab').colors(n));\n }\n\n function getOneColor(existing: Array<string>) {\n let color: null | string = null;\n\n do {\n const base = colors[Math.floor(Math.random() * colors.length)];\n const selectedColorIndex = Math.floor(Math.random() * base.length);\n color = base[selectedColorIndex];\n } while (existing.includes(color));\n\n return color as string;\n }\n\n const selectedColors: Array<string> = [];\n\n for (let i = 0; i < n; i++) {\n selectedColors.push(getOneColor(selectedColors));\n }\n\n return selectedColors;\n}\n\n/* TODO: Loader remains */\nexport function renderActionCard(props: any): JSX.Element {\n const { gjsModel, ...rest } = props;\n\n const [allData, setAllData] = useState({\n ...props,\n });\n\n const {\n headerContent = 'Default Action Card Title',\n icon,\n bodyContent = 'Default body content. Click to edit.',\n } = allData;\n\n const [, setAttributes] = useState({\n ...gjsModel.get('attributes'),\n });\n\n useEffect(() => {\n gjsModel.on('change:componentProps', () => {\n setAllData({\n ...gjsModel.get('componentProps'),\n });\n });\n }, []);\n\n useEffect(() => {\n gjsModel.on('change:attributes', () => {\n setAttributes({\n ...gjsModel.get('attributes'),\n });\n });\n }, []);\n\n const defaultClasses = 'bg-white text-black p-4 rounded-lg shadow border flex flex-col h-full';\n\n return (\n <Card className={defaultClasses} isEditable={false} contentEditable={false} {...rest}>\n <CardContent className=\"p-0\" isEditable={false} contentEditable={false}>\n <div className=\"px-4 py-3\">\n <div className=\"flex items-start\">\n <span className=\"text-5xl mr-2\" aria-hidden=\"true\">\n {icon}\n </span>\n <div className=\"flex-1\">\n <div className=\"text-xl font-semibold\">{headerContent}</div>\n {!bodyContent ? (\n <span className=\"flex flex-row items-center px-3 py-2\">\n <CircleAlert className=\"w-3 h-3 text-gray-400 mr-1\" />\n <p className=\"text-sm text-gray-500 max-w-md text-center\">\n No data available for given filters\n </p>\n </span>\n ) : (\n <div className=\"text-base leading-relaxed mt-1\">{bodyContent}</div>\n )}\n </div>\n </div>\n </div>\n </CardContent>\n </Card>\n );\n}\n\nexport function renderCard(props: any): JSX.Element {\n const { isEditable = false, gjsModel, ...rest } = props;\n\n const [allData, setAllData] = useState({\n ...props,\n });\n\n const {\n headerContent,\n headerDescription,\n bodyContent,\n footerContent,\n footerClass,\n footerIcon,\n contentMetadata,\n contentMetadataClass,\n className,\n } = allData;\n\n const [attributes, setAttributes] = useState({\n ...gjsModel.get('attributes'),\n });\n\n useEffect(() => {\n gjsModel.on('change:componentProps', () => {\n setAllData({\n ...gjsModel.get('componentProps'),\n });\n });\n }, []);\n\n useEffect(() => {\n gjsModel.on('change:attributes', () => {\n setAttributes({\n ...gjsModel.get('attributes'),\n });\n });\n }, []);\n\n const defaultClasses = 'bg-white text-black p-4 rounded-lg shadow border flex flex-col h-full';\n const defaultFooterClasses = 'text-sm';\n const defaultContentMetadataClasses = 'text-xs';\n const mergedCardClassName = className ? cn(defaultClasses, className) : defaultClasses;\n const mergedFooterClassName = footerClass\n ? cn(defaultFooterClasses, footerClass)\n : defaultFooterClasses;\n const mergedContentMetadataClassName = contentMetadataClass\n ? cn(defaultContentMetadataClasses, contentMetadataClass)\n : defaultContentMetadataClasses;\n\n function getCardContent() {\n\n if (attributes.interactionApiInProgress || attributes.loading) {\n return (\n <CardContent>\n <CardLoader />\n </CardContent>\n );\n }\n\n return (\n <React.Fragment>\n <CardHeader>\n <CardTitle data-slot=\"headerContent\" contentEditable={isEditable} className=\"text-lg\">\n {headerContent}\n </CardTitle>\n <CardDescription\n data-slot=\"headerDescription\"\n contentEditable={isEditable}\n className=\"text-sm\"\n >\n {headerDescription}\n </CardDescription>\n </CardHeader>\n\n {!bodyContent ? (\n <span className=\"flex flex-row items-center px-3 py-2\">\n <CircleAlert className=\"w-3 h-3 text-gray-400 mr-1\" />\n <p className=\"text-sm text-gray-500 max-w-md text-center\">\n No data available for given filters\n </p>\n </span>\n ) : (\n <CardContent data-slot=\"bodyContent\" contentEditable={false} className=\"flex-grow\">\n <div className=\"text-3xl font-semibold truncate\">{bodyContent}</div>\n {contentMetadata && (\n <div className={mergedContentMetadataClassName} style={{ color: '#2A44D4' }}>\n {contentMetadata}\n </div>\n )}\n </CardContent>\n )}\n\n <CardFooter\n data-slot=\"footerContent\"\n contentEditable={isEditable}\n className={cn(mergedFooterClassName)}\n >\n {footerIcon && (\n <span className=\"mr-2\" aria-hidden=\"true\">\n {footerIcon}\n </span>\n )}\n {footerContent}\n </CardFooter>\n </React.Fragment>\n );\n }\n\n return (\n <Card {...rest} className={mergedCardClassName}>\n {getCardContent()}\n </Card>\n );\n}\n\nfunction renderChartComponent(chartType: string, data: any, config: any): JSX.Element {\n if (!data || data.length === 0) {\n return renderNoDataFallback();\n }\n\n switch (chartType) {\n case 'pie':\n return (\n <PieChart>\n {data.length >= 20 && (\n <ChartTooltip cursor={false} content={<ChartTooltipContent hideLabel />} />\n )}\n <Pie\n data={data}\n dataKey={config.dataKey}\n nameKey={config.nameKey}\n innerRadius={60}\n strokeWidth={10}\n label={\n data.length < 20\n ? ({ name, percent }: { name: string; percent: number; }) => `${name}: ${(percent * 100).toFixed(0)}%`\n : undefined\n }\n labelLine={false}\n />\n </PieChart>\n );\n case 'bar':\n config.dataKeys = config.dataKeys || [];\n\n return (\n <BarChart data={data} {...config.chartUi}>\n <CartesianGrid vertical={false} />\n <XAxis dataKey={config.xAxis} />\n <YAxis />\n <Legend align=\"left\" wrapperStyle={{ marginLeft: 20 }} />\n {config.dataKeys.map(\n ({ key, name, color }: { key: string; name: string; color: string }) => {\n return (\n <Bar dataKey={key} fill={color ?? '#4caf50'} name={name} key={key} radius={2} />\n );\n },\n )}\n <ChartTooltip cursor={false} content={<ChartTooltipContent indicator=\"dashed\" />} />\n </BarChart>\n );\n case 'line':\n config.dataKeys = config.dataKeys || [];\n\n return (\n <LineChart data={data}>\n <CartesianGrid vertical={false} />\n <XAxis dataKey={config.xAxis} />\n <YAxis />\n <ChartTooltip cursor={false} content={<ChartTooltipContent indicator=\"dashed\" />} />\n {config.dataKeys.map(\n ({ key, name, color }: { key: string; name: string; color: string }) => {\n return (\n <Line\n type=\"monotone\"\n dataKey={key}\n stroke={color ?? '#4caf50'}\n name={name}\n key={key}\n />\n );\n },\n )}\n <Legend align=\"left\" />\n </LineChart>\n );\n default:\n return (\n <PieChart>\n {data.length >= 20 && (\n <ChartTooltip cursor={false} content={<ChartTooltipContent hideLabel />} />\n )}\n <Pie\n data={data}\n dataKey={config.dataKey}\n nameKey={config.nameKey}\n innerRadius={60}\n strokeWidth={10}\n label={\n data.length < 20\n ? ({ name, percent }: { name: string; percent: number; }) => `${name}: ${(percent * 100).toFixed(0)}%`\n : undefined\n }\n labelLine={false}\n />\n </PieChart>\n );\n }\n}\n\nexport function renderChart(props: any): JSX.Element {\n const { isEditable = false, gjsModel, ...rest } = props;\n\n const [allData, setAllData] = useState({\n ...props,\n });\n\n const [attributes, setAttributes] = useState({\n ...gjsModel.get('attributes'),\n });\n\n const containerRef = useRef<HTMLDivElement>(null);\n const [containerWidth, setContainerWidth] = useState<number>(0);\n\n useEffect(() => {\n gjsModel.on('change:componentProps', () => {\n setAllData({\n ...gjsModel.get('componentProps'),\n });\n });\n }, []);\n\n useEffect(() => {\n gjsModel.on('change:attributes', () => {\n setAttributes({\n ...gjsModel.get('attributes'),\n });\n });\n console.log(\"Attributes\",attributes)\n }, []);\n\n useEffect(() => {\n const updateContainerWidth = () => {\n if (containerRef.current) {\n setContainerWidth(containerRef.current.offsetWidth);\n }\n };\n\n updateContainerWidth();\n window.addEventListener('resize', updateContainerWidth);\n\n return () => window.removeEventListener('resize', updateContainerWidth);\n }, []);\n\n const {\n config = {},\n chartType = 'pie',\n chartData = [],\n className,\n title = 'Title',\n subTitle = 'Subtitle',\n } = allData;\n\n const defaultClasses = 'aspect-auto h-[250px] w-full';\n const mergedClasses = className ? cn(defaultClasses, className) : defaultClasses;\n\n if (chartType === 'pie') {\n const colors = getNColors(chartData.length);\n\n for (let i = 0; i < chartData.length; i++) {\n const data = chartData[i];\n\n if (!data.fill) {\n data.fill = colors[i];\n }\n }\n } else if (!config.color) {\n config.color = baseColors[Math.floor(Math.random() * baseColors.length)];\n }\n\n let width: number | undefined = undefined;\n let totalDataPoints = 0;\n\n // Helper function to get responsive config\n const getResponsiveConfig = () => {\n if (\n chartType === 'bar' &&\n totalDataPoints > 15 &&\n containerWidth > 0 &&\n width &&\n width <= containerWidth\n ) {\n // If chart fits in container, use responsive behavior\n return { ...config, chartUi: {} };\n }\n\n return config;\n };\n\n if (chartType === 'bar') {\n totalDataPoints = chartData.length * config.dataKeys.length;\n\n if (totalDataPoints > 15) {\n width =\n totalDataPoints * 20 +\n config.dataKeys.length * 8 * chartData.length +\n chartData.length * 15;\n config.chartUi = {\n barCategoryGap: '10%',\n width,\n };\n } else {\n config.chartUi = {};\n }\n }\n\n const chartUi = (attributes.interactionApiInProgress || attributes.loading) ? (\n <ChartLoader />\n ) : !chartData ? (\n renderNoDataFallback()\n ) : (\n <React.Fragment>\n {chartType === 'bar' &&\n totalDataPoints > 15 &&\n config.chartUi &&\n width &&\n (containerWidth === 0 || width > containerWidth) ? (\n <div className=\"w-full\">\n <ScrollArea className=\"w-full\">\n <div style={{ minWidth: `${width}px`, width: 'max-content' }}>\n <ResponsiveContainer width={width} height={250}>\n <ChartContainer {...rest} config={config} className={mergedClasses}>\n {renderChartComponent(chartType, chartData, config)}\n </ChartContainer>\n </ResponsiveContainer>\n </div>\n <ScrollBar orientation=\"horizontal\" />\n </ScrollArea>\n </div>\n ) : (\n <ResponsiveContainer width=\"100%\" height={250}>\n <ChartContainer {...rest} config={getResponsiveConfig()} className={mergedClasses}>\n {renderChartComponent(chartType, chartData, getResponsiveConfig())}\n </ChartContainer>\n </ResponsiveContainer>\n )}\n </React.Fragment>\n );\n\n return (\n <Card className=\"shadow border mt-2 mb-2\">\n <CardHeader>\n <CardTitle data-slot=\"title\" contentEditable={isEditable} className=\"text-2xl\">\n {title}\n </CardTitle>\n <CardDescription data-slot=\"subTitle\" contentEditable={isEditable} className=\"text-sm\">\n {subTitle}\n </CardDescription>\n </CardHeader>\n <CardContent\n ref={containerRef}\n data-slot=\"bodyContent\"\n contentEditable={false}\n className=\"px-6\"\n >\n {chartUi}\n </CardContent>\n </Card>\n );\n}\n\nexport function renderTable(props: any): JSX.Element {\n const { gjsModel, performInteraction = () => {}, ...rest } = props;\n\n const [allData, setAllData] = useState({\n ...props,\n });\n\n const cardRef = useRef<HTMLDivElement>(null);\n\n const [attributes, setAttributes] = useState({\n ...gjsModel.get('attributes'),\n });\n\n const {\n data = [],\n headerMapper: rawHeaderMapper = {},\n className,\n isEditable = false,\n title = 'Title',\n subTitle = 'Subtitle',\n actions = [],\n pagination,\n } = allData;\n\n const headerMapper = (() => {\n const cleaned = { ...rawHeaderMapper };\n\n if ('id' in cleaned) {\n delete cleaned.id;\n }\n\n if (data.length > 0) {\n const dataKeys = Object.keys(data[0] || {});\n\n return Object.fromEntries(\n Object.entries(cleaned).filter(([key]) => dataKeys.includes(key))\n );\n }\n\n return cleaned;\n })();\n\n const sortConfig = (() => {\n const { sortColumn, sortDirection } = gjsModel.get('componentProps') ?? {};\n\n return sortColumn && sortDirection ? { [sortColumn]: sortDirection } : {};\n })();\n\n useEffect(() => {\n gjsModel.on('change:componentProps', () => {\n setAllData({\n ...gjsModel.get('componentProps'),\n });\n });\n }, []);\n\n useEffect(() => {\n gjsModel.on('change:attributes', () => {\n setAttributes({\n ...gjsModel.get('attributes'),\n });\n });\n console.log(\"attributes\",attributes)\n }, []);\n\n const parsedData = (() => {\n if (typeof data === 'object' && data !== null && data.name === '__peak_placeholder') {\n return [];\n }\n\n if (!Array.isArray(data)) {\n return [];\n }\n\n return data.map((datum: any) => {\n const newData = {\n ...datum,\n };\n\n delete newData.id;\n\n return newData;\n });\n })();\n\n async function onRowAction(rowIndex: number, actionId: string) {\n const id = gjsModel.get('id');\n\n await performInteraction({\n id: actionId,\n interactionType: 'tableButton',\n payload: {\n row: data[rowIndex],\n tableId: id,\n },\n affectedComponents: [],\n });\n }\n\n async function onPageChange(pageNumber: number, pageSize: number) {\n const id = gjsModel.get('id');\n const { sortColumn, sortDirection } = gjsModel.get('componentProps') ?? {};\n\n await performInteraction({\n id,\n interactionType: 'pagination',\n payload: {\n pageNumber,\n pageSize,\n ...(sortColumn && sortDirection && { sortColumn, sortDirection }),\n },\n affectedComponents: getAffectedComponentsWithLoader([id], true),\n });\n }\n\n async function handleSort(column: string, direction: SortDirection) {\n const currentProps = gjsModel.get('componentProps');\n const id = gjsModel.get('id');\n\n gjsModel.set('componentProps', {\n ...currentProps,\n sortColumn: direction ? column : null,\n sortDirection: direction,\n });\n\n await performInteraction({\n id,\n interactionType: 'tableSort',\n payload: {\n sortColumn: direction ? column : null,\n sortDirection: direction,\n tableId: id,\n },\n affectedComponents: getAffectedComponentsWithLoader([id], true),\n });\n }\n\n return (\n <Card\n ref={cardRef}\n className=\"shadow border\"\n data-component-type=\"table\"\n >\n <CardHeader>\n <CardTitle data-slot=\"title\" contentEditable={isEditable} className=\"text-2xl\">\n {title}\n </CardTitle>\n <CardDescription data-slot=\"subTitle\" contentEditable={isEditable} className=\"text-sm\">\n {subTitle}\n </CardDescription>\n </CardHeader>\n <CardContent data-slot=\"bodyContent\" contentEditable={false}>\n <DataTable\n data={parsedData}\n headerMapper={headerMapper}\n className={className}\n isEditable={isEditable}\n actions={actions}\n pagination={pagination}\n isLoading={attributes.interactionApiInProgress}\n onRowAction={onRowAction}\n onPageChange={onPageChange}\n onSort={handleSort}\n sortConfig={sortConfig}\n otherProps={rest}\n />\n </CardContent>\n </Card>\n );\n}\n\nexport function renderTab(props: any): JSX.Element {\n let tabsWidth = 200;\n\n if (props.tabs.length > 4) {\n tabsWidth = 150;\n }\n\n return (\n <Tabs defaultValue={props.defaultValue}>\n <div className=\"text-center mb-4\">\n <TabsList className=\"bg-gray-300\">\n {props.tabs.map((tab: string) => (\n <TabsTrigger value={tab} key={tab} className={`text-md w-[${tabsWidth}px]`}>\n {tab}\n </TabsTrigger>\n ))}\n </TabsList>\n </div>\n {props.tabs.map((tab: string) => (\n <TabsContent value={tab} className=\"tabs-content\" key={tab} />\n ))}\n </Tabs>\n );\n}\n\nexport function renderMarkdown(props: any): JSX.Element {\n const { gjsModel, ...rest } = props;\n\n const [allData, setAllData] = useState({\n ...props,\n });\n\n const [attributes, setAttributes] = useState({\n ...gjsModel.get('attributes'),\n });\n\n useEffect(() => {\n gjsModel.on('change:componentProps', () => {\n setAllData({\n ...gjsModel.get('componentProps'),\n });\n });\n }, []);\n\n useEffect(() => {\n gjsModel.on('change:attributes', () => {\n setAttributes({\n ...gjsModel.get('attributes'),\n });\n });\n }, []);\n\n const [isEditing, setIsEditing] = useState(false);\n const editRef = useRef<HTMLDivElement>(null);\n\n const startEditing = () => {\n setIsEditing(true);\n setTimeout(() => {\n setupEditor();\n }, 0);\n };\n\n const setupEditor = () => {\n if (!editRef.current) {\n return;\n }\n\n const editor = editRef.current;\n editor.innerHTML = '';\n editor.textContent = allData.summaryText;\n editor.focus();\n };\n\n // Save changes and exit editing mode\n const saveChanges = () => {\n if (!editRef.current) {\n return;\n }\n\n const content = editRef.current.innerText || '';\n setAllData((prev: Record<string, any>) => ({\n ...prev,\n summaryText: content,\n }));\n setIsEditing(false);\n editRef.current.innerHTML = '';\n };\n\n const markdownStyles = {\n ul: { props: { className: 'list-disc' } },\n h1: { props: { className: 'text-4xl font-bold leading-[4rem]' } },\n h2: { props: { className: 'text-3xl font-bold leading-[3rem]' } },\n h3: { props: { className: 'text-2xl font-bold leading-[2rem]' } },\n h4: { props: { className: 'text-xl font-bold leading-[2.5rem]' } },\n h5: { props: { className: 'text-lg font-bold leading-[2.5rem]' } },\n h6: { props: { className: 'text-base font-bold leading-[2rem]' } },\n };\n\n if (attributes.loading) {\n return <MarkdownLoader />\n }\n\n if (!allData.isEditable) {\n return (\n <div className=\"px-[1em]\" {...rest}>\n <div data-slot=\"summaryText\">\n <Markdown options={{ overrides: markdownStyles }}>{allData.summaryText}</Markdown>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"p-[1em]\" {...rest}>\n {isEditing ? (\n <div\n ref={editRef}\n contentEditable\n onBlur={saveChanges}\n data-slot=\"summaryText\"\n className=\"p-2 min-h-[100px] whitespace-pre-wrap\"\n suppressContentEditableWarning={true}\n style={{\n whiteSpace: 'pre-wrap',\n wordWrap: 'break-word',\n }}\n />\n ) : (\n <div\n onClick={startEditing}\n data-slot=\"summaryText\"\n style={{\n whiteSpace: 'pre-wrap',\n wordWrap: 'break-word',\n }}\n >\n <Markdown options={{ overrides: markdownStyles }}>{allData.summaryText}</Markdown>\n </div>\n )}\n </div>\n );\n}\n\nexport function renderButton(props: any): JSX.Element {\n const { isEditable = false, gjsModel, performInteraction = () => {} } = props;\n\n const [allData, setAllData] = useState({\n ...props,\n });\n\n const [attributes, setAttributes] = useState({\n ...gjsModel.get('attributes'),\n });\n\n useEffect(() => {\n gjsModel.on('change:componentProps', () => {\n setAllData({\n ...gjsModel.get('componentProps'),\n });\n });\n }, []);\n\n useEffect(() => {\n gjsModel.on('change:attributes', () => {\n setAttributes({\n ...gjsModel.get('attributes'),\n });\n });\n }, []);\n\n const {\n text,\n className,\n payload,\n variant = 'default',\n size = 'sm',\n affectedComponents,\n tooltipContent,\n } = allData;\n\n function interact() {\n const id = gjsModel.get('id');\n performInteraction({\n id,\n interactionType: 'button',\n affectedComponents: getAffectedComponentsWithLoader([id, ...affectedComponents], true),\n payload,\n });\n }\n\n return (\n <TooltipButton\n className={className}\n isEditable={isEditable}\n interact={interact}\n attributes={attributes}\n variant={variant}\n size={size}\n text={text}\n tooltipContent={tooltipContent}\n />\n );\n}\n\nconst renderActionCardWithError = (props: any) => (\n <ErrorWrapper componentProps={props}>\n {renderActionCard(props)}\n </ErrorWrapper>\n);\n\nconst renderButtonWithError = (props: any) => (\n <ErrorWrapper componentProps={props}>\n {renderButton(props)}\n </ErrorWrapper>\n);\n\nconst renderCardWithError = (props: any) => (\n <ErrorWrapper componentProps={props}>\n console.log(props)\n {renderCard(props)}\n </ErrorWrapper>\n);\n\nconst renderChartWithError = (props: any) => (\n <ErrorWrapper componentProps={props}>\n console.log(props)\n {renderChart(props)}\n </ErrorWrapper>\n);\n\nconst renderFilterWithError = (props: any) => (\n <ErrorWrapper componentProps={props}>\n {renderFilter(props)}\n </ErrorWrapper>\n);\n\nconst renderMarkdownWithError = (props: any) => (\n <ErrorWrapper componentProps={props}>\n {renderMarkdown(props)}\n </ErrorWrapper>\n);\n\nconst renderSearchWithError = (props: any) => (\n <ErrorWrapper componentProps={props}>\n {renderSearch(props)}\n </ErrorWrapper>\n);\n\nconst renderTableWithError = (props: any) => (\n <ErrorWrapper componentProps={props}>\n {renderTable(props)}\n </ErrorWrapper>\n);\n\nconst renderTabWithError = (props: any) => (\n <ErrorWrapper componentProps={props}>\n {renderTab(props)}\n </ErrorWrapper>\n);\n\n\nexport function getRenderers(): Record<string, (props: any) => JSX.Element> {\n return {\n ActionCard: renderActionCardWithError,\n Button: renderButtonWithError,\n Card: renderCardWithError,\n Chart: renderChartWithError,\n Filter: renderFilterWithError,\n Markdown: renderMarkdownWithError,\n Search: renderSearchWithError,\n Table: renderTableWithError,\n Tabs: renderTabWithError,\n };\n}\n"],"mappings":"02CAAA,sCACA,sDACA,+BACA,yDACA,+BACA,uDACA,MAAO,CAAAA,MAAM,KAAM,WAAW,CAC9B,MAAO,CAAAC,KAAK,EAAQC,SAAS,CAAEC,MAAM,CAAEC,QAAQ,KAAO,OAAO,CAC7D,OAAQC,oBAAoB,KAAO,SAAS,CAC5C,OAAQC,WAAW,KAAO,cAAc,CAExC,OAAQC,KAAK,KAAO,+BAA+B,CAEnD,MAAO,CAAAC,QAAQ,KAAM,iBAAiB,CAEtC,OACEC,GAAG,CACHC,QAAQ,CACRC,aAAa,CACbC,MAAM,CACNC,IAAI,CACJC,SAAS,CACTC,GAAG,CACHC,QAA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CAC3B/T,IAAI,CAAEgU,kBACR,CACF","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type Size = 'small' | 'medium' | 'large';
|
|
2
|
+
export declare const ErrorContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
hasError: boolean;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const ErrorBanner: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
6
|
+
size: Size;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const ErrorIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
9
|
+
size: Size;
|
|
10
|
+
}, never>;
|
|
11
|
+
export declare const ErrorContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
+
export declare const ErrorMessage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
13
|
+
size: Size;
|
|
14
|
+
}, never>;
|
|
15
|
+
export declare const ErrorType: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
16
|
+
size: Size;
|
|
17
|
+
}, never>;
|
|
18
|
+
export declare const ComponentContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
19
|
+
hasError: boolean;
|
|
20
|
+
size: Size;
|
|
21
|
+
}, never>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import styled from"styled-components";export var ErrorContainer=styled.div.withConfig({displayName:"error-container__ErrorContainer",componentId:"sc-18iouq5-0"})(["position:relative;width:100%;height:100%;border:",";border-radius:6px;overflow:hidden;animation:",";@keyframes errorShake{0%,100%{transform:translateX(0);}25%{transform:translateX(-2px);}75%{transform:translateX(2px);}}"],function(_ref){var hasError=_ref.hasError;return hasError?"2px solid #ef4444":"none"},function(_ref2){var hasError=_ref2.hasError;return hasError?"errorShake 0.5s ease-in-out":"none"});export var ErrorBanner=styled.div.withConfig({displayName:"error-container__ErrorBanner",componentId:"sc-18iouq5-1"})(["background:linear-gradient(135deg,#ef4444 0%,#dc2626 100%);color:white;display:flex;align-items:center;gap:8px;font-weight:500;position:",";top:",";left:",";right:",";z-index:",";transform:",";transform-origin:top left;max-width:",";border-radius:",";box-shadow:",";padding:",";font-size:",";"],function(_ref3){var size=_ref3.size;return size==="small"?"absolute":"relative"},function(_ref4){var size=_ref4.size;return size==="small"?"4px":"auto"},function(_ref5){var size=_ref5.size;return size==="small"?"4px":"auto"},function(_ref6){var size=_ref6.size;return size==="small"?"4px":"auto"},function(_ref7){var size=_ref7.size;return size==="small"?10:"auto"},function(_ref8){var size=_ref8.size;return size==="small"?"scale(0.8)":"none"},function(_ref9){var size=_ref9.size;return size==="small"?"90%":"100%"},function(_ref10){var size=_ref10.size;return size==="small"?"4px":"0"},function(_ref11){var size=_ref11.size;return size==="small"?"0 2px 4px rgba(0, 0, 0, 0.2)":"none"},function(_ref12){var size=_ref12.size;switch(size){case"small":return"4px 8px";case"medium":return"6px 10px";case"large":return"8px 12px";default:return"6px 10px"}},function(_ref13){var size=_ref13.size;switch(size){case"small":return"10px";case"medium":return"11px";case"large":return"12px";default:return"11px"}});export var ErrorIcon=styled.div.withConfig({displayName:"error-container__ErrorIcon",componentId:"sc-18iouq5-2"})(["font-size:",";flex-shrink:0;"],function(_ref14){var size=_ref14.size;switch(size){case"small":return"12px";case"medium":return"13px";case"large":return"14px";default:return"13px"}});export var ErrorContent=styled.div.withConfig({displayName:"error-container__ErrorContent",componentId:"sc-18iouq5-3"})(["flex:1;min-width:0;"]);export var ErrorMessage=styled.div.withConfig({displayName:"error-container__ErrorMessage",componentId:"sc-18iouq5-4"})(["font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:",";"],function(_ref15){var size=_ref15.size;return size==="small"?"0":"1px"});export var ErrorType=styled.div.withConfig({displayName:"error-container__ErrorType",componentId:"sc-18iouq5-5"})(["opacity:0.9;font-size:",";text-transform:uppercase;letter-spacing:",";"],function(_ref16){var size=_ref16.size;switch(size){case"small":return"9px";case"medium":return"10px";case"large":return"11px";default:return"10px"}},function(_ref17){var size=_ref17.size;return size==="small"?"0.2px":"0.3px"});export var ComponentContent=styled.div.withConfig({displayName:"error-container__ComponentContent",componentId:"sc-18iouq5-6"})(["flex:1;background:",";padding:",";padding-top:",";min-height:",";display:flex;flex-direction:column;"],function(_ref18){var hasError=_ref18.hasError;return hasError?"rgba(239, 68, 68, 0.05)":"transparent"},function(_ref19){var hasError=_ref19.hasError,size=_ref19.size;if(!hasError){return"0"}switch(size){case"small":return"4px";case"medium":return"6px";case"large":return"8px";default:return"6px"}},function(_ref20){var hasError=_ref20.hasError,size=_ref20.size;if(!hasError){return"0"}return size==="small"?"20px":"8px"},function(_ref21){var hasError=_ref21.hasError,size=_ref21.size;return hasError&&size==="small"?"60px":"auto"});
|
|
2
|
+
//# sourceMappingURL=error-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-container.js","names":["styled","ErrorContainer","div","withConfig","displayName","componentId","_ref","hasError","_ref2","ErrorBanner","_ref3","size","_ref4","_ref5","_ref6","_ref7","_ref8","_ref9","_ref10","_ref11","_ref12","_ref13","ErrorIcon","_ref14","ErrorContent","ErrorMessage","_ref15","ErrorType","_ref16","_ref17","ComponentContent","_ref18","_ref19","_ref20","_ref21"],"sources":["../../../../src/shadcn/components/ui/error-container.tsx"],"sourcesContent":["import styled from 'styled-components';\n\ntype Size = 'small' | 'medium' | 'large';\n\nexport const ErrorContainer = styled.div<{ hasError: boolean }>`\n position: relative;\n width: 100%;\n height: 100%;\n border: ${({ hasError }) => (hasError ? '2px solid #ef4444' : 'none')};\n border-radius: 6px;\n overflow: hidden;\n animation: ${({ hasError }) => (hasError ? 'errorShake 0.5s ease-in-out' : 'none')};\n\n @keyframes errorShake {\n 0%, 100% { transform: translateX(0); }\n 25% { transform: translateX(-2px); }\n 75% { transform: translateX(2px); }\n }\n`;\n\nexport const ErrorBanner = styled.div<{ size: Size }>`\n background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);\n color: white;\n display: flex;\n align-items: center;\n gap: 8px;\n font-weight: 500;\n position: ${({ size }) => (size === 'small' ? 'absolute' : 'relative')};\n top: ${({ size }) => (size === 'small' ? '4px' : 'auto')};\n left: ${({ size }) => (size === 'small' ? '4px' : 'auto')};\n right: ${({ size }) => (size === 'small' ? '4px' : 'auto')};\n z-index: ${({ size }) => (size === 'small' ? 10 : 'auto')};\n transform: ${({ size }) => (size === 'small' ? 'scale(0.8)' : 'none')};\n transform-origin: top left;\n max-width: ${({ size }) => (size === 'small' ? '90%' : '100%')};\n border-radius: ${({ size }) => (size === 'small' ? '4px' : '0')};\n box-shadow: ${({ size }) =>\n size === 'small' ? '0 2px 4px rgba(0, 0, 0, 0.2)' : 'none'};\n\n padding: ${({ size }) => {\n switch (size) {\n case 'small': return '4px 8px';\n case 'medium': return '6px 10px';\n case 'large': return '8px 12px';\n default: return '6px 10px';\n }\n }};\n\n font-size: ${({ size }) => {\n switch (size) {\n case 'small': return '10px';\n case 'medium': return '11px';\n case 'large': return '12px';\n default: return '11px';\n }\n }};\n`;\n\nexport const ErrorIcon = styled.div<{ size: Size }>`\n font-size: ${({ size }) => {\n switch (size) {\n case 'small': return '12px';\n case 'medium': return '13px';\n case 'large': return '14px';\n default: return '13px';\n }\n }};\n flex-shrink: 0;\n`;\n\nexport const ErrorContent = styled.div`\n flex: 1;\n min-width: 0;\n`;\n\nexport const ErrorMessage = styled.div<{ size: Size }>`\n font-weight: 600;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: ${({ size }) => (size === 'small' ? '0' : '1px')};\n`;\n\nexport const ErrorType = styled.div<{ size: Size }>`\n opacity: 0.9;\n font-size: ${({ size }) => {\n switch (size) {\n case 'small': return '9px';\n case 'medium': return '10px';\n case 'large': return '11px';\n default: return '10px';\n }\n }};\n text-transform: uppercase;\n letter-spacing: ${({ size }) => (size === 'small' ? '0.2px' : '0.3px')};\n`;\n\nexport const ComponentContent = styled.div<{ hasError: boolean; size: Size }>`\n flex: 1;\n background: ${({ hasError }) =>\n hasError ? 'rgba(239, 68, 68, 0.05)' : 'transparent'};\n\n padding: ${({ hasError, size }) => {\n if (!hasError) {return '0';}\n\n switch (size) {\n case 'small': return '4px';\n case 'medium': return '6px';\n case 'large': return '8px';\n default: return '6px';\n }\n }};\n\n padding-top: ${({ hasError, size }) => {\n if (!hasError) {return '0';}\n\n return size === 'small' ? '20px' : '8px';\n }};\n\n min-height: ${({ hasError, size }) =>\n hasError && size === 'small' ? '60px' : 'auto'};\n\n display: flex;\n flex-direction: column;\n`;\n"],"mappings":"AAAA,MAAO,CAAAA,MAAM,KAAM,mBAAmB,CAItC,MAAO,IAAM,CAAAC,cAAc,CAAGD,MAAM,CAACE,GAAG,CAAAC,UAAA,EAAAC,WAAA,mCAAAC,WAAA,kPAI5B,SAAAC,IAAA,KAAG,CAAAC,QAAQ,CAAAD,IAAA,CAARC,QAAQ,OAAQ,CAAAA,QAAQ,CAAG,mBAAmB,CAAG,MAAM,CAAC,CAGxD,SAAAC,KAAA,KAAG,CAAAD,QAAQ,CAAAC,KAAA,CAARD,QAAQ,OAAQ,CAAAA,QAAQ,CAAG,6BAA6B,CAAG,MAAM,CAAC,CAOnF,CAED,MAAO,IAAM,CAAAE,WAAW,CAAGT,MAAM,CAACE,GAAG,CAAAC,UAAA,EAAAC,WAAA,gCAAAC,WAAA,2TAOvB,SAAAK,KAAA,KAAG,CAAAC,IAAI,CAAAD,KAAA,CAAJC,IAAI,OAAQ,CAAAA,IAAI,GAAK,OAAO,CAAG,UAAU,CAAG,UAAU,CAAC,CAC/D,SAAAC,KAAA,KAAG,CAAAD,IAAI,CAAAC,KAAA,CAAJD,IAAI,OAAQ,CAAAA,IAAI,GAAK,OAAO,CAAG,KAAK,CAAG,MAAM,CAAC,CAChD,SAAAE,KAAA,KAAG,CAAAF,IAAI,CAAAE,KAAA,CAAJF,IAAI,OAAQ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]: unknown;
|
|
10
|
+
};
|
|
11
|
+
type ErrorWrapperProps = {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
componentProps: ComponentProps;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function ErrorWrapper({ children, componentProps, className }: ErrorWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import React from"react";import{ComponentContent,ErrorBanner,ErrorContainer,ErrorContent,ErrorIcon,ErrorMessage,ErrorType}from"./error-container";import{Fragment as _Fragment,jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export function ErrorWrapper(_ref){var children=_ref.children,componentProps=_ref.componentProps,_ref$className=_ref.className,className=_ref$className===void 0?"":_ref$className;var error=componentProps.error;if(!error){return/*#__PURE__*/_jsx(_Fragment,{children:children})}function getSize(){var componentType=componentProps.componentType||"medium";if(componentType==="Button"||componentType==="Search"){return"small"}if(componentType==="Filter"||componentType==="Markdown"){return"medium"}return"large"}var size=getSize();return/*#__PURE__*/_jsxs(ErrorContainer,{hasError:true,className:className,children:[/*#__PURE__*/_jsxs(ErrorBanner,{size:size,children:[/*#__PURE__*/_jsx(ErrorIcon,{size:size,children:"\u26A0\uFE0F"}),/*#__PURE__*/_jsxs(ErrorContent,{children:[/*#__PURE__*/_jsx(ErrorMessage,{size:size,children:size==="small"?error.message.substring(0,20)+"...":error.message}),size!=="small"&&error.type&&/*#__PURE__*/_jsx(ErrorType,{size:size,children:error.type})]})]}),/*#__PURE__*/_jsx(ComponentContent,{hasError:true,size:size,children:children})]})}
|
|
2
|
+
//# sourceMappingURL=error-wrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-wrapper.js","names":["React","ComponentContent","ErrorBanner","ErrorContainer","ErrorContent","ErrorIcon","ErrorMessage","ErrorType","Fragment","_Fragment","jsx","_jsx","jsxs","_jsxs","ErrorWrapper","_ref","children","componentProps","_ref$className","className","error","getSize","componentType","size","hasError","message","substring","type"],"sources":["../../../../src/shadcn/components/ui/error-wrapper.tsx"],"sourcesContent":["import React from 'react';\nimport {\n ComponentContent,\n ErrorBanner,\n ErrorContainer,\n ErrorContent,\n ErrorIcon,\n ErrorMessage,\n ErrorType\n} from \"./error-container\";\n\ntype ErrorInfo = {\n message: string;\n type?: string;\n};\n\ntype ComponentProps = {\n error?: ErrorInfo;\n componentType?: string;\n [key: string]: unknown; // allow extra props if needed\n};\n\ntype ErrorWrapperProps = {\n children: React.ReactNode;\n componentProps: ComponentProps;\n className?: string;\n};\n\nexport function ErrorWrapper({ children, componentProps, className = '' }: ErrorWrapperProps) {\n const error = componentProps.error;\n\n if (!error) {\n return <>{children}</>;\n }\n\n function getSize(): 'small' | 'medium' | 'large' {\n const componentType = componentProps.componentType || 'medium';\n\n if (componentType === 'Button' || componentType === 'Search') {\n return 'small';\n }\n\n if (componentType === 'Filter' || componentType === 'Markdown') {\n return 'medium';\n }\n\n return 'large';\n }\n\n const size = getSize();\n\n return (\n <ErrorContainer hasError className={className}>\n <ErrorBanner size={size}>\n <ErrorIcon size={size}>⚠️</ErrorIcon>\n <ErrorContent>\n <ErrorMessage size={size}>\n {size === 'small'\n ? `${error.message.substring(0, 20)}...`\n : error.message}\n </ErrorMessage>\n {size !== 'small' && error.type && (\n <ErrorType size={size}>{error.type}</ErrorType>\n )}\n </ErrorContent>\n </ErrorBanner>\n\n <ComponentContent hasError size={size}>\n {children}\n </ComponentContent>\n </ErrorContainer>\n );\n}\n"],"mappings":"AAAA,MAAO,CAAAA,KAAK,KAAM,OAAO,CACzB,OACEC,gBAAgB,CAChBC,WAAW,CACXC,cAAc,CACdC,YAAY,CACZC,SAAS,CACTC,YAAY,CACZC,SAAS,KACJ,mBAAmB,CAAC,OAAAC,QAAA,IAAAC,SAAA,CAAAC,GAAA,IAAAC,IAAA,CAAAC,IAAA,IAAAC,KAAA,yBAmB3B,MAAO,SAAS,CAAAC,YAAYA,CAAAC,I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gB,IAAI,CAAEA,IAAK,CAAAP,QAAA,CAAEI,KAAK,CAACO,IAAI,CAAY,CAC/C,EACW,CAAC,EACJ,CAAC,cAEdhB,IAAA,CAACV,gBAAgB,EAACuB,QAAQ,MAACD,IAAI,CAAEA,IAAK,CAAAP,QAAA,CACnCA,QAAQ,CACO,CAAC,EACL,CAEpB","ignoreList":[]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import _asyncToGenerator from"@babel/runtime/helpers/asyncToGenerator";import _extends from"@babel/runtime/helpers/extends";import _regeneratorRuntime from"@babel/runtime/regenerator";/* eslint-disable @typescript-eslint/no-explicit-any */import{useCallback,useEffect,useRef,useState}from"react";import{ChevronDown,ChevronUp,ListFilter as FilterIcon,Loader2Icon}from"lucide-react";import{Button}from"./button";import{Checkbox}from"./checkbox";import{ScrollArea}from"./scroll-area";import{getAffectedComponentsWithLoader}from"../../../helpers";import{renderDateFilter}from"./date-filter";import{
|
|
2
|
-
},disabled:isDisabled}),/*#__PURE__*/_jsx("span",{className:"text-sm text-gray-900",children:opt.label})]},opt.value)}):/*#__PURE__*/_jsx("div",{className:"text-sm text-gray-500",children:"No results found"})})}export function renderFilter(_ref4){var gjsModel=_ref4.gjsModel,performInteraction=_ref4.performInteraction;var _useState=useState(_extends({},gjsModel.get("componentProps"))),componentData=_useState[0],setComponentData=_useState[1];var _componentData$option=componentData.options,options=_componentData$option===void 0?[]:_componentData$option,_componentData$value=componentData.value,value=_componentData$value===void 0?[]:_componentData$value,_componentData$classN=componentData.className,className=_componentData$classN===void 0?"":_componentData$classN,_componentData$affect=componentData.affectedComponents,affectedComponents=_componentData$affect===void 0?[]:_componentData$affect,_componentData$text=componentData.text,label=_componentData$text===void 0?"Filter":_componentData$text,_componentData$filter=componentData.filterType,filterType=_componentData$filter===void 0?"multiselect":_componentData$filter;var actualOptions=function(){if(options&&typeof options==="object"&&options.name==="__peak_placeholder"){return[]}return Array.isArray(options)?options:[]}();if(filterType==="date"){return renderDateFilter({gjsModel:gjsModel,performInteraction:performInteraction})}var wrapperRef=useRef(null);var _useState2=useState(_extends({},gjsModel.get("attributes"))),attributes=_useState2[0],setAttributes=_useState2[1];var _useState3=useState(false),isDropdownOpen=_useState3[0],setIsDropdownOpen=_useState3[1];var _useState4=useState(""),searchQuery=_useState4[0],setSearchQuery=_useState4[1];var _useState5=useState(false),isApplying=_useState5[0],setIsApplying=_useState5[1];var _useState6=useState({left:"auto",right:"0"}),dropdownPosition=_useState6[0],setDropdownPosition=_useState6[1];var defaultValue=componentData["default"]||[];var _useState7=useState(function(){return Array.isArray(value)&&value.length>0?value:defaultValue}),selectedValues=_useState7[0],setSelectedValues=_useState7[1];var isMultiSelect=filterType==="multiselect";var hasPlaceholderOptions=options&&typeof options==="object"&&options.name==="__peak_placeholder";var isBusy=attributes.interactionApiInProgress||isApplying||attributes.loading||hasPlaceholderOptions;var allOptionsSelected=selectedValues.length===actualOptions.length&&actualOptions.length>0;useEffect(function(){var _document$getElementB;if(!isDropdownOpen||!wrapperRef.current){return}var filterRect=wrapperRef.current.getBoundingClientRect();var dropdownWidth=256;var iframeViewportWidth=document.documentElement.clientWidth;var iframeBodyWidth=((_document$getElementB=document.getElementById("dashboard-root"))==null?void 0:_document$getElementB.clientWidth)||iframeViewportWidth;var spaceToRight=iframeBodyWidth-filterRect.right;var spaceToLeft=filterRect.left;if(spaceToLeft>=dropdownWidth){setDropdownPosition({left:"auto",right:"0px"})}else if(spaceToRight<dropdownWidth&&spaceToLeft<dropdownWidth){var shiftLeft=dropdownWidth-spaceToRight+16;setDropdownPosition({left:"-"+shiftLeft+"px",right:"auto"})}else if(spaceToRight>=dropdownWidth){setDropdownPosition({left:"0px",right:"auto"})}},[isDropdownOpen]);useEffect(function(){function updateComponentData(){setComponentData(_extends({},gjsModel.get("componentProps")))}function updateAttributes(){setAttributes(_extends({},gjsModel.get("attributes")))}gjsModel.on("change:componentProps",updateComponentData);gjsModel.on("change:attributes",updateAttributes);return function(){gjsModel.off("change:componentProps",updateComponentData);gjsModel.off("change:attributes",updateAttributes)}},[gjsModel]);useEffect(function(){var _wrapperRef$current$o,_wrapperRef$current;var doc=(_wrapperRef$current$o=(_wrapperRef$current=wrapperRef.current)==null?void 0:_wrapperRef$current.ownerDocument)!=null?_wrapperRef$current$o:document;function handleOutsideClick(e){if(isDropdownOpen&&wrapperRef.current&&!wrapperRef.current.contains(e.target)){setIsDropdownOpen(false)}}function handleEscape(e){if(e.key==="Escape"){setIsDropdownOpen(false)}}doc.addEventListener("pointerdown",handleOutsideClick);doc.addEventListener("keydown",handleEscape);return function(){doc.removeEventListener("pointerdown",handleOutsideClick);doc.removeEventListener("keydown",handleEscape)}},[isDropdownOpen]);var filteredOptions=actualOptions.filter(function(opt){return String(opt.label).toLowerCase().includes(searchQuery.toLowerCase())});function updateAndApply(_x){return _updateAndApply.apply(this,arguments)}function _updateAndApply(){_updateAndApply=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(newValues){var id;return _regeneratorRuntime.wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(newValues===void 0){newValues=selectedValues}setIsApplying(true);_context.prev=2;gjsModel.set("componentProps",_extends({},gjsModel.get("componentProps"),{value:newValues}));id=gjsModel.get("id");_context.next=7;return performInteraction({interactionType:"filter",id:id,affectedComponents:getAffectedComponentsWithLoader([id].concat(affectedComponents),true)});case 7:_context.prev=7;setIsApplying(false);setIsDropdownOpen(false);return _context.finish(7);case 11:case"end":return _context.stop()}},_callee,null,[[2,,7,11]])}));return _updateAndApply.apply(this,arguments)}var handleOptionToggle=useCallback(function(val){if(isMultiSelect){setSelectedValues(function(prev){return prev.includes(val)?prev.filter(function(v){return v!==val}):[].concat(prev,[val])})}else{if(selectedValues.includes(val)){setSelectedValues([]);updateAndApply([])}else{var singleValue=[val];setSelectedValues(singleValue);updateAndApply(singleValue)}}},[isMultiSelect,selectedValues]);function handleClearAll(){setSelectedValues([])}function handleSelectAll(){setSelectedValues(actualOptions.map(function(o){return o.value}))}
|
|
1
|
+
import _asyncToGenerator from"@babel/runtime/helpers/asyncToGenerator";import _extends from"@babel/runtime/helpers/extends";import _regeneratorRuntime from"@babel/runtime/regenerator";/* eslint-disable @typescript-eslint/no-explicit-any */import{useCallback,useEffect,useRef,useState}from"react";import{ChevronDown,ChevronUp,ListFilter as FilterIcon,Loader2Icon}from"lucide-react";import{Button}from"./button";import{Checkbox}from"./checkbox";import{ScrollArea}from"./scroll-area";import{getAffectedComponentsWithLoader}from"../../../helpers";import{renderDateFilter}from"./date-filter";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";function FilterHeader(_ref){var label=_ref.label,count=_ref.count,isDisabled=_ref.isDisabled,isDropdownOpen=_ref.isDropdownOpen,isLoading=_ref.isLoading,toggleOpen=_ref.toggleOpen;var ChevronIcon=isDropdownOpen?ChevronUp:ChevronDown;return/*#__PURE__*/_jsxs(Button,{variant:"outline",size:"sm",disabled:isDisabled,onClick:toggleOpen,className:"px-2",children:[/*#__PURE__*/_jsx(FilterIcon,{size:16}),count>0?label+" ("+count+")":label,isLoading?/*#__PURE__*/_jsx(Loader2Icon,{className:"ml-2 animate-spin",size:16}):/*#__PURE__*/_jsx(ChevronIcon,{size:16,className:"ml-1"})]})}function FilterActions(_ref2){var selected=_ref2.selected,allSelected=_ref2.allSelected,onClear=_ref2.onClear,onSelectAll=_ref2.onSelectAll,isDisabled=_ref2.isDisabled;return/*#__PURE__*/_jsxs("div",{className:"flex items-center mb-3",children:[/*#__PURE__*/_jsx(Checkbox,{checked:allSelected,onCheckedChange:function onCheckedChange(){return allSelected?onClear():onSelectAll()},disabled:isDisabled}),/*#__PURE__*/_jsx("span",{className:"ml-2 text-sm text-gray-900",children:"Select All"}),selected.length>0&&/*#__PURE__*/_jsx("button",{type:"button",className:"ml-auto text-sm text-blue-600 hover:underline",onMouseDown:function onMouseDown(e){e.stopPropagation();e.preventDefault()},onClick:onClear,disabled:isDisabled,children:"Clear All"})]})}function FilterOptionList(_ref3){var options=_ref3.options,selected=_ref3.selected,onToggle=_ref3.onToggle,isDisabled=_ref3.isDisabled;return/*#__PURE__*/_jsx(ScrollArea,{viewportClassName:"max-h-48 overflow-y-auto mb-4 space-y-2",children:options.length>0?options.map(function(opt){return/*#__PURE__*/_jsxs("label",{className:"flex items-center space-x-2 hover:bg-gray-100 rounded p-1 transition hover:cursor-pointer",onClick:function onClick(e){e.preventDefault();e.stopPropagation();if(!isDisabled){onToggle(opt.value)}},children:[/*#__PURE__*/_jsx(Checkbox,{checked:selected.includes(opt.value),onChange:function onChange(){// Prevent checkbox from toggling when clicking label
|
|
2
|
+
},disabled:isDisabled}),/*#__PURE__*/_jsx("span",{className:"text-sm text-gray-900",children:opt.label})]},opt.value)}):/*#__PURE__*/_jsx("div",{className:"text-sm text-gray-500",children:"No results found"})})}export function renderFilter(_ref4){var gjsModel=_ref4.gjsModel,performInteraction=_ref4.performInteraction;var _useState=useState(_extends({},gjsModel.get("componentProps"))),componentData=_useState[0],setComponentData=_useState[1];var _componentData$option=componentData.options,options=_componentData$option===void 0?[]:_componentData$option,_componentData$value=componentData.value,value=_componentData$value===void 0?[]:_componentData$value,_componentData$classN=componentData.className,className=_componentData$classN===void 0?"":_componentData$classN,_componentData$affect=componentData.affectedComponents,affectedComponents=_componentData$affect===void 0?[]:_componentData$affect,_componentData$text=componentData.text,label=_componentData$text===void 0?"Filter":_componentData$text,_componentData$filter=componentData.filterType,filterType=_componentData$filter===void 0?"multiselect":_componentData$filter;var actualOptions=function(){if(options&&typeof options==="object"&&options.name==="__peak_placeholder"){return[]}return Array.isArray(options)?options:[]}();if(filterType==="date"){return renderDateFilter({gjsModel:gjsModel,performInteraction:performInteraction})}var wrapperRef=useRef(null);var _useState2=useState(_extends({},gjsModel.get("attributes"))),attributes=_useState2[0],setAttributes=_useState2[1];var _useState3=useState(false),isDropdownOpen=_useState3[0],setIsDropdownOpen=_useState3[1];var _useState4=useState(""),searchQuery=_useState4[0],setSearchQuery=_useState4[1];var _useState5=useState(false),isApplying=_useState5[0],setIsApplying=_useState5[1];var _useState6=useState({left:"auto",right:"0"}),dropdownPosition=_useState6[0],setDropdownPosition=_useState6[1];var defaultValue=componentData["default"]||[];var _useState7=useState(function(){return Array.isArray(value)&&value.length>0?value:defaultValue}),selectedValues=_useState7[0],setSelectedValues=_useState7[1];var isMultiSelect=filterType==="multiselect";var hasPlaceholderOptions=options&&typeof options==="object"&&options.name==="__peak_placeholder";var isBusy=attributes.interactionApiInProgress||isApplying||attributes.loading||hasPlaceholderOptions;var allOptionsSelected=selectedValues.length===actualOptions.length&&actualOptions.length>0;useEffect(function(){var _document$getElementB;if(!isDropdownOpen||!wrapperRef.current){return}var filterRect=wrapperRef.current.getBoundingClientRect();var dropdownWidth=256;var iframeViewportWidth=document.documentElement.clientWidth;var iframeBodyWidth=((_document$getElementB=document.getElementById("dashboard-root"))==null?void 0:_document$getElementB.clientWidth)||iframeViewportWidth;var spaceToRight=iframeBodyWidth-filterRect.right;var spaceToLeft=filterRect.left;if(spaceToLeft>=dropdownWidth){setDropdownPosition({left:"auto",right:"0px"})}else if(spaceToRight<dropdownWidth&&spaceToLeft<dropdownWidth){var shiftLeft=dropdownWidth-spaceToRight+16;setDropdownPosition({left:"-"+shiftLeft+"px",right:"auto"})}else if(spaceToRight>=dropdownWidth){setDropdownPosition({left:"0px",right:"auto"})}},[isDropdownOpen]);useEffect(function(){function updateComponentData(){setComponentData(_extends({},gjsModel.get("componentProps")))}function updateAttributes(){setAttributes(_extends({},gjsModel.get("attributes")))}gjsModel.on("change:componentProps",updateComponentData);gjsModel.on("change:attributes",updateAttributes);return function(){gjsModel.off("change:componentProps",updateComponentData);gjsModel.off("change:attributes",updateAttributes)}},[gjsModel]);useEffect(function(){var _wrapperRef$current$o,_wrapperRef$current;var doc=(_wrapperRef$current$o=(_wrapperRef$current=wrapperRef.current)==null?void 0:_wrapperRef$current.ownerDocument)!=null?_wrapperRef$current$o:document;function handleOutsideClick(e){if(isDropdownOpen&&wrapperRef.current&&!wrapperRef.current.contains(e.target)){setIsDropdownOpen(false)}}function handleEscape(e){if(e.key==="Escape"){setIsDropdownOpen(false)}}doc.addEventListener("pointerdown",handleOutsideClick);doc.addEventListener("keydown",handleEscape);return function(){doc.removeEventListener("pointerdown",handleOutsideClick);doc.removeEventListener("keydown",handleEscape)}},[isDropdownOpen]);var filteredOptions=actualOptions.filter(function(opt){return String(opt.label).toLowerCase().includes(searchQuery.toLowerCase())});function updateAndApply(_x){return _updateAndApply.apply(this,arguments)}function _updateAndApply(){_updateAndApply=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(newValues){var id;return _regeneratorRuntime.wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(newValues===void 0){newValues=selectedValues}setIsApplying(true);_context.prev=2;gjsModel.set("componentProps",_extends({},gjsModel.get("componentProps"),{value:newValues}));id=gjsModel.get("id");_context.next=7;return performInteraction({interactionType:"filter",id:id,affectedComponents:getAffectedComponentsWithLoader([id].concat(affectedComponents),true)});case 7:_context.prev=7;setIsApplying(false);setIsDropdownOpen(false);return _context.finish(7);case 11:case"end":return _context.stop()}},_callee,null,[[2,,7,11]])}));return _updateAndApply.apply(this,arguments)}var handleOptionToggle=useCallback(function(val){if(isMultiSelect){setSelectedValues(function(prev){return prev.includes(val)?prev.filter(function(v){return v!==val}):[].concat(prev,[val])})}else{if(selectedValues.includes(val)){setSelectedValues([]);updateAndApply([])}else{var singleValue=[val];setSelectedValues(singleValue);updateAndApply(singleValue)}}},[isMultiSelect,selectedValues]);function handleClearAll(){setSelectedValues([])}function handleSelectAll(){setSelectedValues(actualOptions.map(function(o){return o.value}))}return/*#__PURE__*/_jsxs("div",{ref:wrapperRef,className:"relative inline-block "+className,style:{color:"#2A44D4",backgroundColor:"rgb(255 255 255)"},children:[/*#__PURE__*/_jsx(FilterHeader,{label:label,count:selectedValues.length,isDisabled:isBusy,isDropdownOpen:isDropdownOpen,isLoading:isBusy,toggleOpen:function toggleOpen(){return setIsDropdownOpen(function(prev){return!prev})}}),isDropdownOpen&&/*#__PURE__*/_jsxs("div",{className:"absolute top-full mt-2 w-64 bg-white border rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 p-4 z-50",style:dropdownPosition,children:[/*#__PURE__*/_jsx("input",{type:"text",placeholder:"Search...",value:searchQuery,onChange:function onChange(e){return setSearchQuery(e.target.value)},className:"w-full mb-3 px-2 py-1 border rounded focus:outline-none",disabled:isBusy}),isMultiSelect&&/*#__PURE__*/_jsx(FilterActions,{selected:selectedValues,allSelected:allOptionsSelected,onClear:handleClearAll,onSelectAll:handleSelectAll,isDisabled:isBusy}),/*#__PURE__*/_jsx(FilterOptionList,{options:filteredOptions,selected:selectedValues,onToggle:handleOptionToggle,isDisabled:isBusy}),isMultiSelect&&/*#__PURE__*/_jsxs("div",{className:"flex justify-end space-x-2",children:[/*#__PURE__*/_jsx(Button,{variant:"ghost",size:"sm",onClick:function onClick(){return setIsDropdownOpen(false)},disabled:isApplying,children:"Cancel"}),/*#__PURE__*/_jsxs(Button,{variant:"default",size:"sm",onClick:function onClick(){return updateAndApply(selectedValues)},disabled:isBusy,children:[isApplying&&/*#__PURE__*/_jsx(Loader2Icon,{className:"animate-spin mr-2",size:16}),"Apply"]})]})]})]})}
|
|
3
3
|
//# sourceMappingURL=filter.js.map
|