@keboola/design 6.1.0 → 6.2.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/index.cjs +862 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +429 -285
- package/dist/index.d.ts +429 -285
- package/dist/index.js +853 -19
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +9 -9
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.js +9 -9
- package/dist/markdown-editor.js.map +1 -1
- package/dist/rjsf.cjs +16 -14
- package/dist/rjsf.cjs.map +1 -1
- package/dist/rjsf.js +16 -14
- package/dist/rjsf.js.map +1 -1
- package/dist/styles.css +2 -2
- package/dist/testing.cjs +12 -0
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +12 -0
- package/dist/testing.js.map +1 -1
- package/package.json +5 -5
- package/src/styles.css +18 -0
package/dist/rjsf.js
CHANGED
|
@@ -1265,9 +1265,7 @@ var headerVariants = cva(
|
|
|
1265
1265
|
variants: {
|
|
1266
1266
|
variant: {
|
|
1267
1267
|
default: "tw-bg-muted",
|
|
1268
|
-
|
|
1269
|
-
// `background` is the page base, not an elevated panel surface.
|
|
1270
|
-
white: "tw-bg-white"
|
|
1268
|
+
white: "tw-bg-card"
|
|
1271
1269
|
},
|
|
1272
1270
|
isDisabled: {
|
|
1273
1271
|
true: "tw-cursor-not-allowed tw-opacity-50",
|
|
@@ -1332,7 +1330,7 @@ var CollapsiblePanel = ({
|
|
|
1332
1330
|
{
|
|
1333
1331
|
open,
|
|
1334
1332
|
className: cn(
|
|
1335
|
-
"tw-rounded !tw-border !tw-border-solid !tw-border-border tw-bg-
|
|
1333
|
+
"tw-rounded !tw-border !tw-border-solid !tw-border-border tw-bg-card",
|
|
1336
1334
|
className
|
|
1337
1335
|
),
|
|
1338
1336
|
header: /* @__PURE__ */ jsxs(
|
|
@@ -8325,23 +8323,23 @@ var BadgeLabel = ({
|
|
|
8325
8323
|
var badgeColors = {
|
|
8326
8324
|
gray: "tw-bg-neutral-400 tw-text-white tw-decoration-neutral-400",
|
|
8327
8325
|
"gray-darker": "tw-bg-neutral-500 tw-text-white tw-decoration-neutral-500",
|
|
8328
|
-
"gray-inverse": "tw-bg-neutral-100 tw-text-neutral-400 tw-decoration-neutral-100",
|
|
8326
|
+
"gray-inverse": "tw-bg-neutral-100 tw-text-neutral-400 tw-decoration-neutral-100 [[data-theme=dark]_&]:tw-bg-neutral-800 [[data-theme=dark]_&]:tw-text-neutral-300 [[data-theme=dark]_&]:tw-decoration-neutral-800",
|
|
8329
8327
|
green: "tw-bg-green-500 tw-text-white tw-decoration-green-500",
|
|
8330
8328
|
"green-darker": "tw-bg-green-600 tw-text-white tw-decoration-green-600",
|
|
8331
|
-
"green-inverse": "tw-bg-green-100 tw-text-green-900 tw-decoration-green-100",
|
|
8329
|
+
"green-inverse": "tw-bg-green-100 tw-text-green-900 tw-decoration-green-100 [[data-theme=dark]_&]:tw-bg-green-900 [[data-theme=dark]_&]:tw-text-green-200 [[data-theme=dark]_&]:tw-decoration-green-900",
|
|
8332
8330
|
blue: "tw-bg-blue-500 tw-text-white tw-decoration-blue-500",
|
|
8333
|
-
"blue-inverse": "tw-bg-blue-100 tw-text-blue-600 tw-decoration-blue-100",
|
|
8331
|
+
"blue-inverse": "tw-bg-blue-100 tw-text-blue-600 tw-decoration-blue-100 [[data-theme=dark]_&]:tw-bg-blue-900 [[data-theme=dark]_&]:tw-text-blue-200 [[data-theme=dark]_&]:tw-decoration-blue-900",
|
|
8334
8332
|
red: "tw-bg-error-500 tw-text-white tw-decoration-error-500",
|
|
8335
8333
|
orange: "tw-bg-warning-500 tw-text-white tw-decoration-warning-500",
|
|
8336
|
-
"orange-inverse": "tw-bg-warning-100 tw-text-warning-500 tw-decoration-warning-100",
|
|
8334
|
+
"orange-inverse": "tw-bg-warning-100 tw-text-warning-500 tw-decoration-warning-100 [[data-theme=dark]_&]:tw-bg-warning-900 [[data-theme=dark]_&]:tw-text-warning-200 [[data-theme=dark]_&]:tw-decoration-warning-900",
|
|
8337
8335
|
amber: "tw-bg-warning-300 tw-text-warning-800 tw-decoration-warning-300",
|
|
8338
8336
|
"amber-inverse": "tw-bg-warning-100 tw-text-warning-700 tw-decoration-warning-100",
|
|
8339
8337
|
teal: "tw-bg-teal-500 tw-text-white tw-decoration-teal-500",
|
|
8340
|
-
"teal-inverse": "tw-bg-teal-100 tw-text-teal-800 tw-decoration-teal-100",
|
|
8338
|
+
"teal-inverse": "tw-bg-teal-100 tw-text-teal-800 tw-decoration-teal-100 [[data-theme=dark]_&]:tw-bg-teal-900 [[data-theme=dark]_&]:tw-text-teal-200 [[data-theme=dark]_&]:tw-decoration-teal-900",
|
|
8341
8339
|
purple: "tw-bg-purple-500 tw-text-white tw-decoration-purple-500",
|
|
8342
|
-
"purple-inverse": "tw-bg-purple-100 tw-text-purple-800 tw-decoration-purple-100",
|
|
8340
|
+
"purple-inverse": "tw-bg-purple-100 tw-text-purple-800 tw-decoration-purple-100 [[data-theme=dark]_&]:tw-bg-purple-900 [[data-theme=dark]_&]:tw-text-purple-200 [[data-theme=dark]_&]:tw-decoration-purple-900",
|
|
8343
8341
|
cyan: "tw-bg-cyan-500 tw-text-white tw-decoration-cyan-500",
|
|
8344
|
-
"cyan-inverse": "tw-bg-cyan-100 tw-text-cyan-800 tw-decoration-cyan-100",
|
|
8342
|
+
"cyan-inverse": "tw-bg-cyan-100 tw-text-cyan-800 tw-decoration-cyan-100 [[data-theme=dark]_&]:tw-bg-cyan-900 [[data-theme=dark]_&]:tw-text-cyan-200 [[data-theme=dark]_&]:tw-decoration-cyan-900",
|
|
8345
8343
|
"sidebar-primary": "tw-bg-sidebar-primary tw-text-white tw-decoration-sidebar-primary",
|
|
8346
8344
|
white: "tw-bg-white/90 tw-text-neutral-600 tw-decoration-white/90"
|
|
8347
8345
|
};
|
|
@@ -9050,14 +9048,18 @@ var DynamicSelectWidget = ({
|
|
|
9050
9048
|
const data = useRootFormData();
|
|
9051
9049
|
const watch = widgetOptions.watch;
|
|
9052
9050
|
const enumSource = widgetOptions.enumSource;
|
|
9053
|
-
const
|
|
9054
|
-
const
|
|
9051
|
+
const dynamicItems = watch ? buildDynamicOptions(watch, enumSource, data) : [];
|
|
9052
|
+
const stringValue = value == null ? "" : String(value);
|
|
9053
|
+
const matched = dynamicItems.find((item) => item.value === stringValue);
|
|
9054
|
+
const fallbackItem = !matched && stringValue !== "" ? { value: stringValue, label: stringValue } : null;
|
|
9055
|
+
const selectedItem = matched ?? fallbackItem;
|
|
9056
|
+
const items = fallbackItem ? [fallbackItem, ...dynamicItems] : dynamicItems;
|
|
9055
9057
|
return /* @__PURE__ */ jsx(
|
|
9056
9058
|
Combobox,
|
|
9057
9059
|
{
|
|
9058
9060
|
variant: "secondary",
|
|
9059
9061
|
items,
|
|
9060
|
-
value: selectedItem
|
|
9062
|
+
value: selectedItem,
|
|
9061
9063
|
disabled: disabled || readonly,
|
|
9062
9064
|
onValueChange: (selected) => onChange(selected?.value ?? "")
|
|
9063
9065
|
}
|