@peak-ai/canvas 1.4.2-rc.4 → 1.4.2-rc.6
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/data-table.js +2 -0
- package/dist/plugins/helpers/data-table.js.map +1 -0
- package/dist/plugins/helpers/render-components.js +11 -0
- package/dist/plugins/helpers/render-components.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 +5 -1
- 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 +92 -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 +143 -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 +1096 -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/filter.tsx +380 -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 +176 -0
- package/src/shadcn/components/ui/separator.tsx +26 -0
- package/src/shadcn/components/ui/skeleton.tsx +106 -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/data-table.js +0 -5
- package/plugins/helpers/data-table.js.map +0 -1
- package/plugins/helpers/render-components.js +0 -10
- 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/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.6",
|
|
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\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\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,CACrBC,cAAc,CAAE,CAAC,CAAC,CAClBC,MAAM,CAAE,EACV,CACF,CAAC,CACDC,IAAI,CAAE,CACJC,MAAM,CAAE,CACN,mBAAmB,CAAE,iBACvB,CAAQ,CACRC,eAAe,SAAf,CAAAA,eAAeA,CAACC,CAAQ,CAAE,CACxB,GAAM,CAAAC,MAAM,CAAGD,CAAC,CAACC,MAAqB,CACtC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MAAO,KACT,CACF,CACF,CAAC,CACH,CACF","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import _extends from"@babel/runtime/helpers/extends";import _asyncToGenerator from"@babel/runtime/helpers/asyncToGenerator";import _regeneratorRuntime from"@babel/runtime/regenerator";/* eslint-disable @typescript-eslint/no-explicit-any */import{useEffect,useState,Fragment}from"react";import{Table,TableHeader,TableRow,TableHead,TableBody,TableCell,TableHeadSortable}from"../../shadcn/components/ui/table";import{TableLoader}from"../../shadcn/components/ui/skeleton";import{ScrollArea,ScrollBar}from"../../shadcn/components/ui/scroll-area";import{Pagination,PaginationContent,renderPaginationArrows}from"../../shadcn/components/ui/pagination";import{TableButton}from"../../shadcn/components/ui/button";import{cn}from"../../shadcn/utils";import{renderNoDataFallback}from"./extra";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export function DataTable(_ref){var _ref2,_pagination$values$pa,_pagination$values,_ref3,_pagination$values$pa2,_pagination$values2;var _ref$data=_ref.data,data=_ref$data===void 0?[]:_ref$data,_ref$headerMapper=_ref.headerMapper,headerMapper=_ref$headerMapper===void 0?{}:_ref$headerMapper,_ref$className=_ref.className,className=_ref$className===void 0?"":_ref$className,_ref$actions=_ref.actions,actions=_ref$actions===void 0?[]:_ref$actions,_ref$isEditable=_ref.isEditable,isEditable=_ref$isEditable===void 0?false:_ref$isEditable,pagination=_ref.pagination,_ref$isLoading=_ref.isLoading,isLoading=_ref$isLoading===void 0?false:_ref$isLoading,onRowAction=_ref.onRowAction,onPageChange=_ref.onPageChange,onSort=_ref.onSort,sortConfig=_ref.sortConfig,_ref$otherProps=_ref.otherProps,otherProps=_ref$otherProps===void 0?{}:_ref$otherProps;var _useState=useState(null),activeSortColumn=_useState[0],setActiveSortColumn=_useState[1];var _useState2=useState({}),sortDirections=_useState2[0],setSortDirections=_useState2[1];var _useState3=useState(Number((_ref2=(_pagination$values$pa=pagination==null||(_pagination$values=pagination.values)==null?void 0:_pagination$values.pageNumber)!=null?_pagination$values$pa:pagination==null?void 0:pagination.initialPage)!=null?_ref2:1)),pageNumber=_useState3[0],setPageNumber=_useState3[1];var _useState4=useState(Number((_ref3=(_pagination$values$pa2=pagination==null||(_pagination$values2=pagination.values)==null?void 0:_pagination$values2.pageSize)!=null?_pagination$values$pa2:pagination==null?void 0:pagination.initialPageSize)!=null?_ref3:10)),pageSize=_useState4[0],setPageSize=_useState4[1];var _useState5=useState(Math.ceil(((pagination==null?void 0:pagination.totalCount)||0)/pageSize)||1),totalPages=_useState5[0],setTotalPages=_useState5[1];useEffect(function(){var _ref4,_pagination$values$pa3,_pagination$values3,_ref5,_pagination$values$pa4,_pagination$values4;setPageNumber(Number((_ref4=(_pagination$values$pa3=pagination==null||(_pagination$values3=pagination.values)==null?void 0:_pagination$values3.pageNumber)!=null?_pagination$values$pa3:pagination==null?void 0:pagination.initialPage)!=null?_ref4:1));setPageSize(Number((_ref5=(_pagination$values$pa4=pagination==null||(_pagination$values4=pagination.values)==null?void 0:_pagination$values4.pageSize)!=null?_pagination$values$pa4:pagination==null?void 0:pagination.initialPageSize)!=null?_ref5:25))},[pagination]);useEffect(function(){setTotalPages(Math.ceil(((pagination==null?void 0:pagination.totalCount)||0)/pageSize)||1)},[pagination==null?void 0:pagination.totalCount,pageSize]);useEffect(function(){if(sortConfig){setSortDirections(sortConfig);var first=Object.keys(sortConfig)[0];if(first){setActiveSortColumn(first)}}},[sortConfig]);var allDataKeys=Object.keys(data[0]||{});var originalKeys=allDataKeys.filter(function(key){return key in headerMapper});var headers=originalKeys.map(function(key){return headerMapper[key]});if(actions.length>0){headers.push("")}var rows=data.map(function(datum){return originalKeys.map(function(key){return datum[key]})});function handlePageChange(_x,_x2){return _handlePageChange.apply(this,arguments)}function _handlePageChange(){_handlePageChange=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(newPage,newSize){return _regeneratorRuntime.wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(newPage===void 0){newPage=pageNumber}if(newSize===void 0){newSize=pageSize}setPageNumber(newPage);setPageSize(newSize);onPageChange==null||onPageChange(newPage,newSize);case 5:case"end":return _context.stop()}},_callee)}));return _handlePageChange.apply(this,arguments)}function handleSortClick(column,direction){setActiveSortColumn(direction?column:null);setSortDirections(function(prev){var _extends2;return _extends({},prev,(_extends2={},_extends2[column]=direction,_extends2))});onSort==null||onSort(column,direction)}function renderActions(rowIndex,rowActions){if(!actions.length){return null}return/*#__PURE__*/_jsx(TableCell,{className:"sticky right-0 bg-white",children:rowActions.map(function(action){return/*#__PURE__*/_jsx(TableButton,{className:action.className,isEditable:isEditable,onClick:function onClick(){return onRowAction==null?void 0:onRowAction(rowIndex,action.id)},variant:action.variant,text:action.text,tooltipContent:action.tooltipContent,disabled:isLoading},action.id)})})}var actualRowCount=rows.length;var headerHeight=48;var rowHeight=40;var maxHeight=250;var calculatedHeight=headerHeight+actualRowCount*rowHeight;var tableHeight=Math.min(calculatedHeight,maxHeight);var defaultClasses="aspect-auto w-full";var mergedClasses=className?cn(defaultClasses,className):defaultClasses;function renderTableComponent(){if(isLoading&&(!data||data.length===0)){return/*#__PURE__*/_jsx(TableLoader,{})}if(!(data!=null&&data.length)&&!isLoading){return renderNoDataFallback()}return/*#__PURE__*/_jsxs(Table,_extends({},otherProps,{className:"caption-bottom text-sm relative "+mergedClasses,"data-slot":"table",children:[/*#__PURE__*/_jsx(TableHeader,{"data-slot":"table-header",className:"sticky top-0 z-2",children:/*#__PURE__*/_jsx(TableRow,{children:headers.map(function(head,idx){var isActionColumn=actions.length>0&&idx===headers.length-1;var originalKey=originalKeys[idx];if(isActionColumn){return/*#__PURE__*/_jsx(TableHead,{"data-slot":"table-header-"+idx,contentEditable:isEditable,className:"sticky right-0 bg-slate-100",children:head},idx)}return/*#__PURE__*/_jsx(TableHeadSortable,{"data-slot":"table-header-"+idx,sortDirection:sortDirections[originalKey]||"asc",isActive:activeSortColumn===originalKey,onSort:function onSort(direction){return handleSortClick(originalKey,direction)},sortable:!isLoading,isEditable:isEditable,children:head},idx)})})}),/*#__PURE__*/_jsx(TableBody,{"data-slot":"table-body",children:rows.map(function(row,rIdx){return/*#__PURE__*/_jsxs(TableRow,{"data-slot":"row-"+rIdx,className:"hover:bg-muted/50 border-b transition-colors",children:[row.map(function(cell,cIdx){return/*#__PURE__*/_jsx(TableCell,{"data-slot":"cell-"+rIdx+"-"+cIdx,className:"p-2 align-middle whitespace-nowrap",contentEditable:false,children:cell},cIdx)}),renderActions(rIdx,actions)]},rIdx)})})]}))}return/*#__PURE__*/_jsxs(Fragment,{children:[/*#__PURE__*/_jsxs(ScrollArea,{"data-slot":"table-container",className:mergedClasses,style:{height:tableHeight+"px"},children:[renderTableComponent(),/*#__PURE__*/_jsx(ScrollBar,{orientation:"horizontal"})]}),pagination&&pagination.totalCount>0&&/*#__PURE__*/_jsxs("div",{className:"flex items-center justify-between mt-2 w-full overflow-x-auto",children:[/*#__PURE__*/_jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[/*#__PURE__*/_jsx("label",{htmlFor:"page-size-select",className:"text-sm whitespace-nowrap",children:"Rows per page:"}),/*#__PURE__*/_jsx("select",{id:"page-size-select",value:pageSize,onChange:function onChange(e){return handlePageChange(1,Number(e.target.value))},className:"border rounded px-2 py-1 text-sm cursor-pointer",disabled:isLoading,children:pagination.pageSizeOptions.map(function(size){return/*#__PURE__*/_jsx("option",{value:size,children:size},size)})})]}),/*#__PURE__*/_jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[/*#__PURE__*/_jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[(pageNumber-1)*pageSize+1,"\u2013",Math.min(pageNumber*pageSize,pagination.totalCount)," of ",pagination.totalCount]}),/*#__PURE__*/_jsx(Pagination,{children:/*#__PURE__*/_jsx(PaginationContent,{className:"gap-0.2 flex-shrink-0",children:renderPaginationArrows(pageNumber,totalPages,isLoading,handlePageChange)})})]})]})]})}
|
|
2
|
+
//# sourceMappingURL=data-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table.js","names":["useEffect","useState","Fragment","Table","TableHeader","TableRow","TableHead","TableBody","TableCell","TableHeadSortable","TableLoader","ScrollArea","ScrollBar","Pagination","PaginationContent","renderPaginationArrows","TableButton","cn","renderNoDataFallback","jsx","_jsx","jsxs","_jsxs","DataTable","_ref","_ref2","_pagination$values$pa","_pagination$values","_ref3","_pagination$values$pa2","_pagination$values2","_ref$data","data","_ref$headerMapper","headerMapper","_ref$className","className","_ref$actions","actions","_ref$isEditable","isEditable","pagination","_ref$isLoading","isLoading","onRowAction","onPageChange","onSort","sortConfig","_ref$otherProps","otherProps","_useState","activeSortColumn","setActiveSortColumn","_useState2","sortDirections","setSortDirections","_useState3","Number","values","pageNumber","initialPage","setPageNumber","_useState4","pageSize","initialPageSize","setPageSize","_useState5","Math","ceil","totalCount","totalPages","setTotalPages","_ref4","_pagination$values$pa3","_pagination$values3","_ref5","_pagination$values$pa4","_pagination$values4","first","Object","keys","allDataKeys","originalKeys","filter","key","headers","map","length","push","rows","datum","handlePageChange","_x","_x2","_handlePageChange","apply","arguments","_asyncToGenerator","_regeneratorRuntime","mark","_callee","newPage","newSize","wrap","_callee$","_context","prev","next","stop","handleSortClick","column","direction","_extends2","_extends","renderActions","rowIndex","rowActions","children","action","onClick","id","variant","text","tooltipContent","disabled","actualRowCount","headerHeight","rowHeight","maxHeight","calculatedHeight","tableHeight","min","defaultClasses","mergedClasses","renderTableComponent","head","idx","isActionColumn","originalKey","contentEditable","sortDirection","isActive","sortable","row","rIdx","cell","cIdx","style","height","orientation","htmlFor","value","onChange","e","target","pageSizeOptions","size"],"sources":["../../../src/plugins/helpers/data-table.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { useEffect, useState, Fragment } from 'react';\nimport {\n Table,\n TableHeader,\n TableRow,\n TableHead,\n TableBody,\n TableCell,\n TableHeadSortable,\n SortDirection,\n} from '../../shadcn/components/ui/table';\nimport { TableLoader } from '../../shadcn/components/ui/skeleton';\nimport { ScrollArea, ScrollBar } from '../../shadcn/components/ui/scroll-area';\nimport {\n Pagination,\n PaginationContent,\n renderPaginationArrows,\n} from '../../shadcn/components/ui/pagination';\nimport { TableButton } from '../../shadcn/components/ui/button';\nimport { cn } from '../../shadcn/utils';\nimport { renderNoDataFallback } from './extra'\n\ntype RowAction = {\n id: string;\n text: string;\n variant?: string;\n tooltipContent?: string;\n className?: string;\n};\n\nexport type DataTableProps = {\n data: Record<string, any>[];\n headerMapper?: Record<string, string>;\n className?: string;\n isEditable?: boolean;\n actions?: RowAction[];\n pagination?: {\n values?: {\n pageNumber: number;\n pageSize: number;\n };\n initialPage?: number;\n initialPageSize?: number;\n totalCount: number;\n pageSizeOptions: number[];\n };\n isLoading?: boolean;\n onRowAction?: (rowIndex: number, actionId: string) => void;\n onPageChange?: (pageNumber: number, pageSize: number) => void;\n onSort?: (column: string, direction: SortDirection) => void;\n sortConfig?: Record<string, SortDirection>;\n otherProps?: Record<string, any>;\n};\n\nexport function DataTable({\n data = [],\n headerMapper = {},\n className = '',\n actions = [],\n isEditable = false,\n pagination,\n isLoading = false,\n onRowAction,\n onPageChange,\n onSort,\n sortConfig,\n otherProps = {},\n}: DataTableProps) {\n\n const [activeSortColumn, setActiveSortColumn] = useState<string | null>(null);\n const [sortDirections, setSortDirections] = useState<Record<string, SortDirection>>({});\n\n const [pageNumber, setPageNumber] = useState(\n Number(pagination?.values?.pageNumber ?? pagination?.initialPage ?? 1),\n );\n const [pageSize, setPageSize] = useState(\n Number(pagination?.values?.pageSize ?? pagination?.initialPageSize ?? 10),\n );\n const [totalPages, setTotalPages] = useState(\n Math.ceil((pagination?.totalCount || 0) / pageSize) || 1,\n );\n\n useEffect(() => {\n setPageNumber(Number(pagination?.values?.pageNumber ?? pagination?.initialPage ?? 1));\n setPageSize(Number(pagination?.values?.pageSize ?? pagination?.initialPageSize ?? 25));\n }, [pagination]);\n\n useEffect(() => {\n setTotalPages(Math.ceil((pagination?.totalCount || 0) / pageSize) || 1);\n }, [pagination?.totalCount, pageSize]);\n\n useEffect(() => {\n if (sortConfig) {\n setSortDirections(sortConfig);\n const first = Object.keys(sortConfig)[0];\n\n if (first) {\n setActiveSortColumn(first);\n }\n }\n }, [sortConfig]);\n\n const allDataKeys = Object.keys(data[0] || {});\n const originalKeys = allDataKeys.filter((key) => key in headerMapper);\n const headers = originalKeys.map((key) => headerMapper[key]);\n\n if (actions.length > 0) {\n headers.push('');\n }\n\n const rows = data.map((datum: any) => originalKeys.map((key) => datum[key]));\n\n async function handlePageChange(newPage = pageNumber, newSize = pageSize) {\n setPageNumber(newPage);\n setPageSize(newSize);\n onPageChange?.(newPage, newSize);\n }\n\n function handleSortClick(column: string, direction: SortDirection) {\n setActiveSortColumn(direction ? column : null);\n setSortDirections((prev) => ({\n ...prev,\n [column]: direction,\n }));\n onSort?.(column, direction);\n }\n\n function renderActions(rowIndex: number, rowActions: RowAction[]) {\n if (!actions.length) {\n return null;\n }\n\n return (\n <TableCell className=\"sticky right-0 bg-white\">\n {rowActions.map((action) => (\n <TableButton\n key={action.id}\n className={action.className}\n isEditable={isEditable}\n onClick={() => onRowAction?.(rowIndex, action.id)}\n variant={action.variant}\n text={action.text}\n tooltipContent={action.tooltipContent}\n disabled={isLoading}\n />\n ))}\n </TableCell>\n );\n }\n\n const actualRowCount = rows.length;\n const headerHeight = 48;\n const rowHeight = 40;\n const maxHeight = 250;\n const calculatedHeight = headerHeight + actualRowCount * rowHeight;\n const tableHeight = Math.min(calculatedHeight, maxHeight);\n\n const defaultClasses = `aspect-auto w-full`;\n const mergedClasses = className ? cn(defaultClasses, className) : defaultClasses;\n\n function renderTableComponent() {\n if (isLoading && (!data || data.length === 0)) {\n return <TableLoader />;\n }\n\n if(!data?.length && !isLoading ) {\n return renderNoDataFallback()\n }\n\n return (\n <Table\n {...otherProps}\n className={`caption-bottom text-sm relative ${mergedClasses}`}\n data-slot=\"table\"\n >\n <TableHeader data-slot=\"table-header\" className=\"sticky top-0 z-2\">\n <TableRow>\n {headers.map((head: string, idx: number) => {\n const isActionColumn = actions.length > 0 && idx === headers.length - 1;\n const originalKey = originalKeys[idx];\n\n if (isActionColumn) {\n return (\n <TableHead\n key={idx}\n data-slot={`table-header-${idx}`}\n contentEditable={isEditable}\n className=\"sticky right-0 bg-slate-100\"\n >\n {head}\n </TableHead>\n );\n }\n\n return (\n <TableHeadSortable\n key={idx}\n data-slot={`table-header-${idx}`}\n sortDirection={sortDirections[originalKey] || 'asc'}\n isActive={activeSortColumn === originalKey}\n onSort={(direction) => handleSortClick(originalKey, direction)}\n sortable={!isLoading}\n isEditable={isEditable}\n >\n {head}\n </TableHeadSortable>\n );\n })}\n </TableRow>\n </TableHeader>\n <TableBody data-slot=\"table-body\">\n {rows.map((row: any[], rIdx: number) => (\n <TableRow\n key={rIdx}\n data-slot={`row-${rIdx}`}\n className=\"hover:bg-muted/50 border-b transition-colors\"\n >\n {row.map((cell: string, cIdx: number) => (\n <TableCell\n key={cIdx}\n data-slot={`cell-${rIdx}-${cIdx}`}\n className=\"p-2 align-middle whitespace-nowrap\"\n contentEditable={false}\n >\n {cell}\n </TableCell>\n ))}\n {renderActions(rIdx, actions)}\n </TableRow>\n ))}\n </TableBody>\n </Table>\n );\n }\n\n return (\n <Fragment>\n <ScrollArea\n data-slot=\"table-container\"\n className={mergedClasses}\n style={{\n height: `${tableHeight}px`,\n }}\n >\n {renderTableComponent()}\n <ScrollBar orientation=\"horizontal\" />\n </ScrollArea>\n {pagination && pagination.totalCount > 0 && (\n <div className=\"flex items-center justify-between mt-2 w-full overflow-x-auto\">\n <div className=\"flex items-center gap-2 flex-shrink-0\">\n <label htmlFor=\"page-size-select\" className=\"text-sm whitespace-nowrap\">\n Rows per page:\n </label>\n <select\n id=\"page-size-select\"\n value={pageSize}\n onChange={(e) => handlePageChange(1, Number(e.target.value))}\n className=\"border rounded px-2 py-1 text-sm cursor-pointer\"\n disabled={isLoading}\n >\n {pagination.pageSizeOptions.map((size: number) => (\n <option key={size} value={size}>\n {size}\n </option>\n ))}\n </select>\n </div>\n <div className=\"flex items-center gap-1 flex-shrink-0\">\n <span className=\"text-xs text-muted-foreground whitespace-nowrap\">\n {(pageNumber - 1) * pageSize + 1}–\n {Math.min(pageNumber * pageSize, pagination.totalCount)} of {pagination.totalCount}\n </span>\n <Pagination>\n <PaginationContent className=\"gap-0.2 flex-shrink-0\">\n {renderPaginationArrows(pageNumber, totalPages, isLoading, handlePageChange)}\n </PaginationContent>\n </Pagination>\n </div>\n </div>\n )}\n </Fragment>\n );\n}\n"],"mappings":"wLAAA,uDACA,OAASA,SAAS,CAAEC,QAAQ,CAAEC,QAAQ,KAAQ,OAAO,CACrD,OACEC,KAAK,CACLC,WAAW,CACXC,QAAQ,CACRC,SAAS,CACTC,SAAS,CACTC,SAAS,CACTC,iBAAiB,KAEZ,kCAAkC,CACzC,OAASC,WAAW,KAAQ,qCAAqC,CACjE,OAASC,UAAU,CAAEC,SAAS,KAAQ,wCAAwC,CAC9E,OACEC,UAAU,CACVC,iBAAiB,CACjBC,sBAAsB,KACjB,uCAAuC,CAC9C,OAASC,WAAW,KAAQ,mCAAmC,CAC/D,OAASC,EAAE,KAAQ,oBAAoB,CACvC,OAASC,oBAAoB,KAAQ,SAAS,QAAAC,GAAA,IAAAC,IAAA,CAAAC,IAAA,IAAAC,KAAA,yBAkC9C,MAAO,SAAS,CAAAC,SAASA,CAAAC,IAAA,CAaN,KAAAC,KAAA,CAAAC,qBAAA,CAAAC,kBAAA,CAAAC,KAAA,CAAAC,sBAAA,CAAAC,mBAAA,KAAAC,SAAA,CAAAP,IAAA,CAZjBQ,IAAI,CAAJA,IAAI,CAAAD,SAAA,UAAG,EAAE,CAAAA,SAAA,CAAAE,iBAAA,CAAAT,IAAA,CACTU,YAAY,CAAZA,YAAY,CAAAD,iBAAA,UAAG,CAAC,CAAC,CAAAA,iBAAA,CAAAE,cAAA,CAAAX,IAAA,CACjBY,SAAS,CAATA,SA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AAKc,SAAS,CAAC,uCAAuC,CAAAiF,QAAA,eACpD/F,KAAA,SAAMc,SAAS,CAAC,iDAAiD,CAAAiF,QAAA,EAC9D,CAAC1D,UAAU,CAAG,CAAC,EAAII,QAAQ,CAAG,CAAC,CAAC,QACjC,CAACI,IAAI,CAACgE,GAAG,CAACxE,UAAU,CAAGI,QAAQ,CAAEtB,UAAU,CAAC4B,UAAU,CAAC,CAAC,MAAI,CAAC5B,UAAU,CAAC4B,UAAU,EAC9E,CAAC,cACPjD,IAAA,CAACP,UAAU,EAAAwG,QAAA,cACTjG,IAAA,CAACN,iBAAiB,EAACsB,SAAS,CAAC,uBAAuB,CAAAiF,QAAA,CACjDtG,sBAAsB,CAAC4C,UAAU,CAAEW,UAAU,CAAE3B,SAAS,CAAEgD,gBAAgB,CAAC,CAC3D,CAAC,CACV,CAAC,EACV,CAAC,EACH,CACN,EACO,CAEd","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
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,ErrorState}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";// 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 - Force assignment to read-only property
|
|
5
|
+
import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";Object.defineProperty(domutil,"getOffset",{value:function value(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}},writable:true,configurable:true});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}export function renderActionCard(props){var gjsModel=props.gjsModel,rest=_objectWithoutPropertiesLoose(props,_excluded);var _useState=useState(_extends({},props,gjsModel.get("componentProps"))),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"))),attributes=_useState2[0],setAttributes=_useState2[1];useEffect(function(){var handlePropsChange=function handlePropsChange(){setAllData(_extends({},gjsModel.get("componentProps")))};gjsModel.on("change:componentProps",handlePropsChange);return function(){gjsModel.off("change:componentProps",handlePropsChange)}},[gjsModel]);useEffect(function(){var handleAttributesChange=function handleAttributesChange(){setAttributes(_extends({},gjsModel.get("attributes")))};gjsModel.on("change:attributes",handleAttributesChange);return function(){gjsModel.off("change:attributes",handleAttributesChange)}},[gjsModel]);var defaultClasses="bg-white text-black p-4 rounded-lg shadow border flex flex-col h-full";if(attributes.error){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__*/_jsx(ErrorState,{errorMessage:attributes.errorMessage||"Failed to load action card content",variant:"default"})})})}))}if(attributes.loading){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__*/_jsx(CardLoader,{})})})}))}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,gjsModel.get("componentProps"))),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(){var handlePropsChange=function handlePropsChange(){setAllData(_extends({},gjsModel.get("componentProps")))};gjsModel.on("change:componentProps",handlePropsChange);return function(){gjsModel.off("change:componentProps",handlePropsChange)}},[gjsModel]);useEffect(function(){var handleAttributesChange=function handleAttributesChange(){setAttributes(_extends({},gjsModel.get("attributes")))};gjsModel.on("change:attributes",handleAttributesChange);return function(){gjsModel.off("change:attributes",handleAttributesChange)}},[gjsModel]);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.error){return/*#__PURE__*/_jsx(CardContent,{children:/*#__PURE__*/_jsx(ErrorState,{errorMessage:attributes.errorMessage||"Failed to load card content",variant:"default"})})}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,gjsModel.get("componentProps"))),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(){var handlePropsChange=function handlePropsChange(){setAllData(_extends({},gjsModel.get("componentProps")))};gjsModel.on("change:componentProps",handlePropsChange);return function(){gjsModel.off("change:componentProps",handlePropsChange)}},[gjsModel]);useEffect(function(){var handleAttributesChange=function handleAttributesChange(){setAttributes(_extends({},gjsModel.get("attributes")))};gjsModel.on("change:attributes",handleAttributesChange);return function(){gjsModel.off("change:attributes",handleAttributesChange)}},[gjsModel]);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.error?/*#__PURE__*/_jsx(ErrorState,{errorMessage:attributes.errorMessage||"Failed to load chart data",variant:"default"}):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,gjsModel.get("componentProps"))),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(){var handlePropsChange=function handlePropsChange(){setAllData(_extends({},gjsModel.get("componentProps")))};gjsModel.on("change:componentProps",handlePropsChange);return function(){gjsModel.off("change:componentProps",handlePropsChange)}},[gjsModel]);useEffect(function(){var handleAttributesChange=function handleAttributesChange(){setAttributes(_extends({},gjsModel.get("attributes")))};gjsModel.on("change:attributes",handleAttributesChange);return function(){gjsModel.off("change:attributes",handleAttributesChange)}},[gjsModel]);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:attributes.error?/*#__PURE__*/_jsx(ErrorState,{errorMessage:attributes.errorMessage||"Failed to load table data",variant:"default"}):/*#__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,gjsModel.get("componentProps"))),allData=_useState10[0],setAllData=_useState10[1];var _useState11=useState(_extends({},gjsModel.get("attributes"))),attributes=_useState11[0],setAttributes=_useState11[1];useEffect(function(){var handlePropsChange=function handlePropsChange(){setAllData(_extends({},gjsModel.get("componentProps")))};gjsModel.on("change:componentProps",handlePropsChange);return function(){gjsModel.off("change:componentProps",handlePropsChange)}},[gjsModel]);useEffect(function(){var handleAttributesChange=function handleAttributesChange(){setAttributes(_extends({},gjsModel.get("attributes")))};gjsModel.on("change:attributes",handleAttributesChange);return function(){gjsModel.off("change:attributes",handleAttributesChange)}},[gjsModel]);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||"";var newProps=_extends({},gjsModel.get("componentProps"),{summaryText:content});// Update the gjsModel which will trigger the useEffect to update local state
|
|
10
|
+
gjsModel.set("componentProps",newProps);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.error){return/*#__PURE__*/_jsx("div",_extends({className:"px-[1em]"},rest,{children:/*#__PURE__*/_jsx(ErrorState,{errorMessage:attributes.errorMessage||"Failed to load markdown content",variant:"default"})}))}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,gjsModel.get("componentProps"))),allData=_useState13[0],setAllData=_useState13[1];var _useState14=useState(_extends({},gjsModel.get("attributes"))),attributes=_useState14[0],setAttributes=_useState14[1];useEffect(function(){var handlePropsChange=function handlePropsChange(){setAllData(_extends({},gjsModel.get("componentProps")))};gjsModel.on("change:componentProps",handlePropsChange);return function(){gjsModel.off("change:componentProps",handlePropsChange)}},[gjsModel]);useEffect(function(){var handleAttributesChange=function handleAttributesChange(){setAttributes(_extends({},gjsModel.get("attributes")))};gjsModel.on("change:attributes",handleAttributesChange);return function(){gjsModel.off("change:attributes",handleAttributesChange)}},[gjsModel]);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})}if(attributes.error){return/*#__PURE__*/_jsx("div",{className:"inline-flex",children:/*#__PURE__*/_jsx(ErrorState,{errorMessage:attributes.errorMessage||"Button error",variant:"minimal"})})}return/*#__PURE__*/_jsx(TooltipButton,{className:className,isEditable:isEditable,interact:interact,attributes:attributes,variant:variant,size:size,text:text,tooltipContent:tooltipContent})}export function getRenderers(){return{ActionCard:renderActionCard,Button:renderButton,Card:renderCard,Chart:renderChart,Filter:renderFilter,Markdown:renderMarkdown,Search:renderSearch,Table:renderTable,Tabs:renderTab}}
|
|
11
|
+
//# 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","ErrorState","Tabs","TabsContent","TabsList","TabsTrigger","cn","getAffectedComponentsWithLoader","DataTable","jsx","_jsx","jsxs","_jsxs","Object","defineProperty","value","el","html","ownerDocument","documentElement","box","top","left","getBoundingClientRect","iframe","document","querySelector","iframeWindow","contentWindow","pageYOffset","clientTop","pageXOffset","clientLeft","writable","configurable","baseColors","colors","Blue_100","Blue_30","Purpley_100","Purpley_30","Light_Bluish_Green","Wild_Strawberry","getNColors","n","_iterator","_createForOfIteratorHelperLoose","_step","done","baseColor","push","scale","mode","getOneColor","existing","color","base","Math","floor","random","length","selectedColorIndex","includes","selectedColors","i","renderActionCard","props","gjsModel","rest","_objectWithoutPropertiesLoose","_excluded","_useState","_extends","get","allData","setAllData","_allData$headerConten","headerContent","icon","_allData$bodyContent","bodyContent","_useState2","attributes","setAttributes","handlePropsChange","on","off","handleAttributesChange","defaultClasses","error","className","isEditable","contentEditable","children","errorMessage","variant","loading","renderCard","_props$isEditable","_excluded2","_useState3","headerDescription","footerContent","footerClass","footerIcon","contentMetadata","contentMetadataClass","_useState4","defaultFooterClasses","defaultContentMetadataClasses","mergedCardClassName","mergedFooterClassName","mergedContentMetadataClassName","getCardContent","interactionApiInProgress","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","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","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","newProps","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","_allData$size","size","tooltipContent","interact","concat","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, ErrorState} 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';\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 - Force assignment to read-only property\nObject.defineProperty(domutil, 'getOffset', {\n value: (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 writable: true,\n configurable: true\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\nexport function renderActionCard(props: any): JSX.Element {\n const { gjsModel, ...rest } = props;\n\n const [allData, setAllData] = useState({\n ...props,\n ...gjsModel.get('componentProps'),\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 [attributes, setAttributes] = useState({\n ...gjsModel.get('attributes'),\n });\n\n useEffect(() => {\n const handlePropsChange = () => {\n setAllData({\n ...gjsModel.get('componentProps'),\n });\n };\n\n gjsModel.on('change:componentProps', handlePropsChange);\n \n return () => {\n gjsModel.off('change:componentProps', handlePropsChange);\n };\n }, [gjsModel]);\n\n useEffect(() => {\n const handleAttributesChange = () => {\n setAttributes({\n ...gjsModel.get('attributes'),\n });\n };\n\n gjsModel.on('change:attributes', handleAttributesChange);\n \n return () => {\n gjsModel.off('change:attributes', handleAttributesChange);\n };\n }, [gjsModel]);\n\n const defaultClasses = 'bg-white text-black p-4 rounded-lg shadow border flex flex-col h-full';\n\n if (attributes.error) {\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 <ErrorState \n errorMessage={attributes.errorMessage || \"Failed to load action card content\"}\n variant=\"default\"\n />\n </div>\n </CardContent>\n </Card>\n );\n }\n\n if (attributes.loading) {\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 <CardLoader />\n </div>\n </CardContent>\n </Card>\n );\n }\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 ...gjsModel.get('componentProps'),\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 const handlePropsChange = () => {\n setAllData({\n ...gjsModel.get('componentProps'),\n });\n };\n\n gjsModel.on('change:componentProps', handlePropsChange);\n \n return () => {\n gjsModel.off('change:componentProps', handlePropsChange);\n };\n }, [gjsModel]);\n\n useEffect(() => {\n const handleAttributesChange = () => {\n setAttributes({\n ...gjsModel.get('attributes'),\n });\n };\n\n gjsModel.on('change:attributes', handleAttributesChange);\n \n return () => {\n gjsModel.off('change:attributes', handleAttributesChange);\n };\n }, [gjsModel]);\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 if (attributes.error) {\n return (\n <CardContent>\n <ErrorState \n errorMessage={attributes.errorMessage || \"Failed to load card content\"}\n variant=\"default\"\n />\n </CardContent>\n );\n }\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 ...gjsModel.get('componentProps'),\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 const handlePropsChange = () => {\n setAllData({\n ...gjsModel.get('componentProps'),\n });\n };\n\n gjsModel.on('change:componentProps', handlePropsChange);\n \n return () => {\n gjsModel.off('change:componentProps', handlePropsChange);\n };\n }, [gjsModel]);\n\n useEffect(() => {\n const handleAttributesChange = () => {\n setAttributes({\n ...gjsModel.get('attributes'),\n });\n };\n\n gjsModel.on('change:attributes', handleAttributesChange);\n \n return () => {\n gjsModel.off('change:attributes', handleAttributesChange);\n };\n }, [gjsModel]);\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.error ? (\n <ErrorState \n errorMessage={attributes.errorMessage || \"Failed to load chart data\"}\n variant=\"default\"\n />\n ) : (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 ...gjsModel.get('componentProps'),\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 const handlePropsChange = () => {\n setAllData({\n ...gjsModel.get('componentProps'),\n });\n };\n\n gjsModel.on('change:componentProps', handlePropsChange);\n \n return () => {\n gjsModel.off('change:componentProps', handlePropsChange);\n };\n }, [gjsModel]);\n\n useEffect(() => {\n const handleAttributesChange = () => {\n setAttributes({\n ...gjsModel.get('attributes'),\n });\n };\n\n gjsModel.on('change:attributes', handleAttributesChange);\n \n return () => {\n gjsModel.off('change:attributes', handleAttributesChange);\n };\n }, [gjsModel]);\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 {attributes.error ? (\n <ErrorState \n errorMessage={attributes.errorMessage || \"Failed to load table data\"}\n variant=\"default\"\n />\n ) : (\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 )}\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 ...gjsModel.get('componentProps'),\n });\n\n\n\n const [attributes, setAttributes] = useState({\n ...gjsModel.get('attributes'),\n });\n\n useEffect(() => {\n const handlePropsChange = () => {\n setAllData({\n ...gjsModel.get('componentProps'),\n });\n };\n\n gjsModel.on('change:componentProps', handlePropsChange);\n \n return () => {\n gjsModel.off('change:componentProps', handlePropsChange);\n };\n }, [gjsModel]);\n\n useEffect(() => {\n const handleAttributesChange = () => {\n setAttributes({\n ...gjsModel.get('attributes'),\n });\n };\n\n gjsModel.on('change:attributes', handleAttributesChange);\n \n return () => {\n gjsModel.off('change:attributes', handleAttributesChange);\n };\n }, [gjsModel]);\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 const newProps = {\n ...gjsModel.get('componentProps'),\n summaryText: content,\n };\n \n // Update the gjsModel which will trigger the useEffect to update local state\n gjsModel.set('componentProps', newProps);\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.error) {\n return (\n <div className=\"px-[1em]\" {...rest}>\n <ErrorState \n errorMessage={attributes.errorMessage || \"Failed to load markdown content\"}\n variant=\"default\"\n />\n </div>\n );\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 }}>\n {allData.summaryText || ''}\n </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 }}>\n {allData.summaryText || ''}\n </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 ...gjsModel.get('componentProps'),\n });\n\n const [attributes, setAttributes] = useState({\n ...gjsModel.get('attributes'),\n });\n\n useEffect(() => {\n const handlePropsChange = () => {\n setAllData({\n ...gjsModel.get('componentProps'),\n });\n };\n\n gjsModel.on('change:componentProps', handlePropsChange);\n \n return () => {\n gjsModel.off('change:componentProps', handlePropsChange);\n };\n }, [gjsModel]);\n\n useEffect(() => {\n const handleAttributesChange = () => {\n setAttributes({\n ...gjsModel.get('attributes'),\n });\n };\n\n gjsModel.on('change:attributes', handleAttributesChange);\n \n return () => {\n gjsModel.off('change:attributes', handleAttributesChange);\n };\n }, [gjsModel]);\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 if (attributes.error) {\n return (\n <div className=\"inline-flex\">\n <ErrorState \n errorMessage={attributes.errorMessage || \"Button error\"}\n variant=\"minimal\"\n />\n </div>\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\nexport function getRenderers(): Record<string, (props: any) => JSX.Element> {\n return {\n ActionCard: renderActionCard,\n Button: renderButton,\n Card: renderCard,\n Chart: renderChart,\n Filter: renderFilter,\n Markdown: renderMarkdown,\n Search: renderSearch,\n Table: renderTable,\n Tabs: renderTab,\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,GA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AAK,CACXI,cAAc,CAAEA,cAAe,CAChC,CAEL,CAEA,MAAO,SAAS,CAAAG,YAAYA,CAAA,CAAgD,CAC1E,MAAO,CACLC,UAAU,CAAE9P,gBAAgB,CAC5B+P,MAAM,CAAEd,YAAY,CACpBjU,IAAI,CAAEgH,UAAU,CAChBgO,KAAK,CAAEzK,WAAW,CAClB0K,MAAM,CAAExU,YAAY,CACpBvB,QAAQ,CAAE6S,cAAc,CACxBmD,MAAM,CAAEtU,YAAY,CACpBuU,KAAK,CAAE5I,WAAW,CAClBtL,IAAI,CAAEyQ,SACR,CACF","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{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"]})]})]})]})}
|
|
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{ErrorState}from"./skeleton";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}))}if(attributes.error){return/*#__PURE__*/_jsx("div",{ref:wrapperRef,className:"relative inline-block "+className,style:{color:"#2A44D4",backgroundColor:"rgb(255 255 255)"},children:/*#__PURE__*/_jsx(ErrorState,{errorMessage:attributes.errorMessage||"Failed to load filter",variant:"minimal"})})}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
|