@keboola/design 2.0.1 → 3.0.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/README.md +64 -5
- package/dist/icons.cjs +13 -733
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.d.cts +7 -0
- package/dist/icons.d.ts +7 -0
- package/dist/icons.js +8 -2
- package/dist/icons.js.map +1 -1
- package/dist/index.cjs +13605 -12713
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10462 -0
- package/dist/index.d.ts +10462 -0
- package/dist/index.js +13437 -12576
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +146 -82
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.d.cts +74 -0
- package/dist/markdown-editor.d.ts +74 -0
- package/dist/markdown-editor.js +146 -83
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.cjs +85 -19
- package/dist/mermaid.cjs.map +1 -1
- package/dist/mermaid.d.cts +11 -0
- package/dist/mermaid.d.ts +11 -0
- package/dist/mermaid.js +68 -21
- package/dist/mermaid.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing.cjs +106 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.cts +19 -0
- package/dist/testing.d.ts +19 -0
- package/dist/testing.js +104 -0
- package/dist/testing.js.map +1 -0
- package/package.json +94 -15
- package/dist/icon-names.cjs +0 -18
- package/dist/icon-names.cjs.map +0 -1
- package/dist/icon-names.js +0 -16
- package/dist/icon-names.js.map +0 -1
- package/src/blocks/AIKit/AnswerSummary.stories.tsx +0 -38
- package/src/blocks/AIKit/AnswerSummary.tsx +0 -63
- package/src/blocks/AIKit/CollapsibleStepHeader.stories.tsx +0 -53
- package/src/blocks/AIKit/CollapsibleStepHeader.tsx +0 -64
- package/src/blocks/AIKit/InlineStepDetail.stories.tsx +0 -25
- package/src/blocks/AIKit/InlineStepDetail.tsx +0 -13
- package/src/blocks/AIKit/InlineStepLabel.stories.tsx +0 -37
- package/src/blocks/AIKit/InlineStepLabel.tsx +0 -36
- package/src/blocks/AIKit/MessageBubble.stories.tsx +0 -145
- package/src/blocks/AIKit/MessageBubble.tsx +0 -68
- package/src/blocks/AIKit/PlanApproval.stories.tsx +0 -121
- package/src/blocks/AIKit/PlanApproval.test.tsx +0 -241
- package/src/blocks/AIKit/PlanApproval.tsx +0 -363
- package/src/blocks/AIKit/PlanRewritingIndicator.test.tsx +0 -17
- package/src/blocks/AIKit/PlanRewritingIndicator.tsx +0 -20
- package/src/blocks/AIKit/PromptInput.stories.tsx +0 -106
- package/src/blocks/AIKit/PromptInput.test.tsx +0 -53
- package/src/blocks/AIKit/PromptInput.tsx +0 -218
- package/src/blocks/AIKit/PromptInputAction.tsx +0 -18
- package/src/blocks/AIKit/PromptInputSubmit.tsx +0 -59
- package/src/blocks/AIKit/Question.stories.tsx +0 -235
- package/src/blocks/AIKit/Question.tsx +0 -350
- package/src/blocks/AIKit/QuestionBlock.stories.tsx +0 -99
- package/src/blocks/AIKit/QuestionBlock.tsx +0 -83
- package/src/blocks/AIKit/SuggestedPrompt.stories.tsx +0 -82
- package/src/blocks/AIKit/SuggestedPrompt.tsx +0 -42
- package/src/blocks/AIKit/ThinkingIndicator.stories.tsx +0 -21
- package/src/blocks/AIKit/ThinkingIndicator.tsx +0 -14
- package/src/blocks/AIKit/index.ts +0 -12
- package/src/blocks/AutoSaveTextarea/AutoSaveTextarea.stories.tsx +0 -78
- package/src/blocks/AutoSaveTextarea/AutoSaveTextarea.tsx +0 -103
- package/src/blocks/AutoSaveTextarea/index.ts +0 -1
- package/src/blocks/ClipboardButton/ClipboardButton.stories.tsx +0 -28
- package/src/blocks/ClipboardButton/ClipboardButton.tsx +0 -43
- package/src/blocks/ClipboardButton/ClipboardInline.tsx +0 -40
- package/src/blocks/ClipboardButton/index.ts +0 -2
- package/src/blocks/ColorInput/ColorInput.stories.tsx +0 -109
- package/src/blocks/ColorInput/ColorInput.test.tsx +0 -163
- package/src/blocks/ColorInput/ColorInput.tsx +0 -171
- package/src/blocks/ColorInput/ColorPicker.tsx +0 -42
- package/src/blocks/ColorInput/index.ts +0 -1
- package/src/blocks/ColorInput/utils.test.ts +0 -189
- package/src/blocks/ColorInput/utils.ts +0 -74
- package/src/blocks/EmptyConfigurationActionCard/EmptyConfigurationActionCard.stories.tsx +0 -30
- package/src/blocks/EmptyConfigurationActionCard/EmptyConfigurationActionCard.tsx +0 -20
- package/src/blocks/EmptyConfigurationActionCard/index.ts +0 -1
- package/src/blocks/EmptyState/EmptyState.stories.tsx +0 -93
- package/src/blocks/EmptyState/EmptyState.tsx +0 -146
- package/src/blocks/EmptyState/index.ts +0 -1
- package/src/blocks/ErrorState/ErrorState.stories.tsx +0 -125
- package/src/blocks/ErrorState/ErrorState.tsx +0 -162
- package/src/blocks/ErrorState/index.ts +0 -1
- package/src/blocks/Form/components/FormBody.tsx +0 -27
- package/src/blocks/Form/components/SubmitButton.tsx +0 -30
- package/src/blocks/Form/connectors/CheckboxField.tsx +0 -34
- package/src/blocks/Form/connectors/FieldShell.tsx +0 -46
- package/src/blocks/Form/connectors/NumberField.tsx +0 -36
- package/src/blocks/Form/connectors/PasswordField.tsx +0 -38
- package/src/blocks/Form/connectors/SelectField.tsx +0 -73
- package/src/blocks/Form/connectors/SwitchField.tsx +0 -34
- package/src/blocks/Form/connectors/TextAreaField.tsx +0 -36
- package/src/blocks/Form/connectors/TextField.tsx +0 -36
- package/src/blocks/Form/contexts.ts +0 -4
- package/src/blocks/Form/formHook.ts +0 -45
- package/src/blocks/Form/index.ts +0 -2
- package/src/blocks/Form/setServerFieldErrors.test.ts +0 -38
- package/src/blocks/Form/setServerFieldErrors.ts +0 -21
- package/src/blocks/InputOtp/InputOtp.stories.tsx +0 -214
- package/src/blocks/InputOtp/InputOtp.test.tsx +0 -162
- package/src/blocks/InputOtp/InputOtp.tsx +0 -62
- package/src/blocks/InputOtp/InputOtpGroup.tsx +0 -13
- package/src/blocks/InputOtp/InputOtpSeparator.tsx +0 -23
- package/src/blocks/InputOtp/InputOtpSlot.styles.ts +0 -52
- package/src/blocks/InputOtp/InputOtpSlot.tsx +0 -44
- package/src/blocks/InputOtp/context.ts +0 -23
- package/src/blocks/InputOtp/index.ts +0 -23
- package/src/blocks/MermaidDiagram/MermaidDiagram.stories.tsx +0 -87
- package/src/blocks/MermaidDiagram/MermaidDiagram.tsx +0 -266
- package/src/blocks/MermaidDiagram/index.ts +0 -1
- package/src/blocks/MultiActionButtonGroup/MultiActionButton.stories.tsx +0 -119
- package/src/blocks/MultiActionButtonGroup/MultiActionButton.tsx +0 -41
- package/src/blocks/MultiActionButtonGroup/MultiActionButtonGroup.tsx +0 -16
- package/src/blocks/MultiActionButtonGroup/index.ts +0 -1
- package/src/blocks/MultiCombobox/MultiCombobox.stories.tsx +0 -324
- package/src/blocks/MultiCombobox/MultiCombobox.tsx +0 -257
- package/src/blocks/MultiCombobox/index.ts +0 -1
- package/src/blocks/NumberInput/NumberInput.stories.tsx +0 -112
- package/src/blocks/NumberInput/NumberInput.test.tsx +0 -148
- package/src/blocks/NumberInput/NumberInput.tsx +0 -89
- package/src/blocks/NumberInput/index.ts +0 -1
- package/src/blocks/PageHeader/AGENTS.md +0 -137
- package/src/blocks/PageHeader/PageHeader.stories.tsx +0 -371
- package/src/blocks/PageHeader/PageHeader.tsx +0 -22
- package/src/blocks/PageHeader/PageHeaderDetail.tsx +0 -84
- package/src/blocks/PageHeader/PageHeaderIndex.tsx +0 -75
- package/src/blocks/PageHeader/index.ts +0 -1
- package/src/blocks/PageHeader/styles.ts +0 -6
- package/src/blocks/PageLayout/AGENTS.md +0 -94
- package/src/blocks/PageLayout/PageLayout.stories.tsx +0 -146
- package/src/blocks/PageLayout/PageLayout.tsx +0 -139
- package/src/blocks/PageLayout/index.ts +0 -1
- package/src/blocks/PageToolbar/PageToolbar.stories.tsx +0 -353
- package/src/blocks/PageToolbar/PageToolbar.tsx +0 -160
- package/src/blocks/PageToolbar/PageToolbarToken.tsx +0 -61
- package/src/blocks/PageToolbar/index.ts +0 -1
- package/src/blocks/PasswordInput/PasswordInput.stories.tsx +0 -114
- package/src/blocks/PasswordInput/PasswordInput.test.tsx +0 -219
- package/src/blocks/PasswordInput/PasswordInput.tsx +0 -180
- package/src/blocks/PasswordInput/index.ts +0 -1
- package/src/blocks/SearchInput/SearchInput.stories.tsx +0 -127
- package/src/blocks/SearchInput/SearchInput.test.tsx +0 -162
- package/src/blocks/SearchInput/SearchInput.tsx +0 -172
- package/src/blocks/SearchInput/index.ts +0 -1
- package/src/blocks/SearchInputWithNavigation/SearchInputWithNavigation.stories.tsx +0 -73
- package/src/blocks/SearchInputWithNavigation/SearchInputWithNavigation.tsx +0 -92
- package/src/blocks/SearchInputWithNavigation/index.ts +0 -1
- package/src/blocks/SplitButton/SplitButton.stories.tsx +0 -91
- package/src/blocks/SplitButton/SplitButton.tsx +0 -81
- package/src/blocks/SplitButton/index.ts +0 -1
- package/src/blocks/Tagger/TagItem.tsx +0 -32
- package/src/blocks/Tagger/TagSelectPopover/TagSelectCreateItem.tsx +0 -44
- package/src/blocks/Tagger/TagSelectPopover/TagSelectItem.tsx +0 -31
- package/src/blocks/Tagger/TagSelectPopover/TagSelectList.tsx +0 -67
- package/src/blocks/Tagger/TagSelectPopover/TagSelectPopover.tsx +0 -34
- package/src/blocks/Tagger/TagSelectPopover/TagSelectValue.tsx +0 -47
- package/src/blocks/Tagger/TagSelectPopover/index.ts +0 -1
- package/src/blocks/Tagger/Tagger.stories.tsx +0 -80
- package/src/blocks/Tagger/Tagger.tsx +0 -101
- package/src/blocks/Tagger/index.ts +0 -1
- package/src/blocks/Tagger/types.ts +0 -11
- package/src/blocks/Textarea/Textarea.stories.tsx +0 -47
- package/src/blocks/Textarea/Textarea.tsx +0 -50
- package/src/blocks/Textarea/index.ts +0 -1
- package/src/components/Alert/Alert.stories.tsx +0 -101
- package/src/components/Alert/Alert.tsx +0 -121
- package/src/components/Alert/AlertAction.tsx +0 -31
- package/src/components/Alert/AlertCollapsibleIcon.tsx +0 -25
- package/src/components/Alert/AlertDescription.tsx +0 -36
- package/src/components/Alert/AlertIcon.tsx +0 -40
- package/src/components/Alert/AlertRoot.tsx +0 -64
- package/src/components/Alert/AlertTitle.tsx +0 -25
- package/src/components/Alert/index.ts +0 -1
- package/src/components/Avatar.stories.tsx +0 -22
- package/src/components/Avatar.tsx +0 -88
- package/src/components/Badge/Badge.stories.tsx +0 -122
- package/src/components/Badge/Badge.tsx +0 -71
- package/src/components/Badge/BadgeAddon.tsx +0 -63
- package/src/components/Badge/BadgeButton.tsx +0 -40
- package/src/components/Badge/BadgeLabel.tsx +0 -37
- package/src/components/Badge/BadgeRoot.tsx +0 -21
- package/src/components/Badge/index.ts +0 -1
- package/src/components/Badge/styles.ts +0 -74
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +0 -135
- package/src/components/Breadcrumb/Breadcrumb.tsx +0 -23
- package/src/components/Breadcrumb/BreadcrumbEllipsis.tsx +0 -43
- package/src/components/Breadcrumb/BreadcrumbItem.tsx +0 -9
- package/src/components/Breadcrumb/BreadcrumbLink.tsx +0 -48
- package/src/components/Breadcrumb/BreadcrumbList.tsx +0 -26
- package/src/components/Breadcrumb/BreadcrumbPage.tsx +0 -22
- package/src/components/Breadcrumb/BreadcrumbSeparator.tsx +0 -28
- package/src/components/Breadcrumb/index.ts +0 -1
- package/src/components/Button/Button.stories.tsx +0 -80
- package/src/components/Button/Button.tsx +0 -110
- package/src/components/Button/ButtonInline.stories.tsx +0 -54
- package/src/components/Button/ButtonInline.tsx +0 -77
- package/src/components/Button/index.ts +0 -3
- package/src/components/Button/styles.ts +0 -313
- package/src/components/ButtonGroup/ButtonGroup.stories.tsx +0 -140
- package/src/components/ButtonGroup/ButtonGroup.tsx +0 -79
- package/src/components/ButtonGroup/index.ts +0 -1
- package/src/components/Calendar/Calendar.stories.tsx +0 -101
- package/src/components/Calendar/Calendar.tsx +0 -44
- package/src/components/Calendar/index.ts +0 -2
- package/src/components/Card/Card.stories.tsx +0 -60
- package/src/components/Card/Card.tsx +0 -42
- package/src/components/Card/CardContent.tsx +0 -5
- package/src/components/Card/CardHeader.tsx +0 -5
- package/src/components/Card/CardTitle.tsx +0 -13
- package/src/components/Card/index.ts +0 -1
- package/src/components/Card/styles.ts +0 -32
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -210
- package/src/components/Checkbox/Checkbox.test.tsx +0 -140
- package/src/components/Checkbox/Checkbox.tsx +0 -83
- package/src/components/Checkbox/index.ts +0 -1
- package/src/components/Checkbox/styles.ts +0 -77
- package/src/components/Clipboard/Clipboard.stories.tsx +0 -44
- package/src/components/Clipboard/Clipboard.tsx +0 -89
- package/src/components/Clipboard/index.ts +0 -1
- package/src/components/CodeEditor/ButtonToolbar.tsx +0 -14
- package/src/components/CodeEditor/CodeEditor.tsx +0 -155
- package/src/components/CodeEditor/SqlEditor.stories.tsx +0 -76
- package/src/components/CodeEditor/SqlEditor.tsx +0 -206
- package/src/components/CodeEditor/ToggleComponentHelp.tsx +0 -7
- package/src/components/CodeEditor/activeQueryHighlight.test.ts +0 -178
- package/src/components/CodeEditor/activeQueryHighlight.ts +0 -245
- package/src/components/CodeEditor/helpers.ts +0 -100
- package/src/components/CodeEditor/highlighting.ts +0 -184
- package/src/components/CodeEditor/index.ts +0 -3
- package/src/components/CodeEditor/search.ts +0 -186
- package/src/components/Collapse.stories.tsx +0 -56
- package/src/components/Collapse.tsx +0 -61
- package/src/components/Collapsible/Collapsible.stories.tsx +0 -55
- package/src/components/Collapsible/Collapsible.tsx +0 -11
- package/src/components/Collapsible/CollapsibleContent.tsx +0 -25
- package/src/components/Collapsible/index.ts +0 -1
- package/src/components/CollapsiblePanel.stories.tsx +0 -25
- package/src/components/CollapsiblePanel.tsx +0 -127
- package/src/components/Combobox/Combobox.stories.tsx +0 -426
- package/src/components/Combobox/Combobox.test.tsx +0 -165
- package/src/components/Combobox/Combobox.tsx +0 -345
- package/src/components/Combobox/ComboboxChips.tsx +0 -68
- package/src/components/Combobox/ComboboxContent.tsx +0 -95
- package/src/components/Combobox/ComboboxEmpty.tsx +0 -30
- package/src/components/Combobox/ComboboxInput.tsx +0 -10
- package/src/components/Combobox/ComboboxInputGroup.tsx +0 -38
- package/src/components/Combobox/ComboboxItem.tsx +0 -70
- package/src/components/Combobox/ComboboxItemIndicator.tsx +0 -78
- package/src/components/Combobox/ComboboxList.tsx +0 -32
- package/src/components/Combobox/ComboboxRoot.tsx +0 -5
- package/src/components/Combobox/ComboboxSeparator.tsx +0 -20
- package/src/components/Combobox/Group/ComboboxCollection.tsx +0 -7
- package/src/components/Combobox/Group/ComboboxGroup.tsx +0 -23
- package/src/components/Combobox/Group/ComboboxGroupLabel.tsx +0 -38
- package/src/components/Combobox/Group/index.ts +0 -3
- package/src/components/Combobox/index.ts +0 -1
- package/src/components/Combobox/types.ts +0 -22
- package/src/components/Combobox/utils.test.ts +0 -95
- package/src/components/Combobox/utils.ts +0 -103
- package/src/components/Command/Command.stories.tsx +0 -367
- package/src/components/Command/Command.tsx +0 -37
- package/src/components/Command/CommandContent.tsx +0 -19
- package/src/components/Command/CommandEmpty.tsx +0 -6
- package/src/components/Command/CommandGroup.tsx +0 -26
- package/src/components/Command/CommandInput.tsx +0 -27
- package/src/components/Command/CommandItem/CheckIndicator.tsx +0 -86
- package/src/components/Command/CommandItem/CommandItem.tsx +0 -94
- package/src/components/Command/CommandItem/index.ts +0 -1
- package/src/components/Command/CommandList.tsx +0 -32
- package/src/components/Command/CommandSeparator.tsx +0 -13
- package/src/components/Command/index.ts +0 -6
- package/src/components/DatePicker/DatePicker.tsx +0 -37
- package/src/components/DatePicker/index.ts +0 -1
- package/src/components/DiffView/DiffView.stories.tsx +0 -80
- package/src/components/DiffView/DiffView.tsx +0 -131
- package/src/components/DiffView/DiffViewMark.tsx +0 -21
- package/src/components/DiffView/DiffViewTd.tsx +0 -84
- package/src/components/DiffView/DiffViewTh.tsx +0 -23
- package/src/components/DiffView/index.ts +0 -11
- package/src/components/DiffView/util.test.ts +0 -231
- package/src/components/DiffView/util.ts +0 -311
- package/src/components/DotsLoader.tsx +0 -22
- package/src/components/DropdownMenu/DropdownMenu.stories.tsx +0 -310
- package/src/components/DropdownMenu/DropdownMenu.tsx +0 -61
- package/src/components/DropdownMenu/DropdownMenuCheckboxItem.tsx +0 -55
- package/src/components/DropdownMenu/DropdownMenuContent.tsx +0 -52
- package/src/components/DropdownMenu/DropdownMenuContext.tsx +0 -13
- package/src/components/DropdownMenu/DropdownMenuItem.tsx +0 -80
- package/src/components/DropdownMenu/DropdownMenuItemDescription.tsx +0 -42
- package/src/components/DropdownMenu/DropdownMenuItemIndicator.tsx +0 -104
- package/src/components/DropdownMenu/DropdownMenuLabel.tsx +0 -21
- package/src/components/DropdownMenu/DropdownMenuRadioGroup/DropdownMenuRadioGroup.tsx +0 -31
- package/src/components/DropdownMenu/DropdownMenuRadioGroup/DropdownMenuRadioItem.tsx +0 -67
- package/src/components/DropdownMenu/DropdownMenuRadioGroup/index.ts +0 -2
- package/src/components/DropdownMenu/DropdownMenuSeparator.tsx +0 -35
- package/src/components/DropdownMenu/DropdownMenuSub/DropdownMenuSub.tsx +0 -3
- package/src/components/DropdownMenu/DropdownMenuSub/DropdownMenuSubContent.tsx +0 -21
- package/src/components/DropdownMenu/DropdownMenuSub/DropdownMenuSubTrigger.tsx +0 -17
- package/src/components/DropdownMenu/DropdownMenuSub/index.ts +0 -3
- package/src/components/DropdownMenu/DropdownMenuTrigger.tsx +0 -19
- package/src/components/DropdownMenu/ItemIcon.tsx +0 -30
- package/src/components/DropdownMenu/index.ts +0 -1
- package/src/components/DropdownMenu/styles.ts +0 -82
- package/src/components/EmptySearchContent.stories.tsx +0 -12
- package/src/components/EmptySearchContent.tsx +0 -13
- package/src/components/FieldBox/FieldBox.stories.tsx +0 -138
- package/src/components/FieldBox/FieldBox.tsx +0 -43
- package/src/components/FieldBox/FieldBoxDescription.tsx +0 -18
- package/src/components/FieldBox/FieldBoxTitle.tsx +0 -20
- package/src/components/FieldBox/index.ts +0 -1
- package/src/components/FieldBox/styles.ts +0 -37
- package/src/components/FormGroup/FormGroup.stories.tsx +0 -120
- package/src/components/FormGroup/FormGroup.tsx +0 -48
- package/src/components/FormGroup/FormGroupColorInput.tsx +0 -15
- package/src/components/FormGroup/FormGroupHelp.tsx +0 -17
- package/src/components/FormGroup/FormGroupNumberInput.tsx +0 -15
- package/src/components/FormGroup/FormGroupTextInput.tsx +0 -15
- package/src/components/FormGroup/FormGroupTextarea.tsx +0 -12
- package/src/components/FormGroup/context.ts +0 -11
- package/src/components/FormGroup/index.ts +0 -2
- package/src/components/FormGroup/types.ts +0 -5
- package/src/components/FullScreenModal/FullScreenModal.tsx +0 -8
- package/src/components/FullScreenModal/FullScreenModalBody.tsx +0 -16
- package/src/components/FullScreenModal/FullScreenModalHeader.tsx +0 -92
- package/src/components/FullScreenModal/FullScreenModalRoot.tsx +0 -79
- package/src/components/FullScreenModal/index.ts +0 -3
- package/src/components/HelpBlock/HelpBlock.stories.tsx +0 -28
- package/src/components/HelpBlock/HelpBlock.tsx +0 -31
- package/src/components/HelpBlock/index.ts +0 -1
- package/src/components/HoverCard/HoverCard.stories.tsx +0 -77
- package/src/components/HoverCard/HoverCard.tsx +0 -13
- package/src/components/HoverCard/HoverCardContent.tsx +0 -68
- package/src/components/HoverCard/index.ts +0 -1
- package/src/components/Icon/Icon.stories.tsx +0 -26
- package/src/components/Icon/Icon.tsx +0 -10
- package/src/components/Icon/Icons.mdx +0 -28
- package/src/components/Icon/constants.ts +0 -1
- package/src/components/Icon/index.ts +0 -27
- package/src/components/Input/DateInput/DateInput.stories.tsx +0 -58
- package/src/components/Input/DateInput/DateInput.tsx +0 -143
- package/src/components/Input/DateInput/helpers.test.ts +0 -102
- package/src/components/Input/DateInput/helpers.ts +0 -59
- package/src/components/Input/DateInput/index.ts +0 -1
- package/src/components/Input/DateRangeInput/DateRangeInput.stories.tsx +0 -66
- package/src/components/Input/DateRangeInput/DateRangeInput.tsx +0 -139
- package/src/components/Input/DateRangeInput/helpers.test.ts +0 -146
- package/src/components/Input/DateRangeInput/helpers.ts +0 -36
- package/src/components/Input/DateRangeInput/index.ts +0 -1
- package/src/components/Input/Input.stories.tsx +0 -93
- package/src/components/Input/Input.test.tsx +0 -112
- package/src/components/Input/Input.tsx +0 -163
- package/src/components/Input/TextInput/TextInput.stories.tsx +0 -68
- package/src/components/Input/TextInput/TextInput.test.tsx +0 -52
- package/src/components/Input/TextInput/TextInput.tsx +0 -73
- package/src/components/Input/TextInput/index.ts +0 -1
- package/src/components/Input/TimeInput/TimeInput.stories.tsx +0 -89
- package/src/components/Input/TimeInput/TimeInput.tsx +0 -106
- package/src/components/Input/TimeInput/index.ts +0 -1
- package/src/components/Input/index.ts +0 -4
- package/src/components/Input/utils.ts +0 -11
- package/src/components/InputGroup/InputGroup.stories.tsx +0 -215
- package/src/components/InputGroup/InputGroup.tsx +0 -228
- package/src/components/InputGroup/InputGroupAddon.tsx +0 -57
- package/src/components/InputGroup/InputGroupButton.tsx +0 -25
- package/src/components/InputGroup/InputGroupInput.tsx +0 -34
- package/src/components/InputGroup/InputGroupText.tsx +0 -21
- package/src/components/InputGroup/InputGroupTextArea.tsx +0 -78
- package/src/components/InputGroup/index.ts +0 -1
- package/src/components/Kbd/Kbd.stories.tsx +0 -82
- package/src/components/Kbd/Kbd.tsx +0 -17
- package/src/components/Kbd/KbdGroup.tsx +0 -35
- package/src/components/Kbd/KbdSeparator.tsx +0 -9
- package/src/components/Kbd/index.ts +0 -3
- package/src/components/Kbd/keyboardKeys.ts +0 -40
- package/src/components/Kbd/styles.ts +0 -39
- package/src/components/Label/Label.stories.tsx +0 -53
- package/src/components/Label/Label.tsx +0 -31
- package/src/components/Label/index.ts +0 -1
- package/src/components/Link.stories.tsx +0 -19
- package/src/components/Link.tsx +0 -37
- package/src/components/MarkdownEditor/MarkdownEditor.stories.tsx +0 -182
- package/src/components/MarkdownEditor/MarkdownEditor.test.ts +0 -171
- package/src/components/MarkdownEditor/MarkdownEditor.tsx +0 -245
- package/src/components/MarkdownEditor/context.ts +0 -10
- package/src/components/MarkdownEditor/index.ts +0 -1
- package/src/components/MarkdownEditor/nodes/ImageNode.tsx +0 -115
- package/src/components/MarkdownEditor/nodes/ImageNodeComponent.tsx +0 -18
- package/src/components/MarkdownEditor/nodes/MermaidNode.tsx +0 -72
- package/src/components/MarkdownEditor/nodes/MermaidNodeComponent.tsx +0 -35
- package/src/components/MarkdownEditor/plugins/ImagePastePlugin.tsx +0 -149
- package/src/components/MarkdownEditor/plugins/KeyboardPlugin.tsx +0 -81
- package/src/components/MarkdownEditor/plugins/MarkdownSyncPlugin.tsx +0 -65
- package/src/components/MarkdownEditor/plugins/ToolbarPlugin.tsx +0 -284
- package/src/components/MarkdownEditor/plugins/toolbar/AlignmentDropdown.tsx +0 -99
- package/src/components/MarkdownEditor/plugins/toolbar/BlockTypeDropdown.tsx +0 -142
- package/src/components/MarkdownEditor/plugins/toolbar/LinkPanel.tsx +0 -160
- package/src/components/MarkdownEditor/plugins/toolbar/ToolbarButton.tsx +0 -36
- package/src/components/MarkdownEditor/plugins/toolbar/ToolbarDivider.tsx +0 -1
- package/src/components/MarkdownEditor/theme.ts +0 -39
- package/src/components/MarkdownEditor/transformers.ts +0 -189
- package/src/components/MarkedText/MarkedText.stories.tsx +0 -46
- package/src/components/MarkedText/MarkedText.tsx +0 -36
- package/src/components/MarkedText/index.ts +0 -1
- package/src/components/MarkedText/utils.test.ts +0 -193
- package/src/components/MarkedText/utils.ts +0 -37
- package/src/components/MergeEditor/AcceptControls/AcceptButton.tsx +0 -25
- package/src/components/MergeEditor/AcceptControls/AcceptControls.tsx +0 -77
- package/src/components/MergeEditor/ConflictStatus/ConflictStatusIndicator.tsx +0 -38
- package/src/components/MergeEditor/MergeEditor.stories.tsx +0 -226
- package/src/components/MergeEditor/MergeEditor.tsx +0 -125
- package/src/components/MergeEditor/MergePane.tsx +0 -113
- package/src/components/MergeEditor/PaneHeader.tsx +0 -11
- package/src/components/MergeEditor/constants.ts +0 -48
- package/src/components/MergeEditor/decorations.ts +0 -126
- package/src/components/MergeEditor/helpers.test.ts +0 -172
- package/src/components/MergeEditor/helpers.ts +0 -118
- package/src/components/MergeEditor/index.ts +0 -5
- package/src/components/MergeEditor/useMergeDiff.ts +0 -573
- package/src/components/MergeEditor/useScrollSync.ts +0 -79
- package/src/components/Modal/Modal.stories.tsx +0 -680
- package/src/components/Modal/Modal.tsx +0 -49
- package/src/components/Modal/ModalBody.tsx +0 -33
- package/src/components/Modal/ModalCloseIcon.tsx +0 -31
- package/src/components/Modal/ModalContent.tsx +0 -95
- package/src/components/Modal/ModalDescription.tsx +0 -20
- package/src/components/Modal/ModalFooter.tsx +0 -20
- package/src/components/Modal/ModalHeader.tsx +0 -61
- package/src/components/Modal/ModalIcon.tsx +0 -109
- package/src/components/Modal/ModalOverlay.tsx +0 -42
- package/src/components/Modal/ModalTitle.tsx +0 -12
- package/src/components/Modal/index.ts +0 -1
- package/src/components/Navbar/Navbar.stories.tsx +0 -191
- package/src/components/Navbar/Navbar.tsx +0 -80
- package/src/components/Navbar/NavbarContent.tsx +0 -20
- package/src/components/Navbar/NavbarFooter.tsx +0 -11
- package/src/components/Navbar/NavbarHeader.tsx +0 -11
- package/src/components/Navbar/NavbarMenu.tsx +0 -30
- package/src/components/Navbar/NavbarMenuAvatar.tsx +0 -67
- package/src/components/Navbar/NavbarMenuButton.tsx +0 -135
- package/src/components/Navbar/NavbarMenuItem.tsx +0 -9
- package/src/components/Navbar/NavbarMenuItemAdornment.tsx +0 -65
- package/src/components/Navbar/index.ts +0 -1
- package/src/components/Pagination/Pagination.stories.tsx +0 -131
- package/src/components/Pagination/Pagination.tsx +0 -34
- package/src/components/Pagination/PaginationButton.tsx +0 -36
- package/src/components/Pagination/PaginationContent.tsx +0 -12
- package/src/components/Pagination/PaginationEllipsis.tsx +0 -26
- package/src/components/Pagination/PaginationItem.tsx +0 -9
- package/src/components/Pagination/PaginationNext.tsx +0 -20
- package/src/components/Pagination/PaginationPrevious.tsx +0 -14
- package/src/components/Pagination/index.ts +0 -1
- package/src/components/PanelWithDetails.stories.tsx +0 -28
- package/src/components/PanelWithDetails.tsx +0 -65
- package/src/components/Popconfirm/Popconfirm.stories.tsx +0 -373
- package/src/components/Popconfirm/Popconfirm.tsx +0 -82
- package/src/components/Popconfirm/PopconfirmBody.tsx +0 -5
- package/src/components/Popconfirm/PopconfirmCancel.tsx +0 -45
- package/src/components/Popconfirm/PopconfirmConfirm.tsx +0 -57
- package/src/components/Popconfirm/PopconfirmContent.tsx +0 -33
- package/src/components/Popconfirm/PopconfirmFooter.tsx +0 -9
- package/src/components/Popconfirm/PopconfirmTrigger.tsx +0 -22
- package/src/components/Popconfirm/context.ts +0 -19
- package/src/components/Popconfirm/index.ts +0 -1
- package/src/components/Popover/Popover.stories.tsx +0 -85
- package/src/components/Popover/Popover.tsx +0 -15
- package/src/components/Popover/PopoverContent.tsx +0 -103
- package/src/components/Popover/index.ts +0 -1
- package/src/components/Progress/Progress.stories.tsx +0 -67
- package/src/components/Progress/Progress.tsx +0 -45
- package/src/components/Progress/index.ts +0 -1
- package/src/components/RadioGroup/Radio.tsx +0 -61
- package/src/components/RadioGroup/RadioGroup.stories.tsx +0 -300
- package/src/components/RadioGroup/RadioGroup.tsx +0 -64
- package/src/components/RadioGroup/RadioGroupItem.tsx +0 -60
- package/src/components/RadioGroup/RadioGroupItemButton.tsx +0 -79
- package/src/components/RadioGroup/RadioGroupSeparator.tsx +0 -12
- package/src/components/RadioGroup/context.ts +0 -13
- package/src/components/RadioGroup/index.ts +0 -1
- package/src/components/Resizable/Resizable.stories.tsx +0 -50
- package/src/components/Resizable/ResizableHandle.tsx +0 -50
- package/src/components/Resizable/ResizablePanel.tsx +0 -12
- package/src/components/Resizable/ResizablePanelGroup.tsx +0 -19
- package/src/components/Resizable/index.ts +0 -3
- package/src/components/ScrollArea/ScrollArea.stories.tsx +0 -43
- package/src/components/ScrollArea/ScrollArea.tsx +0 -50
- package/src/components/ScrollArea/ScrollBar.tsx +0 -32
- package/src/components/ScrollArea/index.ts +0 -2
- package/src/components/Search/ClearButton.tsx +0 -42
- package/src/components/Search/Search.stories.tsx +0 -77
- package/src/components/Search/Search.test.tsx +0 -224
- package/src/components/Search/Search.tsx +0 -139
- package/src/components/Search/SearchForm.tsx +0 -37
- package/src/components/Search/index.ts +0 -2
- package/src/components/Search/styles.ts +0 -88
- package/src/components/Search/utils.ts +0 -11
- package/src/components/Select/Select.stories.tsx +0 -109
- package/src/components/Select/Select.tsx +0 -141
- package/src/components/Select/SelectContent.tsx +0 -110
- package/src/components/Select/SelectGroup.tsx +0 -10
- package/src/components/Select/SelectItem.tsx +0 -72
- package/src/components/Select/SelectLabel.tsx +0 -32
- package/src/components/Select/SelectRoot.tsx +0 -6
- package/src/components/Select/SelectSeparator.tsx +0 -13
- package/src/components/Select/SelectTrigger.tsx +0 -161
- package/src/components/Select/index.ts +0 -1
- package/src/components/Separator/Separator.stories.tsx +0 -60
- package/src/components/Separator/Separator.test.tsx +0 -39
- package/src/components/Separator/Separator.tsx +0 -115
- package/src/components/Separator/index.ts +0 -1
- package/src/components/Sheet/Sheet.stories.tsx +0 -63
- package/src/components/Sheet/Sheet.tsx +0 -21
- package/src/components/Sheet/SheetBody.tsx +0 -12
- package/src/components/Sheet/SheetContent.tsx +0 -131
- package/src/components/Sheet/SheetFooter.tsx +0 -9
- package/src/components/Sheet/SheetHeader.tsx +0 -39
- package/src/components/Sheet/SheetOverlay.tsx +0 -11
- package/src/components/Sheet/SheetTitle.tsx +0 -12
- package/src/components/Sheet/index.ts +0 -1
- package/src/components/Sidebar/Sidebar.stories.tsx +0 -849
- package/src/components/Sidebar/Sidebar.tsx +0 -225
- package/src/components/Sidebar/SidebarContent.tsx +0 -61
- package/src/components/Sidebar/SidebarFillTrigger.tsx +0 -25
- package/src/components/Sidebar/SidebarFooter.tsx +0 -13
- package/src/components/Sidebar/SidebarGroup/SidebarGroup.tsx +0 -23
- package/src/components/Sidebar/SidebarGroup/SidebarGroupAction.tsx +0 -53
- package/src/components/Sidebar/SidebarGroup/SidebarGroupContent.tsx +0 -20
- package/src/components/Sidebar/SidebarGroup/SidebarGroupLabel.tsx +0 -76
- package/src/components/Sidebar/SidebarGroup/index.ts +0 -4
- package/src/components/Sidebar/SidebarHeader.tsx +0 -20
- package/src/components/Sidebar/SidebarInstanceContext.ts +0 -18
- package/src/components/Sidebar/SidebarMenu/SidebarMenu.tsx +0 -28
- package/src/components/Sidebar/SidebarMenu/SidebarMenuAction.tsx +0 -69
- package/src/components/Sidebar/SidebarMenu/SidebarMenuBadge.tsx +0 -56
- package/src/components/Sidebar/SidebarMenu/SidebarMenuButton.tsx +0 -110
- package/src/components/Sidebar/SidebarMenu/SidebarMenuCard.tsx +0 -108
- package/src/components/Sidebar/SidebarMenu/SidebarMenuIcon.tsx +0 -30
- package/src/components/Sidebar/SidebarMenu/SidebarMenuItem.tsx +0 -9
- package/src/components/Sidebar/SidebarMenu/SidebarMenuSub.tsx +0 -139
- package/src/components/Sidebar/SidebarMenu/SidebarMenuSubItem.tsx +0 -106
- package/src/components/Sidebar/SidebarMenu/SidebarSearchInput.tsx +0 -88
- package/src/components/Sidebar/SidebarMenu/index.ts +0 -10
- package/src/components/Sidebar/SidebarProvider/SidebarProvider.tsx +0 -171
- package/src/components/Sidebar/SidebarProvider/context.ts +0 -35
- package/src/components/Sidebar/SidebarProvider/index.ts +0 -2
- package/src/components/Sidebar/SidebarProvider/useHoverTracking.test.ts +0 -199
- package/src/components/Sidebar/SidebarProvider/useHoverTracking.ts +0 -72
- package/src/components/Sidebar/SidebarProvider/useSidebarState.ts +0 -50
- package/src/components/Sidebar/SidebarProvider/useTransitionPresence.test.ts +0 -179
- package/src/components/Sidebar/SidebarProvider/useTransitionPresence.ts +0 -53
- package/src/components/Sidebar/SidebarResizeHandle.tsx +0 -28
- package/src/components/Sidebar/SidebarSeparator.tsx +0 -15
- package/src/components/Sidebar/SidebarTrigger.tsx +0 -40
- package/src/components/Sidebar/index.ts +0 -3
- package/src/components/Sidebar/types.ts +0 -6
- package/src/components/Sidebar/useResizeSidebar.ts +0 -112
- package/src/components/Sidebar/utils.test.ts +0 -178
- package/src/components/Sidebar/utils.ts +0 -70
- package/src/components/Skeleton/Skeleton.stories.tsx +0 -106
- package/src/components/Skeleton/Skeleton.tsx +0 -77
- package/src/components/Skeleton/SkeletonList.stories.tsx +0 -11
- package/src/components/Skeleton/SkeletonList.tsx +0 -65
- package/src/components/Slider/Slider.stories.tsx +0 -99
- package/src/components/Slider/Slider.tsx +0 -85
- package/src/components/Slider/SliderThumb.tsx +0 -57
- package/src/components/Slider/SliderTrack.tsx +0 -49
- package/src/components/Slider/index.ts +0 -1
- package/src/components/Slider/useInteracting.test.ts +0 -159
- package/src/components/Slider/useInteracting.ts +0 -64
- package/src/components/Switch/Switch.stories.tsx +0 -177
- package/src/components/Switch/Switch.tsx +0 -58
- package/src/components/Switch/index.ts +0 -1
- package/src/components/Switch/styles.ts +0 -173
- package/src/components/Table/Table.stories.tsx +0 -328
- package/src/components/Table/Table.tsx +0 -68
- package/src/components/Table/TableBody.tsx +0 -22
- package/src/components/Table/TableCell.tsx +0 -7
- package/src/components/Table/TableFooter.tsx +0 -15
- package/src/components/Table/TableHead.tsx +0 -15
- package/src/components/Table/TableHeader.tsx +0 -20
- package/src/components/Table/TableRow.tsx +0 -11
- package/src/components/Table/index.ts +0 -1
- package/src/components/Tabs.stories.tsx +0 -123
- package/src/components/Tabs.tsx +0 -134
- package/src/components/ThemeProvider/AIGradientSvg.tsx +0 -18
- package/src/components/ThemeProvider/ThemeProvider.tsx +0 -25
- package/src/components/ThemeProvider/index.ts +0 -1
- package/src/components/TimePicker/TimePicker.tsx +0 -95
- package/src/components/TimePicker/TimePickerButton.tsx +0 -39
- package/src/components/TimePicker/index.ts +0 -1
- package/src/components/TimePicker/utils.ts +0 -31
- package/src/components/Timeline/Timeline.stories.tsx +0 -246
- package/src/components/Timeline/Timeline.tsx +0 -35
- package/src/components/Timeline/TimelineConnector.tsx +0 -158
- package/src/components/Timeline/TimelineContent.tsx +0 -18
- package/src/components/Timeline/TimelineItem.tsx +0 -14
- package/src/components/Timeline/index.ts +0 -1
- package/src/components/Timeline/useLastLineHeight.ts +0 -36
- package/src/components/Toast/Toast.stories.tsx +0 -178
- package/src/components/Toast/ToastAction.tsx +0 -40
- package/src/components/Toast/ToastDescription.tsx +0 -28
- package/src/components/Toast/ToastDismiss.tsx +0 -36
- package/src/components/Toast/ToastDuration.tsx +0 -43
- package/src/components/Toast/ToastRoot.tsx +0 -135
- package/src/components/Toast/ToastTitle.tsx +0 -33
- package/src/components/Toast/Toaster.tsx +0 -25
- package/src/components/Toast/index.ts +0 -3
- package/src/components/Toast/toast.tsx +0 -94
- package/src/components/Toast/useNotification.tsx +0 -33
- package/src/components/Toggle/Toggle.stories.tsx +0 -67
- package/src/components/Toggle/Toggle.tsx +0 -202
- package/src/components/Toggle/index.ts +0 -1
- package/src/components/ToggleGroup/ToggleGroup.stories.tsx +0 -60
- package/src/components/ToggleGroup/ToggleGroup.tsx +0 -99
- package/src/components/ToggleGroup/index.ts +0 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +0 -82
- package/src/components/Tooltip/Tooltip.tsx +0 -110
- package/src/components/Tooltip/TooltipContent.tsx +0 -90
- package/src/components/Tooltip/TooltipRoot.tsx +0 -12
- package/src/components/Tooltip/TooltipTrigger.tsx +0 -42
- package/src/components/Tooltip/index.ts +0 -1
- package/src/components/Truncated.stories.tsx +0 -72
- package/src/components/Truncated.tsx +0 -78
- package/src/components/ZoomableSvg/ZoomableSvg.stories.tsx +0 -53
- package/src/components/ZoomableSvg/ZoomableSvg.tsx +0 -200
- package/src/components/ZoomableSvg/index.ts +0 -1
- package/src/constants/keyCodes.ts +0 -5
- package/src/docs/Colors.mdx +0 -19
- package/src/docs/Spacing.mdx +0 -35
- package/src/docs/Typography.mdx +0 -63
- package/src/docs/components/Typeset.tsx +0 -35
- package/src/hooks/useAutosizeInput.stories.tsx +0 -142
- package/src/hooks/useAutosizeInput.test.tsx +0 -77
- package/src/hooks/useAutosizeInput.tsx +0 -107
- package/src/hooks/useElement.ts +0 -16
- package/src/hooks/useScrollbarPosition.ts +0 -68
- package/src/icon-names.ts +0 -20
- package/src/icons/Keboola.tsx +0 -28
- package/src/icons/icons.stories.tsx +0 -174
- package/src/icons/index.ts +0 -188
- package/src/index.ts +0 -90
- package/src/patterns/AlertWithAction.stories.tsx +0 -30
- package/src/patterns/CardWithEmptyState.stories.tsx +0 -66
- package/src/patterns/ConfirmDialog.stories.tsx +0 -72
- package/src/patterns/CreatableMultiCombobox.stories.tsx +0 -33
- package/src/patterns/DataCardWithSkeleton.stories.tsx +0 -48
- package/src/patterns/DisabledButtonTooltip.stories.tsx +0 -30
- package/src/patterns/FilterToolbar.stories.tsx +0 -275
- package/src/patterns/InfoTooltip.stories.tsx +0 -56
- package/src/patterns/ListDetail.stories.tsx +0 -65
- package/src/patterns/ModalForm.stories.tsx +0 -59
- package/src/patterns/PageHeaderTabs.stories.tsx +0 -48
- package/src/utils/classNames.test.ts +0 -16
- package/src/utils/classNames.ts +0 -27
- package/src/utils/copyToClipboard.ts +0 -3
- package/src/utils/createChangeInputEvent.ts +0 -28
- package/src/utils/createPrefixedString.ts +0 -2
- package/src/utils/debounce.test.ts +0 -63
- package/src/utils/debounce.ts +0 -17
- package/src/utils/decorators.tsx +0 -16
- package/src/utils/escapeStringRegexp.ts +0 -4
- package/src/utils/index.ts +0 -11
- package/src/utils/isMac.ts +0 -26
- package/src/utils/legacyIcon.tsx +0 -28
- package/src/utils/mergeRefs.ts +0 -23
- package/src/utils/noop.ts +0 -1
- package/src/utils/useSHA256.ts +0 -21
- package/src/vite-env.d.ts +0 -1
package/dist/markdown-editor.cjs
CHANGED
|
@@ -6,11 +6,8 @@ var reactTooltip = require('@radix-ui/react-tooltip');
|
|
|
6
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var react = require('react');
|
|
9
|
-
var
|
|
10
|
-
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
11
|
-
require('@awesome.me/kit-be8bcf7e5e/icons');
|
|
9
|
+
var lucide_react_star = require('lucide-react');
|
|
12
10
|
var reactSlot = require('@radix-ui/react-slot');
|
|
13
|
-
var design = require('@keboola/design');
|
|
14
11
|
var beautifulMermaid = require('beautiful-mermaid');
|
|
15
12
|
var colors = require('@keboola/tailwind-config/colors');
|
|
16
13
|
var code = require('@lexical/code');
|
|
@@ -40,7 +37,6 @@ var utils = require('@lexical/utils');
|
|
|
40
37
|
var DropdownMenuPrimitive3 = require('@radix-ui/react-dropdown-menu');
|
|
41
38
|
var ScrollAreaPrimitive2 = require('@radix-ui/react-scroll-area');
|
|
42
39
|
var TextareaAutosize = require('react-textarea-autosize');
|
|
43
|
-
var icons = require('@keboola/design/icons');
|
|
44
40
|
var RLabel = require('@radix-ui/react-label');
|
|
45
41
|
|
|
46
42
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -63,6 +59,7 @@ function _interopNamespace(e) {
|
|
|
63
59
|
return Object.freeze(n);
|
|
64
60
|
}
|
|
65
61
|
|
|
62
|
+
var lucide_react_star__namespace = /*#__PURE__*/_interopNamespace(lucide_react_star);
|
|
66
63
|
var colors__default = /*#__PURE__*/_interopDefault(colors);
|
|
67
64
|
var DropdownMenuPrimitive3__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive3);
|
|
68
65
|
var ScrollAreaPrimitive2__namespace = /*#__PURE__*/_interopNamespace(ScrollAreaPrimitive2);
|
|
@@ -70,7 +67,9 @@ var TextareaAutosize__default = /*#__PURE__*/_interopDefault(TextareaAutosize);
|
|
|
70
67
|
var RLabel__namespace = /*#__PURE__*/_interopNamespace(RLabel);
|
|
71
68
|
|
|
72
69
|
var __defProp = Object.defineProperty;
|
|
70
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
73
71
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
72
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
74
73
|
var __esm = (fn, res) => function __init() {
|
|
75
74
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
76
75
|
};
|
|
@@ -78,6 +77,15 @@ var __export = (target, all) => {
|
|
|
78
77
|
for (var name in all)
|
|
79
78
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
80
79
|
};
|
|
80
|
+
var __copyProps = (to, from, except, desc) => {
|
|
81
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
82
|
+
for (let key of __getOwnPropNames(from))
|
|
83
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
84
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
85
|
+
}
|
|
86
|
+
return to;
|
|
87
|
+
};
|
|
88
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget);
|
|
81
89
|
var twMerge, cn;
|
|
82
90
|
var init_classNames = __esm({
|
|
83
91
|
"src/utils/classNames.ts"() {
|
|
@@ -247,7 +255,7 @@ var init_TooltipTrigger = __esm({
|
|
|
247
255
|
if (keepOpenOnClick) event.preventDefault();
|
|
248
256
|
onClick?.(event);
|
|
249
257
|
};
|
|
250
|
-
const
|
|
258
|
+
const handlePointerDown = (event) => {
|
|
251
259
|
if (keepOpenOnClick) event.preventDefault();
|
|
252
260
|
onPointerDown?.(event);
|
|
253
261
|
};
|
|
@@ -259,8 +267,16 @@ var init_TooltipTrigger = __esm({
|
|
|
259
267
|
ref,
|
|
260
268
|
className: cn("tailwindcss-preflight", className),
|
|
261
269
|
onClick: handleClick,
|
|
262
|
-
onPointerDown:
|
|
263
|
-
children: asChild ? children :
|
|
270
|
+
onPointerDown: handlePointerDown,
|
|
271
|
+
children: asChild ? children : (
|
|
272
|
+
// Default-mode trigger wraps children in a span so Radix has a
|
|
273
|
+
// single DOM element to attach handlers to. `tailwindcss-preflight`
|
|
274
|
+
// (merged in via Slot) activates Tailwind's preflight inside the
|
|
275
|
+
// span, which sets `svg { display: block }` — without an inline-flex
|
|
276
|
+
// container that would stack any bare Lucide icon onto its own
|
|
277
|
+
// line. `tw-inline-flex tw-items-center` keeps icon + text aligned.
|
|
278
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "tw-inline-flex tw-items-center", children })
|
|
279
|
+
)
|
|
264
280
|
}
|
|
265
281
|
);
|
|
266
282
|
};
|
|
@@ -406,6 +422,28 @@ var init_isMac = __esm({
|
|
|
406
422
|
getIsMac();
|
|
407
423
|
}
|
|
408
424
|
});
|
|
425
|
+
|
|
426
|
+
// src/utils/legacyIcon.tsx
|
|
427
|
+
var isFAIconValue, registeredRenderer, warnedOnce, renderLegacyIcon;
|
|
428
|
+
var init_legacyIcon = __esm({
|
|
429
|
+
"src/utils/legacyIcon.tsx"() {
|
|
430
|
+
isFAIconValue = (value) => typeof value === "string" || Array.isArray(value) && value.length === 2 && typeof value[0] === "string" && typeof value[1] === "string";
|
|
431
|
+
registeredRenderer = null;
|
|
432
|
+
warnedOnce = false;
|
|
433
|
+
renderLegacyIcon = (value) => {
|
|
434
|
+
if (!isFAIconValue(value)) return value;
|
|
435
|
+
if (registeredRenderer) return registeredRenderer(value);
|
|
436
|
+
if (!warnedOnce) {
|
|
437
|
+
warnedOnce = true;
|
|
438
|
+
console.warn(
|
|
439
|
+
"[@keboola/design] renderLegacyIcon received a legacy FontAwesome icon value but no renderer is registered. Call setLegacyIconRenderer at app boot. Returning null.",
|
|
440
|
+
value
|
|
441
|
+
);
|
|
442
|
+
}
|
|
443
|
+
return null;
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
});
|
|
409
447
|
var init_useSHA256 = __esm({
|
|
410
448
|
"src/utils/useSHA256.ts"() {
|
|
411
449
|
}
|
|
@@ -472,19 +510,42 @@ var init_Skeleton = __esm({
|
|
|
472
510
|
};
|
|
473
511
|
}
|
|
474
512
|
});
|
|
475
|
-
var
|
|
476
|
-
|
|
513
|
+
var Keboola;
|
|
514
|
+
var init_Keboola = __esm({
|
|
515
|
+
"src/icons/Keboola.tsx"() {
|
|
516
|
+
init_utils();
|
|
517
|
+
Keboola = react.forwardRef(
|
|
518
|
+
({ size = 24, color = "currentColor", className, children, ...rest }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
519
|
+
"svg",
|
|
520
|
+
{
|
|
521
|
+
ref,
|
|
522
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
523
|
+
width: size,
|
|
524
|
+
height: size,
|
|
525
|
+
viewBox: "0 0 300 512",
|
|
526
|
+
fill: color,
|
|
527
|
+
className: cn("lucide", className),
|
|
528
|
+
...rest,
|
|
529
|
+
children: [
|
|
530
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M152 320C79.7 320 24.5 233.9 24.5 124.7C24.5 15.6 70.5 0 152 0s123.6 15.6 123.6 124.7C275.5 233.9 217.7 320 152 320zm-8.7-50.5c0-11.2-9.5-20.3-21.2-20.3s-21.2 9.1-21.2 20.3c0 11.2 9.5 20.3 21.2 20.3s21.2-9.1 21.2-20.3zm55.7 0c0-11.2-9.5-20.3-21.2-20.3s-21.2 9.1-21.2 20.3c0 11.2 9.5 20.3 21.2 20.3s21.2-9.1 21.2-20.3zm68.9 115.1c10.2 9.3 20.2 20.5 29 35c5.9 9.7 2.6 22.1-7.5 27.8c-3.4 1.9-7.1 2.8-10.7 2.8c-7.2 0-14.3-3.6-18.3-10c-6.8-11.1-13.8-18.9-21.7-26.1c-7.3-6.7-15.6-12.7-24.9-19.5c-.7-.5-1.4-1-2.1-1.5c-5-3.6-10-6.8-14.9-9.4c.6 1 1.2 2.1 1.8 3.2c14.4 26.4 29.2 63.1 29.2 104.9c0 11.2-9.5 20.3-21.2 20.3c-11.7 0-21.2-9.1-21.2-20.3c.1-31.8-11.6-62.3-23.8-84.9c-4-7.4-8-13.9-11.6-19.3c-3.4 5.2-7.2 11.3-11 18.3c-12.5 22.7-24.5 53.8-24.4 86c0 11.2-9.5 20.3-21.2 20.3s-21.2-9.1-21.2-20.3c.1-41.8 14.9-78.4 29.2-104.9c.6-1.1 1.2-2.1 1.8-3.2c-5 2.7-9.9 5.8-14.9 9.4c-.6 .5-1.3 .9-1.9 1.4c-9.5 6.9-17.8 12.9-25.1 19.7c-7.9 7.2-14.9 15.1-21.7 26.1c-5.9 9.7-18.9 12.9-29 7.2C.5 441.8-2.9 429.3 3.1 419.7c8.9-14.4 18.8-25.7 29-35c9.2-8.4 18.5-15.1 27.6-21.7c1-.7 2-1.4 3-2.2c4.7-3.5 9.6-6.7 14.6-9.6c-5-2.9-9.8-6.1-14.6-9.6C39.8 325 19.9 302.5 3.1 275.1c-5.9-9.7-2.6-22.1 7.5-27.8c10.1-5.7 23.1-2.5 29 7.2c14.6 23.7 31.1 42 48.7 54.9c18.9 13.7 37.4 20.5 56.5 21.5c1.7-.1 3.5-.1 5.2-.1c1.8 0 3.5 .1 5.2 .1c0 0 0 0 0 0c19.1-1.1 37.6-7.9 56.5-21.5c17.6-12.8 34.2-31.2 48.7-54.9c6-9.7 18.9-12.9 29-7.2c10.1 5.7 13.4 18.1 7.5 27.8c-16.8 27.4-36.7 49.9-59.6 66.6c-4.7 3.5-9.6 6.7-14.5 9.6c4.9 2.9 9.8 6.1 14.5 9.6c.9 .7 1.8 1.3 2.7 2c9.2 6.7 18.5 13.5 27.9 22z" }),
|
|
531
|
+
children
|
|
532
|
+
]
|
|
533
|
+
}
|
|
534
|
+
)
|
|
535
|
+
);
|
|
536
|
+
Keboola.displayName = "Keboola";
|
|
477
537
|
}
|
|
478
538
|
});
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
539
|
+
|
|
540
|
+
// src/icons/index.ts
|
|
541
|
+
var icons_exports = {};
|
|
542
|
+
__export(icons_exports, {
|
|
543
|
+
Keboola: () => Keboola
|
|
484
544
|
});
|
|
485
|
-
var
|
|
486
|
-
"src/
|
|
487
|
-
|
|
545
|
+
var init_icons = __esm({
|
|
546
|
+
"src/icons/index.ts"() {
|
|
547
|
+
__reExport(icons_exports, lucide_react_star__namespace);
|
|
548
|
+
init_Keboola();
|
|
488
549
|
}
|
|
489
550
|
});
|
|
490
551
|
var variants, argoVariants;
|
|
@@ -771,7 +832,6 @@ var init_Button = __esm({
|
|
|
771
832
|
"src/components/Button/Button.tsx"() {
|
|
772
833
|
init_icons();
|
|
773
834
|
init_utils();
|
|
774
|
-
init_Icon2();
|
|
775
835
|
init_styles();
|
|
776
836
|
Button = ({
|
|
777
837
|
ref,
|
|
@@ -786,10 +846,10 @@ var init_Button = __esm({
|
|
|
786
846
|
variant = "primary",
|
|
787
847
|
size = "medium",
|
|
788
848
|
block = false,
|
|
789
|
-
icon,
|
|
790
849
|
...buttonProps
|
|
791
850
|
}) => {
|
|
792
851
|
const Comp = asChild ? reactSlot.Root : "button";
|
|
852
|
+
const isIconOnly = String(size).startsWith("icon");
|
|
793
853
|
const classNames = argo ? argoVariants({ variant, size, block, className }) : variants({
|
|
794
854
|
size,
|
|
795
855
|
variant,
|
|
@@ -812,14 +872,13 @@ var init_Button = __esm({
|
|
|
812
872
|
disabled,
|
|
813
873
|
"aria-disabled": disabled,
|
|
814
874
|
"data-variant": variant,
|
|
815
|
-
"data-icon-only":
|
|
875
|
+
"data-icon-only": isIconOnly,
|
|
816
876
|
type,
|
|
817
877
|
onClick: handleClick,
|
|
818
878
|
className: cn(classNames),
|
|
819
879
|
children: [
|
|
820
|
-
isLoading && /* @__PURE__ */ jsxRuntime.jsx(
|
|
821
|
-
|
|
822
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children })
|
|
880
|
+
isLoading && /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Loader2, { className: "tw-size-4 tw-shrink-0 tw-animate-spin" }),
|
|
881
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children: isLoading && isIconOnly ? null : children })
|
|
823
882
|
]
|
|
824
883
|
}
|
|
825
884
|
);
|
|
@@ -841,7 +900,7 @@ var init_ButtonInline = __esm({
|
|
|
841
900
|
"disabled:tw-no-underline",
|
|
842
901
|
"[&_svg]:disabled:tw-text-neutral-400",
|
|
843
902
|
// Default size for nested Lucide icons; callers can override on the icon.
|
|
844
|
-
"[&_svg:not([class*='tw-size-'])]:tw-size-4",
|
|
903
|
+
"[&_svg.lucide:not([class*='tw-size-'])]:tw-size-4",
|
|
845
904
|
"[&_svg]:tw-shrink-0"
|
|
846
905
|
],
|
|
847
906
|
{
|
|
@@ -883,6 +942,7 @@ var Clipboard;
|
|
|
883
942
|
var init_Clipboard = __esm({
|
|
884
943
|
"src/components/Clipboard/Clipboard.tsx"() {
|
|
885
944
|
init_utils();
|
|
945
|
+
init_Tooltip2();
|
|
886
946
|
Clipboard = ({
|
|
887
947
|
ref,
|
|
888
948
|
text: textProp,
|
|
@@ -922,21 +982,21 @@ var init_Clipboard = __esm({
|
|
|
922
982
|
return tooltip;
|
|
923
983
|
})();
|
|
924
984
|
const tooltipVariant = state === "ready" && !!text ? tooltipVariantProp : "action";
|
|
925
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
985
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Tooltip.Root, { open: isTooltipOpen, onOpenChange: handleOnOpenChange, children: [
|
|
926
986
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
927
|
-
|
|
987
|
+
Tooltip.Trigger,
|
|
928
988
|
{
|
|
929
989
|
...restButtonProps,
|
|
930
990
|
asChild,
|
|
931
991
|
keepOpenOnClick: true,
|
|
932
992
|
onClick: handleOnClick,
|
|
933
|
-
className:
|
|
993
|
+
className: cn("tw-cursor-pointer", className),
|
|
934
994
|
ref,
|
|
935
995
|
children: children ?? text
|
|
936
996
|
}
|
|
937
997
|
),
|
|
938
998
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
939
|
-
|
|
999
|
+
Tooltip.Content,
|
|
940
1000
|
{
|
|
941
1001
|
keepOpenOnPointerDownOutside: true,
|
|
942
1002
|
placement: tooltipPlacement,
|
|
@@ -961,7 +1021,7 @@ var init_ClipboardButton = __esm({
|
|
|
961
1021
|
init_Button2();
|
|
962
1022
|
init_Clipboard2();
|
|
963
1023
|
init_icons();
|
|
964
|
-
DEFAULT_ICON = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1024
|
+
DEFAULT_ICON = /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Copy, {});
|
|
965
1025
|
ClipboardButton = ({
|
|
966
1026
|
// clipboard props
|
|
967
1027
|
text,
|
|
@@ -1140,7 +1200,7 @@ var init_ZoomableSvg = __esm({
|
|
|
1140
1200
|
"aria-label": isFullscreen ? "Exit fullscreen" : "Fullscreen",
|
|
1141
1201
|
onClick: () => setIsFullscreen((f) => !f),
|
|
1142
1202
|
argo: true,
|
|
1143
|
-
children: isFullscreen ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1203
|
+
children: isFullscreen ? /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Minimize2, { className: "tw-size-4" }) : /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Maximize2, { className: "tw-size-4" })
|
|
1144
1204
|
}
|
|
1145
1205
|
)
|
|
1146
1206
|
}
|
|
@@ -1583,11 +1643,7 @@ init_utils();
|
|
|
1583
1643
|
// src/components/Toast/ToastRoot.tsx
|
|
1584
1644
|
init_icons();
|
|
1585
1645
|
init_utils();
|
|
1586
|
-
|
|
1587
|
-
// src/utils/legacyIcon.tsx
|
|
1588
|
-
init_Icon2();
|
|
1589
|
-
var isFAIconValue = (value) => typeof value === "string" || Array.isArray(value) && value.length === 2 && typeof value[0] === "string" && typeof value[1] === "string";
|
|
1590
|
-
var renderLegacyIcon = (value) => isFAIconValue(value) ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: value }) : value;
|
|
1646
|
+
init_legacyIcon();
|
|
1591
1647
|
|
|
1592
1648
|
// src/components/Toast/ToastAction.tsx
|
|
1593
1649
|
init_utils();
|
|
@@ -1677,7 +1733,7 @@ var ToastDismiss = ({
|
|
|
1677
1733
|
type: "button",
|
|
1678
1734
|
...rest,
|
|
1679
1735
|
children: [
|
|
1680
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1736
|
+
/* @__PURE__ */ jsxRuntime.jsx(icons_exports.X, {}),
|
|
1681
1737
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "tw-sr-only", children: "Dismiss" })
|
|
1682
1738
|
]
|
|
1683
1739
|
}
|
|
@@ -1785,10 +1841,10 @@ var variants2 = classVarianceAuthority.cva(
|
|
|
1785
1841
|
}
|
|
1786
1842
|
);
|
|
1787
1843
|
var DEFAULT_VARIANT_ICON = {
|
|
1788
|
-
error: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1789
|
-
info: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1790
|
-
success: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1791
|
-
warning: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1844
|
+
error: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.AlertTriangle, {}),
|
|
1845
|
+
info: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Info, {}),
|
|
1846
|
+
success: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.CircleCheck, {}),
|
|
1847
|
+
warning: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.AlertCircle, {})
|
|
1792
1848
|
};
|
|
1793
1849
|
var ToastRoot = ({
|
|
1794
1850
|
id,
|
|
@@ -1801,7 +1857,7 @@ var ToastRoot = ({
|
|
|
1801
1857
|
icon: iconProp
|
|
1802
1858
|
}) => {
|
|
1803
1859
|
const icon = (() => {
|
|
1804
|
-
if (loading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1860
|
+
if (loading) return /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Loader2, { className: "tw-animate-spin" });
|
|
1805
1861
|
if (iconProp) return renderLegacyIcon(iconProp);
|
|
1806
1862
|
if (variant === "default" || variant === null) return null;
|
|
1807
1863
|
return DEFAULT_VARIANT_ICON[variant];
|
|
@@ -1819,6 +1875,7 @@ var ToastRoot = ({
|
|
|
1819
1875
|
"tw-inline-flex",
|
|
1820
1876
|
"tw-items-center",
|
|
1821
1877
|
"tw-justify-center",
|
|
1878
|
+
"tw-self-center",
|
|
1822
1879
|
// styles — container at 20px with no padding so the 20px Lucide
|
|
1823
1880
|
// glyph fills the slot (previous tw-size-4 + tw-p-1 clipped a
|
|
1824
1881
|
// 16px child into 8px of visible space)
|
|
@@ -2300,9 +2357,9 @@ var DropdownMenuItemIndicator = ({
|
|
|
2300
2357
|
...rest
|
|
2301
2358
|
}) => {
|
|
2302
2359
|
const IconComp = (() => {
|
|
2303
|
-
if (variant === "switch") return
|
|
2304
|
-
if (variant === "radio") return
|
|
2305
|
-
return
|
|
2360
|
+
if (variant === "switch") return icons_exports.ToggleRight;
|
|
2361
|
+
if (variant === "radio") return icons_exports.Circle;
|
|
2362
|
+
return icons_exports.Check;
|
|
2306
2363
|
})();
|
|
2307
2364
|
const forceMount = (() => {
|
|
2308
2365
|
if (forceMountProp) return true;
|
|
@@ -2423,7 +2480,7 @@ var DropdownMenuCheckboxItem = ({
|
|
|
2423
2480
|
...props
|
|
2424
2481
|
}) => {
|
|
2425
2482
|
const isAtStart = indicatorAlign === "start";
|
|
2426
|
-
const indicatorEle = isLoading ? /* @__PURE__ */ jsxRuntime.jsx(ItemIcon, { className: isAtStart ? "" : "tw-ml-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2483
|
+
const indicatorEle = isLoading ? /* @__PURE__ */ jsxRuntime.jsx(ItemIcon, { className: isAtStart ? "" : "tw-ml-auto", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Loader2, { className: "tw-animate-spin" }) }) : /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuItemIndicator, { variant: indicator, className: isAtStart ? "" : "tw-ml-auto" });
|
|
2427
2484
|
const handleSelect = (event) => {
|
|
2428
2485
|
if (!closeOnSelect) event.preventDefault();
|
|
2429
2486
|
onSelect?.(event);
|
|
@@ -2558,6 +2615,7 @@ var DropdownMenuContent = ({
|
|
|
2558
2615
|
// src/components/DropdownMenu/DropdownMenuItem.tsx
|
|
2559
2616
|
init_icons();
|
|
2560
2617
|
init_utils();
|
|
2618
|
+
init_legacyIcon();
|
|
2561
2619
|
var DropdownMenuItem = ({
|
|
2562
2620
|
ref,
|
|
2563
2621
|
className,
|
|
@@ -2573,7 +2631,7 @@ var DropdownMenuItem = ({
|
|
|
2573
2631
|
...props
|
|
2574
2632
|
}) => {
|
|
2575
2633
|
const Comp = asChild ? reactSlot.Root : "div";
|
|
2576
|
-
const adornment = isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2634
|
+
const adornment = isLoading ? /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Loader2, { className: "tw-animate-spin" }) : renderLegacyIcon(icon);
|
|
2577
2635
|
const handleOnSelect = (event) => {
|
|
2578
2636
|
if (asModalTrigger) event.preventDefault();
|
|
2579
2637
|
onSelect?.(event);
|
|
@@ -2675,6 +2733,7 @@ var DropdownMenuRadioGroup = ({
|
|
|
2675
2733
|
// src/components/DropdownMenu/DropdownMenuRadioGroup/DropdownMenuRadioItem.tsx
|
|
2676
2734
|
init_icons();
|
|
2677
2735
|
init_utils();
|
|
2736
|
+
init_legacyIcon();
|
|
2678
2737
|
var DropdownMenuRadioItem = ({
|
|
2679
2738
|
className,
|
|
2680
2739
|
children,
|
|
@@ -2688,7 +2747,7 @@ var DropdownMenuRadioItem = ({
|
|
|
2688
2747
|
...props
|
|
2689
2748
|
}) => {
|
|
2690
2749
|
const isAtStart = indicatorAlign === "start";
|
|
2691
|
-
const indicatorEle = isLoading ? /* @__PURE__ */ jsxRuntime.jsx(ItemIcon, { className: iconClassName, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2750
|
+
const indicatorEle = isLoading ? /* @__PURE__ */ jsxRuntime.jsx(ItemIcon, { className: iconClassName, children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Loader2, { className: "tw-animate-spin" }) }) : /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuItemIndicator, { variant: indicator });
|
|
2692
2751
|
const handleSelect = (event) => {
|
|
2693
2752
|
if (!closeOnSelect) event.preventDefault();
|
|
2694
2753
|
onSelect?.(event);
|
|
@@ -2765,7 +2824,7 @@ init_utils();
|
|
|
2765
2824
|
var DropdownMenuSubTrigger = ({ className, children, ...props }) => {
|
|
2766
2825
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuPrimitive3__namespace.SubTrigger, { className: cn(itemVariants, className), ...props, children: [
|
|
2767
2826
|
children,
|
|
2768
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2827
|
+
/* @__PURE__ */ jsxRuntime.jsx(icons_exports.ChevronRight, { className: "tw-ml-auto tw-size-5" })
|
|
2769
2828
|
] });
|
|
2770
2829
|
};
|
|
2771
2830
|
|
|
@@ -2810,10 +2869,10 @@ DropdownMenu.ItemDescription = DropdownMenuItemDescription;
|
|
|
2810
2869
|
// src/components/MarkdownEditor/plugins/toolbar/AlignmentDropdown.tsx
|
|
2811
2870
|
init_Tooltip2();
|
|
2812
2871
|
var ALIGNMENT_OPTIONS = [
|
|
2813
|
-
{ value: "left", label: "Left", icon:
|
|
2814
|
-
{ value: "center", label: "Center", icon:
|
|
2815
|
-
{ value: "right", label: "Right", icon:
|
|
2816
|
-
{ value: "justify", label: "Justify", icon:
|
|
2872
|
+
{ value: "left", label: "Left", icon: icons_exports.AlignLeft },
|
|
2873
|
+
{ value: "center", label: "Center", icon: icons_exports.AlignCenter },
|
|
2874
|
+
{ value: "right", label: "Right", icon: icons_exports.AlignRight },
|
|
2875
|
+
{ value: "justify", label: "Justify", icon: icons_exports.AlignJustify }
|
|
2817
2876
|
];
|
|
2818
2877
|
var ALIGNMENT_ICONS = Object.fromEntries(
|
|
2819
2878
|
ALIGNMENT_OPTIONS.map(({ value, icon }) => [value, icon])
|
|
@@ -2839,7 +2898,7 @@ var AlignmentDropdown = ({
|
|
|
2839
2898
|
editor.dispatchCommand(lexical.FORMAT_ELEMENT_COMMAND, align);
|
|
2840
2899
|
});
|
|
2841
2900
|
};
|
|
2842
|
-
const CurrentAlignmentIcon = ALIGNMENT_ICONS[alignment] ??
|
|
2901
|
+
const CurrentAlignmentIcon = ALIGNMENT_ICONS[alignment] ?? icons_exports.AlignLeft;
|
|
2843
2902
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { onOpenChange: handleOpenChange, children: [
|
|
2844
2903
|
/* @__PURE__ */ jsxRuntime.jsx(Tooltip, { tooltip: "Text alignment", placement: "top", triggerAsChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2845
2904
|
"button",
|
|
@@ -2851,7 +2910,7 @@ var AlignmentDropdown = ({
|
|
|
2851
2910
|
),
|
|
2852
2911
|
children: [
|
|
2853
2912
|
/* @__PURE__ */ jsxRuntime.jsx(CurrentAlignmentIcon, { className: "tw-size-4" }),
|
|
2854
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2913
|
+
/* @__PURE__ */ jsxRuntime.jsx(icons_exports.ChevronDown, { className: "tw-size-3" })
|
|
2855
2914
|
]
|
|
2856
2915
|
}
|
|
2857
2916
|
) }) }),
|
|
@@ -2878,14 +2937,14 @@ init_icons();
|
|
|
2878
2937
|
init_utils();
|
|
2879
2938
|
init_Tooltip2();
|
|
2880
2939
|
var BLOCK_TYPE_META = {
|
|
2881
|
-
paragraph: { label: "Normal", icon:
|
|
2882
|
-
h1: { label: "Heading 1", icon:
|
|
2883
|
-
h2: { label: "Heading 2", icon:
|
|
2884
|
-
h3: { label: "Heading 3", icon:
|
|
2885
|
-
bullet: { label: "Bullet List", icon:
|
|
2886
|
-
number: { label: "Numbered List", icon:
|
|
2887
|
-
quote: { label: "Quote", icon:
|
|
2888
|
-
code: { label: "Code Block", icon:
|
|
2940
|
+
paragraph: { label: "Normal", icon: icons_exports.Type, selectable: true },
|
|
2941
|
+
h1: { label: "Heading 1", icon: icons_exports.Heading1, selectable: true },
|
|
2942
|
+
h2: { label: "Heading 2", icon: icons_exports.Heading2, selectable: true },
|
|
2943
|
+
h3: { label: "Heading 3", icon: icons_exports.Heading3, selectable: true },
|
|
2944
|
+
bullet: { label: "Bullet List", icon: icons_exports.List, selectable: false },
|
|
2945
|
+
number: { label: "Numbered List", icon: icons_exports.ListOrdered, selectable: false },
|
|
2946
|
+
quote: { label: "Quote", icon: icons_exports.Quote, selectable: false },
|
|
2947
|
+
code: { label: "Code Block", icon: icons_exports.SquareCode, selectable: false }
|
|
2889
2948
|
};
|
|
2890
2949
|
var BLOCK_TYPE_OPTIONS = Object.entries(BLOCK_TYPE_META).filter(([, meta]) => meta.selectable).map(([value, { label, icon }]) => ({ value, label, icon }));
|
|
2891
2950
|
var isBlockType = (value) => Object.prototype.hasOwnProperty.call(BLOCK_TYPE_META, value);
|
|
@@ -2895,7 +2954,7 @@ var BlockTypeDropdown = ({
|
|
|
2895
2954
|
}) => {
|
|
2896
2955
|
const savedSelectionRef = react.useRef(null);
|
|
2897
2956
|
const currentMeta = isBlockType(blockType) ? BLOCK_TYPE_META[blockType] : null;
|
|
2898
|
-
const CurrentBlockIcon = currentMeta?.icon ??
|
|
2957
|
+
const CurrentBlockIcon = currentMeta?.icon ?? icons_exports.Type;
|
|
2899
2958
|
const handleOpenChange = (open) => {
|
|
2900
2959
|
if (open) {
|
|
2901
2960
|
editor.getEditorState().read(() => {
|
|
@@ -2938,7 +2997,7 @@ var BlockTypeDropdown = ({
|
|
|
2938
2997
|
children: [
|
|
2939
2998
|
/* @__PURE__ */ jsxRuntime.jsx(CurrentBlockIcon, { className: "tw-size-4" }),
|
|
2940
2999
|
currentMeta?.label ?? "Normal",
|
|
2941
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3000
|
+
/* @__PURE__ */ jsxRuntime.jsx(icons_exports.ChevronDown, { className: "tw-size-3" })
|
|
2942
3001
|
]
|
|
2943
3002
|
}
|
|
2944
3003
|
) }) }),
|
|
@@ -3048,7 +3107,7 @@ var addonVariants = classVarianceAuthority.cva(
|
|
|
3048
3107
|
"tw-items-center",
|
|
3049
3108
|
"tw-gap-1",
|
|
3050
3109
|
// Default size for nested Lucide icons in prefix/suffix slots; callers can override on the icon.
|
|
3051
|
-
"[&_svg:not([class*='tw-size-'])]:tw-size-4",
|
|
3110
|
+
"[&_svg.lucide:not([class*='tw-size-'])]:tw-size-4",
|
|
3052
3111
|
"[&_svg]:tw-shrink-0"
|
|
3053
3112
|
],
|
|
3054
3113
|
{
|
|
@@ -3410,6 +3469,7 @@ InputGroup.Text = InputGroupText;
|
|
|
3410
3469
|
// src/blocks/ColorInput/ColorInput.tsx
|
|
3411
3470
|
init_icons();
|
|
3412
3471
|
init_utils();
|
|
3472
|
+
init_icons();
|
|
3413
3473
|
|
|
3414
3474
|
// src/blocks/ColorInput/utils.ts
|
|
3415
3475
|
var HEX_CHARSET = /^[0-9a-fA-F]+$/;
|
|
@@ -3474,7 +3534,7 @@ var ColorPicker = ({ value, disabled, readOnly, ...props }) => {
|
|
|
3474
3534
|
disabled: disabled || readOnly,
|
|
3475
3535
|
onClick: handleOpenPicker,
|
|
3476
3536
|
"aria-label": "Pick color",
|
|
3477
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3537
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Pipette, { className: "tw-size-4" })
|
|
3478
3538
|
}
|
|
3479
3539
|
)
|
|
3480
3540
|
] });
|
|
@@ -3593,7 +3653,7 @@ var ColorInput = ({
|
|
|
3593
3653
|
onMouseDown: (event) => event.preventDefault(),
|
|
3594
3654
|
onClick: handleClear,
|
|
3595
3655
|
"aria-label": "Clear color",
|
|
3596
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3656
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.X, { className: "tw-size-4" })
|
|
3597
3657
|
}
|
|
3598
3658
|
),
|
|
3599
3659
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3828,7 +3888,7 @@ var Input = ({
|
|
|
3828
3888
|
onMouseDown: (e) => e.preventDefault(),
|
|
3829
3889
|
onClick: handleClear,
|
|
3830
3890
|
"data-testid": testId.clearButton,
|
|
3831
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3891
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.X, { className: "tw-size-4" })
|
|
3832
3892
|
}
|
|
3833
3893
|
),
|
|
3834
3894
|
rightSuffix && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4008,12 +4068,12 @@ var LinkPanel = ({ editor, isLink }) => {
|
|
|
4008
4068
|
active: true,
|
|
4009
4069
|
onClick: () => editor.dispatchCommand(link.TOGGLE_LINK_COMMAND, null),
|
|
4010
4070
|
tooltip: "Remove Link",
|
|
4011
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4071
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Link, { className: "tw-size-4" })
|
|
4012
4072
|
}
|
|
4013
4073
|
);
|
|
4014
4074
|
}
|
|
4015
4075
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tw-relative", children: [
|
|
4016
|
-
/* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { active: open, onClick: handleOpen, tooltip: "Insert Link", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4076
|
+
/* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { active: open, onClick: handleOpen, tooltip: "Insert Link", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Link, { className: "tw-size-4" }) }),
|
|
4017
4077
|
open && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4018
4078
|
"div",
|
|
4019
4079
|
{
|
|
@@ -4177,7 +4237,7 @@ var ToolbarPlugin = () => {
|
|
|
4177
4237
|
active: isBold,
|
|
4178
4238
|
onClick: () => editor.dispatchCommand(lexical.FORMAT_TEXT_COMMAND, "bold"),
|
|
4179
4239
|
tooltip: "Bold (Ctrl+B)",
|
|
4180
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4240
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Bold, { className: "tw-size-4" })
|
|
4181
4241
|
}
|
|
4182
4242
|
),
|
|
4183
4243
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4186,7 +4246,7 @@ var ToolbarPlugin = () => {
|
|
|
4186
4246
|
active: isItalic,
|
|
4187
4247
|
onClick: () => editor.dispatchCommand(lexical.FORMAT_TEXT_COMMAND, "italic"),
|
|
4188
4248
|
tooltip: "Italic (Ctrl+I)",
|
|
4189
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4249
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Italic, { className: "tw-size-4" })
|
|
4190
4250
|
}
|
|
4191
4251
|
),
|
|
4192
4252
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4195,7 +4255,7 @@ var ToolbarPlugin = () => {
|
|
|
4195
4255
|
active: isUnderline,
|
|
4196
4256
|
onClick: () => editor.dispatchCommand(lexical.FORMAT_TEXT_COMMAND, "underline"),
|
|
4197
4257
|
tooltip: "Underline (Ctrl+U)",
|
|
4198
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4258
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Underline, { className: "tw-size-4" })
|
|
4199
4259
|
}
|
|
4200
4260
|
),
|
|
4201
4261
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4204,7 +4264,7 @@ var ToolbarPlugin = () => {
|
|
|
4204
4264
|
active: isStrikethrough,
|
|
4205
4265
|
onClick: () => editor.dispatchCommand(lexical.FORMAT_TEXT_COMMAND, "strikethrough"),
|
|
4206
4266
|
tooltip: "Strikethrough",
|
|
4207
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4267
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Strikethrough, { className: "tw-size-4" })
|
|
4208
4268
|
}
|
|
4209
4269
|
),
|
|
4210
4270
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4213,7 +4273,7 @@ var ToolbarPlugin = () => {
|
|
|
4213
4273
|
active: isCode,
|
|
4214
4274
|
onClick: () => editor.dispatchCommand(lexical.FORMAT_TEXT_COMMAND, "code"),
|
|
4215
4275
|
tooltip: "Inline Code",
|
|
4216
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4276
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Code, { className: "tw-size-4" })
|
|
4217
4277
|
}
|
|
4218
4278
|
),
|
|
4219
4279
|
/* @__PURE__ */ jsxRuntime.jsx(ToolbarDivider, {}),
|
|
@@ -4231,7 +4291,7 @@ var ToolbarPlugin = () => {
|
|
|
4231
4291
|
}
|
|
4232
4292
|
},
|
|
4233
4293
|
tooltip: "Bullet List",
|
|
4234
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4294
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.List, { className: "tw-size-4" })
|
|
4235
4295
|
}
|
|
4236
4296
|
),
|
|
4237
4297
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4246,7 +4306,7 @@ var ToolbarPlugin = () => {
|
|
|
4246
4306
|
}
|
|
4247
4307
|
},
|
|
4248
4308
|
tooltip: "Numbered List",
|
|
4249
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4309
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.ListOrdered, { className: "tw-size-4" })
|
|
4250
4310
|
}
|
|
4251
4311
|
),
|
|
4252
4312
|
/* @__PURE__ */ jsxRuntime.jsx(ToolbarDivider, {}),
|
|
@@ -4268,7 +4328,7 @@ var ToolbarPlugin = () => {
|
|
|
4268
4328
|
});
|
|
4269
4329
|
},
|
|
4270
4330
|
tooltip: "Quote",
|
|
4271
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4331
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Quote, { className: "tw-size-4" })
|
|
4272
4332
|
}
|
|
4273
4333
|
),
|
|
4274
4334
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4287,7 +4347,7 @@ var ToolbarPlugin = () => {
|
|
|
4287
4347
|
});
|
|
4288
4348
|
},
|
|
4289
4349
|
tooltip: "Code Block",
|
|
4290
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4350
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.SquareCode, { className: "tw-size-4" })
|
|
4291
4351
|
}
|
|
4292
4352
|
)
|
|
4293
4353
|
]
|
|
@@ -4356,10 +4416,13 @@ var MarkdownEditor = ({
|
|
|
4356
4416
|
compact = false,
|
|
4357
4417
|
saveOnBlur = false,
|
|
4358
4418
|
singleLine = false,
|
|
4359
|
-
clampDisplay = false
|
|
4419
|
+
clampDisplay = false,
|
|
4420
|
+
minRows
|
|
4360
4421
|
}) => {
|
|
4361
4422
|
const editable = !readOnly && !disabled;
|
|
4362
4423
|
const transformers = singleLine ? SINGLE_LINE_TRANSFORMERS : CUSTOM_TRANSFORMERS;
|
|
4424
|
+
const useDefaultMinHeight = !compact && minRows === void 0;
|
|
4425
|
+
const customMinHeight = !compact && minRows !== void 0 ? { minHeight: `${minRows * 1.75}em` } : void 0;
|
|
4363
4426
|
const [initialConfig] = react.useState(() => ({
|
|
4364
4427
|
namespace: "MarkdownEditor",
|
|
4365
4428
|
theme: editorTheme,
|
|
@@ -4418,7 +4481,8 @@ var MarkdownEditor = ({
|
|
|
4418
4481
|
contentEditable: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4419
4482
|
LexicalContentEditable.ContentEditable,
|
|
4420
4483
|
{
|
|
4421
|
-
className: cn("tw-outline-none",
|
|
4484
|
+
className: cn("tw-outline-none", useDefaultMinHeight && "tw-min-h-[100px]"),
|
|
4485
|
+
style: customMinHeight,
|
|
4422
4486
|
"aria-placeholder": placeholder ?? "",
|
|
4423
4487
|
placeholder: placeholder ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4424
4488
|
"div",
|