@versaur/react 1.0.0 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks.d.ts +1347 -0
- package/dist/blocks.js +1085 -38
- package/dist/checkbox.module-D4Do_b6S.js +9 -0
- package/dist/{utils/cx.js → cx-B9vmfsc1.js} +1 -1
- package/dist/forms.d.ts +527 -0
- package/dist/forms.js +609 -24
- package/dist/overlay-parts-YglazEA-.js +29 -0
- package/dist/primitive.d.ts +575 -0
- package/dist/primitive.js +203 -24
- package/dist/tokens.d.ts +1 -0
- package/dist/tokens.js +1 -0
- package/dist/tooltip-CmKPCktA.js +212 -0
- package/dist/{hooks/use-data-attrs.js → use-data-attrs-iPFyfiKN.js} +1 -1
- package/dist/utils.d.ts +40 -0
- package/dist/utils.js +2 -2
- package/dist/versaur-react.css +1 -0
- package/package.json +9 -9
- package/dist/blocks/app-layout/app-layout.d.ts +0 -3
- package/dist/blocks/app-layout/app-layout.d.ts.map +0 -1
- package/dist/blocks/app-layout/app-layout.types.d.ts +0 -35
- package/dist/blocks/app-layout/app-layout.types.d.ts.map +0 -1
- package/dist/blocks/app-layout/index.d.ts +0 -3
- package/dist/blocks/app-layout/index.d.ts.map +0 -1
- package/dist/blocks/attribute-list/attribute-list-item.d.ts +0 -13
- package/dist/blocks/attribute-list/attribute-list-item.d.ts.map +0 -1
- package/dist/blocks/attribute-list/attribute-list.d.ts +0 -29
- package/dist/blocks/attribute-list/attribute-list.d.ts.map +0 -1
- package/dist/blocks/attribute-list/attribute-list.types.d.ts +0 -34
- package/dist/blocks/attribute-list/attribute-list.types.d.ts.map +0 -1
- package/dist/blocks/attribute-list/index.d.ts +0 -17
- package/dist/blocks/attribute-list/index.d.ts.map +0 -1
- package/dist/blocks/avatar-group/avatar-group.d.ts +0 -3
- package/dist/blocks/avatar-group/avatar-group.d.ts.map +0 -1
- package/dist/blocks/avatar-group/avatar-group.types.d.ts +0 -30
- package/dist/blocks/avatar-group/avatar-group.types.d.ts.map +0 -1
- package/dist/blocks/avatar-group/index.d.ts +0 -15
- package/dist/blocks/avatar-group/index.d.ts.map +0 -1
- package/dist/blocks/badge-group/badge-group.d.ts +0 -15
- package/dist/blocks/badge-group/badge-group.d.ts.map +0 -1
- package/dist/blocks/badge-group/badge-group.types.d.ts +0 -34
- package/dist/blocks/badge-group/badge-group.types.d.ts.map +0 -1
- package/dist/blocks/badge-group/index.d.ts +0 -15
- package/dist/blocks/badge-group/index.d.ts.map +0 -1
- package/dist/blocks/bottom-bar/bottom-bar.d.ts +0 -38
- package/dist/blocks/bottom-bar/bottom-bar.d.ts.map +0 -1
- package/dist/blocks/bottom-bar/bottom-bar.types.d.ts +0 -19
- package/dist/blocks/bottom-bar/bottom-bar.types.d.ts.map +0 -1
- package/dist/blocks/bottom-bar/index.d.ts +0 -4
- package/dist/blocks/bottom-bar/index.d.ts.map +0 -1
- package/dist/blocks/bottom-sheet/bottom-sheet.d.ts +0 -9
- package/dist/blocks/bottom-sheet/bottom-sheet.d.ts.map +0 -1
- package/dist/blocks/bottom-sheet/bottom-sheet.types.d.ts +0 -16
- package/dist/blocks/bottom-sheet/bottom-sheet.types.d.ts.map +0 -1
- package/dist/blocks/bottom-sheet/index.d.ts +0 -3
- package/dist/blocks/bottom-sheet/index.d.ts.map +0 -1
- package/dist/blocks/button-group/button-group.d.ts +0 -14
- package/dist/blocks/button-group/button-group.d.ts.map +0 -1
- package/dist/blocks/button-group/button-group.types.d.ts +0 -39
- package/dist/blocks/button-group/button-group.types.d.ts.map +0 -1
- package/dist/blocks/button-group/index.d.ts +0 -15
- package/dist/blocks/button-group/index.d.ts.map +0 -1
- package/dist/blocks/card/card.d.ts +0 -27
- package/dist/blocks/card/card.d.ts.map +0 -1
- package/dist/blocks/card/card.types.d.ts +0 -42
- package/dist/blocks/card/card.types.d.ts.map +0 -1
- package/dist/blocks/card/index.d.ts +0 -20
- package/dist/blocks/card/index.d.ts.map +0 -1
- package/dist/blocks/dialog/dialog.d.ts +0 -4
- package/dist/blocks/dialog/dialog.d.ts.map +0 -1
- package/dist/blocks/dialog/dialog.types.d.ts +0 -12
- package/dist/blocks/dialog/dialog.types.d.ts.map +0 -1
- package/dist/blocks/dialog/index.d.ts +0 -3
- package/dist/blocks/dialog/index.d.ts.map +0 -1
- package/dist/blocks/drawer/drawer.d.ts +0 -9
- package/dist/blocks/drawer/drawer.d.ts.map +0 -1
- package/dist/blocks/drawer/drawer.types.d.ts +0 -42
- package/dist/blocks/drawer/drawer.types.d.ts.map +0 -1
- package/dist/blocks/drawer/index.d.ts +0 -3
- package/dist/blocks/drawer/index.d.ts.map +0 -1
- package/dist/blocks/index.d.ts +0 -37
- package/dist/blocks/index.d.ts.map +0 -1
- package/dist/blocks/menu/index.d.ts +0 -16
- package/dist/blocks/menu/index.d.ts.map +0 -1
- package/dist/blocks/menu/menu-item.d.ts +0 -32
- package/dist/blocks/menu/menu-item.d.ts.map +0 -1
- package/dist/blocks/menu/menu.d.ts +0 -43
- package/dist/blocks/menu/menu.d.ts.map +0 -1
- package/dist/blocks/menu/menu.types.d.ts +0 -151
- package/dist/blocks/menu/menu.types.d.ts.map +0 -1
- package/dist/blocks/modal/index.d.ts +0 -3
- package/dist/blocks/modal/index.d.ts.map +0 -1
- package/dist/blocks/modal/modal.d.ts +0 -9
- package/dist/blocks/modal/modal.d.ts.map +0 -1
- package/dist/blocks/modal/modal.types.d.ts +0 -42
- package/dist/blocks/modal/modal.types.d.ts.map +0 -1
- package/dist/blocks/nav/index.d.ts +0 -11
- package/dist/blocks/nav/index.d.ts.map +0 -1
- package/dist/blocks/nav/nav-item.d.ts +0 -33
- package/dist/blocks/nav/nav-item.d.ts.map +0 -1
- package/dist/blocks/nav/nav.d.ts +0 -33
- package/dist/blocks/nav/nav.d.ts.map +0 -1
- package/dist/blocks/nav/nav.types.d.ts +0 -83
- package/dist/blocks/nav/nav.types.d.ts.map +0 -1
- package/dist/blocks/no-results/index.d.ts +0 -11
- package/dist/blocks/no-results/index.d.ts.map +0 -1
- package/dist/blocks/no-results/no-results.d.ts +0 -22
- package/dist/blocks/no-results/no-results.d.ts.map +0 -1
- package/dist/blocks/no-results/no-results.types.d.ts +0 -32
- package/dist/blocks/no-results/no-results.types.d.ts.map +0 -1
- package/dist/blocks/sidebar/index.d.ts +0 -14
- package/dist/blocks/sidebar/index.d.ts.map +0 -1
- package/dist/blocks/sidebar/sidebar.d.ts +0 -45
- package/dist/blocks/sidebar/sidebar.d.ts.map +0 -1
- package/dist/blocks/sidebar/sidebar.types.d.ts +0 -51
- package/dist/blocks/sidebar/sidebar.types.d.ts.map +0 -1
- package/dist/blocks/table/index.d.ts +0 -3
- package/dist/blocks/table/index.d.ts.map +0 -1
- package/dist/blocks/table/table.d.ts +0 -56
- package/dist/blocks/table/table.d.ts.map +0 -1
- package/dist/blocks/table/table.types.d.ts +0 -119
- package/dist/blocks/table/table.types.d.ts.map +0 -1
- package/dist/blocks/tabs/index.d.ts +0 -13
- package/dist/blocks/tabs/index.d.ts.map +0 -1
- package/dist/blocks/tabs/tabs.d.ts +0 -34
- package/dist/blocks/tabs/tabs.d.ts.map +0 -1
- package/dist/blocks/tabs/tabs.types.d.ts +0 -39
- package/dist/blocks/tabs/tabs.types.d.ts.map +0 -1
- package/dist/blocks/top-bar/index.d.ts +0 -3
- package/dist/blocks/top-bar/index.d.ts.map +0 -1
- package/dist/blocks/top-bar/top-bar.d.ts +0 -37
- package/dist/blocks/top-bar/top-bar.d.ts.map +0 -1
- package/dist/blocks/top-bar/top-bar.types.d.ts +0 -65
- package/dist/blocks/top-bar/top-bar.types.d.ts.map +0 -1
- package/dist/components/blocks/app-layout/app-layout.js +0 -54
- package/dist/components/blocks/attribute-list/attribute-list-item.js +0 -22
- package/dist/components/blocks/attribute-list/attribute-list.js +0 -23
- package/dist/components/blocks/attribute-list/index.js +0 -8
- package/dist/components/blocks/avatar-group/avatar-group.js +0 -35
- package/dist/components/blocks/badge-group/badge-group.js +0 -40
- package/dist/components/blocks/bottom-bar/bottom-bar.js +0 -41
- package/dist/components/blocks/bottom-sheet/bottom-sheet.js +0 -48
- package/dist/components/blocks/button-group/button-group.js +0 -42
- package/dist/components/blocks/card/card.js +0 -44
- package/dist/components/blocks/dialog/dialog.js +0 -44
- package/dist/components/blocks/drawer/drawer.js +0 -83
- package/dist/components/blocks/menu/index.js +0 -7
- package/dist/components/blocks/menu/menu-item.js +0 -41
- package/dist/components/blocks/menu/menu.js +0 -55
- package/dist/components/blocks/modal/modal.js +0 -81
- package/dist/components/blocks/nav/index.js +0 -9
- package/dist/components/blocks/nav/nav-item.js +0 -56
- package/dist/components/blocks/nav/nav.js +0 -39
- package/dist/components/blocks/no-results/no-results.js +0 -19
- package/dist/components/blocks/sidebar/sidebar.js +0 -106
- package/dist/components/blocks/table/table.js +0 -177
- package/dist/components/blocks/tabs/tabs.js +0 -89
- package/dist/components/blocks/top-bar/top-bar.js +0 -46
- package/dist/components/forms/checkbox/checkbox.js +0 -35
- package/dist/components/forms/checkbox-group/checkbox-group.js +0 -96
- package/dist/components/forms/chip-multiple-input/chip-multiple-input.js +0 -101
- package/dist/components/forms/chip-single-input/chip-single-input.js +0 -98
- package/dist/components/forms/error-text/error-text.js +0 -9
- package/dist/components/forms/helper-text/helper-text.js +0 -9
- package/dist/components/forms/label/label.js +0 -18
- package/dist/components/forms/radio/radio.js +0 -34
- package/dist/components/forms/radio-group/radio-group.js +0 -91
- package/dist/components/forms/select/select.js +0 -55
- package/dist/components/forms/text-area/text-area.js +0 -62
- package/dist/components/forms/text-input/text-input.js +0 -60
- package/dist/components/primitive/avatar/avatar.js +0 -37
- package/dist/components/primitive/badge/badge.js +0 -41
- package/dist/components/primitive/button/button.js +0 -64
- package/dist/components/primitive/button-icon/button-icon.js +0 -56
- package/dist/components/primitive/dot/dot.js +0 -16
- package/dist/components/primitive/heading/heading.js +0 -22
- package/dist/components/primitive/hr/hr.js +0 -28
- package/dist/components/primitive/icon/icon.js +0 -13
- package/dist/components/primitive/kbd/kbd.js +0 -13
- package/dist/components/primitive/loader/loader.js +0 -23
- package/dist/components/primitive/text/text.js +0 -22
- package/dist/components/primitive/tooltip/tooltip.js +0 -71
- package/dist/components/utils/overlay-parts/overlay-parts.js +0 -20
- package/dist/core/src/components/blocks/app-layout/app-layout.module.css.js +0 -12
- package/dist/core/src/components/blocks/attribute-list/attribute-list.module.css.js +0 -6
- package/dist/core/src/components/blocks/avatar-group/avatar-group.module.css.js +0 -6
- package/dist/core/src/components/blocks/badge-group/badge-group.module.css.js +0 -6
- package/dist/core/src/components/blocks/bottom-bar/bottom-bar.module.css.js +0 -9
- package/dist/core/src/components/blocks/bottom-sheet/bottom-sheet.module.css.js +0 -7
- package/dist/core/src/components/blocks/button-group/button-group.module.css.js +0 -6
- package/dist/core/src/components/blocks/card/card.module.css.js +0 -13
- package/dist/core/src/components/blocks/drawer/drawer.module.css.js +0 -7
- package/dist/core/src/components/blocks/menu/menu.module.css.js +0 -9
- package/dist/core/src/components/blocks/modal/modal.module.css.js +0 -7
- package/dist/core/src/components/blocks/nav/nav.module.css.js +0 -9
- package/dist/core/src/components/blocks/no-results/no-results.module.css.js +0 -11
- package/dist/core/src/components/blocks/sidebar/sidebar.module.css.js +0 -21
- package/dist/core/src/components/blocks/table/table.module.css.js +0 -12
- package/dist/core/src/components/blocks/tabs/tabs.module.css.js +0 -14
- package/dist/core/src/components/blocks/top-bar/top-bar.module.css.js +0 -12
- package/dist/core/src/components/forms/checkbox/checkbox.module.css.js +0 -13
- package/dist/core/src/components/forms/checkbox-group/checkbox-group.module.css.js +0 -15
- package/dist/core/src/components/forms/chip-multiple-input/chip-multiple-input.module.css.js +0 -11
- package/dist/core/src/components/forms/chip-single-input/chip-single-input.module.css.js +0 -11
- package/dist/core/src/components/forms/error-text/error-text.module.css.js +0 -7
- package/dist/core/src/components/forms/helper-text/helper-text.module.css.js +0 -7
- package/dist/core/src/components/forms/label/label.module.css.js +0 -7
- package/dist/core/src/components/forms/radio/radio.module.css.js +0 -13
- package/dist/core/src/components/forms/radio-group/radio-group.module.css.js +0 -17
- package/dist/core/src/components/forms/select/select.module.css.js +0 -9
- package/dist/core/src/components/forms/text-area/text-area.module.css.js +0 -9
- package/dist/core/src/components/forms/text-input/text-input.module.css.js +0 -13
- package/dist/core/src/components/primitive/avatar/avatar.module.css.js +0 -8
- package/dist/core/src/components/primitive/badge/badge.module.css.js +0 -7
- package/dist/core/src/components/primitive/button/button.module.css.js +0 -7
- package/dist/core/src/components/primitive/button-icon/button-icon.module.css.js +0 -6
- package/dist/core/src/components/primitive/dot/dot.module.css.js +0 -7
- package/dist/core/src/components/primitive/heading/heading.module.css.js +0 -7
- package/dist/core/src/components/primitive/hr/hr.module.css.js +0 -7
- package/dist/core/src/components/primitive/icon/icon.module.css.js +0 -7
- package/dist/core/src/components/primitive/kbd/kbd.module.css.js +0 -7
- package/dist/core/src/components/primitive/loader/loader.module.css.js +0 -7
- package/dist/core/src/components/primitive/text/text.module.css.js +0 -7
- package/dist/core/src/components/primitive/tooltip/tooltip.module.css.js +0 -8
- package/dist/core/src/components/utils/overlay-parts/overlay-parts.module.css.js +0 -21
- package/dist/forms/checkbox/checkbox.d.ts +0 -16
- package/dist/forms/checkbox/checkbox.d.ts.map +0 -1
- package/dist/forms/checkbox/checkbox.types.d.ts +0 -16
- package/dist/forms/checkbox/checkbox.types.d.ts.map +0 -1
- package/dist/forms/checkbox/index.d.ts +0 -8
- package/dist/forms/checkbox/index.d.ts.map +0 -1
- package/dist/forms/checkbox-group/checkbox-group.d.ts +0 -8
- package/dist/forms/checkbox-group/checkbox-group.d.ts.map +0 -1
- package/dist/forms/checkbox-group/checkbox-group.types.d.ts +0 -59
- package/dist/forms/checkbox-group/checkbox-group.types.d.ts.map +0 -1
- package/dist/forms/checkbox-group/index.d.ts +0 -12
- package/dist/forms/checkbox-group/index.d.ts.map +0 -1
- package/dist/forms/chip-multiple-input/chip-multiple-input.d.ts +0 -8
- package/dist/forms/chip-multiple-input/chip-multiple-input.d.ts.map +0 -1
- package/dist/forms/chip-multiple-input/chip-multiple-input.types.d.ts +0 -60
- package/dist/forms/chip-multiple-input/chip-multiple-input.types.d.ts.map +0 -1
- package/dist/forms/chip-multiple-input/index.d.ts +0 -13
- package/dist/forms/chip-multiple-input/index.d.ts.map +0 -1
- package/dist/forms/chip-single-input/chip-single-input.d.ts +0 -8
- package/dist/forms/chip-single-input/chip-single-input.d.ts.map +0 -1
- package/dist/forms/chip-single-input/chip-single-input.types.d.ts +0 -60
- package/dist/forms/chip-single-input/chip-single-input.types.d.ts.map +0 -1
- package/dist/forms/chip-single-input/index.d.ts +0 -13
- package/dist/forms/chip-single-input/index.d.ts.map +0 -1
- package/dist/forms/error-text/error-text.d.ts +0 -8
- package/dist/forms/error-text/error-text.d.ts.map +0 -1
- package/dist/forms/error-text/error-text.types.d.ts +0 -8
- package/dist/forms/error-text/error-text.types.d.ts.map +0 -1
- package/dist/forms/error-text/index.d.ts +0 -3
- package/dist/forms/error-text/index.d.ts.map +0 -1
- package/dist/forms/helper-text/helper-text.d.ts +0 -7
- package/dist/forms/helper-text/helper-text.d.ts.map +0 -1
- package/dist/forms/helper-text/helper-text.types.d.ts +0 -8
- package/dist/forms/helper-text/helper-text.types.d.ts.map +0 -1
- package/dist/forms/helper-text/index.d.ts +0 -3
- package/dist/forms/helper-text/index.d.ts.map +0 -1
- package/dist/forms/index.d.ts +0 -22
- package/dist/forms/index.d.ts.map +0 -1
- package/dist/forms/label/index.d.ts +0 -3
- package/dist/forms/label/index.d.ts.map +0 -1
- package/dist/forms/label/label.d.ts +0 -7
- package/dist/forms/label/label.d.ts.map +0 -1
- package/dist/forms/label/label.types.d.ts +0 -14
- package/dist/forms/label/label.types.d.ts.map +0 -1
- package/dist/forms/radio/index.d.ts +0 -10
- package/dist/forms/radio/index.d.ts.map +0 -1
- package/dist/forms/radio/radio.d.ts +0 -18
- package/dist/forms/radio/radio.d.ts.map +0 -1
- package/dist/forms/radio/radio.types.d.ts +0 -23
- package/dist/forms/radio/radio.types.d.ts.map +0 -1
- package/dist/forms/radio-group/index.d.ts +0 -13
- package/dist/forms/radio-group/index.d.ts.map +0 -1
- package/dist/forms/radio-group/radio-group.d.ts +0 -8
- package/dist/forms/radio-group/radio-group.d.ts.map +0 -1
- package/dist/forms/radio-group/radio-group.types.d.ts +0 -66
- package/dist/forms/radio-group/radio-group.types.d.ts.map +0 -1
- package/dist/forms/select/index.d.ts +0 -3
- package/dist/forms/select/index.d.ts.map +0 -1
- package/dist/forms/select/select.d.ts +0 -18
- package/dist/forms/select/select.d.ts.map +0 -1
- package/dist/forms/select/select.types.d.ts +0 -32
- package/dist/forms/select/select.types.d.ts.map +0 -1
- package/dist/forms/text-area/index.d.ts +0 -3
- package/dist/forms/text-area/index.d.ts.map +0 -1
- package/dist/forms/text-area/text-area.d.ts +0 -7
- package/dist/forms/text-area/text-area.d.ts.map +0 -1
- package/dist/forms/text-area/text-area.types.d.ts +0 -36
- package/dist/forms/text-area/text-area.types.d.ts.map +0 -1
- package/dist/forms/text-input/index.d.ts +0 -3
- package/dist/forms/text-input/index.d.ts.map +0 -1
- package/dist/forms/text-input/text-input.d.ts +0 -7
- package/dist/forms/text-input/text-input.d.ts.map +0 -1
- package/dist/forms/text-input/text-input.types.d.ts +0 -28
- package/dist/forms/text-input/text-input.types.d.ts.map +0 -1
- package/dist/hooks/use-resize-observer.js +0 -14
- package/dist/hooks/use-tooltip-positioning.js +0 -50
- package/dist/primitive/avatar/avatar-group.d.ts +0 -3
- package/dist/primitive/avatar/avatar-group.d.ts.map +0 -1
- package/dist/primitive/avatar/avatar-group.types.d.ts +0 -30
- package/dist/primitive/avatar/avatar-group.types.d.ts.map +0 -1
- package/dist/primitive/avatar/avatar.d.ts +0 -5
- package/dist/primitive/avatar/avatar.d.ts.map +0 -1
- package/dist/primitive/avatar/avatar.types.d.ts +0 -34
- package/dist/primitive/avatar/avatar.types.d.ts.map +0 -1
- package/dist/primitive/avatar/index.d.ts +0 -15
- package/dist/primitive/avatar/index.d.ts.map +0 -1
- package/dist/primitive/badge/badge.d.ts +0 -17
- package/dist/primitive/badge/badge.d.ts.map +0 -1
- package/dist/primitive/badge/badge.types.d.ts +0 -36
- package/dist/primitive/badge/badge.types.d.ts.map +0 -1
- package/dist/primitive/badge/index.d.ts +0 -14
- package/dist/primitive/badge/index.d.ts.map +0 -1
- package/dist/primitive/button/button.d.ts +0 -17
- package/dist/primitive/button/button.d.ts.map +0 -1
- package/dist/primitive/button/button.types.d.ts +0 -43
- package/dist/primitive/button/button.types.d.ts.map +0 -1
- package/dist/primitive/button/index.d.ts +0 -13
- package/dist/primitive/button/index.d.ts.map +0 -1
- package/dist/primitive/button-icon/button-icon.d.ts +0 -16
- package/dist/primitive/button-icon/button-icon.d.ts.map +0 -1
- package/dist/primitive/button-icon/button-icon.types.d.ts +0 -28
- package/dist/primitive/button-icon/button-icon.types.d.ts.map +0 -1
- package/dist/primitive/button-icon/index.d.ts +0 -14
- package/dist/primitive/button-icon/index.d.ts.map +0 -1
- package/dist/primitive/dot/dot.d.ts +0 -13
- package/dist/primitive/dot/dot.d.ts.map +0 -1
- package/dist/primitive/dot/dot.types.d.ts +0 -15
- package/dist/primitive/dot/dot.types.d.ts.map +0 -1
- package/dist/primitive/dot/index.d.ts +0 -13
- package/dist/primitive/dot/index.d.ts.map +0 -1
- package/dist/primitive/heading/heading.d.ts +0 -3
- package/dist/primitive/heading/heading.d.ts.map +0 -1
- package/dist/primitive/heading/heading.types.d.ts +0 -34
- package/dist/primitive/heading/heading.types.d.ts.map +0 -1
- package/dist/primitive/heading/index.d.ts +0 -17
- package/dist/primitive/heading/index.d.ts.map +0 -1
- package/dist/primitive/hr/hr.d.ts +0 -15
- package/dist/primitive/hr/hr.d.ts.map +0 -1
- package/dist/primitive/hr/hr.types.d.ts +0 -25
- package/dist/primitive/hr/hr.types.d.ts.map +0 -1
- package/dist/primitive/hr/index.d.ts +0 -15
- package/dist/primitive/hr/index.d.ts.map +0 -1
- package/dist/primitive/icon/icon.d.ts +0 -7
- package/dist/primitive/icon/icon.d.ts.map +0 -1
- package/dist/primitive/icon/icon.types.d.ts +0 -8
- package/dist/primitive/icon/icon.types.d.ts.map +0 -1
- package/dist/primitive/icon/index.d.ts +0 -13
- package/dist/primitive/icon/index.d.ts.map +0 -1
- package/dist/primitive/index.d.ts +0 -24
- package/dist/primitive/index.d.ts.map +0 -1
- package/dist/primitive/kbd/index.d.ts +0 -11
- package/dist/primitive/kbd/index.d.ts.map +0 -1
- package/dist/primitive/kbd/kbd.d.ts +0 -14
- package/dist/primitive/kbd/kbd.d.ts.map +0 -1
- package/dist/primitive/kbd/kbd.preview.d.ts +0 -16
- package/dist/primitive/kbd/kbd.preview.d.ts.map +0 -1
- package/dist/primitive/kbd/kbd.types.d.ts +0 -24
- package/dist/primitive/kbd/kbd.types.d.ts.map +0 -1
- package/dist/primitive/loader/index.d.ts +0 -10
- package/dist/primitive/loader/index.d.ts.map +0 -1
- package/dist/primitive/loader/loader.d.ts +0 -17
- package/dist/primitive/loader/loader.d.ts.map +0 -1
- package/dist/primitive/loader/loader.types.d.ts +0 -19
- package/dist/primitive/loader/loader.types.d.ts.map +0 -1
- package/dist/primitive/text/index.d.ts +0 -17
- package/dist/primitive/text/index.d.ts.map +0 -1
- package/dist/primitive/text/text.d.ts +0 -3
- package/dist/primitive/text/text.d.ts.map +0 -1
- package/dist/primitive/text/text.types.d.ts +0 -34
- package/dist/primitive/text/text.types.d.ts.map +0 -1
- package/dist/primitive/tooltip/index.d.ts +0 -8
- package/dist/primitive/tooltip/index.d.ts.map +0 -1
- package/dist/primitive/tooltip/tooltip.d.ts +0 -39
- package/dist/primitive/tooltip/tooltip.d.ts.map +0 -1
- package/dist/primitive/tooltip/tooltip.types.d.ts +0 -72
- package/dist/primitive/tooltip/tooltip.types.d.ts.map +0 -1
- package/dist/react.css +0 -1
- package/dist/utils/combine-refs.js +0 -16
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/overlay-parts/index.d.ts +0 -3
- package/dist/utils/overlay-parts/index.d.ts.map +0 -1
- package/dist/utils/overlay-parts/overlay-parts.d.ts +0 -6
- package/dist/utils/overlay-parts/overlay-parts.d.ts.map +0 -1
- package/dist/utils/overlay-parts/overlay-parts.types.d.ts +0 -22
- package/dist/utils/overlay-parts/overlay-parts.types.d.ts.map +0 -1
- package/dist/utils/polymorphic.js +0 -6
|
@@ -0,0 +1,575 @@
|
|
|
1
|
+
import { Avatar as Avatar_2 } from '../../../../../core/src/components/primitive';
|
|
2
|
+
import { AvatarShape } from '../../../../../core/src/components/primitive';
|
|
3
|
+
import { AvatarSize } from '../../../../../core/src/components/primitive';
|
|
4
|
+
import { AvatarVariant } from '../../../../../core/src/components/primitive';
|
|
5
|
+
import { Badge as Badge_2 } from '../../../../../core/src/components/primitive';
|
|
6
|
+
import { BadgeShape } from '../../../../../core/src/components/primitive';
|
|
7
|
+
import { BadgeSize } from '../../../../../core/src/components/primitive';
|
|
8
|
+
import { BadgeVariant } from '../../../../../core/src/components/primitive';
|
|
9
|
+
import { Button as Button_2 } from '../../../../../core/src/components/primitive';
|
|
10
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
11
|
+
import { ButtonSize } from '../../../../../core/src/components/primitive';
|
|
12
|
+
import { ButtonVariant } from '../../../../../core/src/components/primitive';
|
|
13
|
+
import { ComponentType } from 'react';
|
|
14
|
+
import { default as default_2 } from 'react';
|
|
15
|
+
import { Dot as Dot_2 } from '../../../../../core/src/components/primitive';
|
|
16
|
+
import { DotSize } from '../../../../../core/src/components/primitive';
|
|
17
|
+
import { DotVariant } from '../../../../../core/src/components/primitive';
|
|
18
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
19
|
+
import { Heading as Heading_2 } from '../../../../../core/src/components/primitive';
|
|
20
|
+
import { HeadingAs } from '../../../../../core/src/components/primitive';
|
|
21
|
+
import { HeadingIntent } from '../../../../../core/src/components/primitive';
|
|
22
|
+
import { HeadingSize } from '../../../../../core/src/components/primitive';
|
|
23
|
+
import { HeadingWeight } from '../../../../../core/src/components/primitive';
|
|
24
|
+
import { Hr as Hr_2 } from '../../../../../core/src/components/primitive';
|
|
25
|
+
import { HrOrientation } from '../../../../../core/src/components/primitive';
|
|
26
|
+
import { HrSize } from '../../../../../core/src/components/primitive';
|
|
27
|
+
import { HrSpacing } from '../../../../../core/src/components/primitive';
|
|
28
|
+
import { HrVariant } from '../../../../../core/src/components/primitive';
|
|
29
|
+
import { HTMLAttributes } from 'react';
|
|
30
|
+
import { Icon as Icon_2 } from '@versaur/core/primitive';
|
|
31
|
+
import { Icon as Icon_3 } from '../../../../../core/src/components/primitive';
|
|
32
|
+
import { IconIntent } from '../../../../../core/src/components/primitive';
|
|
33
|
+
import { IconSize } from '../../../../../core/src/components/primitive';
|
|
34
|
+
import { ImgHTMLAttributes } from 'react';
|
|
35
|
+
import { Kbd as Kbd_2 } from '../../../../../core/src/components/primitive';
|
|
36
|
+
import { Loader as Loader_2 } from '../../../../../core/src/components/primitive';
|
|
37
|
+
import { ReactNode } from 'react';
|
|
38
|
+
import { RefAttributes } from 'react';
|
|
39
|
+
import { SVGProps } from 'react';
|
|
40
|
+
import { Text as Text_3 } from '../../../../../core/src/components/primitive';
|
|
41
|
+
import { TextAs } from '../../../../../core/src/components/primitive';
|
|
42
|
+
import { TextIntent } from '../../../../../core/src/components/primitive';
|
|
43
|
+
import { TextSize } from '../../../../../core/src/components/primitive';
|
|
44
|
+
import { TextWeight } from '../../../../../core/src/components/primitive';
|
|
45
|
+
|
|
46
|
+
export declare const Avatar: ForwardRefExoticComponent<AvatarProps & RefAttributes<HTMLSpanElement>> & {
|
|
47
|
+
Image: ForwardRefExoticComponent<AvatarImageProps & RefAttributes<HTMLImageElement>>;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
declare interface AvatarImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
51
|
+
/**
|
|
52
|
+
* Image source URL
|
|
53
|
+
*/
|
|
54
|
+
src: string;
|
|
55
|
+
/**
|
|
56
|
+
* Alt text for the image
|
|
57
|
+
*/
|
|
58
|
+
alt: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export declare interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {
|
|
62
|
+
/**
|
|
63
|
+
* Visual variant of the avatar
|
|
64
|
+
* @default 'primary'
|
|
65
|
+
*/
|
|
66
|
+
variant?: Avatar_2.Variant;
|
|
67
|
+
/**
|
|
68
|
+
* Size of the avatar
|
|
69
|
+
* @default 'md'
|
|
70
|
+
*/
|
|
71
|
+
size?: Avatar_2.Size;
|
|
72
|
+
/**
|
|
73
|
+
* Shape of the avatar
|
|
74
|
+
* @default 'circle'
|
|
75
|
+
*/
|
|
76
|
+
shape?: Avatar_2.Shape;
|
|
77
|
+
/**
|
|
78
|
+
* Avatar content (text initials or compound Avatar.Image)
|
|
79
|
+
*/
|
|
80
|
+
children?: ReactNode;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export { AvatarShape }
|
|
84
|
+
|
|
85
|
+
export { AvatarSize }
|
|
86
|
+
|
|
87
|
+
export { AvatarVariant }
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Badge component for displaying labels, tags, or status indicators
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```tsx
|
|
94
|
+
* <Badge variant="primary">New</Badge>
|
|
95
|
+
*
|
|
96
|
+
* <Badge variant="success" size="small" shape="pill">
|
|
97
|
+
* Active
|
|
98
|
+
* </Badge>
|
|
99
|
+
*
|
|
100
|
+
* <Badge variant="danger">Critical</Badge>
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
export declare const Badge: ForwardRefExoticComponent<BadgeProps & RefAttributes<HTMLDivElement>>;
|
|
104
|
+
|
|
105
|
+
export declare interface BadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
106
|
+
/**
|
|
107
|
+
* Visual style variant
|
|
108
|
+
* @default 'primary'
|
|
109
|
+
*/
|
|
110
|
+
variant?: Badge_2.Variant;
|
|
111
|
+
/**
|
|
112
|
+
* Size of the badge
|
|
113
|
+
* @default 'medium'
|
|
114
|
+
*/
|
|
115
|
+
size?: Badge_2.Size;
|
|
116
|
+
/**
|
|
117
|
+
* Shape of the badge
|
|
118
|
+
* @default 'rounded'
|
|
119
|
+
*/
|
|
120
|
+
shape?: Badge_2.Shape;
|
|
121
|
+
/**
|
|
122
|
+
* Icon to display on the left side of the badge
|
|
123
|
+
*/
|
|
124
|
+
iconLeft?: ReactNode;
|
|
125
|
+
/**
|
|
126
|
+
* Icon to display on the right side of the badge
|
|
127
|
+
*/
|
|
128
|
+
iconRight?: ReactNode;
|
|
129
|
+
/**
|
|
130
|
+
* Maximum width of the badge. Text will truncate with ellipsis if exceeded.
|
|
131
|
+
*/
|
|
132
|
+
maxWidth?: string | number;
|
|
133
|
+
/**
|
|
134
|
+
* Badge content (text, icons, etc.)
|
|
135
|
+
*/
|
|
136
|
+
children?: React.ReactNode;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export { BadgeShape }
|
|
140
|
+
|
|
141
|
+
export { BadgeSize }
|
|
142
|
+
|
|
143
|
+
export { BadgeVariant }
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Button component with data-attribute state machine pattern
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```tsx
|
|
150
|
+
* <Button variant="primary" size="medium">
|
|
151
|
+
* Click me
|
|
152
|
+
* </Button>
|
|
153
|
+
*
|
|
154
|
+
* <Button variant="ghost" size="small" loading>
|
|
155
|
+
* Loading...
|
|
156
|
+
* </Button>
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* ButtonIcon component - an icon-only button with full Button styling
|
|
163
|
+
*
|
|
164
|
+
* Requires aria-label for accessibility since there's no text content.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```tsx
|
|
168
|
+
* import { ButtonIcon } from '@versaur/react';
|
|
169
|
+
* import { StarIcon } from '@versaur/icons';
|
|
170
|
+
*
|
|
171
|
+
* <ButtonIcon as={StarIcon} aria-label="Add to favorites" variant="primary" />
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
export declare const ButtonIcon: ForwardRefExoticComponent<ButtonIconProps & RefAttributes<HTMLButtonElement>>;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* ButtonIconProps combines Button props (without children) and Icon props
|
|
178
|
+
* @property as - The SVG icon component to render (required)
|
|
179
|
+
* @property ariaLabel - Accessible label for the icon button (required)
|
|
180
|
+
* @property iconProps - Additional props to pass to the icon
|
|
181
|
+
*/
|
|
182
|
+
export declare interface ButtonIconProps extends Omit<ButtonProps, "children"> {
|
|
183
|
+
/**
|
|
184
|
+
* The SVG icon component to render
|
|
185
|
+
* @required
|
|
186
|
+
*/
|
|
187
|
+
as: ComponentType<SVGProps<SVGSVGElement>>;
|
|
188
|
+
/**
|
|
189
|
+
* Accessible label for the icon button
|
|
190
|
+
* Required for screen readers since there's no text content
|
|
191
|
+
* @required
|
|
192
|
+
*/
|
|
193
|
+
"aria-label": string;
|
|
194
|
+
/**
|
|
195
|
+
* Additional props to pass to the icon
|
|
196
|
+
*/
|
|
197
|
+
iconProps?: SVGProps<SVGSVGElement>;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "disabled"> {
|
|
201
|
+
/**
|
|
202
|
+
* Visual variant of the button
|
|
203
|
+
* @default 'primary'
|
|
204
|
+
*/
|
|
205
|
+
variant?: Button_2.Variant;
|
|
206
|
+
/**
|
|
207
|
+
* Size of the button
|
|
208
|
+
* @default 'medium'
|
|
209
|
+
*/
|
|
210
|
+
size?: Button_2.Size;
|
|
211
|
+
/**
|
|
212
|
+
* Whether the button is in a loading state
|
|
213
|
+
* Shows a spinner and disables interaction
|
|
214
|
+
* @default false
|
|
215
|
+
*/
|
|
216
|
+
loading?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Whether the button is disabled
|
|
219
|
+
* @default false
|
|
220
|
+
*/
|
|
221
|
+
disabled?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Whether the button is in a pressed state (for toggle buttons)
|
|
224
|
+
* @default false
|
|
225
|
+
*/
|
|
226
|
+
pressed?: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* Icon to display on the left side of the button
|
|
229
|
+
*/
|
|
230
|
+
leftIcon?: ReactNode;
|
|
231
|
+
/**
|
|
232
|
+
* Icon to display on the right side of the button
|
|
233
|
+
*/
|
|
234
|
+
rightIcon?: ReactNode;
|
|
235
|
+
/**
|
|
236
|
+
* Button content
|
|
237
|
+
*/
|
|
238
|
+
children: ReactNode;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export { ButtonSize }
|
|
242
|
+
|
|
243
|
+
export { ButtonVariant }
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Dot component for status indicators and visual markers
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* ```tsx
|
|
250
|
+
* <Dot variant="success" />
|
|
251
|
+
* <Dot variant="danger" size="small" />
|
|
252
|
+
* <Dot aria-label="Active status" />
|
|
253
|
+
* ```
|
|
254
|
+
*/
|
|
255
|
+
export declare const Dot: ForwardRefExoticComponent<DotProps & RefAttributes<HTMLSpanElement>>;
|
|
256
|
+
|
|
257
|
+
export declare interface DotProps extends HTMLAttributes<HTMLSpanElement> {
|
|
258
|
+
/**
|
|
259
|
+
* Visual style variant
|
|
260
|
+
* @default 'primary'
|
|
261
|
+
*/
|
|
262
|
+
variant?: Dot_2.Variant;
|
|
263
|
+
/**
|
|
264
|
+
* Size of the dot
|
|
265
|
+
* @default 'medium'
|
|
266
|
+
*/
|
|
267
|
+
size?: Dot_2.Size;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export { DotSize }
|
|
271
|
+
|
|
272
|
+
export { DotVariant }
|
|
273
|
+
|
|
274
|
+
export declare const Heading: ForwardRefExoticComponent<HeadingProps & RefAttributes<HTMLHeadingElement>>;
|
|
275
|
+
|
|
276
|
+
export { HeadingAs }
|
|
277
|
+
|
|
278
|
+
export { HeadingIntent }
|
|
279
|
+
|
|
280
|
+
export declare interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
281
|
+
/**
|
|
282
|
+
* The heading level to render
|
|
283
|
+
* @default 'h2'
|
|
284
|
+
*/
|
|
285
|
+
as?: Heading_2.As;
|
|
286
|
+
/**
|
|
287
|
+
* Override the preset font-size
|
|
288
|
+
*/
|
|
289
|
+
size?: Heading_2.Size;
|
|
290
|
+
/**
|
|
291
|
+
* Override the preset font-weight
|
|
292
|
+
*/
|
|
293
|
+
weight?: Heading_2.Weight;
|
|
294
|
+
/**
|
|
295
|
+
* Text color intent
|
|
296
|
+
*/
|
|
297
|
+
intent?: Heading_2.Intent;
|
|
298
|
+
/**
|
|
299
|
+
* Text transform case
|
|
300
|
+
*/
|
|
301
|
+
case?: Heading_2.Case;
|
|
302
|
+
/**
|
|
303
|
+
* Text decoration transform
|
|
304
|
+
*/
|
|
305
|
+
transform?: Heading_2.Transform;
|
|
306
|
+
/**
|
|
307
|
+
* Heading content
|
|
308
|
+
*/
|
|
309
|
+
children: ReactNode;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export { HeadingSize }
|
|
313
|
+
|
|
314
|
+
export { HeadingWeight }
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Hr component — a divider for visually separating content sections
|
|
318
|
+
*
|
|
319
|
+
* @example
|
|
320
|
+
* ```tsx
|
|
321
|
+
* <Hr />
|
|
322
|
+
*
|
|
323
|
+
* <Hr variant="dashed" size="md" spacing="lg" />
|
|
324
|
+
*
|
|
325
|
+
* <Hr orientation="vertical" />
|
|
326
|
+
* ```
|
|
327
|
+
*/
|
|
328
|
+
export declare const Hr: ForwardRefExoticComponent<HrProps & RefAttributes<HTMLHRElement>>;
|
|
329
|
+
|
|
330
|
+
export { HrOrientation }
|
|
331
|
+
|
|
332
|
+
export declare interface HrProps extends HTMLAttributes<HTMLHRElement> {
|
|
333
|
+
/**
|
|
334
|
+
* Orientation of the divider
|
|
335
|
+
* @default 'horizontal'
|
|
336
|
+
*/
|
|
337
|
+
orientation?: Hr_2.Orientation;
|
|
338
|
+
/**
|
|
339
|
+
* Visual variant (border style) of the divider
|
|
340
|
+
* @default 'solid'
|
|
341
|
+
*/
|
|
342
|
+
variant?: Hr_2.Variant;
|
|
343
|
+
/**
|
|
344
|
+
* Thickness of the divider line
|
|
345
|
+
* @default 'sm'
|
|
346
|
+
*/
|
|
347
|
+
size?: Hr_2.Size;
|
|
348
|
+
/**
|
|
349
|
+
* Spacing (margin) around the divider
|
|
350
|
+
* @default 'md'
|
|
351
|
+
*/
|
|
352
|
+
spacing?: Hr_2.Spacing;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export { HrSize }
|
|
356
|
+
|
|
357
|
+
export { HrSpacing }
|
|
358
|
+
|
|
359
|
+
export { HrVariant }
|
|
360
|
+
|
|
361
|
+
export declare const Icon: default_2.ForwardRefExoticComponent<Omit<default_2.SVGProps<SVGSVGElement>, "ref"> & {
|
|
362
|
+
as: default_2.ComponentType<default_2.SVGProps<SVGSVGElement>>;
|
|
363
|
+
intent?: Icon_2.Intent | "inherit";
|
|
364
|
+
size?: Icon_2.Size | "inherit";
|
|
365
|
+
} & default_2.RefAttributes<SVGSVGElement>>;
|
|
366
|
+
|
|
367
|
+
export { IconIntent }
|
|
368
|
+
|
|
369
|
+
export declare type IconProps = Omit<SVGProps<SVGSVGElement>, "ref"> & {
|
|
370
|
+
as: ComponentType<SVGProps<SVGSVGElement>>;
|
|
371
|
+
intent?: Icon_3.Intent | "inherit";
|
|
372
|
+
size?: Icon_3.Size | "inherit";
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
export { IconSize }
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Kbd - Semantic keyboard key component
|
|
379
|
+
* Renders as <kbd> element with support for filled and outline variants
|
|
380
|
+
*
|
|
381
|
+
* @example
|
|
382
|
+
* ```tsx
|
|
383
|
+
* <Kbd variant="filled">Ctrl</Kbd>
|
|
384
|
+
* <Kbd variant="outline" size="sm">Cmd</Kbd>
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
export declare const Kbd: ForwardRefExoticComponent<KbdProps & RefAttributes<HTMLElement>>;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Kbd component props
|
|
391
|
+
*/
|
|
392
|
+
declare interface KbdProps extends HTMLAttributes<HTMLElement> {
|
|
393
|
+
/**
|
|
394
|
+
* Visual variant for the kbd element
|
|
395
|
+
* @default "filled"
|
|
396
|
+
*/
|
|
397
|
+
variant?: Kbd_2.Variant;
|
|
398
|
+
/**
|
|
399
|
+
* Size of the kbd element, aligned with Text component sizing
|
|
400
|
+
* @default "md"
|
|
401
|
+
*/
|
|
402
|
+
size?: Kbd_2.Size;
|
|
403
|
+
children?: ReactNode;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Loader component for displaying loading states with spinner or bar variants
|
|
408
|
+
*
|
|
409
|
+
* @example
|
|
410
|
+
* ```tsx
|
|
411
|
+
* <Loader type="spinner" size="sm">
|
|
412
|
+
* Loading...
|
|
413
|
+
* </Loader>
|
|
414
|
+
*
|
|
415
|
+
* <Loader type="bar" size="lg">
|
|
416
|
+
* Please wait
|
|
417
|
+
* </Loader>
|
|
418
|
+
* ```
|
|
419
|
+
*/
|
|
420
|
+
export declare const Loader: ForwardRefExoticComponent<LoaderProps & RefAttributes<HTMLDivElement>>;
|
|
421
|
+
|
|
422
|
+
export declare interface LoaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
423
|
+
/**
|
|
424
|
+
* The type of loading indicator to display
|
|
425
|
+
* @default 'spinner'
|
|
426
|
+
*/
|
|
427
|
+
type?: Loader_2.Type;
|
|
428
|
+
/**
|
|
429
|
+
* Size of the loading indicator
|
|
430
|
+
* @default 'sm'
|
|
431
|
+
*/
|
|
432
|
+
size?: Loader_2.Size;
|
|
433
|
+
/**
|
|
434
|
+
* Loading status text to display below the indicator
|
|
435
|
+
*/
|
|
436
|
+
children?: ReactNode;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
declare const Text_2: ForwardRefExoticComponent<TextProps & RefAttributes<HTMLElement>>;
|
|
440
|
+
export { Text_2 as Text }
|
|
441
|
+
|
|
442
|
+
export { TextAs }
|
|
443
|
+
|
|
444
|
+
export { TextIntent }
|
|
445
|
+
|
|
446
|
+
export declare interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
447
|
+
/**
|
|
448
|
+
* The HTML element to render
|
|
449
|
+
* @default 'p'
|
|
450
|
+
*/
|
|
451
|
+
as?: Text_3.As;
|
|
452
|
+
/**
|
|
453
|
+
* Override the preset font-size
|
|
454
|
+
*/
|
|
455
|
+
size?: Text_3.Size;
|
|
456
|
+
/**
|
|
457
|
+
* Override the preset font-weight
|
|
458
|
+
*/
|
|
459
|
+
weight?: Text_3.Weight;
|
|
460
|
+
/**
|
|
461
|
+
* Text color intent
|
|
462
|
+
*/
|
|
463
|
+
intent?: Text_3.Intent;
|
|
464
|
+
/**
|
|
465
|
+
* Text transform case
|
|
466
|
+
*/
|
|
467
|
+
case?: Text_3.Case;
|
|
468
|
+
/**
|
|
469
|
+
* Text decoration transform
|
|
470
|
+
*/
|
|
471
|
+
transform?: Text_3.Transform;
|
|
472
|
+
/**
|
|
473
|
+
* Text content
|
|
474
|
+
*/
|
|
475
|
+
children: ReactNode;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export { TextSize }
|
|
479
|
+
|
|
480
|
+
export { TextWeight }
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Attach static methods to component
|
|
484
|
+
*/
|
|
485
|
+
export declare const Tooltip: typeof TooltipRoot & TooltipStatic;
|
|
486
|
+
|
|
487
|
+
declare interface TooltipGetTriggerPropsOptions {
|
|
488
|
+
/**
|
|
489
|
+
* Unique identifier matching the Tooltip's id
|
|
490
|
+
*/
|
|
491
|
+
id: string;
|
|
492
|
+
/**
|
|
493
|
+
* Gap between tooltip and trigger in pixels
|
|
494
|
+
*/
|
|
495
|
+
gap?: number;
|
|
496
|
+
/**
|
|
497
|
+
* Trigger type for determining popoverTarget behavior
|
|
498
|
+
*/
|
|
499
|
+
triggerType?: "focus" | "hover" | "all";
|
|
500
|
+
[key: string]: any;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
declare type TooltipPlacement = "top" | "bottom" | "left" | "right";
|
|
504
|
+
|
|
505
|
+
export declare interface TooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
506
|
+
/**
|
|
507
|
+
* Unique identifier for the tooltip (matches popovertarget on trigger)
|
|
508
|
+
*/
|
|
509
|
+
id: string;
|
|
510
|
+
/**
|
|
511
|
+
* Tooltip content (can be text via Tooltip.Text or any custom ReactNode)
|
|
512
|
+
*/
|
|
513
|
+
children: ReactNode;
|
|
514
|
+
/**
|
|
515
|
+
* Placement relative to the trigger
|
|
516
|
+
*/
|
|
517
|
+
placement?: TooltipPlacement;
|
|
518
|
+
/**
|
|
519
|
+
* Gap between tooltip and trigger in pixels
|
|
520
|
+
*/
|
|
521
|
+
gap?: number;
|
|
522
|
+
/**
|
|
523
|
+
* When to show tooltip: "focus", "hover", or "all"
|
|
524
|
+
*/
|
|
525
|
+
triggerType?: "focus" | "hover" | "all";
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Tooltip - Popover-based tooltip component using the Popover API
|
|
530
|
+
*
|
|
531
|
+
* Usage:
|
|
532
|
+
* ```tsx
|
|
533
|
+
* const triggerProps = Tooltip.getTooltipTriggerProps({ id: "my-tooltip" });
|
|
534
|
+
* <button {...triggerProps}>Hover me</button>
|
|
535
|
+
* <Tooltip id="my-tooltip" placement="top">Helpful text</Tooltip>
|
|
536
|
+
* ```
|
|
537
|
+
*/
|
|
538
|
+
declare const TooltipRoot: ForwardRefExoticComponent<TooltipProps & RefAttributes<HTMLDivElement>>;
|
|
539
|
+
|
|
540
|
+
declare interface TooltipStatic {
|
|
541
|
+
/**
|
|
542
|
+
* Text content variant with styling
|
|
543
|
+
*/
|
|
544
|
+
Text: typeof TooltipText;
|
|
545
|
+
/**
|
|
546
|
+
* Get the required attributes for the trigger element
|
|
547
|
+
*/
|
|
548
|
+
getTooltipTriggerProps(options: TooltipGetTriggerPropsOptions): Record<string, unknown>;
|
|
549
|
+
/**
|
|
550
|
+
* Close a tooltip popover by id
|
|
551
|
+
* @example Tooltip.close({ id: "my-tooltip" })
|
|
552
|
+
*/
|
|
553
|
+
close(options: {
|
|
554
|
+
id: string;
|
|
555
|
+
}): void;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
declare const TooltipText: React.ForwardRefExoticComponent<TooltipTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
559
|
+
|
|
560
|
+
declare interface TooltipTextProps extends HTMLAttributes<HTMLDivElement> {
|
|
561
|
+
/**
|
|
562
|
+
* Text content
|
|
563
|
+
*/
|
|
564
|
+
children: ReactNode;
|
|
565
|
+
/**
|
|
566
|
+
* Maximum width (CSS value e.g. "280px", "20rem")
|
|
567
|
+
*/
|
|
568
|
+
maxWidth?: string;
|
|
569
|
+
/**
|
|
570
|
+
* Maximum number of lines before clamping
|
|
571
|
+
*/
|
|
572
|
+
maxLines?: number;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export { }
|