@contember/utilities
Advanced tools
Comparing version 1.2.0-rc.0 to 1.2.0-rc.1
@@ -1,3 +0,3 @@ | ||
import { deduplicateClassName } from "./Internal/deduplicateClassName.js"; | ||
import { flatClassNameList } from "./Internal/flatClassNameList.js"; | ||
import { deduplicateClassName } from "./deduplicateClassName.js"; | ||
import { flatClassNameList } from "./flatClassNameList.js"; | ||
function listClassName(list) { | ||
@@ -4,0 +4,0 @@ return deduplicateClassName(flatClassNameList(list)).join(" "); |
@@ -5,8 +5,13 @@ import { AssertionError } from "./assert-types/AssertionError.js"; | ||
import { assertNever } from "./assert-types/assertNever.js"; | ||
import { GlobalClassNamePrefixContext } from "./class-name/GlobalClassNamePrefixContext.js"; | ||
import { colorSchemeClassName, isColorSchemeClassName } from "./class-name/colorSchemeClassName.js"; | ||
import { COLOR_SCHEME_CLASS_NAME_REG_EXP, THEME_CLASS_NAME_REG_EXP } from "./class-name/constants.js"; | ||
import { deduplicateClassName } from "./class-name/deduplicateClassName.js"; | ||
import { filterThemedClassName } from "./class-name/filterThemedClassName.js"; | ||
import { flatClassNameList } from "./class-name/flatClassNameList.js"; | ||
import { listClassName } from "./class-name/listClassName.js"; | ||
import { stateClassName } from "./class-name/stateClassName.js"; | ||
import { useClassName } from "./class-name/useClassName.js"; | ||
import { useClassNameFactory } from "./class-name/useClassNameFactory.js"; | ||
import { contentThemeClassName, controlsThemeClassName, themeClassName } from "./class-name/themeClassName.js"; | ||
import { px } from "./css-utilities/px.js"; | ||
import { currentOrDeprecated } from "./deprecate/currentOrDeprecated.js"; | ||
import { deprecate } from "./deprecate/deprecate.js"; | ||
import { dataAttribute } from "./dom/dataAttribute.js"; | ||
@@ -27,7 +32,16 @@ import { getMatchingParentElement } from "./dom/getMatchingParentElement.js"; | ||
AssertionError, | ||
GlobalClassNamePrefixContext, | ||
COLOR_SCHEME_CLASS_NAME_REG_EXP, | ||
THEME_CLASS_NAME_REG_EXP, | ||
assert, | ||
assertNever, | ||
capitalize, | ||
colorSchemeClassName, | ||
contentThemeClassName, | ||
controlsThemeClassName, | ||
currentOrDeprecated, | ||
dataAttribute, | ||
deduplicateClassName, | ||
deprecate, | ||
filterThemedClassName, | ||
flatClassNameList, | ||
getMatchingParentElement, | ||
@@ -37,2 +51,3 @@ getSizeFromResizeObserverEntryFactory, | ||
isBoolean, | ||
isColorSchemeClassName, | ||
isDefined, | ||
@@ -69,7 +84,6 @@ isFalse, | ||
svgSizeProps, | ||
themeClassName, | ||
toKebabCase, | ||
trimString, | ||
useClassName, | ||
useClassNameFactory | ||
trimString | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
import { deduplicateClassName } from "./Internal/deduplicateClassName.js"; | ||
import { flatClassNameList } from "./Internal/flatClassNameList.js"; | ||
import { deduplicateClassName } from "./deduplicateClassName.js"; | ||
import { flatClassNameList } from "./flatClassNameList.js"; | ||
function listClassName(list) { | ||
@@ -4,0 +4,0 @@ return deduplicateClassName(flatClassNameList(list)).join(" "); |
@@ -5,8 +5,13 @@ import { AssertionError } from "./assert-types/AssertionError.js"; | ||
import { assertNever } from "./assert-types/assertNever.js"; | ||
import { GlobalClassNamePrefixContext } from "./class-name/GlobalClassNamePrefixContext.js"; | ||
import { colorSchemeClassName, isColorSchemeClassName } from "./class-name/colorSchemeClassName.js"; | ||
import { COLOR_SCHEME_CLASS_NAME_REG_EXP, THEME_CLASS_NAME_REG_EXP } from "./class-name/constants.js"; | ||
import { deduplicateClassName } from "./class-name/deduplicateClassName.js"; | ||
import { filterThemedClassName } from "./class-name/filterThemedClassName.js"; | ||
import { flatClassNameList } from "./class-name/flatClassNameList.js"; | ||
import { listClassName } from "./class-name/listClassName.js"; | ||
import { stateClassName } from "./class-name/stateClassName.js"; | ||
import { useClassName } from "./class-name/useClassName.js"; | ||
import { useClassNameFactory } from "./class-name/useClassNameFactory.js"; | ||
import { contentThemeClassName, controlsThemeClassName, themeClassName } from "./class-name/themeClassName.js"; | ||
import { px } from "./css-utilities/px.js"; | ||
import { currentOrDeprecated } from "./deprecate/currentOrDeprecated.js"; | ||
import { deprecate } from "./deprecate/deprecate.js"; | ||
import { dataAttribute } from "./dom/dataAttribute.js"; | ||
@@ -27,7 +32,16 @@ import { getMatchingParentElement } from "./dom/getMatchingParentElement.js"; | ||
AssertionError, | ||
GlobalClassNamePrefixContext, | ||
COLOR_SCHEME_CLASS_NAME_REG_EXP, | ||
THEME_CLASS_NAME_REG_EXP, | ||
assert, | ||
assertNever, | ||
capitalize, | ||
colorSchemeClassName, | ||
contentThemeClassName, | ||
controlsThemeClassName, | ||
currentOrDeprecated, | ||
dataAttribute, | ||
deduplicateClassName, | ||
deprecate, | ||
filterThemedClassName, | ||
flatClassNameList, | ||
getMatchingParentElement, | ||
@@ -37,2 +51,3 @@ getSizeFromResizeObserverEntryFactory, | ||
isBoolean, | ||
isColorSchemeClassName, | ||
isDefined, | ||
@@ -69,7 +84,6 @@ isFalse, | ||
svgSizeProps, | ||
themeClassName, | ||
toKebabCase, | ||
trimString, | ||
useClassName, | ||
useClassNameFactory | ||
trimString | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -5,3 +5,3 @@ import { Predicate, SlugString, UnionOfPredicateTypes } from './types'; | ||
export declare function isUndefined(value: unknown): value is undefined; | ||
export declare function isDefined<T>(value: unknown): value is T; | ||
export declare function isDefined<T>(value: unknown): value is Exclude<T, undefined>; | ||
export declare function isNotNullish<T>(value: T): value is Exclude<T, null | undefined>; | ||
@@ -8,0 +8,0 @@ export declare function isBoolean(value: unknown): value is boolean; |
@@ -1,7 +0,10 @@ | ||
export * from './GlobalClassNamePrefixContext'; | ||
export * from './Types'; | ||
export * from './colorSchemeClassName'; | ||
export * from './constants'; | ||
export * from './deduplicateClassName'; | ||
export * from './filterThemedClassName'; | ||
export * from './flatClassNameList'; | ||
export * from './listClassName'; | ||
export * from './stateClassName'; | ||
export * from './useClassName'; | ||
export * from './useClassNameFactory'; | ||
export * from './themeClassName'; | ||
export * from './types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { ClassNameStateMap } from './Types'; | ||
import { ClassNameStateMap } from './types'; | ||
export interface StateClassNameOptions { | ||
@@ -3,0 +3,0 @@ glue?: string; |
export * from './assert-types'; | ||
export * from './class-name'; | ||
export * from './css-utilities'; | ||
export * from './deprecate'; | ||
export * from './dom'; | ||
@@ -5,0 +6,0 @@ export * from './functional'; |
@@ -1,2 +0,2 @@ | ||
export type { CamelCase, DelimiterCase, KebabCase, LiteralToPrimitiveDeep, PascalCase, Replace, UnionToIntersection, } from 'type-fest'; | ||
export type { CamelCase, DelimiterCase, KebabCase, LiteralToPrimitiveDeep, Opaque, PascalCase, Replace, UnionToIntersection, UnwrapOpaque, } from 'type-fest'; | ||
export * from './DeepPartial'; | ||
@@ -3,0 +3,0 @@ export * from './NonNullableRequired'; |
{ | ||
"name": "@contember/utilities", | ||
"license": "Apache-2.0", | ||
"version": "1.2.0-rc.0", | ||
"version": "1.2.0-rc.1", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "sideEffects": false, |
@@ -12,3 +12,3 @@ import { Predicate, SlugString, UnionOfPredicateTypes } from './types' | ||
} | ||
export function isDefined<T>(value: unknown): value is T { | ||
export function isDefined<T>(value: unknown): value is Exclude<T, undefined> { | ||
return value !== undefined | ||
@@ -15,0 +15,0 @@ } |
@@ -1,6 +0,9 @@ | ||
export * from './GlobalClassNamePrefixContext' | ||
export * from './Types' | ||
export * from './colorSchemeClassName' | ||
export * from './constants' | ||
export * from './deduplicateClassName' | ||
export * from './filterThemedClassName' | ||
export * from './flatClassNameList' | ||
export * from './listClassName' | ||
export * from './stateClassName' | ||
export * from './useClassName' | ||
export * from './useClassNameFactory' | ||
export * from './themeClassName' | ||
export * from './types' |
@@ -1,3 +0,3 @@ | ||
import { deduplicateClassName } from './Internal/deduplicateClassName' | ||
import { flatClassNameList } from './Internal/flatClassNameList' | ||
import { deduplicateClassName } from './deduplicateClassName' | ||
import { flatClassNameList } from './flatClassNameList' | ||
@@ -4,0 +4,0 @@ /** |
import { toKebabCase } from '../string-utilities' | ||
import { ClassNameStateMap } from './Types' | ||
import { ClassNameStateMap } from './types' | ||
@@ -4,0 +4,0 @@ export interface StateClassNameOptions { |
export * from './assert-types' | ||
export * from './class-name' | ||
export * from './css-utilities' | ||
export * from './deprecate' | ||
export * from './dom' | ||
@@ -5,0 +6,0 @@ export * from './functional' |
@@ -6,5 +6,7 @@ export type { | ||
LiteralToPrimitiveDeep, | ||
Opaque, | ||
PascalCase, | ||
Replace, | ||
UnionToIntersection, | ||
UnwrapOpaque, | ||
} from 'type-fest' | ||
@@ -11,0 +13,0 @@ export * from './DeepPartial' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
225505
266
2491