@easemate/web-kit 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -5
- package/build/decorators.cjs +921 -0
- package/build/decorators.cjs.map +1 -0
- package/build/decorators.d.cts +123 -0
- package/build/decorators.d.ts +123 -0
- package/build/decorators.js +889 -0
- package/build/decorators.js.map +1 -0
- package/build/elements.cjs +27604 -0
- package/build/elements.cjs.map +1 -0
- package/build/elements.d.cts +373 -0
- package/build/elements.d.ts +373 -0
- package/build/elements.js +27528 -0
- package/build/elements.js.map +1 -0
- package/build/{elements/monitor/index.d.ts → index-31iOHBv0.d.cts} +26 -5
- package/build/{elements/monitor/index.d.cts → index-31iOHBv0.d.ts} +26 -5
- package/build/{elements/panel/index.d.cts → index-NzGpn7ai.d.cts} +6 -3
- package/build/{elements/panel/index.d.ts → index-NzGpn7ai.d.ts} +6 -3
- package/build/{elements/state/index.d.ts → index-qZoNKsHn.d.cts} +46 -5
- package/build/{elements/state/index.d.cts → index-qZoNKsHn.d.ts} +46 -5
- package/build/index.cjs +38651 -38
- package/build/index.cjs.map +1 -0
- package/build/index.d.cts +85 -6
- package/build/index.d.ts +85 -6
- package/build/index.js +38535 -12
- package/build/index.js.map +1 -0
- package/build/init-B7gNNyTd.d.ts +235 -0
- package/build/init-DwVGVxkx.d.cts +235 -0
- package/build/jsx.cjs +31 -0
- package/build/jsx.cjs.map +1 -0
- package/build/jsx.d.cts +317 -0
- package/build/jsx.d.ts +317 -0
- package/build/jsx.js +6 -0
- package/build/jsx.js.map +1 -0
- package/build/outside-click-rZ3Di_WX.d.cts +16 -0
- package/build/outside-click-rZ3Di_WX.d.ts +16 -0
- package/build/react.cjs +37827 -0
- package/build/react.cjs.map +1 -0
- package/build/react.d.cts +356 -0
- package/build/react.d.ts +356 -0
- package/build/react.js +37802 -0
- package/build/react.js.map +1 -0
- package/build/register.cjs +35832 -36
- package/build/register.cjs.map +1 -0
- package/build/register.d.cts +4 -33
- package/build/register.d.ts +4 -33
- package/build/register.js +35831 -35
- package/build/register.js.map +1 -0
- package/build/register.server.cjs +19 -0
- package/build/register.server.cjs.map +1 -0
- package/build/register.server.d.cts +2 -0
- package/build/register.server.d.ts +2 -0
- package/build/register.server.js +1 -0
- package/build/register.server.js.map +1 -0
- package/build/registry-9GX9KTG1.d.cts +264 -0
- package/build/registry-9GX9KTG1.d.ts +264 -0
- package/build/template-helpers-CguLXtLD.d.cts +10 -0
- package/build/template-helpers-CguLXtLD.d.ts +10 -0
- package/build/theme.cjs +746 -0
- package/build/theme.cjs.map +1 -0
- package/build/{theme/index.d.cts → theme.d.cts} +41 -21
- package/build/{theme/index.d.ts → theme.d.ts} +41 -21
- package/build/theme.js +692 -0
- package/build/theme.js.map +1 -0
- package/build/utils.cjs +205 -0
- package/build/utils.cjs.map +1 -0
- package/build/utils.d.cts +26 -0
- package/build/utils.d.ts +26 -0
- package/build/utils.js +167 -0
- package/build/utils.js.map +1 -0
- package/package.json +47 -33
- package/build/components/code/index.cjs +0 -152
- package/build/components/code/index.d.cts +0 -11
- package/build/components/code/index.d.ts +0 -11
- package/build/components/code/index.js +0 -148
- package/build/components/code/utils/highlight-api.cjs +0 -18
- package/build/components/code/utils/highlight-api.d.cts +0 -7
- package/build/components/code/utils/highlight-api.d.ts +0 -7
- package/build/components/code/utils/highlight-api.js +0 -14
- package/build/components/code/utils/syntax-grammars.cjs +0 -62
- package/build/components/code/utils/syntax-grammars.d.cts +0 -7
- package/build/components/code/utils/syntax-grammars.d.ts +0 -7
- package/build/components/code/utils/syntax-grammars.js +0 -59
- package/build/components/code/utils/syntax-highlighter-theme.cjs +0 -27
- package/build/components/code/utils/syntax-highlighter-theme.d.cts +0 -3
- package/build/components/code/utils/syntax-highlighter-theme.d.ts +0 -3
- package/build/components/code/utils/syntax-highlighter-theme.js +0 -23
- package/build/components/code/utils/syntax-highlighter-types.cjs +0 -2
- package/build/components/code/utils/syntax-highlighter-types.d.cts +0 -12
- package/build/components/code/utils/syntax-highlighter-types.d.ts +0 -12
- package/build/components/code/utils/syntax-highlighter-types.js +0 -1
- package/build/components/code/utils/syntax-tokenizer.cjs +0 -63
- package/build/components/code/utils/syntax-tokenizer.d.cts +0 -3
- package/build/components/code/utils/syntax-tokenizer.d.ts +0 -3
- package/build/components/code/utils/syntax-tokenizer.js +0 -58
- package/build/components/curve/bezier-conversion.cjs +0 -23
- package/build/components/curve/bezier-conversion.d.cts +0 -2
- package/build/components/curve/bezier-conversion.d.ts +0 -2
- package/build/components/curve/bezier-conversion.js +0 -19
- package/build/components/curve/canvas-controls.cjs +0 -300
- package/build/components/curve/canvas-controls.d.cts +0 -12
- package/build/components/curve/canvas-controls.d.ts +0 -12
- package/build/components/curve/canvas-controls.js +0 -296
- package/build/components/curve/canvas.cjs +0 -1208
- package/build/components/curve/canvas.d.cts +0 -24
- package/build/components/curve/canvas.d.ts +0 -24
- package/build/components/curve/canvas.js +0 -1204
- package/build/components/curve/constants.cjs +0 -203
- package/build/components/curve/constants.d.cts +0 -23
- package/build/components/curve/constants.d.ts +0 -23
- package/build/components/curve/constants.js +0 -200
- package/build/components/curve/controls.cjs +0 -942
- package/build/components/curve/controls.d.cts +0 -37
- package/build/components/curve/controls.d.ts +0 -37
- package/build/components/curve/controls.js +0 -938
- package/build/components/curve/index.cjs +0 -335
- package/build/components/curve/index.d.cts +0 -31
- package/build/components/curve/index.d.ts +0 -31
- package/build/components/curve/index.js +0 -330
- package/build/components/curve/output.cjs +0 -141
- package/build/components/curve/output.d.cts +0 -19
- package/build/components/curve/output.d.ts +0 -19
- package/build/components/curve/output.js +0 -137
- package/build/components/curve/styles.cjs +0 -493
- package/build/components/curve/styles.d.cts +0 -6
- package/build/components/curve/styles.d.ts +0 -6
- package/build/components/curve/styles.js +0 -490
- package/build/components/curve/svg-renderer.cjs +0 -185
- package/build/components/curve/svg-renderer.d.cts +0 -9
- package/build/components/curve/svg-renderer.d.ts +0 -9
- package/build/components/curve/svg-renderer.js +0 -175
- package/build/components/curve/toolbar.cjs +0 -368
- package/build/components/curve/toolbar.d.cts +0 -26
- package/build/components/curve/toolbar.d.ts +0 -26
- package/build/components/curve/toolbar.js +0 -364
- package/build/components/curve/types.cjs +0 -10
- package/build/components/curve/types.d.cts +0 -33
- package/build/components/curve/types.d.ts +0 -33
- package/build/components/curve/types.js +0 -7
- package/build/components/curve/utils.cjs +0 -541
- package/build/components/curve/utils.d.cts +0 -33
- package/build/components/curve/utils.d.ts +0 -33
- package/build/components/curve/utils.js +0 -521
- package/build/components/index.cjs +0 -18
- package/build/components/index.d.cts +0 -2
- package/build/components/index.d.ts +0 -2
- package/build/components/index.js +0 -2
- package/build/decorators/Component.cjs +0 -127
- package/build/decorators/Component.d.cts +0 -28
- package/build/decorators/Component.d.ts +0 -28
- package/build/decorators/Component.js +0 -123
- package/build/decorators/Listen.cjs +0 -154
- package/build/decorators/Listen.d.cts +0 -18
- package/build/decorators/Listen.d.ts +0 -18
- package/build/decorators/Listen.js +0 -151
- package/build/decorators/OutsideClick.cjs +0 -64
- package/build/decorators/OutsideClick.d.cts +0 -16
- package/build/decorators/OutsideClick.d.ts +0 -16
- package/build/decorators/OutsideClick.js +0 -59
- package/build/decorators/Prop.cjs +0 -273
- package/build/decorators/Prop.d.cts +0 -22
- package/build/decorators/Prop.d.ts +0 -22
- package/build/decorators/Prop.js +0 -270
- package/build/decorators/Query.cjs +0 -79
- package/build/decorators/Query.d.cts +0 -27
- package/build/decorators/Query.d.ts +0 -27
- package/build/decorators/Query.js +0 -76
- package/build/decorators/Watch.cjs +0 -52
- package/build/decorators/Watch.d.cts +0 -11
- package/build/decorators/Watch.d.ts +0 -11
- package/build/decorators/Watch.js +0 -49
- package/build/decorators/index.cjs +0 -15
- package/build/decorators/index.d.cts +0 -6
- package/build/decorators/index.d.ts +0 -6
- package/build/decorators/index.js +0 -6
- package/build/elements/button/index.cjs +0 -214
- package/build/elements/button/index.d.cts +0 -11
- package/build/elements/button/index.d.ts +0 -11
- package/build/elements/button/index.js +0 -210
- package/build/elements/checkbox/index.cjs +0 -316
- package/build/elements/checkbox/index.d.cts +0 -14
- package/build/elements/checkbox/index.d.ts +0 -14
- package/build/elements/checkbox/index.js +0 -312
- package/build/elements/color/index.cjs +0 -154
- package/build/elements/color/index.d.cts +0 -18
- package/build/elements/color/index.d.ts +0 -18
- package/build/elements/color/index.js +0 -150
- package/build/elements/color/picker.cjs +0 -544
- package/build/elements/color/picker.d.cts +0 -37
- package/build/elements/color/picker.d.ts +0 -37
- package/build/elements/color/picker.js +0 -540
- package/build/elements/color/utils.cjs +0 -235
- package/build/elements/color/utils.d.cts +0 -37
- package/build/elements/color/utils.d.ts +0 -37
- package/build/elements/color/utils.js +0 -218
- package/build/elements/dropdown/index.cjs +0 -875
- package/build/elements/dropdown/index.d.cts +0 -30
- package/build/elements/dropdown/index.d.ts +0 -30
- package/build/elements/dropdown/index.js +0 -871
- package/build/elements/field/index.cjs +0 -82
- package/build/elements/field/index.d.cts +0 -4
- package/build/elements/field/index.d.ts +0 -4
- package/build/elements/field/index.js +0 -78
- package/build/elements/icons/animation/chevron.cjs +0 -57
- package/build/elements/icons/animation/chevron.d.cts +0 -10
- package/build/elements/icons/animation/chevron.d.ts +0 -10
- package/build/elements/icons/animation/chevron.js +0 -53
- package/build/elements/icons/animation/clear.cjs +0 -74
- package/build/elements/icons/animation/clear.d.cts +0 -3
- package/build/elements/icons/animation/clear.d.ts +0 -3
- package/build/elements/icons/animation/clear.js +0 -70
- package/build/elements/icons/animation/grid.cjs +0 -77
- package/build/elements/icons/animation/grid.d.cts +0 -8
- package/build/elements/icons/animation/grid.d.ts +0 -8
- package/build/elements/icons/animation/grid.js +0 -73
- package/build/elements/icons/animation/loading.cjs +0 -68
- package/build/elements/icons/animation/loading.d.cts +0 -3
- package/build/elements/icons/animation/loading.d.ts +0 -3
- package/build/elements/icons/animation/loading.js +0 -64
- package/build/elements/icons/animation/snap.cjs +0 -133
- package/build/elements/icons/animation/snap.d.cts +0 -8
- package/build/elements/icons/animation/snap.d.ts +0 -8
- package/build/elements/icons/animation/snap.js +0 -129
- package/build/elements/icons/index.cjs +0 -40
- package/build/elements/icons/index.d.cts +0 -24
- package/build/elements/icons/index.d.ts +0 -24
- package/build/elements/icons/index.js +0 -24
- package/build/elements/icons/interface/anchor-add.cjs +0 -35
- package/build/elements/icons/interface/anchor-add.d.cts +0 -3
- package/build/elements/icons/interface/anchor-add.d.ts +0 -3
- package/build/elements/icons/interface/anchor-add.js +0 -31
- package/build/elements/icons/interface/anchor-remove.cjs +0 -34
- package/build/elements/icons/interface/anchor-remove.d.cts +0 -3
- package/build/elements/icons/interface/anchor-remove.d.ts +0 -3
- package/build/elements/icons/interface/anchor-remove.js +0 -30
- package/build/elements/icons/interface/arrow-up.cjs +0 -30
- package/build/elements/icons/interface/arrow-up.d.cts +0 -3
- package/build/elements/icons/interface/arrow-up.d.ts +0 -3
- package/build/elements/icons/interface/arrow-up.js +0 -26
- package/build/elements/icons/interface/arrows-vertical.cjs +0 -30
- package/build/elements/icons/interface/arrows-vertical.d.cts +0 -3
- package/build/elements/icons/interface/arrows-vertical.d.ts +0 -3
- package/build/elements/icons/interface/arrows-vertical.js +0 -26
- package/build/elements/icons/interface/bezier-angle.cjs +0 -33
- package/build/elements/icons/interface/bezier-angle.d.cts +0 -3
- package/build/elements/icons/interface/bezier-angle.d.ts +0 -3
- package/build/elements/icons/interface/bezier-angle.js +0 -29
- package/build/elements/icons/interface/bezier-distribute.cjs +0 -34
- package/build/elements/icons/interface/bezier-distribute.d.cts +0 -3
- package/build/elements/icons/interface/bezier-distribute.d.ts +0 -3
- package/build/elements/icons/interface/bezier-distribute.js +0 -30
- package/build/elements/icons/interface/bezier-length.cjs +0 -31
- package/build/elements/icons/interface/bezier-length.d.cts +0 -3
- package/build/elements/icons/interface/bezier-length.d.ts +0 -3
- package/build/elements/icons/interface/bezier-length.js +0 -27
- package/build/elements/icons/interface/bezier-mirror.cjs +0 -31
- package/build/elements/icons/interface/bezier-mirror.d.cts +0 -3
- package/build/elements/icons/interface/bezier-mirror.d.ts +0 -3
- package/build/elements/icons/interface/bezier-mirror.js +0 -27
- package/build/elements/icons/interface/bezier.cjs +0 -26
- package/build/elements/icons/interface/bezier.d.cts +0 -3
- package/build/elements/icons/interface/bezier.d.ts +0 -3
- package/build/elements/icons/interface/bezier.js +0 -22
- package/build/elements/icons/interface/check.cjs +0 -30
- package/build/elements/icons/interface/check.d.cts +0 -3
- package/build/elements/icons/interface/check.d.ts +0 -3
- package/build/elements/icons/interface/check.js +0 -26
- package/build/elements/icons/interface/circle-arrow-left.cjs +0 -30
- package/build/elements/icons/interface/circle-arrow-left.d.cts +0 -3
- package/build/elements/icons/interface/circle-arrow-left.d.ts +0 -3
- package/build/elements/icons/interface/circle-arrow-left.js +0 -26
- package/build/elements/icons/interface/circle-arrow-right.cjs +0 -30
- package/build/elements/icons/interface/circle-arrow-right.d.cts +0 -3
- package/build/elements/icons/interface/circle-arrow-right.d.ts +0 -3
- package/build/elements/icons/interface/circle-arrow-right.js +0 -26
- package/build/elements/icons/interface/code.cjs +0 -30
- package/build/elements/icons/interface/code.d.cts +0 -3
- package/build/elements/icons/interface/code.d.ts +0 -3
- package/build/elements/icons/interface/code.js +0 -26
- package/build/elements/icons/interface/dots.cjs +0 -32
- package/build/elements/icons/interface/dots.d.cts +0 -3
- package/build/elements/icons/interface/dots.d.ts +0 -3
- package/build/elements/icons/interface/dots.js +0 -28
- package/build/elements/icons/interface/mention.cjs +0 -30
- package/build/elements/icons/interface/mention.d.cts +0 -3
- package/build/elements/icons/interface/mention.d.ts +0 -3
- package/build/elements/icons/interface/mention.js +0 -26
- package/build/elements/icons/interface/minus.cjs +0 -30
- package/build/elements/icons/interface/minus.d.cts +0 -3
- package/build/elements/icons/interface/minus.d.ts +0 -3
- package/build/elements/icons/interface/minus.js +0 -26
- package/build/elements/icons/interface/picker.cjs +0 -34
- package/build/elements/icons/interface/picker.d.cts +0 -3
- package/build/elements/icons/interface/picker.d.ts +0 -3
- package/build/elements/icons/interface/picker.js +0 -30
- package/build/elements/icons/interface/plus.cjs +0 -30
- package/build/elements/icons/interface/plus.d.cts +0 -3
- package/build/elements/icons/interface/plus.d.ts +0 -3
- package/build/elements/icons/interface/plus.js +0 -26
- package/build/elements/icons/interface/settings.cjs +0 -30
- package/build/elements/icons/interface/settings.d.cts +0 -3
- package/build/elements/icons/interface/settings.d.ts +0 -3
- package/build/elements/icons/interface/settings.js +0 -26
- package/build/elements/index.cjs +0 -65
- package/build/elements/index.d.cts +0 -23
- package/build/elements/index.d.ts +0 -23
- package/build/elements/index.js +0 -23
- package/build/elements/input/index.cjs +0 -273
- package/build/elements/input/index.d.cts +0 -17
- package/build/elements/input/index.d.ts +0 -17
- package/build/elements/input/index.js +0 -269
- package/build/elements/logo/index.cjs +0 -732
- package/build/elements/logo/index.d.cts +0 -17
- package/build/elements/logo/index.d.ts +0 -17
- package/build/elements/logo/index.js +0 -728
- package/build/elements/monitor/fps.cjs +0 -432
- package/build/elements/monitor/fps.d.cts +0 -21
- package/build/elements/monitor/fps.d.ts +0 -21
- package/build/elements/monitor/fps.js +0 -428
- package/build/elements/monitor/index.cjs +0 -670
- package/build/elements/monitor/index.js +0 -666
- package/build/elements/number/index.cjs +0 -173
- package/build/elements/number/index.d.cts +0 -19
- package/build/elements/number/index.d.ts +0 -19
- package/build/elements/number/index.js +0 -169
- package/build/elements/origin/index.cjs +0 -169
- package/build/elements/origin/index.d.cts +0 -12
- package/build/elements/origin/index.d.ts +0 -12
- package/build/elements/origin/index.js +0 -165
- package/build/elements/panel/index.cjs +0 -496
- package/build/elements/panel/index.js +0 -492
- package/build/elements/popover/index.cjs +0 -209
- package/build/elements/popover/index.d.cts +0 -19
- package/build/elements/popover/index.d.ts +0 -19
- package/build/elements/popover/index.js +0 -205
- package/build/elements/radio/index.cjs +0 -301
- package/build/elements/radio/index.d.cts +0 -13
- package/build/elements/radio/index.d.ts +0 -13
- package/build/elements/radio/index.js +0 -283
- package/build/elements/radio/input.cjs +0 -329
- package/build/elements/radio/input.d.cts +0 -15
- package/build/elements/radio/input.d.ts +0 -15
- package/build/elements/radio/input.js +0 -325
- package/build/elements/radio/option.cjs +0 -15
- package/build/elements/radio/option.d.cts +0 -3
- package/build/elements/radio/option.d.ts +0 -3
- package/build/elements/radio/option.js +0 -11
- package/build/elements/shared.cjs +0 -66
- package/build/elements/shared.d.cts +0 -40
- package/build/elements/shared.d.ts +0 -40
- package/build/elements/shared.js +0 -59
- package/build/elements/slider/index.cjs +0 -232
- package/build/elements/slider/index.d.cts +0 -20
- package/build/elements/slider/index.d.ts +0 -20
- package/build/elements/slider/index.js +0 -228
- package/build/elements/state/index.cjs +0 -274
- package/build/elements/state/index.js +0 -270
- package/build/elements/toggle/index.cjs +0 -151
- package/build/elements/toggle/index.d.cts +0 -9
- package/build/elements/toggle/index.d.ts +0 -9
- package/build/elements/toggle/index.js +0 -147
- package/build/elements/tooltip/index.cjs +0 -187
- package/build/elements/tooltip/index.d.cts +0 -17
- package/build/elements/tooltip/index.d.ts +0 -17
- package/build/elements/tooltip/index.js +0 -183
- package/build/init.cjs +0 -325
- package/build/init.d.cts +0 -157
- package/build/init.d.ts +0 -157
- package/build/init.js +0 -289
- package/build/internal/component-loaders.cjs +0 -208
- package/build/internal/component-loaders.d.cts +0 -52
- package/build/internal/component-loaders.d.ts +0 -52
- package/build/internal/component-loaders.js +0 -169
- package/build/internal/fonts.cjs +0 -128
- package/build/internal/fonts.d.cts +0 -32
- package/build/internal/fonts.d.ts +0 -32
- package/build/internal/fonts.js +0 -123
- package/build/internal/lazy-load.cjs +0 -89
- package/build/internal/lazy-load.d.cts +0 -32
- package/build/internal/lazy-load.d.ts +0 -32
- package/build/internal/lazy-load.js +0 -86
- package/build/internal/style-inject.cjs +0 -236
- package/build/internal/style-inject.d.cts +0 -44
- package/build/internal/style-inject.d.ts +0 -44
- package/build/internal/style-inject.js +0 -226
- package/build/react/events.cjs +0 -25
- package/build/react/events.d.cts +0 -39
- package/build/react/events.d.ts +0 -39
- package/build/react/events.js +0 -22
- package/build/react/index.cjs +0 -19
- package/build/react/index.d.cts +0 -13
- package/build/react/index.d.ts +0 -13
- package/build/react/index.js +0 -12
- package/build/react/provider.cjs +0 -134
- package/build/react/provider.d.cts +0 -81
- package/build/react/provider.d.ts +0 -81
- package/build/react/provider.js +0 -98
- package/build/react/types.cjs +0 -8
- package/build/react/types.d.cts +0 -55
- package/build/react/types.d.ts +0 -55
- package/build/react/types.js +0 -7
- package/build/react/use-ease-state.cjs +0 -129
- package/build/react/use-ease-state.d.cts +0 -95
- package/build/react/use-ease-state.d.ts +0 -95
- package/build/react/use-ease-state.js +0 -126
- package/build/react/use-web-kit.cjs +0 -150
- package/build/react/use-web-kit.d.cts +0 -80
- package/build/react/use-web-kit.d.ts +0 -80
- package/build/react/use-web-kit.js +0 -114
- package/build/theme/index.cjs +0 -452
- package/build/theme/index.js +0 -423
- package/build/theme/presets.cjs +0 -54
- package/build/theme/presets.d.cts +0 -19
- package/build/theme/presets.d.ts +0 -19
- package/build/theme/presets.js +0 -51
- package/build/theme/registry.cjs +0 -204
- package/build/theme/registry.d.cts +0 -99
- package/build/theme/registry.d.ts +0 -99
- package/build/theme/registry.js +0 -194
- package/build/theme/tokens.cjs +0 -148
- package/build/theme/tokens.d.cts +0 -163
- package/build/theme/tokens.d.ts +0 -163
- package/build/theme/tokens.js +0 -145
- package/build/utils/dismiss-controller.cjs +0 -77
- package/build/utils/dismiss-controller.d.cts +0 -14
- package/build/utils/dismiss-controller.d.ts +0 -14
- package/build/utils/dismiss-controller.js +0 -73
- package/build/utils/index.cjs +0 -18
- package/build/utils/index.d.cts +0 -3
- package/build/utils/index.d.ts +0 -3
- package/build/utils/index.js +0 -3
- package/build/utils/outside-click.cjs +0 -82
- package/build/utils/outside-click.d.cts +0 -18
- package/build/utils/outside-click.d.ts +0 -18
- package/build/utils/outside-click.js +0 -74
- package/build/utils/template-helpers.cjs +0 -39
- package/build/utils/template-helpers.d.cts +0 -13
- package/build/utils/template-helpers.d.ts +0 -13
- package/build/utils/template-helpers.js +0 -28
|
@@ -1,493 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toolbarStyles = exports.canvasControlsStyles = exports.containerStyles = exports.outputStyles = exports.controlsStyles = exports.canvasStyles = void 0;
|
|
4
|
-
exports.canvasStyles = `
|
|
5
|
-
:host {
|
|
6
|
-
display: block;
|
|
7
|
-
width: 100%;
|
|
8
|
-
max-width: 500px;
|
|
9
|
-
position: relative;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
svg {
|
|
13
|
-
width: 300px;
|
|
14
|
-
height: auto;
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
touch-action: none;
|
|
17
|
-
user-select: none;
|
|
18
|
-
overflow: visible;
|
|
19
|
-
border-radius: 8px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.grid-line {
|
|
23
|
-
stroke: var(--color-white-4);
|
|
24
|
-
stroke-width: .75;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.curve-path {
|
|
28
|
-
stroke: var(--color-blue-100);
|
|
29
|
-
stroke-width: 2.5;
|
|
30
|
-
fill: none;
|
|
31
|
-
stroke-linecap: round;
|
|
32
|
-
stroke-linejoin: round;
|
|
33
|
-
transition: stroke-width 150ms ease;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.curve-path--preview {
|
|
37
|
-
stroke: var(--color-blue-800);
|
|
38
|
-
stroke-width: 2.5;
|
|
39
|
-
stroke-dasharray: 5, 5;
|
|
40
|
-
opacity: 0;
|
|
41
|
-
pointer-events: none;
|
|
42
|
-
animation: previewPathFade 180ms ease forwards;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.control-point {
|
|
46
|
-
fill: var(--color-blue-700);
|
|
47
|
-
stroke: var(--color-blue-900);
|
|
48
|
-
stroke-width: 1.5;
|
|
49
|
-
cursor: grab;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.control-point:active {
|
|
53
|
-
cursor: grabbing;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.control-point.selected {
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.anchor-point-start {
|
|
60
|
-
fill: var(--color-blue-100);
|
|
61
|
-
pointer-events: none;
|
|
62
|
-
r: 5px;
|
|
63
|
-
transition: r .2s;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.anchor-point {
|
|
67
|
-
fill: var(--color-blue-900);
|
|
68
|
-
stroke: var(--color-blue-900);
|
|
69
|
-
stroke-width: 1;
|
|
70
|
-
pointer-events: none;
|
|
71
|
-
r: 5px;
|
|
72
|
-
transition: r .2s;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.anchor-point:hover {
|
|
76
|
-
r: 5.5px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.control-line {
|
|
80
|
-
stroke: var(--color-blue-800);
|
|
81
|
-
stroke-width: 3;
|
|
82
|
-
pointer-events: none;
|
|
83
|
-
display: none;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.linear-point {
|
|
87
|
-
fill: var(--color-blue-100);
|
|
88
|
-
cursor: grab;
|
|
89
|
-
r: 3px;
|
|
90
|
-
transition: r .2s;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.hit-area-point:hover + .linear-point,
|
|
94
|
-
.linear-point:hover,
|
|
95
|
-
.linear-point:active,
|
|
96
|
-
.linear-point.selected {
|
|
97
|
-
r: 5px;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.linear-point.selected {
|
|
101
|
-
fill: var(--color-blue-300);
|
|
102
|
-
stroke-width: 1.5;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.linear-handle-line {
|
|
106
|
-
stroke: var(--color-blue-800);
|
|
107
|
-
stroke-width: 3;
|
|
108
|
-
pointer-events: none;
|
|
109
|
-
transition: opacity 150ms ease;
|
|
110
|
-
display: none;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.linear-handle {
|
|
114
|
-
fill: var(--color-blue-700);
|
|
115
|
-
stroke: var(--color-blue-900);
|
|
116
|
-
stroke-width: 1;
|
|
117
|
-
cursor: grab;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.linear-handle.selected {
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.linear-handle:active {
|
|
124
|
-
cursor: grabbing;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.hit-area-point,
|
|
128
|
-
.hit-area-handle {
|
|
129
|
-
fill: transparent;
|
|
130
|
-
stroke: transparent;
|
|
131
|
-
pointer-events: all;
|
|
132
|
-
cursor: inherit;
|
|
133
|
-
r: 10px;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@keyframes pulse {
|
|
137
|
-
0% {
|
|
138
|
-
opacity: 1;
|
|
139
|
-
}
|
|
140
|
-
50% {
|
|
141
|
-
opacity: 0.6;
|
|
142
|
-
}
|
|
143
|
-
100% {
|
|
144
|
-
opacity: 1;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.curve-path.animating {
|
|
149
|
-
animation: pulse 1s ease-in-out infinite;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
@keyframes previewPathFade {
|
|
153
|
-
from {
|
|
154
|
-
opacity: 0;
|
|
155
|
-
}
|
|
156
|
-
to {
|
|
157
|
-
opacity: 0.6;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
@keyframes previewElementFade {
|
|
162
|
-
from {
|
|
163
|
-
opacity: 0;
|
|
164
|
-
}
|
|
165
|
-
to {
|
|
166
|
-
opacity: 0.85;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.linear-preview-group {
|
|
171
|
-
pointer-events: none;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.linear-point--preview,
|
|
175
|
-
.linear-handle--preview,
|
|
176
|
-
.linear-handle-line--preview {
|
|
177
|
-
animation: previewElementFade 180ms ease forwards;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.linear-point--preview {
|
|
181
|
-
fill: var(--color-blue-100);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.linear-handle--preview {
|
|
185
|
-
fill: var(--color-blue-700);
|
|
186
|
-
stroke: var(--color-blue-900);
|
|
187
|
-
stroke-width: 1.5;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.linear-handle-line--preview {
|
|
191
|
-
stroke: var(--color-blue-800);
|
|
192
|
-
stroke-width: 2.5;
|
|
193
|
-
stroke-dasharray: 4 4;
|
|
194
|
-
display: none;
|
|
195
|
-
}
|
|
196
|
-
`;
|
|
197
|
-
exports.controlsStyles = `
|
|
198
|
-
:host {
|
|
199
|
-
display: flex;
|
|
200
|
-
flex-wrap: wrap;
|
|
201
|
-
align-items: center;
|
|
202
|
-
gap: 0.75rem;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
[part="radio-group"] {
|
|
206
|
-
width: 100%;
|
|
207
|
-
box-sizing: border-box;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
[part="easing-type-dropdown"] {
|
|
211
|
-
--ease-dropdown-max-height: 212px;
|
|
212
|
-
}
|
|
213
|
-
`;
|
|
214
|
-
exports.outputStyles = `
|
|
215
|
-
:host {
|
|
216
|
-
display: block;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.output-container {
|
|
220
|
-
display: flex;
|
|
221
|
-
flex-direction: column;
|
|
222
|
-
gap: 1rem;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.output-group {
|
|
226
|
-
position: relative;
|
|
227
|
-
display: block;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.output-label {
|
|
231
|
-
font-size: 0.875rem;
|
|
232
|
-
font-weight: 600;
|
|
233
|
-
color: var(--color-gray-1000);
|
|
234
|
-
margin: 0;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.output-code {
|
|
238
|
-
font-family: var(--ease-font-mono, 'Geist Mono', monospace);
|
|
239
|
-
font-size: 0.8125rem;
|
|
240
|
-
line-height: 1.6;
|
|
241
|
-
padding: 1rem;
|
|
242
|
-
background: var(--color-gray-1000);
|
|
243
|
-
color: var(--color-gray-700);
|
|
244
|
-
border-radius: 0.375rem;
|
|
245
|
-
border: 1px solid #334155;
|
|
246
|
-
white-space: pre-wrap;
|
|
247
|
-
word-break: break-word;
|
|
248
|
-
overflow-x: auto;
|
|
249
|
-
max-width: 100%;
|
|
250
|
-
tab-size: 2;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.copy-button {
|
|
254
|
-
align-self: flex-start;
|
|
255
|
-
padding: 0.425rem 0.875rem;
|
|
256
|
-
border: 1px solid var(--color-white-6);
|
|
257
|
-
border-radius: 0.375rem;
|
|
258
|
-
background: white;
|
|
259
|
-
color: var(--color-gray-1000);
|
|
260
|
-
font-size: 0.875rem;
|
|
261
|
-
font-weight: 500;
|
|
262
|
-
cursor: pointer;
|
|
263
|
-
transition: all 150ms ease;
|
|
264
|
-
user-select: none;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.copy-button:hover {
|
|
268
|
-
background: var(--color-gray-1000);
|
|
269
|
-
border-color: #9ca3af;
|
|
270
|
-
transform: translateY(-1px);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.copy-button:active {
|
|
274
|
-
transform: translateY(0);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.copy-button:focus-visible {
|
|
278
|
-
outline: 2px solid var(--color-blue-700);
|
|
279
|
-
outline-offset: 2px;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.copy-button.copied {
|
|
283
|
-
background: var(--color-blue-100);
|
|
284
|
-
border-color: var(--color-blue-100);
|
|
285
|
-
color: white;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.preview-container {
|
|
289
|
-
display: flex;
|
|
290
|
-
flex-direction: column;
|
|
291
|
-
gap: 0.75rem;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.preview-box {
|
|
295
|
-
width: 100%;
|
|
296
|
-
max-width: 300px;
|
|
297
|
-
height: 80px;
|
|
298
|
-
background: linear-gradient(135deg, var(--color-blue-700) 0%, var(--color-blue-100) 100%);
|
|
299
|
-
border-radius: 0.5rem;
|
|
300
|
-
position: relative;
|
|
301
|
-
overflow: hidden;
|
|
302
|
-
cursor: pointer;
|
|
303
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
304
|
-
transition: box-shadow 150ms ease;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.preview-box:hover {
|
|
308
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.preview-animation {
|
|
312
|
-
width: 24px;
|
|
313
|
-
height: 24px;
|
|
314
|
-
background: white;
|
|
315
|
-
border-radius: 50%;
|
|
316
|
-
position: absolute;
|
|
317
|
-
top: 50%;
|
|
318
|
-
left: 12px;
|
|
319
|
-
transform: translateY(-50%);
|
|
320
|
-
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
|
321
|
-
transition-property: transform;
|
|
322
|
-
transition-duration: 2s;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.preview-animation.animate {
|
|
326
|
-
transform: translateY(-50%) translateX(calc(100% - 48px));
|
|
327
|
-
}
|
|
328
|
-
`;
|
|
329
|
-
exports.containerStyles = `
|
|
330
|
-
:host {
|
|
331
|
-
display: block;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.curve-container {
|
|
335
|
-
display: flex;
|
|
336
|
-
flex-direction: column;
|
|
337
|
-
position: relative;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
.curve-header {
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.curve-canvas-wrapper {
|
|
344
|
-
position: relative;
|
|
345
|
-
margin-top: 16px;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.curve-canvas {
|
|
349
|
-
background-color: var(--color-white-2);
|
|
350
|
-
box-shadow: 0 0 32px 0 var(--color-white-2) inset;
|
|
351
|
-
border-radius: 7px;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.curve-toolbar {
|
|
355
|
-
margin-top: 8px;
|
|
356
|
-
}
|
|
357
|
-
`;
|
|
358
|
-
exports.canvasControlsStyles = `
|
|
359
|
-
:host {
|
|
360
|
-
position: absolute;
|
|
361
|
-
top: 8px;
|
|
362
|
-
left: 8px;
|
|
363
|
-
z-index: 10;
|
|
364
|
-
display: flex;
|
|
365
|
-
flex-direction: column;
|
|
366
|
-
gap: 4px;
|
|
367
|
-
pointer-events: none;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
:host([hidden]) {
|
|
371
|
-
display: none;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.overlay-controls {
|
|
375
|
-
display: flex;
|
|
376
|
-
flex-wrap: wrap;
|
|
377
|
-
gap: 4px;
|
|
378
|
-
pointer-events: auto;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.overlay-button {
|
|
382
|
-
--ease-icon-size: 16px;
|
|
383
|
-
display: flex;
|
|
384
|
-
align-items: center;
|
|
385
|
-
justify-content: center;
|
|
386
|
-
padding: 4px;
|
|
387
|
-
color: var(--color-gray-600);
|
|
388
|
-
border-radius: var(--radii-md);
|
|
389
|
-
background-color: var(--color-gray-875);
|
|
390
|
-
box-shadow: inset 0 1px .25px 0 var(--color-white-4), 0 1px 2.5px 0 var(--color-black-8);
|
|
391
|
-
cursor: pointer;
|
|
392
|
-
transition: color 0.2s;
|
|
393
|
-
appearance: none;
|
|
394
|
-
border: none;
|
|
395
|
-
outline: none;
|
|
396
|
-
margin: 0;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.overlay-button:hover {
|
|
400
|
-
color: var(--color-gray-300);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
.overlay-button:disabled {
|
|
404
|
-
color: var(--color-gray-700);
|
|
405
|
-
cursor: not-allowed;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.overlay-button.inactive {
|
|
409
|
-
color: var(--color-blue-100);
|
|
410
|
-
}
|
|
411
|
-
`;
|
|
412
|
-
exports.toolbarStyles = `
|
|
413
|
-
:host {
|
|
414
|
-
display: block;
|
|
415
|
-
width: 100%;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
.toolbar-container {
|
|
419
|
-
width: 100%;
|
|
420
|
-
display: grid;
|
|
421
|
-
gap: 8px;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
.toolbar-group {
|
|
425
|
-
width: 100%;
|
|
426
|
-
display: flex;
|
|
427
|
-
gap: 8px;
|
|
428
|
-
box-sizing: border-box;
|
|
429
|
-
align-items: center;
|
|
430
|
-
padding: 6px;
|
|
431
|
-
border-radius: var(--radii-md);
|
|
432
|
-
background-color: var(--color-gray-875);
|
|
433
|
-
box-shadow: inset 0 1px .25px 0 var(--color-white-4), 0 1px 2.5px 0 var(--color-black-8);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
.toolbar-button {
|
|
437
|
-
--ease-icon-size: 16px;
|
|
438
|
-
|
|
439
|
-
display: flex;
|
|
440
|
-
align-items: center;
|
|
441
|
-
justify-content: space-between;
|
|
442
|
-
padding: 4px;
|
|
443
|
-
color: var(--color-gray-600);
|
|
444
|
-
background-color: transparent;
|
|
445
|
-
border: none;
|
|
446
|
-
outline: none;
|
|
447
|
-
margin: 0;
|
|
448
|
-
appearance: none;
|
|
449
|
-
cursor: pointer;
|
|
450
|
-
transition: color 0.2s;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
.toolbar-button:hover {
|
|
454
|
-
color: var(--color-blue-100);
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.toolbar-button:disabled {
|
|
458
|
-
color: var(--color-gray-700);
|
|
459
|
-
cursor: not-allowed;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.grid-size-controls {
|
|
463
|
-
display: grid;
|
|
464
|
-
grid-template-columns: 24px auto 24px;
|
|
465
|
-
align-items: center;
|
|
466
|
-
justify-content: center;
|
|
467
|
-
margin-left: auto;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.grid-size-controls ease-button {
|
|
471
|
-
--ease-icon-size: 14px;
|
|
472
|
-
width: 24px;
|
|
473
|
-
height: 24px;
|
|
474
|
-
box-sizing: border-box;
|
|
475
|
-
display: flex;
|
|
476
|
-
padding: 0;
|
|
477
|
-
align-items: center;
|
|
478
|
-
justify-content: center;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
.grid-size-value {
|
|
482
|
-
display: flex;
|
|
483
|
-
width: 20px;
|
|
484
|
-
justify-content: center;
|
|
485
|
-
align-items: center;
|
|
486
|
-
font-feature-settings: 'tnum' on;
|
|
487
|
-
font-variant-numeric: tabular-nums;
|
|
488
|
-
font-size: 11px;
|
|
489
|
-
font-weight: 500;
|
|
490
|
-
line-height: 14px;
|
|
491
|
-
text-align: center;
|
|
492
|
-
}
|
|
493
|
-
`;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const canvasStyles = "\n :host {\n display: block;\n width: 100%;\n max-width: 500px;\n position: relative;\n }\n\n svg {\n width: 300px;\n height: auto;\n cursor: pointer;\n touch-action: none;\n user-select: none;\n overflow: visible;\n border-radius: 8px;\n }\n\n .grid-line {\n stroke: var(--color-white-4);\n stroke-width: .75;\n }\n\n .curve-path {\n stroke: var(--color-blue-100);\n stroke-width: 2.5;\n fill: none;\n stroke-linecap: round;\n stroke-linejoin: round;\n transition: stroke-width 150ms ease;\n }\n\n .curve-path--preview {\n stroke: var(--color-blue-800);\n stroke-width: 2.5;\n stroke-dasharray: 5, 5;\n opacity: 0;\n pointer-events: none;\n animation: previewPathFade 180ms ease forwards;\n }\n\n .control-point {\n fill: var(--color-blue-700);\n stroke: var(--color-blue-900);\n stroke-width: 1.5;\n cursor: grab;\n }\n\n .control-point:active {\n cursor: grabbing;\n }\n\n .control-point.selected {\n }\n\n .anchor-point-start {\n fill: var(--color-blue-100);\n pointer-events: none;\n r: 5px;\n transition: r .2s;\n }\n\n .anchor-point {\n fill: var(--color-blue-900);\n stroke: var(--color-blue-900);\n stroke-width: 1;\n pointer-events: none;\n r: 5px;\n transition: r .2s;\n }\n\n .anchor-point:hover {\n r: 5.5px;\n }\n\n .control-line {\n stroke: var(--color-blue-800);\n stroke-width: 3;\n pointer-events: none;\n display: none;\n }\n\n .linear-point {\n fill: var(--color-blue-100);\n cursor: grab;\n r: 3px;\n transition: r .2s;\n }\n\n .hit-area-point:hover + .linear-point,\n .linear-point:hover,\n .linear-point:active,\n .linear-point.selected {\n r: 5px;\n }\n\n .linear-point.selected {\n fill: var(--color-blue-300);\n stroke-width: 1.5;\n }\n\n .linear-handle-line {\n stroke: var(--color-blue-800);\n stroke-width: 3;\n pointer-events: none;\n transition: opacity 150ms ease;\n display: none;\n }\n\n .linear-handle {\n fill: var(--color-blue-700);\n stroke: var(--color-blue-900);\n stroke-width: 1;\n cursor: grab;\n }\n\n .linear-handle.selected {\n }\n\n .linear-handle:active {\n cursor: grabbing;\n }\n\n .hit-area-point,\n .hit-area-handle {\n fill: transparent;\n stroke: transparent;\n pointer-events: all;\n cursor: inherit;\n r: 10px;\n }\n\n @keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.6;\n }\n 100% {\n opacity: 1;\n }\n }\n\n .curve-path.animating {\n animation: pulse 1s ease-in-out infinite;\n }\n\n @keyframes previewPathFade {\n from {\n opacity: 0;\n }\n to {\n opacity: 0.6;\n }\n }\n\n @keyframes previewElementFade {\n from {\n opacity: 0;\n }\n to {\n opacity: 0.85;\n }\n }\n\n .linear-preview-group {\n pointer-events: none;\n }\n\n .linear-point--preview,\n .linear-handle--preview,\n .linear-handle-line--preview {\n animation: previewElementFade 180ms ease forwards;\n }\n\n .linear-point--preview {\n fill: var(--color-blue-100);\n }\n\n .linear-handle--preview {\n fill: var(--color-blue-700);\n stroke: var(--color-blue-900);\n stroke-width: 1.5;\n }\n\n .linear-handle-line--preview {\n stroke: var(--color-blue-800);\n stroke-width: 2.5;\n stroke-dasharray: 4 4;\n display: none;\n }\n";
|
|
2
|
-
export declare const controlsStyles = "\n :host {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.75rem;\n }\n\n [part=\"radio-group\"] {\n width: 100%;\n box-sizing: border-box;\n }\n\n [part=\"easing-type-dropdown\"] {\n --ease-dropdown-max-height: 212px;\n }\n";
|
|
3
|
-
export declare const outputStyles = "\n :host {\n display: block;\n }\n\n .output-container {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n .output-group {\n position: relative;\n display: block;\n }\n\n .output-label {\n font-size: 0.875rem;\n font-weight: 600;\n color: var(--color-gray-1000);\n margin: 0;\n }\n\n .output-code {\n font-family: var(--ease-font-mono, 'Geist Mono', monospace);\n font-size: 0.8125rem;\n line-height: 1.6;\n padding: 1rem;\n background: var(--color-gray-1000);\n color: var(--color-gray-700);\n border-radius: 0.375rem;\n border: 1px solid #334155;\n white-space: pre-wrap;\n word-break: break-word;\n overflow-x: auto;\n max-width: 100%;\n tab-size: 2;\n }\n\n .copy-button {\n align-self: flex-start;\n padding: 0.425rem 0.875rem;\n border: 1px solid var(--color-white-6);\n border-radius: 0.375rem;\n background: white;\n color: var(--color-gray-1000);\n font-size: 0.875rem;\n font-weight: 500;\n cursor: pointer;\n transition: all 150ms ease;\n user-select: none;\n }\n\n .copy-button:hover {\n background: var(--color-gray-1000);\n border-color: #9ca3af;\n transform: translateY(-1px);\n }\n\n .copy-button:active {\n transform: translateY(0);\n }\n\n .copy-button:focus-visible {\n outline: 2px solid var(--color-blue-700);\n outline-offset: 2px;\n }\n\n .copy-button.copied {\n background: var(--color-blue-100);\n border-color: var(--color-blue-100);\n color: white;\n }\n\n .preview-container {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n }\n\n .preview-box {\n width: 100%;\n max-width: 300px;\n height: 80px;\n background: linear-gradient(135deg, var(--color-blue-700) 0%, var(--color-blue-100) 100%);\n border-radius: 0.5rem;\n position: relative;\n overflow: hidden;\n cursor: pointer;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n transition: box-shadow 150ms ease;\n }\n\n .preview-box:hover {\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n }\n\n .preview-animation {\n width: 24px;\n height: 24px;\n background: white;\n border-radius: 50%;\n position: absolute;\n top: 50%;\n left: 12px;\n transform: translateY(-50%);\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n transition-property: transform;\n transition-duration: 2s;\n }\n\n .preview-animation.animate {\n transform: translateY(-50%) translateX(calc(100% - 48px));\n }\n";
|
|
4
|
-
export declare const containerStyles = "\n :host {\n display: block;\n }\n\n .curve-container {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n\n .curve-header {\n }\n\n .curve-canvas-wrapper {\n position: relative;\n margin-top: 16px;\n }\n\n .curve-canvas {\n background-color: var(--color-white-2);\n box-shadow: 0 0 32px 0 var(--color-white-2) inset;\n border-radius: 7px;\n }\n\n .curve-toolbar {\n margin-top: 8px;\n }\n";
|
|
5
|
-
export declare const canvasControlsStyles = "\n :host {\n position: absolute;\n top: 8px;\n left: 8px;\n z-index: 10;\n display: flex;\n flex-direction: column;\n gap: 4px;\n pointer-events: none;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n .overlay-controls {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n pointer-events: auto;\n }\n\n .overlay-button {\n --ease-icon-size: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 4px;\n color: var(--color-gray-600);\n border-radius: var(--radii-md);\n background-color: var(--color-gray-875);\n box-shadow: inset 0 1px .25px 0 var(--color-white-4), 0 1px 2.5px 0 var(--color-black-8);\n cursor: pointer;\n transition: color 0.2s;\n appearance: none;\n border: none;\n outline: none;\n margin: 0;\n }\n\n .overlay-button:hover {\n color: var(--color-gray-300);\n }\n\n .overlay-button:disabled {\n color: var(--color-gray-700);\n cursor: not-allowed;\n }\n\n .overlay-button.inactive {\n color: var(--color-blue-100);\n }\n";
|
|
6
|
-
export declare const toolbarStyles = "\n :host {\n display: block;\n width: 100%;\n }\n\n .toolbar-container {\n width: 100%;\n display: grid;\n gap: 8px;\n }\n\n .toolbar-group {\n width: 100%;\n display: flex;\n gap: 8px;\n box-sizing: border-box;\n align-items: center;\n padding: 6px;\n border-radius: var(--radii-md);\n background-color: var(--color-gray-875);\n box-shadow: inset 0 1px .25px 0 var(--color-white-4), 0 1px 2.5px 0 var(--color-black-8);\n }\n\n .toolbar-button {\n --ease-icon-size: 16px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 4px;\n color: var(--color-gray-600);\n background-color: transparent;\n border: none;\n outline: none;\n margin: 0;\n appearance: none;\n cursor: pointer;\n transition: color 0.2s;\n }\n\n .toolbar-button:hover {\n color: var(--color-blue-100);\n }\n\n .toolbar-button:disabled {\n color: var(--color-gray-700);\n cursor: not-allowed;\n }\n\n .grid-size-controls {\n display: grid;\n grid-template-columns: 24px auto 24px;\n align-items: center;\n justify-content: center;\n margin-left: auto;\n }\n\n .grid-size-controls ease-button {\n --ease-icon-size: 14px;\n width: 24px;\n height: 24px;\n box-sizing: border-box;\n display: flex;\n padding: 0;\n align-items: center;\n justify-content: center;\n }\n\n .grid-size-value {\n display: flex;\n width: 20px;\n justify-content: center;\n align-items: center;\n font-feature-settings: 'tnum' on;\n font-variant-numeric: tabular-nums;\n font-size: 11px;\n font-weight: 500;\n line-height: 14px;\n text-align: center;\n }\n";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const canvasStyles = "\n :host {\n display: block;\n width: 100%;\n max-width: 500px;\n position: relative;\n }\n\n svg {\n width: 300px;\n height: auto;\n cursor: pointer;\n touch-action: none;\n user-select: none;\n overflow: visible;\n border-radius: 8px;\n }\n\n .grid-line {\n stroke: var(--color-white-4);\n stroke-width: .75;\n }\n\n .curve-path {\n stroke: var(--color-blue-100);\n stroke-width: 2.5;\n fill: none;\n stroke-linecap: round;\n stroke-linejoin: round;\n transition: stroke-width 150ms ease;\n }\n\n .curve-path--preview {\n stroke: var(--color-blue-800);\n stroke-width: 2.5;\n stroke-dasharray: 5, 5;\n opacity: 0;\n pointer-events: none;\n animation: previewPathFade 180ms ease forwards;\n }\n\n .control-point {\n fill: var(--color-blue-700);\n stroke: var(--color-blue-900);\n stroke-width: 1.5;\n cursor: grab;\n }\n\n .control-point:active {\n cursor: grabbing;\n }\n\n .control-point.selected {\n }\n\n .anchor-point-start {\n fill: var(--color-blue-100);\n pointer-events: none;\n r: 5px;\n transition: r .2s;\n }\n\n .anchor-point {\n fill: var(--color-blue-900);\n stroke: var(--color-blue-900);\n stroke-width: 1;\n pointer-events: none;\n r: 5px;\n transition: r .2s;\n }\n\n .anchor-point:hover {\n r: 5.5px;\n }\n\n .control-line {\n stroke: var(--color-blue-800);\n stroke-width: 3;\n pointer-events: none;\n display: none;\n }\n\n .linear-point {\n fill: var(--color-blue-100);\n cursor: grab;\n r: 3px;\n transition: r .2s;\n }\n\n .hit-area-point:hover + .linear-point,\n .linear-point:hover,\n .linear-point:active,\n .linear-point.selected {\n r: 5px;\n }\n\n .linear-point.selected {\n fill: var(--color-blue-300);\n stroke-width: 1.5;\n }\n\n .linear-handle-line {\n stroke: var(--color-blue-800);\n stroke-width: 3;\n pointer-events: none;\n transition: opacity 150ms ease;\n display: none;\n }\n\n .linear-handle {\n fill: var(--color-blue-700);\n stroke: var(--color-blue-900);\n stroke-width: 1;\n cursor: grab;\n }\n\n .linear-handle.selected {\n }\n\n .linear-handle:active {\n cursor: grabbing;\n }\n\n .hit-area-point,\n .hit-area-handle {\n fill: transparent;\n stroke: transparent;\n pointer-events: all;\n cursor: inherit;\n r: 10px;\n }\n\n @keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.6;\n }\n 100% {\n opacity: 1;\n }\n }\n\n .curve-path.animating {\n animation: pulse 1s ease-in-out infinite;\n }\n\n @keyframes previewPathFade {\n from {\n opacity: 0;\n }\n to {\n opacity: 0.6;\n }\n }\n\n @keyframes previewElementFade {\n from {\n opacity: 0;\n }\n to {\n opacity: 0.85;\n }\n }\n\n .linear-preview-group {\n pointer-events: none;\n }\n\n .linear-point--preview,\n .linear-handle--preview,\n .linear-handle-line--preview {\n animation: previewElementFade 180ms ease forwards;\n }\n\n .linear-point--preview {\n fill: var(--color-blue-100);\n }\n\n .linear-handle--preview {\n fill: var(--color-blue-700);\n stroke: var(--color-blue-900);\n stroke-width: 1.5;\n }\n\n .linear-handle-line--preview {\n stroke: var(--color-blue-800);\n stroke-width: 2.5;\n stroke-dasharray: 4 4;\n display: none;\n }\n";
|
|
2
|
-
export declare const controlsStyles = "\n :host {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.75rem;\n }\n\n [part=\"radio-group\"] {\n width: 100%;\n box-sizing: border-box;\n }\n\n [part=\"easing-type-dropdown\"] {\n --ease-dropdown-max-height: 212px;\n }\n";
|
|
3
|
-
export declare const outputStyles = "\n :host {\n display: block;\n }\n\n .output-container {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n .output-group {\n position: relative;\n display: block;\n }\n\n .output-label {\n font-size: 0.875rem;\n font-weight: 600;\n color: var(--color-gray-1000);\n margin: 0;\n }\n\n .output-code {\n font-family: var(--ease-font-mono, 'Geist Mono', monospace);\n font-size: 0.8125rem;\n line-height: 1.6;\n padding: 1rem;\n background: var(--color-gray-1000);\n color: var(--color-gray-700);\n border-radius: 0.375rem;\n border: 1px solid #334155;\n white-space: pre-wrap;\n word-break: break-word;\n overflow-x: auto;\n max-width: 100%;\n tab-size: 2;\n }\n\n .copy-button {\n align-self: flex-start;\n padding: 0.425rem 0.875rem;\n border: 1px solid var(--color-white-6);\n border-radius: 0.375rem;\n background: white;\n color: var(--color-gray-1000);\n font-size: 0.875rem;\n font-weight: 500;\n cursor: pointer;\n transition: all 150ms ease;\n user-select: none;\n }\n\n .copy-button:hover {\n background: var(--color-gray-1000);\n border-color: #9ca3af;\n transform: translateY(-1px);\n }\n\n .copy-button:active {\n transform: translateY(0);\n }\n\n .copy-button:focus-visible {\n outline: 2px solid var(--color-blue-700);\n outline-offset: 2px;\n }\n\n .copy-button.copied {\n background: var(--color-blue-100);\n border-color: var(--color-blue-100);\n color: white;\n }\n\n .preview-container {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n }\n\n .preview-box {\n width: 100%;\n max-width: 300px;\n height: 80px;\n background: linear-gradient(135deg, var(--color-blue-700) 0%, var(--color-blue-100) 100%);\n border-radius: 0.5rem;\n position: relative;\n overflow: hidden;\n cursor: pointer;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n transition: box-shadow 150ms ease;\n }\n\n .preview-box:hover {\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n }\n\n .preview-animation {\n width: 24px;\n height: 24px;\n background: white;\n border-radius: 50%;\n position: absolute;\n top: 50%;\n left: 12px;\n transform: translateY(-50%);\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n transition-property: transform;\n transition-duration: 2s;\n }\n\n .preview-animation.animate {\n transform: translateY(-50%) translateX(calc(100% - 48px));\n }\n";
|
|
4
|
-
export declare const containerStyles = "\n :host {\n display: block;\n }\n\n .curve-container {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n\n .curve-header {\n }\n\n .curve-canvas-wrapper {\n position: relative;\n margin-top: 16px;\n }\n\n .curve-canvas {\n background-color: var(--color-white-2);\n box-shadow: 0 0 32px 0 var(--color-white-2) inset;\n border-radius: 7px;\n }\n\n .curve-toolbar {\n margin-top: 8px;\n }\n";
|
|
5
|
-
export declare const canvasControlsStyles = "\n :host {\n position: absolute;\n top: 8px;\n left: 8px;\n z-index: 10;\n display: flex;\n flex-direction: column;\n gap: 4px;\n pointer-events: none;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n .overlay-controls {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n pointer-events: auto;\n }\n\n .overlay-button {\n --ease-icon-size: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 4px;\n color: var(--color-gray-600);\n border-radius: var(--radii-md);\n background-color: var(--color-gray-875);\n box-shadow: inset 0 1px .25px 0 var(--color-white-4), 0 1px 2.5px 0 var(--color-black-8);\n cursor: pointer;\n transition: color 0.2s;\n appearance: none;\n border: none;\n outline: none;\n margin: 0;\n }\n\n .overlay-button:hover {\n color: var(--color-gray-300);\n }\n\n .overlay-button:disabled {\n color: var(--color-gray-700);\n cursor: not-allowed;\n }\n\n .overlay-button.inactive {\n color: var(--color-blue-100);\n }\n";
|
|
6
|
-
export declare const toolbarStyles = "\n :host {\n display: block;\n width: 100%;\n }\n\n .toolbar-container {\n width: 100%;\n display: grid;\n gap: 8px;\n }\n\n .toolbar-group {\n width: 100%;\n display: flex;\n gap: 8px;\n box-sizing: border-box;\n align-items: center;\n padding: 6px;\n border-radius: var(--radii-md);\n background-color: var(--color-gray-875);\n box-shadow: inset 0 1px .25px 0 var(--color-white-4), 0 1px 2.5px 0 var(--color-black-8);\n }\n\n .toolbar-button {\n --ease-icon-size: 16px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 4px;\n color: var(--color-gray-600);\n background-color: transparent;\n border: none;\n outline: none;\n margin: 0;\n appearance: none;\n cursor: pointer;\n transition: color 0.2s;\n }\n\n .toolbar-button:hover {\n color: var(--color-blue-100);\n }\n\n .toolbar-button:disabled {\n color: var(--color-gray-700);\n cursor: not-allowed;\n }\n\n .grid-size-controls {\n display: grid;\n grid-template-columns: 24px auto 24px;\n align-items: center;\n justify-content: center;\n margin-left: auto;\n }\n\n .grid-size-controls ease-button {\n --ease-icon-size: 14px;\n width: 24px;\n height: 24px;\n box-sizing: border-box;\n display: flex;\n padding: 0;\n align-items: center;\n justify-content: center;\n }\n\n .grid-size-value {\n display: flex;\n width: 20px;\n justify-content: center;\n align-items: center;\n font-feature-settings: 'tnum' on;\n font-variant-numeric: tabular-nums;\n font-size: 11px;\n font-weight: 500;\n line-height: 14px;\n text-align: center;\n }\n";
|