@vibe/core 4.2.6 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/metadata/accessibility/Accordion.md +10 -0
- package/dist/metadata/accessibility/AlertBanner.md +9 -0
- package/dist/metadata/accessibility/Avatar.md +12 -0
- package/dist/metadata/accessibility/AvatarGroup.md +6 -0
- package/dist/metadata/accessibility/BreadcrumbsBar.md +10 -0
- package/dist/metadata/accessibility/Button.md +13 -0
- package/dist/metadata/accessibility/ButtonGroup.md +9 -0
- package/dist/metadata/accessibility/Checkbox.md +13 -0
- package/dist/metadata/accessibility/Chips.md +10 -0
- package/dist/metadata/accessibility/Combobox.md +6 -0
- package/dist/metadata/accessibility/DropdownBasicDropdown.md +10 -0
- package/dist/metadata/accessibility/IconButton.md +26 -0
- package/dist/metadata/accessibility/Info.md +12 -0
- package/dist/metadata/accessibility/Link.md +8 -0
- package/dist/metadata/accessibility/List.md +11 -0
- package/dist/metadata/accessibility/Menu.md +10 -0
- package/dist/metadata/accessibility/MenuButton.md +6 -0
- package/dist/metadata/accessibility/MenuItem.md +8 -0
- package/dist/metadata/accessibility/Modal.md +35 -0
- package/dist/metadata/accessibility/NumberField.md +9 -0
- package/dist/metadata/accessibility/RadioButton.md +11 -0
- package/dist/metadata/accessibility/Search.md +10 -0
- package/dist/metadata/accessibility/Tabs.md +10 -0
- package/dist/metadata/accessibility/TextArea.md +17 -0
- package/dist/metadata/accessibility/TextField.md +16 -0
- package/dist/metadata/accessibility/Toast.md +4 -0
- package/dist/metadata/accessibility/Toggle.md +7 -0
- package/dist/metadata/accessibility/Tooltip.md +11 -0
- package/dist/metadata/components.json +20940 -0
- package/dist/metadata/examples/Accordion.md +136 -0
- package/dist/metadata/examples/AlertBanner.md +85 -0
- package/dist/metadata/examples/AttentionBox.md +267 -0
- package/dist/metadata/examples/Avatar.md +118 -0
- package/dist/metadata/examples/AvatarGroup.md +390 -0
- package/dist/metadata/examples/Badge.md +59 -0
- package/dist/metadata/examples/BaseInput.md +2 -0
- package/dist/metadata/examples/BaseList.md +342 -0
- package/dist/metadata/examples/Box.md +208 -0
- package/dist/metadata/examples/BreadcrumbItem.md +54 -0
- package/dist/metadata/examples/BreadcrumbsBar.md +64 -0
- package/dist/metadata/examples/Button.md +174 -0
- package/dist/metadata/examples/ButtonGroup.md +180 -0
- package/dist/metadata/examples/Checkbox.md +24 -0
- package/dist/metadata/examples/Chips.md +192 -0
- package/dist/metadata/examples/Clickable.md +31 -0
- package/dist/metadata/examples/ColorPicker.md +2 -0
- package/dist/metadata/examples/Combobox.md +438 -0
- package/dist/metadata/examples/Counter.md +188 -0
- package/dist/metadata/examples/DatePicker.md +43 -0
- package/dist/metadata/examples/Dialog.md +521 -0
- package/dist/metadata/examples/DialogContentContainer.md +18 -0
- package/dist/metadata/examples/Divider.md +50 -0
- package/dist/metadata/examples/DropdownBasicDropdown.md +479 -0
- package/dist/metadata/examples/DropdownBoxMode.md +218 -0
- package/dist/metadata/examples/EditableHeading.md +33 -0
- package/dist/metadata/examples/EditableText.md +36 -0
- package/dist/metadata/examples/EmptyState.md +192 -0
- package/dist/metadata/examples/ExpandCollapse.md +77 -0
- package/dist/metadata/examples/Flex.md +916 -0
- package/dist/metadata/examples/Heading.md +124 -0
- package/dist/metadata/examples/HiddenText.md +8 -0
- package/dist/metadata/examples/Icon.md +67 -0
- package/dist/metadata/examples/IconButton.md +141 -0
- package/dist/metadata/examples/Info.md +80 -0
- package/dist/metadata/examples/Label.md +109 -0
- package/dist/metadata/examples/Link.md +52 -0
- package/dist/metadata/examples/List.md +125 -0
- package/dist/metadata/examples/ListItem.md +42 -0
- package/dist/metadata/examples/Loader.md +148 -0
- package/dist/metadata/examples/Menu.md +141 -0
- package/dist/metadata/examples/MenuButton.md +127 -0
- package/dist/metadata/examples/MenuDivider.md +35 -0
- package/dist/metadata/examples/MenuGridItem.md +65 -0
- package/dist/metadata/examples/MenuItem.md +98 -0
- package/dist/metadata/examples/MenuItemButton.md +42 -0
- package/dist/metadata/examples/MenuTitle.md +25 -0
- package/dist/metadata/examples/ModalBasicLayout.md +400 -0
- package/dist/metadata/examples/ModalMediaLayout.md +240 -0
- package/dist/metadata/examples/ModalSideBySideLayout.md +313 -0
- package/dist/metadata/examples/MultiStepIndicator.md +189 -0
- package/dist/metadata/examples/NumberField.md +68 -0
- package/dist/metadata/examples/ProgressBar.md +152 -0
- package/dist/metadata/examples/RadioButton.md +41 -0
- package/dist/metadata/examples/Search.md +24 -0
- package/dist/metadata/examples/Skeleton.md +161 -0
- package/dist/metadata/examples/Slider.md +109 -0
- package/dist/metadata/examples/SplitButton.md +120 -0
- package/dist/metadata/examples/Steps.md +106 -0
- package/dist/metadata/examples/Table.md +449 -0
- package/dist/metadata/examples/Tabs.md +241 -0
- package/dist/metadata/examples/Text.md +188 -0
- package/dist/metadata/examples/TextArea.md +28 -0
- package/dist/metadata/examples/TextField.md +119 -0
- package/dist/metadata/examples/TextWithHighlight.md +2 -0
- package/dist/metadata/examples/ThemeProvider.md +47 -0
- package/dist/metadata/examples/Tipseen.md +111 -0
- package/dist/metadata/examples/Toast.md +127 -0
- package/dist/metadata/examples/Toggle.md +38 -0
- package/dist/metadata/examples/Tooltip.md +53 -0
- package/dist/metadata/examples/VirtualizedGrid.md +54 -0
- package/dist/metadata/examples/VirtualizedList.md +50 -0
- package/dist/metadata/examples/useGridKeyboardNavigationContext.md +61 -0
- package/dist/mocked_classnames/scripts/build-all-metadata.d.ts +1 -0
- package/dist/mocked_classnames/scripts/extract-accessibility.d.ts +4 -0
- package/dist/mocked_classnames/scripts/extract-examples.d.ts +3 -0
- package/dist/mocked_classnames/src/components/Accordion/Accordion/Accordion.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AlertBanner/AlertBanner.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerButton/AlertBannerButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerLink/AlertBannerLink.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerText/AlertBannerText.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AttentionBox/AttentionBox.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Avatar/Avatar.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Avatar/AvatarBadge.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Avatar/AvatarContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroup.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Badge/Badge.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Badge/Indicator/Indicator.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/BaseItem/BaseItem.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/BaseList/BaseList.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbMenu/BreadcrumbsMenu.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ButtonGroup/ButtonGroup.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Checkbox/Checkbox.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Chips/Chips.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ColorPicker/ColorPicker.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/Combobox.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Counter/Counter.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/DatePicker/DatePicker.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/DatePicker/DatePickerHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Divider/Divider.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dropdown/components/DropdownBase/DropdownBase.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dropdown/components/DropdownBaseList/DropdownBaseList.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dropdown/components/DropdownBoxMode/DropdownBoxMode.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dropdown/components/Menu/Menu.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dropdown/components/MultiSelectedValues/MultiSelectedValues.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dropdown/components/Trigger/Trigger.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/EditableHeading/EditableHeading.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/EditableText/EditableText.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/EditableTypography/EditableTypography.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/EmptyState/EmptyState.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ExpandCollapse/ExpandCollapse.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/FieldLabel/FieldLabel.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/FormattedNumber/FormattedNumber.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/HiddenText/HiddenText.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Info/components/InfoDialogContent/InfoDialogContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Info/components/InfoLink/InfoLink.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/InfoText/InfoText.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Label/Label.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Label/LabelCelebrationAnimation.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Link/Link.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/List/List.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ListItem/ListItem.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ListTitle/ListTitle.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/Menu/Menu.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuDivider/MenuDivider.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuItem/MenuItem.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuItem/components/BaseMenuItem/BaseMenuItem.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuItem/components/MenuItemIcon/MenuItemIcon.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuItem/components/MenuItemSubMenuIcon/MenuItemSubMenuIcon.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuItemButton/MenuItemButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuTitle/MenuTitle.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/MenuButton/MenuButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/Modal/Modal.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/ModalMedia/ModalMedia.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/ModalTopActions/ModalTopActions.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/footers/ModalFooter/ModalFooter.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/footers/ModalFooterBase/ModalFooterBase.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/footers/ModalFooterWizard/ModalFooterWizard.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalBasicLayout/ModalBasicLayout.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalFooterShadow.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalLayoutScrollableContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalMediaLayout/ModalMediaLayout.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/MultiStepIndicator/MultiStepIndicator.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/NumberField/NumberField.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/NumberField/components/NumberFieldSpinButton/NumberFieldSpinButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ProgressBars/PercentageLabel/PercentageLabel.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ProgressBars/ProgressBar/Bar/Bar.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ProgressBars/ProgressBar/ProgressBar.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/RadioButton/RadioButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Search/Search.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Skeleton/Skeleton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/SlideTransition/SlideTransition.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SelectionIndicator.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/Slider.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderBase.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderRail.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderThumb.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderTrack.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SliderInfix.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/SplitButton/SplitButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Steps/Steps.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Steps/StepsCommand.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Steps/StepsDot.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Steps/StepsGalleryHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Steps/StepsHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Steps/StepsNumbersHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Switch/Switch.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/Table/Table.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableBody/TableBody.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableCell/TableCell.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableCellSkeleton/TableCellSkeleton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableContainer/TableContainer.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableHeader/TableHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableHeaderCell/TableHeaderCell.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableRow/TableRow.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableRowMenu/TableRowMenu.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableVirtualizedBody/TableVirtualizedBody.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tabs/Tab/Tab.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tabs/TabList/TabList.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tabs/TabPanel/TabPanel.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tabs/TabPanels/TabPanels.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/TextArea/TextArea.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/TextField/TextField.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/TextWithHighlight/TextWithHighlight.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/Tipseen.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/TipseenBasicContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/TipseenContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/TipseenMedia/TipseenMedia.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/TipseenTitle.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/TipseenWizard.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Toast/Toast.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Toast/ToastLink/ToastLink.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Toggle/MockToggle.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Toggle/Toggle.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Toggle/ToggleText.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/TransitionView/TransitionView.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/VirtualizedGrid/VirtualizedGrid.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/VirtualizedList/VirtualizedList.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/next/List/List.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/next/List/ListTitle/ListTitle.module.scss.js +1 -1
- package/dist/scripts/build-all-metadata.d.ts +1 -0
- package/dist/scripts/extract-accessibility.d.ts +4 -0
- package/dist/scripts/extract-examples.d.ts +3 -0
- package/dist/src/components/Accordion/Accordion/Accordion.module.scss.js +1 -1
- package/dist/src/components/AlertBanner/AlertBanner.module.scss.js +1 -1
- package/dist/src/components/AlertBanner/AlertBannerButton/AlertBannerButton.module.scss.js +1 -1
- package/dist/src/components/AlertBanner/AlertBannerLink/AlertBannerLink.module.scss.js +1 -1
- package/dist/src/components/AlertBanner/AlertBannerText/AlertBannerText.module.scss.js +1 -1
- package/dist/src/components/AttentionBox/AttentionBox.module.scss.js +1 -1
- package/dist/src/components/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.module.scss.js +1 -1
- package/dist/src/components/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.module.scss.js +1 -1
- package/dist/src/components/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.module.scss.js +1 -1
- package/dist/src/components/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.module.scss.js +1 -1
- package/dist/src/components/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.module.scss.js +1 -1
- package/dist/src/components/Avatar/Avatar.module.scss.js +1 -1
- package/dist/src/components/Avatar/AvatarBadge.module.scss.js +1 -1
- package/dist/src/components/Avatar/AvatarContent.module.scss.js +1 -1
- package/dist/src/components/AvatarGroup/AvatarGroup.module.scss.js +1 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +1 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +1 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +1 -1
- package/dist/src/components/Badge/Badge.module.scss.js +1 -1
- package/dist/src/components/Badge/Indicator/Indicator.module.scss.js +1 -1
- package/dist/src/components/BaseItem/BaseItem.module.scss.js +1 -1
- package/dist/src/components/BaseList/BaseList.module.scss.js +1 -1
- package/dist/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
- package/dist/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
- package/dist/src/components/BreadcrumbsBar/BreadcrumbMenu/BreadcrumbsMenu.module.scss.js +1 -1
- package/dist/src/components/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
- package/dist/src/components/ButtonGroup/ButtonGroup.module.scss.js +1 -1
- package/dist/src/components/Checkbox/Checkbox.module.scss.js +1 -1
- package/dist/src/components/Chips/Chips.module.scss.js +1 -1
- package/dist/src/components/ColorPicker/ColorPicker.module.scss.js +1 -1
- package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +1 -1
- package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +1 -1
- package/dist/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +1 -1
- package/dist/src/components/Combobox/Combobox.module.scss.js +1 -1
- package/dist/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
- package/dist/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
- package/dist/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
- package/dist/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
- package/dist/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
- package/dist/src/components/Counter/Counter.module.scss.js +1 -1
- package/dist/src/components/DatePicker/DatePicker.module.scss.js +1 -1
- package/dist/src/components/DatePicker/DatePickerHeader.module.scss.js +1 -1
- package/dist/src/components/Divider/Divider.module.scss.js +1 -1
- package/dist/src/components/Dropdown/components/DropdownBase/DropdownBase.module.scss.js +1 -1
- package/dist/src/components/Dropdown/components/DropdownBaseList/DropdownBaseList.module.scss.js +1 -1
- package/dist/src/components/Dropdown/components/DropdownBoxMode/DropdownBoxMode.module.scss.js +1 -1
- package/dist/src/components/Dropdown/components/Menu/Menu.module.scss.js +1 -1
- package/dist/src/components/Dropdown/components/MultiSelectedValues/MultiSelectedValues.module.scss.js +1 -1
- package/dist/src/components/Dropdown/components/Trigger/Trigger.module.scss.js +1 -1
- package/dist/src/components/EditableHeading/EditableHeading.module.scss.js +1 -1
- package/dist/src/components/EditableText/EditableText.module.scss.js +1 -1
- package/dist/src/components/EditableTypography/EditableTypography.module.scss.js +1 -1
- package/dist/src/components/EmptyState/EmptyState.module.scss.js +1 -1
- package/dist/src/components/ExpandCollapse/ExpandCollapse.module.scss.js +1 -1
- package/dist/src/components/FieldLabel/FieldLabel.module.scss.js +1 -1
- package/dist/src/components/FormattedNumber/FormattedNumber.module.scss.js +1 -1
- package/dist/src/components/HiddenText/HiddenText.module.scss.js +1 -1
- package/dist/src/components/Info/components/InfoDialogContent/InfoDialogContent.module.scss.js +1 -1
- package/dist/src/components/Info/components/InfoLink/InfoLink.module.scss.js +1 -1
- package/dist/src/components/InfoText/InfoText.module.scss.js +1 -1
- package/dist/src/components/Label/Label.module.scss.js +1 -1
- package/dist/src/components/Label/LabelCelebrationAnimation.module.scss.js +1 -1
- package/dist/src/components/Link/Link.module.scss.js +1 -1
- package/dist/src/components/List/List.module.scss.js +1 -1
- package/dist/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
- package/dist/src/components/ListItem/ListItem.module.scss.js +1 -1
- package/dist/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
- package/dist/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
- package/dist/src/components/ListTitle/ListTitle.module.scss.js +1 -1
- package/dist/src/components/Menu/Menu/Menu.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuDivider/MenuDivider.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuItem/MenuItem.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuItem/components/BaseMenuItem/BaseMenuItem.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuItem/components/MenuItemIcon/MenuItemIcon.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuItem/components/MenuItemSubMenuIcon/MenuItemSubMenuIcon.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuItemButton/MenuItemButton.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuTitle/MenuTitle.module.scss.js +1 -1
- package/dist/src/components/MenuButton/MenuButton.module.scss.js +1 -1
- package/dist/src/components/Modal/Modal/Modal.module.scss.js +1 -1
- package/dist/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
- package/dist/src/components/Modal/ModalMedia/ModalMedia.module.scss.js +1 -1
- package/dist/src/components/Modal/ModalTopActions/ModalTopActions.module.scss.js +1 -1
- package/dist/src/components/Modal/footers/ModalFooter/ModalFooter.module.scss.js +1 -1
- package/dist/src/components/Modal/footers/ModalFooterBase/ModalFooterBase.module.scss.js +1 -1
- package/dist/src/components/Modal/footers/ModalFooterWizard/ModalFooterWizard.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalBasicLayout/ModalBasicLayout.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalFooterShadow.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalLayoutScrollableContent.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalMediaLayout/ModalMediaLayout.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.module.scss.js +1 -1
- package/dist/src/components/MultiStepIndicator/MultiStepIndicator.module.scss.js +1 -1
- package/dist/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.module.scss.js +1 -1
- package/dist/src/components/NumberField/NumberField.module.scss.js +1 -1
- package/dist/src/components/NumberField/components/NumberFieldSpinButton/NumberFieldSpinButton.module.scss.js +1 -1
- package/dist/src/components/ProgressBars/PercentageLabel/PercentageLabel.module.scss.js +1 -1
- package/dist/src/components/ProgressBars/ProgressBar/Bar/Bar.module.scss.js +1 -1
- package/dist/src/components/ProgressBars/ProgressBar/ProgressBar.module.scss.js +1 -1
- package/dist/src/components/RadioButton/RadioButton.module.scss.js +1 -1
- package/dist/src/components/Search/Search.module.scss.js +1 -1
- package/dist/src/components/Skeleton/Skeleton.module.scss.js +1 -1
- package/dist/src/components/SlideTransition/SlideTransition.module.scss.js +1 -1
- package/dist/src/components/Slider/SelectionIndicator.module.scss.js +1 -1
- package/dist/src/components/Slider/Slider.module.scss.js +1 -1
- package/dist/src/components/Slider/SliderBase/SliderBase.module.scss.js +1 -1
- package/dist/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js +1 -1
- package/dist/src/components/Slider/SliderBase/SliderRail.module.scss.js +1 -1
- package/dist/src/components/Slider/SliderBase/SliderThumb.module.scss.js +1 -1
- package/dist/src/components/Slider/SliderBase/SliderTrack.module.scss.js +1 -1
- package/dist/src/components/Slider/SliderInfix.module.scss.js +1 -1
- package/dist/src/components/SplitButton/SplitButton.module.scss.js +1 -1
- package/dist/src/components/Steps/Steps.module.scss.js +1 -1
- package/dist/src/components/Steps/StepsCommand.module.scss.js +1 -1
- package/dist/src/components/Steps/StepsDot.module.scss.js +1 -1
- package/dist/src/components/Steps/StepsGalleryHeader.module.scss.js +1 -1
- package/dist/src/components/Steps/StepsHeader.module.scss.js +1 -1
- package/dist/src/components/Steps/StepsNumbersHeader.module.scss.js +1 -1
- package/dist/src/components/Switch/Switch.module.scss.js +1 -1
- package/dist/src/components/Table/Table/Table.module.scss.js +1 -1
- package/dist/src/components/Table/TableBody/TableBody.module.scss.js +1 -1
- package/dist/src/components/Table/TableCell/TableCell.module.scss.js +1 -1
- package/dist/src/components/Table/TableCellSkeleton/TableCellSkeleton.module.scss.js +1 -1
- package/dist/src/components/Table/TableContainer/TableContainer.module.scss.js +1 -1
- package/dist/src/components/Table/TableHeader/TableHeader.module.scss.js +1 -1
- package/dist/src/components/Table/TableHeaderCell/TableHeaderCell.module.scss.js +1 -1
- package/dist/src/components/Table/TableRow/TableRow.module.scss.js +1 -1
- package/dist/src/components/Table/TableRowMenu/TableRowMenu.module.scss.js +1 -1
- package/dist/src/components/Table/TableVirtualizedBody/TableVirtualizedBody.module.scss.js +1 -1
- package/dist/src/components/Tabs/Tab/Tab.module.scss.js +1 -1
- package/dist/src/components/Tabs/TabList/TabList.module.scss.js +1 -1
- package/dist/src/components/Tabs/TabPanel/TabPanel.module.scss.js +1 -1
- package/dist/src/components/Tabs/TabPanels/TabPanels.module.scss.js +1 -1
- package/dist/src/components/TextArea/TextArea.module.scss.js +1 -1
- package/dist/src/components/TextField/TextField.module.scss.js +1 -1
- package/dist/src/components/TextWithHighlight/TextWithHighlight.module.scss.js +1 -1
- package/dist/src/components/Tipseen/Tipseen.module.scss.js +1 -1
- package/dist/src/components/Tipseen/TipseenBasicContent.module.scss.js +1 -1
- package/dist/src/components/Tipseen/TipseenContent.module.scss.js +1 -1
- package/dist/src/components/Tipseen/TipseenMedia/TipseenMedia.module.scss.js +1 -1
- package/dist/src/components/Tipseen/TipseenTitle.module.scss.js +1 -1
- package/dist/src/components/Tipseen/TipseenWizard.module.scss.js +1 -1
- package/dist/src/components/Toast/Toast.module.scss.js +1 -1
- package/dist/src/components/Toast/ToastLink/ToastLink.module.scss.js +1 -1
- package/dist/src/components/Toggle/MockToggle.module.scss.js +1 -1
- package/dist/src/components/Toggle/Toggle.module.scss.js +1 -1
- package/dist/src/components/Toggle/ToggleText.module.scss.js +1 -1
- package/dist/src/components/TransitionView/TransitionView.module.scss.js +1 -1
- package/dist/src/components/VirtualizedGrid/VirtualizedGrid.module.scss.js +1 -1
- package/dist/src/components/VirtualizedList/VirtualizedList.module.scss.js +1 -1
- package/dist/src/components/next/List/List.module.scss.js +1 -1
- package/dist/src/components/next/List/ListTitle/ListTitle.module.scss.js +1 -1
- package/dist/style/dist/index.min.css.js +1 -1
- package/package.json +5 -3
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
const accordionTemplate = (args: AccordionProps) => {
|
|
7
|
+
return <Accordion id="overview-accordion" defaultIndex={[1]} {...args}>
|
|
8
|
+
<AccordionItem id="overview-notifications" title="Notifications">
|
|
9
|
+
<div style={{
|
|
10
|
+
height: 150
|
|
11
|
+
}} />
|
|
12
|
+
</AccordionItem>
|
|
13
|
+
<AccordionItem id="overview-setting" title="Setting">
|
|
14
|
+
<div style={{
|
|
15
|
+
height: 150
|
|
16
|
+
}} />
|
|
17
|
+
</AccordionItem>
|
|
18
|
+
<AccordionItem id="overview-info" title="Info">
|
|
19
|
+
<div style={{
|
|
20
|
+
height: 150
|
|
21
|
+
}} />
|
|
22
|
+
</AccordionItem>
|
|
23
|
+
<AccordionItem id="overview-profile" title="Profile">
|
|
24
|
+
<div style={{
|
|
25
|
+
height: 150
|
|
26
|
+
}} />
|
|
27
|
+
</AccordionItem>
|
|
28
|
+
<AccordionItem id="overview-permissions" title="Permissions">
|
|
29
|
+
<div style={{
|
|
30
|
+
height: 150
|
|
31
|
+
}} />
|
|
32
|
+
</AccordionItem>
|
|
33
|
+
<AccordionItem id="overview-security" title="Security">
|
|
34
|
+
<div style={{
|
|
35
|
+
height: 150
|
|
36
|
+
}} />
|
|
37
|
+
</AccordionItem>
|
|
38
|
+
<AccordionItem id="overview-connectivity" title="Connectivity">
|
|
39
|
+
<div style={{
|
|
40
|
+
height: 150
|
|
41
|
+
}} />
|
|
42
|
+
</AccordionItem>
|
|
43
|
+
<AccordionItem id="overview-integration" title="Integration">
|
|
44
|
+
<div style={{
|
|
45
|
+
height: 150
|
|
46
|
+
}} />
|
|
47
|
+
</AccordionItem>
|
|
48
|
+
<AccordionItem id="overview-assets" title="Assets">
|
|
49
|
+
<div style={{
|
|
50
|
+
height: 150
|
|
51
|
+
}} />
|
|
52
|
+
</AccordionItem>
|
|
53
|
+
</Accordion>;
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Multi active
|
|
58
|
+
|
|
59
|
+
```tsx
|
|
60
|
+
<Accordion id="multi-active-accordion" allowMultiple defaultIndex={[1, 3]}>
|
|
61
|
+
<AccordionItem id="multi-notifications" title="Notifications">
|
|
62
|
+
<div style={{
|
|
63
|
+
height: 150
|
|
64
|
+
}} />
|
|
65
|
+
</AccordionItem>
|
|
66
|
+
<AccordionItem id="multi-setting" title="Setting">
|
|
67
|
+
<div style={{
|
|
68
|
+
height: 150
|
|
69
|
+
}} />
|
|
70
|
+
</AccordionItem>
|
|
71
|
+
<AccordionItem id="multi-connectivity" title="Connectivity">
|
|
72
|
+
<div style={{
|
|
73
|
+
height: 150
|
|
74
|
+
}} />
|
|
75
|
+
</AccordionItem>
|
|
76
|
+
<AccordionItem id="multi-integration" title="Integration">
|
|
77
|
+
<div style={{
|
|
78
|
+
height: 150
|
|
79
|
+
}} />
|
|
80
|
+
</AccordionItem>
|
|
81
|
+
<AccordionItem id="multi-assets" title="Assets">
|
|
82
|
+
<div style={{
|
|
83
|
+
height: 150
|
|
84
|
+
}} />
|
|
85
|
+
</AccordionItem>
|
|
86
|
+
</Accordion>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Single active
|
|
90
|
+
|
|
91
|
+
```tsx
|
|
92
|
+
<Accordion id="single-active-accordion" defaultIndex={[1]}>
|
|
93
|
+
<AccordionItem id="single-notifications" title="Notifications">
|
|
94
|
+
<div style={{
|
|
95
|
+
height: 150
|
|
96
|
+
}} />
|
|
97
|
+
</AccordionItem>
|
|
98
|
+
<AccordionItem id="single-setting" title="Setting">
|
|
99
|
+
<div style={{
|
|
100
|
+
height: 150
|
|
101
|
+
}} />
|
|
102
|
+
</AccordionItem>
|
|
103
|
+
<AccordionItem id="single-connectivity" title="Connectivity">
|
|
104
|
+
<div style={{
|
|
105
|
+
height: 150
|
|
106
|
+
}} />
|
|
107
|
+
</AccordionItem>
|
|
108
|
+
<AccordionItem id="single-integration" title="Integration">
|
|
109
|
+
<div style={{
|
|
110
|
+
height: 150
|
|
111
|
+
}} />
|
|
112
|
+
</AccordionItem>
|
|
113
|
+
<AccordionItem id="single-assets" title="Assets">
|
|
114
|
+
<div style={{
|
|
115
|
+
height: 150
|
|
116
|
+
}} />
|
|
117
|
+
</AccordionItem>
|
|
118
|
+
</Accordion>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Preferences Accordion
|
|
122
|
+
|
|
123
|
+
```tsx
|
|
124
|
+
<Accordion id="preferences-accordion" defaultIndex={[0]}>
|
|
125
|
+
<AccordionItem id="preferences-monday" title="In monday">
|
|
126
|
+
<Flex direction="column" gap={20} align="start">
|
|
127
|
+
<Checkbox id="pref-likes" label="Likes my update" checked />
|
|
128
|
+
<Checkbox id="pref-replies" label="Replies to my update" />
|
|
129
|
+
<Checkbox id="pref-conversation" label="Replies or likes a conversation I'm a part of" checked />
|
|
130
|
+
<Checkbox id="pref-subscribes" label="Subscribes me to a Board/Item/Team" checked />
|
|
131
|
+
<Checkbox id="pref-updates" label="Writes an update on an items I'm subscribed to" checked />
|
|
132
|
+
</Flex>
|
|
133
|
+
</AccordionItem>
|
|
134
|
+
</Accordion>
|
|
135
|
+
```
|
|
136
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
const alertBannerTemplate = (args: AlertBannerProps) => {
|
|
7
|
+
return <AlertBanner {...args}>
|
|
8
|
+
<AlertBannerText text="Alert banner message" />
|
|
9
|
+
<AlertBannerLink text="this is a CTA" href="https://monday.com" />
|
|
10
|
+
</AlertBanner>;
|
|
11
|
+
}
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Types
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
<Flex direction="column" gap={16}>
|
|
18
|
+
<AlertBanner id="type-primary" aria-label="Primary alert banner">
|
|
19
|
+
<AlertBannerText text="Alert banner message" />
|
|
20
|
+
<AlertBannerLink text="this is a CTA" href="https://monday.com" />
|
|
21
|
+
</AlertBanner>
|
|
22
|
+
<AlertBanner id="type-positive" aria-label="Success alert banner" backgroundColor="positive">
|
|
23
|
+
<AlertBannerText text="Alert banner message" />
|
|
24
|
+
<AlertBannerLink text="this is a CTA" href="https://monday.com" />
|
|
25
|
+
</AlertBanner>
|
|
26
|
+
<AlertBanner id="type-negative" aria-label="Error alert banner" backgroundColor="negative">
|
|
27
|
+
<AlertBannerText text="Alert banner message" />
|
|
28
|
+
<AlertBannerLink text="this is a CTA" href="https://monday.com" />
|
|
29
|
+
</AlertBanner>
|
|
30
|
+
<AlertBanner id="type-warning" aria-label="Warning alert banner" backgroundColor="warning">
|
|
31
|
+
<AlertBannerText text="Alert banner message" />
|
|
32
|
+
<AlertBannerLink text="this is a CTA" href="https://monday.com" />
|
|
33
|
+
</AlertBanner>
|
|
34
|
+
<AlertBanner id="type-dark" aria-label="Dark alert banner" backgroundColor="dark">
|
|
35
|
+
<AlertBannerText text="Alert banner message" />
|
|
36
|
+
<AlertBannerLink text="this is a CTA" href="https://monday.com" />
|
|
37
|
+
</AlertBanner>
|
|
38
|
+
</Flex>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Alert Banner with button
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
<AlertBanner id="with-button" aria-label="Alert banner with action button">
|
|
45
|
+
<AlertBannerText text="Lorem ipsum dolor sit amet" />
|
|
46
|
+
<AlertBannerButton>Lorem Ipsum</AlertBannerButton>
|
|
47
|
+
</AlertBanner>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Alert Banner with link
|
|
51
|
+
|
|
52
|
+
```tsx
|
|
53
|
+
<AlertBanner id="with-link" aria-label="Alert banner with link">
|
|
54
|
+
<AlertBannerText text="Alert banner message" />
|
|
55
|
+
<AlertBannerLink text="this is a CTA" href="https://monday.com" />
|
|
56
|
+
</AlertBanner>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Alert banner as an announcement
|
|
60
|
+
|
|
61
|
+
```tsx
|
|
62
|
+
<AlertBanner id="announcement" aria-label="Event announcement" backgroundColor="dark">
|
|
63
|
+
<AlertBannerText text="Join us at Elevate 2022" />
|
|
64
|
+
<AlertBannerLink text="RSVP now" href="https://monday.com" />
|
|
65
|
+
</AlertBanner>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Alert banner as an opportunity to upgrade
|
|
69
|
+
|
|
70
|
+
```tsx
|
|
71
|
+
<AlertBanner id="upgrade-opportunity" aria-label="Trial upgrade opportunity" onClose={() => {}} closeButtonAriaLabel="Close upgrade banner">
|
|
72
|
+
<AlertBannerText text="7 days left on your monday CRM trial" />
|
|
73
|
+
<AlertBannerLink text="Upgrade now" href="https://monday.com" />
|
|
74
|
+
</AlertBanner>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Overflow text
|
|
78
|
+
|
|
79
|
+
```tsx
|
|
80
|
+
<AlertBanner id="overflow-text" aria-label="Long text alert banner">
|
|
81
|
+
<AlertBannerText text="This is a really long alert..." />
|
|
82
|
+
<AlertBannerLink text="Call to action" href="https://monday.com" />
|
|
83
|
+
</AlertBanner>
|
|
84
|
+
```
|
|
85
|
+
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
<div style={{
|
|
7
|
+
maxWidth: 600
|
|
8
|
+
}}>
|
|
9
|
+
<AttentionBox {...args} />
|
|
10
|
+
</div>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Types
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
<div style={{
|
|
17
|
+
display: "grid",
|
|
18
|
+
gridTemplateColumns: "240px 600px",
|
|
19
|
+
columnGap: "var(--space-16)",
|
|
20
|
+
rowGap: "var(--space-24)",
|
|
21
|
+
alignItems: "center"
|
|
22
|
+
}}>
|
|
23
|
+
<Text type="text1" weight="bold">
|
|
24
|
+
Primary
|
|
25
|
+
</Text>
|
|
26
|
+
<AttentionBox title="Heads up" text="This message gives you helpful context without requiring immediate action." onClose={() => {}} />
|
|
27
|
+
<Text type="text1" weight="bold">
|
|
28
|
+
Neutral
|
|
29
|
+
</Text>
|
|
30
|
+
<AttentionBox type="neutral" title="General note" text="Use this style for more subtle visual emphasis, or for or neutral custom contexts." onClose={() => {}} />
|
|
31
|
+
<Text type="text1" weight="bold">
|
|
32
|
+
Positive
|
|
33
|
+
</Text>
|
|
34
|
+
<AttentionBox type="positive" title="You're doing great" text="Indicates success , the user can keep working without interruptions." onClose={() => {}} />
|
|
35
|
+
<Text type="text1" weight="bold">
|
|
36
|
+
Warning
|
|
37
|
+
</Text>
|
|
38
|
+
<AttentionBox type="warning" title="Caution" text="Shows important warnings the user should review before moving forward." onClose={() => {}} />
|
|
39
|
+
<Text type="text1" weight="bold">
|
|
40
|
+
Negative
|
|
41
|
+
</Text>
|
|
42
|
+
<AttentionBox type="negative" title="Low on free space" text="Highlights errors or limitations the user should be aware of." onClose={() => {}} />
|
|
43
|
+
</div>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Default
|
|
47
|
+
|
|
48
|
+
```tsx
|
|
49
|
+
<Flex gap="large" align="start">
|
|
50
|
+
<AttentionBox title="Heads up" text="This message gives you helpful context without requiring immediate action." action={{
|
|
51
|
+
text: "Button",
|
|
52
|
+
onClick: () => {}
|
|
53
|
+
}} link={{
|
|
54
|
+
href: "#",
|
|
55
|
+
text: "Read more"
|
|
56
|
+
}} onClose={() => {}} />
|
|
57
|
+
<AttentionBox text="This message gives you helpful context without requiring immediate action." action={{
|
|
58
|
+
text: "Button",
|
|
59
|
+
onClick: () => {}
|
|
60
|
+
}} link={{
|
|
61
|
+
href: "#",
|
|
62
|
+
text: "Read more"
|
|
63
|
+
}} onClose={() => {}} />
|
|
64
|
+
</Flex>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Compact
|
|
68
|
+
|
|
69
|
+
```tsx
|
|
70
|
+
<div style={{
|
|
71
|
+
maxWidth: 600
|
|
72
|
+
}}>
|
|
73
|
+
<AttentionBox compact text="Here's something you might want to know. This message gives you helpful context without requiring immediate action." action={{
|
|
74
|
+
text: "Button",
|
|
75
|
+
onClick: () => {}
|
|
76
|
+
}} link={{
|
|
77
|
+
href: "#",
|
|
78
|
+
text: "Read more"
|
|
79
|
+
}} onClose={() => {}} />
|
|
80
|
+
</div>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## LinkAndButton
|
|
84
|
+
|
|
85
|
+
```tsx
|
|
86
|
+
<div style={{
|
|
87
|
+
maxWidth: 600
|
|
88
|
+
}}>
|
|
89
|
+
<AttentionBox title="Heads up" text="Here's something you might want to know. This message gives you helpful context without requiring immediate action." action={{
|
|
90
|
+
text: "Button",
|
|
91
|
+
onClick: () => {}
|
|
92
|
+
}} link={{
|
|
93
|
+
href: "#",
|
|
94
|
+
text: "Read more"
|
|
95
|
+
}} onClose={() => {}} />
|
|
96
|
+
</div>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Dismissible
|
|
100
|
+
|
|
101
|
+
```tsx
|
|
102
|
+
const [visible, setVisible] = useState(true);
|
|
103
|
+
return visible ? <div style={{
|
|
104
|
+
maxWidth: 600
|
|
105
|
+
}}>
|
|
106
|
+
<AttentionBox compact text="This message gives you helpful context without requiring immediate action." onClose={() => setVisible(false)} />
|
|
107
|
+
</div> : <Button onClick={() => setVisible(true)}>Show AttentionBox</Button>;
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Icon
|
|
111
|
+
|
|
112
|
+
```tsx
|
|
113
|
+
<Flex gap="large" align="start">
|
|
114
|
+
<AttentionBox icon={false} text="This message gives you helpful context without requiring immediate action." action={{
|
|
115
|
+
text: "Button",
|
|
116
|
+
onClick: () => {}
|
|
117
|
+
}} link={{
|
|
118
|
+
href: "#",
|
|
119
|
+
text: "Read more"
|
|
120
|
+
}} onClose={() => {}} />
|
|
121
|
+
<AttentionBox text="This message gives you helpful context without requiring immediate action." action={{
|
|
122
|
+
text: "Button",
|
|
123
|
+
onClick: () => {}
|
|
124
|
+
}} link={{
|
|
125
|
+
href: "#",
|
|
126
|
+
text: "Read more"
|
|
127
|
+
}} onClose={() => {}} />
|
|
128
|
+
</Flex>
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## AttentionBoxWithLayouts
|
|
132
|
+
|
|
133
|
+
```tsx
|
|
134
|
+
<Flex direction="column" align="start" gap="small" style={{
|
|
135
|
+
width: "100%"
|
|
136
|
+
}}>
|
|
137
|
+
<Heading type="h3" weight="bold">
|
|
138
|
+
Cross-Account Copier
|
|
139
|
+
</Heading>
|
|
140
|
+
<Text>Copy boards and dashboards to another account</Text>
|
|
141
|
+
<AttentionBox compact type="neutral" text="First, move the content you want to copy into folder. Only main boards and dashboards can be copied." link={{
|
|
142
|
+
href: "#",
|
|
143
|
+
text: "Read more"
|
|
144
|
+
}} onClose={() => {}} />
|
|
145
|
+
</Flex>
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## AttentionBoxInsideADialogCombobox
|
|
149
|
+
|
|
150
|
+
```tsx
|
|
151
|
+
return <DialogContentContainer style={{
|
|
152
|
+
padding: 0
|
|
153
|
+
}}>
|
|
154
|
+
<Box style={{
|
|
155
|
+
width: 380
|
|
156
|
+
}} padding="medium">
|
|
157
|
+
<Flex direction="column" gap="medium" align="stretch">
|
|
158
|
+
<Search placeholder="Search by name, role, team, or email" />
|
|
159
|
+
<Text>Suggested people</Text>
|
|
160
|
+
<Flex direction="column" gap="medium" align="start">
|
|
161
|
+
<Flex gap="small">
|
|
162
|
+
<Avatar size="medium" src={person} type="img" />
|
|
163
|
+
<Flex gap="xs">
|
|
164
|
+
<Text element="span">Julia Martinez </Text>
|
|
165
|
+
<Text color="secondary" element="span">
|
|
166
|
+
(UX/UI Product Designer)
|
|
167
|
+
</Text>
|
|
168
|
+
</Flex>
|
|
169
|
+
</Flex>
|
|
170
|
+
<Flex gap="small">
|
|
171
|
+
<Icon size="32" icon={Invite} />
|
|
172
|
+
<Text>Invite new board member by email</Text>
|
|
173
|
+
</Flex>
|
|
174
|
+
<AttentionBox text="Hold ⌘ to select more than one person or team" onClose={() => {}} />
|
|
175
|
+
</Flex>
|
|
176
|
+
</Flex>
|
|
177
|
+
</Box>
|
|
178
|
+
</DialogContentContainer>;
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## EntryAnimation
|
|
182
|
+
|
|
183
|
+
```tsx
|
|
184
|
+
type Stage = "button" | "skeleton" | "content" | "attention";
|
|
185
|
+
const [stage, setStage] = useState<Stage>("button");
|
|
186
|
+
const onClick = useCallback(() => {
|
|
187
|
+
setStage("skeleton");
|
|
188
|
+
setTimeout(() => {
|
|
189
|
+
setStage("content");
|
|
190
|
+
}, 2000);
|
|
191
|
+
}, []);
|
|
192
|
+
useEffect(() => {
|
|
193
|
+
if (stage === "content") {
|
|
194
|
+
setTimeout(() => {
|
|
195
|
+
setStage("attention");
|
|
196
|
+
}, 750);
|
|
197
|
+
}
|
|
198
|
+
}, [stage]);
|
|
199
|
+
const reset = useCallback(() => {
|
|
200
|
+
setStage("button");
|
|
201
|
+
}, []);
|
|
202
|
+
return <Flex align="start" direction="column" gap="medium" style={{
|
|
203
|
+
width: "100%",
|
|
204
|
+
maxWidth: 720,
|
|
205
|
+
minHeight: 260
|
|
206
|
+
}}>
|
|
207
|
+
{/* Button Stage */}
|
|
208
|
+
{stage === "button" && <Button onClick={onClick} kind="secondary">
|
|
209
|
+
Entry animation
|
|
210
|
+
</Button>}
|
|
211
|
+
|
|
212
|
+
{/* Skeleton Stage */}
|
|
213
|
+
{stage === "skeleton" && <Flex align="start" direction="column" gap="medium" style={{
|
|
214
|
+
width: "100%"
|
|
215
|
+
}}>
|
|
216
|
+
<Skeleton type="text" size="h2" width={300} />
|
|
217
|
+
<Flex align="start" gap="medium" style={{
|
|
218
|
+
width: "100%"
|
|
219
|
+
}}>
|
|
220
|
+
<Skeleton width={150} height={150} />
|
|
221
|
+
<Flex direction="column" align="stretch" gap="small" style={{
|
|
222
|
+
width: "100%"
|
|
223
|
+
}}>
|
|
224
|
+
<Skeleton type="text" size="h5" fullWidth />
|
|
225
|
+
<Skeleton type="text" size="h5" fullWidth />
|
|
226
|
+
<Skeleton type="text" size="h5" fullWidth />
|
|
227
|
+
<Skeleton type="text" size="h5" width={200} />
|
|
228
|
+
</Flex>
|
|
229
|
+
</Flex>
|
|
230
|
+
</Flex>}
|
|
231
|
+
|
|
232
|
+
{/* Content Stage */}
|
|
233
|
+
{(stage === "content" || stage === "attention") && <Flex align="start" direction="column" gap="medium" style={{
|
|
234
|
+
width: "100%"
|
|
235
|
+
}}>
|
|
236
|
+
{stage === "attention" && <AttentionBox compact text="This action will cause your team to lose access to the account until you will use the correct SSO." onClose={reset} />}
|
|
237
|
+
|
|
238
|
+
{/* Main Content */}
|
|
239
|
+
<Flex align="start" direction="column" gap="medium" style={{
|
|
240
|
+
width: "100%"
|
|
241
|
+
}}>
|
|
242
|
+
<Heading type="h3">Entry animation</Heading>
|
|
243
|
+
<Flex align="stretch" gap="medium" style={{
|
|
244
|
+
width: "100%"
|
|
245
|
+
}}>
|
|
246
|
+
<Box style={{
|
|
247
|
+
width: 150,
|
|
248
|
+
height: 150,
|
|
249
|
+
flexShrink: 0
|
|
250
|
+
}} rounded="small">
|
|
251
|
+
<img src={contentImage} alt="Image placeholder" style={{
|
|
252
|
+
width: "100%",
|
|
253
|
+
height: "100%",
|
|
254
|
+
objectFit: "cover"
|
|
255
|
+
}} />
|
|
256
|
+
</Box>
|
|
257
|
+
<Text ellipsis={false}>
|
|
258
|
+
{"Here's"} a sneak peek at how it works. The entry animation is an integral part of the experience we
|
|
259
|
+
provide. {"It's"} up to you to ensure that the surrounding layout shifts downward smoothly when the
|
|
260
|
+
Attention Box enters the view.
|
|
261
|
+
</Text>
|
|
262
|
+
</Flex>
|
|
263
|
+
</Flex>
|
|
264
|
+
</Flex>}
|
|
265
|
+
</Flex>;
|
|
266
|
+
```
|
|
267
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Size
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
<Flex gap="medium">
|
|
7
|
+
<Avatar id="size-xs" size="xs" src={person1} type="img" aria-label="Julia Martinez" />
|
|
8
|
+
<Avatar id="size-small" size="small" src={person1} type="img" aria-label="Julia Martinez" />
|
|
9
|
+
<Avatar id="size-medium" size="medium" src={person1} type="img" aria-label="Julia Martinez" />
|
|
10
|
+
<Avatar id="size-large" size="large" src={person1} type="img" aria-label="Julia Martinez" />
|
|
11
|
+
</Flex>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Disable
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
<Flex gap="medium">
|
|
18
|
+
<Avatar id="disabled-xs" size="xs" src={person1} type="img" aria-label="Julia Martinez" disabled />
|
|
19
|
+
<Avatar id="disabled-small" size="small" src={person1} type="img" aria-label="Julia Martinez" disabled />
|
|
20
|
+
<Avatar id="disabled-medium" size="medium" src={person1} type="img" aria-label="Julia Martinez" disabled />
|
|
21
|
+
<Avatar id="disabled-large" size="large" src={person1} type="img" aria-label="Julia Martinez" disabled />
|
|
22
|
+
</Flex>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## AvatarWithText
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
<Flex gap="medium">
|
|
29
|
+
<Avatar id="text-xs" size="xs" type="text" text="RM" backgroundColor="lipstick" aria-label="Ron Meir" />
|
|
30
|
+
<Avatar id="text-small" size="small" type="text" text="RM" backgroundColor="lipstick" aria-label="Ron Meir" />
|
|
31
|
+
<Avatar id="text-medium" size="medium" type="text" text="RM" backgroundColor="lipstick" aria-label="Ron Meir" />
|
|
32
|
+
<Avatar id="text-large" size="large" type="text" text="RM" backgroundColor="done-green" aria-label="Ron Meir" />
|
|
33
|
+
</Flex>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## SquareAvatar
|
|
37
|
+
|
|
38
|
+
```tsx
|
|
39
|
+
<Flex gap="medium">
|
|
40
|
+
<Avatar id="square-xs" size="xs" type="text" text="R" backgroundColor="bright-blue" square aria-label="Ron" />
|
|
41
|
+
<Avatar id="square-small" size="small" type="text" text="R" backgroundColor="bright-blue" square aria-label="Ron" />
|
|
42
|
+
<Avatar id="square-medium" size="medium" type="icon" icon={WhatsNew} backgroundColor="aquamarine" square aria-label="Present" />
|
|
43
|
+
<Avatar id="square-large" size="large" type="text" text="RM" backgroundColor="working_orange" square aria-label="Ron Meir" />
|
|
44
|
+
</Flex>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## AvatarWithRightBadge
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
<Flex gap="medium">
|
|
51
|
+
<Avatar id="right-badge-guest" size="large" type="img" src={person1} bottomRightBadgeProps={{
|
|
52
|
+
src: guest
|
|
53
|
+
}} aria-label="Julia Martinez with guest badge" />
|
|
54
|
+
<Avatar id="right-badge-owner" size="large" type="img" src={person1} bottomRightBadgeProps={{
|
|
55
|
+
src: owner
|
|
56
|
+
}} aria-label="Julia Martinez with owner badge" />
|
|
57
|
+
</Flex>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## AvatarWithLeftBadge
|
|
61
|
+
|
|
62
|
+
```tsx
|
|
63
|
+
<Flex gap="medium">
|
|
64
|
+
<Avatar id="left-badge-home" size="large" type="img" src={person1} bottomLeftBadgeProps={{
|
|
65
|
+
src: home
|
|
66
|
+
}} aria-label="Julia Martinez with home badge" />
|
|
67
|
+
<Avatar id="left-badge-minus" size="large" type="img" src={person1} bottomLeftBadgeProps={{
|
|
68
|
+
src: minus
|
|
69
|
+
}} aria-label="Julia Martinez with minus badge" />
|
|
70
|
+
</Flex>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## AvatarWithTooltip
|
|
74
|
+
|
|
75
|
+
```tsx
|
|
76
|
+
<Flex direction="row" gap="large" align="start">
|
|
77
|
+
<StoryDescription description="Aria label tooltip" vertical align={StoryDescription.align.START}>
|
|
78
|
+
<Avatar id="tooltip-aria" size="large" type="img" src={person1} aria-label={"Julia Martinez"} />
|
|
79
|
+
</StoryDescription>
|
|
80
|
+
<StoryDescription description="Text tooltip" vertical align={StoryDescription.align.START}>
|
|
81
|
+
<Avatar id="tooltip-text" size="large" type="img" src={person1} tooltipProps={{
|
|
82
|
+
content: "Julia Martinez"
|
|
83
|
+
}} aria-label={"Julia Martinez"} />
|
|
84
|
+
</StoryDescription>
|
|
85
|
+
<StoryDescription description="JSX tooltip" vertical align={StoryDescription.align.START}>
|
|
86
|
+
<Avatar id="tooltip-jsx" size="large" type="img" src={person1} tooltipProps={{
|
|
87
|
+
content: <b>Julia Martinez</b>,
|
|
88
|
+
position: "bottom"
|
|
89
|
+
}} aria-label={"Julia Martinez"} />
|
|
90
|
+
</StoryDescription>
|
|
91
|
+
</Flex>
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## ClickableAvatar
|
|
95
|
+
|
|
96
|
+
```tsx
|
|
97
|
+
const [count, setCount] = useState(0);
|
|
98
|
+
const incrementCount = useCallback(() => {
|
|
99
|
+
setCount(prevState => prevState + 1);
|
|
100
|
+
}, []);
|
|
101
|
+
return <Flex>
|
|
102
|
+
<Flex direction="column" gap="medium">
|
|
103
|
+
<Avatar id="clickable-avatar" size="large" type="img" src={person1} aria-label="Julia Martinez (clickable)" onClick={incrementCount} />
|
|
104
|
+
<Counter id="avatar-click-counter" count={count} />
|
|
105
|
+
</Flex>
|
|
106
|
+
</Flex>;
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## MultipleAvatars
|
|
110
|
+
|
|
111
|
+
```tsx
|
|
112
|
+
<AvatarGroup id="multiple-avatars-group" max={2} size="large">
|
|
113
|
+
<Avatar id="multiple-avatar-1" type="img" src={person1} aria-label="Julia Martinez" />
|
|
114
|
+
<Avatar id="multiple-avatar-2" type="img" src={person2} aria-label="Marco DiAngelo" />
|
|
115
|
+
<Avatar id="multiple-avatar-3" type="img" src={person3} aria-label="Liam Caldwell" />
|
|
116
|
+
</AvatarGroup>
|
|
117
|
+
```
|
|
118
|
+
|