@planningcenter/tapestry-react 2.10.0-rc.2 → 2.10.0-rc.4
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/cjs/ActionsDropdown/ActionsDropdown.js +118 -0
- package/dist/cjs/ActionsDropdown/index.js +15 -0
- package/dist/cjs/Alert/Alert.js +37 -0
- package/dist/cjs/Alert/Alert.test.js +20 -0
- package/dist/cjs/Alert/index.js +15 -0
- package/dist/cjs/Avatar/Avatar.js +59 -0
- package/dist/cjs/Avatar/index.js +11 -0
- package/dist/cjs/Badge/Badge.js +153 -0
- package/dist/cjs/Badge/Status.js +89 -0
- package/dist/cjs/Badge/index.js +14 -0
- package/dist/cjs/Box/Box.js +48 -0
- package/dist/cjs/Box/index.js +15 -0
- package/dist/cjs/Button/Button.js +319 -0
- package/dist/cjs/Button/Button.test.js +155 -0
- package/dist/cjs/Button/Input.js +180 -0
- package/dist/cjs/Button/index.js +15 -0
- package/dist/cjs/Calendar/Calendar.js +383 -0
- package/dist/cjs/Calendar/Day.js +101 -0
- package/dist/cjs/Calendar/index.js +11 -0
- package/dist/cjs/Calendar/utils.js +104 -0
- package/dist/cjs/Card/Card.js +52 -0
- package/dist/cjs/Card/Section.js +28 -0
- package/dist/cjs/Card/index.js +15 -0
- package/dist/cjs/Checkbox/Checkbox.js +209 -0
- package/dist/cjs/Checkbox/index.js +11 -0
- package/dist/cjs/CheckboxCard/CheckboxCard.js +76 -0
- package/dist/cjs/CheckboxCard/index.js +11 -0
- package/dist/cjs/CheckboxGroup/CheckboxGroup.js +71 -0
- package/dist/cjs/CheckboxGroup/CheckboxGroupContext.js +10 -0
- package/dist/cjs/CheckboxGroup/index.js +11 -0
- package/dist/cjs/ChurchCenterStatus/ChurchCenterStatus.js +144 -0
- package/dist/cjs/ChurchCenterStatus/index.js +15 -0
- package/dist/cjs/Collapse/Collapse.js +126 -0
- package/dist/cjs/Collapse/Collapse.test.js +56 -0
- package/dist/cjs/Collapse/index.js +11 -0
- package/dist/cjs/ColumnView/ColumnView.js +66 -0
- package/dist/cjs/ColumnView/index.js +11 -0
- package/dist/cjs/Combobox/Combobox.js +35 -0
- package/dist/cjs/Combobox/ComboboxInput.js +141 -0
- package/dist/cjs/Combobox/ComboboxItem.js +57 -0
- package/dist/cjs/Combobox/ComboboxItems.js +90 -0
- package/dist/cjs/Combobox/ComboboxPopover.js +264 -0
- package/dist/cjs/Combobox/index.js +23 -0
- package/dist/cjs/DataTable/DataTable.js +272 -0
- package/dist/cjs/DataTable/components/BodyRow.js +58 -0
- package/dist/cjs/DataTable/components/BodyRows.js +131 -0
- package/dist/cjs/DataTable/components/BodySubRows.js +104 -0
- package/dist/cjs/DataTable/components/CheckboxCell.js +116 -0
- package/dist/cjs/DataTable/components/ColumnPicker.js +75 -0
- package/dist/cjs/DataTable/components/HeaderCell.js +88 -0
- package/dist/cjs/DataTable/components/Icon.js +70 -0
- package/dist/cjs/DataTable/components/index.js +22 -0
- package/dist/cjs/DataTable/hooks/index.js +42 -0
- package/dist/cjs/DataTable/hooks/useCollapsibleRows.js +127 -0
- package/dist/cjs/DataTable/hooks/useColumnSort.js +100 -0
- package/dist/cjs/DataTable/hooks/useColumnWidths.js +113 -0
- package/dist/cjs/DataTable/hooks/useHoverFocus.js +33 -0
- package/dist/cjs/DataTable/hooks/useRefManager.js +28 -0
- package/dist/cjs/DataTable/hooks/useScrollShadows.js +106 -0
- package/dist/cjs/DataTable/hooks/useScrollSync.js +52 -0
- package/dist/cjs/DataTable/hooks/useVariants.js +15 -0
- package/dist/cjs/DataTable/index.js +29 -0
- package/dist/cjs/DataTable/utils/getCell.js +24 -0
- package/dist/cjs/DataTable/utils/getParsedColumns.js +158 -0
- package/dist/cjs/DataTable/utils/getRowLinkProps.js +16 -0
- package/dist/cjs/DataTable/utils/index.js +22 -0
- package/dist/cjs/DataTable/utils/variants.js +176 -0
- package/dist/cjs/DateField/DateField.js +182 -0
- package/dist/cjs/DateField/index.js +11 -0
- package/dist/cjs/DateField/parse.js +106 -0
- package/dist/cjs/DateField/parse.test.js +46 -0
- package/dist/cjs/DateField/useArrowKeysToNavigateCalendar.js +48 -0
- package/dist/cjs/DateField/useEditableDate.js +72 -0
- package/dist/cjs/Divider/Divider.js +44 -0
- package/dist/cjs/Divider/index.js +15 -0
- package/dist/cjs/DragDrop/DragDrop.js +233 -0
- package/dist/cjs/DragDrop/index.js +11 -0
- package/dist/cjs/Drawer/Drawer.js +102 -0
- package/dist/cjs/Drawer/index.js +11 -0
- package/dist/cjs/Dropdown/Dropdown.js +314 -0
- package/dist/cjs/Dropdown/Dropdown.test.js +210 -0
- package/dist/cjs/Dropdown/Item.js +74 -0
- package/dist/cjs/Dropdown/Link.js +85 -0
- package/dist/cjs/Dropdown/index.js +11 -0
- package/dist/cjs/EditActions/EditActions.js +100 -0
- package/dist/cjs/EditActions/index.js +11 -0
- package/dist/cjs/Field/Field.js +105 -0
- package/dist/cjs/Field/index.js +11 -0
- package/dist/cjs/FieldSet/FieldSet.js +63 -0
- package/dist/cjs/FieldSet/index.js +11 -0
- package/dist/cjs/FilterLayout/FilterLayout.js +99 -0
- package/dist/cjs/FilterLayout/index.js +15 -0
- package/dist/cjs/FocusGroup/FocusGroup.js +127 -0
- package/dist/cjs/FocusGroup/index.js +11 -0
- package/dist/cjs/Form/Form.js +188 -0
- package/dist/cjs/Form/index.js +11 -0
- package/dist/cjs/GridView/GridView.js +111 -0
- package/dist/cjs/GridView/index.js +15 -0
- package/dist/cjs/Group/Group.js +55 -0
- package/dist/cjs/Group/index.js +15 -0
- package/dist/cjs/Heading/Heading.js +33 -0
- package/dist/cjs/Heading/index.js +11 -0
- package/dist/cjs/HeadingUppercase/HeadingUppercase.js +35 -0
- package/dist/cjs/HeadingUppercase/index.js +11 -0
- package/dist/cjs/HelperDrawer/HelperDrawer.js +91 -0
- package/dist/cjs/HelperDrawer/index.js +11 -0
- package/dist/cjs/Highlight/Highlight.js +53 -0
- package/dist/cjs/Highlight/index.js +11 -0
- package/dist/cjs/Highlight/utils.js +52 -0
- package/dist/cjs/Icon/Icon.js +59 -0
- package/dist/cjs/Icon/Path.js +34 -0
- package/dist/cjs/Icon/Status.js +58 -0
- package/dist/cjs/Icon/index.js +17 -0
- package/dist/cjs/Input/Inline.js +61 -0
- package/dist/cjs/Input/Input.js +132 -0
- package/dist/cjs/Input/InputBox.js +352 -0
- package/dist/cjs/Input/InputContext.js +10 -0
- package/dist/cjs/Input/InputField.js +290 -0
- package/dist/cjs/Input/InputLabel.js +70 -0
- package/dist/cjs/Input/index.js +23 -0
- package/dist/cjs/Input/utils.js +13 -0
- package/dist/cjs/ItemList/ItemList.js +265 -0
- package/dist/cjs/ItemList/ItemListContext.js +10 -0
- package/dist/cjs/ItemList/ItemListController.js +67 -0
- package/dist/cjs/ItemList/ItemListItem.js +100 -0
- package/dist/cjs/ItemList/index.js +17 -0
- package/dist/cjs/ItemList/utils.js +73 -0
- package/dist/cjs/Link/Inline.js +50 -0
- package/dist/cjs/Link/Link.js +76 -0
- package/dist/cjs/Link/index.js +14 -0
- package/dist/cjs/LinkList/LinkList.js +41 -0
- package/dist/cjs/LinkList/index.js +11 -0
- package/dist/cjs/List/List.js +63 -0
- package/dist/cjs/List/ListItem.js +52 -0
- package/dist/cjs/List/index.js +11 -0
- package/dist/cjs/Logo/Logo.js +63 -0
- package/dist/cjs/Logo/index.js +11 -0
- package/dist/cjs/Menu/Heading.js +28 -0
- package/dist/cjs/Menu/Item.js +113 -0
- package/dist/cjs/Menu/Menu.js +30 -0
- package/dist/cjs/Menu/index.js +11 -0
- package/dist/cjs/Modal/Modal.js +76 -0
- package/dist/cjs/Modal/Modal.test.js +156 -0
- package/dist/cjs/Modal/index.js +11 -0
- package/dist/cjs/NumberField/NumberField.js +327 -0
- package/dist/cjs/NumberField/NumberField.test.js +236 -0
- package/dist/cjs/NumberField/index.js +11 -0
- package/dist/cjs/Page/PageActions.js +27 -0
- package/dist/cjs/Page/PageBody.js +56 -0
- package/dist/cjs/Page/PageButton.js +24 -0
- package/dist/cjs/Page/PageDropdown.js +25 -0
- package/dist/cjs/Page/PageHeader.js +44 -0
- package/dist/cjs/Page/PageTab.js +30 -0
- package/dist/cjs/Page/PageTabList.js +21 -0
- package/dist/cjs/Page/PageTitle.js +26 -0
- package/dist/cjs/Page/PageToolbar.js +47 -0
- package/dist/cjs/Page/index.js +41 -0
- package/dist/cjs/PagerView/PagerView.js +230 -0
- package/dist/cjs/PagerView/index.js +11 -0
- package/dist/cjs/Pagination/Pagination.js +178 -0
- package/dist/cjs/Pagination/index.js +11 -0
- package/dist/cjs/Popover/Popover.js +226 -0
- package/dist/cjs/Popover/Popover.test.js +65 -0
- package/dist/cjs/Popover/index.js +15 -0
- package/dist/cjs/Popover/rewireTabOrder.js +106 -0
- package/dist/cjs/Popover/utils.js +73 -0
- package/dist/cjs/Portal/Portal.js +177 -0
- package/dist/cjs/Portal/index.js +15 -0
- package/dist/cjs/Progress/Progress.js +51 -0
- package/dist/cjs/Progress/index.js +11 -0
- package/dist/cjs/Radio/Radio.js +159 -0
- package/dist/cjs/Radio/index.js +11 -0
- package/dist/cjs/RangeSlider/RangeSlider.js +230 -0
- package/dist/cjs/RangeSlider/index.js +11 -0
- package/dist/cjs/ScreenReader/ScreenReader.js +38 -0
- package/dist/cjs/ScreenReader/index.js +11 -0
- package/dist/cjs/Scrim/Scrim.js +48 -0
- package/dist/cjs/Scrim/index.js +15 -0
- package/dist/cjs/Section/Section.js +56 -0
- package/dist/cjs/Section/index.js +11 -0
- package/dist/cjs/SegmentedControl/SegmentedControl.js +118 -0
- package/dist/cjs/SegmentedControl/index.js +11 -0
- package/dist/cjs/SegmentedTabs/SegmentedTabs.js +119 -0
- package/dist/cjs/SegmentedTabs/index.js +11 -0
- package/dist/cjs/Select/Context.js +10 -0
- package/dist/cjs/Select/Inline.js +52 -0
- package/dist/cjs/Select/Option.js +103 -0
- package/dist/cjs/Select/OptionGroup.js +32 -0
- package/dist/cjs/Select/Select.js +551 -0
- package/dist/cjs/Select/Select.test.js +74 -0
- package/dist/cjs/Select/Value.js +28 -0
- package/dist/cjs/Select/constants.js +10 -0
- package/dist/cjs/Select/index.js +26 -0
- package/dist/cjs/Select/utils.js +129 -0
- package/dist/cjs/Sidebar/Sidebar.js +56 -0
- package/dist/cjs/Sidebar/SidebarItem.js +53 -0
- package/dist/cjs/Sidebar/SidebarList.js +27 -0
- package/dist/cjs/Sidebar/index.js +11 -0
- package/dist/cjs/Sortable/SortableEmpty.js +42 -0
- package/dist/cjs/Sortable/SortableItem.js +57 -0
- package/dist/cjs/Sortable/SortableList.js +106 -0
- package/dist/cjs/Sortable/SortableManager.js +31 -0
- package/dist/cjs/Sortable/constants.js +6 -0
- package/dist/cjs/Sortable/index.js +57 -0
- package/dist/cjs/Spinner/Spinner.js +79 -0
- package/dist/cjs/Spinner/index.js +15 -0
- package/dist/cjs/StackView/StackView.js +106 -0
- package/dist/cjs/StackView/index.js +15 -0
- package/dist/cjs/StepperField/StepperField.js +81 -0
- package/dist/cjs/StepperField/index.js +11 -0
- package/dist/cjs/StepperProgress/Context.js +10 -0
- package/dist/cjs/StepperProgress/Step.js +87 -0
- package/dist/cjs/StepperProgress/StepperProgress.js +49 -0
- package/dist/cjs/StepperProgress/index.js +14 -0
- package/dist/cjs/Summary/Summary.js +41 -0
- package/dist/cjs/Summary/index.js +11 -0
- package/dist/cjs/Tab/Tab.js +77 -0
- package/dist/cjs/Tab/index.js +15 -0
- package/dist/cjs/Table/AnimateScroll.js +88 -0
- package/dist/cjs/Table/AvatarCell.js +44 -0
- package/dist/cjs/Table/Body.js +33 -0
- package/dist/cjs/Table/BodyCell.js +24 -0
- package/dist/cjs/Table/BodyInnerCell.js +34 -0
- package/dist/cjs/Table/BodyRow.js +70 -0
- package/dist/cjs/Table/CheckboxCell.js +40 -0
- package/dist/cjs/Table/ColumnPicker.js +73 -0
- package/dist/cjs/Table/DateCell.js +21 -0
- package/dist/cjs/Table/DragCell.js +47 -0
- package/dist/cjs/Table/DragHandle.js +22 -0
- package/dist/cjs/Table/Header.js +44 -0
- package/dist/cjs/Table/HeaderCell.js +26 -0
- package/dist/cjs/Table/HeaderInnerCell.js +30 -0
- package/dist/cjs/Table/HeaderRow.js +24 -0
- package/dist/cjs/Table/NavigationArrow.js +78 -0
- package/dist/cjs/Table/ScrollShadow.js +47 -0
- package/dist/cjs/Table/SubRowToggleCell.js +47 -0
- package/dist/cjs/Table/Table.js +697 -0
- package/dist/cjs/Table/TableBase.js +180 -0
- package/dist/cjs/Table/TableContainer.js +25 -0
- package/dist/cjs/Table/TableWrapper.js +22 -0
- package/dist/cjs/Table/index.js +11 -0
- package/dist/cjs/Tabs/Tab.js +63 -0
- package/dist/cjs/Tabs/TabList.js +77 -0
- package/dist/cjs/Tabs/TabPanel.js +32 -0
- package/dist/cjs/Tabs/TabPanels.js +36 -0
- package/dist/cjs/Tabs/Tabs.js +106 -0
- package/dist/cjs/Tabs/index.js +23 -0
- package/dist/cjs/Text/Text.js +101 -0
- package/dist/cjs/Text/index.js +15 -0
- package/dist/cjs/TextArea/TextArea.js +24 -0
- package/dist/cjs/TextArea/index.js +11 -0
- package/dist/cjs/ThemeProvider/ThemeProvider.js +127 -0
- package/dist/cjs/ThemeProvider/index.js +15 -0
- package/dist/cjs/ThemeProvider/styles.js +52 -0
- package/dist/cjs/TileView/TileView.js +66 -0
- package/dist/cjs/TileView/index.js +15 -0
- package/dist/cjs/TimeField/TimeField.js +333 -0
- package/dist/cjs/TimeField/TimeField.test.js +442 -0
- package/dist/cjs/TimeField/index.js +11 -0
- package/dist/cjs/TimeField/utils.js +61 -0
- package/dist/cjs/ToggleSwitch/ToggleSwitch.js +101 -0
- package/dist/cjs/ToggleSwitch/ToggleSwitch.test.js +148 -0
- package/dist/cjs/ToggleSwitch/index.js +15 -0
- package/dist/cjs/TokenInput/DefaultToken.js +42 -0
- package/dist/cjs/TokenInput/TokenInput.js +257 -0
- package/dist/cjs/TokenInput/default-renders.js +54 -0
- package/dist/cjs/TokenInput/index.js +11 -0
- package/dist/cjs/Toolbar/Action.js +27 -0
- package/dist/cjs/Toolbar/Toolbar.js +113 -0
- package/dist/cjs/Toolbar/index.js +11 -0
- package/dist/cjs/Tooltip/Tooltip.js +214 -0
- package/dist/cjs/Tooltip/Tooltip.test.js +178 -0
- package/dist/cjs/Tooltip/index.js +11 -0
- package/dist/cjs/VariantProvider/VariantProvider.js +31 -0
- package/dist/cjs/VariantProvider/index.js +9 -0
- package/dist/cjs/Wizard/Step.js +33 -0
- package/dist/cjs/Wizard/Wizard.js +189 -0
- package/dist/cjs/Wizard/WizardContext.js +10 -0
- package/dist/cjs/Wizard/index.js +14 -0
- package/dist/cjs/WrapView/WrapView.js +37 -0
- package/dist/cjs/WrapView/index.js +15 -0
- package/dist/cjs/designTokens/index.js +13 -0
- package/dist/cjs/hooks/index.js +32 -0
- package/dist/cjs/hooks/use-accessibility-violation.js +79 -0
- package/dist/cjs/hooks/use-document-event.js +38 -0
- package/dist/cjs/hooks/use-focus.js +29 -0
- package/dist/cjs/hooks/use-hover.js +24 -0
- package/dist/cjs/hooks/use-id.js +26 -0
- package/dist/cjs/hooks/use-keyboard-shortcuts.js +38 -0
- package/dist/cjs/hooks/use-measure.js +125 -0
- package/dist/cjs/hooks/use-roving-index.js +58 -0
- package/dist/cjs/hooks/useConstant.js +23 -0
- package/dist/cjs/index.d.js +411 -0
- package/dist/cjs/index.js +344 -0
- package/dist/cjs/server.js +27 -0
- package/dist/cjs/system/box-sizes.js +64 -0
- package/dist/cjs/system/button-themes.js +286 -0
- package/dist/cjs/system/colors/colors.js +127 -0
- package/dist/cjs/system/colors/index.js +18 -0
- package/dist/cjs/system/colors/utils.js +213 -0
- package/dist/cjs/system/css.js +14 -0
- package/dist/cjs/system/cxs.js +106 -0
- package/dist/cjs/system/default-theme.js +81 -0
- package/dist/cjs/system/index.js +90 -0
- package/dist/cjs/system/parse-styles.js +61 -0
- package/dist/cjs/system/plugins/border.js +93 -0
- package/dist/cjs/system/plugins/color.js +49 -0
- package/dist/cjs/system/plugins/elevation.js +22 -0
- package/dist/cjs/system/plugins/flex.js +84 -0
- package/dist/cjs/system/plugins/grid.js +52 -0
- package/dist/cjs/system/plugins/index.js +33 -0
- package/dist/cjs/system/plugins/misc.js +34 -0
- package/dist/cjs/system/plugins/position.js +49 -0
- package/dist/cjs/system/plugins/size.js +39 -0
- package/dist/cjs/system/plugins/space.js +112 -0
- package/dist/cjs/system/plugins/stroke.js +48 -0
- package/dist/cjs/system/plugins/transform.js +46 -0
- package/dist/cjs/system/plugins/typography.js +23 -0
- package/dist/cjs/system/split-styles.js +119 -0
- package/dist/cjs/system/style-names.js +14 -0
- package/dist/cjs/system/use-css.js +21 -0
- package/dist/cjs/system/utils.js +186 -0
- package/dist/cjs/utils.js +870 -0
- package/dist/cjs/vendor/react-measure/Measure.js +160 -0
- package/dist/cjs/vendor/react-measure/Viewport.js +172 -0
- package/dist/cjs/vendor/react-measure/index.js +14 -0
- package/dist/cjs/vendor/react-measure/utils.js +89 -0
- package/dist/esm/ActionsDropdown/ActionsDropdown.js +112 -0
- package/dist/esm/ActionsDropdown/index.js +2 -0
- package/dist/esm/Alert/Alert.js +22 -0
- package/dist/esm/Alert/Alert.test.js +13 -0
- package/dist/esm/Alert/index.js +2 -0
- package/dist/esm/Avatar/Avatar.js +46 -0
- package/dist/esm/Avatar/index.js +2 -0
- package/dist/esm/Badge/Badge.js +136 -0
- package/dist/esm/Badge/Status.js +73 -0
- package/dist/esm/Badge/index.js +4 -0
- package/dist/esm/Box/Box.js +33 -0
- package/dist/esm/Box/index.js +2 -0
- package/dist/esm/Button/Button.js +302 -0
- package/dist/esm/Button/Button.test.js +170 -0
- package/dist/esm/Button/Input.js +163 -0
- package/dist/esm/Button/index.js +2 -0
- package/dist/esm/Calendar/Calendar.js +356 -0
- package/dist/esm/Calendar/Day.js +89 -0
- package/dist/esm/Calendar/index.js +2 -0
- package/dist/esm/Calendar/utils.js +80 -0
- package/dist/esm/Card/Card.js +36 -0
- package/dist/esm/Card/Section.js +15 -0
- package/dist/esm/Card/index.js +2 -0
- package/dist/esm/Checkbox/Checkbox.js +188 -0
- package/dist/esm/Checkbox/index.js +2 -0
- package/dist/esm/CheckboxCard/CheckboxCard.js +60 -0
- package/dist/esm/CheckboxCard/index.js +2 -0
- package/dist/esm/CheckboxGroup/CheckboxGroup.js +58 -0
- package/dist/esm/CheckboxGroup/CheckboxGroupContext.js +3 -0
- package/dist/esm/CheckboxGroup/index.js +2 -0
- package/dist/esm/ChurchCenterStatus/ChurchCenterStatus.js +139 -0
- package/dist/esm/ChurchCenterStatus/index.js +2 -0
- package/dist/esm/Collapse/Collapse.js +115 -0
- package/dist/esm/Collapse/Collapse.test.js +53 -0
- package/dist/esm/Collapse/index.js +2 -0
- package/dist/esm/ColumnView/ColumnView.js +51 -0
- package/dist/esm/ColumnView/index.js +2 -0
- package/dist/esm/Combobox/Combobox.js +23 -0
- package/dist/esm/Combobox/ComboboxInput.js +125 -0
- package/dist/esm/Combobox/ComboboxItem.js +44 -0
- package/dist/esm/Combobox/ComboboxItems.js +71 -0
- package/dist/esm/Combobox/ComboboxPopover.js +257 -0
- package/dist/esm/Combobox/index.js +10 -0
- package/dist/esm/DataTable/DataTable.js +248 -0
- package/dist/esm/DataTable/components/BodyRow.js +49 -0
- package/dist/esm/DataTable/components/BodyRows.js +114 -0
- package/dist/esm/DataTable/components/BodySubRows.js +90 -0
- package/dist/esm/DataTable/components/CheckboxCell.js +104 -0
- package/dist/esm/DataTable/components/ColumnPicker.js +63 -0
- package/dist/esm/DataTable/components/HeaderCell.js +75 -0
- package/dist/esm/DataTable/components/Icon.js +61 -0
- package/dist/esm/DataTable/components/index.js +4 -0
- package/dist/esm/DataTable/hooks/index.js +6 -0
- package/dist/esm/DataTable/hooks/useCollapsibleRows.js +107 -0
- package/dist/esm/DataTable/hooks/useColumnSort.js +85 -0
- package/dist/esm/DataTable/hooks/useColumnWidths.js +104 -0
- package/dist/esm/DataTable/hooks/useHoverFocus.js +27 -0
- package/dist/esm/DataTable/hooks/useRefManager.js +22 -0
- package/dist/esm/DataTable/hooks/useScrollShadows.js +94 -0
- package/dist/esm/DataTable/hooks/useScrollSync.js +46 -0
- package/dist/esm/DataTable/hooks/useVariants.js +9 -0
- package/dist/esm/DataTable/index.js +14 -0
- package/dist/esm/DataTable/utils/getCell.js +18 -0
- package/dist/esm/DataTable/utils/getParsedColumns.js +144 -0
- package/dist/esm/DataTable/utils/getRowLinkProps.js +10 -0
- package/dist/esm/DataTable/utils/index.js +4 -0
- package/dist/esm/DataTable/utils/variants.js +167 -0
- package/dist/esm/DateField/DateField.js +163 -0
- package/dist/esm/DateField/index.js +2 -0
- package/dist/esm/DateField/parse.js +93 -0
- package/dist/esm/DateField/parse.test.js +42 -0
- package/dist/esm/DateField/useArrowKeysToNavigateCalendar.js +40 -0
- package/dist/esm/DateField/useEditableDate.js +62 -0
- package/dist/esm/Divider/Divider.js +35 -0
- package/dist/esm/Divider/index.js +2 -0
- package/dist/esm/DragDrop/DragDrop.js +218 -0
- package/dist/esm/DragDrop/index.js +2 -0
- package/dist/esm/Drawer/Drawer.js +89 -0
- package/dist/esm/Drawer/index.js +2 -0
- package/dist/esm/Dropdown/Dropdown.js +301 -0
- package/dist/esm/Dropdown/Dropdown.test.js +167 -0
- package/dist/esm/Dropdown/Item.js +58 -0
- package/dist/esm/Dropdown/Link.js +68 -0
- package/dist/esm/Dropdown/index.js +2 -0
- package/dist/esm/EditActions/EditActions.js +84 -0
- package/dist/esm/EditActions/index.js +2 -0
- package/dist/esm/Field/Field.js +88 -0
- package/dist/esm/Field/index.js +2 -0
- package/dist/esm/FieldSet/FieldSet.js +48 -0
- package/dist/esm/FieldSet/index.js +2 -0
- package/dist/esm/FilterLayout/FilterLayout.js +86 -0
- package/dist/esm/FilterLayout/index.js +2 -0
- package/dist/esm/FocusGroup/FocusGroup.js +121 -0
- package/dist/esm/FocusGroup/index.js +2 -0
- package/dist/esm/Form/Form.js +184 -0
- package/dist/esm/Form/index.js +2 -0
- package/dist/esm/GridView/GridView.js +99 -0
- package/dist/esm/GridView/index.js +2 -0
- package/dist/esm/Group/Group.js +43 -0
- package/dist/esm/Group/index.js +2 -0
- package/dist/esm/Heading/Heading.js +22 -0
- package/dist/esm/Heading/index.js +2 -0
- package/dist/esm/HeadingUppercase/HeadingUppercase.js +24 -0
- package/dist/esm/HeadingUppercase/index.js +2 -0
- package/dist/esm/HelperDrawer/HelperDrawer.js +78 -0
- package/dist/esm/HelperDrawer/index.js +2 -0
- package/dist/esm/Highlight/Highlight.js +40 -0
- package/dist/esm/Highlight/index.js +2 -0
- package/dist/esm/Highlight/utils.js +46 -0
- package/dist/esm/Icon/Icon.js +47 -0
- package/dist/esm/Icon/Path.js +23 -0
- package/dist/esm/Icon/Status.js +46 -0
- package/dist/esm/Icon/index.js +6 -0
- package/dist/esm/Input/Inline.js +50 -0
- package/dist/esm/Input/Input.js +118 -0
- package/dist/esm/Input/InputBox.js +340 -0
- package/dist/esm/Input/InputContext.js +3 -0
- package/dist/esm/Input/InputField.js +281 -0
- package/dist/esm/Input/InputLabel.js +56 -0
- package/dist/esm/Input/index.js +10 -0
- package/dist/esm/Input/utils.js +5 -0
- package/dist/esm/ItemList/ItemList.js +275 -0
- package/dist/esm/ItemList/ItemListContext.js +3 -0
- package/dist/esm/ItemList/ItemListController.js +56 -0
- package/dist/esm/ItemList/ItemListItem.js +91 -0
- package/dist/esm/ItemList/index.js +4 -0
- package/dist/esm/ItemList/utils.js +55 -0
- package/dist/esm/Link/Inline.js +40 -0
- package/dist/esm/Link/Link.js +66 -0
- package/dist/esm/Link/index.js +4 -0
- package/dist/esm/LinkList/LinkList.js +31 -0
- package/dist/esm/LinkList/index.js +2 -0
- package/dist/esm/List/List.js +51 -0
- package/dist/esm/List/ListItem.js +39 -0
- package/dist/esm/List/index.js +2 -0
- package/dist/esm/Logo/Logo.js +51 -0
- package/dist/esm/Logo/index.js +2 -0
- package/dist/esm/Menu/Heading.js +18 -0
- package/dist/esm/Menu/Item.js +100 -0
- package/dist/esm/Menu/Menu.js +18 -0
- package/dist/esm/Menu/index.js +2 -0
- package/dist/esm/Modal/Modal.js +59 -0
- package/dist/esm/Modal/Modal.test.js +122 -0
- package/dist/esm/Modal/index.js +2 -0
- package/dist/esm/NumberField/NumberField.js +323 -0
- package/dist/esm/NumberField/NumberField.test.js +206 -0
- package/dist/esm/NumberField/index.js +2 -0
- package/dist/esm/Page/PageActions.js +17 -0
- package/dist/esm/Page/PageBody.js +43 -0
- package/dist/esm/Page/PageButton.js +13 -0
- package/dist/esm/Page/PageDropdown.js +14 -0
- package/dist/esm/Page/PageHeader.js +33 -0
- package/dist/esm/Page/PageTab.js +19 -0
- package/dist/esm/Page/PageTabList.js +11 -0
- package/dist/esm/Page/PageTitle.js +15 -0
- package/dist/esm/Page/PageToolbar.js +36 -0
- package/dist/esm/Page/index.js +10 -0
- package/dist/esm/PagerView/PagerView.js +209 -0
- package/dist/esm/PagerView/index.js +2 -0
- package/dist/esm/Pagination/Pagination.js +162 -0
- package/dist/esm/Pagination/index.js +2 -0
- package/dist/esm/Popover/Popover.js +207 -0
- package/dist/esm/Popover/Popover.test.js +51 -0
- package/dist/esm/Popover/index.js +2 -0
- package/dist/esm/Popover/rewireTabOrder.js +102 -0
- package/dist/esm/Popover/utils.js +63 -0
- package/dist/esm/Portal/Portal.js +169 -0
- package/dist/esm/Portal/index.js +2 -0
- package/dist/esm/Progress/Progress.js +39 -0
- package/dist/esm/Progress/index.js +2 -0
- package/dist/esm/Radio/Radio.js +140 -0
- package/dist/esm/Radio/index.js +2 -0
- package/dist/esm/RangeSlider/RangeSlider.js +214 -0
- package/dist/esm/RangeSlider/index.js +2 -0
- package/dist/esm/ScreenReader/ScreenReader.js +28 -0
- package/dist/esm/ScreenReader/index.js +2 -0
- package/dist/esm/Scrim/Scrim.js +35 -0
- package/dist/esm/Scrim/index.js +2 -0
- package/dist/esm/Section/Section.js +42 -0
- package/dist/esm/Section/index.js +2 -0
- package/dist/esm/SegmentedControl/SegmentedControl.js +105 -0
- package/dist/esm/SegmentedControl/index.js +2 -0
- package/dist/esm/SegmentedTabs/SegmentedTabs.js +105 -0
- package/dist/esm/SegmentedTabs/index.js +2 -0
- package/dist/esm/Select/Context.js +3 -0
- package/dist/esm/Select/Inline.js +42 -0
- package/dist/esm/Select/Option.js +88 -0
- package/dist/esm/Select/OptionGroup.js +23 -0
- package/dist/esm/Select/Select.js +544 -0
- package/dist/esm/Select/Select.test.js +59 -0
- package/dist/esm/Select/Value.js +18 -0
- package/dist/esm/Select/constants.js +3 -0
- package/dist/esm/Select/index.js +12 -0
- package/dist/esm/Select/utils.js +106 -0
- package/dist/esm/Sidebar/Sidebar.js +41 -0
- package/dist/esm/Sidebar/SidebarItem.js +44 -0
- package/dist/esm/Sidebar/SidebarList.js +17 -0
- package/dist/esm/Sidebar/index.js +2 -0
- package/dist/esm/Sortable/SortableEmpty.js +31 -0
- package/dist/esm/Sortable/SortableItem.js +43 -0
- package/dist/esm/Sortable/SortableList.js +85 -0
- package/dist/esm/Sortable/SortableManager.js +19 -0
- package/dist/esm/Sortable/constants.js +1 -0
- package/dist/esm/Sortable/index.js +47 -0
- package/dist/esm/Spinner/Spinner.js +65 -0
- package/dist/esm/Spinner/index.js +2 -0
- package/dist/esm/StackView/StackView.js +88 -0
- package/dist/esm/StackView/index.js +2 -0
- package/dist/esm/StepperField/StepperField.js +67 -0
- package/dist/esm/StepperField/index.js +2 -0
- package/dist/esm/StepperProgress/Context.js +3 -0
- package/dist/esm/StepperProgress/Step.js +74 -0
- package/dist/esm/StepperProgress/StepperProgress.js +34 -0
- package/dist/esm/StepperProgress/index.js +4 -0
- package/dist/esm/Summary/Summary.js +29 -0
- package/dist/esm/Summary/index.js +2 -0
- package/dist/esm/Tab/Tab.js +66 -0
- package/dist/esm/Tab/index.js +2 -0
- package/dist/esm/Table/AnimateScroll.js +83 -0
- package/dist/esm/Table/AvatarCell.js +31 -0
- package/dist/esm/Table/Body.js +23 -0
- package/dist/esm/Table/BodyCell.js +14 -0
- package/dist/esm/Table/BodyInnerCell.js +23 -0
- package/dist/esm/Table/BodyRow.js +56 -0
- package/dist/esm/Table/CheckboxCell.js +29 -0
- package/dist/esm/Table/ColumnPicker.js +61 -0
- package/dist/esm/Table/DateCell.js +11 -0
- package/dist/esm/Table/DragCell.js +37 -0
- package/dist/esm/Table/DragHandle.js +15 -0
- package/dist/esm/Table/Header.js +34 -0
- package/dist/esm/Table/HeaderCell.js +16 -0
- package/dist/esm/Table/HeaderInnerCell.js +20 -0
- package/dist/esm/Table/HeaderRow.js +14 -0
- package/dist/esm/Table/NavigationArrow.js +66 -0
- package/dist/esm/Table/ScrollShadow.js +37 -0
- package/dist/esm/Table/SubRowToggleCell.js +36 -0
- package/dist/esm/Table/Table.js +679 -0
- package/dist/esm/Table/TableBase.js +162 -0
- package/dist/esm/Table/TableContainer.js +15 -0
- package/dist/esm/Table/TableWrapper.js +12 -0
- package/dist/esm/Table/index.js +2 -0
- package/dist/esm/Tabs/Tab.js +50 -0
- package/dist/esm/Tabs/TabList.js +61 -0
- package/dist/esm/Tabs/TabPanel.js +20 -0
- package/dist/esm/Tabs/TabPanels.js +21 -0
- package/dist/esm/Tabs/Tabs.js +89 -0
- package/dist/esm/Tabs/index.js +10 -0
- package/dist/esm/Text/Text.js +87 -0
- package/dist/esm/Text/index.js +2 -0
- package/dist/esm/TextArea/TextArea.js +14 -0
- package/dist/esm/TextArea/index.js +2 -0
- package/dist/esm/ThemeProvider/ThemeProvider.js +101 -0
- package/dist/esm/ThemeProvider/index.js +2 -0
- package/dist/esm/ThemeProvider/styles.js +39 -0
- package/dist/esm/TileView/TileView.js +54 -0
- package/dist/esm/TileView/index.js +2 -0
- package/dist/esm/TimeField/TimeField.js +316 -0
- package/dist/esm/TimeField/TimeField.test.js +384 -0
- package/dist/esm/TimeField/index.js +2 -0
- package/dist/esm/TimeField/utils.js +40 -0
- package/dist/esm/ToggleSwitch/ToggleSwitch.js +82 -0
- package/dist/esm/ToggleSwitch/ToggleSwitch.test.js +136 -0
- package/dist/esm/ToggleSwitch/index.js +2 -0
- package/dist/esm/TokenInput/DefaultToken.js +31 -0
- package/dist/esm/TokenInput/TokenInput.js +251 -0
- package/dist/esm/TokenInput/default-renders.js +42 -0
- package/dist/esm/TokenInput/index.js +2 -0
- package/dist/esm/Toolbar/Action.js +17 -0
- package/dist/esm/Toolbar/Toolbar.js +99 -0
- package/dist/esm/Toolbar/index.js +2 -0
- package/dist/esm/Tooltip/Tooltip.js +196 -0
- package/dist/esm/Tooltip/Tooltip.test.js +160 -0
- package/dist/esm/Tooltip/index.js +2 -0
- package/dist/esm/VariantProvider/VariantProvider.js +18 -0
- package/dist/esm/VariantProvider/index.js +1 -0
- package/dist/esm/Wizard/Step.js +23 -0
- package/dist/esm/Wizard/Wizard.js +170 -0
- package/dist/esm/Wizard/WizardContext.js +3 -0
- package/dist/esm/Wizard/index.js +4 -0
- package/dist/esm/WrapView/WrapView.js +26 -0
- package/dist/esm/WrapView/index.js +2 -0
- package/dist/esm/designTokens/index.js +8 -0
- package/dist/esm/hooks/index.js +7 -0
- package/dist/esm/hooks/use-accessibility-violation.js +69 -0
- package/dist/esm/hooks/use-document-event.js +33 -0
- package/dist/esm/hooks/use-focus.js +24 -0
- package/dist/esm/hooks/use-hover.js +18 -0
- package/dist/esm/hooks/use-id.js +20 -0
- package/dist/esm/hooks/use-keyboard-shortcuts.js +29 -0
- package/dist/esm/hooks/use-measure.js +113 -0
- package/dist/esm/hooks/use-roving-index.js +53 -0
- package/dist/esm/hooks/useConstant.js +15 -0
- package/dist/esm/index.d.js +113 -0
- package/dist/esm/index.js +87 -0
- package/dist/esm/server.js +13 -0
- package/dist/esm/system/box-sizes.js +57 -0
- package/dist/esm/system/button-themes.js +281 -0
- package/dist/esm/system/colors/colors.js +117 -0
- package/dist/esm/system/colors/index.js +2 -0
- package/dist/esm/system/colors/utils.js +184 -0
- package/dist/esm/system/css.js +6 -0
- package/dist/esm/system/cxs.js +101 -0
- package/dist/esm/system/default-theme.js +68 -0
- package/dist/esm/system/index.js +17 -0
- package/dist/esm/system/parse-styles.js +47 -0
- package/dist/esm/system/plugins/border.js +85 -0
- package/dist/esm/system/plugins/color.js +40 -0
- package/dist/esm/system/plugins/elevation.js +14 -0
- package/dist/esm/system/plugins/flex.js +75 -0
- package/dist/esm/system/plugins/grid.js +44 -0
- package/dist/esm/system/plugins/index.js +13 -0
- package/dist/esm/system/plugins/misc.js +25 -0
- package/dist/esm/system/plugins/position.js +40 -0
- package/dist/esm/system/plugins/size.js +31 -0
- package/dist/esm/system/plugins/space.js +103 -0
- package/dist/esm/system/plugins/stroke.js +38 -0
- package/dist/esm/system/plugins/transform.js +39 -0
- package/dist/esm/system/plugins/typography.js +15 -0
- package/dist/esm/system/split-styles.js +110 -0
- package/dist/esm/system/style-names.js +5 -0
- package/dist/esm/system/use-css.js +10 -0
- package/dist/esm/system/utils.js +146 -0
- package/dist/esm/utils.js +824 -0
- package/dist/esm/vendor/react-measure/Measure.js +158 -0
- package/dist/esm/vendor/react-measure/Viewport.js +169 -0
- package/dist/esm/vendor/react-measure/index.js +2 -0
- package/dist/esm/vendor/react-measure/utils.js +68 -0
- package/dist/types/ActionsDropdown/ActionsDropdown.d.ts +35 -0
- package/dist/types/ActionsDropdown/index.d.ts +2 -0
- package/dist/types/Alert/Alert.d.ts +13 -0
- package/dist/types/Alert/Alert.test.d.ts +1 -0
- package/dist/types/Alert/index.d.ts +2 -0
- package/dist/types/Avatar/Avatar.d.ts +19 -0
- package/dist/types/Badge/Status.d.ts +27 -0
- package/dist/types/Box/Box.d.ts +96 -0
- package/dist/types/Box/index.d.ts +2 -0
- package/dist/types/Button/Button.d.ts +140 -0
- package/dist/types/Button/Button.test.d.ts +1 -0
- package/dist/types/Button/Input.d.ts +30 -0
- package/dist/types/Button/index.d.ts +2 -0
- package/dist/types/Card/Card.d.ts +13 -0
- package/dist/types/Card/Section.d.ts +11 -0
- package/dist/types/Card/index.d.ts +2 -0
- package/dist/types/ChurchCenterStatus/ChurchCenterStatus.d.ts +58 -0
- package/dist/types/ChurchCenterStatus/index.d.ts +2 -0
- package/dist/types/Collapse/Collapse.test.d.ts +1 -0
- package/dist/types/DateField/DateField.d.ts +48 -0
- package/dist/types/DateField/parse.d.ts +17 -0
- package/dist/types/DateField/parse.test.d.ts +1 -0
- package/dist/types/DateField/useArrowKeysToNavigateCalendar.d.ts +9 -0
- package/dist/types/DateField/useEditableDate.d.ts +25 -0
- package/dist/types/Divider/Divider.d.ts +23 -0
- package/dist/types/Divider/index.d.ts +2 -0
- package/dist/types/Dropdown/Dropdown.test.d.ts +1 -0
- package/dist/types/FilterLayout/FilterLayout.d.ts +13 -0
- package/dist/types/FilterLayout/index.d.ts +2 -0
- package/dist/types/GridView/GridView.d.ts +41 -0
- package/dist/types/GridView/index.d.ts +2 -0
- package/dist/types/Group/Group.d.ts +24 -0
- package/dist/types/Group/index.d.ts +2 -0
- package/dist/types/Modal/Modal.d.ts +23 -0
- package/dist/types/Modal/Modal.test.d.ts +1 -0
- package/dist/types/NumberField/NumberField.d.ts +90 -0
- package/dist/types/NumberField/NumberField.test.d.ts +1 -0
- package/dist/types/Pagination/Pagination.d.ts +35 -0
- package/dist/types/Popover/Popover.d.ts +115 -0
- package/dist/types/Popover/Popover.test.d.ts +1 -0
- package/dist/types/Popover/index.d.ts +2 -0
- package/dist/types/Popover/rewireTabOrder.d.ts +2 -0
- package/dist/types/Popover/utils.d.ts +52 -0
- package/dist/types/Portal/Portal.d.ts +38 -0
- package/dist/types/Portal/index.d.ts +2 -0
- package/dist/types/Progress/Progress.d.ts +12 -0
- package/dist/types/Radio/Radio.d.ts +45 -0
- package/dist/types/Scrim/Scrim.d.ts +8 -0
- package/dist/types/Scrim/index.d.ts +2 -0
- package/dist/types/Select/Select.test.d.ts +1 -0
- package/dist/types/Spinner/Spinner.d.ts +25 -0
- package/dist/types/Spinner/index.d.ts +2 -0
- package/dist/types/StackView/StackView.d.ts +97 -0
- package/dist/types/StackView/index.d.ts +2 -0
- package/dist/types/Tab/Tab.d.ts +15 -0
- package/dist/types/Tab/index.d.ts +2 -0
- package/dist/types/Text/Text.d.ts +59 -0
- package/dist/types/Text/index.d.ts +2 -0
- package/dist/types/ThemeProvider/ThemeProvider.d.ts +26 -0
- package/dist/types/ThemeProvider/index.d.ts +2 -0
- package/dist/types/ThemeProvider/styles.d.ts +4 -0
- package/dist/types/TileView/TileView.d.ts +24 -0
- package/dist/types/TileView/index.d.ts +2 -0
- package/dist/types/TimeField/TimeField.d.ts +35 -0
- package/dist/types/TimeField/TimeField.test.d.ts +1 -0
- package/dist/types/ToggleSwitch/ToggleSwitch.d.ts +22 -0
- package/dist/types/ToggleSwitch/ToggleSwitch.test.d.ts +1 -0
- package/dist/types/ToggleSwitch/index.d.ts +2 -0
- package/dist/types/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/types/Wizard/Wizard.d.ts +63 -0
- package/dist/types/WrapView/WrapView.d.ts +10 -0
- package/dist/types/WrapView/index.d.ts +2 -0
- package/dist/types/designTokens/index.d.ts +8 -0
- package/dist/types/hooks/use-accessibility-violation.d.ts +34 -0
- package/dist/types/hooks/useConstant.d.ts +1 -0
- package/dist/types/index.d.ts +415 -0
- package/dist/types/system/default-theme.d.ts +3 -0
- package/dist/types/system/style-names.d.ts +8 -0
- package/package.json +11 -17
- package/src/ActionsDropdown/ActionsDropdown.mdx +69 -0
- package/src/ActionsDropdown/ActionsDropdown.tsx +180 -0
- package/src/ActionsDropdown/index.ts +2 -0
- package/src/Alert/Alert.mdx +15 -0
- package/src/Alert/Alert.test.tsx +9 -0
- package/src/Alert/Alert.tsx +41 -0
- package/src/Alert/index.ts +2 -0
- package/src/Avatar/Avatar.mdx +96 -0
- package/src/Avatar/Avatar.tsx +65 -0
- package/src/Avatar/index.js +2 -0
- package/src/Badge/Badge.js +209 -0
- package/src/Badge/Badge.mdx +63 -0
- package/src/Badge/Status.mdx +34 -0
- package/src/Badge/Status.tsx +90 -0
- package/src/Badge/index.js +4 -0
- package/src/Box/Box.mdx +15 -0
- package/src/Box/Box.tsx +72 -0
- package/src/Box/index.ts +2 -0
- package/src/Button/Button.mdx +133 -0
- package/src/Button/Button.test.tsx +101 -0
- package/src/Button/Button.tsx +430 -0
- package/src/Button/Input.mdx +170 -0
- package/src/Button/Input.tsx +192 -0
- package/src/Button/index.ts +2 -0
- package/src/Calendar/Calendar.js +473 -0
- package/src/Calendar/Calendar.mdx +129 -0
- package/src/Calendar/Day.js +162 -0
- package/src/Calendar/Day.mdx +6 -0
- package/src/Calendar/index.js +2 -0
- package/src/Calendar/utils.js +115 -0
- package/src/Card/Card.mdx +55 -0
- package/src/Card/Card.tsx +82 -0
- package/src/Card/Section.mdx +19 -0
- package/src/Card/Section.tsx +25 -0
- package/src/Card/index.ts +2 -0
- package/src/Checkbox/Checkbox.js +249 -0
- package/src/Checkbox/Checkbox.mdx +41 -0
- package/src/Checkbox/index.js +2 -0
- package/src/CheckboxCard/CheckboxCard.js +77 -0
- package/src/CheckboxCard/CheckboxCard.mdx +28 -0
- package/src/CheckboxCard/index.js +2 -0
- package/src/CheckboxGroup/CheckboxGroup.js +62 -0
- package/src/CheckboxGroup/CheckboxGroup.mdx +28 -0
- package/src/CheckboxGroup/CheckboxGroupContext.js +3 -0
- package/src/CheckboxGroup/index.js +2 -0
- package/src/ChurchCenterStatus/ChurchCenterStatus.mdx +124 -0
- package/src/ChurchCenterStatus/ChurchCenterStatus.tsx +200 -0
- package/src/ChurchCenterStatus/index.tsx +2 -0
- package/src/Collapse/Collapse.js +123 -0
- package/src/Collapse/Collapse.mdx +26 -0
- package/src/Collapse/Collapse.test.tsx +42 -0
- package/src/Collapse/index.js +2 -0
- package/src/ColumnView/ColumnView.js +65 -0
- package/src/ColumnView/ColumnView.mdx +40 -0
- package/src/ColumnView/index.js +2 -0
- package/src/Combobox/Combobox.js +35 -0
- package/src/Combobox/Combobox.mdx +179 -0
- package/src/Combobox/Combobox.test.js +90 -0
- package/src/Combobox/ComboboxInput.js +156 -0
- package/src/Combobox/ComboboxItem.js +33 -0
- package/src/Combobox/ComboboxItems.js +99 -0
- package/src/Combobox/ComboboxPopover.js +262 -0
- package/src/Combobox/index.js +10 -0
- package/src/DataTable/DataTable.js +572 -0
- package/src/DataTable/DataTable.mdx +513 -0
- package/src/DataTable/DataTable.test.js +95 -0
- package/src/DataTable/components/BodyRow.js +37 -0
- package/src/DataTable/components/BodyRows.js +125 -0
- package/src/DataTable/components/BodySubRows.js +99 -0
- package/src/DataTable/components/CheckboxCell.js +111 -0
- package/src/DataTable/components/ColumnPicker.js +51 -0
- package/src/DataTable/components/HeaderCell.js +83 -0
- package/src/DataTable/components/Icon.js +51 -0
- package/src/DataTable/components/index.js +4 -0
- package/src/DataTable/hooks/index.js +6 -0
- package/src/DataTable/hooks/useCollapsibleRows.js +97 -0
- package/src/DataTable/hooks/useColumnSort.js +62 -0
- package/src/DataTable/hooks/useColumnWidths.js +86 -0
- package/src/DataTable/hooks/useHoverFocus.js +16 -0
- package/src/DataTable/hooks/useRefManager.js +21 -0
- package/src/DataTable/hooks/useScrollShadows.js +82 -0
- package/src/DataTable/hooks/useScrollSync.js +55 -0
- package/src/DataTable/hooks/useVariants.js +13 -0
- package/src/DataTable/index.js +15 -0
- package/src/DataTable/utils/getCell.js +9 -0
- package/src/DataTable/utils/getParsedColumns.js +142 -0
- package/src/DataTable/utils/getRowLinkProps.js +5 -0
- package/src/DataTable/utils/index.js +4 -0
- package/src/DataTable/utils/variants.js +146 -0
- package/src/DateField/DateField.mdx +34 -0
- package/src/DateField/DateField.tsx +239 -0
- package/src/DateField/index.js +2 -0
- package/src/DateField/parse.test.ts +76 -0
- package/src/DateField/parse.ts +92 -0
- package/src/DateField/useArrowKeysToNavigateCalendar.ts +59 -0
- package/src/DateField/useEditableDate.ts +81 -0
- package/src/Divider/Divider.mdx +43 -0
- package/src/Divider/Divider.tsx +51 -0
- package/src/Divider/index.ts +2 -0
- package/src/DragDrop/DragDrop.js +216 -0
- package/src/DragDrop/DragDrop.mdx +218 -0
- package/src/DragDrop/index.js +2 -0
- package/src/Drawer/Drawer.js +96 -0
- package/src/Drawer/Drawer.mdx +51 -0
- package/src/Drawer/index.js +2 -0
- package/src/Dropdown/Dropdown.js +322 -0
- package/src/Dropdown/Dropdown.mdx +202 -0
- package/src/Dropdown/Dropdown.test.tsx +133 -0
- package/src/Dropdown/Item.js +39 -0
- package/src/Dropdown/Link.js +39 -0
- package/src/Dropdown/index.js +2 -0
- package/src/EditActions/EditActions.js +76 -0
- package/src/EditActions/EditActions.mdx +145 -0
- package/src/EditActions/index.js +2 -0
- package/src/Field/Field.js +149 -0
- package/src/Field/Field.mdx +39 -0
- package/src/Field/index.js +2 -0
- package/src/FieldSet/FieldSet.js +81 -0
- package/src/FieldSet/FieldSet.mdx +26 -0
- package/src/FieldSet/index.js +2 -0
- package/src/FilterLayout/FilterLayout.mdx +34 -0
- package/src/FilterLayout/FilterLayout.tsx +99 -0
- package/src/FilterLayout/index.ts +2 -0
- package/src/FocusGroup/FocusGroup.js +93 -0
- package/src/FocusGroup/index.js +2 -0
- package/src/Form/Form.js +189 -0
- package/src/Form/Form.mdx +154 -0
- package/src/Form/index.js +2 -0
- package/src/GridView/GridView.mdx +56 -0
- package/src/GridView/GridView.tsx +150 -0
- package/src/GridView/index.ts +2 -0
- package/src/Group/Group.mdx +79 -0
- package/src/Group/Group.tsx +63 -0
- package/src/Group/index.ts +2 -0
- package/src/Heading/Heading.js +31 -0
- package/src/Heading/Heading.mdx +18 -0
- package/src/Heading/index.js +2 -0
- package/src/HeadingUppercase/HeadingUppercase.js +30 -0
- package/src/HeadingUppercase/HeadingUppercase.mdx +10 -0
- package/src/HeadingUppercase/index.js +2 -0
- package/src/HelperDrawer/HelperDrawer.js +65 -0
- package/src/HelperDrawer/HelperDrawer.mdx +19 -0
- package/src/HelperDrawer/index.js +2 -0
- package/src/Highlight/Highlight.js +67 -0
- package/src/Highlight/Highlight.mdx +16 -0
- package/src/Highlight/index.js +2 -0
- package/src/Highlight/utils.js +51 -0
- package/src/Icon/Icon.js +64 -0
- package/src/Icon/Icon.mdx +112 -0
- package/src/Icon/Path.js +22 -0
- package/src/Icon/Path.mdx +34 -0
- package/src/Icon/Status.js +50 -0
- package/src/Icon/Status.mdx +17 -0
- package/src/Icon/index.js +6 -0
- package/src/Input/Inline.js +64 -0
- package/src/Input/Inline.mdx +45 -0
- package/src/Input/Input.js +222 -0
- package/src/Input/Input.mdx +29 -0
- package/src/Input/InputBox.js +448 -0
- package/src/Input/InputBox.mdx +16 -0
- package/src/Input/InputContext.js +3 -0
- package/src/Input/InputField.js +340 -0
- package/src/Input/InputField.mdx +11 -0
- package/src/Input/InputLabel.js +68 -0
- package/src/Input/InputLabel.mdx +21 -0
- package/src/Input/index.js +10 -0
- package/src/Input/utils.js +10 -0
- package/src/ItemList/ItemList.js +238 -0
- package/src/ItemList/ItemListContext.js +3 -0
- package/src/ItemList/ItemListController.js +34 -0
- package/src/ItemList/ItemListItem.js +88 -0
- package/src/ItemList/index.js +5 -0
- package/src/ItemList/utils.js +58 -0
- package/src/Link/Inline.js +32 -0
- package/src/Link/Link.js +83 -0
- package/src/Link/Link.mdx +32 -0
- package/src/Link/index.js +4 -0
- package/src/LinkList/LinkList.js +31 -0
- package/src/LinkList/LinkList.mdx +30 -0
- package/src/LinkList/index.js +2 -0
- package/src/List/List.js +75 -0
- package/src/List/List.mdx +42 -0
- package/src/List/ListItem.js +41 -0
- package/src/List/index.js +2 -0
- package/src/Logo/Logo.js +121 -0
- package/src/Logo/Logo.mdx +19 -0
- package/src/Logo/index.js +2 -0
- package/src/Menu/Heading.js +23 -0
- package/src/Menu/Heading.mdx +20 -0
- package/src/Menu/Item.js +126 -0
- package/src/Menu/Item.mdx +18 -0
- package/src/Menu/Menu.js +29 -0
- package/src/Menu/Menu.mdx +42 -0
- package/src/Menu/index.js +2 -0
- package/src/Modal/Modal.mdx +60 -0
- package/src/Modal/Modal.test.tsx +113 -0
- package/src/Modal/Modal.tsx +87 -0
- package/src/Modal/index.js +2 -0
- package/src/NumberField/NumberField.mdx +75 -0
- package/src/NumberField/NumberField.test.tsx +168 -0
- package/src/NumberField/NumberField.tsx +354 -0
- package/src/NumberField/index.js +2 -0
- package/src/Page/Page.mdx +164 -0
- package/src/Page/PageActions.js +20 -0
- package/src/Page/PageBody.js +44 -0
- package/src/Page/PageButton.js +11 -0
- package/src/Page/PageDropdown.js +11 -0
- package/src/Page/PageHeader.js +37 -0
- package/src/Page/PageTab.js +23 -0
- package/src/Page/PageTabList.js +15 -0
- package/src/Page/PageTitle.js +19 -0
- package/src/Page/PageToolbar.js +41 -0
- package/src/Page/index.js +21 -0
- package/src/PagerView/PagerView.js +223 -0
- package/src/PagerView/PagerView.mdx +200 -0
- package/src/PagerView/index.js +2 -0
- package/src/Pagination/Pagination.mdx +19 -0
- package/src/Pagination/Pagination.tsx +201 -0
- package/src/Pagination/index.js +2 -0
- package/src/Popover/Popover.mdx +66 -0
- package/src/Popover/Popover.test.tsx +62 -0
- package/src/Popover/Popover.tsx +271 -0
- package/src/Popover/index.ts +2 -0
- package/src/Popover/rewireTabOrder.ts +106 -0
- package/src/Popover/utils.ts +63 -0
- package/src/Portal/Portal.tsx +159 -0
- package/src/Portal/index.ts +2 -0
- package/src/Progress/Progress.mdx +23 -0
- package/src/Progress/Progress.tsx +49 -0
- package/src/Progress/index.js +2 -0
- package/src/Radio/Radio.mdx +38 -0
- package/src/Radio/Radio.tsx +192 -0
- package/src/Radio/index.js +2 -0
- package/src/RangeSlider/RangeSlider.js +253 -0
- package/src/RangeSlider/RangeSlider.mdx +56 -0
- package/src/RangeSlider/index.js +2 -0
- package/src/ScreenReader/ScreenReader.js +36 -0
- package/src/ScreenReader/ScreenReader.mdx +15 -0
- package/src/ScreenReader/index.js +2 -0
- package/src/Scrim/Scrim.mdx +32 -0
- package/src/Scrim/Scrim.tsx +40 -0
- package/src/Scrim/index.ts +2 -0
- package/src/Section/Section.js +55 -0
- package/src/Section/Section.mdx +103 -0
- package/src/Section/index.js +2 -0
- package/src/SegmentedControl/SegmentedControl.js +119 -0
- package/src/SegmentedControl/SegmentedControl.mdx +72 -0
- package/src/SegmentedControl/index.js +2 -0
- package/src/SegmentedTabs/SegmentedTabs.js +108 -0
- package/src/SegmentedTabs/SegmentedTabs.mdx +74 -0
- package/src/SegmentedTabs/index.js +2 -0
- package/src/Select/Context.js +3 -0
- package/src/Select/Inline.js +52 -0
- package/src/Select/Inline.mdx +27 -0
- package/src/Select/Option.js +84 -0
- package/src/Select/Option.mdx +30 -0
- package/src/Select/OptionGroup.js +19 -0
- package/src/Select/OptionGroup.mdx +25 -0
- package/src/Select/Select.js +621 -0
- package/src/Select/Select.mdx +81 -0
- package/src/Select/Select.test.tsx +58 -0
- package/src/Select/Value.js +22 -0
- package/src/Select/Value.mdx +67 -0
- package/src/Select/constants.js +3 -0
- package/src/Select/index.js +12 -0
- package/src/Select/utils.js +108 -0
- package/src/Sidebar/Sidebar.js +51 -0
- package/src/Sidebar/Sidebar.mdx +28 -0
- package/src/Sidebar/SidebarItem.js +34 -0
- package/src/Sidebar/SidebarList.js +20 -0
- package/src/Sidebar/index.js +2 -0
- package/src/Sortable/Sortable.mdx +100 -0
- package/src/Sortable/SortableEmpty.js +39 -0
- package/src/Sortable/SortableItem.js +57 -0
- package/src/Sortable/SortableList.js +115 -0
- package/src/Sortable/SortableManager.js +20 -0
- package/src/Sortable/constants.js +1 -0
- package/src/Sortable/index.js +32 -0
- package/src/Spinner/Spinner.mdx +50 -0
- package/src/Spinner/Spinner.tsx +101 -0
- package/src/Spinner/index.tsx +2 -0
- package/src/StackView/StackView.mdx +155 -0
- package/src/StackView/StackView.tsx +126 -0
- package/src/StackView/index.ts +2 -0
- package/src/StepperField/StepperField.js +77 -0
- package/src/StepperField/StepperField.mdx +21 -0
- package/src/StepperField/index.js +2 -0
- package/src/StepperProgress/Context.js +3 -0
- package/src/StepperProgress/Step.js +84 -0
- package/src/StepperProgress/StepperProgress.js +45 -0
- package/src/StepperProgress/StepperProgress.mdx +61 -0
- package/src/StepperProgress/index.js +4 -0
- package/src/Summary/Summary.js +42 -0
- package/src/Summary/Summary.mdx +26 -0
- package/src/Summary/index.js +2 -0
- package/src/Tab/Tab.mdx +22 -0
- package/src/Tab/Tab.tsx +80 -0
- package/src/Tab/index.ts +2 -0
- package/src/Table/AnimateScroll.js +58 -0
- package/src/Table/AvatarCell.js +28 -0
- package/src/Table/Body.js +24 -0
- package/src/Table/BodyCell.js +15 -0
- package/src/Table/BodyInnerCell.js +26 -0
- package/src/Table/BodyRow.js +55 -0
- package/src/Table/CheckboxCell.js +25 -0
- package/src/Table/ColumnPicker.js +51 -0
- package/src/Table/DateCell.js +12 -0
- package/src/Table/DragCell.js +29 -0
- package/src/Table/DragHandle.js +9 -0
- package/src/Table/Header.js +26 -0
- package/src/Table/HeaderCell.js +17 -0
- package/src/Table/HeaderInnerCell.js +18 -0
- package/src/Table/HeaderRow.js +15 -0
- package/src/Table/NavigationArrow.js +75 -0
- package/src/Table/ScrollShadow.js +33 -0
- package/src/Table/SubRowToggleCell.js +38 -0
- package/src/Table/Table.js +971 -0
- package/src/Table/Table.mdx +281 -0
- package/src/Table/TableBase.js +166 -0
- package/src/Table/TableContainer.js +16 -0
- package/src/Table/TableWrapper.js +7 -0
- package/src/Table/index.js +2 -0
- package/src/Tabs/Tab.js +51 -0
- package/src/Tabs/TabList.js +67 -0
- package/src/Tabs/TabPanel.js +22 -0
- package/src/Tabs/TabPanels.js +25 -0
- package/src/Tabs/Tabs.js +112 -0
- package/src/Tabs/Tabs.mdx +49 -0
- package/src/Tabs/index.js +10 -0
- package/src/Text/Text.mdx +20 -0
- package/src/Text/Text.tsx +136 -0
- package/src/Text/index.ts +2 -0
- package/src/TextArea/TextArea.js +23 -0
- package/src/TextArea/TextArea.mdx +13 -0
- package/src/TextArea/index.js +2 -0
- package/src/ThemeProvider/ThemeProvider.tsx +105 -0
- package/src/ThemeProvider/index.ts +2 -0
- package/src/ThemeProvider/styles.ts +96 -0
- package/src/TileView/TileView.mdx +56 -0
- package/src/TileView/TileView.tsx +72 -0
- package/src/TileView/index.ts +2 -0
- package/src/TimeField/TimeField.mdx +95 -0
- package/src/TimeField/TimeField.test.tsx +281 -0
- package/src/TimeField/TimeField.tsx +344 -0
- package/src/TimeField/index.js +2 -0
- package/src/TimeField/utils.js +44 -0
- package/src/ToggleSwitch/ToggleSwitch.mdx +56 -0
- package/src/ToggleSwitch/ToggleSwitch.test.tsx +133 -0
- package/src/ToggleSwitch/ToggleSwitch.tsx +106 -0
- package/src/ToggleSwitch/index.ts +2 -0
- package/src/TokenInput/DefaultToken.js +36 -0
- package/src/TokenInput/TokenInput.js +257 -0
- package/src/TokenInput/TokenInput.mdx +103 -0
- package/src/TokenInput/default-renders.js +47 -0
- package/src/TokenInput/index.js +2 -0
- package/src/Toolbar/Action.js +16 -0
- package/src/Toolbar/Toolbar.js +140 -0
- package/src/Toolbar/Toolbar.mdx +47 -0
- package/src/Toolbar/index.js +2 -0
- package/src/Tooltip/Tooltip.js +275 -0
- package/src/Tooltip/Tooltip.mdx +79 -0
- package/src/Tooltip/Tooltip.test.tsx +136 -0
- package/src/Tooltip/index.js +2 -0
- package/src/VariantProvider/VariantProvider.js +15 -0
- package/src/VariantProvider/index.js +1 -0
- package/src/Wizard/Step.js +11 -0
- package/src/Wizard/Wizard.mdx +105 -0
- package/src/Wizard/Wizard.tsx +231 -0
- package/src/Wizard/WizardContext.js +3 -0
- package/src/Wizard/index.js +4 -0
- package/src/WrapView/WrapView.mdx +73 -0
- package/src/WrapView/WrapView.tsx +33 -0
- package/src/WrapView/index.ts +2 -0
- package/src/designTokens/index.ts +8 -0
- package/src/hooks/__tests__/use-roving-index.js +58 -0
- package/src/hooks/index.js +7 -0
- package/src/hooks/use-accessibility-violation.tsx +61 -0
- package/src/hooks/use-document-event.js +34 -0
- package/src/hooks/use-focus.js +17 -0
- package/src/hooks/use-hover.js +12 -0
- package/src/hooks/use-id.js +19 -0
- package/src/hooks/use-keyboard-shortcuts.js +26 -0
- package/src/hooks/use-measure.js +120 -0
- package/src/hooks/use-roving-index.js +59 -0
- package/src/hooks/useConstant.ts +17 -0
- package/src/index.d.ts +415 -0
- package/src/index.js +95 -0
- package/src/server.js +16 -0
- package/src/system/README.md +120 -0
- package/src/system/box-sizes.js +54 -0
- package/src/system/button-themes.js +173 -0
- package/src/system/colors/colors.js +217 -0
- package/src/system/colors/index.js +8 -0
- package/src/system/colors/utils.js +191 -0
- package/src/system/css.js +3 -0
- package/src/system/cxs.js +82 -0
- package/src/system/cxs.test.js +126 -0
- package/src/system/default-theme.ts +53 -0
- package/src/system/index.js +36 -0
- package/src/system/parse-styles.js +49 -0
- package/src/system/plugins/border.js +100 -0
- package/src/system/plugins/color.js +60 -0
- package/src/system/plugins/elevation.js +8 -0
- package/src/system/plugins/flex.js +88 -0
- package/src/system/plugins/grid.js +41 -0
- package/src/system/plugins/index.js +27 -0
- package/src/system/plugins/misc.js +21 -0
- package/src/system/plugins/position.js +49 -0
- package/src/system/plugins/size.js +37 -0
- package/src/system/plugins/space.js +133 -0
- package/src/system/plugins/stroke.js +48 -0
- package/src/system/plugins/transform.js +27 -0
- package/src/system/plugins/typography.js +12 -0
- package/src/system/split-styles.js +109 -0
- package/src/system/style-names.ts +278 -0
- package/src/system/use-css.js +12 -0
- package/src/system/utils.js +140 -0
- package/src/utils.js +808 -0
- package/src/utils.test.js +29 -0
- package/src/vendor/react-measure/Measure.js +115 -0
- package/src/vendor/react-measure/Viewport.js +154 -0
- package/src/vendor/react-measure/index.js +2 -0
- package/src/vendor/react-measure/utils.js +89 -0
- package/dist/index.es.js +0 -26755
- package/dist/index.umd.js +0 -565
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
/**
|
|
4
|
+
* Render custom component or HTML element tag. (Defaults to a [InputField](/input.inputfield) component.). */
|
|
5
|
+
as?: any;
|
|
6
|
+
/**
|
|
7
|
+
* Add controls to increment/decrement the value
|
|
8
|
+
*/
|
|
9
|
+
hasControls?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* An array of keys to ignore when pushed.
|
|
12
|
+
* ex: ["ArrowUp", "ArrowDown"].
|
|
13
|
+
*/
|
|
14
|
+
ignoredKeys: string[];
|
|
15
|
+
/**
|
|
16
|
+
* Maximum number that can be entered.
|
|
17
|
+
*/
|
|
18
|
+
max: number;
|
|
19
|
+
/**
|
|
20
|
+
* Minimum number that can be entered.
|
|
21
|
+
*/
|
|
22
|
+
min: number;
|
|
23
|
+
/**
|
|
24
|
+
* Called when the input's onInput is called with a valid value
|
|
25
|
+
* or when the arrow keys are used to increment/decrement the value.
|
|
26
|
+
* Please note traditional onInput/onChange events are not supported
|
|
27
|
+
* since this component takes control of them.
|
|
28
|
+
*/
|
|
29
|
+
onChange: (value: string) => null;
|
|
30
|
+
/**
|
|
31
|
+
* Maps to the input's `onBlur` prop.
|
|
32
|
+
*/
|
|
33
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
34
|
+
onInput?: (event: React.FormEvent<HTMLInputElement>) => void;
|
|
35
|
+
onKeyDown?: Function;
|
|
36
|
+
/**
|
|
37
|
+
* The amount of 0s to pad the value with.
|
|
38
|
+
*/
|
|
39
|
+
pad: number;
|
|
40
|
+
/**
|
|
41
|
+
* Forces the input text to stay fully selected while interacting with it.
|
|
42
|
+
*/
|
|
43
|
+
highlightOnInteraction: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* String to display when value is empty.
|
|
46
|
+
*/
|
|
47
|
+
placeholder: string;
|
|
48
|
+
/**
|
|
49
|
+
* The amount to step up/down from the value when using the arrow keys
|
|
50
|
+
* defaults to `1`
|
|
51
|
+
*/
|
|
52
|
+
step: number;
|
|
53
|
+
/**
|
|
54
|
+
* The value of the input.
|
|
55
|
+
*/
|
|
56
|
+
value: number;
|
|
57
|
+
autoWidth: boolean;
|
|
58
|
+
moveFocusOnMax: boolean;
|
|
59
|
+
};
|
|
60
|
+
declare class NumberField extends Component<Props> {
|
|
61
|
+
static defaultProps: {
|
|
62
|
+
as: any;
|
|
63
|
+
hasControls: boolean;
|
|
64
|
+
ignoredKeys: any[];
|
|
65
|
+
min: number;
|
|
66
|
+
max: number;
|
|
67
|
+
step: number;
|
|
68
|
+
moveFocusOnMax: boolean;
|
|
69
|
+
};
|
|
70
|
+
firstTouch: boolean;
|
|
71
|
+
getParsedValues: (value: any) => {
|
|
72
|
+
value: number;
|
|
73
|
+
minValue: number;
|
|
74
|
+
maxValue: number;
|
|
75
|
+
};
|
|
76
|
+
clampValue: (valueToCheck: any) => number;
|
|
77
|
+
isValueValid: (valueToCheck: any) => boolean;
|
|
78
|
+
changeIfValid: (value: any) => void;
|
|
79
|
+
handleBlur: (event: any) => void;
|
|
80
|
+
stepValue: (baseValue: any, step: any) => void;
|
|
81
|
+
incrementValue: () => void;
|
|
82
|
+
decrementValue: () => void;
|
|
83
|
+
handleKeyDown: (event: any) => void;
|
|
84
|
+
handleInput: (event: any) => void;
|
|
85
|
+
getAutoWidthValue(value: any): any;
|
|
86
|
+
renderInput(restProps: any): React.CElement<any, React.Component<any, any, any>>;
|
|
87
|
+
renderInputWithControls(restProps: any): JSX.Element;
|
|
88
|
+
render(): JSX.Element;
|
|
89
|
+
}
|
|
90
|
+
export default NumberField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare type PaginationProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Change the color of the active page
|
|
4
|
+
*/
|
|
5
|
+
activeColor?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Accepts any valid [Button](/button) props.
|
|
8
|
+
*/
|
|
9
|
+
activePageLinkProps?: object;
|
|
10
|
+
/**
|
|
11
|
+
* Current visible page number
|
|
12
|
+
*/
|
|
13
|
+
currentPage: number;
|
|
14
|
+
/**
|
|
15
|
+
* Accepts any valid [Button](/button) props.
|
|
16
|
+
*/
|
|
17
|
+
navButtonProps?: object;
|
|
18
|
+
/**
|
|
19
|
+
* Callback when new page is requested
|
|
20
|
+
*/
|
|
21
|
+
onPageChange: (nextPage: number) => undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Accepts any valid [Button](/button) props.
|
|
24
|
+
*/
|
|
25
|
+
pageLinkProps?: object;
|
|
26
|
+
/**
|
|
27
|
+
* Total available pages
|
|
28
|
+
*/
|
|
29
|
+
totalPages: number;
|
|
30
|
+
/**
|
|
31
|
+
* Amount of visible pages
|
|
32
|
+
*/
|
|
33
|
+
visiblePages?: number;
|
|
34
|
+
};
|
|
35
|
+
export default function Pagination({ currentPage, onPageChange, visiblePages, totalPages, ...restProps }: PaginationProps): JSX.Element;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare type PopoverProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Controls the default component or tag being rendered.
|
|
5
|
+
*/
|
|
6
|
+
as?: any;
|
|
7
|
+
/**
|
|
8
|
+
* The element to attach the popover to. Clones the element's ref to calculate
|
|
9
|
+
* position relative to the optional `relativeTo` prop or the `renderTo` element.
|
|
10
|
+
*/
|
|
11
|
+
anchorElement: React.ReactElement | ((anchorCallbackProps: any) => null);
|
|
12
|
+
/**
|
|
13
|
+
* Attempts to keep popover in view clipping edges if too large.
|
|
14
|
+
*/
|
|
15
|
+
keepInView?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Locks external scrollbars when open.
|
|
18
|
+
*/
|
|
19
|
+
lockScrollWhileOpen?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Matches anchor and popover widths.
|
|
22
|
+
*/
|
|
23
|
+
matchWidths?: boolean | 'minimum';
|
|
24
|
+
/**
|
|
25
|
+
* Controls rendering of the popover.
|
|
26
|
+
*/
|
|
27
|
+
open: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Controls the space between the popover and its anchor.
|
|
30
|
+
*/
|
|
31
|
+
offset: number;
|
|
32
|
+
/**
|
|
33
|
+
* Called when the popover should close.
|
|
34
|
+
*/
|
|
35
|
+
onRequestClose?: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* Where to place the popover.
|
|
38
|
+
*/
|
|
39
|
+
placement?: 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end';
|
|
40
|
+
/**
|
|
41
|
+
* Where to place the popover relative to. Uses `renderTo` by default.
|
|
42
|
+
*/
|
|
43
|
+
relativeTo?: any;
|
|
44
|
+
/**
|
|
45
|
+
* Where to render the popover into. Accepts an HTML element or selector.
|
|
46
|
+
* Uses the closest fixed parent or `document.body` by default. This will only
|
|
47
|
+
* be computed once on initial render.
|
|
48
|
+
*/
|
|
49
|
+
renderTo?: HTMLElement | string;
|
|
50
|
+
/**
|
|
51
|
+
* Determines if the popover should flip or not when it overflows.
|
|
52
|
+
*/
|
|
53
|
+
shouldFlip?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Calls `as` `innerRef` to calculate popover's bounds.
|
|
56
|
+
*/
|
|
57
|
+
innerRef?: any;
|
|
58
|
+
} & React.HTMLAttributes<any>;
|
|
59
|
+
export declare const Popover: React.ForwardRefExoticComponent<{
|
|
60
|
+
/**
|
|
61
|
+
* Controls the default component or tag being rendered.
|
|
62
|
+
*/
|
|
63
|
+
as?: any;
|
|
64
|
+
/**
|
|
65
|
+
* The element to attach the popover to. Clones the element's ref to calculate
|
|
66
|
+
* position relative to the optional `relativeTo` prop or the `renderTo` element.
|
|
67
|
+
*/
|
|
68
|
+
anchorElement: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | ((anchorCallbackProps: any) => null);
|
|
69
|
+
/**
|
|
70
|
+
* Attempts to keep popover in view clipping edges if too large.
|
|
71
|
+
*/
|
|
72
|
+
keepInView?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Locks external scrollbars when open.
|
|
75
|
+
*/
|
|
76
|
+
lockScrollWhileOpen?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Matches anchor and popover widths.
|
|
79
|
+
*/
|
|
80
|
+
matchWidths?: boolean | 'minimum';
|
|
81
|
+
/**
|
|
82
|
+
* Controls rendering of the popover.
|
|
83
|
+
*/
|
|
84
|
+
open: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Controls the space between the popover and its anchor.
|
|
87
|
+
*/
|
|
88
|
+
offset: number;
|
|
89
|
+
/**
|
|
90
|
+
* Called when the popover should close.
|
|
91
|
+
*/
|
|
92
|
+
onRequestClose?: () => void;
|
|
93
|
+
/**
|
|
94
|
+
* Where to place the popover.
|
|
95
|
+
*/
|
|
96
|
+
placement?: 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end';
|
|
97
|
+
/**
|
|
98
|
+
* Where to place the popover relative to. Uses `renderTo` by default.
|
|
99
|
+
*/
|
|
100
|
+
relativeTo?: any;
|
|
101
|
+
/**
|
|
102
|
+
* Where to render the popover into. Accepts an HTML element or selector.
|
|
103
|
+
* Uses the closest fixed parent or `document.body` by default. This will only
|
|
104
|
+
* be computed once on initial render.
|
|
105
|
+
*/
|
|
106
|
+
renderTo?: HTMLElement | string;
|
|
107
|
+
/**
|
|
108
|
+
* Determines if the popover should flip or not when it overflows.
|
|
109
|
+
*/
|
|
110
|
+
shouldFlip?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Calls `as` `innerRef` to calculate popover's bounds.
|
|
113
|
+
*/
|
|
114
|
+
innerRef?: any;
|
|
115
|
+
} & React.HTMLAttributes<any> & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare function getModifiers({ matchWidths, offset, keepInView, shouldFlip }: {
|
|
2
|
+
matchWidths: any;
|
|
3
|
+
offset: any;
|
|
4
|
+
keepInView: any;
|
|
5
|
+
shouldFlip: any;
|
|
6
|
+
}): (import("@popperjs/core").Modifier<"maxSize", {
|
|
7
|
+
placement: import("@popperjs/core").Placement;
|
|
8
|
+
boundary: import("@popperjs/core").Boundary;
|
|
9
|
+
rootBoundary: import("@popperjs/core").RootBoundary;
|
|
10
|
+
elementContext: import("@popperjs/core").Context;
|
|
11
|
+
altBoundary: boolean;
|
|
12
|
+
padding: import("@popperjs/core").Padding;
|
|
13
|
+
}> | {
|
|
14
|
+
name: string;
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
phase: string;
|
|
17
|
+
requires: string[];
|
|
18
|
+
fn({ state }: {
|
|
19
|
+
state: any;
|
|
20
|
+
}): void;
|
|
21
|
+
effect?: undefined;
|
|
22
|
+
options?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
name: string;
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
phase: string;
|
|
27
|
+
requires: string[];
|
|
28
|
+
fn: () => void;
|
|
29
|
+
effect: ({ state }: {
|
|
30
|
+
state: any;
|
|
31
|
+
}) => void;
|
|
32
|
+
options?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
name: string;
|
|
35
|
+
options: {
|
|
36
|
+
offset: any[];
|
|
37
|
+
};
|
|
38
|
+
enabled?: undefined;
|
|
39
|
+
phase?: undefined;
|
|
40
|
+
requires?: undefined;
|
|
41
|
+
fn?: undefined;
|
|
42
|
+
effect?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
name: string;
|
|
45
|
+
enabled: any;
|
|
46
|
+
phase?: undefined;
|
|
47
|
+
requires?: undefined;
|
|
48
|
+
fn?: undefined;
|
|
49
|
+
effect?: undefined;
|
|
50
|
+
options?: undefined;
|
|
51
|
+
})[];
|
|
52
|
+
export declare function getFixedParent(node: any): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Theme } from '../index';
|
|
3
|
+
export declare type PortalProps = {
|
|
4
|
+
children: any;
|
|
5
|
+
/** Styles to apply to the portal root element. */
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
/** Where the portal is rendered into. */
|
|
8
|
+
renderTo?: HTMLElement | string;
|
|
9
|
+
/** The HTML element to create. Defaults to `div`. */
|
|
10
|
+
renderTag?: string;
|
|
11
|
+
/** Callback when Portal is updated. */
|
|
12
|
+
onUpdate?: () => void;
|
|
13
|
+
/** Returns the rendered node similar to refs. */
|
|
14
|
+
getPortalNode?: (HTMLElement: any) => void;
|
|
15
|
+
};
|
|
16
|
+
/** Accepts any additional HTML attributes. */
|
|
17
|
+
declare class Portal extends React.Component<PortalProps> {
|
|
18
|
+
static defaultProps: {
|
|
19
|
+
renderTag: string;
|
|
20
|
+
renderTo: any;
|
|
21
|
+
};
|
|
22
|
+
static contextType: import("react").Context<object>;
|
|
23
|
+
context: React.ContextType<React.Context<Theme>>;
|
|
24
|
+
_portalNode: HTMLElement;
|
|
25
|
+
_needsUpdate: boolean;
|
|
26
|
+
_updated: boolean;
|
|
27
|
+
componentDidMount(): void;
|
|
28
|
+
componentDidUpdate(): void;
|
|
29
|
+
componentWillUnmount(): void;
|
|
30
|
+
_getSecondChild(): string | number | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | React.ReactFragment | React.ReactPortal;
|
|
31
|
+
_getRenderToNode(): Element;
|
|
32
|
+
_setupPortal(): void;
|
|
33
|
+
_updatePortal(): void;
|
|
34
|
+
_renderPortal(component: any): import("react").ReactPortal;
|
|
35
|
+
_destroyPortal(): void;
|
|
36
|
+
render(): number | React.ReactFragment | JSX.Element;
|
|
37
|
+
}
|
|
38
|
+
export { Portal };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare type Props = {
|
|
2
|
+
/**
|
|
3
|
+
* The current value of the progress bar.
|
|
4
|
+
*/
|
|
5
|
+
value?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Active color of the progress bar.
|
|
8
|
+
*/
|
|
9
|
+
activeColor?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const Progress: ({ value, ...restProps }: Props) => JSX.Element;
|
|
12
|
+
export default Progress;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type RadioProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Disables the radio component.
|
|
5
|
+
*/
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Determines if the radio should use an internal label or not.
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Connects input to its corresponding label's `htmlFor`.
|
|
13
|
+
*/
|
|
14
|
+
id?: string | number;
|
|
15
|
+
/**
|
|
16
|
+
* Checks the radio.
|
|
17
|
+
*/
|
|
18
|
+
checked?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Maps to the internal input's `name` prop.
|
|
21
|
+
*/
|
|
22
|
+
name?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Maps to the internal input's `value` prop.
|
|
25
|
+
*/
|
|
26
|
+
value?: any;
|
|
27
|
+
/**
|
|
28
|
+
* Determines the size of the radio based on a [scale](http://google.com).
|
|
29
|
+
*/
|
|
30
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
31
|
+
/**
|
|
32
|
+
* Maps to the internal input's `onChange` prop.
|
|
33
|
+
*/
|
|
34
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Maps to the internal input's `onFocus` prop.
|
|
37
|
+
*/
|
|
38
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Maps to the internal input's `onBlur` prop.
|
|
41
|
+
*/
|
|
42
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
43
|
+
};
|
|
44
|
+
declare const Radio: ({ checked, disabled, id, label, name, onBlur, onChange, onFocus, size, value, ...restProps }: RadioProps) => JSX.Element;
|
|
45
|
+
export default Radio;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type ScrimProps = {
|
|
3
|
+
/** Gain access to the internal ref. */
|
|
4
|
+
ref?: any;
|
|
5
|
+
children?: any;
|
|
6
|
+
};
|
|
7
|
+
declare const Scrim: React.ForwardRefExoticComponent<Pick<ScrimProps, "children"> & React.RefAttributes<unknown>>;
|
|
8
|
+
export { Scrim };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProps } from '../index';
|
|
3
|
+
export declare type SpinnerProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Uses position absolute and transforms to position in the center of a relative parent.
|
|
6
|
+
*/
|
|
7
|
+
center?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Primary color of spinner.
|
|
10
|
+
*/
|
|
11
|
+
color?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Size of spinner.
|
|
14
|
+
*/
|
|
15
|
+
size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number | string;
|
|
16
|
+
/**
|
|
17
|
+
* Thickness of spinner.
|
|
18
|
+
*/
|
|
19
|
+
thickness?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Secondary color of spinner.
|
|
22
|
+
*/
|
|
23
|
+
trackColor?: string;
|
|
24
|
+
} & StyleProps & React.HTMLAttributes<HTMLElement>;
|
|
25
|
+
export declare function Spinner({ center, size, thickness, ...props }: SpinnerProps): JSX.Element;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { BoxProps } from '../Box';
|
|
5
|
+
export declare type StackViewProps<E extends React.ElementType = React.ElementType> = {
|
|
6
|
+
/** Render custom component or HTML element tag. (Defaults to a `<div>` element). */
|
|
7
|
+
as?: E;
|
|
8
|
+
/** The axis along which children are laid out. */
|
|
9
|
+
axis?: 'horizontal' | 'vertical';
|
|
10
|
+
/** The alignment of children perpendicular to the stack view’s main axis. */
|
|
11
|
+
alignment?: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
12
|
+
/** The content of the StackView. */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
/** The distribution of children along the main axis. */
|
|
15
|
+
distribution?: 'start' | 'center' | 'end' | 'fill' | 'space-between' | 'space-evenly';
|
|
16
|
+
/** If true, sets `display: inline-flex`, otherwise it defaults to `display: flex` */
|
|
17
|
+
inline?: boolean;
|
|
18
|
+
/** Gain access to the internal ref */
|
|
19
|
+
innerRef?: React.Ref<any>;
|
|
20
|
+
/** The amount of space or element that is inserted between each child. */
|
|
21
|
+
spacing?: number | string | React.ReactNode;
|
|
22
|
+
/** Describes styles at various points in time. [Read about variants](/variants). */
|
|
23
|
+
variants?: object;
|
|
24
|
+
/** Describes props at different breakpoints. [Read about mediaQueries](/responsive). */
|
|
25
|
+
mediaQueries?: object;
|
|
26
|
+
} & BoxProps;
|
|
27
|
+
export declare const StackView: {
|
|
28
|
+
<E extends React.ElementType<any> = "div">({ as, children, inline, innerRef, ...props }: {
|
|
29
|
+
/** Render custom component or HTML element tag. (Defaults to a `<div>` element). */
|
|
30
|
+
as?: E;
|
|
31
|
+
/** The axis along which children are laid out. */
|
|
32
|
+
axis?: 'horizontal' | 'vertical';
|
|
33
|
+
/** The alignment of children perpendicular to the stack view’s main axis. */
|
|
34
|
+
alignment?: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
35
|
+
/** The content of the StackView. */
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
/** The distribution of children along the main axis. */
|
|
38
|
+
distribution?: 'start' | 'center' | 'end' | 'fill' | 'space-between' | 'space-evenly';
|
|
39
|
+
/** If true, sets `display: inline-flex`, otherwise it defaults to `display: flex` */
|
|
40
|
+
inline?: boolean;
|
|
41
|
+
/** Gain access to the internal ref */
|
|
42
|
+
innerRef?: React.Ref<any>;
|
|
43
|
+
/** The amount of space or element that is inserted between each child. */
|
|
44
|
+
spacing?: number | string | React.ReactNode;
|
|
45
|
+
/** Describes styles at various points in time. [Read about variants](/variants). */
|
|
46
|
+
variants?: object;
|
|
47
|
+
/** Describes props at different breakpoints. [Read about mediaQueries](/responsive). */
|
|
48
|
+
mediaQueries?: object;
|
|
49
|
+
} & {
|
|
50
|
+
as?: React.ElementType<any>;
|
|
51
|
+
children?: React.ReactNode;
|
|
52
|
+
inline?: boolean;
|
|
53
|
+
innerRef?: React.Ref<any>;
|
|
54
|
+
mediaQueries?: object;
|
|
55
|
+
variants?: object;
|
|
56
|
+
visible?: boolean;
|
|
57
|
+
} & Pick<React.CSSProperties, "clipPath" | "filter" | "mask" | "alignContent" | "alignItems" | "alignSelf" | "alignmentBaseline" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "border" | "borderBottom" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderLeft" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStyle" | "borderTop" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "clear" | "clip" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "font" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontSize" | "fontStretch" | "fontStyle" | "fontVariant" | "fontVariantCaps" | "fontVariantLigatures" | "fontVariantNumeric" | "fontWeight" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "imageRendering" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lightingColor" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maskType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "mixBlendMode" | "motion" | "objectFit" | "objectPosition" | "opacity" | "order" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowWrap" | "overflowX" | "overflowY" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "resize" | "right" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textDecoration" | "textIndent" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "top" | "touchAction" | "transform" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "verticalAlign" | "visibility" | "userSelect" | "WebkitOverflowScrolling" | "writingMode" | "whiteSpace" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "zIndex"> & Partial<Record<"outlineColor" | "backgroundColor" | "borderColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderTopColor" | "color" | "fill" | "stroke", import("type-fest").LiteralUnion<"background" | "foreground" | "foregroundSecondary" | "foregroundTertiary" | "backgroundSecondary" | "backgroundTertiary" | "surface" | "surfaceSecondary" | "surfaceTertiary" | "separator" | "separatorSecondary" | "separatorTertiary" | "separatorHover" | "separatorFocus" | "separatorFocusSecondary" | "highlight" | "highlightSecondary" | "linkForeground" | "linkBackground" | "primary" | "primary-light" | "primary-lighter" | "primary-lightest" | "primary-dark" | "primary-darker" | "primary-darkest" | "warning" | "warning-light" | "warning-lighter" | "warning-lightest" | "warning-dark" | "warning-darker" | "warning-darkest" | "error" | "error-light" | "error-lighter" | "error-lightest" | "error-dark" | "error-darker" | "error-darkest" | "success" | "success-light" | "success-lighter" | "success-lightest" | "success-dark" | "success-darker" | "success-darkest" | "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "check-ins" | "giving" | "groups" | "music-stand" | "pco" | "people" | "planning-center" | "projector" | "registrations" | "calendar" | "services" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "light-0" | "light-1" | "light-2" | "light-3" | "light-4" | "light-5" | "light-6" | "light-7" | "light-8" | "light-9" | "dark-0" | "dark-1" | "dark-2" | "dark-3" | "dark-4" | "dark-5" | "dark-6" | "dark-7" | "dark-8" | "dark-9" | "grey-0" | "grey-1" | "grey-2" | "grey-3" | "grey-4" | "grey-5" | "grey-6" | "grey-7" | "grey-8" | "grey-9" | "transparent", string>>> & {
|
|
58
|
+
css?: any;
|
|
59
|
+
paddingHorizontal?: string | number;
|
|
60
|
+
paddingVertical?: string | number;
|
|
61
|
+
marginHorizontal?: string | number;
|
|
62
|
+
marginVertical?: string | number;
|
|
63
|
+
column?: import("csstype").Property.ColumnCount;
|
|
64
|
+
columnStart?: import("csstype").Property.ColumnCount;
|
|
65
|
+
columnEnd?: import("csstype").Property.ColumnCount;
|
|
66
|
+
row?: import("csstype").Property.ColumnCount;
|
|
67
|
+
rowStart?: import("csstype").Property.ColumnCount;
|
|
68
|
+
rowEnd?: import("csstype").Property.ColumnCount;
|
|
69
|
+
basis?: import("csstype").Property.Padding<string | number>;
|
|
70
|
+
grow?: import("csstype").Property.BorderImageSlice;
|
|
71
|
+
shrink?: import("csstype").Property.BorderImageSlice;
|
|
72
|
+
wrap?: string | boolean;
|
|
73
|
+
radius?: import("csstype").Property.Padding<string | number>;
|
|
74
|
+
radiusTop?: string | number;
|
|
75
|
+
radiusRight?: string | number;
|
|
76
|
+
radiusBottom?: string | number;
|
|
77
|
+
radiusLeft?: string | number;
|
|
78
|
+
strokeAlign?: "center" | "inside" | "outside";
|
|
79
|
+
strokeWeight?: number;
|
|
80
|
+
elevation?: number;
|
|
81
|
+
x?: string | number;
|
|
82
|
+
y?: string | number;
|
|
83
|
+
rotate?: number;
|
|
84
|
+
scale?: number;
|
|
85
|
+
uppercase?: boolean;
|
|
86
|
+
} & Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "clipPath" | "filter" | "mask" | "alignContent" | "alignItems" | "alignSelf" | "alignmentBaseline" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "border" | "borderBottom" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderLeft" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStyle" | "borderTop" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "clear" | "clip" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "font" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontSize" | "fontStretch" | "fontStyle" | "fontVariant" | "fontVariantCaps" | "fontVariantLigatures" | "fontVariantNumeric" | "fontWeight" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "imageRendering" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lightingColor" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maskType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "mixBlendMode" | "motion" | "objectFit" | "objectPosition" | "opacity" | "order" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowWrap" | "overflowX" | "overflowY" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "resize" | "right" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textDecoration" | "textIndent" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "top" | "touchAction" | "transform" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "verticalAlign" | "visibility" | "userSelect" | "WebkitOverflowScrolling" | "writingMode" | "whiteSpace" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "zIndex" | "backgroundColor" | "borderColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderTopColor" | "color" | "fill" | "stroke" | "as" | "children" | "inline" | "innerRef" | "mediaQueries" | "variants" | "visible" | "css" | "paddingHorizontal" | "paddingVertical" | "marginHorizontal" | "marginVertical" | "column" | "columnStart" | "columnEnd" | "row" | "rowStart" | "rowEnd" | "basis" | "grow" | "shrink" | "wrap" | "radius" | "radiusTop" | "radiusRight" | "radiusBottom" | "radiusLeft" | "strokeAlign" | "strokeWeight" | "elevation" | "x" | "y" | "rotate" | "scale" | "uppercase" | "alignment" | "axis" | "distribution" | "spacing">>): jsx.JSX.Element;
|
|
87
|
+
BASELINE: string;
|
|
88
|
+
CENTER: string;
|
|
89
|
+
END: string;
|
|
90
|
+
FILL: string;
|
|
91
|
+
HORIZONTAL: string;
|
|
92
|
+
SPACE_BETWEEN: string;
|
|
93
|
+
SPACE_EVENLY: string;
|
|
94
|
+
START: string;
|
|
95
|
+
STRETCH: string;
|
|
96
|
+
VERTICAL: string;
|
|
97
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ColorProp } from '../index';
|
|
2
|
+
import { TextProps } from '../Text';
|
|
3
|
+
export declare type TabProps = {
|
|
4
|
+
/** Whether or not the tab is active. Sets element to span and removes `href` and hover effects if `true`. */
|
|
5
|
+
active?: boolean;
|
|
6
|
+
/** Whether or not the tab is disabled. */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** Link to URL. Sets element to an anchor, otherwise it will use a button. */
|
|
9
|
+
href?: string;
|
|
10
|
+
/** The size of the tab which includes `fontSize`, `lineHeight` and `padding`. */
|
|
11
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
12
|
+
/** The background color of the tab. */
|
|
13
|
+
color?: ColorProp;
|
|
14
|
+
} & TextProps;
|
|
15
|
+
export declare function Tab({ active, disabled, href, color, size, ...props }: TabProps): JSX.Element;
|