@keboola/design 2.0.0 → 2.1.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 +57 -1
- package/dist/icon-names.d.cts +7 -0
- package/dist/icon-names.d.ts +7 -0
- package/dist/icons.cjs +12 -0
- package/dist/icons.d.cts +6 -0
- package/dist/icons.d.ts +6 -0
- package/dist/icons.js +1 -1
- package/dist/index.cjs +367 -135
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10184 -0
- package/dist/index.d.ts +10184 -0
- package/dist/index.js +392 -173
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +69 -49
- 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 +69 -49
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.cjs +50 -23
- 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 +50 -23
- package/dist/mermaid.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +83 -12
- 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 -147
- 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/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 -290
- 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 -154
- 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 -186
- package/src/index.ts +0 -89
- 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/index.js
CHANGED
|
@@ -1,46 +1,44 @@
|
|
|
1
1
|
import { Slot, Root as Root$1, Slottable } from '@radix-ui/react-slot';
|
|
2
2
|
export { Slot } from '@radix-ui/react-slot';
|
|
3
|
-
import { ChevronLeft, Plus,
|
|
3
|
+
import { ChevronLeft, ChevronDown, Plus, X, Minus, Loader2, Check, ArrowBigUpDash, EyeOff, Eye, ChevronUp, Calendar, Clock, Sparkles, Search, Copy, CircleCheck, AlertTriangle, Send, ChevronRight, FileText, Minimize2, Maximize2, Circle, Ellipsis, Pipette, XCircle, Info, ChevronsRight, ChevronsLeft, CirclePause, Play, AlertCircle, ToggleRight } from 'lucide-react';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { extendTailwindMerge } from 'tailwind-merge';
|
|
6
|
-
import { createContext, useRef, useEffect, useMemo, useState,
|
|
7
|
-
import {
|
|
6
|
+
import { createContext, useRef, useEffect, useMemo, useState, use, useId, useCallback, Fragment as Fragment$1, useLayoutEffect, useReducer, Children } from 'react';
|
|
7
|
+
import { Root as Root$6, Trigger, Portal, Content, Provider } from '@radix-ui/react-tooltip';
|
|
8
8
|
import { cva } from 'class-variance-authority';
|
|
9
9
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
10
|
-
import { all, fas } from '@awesome.me/kit-be8bcf7e5e/icons';
|
|
11
|
-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
12
10
|
import { getDefaultClassNames, DayPicker } from 'react-day-picker';
|
|
13
11
|
import 'react-day-picker/src/style.css';
|
|
14
|
-
import { Root as Root$2, Trigger, Close, Portal as Portal$1, Content as Content$1 } from '@radix-ui/react-popover';
|
|
12
|
+
import { Root as Root$2, Trigger as Trigger$1, Close, Portal as Portal$1, Content as Content$1 } from '@radix-ui/react-popover';
|
|
15
13
|
import * as ScrollAreaPrimitive2 from '@radix-ui/react-scroll-area';
|
|
16
14
|
import TextareaAutosize from 'react-textarea-autosize';
|
|
17
15
|
import * as RLabel from '@radix-ui/react-label';
|
|
18
|
-
import { Button as Button$1, cn as cn$1, Switch as Switch$1, Checkbox as Checkbox$1, Select as Select$1, FormGroup as FormGroup$1, PasswordInput as PasswordInput$1, Tooltip as Tooltip$1, Label as Label$1, TextInput as TextInput$1, Separator as Separator$1, ButtonGroup as ButtonGroup$1 } from '@keboola/design';
|
|
19
16
|
import { Root as Root$3, Thumb } from '@radix-ui/react-switch';
|
|
20
|
-
import { Root as Root$
|
|
17
|
+
import { Root as Root$7, Trigger as Trigger$2, Portal as Portal$2, Content as Content$2 } from '@radix-ui/react-hover-card';
|
|
21
18
|
import * as RSeparator from '@radix-ui/react-separator';
|
|
22
19
|
import * as RRadioGroup from '@radix-ui/react-radio-group';
|
|
23
20
|
import { Item, Indicator as Indicator$2 } from '@radix-ui/react-radio-group';
|
|
24
|
-
import { Root as Root$
|
|
21
|
+
import { Root as Root$8, Track, Range, Thumb as Thumb$1 } from '@radix-ui/react-slider';
|
|
25
22
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
26
|
-
import { Root as Root$
|
|
27
|
-
import {
|
|
23
|
+
import { Root as Root$5 } from '@radix-ui/react-select';
|
|
24
|
+
import { all, fas } from '@awesome.me/kit-be8bcf7e5e/icons';
|
|
25
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
26
|
+
import { Root as Root$4, Indicator } from '@radix-ui/react-checkbox';
|
|
28
27
|
import * as DropdownMenuPrimitive3 from '@radix-ui/react-dropdown-menu';
|
|
29
28
|
import { Root, Group, Trigger as Trigger$4 } from '@radix-ui/react-dropdown-menu';
|
|
30
29
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
31
|
-
import { Root as Root$
|
|
30
|
+
import { Root as Root$9, Close as Close$1, Trigger as Trigger$3, Portal as Portal$3, Content as Content$3, Overlay, Title } from '@radix-ui/react-dialog';
|
|
32
31
|
import { createPortal } from 'react-dom';
|
|
33
|
-
import {
|
|
34
|
-
import { Root as Root$8, CollapsibleTrigger, Content as Content$4 } from '@radix-ui/react-collapsible';
|
|
32
|
+
import { Root as Root$a, CollapsibleTrigger, Content as Content$4 } from '@radix-ui/react-collapsible';
|
|
35
33
|
import { Command as Command$1, CommandInput as CommandInput$1, defaultFilter, useCommandState } from 'cmdk';
|
|
36
34
|
export { defaultFilter, useCommandState } from 'cmdk';
|
|
37
35
|
import { Combobox as Combobox$1 } from '@base-ui/react/combobox';
|
|
38
36
|
import * as RadixAvatar from '@radix-ui/react-avatar';
|
|
39
37
|
import BoringAvatar from 'boring-avatars';
|
|
40
38
|
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
41
|
-
import { Root as Root$
|
|
39
|
+
import { Root as Root$b } from '@radix-ui/react-toggle';
|
|
42
40
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
43
|
-
import { Root as Root$
|
|
41
|
+
import { Root as Root$c, Indicator as Indicator$1 } from '@radix-ui/react-progress';
|
|
44
42
|
import { diffLines, diffWords } from 'diff';
|
|
45
43
|
import * as RadixTabs from '@radix-ui/react-tabs';
|
|
46
44
|
import { completeAnyWord, autocompletion } from '@codemirror/autocomplete';
|
|
@@ -64,6 +62,8 @@ import { StateEffect, StateField, RangeSet, RangeSetBuilder } from '@codemirror/
|
|
|
64
62
|
import { diff3Merge } from 'node-diff3';
|
|
65
63
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
66
64
|
import { toast as toast$1, Toaster as Toaster$1 } from 'sonner';
|
|
65
|
+
import { OTPInput, REGEXP_ONLY_DIGITS, OTPInputContext } from 'input-otp';
|
|
66
|
+
export { REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from 'input-otp';
|
|
67
67
|
import { createFormHookContexts, createFormHook } from '@tanstack/react-form';
|
|
68
68
|
|
|
69
69
|
// src/components/Button/Button.tsx
|
|
@@ -187,7 +187,7 @@ var TooltipContent = ({
|
|
|
187
187
|
) });
|
|
188
188
|
};
|
|
189
189
|
var DELAY_SHOW_TOOLTIP = 300;
|
|
190
|
-
var TooltipRoot = ({ children, delayDuration = DELAY_SHOW_TOOLTIP, ...rest }) => /* @__PURE__ */ jsx(Root$
|
|
190
|
+
var TooltipRoot = ({ children, delayDuration = DELAY_SHOW_TOOLTIP, ...rest }) => /* @__PURE__ */ jsx(Root$6, { ...rest, delayDuration, children });
|
|
191
191
|
var TooltipTrigger = ({
|
|
192
192
|
ref,
|
|
193
193
|
children,
|
|
@@ -202,20 +202,28 @@ var TooltipTrigger = ({
|
|
|
202
202
|
if (keepOpenOnClick) event.preventDefault();
|
|
203
203
|
onClick?.(event);
|
|
204
204
|
};
|
|
205
|
-
const
|
|
205
|
+
const handlePointerDown = (event) => {
|
|
206
206
|
if (keepOpenOnClick) event.preventDefault();
|
|
207
207
|
onPointerDown?.(event);
|
|
208
208
|
};
|
|
209
209
|
return /* @__PURE__ */ jsx(
|
|
210
|
-
Trigger
|
|
210
|
+
Trigger,
|
|
211
211
|
{
|
|
212
212
|
...rest,
|
|
213
213
|
asChild: true,
|
|
214
214
|
ref,
|
|
215
215
|
className: cn("tailwindcss-preflight", className),
|
|
216
216
|
onClick: handleClick,
|
|
217
|
-
onPointerDown:
|
|
218
|
-
children: asChild ? children :
|
|
217
|
+
onPointerDown: handlePointerDown,
|
|
218
|
+
children: asChild ? children : (
|
|
219
|
+
// Default-mode trigger wraps children in a span so Radix has a
|
|
220
|
+
// single DOM element to attach handlers to. `tailwindcss-preflight`
|
|
221
|
+
// (merged in via Slot) activates Tailwind's preflight inside the
|
|
222
|
+
// span, which sets `svg { display: block }` — without an inline-flex
|
|
223
|
+
// container that would stack any bare Lucide icon onto its own
|
|
224
|
+
// line. `tw-inline-flex tw-items-center` keeps icon + text aligned.
|
|
225
|
+
/* @__PURE__ */ jsx("span", { className: "tw-inline-flex tw-items-center", children })
|
|
226
|
+
)
|
|
219
227
|
}
|
|
220
228
|
);
|
|
221
229
|
};
|
|
@@ -333,29 +341,20 @@ var sha256 = async (text) => {
|
|
|
333
341
|
var useSHA256 = (text) => {
|
|
334
342
|
const [hash, setHash] = useState("");
|
|
335
343
|
useEffect(() => {
|
|
336
|
-
if (text) {
|
|
337
|
-
|
|
344
|
+
if (!text) {
|
|
345
|
+
setHash("");
|
|
346
|
+
return;
|
|
338
347
|
}
|
|
348
|
+
let cancelled = false;
|
|
349
|
+
sha256(text).then((h) => {
|
|
350
|
+
if (!cancelled) setHash(h);
|
|
351
|
+
});
|
|
352
|
+
return () => {
|
|
353
|
+
cancelled = true;
|
|
354
|
+
};
|
|
339
355
|
}, [text]);
|
|
340
356
|
return hash;
|
|
341
357
|
};
|
|
342
|
-
var Icon = ({ ref, icon, ...rest }) => /* @__PURE__ */ jsx(FontAwesomeIcon, { ...rest, ref, icon });
|
|
343
|
-
|
|
344
|
-
// src/components/Icon/index.ts
|
|
345
|
-
var validIconNames;
|
|
346
|
-
var getValidIconNames = () => {
|
|
347
|
-
if (validIconNames) return validIconNames;
|
|
348
|
-
validIconNames = new Set(
|
|
349
|
-
Object.values(fas).flatMap((def) => {
|
|
350
|
-
if (def !== null && typeof def === "object" && "iconName" in def && typeof def.iconName === "string") {
|
|
351
|
-
return [def.iconName];
|
|
352
|
-
}
|
|
353
|
-
return [];
|
|
354
|
-
})
|
|
355
|
-
);
|
|
356
|
-
return validIconNames;
|
|
357
|
-
};
|
|
358
|
-
var isIconName = (name) => getValidIconNames().has(name);
|
|
359
358
|
var variants = cva(
|
|
360
359
|
[
|
|
361
360
|
"tailwindcss-preflight",
|
|
@@ -479,15 +478,38 @@ var variants = cva(
|
|
|
479
478
|
]
|
|
480
479
|
},
|
|
481
480
|
size: {
|
|
482
|
-
medium: [
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
481
|
+
medium: [
|
|
482
|
+
"tw-max-h-10",
|
|
483
|
+
"tw-min-h-10",
|
|
484
|
+
"tw-px-4",
|
|
485
|
+
"tw-py-2.5",
|
|
486
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4'
|
|
487
|
+
],
|
|
488
|
+
small: [
|
|
489
|
+
"tw-max-h-8",
|
|
490
|
+
"tw-min-h-8",
|
|
491
|
+
"tw-px-4",
|
|
492
|
+
"tw-py-1.5",
|
|
493
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4'
|
|
494
|
+
],
|
|
495
|
+
large: [
|
|
496
|
+
"tw-max-h-12",
|
|
497
|
+
"tw-min-h-12",
|
|
498
|
+
"tw-px-4",
|
|
499
|
+
"tw-py-3.5",
|
|
500
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4'
|
|
501
|
+
],
|
|
502
|
+
"icon-lg": ["tw-size-12", "tw-p-0", '[&_svg:not([class*="tw-size-"])]:tw-size-6'],
|
|
503
|
+
icon: ["tw-size-10", "tw-p-0", '[&_svg:not([class*="tw-size-"])]:tw-size-4'],
|
|
504
|
+
"icon-sm": ["tw-size-8", "tw-p-0", '[&_svg:not([class*="tw-size-"])]:tw-size-4'],
|
|
505
|
+
"icon-xs": ["tw-size-6", "tw-p-0", '[&_svg:not([class*="tw-size-"])]:tw-size-4'],
|
|
506
|
+
"icon-2xs": [
|
|
507
|
+
"!tw-inline-flex",
|
|
508
|
+
"tw-size-5",
|
|
509
|
+
"tw-max-h-5",
|
|
510
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3'
|
|
511
|
+
],
|
|
512
|
+
"icon-3xs": ["tw-h-fit", "tw-w-fit", '[&_svg:not([class*="tw-size-"])]:tw-size-4']
|
|
491
513
|
}
|
|
492
514
|
}
|
|
493
515
|
}
|
|
@@ -620,10 +642,10 @@ var Button = ({
|
|
|
620
642
|
variant = "primary",
|
|
621
643
|
size = "medium",
|
|
622
644
|
block = false,
|
|
623
|
-
icon,
|
|
624
645
|
...buttonProps
|
|
625
646
|
}) => {
|
|
626
647
|
const Comp = asChild ? Root$1 : "button";
|
|
648
|
+
const isIconOnly = String(size).startsWith("icon");
|
|
627
649
|
const classNames = argo ? argoVariants({ variant, size, block, className }) : variants({
|
|
628
650
|
size,
|
|
629
651
|
variant,
|
|
@@ -646,14 +668,13 @@ var Button = ({
|
|
|
646
668
|
disabled,
|
|
647
669
|
"aria-disabled": disabled,
|
|
648
670
|
"data-variant": variant,
|
|
649
|
-
"data-icon-only":
|
|
671
|
+
"data-icon-only": isIconOnly,
|
|
650
672
|
type,
|
|
651
673
|
onClick: handleClick,
|
|
652
674
|
className: cn(classNames),
|
|
653
675
|
children: [
|
|
654
676
|
isLoading && /* @__PURE__ */ jsx(Loader2, { className: "tw-size-4 tw-shrink-0 tw-animate-spin" }),
|
|
655
|
-
|
|
656
|
-
/* @__PURE__ */ jsx(Slottable, { children })
|
|
677
|
+
/* @__PURE__ */ jsx(Slottable, { children: isLoading && isIconOnly ? null : children })
|
|
657
678
|
]
|
|
658
679
|
}
|
|
659
680
|
);
|
|
@@ -902,7 +923,7 @@ var PopoverContent = ({
|
|
|
902
923
|
) });
|
|
903
924
|
var Popover = (props) => /* @__PURE__ */ jsx(Root$2, { ...props });
|
|
904
925
|
Popover.Content = PopoverContent;
|
|
905
|
-
Popover.Trigger = Trigger;
|
|
926
|
+
Popover.Trigger = Trigger$1;
|
|
906
927
|
Popover.Close = Close;
|
|
907
928
|
var DatePicker = ({
|
|
908
929
|
align = "end",
|
|
@@ -2051,21 +2072,21 @@ var Clipboard = ({
|
|
|
2051
2072
|
return tooltip;
|
|
2052
2073
|
})();
|
|
2053
2074
|
const tooltipVariant = state === "ready" && !!text ? tooltipVariantProp : "action";
|
|
2054
|
-
return /* @__PURE__ */ jsxs(Tooltip
|
|
2075
|
+
return /* @__PURE__ */ jsxs(Tooltip.Root, { open: isTooltipOpen, onOpenChange: handleOnOpenChange, children: [
|
|
2055
2076
|
/* @__PURE__ */ jsx(
|
|
2056
|
-
Tooltip
|
|
2077
|
+
Tooltip.Trigger,
|
|
2057
2078
|
{
|
|
2058
2079
|
...restButtonProps,
|
|
2059
2080
|
asChild,
|
|
2060
2081
|
keepOpenOnClick: true,
|
|
2061
2082
|
onClick: handleOnClick,
|
|
2062
|
-
className: cn
|
|
2083
|
+
className: cn("tw-cursor-pointer", className),
|
|
2063
2084
|
ref,
|
|
2064
2085
|
children: children ?? text
|
|
2065
2086
|
}
|
|
2066
2087
|
),
|
|
2067
2088
|
/* @__PURE__ */ jsx(
|
|
2068
|
-
Tooltip
|
|
2089
|
+
Tooltip.Content,
|
|
2069
2090
|
{
|
|
2070
2091
|
keepOpenOnPointerDownOutside: true,
|
|
2071
2092
|
placement: tooltipPlacement,
|
|
@@ -2424,9 +2445,9 @@ var HoverCardContent = ({
|
|
|
2424
2445
|
children
|
|
2425
2446
|
}
|
|
2426
2447
|
) });
|
|
2427
|
-
var HoverCard = ({ openDelay = 200, closeDelay = 200, ...rest }) => /* @__PURE__ */ jsx(Root$
|
|
2448
|
+
var HoverCard = ({ openDelay = 200, closeDelay = 200, ...rest }) => /* @__PURE__ */ jsx(Root$7, { ...rest, openDelay, closeDelay });
|
|
2428
2449
|
HoverCard.Content = HoverCardContent;
|
|
2429
|
-
HoverCard.Trigger = Trigger$
|
|
2450
|
+
HoverCard.Trigger = Trigger$2;
|
|
2430
2451
|
var separatorVariants = cva(
|
|
2431
2452
|
[
|
|
2432
2453
|
// position
|
|
@@ -2864,7 +2885,7 @@ var Slider = ({
|
|
|
2864
2885
|
onValueChange?.(next);
|
|
2865
2886
|
};
|
|
2866
2887
|
const body = /* @__PURE__ */ jsxs(
|
|
2867
|
-
Root$
|
|
2888
|
+
Root$8,
|
|
2868
2889
|
{
|
|
2869
2890
|
ref,
|
|
2870
2891
|
value: liveValues,
|
|
@@ -3064,39 +3085,53 @@ var Search2 = ({
|
|
|
3064
3085
|
onChange?.("", event);
|
|
3065
3086
|
onClear?.();
|
|
3066
3087
|
};
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
{
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3088
|
+
const handleWrapperMouseDown = (event) => {
|
|
3089
|
+
if (disabled || readOnly) return;
|
|
3090
|
+
if (event.target.closest('button, a, input, textarea, [role="button"]')) {
|
|
3091
|
+
return;
|
|
3092
|
+
}
|
|
3093
|
+
event.preventDefault();
|
|
3094
|
+
event.currentTarget.querySelector("input")?.focus();
|
|
3095
|
+
};
|
|
3096
|
+
return (
|
|
3097
|
+
// Mouse-only convenience: clicking the chrome focuses the input. The input itself is the
|
|
3098
|
+
// real interactive/focusable target, so no extra role or key handler is needed here.
|
|
3099
|
+
// oxlint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
3100
|
+
/* @__PURE__ */ jsxs(
|
|
3101
|
+
"div",
|
|
3102
|
+
{
|
|
3103
|
+
className: cn(
|
|
3104
|
+
searchWrapperVariants({ variant }),
|
|
3082
3105
|
{
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
"data-testid": testId.input,
|
|
3087
|
-
type: "text",
|
|
3088
|
-
value: internalValue ?? "",
|
|
3089
|
-
onChange: handleChange,
|
|
3090
|
-
onBlur: handleBlur,
|
|
3091
|
-
className: searchInputClassnames,
|
|
3092
|
-
disabled,
|
|
3093
|
-
readOnly
|
|
3094
|
-
}
|
|
3106
|
+
"tw-cursor-not-allowed tw-opacity-40": disabled
|
|
3107
|
+
},
|
|
3108
|
+
className
|
|
3095
3109
|
),
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3110
|
+
"data-testid": testId.wrapper,
|
|
3111
|
+
onMouseDown: handleWrapperMouseDown,
|
|
3112
|
+
children: [
|
|
3113
|
+
variant === "ai" ? /* @__PURE__ */ jsx(Sparkles, { className: "tw-size-4 tw-shrink-0 [&_*]:tw-stroke-aigradient-600" }) : /* @__PURE__ */ jsx(Search, { className: "tw-size-4 tw-shrink-0 tw-text-neutral-400" }),
|
|
3114
|
+
/* @__PURE__ */ jsx(
|
|
3115
|
+
"input",
|
|
3116
|
+
{
|
|
3117
|
+
...rest,
|
|
3118
|
+
ref,
|
|
3119
|
+
placeholder,
|
|
3120
|
+
"data-testid": testId.input,
|
|
3121
|
+
type: "text",
|
|
3122
|
+
value: internalValue ?? "",
|
|
3123
|
+
onChange: handleChange,
|
|
3124
|
+
onBlur: handleBlur,
|
|
3125
|
+
className: searchInputClassnames,
|
|
3126
|
+
disabled,
|
|
3127
|
+
readOnly
|
|
3128
|
+
}
|
|
3129
|
+
),
|
|
3130
|
+
isClearButtonVisible && /* @__PURE__ */ jsx(ClearButton, { onClick: handleClear, testId: testId.clearButton }),
|
|
3131
|
+
suffix
|
|
3132
|
+
]
|
|
3133
|
+
}
|
|
3134
|
+
)
|
|
3100
3135
|
);
|
|
3101
3136
|
};
|
|
3102
3137
|
var SearchForm = ({
|
|
@@ -3130,7 +3165,7 @@ var scrollButtonStyles = cn(
|
|
|
3130
3165
|
"tw-justify-center",
|
|
3131
3166
|
"tw-rounded-sm",
|
|
3132
3167
|
"tw-p-1",
|
|
3133
|
-
|
|
3168
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-5'
|
|
3134
3169
|
);
|
|
3135
3170
|
var SelectContent = ({
|
|
3136
3171
|
ref,
|
|
@@ -3196,11 +3231,28 @@ var SelectContent = ({
|
|
|
3196
3231
|
children
|
|
3197
3232
|
}
|
|
3198
3233
|
),
|
|
3199
|
-
/* @__PURE__ */ jsx(SelectPrimitive.ScrollDownButton, { className: scrollButtonStyles, children: /* @__PURE__ */ jsx(ChevronDown
|
|
3234
|
+
/* @__PURE__ */ jsx(SelectPrimitive.ScrollDownButton, { className: scrollButtonStyles, children: /* @__PURE__ */ jsx(ChevronDown, {}) })
|
|
3200
3235
|
]
|
|
3201
3236
|
}
|
|
3202
3237
|
) });
|
|
3203
3238
|
var SelectGroup = ({ className, ...props }) => /* @__PURE__ */ jsx(SelectPrimitive.Group, { ...props, className: cn("tw-flex tw-flex-col tw-gap-0.5", className) });
|
|
3239
|
+
var Icon = ({ ref, icon, ...rest }) => /* @__PURE__ */ jsx(FontAwesomeIcon, { ...rest, ref, icon });
|
|
3240
|
+
|
|
3241
|
+
// src/components/Icon/index.ts
|
|
3242
|
+
var validIconNames;
|
|
3243
|
+
var getValidIconNames = () => {
|
|
3244
|
+
if (validIconNames) return validIconNames;
|
|
3245
|
+
validIconNames = new Set(
|
|
3246
|
+
Object.values(fas).flatMap((def) => {
|
|
3247
|
+
if (def !== null && typeof def === "object" && "iconName" in def && typeof def.iconName === "string") {
|
|
3248
|
+
return [def.iconName];
|
|
3249
|
+
}
|
|
3250
|
+
return [];
|
|
3251
|
+
})
|
|
3252
|
+
);
|
|
3253
|
+
return validIconNames;
|
|
3254
|
+
};
|
|
3255
|
+
var isIconName = (name) => getValidIconNames().has(name);
|
|
3204
3256
|
var isFAIconValue = (value) => typeof value === "string" || Array.isArray(value) && value.length === 2 && typeof value[0] === "string" && typeof value[1] === "string";
|
|
3205
3257
|
var renderLegacyIcon = (value) => isFAIconValue(value) ? /* @__PURE__ */ jsx(Icon, { icon: value }) : value;
|
|
3206
3258
|
var SelectItem = ({
|
|
@@ -3280,7 +3332,7 @@ var SelectLabel = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
3280
3332
|
)
|
|
3281
3333
|
}
|
|
3282
3334
|
);
|
|
3283
|
-
var SelectRoot = (props) => /* @__PURE__ */ jsx(Root$
|
|
3335
|
+
var SelectRoot = (props) => /* @__PURE__ */ jsx(Root$5, { ...props });
|
|
3284
3336
|
var SelectSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
3285
3337
|
SelectPrimitive.Separator,
|
|
3286
3338
|
{
|
|
@@ -3427,7 +3479,7 @@ var SelectTrigger = ({
|
|
|
3427
3479
|
...props,
|
|
3428
3480
|
children: [
|
|
3429
3481
|
/* @__PURE__ */ jsx(SelectPrimitive.Value, { placeholder }),
|
|
3430
|
-
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown
|
|
3482
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "tw-size-5 tw-text-muted-foreground" }) })
|
|
3431
3483
|
]
|
|
3432
3484
|
}
|
|
3433
3485
|
);
|
|
@@ -3592,7 +3644,7 @@ function Checkbox({
|
|
|
3592
3644
|
const fallbackId = useId();
|
|
3593
3645
|
const id = idProp?.toString() ?? fallbackId;
|
|
3594
3646
|
const styleVariant = argo ? "argo" : "default";
|
|
3595
|
-
const checkboxElement = /* @__PURE__ */ jsx(Root$
|
|
3647
|
+
const checkboxElement = /* @__PURE__ */ jsx(Root$4, { id, ...rest, className: cn(rootVariants({ variant: styleVariant, className })), children: /* @__PURE__ */ jsxs(Indicator, { className: cn(indicatorVariants({ variant: styleVariant })), children: [
|
|
3596
3648
|
/* @__PURE__ */ jsx(Check, { className: "tw-hidden tw-size-3 tw-stroke-[4px] group-data-[state=checked]:tw-block" }),
|
|
3597
3649
|
/* @__PURE__ */ jsx(Minus, { className: "tw-hidden tw-size-3 tw-stroke-[4px] group-data-[state=indeterminate]:tw-block" })
|
|
3598
3650
|
] }) });
|
|
@@ -3626,7 +3678,7 @@ var variants4 = cva(
|
|
|
3626
3678
|
"tw-border-border",
|
|
3627
3679
|
"tw-rounded-full",
|
|
3628
3680
|
"tw-bg-white",
|
|
3629
|
-
|
|
3681
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-2',
|
|
3630
3682
|
"[&_svg]:data-[state=unchecked]:tw-hidden",
|
|
3631
3683
|
// Lucide Circle is stroke-only — force fill to match the stroke
|
|
3632
3684
|
// (currentColor) so the indicator reads as a solid dot.
|
|
@@ -3634,14 +3686,14 @@ var variants4 = cva(
|
|
|
3634
3686
|
"group-data-[variant=argo]/dropdown-menu-content:[&_svg]:tw-text-primary",
|
|
3635
3687
|
"group-data-[variant=default]/dropdown-menu-content:[&_svg]:tw-text-secondary-500"
|
|
3636
3688
|
],
|
|
3637
|
-
check: [
|
|
3689
|
+
check: ['[&_svg:not([class*="tw-size-"])]:tw-size-3.5', "[&_svg]:tw-text-primary"],
|
|
3638
3690
|
checkbox: [
|
|
3639
3691
|
"[&_svg]:tw-text-white",
|
|
3640
3692
|
"tw-border",
|
|
3641
3693
|
"tw-border-solid",
|
|
3642
3694
|
"tw-border-neutral-200",
|
|
3643
3695
|
"tw-rounded",
|
|
3644
|
-
|
|
3696
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3',
|
|
3645
3697
|
"[&_svg]:data-[state=unchecked]:tw-hidden",
|
|
3646
3698
|
"group-data-[variant=argo]/dropdown-menu-content:data-[state=checked]:tw-border-primary",
|
|
3647
3699
|
"group-data-[variant=argo]/dropdown-menu-content:data-[state=checked]:tw-bg-primary",
|
|
@@ -3652,7 +3704,7 @@ var variants4 = cva(
|
|
|
3652
3704
|
"tw-size-5",
|
|
3653
3705
|
// Lucide SVGs default to 24×24 — constrain the rendered ToggleRight
|
|
3654
3706
|
// to the indicator slot so it doesn't overflow.
|
|
3655
|
-
|
|
3707
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-5',
|
|
3656
3708
|
"tw-text-neutral-400",
|
|
3657
3709
|
"data-[state=unchecked]:tw-rotate-180",
|
|
3658
3710
|
"group-data-[variant=default]/dropdown-menu-content:data-[state=checked]:tw-text-secondary-500",
|
|
@@ -3700,7 +3752,7 @@ var ItemIcon = ({ className, children, ...props }) => /* @__PURE__ */ jsx(
|
|
|
3700
3752
|
// 20px container fits the 16px Lucide glyph plus 2px breathing room
|
|
3701
3753
|
// each side — the previous tw-size-4 + tw-p-0.5 clipped the 16px child.
|
|
3702
3754
|
"tw-size-5",
|
|
3703
|
-
|
|
3755
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
3704
3756
|
"group-data-[variant=default]/dropdown-menu-content:tw-text-neutral-400",
|
|
3705
3757
|
"group-data-[variant=argo]/dropdown-menu-content:tw-text-primary",
|
|
3706
3758
|
"group-data-[variant=argo]/dropdown-menu-content:group-aria-disabled:tw-text-muted-foreground",
|
|
@@ -4321,10 +4373,10 @@ var ModalIcon = (props) => {
|
|
|
4321
4373
|
"tw-text-white": props.color !== "violet",
|
|
4322
4374
|
"tw-text-purple-500": props.color === "violet"
|
|
4323
4375
|
},
|
|
4324
|
-
|
|
4376
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-6',
|
|
4325
4377
|
"[&_svg]:tw-aspect-square"
|
|
4326
4378
|
),
|
|
4327
|
-
children:
|
|
4379
|
+
children: renderLegacyIcon(props.icon)
|
|
4328
4380
|
}
|
|
4329
4381
|
)
|
|
4330
4382
|
}
|
|
@@ -4332,9 +4384,9 @@ var ModalIcon = (props) => {
|
|
|
4332
4384
|
}
|
|
4333
4385
|
);
|
|
4334
4386
|
};
|
|
4335
|
-
var Modal = (props) => /* @__PURE__ */ jsx(Root$
|
|
4387
|
+
var Modal = (props) => /* @__PURE__ */ jsx(Root$9, { ...props });
|
|
4336
4388
|
Modal.Close = Close$1;
|
|
4337
|
-
Modal.Trigger = Trigger$
|
|
4389
|
+
Modal.Trigger = Trigger$3;
|
|
4338
4390
|
Modal.Content = ModalContent;
|
|
4339
4391
|
Modal.Body = ModalBody;
|
|
4340
4392
|
Modal.Icon = ModalIcon;
|
|
@@ -4365,7 +4417,7 @@ var Truncated = ({
|
|
|
4365
4417
|
const isScrollableTarget = (e) => {
|
|
4366
4418
|
return e.scrollHeight - OFFSET_TOLERANCE >= e.clientHeight;
|
|
4367
4419
|
};
|
|
4368
|
-
const truncatedClasses = cn
|
|
4420
|
+
const truncatedClasses = cn(
|
|
4369
4421
|
className,
|
|
4370
4422
|
"tw-overflow-hidden [word-break:break-all]",
|
|
4371
4423
|
"[display:-webkit-box!important] [-webkit-box-orient:vertical]",
|
|
@@ -4375,7 +4427,7 @@ var Truncated = ({
|
|
|
4375
4427
|
return /* @__PURE__ */ jsx("span", { ref, className: truncatedClasses, ...rest, children: text });
|
|
4376
4428
|
}
|
|
4377
4429
|
return /* @__PURE__ */ jsx(
|
|
4378
|
-
Tooltip
|
|
4430
|
+
Tooltip,
|
|
4379
4431
|
{
|
|
4380
4432
|
placement: tooltipPlacement,
|
|
4381
4433
|
variant: tooltipVariant,
|
|
@@ -4852,9 +4904,9 @@ var SheetHeader = ({
|
|
|
4852
4904
|
] });
|
|
4853
4905
|
};
|
|
4854
4906
|
var SheetTitle = ({ className, visuallyHidden = false, ...props }) => /* @__PURE__ */ jsx(Title, { className: cn({ "tw-sr-only": visuallyHidden }, className), ...props });
|
|
4855
|
-
var Sheet = ({ ...props }) => /* @__PURE__ */ jsx(Root$
|
|
4907
|
+
var Sheet = ({ ...props }) => /* @__PURE__ */ jsx(Root$9, { ...props });
|
|
4856
4908
|
Sheet.Close = Close$1;
|
|
4857
|
-
Sheet.Trigger = Trigger$
|
|
4909
|
+
Sheet.Trigger = Trigger$3;
|
|
4858
4910
|
Sheet.Content = SheetContent;
|
|
4859
4911
|
Sheet.Title = SheetTitle;
|
|
4860
4912
|
Sheet.Header = SheetHeader;
|
|
@@ -5328,7 +5380,7 @@ var SidebarGroupAction = ({
|
|
|
5328
5380
|
"tw-text-neutral-800",
|
|
5329
5381
|
"tw-rounded-full",
|
|
5330
5382
|
// svg defaults: size + colour
|
|
5331
|
-
|
|
5383
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3',
|
|
5332
5384
|
"[&_svg]:tw-text-neutral-400",
|
|
5333
5385
|
"hover:[&_svg]:tw-text-secondary-600",
|
|
5334
5386
|
"hover:tw-bg-neutral-100",
|
|
@@ -5472,7 +5524,7 @@ var SidebarMenuIcon = ({
|
|
|
5472
5524
|
"tw-shrink-0",
|
|
5473
5525
|
"tw-p-0.5",
|
|
5474
5526
|
"tw-text-sidebar-primary",
|
|
5475
|
-
|
|
5527
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
5476
5528
|
className
|
|
5477
5529
|
),
|
|
5478
5530
|
children
|
|
@@ -5601,7 +5653,7 @@ var SidebarMenuAction = ({
|
|
|
5601
5653
|
"tw-rounded",
|
|
5602
5654
|
// icon styling
|
|
5603
5655
|
"[&_svg]:tw-shrink-0",
|
|
5604
|
-
|
|
5656
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3.5',
|
|
5605
5657
|
"[&_svg]:tw-text-sidebar-accent-foreground",
|
|
5606
5658
|
// focus visible
|
|
5607
5659
|
"focus-visible:tw-outline-none",
|
|
@@ -5833,7 +5885,7 @@ var CollapsibleContent = ({
|
|
|
5833
5885
|
children
|
|
5834
5886
|
}
|
|
5835
5887
|
);
|
|
5836
|
-
var Collapsible = (props) => /* @__PURE__ */ jsx(Root$
|
|
5888
|
+
var Collapsible = (props) => /* @__PURE__ */ jsx(Root$a, { ...props });
|
|
5837
5889
|
Collapsible.Trigger = CollapsibleTrigger;
|
|
5838
5890
|
Collapsible.Content = CollapsibleContent;
|
|
5839
5891
|
var SidebarMenuSub = ({
|
|
@@ -5912,7 +5964,7 @@ var SidebarMenuSub = ({
|
|
|
5912
5964
|
),
|
|
5913
5965
|
children: [
|
|
5914
5966
|
label,
|
|
5915
|
-
/* @__PURE__ */ jsx(ChevronDown
|
|
5967
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: "tw-ml-auto tw-size-5 tw-transition-transform tw-duration-200 group-data-[state=open]:tw-rotate-180" })
|
|
5916
5968
|
]
|
|
5917
5969
|
}
|
|
5918
5970
|
) }),
|
|
@@ -6487,7 +6539,7 @@ var CommandItem = ({
|
|
|
6487
6539
|
),
|
|
6488
6540
|
children: [
|
|
6489
6541
|
/* @__PURE__ */ jsx(CheckIndicator, { variant }),
|
|
6490
|
-
icon && /* @__PURE__ */ jsx("span", { className: "tw-inline-flex tw-size-4 tw-shrink-0 tw-items-center tw-justify-center tw-text-neutral-400 [&_svg]:tw-size-4", children: icon }),
|
|
6542
|
+
icon && /* @__PURE__ */ jsx("span", { className: "tw-inline-flex tw-size-4 tw-shrink-0 tw-items-center tw-justify-center tw-text-neutral-400 [&_svg:not([class*='tw-size-'])]:tw-size-4", children: icon }),
|
|
6491
6543
|
children
|
|
6492
6544
|
]
|
|
6493
6545
|
}
|
|
@@ -6561,7 +6613,7 @@ var addonVariants2 = cva(
|
|
|
6561
6613
|
"tw-self-stretch",
|
|
6562
6614
|
"tw-px-1",
|
|
6563
6615
|
"has-[button]:tw-px-0",
|
|
6564
|
-
|
|
6616
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3'
|
|
6565
6617
|
],
|
|
6566
6618
|
{
|
|
6567
6619
|
defaultVariants: {
|
|
@@ -6632,7 +6684,7 @@ var BadgeButton = ({
|
|
|
6632
6684
|
// Default sizing for Lucide-icon children (which ship at 24×24); keeps
|
|
6633
6685
|
// the visual baseline aligned with the previous FA-icon API and other
|
|
6634
6686
|
// icon-wrapper components (ItemIcon, SidebarMenuIcon).
|
|
6635
|
-
|
|
6687
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3',
|
|
6636
6688
|
className
|
|
6637
6689
|
),
|
|
6638
6690
|
children
|
|
@@ -7035,7 +7087,7 @@ var ComboboxItemIndicator = ({
|
|
|
7035
7087
|
"group-data-[variant=default]/combobox-content:tw-right-4",
|
|
7036
7088
|
// Lucide SVGs default to 24×24 — constrain the rendered child so the
|
|
7037
7089
|
// 16px indicator slot owns the actual size.
|
|
7038
|
-
|
|
7090
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
7039
7091
|
"group-data-[highlighted]/combobox-item:tw-text-accent-foreground",
|
|
7040
7092
|
"group-data-[variant=default]/combobox-content:group-data-[highlighted]/combobox-item:tw-text-foreground",
|
|
7041
7093
|
className
|
|
@@ -7329,7 +7381,7 @@ var Combobox = ({
|
|
|
7329
7381
|
/* @__PURE__ */ jsx(ComboboxInput, { id, placeholder, disabled }),
|
|
7330
7382
|
/* @__PURE__ */ jsxs(InputGroup.Addon, { align: "inline-end", children: [
|
|
7331
7383
|
allowClear && /* @__PURE__ */ jsx(InputGroup.Button, { asChild: true, "aria-label": "Clear", disabled, children: /* @__PURE__ */ jsx(Combobox$1.Clear, { children: /* @__PURE__ */ jsx(X, { className: "tw-size-4" }) }) }),
|
|
7332
|
-
/* @__PURE__ */ jsx(InputGroup.Button, { disabled, asChild: true, "aria-label": "Open combobox", children: /* @__PURE__ */ jsx(Combobox$1.Trigger, { children: /* @__PURE__ */ jsx(ChevronDown
|
|
7384
|
+
/* @__PURE__ */ jsx(InputGroup.Button, { disabled, asChild: true, "aria-label": "Open combobox", children: /* @__PURE__ */ jsx(Combobox$1.Trigger, { children: /* @__PURE__ */ jsx(ChevronDown, { className: "tw-size-4" }) }) })
|
|
7333
7385
|
] })
|
|
7334
7386
|
]
|
|
7335
7387
|
}
|
|
@@ -7433,7 +7485,7 @@ var BreadcrumbLink = ({
|
|
|
7433
7485
|
"focus-visible:tw-ring-secondary-500/50",
|
|
7434
7486
|
"focus-visible:tw-rounded-sm",
|
|
7435
7487
|
// Icon
|
|
7436
|
-
|
|
7488
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3.5',
|
|
7437
7489
|
// transition
|
|
7438
7490
|
"tw-transition-colors",
|
|
7439
7491
|
className
|
|
@@ -7489,7 +7541,7 @@ var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */
|
|
|
7489
7541
|
"tw-justify-center",
|
|
7490
7542
|
"tw-aspect-square",
|
|
7491
7543
|
"tw-size-[15px]",
|
|
7492
|
-
|
|
7544
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-2.5',
|
|
7493
7545
|
"tw-text-muted-foreground",
|
|
7494
7546
|
className
|
|
7495
7547
|
),
|
|
@@ -7552,7 +7604,7 @@ var NavbarMenuAvatar = ({
|
|
|
7552
7604
|
...rest,
|
|
7553
7605
|
ref,
|
|
7554
7606
|
type,
|
|
7555
|
-
className: cn
|
|
7607
|
+
className: cn(
|
|
7556
7608
|
"tw-flex",
|
|
7557
7609
|
"tw-items-center",
|
|
7558
7610
|
"tw-justify-center",
|
|
@@ -7593,7 +7645,7 @@ var variants6 = cva(
|
|
|
7593
7645
|
"tw-flex",
|
|
7594
7646
|
"tw-justify-center",
|
|
7595
7647
|
"tw-items-center",
|
|
7596
|
-
|
|
7648
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3',
|
|
7597
7649
|
"[&:not(svg)]:tw-h-5",
|
|
7598
7650
|
"[&:not(svg)]:tw-min-w-5",
|
|
7599
7651
|
"tw-p-1",
|
|
@@ -7625,7 +7677,7 @@ var variants6 = cva(
|
|
|
7625
7677
|
"group-data-[accent=orange]/navbar:tw-bg-warning-500",
|
|
7626
7678
|
"group-data-[accent=green]/navbar:tw-bg-primary-500"
|
|
7627
7679
|
],
|
|
7628
|
-
"icon-button": ["tw-size-4", "tw-
|
|
7680
|
+
"icon-button": ["tw-size-4", "!tw-p-0", '[&_svg:not([class*="tw-size-"])]:tw-size-4'],
|
|
7629
7681
|
shortcut: ["tw-bg-muted", "tw-text-sidebar-foreground", "tw-ml-auto"]
|
|
7630
7682
|
}
|
|
7631
7683
|
}
|
|
@@ -7727,7 +7779,7 @@ var NavbarMenuButton = ({
|
|
|
7727
7779
|
const Comp = asChild ? Root$1 : "button";
|
|
7728
7780
|
const isSearchVariant = variant === "search";
|
|
7729
7781
|
const isEmphasizedVariant = variant === "emphasized";
|
|
7730
|
-
const adornment = isSearchVariant ? /* @__PURE__ */ jsx(Search
|
|
7782
|
+
const adornment = isSearchVariant ? /* @__PURE__ */ jsx(Search, {}) : renderLegacyIcon(icon);
|
|
7731
7783
|
const adornmentVariant = (() => {
|
|
7732
7784
|
if (isSearchVariant || variant === "icon") return "icon-button";
|
|
7733
7785
|
if (isEmphasizedVariant) return "icon-accent-emphasized";
|
|
@@ -7740,7 +7792,7 @@ var NavbarMenuButton = ({
|
|
|
7740
7792
|
ref,
|
|
7741
7793
|
type,
|
|
7742
7794
|
"data-variant": variant,
|
|
7743
|
-
className: cn
|
|
7795
|
+
className: cn(variants7({ className, variant })),
|
|
7744
7796
|
children: [
|
|
7745
7797
|
adornment && /* @__PURE__ */ jsx(NavbarMenuItemAdornment, { variant: adornmentVariant, children: adornment }),
|
|
7746
7798
|
/* @__PURE__ */ jsx(Slottable, { children })
|
|
@@ -7843,7 +7895,7 @@ var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
7843
7895
|
"tw-items-center",
|
|
7844
7896
|
"tw-justify-center",
|
|
7845
7897
|
"tw-text-foreground",
|
|
7846
|
-
|
|
7898
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
7847
7899
|
className
|
|
7848
7900
|
),
|
|
7849
7901
|
...props,
|
|
@@ -7937,7 +7989,7 @@ var Avatar = ({
|
|
|
7937
7989
|
...props,
|
|
7938
7990
|
ref,
|
|
7939
7991
|
style: styles.wrapper,
|
|
7940
|
-
className: cn
|
|
7992
|
+
className: cn(
|
|
7941
7993
|
variant === "circle" ? "tw-rounded-full" : "tw-rounded-md",
|
|
7942
7994
|
"tw-overflow-hidden",
|
|
7943
7995
|
"focus-visible:tw-outline-none",
|
|
@@ -8161,7 +8213,7 @@ var Toggle = ({
|
|
|
8161
8213
|
const isAiVariant = variant === "ai";
|
|
8162
8214
|
const isIconOnly = Boolean(icon && children == null);
|
|
8163
8215
|
return /* @__PURE__ */ jsxs(
|
|
8164
|
-
Root$
|
|
8216
|
+
Root$b,
|
|
8165
8217
|
{
|
|
8166
8218
|
...props,
|
|
8167
8219
|
ref,
|
|
@@ -8169,7 +8221,7 @@ var Toggle = ({
|
|
|
8169
8221
|
disabled,
|
|
8170
8222
|
children: [
|
|
8171
8223
|
badge && /* @__PURE__ */ jsx("span", { className: "tw-absolute tw-right-0 tw-top-0 -tw-translate-y-1/2 tw-translate-x-1/4", children: badge }),
|
|
8172
|
-
icon && /* @__PURE__ */ jsx("span", { className: "tw-inline-flex tw-size-4 tw-shrink-0 tw-items-center tw-justify-center tw-align-middle [&_svg]:tw-size-4", children: renderLegacyIcon(icon) }),
|
|
8224
|
+
icon && /* @__PURE__ */ jsx("span", { className: "tw-inline-flex tw-size-4 tw-shrink-0 tw-items-center tw-justify-center tw-align-middle [&_svg:not([class*='tw-size-'])]:tw-size-4", children: renderLegacyIcon(icon) }),
|
|
8173
8225
|
isAiVariant ? /* @__PURE__ */ jsx("div", { className: "tw-bg-gradient-to-br tw-from-secondary-700 tw-to-purple-700 tw-bg-clip-text tw-text-transparent", children }) : children
|
|
8174
8226
|
]
|
|
8175
8227
|
}
|
|
@@ -8334,7 +8386,11 @@ var connector = cva(
|
|
|
8334
8386
|
"tw-text-nowrap",
|
|
8335
8387
|
"tw-text-xs"
|
|
8336
8388
|
],
|
|
8337
|
-
icon: [
|
|
8389
|
+
icon: [
|
|
8390
|
+
"tw-bg-white",
|
|
8391
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
8392
|
+
"[&_svg]:tw-text-neutral-300"
|
|
8393
|
+
],
|
|
8338
8394
|
line: [
|
|
8339
8395
|
"tw-min-w-8",
|
|
8340
8396
|
"tw-overflow-hidden",
|
|
@@ -8564,7 +8620,7 @@ var Progress = ({
|
|
|
8564
8620
|
variant,
|
|
8565
8621
|
size,
|
|
8566
8622
|
...props
|
|
8567
|
-
}) => /* @__PURE__ */ jsx(Root$
|
|
8623
|
+
}) => /* @__PURE__ */ jsx(Root$c, { ...props, ref, className: cn(variants8({ variant, size, className })), value, children: /* @__PURE__ */ jsx(
|
|
8568
8624
|
Indicator$1,
|
|
8569
8625
|
{
|
|
8570
8626
|
"data-slot": "progress-indicator",
|
|
@@ -9083,7 +9139,7 @@ var MultiCombobox = ({
|
|
|
9083
9139
|
}
|
|
9084
9140
|
),
|
|
9085
9141
|
allowClear && /* @__PURE__ */ jsx(InputGroup.Button, { asChild: true, "aria-label": "Clear", disabled, children: /* @__PURE__ */ jsx(Combobox$1.Clear, { children: /* @__PURE__ */ jsx(X, { className: "tw-size-4" }) }) }),
|
|
9086
|
-
/* @__PURE__ */ jsx(InputGroup.Button, { disabled, asChild: true, "aria-label": "Open combobox", children: /* @__PURE__ */ jsx(Combobox$1.Trigger, { children: /* @__PURE__ */ jsx(ChevronDown
|
|
9142
|
+
/* @__PURE__ */ jsx(InputGroup.Button, { disabled, asChild: true, "aria-label": "Open combobox", children: /* @__PURE__ */ jsx(Combobox$1.Trigger, { children: /* @__PURE__ */ jsx(ChevronDown, { className: "tw-size-4" }) }) })
|
|
9087
9143
|
] })
|
|
9088
9144
|
] })
|
|
9089
9145
|
}
|
|
@@ -9538,7 +9594,7 @@ var AlertAction = ({
|
|
|
9538
9594
|
);
|
|
9539
9595
|
};
|
|
9540
9596
|
var AlertCollapsibleIcon = ({ open }) => /* @__PURE__ */ jsx(Tooltip, { placement: "top", tooltip: open ? "Collapse alert" : "Expand alert", triggerAsChild: true, children: /* @__PURE__ */ jsx(
|
|
9541
|
-
ChevronDown
|
|
9597
|
+
ChevronDown,
|
|
9542
9598
|
{
|
|
9543
9599
|
className: cn(
|
|
9544
9600
|
"tw-mt-px",
|
|
@@ -9595,7 +9651,7 @@ var AlertIcon = ({ variant, icon, className, ...rest }) => /* @__PURE__ */ jsx(
|
|
|
9595
9651
|
"tw-justify-center",
|
|
9596
9652
|
"tw-self-start",
|
|
9597
9653
|
"tw-p-0.5",
|
|
9598
|
-
|
|
9654
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
9599
9655
|
"group-data-[variant=info]/alert:tw-text-secondary-500",
|
|
9600
9656
|
"group-data-[variant=warning]/alert:tw-text-warning-500",
|
|
9601
9657
|
"group-data-[variant=error]/alert:tw-text-error-500",
|
|
@@ -11561,7 +11617,7 @@ var CollapsiblePanel = ({
|
|
|
11561
11617
|
},
|
|
11562
11618
|
children: [
|
|
11563
11619
|
/* @__PURE__ */ jsx("div", { className: "tw-flex tw-flex-1 tw-items-center tw-gap-2 tw-py-px tw-text-sm tw-font-medium tw-text-neutral-800", children: header }),
|
|
11564
|
-
!isDisabled && /* @__PURE__ */ jsx("div", { className: "tw-ml-auto tw-shrink-0", children: /* @__PURE__ */ jsx(ChevronDown
|
|
11620
|
+
!isDisabled && /* @__PURE__ */ jsx("div", { className: "tw-ml-auto tw-shrink-0", children: /* @__PURE__ */ jsx(ChevronDown, { className: cn("tw-size-5 group-data-[state=open]:tw-rotate-180") }) })
|
|
11565
11621
|
]
|
|
11566
11622
|
}
|
|
11567
11623
|
),
|
|
@@ -11601,7 +11657,7 @@ var PanelWithDetails = ({
|
|
|
11601
11657
|
onKeyUp: handleKeyUp,
|
|
11602
11658
|
children: [
|
|
11603
11659
|
/* @__PURE__ */ jsx("div", { className: "tw-mr-2 tw-flex tw-shrink-0 tw-items-center", children: /* @__PURE__ */ jsx(
|
|
11604
|
-
ChevronDown
|
|
11660
|
+
ChevronDown,
|
|
11605
11661
|
{
|
|
11606
11662
|
className: cn(
|
|
11607
11663
|
"tw-size-5",
|
|
@@ -11954,7 +12010,7 @@ var ToastDismiss = ({
|
|
|
11954
12010
|
"tw-row-start-1",
|
|
11955
12011
|
"tailwindcss-preflight",
|
|
11956
12012
|
"[&_svg]:tw-aspect-square",
|
|
11957
|
-
|
|
12013
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
11958
12014
|
"[&_svg]:tw-m-1",
|
|
11959
12015
|
"tw-text-white",
|
|
11960
12016
|
"group-data-[variant=default]/toast:[&_svg]:tw-text-popover-foreground",
|
|
@@ -12099,13 +12155,14 @@ var ToastRoot = ({
|
|
|
12099
12155
|
"tw-inline-flex",
|
|
12100
12156
|
"tw-items-center",
|
|
12101
12157
|
"tw-justify-center",
|
|
12158
|
+
"tw-self-center",
|
|
12102
12159
|
// styles — container at 20px with no padding so the 20px Lucide
|
|
12103
12160
|
// glyph fills the slot (previous tw-size-4 + tw-p-1 clipped a
|
|
12104
12161
|
// 16px child into 8px of visible space)
|
|
12105
12162
|
"tw-aspect-square",
|
|
12106
12163
|
"tw-size-5",
|
|
12107
12164
|
"tw-shrink-0",
|
|
12108
|
-
|
|
12165
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-5',
|
|
12109
12166
|
"tw-text-white",
|
|
12110
12167
|
"group-data-[variant=default]/toast:tw-text-popover-foreground"
|
|
12111
12168
|
),
|
|
@@ -12235,8 +12292,8 @@ var emptyStateIconClassnames = cva(
|
|
|
12235
12292
|
{
|
|
12236
12293
|
variants: {
|
|
12237
12294
|
variant: {
|
|
12238
|
-
default: ["tw-size-16", "tw-text-4xl",
|
|
12239
|
-
compact: ["tw-size-10", "tw-text-2xl",
|
|
12295
|
+
default: ["tw-size-16", "tw-text-4xl", '[&_svg:not([class*="tw-size-"])]:tw-size-10'],
|
|
12296
|
+
compact: ["tw-size-10", "tw-text-2xl", '[&_svg:not([class*="tw-size-"])]:tw-size-6']
|
|
12240
12297
|
}
|
|
12241
12298
|
},
|
|
12242
12299
|
defaultVariants: {
|
|
@@ -12307,9 +12364,24 @@ var errorStateClassnames = cva(["tw-flex", "tw-flex-col", "tw-items-center", "tw
|
|
|
12307
12364
|
var errorStateIconClassnames = cva(["tw-flex", "tw-items-center", "tw-justify-center"], {
|
|
12308
12365
|
variants: {
|
|
12309
12366
|
variant: {
|
|
12310
|
-
default: [
|
|
12311
|
-
|
|
12312
|
-
|
|
12367
|
+
default: [
|
|
12368
|
+
"tw-size-16",
|
|
12369
|
+
"tw-text-4xl",
|
|
12370
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-10',
|
|
12371
|
+
"tw-text-warning-500"
|
|
12372
|
+
],
|
|
12373
|
+
compact: [
|
|
12374
|
+
"tw-size-10",
|
|
12375
|
+
"tw-text-2xl",
|
|
12376
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-6',
|
|
12377
|
+
"tw-text-warning-500"
|
|
12378
|
+
],
|
|
12379
|
+
destructive: [
|
|
12380
|
+
"tw-size-16",
|
|
12381
|
+
"tw-text-4xl",
|
|
12382
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-10',
|
|
12383
|
+
"tw-text-error-500"
|
|
12384
|
+
]
|
|
12313
12385
|
}
|
|
12314
12386
|
},
|
|
12315
12387
|
defaultVariants: {
|
|
@@ -12467,6 +12539,7 @@ var PageHeaderDetail = ({
|
|
|
12467
12539
|
breadcrumbs,
|
|
12468
12540
|
overflowActions,
|
|
12469
12541
|
title,
|
|
12542
|
+
titleIcon,
|
|
12470
12543
|
badges,
|
|
12471
12544
|
description,
|
|
12472
12545
|
primaryAction,
|
|
@@ -12481,6 +12554,7 @@ var PageHeaderDetail = ({
|
|
|
12481
12554
|
/* @__PURE__ */ jsxs("div", { className: "tw-flex tw-w-full tw-items-start tw-justify-between tw-gap-4", children: [
|
|
12482
12555
|
/* @__PURE__ */ jsxs("div", { className: "tw-flex tw-min-w-0 tw-flex-1 tw-flex-col tw-gap-2 tw-pr-2", children: [
|
|
12483
12556
|
/* @__PURE__ */ jsxs("div", { className: titleRowClass, children: [
|
|
12557
|
+
titleIcon && /* @__PURE__ */ jsx("span", { className: "tw-flex tw-shrink-0 tw-items-center", children: titleIcon }),
|
|
12484
12558
|
/* @__PURE__ */ jsx("h1", { className: titleClass, children: title }),
|
|
12485
12559
|
badges && /* @__PURE__ */ jsx("div", { className: badgesClass, children: badges })
|
|
12486
12560
|
] }),
|
|
@@ -12567,7 +12641,7 @@ var PageToolbarToken = ({
|
|
|
12567
12641
|
className: "tailwindcss-preflight tw-inline-flex tw-cursor-pointer tw-items-center tw-gap-1 tw-bg-inherit tw-text-inherit",
|
|
12568
12642
|
children: [
|
|
12569
12643
|
children,
|
|
12570
|
-
/* @__PURE__ */ jsx(ChevronDown
|
|
12644
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: "tw-size-3" })
|
|
12571
12645
|
]
|
|
12572
12646
|
}
|
|
12573
12647
|
)
|
|
@@ -12584,7 +12658,7 @@ var Root30 = ({ ref, className, children, ...props }) => /* @__PURE__ */ jsx(
|
|
|
12584
12658
|
children
|
|
12585
12659
|
}
|
|
12586
12660
|
);
|
|
12587
|
-
var
|
|
12661
|
+
var Search3 = ({ ref, className, children, ...props }) => /* @__PURE__ */ jsx(
|
|
12588
12662
|
"div",
|
|
12589
12663
|
{
|
|
12590
12664
|
ref,
|
|
@@ -12642,7 +12716,7 @@ var AddFilter = ({ className, children, ...props }) => /* @__PURE__ */ jsxs(Butt
|
|
|
12642
12716
|
var Clear = ({ className, children, ...props }) => /* @__PURE__ */ jsx(Button, { argo: true, variant: "invisible", size: "small", className: cn("tw-ml-auto", className), ...props, children: children ?? "Clear all" });
|
|
12643
12717
|
var PageToolbar = Object.assign(Root30, {
|
|
12644
12718
|
/** Left slot — typically a `SearchInput`. */
|
|
12645
|
-
Search:
|
|
12719
|
+
Search: Search3,
|
|
12646
12720
|
/** Right cluster — host the four control groups below in the recommended order. */
|
|
12647
12721
|
Right,
|
|
12648
12722
|
/** Filter controls (`Combobox`, `Select`, `DatePicker`). */
|
|
@@ -12799,7 +12873,7 @@ var SearchInputWithNavigation = ({
|
|
|
12799
12873
|
}
|
|
12800
12874
|
};
|
|
12801
12875
|
return /* @__PURE__ */ jsx(
|
|
12802
|
-
TextInput
|
|
12876
|
+
TextInput,
|
|
12803
12877
|
{
|
|
12804
12878
|
ref,
|
|
12805
12879
|
allowClear: true,
|
|
@@ -12815,7 +12889,7 @@ var SearchInputWithNavigation = ({
|
|
|
12815
12889
|
leftSuffix: /* @__PURE__ */ jsxs(
|
|
12816
12890
|
"div",
|
|
12817
12891
|
{
|
|
12818
|
-
className: cn
|
|
12892
|
+
className: cn("tw-flex tw-items-center tw-gap-3", {
|
|
12819
12893
|
"tw-hidden": !withControls
|
|
12820
12894
|
}),
|
|
12821
12895
|
children: [
|
|
@@ -12824,10 +12898,10 @@ var SearchInputWithNavigation = ({
|
|
|
12824
12898
|
"/",
|
|
12825
12899
|
totalResults
|
|
12826
12900
|
] }),
|
|
12827
|
-
/* @__PURE__ */ jsx(Separator
|
|
12828
|
-
/* @__PURE__ */ jsxs(ButtonGroup
|
|
12901
|
+
/* @__PURE__ */ jsx(Separator, { orientation: "vertical", size: "3/4" }),
|
|
12902
|
+
/* @__PURE__ */ jsxs(ButtonGroup, { children: [
|
|
12829
12903
|
/* @__PURE__ */ jsx(
|
|
12830
|
-
Button
|
|
12904
|
+
Button,
|
|
12831
12905
|
{
|
|
12832
12906
|
variant: "inline",
|
|
12833
12907
|
size: "icon-3xs",
|
|
@@ -12837,13 +12911,13 @@ var SearchInputWithNavigation = ({
|
|
|
12837
12911
|
}
|
|
12838
12912
|
),
|
|
12839
12913
|
/* @__PURE__ */ jsx(
|
|
12840
|
-
Button
|
|
12914
|
+
Button,
|
|
12841
12915
|
{
|
|
12842
12916
|
variant: "inline",
|
|
12843
12917
|
size: "icon-3xs",
|
|
12844
12918
|
onClick: onNavigateNext,
|
|
12845
12919
|
disabled: !totalResults,
|
|
12846
|
-
children: /* @__PURE__ */ jsx(ChevronDown
|
|
12920
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { className: "tw-size-4" })
|
|
12847
12921
|
}
|
|
12848
12922
|
)
|
|
12849
12923
|
] })
|
|
@@ -12879,7 +12953,7 @@ var TagSelectCreateItem = ({ onCreate, value }) => {
|
|
|
12879
12953
|
className: cn("[&_svg]:tw-text-primary-500", {
|
|
12880
12954
|
"tw-hidden": !isCreateItemVisible
|
|
12881
12955
|
}),
|
|
12882
|
-
icon: /* @__PURE__ */ jsx(Plus
|
|
12956
|
+
icon: /* @__PURE__ */ jsx(Plus, { className: "tw-size-4" }),
|
|
12883
12957
|
children: [
|
|
12884
12958
|
"Create",
|
|
12885
12959
|
" ",
|
|
@@ -13114,7 +13188,7 @@ var CollapsibleStepHeader = ({
|
|
|
13114
13188
|
/* @__PURE__ */ jsx("span", { children: label })
|
|
13115
13189
|
] }),
|
|
13116
13190
|
/* @__PURE__ */ jsx(
|
|
13117
|
-
ChevronDown
|
|
13191
|
+
ChevronDown,
|
|
13118
13192
|
{
|
|
13119
13193
|
className: cn("tw-size-4 tw-transition-transform", isExpanded && "tw-rotate-180")
|
|
13120
13194
|
}
|
|
@@ -13253,7 +13327,7 @@ var ExpandToggle = ({
|
|
|
13253
13327
|
children: [
|
|
13254
13328
|
/* @__PURE__ */ jsx("span", { children: isExpanded ? showLessLabel : showMoreLabel }),
|
|
13255
13329
|
/* @__PURE__ */ jsx(
|
|
13256
|
-
ChevronDown
|
|
13330
|
+
ChevronDown,
|
|
13257
13331
|
{
|
|
13258
13332
|
className: cn("tw-size-5 tw-transition-transform", isExpanded && "tw-rotate-180")
|
|
13259
13333
|
}
|
|
@@ -14282,6 +14356,151 @@ var PasswordInput = ({
|
|
|
14282
14356
|
}
|
|
14283
14357
|
);
|
|
14284
14358
|
};
|
|
14359
|
+
var InputOtpVariantContext = createContext({
|
|
14360
|
+
sizing: "md",
|
|
14361
|
+
state: "default"
|
|
14362
|
+
});
|
|
14363
|
+
var useInputOtpVariant = () => use(InputOtpVariantContext);
|
|
14364
|
+
var useInputOtpRenderContext = () => use(OTPInputContext);
|
|
14365
|
+
var InputOtpGroup = ({
|
|
14366
|
+
ref,
|
|
14367
|
+
className,
|
|
14368
|
+
...props
|
|
14369
|
+
}) => /* @__PURE__ */ jsx("div", { ref, className: cn("tw-flex tw-items-center tw-gap-2", className), ...props });
|
|
14370
|
+
var InputOtpSeparator = ({
|
|
14371
|
+
ref,
|
|
14372
|
+
children,
|
|
14373
|
+
className,
|
|
14374
|
+
...props
|
|
14375
|
+
}) => /* @__PURE__ */ jsx(
|
|
14376
|
+
"div",
|
|
14377
|
+
{
|
|
14378
|
+
ref,
|
|
14379
|
+
role: "separator",
|
|
14380
|
+
"aria-orientation": "vertical",
|
|
14381
|
+
className: cn("tw-flex tw-items-center tw-text-muted-foreground", className),
|
|
14382
|
+
...props,
|
|
14383
|
+
children: children ?? /* @__PURE__ */ jsx(Minus, { className: "tw-size-4" })
|
|
14384
|
+
}
|
|
14385
|
+
);
|
|
14386
|
+
var slotVariants = cva(
|
|
14387
|
+
[
|
|
14388
|
+
"tw-relative",
|
|
14389
|
+
"tw-flex",
|
|
14390
|
+
"tw-items-center",
|
|
14391
|
+
"tw-justify-center",
|
|
14392
|
+
"tw-border",
|
|
14393
|
+
"tw-border-input",
|
|
14394
|
+
"tw-bg-background",
|
|
14395
|
+
"tw-text-foreground",
|
|
14396
|
+
"tw-font-medium",
|
|
14397
|
+
"tw-tabular-nums",
|
|
14398
|
+
"tw-rounded-lg",
|
|
14399
|
+
"tw-transition",
|
|
14400
|
+
"tw-outline-none",
|
|
14401
|
+
// active slot sits above its neighbours so its ring isn't clipped
|
|
14402
|
+
"data-[active=true]:tw-z-10",
|
|
14403
|
+
"data-[active=true]:tw-border-primary",
|
|
14404
|
+
"data-[active=true]:tw-ring-2",
|
|
14405
|
+
"data-[active=true]:tw-ring-primary/50"
|
|
14406
|
+
],
|
|
14407
|
+
{
|
|
14408
|
+
defaultVariants: {
|
|
14409
|
+
sizing: "md",
|
|
14410
|
+
state: "default"
|
|
14411
|
+
},
|
|
14412
|
+
variants: {
|
|
14413
|
+
sizing: {
|
|
14414
|
+
sm: ["tw-h-8", "tw-w-8", "tw-text-sm"],
|
|
14415
|
+
md: ["tw-h-9", "tw-w-9", "tw-text-base"],
|
|
14416
|
+
lg: ["tw-h-10", "tw-w-10", "tw-text-lg"]
|
|
14417
|
+
},
|
|
14418
|
+
// `!` forces the border colour over the base `tw-border-input` once tailwind-merge dedupes.
|
|
14419
|
+
// Matches the pattern InputGroup uses for its argo error state.
|
|
14420
|
+
state: {
|
|
14421
|
+
default: [],
|
|
14422
|
+
error: [
|
|
14423
|
+
"!tw-border-destructive",
|
|
14424
|
+
"tw-bg-destructive/5",
|
|
14425
|
+
"data-[active=true]:!tw-border-destructive",
|
|
14426
|
+
"data-[active=true]:tw-ring-destructive/40"
|
|
14427
|
+
]
|
|
14428
|
+
}
|
|
14429
|
+
}
|
|
14430
|
+
}
|
|
14431
|
+
);
|
|
14432
|
+
var InputOtpSlot = ({
|
|
14433
|
+
ref,
|
|
14434
|
+
index,
|
|
14435
|
+
className,
|
|
14436
|
+
...props
|
|
14437
|
+
}) => {
|
|
14438
|
+
const { slots } = useInputOtpRenderContext();
|
|
14439
|
+
const { sizing, state } = useInputOtpVariant();
|
|
14440
|
+
const slot = slots[index];
|
|
14441
|
+
const char = slot?.char ?? null;
|
|
14442
|
+
const isActive = slot?.isActive ?? false;
|
|
14443
|
+
const hasFakeCaret = slot?.hasFakeCaret ?? false;
|
|
14444
|
+
return /* @__PURE__ */ jsxs(
|
|
14445
|
+
"div",
|
|
14446
|
+
{
|
|
14447
|
+
ref,
|
|
14448
|
+
"data-active": isActive || void 0,
|
|
14449
|
+
"data-slot-index": index,
|
|
14450
|
+
className: cn(slotVariants({ sizing, state }), className),
|
|
14451
|
+
...props,
|
|
14452
|
+
children: [
|
|
14453
|
+
char,
|
|
14454
|
+
hasFakeCaret && /* @__PURE__ */ jsx(
|
|
14455
|
+
"div",
|
|
14456
|
+
{
|
|
14457
|
+
"aria-hidden": "true",
|
|
14458
|
+
className: "tw-pointer-events-none tw-absolute tw-inset-0 tw-flex tw-items-center tw-justify-center",
|
|
14459
|
+
children: /* @__PURE__ */ jsx("div", { className: "tw-h-1/2 tw-w-px tw-animate-caret-blink tw-bg-foreground" })
|
|
14460
|
+
}
|
|
14461
|
+
)
|
|
14462
|
+
]
|
|
14463
|
+
}
|
|
14464
|
+
);
|
|
14465
|
+
};
|
|
14466
|
+
var Root31 = ({
|
|
14467
|
+
ref,
|
|
14468
|
+
sizing = "md",
|
|
14469
|
+
state = "default",
|
|
14470
|
+
pattern = REGEXP_ONLY_DIGITS,
|
|
14471
|
+
containerClassName,
|
|
14472
|
+
className,
|
|
14473
|
+
children,
|
|
14474
|
+
...rest
|
|
14475
|
+
}) => /* @__PURE__ */ jsx(InputOtpVariantContext, { value: { sizing, state }, children: /* @__PURE__ */ jsx(
|
|
14476
|
+
OTPInput,
|
|
14477
|
+
{
|
|
14478
|
+
...rest,
|
|
14479
|
+
ref,
|
|
14480
|
+
pattern,
|
|
14481
|
+
"aria-invalid": state === "error" || void 0,
|
|
14482
|
+
containerClassName: cn(
|
|
14483
|
+
"tw-flex tw-items-center tw-gap-2 has-[:disabled]:tw-opacity-50",
|
|
14484
|
+
containerClassName
|
|
14485
|
+
),
|
|
14486
|
+
className: cn("disabled:tw-cursor-not-allowed", className),
|
|
14487
|
+
children
|
|
14488
|
+
}
|
|
14489
|
+
) });
|
|
14490
|
+
var InputOtp = Object.assign(Root31, {
|
|
14491
|
+
Group: InputOtpGroup,
|
|
14492
|
+
Slot: InputOtpSlot,
|
|
14493
|
+
Separator: InputOtpSeparator
|
|
14494
|
+
});
|
|
14495
|
+
|
|
14496
|
+
// src/blocks/InputOtp/index.ts
|
|
14497
|
+
var useInputOtpContext = () => {
|
|
14498
|
+
const ctx = use(OTPInputContext);
|
|
14499
|
+
if (!ctx.slots) {
|
|
14500
|
+
throw new Error("useInputOtpContext must be used inside <InputOtp>.");
|
|
14501
|
+
}
|
|
14502
|
+
return ctx;
|
|
14503
|
+
};
|
|
14285
14504
|
var { fieldContext, useFieldContext, formContext, useFormContext } = createFormHookContexts();
|
|
14286
14505
|
var FormBody = ({ children, className, ...formProps }) => {
|
|
14287
14506
|
const form = useFormContext();
|
|
@@ -14289,7 +14508,7 @@ var FormBody = ({ children, className, ...formProps }) => {
|
|
|
14289
14508
|
"form",
|
|
14290
14509
|
{
|
|
14291
14510
|
...formProps,
|
|
14292
|
-
className: cn
|
|
14511
|
+
className: cn("tw-flex tw-flex-col tw-gap-4", className),
|
|
14293
14512
|
onSubmit: (e) => {
|
|
14294
14513
|
e.preventDefault();
|
|
14295
14514
|
e.stopPropagation();
|
|
@@ -14306,7 +14525,7 @@ var SubmitButton = ({ children = "Submit", ...buttonProps }) => {
|
|
|
14306
14525
|
{
|
|
14307
14526
|
selector: (state) => ({ isSubmitting: state.isSubmitting, canSubmit: state.canSubmit }),
|
|
14308
14527
|
children: ({ isSubmitting, canSubmit }) => /* @__PURE__ */ jsx(
|
|
14309
|
-
Button
|
|
14528
|
+
Button,
|
|
14310
14529
|
{
|
|
14311
14530
|
...buttonProps,
|
|
14312
14531
|
type: "submit",
|
|
@@ -14331,19 +14550,19 @@ var errorMessage = (field) => {
|
|
|
14331
14550
|
var FieldShell = ({ field, label, required, help, className, children }) => {
|
|
14332
14551
|
const error = errorMessage(field);
|
|
14333
14552
|
const showError = field.state.meta.isTouched && !!error;
|
|
14334
|
-
return /* @__PURE__ */ jsxs(FormGroup
|
|
14335
|
-
label && /* @__PURE__ */ jsxs(Label
|
|
14553
|
+
return /* @__PURE__ */ jsxs(FormGroup, { className, state: showError ? "error" : void 0, children: [
|
|
14554
|
+
label && /* @__PURE__ */ jsxs(Label, { htmlFor: field.name, children: [
|
|
14336
14555
|
label,
|
|
14337
14556
|
required && /* @__PURE__ */ jsx("span", { className: "tw-ml-0.5 tw-text-secondary-500", children: "*" })
|
|
14338
14557
|
] }),
|
|
14339
14558
|
children,
|
|
14340
|
-
showError ? /* @__PURE__ */ jsx(FormGroup
|
|
14559
|
+
showError ? /* @__PURE__ */ jsx(FormGroup.Help, { children: error }) : help && /* @__PURE__ */ jsx(FormGroup.Help, { children: help })
|
|
14341
14560
|
] });
|
|
14342
14561
|
};
|
|
14343
14562
|
var CheckboxField = ({ label, help, className, children, ...checkboxProps }) => {
|
|
14344
14563
|
const field = useFieldContext();
|
|
14345
14564
|
return /* @__PURE__ */ jsx(FieldShell, { field, help, className, children: /* @__PURE__ */ jsx(
|
|
14346
|
-
Checkbox
|
|
14565
|
+
Checkbox,
|
|
14347
14566
|
{
|
|
14348
14567
|
id: field.name,
|
|
14349
14568
|
name: field.name,
|
|
@@ -14360,7 +14579,7 @@ var CheckboxField = ({ label, help, className, children, ...checkboxProps }) =>
|
|
|
14360
14579
|
var NumberField = ({ label, required, help, className, ...inputProps }) => {
|
|
14361
14580
|
const field = useFieldContext();
|
|
14362
14581
|
return /* @__PURE__ */ jsx(FieldShell, { field, label, required, help, className, children: /* @__PURE__ */ jsx(
|
|
14363
|
-
FormGroup
|
|
14582
|
+
FormGroup.NumberInput,
|
|
14364
14583
|
{
|
|
14365
14584
|
id: field.name,
|
|
14366
14585
|
name: field.name,
|
|
@@ -14377,7 +14596,7 @@ var PasswordField = ({ label, required, help, className, ...inputProps }) => {
|
|
|
14377
14596
|
const field = useFieldContext();
|
|
14378
14597
|
const showError = field.state.meta.isTouched && field.state.meta.errors.length > 0;
|
|
14379
14598
|
return /* @__PURE__ */ jsx(FieldShell, { field, label, required, help, className, children: /* @__PURE__ */ jsx(
|
|
14380
|
-
PasswordInput
|
|
14599
|
+
PasswordInput,
|
|
14381
14600
|
{
|
|
14382
14601
|
id: field.name,
|
|
14383
14602
|
name: field.name,
|
|
@@ -14406,7 +14625,7 @@ var SelectField = ({
|
|
|
14406
14625
|
}) => {
|
|
14407
14626
|
const field = useFieldContext();
|
|
14408
14627
|
return /* @__PURE__ */ jsx(FieldShell, { field, label, required, help, className, children: /* @__PURE__ */ jsxs(
|
|
14409
|
-
Select
|
|
14628
|
+
Select.Root,
|
|
14410
14629
|
{
|
|
14411
14630
|
value: field.state.value ?? "",
|
|
14412
14631
|
onValueChange: (value) => {
|
|
@@ -14415,7 +14634,7 @@ var SelectField = ({
|
|
|
14415
14634
|
...rootProps,
|
|
14416
14635
|
children: [
|
|
14417
14636
|
/* @__PURE__ */ jsx(
|
|
14418
|
-
Select
|
|
14637
|
+
Select.Trigger,
|
|
14419
14638
|
{
|
|
14420
14639
|
id: field.name,
|
|
14421
14640
|
className: triggerClassName ?? "tw-w-full",
|
|
@@ -14426,7 +14645,7 @@ var SelectField = ({
|
|
|
14426
14645
|
onBlur: field.handleBlur
|
|
14427
14646
|
}
|
|
14428
14647
|
),
|
|
14429
|
-
/* @__PURE__ */ jsx(Select
|
|
14648
|
+
/* @__PURE__ */ jsx(Select.Content, { variant: variant === "argo" ? "argo" : "default", children: options.map((option) => /* @__PURE__ */ jsx(Select.Item, { value: option.value, children: option.label }, option.value)) })
|
|
14430
14649
|
]
|
|
14431
14650
|
}
|
|
14432
14651
|
) });
|
|
@@ -14434,7 +14653,7 @@ var SelectField = ({
|
|
|
14434
14653
|
var SwitchField = ({ label, help, className, children, ...switchProps }) => {
|
|
14435
14654
|
const field = useFieldContext();
|
|
14436
14655
|
return /* @__PURE__ */ jsx(FieldShell, { field, help, className, children: /* @__PURE__ */ jsx(
|
|
14437
|
-
Switch
|
|
14656
|
+
Switch,
|
|
14438
14657
|
{
|
|
14439
14658
|
id: field.name,
|
|
14440
14659
|
name: field.name,
|
|
@@ -14451,7 +14670,7 @@ var SwitchField = ({ label, help, className, children, ...switchProps }) => {
|
|
|
14451
14670
|
var TextAreaField = ({ label, required, help, className, ...inputProps }) => {
|
|
14452
14671
|
const field = useFieldContext();
|
|
14453
14672
|
return /* @__PURE__ */ jsx(FieldShell, { field, label, required, help, className, children: /* @__PURE__ */ jsx(
|
|
14454
|
-
FormGroup
|
|
14673
|
+
FormGroup.Textarea,
|
|
14455
14674
|
{
|
|
14456
14675
|
id: field.name,
|
|
14457
14676
|
name: field.name,
|
|
@@ -14467,7 +14686,7 @@ var TextAreaField = ({ label, required, help, className, ...inputProps }) => {
|
|
|
14467
14686
|
var TextField = ({ label, required, help, className, ...inputProps }) => {
|
|
14468
14687
|
const field = useFieldContext();
|
|
14469
14688
|
return /* @__PURE__ */ jsx(FieldShell, { field, label, required, help, className, children: /* @__PURE__ */ jsx(
|
|
14470
|
-
FormGroup
|
|
14689
|
+
FormGroup.TextInput,
|
|
14471
14690
|
{
|
|
14472
14691
|
id: field.name,
|
|
14473
14692
|
name: field.name,
|
|
@@ -14748,6 +14967,6 @@ function useAutosizeInput({
|
|
|
14748
14967
|
return { inputRef, inputStyle, sizerElement };
|
|
14749
14968
|
}
|
|
14750
14969
|
|
|
14751
|
-
export { Alert, AnswerSummary, AutoSaveTextarea, Avatar, Badge, Breadcrumb, Button, ButtonGroup, ButtonInline, Calendar2 as Calendar, Card, Checkbox, Clipboard, ClipboardButton, ClipboardInline, CodeEditor, Collapse, Collapsible, CollapsiblePanel, CollapsibleStepHeader, ColorInput, Combobox, Command, CommandGroup, CommandInput, CommandItem, CommandList, ConflictStatusIndicator, DateInput, DatePicker, DateRangeInput, DiffType, DiffView, DotsLoader, DropdownMenu, EmptyConfigurationActionCard, EmptySearchContent, EmptyState, ErrorState, FormGroup, FullScreenModal, FullScreenModalBody, FullScreenModalHeader, HelpBlock, HoverCard, Icon, InlineStepDetail, InlineStepLabel, InputGroup, Kbd, Label, Link2 as Link, MarkedText, MergeEditor, MessageBubble, Modal, MultiActionButtonGroup, MultiCombobox, Navbar, NumberInput, PageHeader, PageLayout, PageToolbar, Pagination, PaneHeader, PanelWithDetails, PasswordInput, PlanApproval, PlanRewritingIndicator, Popconfirm, Popover, Progress, PromptInput, Question, QuestionBlock, RadioGroup, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Search2 as Search, SearchForm, SearchInput, SearchInputWithNavigation, Select, Separator, Sheet, Sidebar, SidebarProvider, Skeleton, SkeletonList, Slider, SplitButton, SqlEditor, SuggestedPrompt, Switch, Table2 as Table, Tabs, TabsContent, Tagger, TextInput, Textarea, ThemeProvider, ThinkingIndicator, TimeInput, TimePicker, Timeline, Toaster, Toggle, ToggleGroup, Tooltip, TooltipProvider, Truncated, ZoomableSvg, argoVariants, cn, computeDiffRows, computeLineInformation, copyToClipboard, isIconName, isMac, kbdVariants, keys, mergeRefs, setServerFieldErrors, toast, useAppForm, useAutosizeInput, useMergeDiff, useNotification, useScrollbarPosition, useSidebar, withForm };
|
|
14970
|
+
export { Alert, AnswerSummary, AutoSaveTextarea, Avatar, Badge, Breadcrumb, Button, ButtonGroup, ButtonInline, Calendar2 as Calendar, Card, Checkbox, Clipboard, ClipboardButton, ClipboardInline, CodeEditor, Collapse, Collapsible, CollapsiblePanel, CollapsibleStepHeader, ColorInput, Combobox, Command, CommandGroup, CommandInput, CommandItem, CommandList, ConflictStatusIndicator, DateInput, DatePicker, DateRangeInput, DiffType, DiffView, DotsLoader, DropdownMenu, EmptyConfigurationActionCard, EmptySearchContent, EmptyState, ErrorState, FormGroup, FullScreenModal, FullScreenModalBody, FullScreenModalHeader, HelpBlock, HoverCard, Icon, InlineStepDetail, InlineStepLabel, InputGroup, InputOtp, Kbd, Label, Link2 as Link, MarkedText, MergeEditor, MessageBubble, Modal, MultiActionButtonGroup, MultiCombobox, Navbar, NumberInput, PageHeader, PageLayout, PageToolbar, Pagination, PaneHeader, PanelWithDetails, PasswordInput, PlanApproval, PlanRewritingIndicator, Popconfirm, Popover, Progress, PromptInput, Question, QuestionBlock, RadioGroup, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Search2 as Search, SearchForm, SearchInput, SearchInputWithNavigation, Select, Separator, Sheet, Sidebar, SidebarProvider, Skeleton, SkeletonList, Slider, SplitButton, SqlEditor, SuggestedPrompt, Switch, Table2 as Table, Tabs, TabsContent, Tagger, TextInput, Textarea, ThemeProvider, ThinkingIndicator, TimeInput, TimePicker, Timeline, Toaster, Toggle, ToggleGroup, Tooltip, TooltipProvider, Truncated, ZoomableSvg, argoVariants, cn, computeDiffRows, computeLineInformation, copyToClipboard, isIconName, isMac, kbdVariants, keys, mergeRefs, setServerFieldErrors, toast, useAppForm, useAutosizeInput, useInputOtpContext, useMergeDiff, useNotification, useScrollbarPosition, useSidebar, withForm };
|
|
14752
14971
|
//# sourceMappingURL=index.js.map
|
|
14753
14972
|
//# sourceMappingURL=index.js.map
|