@keboola/design 1.3.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icons.cjs +24 -0
- package/dist/icons.js +1 -1
- package/dist/index.cjs +278 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +278 -78
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +39 -26
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.js +39 -26
- package/dist/markdown-editor.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -3
- package/src/blocks/AIKit/PlanApproval.tsx +29 -12
- package/src/blocks/AIKit/PromptInput.test.tsx +53 -0
- package/src/blocks/AIKit/PromptInput.tsx +1 -1
- package/src/blocks/AIKit/Question.tsx +39 -11
- package/src/blocks/AIKit/SuggestedPrompt.stories.tsx +2 -8
- package/src/blocks/EmptyState/EmptyState.stories.tsx +5 -5
- package/src/blocks/EmptyState/EmptyState.tsx +2 -2
- package/src/blocks/ErrorState/ErrorState.stories.tsx +6 -6
- package/src/blocks/ErrorState/ErrorState.tsx +3 -3
- package/src/blocks/MultiActionButtonGroup/MultiActionButton.tsx +2 -1
- package/src/blocks/PageHeader/AGENTS.md +1 -1
- package/src/blocks/PageHeader/PageHeader.stories.tsx +6 -3
- package/src/blocks/PageHeader/PageHeaderIndex.tsx +2 -2
- package/src/blocks/PageLayout/AGENTS.md +3 -3
- package/src/blocks/PageLayout/PageLayout.stories.tsx +7 -4
- package/src/blocks/PageLayout/PageLayout.tsx +1 -18
- package/src/blocks/PageToolbar/PageToolbar.stories.tsx +79 -74
- package/src/blocks/PageToolbar/PageToolbar.tsx +45 -4
- package/src/blocks/PageToolbar/PageToolbarToken.tsx +61 -0
- package/src/blocks/SearchInput/SearchInput.tsx +3 -3
- package/src/blocks/SearchInputWithNavigation/SearchInputWithNavigation.tsx +1 -1
- package/src/components/Alert/AlertDescription.tsx +5 -0
- package/src/components/Badge/Badge.stories.tsx +3 -5
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +4 -4
- package/src/components/Breadcrumb/BreadcrumbLink.tsx +1 -1
- package/src/components/Button/ButtonInline.stories.tsx +3 -3
- package/src/components/Button/ButtonInline.tsx +4 -0
- package/src/components/Card/Card.stories.tsx +2 -2
- package/src/components/FormGroup/FormGroup.stories.tsx +2 -2
- package/src/components/HoverCard/HoverCardContent.tsx +5 -0
- package/src/components/Input/Input.stories.tsx +2 -2
- package/src/components/InputGroup/InputGroup.stories.tsx +4 -5
- package/src/components/InputGroup/InputGroup.tsx +1 -1
- package/src/components/InputGroup/InputGroupAddon.tsx +35 -24
- package/src/components/Kbd/Kbd.stories.tsx +2 -2
- package/src/components/Label/Label.stories.tsx +2 -2
- package/src/components/Modal/ModalBody.tsx +5 -0
- package/src/components/Navbar/Navbar.stories.tsx +4 -5
- package/src/components/Pagination/Pagination.stories.tsx +0 -1
- package/src/components/Popover/PopoverContent.tsx +4 -0
- package/src/components/Search/Search.tsx +2 -2
- package/src/components/Select/SelectTrigger.tsx +1 -1
- package/src/components/Separator/Separator.stories.tsx +19 -0
- package/src/components/Separator/Separator.test.tsx +39 -0
- package/src/components/Separator/Separator.tsx +42 -11
- package/src/components/Sidebar/Sidebar.stories.tsx +6 -5
- package/src/components/Table/Table.stories.tsx +16 -16
- package/src/components/Timeline/Timeline.stories.tsx +8 -8
- package/src/components/Timeline/TimelineConnector.tsx +1 -1
- package/src/components/ToggleGroup/ToggleGroup.stories.tsx +60 -0
- package/src/components/ToggleGroup/ToggleGroup.tsx +99 -0
- package/src/components/ToggleGroup/index.ts +1 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +2 -2
- package/src/hooks/useAutosizeInput.stories.tsx +2 -2
- package/src/icons/index.ts +6 -0
- package/src/index.ts +1 -0
- package/src/patterns/FilterToolbar.stories.tsx +248 -44
package/dist/markdown-editor.js
CHANGED
|
@@ -789,7 +789,10 @@ var init_ButtonInline = __esm({
|
|
|
789
789
|
"disabled:tw-cursor-not-allowed",
|
|
790
790
|
"disabled:tw-text-neutral-500",
|
|
791
791
|
"disabled:tw-no-underline",
|
|
792
|
-
"[&_svg]:disabled:tw-text-neutral-400"
|
|
792
|
+
"[&_svg]:disabled:tw-text-neutral-400",
|
|
793
|
+
// Default size for nested Lucide icons; callers can override on the icon.
|
|
794
|
+
"[&_svg:not([class*='tw-size-'])]:tw-size-4",
|
|
795
|
+
"[&_svg]:tw-shrink-0"
|
|
793
796
|
],
|
|
794
797
|
{
|
|
795
798
|
defaultVariants: {
|
|
@@ -2989,32 +2992,42 @@ init_utils();
|
|
|
2989
2992
|
|
|
2990
2993
|
// src/components/InputGroup/InputGroupAddon.tsx
|
|
2991
2994
|
init_utils();
|
|
2992
|
-
var addonVariants = cva(
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
"[&:not(:empty)]:tw-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
2995
|
+
var addonVariants = cva(
|
|
2996
|
+
[
|
|
2997
|
+
"tw-flex",
|
|
2998
|
+
"tw-items-center",
|
|
2999
|
+
"tw-gap-1",
|
|
3000
|
+
// Default size for nested Lucide icons in prefix/suffix slots; callers can override on the icon.
|
|
3001
|
+
"[&_svg:not([class*='tw-size-'])]:tw-size-4",
|
|
3002
|
+
"[&_svg]:tw-shrink-0"
|
|
3003
|
+
],
|
|
3004
|
+
{
|
|
3005
|
+
defaultVariants: {
|
|
3006
|
+
align: "inline-start"
|
|
3007
|
+
},
|
|
3008
|
+
variants: {
|
|
3009
|
+
align: {
|
|
3010
|
+
"inline-start": ["tw-order-first", "[&:not(:empty)]:tw-pl-4"],
|
|
3011
|
+
"inline-end": ["tw-order-last", "[&:not(:empty)]:tw-pr-4"],
|
|
3012
|
+
"block-start": [
|
|
3013
|
+
"tw-order-first",
|
|
3014
|
+
// `tw-w-full` needs to be empty-conditional too — when the addon
|
|
3015
|
+
// has no content the root stays in flex-row, and a 100%-wide
|
|
3016
|
+
// empty addon would claim half of the input row beside the input.
|
|
3017
|
+
"[&:not(:empty)]:tw-w-full",
|
|
3018
|
+
"[&:not(:empty)]:tw-px-4",
|
|
3019
|
+
"[&:not(:empty)]:tw-py-1.5"
|
|
3020
|
+
],
|
|
3021
|
+
"block-end": [
|
|
3022
|
+
"tw-order-last",
|
|
3023
|
+
"[&:not(:empty)]:tw-w-full",
|
|
3024
|
+
"[&:not(:empty)]:tw-px-4",
|
|
3025
|
+
"[&:not(:empty)]:tw-py-1.5"
|
|
3026
|
+
]
|
|
3027
|
+
}
|
|
3015
3028
|
}
|
|
3016
3029
|
}
|
|
3017
|
-
|
|
3030
|
+
);
|
|
3018
3031
|
var InputGroupAddon = ({
|
|
3019
3032
|
children,
|
|
3020
3033
|
align = "inline-start",
|
|
@@ -3186,7 +3199,7 @@ var inputGroupVariants = cva(
|
|
|
3186
3199
|
defaultVariants: {
|
|
3187
3200
|
variant: "primary",
|
|
3188
3201
|
state: "default",
|
|
3189
|
-
sizing: "
|
|
3202
|
+
sizing: "medium",
|
|
3190
3203
|
focusVariant: "default"
|
|
3191
3204
|
},
|
|
3192
3205
|
compoundVariants: [
|