@oneonefour/rkui 0.0.0-stage → 0.0.3
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/LICENSE +21 -0
- package/README.md +67 -2
- package/THIRD_PARTY_NOTICES.md +60 -0
- package/astro/index.d.ts +14 -0
- package/astro/index.js +153 -0
- package/dist/colors.d.ts +74 -0
- package/dist/colors.js +263 -0
- package/dist/fonts/jetbrains-mono/OFL.txt +93 -0
- package/dist/fonts/jetbrains-mono/jetbrains-mono-greek.woff2 +0 -0
- package/dist/fonts/jetbrains-mono/jetbrains-mono-italic-greek.woff2 +0 -0
- package/dist/fonts/jetbrains-mono/jetbrains-mono-italic-latin.woff2 +0 -0
- package/dist/fonts/jetbrains-mono/jetbrains-mono-italic-symbols.woff2 +0 -0
- package/dist/fonts/jetbrains-mono/jetbrains-mono-latin.woff2 +0 -0
- package/dist/fonts/jetbrains-mono/jetbrains-mono-symbols.woff2 +0 -0
- package/dist/fonts/roboto-slab/LICENSE.txt +202 -0
- package/dist/fonts/roboto-slab/roboto-slab-greek.woff2 +0 -0
- package/dist/fonts/roboto-slab/roboto-slab-latin.woff2 +0 -0
- package/dist/fonts/roboto-slab/roboto-slab-symbols.woff2 +0 -0
- package/dist/fonts/xmind/OFL.txt +93 -0
- package/dist/fonts/xmind/xmind-greek.woff2 +0 -0
- package/dist/fonts/xmind/xmind-italic-greek.woff2 +0 -0
- package/dist/fonts/xmind/xmind-italic-latin.woff2 +0 -0
- package/dist/fonts/xmind/xmind-italic-symbols.woff2 +0 -0
- package/dist/fonts/xmind/xmind-latin.woff2 +0 -0
- package/dist/fonts/xmind/xmind-symbols.woff2 +0 -0
- package/dist/icons/LICENSE-phosphor.txt +21 -0
- package/dist/icons/LICENSE-tabler.txt +21 -0
- package/dist/icons/acorn.svg +1 -0
- package/dist/icons/acorn.vue +1 -0
- package/dist/icons/air-traffic-control.svg +1 -0
- package/dist/icons/air-traffic-control.vue +1 -0
- package/dist/icons/airplane-in-flight.svg +1 -0
- package/dist/icons/airplane-in-flight.vue +1 -0
- package/dist/icons/airplane-landing.svg +1 -0
- package/dist/icons/airplane-landing.vue +1 -0
- package/dist/icons/airplane-takeoff.svg +1 -0
- package/dist/icons/airplane-takeoff.vue +1 -0
- package/dist/icons/airplane-taxiing.svg +1 -0
- package/dist/icons/airplane-taxiing.vue +1 -0
- package/dist/icons/airplane-tilt.svg +1 -0
- package/dist/icons/airplane-tilt.vue +1 -0
- package/dist/icons/airplane.svg +1 -0
- package/dist/icons/airplane.vue +1 -0
- package/dist/icons/ambulance.svg +1 -0
- package/dist/icons/ambulance.vue +1 -0
- package/dist/icons/anchor-simple.svg +1 -0
- package/dist/icons/anchor-simple.vue +1 -0
- package/dist/icons/anchor.svg +1 -0
- package/dist/icons/anchor.vue +1 -0
- package/dist/icons/angle.svg +1 -0
- package/dist/icons/angle.vue +1 -0
- package/dist/icons/aperture.svg +1 -0
- package/dist/icons/aperture.vue +1 -0
- package/dist/icons/app-window.svg +1 -0
- package/dist/icons/app-window.vue +1 -0
- package/dist/icons/approximate-equals.svg +1 -0
- package/dist/icons/approximate-equals.vue +1 -0
- package/dist/icons/arrow-counter-clockwise.svg +1 -0
- package/dist/icons/arrow-counter-clockwise.vue +1 -0
- package/dist/icons/arrow-left.svg +1 -0
- package/dist/icons/arrow-left.vue +1 -0
- package/dist/icons/arrow-right.svg +1 -0
- package/dist/icons/arrow-right.vue +1 -0
- package/dist/icons/arrow-square-out.svg +1 -0
- package/dist/icons/arrow-square-out.vue +1 -0
- package/dist/icons/arrow-up.svg +1 -0
- package/dist/icons/arrow-up.vue +1 -0
- package/dist/icons/arrows-out.svg +1 -0
- package/dist/icons/arrows-out.vue +1 -0
- package/dist/icons/atom.svg +1 -0
- package/dist/icons/atom.vue +1 -0
- package/dist/icons/bank.svg +1 -0
- package/dist/icons/bank.vue +1 -0
- package/dist/icons/barn.svg +1 -0
- package/dist/icons/barn.vue +1 -0
- package/dist/icons/barricade.svg +1 -0
- package/dist/icons/barricade.vue +1 -0
- package/dist/icons/battery-charging.svg +1 -0
- package/dist/icons/battery-charging.vue +1 -0
- package/dist/icons/bezier-curve.svg +1 -0
- package/dist/icons/bezier-curve.vue +1 -0
- package/dist/icons/bicycle.svg +1 -0
- package/dist/icons/bicycle.vue +1 -0
- package/dist/icons/binary.svg +1 -0
- package/dist/icons/binary.vue +1 -0
- package/dist/icons/binoculars.svg +1 -0
- package/dist/icons/binoculars.vue +1 -0
- package/dist/icons/biohazard.svg +1 -0
- package/dist/icons/biohazard.vue +1 -0
- package/dist/icons/bird.svg +1 -0
- package/dist/icons/bird.vue +1 -0
- package/dist/icons/blueprint.svg +1 -0
- package/dist/icons/blueprint.vue +1 -0
- package/dist/icons/boat.svg +1 -0
- package/dist/icons/boat.vue +1 -0
- package/dist/icons/book-open-text.svg +1 -0
- package/dist/icons/book-open-text.vue +1 -0
- package/dist/icons/bounding-box.svg +1 -0
- package/dist/icons/bounding-box.vue +1 -0
- package/dist/icons/brackets-angle.svg +1 -0
- package/dist/icons/brackets-angle.vue +1 -0
- package/dist/icons/brackets-curly.svg +1 -0
- package/dist/icons/brackets-curly.vue +1 -0
- package/dist/icons/brackets-round.svg +1 -0
- package/dist/icons/brackets-round.vue +1 -0
- package/dist/icons/brackets-square.svg +1 -0
- package/dist/icons/brackets-square.vue +1 -0
- package/dist/icons/brain.svg +1 -0
- package/dist/icons/brain.vue +1 -0
- package/dist/icons/bridge.svg +1 -0
- package/dist/icons/bridge.vue +1 -0
- package/dist/icons/briefcase.svg +1 -0
- package/dist/icons/briefcase.vue +1 -0
- package/dist/icons/browser.svg +1 -0
- package/dist/icons/browser.vue +1 -0
- package/dist/icons/bug-beetle.svg +1 -0
- package/dist/icons/bug-beetle.vue +1 -0
- package/dist/icons/bug.svg +1 -0
- package/dist/icons/bug.vue +1 -0
- package/dist/icons/building-apartment.svg +1 -0
- package/dist/icons/building-apartment.vue +1 -0
- package/dist/icons/building-office.svg +1 -0
- package/dist/icons/building-office.vue +1 -0
- package/dist/icons/building.svg +1 -0
- package/dist/icons/building.vue +1 -0
- package/dist/icons/buildings.svg +1 -0
- package/dist/icons/buildings.vue +1 -0
- package/dist/icons/bulldozer.svg +1 -0
- package/dist/icons/bulldozer.vue +1 -0
- package/dist/icons/bus.svg +1 -0
- package/dist/icons/bus.vue +1 -0
- package/dist/icons/butterfly.svg +1 -0
- package/dist/icons/butterfly.vue +1 -0
- package/dist/icons/cable-car.svg +1 -0
- package/dist/icons/cable-car.vue +1 -0
- package/dist/icons/cactus.svg +1 -0
- package/dist/icons/cactus.vue +1 -0
- package/dist/icons/calculator.svg +1 -0
- package/dist/icons/calculator.vue +1 -0
- package/dist/icons/calendar-blank.svg +1 -0
- package/dist/icons/calendar-blank.vue +1 -0
- package/dist/icons/camera.svg +1 -0
- package/dist/icons/camera.vue +1 -0
- package/dist/icons/campfire.svg +1 -0
- package/dist/icons/campfire.vue +1 -0
- package/dist/icons/car-battery.svg +1 -0
- package/dist/icons/car-battery.vue +1 -0
- package/dist/icons/car-profile.svg +1 -0
- package/dist/icons/car-profile.vue +1 -0
- package/dist/icons/car-simple.svg +1 -0
- package/dist/icons/car-simple.vue +1 -0
- package/dist/icons/car.svg +1 -0
- package/dist/icons/car.vue +1 -0
- package/dist/icons/caret-down.svg +1 -0
- package/dist/icons/caret-down.vue +1 -0
- package/dist/icons/caret-left.svg +1 -0
- package/dist/icons/caret-left.vue +1 -0
- package/dist/icons/caret-right.svg +1 -0
- package/dist/icons/caret-right.vue +1 -0
- package/dist/icons/caret-up.svg +1 -0
- package/dist/icons/caret-up.vue +1 -0
- package/dist/icons/cell-tower.svg +1 -0
- package/dist/icons/cell-tower.vue +1 -0
- package/dist/icons/chalkboard-teacher.svg +1 -0
- package/dist/icons/chalkboard-teacher.vue +1 -0
- package/dist/icons/charging-station.svg +1 -0
- package/dist/icons/charging-station.vue +1 -0
- package/dist/icons/chart-bar-horizontal.svg +1 -0
- package/dist/icons/chart-bar-horizontal.vue +1 -0
- package/dist/icons/chart-bar.svg +1 -0
- package/dist/icons/chart-bar.vue +1 -0
- package/dist/icons/chart-donut.svg +1 -0
- package/dist/icons/chart-donut.vue +1 -0
- package/dist/icons/chart-line-down.svg +1 -0
- package/dist/icons/chart-line-down.vue +1 -0
- package/dist/icons/chart-line-up.svg +1 -0
- package/dist/icons/chart-line-up.vue +1 -0
- package/dist/icons/chart-line.svg +1 -0
- package/dist/icons/chart-line.vue +1 -0
- package/dist/icons/chart-pie-slice.svg +1 -0
- package/dist/icons/chart-pie-slice.vue +1 -0
- package/dist/icons/chart-pie.svg +1 -0
- package/dist/icons/chart-pie.vue +1 -0
- package/dist/icons/chart-polar.svg +1 -0
- package/dist/icons/chart-polar.vue +1 -0
- package/dist/icons/chart-scatter.svg +1 -0
- package/dist/icons/chart-scatter.vue +1 -0
- package/dist/icons/check-circle.svg +1 -0
- package/dist/icons/check-circle.vue +1 -0
- package/dist/icons/check.svg +1 -0
- package/dist/icons/check.vue +1 -0
- package/dist/icons/circle-half.svg +1 -0
- package/dist/icons/circle-half.vue +1 -0
- package/dist/icons/circle-notch.svg +1 -0
- package/dist/icons/circle-notch.vue +1 -0
- package/dist/icons/circuitry.svg +1 -0
- package/dist/icons/circuitry.vue +1 -0
- package/dist/icons/city.svg +1 -0
- package/dist/icons/city.vue +1 -0
- package/dist/icons/clock.svg +1 -0
- package/dist/icons/clock.vue +1 -0
- package/dist/icons/closed-captioning.svg +1 -0
- package/dist/icons/closed-captioning.vue +1 -0
- package/dist/icons/cloud-arrow-down.svg +1 -0
- package/dist/icons/cloud-arrow-down.vue +1 -0
- package/dist/icons/cloud-arrow-up.svg +1 -0
- package/dist/icons/cloud-arrow-up.vue +1 -0
- package/dist/icons/cloud-check.svg +1 -0
- package/dist/icons/cloud-check.vue +1 -0
- package/dist/icons/cloud-fog.svg +1 -0
- package/dist/icons/cloud-fog.vue +1 -0
- package/dist/icons/cloud-lightning.svg +1 -0
- package/dist/icons/cloud-lightning.vue +1 -0
- package/dist/icons/cloud-moon.svg +1 -0
- package/dist/icons/cloud-moon.vue +1 -0
- package/dist/icons/cloud-rain.svg +1 -0
- package/dist/icons/cloud-rain.vue +1 -0
- package/dist/icons/cloud-slash.svg +1 -0
- package/dist/icons/cloud-slash.vue +1 -0
- package/dist/icons/cloud-snow.svg +1 -0
- package/dist/icons/cloud-snow.vue +1 -0
- package/dist/icons/cloud-sun.svg +1 -0
- package/dist/icons/cloud-sun.vue +1 -0
- package/dist/icons/cloud-warning.svg +1 -0
- package/dist/icons/cloud-warning.vue +1 -0
- package/dist/icons/cloud-x.svg +1 -0
- package/dist/icons/cloud-x.vue +1 -0
- package/dist/icons/cloud.svg +1 -0
- package/dist/icons/cloud.vue +1 -0
- package/dist/icons/clover.svg +1 -0
- package/dist/icons/clover.vue +1 -0
- package/dist/icons/code-block.svg +1 -0
- package/dist/icons/code-block.vue +1 -0
- package/dist/icons/code-simple.svg +1 -0
- package/dist/icons/code-simple.vue +1 -0
- package/dist/icons/code.svg +1 -0
- package/dist/icons/code.vue +1 -0
- package/dist/icons/columns.svg +1 -0
- package/dist/icons/columns.vue +1 -0
- package/dist/icons/command.svg +1 -0
- package/dist/icons/command.vue +1 -0
- package/dist/icons/compass-rose.svg +1 -0
- package/dist/icons/compass-rose.vue +1 -0
- package/dist/icons/compass-tool.svg +1 -0
- package/dist/icons/compass-tool.vue +1 -0
- package/dist/icons/compass.svg +1 -0
- package/dist/icons/compass.vue +1 -0
- package/dist/icons/computer-tower.svg +1 -0
- package/dist/icons/computer-tower.vue +1 -0
- package/dist/icons/copy.svg +1 -0
- package/dist/icons/copy.vue +1 -0
- package/dist/icons/cow.svg +1 -0
- package/dist/icons/cow.vue +1 -0
- package/dist/icons/cpu.svg +1 -0
- package/dist/icons/cpu.vue +1 -0
- package/dist/icons/crane-tower.svg +1 -0
- package/dist/icons/crane-tower.vue +1 -0
- package/dist/icons/crane.svg +1 -0
- package/dist/icons/crane.vue +1 -0
- package/dist/icons/cube-focus.svg +1 -0
- package/dist/icons/cube-focus.vue +1 -0
- package/dist/icons/cube-transparent.svg +1 -0
- package/dist/icons/cube-transparent.vue +1 -0
- package/dist/icons/cube.svg +1 -0
- package/dist/icons/cube.vue +1 -0
- package/dist/icons/cylinder.svg +1 -0
- package/dist/icons/cylinder.vue +1 -0
- package/dist/icons/database.svg +1 -0
- package/dist/icons/database.vue +1 -0
- package/dist/icons/desktop-tower.svg +1 -0
- package/dist/icons/desktop-tower.vue +1 -0
- package/dist/icons/desktop.svg +1 -0
- package/dist/icons/desktop.vue +1 -0
- package/dist/icons/dice-five.svg +1 -0
- package/dist/icons/dice-five.vue +1 -0
- package/dist/icons/divide.svg +1 -0
- package/dist/icons/divide.vue +1 -0
- package/dist/icons/dna.svg +1 -0
- package/dist/icons/dna.vue +1 -0
- package/dist/icons/download-simple.svg +1 -0
- package/dist/icons/download-simple.vue +1 -0
- package/dist/icons/drone.svg +1 -0
- package/dist/icons/drone.vue +1 -0
- package/dist/icons/drop-half-bottom.svg +1 -0
- package/dist/icons/drop-half-bottom.vue +1 -0
- package/dist/icons/drop-half.svg +1 -0
- package/dist/icons/drop-half.vue +1 -0
- package/dist/icons/drop-simple.svg +1 -0
- package/dist/icons/drop-simple.vue +1 -0
- package/dist/icons/drop-slash.svg +1 -0
- package/dist/icons/drop-slash.vue +1 -0
- package/dist/icons/drop.svg +1 -0
- package/dist/icons/drop.vue +1 -0
- package/dist/icons/engine.svg +1 -0
- package/dist/icons/engine.vue +1 -0
- package/dist/icons/envelope-simple.svg +1 -0
- package/dist/icons/envelope-simple.vue +1 -0
- package/dist/icons/equals.svg +1 -0
- package/dist/icons/equals.vue +1 -0
- package/dist/icons/eye-slash.svg +1 -0
- package/dist/icons/eye-slash.vue +1 -0
- package/dist/icons/eye.svg +1 -0
- package/dist/icons/eye.vue +1 -0
- package/dist/icons/face-mask.svg +1 -0
- package/dist/icons/face-mask.vue +1 -0
- package/dist/icons/factory.svg +1 -0
- package/dist/icons/factory.vue +1 -0
- package/dist/icons/farm.svg +1 -0
- package/dist/icons/farm.vue +1 -0
- package/dist/icons/file-archive.svg +1 -0
- package/dist/icons/file-archive.vue +1 -0
- package/dist/icons/file-arrow-down.svg +1 -0
- package/dist/icons/file-arrow-down.vue +1 -0
- package/dist/icons/file-c-sharp.svg +1 -0
- package/dist/icons/file-c-sharp.vue +1 -0
- package/dist/icons/file-c.svg +1 -0
- package/dist/icons/file-c.vue +1 -0
- package/dist/icons/file-cloud.svg +1 -0
- package/dist/icons/file-cloud.vue +1 -0
- package/dist/icons/file-code.svg +1 -0
- package/dist/icons/file-code.vue +1 -0
- package/dist/icons/file-cpp.svg +1 -0
- package/dist/icons/file-cpp.vue +1 -0
- package/dist/icons/file-css.svg +1 -0
- package/dist/icons/file-css.vue +1 -0
- package/dist/icons/file-csv.svg +1 -0
- package/dist/icons/file-csv.vue +1 -0
- package/dist/icons/file-html.svg +1 -0
- package/dist/icons/file-html.vue +1 -0
- package/dist/icons/file-image.svg +1 -0
- package/dist/icons/file-image.vue +1 -0
- package/dist/icons/file-ini.svg +1 -0
- package/dist/icons/file-ini.vue +1 -0
- package/dist/icons/file-js.svg +1 -0
- package/dist/icons/file-js.vue +1 -0
- package/dist/icons/file-jsx.svg +1 -0
- package/dist/icons/file-jsx.vue +1 -0
- package/dist/icons/file-md.svg +1 -0
- package/dist/icons/file-md.vue +1 -0
- package/dist/icons/file-pdf.svg +1 -0
- package/dist/icons/file-pdf.vue +1 -0
- package/dist/icons/file-py.svg +1 -0
- package/dist/icons/file-py.vue +1 -0
- package/dist/icons/file-rs.svg +1 -0
- package/dist/icons/file-rs.vue +1 -0
- package/dist/icons/file-sql.svg +1 -0
- package/dist/icons/file-sql.vue +1 -0
- package/dist/icons/file-svg.svg +1 -0
- package/dist/icons/file-svg.vue +1 -0
- package/dist/icons/file-text.svg +1 -0
- package/dist/icons/file-text.vue +1 -0
- package/dist/icons/file-ts.svg +1 -0
- package/dist/icons/file-ts.vue +1 -0
- package/dist/icons/file-tsx.svg +1 -0
- package/dist/icons/file-tsx.vue +1 -0
- package/dist/icons/file-txt.svg +1 -0
- package/dist/icons/file-txt.vue +1 -0
- package/dist/icons/file-vue.svg +1 -0
- package/dist/icons/file-vue.vue +1 -0
- package/dist/icons/file-xls.svg +1 -0
- package/dist/icons/file-xls.vue +1 -0
- package/dist/icons/file-zip.svg +1 -0
- package/dist/icons/file-zip.vue +1 -0
- package/dist/icons/fire-simple.svg +1 -0
- package/dist/icons/fire-simple.vue +1 -0
- package/dist/icons/fire-truck.svg +1 -0
- package/dist/icons/fire-truck.vue +1 -0
- package/dist/icons/fire.svg +1 -0
- package/dist/icons/fire.vue +1 -0
- package/dist/icons/fish-simple.svg +1 -0
- package/dist/icons/fish-simple.vue +1 -0
- package/dist/icons/fish.svg +1 -0
- package/dist/icons/fish.vue +1 -0
- package/dist/icons/flame.svg +1 -0
- package/dist/icons/flame.vue +1 -0
- package/dist/icons/flask.svg +1 -0
- package/dist/icons/flask.vue +1 -0
- package/dist/icons/flow-arrow.svg +1 -0
- package/dist/icons/flow-arrow.vue +1 -0
- package/dist/icons/flower-lotus.svg +1 -0
- package/dist/icons/flower-lotus.vue +1 -0
- package/dist/icons/flower-tulip.svg +1 -0
- package/dist/icons/flower-tulip.vue +1 -0
- package/dist/icons/flower.svg +1 -0
- package/dist/icons/flower.vue +1 -0
- package/dist/icons/footprints.svg +1 -0
- package/dist/icons/footprints.vue +1 -0
- package/dist/icons/function.svg +1 -0
- package/dist/icons/function.vue +1 -0
- package/dist/icons/funnel.svg +1 -0
- package/dist/icons/funnel.vue +1 -0
- package/dist/icons/garage.svg +1 -0
- package/dist/icons/garage.vue +1 -0
- package/dist/icons/gas-can.svg +1 -0
- package/dist/icons/gas-can.vue +1 -0
- package/dist/icons/gas-pump.svg +1 -0
- package/dist/icons/gas-pump.vue +1 -0
- package/dist/icons/gauge.svg +1 -0
- package/dist/icons/gauge.vue +1 -0
- package/dist/icons/gear-fine.svg +1 -0
- package/dist/icons/gear-fine.vue +1 -0
- package/dist/icons/gear-six.svg +1 -0
- package/dist/icons/gear-six.vue +1 -0
- package/dist/icons/gear.svg +1 -0
- package/dist/icons/gear.vue +1 -0
- package/dist/icons/git-branch.svg +1 -0
- package/dist/icons/git-branch.vue +1 -0
- package/dist/icons/git-commit.svg +1 -0
- package/dist/icons/git-commit.vue +1 -0
- package/dist/icons/git-diff.svg +1 -0
- package/dist/icons/git-diff.vue +1 -0
- package/dist/icons/git-fork.svg +1 -0
- package/dist/icons/git-fork.vue +1 -0
- package/dist/icons/git-merge.svg +1 -0
- package/dist/icons/git-merge.vue +1 -0
- package/dist/icons/git-pull-request.svg +1 -0
- package/dist/icons/git-pull-request.vue +1 -0
- package/dist/icons/globe-hemisphere-east.svg +1 -0
- package/dist/icons/globe-hemisphere-east.vue +1 -0
- package/dist/icons/globe-hemisphere-west.svg +1 -0
- package/dist/icons/globe-hemisphere-west.vue +1 -0
- package/dist/icons/globe-simple.svg +1 -0
- package/dist/icons/globe-simple.vue +1 -0
- package/dist/icons/globe-stand.svg +1 -0
- package/dist/icons/globe-stand.vue +1 -0
- package/dist/icons/globe.svg +1 -0
- package/dist/icons/globe.vue +1 -0
- package/dist/icons/gps-fix.svg +1 -0
- package/dist/icons/gps-fix.vue +1 -0
- package/dist/icons/gps.svg +1 -0
- package/dist/icons/gps.vue +1 -0
- package/dist/icons/gradient.svg +1 -0
- package/dist/icons/gradient.vue +1 -0
- package/dist/icons/graduation-cap.svg +1 -0
- package/dist/icons/graduation-cap.vue +1 -0
- package/dist/icons/grains-slash.svg +1 -0
- package/dist/icons/grains-slash.vue +1 -0
- package/dist/icons/grains.svg +1 -0
- package/dist/icons/grains.vue +1 -0
- package/dist/icons/graph.svg +1 -0
- package/dist/icons/graph.vue +1 -0
- package/dist/icons/graphics-card.svg +1 -0
- package/dist/icons/graphics-card.vue +1 -0
- package/dist/icons/greater-than-or-equal.svg +1 -0
- package/dist/icons/greater-than-or-equal.vue +1 -0
- package/dist/icons/greater-than.svg +1 -0
- package/dist/icons/greater-than.vue +1 -0
- package/dist/icons/grid-four.svg +1 -0
- package/dist/icons/grid-four.vue +1 -0
- package/dist/icons/grid-nine.svg +1 -0
- package/dist/icons/grid-nine.vue +1 -0
- package/dist/icons/hammer.svg +1 -0
- package/dist/icons/hammer.vue +1 -0
- package/dist/icons/hand-waving.svg +1 -0
- package/dist/icons/hand-waving.vue +1 -0
- package/dist/icons/hard-drive.svg +1 -0
- package/dist/icons/hard-drive.vue +1 -0
- package/dist/icons/hard-drives.svg +1 -0
- package/dist/icons/hard-drives.vue +1 -0
- package/dist/icons/hard-hat.svg +1 -0
- package/dist/icons/hard-hat.vue +1 -0
- package/dist/icons/head-circuit.svg +1 -0
- package/dist/icons/head-circuit.vue +1 -0
- package/dist/icons/hospital.svg +1 -0
- package/dist/icons/hospital.vue +1 -0
- package/dist/icons/house-line.svg +1 -0
- package/dist/icons/house-line.vue +1 -0
- package/dist/icons/house-simple.svg +1 -0
- package/dist/icons/house-simple.vue +1 -0
- package/dist/icons/house.svg +1 -0
- package/dist/icons/house.vue +1 -0
- package/dist/icons/hurricane.svg +1 -0
- package/dist/icons/hurricane.vue +1 -0
- package/dist/icons/identification-card.svg +1 -0
- package/dist/icons/identification-card.vue +1 -0
- package/dist/icons/image.svg +1 -0
- package/dist/icons/image.vue +1 -0
- package/dist/icons/images.svg +1 -0
- package/dist/icons/images.vue +1 -0
- package/dist/icons/infinity.svg +1 -0
- package/dist/icons/infinity.vue +1 -0
- package/dist/icons/info.svg +1 -0
- package/dist/icons/info.vue +1 -0
- package/dist/icons/intersect-three.svg +1 -0
- package/dist/icons/intersect-three.vue +1 -0
- package/dist/icons/intersection.svg +1 -0
- package/dist/icons/intersection.vue +1 -0
- package/dist/icons/island.svg +1 -0
- package/dist/icons/island.vue +1 -0
- package/dist/icons/jeep.svg +1 -0
- package/dist/icons/jeep.vue +1 -0
- package/dist/icons/kanban.svg +1 -0
- package/dist/icons/kanban.vue +1 -0
- package/dist/icons/keyboard.svg +1 -0
- package/dist/icons/keyboard.vue +1 -0
- package/dist/icons/laptop.svg +1 -0
- package/dist/icons/laptop.vue +1 -0
- package/dist/icons/leaf.svg +1 -0
- package/dist/icons/leaf.vue +1 -0
- package/dist/icons/less-than-or-equal.svg +1 -0
- package/dist/icons/less-than-or-equal.vue +1 -0
- package/dist/icons/less-than.svg +1 -0
- package/dist/icons/less-than.vue +1 -0
- package/dist/icons/lightbulb.svg +1 -0
- package/dist/icons/lightbulb.vue +1 -0
- package/dist/icons/lighthouse.svg +1 -0
- package/dist/icons/lighthouse.vue +1 -0
- package/dist/icons/lightning-slash.svg +1 -0
- package/dist/icons/lightning-slash.vue +1 -0
- package/dist/icons/lightning.svg +1 -0
- package/dist/icons/lightning.vue +1 -0
- package/dist/icons/line-segment.svg +1 -0
- package/dist/icons/line-segment.vue +1 -0
- package/dist/icons/line-segments.svg +1 -0
- package/dist/icons/line-segments.vue +1 -0
- package/dist/icons/link.svg +1 -0
- package/dist/icons/link.vue +1 -0
- package/dist/icons/list-bullets.svg +1 -0
- package/dist/icons/list-bullets.vue +1 -0
- package/dist/icons/list.svg +1 -0
- package/dist/icons/list.vue +1 -0
- package/dist/icons/magic-wand.svg +1 -0
- package/dist/icons/magic-wand.vue +1 -0
- package/dist/icons/magnet-straight.svg +1 -0
- package/dist/icons/magnet-straight.vue +1 -0
- package/dist/icons/magnet.svg +1 -0
- package/dist/icons/magnet.vue +1 -0
- package/dist/icons/magnifying-glass-minus.svg +1 -0
- package/dist/icons/magnifying-glass-minus.vue +1 -0
- package/dist/icons/magnifying-glass-plus.svg +1 -0
- package/dist/icons/magnifying-glass-plus.vue +1 -0
- package/dist/icons/magnifying-glass.svg +1 -0
- package/dist/icons/magnifying-glass.vue +1 -0
- package/dist/icons/map-pin-area.svg +1 -0
- package/dist/icons/map-pin-area.vue +1 -0
- package/dist/icons/map-pin-line.svg +1 -0
- package/dist/icons/map-pin-line.vue +1 -0
- package/dist/icons/map-pin-simple-area.svg +1 -0
- package/dist/icons/map-pin-simple-area.vue +1 -0
- package/dist/icons/map-pin-simple-line.svg +1 -0
- package/dist/icons/map-pin-simple-line.vue +1 -0
- package/dist/icons/map-pin-simple.svg +1 -0
- package/dist/icons/map-pin-simple.vue +1 -0
- package/dist/icons/map-pin.svg +1 -0
- package/dist/icons/map-pin.vue +1 -0
- package/dist/icons/map-trifold.svg +1 -0
- package/dist/icons/map-trifold.vue +1 -0
- package/dist/icons/math-operations.svg +1 -0
- package/dist/icons/math-operations.vue +1 -0
- package/dist/icons/member-of.svg +1 -0
- package/dist/icons/member-of.vue +1 -0
- package/dist/icons/memory.svg +1 -0
- package/dist/icons/memory.vue +1 -0
- package/dist/icons/meteor.svg +1 -0
- package/dist/icons/meteor.vue +1 -0
- package/dist/icons/microscope.svg +1 -0
- package/dist/icons/microscope.vue +1 -0
- package/dist/icons/minus.svg +1 -0
- package/dist/icons/minus.vue +1 -0
- package/dist/icons/monitor.svg +1 -0
- package/dist/icons/monitor.vue +1 -0
- package/dist/icons/moon-stars.svg +1 -0
- package/dist/icons/moon-stars.vue +1 -0
- package/dist/icons/moon.svg +1 -0
- package/dist/icons/moon.vue +1 -0
- package/dist/icons/moped-front.svg +1 -0
- package/dist/icons/moped-front.vue +1 -0
- package/dist/icons/moped.svg +1 -0
- package/dist/icons/moped.vue +1 -0
- package/dist/icons/motorcycle.svg +1 -0
- package/dist/icons/motorcycle.vue +1 -0
- package/dist/icons/mountains.svg +1 -0
- package/dist/icons/mountains.vue +1 -0
- package/dist/icons/navigation-arrow.svg +1 -0
- package/dist/icons/navigation-arrow.vue +1 -0
- package/dist/icons/network.svg +1 -0
- package/dist/icons/network.vue +1 -0
- package/dist/icons/newspaper-clipping.svg +1 -0
- package/dist/icons/newspaper-clipping.vue +1 -0
- package/dist/icons/not-equals.svg +1 -0
- package/dist/icons/not-equals.vue +1 -0
- package/dist/icons/not-member-of.svg +1 -0
- package/dist/icons/not-member-of.vue +1 -0
- package/dist/icons/not-subset-of.svg +1 -0
- package/dist/icons/not-subset-of.vue +1 -0
- package/dist/icons/not-superset-of.svg +1 -0
- package/dist/icons/not-superset-of.vue +1 -0
- package/dist/icons/notebook.svg +1 -0
- package/dist/icons/notebook.vue +1 -0
- package/dist/icons/nuclear-plant.svg +1 -0
- package/dist/icons/nuclear-plant.vue +1 -0
- package/dist/icons/package.svg +1 -0
- package/dist/icons/package.vue +1 -0
- package/dist/icons/paint-brush.svg +1 -0
- package/dist/icons/paint-brush.vue +1 -0
- package/dist/icons/palette.svg +1 -0
- package/dist/icons/palette.vue +1 -0
- package/dist/icons/park.svg +1 -0
- package/dist/icons/park.vue +1 -0
- package/dist/icons/path.svg +1 -0
- package/dist/icons/path.vue +1 -0
- package/dist/icons/pause.svg +1 -0
- package/dist/icons/pause.vue +1 -0
- package/dist/icons/pen-nib.svg +1 -0
- package/dist/icons/pen-nib.vue +1 -0
- package/dist/icons/percent.svg +1 -0
- package/dist/icons/percent.vue +1 -0
- package/dist/icons/person-simple-bike.svg +1 -0
- package/dist/icons/person-simple-bike.vue +1 -0
- package/dist/icons/person-simple-circle.svg +1 -0
- package/dist/icons/person-simple-circle.vue +1 -0
- package/dist/icons/person-simple-hike.svg +1 -0
- package/dist/icons/person-simple-hike.vue +1 -0
- package/dist/icons/person-simple-walk.svg +1 -0
- package/dist/icons/person-simple-walk.vue +1 -0
- package/dist/icons/pi.svg +1 -0
- package/dist/icons/pi.vue +1 -0
- package/dist/icons/picnic-table.svg +1 -0
- package/dist/icons/picnic-table.vue +1 -0
- package/dist/icons/planet.svg +1 -0
- package/dist/icons/planet.vue +1 -0
- package/dist/icons/plant.svg +1 -0
- package/dist/icons/plant.vue +1 -0
- package/dist/icons/play.svg +1 -0
- package/dist/icons/play.vue +1 -0
- package/dist/icons/plug-charging.svg +1 -0
- package/dist/icons/plug-charging.vue +1 -0
- package/dist/icons/plug.svg +1 -0
- package/dist/icons/plug.vue +1 -0
- package/dist/icons/plus-minus.svg +1 -0
- package/dist/icons/plus-minus.vue +1 -0
- package/dist/icons/plus.svg +1 -0
- package/dist/icons/plus.vue +1 -0
- package/dist/icons/police-car.svg +1 -0
- package/dist/icons/police-car.vue +1 -0
- package/dist/icons/potted-plant.svg +1 -0
- package/dist/icons/potted-plant.vue +1 -0
- package/dist/icons/presentation-chart.svg +1 -0
- package/dist/icons/presentation-chart.vue +1 -0
- package/dist/icons/printer.svg +1 -0
- package/dist/icons/printer.vue +1 -0
- package/dist/icons/pulse.svg +1 -0
- package/dist/icons/pulse.vue +1 -0
- package/dist/icons/puzzle-piece.svg +1 -0
- package/dist/icons/puzzle-piece.vue +1 -0
- package/dist/icons/question.svg +1 -0
- package/dist/icons/question.vue +1 -0
- package/dist/icons/quotes.svg +1 -0
- package/dist/icons/quotes.vue +1 -0
- package/dist/icons/radical.svg +1 -0
- package/dist/icons/radical.vue +1 -0
- package/dist/icons/radioactive.svg +1 -0
- package/dist/icons/radioactive.vue +1 -0
- package/dist/icons/rainbow-cloud.svg +1 -0
- package/dist/icons/rainbow-cloud.vue +1 -0
- package/dist/icons/rainbow.svg +1 -0
- package/dist/icons/rainbow.vue +1 -0
- package/dist/icons/recycle.svg +1 -0
- package/dist/icons/recycle.vue +1 -0
- package/dist/icons/road-horizon.svg +1 -0
- package/dist/icons/road-horizon.vue +1 -0
- package/dist/icons/robot.svg +1 -0
- package/dist/icons/robot.vue +1 -0
- package/dist/icons/rocket-launch.svg +1 -0
- package/dist/icons/rocket-launch.vue +1 -0
- package/dist/icons/rocket.svg +1 -0
- package/dist/icons/rocket.vue +1 -0
- package/dist/icons/rows.svg +1 -0
- package/dist/icons/rows.vue +1 -0
- package/dist/icons/rss.svg +1 -0
- package/dist/icons/rss.vue +1 -0
- package/dist/icons/ruler.svg +1 -0
- package/dist/icons/ruler.vue +1 -0
- package/dist/icons/sailboat.svg +1 -0
- package/dist/icons/sailboat.vue +1 -0
- package/dist/icons/satellite.svg +1 -0
- package/dist/icons/satellite.vue +1 -0
- package/dist/icons/scales.svg +1 -0
- package/dist/icons/scales.vue +1 -0
- package/dist/icons/scooter.svg +1 -0
- package/dist/icons/scooter.vue +1 -0
- package/dist/icons/screwdriver.svg +1 -0
- package/dist/icons/screwdriver.vue +1 -0
- package/dist/icons/seal-check.svg +1 -0
- package/dist/icons/seal-check.vue +1 -0
- package/dist/icons/share-network.svg +1 -0
- package/dist/icons/share-network.vue +1 -0
- package/dist/icons/shipping-container.svg +1 -0
- package/dist/icons/shipping-container.vue +1 -0
- package/dist/icons/shooting-star.svg +1 -0
- package/dist/icons/shooting-star.vue +1 -0
- package/dist/icons/shovel.svg +1 -0
- package/dist/icons/shovel.vue +1 -0
- package/dist/icons/shuffle.svg +1 -0
- package/dist/icons/shuffle.vue +1 -0
- package/dist/icons/sigma.svg +1 -0
- package/dist/icons/sigma.vue +1 -0
- package/dist/icons/signpost.svg +1 -0
- package/dist/icons/signpost.vue +1 -0
- package/dist/icons/sliders-horizontal.svg +1 -0
- package/dist/icons/sliders-horizontal.vue +1 -0
- package/dist/icons/snowflake.svg +1 -0
- package/dist/icons/snowflake.vue +1 -0
- package/dist/icons/solar-panel.svg +1 -0
- package/dist/icons/solar-panel.vue +1 -0
- package/dist/icons/solar-roof.svg +1 -0
- package/dist/icons/solar-roof.vue +1 -0
- package/dist/icons/sparkle.svg +1 -0
- package/dist/icons/sparkle.vue +1 -0
- package/dist/icons/speaker-high.svg +1 -0
- package/dist/icons/speaker-high.vue +1 -0
- package/dist/icons/speaker-slash.svg +1 -0
- package/dist/icons/speaker-slash.vue +1 -0
- package/dist/icons/speedometer.svg +1 -0
- package/dist/icons/speedometer.vue +1 -0
- package/dist/icons/sphere.svg +1 -0
- package/dist/icons/sphere.vue +1 -0
- package/dist/icons/sprite.svg +418 -0
- package/dist/icons/stack-simple.svg +1 -0
- package/dist/icons/stack-simple.vue +1 -0
- package/dist/icons/stack.svg +1 -0
- package/dist/icons/stack.vue +1 -0
- package/dist/icons/star-four.svg +1 -0
- package/dist/icons/star-four.vue +1 -0
- package/dist/icons/star.svg +1 -0
- package/dist/icons/star.vue +1 -0
- package/dist/icons/steering-wheel.svg +1 -0
- package/dist/icons/steering-wheel.vue +1 -0
- package/dist/icons/stop.svg +1 -0
- package/dist/icons/stop.vue +1 -0
- package/dist/icons/storefront.svg +1 -0
- package/dist/icons/storefront.vue +1 -0
- package/dist/icons/subset-of.svg +1 -0
- package/dist/icons/subset-of.vue +1 -0
- package/dist/icons/subset-proper-of.svg +1 -0
- package/dist/icons/subset-proper-of.vue +1 -0
- package/dist/icons/subway.svg +1 -0
- package/dist/icons/subway.vue +1 -0
- package/dist/icons/sun-dim.svg +1 -0
- package/dist/icons/sun-dim.vue +1 -0
- package/dist/icons/sun-horizon.svg +1 -0
- package/dist/icons/sun-horizon.vue +1 -0
- package/dist/icons/sun.svg +1 -0
- package/dist/icons/sun.vue +1 -0
- package/dist/icons/superset-of.svg +1 -0
- package/dist/icons/superset-of.vue +1 -0
- package/dist/icons/superset-proper-of.svg +1 -0
- package/dist/icons/superset-proper-of.vue +1 -0
- package/dist/icons/table.svg +1 -0
- package/dist/icons/table.vue +1 -0
- package/dist/icons/tag.svg +1 -0
- package/dist/icons/tag.vue +1 -0
- package/dist/icons/taxi.svg +1 -0
- package/dist/icons/taxi.vue +1 -0
- package/dist/icons/tent.svg +1 -0
- package/dist/icons/tent.vue +1 -0
- package/dist/icons/terminal-window.svg +1 -0
- package/dist/icons/terminal-window.vue +1 -0
- package/dist/icons/terminal.svg +1 -0
- package/dist/icons/terminal.vue +1 -0
- package/dist/icons/test-tube.svg +1 -0
- package/dist/icons/test-tube.vue +1 -0
- package/dist/icons/thermometer-cold.svg +1 -0
- package/dist/icons/thermometer-cold.vue +1 -0
- package/dist/icons/thermometer-hot.svg +1 -0
- package/dist/icons/thermometer-hot.vue +1 -0
- package/dist/icons/thermometer-simple.svg +1 -0
- package/dist/icons/thermometer-simple.vue +1 -0
- package/dist/icons/thermometer.svg +1 -0
- package/dist/icons/thermometer.vue +1 -0
- package/dist/icons/tire.svg +1 -0
- package/dist/icons/tire.vue +1 -0
- package/dist/icons/toolbox.svg +1 -0
- package/dist/icons/toolbox.vue +1 -0
- package/dist/icons/tornado.svg +1 -0
- package/dist/icons/tornado.vue +1 -0
- package/dist/icons/tractor.svg +1 -0
- package/dist/icons/tractor.vue +1 -0
- package/dist/icons/traffic-cone.svg +1 -0
- package/dist/icons/traffic-cone.vue +1 -0
- package/dist/icons/traffic-sign.svg +1 -0
- package/dist/icons/traffic-sign.vue +1 -0
- package/dist/icons/traffic-signal.svg +1 -0
- package/dist/icons/traffic-signal.vue +1 -0
- package/dist/icons/train-regional.svg +1 -0
- package/dist/icons/train-regional.vue +1 -0
- package/dist/icons/train-simple.svg +1 -0
- package/dist/icons/train-simple.vue +1 -0
- package/dist/icons/train.svg +1 -0
- package/dist/icons/train.vue +1 -0
- package/dist/icons/tram.svg +1 -0
- package/dist/icons/tram.vue +1 -0
- package/dist/icons/translate.svg +1 -0
- package/dist/icons/translate.vue +1 -0
- package/dist/icons/tree-evergreen.svg +1 -0
- package/dist/icons/tree-evergreen.vue +1 -0
- package/dist/icons/tree-palm.svg +1 -0
- package/dist/icons/tree-palm.vue +1 -0
- package/dist/icons/tree-structure.svg +1 -0
- package/dist/icons/tree-structure.vue +1 -0
- package/dist/icons/tree-view.svg +1 -0
- package/dist/icons/tree-view.vue +1 -0
- package/dist/icons/tree.svg +1 -0
- package/dist/icons/tree.vue +1 -0
- package/dist/icons/trend-down.svg +1 -0
- package/dist/icons/trend-down.vue +1 -0
- package/dist/icons/trend-up.svg +1 -0
- package/dist/icons/trend-up.vue +1 -0
- package/dist/icons/trophy.svg +1 -0
- package/dist/icons/trophy.vue +1 -0
- package/dist/icons/truck-trailer.svg +1 -0
- package/dist/icons/truck-trailer.vue +1 -0
- package/dist/icons/truck.svg +1 -0
- package/dist/icons/truck.vue +1 -0
- package/dist/icons/umbrella-simple.svg +1 -0
- package/dist/icons/umbrella-simple.vue +1 -0
- package/dist/icons/umbrella.svg +1 -0
- package/dist/icons/umbrella.vue +1 -0
- package/dist/icons/union.svg +1 -0
- package/dist/icons/union.vue +1 -0
- package/dist/icons/upload-simple.svg +1 -0
- package/dist/icons/upload-simple.vue +1 -0
- package/dist/icons/users.svg +1 -0
- package/dist/icons/users.vue +1 -0
- package/dist/icons/van.svg +1 -0
- package/dist/icons/van.vue +1 -0
- package/dist/icons/vector-three.svg +1 -0
- package/dist/icons/vector-three.vue +1 -0
- package/dist/icons/vector-two.svg +1 -0
- package/dist/icons/vector-two.vue +1 -0
- package/dist/icons/video.svg +1 -0
- package/dist/icons/video.vue +1 -0
- package/dist/icons/virus.svg +1 -0
- package/dist/icons/virus.vue +1 -0
- package/dist/icons/warehouse.svg +1 -0
- package/dist/icons/warehouse.vue +1 -0
- package/dist/icons/warning.svg +1 -0
- package/dist/icons/warning.vue +1 -0
- package/dist/icons/wave-sawtooth.svg +1 -0
- package/dist/icons/wave-sawtooth.vue +1 -0
- package/dist/icons/wave-sine.svg +1 -0
- package/dist/icons/wave-sine.vue +1 -0
- package/dist/icons/wave-square.svg +1 -0
- package/dist/icons/wave-square.vue +1 -0
- package/dist/icons/wave-triangle.svg +1 -0
- package/dist/icons/wave-triangle.vue +1 -0
- package/dist/icons/waveform.svg +1 -0
- package/dist/icons/waveform.vue +1 -0
- package/dist/icons/waves.svg +1 -0
- package/dist/icons/waves.vue +1 -0
- package/dist/icons/wind.svg +1 -0
- package/dist/icons/wind.vue +1 -0
- package/dist/icons/windmill.svg +1 -0
- package/dist/icons/windmill.vue +1 -0
- package/dist/icons/wrench.svg +1 -0
- package/dist/icons/wrench.vue +1 -0
- package/dist/icons/x-circle.svg +1 -0
- package/dist/icons/x-circle.vue +1 -0
- package/dist/icons/x.svg +1 -0
- package/dist/icons/x.vue +1 -0
- package/dist/rkui.css +1 -0
- package/dist/rkui.js +41 -0
- package/dist/types/components/alert/alert-enhance.d.ts +0 -0
- package/dist/types/components/code/highlight.d.ts +9 -0
- package/dist/types/components/drawer/drawer-enhance.d.ts +21 -0
- package/dist/types/components/file/file-enhance.d.ts +6 -0
- package/dist/types/components/folder/folder-enhance.d.ts +1 -0
- package/dist/types/components/overflow/overflow-enhance.d.ts +1 -0
- package/dist/types/components/quote/quote-enhance.d.ts +1 -0
- package/dist/types/components/sidebar/sidebar-enhance.d.ts +1 -0
- package/dist/types/components/table/table-enhance.d.ts +1 -0
- package/dist/types/components/tooltip/tooltip-enhance.d.ts +7 -0
- package/dist/types/shared/after-slide.d.ts +10 -0
- package/dist/types/shared/clock-face.d.ts +93 -0
- package/dist/types/shared/dial-face.d.ts +58 -0
- package/dist/types/shared/dial-geometry.d.ts +66 -0
- package/dist/types/shared/each-element.d.ts +9 -0
- package/dist/types/shared/light-angle.d.ts +22 -0
- package/package.json +100 -4
- package/src/base/base.css +144 -0
- package/src/base/fonts.css +158 -0
- package/src/base/type.css +17 -0
- package/src/components/alert/Alert.vue +66 -0
- package/src/components/alert/alert-enhance.js +43 -0
- package/src/components/alert/alert.css +125 -0
- package/src/components/badge/Badge.vue +74 -0
- package/src/components/badge/BadgeHost.vue +24 -0
- package/src/components/badge/badge.css +142 -0
- package/src/components/ballot/Ballot.vue +71 -0
- package/src/components/ballot/BallotOption.vue +83 -0
- package/src/components/ballot/ballot.css +208 -0
- package/src/components/breadcrumbs/Breadcrumbs.vue +47 -0
- package/src/components/breadcrumbs/breadcrumbs.css +104 -0
- package/src/components/button/Button.vue +130 -0
- package/src/components/button/button.css +93 -0
- package/src/components/callout/Callout.vue +31 -0
- package/src/components/callout/callout.css +39 -0
- package/src/components/card/Card.vue +59 -0
- package/src/components/card/card.css +117 -0
- package/src/components/checkbox/Checkbox.vue +50 -0
- package/src/components/checkbox/Radio.vue +51 -0
- package/src/components/checkbox/checkbox.css +82 -0
- package/src/components/chip/Chip.vue +60 -0
- package/src/components/chip/ChipGroup.vue +59 -0
- package/src/components/chip/chip.css +73 -0
- package/src/components/clock/Clock.vue +200 -0
- package/src/components/clock/clock-element.ts +6 -0
- package/src/components/clock/clock.css +258 -0
- package/src/components/code/CodeBlock.vue +210 -0
- package/src/components/code/code.css +185 -0
- package/src/components/code/highlight.js +46 -0
- package/src/components/color-picker/ColorInput.vue +54 -0
- package/src/components/color-picker/ColorPicker.vue +110 -0
- package/src/components/color-picker/ColorTile.vue +28 -0
- package/src/components/color-picker/color-picker-element.ts +7 -0
- package/src/components/color-picker/color-picker.css +219 -0
- package/src/components/date-time/date-time.css +53 -0
- package/src/components/dial/Dial.vue +247 -0
- package/src/components/dial/dial-element.ts +6 -0
- package/src/components/dial/dial.css +299 -0
- package/src/components/drawer/Cabinet.vue +67 -0
- package/src/components/drawer/Drawer.vue +155 -0
- package/src/components/drawer/drawer-enhance.js +123 -0
- package/src/components/drawer/drawer.css +889 -0
- package/src/components/field/Field.vue +49 -0
- package/src/components/field/field.css +31 -0
- package/src/components/figure/figure.css +30 -0
- package/src/components/file/File.vue +73 -0
- package/src/components/file/file-enhance.js +35 -0
- package/src/components/file/file.css +130 -0
- package/src/components/folder/Folder.vue +241 -0
- package/src/components/folder/Tab.vue +25 -0
- package/src/components/folder/folder-enhance.js +231 -0
- package/src/components/folder/folder.css +582 -0
- package/src/components/folder/tab-items.ts +67 -0
- package/src/components/folder/tab-slot.ts +80 -0
- package/src/components/header-band/HeaderBand.vue +52 -0
- package/src/components/header-band/header-band.css +54 -0
- package/src/components/icon/icon.css +20 -0
- package/src/components/input/Input.vue +69 -0
- package/src/components/input/Textarea.vue +68 -0
- package/src/components/input/input.css +66 -0
- package/src/components/light-direction/LightDirection.vue +64 -0
- package/src/components/light-direction/light-direction-element.ts +6 -0
- package/src/components/loader/Loader.vue +39 -0
- package/src/components/loader/loader.css +132 -0
- package/src/components/logo/Logo.vue +128 -0
- package/src/components/logo/logo.css +233 -0
- package/src/components/maths/Equation.vue +64 -0
- package/src/components/maths/EquationReference.vue +31 -0
- package/src/components/maths/Maths.vue +32 -0
- package/src/components/maths/maths.css +220 -0
- package/src/components/maths/render-maths.ts +45 -0
- package/src/components/motion/Motion.vue +23 -0
- package/src/components/motion/motion.css +19 -0
- package/src/components/number/Stepper.vue +138 -0
- package/src/components/number/number.css +116 -0
- package/src/components/number/stepper-element.ts +6 -0
- package/src/components/overflow/Scroll.vue +43 -0
- package/src/components/overflow/overflow-enhance.js +45 -0
- package/src/components/overflow/overflow.css +397 -0
- package/src/components/pagination/Pagination.vue +254 -0
- package/src/components/pagination/pagination.css +87 -0
- package/src/components/popup/Popup.vue +26 -0
- package/src/components/popup/popup.css +53 -0
- package/src/components/progress/Progress.vue +47 -0
- package/src/components/progress/progress.css +170 -0
- package/src/components/quote/Quote.vue +48 -0
- package/src/components/quote/quote-enhance.js +70 -0
- package/src/components/quote/quote.css +73 -0
- package/src/components/range/Range.vue +169 -0
- package/src/components/range/range-element.ts +8 -0
- package/src/components/range/range.css +315 -0
- package/src/components/range-ticks/range-ticks.css +29 -0
- package/src/components/search/Search.vue +113 -0
- package/src/components/search/search.css +138 -0
- package/src/components/segmented/Segmented.vue +46 -0
- package/src/components/segmented/SegmentedOption.vue +61 -0
- package/src/components/segmented/segmented.css +181 -0
- package/src/components/select/Select.vue +181 -0
- package/src/components/select/select.css +93 -0
- package/src/components/sidebar/Sidebar.vue +79 -0
- package/src/components/sidebar/SidebarGroup.vue +29 -0
- package/src/components/sidebar/SidebarLink.vue +46 -0
- package/src/components/sidebar/sidebar-enhance.js +26 -0
- package/src/components/sidebar/sidebar.css +543 -0
- package/src/components/spinner/Spinner.vue +36 -0
- package/src/components/spinner/spinner.css +147 -0
- package/src/components/spinner-dots/Dots.vue +48 -0
- package/src/components/spinner-dots/spinner-dots.css +167 -0
- package/src/components/sticky-note/StickyNote.vue +104 -0
- package/src/components/sticky-note/sticky-note.css +206 -0
- package/src/components/switch/Switch.vue +52 -0
- package/src/components/switch/switch.css +73 -0
- package/src/components/table/Table.vue +142 -0
- package/src/components/table/table-enhance.js +58 -0
- package/src/components/table/table.css +622 -0
- package/src/components/theme-toggle/ThemeToggle.vue +114 -0
- package/src/components/theme-toggle/theme-toggle-element.ts +6 -0
- package/src/components/theme-toggle/theme-toggle.css +7 -0
- package/src/components/tiles/Tile.vue +90 -0
- package/src/components/tiles/Tiles.vue +45 -0
- package/src/components/tiles/tiles.css +93 -0
- package/src/components/tooltip/Tooltip.vue +31 -0
- package/src/components/tooltip/tooltip-enhance.js +42 -0
- package/src/components/tooltip/tooltip.css +118 -0
- package/src/components/topbar/BackToTop.vue +18 -0
- package/src/components/topbar/TopBar.vue +25 -0
- package/src/components/topbar/topbar.css +127 -0
- package/src/components/water/Flask.vue +44 -0
- package/src/components/water/Pending.vue +32 -0
- package/src/components/water/water.css +262 -0
- package/src/components/widget-frame/WidgetFrame.vue +31 -0
- package/src/components/widget-frame/widget-frame.css +46 -0
- package/src/enhance.js +13 -0
- package/src/fonts/jetbrains-mono/OFL.txt +93 -0
- package/src/fonts/jetbrains-mono/jetbrains-mono-greek.woff2 +0 -0
- package/src/fonts/jetbrains-mono/jetbrains-mono-italic-greek.woff2 +0 -0
- package/src/fonts/jetbrains-mono/jetbrains-mono-italic-latin.woff2 +0 -0
- package/src/fonts/jetbrains-mono/jetbrains-mono-italic-symbols.woff2 +0 -0
- package/src/fonts/jetbrains-mono/jetbrains-mono-latin.woff2 +0 -0
- package/src/fonts/jetbrains-mono/jetbrains-mono-symbols.woff2 +0 -0
- package/src/fonts/roboto-slab/LICENSE.txt +202 -0
- package/src/fonts/roboto-slab/roboto-slab-greek.woff2 +0 -0
- package/src/fonts/roboto-slab/roboto-slab-latin.woff2 +0 -0
- package/src/fonts/roboto-slab/roboto-slab-symbols.woff2 +0 -0
- package/src/fonts/xmind/OFL.txt +93 -0
- package/src/fonts/xmind/xmind-greek.woff2 +0 -0
- package/src/fonts/xmind/xmind-italic-greek.woff2 +0 -0
- package/src/fonts/xmind/xmind-italic-latin.woff2 +0 -0
- package/src/fonts/xmind/xmind-italic-symbols.woff2 +0 -0
- package/src/fonts/xmind/xmind-latin.woff2 +0 -0
- package/src/fonts/xmind/xmind-symbols.woff2 +0 -0
- package/src/head-scripts/table-init.js +9 -0
- package/src/head-scripts/theme-init.js +10 -0
- package/src/icons/LICENSE-phosphor.txt +21 -0
- package/src/icons/LICENSE-tabler.txt +21 -0
- package/src/icons/icon-set.js +715 -0
- package/src/icons/sources/satellite-duotone.svg +2 -0
- package/src/index.css +64 -0
- package/src/interactive-enhance.js +22 -0
- package/src/interactive.css +239 -0
- package/src/shared/after-slide.js +14 -0
- package/src/shared/astro-attributes.d.ts +58 -0
- package/src/shared/clock-face.js +148 -0
- package/src/shared/component-id.ts +17 -0
- package/src/shared/define-element.ts +51 -0
- package/src/shared/dial-face.js +111 -0
- package/src/shared/dial-geometry.js +96 -0
- package/src/shared/each-element.js +38 -0
- package/src/shared/field-attrs.ts +32 -0
- package/src/shared/hues.ts +111 -0
- package/src/shared/light-angle.js +49 -0
- package/src/shared/live-value.ts +142 -0
- package/src/shared/model-start.ts +23 -0
- package/src/shared/option-group.ts +19 -0
- package/src/shared/option-slot.ts +97 -0
- package/src/shared/slot-html.ts +53 -0
- package/src/shared/split-attrs.ts +64 -0
- package/src/shared/starting-option.ts +14 -0
- package/src/tokens/colors.css +122 -0
- package/src/tokens/fallback.css +67 -0
- package/src/tokens/motion.css +31 -0
- package/src/tokens/palettes.css +36 -0
- package/src/tokens/shadow-color.css +178 -0
- package/src/tokens/shadows.css +127 -0
- package/src/tokens/space.css +20 -0
- package/src/tsconfig.json +19 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
A settable clock: a labelled time input under a clock face, with a day and night ring, a sun and
|
|
3
|
+
a moon, and two hands to drag. The hour hand goes round once a day. Dragging a hand sets the
|
|
4
|
+
input, snapping the minutes to its `step` (in seconds), and fires `input` and, on release,
|
|
5
|
+
`change`; the minute hand carries into the hour as it passes 12. The input stays the control for
|
|
6
|
+
keys, screen readers and forms. In an Astro page it needs `client:visible`; without it the face
|
|
7
|
+
stays hidden, holding its place, and the input works on its own. `class` and `style` go on the
|
|
8
|
+
outermost div; other attributes (name, step, disabled, ...) go on the input. In a `.vue` file,
|
|
9
|
+
`v-model` is the input's value, "HH:MM". Without one, `value` is the starting time.
|
|
10
|
+
|
|
11
|
+
@example
|
|
12
|
+
<Clock client:visible label="Wake up" value="07:30" />
|
|
13
|
+
<Clock v-model="wakeUp" label="Wake up" />
|
|
14
|
+
-->
|
|
15
|
+
<script setup lang="ts">
|
|
16
|
+
import { onMounted, ref, useAttrs, useTemplateRef, watch } from 'vue'
|
|
17
|
+
import SunIcon from '@oneonefour/rkui/icons/sun.vue'
|
|
18
|
+
import MoonIcon from '@oneonefour/rkui/icons/moon.vue'
|
|
19
|
+
import { useComponentId } from '../../shared/component-id'
|
|
20
|
+
import { useLiveValue } from '../../shared/live-value'
|
|
21
|
+
import { splitAttrs } from '../../shared/split-attrs'
|
|
22
|
+
import {
|
|
23
|
+
FACE_STYLE,
|
|
24
|
+
RING,
|
|
25
|
+
TICKS,
|
|
26
|
+
clockHandAngles,
|
|
27
|
+
draggedTime,
|
|
28
|
+
formatTime,
|
|
29
|
+
handLength,
|
|
30
|
+
nearestHand,
|
|
31
|
+
parseTime,
|
|
32
|
+
twoDigits,
|
|
33
|
+
} from '../../shared/clock-face.js'
|
|
34
|
+
import { CENTRE, VIEWBOX, pointToAngle, wrap } from '../../shared/dial-geometry.js'
|
|
35
|
+
|
|
36
|
+
defineOptions({ inheritAttrs: false })
|
|
37
|
+
|
|
38
|
+
interface Props {
|
|
39
|
+
/** The clock's visible label, which is also its accessible name. */
|
|
40
|
+
label: string
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const { label } = defineProps<Props>()
|
|
44
|
+
|
|
45
|
+
const attrs = useAttrs()
|
|
46
|
+
/** The input's value (`v-model`), "HH:MM"; the page's `value` attribute when left out. */
|
|
47
|
+
const model = defineModel<string>()
|
|
48
|
+
if (model.value === undefined) model.value = attrs.value as string | undefined
|
|
49
|
+
// In the browser, what was typed before the clock woke up wins.
|
|
50
|
+
const vLiveValue = useLiveValue(model)
|
|
51
|
+
const id = (attrs.id as string | undefined) ?? useComponentId('clock')
|
|
52
|
+
const input = useTemplateRef<HTMLInputElement>('input')
|
|
53
|
+
const face = useTemplateRef<HTMLElement>('face')
|
|
54
|
+
// Set once the clock runs in the browser; until then clock.css hides the face.
|
|
55
|
+
const live = ref(false)
|
|
56
|
+
onMounted(() => (live.value = true))
|
|
57
|
+
|
|
58
|
+
/** The time the hands show: the input's, kept while the input is empty. */
|
|
59
|
+
const shown = ref(parseTime(model.value ?? ''))
|
|
60
|
+
/** Where the hands point, in degrees; past 360 or below 0, so each turns the short way. */
|
|
61
|
+
const angles = ref(clockHandAngles(shown.value.hours, shown.value.minutes))
|
|
62
|
+
watch(model, (value) => {
|
|
63
|
+
if (!value) return
|
|
64
|
+
shown.value = parseTime(value)
|
|
65
|
+
angles.value = clockHandAngles(shown.value.hours, shown.value.minutes, angles.value)
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
/** The hand being dragged, if any. */
|
|
69
|
+
const grabbed = ref<'hour' | 'minute'>()
|
|
70
|
+
/** The input's value when the drag began, to tell on release whether it changed. */
|
|
71
|
+
let valueAtDragStart = ''
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The page's attributes: `class` and `style` for the outermost div (`outer`), the rest for the
|
|
75
|
+
* input (`inner`). `value` is left out, as the model holds it, and so is `id`, which the input
|
|
76
|
+
* always has.
|
|
77
|
+
*/
|
|
78
|
+
function pageAttrs() {
|
|
79
|
+
const { value, id: pageId, ...rest } = attrs
|
|
80
|
+
return splitAttrs(rest)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** A hand's length and angle, for CSS. */
|
|
84
|
+
function handStyle(hand: 'hour' | 'minute') {
|
|
85
|
+
return { '--rkui-hand-length': handLength(hand), '--rkui-hand-angle': `${angles.value[hand]}deg` }
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** The pointer's place on the face, in the face's SVG units. */
|
|
89
|
+
function pointOnFace(event: PointerEvent) {
|
|
90
|
+
const box = face.value!.getBoundingClientRect()
|
|
91
|
+
return {
|
|
92
|
+
x: ((event.clientX - box.left) / box.width) * VIEWBOX,
|
|
93
|
+
y: ((event.clientY - box.top) / box.height) * VIEWBOX,
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** Moves the grabbed hand to the pointer, and fires `input` when the time changed. */
|
|
98
|
+
function setTimeFromPointer(event: PointerEvent) {
|
|
99
|
+
const field = input.value!
|
|
100
|
+
const { x, y } = pointOnFace(event)
|
|
101
|
+
const angle = wrap(pointToAngle(x - CENTRE, y - CENTRE), 360)
|
|
102
|
+
const minuteStep = Math.max(1, Math.round(Number(field.step || 60) / 60))
|
|
103
|
+
const { hours, minutes } = draggedTime(grabbed.value!, angle, parseTime(field.value), minuteStep)
|
|
104
|
+
const value = formatTime(hours, minutes)
|
|
105
|
+
if (value === field.value) return
|
|
106
|
+
field.value = value
|
|
107
|
+
field.dispatchEvent(new Event('input', { bubbles: true }))
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function grab(event: PointerEvent) {
|
|
111
|
+
const field = input.value!
|
|
112
|
+
if (field.disabled || event.button !== 0) return
|
|
113
|
+
face.value!.setPointerCapture(event.pointerId)
|
|
114
|
+
valueAtDragStart = field.value
|
|
115
|
+
grabbed.value = nearestHand(pointOnFace(event), angles.value)
|
|
116
|
+
setTimeFromPointer(event)
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function drag(event: PointerEvent) {
|
|
120
|
+
if (grabbed.value) setTimeFromPointer(event)
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** Fires `change` once at the end of a drag, as a native input does when it's committed. */
|
|
124
|
+
function release() {
|
|
125
|
+
if (!grabbed.value) return
|
|
126
|
+
grabbed.value = undefined
|
|
127
|
+
const field = input.value!
|
|
128
|
+
if (field.value !== valueAtDragStart) field.dispatchEvent(new Event('change', { bubbles: true }))
|
|
129
|
+
}
|
|
130
|
+
</script>
|
|
131
|
+
|
|
132
|
+
<template>
|
|
133
|
+
<div class="rkui-clock" :data-rkui-live="live ? '' : undefined" v-bind="pageAttrs().outer">
|
|
134
|
+
<label :for="id">{{ label }}</label>
|
|
135
|
+
<div
|
|
136
|
+
ref="face"
|
|
137
|
+
class="rkui-clock-face"
|
|
138
|
+
aria-hidden="true"
|
|
139
|
+
:style="FACE_STYLE"
|
|
140
|
+
@pointerdown="grab"
|
|
141
|
+
@pointermove="drag"
|
|
142
|
+
@lostpointercapture="release"
|
|
143
|
+
>
|
|
144
|
+
<svg :viewBox="`0 0 ${VIEWBOX} ${VIEWBOX}`">
|
|
145
|
+
<path class="rkui-clock-day" :d="RING.day" :stroke-width="RING.width" />
|
|
146
|
+
<path class="rkui-clock-night" :d="RING.night" :stroke-width="RING.width" />
|
|
147
|
+
<circle class="rkui-clock-ring-edge" :cx="CENTRE" :cy="CENTRE" :r="RING.innerEdge" />
|
|
148
|
+
<line
|
|
149
|
+
v-for="(edge, i) in RING.edges"
|
|
150
|
+
:key="i"
|
|
151
|
+
class="rkui-clock-ring-edge"
|
|
152
|
+
:x1="edge.x1"
|
|
153
|
+
:y1="edge.y1"
|
|
154
|
+
:x2="edge.x2"
|
|
155
|
+
:y2="edge.y2"
|
|
156
|
+
/>
|
|
157
|
+
<line
|
|
158
|
+
v-for="(tick, i) in TICKS"
|
|
159
|
+
:key="i"
|
|
160
|
+
:class="['rkui-clock-tick', { 'rkui-clock-tick--quarter': tick.quarter }]"
|
|
161
|
+
:x1="tick.line.x1"
|
|
162
|
+
:y1="tick.line.y1"
|
|
163
|
+
:x2="tick.line.x2"
|
|
164
|
+
:y2="tick.line.y2"
|
|
165
|
+
/>
|
|
166
|
+
</svg>
|
|
167
|
+
<SunIcon class="rkui-icon rkui-clock-day-icon" />
|
|
168
|
+
<MoonIcon class="rkui-icon rkui-clock-night-icon" />
|
|
169
|
+
<span
|
|
170
|
+
class="rkui-clock-hand rkui-clock-hand--hour"
|
|
171
|
+
:style="handStyle('hour')"
|
|
172
|
+
:data-grabbed="grabbed === 'hour' ? '' : undefined"
|
|
173
|
+
>
|
|
174
|
+
<span class="rkui-clock-tip">
|
|
175
|
+
<span class="rkui-clock-tag">{{ twoDigits(shown.hours) }}</span>
|
|
176
|
+
</span>
|
|
177
|
+
</span>
|
|
178
|
+
<span
|
|
179
|
+
class="rkui-clock-hand rkui-clock-hand--minute"
|
|
180
|
+
:style="handStyle('minute')"
|
|
181
|
+
:data-grabbed="grabbed === 'minute' ? '' : undefined"
|
|
182
|
+
>
|
|
183
|
+
<span class="rkui-clock-tip">
|
|
184
|
+
<span class="rkui-clock-tag">{{ twoDigits(shown.minutes) }}</span>
|
|
185
|
+
</span>
|
|
186
|
+
</span>
|
|
187
|
+
<span class="rkui-clock-hub"></span>
|
|
188
|
+
</div>
|
|
189
|
+
<input
|
|
190
|
+
ref="input"
|
|
191
|
+
v-live-value
|
|
192
|
+
v-model="model"
|
|
193
|
+
:id
|
|
194
|
+
class="rkui-input"
|
|
195
|
+
type="time"
|
|
196
|
+
step="300"
|
|
197
|
+
v-bind="pageAttrs().inner"
|
|
198
|
+
/>
|
|
199
|
+
</div>
|
|
200
|
+
</template>
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/* Clock: a settable clock face over a time input, drawn by Clock.vue. It marks the clock
|
|
2
|
+
data-rkui-live once it runs in the browser; until then the face stays hidden, holding its
|
|
3
|
+
place, and the time input works on its own.
|
|
4
|
+
|
|
5
|
+
<div class="rkui-clock">
|
|
6
|
+
<label for="t">Label</label>
|
|
7
|
+
<div class="rkui-clock-face" aria-hidden="true">
|
|
8
|
+
<svg>…</svg> (the ring and the ticks)
|
|
9
|
+
<svg class="rkui-icon rkui-clock-day-icon">…</svg> (icons/sun.svg)
|
|
10
|
+
<svg class="rkui-icon rkui-clock-night-icon">…</svg> (icons/moon.svg)
|
|
11
|
+
<span class="rkui-clock-hand rkui-clock-hand--hour">…</span>
|
|
12
|
+
<span class="rkui-clock-hand rkui-clock-hand--minute">…</span>
|
|
13
|
+
<span class="rkui-clock-hub"></span>
|
|
14
|
+
</div>
|
|
15
|
+
<input class="rkui-input" id="t" type="time" step="300" value="07:30">
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
The face's SVG is 200 units square. The hands turn, but each tag turns back by its hand's
|
|
19
|
+
angle, so it stays upright with its shadow on the light's side. */
|
|
20
|
+
|
|
21
|
+
.rkui-clock {
|
|
22
|
+
--rkui-clock-size: 15rem;
|
|
23
|
+
--rkui-clock-day: var(--rkui-sky);
|
|
24
|
+
--rkui-clock-night: var(--rkui-navy);
|
|
25
|
+
|
|
26
|
+
display: grid;
|
|
27
|
+
grid-template-columns: var(--rkui-clock-size);
|
|
28
|
+
justify-items: center;
|
|
29
|
+
gap: var(--rkui-space-2);
|
|
30
|
+
max-inline-size: 30rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.rkui-clock > label {
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Until Clock.vue runs in the browser, the face would do nothing. */
|
|
38
|
+
.rkui-clock:not([data-rkui-live]) > .rkui-clock-face {
|
|
39
|
+
visibility: hidden;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.rkui-clock-face {
|
|
43
|
+
display: grid;
|
|
44
|
+
position: relative;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
inline-size: var(--rkui-clock-size);
|
|
47
|
+
aspect-ratio: 1;
|
|
48
|
+
margin-block-end: var(--rkui-space-2);
|
|
49
|
+
border: var(--rkui-outline-width) solid var(--rkui-line-unfilled);
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
background: var(--rkui-raised);
|
|
52
|
+
box-shadow: var(--rkui-shadow);
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
touch-action: none;
|
|
55
|
+
user-select: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.rkui-clock-face > svg {
|
|
59
|
+
grid-area: 1 / 1;
|
|
60
|
+
inline-size: 100%;
|
|
61
|
+
block-size: 100%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.rkui-clock-day,
|
|
65
|
+
.rkui-clock-night {
|
|
66
|
+
fill: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.rkui-clock-day {
|
|
70
|
+
stroke: var(--rkui-clock-day);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.rkui-clock-night {
|
|
74
|
+
stroke: var(--rkui-clock-night);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.rkui-clock-ring-edge {
|
|
78
|
+
fill: none;
|
|
79
|
+
stroke: var(--rkui-line-unfilled);
|
|
80
|
+
stroke-width: var(--rkui-outline-width);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.rkui-clock-tick {
|
|
84
|
+
stroke: var(--rkui-muted);
|
|
85
|
+
stroke-width: 2px;
|
|
86
|
+
stroke-linecap: round;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.rkui-clock-tick--quarter {
|
|
90
|
+
stroke: var(--rkui-fg);
|
|
91
|
+
stroke-width: 3px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Centred on the point the face's --rkui-clock-day-x/y or --rkui-clock-night-x/y name */
|
|
95
|
+
.rkui-clock-day-icon {
|
|
96
|
+
--rkui-clock-x: var(--rkui-clock-day-x);
|
|
97
|
+
--rkui-clock-y: var(--rkui-clock-day-y);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.rkui-clock-night-icon {
|
|
101
|
+
--rkui-clock-x: var(--rkui-clock-night-x);
|
|
102
|
+
--rkui-clock-y: var(--rkui-clock-night-y);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.rkui-clock-face > .rkui-icon {
|
|
106
|
+
--rkui-icon-size: calc(var(--rkui-clock-size) * 0.1);
|
|
107
|
+
|
|
108
|
+
position: absolute;
|
|
109
|
+
left: var(--rkui-clock-x);
|
|
110
|
+
top: var(--rkui-clock-y);
|
|
111
|
+
inline-size: var(--rkui-icon-size);
|
|
112
|
+
block-size: var(--rkui-icon-size);
|
|
113
|
+
margin: calc(var(--rkui-icon-size) / -2) 0 0 calc(var(--rkui-icon-size) / -2);
|
|
114
|
+
color: var(--rkui-ink);
|
|
115
|
+
pointer-events: none;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* A hand covers the face and turns about its centre. Its bar runs from the centre to the tip. */
|
|
119
|
+
.rkui-clock-hand {
|
|
120
|
+
--rkui-hand-width: 0.375rem;
|
|
121
|
+
|
|
122
|
+
position: absolute;
|
|
123
|
+
inset: 0;
|
|
124
|
+
rotate: var(--rkui-hand-angle, 0deg);
|
|
125
|
+
transition: rotate var(--rkui-duration-spring) var(--rkui-ease-snap);
|
|
126
|
+
pointer-events: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.rkui-clock-hand--minute {
|
|
130
|
+
--rkui-hand-width: 0.25rem;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.rkui-clock-hand::before {
|
|
134
|
+
content: '';
|
|
135
|
+
position: absolute;
|
|
136
|
+
left: calc(50% - var(--rkui-hand-width) / 2);
|
|
137
|
+
bottom: 50%;
|
|
138
|
+
inline-size: var(--rkui-hand-width);
|
|
139
|
+
block-size: var(--rkui-hand-length);
|
|
140
|
+
border-radius: var(--rkui-radius-pill);
|
|
141
|
+
background: var(--rkui-fg);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* A point at the hand's tip, turning back as the hand turns, on the same timing. */
|
|
145
|
+
.rkui-clock-tip {
|
|
146
|
+
position: absolute;
|
|
147
|
+
left: 50%;
|
|
148
|
+
top: calc(50% - var(--rkui-hand-length));
|
|
149
|
+
rotate: calc(-1 * var(--rkui-hand-angle, 0deg));
|
|
150
|
+
transition: rotate var(--rkui-duration-spring) var(--rkui-ease-snap);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* The tag is the part that pops; translate is free for it, as the tip does the turning. */
|
|
154
|
+
.rkui-clock-tag {
|
|
155
|
+
--rkui-tag-size: calc(var(--rkui-clock-size) * 0.14);
|
|
156
|
+
--rkui-tag-shadow: var(--rkui-shadow);
|
|
157
|
+
--rkui-tag-shift: 0px;
|
|
158
|
+
|
|
159
|
+
display: grid;
|
|
160
|
+
place-items: center;
|
|
161
|
+
position: absolute;
|
|
162
|
+
left: calc(var(--rkui-tag-size) / -2);
|
|
163
|
+
top: calc(var(--rkui-tag-size) / -2);
|
|
164
|
+
box-sizing: border-box;
|
|
165
|
+
inline-size: var(--rkui-tag-size);
|
|
166
|
+
aspect-ratio: 1;
|
|
167
|
+
border: var(--rkui-outline-width) solid var(--rkui-line);
|
|
168
|
+
border-radius: 50%;
|
|
169
|
+
background: var(--rkui-selected);
|
|
170
|
+
color: var(--rkui-on-selected);
|
|
171
|
+
box-shadow: var(--rkui-tag-shadow);
|
|
172
|
+
font-family: var(--rkui-font-mono);
|
|
173
|
+
font-size: var(--rkui-step--1);
|
|
174
|
+
font-variant-numeric: tabular-nums;
|
|
175
|
+
font-weight: 700;
|
|
176
|
+
line-height: 1;
|
|
177
|
+
pointer-events: auto;
|
|
178
|
+
translate: calc(var(--rkui-shadow-dx) * var(--rkui-tag-shift))
|
|
179
|
+
calc(var(--rkui-shadow-dy) * var(--rkui-tag-shift));
|
|
180
|
+
transition:
|
|
181
|
+
translate var(--rkui-duration-fast) ease,
|
|
182
|
+
box-shadow var(--rkui-duration-fast) ease;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* As on an unchecked checkbox: in dark mode the outline, not the raised fill, stands out. */
|
|
186
|
+
.rkui-clock-hand--minute .rkui-clock-tag {
|
|
187
|
+
--rkui-tag-size: calc(var(--rkui-clock-size) * 0.12);
|
|
188
|
+
|
|
189
|
+
border-color: var(--rkui-line-unfilled);
|
|
190
|
+
background: var(--rkui-raised);
|
|
191
|
+
color: var(--rkui-fg);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.rkui-clock-hub {
|
|
195
|
+
position: absolute;
|
|
196
|
+
left: 50%;
|
|
197
|
+
top: 50%;
|
|
198
|
+
inline-size: 8%;
|
|
199
|
+
aspect-ratio: 1;
|
|
200
|
+
margin: -4% 0 0 -4%;
|
|
201
|
+
border-radius: 50%;
|
|
202
|
+
background: var(--rkui-fg);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* States */
|
|
206
|
+
|
|
207
|
+
@media (hover: hover) {
|
|
208
|
+
.rkui-clock-tag:hover {
|
|
209
|
+
--rkui-tag-shadow: var(--rkui-shadow-hover);
|
|
210
|
+
--rkui-tag-shift: calc(-1 * var(--rkui-lift-offset));
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.rkui-clock-hand[data-grabbed] {
|
|
215
|
+
z-index: 1;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.rkui-clock-hand[data-grabbed] .rkui-clock-tag {
|
|
219
|
+
--rkui-tag-shadow: var(--rkui-shadow-pressed);
|
|
220
|
+
--rkui-tag-shift: var(--rkui-press-offset);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.rkui-clock:has(> input:disabled) > .rkui-clock-face {
|
|
224
|
+
opacity: 0.45;
|
|
225
|
+
box-shadow: none;
|
|
226
|
+
cursor: not-allowed;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.rkui-clock:has(> input:disabled) .rkui-clock-tag {
|
|
230
|
+
--rkui-tag-shadow: none;
|
|
231
|
+
--rkui-tag-shift: 0px;
|
|
232
|
+
|
|
233
|
+
pointer-events: none;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* Forced colours: the SVG and the hands keep their own colours, so the time stays visible. */
|
|
237
|
+
@media (forced-colors: active) {
|
|
238
|
+
.rkui-clock-face > svg,
|
|
239
|
+
.rkui-clock-hand::before,
|
|
240
|
+
.rkui-clock-hub {
|
|
241
|
+
forced-color-adjust: none;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.rkui-clock-day,
|
|
245
|
+
.rkui-clock-night {
|
|
246
|
+
stroke: Canvas;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.rkui-clock-ring-edge,
|
|
250
|
+
.rkui-clock-tick {
|
|
251
|
+
stroke: CanvasText;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.rkui-clock-hand::before,
|
|
255
|
+
.rkui-clock-hub {
|
|
256
|
+
background: CanvasText;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
A highlighted code block: rkui's code-block markup around Shiki's highlighting, with the syntax
|
|
3
|
+
colours taken from the --rkui-code-* tokens. The default slot is the code, as text, trimmed and
|
|
4
|
+
highlighted when the page is built, on the server. Vue, Astro and MDX all tidy the white space in
|
|
5
|
+
text written between the tags, so code longer than a line goes in as a string, which they leave
|
|
6
|
+
alone: `{{ code }}` in a `.vue` file, `{code}` or {`…`} in Astro and MDX. `class`, `style` and
|
|
7
|
+
other attributes go on the `<figure>`. With no `label` there is no title area: the copy button
|
|
8
|
+
sits in the code's top-right corner. The copy button needs `client:visible` in an Astro page;
|
|
9
|
+
without it the button stays hidden.
|
|
10
|
+
|
|
11
|
+
The caption starts with a mark for the language, the first of these that exists:
|
|
12
|
+
1. the `logo` slot: the site's logo for the language (an inline SVG with
|
|
13
|
+
class="rkui-icon rkui-icon--small" and aria-hidden="true"), e.g.
|
|
14
|
+
<PythonLogo slot="logo" class="…" /> in Astro, or
|
|
15
|
+
<template #logo><PythonLogo class="…" /></template> in Vue
|
|
16
|
+
2. the library's Phosphor file-type icon for the language (FILE_ICONS below)
|
|
17
|
+
3. the file extension as grey text, e.g. "JS" (FILE_EXTENSIONS below), unless it would
|
|
18
|
+
repeat the label, as for JSON
|
|
19
|
+
|
|
20
|
+
@example
|
|
21
|
+
<CodeBlock client:visible lang="python" label="Python" copy="hover">{code}</CodeBlock>
|
|
22
|
+
<CodeBlock lang="shell" copy="never">npm install @oneonefour/rkui</CodeBlock>
|
|
23
|
+
-->
|
|
24
|
+
<script setup lang="ts">
|
|
25
|
+
import {
|
|
26
|
+
computed,
|
|
27
|
+
onBeforeUnmount,
|
|
28
|
+
onMounted,
|
|
29
|
+
onServerPrefetch,
|
|
30
|
+
ref,
|
|
31
|
+
useSlots,
|
|
32
|
+
type Component,
|
|
33
|
+
} from 'vue'
|
|
34
|
+
import { slotText } from '../../shared/slot-html'
|
|
35
|
+
import CopyIcon from '@oneonefour/rkui/icons/copy.vue'
|
|
36
|
+
import FileCIcon from '@oneonefour/rkui/icons/file-c.vue'
|
|
37
|
+
import FileCppIcon from '@oneonefour/rkui/icons/file-cpp.vue'
|
|
38
|
+
import FileCSharpIcon from '@oneonefour/rkui/icons/file-c-sharp.vue'
|
|
39
|
+
import FileCssIcon from '@oneonefour/rkui/icons/file-css.vue'
|
|
40
|
+
import FileHtmlIcon from '@oneonefour/rkui/icons/file-html.vue'
|
|
41
|
+
import FileJsIcon from '@oneonefour/rkui/icons/file-js.vue'
|
|
42
|
+
import FileJsxIcon from '@oneonefour/rkui/icons/file-jsx.vue'
|
|
43
|
+
import FileMdIcon from '@oneonefour/rkui/icons/file-md.vue'
|
|
44
|
+
import FilePyIcon from '@oneonefour/rkui/icons/file-py.vue'
|
|
45
|
+
import FileRsIcon from '@oneonefour/rkui/icons/file-rs.vue'
|
|
46
|
+
import FileSqlIcon from '@oneonefour/rkui/icons/file-sql.vue'
|
|
47
|
+
import FileTsIcon from '@oneonefour/rkui/icons/file-ts.vue'
|
|
48
|
+
import FileTsxIcon from '@oneonefour/rkui/icons/file-tsx.vue'
|
|
49
|
+
import FileVueIcon from '@oneonefour/rkui/icons/file-vue.vue'
|
|
50
|
+
|
|
51
|
+
interface Props {
|
|
52
|
+
/** A Shiki language id, e.g. "python". */
|
|
53
|
+
lang: string
|
|
54
|
+
/** The language name shown in the caption; no caption (no title area) when left out. */
|
|
55
|
+
label?: string
|
|
56
|
+
/**
|
|
57
|
+
* When the copy button shows: 'always', 'hover' (it rolls in from the top while the pointer is
|
|
58
|
+
* over the block or focus is inside it, and stays on a touch screen) or 'never'. Every value but
|
|
59
|
+
* 'never' needs JavaScript (`client:visible`); 'always' when left out.
|
|
60
|
+
*/
|
|
61
|
+
copy?: 'always' | 'hover' | 'never'
|
|
62
|
+
/** Puts the caption in a darker strip, like an editor tab, on a flat panel; false when left out. */
|
|
63
|
+
editor?: boolean
|
|
64
|
+
/**
|
|
65
|
+
* Keeps the scrollbar of a long line visible, with no dots, as Scroll's `bar` does (the class
|
|
66
|
+
* `rkui-scroll--bar` on the `<pre>`); dots and a hover scrollbar when left out.
|
|
67
|
+
*/
|
|
68
|
+
bar?: boolean
|
|
69
|
+
/**
|
|
70
|
+
* The look of the dots at the edges of a long line, written as `data-rkui-dots` on the
|
|
71
|
+
* `<figure>`: 'plain', or 'pill' for dots in a raised pill; the page's setting when left out.
|
|
72
|
+
*/
|
|
73
|
+
dots?: 'plain' | 'pill'
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const { lang, label, copy = 'always', editor = false, bar, dots } = defineProps<Props>()
|
|
77
|
+
|
|
78
|
+
/** Phosphor file-type icons by Shiki language id or common alias. */
|
|
79
|
+
const FILE_ICONS: Record<string, Component> = {
|
|
80
|
+
c: FileCIcon,
|
|
81
|
+
cpp: FileCppIcon,
|
|
82
|
+
'c++': FileCppIcon,
|
|
83
|
+
csharp: FileCSharpIcon,
|
|
84
|
+
'c#': FileCSharpIcon,
|
|
85
|
+
css: FileCssIcon,
|
|
86
|
+
html: FileHtmlIcon,
|
|
87
|
+
javascript: FileJsIcon,
|
|
88
|
+
js: FileJsIcon,
|
|
89
|
+
jsx: FileJsxIcon,
|
|
90
|
+
markdown: FileMdIcon,
|
|
91
|
+
md: FileMdIcon,
|
|
92
|
+
python: FilePyIcon,
|
|
93
|
+
py: FilePyIcon,
|
|
94
|
+
rust: FileRsIcon,
|
|
95
|
+
rs: FileRsIcon,
|
|
96
|
+
sql: FileSqlIcon,
|
|
97
|
+
typescript: FileTsIcon,
|
|
98
|
+
ts: FileTsIcon,
|
|
99
|
+
tsx: FileTsxIcon,
|
|
100
|
+
vue: FileVueIcon,
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** File extensions for Shiki language ids whose id is not the extension. */
|
|
104
|
+
const FILE_EXTENSIONS: Record<string, string> = {
|
|
105
|
+
'fortran-fixed-form': 'f',
|
|
106
|
+
'fortran-free-form': 'f90',
|
|
107
|
+
julia: 'jl',
|
|
108
|
+
latex: 'tex',
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const COPIED = 'Copied'
|
|
112
|
+
const FAILED = "Couldn't copy"
|
|
113
|
+
const RESET_DELAY_MS = 2000
|
|
114
|
+
|
|
115
|
+
const FileIcon = computed<Component | undefined>(() => FILE_ICONS[lang])
|
|
116
|
+
const extension = computed(() => FILE_EXTENSIONS[lang] ?? lang)
|
|
117
|
+
|
|
118
|
+
const slots = useSlots()
|
|
119
|
+
/**
|
|
120
|
+
* The mark before the label, the first that applies: the site's logo, the library's file-type
|
|
121
|
+
* icon, the extension as text, or nothing when the extension would just repeat the label (JSON).
|
|
122
|
+
* A function, not a `computed`, because it reads the slots, which aren't reactive.
|
|
123
|
+
*/
|
|
124
|
+
function mark(): 'logo' | 'icon' | 'extension' | 'none' {
|
|
125
|
+
if (slots.logo) return 'logo'
|
|
126
|
+
if (FileIcon.value) return 'icon'
|
|
127
|
+
if (extension.value.toLowerCase() !== label?.toLowerCase()) return 'extension'
|
|
128
|
+
return 'none'
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The code: the default slot's text, trimmed of the white space the page's own formatting puts
|
|
133
|
+
* around it. A function, not a `computed`, because it reads the slot, which isn't reactive.
|
|
134
|
+
*/
|
|
135
|
+
function code(): string {
|
|
136
|
+
return slotText(slots.default?.() ?? []).trim()
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// The highlighted lines are made on the server: Shiki and the language load before the block
|
|
140
|
+
// renders, and the slot is highlighted as it renders. In the browser the block renders the code as
|
|
141
|
+
// plain text: a block first rendered there shows it unhighlighted, and one that hydrates keeps the
|
|
142
|
+
// server's lines, because Vue leaves an element whose text matches as it is.
|
|
143
|
+
let highlight: ((code: string) => string) | undefined
|
|
144
|
+
if (import.meta.env.SSR) {
|
|
145
|
+
onServerPrefetch(async () => {
|
|
146
|
+
const { highlighter } = await import('./highlight.js')
|
|
147
|
+
highlight = await highlighter(lang)
|
|
148
|
+
})
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Set once the block runs in the browser; until then code.css hides the copy button.
|
|
152
|
+
const live = ref(false)
|
|
153
|
+
/** What the button and the screen-reader announcement say after a copy; nothing at rest. */
|
|
154
|
+
const message = ref('')
|
|
155
|
+
let resetTimer: number | undefined
|
|
156
|
+
onMounted(() => (live.value = true))
|
|
157
|
+
onBeforeUnmount(() => clearTimeout(resetTimer))
|
|
158
|
+
|
|
159
|
+
/** Copies the code, and says whether that worked for a moment. */
|
|
160
|
+
async function copyCode() {
|
|
161
|
+
try {
|
|
162
|
+
await navigator.clipboard.writeText(code())
|
|
163
|
+
message.value = COPIED
|
|
164
|
+
} catch {
|
|
165
|
+
// No clipboard (an insecure page or an old browser) or permission denied.
|
|
166
|
+
message.value = FAILED
|
|
167
|
+
}
|
|
168
|
+
clearTimeout(resetTimer)
|
|
169
|
+
resetTimer = window.setTimeout(() => (message.value = ''), RESET_DELAY_MS)
|
|
170
|
+
}
|
|
171
|
+
</script>
|
|
172
|
+
|
|
173
|
+
<template>
|
|
174
|
+
<figure
|
|
175
|
+
:class="[
|
|
176
|
+
'rkui-code',
|
|
177
|
+
{ 'rkui-code--editor': editor, 'rkui-code--copy-hover': copy === 'hover' },
|
|
178
|
+
]"
|
|
179
|
+
:data-rkui-live="live ? '' : undefined"
|
|
180
|
+
:data-rkui-dots="dots"
|
|
181
|
+
>
|
|
182
|
+
<figcaption v-if="label" class="rkui-code-header">
|
|
183
|
+
<span class="rkui-code-lang">
|
|
184
|
+
<slot v-if="mark() === 'logo'" name="logo" />
|
|
185
|
+
<component
|
|
186
|
+
:is="FileIcon"
|
|
187
|
+
v-if="mark() === 'icon'"
|
|
188
|
+
class="rkui-icon rkui-icon--small"
|
|
189
|
+
aria-hidden="true"
|
|
190
|
+
/>
|
|
191
|
+
<span v-if="mark() === 'extension'" aria-hidden="true">{{ extension }}</span>
|
|
192
|
+
{{ label }}
|
|
193
|
+
</span>
|
|
194
|
+
</figcaption>
|
|
195
|
+
<pre
|
|
196
|
+
:class="['rkui-scroll', { 'rkui-scroll--bar': bar }]"
|
|
197
|
+
tabindex="0"
|
|
198
|
+
><code v-if="highlight" v-html="highlight(code())" /><code v-else>{{ code() }}</code></pre>
|
|
199
|
+
<button
|
|
200
|
+
v-if="copy !== 'never'"
|
|
201
|
+
type="button"
|
|
202
|
+
class="rkui-button rkui-button--small rkui-code-copy"
|
|
203
|
+
@click="copyCode"
|
|
204
|
+
>
|
|
205
|
+
<CopyIcon class="rkui-icon rkui-icon--small" />
|
|
206
|
+
<span class="rkui-code-copy-label">{{ message || 'Copy' }}</span>
|
|
207
|
+
</button>
|
|
208
|
+
<span class="rkui-visually-hidden" aria-live="polite">{{ message }}</span>
|
|
209
|
+
</figure>
|
|
210
|
+
</template>
|