@planningcenter/tapestry-react 2.10.0-rc.2 → 2.10.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +46 -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 +105 -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 +9 -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 +35 -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 +90 -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 +4 -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 +38 -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 +42 -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 +4 -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 +68 -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 +124 -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 +4 -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,140 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BoxSizes, MediaQueries } from '../index';
|
|
3
|
+
import { StackViewProps } from '../StackView';
|
|
4
|
+
export declare type ButtonProps = {
|
|
5
|
+
children?: any;
|
|
6
|
+
/**
|
|
7
|
+
* "Soft disables" button by adding an `aria-disabled` attribute and preventing `onClick` and `keyDown` events for "space" / "enter". This approach allows composing components (such as `Tooltip`) to still bubble up their events, while ensuring that clicking the button or submitting a form is prevented.
|
|
8
|
+
*/
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Opens the linked destination in a new window or tab.
|
|
12
|
+
*/
|
|
13
|
+
external?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Pass styles for when the button is active.
|
|
16
|
+
*/
|
|
17
|
+
active?: object;
|
|
18
|
+
/**
|
|
19
|
+
* Pass styles for when the button is focused.
|
|
20
|
+
*/
|
|
21
|
+
focus?: object;
|
|
22
|
+
/**
|
|
23
|
+
* Pass styles for when the button is keyboard-focused.
|
|
24
|
+
*/
|
|
25
|
+
focusVisible?: object;
|
|
26
|
+
/**
|
|
27
|
+
* Pass styles for when the button is hovered.
|
|
28
|
+
*/
|
|
29
|
+
hover?: object;
|
|
30
|
+
/**
|
|
31
|
+
* Renders an [Icon](/icon) in the center of the button. Pass a string or any valid `Icon` props.
|
|
32
|
+
* Must pass a [`title`](/button#title) or [`tooltip.title`](/tooltip#title) when using icon-only buttons.
|
|
33
|
+
*/
|
|
34
|
+
icon?: string | Object;
|
|
35
|
+
/**
|
|
36
|
+
* Same as above, but renders an icon in the left portion of the button.
|
|
37
|
+
*/
|
|
38
|
+
iconLeft?: string | Object;
|
|
39
|
+
/**
|
|
40
|
+
* Same as above, but renders an icon in the right portion of the button.
|
|
41
|
+
*/
|
|
42
|
+
iconRight?: string | Object;
|
|
43
|
+
/**
|
|
44
|
+
* Sizes the button using values defined in [boxSizes](/theming)
|
|
45
|
+
*/
|
|
46
|
+
size?: keyof BoxSizes;
|
|
47
|
+
/**
|
|
48
|
+
* Renders a [`<Spinner />`](/spinner) in the center of the button. Accepts any valid Spinner props.
|
|
49
|
+
*/
|
|
50
|
+
spinner?: any;
|
|
51
|
+
/**
|
|
52
|
+
* Uses a 1:1 ratio for sizing the button.
|
|
53
|
+
*/
|
|
54
|
+
square?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Uses theme defined in [`buttons.theme`](/theming). Pass `false` to not use theme at all.
|
|
57
|
+
*/
|
|
58
|
+
theme?: string | boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Renders a text string in the center of the button.
|
|
61
|
+
*/
|
|
62
|
+
title?: string | number;
|
|
63
|
+
/**
|
|
64
|
+
* Where the browser should navigate to when pressed. If you need any element here other than `<a>`, remember to use the `as` prop.
|
|
65
|
+
*/
|
|
66
|
+
to?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Where the browser should navigate to when pressed. If you need any element here other than `<a>`, remember to use the `as` prop.
|
|
69
|
+
*/
|
|
70
|
+
href?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Wraps button in a [`<Tooltip />`](./tooltip). Accepts any valid Tooltip props.
|
|
73
|
+
*/
|
|
74
|
+
tooltip?: string | Object;
|
|
75
|
+
/**
|
|
76
|
+
* Sets the button type to `button`, `submit`, or `reset`. Default is `button`. Type is only valid for `<button>`s.
|
|
77
|
+
*/
|
|
78
|
+
type?: 'button' | 'submit' | 'reset';
|
|
79
|
+
/**
|
|
80
|
+
* Determines the modified style of the button.
|
|
81
|
+
*/
|
|
82
|
+
variant?: 'fill' | 'outline' | 'naked';
|
|
83
|
+
onClick?: Function;
|
|
84
|
+
onKeyDown?: Function;
|
|
85
|
+
/** Describes props at different breakpoints. [Read about mediaQueries](/responsive). */
|
|
86
|
+
mediaQueries?: object;
|
|
87
|
+
} & StackViewProps;
|
|
88
|
+
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & ButtonProps & MediaQueries<ButtonProps>;
|
|
89
|
+
export declare function Button({ children, disabled, external, icon, iconLeft, iconRight, onClick, onKeyDown, size, spinner, square, theme, title, to, tooltip, type, variant, ...restProps }: Props): JSX.Element;
|
|
90
|
+
export declare namespace Button {
|
|
91
|
+
var Input: React.ForwardRefExoticComponent<Pick<React.RefAttributes<any> & React.HTMLAttributes<any> & {
|
|
92
|
+
children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | ((inputProps: {
|
|
93
|
+
inputProps: any;
|
|
94
|
+
isOpen: boolean;
|
|
95
|
+
open: any;
|
|
96
|
+
close: any;
|
|
97
|
+
}) => React.ReactNode);
|
|
98
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
99
|
+
onClose: () => void;
|
|
100
|
+
onOpen: () => void;
|
|
101
|
+
} & {
|
|
102
|
+
children?: any;
|
|
103
|
+
as?: any;
|
|
104
|
+
innerRef?: any;
|
|
105
|
+
inline?: boolean;
|
|
106
|
+
visible?: boolean;
|
|
107
|
+
variants?: object;
|
|
108
|
+
mediaQueries?: object;
|
|
109
|
+
} & Pick<React.CSSProperties, "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" | "clipPath" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "filter" | "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" | "mask" | "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>>> & {
|
|
110
|
+
css?: any;
|
|
111
|
+
paddingHorizontal?: string | number;
|
|
112
|
+
paddingVertical?: string | number;
|
|
113
|
+
marginHorizontal?: string | number;
|
|
114
|
+
marginVertical?: string | number;
|
|
115
|
+
column?: import("csstype").Property.ColumnCount;
|
|
116
|
+
columnStart?: import("csstype").Property.ColumnCount;
|
|
117
|
+
columnEnd?: import("csstype").Property.ColumnCount;
|
|
118
|
+
row?: import("csstype").Property.ColumnCount;
|
|
119
|
+
rowStart?: import("csstype").Property.ColumnCount;
|
|
120
|
+
rowEnd?: import("csstype").Property.ColumnCount;
|
|
121
|
+
basis?: import("csstype").Property.Height<string | number>;
|
|
122
|
+
grow?: import("csstype").Property.BorderImageSlice;
|
|
123
|
+
shrink?: import("csstype").Property.BorderImageSlice;
|
|
124
|
+
wrap?: string | boolean;
|
|
125
|
+
radius?: import("csstype").Property.Height<string | number>;
|
|
126
|
+
radiusTop?: string | number;
|
|
127
|
+
radiusRight?: string | number;
|
|
128
|
+
radiusBottom?: string | number;
|
|
129
|
+
radiusLeft?: string | number;
|
|
130
|
+
strokeAlign?: "center" | "inside" | "outside";
|
|
131
|
+
strokeWeight?: number;
|
|
132
|
+
elevation?: number;
|
|
133
|
+
x?: string | number;
|
|
134
|
+
y?: string | number;
|
|
135
|
+
rotate?: number;
|
|
136
|
+
scale?: number;
|
|
137
|
+
uppercase?: boolean;
|
|
138
|
+
}, "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" | "clipPath" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "filter" | "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" | "mask" | "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" | "row" | "innerRef" | "inline" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "visible" | "variants" | "mediaQueries" | "css" | "paddingHorizontal" | "paddingVertical" | "marginHorizontal" | "marginVertical" | "column" | "columnStart" | "columnEnd" | "rowStart" | "rowEnd" | "basis" | "grow" | "shrink" | "wrap" | "radius" | "radiusTop" | "radiusRight" | "radiusBottom" | "radiusLeft" | "strokeAlign" | "strokeWeight" | "elevation" | "x" | "y" | "rotate" | "scale" | "uppercase" | "size" | "onOpen" | "onClose"> & React.RefAttributes<unknown>>;
|
|
139
|
+
}
|
|
140
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
declare type InputProps = {
|
|
4
|
+
inputProps: any;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
open: any;
|
|
7
|
+
close: any;
|
|
8
|
+
};
|
|
9
|
+
declare type InputSignature = (inputProps: InputProps) => React.ReactNode;
|
|
10
|
+
declare type ButtonInputProps = {
|
|
11
|
+
/**
|
|
12
|
+
* Clones immediate child with input specific props. Use a function to access props and pass them yourself.
|
|
13
|
+
*/
|
|
14
|
+
children: InputSignature | React.ReactElement<any>;
|
|
15
|
+
/**
|
|
16
|
+
* Size of internal [Button](/button) and child [Input](/input).
|
|
17
|
+
*/
|
|
18
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
19
|
+
/**
|
|
20
|
+
* Callback when the input reverts back to a button.
|
|
21
|
+
*/
|
|
22
|
+
onClose: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Callback when button is pressed to reveal the input.
|
|
25
|
+
*/
|
|
26
|
+
onOpen: () => void;
|
|
27
|
+
} & BoxProps;
|
|
28
|
+
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & ButtonInputProps;
|
|
29
|
+
declare const ButtonInput: React.ForwardRefExoticComponent<Pick<Props, "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" | "clipPath" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "filter" | "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" | "mask" | "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" | "row" | "innerRef" | "inline" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "visible" | "variants" | "mediaQueries" | "css" | "paddingHorizontal" | "paddingVertical" | "marginHorizontal" | "marginVertical" | "column" | "columnStart" | "columnEnd" | "rowStart" | "rowEnd" | "basis" | "grow" | "shrink" | "wrap" | "radius" | "radiusTop" | "radiusRight" | "radiusBottom" | "radiusLeft" | "strokeAlign" | "strokeWeight" | "elevation" | "x" | "y" | "rotate" | "scale" | "uppercase" | "size" | "onOpen" | "onClose"> & React.RefAttributes<unknown>>;
|
|
30
|
+
export default ButtonInput;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StackViewProps } from '../StackView';
|
|
3
|
+
export declare type CardProps = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** Adds a slightly higher contrast background. */
|
|
6
|
+
subdued?: boolean;
|
|
7
|
+
/** The size of the radius. (Default is 3px). */
|
|
8
|
+
radius?: number | string;
|
|
9
|
+
} & StackViewProps;
|
|
10
|
+
export declare function Card({ children, subdued, radius, ...restProps }: CardProps): JSX.Element;
|
|
11
|
+
export declare namespace Card {
|
|
12
|
+
var Section: typeof import("./Section").Section;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StackViewProps } from '../StackView';
|
|
3
|
+
export declare type SectionProps = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** Adds a slightly higher contrast background. */
|
|
6
|
+
subdued?: boolean;
|
|
7
|
+
} & StackViewProps & React.RefAttributes<any> & React.HTMLAttributes<any>;
|
|
8
|
+
export declare function Section({ subdued, ...restProps }: SectionProps): JSX.Element;
|
|
9
|
+
export declare namespace Section {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare type ChurchCenterStatusProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Pass props to the Dropdown buttons.
|
|
4
|
+
*/
|
|
5
|
+
buttonProps?: object;
|
|
6
|
+
/**
|
|
7
|
+
* Determines status of Church Center App.
|
|
8
|
+
*/
|
|
9
|
+
ccAppEnabled?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Determines status of publishing to Church Center.
|
|
12
|
+
*/
|
|
13
|
+
ccPublishingEnabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Determines status of Church Center Web.
|
|
16
|
+
*/
|
|
17
|
+
ccWebEnabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Renders a text description in popover when status is active.
|
|
20
|
+
*/
|
|
21
|
+
description: string;
|
|
22
|
+
/**
|
|
23
|
+
* Renders a text for Church Center destination button ("Visit {destinationLabel}").
|
|
24
|
+
*/
|
|
25
|
+
destinationLabel: string;
|
|
26
|
+
/**
|
|
27
|
+
* Renders a text description in popover when status is inactive.
|
|
28
|
+
*/
|
|
29
|
+
disabledDescription?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Pass props to the Dropdown component.
|
|
32
|
+
*/
|
|
33
|
+
dropdownProps?: object;
|
|
34
|
+
/**
|
|
35
|
+
* Provide icon overrides for "check", "exclamationTriangle", "external", and "x" icons.
|
|
36
|
+
*/
|
|
37
|
+
icons?: object;
|
|
38
|
+
/**
|
|
39
|
+
* Where the browser should navigate when destination button is pressed.
|
|
40
|
+
*/
|
|
41
|
+
productUrl: string;
|
|
42
|
+
/**
|
|
43
|
+
* Render nodes at the end of the popover. `buttonProps` is passed as an argument
|
|
44
|
+
* and can be spread on any `<Button />` component to match the style of the other
|
|
45
|
+
* popover links.
|
|
46
|
+
*/
|
|
47
|
+
renderPopoverFooter: Function;
|
|
48
|
+
/**
|
|
49
|
+
* Where the browser should navigate when settings button is pressed.
|
|
50
|
+
*/
|
|
51
|
+
settingsUrl: string;
|
|
52
|
+
/**
|
|
53
|
+
* Toggle the settings link display.
|
|
54
|
+
*/
|
|
55
|
+
showSettingsLink?: boolean;
|
|
56
|
+
};
|
|
57
|
+
export declare function ChurchCenterStatus({ buttonProps: passedButtonProps, ccAppEnabled, ccPublishingEnabled, ccWebEnabled, description, destinationLabel, disabledDescription, dropdownProps, icons, productUrl, renderPopoverFooter, settingsUrl, showSettingsLink, ...props }: ChurchCenterStatusProps): JSX.Element;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare type DateFieldProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Format the displayed date using date-fns [format](https://date-fns.org/v2.0.0-alpha.9/docs/format) function.
|
|
4
|
+
*/
|
|
5
|
+
formatValue: string;
|
|
6
|
+
/**
|
|
7
|
+
* Controls the initial Popover state: open or closed (default).
|
|
8
|
+
*/
|
|
9
|
+
defaultOpen: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The minimum date that can be chosen.
|
|
12
|
+
*/
|
|
13
|
+
minDate: Date;
|
|
14
|
+
/**
|
|
15
|
+
* The maximum date that can be chosen.
|
|
16
|
+
*/
|
|
17
|
+
maxDate: Date;
|
|
18
|
+
/**
|
|
19
|
+
* Called when a date has been selected.
|
|
20
|
+
*/
|
|
21
|
+
onChange: (date: Date) => null;
|
|
22
|
+
/**
|
|
23
|
+
* Determines where the popover is placed.
|
|
24
|
+
*/
|
|
25
|
+
placement: string;
|
|
26
|
+
/**
|
|
27
|
+
* The date that will be selected.
|
|
28
|
+
*/
|
|
29
|
+
value: Date;
|
|
30
|
+
/**
|
|
31
|
+
* Locks external scrollbars when open.
|
|
32
|
+
*/
|
|
33
|
+
lockScrollWhileOpen?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Attempts to keep popover in view clipping edges if too large.
|
|
36
|
+
*/
|
|
37
|
+
keepInView?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Accepts any valid [Calendar](/calendar) props.
|
|
40
|
+
*/
|
|
41
|
+
calendarProps?: object;
|
|
42
|
+
/**
|
|
43
|
+
* Accepts any valid [Popover](/popover) props.
|
|
44
|
+
*/
|
|
45
|
+
popoverProps?: object;
|
|
46
|
+
};
|
|
47
|
+
declare function DateField({ formatValue, defaultOpen, keepInView, lockScrollWhileOpen, minDate, maxDate, onChange, placement, value, ...props }: DateFieldProps): JSX.Element;
|
|
48
|
+
export default DateField;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface Params {
|
|
2
|
+
/**
|
|
3
|
+
* The string we want to parse into a date object
|
|
4
|
+
*/
|
|
5
|
+
date: string;
|
|
6
|
+
/**
|
|
7
|
+
* Format hint for parser
|
|
8
|
+
* Helps us know if we should parse day/month/year or month/day/year
|
|
9
|
+
*
|
|
10
|
+
* Should adhere to [date-fns spec](https://date-fns.org/v2.0.0-alpha.9/docs/format).
|
|
11
|
+
*/
|
|
12
|
+
format?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const parseDate: ({ date, format }: Params) => Date | null;
|
|
15
|
+
export declare const isValidDate: (date: string) => boolean;
|
|
16
|
+
export declare const parseMonth: (monthString: string) => number;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
date: Date;
|
|
3
|
+
calendarIsOpen: boolean;
|
|
4
|
+
openCalendar: () => void;
|
|
5
|
+
closeCalendar: () => void;
|
|
6
|
+
onChange: (date: Date) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const useArrowKeysToNavigateCalendar: ({ date, calendarIsOpen, closeCalendar, openCalendar, onChange, }: Props) => (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface Params {
|
|
2
|
+
/**
|
|
3
|
+
* The currently selected date
|
|
4
|
+
*/
|
|
5
|
+
date: Date;
|
|
6
|
+
/**
|
|
7
|
+
* Format the displayed date using date-fns [format](https://date-fns.org/v2.0.0-alpha.9/docs/format) function.
|
|
8
|
+
*/
|
|
9
|
+
dateFormat: string;
|
|
10
|
+
/**
|
|
11
|
+
* Custom function that validates date
|
|
12
|
+
*/
|
|
13
|
+
dateValidator: (date: Date) => boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Called when a valid date is entered
|
|
16
|
+
*/
|
|
17
|
+
onChange: (date: Date) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const useEditableDate: ({ date, dateFormat, dateValidator, onChange }: Params) => {
|
|
20
|
+
formattedDate: string;
|
|
21
|
+
setDate: (date: Date | string) => void;
|
|
22
|
+
clearKeyBuffer: () => void;
|
|
23
|
+
invalidKeyBuffer: boolean;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ColorProp, StyleProps } from '../index';
|
|
2
|
+
export declare type DividerProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The direction the dividing line should span.
|
|
5
|
+
*/
|
|
6
|
+
axis?: 'horizontal' | 'vertical';
|
|
7
|
+
/**
|
|
8
|
+
* The color of the line
|
|
9
|
+
*/
|
|
10
|
+
color?: ColorProp;
|
|
11
|
+
/**
|
|
12
|
+
* Controls the space on sides opposite to the line's defined axis
|
|
13
|
+
*/
|
|
14
|
+
margin?: number | string;
|
|
15
|
+
/**
|
|
16
|
+
* The size of the line in pixels
|
|
17
|
+
*/
|
|
18
|
+
size?: number;
|
|
19
|
+
} & StyleProps;
|
|
20
|
+
/**
|
|
21
|
+
* Used to break up content
|
|
22
|
+
*/
|
|
23
|
+
export declare function Divider({ axis, color, margin, size, ...restProps }: DividerProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare type Props = {
|
|
2
|
+
/** Render slot for header. */
|
|
3
|
+
header?: any;
|
|
4
|
+
/** Render slot for sidebar. */
|
|
5
|
+
sidebar?: any;
|
|
6
|
+
/** Size of sidebar in pixels or `fill` for full width when open. */
|
|
7
|
+
sidebarWidth?: number | 'fill';
|
|
8
|
+
/** Render slot for table. */
|
|
9
|
+
table?: any;
|
|
10
|
+
/** Render slot for toolbar. */
|
|
11
|
+
toolbar?: any;
|
|
12
|
+
};
|
|
13
|
+
export declare function FilterLayout(props: Props): JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** @jsxRuntime classic */
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { BoxProps } from '../Box';
|
|
6
|
+
import { MediaQueries, Variants } from '../index';
|
|
7
|
+
export declare type GridViewProps = {
|
|
8
|
+
/** Any direct children can use the `column|Start|End` or `row|Start|End` [shorthand properties](/style-props#grid) to place themselves on the grid. */
|
|
9
|
+
children?: any;
|
|
10
|
+
/** Render custom component or HTML element tag. (Defaults to a `<div>` element). */
|
|
11
|
+
as?: any;
|
|
12
|
+
/** The algorithm used to implicitly place grid items. Maps to CSS [gridAutoFlow](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow) property. */
|
|
13
|
+
autoFlow?: 'column' | 'row' | 'dense';
|
|
14
|
+
/** The size of implicit grid columns. Maps to CSS [gridAutoColumns](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns) property. */
|
|
15
|
+
autoColumns?: string;
|
|
16
|
+
/** The size of implicit grid rows. Maps to CSS [gridAutoRows](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows) property. */
|
|
17
|
+
autoRows?: string;
|
|
18
|
+
/** The columns of the grid. Maps to CSS [gridTemplateColumns](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns) property. */
|
|
19
|
+
columns?: Array<any> | string;
|
|
20
|
+
/** If true, sets `display: inline-grid`, otherwise it defaults to `display: grid` */
|
|
21
|
+
inline?: boolean;
|
|
22
|
+
/** Gain access to the internal ref */
|
|
23
|
+
innerRef?: any;
|
|
24
|
+
/** The rows of the grid. Maps to CSS [gridTemplateRows](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows) property. */
|
|
25
|
+
rows?: Array<any> | string;
|
|
26
|
+
/** Aligns content in a grid item along the column axis. Maps to CSS [alignItems](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items) property. */
|
|
27
|
+
alignment?: 'start' | 'end' | 'center' | 'stretch';
|
|
28
|
+
/** The amount of space between children. Maps to CSS [gap](https://developer.mozilla.org/en-US/docs/Web/CSS/gap) property. */
|
|
29
|
+
spacing?: number | string;
|
|
30
|
+
/** The amount of space between columns. Maps to CSS [gridColumnGap](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-gap) property. */
|
|
31
|
+
columnSpacing?: number | string;
|
|
32
|
+
/** The amount of space between rows. Maps to CSS [gridRowGap](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-gap) property. */
|
|
33
|
+
rowSpacing?: number | string;
|
|
34
|
+
/** Describes styles at various points in time. [Read about variants](/variants).*/
|
|
35
|
+
variants?: object;
|
|
36
|
+
/** Describes props at different breakpoints. [Read about mediaQueries](/responsive). */
|
|
37
|
+
mediaQueries?: object;
|
|
38
|
+
} & BoxProps;
|
|
39
|
+
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & GridViewProps & MediaQueries<GridViewProps> & Variants<GridViewProps>;
|
|
40
|
+
export declare function GridView({ as, inline, innerRef, ...props }: Props): jsx.JSX.Element;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type GroupProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The direction the dividing line should span.
|
|
5
|
+
*/
|
|
6
|
+
axis?: 'horizontal' | 'vertical';
|
|
7
|
+
/**
|
|
8
|
+
* Props to pass down to all children.
|
|
9
|
+
*/
|
|
10
|
+
childProps?: Object;
|
|
11
|
+
/**
|
|
12
|
+
* Children elements to be grouped.
|
|
13
|
+
*/
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* The size of the radius.
|
|
17
|
+
*/
|
|
18
|
+
radius?: number | string;
|
|
19
|
+
/**
|
|
20
|
+
* The amount of space or element that is inserted between each child.
|
|
21
|
+
*/
|
|
22
|
+
spacing?: number | string | React.ReactNode;
|
|
23
|
+
};
|
|
24
|
+
export declare function Group({ axis, childProps, children, radius, spacing, ...restProps }: GroupProps): JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type ModalProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Close the modal when clicking outside of it.
|
|
6
|
+
*/
|
|
7
|
+
closeOnOutsideClick?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Called by either clicking on the internal [`<Scrim/>`](/scrim) component or
|
|
10
|
+
* by pressing the `Escape` key.
|
|
11
|
+
*/
|
|
12
|
+
onRequestClose?: () => null;
|
|
13
|
+
/**
|
|
14
|
+
* Determines whether the modal is open or not.
|
|
15
|
+
*/
|
|
16
|
+
open: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Props passed to the internal [`<Scrim/>`](/scrim) component.
|
|
19
|
+
*/
|
|
20
|
+
scrimProps?: Record<string, any>;
|
|
21
|
+
};
|
|
22
|
+
declare const Modal: ({ children, closeOnOutsideClick, onRequestClose, open, ...restProps }: ModalProps) => JSX.Element;
|
|
23
|
+
export default Modal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|