@planningcenter/tapestry-react 0.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/cjs/ActionsDropdown/ActionsDropdown.js +117 -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 +55 -0
- package/dist/cjs/Avatar/index.js +11 -0
- package/dist/cjs/Badge/Badge.js +122 -0
- package/dist/cjs/Badge/Status.js +114 -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 +274 -0
- package/dist/cjs/Button/Button.test.js +59 -0
- package/dist/cjs/Button/Input.js +180 -0
- package/dist/cjs/Button/index.js +15 -0
- package/dist/cjs/Calendar/Calendar.js +376 -0
- package/dist/cjs/Calendar/Day.js +103 -0
- package/dist/cjs/Calendar/index.js +11 -0
- package/dist/cjs/Calendar/utils.js +104 -0
- package/dist/cjs/Card/Card.js +57 -0
- package/dist/cjs/Card/index.js +15 -0
- package/dist/cjs/Checkbox/Checkbox.js +225 -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 +131 -0
- package/dist/cjs/ChurchCenterStatus/index.js +15 -0
- package/dist/cjs/Collapse/Collapse.js +123 -0
- package/dist/cjs/Collapse/index.js +11 -0
- package/dist/cjs/ColumnView/ColumnView.js +63 -0
- package/dist/cjs/ColumnView/index.js +11 -0
- package/dist/cjs/Combobox/Combobox.js +62 -0
- package/dist/cjs/Combobox/ComboboxInput.js +171 -0
- package/dist/cjs/Combobox/ComboboxItem.js +72 -0
- package/dist/cjs/Combobox/ComboboxItems.js +107 -0
- package/dist/cjs/Combobox/ComboboxPopover.js +250 -0
- package/dist/cjs/Combobox/index.js +11 -0
- package/dist/cjs/DataTable/DataTable.js +271 -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 +74 -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 +169 -0
- package/dist/cjs/DateField/index.js +11 -0
- package/dist/cjs/Divider/Divider.js +44 -0
- package/dist/cjs/Divider/index.js +15 -0
- package/dist/cjs/DragDrop/DragDrop.js +226 -0
- package/dist/cjs/DragDrop/index.js +11 -0
- package/dist/cjs/Drawer/Drawer.js +99 -0
- package/dist/cjs/Drawer/index.js +11 -0
- package/dist/cjs/Dropdown/Dropdown.js +295 -0
- package/dist/cjs/Dropdown/Dropdown.test.js +35 -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 +94 -0
- package/dist/cjs/EditActions/index.js +11 -0
- package/dist/cjs/Field/Field.js +130 -0
- package/dist/cjs/Field/index.js +11 -0
- package/dist/cjs/FieldSet/FieldSet.js +49 -0
- package/dist/cjs/FieldSet/index.js +11 -0
- package/dist/cjs/FilterLayout/FilterLayout.js +95 -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 +109 -0
- package/dist/cjs/GridView/index.js +15 -0
- package/dist/cjs/Group/Group.js +48 -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 +47 -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 +33 -0
- package/dist/cjs/Icon/Status.js +51 -0
- package/dist/cjs/Icon/index.js +17 -0
- package/dist/cjs/Input/Inline.js +59 -0
- package/dist/cjs/Input/Input.js +130 -0
- package/dist/cjs/Input/InputBox.js +350 -0
- package/dist/cjs/Input/InputContext.js +10 -0
- package/dist/cjs/Input/InputField.js +290 -0
- package/dist/cjs/Input/InputLabel.js +93 -0
- package/dist/cjs/Input/index.js +23 -0
- package/dist/cjs/Input/utils.js +13 -0
- package/dist/cjs/ItemList/ItemList.js +262 -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 +26 -0
- package/dist/cjs/Menu/Item.js +90 -0
- package/dist/cjs/Menu/Menu.js +30 -0
- package/dist/cjs/Menu/index.js +11 -0
- package/dist/cjs/Modal/Modal.js +65 -0
- package/dist/cjs/Modal/index.js +11 -0
- package/dist/cjs/NumberField/NumberField.js +244 -0
- package/dist/cjs/NumberField/NumberField.test.js +220 -0
- package/dist/cjs/NumberField/index.js +11 -0
- package/dist/cjs/Page/PageActions.js +22 -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 +48 -0
- package/dist/cjs/Page/PageTab.js +21 -0
- package/dist/cjs/Page/PageTabList.js +26 -0
- package/dist/cjs/Page/PageTitle.js +25 -0
- package/dist/cjs/Page/PageToolbar.js +23 -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 +148 -0
- package/dist/cjs/Pagination/index.js +11 -0
- package/dist/cjs/Popover/Popover.js +214 -0
- package/dist/cjs/Popover/index.js +15 -0
- package/dist/cjs/Popover/rewireTabOrder.js +123 -0
- package/dist/cjs/Popover/utils.js +72 -0
- package/dist/cjs/Portal/Portal.js +166 -0
- package/dist/cjs/Portal/index.js +15 -0
- package/dist/cjs/Progress/Progress.js +45 -0
- package/dist/cjs/Progress/index.js +11 -0
- package/dist/cjs/Radio/Radio.js +158 -0
- package/dist/cjs/Radio/index.js +11 -0
- package/dist/cjs/RangeSlider/RangeSlider.js +224 -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 +36 -0
- package/dist/cjs/Scrim/index.js +15 -0
- package/dist/cjs/Section/Section.js +48 -0
- package/dist/cjs/Section/index.js +11 -0
- package/dist/cjs/SegmentedControl/SegmentedControl.js +140 -0
- package/dist/cjs/SegmentedControl/index.js +11 -0
- package/dist/cjs/SegmentedTabs/SegmentedTabs.js +149 -0
- package/dist/cjs/SegmentedTabs/index.js +11 -0
- package/dist/cjs/Select/Context.js +10 -0
- package/dist/cjs/Select/Inline.js +51 -0
- package/dist/cjs/Select/Option.js +103 -0
- package/dist/cjs/Select/OptionGroup.js +34 -0
- package/dist/cjs/Select/Select.js +542 -0
- package/dist/cjs/Select/Value.js +27 -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 +55 -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 +78 -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 +45 -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 +59 -0
- package/dist/cjs/Tabs/TabList.js +92 -0
- package/dist/cjs/Tabs/TabPanel.js +28 -0
- package/dist/cjs/Tabs/TabPanels.js +49 -0
- package/dist/cjs/Tabs/Tabs.js +140 -0
- package/dist/cjs/Tabs/index.js +11 -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 +121 -0
- package/dist/cjs/ThemeProvider/index.js +15 -0
- package/dist/cjs/ThemeProvider/styles.js +40 -0
- package/dist/cjs/TileView/TileView.js +66 -0
- package/dist/cjs/TileView/index.js +15 -0
- package/dist/cjs/TimeField/TimeField.js +239 -0
- package/dist/cjs/TimeField/TimeField.test.js +273 -0
- package/dist/cjs/TimeField/index.js +11 -0
- package/dist/cjs/TimeField/utils.js +61 -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 +112 -0
- package/dist/cjs/Toolbar/index.js +11 -0
- package/dist/cjs/Tooltip/Tooltip.js +232 -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 +238 -0
- package/dist/cjs/Wizard/WizardContext.js +10 -0
- package/dist/cjs/Wizard/index.js +11 -0
- package/dist/cjs/WrapView/WrapView.js +62 -0
- package/dist/cjs/WrapView/index.js +15 -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/icons.js +126 -0
- package/dist/cjs/index.d.js +354 -0
- package/dist/cjs/index.js +340 -0
- package/dist/cjs/server.js +27 -0
- package/dist/cjs/system/box-sizes.js +61 -0
- package/dist/cjs/system/button-themes.js +286 -0
- package/dist/cjs/system/colors/colors.js +107 -0
- package/dist/cjs/system/colors/index.js +18 -0
- package/dist/cjs/system/colors/utils.js +211 -0
- package/dist/cjs/system/css.js +14 -0
- package/dist/cjs/system/cxs.js +106 -0
- package/dist/cjs/system/default-theme.js +72 -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 +47 -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 +184 -0
- package/dist/cjs/utils.js +870 -0
- package/dist/cjs/vendor/react-measure/Measure.js +158 -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 +111 -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 +42 -0
- package/dist/esm/Avatar/index.js +2 -0
- package/dist/esm/Badge/Badge.js +105 -0
- package/dist/esm/Badge/Status.js +98 -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 +258 -0
- package/dist/esm/Button/Button.test.js +53 -0
- package/dist/esm/Button/Input.js +163 -0
- package/dist/esm/Button/index.js +2 -0
- package/dist/esm/Calendar/Calendar.js +349 -0
- package/dist/esm/Calendar/Day.js +92 -0
- package/dist/esm/Calendar/index.js +2 -0
- package/dist/esm/Calendar/utils.js +80 -0
- package/dist/esm/Card/Card.js +44 -0
- package/dist/esm/Card/index.js +2 -0
- package/dist/esm/Checkbox/Checkbox.js +204 -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 +127 -0
- package/dist/esm/ChurchCenterStatus/index.js +2 -0
- package/dist/esm/Collapse/Collapse.js +112 -0
- package/dist/esm/Collapse/index.js +2 -0
- package/dist/esm/ColumnView/ColumnView.js +49 -0
- package/dist/esm/ColumnView/index.js +2 -0
- package/dist/esm/Combobox/Combobox.js +48 -0
- package/dist/esm/Combobox/ComboboxInput.js +160 -0
- package/dist/esm/Combobox/ComboboxItem.js +58 -0
- package/dist/esm/Combobox/ComboboxItems.js +89 -0
- package/dist/esm/Combobox/ComboboxPopover.js +243 -0
- package/dist/esm/Combobox/index.js +2 -0
- package/dist/esm/DataTable/DataTable.js +247 -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 +62 -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 +158 -0
- package/dist/esm/DateField/index.js +2 -0
- package/dist/esm/Divider/Divider.js +35 -0
- package/dist/esm/Divider/index.js +2 -0
- package/dist/esm/DragDrop/DragDrop.js +213 -0
- package/dist/esm/DragDrop/index.js +2 -0
- package/dist/esm/Drawer/Drawer.js +87 -0
- package/dist/esm/Drawer/index.js +2 -0
- package/dist/esm/Dropdown/Dropdown.js +282 -0
- package/dist/esm/Dropdown/Dropdown.test.js +26 -0
- package/dist/esm/Dropdown/Item.js +58 -0
- package/dist/esm/Dropdown/Link.js +67 -0
- package/dist/esm/Dropdown/index.js +2 -0
- package/dist/esm/EditActions/EditActions.js +79 -0
- package/dist/esm/EditActions/index.js +2 -0
- package/dist/esm/Field/Field.js +114 -0
- package/dist/esm/Field/index.js +2 -0
- package/dist/esm/FieldSet/FieldSet.js +36 -0
- package/dist/esm/FieldSet/index.js +2 -0
- package/dist/esm/FilterLayout/FilterLayout.js +82 -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 +98 -0
- package/dist/esm/GridView/index.js +2 -0
- package/dist/esm/Group/Group.js +36 -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 +36 -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 +22 -0
- package/dist/esm/Icon/Status.js +39 -0
- package/dist/esm/Icon/index.js +6 -0
- package/dist/esm/Input/Inline.js +49 -0
- package/dist/esm/Input/Input.js +116 -0
- package/dist/esm/Input/InputBox.js +339 -0
- package/dist/esm/Input/InputContext.js +3 -0
- package/dist/esm/Input/InputField.js +281 -0
- package/dist/esm/Input/InputLabel.js +79 -0
- package/dist/esm/Input/index.js +10 -0
- package/dist/esm/Input/utils.js +5 -0
- package/dist/esm/ItemList/ItemList.js +272 -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 +16 -0
- package/dist/esm/Menu/Item.js +77 -0
- package/dist/esm/Menu/Menu.js +18 -0
- package/dist/esm/Menu/index.js +2 -0
- package/dist/esm/Modal/Modal.js +50 -0
- package/dist/esm/Modal/index.js +2 -0
- package/dist/esm/NumberField/NumberField.js +241 -0
- package/dist/esm/NumberField/NumberField.test.js +190 -0
- package/dist/esm/NumberField/index.js +2 -0
- package/dist/esm/Page/PageActions.js +12 -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 +34 -0
- package/dist/esm/Page/PageTab.js +11 -0
- package/dist/esm/Page/PageTabList.js +14 -0
- package/dist/esm/Page/PageTitle.js +14 -0
- package/dist/esm/Page/PageToolbar.js +14 -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 +131 -0
- package/dist/esm/Pagination/index.js +2 -0
- package/dist/esm/Popover/Popover.js +197 -0
- package/dist/esm/Popover/index.js +2 -0
- package/dist/esm/Popover/rewireTabOrder.js +122 -0
- package/dist/esm/Popover/utils.js +62 -0
- package/dist/esm/Portal/Portal.js +158 -0
- package/dist/esm/Portal/index.js +2 -0
- package/dist/esm/Progress/Progress.js +35 -0
- package/dist/esm/Progress/index.js +2 -0
- package/dist/esm/Radio/Radio.js +139 -0
- package/dist/esm/Radio/index.js +2 -0
- package/dist/esm/RangeSlider/RangeSlider.js +210 -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 +24 -0
- package/dist/esm/Scrim/index.js +2 -0
- package/dist/esm/Section/Section.js +36 -0
- package/dist/esm/Section/index.js +2 -0
- package/dist/esm/SegmentedControl/SegmentedControl.js +129 -0
- package/dist/esm/SegmentedControl/index.js +2 -0
- package/dist/esm/SegmentedTabs/SegmentedTabs.js +137 -0
- package/dist/esm/SegmentedTabs/index.js +2 -0
- package/dist/esm/Select/Context.js +3 -0
- package/dist/esm/Select/Inline.js +41 -0
- package/dist/esm/Select/Option.js +88 -0
- package/dist/esm/Select/OptionGroup.js +24 -0
- package/dist/esm/Select/Select.js +535 -0
- package/dist/esm/Select/Value.js +17 -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 +39 -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 +91 -0
- package/dist/esm/StackView/index.js +2 -0
- package/dist/esm/StepperField/StepperField.js +64 -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 +31 -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 +47 -0
- package/dist/esm/Tabs/TabList.js +78 -0
- package/dist/esm/Tabs/TabPanel.js +18 -0
- package/dist/esm/Tabs/TabPanels.js +35 -0
- package/dist/esm/Tabs/Tabs.js +133 -0
- package/dist/esm/Tabs/index.js +2 -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 +96 -0
- package/dist/esm/ThemeProvider/index.js +2 -0
- package/dist/esm/ThemeProvider/styles.js +29 -0
- package/dist/esm/TileView/TileView.js +54 -0
- package/dist/esm/TileView/index.js +2 -0
- package/dist/esm/TimeField/TimeField.js +237 -0
- package/dist/esm/TimeField/TimeField.test.js +241 -0
- package/dist/esm/TimeField/index.js +2 -0
- package/dist/esm/TimeField/utils.js +40 -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 +98 -0
- package/dist/esm/Toolbar/index.js +2 -0
- package/dist/esm/Tooltip/Tooltip.js +230 -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 +226 -0
- package/dist/esm/Wizard/WizardContext.js +3 -0
- package/dist/esm/Wizard/index.js +2 -0
- package/dist/esm/WrapView/WrapView.js +52 -0
- package/dist/esm/WrapView/index.js +2 -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/icons.js +121 -0
- package/dist/esm/index.d.js +78 -0
- package/dist/esm/index.js +86 -0
- package/dist/esm/server.js +13 -0
- package/dist/esm/system/box-sizes.js +54 -0
- package/dist/esm/system/button-themes.js +281 -0
- package/dist/esm/system/colors/colors.js +97 -0
- package/dist/esm/system/colors/index.js +2 -0
- package/dist/esm/system/colors/utils.js +183 -0
- package/dist/esm/system/css.js +6 -0
- package/dist/esm/system/cxs.js +101 -0
- package/dist/esm/system/default-theme.js +60 -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 +38 -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 +144 -0
- package/dist/esm/utils.js +824 -0
- package/dist/esm/vendor/react-measure/Measure.js +156 -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 +10 -0
- package/dist/types/Alert/Alert.test.d.ts +1 -0
- package/dist/types/Alert/index.d.ts +2 -0
- package/dist/types/Box/Box.d.ts +26 -0
- package/dist/types/Box/index.d.ts +2 -0
- package/dist/types/Button/Button.d.ts +108 -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 +12 -0
- package/dist/types/Card/index.d.ts +2 -0
- package/dist/types/ChurchCenterStatus/ChurchCenterStatus.d.ts +45 -0
- package/dist/types/ChurchCenterStatus/index.d.ts +2 -0
- package/dist/types/Divider/Divider.d.ts +24 -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 +14 -0
- package/dist/types/FilterLayout/index.d.ts +2 -0
- package/dist/types/GridView/GridView.d.ts +26 -0
- package/dist/types/GridView/index.d.ts +2 -0
- package/dist/types/Group/Group.d.ts +20 -0
- package/dist/types/Group/index.d.ts +2 -0
- package/dist/types/NumberField/NumberField.test.d.ts +1 -0
- package/dist/types/Popover/Popover.d.ts +115 -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 +49 -0
- package/dist/types/Portal/Portal.d.ts +34 -0
- package/dist/types/Portal/index.d.ts +2 -0
- package/dist/types/Scrim/Scrim.d.ts +3 -0
- package/dist/types/Scrim/index.d.ts +2 -0
- package/dist/types/Spinner/Spinner.d.ts +24 -0
- package/dist/types/Spinner/index.d.ts +2 -0
- package/dist/types/StackView/StackView.d.ts +28 -0
- package/dist/types/StackView/index.d.ts +2 -0
- package/dist/types/Tab/Tab.d.ts +16 -0
- package/dist/types/Tab/index.d.ts +2 -0
- package/dist/types/Text/Text.d.ts +44 -0
- package/dist/types/Text/index.d.ts +2 -0
- package/dist/types/ThemeProvider/ThemeProvider.d.ts +24 -0
- package/dist/types/ThemeProvider/index.d.ts +2 -0
- package/dist/types/ThemeProvider/styles.d.ts +3 -0
- package/dist/types/TileView/TileView.d.ts +13 -0
- package/dist/types/TileView/index.d.ts +2 -0
- package/dist/types/TimeField/TimeField.test.d.ts +1 -0
- package/dist/types/WrapView/WrapView.d.ts +9 -0
- package/dist/types/WrapView/index.d.ts +2 -0
- package/dist/types/hooks/use-accessibility-violation.d.ts +34 -0
- package/dist/types/index.d.ts +340 -0
- package/dist/types/system/default-theme.d.ts +3 -0
- package/dist/types/system/style-names.d.ts +8 -0
- package/package.json +122 -0
- package/src/ActionsDropdown/ActionsDropdown.mdx +69 -0
- package/src/ActionsDropdown/ActionsDropdown.tsx +179 -0
- package/src/ActionsDropdown/index.ts +2 -0
- package/src/Alert/Alert.mdx +14 -0
- package/src/Alert/Alert.test.tsx +9 -0
- package/src/Alert/Alert.tsx +36 -0
- package/src/Alert/index.ts +2 -0
- package/src/Avatar/Avatar.js +53 -0
- package/src/Avatar/Avatar.mdx +95 -0
- package/src/Avatar/index.js +2 -0
- package/src/Badge/Badge.js +155 -0
- package/src/Badge/Badge.mdx +60 -0
- package/src/Badge/Status.js +101 -0
- package/src/Badge/Status.mdx +32 -0
- package/src/Badge/index.js +4 -0
- package/src/Box/Box.mdx +14 -0
- package/src/Box/Box.tsx +56 -0
- package/src/Box/index.ts +2 -0
- package/src/Button/Button.mdx +130 -0
- package/src/Button/Button.test.tsx +33 -0
- package/src/Button/Button.tsx +340 -0
- package/src/Button/Input.mdx +169 -0
- package/src/Button/Input.tsx +192 -0
- package/src/Button/index.ts +2 -0
- package/src/Calendar/Calendar.js +463 -0
- package/src/Calendar/Calendar.mdx +127 -0
- package/src/Calendar/Day.js +108 -0
- package/src/Calendar/index.js +2 -0
- package/src/Calendar/utils.js +115 -0
- package/src/Card/Card.mdx +63 -0
- package/src/Card/Card.tsx +63 -0
- package/src/Card/index.ts +2 -0
- package/src/Checkbox/Checkbox.js +258 -0
- package/src/Checkbox/Checkbox.mdx +40 -0
- package/src/Checkbox/index.js +2 -0
- package/src/CheckboxCard/CheckboxCard.js +52 -0
- package/src/CheckboxCard/CheckboxCard.mdx +27 -0
- package/src/CheckboxCard/index.js +2 -0
- package/src/CheckboxGroup/CheckboxGroup.js +56 -0
- package/src/CheckboxGroup/CheckboxGroup.mdx +27 -0
- package/src/CheckboxGroup/CheckboxGroupContext.js +3 -0
- package/src/CheckboxGroup/index.js +2 -0
- package/src/ChurchCenterStatus/ChurchCenterStatus.mdx +105 -0
- package/src/ChurchCenterStatus/ChurchCenterStatus.tsx +168 -0
- package/src/ChurchCenterStatus/index.tsx +2 -0
- package/src/Collapse/Collapse.js +118 -0
- package/src/Collapse/Collapse.mdx +26 -0
- package/src/Collapse/index.js +2 -0
- package/src/ColumnView/ColumnView.js +61 -0
- package/src/ColumnView/ColumnView.mdx +39 -0
- package/src/ColumnView/index.js +2 -0
- package/src/Combobox/Combobox.js +39 -0
- package/src/Combobox/Combobox.mdx +177 -0
- package/src/Combobox/Combobox.test.js +90 -0
- package/src/Combobox/ComboboxInput.js +136 -0
- package/src/Combobox/ComboboxItem.js +33 -0
- package/src/Combobox/ComboboxItems.js +121 -0
- package/src/Combobox/ComboboxPopover.js +232 -0
- package/src/Combobox/index.js +2 -0
- package/src/DataTable/DataTable.js +523 -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 +122 -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.js +172 -0
- package/src/DateField/DateField.mdx +17 -0
- package/src/DateField/index.js +2 -0
- package/src/Divider/Divider.mdx +42 -0
- package/src/Divider/Divider.tsx +51 -0
- package/src/Divider/index.ts +2 -0
- package/src/DragDrop/DragDrop.js +211 -0
- package/src/DragDrop/DragDrop.mdx +204 -0
- package/src/DragDrop/index.js +2 -0
- package/src/Drawer/Drawer.js +93 -0
- package/src/Drawer/Drawer.mdx +49 -0
- package/src/Drawer/index.js +2 -0
- package/src/Dropdown/Dropdown.js +262 -0
- package/src/Dropdown/Dropdown.mdx +201 -0
- package/src/Dropdown/Dropdown.test.tsx +22 -0
- package/src/Dropdown/Item.js +39 -0
- package/src/Dropdown/Link.js +43 -0
- package/src/Dropdown/index.js +2 -0
- package/src/EditActions/EditActions.js +61 -0
- package/src/EditActions/EditActions.mdx +143 -0
- package/src/EditActions/index.js +2 -0
- package/src/Field/Field.js +141 -0
- package/src/Field/Field.mdx +37 -0
- package/src/Field/index.js +2 -0
- package/src/FieldSet/FieldSet.js +57 -0
- package/src/FieldSet/FieldSet.mdx +24 -0
- package/src/FieldSet/index.js +2 -0
- package/src/FilterLayout/FilterLayout.mdx +33 -0
- package/src/FilterLayout/FilterLayout.tsx +93 -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 +152 -0
- package/src/Form/index.js +2 -0
- package/src/GridView/GridView.mdx +55 -0
- package/src/GridView/GridView.tsx +131 -0
- package/src/GridView/index.ts +2 -0
- package/src/Group/Group.mdx +78 -0
- package/src/Group/Group.tsx +52 -0
- package/src/Group/index.ts +2 -0
- package/src/Heading/Heading.js +27 -0
- package/src/Heading/Heading.mdx +17 -0
- package/src/Heading/index.js +2 -0
- package/src/HeadingUppercase/HeadingUppercase.js +26 -0
- package/src/HeadingUppercase/HeadingUppercase.mdx +8 -0
- package/src/HeadingUppercase/index.js +2 -0
- package/src/HelperDrawer/HelperDrawer.js +57 -0
- package/src/HelperDrawer/HelperDrawer.mdx +18 -0
- package/src/HelperDrawer/index.js +2 -0
- package/src/Highlight/Highlight.js +63 -0
- package/src/Highlight/Highlight.mdx +14 -0
- package/src/Highlight/index.js +2 -0
- package/src/Highlight/utils.js +51 -0
- package/src/Icon/Icon.js +58 -0
- package/src/Icon/Icon.mdx +78 -0
- package/src/Icon/Path.js +20 -0
- package/src/Icon/Status.js +41 -0
- package/src/Icon/index.js +6 -0
- package/src/Input/Inline.js +53 -0
- package/src/Input/Inline.mdx +43 -0
- package/src/Input/Input.js +97 -0
- package/src/Input/Input.mdx +33 -0
- package/src/Input/InputBox.js +407 -0
- package/src/Input/InputBox.mdx +14 -0
- package/src/Input/InputContext.js +3 -0
- package/src/Input/InputField.js +308 -0
- package/src/Input/InputField.mdx +9 -0
- package/src/Input/InputLabel.js +65 -0
- package/src/Input/InputLabel.mdx +18 -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 +73 -0
- package/src/Link/Link.mdx +31 -0
- package/src/Link/index.js +4 -0
- package/src/LinkList/LinkList.js +25 -0
- package/src/LinkList/LinkList.mdx +29 -0
- package/src/LinkList/index.js +2 -0
- package/src/List/List.js +51 -0
- package/src/List/List.mdx +41 -0
- package/src/List/ListItem.js +41 -0
- package/src/List/index.js +2 -0
- package/src/Logo/Logo.js +112 -0
- package/src/Logo/Logo.mdx +18 -0
- package/src/Logo/index.js +2 -0
- package/src/Menu/Heading.js +13 -0
- package/src/Menu/Item.js +99 -0
- package/src/Menu/Menu.js +23 -0
- package/src/Menu/Menu.mdx +40 -0
- package/src/Menu/index.js +2 -0
- package/src/Modal/Modal.js +77 -0
- package/src/Modal/Modal.mdx +58 -0
- package/src/Modal/index.js +2 -0
- package/src/NumberField/NumberField.js +255 -0
- package/src/NumberField/NumberField.mdx +62 -0
- package/src/NumberField/NumberField.test.tsx +137 -0
- package/src/NumberField/index.js +2 -0
- package/src/Page/Page.mdx +109 -0
- package/src/Page/PageActions.js +9 -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 +43 -0
- package/src/Page/PageTab.js +9 -0
- package/src/Page/PageTabList.js +13 -0
- package/src/Page/PageTitle.js +11 -0
- package/src/Page/PageToolbar.js +18 -0
- package/src/Page/index.js +21 -0
- package/src/PagerView/PagerView.js +222 -0
- package/src/PagerView/PagerView.mdx +199 -0
- package/src/PagerView/index.js +2 -0
- package/src/Pagination/Pagination.js +145 -0
- package/src/Pagination/Pagination.mdx +18 -0
- package/src/Pagination/index.js +2 -0
- package/src/Popover/Popover.mdx +65 -0
- package/src/Popover/Popover.tsx +262 -0
- package/src/Popover/index.ts +2 -0
- package/src/Popover/rewireTabOrder.ts +124 -0
- package/src/Popover/utils.ts +62 -0
- package/src/Portal/Portal.tsx +142 -0
- package/src/Portal/index.ts +2 -0
- package/src/Progress/Progress.js +45 -0
- package/src/Progress/Progress.mdx +21 -0
- package/src/Progress/index.js +2 -0
- package/src/Radio/Radio.js +186 -0
- package/src/Radio/Radio.mdx +37 -0
- package/src/Radio/index.js +2 -0
- package/src/RangeSlider/RangeSlider.js +244 -0
- package/src/RangeSlider/RangeSlider.mdx +54 -0
- package/src/RangeSlider/index.js +2 -0
- package/src/ScreenReader/ScreenReader.js +31 -0
- package/src/ScreenReader/ScreenReader.mdx +14 -0
- package/src/ScreenReader/index.js +2 -0
- package/src/Scrim/Scrim.mdx +30 -0
- package/src/Scrim/Scrim.tsx +29 -0
- package/src/Scrim/index.ts +2 -0
- package/src/Section/Section.js +43 -0
- package/src/Section/Section.mdx +101 -0
- package/src/Section/index.js +2 -0
- package/src/SegmentedControl/SegmentedControl.js +123 -0
- package/src/SegmentedControl/SegmentedControl.mdx +70 -0
- package/src/SegmentedControl/index.js +2 -0
- package/src/SegmentedTabs/SegmentedTabs.js +126 -0
- package/src/SegmentedTabs/SegmentedTabs.mdx +72 -0
- package/src/SegmentedTabs/index.js +2 -0
- package/src/Select/Context.js +3 -0
- package/src/Select/Inline.js +32 -0
- package/src/Select/Option.js +84 -0
- package/src/Select/OptionGroup.js +13 -0
- package/src/Select/Select.js +554 -0
- package/src/Select/Select.mdx +177 -0
- package/src/Select/Value.js +20 -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 +42 -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 +48 -0
- package/src/Spinner/Spinner.tsx +100 -0
- package/src/Spinner/index.tsx +2 -0
- package/src/StackView/StackView.mdx +139 -0
- package/src/StackView/StackView.tsx +109 -0
- package/src/StackView/index.ts +2 -0
- package/src/StepperField/StepperField.js +48 -0
- package/src/StepperField/StepperField.mdx +20 -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 +46 -0
- package/src/StepperProgress/StepperProgress.mdx +59 -0
- package/src/StepperProgress/index.js +4 -0
- package/src/Summary/Summary.js +42 -0
- package/src/Summary/Summary.mdx +25 -0
- package/src/Summary/index.js +2 -0
- package/src/Tab/Tab.mdx +21 -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 +48 -0
- package/src/Tabs/TabList.js +73 -0
- package/src/Tabs/TabPanel.js +21 -0
- package/src/Tabs/TabPanels.js +26 -0
- package/src/Tabs/Tabs.js +128 -0
- package/src/Tabs/Tabs.mdx +49 -0
- package/src/Tabs/index.js +2 -0
- package/src/Text/Text.mdx +18 -0
- package/src/Text/Text.tsx +124 -0
- package/src/Text/index.ts +2 -0
- package/src/TextArea/TextArea.js +17 -0
- package/src/TextArea/TextArea.mdx +12 -0
- package/src/TextArea/index.js +2 -0
- package/src/ThemeProvider/ThemeProvider.tsx +99 -0
- package/src/ThemeProvider/index.ts +2 -0
- package/src/ThemeProvider/styles.ts +64 -0
- package/src/TileView/TileView.mdx +55 -0
- package/src/TileView/TileView.tsx +58 -0
- package/src/TileView/index.ts +2 -0
- package/src/TimeField/TimeField.js +245 -0
- package/src/TimeField/TimeField.mdx +94 -0
- package/src/TimeField/TimeField.test.tsx +161 -0
- package/src/TimeField/index.js +2 -0
- package/src/TimeField/utils.js +44 -0
- package/src/TokenInput/DefaultToken.js +36 -0
- package/src/TokenInput/TokenInput.js +251 -0
- package/src/TokenInput/TokenInput.mdx +102 -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 +139 -0
- package/src/Toolbar/Toolbar.mdx +46 -0
- package/src/Toolbar/index.js +2 -0
- package/src/Tooltip/Tooltip.js +247 -0
- package/src/Tooltip/Tooltip.mdx +77 -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.js +253 -0
- package/src/Wizard/Wizard.mdx +99 -0
- package/src/Wizard/WizardContext.js +3 -0
- package/src/Wizard/index.js +2 -0
- package/src/WrapView/WrapView.mdx +72 -0
- package/src/WrapView/WrapView.tsx +55 -0
- package/src/WrapView/index.ts +2 -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/icons.js +121 -0
- package/src/index.d.ts +340 -0
- package/src/index.js +94 -0
- package/src/server.js +16 -0
- package/src/system/README.md +120 -0
- package/src/system/box-sizes.js +51 -0
- package/src/system/button-themes.js +173 -0
- package/src/system/colors/colors.js +195 -0
- package/src/system/colors/index.js +8 -0
- package/src/system/colors/utils.js +190 -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 +44 -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 +57 -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 +107 -0
- package/src/system/style-names.ts +277 -0
- package/src/system/use-css.js +12 -0
- package/src/system/utils.js +138 -0
- package/src/utils.js +808 -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
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
2
|
+
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
|
+
|
|
9
|
+
import { Component } from 'react';
|
|
10
|
+
import ResizeObserver from 'resize-observer-polyfill';
|
|
11
|
+
import { defaultFormula } from './utils'; // TODO: look into measureText function that uses canvas measurer to collect widths faster, should be able to accept an array
|
|
12
|
+
// possibly have const { measureRef, measureText } = measure(id), measureText(txt) | measureText([txt,txt,txt])
|
|
13
|
+
|
|
14
|
+
var Measure = /*#__PURE__*/function (_Component) {
|
|
15
|
+
_inheritsLoose(Measure, _Component);
|
|
16
|
+
|
|
17
|
+
function Measure() {
|
|
18
|
+
var _this;
|
|
19
|
+
|
|
20
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
21
|
+
args[_key] = arguments[_key];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
_this = _Component.call.apply(_Component, [this].concat(args)) || this;
|
|
25
|
+
|
|
26
|
+
_defineProperty(_assertThisInitialized(_this), "firstResizeEvent", true);
|
|
27
|
+
|
|
28
|
+
_defineProperty(_assertThisInitialized(_this), "storingMeasurements", false);
|
|
29
|
+
|
|
30
|
+
_defineProperty(_assertThisInitialized(_this), "nodes", {});
|
|
31
|
+
|
|
32
|
+
_defineProperty(_assertThisInitialized(_this), "formulas", {});
|
|
33
|
+
|
|
34
|
+
_defineProperty(_assertThisInitialized(_this), "refsById", {});
|
|
35
|
+
|
|
36
|
+
_defineProperty(_assertThisInitialized(_this), "measurements", null);
|
|
37
|
+
|
|
38
|
+
_defineProperty(_assertThisInitialized(_this), "measureRef", function (id, _temp) {
|
|
39
|
+
var _ref = _temp === void 0 ? {} : _temp,
|
|
40
|
+
_ref$formula = _ref.formula,
|
|
41
|
+
formula = _ref$formula === void 0 ? defaultFormula : _ref$formula,
|
|
42
|
+
innerRef = _ref.innerRef;
|
|
43
|
+
|
|
44
|
+
if (!_this.refsById[id]) {
|
|
45
|
+
_this.refsById[id] = function (node) {
|
|
46
|
+
var previousStoredNode = _this.nodes[id];
|
|
47
|
+
|
|
48
|
+
if (node) {
|
|
49
|
+
// store id on node so we can retrieve formula and store new
|
|
50
|
+
// measurements in ResizeObserver callback
|
|
51
|
+
node.__measureId = id;
|
|
52
|
+
_this.nodes[id] = node;
|
|
53
|
+
_this.formulas[id] = formula;
|
|
54
|
+
|
|
55
|
+
_this.resizeObserver.observe(node);
|
|
56
|
+
} else if (previousStoredNode) {
|
|
57
|
+
_this.resizeObserver.unobserve(previousStoredNode);
|
|
58
|
+
|
|
59
|
+
delete _this.formulas[id];
|
|
60
|
+
delete _this.nodes[id];
|
|
61
|
+
delete _this.measurements[id];
|
|
62
|
+
} // allow other libraries to interop with node
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
if (innerRef) {
|
|
66
|
+
innerRef(node);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return _this.refsById[id];
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
_defineProperty(_assertThisInitialized(_this), "getMeasurements", function () {
|
|
75
|
+
return Object.keys(_this.nodes).reduce(function (measurements, key) {
|
|
76
|
+
var _objectSpread2;
|
|
77
|
+
|
|
78
|
+
var node = _this.nodes[key];
|
|
79
|
+
var formula = _this.formulas[key];
|
|
80
|
+
return _objectSpread(_objectSpread({}, measurements), {}, (_objectSpread2 = {}, _objectSpread2[key] = formula(node), _objectSpread2));
|
|
81
|
+
}, {});
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
_defineProperty(_assertThisInitialized(_this), "resizeObserver", new ResizeObserver(function (entries) {
|
|
85
|
+
if (_this.firstResizeEvent) {
|
|
86
|
+
_this.firstResizeEvent = false;
|
|
87
|
+
} else {
|
|
88
|
+
var measurements = _objectSpread({}, _this.measurements);
|
|
89
|
+
|
|
90
|
+
entries.forEach(function (entry) {
|
|
91
|
+
var id = entry.target.__measureId;
|
|
92
|
+
var node = _this.nodes[id];
|
|
93
|
+
var formula = _this.formulas[id];
|
|
94
|
+
|
|
95
|
+
if (formula) {
|
|
96
|
+
measurements[id] = formula(node);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
_this.measurements = measurements;
|
|
100
|
+
|
|
101
|
+
if (_this.props.updateOnMeasure) {
|
|
102
|
+
_this.forceUpdate();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (_this.props.onMeasure) {
|
|
106
|
+
_this.props.onMeasure(measurements, _this.nodes);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}));
|
|
110
|
+
|
|
111
|
+
return _this;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
var _proto = Measure.prototype;
|
|
115
|
+
|
|
116
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
117
|
+
if (this.props.updateOnMeasure || this.props.onMeasure) {
|
|
118
|
+
this.updateMeasurements();
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
123
|
+
if (this.resizeObserver) {
|
|
124
|
+
this.resizeObserver.disconnect();
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
_proto.updateMeasurements = function updateMeasurements() {
|
|
129
|
+
var measurements = this.getMeasurements();
|
|
130
|
+
this.measurements = measurements;
|
|
131
|
+
|
|
132
|
+
if (this.props.updateOnMeasure) {
|
|
133
|
+
this.forceUpdate();
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (this.props.onMeasure) {
|
|
137
|
+
this.props.onMeasure(measurements, this.nodes);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
_proto.render = function render() {
|
|
142
|
+
return this.props.children({
|
|
143
|
+
measureRef: this.measureRef,
|
|
144
|
+
measurements: this.measurements,
|
|
145
|
+
getMeasurements: this.getMeasurements
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
return Measure;
|
|
150
|
+
}(Component);
|
|
151
|
+
|
|
152
|
+
_defineProperty(Measure, "defaultProps", {
|
|
153
|
+
updateOnMeasure: true
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
export default Measure;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
2
|
+
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
|
+
|
|
9
|
+
import { Component } from 'react';
|
|
10
|
+
import ResizeObserver from 'resize-observer-polyfill';
|
|
11
|
+
import { getClosestScrollElement, getScrollDirection, getWindowSize, getElementSize } from './utils';
|
|
12
|
+
|
|
13
|
+
// TODO: delegate Viewport measuring to a store when multiple components measure window
|
|
14
|
+
var Viewport = /*#__PURE__*/function (_Component) {
|
|
15
|
+
_inheritsLoose(Viewport, _Component);
|
|
16
|
+
|
|
17
|
+
function Viewport() {
|
|
18
|
+
var _this;
|
|
19
|
+
|
|
20
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
21
|
+
args[_key] = arguments[_key];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
_this = _Component.call.apply(_Component, [this].concat(args)) || this;
|
|
25
|
+
|
|
26
|
+
_defineProperty(_assertThisInitialized(_this), "firstResizeEvent", true);
|
|
27
|
+
|
|
28
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
29
|
+
width: 0,
|
|
30
|
+
height: 0,
|
|
31
|
+
scrollWidth: 0,
|
|
32
|
+
scrollHeight: 0,
|
|
33
|
+
scrollX: 0,
|
|
34
|
+
scrollY: 0,
|
|
35
|
+
scrollXDirection: null,
|
|
36
|
+
scrollYDirection: null
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
_defineProperty(_assertThisInitialized(_this), "getScroll", function () {
|
|
40
|
+
var scrollX = _this.isWindow ? window.pageXOffset : _this.scrollElement.scrollLeft;
|
|
41
|
+
var scrollY = _this.isWindow ? window.pageYOffset : _this.scrollElement.scrollTop;
|
|
42
|
+
var scrollState = {
|
|
43
|
+
scrollX: scrollX,
|
|
44
|
+
scrollY: scrollY,
|
|
45
|
+
scrollXDirection: getScrollDirection('x', _this.lastScrollX, scrollX),
|
|
46
|
+
scrollYDirection: getScrollDirection('y', _this.lastScrollY, scrollY)
|
|
47
|
+
};
|
|
48
|
+
return scrollState;
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
_defineProperty(_assertThisInitialized(_this), "updateScroll", function () {
|
|
52
|
+
var scrollState = _this.getScroll();
|
|
53
|
+
|
|
54
|
+
if (_this.lastScrollX !== scrollState.scrollX || _this.lastScrollY !== scrollState.scrollY) {
|
|
55
|
+
if (_this.props.updateOnScroll) {
|
|
56
|
+
_this.setState(scrollState);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (_this.props.onScroll) {
|
|
60
|
+
_this.props.onScroll(scrollState);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
_this.lastScrollX = scrollState.scrollX;
|
|
65
|
+
_this.lastScrollY = scrollState.scrollY;
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
_defineProperty(_assertThisInitialized(_this), "getSize", function () {
|
|
69
|
+
return _this.isWindow ? getWindowSize() : getElementSize(_this.scrollElement);
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
_defineProperty(_assertThisInitialized(_this), "updateSize", function () {
|
|
73
|
+
var sizeState = _this.getSize();
|
|
74
|
+
|
|
75
|
+
if (_this.props.updateOnResize) {
|
|
76
|
+
_this.setState(sizeState);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (_this.props.onResize) {
|
|
80
|
+
_this.props.onResize(sizeState);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
_defineProperty(_assertThisInitialized(_this), "setRef", function (innerRef) {
|
|
85
|
+
if (typeof innerRef === 'function') {
|
|
86
|
+
return function (node) {
|
|
87
|
+
if (!_this.node) {
|
|
88
|
+
_this.node = node;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
innerRef(node);
|
|
92
|
+
};
|
|
93
|
+
} else {
|
|
94
|
+
if (!_this.node) {
|
|
95
|
+
_this.node = innerRef;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
return _this;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
var _proto = Viewport.prototype;
|
|
104
|
+
|
|
105
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
106
|
+
var _this2 = this;
|
|
107
|
+
|
|
108
|
+
this.scrollElement = getClosestScrollElement(this.node);
|
|
109
|
+
this.isWindow = this.scrollElement === window;
|
|
110
|
+
|
|
111
|
+
if (this.props.updateOnScroll || this.props.onScroll) {
|
|
112
|
+
this.scrollElement.addEventListener('scroll', this.updateScroll, {
|
|
113
|
+
passive: true
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
this.updateScroll();
|
|
118
|
+
|
|
119
|
+
if (this.props.updateOnResize || this.props.onResize) {
|
|
120
|
+
if (this.isWindow) {
|
|
121
|
+
window.addEventListener('resize', this.updateSize);
|
|
122
|
+
} else {
|
|
123
|
+
this.resizeObserver = new ResizeObserver(function () {
|
|
124
|
+
if (_this2.firstResizeEvent) {
|
|
125
|
+
_this2.firstResizeEvent = false;
|
|
126
|
+
} else {
|
|
127
|
+
_this2.updateSize();
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
this.resizeObserver.observe(this.scrollElement);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
this.updateSize();
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
138
|
+
if (this.props.updateOnScroll || this.props.onScroll) {
|
|
139
|
+
this.scrollElement.removeEventListener('scroll', this.updateScroll, {
|
|
140
|
+
passive: true
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (this.props.updateOnResize || this.props.onResize) {
|
|
145
|
+
if (this.isWindow) {
|
|
146
|
+
window.removeEventListener('resize', this.updateSize);
|
|
147
|
+
} else {
|
|
148
|
+
this.resizeObserver.disconnect();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
_proto.render = function render() {
|
|
154
|
+
return this.props.children(_objectSpread({
|
|
155
|
+
ref: this.setRef,
|
|
156
|
+
getScroll: this.getScroll,
|
|
157
|
+
getSize: this.getSize
|
|
158
|
+
}, this.state));
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
return Viewport;
|
|
162
|
+
}(Component);
|
|
163
|
+
|
|
164
|
+
_defineProperty(Viewport, "defaultProps", {
|
|
165
|
+
updateOnScroll: true,
|
|
166
|
+
updateOnResize: true
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
export default Viewport;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export function isScrollElement(element) {
|
|
2
|
+
try {
|
|
3
|
+
var _window$getComputedSt = window.getComputedStyle(element),
|
|
4
|
+
overflow = _window$getComputedSt.overflow,
|
|
5
|
+
overflowX = _window$getComputedSt.overflowX,
|
|
6
|
+
overflowY = _window$getComputedSt.overflowY;
|
|
7
|
+
|
|
8
|
+
return /(auto|scroll)/.test(overflow + overflowX + overflowY);
|
|
9
|
+
} catch (e) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export function getParentNode(element) {
|
|
14
|
+
if (element.nodeName === 'HTML') {
|
|
15
|
+
return element;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return element.parentNode || element.host;
|
|
19
|
+
}
|
|
20
|
+
export function getClosestScrollElement(element) {
|
|
21
|
+
if (!element || element === document.body) {
|
|
22
|
+
return window;
|
|
23
|
+
} else if (isScrollElement(element)) {
|
|
24
|
+
return element;
|
|
25
|
+
} else {
|
|
26
|
+
return getClosestScrollElement(getParentNode(element));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export function getScrollDirection(axis, last, next) {
|
|
30
|
+
if (next === last) {
|
|
31
|
+
return null;
|
|
32
|
+
} else {
|
|
33
|
+
return next - last > 0 ? axis === 'x' ? 'right' : 'down' : axis === 'x' ? 'left' : 'up';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export function getDocumentWidth() {
|
|
37
|
+
return Math.max(document.body.scrollWidth, document.body.offsetWidth, document.documentElement.clientWidth, document.documentElement.scrollWidth, document.documentElement.offsetWidth);
|
|
38
|
+
}
|
|
39
|
+
export function getDocumentHeight() {
|
|
40
|
+
return Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight);
|
|
41
|
+
}
|
|
42
|
+
export function getWindowSize() {
|
|
43
|
+
return {
|
|
44
|
+
width: window.innerWidth,
|
|
45
|
+
height: window.innerHeight,
|
|
46
|
+
scrollWidth: getDocumentWidth(),
|
|
47
|
+
scrollHeight: getDocumentHeight()
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function getElementSize(node) {
|
|
51
|
+
return {
|
|
52
|
+
width: node.offsetWidth,
|
|
53
|
+
height: node.offsetHeight,
|
|
54
|
+
scrollWidth: node.scrollWidth,
|
|
55
|
+
scrollHeight: node.scrollHeight
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function defaultFormula(node) {
|
|
59
|
+
var rect = node.getBoundingClientRect();
|
|
60
|
+
return {
|
|
61
|
+
width: rect.width,
|
|
62
|
+
height: rect.height,
|
|
63
|
+
top: rect.top,
|
|
64
|
+
right: rect.right,
|
|
65
|
+
bottom: rect.bottom,
|
|
66
|
+
left: rect.left
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type ActionsDropdownProps = {
|
|
3
|
+
/** Accepts [Dropdown.Item](/dropdown) and [Dropdown.Link](/dropdown) elements. */
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** Props for default button state. */
|
|
6
|
+
defaultButtonProps?: object;
|
|
7
|
+
/** Provide amount of duplicates as well as a link to resolve them. */
|
|
8
|
+
duplicates?: {
|
|
9
|
+
/** Amount of duplicates. */
|
|
10
|
+
amount: number;
|
|
11
|
+
/** [Link](/link) props. */
|
|
12
|
+
linkProps: object;
|
|
13
|
+
};
|
|
14
|
+
/** Props for duplicates button state. Activated when `duplicates.amount` is greater than 0. */
|
|
15
|
+
duplicatesButtonProps?: object;
|
|
16
|
+
/** Provide date and reason user became inactive as well as a link to reactivate them. */
|
|
17
|
+
inactive?: {
|
|
18
|
+
/** Valid JavaScript Date. */
|
|
19
|
+
date?: Date;
|
|
20
|
+
/** Reason user was inactivated. */
|
|
21
|
+
reason: string;
|
|
22
|
+
/** [Link](/link) props. */
|
|
23
|
+
linkProps: object;
|
|
24
|
+
};
|
|
25
|
+
/** Props for inactive button state. Activated when `inactive.date` is present. */
|
|
26
|
+
inactiveButtonProps?: object;
|
|
27
|
+
/** Determines logic for when user is below manager role. */
|
|
28
|
+
isBelowManager?: boolean;
|
|
29
|
+
/** Determines logic for when used in People product. */
|
|
30
|
+
isPeopleProduct?: boolean;
|
|
31
|
+
/** Callback when "Delete Profile" item is selected. */
|
|
32
|
+
onDeleteProfile?: boolean;
|
|
33
|
+
};
|
|
34
|
+
export declare function ActionsDropdown({ children, defaultButtonProps, duplicates, duplicatesButtonProps, inactive, inactiveButtonProps, isBelowManager, isPeopleProduct, onDeleteProfile, }: ActionsDropdownProps): JSX.Element;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MediaQueries } from '../index';
|
|
3
|
+
import { StackViewProps } from '../StackView';
|
|
4
|
+
export declare type AlertProps = {
|
|
5
|
+
/** Sets status theme colors. */
|
|
6
|
+
type?: 'warning' | 'success' | 'error';
|
|
7
|
+
} & StackViewProps;
|
|
8
|
+
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & AlertProps & MediaQueries<AlertProps>;
|
|
9
|
+
export declare function Alert(props: Props): JSX.Element;
|
|
10
|
+
export default Alert;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleProps, MediaQueries, Variants } from '../index';
|
|
3
|
+
export declare type BoxProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Render custom component or HTML element tag.
|
|
6
|
+
*/
|
|
7
|
+
as?: any;
|
|
8
|
+
/**
|
|
9
|
+
* Gain access to the internal ref
|
|
10
|
+
*/
|
|
11
|
+
innerRef?: any;
|
|
12
|
+
/**
|
|
13
|
+
* If true, sets "display: inline-block", otherwise it defaults to "display: block"
|
|
14
|
+
*/
|
|
15
|
+
inline?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Controls display property. If `false` sets `display: none`, otherwise defaults to initial display value.
|
|
18
|
+
*/
|
|
19
|
+
visible?: boolean;
|
|
20
|
+
} & StyleProps;
|
|
21
|
+
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & BoxProps & MediaQueries<BoxProps> & Variants<BoxProps>;
|
|
22
|
+
/**
|
|
23
|
+
* Box is the base component that everything builds from. It is responsible for processing all style props.
|
|
24
|
+
*/
|
|
25
|
+
export declare function Box({ as, innerRef, inline, ...props }: Props): JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BoxSizes, MediaQueries } from '../index';
|
|
3
|
+
import { StackViewProps } from '../StackView';
|
|
4
|
+
declare type ButtonProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Disables button by removing click handlers and making the button transparent.
|
|
7
|
+
*/
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Opens the linked destination in a new window or tab.
|
|
11
|
+
*/
|
|
12
|
+
external?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Renders an [Icon](/icon) in the center of the button. Pass a string or any valid `Icon` props.
|
|
15
|
+
* Must pass a [`title`](/button#title) or [`tooltip.title`](/tooltip#title) when using icon-only buttons.
|
|
16
|
+
*/
|
|
17
|
+
icon?: string | Object;
|
|
18
|
+
/**
|
|
19
|
+
* Same as above, but renders an icon in the left portion of the button.
|
|
20
|
+
*/
|
|
21
|
+
iconLeft?: string | Object;
|
|
22
|
+
/**
|
|
23
|
+
* Same as above, but renders an icon in the right portion of the button.
|
|
24
|
+
*/
|
|
25
|
+
iconRight?: string | Object;
|
|
26
|
+
/**
|
|
27
|
+
* Sizes the button using values defined in [boxSizes](/theming)
|
|
28
|
+
*/
|
|
29
|
+
size?: keyof BoxSizes;
|
|
30
|
+
/**
|
|
31
|
+
* Renders a [`<Spinner />`](/spinner) in the center of the button. Accepts any valid Spinner props.
|
|
32
|
+
*/
|
|
33
|
+
spinner?: any;
|
|
34
|
+
/**
|
|
35
|
+
* Uses a 1:1 ratio for sizing the button.
|
|
36
|
+
*/
|
|
37
|
+
square?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Uses theme defined in [`buttons.theme`](/theming). Pass `false` to not use theme at all.
|
|
40
|
+
*/
|
|
41
|
+
theme?: string | boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Renders a text string in the center of the button.
|
|
44
|
+
*/
|
|
45
|
+
title?: string | number;
|
|
46
|
+
/**
|
|
47
|
+
* Where the browser should navigate to when pressed.
|
|
48
|
+
*/
|
|
49
|
+
to?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Wraps button in a [`<Tooltip />`](./tooltip). Accepts any valid Tooltip props.
|
|
52
|
+
*/
|
|
53
|
+
tooltip?: string | Object;
|
|
54
|
+
/**
|
|
55
|
+
* Determines the modified style of the button.
|
|
56
|
+
*/
|
|
57
|
+
variant?: 'fill' | 'outline' | 'naked';
|
|
58
|
+
} & StackViewProps;
|
|
59
|
+
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & ButtonProps & MediaQueries<ButtonProps>;
|
|
60
|
+
export declare function Button({ children, disabled, external, icon, iconLeft, iconRight, onClick, onKeyDown, size, spinner, square, theme, title, to, tooltip, variant, ...restProps }: Props): JSX.Element;
|
|
61
|
+
export declare namespace Button {
|
|
62
|
+
var Input: React.ForwardRefExoticComponent<Pick<React.RefAttributes<any> & React.HTMLAttributes<any> & {
|
|
63
|
+
children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)> | ((inputProps: {
|
|
64
|
+
inputProps: any;
|
|
65
|
+
isOpen: boolean;
|
|
66
|
+
open: any;
|
|
67
|
+
close: any;
|
|
68
|
+
}) => React.ReactNode);
|
|
69
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
70
|
+
onClose: () => void;
|
|
71
|
+
onOpen: () => void;
|
|
72
|
+
} & {
|
|
73
|
+
as?: any;
|
|
74
|
+
innerRef?: any;
|
|
75
|
+
inline?: boolean;
|
|
76
|
+
visible?: boolean;
|
|
77
|
+
} & Pick<React.CSSProperties, "left" | "right" | "bottom" | "top" | "font" | "clipPath" | "filter" | "mask" | "resize" | "contain" | "clip" | "content" | "flex" | "clear" | "border" | "padding" | "alignContent" | "alignItems" | "alignSelf" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "backfaceVisibility" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderLeftStyle" | "borderLeftWidth" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "columnCount" | "columnFill" | "columnGap" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontSize" | "fontStretch" | "fontStyle" | "fontVariant" | "fontVariantCaps" | "fontVariantLigatures" | "fontVariantNumeric" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "imageRendering" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "listStyleImage" | "listStylePosition" | "listStyleType" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maskType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "opacity" | "order" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowWrap" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "pointerEvents" | "position" | "tabSize" | "tableLayout" | "textAlign" | "textIndent" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "touchAction" | "transform" | "transformOrigin" | "transformStyle" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "userSelect" | "verticalAlign" | "visibility" | "whiteSpace" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "zIndex" | "animation" | "background" | "borderBottom" | "borderImage" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "columnRule" | "columns" | "flexFlow" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate" | "listStyle" | "margin" | "motion" | "outline" | "overflow" | "placeItems" | "placeSelf" | "textDecoration" | "transition" | "WebkitOverflowScrolling" | "gridColumnGap" | "gridGap" | "gridRowGap" | "alignmentBaseline" | "baselineShift" | "clipRule" | "fillOpacity" | "fillRule" | "lightingColor" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth"> & Partial<Record<"fill" | "color" | "stroke" | "backgroundColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderTopColor" | "borderColor", import("type-fest").LiteralUnion<"transparent" | "error" | "success" | "separator" | "background" | "foreground" | "foregroundSecondary" | "foregroundTertiary" | "backgroundSecondary" | "backgroundTertiary" | "surface" | "surfaceSecondary" | "surfaceTertiary" | "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-light" | "error-lighter" | "error-lightest" | "error-dark" | "error-darker" | "error-darkest" | "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", string>>> & {
|
|
78
|
+
css?: any;
|
|
79
|
+
paddingHorizontal?: string | number;
|
|
80
|
+
paddingVertical?: string | number;
|
|
81
|
+
marginHorizontal?: string | number;
|
|
82
|
+
marginVertical?: string | number;
|
|
83
|
+
column?: import("csstype").Property.GridColumnEnd;
|
|
84
|
+
columnStart?: import("csstype").Property.GridColumnEnd;
|
|
85
|
+
columnEnd?: import("csstype").Property.GridColumnEnd;
|
|
86
|
+
row?: import("csstype").Property.GridColumnEnd;
|
|
87
|
+
rowStart?: import("csstype").Property.GridColumnEnd;
|
|
88
|
+
rowEnd?: import("csstype").Property.GridColumnEnd;
|
|
89
|
+
basis?: import("csstype").Property.BorderRadius<string | number>;
|
|
90
|
+
grow?: import("csstype").Property.FlexGrow;
|
|
91
|
+
shrink?: import("csstype").Property.FlexGrow;
|
|
92
|
+
wrap?: string | boolean;
|
|
93
|
+
radius?: import("csstype").Property.BorderRadius<string | number>;
|
|
94
|
+
radiusTop?: string | number;
|
|
95
|
+
radiusRight?: string | number;
|
|
96
|
+
radiusBottom?: string | number;
|
|
97
|
+
radiusLeft?: string | number;
|
|
98
|
+
strokeAlign?: "center" | "inside" | "outside";
|
|
99
|
+
strokeWeight?: number;
|
|
100
|
+
elevation?: number;
|
|
101
|
+
x?: string | number;
|
|
102
|
+
y?: string | number;
|
|
103
|
+
rotate?: number;
|
|
104
|
+
scale?: number;
|
|
105
|
+
uppercase?: boolean;
|
|
106
|
+
}, "left" | "right" | "bottom" | "top" | "hidden" | "visible" | "dir" | "font" | "slot" | "style" | "title" | "clipPath" | "filter" | "mask" | "resize" | "fill" | "color" | "contain" | "clip" | "column" | "content" | "size" | "inline" | "flex" | "row" | "wrap" | "stroke" | "x" | "y" | "uppercase" | "clear" | "border" | "padding" | "alignContent" | "alignItems" | "alignSelf" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "backfaceVisibility" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "columnCount" | "columnFill" | "columnGap" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontSize" | "fontStretch" | "fontStyle" | "fontVariant" | "fontVariantCaps" | "fontVariantLigatures" | "fontVariantNumeric" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "imageRendering" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "listStyleImage" | "listStylePosition" | "listStyleType" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maskType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "opacity" | "order" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowWrap" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "pointerEvents" | "position" | "rotate" | "scale" | "tabSize" | "tableLayout" | "textAlign" | "textIndent" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "touchAction" | "transform" | "transformOrigin" | "transformStyle" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "translate" | "userSelect" | "verticalAlign" | "visibility" | "whiteSpace" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "zIndex" | "animation" | "background" | "borderBottom" | "borderColor" | "borderImage" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "columnRule" | "columns" | "flexFlow" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate" | "listStyle" | "margin" | "motion" | "outline" | "overflow" | "placeItems" | "placeSelf" | "textDecoration" | "transition" | "WebkitOverflowScrolling" | "gridColumnGap" | "gridGap" | "gridRowGap" | "alignmentBaseline" | "baselineShift" | "clipRule" | "fillOpacity" | "fillRule" | "lightingColor" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "prefix" | "children" | "key" | "as" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "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" | "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" | "css" | "paddingHorizontal" | "paddingVertical" | "marginHorizontal" | "marginVertical" | "columnStart" | "columnEnd" | "rowStart" | "rowEnd" | "basis" | "grow" | "shrink" | "radius" | "radiusTop" | "radiusRight" | "radiusBottom" | "radiusLeft" | "strokeAlign" | "strokeWeight" | "elevation" | "onOpen" | "onClose"> & React.RefAttributes<unknown>>;
|
|
107
|
+
}
|
|
108
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|