@itcase/types 1.0.4 → 1.0.5

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/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## [1.0.5](https://github.com/ITCase/itcase-types/compare/v1.0.4...v1.0.5) (2025-06-12)
2
+
1
3
  ## [1.0.4](https://github.com/ITCase/itcase-types/compare/v1.0.3...v1.0.4) (2025-06-04)
2
4
 
3
5
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/types",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "unified type storage",
5
5
  "keywords": [
6
6
  "types"
@@ -32,17 +32,17 @@
32
32
  "devDependencies": {
33
33
  "@commitlint/cli": "^19.8.1",
34
34
  "@commitlint/config-conventional": "^19.8.1",
35
- "@itcase/config": "^1.0.41",
36
- "@itcase/lint": "^1.1.9",
35
+ "@itcase/config": "^1.0.47",
36
+ "@itcase/lint": "^1.1.15",
37
37
  "@semantic-release/changelog": "^6.0.3",
38
38
  "@semantic-release/git": "^10.0.1",
39
39
  "@semantic-release/release-notes-generator": "14.0.3",
40
- "conventional-changelog-conventionalcommits": "^8.0.0",
41
- "eslint": "9.26.0",
40
+ "conventional-changelog-conventionalcommits": "^9.0.0",
41
+ "eslint": "9.28.0",
42
42
  "husky": "^9.1.7",
43
- "lint-staged": "^16.0.0",
43
+ "lint-staged": "^16.1.0",
44
44
  "prettier": "^3.5.3",
45
- "semantic-release": "^24.2.3",
45
+ "semantic-release": "^24.2.5",
46
46
  "typescript": "^5.8.3"
47
47
  }
48
48
  }
@@ -1,4 +1,6 @@
1
- export type AppearanceKeysDefault =
1
+ import type { SizeProps } from './size'
2
+
3
+ type AppearanceKeysDefault =
2
4
  | 'accent'
3
5
  | 'accentPrimary'
4
6
  | 'accentQuaternary'
@@ -31,3 +33,11 @@ export type AppearanceKeysDefault =
31
33
  | 'surfaceTertiary'
32
34
  | 'unableLoadData'
33
35
  | 'warning'
36
+
37
+ type SizeAppearanceKey = `size${Uppercase<SizeProps>}`
38
+
39
+ type CompositeAppearanceKey =
40
+ | `${AppearanceKeysDefault} ${SizeAppearanceKey}`
41
+ | AppearanceKeysDefault
42
+
43
+ export type { AppearanceKeysDefault, CompositeAppearanceKey, SizeAppearanceKey }
@@ -1,5 +1,6 @@
1
1
  const sizeProps = ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'] as const
2
2
 
3
- export type SizeProps = (typeof sizeProps)[number]
3
+ type SizeProps = (typeof sizeProps)[number]
4
4
 
5
5
  export { sizeProps }
6
+ export type { SizeProps }