@krak-stack/registry 0.2.0 → 0.2.1
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/CHANGELOG.md +6 -0
- package/dist/components/ui/app-brand.js +17 -17
- package/dist/components/ui/code-block.js +6 -6
- package/dist/components/ui/color-picker.js +26 -28
- package/dist/components/ui/copy-button.js +4 -4
- package/dist/components/ui/data-table.js +441 -442
- package/dist/components/ui/editing-locale-switcher.js +10 -10
- package/dist/components/ui/effect-form.js +183 -184
- package/dist/components/ui/error-component.js +6 -6
- package/dist/components/ui/file-picker.js +2 -2
- package/dist/components/ui/form.d.ts +5 -5
- package/dist/components/ui/form.js +136 -137
- package/dist/components/ui/google-map.js +2 -2
- package/dist/components/ui/icon-input.js +45 -48
- package/dist/components/ui/krakstack-provider.js +2 -2
- package/dist/components/ui/locale-switcher.js +4 -4
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/search-menu.js +2 -2
- package/dist/components/ui/sidebar-layout.js +67 -72
- package/dist/components/ui/theme-switcher.js +6 -6
- package/dist/components/ui/virtualized-combobox.js +31 -34
- package/dist/lib/docs.js +166 -171
- package/dist/lib/docs.server.js +18 -40
- package/dist/lib/documentation-toolkit.js +19 -41
- package/dist/lib/httpapi-adapter.js +2 -2
- package/dist/lib/httpapi-cli.js +7 -7
- package/dist/lib/query.js +11 -11
- package/dist/lib/seo.js +2 -2
- package/dist/lib/webfetch-toolkit.js +6 -6
- package/dist/oxlint/anti-slop/index.js +2 -2
- package/dist/services/agent/client/index.js +153 -155
- package/dist/services/agent/index.js +2 -2
- package/dist/services/agent/schema.js +5 -5
- package/dist/services/events/browser.js +6 -6
- package/dist/services/events/client/audit-log-table.js +445 -446
- package/dist/services/events/index.js +59 -59
- package/dist/services/events/migrations.js +2 -2
- package/dist/services/events/record.js +2 -2
- package/dist/services/events/schema.js +39 -39
- package/dist/services/file-extraction/index.js +4 -4
- package/dist/services/file-extraction/schema.js +2 -2
- package/dist/services/health/index.js +9 -9
- package/dist/services/notification/channels/ses/index.js +2 -2
- package/dist/services/notification/channels/ses/schema.js +2 -2
- package/dist/services/notification/client/index.js +5 -5
- package/dist/services/notification/index.js +2 -2
- package/dist/services/notification/persistence/drizzle.js +2 -2
- package/dist/services/notification/persistence/index.js +15 -15
- package/dist/services/notification/persistence/schema.js +12 -12
- package/dist/services/notification/public.js +7 -7
- package/dist/services/notification/schema.js +2 -2
- package/dist/services/opentelemetry/api.js +2 -2
- package/dist/services/opentelemetry/browser.js +7 -7
- package/dist/services/opentelemetry/web-vitals.js +2 -2
- package/dist/services/s3/index.js +2 -2
- package/dist/services/s3/schema.js +2 -2
- package/dist/services/speech/schema.js +9 -9
- package/dist/services/webhooks/client/delivery-table.js +479 -480
- package/dist/services/webhooks/http-client.js +5 -5
- package/dist/services/webhooks/index.js +34 -34
- package/dist/services/webhooks/migrations.js +5 -5
- package/dist/services/webhooks/schema.js +20 -20
- package/dist/services/webhooks/url.js +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @krak-stack/registry
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Keep the color picker panel full-width inside its popup, with even padding and a HEX value centered beneath it. Prevent react-colorful's injected styles from overriding panel, hue slider, and pointer dimensions.
|
|
8
|
+
|
|
3
9
|
## 0.2.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -53,38 +53,38 @@ function AppBrand(brandProps) {
|
|
|
53
53
|
].filter(Boolean).join(" ");
|
|
54
54
|
if (isStaticBrand(brandProps)) {
|
|
55
55
|
const {
|
|
56
|
-
className:
|
|
57
|
-
label:
|
|
58
|
-
subtitle:
|
|
59
|
-
icon:
|
|
60
|
-
imageSrc:
|
|
61
|
-
variant:
|
|
56
|
+
className: _className,
|
|
57
|
+
label: _label,
|
|
58
|
+
subtitle: _subtitle,
|
|
59
|
+
icon: _icon,
|
|
60
|
+
imageSrc: _imageSrc,
|
|
61
|
+
variant: _variant,
|
|
62
62
|
to: _to,
|
|
63
|
-
href:
|
|
64
|
-
...
|
|
63
|
+
href: _href,
|
|
64
|
+
...props
|
|
65
65
|
} = brandProps;
|
|
66
66
|
return /* @__PURE__ */ jsx("div", {
|
|
67
67
|
className: brandClassName,
|
|
68
|
-
...
|
|
68
|
+
...props,
|
|
69
69
|
children: content
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
if (isAnchorBrand(brandProps)) {
|
|
73
73
|
const {
|
|
74
|
-
className:
|
|
75
|
-
label:
|
|
76
|
-
subtitle:
|
|
77
|
-
icon:
|
|
78
|
-
imageSrc:
|
|
79
|
-
variant:
|
|
74
|
+
className: _className,
|
|
75
|
+
label: _label,
|
|
76
|
+
subtitle: _subtitle,
|
|
77
|
+
icon: _icon,
|
|
78
|
+
imageSrc: _imageSrc,
|
|
79
|
+
variant: _variant,
|
|
80
80
|
to: _to,
|
|
81
81
|
href,
|
|
82
|
-
...
|
|
82
|
+
...props
|
|
83
83
|
} = brandProps;
|
|
84
84
|
return /* @__PURE__ */ jsx("a", {
|
|
85
85
|
className: brandClassName,
|
|
86
86
|
href,
|
|
87
|
-
...
|
|
87
|
+
...props,
|
|
88
88
|
children: content
|
|
89
89
|
});
|
|
90
90
|
}
|
|
@@ -65,7 +65,7 @@ function CopyButton({
|
|
|
65
65
|
valueDescription,
|
|
66
66
|
copyVariant = "default",
|
|
67
67
|
locale: localeOverride,
|
|
68
|
-
messages
|
|
68
|
+
messages,
|
|
69
69
|
onCopied,
|
|
70
70
|
onCopyError,
|
|
71
71
|
resetDelay = 1500,
|
|
@@ -77,7 +77,7 @@ function CopyButton({
|
|
|
77
77
|
const locale = useKrakstackLocale(localeOverride);
|
|
78
78
|
const [copyState, setCopyState] = useState("idle");
|
|
79
79
|
const copyTimeout = useRef(undefined);
|
|
80
|
-
const labels = copyButtonMessages(locale,
|
|
80
|
+
const labels = copyButtonMessages(locale, messages);
|
|
81
81
|
const accessibleLabel = ariaLabel ?? (valueDescription ? `${labels.copy} ${valueDescription}` : labels.copy);
|
|
82
82
|
const isLarge = copyVariant === "large";
|
|
83
83
|
const defaultSize = copyVariant === "sm" ? "icon-xs" : isLarge ? "sm" : "icon-sm";
|
|
@@ -179,12 +179,12 @@ function CodeBlock({
|
|
|
179
179
|
code,
|
|
180
180
|
language = "text",
|
|
181
181
|
locale: localeOverride,
|
|
182
|
-
messages
|
|
182
|
+
messages
|
|
183
183
|
}) {
|
|
184
184
|
const locale = useKrakstackLocale2(localeOverride);
|
|
185
185
|
const normalizedLanguage = language.toLowerCase() || "text";
|
|
186
186
|
const highlighted = highlight(code, { lang: normalizedLanguage });
|
|
187
|
-
const labels = codeBlockMessages(locale,
|
|
187
|
+
const labels = codeBlockMessages(locale, messages);
|
|
188
188
|
return /* @__PURE__ */ jsxs2("div", {
|
|
189
189
|
className: "not-prose bg-muted overflow-hidden rounded-md border text-[var(--th-token)]",
|
|
190
190
|
"data-code-theme": true,
|
|
@@ -216,6 +216,6 @@ function CodeBlock({
|
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
export {
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
CodeBlock,
|
|
220
|
+
codeBlockMessages
|
|
221
221
|
};
|
|
@@ -66,13 +66,10 @@ function Input({ className, type, ...props }) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
// ../../src/components/ui/textarea.tsx
|
|
70
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
71
|
-
|
|
72
69
|
// ../../src/components/ui/input-group.tsx
|
|
73
|
-
import { jsx as
|
|
70
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
74
71
|
function InputGroup({ className, ...props }) {
|
|
75
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ jsx3("div", {
|
|
76
73
|
"data-slot": "input-group",
|
|
77
74
|
role: "group",
|
|
78
75
|
className: cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
|
|
@@ -95,7 +92,7 @@ function InputGroupAddon({
|
|
|
95
92
|
align = "inline-start",
|
|
96
93
|
...props
|
|
97
94
|
}) {
|
|
98
|
-
return /* @__PURE__ */
|
|
95
|
+
return /* @__PURE__ */ jsx3("div", {
|
|
99
96
|
role: "group",
|
|
100
97
|
"data-slot": "input-group-addon",
|
|
101
98
|
"data-align": align,
|
|
@@ -127,7 +124,7 @@ function InputGroupButton({
|
|
|
127
124
|
size = "xs",
|
|
128
125
|
...props
|
|
129
126
|
}) {
|
|
130
|
-
return /* @__PURE__ */
|
|
127
|
+
return /* @__PURE__ */ jsx3(Button, {
|
|
131
128
|
type,
|
|
132
129
|
"data-size": size,
|
|
133
130
|
variant,
|
|
@@ -139,7 +136,7 @@ function InputGroupInput({
|
|
|
139
136
|
className,
|
|
140
137
|
...props
|
|
141
138
|
}) {
|
|
142
|
-
return /* @__PURE__ */
|
|
139
|
+
return /* @__PURE__ */ jsx3(Input, {
|
|
143
140
|
"data-slot": "input-group-control",
|
|
144
141
|
className: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
|
|
145
142
|
...props
|
|
@@ -148,15 +145,15 @@ function InputGroupInput({
|
|
|
148
145
|
|
|
149
146
|
// ../../src/components/ui/popover.tsx
|
|
150
147
|
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
151
|
-
import { jsx as
|
|
148
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
152
149
|
function Popover({ ...props }) {
|
|
153
|
-
return /* @__PURE__ */
|
|
150
|
+
return /* @__PURE__ */ jsx4(PopoverPrimitive.Root, {
|
|
154
151
|
"data-slot": "popover",
|
|
155
152
|
...props
|
|
156
153
|
});
|
|
157
154
|
}
|
|
158
155
|
function PopoverTrigger({ ...props }) {
|
|
159
|
-
return /* @__PURE__ */
|
|
156
|
+
return /* @__PURE__ */ jsx4(PopoverPrimitive.Trigger, {
|
|
160
157
|
"data-slot": "popover-trigger",
|
|
161
158
|
...props
|
|
162
159
|
});
|
|
@@ -169,14 +166,14 @@ function PopoverContent({
|
|
|
169
166
|
sideOffset = 4,
|
|
170
167
|
...props
|
|
171
168
|
}) {
|
|
172
|
-
return /* @__PURE__ */
|
|
173
|
-
children: /* @__PURE__ */
|
|
169
|
+
return /* @__PURE__ */ jsx4(PopoverPrimitive.Portal, {
|
|
170
|
+
children: /* @__PURE__ */ jsx4(PopoverPrimitive.Positioner, {
|
|
174
171
|
align,
|
|
175
172
|
alignOffset,
|
|
176
173
|
side,
|
|
177
174
|
sideOffset,
|
|
178
175
|
className: "isolate z-50",
|
|
179
|
-
children: /* @__PURE__ */
|
|
176
|
+
children: /* @__PURE__ */ jsx4(PopoverPrimitive.Popup, {
|
|
180
177
|
"data-slot": "popover-content",
|
|
181
178
|
className: cn("z-50 flex w-72 origin-(--transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
182
179
|
...props
|
|
@@ -185,7 +182,7 @@ function PopoverContent({
|
|
|
185
182
|
});
|
|
186
183
|
}
|
|
187
184
|
function PopoverTitle({ className, ...props }) {
|
|
188
|
-
return /* @__PURE__ */
|
|
185
|
+
return /* @__PURE__ */ jsx4(PopoverPrimitive.Title, {
|
|
189
186
|
"data-slot": "popover-title",
|
|
190
187
|
className: cn("font-medium", className),
|
|
191
188
|
...props
|
|
@@ -194,7 +191,7 @@ function PopoverTitle({ className, ...props }) {
|
|
|
194
191
|
|
|
195
192
|
// ../../src/components/ui/color-picker.tsx
|
|
196
193
|
import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider";
|
|
197
|
-
import { jsx as
|
|
194
|
+
import { jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
198
195
|
var HexColor = Schema.String.check(Schema.isPattern(/^#?(?:[\da-f]{3}|[\da-f]{6})$/i)).annotate({
|
|
199
196
|
identifier: "HexColor"
|
|
200
197
|
});
|
|
@@ -257,12 +254,13 @@ var ColorPanel = ({
|
|
|
257
254
|
});
|
|
258
255
|
return () => observer.disconnect();
|
|
259
256
|
}, [copy.saturation, copy.hue, copy.saturationValue, copy.brightnessValue]);
|
|
260
|
-
return /* @__PURE__ */
|
|
257
|
+
return /* @__PURE__ */ jsx5("div", {
|
|
261
258
|
ref,
|
|
262
|
-
className: "[&_.react-
|
|
263
|
-
children: /* @__PURE__ */
|
|
259
|
+
className: "[&_.react-colorful__hue]:h-4! [&_.react-colorful__pointer]:size-5!",
|
|
260
|
+
children: /* @__PURE__ */ jsx5(HexColorPicker, {
|
|
264
261
|
color,
|
|
265
|
-
onChange
|
|
262
|
+
onChange,
|
|
263
|
+
style: { width: "100%", height: "12rem" }
|
|
266
264
|
})
|
|
267
265
|
});
|
|
268
266
|
};
|
|
@@ -314,7 +312,7 @@ var ColorPicker = ({
|
|
|
314
312
|
className,
|
|
315
313
|
"data-disabled": disabled || undefined,
|
|
316
314
|
children: [
|
|
317
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ jsx5(InputGroupInput, {
|
|
318
316
|
...inputProps,
|
|
319
317
|
type: "text",
|
|
320
318
|
"aria-label": ariaLabel ?? copy.input,
|
|
@@ -339,15 +337,15 @@ var ColorPicker = ({
|
|
|
339
337
|
}
|
|
340
338
|
}
|
|
341
339
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ jsx5(InputGroupAddon, {
|
|
343
341
|
align: "inline-end",
|
|
344
|
-
children: /* @__PURE__ */
|
|
345
|
-
render: /* @__PURE__ */
|
|
342
|
+
children: /* @__PURE__ */ jsx5(PopoverTrigger, {
|
|
343
|
+
render: /* @__PURE__ */ jsx5(InputGroupButton, {
|
|
346
344
|
"aria-label": copy.open,
|
|
347
345
|
disabled: disabled || readOnly,
|
|
348
346
|
size: "icon-xs"
|
|
349
347
|
}),
|
|
350
|
-
children: /* @__PURE__ */
|
|
348
|
+
children: /* @__PURE__ */ jsx5("span", {
|
|
351
349
|
"aria-hidden": "true",
|
|
352
350
|
className: "size-5 rounded-sm border border-black/15",
|
|
353
351
|
style: { backgroundColor: color }
|
|
@@ -360,11 +358,11 @@ var ColorPicker = ({
|
|
|
360
358
|
align: "end",
|
|
361
359
|
className: "w-64 max-w-[calc(100vw-2rem)] gap-3 p-3",
|
|
362
360
|
children: [
|
|
363
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ jsx5(PopoverTitle, {
|
|
364
362
|
className: "sr-only",
|
|
365
363
|
children: copy.open
|
|
366
364
|
}),
|
|
367
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ jsx5(ColorPanel, {
|
|
368
366
|
color,
|
|
369
367
|
copy,
|
|
370
368
|
onChange: (next) => {
|
|
@@ -372,7 +370,7 @@ var ColorPicker = ({
|
|
|
372
370
|
commit(next);
|
|
373
371
|
}
|
|
374
372
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ jsx5("output", {
|
|
376
374
|
className: "text-muted-foreground text-center font-mono text-xs",
|
|
377
375
|
children: color
|
|
378
376
|
})
|
|
@@ -65,7 +65,7 @@ function CopyButton({
|
|
|
65
65
|
valueDescription,
|
|
66
66
|
copyVariant = "default",
|
|
67
67
|
locale: localeOverride,
|
|
68
|
-
messages
|
|
68
|
+
messages,
|
|
69
69
|
onCopied,
|
|
70
70
|
onCopyError,
|
|
71
71
|
resetDelay = 1500,
|
|
@@ -77,7 +77,7 @@ function CopyButton({
|
|
|
77
77
|
const locale = useKrakstackLocale(localeOverride);
|
|
78
78
|
const [copyState, setCopyState] = useState("idle");
|
|
79
79
|
const copyTimeout = useRef(undefined);
|
|
80
|
-
const labels = copyButtonMessages(locale,
|
|
80
|
+
const labels = copyButtonMessages(locale, messages);
|
|
81
81
|
const accessibleLabel = ariaLabel ?? (valueDescription ? `${labels.copy} ${valueDescription}` : labels.copy);
|
|
82
82
|
const isLarge = copyVariant === "large";
|
|
83
83
|
const defaultSize = copyVariant === "sm" ? "icon-xs" : isLarge ? "sm" : "icon-sm";
|
|
@@ -133,6 +133,6 @@ function CopyButton({
|
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
export {
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
CopyButton,
|
|
137
|
+
copyButtonMessages
|
|
138
138
|
};
|