@nar-bus/ui-kit 1.36.0 → 1.37.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.
@@ -0,0 +1,5 @@
1
+ /** `data-*` attributes a caller hangs on a kit element (e.g. for its own tests): `true` = present, `false` / `undefined` = absent. */
2
+ export type DataAttributes = Record<string, string | number | boolean | null | undefined>;
3
+ /** `{ runDay: "2026-11-02", overlap: true }` → `{ "data-run-day": "2026-11-02", "data-overlap": "" }`. */
4
+ export declare function dataAttributes(data: DataAttributes | undefined): Record<string, string>;
5
+ //# sourceMappingURL=dataAttributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataAttributes.d.ts","sourceRoot":"","sources":["../../src/utils/dataAttributes.ts"],"names":[],"mappings":"AAAA,sIAAsI;AACtI,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAE1F,0GAA0G;AAC1G,wBAAgB,cAAc,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASvF"}
@@ -3,6 +3,7 @@ export { searchFold, matchesSearch } from './searchFold';
3
3
  export { FOCUSABLE_SELECTOR, getFocusables, trapFocus } from './focusTrap';
4
4
  export { registerOverlay, isTopmostOverlay, OverlayHost, type RegisterOverlayOptions, type OverlayHostProps } from './overlayStack';
5
5
  export { lockBodyScroll } from './scrollLock';
6
+ export { dataAttributes, type DataAttributes } from './dataAttributes';
6
7
  export { formatDate, formatDateTime, formatDateTimeWithSeconds, formatNumber, formatDecimal, formatSlug, formatRelativeTime, formatPercentage, formatDuration, } from './formatters';
7
8
  export { diffLines, diffJson, lineDiffStats, stableStringify, escapeJsonPointerToken, type LineDiffEntry, type LineDiffOp, type LineDiffStats, type DiffLinesOptions, type JsonChange, type JsonChangeKind, type DiffJsonOptions, type JsonArrayKey, type StableStringifyOptions, } from './jsonDiff';
8
9
  export { indexJsonText, toJsonPointer, locateJsonPath, type JsonTextIndex, type JsonTextPosition, type JsonSyntaxIssue, type JsonSyntaxErrorReason, type JsonPathLocation, } from './jsonLocate';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,EAAE,KAAK,sBAAsB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACpI,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,UAAU,EACV,cAAc,EACd,yBAAyB,EACzB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,SAAS,EACT,QAAQ,EACR,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,sBAAsB,GAC5B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,aAAa,EACb,aAAa,EACb,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,EAAE,KAAK,sBAAsB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACpI,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACL,UAAU,EACV,cAAc,EACd,yBAAyB,EACzB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,SAAS,EACT,QAAQ,EACR,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,sBAAsB,GAC5B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,aAAa,EACb,aAAa,EACb,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB,MAAM,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nar-bus/ui-kit",
3
- "version": "1.36.0",
3
+ "version": "1.37.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",