@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.cjs
CHANGED
|
@@ -8,26 +8,24 @@ var react = require('react');
|
|
|
8
8
|
var reactTooltip = require('@radix-ui/react-tooltip');
|
|
9
9
|
var classVarianceAuthority = require('class-variance-authority');
|
|
10
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
11
|
-
var icons = require('@awesome.me/kit-be8bcf7e5e/icons');
|
|
12
|
-
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
13
11
|
var reactDayPicker = require('react-day-picker');
|
|
14
12
|
require('react-day-picker/src/style.css');
|
|
15
13
|
var reactPopover = require('@radix-ui/react-popover');
|
|
16
14
|
var ScrollAreaPrimitive2 = require('@radix-ui/react-scroll-area');
|
|
17
15
|
var TextareaAutosize = require('react-textarea-autosize');
|
|
18
16
|
var RLabel = require('@radix-ui/react-label');
|
|
19
|
-
var design = require('@keboola/design');
|
|
20
17
|
var reactSwitch = require('@radix-ui/react-switch');
|
|
21
18
|
var reactHoverCard = require('@radix-ui/react-hover-card');
|
|
22
19
|
var RSeparator = require('@radix-ui/react-separator');
|
|
23
20
|
var RRadioGroup = require('@radix-ui/react-radio-group');
|
|
24
21
|
var reactSlider = require('@radix-ui/react-slider');
|
|
25
22
|
var SelectPrimitive = require('@radix-ui/react-select');
|
|
23
|
+
var icons = require('@awesome.me/kit-be8bcf7e5e/icons');
|
|
24
|
+
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
26
25
|
var reactCheckbox = require('@radix-ui/react-checkbox');
|
|
27
26
|
var DropdownMenuPrimitive3 = require('@radix-ui/react-dropdown-menu');
|
|
28
27
|
var DialogPrimitive = require('@radix-ui/react-dialog');
|
|
29
28
|
var reactDom = require('react-dom');
|
|
30
|
-
var icons$1 = require('@keboola/design/icons');
|
|
31
29
|
var reactCollapsible = require('@radix-ui/react-collapsible');
|
|
32
30
|
var cmdk = require('cmdk');
|
|
33
31
|
var combobox = require('@base-ui/react/combobox');
|
|
@@ -60,6 +58,7 @@ var state = require('@codemirror/state');
|
|
|
60
58
|
var nodeDiff3 = require('node-diff3');
|
|
61
59
|
var ResizablePrimitive = require('react-resizable-panels');
|
|
62
60
|
var sonner = require('sonner');
|
|
61
|
+
var inputOtp = require('input-otp');
|
|
63
62
|
var reactForm = require('@tanstack/react-form');
|
|
64
63
|
|
|
65
64
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -234,7 +233,7 @@ var TooltipTrigger = ({
|
|
|
234
233
|
if (keepOpenOnClick) event.preventDefault();
|
|
235
234
|
onClick?.(event);
|
|
236
235
|
};
|
|
237
|
-
const
|
|
236
|
+
const handlePointerDown = (event) => {
|
|
238
237
|
if (keepOpenOnClick) event.preventDefault();
|
|
239
238
|
onPointerDown?.(event);
|
|
240
239
|
};
|
|
@@ -246,8 +245,16 @@ var TooltipTrigger = ({
|
|
|
246
245
|
ref,
|
|
247
246
|
className: cn("tailwindcss-preflight", className),
|
|
248
247
|
onClick: handleClick,
|
|
249
|
-
onPointerDown:
|
|
250
|
-
children: asChild ? children :
|
|
248
|
+
onPointerDown: handlePointerDown,
|
|
249
|
+
children: asChild ? children : (
|
|
250
|
+
// Default-mode trigger wraps children in a span so Radix has a
|
|
251
|
+
// single DOM element to attach handlers to. `tailwindcss-preflight`
|
|
252
|
+
// (merged in via Slot) activates Tailwind's preflight inside the
|
|
253
|
+
// span, which sets `svg { display: block }` — without an inline-flex
|
|
254
|
+
// container that would stack any bare Lucide icon onto its own
|
|
255
|
+
// line. `tw-inline-flex tw-items-center` keeps icon + text aligned.
|
|
256
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "tw-inline-flex tw-items-center", children })
|
|
257
|
+
)
|
|
251
258
|
}
|
|
252
259
|
);
|
|
253
260
|
};
|
|
@@ -365,29 +372,20 @@ var sha256 = async (text) => {
|
|
|
365
372
|
var useSHA256 = (text) => {
|
|
366
373
|
const [hash, setHash] = react.useState("");
|
|
367
374
|
react.useEffect(() => {
|
|
368
|
-
if (text) {
|
|
369
|
-
|
|
375
|
+
if (!text) {
|
|
376
|
+
setHash("");
|
|
377
|
+
return;
|
|
370
378
|
}
|
|
379
|
+
let cancelled = false;
|
|
380
|
+
sha256(text).then((h) => {
|
|
381
|
+
if (!cancelled) setHash(h);
|
|
382
|
+
});
|
|
383
|
+
return () => {
|
|
384
|
+
cancelled = true;
|
|
385
|
+
};
|
|
371
386
|
}, [text]);
|
|
372
387
|
return hash;
|
|
373
388
|
};
|
|
374
|
-
var Icon = ({ ref, icon, ...rest }) => /* @__PURE__ */ jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, { ...rest, ref, icon });
|
|
375
|
-
|
|
376
|
-
// src/components/Icon/index.ts
|
|
377
|
-
var validIconNames;
|
|
378
|
-
var getValidIconNames = () => {
|
|
379
|
-
if (validIconNames) return validIconNames;
|
|
380
|
-
validIconNames = new Set(
|
|
381
|
-
Object.values(icons.fas).flatMap((def) => {
|
|
382
|
-
if (def !== null && typeof def === "object" && "iconName" in def && typeof def.iconName === "string") {
|
|
383
|
-
return [def.iconName];
|
|
384
|
-
}
|
|
385
|
-
return [];
|
|
386
|
-
})
|
|
387
|
-
);
|
|
388
|
-
return validIconNames;
|
|
389
|
-
};
|
|
390
|
-
var isIconName = (name) => getValidIconNames().has(name);
|
|
391
389
|
var variants = classVarianceAuthority.cva(
|
|
392
390
|
[
|
|
393
391
|
"tailwindcss-preflight",
|
|
@@ -511,15 +509,38 @@ var variants = classVarianceAuthority.cva(
|
|
|
511
509
|
]
|
|
512
510
|
},
|
|
513
511
|
size: {
|
|
514
|
-
medium: [
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
512
|
+
medium: [
|
|
513
|
+
"tw-max-h-10",
|
|
514
|
+
"tw-min-h-10",
|
|
515
|
+
"tw-px-4",
|
|
516
|
+
"tw-py-2.5",
|
|
517
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4'
|
|
518
|
+
],
|
|
519
|
+
small: [
|
|
520
|
+
"tw-max-h-8",
|
|
521
|
+
"tw-min-h-8",
|
|
522
|
+
"tw-px-4",
|
|
523
|
+
"tw-py-1.5",
|
|
524
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4'
|
|
525
|
+
],
|
|
526
|
+
large: [
|
|
527
|
+
"tw-max-h-12",
|
|
528
|
+
"tw-min-h-12",
|
|
529
|
+
"tw-px-4",
|
|
530
|
+
"tw-py-3.5",
|
|
531
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4'
|
|
532
|
+
],
|
|
533
|
+
"icon-lg": ["tw-size-12", "tw-p-0", '[&_svg:not([class*="tw-size-"])]:tw-size-6'],
|
|
534
|
+
icon: ["tw-size-10", "tw-p-0", '[&_svg:not([class*="tw-size-"])]:tw-size-4'],
|
|
535
|
+
"icon-sm": ["tw-size-8", "tw-p-0", '[&_svg:not([class*="tw-size-"])]:tw-size-4'],
|
|
536
|
+
"icon-xs": ["tw-size-6", "tw-p-0", '[&_svg:not([class*="tw-size-"])]:tw-size-4'],
|
|
537
|
+
"icon-2xs": [
|
|
538
|
+
"!tw-inline-flex",
|
|
539
|
+
"tw-size-5",
|
|
540
|
+
"tw-max-h-5",
|
|
541
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3'
|
|
542
|
+
],
|
|
543
|
+
"icon-3xs": ["tw-h-fit", "tw-w-fit", '[&_svg:not([class*="tw-size-"])]:tw-size-4']
|
|
523
544
|
}
|
|
524
545
|
}
|
|
525
546
|
}
|
|
@@ -652,10 +673,10 @@ var Button = ({
|
|
|
652
673
|
variant = "primary",
|
|
653
674
|
size = "medium",
|
|
654
675
|
block = false,
|
|
655
|
-
icon,
|
|
656
676
|
...buttonProps
|
|
657
677
|
}) => {
|
|
658
678
|
const Comp = asChild ? reactSlot.Root : "button";
|
|
679
|
+
const isIconOnly = String(size).startsWith("icon");
|
|
659
680
|
const classNames = argo ? argoVariants({ variant, size, block, className }) : variants({
|
|
660
681
|
size,
|
|
661
682
|
variant,
|
|
@@ -678,14 +699,13 @@ var Button = ({
|
|
|
678
699
|
disabled,
|
|
679
700
|
"aria-disabled": disabled,
|
|
680
701
|
"data-variant": variant,
|
|
681
|
-
"data-icon-only":
|
|
702
|
+
"data-icon-only": isIconOnly,
|
|
682
703
|
type,
|
|
683
704
|
onClick: handleClick,
|
|
684
705
|
className: cn(classNames),
|
|
685
706
|
children: [
|
|
686
707
|
isLoading && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "tw-size-4 tw-shrink-0 tw-animate-spin" }),
|
|
687
|
-
|
|
688
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children })
|
|
708
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children: isLoading && isIconOnly ? null : children })
|
|
689
709
|
]
|
|
690
710
|
}
|
|
691
711
|
);
|
|
@@ -2083,21 +2103,21 @@ var Clipboard = ({
|
|
|
2083
2103
|
return tooltip;
|
|
2084
2104
|
})();
|
|
2085
2105
|
const tooltipVariant = state === "ready" && !!text ? tooltipVariantProp : "action";
|
|
2086
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2106
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Tooltip.Root, { open: isTooltipOpen, onOpenChange: handleOnOpenChange, children: [
|
|
2087
2107
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2088
|
-
|
|
2108
|
+
Tooltip.Trigger,
|
|
2089
2109
|
{
|
|
2090
2110
|
...restButtonProps,
|
|
2091
2111
|
asChild,
|
|
2092
2112
|
keepOpenOnClick: true,
|
|
2093
2113
|
onClick: handleOnClick,
|
|
2094
|
-
className:
|
|
2114
|
+
className: cn("tw-cursor-pointer", className),
|
|
2095
2115
|
ref,
|
|
2096
2116
|
children: children ?? text
|
|
2097
2117
|
}
|
|
2098
2118
|
),
|
|
2099
2119
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2100
|
-
|
|
2120
|
+
Tooltip.Content,
|
|
2101
2121
|
{
|
|
2102
2122
|
keepOpenOnPointerDownOutside: true,
|
|
2103
2123
|
placement: tooltipPlacement,
|
|
@@ -3096,39 +3116,53 @@ var Search2 = ({
|
|
|
3096
3116
|
onChange?.("", event);
|
|
3097
3117
|
onClear?.();
|
|
3098
3118
|
};
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
{
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3119
|
+
const handleWrapperMouseDown = (event) => {
|
|
3120
|
+
if (disabled || readOnly) return;
|
|
3121
|
+
if (event.target.closest('button, a, input, textarea, [role="button"]')) {
|
|
3122
|
+
return;
|
|
3123
|
+
}
|
|
3124
|
+
event.preventDefault();
|
|
3125
|
+
event.currentTarget.querySelector("input")?.focus();
|
|
3126
|
+
};
|
|
3127
|
+
return (
|
|
3128
|
+
// Mouse-only convenience: clicking the chrome focuses the input. The input itself is the
|
|
3129
|
+
// real interactive/focusable target, so no extra role or key handler is needed here.
|
|
3130
|
+
// oxlint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
3131
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3132
|
+
"div",
|
|
3133
|
+
{
|
|
3134
|
+
className: cn(
|
|
3135
|
+
searchWrapperVariants({ variant }),
|
|
3114
3136
|
{
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
"data-testid": testId.input,
|
|
3119
|
-
type: "text",
|
|
3120
|
-
value: internalValue ?? "",
|
|
3121
|
-
onChange: handleChange,
|
|
3122
|
-
onBlur: handleBlur,
|
|
3123
|
-
className: searchInputClassnames,
|
|
3124
|
-
disabled,
|
|
3125
|
-
readOnly
|
|
3126
|
-
}
|
|
3137
|
+
"tw-cursor-not-allowed tw-opacity-40": disabled
|
|
3138
|
+
},
|
|
3139
|
+
className
|
|
3127
3140
|
),
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3141
|
+
"data-testid": testId.wrapper,
|
|
3142
|
+
onMouseDown: handleWrapperMouseDown,
|
|
3143
|
+
children: [
|
|
3144
|
+
variant === "ai" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "tw-size-4 tw-shrink-0 [&_*]:tw-stroke-aigradient-600" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "tw-size-4 tw-shrink-0 tw-text-neutral-400" }),
|
|
3145
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3146
|
+
"input",
|
|
3147
|
+
{
|
|
3148
|
+
...rest,
|
|
3149
|
+
ref,
|
|
3150
|
+
placeholder,
|
|
3151
|
+
"data-testid": testId.input,
|
|
3152
|
+
type: "text",
|
|
3153
|
+
value: internalValue ?? "",
|
|
3154
|
+
onChange: handleChange,
|
|
3155
|
+
onBlur: handleBlur,
|
|
3156
|
+
className: searchInputClassnames,
|
|
3157
|
+
disabled,
|
|
3158
|
+
readOnly
|
|
3159
|
+
}
|
|
3160
|
+
),
|
|
3161
|
+
isClearButtonVisible && /* @__PURE__ */ jsxRuntime.jsx(ClearButton, { onClick: handleClear, testId: testId.clearButton }),
|
|
3162
|
+
suffix
|
|
3163
|
+
]
|
|
3164
|
+
}
|
|
3165
|
+
)
|
|
3132
3166
|
);
|
|
3133
3167
|
};
|
|
3134
3168
|
var SearchForm = ({
|
|
@@ -3162,7 +3196,7 @@ var scrollButtonStyles = cn(
|
|
|
3162
3196
|
"tw-justify-center",
|
|
3163
3197
|
"tw-rounded-sm",
|
|
3164
3198
|
"tw-p-1",
|
|
3165
|
-
|
|
3199
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-5'
|
|
3166
3200
|
);
|
|
3167
3201
|
var SelectContent = ({
|
|
3168
3202
|
ref,
|
|
@@ -3233,6 +3267,23 @@ var SelectContent = ({
|
|
|
3233
3267
|
}
|
|
3234
3268
|
) });
|
|
3235
3269
|
var SelectGroup = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Group, { ...props, className: cn("tw-flex tw-flex-col tw-gap-0.5", className) });
|
|
3270
|
+
var Icon = ({ ref, icon, ...rest }) => /* @__PURE__ */ jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, { ...rest, ref, icon });
|
|
3271
|
+
|
|
3272
|
+
// src/components/Icon/index.ts
|
|
3273
|
+
var validIconNames;
|
|
3274
|
+
var getValidIconNames = () => {
|
|
3275
|
+
if (validIconNames) return validIconNames;
|
|
3276
|
+
validIconNames = new Set(
|
|
3277
|
+
Object.values(icons.fas).flatMap((def) => {
|
|
3278
|
+
if (def !== null && typeof def === "object" && "iconName" in def && typeof def.iconName === "string") {
|
|
3279
|
+
return [def.iconName];
|
|
3280
|
+
}
|
|
3281
|
+
return [];
|
|
3282
|
+
})
|
|
3283
|
+
);
|
|
3284
|
+
return validIconNames;
|
|
3285
|
+
};
|
|
3286
|
+
var isIconName = (name) => getValidIconNames().has(name);
|
|
3236
3287
|
var isFAIconValue = (value) => typeof value === "string" || Array.isArray(value) && value.length === 2 && typeof value[0] === "string" && typeof value[1] === "string";
|
|
3237
3288
|
var renderLegacyIcon = (value) => isFAIconValue(value) ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: value }) : value;
|
|
3238
3289
|
var SelectItem = ({
|
|
@@ -3658,7 +3709,7 @@ var variants4 = classVarianceAuthority.cva(
|
|
|
3658
3709
|
"tw-border-border",
|
|
3659
3710
|
"tw-rounded-full",
|
|
3660
3711
|
"tw-bg-white",
|
|
3661
|
-
|
|
3712
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-2',
|
|
3662
3713
|
"[&_svg]:data-[state=unchecked]:tw-hidden",
|
|
3663
3714
|
// Lucide Circle is stroke-only — force fill to match the stroke
|
|
3664
3715
|
// (currentColor) so the indicator reads as a solid dot.
|
|
@@ -3666,14 +3717,14 @@ var variants4 = classVarianceAuthority.cva(
|
|
|
3666
3717
|
"group-data-[variant=argo]/dropdown-menu-content:[&_svg]:tw-text-primary",
|
|
3667
3718
|
"group-data-[variant=default]/dropdown-menu-content:[&_svg]:tw-text-secondary-500"
|
|
3668
3719
|
],
|
|
3669
|
-
check: [
|
|
3720
|
+
check: ['[&_svg:not([class*="tw-size-"])]:tw-size-3.5', "[&_svg]:tw-text-primary"],
|
|
3670
3721
|
checkbox: [
|
|
3671
3722
|
"[&_svg]:tw-text-white",
|
|
3672
3723
|
"tw-border",
|
|
3673
3724
|
"tw-border-solid",
|
|
3674
3725
|
"tw-border-neutral-200",
|
|
3675
3726
|
"tw-rounded",
|
|
3676
|
-
|
|
3727
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3',
|
|
3677
3728
|
"[&_svg]:data-[state=unchecked]:tw-hidden",
|
|
3678
3729
|
"group-data-[variant=argo]/dropdown-menu-content:data-[state=checked]:tw-border-primary",
|
|
3679
3730
|
"group-data-[variant=argo]/dropdown-menu-content:data-[state=checked]:tw-bg-primary",
|
|
@@ -3684,7 +3735,7 @@ var variants4 = classVarianceAuthority.cva(
|
|
|
3684
3735
|
"tw-size-5",
|
|
3685
3736
|
// Lucide SVGs default to 24×24 — constrain the rendered ToggleRight
|
|
3686
3737
|
// to the indicator slot so it doesn't overflow.
|
|
3687
|
-
|
|
3738
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-5',
|
|
3688
3739
|
"tw-text-neutral-400",
|
|
3689
3740
|
"data-[state=unchecked]:tw-rotate-180",
|
|
3690
3741
|
"group-data-[variant=default]/dropdown-menu-content:data-[state=checked]:tw-text-secondary-500",
|
|
@@ -3732,7 +3783,7 @@ var ItemIcon = ({ className, children, ...props }) => /* @__PURE__ */ jsxRuntime
|
|
|
3732
3783
|
// 20px container fits the 16px Lucide glyph plus 2px breathing room
|
|
3733
3784
|
// each side — the previous tw-size-4 + tw-p-0.5 clipped the 16px child.
|
|
3734
3785
|
"tw-size-5",
|
|
3735
|
-
|
|
3786
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
3736
3787
|
"group-data-[variant=default]/dropdown-menu-content:tw-text-neutral-400",
|
|
3737
3788
|
"group-data-[variant=argo]/dropdown-menu-content:tw-text-primary",
|
|
3738
3789
|
"group-data-[variant=argo]/dropdown-menu-content:group-aria-disabled:tw-text-muted-foreground",
|
|
@@ -4353,10 +4404,10 @@ var ModalIcon = (props) => {
|
|
|
4353
4404
|
"tw-text-white": props.color !== "violet",
|
|
4354
4405
|
"tw-text-purple-500": props.color === "violet"
|
|
4355
4406
|
},
|
|
4356
|
-
|
|
4407
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-6',
|
|
4357
4408
|
"[&_svg]:tw-aspect-square"
|
|
4358
4409
|
),
|
|
4359
|
-
children:
|
|
4410
|
+
children: renderLegacyIcon(props.icon)
|
|
4360
4411
|
}
|
|
4361
4412
|
)
|
|
4362
4413
|
}
|
|
@@ -4397,7 +4448,7 @@ var Truncated = ({
|
|
|
4397
4448
|
const isScrollableTarget = (e) => {
|
|
4398
4449
|
return e.scrollHeight - OFFSET_TOLERANCE >= e.clientHeight;
|
|
4399
4450
|
};
|
|
4400
|
-
const truncatedClasses =
|
|
4451
|
+
const truncatedClasses = cn(
|
|
4401
4452
|
className,
|
|
4402
4453
|
"tw-overflow-hidden [word-break:break-all]",
|
|
4403
4454
|
"[display:-webkit-box!important] [-webkit-box-orient:vertical]",
|
|
@@ -4407,7 +4458,7 @@ var Truncated = ({
|
|
|
4407
4458
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { ref, className: truncatedClasses, ...rest, children: text });
|
|
4408
4459
|
}
|
|
4409
4460
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4410
|
-
|
|
4461
|
+
Tooltip,
|
|
4411
4462
|
{
|
|
4412
4463
|
placement: tooltipPlacement,
|
|
4413
4464
|
variant: tooltipVariant,
|
|
@@ -4740,7 +4791,7 @@ var SplitButtonBase = ({
|
|
|
4740
4791
|
size: iconSizeMap[size],
|
|
4741
4792
|
variant,
|
|
4742
4793
|
"aria-label": "Additional actions",
|
|
4743
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4794
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "tw-size-5" })
|
|
4744
4795
|
}
|
|
4745
4796
|
) }),
|
|
4746
4797
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenu.Content, { align: "end", children: actions })
|
|
@@ -5360,7 +5411,7 @@ var SidebarGroupAction = ({
|
|
|
5360
5411
|
"tw-text-neutral-800",
|
|
5361
5412
|
"tw-rounded-full",
|
|
5362
5413
|
// svg defaults: size + colour
|
|
5363
|
-
|
|
5414
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3',
|
|
5364
5415
|
"[&_svg]:tw-text-neutral-400",
|
|
5365
5416
|
"hover:[&_svg]:tw-text-secondary-600",
|
|
5366
5417
|
"hover:tw-bg-neutral-100",
|
|
@@ -5504,7 +5555,7 @@ var SidebarMenuIcon = ({
|
|
|
5504
5555
|
"tw-shrink-0",
|
|
5505
5556
|
"tw-p-0.5",
|
|
5506
5557
|
"tw-text-sidebar-primary",
|
|
5507
|
-
|
|
5558
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
5508
5559
|
className
|
|
5509
5560
|
),
|
|
5510
5561
|
children
|
|
@@ -5633,7 +5684,7 @@ var SidebarMenuAction = ({
|
|
|
5633
5684
|
"tw-rounded",
|
|
5634
5685
|
// icon styling
|
|
5635
5686
|
"[&_svg]:tw-shrink-0",
|
|
5636
|
-
|
|
5687
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3.5',
|
|
5637
5688
|
"[&_svg]:tw-text-sidebar-accent-foreground",
|
|
5638
5689
|
// focus visible
|
|
5639
5690
|
"focus-visible:tw-outline-none",
|
|
@@ -6519,7 +6570,7 @@ var CommandItem = ({
|
|
|
6519
6570
|
),
|
|
6520
6571
|
children: [
|
|
6521
6572
|
/* @__PURE__ */ jsxRuntime.jsx(CheckIndicator, { variant }),
|
|
6522
|
-
icon && /* @__PURE__ */ jsxRuntime.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 }),
|
|
6573
|
+
icon && /* @__PURE__ */ jsxRuntime.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 }),
|
|
6523
6574
|
children
|
|
6524
6575
|
]
|
|
6525
6576
|
}
|
|
@@ -6593,7 +6644,7 @@ var addonVariants2 = classVarianceAuthority.cva(
|
|
|
6593
6644
|
"tw-self-stretch",
|
|
6594
6645
|
"tw-px-1",
|
|
6595
6646
|
"has-[button]:tw-px-0",
|
|
6596
|
-
|
|
6647
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3'
|
|
6597
6648
|
],
|
|
6598
6649
|
{
|
|
6599
6650
|
defaultVariants: {
|
|
@@ -6664,7 +6715,7 @@ var BadgeButton = ({
|
|
|
6664
6715
|
// Default sizing for Lucide-icon children (which ship at 24×24); keeps
|
|
6665
6716
|
// the visual baseline aligned with the previous FA-icon API and other
|
|
6666
6717
|
// icon-wrapper components (ItemIcon, SidebarMenuIcon).
|
|
6667
|
-
|
|
6718
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3',
|
|
6668
6719
|
className
|
|
6669
6720
|
),
|
|
6670
6721
|
children
|
|
@@ -7067,7 +7118,7 @@ var ComboboxItemIndicator = ({
|
|
|
7067
7118
|
"group-data-[variant=default]/combobox-content:tw-right-4",
|
|
7068
7119
|
// Lucide SVGs default to 24×24 — constrain the rendered child so the
|
|
7069
7120
|
// 16px indicator slot owns the actual size.
|
|
7070
|
-
|
|
7121
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
7071
7122
|
"group-data-[highlighted]/combobox-item:tw-text-accent-foreground",
|
|
7072
7123
|
"group-data-[variant=default]/combobox-content:group-data-[highlighted]/combobox-item:tw-text-foreground",
|
|
7073
7124
|
className
|
|
@@ -7465,7 +7516,7 @@ var BreadcrumbLink = ({
|
|
|
7465
7516
|
"focus-visible:tw-ring-secondary-500/50",
|
|
7466
7517
|
"focus-visible:tw-rounded-sm",
|
|
7467
7518
|
// Icon
|
|
7468
|
-
|
|
7519
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3.5',
|
|
7469
7520
|
// transition
|
|
7470
7521
|
"tw-transition-colors",
|
|
7471
7522
|
className
|
|
@@ -7521,7 +7572,7 @@ var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */
|
|
|
7521
7572
|
"tw-justify-center",
|
|
7522
7573
|
"tw-aspect-square",
|
|
7523
7574
|
"tw-size-[15px]",
|
|
7524
|
-
|
|
7575
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-2.5',
|
|
7525
7576
|
"tw-text-muted-foreground",
|
|
7526
7577
|
className
|
|
7527
7578
|
),
|
|
@@ -7584,7 +7635,7 @@ var NavbarMenuAvatar = ({
|
|
|
7584
7635
|
...rest,
|
|
7585
7636
|
ref,
|
|
7586
7637
|
type,
|
|
7587
|
-
className:
|
|
7638
|
+
className: cn(
|
|
7588
7639
|
"tw-flex",
|
|
7589
7640
|
"tw-items-center",
|
|
7590
7641
|
"tw-justify-center",
|
|
@@ -7625,7 +7676,7 @@ var variants6 = classVarianceAuthority.cva(
|
|
|
7625
7676
|
"tw-flex",
|
|
7626
7677
|
"tw-justify-center",
|
|
7627
7678
|
"tw-items-center",
|
|
7628
|
-
|
|
7679
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-3',
|
|
7629
7680
|
"[&:not(svg)]:tw-h-5",
|
|
7630
7681
|
"[&:not(svg)]:tw-min-w-5",
|
|
7631
7682
|
"tw-p-1",
|
|
@@ -7657,7 +7708,7 @@ var variants6 = classVarianceAuthority.cva(
|
|
|
7657
7708
|
"group-data-[accent=orange]/navbar:tw-bg-warning-500",
|
|
7658
7709
|
"group-data-[accent=green]/navbar:tw-bg-primary-500"
|
|
7659
7710
|
],
|
|
7660
|
-
"icon-button": ["tw-size-4", "tw-
|
|
7711
|
+
"icon-button": ["tw-size-4", "!tw-p-0", '[&_svg:not([class*="tw-size-"])]:tw-size-4'],
|
|
7661
7712
|
shortcut: ["tw-bg-muted", "tw-text-sidebar-foreground", "tw-ml-auto"]
|
|
7662
7713
|
}
|
|
7663
7714
|
}
|
|
@@ -7759,7 +7810,7 @@ var NavbarMenuButton = ({
|
|
|
7759
7810
|
const Comp = asChild ? reactSlot.Root : "button";
|
|
7760
7811
|
const isSearchVariant = variant === "search";
|
|
7761
7812
|
const isEmphasizedVariant = variant === "emphasized";
|
|
7762
|
-
const adornment = isSearchVariant ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7813
|
+
const adornment = isSearchVariant ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, {}) : renderLegacyIcon(icon);
|
|
7763
7814
|
const adornmentVariant = (() => {
|
|
7764
7815
|
if (isSearchVariant || variant === "icon") return "icon-button";
|
|
7765
7816
|
if (isEmphasizedVariant) return "icon-accent-emphasized";
|
|
@@ -7772,7 +7823,7 @@ var NavbarMenuButton = ({
|
|
|
7772
7823
|
ref,
|
|
7773
7824
|
type,
|
|
7774
7825
|
"data-variant": variant,
|
|
7775
|
-
className:
|
|
7826
|
+
className: cn(variants7({ className, variant })),
|
|
7776
7827
|
children: [
|
|
7777
7828
|
adornment && /* @__PURE__ */ jsxRuntime.jsx(NavbarMenuItemAdornment, { variant: adornmentVariant, children: adornment }),
|
|
7778
7829
|
/* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children })
|
|
@@ -7875,7 +7926,7 @@ var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime
|
|
|
7875
7926
|
"tw-items-center",
|
|
7876
7927
|
"tw-justify-center",
|
|
7877
7928
|
"tw-text-foreground",
|
|
7878
|
-
|
|
7929
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
7879
7930
|
className
|
|
7880
7931
|
),
|
|
7881
7932
|
...props,
|
|
@@ -7969,7 +8020,7 @@ var Avatar = ({
|
|
|
7969
8020
|
...props,
|
|
7970
8021
|
ref,
|
|
7971
8022
|
style: styles.wrapper,
|
|
7972
|
-
className:
|
|
8023
|
+
className: cn(
|
|
7973
8024
|
variant === "circle" ? "tw-rounded-full" : "tw-rounded-md",
|
|
7974
8025
|
"tw-overflow-hidden",
|
|
7975
8026
|
"focus-visible:tw-outline-none",
|
|
@@ -8201,7 +8252,7 @@ var Toggle = ({
|
|
|
8201
8252
|
disabled,
|
|
8202
8253
|
children: [
|
|
8203
8254
|
badge && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tw-absolute tw-right-0 tw-top-0 -tw-translate-y-1/2 tw-translate-x-1/4", children: badge }),
|
|
8204
|
-
icon && /* @__PURE__ */ jsxRuntime.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) }),
|
|
8255
|
+
icon && /* @__PURE__ */ jsxRuntime.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) }),
|
|
8205
8256
|
isAiVariant ? /* @__PURE__ */ jsxRuntime.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
|
|
8206
8257
|
]
|
|
8207
8258
|
}
|
|
@@ -8366,7 +8417,11 @@ var connector = classVarianceAuthority.cva(
|
|
|
8366
8417
|
"tw-text-nowrap",
|
|
8367
8418
|
"tw-text-xs"
|
|
8368
8419
|
],
|
|
8369
|
-
icon: [
|
|
8420
|
+
icon: [
|
|
8421
|
+
"tw-bg-white",
|
|
8422
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
8423
|
+
"[&_svg]:tw-text-neutral-300"
|
|
8424
|
+
],
|
|
8370
8425
|
line: [
|
|
8371
8426
|
"tw-min-w-8",
|
|
8372
8427
|
"tw-overflow-hidden",
|
|
@@ -9209,7 +9264,7 @@ var ColorPicker = ({ value, disabled, readOnly, ...props }) => {
|
|
|
9209
9264
|
disabled: disabled || readOnly,
|
|
9210
9265
|
onClick: handleOpenPicker,
|
|
9211
9266
|
"aria-label": "Pick color",
|
|
9212
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9267
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Pipette, { className: "tw-size-4" })
|
|
9213
9268
|
}
|
|
9214
9269
|
)
|
|
9215
9270
|
] });
|
|
@@ -9627,7 +9682,7 @@ var AlertIcon = ({ variant, icon, className, ...rest }) => /* @__PURE__ */ jsxRu
|
|
|
9627
9682
|
"tw-justify-center",
|
|
9628
9683
|
"tw-self-start",
|
|
9629
9684
|
"tw-p-0.5",
|
|
9630
|
-
|
|
9685
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
9631
9686
|
"group-data-[variant=info]/alert:tw-text-secondary-500",
|
|
9632
9687
|
"group-data-[variant=warning]/alert:tw-text-warning-500",
|
|
9633
9688
|
"group-data-[variant=error]/alert:tw-text-error-500",
|
|
@@ -11986,7 +12041,7 @@ var ToastDismiss = ({
|
|
|
11986
12041
|
"tw-row-start-1",
|
|
11987
12042
|
"tailwindcss-preflight",
|
|
11988
12043
|
"[&_svg]:tw-aspect-square",
|
|
11989
|
-
|
|
12044
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
11990
12045
|
"[&_svg]:tw-m-1",
|
|
11991
12046
|
"tw-text-white",
|
|
11992
12047
|
"group-data-[variant=default]/toast:[&_svg]:tw-text-popover-foreground",
|
|
@@ -12131,13 +12186,14 @@ var ToastRoot = ({
|
|
|
12131
12186
|
"tw-inline-flex",
|
|
12132
12187
|
"tw-items-center",
|
|
12133
12188
|
"tw-justify-center",
|
|
12189
|
+
"tw-self-center",
|
|
12134
12190
|
// styles — container at 20px with no padding so the 20px Lucide
|
|
12135
12191
|
// glyph fills the slot (previous tw-size-4 + tw-p-1 clipped a
|
|
12136
12192
|
// 16px child into 8px of visible space)
|
|
12137
12193
|
"tw-aspect-square",
|
|
12138
12194
|
"tw-size-5",
|
|
12139
12195
|
"tw-shrink-0",
|
|
12140
|
-
|
|
12196
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-5',
|
|
12141
12197
|
"tw-text-white",
|
|
12142
12198
|
"group-data-[variant=default]/toast:tw-text-popover-foreground"
|
|
12143
12199
|
),
|
|
@@ -12267,8 +12323,8 @@ var emptyStateIconClassnames = classVarianceAuthority.cva(
|
|
|
12267
12323
|
{
|
|
12268
12324
|
variants: {
|
|
12269
12325
|
variant: {
|
|
12270
|
-
default: ["tw-size-16", "tw-text-4xl",
|
|
12271
|
-
compact: ["tw-size-10", "tw-text-2xl",
|
|
12326
|
+
default: ["tw-size-16", "tw-text-4xl", '[&_svg:not([class*="tw-size-"])]:tw-size-10'],
|
|
12327
|
+
compact: ["tw-size-10", "tw-text-2xl", '[&_svg:not([class*="tw-size-"])]:tw-size-6']
|
|
12272
12328
|
}
|
|
12273
12329
|
},
|
|
12274
12330
|
defaultVariants: {
|
|
@@ -12339,9 +12395,24 @@ var errorStateClassnames = classVarianceAuthority.cva(["tw-flex", "tw-flex-col",
|
|
|
12339
12395
|
var errorStateIconClassnames = classVarianceAuthority.cva(["tw-flex", "tw-items-center", "tw-justify-center"], {
|
|
12340
12396
|
variants: {
|
|
12341
12397
|
variant: {
|
|
12342
|
-
default: [
|
|
12343
|
-
|
|
12344
|
-
|
|
12398
|
+
default: [
|
|
12399
|
+
"tw-size-16",
|
|
12400
|
+
"tw-text-4xl",
|
|
12401
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-10',
|
|
12402
|
+
"tw-text-warning-500"
|
|
12403
|
+
],
|
|
12404
|
+
compact: [
|
|
12405
|
+
"tw-size-10",
|
|
12406
|
+
"tw-text-2xl",
|
|
12407
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-6',
|
|
12408
|
+
"tw-text-warning-500"
|
|
12409
|
+
],
|
|
12410
|
+
destructive: [
|
|
12411
|
+
"tw-size-16",
|
|
12412
|
+
"tw-text-4xl",
|
|
12413
|
+
'[&_svg:not([class*="tw-size-"])]:tw-size-10',
|
|
12414
|
+
"tw-text-error-500"
|
|
12415
|
+
]
|
|
12345
12416
|
}
|
|
12346
12417
|
},
|
|
12347
12418
|
defaultVariants: {
|
|
@@ -12499,6 +12570,7 @@ var PageHeaderDetail = ({
|
|
|
12499
12570
|
breadcrumbs,
|
|
12500
12571
|
overflowActions,
|
|
12501
12572
|
title,
|
|
12573
|
+
titleIcon,
|
|
12502
12574
|
badges,
|
|
12503
12575
|
description,
|
|
12504
12576
|
primaryAction,
|
|
@@ -12513,6 +12585,7 @@ var PageHeaderDetail = ({
|
|
|
12513
12585
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tw-flex tw-w-full tw-items-start tw-justify-between tw-gap-4", children: [
|
|
12514
12586
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tw-flex tw-min-w-0 tw-flex-1 tw-flex-col tw-gap-2 tw-pr-2", children: [
|
|
12515
12587
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: titleRowClass, children: [
|
|
12588
|
+
titleIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tw-flex tw-shrink-0 tw-items-center", children: titleIcon }),
|
|
12516
12589
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: titleClass, children: title }),
|
|
12517
12590
|
badges && /* @__PURE__ */ jsxRuntime.jsx("div", { className: badgesClass, children: badges })
|
|
12518
12591
|
] }),
|
|
@@ -12616,7 +12689,7 @@ var Root30 = ({ ref, className, children, ...props }) => /* @__PURE__ */ jsxRunt
|
|
|
12616
12689
|
children
|
|
12617
12690
|
}
|
|
12618
12691
|
);
|
|
12619
|
-
var
|
|
12692
|
+
var Search3 = ({ ref, className, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12620
12693
|
"div",
|
|
12621
12694
|
{
|
|
12622
12695
|
ref,
|
|
@@ -12674,7 +12747,7 @@ var AddFilter = ({ className, children, ...props }) => /* @__PURE__ */ jsxRuntim
|
|
|
12674
12747
|
var Clear = ({ className, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(Button, { argo: true, variant: "invisible", size: "small", className: cn("tw-ml-auto", className), ...props, children: children ?? "Clear all" });
|
|
12675
12748
|
var PageToolbar = Object.assign(Root30, {
|
|
12676
12749
|
/** Left slot — typically a `SearchInput`. */
|
|
12677
|
-
Search:
|
|
12750
|
+
Search: Search3,
|
|
12678
12751
|
/** Right cluster — host the four control groups below in the recommended order. */
|
|
12679
12752
|
Right,
|
|
12680
12753
|
/** Filter controls (`Combobox`, `Select`, `DatePicker`). */
|
|
@@ -12831,7 +12904,7 @@ var SearchInputWithNavigation = ({
|
|
|
12831
12904
|
}
|
|
12832
12905
|
};
|
|
12833
12906
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12834
|
-
|
|
12907
|
+
TextInput,
|
|
12835
12908
|
{
|
|
12836
12909
|
ref,
|
|
12837
12910
|
allowClear: true,
|
|
@@ -12847,7 +12920,7 @@ var SearchInputWithNavigation = ({
|
|
|
12847
12920
|
leftSuffix: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12848
12921
|
"div",
|
|
12849
12922
|
{
|
|
12850
|
-
className:
|
|
12923
|
+
className: cn("tw-flex tw-items-center tw-gap-3", {
|
|
12851
12924
|
"tw-hidden": !withControls
|
|
12852
12925
|
}),
|
|
12853
12926
|
children: [
|
|
@@ -12856,10 +12929,10 @@ var SearchInputWithNavigation = ({
|
|
|
12856
12929
|
"/",
|
|
12857
12930
|
totalResults
|
|
12858
12931
|
] }),
|
|
12859
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12860
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12932
|
+
/* @__PURE__ */ jsxRuntime.jsx(Separator, { orientation: "vertical", size: "3/4" }),
|
|
12933
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ButtonGroup, { children: [
|
|
12861
12934
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12862
|
-
|
|
12935
|
+
Button,
|
|
12863
12936
|
{
|
|
12864
12937
|
variant: "inline",
|
|
12865
12938
|
size: "icon-3xs",
|
|
@@ -12869,7 +12942,7 @@ var SearchInputWithNavigation = ({
|
|
|
12869
12942
|
}
|
|
12870
12943
|
),
|
|
12871
12944
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12872
|
-
|
|
12945
|
+
Button,
|
|
12873
12946
|
{
|
|
12874
12947
|
variant: "inline",
|
|
12875
12948
|
size: "icon-3xs",
|
|
@@ -12911,7 +12984,7 @@ var TagSelectCreateItem = ({ onCreate, value }) => {
|
|
|
12911
12984
|
className: cn("[&_svg]:tw-text-primary-500", {
|
|
12912
12985
|
"tw-hidden": !isCreateItemVisible
|
|
12913
12986
|
}),
|
|
12914
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12987
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "tw-size-4" }),
|
|
12915
12988
|
children: [
|
|
12916
12989
|
"Create",
|
|
12917
12990
|
" ",
|
|
@@ -14314,6 +14387,151 @@ var PasswordInput = ({
|
|
|
14314
14387
|
}
|
|
14315
14388
|
);
|
|
14316
14389
|
};
|
|
14390
|
+
var InputOtpVariantContext = react.createContext({
|
|
14391
|
+
sizing: "md",
|
|
14392
|
+
state: "default"
|
|
14393
|
+
});
|
|
14394
|
+
var useInputOtpVariant = () => react.use(InputOtpVariantContext);
|
|
14395
|
+
var useInputOtpRenderContext = () => react.use(inputOtp.OTPInputContext);
|
|
14396
|
+
var InputOtpGroup = ({
|
|
14397
|
+
ref,
|
|
14398
|
+
className,
|
|
14399
|
+
...props
|
|
14400
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("tw-flex tw-items-center tw-gap-2", className), ...props });
|
|
14401
|
+
var InputOtpSeparator = ({
|
|
14402
|
+
ref,
|
|
14403
|
+
children,
|
|
14404
|
+
className,
|
|
14405
|
+
...props
|
|
14406
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
14407
|
+
"div",
|
|
14408
|
+
{
|
|
14409
|
+
ref,
|
|
14410
|
+
role: "separator",
|
|
14411
|
+
"aria-orientation": "vertical",
|
|
14412
|
+
className: cn("tw-flex tw-items-center tw-text-muted-foreground", className),
|
|
14413
|
+
...props,
|
|
14414
|
+
children: children ?? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minus, { className: "tw-size-4" })
|
|
14415
|
+
}
|
|
14416
|
+
);
|
|
14417
|
+
var slotVariants = classVarianceAuthority.cva(
|
|
14418
|
+
[
|
|
14419
|
+
"tw-relative",
|
|
14420
|
+
"tw-flex",
|
|
14421
|
+
"tw-items-center",
|
|
14422
|
+
"tw-justify-center",
|
|
14423
|
+
"tw-border",
|
|
14424
|
+
"tw-border-input",
|
|
14425
|
+
"tw-bg-background",
|
|
14426
|
+
"tw-text-foreground",
|
|
14427
|
+
"tw-font-medium",
|
|
14428
|
+
"tw-tabular-nums",
|
|
14429
|
+
"tw-rounded-lg",
|
|
14430
|
+
"tw-transition",
|
|
14431
|
+
"tw-outline-none",
|
|
14432
|
+
// active slot sits above its neighbours so its ring isn't clipped
|
|
14433
|
+
"data-[active=true]:tw-z-10",
|
|
14434
|
+
"data-[active=true]:tw-border-primary",
|
|
14435
|
+
"data-[active=true]:tw-ring-2",
|
|
14436
|
+
"data-[active=true]:tw-ring-primary/50"
|
|
14437
|
+
],
|
|
14438
|
+
{
|
|
14439
|
+
defaultVariants: {
|
|
14440
|
+
sizing: "md",
|
|
14441
|
+
state: "default"
|
|
14442
|
+
},
|
|
14443
|
+
variants: {
|
|
14444
|
+
sizing: {
|
|
14445
|
+
sm: ["tw-h-8", "tw-w-8", "tw-text-sm"],
|
|
14446
|
+
md: ["tw-h-9", "tw-w-9", "tw-text-base"],
|
|
14447
|
+
lg: ["tw-h-10", "tw-w-10", "tw-text-lg"]
|
|
14448
|
+
},
|
|
14449
|
+
// `!` forces the border colour over the base `tw-border-input` once tailwind-merge dedupes.
|
|
14450
|
+
// Matches the pattern InputGroup uses for its argo error state.
|
|
14451
|
+
state: {
|
|
14452
|
+
default: [],
|
|
14453
|
+
error: [
|
|
14454
|
+
"!tw-border-destructive",
|
|
14455
|
+
"tw-bg-destructive/5",
|
|
14456
|
+
"data-[active=true]:!tw-border-destructive",
|
|
14457
|
+
"data-[active=true]:tw-ring-destructive/40"
|
|
14458
|
+
]
|
|
14459
|
+
}
|
|
14460
|
+
}
|
|
14461
|
+
}
|
|
14462
|
+
);
|
|
14463
|
+
var InputOtpSlot = ({
|
|
14464
|
+
ref,
|
|
14465
|
+
index,
|
|
14466
|
+
className,
|
|
14467
|
+
...props
|
|
14468
|
+
}) => {
|
|
14469
|
+
const { slots } = useInputOtpRenderContext();
|
|
14470
|
+
const { sizing, state } = useInputOtpVariant();
|
|
14471
|
+
const slot = slots[index];
|
|
14472
|
+
const char = slot?.char ?? null;
|
|
14473
|
+
const isActive = slot?.isActive ?? false;
|
|
14474
|
+
const hasFakeCaret = slot?.hasFakeCaret ?? false;
|
|
14475
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14476
|
+
"div",
|
|
14477
|
+
{
|
|
14478
|
+
ref,
|
|
14479
|
+
"data-active": isActive || void 0,
|
|
14480
|
+
"data-slot-index": index,
|
|
14481
|
+
className: cn(slotVariants({ sizing, state }), className),
|
|
14482
|
+
...props,
|
|
14483
|
+
children: [
|
|
14484
|
+
char,
|
|
14485
|
+
hasFakeCaret && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14486
|
+
"div",
|
|
14487
|
+
{
|
|
14488
|
+
"aria-hidden": "true",
|
|
14489
|
+
className: "tw-pointer-events-none tw-absolute tw-inset-0 tw-flex tw-items-center tw-justify-center",
|
|
14490
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tw-h-1/2 tw-w-px tw-animate-caret-blink tw-bg-foreground" })
|
|
14491
|
+
}
|
|
14492
|
+
)
|
|
14493
|
+
]
|
|
14494
|
+
}
|
|
14495
|
+
);
|
|
14496
|
+
};
|
|
14497
|
+
var Root31 = ({
|
|
14498
|
+
ref,
|
|
14499
|
+
sizing = "md",
|
|
14500
|
+
state = "default",
|
|
14501
|
+
pattern = inputOtp.REGEXP_ONLY_DIGITS,
|
|
14502
|
+
containerClassName,
|
|
14503
|
+
className,
|
|
14504
|
+
children,
|
|
14505
|
+
...rest
|
|
14506
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(InputOtpVariantContext, { value: { sizing, state }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14507
|
+
inputOtp.OTPInput,
|
|
14508
|
+
{
|
|
14509
|
+
...rest,
|
|
14510
|
+
ref,
|
|
14511
|
+
pattern,
|
|
14512
|
+
"aria-invalid": state === "error" || void 0,
|
|
14513
|
+
containerClassName: cn(
|
|
14514
|
+
"tw-flex tw-items-center tw-gap-2 has-[:disabled]:tw-opacity-50",
|
|
14515
|
+
containerClassName
|
|
14516
|
+
),
|
|
14517
|
+
className: cn("disabled:tw-cursor-not-allowed", className),
|
|
14518
|
+
children
|
|
14519
|
+
}
|
|
14520
|
+
) });
|
|
14521
|
+
var InputOtp = Object.assign(Root31, {
|
|
14522
|
+
Group: InputOtpGroup,
|
|
14523
|
+
Slot: InputOtpSlot,
|
|
14524
|
+
Separator: InputOtpSeparator
|
|
14525
|
+
});
|
|
14526
|
+
|
|
14527
|
+
// src/blocks/InputOtp/index.ts
|
|
14528
|
+
var useInputOtpContext = () => {
|
|
14529
|
+
const ctx = react.use(inputOtp.OTPInputContext);
|
|
14530
|
+
if (!ctx.slots) {
|
|
14531
|
+
throw new Error("useInputOtpContext must be used inside <InputOtp>.");
|
|
14532
|
+
}
|
|
14533
|
+
return ctx;
|
|
14534
|
+
};
|
|
14317
14535
|
var { fieldContext, useFieldContext, formContext, useFormContext } = reactForm.createFormHookContexts();
|
|
14318
14536
|
var FormBody = ({ children, className, ...formProps }) => {
|
|
14319
14537
|
const form = useFormContext();
|
|
@@ -14321,7 +14539,7 @@ var FormBody = ({ children, className, ...formProps }) => {
|
|
|
14321
14539
|
"form",
|
|
14322
14540
|
{
|
|
14323
14541
|
...formProps,
|
|
14324
|
-
className:
|
|
14542
|
+
className: cn("tw-flex tw-flex-col tw-gap-4", className),
|
|
14325
14543
|
onSubmit: (e) => {
|
|
14326
14544
|
e.preventDefault();
|
|
14327
14545
|
e.stopPropagation();
|
|
@@ -14338,7 +14556,7 @@ var SubmitButton = ({ children = "Submit", ...buttonProps }) => {
|
|
|
14338
14556
|
{
|
|
14339
14557
|
selector: (state) => ({ isSubmitting: state.isSubmitting, canSubmit: state.canSubmit }),
|
|
14340
14558
|
children: ({ isSubmitting, canSubmit }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
14341
|
-
|
|
14559
|
+
Button,
|
|
14342
14560
|
{
|
|
14343
14561
|
...buttonProps,
|
|
14344
14562
|
type: "submit",
|
|
@@ -14363,19 +14581,19 @@ var errorMessage = (field) => {
|
|
|
14363
14581
|
var FieldShell = ({ field, label, required, help, className, children }) => {
|
|
14364
14582
|
const error = errorMessage(field);
|
|
14365
14583
|
const showError = field.state.meta.isTouched && !!error;
|
|
14366
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14367
|
-
label && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14584
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(FormGroup, { className, state: showError ? "error" : void 0, children: [
|
|
14585
|
+
label && /* @__PURE__ */ jsxRuntime.jsxs(Label, { htmlFor: field.name, children: [
|
|
14368
14586
|
label,
|
|
14369
14587
|
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tw-ml-0.5 tw-text-secondary-500", children: "*" })
|
|
14370
14588
|
] }),
|
|
14371
14589
|
children,
|
|
14372
|
-
showError ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
14590
|
+
showError ? /* @__PURE__ */ jsxRuntime.jsx(FormGroup.Help, { children: error }) : help && /* @__PURE__ */ jsxRuntime.jsx(FormGroup.Help, { children: help })
|
|
14373
14591
|
] });
|
|
14374
14592
|
};
|
|
14375
14593
|
var CheckboxField = ({ label, help, className, children, ...checkboxProps }) => {
|
|
14376
14594
|
const field = useFieldContext();
|
|
14377
14595
|
return /* @__PURE__ */ jsxRuntime.jsx(FieldShell, { field, help, className, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14378
|
-
|
|
14596
|
+
Checkbox,
|
|
14379
14597
|
{
|
|
14380
14598
|
id: field.name,
|
|
14381
14599
|
name: field.name,
|
|
@@ -14392,7 +14610,7 @@ var CheckboxField = ({ label, help, className, children, ...checkboxProps }) =>
|
|
|
14392
14610
|
var NumberField = ({ label, required, help, className, ...inputProps }) => {
|
|
14393
14611
|
const field = useFieldContext();
|
|
14394
14612
|
return /* @__PURE__ */ jsxRuntime.jsx(FieldShell, { field, label, required, help, className, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14395
|
-
|
|
14613
|
+
FormGroup.NumberInput,
|
|
14396
14614
|
{
|
|
14397
14615
|
id: field.name,
|
|
14398
14616
|
name: field.name,
|
|
@@ -14409,7 +14627,7 @@ var PasswordField = ({ label, required, help, className, ...inputProps }) => {
|
|
|
14409
14627
|
const field = useFieldContext();
|
|
14410
14628
|
const showError = field.state.meta.isTouched && field.state.meta.errors.length > 0;
|
|
14411
14629
|
return /* @__PURE__ */ jsxRuntime.jsx(FieldShell, { field, label, required, help, className, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14412
|
-
|
|
14630
|
+
PasswordInput,
|
|
14413
14631
|
{
|
|
14414
14632
|
id: field.name,
|
|
14415
14633
|
name: field.name,
|
|
@@ -14438,7 +14656,7 @@ var SelectField = ({
|
|
|
14438
14656
|
}) => {
|
|
14439
14657
|
const field = useFieldContext();
|
|
14440
14658
|
return /* @__PURE__ */ jsxRuntime.jsx(FieldShell, { field, label, required, help, className, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14441
|
-
|
|
14659
|
+
Select.Root,
|
|
14442
14660
|
{
|
|
14443
14661
|
value: field.state.value ?? "",
|
|
14444
14662
|
onValueChange: (value) => {
|
|
@@ -14447,7 +14665,7 @@ var SelectField = ({
|
|
|
14447
14665
|
...rootProps,
|
|
14448
14666
|
children: [
|
|
14449
14667
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14450
|
-
|
|
14668
|
+
Select.Trigger,
|
|
14451
14669
|
{
|
|
14452
14670
|
id: field.name,
|
|
14453
14671
|
className: triggerClassName ?? "tw-w-full",
|
|
@@ -14458,7 +14676,7 @@ var SelectField = ({
|
|
|
14458
14676
|
onBlur: field.handleBlur
|
|
14459
14677
|
}
|
|
14460
14678
|
),
|
|
14461
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14679
|
+
/* @__PURE__ */ jsxRuntime.jsx(Select.Content, { variant: variant === "argo" ? "argo" : "default", children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(Select.Item, { value: option.value, children: option.label }, option.value)) })
|
|
14462
14680
|
]
|
|
14463
14681
|
}
|
|
14464
14682
|
) });
|
|
@@ -14466,7 +14684,7 @@ var SelectField = ({
|
|
|
14466
14684
|
var SwitchField = ({ label, help, className, children, ...switchProps }) => {
|
|
14467
14685
|
const field = useFieldContext();
|
|
14468
14686
|
return /* @__PURE__ */ jsxRuntime.jsx(FieldShell, { field, help, className, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14469
|
-
|
|
14687
|
+
Switch,
|
|
14470
14688
|
{
|
|
14471
14689
|
id: field.name,
|
|
14472
14690
|
name: field.name,
|
|
@@ -14483,7 +14701,7 @@ var SwitchField = ({ label, help, className, children, ...switchProps }) => {
|
|
|
14483
14701
|
var TextAreaField = ({ label, required, help, className, ...inputProps }) => {
|
|
14484
14702
|
const field = useFieldContext();
|
|
14485
14703
|
return /* @__PURE__ */ jsxRuntime.jsx(FieldShell, { field, label, required, help, className, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14486
|
-
|
|
14704
|
+
FormGroup.Textarea,
|
|
14487
14705
|
{
|
|
14488
14706
|
id: field.name,
|
|
14489
14707
|
name: field.name,
|
|
@@ -14499,7 +14717,7 @@ var TextAreaField = ({ label, required, help, className, ...inputProps }) => {
|
|
|
14499
14717
|
var TextField = ({ label, required, help, className, ...inputProps }) => {
|
|
14500
14718
|
const field = useFieldContext();
|
|
14501
14719
|
return /* @__PURE__ */ jsxRuntime.jsx(FieldShell, { field, label, required, help, className, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14502
|
-
|
|
14720
|
+
FormGroup.TextInput,
|
|
14503
14721
|
{
|
|
14504
14722
|
id: field.name,
|
|
14505
14723
|
name: field.name,
|
|
@@ -14792,6 +15010,18 @@ Object.defineProperty(exports, "useCommandState", {
|
|
|
14792
15010
|
enumerable: true,
|
|
14793
15011
|
get: function () { return cmdk.useCommandState; }
|
|
14794
15012
|
});
|
|
15013
|
+
Object.defineProperty(exports, "REGEXP_ONLY_CHARS", {
|
|
15014
|
+
enumerable: true,
|
|
15015
|
+
get: function () { return inputOtp.REGEXP_ONLY_CHARS; }
|
|
15016
|
+
});
|
|
15017
|
+
Object.defineProperty(exports, "REGEXP_ONLY_DIGITS", {
|
|
15018
|
+
enumerable: true,
|
|
15019
|
+
get: function () { return inputOtp.REGEXP_ONLY_DIGITS; }
|
|
15020
|
+
});
|
|
15021
|
+
Object.defineProperty(exports, "REGEXP_ONLY_DIGITS_AND_CHARS", {
|
|
15022
|
+
enumerable: true,
|
|
15023
|
+
get: function () { return inputOtp.REGEXP_ONLY_DIGITS_AND_CHARS; }
|
|
15024
|
+
});
|
|
14795
15025
|
exports.Alert = Alert;
|
|
14796
15026
|
exports.AnswerSummary = AnswerSummary;
|
|
14797
15027
|
exports.AutoSaveTextarea = AutoSaveTextarea;
|
|
@@ -14841,6 +15071,7 @@ exports.Icon = Icon;
|
|
|
14841
15071
|
exports.InlineStepDetail = InlineStepDetail;
|
|
14842
15072
|
exports.InlineStepLabel = InlineStepLabel;
|
|
14843
15073
|
exports.InputGroup = InputGroup;
|
|
15074
|
+
exports.InputOtp = InputOtp;
|
|
14844
15075
|
exports.Kbd = Kbd;
|
|
14845
15076
|
exports.Label = Label;
|
|
14846
15077
|
exports.Link = Link2;
|
|
@@ -14921,6 +15152,7 @@ exports.setServerFieldErrors = setServerFieldErrors;
|
|
|
14921
15152
|
exports.toast = toast;
|
|
14922
15153
|
exports.useAppForm = useAppForm;
|
|
14923
15154
|
exports.useAutosizeInput = useAutosizeInput;
|
|
15155
|
+
exports.useInputOtpContext = useInputOtpContext;
|
|
14924
15156
|
exports.useMergeDiff = useMergeDiff;
|
|
14925
15157
|
exports.useNotification = useNotification;
|
|
14926
15158
|
exports.useScrollbarPosition = useScrollbarPosition;
|