burne-ui 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -10
- package/dist/components/composite/Accordion/Accordion.d.ts +7 -79
- package/dist/components/composite/Accordion/accordionAPI.d.ts +3 -0
- package/dist/components/composite/Accordion/accordionAnimations.d.ts +1 -0
- package/dist/components/composite/Accordion/accordionContext.d.ts +4 -0
- package/dist/components/composite/Accordion/accordionParts.d.ts +43 -0
- package/dist/components/composite/Accordion/accordionStyles.d.ts +6 -0
- package/dist/components/composite/Accordion/accordionTypes.d.ts +36 -0
- package/dist/components/composite/Accordion/index.d.ts +29 -1
- package/dist/components/composite/Accordion/useAccordionRootState.d.ts +4 -0
- package/dist/components/composite/AlertDialog/AlertDialog.d.ts +8 -80
- package/dist/components/composite/AlertDialog/alertDialogAPI.d.ts +19 -0
- package/dist/components/composite/AlertDialog/alertDialogAnimations.d.ts +8 -0
- package/dist/components/composite/AlertDialog/alertDialogClassNamesContext.d.ts +3 -0
- package/dist/components/composite/AlertDialog/alertDialogContext.d.ts +3 -0
- package/dist/components/composite/AlertDialog/alertDialogHeaderContext.d.ts +7 -0
- package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +46 -0
- package/dist/components/composite/AlertDialog/alertDialogRootContext.d.ts +6 -0
- package/dist/components/composite/AlertDialog/alertDialogStyles.d.ts +34 -0
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +118 -0
- package/dist/components/composite/AlertDialog/index.d.ts +27 -1
- package/dist/components/composite/AlertDialog/useAlertDialog.d.ts +2 -0
- package/dist/components/composite/AlertDialog/useAlertDialogRootState.d.ts +4 -0
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +9 -20
- package/dist/components/composite/ButtonGroup/buttonGroupAPI.d.ts +9 -0
- package/dist/components/composite/ButtonGroup/buttonGroupContext.d.ts +18 -0
- package/dist/components/composite/ButtonGroup/buttonGroupParts.d.ts +4 -0
- package/dist/components/composite/ButtonGroup/buttonGroupStyles.d.ts +28 -0
- package/dist/components/composite/ButtonGroup/buttonGroupTypes.d.ts +29 -0
- package/dist/components/composite/ButtonGroup/index.d.ts +11 -2
- package/dist/components/composite/ButtonGroup/useButtonGroupRootState.d.ts +12 -0
- package/dist/components/composite/CheckboxGroup/CheckboxGroup.d.ts +8 -52
- package/dist/components/composite/CheckboxGroup/checkboxGroupContext.d.ts +6 -12
- package/dist/components/composite/CheckboxGroup/checkboxGroupErrorPart.d.ts +5 -0
- package/dist/components/composite/CheckboxGroup/checkboxGroupHintPart.d.ts +5 -0
- package/dist/components/composite/CheckboxGroup/checkboxGroupLegendPart.d.ts +5 -0
- package/dist/components/composite/CheckboxGroup/checkboxGroupListPart.d.ts +3 -0
- package/dist/components/composite/CheckboxGroup/checkboxGroupParts.d.ts +4 -0
- package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +40 -0
- package/dist/components/composite/CheckboxGroup/index.d.ts +29 -2
- package/dist/components/composite/CheckboxGroup/useCheckboxGroupRootState.d.ts +10 -0
- package/dist/components/composite/Form/Form.d.ts +18 -4
- package/dist/components/composite/Form/formA11y.d.ts +10 -0
- package/dist/components/composite/Form/formAPI.d.ts +10 -0
- package/dist/components/composite/Form/formContext.d.ts +16 -0
- package/dist/components/composite/Form/formParts.d.ts +31 -0
- package/dist/components/composite/Form/formStyles.d.ts +9 -0
- package/dist/components/composite/Form/formTypes.d.ts +116 -0
- package/dist/components/composite/Form/index.d.ts +29 -1
- package/dist/components/composite/Form/useFormControlProps.d.ts +29 -0
- package/dist/components/composite/Form/useFormFieldBinding.d.ts +14 -0
- package/dist/components/composite/Form/useFormRootState.d.ts +11 -0
- package/dist/components/composite/RadioGroup/RadioGroup.d.ts +7 -49
- package/dist/components/composite/RadioGroup/index.d.ts +28 -2
- package/dist/components/composite/RadioGroup/radioGroupContext.d.ts +6 -9
- package/dist/components/composite/RadioGroup/radioGroupErrorPart.d.ts +5 -0
- package/dist/components/composite/RadioGroup/radioGroupHintPart.d.ts +5 -0
- package/dist/components/composite/RadioGroup/radioGroupLegendPart.d.ts +5 -0
- package/dist/components/composite/RadioGroup/radioGroupListPart.d.ts +3 -0
- package/dist/components/composite/RadioGroup/radioGroupParts.d.ts +4 -0
- package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +35 -0
- package/dist/components/composite/RadioGroup/useRadioGroupRootState.d.ts +10 -0
- package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +7 -27
- package/dist/components/composite/ToggleButtonGroup/index.d.ts +14 -2
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupA11y.d.ts +13 -0
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupAPI.d.ts +18 -0
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupContext.d.ts +8 -0
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupParts.d.ts +4 -0
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupStyles.d.ts +9 -0
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupTypes.d.ts +18 -0
- package/dist/components/composite/ToggleButtonGroup/useToggleButtonGroupRootState.d.ts +8 -0
- package/dist/components/composite/utils/optionGroupFieldset.d.ts +6 -21
- package/dist/components/composite/utils/optionGroupLayout.d.ts +2 -0
- package/dist/components/core/Alert/Alert.d.ts +14 -72
- package/dist/components/core/Alert/alertA11y.d.ts +4 -0
- package/dist/components/core/Alert/alertAPI.d.ts +15 -0
- package/dist/components/core/Alert/alertAnimations.d.ts +17 -0
- package/dist/components/core/Alert/alertContext.d.ts +7 -8
- package/dist/components/core/Alert/alertParts.d.ts +23 -0
- package/dist/components/core/Alert/alertSimpleContent.d.ts +3 -0
- package/dist/components/core/Alert/alertStyles.d.ts +10 -0
- package/dist/components/core/Alert/alertTypes.d.ts +60 -0
- package/dist/components/core/Alert/index.d.ts +24 -2
- package/dist/components/core/Alert/useAlertRootState.d.ts +27 -0
- package/dist/components/core/Avatar/Avatar.d.ts +10 -48
- package/dist/components/core/Avatar/avatarA11y.d.ts +4 -0
- package/dist/components/core/Avatar/avatarAPI.d.ts +6 -0
- package/dist/components/core/Avatar/avatarAnimations.d.ts +8 -0
- package/dist/components/core/Avatar/avatarContext.d.ts +6 -0
- package/dist/components/core/Avatar/avatarParts.d.ts +15 -0
- package/dist/components/core/Avatar/avatarStyles.d.ts +17 -0
- package/dist/components/core/Avatar/avatarTypes.d.ts +56 -0
- package/dist/components/core/Avatar/index.d.ts +19 -1
- package/dist/components/core/Avatar/useAvatarRootState.d.ts +23 -0
- package/dist/components/core/Badge/Badge.d.ts +11 -85
- package/dist/components/core/Badge/badgeA11y.d.ts +5 -0
- package/dist/components/core/Badge/badgeAPI.d.ts +9 -0
- package/dist/components/core/Badge/badgeAnimations.d.ts +22 -0
- package/dist/components/core/Badge/badgeClassNamesContext.d.ts +3 -0
- package/dist/components/core/Badge/badgeContext.d.ts +3 -0
- package/dist/components/core/Badge/badgeDirectAnchorChildContext.d.ts +3 -0
- package/dist/components/core/Badge/badgeInlineChild.d.ts +2 -0
- package/dist/components/core/Badge/badgeInlineIcon.d.ts +4 -0
- package/dist/components/core/Badge/badgeLiftContext.d.ts +3 -0
- package/dist/components/core/Badge/badgeParts.d.ts +9 -0
- package/dist/components/core/Badge/badgeStyles.d.ts +31 -0
- package/dist/components/core/Badge/badgeTypes.d.ts +153 -0
- package/dist/components/core/Badge/index.d.ts +21 -1
- package/dist/components/core/Badge/useBadgeRootState.d.ts +13 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +9 -37
- package/dist/components/core/Breadcrumbs/breadcrumbsA11y.d.ts +4 -0
- package/dist/components/core/Breadcrumbs/breadcrumbsAPI.d.ts +9 -0
- package/dist/components/core/Breadcrumbs/breadcrumbsAnimations.d.ts +4 -0
- package/dist/components/core/Breadcrumbs/breadcrumbsContext.d.ts +5 -0
- package/dist/components/core/Breadcrumbs/breadcrumbsParts.d.ts +18 -0
- package/dist/components/core/Breadcrumbs/breadcrumbsSimpleContent.d.ts +3 -0
- package/dist/components/core/Breadcrumbs/breadcrumbsStyles.d.ts +16 -0
- package/dist/components/core/Breadcrumbs/breadcrumbsTypes.d.ts +111 -0
- package/dist/components/core/Breadcrumbs/index.d.ts +15 -2
- package/dist/components/core/Breadcrumbs/useBreadcrumbsRootState.d.ts +15 -0
- package/dist/components/core/Button/Button.d.ts +12 -82
- package/dist/components/core/Button/buttonA11y.d.ts +2 -0
- package/dist/components/core/Button/buttonAPI.d.ts +9 -0
- package/dist/components/core/Button/buttonAnimations.d.ts +19 -0
- package/dist/components/core/Button/buttonContext.d.ts +14 -0
- package/dist/components/core/Button/buttonParts.d.ts +19 -0
- package/dist/components/core/Button/buttonSimpleContent.d.ts +3 -0
- package/dist/components/core/Button/buttonStyles.d.ts +66 -0
- package/dist/components/core/Button/buttonTypes.d.ts +105 -0
- package/dist/components/core/Button/index.d.ts +27 -1
- package/dist/components/core/Button/useButtonRootState.d.ts +34 -0
- package/dist/components/core/Calendar/Calendar.d.ts +6 -79
- package/dist/components/core/Calendar/calendarA11y.d.ts +4 -0
- package/dist/components/core/Calendar/calendarAPI.d.ts +27 -0
- package/dist/components/core/Calendar/calendarAnimations.d.ts +12 -0
- package/dist/components/core/Calendar/calendarContext.d.ts +5 -0
- package/dist/components/core/Calendar/calendarLocale.d.ts +2 -0
- package/dist/components/core/Calendar/calendarParts.d.ts +5 -0
- package/dist/components/core/Calendar/calendarStyles.d.ts +68 -0
- package/dist/components/core/Calendar/calendarTypes.d.ts +164 -0
- package/dist/components/core/Calendar/index.d.ts +8 -1
- package/dist/components/core/Calendar/useCalendarRootState.d.ts +8 -0
- package/dist/components/core/Card/Card.d.ts +11 -47
- package/dist/components/core/Card/cardA11y.d.ts +1 -0
- package/dist/components/core/Card/cardAPI.d.ts +7 -0
- package/dist/components/core/Card/cardAnimations.d.ts +14 -0
- package/dist/components/core/Card/cardContext.d.ts +3 -0
- package/dist/components/core/Card/cardParts.d.ts +8 -0
- package/dist/components/core/Card/cardStyles.d.ts +18 -0
- package/dist/components/core/Card/cardTypes.d.ts +73 -0
- package/dist/components/core/Card/index.d.ts +18 -1
- package/dist/components/core/Card/useCardRootState.d.ts +8 -0
- package/dist/components/core/Checkbox/Checkbox.d.ts +13 -64
- package/dist/components/core/Checkbox/checkboxA11y.d.ts +4 -0
- package/dist/components/core/Checkbox/checkboxAPI.d.ts +14 -0
- package/dist/components/core/Checkbox/checkboxAnimations.d.ts +7 -0
- package/dist/components/core/Checkbox/checkboxContext.d.ts +8 -0
- package/dist/components/core/Checkbox/checkboxParts.d.ts +35 -0
- package/dist/components/core/Checkbox/checkboxStyles.d.ts +33 -0
- package/dist/components/core/Checkbox/checkboxTypes.d.ts +97 -0
- package/dist/components/core/Checkbox/index.d.ts +12 -7
- package/dist/components/core/Checkbox/useCheckboxRootState.d.ts +29 -0
- package/dist/components/core/CloseButton/CloseButton.d.ts +7 -9
- package/dist/components/core/CloseButton/closeButtonA11y.d.ts +1 -0
- package/dist/components/core/CloseButton/closeButtonAPI.d.ts +2 -0
- package/dist/components/core/CloseButton/closeButtonAnimations.d.ts +7 -0
- package/dist/components/core/CloseButton/closeButtonContext.d.ts +3 -0
- package/dist/components/core/CloseButton/closeButtonParts.d.ts +9 -0
- package/dist/components/core/CloseButton/closeButtonStyles.d.ts +20 -0
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +30 -0
- package/dist/components/core/CloseButton/index.d.ts +2 -1
- package/dist/components/core/CloseButton/useCloseButtonRootState.d.ts +13 -0
- package/dist/components/core/ColorPicker/ColorPicker.d.ts +7 -49
- package/dist/components/core/ColorPicker/ColorSlider.d.ts +10 -60
- package/dist/components/core/ColorPicker/ColorSwatch.d.ts +0 -8
- package/dist/components/core/ColorPicker/colorPickerA11y.d.ts +5 -0
- package/dist/components/core/ColorPicker/colorPickerAPI.d.ts +11 -0
- package/dist/components/core/ColorPicker/colorPickerAnimations.d.ts +5 -0
- package/dist/components/core/ColorPicker/colorPickerContext.d.ts +8 -0
- package/dist/components/core/ColorPicker/colorPickerParts.d.ts +7 -0
- package/dist/components/core/ColorPicker/colorPickerStyles.d.ts +19 -0
- package/dist/components/core/ColorPicker/colorPickerTypes.d.ts +76 -0
- package/dist/components/core/ColorPicker/colorSliderStyles.d.ts +15 -0
- package/dist/components/core/ColorPicker/colorSliderTypes.d.ts +27 -0
- package/dist/components/core/ColorPicker/colorUtils.d.ts +1 -2
- package/dist/components/core/ColorPicker/index.d.ts +35 -2
- package/dist/components/core/ColorPicker/useColorPickerRootState.d.ts +4 -0
- package/dist/components/core/ComboBox/ComboBox.d.ts +7 -21
- package/dist/components/core/ComboBox/comboBoxA11y.d.ts +10 -0
- package/dist/components/core/ComboBox/comboBoxAPI.d.ts +19 -0
- package/dist/components/core/ComboBox/comboBoxAnimations.d.ts +5 -0
- package/dist/components/core/ComboBox/comboBoxClassNamesContext.d.ts +3 -0
- package/dist/components/core/ComboBox/comboBoxContext.d.ts +3 -47
- package/dist/components/core/ComboBox/comboBoxFieldContext.d.ts +6 -0
- package/dist/components/core/ComboBox/comboBoxParts.d.ts +29 -0
- package/dist/components/core/ComboBox/comboBoxRootContext.d.ts +6 -0
- package/dist/components/core/ComboBox/comboBoxStyles.d.ts +40 -0
- package/dist/components/core/ComboBox/comboBoxTypes.d.ts +111 -0
- package/dist/components/core/ComboBox/index.d.ts +10 -9
- package/dist/components/core/ComboBox/useComboBoxRootState.d.ts +15 -0
- package/dist/components/core/Dialog/Dialog.d.ts +8 -39
- package/dist/components/core/Dialog/dialogA11y.d.ts +1 -0
- package/dist/components/core/Dialog/dialogAPI.d.ts +5 -0
- package/dist/components/core/Dialog/dialogAnimations.d.ts +10 -0
- package/dist/components/core/Dialog/dialogContext.d.ts +8 -0
- package/dist/components/core/Dialog/dialogParts.d.ts +42 -0
- package/dist/components/core/Dialog/dialogStyles.d.ts +32 -0
- package/dist/components/core/Dialog/dialogTypes.d.ts +104 -0
- package/dist/components/core/Dialog/index.d.ts +24 -1
- package/dist/components/core/Dialog/useDialogRootState.d.ts +4 -0
- package/dist/components/core/Disclosure/Disclosure.d.ts +10 -55
- package/dist/components/core/Disclosure/disclosureA11y.d.ts +2 -0
- package/dist/components/core/Disclosure/disclosureAPI.d.ts +8 -0
- package/dist/components/core/Disclosure/disclosureAnimations.d.ts +13 -0
- package/dist/components/core/Disclosure/disclosureClassNamesContext.d.ts +3 -0
- package/dist/components/core/Disclosure/disclosureContentPart.d.ts +3 -0
- package/dist/components/core/Disclosure/disclosureContext.d.ts +3 -0
- package/dist/components/core/Disclosure/disclosureGroup.d.ts +11 -0
- package/dist/components/core/Disclosure/disclosureGroupContext.d.ts +6 -0
- package/dist/components/core/Disclosure/disclosureHandleInnerPart.d.ts +5 -0
- package/dist/components/core/Disclosure/disclosureParts.d.ts +8 -0
- package/dist/components/core/Disclosure/disclosureRootContext.d.ts +6 -0
- package/dist/components/core/Disclosure/disclosureStyles.d.ts +50 -0
- package/dist/components/core/Disclosure/disclosureTypes.d.ts +94 -0
- package/dist/components/core/Disclosure/index.d.ts +27 -1
- package/dist/components/core/Disclosure/useDisclosureContentDrag.d.ts +4 -0
- package/dist/components/core/Disclosure/useDisclosureGroupRootState.d.ts +6 -0
- package/dist/components/core/Disclosure/useDisclosureRootState.d.ts +7 -0
- package/dist/components/core/Drawer/Drawer.d.ts +8 -50
- package/dist/components/core/Drawer/drawerA11y.d.ts +3 -0
- package/dist/components/core/Drawer/drawerAPI.d.ts +15 -0
- package/dist/components/core/Drawer/drawerAnimations.d.ts +12 -0
- package/dist/components/core/Drawer/drawerContext.d.ts +8 -0
- package/dist/components/core/Drawer/drawerParts.d.ts +50 -0
- package/dist/components/core/Drawer/drawerStyles.d.ts +56 -0
- package/dist/components/core/Drawer/drawerTypes.d.ts +113 -0
- package/dist/components/core/Drawer/index.d.ts +25 -1
- package/dist/components/core/Drawer/useDrawerHandleDrag.d.ts +1 -4
- package/dist/components/core/Drawer/useDrawerRootState.d.ts +6 -0
- package/dist/components/core/Dropdown/Dropdown.d.ts +6 -196
- package/dist/components/core/Dropdown/dropdownA11y.d.ts +3 -0
- package/dist/components/core/Dropdown/dropdownAPI.d.ts +12 -0
- package/dist/components/core/Dropdown/dropdownAnimations.d.ts +13 -0
- package/dist/components/core/Dropdown/dropdownContext.d.ts +23 -0
- package/dist/components/core/Dropdown/dropdownParts.d.ts +54 -0
- package/dist/components/core/Dropdown/dropdownStyles.d.ts +38 -0
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +116 -0
- package/dist/components/core/Dropdown/index.d.ts +40 -1
- package/dist/components/core/Dropdown/useDropdownRootState.d.ts +4 -0
- package/dist/components/core/Dropdown/useDropdownSubState.d.ts +4 -0
- package/dist/components/core/Expandable/Expandable.d.ts +13 -88
- package/dist/components/core/Expandable/expandableA11y.d.ts +6 -0
- package/dist/components/core/Expandable/expandableAPI.d.ts +21 -0
- package/dist/components/core/Expandable/expandableAnimations.d.ts +14 -0
- package/dist/components/core/Expandable/expandableClassNamesContext.d.ts +3 -0
- package/dist/components/core/Expandable/expandableContext.d.ts +3 -0
- package/dist/components/core/Expandable/expandableParts.d.ts +30 -0
- package/dist/components/core/Expandable/expandableRootContext.d.ts +7 -0
- package/dist/components/core/Expandable/expandableStyles.d.ts +55 -0
- package/dist/components/core/Expandable/expandableTriggerGridContext.d.ts +7 -0
- package/dist/components/core/Expandable/expandableTypes.d.ts +76 -0
- package/dist/components/core/Expandable/index.d.ts +29 -1
- package/dist/components/core/Expandable/useExpandableRootState.d.ts +6 -0
- package/dist/components/core/Field/Field.d.ts +13 -21
- package/dist/components/core/Field/fieldA11y.d.ts +2 -1
- package/dist/components/core/Field/fieldAPI.d.ts +10 -0
- package/dist/components/core/Field/fieldClassNamesContext.d.ts +3 -0
- package/dist/components/core/Field/fieldContext.d.ts +3 -0
- package/dist/components/core/Field/fieldParts.d.ts +21 -0
- package/dist/components/core/Field/fieldSetClassNamesContext.d.ts +3 -0
- package/dist/components/core/Field/fieldSetSizeContext.d.ts +6 -0
- package/dist/components/core/Field/fieldStyles.d.ts +37 -0
- package/dist/components/core/Field/fieldTypes.d.ts +64 -0
- package/dist/components/core/Field/index.d.ts +23 -6
- package/dist/components/core/Field/useFieldSetRootState.d.ts +3 -0
- package/dist/components/core/Input/Input.d.ts +4 -62
- package/dist/components/core/Input/index.d.ts +9 -9
- package/dist/components/core/Input/inputA11y.d.ts +3 -0
- package/dist/components/core/Input/inputAPI.d.ts +6 -0
- package/dist/components/core/Input/inputAnimations.d.ts +25 -0
- package/dist/components/core/Input/inputContext.d.ts +9 -0
- package/dist/components/core/Input/inputParts.d.ts +27 -0
- package/dist/components/core/Input/inputStyles.d.ts +71 -0
- package/dist/components/core/Input/inputTypes.d.ts +83 -0
- package/dist/components/core/Input/useInputRootState.d.ts +16 -0
- package/dist/components/core/Kbd/Kbd.d.ts +8 -0
- package/dist/components/core/Kbd/index.d.ts +12 -0
- package/dist/components/core/Kbd/kbdA11y.d.ts +2 -0
- package/dist/components/core/Kbd/kbdAPI.d.ts +5 -0
- package/dist/components/core/Kbd/kbdAnimations.d.ts +10 -0
- package/dist/components/core/Kbd/kbdBodyPart.d.ts +9 -0
- package/dist/components/core/Kbd/kbdContext.d.ts +3 -0
- package/dist/components/core/Kbd/kbdParts.d.ts +6 -0
- package/dist/components/core/Kbd/kbdStyles.d.ts +18 -0
- package/dist/components/core/Kbd/kbdTextPart.d.ts +9 -0
- package/dist/components/core/Kbd/kbdTypes.d.ts +45 -0
- package/dist/components/core/Kbd/useKbdRootState.d.ts +6 -0
- package/dist/components/core/Label/Label.d.ts +6 -15
- package/dist/components/core/Label/index.d.ts +9 -2
- package/dist/components/core/Label/labelA11y.d.ts +1 -0
- package/dist/components/core/Label/labelAPI.d.ts +2 -0
- package/dist/components/core/Label/labelContext.d.ts +10 -0
- package/dist/components/core/Label/labelParts.d.ts +6 -0
- package/dist/components/core/Label/labelStyles.d.ts +9 -0
- package/dist/components/core/Label/labelTypes.d.ts +25 -0
- package/dist/components/core/Label/useLabelRootState.d.ts +6 -0
- package/dist/components/core/Link/Link.d.ts +12 -36
- package/dist/components/core/Link/index.d.ts +10 -1
- package/dist/components/core/Link/linkA11y.d.ts +4 -0
- package/dist/components/core/Link/linkAPI.d.ts +17 -0
- package/dist/components/core/Link/linkAnchorBodyPart.d.ts +5 -0
- package/dist/components/core/Link/linkAnimations.d.ts +7 -0
- package/dist/components/core/Link/linkContext.d.ts +3 -0
- package/dist/components/core/Link/linkDefaultIconPart.d.ts +4 -0
- package/dist/components/core/Link/linkIconSlotPart.d.ts +2 -0
- package/dist/components/core/Link/linkParts.d.ts +8 -0
- package/dist/components/core/Link/linkStyles.d.ts +24 -0
- package/dist/components/core/Link/linkTypes.d.ts +76 -0
- package/dist/components/core/Link/useLinkRootState.d.ts +13 -0
- package/dist/components/core/ListBox/ListBox.d.ts +6 -110
- package/dist/components/core/ListBox/index.d.ts +25 -1
- package/dist/components/core/ListBox/listBoxA11y.d.ts +10 -0
- package/dist/components/core/ListBox/listBoxAPI.d.ts +22 -0
- package/dist/components/core/ListBox/listBoxAnimations.d.ts +7 -0
- package/dist/components/core/ListBox/listBoxClassNamesContext.d.ts +3 -0
- package/dist/components/core/ListBox/listBoxContext.d.ts +3 -0
- package/dist/components/core/ListBox/listBoxParts.d.ts +44 -0
- package/dist/components/core/ListBox/listBoxRootContext.d.ts +6 -0
- package/dist/components/core/ListBox/listBoxSectionLabelContext.d.ts +5 -0
- package/dist/components/core/ListBox/listBoxStyles.d.ts +42 -0
- package/dist/components/core/ListBox/listBoxTypes.d.ts +101 -0
- package/dist/components/core/ListBox/useListBoxItemState.d.ts +17 -0
- package/dist/components/core/ListBox/useListBoxRootState.d.ts +5 -0
- package/dist/components/core/Loading/Loading.d.ts +5 -21
- package/dist/components/core/Loading/index.d.ts +1 -1
- package/dist/components/core/Loading/loadingAnimations.d.ts +3 -0
- package/dist/components/core/Loading/loadingParts.d.ts +17 -0
- package/dist/components/core/Loading/loadingStyles.d.ts +18 -0
- package/dist/components/core/Loading/loadingTypes.d.ts +18 -0
- package/dist/components/core/Meter/Meter.d.ts +8 -37
- package/dist/components/core/Meter/index.d.ts +9 -7
- package/dist/components/core/Meter/meterA11y.d.ts +20 -0
- package/dist/components/core/Meter/meterAPI.d.ts +7 -0
- package/dist/components/core/Meter/meterAnimations.d.ts +4 -0
- package/dist/components/core/Meter/meterContext.d.ts +11 -0
- package/dist/components/core/Meter/meterParts.d.ts +34 -0
- package/dist/components/core/Meter/meterStyles.d.ts +55 -0
- package/dist/components/core/Meter/meterTypes.d.ts +103 -0
- package/dist/components/core/Meter/useMeterRootState.d.ts +24 -0
- package/dist/components/core/Meter/useMeterTrackState.d.ts +21 -0
- package/dist/components/core/Pagination/Pagination.d.ts +6 -60
- package/dist/components/core/Pagination/index.d.ts +25 -1
- package/dist/components/core/Pagination/paginationA11y.d.ts +11 -0
- package/dist/components/core/Pagination/paginationAPI.d.ts +12 -0
- package/dist/components/core/Pagination/paginationAnimations.d.ts +6 -0
- package/dist/components/core/Pagination/paginationContext.d.ts +9 -0
- package/dist/components/core/Pagination/paginationParts.d.ts +25 -0
- package/dist/components/core/Pagination/paginationStyles.d.ts +60 -0
- package/dist/components/core/Pagination/paginationTypes.d.ts +63 -0
- package/dist/components/core/Pagination/usePaginationRootState.d.ts +7 -0
- package/dist/components/core/Popover/Popover.d.ts +5 -90
- package/dist/components/core/Popover/index.d.ts +19 -1
- package/dist/components/core/Popover/popoverA11y.d.ts +14 -0
- package/dist/components/core/Popover/popoverAPI.d.ts +11 -0
- package/dist/components/core/Popover/popoverAnimations.d.ts +13 -0
- package/dist/components/core/Popover/popoverClassNamesContext.d.ts +3 -0
- package/dist/components/core/Popover/popoverContext.d.ts +3 -0
- package/dist/components/core/Popover/popoverParts.d.ts +28 -0
- package/dist/components/core/Popover/popoverResolvedSideContext.d.ts +6 -0
- package/dist/components/core/Popover/popoverRootContext.d.ts +6 -0
- package/dist/components/core/Popover/popoverStyles.d.ts +67 -0
- package/dist/components/core/Popover/popoverTypes.d.ts +83 -0
- package/dist/components/core/Popover/usePopoverRootState.d.ts +4 -0
- package/dist/components/core/ProgressBar/ProgressBar.d.ts +8 -41
- package/dist/components/core/ProgressBar/index.d.ts +8 -7
- package/dist/components/core/ProgressBar/progressBarA11y.d.ts +22 -0
- package/dist/components/core/ProgressBar/progressBarAPI.d.ts +9 -0
- package/dist/components/core/ProgressBar/progressBarAnimations.d.ts +5 -0
- package/dist/components/core/ProgressBar/progressBarContext.d.ts +11 -0
- package/dist/components/core/ProgressBar/progressBarParts.d.ts +35 -0
- package/dist/components/core/ProgressBar/progressBarStyles.d.ts +65 -0
- package/dist/components/core/ProgressBar/progressBarTypes.d.ts +96 -0
- package/dist/components/core/ProgressBar/useProgressBarRootState.d.ts +25 -0
- package/dist/components/core/ProgressBar/useProgressBarTrackState.d.ts +21 -0
- package/dist/components/core/Radio/Radio.d.ts +11 -51
- package/dist/components/core/Radio/index.d.ts +14 -6
- package/dist/components/core/Radio/radioA11y.d.ts +5 -0
- package/dist/components/core/Radio/radioAPI.d.ts +12 -0
- package/dist/components/core/Radio/radioAnimations.d.ts +7 -0
- package/dist/components/core/Radio/radioContext.d.ts +11 -0
- package/dist/components/core/Radio/radioParts.d.ts +35 -0
- package/dist/components/core/Radio/radioStyles.d.ts +30 -0
- package/dist/components/core/Radio/radioTypes.d.ts +91 -0
- package/dist/components/core/Radio/useRadioRootState.d.ts +24 -0
- package/dist/components/core/Ripple/Ripple.d.ts +2 -31
- package/dist/components/core/Ripple/index.d.ts +2 -1
- package/dist/components/core/Ripple/rippleTokens.d.ts +10 -0
- package/dist/components/core/SearchInput/SearchInput.d.ts +6 -38
- package/dist/components/core/SearchInput/index.d.ts +1 -1
- package/dist/components/core/Select/Select.d.ts +9 -0
- package/dist/components/core/Select/index.d.ts +16 -0
- package/dist/components/core/Select/selectA11y.d.ts +10 -0
- package/dist/components/core/Select/selectAPI.d.ts +18 -0
- package/dist/components/core/Select/selectAnimations.d.ts +5 -0
- package/dist/components/core/Select/selectClassNamesContext.d.ts +3 -0
- package/dist/components/core/Select/selectContext.d.ts +3 -0
- package/dist/components/core/Select/selectFieldContext.d.ts +6 -0
- package/dist/components/core/Select/selectParts.d.ts +31 -0
- package/dist/components/core/Select/selectRootContext.d.ts +6 -0
- package/dist/components/core/Select/selectStyles.d.ts +39 -0
- package/dist/components/core/Select/selectTypes.d.ts +109 -0
- package/dist/components/core/Select/useSelectRootState.d.ts +15 -0
- package/dist/components/core/SelectionIndicator/SelectionIndicator.d.ts +2 -12
- package/dist/components/core/SelectionIndicator/index.d.ts +9 -1
- package/dist/components/core/SelectionIndicator/selectionIndicatorAPI.d.ts +30 -0
- package/dist/components/core/SelectionIndicator/selectionIndicatorContext.d.ts +7 -0
- package/dist/components/core/SelectionIndicator/selectionIndicatorParts.d.ts +5 -0
- package/dist/components/core/SelectionIndicator/selectionIndicatorTokens.d.ts +18 -9
- package/dist/components/core/SelectionIndicator/selectionIndicatorTypes.d.ts +33 -0
- package/dist/components/core/SelectionIndicator/useSelectionIndicatorAnimation.d.ts +1 -1
- package/dist/components/core/SelectionIndicator/useSelectionIndicatorRootState.d.ts +11 -0
- package/dist/components/core/SelectionThumb/SelectionThumb.d.ts +4 -6
- package/dist/components/core/Separator/Separator.d.ts +3 -8
- package/dist/components/core/Skeleton/Skeleton.d.ts +7 -50
- package/dist/components/core/Skeleton/index.d.ts +22 -1
- package/dist/components/core/Skeleton/skeletonA11y.d.ts +4 -0
- package/dist/components/core/Skeleton/skeletonAPI.d.ts +3 -0
- package/dist/components/core/Skeleton/skeletonParts.d.ts +17 -0
- package/dist/components/core/Skeleton/skeletonStyles.d.ts +23 -0
- package/dist/components/core/Skeleton/skeletonTypes.d.ts +45 -0
- package/dist/components/core/Skeleton/useSkeletonRootState.d.ts +6 -0
- package/dist/components/core/Slider/Slider.d.ts +7 -46
- package/dist/components/core/Slider/index.d.ts +7 -6
- package/dist/components/core/Slider/sliderA11y.d.ts +15 -0
- package/dist/components/core/Slider/sliderAPI.d.ts +38 -0
- package/dist/components/core/Slider/sliderAnimations.d.ts +15 -0
- package/dist/components/core/Slider/sliderClassNamesContext.d.ts +3 -0
- package/dist/components/core/Slider/sliderContext.d.ts +3 -0
- package/dist/components/core/Slider/sliderFieldContext.d.ts +5 -21
- package/dist/components/core/Slider/sliderParts.d.ts +49 -0
- package/dist/components/core/Slider/sliderStyles.d.ts +61 -0
- package/dist/components/core/Slider/sliderThumbParts.d.ts +2 -0
- package/dist/components/core/Slider/sliderTrackContext.d.ts +6 -0
- package/dist/components/core/Slider/sliderTypes.d.ts +145 -0
- package/dist/components/core/Slider/useSliderRootState.d.ts +20 -0
- package/dist/components/core/Slider/useSliderTrackState.d.ts +13 -0
- package/dist/components/core/Surface/Surface.d.ts +3 -14
- package/dist/components/core/Switch/Switch.d.ts +17 -39
- package/dist/components/core/Switch/index.d.ts +12 -9
- package/dist/components/core/Switch/switchA11y.d.ts +4 -0
- package/dist/components/core/Switch/switchAPI.d.ts +12 -0
- package/dist/components/core/Switch/switchAnimations.d.ts +7 -0
- package/dist/components/core/Switch/switchClassNamesContext.d.ts +3 -0
- package/dist/components/core/Switch/switchContext.d.ts +3 -0
- package/dist/components/core/Switch/switchFieldContext.d.ts +5 -19
- package/dist/components/core/Switch/switchGeometry.d.ts +1 -2
- package/dist/components/core/Switch/switchParts.d.ts +60 -0
- package/dist/components/core/Switch/switchStyles.d.ts +53 -0
- package/dist/components/core/Switch/switchTrackContext.d.ts +6 -0
- package/dist/components/core/Switch/switchTypes.d.ts +129 -0
- package/dist/components/core/Switch/useSwitchRootState.d.ts +339 -0
- package/dist/components/core/Table/Table.d.ts +8 -85
- package/dist/components/core/Table/index.d.ts +37 -1
- package/dist/components/core/Table/tableA11y.d.ts +3 -0
- package/dist/components/core/Table/tableAPI.d.ts +13 -0
- package/dist/components/core/Table/tableAnimations.d.ts +4 -0
- package/dist/components/core/Table/tableContext.d.ts +22 -0
- package/dist/components/core/Table/tableParts.d.ts +32 -0
- package/dist/components/core/Table/tableStyles.d.ts +63 -0
- package/dist/components/core/Table/tableTypes.d.ts +82 -0
- package/dist/components/core/Table/useTableContentState.d.ts +8 -0
- package/dist/components/core/Table/useTableRootState.d.ts +5 -0
- package/dist/components/core/Tabs/Tabs.d.ts +9 -77
- package/dist/components/core/Tabs/index.d.ts +36 -1
- package/dist/components/core/Tabs/tabsA11y.d.ts +20 -0
- package/dist/components/core/Tabs/tabsAPI.d.ts +10 -0
- package/dist/components/core/Tabs/tabsAnimations.d.ts +13 -0
- package/dist/components/core/Tabs/tabsContext.d.ts +3 -16
- package/dist/components/core/Tabs/tabsPanelPart.d.ts +4 -0
- package/dist/components/core/Tabs/tabsParts.d.ts +4 -0
- package/dist/components/core/Tabs/tabsStyles.d.ts +30 -0
- package/dist/components/core/Tabs/tabsTabPart.d.ts +6 -0
- package/dist/components/core/Tabs/tabsTypes.d.ts +51 -0
- package/dist/components/core/Tabs/useSlidingTabIndicator.d.ts +1 -1
- package/dist/components/core/Tabs/useTabsRootState.d.ts +4 -0
- package/dist/components/core/Text/Text.d.ts +0 -5
- package/dist/components/core/TextArea/TextArea.d.ts +7 -30
- package/dist/components/core/TextArea/index.d.ts +8 -9
- package/dist/components/core/TextArea/textAreaA11y.d.ts +1 -0
- package/dist/components/core/TextArea/textAreaAPI.d.ts +2 -0
- package/dist/components/core/TextArea/textAreaAnimations.d.ts +19 -0
- package/dist/components/core/TextArea/textAreaContext.d.ts +11 -0
- package/dist/components/core/TextArea/textAreaParts.d.ts +24 -0
- package/dist/components/core/TextArea/textAreaStyles.d.ts +38 -0
- package/dist/components/core/TextArea/textAreaTypes.d.ts +67 -0
- package/dist/components/core/TextArea/useTextAreaResize.d.ts +1 -1
- package/dist/components/core/TextArea/useTextAreaRootState.d.ts +16 -0
- package/dist/components/core/TimeField/TimeField.d.ts +5 -95
- package/dist/components/core/TimeField/index.d.ts +23 -1
- package/dist/components/core/TimeField/timeFieldA11y.d.ts +29 -0
- package/dist/components/core/TimeField/timeFieldAPI.d.ts +10 -0
- package/dist/components/core/TimeField/timeFieldAnimations.d.ts +20 -0
- package/dist/components/core/TimeField/timeFieldContext.d.ts +11 -0
- package/dist/components/core/TimeField/timeFieldParts.d.ts +30 -0
- package/dist/components/core/TimeField/timeFieldStyles.d.ts +68 -0
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +99 -0
- package/dist/components/core/TimeField/useTimeFieldControlState.d.ts +51 -0
- package/dist/components/core/TimeField/useTimeFieldRootState.d.ts +18 -0
- package/dist/components/core/Toast/Toast.d.ts +13 -99
- package/dist/components/core/Toast/index.d.ts +26 -1
- package/dist/components/core/Toast/toastA11y.d.ts +4 -0
- package/dist/components/core/Toast/toastAPI.d.ts +18 -0
- package/dist/components/core/Toast/toastAnimations.d.ts +3 -0
- package/dist/components/core/Toast/toastContext.d.ts +12 -0
- package/dist/components/core/Toast/toastParts.d.ts +29 -0
- package/dist/components/core/Toast/toastProvider.d.ts +2 -0
- package/dist/components/core/Toast/toastStyles.d.ts +30 -0
- package/dist/components/core/Toast/toastTypes.d.ts +130 -0
- package/dist/components/core/Toast/useToast.d.ts +1 -5
- package/dist/components/core/Toast/useToastProviderState.d.ts +17 -0
- package/dist/components/core/Toast/useToastRootState.d.ts +9 -0
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +11 -41
- package/dist/components/core/ToggleButton/index.d.ts +25 -2
- package/dist/components/core/ToggleButton/toggleButtonA11y.d.ts +14 -0
- package/dist/components/core/ToggleButton/toggleButtonAPI.d.ts +8 -0
- package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +14 -0
- package/dist/components/core/ToggleButton/toggleButtonContext.d.ts +15 -0
- package/dist/components/core/ToggleButton/toggleButtonGroupContext.d.ts +2 -17
- package/dist/components/core/ToggleButton/toggleButtonParts.d.ts +16 -0
- package/dist/components/core/ToggleButton/toggleButtonSimpleContent.d.ts +3 -0
- package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +40 -0
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +81 -0
- package/dist/components/core/ToggleButton/useToggleButtonFillAnimation.d.ts +15 -2
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +29 -0
- package/dist/components/core/Tooltip/Tooltip.d.ts +5 -41
- package/dist/components/core/Tooltip/index.d.ts +16 -1
- package/dist/components/core/Tooltip/tooltipA11y.d.ts +18 -0
- package/dist/components/core/Tooltip/tooltipAPI.d.ts +31 -0
- package/dist/components/core/Tooltip/tooltipAnimations.d.ts +7 -0
- package/dist/components/core/Tooltip/tooltipContext.d.ts +11 -0
- package/dist/components/core/Tooltip/tooltipParts.d.ts +34 -0
- package/dist/components/core/Tooltip/tooltipPosition.d.ts +0 -3
- package/dist/components/core/Tooltip/tooltipStyles.d.ts +57 -0
- package/dist/components/core/Tooltip/tooltipTypes.d.ts +78 -0
- package/dist/components/core/Tooltip/useTooltipRootState.d.ts +5 -0
- package/dist/components/core/utils/burneLightTheme.d.ts +24 -0
- package/dist/components/core/utils/componentSize.d.ts +1 -1
- package/dist/components/core/utils/controlHeightMeasure.d.ts +3 -0
- package/dist/components/core/utils/controlSizeLayout.d.ts +1 -11
- package/dist/components/core/utils/convergeRippleGeometry.d.ts +10 -0
- package/dist/components/core/utils/dualApiStoryChrome.d.ts +1 -9
- package/dist/components/core/utils/dualApiStorySource.d.ts +8 -0
- package/dist/components/core/utils/fieldControlMobileNoZoom.d.ts +5 -0
- package/dist/components/core/utils/glossInteractiveMotion.d.ts +37 -0
- package/dist/components/core/utils/glossStoryChrome.d.ts +8 -0
- package/dist/components/core/utils/gsapMotion.d.ts +7 -0
- package/dist/components/core/utils/hasCompoundChild.d.ts +1 -1
- package/dist/components/core/utils/hasCompoundChildren.d.ts +1 -1
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +43 -50
- package/dist/components/core/utils/hoverVariant.d.ts +16 -0
- package/dist/components/core/utils/inputAffixLayout.d.ts +5 -0
- package/dist/components/core/utils/mergeRefs.d.ts +5 -0
- package/dist/components/core/utils/messageBannerGridLayout.d.ts +14 -0
- package/dist/components/core/utils/messageBannerSize.d.ts +21 -0
- package/dist/components/core/utils/modalSurfaceMotion.d.ts +42 -0
- package/dist/components/core/utils/motionConfig.d.ts +188 -0
- package/dist/components/core/utils/optionControlGridLayout.d.ts +2 -4
- package/dist/components/core/utils/optionListItemChildren.d.ts +1 -1
- package/dist/components/core/utils/optionListItemContext.d.ts +3 -1
- package/dist/components/core/utils/optionListItemParts.d.ts +3 -0
- package/dist/components/core/utils/optionListItemStoryLayouts.d.ts +1 -1
- package/dist/components/core/utils/optionListSelection.d.ts +1 -0
- package/dist/components/core/utils/pressRipple.d.ts +1 -10
- package/dist/components/core/utils/radiusTokens.d.ts +6 -0
- package/dist/components/core/utils/runOpenAfterSqueeze.d.ts +17 -0
- package/dist/components/core/utils/scaleFieldLayout.d.ts +3 -0
- package/dist/components/core/utils/scaleFieldParts.d.ts +1 -3
- package/dist/components/core/utils/scaleFieldRootClassName.d.ts +2 -0
- package/dist/components/core/utils/semanticStatusIcons.d.ts +1 -2
- package/dist/components/core/utils/semanticStatusSurface.d.ts +7 -0
- package/dist/components/core/utils/useChevronRotation.d.ts +7 -0
- package/dist/components/core/utils/useCollapsibleHeight.d.ts +20 -0
- package/dist/components/core/utils/useConvergeRipples.d.ts +4 -4
- package/dist/components/core/utils/useFieldShellHoverLift.d.ts +16 -0
- package/dist/components/core/utils/useFirstLevelInteractiveMotion.d.ts +46 -0
- package/dist/components/core/utils/usePressableElementTextMotion.d.ts +37 -0
- package/dist/components/core/utils/useShadowMotion.d.ts +39 -0
- package/dist/index.cjs +37 -427
- package/dist/index.d.ts +54 -47
- package/dist/index.js +30297 -22330
- package/dist/tokens/config.d.ts +42 -26
- package/dist/tokens/fontWeights.d.ts +7 -0
- package/dist/tokens/index.d.ts +8 -5
- package/dist/tokens/shadows.d.ts +7 -0
- package/dist/tokens/toastScrim.d.ts +19 -0
- package/dist/ui.css +3259 -856
- package/package.json +26 -11
- package/dist/components/core/Alert/alertUtils.d.ts +0 -12
- package/dist/components/core/Calendar/CalendarInteractiveCell.d.ts +0 -23
- package/dist/components/core/Checkbox/checkboxFieldContext.d.ts +0 -41
- package/dist/components/core/ComboBox/ComboBoxField.d.ts +0 -44
- package/dist/components/core/Field/FieldSet.d.ts +0 -57
- package/dist/components/core/GlassSurface/GlassBackdrop.d.ts +0 -7
- package/dist/components/core/GlassSurface/GlassShaderLayer.d.ts +0 -14
- package/dist/components/core/GlassSurface/GlassSurface.d.ts +0 -16
- package/dist/components/core/GlassSurface/glassLensOgl.d.ts +0 -11
- package/dist/components/core/GlassSurface/index.d.ts +0 -3
- package/dist/components/core/Input/InputField.d.ts +0 -29
- package/dist/components/core/Input/inputFieldContext.d.ts +0 -16
- package/dist/components/core/Label/fieldLabelContext.d.ts +0 -11
- package/dist/components/core/LiquidGlass/LiquidGlass.d.ts +0 -28
- package/dist/components/core/LiquidGlass/index.d.ts +0 -2
- package/dist/components/core/LiquidGlass/liquidGlassShader.d.ts +0 -2
- package/dist/components/core/LiquidGlass/useLiquidGlass.d.ts +0 -49
- package/dist/components/core/Meter/MeterField.d.ts +0 -35
- package/dist/components/core/Meter/meterFieldContext.d.ts +0 -21
- package/dist/components/core/ProgressBar/ProgressBarField.d.ts +0 -41
- package/dist/components/core/ProgressBar/progressBarFieldContext.d.ts +0 -22
- package/dist/components/core/Radio/radioFieldContext.d.ts +0 -36
- package/dist/components/core/Slider/SliderField.d.ts +0 -46
- package/dist/components/core/Slider/sliderCompound.d.ts +0 -49
- package/dist/components/core/Switch/SwitchField.d.ts +0 -45
- package/dist/components/core/Switch/switchTrack.d.ts +0 -57
- package/dist/components/core/TextArea/TextAreaField.d.ts +0 -29
- package/dist/components/core/TextArea/textareaFieldContext.d.ts +0 -16
- package/dist/components/core/utils/buttonGroupContext.d.ts +0 -9
- package/dist/components/core/utils/buttonGroupSegment.d.ts +0 -10
- package/dist/components/core/utils/motionTokens.d.ts +0 -28
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { KbdGroupProps } from './kbdTypes';
|
|
2
|
+
export declare function KbdGroup({ className, classNames, separator, children, ...rest }: KbdGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace KbdGroup {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export { KbdText } from './kbdTextPart';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TextVariant } from '../Text';
|
|
2
|
+
import { KbdSize, KbdVariant } from './kbdTypes';
|
|
3
|
+
export declare const KBD_VARIANT_SURFACE: Record<Exclude<KbdVariant, "gloss">, string>;
|
|
4
|
+
export declare const KBD_TEXT_VARIANT: Record<KbdSize, TextVariant>;
|
|
5
|
+
export declare const KBD_LAYOUT: Record<KbdSize, string>;
|
|
6
|
+
export declare const KBD_ROOT_BASE_CLASS = "box-border isolate inline-flex max-w-full shrink-0 select-none items-center justify-center whitespace-nowrap rounded-small font-mono motion-reduce:transition-none";
|
|
7
|
+
export declare const KBD_GROUP_BASE_CLASS = "inline-flex items-center gap-xsmall";
|
|
8
|
+
export declare const KBD_GROUP_SEPARATOR_CLASS = "select-none text-muted text-tools";
|
|
9
|
+
export declare function kbdSurfaceClass(variant: KbdVariant): string;
|
|
10
|
+
export declare function kbdRootClass({ variant, size, motionClass, slotRoot, className, }: {
|
|
11
|
+
variant: KbdVariant;
|
|
12
|
+
size: KbdSize;
|
|
13
|
+
motionClass?: string;
|
|
14
|
+
slotRoot?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
}): string;
|
|
17
|
+
export declare function kbdGroupClass(className?: string, slotGroup?: string): string;
|
|
18
|
+
export declare function kbdGroupSeparatorClass(slotSeparator?: string): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { KbdSize } from './kbdTypes';
|
|
3
|
+
export declare function KbdText({ size, children, }: {
|
|
4
|
+
size: KbdSize;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare namespace KbdText {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ForwardedRef, HTMLAttributes, PointerEvent as ReactPointerEvent, ReactNode } from 'react';
|
|
2
|
+
export type KbdVariant = "default" | "primary" | "outline" | "secondary" | "gloss";
|
|
3
|
+
export type KbdSize = "small" | "base" | "mid" | "large";
|
|
4
|
+
export type KbdClassNames = {
|
|
5
|
+
root?: string;
|
|
6
|
+
group?: string;
|
|
7
|
+
separator?: string;
|
|
8
|
+
};
|
|
9
|
+
export type KbdProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
10
|
+
variant?: KbdVariant;
|
|
11
|
+
size?: KbdSize;
|
|
12
|
+
classNames?: KbdClassNames;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Lift and shadow on hover (2nd level: sm → md), like `Badge`.
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
hoverLift?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type KbdGroupProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
21
|
+
classNames?: KbdClassNames;
|
|
22
|
+
/**
|
|
23
|
+
* Separator between keys. Pass `null` to hide.
|
|
24
|
+
* @default "+"
|
|
25
|
+
*/
|
|
26
|
+
separator?: ReactNode | null;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
};
|
|
29
|
+
export type KbdClassNamesProviderProps = {
|
|
30
|
+
classNames?: KbdClassNames;
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
};
|
|
33
|
+
export type UseKbdRootStateProps = {
|
|
34
|
+
variant: KbdVariant;
|
|
35
|
+
size: KbdSize;
|
|
36
|
+
className?: string;
|
|
37
|
+
classNames?: KbdClassNames;
|
|
38
|
+
};
|
|
39
|
+
export type UseKbdAnimationsProps = {
|
|
40
|
+
variant: KbdVariant;
|
|
41
|
+
hoverLift?: boolean;
|
|
42
|
+
forwardedRef: ForwardedRef<HTMLElement>;
|
|
43
|
+
onPointerOver?: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
44
|
+
onPointerOut?: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
45
|
+
};
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
export
|
|
7
|
-
/** Маркер для Switch: текст забирает корень, сам не рендерится. */
|
|
8
|
-
export declare function LabelSlot(_props: LabelProps): null;
|
|
9
|
-
export declare namespace LabelSlot {
|
|
10
|
-
var displayName: string;
|
|
11
|
-
}
|
|
12
|
-
export type LabelComponent = typeof Label & {
|
|
13
|
-
Slot: typeof LabelSlot;
|
|
14
|
-
};
|
|
15
|
-
export declare const LabelWithSlot: LabelComponent;
|
|
1
|
+
import { LabelSlot } from './labelParts';
|
|
2
|
+
import { LabelProps } from './labelTypes';
|
|
3
|
+
export type { LabelProps, LabelClassNames, FieldLabelContextValue, } from './labelTypes';
|
|
4
|
+
export declare function LabelRoot({ children, className, isRequired: isRequiredProp, htmlFor: htmlForProp, id: idProp, ...rest }: Omit<LabelProps, "classNames">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function Label({ classNames, ...rest }: LabelProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { LabelSlot };
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Label, LabelRoot, LabelSlot } from './Label';
|
|
2
|
+
import { LabelProps } from './labelTypes';
|
|
3
|
+
export type LabelComponent = ((props: LabelProps) => ReturnType<typeof Label>) & {
|
|
4
|
+
Slot: typeof LabelSlot;
|
|
5
|
+
};
|
|
6
|
+
declare const LabelCompound: LabelComponent;
|
|
7
|
+
export { LabelCompound as Label, LabelRoot, LabelSlot };
|
|
8
|
+
export type { LabelProps, LabelClassNames, FieldLabelContextValue } from './labelTypes';
|
|
9
|
+
export { FieldLabelContext, useOptionalFieldLabelContext, } from './labelContext';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LABEL_REQUIRED_MARKER_ARIA_HIDDEN = true;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FieldLabelContextValue, LabelClassNames, LabelClassNamesProviderProps } from './labelTypes';
|
|
2
|
+
declare const FieldLabelContext: import('react').Context<FieldLabelContextValue | null>;
|
|
3
|
+
export declare function FieldLabelContextProvider({ value, children, }: {
|
|
4
|
+
value: FieldLabelContextValue;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function LabelClassNamesProvider({ classNames, children, }: LabelClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function useOptionalFieldLabelContext(): FieldLabelContextValue | null;
|
|
9
|
+
export declare function useLabelClassNames(): LabelClassNames;
|
|
10
|
+
export { FieldLabelContext };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LabelContentProps, LabelProps } from './labelTypes';
|
|
2
|
+
export declare function LabelSlot(_props: LabelProps): null;
|
|
3
|
+
export declare namespace LabelSlot {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function LabelContent({ children, isRequired }: LabelContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const LABEL_ROOT_WRAP_CLASS = "inline-flex flex-wrap items-baseline gap-x-xsmall gap-y-0";
|
|
2
|
+
export declare const LABEL_TEXT_CLASS = "font-w-mid";
|
|
3
|
+
export declare const LABEL_REQUIRED_CLASS = "text-danger";
|
|
4
|
+
export declare function labelRootClass({ className, slotClass, }: {
|
|
5
|
+
className?: string;
|
|
6
|
+
slotClass?: string;
|
|
7
|
+
}): string;
|
|
8
|
+
export declare function labelTextClass(slotClass?: string): string;
|
|
9
|
+
export declare function labelRequiredClass(slotClass?: string): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LabelHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type LabelClassNames = {
|
|
3
|
+
root?: string;
|
|
4
|
+
text?: string;
|
|
5
|
+
required?: string;
|
|
6
|
+
};
|
|
7
|
+
export type LabelProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children"> & {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
isRequired?: boolean;
|
|
10
|
+
classNames?: LabelClassNames;
|
|
11
|
+
};
|
|
12
|
+
export type LabelClassNamesProviderProps = {
|
|
13
|
+
classNames?: LabelClassNames;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export type FieldLabelContextValue = {
|
|
17
|
+
controlId?: string;
|
|
18
|
+
labelId?: string;
|
|
19
|
+
isRequired?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type UseLabelRootStateProps = Pick<LabelProps, "isRequired" | "htmlFor" | "id">;
|
|
22
|
+
export type LabelContentProps = {
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
isRequired: boolean;
|
|
25
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseLabelRootStateProps } from './labelTypes';
|
|
2
|
+
export declare function useLabelRootState({ isRequired: isRequiredProp, htmlFor: htmlForProp, id: idProp, }: UseLabelRootStateProps): {
|
|
3
|
+
htmlFor: string | undefined;
|
|
4
|
+
id: string | undefined;
|
|
5
|
+
isRequired: boolean;
|
|
6
|
+
};
|
|
@@ -1,40 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export type LinkSize
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
import { LinkIcon } from './linkParts';
|
|
2
|
+
import { LinkProps } from './linkTypes';
|
|
3
|
+
export type { LinkProps, LinkSize, LinkIconPosition, LinkIconProps, LinkClassNames, } from './linkTypes';
|
|
4
|
+
export { LinkIcon };
|
|
5
|
+
export declare const LinkRoot: import('react').ForwardRefExoticComponent<Omit<LinkProps, "classNames"> & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
6
|
+
export declare const Link: import('react').ForwardRefExoticComponent<Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children"> & {
|
|
6
7
|
href: string;
|
|
7
|
-
children
|
|
8
|
-
size?: LinkSize;
|
|
9
|
-
/** Подчёркивание текста ссылки. */
|
|
8
|
+
children?: import('react').ReactNode;
|
|
9
|
+
size?: import('./linkTypes').LinkSize;
|
|
10
10
|
underline?: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/** Иконка справа от текста. */
|
|
14
|
-
rightIcon?: ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Показать стандартную стрелку ↗, если не переданы `leftIcon` / `rightIcon`.
|
|
17
|
-
* По умолчанию `false`.
|
|
18
|
-
*/
|
|
11
|
+
leftIcon?: import('react').ReactNode;
|
|
12
|
+
rightIcon?: import('react').ReactNode;
|
|
19
13
|
showDefaultIcon?: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
export declare const Link: import('react').ForwardRefExoticComponent<Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children"> & {
|
|
24
|
-
href: string;
|
|
25
|
-
children: ReactNode;
|
|
26
|
-
size?: LinkSize;
|
|
27
|
-
/** Подчёркивание текста ссылки. */
|
|
28
|
-
underline?: boolean;
|
|
29
|
-
/** Иконка слева от текста. */
|
|
30
|
-
leftIcon?: ReactNode;
|
|
31
|
-
/** Иконка справа от текста. */
|
|
32
|
-
rightIcon?: ReactNode;
|
|
33
|
-
/**
|
|
34
|
-
* Показать стандартную стрелку ↗, если не переданы `leftIcon` / `rightIcon`.
|
|
35
|
-
* По умолчанию `false`.
|
|
36
|
-
*/
|
|
37
|
-
showDefaultIcon?: boolean;
|
|
38
|
-
/** Сторона для стандартной стрелки. По умолчанию `end`. */
|
|
39
|
-
defaultIconPosition?: LinkIconPosition;
|
|
14
|
+
defaultIconPosition?: import('./linkTypes').LinkIconPosition;
|
|
15
|
+
classNames?: import('./linkTypes').LinkClassNames;
|
|
40
16
|
} & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { RefAttributes } from 'react';
|
|
2
|
+
import { Link, LinkIcon, LinkRoot } from './Link';
|
|
3
|
+
import { LinkProps } from './linkTypes';
|
|
4
|
+
export type LinkComponent = ((props: LinkProps & RefAttributes<HTMLAnchorElement>) => ReturnType<typeof Link>) & {
|
|
5
|
+
Icon: typeof LinkIcon;
|
|
6
|
+
Root: typeof LinkRoot;
|
|
7
|
+
};
|
|
8
|
+
declare const LinkCompound: LinkComponent;
|
|
9
|
+
export { LinkCompound as Link, LinkRoot, LinkIcon };
|
|
10
|
+
export type { LinkProps, LinkSize, LinkIconPosition, LinkIconProps, LinkClassNames, } from './linkTypes';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { LinkIconPlacement, ResolvedLinkCompoundBody, UseLinkRootStateProps } from './linkTypes';
|
|
4
|
+
export declare const LINK_ICON_DISPLAY_NAME = "Link.Icon";
|
|
5
|
+
export declare function mergeLinkSlotClass(...parts: ClassValue[]): string;
|
|
6
|
+
export declare function hasLinkCompoundChildren(children: ReactNode): boolean;
|
|
7
|
+
export declare function resolveLinkCompoundBody(children: ReactNode): ResolvedLinkCompoundBody;
|
|
8
|
+
export declare function resolveLinkIconPlacement({ leftIcon, rightIcon, showDefaultIcon, defaultIconPosition, }: Pick<UseLinkRootStateProps, "leftIcon" | "rightIcon" | "showDefaultIcon" | "defaultIconPosition">): LinkIconPlacement;
|
|
9
|
+
export declare function resolveLinkBodyIcons({ leftIcon, rightIcon, showDefaultIcon, defaultIconPosition, children, }: UseLinkRootStateProps): {
|
|
10
|
+
textChildren: ReactNode;
|
|
11
|
+
startIcon: ReactNode | null;
|
|
12
|
+
endIcon: ReactNode | null;
|
|
13
|
+
startIconMuted: boolean;
|
|
14
|
+
endIconMuted: boolean;
|
|
15
|
+
usesDefaultAtStart: boolean;
|
|
16
|
+
usesDefaultAtEnd: boolean;
|
|
17
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LinkAnchorBodyProps } from './linkTypes';
|
|
2
|
+
export declare function LinkAnchorBody({ href, size, underline, textVariant, textChildren, startIcon, endIcon, startIconMuted, endIconMuted, usesDefaultAtStart, usesDefaultAtEnd, className, setAnchorRef, handlePointerEnter, handlePointerLeave, handlePointerDown, ...rest }: LinkAnchorBodyProps & {
|
|
3
|
+
usesDefaultAtStart: boolean;
|
|
4
|
+
usesDefaultAtEnd: boolean;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseLinkAnimationsProps } from './linkTypes';
|
|
2
|
+
export declare function useLinkAnimations({ forwardedRef, onPointerEnter, onPointerLeave, onPointerDown, }: UseLinkAnimationsProps): {
|
|
3
|
+
setAnchorRef: (node: HTMLAnchorElement | null) => void;
|
|
4
|
+
handlePointerEnter: (e: import('react').PointerEvent<HTMLAnchorElement>) => void;
|
|
5
|
+
handlePointerLeave: (e: import('react').PointerEvent<HTMLAnchorElement>) => void;
|
|
6
|
+
handlePointerDown: (e: import('react').PointerEvent<HTMLAnchorElement>) => void;
|
|
7
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { LinkClassNames, LinkClassNamesProviderProps } from './linkTypes';
|
|
2
|
+
export declare function LinkClassNamesProvider({ classNames, children, }: LinkClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function useLinkClassNames(): LinkClassNames;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LinkIconProps } from './linkTypes';
|
|
2
|
+
export declare function LinkIcon(_props: LinkIconProps): null;
|
|
3
|
+
export declare namespace LinkIcon {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export { LinkDefaultIcon } from './linkDefaultIconPart';
|
|
7
|
+
export { LinkIconSlot } from './linkIconSlotPart';
|
|
8
|
+
export { LinkAnchorBody } from './linkAnchorBodyPart';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TextVariant } from '../Text';
|
|
2
|
+
import { LinkSize } from './linkTypes';
|
|
3
|
+
export declare const LINK_ANCHOR_CLASS = "group/link inline-flex max-w-full min-w-0 items-center gap-xsmall rounded-mid no-underline outline-none w-fit text-primary focus-ring";
|
|
4
|
+
export declare const LINK_TEXT_BASE_CLASS = "min-w-0 truncate font-w-mid";
|
|
5
|
+
export declare const LINK_TEXT_UNDERLINE_CLASS = "underline decoration-current/70 underline-offset-[0.2em]";
|
|
6
|
+
export declare const LINK_ICON_MUTED_CLASS = "text-muted group-hover/link:text-primary group-focus-visible/link:text-primary";
|
|
7
|
+
export declare const LINK_ICON_PRIMARY_CLASS = "text-primary";
|
|
8
|
+
export declare const LINK_DEFAULT_ICON_ROTATE_CLASS = "rotate-[-45deg]";
|
|
9
|
+
export declare const LINK_TEXT_VARIANT: Record<LinkSize, TextVariant>;
|
|
10
|
+
export declare const LINK_ICON_SIZE_CLASS: Record<LinkSize, string>;
|
|
11
|
+
export declare function linkAnchorClass({ slotClass, className, }: {
|
|
12
|
+
slotClass?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
}): string;
|
|
15
|
+
export declare function linkTextClass({ underline, slotClass, }: {
|
|
16
|
+
underline: boolean;
|
|
17
|
+
slotClass?: string;
|
|
18
|
+
}): string;
|
|
19
|
+
export declare function linkIconSlotClass({ size, muted, slotClass, }: {
|
|
20
|
+
size: LinkSize;
|
|
21
|
+
muted: boolean;
|
|
22
|
+
slotClass?: string;
|
|
23
|
+
}): string;
|
|
24
|
+
export declare function linkDefaultIconClass(size: LinkSize): string;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ForwardedRef, PointerEvent, ReactNode } from 'react';
|
|
2
|
+
import { ComponentSize } from '../utils/componentSize';
|
|
3
|
+
export type LinkSize = ComponentSize;
|
|
4
|
+
export type LinkIconPosition = "start" | "end";
|
|
5
|
+
export type LinkClassNames = {
|
|
6
|
+
/** Anchor `<a>`. */
|
|
7
|
+
anchor?: string;
|
|
8
|
+
/** Link text (`Text`). */
|
|
9
|
+
text?: string;
|
|
10
|
+
/** Left icon wrapper. */
|
|
11
|
+
iconStart?: string;
|
|
12
|
+
/** Right icon wrapper. */
|
|
13
|
+
iconEnd?: string;
|
|
14
|
+
};
|
|
15
|
+
export type LinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children"> & {
|
|
16
|
+
href: string;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
size?: LinkSize;
|
|
19
|
+
underline?: boolean;
|
|
20
|
+
leftIcon?: ReactNode;
|
|
21
|
+
rightIcon?: ReactNode;
|
|
22
|
+
showDefaultIcon?: boolean;
|
|
23
|
+
defaultIconPosition?: LinkIconPosition;
|
|
24
|
+
classNames?: LinkClassNames;
|
|
25
|
+
};
|
|
26
|
+
export type LinkIconProps = {
|
|
27
|
+
position?: LinkIconPosition;
|
|
28
|
+
children?: ReactNode;
|
|
29
|
+
};
|
|
30
|
+
export type ResolvedLinkIconSlot = {
|
|
31
|
+
node: ReactNode | "default";
|
|
32
|
+
muted: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type ResolvedLinkCompoundBody = {
|
|
35
|
+
textChildren: ReactNode;
|
|
36
|
+
startIcon?: ResolvedLinkIconSlot;
|
|
37
|
+
endIcon?: ResolvedLinkIconSlot;
|
|
38
|
+
};
|
|
39
|
+
export type UseLinkRootStateProps = Pick<LinkProps, "size" | "underline" | "leftIcon" | "rightIcon" | "showDefaultIcon" | "defaultIconPosition" | "children">;
|
|
40
|
+
export type LinkIconPlacement = {
|
|
41
|
+
usesDefaultIcon: boolean;
|
|
42
|
+
defaultIconAtStart: boolean;
|
|
43
|
+
defaultIconAtEnd: boolean;
|
|
44
|
+
};
|
|
45
|
+
export type LinkClassNamesProviderProps = {
|
|
46
|
+
classNames?: LinkClassNames;
|
|
47
|
+
children: ReactNode;
|
|
48
|
+
};
|
|
49
|
+
export type LinkAnchorBodyProps = {
|
|
50
|
+
href: string;
|
|
51
|
+
size: LinkSize;
|
|
52
|
+
underline: boolean;
|
|
53
|
+
textVariant: import('../Text').TextVariant;
|
|
54
|
+
textChildren: ReactNode;
|
|
55
|
+
startIcon: ReactNode | null;
|
|
56
|
+
endIcon: ReactNode | null;
|
|
57
|
+
startIconMuted: boolean;
|
|
58
|
+
endIconMuted: boolean;
|
|
59
|
+
className?: string;
|
|
60
|
+
setAnchorRef: (node: HTMLAnchorElement | null) => void;
|
|
61
|
+
handlePointerEnter: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
62
|
+
handlePointerLeave: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
63
|
+
handlePointerDown: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
64
|
+
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "href" | "className">;
|
|
65
|
+
export type LinkIconSlotProps = {
|
|
66
|
+
children: ReactNode;
|
|
67
|
+
size: LinkSize;
|
|
68
|
+
muted?: boolean;
|
|
69
|
+
slotClass?: string;
|
|
70
|
+
};
|
|
71
|
+
export type UseLinkAnimationsProps = {
|
|
72
|
+
forwardedRef: ForwardedRef<HTMLAnchorElement>;
|
|
73
|
+
onPointerEnter?: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
74
|
+
onPointerLeave?: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
75
|
+
onPointerDown?: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
76
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UseLinkRootStateProps } from './linkTypes';
|
|
2
|
+
export declare function useLinkRootState({ size, underline, leftIcon, rightIcon, showDefaultIcon, defaultIconPosition, children, }: UseLinkRootStateProps): {
|
|
3
|
+
textChildren: import('react').ReactNode;
|
|
4
|
+
startIcon: import('react').ReactNode | null;
|
|
5
|
+
endIcon: import('react').ReactNode | null;
|
|
6
|
+
startIconMuted: boolean;
|
|
7
|
+
endIconMuted: boolean;
|
|
8
|
+
usesDefaultAtStart: boolean;
|
|
9
|
+
usesDefaultAtEnd: boolean;
|
|
10
|
+
size: import('../utils/componentSize').ComponentSize;
|
|
11
|
+
underline: boolean;
|
|
12
|
+
textVariant: import('../Text').TextVariant;
|
|
13
|
+
};
|
|
@@ -1,112 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
multiple: boolean;
|
|
8
|
-
selected: Set<string>;
|
|
9
|
-
selectItem: (value: string) => void;
|
|
10
|
-
activeValue: string | null;
|
|
11
|
-
setActiveValue: (value: string | null) => void;
|
|
12
|
-
showIndicator: boolean;
|
|
13
|
-
indicatorMode: "radio" | "multi";
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
};
|
|
16
|
-
declare function useListBox(who: string): ListBoxContextValue;
|
|
17
|
-
export type ListBoxRootProps = Omit<HTMLAttributes<HTMLDivElement>, "children" | "onChange"> & {
|
|
18
|
-
children?: ReactNode;
|
|
19
|
-
size?: ListBoxSize;
|
|
20
|
-
multiple?: boolean;
|
|
21
|
-
value?: string | string[];
|
|
22
|
-
defaultValue?: string | string[];
|
|
23
|
-
onValueChange?: (value: string | string[]) => void;
|
|
24
|
-
/** Показывать индикатор выбора слева. По умолчанию `true`. */
|
|
25
|
-
selectionIndicator?: boolean;
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
/** Управляемый активный пункт (для combobox `aria-activedescendant`). */
|
|
28
|
-
activeValue?: string | null;
|
|
29
|
-
onActiveValueChange?: (value: string | null) => void;
|
|
30
|
-
/** `id` корня listbox; иначе генерируется. */
|
|
31
|
-
listId?: string;
|
|
32
|
-
};
|
|
33
|
-
declare function ListBoxRoot({ children, className, size, multiple, value: valueProp, defaultValue, onValueChange, selectionIndicator, disabled, activeValue: activeValueProp, onActiveValueChange, listId: listIdProp, ...rest }: ListBoxRootProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
declare namespace ListBoxRoot {
|
|
1
|
+
import { ListBoxRootProps } from './listBoxTypes';
|
|
2
|
+
export type { ListBoxRootProps, ListBoxSectionProps, ListBoxHeaderProps, ListBoxSeparatorProps, ListBoxEmptyProps, ListBoxItemProps, ListBoxLabelProps, ListBoxHintProps, ListBoxIconProps, ListBoxItemIndicatorProps, ListBoxSize, ListBoxVariant, ListBoxClassNames, } from './listBoxTypes';
|
|
3
|
+
export { ListBoxRootShell, ListBoxSection, ListBoxHeader, ListBoxSeparator, ListBoxEmpty, ListBoxItem, ListBoxLabel, ListBoxHint, ListBoxIcon, ListBoxItemIndicator, } from './listBoxParts';
|
|
4
|
+
export { useListBox } from './listBoxContext';
|
|
5
|
+
export declare function ListBoxRoot({ classNames, children, className, size, variant, multiple, value, defaultValue, onValueChange, selectionIndicator, disabled, activeValue, onActiveValueChange, listId: listIdProp, label, "aria-label": ariaLabelProp, "aria-labelledby": ariaLabelledByProp, ...rest }: ListBoxRootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare namespace ListBoxRoot {
|
|
35
7
|
var displayName: string;
|
|
36
8
|
}
|
|
37
|
-
export type ListBoxSectionProps = HTMLAttributes<HTMLDivElement>;
|
|
38
|
-
declare function ListBoxSection({ className, children, ...rest }: ListBoxSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
declare namespace ListBoxSection {
|
|
40
|
-
var displayName: string;
|
|
41
|
-
}
|
|
42
|
-
export type ListBoxHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
43
|
-
declare function ListBoxHeader({ className, children, id: idProp, ...rest }: ListBoxHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
-
declare namespace ListBoxHeader {
|
|
45
|
-
var displayName: string;
|
|
46
|
-
}
|
|
47
|
-
export type ListBoxSeparatorProps = HTMLAttributes<HTMLDivElement>;
|
|
48
|
-
declare function ListBoxSeparator({ className, ...rest }: ListBoxSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
49
|
-
declare namespace ListBoxSeparator {
|
|
50
|
-
var displayName: string;
|
|
51
|
-
}
|
|
52
|
-
export type ListBoxEmptyProps = HTMLAttributes<HTMLParagraphElement>;
|
|
53
|
-
declare function ListBoxEmpty({ className, children, ...rest }: ListBoxEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
-
declare namespace ListBoxEmpty {
|
|
55
|
-
var displayName: string;
|
|
56
|
-
}
|
|
57
|
-
export type ListBoxItemProps = Omit<HTMLAttributes<HTMLButtonElement>, "value"> & {
|
|
58
|
-
value: string;
|
|
59
|
-
disabled?: boolean;
|
|
60
|
-
/** Текстовая подпись (simple API). */
|
|
61
|
-
label?: ReactNode;
|
|
62
|
-
/** Подсказка под подписью (simple API). */
|
|
63
|
-
hint?: ReactNode;
|
|
64
|
-
/** Иконка справа (simple API). */
|
|
65
|
-
icon?: ReactNode;
|
|
66
|
-
};
|
|
67
|
-
export type ListBoxLabelProps = HTMLAttributes<HTMLSpanElement>;
|
|
68
|
-
declare function ListBoxLabel(props: ListBoxLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
69
|
-
declare namespace ListBoxLabel {
|
|
70
|
-
var displayName: string;
|
|
71
|
-
}
|
|
72
|
-
export type ListBoxHintProps = HTMLAttributes<HTMLSpanElement>;
|
|
73
|
-
declare function ListBoxHint(props: ListBoxHintProps): import("react/jsx-runtime").JSX.Element;
|
|
74
|
-
declare namespace ListBoxHint {
|
|
75
|
-
var displayName: string;
|
|
76
|
-
}
|
|
77
|
-
export type ListBoxIconProps = HTMLAttributes<HTMLSpanElement>;
|
|
78
|
-
declare function ListBoxIcon(props: ListBoxIconProps): import("react/jsx-runtime").JSX.Element;
|
|
79
|
-
declare namespace ListBoxIcon {
|
|
80
|
-
var displayName: string;
|
|
81
|
-
}
|
|
82
|
-
export type ListBoxItemIndicatorProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
83
|
-
variant?: SelectionIndicatorVariant;
|
|
84
|
-
size?: SelectionIndicatorSize;
|
|
85
|
-
check?: boolean;
|
|
86
|
-
children?: ReactNode;
|
|
87
|
-
};
|
|
88
|
-
declare function ListBoxItemIndicator({ variant, size, check, children, className, ...rest }: ListBoxItemIndicatorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
89
|
-
declare namespace ListBoxItemIndicator {
|
|
90
|
-
var displayName: string;
|
|
91
|
-
}
|
|
92
|
-
export declare const ListBox: typeof ListBoxRoot & {
|
|
93
|
-
Section: typeof ListBoxSection;
|
|
94
|
-
Header: typeof ListBoxHeader;
|
|
95
|
-
Separator: typeof ListBoxSeparator;
|
|
96
|
-
Empty: typeof ListBoxEmpty;
|
|
97
|
-
Item: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLButtonElement>, "value"> & {
|
|
98
|
-
value: string;
|
|
99
|
-
disabled?: boolean;
|
|
100
|
-
/** Текстовая подпись (simple API). */
|
|
101
|
-
label?: ReactNode;
|
|
102
|
-
/** Подсказка под подписью (simple API). */
|
|
103
|
-
hint?: ReactNode;
|
|
104
|
-
/** Иконка справа (simple API). */
|
|
105
|
-
icon?: ReactNode;
|
|
106
|
-
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
107
|
-
Label: typeof ListBoxLabel;
|
|
108
|
-
Hint: typeof ListBoxHint;
|
|
109
|
-
Icon: typeof ListBoxIcon;
|
|
110
|
-
ItemIndicator: typeof ListBoxItemIndicator;
|
|
111
|
-
};
|
|
112
|
-
export { useListBox };
|
|
@@ -1 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import { ListBoxEmpty, ListBoxHeader, ListBoxHint, ListBoxIcon, ListBoxItemIndicator, ListBoxLabel, ListBoxRoot, ListBoxSection, ListBoxSeparator, useListBox } from './ListBox';
|
|
2
|
+
export declare const ListBox: typeof ListBoxRoot & {
|
|
3
|
+
Section: typeof ListBoxSection;
|
|
4
|
+
Header: typeof ListBoxHeader;
|
|
5
|
+
Separator: typeof ListBoxSeparator;
|
|
6
|
+
Empty: typeof ListBoxEmpty;
|
|
7
|
+
Item: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLButtonElement>, "value"> & {
|
|
8
|
+
value: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
label?: import('react').ReactNode;
|
|
11
|
+
hint?: import('react').ReactNode;
|
|
12
|
+
icon?: import('react').ReactNode;
|
|
13
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
Label: typeof ListBoxLabel;
|
|
15
|
+
Hint: typeof ListBoxHint;
|
|
16
|
+
Icon: typeof ListBoxIcon;
|
|
17
|
+
ItemIndicator: typeof ListBoxItemIndicator & {
|
|
18
|
+
Fill: import('react').ForwardRefExoticComponent<import('../SelectionIndicator').SelectionIndicatorFillProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
19
|
+
Mark: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
20
|
+
children?: import('react').ReactNode;
|
|
21
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export { useListBox };
|
|
25
|
+
export type { ListBoxRootProps, ListBoxSectionProps, ListBoxHeaderProps, ListBoxSeparatorProps, ListBoxEmptyProps, ListBoxItemProps, ListBoxLabelProps, ListBoxHintProps, ListBoxIconProps, ListBoxItemIndicatorProps, ListBoxSize, ListBoxVariant, ListBoxClassNames, } from './ListBox';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const LISTBOX_EMPTY_DEFAULT_CHILDREN = "No matches";
|
|
2
|
+
export declare function listBoxOptionId(listId: string, value: string): string;
|
|
3
|
+
export declare function resolveListBoxAriaLabel({ ariaLabel, ariaLabelledBy, label, }: {
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
ariaLabelledBy?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
}): {
|
|
8
|
+
"aria-label"?: string;
|
|
9
|
+
"aria-labelledby"?: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { SelectionIndicatorClassNames } from '../SelectionIndicator';
|
|
4
|
+
import { ListBoxClassNames, ListBoxItemIndicatorClassNames, UseListBoxItemStateProps } from './listBoxTypes';
|
|
5
|
+
export declare function mergeListBoxSlotClass(...parts: ClassValue[]): string;
|
|
6
|
+
export declare function resolveListBoxItemIndicatorClassNames({ slotClassNames, classNames, }: {
|
|
7
|
+
slotClassNames: ListBoxClassNames;
|
|
8
|
+
classNames?: ListBoxItemIndicatorClassNames;
|
|
9
|
+
}): SelectionIndicatorClassNames;
|
|
10
|
+
export declare function normalizeListBoxValues(value: string | string[] | undefined): string[];
|
|
11
|
+
export declare function partitionListBoxItemChildren(children: ReactNode): import('../utils/optionListItemChildren').OptionListItemParts;
|
|
12
|
+
export declare function resolveListBoxItemLayout({ children, label, hint, icon, showIndicator, }: Pick<UseListBoxItemStateProps, "children" | "label" | "hint" | "icon"> & {
|
|
13
|
+
showIndicator: boolean;
|
|
14
|
+
}): {
|
|
15
|
+
parts: import('../utils/optionListItemChildren').OptionListItemParts;
|
|
16
|
+
hasCompoundIndicator: boolean;
|
|
17
|
+
hasHint: boolean;
|
|
18
|
+
hasIcon: boolean;
|
|
19
|
+
isCompound: boolean;
|
|
20
|
+
hasLabel: boolean;
|
|
21
|
+
showIndicatorSlot: boolean;
|
|
22
|
+
};
|