@keboola/design 1.3.1 → 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 +274 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +274 -74
- 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/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 +2 -2
- 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/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.cjs
CHANGED
|
@@ -816,7 +816,10 @@ var init_ButtonInline = __esm({
|
|
|
816
816
|
"disabled:tw-cursor-not-allowed",
|
|
817
817
|
"disabled:tw-text-neutral-500",
|
|
818
818
|
"disabled:tw-no-underline",
|
|
819
|
-
"[&_svg]:disabled:tw-text-neutral-400"
|
|
819
|
+
"[&_svg]:disabled:tw-text-neutral-400",
|
|
820
|
+
// Default size for nested Lucide icons; callers can override on the icon.
|
|
821
|
+
"[&_svg:not([class*='tw-size-'])]:tw-size-4",
|
|
822
|
+
"[&_svg]:tw-shrink-0"
|
|
820
823
|
],
|
|
821
824
|
{
|
|
822
825
|
defaultVariants: {
|
|
@@ -3016,32 +3019,42 @@ init_utils();
|
|
|
3016
3019
|
|
|
3017
3020
|
// src/components/InputGroup/InputGroupAddon.tsx
|
|
3018
3021
|
init_utils();
|
|
3019
|
-
var addonVariants = classVarianceAuthority.cva(
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
"[&:not(:empty)]:tw-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3022
|
+
var addonVariants = classVarianceAuthority.cva(
|
|
3023
|
+
[
|
|
3024
|
+
"tw-flex",
|
|
3025
|
+
"tw-items-center",
|
|
3026
|
+
"tw-gap-1",
|
|
3027
|
+
// Default size for nested Lucide icons in prefix/suffix slots; callers can override on the icon.
|
|
3028
|
+
"[&_svg:not([class*='tw-size-'])]:tw-size-4",
|
|
3029
|
+
"[&_svg]:tw-shrink-0"
|
|
3030
|
+
],
|
|
3031
|
+
{
|
|
3032
|
+
defaultVariants: {
|
|
3033
|
+
align: "inline-start"
|
|
3034
|
+
},
|
|
3035
|
+
variants: {
|
|
3036
|
+
align: {
|
|
3037
|
+
"inline-start": ["tw-order-first", "[&:not(:empty)]:tw-pl-4"],
|
|
3038
|
+
"inline-end": ["tw-order-last", "[&:not(:empty)]:tw-pr-4"],
|
|
3039
|
+
"block-start": [
|
|
3040
|
+
"tw-order-first",
|
|
3041
|
+
// `tw-w-full` needs to be empty-conditional too — when the addon
|
|
3042
|
+
// has no content the root stays in flex-row, and a 100%-wide
|
|
3043
|
+
// empty addon would claim half of the input row beside the input.
|
|
3044
|
+
"[&:not(:empty)]:tw-w-full",
|
|
3045
|
+
"[&:not(:empty)]:tw-px-4",
|
|
3046
|
+
"[&:not(:empty)]:tw-py-1.5"
|
|
3047
|
+
],
|
|
3048
|
+
"block-end": [
|
|
3049
|
+
"tw-order-last",
|
|
3050
|
+
"[&:not(:empty)]:tw-w-full",
|
|
3051
|
+
"[&:not(:empty)]:tw-px-4",
|
|
3052
|
+
"[&:not(:empty)]:tw-py-1.5"
|
|
3053
|
+
]
|
|
3054
|
+
}
|
|
3042
3055
|
}
|
|
3043
3056
|
}
|
|
3044
|
-
|
|
3057
|
+
);
|
|
3045
3058
|
var InputGroupAddon = ({
|
|
3046
3059
|
children,
|
|
3047
3060
|
align = "inline-start",
|
|
@@ -3213,7 +3226,7 @@ var inputGroupVariants = classVarianceAuthority.cva(
|
|
|
3213
3226
|
defaultVariants: {
|
|
3214
3227
|
variant: "primary",
|
|
3215
3228
|
state: "default",
|
|
3216
|
-
sizing: "
|
|
3229
|
+
sizing: "medium",
|
|
3217
3230
|
focusVariant: "default"
|
|
3218
3231
|
},
|
|
3219
3232
|
compoundVariants: [
|