prime-ui-kit 0.9.2 → 0.10.0
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 +18 -9
- package/THIRD_PARTY_NOTICES +76 -0
- package/dist/chunks/{chunk-ZEFCDEEQ.js → chunk-4TRNUP45.js} +1085 -526
- package/dist/chunks/chunk-EJ2ZVQYL.js +5805 -0
- package/dist/chunks/chunk-GFKDZFQR.js +1208 -0
- package/dist/chunks/{chunk-LXGRKN34.js → chunk-K4FACFQ2.js} +776 -484
- package/dist/chunks/{chunk-IQELQNMR.js → chunk-T7CLQXGB.js} +20 -5
- package/dist/color-picker.js +3 -2
- package/dist/components/button/Button.d.ts +24 -4
- package/dist/components/card/Card.d.ts +1 -1
- package/dist/components/code-block/CodeBlock.d.ts +1 -1
- package/dist/components/color-picker/ColorPicker.d.ts +1 -1
- package/dist/components/data-table/Row.d.ts +3 -1
- package/dist/components/data-table/rows.d.ts +4 -0
- package/dist/components/digit-input/DigitInput.d.ts +6 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/input/Input.d.ts +16 -1
- package/dist/components/input/passwordStrength.d.ts +9 -0
- package/dist/components/progress-bar/ProgressBar.d.ts +16 -1
- package/dist/components/sparkline/Sparkline.d.ts +26 -0
- package/dist/hooks/useEdgeOverflow.d.ts +4 -0
- package/dist/icon-set.d.ts +501 -0
- package/dist/icons/Icon.d.ts +10 -18
- package/dist/icons/glyph.d.ts +40 -0
- package/dist/icons/glyphs/a-arrow-down.d.ts +2 -0
- package/dist/icons/glyphs/a-arrow-up.d.ts +2 -0
- package/dist/icons/glyphs/accessibility.d.ts +2 -0
- package/dist/icons/glyphs/activity.d.ts +2 -0
- package/dist/icons/glyphs/air-vent.d.ts +2 -0
- package/dist/icons/glyphs/airplay.d.ts +2 -0
- package/dist/icons/glyphs/alarm-clock-check.d.ts +2 -0
- package/dist/icons/glyphs/alarm-clock-minus.d.ts +2 -0
- package/dist/icons/glyphs/alarm-clock-plus.d.ts +2 -0
- package/dist/icons/glyphs/alarm-clock.d.ts +2 -0
- package/dist/icons/glyphs/alarm-smoke.d.ts +2 -0
- package/dist/icons/glyphs/align-horizontal-space-around.d.ts +2 -0
- package/dist/icons/glyphs/align-vertical-space-around.d.ts +2 -0
- package/dist/icons/glyphs/ambulance.d.ts +2 -0
- package/dist/icons/glyphs/angry.d.ts +2 -0
- package/dist/icons/glyphs/annoyed.d.ts +2 -0
- package/dist/icons/glyphs/archive.d.ts +2 -0
- package/dist/icons/glyphs/arrow-big-down-dash.d.ts +2 -0
- package/dist/icons/glyphs/arrow-big-down.d.ts +2 -0
- package/dist/icons/glyphs/arrow-big-left-dash.d.ts +2 -0
- package/dist/icons/glyphs/arrow-big-left.d.ts +2 -0
- package/dist/icons/glyphs/arrow-big-right-dash.d.ts +2 -0
- package/dist/icons/glyphs/arrow-big-right.d.ts +2 -0
- package/dist/icons/glyphs/arrow-big-up-dash.d.ts +2 -0
- package/dist/icons/glyphs/arrow-big-up.d.ts +2 -0
- package/dist/icons/glyphs/arrow-down-0-1.d.ts +2 -0
- package/dist/icons/glyphs/arrow-down-1-0.d.ts +2 -0
- package/dist/icons/glyphs/arrow-down-a-z.d.ts +2 -0
- package/dist/icons/glyphs/arrow-down-left.d.ts +2 -0
- package/dist/icons/glyphs/arrow-down-right.d.ts +2 -0
- package/dist/icons/glyphs/arrow-down-z-a.d.ts +2 -0
- package/dist/icons/glyphs/arrow-down.d.ts +2 -0
- package/dist/icons/glyphs/arrow-left.d.ts +2 -0
- package/dist/icons/glyphs/arrow-right.d.ts +2 -0
- package/dist/icons/glyphs/arrow-up-down.d.ts +2 -0
- package/dist/icons/glyphs/arrow-up-left.d.ts +2 -0
- package/dist/icons/glyphs/arrow-up-right.d.ts +2 -0
- package/dist/icons/glyphs/arrow-up.d.ts +2 -0
- package/dist/icons/glyphs/at-sign.d.ts +2 -0
- package/dist/icons/glyphs/atom.d.ts +2 -0
- package/dist/icons/glyphs/audio-lines.d.ts +2 -0
- package/dist/icons/glyphs/axe.d.ts +2 -0
- package/dist/icons/glyphs/badge-alert.d.ts +2 -0
- package/dist/icons/glyphs/badge-percent.d.ts +2 -0
- package/dist/icons/glyphs/ban.d.ts +2 -0
- package/dist/icons/glyphs/banana.d.ts +2 -0
- package/dist/icons/glyphs/battery-charging.d.ts +2 -0
- package/dist/icons/glyphs/battery-full.d.ts +2 -0
- package/dist/icons/glyphs/battery-low.d.ts +2 -0
- package/dist/icons/glyphs/battery-medium.d.ts +2 -0
- package/dist/icons/glyphs/battery-plus.d.ts +2 -0
- package/dist/icons/glyphs/battery-warning.d.ts +2 -0
- package/dist/icons/glyphs/battery.d.ts +2 -0
- package/dist/icons/glyphs/bell-electric.d.ts +2 -0
- package/dist/icons/glyphs/bell.d.ts +2 -0
- package/dist/icons/glyphs/biceps-flexed.d.ts +2 -0
- package/dist/icons/glyphs/binary.d.ts +2 -0
- package/dist/icons/glyphs/blocks.d.ts +2 -0
- package/dist/icons/glyphs/bluetooth-connected.d.ts +2 -0
- package/dist/icons/glyphs/bluetooth-off.d.ts +2 -0
- package/dist/icons/glyphs/bluetooth-searching.d.ts +2 -0
- package/dist/icons/glyphs/bluetooth.d.ts +2 -0
- package/dist/icons/glyphs/bold.d.ts +2 -0
- package/dist/icons/glyphs/bone.d.ts +2 -0
- package/dist/icons/glyphs/book-open.d.ts +2 -0
- package/dist/icons/glyphs/book-text.d.ts +2 -0
- package/dist/icons/glyphs/bookmark-check.d.ts +2 -0
- package/dist/icons/glyphs/bookmark-minus.d.ts +2 -0
- package/dist/icons/glyphs/bookmark-plus.d.ts +2 -0
- package/dist/icons/glyphs/bookmark-x.d.ts +2 -0
- package/dist/icons/glyphs/bookmark.d.ts +2 -0
- package/dist/icons/glyphs/bot-message-square.d.ts +2 -0
- package/dist/icons/glyphs/bot.d.ts +2 -0
- package/dist/icons/glyphs/box.d.ts +2 -0
- package/dist/icons/glyphs/boxes.d.ts +2 -0
- package/dist/icons/glyphs/brain.d.ts +2 -0
- package/dist/icons/glyphs/briefcase-business.d.ts +2 -0
- package/dist/icons/glyphs/calendar-check-2.d.ts +2 -0
- package/dist/icons/glyphs/calendar-check.d.ts +2 -0
- package/dist/icons/glyphs/calendar-cog.d.ts +2 -0
- package/dist/icons/glyphs/calendar-days.d.ts +2 -0
- package/dist/icons/glyphs/calendar.d.ts +2 -0
- package/dist/icons/glyphs/car.d.ts +2 -0
- package/dist/icons/glyphs/cast.d.ts +2 -0
- package/dist/icons/glyphs/cctv.d.ts +2 -0
- package/dist/icons/glyphs/chart-bar-decreasing.d.ts +2 -0
- package/dist/icons/glyphs/chart-bar-increasing.d.ts +2 -0
- package/dist/icons/glyphs/chart-column-decreasing.d.ts +2 -0
- package/dist/icons/glyphs/chart-column-increasing.d.ts +2 -0
- package/dist/icons/glyphs/chart-column.d.ts +2 -0
- package/dist/icons/glyphs/chart-line.d.ts +2 -0
- package/dist/icons/glyphs/chart-no-axes-column-decreasing.d.ts +2 -0
- package/dist/icons/glyphs/chart-no-axes-column-increasing.d.ts +2 -0
- package/dist/icons/glyphs/chart-pie.d.ts +2 -0
- package/dist/icons/glyphs/chart-scatter.d.ts +2 -0
- package/dist/icons/glyphs/chart-spline.d.ts +2 -0
- package/dist/icons/glyphs/check-check.d.ts +2 -0
- package/dist/icons/glyphs/check.d.ts +2 -0
- package/dist/icons/glyphs/chess-bishop.d.ts +2 -0
- package/dist/icons/glyphs/chess-king.d.ts +2 -0
- package/dist/icons/glyphs/chess-knight.d.ts +2 -0
- package/dist/icons/glyphs/chess-pawn.d.ts +2 -0
- package/dist/icons/glyphs/chevron-down.d.ts +2 -0
- package/dist/icons/glyphs/chevron-first.d.ts +2 -0
- package/dist/icons/glyphs/chevron-left.d.ts +2 -0
- package/dist/icons/glyphs/chevron-right.d.ts +2 -0
- package/dist/icons/glyphs/chevron-up.d.ts +2 -0
- package/dist/icons/glyphs/chevrons-down-up.d.ts +2 -0
- package/dist/icons/glyphs/chevrons-left-right.d.ts +2 -0
- package/dist/icons/glyphs/chevrons-left.d.ts +2 -0
- package/dist/icons/glyphs/chevrons-right-left.d.ts +2 -0
- package/dist/icons/glyphs/chevrons-up-down.d.ts +2 -0
- package/dist/icons/glyphs/chromium.d.ts +2 -0
- package/dist/icons/glyphs/cigarette-off.d.ts +2 -0
- package/dist/icons/glyphs/cigarette.d.ts +2 -0
- package/dist/icons/glyphs/circle-check.d.ts +2 -0
- package/dist/icons/glyphs/circle-chevron-down.d.ts +2 -0
- package/dist/icons/glyphs/circle-chevron-left.d.ts +2 -0
- package/dist/icons/glyphs/circle-chevron-right.d.ts +2 -0
- package/dist/icons/glyphs/circle-chevron-up.d.ts +2 -0
- package/dist/icons/glyphs/circle-dashed.d.ts +2 -0
- package/dist/icons/glyphs/circle-dollar-sign.d.ts +2 -0
- package/dist/icons/glyphs/circle-gauge.d.ts +2 -0
- package/dist/icons/glyphs/circle-question-mark.d.ts +2 -0
- package/dist/icons/glyphs/circle-x.d.ts +2 -0
- package/dist/icons/glyphs/circle.d.ts +2 -0
- package/dist/icons/glyphs/clapperboard.d.ts +2 -0
- package/dist/icons/glyphs/clipboard-check.d.ts +2 -0
- package/dist/icons/glyphs/clock.d.ts +2 -0
- package/dist/icons/glyphs/cloud-backup.d.ts +2 -0
- package/dist/icons/glyphs/cloud-cog.d.ts +2 -0
- package/dist/icons/glyphs/cloud-download.d.ts +2 -0
- package/dist/icons/glyphs/cloud-lightning.d.ts +2 -0
- package/dist/icons/glyphs/cloud-off.d.ts +2 -0
- package/dist/icons/glyphs/cloud-rain-wind.d.ts +2 -0
- package/dist/icons/glyphs/cloud-rain.d.ts +2 -0
- package/dist/icons/glyphs/cloud-snow.d.ts +2 -0
- package/dist/icons/glyphs/cloud-sun.d.ts +2 -0
- package/dist/icons/glyphs/cloud-sync.d.ts +2 -0
- package/dist/icons/glyphs/cloud-upload.d.ts +2 -0
- package/dist/icons/glyphs/code-xml.d.ts +2 -0
- package/dist/icons/glyphs/coffee.d.ts +2 -0
- package/dist/icons/glyphs/cog.d.ts +2 -0
- package/dist/icons/glyphs/compass.d.ts +2 -0
- package/dist/icons/glyphs/concierge-bell.d.ts +2 -0
- package/dist/icons/glyphs/construction.d.ts +2 -0
- package/dist/icons/glyphs/contrast.d.ts +2 -0
- package/dist/icons/glyphs/cooking-pot.d.ts +2 -0
- package/dist/icons/glyphs/copy.d.ts +2 -0
- package/dist/icons/glyphs/corner-down-left.d.ts +2 -0
- package/dist/icons/glyphs/corner-down-right.d.ts +2 -0
- package/dist/icons/glyphs/corner-left-down.d.ts +2 -0
- package/dist/icons/glyphs/corner-left-up.d.ts +2 -0
- package/dist/icons/glyphs/corner-right-down.d.ts +2 -0
- package/dist/icons/glyphs/corner-right-up.d.ts +2 -0
- package/dist/icons/glyphs/corner-up-left.d.ts +2 -0
- package/dist/icons/glyphs/corner-up-right.d.ts +2 -0
- package/dist/icons/glyphs/cpu.d.ts +2 -0
- package/dist/icons/glyphs/credit-card.d.ts +2 -0
- package/dist/icons/glyphs/cup-soda.d.ts +2 -0
- package/dist/icons/glyphs/database-backup.d.ts +2 -0
- package/dist/icons/glyphs/delete.d.ts +2 -0
- package/dist/icons/glyphs/disc-3.d.ts +2 -0
- package/dist/icons/glyphs/dollar-sign.d.ts +2 -0
- package/dist/icons/glyphs/download.d.ts +2 -0
- package/dist/icons/glyphs/dribbble.d.ts +2 -0
- package/dist/icons/glyphs/droplet.d.ts +2 -0
- package/dist/icons/glyphs/drum.d.ts +2 -0
- package/dist/icons/glyphs/earth.d.ts +2 -0
- package/dist/icons/glyphs/ellipsis.d.ts +2 -0
- package/dist/icons/glyphs/euro.d.ts +2 -0
- package/dist/icons/glyphs/ev-charger.d.ts +2 -0
- package/dist/icons/glyphs/expand.d.ts +2 -0
- package/dist/icons/glyphs/external-link.d.ts +2 -0
- package/dist/icons/glyphs/eye-off.d.ts +2 -0
- package/dist/icons/glyphs/eye.d.ts +2 -0
- package/dist/icons/glyphs/facebook.d.ts +2 -0
- package/dist/icons/glyphs/fan.d.ts +2 -0
- package/dist/icons/glyphs/feather.d.ts +2 -0
- package/dist/icons/glyphs/figma.d.ts +2 -0
- package/dist/icons/glyphs/file-chart-line.d.ts +2 -0
- package/dist/icons/glyphs/file-check-corner.d.ts +2 -0
- package/dist/icons/glyphs/file-check.d.ts +2 -0
- package/dist/icons/glyphs/file-cog.d.ts +2 -0
- package/dist/icons/glyphs/file-pen-line.d.ts +2 -0
- package/dist/icons/glyphs/file-stack.d.ts +2 -0
- package/dist/icons/glyphs/file-text.d.ts +2 -0
- package/dist/icons/glyphs/fingerprint-pattern.d.ts +2 -0
- package/dist/icons/glyphs/fish-symbol.d.ts +2 -0
- package/dist/icons/glyphs/flame.d.ts +2 -0
- package/dist/icons/glyphs/flask-conical.d.ts +2 -0
- package/dist/icons/glyphs/folder-archive.d.ts +2 -0
- package/dist/icons/glyphs/folder-check.d.ts +2 -0
- package/dist/icons/glyphs/folder-clock.d.ts +2 -0
- package/dist/icons/glyphs/folder-code.d.ts +2 -0
- package/dist/icons/glyphs/folder-cog.d.ts +2 -0
- package/dist/icons/glyphs/folder-dot.d.ts +2 -0
- package/dist/icons/glyphs/folder-down.d.ts +2 -0
- package/dist/icons/glyphs/folder-git-2.d.ts +2 -0
- package/dist/icons/glyphs/folder-git.d.ts +2 -0
- package/dist/icons/glyphs/folder-heart.d.ts +2 -0
- package/dist/icons/glyphs/folder-input.d.ts +2 -0
- package/dist/icons/glyphs/folder-kanban.d.ts +2 -0
- package/dist/icons/glyphs/folder-key.d.ts +2 -0
- package/dist/icons/glyphs/folder-lock.d.ts +2 -0
- package/dist/icons/glyphs/folder-minus.d.ts +2 -0
- package/dist/icons/glyphs/folder-open.d.ts +2 -0
- package/dist/icons/glyphs/folder-output.d.ts +2 -0
- package/dist/icons/glyphs/folder-plus.d.ts +2 -0
- package/dist/icons/glyphs/folder-root.d.ts +2 -0
- package/dist/icons/glyphs/folder-sync.d.ts +2 -0
- package/dist/icons/glyphs/folder-tree.d.ts +2 -0
- package/dist/icons/glyphs/folder-up.d.ts +2 -0
- package/dist/icons/glyphs/folder-x.d.ts +2 -0
- package/dist/icons/glyphs/folders.d.ts +2 -0
- package/dist/icons/glyphs/frame.d.ts +2 -0
- package/dist/icons/glyphs/frown.d.ts +2 -0
- package/dist/icons/glyphs/gallery-horizontal-end.d.ts +2 -0
- package/dist/icons/glyphs/gallery-thumbnails.d.ts +2 -0
- package/dist/icons/glyphs/gallery-vertical-end.d.ts +2 -0
- package/dist/icons/glyphs/gauge.d.ts +2 -0
- package/dist/icons/glyphs/gavel.d.ts +2 -0
- package/dist/icons/glyphs/georgian-lari.d.ts +2 -0
- package/dist/icons/glyphs/git-branch.d.ts +2 -0
- package/dist/icons/glyphs/git-commit-horizontal.d.ts +2 -0
- package/dist/icons/glyphs/git-commit-vertical.d.ts +2 -0
- package/dist/icons/glyphs/git-compare-arrows.d.ts +2 -0
- package/dist/icons/glyphs/git-compare.d.ts +2 -0
- package/dist/icons/glyphs/git-fork.d.ts +2 -0
- package/dist/icons/glyphs/git-graph.d.ts +2 -0
- package/dist/icons/glyphs/git-merge.d.ts +2 -0
- package/dist/icons/glyphs/git-pull-request-closed.d.ts +2 -0
- package/dist/icons/glyphs/git-pull-request-create.d.ts +2 -0
- package/dist/icons/glyphs/git-pull-request.d.ts +2 -0
- package/dist/icons/glyphs/github.d.ts +2 -0
- package/dist/icons/glyphs/gitlab.d.ts +2 -0
- package/dist/icons/glyphs/graduation-cap.d.ts +2 -0
- package/dist/icons/glyphs/grip-horizontal.d.ts +2 -0
- package/dist/icons/glyphs/grip-vertical.d.ts +2 -0
- package/dist/icons/glyphs/grip.d.ts +2 -0
- package/dist/icons/glyphs/hammer.d.ts +2 -0
- package/dist/icons/glyphs/hand-coins.d.ts +2 -0
- package/dist/icons/glyphs/hand-fist.d.ts +2 -0
- package/dist/icons/glyphs/hand-grab.d.ts +2 -0
- package/dist/icons/glyphs/hand-heart.d.ts +2 -0
- package/dist/icons/glyphs/hand-helping.d.ts +2 -0
- package/dist/icons/glyphs/hand-metal.d.ts +2 -0
- package/dist/icons/glyphs/hand.d.ts +2 -0
- package/dist/icons/glyphs/hard-drive-download.d.ts +2 -0
- package/dist/icons/glyphs/hard-drive-upload.d.ts +2 -0
- package/dist/icons/glyphs/hard-drive.d.ts +2 -0
- package/dist/icons/glyphs/hat-glasses.d.ts +2 -0
- package/dist/icons/glyphs/heart-handshake.d.ts +2 -0
- package/dist/icons/glyphs/heart-pulse.d.ts +2 -0
- package/dist/icons/glyphs/heart.d.ts +2 -0
- package/dist/icons/glyphs/history.d.ts +2 -0
- package/dist/icons/glyphs/hourglass.d.ts +2 -0
- package/dist/icons/glyphs/house.d.ts +2 -0
- package/dist/icons/glyphs/id-card.d.ts +2 -0
- package/dist/icons/glyphs/image.d.ts +2 -0
- package/dist/icons/glyphs/inbox.d.ts +2 -0
- package/dist/icons/glyphs/indian-rupee.d.ts +2 -0
- package/dist/icons/glyphs/info.d.ts +2 -0
- package/dist/icons/glyphs/instagram.d.ts +2 -0
- package/dist/icons/glyphs/italic.d.ts +2 -0
- package/dist/icons/glyphs/japanese-yen.d.ts +2 -0
- package/dist/icons/glyphs/key-round.d.ts +2 -0
- package/dist/icons/glyphs/key-square.d.ts +2 -0
- package/dist/icons/glyphs/key.d.ts +2 -0
- package/dist/icons/glyphs/keyboard.d.ts +2 -0
- package/dist/icons/glyphs/languages.d.ts +2 -0
- package/dist/icons/glyphs/laptop-minimal-check.d.ts +2 -0
- package/dist/icons/glyphs/laugh.d.ts +2 -0
- package/dist/icons/glyphs/layers.d.ts +2 -0
- package/dist/icons/glyphs/layout-dashboard.d.ts +2 -0
- package/dist/icons/glyphs/layout-grid.d.ts +2 -0
- package/dist/icons/glyphs/layout-panel-top.d.ts +2 -0
- package/dist/icons/glyphs/leaf.d.ts +2 -0
- package/dist/icons/glyphs/leafy-green.d.ts +2 -0
- package/dist/icons/glyphs/link-2.d.ts +2 -0
- package/dist/icons/glyphs/link.d.ts +2 -0
- package/dist/icons/glyphs/linkedin.d.ts +2 -0
- package/dist/icons/glyphs/list-filter.d.ts +2 -0
- package/dist/icons/glyphs/list-todo.d.ts +2 -0
- package/dist/icons/glyphs/list.d.ts +2 -0
- package/dist/icons/glyphs/loader-circle.d.ts +2 -0
- package/dist/icons/glyphs/loader-pinwheel.d.ts +2 -0
- package/dist/icons/glyphs/loader.d.ts +2 -0
- package/dist/icons/glyphs/lock-keyhole-open.d.ts +2 -0
- package/dist/icons/glyphs/lock-keyhole.d.ts +2 -0
- package/dist/icons/glyphs/lock-open.d.ts +2 -0
- package/dist/icons/glyphs/lock.d.ts +2 -0
- package/dist/icons/glyphs/log-in.d.ts +2 -0
- package/dist/icons/glyphs/log-out.d.ts +2 -0
- package/dist/icons/glyphs/mail-check.d.ts +2 -0
- package/dist/icons/glyphs/mail.d.ts +2 -0
- package/dist/icons/glyphs/mailbox.d.ts +2 -0
- package/dist/icons/glyphs/map-pin-check-inside.d.ts +2 -0
- package/dist/icons/glyphs/map-pin-check.d.ts +2 -0
- package/dist/icons/glyphs/map-pin-house.d.ts +2 -0
- package/dist/icons/glyphs/map-pin-minus-inside.d.ts +2 -0
- package/dist/icons/glyphs/map-pin-minus.d.ts +2 -0
- package/dist/icons/glyphs/map-pin-off.d.ts +2 -0
- package/dist/icons/glyphs/map-pin-plus-inside.d.ts +2 -0
- package/dist/icons/glyphs/map-pin-plus.d.ts +2 -0
- package/dist/icons/glyphs/map-pin-x-inside.d.ts +2 -0
- package/dist/icons/glyphs/map-pin.d.ts +2 -0
- package/dist/icons/glyphs/maximize-2.d.ts +2 -0
- package/dist/icons/glyphs/maximize.d.ts +2 -0
- package/dist/icons/glyphs/meh.d.ts +2 -0
- package/dist/icons/glyphs/menu.d.ts +2 -0
- package/dist/icons/glyphs/message-circle-check.d.ts +2 -0
- package/dist/icons/glyphs/message-circle-dashed.d.ts +2 -0
- package/dist/icons/glyphs/message-circle-more.d.ts +2 -0
- package/dist/icons/glyphs/message-circle-plus.d.ts +2 -0
- package/dist/icons/glyphs/message-circle-x.d.ts +2 -0
- package/dist/icons/glyphs/message-circle.d.ts +2 -0
- package/dist/icons/glyphs/message-square-check.d.ts +2 -0
- package/dist/icons/glyphs/message-square-dashed.d.ts +2 -0
- package/dist/icons/glyphs/message-square-more.d.ts +2 -0
- package/dist/icons/glyphs/message-square-plus.d.ts +2 -0
- package/dist/icons/glyphs/message-square-x.d.ts +2 -0
- package/dist/icons/glyphs/message-square.d.ts +2 -0
- package/dist/icons/glyphs/mic-off.d.ts +2 -0
- package/dist/icons/glyphs/mic.d.ts +2 -0
- package/dist/icons/glyphs/minimize.d.ts +2 -0
- package/dist/icons/glyphs/minus.d.ts +2 -0
- package/dist/icons/glyphs/monitor-check.d.ts +2 -0
- package/dist/icons/glyphs/monitor-cog.d.ts +2 -0
- package/dist/icons/glyphs/monitor.d.ts +2 -0
- package/dist/icons/glyphs/moon.d.ts +2 -0
- package/dist/icons/glyphs/mouse-pointer-click.d.ts +2 -0
- package/dist/icons/glyphs/nfc.d.ts +2 -0
- package/dist/icons/glyphs/package.d.ts +2 -0
- package/dist/icons/glyphs/palette.d.ts +2 -0
- package/dist/icons/glyphs/panel-left-close.d.ts +2 -0
- package/dist/icons/glyphs/panel-left-open.d.ts +2 -0
- package/dist/icons/glyphs/panel-right-open.d.ts +2 -0
- package/dist/icons/glyphs/paperclip.d.ts +2 -0
- package/dist/icons/glyphs/party-popper.d.ts +2 -0
- package/dist/icons/glyphs/pause.d.ts +2 -0
- package/dist/icons/glyphs/pen-tool.d.ts +2 -0
- package/dist/icons/glyphs/philippine-peso.d.ts +2 -0
- package/dist/icons/glyphs/phone-call.d.ts +2 -0
- package/dist/icons/glyphs/phone-forwarded.d.ts +2 -0
- package/dist/icons/glyphs/phone-incoming.d.ts +2 -0
- package/dist/icons/glyphs/phone-missed.d.ts +2 -0
- package/dist/icons/glyphs/phone-off.d.ts +2 -0
- package/dist/icons/glyphs/phone.d.ts +2 -0
- package/dist/icons/glyphs/pickaxe.d.ts +2 -0
- package/dist/icons/glyphs/pipette.d.ts +2 -0
- package/dist/icons/glyphs/plane-landing.d.ts +2 -0
- package/dist/icons/glyphs/plane-takeoff.d.ts +2 -0
- package/dist/icons/glyphs/plane.d.ts +2 -0
- package/dist/icons/glyphs/play.d.ts +2 -0
- package/dist/icons/glyphs/plug-zap.d.ts +2 -0
- package/dist/icons/glyphs/plus.d.ts +2 -0
- package/dist/icons/glyphs/pound-sterling.d.ts +2 -0
- package/dist/icons/glyphs/projector.d.ts +2 -0
- package/dist/icons/glyphs/rabbit.d.ts +2 -0
- package/dist/icons/glyphs/radio-tower.d.ts +2 -0
- package/dist/icons/glyphs/radio.d.ts +2 -0
- package/dist/icons/glyphs/receipt-cent.d.ts +2 -0
- package/dist/icons/glyphs/receipt-euro.d.ts +2 -0
- package/dist/icons/glyphs/receipt-indian-rupee.d.ts +2 -0
- package/dist/icons/glyphs/receipt-japanese-yen.d.ts +2 -0
- package/dist/icons/glyphs/receipt-pound-sterling.d.ts +2 -0
- package/dist/icons/glyphs/receipt-russian-ruble.d.ts +2 -0
- package/dist/icons/glyphs/receipt-swiss-franc.d.ts +2 -0
- package/dist/icons/glyphs/receipt-text.d.ts +2 -0
- package/dist/icons/glyphs/receipt-turkish-lira.d.ts +2 -0
- package/dist/icons/glyphs/receipt.d.ts +2 -0
- package/dist/icons/glyphs/redo-dot.d.ts +2 -0
- package/dist/icons/glyphs/redo.d.ts +2 -0
- package/dist/icons/glyphs/refresh-ccw-dot.d.ts +2 -0
- package/dist/icons/glyphs/refresh-ccw.d.ts +2 -0
- package/dist/icons/glyphs/refresh-cw-off.d.ts +2 -0
- package/dist/icons/glyphs/refresh-cw.d.ts +2 -0
- package/dist/icons/glyphs/rocket.d.ts +2 -0
- package/dist/icons/glyphs/rocking-chair.d.ts +2 -0
- package/dist/icons/glyphs/roller-coaster.d.ts +2 -0
- package/dist/icons/glyphs/rotate-ccw.d.ts +2 -0
- package/dist/icons/glyphs/rotate-cw.d.ts +2 -0
- package/dist/icons/glyphs/route.d.ts +2 -0
- package/dist/icons/glyphs/router.d.ts +2 -0
- package/dist/icons/glyphs/russian-ruble.d.ts +2 -0
- package/dist/icons/glyphs/satellite-dish.d.ts +2 -0
- package/dist/icons/glyphs/saudi-riyal.d.ts +2 -0
- package/dist/icons/glyphs/scan-face.d.ts +2 -0
- package/dist/icons/glyphs/scan-text.d.ts +2 -0
- package/dist/icons/glyphs/search.d.ts +2 -0
- package/dist/icons/glyphs/send.d.ts +2 -0
- package/dist/icons/glyphs/server-cog.d.ts +2 -0
- package/dist/icons/glyphs/server-crash.d.ts +2 -0
- package/dist/icons/glyphs/server.d.ts +2 -0
- package/dist/icons/glyphs/settings.d.ts +2 -0
- package/dist/icons/glyphs/shield-check.d.ts +2 -0
- package/dist/icons/glyphs/ship-wheel.d.ts +2 -0
- package/dist/icons/glyphs/ship.d.ts +2 -0
- package/dist/icons/glyphs/shopping-cart.d.ts +2 -0
- package/dist/icons/glyphs/shower-head.d.ts +2 -0
- package/dist/icons/glyphs/shredder.d.ts +2 -0
- package/dist/icons/glyphs/shrink.d.ts +2 -0
- package/dist/icons/glyphs/sliders-horizontal.d.ts +2 -0
- package/dist/icons/glyphs/smartphone-charging.d.ts +2 -0
- package/dist/icons/glyphs/smartphone-nfc.d.ts +2 -0
- package/dist/icons/glyphs/smartphone.d.ts +2 -0
- package/dist/icons/glyphs/smile-plus.d.ts +2 -0
- package/dist/icons/glyphs/smile.d.ts +2 -0
- package/dist/icons/glyphs/snowflake.d.ts +2 -0
- package/dist/icons/glyphs/soup.d.ts +2 -0
- package/dist/icons/glyphs/sparkles.d.ts +2 -0
- package/dist/icons/glyphs/spray-can.d.ts +2 -0
- package/dist/icons/glyphs/square-activity.d.ts +2 -0
- package/dist/icons/glyphs/square-arrow-down.d.ts +2 -0
- package/dist/icons/glyphs/square-arrow-left.d.ts +2 -0
- package/dist/icons/glyphs/square-arrow-right.d.ts +2 -0
- package/dist/icons/glyphs/square-arrow-up.d.ts +2 -0
- package/dist/icons/glyphs/square-chevron-down.d.ts +2 -0
- package/dist/icons/glyphs/square-chevron-left.d.ts +2 -0
- package/dist/icons/glyphs/square-chevron-right.d.ts +2 -0
- package/dist/icons/glyphs/square-chevron-up.d.ts +2 -0
- package/dist/icons/glyphs/square-pen.d.ts +2 -0
- package/dist/icons/glyphs/square-stack.d.ts +2 -0
- package/dist/icons/glyphs/stamp.d.ts +2 -0
- package/dist/icons/glyphs/stethoscope.d.ts +2 -0
- package/dist/icons/glyphs/sun-dim.d.ts +2 -0
- package/dist/icons/glyphs/sun-medium.d.ts +2 -0
- package/dist/icons/glyphs/sun-moon.d.ts +2 -0
- package/dist/icons/glyphs/sun.d.ts +2 -0
- package/dist/icons/glyphs/sunset.d.ts +2 -0
- package/dist/icons/glyphs/swiss-franc.d.ts +2 -0
- package/dist/icons/glyphs/switch-camera.d.ts +2 -0
- package/dist/icons/glyphs/syringe.d.ts +2 -0
- package/dist/icons/glyphs/tablet.d.ts +2 -0
- package/dist/icons/glyphs/telescope.d.ts +2 -0
- package/dist/icons/glyphs/terminal.d.ts +2 -0
- package/dist/icons/glyphs/text-align-center.d.ts +2 -0
- package/dist/icons/glyphs/text-align-end.d.ts +2 -0
- package/dist/icons/glyphs/text-align-start.d.ts +2 -0
- package/dist/icons/glyphs/thermometer.d.ts +2 -0
- package/dist/icons/glyphs/thumbs-down.d.ts +2 -0
- package/dist/icons/glyphs/thumbs-up.d.ts +2 -0
- package/dist/icons/glyphs/ticket.d.ts +2 -0
- package/dist/icons/glyphs/timer.d.ts +2 -0
- package/dist/icons/glyphs/tornado.d.ts +2 -0
- package/dist/icons/glyphs/train-track.d.ts +2 -0
- package/dist/icons/glyphs/trash-2.d.ts +2 -0
- package/dist/icons/glyphs/tree-deciduous.d.ts +2 -0
- package/dist/icons/glyphs/tree-pine.d.ts +2 -0
- package/dist/icons/glyphs/trending-down.d.ts +2 -0
- package/dist/icons/glyphs/trending-up-down.d.ts +2 -0
- package/dist/icons/glyphs/trending-up.d.ts +2 -0
- package/dist/icons/glyphs/triangle-alert.d.ts +2 -0
- package/dist/icons/glyphs/truck.d.ts +2 -0
- package/dist/icons/glyphs/turkish-lira.d.ts +2 -0
- package/dist/icons/glyphs/twitch.d.ts +2 -0
- package/dist/icons/glyphs/twitter.d.ts +2 -0
- package/dist/icons/glyphs/underline.d.ts +2 -0
- package/dist/icons/glyphs/undo-dot.d.ts +2 -0
- package/dist/icons/glyphs/undo.d.ts +2 -0
- package/dist/icons/glyphs/unplug.d.ts +2 -0
- package/dist/icons/glyphs/upload.d.ts +2 -0
- package/dist/icons/glyphs/user-check.d.ts +2 -0
- package/dist/icons/glyphs/user-plus.d.ts +2 -0
- package/dist/icons/glyphs/user-round-check.d.ts +2 -0
- package/dist/icons/glyphs/user-round-cog.d.ts +2 -0
- package/dist/icons/glyphs/user-round-plus.d.ts +2 -0
- package/dist/icons/glyphs/user-round.d.ts +2 -0
- package/dist/icons/glyphs/user.d.ts +2 -0
- package/dist/icons/glyphs/users-round.d.ts +2 -0
- package/dist/icons/glyphs/users.d.ts +2 -0
- package/dist/icons/glyphs/vibrate.d.ts +2 -0
- package/dist/icons/glyphs/volume.d.ts +2 -0
- package/dist/icons/glyphs/wallet.d.ts +2 -0
- package/dist/icons/glyphs/washing-machine.d.ts +2 -0
- package/dist/icons/glyphs/waves-arrow-down.d.ts +2 -0
- package/dist/icons/glyphs/waves-arrow-up.d.ts +2 -0
- package/dist/icons/glyphs/waves-ladder.d.ts +2 -0
- package/dist/icons/glyphs/waves.d.ts +2 -0
- package/dist/icons/glyphs/waypoints.d.ts +2 -0
- package/dist/icons/glyphs/webhook.d.ts +2 -0
- package/dist/icons/glyphs/wifi-cog.d.ts +2 -0
- package/dist/icons/glyphs/wifi-low.d.ts +2 -0
- package/dist/icons/glyphs/wifi-pen.d.ts +2 -0
- package/dist/icons/glyphs/wifi-sync.d.ts +2 -0
- package/dist/icons/glyphs/wifi.d.ts +2 -0
- package/dist/icons/glyphs/wind-arrow-down.d.ts +2 -0
- package/dist/icons/glyphs/wind.d.ts +2 -0
- package/dist/icons/glyphs/workflow.d.ts +2 -0
- package/dist/icons/glyphs/wrench.d.ts +2 -0
- package/dist/icons/glyphs/x.d.ts +2 -0
- package/dist/icons/glyphs/youtube.d.ts +2 -0
- package/dist/icons/glyphs/zap-off.d.ts +2 -0
- package/dist/icons/glyphs/zap.d.ts +2 -0
- package/dist/icons/iconPlay.d.ts +2 -0
- package/dist/icons/registry.d.ts +81 -78
- package/dist/icons.js +996 -0
- package/dist/index.css +1257 -399
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13 -5
- package/dist/internal/CheckMark.d.ts +12 -0
- package/dist/internal/ChoiceField.d.ts +1 -1
- package/dist/internal/FieldFrame.d.ts +17 -0
- package/dist/internal/MorphText.d.ts +12 -0
- package/dist/internal/RollingNumber.d.ts +14 -0
- package/dist/internal/surfaceDepth.d.ts +25 -0
- package/dist/internal/swatch.d.ts +4 -1
- package/dist/layout/app-shell/AppShell.d.ts +2 -2
- package/dist/motion/celebrate.d.ts +18 -0
- package/dist/tokens/layers.d.ts +37 -0
- package/dist/tokens/naming.d.ts +1 -1
- package/dist/tokens/primitives.d.ts +1 -0
- package/dist/tokens/semantic.d.ts +67 -56
- package/dist/tokens/themes/dark.d.ts +7 -14
- package/package.json +11 -4
- package/src/components/accordion/COMPONENT.md +4 -4
- package/src/components/avatar/COMPONENT.md +1 -1
- package/src/components/button/COMPONENT.md +30 -7
- package/src/components/button/examples/download.tsx +45 -0
- package/src/components/button/examples/hold-to-confirm.tsx +23 -0
- package/src/components/button/examples/in-form.tsx +15 -3
- package/src/components/button/examples/label-morph.tsx +38 -0
- package/src/components/button/examples/variants.tsx +1 -0
- package/src/components/card/COMPONENT.md +4 -2
- package/src/components/card/examples/narrow.tsx +2 -2
- package/src/components/card/examples/panel-chart.tsx +1 -1
- package/src/components/card/examples/variants.tsx +1 -1
- package/src/components/checkbox/COMPONENT.md +1 -1
- package/src/components/checkbox/examples/examples.module.css +1 -1
- package/src/components/code-block/COMPONENT.md +6 -6
- package/src/components/code-block/examples/overview.tsx +1 -1
- package/src/components/code-block/examples/variants.tsx +1 -1
- package/src/components/color-picker/COMPONENT.md +3 -3
- package/src/components/color-picker/examples/in-form.tsx +13 -5
- package/src/components/color-picker/examples/validation.tsx +10 -4
- package/src/components/color-swatches/COMPONENT.md +6 -6
- package/src/components/color-swatches/examples/in-form.tsx +11 -5
- package/src/components/command-menu/COMPONENT.md +1 -1
- package/src/components/crossfade/examples/overview.tsx +3 -3
- package/src/components/data-table/COMPONENT.md +5 -4
- package/src/components/datepicker/COMPONENT.md +3 -3
- package/src/components/datepicker/examples/in-form.tsx +30 -9
- package/src/components/datepicker/examples/validation.tsx +20 -10
- package/src/components/digit-input/COMPONENT.md +8 -6
- package/src/components/digit-input/examples/in-form.tsx +22 -4
- package/src/components/digit-input/examples/on-complete.tsx +7 -6
- package/src/components/digit-input/examples/validation.tsx +12 -5
- package/src/components/dnd/COMPONENT.md +1 -1
- package/src/components/dnd/examples/examples.module.css +4 -4
- package/src/components/drawer/COMPONENT.md +1 -1
- package/src/components/drawer/examples/in-form.tsx +7 -2
- package/src/components/dropdown/COMPONENT.md +1 -1
- package/src/components/dropdown/examples/examples.module.css +1 -1
- package/src/components/empty-page/examples/examples.module.css +1 -1
- package/src/components/example-frame/COMPONENT.md +1 -1
- package/src/components/file-upload/COMPONENT.md +3 -3
- package/src/components/file-upload/examples/in-form.tsx +28 -4
- package/src/components/file-upload/examples/validation.tsx +37 -6
- package/src/components/input/COMPONENT.md +13 -4
- package/src/components/input/examples/in-form.tsx +42 -7
- package/src/components/input/examples/password-strength.tsx +12 -0
- package/src/components/input/examples/validation.tsx +38 -13
- package/src/components/kanban/COMPONENT.md +4 -4
- package/src/components/login-form/COMPONENT.md +4 -4
- package/src/components/login-form/examples/register.tsx +2 -2
- package/src/components/login-form/examples/reset-password.tsx +2 -2
- package/src/components/modal/COMPONENT.md +3 -3
- package/src/components/modal/examples/examples.module.css +2 -2
- package/src/components/modal/examples/in-form.tsx +7 -2
- package/src/components/native-select/COMPONENT.md +3 -3
- package/src/components/native-select/examples/examples.module.css +2 -0
- package/src/components/native-select/examples/in-form.tsx +18 -3
- package/src/components/native-select/examples/validation.tsx +8 -3
- package/src/components/page-content/examples/examples.module.css +1 -1
- package/src/components/popover/COMPONENT.md +2 -2
- package/src/components/popover/examples/in-form.tsx +27 -5
- package/src/components/progress-bar/COMPONENT.md +5 -1
- package/src/components/progress-bar/examples/examples.module.css +7 -0
- package/src/components/progress-bar/examples/milestone.tsx +43 -0
- package/src/components/progress-bar/examples/steps.tsx +35 -0
- package/src/components/radio/COMPONENT.md +1 -1
- package/src/components/select/COMPONENT.md +3 -3
- package/src/components/select/examples/examples.module.css +1 -0
- package/src/components/select/examples/in-form.tsx +25 -3
- package/src/components/select/examples/validation.tsx +8 -3
- package/src/components/skeleton/examples/with-crossfade.tsx +3 -3
- package/src/components/slider/COMPONENT.md +1 -1
- package/src/components/sparkline/COMPONENT.md +98 -0
- package/src/components/sparkline/examples/examples.module.css +13 -0
- package/src/components/sparkline/examples/overview.tsx +27 -0
- package/src/components/sparkline/examples/period.tsx +46 -0
- package/src/components/switch/COMPONENT.md +1 -1
- package/src/components/tabs/COMPONENT.md +15 -16
- package/src/components/tabs/examples/examples.module.css +14 -0
- package/src/components/tabs/examples/orientation.tsx +87 -33
- package/src/components/tag-select/COMPONENT.md +3 -3
- package/src/components/tag-select/examples/examples.module.css +1 -0
- package/src/components/tag-select/examples/in-form.tsx +19 -2
- package/src/components/tag-select/examples/validation.tsx +7 -2
- package/src/components/textarea/COMPONENT.md +3 -3
- package/src/components/textarea/examples/in-form.tsx +20 -8
- package/src/components/textarea/examples/validation.tsx +24 -8
- package/src/components/tooltip/COMPONENT.md +8 -6
- package/src/components/tooltip/examples/examples.module.css +2 -2
- package/src/layout/app-header/COMPONENT.md +1 -1
- package/src/layout/app-header/examples/examples.module.css +4 -4
- package/src/layout/app-shell/COMPONENT.md +8 -8
- package/src/layout/app-shell/examples/examples.module.css +3 -3
- package/src/layout/bottom-nav/COMPONENT.md +1 -1
- package/src/layout/bottom-nav/examples/examples.module.css +1 -1
- package/src/layout/sidebar/COMPONENT.md +4 -4
- package/src/layout/sidebar/examples/examples.module.css +5 -5
- package/src/styles/globals.css +125 -2
- package/src/styles/theme-dark.css +37 -13
- package/src/styles/theme-light.css +61 -16
- package/src/styles/tokens.css +1 -0
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
PageToolbar,
|
|
35
35
|
Pagination,
|
|
36
36
|
Popover,
|
|
37
|
-
ProgressBar,
|
|
38
37
|
ProgressCircle,
|
|
39
38
|
Radio,
|
|
40
39
|
SegmentedControl,
|
|
@@ -42,6 +41,7 @@ import {
|
|
|
42
41
|
Skeleton,
|
|
43
42
|
Slider,
|
|
44
43
|
SmartFilter,
|
|
44
|
+
Sparkline,
|
|
45
45
|
Stepper,
|
|
46
46
|
Switch,
|
|
47
47
|
THEME_SWITCHING_ATTRIBUTE,
|
|
@@ -53,6 +53,7 @@ import {
|
|
|
53
53
|
Typography,
|
|
54
54
|
YEARLESS_YEAR,
|
|
55
55
|
applyTheme,
|
|
56
|
+
celebrate,
|
|
56
57
|
datepickerPresets,
|
|
57
58
|
formatDatepickerValue,
|
|
58
59
|
matchesSmartFilter,
|
|
@@ -61,19 +62,19 @@ import {
|
|
|
61
62
|
suspendTransitions,
|
|
62
63
|
useNotifications,
|
|
63
64
|
useSidebar
|
|
64
|
-
} from "./chunks/chunk-
|
|
65
|
+
} from "./chunks/chunk-K4FACFQ2.js";
|
|
65
66
|
import {
|
|
66
67
|
Button,
|
|
67
68
|
COLOR_PRESETS,
|
|
68
69
|
Checkbox,
|
|
69
70
|
ColorSwatches,
|
|
70
|
-
ControlSizeProvider,
|
|
71
71
|
Divider,
|
|
72
72
|
EmptyPage,
|
|
73
73
|
Hint,
|
|
74
74
|
Icon,
|
|
75
75
|
Input,
|
|
76
76
|
Label,
|
|
77
|
+
ProgressBar,
|
|
77
78
|
ScrollContainer,
|
|
78
79
|
Select,
|
|
79
80
|
Spinner,
|
|
@@ -81,13 +82,17 @@ import {
|
|
|
81
82
|
controlSizes,
|
|
82
83
|
createIcon,
|
|
83
84
|
dataStates,
|
|
85
|
+
getPasswordStrength,
|
|
84
86
|
paletteColors,
|
|
85
87
|
stepDown,
|
|
86
88
|
textTones,
|
|
87
89
|
tones,
|
|
88
|
-
useOptionalControlSize,
|
|
89
90
|
variants
|
|
90
|
-
} from "./chunks/chunk-
|
|
91
|
+
} from "./chunks/chunk-4TRNUP45.js";
|
|
92
|
+
import {
|
|
93
|
+
ControlSizeProvider,
|
|
94
|
+
useOptionalControlSize
|
|
95
|
+
} from "./chunks/chunk-GFKDZFQR.js";
|
|
91
96
|
export {
|
|
92
97
|
Accordion,
|
|
93
98
|
AppHeader,
|
|
@@ -145,6 +150,7 @@ export {
|
|
|
145
150
|
Skeleton,
|
|
146
151
|
Slider,
|
|
147
152
|
SmartFilter,
|
|
153
|
+
Sparkline,
|
|
148
154
|
Spinner,
|
|
149
155
|
Stepper,
|
|
150
156
|
Switch,
|
|
@@ -158,11 +164,13 @@ export {
|
|
|
158
164
|
Typography,
|
|
159
165
|
YEARLESS_YEAR,
|
|
160
166
|
applyTheme,
|
|
167
|
+
celebrate,
|
|
161
168
|
controlSizes,
|
|
162
169
|
createIcon,
|
|
163
170
|
dataStates,
|
|
164
171
|
datepickerPresets,
|
|
165
172
|
formatDatepickerValue,
|
|
173
|
+
getPasswordStrength,
|
|
166
174
|
matchesSmartFilter,
|
|
167
175
|
moveBefore,
|
|
168
176
|
paletteColors,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type CheckMarkState = "checked" | "unchecked" | "indeterminate";
|
|
2
|
+
/**
|
|
3
|
+
* The kit's check and indeterminate bar, drawn in with a stroke reveal (foundation §7 rule 8: a
|
|
4
|
+
* check draws in, it does not pop). Both paths stay in the DOM so the mark animates both ways;
|
|
5
|
+
* `state` picks the one that shows. Color is `currentColor`; size comes from the host box.
|
|
6
|
+
* Shared by Checkbox and the color swatches. Own SVG instead of `Icon`: the motion needs
|
|
7
|
+
* `pathLength` on the paths.
|
|
8
|
+
*/
|
|
9
|
+
export declare function CheckMark({ state, className }: {
|
|
10
|
+
state: CheckMarkState;
|
|
11
|
+
className?: string;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
|
-
import type
|
|
2
|
+
import { type FieldIds } from "@/internal/FieldFrame";
|
|
3
3
|
import type { ControlSize, DataState } from "@/internal/states";
|
|
4
4
|
/** Class of the visually hidden native input that sits on top of the visual control. */
|
|
5
5
|
export declare const choiceInputClass: string;
|
|
@@ -48,6 +48,23 @@ export declare function useFieldFrame(explicitId: string | undefined, { label, h
|
|
|
48
48
|
error?: React.ReactNode;
|
|
49
49
|
invalid?: boolean;
|
|
50
50
|
}, ariaDescribedBy?: string): FieldIds;
|
|
51
|
+
/**
|
|
52
|
+
* `data-shake` of a field root: the control shakes once when the field turns invalid or its error
|
|
53
|
+
* message changes (foundation §7, rule 14) — never for an error it mounts with. The value
|
|
54
|
+
* alternates between `odd` and `even` so a new error restarts the keyframes.
|
|
55
|
+
*/
|
|
56
|
+
export declare function useErrorShake(invalid: boolean, error: React.ReactNode): "odd" | "even" | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* The error that has just been fixed, kept on screen while it fades out (`fast`, `exit`) so the
|
|
59
|
+
* message leaves as smoothly as it arrived; the hint takes the slot after it. `null` when nothing
|
|
60
|
+
* is leaving. Reduced motion drops it at once.
|
|
61
|
+
*/
|
|
62
|
+
export declare function useLeavingError(showError: boolean, error: React.ReactNode): {
|
|
63
|
+
node: React.ReactNode;
|
|
64
|
+
onExitEnd: (event: React.SyntheticEvent<Element>) => void;
|
|
65
|
+
} | null;
|
|
66
|
+
/** Class of the leaving error message (`useLeavingError`), for frames that render their own row. */
|
|
67
|
+
export declare const leavingErrorClass: string;
|
|
51
68
|
type FieldFrameRenderProps = Omit<FieldFrameProps, "focusRing"> & {
|
|
52
69
|
size: ControlSize;
|
|
53
70
|
ids: FieldIds;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type MorphTextProps = {
|
|
2
|
+
children: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* A label that changes in place (foundation §7 rule 8): the old letters leave upward, the new ones
|
|
7
|
+
* come from below one short step apart, and the box glides between the two widths. At rest it is
|
|
8
|
+
* one plain text span; the letter layers exist only while a change plays. Still on the first
|
|
9
|
+
* render, under reduced motion, and when only digits change (a counter or a percentage in a label
|
|
10
|
+
* updates in place).
|
|
11
|
+
*/
|
|
12
|
+
export declare function MorphText({ children: text, className }: MorphTextProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type RollingNumberProps = {
|
|
2
|
+
/** The formatted value («4 812 350 ₽», «12», «−3,4%»); digits roll, other characters stay put. */
|
|
3
|
+
children: string | number;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* A number whose digits roll to their new values column by column, like an odometer (foundation §7
|
|
8
|
+
* rule 8: counters ease, they do not flip). The DOM holds the real digits (text, copy, assistive
|
|
9
|
+
* tech and a page without CSS read the value); each digit column draws the 0–9 strip in a
|
|
10
|
+
* pseudo-element. Columns are keyed from the right, so an unchanged digit stays still and a new
|
|
11
|
+
* leading digit appears without rolling. A value that changes by itself every frame (a running
|
|
12
|
+
* percentage) stays plain tabular text: rolling there is noise.
|
|
13
|
+
*/
|
|
14
|
+
export declare function RollingNumber({ children, className }: RollingNumberProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Depth of a surface on the ladder (foundation §4): `0` the page … `4` the deepest nested layer,
|
|
4
|
+
* `floating` for menus, popovers, modals and drawers, `floating-1`/`floating-2` for layers nested in
|
|
5
|
+
* one, `tinted` for a host off the ladder (a tinted banner, an accent wash). A surface renders
|
|
6
|
+
* `data-depth` with it; `globals.css` maps each depth to the context variables
|
|
7
|
+
* (`--prime-color-layer-current`, `--prime-color-field-bg`…).
|
|
8
|
+
*/
|
|
9
|
+
export type SurfaceDepth = 0 | 1 | 2 | 3 | 4 | "floating" | "floating-1" | "floating-2" | "tinted";
|
|
10
|
+
/**
|
|
11
|
+
* The depth of a surface nested in `depth`; the deepest layer and `floating-2` repeat, a card on a
|
|
12
|
+
* tinted host is a card on the page.
|
|
13
|
+
*/
|
|
14
|
+
export declare function nextSurfaceDepth(depth: SurfaceDepth): SurfaceDepth;
|
|
15
|
+
/** Depth of the surface the caller renders: one above the nearest surface around it. */
|
|
16
|
+
export declare function useNestedSurfaceDepth(): SurfaceDepth;
|
|
17
|
+
/** Surfaces inside `children` count their depth from `value`. */
|
|
18
|
+
export declare const SurfaceDepthProvider: React.Provider<SurfaceDepth>;
|
|
19
|
+
/**
|
|
20
|
+
* The layer an ExampleFrame stage stands for (the docs' "preview background"). The stage element
|
|
21
|
+
* itself takes it as `data-depth`: no wrapper may sit between the stage and the example, because
|
|
22
|
+
* the stage lays out its children with child selectors (`> *`).
|
|
23
|
+
*/
|
|
24
|
+
export declare const StageDepthProvider: React.Provider<SurfaceDepth>;
|
|
25
|
+
export declare function useStageDepth(): SurfaceDepth;
|
|
@@ -31,7 +31,10 @@ export declare const swatchTierClass: string;
|
|
|
31
31
|
export declare function SwatchFill({ value }: {
|
|
32
32
|
value: string | null;
|
|
33
33
|
}): import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Inside a selectable swatch: the color layer and the contrasting check, which draws in when the
|
|
36
|
+
* swatch is selected and retracts when it is not (`CheckMark`, the same mark as Checkbox).
|
|
37
|
+
*/
|
|
35
38
|
export declare function SwatchContent({ value, selected }: {
|
|
36
39
|
value: string | null;
|
|
37
40
|
selected: boolean;
|
|
@@ -7,14 +7,14 @@ export type AppShellRootProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
7
7
|
export type AppShellNavProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
8
8
|
ref?: React.Ref<HTMLDivElement>;
|
|
9
9
|
};
|
|
10
|
-
/** Navigation column (usually `Sidebar.Root
|
|
10
|
+
/** Navigation column (usually `Sidebar.Root`, a surface one layer above the page). */
|
|
11
11
|
declare function AppShellNav({ className, ...rest }: AppShellNavProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare namespace AppShellNav {
|
|
13
13
|
var displayName: string;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Grid: navigation column | content panel. Everything that is not `AppShell.Nav` goes into the
|
|
17
|
-
* content panel (
|
|
17
|
+
* content panel, which is the page itself (the layer around the shell): cards on it are the next layer.
|
|
18
18
|
*/
|
|
19
19
|
declare function AppShellRoot({ fillViewport, className, children, ...rest }: AppShellRootProps): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
declare namespace AppShellRoot {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type CelebrateOptions = {
|
|
2
|
+
/**
|
|
3
|
+
* Where the burst starts: an element (from its center) or a point in the viewport. Default: the
|
|
4
|
+
* middle of the screen, a third from the top.
|
|
5
|
+
*/
|
|
6
|
+
origin?: Element | {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A short confetti burst for a rare milestone: a quarter closed, the first invoice paid, an
|
|
13
|
+
* onboarding finished (foundation §7 rule 1 — only rare moments carry delight; never for routine
|
|
14
|
+
* success, that is a Notification). Draws on a canvas above every layer, ignores the pointer and
|
|
15
|
+
* assistive tech, and removes itself after 1.4 s. Under reduced motion it draws nothing. Say the
|
|
16
|
+
* achievement in words too: the burst is decoration. Resolves when the canvas is gone.
|
|
17
|
+
*/
|
|
18
|
+
export declare function celebrate(options?: CelebrateOptions): Promise<void>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** ΔL in OKLab between neighbouring layers. */
|
|
2
|
+
export declare const LAYER_STEP = 0.03;
|
|
3
|
+
/** Layers 0…4: the page and four nested surfaces. */
|
|
4
|
+
export declare const LAYER_DEPTH = 4;
|
|
5
|
+
export type LayerTheme = {
|
|
6
|
+
/** The page color (layer 0). */
|
|
7
|
+
page: string;
|
|
8
|
+
/** Lightness window: no color goes outside it. */
|
|
9
|
+
lo: number;
|
|
10
|
+
hi: number;
|
|
11
|
+
/** Direction of control fills from their host: −1 darker, +1 lighter. */
|
|
12
|
+
control: 1 | -1;
|
|
13
|
+
};
|
|
14
|
+
export declare const LIGHT_LAYERS: LayerTheme;
|
|
15
|
+
export declare const DARK_LAYERS: LayerTheme;
|
|
16
|
+
export declare const lightnessOf: (hex: string) => number;
|
|
17
|
+
/**
|
|
18
|
+
* `steps` steps from L towards `dir`. Reflects when less than half a step of room is left (unless
|
|
19
|
+
* `reflect` is off), snaps to the edge when less than half a step would remain after the move.
|
|
20
|
+
*/
|
|
21
|
+
export declare function move(theme: LayerTheme, L: number, dir: 1 | -1, steps?: number, reflect?: boolean): number;
|
|
22
|
+
export type LayerColors = {
|
|
23
|
+
/** The layer itself. */
|
|
24
|
+
bg: string;
|
|
25
|
+
/** Fields, chips, segmented tracks, neutral buttons on this layer. */
|
|
26
|
+
fill: string;
|
|
27
|
+
/** Hover of that fill. */
|
|
28
|
+
fillHover: string;
|
|
29
|
+
/** The selected segment (thumb) on a track of this layer. */
|
|
30
|
+
selected: string;
|
|
31
|
+
};
|
|
32
|
+
/** Layers 0…LAYER_DEPTH of a theme, each one step from its parent. */
|
|
33
|
+
export declare function layerLadder(theme: LayerTheme): LayerColors[];
|
|
34
|
+
/** Floating layers (popovers, menus, modals, drawers) sit one step above a card and never reflect. */
|
|
35
|
+
export declare function floatingLayer(theme: LayerTheme): LayerColors;
|
|
36
|
+
/** Token tree for `color.layer`: `0`…`4` plus `floating` and the two layers nested in it. */
|
|
37
|
+
export declare function layerTokens(theme: LayerTheme): Record<string, LayerColors>;
|
package/dist/tokens/naming.d.ts
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
export declare const REF_PREFIX = "--prime-ref";
|
|
3
3
|
/** Semantic variables: `--prime-*`. */
|
|
4
4
|
export declare const SYS_PREFIX = "--prime";
|
|
5
|
-
/** Token path → CSS variable: `color.
|
|
5
|
+
/** Token path → CSS variable: `color.text.primary` → `--prime-color-text-primary`, camelCase → kebab-case. */
|
|
6
6
|
export declare function toVarName(path: string, prefix?: string): string;
|
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Semantic layer (`--prime-*`). Components read only these variables.
|
|
3
|
-
* Path → variable: `color.bg.canvas` → `--prime-color-bg-canvas`, camelCase → kebab-case.
|
|
4
|
-
* Values below are the light theme; `themes/dark.ts` overrides colors and shadows.
|
|
5
|
-
*
|
|
6
|
-
* Design rules (see docs/foundation.md):
|
|
7
|
-
* - Depth comes from fills, not borders. `border.subtle` is a hairline, `border.control` is transparent
|
|
8
|
-
* (it becomes visible only under `prefers-contrast: more`).
|
|
9
|
-
* - Every size is on the 4px grid. Controls share one size axis: xs 28 · s 32 · m 36 · l 40 · xl 48.
|
|
10
|
-
* - A nested radius equals the outer radius minus the padding between them.
|
|
11
|
-
*/
|
|
12
1
|
export declare const semanticTokens: {
|
|
13
2
|
readonly color: {
|
|
3
|
+
/**
|
|
4
|
+
* Surface ladder, computed by `layers.ts`: `0` the page … `4` the deepest nested layer, `floating`
|
|
5
|
+
* for menus, popovers, modals and drawers (`floating1`/`floating2` nest inside it). Each row:
|
|
6
|
+
* `bg` the layer, `fill` controls on it, `fillHover`, `selected` the thumb on its track.
|
|
7
|
+
* Components read them through the depth context variables (globals.css), not directly.
|
|
8
|
+
*/
|
|
9
|
+
readonly layer: Record<string, import("./layers").LayerColors>;
|
|
14
10
|
readonly bg: {
|
|
15
|
-
/** App background. */
|
|
16
|
-
readonly canvas: "{color.gray.50}";
|
|
17
|
-
/** Cards, panels, table bodies. */
|
|
18
|
-
readonly surface: "{color.gray.0}";
|
|
19
|
-
/** Floating layers: menus, popovers, modals, drawers. */
|
|
20
|
-
readonly raised: "{color.gray.0}";
|
|
21
|
-
/** Inset areas inside a surface: modal footer, table head, code. */
|
|
22
|
-
readonly sunken: "{color.gray.75}";
|
|
23
11
|
readonly inverse: "{color.gray.925}";
|
|
24
12
|
readonly scrim: "rgba(17, 19, 24, 0.44)";
|
|
25
13
|
/** Soft shade over an edge that hides scrolled content (DataTable columns). */
|
|
@@ -32,22 +20,18 @@ export declare const semanticTokens: {
|
|
|
32
20
|
/** The specular top edge of a glass surface: the line that makes it read as glass. */
|
|
33
21
|
readonly glassEdge: "rgba(255, 255, 255, 0.85)";
|
|
34
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Translucent state washes: they sit on any background, including ones off the ladder (an
|
|
25
|
+
* image, a tinted banner). Resting fills of controls come from the ladder instead
|
|
26
|
+
* (`--prime-color-fill-muted`, `--prime-color-field-bg`).
|
|
27
|
+
*/
|
|
35
28
|
readonly fill: {
|
|
36
|
-
/**
|
|
29
|
+
/** Ghost hover, row hover. */
|
|
37
30
|
readonly subtle: "rgba(17, 19, 24, 0.04)";
|
|
38
31
|
readonly subtleActive: "rgba(17, 19, 24, 0.07)";
|
|
39
|
-
/**
|
|
40
|
-
* The faintest wash: hover of a tab in the sunken strip (Tabs). Stays below the
|
|
41
|
-
* sunken → surface step in both themes, so a hovered tab never reads as the selected one.
|
|
42
|
-
*/
|
|
32
|
+
/** The faintest wash: hover of a tab in the tab strip, below the selected tab's step. */
|
|
43
33
|
readonly faint: "rgba(17, 19, 24, 0.04)";
|
|
44
|
-
/**
|
|
45
|
-
* Neutral buttons, chips, segmented track. Translucent ink wash: always one step off whatever
|
|
46
|
-
* it sits on (canvas, card, sunken tile, a custom container), in both themes.
|
|
47
|
-
*/
|
|
48
|
-
readonly muted: "color-mix(in srgb, var(--prime-ref-color-gray-925) 7%, transparent)";
|
|
49
|
-
readonly mutedHover: "color-mix(in srgb, var(--prime-ref-color-gray-925) 10%, transparent)";
|
|
50
|
-
/** Unchecked checkbox, switch track, slider track. Same wash, stronger. */
|
|
34
|
+
/** Unchecked checkbox, switch track, slider track. */
|
|
51
35
|
readonly strong: "color-mix(in srgb, var(--prime-ref-color-gray-925) 15%, transparent)";
|
|
52
36
|
readonly strongHover: "color-mix(in srgb, var(--prime-ref-color-gray-925) 22%, transparent)";
|
|
53
37
|
};
|
|
@@ -88,6 +72,7 @@ export declare const semanticTokens: {
|
|
|
88
72
|
};
|
|
89
73
|
readonly success: {
|
|
90
74
|
readonly default: "{color.green.700}";
|
|
75
|
+
readonly hover: "{color.green.800}";
|
|
91
76
|
readonly fg: "{color.white}";
|
|
92
77
|
readonly soft: "{color.green.100}";
|
|
93
78
|
readonly text: "{color.green.700}";
|
|
@@ -105,39 +90,29 @@ export declare const semanticTokens: {
|
|
|
105
90
|
readonly soft: "{color.sky.100}";
|
|
106
91
|
readonly text: "{color.sky.800}";
|
|
107
92
|
};
|
|
108
|
-
/**
|
|
109
|
-
* Field fill depends on what it sits on. `bg` is the canvas value; every surface component
|
|
110
|
-
* (Card, Modal, Drawer, Popover, Sidebar…) sets `--prime-color-field-bg: var(--prime-color-field-bg-surface)`.
|
|
111
|
-
*/
|
|
93
|
+
/** The field fill at rest, hover and focus comes from the ladder (`--prime-color-field-bg*`). */
|
|
112
94
|
readonly field: {
|
|
113
|
-
/**
|
|
114
|
-
readonly bg: "color-mix(in srgb, var(--prime-ref-color-gray-925) 6%, transparent)";
|
|
115
|
-
readonly bgSurface: "color-mix(in srgb, var(--prime-ref-color-gray-925) 6%, transparent)";
|
|
116
|
-
/** Hover wash of a field: the `bg` wash, twice as dense (≈ `bg` mixed 94% with the text color). */
|
|
117
|
-
readonly bgHover: "color-mix(in srgb, var(--prime-ref-color-gray-925) 12%, transparent)";
|
|
118
|
-
readonly bgFocus: "{color.gray.0}";
|
|
95
|
+
/** A disabled field: a faint wash on whatever it sits on. */
|
|
119
96
|
readonly bgDisabled: "color-mix(in srgb, var(--prime-ref-color-gray-925) 4%, transparent)";
|
|
120
97
|
};
|
|
121
|
-
/**
|
|
122
|
-
* Card fill depends on what it sits on (same idea as `field`). On the canvas a card is white and raised;
|
|
123
|
-
* every surface plane (AppShell content, Card, Modal, Drawer, Popover) sets
|
|
124
|
-
* `--prime-color-card-bg: var(--prime-color-bg-sunken)`, and a card on a sunken fill drops its shadow.
|
|
125
|
-
*/
|
|
126
|
-
readonly card: {
|
|
127
|
-
readonly bg: "{color.bg.surface}";
|
|
128
|
-
};
|
|
129
98
|
readonly focus: {
|
|
130
99
|
readonly ring: "{color.cobalt.700}";
|
|
131
100
|
};
|
|
132
101
|
readonly control: {
|
|
133
102
|
/** Switch thumb, slider thumb. */
|
|
134
103
|
readonly thumb: "{color.white}";
|
|
135
|
-
/** Selected segment in a segmented track: one step lighter than the track. */
|
|
136
|
-
readonly selected: "{color.gray.0}";
|
|
137
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* The tooltip is an inverse chip: everything inside it (a Kbd, a secondary line) reads its
|
|
107
|
+
* colors from here, through the context the chip sets (`--prime-color-text-*`, fills).
|
|
108
|
+
*/
|
|
138
109
|
readonly tooltip: {
|
|
139
110
|
readonly bg: "{color.gray.925}";
|
|
140
111
|
readonly text: "{color.gray.0}";
|
|
112
|
+
/** Secondary text on the chip (a shortcut, a second line). */
|
|
113
|
+
readonly muted: "{color.gray.300}";
|
|
114
|
+
/** A key cap or chip on the chip: a light wash over the dark fill. */
|
|
115
|
+
readonly fill: "rgba(255, 255, 255, 0.14)";
|
|
141
116
|
};
|
|
142
117
|
readonly palette: Record<string, {
|
|
143
118
|
soft: string;
|
|
@@ -326,6 +301,8 @@ export declare const semanticTokens: {
|
|
|
326
301
|
};
|
|
327
302
|
/** Step between items of a staggered first render. */
|
|
328
303
|
readonly stagger: "{duration.80}";
|
|
304
|
+
/** Blur that hides a change of shape while two states swap in place (icon → check, letters). */
|
|
305
|
+
readonly blur: "2px";
|
|
329
306
|
/** `:active` scale of pressable controls; `compact` for icon-only and small targets. */
|
|
330
307
|
readonly press: {
|
|
331
308
|
readonly scale: "0.98";
|
|
@@ -561,8 +538,6 @@ export declare const semanticTokens: {
|
|
|
561
538
|
readonly minWidth: "12rem";
|
|
562
539
|
};
|
|
563
540
|
readonly card: {
|
|
564
|
-
/** Context: surfaces set it to `none` together with `--prime-color-card-bg` (see color.card). */
|
|
565
|
-
readonly shadow: "{shadow.raised}";
|
|
566
541
|
readonly radius: "{radius.12}";
|
|
567
542
|
readonly paddingS: "{space.4}";
|
|
568
543
|
readonly paddingM: "{space.5}";
|
|
@@ -625,10 +600,46 @@ export declare const semanticTokens: {
|
|
|
625
600
|
readonly floatingInset: "{space.3}";
|
|
626
601
|
readonly blur: "0.5rem";
|
|
627
602
|
};
|
|
603
|
+
/**
|
|
604
|
+
* Tooltip tiers: a chip of tier T is as tall as a menu item of tier T (24 · 28 · 32 · 36 · 40),
|
|
605
|
+
* and text, padding and radius grow together, one step per tier.
|
|
606
|
+
*/
|
|
628
607
|
readonly tooltip: {
|
|
629
|
-
readonly
|
|
630
|
-
|
|
631
|
-
|
|
608
|
+
readonly xs: {
|
|
609
|
+
readonly textSize: "{font.size.12}";
|
|
610
|
+
readonly lineHeight: "{font.lineHeight.16}";
|
|
611
|
+
readonly paddingX: "0.375rem";
|
|
612
|
+
readonly paddingY: "{space.1}";
|
|
613
|
+
readonly radius: "{radius.4}";
|
|
614
|
+
};
|
|
615
|
+
readonly s: {
|
|
616
|
+
readonly textSize: "{font.size.12}";
|
|
617
|
+
readonly lineHeight: "{font.lineHeight.16}";
|
|
618
|
+
readonly paddingX: "{space.2}";
|
|
619
|
+
readonly paddingY: "0.375rem";
|
|
620
|
+
readonly radius: "{radius.6}";
|
|
621
|
+
};
|
|
622
|
+
readonly m: {
|
|
623
|
+
readonly textSize: "{font.size.13}";
|
|
624
|
+
readonly lineHeight: "{font.lineHeight.20}";
|
|
625
|
+
readonly paddingX: "0.625rem";
|
|
626
|
+
readonly paddingY: "0.375rem";
|
|
627
|
+
readonly radius: "{radius.6}";
|
|
628
|
+
};
|
|
629
|
+
readonly l: {
|
|
630
|
+
readonly textSize: "{font.size.14}";
|
|
631
|
+
readonly lineHeight: "{font.lineHeight.20}";
|
|
632
|
+
readonly paddingX: "{space.3}";
|
|
633
|
+
readonly paddingY: "{space.2}";
|
|
634
|
+
readonly radius: "{radius.8}";
|
|
635
|
+
};
|
|
636
|
+
readonly xl: {
|
|
637
|
+
readonly textSize: "{font.size.16}";
|
|
638
|
+
readonly lineHeight: "{font.lineHeight.24}";
|
|
639
|
+
readonly paddingX: "{space.4}";
|
|
640
|
+
readonly paddingY: "{space.2}";
|
|
641
|
+
readonly radius: "{radius.8}";
|
|
642
|
+
};
|
|
632
643
|
readonly maxWidth: "17.5rem";
|
|
633
644
|
/** Arrow base and depth; the arrow points at the trigger's centre. */
|
|
634
645
|
readonly arrowWidth: "0.625rem";
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
export declare const darkThemeOverrides: {
|
|
2
2
|
readonly color: {
|
|
3
|
+
readonly layer: Record<string, import("../layers").LayerColors>;
|
|
3
4
|
readonly bg: {
|
|
4
|
-
readonly canvas: "{color.gray.950}";
|
|
5
|
-
readonly surface: "{color.gray.900}";
|
|
6
|
-
readonly raised: "{color.gray.875}";
|
|
7
|
-
/** = canvas: nested tiles on the 900 surface need a clear step (925 read as 1.03:1). */
|
|
8
|
-
readonly sunken: "{color.gray.950}";
|
|
9
5
|
readonly inverse: "{color.gray.100}";
|
|
10
6
|
readonly scrim: "rgba(0, 0, 0, 0.6)";
|
|
11
7
|
/** Darker than the scrim's share: a shade on a 900 surface needs more ink to read. */
|
|
@@ -17,8 +13,6 @@ export declare const darkThemeOverrides: {
|
|
|
17
13
|
readonly subtle: "rgba(233, 235, 240, 0.05)";
|
|
18
14
|
readonly subtleActive: "rgba(233, 235, 240, 0.09)";
|
|
19
15
|
readonly faint: "rgba(233, 235, 240, 0.02)";
|
|
20
|
-
readonly muted: "color-mix(in srgb, var(--prime-ref-color-gray-100) 7%, transparent)";
|
|
21
|
-
readonly mutedHover: "color-mix(in srgb, var(--prime-ref-color-gray-100) 10%, transparent)";
|
|
22
16
|
readonly strong: "color-mix(in srgb, var(--prime-ref-color-gray-100) 16%, transparent)";
|
|
23
17
|
readonly strongHover: "color-mix(in srgb, var(--prime-ref-color-gray-100) 22%, transparent)";
|
|
24
18
|
};
|
|
@@ -55,6 +49,7 @@ export declare const darkThemeOverrides: {
|
|
|
55
49
|
};
|
|
56
50
|
readonly success: {
|
|
57
51
|
readonly default: "{color.green.400}";
|
|
52
|
+
readonly hover: "{color.green.300}";
|
|
58
53
|
readonly fg: "{color.gray.950}";
|
|
59
54
|
readonly soft: "color-mix(in srgb, var(--prime-ref-color-green-500) 16%, transparent)";
|
|
60
55
|
readonly text: "{color.green.300}";
|
|
@@ -72,10 +67,6 @@ export declare const darkThemeOverrides: {
|
|
|
72
67
|
readonly text: "{color.sky.300}";
|
|
73
68
|
};
|
|
74
69
|
readonly field: {
|
|
75
|
-
readonly bg: "color-mix(in srgb, var(--prime-ref-color-gray-100) 6%, transparent)";
|
|
76
|
-
readonly bgSurface: "color-mix(in srgb, var(--prime-ref-color-gray-100) 6%, transparent)";
|
|
77
|
-
readonly bgHover: "color-mix(in srgb, var(--prime-ref-color-gray-100) 12%, transparent)";
|
|
78
|
-
readonly bgFocus: "{color.gray.925}";
|
|
79
70
|
readonly bgDisabled: "color-mix(in srgb, var(--prime-ref-color-gray-100) 4%, transparent)";
|
|
80
71
|
};
|
|
81
72
|
readonly focus: {
|
|
@@ -83,11 +74,13 @@ export declare const darkThemeOverrides: {
|
|
|
83
74
|
};
|
|
84
75
|
readonly control: {
|
|
85
76
|
readonly thumb: "{color.gray.100}";
|
|
86
|
-
readonly selected: "{color.gray.750}";
|
|
87
77
|
};
|
|
78
|
+
/** A light chip over the dark UI: inverse like in light, so it reads over any layer. */
|
|
88
79
|
readonly tooltip: {
|
|
89
|
-
readonly bg: "{color.gray.
|
|
90
|
-
readonly text: "{color.gray.
|
|
80
|
+
readonly bg: "{color.gray.100}";
|
|
81
|
+
readonly text: "{color.gray.925}";
|
|
82
|
+
readonly muted: "{color.gray.600}";
|
|
83
|
+
readonly fill: "rgba(17, 19, 24, 0.08)";
|
|
91
84
|
};
|
|
92
85
|
readonly palette: Record<string, {
|
|
93
86
|
soft: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prime-ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"packageManager": "bun@1.3.13",
|
|
5
5
|
"description": "React 19 UI kit for product interfaces: 61 composable components on one design contract — forms, selects, tables, overlays, navigation, app shell. CSS Modules, --prime-* tokens, light and dark themes, TypeScript, a11y. Ships COMPONENT.md docs and copyable examples.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -60,7 +60,8 @@
|
|
|
60
60
|
"src/layout/**/COMPONENT.md",
|
|
61
61
|
"src/components/**/examples/**",
|
|
62
62
|
"src/layout/**/examples/**",
|
|
63
|
-
"LICENSE"
|
|
63
|
+
"LICENSE",
|
|
64
|
+
"THIRD_PARTY_NOTICES"
|
|
64
65
|
],
|
|
65
66
|
"publishConfig": {
|
|
66
67
|
"access": "public"
|
|
@@ -105,6 +106,10 @@
|
|
|
105
106
|
"types": "./dist/color-picker.d.ts",
|
|
106
107
|
"default": "./dist/color-picker.js"
|
|
107
108
|
},
|
|
109
|
+
"./icons": {
|
|
110
|
+
"types": "./dist/icon-set.d.ts",
|
|
111
|
+
"default": "./dist/icons.js"
|
|
112
|
+
},
|
|
108
113
|
"./bundle.css": "./dist/index.css",
|
|
109
114
|
"./fonts.css": "./src/styles/fonts.css",
|
|
110
115
|
"./reset.css": "./src/styles/reset.css",
|
|
@@ -113,9 +118,11 @@
|
|
|
113
118
|
"./theme-dark.css": "./src/styles/theme-dark.css"
|
|
114
119
|
},
|
|
115
120
|
"scripts": {
|
|
116
|
-
"clean": "rm -rf dist .dts-stage playground/dist",
|
|
121
|
+
"clean": "rm -rf dist dist-skill .dts-stage playground/dist",
|
|
117
122
|
"tokens:build": "bun run scripts/build-tokens.ts",
|
|
118
123
|
"docs:build": "bun run scripts/build-docs.ts",
|
|
124
|
+
"icons:add": "bun run scripts/add-glyph.ts",
|
|
125
|
+
"skill:build": "bun run scripts/build-skill.ts",
|
|
119
126
|
"build": "bun run tokens:build && bun run scripts/bundle-lib.ts",
|
|
120
127
|
"prepublishOnly": "bun run clean && bun run build",
|
|
121
128
|
"playground:dev": "vite playground --config playground/vite.config.ts",
|
|
@@ -125,7 +132,7 @@
|
|
|
125
132
|
"typecheck": "tsc --noEmit",
|
|
126
133
|
"test": "vitest run",
|
|
127
134
|
"test:watch": "vitest",
|
|
128
|
-
"verify": "bun run check:ci && bun run typecheck && bun run test && bun run verify:tokens && bun run build",
|
|
135
|
+
"verify": "bun run check:ci && bun run typecheck && bun run test && bun run verify:tokens && bun run build && bun run skill:build",
|
|
129
136
|
"verify:tokens": "bun run tokens:build && git diff --exit-code -- src/styles/tokens.css src/styles/theme-light.css src/styles/theme-dark.css"
|
|
130
137
|
},
|
|
131
138
|
"sideEffects": [
|
|
@@ -96,8 +96,8 @@ Accordion.Root frame (grouped) or column of cards (separate)
|
|
|
96
96
|
### layout
|
|
97
97
|
| Value | Looks like | Use when | Default |
|
|
98
98
|
|---|---|---|---|
|
|
99
|
-
| `grouped` | One `
|
|
100
|
-
| `separate` | Each item is a separate card (`
|
|
99
|
+
| `grouped` | One surface — a layer of the ladder (`layer-current`) — with card radius, `border-subtle` hairlines between items, no shadow of its own | FAQ, short settings lists | yes |
|
|
100
|
+
| `separate` | Each item is a separate card (`layer-current`, card radius, the raised whisper on the page) with `--prime-space-2` between them | Heavier sections, checkout steps | |
|
|
101
101
|
|
|
102
102
|
### size
|
|
103
103
|
| Value | Looks like | Use when | Default |
|
|
@@ -122,7 +122,7 @@ Accordion.Root frame (grouped) or column of cards (separate)
|
|
|
122
122
|
|---|---|---|
|
|
123
123
|
| open / closed | `value` / `defaultValue` + `onValueChange` | `data-state="open" \| "closed"` on Item, Trigger and Content; `aria-expanded` on Trigger; `inert` on a closed Content |
|
|
124
124
|
| disabled | `disabled` on Item | `data-disabled` on Item and Trigger, native `disabled`, `text-disabled`, `cursor: not-allowed` |
|
|
125
|
-
| hover / active | pointer | trigger `fill-
|
|
125
|
+
| hover / active | pointer | trigger `fill-muted-hover` (two ladder steps off the accordion's layer, so it never lands on the host's color at the edges) / `fill-strong` |
|
|
126
126
|
| focus-visible | keyboard | inset focus ring inside the trigger |
|
|
127
127
|
|
|
128
128
|
Root: `data-size`, `data-layout`. The panel height transitions through `grid-template-rows: 0fr → 1fr` (no JS measuring, follows content that resizes while open) and the body fades in while settling by `--prime-space-1`; open uses `base` + `enter`, close `fast` + `exit`. The chevron rotates over `base`. Instant under `prefers-reduced-motion`.
|
|
@@ -130,7 +130,7 @@ Root: `data-size`, `data-layout`. The panel height transitions through `grid-tem
|
|
|
130
130
|
## Layout & spacing
|
|
131
131
|
- Takes the full width of its parent (`width: 100%`); the parent sets the measure.
|
|
132
132
|
- Panel content is a flex column with `--prime-space-3` gap; it reserves `--prime-focus-space` at the top so focus rings of fields inside are not clipped.
|
|
133
|
-
-
|
|
133
|
+
- The root is a layer of the surface ladder (`data-depth`): fields inside panels take that layer's fill automatically.
|
|
134
134
|
- Stack several accordions or an accordion and other blocks with the page gap (`--prime-space-8` between groups).
|
|
135
135
|
|
|
136
136
|
## Accessibility
|
|
@@ -156,7 +156,7 @@ No keyboard interaction.
|
|
|
156
156
|
- `alt="Анна Климова"` while the name is printed next to it → `alt=""`.
|
|
157
157
|
- A random `color` on every render → derive it from the user id.
|
|
158
158
|
- A custom presence dot → use `Avatar.Status`.
|
|
159
|
-
- A group on a custom filled block with a
|
|
159
|
+
- A group on a custom filled block with a ring in the wrong color → set `--avatar-ring` to that fill (by default the ring is the current layer, `--prime-color-layer-current`).
|
|
160
160
|
- `size` on every avatar in a group → set it once on `Avatar.Group`.
|
|
161
161
|
|
|
162
162
|
## Related
|