@aortl/admin-react 0.3.0 → 0.4.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/cn.d.ts CHANGED
@@ -2,9 +2,15 @@ import { ClassValue } from 'clsx';
2
2
  /**
3
3
  * className merger that preserves Base UI's render-prop className form.
4
4
  *
5
- * Base UI components accept `className: string | ((state) => string | undefined)`. The plain
6
- * `clsx()` path is correct for strings, but a function form has to be deferred
7
- * until Base UI invokes it with the component state.
5
+ * `base` carries admin's own classes (e.g. `["btn", "btn-primary"]`) and is
6
+ * always prefixed with `_ao-`. `className` is the consumer-supplied prop and
7
+ * passes through verbatim it lives in the caller's namespace.
8
+ *
9
+ * Base UI components accept `className: string | ((state) => string | undefined)`.
10
+ * The function form has to be deferred until Base UI invokes it with the
11
+ * component state.
8
12
  */
13
+ export declare function cn(base: ClassValue, className: string | undefined): string;
14
+ export declare function cn<TState>(base: ClassValue, className: (state: TState) => string | undefined): (state: TState) => string;
9
15
  export declare function cn<TState>(base: ClassValue, className: string | ((state: TState) => string | undefined) | undefined): string | ((state: TState) => string);
10
16
  //# sourceMappingURL=cn.d.ts.map
package/dist/cn.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../src/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAE7C;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,MAAM,EACvB,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,GAAG,SAAS,GACtE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAKtC"}
1
+ {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../src/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAuB7C;;;;;;;;;;GAUG;AACH,wBAAgB,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAC5E,wBAAgB,EAAE,CAAC,MAAM,EACvB,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,GAC/C,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAC7B,wBAAgB,EAAE,CAAC,MAAM,EACvB,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,GAAG,SAAS,GACtE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC"}