@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,188 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## SizesAndWeights
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
<Flex gap="large" direction="column" justify="start" align="start">
|
|
7
|
+
<Flex gap="small" direction="column" justify="start" align="start">
|
|
8
|
+
<Text type="text1" weight="bold">
|
|
9
|
+
This is text1 bold
|
|
10
|
+
</Text>
|
|
11
|
+
<Text type="text1" weight="medium">
|
|
12
|
+
This is text1 medium
|
|
13
|
+
</Text>
|
|
14
|
+
<Text type="text1" weight="normal">
|
|
15
|
+
This is text1 normal
|
|
16
|
+
</Text>
|
|
17
|
+
</Flex>
|
|
18
|
+
|
|
19
|
+
<Flex gap="small" direction="column" justify="start" align="start">
|
|
20
|
+
<Text type="text2" weight="bold">
|
|
21
|
+
This is text2 bold
|
|
22
|
+
</Text>
|
|
23
|
+
<Text type="text2" weight="medium">
|
|
24
|
+
This is text2 medium
|
|
25
|
+
</Text>
|
|
26
|
+
<Text type="text2" weight="normal">
|
|
27
|
+
This is text2 normal
|
|
28
|
+
</Text>
|
|
29
|
+
</Flex>
|
|
30
|
+
<Flex gap="small" direction="column" justify="start" align="start">
|
|
31
|
+
<Text type="text3" weight="medium">
|
|
32
|
+
This is text3 medium
|
|
33
|
+
</Text>
|
|
34
|
+
<Text type="text3" weight="normal">
|
|
35
|
+
This is text3 normal
|
|
36
|
+
</Text>
|
|
37
|
+
</Flex>
|
|
38
|
+
</Flex>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Colors
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
<Flex direction="column" align="start" gap="small">
|
|
45
|
+
<Text color="primary">Primary text</Text>
|
|
46
|
+
<Text color="secondary">Secondary text</Text>
|
|
47
|
+
<Box style={{
|
|
48
|
+
backgroundColor: "var(--primary-color)",
|
|
49
|
+
width: "150px"
|
|
50
|
+
}} padding="small">
|
|
51
|
+
<Text align="center" color="onPrimary">
|
|
52
|
+
On primary text
|
|
53
|
+
</Text>
|
|
54
|
+
</Box>
|
|
55
|
+
<Box style={{
|
|
56
|
+
width: "150px"
|
|
57
|
+
}} backgroundColor="invertedColorBackground" padding="small">
|
|
58
|
+
<Text align="center" color="onInverted">
|
|
59
|
+
On inverted text
|
|
60
|
+
</Text>
|
|
61
|
+
</Box>
|
|
62
|
+
<Box style={{
|
|
63
|
+
width: "150px",
|
|
64
|
+
backgroundColor: "black"
|
|
65
|
+
}} padding="small">
|
|
66
|
+
<Text align="center" color="fixedLight">
|
|
67
|
+
Fixed light
|
|
68
|
+
</Text>
|
|
69
|
+
</Box>
|
|
70
|
+
<Box style={{
|
|
71
|
+
width: "150px",
|
|
72
|
+
backgroundColor: "whitesmoke"
|
|
73
|
+
}} padding="small">
|
|
74
|
+
<Text align="center" color="fixedDark">
|
|
75
|
+
Fixed dark
|
|
76
|
+
</Text>
|
|
77
|
+
</Box>
|
|
78
|
+
</Flex>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Overflow
|
|
82
|
+
|
|
83
|
+
```tsx
|
|
84
|
+
<Flex direction="column" id={OVERFLOW_TEXT_CONTAINER_ID} justify="start" align="initial" gap="small" style={{
|
|
85
|
+
width: "480px"
|
|
86
|
+
}}>
|
|
87
|
+
<Heading type="h3">Text with 1 line</Heading>
|
|
88
|
+
<Text data-testid={ONE_LINE_ELLIPSIS_TEST_ID}
|
|
89
|
+
/**for testing purposes**/ tooltipProps={{
|
|
90
|
+
containerSelector: `#${OVERFLOW_TEXT_CONTAINER_ID}`
|
|
91
|
+
}}>
|
|
92
|
+
This is an example of text with overflow and a Tooltip to help or provide information about specific components
|
|
93
|
+
when a user hovers over them.
|
|
94
|
+
</Text>
|
|
95
|
+
<Heading type="h3">Text with 2 lines</Heading>
|
|
96
|
+
<Text maxLines={2}>
|
|
97
|
+
This is an example of text with ellipsis which displayed after two full lines of content this is an example of
|
|
98
|
+
text with ellipsis which displayed after two full lines of content
|
|
99
|
+
</Text>
|
|
100
|
+
<Heading type="h3">Text with array of elements</Heading>
|
|
101
|
+
<Text maxLines={1}>
|
|
102
|
+
{["This is an example of array of texts and ", <Link text="Other elements" href="https://www.monday.com" inheritFontSize inlineText />, " that are overflowing and create a tooltip with the correct information"]}
|
|
103
|
+
</Text>
|
|
104
|
+
</Flex>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Paragraph
|
|
108
|
+
|
|
109
|
+
```tsx
|
|
110
|
+
<Flex direction="column">
|
|
111
|
+
<Text element="p">
|
|
112
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
|
113
|
+
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
114
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
|
|
115
|
+
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
|
|
116
|
+
laborum.
|
|
117
|
+
</Text>
|
|
118
|
+
<Text element="p" ellipsis maxLines={3}>
|
|
119
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
|
120
|
+
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
121
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
|
|
122
|
+
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
|
|
123
|
+
laborum.
|
|
124
|
+
</Text>
|
|
125
|
+
</Flex>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Links inside running text
|
|
129
|
+
|
|
130
|
+
```tsx
|
|
131
|
+
<Flex direction="column" align="start" gap="small">
|
|
132
|
+
<Text align="center">
|
|
133
|
+
This is the story of a{" "}
|
|
134
|
+
<StorybookLink page="Foundations/Typography" size="small">
|
|
135
|
+
link
|
|
136
|
+
</StorybookLink>{" "}
|
|
137
|
+
inside running text.
|
|
138
|
+
</Text>
|
|
139
|
+
<Box style={{
|
|
140
|
+
backgroundColor: "var(--primary-color)",
|
|
141
|
+
width: "420px"
|
|
142
|
+
}} padding="small">
|
|
143
|
+
<Text align="center" color="onPrimary">
|
|
144
|
+
This is the story of a{" "}
|
|
145
|
+
<StorybookLink page="Foundations/Typography" size="small">
|
|
146
|
+
link
|
|
147
|
+
</StorybookLink>{" "}
|
|
148
|
+
inside running text on a primary color
|
|
149
|
+
</Text>
|
|
150
|
+
</Box>
|
|
151
|
+
<Box style={{
|
|
152
|
+
width: "420px"
|
|
153
|
+
}} backgroundColor="invertedColorBackground" padding="small">
|
|
154
|
+
<Text align="center" color="onInverted">
|
|
155
|
+
This is the story of a{" "}
|
|
156
|
+
<StorybookLink page="Foundations/Typography" size="small">
|
|
157
|
+
link
|
|
158
|
+
</StorybookLink>{" "}
|
|
159
|
+
inside running text on an inverted color
|
|
160
|
+
</Text>
|
|
161
|
+
</Box>
|
|
162
|
+
<Box style={{
|
|
163
|
+
backgroundColor: "black",
|
|
164
|
+
width: "420px"
|
|
165
|
+
}} padding="small">
|
|
166
|
+
<Text ellipsis={false} style={{}} align="center" color="fixedLight">
|
|
167
|
+
This is the story of a{" "}
|
|
168
|
+
<StorybookLink page="Foundations/Typography" size="small">
|
|
169
|
+
link
|
|
170
|
+
</StorybookLink>{" "}
|
|
171
|
+
inside running text with fixed light color
|
|
172
|
+
</Text>
|
|
173
|
+
</Box>
|
|
174
|
+
<Box style={{
|
|
175
|
+
backgroundColor: "whitesmoke",
|
|
176
|
+
width: "420px"
|
|
177
|
+
}} padding="small">
|
|
178
|
+
<Text ellipsis={false} align="center" color="fixedDark">
|
|
179
|
+
This is the story of a{" "}
|
|
180
|
+
<StorybookLink page="Foundations/Typography" size="small">
|
|
181
|
+
link
|
|
182
|
+
</StorybookLink>{" "}
|
|
183
|
+
inside running text with fixed dark color
|
|
184
|
+
</Text>
|
|
185
|
+
</Box>
|
|
186
|
+
</Flex>
|
|
187
|
+
```
|
|
188
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Sizes
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
<>
|
|
7
|
+
<TextArea id="sizes-large" aria-label="Large text area" size="large" label="Large text area" />
|
|
8
|
+
<TextArea id="sizes-small" aria-label="Small text area" size="small" label="Small text area" />
|
|
9
|
+
</>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## States
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
<>
|
|
16
|
+
<TextArea id="states-success" aria-label="Success text area" size="small" label="Success state" success />
|
|
17
|
+
<TextArea id="states-error" aria-label="Error text area" size="small" label="Error state" error />
|
|
18
|
+
<TextArea id="states-disabled" aria-label="Disabled text area" size="small" label="Disabled state" disabled />
|
|
19
|
+
<TextArea id="states-readonly" aria-label="Read only text area" size="small" label="Read only state" readOnly />
|
|
20
|
+
</>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Validation
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
<TextArea id="validation-textarea" aria-label="Text area with validation" size="small" label="Text area label" error required helpText="Validation text" />
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
<div style={{
|
|
7
|
+
width: 300
|
|
8
|
+
}}>
|
|
9
|
+
<TextField {...args} />
|
|
10
|
+
</div>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Sizes
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
<Flex direction="column" gap="medium" style={{
|
|
17
|
+
width: 300
|
|
18
|
+
}}>
|
|
19
|
+
<TextField id="sizes-small" inputAriaLabel="Small text field" placeholder="Small" />
|
|
20
|
+
<TextField id="sizes-medium" inputAriaLabel="Medium text field" placeholder="Medium" size="medium" />
|
|
21
|
+
<TextField id="sizes-large" inputAriaLabel="Large text field" placeholder="Large" size="large" />
|
|
22
|
+
</Flex>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## States
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
<Flex gap="large">
|
|
29
|
+
<Flex direction="column" gap="medium" style={{
|
|
30
|
+
marginTop: "var(--space-32)",
|
|
31
|
+
width: 300
|
|
32
|
+
}}>
|
|
33
|
+
<TextField id="states-disabled" inputAriaLabel="Disabled text field" placeholder="Disabled" size="medium" disabled />
|
|
34
|
+
<TextField id="states-with-icon" inputAriaLabel="Text field with icon" placeholder="With icon" icon={Email} size="medium" />
|
|
35
|
+
<TextField id="states-clickable-icon" inputAriaLabel="Text field with clickable icon" placeholder="With clickable icon" iconTooltipContent="Copy" icon={Duplicate} onIconClick={() => {}} size="medium" />
|
|
36
|
+
</Flex>
|
|
37
|
+
<Flex direction="column" gap="medium" style={{
|
|
38
|
+
width: 300
|
|
39
|
+
}}>
|
|
40
|
+
<TextField id="states-with-label" placeholder="With field label" title="Name" size="medium" />
|
|
41
|
+
<TextField id="states-success" inputAriaLabel="Success text field" placeholder="Success" validation={{
|
|
42
|
+
status: "success"
|
|
43
|
+
}} icon={Check} size="medium" />
|
|
44
|
+
<TextField id="states-error" inputAriaLabel="Error text field" placeholder="Error" validation={{
|
|
45
|
+
status: "error"
|
|
46
|
+
}} icon={CloseSmall} size="medium" />
|
|
47
|
+
</Flex>
|
|
48
|
+
</Flex>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Validation
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
<div style={{
|
|
55
|
+
width: 300
|
|
56
|
+
}}>
|
|
57
|
+
<TextField id="validation-textfield" placeholder="Validate me" title="Name" size="medium" validation={{
|
|
58
|
+
status: "error",
|
|
59
|
+
text: "Validation text"
|
|
60
|
+
}} />
|
|
61
|
+
</div>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Text field in a form
|
|
65
|
+
|
|
66
|
+
```tsx
|
|
67
|
+
<Flex align="stretch" direction="column" gap="large" style={{
|
|
68
|
+
width: 300
|
|
69
|
+
}}>
|
|
70
|
+
<Heading type="h1" weight="bold" maxLines={2}>
|
|
71
|
+
Dark Mode Feedback Form
|
|
72
|
+
</Heading>
|
|
73
|
+
<Flex direction="column" gap="medium">
|
|
74
|
+
<TextField id="form-name" title="Your Name" size="medium" placeholder="John Doe" />
|
|
75
|
+
<TextField id="form-email" title="Email" size="medium" placeholder="email@monday.com" />
|
|
76
|
+
</Flex>
|
|
77
|
+
</Flex>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Input field with placeholder text
|
|
81
|
+
|
|
82
|
+
```tsx
|
|
83
|
+
<div style={{
|
|
84
|
+
width: 300
|
|
85
|
+
}}>
|
|
86
|
+
<TextField id="placeholder-text-field" title="Invite with email" labelIconName={Email} placeholder="Enter one or more email" size="medium" />
|
|
87
|
+
</div>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Required input field
|
|
91
|
+
|
|
92
|
+
```tsx
|
|
93
|
+
<div style={{
|
|
94
|
+
width: 300
|
|
95
|
+
}}>
|
|
96
|
+
<TextField id="required-field" placeholder="Your email" title="Email Address" size="medium" required />
|
|
97
|
+
</div>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Input field with date
|
|
101
|
+
|
|
102
|
+
```tsx
|
|
103
|
+
<div style={{
|
|
104
|
+
width: 300
|
|
105
|
+
}}>
|
|
106
|
+
<TextField id="date-field" inputAriaLabel="Select a date" size="medium" type="date" />
|
|
107
|
+
</div>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Input field with date and time
|
|
111
|
+
|
|
112
|
+
```tsx
|
|
113
|
+
<div style={{
|
|
114
|
+
width: 300
|
|
115
|
+
}}>
|
|
116
|
+
<TextField id="datetime-field" inputAriaLabel="Select date and time" size="medium" type="datetime-local" />
|
|
117
|
+
</div>
|
|
118
|
+
```
|
|
119
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Colors eligible for theming
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
<ColorsEligibleForThemingTemplate />
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## With systemTheme
|
|
10
|
+
|
|
11
|
+
```tsx
|
|
12
|
+
const [systemTheme, setSystemTheme] = useState(null);
|
|
13
|
+
const onToggleButtonClick = () => {
|
|
14
|
+
switch (systemTheme) {
|
|
15
|
+
case "light":
|
|
16
|
+
setSystemTheme("dark");
|
|
17
|
+
break;
|
|
18
|
+
case "dark":
|
|
19
|
+
setSystemTheme("light");
|
|
20
|
+
break;
|
|
21
|
+
default:
|
|
22
|
+
setSystemTheme("dark");
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return <Flex direction="row" gap="large">
|
|
26
|
+
<ThemeProvider themeConfig={{
|
|
27
|
+
name: "with-system-theme",
|
|
28
|
+
colors: {
|
|
29
|
+
dark: {
|
|
30
|
+
"primary-color": "var(--positive-color)",
|
|
31
|
+
"primary-hover-color": "var(--positive-color-hover)"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}} systemTheme={systemTheme}>
|
|
35
|
+
<Button onClick={onToggleButtonClick} data-testid={"system-theme-toggle-button"}>
|
|
36
|
+
Themed
|
|
37
|
+
</Button>
|
|
38
|
+
</ThemeProvider>
|
|
39
|
+
</Flex>;
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## monday.com SDK integration
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
return <Source code={MondaySdkIntegrationSourceCode}></Source>;
|
|
46
|
+
```
|
|
47
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
const tipseenTemplate = ({
|
|
7
|
+
title,
|
|
8
|
+
children,
|
|
9
|
+
position,
|
|
10
|
+
...otherArgs
|
|
11
|
+
}: TipseenProps & TipseenContentProps) => {
|
|
12
|
+
return <Tipseen middleware={storyMiddleware} position={position} content={<TipseenContent title={title}>{children}</TipseenContent>} {...otherArgs}>
|
|
13
|
+
<div style={{
|
|
14
|
+
height: "160px"
|
|
15
|
+
}} />
|
|
16
|
+
</Tipseen>;
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Colors
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
return <Flex direction="column">
|
|
24
|
+
<Tipseen id="colors-tipseen-1" middleware={storyMiddleware} position="right" content={<TipseenContent id="colors-content-1" title="This is a title">
|
|
25
|
+
Message for the user will appear here, to give more information about the feature.
|
|
26
|
+
</TipseenContent>}>
|
|
27
|
+
<div style={{
|
|
28
|
+
height: "180px"
|
|
29
|
+
}} />
|
|
30
|
+
</Tipseen>
|
|
31
|
+
<Tipseen id="colors-tipseen-2" middleware={storyMiddleware} position="right" color="primary" content={<TipseenContent id="colors-content-2" title="This is a title">
|
|
32
|
+
Message for the user will appear here, to give more information about the feature.
|
|
33
|
+
</TipseenContent>}>
|
|
34
|
+
<div style={{
|
|
35
|
+
height: "180px"
|
|
36
|
+
}} />
|
|
37
|
+
</Tipseen>
|
|
38
|
+
</Flex>;
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Tipseen with a wizard
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
const content = [<div>Popover message №1 will appear here</div>, <div>Popover message №2 will appear here</div>, <div>Popover message №3 will appear here</div>, <div>Popover message №4 will appear here</div>, <div>Popover message №5 will appear here</div>];
|
|
45
|
+
const [activeStepIndex, setActiveStepIndex] = useState(2);
|
|
46
|
+
const onChangeActiveStep = useCallback((_e: any, stepIndex: React.SetStateAction<number>) => {
|
|
47
|
+
setActiveStepIndex(stepIndex);
|
|
48
|
+
}, []);
|
|
49
|
+
return <Tipseen middleware={storyMiddleware} position="right" content={<TipseenWizard title="This is a title" steps={content} activeStepIndex={activeStepIndex} onChangeActiveStep={onChangeActiveStep} onFinish={() => {}} />}>
|
|
50
|
+
<div style={{
|
|
51
|
+
height: "150px"
|
|
52
|
+
}} />
|
|
53
|
+
</Tipseen>;
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Tipseen with image
|
|
57
|
+
|
|
58
|
+
```tsx
|
|
59
|
+
const content = [<div>Message for the user will appear here, to give more information about the feature.</div>, <div>Message for the user will appear here, to give more information about the feature.</div>, <div>Message for the user will appear here, to give more information about the feature.</div>, <div>Message for the user will appear here, to give more information about the feature.</div>, <div>Message for the user will appear here, to give more information about the feature.</div>];
|
|
60
|
+
return <Tipseen middleware={storyMiddleware} position="right" closeButtonTheme="light" content={<>
|
|
61
|
+
<TipseenMedia>
|
|
62
|
+
<img src={picture} alt="" style={{
|
|
63
|
+
objectFit: "cover",
|
|
64
|
+
width: "100%"
|
|
65
|
+
}} />
|
|
66
|
+
</TipseenMedia>
|
|
67
|
+
<TipseenWizard title="This is a title" steps={content} activeStepIndex={2} />
|
|
68
|
+
</>}>
|
|
69
|
+
<div style={{
|
|
70
|
+
height: "300px"
|
|
71
|
+
}} />
|
|
72
|
+
</Tipseen>;
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Tipseen with custom media
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
return <Tipseen middleware={storyMiddleware} position="right" closeButtonTheme="dark" content={<>
|
|
79
|
+
<TipseenMedia>
|
|
80
|
+
<video autoPlay muted loop src={video} style={{
|
|
81
|
+
width: "100%"
|
|
82
|
+
}} />
|
|
83
|
+
</TipseenMedia>
|
|
84
|
+
<TipseenContent title="This is a title">
|
|
85
|
+
Message for the user will appear here, to give more information about the feature.
|
|
86
|
+
</TipseenContent>
|
|
87
|
+
</>}>
|
|
88
|
+
<div style={{
|
|
89
|
+
height: "280px"
|
|
90
|
+
}} />
|
|
91
|
+
</Tipseen>;
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Floating Tipseen
|
|
95
|
+
|
|
96
|
+
```tsx
|
|
97
|
+
return <Tipseen closeButtonTheme="dark" floating content={<>
|
|
98
|
+
<TipseenMedia>
|
|
99
|
+
<img src={picture} alt="" style={{
|
|
100
|
+
objectFit: "cover",
|
|
101
|
+
width: "100%"
|
|
102
|
+
}} />
|
|
103
|
+
</TipseenMedia>
|
|
104
|
+
<TipseenContent title="This is a Floating Tipseen">
|
|
105
|
+
Message for the user will appear here, to give more information about the feature.
|
|
106
|
+
</TipseenContent>
|
|
107
|
+
</>}
|
|
108
|
+
// You do not have to use containerSelector, in current use this is for story only
|
|
109
|
+
containerSelector="#tipseen-floating-container" />;
|
|
110
|
+
```
|
|
111
|
+
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Default with button
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
return <Toast id="default-with-button" open actions={[{
|
|
7
|
+
type: "button",
|
|
8
|
+
content: "Button"
|
|
9
|
+
}]}>
|
|
10
|
+
General message toast
|
|
11
|
+
</Toast>;
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Toast with link
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
return <Toast id="toast-with-link" open actions={[{
|
|
18
|
+
type: "link",
|
|
19
|
+
text: "Link to action",
|
|
20
|
+
href: "https://monday.com"
|
|
21
|
+
}]}>
|
|
22
|
+
General message toast
|
|
23
|
+
</Toast>;
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Toast with loading
|
|
27
|
+
|
|
28
|
+
```tsx
|
|
29
|
+
return <Toast id="toast-loading" open loading>
|
|
30
|
+
General message toast
|
|
31
|
+
</Toast>;
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Success message
|
|
35
|
+
|
|
36
|
+
```tsx
|
|
37
|
+
return <Toast id="success-message" open type="positive" actions={[{
|
|
38
|
+
type: "button",
|
|
39
|
+
content: "Undo 5"
|
|
40
|
+
}]}>
|
|
41
|
+
Positive message toast
|
|
42
|
+
</Toast>;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Error message
|
|
46
|
+
|
|
47
|
+
```tsx
|
|
48
|
+
return <Toast id="error-message" open actions={[{
|
|
49
|
+
type: "button",
|
|
50
|
+
content: "Button"
|
|
51
|
+
}]} type="negative">
|
|
52
|
+
Negative message toast
|
|
53
|
+
</Toast>;
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Warning message
|
|
57
|
+
|
|
58
|
+
```tsx
|
|
59
|
+
return <Toast id="warning-message" open actions={[{
|
|
60
|
+
type: "button",
|
|
61
|
+
content: "Button"
|
|
62
|
+
}]} type="warning">
|
|
63
|
+
Warning message toast
|
|
64
|
+
</Toast>;
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Dark message
|
|
68
|
+
|
|
69
|
+
```tsx
|
|
70
|
+
return <Toast id="dark-message" open actions={[{
|
|
71
|
+
type: "button",
|
|
72
|
+
content: "Button"
|
|
73
|
+
}]} type="dark">
|
|
74
|
+
Dark message toast
|
|
75
|
+
</Toast>;
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## FeedbackLoop
|
|
79
|
+
|
|
80
|
+
```tsx
|
|
81
|
+
return <Toast id="feedback-loop" open type="positive" actions={[{
|
|
82
|
+
type: "button",
|
|
83
|
+
content: "Undo"
|
|
84
|
+
}]}>
|
|
85
|
+
We successfully deleted 1 item
|
|
86
|
+
</Toast>;
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Animation
|
|
90
|
+
|
|
91
|
+
```tsx
|
|
92
|
+
const [successToastOpen, setSuccessToastOpen] = useState(false);
|
|
93
|
+
const [failureToastOpen, setFailureToastOpen] = useState(false);
|
|
94
|
+
const [isDeleting, setIsDeleting] = useState(false);
|
|
95
|
+
const onSuccessClick = useCallback(() => {
|
|
96
|
+
setSuccessToastOpen(true);
|
|
97
|
+
setIsDeleting(true);
|
|
98
|
+
setTimeout(() => {
|
|
99
|
+
setIsDeleting(false);
|
|
100
|
+
}, 1000);
|
|
101
|
+
}, []);
|
|
102
|
+
const onFailureClick = useCallback(() => {
|
|
103
|
+
setFailureToastOpen(true);
|
|
104
|
+
setIsDeleting(true);
|
|
105
|
+
setTimeout(() => {
|
|
106
|
+
setIsDeleting(false);
|
|
107
|
+
}, 1000);
|
|
108
|
+
}, []);
|
|
109
|
+
return <Flex gap="medium">
|
|
110
|
+
<Button id="animation-success-button" aria-label="Trigger success toast" onClick={onSuccessClick} kind="secondary">
|
|
111
|
+
Success action
|
|
112
|
+
</Button>
|
|
113
|
+
<Button id="animation-failure-button" aria-label="Trigger failure toast" onClick={onFailureClick} kind="secondary">
|
|
114
|
+
Failure action
|
|
115
|
+
</Button>
|
|
116
|
+
<Toast id="animation-success-toast" open={successToastOpen} type={isDeleting ? "normal" : "positive"} actions={isDeleting ? [] : [{
|
|
117
|
+
type: "button",
|
|
118
|
+
content: "Undo"
|
|
119
|
+
}]} onClose={() => setSuccessToastOpen(false)} autoHideDuration={2000} loading={isDeleting}>
|
|
120
|
+
{isDeleting ? "Deleting 1 selected item..." : "We successfully deleted 1 item"}
|
|
121
|
+
</Toast>
|
|
122
|
+
<Toast id="animation-failure-toast" open={failureToastOpen} type={isDeleting ? "normal" : "negative"} onClose={() => setFailureToastOpen(false)} autoHideDuration={2000} loading={isDeleting}>
|
|
123
|
+
{isDeleting ? "Deleting 1 selected item..." : "Something went wrong"}
|
|
124
|
+
</Toast>
|
|
125
|
+
</Flex>;
|
|
126
|
+
```
|
|
127
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## States
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
<Flex direction="column" gap="medium">
|
|
7
|
+
<Toggle id="states-off" aria-label="Toggle off state" isDefaultSelected={false} />
|
|
8
|
+
<Toggle id="states-on" aria-label="Toggle on state" />
|
|
9
|
+
</Flex>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Size
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
<Flex gap="large">
|
|
16
|
+
<Toggle id="size-medium" aria-label="Medium toggle" size="medium" />
|
|
17
|
+
<Toggle id="size-small" aria-label="Small toggle" size="small" />
|
|
18
|
+
</Flex>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Disabled
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
<Flex direction="column" gap="large">
|
|
25
|
+
<Toggle id="disabled-off" aria-label="Disabled toggle off" isDefaultSelected={false} disabled />
|
|
26
|
+
<Toggle id="disabled-on" aria-label="Disabled toggle on" disabled />
|
|
27
|
+
</Flex>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Turn on/ off an automation
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
<Flex gap="medium">
|
|
34
|
+
<Text id="automation-label">Board automations</Text>
|
|
35
|
+
<Toggle id="automation-toggle" aria-label="Toggle board automations" />
|
|
36
|
+
</Flex>
|
|
37
|
+
```
|
|
38
|
+
|