@dsn-starter-kit/core 4.2.0 → 5.0.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/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/utils/classNames.ts
2
+ // src/utils/classNames.ts
3
3
  /**
4
4
  * Combines class names conditionally
5
5
  * Similar to the popular 'classnames' package
@@ -49,7 +49,6 @@ function bemModifiers(block, modifiers) {
49
49
  });
50
50
  return classes.join(" ");
51
51
  }
52
- //#endregion
53
52
  exports.bem = bem;
54
53
  exports.bemModifiers = bemModifiers;
55
54
  exports.classNames = classNames;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/utils/classNames.d.ts
2
1
  /**
3
2
  * Combines class names conditionally
4
3
  * Similar to the popular 'classnames' package
@@ -8,7 +7,7 @@
8
7
  * classNames('btn', { 'btn--active': true, 'btn--disabled': false }) // 'btn btn--active'
9
8
  * classNames('btn', null, undefined, 'btn--large') // 'btn btn--large'
10
9
  */
11
- declare function classNames(...args: (string | Record<string, boolean> | null | undefined | false)[]): string;
10
+ export declare function classNames(...args: (string | Record<string, boolean> | null | undefined | false)[]): string;
12
11
  /**
13
12
  * BEM (Block Element Modifier) class name helper
14
13
  *
@@ -18,7 +17,7 @@ declare function classNames(...args: (string | Record<string, boolean> | null |
18
17
  * bem('button', null, 'primary') // 'button--primary'
19
18
  * bem('button', 'icon', 'large') // 'button__icon--large'
20
19
  */
21
- declare function bem(block: string, element?: string | null, modifier?: string | null): string;
20
+ export declare function bem(block: string, element?: string | null, modifier?: string | null): string;
22
21
  /**
23
22
  * Generates BEM class names with multiple modifiers
24
23
  *
@@ -26,9 +25,7 @@ declare function bem(block: string, element?: string | null, modifier?: string |
26
25
  * bemModifiers('button', ['primary', 'large'])
27
26
  * // 'button button--primary button--large'
28
27
  */
29
- declare function bemModifiers(block: string, modifiers: (string | null | undefined | false)[]): string;
30
- //#endregion
31
- //#region src/types/form.d.ts
28
+ export declare function bemModifiers(block: string, modifiers: (string | null | undefined | false)[]): string;
32
29
  /**
33
30
  * Form-related type definitions
34
31
  */
@@ -40,6 +37,5 @@ declare function bemModifiers(block: string, modifiers: (string | null | undefin
40
37
  * type to the variants that make sense for their content.
41
38
  */
42
39
  type FormControlInlineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
43
- //#endregion
44
- export { type FormControlInlineSize, bem, bemModifiers, classNames };
40
+ export type { FormControlInlineSize };
45
41
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/utils/classNames.ts","../src/types/form.ts"],"mappings":";;;;;;;;;;iBASgB,cACX,gBAAgB;;;;;;;;;;iBA8BL,IACd,eACA,yBACA;;;;;;;;iBAsBc,aACd,eACA;;;;;;;;;;;;;KCxDU"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/utils/classNames.ts","../src/types/form.ts"],"mappings":";;;;;;;;;wBASgB,cACX,gBAAgB;;;;;;;;;;wBA8BL,IACd,eACA,yBACA;;;;;;;;wBAsBc,aACd,eACA;;;;;;;;;;;KCxDU"}
package/dist/index.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/utils/classNames.d.ts
2
1
  /**
3
2
  * Combines class names conditionally
4
3
  * Similar to the popular 'classnames' package
@@ -8,7 +7,7 @@
8
7
  * classNames('btn', { 'btn--active': true, 'btn--disabled': false }) // 'btn btn--active'
9
8
  * classNames('btn', null, undefined, 'btn--large') // 'btn btn--large'
10
9
  */
11
- declare function classNames(...args: (string | Record<string, boolean> | null | undefined | false)[]): string;
10
+ export declare function classNames(...args: (string | Record<string, boolean> | null | undefined | false)[]): string;
12
11
  /**
13
12
  * BEM (Block Element Modifier) class name helper
14
13
  *
@@ -18,7 +17,7 @@ declare function classNames(...args: (string | Record<string, boolean> | null |
18
17
  * bem('button', null, 'primary') // 'button--primary'
19
18
  * bem('button', 'icon', 'large') // 'button__icon--large'
20
19
  */
21
- declare function bem(block: string, element?: string | null, modifier?: string | null): string;
20
+ export declare function bem(block: string, element?: string | null, modifier?: string | null): string;
22
21
  /**
23
22
  * Generates BEM class names with multiple modifiers
24
23
  *
@@ -26,9 +25,7 @@ declare function bem(block: string, element?: string | null, modifier?: string |
26
25
  * bemModifiers('button', ['primary', 'large'])
27
26
  * // 'button button--primary button--large'
28
27
  */
29
- declare function bemModifiers(block: string, modifiers: (string | null | undefined | false)[]): string;
30
- //#endregion
31
- //#region src/types/form.d.ts
28
+ export declare function bemModifiers(block: string, modifiers: (string | null | undefined | false)[]): string;
32
29
  /**
33
30
  * Form-related type definitions
34
31
  */
@@ -40,6 +37,5 @@ declare function bemModifiers(block: string, modifiers: (string | null | undefin
40
37
  * type to the variants that make sense for their content.
41
38
  */
42
39
  type FormControlInlineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
43
- //#endregion
44
- export { type FormControlInlineSize, bem, bemModifiers, classNames };
40
+ export type { FormControlInlineSize };
45
41
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/utils/classNames.ts","../src/types/form.ts"],"mappings":";;;;;;;;;;iBASgB,cACX,gBAAgB;;;;;;;;;;iBA8BL,IACd,eACA,yBACA;;;;;;;;iBAsBc,aACd,eACA;;;;;;;;;;;;;KCxDU"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/utils/classNames.ts","../src/types/form.ts"],"mappings":";;;;;;;;;wBASgB,cACX,gBAAgB;;;;;;;;;;wBA8BL,IACd,eACA,yBACA;;;;;;;;wBAsBc,aACd,eACA;;;;;;;;;;;KCxDU"}
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/utils/classNames.ts
1
+ // src/utils/classNames.ts
2
2
  /**
3
3
  * Combines class names conditionally
4
4
  * Similar to the popular 'classnames' package
@@ -48,7 +48,6 @@ function bemModifiers(block, modifiers) {
48
48
  });
49
49
  return classes.join(" ");
50
50
  }
51
- //#endregion
52
51
  export { bem, bemModifiers, classNames };
53
52
 
54
53
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsn-starter-kit/core",
3
- "version": "4.2.0",
3
+ "version": "5.0.0",
4
4
  "description": "Core styles and utilities for the design system",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -43,11 +43,11 @@
43
43
  "access": "public"
44
44
  },
45
45
  "dependencies": {
46
- "@dsn-starter-kit/design-tokens": "4.2.0"
46
+ "@dsn-starter-kit/design-tokens": "5.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "typescript": "^5.3.3",
50
- "tsdown": "^0.22.14"
49
+ "tsdown": "^0.23.5",
50
+ "typescript": "~6.0.3"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "npm run build:js && npm run build:css",