@krizaka/ui 3.34.0 → 3.36.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/dist/account-menu.js +1 -1
- package/dist/account-menu.js.map +1 -1
- package/dist/activity-feed.js +1 -1
- package/dist/activity-feed.js.map +1 -1
- package/dist/anatomy-plate.d.ts +26 -0
- package/dist/anatomy-plate.js +32 -0
- package/dist/anatomy-plate.js.map +1 -0
- package/dist/app-header.js +1 -1
- package/dist/app-header.js.map +1 -1
- package/dist/app-shell.js +3 -3
- package/dist/app-shell.js.map +1 -1
- package/dist/argument-card.js +1 -1
- package/dist/bird-plate.d.ts +38 -0
- package/dist/bird-plate.js +39 -0
- package/dist/bird-plate.js.map +1 -0
- package/dist/blocks.css +243 -46
- package/dist/checkbox.js +1 -1
- package/dist/checkbox.js.map +1 -1
- package/dist/chip-row.js +1 -1
- package/dist/chip-row.js.map +1 -1
- package/dist/{chunk-3S4GHSPZ.js → chunk-63KCDMX2.js} +3 -3
- package/dist/chunk-63KCDMX2.js.map +1 -0
- package/dist/{chunk-NJFCSVPT.js → chunk-6EAHUURY.js} +2 -2
- package/dist/chunk-6EAHUURY.js.map +1 -0
- package/dist/{chunk-REPTKUJ6.js → chunk-7NRSPHAF.js} +2 -2
- package/dist/chunk-7NRSPHAF.js.map +1 -0
- package/dist/{chunk-2AJ4NJUF.js → chunk-IANSFIVC.js} +5 -1
- package/dist/chunk-IANSFIVC.js.map +1 -0
- package/dist/chunk-JFJECOZ2.js +338 -0
- package/dist/chunk-JFJECOZ2.js.map +1 -0
- package/dist/{chunk-KIBICUZK.js → chunk-K2ZYB4HP.js} +4 -4
- package/dist/{chunk-7Z4KHPFC.js → chunk-YGIN2YIY.js} +2 -2
- package/dist/{chunk-7Z4KHPFC.js.map → chunk-YGIN2YIY.js.map} +1 -1
- package/dist/{chunk-LZNZLCOE.js → chunk-YKEIOYJ5.js} +20 -6
- package/dist/chunk-YKEIOYJ5.js.map +1 -0
- package/dist/{chunk-2PNLHZLT.js → chunk-YOTQD7JD.js} +2 -2
- package/dist/chunk-YOTQD7JD.js.map +1 -0
- package/dist/command.js +3 -3
- package/dist/command.js.map +1 -1
- package/dist/comparison-table.js +2 -2
- package/dist/comparison-table.js.map +1 -1
- package/dist/countdown.js +1 -1
- package/dist/countdown.js.map +1 -1
- package/dist/cover-hero.js +15 -6
- package/dist/cover-hero.js.map +1 -1
- package/dist/dashboard-layout.js +1 -1
- package/dist/dashboard-layout.js.map +1 -1
- package/dist/data-table.js +4 -4
- package/dist/date-picker.js +3 -3
- package/dist/date-picker.js.map +1 -1
- package/dist/description-list.js +1 -1
- package/dist/description-list.js.map +1 -1
- package/dist/detail-layout.js +1 -1
- package/dist/detail-layout.js.map +1 -1
- package/dist/dialog.js +1 -1
- package/dist/docs-nav.js +1 -1
- package/dist/docs-nav.js.map +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/footnote.d.ts +32 -0
- package/dist/footnote.js +29 -0
- package/dist/footnote.js.map +1 -0
- package/dist/genui.js +4 -4
- package/dist/geometry-DncHaYP8.d.ts +22 -0
- package/dist/language-switch.js +1 -1
- package/dist/list.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/loader.js.map +1 -1
- package/dist/map.js +95 -83
- package/dist/map.js.map +1 -1
- package/dist/mascot-quote.d.ts +2 -21
- package/dist/mascot-quote.js +9 -338
- package/dist/mascot-quote.js.map +1 -1
- package/dist/match-dialog.js +1 -1
- package/dist/match-dialog.js.map +1 -1
- package/dist/meter.js +1 -1
- package/dist/meter.js.map +1 -1
- package/dist/motion.css +28 -41
- package/dist/native/map.js +94 -82
- package/dist/native/map.js.map +1 -1
- package/dist/native.d.ts +8 -1
- package/dist/native.js +53 -41
- package/dist/native.js.map +1 -1
- package/dist/nav-bar.d.ts +1 -1
- package/dist/nav-bar.js +9 -9
- package/dist/nav-bar.js.map +1 -1
- package/dist/page-hero.js +1 -1
- package/dist/page-index.d.ts +30 -0
- package/dist/page-index.js +23 -0
- package/dist/page-index.js.map +1 -0
- package/dist/page.d.ts +19 -7
- package/dist/page.js +1 -1
- package/dist/photo-grid.js +2 -2
- package/dist/photo-grid.js.map +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/radio-group.js.map +1 -1
- package/dist/rail-nav.js +1 -1
- package/dist/rail-nav.js.map +1 -1
- package/dist/search-field.js +1 -1
- package/dist/service-card.js +2 -2
- package/dist/service-card.js.map +1 -1
- package/dist/site-footer.d.ts +1 -1
- package/dist/site-footer.js +3 -3
- package/dist/site-footer.js.map +1 -1
- package/dist/{sites-B4prB793.d.ts → sites-B4sYlfPQ.d.ts} +1 -1
- package/dist/sites.d.ts +1 -1
- package/dist/sites.js +4 -0
- package/dist/sites.js.map +1 -1
- package/dist/specimen-tag.d.ts +52 -0
- package/dist/specimen-tag.js +33 -0
- package/dist/specimen-tag.js.map +1 -0
- package/dist/stat.js +1 -1
- package/dist/stat.js.map +1 -1
- package/dist/sticky-action.d.ts +1 -1
- package/dist/sticky-action.js +1 -1
- package/dist/sticky-action.js.map +1 -1
- package/dist/swipe-deck.js +1 -1
- package/dist/swipe-deck.js.map +1 -1
- package/package.json +78 -8
- package/registry/account-menu.json +1 -1
- package/registry/achievement.json +1 -1
- package/registry/action-bar.json +1 -1
- package/registry/activity-feed.json +2 -2
- package/registry/alert.json +1 -1
- package/registry/anatomy-plate.json +168 -0
- package/registry/app-header.json +2 -2
- package/registry/app-shell.json +2 -2
- package/registry/argument-card.json +1 -1
- package/registry/audio-player.json +1 -1
- package/registry/auth-layout.json +1 -1
- package/registry/avatar.json +1 -1
- package/registry/badge.json +1 -1
- package/registry/bird-plate.json +221 -0
- package/registry/button.json +1 -1
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +1 -1
- package/registry/card.json +1 -1
- package/registry/catalogue-page.json +1 -1
- package/registry/changelog-page.json +1 -1
- package/registry/chat.json +3 -3
- package/registry/checkbox.json +2 -2
- package/registry/chip-link.json +1 -1
- package/registry/chip-row.json +2 -2
- package/registry/chip.json +1 -1
- package/registry/choice-grid.json +1 -1
- package/registry/code-block.json +1 -1
- package/registry/combobox.json +1 -1
- package/registry/command.json +2 -2
- package/registry/comparison-table.json +2 -2
- package/registry/component-page.json +1 -1
- package/registry/confirm-button.json +1 -1
- package/registry/contact-page.json +1 -1
- package/registry/continue-prompt.json +1 -1
- package/registry/countdown.json +2 -2
- package/registry/cover-hero.json +2 -2
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +2 -2
- package/registry/data-table.json +1 -1
- package/registry/date-picker.json +4 -4
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +2 -2
- package/registry/detail-layout.json +2 -2
- package/registry/dialog.json +2 -2
- package/registry/docs-article-page.json +1 -1
- package/registry/docs-hub-page.json +1 -1
- package/registry/docs-layout.json +1 -1
- package/registry/docs-nav.json +2 -2
- package/registry/document-viewer.json +1 -1
- package/registry/dropdown-menu.json +2 -2
- package/registry/empty-state.json +1 -1
- package/registry/engine-flow.json +1 -1
- package/registry/error-page.json +1 -1
- package/registry/examples/action-sheet/native/video-actions.dark.png +0 -0
- package/registry/examples/action-sheet/native/video-actions.light.png +0 -0
- package/registry/examples/activity-feed/native/notifications.dark.png +0 -0
- package/registry/examples/activity-feed/native/notifications.light.png +0 -0
- package/registry/examples/anatomy-plate/button.d.ts +4 -0
- package/registry/examples/anatomy-plate/button.js +25 -0
- package/registry/examples/anatomy-plate/button.tsx +20 -0
- package/registry/examples/avatar/native/group.dark.png +0 -0
- package/registry/examples/avatar/native/group.light.png +0 -0
- package/registry/examples/avatar/native/presence.dark.png +0 -0
- package/registry/examples/avatar/native/presence.light.png +0 -0
- package/registry/examples/avatar/native/sizes.dark.png +0 -0
- package/registry/examples/avatar/native/sizes.light.png +0 -0
- package/registry/examples/badge/native/dot.dark.png +0 -0
- package/registry/examples/badge/native/dot.light.png +0 -0
- package/registry/examples/badge/native/scrim.dark.png +0 -0
- package/registry/examples/badge/native/scrim.light.png +0 -0
- package/registry/examples/badge/native/tones.dark.png +0 -0
- package/registry/examples/badge/native/tones.light.png +0 -0
- package/registry/examples/bird-plate/flock.d.ts +4 -0
- package/registry/examples/bird-plate/flock.js +24 -0
- package/registry/examples/bird-plate/flock.tsx +18 -0
- package/registry/examples/bird-plate/single.d.ts +4 -0
- package/registry/examples/bird-plate/single.js +19 -0
- package/registry/examples/bird-plate/single.tsx +13 -0
- package/registry/examples/button/native/danger.dark.png +0 -0
- package/registry/examples/button/native/danger.light.png +0 -0
- package/registry/examples/button/native/disabled.dark.png +0 -0
- package/registry/examples/button/native/disabled.light.png +0 -0
- package/registry/examples/button/native/ghost.dark.png +0 -0
- package/registry/examples/button/native/ghost.light.png +0 -0
- package/registry/examples/button/native/gradient.dark.png +0 -0
- package/registry/examples/button/native/gradient.light.png +0 -0
- package/registry/examples/button/native/icon-only.dark.png +0 -0
- package/registry/examples/button/native/icon-only.light.png +0 -0
- package/registry/examples/button/native/icon.dark.png +0 -0
- package/registry/examples/button/native/icon.light.png +0 -0
- package/registry/examples/button/native/loading.dark.png +0 -0
- package/registry/examples/button/native/loading.light.png +0 -0
- package/registry/examples/button/native/outline.dark.png +0 -0
- package/registry/examples/button/native/outline.light.png +0 -0
- package/registry/examples/button/native/primary.dark.png +0 -0
- package/registry/examples/button/native/primary.light.png +0 -0
- package/registry/examples/button/native/secondary.dark.png +0 -0
- package/registry/examples/button/native/secondary.light.png +0 -0
- package/registry/examples/button/native/sizes.dark.png +0 -0
- package/registry/examples/button/native/sizes.light.png +0 -0
- package/registry/examples/card/native/body.dark.png +0 -0
- package/registry/examples/card/native/body.light.png +0 -0
- package/registry/examples/card/native/default.dark.png +0 -0
- package/registry/examples/card/native/default.light.png +0 -0
- package/registry/examples/card/native/elevated.dark.png +0 -0
- package/registry/examples/card/native/elevated.light.png +0 -0
- package/registry/examples/card/native/pressable.dark.png +0 -0
- package/registry/examples/card/native/pressable.light.png +0 -0
- package/registry/examples/chat/native/assistant.dark.png +0 -0
- package/registry/examples/chat/native/assistant.light.png +0 -0
- package/registry/examples/chat/native/conversation.dark.png +0 -0
- package/registry/examples/chat/native/conversation.light.png +0 -0
- package/registry/examples/chat/native/inbox.dark.png +0 -0
- package/registry/examples/chat/native/inbox.light.png +0 -0
- package/registry/examples/checkbox/native/terms.dark.png +0 -0
- package/registry/examples/checkbox/native/terms.light.png +0 -0
- package/registry/examples/chip/native/multiple.dark.png +0 -0
- package/registry/examples/chip/native/multiple.light.png +0 -0
- package/registry/examples/chip/native/removable.dark.png +0 -0
- package/registry/examples/chip/native/removable.light.png +0 -0
- package/registry/examples/chip/native/single.dark.png +0 -0
- package/registry/examples/chip/native/single.light.png +0 -0
- package/registry/examples/chip/native/toggle.dark.png +0 -0
- package/registry/examples/chip/native/toggle.light.png +0 -0
- package/registry/examples/combobox/native/multiple.dark.png +0 -0
- package/registry/examples/combobox/native/multiple.light.png +0 -0
- package/registry/examples/combobox/native/search.dark.png +0 -0
- package/registry/examples/combobox/native/search.light.png +0 -0
- package/registry/examples/countdown/native/days.dark.png +0 -0
- package/registry/examples/countdown/native/days.light.png +0 -0
- package/registry/examples/countdown/native/hours.dark.png +0 -0
- package/registry/examples/countdown/native/hours.light.png +0 -0
- package/registry/examples/countdown/native/sizes.dark.png +0 -0
- package/registry/examples/countdown/native/sizes.light.png +0 -0
- package/registry/examples/countdown/native/urgent.dark.png +0 -0
- package/registry/examples/countdown/native/urgent.light.png +0 -0
- package/registry/examples/countdown/native/with-label.dark.png +0 -0
- package/registry/examples/countdown/native/with-label.light.png +0 -0
- package/registry/examples/date-picker/native/birth-date-wheel.dark.png +0 -0
- package/registry/examples/date-picker/native/birth-date-wheel.light.png +0 -0
- package/registry/examples/date-picker/native/birth-date.dark.png +0 -0
- package/registry/examples/date-picker/native/birth-date.light.png +0 -0
- package/registry/examples/date-picker/native/calendar.dark.png +0 -0
- package/registry/examples/date-picker/native/calendar.light.png +0 -0
- package/registry/examples/date-picker/native/day-strip.dark.png +0 -0
- package/registry/examples/date-picker/native/day-strip.light.png +0 -0
- package/registry/examples/date-picker/native/month-year.dark.png +0 -0
- package/registry/examples/date-picker/native/month-year.light.png +0 -0
- package/registry/examples/date-picker/native/time-slots.dark.png +0 -0
- package/registry/examples/date-picker/native/time-slots.light.png +0 -0
- package/registry/examples/date-picker/native/time-wheel.dark.png +0 -0
- package/registry/examples/date-picker/native/time-wheel.light.png +0 -0
- package/registry/examples/description-list/native/job-details.dark.png +0 -0
- package/registry/examples/description-list/native/job-details.light.png +0 -0
- package/registry/examples/dialog/native/sheet.dark.png +0 -0
- package/registry/examples/dialog/native/sheet.light.png +0 -0
- package/registry/examples/empty-state/native/default.dark.png +0 -0
- package/registry/examples/empty-state/native/default.light.png +0 -0
- package/registry/examples/fab/native/extended.dark.png +0 -0
- package/registry/examples/fab/native/extended.light.png +0 -0
- package/registry/examples/field/native/default.dark.png +0 -0
- package/registry/examples/field/native/default.light.png +0 -0
- package/registry/examples/field/native/select.dark.png +0 -0
- package/registry/examples/field/native/select.light.png +0 -0
- package/registry/examples/footnote/notes.d.ts +4 -0
- package/registry/examples/footnote/notes.js +24 -0
- package/registry/examples/footnote/notes.tsx +19 -0
- package/registry/examples/force-update-screen/native/default.dark.png +0 -0
- package/registry/examples/force-update-screen/native/default.light.png +0 -0
- package/registry/examples/form/native/amount.dark.png +0 -0
- package/registry/examples/form/native/amount.light.png +0 -0
- package/registry/examples/form/native/audience.dark.png +0 -0
- package/registry/examples/form/native/audience.light.png +0 -0
- package/registry/examples/form/native/profile.dark.png +0 -0
- package/registry/examples/form/native/profile.light.png +0 -0
- package/registry/examples/form/native/settings.dark.png +0 -0
- package/registry/examples/form/native/settings.light.png +0 -0
- package/registry/examples/form/native/sign-up.dark.png +0 -0
- package/registry/examples/form/native/sign-up.light.png +0 -0
- package/registry/examples/form/native/upload.dark.png +0 -0
- package/registry/examples/form/native/upload.light.png +0 -0
- package/registry/examples/goal-gauge/native/default.dark.png +0 -0
- package/registry/examples/goal-gauge/native/default.light.png +0 -0
- package/registry/examples/header/native/large-title.dark.png +0 -0
- package/registry/examples/header/native/large-title.light.png +0 -0
- package/registry/examples/image-viewer/native/gallery.dark.png +0 -0
- package/registry/examples/image-viewer/native/gallery.light.png +0 -0
- package/registry/examples/list/native/default.dark.png +0 -0
- package/registry/examples/list/native/default.light.png +0 -0
- package/registry/examples/list/native/infinite.dark.png +0 -0
- package/registry/examples/list/native/infinite.light.png +0 -0
- package/registry/examples/list/native/states.dark.png +0 -0
- package/registry/examples/list/native/states.light.png +0 -0
- package/registry/examples/loader/native/block.dark.png +0 -0
- package/registry/examples/loader/native/block.light.png +0 -0
- package/registry/examples/loader/native/branded.dark.png +0 -0
- package/registry/examples/loader/native/branded.light.png +0 -0
- package/registry/examples/loader/native/job-wait.dark.png +0 -0
- package/registry/examples/loader/native/job-wait.light.png +0 -0
- package/registry/examples/maintenance-screen/native/default.dark.png +0 -0
- package/registry/examples/maintenance-screen/native/default.light.png +0 -0
- package/registry/examples/map/native/location-picker.dark.png +0 -0
- package/registry/examples/map/native/location-picker.light.png +0 -0
- package/registry/examples/map/native/places.dark.png +0 -0
- package/registry/examples/map/native/places.light.png +0 -0
- package/registry/examples/markdown/native/ai-stream.dark.png +0 -0
- package/registry/examples/markdown/native/ai-stream.light.png +0 -0
- package/registry/examples/markdown/native/basic.dark.png +0 -0
- package/registry/examples/markdown/native/basic.light.png +0 -0
- package/registry/examples/mascot-state/native/default.dark.png +0 -0
- package/registry/examples/mascot-state/native/default.light.png +0 -0
- package/registry/examples/mascots/native/crane.dark.png +0 -0
- package/registry/examples/mascots/native/crane.light.png +0 -0
- package/registry/examples/mascots/native/default.dark.png +0 -0
- package/registry/examples/mascots/native/default.light.png +0 -0
- package/registry/examples/mascots/native/lovebird.dark.png +0 -0
- package/registry/examples/mascots/native/lovebird.light.png +0 -0
- package/registry/examples/mascots/native/phoenix.dark.png +0 -0
- package/registry/examples/mascots/native/phoenix.light.png +0 -0
- package/registry/examples/match-dialog/native/its-a-match.dark.png +0 -0
- package/registry/examples/match-dialog/native/its-a-match.light.png +0 -0
- package/registry/examples/media-capture/native/photo.dark.png +0 -0
- package/registry/examples/media-capture/native/photo.light.png +0 -0
- package/registry/examples/media-picker/native/story.dark.png +0 -0
- package/registry/examples/media-picker/native/story.light.png +0 -0
- package/registry/examples/meta-row/native/video.dark.png +0 -0
- package/registry/examples/meta-row/native/video.light.png +0 -0
- package/registry/examples/meter/native/credits.dark.png +0 -0
- package/registry/examples/meter/native/credits.light.png +0 -0
- package/registry/examples/meter/native/split-ring.dark.png +0 -0
- package/registry/examples/meter/native/split-ring.light.png +0 -0
- package/registry/examples/number-ticker/native/balance.dark.png +0 -0
- package/registry/examples/number-ticker/native/balance.light.png +0 -0
- package/registry/examples/onboarding/native/first-launch.dark.png +0 -0
- package/registry/examples/onboarding/native/first-launch.light.png +0 -0
- package/registry/examples/otp-input/native/invalid.dark.png +0 -0
- package/registry/examples/otp-input/native/invalid.light.png +0 -0
- package/registry/examples/otp-input/native/verify.dark.png +0 -0
- package/registry/examples/otp-input/native/verify.light.png +0 -0
- package/registry/examples/page-index/docs.d.ts +4 -0
- package/registry/examples/page-index/docs.js +33 -0
- package/registry/examples/page-index/docs.tsx +27 -0
- package/registry/examples/pagination/native/cursor.dark.png +0 -0
- package/registry/examples/pagination/native/cursor.light.png +0 -0
- package/registry/examples/pagination/native/pages.dark.png +0 -0
- package/registry/examples/pagination/native/pages.light.png +0 -0
- package/registry/examples/permission-prompt/native/blocked.dark.png +0 -0
- package/registry/examples/permission-prompt/native/blocked.light.png +0 -0
- package/registry/examples/permission-prompt/native/camera.dark.png +0 -0
- package/registry/examples/permission-prompt/native/camera.light.png +0 -0
- package/registry/examples/photo-grid/native/profile-photos.dark.png +0 -0
- package/registry/examples/photo-grid/native/profile-photos.light.png +0 -0
- package/registry/examples/profile-card/native/default.dark.png +0 -0
- package/registry/examples/profile-card/native/default.light.png +0 -0
- package/registry/examples/progress/native/bar.dark.png +0 -0
- package/registry/examples/progress/native/bar.light.png +0 -0
- package/registry/examples/progress/native/indeterminate.dark.png +0 -0
- package/registry/examples/progress/native/indeterminate.light.png +0 -0
- package/registry/examples/progress/native/ring.dark.png +0 -0
- package/registry/examples/progress/native/ring.light.png +0 -0
- package/registry/examples/pull-to-refresh/native/branded.dark.png +0 -0
- package/registry/examples/pull-to-refresh/native/branded.light.png +0 -0
- package/registry/examples/pull-to-refresh/native/feed.dark.png +0 -0
- package/registry/examples/pull-to-refresh/native/feed.light.png +0 -0
- package/registry/examples/radio-group/native/buttons.dark.png +0 -0
- package/registry/examples/radio-group/native/buttons.light.png +0 -0
- package/registry/examples/radio-group/native/cards.dark.png +0 -0
- package/registry/examples/radio-group/native/cards.light.png +0 -0
- package/registry/examples/radio-group/native/list.dark.png +0 -0
- package/registry/examples/radio-group/native/list.light.png +0 -0
- package/registry/examples/radio-group/native/segmented.dark.png +0 -0
- package/registry/examples/radio-group/native/segmented.light.png +0 -0
- package/registry/examples/screen/native/app-shell.dark.png +0 -0
- package/registry/examples/screen/native/app-shell.light.png +0 -0
- package/registry/examples/screen/native/auth.dark.png +0 -0
- package/registry/examples/screen/native/auth.light.png +0 -0
- package/registry/examples/screen/native/chat.dark.png +0 -0
- package/registry/examples/screen/native/chat.light.png +0 -0
- package/registry/examples/screen/native/feed.dark.png +0 -0
- package/registry/examples/screen/native/feed.light.png +0 -0
- package/registry/examples/screen/native/map.dark.png +0 -0
- package/registry/examples/screen/native/map.light.png +0 -0
- package/registry/examples/screen/native/notifications.dark.png +0 -0
- package/registry/examples/screen/native/notifications.light.png +0 -0
- package/registry/examples/screen/native/profile.dark.png +0 -0
- package/registry/examples/screen/native/profile.light.png +0 -0
- package/registry/examples/screen/native/settings.dark.png +0 -0
- package/registry/examples/screen/native/settings.light.png +0 -0
- package/registry/examples/search-field/native/cancel.dark.png +0 -0
- package/registry/examples/search-field/native/cancel.light.png +0 -0
- package/registry/examples/search-field/native/default.dark.png +0 -0
- package/registry/examples/search-field/native/default.light.png +0 -0
- package/registry/examples/segmented/native/default.dark.png +0 -0
- package/registry/examples/segmented/native/default.light.png +0 -0
- package/registry/examples/segmented/native/small.dark.png +0 -0
- package/registry/examples/segmented/native/small.light.png +0 -0
- package/registry/examples/settings-layout/native/account.dark.png +0 -0
- package/registry/examples/settings-layout/native/account.light.png +0 -0
- package/registry/examples/showcase/native/slides.dark.png +0 -0
- package/registry/examples/showcase/native/slides.light.png +0 -0
- package/registry/examples/skeleton/native/shapes.dark.png +0 -0
- package/registry/examples/skeleton/native/shapes.light.png +0 -0
- package/registry/examples/slider/native/default.dark.png +0 -0
- package/registry/examples/slider/native/default.light.png +0 -0
- package/registry/examples/slider/native/range.dark.png +0 -0
- package/registry/examples/slider/native/range.light.png +0 -0
- package/registry/examples/slider/native/stepped.dark.png +0 -0
- package/registry/examples/slider/native/stepped.light.png +0 -0
- package/registry/examples/slider/native/vertical.dark.png +0 -0
- package/registry/examples/slider/native/vertical.light.png +0 -0
- package/registry/examples/specimen-tag/product.d.ts +4 -0
- package/registry/examples/specimen-tag/product.js +28 -0
- package/registry/examples/specimen-tag/product.tsx +25 -0
- package/registry/examples/specimen-tag/stamps.d.ts +4 -0
- package/registry/examples/specimen-tag/stamps.js +16 -0
- package/registry/examples/specimen-tag/stamps.tsx +13 -0
- package/registry/examples/specimen-tag/wire.d.ts +4 -0
- package/registry/examples/specimen-tag/wire.js +16 -0
- package/registry/examples/specimen-tag/wire.tsx +20 -0
- package/registry/examples/spinner/native/sizes.dark.png +0 -0
- package/registry/examples/spinner/native/sizes.light.png +0 -0
- package/registry/examples/splash-handoff/native/default.dark.png +0 -0
- package/registry/examples/splash-handoff/native/default.light.png +0 -0
- package/registry/examples/step-progress/native/sign-up.dark.png +0 -0
- package/registry/examples/step-progress/native/sign-up.light.png +0 -0
- package/registry/examples/stepper/native/run.dark.png +0 -0
- package/registry/examples/stepper/native/run.light.png +0 -0
- package/registry/examples/swipe-deck/native/discover.dark.png +0 -0
- package/registry/examples/swipe-deck/native/discover.light.png +0 -0
- package/registry/examples/swipeable-row/native/conversation.dark.png +0 -0
- package/registry/examples/swipeable-row/native/conversation.light.png +0 -0
- package/registry/examples/switch/native/default.dark.png +0 -0
- package/registry/examples/switch/native/default.light.png +0 -0
- package/registry/examples/switch/native/settings.dark.png +0 -0
- package/registry/examples/switch/native/settings.light.png +0 -0
- package/registry/examples/tab-bar/native/main-sections.dark.png +0 -0
- package/registry/examples/tab-bar/native/main-sections.light.png +0 -0
- package/registry/examples/tabs/native/sections.dark.png +0 -0
- package/registry/examples/tabs/native/sections.light.png +0 -0
- package/registry/examples/tabs/native/segmented.dark.png +0 -0
- package/registry/examples/tabs/native/segmented.light.png +0 -0
- package/registry/examples/tag-selector/native/interests.dark.png +0 -0
- package/registry/examples/tag-selector/native/interests.light.png +0 -0
- package/registry/examples/toast/native/notification.dark.png +0 -0
- package/registry/examples/toast/native/notification.light.png +0 -0
- package/registry/examples/toast/native/snackbar.dark.png +0 -0
- package/registry/examples/toast/native/snackbar.light.png +0 -0
- package/registry/examples/toast/native/tones.dark.png +0 -0
- package/registry/examples/toast/native/tones.light.png +0 -0
- package/registry/examples/txt/native/tones.dark.png +0 -0
- package/registry/examples/txt/native/tones.light.png +0 -0
- package/registry/examples/txt/native/variants.dark.png +0 -0
- package/registry/examples/txt/native/variants.light.png +0 -0
- package/registry/examples/update-prompt/native/default.dark.png +0 -0
- package/registry/examples/update-prompt/native/default.light.png +0 -0
- package/registry/examples/verified-badge/native/verified.dark.png +0 -0
- package/registry/examples/verified-badge/native/verified.light.png +0 -0
- package/registry/examples/vertical-video/native/rail.dark.png +0 -0
- package/registry/examples/vertical-video/native/rail.light.png +0 -0
- package/registry/examples/video-player/native/default.dark.png +0 -0
- package/registry/examples/video-player/native/default.light.png +0 -0
- package/registry/examples/waveform/native/card.dark.png +0 -0
- package/registry/examples/waveform/native/card.light.png +0 -0
- package/registry/field.json +1 -1
- package/registry/file-upload.json +1 -1
- package/registry/filter-bar.json +1 -1
- package/registry/footnote.json +220 -0
- package/registry/force-update-screen.json +1 -1
- package/registry/form.json +3 -3
- package/registry/gallery-page.json +1 -1
- package/registry/genui.json +1 -1
- package/registry/glow-card.json +1 -1
- package/registry/goal-gauge.json +1 -1
- package/registry/how-it-works-page.json +1 -1
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +160 -5
- package/registry/iso.json +1 -1
- package/registry/kanban.json +1 -1
- package/registry/kbd.json +1 -1
- package/registry/landing-page.json +1 -1
- package/registry/landscape.json +1 -1
- package/registry/language-switch.json +2 -2
- package/registry/legal-page.json +1 -1
- package/registry/link-card.json +1 -1
- package/registry/list.json +1 -1
- package/registry/loader.json +2 -2
- package/registry/longform-page.json +1 -1
- package/registry/maintenance-screen.json +1 -1
- package/registry/map.json +3 -3
- package/registry/markdown.json +1 -1
- package/registry/marketing-layout.json +1 -1
- package/registry/marquee.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +1 -1
- package/registry/match-dialog.json +1 -1
- package/registry/media-capture.json +1 -1
- package/registry/media-gallery.json +1 -1
- package/registry/media-grid.json +1 -1
- package/registry/meta-row.json +1 -1
- package/registry/meter.json +2 -2
- package/registry/nav-bar.json +3 -3
- package/registry/number-ticker.json +1 -1
- package/registry/opening-hours.json +1 -1
- package/registry/page-header.json +1 -1
- package/registry/page-hero.json +1 -1
- package/registry/page-index.json +168 -0
- package/registry/page.json +89 -5
- package/registry/pagination.json +1 -1
- package/registry/photo-grid.json +2 -2
- package/registry/pointer-light.json +1 -1
- package/registry/popover.json +1 -1
- package/registry/pricing-page.json +1 -1
- package/registry/product-page.json +1 -1
- package/registry/profile-card.json +1 -1
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +1 -1
- package/registry/radio-group.json +2 -2
- package/registry/rail-nav.json +3 -3
- package/registry/recipes.json +1 -1
- package/registry/scroll-stage.json +1 -1
- package/registry/search-field.json +2 -2
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +1 -1
- package/registry/service-card.json +2 -2
- package/registry/settings-layout.json +1 -1
- package/registry/showcase.json +1 -1
- package/registry/site-footer.json +3 -3
- package/registry/sites.json +2 -2
- package/registry/skeleton.json +1 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +1 -1
- package/registry/slot-picker.json +1 -1
- package/registry/slot.json +1 -1
- package/registry/specimen-tag.json +269 -0
- package/registry/spinner.json +1 -1
- package/registry/split-view.json +1 -1
- package/registry/stage-banner.json +1 -1
- package/registry/stat.json +2 -2
- package/registry/status-page.json +1 -1
- package/registry/step-progress.json +1 -1
- package/registry/step-showcase.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/sticky-action.json +2 -2
- package/registry/swipe-deck.json +2 -2
- package/registry/switch.json +1 -1
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +1 -1
- package/registry/terminal-replay.json +1 -1
- package/registry/theme.json +1 -1
- package/registry/toast.json +1 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +1 -1
- package/registry/tree-view.json +1 -1
- package/registry/update-prompt.json +1 -1
- package/registry/verified-badge.json +1 -1
- package/registry/vertical-video.json +1 -1
- package/registry/video-player.json +1 -1
- package/registry/video-trimmer.json +1 -1
- package/registry/virtual.json +1 -1
- package/registry/waveform.json +1 -1
- package/dist/chunk-2AJ4NJUF.js.map +0 -1
- package/dist/chunk-2PNLHZLT.js.map +0 -1
- package/dist/chunk-3S4GHSPZ.js.map +0 -1
- package/dist/chunk-LZNZLCOE.js.map +0 -1
- package/dist/chunk-NJFCSVPT.js.map +0 -1
- package/dist/chunk-REPTKUJ6.js.map +0 -1
- /package/dist/{chunk-KIBICUZK.js.map → chunk-K2ZYB4HP.js.map} +0 -0
package/dist/meter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/meter/meter.tsx"],"sourcesContent":["// Server-safe. A measure within a known range — a quota, a balance, a share — as opposed to the progress of a task.\n// `role=\"meter\"`, its value in words; thresholds turn it to warning then danger (or the reverse when high is good);\n// split into parts (90 % to the creator, 10 % to the platform) it becomes a stacked bar or ring with its legend: the\n// text version of what it draws.\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nexport const meter = tv({\n slots: {\n root: \"flex w-full flex-col gap-1.5\",\n header: \"flex items-baseline gap-2 text-xs\",\n caption: \"min-w-0 flex-1 truncate font-medium text-fg\",\n figure: \"shrink-0 tabular-nums text-fg-secondary\",\n track: \"relative flex h-2 w-full gap-0.5 overflow-hidden rounded-full bg-surface-3\",\n fill: \"h-full rounded-full transition-[width] duration-700 motion-reduce:transition-none\",\n legend: \"mt-1 flex flex-wrap gap-x-4 gap-y-1 text-xs text-fg-secondary\",\n swatch: \"inline-block h-2 w-2 shrink-0 rounded-full\",\n ring: \"relative inline-flex shrink-0 items-center justify-center\",\n center: \"absolute inset-0 flex flex-col items-center justify-center text-center\",\n },\n variants: {\n size: { sm: { track: \"h-1.5\", ring: \"h-14 w-14\" }, md: { ring: \"h-24 w-24\" }, lg: { track: \"h-3\", ring: \"h-36 w-36\" } },\n },\n defaultVariants: { size: \"md\" },\n});\n\n/** The colour of a fill: by tone (thresholds) or by part (the accent, a neutral, accent-2, a lighter neutral). */\nconst BG = { ok: \"bg-accent\", success: \"bg-success\", warning: \"bg-warning\", danger: \"bg-danger\" } as const;\nconst STROKE = { ok: \"stroke-accent\", success: \"stroke-success\", warning: \"stroke-warning\", danger: \"stroke-danger\" } as const;\nconst PART_BG = [\"bg-accent\", \"bg-fg-secondary\", \"bg-accent-2\", \"bg-border-strong\"];\nconst PART_STROKE = [\"stroke-accent\", \"stroke-fg-secondary\", \"stroke-accent-2\", \"stroke-border-strong\"];\n\nexport interface MeterPart {\n /** Its name (“To the creator”) — passed translated. */\n label: string;\n /** Its value, in the meter's unit. */\n value: number;\n /** Its value in words (“€9.00”), in the legend and for assistive technology; default: its percentage. */\n valueText?: string;\n}\n\nexport type MeterProps = Omit<React.ComponentProps<\"div\">, \"children\"> & {\n /** The accessible name (“Storage”, “Split of a tip”) — passed translated; shown with `showLabel`. */\n label: string;\n /** The value, between `min` and `max` (ignored with `parts`). */\n value?: number;\n /**\n * The bottom of the range.\n * @default 0\n */\n min?: number;\n /**\n * The top of the range.\n * @default 100\n */\n max?: number;\n /** The value in words (“42 GB of 50 GB”) — passed translated; default: the percentage. */\n valueText?: string;\n /**\n * Ratios (0–1) where the tone changes: past `high` it is in danger, past `low` in warning — or the reverse with\n * `optimum=\"high\"` (a balance: the lower, the worse). Without thresholds the fill is the brand accent.\n */\n thresholds?: { readonly low: number; readonly high: number };\n /**\n * Which end is good.\n * @default \"low\"\n */\n optimum?: \"low\" | \"high\";\n /** Split into parts that add up to `max`: a stacked bar or ring, with its legend. */\n parts?: readonly MeterPart[];\n /**\n * bar · ring.\n * @default \"bar\"\n */\n variant?: \"bar\" | \"ring\";\n /**\n * sm · md · lg: the bar's thickness, the ring's diameter.\n * @default \"md\"\n */\n size?: \"sm\" | \"md\" | \"lg\";\n /** Shows the label and the value above the bar. */\n showLabel?: boolean;\n /** A ring's centre: the value, a word. */\n children?: React.ReactNode;\n};\n\n/** A measure within a range — a quota, a balance, a share — toned by thresholds or split into parts. */\nexport function Meter({\n label,\n value = 0,\n min = 0,\n max = 100,\n valueText,\n thresholds,\n optimum = \"low\",\n parts,\n variant = \"bar\",\n size = \"md\",\n showLabel,\n className,\n children,\n ...props\n}: MeterProps) {\n const s = meter({ size });\n const span = max - min || 1;\n const ratio = Math.min(1, Math.max(0, (value - min) / span));\n const level = !thresholds ? \"ok\" : ratio >= thresholds.high ? (optimum === \"low\" ? \"danger\" : \"success\") : ratio >= thresholds.low ? \"warning\" : optimum === \"low\" ? \"success\" : \"danger\";\n const words = valueText ?? `${Math.round(ratio * 100)} %`;\n const shares = (parts ?? []).map((p, i) => ({ ...p, i, ratio: Math.min(1, Math.max(0, p.value / span)), words: p.valueText ?? `${Math.round((p.value / span) * 100)} %` }));\n const a11y = parts\n ? { role: \"group\" as const, \"aria-label\": label }\n : { role: \"meter\" as const, \"aria-label\": label, \"aria-valuemin\": min, \"aria-valuemax\": max, \"aria-valuenow\": Math.min(max, Math.max(min, value)), \"aria-valuetext\": words };\n const legend = parts && (\n <ul className={s.legend()}>\n {shares.map((p) => (\n <li key={p.i} className=\"flex items-center gap-1.5\">\n <span aria-hidden className={[s.swatch(), PART_BG[p.i % PART_BG.length]].join(\" \")} />\n <span className=\"text-fg\">{p.label}</span>\n <span className=\"tabular-nums\">{p.words}</span>\n </li>\n ))}\n </ul>\n );\n\n if (variant === \"ring\") {\n const r = 44;\n let offset = 0;\n const arcs = parts\n ? shares.map((p) => {\n const arc = { cls: PART_STROKE[p.i % PART_STROKE.length]!, len: p.ratio * 100, start: offset };\n offset += arc.len;\n return arc;\n })\n : [{ cls: STROKE[level], len: ratio * 100, start: 0 }];\n return (\n <div {...a11y} data-level={parts ? undefined : level} className={[\"inline-flex flex-col items-center gap-2\", className].filter(Boolean).join(\" \")} {...props}>\n <div className={s.ring()}>\n <svg viewBox=\"0 0 100 100\" className=\"h-full w-full -rotate-90\" aria-hidden>\n <circle cx=\"50\" cy=\"50\" r={r} fill=\"none\" strokeWidth=\"9\" className=\"stroke-border-default\" />\n {arcs.map((a, i) => (\n <circle\n key={i}\n cx=\"50\"\n cy=\"50\"\n r={r}\n fill=\"none\"\n strokeWidth=\"9\"\n pathLength={100}\n strokeDasharray={`${Math.max(0, a.len - (parts ? 1 : 0))} ${100 - Math.max(0, a.len - (parts ? 1 : 0))}`}\n strokeDashoffset={-a.start}\n className={[a.cls, \"transition-[stroke-dasharray] duration-700 motion-reduce:transition-none\"].join(\" \")}\n />\n ))}\n </svg>\n {children !== undefined && <div className={s.center()}>{children}</div>}\n </div>\n {legend}\n </div>\n );\n }\n\n return (\n <div {...a11y} data-level={parts ? undefined : level} className={s.root({ className })} {...props}>\n {showLabel && (\n <div aria-hidden className={s.header()}>\n <span className={s.caption()}>{label}</span>\n {!parts && <span className={s.figure()}>{words}</span>}\n </div>\n )}\n <div aria-hidden className={s.track()}>\n {parts ? (\n shares.map((p) => <span key={p.i} className={[s.fill(), PART_BG[p.i % PART_BG.length]].join(\" \")} style={{ width: `${p.ratio * 100}%` }} />)\n ) : (\n <span className={[s.fill(), BG[level]].join(\" \")} style={{ width: `${ratio * 100}%` }} />\n )}\n </div>\n {legend}\n </div>\n );\n}\n\nexport interface MeterValueProps {\n /** The figure. */\n value: React.ReactNode;\n /** A word under it. */\n caption?: React.ReactNode;\n}\n\n/** For the ring's centre when it shows a figure and a word. */\nexport function MeterValue({ value, caption }: MeterValueProps) {\n return (\n <>\n <span className=\"font-display text-lg font-semibold text-fg tabular-nums\">{value}</span>\n {caption && <span className=\"text-[10px] uppercase tracking-wide text-fg-secondary\">{caption}</span>}\n </>\n );\n}\n"],"mappings":";AAKA,SAAS,UAAU;AA8GX,SA4EJ,UA3EM,KADF;AA5GD,IAAM,QAAQ,GAAG;AAAA,EACtB,OAAO;AAAA,IACL,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,QAAQ;AAAA,EACV;AAAA,EACA,UAAU;AAAA,IACR,MAAM,EAAE,IAAI,EAAE,OAAO,SAAS,MAAM,YAAY,GAAG,IAAI,EAAE,MAAM,YAAY,GAAG,IAAI,EAAE,OAAO,OAAO,MAAM,YAAY,EAAE;AAAA,EACxH;AAAA,EACA,iBAAiB,EAAE,MAAM,KAAK;AAChC,CAAC;AAGD,IAAM,KAAK,EAAE,IAAI,aAAa,SAAS,cAAc,SAAS,cAAc,QAAQ,YAAY;AAChG,IAAM,SAAS,EAAE,IAAI,iBAAiB,SAAS,kBAAkB,SAAS,kBAAkB,QAAQ,gBAAgB;AACpH,IAAM,UAAU,CAAC,aAAa,mBAAmB,eAAe,kBAAkB;AAClF,IAAM,cAAc,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0EAA0E,EAAE,KAAK,GAAG;AAAA;AAAA,YATlG;AAAA,UAUP,CACD;AAAA,WACH;AAAA,QACC,aAAa,UAAa,oBAAC,SAAI,WAAW,EAAE,OAAO,GAAI,UAAS;AAAA,SACnE;AAAA,MACC;AAAA,OACH;AAAA,EAEJ;AAEA,SACE,qBAAC,SAAK,GAAG,MAAM,cAAY,QAAQ,SAAY,OAAO,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,GAAI,GAAG,OACzF;AAAA,iBACC,qBAAC,SAAI,eAAW,MAAC,WAAW,EAAE,OAAO,GACnC;AAAA,0BAAC,UAAK,WAAW,EAAE,QAAQ,GAAI,iBAAM;AAAA,MACpC,CAAC,SAAS,oBAAC,UAAK,WAAW,EAAE,OAAO,GAAI,iBAAM;AAAA,OACjD;AAAA,IAEF,oBAAC,SAAI,eAAW,MAAC,WAAW,EAAE,MAAM,GACjC,kBACC,OAAO,IAAI,CAAC,MAAM,oBAAC,UAAe,WAAW,CAAC,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,QAAQ,MAAM,CAAC,EAAE,KAAK,GAAG,GAAG,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,IAAI,KAAzG,EAAE,CAA0G,CAAE,IAE3I,oBAAC,UAAK,WAAW,CAAC,EAAE,KAAK,GAAG,GAAG,KAAK,CAAC,EAAE,KAAK,GAAG,GAAG,OAAO,EAAE,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,GAE3F;AAAA,IACC;AAAA,KACH;AAEJ;AAUO,SAAS,WAAW,EAAE,OAAO,QAAQ,GAAoB;AAC9D,SACE,iCACE;AAAA,wBAAC,UAAK,WAAU,2DAA2D,iBAAM;AAAA,IAChF,WAAW,oBAAC,UAAK,WAAU,yDAAyD,mBAAQ;AAAA,KAC/F;AAEJ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/meter/meter.tsx"],"sourcesContent":["// Server-safe. A measure within a known range — a quota, a balance, a share — as opposed to the progress of a task.\n// `role=\"meter\"`, its value in words; thresholds turn it to warning then danger (or the reverse when high is good);\n// split into parts (90 % to the creator, 10 % to the platform) it becomes a stacked bar or ring with its legend: the\n// text version of what it draws.\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nexport const meter = tv({\n slots: {\n root: \"flex w-full flex-col gap-1.5\",\n header: \"flex items-baseline gap-2 text-xs\",\n caption: \"min-w-0 flex-1 truncate font-medium text-fg\",\n figure: \"shrink-0 tabular-nums text-fg-secondary\",\n track: \"relative flex h-2 w-full gap-0.5 overflow-hidden rounded-full bg-surface-3\",\n fill: \"h-full rounded-full transition-[width] duration-700 motion-reduce:transition-none\",\n legend: \"mt-1 flex flex-wrap gap-x-4 gap-y-1 text-xs text-fg-secondary\",\n swatch: \"inline-block h-2 w-2 shrink-0 rounded-full\",\n ring: \"relative inline-flex shrink-0 items-center justify-center\",\n center: \"absolute inset-0 flex flex-col items-center justify-center text-center\",\n },\n variants: {\n size: { sm: { track: \"h-1.5\", ring: \"h-14 w-14\" }, md: { ring: \"h-24 w-24\" }, lg: { track: \"h-3\", ring: \"h-36 w-36\" } },\n },\n defaultVariants: { size: \"md\" },\n});\n\n/** The colour of a fill: by tone (thresholds) or by part (the accent, a neutral, accent-2, a lighter neutral). */\nconst BG = { ok: \"bg-accent\", success: \"bg-success\", warning: \"bg-warning\", danger: \"bg-danger\" } as const;\nconst STROKE = { ok: \"stroke-accent\", success: \"stroke-success\", warning: \"stroke-warning\", danger: \"stroke-danger\" } as const;\nconst PART_BG = [\"bg-accent\", \"bg-fg-secondary\", \"bg-accent-2\", \"bg-border-strong\"];\nconst PART_STROKE = [\"stroke-accent\", \"stroke-fg-secondary\", \"stroke-accent-2\", \"stroke-border-strong\"];\n\nexport interface MeterPart {\n /** Its name (“To the creator”) — passed translated. */\n label: string;\n /** Its value, in the meter's unit. */\n value: number;\n /** Its value in words (“€9.00”), in the legend and for assistive technology; default: its percentage. */\n valueText?: string;\n}\n\nexport type MeterProps = Omit<React.ComponentProps<\"div\">, \"children\"> & {\n /** The accessible name (“Storage”, “Split of a tip”) — passed translated; shown with `showLabel`. */\n label: string;\n /** The value, between `min` and `max` (ignored with `parts`). */\n value?: number;\n /**\n * The bottom of the range.\n * @default 0\n */\n min?: number;\n /**\n * The top of the range.\n * @default 100\n */\n max?: number;\n /** The value in words (“42 GB of 50 GB”) — passed translated; default: the percentage. */\n valueText?: string;\n /**\n * Ratios (0–1) where the tone changes: past `high` it is in danger, past `low` in warning — or the reverse with\n * `optimum=\"high\"` (a balance: the lower, the worse). Without thresholds the fill is the brand accent.\n */\n thresholds?: { readonly low: number; readonly high: number };\n /**\n * Which end is good.\n * @default \"low\"\n */\n optimum?: \"low\" | \"high\";\n /** Split into parts that add up to `max`: a stacked bar or ring, with its legend. */\n parts?: readonly MeterPart[];\n /**\n * bar · ring.\n * @default \"bar\"\n */\n variant?: \"bar\" | \"ring\";\n /**\n * sm · md · lg: the bar's thickness, the ring's diameter.\n * @default \"md\"\n */\n size?: \"sm\" | \"md\" | \"lg\";\n /** Shows the label and the value above the bar. */\n showLabel?: boolean;\n /** A ring's centre: the value, a word. */\n children?: React.ReactNode;\n};\n\n/** A measure within a range — a quota, a balance, a share — toned by thresholds or split into parts. */\nexport function Meter({\n label,\n value = 0,\n min = 0,\n max = 100,\n valueText,\n thresholds,\n optimum = \"low\",\n parts,\n variant = \"bar\",\n size = \"md\",\n showLabel,\n className,\n children,\n ...props\n}: MeterProps) {\n const s = meter({ size });\n const span = max - min || 1;\n const ratio = Math.min(1, Math.max(0, (value - min) / span));\n const level = !thresholds ? \"ok\" : ratio >= thresholds.high ? (optimum === \"low\" ? \"danger\" : \"success\") : ratio >= thresholds.low ? \"warning\" : optimum === \"low\" ? \"success\" : \"danger\";\n const words = valueText ?? `${Math.round(ratio * 100)} %`;\n const shares = (parts ?? []).map((p, i) => ({ ...p, i, ratio: Math.min(1, Math.max(0, p.value / span)), words: p.valueText ?? `${Math.round((p.value / span) * 100)} %` }));\n const a11y = parts\n ? { role: \"group\" as const, \"aria-label\": label }\n : { role: \"meter\" as const, \"aria-label\": label, \"aria-valuemin\": min, \"aria-valuemax\": max, \"aria-valuenow\": Math.min(max, Math.max(min, value)), \"aria-valuetext\": words };\n const legend = parts && (\n <ul className={s.legend()}>\n {shares.map((p) => (\n <li key={p.i} className=\"flex items-center gap-1.5\">\n <span aria-hidden className={[s.swatch(), PART_BG[p.i % PART_BG.length]].join(\" \")} />\n <span className=\"text-fg\">{p.label}</span>\n <span className=\"tabular-nums\">{p.words}</span>\n </li>\n ))}\n </ul>\n );\n\n if (variant === \"ring\") {\n const r = 44;\n let offset = 0;\n const arcs = parts\n ? shares.map((p) => {\n const arc = { cls: PART_STROKE[p.i % PART_STROKE.length]!, len: p.ratio * 100, start: offset };\n offset += arc.len;\n return arc;\n })\n : [{ cls: STROKE[level], len: ratio * 100, start: 0 }];\n return (\n <div {...a11y} data-level={parts ? undefined : level} className={[\"inline-flex flex-col items-center gap-2\", className].filter(Boolean).join(\" \")} {...props}>\n <div className={s.ring()}>\n <svg viewBox=\"0 0 100 100\" className=\"h-full w-full -rotate-90\" aria-hidden>\n <circle cx=\"50\" cy=\"50\" r={r} fill=\"none\" strokeWidth=\"9\" className=\"stroke-border-default\" />\n {arcs.map((a, i) => (\n <circle\n key={i}\n cx=\"50\"\n cy=\"50\"\n r={r}\n fill=\"none\"\n strokeWidth=\"9\"\n pathLength={100}\n strokeDasharray={`${Math.max(0, a.len - (parts ? 1 : 0))} ${100 - Math.max(0, a.len - (parts ? 1 : 0))}`}\n strokeDashoffset={-a.start}\n className={[a.cls, \"transition-[stroke-dasharray] duration-700 motion-reduce:transition-none\"].join(\" \")}\n />\n ))}\n </svg>\n {children !== undefined && <div className={s.center()}>{children}</div>}\n </div>\n {legend}\n </div>\n );\n }\n\n return (\n <div {...a11y} data-level={parts ? undefined : level} className={s.root({ className })} {...props}>\n {showLabel && (\n <div aria-hidden className={s.header()}>\n <span className={s.caption()}>{label}</span>\n {!parts && <span className={s.figure()}>{words}</span>}\n </div>\n )}\n <div aria-hidden className={s.track()}>\n {parts ? (\n shares.map((p) => <span key={p.i} className={[s.fill(), PART_BG[p.i % PART_BG.length]].join(\" \")} style={{ width: `${p.ratio * 100}%` }} />)\n ) : (\n <span className={[s.fill(), BG[level]].join(\" \")} style={{ width: `${ratio * 100}%` }} />\n )}\n </div>\n {legend}\n </div>\n );\n}\n\nexport interface MeterValueProps {\n /** The figure. */\n value: React.ReactNode;\n /** A word under it. */\n caption?: React.ReactNode;\n}\n\n/** For the ring's centre when it shows a figure and a word. */\nexport function MeterValue({ value, caption }: MeterValueProps) {\n return (\n <>\n <span className=\"font-display text-lg font-semibold text-fg tabular-nums\">{value}</span>\n {caption && <span className=\"text-[10px] text-fg-secondary\">{caption}</span>}\n </>\n );\n}\n"],"mappings":";AAKA,SAAS,UAAU;AA8GX,SA4EJ,UA3EM,KADF;AA5GD,IAAM,QAAQ,GAAG;AAAA,EACtB,OAAO;AAAA,IACL,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,QAAQ;AAAA,EACV;AAAA,EACA,UAAU;AAAA,IACR,MAAM,EAAE,IAAI,EAAE,OAAO,SAAS,MAAM,YAAY,GAAG,IAAI,EAAE,MAAM,YAAY,GAAG,IAAI,EAAE,OAAO,OAAO,MAAM,YAAY,EAAE;AAAA,EACxH;AAAA,EACA,iBAAiB,EAAE,MAAM,KAAK;AAChC,CAAC;AAGD,IAAM,KAAK,EAAE,IAAI,aAAa,SAAS,cAAc,SAAS,cAAc,QAAQ,YAAY;AAChG,IAAM,SAAS,EAAE,IAAI,iBAAiB,SAAS,kBAAkB,SAAS,kBAAkB,QAAQ,gBAAgB;AACpH,IAAM,UAAU,CAAC,aAAa,mBAAmB,eAAe,kBAAkB;AAClF,IAAM,cAAc,CAAC,iB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
17
17
|
@keyframes kz-page-in {
|
|
18
|
-
from { opacity: 0;
|
|
18
|
+
from { opacity: 0; }
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
/* Reveal on scroll
|
|
21
|
+
/* Reveal on scroll (Cahier, ADR-004): nothing rises, nothing blurs. A block settles like ink on paper — it appears
|
|
22
|
+
in place; `[data-reveal="ink"]` is written left to right, as a pen draws a line (MotionObserver adds .kz-in). */
|
|
22
23
|
[data-reveal] {
|
|
23
24
|
opacity: 0;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
transition: opacity 0.6s var(--kz-ease);
|
|
26
|
+
transition-delay: var(--kz-delay, 0ms);
|
|
27
|
+
}
|
|
28
|
+
[data-reveal="ink"] {
|
|
29
|
+
opacity: 1;
|
|
30
|
+
clip-path: inset(0 100% 0 0);
|
|
31
|
+
transition: clip-path 0.7s var(--kz-ease);
|
|
27
32
|
transition-delay: var(--kz-delay, 0ms);
|
|
28
33
|
}
|
|
29
34
|
[data-reveal].kz-in {
|
|
30
35
|
opacity: 1;
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
}
|
|
37
|
+
/* Only the ink reveal clips, while it writes; once written its clip reaches far beyond its sides (nothing in the margin is cut). */
|
|
38
|
+
[data-reveal="ink"].kz-in {
|
|
39
|
+
clip-path: inset(0 -100vw 0 -100vw);
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
/* A word that rolls in (RotatingWord). */
|
|
@@ -38,7 +45,7 @@
|
|
|
38
45
|
animation: kz-word-in 0.6s var(--kz-ease) both;
|
|
39
46
|
}
|
|
40
47
|
@keyframes kz-word-in {
|
|
41
|
-
from { opacity: 0;
|
|
48
|
+
from { opacity: 0; clip-path: inset(0 100% 0 0); }
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
/* RotatingWord: every alternative shares one grid cell from the first paint (the line keeps the width of the longest
|
|
@@ -60,11 +67,9 @@
|
|
|
60
67
|
animation: kz-word-in 0.6s var(--kz-ease) both;
|
|
61
68
|
}
|
|
62
69
|
|
|
63
|
-
/* A softer reveal for schemas and dense content: shorter
|
|
70
|
+
/* A softer reveal for schemas and dense content: a shorter settle. */
|
|
64
71
|
[data-reveal="soft"] {
|
|
65
|
-
|
|
66
|
-
filter: none;
|
|
67
|
-
transition-duration: 0.6s;
|
|
72
|
+
transition-duration: 0.4s;
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
/* Retired (krizaka-ui#393): the sheen across a button, the spotlight that followed the pointer and the lift of a card.
|
|
@@ -185,41 +190,23 @@
|
|
|
185
190
|
background: linear-gradient(0deg, var(--kz-brand-gradient-from), var(--kz-brand-gradient-via) 55%, var(--kz-brand-gradient-to));
|
|
186
191
|
}
|
|
187
192
|
.kz-backdrop > [data-backdrop-layer] { position: absolute; z-index: -1; pointer-events: none; }
|
|
193
|
+
/* Retired (Cahier, ADR-004): the drifting glows, the dome of light and the perspective grid floor were template tells.
|
|
194
|
+
The layers stay harmless (they draw nothing) so an old page does not break; the ruling (`.kz-ruled`) replaces them. */
|
|
188
195
|
.kz-backdrop-drift {
|
|
189
|
-
|
|
190
|
-
background:
|
|
191
|
-
radial-gradient(38% 32% at 28% 30%, color-mix(in oklab, var(--kz-accent, #3e6f99) 14%, transparent), transparent 70%),
|
|
192
|
-
radial-gradient(34% 30% at 76% 22%, color-mix(in oklab, var(--kz-accent-2, #3e6f99) 10%, transparent), transparent 70%);
|
|
193
|
-
animation: kz-backdrop-drift 40s ease-in-out infinite alternate;
|
|
196
|
+
display: none;
|
|
194
197
|
}
|
|
195
198
|
@keyframes kz-backdrop-drift {
|
|
196
199
|
to { transform: translate3d(6%, 4%, 0) rotate(6deg); }
|
|
197
200
|
}
|
|
198
|
-
.kz-backdrop-dome
|
|
199
|
-
left: 50%;
|
|
200
|
-
top: -35%;
|
|
201
|
-
width: 110%;
|
|
202
|
-
aspect-ratio: 2 / 1;
|
|
203
|
-
transform: translateX(-50%);
|
|
204
|
-
border-radius: 50%;
|
|
205
|
-
background: radial-gradient(closest-side, color-mix(in oklab, var(--kz-accent, #3e6f99) 24%, transparent), transparent);
|
|
206
|
-
filter: blur(28px);
|
|
207
|
-
}
|
|
201
|
+
.kz-backdrop-dome,
|
|
208
202
|
.kz-backdrop-grid {
|
|
209
|
-
|
|
210
|
-
height: 55%;
|
|
211
|
-
background-image:
|
|
212
|
-
linear-gradient(to right, var(--kz-border-default) 1px, transparent 1px),
|
|
213
|
-
linear-gradient(to bottom, var(--kz-border-default) 1px, transparent 1px);
|
|
214
|
-
background-size: 48px 48px;
|
|
215
|
-
transform: perspective(640px) rotateX(62deg);
|
|
216
|
-
transform-origin: bottom;
|
|
217
|
-
mask-image: linear-gradient(to top, #000 5%, transparent 85%);
|
|
203
|
+
display: none;
|
|
218
204
|
}
|
|
205
|
+
/* A photograph behind a section is printed, not blurred: flat, desaturated, quiet. */
|
|
219
206
|
.kz-backdrop-media {
|
|
220
207
|
inset: 0;
|
|
221
|
-
filter:
|
|
222
|
-
opacity: 0.
|
|
208
|
+
filter: grayscale(1) contrast(0.9);
|
|
209
|
+
opacity: 0.22;
|
|
223
210
|
}
|
|
224
211
|
|
|
225
212
|
/* ─── The conductor's states (MotionObserver) ───
|
|
@@ -661,9 +648,9 @@ svg[data-kz-icon="ExternalIcon"] {
|
|
|
661
648
|
width: var(--kz-flow-hub);
|
|
662
649
|
height: var(--kz-flow-hub);
|
|
663
650
|
/* Opaque: the conduits end under the hub. */
|
|
664
|
-
background:
|
|
651
|
+
background: var(--kz-surface-1);
|
|
665
652
|
border-color: var(--kz-accent);
|
|
666
|
-
box-shadow: 0 0
|
|
653
|
+
box-shadow: 0 0 0 4px var(--kz-accent-soft);
|
|
667
654
|
}
|
|
668
655
|
.kz-flow-hub-mark > svg { width: 64%; height: 64%; }
|
|
669
656
|
.kz-flow-hub-label { font-weight: 700; font-size: 0.9375rem; color: var(--kz-text-primary); }
|
|
@@ -715,7 +702,7 @@ svg[data-kz-icon="ExternalIcon"] {
|
|
|
715
702
|
.kz-flow-node-mark, .kz-flow-node, .kz-flow-link { transition: none; }
|
|
716
703
|
/* At rest, the trace stands still where a reader expects it: a third of the hexagon from the top. */
|
|
717
704
|
.kz-loader-trace:not([stroke-dasharray]) { stroke-dashoffset: -8; }
|
|
718
|
-
[data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
|
|
705
|
+
[data-reveal] { opacity: 1; transform: none; filter: none; clip-path: none; transition: none; }
|
|
719
706
|
/* The band stands still and scrolls by hand; its copy goes. */
|
|
720
707
|
.kz-band > .kz-band-viewport { overflow-x: auto; scrollbar-width: thin; }
|
|
721
708
|
.kz-band-copy { display: none !important; }
|
package/dist/native/map.js
CHANGED
|
@@ -54,17 +54,17 @@ function formatDistance(meters, locale) {
|
|
|
54
54
|
|
|
55
55
|
// ../tokens/dist/native.js
|
|
56
56
|
var themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Object.freeze({
|
|
57
|
-
"surface0": "#
|
|
58
|
-
"surface1": "#
|
|
59
|
-
"surface2": "#
|
|
60
|
-
"surface3": "#
|
|
61
|
-
"media": "#
|
|
62
|
-
"borderSubtle": "rgba(
|
|
63
|
-
"borderDefault": "rgba(
|
|
64
|
-
"borderStrong": "rgba(
|
|
65
|
-
"textPrimary": "#
|
|
66
|
-
"textSecondary": "#
|
|
67
|
-
"textMuted": "#
|
|
57
|
+
"surface0": "#151b18",
|
|
58
|
+
"surface1": "#191f1c",
|
|
59
|
+
"surface2": "#1c221f",
|
|
60
|
+
"surface3": "#262e2a",
|
|
61
|
+
"media": "#1e2521",
|
|
62
|
+
"borderSubtle": "rgba(231,240,230,0.07)",
|
|
63
|
+
"borderDefault": "rgba(231,240,230,0.12)",
|
|
64
|
+
"borderStrong": "rgba(231,240,230,0.2)",
|
|
65
|
+
"textPrimary": "#ecf0ea",
|
|
66
|
+
"textSecondary": "#bcc8c0",
|
|
67
|
+
"textMuted": "#a7b4ab",
|
|
68
68
|
"textOnMedia": "#ffffff",
|
|
69
69
|
"accent": "#3e76a8",
|
|
70
70
|
"accentHover": "#346793",
|
|
@@ -73,9 +73,9 @@ var themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Object.freeze
|
|
|
73
73
|
"accent2": "#3e76a8",
|
|
74
74
|
"onAccent": "#ffffff",
|
|
75
75
|
"ring": "#3e76a8",
|
|
76
|
-
"brandGradientFrom": "#
|
|
77
|
-
"brandGradientVia": "#
|
|
78
|
-
"brandGradientTo": "#
|
|
76
|
+
"brandGradientFrom": "#151b18",
|
|
77
|
+
"brandGradientVia": "#151b18",
|
|
78
|
+
"brandGradientTo": "#151b18",
|
|
79
79
|
"success": "#10b77f",
|
|
80
80
|
"successText": "#36d399",
|
|
81
81
|
"successSoft": "rgba(16,183,127,0.14)",
|
|
@@ -90,25 +90,31 @@ var themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Object.freeze
|
|
|
90
90
|
"scrim": "rgba(0,0,0,0.6)",
|
|
91
91
|
"scrimStrong": "rgba(0,0,0,0.8)",
|
|
92
92
|
"overlay": "rgba(0,0,0,0.7)",
|
|
93
|
-
"
|
|
93
|
+
"paperRuleMajor": "rgba(217,232,222,0.09)",
|
|
94
|
+
"paperRuleMinor": "rgba(217,232,222,0.045)",
|
|
95
|
+
"paperRuleMargin": "#e08071",
|
|
96
|
+
"paperTag": "#2d3932",
|
|
97
|
+
"paperTagEdge": "#586a5f",
|
|
98
|
+
"paperTagInk": "#e9eee7",
|
|
99
|
+
"surfaceSheen": "rgba(255,255,255,0)",
|
|
94
100
|
"fillShade": "rgba(0,0,0,0.12)",
|
|
95
|
-
"edgeLight": "rgba(255,255,255,0
|
|
101
|
+
"edgeLight": "rgba(255,255,255,0)",
|
|
96
102
|
"edgeOnFill": "rgba(255,255,255,0.22)",
|
|
97
103
|
"edgeWell": "rgba(4,4,7,0.5)",
|
|
98
|
-
"glassBg": "
|
|
104
|
+
"glassBg": "#191f1c",
|
|
99
105
|
"glassBorder": "rgba(255,255,255,0.1)"
|
|
100
106
|
}), light: /* @__PURE__ */ Object.freeze({
|
|
101
|
-
"surface0": "#
|
|
102
|
-
"surface1": "#
|
|
103
|
-
"surface2": "#
|
|
104
|
-
"surface3": "#
|
|
105
|
-
"media": "#
|
|
106
|
-
"borderSubtle": "rgba(
|
|
107
|
-
"borderDefault": "rgba(
|
|
108
|
-
"borderStrong": "rgba(
|
|
109
|
-
"textPrimary": "#
|
|
110
|
-
"textSecondary": "#
|
|
111
|
-
"textMuted": "#
|
|
107
|
+
"surface0": "#f4f6f3",
|
|
108
|
+
"surface1": "#fbfcfb",
|
|
109
|
+
"surface2": "#f0f3ef",
|
|
110
|
+
"surface3": "#dfe3de",
|
|
111
|
+
"media": "#e5e8e3",
|
|
112
|
+
"borderSubtle": "rgba(31,59,91,0.1)",
|
|
113
|
+
"borderDefault": "rgba(31,59,91,0.17)",
|
|
114
|
+
"borderStrong": "rgba(31,59,91,0.28)",
|
|
115
|
+
"textPrimary": "#1d3654",
|
|
116
|
+
"textSecondary": "#405064",
|
|
117
|
+
"textMuted": "#4f5b69",
|
|
112
118
|
"textOnMedia": "#ffffff",
|
|
113
119
|
"accent": "#2a5f8d",
|
|
114
120
|
"accentHover": "#1f4d75",
|
|
@@ -117,9 +123,9 @@ var themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Object.freeze
|
|
|
117
123
|
"accent2": "#2a5f8d",
|
|
118
124
|
"onAccent": "#ffffff",
|
|
119
125
|
"ring": "#2a5f8d",
|
|
120
|
-
"brandGradientFrom": "#
|
|
121
|
-
"brandGradientVia": "#
|
|
122
|
-
"brandGradientTo": "#
|
|
126
|
+
"brandGradientFrom": "#f4f6f3",
|
|
127
|
+
"brandGradientVia": "#f4f6f3",
|
|
128
|
+
"brandGradientTo": "#f4f6f3",
|
|
123
129
|
"success": "#10b77f",
|
|
124
130
|
"successText": "#0a714e",
|
|
125
131
|
"successSoft": "rgba(16,183,127,0.1)",
|
|
@@ -134,12 +140,18 @@ var themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Object.freeze
|
|
|
134
140
|
"scrim": "rgba(0,0,0,0.6)",
|
|
135
141
|
"scrimStrong": "rgba(0,0,0,0.8)",
|
|
136
142
|
"overlay": "rgba(0,0,0,0.7)",
|
|
137
|
-
"
|
|
143
|
+
"paperRuleMajor": "rgba(69,109,161,0.24)",
|
|
144
|
+
"paperRuleMinor": "rgba(69,109,161,0.1)",
|
|
145
|
+
"paperRuleMargin": "#a53127",
|
|
146
|
+
"paperTag": "#eadfc2",
|
|
147
|
+
"paperTagEdge": "#b4a274",
|
|
148
|
+
"paperTagInk": "#282620",
|
|
149
|
+
"surfaceSheen": "rgba(255,255,255,0)",
|
|
138
150
|
"fillShade": "rgba(0,0,0,0.12)",
|
|
139
|
-
"edgeLight": "rgba(255,255,255,0
|
|
151
|
+
"edgeLight": "rgba(255,255,255,0)",
|
|
140
152
|
"edgeOnFill": "rgba(255,255,255,0.22)",
|
|
141
153
|
"edgeWell": "rgba(48,52,80,0.08)",
|
|
142
|
-
"glassBg": "
|
|
154
|
+
"glassBg": "#fbfcfb",
|
|
143
155
|
"glassBorder": "rgba(0,0,0,0.08)"
|
|
144
156
|
}) });
|
|
145
157
|
var brands = /* @__PURE__ */ Object.freeze({
|
|
@@ -154,9 +166,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
154
166
|
"ring": "#3e76a8",
|
|
155
167
|
"info": "#3e76a8",
|
|
156
168
|
"infoText": "#8ebde1",
|
|
157
|
-
"brandGradientFrom": "#
|
|
158
|
-
"brandGradientVia": "#
|
|
159
|
-
"brandGradientTo": "#
|
|
169
|
+
"brandGradientFrom": "#151b18",
|
|
170
|
+
"brandGradientVia": "#151b18",
|
|
171
|
+
"brandGradientTo": "#151b18"
|
|
160
172
|
},
|
|
161
173
|
"light": {
|
|
162
174
|
"accent": "#2a5f8d",
|
|
@@ -168,9 +180,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
168
180
|
"ring": "#2a5f8d",
|
|
169
181
|
"info": "#2a5f8d",
|
|
170
182
|
"infoText": "#275782",
|
|
171
|
-
"brandGradientFrom": "#
|
|
172
|
-
"brandGradientVia": "#
|
|
173
|
-
"brandGradientTo": "#
|
|
183
|
+
"brandGradientFrom": "#f4f6f3",
|
|
184
|
+
"brandGradientVia": "#f4f6f3",
|
|
185
|
+
"brandGradientTo": "#f4f6f3"
|
|
174
186
|
}
|
|
175
187
|
},
|
|
176
188
|
"orazaka": {
|
|
@@ -184,9 +196,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
184
196
|
"ring": "#f67e23",
|
|
185
197
|
"info": "#5e99c9",
|
|
186
198
|
"infoText": "#8ebde1",
|
|
187
|
-
"brandGradientFrom": "#
|
|
188
|
-
"brandGradientVia": "#
|
|
189
|
-
"brandGradientTo": "#
|
|
199
|
+
"brandGradientFrom": "#151b18",
|
|
200
|
+
"brandGradientVia": "#151b18",
|
|
201
|
+
"brandGradientTo": "#151b18"
|
|
190
202
|
},
|
|
191
203
|
"light": {
|
|
192
204
|
"accent": "#b45309",
|
|
@@ -198,9 +210,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
198
210
|
"ring": "#b45309",
|
|
199
211
|
"info": "#2a5f8d",
|
|
200
212
|
"infoText": "#275782",
|
|
201
|
-
"brandGradientFrom": "#
|
|
202
|
-
"brandGradientVia": "#
|
|
203
|
-
"brandGradientTo": "#
|
|
213
|
+
"brandGradientFrom": "#f4f6f3",
|
|
214
|
+
"brandGradientVia": "#f4f6f3",
|
|
215
|
+
"brandGradientTo": "#f4f6f3"
|
|
204
216
|
}
|
|
205
217
|
},
|
|
206
218
|
"orochia": {
|
|
@@ -214,9 +226,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
214
226
|
"ring": "#a78bfa",
|
|
215
227
|
"info": "#7c3aed",
|
|
216
228
|
"infoText": "#a78bfa",
|
|
217
|
-
"brandGradientFrom": "#
|
|
218
|
-
"brandGradientVia": "#
|
|
219
|
-
"brandGradientTo": "#
|
|
229
|
+
"brandGradientFrom": "#151b18",
|
|
230
|
+
"brandGradientVia": "#151b18",
|
|
231
|
+
"brandGradientTo": "#151b18"
|
|
220
232
|
},
|
|
221
233
|
"light": {
|
|
222
234
|
"accent": "#7c3aed",
|
|
@@ -228,9 +240,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
228
240
|
"ring": "#7c3aed",
|
|
229
241
|
"info": "#7c3aed",
|
|
230
242
|
"infoText": "#6d28d9",
|
|
231
|
-
"brandGradientFrom": "#
|
|
232
|
-
"brandGradientVia": "#
|
|
233
|
-
"brandGradientTo": "#
|
|
243
|
+
"brandGradientFrom": "#f4f6f3",
|
|
244
|
+
"brandGradientVia": "#f4f6f3",
|
|
245
|
+
"brandGradientTo": "#f4f6f3"
|
|
234
246
|
}
|
|
235
247
|
},
|
|
236
248
|
"yasakia": {
|
|
@@ -244,9 +256,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
244
256
|
"ring": "#24dbc9",
|
|
245
257
|
"info": "#5e99c9",
|
|
246
258
|
"infoText": "#8ebde1",
|
|
247
|
-
"brandGradientFrom": "#
|
|
248
|
-
"brandGradientVia": "#
|
|
249
|
-
"brandGradientTo": "#
|
|
259
|
+
"brandGradientFrom": "#151b18",
|
|
260
|
+
"brandGradientVia": "#151b18",
|
|
261
|
+
"brandGradientTo": "#151b18"
|
|
250
262
|
},
|
|
251
263
|
"light": {
|
|
252
264
|
"accent": "#097169",
|
|
@@ -258,9 +270,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
258
270
|
"ring": "#097169",
|
|
259
271
|
"info": "#2a5f8d",
|
|
260
272
|
"infoText": "#275782",
|
|
261
|
-
"brandGradientFrom": "#
|
|
262
|
-
"brandGradientVia": "#
|
|
263
|
-
"brandGradientTo": "#
|
|
273
|
+
"brandGradientFrom": "#f4f6f3",
|
|
274
|
+
"brandGradientVia": "#f4f6f3",
|
|
275
|
+
"brandGradientTo": "#f4f6f3"
|
|
264
276
|
}
|
|
265
277
|
},
|
|
266
278
|
"yororis": {
|
|
@@ -274,9 +286,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
274
286
|
"ring": "#98b587",
|
|
275
287
|
"info": "#5e99c9",
|
|
276
288
|
"infoText": "#8ebde1",
|
|
277
|
-
"brandGradientFrom": "#
|
|
278
|
-
"brandGradientVia": "#
|
|
279
|
-
"brandGradientTo": "#
|
|
289
|
+
"brandGradientFrom": "#151b18",
|
|
290
|
+
"brandGradientVia": "#151b18",
|
|
291
|
+
"brandGradientTo": "#151b18"
|
|
280
292
|
},
|
|
281
293
|
"light": {
|
|
282
294
|
"accent": "#456237",
|
|
@@ -288,9 +300,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
288
300
|
"ring": "#456237",
|
|
289
301
|
"info": "#2a5f8d",
|
|
290
302
|
"infoText": "#275782",
|
|
291
|
-
"brandGradientFrom": "#
|
|
292
|
-
"brandGradientVia": "#
|
|
293
|
-
"brandGradientTo": "#
|
|
303
|
+
"brandGradientFrom": "#f4f6f3",
|
|
304
|
+
"brandGradientVia": "#f4f6f3",
|
|
305
|
+
"brandGradientTo": "#f4f6f3"
|
|
294
306
|
}
|
|
295
307
|
},
|
|
296
308
|
"yomizaka": {
|
|
@@ -304,9 +316,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
304
316
|
"ring": "#8888f2",
|
|
305
317
|
"info": "#5e99c9",
|
|
306
318
|
"infoText": "#8ebde1",
|
|
307
|
-
"brandGradientFrom": "#
|
|
308
|
-
"brandGradientVia": "#
|
|
309
|
-
"brandGradientTo": "#
|
|
319
|
+
"brandGradientFrom": "#151b18",
|
|
320
|
+
"brandGradientVia": "#151b18",
|
|
321
|
+
"brandGradientTo": "#151b18"
|
|
310
322
|
},
|
|
311
323
|
"light": {
|
|
312
324
|
"accent": "#3c38b2",
|
|
@@ -318,9 +330,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
318
330
|
"ring": "#3c38b2",
|
|
319
331
|
"info": "#2a5f8d",
|
|
320
332
|
"infoText": "#275782",
|
|
321
|
-
"brandGradientFrom": "#
|
|
322
|
-
"brandGradientVia": "#
|
|
323
|
-
"brandGradientTo": "#
|
|
333
|
+
"brandGradientFrom": "#f4f6f3",
|
|
334
|
+
"brandGradientVia": "#f4f6f3",
|
|
335
|
+
"brandGradientTo": "#f4f6f3"
|
|
324
336
|
}
|
|
325
337
|
},
|
|
326
338
|
"kachizaka": {
|
|
@@ -334,9 +346,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
334
346
|
"ring": "#fbcf23",
|
|
335
347
|
"info": "#5e99c9",
|
|
336
348
|
"infoText": "#8ebde1",
|
|
337
|
-
"brandGradientFrom": "#
|
|
338
|
-
"brandGradientVia": "#
|
|
339
|
-
"brandGradientTo": "#
|
|
349
|
+
"brandGradientFrom": "#151b18",
|
|
350
|
+
"brandGradientVia": "#151b18",
|
|
351
|
+
"brandGradientTo": "#151b18"
|
|
340
352
|
},
|
|
341
353
|
"light": {
|
|
342
354
|
"accent": "#fac905",
|
|
@@ -348,9 +360,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
348
360
|
"ring": "#1743d3",
|
|
349
361
|
"info": "#2a5f8d",
|
|
350
362
|
"infoText": "#275782",
|
|
351
|
-
"brandGradientFrom": "#
|
|
352
|
-
"brandGradientVia": "#
|
|
353
|
-
"brandGradientTo": "#
|
|
363
|
+
"brandGradientFrom": "#f4f6f3",
|
|
364
|
+
"brandGradientVia": "#f4f6f3",
|
|
365
|
+
"brandGradientTo": "#f4f6f3"
|
|
354
366
|
}
|
|
355
367
|
},
|
|
356
368
|
"akinaza": {
|
|
@@ -364,9 +376,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
364
376
|
"ring": "#65c374",
|
|
365
377
|
"info": "#5e99c9",
|
|
366
378
|
"infoText": "#8ebde1",
|
|
367
|
-
"brandGradientFrom": "#
|
|
368
|
-
"brandGradientVia": "#
|
|
369
|
-
"brandGradientTo": "#
|
|
379
|
+
"brandGradientFrom": "#151b18",
|
|
380
|
+
"brandGradientVia": "#151b18",
|
|
381
|
+
"brandGradientTo": "#151b18"
|
|
370
382
|
},
|
|
371
383
|
"light": {
|
|
372
384
|
"accent": "#21692f",
|
|
@@ -378,9 +390,9 @@ var brands = /* @__PURE__ */ Object.freeze({
|
|
|
378
390
|
"ring": "#21692f",
|
|
379
391
|
"info": "#2a5f8d",
|
|
380
392
|
"infoText": "#275782",
|
|
381
|
-
"brandGradientFrom": "#
|
|
382
|
-
"brandGradientVia": "#
|
|
383
|
-
"brandGradientTo": "#
|
|
393
|
+
"brandGradientFrom": "#f4f6f3",
|
|
394
|
+
"brandGradientVia": "#f4f6f3",
|
|
395
|
+
"brandGradientTo": "#f4f6f3"
|
|
384
396
|
}
|
|
385
397
|
}
|
|
386
398
|
});
|