@heliux-org/design-system-core 0.0.333 → 0.0.334-Testing
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Table.js.map +1 -1
- package/dist/components/NewTable/Table.js +2 -1
- package/dist/components/NewTable/Table.js.map +1 -1
- package/dist/components/NewTable/components/useLeafyGreenTable/TableHeaderCheckbox.js +7 -1
- package/dist/components/NewTable/components/useLeafyGreenTable/TableHeaderCheckbox.js.map +1 -1
- package/dist/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +2 -21
- package/dist/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
- package/dist/esm/components/NewTable/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts.map +1 -1
- package/dist/esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts +1 -1
- package/dist/esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
- package/dist/esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts +0 -1
- package/dist/esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts.map +1 -1
- package/dist/esm/src/components/Accordion/Accordion/Accordion.module.scss.js +1 -1
- package/dist/esm/src/components/AlertBanner/AlertBanner.module.scss.js +1 -1
- package/dist/esm/src/components/AlertBanner/AlertBannerButton/AlertBannerButton.module.scss.js +1 -1
- package/dist/esm/src/components/AlertBanner/AlertBannerLink/AlertBannerLink.module.scss.js +1 -1
- package/dist/esm/src/components/AlertBanner/AlertBannerText/AlertBannerText.module.scss.js +1 -1
- package/dist/esm/src/components/AttentionBox/AttentionBox.module.scss.js +1 -1
- package/dist/esm/src/components/AttentionBox/AttentionBoxLink/AttentionBoxLink.module.scss.js +1 -1
- package/dist/esm/src/components/Avatar/Avatar.module.scss.js +1 -1
- package/dist/esm/src/components/Avatar/AvatarBadge.module.scss.js +1 -1
- package/dist/esm/src/components/Avatar/AvatarContent.module.scss.js +1 -1
- package/dist/esm/src/components/AvatarGroup/AvatarGroup.module.scss.js +1 -1
- package/dist/esm/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +1 -1
- package/dist/esm/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +1 -1
- package/dist/esm/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +1 -1
- package/dist/esm/src/components/Badge/Badge.module.scss.js +1 -1
- package/dist/esm/src/components/Badge/Indicator/Indicator.module.scss.js +1 -1
- package/dist/esm/src/components/Box/Box.module.scss.js +1 -1
- package/dist/esm/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
- package/dist/esm/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
- package/dist/esm/src/components/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
- package/dist/esm/src/components/Button/Button.module.scss.js +1 -1
- package/dist/esm/src/components/ButtonGroup/ButtonGroup.module.scss.js +1 -1
- package/dist/esm/src/components/Checkbox/Checkbox.module.scss.js +1 -1
- package/dist/esm/src/components/Clickable/Clickable.module.scss.js +1 -1
- package/dist/esm/src/components/ColorPicker/ColorPicker.module.scss.js +1 -1
- package/dist/esm/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +1 -1
- package/dist/esm/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +1 -1
- package/dist/esm/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +1 -1
- package/dist/esm/src/components/Combobox/Combobox.module.scss.js +1 -1
- package/dist/esm/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
- package/dist/esm/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
- package/dist/esm/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
- package/dist/esm/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
- package/dist/esm/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
- package/dist/esm/src/components/Comments/comments.scss.js +1 -1
- package/dist/esm/src/components/Counter/Counter.module.scss.js +1 -1
- package/dist/esm/src/components/DatePicker/DateNavigationItem/DateNavigationItem.module.scss.js +1 -1
- package/dist/esm/src/components/DatePicker/DatePicker.module.scss.js +1 -1
- package/dist/esm/src/components/DatePicker/DatePickerHeader/DatePickerHeader.module.scss.js +1 -1
- package/dist/esm/src/components/DatePicker/YearPicker/YearPicker.module.scss.js +1 -1
- package/dist/esm/src/components/DatePicker/external_datepicker.scss.js +1 -1
- package/dist/esm/src/components/Dialog/Dialog.module.scss.js +1 -1
- package/dist/esm/src/components/Dialog/DialogContent/DialogContent.module.scss.js +1 -1
- package/dist/esm/src/components/DialogContentContainer/DialogContentContainer.module.scss.js +1 -1
- package/dist/esm/src/components/Diffs/DiffCell/DiffCell.module.scss.js +1 -1
- package/dist/esm/src/components/Divider/Divider.module.scss.js +1 -1
- package/dist/esm/src/components/Dropdown/Dropdown.module.scss.js +1 -1
- package/dist/esm/src/components/Dropdown/components/ChildrenContent/ChildrenContent.module.scss.js +1 -1
- package/dist/esm/src/components/Dropdown/components/ClearIndicator/ClearIndicator.module.scss.js +1 -1
- package/dist/esm/src/components/Dropdown/components/MultiValueContainer/MultiValueContainer.module.scss.js +1 -1
- package/dist/esm/src/components/Dropdown/components/menu/menu.module.scss.js +1 -1
- package/dist/esm/src/components/Dropdown/components/option/option.module.scss.js +1 -1
- package/dist/esm/src/components/Dropdown/components/singleValue/singleValue.module.scss.js +1 -1
- package/dist/esm/src/components/EditableHeading/EditableHeading.module.scss.js +1 -1
- package/dist/esm/src/components/EditableInput/EditableInput.module.scss.js +1 -1
- package/dist/esm/src/components/EditableText/EditableText.module.scss.js +1 -1
- package/dist/esm/src/components/EditableTypography/EditableTypography.module.scss.js +1 -1
- package/dist/esm/src/components/EmptyState/EmptyState.module.scss.js +1 -1
- package/dist/esm/src/components/ExpandCollapse/ExpandCollapse.module.scss.js +1 -1
- package/dist/esm/src/components/FieldLabel/FieldLabel.module.scss.js +1 -1
- package/dist/esm/src/components/Flex/Flex.module.scss.js +1 -1
- package/dist/esm/src/components/FormattedNumber/FormattedNumber.module.scss.js +1 -1
- package/dist/esm/src/components/HeaderActions/HeaderActions.module.scss.js +1 -1
- package/dist/esm/src/components/Heading/Heading.module.scss.js +1 -1
- package/dist/esm/src/components/HiddenText/HiddenText.module.scss.js +1 -1
- package/dist/esm/src/components/Icon/Icon.module.scss.js +1 -1
- package/dist/esm/src/components/IconButton/IconButton.module.scss.js +1 -1
- package/dist/esm/src/components/InlineEdit/InlineEdit.module.scss.js +1 -1
- package/dist/esm/src/components/Label/Label.module.scss.js +1 -1
- package/dist/esm/src/components/LegacyEditableHeading/LegacyEditableHeading.module.scss.js +1 -1
- package/dist/esm/src/components/LegacyHeading/LegacyHeading.module.scss.js +1 -1
- package/dist/esm/src/components/Link/Link.module.scss.js +1 -1
- package/dist/esm/src/components/List/List.module.scss.js +1 -1
- package/dist/esm/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
- package/dist/esm/src/components/ListItem/ListItem.module.scss.js +1 -1
- package/dist/esm/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
- package/dist/esm/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
- package/dist/esm/src/components/ListTitle/ListTitle.module.scss.js +1 -1
- package/dist/esm/src/components/Loader/Loader.module.scss.js +1 -1
- package/dist/esm/src/components/Menu/Menu/Menu.module.scss.js +1 -1
- package/dist/esm/src/components/Menu/MenuDivider/MenuDivider.module.scss.js +1 -1
- package/dist/esm/src/components/Menu/MenuItem/MenuItem.module.scss.js +1 -1
- package/dist/esm/src/components/Menu/MenuItemButton/MenuItemButton.module.scss.js +1 -1
- package/dist/esm/src/components/Menu/MenuTitle/MenuTitle.module.scss.js +1 -1
- package/dist/esm/src/components/MenuButton/MenuButton.module.scss.js +1 -1
- package/dist/esm/src/components/Modal/Modal.module.scss.js +1 -1
- package/dist/esm/src/components/Modal/ModalContent/ModalContent.module.scss.js +1 -1
- package/dist/esm/src/components/Modal/ModalFooter/ModalFooter.module.scss.js +1 -1
- package/dist/esm/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
- package/dist/esm/src/components/MultiStepIndicator/MultiStepIndicator.module.scss.js +1 -1
- package/dist/esm/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.module.scss.js +1 -1
- package/dist/esm/src/components/NewTable/Table.js.map +1 -1
- package/dist/esm/src/components/NewTable/Table.module.scss.js +1 -1
- package/dist/esm/src/components/NewTable/components/Cell/Cell.module.scss.js +1 -1
- package/dist/esm/src/components/NewTable/components/Cell/HeaderCell/HeaderCell.module.scss.js +1 -1
- package/dist/esm/src/components/NewTable/components/ExpandedContent/ExpandedContent.module.scss.js +1 -1
- package/dist/esm/src/components/NewTable/components/Row/Row.module.scss.js +1 -1
- package/dist/esm/src/components/NewTable/components/TableHead/TableHead.module.scss.js +1 -1
- package/dist/esm/src/components/NewTable/components/TableHeader/TableHeader.module.scss.js +1 -1
- package/dist/esm/src/components/NewTable/components/ToggleExpandedIcon/ToggleExpandedIcon.module.scss.js +1 -1
- package/dist/esm/src/components/NewTable/components/newComponents/pagination/Pagination.module.scss.js +1 -1
- package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/TableHeaderCheckbox.js +1 -1
- package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/TableHeaderCheckbox.js.map +1 -1
- package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +1 -1
- package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
- package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.module.scss.js +1 -1
- package/dist/esm/src/components/NumericField/NumericField.module.scss.js +1 -1
- package/dist/esm/src/components/PageHeader/PageHeader.module.scss.js +1 -1
- package/dist/esm/src/components/Panel/Panel.module.scss.js +1 -1
- package/dist/esm/src/components/PanelLayout/PanelLayout.module.scss.js +1 -1
- package/dist/esm/src/components/ProcessingToast/ProcessingToast.module.scss.js +1 -1
- package/dist/esm/src/components/ProgressBars/LinearProgressBar/Bar/Bar.module.scss.js +1 -1
- package/dist/esm/src/components/ProgressBars/LinearProgressBar/LinearProgressBar.module.scss.js +1 -1
- package/dist/esm/src/components/ProgressBars/PercentageLabel/PercentageLabel.module.scss.js +1 -1
- package/dist/esm/src/components/RadioButton/RadioButton.module.scss.js +1 -1
- package/dist/esm/src/components/ResponsiveList/ResponsiveList.module.scss.js +1 -1
- package/dist/esm/src/components/ScrollableContainer/scrollableContainer.scss.js +1 -1
- package/dist/esm/src/components/Search/Search.module.scss.js +1 -1
- package/dist/esm/src/components/SectionHeader/SectionHeader.module.scss.js +1 -1
- package/dist/esm/src/components/SegmentControl/SegmentControlCell/SegmentControlCell.module.scss.js +1 -1
- package/dist/esm/src/components/SegmentControl/SegmentControlList/SegmentControlList.module.scss.js +1 -1
- package/dist/esm/src/components/Sidebar/Sidebar.module.scss.js +1 -1
- package/dist/esm/src/components/Skeleton/Skeleton.module.scss.js +1 -1
- package/dist/esm/src/components/Slider/SelectionIndicator.module.scss.js +1 -1
- package/dist/esm/src/components/Slider/Slider.module.scss.js +1 -1
- package/dist/esm/src/components/Slider/SliderBase/SliderBase.module.scss.js +1 -1
- package/dist/esm/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js +1 -1
- package/dist/esm/src/components/Slider/SliderBase/SliderRail.module.scss.js +1 -1
- package/dist/esm/src/components/Slider/SliderBase/SliderThumb.module.scss.js +1 -1
- package/dist/esm/src/components/Slider/SliderBase/SliderTrack.module.scss.js +1 -1
- package/dist/esm/src/components/Slider/SliderInfix.module.scss.js +1 -1
- package/dist/esm/src/components/SplitButton/SplitButton.module.scss.js +1 -1
- package/dist/esm/src/components/Steps/Steps.module.scss.js +1 -1
- package/dist/esm/src/components/Steps/StepsCommand.module.scss.js +1 -1
- package/dist/esm/src/components/Steps/StepsDot.module.scss.js +1 -1
- package/dist/esm/src/components/Steps/StepsGalleryHeader.module.scss.js +1 -1
- package/dist/esm/src/components/Steps/StepsHeader.module.scss.js +1 -1
- package/dist/esm/src/components/Steps/StepsNumbersHeader.module.scss.js +1 -1
- package/dist/esm/src/components/Switch/Switch.module.scss.js +1 -1
- package/dist/esm/src/components/Table/TableHeader.module.scss.js +1 -1
- package/dist/esm/src/components/Table/styling/column-filter.scss.js +1 -1
- package/dist/esm/src/components/Table/styling/paginator.scss.js +1 -1
- package/dist/esm/src/components/Table/styling/table_base.scss.js +1 -1
- package/dist/esm/src/components/Table/table.scss.js +1 -1
- package/dist/esm/src/components/Tabs/Tab/Tab.module.scss.js +1 -1
- package/dist/esm/src/components/Tabs/TabList/TabList.module.scss.js +1 -1
- package/dist/esm/src/components/Tabs/TabPanel/TabPanel.module.scss.js +1 -1
- package/dist/esm/src/components/Tabs/TabPanels/TabPanels.module.scss.js +1 -1
- package/dist/esm/src/components/Tags/Tags.module.scss.js +1 -1
- package/dist/esm/src/components/Text/Text.module.scss.js +1 -1
- package/dist/esm/src/components/TextAreaField/TextAreaField.module.scss.js +1 -1
- package/dist/esm/src/components/TextField/TextField.module.scss.js +1 -1
- package/dist/esm/src/components/TextWithHighlight/TextWithHighlight.module.scss.js +1 -1
- package/dist/esm/src/components/Timeline/Timeline/Timeline.module.scss.js +1 -1
- package/dist/esm/src/components/Timeline/TimelineRow/TimelineRow.module.scss.js +1 -1
- package/dist/esm/src/components/Tipseen/Tipseen.module.scss.js +1 -1
- package/dist/esm/src/components/Tipseen/TipseenBasicContent.module.scss.js +1 -1
- package/dist/esm/src/components/Tipseen/TipseenContent.module.scss.js +1 -1
- package/dist/esm/src/components/Tipseen/TipseenImage.module.scss.js +1 -1
- package/dist/esm/src/components/Tipseen/TipseenMedia/TipseenMedia.module.scss.js +1 -1
- package/dist/esm/src/components/Tipseen/TipseenTitle.module.scss.js +1 -1
- package/dist/esm/src/components/Tipseen/TipseenWizard.module.scss.js +1 -1
- package/dist/esm/src/components/Toast/Toast.module.scss.js +1 -1
- package/dist/esm/src/components/Toast/ToastLink/ToastLink.module.scss.js +1 -1
- package/dist/esm/src/components/Toggle/MockToggle.module.scss.js +1 -1
- package/dist/esm/src/components/Toggle/Toggle.module.scss.js +1 -1
- package/dist/esm/src/components/Toggle/ToggleText.module.scss.js +1 -1
- package/dist/esm/src/components/Tooltip/Tooltip.module.scss.js +1 -1
- package/dist/esm/src/components/TopNavigationBar/TopNavigationBar.module.scss.js +1 -1
- package/dist/esm/src/components/TopNavigationBar/components/Notification/Notification.module.scss.js +1 -1
- package/dist/esm/src/components/TopNavigationBar/components/NotificationItem/NotificationItem.module.scss.js +1 -1
- package/dist/esm/src/components/Tree/components/TreeFile/TreeFile.scss.js +1 -1
- package/dist/esm/src/components/Tree/components/TreeFileIcon/TreeFileIcon.scss.js +1 -1
- package/dist/esm/src/components/Tree/components/TreeFolder/TreeFolder.scss.js +1 -1
- package/dist/esm/src/components/Tree/components/TreeFolderIcon/TreeFolderIcon.scss.js +1 -1
- package/dist/esm/src/components/Tree/components/TreeStatusIcon/TreeStatusIcon.scss.js +1 -1
- package/dist/esm/src/components/Tree/components/expand/expand.scss.js +1 -1
- package/dist/esm/src/components/Typography/Typography.module.scss.js +1 -1
- package/dist/esm/src/components/Uploader/Uploader.scss.js +1 -1
- package/dist/esm/src/components/VirtualizedGrid/VirtualizedGrid.module.scss.js +1 -1
- package/dist/esm/src/components/VirtualizedList/VirtualizedList.module.scss.js +1 -1
- package/dist/esm/src/components/Workflow/workflow.scss.js +1 -1
- package/dist/esm/src/components/WorkflowCard/WorkflowCard.module.scss.js +1 -1
- package/dist/esm/src/components/WorkflowList/WorkflowList.module.scss.js +1 -1
- package/dist/esm/src/components/WorkflowStep/WorkflowStep.module.scss.js +1 -1
- package/dist/esm/style/dist/index.min.css.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/mocked_classnames_esm/components/NewTable/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts.map +1 -1
- package/dist/mocked_classnames_esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts +1 -1
- package/dist/mocked_classnames_esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
- package/dist/mocked_classnames_esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts +0 -1
- package/dist/mocked_classnames_esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts.map +1 -1
- package/dist/mocked_classnames_esm/src/components/Accordion/Accordion/Accordion.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/AlertBanner/AlertBanner.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/AlertBanner/AlertBannerButton/AlertBannerButton.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/AlertBanner/AlertBannerLink/AlertBannerLink.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/AlertBanner/AlertBannerText/AlertBannerText.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/AttentionBox/AttentionBox.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/AttentionBox/AttentionBoxLink/AttentionBoxLink.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Avatar/Avatar.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Avatar/AvatarBadge.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Avatar/AvatarContent.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/AvatarGroup/AvatarGroup.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Badge/Badge.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Badge/Indicator/Indicator.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Box/Box.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Button/Button.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ButtonGroup/ButtonGroup.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Checkbox/Checkbox.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Clickable/Clickable.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ColorPicker/ColorPicker.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Combobox/Combobox.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Comments/comments.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Counter/Counter.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/DatePicker/DateNavigationItem/DateNavigationItem.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/DatePicker/DatePicker.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/DatePicker/DatePickerHeader/DatePickerHeader.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/DatePicker/YearPicker/YearPicker.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/DatePicker/external_datepicker.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Dialog/Dialog.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Dialog/DialogContent/DialogContent.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/DialogContentContainer/DialogContentContainer.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Diffs/DiffCell/DiffCell.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Divider/Divider.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Dropdown/Dropdown.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Dropdown/components/ChildrenContent/ChildrenContent.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Dropdown/components/ClearIndicator/ClearIndicator.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Dropdown/components/MultiValueContainer/MultiValueContainer.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Dropdown/components/menu/menu.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Dropdown/components/option/option.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Dropdown/components/singleValue/singleValue.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/EditableHeading/EditableHeading.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/EditableInput/EditableInput.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/EditableText/EditableText.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/EditableTypography/EditableTypography.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/EmptyState/EmptyState.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ExpandCollapse/ExpandCollapse.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/FieldLabel/FieldLabel.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Flex/Flex.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/FormattedNumber/FormattedNumber.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/HeaderActions/HeaderActions.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Heading/Heading.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/HiddenText/HiddenText.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Icon/Icon.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/IconButton/IconButton.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/InlineEdit/InlineEdit.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Label/Label.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/LegacyEditableHeading/LegacyEditableHeading.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/LegacyHeading/LegacyHeading.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Link/Link.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/List/List.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ListItem/ListItem.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ListTitle/ListTitle.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Loader/Loader.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Menu/Menu/Menu.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Menu/MenuDivider/MenuDivider.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Menu/MenuItem/MenuItem.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Menu/MenuItemButton/MenuItemButton.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Menu/MenuTitle/MenuTitle.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/MenuButton/MenuButton.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Modal/Modal.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Modal/ModalContent/ModalContent.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Modal/ModalFooter/ModalFooter.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/MultiStepIndicator/MultiStepIndicator.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/Table.js.map +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/Table.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/Cell/Cell.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/Cell/HeaderCell/HeaderCell.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/ExpandedContent/ExpandedContent.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/Row/Row.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/TableHead/TableHead.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/TableHeader/TableHeader.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/ToggleExpandedIcon/ToggleExpandedIcon.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/newComponents/pagination/Pagination.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/TableHeaderCheckbox.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/TableHeaderCheckbox.js.map +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NumericField/NumericField.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/PageHeader/PageHeader.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Panel/Panel.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/PanelLayout/PanelLayout.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ProcessingToast/ProcessingToast.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ProgressBars/LinearProgressBar/Bar/Bar.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ProgressBars/LinearProgressBar/LinearProgressBar.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ProgressBars/PercentageLabel/PercentageLabel.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/RadioButton/RadioButton.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ResponsiveList/ResponsiveList.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/ScrollableContainer/scrollableContainer.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Search/Search.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/SectionHeader/SectionHeader.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/SegmentControl/SegmentControlCell/SegmentControlCell.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/SegmentControl/SegmentControlList/SegmentControlList.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Sidebar/Sidebar.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Skeleton/Skeleton.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Slider/SelectionIndicator.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Slider/Slider.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Slider/SliderBase/SliderBase.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Slider/SliderBase/SliderRail.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Slider/SliderBase/SliderThumb.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Slider/SliderBase/SliderTrack.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Slider/SliderInfix.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/SplitButton/SplitButton.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Steps/Steps.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Steps/StepsCommand.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Steps/StepsDot.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Steps/StepsGalleryHeader.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Steps/StepsHeader.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Steps/StepsNumbersHeader.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Switch/Switch.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Table/TableHeader.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Table/styling/column-filter.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Table/styling/paginator.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Table/styling/table_base.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Table/table.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tabs/Tab/Tab.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tabs/TabList/TabList.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tabs/TabPanel/TabPanel.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tabs/TabPanels/TabPanels.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tags/Tags.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Text/Text.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/TextAreaField/TextAreaField.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/TextField/TextField.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/TextWithHighlight/TextWithHighlight.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Timeline/Timeline/Timeline.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Timeline/TimelineRow/TimelineRow.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tipseen/Tipseen.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tipseen/TipseenBasicContent.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tipseen/TipseenContent.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tipseen/TipseenImage.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tipseen/TipseenMedia/TipseenMedia.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tipseen/TipseenTitle.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tipseen/TipseenWizard.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Toast/Toast.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Toast/ToastLink/ToastLink.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Toggle/MockToggle.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Toggle/Toggle.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Toggle/ToggleText.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tooltip/Tooltip.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/TopNavigationBar/TopNavigationBar.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/TopNavigationBar/components/Notification/Notification.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/TopNavigationBar/components/NotificationItem/NotificationItem.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tree/components/TreeFile/TreeFile.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tree/components/TreeFileIcon/TreeFileIcon.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tree/components/TreeFolder/TreeFolder.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tree/components/TreeFolderIcon/TreeFolderIcon.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tree/components/TreeStatusIcon/TreeStatusIcon.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Tree/components/expand/expand.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Typography/Typography.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Uploader/Uploader.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/VirtualizedGrid/VirtualizedGrid.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/VirtualizedList/VirtualizedList.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/Workflow/workflow.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/WorkflowCard/WorkflowCard.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/WorkflowList/WorkflowList.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/src/components/WorkflowStep/WorkflowStep.module.scss.js +1 -1
- package/dist/mocked_classnames_esm/style/dist/index.min.css.js +1 -1
- package/dist/types/components/NewTable/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts.map +1 -1
- package/dist/types/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts +1 -1
- package/dist/types/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
- package/dist/types/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts +0 -1
- package/dist/types/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/NewTable/Table.tsx +1 -1
- package/src/components/NewTable/__stories__/NewTable.stories.tsx +14 -3
- package/src/components/NewTable/components/useLeafyGreenTable/TableHeaderCheckbox.tsx +6 -1
- package/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx +1 -27
- package/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.types.ts +0 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
import{defineProperty as e}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{jsx as o}from"@emotion/react/jsx-runtime";import t from"classnames";import{useRowContext as
|
1
|
+
import{defineProperty as e}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{jsx as o}from"@emotion/react/jsx-runtime";import t from"classnames";import{useRowContext as l}from"../Row/RowContext.js";import r from"./useLeafyGreenTable.module.scss.js";import a from"../../../Checkbox/Checkbox.js";var s=function(s){var i=s.table,m=l().disabled,n=m?r.themeDark:r.themeLight;return o(a,{className:t(e(e({},r.disabledTableRowCheck,m),n,!0)),disabled:m,checked:i.getIsAllRowsSelected(),indeterminate:i.getIsSomeRowsSelected(),onChange:function(e){i.options.getPaginationRowModel?i.toggleAllPageRowsSelected():i.toggleAllRowsSelected()},"aria-label":"Select all rows"})};export{s as TableHeaderCheckbox};
|
2
2
|
//# sourceMappingURL=TableHeaderCheckbox.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TableHeaderCheckbox.js","sources":["../../../../../../../src/components/NewTable/components/useLeafyGreenTable/TableHeaderCheckbox.tsx"],"sourcesContent":["import React from 'react';\nimport { Table } from '@tanstack/react-table';\nimport cx from 'classnames';\n\nimport { useRowContext } from '../Row/RowContext';\nimport styles from './useLeafyGreenTable.module.scss'; // Import SCSS styles\nimport { LGRowData, LGTableDataType } from '.';\nimport Checkbox from '../../../Checkbox/Checkbox';\n\nexport const TableHeaderCheckbox = <T extends LGRowData>({\n table,\n}: {\n table: Table<LGTableDataType<T>>;\n}) => {\n const { disabled: rowIsDisabled } = useRowContext();\n // Assuming theme is managed at a higher-level and applied to the body or root component\n const themeClass = rowIsDisabled ? styles.themeDark : styles.themeLight; // This needs actual theme logic\n\n const handleCheckboxChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n table.toggleAllRowsSelected();\n };\n\n return (\n <Checkbox\n className={cx({\n [styles.disabledTableRowCheck]: rowIsDisabled, // Apply conditional styles for disabled state\n [themeClass]: true, // Apply theme-specific class\n })}\n disabled={rowIsDisabled}\n checked={table.getIsAllRowsSelected()}\n indeterminate={table.getIsSomeRowsSelected()}\n onChange={handleCheckboxChange} // Update this line\n aria-label=\"Select all rows\"\n />\n );\n};\n"],"names":["TableHeaderCheckbox","_ref","table","rowIsDisabled","useRowContext","disabled","themeClass","styles","themeDark","themeLight","_jsx","Checkbox","className","cx","_defineProperty","disabledTableRowCheck","checked","getIsAllRowsSelected","indeterminate","getIsSomeRowsSelected","onChange","event","toggleAllRowsSelected"],"mappings":"0TASaA,EAAsB,SAAHC,GAI3B,IAHHC,EAAKD,EAALC,MAIkBC,EAAkBC,IAA5BC,SAEFC,EAAaH,EAAgBI,EAAOC,UAAYD,EAAOE,
|
1
|
+
{"version":3,"file":"TableHeaderCheckbox.js","sources":["../../../../../../../src/components/NewTable/components/useLeafyGreenTable/TableHeaderCheckbox.tsx"],"sourcesContent":["import React from 'react';\nimport { Table } from '@tanstack/react-table';\nimport cx from 'classnames';\n\nimport { useRowContext } from '../Row/RowContext';\nimport styles from './useLeafyGreenTable.module.scss'; // Import SCSS styles\nimport { LGRowData, LGTableDataType } from '.';\nimport Checkbox from '../../../Checkbox/Checkbox';\n\nexport const TableHeaderCheckbox = <T extends LGRowData>({\n table,\n}: {\n table: Table<LGTableDataType<T>>;\n}) => {\n const { disabled: rowIsDisabled } = useRowContext();\n // Assuming theme is managed at a higher-level and applied to the body or root component\n const themeClass = rowIsDisabled ? styles.themeDark : styles.themeLight; // This needs actual theme logic\n\n const handleCheckboxChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n // Toggle only page selection if pagination is configured, otherwise toggle all rows\n if (table.options.getPaginationRowModel) {\n table.toggleAllPageRowsSelected();\n } else {\n table.toggleAllRowsSelected();\n }\n };\n\n return (\n <Checkbox\n className={cx({\n [styles.disabledTableRowCheck]: rowIsDisabled, // Apply conditional styles for disabled state\n [themeClass]: true, // Apply theme-specific class\n })}\n disabled={rowIsDisabled}\n checked={table.getIsAllRowsSelected()}\n indeterminate={table.getIsSomeRowsSelected()}\n onChange={handleCheckboxChange} // Update this line\n aria-label=\"Select all rows\"\n />\n );\n};\n"],"names":["TableHeaderCheckbox","_ref","table","rowIsDisabled","useRowContext","disabled","themeClass","styles","themeDark","themeLight","_jsx","Checkbox","className","cx","_defineProperty","disabledTableRowCheck","checked","getIsAllRowsSelected","indeterminate","getIsSomeRowsSelected","onChange","event","options","getPaginationRowModel","toggleAllPageRowsSelected","toggleAllRowsSelected"],"mappings":"0TASaA,EAAsB,SAAHC,GAI3B,IAHHC,EAAKD,EAALC,MAIkBC,EAAkBC,IAA5BC,SAEFC,EAAaH,EAAgBI,EAAOC,UAAYD,EAAOE,WAW7D,OACEC,EAACC,GACCC,UAAWC,EAAEC,EAAAA,EACVP,CAAAA,EAAAA,EAAOQ,sBAAwBZ,GAC/BG,GAAa,IAEhBD,SAAUF,EACVa,QAASd,EAAMe,uBACfC,cAAehB,EAAMiB,wBACrBC,SAlByB,SAACC,GAExBnB,EAAMoB,QAAQC,sBAChBrB,EAAMsB,4BAENtB,EAAMuB,yBAcK,aAAA,mBAGjB"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{slicedToArray as e,toConsumableArray as n}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as t}from"../../../../../_virtual/_tslib.js";import{jsx as o}from"@emotion/react/jsx-runtime";import{useState as i,useRef as
|
1
|
+
import{slicedToArray as e,toConsumableArray as n}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as t}from"../../../../../_virtual/_tslib.js";import{jsx as o}from"@emotion/react/jsx-runtime";import{useState as i,useRef as l,useCallback as r,useEffect as a,useMemo as c}from"react";import{useVirtual as s}from"react-virtual";import{getCoreRowModel as u,getSortedRowModel as d,getPaginationRowModel as g,useReactTable as f}from"@tanstack/react-table";import h from"lodash/omit";import{TableHeaderCheckbox as m}from"./TableHeaderCheckbox.js";import{TableRowCheckbox as v}from"./TableRowCheckbox.js";import b from"../../../Icon/Icons/components/Settings.js";import p from"../../../IconButton/IconButton.js";import w from"../ToggleExpandedIcon/ToggleExpandedIcon.js";import R from"../../../Dialog/Dialog.js";import S from"../../../DialogContentContainer/DialogContentContainer.js";import C from"../../../Checkbox/Checkbox.js";import I from"../../../ListItem/ListItem.js";var x=function(x){var j=x.containerRef,z=x.data,M=x.columns,T=x.hasSelectableRows,k=x.withPagination,O=void 0!==k&&k,y=x.useVirtualScrolling,E=void 0!==y&&y,L=x.allowSelectAll,A=void 0===L||L,D=x.allowSelectSingle,P=void 0!==D&&D,_=x.onSelect,B=x.virtualizerOptions,H=x.initiallySelectedRowIds,V=void 0===H?[]:H,U=x.onRowSelectionChange,F=x.columnManager,K=void 0!==F&&F,X=x.isExpandable,N=void 0!==X&&X,q=x.hoverIcon,G=x.onUnselectAll,J=x.initialState,Q=x.initialLoadCount,W=void 0===Q?20:Q,Y=x.loadMoreCount,Z=void 0===Y?10:Y,$=x.onLoadMore,ee=x.infiniteScrolling,ne=void 0!==ee&&ee,te=x.autoResetPageIndex,oe=void 0===te||te,ie=x.selectAllRows,le=void 0!==ie&&ie,re=t(x,["containerRef","data","columns","hasSelectableRows","withPagination","useVirtualScrolling","allowSelectAll","allowSelectSingle","onSelect","virtualizerOptions","initiallySelectedRowIds","onRowSelectionChange","columnManager","isExpandable","hoverIcon","onUnselectAll","initialState","initialLoadCount","loadMoreCount","onLoadMore","infiniteScrolling","autoResetPageIndex","selectAllRows"]),ae=i({}),ce=e(ae,2),se=ce[0],ue=ce[1],de=i(null),ge=e(de,2),fe=ge[0],he=ge[1],me=i(!1),ve=e(me,2),be=ve[0],pe=ve[1],we=i([]),Re=e(we,2),Se=Re[0],Ce=Re[1],Ie=i(!1),xe=e(Ie,2),je=xe[0],ze=xe[1],Me=i(!1),Te=e(Me,2),ke=Te[0],Oe=Te[1],ye=l(null),Ee=l(!1),Le=l({}),Ae=l([]),De=l(null),Pe=l(null),_e=r((function(e,n){var t,o;return T&&null!==(o=null===(t=e.id)||void 0===t?void 0:""+t)&&void 0!==o?o:""+n}),[T]);a((function(){!Ee.current&&T&&(Le.current=V.reduce((function(e,n){return e[""+n]=!0,e}),{}),Ee.current=!0)}),[V,T]);var Be=r((function(){var e=z.reduce((function(e,n,t){return e[_e(n,t)]=!0,e}),{});ue(e)}),[z,_e]);a((function(){Ee.current&&(le&&T?Be():ue(Le.current))}),[Ee.current]),a((function(){Ce(ne?z.slice(0,W):z)}),[z,ne,W]),a((function(){z!==Ae.current&&T&&(ue(se),Ae.current=z)}),[z,_e,T]),a((function(){le&&T&&Be()}),[le,T,z,_e]);var He={id:"select",size:14,header:m,cell:v},Ve=c((function(){return M.some((function(e){return!!e.enableSorting}))}),[M]),Ue=A?He:h(He,"header"),Fe={id:"expander",size:30,header:function(){return null},cell:function(e){var n=e.row;return n.getCanExpand()?o(w,{isExpanded:n.getIsExpanded(),toggleExpanded:function(){return n.toggleExpanded()},disabled:!1}):null}},Ke={id:"hoverIcon",size:30,sticky:"right",header:function(){return null},cell:function(e){return o("span",Object.assign({style:{display:"block",height:"100%"}},{children:fe===e.row.index&&q}))}},Xe=c((function(){var e=M.filter((function(e){return"left"===e.sticky})),t=M.filter((function(e){return"right"===e.sticky})),i=0,l=0;return[].concat(n(T?[Ue]:[]),n(N?[Fe]:[]),n(M.map((function(n,o){var r,a,c,s=Object.assign(Object.assign({},n),{align:null!==(r=n.align)&&void 0!==r?r:"left",enableSorting:null!==(a=n.enableSorting)&&void 0!==a&&a,isResizable:null!==(c=n.isResizable)&&void 0!==c&&c,cell:n.cell||function(e){return(0,e.getValue)()}});return"left"===n.sticky?(s.left=i,i+=n.size,s.isLastStickyLeft=o===e.length-1):"right"===n.sticky&&(s.right=(l+=n.size)-n.size,s.isFirstStickyRight=o===M.length-t.length),s})).map((function(e,n,o){return"right"===e.sticky&&(e.isFirstStickyRight=n===o.length-t.length),e}))),[q?Ke:null],n(K?[{id:"columnManager",size:20,header:function(){var e;return o(R,Object.assign({showTrigger:[R.hideShowTriggers.CLICK],hideTrigger:[R.hideShowTriggers.CLICK_OUTSIDE],position:R.positions.BOTTOM_END,open:ke,content:o(S,{children:en.getAllLeafColumns().slice(0,-1).map((function(e,n){return o(I,{children:o(C,{checked:e.getIsVisible(),label:e.columnDef.header||e.id,onChange:e.getToggleVisibilityHandler(),"aria-labelledby":"iui-column-".concat(e.id)})},"".concat(e.id,"-").concat(n))}))},"small"),onDialogDidHide:function(){return Oe(!1)}},{children:o(p,{ariaLabel:"Customize",size:null===(e=null==p?void 0:p.sizes)||void 0===e?void 0:e.XXS,icon:b,ref:ye,onClick:function(){return Oe(!0)}})}))},cell:function(){return null}}]:[])).filter(Boolean)}),[M,T,Ue,K,N,q,ke]),Ne=i("onChange"),qe=e(Ne,2),Ge=qe[0],Je=i("ltr"),Qe=e(Je,2),We=Qe[0],Ye=function(){T&&(ue({}),Le.current={},null==G||G())},Ze=r((function(){ne&&!je&&z.length>Se.length&&(ze(!0),setTimeout((function(){Ce((function(e){var t=z.slice(e.length,e.length+Z);return e.length+t.length>=z.length&&De.current&&De.current.disconnect(),[].concat(n(e),n(t))})),ze(!1),$&&$()}),500))}),[ne,je,z,Z,$,Se.length]);a((function(){return ne&&Pe.current&&(De.current=new IntersectionObserver((function(e){e[0].isIntersecting&&Ze()}),{threshold:.1}),De.current.observe(Pe.current)),function(){De.current&&De.current.disconnect()}}),[ne,Ze]);var $e=Object.assign({data:Se,columns:Xe,getCoreRowModel:u(),getRowCanExpand:function(e){var n;return!!e.original.renderExpandedContent||!!(null===(n=e.subRows)||void 0===n?void 0:n.length)},enableExpanding:!0,enableSortingRemoval:!!Ve||void 0,getSubRows:function(e){return e.subRows},getSortedRowModel:d(),getPaginationRowModel:O?g():void 0,initialState:J||void 0,columnResizeMode:Ge,columnResizeDirection:We,autoResetPageIndex:oe},re);T&&($e.getRowId=_e,$e.state={rowSelection:se},$e.onRowSelectionChange=ue);var en=f($e);en.unselectAllRows=Ye;var nn=en.getCoreRowModel().rows,tn=(en.getPaginationRowModel(),s(Object.assign({parentRef:j,size:nn.length,overscan:30},B)));return a((function(){if(U&&T){var e=z.filter((function(e,n){return se[_e(e,n)]}));U(e)}}),[se,z,U,_e,T]),Object.assign(Object.assign(Object.assign(Object.assign({},en),{handleRowClick:function(e){P&&(null==_||_(e.original))},unselectAllRows:Ye}),E&&{virtualRows:tn.virtualItems,totalSize:tn.totalSize,scrollToIndex:tn.scrollToIndex,scrollToOffset:tn.scrollToOffset,measure:tn.measure}),{hasSelectableRows:T,showColumnManager:be,setShowColumnManager:pe,columnManagerRef:ye,setHoveredRow:he,isLoading:je,loadedData:Se,loadMoreTriggerRef:Pe,infiniteScrolling:ne,loadMoreRows:Ze})};export{x as default};
|
2
2
|
//# sourceMappingURL=useLeafyGreenTable.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useLeafyGreenTable.js","sources":["../../../../../../../src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"sourcesContent":["//@ts-nocheck\nimport { useEffect, useLayoutEffect, useMemo, useRef, useState, useCallback } from \"react\";\nimport { useVirtual } from \"react-virtual\";\nimport { useReactTable, ColumnResizeMode, ColumnResizeDirection } from \"@tanstack/react-table\";\nimport { getCoreRowModel, getPaginationRowModel, getSortedRowModel, Row } from \"@tanstack/react-table\";\nimport omit from \"lodash/omit\";\nimport { TableHeaderCheckbox } from \"./TableHeaderCheckbox\";\nimport { TableRowCheckbox } from \"./TableRowCheckbox\";\nimport { LeafyGreenTableOptions, LGRowData } from \"./useLeafyGreenTable.types\";\nimport { LeafyGreenTable, LGColumnDef, LGTableDataType } from \".\";\nimport Settings from \"../../../Icon/Icons/components/Settings\";\nimport IconButton from \"../../../IconButton/IconButton\";\nimport ToggleExpandedIcon from \"../ToggleExpandedIcon\";\nimport Dialog from \"../../../Dialog/Dialog\";\nimport List from \"../../../List/List\";\nimport DialogContentContainer from \"../../../DialogContentContainer/DialogContentContainer\";\nimport Checkbox from \"../../../Checkbox/Checkbox\";\nimport ListItem from \"../../../ListItem/ListItem\";\n\nconst CHECKBOX_WIDTH = 14;\n\nconst useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({\n containerRef,\n data,\n columns: columnsProp,\n hasSelectableRows,\n withPagination = false,\n useVirtualScrolling = false,\n allowSelectAll = true,\n allowSelectSingle = false,\n onSelect,\n virtualizerOptions,\n initiallySelectedRowIds = [],\n onRowSelectionChange,\n columnManager = false,\n isExpandable = false,\n hoverIcon,\n selectCurrentPageOnly = false,\n onUnselectAll,\n initialState,\n initialLoadCount = 20, \n loadMoreCount = 10, \n onLoadMore, \n infiniteScrolling = false,\n autoResetPageIndex = true,\n selectAllRows = false,\n ...rest\n}: LeafyGreenTableOptions<T, V>): LeafyGreenTable<T> => {\n const [rowSelection, setRowSelection] = useState<{ [key: string]: boolean }>({});\n const [hoveredRow, setHoveredRow] = useState<number | null>(null);\n const [showColumnManager, setShowColumnManager] = useState(false);\n const [loadedData, setLoadedData] = useState<T[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n const [isDialogOpen, setIsDialogOpen] = useState(false);\n\n const columnManagerRef = useRef<HTMLButtonElement>(null);\n const isInitialSetupDone = useRef(false);\n const initialSelectionRef = useRef<{ [key: string]: boolean }>({});\n const previousDataRef = useRef<T[]>([]);\n const observerRef = useRef<IntersectionObserver | null>(null);\n const loadMoreTriggerRef = useRef<HTMLDivElement | null>(null);\n\n const getRowId = useCallback((row: T, index: number) => {\n if (hasSelectableRows) {\n return row.id?.toString() ?? index.toString();\n }\n return index.toString();\n }, [hasSelectableRows]);\n\n useEffect(() => {\n if (!isInitialSetupDone.current && hasSelectableRows) {\n initialSelectionRef.current = initiallySelectedRowIds.reduce((acc, id) => {\n acc[id.toString()] = true;\n return acc;\n }, {});\n isInitialSetupDone.current = true;\n }\n }, [initiallySelectedRowIds, hasSelectableRows]);\n\n const selectAllTableRows = useCallback(() => {\n const allSelected = data.reduce((acc, row, index) => {\n acc[getRowId(row, index)] = true;\n return acc;\n }, {});\n\n setRowSelection(allSelected);\n }, [data, getRowId]);\n\n useEffect(() => {\n if (isInitialSetupDone.current) {\n if (selectAllRows && hasSelectableRows)\n selectAllTableRows();\n else\n setRowSelection(initialSelectionRef.current);\n }\n }, [isInitialSetupDone.current]);\n\n useEffect(() => {\n setLoadedData(infiniteScrolling ? data.slice(0, initialLoadCount) : data);\n }, [data, infiniteScrolling, initialLoadCount]);\n\n useEffect(() => {\n if (data !== previousDataRef.current && hasSelectableRows) {\n setRowSelection(rowSelection);\n previousDataRef.current = data;\n }\n }, [data, getRowId, hasSelectableRows]);\n\n useEffect(() => {\n if (selectAllRows && hasSelectableRows) {\n selectAllTableRows();\n }\n }, [selectAllRows, hasSelectableRows, data, getRowId]);\n\n const baseSelectColumnConfig: LGColumnDef<T, V> = {\n id: \"select\",\n size: CHECKBOX_WIDTH,\n header: TableHeaderCheckbox,\n cell: TableRowCheckbox,\n };\n\n const handleRowClick = (row: Row<T>) => {\n if (allowSelectSingle) {\n const selectedRowData = row.original;\n onSelect?.(selectedRowData);\n }\n };\n\n const hasSortableColumns = useMemo(() => columnsProp.some((propCol) => !!propCol.enableSorting), [columnsProp]);\n\n const selectColumnConfig = allowSelectAll ? baseSelectColumnConfig : omit(baseSelectColumnConfig, \"header\");\n\n const expandColumnConfig: LGColumnDef<T, V> = {\n id: \"expander\",\n size: 30,\n header: () => null,\n cell: ({ row }) => {\n const isExpandable = row.getCanExpand();\n return isExpandable ? (\n <ToggleExpandedIcon\n isExpanded={row.getIsExpanded()}\n toggleExpanded={() => row.toggleExpanded()}\n disabled={false}\n />\n ) : null;\n },\n };\n\n const hoverIconConfig: LGColumnDef<T, V> = {\n id: \"hoverIcon\",\n size: 30,\n sticky: \"right\",\n header: () => null,\n cell: ({ row }) => (\n <span style={{ display: \"block\", height: \"100%\" }}>\n {hoveredRow === row.index && hoverIcon}\n </span>\n ),\n };\n\n const columns = useMemo<Array<LGColumnDef<T, V>>>(() => {\n const stickyLeftColumns = columnsProp.filter((col) => col.sticky === \"left\");\n const stickyRightColumns = columnsProp.filter((col) => col.sticky === \"right\");\n\n let leftOffset = 0;\n let rightOffset = 0;\n\n return [\n ...(hasSelectableRows ? [selectColumnConfig as LGColumnDef<T, V>] : []),\n ...(isExpandable ? [expandColumnConfig] : []),\n ...columnsProp\n .map((propColumn, index) => {\n const newColumn = {\n ...propColumn,\n align: propColumn.align ?? \"left\",\n enableSorting: propColumn.enableSorting ?? false,\n isResizable: propColumn.isResizable ?? false,\n cell: propColumn.cell || (({ getValue }) => getValue()),\n };\n\n if (propColumn.sticky === \"left\") {\n newColumn.left = leftOffset;\n leftOffset += propColumn.size;\n newColumn.isLastStickyLeft = index === stickyLeftColumns.length - 1;\n } else if (propColumn.sticky === \"right\") {\n rightOffset += propColumn.size;\n newColumn.right = rightOffset - propColumn.size;\n newColumn.isFirstStickyRight = index === columnsProp.length - stickyRightColumns.length;\n }\n\n return newColumn;\n })\n .map((column, index, columns) => {\n if (column.sticky === \"right\") {\n column.isFirstStickyRight = index === columns.length - stickyRightColumns.length;\n }\n return column;\n }),\n hoverIcon ? hoverIconConfig : null,\n ...(columnManager\n ? [\n {\n id: \"columnManager\",\n size: 20,\n header: () => (\n <Dialog\n showTrigger={[Dialog.hideShowTriggers.CLICK]}\n hideTrigger={[Dialog.hideShowTriggers.CLICK_OUTSIDE]}\n position={Dialog.positions.BOTTOM_END}\n open={isDialogOpen}\n content={\n <DialogContentContainer key=\"small\">\n {table.getAllLeafColumns().slice(0, -1).map((column, index) => (\n <ListItem key={`${column.id}-${index}`}>\n <Checkbox\n checked={column.getIsVisible()}\n label={column.columnDef.header as string || column.id}\n onChange={column.getToggleVisibilityHandler()}\n aria-labelledby={`iui-column-${column.id}`}\n />\n </ListItem>\n ))}\n </DialogContentContainer> \n }\n onDialogDidHide={() => setIsDialogOpen(false)}\n >\n <IconButton\n ariaLabel=\"Customize\"\n size={IconButton?.sizes?.XXS}\n icon={Settings}\n ref={columnManagerRef}\n onClick={() => setIsDialogOpen(true)}\n />\n </Dialog>\n ),\n cell: () => null,\n },\n ]\n : []),\n ].filter(Boolean);\n }, [columnsProp, hasSelectableRows, selectColumnConfig, columnManager, isExpandable, hoverIcon, isDialogOpen]);\n\n const [columnResizeMode, setColumnResizeMode] = useState<ColumnResizeMode>(\"onChange\");\n const [columnResizeDirection, setColumnResizeDirection] = useState<ColumnResizeDirection>(\"ltr\");\n\n const toggleAllRowsSelected = (value?: boolean) => {\n if (!hasSelectableRows) return;\n\n const isAllRowsSelected = selectCurrentPageOnly\n ? paginationRows.every((row) => rowSelection[row.id])\n : rows.every((row) => rowSelection[row.id]);\n\n const newSelection = {};\n const rowsToSelect = selectCurrentPageOnly ? paginationRows : rows;\n rowsToSelect.forEach((row) => {\n newSelection[row.id] = !isAllRowsSelected;\n });\n\n setRowSelection(newSelection);\n\n // Combine newSelection with previous selection, and filter out unselected rows\n setRowSelection(prevSelection => {\n const updatedSelection = { ...prevSelection, ...newSelection };\n return Object.fromEntries(\n Object.entries(updatedSelection).filter(([_, value]) => value === true)\n );\n });\n };\n\n const unselectAllRows = () => {\n if (!hasSelectableRows) return;\n\n setRowSelection({});\n initialSelectionRef.current = {};\n onUnselectAll?.();\n };\n\n const loadMoreRows = useCallback(() => {\n if (!infiniteScrolling || isLoading || loadedData.length >= data.length) return;\n setIsLoading(true);\n setTimeout(() => {\n setLoadedData((prevData) => {\n const nextData = data.slice(prevData.length, prevData.length + loadMoreCount);\n if (prevData.length + nextData.length >= data.length && observerRef.current) {\n observerRef.current.disconnect();\n }\n\n return [...prevData, ...nextData];\n });\n setIsLoading(false);\n if (onLoadMore) {\n onLoadMore();\n }\n }, 500);\n }, [infiniteScrolling, isLoading, data, loadMoreCount, onLoadMore, loadedData.length]);\n\n useEffect(() => {\n if (infiniteScrolling && loadMoreTriggerRef.current) {\n observerRef.current = new IntersectionObserver(\n (entries) => {\n if (entries[0].isIntersecting) {\n loadMoreRows();\n }\n },\n { threshold: 0.1 }\n );\n\n observerRef.current.observe(loadMoreTriggerRef.current);\n }\n\n return () => {\n if (observerRef.current) {\n observerRef.current.disconnect();\n }\n };\n }, [infiniteScrolling, loadMoreRows]);\n\n const tableOptions = {\n data: loadedData,\n columns,\n getCoreRowModel: getCoreRowModel(),\n getRowCanExpand: (row) => !!row.original.renderExpandedContent || !!row.subRows?.length,\n enableExpanding: true,\n enableSortingRemoval: hasSortableColumns ? true : undefined,\n getSubRows: (row) => row.subRows,\n getSortedRowModel: getSortedRowModel(),\n getPaginationRowModel: withPagination ? getPaginationRowModel() : undefined,\n initialState: initialState ? initialState : undefined,\n columnResizeMode,\n columnResizeDirection,\n autoResetPageIndex,\n ...rest,\n };\n\n if (hasSelectableRows) {\n tableOptions.getRowId = getRowId;\n tableOptions.state = { rowSelection };\n tableOptions.onRowSelectionChange = setRowSelection;\n }\n\n const table = useReactTable<LGTableDataType<T>>(tableOptions);\n\n table.toggleAllRowsSelected = toggleAllRowsSelected;\n table.unselectAllRows = unselectAllRows;\n\n const { rows } = table.getCoreRowModel();\n const { rows: paginationRows } = table.getPaginationRowModel();\n const _rowVirtualizer = useVirtual({\n parentRef: containerRef,\n size: rows.length,\n overscan: 30,\n ...virtualizerOptions,\n });\n\n useEffect(() => {\n if (onRowSelectionChange && hasSelectableRows) {\n // Filters down rowSelection to only the visible (data) selected rows\n const selectedRows = data.filter((row, index) => rowSelection[getRowId(row, index)]);\n onRowSelectionChange(selectedRows);\n }\n }, [rowSelection, data, onRowSelectionChange, getRowId, hasSelectableRows]);\n\n return {\n ...table,\n handleRowClick,\n toggleAllRowsSelected, \n unselectAllRows, \n ...(useVirtualScrolling && {\n virtualRows: _rowVirtualizer.virtualItems,\n totalSize: _rowVirtualizer.totalSize,\n scrollToIndex: _rowVirtualizer.scrollToIndex,\n scrollToOffset: _rowVirtualizer.scrollToOffset,\n measure: _rowVirtualizer.measure,\n }),\n hasSelectableRows,\n showColumnManager,\n setShowColumnManager,\n columnManagerRef,\n setHoveredRow,\n isLoading,\n loadedData,\n loadMoreTriggerRef,\n infiniteScrolling,\n loadMoreRows,\n } as LeafyGreenTable<T>;\n};\n\nexport default useLeafyGreenTable;\n"],"names":["useLeafyGreenTable","_a","containerRef","data","columnsProp","columns","hasSelectableRows","_a$withPagination","withPagination","_a$useVirtualScrollin","useVirtualScrolling","_a$allowSelectAll","allowSelectAll","_a$allowSelectSingle","allowSelectSingle","onSelect","virtualizerOptions","_a$initiallySelectedR","initiallySelectedRowIds","onRowSelectionChange","_a$columnManager","columnManager","_a$isExpandable","isExpandable","hoverIcon","_a$selectCurrentPageO","selectCurrentPageOnly","onUnselectAll","initialState","_a$initialLoadCount","initialLoadCount","_a$loadMoreCount","loadMoreCount","onLoadMore","_a$infiniteScrolling","infiniteScrolling","_a$autoResetPageIndex","autoResetPageIndex","_a$selectAllRows","selectAllRows","rest","__rest","_useState","useState","_useState2","_slicedToArray","rowSelection","setRowSelection","_useState3","_useState4","hoveredRow","setHoveredRow","_useState5","_useState6","showColumnManager","setShowColumnManager","_useState7","_useState8","loadedData","setLoadedData","_useState9","_useState10","isLoading","setIsLoading","_useState11","_useState12","isDialogOpen","setIsDialogOpen","columnManagerRef","useRef","isInitialSetupDone","initialSelectionRef","previousDataRef","observerRef","loadMoreTriggerRef","getRowId","useCallback","row","index","_b","id","useEffect","current","reduce","acc","selectAllTableRows","allSelected","slice","baseSelectColumnConfig","size","header","TableHeaderCheckbox","cell","TableRowCheckbox","hasSortableColumns","useMemo","some","propCol","enableSorting","selectColumnConfig","omit","expandColumnConfig","_ref","getCanExpand","_jsx","ToggleExpandedIcon","isExpanded","getIsExpanded","toggleExpanded","disabled","hoverIconConfig","sticky","_ref2","Object","assign","style","display","height","children","stickyLeftColumns","filter","col","stickyRightColumns","leftOffset","rightOffset","concat","_toConsumableArray","map","propColumn","newColumn","align","isResizable","_c","_ref3","getValue","left","isLastStickyLeft","length","right","isFirstStickyRight","column","Dialog","showTrigger","hideShowTriggers","CLICK","hideTrigger","CLICK_OUTSIDE","position","positions","BOTTOM_END","open","content","DialogContentContainer","table","getAllLeafColumns","ListItem","Checkbox","checked","getIsVisible","label","columnDef","onChange","getToggleVisibilityHandler","onDialogDidHide","IconButton","ariaLabel","sizes","XXS","icon","Settings","ref","onClick","Boolean","_useState13","_useState14","columnResizeMode","_useState15","_useState16","columnResizeDirection","toggleAllRowsSelected","value","isAllRowsSelected","paginationRows","every","rows","newSelection","forEach","prevSelection","updatedSelection","fromEntries","entries","_ref4","_ref5","unselectAllRows","loadMoreRows","setTimeout","prevData","nextData","disconnect","IntersectionObserver","isIntersecting","threshold","observe","tableOptions","getCoreRowModel","getRowCanExpand","original","renderExpandedContent","subRows","enableExpanding","enableSortingRemoval","undefined","getSubRows","getSortedRowModel","getPaginationRowModel","state","useReactTable","_rowVirtualizer","useVirtual","parentRef","overscan","selectedRows","handleRowClick","virtualRows","virtualItems","total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I,mBAAAA,IACGG,IAGDlC,IACFqM,GAAahI,SAAWA,GACxBgI,GAAaY,MAAQ,CAAEzK,aAAAA,IACvB6J,GAAaxL,qBAAuB4B,IAGtC,IAAM0G,GAAQ+D,EAAkCb,IAEhDlD,GAAM0B,sBAAwBA,GAC9B1B,GAAMwC,gBAAkBA,GAExB,IAAQT,GAAS/B,GAAMmD,kBAAfpB,KACMF,GAAmB7B,GAAM6D,wBAA/B9B,KACFiC,GAAkBC,EAAUzG,OAAAC,OAAA,CAChCyG,UAAWzN,EACXuF,KAAM+F,GAAK/C,OACXmF,SAAU,IACP5M,IAWL,OARAiE,GAAU,WACR,GAAI9D,GAAwBb,EAAmB,CAE7C,IAAMuN,EAAe1N,EAAKqH,QAAO,SAAC3C,EAAKC,GAAK,OAAKhC,GAAa6B,GAASE,EAAKC,OAC5E3D,EAAqB0M,EACtB,CACH,GAAG,CAAC/K,GAAc3C,EAAMgB,EAAsBwD,GAAUrE,IAEjD2G,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACFuC,IAAK,CACRqE,eAnPqB,SAACjJ,GAClB/D,IAEFC,SAAAA,EADwB8D,EAAIiI,YAkP9B3B,sBAAAA,GACAc,gBAAAA,KACIvL,GAAuB,CACzBqN,YAAaN,GAAgBO,aAC7BC,UAAWR,GAAgBQ,UAC3BC,cAAeT,GAAgBS,cAC/BC,eAAgBV,GAAgBU,eAChCC,QAASX,GAAgBW,WAE3B9N,kBAAAA,EACAgD,kBAAAA,GACAC,qBAAAA,GACAa,iBAAAA,GACAjB,cAAAA,GACAW,UAAAA,GACAJ,WAAAA,GACAgB,mBAAAA,GACAvC,kBAAAA,GACA+J,aAAAA,IAEJ"}
|
1
|
+
{"version":3,"file":"useLeafyGreenTable.js","sources":["../../../../../../../src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"sourcesContent":["//@ts-nocheck\nimport { useEffect, useLayoutEffect, useMemo, useRef, useState, useCallback } from \"react\";\nimport { useVirtual } from \"react-virtual\";\nimport { useReactTable, ColumnResizeMode, ColumnResizeDirection } from \"@tanstack/react-table\";\nimport { getCoreRowModel, getPaginationRowModel, getSortedRowModel, Row } from \"@tanstack/react-table\";\nimport omit from \"lodash/omit\";\nimport { TableHeaderCheckbox } from \"./TableHeaderCheckbox\";\nimport { TableRowCheckbox } from \"./TableRowCheckbox\";\nimport { LeafyGreenTableOptions, LGRowData } from \"./useLeafyGreenTable.types\";\nimport { LeafyGreenTable, LGColumnDef, LGTableDataType } from \".\";\nimport Settings from \"../../../Icon/Icons/components/Settings\";\nimport IconButton from \"../../../IconButton/IconButton\";\nimport ToggleExpandedIcon from \"../ToggleExpandedIcon\";\nimport Dialog from \"../../../Dialog/Dialog\";\nimport List from \"../../../List/List\";\nimport DialogContentContainer from \"../../../DialogContentContainer/DialogContentContainer\";\nimport Checkbox from \"../../../Checkbox/Checkbox\";\nimport ListItem from \"../../../ListItem/ListItem\";\n\nconst CHECKBOX_WIDTH = 14;\n\nconst useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({\n containerRef,\n data,\n columns: columnsProp,\n hasSelectableRows,\n withPagination = false,\n useVirtualScrolling = false,\n allowSelectAll = true,\n allowSelectSingle = false,\n onSelect,\n virtualizerOptions,\n initiallySelectedRowIds = [],\n onRowSelectionChange,\n columnManager = false,\n isExpandable = false,\n hoverIcon,\n onUnselectAll,\n initialState,\n initialLoadCount = 20, \n loadMoreCount = 10, \n onLoadMore, \n infiniteScrolling = false,\n autoResetPageIndex = true,\n selectAllRows = false,\n ...rest\n}: LeafyGreenTableOptions<T, V>): LeafyGreenTable<T> => {\n const [rowSelection, setRowSelection] = useState<{ [key: string]: boolean }>({});\n const [hoveredRow, setHoveredRow] = useState<number | null>(null);\n const [showColumnManager, setShowColumnManager] = useState(false);\n const [loadedData, setLoadedData] = useState<T[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n const [isDialogOpen, setIsDialogOpen] = useState(false);\n\n const columnManagerRef = useRef<HTMLButtonElement>(null);\n const isInitialSetupDone = useRef(false);\n const initialSelectionRef = useRef<{ [key: string]: boolean }>({});\n const previousDataRef = useRef<T[]>([]);\n const observerRef = useRef<IntersectionObserver | null>(null);\n const loadMoreTriggerRef = useRef<HTMLDivElement | null>(null);\n\n const getRowId = useCallback((row: T, index: number) => {\n if (hasSelectableRows) {\n return row.id?.toString() ?? index.toString();\n }\n return index.toString();\n }, [hasSelectableRows]);\n\n useEffect(() => {\n if (!isInitialSetupDone.current && hasSelectableRows) {\n initialSelectionRef.current = initiallySelectedRowIds.reduce((acc, id) => {\n acc[id.toString()] = true;\n return acc;\n }, {});\n isInitialSetupDone.current = true;\n }\n }, [initiallySelectedRowIds, hasSelectableRows]);\n\n const selectAllTableRows = useCallback(() => {\n const allSelected = data.reduce((acc, row, index) => {\n acc[getRowId(row, index)] = true;\n return acc;\n }, {});\n\n setRowSelection(allSelected);\n }, [data, getRowId]);\n\n useEffect(() => {\n if (isInitialSetupDone.current) {\n if (selectAllRows && hasSelectableRows)\n selectAllTableRows();\n else\n setRowSelection(initialSelectionRef.current);\n }\n }, [isInitialSetupDone.current]);\n\n useEffect(() => {\n setLoadedData(infiniteScrolling ? data.slice(0, initialLoadCount) : data);\n }, [data, infiniteScrolling, initialLoadCount]);\n\n useEffect(() => {\n if (data !== previousDataRef.current && hasSelectableRows) {\n setRowSelection(rowSelection);\n previousDataRef.current = data;\n }\n }, [data, getRowId, hasSelectableRows]);\n\n useEffect(() => {\n if (selectAllRows && hasSelectableRows) {\n selectAllTableRows();\n }\n }, [selectAllRows, hasSelectableRows, data, getRowId]);\n\n const baseSelectColumnConfig: LGColumnDef<T, V> = {\n id: \"select\",\n size: CHECKBOX_WIDTH,\n header: TableHeaderCheckbox,\n cell: TableRowCheckbox,\n };\n\n const handleRowClick = (row: Row<T>) => {\n if (allowSelectSingle) {\n const selectedRowData = row.original;\n onSelect?.(selectedRowData);\n }\n };\n\n const hasSortableColumns = useMemo(() => columnsProp.some((propCol) => !!propCol.enableSorting), [columnsProp]);\n\n const selectColumnConfig = allowSelectAll ? baseSelectColumnConfig : omit(baseSelectColumnConfig, \"header\");\n\n const expandColumnConfig: LGColumnDef<T, V> = {\n id: \"expander\",\n size: 30,\n header: () => null,\n cell: ({ row }) => {\n const isExpandable = row.getCanExpand();\n return isExpandable ? (\n <ToggleExpandedIcon\n isExpanded={row.getIsExpanded()}\n toggleExpanded={() => row.toggleExpanded()}\n disabled={false}\n />\n ) : null;\n },\n };\n\n const hoverIconConfig: LGColumnDef<T, V> = {\n id: \"hoverIcon\",\n size: 30,\n sticky: \"right\",\n header: () => null,\n cell: ({ row }) => (\n <span style={{ display: \"block\", height: \"100%\" }}>\n {hoveredRow === row.index && hoverIcon}\n </span>\n ),\n };\n\n const columns = useMemo<Array<LGColumnDef<T, V>>>(() => {\n const stickyLeftColumns = columnsProp.filter((col) => col.sticky === \"left\");\n const stickyRightColumns = columnsProp.filter((col) => col.sticky === \"right\");\n\n let leftOffset = 0;\n let rightOffset = 0;\n\n return [\n ...(hasSelectableRows ? [selectColumnConfig as LGColumnDef<T, V>] : []),\n ...(isExpandable ? [expandColumnConfig] : []),\n ...columnsProp\n .map((propColumn, index) => {\n const newColumn = {\n ...propColumn,\n align: propColumn.align ?? \"left\",\n enableSorting: propColumn.enableSorting ?? false,\n isResizable: propColumn.isResizable ?? false,\n cell: propColumn.cell || (({ getValue }) => getValue()),\n };\n\n if (propColumn.sticky === \"left\") {\n newColumn.left = leftOffset;\n leftOffset += propColumn.size;\n newColumn.isLastStickyLeft = index === stickyLeftColumns.length - 1;\n } else if (propColumn.sticky === \"right\") {\n rightOffset += propColumn.size;\n newColumn.right = rightOffset - propColumn.size;\n newColumn.isFirstStickyRight = index === columnsProp.length - stickyRightColumns.length;\n }\n\n return newColumn;\n })\n .map((column, index, columns) => {\n if (column.sticky === \"right\") {\n column.isFirstStickyRight = index === columns.length - stickyRightColumns.length;\n }\n return column;\n }),\n hoverIcon ? hoverIconConfig : null,\n ...(columnManager\n ? [\n {\n id: \"columnManager\",\n size: 20,\n header: () => (\n <Dialog\n showTrigger={[Dialog.hideShowTriggers.CLICK]}\n hideTrigger={[Dialog.hideShowTriggers.CLICK_OUTSIDE]}\n position={Dialog.positions.BOTTOM_END}\n open={isDialogOpen}\n content={\n <DialogContentContainer key=\"small\">\n {table.getAllLeafColumns().slice(0, -1).map((column, index) => (\n <ListItem key={`${column.id}-${index}`}>\n <Checkbox\n checked={column.getIsVisible()}\n label={column.columnDef.header as string || column.id}\n onChange={column.getToggleVisibilityHandler()}\n aria-labelledby={`iui-column-${column.id}`}\n />\n </ListItem>\n ))}\n </DialogContentContainer> \n }\n onDialogDidHide={() => setIsDialogOpen(false)}\n >\n <IconButton\n ariaLabel=\"Customize\"\n size={IconButton?.sizes?.XXS}\n icon={Settings}\n ref={columnManagerRef}\n onClick={() => setIsDialogOpen(true)}\n />\n </Dialog>\n ),\n cell: () => null,\n },\n ]\n : []),\n ].filter(Boolean);\n }, [columnsProp, hasSelectableRows, selectColumnConfig, columnManager, isExpandable, hoverIcon, isDialogOpen]);\n\n const [columnResizeMode, setColumnResizeMode] = useState<ColumnResizeMode>(\"onChange\");\n const [columnResizeDirection, setColumnResizeDirection] = useState<ColumnResizeDirection>(\"ltr\");\n\n const unselectAllRows = () => {\n if (!hasSelectableRows) return;\n\n setRowSelection({});\n initialSelectionRef.current = {};\n onUnselectAll?.();\n };\n\n const loadMoreRows = useCallback(() => {\n if (!infiniteScrolling || isLoading || loadedData.length >= data.length) return;\n setIsLoading(true);\n setTimeout(() => {\n setLoadedData((prevData) => {\n const nextData = data.slice(prevData.length, prevData.length + loadMoreCount);\n if (prevData.length + nextData.length >= data.length && observerRef.current) {\n observerRef.current.disconnect();\n }\n\n return [...prevData, ...nextData];\n });\n setIsLoading(false);\n if (onLoadMore) {\n onLoadMore();\n }\n }, 500);\n }, [infiniteScrolling, isLoading, data, loadMoreCount, onLoadMore, loadedData.length]);\n\n useEffect(() => {\n if (infiniteScrolling && loadMoreTriggerRef.current) {\n observerRef.current = new IntersectionObserver(\n (entries) => {\n if (entries[0].isIntersecting) {\n loadMoreRows();\n }\n },\n { threshold: 0.1 }\n );\n\n observerRef.current.observe(loadMoreTriggerRef.current);\n }\n\n return () => {\n if (observerRef.current) {\n observerRef.current.disconnect();\n }\n };\n }, [infiniteScrolling, loadMoreRows]);\n\n const tableOptions = {\n data: loadedData,\n columns,\n getCoreRowModel: getCoreRowModel(),\n getRowCanExpand: (row) => !!row.original.renderExpandedContent || !!row.subRows?.length,\n enableExpanding: true,\n enableSortingRemoval: hasSortableColumns ? true : undefined,\n getSubRows: (row) => row.subRows,\n getSortedRowModel: getSortedRowModel(),\n getPaginationRowModel: withPagination ? getPaginationRowModel() : undefined,\n initialState: initialState ? initialState : undefined,\n columnResizeMode,\n columnResizeDirection,\n autoResetPageIndex,\n ...rest,\n };\n\n // TODO: Ask Ali and remove this when we have a proper row selection state\n if (hasSelectableRows) {\n tableOptions.getRowId = getRowId;\n tableOptions.state = { rowSelection };\n tableOptions.onRowSelectionChange = setRowSelection;\n }\n\n const table = useReactTable<LGTableDataType<T>>(tableOptions);\n\n table.unselectAllRows = unselectAllRows;\n\n const { rows } = table.getCoreRowModel();\n const { rows: paginationRows } = table.getPaginationRowModel();\n const _rowVirtualizer = useVirtual({\n parentRef: containerRef,\n size: rows.length,\n overscan: 30,\n ...virtualizerOptions,\n });\n\n useEffect(() => {\n if (onRowSelectionChange && hasSelectableRows) {\n // Filters down rowSelection to only the visible (data) selected rows\n const selectedRows = data.filter((row, index) => rowSelection[getRowId(row, index)]);\n onRowSelectionChange(selectedRows);\n }\n }, [rowSelection, data, onRowSelectionChange, getRowId, hasSelectableRows]);\n\n return {\n ...table,\n handleRowClick,\n unselectAllRows, \n ...(useVirtualScrolling && {\n virtualRows: _rowVirtualizer.virtualItems,\n totalSize: _rowVirtualizer.totalSize,\n scrollToIndex: _rowVirtualizer.scrollToIndex,\n scrollToOffset: _rowVirtualizer.scrollToOffset,\n measure: _rowVirtualizer.measure,\n }),\n hasSelectableRows,\n showColumnManager,\n setShowColumnManager,\n columnManagerRef,\n setHoveredRow,\n isLoading,\n loadedData,\n loadMoreTriggerRef,\n infiniteScrolling,\n loadMoreRows,\n } as LeafyGreenTable<T>;\n};\n\nexport default useLeafyGreenTable;\n"],"names":["useLeafyGreenTable","_a","containerRef","data","columnsProp","columns","hasSelectableRows","_a$withPagination","withPagination","_a$useVirtualScrollin","useVirtualScrolling","_a$allowSelectAll","allowSelectAll","_a$allowSelectSingle","allowSelectSingle","onSelect","virtualizerOptions","_a$initiallySelectedR","initiallySelectedRowIds","onRowSelectionChange","_a$columnManager","columnManager","_a$isExpandable","isExpandable","hoverIcon","onUnselectAll","initialState","_a$initialLoadCount","initialLoadCount","_a$loadMoreCount","loadMoreCount","onLoadMore","_a$infiniteScrolling","infiniteScrolling","_a$autoResetPageIndex","autoResetPageIndex","_a$selectAllRows","selectAllRows","rest","__rest","_useState","useState","_useState2","_slicedToArray","rowSelection","setRowSelection","_useState3","_useState4","hoveredRow","setHoveredRow","_useState5","_useState6","showColumnManager","setShowColumnManager","_useState7","_useState8","loadedData","setLoadedData","_useState9","_useState10","isLoading","setIsLoading","_useState11","_useState12","isDialogOpen","setIsDialogOpen","columnManagerRef","useRef","isInitialSetupDone","initialSelectionRef","previousDataRef","observerRef","loadMoreTriggerRef","getRowId","useCallback","row","index","_b","id","useEffect","current","reduce","acc","selectAllTableRows","allSelected","slice","baseSelectColumnConfig","size","header","TableHeaderCheckbox","cell","TableRowCheckbox","hasSortableColumns","useMemo","some","propCol","enableSorting","selectColumnConfig","omit","expandColumnConfig","_ref","getCanExpand","_jsx","ToggleExpandedIcon","isExpanded","getIsExpanded","toggleExpanded","disabled","hoverIconConfig","sticky","_ref2","Object","assign","style","display","height","children","stickyLeftColumns","filter","col","stickyRightColumns","leftOffset","rightOffset","concat","_toConsumableArray","map","propColumn","newColumn","align","isResizable","_c","_ref3","getValue","left","isLastStickyLeft","length","right","isFirstStickyRight","column","Dialog","showTrigger","hideShowTriggers","CLICK","hideTrigger","CLICK_OUTSIDE","position","positions","BOTTOM_END","open","content","DialogContentContainer","table","getAllLeafColumns","ListItem","Checkbox","checked","getIsVisible","label","columnDef","onChange","getToggleVisibilityHandler","onDialogDidHide","IconButton","ariaLabel","sizes","XXS","icon","Settings","ref","onClick","Boolean","_useState13","_useState14","columnResizeMode","_useState15","_useState16","columnResizeDirection","unselectAllRows","loadMoreRows","setTimeout","prevData","nextData","disconnect","IntersectionObserver","entries","isIntersecting","threshold","observe","tableOptions","getCoreRowModel","getRowCanExpand","original","renderExpandedContent","subRows","enableExpanding","enableSortingRemoval","undefined","getSubRows","getSortedRowModel","getPaginationRowModel","state","useReactTable","rows","_rowVirtualizer","useVirtual","parentRef","overscan","selectedRows","handleRowClick","virtualRows","virtualItems","totalSize","scrollToIndex","scrollToOffset","measure"],"mappings":"+9BAmBA,IAEMA,EAAqB,SAAmDC,GAAA,IAC5EC,EAwB6BD,EAxB7BC,aACAC,EAuB6BF,EAvB7BE,KACSC,EAsBoBH,EAtB7BI,QACAC,EAqB6BL,EArB7BK,kBAAiBC,EAqBYN,EApB7BO,eAAAA,OAAiB,IAAHD,GAAQA,EAAAE,EAoBOR,EAnB7BS,oBAAAA,OAAsB,IAAHD,GAAQA,EAAAE,EAmBEV,EAlB7BW,eAAAA,OAAiB,IAAHD,GAAOA,EAAAE,EAkBQZ,EAjB7Ba,kBAAAA,OAAoB,IAAHD,GAAQA,EACzBE,EAgB6Bd,EAhB7Bc,SACAC,EAe6Bf,EAf7Be,mBAAkBC,EAeWhB,EAd7BiB,wBAAAA,OAA0B,IAAHD,EAAG,GAAEA,EAC5BE,EAa6BlB,EAb7BkB,qBAAoBC,EAaSnB,EAZ7BoB,cAAAA,OAAgB,IAAHD,GAAQA,EAAAE,EAYQrB,EAX7BsB,aAAAA,OAAe,IAAHD,GAAQA,EACpBE,EAU6BvB,EAV7BuB,UACAC,EAS6BxB,EAT7BwB,cACAC,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,CAAE5J,aAAAA,IACvBgJ,GAAazK,qBAAuB0B,IAGtC,IAAM0G,GAAQkD,EAAkCb,IAEhDrC,GAAM0B,gBAAkBA,GAExB,IAAQyB,GAASnD,GAAMsC,kBAAfa,KAEFC,IAD2BpD,GAAMgD,wBACfK,EAAU7F,OAAAC,OAAA,CAChC6F,UAAW3M,EACXqF,KAAMmH,GAAKnE,OACXuE,SAAU,IACP9L,KAWL,OARA+D,GAAU,WACR,GAAI5D,GAAwBb,EAAmB,CAE7C,IAAMyM,EAAe5M,EAAKmH,QAAO,SAAC3C,EAAKC,GAAK,OAAKhC,GAAa6B,GAASE,EAAKC,OAC5EzD,EAAqB4L,EACtB,CACH,GAAG,CAACnK,GAAczC,EAAMgB,EAAsBsD,GAAUnE,IAEjDyG,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACFuC,IAAK,CACRyD,eA3NqB,SAACrI,GAClB7D,IAEFC,SAAAA,EADwB4D,EAAIoH,YA0N9Bd,gBAAAA,KACIvK,GAAuB,CACzBuM,YAAaN,GAAgBO,aAC7BC,UAAWR,GAAgBQ,UAC3BC,cAAeT,GAAgBS,cAC/BC,eAAgBV,GAAgBU,eAChCC,QAASX,GAAgBW,WAE3BhN,kBAAAA,EACA8C,kBAAAA,GACAC,qBAAAA,GACAa,iBAAAA,GACAjB,cAAAA,GACAW,UAAAA,GACAJ,WAAAA,GACAgB,mBAAAA,GACAvC,kBAAAA,GACAiJ,aAAAA,IAEJ"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var e={themeLight:"themeLight",disabledTableRowCheck:"disabledTableRowCheck"};!function(e){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],d="s_id-
|
1
|
+
var e={themeLight:"themeLight",disabledTableRowCheck:"disabledTableRowCheck"};!function(e){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],d="s_id-b8a2afee86bd_0_0_334";if(t.querySelector("#"+d))return;const n=document.createElement("style");n.id=d,t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.appendChild(document.createTextNode(e))}(".themeLight .disabledTableRowCheck input + div {\n border-color: #E6E6E6;\n background-color: #D3D3D3;\n}\n.themeLight .disabledTableRowCheck input[aria-checked=true] + div:before {\n background-color: #E6E6E6;\n}\n.themeLight .disabledTableRowCheck input[aria-checked=true] + div path {\n stroke: #FFFFFF;\n}");export{e as default};
|
2
2
|
//# sourceMappingURL=useLeafyGreenTable.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var e={hdsNumericField:"hdsNumericField",hdsNumericFieldLabel:"hdsNumericFieldLabel",hdsNumericFieldContainer:"hdsNumericFieldContainer",hdsNumericFieldInputWrapper:"hdsNumericFieldInputWrapper",hdsNumericFieldInput:"hdsNumericFieldInput",hdsNumericFieldArrows:"hdsNumericFieldArrows",hdsNumericFieldHint:"hdsNumericFieldHint",hdsNumericFieldErrorMessage:"hdsNumericFieldErrorMessage",focus:"focus",disabled:"disabled",hdsHasContent:"hdsHasContent",hdsHasError:"hdsHasError",labelPositionLeftStyle:"labelPositionLeftStyle",hintOrErrorMessage:"hintOrErrorMessage",labelPositionLeft:"labelPositionLeft"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],r="s_id-
|
1
|
+
var e={hdsNumericField:"hdsNumericField",hdsNumericFieldLabel:"hdsNumericFieldLabel",hdsNumericFieldContainer:"hdsNumericFieldContainer",hdsNumericFieldInputWrapper:"hdsNumericFieldInputWrapper",hdsNumericFieldInput:"hdsNumericFieldInput",hdsNumericFieldArrows:"hdsNumericFieldArrows",hdsNumericFieldHint:"hdsNumericFieldHint",hdsNumericFieldErrorMessage:"hdsNumericFieldErrorMessage",focus:"focus",disabled:"disabled",hdsHasContent:"hdsHasContent",hdsHasError:"hdsHasError",labelPositionLeftStyle:"labelPositionLeftStyle",hintOrErrorMessage:"hintOrErrorMessage",labelPositionLeft:"labelPositionLeft"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],r="s_id-5ce6deeed635_0_0_334";if(n.querySelector("#"+r))return;const i=document.createElement("style");i.id=r,n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.appendChild(document.createTextNode(e))}(".hdsNumericField {\n width: 100%;\n}\n\n.hdsNumericFieldLabel {\n color: var(--text-primary);\n margin-bottom: 5px;\n margin-top: 6px;\n}\n\n.hdsNumericFieldContainer {\n display: flex;\n width: 100%;\n align-items: center;\n align-self: stretch;\n background-color: var(--surface-level-200);\n border: 1px solid;\n border-color: var(--divider-overlay);\n border-radius: var(--border-radius-medium);\n transition: all var(--motion-productive-medium) ease 0ms;\n}\n\n.hdsNumericFieldContainer:hover {\n box-shadow: var(--effect-divider-halo);\n border-color: var(--divider-selected);\n}\n\n.hdsNumericFieldInputWrapper {\n display: flex;\n flex-grow: 1;\n}\n\n.hdsNumericFieldInput {\n background-color: transparent;\n border: none;\n margin: 0;\n outline: none;\n width: 100%;\n color: var(--text-secondary);\n appearance: textfield;\n}\n\n.hdsNumericFieldInput::-webkit-inner-spin-button {\n -webkit-appearance: none;\n}\n\n.hdsNumericFieldArrows {\n display: flex;\n flex-direction: column;\n}\n\n.hdsNumericFieldArrows button {\n margin: 0;\n border: 0;\n padding: 0 5px;\n background: transparent;\n}\n\n.hdsNumericFieldArrows button path {\n fill: var(--text-secondary);\n}\n\n.hdsNumericFieldHint {\n font-size: 12px;\n color: var(--text-secondary);\n display: flex;\n flex-direction: column;\n align-self: stretch;\n}\n\n.hdsNumericFieldErrorMessage {\n font-size: 12px;\n display: flex;\n flex-direction: column;\n align-self: stretch;\n color: var(--color-solar-flare-500);\n}\n\n.focus {\n border-color: var(--divider-primary);\n}\n\n.disabled {\n cursor: not-allowed;\n}\n\n.hdsHasContent {\n color: var(--text-primary);\n}\n\n.hdsHasError {\n border-color: red;\n}\n\n.labelPositionLeftStyle {\n margin-bottom: 15px;\n margin-right: 10px;\n align-content: center;\n}\n\n.hintOrErrorMessage {\n margin-top: 0px;\n}\n\n.hdsNumericField {\n display: flex;\n flex-direction: column;\n}\n\n.labelPositionLeft {\n flex-direction: row;\n align-items: center;\n}\n\n.labelPositionLeft .hdsNumericFieldLabel {\n margin-right: 10px;\n margin-bottom: 0;\n}");export{e as default};
|
2
2
|
//# sourceMappingURL=NumericField.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var e={PageHeader:"PageHeader",PageHeaderBreadcrumbs:"PageHeaderBreadcrumbs",PageHeaderRightActions:"PageHeaderRightActions",PageHeaderTitle:"PageHeaderTitle",PageHeaderTabs:"PageHeaderTabs",PageHeaderDivider:"PageHeaderDivider",PageHeaderContainer:"PageHeaderContainer"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],a="s_id-
|
1
|
+
var e={PageHeader:"PageHeader",PageHeaderBreadcrumbs:"PageHeaderBreadcrumbs",PageHeaderRightActions:"PageHeaderRightActions",PageHeaderTitle:"PageHeaderTitle",PageHeaderTabs:"PageHeaderTabs",PageHeaderDivider:"PageHeaderDivider",PageHeaderContainer:"PageHeaderContainer"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],a="s_id-ea77b85b63e2_0_0_334";if(n.querySelector("#"+a))return;const d=document.createElement("style");d.id=a,n.firstChild?n.insertBefore(d,n.firstChild):n.appendChild(d),d.appendChild(document.createTextNode(e))}(".PageHeader {\n position: relative;\n padding-top: 100px;\n width: 100%;\n}\n\n.PageHeaderBreadcrumbs ol {\n margin: 0 -2px 0 -4px;\n padding: 0px;\n height: 4px;\n}\n\n.PageHeaderRightActions {\n position: relative;\n bottom: 8px;\n width: 100%;\n display: flex;\n flex-direction: column;\n margin-left: auto;\n}\n\n.PageHeaderTitle {\n padding-bottom: 8px;\n padding-top: 0;\n margin: 0;\n}\n\n.PageHeaderTabs {\n padding: 8px 0 0;\n margin-bottom: -1px;\n}\n\n.PageHeaderTabs ul {\n padding: 0;\n}\n\n.PageHeaderDivider {\n margin: 0px;\n}\n\n@media (min-width: 768px) {\n .PageHeaderContainer {\n flex-direction: row;\n }\n}");export{e as default};
|
2
2
|
//# sourceMappingURL=PageHeader.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={panelHeaderStyled:"panelHeaderStyled",panelHeaderInner:"panelHeaderInner",backgroundStyled:"backgroundStyled","overlay-fade-in":"overlay-fade-in",textStyled:"textStyled",headerTextStyled:"headerTextStyled",leftContent:"leftContent",rightContent:"rightContent",headerDivider:"headerDivider",containerStyled:"containerStyled",panelMenuStyled:"panelMenuStyled",innerStyled:"innerStyled",CloseLayerStyled:"CloseLayerStyled",panelFooterStyled:"panelFooterStyled"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-
|
1
|
+
var n={panelHeaderStyled:"panelHeaderStyled",panelHeaderInner:"panelHeaderInner",backgroundStyled:"backgroundStyled","overlay-fade-in":"overlay-fade-in",textStyled:"textStyled",headerTextStyled:"headerTextStyled",leftContent:"leftContent",rightContent:"rightContent",headerDivider:"headerDivider",containerStyled:"containerStyled",panelMenuStyled:"panelMenuStyled",innerStyled:"innerStyled",CloseLayerStyled:"CloseLayerStyled",panelFooterStyled:"panelFooterStyled"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-eff5cdb2d08b_0_0_334";if(e.querySelector("#"+t))return;const i=document.createElement("style");i.id=t,e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i),i.appendChild(document.createTextNode(n))}('.panelHeaderStyled {\n padding: 0 8px;\n}\n\n.panelHeaderInner {\n position: sticky;\n top: 0;\n right: 0;\n left: 0;\n display: flex;\n width: 100%;\n z-index: 1;\n flex-wrap: nowrap;\n align-items: center;\n background-color: var(--surface-level-100);\n line-height: 1.5em;\n padding: 0.5rem 0;\n margin: 0 auto;\n box-sizing: border-box;\n}\n\n.backgroundStyled {\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n position: fixed;\n background-color: var(--surface-overlay);\n animation: overlay-fade-in 70ms var(--motion-timing-enter);\n transition: all 0.26s ease-in-out;\n z-index: 7000;\n}\n\n.textStyled {\n font-weight: 400;\n line-height: 1.5em;\n padding: 1rem 0;\n margin-bottom: 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.headerTextStyled {\n font-size: 15px;\n font-style: normal;\n font-weight: 600;\n line-height: 22px;\n font-weight: "500";\n text-transform: "capitalize";\n}\n\n.leftContent {\n display: flex;\n align-items: center;\n}\n\n.rightContent {\n display: flex;\n align-items: center;\n}\n\n.headerDivider {\n height: 1px;\n background-color: var(--divider-color);\n margin-top: 8px;\n}\n\n.containerStyled {\n padding: 0 8px;\n flex: 1;\n}\n\n.panelMenuStyled {\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n position: fixed;\n will-change: transform;\n transition: all 0.26s ease-in-out;\n z-index: 9999;\n display: flex;\n}\n\n.innerStyled {\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n background-color: var(--surface-level-100);\n box-shadow: var(--box-shadow-medium);\n max-width: 100%;\n min-width: 380px;\n z-index: 9999;\n}\n\n.CloseLayerStyled {\n background-color: transparent;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n}\n\n.panelFooterStyled {\n position: sticky;\n display: flex;\n z-index: 2000;\n bottom: 0;\n right: 0;\n left: 0;\n display: flex;\n background-color: var(--surface-level-100);\n line-height: 1.5em;\n justify-content: space-between;\n padding: 8px 16px;\n align-items: flex-start;\n gap: 8px;\n}');export{n as default};
|
2
2
|
//# sourceMappingURL=Panel.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-
|
1
|
+
!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-44849a380edc_0_0_334";if(e.querySelector("#"+t))return;const r=document.createElement("style");r.id=t,e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r),r.appendChild(document.createTextNode(n))}(".panel {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n border-radius: 6px;\n gap: 4px;\n overflow: hidden;\n}\n.panel .emptyState {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n.mainContent {\n flex: 1;\n overflow: auto;\n display: flex;\n flex-direction: column;\n}\n.overlay-panel {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.resize-handle {\n z-index: 50;\n background-color: transparent;\n width: 2px;\n transition: all 0.3s ease-in-out;\n}\n.resize-handle:hover {\n background-color: var(--divider-secondary);\n box-shadow: 2px 0px 0px 0px var(--divider-secondary);\n}\n.collapse-handle {\n z-index: 100;\n max-width: 2px;\n width: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.collapse-handle svg rect {\n fill: var(--divider-secondary);\n max-width: 2px;\n width: 2px;\n}\n.collapse-handle:hover {\n background-color: var(--divider-secondary);\n}\n.collapse-handle:hover svg rect {\n fill: var(--text-color-on-primary);\n}\n.styled-handle {\n height: 100%;\n width: 6px;\n background-color: transparent;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.3s ease-in-out;\n}\n.styled-handle:hover {\n background-color: var(--divider-selected);\n}\n.handle {\n height: 100%;\n background-color: var(--divider-primary);\n cursor: ew-resize;\n transition: background-color 0.3s ease-in-out;\n width: 134px;\n}\n.handle:hover {\n background-color: var(--divider-selected);\n}");
|
2
2
|
//# sourceMappingURL=PanelLayout.module.scss.js.map
|
package/dist/mocked_classnames_esm/src/components/ProcessingToast/ProcessingToast.module.scss.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={toast:"toast",topRight:"topRight",bottomRight:"bottomRight",closeButton:"closeButton",iconExpanded:"iconExpanded",iconCollapsed:"iconCollapsed",content:"content",header:"header",cell:"cell"};!function(n){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],e="s_id-
|
1
|
+
var n={toast:"toast",topRight:"topRight",bottomRight:"bottomRight",closeButton:"closeButton",iconExpanded:"iconExpanded",iconCollapsed:"iconCollapsed",content:"content",header:"header",cell:"cell"};!function(n){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],e="s_id-5ea7316ae404_0_0_334";if(t.querySelector("#"+e))return;const o=document.createElement("style");o.id=e,t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.appendChild(document.createTextNode(n))}(".toast {\n box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.08), 0px 2px 3px 0px rgba(0, 0, 0, 0.07);\n border: 1px solid var(--divider-primary, rgba(16, 24, 27, 0.1));\n -webkit-font-smoothing: var(--font-smoothing-webkit);\n -moz-osx-font-smoothing: var(--font-smoothing-moz);\n margin: var(--spacing-medium);\n position: fixed;\n z-index: 10000;\n right: 0;\n align-items: center;\n display: flex;\n min-width: 320px;\n border-radius: var(--border-radius-medium);\n color: var(--text-primary);\n gap: var(--spacing-small);\n background-color: var(--surface-level-100);\n padding: var(--spacing-small) var(--spacing-medium) var(--spacing-small) var(--spacing-medium);\n}\n\n.topRight {\n top: 0;\n}\n\n.bottomRight {\n bottom: 0;\n}\n\n.closeButton {\n margin-left: var(--spacing-small);\n color: var(--text-primary);\n}\n\n.iconExpanded {\n transition: transform 0.3s ease;\n transform: rotate(180deg);\n}\n\n.iconCollapsed {\n transition: transform 0.3s ease;\n transform: rotate(0deg);\n}\n\n.content {\n transition: max-height 0.3s ease;\n overflow: hidden;\n width: 95%;\n}\n\n.header {\n width: 100%;\n background-color: var(--surface-level-200);\n padding: 10px 10px;\n}\n\n.cell {\n border-top: 1px solid var(--divider-primary);\n padding: 6px 0px;\n width: 100%;\n}");export{n as default};
|
2
2
|
//# sourceMappingURL=ProcessingToast.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var r={bar:"bar",typePrimaryPrimary:"typePrimaryPrimary",typePrimarySecondary:"typePrimarySecondary",typePrimaryPositive:"typePrimaryPositive",typePrimaryNegative:"typePrimaryNegative",typePrimaryWarning:"typePrimaryWarning",typeSecondaryPrimary:"typeSecondaryPrimary",typeSecondarySecondary:"typeSecondarySecondary",typeSecondaryPositive:"typeSecondaryPositive",typeSecondaryNegative:"typeSecondaryNegative",typeSecondaryWarning:"typeSecondaryWarning",animate:"animate"};!function(r){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],n="s_id-
|
1
|
+
var r={bar:"bar",typePrimaryPrimary:"typePrimaryPrimary",typePrimarySecondary:"typePrimarySecondary",typePrimaryPositive:"typePrimaryPositive",typePrimaryNegative:"typePrimaryNegative",typePrimaryWarning:"typePrimaryWarning",typeSecondaryPrimary:"typeSecondaryPrimary",typeSecondarySecondary:"typeSecondarySecondary",typeSecondaryPositive:"typeSecondaryPositive",typeSecondaryNegative:"typeSecondaryNegative",typeSecondaryWarning:"typeSecondaryWarning",animate:"animate"};!function(r){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],n="s_id-7d6049908fe8_0_0_334";if(e.querySelector("#"+n))return;const a=document.createElement("style");a.id=n,e.firstChild?e.insertBefore(a,e.firstChild):e.appendChild(a),a.appendChild(document.createTextNode(r))}(".bar {\n left: 0;\n height: 100%;\n position: absolute;\n border-radius: var(--border-radius-small);\n}\n\n.typePrimaryPrimary {\n background-color: var(--primary-color);\n}\n\n.typePrimarySecondary {\n background-color: var(--surface-inverse);\n}\n\n.typePrimaryPositive {\n background-color: var(--positive-color);\n}\n\n.typePrimaryNegative {\n background-color: var(--negative-color);\n}\n\n.typePrimaryWarning {\n background-color: var(--warning-color);\n}\n\n.typeSecondaryPrimary {\n background-color: var(--surface-selected);\n}\n\n.typeSecondarySecondary {\n background-color: var(--divider-primary);\n}\n\n.typeSecondaryPositive {\n background-color: var(--positive-color-selected);\n}\n\n.typeSecondaryNegative {\n background-color: var(--negative-color-selected);\n}\n\n.typeSecondaryWarning {\n background-color: var(--warning-color-selected);\n}\n\n.animate {\n transition: width var(--motion-productive-medium) var(--motion-timing-transition);\n}");export{r as default};
|
2
2
|
//# sourceMappingURL=Bar.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var e={wrapper:"wrapper",fullWidth:"fullWidth",container:"container",progressBar:"progressBar",completed:"completed",label:"label",large:"large",medium:"medium",small:"small"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],r="s_id-
|
1
|
+
var e={wrapper:"wrapper",fullWidth:"fullWidth",container:"container",progressBar:"progressBar",completed:"completed",label:"label",large:"large",medium:"medium",small:"small"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],r="s_id-70ce3fa10ece_0_0_334";if(n.querySelector("#"+r))return;const t=document.createElement("style");t.id=r,n.firstChild?n.insertBefore(t,n.firstChild):n.appendChild(t),t.appendChild(document.createTextNode(e))}(".wrapper {\n display: flex;\n flex-direction: row;\n justify-content: center;\n width: 100%;\n font: var(--font-text1-normal);\n line-height: 8px !important;\n}\n.wrapper.fullWidth {\n width: 100%;\n}\n.wrapper.fullWidth .container {\n border-radius: 0;\n}\n.wrapper.fullWidth .container .progressBar {\n border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;\n}\n.wrapper.fullWidth .container .progressBar.completed {\n border-radius: 0;\n}\n.label {\n padding-left: var(--spacing-xs);\n}\n.large {\n height: 8px;\n line-height: 8px;\n}\n.medium {\n height: 6px;\n line-height: 6px;\n}\n.small {\n height: 4px;\n line-height: 4px;\n}\n.container {\n position: relative;\n width: 100%;\n background-color: var(--surface-level-200);\n border-radius: var(--border-radius-small);\n}");export{e as default};
|
2
2
|
//# sourceMappingURL=LinearProgressBar.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var e={label:"label"};!function(e){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],d="s_id-
|
1
|
+
var e={label:"label"};!function(e){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],d="s_id-de8a28d20526_0_0_334";if(t.querySelector("#"+d))return;const n=document.createElement("style");n.id=d,t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.appendChild(document.createTextNode(e))}(".label {\n padding-left: var(--spacing-xs);\n}");export{e as default};
|
2
2
|
//# sourceMappingURL=PercentageLabel.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={radioButton:"radioButton",inputContainer:"inputContainer",input:"input",control:"control",labelAnimation:"labelAnimation",radioCheckedAnimation:"radioCheckedAnimation",disabled:"disabled",label:"label"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],o="s_id-
|
1
|
+
var n={radioButton:"radioButton",inputContainer:"inputContainer",input:"input",control:"control",labelAnimation:"labelAnimation",radioCheckedAnimation:"radioCheckedAnimation",disabled:"disabled",label:"label"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],o="s_id-d77bcd558954_0_0_334";if(e.querySelector("#"+o))return;const r=document.createElement("style");r.id=o,e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r),r.appendChild(document.createTextNode(n))}(".radioButton {\n display: grid;\n grid-template-columns: 1.5em auto;\n grid-gap: 0.5em;\n cursor: pointer;\n}\n\n.inputContainer {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.input {\n opacity: 0;\n width: 0;\n height: 0;\n margin: 0;\n}\n\n.control {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1em;\n height: 1em;\n border: 0.1em solid;\n box-sizing: border-box;\n border-color: var(--divider-primary);\n border-radius: 50%;\n transition: all var(--motion-productive-medium) ease 0ms;\n background-color: var(--surface-level-100);\n}\n\ninput:checked + .control {\n border-color: var(--primary-color);\n border-width: 0.3em;\n}\n\ninput:checked + .labelAnimation {\n animation-name: radioCheckedAnimation;\n animation-duration: var(--motion-productive-medium);\n animation-timing-function: var(--motion-timing-enter);\n animation-fill-mode: forwards;\n}\n\ninput:disabled + .control {\n border: 0.5em solid;\n border-color: var(--disabled-background-color);\n border-radius: 50%;\n}\n\ninput:checked:disabled + .control {\n border: 0.3em solid;\n border-color: var(--disabled-background-color);\n background-color: var(--text-secondary);\n}\n\n.radioButton.disabled {\n cursor: not-allowed;\n}\n\n.radioButton.disabled .label {\n color: var(--disabled-text-color);\n}\n\n.inputContainer input:focus-visible + .control {\n outline: none;\n border-color: var(--primary-color);\n box-shadow: 0 0 0 3px hsla(209, 100%, 50%, 0.5);\n border-radius: 50%;\n}\n\n.radioButton:hover .inputContainer input:enabled:checked + .control {\n border-color: var(--primary-hover-color);\n box-shadow: var(--effect-divider-halo);\n}\n\n.radioButton:hover .inputContainer input:enabled:not(:checked) + .control,\n.radioButton:focus-within .inputContainer input:enabled:not(:checked) + .control {\n border-color: var(--divider-selected);\n box-shadow: var(--effect-divider-halo);\n}\n\n@keyframes radioCheckedAnimation {\n 0% {\n height: 1em;\n width: 1em;\n }\n 50% {\n height: 0.8em;\n width: 0.8em;\n }\n 100% {\n height: 1em;\n width: 1em;\n }\n}");export{n as default};
|
2
2
|
//# sourceMappingURL=RadioButton.module.scss.js.map
|
package/dist/mocked_classnames_esm/src/components/ResponsiveList/ResponsiveList.module.scss.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var e={responsiveListRoot:"responsiveListRoot",responsiveList:"responsiveList",listMenuButton:"listMenuButton",dummy:"dummy",menuButtonDialog:"menuButtonDialog",menuWrapperFlex:"menuWrapperFlex"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-
|
1
|
+
var e={responsiveListRoot:"responsiveListRoot",responsiveList:"responsiveList",listMenuButton:"listMenuButton",dummy:"dummy",menuButtonDialog:"menuButtonDialog",menuWrapperFlex:"menuWrapperFlex"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-51abe3f9c6a0_0_0_334";if(n.querySelector("#"+t))return;const i=document.createElement("style");i.id=t,n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.appendChild(document.createTextNode(e))}(".responsiveListRoot {\n position: relative;\n}\n\n.responsiveList {\n display: flex;\n justify-content: flex-end;\n}\n\n.responsiveList .listMenuButton {\n flex-shrink: 0;\n}\n\n.dummy {\n width: 100%;\n position: absolute;\n visibility: hidden;\n}\n\n.menuButtonDialog {\n display: flex;\n}\n\n.menuWrapperFlex {\n display: flex;\n}");export{e as default};
|
2
2
|
//# sourceMappingURL=ResponsiveList.module.scss.js.map
|
package/dist/mocked_classnames_esm/src/components/ScrollableContainer/scrollableContainer.scss.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var e=".hds-scrollable-container {\n box-sizing: border-box;\n overflow-x: auto;\n overflow-y: hidden;\n}\n.hds-scrollable-container * {\n box-sizing: border-box;\n}\n.hds-scrollable-container.allow-vertical-scrolling {\n overflow-y: visible;\n}";!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],o="s_id-
|
1
|
+
var e=".hds-scrollable-container {\n box-sizing: border-box;\n overflow-x: auto;\n overflow-y: hidden;\n}\n.hds-scrollable-container * {\n box-sizing: border-box;\n}\n.hds-scrollable-container.allow-vertical-scrolling {\n overflow-y: visible;\n}";!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],o="s_id-2de7259b0c9f_0_0_334";if(n.querySelector("#"+o))return;const r=document.createElement("style");r.id=o,n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.appendChild(document.createTextNode(e))}(e);export{e as default};
|
2
2
|
//# sourceMappingURL=scrollableContainer.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var e={searchWrapper:"searchWrapper",searchFocusElementFirst:"searchFocusElementFirst",dashForward:"dashForward",searchFocusElementSecond:"searchFocusElementSecond",dashBackwards:"dashBackwards",search:"search",round:"round"};!function(e){if("undefined"==typeof document)return;const r=document.head||document.getElementsByTagName("head")[0],a="s_id-
|
1
|
+
var e={searchWrapper:"searchWrapper",searchFocusElementFirst:"searchFocusElementFirst",dashForward:"dashForward",searchFocusElementSecond:"searchFocusElementSecond",dashBackwards:"dashBackwards",search:"search",round:"round"};!function(e){if("undefined"==typeof document)return;const r=document.head||document.getElementsByTagName("head")[0],a="s_id-b431f263cf23_0_0_334";if(r.querySelector("#"+a))return;const n=document.createElement("style");n.id=a,r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.appendChild(document.createTextNode(e))}(".searchWrapper input[type=search] {\n -webkit-appearance: textfield;\n}\n\n.searchWrapper input[type=search]::-webkit-search-decoration,\n.searchWrapper input[type=search]::-webkit-search-cancel-button,\n.searchWrapper input[type=search]::-webkit-search-results-button,\n.searchWrapper input[type=search]::-webkit-search-results-decoration {\n -webkit-appearance: none;\n}\n\n.searchWrapper:focus-within .searchFocusElementFirst {\n animation: dashForward 5s linear forwards;\n}\n\n.searchWrapper:focus-within .searchFocusElementSecond {\n animation: dashBackwards 5s linear forwards;\n}\n\n.search.round {\n border-radius: 50px !important;\n}\n\n@keyframes dashForward {\n to {\n stroke-dashoffset: 0;\n }\n}\n\n@keyframes dashBackwards {\n to {\n stroke-dashoffset: 2000;\n }\n}");export{e as default};
|
2
2
|
//# sourceMappingURL=Search.module.scss.js.map
|
package/dist/mocked_classnames_esm/src/components/SectionHeader/SectionHeader.module.scss.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={sectionHeader:"sectionHeader",text:"text",large:"large",medium:"medium",small:"small",indented:"indented"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-
|
1
|
+
var n={sectionHeader:"sectionHeader",text:"text",large:"large",medium:"medium",small:"small",indented:"indented"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-03a241082978_0_0_334";if(e.querySelector("#"+t))return;const d=document.createElement("style");d.id=t,e.firstChild?e.insertBefore(d,e.firstChild):e.appendChild(d),d.appendChild(document.createTextNode(n))}(".sectionHeader {\n display: flex;\n width: 100%;\n justify-content: space-between;\n border-bottom: 1px solid var(--divider-primary);\n padding-right: 12px;\n align-items: flex-end;\n}\n\n.text {\n font-weight: 600;\n}\n\n.large {\n font-size: 18px;\n padding-top: 30px;\n padding-bottom: 10px;\n line-height: 22px;\n}\n\n.medium {\n font-size: 14px;\n padding-top: 14px;\n padding-bottom: 6px;\n line-height: 22px;\n}\n\n.small {\n font-size: 12px;\n line-height: 15px;\n padding-top: 6px;\n padding-bottom: 2px;\n}\n\n.indented {\n padding-left: 16px;\n}");export{n as default};
|
2
2
|
//# sourceMappingURL=SectionHeader.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={segmentControlCell:"segmentControlCell",active:"active",disabled:"disabled",small:"small",medium:"medium",large:"large",cellContent:"cellContent"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-
|
1
|
+
var n={segmentControlCell:"segmentControlCell",active:"active",disabled:"disabled",small:"small",medium:"medium",large:"large",cellContent:"cellContent"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-356f7c8bd17b_0_0_334";if(e.querySelector("#"+t))return;const l=document.createElement("style");l.id=t,e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l),l.appendChild(document.createTextNode(n))}(".segmentControlCell {\n cursor: pointer;\n text-align: center;\n transition: color 0.3s;\n color: var(--text-secondary);\n border-radius: var(--border-radius-medium);\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n gap: 4px;\n margin: 0;\n padding: 0 var(--spacing-small);\n font: var(--font-text1-normal);\n box-sizing: border-box;\n min-width: 0;\n flex: 1 1 auto;\n}\n.segmentControlCell.active {\n color: var(--text-primary);\n}\n.segmentControlCell:hover {\n color: var(--text-primary);\n}\n.segmentControlCell.active:not(:hover) {\n color: var(--text-primary);\n}\n.segmentControlCell.disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.small {\n padding: 0 var(--spacing-xs);\n height: 24px;\n font-size: 12px;\n}\n.medium {\n padding: 0 var(--spacing-small);\n height: 32px;\n font-size: 14px;\n}\n.large {\n padding: 0 var(--spacing-medium);\n height: 40px;\n font-size: 16px;\n}\n.cellContent {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}");export{n as default};
|
2
2
|
//# sourceMappingURL=SegmentControlCell.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={segmentControlList:"segmentControlList",stretched:"stretched",segmentControlUl:"segmentControlUl",small:"small",medium:"medium",large:"large",animatedBackground:"animatedBackground"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-
|
1
|
+
var n={segmentControlList:"segmentControlList",stretched:"stretched",segmentControlUl:"segmentControlUl",small:"small",medium:"medium",large:"large",animatedBackground:"animatedBackground"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-d6edb0b37613_0_0_334";if(e.querySelector("#"+t))return;const r=document.createElement("style");r.id=t,e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r),r.appendChild(document.createTextNode(n))}(".segmentControlList {\n position: relative;\n display: flex;\n align-items: center;\n background-color: var(--surface-level-050);\n border-radius: var(--border-radius-medium);\n padding: 2px;\n box-sizing: border-box;\n}\n\n.stretched {\n width: 100%;\n}\n\n.segmentControlUl {\n display: flex;\n width: 100%;\n margin: 0;\n padding: 0;\n list-style: none;\n position: relative;\n z-index: 1;\n box-sizing: border-box;\n}\n\n.small {\n --segment-height: 24px;\n}\n\n.medium {\n --segment-height: 32px;\n}\n\n.large {\n --segment-height: 40px;\n}\n\n.segmentControlList {\n height: var(--segment-height);\n}\n\n.animatedBackground {\n position: absolute;\n top: 2px;\n bottom: 2px;\n left: 2px;\n background-color: var(--surface-level-100);\n border-radius: calc(var(--border-radius-medium) - 2px);\n box-shadow: 0px 1px 2px 0px color-mix(in srgb, var(--shadow-color) 50%, transparent);\n z-index: 0;\n transition: transform 0.3s ease, width 0.3s ease;\n}");export{n as default};
|
2
2
|
//# sourceMappingURL=SegmentControlList.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={headerStyled:"headerStyled",closeIcon:"closeIcon",containerStyled:"containerStyled",sidebarMenuStyled:"sidebarMenuStyled",innerStyled:"innerStyled",overlay:"overlay","overlay-fade-in":"overlay-fade-in",CloseLayerStyled:"CloseLayerStyled",sectionLabelStyled:"sectionLabelStyled",menuItemStyled:"menuItemStyled",menuItemLink:"menuItemLink",withIcon:"withIcon",menuIcon:"menuIcon",menuItemCounter:"menuItemCounter",active:"active"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-
|
1
|
+
var n={headerStyled:"headerStyled",closeIcon:"closeIcon",containerStyled:"containerStyled",sidebarMenuStyled:"sidebarMenuStyled",innerStyled:"innerStyled",overlay:"overlay","overlay-fade-in":"overlay-fade-in",CloseLayerStyled:"CloseLayerStyled",sectionLabelStyled:"sectionLabelStyled",menuItemStyled:"menuItemStyled",menuItemLink:"menuItemLink",withIcon:"withIcon",menuIcon:"menuIcon",menuItemCounter:"menuItemCounter",active:"active"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-b52d3e4d5770_0_0_334";if(e.querySelector("#"+t))return;const i=document.createElement("style");i.id=t,e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i),i.appendChild(document.createTextNode(n))}(".headerStyled {\n display: flex;\n align-items: center;\n margin-bottom: 50px;\n}\n.headerStyled img {\n margin-top: 4px;\n margin-left: 4px;\n}\n.closeIcon {\n padding-right: 5px;\n margin-left: 0px;\n}\n.containerStyled {\n padding: 0 1rem;\n flex: 1;\n}\n.sidebarMenuStyled {\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n position: fixed;\n will-change: transform;\n transition: all 0.26s ease-in-out;\n z-index: 9999;\n display: flex;\n}\n.innerStyled {\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n overflow-y: auto;\n box-shadow: var(--box-shadow-small);\n background-color: var(--surface-level-100);\n padding: 16px 6px 0 6px;\n max-width: 100%;\n width: 100vw;\n z-index: 9999;\n font-size: 14px;\n color: var(--text-secondary);\n}\n@media (min-width: 576px) {\n .innerStyled {\n width: 50vw;\n }\n}\n@media (min-width: 768px) {\n .innerStyled {\n width: 25vw;\n }\n}\n@media (min-width: 992px) {\n .innerStyled {\n width: 20vw;\n }\n}\n@media (min-width: 1200px) {\n .innerStyled {\n width: 15rem;\n }\n}\n.overlay {\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n position: fixed;\n background-color: rgba(0, 0, 0, 0.3);\n animation: overlay-fade-in 70ms var(--motion-timing-enter);\n transition: all 0.26s ease-in-out;\n z-index: 7000;\n}\n.CloseLayerStyled {\n background-color: transparent;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n}\n.sectionLabelStyled {\n display: flex;\n align-items: center;\n font-weight: 600;\n padding: 28px 4px 8px 4px;\n line-height: 22px;\n gap: 8px;\n}\n.menuItemStyled {\n height: 38px;\n display: flex;\n align-items: center;\n border-radius: 4px;\n}\n.menuItemLink {\n color: var(--text-secondary);\n text-decoration: none;\n font-weight: 400;\n padding-left: 28px;\n height: 100%;\n width: 100%;\n border-radius: var(--border-radius-medium);\n display: flex;\n align-items: center;\n transition: all var(--motion-productive-medium) ease 0ms;\n}\n.menuItemLink:hover {\n cursor: pointer;\n background: var(--surface-level-200);\n color: var(--text-primary);\n text-decoration: none;\n}\n.menuItemLink.withIcon {\n padding-left: 4px;\n}\n.menuItemLink .menuIcon {\n margin-right: 4px;\n}\n.menuItemCounter {\n margin-left: 8px;\n margin-right: 8px;\n}\n.active {\n background: var(--surface-level-200);\n color: var(--text-primary);\n}\n.active:hover {\n background: var(--surface-level-300);\n}");export{n as default};
|
2
2
|
//# sourceMappingURL=Sidebar.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={skeleton:"skeleton",rectangle:"rectangle",shine:"shine",circle:"circle",text:"text",textH1:"textH1",textH2:"textH2",textH3:"textH3",textH4:"textH4",textH5:"textH5",textH6:"textH6",textSmall:"textSmall",textCustom:"textCustom",fullWidth:"fullWidth"};!function(n){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],e="s_id-
|
1
|
+
var n={skeleton:"skeleton",rectangle:"rectangle",shine:"shine",circle:"circle",text:"text",textH1:"textH1",textH2:"textH2",textH3:"textH3",textH4:"textH4",textH5:"textH5",textH6:"textH6",textSmall:"textSmall",textCustom:"textCustom",fullWidth:"fullWidth"};!function(n){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],e="s_id-2345d9ff68bb_0_0_334";if(t.querySelector("#"+e))return;const i=document.createElement("style");i.id=e,t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i),i.appendChild(document.createTextNode(n))}(".skeleton {\n display: flex;\n}\n\n.rectangle {\n height: 160px;\n background: var(--surface-level-200);\n border-radius: var(--border-radius-small);\n overflow: hidden;\n animation-duration: 0.8s;\n animation-direction: alternate;\n animation-iteration-count: infinite;\n animation-name: shine;\n animation-timing-function: steps(10, end);\n}\n\n@keyframes shine {\n 0% {\n opacity: 0.3;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.circle {\n height: 40px;\n background: var(--surface-level-200);\n border-radius: 50%;\n overflow: hidden;\n animation-duration: 0.8s;\n animation-direction: alternate;\n animation-iteration-count: infinite;\n animation-name: shine;\n animation-timing-function: steps(10, end);\n}\n\n@keyframes shine {\n 0% {\n opacity: 0.3;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.text {\n background: var(--surface-level-200);\n border-radius: var(--border-radius-small);\n overflow: hidden;\n animation-duration: 0.8s;\n animation-direction: alternate;\n animation-iteration-count: infinite;\n animation-name: shine;\n animation-timing-function: steps(10, end);\n}\n\n@keyframes shine {\n 0% {\n opacity: 0.3;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.textH1 {\n height: 32px;\n}\n\n.textH2 {\n height: 24px;\n}\n\n.textH3 {\n height: 24px;\n}\n\n.textH4 {\n height: 21px;\n}\n\n.textH5 {\n height: 16px;\n}\n\n.textH6 {\n height: 12px;\n}\n\n.textSmall,\n.textCustom {\n height: 12px;\n}\n\n.fullWidth {\n width: 100%;\n}\n\n.skeleton:not(.fullWidth) .text {\n width: 162px;\n}\n\n.skeleton:not(.fullWidth) .circle {\n width: 40px;\n}\n\n.skeleton:not(.fullWidth) .rectangle {\n width: 160px;\n}");export{n as default};
|
2
2
|
//# sourceMappingURL=Skeleton.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var e={selectionIndicator:"selectionIndicator"};!function(e){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],n="s_id-
|
1
|
+
var e={selectionIndicator:"selectionIndicator"};!function(e){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],n="s_id-a25847c4cc71_0_0_334";if(t.querySelector("#"+n))return;const c=document.createElement("style");c.id=n,t.firstChild?t.insertBefore(c,t.firstChild):t.appendChild(c),c.appendChild(document.createTextNode(e))}(".selectionIndicator.selectionIndicator.selectionIndicator {\n text-align: center;\n padding: var(--spacing-small);\n}");export{e as default};
|
2
2
|
//# sourceMappingURL=SelectionIndicator.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var e={slider:"slider",valueShown:"valueShown"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-
|
1
|
+
var e={slider:"slider",valueShown:"valueShown"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-1ec33feab829_0_0_334";if(n.querySelector("#"+t))return;const d=document.createElement("style");d.id=t,n.firstChild?n.insertBefore(d,n.firstChild):n.appendChild(d),d.appendChild(document.createTextNode(e))}(".slider {\n align-items: center;\n display: flex;\n max-width: 500px;\n min-width: 200px;\n width: 100%;\n}\n\n.valueShown {\n margin-top: 10px;\n}");export{e as default};
|
2
2
|
//# sourceMappingURL=Slider.module.scss.js.map
|
package/dist/mocked_classnames_esm/src/components/Slider/SliderBase/SliderBase.module.scss.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={base:"base",disabled:"disabled",small:"small",medium:"medium",large:"large"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],a="s_id-
|
1
|
+
var n={base:"base",disabled:"disabled",small:"small",medium:"medium",large:"large"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],a="s_id-0abb9e445f96_0_0_334";if(e.querySelector("#"+a))return;const d=document.createElement("style");d.id=a,e.firstChild?e.insertBefore(d,e.firstChild):e.appendChild(d),d.appendChild(document.createTextNode(n))}(".base {\n display: flex;\n touch-action: none;\n -webkit-tap-highlight-color: transparent;\n width: 100%;\n}\n\n.disabled {\n cursor: not-allowed !important;\n opacity: var(--disabled-component-opacity);\n}\n\n.disabled * {\n pointer-events: none;\n}\n\n.small {\n padding: 0 var(--spacing-small);\n}\n\n.medium {\n padding: 0 12px;\n}\n\n.large {\n padding: 0 12px;\n}");export{n as default};
|
2
2
|
//# sourceMappingURL=SliderBase.module.scss.js.map
|
package/dist/mocked_classnames_esm/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var e={filledTrack:"filledTrack",positive:"positive",negative:"negative"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-
|
1
|
+
var e={filledTrack:"filledTrack",positive:"positive",negative:"negative"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-bb386829c5aa_0_0_334";if(n.querySelector("#"+t))return;const r=document.createElement("style");r.id=t,n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.appendChild(document.createTextNode(e))}(".filledTrack {\n position: absolute;\n border-radius: inherit;\n background-color: var(--primary-color);\n height: inherit;\n top: 50%;\n transform: translateY(-50%);\n width: 100%;\n}\n\n.positive {\n background-color: var(--positive-color);\n}\n\n.negative {\n background-color: var(--negative-color);\n}");export{e as default};
|
2
2
|
//# sourceMappingURL=SliderFilledTrack.module.scss.js.map
|
package/dist/mocked_classnames_esm/src/components/Slider/SliderBase/SliderRail.module.scss.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={rail:"rail",small:"small",medium:"medium",large:"large"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],i="s_id-
|
1
|
+
var n={rail:"rail",small:"small",medium:"medium",large:"large"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],i="s_id-c66a4285003d_0_0_334";if(e.querySelector("#"+i))return;const t=document.createElement("style");t.id=i,e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t),t.appendChild(document.createTextNode(n))}(".rail {\n cursor: pointer;\n display: inline-block;\n position: relative;\n touch-action: none;\n -webkit-tap-highlight-color: transparent;\n width: 100%;\n}\n\n.small {\n border-radius: 2px;\n height: 2px;\n padding: 8px 0;\n}\n\n.medium {\n border-radius: 2px;\n height: 4px;\n padding: 12px 0;\n}\n\n.large {\n border-radius: 8px;\n height: 8px;\n padding: 10px 0;\n}");export{n as default};
|
2
2
|
//# sourceMappingURL=SliderRail.module.scss.js.map
|
package/dist/mocked_classnames_esm/src/components/Slider/SliderBase/SliderThumb.module.scss.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={thumb:"thumb",dragging:"dragging",focused:"focused",notDisabledThumb:"notDisabledThumb","focus-visible":"focus-visible",positive:"positive",negative:"negative",small:"small",medium:"medium",large:"large",label:"label"};!function(n){if("undefined"==typeof document)return;const o=document.head||document.getElementsByTagName("head")[0],e="s_id-
|
1
|
+
var n={thumb:"thumb",dragging:"dragging",focused:"focused",notDisabledThumb:"notDisabledThumb","focus-visible":"focus-visible",positive:"positive",negative:"negative",small:"small",medium:"medium",large:"large",label:"label"};!function(n){if("undefined"==typeof document)return;const o=document.head||document.getElementsByTagName("head")[0],e="s_id-25c9c209cbd2_0_0_334";if(o.querySelector("#"+e))return;const r=document.createElement("style");r.id=e,o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.appendChild(document.createTextNode(n))}(".thumb {\n position: absolute;\n border: 3px solid;\n border-radius: 50%;\n border-color: var(--primary-color);\n background-color: var(--surface-level-100);\n font-size: 14px;\n top: 50%;\n transform: translate(-50%, -50%);\n transition: transform var(--motion-productive-long) var(--motion-timing-enter);\n font-family: var(--font-family);\n}\n\n.dragging {\n cursor: grabbing !important;\n transform: translate(-50%, -50%) scale(1.33, 1.33);\n transform-origin: center center;\n transition: transform var(--motion-productive-long) var(--motion-timing-enter);\n box-shadow: var(--box-shadow-small);\n}\n\n.focused {\n border-color: var(--primary-hover-color);\n cursor: grab;\n box-shadow: var(--box-shadow-small);\n}\n\n.notDisabledThumb:focus-visible, .notDisabledThumb.focus-visible {\n outline: none;\n z-index: 11;\n border-radius: 50%;\n box-shadow: 0 0 0 3px hsla(209, 100%, 50%, 0.5), 0 0 0 1px var(--primary-hover-color) inset;\n}\n\n.notDisabledThumb:focus:not(.focus-visible) {\n outline: none;\n}\n\n.notDisabledThumb:hover {\n border-color: var(--primary-hover-color);\n cursor: grab;\n box-shadow: var(--box-shadow-small);\n}\n\n.positive {\n border-color: var(--positive-color);\n}\n\n.positive.notDisabledThumb:hover {\n border-color: var(--positive-color-hover);\n}\n\n.negative {\n border-color: var(--negative-color);\n}\n\n.negative.notDisabledThumb:hover {\n border-color: var(--negative-color-hover);\n}\n\n.small {\n height: 16px;\n width: 16px;\n}\n\n.medium {\n height: 24px;\n width: 24px;\n}\n\n.large {\n height: 24px;\n width: 24px;\n}\n\n.label {\n bottom: calc(100% + 8px);\n left: 50%;\n max-width: 50px;\n overflow: hidden;\n position: absolute;\n text-overflow: ellipsis;\n transform: translate(-50%, 0);\n white-space: nowrap;\n}");export{n as default};
|
2
2
|
//# sourceMappingURL=SliderThumb.module.scss.js.map
|
package/dist/mocked_classnames_esm/src/components/Slider/SliderBase/SliderTrack.module.scss.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var e={track:"track",positive:"positive",negative:"negative"};!function(e){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],n="s_id-
|
1
|
+
var e={track:"track",positive:"positive",negative:"negative"};!function(e){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],n="s_id-f269843990a8_0_0_334";if(t.querySelector("#"+n))return;const r=document.createElement("style");r.id=n,t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.appendChild(document.createTextNode(e))}(".track {\n position: absolute;\n border-radius: inherit;\n background-color: var(--surface-selected);\n height: inherit;\n top: 50%;\n transform: translateY(-50%);\n width: 100%;\n}\n\n.positive {\n background-color: var(--positive-color-selected);\n}\n\n.negative {\n background-color: var(--negative-color-selected);\n}");export{e as default};
|
2
2
|
//# sourceMappingURL=SliderTrack.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var e={infix:"infix",txt:"txt",prefix:"prefix",postfix:"postfix"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-
|
1
|
+
var e={infix:"infix",txt:"txt",prefix:"prefix",postfix:"postfix"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-4fd2a8cee614_0_0_334";if(n.querySelector("#"+t))return;const i=document.createElement("style");i.id=t,n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.appendChild(document.createTextNode(e))}(".infix {\n font-size: 14px;\n font-family: var(--font-family);\n flex: 0 0 auto;\n}\n\n.txt {\n white-space: nowrap;\n}\n\n.prefix {\n margin-right: var(--spacing-small);\n}\n\n.postfix {\n margin-left: var(--spacing-small);\n}");export{e as default};
|
2
2
|
//# sourceMappingURL=SliderInfix.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={button:"button",mainButton:"mainButton",secondaryButton:"secondaryButton",secondaryButtonWrapper:"secondaryButtonWrapper",secondaryButtonIconWrapper:"secondaryButtonIconWrapper",active:"active",disabled:"disabled",kindTertiary:"kindTertiary",colorPrimary:"colorPrimary",mainActive:"mainActive",splitContentOpen:"splitContentOpen",hovered:"hovered",colorBrand:"colorBrand",colorPositive:"colorPositive",colorNegative:"colorNegative",kindPrimary:"kindPrimary",colorOnPrimaryColor:"colorOnPrimaryColor",kindSecondary:"kindSecondary"};!function(n){if("undefined"==typeof document)return;const r=document.head||document.getElementsByTagName("head")[0],o="s_id-
|
1
|
+
var n={button:"button",mainButton:"mainButton",secondaryButton:"secondaryButton",secondaryButtonWrapper:"secondaryButtonWrapper",secondaryButtonIconWrapper:"secondaryButtonIconWrapper",active:"active",disabled:"disabled",kindTertiary:"kindTertiary",colorPrimary:"colorPrimary",mainActive:"mainActive",splitContentOpen:"splitContentOpen",hovered:"hovered",colorBrand:"colorBrand",colorPositive:"colorPositive",colorNegative:"colorNegative",kindPrimary:"kindPrimary",colorOnPrimaryColor:"colorOnPrimaryColor",kindSecondary:"kindSecondary"};!function(n){if("undefined"==typeof document)return;const r=document.head||document.getElementsByTagName("head")[0],o="s_id-8e6cd5ac8255_0_0_334";if(r.querySelector("#"+o))return;const e=document.createElement("style");e.id=o,r.firstChild?r.insertBefore(e,r.firstChild):r.appendChild(e),e.appendChild(document.createTextNode(n))}(".button {\n display: inline-flex;\n border-radius: var(--border-radius-medium);\n transition: all var(--motion-productive-medium) ease 0ms;\n}\n\n.button .mainButton {\n margin-right: 0;\n}\n\n.button .secondaryButton {\n margin-left: 0;\n}\n\n.secondaryButtonWrapper .secondaryButtonIconWrapper {\n display: inline-flex;\n padding: 0 4px;\n}\n\n.active {\n transform: scale(0.95);\n}\n\n.disabled {\n cursor: not-allowed;\n pointer-events: none;\n}\n\n.kindTertiary.colorPrimary.mainActive .mainButton {\n background-color: var(--surface-selected);\n}\n\n.kindTertiary.colorPrimary.mainActive .secondaryButton {\n background-color: var(--surface-selected);\n}\n\n.kindTertiary.colorPrimary.mainActive.splitContentOpen.splitContentOpen .secondaryButton,\n.kindTertiary.colorPrimary.mainActive.splitContentOpen.splitContentOpen .secondaryButton:hover,\n.kindTertiary.colorPrimary.mainActive.hovered.splitContentOpen .secondaryButton,\n.kindTertiary.colorPrimary.mainActive.hovered.splitContentOpen .secondaryButton:hover {\n color: var(--primary-color);\n}\n\n.kindTertiary.colorBrand.mainActive .mainButton {\n background-color: var(--brand-selected-color);\n}\n\n.kindTertiary.colorBrand.mainActive .secondaryButton {\n background-color: var(--brand-selected-color);\n}\n\n.kindTertiary.colorBrand.mainActive.splitContentOpen.splitContentOpen .secondaryButton,\n.kindTertiary.colorBrand.mainActive.splitContentOpen.splitContentOpen .secondaryButton:hover,\n.kindTertiary.colorBrand.mainActive.hovered.splitContentOpen .secondaryButton,\n.kindTertiary.colorBrand.mainActive.hovered.splitContentOpen .secondaryButton:hover {\n color: var(--brand-color);\n}\n\n.kindTertiary.colorPositive.splitContentOpen .secondaryButton,\n.kindTertiary.colorPositive:hover .secondaryButton,\n.kindTertiary.colorPositive:focus .secondaryButton {\n border-color: transparent;\n background-color: var(--positive-color-selected);\n}\n\n.kindTertiary.colorPositive.splitContentOpen .mainButton,\n.kindTertiary.colorPositive:hover .mainButton,\n.kindTertiary.colorPositive:focus .mainButton {\n background-color: var(--positive-color-selected);\n}\n\n.kindTertiary.colorNegative.splitContentOpen .secondaryButton,\n.kindTertiary.colorNegative:hover .secondaryButton,\n.kindTertiary.colorNegative:focus .secondaryButton {\n border-color: transparent;\n background-color: var(--negative-color-selected);\n}\n\n.kindTertiary.colorNegative.splitContentOpen .mainButton,\n.kindTertiary.colorNegative:hover .mainButton,\n.kindTertiary.colorNegative:focus .mainButton {\n background-color: var(--negative-color-selected);\n}\n\n.kindTertiary .secondaryButton {\n border-left: 1px solid transparent;\n margin-left: 1px;\n}\n\n.kindPrimary.disabled .secondaryButton {\n border-left: 1px solid;\n border-color: var(--divider-primary);\n}\n\n.kindPrimary:not(.disabled).colorPrimary.mainActive .secondaryButton {\n background-color: var(--primary-hover-color);\n border-color: var(--text-color-on-primary);\n}\n\n.kindPrimary:not(.disabled).colorPrimary .secondaryButton {\n border-left: 1px solid;\n border-color: var(--primary-hover-color);\n}\n\n.kindPrimary:not(.disabled).colorBrand.mainActive .secondaryButton {\n background-color: var(--brand-hover-color);\n border-color: var(--text-color-on-primary);\n}\n\n.kindPrimary:not(.disabled).colorBrand .secondaryButton {\n border-left: 1px solid;\n border-color: var(--brand-hover-color);\n}\n\n.kindPrimary:not(.disabled).colorPositive .secondaryButton {\n border-left: 1px solid;\n border-color: var(--positive-color-hover);\n}\n\n.kindPrimary:not(.disabled).colorNegative .secondaryButton {\n border-left: 1px solid;\n border-color: var(--negative-color-hover);\n}\n\n.kindPrimary:not(.disabled).colorOnPrimaryColor .secondaryButton {\n border-left: 1px solid;\n border-color: var(--color-ui_grey);\n}\n\n.kindSecondary .mainButton {\n border-right: none;\n}\n\n.kindSecondary.colorPrimary.mainActive .mainButton {\n background-color: var(--surface-selected);\n}\n\n.kindSecondary.colorPrimary.mainActive .secondaryButton {\n background-color: var(--surface-selected);\n border-color: var(--primary-color);\n}\n\n.kindSecondary.colorPrimary.splitContentOpen .secondaryButton,\n.kindSecondary.colorPrimary.splitContentOpen .secondaryButton:hover {\n color: var(--primary-color);\n border-color: var(--primary-color);\n background-color: var(--surface-selected);\n}\n\n.kindSecondary.colorBrand.mainActive .mainButton {\n background-color: var(--brand-selected-color);\n}\n\n.kindSecondary.colorBrand.mainActive .secondaryButton {\n background-color: var(--brand-selected-color);\n border-color: var(--brand-color);\n}\n\n.kindSecondary.colorBrand.splitContentOpen .secondaryButton,\n.kindSecondary.colorBrand.splitContentOpen .secondaryButton:hover {\n color: var(--brand-color);\n border-color: var(--brand-color);\n background-color: var(--brand-selected-color);\n}");export{n as default};
|
2
2
|
//# sourceMappingURL=SplitButton.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var t={steps:"steps",contentOnTop:"contentOnTop",contentOnBottom:"contentOnBottom"};!function(t){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],n="s_id-
|
1
|
+
var t={steps:"steps",contentOnTop:"contentOnTop",contentOnBottom:"contentOnBottom"};!function(t){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],n="s_id-9e4623f942e8_0_0_334";if(e.querySelector("#"+n))return;const o=document.createElement("style");o.id=n,e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o),o.appendChild(document.createTextNode(t))}(".steps .contentOnTop {\n margin-top: var(--spacing-medium);\n}\n.steps .contentOnBottom {\n margin-bottom: var(--spacing-small);\n}");export{t as default};
|
2
2
|
//# sourceMappingURL=Steps.module.scss.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var n={command:"command",backward:"backward",icon:"icon",disabled:"disabled",colorOnPrimaryColor:"colorOnPrimaryColor",colorOnInvertedBackground:"colorOnInvertedBackground"};!function(n){if("undefined"==typeof document)return;const o=document.head||document.getElementsByTagName("head")[0],e="s_id-
|
1
|
+
var n={command:"command",backward:"backward",icon:"icon",disabled:"disabled",colorOnPrimaryColor:"colorOnPrimaryColor",colorOnInvertedBackground:"colorOnInvertedBackground"};!function(n){if("undefined"==typeof document)return;const o=document.head||document.getElementsByTagName("head")[0],e="s_id-bbdf617a3c1e_0_0_334";if(o.querySelector("#"+e))return;const r=document.createElement("style");r.id=e,o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.appendChild(document.createTextNode(n))}(".command {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n.command.backward {\n flex-direction: row-reverse;\n}\n.icon {\n color: var(--icon-color);\n width: 15.5px;\n height: 15.5px;\n}\n.icon.disabled {\n color: var(--disabled-text-color);\n}\n.icon.colorOnPrimaryColor {\n color: var(--text-color-on-primary);\n}\n.icon.colorOnInvertedBackground {\n color: var(--text-color-on-inverted);\n}");export{n as default};
|
2
2
|
//# sourceMappingURL=StepsCommand.module.scss.js.map
|