From b6c759d87ad112b619abd44c73cd949e44857d07 Mon Sep 17 00:00:00 2001 From: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> Date: Sun, 27 Oct 2024 18:00:03 -0400 Subject: [PATCH] next: export regexp helpers for pin input (#821) --- .changeset/two-pugs-tease.md | 5 +++++ packages/bits-ui/src/lib/shared/index.ts | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 .changeset/two-pugs-tease.md diff --git a/.changeset/two-pugs-tease.md b/.changeset/two-pugs-tease.md new file mode 100644 index 000000000..02bd5e717 --- /dev/null +++ b/.changeset/two-pugs-tease.md @@ -0,0 +1,5 @@ +--- +"bits-ui": patch +--- + +export REGEXP helpers from pin input diff --git a/packages/bits-ui/src/lib/shared/index.ts b/packages/bits-ui/src/lib/shared/index.ts index 70a00c60f..f5b77f1e3 100644 --- a/packages/bits-ui/src/lib/shared/index.ts +++ b/packages/bits-ui/src/lib/shared/index.ts @@ -1,5 +1,11 @@ import type * as CSS from "csstype"; +export { + REGEXP_ONLY_DIGITS, + REGEXP_ONLY_CHARS, + REGEXP_ONLY_DIGITS_AND_CHARS, +} from "$lib/bits/pin-input/pin-input.svelte.js"; + export type Selected = { value: Value; label?: string;