@mezo-org/mezo-clay 0.1.0-dev.9 → 0.2.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +160 -9
- package/dist/_virtual/ResizeObserver.es.js +6 -0
- package/dist/_virtual/_commonjsHelpers.js +26 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/assets/fonts/RiformaLLWeb-Bold.woff2 +0 -0
- package/dist/assets/fonts/RiformaLLWeb-Heavy.woff2 +0 -0
- package/dist/assets/fonts/RiformaLLWeb-Light.woff2 +0 -0
- package/dist/assets/fonts/RiformaLLWeb-Medium.woff2 +0 -0
- package/dist/assets/fonts/RiformaLLWeb-Regular.woff2 +0 -0
- package/dist/assets/fonts/RiformaMonoLLWeb-Bold.woff2 +0 -0
- package/dist/assets/fonts/RiformaMonoLLWeb-Regular.woff2 +0 -0
- package/dist/assets/fonts/font-face.css +62 -0
- package/dist/assets/fonts/riforma/RiformaLLWeb-Bold.woff2 +0 -0
- package/dist/assets/fonts/riforma/RiformaLLWeb-Heavy.woff2 +0 -0
- package/dist/assets/fonts/riforma/RiformaLLWeb-Light.woff2 +0 -0
- package/dist/assets/fonts/riforma/RiformaLLWeb-Medium.woff2 +0 -0
- package/dist/assets/fonts/riforma/RiformaLLWeb-Regular.woff2 +0 -0
- package/dist/assets/fonts/riforma/RiformaMonoLLWeb-Bold.woff2 +0 -0
- package/dist/assets/fonts/riforma/RiformaMonoLLWeb-Regular.woff2 +0 -0
- package/dist/assets/fonts/riforma/font-face.css +62 -0
- package/dist/components/accordion/accordion.d.ts +4 -1
- package/dist/components/accordion/accordion.js +71 -0
- package/dist/components/accordion/constants.js +12 -0
- package/dist/components/accordion/index.js +10 -0
- package/dist/components/accordion/panel.d.ts +18 -1
- package/dist/components/accordion/panel.js +119 -0
- package/dist/components/accordion/shared-overrides.d.ts +4 -0
- package/dist/components/accordion/shared-overrides.js +11 -0
- package/dist/components/accordion/types.d.ts +5 -2
- package/dist/components/avatar/avatar.d.ts +22 -0
- package/dist/components/avatar/avatar.js +102 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/avatar/index.js +6 -0
- package/dist/components/badge/hint.js +23 -0
- package/dist/components/badge/index.js +6 -0
- package/dist/components/badge/notification.js +32 -0
- package/dist/components/banner/banner.d.ts +4 -2
- package/dist/components/banner/banner.js +282 -0
- package/dist/components/banner/index.js +13 -0
- package/dist/components/banner/types.d.ts +2 -0
- package/dist/components/banner/utils.d.ts +36 -0
- package/dist/components/block/index.d.ts +1 -0
- package/dist/components/block/index.js +4 -0
- package/dist/components/breadcrumbs/breadcrumbs.js +51 -0
- package/dist/components/breadcrumbs/index.js +6 -0
- package/dist/components/button/button.d.ts +4 -1
- package/dist/components/button/button.js +48 -0
- package/dist/components/button/constants.js +16 -0
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +14 -0
- package/dist/components/button/overrides.d.ts +3 -2
- package/dist/components/button/overrides.js +47 -0
- package/dist/components/button/types.d.ts +6 -1
- package/dist/components/button-group/button-group.js +61 -0
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/button-group/index.js +8 -0
- package/dist/components/button-group/types.d.ts +2 -3
- package/dist/components/button-icon/button-icon.d.ts +4 -1
- package/dist/components/button-icon/button-icon.js +57 -0
- package/dist/components/button-icon/constants.js +17 -0
- package/dist/components/button-icon/index.d.ts +0 -1
- package/dist/components/button-icon/index.js +8 -0
- package/dist/components/callout-card/callout-card-subcomponents.d.ts +31 -0
- package/dist/components/callout-card/callout-card-subcomponents.js +104 -0
- package/dist/components/callout-card/callout-card.d.ts +11 -0
- package/dist/components/callout-card/callout-card.js +132 -0
- package/dist/components/callout-card/context.d.ts +9 -0
- package/dist/components/callout-card/context.js +13 -0
- package/dist/components/callout-card/index.d.ts +4 -0
- package/dist/components/callout-card/index.js +13 -0
- package/dist/components/callout-card/skeletons.d.ts +3 -0
- package/dist/components/callout-card/skeletons.js +44 -0
- package/dist/components/callout-card/types.d.ts +1 -0
- package/dist/components/card/card-skeletons.d.ts +19 -0
- package/dist/components/card/card-skeletons.js +123 -0
- package/dist/components/card/card.d.ts +28 -6
- package/dist/components/card/card.js +216 -0
- package/dist/components/card/context.d.ts +7 -0
- package/dist/components/card/context.js +12 -0
- package/dist/components/card/index.d.ts +5 -3
- package/dist/components/card/index.js +13 -0
- package/dist/components/card/product-card.d.ts +14 -0
- package/dist/components/card/product-card.js +125 -0
- package/dist/components/card/types.d.ts +12 -0
- package/dist/components/checkbox/checkbox.js +57 -0
- package/dist/components/checkbox/index.js +4 -0
- package/dist/components/content-stepper/content-stepper.d.ts +44 -0
- package/dist/components/content-stepper/content-stepper.js +107 -0
- package/dist/components/content-stepper/index.d.ts +2 -0
- package/dist/components/content-stepper/index.js +14 -0
- package/dist/components/content-stepper/skeletons.d.ts +3 -0
- package/dist/components/content-stepper/skeletons.js +38 -0
- package/dist/components/content-stepper/styled-components.d.ts +21 -0
- package/dist/components/content-stepper/styled-components.js +117 -0
- package/dist/components/divider/index.js +30 -0
- package/dist/components/flex-grid/index.js +5 -0
- package/dist/components/form-control/constants.d.ts +1 -1
- package/dist/components/form-control/form-control-character-count.js +39 -0
- package/dist/components/form-control/form-control.d.ts +1 -1
- package/dist/components/form-control/form-control.js +103 -0
- package/dist/components/form-control/index.js +8 -0
- package/dist/components/form-control/overrides.d.ts +2 -1
- package/dist/components/form-control/overrides.js +65 -0
- package/dist/components/form-control/types.d.ts +1 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/index.js +4 -0
- package/dist/components/icons/_docs/icon-gallery.d.ts +9 -0
- package/dist/components/icons/index.d.ts +2 -56
- package/dist/components/icons/index.js +198 -0
- package/dist/components/icons/line/arrow-left/index.d.ts +9 -0
- package/dist/components/icons/line/arrow-left/index.js +41 -0
- package/dist/components/icons/line/arrow-right/index.d.ts +9 -0
- package/dist/components/icons/line/arrow-right/index.js +41 -0
- package/dist/components/icons/{user → line/bell}/index.d.ts +2 -2
- package/dist/components/icons/line/bell/index.js +41 -0
- package/dist/components/icons/line/building/index.js +50 -0
- package/dist/components/icons/line/check/index.d.ts +9 -0
- package/dist/components/icons/line/check/index.js +44 -0
- package/dist/components/icons/line/check-done/index.d.ts +9 -0
- package/dist/components/icons/line/check-done/index.js +52 -0
- package/dist/components/icons/line/circle-cut/index.js +49 -0
- package/dist/components/icons/line/close/index.js +49 -0
- package/dist/components/icons/line/coins-hand/index.js +50 -0
- package/dist/components/icons/line/coins-stacked/index.d.ts +8 -0
- package/dist/components/icons/line/coins-stacked/index.js +52 -0
- package/dist/components/icons/line/coins-swap/index.js +50 -0
- package/dist/components/icons/line/compass/index.d.ts +8 -0
- package/dist/components/icons/line/compass/index.js +63 -0
- package/dist/components/icons/line/copy/index.js +49 -0
- package/dist/components/icons/line/cryptocurrency/index.js +51 -0
- package/dist/components/icons/line/cube/index.js +50 -0
- package/dist/components/icons/line/dots/index.d.ts +8 -0
- package/dist/components/icons/line/dots/index.js +70 -0
- package/dist/components/icons/line/dots-grid/index.d.ts +9 -0
- package/dist/components/icons/line/dots-grid/index.js +41 -0
- package/dist/components/icons/{menu → line/drop}/index.d.ts +2 -2
- package/dist/components/icons/line/drop/index.js +49 -0
- package/dist/components/icons/line/email/index.js +50 -0
- package/dist/components/icons/line/gas-fee/index.js +74 -0
- package/dist/components/icons/line/handshake/index.js +48 -0
- package/dist/components/icons/line/help-circle-line/index.d.ts +8 -0
- package/dist/components/icons/line/help-circle-line/index.js +43 -0
- package/dist/components/icons/line/home-smile/index.js +50 -0
- package/dist/components/icons/line/index.d.ts +43 -0
- package/dist/components/icons/line/lightning/index.js +50 -0
- package/dist/components/icons/line/link/index.d.ts +8 -0
- package/dist/components/icons/line/link/index.js +50 -0
- package/dist/components/icons/line/link-external/index.js +52 -0
- package/dist/components/icons/line/log-in/index.js +50 -0
- package/dist/components/icons/line/log-out/index.d.ts +8 -0
- package/dist/components/icons/line/log-out/index.js +50 -0
- package/dist/components/icons/line/message-question-circle/index.js +52 -0
- package/dist/components/icons/line/percent/index.d.ts +8 -0
- package/dist/components/icons/line/percent/index.js +49 -0
- package/dist/components/icons/line/pie-chart/index.d.ts +8 -0
- package/dist/components/icons/line/pie-chart/index.js +50 -0
- package/dist/components/icons/line/plus/index.js +49 -0
- package/dist/components/icons/line/receipt/index.js +50 -0
- package/dist/components/icons/line/safe/index.d.ts +9 -0
- package/dist/components/icons/line/safe/index.js +49 -0
- package/dist/components/icons/{settings → line/settings}/index.d.ts +2 -2
- package/dist/components/icons/line/settings/index.js +112 -0
- package/dist/components/icons/line/square/index.js +50 -0
- package/dist/components/icons/line/star/index.d.ts +15 -0
- package/dist/components/icons/line/star/index.js +96 -0
- package/dist/components/icons/line/switch-vertical/index.d.ts +8 -0
- package/dist/components/icons/line/switch-vertical/index.js +43 -0
- package/dist/components/icons/line/tag/index.js +49 -0
- package/dist/components/icons/line/trophy/index.d.ts +8 -0
- package/dist/components/icons/line/trophy/index.js +52 -0
- package/dist/components/icons/line/upload/index.js +50 -0
- package/dist/components/icons/line/user/index.d.ts +8 -0
- package/dist/components/icons/line/user/index.js +54 -0
- package/dist/components/icons/line/wallet/index.js +92 -0
- package/dist/components/icons/solid/alert-circle/index.js +39 -0
- package/dist/components/icons/solid/alert-triangle/index.js +88 -0
- package/dist/components/icons/solid/apple/index.js +42 -0
- package/dist/components/icons/solid/arrow-circle-down/index.d.ts +9 -0
- package/dist/components/icons/solid/arrow-circle-down/index.js +40 -0
- package/dist/components/icons/solid/arrow-circle-up/index.d.ts +9 -0
- package/dist/components/icons/solid/arrow-circle-up/index.js +38 -0
- package/dist/components/icons/solid/arrow-narrow-left/index.js +40 -0
- package/dist/components/icons/solid/arrow-narrow-right/index.js +40 -0
- package/dist/components/icons/solid/bezier-curve/index.js +42 -0
- package/dist/components/icons/solid/bitcoin-circle/index.d.ts +14 -0
- package/dist/components/icons/solid/bitcoin-circle/index.js +40 -0
- package/dist/components/icons/solid/check-circle/index.d.ts +12 -0
- package/dist/components/icons/solid/check-circle/index.js +73 -0
- package/dist/components/icons/solid/check-square/index.js +40 -0
- package/dist/components/icons/solid/chevron-down/index.js +40 -0
- package/dist/components/icons/solid/chevron-left/index.js +40 -0
- package/dist/components/icons/solid/chevron-right/index.js +40 -0
- package/dist/components/icons/solid/chevron-selector-horizontal/index.js +42 -0
- package/dist/components/icons/solid/chevron-selector-vertical/index.js +42 -0
- package/dist/components/icons/solid/chevron-up/index.js +40 -0
- package/dist/components/icons/solid/discord/index.js +39 -0
- package/dist/components/icons/solid/eth-circle/index.d.ts +14 -0
- package/dist/components/icons/solid/eth-circle/index.js +54 -0
- package/dist/components/icons/solid/eye/index.js +43 -0
- package/dist/components/icons/solid/eye-off/index.js +49 -0
- package/dist/components/icons/solid/google/index.js +39 -0
- package/dist/components/icons/solid/heart/index.js +40 -0
- package/dist/components/icons/solid/help-circle/index.d.ts +8 -0
- package/dist/components/icons/solid/help-circle/index.js +38 -0
- package/dist/components/icons/solid/index.d.ts +50 -0
- package/dist/components/icons/solid/info-circle/index.js +86 -0
- package/dist/components/icons/solid/loading/index.js +40 -0
- package/dist/components/icons/solid/lock/index.js +41 -0
- package/dist/components/icons/solid/mats/index.js +39 -0
- package/dist/components/icons/solid/mats-circle/index.d.ts +15 -0
- package/dist/components/icons/solid/mats-circle/index.js +57 -0
- package/dist/components/icons/solid/menu/index.d.ts +9 -0
- package/dist/components/icons/solid/menu/index.js +40 -0
- package/dist/components/icons/solid/mezo-circle/index.d.ts +14 -0
- package/dist/components/icons/solid/mezo-circle/index.js +42 -0
- package/dist/components/icons/solid/minus-circle/index.js +40 -0
- package/dist/components/icons/solid/minus-square/index.js +40 -0
- package/dist/components/icons/{check-circle → solid/musd-circle}/index.d.ts +15 -2
- package/dist/components/icons/solid/musd-circle/index.js +93 -0
- package/dist/components/icons/solid/plus-circle/index.js +40 -0
- package/dist/components/icons/solid/plus-square/index.d.ts +9 -0
- package/dist/components/icons/solid/plus-square/index.js +38 -0
- package/dist/components/icons/solid/power/index.d.ts +9 -0
- package/dist/components/icons/solid/power/index.js +75 -0
- package/dist/components/icons/solid/search/index.js +117 -0
- package/dist/components/icons/solid/settings/index.d.ts +8 -0
- package/dist/components/icons/solid/settings/index.js +36 -0
- package/dist/components/icons/solid/shield/index.js +39 -0
- package/dist/components/icons/{mats-circle → solid/star}/index.d.ts +2 -2
- package/dist/components/icons/solid/star/index.js +71 -0
- package/dist/components/icons/solid/tbtc-circle/index.d.ts +14 -0
- package/dist/components/icons/solid/tbtc-circle/index.js +48 -0
- package/dist/components/icons/solid/thusd-circle/index.d.ts +14 -0
- package/dist/components/icons/solid/thusd-circle/index.js +57 -0
- package/dist/components/icons/solid/trend-down/index.d.ts +9 -0
- package/dist/components/icons/solid/trend-down/index.js +36 -0
- package/dist/components/icons/solid/trend-up/index.d.ts +9 -0
- package/dist/components/icons/solid/trend-up/index.js +36 -0
- package/dist/components/icons/solid/trophy/index.js +57 -0
- package/dist/components/icons/solid/user/index.d.ts +8 -0
- package/dist/components/icons/solid/user/index.js +39 -0
- package/dist/components/icons/solid/vbtc-circle/index.d.ts +14 -0
- package/dist/components/icons/solid/vbtc-circle/index.js +51 -0
- package/dist/components/icons/solid/x-circle/index.js +41 -0
- package/dist/components/icons/solid/x-twitter/index.js +39 -0
- package/dist/components/index.d.ts +20 -6
- package/dist/components/input/constants.d.ts +38 -0
- package/dist/components/input/constants.js +26 -0
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/index.js +17 -0
- package/dist/components/input/input.d.ts +3 -3
- package/dist/components/input/input.js +82 -0
- package/dist/components/input/overrides.d.ts +11 -1
- package/dist/components/input/overrides.js +181 -0
- package/dist/components/input/password-input.js +89 -0
- package/dist/components/input/search-input.js +85 -0
- package/dist/components/input/types.d.ts +7 -4
- package/dist/components/input-group/index.d.ts +5 -0
- package/dist/components/input-group/index.js +10 -0
- package/dist/components/layer/index.d.ts +2 -0
- package/dist/components/layer/index.js +8 -0
- package/dist/components/layout-grid/index.d.ts +2 -0
- package/dist/components/layout-grid/index.js +5 -0
- package/dist/components/link/index.js +32 -0
- package/dist/components/list/index.js +11 -0
- package/dist/components/list/list-heading.js +53 -0
- package/dist/components/list/list-item-label.js +44 -0
- package/dist/components/list/list.d.ts +6 -2
- package/dist/components/list/list.js +76 -0
- package/dist/components/menu/context.d.ts +7 -0
- package/dist/components/menu/context.js +10 -0
- package/dist/components/menu/index.d.ts +4 -0
- package/dist/components/menu/index.js +11 -0
- package/dist/components/menu/menu-items.d.ts +18 -0
- package/dist/components/menu/menu-items.js +143 -0
- package/dist/components/menu/menu.d.ts +28 -0
- package/dist/components/menu/menu.js +104 -0
- package/dist/components/menu/types.d.ts +1 -0
- package/dist/components/message-card/index.d.ts +1 -1
- package/dist/components/message-card/index.js +4 -0
- package/dist/components/message-card/message-card.d.ts +2 -1
- package/dist/components/message-card/message-card.js +51 -0
- package/dist/components/message-card/overrides.d.ts +4 -1
- package/dist/components/message-card/overrides.js +165 -0
- package/dist/components/mobile-header/index.d.ts +1 -0
- package/dist/components/mobile-header/index.js +4 -0
- package/dist/components/mobile-header/mobile-header.d.ts +15 -0
- package/dist/components/mobile-header/mobile-header.js +184 -0
- package/dist/components/modal/index.js +15 -0
- package/dist/components/modal/modal.d.ts +4 -2
- package/dist/components/modal/modal.js +193 -0
- package/dist/components/page-control/index.d.ts +3 -0
- package/dist/components/page-control/index.js +4 -0
- package/dist/components/page-control/page-control.d.ts +6 -0
- package/dist/components/page-control/page-control.js +59 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/index.js +5 -0
- package/dist/components/pagination/pagination-without-dropdown.d.ts +3 -0
- package/dist/components/pagination/pagination-without-dropdown.js +134 -0
- package/dist/components/pagination/pagination.d.ts +3 -0
- package/dist/components/pagination/pagination.js +187 -0
- package/dist/components/pagination/stateful-pagination-without-dropdown.d.ts +2 -0
- package/dist/components/pagination/stateful-pagination-without-dropdown.js +32 -0
- package/dist/components/pagination/types.d.ts +9 -0
- package/dist/components/phone-input/default-args.d.ts +27 -0
- package/dist/components/phone-input/index.d.ts +4 -0
- package/dist/components/phone-input/index.js +13 -0
- package/dist/components/phone-input/overrides.d.ts +9 -0
- package/dist/components/phone-input/overrides.js +50 -0
- package/dist/components/phone-input/phone-input.d.ts +7 -0
- package/dist/components/phone-input/phone-input.js +32 -0
- package/dist/components/phone-input/stateful-phone-input.d.ts +6 -0
- package/dist/components/phone-input/stateful-phone-input.js +32 -0
- package/dist/components/popover/index.d.ts +8 -0
- package/dist/components/popover/index.js +14 -0
- package/dist/components/popover/popover-body.d.ts +3 -0
- package/dist/components/popover/popover-body.js +27 -0
- package/dist/components/popover/popover-footer.d.ts +3 -0
- package/dist/components/popover/popover-footer.js +24 -0
- package/dist/components/popover/popover-header.d.ts +20 -0
- package/dist/components/popover/popover-header.js +95 -0
- package/dist/components/popover/popover.d.ts +3 -0
- package/dist/components/popover/popover.js +48 -0
- package/dist/components/popover/stepper-popover.d.ts +14 -0
- package/dist/components/popover/stepper-popover.js +31 -0
- package/dist/components/progress-bar/index.d.ts +1 -1
- package/dist/components/progress-bar/index.js +6 -0
- package/dist/components/progress-bar/progress-bar.d.ts +4 -1
- package/dist/components/progress-bar/progress-bar.js +91 -0
- package/dist/components/progress-steps/index.d.ts +7 -0
- package/dist/components/progress-steps/index.js +25 -0
- package/dist/components/progress-steps/numbered-step-title.d.ts +15 -0
- package/dist/components/progress-steps/numbered-step-title.js +41 -0
- package/dist/components/progress-steps/numbered-step.d.ts +22 -0
- package/dist/components/progress-steps/numbered-step.js +108 -0
- package/dist/components/progress-steps/progress-steps.d.ts +5 -0
- package/dist/components/progress-steps/progress-steps.js +28 -0
- package/dist/components/progress-steps/step.d.ts +6 -0
- package/dist/components/progress-steps/step.js +54 -0
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio/index.js +6 -0
- package/dist/components/radio/overrides.d.ts +17 -0
- package/dist/components/radio/overrides.js +16 -0
- package/dist/components/radio/radio.d.ts +4 -1
- package/dist/components/radio/radio.js +31 -0
- package/dist/components/section-heading/index.d.ts +1 -0
- package/dist/components/section-heading/index.js +4 -0
- package/dist/components/section-heading/section-heading.d.ts +5 -0
- package/dist/components/section-heading/section-heading.js +75 -0
- package/dist/components/segmented-control/index.d.ts +0 -2
- package/dist/components/segmented-control/index.js +5 -0
- package/dist/components/segmented-control/segmented-control.d.ts +9 -2
- package/dist/components/segmented-control/segmented-control.js +78 -0
- package/dist/components/segmented-progress-bar/index.d.ts +1 -0
- package/dist/components/segmented-progress-bar/index.js +4 -0
- package/dist/components/segmented-progress-bar/segmented-progress-bar.d.ts +2 -0
- package/dist/components/segmented-progress-bar/segmented-progress-bar.js +164 -0
- package/dist/components/segmented-progress-bar/types.d.ts +53 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.js +6 -0
- package/dist/components/select/overrides.d.ts +90 -0
- package/dist/components/select/overrides.js +91 -0
- package/dist/components/select/select.d.ts +9 -0
- package/dist/components/select/select.js +62 -0
- package/dist/components/side-navigation/index.d.ts +1 -1
- package/dist/components/side-navigation/index.js +8 -0
- package/dist/components/side-navigation/overrides.d.ts +2 -1
- package/dist/components/side-navigation/overrides.js +39 -0
- package/dist/components/side-navigation/side-navigation.d.ts +15 -3
- package/dist/components/side-navigation/side-navigation.js +68 -0
- package/dist/components/skeleton/index.js +4 -0
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/skeleton/skeleton.js +28 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider/index.js +4 -0
- package/dist/components/slider/slider.d.ts +6 -0
- package/dist/components/slider/slider.js +39 -0
- package/dist/components/snackbar/index.js +7 -0
- package/dist/components/snackbar/snackbar.js +51 -0
- package/dist/components/spinner/index.js +4 -0
- package/dist/components/spinner/spinner.js +55 -0
- package/dist/components/stepper/index.d.ts +2 -0
- package/dist/components/stepper/index.js +4 -0
- package/dist/components/stepper/stepper.d.ts +5 -0
- package/dist/components/stepper/stepper.js +62 -0
- package/dist/components/table/index.d.ts +5 -4
- package/dist/components/table/index.js +39 -0
- package/dist/components/table/table-builder.d.ts +9 -0
- package/dist/components/table/table-builder.js +93 -0
- package/dist/components/table/table-cells/index.d.ts +40 -0
- package/dist/components/table/table-cells/index.js +228 -0
- package/dist/components/tabs/index.d.ts +1 -2
- package/dist/components/tabs/index.js +7 -0
- package/dist/components/tabs/tab-title.js +27 -0
- package/dist/components/tabs/tabs.d.ts +9 -0
- package/dist/components/tabs/tabs.js +58 -0
- package/dist/components/tag/constants.js +77 -0
- package/dist/components/tag/index.js +8 -0
- package/dist/components/tag/overrides.js +68 -0
- package/dist/components/tag/tag.js +58 -0
- package/dist/components/textarea/index.js +6 -0
- package/dist/components/textarea/overrides.js +62 -0
- package/dist/components/textarea/textarea.js +144 -0
- package/dist/components/tile/constants.d.ts +5 -0
- package/dist/components/tile/constants.js +8 -0
- package/dist/components/tile/index.d.ts +9 -0
- package/dist/components/tile/index.js +20 -0
- package/dist/components/tile/skeletons.d.ts +7 -0
- package/dist/components/tile/skeletons.js +18 -0
- package/dist/components/tile/styled-components.d.ts +3 -0
- package/dist/components/tile/styled-components.js +11 -0
- package/dist/components/tile/tile-group.d.ts +7 -0
- package/dist/components/tile/tile-group.js +67 -0
- package/dist/components/tile/tile.d.ts +11 -0
- package/dist/components/tile/tile.js +72 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/index.js +6 -0
- package/dist/components/tooltip/tooltip.d.ts +13 -0
- package/dist/components/tooltip/tooltip.js +109 -0
- package/dist/components/tooltip/types.d.ts +1 -0
- package/dist/components/top-navigation/index.d.ts +3 -0
- package/dist/components/top-navigation/index.js +6 -0
- package/dist/components/top-navigation/mobile-menu.d.ts +7 -0
- package/dist/components/top-navigation/mobile-menu.js +45 -0
- package/dist/components/top-navigation/styled-components.d.ts +6 -0
- package/dist/components/top-navigation/styled-components.js +60 -0
- package/dist/components/top-navigation/top-navigation.d.ts +14 -0
- package/dist/components/top-navigation/top-navigation.js +100 -0
- package/dist/components/top-navigation/types.d.ts +16 -0
- package/dist/components/top-navigation/user-menu.d.ts +7 -0
- package/dist/components/top-navigation/user-menu.js +112 -0
- package/dist/components/top-navigation/user-profile-tile.d.ts +4 -0
- package/dist/components/top-navigation/user-profile-tile.js +27 -0
- package/dist/components/typography/index.js +39 -0
- package/dist/docs/guides/animations.d.ts +2 -0
- package/dist/docs/guides/borders.d.ts +2 -0
- package/dist/docs/guides/breakpoints.d.ts +2 -0
- package/dist/docs/guides/colors.d.ts +3 -0
- package/dist/docs/guides/grid.d.ts +2 -0
- package/dist/docs/guides/lighting.d.ts +2 -0
- package/dist/docs/guides/media-queries.d.ts +2 -0
- package/dist/docs/guides/sizing.d.ts +2 -0
- package/dist/docs/guides/theme-property.d.ts +13 -0
- package/dist/docs/guides/typography.d.ts +2 -0
- package/dist/docs/index.d.ts +13 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +580 -0
- package/dist/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +290 -0
- package/dist/node_modules/.pnpm/use-fit-text@2.4.0_react@18.3.1/node_modules/use-fit-text/dist/index.js +49 -0
- package/dist/ssr/index.d.ts +17 -0
- package/dist/ssr/index.js +27 -0
- package/dist/styles/helpers.d.ts +2 -0
- package/dist/styles/helpers.js +20 -0
- package/dist/styles/index.d.ts +2 -1
- package/dist/styles/index.js +8 -0
- package/dist/themes/borders.js +15 -0
- package/dist/themes/clay-dark-theme.d.ts +1 -0
- package/dist/themes/clay-dark-theme.js +52 -0
- package/dist/themes/clay-light-theme.d.ts +3 -0
- package/dist/themes/clay-light-theme.js +60 -0
- package/dist/themes/color-tokens.js +73 -0
- package/dist/themes/index.d.ts +2 -0
- package/dist/themes/index.js +14 -0
- package/dist/themes/provider.d.ts +10 -3
- package/dist/themes/provider.js +31 -0
- package/dist/themes/typography.js +184 -0
- package/dist/utils/console.d.ts +2 -0
- package/dist/utils/console.js +23 -0
- package/dist/utils/index.d.ts +6 -1
- package/dist/utils/index.js +45 -0
- package/package.json +281 -33
- package/dist/components/button-group/constants.d.ts +0 -5
- package/dist/components/button-icon/overrides.d.ts +0 -5
- package/dist/components/icons/star/index.d.ts +0 -29
- package/dist/components/icons/utils.d.ts +0 -46
- package/dist/mezo-clay.css +0 -1
- package/dist/mezo-clay.es.js +0 -34174
- package/dist/mezo-clay.umd.js +0 -294
- /package/dist/components/icons/{building → line/building}/index.d.ts +0 -0
- /package/dist/components/icons/{circle-cut → line/circle-cut}/index.d.ts +0 -0
- /package/dist/components/icons/{close → line/close}/index.d.ts +0 -0
- /package/dist/components/icons/{coins-hand → line/coins-hand}/index.d.ts +0 -0
- /package/dist/components/icons/{coins-swap → line/coins-swap}/index.d.ts +0 -0
- /package/dist/components/icons/{copy → line/copy}/index.d.ts +0 -0
- /package/dist/components/icons/{cryptocurrency → line/cryptocurrency}/index.d.ts +0 -0
- /package/dist/components/icons/{cube → line/cube}/index.d.ts +0 -0
- /package/dist/components/icons/{email → line/email}/index.d.ts +0 -0
- /package/dist/components/icons/{gas-fee → line/gas-fee}/index.d.ts +0 -0
- /package/dist/components/icons/{handshake → line/handshake}/index.d.ts +0 -0
- /package/dist/components/icons/{home-smile → line/home-smile}/index.d.ts +0 -0
- /package/dist/components/icons/{lightning → line/lightning}/index.d.ts +0 -0
- /package/dist/components/icons/{link-external → line/link-external}/index.d.ts +0 -0
- /package/dist/components/icons/{log-in → line/log-in}/index.d.ts +0 -0
- /package/dist/components/icons/{message-question-circle → line/message-question-circle}/index.d.ts +0 -0
- /package/dist/components/icons/{plus → line/plus}/index.d.ts +0 -0
- /package/dist/components/icons/{receipt → line/receipt}/index.d.ts +0 -0
- /package/dist/components/icons/{square → line/square}/index.d.ts +0 -0
- /package/dist/components/icons/{tag → line/tag}/index.d.ts +0 -0
- /package/dist/components/icons/{upload → line/upload}/index.d.ts +0 -0
- /package/dist/components/icons/{wallet → line/wallet}/index.d.ts +0 -0
- /package/dist/components/icons/{alert-circle → solid/alert-circle}/index.d.ts +0 -0
- /package/dist/components/icons/{alert-triangle → solid/alert-triangle}/index.d.ts +0 -0
- /package/dist/components/icons/{apple → solid/apple}/index.d.ts +0 -0
- /package/dist/components/icons/{arrow-narrow-left → solid/arrow-narrow-left}/index.d.ts +0 -0
- /package/dist/components/icons/{arrow-narrow-right → solid/arrow-narrow-right}/index.d.ts +0 -0
- /package/dist/components/icons/{bezier-curve → solid/bezier-curve}/index.d.ts +0 -0
- /package/dist/components/icons/{check-square → solid/check-square}/index.d.ts +0 -0
- /package/dist/components/icons/{chevron-down → solid/chevron-down}/index.d.ts +0 -0
- /package/dist/components/icons/{chevron-left → solid/chevron-left}/index.d.ts +0 -0
- /package/dist/components/icons/{chevron-right → solid/chevron-right}/index.d.ts +0 -0
- /package/dist/components/icons/{chevron-selector-horizontal → solid/chevron-selector-horizontal}/index.d.ts +0 -0
- /package/dist/components/icons/{chevron-selector-vertical → solid/chevron-selector-vertical}/index.d.ts +0 -0
- /package/dist/components/icons/{chevron-up → solid/chevron-up}/index.d.ts +0 -0
- /package/dist/components/icons/{discord → solid/discord}/index.d.ts +0 -0
- /package/dist/components/icons/{eye → solid/eye}/index.d.ts +0 -0
- /package/dist/components/icons/{eye-off → solid/eye-off}/index.d.ts +0 -0
- /package/dist/components/icons/{google → solid/google}/index.d.ts +0 -0
- /package/dist/components/icons/{heart → solid/heart}/index.d.ts +0 -0
- /package/dist/components/icons/{info-circle → solid/info-circle}/index.d.ts +0 -0
- /package/dist/components/icons/{loading → solid/loading}/index.d.ts +0 -0
- /package/dist/components/icons/{lock → solid/lock}/index.d.ts +0 -0
- /package/dist/components/icons/{mats → solid/mats}/index.d.ts +0 -0
- /package/dist/components/icons/{minus-circle → solid/minus-circle}/index.d.ts +0 -0
- /package/dist/components/icons/{minus-square → solid/minus-square}/index.d.ts +0 -0
- /package/dist/components/icons/{plus-circle → solid/plus-circle}/index.d.ts +0 -0
- /package/dist/components/icons/{search → solid/search}/index.d.ts +0 -0
- /package/dist/components/icons/{shield → solid/shield}/index.d.ts +0 -0
- /package/dist/components/icons/{trophy → solid/trophy}/index.d.ts +0 -0
- /package/dist/components/icons/{x-circle → solid/x-circle}/index.d.ts +0 -0
- /package/dist/components/icons/{x-twitter → solid/x-twitter}/index.d.ts +0 -0
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
var _ = function() {
|
|
2
|
+
if (typeof Map < "u")
|
|
3
|
+
return Map;
|
|
4
|
+
function e(t, n) {
|
|
5
|
+
var r = -1;
|
|
6
|
+
return t.some(function(i, o) {
|
|
7
|
+
return i[0] === n ? (r = o, !0) : !1;
|
|
8
|
+
}), r;
|
|
9
|
+
}
|
|
10
|
+
return (
|
|
11
|
+
/** @class */
|
|
12
|
+
function() {
|
|
13
|
+
function t() {
|
|
14
|
+
this.__entries__ = [];
|
|
15
|
+
}
|
|
16
|
+
return Object.defineProperty(t.prototype, "size", {
|
|
17
|
+
/**
|
|
18
|
+
* @returns {boolean}
|
|
19
|
+
*/
|
|
20
|
+
get: function() {
|
|
21
|
+
return this.__entries__.length;
|
|
22
|
+
},
|
|
23
|
+
enumerable: !0,
|
|
24
|
+
configurable: !0
|
|
25
|
+
}), t.prototype.get = function(n) {
|
|
26
|
+
var r = e(this.__entries__, n), i = this.__entries__[r];
|
|
27
|
+
return i && i[1];
|
|
28
|
+
}, t.prototype.set = function(n, r) {
|
|
29
|
+
var i = e(this.__entries__, n);
|
|
30
|
+
~i ? this.__entries__[i][1] = r : this.__entries__.push([n, r]);
|
|
31
|
+
}, t.prototype.delete = function(n) {
|
|
32
|
+
var r = this.__entries__, i = e(r, n);
|
|
33
|
+
~i && r.splice(i, 1);
|
|
34
|
+
}, t.prototype.has = function(n) {
|
|
35
|
+
return !!~e(this.__entries__, n);
|
|
36
|
+
}, t.prototype.clear = function() {
|
|
37
|
+
this.__entries__.splice(0);
|
|
38
|
+
}, t.prototype.forEach = function(n, r) {
|
|
39
|
+
r === void 0 && (r = null);
|
|
40
|
+
for (var i = 0, o = this.__entries__; i < o.length; i++) {
|
|
41
|
+
var s = o[i];
|
|
42
|
+
n.call(r, s[1], s[0]);
|
|
43
|
+
}
|
|
44
|
+
}, t;
|
|
45
|
+
}()
|
|
46
|
+
);
|
|
47
|
+
}(), v = typeof window < "u" && typeof document < "u" && window.document === document, f = function() {
|
|
48
|
+
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
49
|
+
}(), O = function() {
|
|
50
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(f) : function(e) {
|
|
51
|
+
return setTimeout(function() {
|
|
52
|
+
return e(Date.now());
|
|
53
|
+
}, 1e3 / 60);
|
|
54
|
+
};
|
|
55
|
+
}(), E = 2;
|
|
56
|
+
function R(e, t) {
|
|
57
|
+
var n = !1, r = !1, i = 0;
|
|
58
|
+
function o() {
|
|
59
|
+
n && (n = !1, e()), r && a();
|
|
60
|
+
}
|
|
61
|
+
function s() {
|
|
62
|
+
O(o);
|
|
63
|
+
}
|
|
64
|
+
function a() {
|
|
65
|
+
var u = Date.now();
|
|
66
|
+
if (n) {
|
|
67
|
+
if (u - i < E)
|
|
68
|
+
return;
|
|
69
|
+
r = !0;
|
|
70
|
+
} else
|
|
71
|
+
n = !0, r = !1, setTimeout(s, t);
|
|
72
|
+
i = u;
|
|
73
|
+
}
|
|
74
|
+
return a;
|
|
75
|
+
}
|
|
76
|
+
var M = 20, x = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], A = typeof MutationObserver < "u", z = (
|
|
77
|
+
/** @class */
|
|
78
|
+
function() {
|
|
79
|
+
function e() {
|
|
80
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = R(this.refresh.bind(this), M);
|
|
81
|
+
}
|
|
82
|
+
return e.prototype.addObserver = function(t) {
|
|
83
|
+
~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
|
|
84
|
+
}, e.prototype.removeObserver = function(t) {
|
|
85
|
+
var n = this.observers_, r = n.indexOf(t);
|
|
86
|
+
~r && n.splice(r, 1), !n.length && this.connected_ && this.disconnect_();
|
|
87
|
+
}, e.prototype.refresh = function() {
|
|
88
|
+
var t = this.updateObservers_();
|
|
89
|
+
t && this.refresh();
|
|
90
|
+
}, e.prototype.updateObservers_ = function() {
|
|
91
|
+
var t = this.observers_.filter(function(n) {
|
|
92
|
+
return n.gatherActive(), n.hasActive();
|
|
93
|
+
});
|
|
94
|
+
return t.forEach(function(n) {
|
|
95
|
+
return n.broadcastActive();
|
|
96
|
+
}), t.length > 0;
|
|
97
|
+
}, e.prototype.connect_ = function() {
|
|
98
|
+
!v || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), A ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
99
|
+
attributes: !0,
|
|
100
|
+
childList: !0,
|
|
101
|
+
characterData: !0,
|
|
102
|
+
subtree: !0
|
|
103
|
+
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
104
|
+
}, e.prototype.disconnect_ = function() {
|
|
105
|
+
!v || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
106
|
+
}, e.prototype.onTransitionEnd_ = function(t) {
|
|
107
|
+
var n = t.propertyName, r = n === void 0 ? "" : n, i = x.some(function(o) {
|
|
108
|
+
return !!~r.indexOf(o);
|
|
109
|
+
});
|
|
110
|
+
i && this.refresh();
|
|
111
|
+
}, e.getInstance = function() {
|
|
112
|
+
return this.instance_ || (this.instance_ = new e()), this.instance_;
|
|
113
|
+
}, e.instance_ = null, e;
|
|
114
|
+
}()
|
|
115
|
+
), m = function(e, t) {
|
|
116
|
+
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
117
|
+
var i = r[n];
|
|
118
|
+
Object.defineProperty(e, i, {
|
|
119
|
+
value: t[i],
|
|
120
|
+
enumerable: !1,
|
|
121
|
+
writable: !1,
|
|
122
|
+
configurable: !0
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
return e;
|
|
126
|
+
}, c = function(e) {
|
|
127
|
+
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
|
|
128
|
+
return t || f;
|
|
129
|
+
}, y = d(0, 0, 0, 0);
|
|
130
|
+
function h(e) {
|
|
131
|
+
return parseFloat(e) || 0;
|
|
132
|
+
}
|
|
133
|
+
function b(e) {
|
|
134
|
+
for (var t = [], n = 1; n < arguments.length; n++)
|
|
135
|
+
t[n - 1] = arguments[n];
|
|
136
|
+
return t.reduce(function(r, i) {
|
|
137
|
+
var o = e["border-" + i + "-width"];
|
|
138
|
+
return r + h(o);
|
|
139
|
+
}, 0);
|
|
140
|
+
}
|
|
141
|
+
function T(e) {
|
|
142
|
+
for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
143
|
+
var o = i[r], s = e["padding-" + o];
|
|
144
|
+
n[o] = h(s);
|
|
145
|
+
}
|
|
146
|
+
return n;
|
|
147
|
+
}
|
|
148
|
+
function C(e) {
|
|
149
|
+
var t = e.getBBox();
|
|
150
|
+
return d(0, 0, t.width, t.height);
|
|
151
|
+
}
|
|
152
|
+
function S(e) {
|
|
153
|
+
var t = e.clientWidth, n = e.clientHeight;
|
|
154
|
+
if (!t && !n)
|
|
155
|
+
return y;
|
|
156
|
+
var r = c(e).getComputedStyle(e), i = T(r), o = i.left + i.right, s = i.top + i.bottom, a = h(r.width), u = h(r.height);
|
|
157
|
+
if (r.boxSizing === "border-box" && (Math.round(a + o) !== t && (a -= b(r, "left", "right") + o), Math.round(u + s) !== n && (u -= b(r, "top", "bottom") + s)), !G(e)) {
|
|
158
|
+
var l = Math.round(a + o) - t, p = Math.round(u + s) - n;
|
|
159
|
+
Math.abs(l) !== 1 && (a -= l), Math.abs(p) !== 1 && (u -= p);
|
|
160
|
+
}
|
|
161
|
+
return d(i.left, i.top, a, u);
|
|
162
|
+
}
|
|
163
|
+
var D = /* @__PURE__ */ function() {
|
|
164
|
+
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
165
|
+
return e instanceof c(e).SVGGraphicsElement;
|
|
166
|
+
} : function(e) {
|
|
167
|
+
return e instanceof c(e).SVGElement && typeof e.getBBox == "function";
|
|
168
|
+
};
|
|
169
|
+
}();
|
|
170
|
+
function G(e) {
|
|
171
|
+
return e === c(e).document.documentElement;
|
|
172
|
+
}
|
|
173
|
+
function L(e) {
|
|
174
|
+
return v ? D(e) ? C(e) : S(e) : y;
|
|
175
|
+
}
|
|
176
|
+
function P(e) {
|
|
177
|
+
var t = e.x, n = e.y, r = e.width, i = e.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, s = Object.create(o.prototype);
|
|
178
|
+
return m(s, {
|
|
179
|
+
x: t,
|
|
180
|
+
y: n,
|
|
181
|
+
width: r,
|
|
182
|
+
height: i,
|
|
183
|
+
top: n,
|
|
184
|
+
right: t + r,
|
|
185
|
+
bottom: i + n,
|
|
186
|
+
left: t
|
|
187
|
+
}), s;
|
|
188
|
+
}
|
|
189
|
+
function d(e, t, n, r) {
|
|
190
|
+
return { x: e, y: t, width: n, height: r };
|
|
191
|
+
}
|
|
192
|
+
var W = (
|
|
193
|
+
/** @class */
|
|
194
|
+
function() {
|
|
195
|
+
function e(t) {
|
|
196
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = d(0, 0, 0, 0), this.target = t;
|
|
197
|
+
}
|
|
198
|
+
return e.prototype.isActive = function() {
|
|
199
|
+
var t = L(this.target);
|
|
200
|
+
return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
|
|
201
|
+
}, e.prototype.broadcastRect = function() {
|
|
202
|
+
var t = this.contentRect_;
|
|
203
|
+
return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
|
|
204
|
+
}, e;
|
|
205
|
+
}()
|
|
206
|
+
), j = (
|
|
207
|
+
/** @class */
|
|
208
|
+
/* @__PURE__ */ function() {
|
|
209
|
+
function e(t, n) {
|
|
210
|
+
var r = P(n);
|
|
211
|
+
m(this, { target: t, contentRect: r });
|
|
212
|
+
}
|
|
213
|
+
return e;
|
|
214
|
+
}()
|
|
215
|
+
), F = (
|
|
216
|
+
/** @class */
|
|
217
|
+
function() {
|
|
218
|
+
function e(t, n, r) {
|
|
219
|
+
if (this.activeObservations_ = [], this.observations_ = new _(), typeof t != "function")
|
|
220
|
+
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
221
|
+
this.callback_ = t, this.controller_ = n, this.callbackCtx_ = r;
|
|
222
|
+
}
|
|
223
|
+
return e.prototype.observe = function(t) {
|
|
224
|
+
if (!arguments.length)
|
|
225
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
226
|
+
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
227
|
+
if (!(t instanceof c(t).Element))
|
|
228
|
+
throw new TypeError('parameter 1 is not of type "Element".');
|
|
229
|
+
var n = this.observations_;
|
|
230
|
+
n.has(t) || (n.set(t, new W(t)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
231
|
+
}
|
|
232
|
+
}, e.prototype.unobserve = function(t) {
|
|
233
|
+
if (!arguments.length)
|
|
234
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
235
|
+
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
236
|
+
if (!(t instanceof c(t).Element))
|
|
237
|
+
throw new TypeError('parameter 1 is not of type "Element".');
|
|
238
|
+
var n = this.observations_;
|
|
239
|
+
n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
|
|
240
|
+
}
|
|
241
|
+
}, e.prototype.disconnect = function() {
|
|
242
|
+
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
|
|
243
|
+
}, e.prototype.gatherActive = function() {
|
|
244
|
+
var t = this;
|
|
245
|
+
this.clearActive(), this.observations_.forEach(function(n) {
|
|
246
|
+
n.isActive() && t.activeObservations_.push(n);
|
|
247
|
+
});
|
|
248
|
+
}, e.prototype.broadcastActive = function() {
|
|
249
|
+
if (this.hasActive()) {
|
|
250
|
+
var t = this.callbackCtx_, n = this.activeObservations_.map(function(r) {
|
|
251
|
+
return new j(r.target, r.broadcastRect());
|
|
252
|
+
});
|
|
253
|
+
this.callback_.call(t, n, t), this.clearActive();
|
|
254
|
+
}
|
|
255
|
+
}, e.prototype.clearActive = function() {
|
|
256
|
+
this.activeObservations_.splice(0);
|
|
257
|
+
}, e.prototype.hasActive = function() {
|
|
258
|
+
return this.activeObservations_.length > 0;
|
|
259
|
+
}, e;
|
|
260
|
+
}()
|
|
261
|
+
), g = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new _(), w = (
|
|
262
|
+
/** @class */
|
|
263
|
+
/* @__PURE__ */ function() {
|
|
264
|
+
function e(t) {
|
|
265
|
+
if (!(this instanceof e))
|
|
266
|
+
throw new TypeError("Cannot call a class as a function.");
|
|
267
|
+
if (!arguments.length)
|
|
268
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
269
|
+
var n = z.getInstance(), r = new F(t, n, this);
|
|
270
|
+
g.set(this, r);
|
|
271
|
+
}
|
|
272
|
+
return e;
|
|
273
|
+
}()
|
|
274
|
+
);
|
|
275
|
+
[
|
|
276
|
+
"observe",
|
|
277
|
+
"unobserve",
|
|
278
|
+
"disconnect"
|
|
279
|
+
].forEach(function(e) {
|
|
280
|
+
w.prototype[e] = function() {
|
|
281
|
+
var t;
|
|
282
|
+
return (t = g.get(this))[e].apply(t, arguments);
|
|
283
|
+
};
|
|
284
|
+
});
|
|
285
|
+
var H = function() {
|
|
286
|
+
return typeof f.ResizeObserver < "u" ? f.ResizeObserver : w;
|
|
287
|
+
}();
|
|
288
|
+
export {
|
|
289
|
+
H as default
|
|
290
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import D from "react";
|
|
2
|
+
import O from "../../../../../../_virtual/ResizeObserver.es.js";
|
|
3
|
+
var K, _;
|
|
4
|
+
function k() {
|
|
5
|
+
if (_) return K;
|
|
6
|
+
_ = 1;
|
|
7
|
+
var c, t = D, j = (c = O) && typeof c == "object" && "default" in c ? c.default : c, E = { debug: 10, info: 20, warn: 30, error: 40, none: 100 }, H = typeof window < "u" && window.document && window.document.createElement ? t.useLayoutEffect : t.useEffect;
|
|
8
|
+
return K = function(r) {
|
|
9
|
+
r === void 0 && (r = {});
|
|
10
|
+
var M = r.logLevel;
|
|
11
|
+
M === void 0 && (M = "info");
|
|
12
|
+
var a = r.maxFontSize;
|
|
13
|
+
a === void 0 && (a = 100);
|
|
14
|
+
var f = r.minFontSize;
|
|
15
|
+
f === void 0 && (f = 20);
|
|
16
|
+
var h = r.onFinish, s = r.onStart, v = r.resolution;
|
|
17
|
+
v === void 0 && (v = 5);
|
|
18
|
+
var L = E[M], z = t.useCallback(function() {
|
|
19
|
+
return { calcKey: 0, fontSize: a, fontSizePrev: f, fontSizeMax: a, fontSizeMin: f };
|
|
20
|
+
}, [a, f]), n = t.useRef(null), p = t.useRef(), l = t.useRef(!1), q = t.useState(z), d = q[0], m = q[1], i = d.calcKey, e = d.fontSize, S = d.fontSizeMax, u = d.fontSizeMin, o = d.fontSizePrev, w = null, x = t.useState(function() {
|
|
21
|
+
return new j(function() {
|
|
22
|
+
w = window.requestAnimationFrame(function() {
|
|
23
|
+
l.current || (s && s(), l.current = !0, m(Object.assign({}, z(), { calcKey: i + 1 })));
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
})[0];
|
|
27
|
+
t.useEffect(function() {
|
|
28
|
+
return n.current && x.observe(n.current), function() {
|
|
29
|
+
w && window.cancelAnimationFrame(w), x.disconnect();
|
|
30
|
+
};
|
|
31
|
+
}, [w, x]);
|
|
32
|
+
var y = n.current && n.current.innerHTML;
|
|
33
|
+
return t.useEffect(function() {
|
|
34
|
+
i === 0 || l.current || (y !== p.current && (s && s(), m(Object.assign({}, z(), { calcKey: i + 1 }))), p.current = y);
|
|
35
|
+
}, [i, z, y, s]), H(function() {
|
|
36
|
+
if (i !== 0) {
|
|
37
|
+
var A = Math.abs(e - o) <= v, b = !!n.current && (n.current.scrollHeight > n.current.offsetHeight || n.current.scrollWidth > n.current.offsetWidth), g = e > o;
|
|
38
|
+
if (A) b && e === o ? (l.current = !1, L <= E.info && console.info("[use-fit-text] reached `minFontSize = " + f + "` without fitting text")) : b ? m({ fontSize: g ? o : u, fontSizeMax: S, fontSizeMin: u, fontSizePrev: o, calcKey: i }) : (l.current = !1, h && h(e));
|
|
39
|
+
else {
|
|
40
|
+
var F, R = S, P = u;
|
|
41
|
+
b ? (F = g ? o - e : u - e, R = Math.min(S, e)) : (F = g ? S - e : o - e, P = Math.max(u, e)), m({ calcKey: i, fontSize: e + F / 2, fontSizeMax: R, fontSizeMin: P, fontSizePrev: e });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}, [i, e, S, u, o, h, n, v]), { fontSize: e + "%", ref: n };
|
|
45
|
+
}, K;
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
k as __require
|
|
49
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Server } from 'styletron-engine-monolithic';
|
|
2
|
+
import { StandardEngine } from 'styletron-standard';
|
|
3
|
+
/**
|
|
4
|
+
* SSR only utils
|
|
5
|
+
* These are only needed for Next.js or other SSR setups
|
|
6
|
+
* Regular React apps can ignore these exports
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new Styletron Server instance for SSR
|
|
10
|
+
*/
|
|
11
|
+
export declare function createStyletronServer(): Server;
|
|
12
|
+
export declare function getStyletronSSR(): StandardEngine;
|
|
13
|
+
/**
|
|
14
|
+
* Extract stylesheets from Styletron Server
|
|
15
|
+
*/
|
|
16
|
+
export declare function extractStyles(engine: Server): import('styletron-engine-monolithic/lib/server/server').sheetT[];
|
|
17
|
+
export type { StandardEngine } from 'styletron-standard';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Server as n, Client as r } from "styletron-engine-monolithic";
|
|
2
|
+
function o() {
|
|
3
|
+
return new n();
|
|
4
|
+
}
|
|
5
|
+
let e = null;
|
|
6
|
+
function s() {
|
|
7
|
+
if (!e)
|
|
8
|
+
if (typeof window > "u")
|
|
9
|
+
e = new n();
|
|
10
|
+
else {
|
|
11
|
+
const t = document.getElementsByClassName(
|
|
12
|
+
"_styletron_hydrate_"
|
|
13
|
+
);
|
|
14
|
+
e = new r({
|
|
15
|
+
hydrate: t
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return e;
|
|
19
|
+
}
|
|
20
|
+
function i(t) {
|
|
21
|
+
return t.getStylesheets() || [];
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
o as createStyletronServer,
|
|
25
|
+
i as extractStyles,
|
|
26
|
+
s as getStyletronSSR
|
|
27
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getMediaQueries as o } from "baseui/helpers/responsive-helpers";
|
|
2
|
+
function c(r, e) {
|
|
3
|
+
const i = o(r.breakpoints), a = Array.isArray(r.grid.margins) && r.grid.margins || [];
|
|
4
|
+
return i.reduce(
|
|
5
|
+
(n, s, g) => ({
|
|
6
|
+
...n,
|
|
7
|
+
[s]: e.reduce(
|
|
8
|
+
(t, d) => ({
|
|
9
|
+
...t,
|
|
10
|
+
[d]: `${a[g]}px`
|
|
11
|
+
}),
|
|
12
|
+
{}
|
|
13
|
+
)
|
|
14
|
+
}),
|
|
15
|
+
{}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
c as getMediaQueryMargins
|
|
20
|
+
};
|
package/dist/styles/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { useStyletron, styled } from 'baseui';
|
|
1
|
+
export { useStyletron, styled, withStyle } from 'baseui';
|
|
2
|
+
export * from './helpers';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
// Buttons
|
|
3
|
+
buttonBorderRadiusMini: "8px",
|
|
4
|
+
buttonBorderRadius: "12px",
|
|
5
|
+
// Inputs
|
|
6
|
+
inputBorderWidth: "3px",
|
|
7
|
+
// Custom token to Clay
|
|
8
|
+
inputBorderWidthReadOnly: "2px",
|
|
9
|
+
// Custom token to Clay
|
|
10
|
+
searchInputBorderRadius: "9999px"
|
|
11
|
+
// Custom token to Clay
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
r as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createDarkTheme as a } from "baseui";
|
|
2
|
+
import { primitiveLightColors as r } from "baseui/tokens";
|
|
3
|
+
import { coreColors as n, primitiveColors as t, semanticExtensionColors as i, sharedComponentColors as y } from "./color-tokens.js";
|
|
4
|
+
import { hexToRgba as c } from "../utils/index.js";
|
|
5
|
+
import d from "./borders.js";
|
|
6
|
+
import m from "./typography.js";
|
|
7
|
+
const e = {
|
|
8
|
+
primaryA: r.white,
|
|
9
|
+
primaryB: r.black,
|
|
10
|
+
...n
|
|
11
|
+
}, o = {
|
|
12
|
+
// Background
|
|
13
|
+
backgroundSecondary: r.gray800,
|
|
14
|
+
backgroundTertiary: r.gray700,
|
|
15
|
+
backgroundInversePrimary: e.primaryA,
|
|
16
|
+
backgroundInverseSecondary: r.gray50,
|
|
17
|
+
// Content
|
|
18
|
+
contentSecondary: r.gray100,
|
|
19
|
+
contentTertiary: r.gray200,
|
|
20
|
+
contentInverseSecondary: r.gray800,
|
|
21
|
+
contentInverseTertiary: r.gray700,
|
|
22
|
+
// Border
|
|
23
|
+
borderOpaque: r.gray800,
|
|
24
|
+
borderSelected: e.primaryA,
|
|
25
|
+
borderInverseOpaque: r.gray100,
|
|
26
|
+
borderInverseTransparent: c(e.primaryB, "0.2"),
|
|
27
|
+
borderInverseSelected: e.primaryB
|
|
28
|
+
}, s = {
|
|
29
|
+
buttonPrimaryHover: o.backgroundInversePrimary,
|
|
30
|
+
buttonSecondaryFill: o.backgroundTertiary,
|
|
31
|
+
buttonSecondaryHover: o.backgroundTertiary,
|
|
32
|
+
inputBorder: o.backgroundTertiary,
|
|
33
|
+
inputFill: o.backgroundTertiary
|
|
34
|
+
}, p = {
|
|
35
|
+
name: "clay-dark",
|
|
36
|
+
colors: {
|
|
37
|
+
...t,
|
|
38
|
+
...e,
|
|
39
|
+
...o,
|
|
40
|
+
...i,
|
|
41
|
+
...y,
|
|
42
|
+
...s
|
|
43
|
+
},
|
|
44
|
+
borders: d,
|
|
45
|
+
typography: m
|
|
46
|
+
}, C = a(p);
|
|
47
|
+
export {
|
|
48
|
+
s as darkComponentColors,
|
|
49
|
+
e as darkCoreColors,
|
|
50
|
+
o as darkSemanticColors,
|
|
51
|
+
C as default
|
|
52
|
+
};
|
|
@@ -28,6 +28,7 @@ export declare const lightComponentColors: {
|
|
|
28
28
|
buttonDisabledFill: string;
|
|
29
29
|
inputBorder: string;
|
|
30
30
|
inputFill: string;
|
|
31
|
+
inputFillDisabled: string;
|
|
31
32
|
linkHover: string;
|
|
32
33
|
linkActive: string;
|
|
33
34
|
linkVisited: string;
|
|
@@ -35,6 +36,7 @@ export declare const lightComponentColors: {
|
|
|
35
36
|
tickFillDisabled: string;
|
|
36
37
|
};
|
|
37
38
|
declare const theme: import('baseui').Theme & {
|
|
39
|
+
name: string;
|
|
38
40
|
colors: {
|
|
39
41
|
buttonPrimaryHover: string;
|
|
40
42
|
buttonPrimaryActive: string;
|
|
@@ -46,6 +48,7 @@ declare const theme: import('baseui').Theme & {
|
|
|
46
48
|
buttonDisabledFill: string;
|
|
47
49
|
inputBorder: string;
|
|
48
50
|
inputFill: string;
|
|
51
|
+
inputFillDisabled: string;
|
|
49
52
|
linkHover: string;
|
|
50
53
|
linkActive: string;
|
|
51
54
|
linkVisited: string;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createTheme as o } from "baseui";
|
|
2
|
+
import { primitiveLightColors as t } from "baseui/tokens";
|
|
3
|
+
import { coreColors as e, primitiveColors as a, semanticExtensionColors as n, sharedComponentColors as i } from "./color-tokens.js";
|
|
4
|
+
import c from "./borders.js";
|
|
5
|
+
import y from "./typography.js";
|
|
6
|
+
const l = {
|
|
7
|
+
primaryA: t.black,
|
|
8
|
+
primaryB: t.white,
|
|
9
|
+
...e
|
|
10
|
+
}, r = {
|
|
11
|
+
// Background
|
|
12
|
+
backgroundSecondary: t.gray50,
|
|
13
|
+
backgroundInverseSecondary: t.gray800,
|
|
14
|
+
backgroundTertiary: t.gray100,
|
|
15
|
+
backgroundStateDisabled: t.gray100,
|
|
16
|
+
// Content
|
|
17
|
+
contentPrimary: t.black,
|
|
18
|
+
// already set in base, but here for semantic use
|
|
19
|
+
contentInverseSecondary: t.gray100,
|
|
20
|
+
contentInverseTertiary: t.gray200,
|
|
21
|
+
contentStateDisabled: t.gray400,
|
|
22
|
+
// Border
|
|
23
|
+
borderOpaque: t.gray100
|
|
24
|
+
}, d = {
|
|
25
|
+
buttonPrimaryHover: r.contentPrimary,
|
|
26
|
+
buttonPrimaryActive: r.contentPrimary,
|
|
27
|
+
buttonSecondaryFill: r.backgroundTertiary,
|
|
28
|
+
buttonSecondaryHover: r.backgroundTertiary,
|
|
29
|
+
buttonSecondaryActive: r.contentPrimary,
|
|
30
|
+
buttonTertiaryHover: r.backgroundTertiary,
|
|
31
|
+
buttonTertiaryActive: r.contentPrimary,
|
|
32
|
+
buttonDisabledFill: r.backgroundStateDisabled,
|
|
33
|
+
inputBorder: r.backgroundTertiary,
|
|
34
|
+
inputFill: r.backgroundTertiary,
|
|
35
|
+
inputFillDisabled: r.backgroundStateDisabled,
|
|
36
|
+
linkHover: t.gray800,
|
|
37
|
+
linkActive: t.gray700,
|
|
38
|
+
linkVisited: t.gray600,
|
|
39
|
+
// Radio
|
|
40
|
+
tickBorder: r.contentPrimary,
|
|
41
|
+
tickFillDisabled: r.contentStateDisabled
|
|
42
|
+
}, s = {
|
|
43
|
+
name: "clay-light",
|
|
44
|
+
colors: {
|
|
45
|
+
...a,
|
|
46
|
+
...l,
|
|
47
|
+
...r,
|
|
48
|
+
...n,
|
|
49
|
+
...i,
|
|
50
|
+
...d
|
|
51
|
+
},
|
|
52
|
+
borders: c,
|
|
53
|
+
typography: y
|
|
54
|
+
}, p = o(s);
|
|
55
|
+
export {
|
|
56
|
+
p as default,
|
|
57
|
+
d as lightComponentColors,
|
|
58
|
+
l as lightCoreColors,
|
|
59
|
+
r as lightSemanticColors
|
|
60
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { primitiveColors as e } from "baseui/tokens";
|
|
2
|
+
import { hexToRgba as t } from "../utils/index.js";
|
|
3
|
+
const i = "#FF004D", r = {
|
|
4
|
+
gray300: "#BBBBBB",
|
|
5
|
+
yellow300: "#FAECD1",
|
|
6
|
+
yellow400: "#F3CF8A",
|
|
7
|
+
yellow500: "#F1A91F",
|
|
8
|
+
yellow600: "#B97E0C",
|
|
9
|
+
yellow700: "#944500",
|
|
10
|
+
lime300: "#EEF3D8",
|
|
11
|
+
lime400: "#C9DB85",
|
|
12
|
+
lime500: "#A6C23A",
|
|
13
|
+
lime600: "#78901C",
|
|
14
|
+
lime700: "#4D5E0E",
|
|
15
|
+
purple300: "#DEDEED",
|
|
16
|
+
purple400: "#9D9BCA",
|
|
17
|
+
purple500: "#5B58A7",
|
|
18
|
+
purple600: "#4B47B2",
|
|
19
|
+
purple700: "#2B26A4",
|
|
20
|
+
blue300: "#E1F3FF",
|
|
21
|
+
blue400: "#AEDFFF",
|
|
22
|
+
blue500: "#46B6FE",
|
|
23
|
+
blue600: "#0188DF",
|
|
24
|
+
blue700: "#014A7A",
|
|
25
|
+
brown300: "#D8C3A9",
|
|
26
|
+
brown400: "#B7966C",
|
|
27
|
+
brown500: "#8C6636",
|
|
28
|
+
brown600: "#6A3C01",
|
|
29
|
+
brown700: "#543104"
|
|
30
|
+
}, o = {
|
|
31
|
+
accent: i,
|
|
32
|
+
negative: e.red600,
|
|
33
|
+
warning: r.yellow500,
|
|
34
|
+
positive: e.green600
|
|
35
|
+
}, n = {
|
|
36
|
+
// Backgrounds
|
|
37
|
+
backgroundStateDisabled: e.gray100,
|
|
38
|
+
backgroundOverlayDark: t(e.black, "0.50") || "",
|
|
39
|
+
backgroundOverlayElevation: t(e.black, "0.00") || "",
|
|
40
|
+
backgroundAccent: r.blue600,
|
|
41
|
+
backgroundNegative: o.negative,
|
|
42
|
+
backgroundWarning: o.warning,
|
|
43
|
+
backgroundPositive: o.positive,
|
|
44
|
+
backgroundAccentLight: r.blue300,
|
|
45
|
+
backgroundNegativeLight: e.red50,
|
|
46
|
+
backgroundWarningLight: r.yellow300,
|
|
47
|
+
backgroundPositiveLight: e.green50,
|
|
48
|
+
backgroundAlwaysDark: e.black,
|
|
49
|
+
backgroundAlwaysLight: e.white,
|
|
50
|
+
// Content
|
|
51
|
+
contentAccent: i,
|
|
52
|
+
contentNegative: o.negative,
|
|
53
|
+
contentWarning: r.yellow600,
|
|
54
|
+
contentPositive: o.positive,
|
|
55
|
+
contentStateDisabled: e.gray400,
|
|
56
|
+
// Border
|
|
57
|
+
borderAccent: r.blue600,
|
|
58
|
+
borderAccentLight: r.blue300,
|
|
59
|
+
borderNegative: o.negative,
|
|
60
|
+
borderWarning: r.yellow600
|
|
61
|
+
}, c = {
|
|
62
|
+
buttonPrimarySpinnerForeground: n.borderAccent,
|
|
63
|
+
buttonSecondarySpinnerForeground: n.borderAccent,
|
|
64
|
+
buttonTertiarySpinnerForeground: n.borderAccent,
|
|
65
|
+
buttonDisabledSpinnerForeground: n.borderAccent
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
o as coreColors,
|
|
69
|
+
i as mezoOffRed,
|
|
70
|
+
r as primitiveColors,
|
|
71
|
+
n as semanticExtensionColors,
|
|
72
|
+
c as sharedComponentColors
|
|
73
|
+
};
|
package/dist/themes/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { ThemeProvider } from 'baseui';
|
|
2
|
+
export type { Theme } from 'baseui';
|
|
2
3
|
export { default as ClayProvider } from './provider';
|
|
4
|
+
export type { ClayProviderProps } from './provider';
|
|
3
5
|
export { default as borders } from './borders';
|
|
4
6
|
export { default as typography } from './typography';
|
|
5
7
|
export { default as ClayLightTheme } from './clay-light-theme';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ThemeProvider as o } from "baseui";
|
|
2
|
+
import { default as t } from "./provider.js";
|
|
3
|
+
import { default as m } from "./borders.js";
|
|
4
|
+
import { default as l } from "./typography.js";
|
|
5
|
+
import { default as s } from "./clay-light-theme.js";
|
|
6
|
+
import { default as h } from "./clay-dark-theme.js";
|
|
7
|
+
export {
|
|
8
|
+
h as ClayDarkTheme,
|
|
9
|
+
s as ClayLightTheme,
|
|
10
|
+
t as ClayProvider,
|
|
11
|
+
o as ThemeProvider,
|
|
12
|
+
m as borders,
|
|
13
|
+
l as typography
|
|
14
|
+
};
|