@databricks/design-system 1.12.16 → 1.12.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/development.d.ts +1 -1
- package/dist/Stepper-CHoSvjfT.js +394 -0
- package/dist/Stepper-CHoSvjfT.js.map +1 -0
- package/dist/Tooltip-CQoHJStg.js +1242 -0
- package/dist/Tooltip-CQoHJStg.js.map +1 -0
- package/dist/{Stepper-ff25c5d1.js → Typography-CTfAhQ8V.js} +2188 -1903
- package/dist/Typography-CTfAhQ8V.js.map +1 -0
- package/dist/{common-5b60d682.js → common-B8UocGP5.js} +1 -1
- package/dist/{common-5b60d682.js.map → common-B8UocGP5.js.map} +1 -1
- package/dist/development.js +1441 -811
- package/dist/development.js.map +1 -1
- package/dist/dubois-colors.less +35 -37
- package/dist/index-DSCOuDtB.js +611 -0
- package/dist/index-DSCOuDtB.js.map +1 -0
- package/dist/index-dark.css +23 -1
- package/dist/index.css +20 -1
- package/dist/index.js +7021 -4725
- package/dist/index.js.map +1 -1
- package/dist/patterns.js +791 -0
- package/dist/patterns.js.map +1 -0
- package/dist/test-utils/enzyme.js +1 -1
- package/dist/test-utils/enzyme.js.map +1 -1
- package/dist/test-utils/rtl.js +160 -6
- package/dist/test-utils/rtl.js.map +1 -1
- package/package.json +42 -26
- package/patterns.d.ts +1 -0
- package/patterns.mjs +1 -0
- package/test-utils/enzyme.d.ts +1 -1
- package/test-utils/rtl.d.ts +1 -1
- package/dist/Stepper-ff25c5d1.js.map +0 -1
- package/dist/antd-vars.d.ts +0 -5
- package/dist/antd-vars.d.ts.map +0 -1
- package/dist/design-system/AccessibleContainer/index.d.ts +0 -7
- package/dist/design-system/AccessibleContainer/index.d.ts.map +0 -1
- package/dist/design-system/Accordion/Accordion.d.ts +0 -45
- package/dist/design-system/Accordion/Accordion.d.ts.map +0 -1
- package/dist/design-system/Accordion/index.d.ts +0 -2
- package/dist/design-system/Accordion/index.d.ts.map +0 -1
- package/dist/design-system/Alert/Alert.d.ts +0 -11
- package/dist/design-system/Alert/Alert.d.ts.map +0 -1
- package/dist/design-system/Alert/index.d.ts +0 -2
- package/dist/design-system/Alert/index.d.ts.map +0 -1
- package/dist/design-system/ApplyGlobalStyles/ApplyGlobalStyles.d.ts +0 -6
- package/dist/design-system/ApplyGlobalStyles/ApplyGlobalStyles.d.ts.map +0 -1
- package/dist/design-system/ApplyGlobalStyles/index.d.ts +0 -2
- package/dist/design-system/ApplyGlobalStyles/index.d.ts.map +0 -1
- package/dist/design-system/AutoComplete/AutoComplete.d.ts +0 -17
- package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +0 -1
- package/dist/design-system/AutoComplete/index.d.ts +0 -2
- package/dist/design-system/AutoComplete/index.d.ts.map +0 -1
- package/dist/design-system/Avatar/Avatar.d.ts +0 -40
- package/dist/design-system/Avatar/Avatar.d.ts.map +0 -1
- package/dist/design-system/Avatar/SvgDatabricksIcon.d.ts +0 -3
- package/dist/design-system/Avatar/SvgDatabricksIcon.d.ts.map +0 -1
- package/dist/design-system/Avatar/SvgSparkleIcon.d.ts +0 -3
- package/dist/design-system/Avatar/SvgSparkleIcon.d.ts.map +0 -1
- package/dist/design-system/Avatar/SvgUserIcon.d.ts +0 -3
- package/dist/design-system/Avatar/SvgUserIcon.d.ts.map +0 -1
- package/dist/design-system/Avatar/index.d.ts +0 -2
- package/dist/design-system/Avatar/index.d.ts.map +0 -1
- package/dist/design-system/Breadcrumb/Breadcrumb.d.ts +0 -15
- package/dist/design-system/Breadcrumb/Breadcrumb.d.ts.map +0 -1
- package/dist/design-system/Breadcrumb/index.d.ts +0 -2
- package/dist/design-system/Breadcrumb/index.d.ts.map +0 -1
- package/dist/design-system/Button/Button.d.ts +0 -33
- package/dist/design-system/Button/Button.d.ts.map +0 -1
- package/dist/design-system/Button/index.d.ts +0 -2
- package/dist/design-system/Button/index.d.ts.map +0 -1
- package/dist/design-system/Button/styles.d.ts +0 -10
- package/dist/design-system/Button/styles.d.ts.map +0 -1
- package/dist/design-system/Card/Card.d.ts +0 -51
- package/dist/design-system/Card/Card.d.ts.map +0 -1
- package/dist/design-system/Card/index.d.ts +0 -2
- package/dist/design-system/Card/index.d.ts.map +0 -1
- package/dist/design-system/Checkbox/Checkbox.d.ts +0 -32
- package/dist/design-system/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/design-system/Checkbox/index.d.ts +0 -2
- package/dist/design-system/Checkbox/index.d.ts.map +0 -1
- package/dist/design-system/ContextMenu/ContextMenu.d.ts +0 -63
- package/dist/design-system/ContextMenu/ContextMenu.d.ts.map +0 -1
- package/dist/design-system/ContextMenu/index.d.ts +0 -2
- package/dist/design-system/ContextMenu/index.d.ts.map +0 -1
- package/dist/design-system/DatePicker/DatePicker.d.ts +0 -62
- package/dist/design-system/DatePicker/DatePicker.d.ts.map +0 -1
- package/dist/design-system/DatePicker/index.d.ts +0 -2
- package/dist/design-system/DatePicker/index.d.ts.map +0 -1
- package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts +0 -46
- package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts.map +0 -1
- package/dist/design-system/DesignSystemEventProvider/index.d.ts +0 -2
- package/dist/design-system/DesignSystemEventProvider/index.d.ts.map +0 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +0 -65
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +0 -1
- package/dist/design-system/DesignSystemProvider/index.d.ts +0 -2
- package/dist/design-system/DesignSystemProvider/index.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogCombobox.d.ts +0 -14
- package/dist/design-system/DialogCombobox/DialogCombobox.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts +0 -2
- package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts +0 -17
- package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxCountBadge.d.ts +0 -4
- package/dist/design-system/DialogCombobox/DialogComboboxCountBadge.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxFooter.d.ts +0 -2
- package/dist/design-system/DialogCombobox/DialogComboboxFooter.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxHintRow.d.ts +0 -7
- package/dist/design-system/DialogCombobox/DialogComboboxHintRow.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts +0 -12
- package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionList.d.ts +0 -10
- package/dist/design-system/DialogCombobox/DialogComboboxOptionList.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts +0 -14
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts +0 -13
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +0 -22
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxSectionHeader.d.ts +0 -2
- package/dist/design-system/DialogCombobox/DialogComboboxSectionHeader.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxSeparator.d.ts +0 -2
- package/dist/design-system/DialogCombobox/DialogComboboxSeparator.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts +0 -30
- package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/hooks/useDialogComboboxContext.d.ts +0 -2
- package/dist/design-system/DialogCombobox/hooks/useDialogComboboxContext.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/hooks/useDialogComboboxOptionListContext.d.ts +0 -2
- package/dist/design-system/DialogCombobox/hooks/useDialogComboboxOptionListContext.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/index.d.ts +0 -17
- package/dist/design-system/DialogCombobox/index.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/providers/DialogComboboxContext.d.ts +0 -25
- package/dist/design-system/DialogCombobox/providers/DialogComboboxContext.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/providers/DialogComboboxOptionListContext.d.ts +0 -12
- package/dist/design-system/DialogCombobox/providers/DialogComboboxOptionListContext.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/shared.d.ts +0 -20
- package/dist/design-system/DialogCombobox/shared.d.ts.map +0 -1
- package/dist/design-system/Drawer/Drawer.d.ts +0 -64
- package/dist/design-system/Drawer/Drawer.d.ts.map +0 -1
- package/dist/design-system/Drawer/index.d.ts +0 -2
- package/dist/design-system/Drawer/index.d.ts.map +0 -1
- package/dist/design-system/Dropdown/Dropdown.d.ts +0 -10
- package/dist/design-system/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/design-system/Dropdown/index.d.ts +0 -2
- package/dist/design-system/Dropdown/index.d.ts.map +0 -1
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +0 -58
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +0 -1
- package/dist/design-system/DropdownMenu/index.d.ts +0 -2
- package/dist/design-system/DropdownMenu/index.d.ts.map +0 -1
- package/dist/design-system/Empty/Empty.d.ts +0 -10
- package/dist/design-system/Empty/Empty.d.ts.map +0 -1
- package/dist/design-system/Empty/index.d.ts +0 -2
- package/dist/design-system/Empty/index.d.ts.map +0 -1
- package/dist/design-system/Form/Form.d.ts +0 -20
- package/dist/design-system/Form/Form.d.ts.map +0 -1
- package/dist/design-system/Form/index.d.ts +0 -2
- package/dist/design-system/Form/index.d.ts.map +0 -1
- package/dist/design-system/FormMessage/FormMessage.d.ts +0 -11
- package/dist/design-system/FormMessage/FormMessage.d.ts.map +0 -1
- package/dist/design-system/FormV2/RHFAdapters.d.ts +0 -136
- package/dist/design-system/FormV2/RHFAdapters.d.ts.map +0 -1
- package/dist/design-system/FormV2/index.d.ts +0 -15
- package/dist/design-system/FormV2/index.d.ts.map +0 -1
- package/dist/design-system/Grid/Col.d.ts +0 -7
- package/dist/design-system/Grid/Col.d.ts.map +0 -1
- package/dist/design-system/Grid/Row.d.ts +0 -8
- package/dist/design-system/Grid/Row.d.ts.map +0 -1
- package/dist/design-system/Grid/index.d.ts +0 -3
- package/dist/design-system/Grid/index.d.ts.map +0 -1
- package/dist/design-system/Header/Header.d.ts +0 -14
- package/dist/design-system/Header/Header.d.ts.map +0 -1
- package/dist/design-system/Header/index.d.ts +0 -2
- package/dist/design-system/Header/index.d.ts.map +0 -1
- package/dist/design-system/Hint/Hint.d.ts +0 -2
- package/dist/design-system/Hint/Hint.d.ts.map +0 -1
- package/dist/design-system/Hooks/index.d.ts +0 -5
- package/dist/design-system/Hooks/index.d.ts.map +0 -1
- package/dist/design-system/Hooks/useDesignSystemContext.d.ts +0 -3
- package/dist/design-system/Hooks/useDesignSystemContext.d.ts.map +0 -1
- package/dist/design-system/Hooks/useDesignSystemFlags.d.ts +0 -3
- package/dist/design-system/Hooks/useDesignSystemFlags.d.ts.map +0 -1
- package/dist/design-system/Hooks/useDesignSystemTheme.d.ts +0 -20
- package/dist/design-system/Hooks/useDesignSystemTheme.d.ts.map +0 -1
- package/dist/design-system/Hooks/useThemedStyles.d.ts +0 -29
- package/dist/design-system/Hooks/useThemedStyles.d.ts.map +0 -1
- package/dist/design-system/Icon/Icon.d.ts +0 -13
- package/dist/design-system/Icon/Icon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/AlignCenterIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/AlignCenterIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/AlignLeftIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/AlignLeftIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/AlignRightIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/AlignRightIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/AppIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/AppIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ArrowDownIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ArrowDownIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ArrowInIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ArrowInIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ArrowLeftIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ArrowLeftIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ArrowRightIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ArrowRightIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ArrowUpIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ArrowUpIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ArrowsUpDownIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ArrowsUpDownIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/AssistantIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/AssistantIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BadgeCodeIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BadgeCodeIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BadgeCodeOffIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BadgeCodeOffIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BarChartIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BarChartIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BarGroupedIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BarGroupedIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BarStackedIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BarStackedIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BarStackedPercentageIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BarStackedPercentageIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BeakerIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BeakerIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BinaryIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BinaryIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BoldIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BoldIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BookIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BookIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BookmarkFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BookmarkIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BooksIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BooksIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BracketsCurlyIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BracketsCurlyIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BracketsSquareIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BracketsSquareIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BranchIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BranchIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BriefcaseFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BriefcaseFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BriefcaseIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/BriefcaseIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CalendarClockIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CalendarClockIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CalendarEventIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CalendarEventIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CalendarIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CalendarIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CaretDownSquareIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CaretDownSquareIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CaretUpSquareIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CaretUpSquareIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CatalogCloudIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CatalogCloudIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CatalogIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CatalogIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CatalogOffIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CatalogOffIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ChartLineIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ChartLineIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleBadgeIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CheckCircleBadgeIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CheckCircleFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CheckCircleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CheckIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CheckIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CheckLineIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CheckLineIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CheckboxIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CheckboxIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ChecklistIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ChecklistIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleLeftIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleLeftIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleRightIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleRightIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleUpIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleUpIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDownIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ChevronDownIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ChevronLeftIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ChevronLeftIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ChevronRightIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ChevronRightIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ChevronUpIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ChevronUpIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CircleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CircleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ClipboardIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ClipboardIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ClockIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ClockIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ClockKeyIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ClockKeyIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CloseIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CloseIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CloudIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CloudIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CloudKeyIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CloudKeyIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CloudOffIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CloudOffIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CloudUploadIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CloudUploadIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CodeIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CodeIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ColorFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ColorFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ColumnIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ColumnIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ColumnsIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ColumnsIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ConnectIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ConnectIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CopyIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CopyIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CursorIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CursorIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CursorTypeIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/CursorTypeIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/DIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DagIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/DagIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DangerFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/DangerFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DangerIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/DangerIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DashIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/DashIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DashboardIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/DashboardIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DataIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/DataIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DatabaseIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/DatabaseIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DownloadIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/DownloadIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DragIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/DragIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ExpandLessIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ExpandLessIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ExpandMoreIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ExpandMoreIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FaceFrownIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FaceFrownIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FaceNeutralIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FaceNeutralIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FaceSmileIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FaceSmileIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FileCodeIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FileCodeIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FileDocumentIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FileDocumentIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FileIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FileIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FileImageIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FileImageIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FileModelIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FileModelIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FilterIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FilterIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FloatIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FloatIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FolderBranchIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FolderBranchIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FolderCloudFilledIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FolderCloudFilledIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FolderCloudIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FolderCloudIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FolderFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FolderFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FontIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FontIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ForkIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ForkIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FullscreenExitIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FullscreenExitIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FullscreenIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FullscreenIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FunctionIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/FunctionIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/GearFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/GearFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/GiftIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/GiftIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/GitCommitIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/GitCommitIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/GlobeIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/GlobeIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/GridDashIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/GridDashIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/GridIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/GridIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/H1Icon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/H1Icon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/H2Icon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/H2Icon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/H3Icon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/H3Icon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/HistoryIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/HistoryIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/HomeIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/HomeIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ImageIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ImageIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/IndentDecreaseIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/IndentDecreaseIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/IndentIncreaseIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/IndentIncreaseIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/InfinityIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/InfinityIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/InfoBookIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/InfoBookIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/InfoFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/InfoFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/InfoIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/InfoIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/IngestionIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/IngestionIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ItalicIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ItalicIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/KeyIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/KeyIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/KeyboardIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/KeyboardIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LayerGraphIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/LayerGraphIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LayerIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/LayerIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LettersIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/LettersIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LightningIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/LightningIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LinkIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/LinkIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LinkOffIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/LinkOffIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ListBorderIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ListBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ListIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ListIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LoadingIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/LoadingIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LockFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/LockFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LockIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/LockIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LockUnlockedIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/LockUnlockedIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/MIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/MIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/MailIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/MailIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/MegaphoneIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/MegaphoneIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/MenuIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/MenuIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/MinusBoxIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/MinusBoxIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/MinusCircleFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/MinusCircleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ModelsIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ModelsIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/NewWindowIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/NewWindowIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/NoIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/NoIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/NotebookIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/NotebookIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/NotificationIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/NotificationIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/NotificationOffIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/NotificationOffIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/OfficeIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/OfficeIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/OverflowIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/OverflowIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PageBottomIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PageBottomIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PageFirstIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PageFirstIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PageLastIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PageLastIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PageTopIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PageTopIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PauseIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PauseIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PencilIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PencilIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PinCancelIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PinCancelIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PinFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PinFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PinIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PinIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PipelineIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PipelineIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PlayCircleFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PlayCircleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlayIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PlayIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlugIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PlugIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PlusCircleFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PlusCircleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlusIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PlusIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlusSquareIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/PlusSquareIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/QueryIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/QueryIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/QuestionMarkFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/QuestionMarkIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkSpeechBubbleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/QuestionMarkSpeechBubbleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ReaderModeIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ReaderModeIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/RedoIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/RedoIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/RefreshIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/RefreshIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/RobotIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/RobotIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/RunningIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/RunningIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SaveIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SaveIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SchemaIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SchemaIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SearchIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SearchIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SecurityIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SecurityIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SendIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SendIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SidebarAutoIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SidebarAutoIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SidebarCollapseIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SidebarCollapseIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SidebarIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SidebarIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SlidersIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SlidersIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalAscendingIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalAscendingIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalDescendingIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalDescendingIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalLeftIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalLeftIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalRightIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalRightIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SortAscendingIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SortAscendingIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SortDescendingIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SortDescendingIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SortUnsortedIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SortUnsortedIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubblePlusIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SpeechBubblePlusIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleQuestionMarkIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleQuestionMarkIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleStarIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleStarIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StarFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/StarFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StarIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/StarIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StepIntoIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/StepIntoIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StepOverIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/StepOverIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StopCircleFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/StopCircleFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StopCircleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/StopCircleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StorefrontIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/StorefrontIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StreamIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/StreamIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SyncIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/SyncIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TableGlassesIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/TableGlassesIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TableIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/TableIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TableLightningIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/TableLightningIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TableOnlineViewIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/TableOnlineViewIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TableStreamIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/TableStreamIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TableVectorIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/TableVectorIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TableViewIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/TableViewIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TagIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/TagIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TargetIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/TargetIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TextBoxIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/TextBoxIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ThumbsDownIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ThumbsDownIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ThumbsUpIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ThumbsUpIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TrashIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/TrashIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TreeIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/TreeIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/UnderlineIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/UnderlineIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/UndoIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/UndoIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/UploadIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/UploadIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/UsbIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/UsbIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/UserBadgeIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/UserBadgeIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/UserCircleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/UserCircleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/UserGroupIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/UserGroupIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/UserIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/UserIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/VectorTableIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/VectorTableIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/VisibleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/VisibleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/VisibleOffIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/VisibleOffIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/WarningFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/WarningFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/WarningIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/WarningIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/WorkflowsIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/WorkflowsIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/WorkspacesIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/WorkspacesIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/XCircleFillIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/XCircleFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/XCircleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/XCircleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ZoomInIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ZoomInIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ZoomMarqueeSelection.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ZoomMarqueeSelection.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ZoomOutIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/ZoomOutIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/index.d.ts +0 -259
- package/dist/design-system/Icon/__generated/icons/index.d.ts.map +0 -1
- package/dist/design-system/Icon/iconMap.d.ts +0 -11
- package/dist/design-system/Icon/iconMap.d.ts.map +0 -1
- package/dist/design-system/Icon/index.d.ts +0 -4
- package/dist/design-system/Icon/index.d.ts.map +0 -1
- package/dist/design-system/Input/Group.d.ts +0 -3
- package/dist/design-system/Input/Group.d.ts.map +0 -1
- package/dist/design-system/Input/Input.d.ts +0 -19
- package/dist/design-system/Input/Input.d.ts.map +0 -1
- package/dist/design-system/Input/Password.d.ts +0 -4
- package/dist/design-system/Input/Password.d.ts.map +0 -1
- package/dist/design-system/Input/TextArea.d.ts +0 -5
- package/dist/design-system/Input/TextArea.d.ts.map +0 -1
- package/dist/design-system/Input/common.d.ts +0 -17
- package/dist/design-system/Input/common.d.ts.map +0 -1
- package/dist/design-system/Input/index.d.ts +0 -10
- package/dist/design-system/Input/index.d.ts.map +0 -1
- package/dist/design-system/Label/Label.d.ts +0 -8
- package/dist/design-system/Label/Label.d.ts.map +0 -1
- package/dist/design-system/Layout/Layout.d.ts +0 -18
- package/dist/design-system/Layout/Layout.d.ts.map +0 -1
- package/dist/design-system/Layout/index.d.ts +0 -2
- package/dist/design-system/Layout/index.d.ts.map +0 -1
- package/dist/design-system/LegacyNotification/LegacyNotification.d.ts +0 -42
- package/dist/design-system/LegacyNotification/LegacyNotification.d.ts.map +0 -1
- package/dist/design-system/LegacyNotification/index.d.ts +0 -2
- package/dist/design-system/LegacyNotification/index.d.ts.map +0 -1
- package/dist/design-system/LegacyPopover/LegacyPopover.d.ts +0 -16
- package/dist/design-system/LegacyPopover/LegacyPopover.d.ts.map +0 -1
- package/dist/design-system/LegacyPopover/index.d.ts +0 -2
- package/dist/design-system/LegacyPopover/index.d.ts.map +0 -1
- package/dist/design-system/LegacySelect/LegacySelect.d.ts +0 -66
- package/dist/design-system/LegacySelect/LegacySelect.d.ts.map +0 -1
- package/dist/design-system/LegacySelect/index.d.ts +0 -2
- package/dist/design-system/LegacySelect/index.d.ts.map +0 -1
- package/dist/design-system/LegacySkeleton/LegacySkeleton.d.ts +0 -17
- package/dist/design-system/LegacySkeleton/LegacySkeleton.d.ts.map +0 -1
- package/dist/design-system/LegacySkeleton/index.d.ts +0 -2
- package/dist/design-system/LegacySkeleton/index.d.ts.map +0 -1
- package/dist/design-system/LegacyTable/LegacyTable.d.ts +0 -52
- package/dist/design-system/LegacyTable/LegacyTable.d.ts.map +0 -1
- package/dist/design-system/LegacyTable/index.d.ts +0 -2
- package/dist/design-system/LegacyTable/index.d.ts.map +0 -1
- package/dist/design-system/List/List.d.ts +0 -8
- package/dist/design-system/List/List.d.ts.map +0 -1
- package/dist/design-system/LoadingState/LoadingState.d.ts +0 -45
- package/dist/design-system/LoadingState/LoadingState.d.ts.map +0 -1
- package/dist/design-system/LoadingState/index.d.ts +0 -2
- package/dist/design-system/LoadingState/index.d.ts.map +0 -1
- package/dist/design-system/Menu/Menu.d.ts +0 -19
- package/dist/design-system/Menu/Menu.d.ts.map +0 -1
- package/dist/design-system/Menu/index.d.ts +0 -2
- package/dist/design-system/Menu/index.d.ts.map +0 -1
- package/dist/design-system/Modal/Modal.d.ts +0 -59
- package/dist/design-system/Modal/Modal.d.ts.map +0 -1
- package/dist/design-system/Modal/index.d.ts +0 -2
- package/dist/design-system/Modal/index.d.ts.map +0 -1
- package/dist/design-system/Notification/Notification.d.ts +0 -24
- package/dist/design-system/Notification/Notification.d.ts.map +0 -1
- package/dist/design-system/Notification/index.d.ts +0 -2
- package/dist/design-system/Notification/index.d.ts.map +0 -1
- package/dist/design-system/Overflow/Overflow.d.ts +0 -9
- package/dist/design-system/Overflow/Overflow.d.ts.map +0 -1
- package/dist/design-system/Overflow/faker.d.ts +0 -5
- package/dist/design-system/Overflow/faker.d.ts.map +0 -1
- package/dist/design-system/Overflow/index.d.ts +0 -2
- package/dist/design-system/Overflow/index.d.ts.map +0 -1
- package/dist/design-system/PageWrapper/PageWrapper.d.ts +0 -6
- package/dist/design-system/PageWrapper/PageWrapper.d.ts.map +0 -1
- package/dist/design-system/PageWrapper/index.d.ts +0 -2
- package/dist/design-system/PageWrapper/index.d.ts.map +0 -1
- package/dist/design-system/Pagination/index.d.ts +0 -62
- package/dist/design-system/Pagination/index.d.ts.map +0 -1
- package/dist/design-system/Popover/InfoPopover.d.ts +0 -11
- package/dist/design-system/Popover/InfoPopover.d.ts.map +0 -1
- package/dist/design-system/Popover/Popover.d.ts +0 -12
- package/dist/design-system/Popover/Popover.d.ts.map +0 -1
- package/dist/design-system/Popover/index.d.ts +0 -3
- package/dist/design-system/Popover/index.d.ts.map +0 -1
- package/dist/design-system/Radio/Radio.d.ts +0 -29
- package/dist/design-system/Radio/Radio.d.ts.map +0 -1
- package/dist/design-system/Radio/index.d.ts +0 -2
- package/dist/design-system/Radio/index.d.ts.map +0 -1
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +0 -15
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +0 -1
- package/dist/design-system/SegmentedControl/index.d.ts +0 -2
- package/dist/design-system/SegmentedControl/index.d.ts.map +0 -1
- package/dist/design-system/Select/Select.d.ts +0 -11
- package/dist/design-system/Select/Select.d.ts.map +0 -1
- package/dist/design-system/Select/SelectContent.d.ts +0 -10
- package/dist/design-system/Select/SelectContent.d.ts.map +0 -1
- package/dist/design-system/Select/SelectOption.d.ts +0 -10
- package/dist/design-system/Select/SelectOption.d.ts.map +0 -1
- package/dist/design-system/Select/SelectOptionGroup.d.ts +0 -11
- package/dist/design-system/Select/SelectOptionGroup.d.ts.map +0 -1
- package/dist/design-system/Select/SelectTrigger.d.ts +0 -10
- package/dist/design-system/Select/SelectTrigger.d.ts.map +0 -1
- package/dist/design-system/Select/SimpleSelect.d.ts +0 -34
- package/dist/design-system/Select/SimpleSelect.d.ts.map +0 -1
- package/dist/design-system/Select/hooks/useSelectContext.d.ts +0 -2
- package/dist/design-system/Select/hooks/useSelectContext.d.ts.map +0 -1
- package/dist/design-system/Select/index.d.ts +0 -7
- package/dist/design-system/Select/index.d.ts.map +0 -1
- package/dist/design-system/Select/providers/SelectContext.d.ts +0 -11
- package/dist/design-system/Select/providers/SelectContext.d.ts.map +0 -1
- package/dist/design-system/Sidebar/Sidebar.d.ts +0 -117
- package/dist/design-system/Sidebar/Sidebar.d.ts.map +0 -1
- package/dist/design-system/Sidebar/index.d.ts +0 -2
- package/dist/design-system/Sidebar/index.d.ts.map +0 -1
- package/dist/design-system/Skeleton/GenericSkeleton.d.ts +0 -15
- package/dist/design-system/Skeleton/GenericSkeleton.d.ts.map +0 -1
- package/dist/design-system/Skeleton/ParagraphSkeleton.d.ts +0 -18
- package/dist/design-system/Skeleton/ParagraphSkeleton.d.ts.map +0 -1
- package/dist/design-system/Skeleton/TableSkeleton.d.ts +0 -30
- package/dist/design-system/Skeleton/TableSkeleton.d.ts.map +0 -1
- package/dist/design-system/Skeleton/TitleSkeleton.d.ts +0 -15
- package/dist/design-system/Skeleton/TitleSkeleton.d.ts.map +0 -1
- package/dist/design-system/Skeleton/index.d.ts +0 -5
- package/dist/design-system/Skeleton/index.d.ts.map +0 -1
- package/dist/design-system/Skeleton/utils.d.ts +0 -7
- package/dist/design-system/Skeleton/utils.d.ts.map +0 -1
- package/dist/design-system/Space/Space.d.ts +0 -7
- package/dist/design-system/Space/Space.d.ts.map +0 -1
- package/dist/design-system/Space/index.d.ts +0 -2
- package/dist/design-system/Space/index.d.ts.map +0 -1
- package/dist/design-system/Spacer/Spacer.d.ts +0 -11
- package/dist/design-system/Spacer/Spacer.d.ts.map +0 -1
- package/dist/design-system/Spacer/index.d.ts +0 -2
- package/dist/design-system/Spacer/index.d.ts.map +0 -1
- package/dist/design-system/Spinner/Spinner.d.ts +0 -14
- package/dist/design-system/Spinner/Spinner.d.ts.map +0 -1
- package/dist/design-system/Spinner/index.d.ts +0 -2
- package/dist/design-system/Spinner/index.d.ts.map +0 -1
- package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts +0 -70
- package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +0 -1
- package/dist/design-system/SplitButton/Dropdown/index.d.ts +0 -2
- package/dist/design-system/SplitButton/Dropdown/index.d.ts.map +0 -1
- package/dist/design-system/SplitButton/SplitButton.d.ts +0 -27
- package/dist/design-system/SplitButton/SplitButton.d.ts.map +0 -1
- package/dist/design-system/SplitButton/index.d.ts +0 -2
- package/dist/design-system/SplitButton/index.d.ts.map +0 -1
- package/dist/design-system/Steps/Steps.d.ts +0 -11
- package/dist/design-system/Steps/Steps.d.ts.map +0 -1
- package/dist/design-system/Steps/index.d.ts +0 -2
- package/dist/design-system/Steps/index.d.ts.map +0 -1
- package/dist/design-system/Switch/Switch.d.ts +0 -18
- package/dist/design-system/Switch/Switch.d.ts.map +0 -1
- package/dist/design-system/Switch/index.d.ts +0 -2
- package/dist/design-system/Switch/index.d.ts.map +0 -1
- package/dist/design-system/TableUI/Table.d.ts +0 -29
- package/dist/design-system/TableUI/Table.d.ts.map +0 -1
- package/dist/design-system/TableUI/TableCell.d.ts +0 -22
- package/dist/design-system/TableUI/TableCell.d.ts.map +0 -1
- package/dist/design-system/TableUI/TableFilterInput.d.ts +0 -14
- package/dist/design-system/TableUI/TableFilterInput.d.ts.map +0 -1
- package/dist/design-system/TableUI/TableFilterLayout.d.ts +0 -15
- package/dist/design-system/TableUI/TableFilterLayout.d.ts.map +0 -1
- package/dist/design-system/TableUI/TableHeader.d.ts +0 -34
- package/dist/design-system/TableUI/TableHeader.d.ts.map +0 -1
- package/dist/design-system/TableUI/TableRow.d.ts +0 -20
- package/dist/design-system/TableUI/TableRow.d.ts.map +0 -1
- package/dist/design-system/TableUI/TableRowAction.d.ts +0 -15
- package/dist/design-system/TableUI/TableRowAction.d.ts.map +0 -1
- package/dist/design-system/TableUI/TableRowActionHeader.d.ts +0 -5
- package/dist/design-system/TableUI/TableRowActionHeader.d.ts.map +0 -1
- package/dist/design-system/TableUI/TableRowSelectCell.d.ts +0 -18
- package/dist/design-system/TableUI/TableRowSelectCell.d.ts.map +0 -1
- package/dist/design-system/TableUI/index.d.ts +0 -10
- package/dist/design-system/TableUI/index.d.ts.map +0 -1
- package/dist/design-system/TableUI/tableStyles.d.ts +0 -23
- package/dist/design-system/TableUI/tableStyles.d.ts.map +0 -1
- package/dist/design-system/Tabs/index.d.ts +0 -68
- package/dist/design-system/Tabs/index.d.ts.map +0 -1
- package/dist/design-system/Tag/index.d.ts +0 -28
- package/dist/design-system/Tag/index.d.ts.map +0 -1
- package/dist/design-system/ToggleButton/ToggleButton.d.ts +0 -4
- package/dist/design-system/ToggleButton/ToggleButton.d.ts.map +0 -1
- package/dist/design-system/ToggleButton/index.d.ts +0 -2
- package/dist/design-system/ToggleButton/index.d.ts.map +0 -1
- package/dist/design-system/Tooltip/InfoTooltip.d.ts +0 -10
- package/dist/design-system/Tooltip/InfoTooltip.d.ts.map +0 -1
- package/dist/design-system/Tooltip/Tooltip.d.ts +0 -46
- package/dist/design-system/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/design-system/Tooltip/index.d.ts +0 -3
- package/dist/design-system/Tooltip/index.d.ts.map +0 -1
- package/dist/design-system/Tree/Tree.d.ts +0 -71
- package/dist/design-system/Tree/Tree.d.ts.map +0 -1
- package/dist/design-system/Tree/index.d.ts +0 -2
- package/dist/design-system/Tree/index.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/CountBadge.d.ts +0 -7
- package/dist/design-system/TypeaheadCombobox/CountBadge.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxAddButton.d.ts +0 -3
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxAddButton.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxCheckboxItem.d.ts +0 -11
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxCheckboxItem.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxControls.d.ts +0 -12
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxControls.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxFooter.d.ts +0 -17
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxFooter.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxInput.d.ts +0 -11
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxInput.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenu.d.ts +0 -19
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenu.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenuItem.d.ts +0 -20
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenuItem.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMultiSelectInput.d.ts +0 -16
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMultiSelectInput.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxRoot.d.ts +0 -13
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxRoot.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSectionHeader.d.ts +0 -2
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSectionHeader.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSelectedItem.d.ts +0 -13
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSelectedItem.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSeparator.d.ts +0 -2
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSeparator.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxToggleButton.d.ts +0 -12
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxToggleButton.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts +0 -32
- package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/hooks/index.d.ts +0 -3
- package/dist/design-system/TypeaheadCombobox/hooks/index.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/hooks/useTypeaheadComboboxContext.d.ts +0 -2
- package/dist/design-system/TypeaheadCombobox/hooks/useTypeaheadComboboxContext.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/index.d.ts +0 -14
- package/dist/design-system/TypeaheadCombobox/index.d.ts.map +0 -1
- package/dist/design-system/TypeaheadCombobox/providers/TypeaheadComboboxContext.d.ts +0 -16
- package/dist/design-system/TypeaheadCombobox/providers/TypeaheadComboboxContext.d.ts.map +0 -1
- package/dist/design-system/Typography/Hint.d.ts +0 -14
- package/dist/design-system/Typography/Hint.d.ts.map +0 -1
- package/dist/design-system/Typography/Link.d.ts +0 -15
- package/dist/design-system/Typography/Link.d.ts.map +0 -1
- package/dist/design-system/Typography/Paragraph.d.ts +0 -12
- package/dist/design-system/Typography/Paragraph.d.ts.map +0 -1
- package/dist/design-system/Typography/Text.d.ts +0 -18
- package/dist/design-system/Typography/Text.d.ts.map +0 -1
- package/dist/design-system/Typography/Title.d.ts +0 -12
- package/dist/design-system/Typography/Title.d.ts.map +0 -1
- package/dist/design-system/Typography/Typography.d.ts +0 -21
- package/dist/design-system/Typography/Typography.d.ts.map +0 -1
- package/dist/design-system/Typography/index.d.ts +0 -7
- package/dist/design-system/Typography/index.d.ts.map +0 -1
- package/dist/design-system/Wizard/Wizard.d.ts +0 -94
- package/dist/design-system/Wizard/Wizard.d.ts.map +0 -1
- package/dist/design-system/Wizard/WizardFooter.d.ts +0 -16
- package/dist/design-system/Wizard/WizardFooter.d.ts.map +0 -1
- package/dist/design-system/Wizard/WizardModal.d.ts +0 -7
- package/dist/design-system/Wizard/WizardModal.d.ts.map +0 -1
- package/dist/design-system/Wizard/WizardStep.d.ts +0 -71
- package/dist/design-system/Wizard/WizardStep.d.ts.map +0 -1
- package/dist/design-system/Wizard/WizardStepsContent.d.ts +0 -11
- package/dist/design-system/Wizard/WizardStepsContent.d.ts.map +0 -1
- package/dist/design-system/Wizard/index.d.ts +0 -5
- package/dist/design-system/Wizard/index.d.ts.map +0 -1
- package/dist/design-system/Wizard/useWizardCurrentStep.d.ts +0 -20
- package/dist/design-system/Wizard/useWizardCurrentStep.d.ts.map +0 -1
- package/dist/design-system/_shared_/Combobox/ClearSelectionButton.d.ts +0 -5
- package/dist/design-system/_shared_/Combobox/ClearSelectionButton.d.ts.map +0 -1
- package/dist/design-system/_shared_/Combobox/EmptyResults.d.ts +0 -6
- package/dist/design-system/_shared_/Combobox/EmptyResults.d.ts.map +0 -1
- package/dist/design-system/_shared_/Combobox/HintRow.d.ts +0 -8
- package/dist/design-system/_shared_/Combobox/HintRow.d.ts.map +0 -1
- package/dist/design-system/_shared_/Combobox/LoadingSpinner.d.ts +0 -2
- package/dist/design-system/_shared_/Combobox/LoadingSpinner.d.ts.map +0 -1
- package/dist/design-system/_shared_/Combobox/SectionHeader.d.ts +0 -2
- package/dist/design-system/_shared_/Combobox/SectionHeader.d.ts.map +0 -1
- package/dist/design-system/_shared_/Combobox/Separator.d.ts +0 -2
- package/dist/design-system/_shared_/Combobox/Separator.d.ts.map +0 -1
- package/dist/design-system/_shared_/Combobox/index.d.ts +0 -8
- package/dist/design-system/_shared_/Combobox/index.d.ts.map +0 -1
- package/dist/design-system/_shared_/Combobox/styles.d.ts +0 -26
- package/dist/design-system/_shared_/Combobox/styles.d.ts.map +0 -1
- package/dist/design-system/_shared_/Menu/index.d.ts +0 -5
- package/dist/design-system/_shared_/Menu/index.d.ts.map +0 -1
- package/dist/design-system/_shared_/index.d.ts +0 -2
- package/dist/design-system/_shared_/index.d.ts.map +0 -1
- package/dist/design-system/constants.d.ts +0 -3
- package/dist/design-system/constants.d.ts.map +0 -1
- package/dist/design-system/index.d.ts +0 -62
- package/dist/design-system/index.d.ts.map +0 -1
- package/dist/design-system/types.d.ts +0 -49
- package/dist/design-system/types.d.ts.map +0 -1
- package/dist/design-system/utils/accessibility.d.ts +0 -9
- package/dist/design-system/utils/accessibility.d.ts.map +0 -1
- package/dist/design-system/utils/css-utils.d.ts +0 -38
- package/dist/design-system/utils/css-utils.d.ts.map +0 -1
- package/dist/design-system/utils/debug.d.ts +0 -8
- package/dist/design-system/utils/debug.d.ts.map +0 -1
- package/dist/design-system/utils/index.d.ts +0 -4
- package/dist/design-system/utils/index.d.ts.map +0 -1
- package/dist/design-system/utils/safex.d.ts +0 -16
- package/dist/design-system/utils/safex.d.ts.map +0 -1
- package/dist/design-system/utils/useCallbackOnceUntilReset.d.ts +0 -20
- package/dist/design-system/utils/useCallbackOnceUntilReset.d.ts.map +0 -1
- package/dist/design-system/utils/useIsomorphicLayoutEffect.d.ts +0 -16
- package/dist/design-system/utils/useIsomorphicLayoutEffect.d.ts.map +0 -1
- package/dist/design-system/utils/useMediaQuery.d.ts +0 -31
- package/dist/design-system/utils/useMediaQuery.d.ts.map +0 -1
- package/dist/design-system/utils/useNotifyOnFirstView.d.ts +0 -15
- package/dist/design-system/utils/useNotifyOnFirstView.d.ts.map +0 -1
- package/dist/design-system/utils/useStableUid.d.ts +0 -2
- package/dist/design-system/utils/useStableUid.d.ts.map +0 -1
- package/dist/design-system/utils/useUniqueId.d.ts +0 -2
- package/dist/design-system/utils/useUniqueId.d.ts.map +0 -1
- package/dist/development/Banner/Banner.d.ts +0 -19
- package/dist/development/Banner/Banner.d.ts.map +0 -1
- package/dist/development/Banner/index.d.ts +0 -2
- package/dist/development/Banner/index.d.ts.map +0 -1
- package/dist/development/ChatUI/ChatInput.d.ts +0 -11
- package/dist/development/ChatUI/ChatInput.d.ts.map +0 -1
- package/dist/development/ChatUI/CodeSnippet.d.ts +0 -9
- package/dist/development/ChatUI/CodeSnippet.d.ts.map +0 -1
- package/dist/development/ChatUI/Feedback.d.ts +0 -6
- package/dist/development/ChatUI/Feedback.d.ts.map +0 -1
- package/dist/development/ChatUI/Message.d.ts +0 -8
- package/dist/development/ChatUI/Message.d.ts.map +0 -1
- package/dist/development/ChatUI/MessageActionButton.d.ts +0 -4
- package/dist/development/ChatUI/MessageActionButton.d.ts.map +0 -1
- package/dist/development/ChatUI/MessageBody.d.ts +0 -7
- package/dist/development/ChatUI/MessageBody.d.ts.map +0 -1
- package/dist/development/ChatUI/MessageHeader.d.ts +0 -11
- package/dist/development/ChatUI/MessageHeader.d.ts.map +0 -1
- package/dist/development/ChatUI/MessagePagination.d.ts +0 -9
- package/dist/development/ChatUI/MessagePagination.d.ts.map +0 -1
- package/dist/development/ChatUI/index.d.ts +0 -39
- package/dist/development/ChatUI/index.d.ts.map +0 -1
- package/dist/development/PillControl/PillControl.d.ts +0 -13
- package/dist/development/PillControl/PillControl.d.ts.map +0 -1
- package/dist/development/PillControl/index.d.ts +0 -2
- package/dist/development/PillControl/index.d.ts.map +0 -1
- package/dist/development/PreviewCard/PreviewCard.d.ts +0 -14
- package/dist/development/PreviewCard/PreviewCard.d.ts.map +0 -1
- package/dist/development/PreviewCard/index.d.ts +0 -2
- package/dist/development/PreviewCard/index.d.ts.map +0 -1
- package/dist/development/Progress/Progress.d.ts +0 -10
- package/dist/development/Progress/Progress.d.ts.map +0 -1
- package/dist/development/Progress/hooks/useProgressContext.d.ts +0 -2
- package/dist/development/Progress/hooks/useProgressContext.d.ts.map +0 -1
- package/dist/development/Progress/index.d.ts +0 -2
- package/dist/development/Progress/index.d.ts.map +0 -1
- package/dist/development/Progress/providers/ProgressContex.d.ts +0 -10
- package/dist/development/Progress/providers/ProgressContex.d.ts.map +0 -1
- package/dist/development/Slider/Slider.d.ts +0 -11
- package/dist/development/Slider/Slider.d.ts.map +0 -1
- package/dist/development/Slider/index.d.ts +0 -2
- package/dist/development/Slider/index.d.ts.map +0 -1
- package/dist/development/Stepper/Stepper.d.ts +0 -62
- package/dist/development/Stepper/Stepper.d.ts.map +0 -1
- package/dist/development/Stepper/index.d.ts +0 -2
- package/dist/development/Stepper/index.d.ts.map +0 -1
- package/dist/development/Toolbar/Toolbar.d.ts +0 -15
- package/dist/development/Toolbar/Toolbar.d.ts.map +0 -1
- package/dist/development/Toolbar/index.d.ts +0 -2
- package/dist/development/Toolbar/index.d.ts.map +0 -1
- package/dist/development/index.d.ts +0 -8
- package/dist/development/index.d.ts.map +0 -1
- package/dist/flags.d.ts +0 -14
- package/dist/flags.d.ts.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/rollup/less.d.ts +0 -2
- package/dist/rollup/less.d.ts.map +0 -1
- package/dist/test-utils/common.d.ts +0 -40
- package/dist/test-utils/common.d.ts.map +0 -1
- package/dist/test-utils/enzyme/index.d.ts +0 -10
- package/dist/test-utils/enzyme/index.d.ts.map +0 -1
- package/dist/test-utils/enzyme/selectEvent.d.ts +0 -53
- package/dist/test-utils/enzyme/selectEvent.d.ts.map +0 -1
- package/dist/test-utils/enzyme/table.d.ts +0 -95
- package/dist/test-utils/enzyme/table.d.ts.map +0 -1
- package/dist/test-utils/enzyme/utils.d.ts +0 -45
- package/dist/test-utils/enzyme/utils.d.ts.map +0 -1
- package/dist/test-utils/rtl/index.d.ts +0 -9
- package/dist/test-utils/rtl/index.d.ts.map +0 -1
- package/dist/test-utils/rtl/selectEvent.d.ts +0 -52
- package/dist/test-utils/rtl/selectEvent.d.ts.map +0 -1
- package/dist/test-utils/rtl/table.d.ts +0 -98
- package/dist/test-utils/rtl/table.d.ts.map +0 -1
- package/dist/test-utils/types.d.ts +0 -2
- package/dist/test-utils/types.d.ts.map +0 -1
- package/dist/theme/_generated/PrimitiveColors.d.ts +0 -3
- package/dist/theme/_generated/PrimitiveColors.d.ts.map +0 -1
- package/dist/theme/_generated/SemanticColors-Dark.d.ts +0 -3
- package/dist/theme/_generated/SemanticColors-Dark.d.ts.map +0 -1
- package/dist/theme/_generated/SemanticColors-Light.d.ts +0 -3
- package/dist/theme/_generated/SemanticColors-Light.d.ts.map +0 -1
- package/dist/theme/_generated/ValidPrimitiveColors.d.ts +0 -56
- package/dist/theme/_generated/ValidPrimitiveColors.d.ts.map +0 -1
- package/dist/theme/_generated/ValidSemanticColors.d.ts +0 -100
- package/dist/theme/_generated/ValidSemanticColors.d.ts.map +0 -1
- package/dist/theme/borders.d.ts +0 -8
- package/dist/theme/borders.d.ts.map +0 -1
- package/dist/theme/breakpoints.d.ts +0 -14
- package/dist/theme/breakpoints.d.ts.map +0 -1
- package/dist/theme/colors.d.ts +0 -90
- package/dist/theme/colors.d.ts.map +0 -1
- package/dist/theme/convertToLessVars.d.ts +0 -18
- package/dist/theme/convertToLessVars.d.ts.map +0 -1
- package/dist/theme/generalVariables.d.ts +0 -23
- package/dist/theme/generalVariables.d.ts.map +0 -1
- package/dist/theme/index.d.ts +0 -23
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/spacing.d.ts +0 -48
- package/dist/theme/spacing.d.ts.map +0 -1
- package/dist/theme/typography.d.ts +0 -34
- package/dist/theme/typography.d.ts.map +0 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import React__default, {
|
|
2
|
-
import { jsx,
|
|
1
|
+
import React__default, { createContext, useContext, useMemo, useEffect, useState, forwardRef, useRef, useLayoutEffect, useCallback, useImperativeHandle } from 'react';
|
|
2
|
+
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
3
3
|
import { useTheme, ThemeProvider, css, keyframes } from '@emotion/react';
|
|
4
|
-
import { notification, ConfigProvider,
|
|
4
|
+
import { notification, ConfigProvider, Button as Button$1, Typography as Typography$1 } from 'antd';
|
|
5
|
+
import * as Popover$1 from '@radix-ui/react-popover';
|
|
6
|
+
import { TooltipProvider } from '@radix-ui/react-tooltip';
|
|
5
7
|
import AntDIcon from '@ant-design/icons';
|
|
6
8
|
import _isNil from 'lodash/isNil';
|
|
7
9
|
import _endsWith from 'lodash/endsWith';
|
|
@@ -11,6 +13,7 @@ import _isString from 'lodash/isString';
|
|
|
11
13
|
import _mapValues from 'lodash/mapValues';
|
|
12
14
|
import _memoize from 'lodash/memoize';
|
|
13
15
|
import unitless from '@emotion/unitless';
|
|
16
|
+
import _uniqueId from 'lodash/uniqueId';
|
|
14
17
|
|
|
15
18
|
/**
|
|
16
19
|
* Used to hide text visually, but still be readable by screen-readers
|
|
@@ -83,7 +86,6 @@ const spacing = {
|
|
|
83
86
|
switchMinWidth: 28,
|
|
84
87
|
switchPinSize: 14
|
|
85
88
|
});
|
|
86
|
-
var spacing$1 = spacing;
|
|
87
89
|
|
|
88
90
|
// eslint-disable-next-line import/no-anonymous-default-export
|
|
89
91
|
var antdVars = {
|
|
@@ -104,19 +106,31 @@ const antdGeneralVariables = {
|
|
|
104
106
|
iconFontSize: 16,
|
|
105
107
|
buttonHeight: heightBase,
|
|
106
108
|
// Height available within button (for label and icon). Same for middle and small buttons.
|
|
107
|
-
buttonInnerHeight: heightBase - spacing
|
|
109
|
+
buttonInnerHeight: heightBase - spacing.sm * 2 - borderWidth * 2
|
|
108
110
|
};
|
|
109
111
|
const shadowLightRgb = '31, 39, 45';
|
|
110
112
|
const shadowDarkRgb = '0, 0, 0';
|
|
111
113
|
const getShadowVariables = isDarkMode => {
|
|
112
114
|
if (isDarkMode) {
|
|
113
115
|
return {
|
|
116
|
+
/**
|
|
117
|
+
* @deprecated Use new shadow variables under theme.shadows.*, check out go/dubois-elevation-doc decision doc for guidance on choosing the new shadow variable
|
|
118
|
+
*/
|
|
114
119
|
shadowLow: `0px 4px 16px rgba(${shadowDarkRgb}, 0.12)`,
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated Use new shadow variables under theme.shadows.*, check out go/dubois-elevation-doc decision doc for guidance on choosing the new shadow variable
|
|
122
|
+
*/
|
|
115
123
|
shadowHigh: `0px 8px 24px rgba(${shadowDarkRgb}, 0.2);`
|
|
116
124
|
};
|
|
117
125
|
} else {
|
|
118
126
|
return {
|
|
127
|
+
/**
|
|
128
|
+
* @deprecated Use new shadow variables under theme.shadows.*, check out go/dubois-elevation-doc decision doc for guidance on choosing the new shadow variable
|
|
129
|
+
*/
|
|
119
130
|
shadowLow: `0px 4px 16px rgba(${shadowLightRgb}, 0.12)`,
|
|
131
|
+
/**
|
|
132
|
+
* @deprecated Use new shadow variables under theme.shadows.*, check out go/dubois-elevation-doc decision doc for guidance on choosing the new shadow variable
|
|
133
|
+
*/
|
|
120
134
|
shadowHigh: `0px 8px 24px rgba(${shadowLightRgb}, 0.2)`
|
|
121
135
|
};
|
|
122
136
|
}
|
|
@@ -124,402 +138,40 @@ const getShadowVariables = isDarkMode => {
|
|
|
124
138
|
|
|
125
139
|
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
126
140
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
ValidSemanticColors["ActionDangerDefaultBorderPress"] = "actionDangerDefaultBorderPress";
|
|
134
|
-
ValidSemanticColors["ActionDangerDefaultTextDefault"] = "actionDangerDefaultTextDefault";
|
|
135
|
-
ValidSemanticColors["ActionDangerDefaultTextHover"] = "actionDangerDefaultTextHover";
|
|
136
|
-
ValidSemanticColors["ActionDangerDefaultTextPress"] = "actionDangerDefaultTextPress";
|
|
137
|
-
ValidSemanticColors["ActionDangerPrimaryBackgroundDefault"] = "actionDangerPrimaryBackgroundDefault";
|
|
138
|
-
ValidSemanticColors["ActionDangerPrimaryBackgroundHover"] = "actionDangerPrimaryBackgroundHover";
|
|
139
|
-
ValidSemanticColors["ActionDangerPrimaryBackgroundPress"] = "actionDangerPrimaryBackgroundPress";
|
|
140
|
-
ValidSemanticColors["ActionDangerPrimaryText"] = "actionDangerPrimaryText";
|
|
141
|
-
ValidSemanticColors["ActionDefaultBackgroundDefault"] = "actionDefaultBackgroundDefault";
|
|
142
|
-
ValidSemanticColors["ActionDefaultBackgroundHover"] = "actionDefaultBackgroundHover";
|
|
143
|
-
ValidSemanticColors["ActionDefaultBackgroundPress"] = "actionDefaultBackgroundPress";
|
|
144
|
-
ValidSemanticColors["ActionDefaultBorderDefault"] = "actionDefaultBorderDefault";
|
|
145
|
-
ValidSemanticColors["ActionDefaultBorderFocus"] = "actionDefaultBorderFocus";
|
|
146
|
-
ValidSemanticColors["ActionDefaultBorderHover"] = "actionDefaultBorderHover";
|
|
147
|
-
ValidSemanticColors["ActionDefaultBorderPress"] = "actionDefaultBorderPress";
|
|
148
|
-
ValidSemanticColors["ActionDefaultIconDefault"] = "actionDefaultIconDefault";
|
|
149
|
-
ValidSemanticColors["ActionDefaultIconHover"] = "actionDefaultIconHover";
|
|
150
|
-
ValidSemanticColors["ActionDefaultIconPress"] = "actionDefaultIconPress";
|
|
151
|
-
ValidSemanticColors["ActionDefaultTextDefault"] = "actionDefaultTextDefault";
|
|
152
|
-
ValidSemanticColors["ActionDefaultTextHover"] = "actionDefaultTextHover";
|
|
153
|
-
ValidSemanticColors["ActionDefaultTextPress"] = "actionDefaultTextPress";
|
|
154
|
-
ValidSemanticColors["ActionDisabledBackground"] = "actionDisabledBackground";
|
|
155
|
-
ValidSemanticColors["ActionDisabledBorder"] = "actionDisabledBorder";
|
|
156
|
-
ValidSemanticColors["ActionDisabledText"] = "actionDisabledText";
|
|
157
|
-
ValidSemanticColors["ActionIconBackgroundDefault"] = "actionIconBackgroundDefault";
|
|
158
|
-
ValidSemanticColors["ActionIconBackgroundHover"] = "actionIconBackgroundHover";
|
|
159
|
-
ValidSemanticColors["ActionIconBackgroundPress"] = "actionIconBackgroundPress";
|
|
160
|
-
ValidSemanticColors["ActionIconIconDefault"] = "actionIconIconDefault";
|
|
161
|
-
ValidSemanticColors["ActionIconIconHover"] = "actionIconIconHover";
|
|
162
|
-
ValidSemanticColors["ActionIconIconPress"] = "actionIconIconPress";
|
|
163
|
-
ValidSemanticColors["ActionLinkDefault"] = "actionLinkDefault";
|
|
164
|
-
ValidSemanticColors["ActionLinkHover"] = "actionLinkHover";
|
|
165
|
-
ValidSemanticColors["ActionLinkPress"] = "actionLinkPress";
|
|
166
|
-
ValidSemanticColors["ActionPrimaryBackgroundDefault"] = "actionPrimaryBackgroundDefault";
|
|
167
|
-
ValidSemanticColors["ActionPrimaryBackgroundHover"] = "actionPrimaryBackgroundHover";
|
|
168
|
-
ValidSemanticColors["ActionPrimaryBackgroundPress"] = "actionPrimaryBackgroundPress";
|
|
169
|
-
ValidSemanticColors["ActionPrimaryIcon"] = "actionPrimaryIcon";
|
|
170
|
-
ValidSemanticColors["ActionPrimaryTextDefault"] = "actionPrimaryTextDefault";
|
|
171
|
-
ValidSemanticColors["ActionPrimaryTextHover"] = "actionPrimaryTextHover";
|
|
172
|
-
ValidSemanticColors["ActionPrimaryTextPress"] = "actionPrimaryTextPress";
|
|
173
|
-
ValidSemanticColors["ActionTertiaryBackgroundDefault"] = "actionTertiaryBackgroundDefault";
|
|
174
|
-
ValidSemanticColors["ActionTertiaryBackgroundHover"] = "actionTertiaryBackgroundHover";
|
|
175
|
-
ValidSemanticColors["ActionTertiaryBackgroundPress"] = "actionTertiaryBackgroundPress";
|
|
176
|
-
ValidSemanticColors["ActionTertiaryIconDefault"] = "actionTertiaryIconDefault";
|
|
177
|
-
ValidSemanticColors["ActionTertiaryIconHover"] = "actionTertiaryIconHover";
|
|
178
|
-
ValidSemanticColors["ActionTertiaryIconPress"] = "actionTertiaryIconPress";
|
|
179
|
-
ValidSemanticColors["ActionTertiaryTextDefault"] = "actionTertiaryTextDefault";
|
|
180
|
-
ValidSemanticColors["ActionTertiaryTextHover"] = "actionTertiaryTextHover";
|
|
181
|
-
ValidSemanticColors["ActionTertiaryTextPress"] = "actionTertiaryTextPress";
|
|
182
|
-
ValidSemanticColors["BackgroundDanger"] = "backgroundDanger";
|
|
183
|
-
ValidSemanticColors["BackgroundPrimary"] = "backgroundPrimary";
|
|
184
|
-
ValidSemanticColors["BackgroundSecondary"] = "backgroundSecondary";
|
|
185
|
-
ValidSemanticColors["BackgroundSuccess"] = "backgroundSuccess";
|
|
186
|
-
ValidSemanticColors["BackgroundWarning"] = "backgroundWarning";
|
|
187
|
-
ValidSemanticColors["Border"] = "border";
|
|
188
|
-
ValidSemanticColors["BorderAccessible"] = "borderAccessible";
|
|
189
|
-
ValidSemanticColors["BorderDanger"] = "borderDanger";
|
|
190
|
-
ValidSemanticColors["BorderWarning"] = "borderWarning";
|
|
191
|
-
ValidSemanticColors["CodeBackground"] = "codeBackground";
|
|
192
|
-
ValidSemanticColors["OverlayOverlay"] = "overlayOverlay";
|
|
193
|
-
ValidSemanticColors["ProgressFill"] = "progressFill";
|
|
194
|
-
ValidSemanticColors["ProgressTrack"] = "progressTrack";
|
|
195
|
-
ValidSemanticColors["Skeleton"] = "skeleton";
|
|
196
|
-
ValidSemanticColors["TableBackgroundSelectedDefault"] = "tableBackgroundSelectedDefault";
|
|
197
|
-
ValidSemanticColors["TableBackgroundSelectedHover"] = "tableBackgroundSelectedHover";
|
|
198
|
-
ValidSemanticColors["TableBackgroundUnselectedDefault"] = "tableBackgroundUnselectedDefault";
|
|
199
|
-
ValidSemanticColors["TableBackgroundUnselectedHover"] = "tableBackgroundUnselectedHover";
|
|
200
|
-
ValidSemanticColors["TagBrown"] = "tagBrown";
|
|
201
|
-
ValidSemanticColors["TagCharcoal"] = "tagCharcoal";
|
|
202
|
-
ValidSemanticColors["TagCoral"] = "tagCoral";
|
|
203
|
-
ValidSemanticColors["TagDefault"] = "tagDefault";
|
|
204
|
-
ValidSemanticColors["TagHover"] = "tagHover";
|
|
205
|
-
ValidSemanticColors["TagIconDefault"] = "tagIconDefault";
|
|
206
|
-
ValidSemanticColors["TagIconHover"] = "tagIconHover";
|
|
207
|
-
ValidSemanticColors["TagIconPress"] = "tagIconPress";
|
|
208
|
-
ValidSemanticColors["TagIndigo"] = "tagIndigo";
|
|
209
|
-
ValidSemanticColors["TagInverse"] = "tagInverse";
|
|
210
|
-
ValidSemanticColors["TagLemon"] = "tagLemon";
|
|
211
|
-
ValidSemanticColors["TagLime"] = "tagLime";
|
|
212
|
-
ValidSemanticColors["TagPink"] = "tagPink";
|
|
213
|
-
ValidSemanticColors["TagPress"] = "tagPress";
|
|
214
|
-
ValidSemanticColors["TagPurple"] = "tagPurple";
|
|
215
|
-
ValidSemanticColors["TagTeal"] = "tagTeal";
|
|
216
|
-
ValidSemanticColors["TagText"] = "tagText";
|
|
217
|
-
ValidSemanticColors["TagTurquoise"] = "tagTurquoise";
|
|
218
|
-
ValidSemanticColors["TextPlaceholder"] = "textPlaceholder";
|
|
219
|
-
ValidSemanticColors["TextPrimary"] = "textPrimary";
|
|
220
|
-
ValidSemanticColors["TextSecondary"] = "textSecondary";
|
|
221
|
-
ValidSemanticColors["TextValidationDanger"] = "textValidationDanger";
|
|
222
|
-
ValidSemanticColors["TextValidationSuccess"] = "textValidationSuccess";
|
|
223
|
-
ValidSemanticColors["TextValidationWarning"] = "textValidationWarning";
|
|
224
|
-
ValidSemanticColors["TooltipBackgroundTooltip"] = "tooltipBackgroundTooltip";
|
|
225
|
-
return ValidSemanticColors;
|
|
226
|
-
}({});
|
|
227
|
-
|
|
228
|
-
const ColorVars = {
|
|
229
|
-
primary: ValidSemanticColors.TextPrimary,
|
|
230
|
-
secondary: ValidSemanticColors.TextSecondary,
|
|
231
|
-
info: ValidSemanticColors.TextSecondary,
|
|
232
|
-
error: ValidSemanticColors.TextValidationDanger,
|
|
233
|
-
success: ValidSemanticColors.TextValidationSuccess,
|
|
234
|
-
warning: ValidSemanticColors.TextValidationWarning
|
|
141
|
+
const borderRadii = {
|
|
142
|
+
borderRadius0: 0,
|
|
143
|
+
borderRadiusSm: 4,
|
|
144
|
+
borderRadiusMd: 8,
|
|
145
|
+
borderRadiusLg: 12,
|
|
146
|
+
borderRadiusFull: 999
|
|
235
147
|
};
|
|
236
148
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
if (_isNumber(value)) {
|
|
249
|
-
if (unitless[key]) {
|
|
250
|
-
return `${value}!important`;
|
|
251
|
-
}
|
|
252
|
-
return `${value}px!important`;
|
|
253
|
-
}
|
|
254
|
-
return `${value}!important`;
|
|
255
|
-
}
|
|
256
|
-
if (_isNil(value)) {
|
|
257
|
-
return value;
|
|
258
|
-
}
|
|
259
|
-
return importantify(value);
|
|
260
|
-
});
|
|
261
|
-
}
|
|
149
|
+
// Border variables
|
|
150
|
+
const borders = {
|
|
151
|
+
borderRadiusMd: 4,
|
|
152
|
+
borderRadiusLg: 8
|
|
153
|
+
};
|
|
154
|
+
const getLegacyBorders = () => {
|
|
155
|
+
return borders;
|
|
156
|
+
};
|
|
157
|
+
const getBorders = () => {
|
|
158
|
+
return borderRadii;
|
|
159
|
+
};
|
|
262
160
|
|
|
263
161
|
/**
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*
|
|
162
|
+
* These values are based on AntD's breakpoints which follow BootStrap 4 media query rules.
|
|
163
|
+
* The numerical values represent the min-width of the given size.
|
|
164
|
+
* AntD values: https://ant.design/components/grid#col
|
|
165
|
+
* Bootstrap: https://getbootstrap.com/docs/4.0/layout/overview/#responsive-breakpoints
|
|
268
166
|
*/
|
|
269
|
-
function getTypographyColor(theme, key, fallbackColor) {
|
|
270
|
-
if (theme && key && Object(theme.colors).hasOwnProperty(ColorVars[key])) {
|
|
271
|
-
return theme.colors[ColorVars[key]];
|
|
272
|
-
}
|
|
273
|
-
return fallbackColor !== null && fallbackColor !== void 0 ? fallbackColor : theme.colors.textPrimary;
|
|
274
|
-
}
|
|
275
167
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
*/
|
|
284
|
-
function getValidationStateColor(theme, validationState) {
|
|
285
|
-
let {
|
|
286
|
-
errorColor,
|
|
287
|
-
warningColor,
|
|
288
|
-
successColor
|
|
289
|
-
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
290
|
-
switch (validationState) {
|
|
291
|
-
case 'error':
|
|
292
|
-
return errorColor || theme.colors.actionDangerPrimaryBackgroundDefault;
|
|
293
|
-
case 'warning':
|
|
294
|
-
return warningColor || theme.colors.textValidationWarning;
|
|
295
|
-
case 'success':
|
|
296
|
-
return successColor || theme.colors.textValidationSuccess;
|
|
297
|
-
default:
|
|
298
|
-
return undefined;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
function getDarkModePortalStyles(theme) {
|
|
302
|
-
if (!theme || !theme.isDarkMode) {
|
|
303
|
-
return {};
|
|
304
|
-
}
|
|
305
|
-
return {
|
|
306
|
-
border: `1px solid ${theme.colors.borderDecorative}`,
|
|
307
|
-
boxShadow: 'none'
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
const shadowCoverTop = bgColor => `linear-gradient(${bgColor} 30%, rgba(0, 0, 0, 0)) center top`;
|
|
311
|
-
const shadowCoverBot = bgColor => `linear-gradient(rgba(0, 0, 0, 0), ${bgColor} 70%) center bottom`;
|
|
312
|
-
const shadowCoverLeft = bgColor => `linear-gradient(to left, rgba(0, 0, 0, 0), ${bgColor} 30%) left center`;
|
|
313
|
-
const shadowCoverRight = bgColor => `linear-gradient(to left, ${bgColor} 70%, rgba(0, 0, 0, 0)) right center`;
|
|
314
|
-
const shadowTop = shadowRgb => `radial-gradient(
|
|
315
|
-
farthest-side at 50% 0,
|
|
316
|
-
rgba(${shadowRgb}, 0.2),
|
|
317
|
-
rgba(${shadowRgb}, 0)
|
|
318
|
-
) center top`;
|
|
319
|
-
const shadowBot = shadowRgb => `radial-gradient(
|
|
320
|
-
farthest-side at 50% 100%,
|
|
321
|
-
rgba(${shadowRgb}, 0.2),
|
|
322
|
-
rgba(${shadowRgb}, 0)
|
|
323
|
-
) center bottom`;
|
|
324
|
-
const shadowLeft = shadowRgb => `radial-gradient(
|
|
325
|
-
farthest-side at 0 50%,
|
|
326
|
-
rgba(${shadowRgb}, 0.2),
|
|
327
|
-
rgba(${shadowRgb}, 0)
|
|
328
|
-
) left center`;
|
|
329
|
-
const shadowRight = shadowRgb => `radial-gradient(
|
|
330
|
-
farthest-side at 100% 50%,
|
|
331
|
-
rgba(${shadowRgb}, 0.2),
|
|
332
|
-
rgba(${shadowRgb}, 0)
|
|
333
|
-
) right center`;
|
|
334
|
-
const shadowCoverBackgroundSizeVertical = '100% 40px';
|
|
335
|
-
const shadowCoverBackgroundSizeHorizontal = '40px 100%';
|
|
336
|
-
const shadowBackgroundSizeVertical = '100% 14px';
|
|
337
|
-
const shadowBackgroundSizeHorizontal = '14px 100%';
|
|
338
|
-
const getShadowScrollStylesMemoized = _memoize(function getShadowScrollStylesMemoized(theme, backgroundColor) {
|
|
339
|
-
let orientation = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'vertical';
|
|
340
|
-
const bgColor = backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : theme.colors.backgroundPrimary;
|
|
341
|
-
const shadowColor = theme.isDarkMode ? shadowDarkRgb : shadowLightRgb;
|
|
342
|
-
if (orientation === 'horizontal') {
|
|
343
|
-
return {
|
|
344
|
-
background: `
|
|
345
|
-
${shadowCoverLeft(bgColor)},
|
|
346
|
-
${shadowCoverRight(bgColor)},
|
|
347
|
-
${shadowLeft(shadowColor)},
|
|
348
|
-
${shadowRight(shadowColor)}`,
|
|
349
|
-
backgroundRepeat: 'no-repeat',
|
|
350
|
-
backgroundSize: `
|
|
351
|
-
${shadowCoverBackgroundSizeHorizontal},
|
|
352
|
-
${shadowCoverBackgroundSizeHorizontal},
|
|
353
|
-
${shadowBackgroundSizeHorizontal},
|
|
354
|
-
${shadowBackgroundSizeHorizontal}`,
|
|
355
|
-
backgroundAttachment: 'local, local, scroll, scroll'
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
return {
|
|
359
|
-
background: `
|
|
360
|
-
${shadowCoverTop(bgColor)},
|
|
361
|
-
${shadowCoverBot(bgColor)},
|
|
362
|
-
${shadowTop(shadowColor)},
|
|
363
|
-
${shadowBot(shadowColor)}`,
|
|
364
|
-
backgroundRepeat: 'no-repeat',
|
|
365
|
-
backgroundSize: `
|
|
366
|
-
${shadowCoverBackgroundSizeVertical},
|
|
367
|
-
${shadowCoverBackgroundSizeVertical},
|
|
368
|
-
${shadowBackgroundSizeVertical},
|
|
369
|
-
${shadowBackgroundSizeVertical}`,
|
|
370
|
-
backgroundAttachment: 'local, local, scroll, scroll'
|
|
371
|
-
};
|
|
372
|
-
}, (theme, backgroundColor, orientation) => {
|
|
373
|
-
return `${theme.isDarkMode}-${backgroundColor}-${orientation}`;
|
|
374
|
-
});
|
|
375
|
-
const getShadowScrollStyles = function getShadowScrollStyles(theme) {
|
|
376
|
-
let {
|
|
377
|
-
backgroundColor,
|
|
378
|
-
orientation
|
|
379
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
380
|
-
return getShadowScrollStylesMemoized(theme, backgroundColor, orientation);
|
|
381
|
-
};
|
|
382
|
-
const getBottomOnlyShadowScrollStylesMemoized = _memoize(function getBottomOnlyShadowScrollStylesMemoized(theme, backgroundColor) {
|
|
383
|
-
const bgColor = backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : theme.colors.backgroundPrimary;
|
|
384
|
-
return {
|
|
385
|
-
background: `
|
|
386
|
-
${shadowCoverBot(bgColor)},
|
|
387
|
-
${shadowBot(theme.isDarkMode ? shadowDarkRgb : shadowLightRgb)}`,
|
|
388
|
-
backgroundRepeat: 'no-repeat',
|
|
389
|
-
backgroundSize: `
|
|
390
|
-
${shadowCoverBackgroundSizeVertical},
|
|
391
|
-
${shadowBackgroundSizeVertical}`,
|
|
392
|
-
backgroundAttachment: 'local, scroll'
|
|
393
|
-
};
|
|
394
|
-
});
|
|
395
|
-
const getBottomOnlyShadowScrollStyles = function getBottomOnlyShadowScrollStyles(theme) {
|
|
396
|
-
let {
|
|
397
|
-
backgroundColor
|
|
398
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
399
|
-
return getBottomOnlyShadowScrollStylesMemoized(theme, backgroundColor);
|
|
400
|
-
};
|
|
401
|
-
|
|
402
|
-
// Define a module-global observer and a WeakMap on elements to hold callbacks
|
|
403
|
-
let sharedObserver = null;
|
|
404
|
-
const entryCallbackMap = new WeakMap();
|
|
405
|
-
const ensureSharedObserverExists = () => {
|
|
406
|
-
if (!sharedObserver) {
|
|
407
|
-
sharedObserver = new IntersectionObserver(entries => {
|
|
408
|
-
entries.forEach(entry => {
|
|
409
|
-
if (entry.isIntersecting) {
|
|
410
|
-
const entryCallback = entryCallbackMap.get(entry.target);
|
|
411
|
-
if (entryCallback) {
|
|
412
|
-
entryCallback();
|
|
413
|
-
entryCallbackMap.delete(entry.target);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
});
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
};
|
|
420
|
-
function observeElement(element, callback) {
|
|
421
|
-
var _sharedObserver;
|
|
422
|
-
ensureSharedObserverExists();
|
|
423
|
-
entryCallbackMap.set(element, callback);
|
|
424
|
-
(_sharedObserver = sharedObserver) === null || _sharedObserver === void 0 || _sharedObserver.observe(element);
|
|
425
|
-
return () => {
|
|
426
|
-
if (element) {
|
|
427
|
-
var _sharedObserver2;
|
|
428
|
-
(_sharedObserver2 = sharedObserver) === null || _sharedObserver2 === void 0 || _sharedObserver2.unobserve(element);
|
|
429
|
-
entryCallbackMap.delete(element);
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
/**
|
|
434
|
-
* Checks if the element was viewed and calls the onView callback.
|
|
435
|
-
* NOTE: This hook only triggers the onView callback once for the element.
|
|
436
|
-
* @param onView - callback to be called when the element is viewed
|
|
437
|
-
* @typeParam T - extends Element to specify the type of element being observed
|
|
438
|
-
*/
|
|
439
|
-
const useNotifyOnFirstView = _ref => {
|
|
440
|
-
let {
|
|
441
|
-
onView
|
|
442
|
-
} = _ref;
|
|
443
|
-
const isViewedRef = useRef(false);
|
|
444
|
-
const elementRef = useRef(null);
|
|
445
|
-
useEffect(() => {
|
|
446
|
-
const element = elementRef.current;
|
|
447
|
-
// If already viewed or element is not available, do nothing
|
|
448
|
-
if (!element || isViewedRef.current) {
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
const callback = () => {
|
|
452
|
-
isViewedRef.current = true;
|
|
453
|
-
onView();
|
|
454
|
-
};
|
|
455
|
-
|
|
456
|
-
// If IntersectionObserver is not available, assume that the element is visible
|
|
457
|
-
if (!window.IntersectionObserver) {
|
|
458
|
-
callback();
|
|
459
|
-
return;
|
|
460
|
-
}
|
|
461
|
-
return observeElement(element, callback);
|
|
462
|
-
}, [onView]);
|
|
463
|
-
return {
|
|
464
|
-
elementRef
|
|
465
|
-
};
|
|
466
|
-
};
|
|
467
|
-
|
|
468
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
469
|
-
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
470
|
-
name: "g8zzui",
|
|
471
|
-
styles: "cursor:progress"
|
|
472
|
-
} : {
|
|
473
|
-
name: "4y1qki-AccessibleContainer",
|
|
474
|
-
styles: "cursor:progress;label:AccessibleContainer;",
|
|
475
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
476
|
-
};
|
|
477
|
-
function AccessibleContainer(_ref) {
|
|
478
|
-
let {
|
|
479
|
-
children,
|
|
480
|
-
label
|
|
481
|
-
} = _ref;
|
|
482
|
-
if (!label) {
|
|
483
|
-
return jsx(Fragment, {
|
|
484
|
-
children: children
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
return jsxs("div", {
|
|
488
|
-
css: _ref2,
|
|
489
|
-
children: [jsx("span", {
|
|
490
|
-
css: visuallyHidden,
|
|
491
|
-
children: label
|
|
492
|
-
}), jsx("div", {
|
|
493
|
-
"aria-hidden": true,
|
|
494
|
-
children: children
|
|
495
|
-
})]
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
// Border variables
|
|
500
|
-
const borders = {
|
|
501
|
-
borderRadiusMd: 4
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
// eslint-disable-next-line import/no-anonymous-default-export
|
|
505
|
-
var borders$1 = {
|
|
506
|
-
...borders
|
|
507
|
-
};
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* These values are based on AntD's breakpoints which follow BootStrap 4 media query rules.
|
|
511
|
-
* The numerical values represent the min-width of the given size.
|
|
512
|
-
* AntD values: https://ant.design/components/grid#col
|
|
513
|
-
* Bootstrap: https://getbootstrap.com/docs/4.0/layout/overview/#responsive-breakpoints
|
|
514
|
-
*/
|
|
515
|
-
|
|
516
|
-
const breakpoints = {
|
|
517
|
-
xs: 0,
|
|
518
|
-
sm: 576,
|
|
519
|
-
md: 768,
|
|
520
|
-
lg: 992,
|
|
521
|
-
xl: 1200,
|
|
522
|
-
xxl: 1600
|
|
168
|
+
const breakpoints = {
|
|
169
|
+
xs: 0,
|
|
170
|
+
sm: 576,
|
|
171
|
+
md: 768,
|
|
172
|
+
lg: 992,
|
|
173
|
+
xl: 1200,
|
|
174
|
+
xxl: 1600
|
|
523
175
|
};
|
|
524
176
|
const mediaQueries = {
|
|
525
177
|
xs: '@media (max-width: 575.98px)',
|
|
@@ -533,7 +185,6 @@ const responsive = {
|
|
|
533
185
|
breakpoints,
|
|
534
186
|
mediaQueries
|
|
535
187
|
};
|
|
536
|
-
var responsive$1 = responsive;
|
|
537
188
|
|
|
538
189
|
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
539
190
|
|
|
@@ -595,6 +246,79 @@ const primitiveColors = {
|
|
|
595
246
|
|
|
596
247
|
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
597
248
|
|
|
249
|
+
const darkProtectedColorList = {
|
|
250
|
+
tagBackgroundBrown: 'rgba(171, 86, 2, 0.1000)',
|
|
251
|
+
tagBackgroundCharcoal: primitiveColors.grey300,
|
|
252
|
+
tagBackgroundCoral: 'rgba(240, 0, 64, 0.1000)',
|
|
253
|
+
tagBackgroundDefault: 'rgba(232, 236, 240, 0.0800)',
|
|
254
|
+
tagBackgroundIndigo: 'rgba(1, 68, 255, 0.1200)',
|
|
255
|
+
tagBackgroundLemon: 'rgba(255, 191, 1, 0.1800)',
|
|
256
|
+
tagBackgroundLime: 'rgba(2, 179, 2, 0.0800)',
|
|
257
|
+
tagBackgroundPink: 'rgba(240, 1, 150, 0.1200)',
|
|
258
|
+
tagBackgroundPurple: 'rgba(59, 0, 255, 0.1200)',
|
|
259
|
+
tagBackgroundTeal: 'rgba(2, 192, 150, 0.1200)',
|
|
260
|
+
tagBackgroundTurquoise: 'rgba(2, 192, 213, 0.1200)',
|
|
261
|
+
tagIconBrown: '#DAB594',
|
|
262
|
+
tagIconCharcoal: primitiveColors.grey650,
|
|
263
|
+
tagIconCoral: '#FF859D',
|
|
264
|
+
tagIconDefault: primitiveColors.grey350,
|
|
265
|
+
tagIconIndigo: '#99A2FF',
|
|
266
|
+
tagIconLemon: '#FFCD4D',
|
|
267
|
+
tagIconLime: '#70D083',
|
|
268
|
+
tagIconPink: '#F986C9',
|
|
269
|
+
tagIconPurple: '#B399FF',
|
|
270
|
+
tagIconTeal: '#0AD8B6',
|
|
271
|
+
tagIconTurquoise: '#1FD0F3',
|
|
272
|
+
tagTextBrown: '#DAB594',
|
|
273
|
+
tagTextCharcoal: primitiveColors.grey800,
|
|
274
|
+
tagTextCoral: '#FF859D',
|
|
275
|
+
tagTextDefault: primitiveColors.grey100,
|
|
276
|
+
tagTextIndigo: '#99A2FF',
|
|
277
|
+
tagTextLemon: '#FFCD4D',
|
|
278
|
+
tagTextLime: '#70D083',
|
|
279
|
+
tagTextPink: '#F986C9',
|
|
280
|
+
tagTextPurple: '#B399FF',
|
|
281
|
+
tagTextTeal: '#0AD8B6',
|
|
282
|
+
tagTextTurquoise: '#1FD0F3'
|
|
283
|
+
};
|
|
284
|
+
const lightProtectedColorList = {
|
|
285
|
+
tagBackgroundBrown: 'rgba(171, 86, 2, 0.0800)',
|
|
286
|
+
tagBackgroundCharcoal: primitiveColors.grey650,
|
|
287
|
+
tagBackgroundCoral: 'rgba(240, 0, 64, 0.0600)',
|
|
288
|
+
tagBackgroundDefault: 'rgba(0, 0, 59, 0.0500)',
|
|
289
|
+
tagBackgroundIndigo: 'rgba(1, 68, 255, 0.0600)',
|
|
290
|
+
tagBackgroundLemon: 'rgba(255, 191, 1, 0.1800)',
|
|
291
|
+
tagBackgroundLime: 'rgba(2, 179, 2, 0.0800)',
|
|
292
|
+
tagBackgroundPink: 'rgba(240, 1, 150, 0.0600)',
|
|
293
|
+
tagBackgroundPurple: 'rgba(59, 0, 255, 0.0500)',
|
|
294
|
+
tagBackgroundTeal: 'rgba(2, 192, 150, 0.0900)',
|
|
295
|
+
tagBackgroundTurquoise: 'rgba(2, 192, 213, 0.0900)',
|
|
296
|
+
tagIconBrown: '#815E46',
|
|
297
|
+
tagIconCharcoal: primitiveColors.grey350,
|
|
298
|
+
tagIconCoral: '#CA244E',
|
|
299
|
+
tagIconDefault: primitiveColors.grey600,
|
|
300
|
+
tagIconIndigo: '#3451B2',
|
|
301
|
+
tagIconLemon: '#915830',
|
|
302
|
+
tagIconLime: '#297C3B',
|
|
303
|
+
tagIconPink: '#C41C87',
|
|
304
|
+
tagIconPurple: '#5746AF',
|
|
305
|
+
tagIconTeal: '#067A6F',
|
|
306
|
+
tagIconTurquoise: '#0C7792',
|
|
307
|
+
tagTextBrown: '#815E46',
|
|
308
|
+
tagTextCharcoal: primitiveColors.grey100,
|
|
309
|
+
tagTextCoral: '#CA244E',
|
|
310
|
+
tagTextDefault: primitiveColors.grey800,
|
|
311
|
+
tagTextIndigo: '#3451B2',
|
|
312
|
+
tagTextLemon: '#915830',
|
|
313
|
+
tagTextLime: '#227534',
|
|
314
|
+
tagTextPink: '#C41C87',
|
|
315
|
+
tagTextPurple: '#5746AF',
|
|
316
|
+
tagTextTeal: '#00776B',
|
|
317
|
+
tagTextTurquoise: '#00708D'
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
321
|
+
|
|
598
322
|
const darkColorList = {
|
|
599
323
|
actionDangerDefaultBackgroundDefault: 'rgba(247, 146, 166, 0.0000)',
|
|
600
324
|
actionDangerDefaultBackgroundHover: 'rgba(247, 146, 166, 0.0800)',
|
|
@@ -661,38 +385,20 @@ const darkColorList = {
|
|
|
661
385
|
borderWarning: primitiveColors.yellow500,
|
|
662
386
|
codeBackground: primitiveColors.grey650,
|
|
663
387
|
overlayOverlay: 'rgba(31, 38, 45, 0.7200)',
|
|
664
|
-
progressFill: primitiveColors.
|
|
665
|
-
progressTrack: primitiveColors.
|
|
388
|
+
progressFill: primitiveColors.grey500,
|
|
389
|
+
progressTrack: primitiveColors.grey650,
|
|
666
390
|
skeleton: 'rgba(144, 164, 181, 0.1600)',
|
|
667
391
|
tableBackgroundSelectedDefault: 'rgba(189, 205, 219, 0.0800)',
|
|
668
392
|
tableBackgroundSelectedHover: 'rgba(189, 205, 219, 0.1200)',
|
|
669
393
|
tableBackgroundUnselectedDefault: primitiveColors.grey800,
|
|
670
394
|
tableBackgroundUnselectedHover: 'rgba(189, 205, 219, 0.0400)',
|
|
671
|
-
tagBrown: 'rgba(166, 99, 12, 0.8600)',
|
|
672
|
-
tagCharcoal: 'rgba(68, 83, 95, 0.8600)',
|
|
673
|
-
tagCoral: 'rgba(200, 50, 67, 0.8600)',
|
|
674
|
-
tagDefault: primitiveColors.grey650,
|
|
675
|
-
tagHover: 'rgba(138, 202, 255, 0.0800)',
|
|
676
|
-
tagIconDefault: primitiveColors.grey350,
|
|
677
|
-
tagIconHover: primitiveColors.grey350,
|
|
678
|
-
tagIconPress: primitiveColors.grey350,
|
|
679
|
-
tagIndigo: 'rgba(67, 74, 147, 0.8600)',
|
|
680
|
-
tagInverse: primitiveColors.grey800,
|
|
681
|
-
tagLemon: 'rgba(250, 203, 102, 0.8600)',
|
|
682
|
-
tagLime: 'rgba(48, 134, 19, 0.8600)',
|
|
683
|
-
tagPink: 'rgba(180, 80, 145, 0.8600)',
|
|
684
|
-
tagPress: 'rgba(138, 202, 255, 0.1600)',
|
|
685
|
-
tagPurple: 'rgba(138, 99, 191, 0.8600)',
|
|
686
|
-
tagTeal: 'rgba(4, 134, 125, 0.8600)',
|
|
687
|
-
tagText: primitiveColors.grey100,
|
|
688
|
-
tagTurquoise: 'rgba(19, 125, 174, 0.8600)',
|
|
689
395
|
textPlaceholder: primitiveColors.grey400,
|
|
690
396
|
textPrimary: primitiveColors.grey100,
|
|
691
397
|
textSecondary: primitiveColors.grey350,
|
|
692
398
|
textValidationDanger: primitiveColors.red500,
|
|
693
399
|
textValidationSuccess: primitiveColors.green500,
|
|
694
400
|
textValidationWarning: primitiveColors.yellow500,
|
|
695
|
-
tooltipBackgroundTooltip: primitiveColors.
|
|
401
|
+
tooltipBackgroundTooltip: primitiveColors.grey050
|
|
696
402
|
};
|
|
697
403
|
|
|
698
404
|
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
@@ -715,7 +421,7 @@ const lightColorList = {
|
|
|
715
421
|
actionDefaultBackgroundHover: 'rgba(34, 114, 180, 0.0800)',
|
|
716
422
|
actionDefaultBackgroundPress: 'rgba(34, 114, 180, 0.1600)',
|
|
717
423
|
actionDefaultBorderDefault: primitiveColors.grey300,
|
|
718
|
-
actionDefaultBorderFocus: primitiveColors.
|
|
424
|
+
actionDefaultBorderFocus: primitiveColors.blue600,
|
|
719
425
|
actionDefaultBorderHover: primitiveColors.blue600,
|
|
720
426
|
actionDefaultBorderPress: primitiveColors.blue800,
|
|
721
427
|
actionDefaultIconDefault: primitiveColors.grey600,
|
|
@@ -770,25 +476,7 @@ const lightColorList = {
|
|
|
770
476
|
tableBackgroundSelectedHover: 'rgba(68, 83, 95, 0.1200)',
|
|
771
477
|
tableBackgroundUnselectedDefault: primitiveColors.white,
|
|
772
478
|
tableBackgroundUnselectedHover: 'rgba(68, 83, 95, 0.0400)',
|
|
773
|
-
|
|
774
|
-
tagCharcoal: primitiveColors.grey600,
|
|
775
|
-
tagCoral: primitiveColors.coral,
|
|
776
|
-
tagDefault: primitiveColors.grey100,
|
|
777
|
-
tagHover: 'rgba(34, 114, 180, 0.0800)',
|
|
778
|
-
tagIconDefault: primitiveColors.grey600,
|
|
779
|
-
tagIconHover: primitiveColors.grey600,
|
|
780
|
-
tagIconPress: primitiveColors.grey600,
|
|
781
|
-
tagIndigo: primitiveColors.indigo,
|
|
782
|
-
tagInverse: primitiveColors.grey800,
|
|
783
|
-
tagLemon: primitiveColors.lemon,
|
|
784
|
-
tagLime: primitiveColors.lime,
|
|
785
|
-
tagPink: primitiveColors.pink,
|
|
786
|
-
tagPress: 'rgba(34, 114, 180, 0.1600)',
|
|
787
|
-
tagPurple: primitiveColors.purple,
|
|
788
|
-
tagTeal: primitiveColors.teal,
|
|
789
|
-
tagText: primitiveColors.white,
|
|
790
|
-
tagTurquoise: primitiveColors.turquoise,
|
|
791
|
-
textPlaceholder: primitiveColors.grey400,
|
|
479
|
+
textPlaceholder: primitiveColors.grey500,
|
|
792
480
|
textPrimary: primitiveColors.grey800,
|
|
793
481
|
textSecondary: primitiveColors.grey500,
|
|
794
482
|
textValidationDanger: primitiveColors.red600,
|
|
@@ -799,10 +487,14 @@ const lightColorList = {
|
|
|
799
487
|
|
|
800
488
|
// Currently these are the same for both light and dark mode, but we may want to change this in the future.
|
|
801
489
|
const branded = {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
490
|
+
ai: {
|
|
491
|
+
/** For AI components, the top-left-oriented start color of gradient treatments. */
|
|
492
|
+
gradientStart: '#4299E0',
|
|
493
|
+
/** For AI components, the mid color of gradient treatments. */
|
|
494
|
+
gradientMid: '#CA42E0',
|
|
495
|
+
/** For AI components, the bottom-right-oriented end color of gradient treatments. */
|
|
496
|
+
gradientEnd: '#FF5F46'
|
|
497
|
+
}
|
|
806
498
|
};
|
|
807
499
|
const darkColors = {
|
|
808
500
|
...darkColorList,
|
|
@@ -817,6 +509,9 @@ const lightColors = {
|
|
|
817
509
|
function getSemanticColors(isDarkMode) {
|
|
818
510
|
return isDarkMode ? darkColors : lightColors;
|
|
819
511
|
}
|
|
512
|
+
function getProtectedSemanticColors(isDarkMode) {
|
|
513
|
+
return isDarkMode ? darkProtectedColorList : lightProtectedColorList;
|
|
514
|
+
}
|
|
820
515
|
|
|
821
516
|
// When deprecating a color, add it to this object with a comment explaining why it's deprecated and a link to a JIRA ticket.
|
|
822
517
|
// Example: `@deprecated This color supports XXXX will be removed in an upcoming release (FEINF-1234).`
|
|
@@ -862,7 +557,41 @@ const deprecatedSemanticColorsLight = {
|
|
|
862
557
|
/** @deprecated Use `textSecondary` (FEINF-xxxx) */
|
|
863
558
|
textValidationInfo: lightColorList.textSecondary,
|
|
864
559
|
/** @deprecated Use `codeBackground` (FEINF-xxxx) */
|
|
865
|
-
typographyCodeBg: lightColorList.codeBackground
|
|
560
|
+
typographyCodeBg: lightColorList.codeBackground,
|
|
561
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
562
|
+
tagBrown: primitiveColors.brown,
|
|
563
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
564
|
+
tagCharcoal: primitiveColors.grey600,
|
|
565
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
566
|
+
tagCoral: primitiveColors.coral,
|
|
567
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
568
|
+
tagDefault: primitiveColors.grey100,
|
|
569
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
570
|
+
tagHover: 'rgba(34, 114, 180, 0.0800)',
|
|
571
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
572
|
+
tagIconHover: primitiveColors.grey600,
|
|
573
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
574
|
+
tagIconPress: primitiveColors.grey600,
|
|
575
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
576
|
+
tagIndigo: primitiveColors.indigo,
|
|
577
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
578
|
+
tagInverse: primitiveColors.grey800,
|
|
579
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
580
|
+
tagLemon: primitiveColors.lemon,
|
|
581
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
582
|
+
tagLime: primitiveColors.lime,
|
|
583
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
584
|
+
tagPink: primitiveColors.pink,
|
|
585
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
586
|
+
tagPress: 'rgba(34, 114, 180, 0.1600)',
|
|
587
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
588
|
+
tagPurple: primitiveColors.purple,
|
|
589
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
590
|
+
tagTeal: primitiveColors.teal,
|
|
591
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
592
|
+
tagText: primitiveColors.white,
|
|
593
|
+
/** @deprecated Do not use Tag colors (go/updating-tag-colors). Ask in #dubois if you have any questions. */
|
|
594
|
+
tagTurquoise: primitiveColors.turquoise
|
|
866
595
|
};
|
|
867
596
|
const deprecatedSemanticColorsDark = {
|
|
868
597
|
backgroundValidationDanger: darkColorList.backgroundDanger,
|
|
@@ -873,11 +602,29 @@ const deprecatedSemanticColorsDark = {
|
|
|
873
602
|
borderValidationWarning: darkColorList.borderWarning,
|
|
874
603
|
tableRowHover: darkColorList.tableBackgroundUnselectedHover,
|
|
875
604
|
textValidationInfo: darkColorList.textSecondary,
|
|
876
|
-
typographyCodeBg: darkColorList.codeBackground
|
|
605
|
+
typographyCodeBg: darkColorList.codeBackground,
|
|
606
|
+
tagBrown: 'rgba(166, 99, 12, 0.8600)',
|
|
607
|
+
tagCharcoal: 'rgba(68, 83, 95, 0.8600)',
|
|
608
|
+
tagCoral: 'rgba(200, 50, 67, 0.8600)',
|
|
609
|
+
tagDefault: primitiveColors.grey650,
|
|
610
|
+
tagHover: 'rgba(138, 202, 255, 0.0800)',
|
|
611
|
+
tagIconHover: primitiveColors.grey350,
|
|
612
|
+
tagIconPress: primitiveColors.grey350,
|
|
613
|
+
tagIndigo: 'rgba(67, 74, 147, 0.8600)',
|
|
614
|
+
tagInverse: primitiveColors.grey800,
|
|
615
|
+
tagLemon: 'rgba(250, 203, 102, 0.8600)',
|
|
616
|
+
tagLime: 'rgba(48, 134, 19, 0.8600)',
|
|
617
|
+
tagPink: 'rgba(180, 80, 145, 0.8600)',
|
|
618
|
+
tagPress: 'rgba(138, 202, 255, 0.1600)',
|
|
619
|
+
tagPurple: 'rgba(138, 99, 191, 0.8600)',
|
|
620
|
+
tagTeal: 'rgba(4, 134, 125, 0.8600)',
|
|
621
|
+
tagText: primitiveColors.grey100,
|
|
622
|
+
tagTurquoise: 'rgba(19, 125, 174, 0.8600)'
|
|
877
623
|
};
|
|
878
624
|
|
|
879
625
|
// A static list of secondary colors; these are used as a limited palette of color options in component props, i.e. `color="lime"`.
|
|
880
626
|
// TODO: We should split primitive colors into primary and secondary colors, and automatically generate this list.
|
|
627
|
+
|
|
881
628
|
function getColors(isDarkMode) {
|
|
882
629
|
return {
|
|
883
630
|
...deprecatedPrimitiveColors,
|
|
@@ -886,6 +633,40 @@ function getColors(isDarkMode) {
|
|
|
886
633
|
};
|
|
887
634
|
}
|
|
888
635
|
|
|
636
|
+
function getGradients(isDarkMode) {
|
|
637
|
+
const colors = getColors(isDarkMode);
|
|
638
|
+
return {
|
|
639
|
+
aiBorderGradient: `linear-gradient(135deg, ${colors.branded.ai.gradientStart} 20.5%, ${colors.branded.ai.gradientMid} 46.91%, ${colors.branded.ai.gradientEnd} 79.5%)`
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
// Dark mode colors
|
|
644
|
+
const blackAlpha87 = 'rgba(0, 0, 0, 0.87)';
|
|
645
|
+
const blackAlpha61 = 'rgba(0, 0, 0, 0.61)';
|
|
646
|
+
const blackAlpha45 = 'rgba(0, 0, 0, 0.45)';
|
|
647
|
+
const blackAlpha26 = 'rgba(0, 0, 0, 0.26)';
|
|
648
|
+
|
|
649
|
+
// Light mode colors
|
|
650
|
+
const blackAlpha13 = 'rgba(0, 0, 0, 0.13)';
|
|
651
|
+
const blackAlpha08 = 'rgba(0, 0, 0, 0.08)';
|
|
652
|
+
const blackAlpha05 = 'rgba(0, 0, 0, 0.05)';
|
|
653
|
+
const blackAlpha02 = 'rgba(0, 0, 0, 0.02)';
|
|
654
|
+
const getShadows = isDarkMode => {
|
|
655
|
+
return isDarkMode ? {
|
|
656
|
+
xs: `0px 1px 0px 0px ${blackAlpha45}`,
|
|
657
|
+
sm: ` 0px 2px 3px -1px ${blackAlpha45}, 0px 1px 0px 0px ${blackAlpha26}`,
|
|
658
|
+
md: `0px 3px 6px 0px ${blackAlpha45}`,
|
|
659
|
+
lg: `0px 2px 16px 0px ${blackAlpha61}`,
|
|
660
|
+
xl: `0px 8px 40px 0px ${blackAlpha87}`
|
|
661
|
+
} : {
|
|
662
|
+
xs: `0px 1px 0px 0px ${blackAlpha05}`,
|
|
663
|
+
sm: ` 0px 2px 3px -1px ${blackAlpha05}, 0px 1px 0px 0px ${blackAlpha02}`,
|
|
664
|
+
md: `0px 3px 6px 0px ${blackAlpha05}`,
|
|
665
|
+
lg: `0px 2px 16px 0px ${blackAlpha08}`,
|
|
666
|
+
xl: `0px 8px 40px 0px ${blackAlpha13}`
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
|
|
889
670
|
const FONT_SIZE_BASE = 13;
|
|
890
671
|
|
|
891
672
|
// Less variables that are used by AntD
|
|
@@ -922,16 +703,23 @@ function getTheme(isDarkMode) {
|
|
|
922
703
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
|
|
923
704
|
return {
|
|
924
705
|
colors: getColors(isDarkMode),
|
|
925
|
-
|
|
706
|
+
gradients: getGradients(isDarkMode),
|
|
707
|
+
spacing,
|
|
926
708
|
general: {
|
|
927
709
|
...antdGeneralVariables,
|
|
928
710
|
...getShadowVariables(isDarkMode)
|
|
929
711
|
},
|
|
712
|
+
shadows: getShadows(isDarkMode),
|
|
930
713
|
typography,
|
|
931
|
-
|
|
932
|
-
|
|
714
|
+
legacyBorders: getLegacyBorders(),
|
|
715
|
+
// TODO: Update to use `getBorders`
|
|
716
|
+
borders: getBorders(),
|
|
717
|
+
responsive,
|
|
933
718
|
isDarkMode,
|
|
934
|
-
options
|
|
719
|
+
options,
|
|
720
|
+
DU_BOIS_INTERNAL_ONLY: {
|
|
721
|
+
colors: getProtectedSemanticColors(isDarkMode)
|
|
722
|
+
}
|
|
935
723
|
};
|
|
936
724
|
}
|
|
937
725
|
|
|
@@ -1062,9 +850,11 @@ const DesignSystemProvider = _ref2 => {
|
|
|
1062
850
|
getPopupContainer,
|
|
1063
851
|
virtual: !disableLegacyAntVirtualization
|
|
1064
852
|
},
|
|
1065
|
-
children: jsx(
|
|
1066
|
-
|
|
1067
|
-
|
|
853
|
+
children: jsx(TooltipProvider, {
|
|
854
|
+
children: jsx(DesignSystemContext.Provider, {
|
|
855
|
+
value: value,
|
|
856
|
+
children: children
|
|
857
|
+
})
|
|
1068
858
|
})
|
|
1069
859
|
})
|
|
1070
860
|
})
|
|
@@ -1158,9 +948,35 @@ function useDesignSystemContext() {
|
|
|
1158
948
|
return useContext(DesignSystemContext);
|
|
1159
949
|
}
|
|
1160
950
|
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
951
|
+
/**
|
|
952
|
+
* Provides access to http://go/safex flags from the frontend. Note that this is a temporary
|
|
953
|
+
* workaround until direct `safex` imports are available.
|
|
954
|
+
* @param flag The name of the flag to check
|
|
955
|
+
* @param defaultValue The default value to return if the flag is not set
|
|
956
|
+
* @returns
|
|
957
|
+
*/
|
|
958
|
+
const safex = (flag, defaultValue) => {
|
|
959
|
+
// Catching errors here, because we don't have type-safety to ensure
|
|
960
|
+
// that `__debug__safex`'s API hasn't changed.
|
|
961
|
+
try {
|
|
962
|
+
const globalSafex = window.__debug__safex;
|
|
963
|
+
return globalSafex ? globalSafex(flag, defaultValue) : defaultValue;
|
|
964
|
+
} catch (e) {
|
|
965
|
+
return defaultValue;
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
const getDebugOutlineStyles = theme => /*#__PURE__*/css({
|
|
970
|
+
outline: `1px dashed ${theme.isDarkMode ? theme.colors.lime : theme.colors.lime}`,
|
|
971
|
+
outlineOffset: '2px'
|
|
972
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getDebugOutlineStyles;");
|
|
973
|
+
function addDebugOutlineIfEnabled() {
|
|
974
|
+
return safex('databricks.fe.designsystem.showDebugOutline', false) ? {
|
|
975
|
+
'data-dubois-show-outline': true
|
|
976
|
+
} : {};
|
|
977
|
+
}
|
|
978
|
+
function addDebugOutlineStylesIfEnabled(theme) {
|
|
979
|
+
return safex('databricks.fe.designsystem.showDebugOutline', false) ? getDebugOutlineStyles(theme) : {};
|
|
1164
980
|
}
|
|
1165
981
|
|
|
1166
982
|
const uniqueId = () => new Date().getTime() + Array(16).fill('').map(() => parseInt((Math.random() * 10).toString())).join('');
|
|
@@ -1169,7 +985,7 @@ function useUniqueId() {
|
|
|
1169
985
|
return useState(() => `${prefix}-${uniqueId()}`)[0];
|
|
1170
986
|
}
|
|
1171
987
|
|
|
1172
|
-
const getIconVariantStyles = (theme,
|
|
988
|
+
const getIconVariantStyles = (theme, color) => {
|
|
1173
989
|
switch (color) {
|
|
1174
990
|
case 'success':
|
|
1175
991
|
return {
|
|
@@ -1186,7 +1002,7 @@ const getIconVariantStyles = (theme, linearGradientId, color) => {
|
|
|
1186
1002
|
case 'ai':
|
|
1187
1003
|
return {
|
|
1188
1004
|
'svg *': {
|
|
1189
|
-
fill:
|
|
1005
|
+
fill: 'var(--ai-icon-gradient)'
|
|
1190
1006
|
}
|
|
1191
1007
|
};
|
|
1192
1008
|
default:
|
|
@@ -1218,7 +1034,11 @@ const Icon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1218
1034
|
jsxs(Fragment, {
|
|
1219
1035
|
children: [jsx(Component, {
|
|
1220
1036
|
fill: "none",
|
|
1221
|
-
...iconProps
|
|
1037
|
+
...iconProps,
|
|
1038
|
+
style: color === 'ai' ? {
|
|
1039
|
+
['--ai-icon-gradient']: `url(#${linearGradientId})`,
|
|
1040
|
+
...iconProps.style
|
|
1041
|
+
} : iconProps.style
|
|
1222
1042
|
}), color === 'ai' && jsx("svg", {
|
|
1223
1043
|
width: "0",
|
|
1224
1044
|
height: "0",
|
|
@@ -1227,14 +1047,19 @@ const Icon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1227
1047
|
children: jsx("defs", {
|
|
1228
1048
|
children: jsxs("linearGradient", {
|
|
1229
1049
|
id: linearGradientId,
|
|
1050
|
+
x1: "0%",
|
|
1051
|
+
y1: "0%",
|
|
1230
1052
|
x2: "100%",
|
|
1231
1053
|
y2: "100%",
|
|
1232
1054
|
children: [jsx("stop", {
|
|
1233
|
-
offset: "
|
|
1234
|
-
stopColor: theme.colors.branded.
|
|
1055
|
+
offset: "20.5%",
|
|
1056
|
+
stopColor: theme.colors.branded.ai.gradientStart
|
|
1057
|
+
}), jsx("stop", {
|
|
1058
|
+
offset: "46.91%",
|
|
1059
|
+
stopColor: theme.colors.branded.ai.gradientMid
|
|
1235
1060
|
}), jsx("stop", {
|
|
1236
|
-
offset: "
|
|
1237
|
-
stopColor: theme.colors.branded.
|
|
1061
|
+
offset: "79.5%",
|
|
1062
|
+
stopColor: theme.colors.branded.ai.gradientEnd
|
|
1238
1063
|
})]
|
|
1239
1064
|
})
|
|
1240
1065
|
})
|
|
@@ -1244,11 +1069,12 @@ const Icon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1244
1069
|
} : undefined, [Component, color, linearGradientId, theme]);
|
|
1245
1070
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
1246
1071
|
children: jsx(AntDIcon, {
|
|
1072
|
+
...addDebugOutlineIfEnabled(),
|
|
1247
1073
|
ref: forwardedRef,
|
|
1248
1074
|
"aria-hidden": "true",
|
|
1249
1075
|
css: /*#__PURE__*/css({
|
|
1250
1076
|
fontSize: theme.general.iconFontSize,
|
|
1251
|
-
...getIconVariantStyles(theme,
|
|
1077
|
+
...getIconVariantStyles(theme, color)
|
|
1252
1078
|
}, process.env.NODE_ENV === "production" ? "" : ";label:Icon;"),
|
|
1253
1079
|
component: MemoizedComponent,
|
|
1254
1080
|
style: {
|
|
@@ -1271,7 +1097,7 @@ function SvgCheckIcon(props) {
|
|
|
1271
1097
|
children: jsx("path", {
|
|
1272
1098
|
fill: "currentColor",
|
|
1273
1099
|
fillRule: "evenodd",
|
|
1274
|
-
d: "m15.06 3.56-9.53 9.531L1 8.561 2.06 7.5l3.47 3.47L14 2.
|
|
1100
|
+
d: "m15.06 3.56-9.53 9.531L1 8.561 2.06 7.5l3.47 3.47L14 2.5z",
|
|
1275
1101
|
clipRule: "evenodd"
|
|
1276
1102
|
})
|
|
1277
1103
|
});
|
|
@@ -1284,7 +1110,6 @@ const CheckIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1284
1110
|
});
|
|
1285
1111
|
});
|
|
1286
1112
|
CheckIcon.displayName = 'CheckIcon';
|
|
1287
|
-
var CheckIcon$1 = CheckIcon;
|
|
1288
1113
|
|
|
1289
1114
|
function SvgChevronLeftIcon(props) {
|
|
1290
1115
|
return jsx("svg", {
|
|
@@ -1297,7 +1122,7 @@ function SvgChevronLeftIcon(props) {
|
|
|
1297
1122
|
children: jsx("path", {
|
|
1298
1123
|
fill: "currentColor",
|
|
1299
1124
|
fillRule: "evenodd",
|
|
1300
|
-
d: "M7.083 8 10 10.947 8.958 12 5 8l3.958-4L10 5.
|
|
1125
|
+
d: "M7.083 8 10 10.947 8.958 12 5 8l3.958-4L10 5.053z",
|
|
1301
1126
|
clipRule: "evenodd"
|
|
1302
1127
|
})
|
|
1303
1128
|
});
|
|
@@ -1310,7 +1135,6 @@ const ChevronLeftIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1310
1135
|
});
|
|
1311
1136
|
});
|
|
1312
1137
|
ChevronLeftIcon.displayName = 'ChevronLeftIcon';
|
|
1313
|
-
var ChevronLeftIcon$1 = ChevronLeftIcon;
|
|
1314
1138
|
|
|
1315
1139
|
function SvgChevronRightIcon(props) {
|
|
1316
1140
|
return jsx("svg", {
|
|
@@ -1323,7 +1147,7 @@ function SvgChevronRightIcon(props) {
|
|
|
1323
1147
|
children: jsx("path", {
|
|
1324
1148
|
fill: "currentColor",
|
|
1325
1149
|
fillRule: "evenodd",
|
|
1326
|
-
d: "M8.917 8 6 5.053 7.042 4 11 8l-3.958 4L6 10.
|
|
1150
|
+
d: "M8.917 8 6 5.053 7.042 4 11 8l-3.958 4L6 10.947z",
|
|
1327
1151
|
clipRule: "evenodd"
|
|
1328
1152
|
})
|
|
1329
1153
|
});
|
|
@@ -1336,7 +1160,6 @@ const ChevronRightIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1336
1160
|
});
|
|
1337
1161
|
});
|
|
1338
1162
|
ChevronRightIcon.displayName = 'ChevronRightIcon';
|
|
1339
|
-
var ChevronRightIcon$1 = ChevronRightIcon;
|
|
1340
1163
|
|
|
1341
1164
|
function SvgCloseIcon(props) {
|
|
1342
1165
|
return jsx("svg", {
|
|
@@ -1349,7 +1172,7 @@ function SvgCloseIcon(props) {
|
|
|
1349
1172
|
children: jsx("path", {
|
|
1350
1173
|
fill: "currentColor",
|
|
1351
1174
|
fillRule: "evenodd",
|
|
1352
|
-
d: "M6.97 8.03 2 3.06 3.06 2l4.97 4.97L13 2l1.06 1.06-4.969 4.97 4.97 4.97L13 14.06 8.03 9.092l-4.97 4.97L2
|
|
1175
|
+
d: "M6.97 8.03 2 3.06 3.06 2l4.97 4.97L13 2l1.06 1.06-4.969 4.97 4.97 4.97L13 14.06 8.03 9.092l-4.97 4.97L2 13z",
|
|
1353
1176
|
clipRule: "evenodd"
|
|
1354
1177
|
})
|
|
1355
1178
|
});
|
|
@@ -1362,9 +1185,8 @@ const CloseIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1362
1185
|
});
|
|
1363
1186
|
});
|
|
1364
1187
|
CloseIcon.displayName = 'CloseIcon';
|
|
1365
|
-
var CloseIcon$1 = CloseIcon;
|
|
1366
1188
|
|
|
1367
|
-
function
|
|
1189
|
+
function SvgDangerIcon(props) {
|
|
1368
1190
|
return jsxs("svg", {
|
|
1369
1191
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1370
1192
|
width: "1em",
|
|
@@ -1372,183 +1194,28 @@ function SvgCursorIcon(props) {
|
|
|
1372
1194
|
fill: "none",
|
|
1373
1195
|
viewBox: "0 0 16 16",
|
|
1374
1196
|
...props,
|
|
1375
|
-
children: [jsx("
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
}), jsx("defs", {
|
|
1384
|
-
children: jsx("clipPath", {
|
|
1385
|
-
children: jsx("path", {
|
|
1386
|
-
fill: "#fff",
|
|
1387
|
-
d: "M16 0H0v16h16z"
|
|
1388
|
-
})
|
|
1389
|
-
})
|
|
1197
|
+
children: [jsx("path", {
|
|
1198
|
+
fill: "currentColor",
|
|
1199
|
+
d: "M7.248 10.748a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0M8.748 4.998v4h-1.5v-4z"
|
|
1200
|
+
}), jsx("path", {
|
|
1201
|
+
fill: "currentColor",
|
|
1202
|
+
fillRule: "evenodd",
|
|
1203
|
+
d: "m11.533 15.776 4.243-4.243a.75.75 0 0 0 .22-.53v-6.01a.75.75 0 0 0-.22-.53L11.533.22a.75.75 0 0 0-.53-.22h-6.01a.75.75 0 0 0-.53.22L.22 4.462a.75.75 0 0 0-.22.53v6.011c0 .199.079.39.22.53l4.242 4.243c.141.14.332.22.53.22h6.011a.75.75 0 0 0 .53-.22m2.963-10.473v5.39l-3.804 3.803H5.303L1.5 10.692V5.303L5.303 1.5h5.39z",
|
|
1204
|
+
clipRule: "evenodd"
|
|
1390
1205
|
})]
|
|
1391
1206
|
});
|
|
1392
1207
|
}
|
|
1393
|
-
const
|
|
1208
|
+
const DangerIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1394
1209
|
return jsx(Icon, {
|
|
1395
1210
|
ref: forwardedRef,
|
|
1396
1211
|
...props,
|
|
1397
|
-
component:
|
|
1212
|
+
component: SvgDangerIcon
|
|
1398
1213
|
});
|
|
1399
1214
|
});
|
|
1400
|
-
|
|
1401
|
-
var CursorIcon$1 = CursorIcon;
|
|
1215
|
+
DangerIcon.displayName = 'DangerIcon';
|
|
1402
1216
|
|
|
1403
|
-
function
|
|
1404
|
-
return
|
|
1405
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1406
|
-
width: "1em",
|
|
1407
|
-
height: "1em",
|
|
1408
|
-
fill: "none",
|
|
1409
|
-
viewBox: "0 0 16 16",
|
|
1410
|
-
...props,
|
|
1411
|
-
children: [jsx("path", {
|
|
1412
|
-
fill: "currentColor",
|
|
1413
|
-
d: "M7.248 10.748a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM8.748 4.998v4h-1.5v-4h1.5Z"
|
|
1414
|
-
}), jsx("path", {
|
|
1415
|
-
fill: "currentColor",
|
|
1416
|
-
fillRule: "evenodd",
|
|
1417
|
-
d: "m11.533 15.776 4.243-4.243a.75.75 0 0 0 .22-.53v-6.01a.75.75 0 0 0-.22-.53L11.533.22a.75.75 0 0 0-.53-.22h-6.01a.75.75 0 0 0-.53.22L.22 4.462a.75.75 0 0 0-.22.53v6.011c0 .199.079.39.22.53l4.242 4.243c.141.14.332.22.53.22h6.011a.75.75 0 0 0 .53-.22Zm2.963-10.473v5.39l-3.804 3.803H5.303L1.5 10.692V5.303L5.303 1.5h5.39l3.803 3.803Z",
|
|
1418
|
-
clipRule: "evenodd"
|
|
1419
|
-
})]
|
|
1420
|
-
});
|
|
1421
|
-
}
|
|
1422
|
-
const DangerIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1423
|
-
return jsx(Icon, {
|
|
1424
|
-
ref: forwardedRef,
|
|
1425
|
-
...props,
|
|
1426
|
-
component: SvgDangerIcon
|
|
1427
|
-
});
|
|
1428
|
-
});
|
|
1429
|
-
DangerIcon.displayName = 'DangerIcon';
|
|
1430
|
-
var DangerIcon$1 = DangerIcon;
|
|
1431
|
-
|
|
1432
|
-
function SvgFaceFrownIcon(props) {
|
|
1433
|
-
return jsxs("svg", {
|
|
1434
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1435
|
-
width: "1em",
|
|
1436
|
-
height: "1em",
|
|
1437
|
-
fill: "none",
|
|
1438
|
-
viewBox: "0 0 16 16",
|
|
1439
|
-
...props,
|
|
1440
|
-
children: [jsxs("g", {
|
|
1441
|
-
fill: "currentColor",
|
|
1442
|
-
clipPath: "url(#FaceFrownIcon_svg__a)",
|
|
1443
|
-
children: [jsx("path", {
|
|
1444
|
-
d: "M6 5.25a.75.75 0 0 0 0 1.5h.007a.75.75 0 0 0 0-1.5H6ZM9.25 6a.75.75 0 0 1 .75-.75h.007a.75.75 0 0 1 0 1.5H10A.75.75 0 0 1 9.25 6ZM10.07 11.12a.75.75 0 0 0 1.197-.903l-.001-.001v-.001l-.003-.003-.005-.006-.015-.02a2.95 2.95 0 0 0-.217-.246 4.717 4.717 0 0 0-.627-.546C9.86 9 9.04 8.584 8 8.584s-1.858.416-2.4.81a4.716 4.716 0 0 0-.795.733 2.87 2.87 0 0 0-.048.06l-.015.019-.005.006-.002.003-.031.044.03-.042a.75.75 0 1 0 1.22.875 3.219 3.219 0 0 1 .529-.485c.375-.273.89-.523 1.517-.523.627 0 1.142.25 1.517.523a3.219 3.219 0 0 1 .529.485l.021.025.002.003Z"
|
|
1445
|
-
}), jsx("path", {
|
|
1446
|
-
fillRule: "evenodd",
|
|
1447
|
-
d: "M8 .583a7.417 7.417 0 1 0 0 14.834A7.417 7.417 0 0 0 8 .583ZM2.083 8a5.917 5.917 0 1 1 11.834 0A5.917 5.917 0 0 1 2.083 8Z",
|
|
1448
|
-
clipRule: "evenodd"
|
|
1449
|
-
})]
|
|
1450
|
-
}), jsx("defs", {
|
|
1451
|
-
children: jsx("clipPath", {
|
|
1452
|
-
children: jsx("path", {
|
|
1453
|
-
fill: "#fff",
|
|
1454
|
-
d: "M0 0h16v16H0z"
|
|
1455
|
-
})
|
|
1456
|
-
})
|
|
1457
|
-
})]
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1460
|
-
const FaceFrownIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1461
|
-
return jsx(Icon, {
|
|
1462
|
-
ref: forwardedRef,
|
|
1463
|
-
...props,
|
|
1464
|
-
component: SvgFaceFrownIcon
|
|
1465
|
-
});
|
|
1466
|
-
});
|
|
1467
|
-
FaceFrownIcon.displayName = 'FaceFrownIcon';
|
|
1468
|
-
var FaceFrownIcon$1 = FaceFrownIcon;
|
|
1469
|
-
|
|
1470
|
-
function SvgFaceNeutralIcon(props) {
|
|
1471
|
-
return jsxs("svg", {
|
|
1472
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1473
|
-
width: "1em",
|
|
1474
|
-
height: "1em",
|
|
1475
|
-
fill: "none",
|
|
1476
|
-
viewBox: "0 0 16 16",
|
|
1477
|
-
...props,
|
|
1478
|
-
children: [jsxs("g", {
|
|
1479
|
-
fill: "currentColor",
|
|
1480
|
-
fillRule: "evenodd",
|
|
1481
|
-
clipPath: "url(#FaceNeutralIcon_svg__a)",
|
|
1482
|
-
clipRule: "evenodd",
|
|
1483
|
-
children: [jsx("path", {
|
|
1484
|
-
d: "M8 2.083a5.917 5.917 0 1 0 0 11.834A5.917 5.917 0 0 0 8 2.084ZM.583 8a7.417 7.417 0 1 1 14.834 0A7.417 7.417 0 0 1 .583 8Z"
|
|
1485
|
-
}), jsx("path", {
|
|
1486
|
-
d: "M4.583 10a.75.75 0 0 1 .75-.75h5.334a.75.75 0 1 1 0 1.5H5.333a.75.75 0 0 1-.75-.75ZM5.25 6A.75.75 0 0 1 6 5.25h.007a.75.75 0 0 1 0 1.5H6A.75.75 0 0 1 5.25 6ZM9.25 6a.75.75 0 0 1 .75-.75h.007a.75.75 0 1 1 0 1.5H10A.75.75 0 0 1 9.25 6Z"
|
|
1487
|
-
})]
|
|
1488
|
-
}), jsx("defs", {
|
|
1489
|
-
children: jsx("clipPath", {
|
|
1490
|
-
children: jsx("path", {
|
|
1491
|
-
fill: "#fff",
|
|
1492
|
-
d: "M0 0h16v16H0z"
|
|
1493
|
-
})
|
|
1494
|
-
})
|
|
1495
|
-
})]
|
|
1496
|
-
});
|
|
1497
|
-
}
|
|
1498
|
-
const FaceNeutralIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1499
|
-
return jsx(Icon, {
|
|
1500
|
-
ref: forwardedRef,
|
|
1501
|
-
...props,
|
|
1502
|
-
component: SvgFaceNeutralIcon
|
|
1503
|
-
});
|
|
1504
|
-
});
|
|
1505
|
-
FaceNeutralIcon.displayName = 'FaceNeutralIcon';
|
|
1506
|
-
var FaceNeutralIcon$1 = FaceNeutralIcon;
|
|
1507
|
-
|
|
1508
|
-
function SvgFaceSmileIcon(props) {
|
|
1509
|
-
return jsxs("svg", {
|
|
1510
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1511
|
-
width: "1em",
|
|
1512
|
-
height: "1em",
|
|
1513
|
-
fill: "none",
|
|
1514
|
-
viewBox: "0 0 16 16",
|
|
1515
|
-
...props,
|
|
1516
|
-
children: [jsxs("g", {
|
|
1517
|
-
fill: "currentColor",
|
|
1518
|
-
clipPath: "url(#FaceSmileIcon_svg__a)",
|
|
1519
|
-
children: [jsx("path", {
|
|
1520
|
-
fillRule: "evenodd",
|
|
1521
|
-
d: "M8 2.083a5.917 5.917 0 1 0 0 11.834A5.917 5.917 0 0 0 8 2.084ZM.583 8a7.417 7.417 0 1 1 14.834 0A7.417 7.417 0 0 1 .583 8Z",
|
|
1522
|
-
clipRule: "evenodd"
|
|
1523
|
-
}), jsx("path", {
|
|
1524
|
-
d: "M4.883 8.733a.75.75 0 0 1 1.048.147l.002.003.021.026a3.216 3.216 0 0 0 .529.485c.375.273.89.523 1.517.523.627 0 1.142-.25 1.517-.523a3.215 3.215 0 0 0 .55-.511.75.75 0 0 1 1.2.9l.029-.042-.03.043-.001.002-.002.002-.005.007-.015.019a3.878 3.878 0 0 1-.217.247c-.144.15-.354.348-.627.546-.54.393-1.359.81-2.399.81s-1.858-.417-2.4-.81a4.716 4.716 0 0 1-.795-.734 2.643 2.643 0 0 1-.048-.059l-.015-.02-.005-.006-.002-.002v-.002h-.002a.75.75 0 0 1 .15-1.05Z"
|
|
1525
|
-
}), jsx("path", {
|
|
1526
|
-
fillRule: "evenodd",
|
|
1527
|
-
d: "M5.25 6A.75.75 0 0 1 6 5.25h.007a.75.75 0 0 1 0 1.5H6A.75.75 0 0 1 5.25 6ZM9.25 6a.75.75 0 0 1 .75-.75h.007a.75.75 0 1 1 0 1.5H10A.75.75 0 0 1 9.25 6Z",
|
|
1528
|
-
clipRule: "evenodd"
|
|
1529
|
-
})]
|
|
1530
|
-
}), jsx("defs", {
|
|
1531
|
-
children: jsx("clipPath", {
|
|
1532
|
-
children: jsx("path", {
|
|
1533
|
-
fill: "#fff",
|
|
1534
|
-
d: "M0 0h16v16H0z"
|
|
1535
|
-
})
|
|
1536
|
-
})
|
|
1537
|
-
})]
|
|
1538
|
-
});
|
|
1539
|
-
}
|
|
1540
|
-
const FaceSmileIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1541
|
-
return jsx(Icon, {
|
|
1542
|
-
ref: forwardedRef,
|
|
1543
|
-
...props,
|
|
1544
|
-
component: SvgFaceSmileIcon
|
|
1545
|
-
});
|
|
1546
|
-
});
|
|
1547
|
-
FaceSmileIcon.displayName = 'FaceSmileIcon';
|
|
1548
|
-
var FaceSmileIcon$1 = FaceSmileIcon;
|
|
1549
|
-
|
|
1550
|
-
function SvgLoadingIcon(props) {
|
|
1551
|
-
return jsx("svg", {
|
|
1217
|
+
function SvgLoadingIcon(props) {
|
|
1218
|
+
return jsx("svg", {
|
|
1552
1219
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1553
1220
|
width: "1em",
|
|
1554
1221
|
height: "1em",
|
|
@@ -1558,7 +1225,7 @@ function SvgLoadingIcon(props) {
|
|
|
1558
1225
|
children: jsx("path", {
|
|
1559
1226
|
fill: "currentColor",
|
|
1560
1227
|
fillRule: "evenodd",
|
|
1561
|
-
d: "M23.212 12a.
|
|
1228
|
+
d: "M23.212 12a.79.79 0 0 1-.789-.788 9.6 9.6 0 0 0-.757-3.751 9.66 9.66 0 0 0-5.129-5.129 9.6 9.6 0 0 0-3.749-.755.788.788 0 0 1 0-1.577c1.513 0 2.983.296 4.365.882a11.1 11.1 0 0 1 3.562 2.403 11.157 11.157 0 0 1 3.283 7.927.785.785 0 0 1-.786.788",
|
|
1562
1229
|
clipRule: "evenodd"
|
|
1563
1230
|
})
|
|
1564
1231
|
});
|
|
@@ -1571,33 +1238,6 @@ const LoadingIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1571
1238
|
});
|
|
1572
1239
|
});
|
|
1573
1240
|
LoadingIcon.displayName = 'LoadingIcon';
|
|
1574
|
-
var LoadingIcon$1 = LoadingIcon;
|
|
1575
|
-
|
|
1576
|
-
function SvgMegaphoneIcon(props) {
|
|
1577
|
-
return jsx("svg", {
|
|
1578
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1579
|
-
width: "1em",
|
|
1580
|
-
height: "1em",
|
|
1581
|
-
fill: "none",
|
|
1582
|
-
viewBox: "0 0 18 18",
|
|
1583
|
-
...props,
|
|
1584
|
-
children: jsx("path", {
|
|
1585
|
-
fill: "currentColor",
|
|
1586
|
-
fillRule: "evenodd",
|
|
1587
|
-
d: "M16.25 2a.75.75 0 0 0-1.248-.56l-4.287 3.81H4A2.75 2.75 0 0 0 1.25 8v2A2.75 2.75 0 0 0 4 12.75h1.75V16a.75.75 0 0 0 1.5 0v-3.25h3.465l4.287 3.81A.75.75 0 0 0 16.25 16V2Zm-4.752 4.56 3.252-2.89v10.66l-3.252-2.89a.75.75 0 0 0-.498-.19H4c-.69 0-1.25-.56-1.25-1.25V8c0-.69.56-1.25 1.25-1.25h7a.75.75 0 0 0 .498-.19Z",
|
|
1588
|
-
clipRule: "evenodd"
|
|
1589
|
-
})
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
const MegaphoneIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1593
|
-
return jsx(Icon, {
|
|
1594
|
-
ref: forwardedRef,
|
|
1595
|
-
...props,
|
|
1596
|
-
component: SvgMegaphoneIcon
|
|
1597
|
-
});
|
|
1598
|
-
});
|
|
1599
|
-
MegaphoneIcon.displayName = 'MegaphoneIcon';
|
|
1600
|
-
var MegaphoneIcon$1 = MegaphoneIcon;
|
|
1601
1241
|
|
|
1602
1242
|
function SvgNewWindowIcon(props) {
|
|
1603
1243
|
return jsxs("svg", {
|
|
@@ -1609,10 +1249,10 @@ function SvgNewWindowIcon(props) {
|
|
|
1609
1249
|
...props,
|
|
1610
1250
|
children: [jsx("path", {
|
|
1611
1251
|
fill: "currentColor",
|
|
1612
|
-
d: "M10 1h5v5h-1.5V3.56L8.53 8.53 7.47 7.47l4.97-4.
|
|
1252
|
+
d: "M10 1h5v5h-1.5V3.56L8.53 8.53 7.47 7.47l4.97-4.97H10z"
|
|
1613
1253
|
}), jsx("path", {
|
|
1614
1254
|
fill: "currentColor",
|
|
1615
|
-
d: "M1 2.75A.75.75 0 0 1 1.75 2H8v1.5H2.5v10h10V8H14v6.25a.75.75 0 0 1-.75.75H1.75a.75.75 0 0 1-.75-.
|
|
1255
|
+
d: "M1 2.75A.75.75 0 0 1 1.75 2H8v1.5H2.5v10h10V8H14v6.25a.75.75 0 0 1-.75.75H1.75a.75.75 0 0 1-.75-.75z"
|
|
1616
1256
|
})]
|
|
1617
1257
|
});
|
|
1618
1258
|
}
|
|
@@ -1624,7 +1264,6 @@ const NewWindowIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1624
1264
|
});
|
|
1625
1265
|
});
|
|
1626
1266
|
NewWindowIcon.displayName = 'NewWindowIcon';
|
|
1627
|
-
var NewWindowIcon$1 = NewWindowIcon;
|
|
1628
1267
|
|
|
1629
1268
|
function SvgWarningIcon(props) {
|
|
1630
1269
|
return jsxs("svg", {
|
|
@@ -1636,11 +1275,11 @@ function SvgWarningIcon(props) {
|
|
|
1636
1275
|
...props,
|
|
1637
1276
|
children: [jsx("path", {
|
|
1638
1277
|
fill: "currentColor",
|
|
1639
|
-
d: "M7.25 10V6.5h1.
|
|
1278
|
+
d: "M7.25 10V6.5h1.5V10zM8 12.5A.75.75 0 1 0 8 11a.75.75 0 0 0 0 1.5"
|
|
1640
1279
|
}), jsx("path", {
|
|
1641
1280
|
fill: "currentColor",
|
|
1642
1281
|
fillRule: "evenodd",
|
|
1643
|
-
d: "M8 1a.75.75 0 0 1 .649.374l7.25 12.5A.75.75 0 0 1 15.25 15H.75a.75.75 0 0 1-.649-1.126l7.25-12.5A.75.75 0 0 1 8
|
|
1282
|
+
d: "M8 1a.75.75 0 0 1 .649.374l7.25 12.5A.75.75 0 0 1 15.25 15H.75a.75.75 0 0 1-.649-1.126l7.25-12.5A.75.75 0 0 1 8 1m0 2.245L2.052 13.5h11.896z",
|
|
1644
1283
|
clipRule: "evenodd"
|
|
1645
1284
|
})]
|
|
1646
1285
|
});
|
|
@@ -1653,405 +1292,1039 @@ const WarningIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1653
1292
|
});
|
|
1654
1293
|
});
|
|
1655
1294
|
WarningIcon.displayName = 'WarningIcon';
|
|
1656
|
-
var WarningIcon$1 = WarningIcon;
|
|
1657
1295
|
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
})
|
|
1674
|
-
}
|
|
1675
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
|
|
1296
|
+
// Use Symbol to correctly handled null/undefined as stable values
|
|
1297
|
+
const NOT_INITIALIZED = Symbol('NOT_INITIALIZED');
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Use to keep a stable value on the first mount of a component
|
|
1301
|
+
* that cannot change.
|
|
1302
|
+
*/
|
|
1303
|
+
function useStable(valueCallback) {
|
|
1304
|
+
const ref = useRef(NOT_INITIALIZED);
|
|
1305
|
+
if (ref.current === NOT_INITIALIZED) {
|
|
1306
|
+
const val = valueCallback();
|
|
1307
|
+
ref.current = val;
|
|
1308
|
+
return val;
|
|
1309
|
+
}
|
|
1310
|
+
return ref.current;
|
|
1676
1311
|
}
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
bold,
|
|
1681
|
-
withoutMargins,
|
|
1682
|
-
color,
|
|
1683
|
-
...props
|
|
1684
|
-
} = userProps;
|
|
1685
|
-
const {
|
|
1686
|
-
theme
|
|
1687
|
-
} = useDesignSystemTheme();
|
|
1688
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
1689
|
-
children: jsx(AntDText$1, {
|
|
1690
|
-
...props,
|
|
1691
|
-
css: getTextEmotionStyles$1(theme, userProps),
|
|
1692
|
-
...dangerouslySetAntdProps
|
|
1693
|
-
})
|
|
1694
|
-
});
|
|
1312
|
+
let sequentialCounter = 0;
|
|
1313
|
+
function useStableUid() {
|
|
1314
|
+
return useStable(() => sequentialCounter++);
|
|
1695
1315
|
}
|
|
1696
1316
|
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1317
|
+
/** Props for UI components that support a "loading" state. */
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* A handler for integrating UI components with external latency instrumentation.
|
|
1321
|
+
* If provided via `LoadingStateContext`, hooks will be called whenever child
|
|
1322
|
+
* components in a "loading" state are mounted and unmounted.
|
|
1323
|
+
*/
|
|
1324
|
+
|
|
1325
|
+
const LoadingStateContext = /*#__PURE__*/createContext(null);
|
|
1326
|
+
/**
|
|
1327
|
+
* Indicates that the containing component is in a "loading" state, i.e. that the UI
|
|
1328
|
+
* displayed to the user is semantically equivalent to them seeing a spinner or a
|
|
1329
|
+
* loading indicator. This means that the UI is not in its final settled state yet.
|
|
1330
|
+
*
|
|
1331
|
+
* All components that are in a "loading" state should render a `<LoadingState>`
|
|
1332
|
+
* component, preferrably with an appropriate description.
|
|
1333
|
+
*
|
|
1334
|
+
* By itself, `<LoadingState>` doesn't do anything, but if used within `LoadingStateContext`,
|
|
1335
|
+
* it will call the provided `startLoading()`/`endLoading()` hooks when the component
|
|
1336
|
+
* is mounted/unmounted, which can be used to integrate existing latency instrumentation.
|
|
1337
|
+
*/
|
|
1338
|
+
const LoadingState = _ref => {
|
|
1339
|
+
let {
|
|
1340
|
+
description = 'Generic UI loading state'
|
|
1341
|
+
} = _ref;
|
|
1342
|
+
const uid = useStableUid();
|
|
1343
|
+
const loadingStateContext = useContext(LoadingStateContext);
|
|
1344
|
+
useLayoutEffect(() => {
|
|
1345
|
+
// mount
|
|
1346
|
+
if (loadingStateContext) {
|
|
1347
|
+
loadingStateContext.startLoading(uid, description);
|
|
1717
1348
|
}
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
};
|
|
1727
|
-
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisNewTabLinkStyles;");
|
|
1349
|
+
return () => {
|
|
1350
|
+
// unmount
|
|
1351
|
+
if (loadingStateContext) {
|
|
1352
|
+
loadingStateContext.endLoading(uid);
|
|
1353
|
+
}
|
|
1354
|
+
};
|
|
1355
|
+
}, [uid, description, loadingStateContext]);
|
|
1356
|
+
return null;
|
|
1728
1357
|
};
|
|
1729
|
-
|
|
1358
|
+
|
|
1359
|
+
const rotate = keyframes({
|
|
1360
|
+
'0%': {
|
|
1361
|
+
transform: 'rotate(0deg) translate3d(0, 0, 0)'
|
|
1362
|
+
},
|
|
1363
|
+
'100%': {
|
|
1364
|
+
transform: 'rotate(360deg) translate3d(0, 0, 0)'
|
|
1365
|
+
}
|
|
1366
|
+
});
|
|
1367
|
+
const cssSpinner = function (theme) {
|
|
1368
|
+
let frameRate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
|
|
1369
|
+
let delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
1370
|
+
let animationDuration = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
1371
|
+
let inheritColor = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
1730
1372
|
const styles = {
|
|
1731
|
-
|
|
1732
|
-
|
|
1373
|
+
animation: `${rotate} ${animationDuration}s steps(${frameRate}, end) infinite`,
|
|
1374
|
+
...(inheritColor ? {
|
|
1375
|
+
color: 'inherit'
|
|
1376
|
+
} : {
|
|
1377
|
+
color: theme.colors.textSecondary
|
|
1378
|
+
}),
|
|
1379
|
+
animationDelay: `${delay}s`,
|
|
1380
|
+
'@media only percy': {
|
|
1381
|
+
animation: 'none'
|
|
1382
|
+
}
|
|
1733
1383
|
};
|
|
1734
|
-
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:
|
|
1384
|
+
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:cssSpinner;");
|
|
1735
1385
|
};
|
|
1736
|
-
const
|
|
1737
|
-
const styles = {
|
|
1738
|
-
position: 'absolute',
|
|
1739
|
-
right: 0,
|
|
1740
|
-
bottom: 0,
|
|
1741
|
-
top: 0,
|
|
1742
|
-
display: 'flex',
|
|
1743
|
-
alignItems: 'center',
|
|
1744
|
-
...(useNewIcons && {
|
|
1745
|
-
fontSize: 12
|
|
1746
|
-
})
|
|
1747
|
-
};
|
|
1748
|
-
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisIconStyles;");
|
|
1749
|
-
};
|
|
1750
|
-
const Link = /*#__PURE__*/forwardRef(function Link(_ref, ref) {
|
|
1386
|
+
const Spinner = _ref => {
|
|
1751
1387
|
let {
|
|
1752
|
-
|
|
1388
|
+
frameRate,
|
|
1389
|
+
size = 'default',
|
|
1390
|
+
delay,
|
|
1391
|
+
className: propClass,
|
|
1392
|
+
label,
|
|
1393
|
+
animationDuration,
|
|
1394
|
+
inheritColor,
|
|
1395
|
+
loading = true,
|
|
1396
|
+
loadingDescription = 'Spinner',
|
|
1753
1397
|
...props
|
|
1754
1398
|
} = _ref;
|
|
1755
1399
|
const {
|
|
1756
|
-
|
|
1757
|
-
openInNewTab,
|
|
1758
|
-
...restProps
|
|
1759
|
-
} = props;
|
|
1760
|
-
const {
|
|
1761
|
-
theme,
|
|
1762
|
-
classNamePrefix
|
|
1763
|
-
} = useDesignSystemTheme();
|
|
1764
|
-
const newTabProps = {
|
|
1765
|
-
rel: 'noopener noreferrer',
|
|
1766
|
-
target: '_blank'
|
|
1767
|
-
};
|
|
1768
|
-
const linkProps = openInNewTab ? {
|
|
1769
|
-
...restProps,
|
|
1770
|
-
...newTabProps
|
|
1771
|
-
} : {
|
|
1772
|
-
...restProps
|
|
1773
|
-
};
|
|
1774
|
-
const linkStyles = props.ellipsis && openInNewTab ? [getLinkStyles$1(theme, classNamePrefix), getEllipsisNewTabLinkStyles()] : getLinkStyles$1(theme, classNamePrefix);
|
|
1775
|
-
const iconStyles = props.ellipsis ? [getIconStyles(theme), getEllipsisIconStyles()] : getIconStyles(theme);
|
|
1776
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
1777
|
-
children: jsxs(Typography$1.Link, {
|
|
1778
|
-
"aria-disabled": linkProps.disabled,
|
|
1779
|
-
css: linkStyles,
|
|
1780
|
-
ref: ref,
|
|
1781
|
-
...linkProps,
|
|
1782
|
-
...dangerouslySetAntdProps,
|
|
1783
|
-
children: [children, openInNewTab ? jsx(NewWindowIcon$1, {
|
|
1784
|
-
css: iconStyles,
|
|
1785
|
-
...newTabProps
|
|
1786
|
-
}) : null]
|
|
1787
|
-
})
|
|
1788
|
-
});
|
|
1789
|
-
});
|
|
1790
|
-
|
|
1791
|
-
const {
|
|
1792
|
-
Paragraph: AntDParagraph
|
|
1793
|
-
} = Typography$1;
|
|
1794
|
-
function getParagraphEmotionStyles(theme, props) {
|
|
1795
|
-
return /*#__PURE__*/css({
|
|
1796
|
-
'&&': {
|
|
1797
|
-
fontSize: theme.typography.fontSizeBase,
|
|
1798
|
-
fontWeight: theme.typography.typographyRegularFontWeight,
|
|
1799
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
1800
|
-
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
1801
|
-
},
|
|
1802
|
-
'& .anticon': {
|
|
1803
|
-
verticalAlign: 'text-bottom'
|
|
1804
|
-
}
|
|
1805
|
-
}, props.disabled && {
|
|
1806
|
-
'&&': {
|
|
1807
|
-
color: theme.colors.actionDisabledText
|
|
1808
|
-
}
|
|
1809
|
-
}, props.withoutMargins && {
|
|
1810
|
-
'&&': {
|
|
1811
|
-
marginTop: 0,
|
|
1812
|
-
marginBottom: 0
|
|
1813
|
-
}
|
|
1814
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getParagraphEmotionStyles;");
|
|
1815
|
-
}
|
|
1816
|
-
function Paragraph(userProps) {
|
|
1817
|
-
const {
|
|
1818
|
-
dangerouslySetAntdProps,
|
|
1819
|
-
withoutMargins,
|
|
1820
|
-
color,
|
|
1821
|
-
...props
|
|
1822
|
-
} = userProps;
|
|
1823
|
-
const {
|
|
1400
|
+
classNamePrefix,
|
|
1824
1401
|
theme
|
|
1825
1402
|
} = useDesignSystemTheme();
|
|
1826
|
-
|
|
1827
|
-
|
|
1403
|
+
|
|
1404
|
+
// We use Antd classes to keep styling unchanged
|
|
1405
|
+
// TODO(FEINF-1407): We want to move away from Antd classes and use Emotion for styling in the future
|
|
1406
|
+
const sizeSuffix = size === 'small' ? '-sm' : size === 'large' ? '-lg' : '';
|
|
1407
|
+
const sizeClass = sizeSuffix ? `${classNamePrefix}-spin${sizeSuffix}` : '';
|
|
1408
|
+
const wrapperClass = `${propClass || ''} ${classNamePrefix}-spin ${sizeClass} ${classNamePrefix}-spin-spinning ${DU_BOIS_ENABLE_ANIMATION_CLASSNAME}`.trim();
|
|
1409
|
+
const className = `${classNamePrefix}-spin-dot ${DU_BOIS_ENABLE_ANIMATION_CLASSNAME}`.trim();
|
|
1410
|
+
return (
|
|
1411
|
+
// className has to follow {...props}, otherwise is `css` prop is passed down it will overwrite our className
|
|
1412
|
+
jsxs("div", {
|
|
1828
1413
|
...props,
|
|
1829
|
-
className:
|
|
1830
|
-
|
|
1831
|
-
|
|
1414
|
+
className: wrapperClass,
|
|
1415
|
+
children: [loading && jsx(LoadingState, {
|
|
1416
|
+
description: loadingDescription
|
|
1417
|
+
}), jsx(AccessibleContainer, {
|
|
1418
|
+
label: label,
|
|
1419
|
+
children: jsx(LoadingIcon, {
|
|
1420
|
+
"aria-hidden": "false",
|
|
1421
|
+
css: cssSpinner(theme, frameRate, delay, animationDuration, inheritColor),
|
|
1422
|
+
className: className
|
|
1423
|
+
})
|
|
1424
|
+
})]
|
|
1832
1425
|
})
|
|
1833
|
-
|
|
1834
|
-
}
|
|
1426
|
+
);
|
|
1427
|
+
};
|
|
1835
1428
|
|
|
1836
|
-
const {
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
'
|
|
1853
|
-
|
|
1854
|
-
|
|
1429
|
+
const getDialogComboboxOptionLabelWidth = (theme, width) => {
|
|
1430
|
+
const paddingLeft = theme.spacing.xs + theme.spacing.sm;
|
|
1431
|
+
const iconWidth = theme.spacing.md;
|
|
1432
|
+
const labelMarginLeft = theme.spacing.sm;
|
|
1433
|
+
if (typeof width === 'string') {
|
|
1434
|
+
return `calc(${width} - ${paddingLeft + iconWidth + labelMarginLeft}px)`;
|
|
1435
|
+
}
|
|
1436
|
+
return width - paddingLeft + iconWidth + labelMarginLeft;
|
|
1437
|
+
};
|
|
1438
|
+
function isOptionDisabled(option) {
|
|
1439
|
+
return option.hasAttribute('disabled') && option.getAttribute('disabled') !== 'false';
|
|
1440
|
+
}
|
|
1441
|
+
function highlightFirstNonDisabledOption(firstOptionItem) {
|
|
1442
|
+
let startAt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'start';
|
|
1443
|
+
let previousSelection = arguments.length > 2 ? arguments[2] : undefined;
|
|
1444
|
+
if (isOptionDisabled(firstOptionItem)) {
|
|
1445
|
+
const firstHighlightableOption = findClosestOptionSibling(firstOptionItem, startAt === 'end' ? 'previous' : 'next');
|
|
1446
|
+
if (firstHighlightableOption) {
|
|
1447
|
+
highlightOption(firstHighlightableOption, previousSelection);
|
|
1855
1448
|
}
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1449
|
+
} else {
|
|
1450
|
+
highlightOption(firstOptionItem, previousSelection);
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
function findClosestOptionSibling(element, direction) {
|
|
1454
|
+
const nextSibling = direction === 'previous' ? element.previousElementSibling : element.nextElementSibling;
|
|
1455
|
+
if ((nextSibling === null || nextSibling === void 0 ? void 0 : nextSibling.getAttribute('role')) === 'option') {
|
|
1456
|
+
if (isOptionDisabled(nextSibling)) {
|
|
1457
|
+
return findClosestOptionSibling(nextSibling, direction);
|
|
1861
1458
|
}
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
background: theme.colors.typographyCodeBg,
|
|
1868
|
-
fontFamily: 'monospace',
|
|
1869
|
-
borderRadius: theme.borders.borderRadiusMd,
|
|
1870
|
-
padding: '2px 4px',
|
|
1871
|
-
border: 'unset',
|
|
1872
|
-
margin: 0
|
|
1459
|
+
return nextSibling;
|
|
1460
|
+
} else if (nextSibling) {
|
|
1461
|
+
let nextOptionSibling = nextSibling;
|
|
1462
|
+
while (nextOptionSibling && (nextOptionSibling.getAttribute('role') !== 'option' || isOptionDisabled(nextOptionSibling))) {
|
|
1463
|
+
nextOptionSibling = direction === 'previous' ? nextOptionSibling.previousElementSibling : nextOptionSibling.nextElementSibling;
|
|
1873
1464
|
}
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1465
|
+
return nextOptionSibling;
|
|
1466
|
+
}
|
|
1467
|
+
return null;
|
|
1468
|
+
}
|
|
1469
|
+
const resetAllHighlightedOptions = currentSelection => {
|
|
1470
|
+
const options = getContentOptions(currentSelection);
|
|
1471
|
+
options === null || options === void 0 || options.forEach(option => {
|
|
1472
|
+
option.setAttribute('tabIndex', '-1');
|
|
1473
|
+
option.setAttribute('data-highlighted', 'false');
|
|
1474
|
+
});
|
|
1475
|
+
};
|
|
1476
|
+
const highlightOption = function (currentSelection, prevSelection) {
|
|
1477
|
+
var _currentSelection$scr;
|
|
1478
|
+
let focus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
1479
|
+
if (prevSelection) {
|
|
1480
|
+
prevSelection.setAttribute('tabIndex', '-1');
|
|
1481
|
+
prevSelection.setAttribute('data-highlighted', 'false');
|
|
1482
|
+
}
|
|
1483
|
+
if (focus) {
|
|
1484
|
+
currentSelection.focus();
|
|
1485
|
+
}
|
|
1486
|
+
currentSelection.setAttribute('tabIndex', '0');
|
|
1487
|
+
currentSelection.setAttribute('data-highlighted', 'true');
|
|
1488
|
+
(_currentSelection$scr = currentSelection.scrollIntoView) === null || _currentSelection$scr === void 0 || _currentSelection$scr.call(currentSelection, {
|
|
1489
|
+
block: 'center'
|
|
1490
|
+
});
|
|
1491
|
+
};
|
|
1492
|
+
const findHighlightedOption = options => {
|
|
1493
|
+
var _options$find;
|
|
1494
|
+
return (_options$find = options.find(option => option.getAttribute('data-highlighted') === 'true')) !== null && _options$find !== void 0 ? _options$find : undefined;
|
|
1495
|
+
};
|
|
1496
|
+
const getContentOptions = element => {
|
|
1497
|
+
var _element$closest;
|
|
1498
|
+
const options = (_element$closest = element.closest('[data-combobox-option-list="true"]')) === null || _element$closest === void 0 ? void 0 : _element$closest.querySelectorAll('[role="option"]');
|
|
1499
|
+
return options ? Array.from(options) : undefined;
|
|
1500
|
+
};
|
|
1501
|
+
const getKeyboardNavigationFunctions = (handleSelect, _ref) => {
|
|
1502
|
+
let {
|
|
1503
|
+
onKeyDown,
|
|
1504
|
+
onMouseEnter,
|
|
1505
|
+
onDefaultKeyDown
|
|
1506
|
+
} = _ref;
|
|
1507
|
+
return {
|
|
1508
|
+
onKeyDown: e => {
|
|
1509
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
1510
|
+
switch (e.key) {
|
|
1511
|
+
case 'ArrowDown':
|
|
1512
|
+
e.preventDefault();
|
|
1513
|
+
const nextSibling = findClosestOptionSibling(e.currentTarget, 'next');
|
|
1514
|
+
if (nextSibling) {
|
|
1515
|
+
highlightOption(nextSibling, e.currentTarget);
|
|
1516
|
+
} else {
|
|
1517
|
+
var _getContentOptions;
|
|
1518
|
+
const firstOption = (_getContentOptions = getContentOptions(e.currentTarget)) === null || _getContentOptions === void 0 ? void 0 : _getContentOptions[0];
|
|
1519
|
+
if (firstOption) {
|
|
1520
|
+
highlightFirstNonDisabledOption(firstOption, 'start', e.currentTarget);
|
|
1902
1521
|
}
|
|
1903
|
-
}
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1522
|
+
}
|
|
1523
|
+
break;
|
|
1524
|
+
case 'ArrowUp':
|
|
1525
|
+
e.preventDefault();
|
|
1526
|
+
const previousSibling = findClosestOptionSibling(e.currentTarget, 'previous');
|
|
1527
|
+
if (previousSibling) {
|
|
1528
|
+
highlightOption(previousSibling, e.currentTarget);
|
|
1529
|
+
} else {
|
|
1530
|
+
var _getContentOptions2;
|
|
1531
|
+
const lastOption = (_getContentOptions2 = getContentOptions(e.currentTarget)) === null || _getContentOptions2 === void 0 ? void 0 : _getContentOptions2.slice(-1)[0];
|
|
1532
|
+
if (lastOption) {
|
|
1533
|
+
highlightFirstNonDisabledOption(lastOption, 'end', e.currentTarget);
|
|
1910
1534
|
}
|
|
1911
|
-
}
|
|
1535
|
+
}
|
|
1536
|
+
break;
|
|
1537
|
+
case 'Enter':
|
|
1538
|
+
e.preventDefault();
|
|
1539
|
+
handleSelect(e);
|
|
1540
|
+
break;
|
|
1912
1541
|
default:
|
|
1913
|
-
|
|
1542
|
+
onDefaultKeyDown === null || onDefaultKeyDown === void 0 || onDefaultKeyDown(e);
|
|
1543
|
+
break;
|
|
1914
1544
|
}
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
marginBottom: 0
|
|
1545
|
+
},
|
|
1546
|
+
onMouseEnter: e => {
|
|
1547
|
+
onMouseEnter === null || onMouseEnter === void 0 || onMouseEnter(e);
|
|
1548
|
+
resetTabIndexToFocusedElement(e.currentTarget);
|
|
1920
1549
|
}
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
}
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
css: getTextEmotionStyles(theme, userProps),
|
|
1941
|
-
...dangerouslySetAntdProps
|
|
1942
|
-
})
|
|
1550
|
+
};
|
|
1551
|
+
};
|
|
1552
|
+
const resetTabIndexToFocusedElement = elem => {
|
|
1553
|
+
resetAllHighlightedOptions(elem);
|
|
1554
|
+
elem.setAttribute('tabIndex', '0');
|
|
1555
|
+
elem.focus();
|
|
1556
|
+
};
|
|
1557
|
+
const dialogComboboxLookAheadKeyDown = (e, setLookAhead, lookAhead) => {
|
|
1558
|
+
var _e$currentTarget$pare, _e$currentTarget$pare2;
|
|
1559
|
+
if (e.key === 'Escape' || e.key === 'Tab' || e.key === 'Enter') {
|
|
1560
|
+
return;
|
|
1561
|
+
}
|
|
1562
|
+
e.preventDefault();
|
|
1563
|
+
const siblings = Array.from((_e$currentTarget$pare = (_e$currentTarget$pare2 = e.currentTarget.parentElement) === null || _e$currentTarget$pare2 === void 0 ? void 0 : _e$currentTarget$pare2.children) !== null && _e$currentTarget$pare !== void 0 ? _e$currentTarget$pare : []);
|
|
1564
|
+
// Look for the first sibling that starts with the pressed key + recently pressed keys (lookAhead, cleared after 1.5 seconds of inactivity)
|
|
1565
|
+
const nextSiblingIndex = siblings.findIndex(sibling => {
|
|
1566
|
+
var _sibling$textContent$, _sibling$textContent;
|
|
1567
|
+
const siblingLabel = (_sibling$textContent$ = (_sibling$textContent = sibling.textContent) === null || _sibling$textContent === void 0 ? void 0 : _sibling$textContent.toLowerCase()) !== null && _sibling$textContent$ !== void 0 ? _sibling$textContent$ : '';
|
|
1568
|
+
return siblingLabel.startsWith(lookAhead + e.key);
|
|
1943
1569
|
});
|
|
1944
|
-
|
|
1570
|
+
if (nextSiblingIndex !== -1) {
|
|
1571
|
+
const nextSibling = siblings[nextSiblingIndex];
|
|
1572
|
+
nextSibling.focus();
|
|
1573
|
+
if (setLookAhead) {
|
|
1574
|
+
setLookAhead(lookAhead + e.key);
|
|
1575
|
+
}
|
|
1576
|
+
resetTabIndexToFocusedElement(nextSibling);
|
|
1577
|
+
}
|
|
1578
|
+
};
|
|
1945
1579
|
|
|
1946
|
-
const {
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1580
|
+
const getComboboxContentWrapperStyles = (theme, _ref) => {
|
|
1581
|
+
let {
|
|
1582
|
+
maxHeight = '100vh',
|
|
1583
|
+
maxWidth = '100vw',
|
|
1584
|
+
minHeight = 0,
|
|
1585
|
+
minWidth = 0,
|
|
1586
|
+
width,
|
|
1587
|
+
useNewShadows
|
|
1588
|
+
} = _ref;
|
|
1589
|
+
return /*#__PURE__*/css({
|
|
1590
|
+
maxHeight,
|
|
1591
|
+
maxWidth,
|
|
1592
|
+
minHeight,
|
|
1593
|
+
minWidth,
|
|
1594
|
+
...(width ? {
|
|
1595
|
+
width
|
|
1596
|
+
} : {}),
|
|
1597
|
+
background: theme.colors.backgroundPrimary,
|
|
1598
|
+
color: theme.colors.textPrimary,
|
|
1599
|
+
overflow: 'auto',
|
|
1600
|
+
// Making sure the content popover overlaps the remove button when opens to the right
|
|
1601
|
+
zIndex: theme.options.zIndexBase + 10,
|
|
1602
|
+
boxSizing: 'border-box',
|
|
1603
|
+
border: `1px solid ${theme.colors.border}`,
|
|
1604
|
+
boxShadow: useNewShadows ? theme.shadows.lg : theme.general.shadowLow,
|
|
1605
|
+
borderRadius: theme.general.borderRadiusBase,
|
|
1606
|
+
colorScheme: theme.isDarkMode ? 'dark' : 'light',
|
|
1607
|
+
...getDarkModePortalStyles(theme, useNewShadows)
|
|
1608
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getComboboxContentWrapperStyles;");
|
|
1609
|
+
};
|
|
1610
|
+
const COMBOBOX_MENU_ITEM_PADDING = [6, 32, 6, 12];
|
|
1611
|
+
const getComboboxOptionItemWrapperStyles = theme => {
|
|
1612
|
+
return /*#__PURE__*/css(importantify({
|
|
1613
|
+
display: 'flex',
|
|
1614
|
+
flexDirection: 'row',
|
|
1615
|
+
alignItems: 'flex-start',
|
|
1616
|
+
justifyContent: 'flex-start',
|
|
1617
|
+
alignSelf: 'stretch',
|
|
1618
|
+
padding: `${COMBOBOX_MENU_ITEM_PADDING.map(x => `${x}px`).join(' ')}`,
|
|
1619
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
1620
|
+
boxSizing: 'content-box',
|
|
1621
|
+
cursor: 'pointer',
|
|
1622
|
+
userSelect: 'none',
|
|
1623
|
+
'&:hover, &[data-highlighted="true"]': {
|
|
1624
|
+
background: theme.colors.actionTertiaryBackgroundHover
|
|
1625
|
+
},
|
|
1626
|
+
'&:focus': {
|
|
1627
|
+
background: theme.colors.actionTertiaryBackgroundHover,
|
|
1628
|
+
outline: 'none'
|
|
1629
|
+
},
|
|
1630
|
+
'&[disabled]': {
|
|
1631
|
+
pointerEvents: 'none',
|
|
1632
|
+
color: theme.colors.actionDisabledText,
|
|
1633
|
+
background: theme.colors.backgroundPrimary
|
|
1634
|
+
}
|
|
1635
|
+
}), process.env.NODE_ENV === "production" ? "" : ";label:getComboboxOptionItemWrapperStyles;");
|
|
1636
|
+
};
|
|
1637
|
+
const getComboboxOptionLabelStyles = _ref2 => {
|
|
1638
|
+
let {
|
|
1639
|
+
theme,
|
|
1640
|
+
dangerouslyHideCheck,
|
|
1641
|
+
textOverflowMode,
|
|
1642
|
+
contentWidth,
|
|
1643
|
+
hasHintColumn
|
|
1644
|
+
} = _ref2;
|
|
1645
|
+
return /*#__PURE__*/css({
|
|
1646
|
+
marginLeft: !dangerouslyHideCheck ? theme.spacing.sm : 0,
|
|
1647
|
+
fontSize: theme.typography.fontSizeBase,
|
|
1648
|
+
fontStyle: 'normal',
|
|
1649
|
+
fontWeight: 400,
|
|
1650
|
+
cursor: 'pointer',
|
|
1651
|
+
overflow: 'hidden',
|
|
1652
|
+
wordBreak: 'break-word',
|
|
1653
|
+
...(textOverflowMode === 'ellipsis' && {
|
|
1654
|
+
textOverflow: 'ellipsis',
|
|
1655
|
+
whiteSpace: 'nowrap'
|
|
1656
|
+
}),
|
|
1657
|
+
...(contentWidth ? {
|
|
1658
|
+
width: getDialogComboboxOptionLabelWidth(theme, contentWidth)
|
|
1659
|
+
} : {}),
|
|
1660
|
+
...(hasHintColumn && {
|
|
1661
|
+
display: 'flex'
|
|
1662
|
+
})
|
|
1663
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getComboboxOptionLabelStyles;");
|
|
1664
|
+
};
|
|
1665
|
+
const getInfoIconStyles = theme => {
|
|
1666
|
+
return /*#__PURE__*/css({
|
|
1667
|
+
paddingLeft: theme.spacing.xs,
|
|
1668
|
+
color: theme.colors.textSecondary,
|
|
1669
|
+
pointerEvents: 'all',
|
|
1670
|
+
cursor: 'pointer',
|
|
1671
|
+
verticalAlign: 'middle'
|
|
1672
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getInfoIconStyles;");
|
|
1673
|
+
};
|
|
1674
|
+
const getCheckboxStyles = (theme, textOverflowMode) => {
|
|
1675
|
+
return /*#__PURE__*/css({
|
|
1676
|
+
pointerEvents: 'none',
|
|
1677
|
+
height: 'unset',
|
|
1678
|
+
width: '100%',
|
|
1679
|
+
'& > label': {
|
|
1680
|
+
display: 'flex',
|
|
1681
|
+
width: '100%',
|
|
1682
|
+
fontSize: theme.typography.fontSizeBase,
|
|
1683
|
+
fontStyle: 'normal',
|
|
1684
|
+
fontWeight: 400,
|
|
1685
|
+
cursor: 'pointer',
|
|
1686
|
+
'& > span:first-of-type': {
|
|
1687
|
+
alignSelf: 'flex-start',
|
|
1688
|
+
display: 'inline-flex',
|
|
1689
|
+
alignItems: 'center',
|
|
1690
|
+
paddingTop: theme.spacing.xs / 2
|
|
1691
|
+
},
|
|
1692
|
+
'& > span:last-of-type, & > span:last-of-type > label': {
|
|
1693
|
+
paddingRight: 0,
|
|
1694
|
+
width: '100%',
|
|
1695
|
+
overflow: 'hidden',
|
|
1696
|
+
wordBreak: 'break-word',
|
|
1697
|
+
...(textOverflowMode === 'ellipsis' ? {
|
|
1698
|
+
textOverflow: 'ellipsis',
|
|
1699
|
+
whiteSpace: 'nowrap'
|
|
1700
|
+
} : {})
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getCheckboxStyles;");
|
|
1704
|
+
};
|
|
1705
|
+
const getFooterStyles = theme => {
|
|
1706
|
+
return /*#__PURE__*/css({
|
|
1707
|
+
width: '100%',
|
|
1708
|
+
background: theme.colors.backgroundPrimary,
|
|
1709
|
+
padding: `${theme.spacing.sm}px ${theme.spacing.lg / 2}px ${theme.spacing.sm}px ${theme.spacing.lg / 2}px`,
|
|
1710
|
+
position: 'sticky',
|
|
1711
|
+
bottom: 0,
|
|
1712
|
+
boxSizing: 'border-box',
|
|
1713
|
+
'&:has(> .combobox-footer-add-button)': {
|
|
1714
|
+
padding: `${theme.spacing.sm}px 0 ${theme.spacing.sm}px 0`,
|
|
1715
|
+
'& > :not(.combobox-footer-add-button)': {
|
|
1716
|
+
marginLeft: `${theme.spacing.lg / 2}px`,
|
|
1717
|
+
marginRight: `${theme.spacing.lg / 2}px`
|
|
1718
|
+
},
|
|
1719
|
+
'& > .combobox-footer-add-button': {
|
|
1720
|
+
justifyContent: 'flex-start !important'
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getFooterStyles;");
|
|
1724
|
+
};
|
|
1725
|
+
const getSelectItemWithHintColumnStyles = function () {
|
|
1726
|
+
let hintColumnWidthPercent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 50;
|
|
1727
|
+
return /*#__PURE__*/css({
|
|
1728
|
+
flexGrow: 1,
|
|
1729
|
+
display: 'inline-grid',
|
|
1730
|
+
gridTemplateColumns: `${100 - hintColumnWidthPercent}% ${hintColumnWidthPercent}%`
|
|
1731
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getSelectItemWithHintColumnStyles;");
|
|
1732
|
+
};
|
|
1733
|
+
const getHintColumnStyles = (theme, disabled, textOverflowMode) => {
|
|
1734
|
+
return /*#__PURE__*/css({
|
|
1735
|
+
color: theme.colors.textSecondary,
|
|
1736
|
+
fontSize: theme.typography.fontSizeSm,
|
|
1737
|
+
textAlign: 'right',
|
|
1738
|
+
...(disabled && {
|
|
1739
|
+
color: theme.colors.actionDisabledText
|
|
1740
|
+
}),
|
|
1741
|
+
...(textOverflowMode === 'ellipsis' && {
|
|
1742
|
+
textOverflow: 'ellipsis',
|
|
1743
|
+
whiteSpace: 'nowrap',
|
|
1744
|
+
overflow: 'hidden'
|
|
1745
|
+
})
|
|
1746
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getHintColumnStyles;");
|
|
1747
|
+
};
|
|
1748
|
+
|
|
1749
|
+
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
1750
|
+
|
|
1751
|
+
let ValidSemanticColors = /*#__PURE__*/function (ValidSemanticColors) {
|
|
1752
|
+
ValidSemanticColors["ActionDangerDefaultBackgroundDefault"] = "actionDangerDefaultBackgroundDefault";
|
|
1753
|
+
ValidSemanticColors["ActionDangerDefaultBackgroundHover"] = "actionDangerDefaultBackgroundHover";
|
|
1754
|
+
ValidSemanticColors["ActionDangerDefaultBackgroundPress"] = "actionDangerDefaultBackgroundPress";
|
|
1755
|
+
ValidSemanticColors["ActionDangerDefaultBorderDefault"] = "actionDangerDefaultBorderDefault";
|
|
1756
|
+
ValidSemanticColors["ActionDangerDefaultBorderHover"] = "actionDangerDefaultBorderHover";
|
|
1757
|
+
ValidSemanticColors["ActionDangerDefaultBorderPress"] = "actionDangerDefaultBorderPress";
|
|
1758
|
+
ValidSemanticColors["ActionDangerDefaultTextDefault"] = "actionDangerDefaultTextDefault";
|
|
1759
|
+
ValidSemanticColors["ActionDangerDefaultTextHover"] = "actionDangerDefaultTextHover";
|
|
1760
|
+
ValidSemanticColors["ActionDangerDefaultTextPress"] = "actionDangerDefaultTextPress";
|
|
1761
|
+
ValidSemanticColors["ActionDangerPrimaryBackgroundDefault"] = "actionDangerPrimaryBackgroundDefault";
|
|
1762
|
+
ValidSemanticColors["ActionDangerPrimaryBackgroundHover"] = "actionDangerPrimaryBackgroundHover";
|
|
1763
|
+
ValidSemanticColors["ActionDangerPrimaryBackgroundPress"] = "actionDangerPrimaryBackgroundPress";
|
|
1764
|
+
ValidSemanticColors["ActionDangerPrimaryText"] = "actionDangerPrimaryText";
|
|
1765
|
+
ValidSemanticColors["ActionDefaultBackgroundDefault"] = "actionDefaultBackgroundDefault";
|
|
1766
|
+
ValidSemanticColors["ActionDefaultBackgroundHover"] = "actionDefaultBackgroundHover";
|
|
1767
|
+
ValidSemanticColors["ActionDefaultBackgroundPress"] = "actionDefaultBackgroundPress";
|
|
1768
|
+
ValidSemanticColors["ActionDefaultBorderDefault"] = "actionDefaultBorderDefault";
|
|
1769
|
+
ValidSemanticColors["ActionDefaultBorderFocus"] = "actionDefaultBorderFocus";
|
|
1770
|
+
ValidSemanticColors["ActionDefaultBorderHover"] = "actionDefaultBorderHover";
|
|
1771
|
+
ValidSemanticColors["ActionDefaultBorderPress"] = "actionDefaultBorderPress";
|
|
1772
|
+
ValidSemanticColors["ActionDefaultIconDefault"] = "actionDefaultIconDefault";
|
|
1773
|
+
ValidSemanticColors["ActionDefaultIconHover"] = "actionDefaultIconHover";
|
|
1774
|
+
ValidSemanticColors["ActionDefaultIconPress"] = "actionDefaultIconPress";
|
|
1775
|
+
ValidSemanticColors["ActionDefaultTextDefault"] = "actionDefaultTextDefault";
|
|
1776
|
+
ValidSemanticColors["ActionDefaultTextHover"] = "actionDefaultTextHover";
|
|
1777
|
+
ValidSemanticColors["ActionDefaultTextPress"] = "actionDefaultTextPress";
|
|
1778
|
+
ValidSemanticColors["ActionDisabledBackground"] = "actionDisabledBackground";
|
|
1779
|
+
ValidSemanticColors["ActionDisabledBorder"] = "actionDisabledBorder";
|
|
1780
|
+
ValidSemanticColors["ActionDisabledText"] = "actionDisabledText";
|
|
1781
|
+
ValidSemanticColors["ActionIconBackgroundDefault"] = "actionIconBackgroundDefault";
|
|
1782
|
+
ValidSemanticColors["ActionIconBackgroundHover"] = "actionIconBackgroundHover";
|
|
1783
|
+
ValidSemanticColors["ActionIconBackgroundPress"] = "actionIconBackgroundPress";
|
|
1784
|
+
ValidSemanticColors["ActionIconIconDefault"] = "actionIconIconDefault";
|
|
1785
|
+
ValidSemanticColors["ActionIconIconHover"] = "actionIconIconHover";
|
|
1786
|
+
ValidSemanticColors["ActionIconIconPress"] = "actionIconIconPress";
|
|
1787
|
+
ValidSemanticColors["ActionLinkDefault"] = "actionLinkDefault";
|
|
1788
|
+
ValidSemanticColors["ActionLinkHover"] = "actionLinkHover";
|
|
1789
|
+
ValidSemanticColors["ActionLinkPress"] = "actionLinkPress";
|
|
1790
|
+
ValidSemanticColors["ActionPrimaryBackgroundDefault"] = "actionPrimaryBackgroundDefault";
|
|
1791
|
+
ValidSemanticColors["ActionPrimaryBackgroundHover"] = "actionPrimaryBackgroundHover";
|
|
1792
|
+
ValidSemanticColors["ActionPrimaryBackgroundPress"] = "actionPrimaryBackgroundPress";
|
|
1793
|
+
ValidSemanticColors["ActionPrimaryIcon"] = "actionPrimaryIcon";
|
|
1794
|
+
ValidSemanticColors["ActionPrimaryTextDefault"] = "actionPrimaryTextDefault";
|
|
1795
|
+
ValidSemanticColors["ActionPrimaryTextHover"] = "actionPrimaryTextHover";
|
|
1796
|
+
ValidSemanticColors["ActionPrimaryTextPress"] = "actionPrimaryTextPress";
|
|
1797
|
+
ValidSemanticColors["ActionTertiaryBackgroundDefault"] = "actionTertiaryBackgroundDefault";
|
|
1798
|
+
ValidSemanticColors["ActionTertiaryBackgroundHover"] = "actionTertiaryBackgroundHover";
|
|
1799
|
+
ValidSemanticColors["ActionTertiaryBackgroundPress"] = "actionTertiaryBackgroundPress";
|
|
1800
|
+
ValidSemanticColors["ActionTertiaryIconDefault"] = "actionTertiaryIconDefault";
|
|
1801
|
+
ValidSemanticColors["ActionTertiaryIconHover"] = "actionTertiaryIconHover";
|
|
1802
|
+
ValidSemanticColors["ActionTertiaryIconPress"] = "actionTertiaryIconPress";
|
|
1803
|
+
ValidSemanticColors["ActionTertiaryTextDefault"] = "actionTertiaryTextDefault";
|
|
1804
|
+
ValidSemanticColors["ActionTertiaryTextHover"] = "actionTertiaryTextHover";
|
|
1805
|
+
ValidSemanticColors["ActionTertiaryTextPress"] = "actionTertiaryTextPress";
|
|
1806
|
+
ValidSemanticColors["BackgroundDanger"] = "backgroundDanger";
|
|
1807
|
+
ValidSemanticColors["BackgroundPrimary"] = "backgroundPrimary";
|
|
1808
|
+
ValidSemanticColors["BackgroundSecondary"] = "backgroundSecondary";
|
|
1809
|
+
ValidSemanticColors["BackgroundSuccess"] = "backgroundSuccess";
|
|
1810
|
+
ValidSemanticColors["BackgroundWarning"] = "backgroundWarning";
|
|
1811
|
+
ValidSemanticColors["Border"] = "border";
|
|
1812
|
+
ValidSemanticColors["BorderAccessible"] = "borderAccessible";
|
|
1813
|
+
ValidSemanticColors["BorderDanger"] = "borderDanger";
|
|
1814
|
+
ValidSemanticColors["BorderWarning"] = "borderWarning";
|
|
1815
|
+
ValidSemanticColors["CodeBackground"] = "codeBackground";
|
|
1816
|
+
ValidSemanticColors["OverlayOverlay"] = "overlayOverlay";
|
|
1817
|
+
ValidSemanticColors["ProgressFill"] = "progressFill";
|
|
1818
|
+
ValidSemanticColors["ProgressTrack"] = "progressTrack";
|
|
1819
|
+
ValidSemanticColors["Skeleton"] = "skeleton";
|
|
1820
|
+
ValidSemanticColors["TableBackgroundSelectedDefault"] = "tableBackgroundSelectedDefault";
|
|
1821
|
+
ValidSemanticColors["TableBackgroundSelectedHover"] = "tableBackgroundSelectedHover";
|
|
1822
|
+
ValidSemanticColors["TableBackgroundUnselectedDefault"] = "tableBackgroundUnselectedDefault";
|
|
1823
|
+
ValidSemanticColors["TableBackgroundUnselectedHover"] = "tableBackgroundUnselectedHover";
|
|
1824
|
+
ValidSemanticColors["TextPlaceholder"] = "textPlaceholder";
|
|
1825
|
+
ValidSemanticColors["TextPrimary"] = "textPrimary";
|
|
1826
|
+
ValidSemanticColors["TextSecondary"] = "textSecondary";
|
|
1827
|
+
ValidSemanticColors["TextValidationDanger"] = "textValidationDanger";
|
|
1828
|
+
ValidSemanticColors["TextValidationSuccess"] = "textValidationSuccess";
|
|
1829
|
+
ValidSemanticColors["TextValidationWarning"] = "textValidationWarning";
|
|
1830
|
+
ValidSemanticColors["TooltipBackgroundTooltip"] = "tooltipBackgroundTooltip";
|
|
1831
|
+
return ValidSemanticColors;
|
|
1832
|
+
}({});
|
|
1833
|
+
|
|
1834
|
+
const ColorVars = {
|
|
1835
|
+
primary: ValidSemanticColors.TextPrimary,
|
|
1836
|
+
secondary: ValidSemanticColors.TextSecondary,
|
|
1837
|
+
info: ValidSemanticColors.TextSecondary,
|
|
1838
|
+
error: ValidSemanticColors.TextValidationDanger,
|
|
1839
|
+
success: ValidSemanticColors.TextValidationSuccess,
|
|
1840
|
+
warning: ValidSemanticColors.TextValidationWarning
|
|
1841
|
+
};
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Recursively appends `!important` to all CSS properties in an Emotion `CSSObject`.
|
|
1845
|
+
* Used to ensure that we always override Ant styles, without worrying about selector precedence.
|
|
1846
|
+
*/
|
|
1847
|
+
function importantify(obj) {
|
|
1848
|
+
return _mapValues(obj, (value, key) => {
|
|
1849
|
+
if (_isString(value) || _isNumber(value) || _isBoolean(value)) {
|
|
1850
|
+
// Make sure we don't double-append important
|
|
1851
|
+
if (_isString(value) && _endsWith(value, '!important')) {
|
|
1852
|
+
return value;
|
|
1853
|
+
}
|
|
1854
|
+
if (_isNumber(value)) {
|
|
1855
|
+
if (unitless[key]) {
|
|
1856
|
+
return `${value}!important`;
|
|
1982
1857
|
}
|
|
1983
|
-
|
|
1984
|
-
|
|
1858
|
+
return `${value}px!important`;
|
|
1859
|
+
}
|
|
1860
|
+
return `${value}!important`;
|
|
1861
|
+
}
|
|
1862
|
+
if (_isNil(value)) {
|
|
1863
|
+
return value;
|
|
1864
|
+
}
|
|
1865
|
+
return importantify(value);
|
|
1866
|
+
});
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* Returns a text color, in case of invalid/missing key and missing fallback color it will return textPrimary
|
|
1871
|
+
* @param theme
|
|
1872
|
+
* @param key - key of TypographyColor
|
|
1873
|
+
* @param fallbackColor - color to return as fallback -- used to remove tertiary check inline
|
|
1874
|
+
*/
|
|
1875
|
+
function getTypographyColor(theme, key, fallbackColor) {
|
|
1876
|
+
if (theme && key && Object(theme.colors).hasOwnProperty(ColorVars[key])) {
|
|
1877
|
+
return theme.colors[ColorVars[key]];
|
|
1878
|
+
}
|
|
1879
|
+
return fallbackColor !== null && fallbackColor !== void 0 ? fallbackColor : theme.colors.textPrimary;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* Returns validation color based on state, has default validation colors if params are not provided
|
|
1884
|
+
* @param theme
|
|
1885
|
+
* @param validationState
|
|
1886
|
+
* @param errorColor
|
|
1887
|
+
* @param warningColor
|
|
1888
|
+
* @param successColor
|
|
1889
|
+
*/
|
|
1890
|
+
function getValidationStateColor(theme, validationState) {
|
|
1891
|
+
let {
|
|
1892
|
+
errorColor,
|
|
1893
|
+
warningColor,
|
|
1894
|
+
successColor
|
|
1895
|
+
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1896
|
+
switch (validationState) {
|
|
1897
|
+
case 'error':
|
|
1898
|
+
return errorColor || theme.colors.actionDangerPrimaryBackgroundDefault;
|
|
1899
|
+
case 'warning':
|
|
1900
|
+
return warningColor || theme.colors.textValidationWarning;
|
|
1901
|
+
case 'success':
|
|
1902
|
+
return successColor || theme.colors.textValidationSuccess;
|
|
1985
1903
|
default:
|
|
1986
|
-
return
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1904
|
+
return undefined;
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
function getDarkModePortalStyles(theme, useNewShadows) {
|
|
1908
|
+
if (!theme || !theme.isDarkMode) {
|
|
1909
|
+
return {};
|
|
1910
|
+
}
|
|
1911
|
+
return {
|
|
1912
|
+
border: `1px solid ${theme.colors.borderDecorative}`,
|
|
1913
|
+
// With the new shadows we have corrected the style of shadows for dark mode, and don't need to disable them.
|
|
1914
|
+
...(useNewShadows ? {} : {
|
|
1915
|
+
boxShadow: 'none'
|
|
1916
|
+
})
|
|
1917
|
+
};
|
|
1918
|
+
}
|
|
1919
|
+
const shadowCoverTop = bgColor => `linear-gradient(${bgColor} 30%, rgba(0, 0, 0, 0)) center top`;
|
|
1920
|
+
const shadowCoverBot = bgColor => `linear-gradient(rgba(0, 0, 0, 0), ${bgColor} 70%) center bottom`;
|
|
1921
|
+
const shadowCoverLeft = bgColor => `linear-gradient(to left, rgba(0, 0, 0, 0), ${bgColor} 30%) left center`;
|
|
1922
|
+
const shadowCoverRight = bgColor => `linear-gradient(to left, ${bgColor} 70%, rgba(0, 0, 0, 0)) right center`;
|
|
1923
|
+
const shadowTop = shadowRgb => `radial-gradient(
|
|
1924
|
+
farthest-side at 50% 0,
|
|
1925
|
+
rgba(${shadowRgb}, 0.2),
|
|
1926
|
+
rgba(${shadowRgb}, 0)
|
|
1927
|
+
) center top`;
|
|
1928
|
+
const shadowBot = shadowRgb => `radial-gradient(
|
|
1929
|
+
farthest-side at 50% 100%,
|
|
1930
|
+
rgba(${shadowRgb}, 0.2),
|
|
1931
|
+
rgba(${shadowRgb}, 0)
|
|
1932
|
+
) center bottom`;
|
|
1933
|
+
const shadowLeft = shadowRgb => `radial-gradient(
|
|
1934
|
+
farthest-side at 0 50%,
|
|
1935
|
+
rgba(${shadowRgb}, 0.2),
|
|
1936
|
+
rgba(${shadowRgb}, 0)
|
|
1937
|
+
) left center`;
|
|
1938
|
+
const shadowRight = shadowRgb => `radial-gradient(
|
|
1939
|
+
farthest-side at 100% 50%,
|
|
1940
|
+
rgba(${shadowRgb}, 0.2),
|
|
1941
|
+
rgba(${shadowRgb}, 0)
|
|
1942
|
+
) right center`;
|
|
1943
|
+
const shadowCoverBackgroundSizeVertical = '100% 40px';
|
|
1944
|
+
const shadowCoverBackgroundSizeHorizontal = '40px 100%';
|
|
1945
|
+
const shadowBackgroundSizeVertical = '100% 14px';
|
|
1946
|
+
const shadowBackgroundSizeHorizontal = '14px 100%';
|
|
1947
|
+
const getShadowScrollStylesMemoized = _memoize(function getShadowScrollStylesMemoized(theme, backgroundColor) {
|
|
1948
|
+
let orientation = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'vertical';
|
|
1949
|
+
const bgColor = backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : theme.colors.backgroundPrimary;
|
|
1950
|
+
const shadowColor = theme.isDarkMode ? shadowDarkRgb : shadowLightRgb;
|
|
1951
|
+
if (orientation === 'horizontal') {
|
|
1952
|
+
return {
|
|
1953
|
+
background: `
|
|
1954
|
+
${shadowCoverLeft(bgColor)},
|
|
1955
|
+
${shadowCoverRight(bgColor)},
|
|
1956
|
+
${shadowLeft(shadowColor)},
|
|
1957
|
+
${shadowRight(shadowColor)}`,
|
|
1958
|
+
backgroundRepeat: 'no-repeat',
|
|
1959
|
+
backgroundSize: `
|
|
1960
|
+
${shadowCoverBackgroundSizeHorizontal},
|
|
1961
|
+
${shadowCoverBackgroundSizeHorizontal},
|
|
1962
|
+
${shadowBackgroundSizeHorizontal},
|
|
1963
|
+
${shadowBackgroundSizeHorizontal}`,
|
|
1964
|
+
backgroundAttachment: 'local, local, scroll, scroll'
|
|
1965
|
+
};
|
|
1966
|
+
}
|
|
1967
|
+
return {
|
|
1968
|
+
background: `
|
|
1969
|
+
${shadowCoverTop(bgColor)},
|
|
1970
|
+
${shadowCoverBot(bgColor)},
|
|
1971
|
+
${shadowTop(shadowColor)},
|
|
1972
|
+
${shadowBot(shadowColor)}`,
|
|
1973
|
+
backgroundRepeat: 'no-repeat',
|
|
1974
|
+
backgroundSize: `
|
|
1975
|
+
${shadowCoverBackgroundSizeVertical},
|
|
1976
|
+
${shadowCoverBackgroundSizeVertical},
|
|
1977
|
+
${shadowBackgroundSizeVertical},
|
|
1978
|
+
${shadowBackgroundSizeVertical}`,
|
|
1979
|
+
backgroundAttachment: 'local, local, scroll, scroll'
|
|
1980
|
+
};
|
|
1981
|
+
}, (theme, backgroundColor, orientation) => {
|
|
1982
|
+
return `${theme.isDarkMode}-${backgroundColor}-${orientation}`;
|
|
1983
|
+
});
|
|
1984
|
+
const getShadowScrollStyles = function getShadowScrollStyles(theme) {
|
|
1985
|
+
let {
|
|
1986
|
+
backgroundColor,
|
|
1987
|
+
orientation
|
|
1988
|
+
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1989
|
+
return getShadowScrollStylesMemoized(theme, backgroundColor, orientation);
|
|
1990
|
+
};
|
|
1991
|
+
const getBottomOnlyShadowScrollStylesMemoized = _memoize(function getBottomOnlyShadowScrollStylesMemoized(theme, backgroundColor) {
|
|
1992
|
+
const bgColor = backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : theme.colors.backgroundPrimary;
|
|
1993
|
+
return {
|
|
1994
|
+
background: `
|
|
1995
|
+
${shadowCoverBot(bgColor)},
|
|
1996
|
+
${shadowBot(theme.isDarkMode ? shadowDarkRgb : shadowLightRgb)}`,
|
|
1997
|
+
backgroundRepeat: 'no-repeat',
|
|
1998
|
+
backgroundSize: `
|
|
1999
|
+
${shadowCoverBackgroundSizeVertical},
|
|
2000
|
+
${shadowBackgroundSizeVertical}`,
|
|
2001
|
+
backgroundAttachment: 'local, scroll'
|
|
2002
|
+
};
|
|
2003
|
+
});
|
|
2004
|
+
const getBottomOnlyShadowScrollStyles = function getBottomOnlyShadowScrollStyles(theme) {
|
|
2005
|
+
let {
|
|
2006
|
+
backgroundColor
|
|
2007
|
+
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2008
|
+
return getBottomOnlyShadowScrollStylesMemoized(theme, backgroundColor);
|
|
2009
|
+
};
|
|
2010
|
+
function getVirtualizedComboboxMenuItemStyles(virtualItem) {
|
|
2011
|
+
const topBottomPadding = COMBOBOX_MENU_ITEM_PADDING[0] + COMBOBOX_MENU_ITEM_PADDING[2];
|
|
2012
|
+
const leftRightPadding = COMBOBOX_MENU_ITEM_PADDING[1] + COMBOBOX_MENU_ITEM_PADDING[3];
|
|
2013
|
+
return {
|
|
2014
|
+
position: 'absolute',
|
|
2015
|
+
width: `calc(100% - ${leftRightPadding}px)`,
|
|
2016
|
+
height: `${virtualItem.size - topBottomPadding}px`,
|
|
2017
|
+
transform: `translateY(${virtualItem.start}px)`
|
|
2018
|
+
};
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
// Define a module-global observer and a WeakMap on elements to hold callbacks
|
|
2022
|
+
let sharedObserver = null;
|
|
2023
|
+
const entryCallbackMap = new WeakMap();
|
|
2024
|
+
const ensureSharedObserverExists = () => {
|
|
2025
|
+
if (!sharedObserver) {
|
|
2026
|
+
sharedObserver = new IntersectionObserver(entries => {
|
|
2027
|
+
entries.forEach(entry => {
|
|
2028
|
+
if (entry.isIntersecting) {
|
|
2029
|
+
const entryCallback = entryCallbackMap.get(entry.target);
|
|
2030
|
+
if (entryCallback) {
|
|
2031
|
+
entryCallback();
|
|
2032
|
+
entryCallbackMap.delete(entry.target);
|
|
2033
|
+
}
|
|
1994
2034
|
}
|
|
1995
|
-
}
|
|
2035
|
+
});
|
|
2036
|
+
});
|
|
1996
2037
|
}
|
|
2038
|
+
};
|
|
2039
|
+
function observeElement(element, callback) {
|
|
2040
|
+
var _sharedObserver;
|
|
2041
|
+
ensureSharedObserverExists();
|
|
2042
|
+
entryCallbackMap.set(element, callback);
|
|
2043
|
+
(_sharedObserver = sharedObserver) === null || _sharedObserver === void 0 || _sharedObserver.observe(element);
|
|
2044
|
+
return () => {
|
|
2045
|
+
if (element) {
|
|
2046
|
+
var _sharedObserver2;
|
|
2047
|
+
(_sharedObserver2 = sharedObserver) === null || _sharedObserver2 === void 0 || _sharedObserver2.unobserve(element);
|
|
2048
|
+
entryCallbackMap.delete(element);
|
|
2049
|
+
}
|
|
2050
|
+
};
|
|
1997
2051
|
}
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2052
|
+
/**
|
|
2053
|
+
* Checks if the element was viewed and calls the onView callback.
|
|
2054
|
+
* NOTE: This hook only triggers the onView callback once for the element.
|
|
2055
|
+
* @param onView - callback to be called when the element is viewed
|
|
2056
|
+
* @param resetKey - optional key that resets the observer when changed
|
|
2057
|
+
* @typeParam T - extends Element to specify the type of element being observed
|
|
2058
|
+
*/
|
|
2059
|
+
const useNotifyOnFirstView = _ref => {
|
|
2060
|
+
let {
|
|
2061
|
+
onView,
|
|
2062
|
+
resetKey
|
|
2063
|
+
} = _ref;
|
|
2064
|
+
const isViewedRef = useRef(false);
|
|
2065
|
+
const elementRef = useRef(null);
|
|
2066
|
+
const previousResetKey = useRef(resetKey);
|
|
2067
|
+
|
|
2068
|
+
// Only reset isViewedRef when resetKey changes
|
|
2069
|
+
useEffect(() => {
|
|
2070
|
+
if (previousResetKey.current !== resetKey) {
|
|
2071
|
+
isViewedRef.current = false;
|
|
2072
|
+
previousResetKey.current = resetKey;
|
|
2005
2073
|
}
|
|
2006
|
-
},
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2074
|
+
}, [resetKey]);
|
|
2075
|
+
useEffect(() => {
|
|
2076
|
+
const element = elementRef.current;
|
|
2077
|
+
// If already viewed or element is not available, do nothing
|
|
2078
|
+
if (!element || isViewedRef.current) {
|
|
2079
|
+
return;
|
|
2080
|
+
}
|
|
2081
|
+
const callback = () => {
|
|
2082
|
+
isViewedRef.current = true;
|
|
2083
|
+
onView();
|
|
2084
|
+
};
|
|
2085
|
+
|
|
2086
|
+
// If IntersectionObserver is not available, assume that the element is visible
|
|
2087
|
+
if (!window.IntersectionObserver) {
|
|
2088
|
+
callback();
|
|
2089
|
+
return;
|
|
2090
|
+
}
|
|
2091
|
+
return observeElement(element, callback);
|
|
2092
|
+
}, [onView]);
|
|
2093
|
+
return {
|
|
2094
|
+
elementRef
|
|
2095
|
+
};
|
|
2096
|
+
};
|
|
2097
|
+
|
|
2098
|
+
const useDesignSystemSafexFlags = () => {
|
|
2099
|
+
return {
|
|
2100
|
+
useNewShadows: safex('databricks.fe.designsystem.useNewShadows', false)
|
|
2101
|
+
};
|
|
2102
|
+
};
|
|
2103
|
+
|
|
2104
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
2105
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
2106
|
+
name: "g8zzui",
|
|
2107
|
+
styles: "cursor:progress"
|
|
2108
|
+
} : {
|
|
2109
|
+
name: "4y1qki-AccessibleContainer",
|
|
2110
|
+
styles: "cursor:progress;label:AccessibleContainer;",
|
|
2111
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
2112
|
+
};
|
|
2113
|
+
function AccessibleContainer(_ref) {
|
|
2114
|
+
let {
|
|
2115
|
+
children,
|
|
2116
|
+
label
|
|
2117
|
+
} = _ref;
|
|
2118
|
+
if (!label) {
|
|
2119
|
+
return jsx(Fragment, {
|
|
2120
|
+
children: children
|
|
2121
|
+
});
|
|
2122
|
+
}
|
|
2123
|
+
return jsxs("div", {
|
|
2124
|
+
css: _ref2,
|
|
2125
|
+
children: [jsx("span", {
|
|
2126
|
+
css: visuallyHidden,
|
|
2127
|
+
children: label
|
|
2128
|
+
}), jsx("div", {
|
|
2129
|
+
"aria-hidden": true,
|
|
2130
|
+
children: children
|
|
2131
|
+
})]
|
|
2132
|
+
});
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
const DefaultDesignSystemEventSuppressInteractionContextValue = {
|
|
2136
|
+
suppressAnalyticsStartInteraction: false
|
|
2137
|
+
};
|
|
2138
|
+
const DesignSystemEventSuppressInteractionTrueContextValue = {
|
|
2139
|
+
suppressAnalyticsStartInteraction: true
|
|
2140
|
+
};
|
|
2141
|
+
const DesignSystemEventSuppressInteractionProviderContext = /*#__PURE__*/React__default.createContext(DefaultDesignSystemEventSuppressInteractionContextValue);
|
|
2142
|
+
|
|
2143
|
+
/**
|
|
2144
|
+
* This gets the event suppress interaction provider, is used to suppress the start interaction for analytics events.
|
|
2145
|
+
*
|
|
2146
|
+
* @returns DesignSystemEventSuppressInteractionContextType
|
|
2147
|
+
*/
|
|
2148
|
+
const useDesignSystemEventSuppressInteractionContext = () => {
|
|
2149
|
+
return useContext(DesignSystemEventSuppressInteractionProviderContext);
|
|
2150
|
+
};
|
|
2151
|
+
|
|
2152
|
+
let DesignSystemEventProviderComponentTypes = /*#__PURE__*/function (DesignSystemEventProviderComponentTypes) {
|
|
2153
|
+
DesignSystemEventProviderComponentTypes["Accordion"] = "accordion";
|
|
2154
|
+
DesignSystemEventProviderComponentTypes["Alert"] = "alert";
|
|
2155
|
+
DesignSystemEventProviderComponentTypes["Banner"] = "banner";
|
|
2156
|
+
DesignSystemEventProviderComponentTypes["Button"] = "button";
|
|
2157
|
+
DesignSystemEventProviderComponentTypes["Card"] = "card";
|
|
2158
|
+
DesignSystemEventProviderComponentTypes["Checkbox"] = "checkbox";
|
|
2159
|
+
DesignSystemEventProviderComponentTypes["ContextMenuCheckboxItem"] = "context_menu_checkbox_item";
|
|
2160
|
+
DesignSystemEventProviderComponentTypes["ContextMenuItem"] = "context_menu_item";
|
|
2161
|
+
DesignSystemEventProviderComponentTypes["ContextMenuRadioGroup"] = "context_menu_radio_group";
|
|
2162
|
+
DesignSystemEventProviderComponentTypes["DialogCombobox"] = "dialog_combobox";
|
|
2163
|
+
DesignSystemEventProviderComponentTypes["Drawer"] = "drawer_content";
|
|
2164
|
+
DesignSystemEventProviderComponentTypes["DropdownMenuCheckboxItem"] = "dropdown_menu_checkbox_item";
|
|
2165
|
+
DesignSystemEventProviderComponentTypes["DropdownMenuItem"] = "dropdown_menu_item";
|
|
2166
|
+
DesignSystemEventProviderComponentTypes["DropdownMenuRadioGroup"] = "dropdown_menu_radio_group";
|
|
2167
|
+
DesignSystemEventProviderComponentTypes["Form"] = "form";
|
|
2168
|
+
DesignSystemEventProviderComponentTypes["Input"] = "input";
|
|
2169
|
+
DesignSystemEventProviderComponentTypes["LegacySelect"] = "legacy_select";
|
|
2170
|
+
DesignSystemEventProviderComponentTypes["Modal"] = "modal";
|
|
2171
|
+
DesignSystemEventProviderComponentTypes["Notification"] = "notification";
|
|
2172
|
+
DesignSystemEventProviderComponentTypes["Pagination"] = "pagination";
|
|
2173
|
+
DesignSystemEventProviderComponentTypes["PillControl"] = "pill_control";
|
|
2174
|
+
DesignSystemEventProviderComponentTypes["Popover"] = "popover";
|
|
2175
|
+
DesignSystemEventProviderComponentTypes["PreviewCard"] = "preview_card";
|
|
2176
|
+
DesignSystemEventProviderComponentTypes["RadioGroup"] = "radio_group";
|
|
2177
|
+
DesignSystemEventProviderComponentTypes["SegmentedControlGroup"] = "segmented_control_group";
|
|
2178
|
+
DesignSystemEventProviderComponentTypes["SimpleSelect"] = "simple_select";
|
|
2179
|
+
DesignSystemEventProviderComponentTypes["Switch"] = "switch";
|
|
2180
|
+
DesignSystemEventProviderComponentTypes["TableHeader"] = "table_header";
|
|
2181
|
+
DesignSystemEventProviderComponentTypes["Tabs"] = "tabs";
|
|
2182
|
+
DesignSystemEventProviderComponentTypes["Tag"] = "tag";
|
|
2183
|
+
DesignSystemEventProviderComponentTypes["TextArea"] = "text_area";
|
|
2184
|
+
DesignSystemEventProviderComponentTypes["ToggleButton"] = "toggle_button";
|
|
2185
|
+
DesignSystemEventProviderComponentTypes["Tooltip"] = "tooltip";
|
|
2186
|
+
DesignSystemEventProviderComponentTypes["TypeaheadCombobox"] = "typeahead_combobox";
|
|
2187
|
+
DesignSystemEventProviderComponentTypes["TypographyLink"] = "typography_link";
|
|
2188
|
+
return DesignSystemEventProviderComponentTypes;
|
|
2189
|
+
}({});
|
|
2190
|
+
let DesignSystemEventProviderAnalyticsEventTypes = /*#__PURE__*/function (DesignSystemEventProviderAnalyticsEventTypes) {
|
|
2191
|
+
DesignSystemEventProviderAnalyticsEventTypes["OnClick"] = "onClick";
|
|
2192
|
+
DesignSystemEventProviderAnalyticsEventTypes["OnSubmit"] = "onSubmit";
|
|
2193
|
+
DesignSystemEventProviderAnalyticsEventTypes["OnValueChange"] = "onValueChange";
|
|
2194
|
+
DesignSystemEventProviderAnalyticsEventTypes["OnView"] = "onView";
|
|
2195
|
+
return DesignSystemEventProviderAnalyticsEventTypes;
|
|
2196
|
+
}({});
|
|
2197
|
+
const shouldTriggerCallback = (eventType, analyticsEvents) => {
|
|
2198
|
+
return analyticsEvents.includes(eventType);
|
|
2199
|
+
};
|
|
2200
|
+
const DefaultEmptyCallbacks = {
|
|
2201
|
+
callback: () => {}
|
|
2202
|
+
};
|
|
2203
|
+
const DesignSystemEventProviderContext = /*#__PURE__*/React__default.createContext(DefaultEmptyCallbacks);
|
|
2204
|
+
|
|
2205
|
+
/**
|
|
2206
|
+
* This gets the event provider, which is used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
|
|
2207
|
+
* If the value is undefined, then the expected behavior is to not emit any events.
|
|
2208
|
+
*
|
|
2209
|
+
* @returns DesignSystemEventProviderContextType
|
|
2210
|
+
*/
|
|
2211
|
+
const useDesignSystemEventProviderContext = () => {
|
|
2212
|
+
return useContext(DesignSystemEventProviderContext);
|
|
2213
|
+
};
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* NOTE: This is not suggested for direct usage from engineers, and should emit your own events.
|
|
2217
|
+
* See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
|
|
2218
|
+
*
|
|
2219
|
+
* This gets the event provider component event type callbacks.
|
|
2220
|
+
* If context & componentId are not undefined, then it will check if the event is in analyticsEvents or the default analyticsEvents for that component.
|
|
2221
|
+
* If the context or componentId are undefined, then the expected behavior is to not emit any events.
|
|
2222
|
+
*
|
|
2223
|
+
* @returns Object of event callbacks
|
|
2224
|
+
*/
|
|
2225
|
+
const useDesignSystemEventComponentCallbacks = _ref => {
|
|
2226
|
+
let {
|
|
2227
|
+
componentType,
|
|
2228
|
+
componentId,
|
|
2229
|
+
analyticsEvents,
|
|
2230
|
+
valueHasNoPii,
|
|
2231
|
+
shouldStartInteraction,
|
|
2232
|
+
isInteractionSubject
|
|
2233
|
+
} = _ref;
|
|
2234
|
+
const context = useDesignSystemEventProviderContext();
|
|
2235
|
+
const suppressInteractionContext = useDesignSystemEventSuppressInteractionContext();
|
|
2236
|
+
// If shouldStartInteraction is explicitly true or has no suppression when shouldStartInteraction
|
|
2237
|
+
// is not defined for an onClick event, then it will start the interaction
|
|
2238
|
+
const shouldStartInteractionComplete = useMemo(() => shouldStartInteraction || shouldStartInteraction === undefined && !suppressInteractionContext.suppressAnalyticsStartInteraction && (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, analyticsEvents) || shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnSubmit, analyticsEvents)), [suppressInteractionContext, shouldStartInteraction, analyticsEvents]);
|
|
2239
|
+
const callbacks = useMemo(() => {
|
|
2240
|
+
if (context === DefaultEmptyCallbacks || componentId === undefined) {
|
|
2241
|
+
return {
|
|
2242
|
+
onClick: () => {},
|
|
2243
|
+
onSubmit: () => {},
|
|
2244
|
+
onValueChange: () => {},
|
|
2245
|
+
onView: () => {}
|
|
2246
|
+
};
|
|
2011
2247
|
}
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2248
|
+
return {
|
|
2249
|
+
onClick: event => {
|
|
2250
|
+
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, analyticsEvents)) {
|
|
2251
|
+
context.callback({
|
|
2252
|
+
eventType: DesignSystemEventProviderAnalyticsEventTypes.OnClick,
|
|
2253
|
+
componentType,
|
|
2254
|
+
componentId,
|
|
2255
|
+
value: undefined,
|
|
2256
|
+
shouldStartInteraction: shouldStartInteractionComplete,
|
|
2257
|
+
event,
|
|
2258
|
+
isInteractionSubject
|
|
2259
|
+
});
|
|
2260
|
+
}
|
|
2261
|
+
},
|
|
2262
|
+
onSubmit: (event, referrerComponent) => {
|
|
2263
|
+
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnSubmit, analyticsEvents)) {
|
|
2264
|
+
context.callback({
|
|
2265
|
+
eventType: DesignSystemEventProviderAnalyticsEventTypes.OnSubmit,
|
|
2266
|
+
componentType,
|
|
2267
|
+
componentId,
|
|
2268
|
+
value: undefined,
|
|
2269
|
+
shouldStartInteraction: shouldStartInteractionComplete,
|
|
2270
|
+
event,
|
|
2271
|
+
referrerComponent
|
|
2272
|
+
});
|
|
2273
|
+
}
|
|
2274
|
+
},
|
|
2275
|
+
onValueChange: value => {
|
|
2276
|
+
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnValueChange, analyticsEvents)) {
|
|
2277
|
+
context.callback({
|
|
2278
|
+
eventType: DesignSystemEventProviderAnalyticsEventTypes.OnValueChange,
|
|
2279
|
+
componentType,
|
|
2280
|
+
componentId,
|
|
2281
|
+
value: valueHasNoPii ? value : undefined,
|
|
2282
|
+
shouldStartInteraction: shouldStartInteractionComplete
|
|
2283
|
+
});
|
|
2284
|
+
}
|
|
2285
|
+
},
|
|
2286
|
+
onView: () => {
|
|
2287
|
+
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnView, analyticsEvents)) {
|
|
2288
|
+
context.callback({
|
|
2289
|
+
eventType: DesignSystemEventProviderAnalyticsEventTypes.OnView,
|
|
2290
|
+
componentType,
|
|
2291
|
+
componentId,
|
|
2292
|
+
value: undefined,
|
|
2293
|
+
shouldStartInteraction: shouldStartInteractionComplete
|
|
2294
|
+
});
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
};
|
|
2298
|
+
}, [context, componentId, analyticsEvents, componentType, shouldStartInteractionComplete, isInteractionSubject, valueHasNoPii]);
|
|
2299
|
+
return callbacks;
|
|
2300
|
+
};
|
|
2301
|
+
|
|
2302
|
+
/**
|
|
2303
|
+
* NOTE: This is not suggested for direct usage from engineers, and should use RecordEventContext instead.
|
|
2304
|
+
* See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
|
|
2305
|
+
*
|
|
2306
|
+
* This is the Design System Event Context Provider, and is only used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
|
|
2307
|
+
*
|
|
2308
|
+
* @param children Children react elements
|
|
2309
|
+
* @param callback The event callback function
|
|
2310
|
+
* @returns Design System Event Context Provider with the children inside
|
|
2311
|
+
*/
|
|
2312
|
+
function DesignSystemEventProvider(_ref2) {
|
|
2313
|
+
let {
|
|
2314
|
+
children,
|
|
2315
|
+
callback
|
|
2316
|
+
} = _ref2;
|
|
2317
|
+
const contextValue = useMemo(() => {
|
|
2318
|
+
return {
|
|
2319
|
+
callback
|
|
2320
|
+
};
|
|
2321
|
+
}, [callback]);
|
|
2322
|
+
return jsx(DesignSystemEventProviderContext.Provider, {
|
|
2323
|
+
value: contextValue,
|
|
2324
|
+
children: children
|
|
2031
2325
|
});
|
|
2032
2326
|
}
|
|
2033
2327
|
|
|
2034
|
-
const Typography = /* #__PURE__ */(() => {
|
|
2035
|
-
function Typography(_ref) {
|
|
2036
|
-
let {
|
|
2037
|
-
dangerouslySetAntdProps,
|
|
2038
|
-
...props
|
|
2039
|
-
} = _ref;
|
|
2040
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
2041
|
-
children: jsx(Typography$1, {
|
|
2042
|
-
...props,
|
|
2043
|
-
...dangerouslySetAntdProps
|
|
2044
|
-
})
|
|
2045
|
-
});
|
|
2046
|
-
}
|
|
2047
|
-
Typography.Text = Text;
|
|
2048
|
-
Typography.Title = Title;
|
|
2049
|
-
Typography.Paragraph = Paragraph;
|
|
2050
|
-
Typography.Link = Link;
|
|
2051
|
-
Typography.Hint = Hint;
|
|
2052
|
-
return Typography;
|
|
2053
|
-
})();
|
|
2054
|
-
|
|
2055
2328
|
function getDefaultStyles(theme) {
|
|
2056
2329
|
let loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
2057
2330
|
const defaultStyles = {
|
|
@@ -2096,7 +2369,7 @@ function getPrimaryStyles(theme) {
|
|
|
2096
2369
|
}
|
|
2097
2370
|
};
|
|
2098
2371
|
}
|
|
2099
|
-
function getLinkStyles(theme) {
|
|
2372
|
+
function getLinkStyles$1(theme) {
|
|
2100
2373
|
const defaultStyles = {
|
|
2101
2374
|
backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
2102
2375
|
borderColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
@@ -2166,31 +2439,63 @@ function getSecondaryDangerStyles(theme) {
|
|
|
2166
2439
|
}
|
|
2167
2440
|
};
|
|
2168
2441
|
}
|
|
2169
|
-
function
|
|
2442
|
+
function getDisabledDefaultStyles(theme, useNewShadows) {
|
|
2443
|
+
const defaultStyles = {
|
|
2444
|
+
backgroundColor: 'transparent',
|
|
2445
|
+
borderColor: theme.colors.actionDisabledBorder,
|
|
2446
|
+
color: theme.colors.actionDisabledText,
|
|
2447
|
+
...(useNewShadows && {
|
|
2448
|
+
boxShadow: 'none'
|
|
2449
|
+
})
|
|
2450
|
+
};
|
|
2451
|
+
return {
|
|
2452
|
+
...defaultStyles,
|
|
2453
|
+
'&:hover': {
|
|
2454
|
+
backgroundColor: 'transparent',
|
|
2455
|
+
borderColor: theme.colors.actionDisabledBorder,
|
|
2456
|
+
color: theme.colors.actionDisabledText
|
|
2457
|
+
},
|
|
2458
|
+
'&:active': {
|
|
2459
|
+
backgroundColor: 'transparent',
|
|
2460
|
+
borderColor: theme.colors.actionDisabledBorder,
|
|
2461
|
+
color: theme.colors.actionDisabledText
|
|
2462
|
+
}
|
|
2463
|
+
};
|
|
2464
|
+
}
|
|
2465
|
+
function getDisabledPrimaryStyles(theme, useNewShadows) {
|
|
2170
2466
|
const defaultStyles = {
|
|
2171
|
-
backgroundColor: theme.colors.
|
|
2467
|
+
backgroundColor: theme.colors.actionDisabledBorder,
|
|
2172
2468
|
borderColor: 'transparent',
|
|
2173
|
-
color: theme.colors.
|
|
2469
|
+
color: theme.colors.actionPrimaryTextDefault,
|
|
2470
|
+
...(useNewShadows && {
|
|
2471
|
+
boxShadow: 'none'
|
|
2472
|
+
})
|
|
2174
2473
|
};
|
|
2175
2474
|
return {
|
|
2176
2475
|
...defaultStyles,
|
|
2177
2476
|
'&:hover': {
|
|
2178
|
-
backgroundColor: theme.colors.
|
|
2477
|
+
backgroundColor: theme.colors.actionDisabledBorder,
|
|
2179
2478
|
borderColor: 'transparent',
|
|
2180
|
-
color: theme.colors.
|
|
2479
|
+
color: theme.colors.actionPrimaryTextDefault
|
|
2181
2480
|
},
|
|
2182
2481
|
'&:active': {
|
|
2183
|
-
backgroundColor: theme.colors.
|
|
2482
|
+
backgroundColor: theme.colors.actionDisabledBorder,
|
|
2184
2483
|
borderColor: 'transparent',
|
|
2185
|
-
color: theme.colors.
|
|
2484
|
+
color: theme.colors.actionPrimaryTextDefault
|
|
2186
2485
|
}
|
|
2187
2486
|
};
|
|
2188
2487
|
}
|
|
2189
|
-
function
|
|
2488
|
+
function getDisabledErrorStyles(theme, useNewShadows) {
|
|
2489
|
+
return getDisabledPrimaryStyles(theme, useNewShadows);
|
|
2490
|
+
}
|
|
2491
|
+
function getDisabledTertiaryStyles(theme, useNewShadows) {
|
|
2190
2492
|
const defaultStyles = {
|
|
2191
2493
|
backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
2192
2494
|
borderColor: 'transparent',
|
|
2193
|
-
color: theme.colors.actionDisabledText
|
|
2495
|
+
color: theme.colors.actionDisabledText,
|
|
2496
|
+
...(useNewShadows && {
|
|
2497
|
+
boxShadow: 'none'
|
|
2498
|
+
})
|
|
2194
2499
|
};
|
|
2195
2500
|
return {
|
|
2196
2501
|
...defaultStyles,
|
|
@@ -2206,267 +2511,149 @@ function getDisabledTertiaryStyles(theme) {
|
|
|
2206
2511
|
}
|
|
2207
2512
|
};
|
|
2208
2513
|
}
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
const DesignSystemEventProviderContext = /*#__PURE__*/React__default.createContext(DefaultEmptyCallbacks);
|
|
2230
|
-
|
|
2231
|
-
/**
|
|
2232
|
-
* This gets the event provider, which is used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
|
|
2233
|
-
* If the value is undefined, then the expected behavior is to not emit any events.
|
|
2234
|
-
*
|
|
2235
|
-
* @returns DesignSystemEventProviderContextType
|
|
2236
|
-
*/
|
|
2237
|
-
const useDesignSystemEventProviderContext = () => {
|
|
2238
|
-
return useContext(DesignSystemEventProviderContext);
|
|
2239
|
-
};
|
|
2240
|
-
|
|
2241
|
-
/**
|
|
2242
|
-
* NOTE: This is not suggested for direct usage from engineers, and should emit your own events.
|
|
2243
|
-
* See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
|
|
2244
|
-
*
|
|
2245
|
-
* This gets the event provider component event type callbacks.
|
|
2246
|
-
* If context & componentId are not undefined, then it will check if the event is in analyticsEvents or the default analyticsEvents for that component.
|
|
2247
|
-
* If the context or componentId are undefined, then the expected behavior is to not emit any events.
|
|
2248
|
-
*
|
|
2249
|
-
* @returns Object of event callbacks
|
|
2250
|
-
*/
|
|
2251
|
-
const useDesignSystemEventComponentCallbacks = _ref => {
|
|
2252
|
-
let {
|
|
2253
|
-
componentType,
|
|
2254
|
-
componentId,
|
|
2255
|
-
analyticsEvents
|
|
2256
|
-
} = _ref;
|
|
2257
|
-
const context = useDesignSystemEventProviderContext();
|
|
2258
|
-
const callbacks = useMemo(() => {
|
|
2259
|
-
if (context === DefaultEmptyCallbacks || componentId === undefined) {
|
|
2260
|
-
return {
|
|
2261
|
-
onClick: () => {},
|
|
2262
|
-
onValueChange: () => {},
|
|
2263
|
-
onView: () => {}
|
|
2264
|
-
};
|
|
2514
|
+
function getDisabledSplitButtonStyles(theme, useNewShadows) {
|
|
2515
|
+
const defaultStyles = {
|
|
2516
|
+
backgroundColor: theme.colors.actionDefaultBackgroundDefault,
|
|
2517
|
+
borderColor: theme.colors.actionDisabledBorder,
|
|
2518
|
+
color: theme.colors.actionDisabledText,
|
|
2519
|
+
...(useNewShadows && {
|
|
2520
|
+
boxShadow: 'none'
|
|
2521
|
+
})
|
|
2522
|
+
};
|
|
2523
|
+
return {
|
|
2524
|
+
...defaultStyles,
|
|
2525
|
+
'&:hover': {
|
|
2526
|
+
backgroundColor: theme.colors.actionDefaultBackgroundDefault,
|
|
2527
|
+
borderColor: theme.colors.actionDisabledBorder,
|
|
2528
|
+
color: theme.colors.actionDisabledText
|
|
2529
|
+
},
|
|
2530
|
+
'&:active': {
|
|
2531
|
+
backgroundColor: theme.colors.actionDefaultBackgroundDefault,
|
|
2532
|
+
borderColor: theme.colors.actionDisabledBorder,
|
|
2533
|
+
color: theme.colors.actionDisabledText
|
|
2265
2534
|
}
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
}
|
|
2286
|
-
|
|
2287
|
-
/**
|
|
2288
|
-
* NOTE: This is not suggested for direct usage from engineers, and should use RecordEventContext instead.
|
|
2289
|
-
* See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
|
|
2290
|
-
*
|
|
2291
|
-
* This is the Design System Event Context Provider, and is only used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
|
|
2292
|
-
*
|
|
2293
|
-
* @param children Children react elements
|
|
2294
|
-
* @param callback The event callback function
|
|
2295
|
-
* @returns Design System Event Context Provider with the children inside
|
|
2296
|
-
*/
|
|
2297
|
-
function DesignSystemEventProvider(_ref2) {
|
|
2298
|
-
let {
|
|
2299
|
-
children,
|
|
2300
|
-
callback
|
|
2301
|
-
} = _ref2;
|
|
2302
|
-
const contextValue = useMemo(() => {
|
|
2303
|
-
return {
|
|
2304
|
-
callback
|
|
2305
|
-
};
|
|
2306
|
-
}, [callback]);
|
|
2307
|
-
return jsx(DesignSystemEventProviderContext.Provider, {
|
|
2308
|
-
value: contextValue,
|
|
2309
|
-
children: children
|
|
2310
|
-
});
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
-
// Use Symbol to correctly handled null/undefined as stable values
|
|
2314
|
-
const NOT_INITIALIZED = Symbol('NOT_INITIALIZED');
|
|
2315
|
-
|
|
2316
|
-
/**
|
|
2317
|
-
* Use to keep a stable value on the first mount of a component
|
|
2318
|
-
* that cannot change.
|
|
2319
|
-
*/
|
|
2320
|
-
function useStable(valueCallback) {
|
|
2321
|
-
const ref = useRef(NOT_INITIALIZED);
|
|
2322
|
-
if (ref.current === NOT_INITIALIZED) {
|
|
2323
|
-
const val = valueCallback();
|
|
2324
|
-
ref.current = val;
|
|
2325
|
-
return val;
|
|
2326
|
-
}
|
|
2327
|
-
return ref.current;
|
|
2328
|
-
}
|
|
2329
|
-
let sequentialCounter = 0;
|
|
2330
|
-
function useStableUid() {
|
|
2331
|
-
return useStable(() => sequentialCounter++);
|
|
2535
|
+
};
|
|
2536
|
+
}
|
|
2537
|
+
function getDisabledPrimarySplitButtonStyles(theme, useNewShadows) {
|
|
2538
|
+
const defaultStyles = {
|
|
2539
|
+
backgroundColor: theme.colors.actionDisabledBorder,
|
|
2540
|
+
color: theme.colors.actionPrimaryTextDefault,
|
|
2541
|
+
...(useNewShadows && {
|
|
2542
|
+
boxShadow: 'none'
|
|
2543
|
+
})
|
|
2544
|
+
};
|
|
2545
|
+
return {
|
|
2546
|
+
...defaultStyles,
|
|
2547
|
+
'&:hover': {
|
|
2548
|
+
backgroundColor: theme.colors.actionDisabledBorder,
|
|
2549
|
+
color: theme.colors.actionPrimaryTextDefault
|
|
2550
|
+
},
|
|
2551
|
+
'&:active': {
|
|
2552
|
+
backgroundColor: theme.colors.actionDisabledBorder,
|
|
2553
|
+
color: theme.colors.actionPrimaryTextDefault
|
|
2554
|
+
}
|
|
2555
|
+
};
|
|
2332
2556
|
}
|
|
2333
2557
|
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
*/
|
|
2341
|
-
|
|
2342
|
-
const LoadingStateContext = /*#__PURE__*/createContext(null);
|
|
2558
|
+
const FormContext = /*#__PURE__*/React__default.createContext({
|
|
2559
|
+
componentId: undefined,
|
|
2560
|
+
isSubmitting: false,
|
|
2561
|
+
formRef: undefined
|
|
2562
|
+
});
|
|
2563
|
+
const useFormContext = () => React__default.useContext(FormContext);
|
|
2343
2564
|
/**
|
|
2344
|
-
*
|
|
2345
|
-
*
|
|
2346
|
-
* loading indicator. This means that the UI is not in its final settled state yet.
|
|
2347
|
-
*
|
|
2348
|
-
* All components that are in a "loading" state should render a `<LoadingState>`
|
|
2349
|
-
* component, preferrably with an appropriate description.
|
|
2565
|
+
* Form is a wrapper around the form element that allows us to track the active element before the form is submitted.
|
|
2566
|
+
* This is useful for analytics purposes to know what component was last focused when the form was sent for submission.
|
|
2350
2567
|
*
|
|
2351
|
-
*
|
|
2352
|
-
* it will call the provided `startLoading()`/`endLoading()` hooks when the component
|
|
2353
|
-
* is mounted/unmounted, which can be used to integrate existing latency instrumentation.
|
|
2568
|
+
* NOTE: Form component cannot be nested.
|
|
2354
2569
|
*/
|
|
2355
|
-
const
|
|
2570
|
+
const Form = _ref => {
|
|
2356
2571
|
let {
|
|
2357
|
-
|
|
2572
|
+
children,
|
|
2573
|
+
componentId,
|
|
2574
|
+
analyticsEvents = [DesignSystemEventProviderAnalyticsEventTypes.OnSubmit],
|
|
2575
|
+
onSubmit,
|
|
2576
|
+
shouldStartInteraction,
|
|
2577
|
+
...otherProps
|
|
2358
2578
|
} = _ref;
|
|
2359
|
-
const
|
|
2360
|
-
const
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
loadingStateContext.startLoading(uid, description);
|
|
2365
|
-
}
|
|
2366
|
-
return () => {
|
|
2367
|
-
// unmount
|
|
2368
|
-
if (loadingStateContext) {
|
|
2369
|
-
loadingStateContext.endLoading(uid);
|
|
2370
|
-
}
|
|
2371
|
-
};
|
|
2372
|
-
}, [uid, description, loadingStateContext]);
|
|
2373
|
-
return null;
|
|
2374
|
-
};
|
|
2375
|
-
|
|
2376
|
-
const rotate = keyframes({
|
|
2377
|
-
'0%': {
|
|
2378
|
-
transform: 'rotate(0deg) translate3d(0, 0, 0)'
|
|
2379
|
-
},
|
|
2380
|
-
'100%': {
|
|
2381
|
-
transform: 'rotate(360deg) translate3d(0, 0, 0)'
|
|
2579
|
+
const formContext = useFormContext();
|
|
2580
|
+
const formRef = useRef(null);
|
|
2581
|
+
const eventRef = useRef(null);
|
|
2582
|
+
if (formContext.componentId !== undefined) {
|
|
2583
|
+
throw new Error('DuBois Form component cannot be nested');
|
|
2382
2584
|
}
|
|
2383
|
-
|
|
2384
|
-
const
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
animation: 'none'
|
|
2585
|
+
const memoizedAnalyticsEvents = useMemo(() => analyticsEvents, [analyticsEvents]);
|
|
2586
|
+
const eventContext = useDesignSystemEventComponentCallbacks({
|
|
2587
|
+
componentType: DesignSystemEventProviderComponentTypes.Form,
|
|
2588
|
+
componentId,
|
|
2589
|
+
analyticsEvents: memoizedAnalyticsEvents,
|
|
2590
|
+
shouldStartInteraction
|
|
2591
|
+
});
|
|
2592
|
+
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
2593
|
+
const onSubmitHandler = useCallback(async e => {
|
|
2594
|
+
try {
|
|
2595
|
+
setIsSubmitting(true);
|
|
2596
|
+
eventContext.onSubmit(e, extractReferrerComponent());
|
|
2597
|
+
await onSubmit(e);
|
|
2598
|
+
} finally {
|
|
2599
|
+
setIsSubmitting(false);
|
|
2399
2600
|
}
|
|
2400
|
-
};
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
const {
|
|
2417
|
-
classNamePrefix,
|
|
2418
|
-
theme
|
|
2419
|
-
} = useDesignSystemTheme();
|
|
2420
|
-
|
|
2421
|
-
// We use Antd classes to keep styling unchanged
|
|
2422
|
-
// TODO(FEINF-1407): We want to move away from Antd classes and use Emotion for styling in the future
|
|
2423
|
-
const sizeSuffix = size === 'small' ? '-sm' : size === 'large' ? '-lg' : '';
|
|
2424
|
-
const sizeClass = sizeSuffix ? `${classNamePrefix}-spin${sizeSuffix}` : '';
|
|
2425
|
-
const wrapperClass = `${propClass || ''} ${classNamePrefix}-spin ${sizeClass} ${classNamePrefix}-spin-spinning ${DU_BOIS_ENABLE_ANIMATION_CLASSNAME}`.trim();
|
|
2426
|
-
const className = `${classNamePrefix}-spin-dot ${DU_BOIS_ENABLE_ANIMATION_CLASSNAME}`.trim();
|
|
2427
|
-
return (
|
|
2428
|
-
// className has to follow {...props}, otherwise is `css` prop is passed down it will overwrite our className
|
|
2429
|
-
jsxs("div", {
|
|
2430
|
-
...props,
|
|
2431
|
-
className: wrapperClass,
|
|
2432
|
-
children: [loading && jsx(LoadingState, {
|
|
2433
|
-
description: loadingDescription
|
|
2434
|
-
}), jsx(AccessibleContainer, {
|
|
2435
|
-
label: label,
|
|
2436
|
-
children: jsx(LoadingIcon$1, {
|
|
2437
|
-
"aria-hidden": "false",
|
|
2438
|
-
css: cssSpinner(theme, frameRate, delay, animationDuration, inheritColor),
|
|
2439
|
-
className: className
|
|
2440
|
-
})
|
|
2441
|
-
})]
|
|
2601
|
+
}, [eventContext, onSubmit]);
|
|
2602
|
+
const contextValue = useMemo(() => ({
|
|
2603
|
+
componentId,
|
|
2604
|
+
isSubmitting,
|
|
2605
|
+
eventRef,
|
|
2606
|
+
formRef
|
|
2607
|
+
}), [componentId, isSubmitting]);
|
|
2608
|
+
return jsx(FormContext.Provider, {
|
|
2609
|
+
value: contextValue,
|
|
2610
|
+
children: jsxs("form", {
|
|
2611
|
+
onSubmit: onSubmitHandler,
|
|
2612
|
+
...otherProps,
|
|
2613
|
+
ref: formRef,
|
|
2614
|
+
children: [isSubmitting && jsx(LoadingState, {
|
|
2615
|
+
description: componentId
|
|
2616
|
+
}), children]
|
|
2442
2617
|
})
|
|
2443
|
-
);
|
|
2618
|
+
});
|
|
2444
2619
|
};
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
const globalSafex = window.__debug__safex;
|
|
2458
|
-
return globalSafex ? globalSafex(flag, defaultValue) : defaultValue;
|
|
2459
|
-
} catch (e) {
|
|
2460
|
-
return defaultValue;
|
|
2620
|
+
function extractReferrerComponent() {
|
|
2621
|
+
var _activeElement$datase;
|
|
2622
|
+
const activeElement = document.activeElement;
|
|
2623
|
+
const {
|
|
2624
|
+
componentType,
|
|
2625
|
+
componentId
|
|
2626
|
+
} = (_activeElement$datase = activeElement === null || activeElement === void 0 ? void 0 : activeElement.dataset) !== null && _activeElement$datase !== void 0 ? _activeElement$datase : {};
|
|
2627
|
+
if (componentType && componentId) {
|
|
2628
|
+
return {
|
|
2629
|
+
type: componentType,
|
|
2630
|
+
id: componentId
|
|
2631
|
+
};
|
|
2461
2632
|
}
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
function addDebugOutlineIfEnabled() {
|
|
2465
|
-
return safex('databricks.fe.designsystem.showDebugOutline', false) ? {
|
|
2466
|
-
'data-dubois-show-outline': true
|
|
2467
|
-
} : {};
|
|
2633
|
+
return undefined;
|
|
2468
2634
|
}
|
|
2469
2635
|
|
|
2636
|
+
const buttonStylesCache = new WeakMap();
|
|
2637
|
+
const getMemoizedButtonEmotionStyles = props => {
|
|
2638
|
+
// Theme is a large object, so cache it by ref using a WeakMap,
|
|
2639
|
+
// and then JSON.stringify() the rest of the props as the cache key.
|
|
2640
|
+
const {
|
|
2641
|
+
theme,
|
|
2642
|
+
...rest
|
|
2643
|
+
} = props;
|
|
2644
|
+
const themeCache = buttonStylesCache.get(theme) || new Map();
|
|
2645
|
+
if (!buttonStylesCache.has(theme)) {
|
|
2646
|
+
buttonStylesCache.set(theme, themeCache);
|
|
2647
|
+
}
|
|
2648
|
+
const cacheKey = JSON.stringify(rest);
|
|
2649
|
+
const cachedStyles = themeCache.get(cacheKey);
|
|
2650
|
+
if (cachedStyles) {
|
|
2651
|
+
return cachedStyles;
|
|
2652
|
+
}
|
|
2653
|
+
const styles = getButtonEmotionStyles(props);
|
|
2654
|
+
themeCache.set(cacheKey, styles);
|
|
2655
|
+
return styles;
|
|
2656
|
+
};
|
|
2470
2657
|
function getEndIconClsName(theme) {
|
|
2471
2658
|
return `${theme.general.iconfontCssPrefix}-btn-end-icon`;
|
|
2472
2659
|
}
|
|
@@ -2481,10 +2668,10 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2481
2668
|
enableAnimation,
|
|
2482
2669
|
size,
|
|
2483
2670
|
type,
|
|
2484
|
-
isFlex,
|
|
2485
2671
|
useFocusPseudoClass,
|
|
2486
2672
|
forceIconStyles,
|
|
2487
|
-
danger
|
|
2673
|
+
danger,
|
|
2674
|
+
useNewShadows
|
|
2488
2675
|
} = _ref;
|
|
2489
2676
|
const clsIcon = `.${theme.general.iconfontCssPrefix}`;
|
|
2490
2677
|
const clsEndIcon = `.${getEndIconClsName(theme)}`;
|
|
@@ -2497,6 +2684,9 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2497
2684
|
const tertiaryColors = {
|
|
2498
2685
|
background: theme.colors.actionTertiaryBackgroundDefault,
|
|
2499
2686
|
color: theme.colors.actionTertiaryTextDefault,
|
|
2687
|
+
...(useNewShadows && {
|
|
2688
|
+
boxShadow: 'none'
|
|
2689
|
+
}),
|
|
2500
2690
|
'&:hover': {
|
|
2501
2691
|
background: theme.colors.actionTertiaryBackgroundHover,
|
|
2502
2692
|
color: theme.colors.actionTertiaryTextHover
|
|
@@ -2508,30 +2698,12 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2508
2698
|
};
|
|
2509
2699
|
const iconCss = {
|
|
2510
2700
|
fontSize: theme.general.iconFontSize,
|
|
2511
|
-
...(!isFlex && {
|
|
2512
|
-
// verticalAlign used by AntD to move icon and label to center
|
|
2513
|
-
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
2514
|
-
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
2515
|
-
verticalAlign: -4,
|
|
2516
|
-
...(onlyIcon && {
|
|
2517
|
-
verticalAlign: -3
|
|
2518
|
-
}),
|
|
2519
|
-
// verticalAlign used by AntD to move icon and label to center
|
|
2520
|
-
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
2521
|
-
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
2522
|
-
// Need to make sure not to apply this to regular buttons as it will offset the icons
|
|
2523
|
-
...(!onlyIcon && {
|
|
2524
|
-
verticalAlign: -3
|
|
2525
|
-
})
|
|
2526
|
-
}),
|
|
2527
2701
|
lineHeight: 0,
|
|
2528
2702
|
...(size === 'small' && {
|
|
2529
2703
|
lineHeight: theme.typography.lineHeightSm,
|
|
2704
|
+
height: 16,
|
|
2530
2705
|
...((onlyIcon || forceIconStyles) && {
|
|
2531
|
-
fontSize: 16
|
|
2532
|
-
...(isFlex && {
|
|
2533
|
-
height: 16
|
|
2534
|
-
})
|
|
2706
|
+
fontSize: 16
|
|
2535
2707
|
})
|
|
2536
2708
|
})
|
|
2537
2709
|
};
|
|
@@ -2541,14 +2713,12 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2541
2713
|
const endIconCssSelector = `span > ${clsEndIcon} > ${clsIcon}`;
|
|
2542
2714
|
const styles = {
|
|
2543
2715
|
lineHeight: theme.typography.lineHeightBase,
|
|
2544
|
-
boxShadow: 'none',
|
|
2716
|
+
boxShadow: useNewShadows ? theme.shadows.xs : 'none',
|
|
2545
2717
|
height: theme.general.heightSm,
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
verticalAlign: 'middle'
|
|
2551
|
-
}),
|
|
2718
|
+
display: 'inline-flex',
|
|
2719
|
+
alignItems: 'center',
|
|
2720
|
+
justifyContent: 'center',
|
|
2721
|
+
verticalAlign: 'middle',
|
|
2552
2722
|
...(!onlyIcon && !forceIconStyles && {
|
|
2553
2723
|
'&&': {
|
|
2554
2724
|
padding: '4px 12px',
|
|
@@ -2581,7 +2751,7 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2581
2751
|
...getPrimaryStyles(theme)
|
|
2582
2752
|
},
|
|
2583
2753
|
[`&${classLink}`]: {
|
|
2584
|
-
...getLinkStyles(theme),
|
|
2754
|
+
...getLinkStyles$1(theme),
|
|
2585
2755
|
...(type === 'link' && {
|
|
2586
2756
|
padding: 'unset',
|
|
2587
2757
|
height: 'auto',
|
|
@@ -2598,8 +2768,22 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2598
2768
|
[`&${classDangerous}`]: {
|
|
2599
2769
|
...getSecondaryDangerStyles(theme)
|
|
2600
2770
|
},
|
|
2771
|
+
[`&[disabled]`]: {
|
|
2772
|
+
...getDisabledDefaultStyles(theme, useNewShadows)
|
|
2773
|
+
},
|
|
2774
|
+
[`&${classLink}:disabled`]: {
|
|
2775
|
+
...getDisabledTertiaryStyles(theme, useNewShadows)
|
|
2776
|
+
},
|
|
2777
|
+
[`&${classDangerous}:disabled`]: {
|
|
2778
|
+
...getDisabledErrorStyles(theme, useNewShadows)
|
|
2779
|
+
},
|
|
2780
|
+
[`&${classPrimary}:disabled`]: {
|
|
2781
|
+
...getDisabledPrimaryStyles(theme, useNewShadows)
|
|
2782
|
+
},
|
|
2601
2783
|
[`&[disabled], &${classDangerous}:disabled`]: {
|
|
2602
|
-
...
|
|
2784
|
+
...(useNewShadows && {
|
|
2785
|
+
boxShadow: 'none'
|
|
2786
|
+
}),
|
|
2603
2787
|
...((onlyIcon || forceIconStyles) && {
|
|
2604
2788
|
backgroundColor: 'transparent',
|
|
2605
2789
|
'&:hover': {
|
|
@@ -2628,10 +2812,6 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2628
2812
|
// This would break vertical centering of loading circle when onlyIcon is true
|
|
2629
2813
|
position: 'absolute'
|
|
2630
2814
|
}),
|
|
2631
|
-
...(!isFlex && !forceIconStyles && {
|
|
2632
|
-
// Normally we'd do `transform: translateX(-50%)` but `antd` crushes that with injected inline `style`.
|
|
2633
|
-
left: 'calc(50% - 7px)'
|
|
2634
|
-
}),
|
|
2635
2815
|
// Re-enable animation for the loading spinner, since it can be disabled by the global animation CSS.
|
|
2636
2816
|
svg: {
|
|
2637
2817
|
animationDuration: '1s !important'
|
|
@@ -2640,7 +2820,6 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2640
2820
|
[`& > ${clsLoadingIcon} .anticon`]: {
|
|
2641
2821
|
paddingRight: 0 // to horizontally center icon
|
|
2642
2822
|
},
|
|
2643
|
-
|
|
2644
2823
|
[`> :not(${clsLoadingIcon})`]: {
|
|
2645
2824
|
// Hide all content except loading icon
|
|
2646
2825
|
opacity: 0,
|
|
@@ -2673,6 +2852,9 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2673
2852
|
},
|
|
2674
2853
|
[`&${clsIconOnly}`]: {
|
|
2675
2854
|
border: 'none',
|
|
2855
|
+
...(useNewShadows && {
|
|
2856
|
+
boxShadow: 'none'
|
|
2857
|
+
}),
|
|
2676
2858
|
[`&:enabled:not(${classLink})`]: {
|
|
2677
2859
|
...tertiaryColors,
|
|
2678
2860
|
color: theme.colors.textSecondary,
|
|
@@ -2702,7 +2884,7 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2702
2884
|
},
|
|
2703
2885
|
...(isAnchor && {
|
|
2704
2886
|
lineHeight: `${theme.general.heightSm}px`,
|
|
2705
|
-
...getLinkStyles(theme),
|
|
2887
|
+
...getLinkStyles$1(theme),
|
|
2706
2888
|
'&:disabled': {
|
|
2707
2889
|
color: theme.colors.actionDisabledText
|
|
2708
2890
|
}
|
|
@@ -2764,7 +2946,7 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2764
2946
|
...(type === 'tertiary' && {
|
|
2765
2947
|
[`&:enabled:not(${clsIconOnly})`]: tertiaryColors,
|
|
2766
2948
|
[`&${classLink}[disabled]`]: {
|
|
2767
|
-
...getDisabledTertiaryStyles(theme)
|
|
2949
|
+
...getDisabledTertiaryStyles(theme, useNewShadows)
|
|
2768
2950
|
}
|
|
2769
2951
|
})
|
|
2770
2952
|
};
|
|
@@ -2773,42 +2955,51 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2773
2955
|
return /*#__PURE__*/css(importantStyles, importantTypeStyles, process.env.NODE_ENV === "production" ? "" : ";label:getButtonEmotionStyles;");
|
|
2774
2956
|
};
|
|
2775
2957
|
const Button = /* #__PURE__ */(() => {
|
|
2776
|
-
const Button = /*#__PURE__*/forwardRef(function Button(
|
|
2958
|
+
const Button = /*#__PURE__*/forwardRef(function Button(// Keep size out of props passed to AntD to make deprecation and eventual removal have 0 impact
|
|
2777
2959
|
_ref2, ref) {
|
|
2778
2960
|
let {
|
|
2779
2961
|
dangerouslySetAntdProps,
|
|
2780
2962
|
children,
|
|
2781
2963
|
size,
|
|
2782
2964
|
type,
|
|
2783
|
-
loading,
|
|
2784
|
-
loadingDescription
|
|
2965
|
+
loading: loadingProp,
|
|
2966
|
+
loadingDescription,
|
|
2785
2967
|
endIcon,
|
|
2786
2968
|
onClick,
|
|
2787
2969
|
dangerouslySetForceIconStyles,
|
|
2788
2970
|
dangerouslyUseFocusPseudoClass,
|
|
2789
2971
|
dangerouslyAppendWrapperCss,
|
|
2790
2972
|
componentId,
|
|
2791
|
-
analyticsEvents,
|
|
2973
|
+
analyticsEvents = [DesignSystemEventProviderAnalyticsEventTypes.OnClick],
|
|
2974
|
+
shouldStartInteraction,
|
|
2792
2975
|
...props
|
|
2793
2976
|
} = _ref2;
|
|
2977
|
+
const formContext = useFormContext();
|
|
2794
2978
|
const {
|
|
2795
2979
|
theme,
|
|
2796
2980
|
classNamePrefix
|
|
2797
2981
|
} = useDesignSystemTheme();
|
|
2798
2982
|
const {
|
|
2799
|
-
|
|
2800
|
-
} =
|
|
2983
|
+
useNewShadows
|
|
2984
|
+
} = useDesignSystemSafexFlags();
|
|
2985
|
+
const memoizedAnalyticsEvents = useMemo(() => analyticsEvents, [analyticsEvents]);
|
|
2801
2986
|
const eventContext = useDesignSystemEventComponentCallbacks({
|
|
2802
2987
|
componentType: DesignSystemEventProviderComponentTypes.Button,
|
|
2803
2988
|
componentId,
|
|
2804
|
-
analyticsEvents:
|
|
2989
|
+
analyticsEvents: memoizedAnalyticsEvents,
|
|
2990
|
+
shouldStartInteraction,
|
|
2991
|
+
// If the button is a submit button and is part of a form, it is not the subject of the interaction, the form submission is
|
|
2992
|
+
isInteractionSubject: !(props.htmlType === 'submit' && formContext.componentId)
|
|
2805
2993
|
});
|
|
2806
|
-
const flexSafex = safex('databricks.fe.designsystem.useFlexButtonStyles', false);
|
|
2807
|
-
const isFlex = flexOverride || flexSafex;
|
|
2808
2994
|
const clsEndIcon = getEndIconClsName(theme);
|
|
2809
2995
|
const loadingCls = `${classNamePrefix}-btn-loading-icon`;
|
|
2810
|
-
const
|
|
2996
|
+
const {
|
|
2997
|
+
elementRef: buttonRef
|
|
2998
|
+
} = useNotifyOnFirstView({
|
|
2999
|
+
onView: eventContext.onView
|
|
3000
|
+
});
|
|
2811
3001
|
useImperativeHandle(ref, () => buttonRef.current);
|
|
3002
|
+
const loading = loadingProp !== null && loadingProp !== void 0 ? loadingProp : props.htmlType === 'submit' && formContext.isSubmitting;
|
|
2812
3003
|
|
|
2813
3004
|
// Needed to keep backwards compatibility and support existing unit tests
|
|
2814
3005
|
useEffect(() => {
|
|
@@ -2821,22 +3012,27 @@ const Button = /* #__PURE__ */(() => {
|
|
|
2821
3012
|
buttonRef.current.classList.remove(`${classNamePrefix}-btn-loading`);
|
|
2822
3013
|
}
|
|
2823
3014
|
}
|
|
2824
|
-
}, [loading, classNamePrefix]);
|
|
3015
|
+
}, [loading, classNamePrefix, buttonRef]);
|
|
2825
3016
|
const iconOnly = Boolean((props.icon || endIcon) && !children);
|
|
2826
|
-
const handleClick = event => {
|
|
3017
|
+
const handleClick = useCallback(event => {
|
|
3018
|
+
var _formContext$formRef;
|
|
2827
3019
|
if (loading) {
|
|
2828
3020
|
return;
|
|
2829
3021
|
}
|
|
2830
|
-
eventContext.onClick();
|
|
3022
|
+
eventContext.onClick(event);
|
|
3023
|
+
if (props.htmlType === 'submit' && (_formContext$formRef = formContext.formRef) !== null && _formContext$formRef !== void 0 && _formContext$formRef.current) {
|
|
3024
|
+
event.preventDefault();
|
|
3025
|
+
formContext.formRef.current.requestSubmit();
|
|
3026
|
+
}
|
|
2831
3027
|
onClick === null || onClick === void 0 || onClick(event);
|
|
2832
|
-
};
|
|
3028
|
+
}, [loading, props.htmlType, formContext.formRef, eventContext, onClick]);
|
|
2833
3029
|
const loadingSpinner = jsx(Spinner, {
|
|
2834
3030
|
className: loadingCls,
|
|
2835
3031
|
animationDuration: 8,
|
|
2836
3032
|
inheritColor: true,
|
|
2837
3033
|
label: "loading",
|
|
2838
3034
|
"aria-label": "loading",
|
|
2839
|
-
loadingDescription: loadingDescription,
|
|
3035
|
+
loadingDescription: loadingDescription !== null && loadingDescription !== void 0 ? loadingDescription : componentId,
|
|
2840
3036
|
css: /*#__PURE__*/css({
|
|
2841
3037
|
color: 'inherit !important',
|
|
2842
3038
|
pointerEvents: 'none',
|
|
@@ -2854,7 +3050,7 @@ const Button = /* #__PURE__ */(() => {
|
|
|
2854
3050
|
children: jsx(Button$1, {
|
|
2855
3051
|
...addDebugOutlineIfEnabled(),
|
|
2856
3052
|
...props,
|
|
2857
|
-
css:
|
|
3053
|
+
css: getMemoizedButtonEmotionStyles({
|
|
2858
3054
|
theme,
|
|
2859
3055
|
classNamePrefix,
|
|
2860
3056
|
loading: Boolean(loading),
|
|
@@ -2865,9 +3061,9 @@ const Button = /* #__PURE__ */(() => {
|
|
|
2865
3061
|
enableAnimation: theme.options.enableAnimation,
|
|
2866
3062
|
size: size || 'middle',
|
|
2867
3063
|
type,
|
|
2868
|
-
isFlex,
|
|
2869
3064
|
forceIconStyles: Boolean(dangerouslySetForceIconStyles),
|
|
2870
|
-
useFocusPseudoClass: Boolean(dangerouslyUseFocusPseudoClass)
|
|
3065
|
+
useFocusPseudoClass: Boolean(dangerouslyUseFocusPseudoClass),
|
|
3066
|
+
useNewShadows
|
|
2871
3067
|
}),
|
|
2872
3068
|
href: props.disabled ? undefined : props.href,
|
|
2873
3069
|
...dangerouslySetAntdProps,
|
|
@@ -2875,22 +3071,20 @@ const Button = /* #__PURE__ */(() => {
|
|
|
2875
3071
|
icon: loading ? loadingSpinner : props.icon,
|
|
2876
3072
|
ref: buttonRef,
|
|
2877
3073
|
type: type === 'tertiary' ? 'link' : type,
|
|
3074
|
+
"data-component-type": DesignSystemEventProviderComponentTypes.Button,
|
|
3075
|
+
"data-component-id": componentId,
|
|
2878
3076
|
children: children && jsxs("span", {
|
|
2879
3077
|
style: {
|
|
2880
3078
|
visibility: loading ? 'hidden' : 'visible',
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
alignItems: 'center'
|
|
2884
|
-
}),
|
|
3079
|
+
display: 'inline-flex',
|
|
3080
|
+
alignItems: 'center',
|
|
2885
3081
|
...dangerouslyAppendWrapperCss
|
|
2886
3082
|
},
|
|
2887
3083
|
children: [children, endIcon && jsx("span", {
|
|
2888
3084
|
className: clsEndIcon,
|
|
2889
3085
|
style: {
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
alignItems: 'center'
|
|
2893
|
-
})
|
|
3086
|
+
display: 'inline-flex',
|
|
3087
|
+
alignItems: 'center'
|
|
2894
3088
|
},
|
|
2895
3089
|
children: endIcon
|
|
2896
3090
|
})]
|
|
@@ -2907,624 +3101,715 @@ const Button = /* #__PURE__ */(() => {
|
|
|
2907
3101
|
return Button;
|
|
2908
3102
|
})();
|
|
2909
3103
|
|
|
2910
|
-
const
|
|
2911
|
-
|
|
2912
|
-
|
|
3104
|
+
const Anchor = Popover$1.Anchor; // Behavioral component only
|
|
3105
|
+
|
|
3106
|
+
const Root = _ref => {
|
|
3107
|
+
let {
|
|
3108
|
+
children,
|
|
3109
|
+
onOpenChange,
|
|
3110
|
+
componentId,
|
|
3111
|
+
analyticsEvents = [DesignSystemEventProviderAnalyticsEventTypes.OnView],
|
|
3112
|
+
...props
|
|
3113
|
+
} = _ref;
|
|
3114
|
+
const firstView = useRef(true);
|
|
3115
|
+
const memoizedAnalyticsEvents = useMemo(() => analyticsEvents, [analyticsEvents]);
|
|
3116
|
+
const eventContext = useDesignSystemEventComponentCallbacks({
|
|
3117
|
+
componentType: DesignSystemEventProviderComponentTypes.Popover,
|
|
3118
|
+
componentId: componentId !== null && componentId !== void 0 ? componentId : 'design_system.popover',
|
|
3119
|
+
analyticsEvents: memoizedAnalyticsEvents
|
|
3120
|
+
});
|
|
3121
|
+
const onOpenChangeHandler = useCallback(open => {
|
|
3122
|
+
if (open && firstView.current) {
|
|
3123
|
+
eventContext.onView();
|
|
3124
|
+
firstView.current = false;
|
|
3125
|
+
}
|
|
3126
|
+
onOpenChange === null || onOpenChange === void 0 || onOpenChange(open);
|
|
3127
|
+
}, [eventContext, onOpenChange]);
|
|
3128
|
+
return jsx(Popover$1.Root, {
|
|
3129
|
+
...props,
|
|
3130
|
+
onOpenChange: onOpenChangeHandler,
|
|
3131
|
+
children: children
|
|
3132
|
+
});
|
|
3133
|
+
};
|
|
3134
|
+
const Content = /*#__PURE__*/forwardRef(function Content(_ref2, ref) {
|
|
3135
|
+
let {
|
|
3136
|
+
children,
|
|
3137
|
+
minWidth = 220,
|
|
3138
|
+
maxWidth,
|
|
3139
|
+
...props
|
|
3140
|
+
} = _ref2;
|
|
3141
|
+
const {
|
|
3142
|
+
getPopupContainer
|
|
3143
|
+
} = useDesignSystemContext();
|
|
3144
|
+
const {
|
|
3145
|
+
theme
|
|
3146
|
+
} = useDesignSystemTheme();
|
|
3147
|
+
const {
|
|
3148
|
+
useNewShadows
|
|
3149
|
+
} = useDesignSystemSafexFlags();
|
|
3150
|
+
return jsx(Popover$1.Portal, {
|
|
3151
|
+
container: getPopupContainer && getPopupContainer(),
|
|
3152
|
+
children: jsx(Popover$1.Content, {
|
|
3153
|
+
...addDebugOutlineIfEnabled(),
|
|
3154
|
+
ref: ref,
|
|
3155
|
+
css: [contentStyles(theme, useNewShadows), {
|
|
3156
|
+
minWidth,
|
|
3157
|
+
maxWidth
|
|
3158
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
|
|
3159
|
+
sideOffset: 4,
|
|
3160
|
+
...props,
|
|
3161
|
+
children: children
|
|
3162
|
+
})
|
|
3163
|
+
});
|
|
3164
|
+
});
|
|
3165
|
+
const Trigger = /*#__PURE__*/forwardRef(function Trigger(_ref3, ref) {
|
|
3166
|
+
let {
|
|
3167
|
+
children,
|
|
3168
|
+
...props
|
|
3169
|
+
} = _ref3;
|
|
3170
|
+
return jsx(Popover$1.Trigger, {
|
|
3171
|
+
...addDebugOutlineIfEnabled(),
|
|
3172
|
+
ref: ref,
|
|
3173
|
+
...props,
|
|
3174
|
+
children: children
|
|
3175
|
+
});
|
|
3176
|
+
});
|
|
3177
|
+
const Close = /*#__PURE__*/forwardRef(function Close(_ref4, ref) {
|
|
3178
|
+
let {
|
|
3179
|
+
children,
|
|
3180
|
+
...props
|
|
3181
|
+
} = _ref4;
|
|
3182
|
+
return jsx(Popover$1.Close, {
|
|
3183
|
+
ref: ref,
|
|
3184
|
+
...props,
|
|
3185
|
+
children: children
|
|
3186
|
+
});
|
|
3187
|
+
});
|
|
3188
|
+
const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref5, ref) {
|
|
3189
|
+
let {
|
|
3190
|
+
children,
|
|
3191
|
+
...props
|
|
3192
|
+
} = _ref5;
|
|
3193
|
+
const {
|
|
3194
|
+
theme
|
|
3195
|
+
} = useDesignSystemTheme();
|
|
3196
|
+
return jsx(Popover$1.Arrow, {
|
|
3197
|
+
css: /*#__PURE__*/css({
|
|
3198
|
+
fill: theme.colors.backgroundPrimary,
|
|
3199
|
+
stroke: theme.colors.borderDecorative,
|
|
3200
|
+
strokeDashoffset: -CONSTANTS.arrowBottomLength(),
|
|
3201
|
+
strokeDasharray: CONSTANTS.arrowBottomLength() + 2 * CONSTANTS.arrowSide(),
|
|
3202
|
+
strokeWidth: CONSTANTS.arrowStrokeWidth(),
|
|
3203
|
+
// TODO: This is a temporary fix for the alignment of the Arrow;
|
|
3204
|
+
// Radix has changed the implementation for v1.0.0 (uses floating-ui)
|
|
3205
|
+
// which has new behaviors for alignment that we don't want. Generally
|
|
3206
|
+
// we need to fix the arrow to always be aligned to the left of the menu (with
|
|
3207
|
+
// offset equal to border radius)
|
|
3208
|
+
position: 'relative',
|
|
3209
|
+
top: -1
|
|
3210
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Arrow;"),
|
|
3211
|
+
ref: ref,
|
|
3212
|
+
width: 12,
|
|
3213
|
+
height: 6,
|
|
3214
|
+
...props,
|
|
3215
|
+
children: children
|
|
3216
|
+
});
|
|
3217
|
+
});
|
|
3218
|
+
|
|
3219
|
+
// CONSTANTS
|
|
3220
|
+
const CONSTANTS = {
|
|
3221
|
+
arrowBottomLength() {
|
|
3222
|
+
// The built in arrow is a polygon: 0,0 30,0 15,10
|
|
3223
|
+
return 30;
|
|
3224
|
+
},
|
|
3225
|
+
arrowHeight() {
|
|
3226
|
+
return 10;
|
|
3227
|
+
},
|
|
3228
|
+
arrowSide() {
|
|
3229
|
+
return 2 * (this.arrowHeight() ** 2 * 2) ** 0.5;
|
|
3230
|
+
},
|
|
3231
|
+
arrowStrokeWidth() {
|
|
3232
|
+
// This is eyeballed b/c relative to the svg viewbox coordinate system
|
|
3233
|
+
return 2;
|
|
3234
|
+
}
|
|
3235
|
+
};
|
|
3236
|
+
const popoverContentStyles = (theme, useNewShadows) => ({
|
|
3237
|
+
backgroundColor: theme.colors.backgroundPrimary,
|
|
3238
|
+
color: theme.colors.textPrimary,
|
|
3239
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
3240
|
+
border: `1px solid ${theme.colors.borderDecorative}`,
|
|
3241
|
+
borderRadius: theme.legacyBorders.borderRadiusMd,
|
|
3242
|
+
padding: `${theme.spacing.sm}px`,
|
|
3243
|
+
boxShadow: useNewShadows ? theme.shadows.lg : theme.general.shadowLow,
|
|
3244
|
+
userSelect: 'none',
|
|
3245
|
+
zIndex: theme.options.zIndexBase + 30,
|
|
3246
|
+
...getDarkModePortalStyles(theme, useNewShadows),
|
|
3247
|
+
a: importantify({
|
|
3248
|
+
color: theme.colors.actionTertiaryTextDefault,
|
|
3249
|
+
cursor: 'default',
|
|
3250
|
+
'&:hover, &:focus': {
|
|
3251
|
+
color: theme.colors.actionTertiaryTextHover
|
|
3252
|
+
}
|
|
3253
|
+
}),
|
|
3254
|
+
'&:focus-visible': {
|
|
3255
|
+
outlineStyle: 'solid',
|
|
3256
|
+
outlineWidth: '2px',
|
|
3257
|
+
outlineOffset: '1px',
|
|
3258
|
+
outlineColor: theme.colors.primary
|
|
3259
|
+
}
|
|
3260
|
+
});
|
|
3261
|
+
const contentStyles = (theme, useNewShadows) => ({
|
|
3262
|
+
...popoverContentStyles(theme, useNewShadows)
|
|
3263
|
+
});
|
|
3264
|
+
|
|
3265
|
+
var Popover = /*#__PURE__*/Object.freeze({
|
|
3266
|
+
__proto__: null,
|
|
3267
|
+
Anchor: Anchor,
|
|
3268
|
+
Arrow: Arrow,
|
|
3269
|
+
Close: Close,
|
|
3270
|
+
Content: Content,
|
|
3271
|
+
Root: Root,
|
|
3272
|
+
Trigger: Trigger
|
|
3273
|
+
});
|
|
3274
|
+
|
|
3275
|
+
const {
|
|
3276
|
+
Text: AntDText$1
|
|
3277
|
+
} = Typography$1;
|
|
3278
|
+
function getTextEmotionStyles$1(theme, props) {
|
|
2913
3279
|
return /*#__PURE__*/css({
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
'
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
marginRight: 0
|
|
2926
|
-
}
|
|
2927
|
-
},
|
|
2928
|
-
[`& > ${buttonClass} > span`]: {
|
|
2929
|
-
verticalAlign: 'middle'
|
|
2930
|
-
},
|
|
2931
|
-
[`& > ${buttonClass}:disabled, & > ${buttonClass}:disabled:hover`]: {
|
|
2932
|
-
borderLeft: `1px solid ${theme.colors.actionDisabledText} !important`
|
|
3280
|
+
'&&': {
|
|
3281
|
+
display: 'block',
|
|
3282
|
+
fontSize: theme.typography.fontSizeSm,
|
|
3283
|
+
lineHeight: theme.typography.lineHeightSm,
|
|
3284
|
+
color: theme.colors.textSecondary,
|
|
3285
|
+
...(props.withoutMargins && {
|
|
3286
|
+
'&&': {
|
|
3287
|
+
marginTop: 0,
|
|
3288
|
+
marginBottom: 0
|
|
3289
|
+
}
|
|
3290
|
+
})
|
|
2933
3291
|
}
|
|
2934
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:
|
|
2935
|
-
}
|
|
2936
|
-
|
|
2937
|
-
|
|
3292
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
|
|
3293
|
+
}
|
|
3294
|
+
function Hint(userProps) {
|
|
3295
|
+
const {
|
|
2938
3296
|
dangerouslySetAntdProps,
|
|
2939
|
-
|
|
2940
|
-
|
|
3297
|
+
bold,
|
|
3298
|
+
withoutMargins,
|
|
3299
|
+
color,
|
|
2941
3300
|
...props
|
|
2942
|
-
} =
|
|
3301
|
+
} = userProps;
|
|
2943
3302
|
const {
|
|
2944
|
-
classNamePrefix,
|
|
2945
3303
|
theme
|
|
2946
3304
|
} = useDesignSystemTheme();
|
|
2947
3305
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2948
|
-
children: jsx(
|
|
2949
|
-
|
|
2950
|
-
compact: compact,
|
|
3306
|
+
children: jsx(AntDText$1, {
|
|
3307
|
+
...addDebugOutlineIfEnabled(),
|
|
2951
3308
|
...props,
|
|
3309
|
+
css: getTextEmotionStyles$1(theme, userProps),
|
|
2952
3310
|
...dangerouslySetAntdProps
|
|
2953
3311
|
})
|
|
2954
3312
|
});
|
|
2955
|
-
}
|
|
2956
|
-
|
|
2957
|
-
/**
|
|
2958
|
-
* A React custom hook that allows a callback function to be executed exactly once until it is explicitly reset.
|
|
2959
|
-
*
|
|
2960
|
-
* Usage:
|
|
2961
|
-
*
|
|
2962
|
-
* const originalCallback = () => { console.log('originalCallback'); }
|
|
2963
|
-
* const { callbackOnceUntilReset, reset } = useCallbackOnceUntilReset(originalCallback);
|
|
2964
|
-
*
|
|
2965
|
-
* // To execute the callback
|
|
2966
|
-
* callbackOnceUntilReset(); // Prints 'originalCallback'
|
|
2967
|
-
* callbackOnceUntilReset(); // No effect for further calls
|
|
2968
|
-
* reset();
|
|
2969
|
-
* callbackOnceUntilReset(); // Prints 'originalCallback' again
|
|
2970
|
-
*/
|
|
2971
|
-
const useCallbackOnceUntilReset = callback => {
|
|
2972
|
-
const canTriggerRef = useRef(true);
|
|
2973
|
-
const reset = useCallback(() => {
|
|
2974
|
-
canTriggerRef.current = true;
|
|
2975
|
-
}, []);
|
|
2976
|
-
const callbackOnceUntilReset = useCallback(() => {
|
|
2977
|
-
if (canTriggerRef.current) {
|
|
2978
|
-
callback();
|
|
2979
|
-
canTriggerRef.current = false;
|
|
2980
|
-
}
|
|
2981
|
-
}, [callback]);
|
|
2982
|
-
return {
|
|
2983
|
-
callbackOnceUntilReset,
|
|
2984
|
-
reset
|
|
2985
|
-
};
|
|
2986
|
-
};
|
|
3313
|
+
}
|
|
2987
3314
|
|
|
2988
|
-
const
|
|
2989
|
-
|
|
2990
|
-
validationState
|
|
2991
|
-
} = _ref;
|
|
2992
|
-
let {
|
|
2993
|
-
useTransparent = false,
|
|
2994
|
-
useFocusWithin = false
|
|
2995
|
-
} = _ref2;
|
|
2996
|
-
const inputClass = `.${clsPrefix}-input`;
|
|
2997
|
-
const affixClass = `.${clsPrefix}-input-affix-wrapper`;
|
|
2998
|
-
const affixClassFocused = `.${clsPrefix}-input-affix-wrapper-focused`;
|
|
2999
|
-
const clearIcon = `.${clsPrefix}-input-clear-icon`;
|
|
3000
|
-
const prefixIcon = `.${clsPrefix}-input-prefix`;
|
|
3001
|
-
const suffixIcon = `.${clsPrefix}-input-suffix`;
|
|
3002
|
-
const validationColor = getValidationStateColor(theme, validationState);
|
|
3003
|
-
const focusSpecifier = useFocusWithin ? 'focus-within' : 'focus';
|
|
3315
|
+
const getLinkStyles = (theme, clsPrefix) => {
|
|
3316
|
+
const classTypography = `.${clsPrefix}-typography`;
|
|
3004
3317
|
const styles = {
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
minHeight: theme.general.heightSm,
|
|
3008
|
-
...(validationState && {
|
|
3009
|
-
borderColor: validationColor
|
|
3010
|
-
}),
|
|
3011
|
-
'&:hover': {
|
|
3012
|
-
borderColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundHover
|
|
3013
|
-
},
|
|
3014
|
-
[`&:${focusSpecifier}`]: {
|
|
3015
|
-
outlineColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundDefault,
|
|
3016
|
-
outlineWidth: 2,
|
|
3017
|
-
outlineOffset: -2,
|
|
3018
|
-
outlineStyle: 'solid',
|
|
3019
|
-
boxShadow: 'none',
|
|
3020
|
-
borderColor: 'transparent'
|
|
3021
|
-
},
|
|
3022
|
-
'&:disabled': {
|
|
3023
|
-
backgroundColor: theme.colors.actionDisabledBackground,
|
|
3024
|
-
color: theme.colors.actionDisabledText
|
|
3025
|
-
},
|
|
3026
|
-
'&::placeholder': {
|
|
3027
|
-
color: theme.colors.textPlaceholder
|
|
3028
|
-
}
|
|
3029
|
-
},
|
|
3030
|
-
[`&${inputClass}, ${inputClass}`]: {
|
|
3031
|
-
...(useTransparent && {
|
|
3032
|
-
backgroundColor: 'transparent'
|
|
3033
|
-
})
|
|
3034
|
-
},
|
|
3035
|
-
[`&${affixClass}`]: {
|
|
3036
|
-
...(useTransparent && {
|
|
3037
|
-
backgroundColor: 'transparent'
|
|
3038
|
-
}),
|
|
3039
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
3040
|
-
paddingTop: 5,
|
|
3041
|
-
paddingBottom: 5,
|
|
3042
|
-
minHeight: theme.general.heightSm,
|
|
3043
|
-
'::before': {
|
|
3044
|
-
lineHeight: theme.typography.lineHeightBase
|
|
3045
|
-
},
|
|
3046
|
-
'&:hover': {
|
|
3047
|
-
borderColor: theme.colors.actionPrimaryBackgroundHover
|
|
3048
|
-
},
|
|
3049
|
-
[`input.${clsPrefix}-input`]: {
|
|
3050
|
-
borderRadius: 0
|
|
3051
|
-
}
|
|
3318
|
+
[`&${classTypography}, &${classTypography}:focus`]: {
|
|
3319
|
+
color: theme.colors.actionTertiaryTextDefault
|
|
3052
3320
|
},
|
|
3053
|
-
[`&${
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
outlineColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
3057
|
-
outlineWidth: 2,
|
|
3058
|
-
outlineOffset: -2,
|
|
3059
|
-
outlineStyle: 'solid',
|
|
3060
|
-
boxShadow: 'none',
|
|
3061
|
-
borderColor: 'transparent'
|
|
3062
|
-
}
|
|
3321
|
+
[`&${classTypography}:hover, &${classTypography}:hover .anticon`]: {
|
|
3322
|
+
color: theme.colors.actionTertiaryTextHover,
|
|
3323
|
+
textDecoration: 'underline'
|
|
3063
3324
|
},
|
|
3064
|
-
[
|
|
3065
|
-
|
|
3325
|
+
[`&${classTypography}:active, &${classTypography}:active .anticon`]: {
|
|
3326
|
+
color: theme.colors.actionTertiaryTextPress,
|
|
3327
|
+
textDecoration: 'underline'
|
|
3066
3328
|
},
|
|
3067
|
-
[
|
|
3068
|
-
|
|
3069
|
-
color: theme.colors.textSecondary
|
|
3329
|
+
[`&${classTypography}:focus-visible`]: {
|
|
3330
|
+
textDecoration: 'underline'
|
|
3070
3331
|
},
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3332
|
+
'.anticon': {
|
|
3333
|
+
fontSize: 12,
|
|
3334
|
+
verticalAlign: 'baseline'
|
|
3074
3335
|
},
|
|
3075
|
-
|
|
3336
|
+
// manually update color for link within a LegacyTooltip since tooltip always has an inverted background color for light/dark mode
|
|
3337
|
+
// this is required for accessibility compliance
|
|
3338
|
+
[`.${clsPrefix}-tooltip-inner a&${classTypography}`]: {
|
|
3339
|
+
[`&, :focus`]: {
|
|
3340
|
+
color: theme.colors.blue500,
|
|
3341
|
+
'.anticon': {
|
|
3342
|
+
color: theme.colors.blue500
|
|
3343
|
+
}
|
|
3344
|
+
},
|
|
3345
|
+
':active': {
|
|
3346
|
+
color: theme.colors.blue500,
|
|
3347
|
+
'.anticon': {
|
|
3348
|
+
color: theme.colors.blue500
|
|
3349
|
+
}
|
|
3350
|
+
},
|
|
3351
|
+
':hover': {
|
|
3352
|
+
color: theme.colors.blue400,
|
|
3353
|
+
'.anticon': {
|
|
3354
|
+
color: theme.colors.blue400
|
|
3355
|
+
}
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3076
3358
|
};
|
|
3077
|
-
return styles;
|
|
3359
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLinkStyles;");
|
|
3078
3360
|
};
|
|
3079
|
-
const
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
useTransparent
|
|
3087
|
-
});
|
|
3088
|
-
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getInputEmotionStyles;");
|
|
3361
|
+
const getEllipsisNewTabLinkStyles = () => {
|
|
3362
|
+
const styles = {
|
|
3363
|
+
paddingRight: 'calc(2px + 1em)',
|
|
3364
|
+
// 1em for icon
|
|
3365
|
+
position: 'relative'
|
|
3366
|
+
};
|
|
3367
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisNewTabLinkStyles;");
|
|
3089
3368
|
};
|
|
3090
|
-
const
|
|
3369
|
+
const getIconStyles = theme => {
|
|
3370
|
+
const styles = {
|
|
3371
|
+
marginLeft: 4,
|
|
3372
|
+
color: theme.colors.actionTertiaryTextDefault,
|
|
3373
|
+
position: 'relative',
|
|
3374
|
+
top: '1px'
|
|
3375
|
+
};
|
|
3376
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getIconStyles;");
|
|
3377
|
+
};
|
|
3378
|
+
const getEllipsisIconStyles = useNewIcons => {
|
|
3379
|
+
const styles = {
|
|
3380
|
+
position: 'absolute',
|
|
3381
|
+
right: 0,
|
|
3382
|
+
bottom: 0,
|
|
3383
|
+
top: 0,
|
|
3384
|
+
display: 'flex',
|
|
3385
|
+
alignItems: 'center',
|
|
3386
|
+
...(useNewIcons)
|
|
3387
|
+
};
|
|
3388
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisIconStyles;");
|
|
3389
|
+
};
|
|
3390
|
+
const Link = /*#__PURE__*/forwardRef(function Link(_ref, ref) {
|
|
3091
3391
|
let {
|
|
3092
|
-
validationState,
|
|
3093
|
-
autoComplete = 'off',
|
|
3094
3392
|
dangerouslySetAntdProps,
|
|
3095
|
-
dangerouslyAppendEmotionCSS,
|
|
3096
|
-
onChange,
|
|
3097
|
-
onClear,
|
|
3098
|
-
onFocus,
|
|
3099
3393
|
componentId,
|
|
3100
|
-
analyticsEvents,
|
|
3394
|
+
analyticsEvents = [DesignSystemEventProviderAnalyticsEventTypes.OnClick],
|
|
3395
|
+
onClick,
|
|
3101
3396
|
...props
|
|
3102
|
-
} =
|
|
3397
|
+
} = _ref;
|
|
3103
3398
|
const {
|
|
3104
|
-
|
|
3105
|
-
|
|
3399
|
+
children,
|
|
3400
|
+
openInNewTab,
|
|
3401
|
+
...restProps
|
|
3402
|
+
} = props;
|
|
3403
|
+
const {
|
|
3404
|
+
theme,
|
|
3405
|
+
classNamePrefix
|
|
3106
3406
|
} = useDesignSystemTheme();
|
|
3107
|
-
const
|
|
3407
|
+
const memoizedAnalyticsEvents = useMemo(() => analyticsEvents, [analyticsEvents]);
|
|
3108
3408
|
const eventContext = useDesignSystemEventComponentCallbacks({
|
|
3109
|
-
componentType: DesignSystemEventProviderComponentTypes.
|
|
3409
|
+
componentType: DesignSystemEventProviderComponentTypes.TypographyLink,
|
|
3110
3410
|
componentId,
|
|
3111
|
-
analyticsEvents:
|
|
3411
|
+
analyticsEvents: memoizedAnalyticsEvents,
|
|
3412
|
+
shouldStartInteraction: false
|
|
3413
|
+
});
|
|
3414
|
+
const onClickHandler = useCallback(e => {
|
|
3415
|
+
eventContext.onClick(e);
|
|
3416
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
3417
|
+
}, [eventContext, onClick]);
|
|
3418
|
+
const newTabProps = {
|
|
3419
|
+
rel: 'noopener noreferrer',
|
|
3420
|
+
target: '_blank'
|
|
3421
|
+
};
|
|
3422
|
+
const linkProps = openInNewTab ? {
|
|
3423
|
+
...restProps,
|
|
3424
|
+
...newTabProps
|
|
3425
|
+
} : {
|
|
3426
|
+
...restProps
|
|
3427
|
+
};
|
|
3428
|
+
const linkStyles = props.ellipsis && openInNewTab ? [getLinkStyles(theme, classNamePrefix), getEllipsisNewTabLinkStyles()] : getLinkStyles(theme, classNamePrefix);
|
|
3429
|
+
const iconStyles = props.ellipsis ? [getIconStyles(theme), getEllipsisIconStyles()] : getIconStyles(theme);
|
|
3430
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
3431
|
+
children: jsxs(Typography$1.Link, {
|
|
3432
|
+
...addDebugOutlineIfEnabled(),
|
|
3433
|
+
"aria-disabled": linkProps.disabled,
|
|
3434
|
+
css: linkStyles,
|
|
3435
|
+
ref: ref,
|
|
3436
|
+
onClick: onClickHandler,
|
|
3437
|
+
...linkProps,
|
|
3438
|
+
...dangerouslySetAntdProps,
|
|
3439
|
+
children: [children, openInNewTab ? jsx(NewWindowIcon, {
|
|
3440
|
+
css: iconStyles,
|
|
3441
|
+
...newTabProps
|
|
3442
|
+
}) : null]
|
|
3443
|
+
})
|
|
3112
3444
|
});
|
|
3445
|
+
});
|
|
3113
3446
|
|
|
3114
|
-
|
|
3447
|
+
const {
|
|
3448
|
+
Paragraph: AntDParagraph
|
|
3449
|
+
} = Typography$1;
|
|
3450
|
+
function getParagraphEmotionStyles(theme, clsPrefix, props) {
|
|
3451
|
+
return /*#__PURE__*/css({
|
|
3452
|
+
'&&': {
|
|
3453
|
+
fontSize: theme.typography.fontSizeBase,
|
|
3454
|
+
fontWeight: theme.typography.typographyRegularFontWeight,
|
|
3455
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
3456
|
+
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
3457
|
+
},
|
|
3458
|
+
'& .anticon': {
|
|
3459
|
+
verticalAlign: 'text-bottom'
|
|
3460
|
+
},
|
|
3461
|
+
[`& .${clsPrefix}-btn-link`]: {
|
|
3462
|
+
verticalAlign: 'baseline !important'
|
|
3463
|
+
}
|
|
3464
|
+
}, props.disabled && {
|
|
3465
|
+
'&&': {
|
|
3466
|
+
color: theme.colors.actionDisabledText
|
|
3467
|
+
}
|
|
3468
|
+
}, props.withoutMargins && {
|
|
3469
|
+
'&&': {
|
|
3470
|
+
marginTop: 0,
|
|
3471
|
+
marginBottom: 0
|
|
3472
|
+
}
|
|
3473
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getParagraphEmotionStyles;");
|
|
3474
|
+
}
|
|
3475
|
+
function Paragraph(userProps) {
|
|
3115
3476
|
const {
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3477
|
+
dangerouslySetAntdProps,
|
|
3478
|
+
withoutMargins,
|
|
3479
|
+
color,
|
|
3480
|
+
...props
|
|
3481
|
+
} = userProps;
|
|
3482
|
+
const {
|
|
3483
|
+
theme,
|
|
3484
|
+
classNamePrefix
|
|
3485
|
+
} = useDesignSystemTheme();
|
|
3486
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
3487
|
+
children: jsx(AntDParagraph, {
|
|
3488
|
+
...addDebugOutlineIfEnabled(),
|
|
3489
|
+
...props,
|
|
3490
|
+
className: props.className,
|
|
3491
|
+
css: getParagraphEmotionStyles(theme, classNamePrefix, userProps),
|
|
3492
|
+
...dangerouslySetAntdProps
|
|
3493
|
+
})
|
|
3494
|
+
});
|
|
3495
|
+
}
|
|
3496
|
+
|
|
3497
|
+
const {
|
|
3498
|
+
Text: AntDText
|
|
3499
|
+
} = Typography$1;
|
|
3500
|
+
function getTextEmotionStyles(theme, props) {
|
|
3501
|
+
return /*#__PURE__*/css({
|
|
3502
|
+
'&&': {
|
|
3503
|
+
fontSize: theme.typography.fontSizeBase,
|
|
3504
|
+
fontWeight: theme.typography.typographyRegularFontWeight,
|
|
3505
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
3506
|
+
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
3507
|
+
}
|
|
3508
|
+
}, props.disabled && {
|
|
3509
|
+
'&&': {
|
|
3510
|
+
color: theme.colors.actionDisabledText
|
|
3511
|
+
}
|
|
3512
|
+
}, props.hint && {
|
|
3513
|
+
'&&': {
|
|
3514
|
+
fontSize: theme.typography.fontSizeSm,
|
|
3515
|
+
lineHeight: theme.typography.lineHeightSm
|
|
3516
|
+
}
|
|
3517
|
+
}, props.bold && {
|
|
3518
|
+
'&&': {
|
|
3519
|
+
fontSize: theme.typography.fontSizeBase,
|
|
3520
|
+
fontWeight: theme.typography.typographyBoldFontWeight,
|
|
3521
|
+
lineHeight: theme.typography.lineHeightBase
|
|
3522
|
+
}
|
|
3523
|
+
}, props.code && {
|
|
3524
|
+
'&& > code': {
|
|
3525
|
+
color: theme.colors.textPrimary,
|
|
3526
|
+
fontSize: theme.typography.fontSizeBase,
|
|
3527
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
3528
|
+
background: theme.colors.typographyCodeBg,
|
|
3529
|
+
fontFamily: 'monospace',
|
|
3530
|
+
borderRadius: theme.legacyBorders.borderRadiusMd,
|
|
3531
|
+
padding: '2px 4px',
|
|
3532
|
+
border: 'unset',
|
|
3533
|
+
margin: 0
|
|
3534
|
+
}
|
|
3535
|
+
}, props.size && {
|
|
3536
|
+
'&&': (() => {
|
|
3537
|
+
switch (props.size) {
|
|
3538
|
+
case 'xxl':
|
|
3539
|
+
return {
|
|
3540
|
+
fontSize: theme.typography.fontSizeXxl,
|
|
3541
|
+
lineHeight: theme.typography.lineHeightXxl,
|
|
3542
|
+
'& .anticon': {
|
|
3543
|
+
lineHeight: theme.typography.lineHeightXxl,
|
|
3544
|
+
verticalAlign: 'middle'
|
|
3545
|
+
}
|
|
3546
|
+
};
|
|
3547
|
+
case 'xl':
|
|
3548
|
+
return {
|
|
3549
|
+
fontSize: theme.typography.fontSizeXl,
|
|
3550
|
+
lineHeight: theme.typography.lineHeightXl,
|
|
3551
|
+
'& .anticon': {
|
|
3552
|
+
lineHeight: theme.typography.lineHeightXl,
|
|
3553
|
+
verticalAlign: 'middle'
|
|
3554
|
+
}
|
|
3555
|
+
};
|
|
3556
|
+
case 'lg':
|
|
3557
|
+
return {
|
|
3558
|
+
fontSize: theme.typography.fontSizeLg,
|
|
3559
|
+
lineHeight: theme.typography.lineHeightLg,
|
|
3560
|
+
'& .anticon': {
|
|
3561
|
+
lineHeight: theme.typography.lineHeightLg,
|
|
3562
|
+
verticalAlign: 'middle'
|
|
3563
|
+
}
|
|
3564
|
+
};
|
|
3565
|
+
case 'sm':
|
|
3566
|
+
return {
|
|
3567
|
+
fontSize: theme.typography.fontSizeSm,
|
|
3568
|
+
lineHeight: theme.typography.lineHeightSm,
|
|
3569
|
+
'& .anticon': {
|
|
3570
|
+
verticalAlign: '-0.219em'
|
|
3571
|
+
}
|
|
3572
|
+
};
|
|
3573
|
+
default:
|
|
3574
|
+
return {};
|
|
3575
|
+
}
|
|
3576
|
+
})()
|
|
3577
|
+
}, props.withoutMargins && {
|
|
3578
|
+
'&&': {
|
|
3579
|
+
marginTop: 0,
|
|
3580
|
+
marginBottom: 0
|
|
3128
3581
|
}
|
|
3129
|
-
};
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
};
|
|
3134
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
3135
|
-
children: jsx(Input$2, {
|
|
3136
|
-
autoComplete: autoComplete,
|
|
3137
|
-
"data-validation": validationState,
|
|
3138
|
-
ref: ref,
|
|
3139
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
3140
|
-
validationState
|
|
3141
|
-
}, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Input;"],
|
|
3142
|
-
onChange: handleChange,
|
|
3143
|
-
onFocus: handleFocus,
|
|
3144
|
-
...props,
|
|
3145
|
-
...dangerouslySetAntdProps
|
|
3146
|
-
})
|
|
3147
|
-
});
|
|
3148
|
-
});
|
|
3149
|
-
|
|
3150
|
-
const Password = /*#__PURE__*/forwardRef(function Password(_ref, ref) {
|
|
3151
|
-
let {
|
|
3152
|
-
validationState,
|
|
3153
|
-
autoComplete = 'off',
|
|
3154
|
-
dangerouslySetAntdProps,
|
|
3155
|
-
dangerouslyAppendEmotionCSS,
|
|
3156
|
-
...props
|
|
3157
|
-
} = _ref;
|
|
3582
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
|
|
3583
|
+
}
|
|
3584
|
+
function Text(userProps) {
|
|
3585
|
+
// Omit props that are not supported by `antd`
|
|
3158
3586
|
const {
|
|
3159
|
-
classNamePrefix,
|
|
3160
|
-
theme
|
|
3161
|
-
} = useDesignSystemTheme();
|
|
3162
|
-
const useTransparent = safex('databricks.fe.designsystem.useTransparentInput', false);
|
|
3163
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
3164
|
-
children: jsx(Input$2.Password, {
|
|
3165
|
-
visibilityToggle: false,
|
|
3166
|
-
ref: ref,
|
|
3167
|
-
autoComplete: autoComplete,
|
|
3168
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
3169
|
-
validationState
|
|
3170
|
-
}, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
|
|
3171
|
-
...props,
|
|
3172
|
-
...dangerouslySetAntdProps
|
|
3173
|
-
})
|
|
3174
|
-
});
|
|
3175
|
-
});
|
|
3176
|
-
|
|
3177
|
-
const TextArea = /*#__PURE__*/forwardRef(function TextArea(_ref, ref) {
|
|
3178
|
-
let {
|
|
3179
|
-
validationState,
|
|
3180
|
-
autoComplete = 'off',
|
|
3181
3587
|
dangerouslySetAntdProps,
|
|
3182
|
-
|
|
3588
|
+
bold,
|
|
3589
|
+
hint,
|
|
3590
|
+
withoutMargins,
|
|
3591
|
+
color,
|
|
3183
3592
|
...props
|
|
3184
|
-
} =
|
|
3593
|
+
} = userProps;
|
|
3185
3594
|
const {
|
|
3186
|
-
classNamePrefix,
|
|
3187
3595
|
theme
|
|
3188
3596
|
} = useDesignSystemTheme();
|
|
3189
|
-
const useTransparent = safex('databricks.fe.designsystem.useTransparentInput', false);
|
|
3190
3597
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
3191
|
-
children: jsx(
|
|
3192
|
-
|
|
3193
|
-
autoComplete: autoComplete,
|
|
3194
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
3195
|
-
validationState
|
|
3196
|
-
}, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"],
|
|
3598
|
+
children: jsx(AntDText, {
|
|
3599
|
+
...addDebugOutlineIfEnabled(),
|
|
3197
3600
|
...props,
|
|
3601
|
+
className: props.className,
|
|
3602
|
+
css: getTextEmotionStyles(theme, userProps),
|
|
3198
3603
|
...dangerouslySetAntdProps
|
|
3199
3604
|
})
|
|
3200
3605
|
});
|
|
3201
|
-
}
|
|
3202
|
-
|
|
3203
|
-
// Properly creates the namespace and dot-notation components with correct types.
|
|
3204
|
-
const InputNamespace = /* #__PURE__ */Object.assign(Input$1, {
|
|
3205
|
-
TextArea,
|
|
3206
|
-
Password,
|
|
3207
|
-
Group
|
|
3208
|
-
});
|
|
3209
|
-
const Input = InputNamespace;
|
|
3606
|
+
}
|
|
3210
3607
|
|
|
3211
|
-
|
|
3608
|
+
const MiddleElideSuffixLength = 6;
|
|
3609
|
+
function TextMiddleElide(_ref) {
|
|
3610
|
+
var _process, _textProps$title;
|
|
3212
3611
|
let {
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
localizeStepNumber,
|
|
3217
|
-
responsive = true
|
|
3612
|
+
text,
|
|
3613
|
+
suffixLength = MiddleElideSuffixLength,
|
|
3614
|
+
...textProps
|
|
3218
3615
|
} = _ref;
|
|
3616
|
+
const id = useMemo(() => _uniqueId('text-middle-elided-'), []);
|
|
3219
3617
|
const {
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
const
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
titleTextColor,
|
|
3250
|
-
descriptionTextColor,
|
|
3251
|
-
hasStepItemIconBorder
|
|
3252
|
-
} = getStepContentStyleFields(theme, isCurrentStep, step.status, StepIcon);
|
|
3253
|
-
return jsx("li", {
|
|
3254
|
-
"aria-current": isCurrentStep,
|
|
3255
|
-
css: /*#__PURE__*/css(getStepItemStyle(theme, isHorizontal, isLastStep), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3256
|
-
children: jsxs(StepContentGrid, {
|
|
3257
|
-
isHorizontal: isHorizontal,
|
|
3258
|
-
isCurrentStep: isCurrentStep,
|
|
3259
|
-
children: [jsx("div", {
|
|
3260
|
-
css: /*#__PURE__*/css(getStepItemIconParentStyle(theme, isCurrentStep, iconBackgroundColor, hasStepItemIconBorder), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3261
|
-
children: StepIcon ? jsx(StepIcon, {
|
|
3262
|
-
statusColor: iconTextColor,
|
|
3263
|
-
status: step.status
|
|
3264
|
-
}) : icon ? jsx("span", {
|
|
3265
|
-
css: /*#__PURE__*/css({
|
|
3266
|
-
color: iconTextColor
|
|
3267
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3268
|
-
children: icon
|
|
3269
|
-
}) : jsx(Typography.Title, {
|
|
3270
|
-
level: contentTitleLevel,
|
|
3271
|
-
css: /*#__PURE__*/css({
|
|
3272
|
-
color: `${iconTextColor} !important`
|
|
3273
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3274
|
-
withoutMargins: true,
|
|
3275
|
-
children: localizeStepNumber(index + 1)
|
|
3276
|
-
})
|
|
3277
|
-
}), jsx(Typography.Title, {
|
|
3278
|
-
level: contentTitleLevel,
|
|
3279
|
-
withoutMargins: true,
|
|
3280
|
-
css: /*#__PURE__*/css({
|
|
3281
|
-
flexShrink: 0,
|
|
3282
|
-
color: `${titleTextColor} !important`
|
|
3283
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3284
|
-
children: step.title
|
|
3285
|
-
}), displayEndingDivider && jsx("div", {
|
|
3286
|
-
css: /*#__PURE__*/css(getStepEndingDividerStyles(theme, isHorizontal, isCurrentStep), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;")
|
|
3287
|
-
}), step.description && jsx(Typography.Text, {
|
|
3288
|
-
css: /*#__PURE__*/css(getStepDescriptionStyles(theme, isHorizontal, isLastStep, descriptionTextColor), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3289
|
-
withoutMargins: true,
|
|
3290
|
-
size: "sm",
|
|
3291
|
-
children: step.description
|
|
3292
|
-
})]
|
|
3293
|
-
})
|
|
3294
|
-
}, index);
|
|
3295
|
-
})
|
|
3618
|
+
start,
|
|
3619
|
+
suffix
|
|
3620
|
+
} = getStartAndSuffix(text, suffixLength);
|
|
3621
|
+
const disableElide = ((_process = process) === null || _process === void 0 || (_process = _process.env) === null || _process === void 0 ? void 0 : _process.NODE_ENV) === 'test'; // so unit tests play nice
|
|
3622
|
+
|
|
3623
|
+
// use the entire text on select and copy
|
|
3624
|
+
useEffect(() => {
|
|
3625
|
+
var _document$querySelect;
|
|
3626
|
+
const clipboardCopyHandler = e => {
|
|
3627
|
+
var _e$clipboardData;
|
|
3628
|
+
e === null || e === void 0 || e.preventDefault();
|
|
3629
|
+
e === null || e === void 0 || (_e$clipboardData = e.clipboardData) === null || _e$clipboardData === void 0 || _e$clipboardData.setData('text/plain', text);
|
|
3630
|
+
};
|
|
3631
|
+
const selector = `.${id}`;
|
|
3632
|
+
(_document$querySelect = document.querySelector(selector)) === null || _document$querySelect === void 0 || _document$querySelect.addEventListener('copy', clipboardCopyHandler);
|
|
3633
|
+
return () => {
|
|
3634
|
+
var _document$querySelect2;
|
|
3635
|
+
(_document$querySelect2 = document.querySelector(selector)) === null || _document$querySelect2 === void 0 || _document$querySelect2.removeEventListener('copy', clipboardCopyHandler);
|
|
3636
|
+
};
|
|
3637
|
+
}, [id, text]);
|
|
3638
|
+
return jsx(Text, {
|
|
3639
|
+
ellipsis: disableElide ? undefined : {
|
|
3640
|
+
suffix
|
|
3641
|
+
},
|
|
3642
|
+
...textProps,
|
|
3643
|
+
"aria-label": text,
|
|
3644
|
+
title: (_textProps$title = textProps.title) !== null && _textProps$title !== void 0 ? _textProps$title : text,
|
|
3645
|
+
className: id,
|
|
3646
|
+
children: disableElide ? text : start
|
|
3296
3647
|
});
|
|
3297
3648
|
}
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
flexDirection: isHorizontal ? 'row' : 'column',
|
|
3303
|
-
flexWrap: 'wrap',
|
|
3304
|
-
alignItems: 'flex-start',
|
|
3305
|
-
gap: isHorizontal ? theme.spacing.md : theme.spacing.sm,
|
|
3306
|
-
width: '100%',
|
|
3307
|
-
margin: '0',
|
|
3308
|
-
padding: '0'
|
|
3309
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getStepsStyle;");
|
|
3310
|
-
}
|
|
3311
|
-
function getStepItemStyle(theme, isHorizontal, isLastStep) {
|
|
3312
|
-
return /*#__PURE__*/css({
|
|
3313
|
-
display: 'flex',
|
|
3314
|
-
flexDirection: 'column',
|
|
3315
|
-
alignItems: 'center',
|
|
3316
|
-
justifyContent: 'flex-start',
|
|
3317
|
-
flexGrow: isLastStep ? 0 : 1,
|
|
3318
|
-
marginRight: isLastStep ? theme.spacing.lg + theme.spacing.md : 0,
|
|
3319
|
-
width: isHorizontal ? undefined : '100%'
|
|
3320
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getStepItemStyle;");
|
|
3321
|
-
}
|
|
3322
|
-
function getStepContentStyleFields(theme, isCurrentStep, status, icon) {
|
|
3323
|
-
const fields = getStepContentStyleFieldsFromStatus(theme, isCurrentStep, status);
|
|
3324
|
-
if (icon) {
|
|
3649
|
+
|
|
3650
|
+
// Exported for unit tests
|
|
3651
|
+
function getStartAndSuffix(text, suffixLength) {
|
|
3652
|
+
if (text.length <= suffixLength) {
|
|
3325
3653
|
return {
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
iconBackgroundColor: undefined,
|
|
3329
|
-
iconTextColor: getCustomIconColor(theme, isCurrentStep, status),
|
|
3330
|
-
hasStepItemIconBorder: false
|
|
3654
|
+
start: text,
|
|
3655
|
+
suffix: undefined
|
|
3331
3656
|
};
|
|
3332
3657
|
}
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
case 'loading':
|
|
3340
|
-
return theme.colors.textPlaceholder;
|
|
3341
|
-
case 'error':
|
|
3342
|
-
return theme.colors.textValidationDanger;
|
|
3343
|
-
default:
|
|
3344
|
-
case 'upcoming':
|
|
3345
|
-
return isCurrentStep ? theme.colors.actionLinkDefault : theme.colors.textPlaceholder;
|
|
3346
|
-
}
|
|
3658
|
+
const start = text.slice(0, text.length - suffixLength).trim();
|
|
3659
|
+
const suffix = text.slice(-suffixLength).trim();
|
|
3660
|
+
return {
|
|
3661
|
+
start,
|
|
3662
|
+
suffix
|
|
3663
|
+
};
|
|
3347
3664
|
}
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3665
|
+
|
|
3666
|
+
const {
|
|
3667
|
+
Title: AntDTitle
|
|
3668
|
+
} = Typography$1;
|
|
3669
|
+
function getLevelStyles(theme, props) {
|
|
3670
|
+
switch (props.level) {
|
|
3671
|
+
case 1:
|
|
3672
|
+
return /*#__PURE__*/css({
|
|
3673
|
+
'&&': {
|
|
3674
|
+
fontSize: theme.typography.fontSizeXxl,
|
|
3675
|
+
lineHeight: theme.typography.lineHeightXxl,
|
|
3676
|
+
fontWeight: theme.typography.typographyBoldFontWeight
|
|
3677
|
+
},
|
|
3678
|
+
'& > .anticon': {
|
|
3679
|
+
lineHeight: theme.typography.lineHeightXxl
|
|
3680
|
+
}
|
|
3681
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
3682
|
+
case 2:
|
|
3683
|
+
return /*#__PURE__*/css({
|
|
3684
|
+
'&&': {
|
|
3685
|
+
fontSize: theme.typography.fontSizeXl,
|
|
3686
|
+
lineHeight: theme.typography.lineHeightXl,
|
|
3687
|
+
fontWeight: theme.typography.typographyBoldFontWeight
|
|
3688
|
+
},
|
|
3689
|
+
'& > .anticon': {
|
|
3690
|
+
lineHeight: theme.typography.lineHeightXl
|
|
3691
|
+
}
|
|
3692
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
3693
|
+
case 3:
|
|
3694
|
+
return /*#__PURE__*/css({
|
|
3695
|
+
'&&': {
|
|
3696
|
+
fontSize: theme.typography.fontSizeLg,
|
|
3697
|
+
lineHeight: theme.typography.lineHeightLg,
|
|
3698
|
+
fontWeight: theme.typography.typographyBoldFontWeight
|
|
3699
|
+
},
|
|
3700
|
+
'& > .anticon': {
|
|
3701
|
+
lineHeight: theme.typography.lineHeightLg
|
|
3702
|
+
}
|
|
3703
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
3704
|
+
case 4:
|
|
3382
3705
|
default:
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
}
|
|
3394
|
-
return {
|
|
3395
|
-
icon: undefined,
|
|
3396
|
-
iconBackgroundColor: undefined,
|
|
3397
|
-
iconTextColor: theme.colors.textPlaceholder,
|
|
3398
|
-
titleTextColor: theme.colors.textSecondary,
|
|
3399
|
-
descriptionTextColor: theme.colors.textSecondary,
|
|
3400
|
-
hasStepItemIconBorder: true
|
|
3401
|
-
};
|
|
3402
|
-
}
|
|
3403
|
-
}
|
|
3404
|
-
const MaxHorizontalStepDescriptionWidth = 140;
|
|
3405
|
-
const CurrentStepIconSize = DEFAULT_SPACING_UNIT * 4;
|
|
3406
|
-
const NonCurrentStepIconSize = DEFAULT_SPACING_UNIT * 3;
|
|
3407
|
-
function getStepItemIconParentStyle(theme, isCurrentStep, iconBackgroundColor, hasStepItemIconBorder) {
|
|
3408
|
-
return /*#__PURE__*/css({
|
|
3409
|
-
width: isCurrentStep ? CurrentStepIconSize : NonCurrentStepIconSize,
|
|
3410
|
-
height: isCurrentStep ? CurrentStepIconSize : NonCurrentStepIconSize,
|
|
3411
|
-
backgroundColor: iconBackgroundColor,
|
|
3412
|
-
borderRadius: '50%',
|
|
3413
|
-
display: 'flex',
|
|
3414
|
-
justifyContent: 'center',
|
|
3415
|
-
alignItems: 'center',
|
|
3416
|
-
fontSize: '20px',
|
|
3417
|
-
flexShrink: 0,
|
|
3418
|
-
border: hasStepItemIconBorder ? `1px solid ${theme.colors.textPlaceholder}` : undefined
|
|
3419
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getStepItemIconParentStyle;");
|
|
3420
|
-
}
|
|
3421
|
-
function getStepEndingDividerStyles(theme, isHorizontal, isCurrentStep) {
|
|
3422
|
-
const backgroundColor = isCurrentStep ? theme.colors.actionLinkDefault : theme.colors.border;
|
|
3423
|
-
if (isHorizontal) {
|
|
3424
|
-
return /*#__PURE__*/css({
|
|
3425
|
-
backgroundColor,
|
|
3426
|
-
height: '1px',
|
|
3427
|
-
width: '100%',
|
|
3428
|
-
minWidth: theme.spacing.md
|
|
3429
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getStepEndingDividerStyles;");
|
|
3706
|
+
return /*#__PURE__*/css({
|
|
3707
|
+
'&&': {
|
|
3708
|
+
fontSize: theme.typography.fontSizeMd,
|
|
3709
|
+
lineHeight: theme.typography.lineHeightMd,
|
|
3710
|
+
fontWeight: theme.typography.typographyBoldFontWeight
|
|
3711
|
+
},
|
|
3712
|
+
'& > .anticon': {
|
|
3713
|
+
lineHeight: theme.typography.lineHeightMd
|
|
3714
|
+
}
|
|
3715
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
3430
3716
|
}
|
|
3431
|
-
return /*#__PURE__*/css({
|
|
3432
|
-
backgroundColor,
|
|
3433
|
-
height: '100%',
|
|
3434
|
-
minHeight: theme.spacing.md,
|
|
3435
|
-
width: '1px',
|
|
3436
|
-
alignSelf: 'flex-start',
|
|
3437
|
-
marginLeft: theme.spacing.md
|
|
3438
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getStepEndingDividerStyles;");
|
|
3439
3717
|
}
|
|
3440
|
-
function
|
|
3441
|
-
return /*#__PURE__*/css({
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
},
|
|
3718
|
+
function getTitleEmotionStyles(theme, props) {
|
|
3719
|
+
return /*#__PURE__*/css(getLevelStyles(theme, props), {
|
|
3720
|
+
'&&': {
|
|
3721
|
+
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
3722
|
+
},
|
|
3723
|
+
'& > .anticon': {
|
|
3724
|
+
verticalAlign: 'middle'
|
|
3725
|
+
}
|
|
3726
|
+
}, props.withoutMargins && {
|
|
3727
|
+
'&&': {
|
|
3728
|
+
marginTop: '0 !important',
|
|
3729
|
+
// override general styling
|
|
3730
|
+
marginBottom: '0 !important' // override general styling
|
|
3731
|
+
}
|
|
3732
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getTitleEmotionStyles;");
|
|
3449
3733
|
}
|
|
3450
|
-
function
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3734
|
+
function Title(userProps) {
|
|
3735
|
+
const {
|
|
3736
|
+
dangerouslySetAntdProps,
|
|
3737
|
+
withoutMargins,
|
|
3738
|
+
color,
|
|
3739
|
+
elementLevel,
|
|
3740
|
+
...props
|
|
3741
|
+
} = userProps;
|
|
3456
3742
|
const {
|
|
3457
3743
|
theme
|
|
3458
3744
|
} = useDesignSystemTheme();
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
width: '100%'
|
|
3469
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:StepContentGrid;"),
|
|
3470
|
-
children: children
|
|
3471
|
-
});
|
|
3472
|
-
}
|
|
3473
|
-
return jsx("div", {
|
|
3474
|
-
css: /*#__PURE__*/css({
|
|
3475
|
-
display: 'grid',
|
|
3476
|
-
gridTemplateColumns: `${CurrentStepIconSize}px auto`,
|
|
3477
|
-
alignItems: 'center',
|
|
3478
|
-
justifyItems: 'flex-start',
|
|
3479
|
-
gridColumnGap: theme.spacing.md,
|
|
3480
|
-
gridRowGap: theme.spacing.sm,
|
|
3481
|
-
width: '100%',
|
|
3482
|
-
'& > :first-child': {
|
|
3483
|
-
// horizontally center the first column (circle/icon)
|
|
3484
|
-
justifySelf: 'center'
|
|
3485
|
-
}
|
|
3486
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:StepContentGrid;"),
|
|
3487
|
-
children: children
|
|
3745
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
3746
|
+
children: jsx(AntDTitle, {
|
|
3747
|
+
...addDebugOutlineIfEnabled(),
|
|
3748
|
+
...props,
|
|
3749
|
+
level: elementLevel !== null && elementLevel !== void 0 ? elementLevel : props.level,
|
|
3750
|
+
className: props.className,
|
|
3751
|
+
css: getTitleEmotionStyles(theme, userProps),
|
|
3752
|
+
...dangerouslySetAntdProps
|
|
3753
|
+
})
|
|
3488
3754
|
});
|
|
3489
3755
|
}
|
|
3490
3756
|
|
|
3491
|
-
|
|
3492
|
-
const MinimumHorizonalDirectionWidth = 532;
|
|
3493
|
-
|
|
3494
|
-
// exported for unit test
|
|
3495
|
-
function useResponsiveDirection(_ref3) {
|
|
3757
|
+
const Truncate = _ref => {
|
|
3496
3758
|
let {
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
const
|
|
3759
|
+
children,
|
|
3760
|
+
lines = 1,
|
|
3761
|
+
...props
|
|
3762
|
+
} = _ref;
|
|
3763
|
+
const [textContent, setTextContent] = useState('');
|
|
3764
|
+
const spanRef = useRef(null);
|
|
3765
|
+
|
|
3766
|
+
// This ensures that truncated text is always available to the user via a native tooltip
|
|
3503
3767
|
useEffect(() => {
|
|
3504
|
-
if (
|
|
3505
|
-
|
|
3768
|
+
if (spanRef.current) {
|
|
3769
|
+
setTextContent(spanRef.current.textContent || '');
|
|
3506
3770
|
}
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3771
|
+
}, [spanRef, children]);
|
|
3772
|
+
return jsx("span", {
|
|
3773
|
+
ref: spanRef,
|
|
3774
|
+
title: textContent,
|
|
3775
|
+
css: /*#__PURE__*/css({
|
|
3776
|
+
overflow: 'hidden',
|
|
3777
|
+
textOverflow: 'ellipsis',
|
|
3778
|
+
whiteSpace: 'normal',
|
|
3779
|
+
wordBreak: 'break-word',
|
|
3780
|
+
display: '-webkit-box',
|
|
3781
|
+
webkitLineClamp: lines,
|
|
3782
|
+
WebkitBoxOrient: 'vertical',
|
|
3783
|
+
WebkitLineClamp: lines
|
|
3784
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Truncate;"),
|
|
3785
|
+
...props,
|
|
3786
|
+
children: children
|
|
3787
|
+
});
|
|
3788
|
+
};
|
|
3789
|
+
|
|
3790
|
+
const Typography = /* #__PURE__ */(() => {
|
|
3791
|
+
function Typography(_ref) {
|
|
3792
|
+
let {
|
|
3793
|
+
dangerouslySetAntdProps,
|
|
3794
|
+
...props
|
|
3795
|
+
} = _ref;
|
|
3796
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
3797
|
+
children: jsx(Typography$1, {
|
|
3798
|
+
...addDebugOutlineIfEnabled(),
|
|
3799
|
+
...props,
|
|
3800
|
+
...dangerouslySetAntdProps
|
|
3801
|
+
})
|
|
3515
3802
|
});
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
return
|
|
3525
|
-
|
|
3526
|
-
};
|
|
3527
|
-
}
|
|
3803
|
+
}
|
|
3804
|
+
Typography.Text = Text;
|
|
3805
|
+
Typography.Title = Title;
|
|
3806
|
+
Typography.Paragraph = Paragraph;
|
|
3807
|
+
Typography.Link = Link;
|
|
3808
|
+
Typography.Hint = Hint;
|
|
3809
|
+
Typography.Truncate = Truncate;
|
|
3810
|
+
Typography.TextMiddleElide = TextMiddleElide;
|
|
3811
|
+
return Typography;
|
|
3812
|
+
})();
|
|
3528
3813
|
|
|
3529
|
-
export {
|
|
3530
|
-
//# sourceMappingURL=
|
|
3814
|
+
export { Title as $, Arrow as A, Button as B, CloseIcon as C, DesignSystemAntDConfigProvider as D, getInfoIconStyles as E, getKeyboardNavigationFunctions as F, dialogComboboxLookAheadKeyDown as G, getCheckboxStyles as H, Icon as I, getDialogComboboxOptionLabelWidth as J, getContentOptions as K, LoadingState as L, findHighlightedOption as M, highlightOption as N, findClosestOptionSibling as O, getComboboxOptionLabelStyles as P, getSelectItemWithHintColumnStyles as Q, RestoreAntDDefaultClsPrefix as R, Spinner as S, Trigger as T, getHintColumnStyles as U, getValidationStateColor as V, ApplyDesignSystemContextOverrides as W, getShadowScrollStyles as X, DangerIcon as Y, WarningIcon as Z, LoadingIcon as _, useDesignSystemTheme as a, AccessibleContainer as a0, ChevronLeftIcon as a1, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as a2, lightColorList as a3, getDefaultStyles as a4, getPrimaryStyles as a5, getDisabledSplitButtonStyles as a6, getDisabledPrimarySplitButtonStyles as a7, getMemoizedButtonEmotionStyles as a8, getButtonEmotionStyles as a9, DesignSystemEventProvider as aa, useDesignSystemEventSuppressInteractionContext as ab, DesignSystemThemeContext as ac, DesignSystemContext as ad, DesignSystemThemeProvider as ae, DesignSystemProvider as af, ApplyDesignSystemFlags as ag, useAntDConfigProviderContext as ah, isOptionDisabled as ai, resetTabIndexToFocusedElement as aj, WithDesignSystemThemeHoc as ak, NewWindowIcon as al, LoadingStateContext as am, Popover as an, getTypographyColor as ao, getBottomOnlyShadowScrollStyles as ap, getVirtualizedComboboxMenuItemStyles as aq, ColorVars as ar, primitiveColors as as, useFormContext as at, Form as au, DEFAULT_SPACING_UNIT as av, DesignSystemEventProviderAnalyticsEventTypes as b, useDesignSystemEventComponentCallbacks as c, DesignSystemEventProviderComponentTypes as d, addDebugOutlineStylesIfEnabled as e, useNotifyOnFirstView as f, getAnimationCss as g, addDebugOutlineIfEnabled as h, useDesignSystemSafexFlags as i, getDarkModePortalStyles as j, useUniqueId as k, Root as l, Content as m, ChevronRightIcon as n, DesignSystemEventSuppressInteractionProviderContext as o, DesignSystemEventSuppressInteractionTrueContextValue as p, Typography as q, importantify as r, safex as s, CheckIcon as t, useDesignSystemContext as u, visuallyHidden as v, getComboboxOptionItemWrapperStyles as w, getComboboxContentWrapperStyles as x, getFooterStyles as y, highlightFirstNonDisabledOption as z };
|
|
3815
|
+
//# sourceMappingURL=Typography-CTfAhQ8V.js.map
|