twenty-ui 2.41.0 → 2.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +42 -22
- package/dist/{AllIcons-UzofKGsA.js → AllIcons-BkHLT6oe.js} +260 -260
- package/dist/{AllIcons-CFPS3m2F.cjs → AllIcons-DMeLF1LP.cjs} +1 -1
- package/dist/Avatar-BGFK0_a_.cjs +1 -0
- package/dist/Avatar-C_TzSJBe.js +67 -0
- package/dist/Heading-CQqDjovJ.cjs +1 -0
- package/dist/Heading-DvxTKEaL.js +16 -0
- package/dist/HorizontalSeparator-JwV0dB5W.js +44 -0
- package/dist/HorizontalSeparator-vJLHHlc4.cjs +1 -0
- package/dist/ListItem-C08r49UJ.js +109 -0
- package/dist/ListItem-D75aS69B.cjs +1 -0
- package/dist/ListItem.module-CFDku7rI.cjs +1 -0
- package/dist/ListItem.module-DBhzbt9-.js +38 -0
- package/dist/Loader-CHKTYJo7.cjs +1 -0
- package/dist/Loader-DbOLVUcK.js +14 -0
- package/dist/OverflowingTextWithTooltip-BXWJtb0f.js +179 -0
- package/dist/OverflowingTextWithTooltip-DpizuDxR.cjs +1 -0
- package/dist/Pill-BJ3K8Mdc.cjs +1 -0
- package/dist/Pill-DaFEFIOT.js +9 -0
- package/dist/ProgressBar-DwJQXHwg.cjs +1 -0
- package/dist/ProgressBar-RWLNIkzm.js +55 -0
- package/dist/ResizeHandle-BWfY2ONo.js +37 -0
- package/dist/ResizeHandle-IVbYS3b8.cjs +1 -0
- package/dist/Switch-BvVP6vjR.js +101 -0
- package/dist/Switch-DuoJ4ytC.cjs +1 -0
- package/dist/TabsTabContent-BWQCg7Ua.js +40 -0
- package/dist/TabsTabContent-ChqlTk3P.cjs +1 -0
- package/dist/components/code-editor/CodeEditor/CodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/waitForCodeEditorContent.d.ts +1 -0
- package/dist/{primitives/input/CodeEditor/CodeEditor.d.ts → components/code-editor/CodeEditor/types/CodeEditorProps.d.ts} +1 -2
- package/dist/components/code-editor/CodeEditorHeader/CodeEditorHeader.d.ts +2 -0
- package/dist/components/code-editor/CodeEditorHeader/types/CodeEditorHeaderProps.d.ts +5 -0
- package/dist/components/code-editor/index.d.ts +6 -0
- package/dist/components/code-editor.cjs +1 -0
- package/dist/components/code-editor.mjs +229 -0
- package/dist/components/data-display/AvatarGroup/AvatarGroup.d.ts +2 -0
- package/dist/{primitives/data-display/AvatarGroup/AvatarGroup.d.ts → components/data-display/AvatarGroup/types/AvatarGroupProps.d.ts} +0 -1
- package/dist/components/data-display/JsonTree/JsonTree.d.ts +2 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree/internal}/JsonNestedNode.d.ts +1 -1
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree}/internal/JsonNodeLabel.d.ts +1 -1
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree}/internal/JsonNodeValue.d.ts +1 -1
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree/internal}/JsonTreeContextProvider.d.ts +1 -1
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree/internal}/JsonValueNode.d.ts +1 -1
- package/dist/components/data-display/JsonTree/internal/contexts/JsonTreeContext.d.ts +2 -0
- package/dist/{primitives/json-visualizer → components/data-display/JsonTree/internal}/hooks/useJsonTreeContextOrThrow.d.ts +1 -1
- package/dist/{primitives/json-visualizer/contexts/JsonTreeContext.d.ts → components/data-display/JsonTree/internal/types/JsonTreeContextType.d.ts} +2 -6
- package/dist/{primitives/json-visualizer → components/data-display/JsonTree/internal}/utils/isTwoFirstDepths.d.ts +1 -1
- package/dist/{primitives/json-visualizer → components/data-display/JsonTree}/types/JsonNodeHighlighting.d.ts +1 -1
- package/dist/components/data-display/JsonTree/types/JsonTreeEntry.d.ts +6 -0
- package/dist/components/data-display/JsonTree/types/JsonTreeProps.d.ts +12 -0
- package/dist/components/data-display/JsonTree/types/ShouldExpandNodeInitiallyProps.d.ts +4 -0
- package/dist/components/data-display/TintedIconTile/TintedIconTile.d.ts +2 -0
- package/dist/components/data-display/TintedIconTile/types/TintedIconTileProps.d.ts +7 -0
- package/dist/components/feedback/Callout/Callout.d.ts +2 -0
- package/dist/components/feedback/Callout/types/CalloutProps.d.ts +15 -0
- package/dist/components/feedback/Callout/types/CalloutVariant.d.ts +1 -0
- package/dist/components/feedback/Info/Info.d.ts +2 -0
- package/dist/components/feedback/Info/types/InfoAccent.d.ts +1 -0
- package/dist/{primitives/feedback/Info/Info.d.ts → components/feedback/Info/types/InfoProps.d.ts} +4 -3
- package/dist/{primitives → components}/feedback/InlineBanner/InlineBanner.d.ts +1 -1
- package/dist/components/feedback/Toast/hooks/useToast.d.ts +7 -0
- package/dist/components/index.d.ts +81 -3
- package/dist/components/input/CardPicker/types/CardPickerProps.d.ts +2 -0
- package/dist/components/input/ColorSchemePicker/ColorSchemePicker.d.ts +2 -0
- package/dist/{primitives/input → components/input/ColorSchemePicker/internal}/ColorSchemeCard/ColorSchemeCard.d.ts +1 -1
- package/dist/components/input/ColorSchemePicker/types/ColorSchemePickerProps.d.ts +9 -0
- package/dist/components/input/IconButton/IconButton.d.ts +2 -0
- package/dist/components/input/IconButton/types/IconButtonProps.d.ts +14 -0
- package/dist/components/input/IconButton/types/IconButtonSize.d.ts +2 -0
- package/dist/components/{LightButton → input/LightButton}/types/LightButtonProps.d.ts +1 -1
- package/dist/components/input/LightIconButton/LightIconButton.d.ts +2 -0
- package/dist/components/input/LightIconButton/types/LightIconButtonProps.d.ts +4 -0
- package/dist/components/{MainButton → input/MainButton}/MainButton.d.ts +1 -1
- package/dist/components/input/SearchInput/SearchInput.d.ts +2 -0
- package/dist/{primitives/input/SearchInput/SearchInput.d.ts → components/input/SearchInput/types/SearchInputProps.d.ts} +0 -1
- package/dist/components/input/SettingsRow/SettingsRow.d.ts +2 -0
- package/dist/components/input/SettingsRow/__stories__/ControlledSettingsRowExample.d.ts +2 -0
- package/dist/components/input/SettingsRow/types/SettingsRowProps.d.ts +6 -0
- package/dist/components/layout/Section/Section.d.ts +4 -0
- package/dist/components/layout/Section/internal/SectionHeader.d.ts +2 -0
- package/dist/components/layout/Section/internal/SectionRoot.d.ts +2 -0
- package/dist/components/layout/Section/types/SectionHeaderProps.d.ts +9 -0
- package/dist/components/layout/Section/types/SectionRootProps.d.ts +6 -0
- package/dist/components/navigation/MenuItem/MenuItem.d.ts +2 -0
- package/dist/components/navigation/MenuItem/constants/DefaultColorLabels.d.ts +2 -0
- package/dist/{primitives/navigation/MenuItem/constants/DefaultColorLabels.d.ts → components/navigation/MenuItem/types/ColorLabels.d.ts} +0 -1
- package/dist/components/navigation/MenuItem/types/MenuItemProps.d.ts +32 -0
- package/dist/components/navigation/MenuItemAvatar/MenuItemAvatar.d.ts +2 -0
- package/dist/{primitives/navigation/MenuItemAvatar/MenuItemAvatar.d.ts → components/navigation/MenuItemAvatar/types/MenuItemAvatarProps.d.ts} +3 -5
- package/dist/components/navigation/MenuItemDraggable/MenuItemDraggable.d.ts +2 -0
- package/dist/components/navigation/MenuItemDraggable/types/MenuItemDraggableProps.d.ts +19 -0
- package/dist/components/navigation/MenuItemSuggestion/MenuItemSuggestion.d.ts +2 -0
- package/dist/{primitives/navigation/MenuItemSuggestion/MenuItemSuggestion.d.ts → components/navigation/MenuItemSuggestion/types/MenuItemSuggestionProps.d.ts} +1 -2
- package/dist/components/navigation/MenuPicker/MenuPicker.d.ts +2 -0
- package/dist/components/navigation/MenuPicker/types/MenuPickerProps.d.ts +15 -0
- package/dist/{primitives/navigation → components/navigation/NavigationBar/internal}/NavigationBarItem/NavigationBarItem.d.ts +1 -1
- package/dist/components/navigation/TabButton/TabButton.d.ts +2 -0
- package/dist/components/navigation/TabButton/types/TabButtonProps.d.ts +5 -0
- package/dist/components-B2Pdf_yn.js +1459 -0
- package/dist/components-DfhgWbKW.cjs +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +43 -3
- package/dist/data-display-QOdhAohf.cjs +1 -0
- package/dist/data-display-YQG01UPq.js +184 -0
- package/dist/feedback-BvpEL2-w.js +25 -0
- package/dist/feedback-CH2UC0Fv.cjs +1 -0
- package/dist/handleClickableElementKeyDown-0XD9MRqa.cjs +1 -0
- package/dist/handleClickableElementKeyDown-CJ_JsX2K.js +11 -0
- package/dist/icon/components/IconBrandTypesafeAi.d.ts +4 -0
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/index.d.ts +2 -1
- package/dist/icon/providers/internal/AllIcons.d.ts +1 -1
- package/dist/{icon-DqzYzlBl.js → icon-CDy3-hqV.js} +954 -487
- package/dist/icon-lF2kxwql.cjs +1 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +499 -498
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +642 -736
- package/dist/input-C2q7tGPj.js +383 -0
- package/dist/input-CAX9aS7C.cjs +1 -0
- package/dist/isDefined-DS2Q42p5.cjs +1 -0
- package/dist/isDefined-fMi6eQ4r.js +5 -0
- package/dist/layout-BgAfeZsL.cjs +1 -0
- package/dist/layout-D-XbKoLM.js +30 -0
- package/dist/linkifyText-BHQ4_CzQ.cjs +1 -0
- package/dist/linkifyText-BINRNP9w.js +45 -0
- package/dist/navigation-Z7puI3wl.js +91 -0
- package/dist/navigation-e5PTdnND.cjs +1 -0
- package/dist/primitives/accessibility/index.d.ts +0 -1
- package/dist/primitives/accessibility.cjs +1 -1
- package/dist/primitives/accessibility.mjs +2 -4
- package/dist/primitives/data-display/Chip/types/ChipProps.d.ts +2 -2
- package/dist/primitives/data-display/index.d.ts +0 -23
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +10 -25
- package/dist/primitives/feedback/index.d.ts +0 -25
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +7 -27
- package/dist/primitives/index.d.ts +0 -1
- package/dist/primitives/input/Button/Button.d.ts +1 -1
- package/dist/primitives/input/Button/types/ButtonProps.d.ts +1 -1
- package/dist/primitives/input/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/primitives/input/ButtonGroup/internal/ButtonGroupContext.d.ts +1 -1
- package/dist/primitives/input/ButtonGroup/types/ButtonGroupProps.d.ts +4 -1
- package/dist/primitives/input/index.d.ts +0 -49
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +14 -42
- package/dist/primitives/layout/AnimatedExpandableContainer/AnimatedExpandableContainer.d.ts +3 -1
- package/dist/primitives/layout/index.d.ts +0 -8
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +8 -18
- package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/__stories__/ListItemPickerExample.d.ts +6 -0
- package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +1 -0
- package/dist/primitives/navigation/Tabs/Tabs.d.ts +1 -1
- package/dist/primitives/navigation/Tabs/internal/TabsTab.d.ts +1 -1
- package/dist/primitives/navigation/Tabs/types/TabsTabProps.d.ts +2 -0
- package/dist/primitives/navigation/index.d.ts +0 -38
- package/dist/primitives/navigation/internal/tab/TabsTabContent.d.ts +4 -0
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +8 -41
- package/dist/primitives/surfaces/Dialog/Dialog.d.ts +13 -0
- package/dist/primitives/surfaces/Dialog/__stories__/DialogExample.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/__stories__/DialogExampleProps.d.ts +9 -0
- package/dist/primitives/surfaces/Dialog/__stories__/waitForDialog.d.ts +1 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogBody.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogDescription.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogFooter.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogHeader.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogPopup.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogTitle.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogBodyProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogCloseProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogDescriptionProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogFooterProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogHeaderProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogPopupProps.d.ts +9 -0
- package/dist/primitives/surfaces/Dialog/types/DialogRootProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogSize.d.ts +1 -0
- package/dist/primitives/surfaces/Dialog/types/DialogTitleProps.d.ts +3 -0
- package/dist/primitives/surfaces/Dialog/types/DialogTriggerProps.d.ts +2 -0
- package/dist/primitives/surfaces/Menu/internal/getMenuListItemProps.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +9 -0
- package/dist/primitives/surfaces/Tooltip/internal/TooltipComponent.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/internal/TooltipContent.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/internal/TooltipPopup.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipAlign.d.ts +1 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipContentProps.d.ts +6 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipPopupProps.d.ts +12 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipProps.d.ts +7 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipProviderProps.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipRootProps.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipSide.d.ts +1 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipTriggerProps.d.ts +2 -0
- package/dist/primitives/surfaces/index.d.ts +20 -15
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +11 -18
- package/dist/primitives/typography/Heading/Heading.d.ts +2 -0
- package/dist/primitives/typography/Heading/types/HeadingProps.d.ts +6 -0
- package/dist/primitives/{surfaces → typography}/OverflowingTextWithTooltip/OverflowingTextWithTooltip.d.ts +4 -4
- package/dist/primitives/typography/index.d.ts +3 -8
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +5 -13
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +66 -199
- package/dist/style.css +1 -1
- package/dist/surfaces-Cr4lhCvZ.js +306 -0
- package/dist/surfaces-CuxI6145.cjs +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +48 -44
- package/dist/{theme-constants-DETwIS-a.js → theme-constants-CrrgAYWN.js} +32 -32
- package/dist/theme-constants-ZNgkgDE-.cjs +1 -0
- package/dist/theme-constants.cjs +1 -1
- package/dist/theme-constants.mjs +5 -5
- package/dist/utilities/index.d.ts +0 -5
- package/dist/utilities-D7Z6Uof8.cjs +1 -0
- package/dist/utilities-FXsKnNbt.js +49 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +17 -21
- package/package.json +28 -12
- package/dist/Button-DDrUyVB1.cjs +0 -1
- package/dist/Button-u4e3zI-a.js +0 -72
- package/dist/HorizontalSeparator-BWu4LVEU.cjs +0 -1
- package/dist/HorizontalSeparator-p1xF1-ka.js +0 -37
- package/dist/OverflowingTextWithTooltip-C21bgWKF.js +0 -236
- package/dist/OverflowingTextWithTooltip-C2iADYbv.cjs +0 -1
- package/dist/Pill-4lAWCmbk.cjs +0 -1
- package/dist/Pill-abKRH4XK.js +0 -19
- package/dist/TablerIcons-Ctfi8z4q.js +0 -448
- package/dist/accessibility-BEkMTFE2.cjs +0 -1
- package/dist/accessibility-C7H0m2Th.js +0 -16
- package/dist/components-B0WZ1iBV.js +0 -19
- package/dist/components-BwvstA6U.cjs +0 -1
- package/dist/data-display-ByvqdkPn.js +0 -472
- package/dist/data-display-DH28tg-I.cjs +0 -1
- package/dist/feedback-62S0e8tP.cjs +0 -1
- package/dist/feedback-Cu7U-W9T.js +0 -660
- package/dist/handleClickableElementKeyDown-C8Uz61XJ.js +0 -6
- package/dist/handleClickableElementKeyDown-CByqtBhO.cjs +0 -1
- package/dist/icon-QYavWP3u.cjs +0 -1
- package/dist/input-B1qr987z.cjs +0 -1
- package/dist/input-DOIOurw8.js +0 -1322
- package/dist/json-visualizer-CN76kFy-.cjs +0 -1
- package/dist/json-visualizer-Q7wzKVum.js +0 -241
- package/dist/layout-BN3KI-Wu.cjs +0 -1
- package/dist/layout-LzKpLxiO.js +0 -124
- package/dist/linkifyText-C4_e-MKf.cjs +0 -1
- package/dist/linkifyText-DVk8e0sw.js +0 -40
- package/dist/navigation-BqWHvCpD.cjs +0 -1
- package/dist/navigation-CqKtMuQI.js +0 -724
- package/dist/primitives/accessibility/components/VisibilityHiddenInput.d.ts +0 -1
- package/dist/primitives/data-display/AnimatedCheckmark/AnimatedCheckmark.d.ts +0 -7
- package/dist/primitives/data-display/AvatarOrIcon/AvatarOrIcon.d.ts +0 -2
- package/dist/primitives/data-display/AvatarOrIcon/types/AvatarOrIconProps.d.ts +0 -12
- package/dist/primitives/data-display/Chip/constants/LinkChipClickOutsideId.d.ts +0 -1
- package/dist/primitives/data-display/EllipsisDisplay/EllipsisDisplay.d.ts +0 -7
- package/dist/primitives/data-display/JsonDisplay/JsonDisplay.d.ts +0 -6
- package/dist/primitives/data-display/LinkChip/LinkChip.d.ts +0 -11
- package/dist/primitives/data-display/NumberDisplay/NumberDisplay.d.ts +0 -6
- package/dist/primitives/data-display/SelectDisplay/SelectDisplay.d.ts +0 -10
- package/dist/primitives/data-display/TextDisplay/TextDisplay.d.ts +0 -6
- package/dist/primitives/data-display/TintedIconTile/TintedIconTile.d.ts +0 -8
- package/dist/primitives/feedback/AnimatedPlaceholder/AnimatedPlaceholder.d.ts +0 -7
- package/dist/primitives/feedback/AnimatedPlaceholder/constants/Background.d.ts +0 -19
- package/dist/primitives/feedback/AnimatedPlaceholder/constants/DarkBackground.d.ts +0 -19
- package/dist/primitives/feedback/AnimatedPlaceholder/constants/DarkMovingImage.d.ts +0 -19
- package/dist/primitives/feedback/AnimatedPlaceholder/constants/MovingImage.d.ts +0 -19
- package/dist/primitives/feedback/AnimatedPlaceholder/types/AnimatedPlaceholderType.d.ts +0 -3
- package/dist/primitives/feedback/Callout/Callout.d.ts +0 -15
- package/dist/primitives/feedback/EmptyPlaceholderStyled/EmptyPlaceholderStyled.d.ts +0 -11
- package/dist/primitives/feedback/ErrorPlaceholderStyled/ErrorPlaceholderStyled.d.ts +0 -5
- package/dist/primitives/feedback/SidePanelInformationBanner/SidePanelInformationBanner.d.ts +0 -7
- package/dist/primitives/feedback/Toast/hooks/useToast.d.ts +0 -7
- package/dist/primitives/input/AnimatedButton/AnimatedButton.d.ts +0 -3
- package/dist/primitives/input/AnimatedButton/internal/AnimatedButtonAccent.d.ts +0 -1
- package/dist/primitives/input/AnimatedButton/internal/AnimatedButtonBaseProps.d.ts +0 -30
- package/dist/primitives/input/AnimatedButton/internal/AnimatedButtonPosition.d.ts +0 -1
- package/dist/primitives/input/AnimatedButton/internal/AnimatedButtonVariant.d.ts +0 -1
- package/dist/primitives/input/AnimatedButton/types/AnimatedButtonProps.d.ts +0 -7
- package/dist/primitives/input/AnimatedLightIconButton/AnimatedLightIconButton.d.ts +0 -17
- package/dist/primitives/input/CardPicker/types/CardPickerProps.d.ts +0 -2
- package/dist/primitives/input/CodeEditorHeader/CodeEditorHeader.d.ts +0 -6
- package/dist/primitives/input/ColorPickerButton/ColorPickerButton.d.ts +0 -7
- package/dist/primitives/input/ColorSchemePicker/ColorSchemePicker.d.ts +0 -10
- package/dist/primitives/input/FloatingButton/FloatingButton.d.ts +0 -17
- package/dist/primitives/input/FloatingButtonGroup/FloatingButtonGroup.d.ts +0 -7
- package/dist/primitives/input/FloatingIconButton/FloatingIconButton.d.ts +0 -18
- package/dist/primitives/input/FloatingIconButtonGroup/FloatingIconButtonGroup.d.ts +0 -12
- package/dist/primitives/input/IconButton/IconButton.d.ts +0 -16
- package/dist/primitives/input/IconButton/types/IconButtonAccent.d.ts +0 -1
- package/dist/primitives/input/IconButton/types/IconButtonPosition.d.ts +0 -1
- package/dist/primitives/input/IconButton/types/IconButtonProps.d.ts +0 -21
- package/dist/primitives/input/IconButton/types/IconButtonSize.d.ts +0 -1
- package/dist/primitives/input/IconButton/types/IconButtonVariant.d.ts +0 -1
- package/dist/primitives/input/IconButtonGroup/IconButtonGroup.d.ts +0 -12
- package/dist/primitives/input/IconButtonWithTooltip/IconButtonWithTooltip.d.ts +0 -9
- package/dist/primitives/input/IconListViewGrip/IconListViewGrip.d.ts +0 -4
- package/dist/primitives/input/InputHint/InputHint.d.ts +0 -10
- package/dist/primitives/input/InputLabel/InputLabel.d.ts +0 -10
- package/dist/primitives/input/InsideButton/InsideButton.d.ts +0 -10
- package/dist/primitives/input/LightIconButton/LightIconButton.d.ts +0 -17
- package/dist/primitives/input/LightIconButtonGroup/LightIconButtonGroup.d.ts +0 -17
- package/dist/primitives/input/RoundedIconButton/RoundedIconButton.d.ts +0 -9
- package/dist/primitives/input/TabButton/TabButton.d.ts +0 -28
- package/dist/primitives/input/TabButton/parts/StyledTabBase.d.ts +0 -15
- package/dist/primitives/input/TabButton/parts/TabContent.d.ts +0 -15
- package/dist/primitives/json-visualizer/components/JsonTree.d.ts +0 -14
- package/dist/primitives/json-visualizer/index.d.ts +0 -14
- package/dist/primitives/json-visualizer.cjs +0 -1
- package/dist/primitives/json-visualizer.mjs +0 -14
- package/dist/primitives/layout/AnimatedCircleLoading/AnimatedCircleLoading.d.ts +0 -3
- package/dist/primitives/layout/AnimatedContainer/AnimatedContainer.d.ts +0 -3
- package/dist/primitives/layout/AnimatedEaseIn/AnimatedEaseIn.d.ts +0 -7
- package/dist/primitives/layout/AnimatedEaseInOut/AnimatedEaseInOut.d.ts +0 -11
- package/dist/primitives/layout/AnimatedRotate/AnimatedRotate.d.ts +0 -9
- package/dist/primitives/layout/AutogrowWrapper/AutogrowWrapper.d.ts +0 -8
- package/dist/primitives/layout/Section/Section.d.ts +0 -19
- package/dist/primitives/navigation/ContactLink/ContactLink.d.ts +0 -9
- package/dist/primitives/navigation/GithubVersionLink/GithubVersionLink.d.ts +0 -5
- package/dist/primitives/navigation/MenuItem/MenuItem.d.ts +0 -47
- package/dist/primitives/navigation/MenuItem/parts/MenuItemMultiSelectCheckbox.d.ts +0 -7
- package/dist/primitives/navigation/MenuItemDraggable/MenuItemDraggable.d.ts +0 -21
- package/dist/primitives/navigation/MenuItemMultiSelect/MenuItemMultiSelect.d.ts +0 -15
- package/dist/primitives/navigation/MenuItemMultiSelectAvatar/MenuItemMultiSelectAvatar.d.ts +0 -12
- package/dist/primitives/navigation/MenuItemMultiSelectTag/MenuItemMultiSelectTag.d.ts +0 -13
- package/dist/primitives/navigation/MenuItemNavigate/MenuItemNavigate.d.ts +0 -9
- package/dist/primitives/navigation/MenuItemSelect/MenuItemSelect.d.ts +0 -26
- package/dist/primitives/navigation/MenuItemSelectAvatar/MenuItemSelectAvatar.d.ts +0 -14
- package/dist/primitives/navigation/MenuItemSelectColor/MenuItemSelectColor.d.ts +0 -15
- package/dist/primitives/navigation/MenuItemSelectTag/MenuItemSelectTag.d.ts +0 -15
- package/dist/primitives/navigation/MenuItemSwitch/MenuItemSwitch.d.ts +0 -14
- package/dist/primitives/navigation/MenuPicker/MenuPicker.d.ts +0 -17
- package/dist/primitives/navigation/RawLink/RawLink.d.ts +0 -9
- package/dist/primitives/navigation/SocialLink/LinkType.d.ts +0 -9
- package/dist/primitives/navigation/SocialLink/SocialLink.d.ts +0 -10
- package/dist/primitives/navigation/SocialLink/socialLinkProviders.d.ts +0 -10
- package/dist/primitives/navigation/UndecoratedLink/UndecoratedLink.d.ts +0 -10
- package/dist/primitives/surfaces/AppTooltip/AppTooltip.d.ts +0 -34
- package/dist/primitives/surfaces/Modal/Modal.d.ts +0 -2
- package/dist/primitives/surfaces/Modal/types/ModalOverlay.d.ts +0 -1
- package/dist/primitives/surfaces/Modal/types/ModalPadding.d.ts +0 -1
- package/dist/primitives/surfaces/Modal/types/ModalProps.d.ts +0 -26
- package/dist/primitives/surfaces/Modal/types/ModalSize.d.ts +0 -1
- package/dist/primitives/surfaces/ModalBackdrop/ModalBackdrop.d.ts +0 -8
- package/dist/primitives/surfaces/ModalContent/ModalContent.d.ts +0 -9
- package/dist/primitives/surfaces/ModalFooter/ModalFooter.d.ts +0 -7
- package/dist/primitives/surfaces/ModalHeader/ModalHeader.d.ts +0 -8
- package/dist/primitives/typography/H1Title/H1Title.d.ts +0 -13
- package/dist/primitives/typography/H2Title/H2Title.d.ts +0 -8
- package/dist/primitives/typography/H3Title/H3Title.d.ts +0 -8
- package/dist/primitives/typography/SeparatorLineText/SeparatorLineText.d.ts +0 -3
- package/dist/primitives/typography/StyledText/StyledText.d.ts +0 -14
- package/dist/surfaces-B8zw9F5W.js +0 -494
- package/dist/surfaces-ec8RlQ5J.cjs +0 -1
- package/dist/theme-constants-Do_FO7Uy.cjs +0 -1
- package/dist/typography-CaY1Dwdi.js +0 -93
- package/dist/typography-Rw7ZDHyn.cjs +0 -1
- package/dist/useResizeHandle-BsV5UEJk.cjs +0 -1
- package/dist/useResizeHandle-CCRiw9Fi.js +0 -37
- package/dist/utilities/navigation/hooks/useMouseDownNavigation.d.ts +0 -15
- package/dist/utilities/navigation/hooks/useResetLocationHash.d.ts +0 -3
- package/dist/utilities/navigation/isNavigationModifierPressed.d.ts +0 -3
- package/dist/utilities/navigation/types/trigger-event.type.d.ts +0 -1
- package/dist/utilities/utils/getDisplayValueByUrlType.d.ts +0 -7
- package/dist/utilities-DmbkuukL.cjs +0 -1
- package/dist/utilities-kvjM4sIB.js +0 -156
- package/dist/{primitives/input → components/code-editor}/CodeEditor/constants/BaseCodeEditorThemeId.d.ts +0 -0
- package/dist/{primitives/input → components/code-editor}/CodeEditor/utils/getBaseCodeEditorTheme.d.ts +0 -0
- package/dist/{primitives → components}/data-display/CommandBlock/CommandBlock.d.ts +0 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree/internal}/JsonArrayNode.d.ts +0 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree}/internal/JsonArrow.d.ts +0 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree}/internal/JsonList.d.ts +0 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree}/internal/JsonListItem.d.ts +0 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree/internal}/JsonNode.d.ts +0 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree/internal}/JsonObjectNode.d.ts +0 -0
- package/dist/{primitives/json-visualizer → components/data-display/JsonTree/internal}/utils/isArray.d.ts +0 -0
- package/dist/{primitives/json-visualizer → components/data-display/JsonTree}/types/GetJsonNodeHighlighting.d.ts +0 -0
- package/dist/{primitives → components}/data-display/NotificationCounter/NotificationCounter.d.ts +0 -0
- package/dist/{primitives/data-display → components/data-display/TintedIconTile/internal}/StyledTintedIconTileContainer/StyledTintedIconTileContainer.d.ts +0 -0
- package/dist/{primitives → components}/data-display/TintedIconTile/internal/constants/tintedIconTileColorShades.constant.d.ts +0 -0
- package/dist/{primitives → components}/data-display/TintedIconTile/internal/utils/getColorFromTheme.d.ts +0 -0
- package/dist/{primitives → components}/data-display/TintedIconTile/utils/getIconTileColorShades.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/Toast.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/ToastProvider.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/constants/DefaultToastLimit.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/contexts/ToastContext.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/hooks/useCloseToast.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/hooks/useEnqueueToast.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/hooks/useToastContext.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/hooks/useToastEntries.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/stores/createToastStore.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastEntry.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastNotification.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastOptions.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastProps.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastProviderProps.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastStoreState.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastVariant.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/utils/completeToastExit.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/utils/dismissToasts.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/utils/isToastVisible.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/Toaster.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/__stories__/ToastControls.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/__stories__/ToasterExample.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/__stories__/ToasterExampleProps.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/internal/ToasterItem.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/internal/ToasterItemExitEffect.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/internal/ToasterItems.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/internal/ToasterLifecycleEffect.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/types/ToasterProps.d.ts +0 -0
- package/dist/{primitives → components}/input/CardPicker/CardPicker.d.ts +0 -0
- package/dist/{primitives/data-display → components/input/ColorSchemePicker/internal}/Checkmark/Checkmark.d.ts +0 -0
- package/dist/components/{LightButton → input/LightButton}/LightButton.d.ts +0 -0
- package/dist/{primitives → components}/layout/AnimatedIconCrossfade/AnimatedIconCrossfade.d.ts +0 -0
- package/dist/{primitives → components}/navigation/MenuItem/parts/MenuItemIcon.d.ts +0 -0
- package/dist/{primitives → components}/navigation/MenuItem/parts/MenuItemIconBoxContainer.d.ts +0 -0
- package/dist/{primitives → components}/navigation/MenuItem/parts/MenuItemIconWithGripSwap.d.ts +0 -0
- package/dist/{primitives → components}/navigation/MenuItem/parts/MenuItemLeftContent.d.ts +1 -1
- /package/dist/{primitives → components}/navigation/MenuItem/parts/StyledMenuItemBase.d.ts +0 -0
- /package/dist/{primitives → components}/navigation/MenuItem/types/MenuItemAccent.d.ts +0 -0
- /package/dist/{primitives → components}/navigation/MenuItem/types/MenuItemDraggableGripMode.d.ts +0 -0
- /package/dist/{primitives → components}/navigation/NavigationBar/NavigationBar.d.ts +0 -0
- /package/dist/{primitives → components}/navigation/RoundedLink/RoundedLink.d.ts +0 -0
- /package/dist/primitives/navigation/{MenuItemHotKeys → ListItem/internal/MenuItemHotKeys}/MenuItemHotKeys.d.ts +0 -0
- /package/dist/primitives/typography/{LinkifiedText → OverflowingTextWithTooltip/internal/LinkifiedText}/LinkifiedText.d.ts +0 -0
- /package/dist/primitives/typography/{Label → internal/Label}/Label.d.ts +0 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { t as i } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { i as H, r as L } from "./utilities-FXsKnNbt.js";
|
|
3
|
+
import { t as M } from "./Loader-DbOLVUcK.js";
|
|
4
|
+
import { t as q } from "./Pill-DaFEFIOT.js";
|
|
5
|
+
import { t as h } from "./mergeClassNames-BHKm1BNi.js";
|
|
6
|
+
import { clsx as p } from "clsx";
|
|
7
|
+
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
8
|
+
import { createContext as D, useContext as K } from "react";
|
|
9
|
+
import { Button as O } from "@base-ui/react/button";
|
|
10
|
+
import { Radio as j } from "@base-ui/react/radio";
|
|
11
|
+
import { Switch as B } from "@base-ui/react/switch";
|
|
12
|
+
var T = "_hotkeys_16heq_1", V = { hotkeys: T }, A = ({ hotkeys: o }) => /* @__PURE__ */ a("span", {
|
|
13
|
+
className: V.hotkeys,
|
|
14
|
+
"aria-hidden": !0,
|
|
15
|
+
children: o.join(H())
|
|
16
|
+
}), E = "_soonPillContainer_e7hkk_1", F = { soonPillContainer: E }, I = ({ label: o = "Soon" }) => /* @__PURE__ */ a("span", {
|
|
17
|
+
className: F.soonPillContainer,
|
|
18
|
+
children: /* @__PURE__ */ a(q, { label: o })
|
|
19
|
+
}), J = D(null), Q = "_button_1kjmt_1", U = "_content_1kjmt_161", W = "_label_1kjmt_170", X = "_icon_1kjmt_176", Y = "_hidden_1kjmt_186", Z = "_loader_1kjmt_190", t = {
|
|
20
|
+
button: Q,
|
|
21
|
+
content: U,
|
|
22
|
+
label: W,
|
|
23
|
+
icon: X,
|
|
24
|
+
hidden: Y,
|
|
25
|
+
loader: Z
|
|
26
|
+
}, Na = ({ variant: o = "outline", color: r = "neutral", size: e = "md", fullWidth: s = !1, loading: n = !1, elevated: S = !1, startIcon: f, endIcon: k, hotkeys: b, soon: N = !1, soonLabel: C, disabled: x = !1, href: _, render: y, className: P, children: c, ...w }) => {
|
|
27
|
+
const u = K(J), $ = u?.variant ?? o, R = u?.color ?? r, z = u?.size ?? e, G = L(), l = i(_);
|
|
28
|
+
return /* @__PURE__ */ m(O, {
|
|
29
|
+
...w,
|
|
30
|
+
...l ? { href: _ } : void 0,
|
|
31
|
+
className: h(t.button, P),
|
|
32
|
+
"data-variant": $,
|
|
33
|
+
"data-color": R,
|
|
34
|
+
"data-size": z,
|
|
35
|
+
"data-full-width": s || void 0,
|
|
36
|
+
"data-loading": n || void 0,
|
|
37
|
+
"data-elevated": S || void 0,
|
|
38
|
+
"aria-busy": n ? "true" : w["aria-busy"],
|
|
39
|
+
disabled: x || N || n,
|
|
40
|
+
role: l ? "link" : void 0,
|
|
41
|
+
nativeButton: !l,
|
|
42
|
+
render: y ?? (l ? /* @__PURE__ */ a("a", {
|
|
43
|
+
href: _,
|
|
44
|
+
children: c
|
|
45
|
+
}) : void 0),
|
|
46
|
+
children: [/* @__PURE__ */ m("span", {
|
|
47
|
+
className: p(t.content, n && t.hidden),
|
|
48
|
+
children: [
|
|
49
|
+
i(f) && /* @__PURE__ */ a("span", {
|
|
50
|
+
className: t.icon,
|
|
51
|
+
"aria-hidden": !0,
|
|
52
|
+
children: f
|
|
53
|
+
}),
|
|
54
|
+
i(c) && /* @__PURE__ */ a("span", {
|
|
55
|
+
className: t.label,
|
|
56
|
+
children: c
|
|
57
|
+
}),
|
|
58
|
+
i(k) && /* @__PURE__ */ a("span", {
|
|
59
|
+
className: t.icon,
|
|
60
|
+
"aria-hidden": !0,
|
|
61
|
+
children: k
|
|
62
|
+
}),
|
|
63
|
+
i(b) && !G && /* @__PURE__ */ a(A, { hotkeys: b }),
|
|
64
|
+
N && /* @__PURE__ */ a(I, { label: C })
|
|
65
|
+
]
|
|
66
|
+
}), n && /* @__PURE__ */ a("span", {
|
|
67
|
+
className: t.loader,
|
|
68
|
+
"aria-hidden": !0,
|
|
69
|
+
children: /* @__PURE__ */ a(M, {})
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
72
|
+
}, g = "_root_ahkrw_1", aa = "_control_ahkrw_18", oa = "_sm_ahkrw_33", ta = "_md_ahkrw_38", ra = "_indicator_ahkrw_49", d = {
|
|
73
|
+
root: g,
|
|
74
|
+
control: aa,
|
|
75
|
+
sm: oa,
|
|
76
|
+
md: ta,
|
|
77
|
+
indicator: ra
|
|
78
|
+
}, wa = ({ children: o, className: r, size: e = "sm", ...s }) => /* @__PURE__ */ m(j.Root, {
|
|
79
|
+
...s,
|
|
80
|
+
className: h(p(d.root, d[e]), r),
|
|
81
|
+
children: [/* @__PURE__ */ a("span", {
|
|
82
|
+
className: d.control,
|
|
83
|
+
"aria-hidden": !0,
|
|
84
|
+
children: /* @__PURE__ */ a(j.Indicator, { className: d.indicator })
|
|
85
|
+
}), o]
|
|
86
|
+
}), ea = "_root_rn2ew_1", sa = "_sm_rn2ew_33", na = "_md_rn2ew_39", ia = "_thumb_rn2ew_45", v = {
|
|
87
|
+
root: ea,
|
|
88
|
+
sm: sa,
|
|
89
|
+
md: na,
|
|
90
|
+
thumb: ia
|
|
91
|
+
}, ja = ({ size: o = "md", className: r, children: e, ...s }) => /* @__PURE__ */ m(B.Root, {
|
|
92
|
+
...s,
|
|
93
|
+
className: h(p(v.root, v[o]), r),
|
|
94
|
+
children: [/* @__PURE__ */ a(B.Thumb, { className: v.thumb }), e]
|
|
95
|
+
});
|
|
96
|
+
export {
|
|
97
|
+
J as i,
|
|
98
|
+
wa as n,
|
|
99
|
+
Na as r,
|
|
100
|
+
ja as t
|
|
101
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=require("./isDefined-DS2Q42p5.cjs"),w=require("./utilities-D7Z6Uof8.cjs"),L=require("./Loader-CHKTYJo7.cjs"),$=require("./Pill-BJ3K8Mdc.cjs"),v=require("./mergeClassNames-BbJtXN2t.cjs");let h=require("clsx"),e=require("react/jsx-runtime"),p=require("react"),H=require("@base-ui/react/button"),q=require("@base-ui/react/radio"),N=require("@base-ui/react/switch");var M="_hotkeys_16heq_1",K={hotkeys:M},T=({hotkeys:r})=>(0,e.jsx)("span",{className:K.hotkeys,"aria-hidden":!0,children:r.join(w.getOsShortcutSeparator())}),V="_soonPillContainer_e7hkk_1",A={soonPillContainer:V},E=({label:r="Soon"})=>(0,e.jsx)("span",{className:A.soonPillContainer,children:(0,e.jsx)($.Pill,{label:r})}),C=(0,p.createContext)(null),F="_button_1kjmt_1",I="_content_1kjmt_161",J="_label_1kjmt_170",Q="_icon_1kjmt_176",U="_hidden_1kjmt_186",W="_loader_1kjmt_190",t={button:F,content:I,label:J,icon:Q,hidden:U,loader:W},X=({variant:r="outline",color:a="neutral",size:o="md",fullWidth:s=!1,loading:n=!1,elevated:B=!1,startIcon:j,endIcon:b,hotkeys:x,soon:f=!1,soonLabel:S,disabled:y=!1,href:d,render:P,className:R,children:_,...k})=>{const c=(0,p.useContext)(C),g=c?.variant??r,D=c?.color??a,O=c?.size??o,z=w.useIsMobile(),l=i.isDefined(d),G=l?{href:d}:void 0;return(0,e.jsxs)(H.Button,{...k,...G,className:v.mergeClassNames(t.button,R),"data-variant":g,"data-color":D,"data-size":O,"data-full-width":s||void 0,"data-loading":n||void 0,"data-elevated":B||void 0,"aria-busy":n?"true":k["aria-busy"],disabled:y||f||n,role:l?"link":void 0,nativeButton:!l,render:P??(l?(0,e.jsx)("a",{href:d,children:_}):void 0),children:[(0,e.jsxs)("span",{className:(0,h.clsx)(t.content,n&&t.hidden),children:[i.isDefined(j)&&(0,e.jsx)("span",{className:t.icon,"aria-hidden":!0,children:j}),i.isDefined(_)&&(0,e.jsx)("span",{className:t.label,children:_}),i.isDefined(b)&&(0,e.jsx)("span",{className:t.icon,"aria-hidden":!0,children:b}),i.isDefined(x)&&!z&&(0,e.jsx)(T,{hotkeys:x}),f&&(0,e.jsx)(E,{label:S})]}),n&&(0,e.jsx)("span",{className:t.loader,"aria-hidden":!0,children:(0,e.jsx)(L.Loader,{})})]})},Y="_root_ahkrw_1",Z="_control_ahkrw_18",ee="_sm_ahkrw_33",re="_md_ahkrw_38",te="_indicator_ahkrw_49",u={root:Y,control:Z,sm:ee,md:re,indicator:te},ae=({children:r,className:a,size:o="sm",...s})=>(0,e.jsxs)(q.Radio.Root,{...s,className:v.mergeClassNames((0,h.clsx)(u.root,u[o]),a),children:[(0,e.jsx)("span",{className:u.control,"aria-hidden":!0,children:(0,e.jsx)(q.Radio.Indicator,{className:u.indicator})}),r]}),oe="_root_rn2ew_1",se="_sm_rn2ew_33",ne="_md_rn2ew_39",ie="_thumb_rn2ew_45",m={root:oe,sm:se,md:ne,thumb:ie},le=({size:r="md",className:a,children:o,...s})=>(0,e.jsxs)(N.Switch.Root,{...s,className:v.mergeClassNames((0,h.clsx)(m.root,m[r]),a),children:[(0,e.jsx)(N.Switch.Thumb,{className:m.thumb}),o]});Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return X}});Object.defineProperty(exports,"ButtonGroupContext",{enumerable:!0,get:function(){return C}});Object.defineProperty(exports,"Radio",{enumerable:!0,get:function(){return ae}});Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return le}});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { t as l } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { isBoolean as o } from "@sniptt/guards";
|
|
4
|
+
var t = (a) => l(a) && !o(a) && a !== "", v = "_root_1a4vb_1", b = "_list_1a4vb_10", c = "_tab_1a4vb_37", d = "_content_1a4vb_89", m = "_label_1a4vb_108", p = "_startIcon_1a4vb_114", h = "_badge_1a4vb_115", f = "_panel_1a4vb_130", N = "_indicator_1a4vb_139", r = {
|
|
5
|
+
root: v,
|
|
6
|
+
list: b,
|
|
7
|
+
tab: c,
|
|
8
|
+
content: d,
|
|
9
|
+
label: m,
|
|
10
|
+
startIcon: p,
|
|
11
|
+
badge: h,
|
|
12
|
+
panel: f,
|
|
13
|
+
indicator: N
|
|
14
|
+
}, g = ({ children: a, startIcon: _, endIcon: n, badge: s }) => /* @__PURE__ */ i("span", {
|
|
15
|
+
className: r.content,
|
|
16
|
+
children: [
|
|
17
|
+
t(_) && /* @__PURE__ */ e("span", {
|
|
18
|
+
className: r.startIcon,
|
|
19
|
+
"aria-hidden": !0,
|
|
20
|
+
children: _
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ e("span", {
|
|
23
|
+
className: r.label,
|
|
24
|
+
children: a
|
|
25
|
+
}),
|
|
26
|
+
t(n) && /* @__PURE__ */ e("span", {
|
|
27
|
+
className: r.startIcon,
|
|
28
|
+
"aria-hidden": !0,
|
|
29
|
+
children: n
|
|
30
|
+
}),
|
|
31
|
+
t(s) && /* @__PURE__ */ e("span", {
|
|
32
|
+
className: r.badge,
|
|
33
|
+
children: s
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
r as n,
|
|
39
|
+
g as t
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=require("./isDefined-DS2Q42p5.cjs");let r=require("react/jsx-runtime"),l=require("@sniptt/guards");var t=e=>i.isDefined(e)&&!(0,l.isBoolean)(e)&&e!=="",b="_root_1a4vb_1",c="_list_1a4vb_10",d="_tab_1a4vb_37",o="_content_1a4vb_89",v="_label_1a4vb_108",u="_startIcon_1a4vb_114",m="_badge_1a4vb_115",p="_panel_1a4vb_130",f="_indicator_1a4vb_139",a={root:b,list:c,tab:d,content:o,label:v,startIcon:u,badge:m,panel:p,indicator:f},j=({children:e,startIcon:n,endIcon:_,badge:s})=>(0,r.jsxs)("span",{className:a.content,children:[t(n)&&(0,r.jsx)("span",{className:a.startIcon,"aria-hidden":!0,children:n}),(0,r.jsx)("span",{className:a.label,children:e}),t(_)&&(0,r.jsx)("span",{className:a.startIcon,"aria-hidden":!0,children:_}),t(s)&&(0,r.jsx)("span",{className:a.badge,children:s})]});Object.defineProperty(exports,"Tab_module_default",{enumerable:!0,get:function(){return a}});Object.defineProperty(exports,"TabsTabContent",{enumerable:!0,get:function(){return j}});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CodeEditorProps } from './types/CodeEditorProps';
|
|
2
|
+
export declare const CodeEditor: ({ value, language, onMount, onChange, setMarkers, onValidate, height, variant, transparentBackground, isLoading, options, resizable, contentPadding, autoHeight, }: CodeEditorProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const waitForCodeEditorContent: (canvasElement: HTMLElement, expectedContent: string) => Promise<void>;
|
|
@@ -2,7 +2,7 @@ import { EditorProps } from '@monaco-editor/react';
|
|
|
2
2
|
import { editor } from 'monaco-editor';
|
|
3
3
|
type CodeEditorVariant = 'default' | 'with-header' | 'borderless';
|
|
4
4
|
type CodeEditorContentPadding = 'default' | 'comfortable';
|
|
5
|
-
type CodeEditorProps = Pick<EditorProps, 'value' | 'language' | 'onMount' | 'onValidate' | 'height' | 'options'> & {
|
|
5
|
+
export type CodeEditorProps = Pick<EditorProps, 'value' | 'language' | 'onMount' | 'onValidate' | 'height' | 'options'> & {
|
|
6
6
|
onChange?: (value: string) => void;
|
|
7
7
|
setMarkers?: (value: string) => editor.IMarkerData[];
|
|
8
8
|
variant?: CodeEditorVariant;
|
|
@@ -12,5 +12,4 @@ type CodeEditorProps = Pick<EditorProps, 'value' | 'language' | 'onMount' | 'onV
|
|
|
12
12
|
contentPadding?: CodeEditorContentPadding;
|
|
13
13
|
autoHeight?: boolean;
|
|
14
14
|
};
|
|
15
|
-
export declare const CodeEditor: ({ value, language, onMount, onChange, setMarkers, onValidate, height, variant, transparentBackground, isLoading, options, resizable, contentPadding, autoHeight, }: CodeEditorProps) => import("react").JSX.Element;
|
|
16
15
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { CodeEditor } from './CodeEditor/CodeEditor';
|
|
2
|
+
export { BASE_CODE_EDITOR_THEME_ID } from './CodeEditor/constants/BaseCodeEditorThemeId';
|
|
3
|
+
export type { CodeEditorProps } from './CodeEditor/types/CodeEditorProps';
|
|
4
|
+
export { getBaseCodeEditorTheme } from './CodeEditor/utils/getBaseCodeEditorTheme';
|
|
5
|
+
export { CodeEditorHeader } from './CodeEditorHeader/CodeEditorHeader';
|
|
6
|
+
export type { CodeEditorHeaderProps } from './CodeEditorHeader/types/CodeEditorHeaderProps';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var oe=Object.create;var T=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var te=Object.getOwnPropertyNames;var ne=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var de=(e,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of te(r))!ie.call(e,i)&&i!==n&&T(e,i,{get:()=>r[i],enumerable:!(a=re(r,i))||a.enumerable});return e};var ae=(e,r,n)=>(n=e!=null?oe(ne(e)):{},de(r||!e||!e.__esModule?T(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const se=require("../chunk-u_mIcLyS.cjs"),g=require("../isDefined-DS2Q42p5.cjs"),z=require("../theme-constants-ZNgkgDE-.cjs"),le=require("../Loader-CHKTYJo7.cjs"),B=require("../ResizeHandle-IVbYS3b8.cjs");let d=require("react/jsx-runtime"),u=require("react"),E=require("@monaco-editor/react");E=se.__toESM(E,1);var D="baseCodeEditorTheme",o=e=>{if(e.trim()==="transparent")return"#00000000";const r=e.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s+\/\s+([\d.]+))?\)/);if(g.isDefined(r)){const[,n,a,i,_]=r,c=Math.round(parseFloat(n)*255).toString(16).padStart(2,"0"),p=Math.round(parseFloat(a)*255).toString(16).padStart(2,"0"),b=Math.round(parseFloat(i)*255).toString(16).padStart(2,"0");return g.isDefined(_)?`#${c}${p}${b}${Math.round(parseFloat(_)*255).toString(16).padStart(2,"0")}`:`#${c}${p}${b}`}return e},O=(e,r)=>({base:r==="dark"?"vs-dark":"vs",inherit:!0,rules:[{token:"",foreground:o(e.font.color.secondary)},{token:"keyword",foreground:o(e.color.pink11)},{token:"keyword.control",foreground:o(e.color.pink11)},{token:"keyword.json",foreground:o(e.color.orange11)},{token:"number",foreground:o(e.color.orange11)},{token:"number.json",foreground:o(e.color.orange11)},{token:"regexp",foreground:o(e.color.orange11)},{token:"type",foreground:o(e.color.green11)},{token:"attribute.name",foreground:o(e.color.blue11)},{token:"tag",foreground:o(e.color.pink11)},{token:"string",foreground:o(e.color.green11)},{token:"string.key.json",foreground:o(e.color.blue11)},{token:"delimiter",foreground:o(e.font.color.light)},{token:"delimiter.bracket.json",foreground:o(e.font.color.light)},{token:"string.value.json",foreground:o(e.color.green11)},{token:"comment",foreground:o(e.font.color.light),fontStyle:"italic"}],colors:{"editor.background":o("transparent"),"editor.foreground":o(e.font.color.secondary),"editorCursor.foreground":o(e.font.color.primary),"editorLineNumber.foreground":o(e.font.color.extraLight),"editorLineNumber.activeForeground":o(e.font.color.light),"editor.lineHighlightBackground":o(e.background.tertiary),"editor.selectionBackground":o(e.background.transparent.blue),"editor.inactiveSelectionBackground":o(e.background.transparent.light),"editorIndentGuide.background1":o(e.border.color.light),"editorIndentGuide.activeBackground1":o(e.border.color.medium),"editorBracketMatch.background":o(e.background.transparent.light),"editorBracketMatch.border":o(e.border.color.medium)}}),ue="_editorLoader_zilk9_1",ce="_container_zilk9_20",ge="_editorWrapper_zilk9_24",H={editorLoader:ue,container:ce,editorWrapper:ge},P,fe=()=>(P??=import("monaco-editor").then(e=>{E.loader.config({monaco:e})}),P),F=(e,r,n)=>{e.editor.defineTheme(D,O(r,n)),e.editor.setTheme(D)},pe=({value:e,language:r,onMount:n,onChange:a,setMarkers:i,onValidate:_,height:c=450,variant:p="default",transparentBackground:b,isLoading:$=!1,options:R,resizable:C=!1,contentPadding:I="default",autoHeight:w=!1})=>{const f=z.useTheme(),M=z.useThemeColorScheme(),[h,N]=(0,u.useState)(void 0),[k,W]=(0,u.useState)(void 0),[A,j]=(0,u.useState)(!1),[G,K]=(0,u.useState)(!1),[V,q]=(0,u.useState)(void 0),{size:U,handleResizeStart:J,handleResizeMove:Q,handleResizeEnd:X}=B.useResizeHandle({initialSize:typeof c=="number"?c:450}),S=w&&!C,y=typeof f.spacingMultiplicator=="number"?f.spacingMultiplicator*4:void 0,m=S?V??c:C?U:c,Y={...I==="comfortable"?{lineDecorationsWidth:y}:{},padding:{bottom:y,top:y}},{padding:be,...Z}=R??{},L=(t,s)=>{const l=t?.getModel();if(!g.isDefined(l))return;const v=i?.(l.getValue());g.isDefined(v)&&s?.editor.setModelMarkers(l,"customMarker",v)},ee=t=>{A&&t.stopPropagation()};return(0,u.useEffect)(()=>{let t=!0;return fe().then(()=>{t&&K(!0)}),()=>{t=!1}},[]),(0,u.useEffect)(()=>{g.isDefined(h)&&F(h,f,M)},[M,h,f]),(0,u.useEffect)(()=>{if(!S||!g.isDefined(k)){q(void 0);return}const t=()=>{const l=k.getContentHeight();!Number.isFinite(l)||l<=0||q(v=>v===l?v:l)};t();const s=k.onDidContentSizeChange(t);return()=>{s.dispose()}},[k,S]),$||!G?(0,d.jsx)("div",{className:H.editorLoader,"data-variant":p,style:{"--code-editor-height":typeof m=="number"?`${m}px`:m},children:(0,d.jsx)(le.Loader,{})}):(0,d.jsxs)("div",{className:H.container,onKeyDown:ee,children:[(0,d.jsx)("input",{type:"hidden","data-testid":"code-editor-value",value:e??"",readOnly:!0}),(0,d.jsx)("div",{className:H.editorWrapper,"data-variant":p,"data-transparent-background":b||void 0,children:(0,d.jsx)(E.default,{height:m,value:e,language:r,loading:"",onMount:(t,s)=>{N(s),W(t),F(s,f,M),t.onDidFocusEditorWidget(()=>{j(!0)}),t.onDidBlurEditorWidget(()=>{j(!1)}),n?.(t,s),L(t,s)},onChange:t=>{g.isDefined(t)&&(a?.(t),L(k,h))},onValidate:t=>{_?.(t)},options:{formatOnPaste:!0,formatOnType:!0,fontFamily:f.code.font.family,bracketPairColorization:{enabled:!1},overviewRulerLanes:0,scrollBeyondLastLine:!1,scrollbar:{vertical:"hidden",horizontal:"hidden"},minimap:{enabled:!1},...Z,...Y}})}),C&&(0,d.jsx)(B.ResizeHandle,{onPointerDown:J,onPointerMove:Q,onPointerUp:X})]})},ke="_editorHeader_19qlo_1",ve="_elementContainer_19qlo_15",x={editorHeader:ke,elementContainer:ve},_e=({title:e,leftNodes:r,rightNodes:n})=>(0,d.jsxs)("div",{className:x.editorHeader,children:[(0,d.jsxs)("div",{className:x.elementContainer,children:[r&&r.map((a,i)=>(0,d.jsx)("div",{children:a},`left-${i}`)),e]}),(0,d.jsx)("div",{className:x.elementContainer,children:n&&n.map((a,i)=>(0,d.jsx)("div",{children:a},`right-${i}`))})]});exports.BASE_CODE_EDITOR_THEME_ID=D;exports.CodeEditor=pe;exports.CodeEditorHeader=_e;exports.getBaseCodeEditorTheme=O;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { t as u } from "../isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { n as Y, r as Z } from "../theme-constants-CrrgAYWN.js";
|
|
3
|
+
import { t as oo } from "../Loader-DbOLVUcK.js";
|
|
4
|
+
import { n as ro, t as eo } from "../ResizeHandle-BWfY2ONo.js";
|
|
5
|
+
import { jsx as n, jsxs as z } from "react/jsx-runtime";
|
|
6
|
+
import { useEffect as E, useState as m } from "react";
|
|
7
|
+
import to, { loader as no } from "@monaco-editor/react";
|
|
8
|
+
var B = "baseCodeEditorTheme", r = (o) => {
|
|
9
|
+
if (o.trim() === "transparent") return "#00000000";
|
|
10
|
+
const t = o.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s+\/\s+([\d.]+))?\)/);
|
|
11
|
+
if (u(t)) {
|
|
12
|
+
const [, i, s, l, v] = t, c = Math.round(parseFloat(i) * 255).toString(16).padStart(2, "0"), f = Math.round(parseFloat(s) * 255).toString(16).padStart(2, "0"), b = Math.round(parseFloat(l) * 255).toString(16).padStart(2, "0");
|
|
13
|
+
return u(v) ? `#${c}${f}${b}${Math.round(parseFloat(v) * 255).toString(16).padStart(2, "0")}` : `#${c}${f}${b}`;
|
|
14
|
+
}
|
|
15
|
+
return o;
|
|
16
|
+
}, io = (o, t) => ({
|
|
17
|
+
base: t === "dark" ? "vs-dark" : "vs",
|
|
18
|
+
inherit: !0,
|
|
19
|
+
rules: [
|
|
20
|
+
{
|
|
21
|
+
token: "",
|
|
22
|
+
foreground: r(o.font.color.secondary)
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
token: "keyword",
|
|
26
|
+
foreground: r(o.color.pink11)
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
token: "keyword.control",
|
|
30
|
+
foreground: r(o.color.pink11)
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
token: "keyword.json",
|
|
34
|
+
foreground: r(o.color.orange11)
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
token: "number",
|
|
38
|
+
foreground: r(o.color.orange11)
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
token: "number.json",
|
|
42
|
+
foreground: r(o.color.orange11)
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
token: "regexp",
|
|
46
|
+
foreground: r(o.color.orange11)
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
token: "type",
|
|
50
|
+
foreground: r(o.color.green11)
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
token: "attribute.name",
|
|
54
|
+
foreground: r(o.color.blue11)
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
token: "tag",
|
|
58
|
+
foreground: r(o.color.pink11)
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
token: "string",
|
|
62
|
+
foreground: r(o.color.green11)
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
token: "string.key.json",
|
|
66
|
+
foreground: r(o.color.blue11)
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
token: "delimiter",
|
|
70
|
+
foreground: r(o.font.color.light)
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
token: "delimiter.bracket.json",
|
|
74
|
+
foreground: r(o.font.color.light)
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
token: "string.value.json",
|
|
78
|
+
foreground: r(o.color.green11)
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
token: "comment",
|
|
82
|
+
foreground: r(o.font.color.light),
|
|
83
|
+
fontStyle: "italic"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
colors: {
|
|
87
|
+
"editor.background": r("transparent"),
|
|
88
|
+
"editor.foreground": r(o.font.color.secondary),
|
|
89
|
+
"editorCursor.foreground": r(o.font.color.primary),
|
|
90
|
+
"editorLineNumber.foreground": r(o.font.color.extraLight),
|
|
91
|
+
"editorLineNumber.activeForeground": r(o.font.color.light),
|
|
92
|
+
"editor.lineHighlightBackground": r(o.background.tertiary),
|
|
93
|
+
"editor.selectionBackground": r(o.background.transparent.blue),
|
|
94
|
+
"editor.inactiveSelectionBackground": r(o.background.transparent.light),
|
|
95
|
+
"editorIndentGuide.background1": r(o.border.color.light),
|
|
96
|
+
"editorIndentGuide.activeBackground1": r(o.border.color.medium),
|
|
97
|
+
"editorBracketMatch.background": r(o.background.transparent.light),
|
|
98
|
+
"editorBracketMatch.border": r(o.border.color.medium)
|
|
99
|
+
}
|
|
100
|
+
}), ao = "_editorLoader_zilk9_1", so = "_container_zilk9_20", lo = "_editorWrapper_zilk9_24", S = {
|
|
101
|
+
editorLoader: ao,
|
|
102
|
+
container: so,
|
|
103
|
+
editorWrapper: lo
|
|
104
|
+
}, F, co = () => (F ??= import("monaco-editor").then((o) => {
|
|
105
|
+
no.config({ monaco: o });
|
|
106
|
+
}), F), P = (o, t, i) => {
|
|
107
|
+
o.editor.defineTheme(B, io(t, i)), o.editor.setTheme(B);
|
|
108
|
+
}, Mo = ({ value: o, language: t, onMount: i, onChange: s, setMarkers: l, onValidate: v, height: c = 450, variant: f = "default", transparentBackground: b, isLoading: $ = !1, options: j, resizable: M = !1, contentPadding: w = "default", autoHeight: N = !1 }) => {
|
|
109
|
+
const g = Z(), y = Y(), [h, O] = m(void 0), [p, R] = m(void 0), [I, x] = m(!1), [W, A] = m(!1), [q, D] = m(void 0), { size: G, handleResizeStart: K, handleResizeMove: V, handleResizeEnd: U } = ro({ initialSize: typeof c == "number" ? c : 450 }), _ = N && !M, H = typeof g.spacingMultiplicator == "number" ? g.spacingMultiplicator * 4 : void 0, C = _ ? q ?? c : M ? G : c, J = {
|
|
110
|
+
...w === "comfortable" ? { lineDecorationsWidth: H } : {},
|
|
111
|
+
padding: {
|
|
112
|
+
bottom: H,
|
|
113
|
+
top: H
|
|
114
|
+
}
|
|
115
|
+
}, { padding: fo, ...Q } = j ?? {}, T = (e, a) => {
|
|
116
|
+
const d = e?.getModel();
|
|
117
|
+
if (!u(d)) return;
|
|
118
|
+
const k = l?.(d.getValue());
|
|
119
|
+
u(k) && a?.editor.setModelMarkers(d, "customMarker", k);
|
|
120
|
+
}, X = (e) => {
|
|
121
|
+
I && e.stopPropagation();
|
|
122
|
+
};
|
|
123
|
+
return E(() => {
|
|
124
|
+
let e = !0;
|
|
125
|
+
return co().then(() => {
|
|
126
|
+
e && A(!0);
|
|
127
|
+
}), () => {
|
|
128
|
+
e = !1;
|
|
129
|
+
};
|
|
130
|
+
}, []), E(() => {
|
|
131
|
+
u(h) && P(h, g, y);
|
|
132
|
+
}, [
|
|
133
|
+
y,
|
|
134
|
+
h,
|
|
135
|
+
g
|
|
136
|
+
]), E(() => {
|
|
137
|
+
if (!_ || !u(p)) {
|
|
138
|
+
D(void 0);
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
const e = () => {
|
|
142
|
+
const d = p.getContentHeight();
|
|
143
|
+
!Number.isFinite(d) || d <= 0 || D((k) => k === d ? k : d);
|
|
144
|
+
};
|
|
145
|
+
e();
|
|
146
|
+
const a = p.onDidContentSizeChange(e);
|
|
147
|
+
return () => {
|
|
148
|
+
a.dispose();
|
|
149
|
+
};
|
|
150
|
+
}, [p, _]), $ || !W ? /* @__PURE__ */ n("div", {
|
|
151
|
+
className: S.editorLoader,
|
|
152
|
+
"data-variant": f,
|
|
153
|
+
style: { "--code-editor-height": typeof C == "number" ? `${C}px` : C },
|
|
154
|
+
children: /* @__PURE__ */ n(oo, {})
|
|
155
|
+
}) : /* @__PURE__ */ z("div", {
|
|
156
|
+
className: S.container,
|
|
157
|
+
onKeyDown: X,
|
|
158
|
+
children: [
|
|
159
|
+
/* @__PURE__ */ n("input", {
|
|
160
|
+
type: "hidden",
|
|
161
|
+
"data-testid": "code-editor-value",
|
|
162
|
+
value: o ?? "",
|
|
163
|
+
readOnly: !0
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ n("div", {
|
|
166
|
+
className: S.editorWrapper,
|
|
167
|
+
"data-variant": f,
|
|
168
|
+
"data-transparent-background": b || void 0,
|
|
169
|
+
children: /* @__PURE__ */ n(to, {
|
|
170
|
+
height: C,
|
|
171
|
+
value: o,
|
|
172
|
+
language: t,
|
|
173
|
+
loading: "",
|
|
174
|
+
onMount: (e, a) => {
|
|
175
|
+
O(a), R(e), P(a, g, y), e.onDidFocusEditorWidget(() => {
|
|
176
|
+
x(!0);
|
|
177
|
+
}), e.onDidBlurEditorWidget(() => {
|
|
178
|
+
x(!1);
|
|
179
|
+
}), i?.(e, a), T(e, a);
|
|
180
|
+
},
|
|
181
|
+
onChange: (e) => {
|
|
182
|
+
u(e) && (s?.(e), T(p, h));
|
|
183
|
+
},
|
|
184
|
+
onValidate: (e) => {
|
|
185
|
+
v?.(e);
|
|
186
|
+
},
|
|
187
|
+
options: {
|
|
188
|
+
formatOnPaste: !0,
|
|
189
|
+
formatOnType: !0,
|
|
190
|
+
fontFamily: g.code.font.family,
|
|
191
|
+
bracketPairColorization: { enabled: !1 },
|
|
192
|
+
overviewRulerLanes: 0,
|
|
193
|
+
scrollBeyondLastLine: !1,
|
|
194
|
+
scrollbar: {
|
|
195
|
+
vertical: "hidden",
|
|
196
|
+
horizontal: "hidden"
|
|
197
|
+
},
|
|
198
|
+
minimap: { enabled: !1 },
|
|
199
|
+
...Q,
|
|
200
|
+
...J
|
|
201
|
+
}
|
|
202
|
+
})
|
|
203
|
+
}),
|
|
204
|
+
M && /* @__PURE__ */ n(eo, {
|
|
205
|
+
onPointerDown: K,
|
|
206
|
+
onPointerMove: V,
|
|
207
|
+
onPointerUp: U
|
|
208
|
+
})
|
|
209
|
+
]
|
|
210
|
+
});
|
|
211
|
+
}, uo = "_editorHeader_19qlo_1", go = "_elementContainer_19qlo_15", L = {
|
|
212
|
+
editorHeader: uo,
|
|
213
|
+
elementContainer: go
|
|
214
|
+
}, yo = ({ title: o, leftNodes: t, rightNodes: i }) => /* @__PURE__ */ z("div", {
|
|
215
|
+
className: L.editorHeader,
|
|
216
|
+
children: [/* @__PURE__ */ z("div", {
|
|
217
|
+
className: L.elementContainer,
|
|
218
|
+
children: [t && t.map((s, l) => /* @__PURE__ */ n("div", { children: s }, `left-${l}`)), o]
|
|
219
|
+
}), /* @__PURE__ */ n("div", {
|
|
220
|
+
className: L.elementContainer,
|
|
221
|
+
children: i && i.map((s, l) => /* @__PURE__ */ n("div", { children: s }, `right-${l}`))
|
|
222
|
+
})]
|
|
223
|
+
});
|
|
224
|
+
export {
|
|
225
|
+
B as BASE_CODE_EDITOR_THEME_ID,
|
|
226
|
+
Mo as CodeEditor,
|
|
227
|
+
yo as CodeEditorHeader,
|
|
228
|
+
io as getBaseCodeEditorTheme
|
|
229
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JsonValue } from 'type-fest';
|
|
2
|
-
import { IconComponent } from '../../../icon';
|
|
3
2
|
import { JsonNodeHighlighting } from '../types/JsonNodeHighlighting';
|
|
3
|
+
import { IconComponent } from '../../../../icon';
|
|
4
4
|
export declare const JsonNestedNode: ({ label, Icon, elements, renderElementsCount, emptyElementsText, depth, keyPath, highlighting, }: {
|
|
5
5
|
label?: string;
|
|
6
6
|
Icon: IconComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { JsonNodeHighlighting } from '../types/JsonNodeHighlighting';
|
|
1
2
|
import { IconComponent } from '../../../../icon';
|
|
2
|
-
import { JsonNodeHighlighting } from '../../types/JsonNodeHighlighting';
|
|
3
3
|
export declare const JsonNodeLabel: ({ label, Icon, highlighting, }: {
|
|
4
4
|
label: string;
|
|
5
5
|
Icon: IconComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JsonNodeHighlighting } from '
|
|
1
|
+
import { JsonNodeHighlighting } from '../types/JsonNodeHighlighting';
|
|
2
2
|
export declare const JsonNodeValue: ({ valueAsString, highlighting, }: {
|
|
3
3
|
valueAsString: string;
|
|
4
4
|
highlighting?: JsonNodeHighlighting | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IconComponent } from '../../../icon';
|
|
2
1
|
import { JsonNodeHighlighting } from '../types/JsonNodeHighlighting';
|
|
2
|
+
import { IconComponent } from '../../../../icon';
|
|
3
3
|
type JsonValueNodeProps = {
|
|
4
4
|
valueAsString: string;
|
|
5
5
|
highlighting: JsonNodeHighlighting | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useJsonTreeContextOrThrow: () => import('../
|
|
1
|
+
export declare const useJsonTreeContextOrThrow: () => import('../types/JsonTreeContextType').JsonTreeContextType;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { GetJsonNodeHighlighting } from '
|
|
2
|
-
|
|
3
|
-
keyPath: string;
|
|
4
|
-
depth: number;
|
|
5
|
-
};
|
|
1
|
+
import { GetJsonNodeHighlighting } from '../../types/GetJsonNodeHighlighting';
|
|
2
|
+
import { ShouldExpandNodeInitiallyProps } from '../../types/ShouldExpandNodeInitiallyProps';
|
|
6
3
|
export type JsonTreeContextType = {
|
|
7
4
|
getNodeHighlighting?: GetJsonNodeHighlighting;
|
|
8
5
|
shouldExpandNodeInitially: (params: ShouldExpandNodeInitiallyProps) => boolean;
|
|
@@ -13,4 +10,3 @@ export type JsonTreeContextType = {
|
|
|
13
10
|
arrowButtonExpandedLabel: string;
|
|
14
11
|
onNodeValueClick?: (valueAsString: string) => void;
|
|
15
12
|
};
|
|
16
|
-
export declare const JsonTreeContext: import('react').Context<JsonTreeContextType | undefined>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ShouldExpandNodeInitiallyProps } from '
|
|
1
|
+
import { ShouldExpandNodeInitiallyProps } from '../../types/ShouldExpandNodeInitiallyProps';
|
|
2
2
|
export declare const isTwoFirstDepths: ({ depth }: ShouldExpandNodeInitiallyProps) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ThemeColor } from '
|
|
1
|
+
import { ThemeColor } from '../../../../theme';
|
|
2
2
|
export type JsonNodeHighlighting = Extract<ThemeColor, 'blue' | 'red'> | 'partial-blue';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JsonValue } from 'type-fest';
|
|
2
|
+
import { JsonTreeContextType } from '../internal/types/JsonTreeContextType';
|
|
3
|
+
import { JsonTreeEntry } from './JsonTreeEntry';
|
|
4
|
+
export type JsonTreeProps = Omit<JsonTreeContextType, 'shouldExpandNodeInitially'> & {
|
|
5
|
+
shouldExpandNodeInitially?: JsonTreeContextType['shouldExpandNodeInitially'];
|
|
6
|
+
} & ({
|
|
7
|
+
value: JsonValue;
|
|
8
|
+
entries?: never;
|
|
9
|
+
} | {
|
|
10
|
+
value?: never;
|
|
11
|
+
entries: JsonTreeEntry[];
|
|
12
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IconComponent } from '../../../../icon/types/IconComponent';
|
|
2
|
+
import { CalloutVariant } from './CalloutVariant';
|
|
3
|
+
export type CalloutProps = {
|
|
4
|
+
variant: CalloutVariant;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
fullWidth?: boolean;
|
|
8
|
+
Icon?: IconComponent;
|
|
9
|
+
action?: {
|
|
10
|
+
label: string;
|
|
11
|
+
onClick: () => void;
|
|
12
|
+
};
|
|
13
|
+
isClosable?: boolean;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CalloutVariant = 'info' | 'warning' | 'error' | 'neutral' | 'success';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InfoAccent = 'blue' | 'danger';
|
package/dist/{primitives/feedback/Info/Info.d.ts → components/feedback/Info/types/InfoProps.d.ts}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { Button } from '../../../../primitives/input/Button/Button';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
+
import { InfoAccent } from './InfoAccent';
|
|
3
4
|
export type InfoProps = {
|
|
4
5
|
accent?: InfoAccent;
|
|
5
6
|
text: string;
|
|
6
7
|
buttonTitle?: string;
|
|
7
8
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
-
|
|
9
|
+
href?: string;
|
|
10
|
+
render?: React.ComponentProps<typeof Button>['render'];
|
|
9
11
|
};
|
|
10
|
-
export declare const Info: ({ accent, text, buttonTitle, onClick, to, }: InfoProps) => React.JSX.Element;
|