@itcase/types 1.0.1 → 1.0.3

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.
Files changed (76) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +13 -10
  3. package/types/align/align.ts +1 -1
  4. package/types/align/alignDirection.ts +1 -1
  5. package/types/align/alignment.ts +1 -1
  6. package/types/appearanceKeys.ts +1 -1
  7. package/types/border/borderColor.ts +1 -1
  8. package/types/border/borderColorHover.ts +1 -1
  9. package/types/border/borderType.ts +1 -1
  10. package/types/border/borderWidth.ts +1 -1
  11. package/types/common.ts +45 -0
  12. package/types/direction.ts +1 -1
  13. package/types/elevation.ts +1 -1
  14. package/types/fill/fill.ts +1 -1
  15. package/types/fill/fillGradient.ts +1 -1
  16. package/types/fill/fillHover.ts +1 -1
  17. package/types/fill/fillType.ts +1 -1
  18. package/types/flex/flexAlign.ts +1 -1
  19. package/types/flex/flexGrow.ts +1 -1
  20. package/types/flex/flexJustifyContent.ts +1 -1
  21. package/types/flex/flexWrap.ts +1 -1
  22. package/types/grid/gridAlign.ts +1 -1
  23. package/types/grid/gridAlignSelf.ts +1 -1
  24. package/types/grid/gridJustifyItems.ts +1 -1
  25. package/types/grid/gridJustifySelf.ts +1 -1
  26. package/types/height.ts +1 -1
  27. package/types/horizontal/horizontalContentAlign.ts +1 -1
  28. package/types/horizontal/horizontalResizeMode.ts +1 -1
  29. package/types/icon/iconFillSize.ts +1 -1
  30. package/types/icon/iconSize.ts +1 -1
  31. package/types/index.ts +1 -0
  32. package/types/itemColor.ts +1 -1
  33. package/types/justifyContent.ts +1 -1
  34. package/types/overflow.ts +1 -1
  35. package/types/position.ts +1 -1
  36. package/types/resizeMode.ts +1 -1
  37. package/types/shape.ts +1 -1
  38. package/types/size/size.ts +1 -1
  39. package/types/size/sizeOption.ts +1 -1
  40. package/types/size/sizePX.ts +1 -1
  41. package/types/stacking.ts +1 -1
  42. package/types/state/state.ts +1 -1
  43. package/types/state/stateKeys.ts +1 -1
  44. package/types/svgFill.ts +1 -1
  45. package/types/text/textAlign.ts +1 -1
  46. package/types/text/textColor.ts +1 -1
  47. package/types/text/textColorActive.ts +1 -1
  48. package/types/text/textColorHover.ts +1 -1
  49. package/types/text/textGradient.ts +1 -1
  50. package/types/text/textSize.ts +1 -1
  51. package/types/text/textStyle.ts +1 -1
  52. package/types/text/textTag.ts +1 -1
  53. package/types/text/textWeight.ts +1 -1
  54. package/types/text/textWrap.ts +1 -1
  55. package/types/titleSize.ts +2 -2
  56. package/types/type.ts +1 -1
  57. package/types/underline.ts +1 -1
  58. package/types/vertical/verticalContentAlign.ts +1 -1
  59. package/types/vertical/verticalResizeMode.ts +1 -1
  60. package/types/width.ts +1 -1
  61. package/types/wrap.ts +1 -1
  62. package/.editorconfig +0 -35
  63. package/.github/workflows/publish.yaml +0 -33
  64. package/.husky/check_message +0 -5
  65. package/.husky/post-commit +0 -14
  66. package/.husky/post-merge +0 -14
  67. package/.husky/pre-commit +0 -6
  68. package/.husky/pre-push +0 -14
  69. package/.husky/set_release_message +0 -43
  70. package/commitlint.config.mjs +0 -3
  71. package/eslint.config.mjs +0 -3
  72. package/index.ts +0 -1
  73. package/lint-staged.config.mjs +0 -3
  74. package/prettier.config.mjs +0 -3
  75. package/release.config.mjs +0 -3
  76. package/tsconfig.json +0 -23
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## [1.0.3](https://github.com/ITCase/itcase-types/compare/v1.0.2...v1.0.3) (2025-05-13)
2
+
3
+ ### Fixes
4
+
5
+ * add files to git ([a9bd6a6](https://github.com/ITCase/itcase-types/commit/a9bd6a613ec8e161179a7553d25232728fdd19e0))
6
+
7
+ ### Features
8
+
9
+ * add simple "common" types ([e797bc4](https://github.com/ITCase/itcase-types/commit/e797bc4701a4e8f6e9f357b5ab7c7868f7b6c742))
10
+
11
+ ## [1.0.2](https://github.com/ITCase/itcase-types/compare/v1.0.1...v1.0.2) (2025-04-21)
12
+
13
+ ### Bug Fixes
14
+
15
+ * rename types ([452e4bc](https://github.com/ITCase/itcase-types/commit/452e4bcf07b6098a596e3edfdd0ec5b2ca8d63e9))
16
+
1
17
  ## [1.0.1](https://github.com/ITCase/itcase-types/compare/v1.0.0...v1.0.1) (2025-04-21)
2
18
 
3
19
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/types",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "unified type storage",
5
5
  "keywords": [
6
6
  "types"
@@ -8,7 +8,7 @@
8
8
  "license": "MIT",
9
9
  "private": false,
10
10
  "exports": {
11
- ".": "./index.ts"
11
+ ".": "./types/index.ts"
12
12
  },
13
13
  "scripts": {
14
14
  "lint": "eslint types/",
@@ -16,6 +16,11 @@
16
16
  "prepare": "husky",
17
17
  "semantic-release": "semantic-release"
18
18
  },
19
+ "files": [
20
+ "types",
21
+ "README.md",
22
+ "CHANGELOG.md"
23
+ ],
19
24
  "repository": {
20
25
  "type": "git",
21
26
  "url": "https://github.com/ITCase/itcase-types.git"
@@ -24,20 +29,18 @@
24
29
  "access": "public",
25
30
  "registry": "https://registry.npmjs.org/"
26
31
  },
27
- "dependencies": {
28
- "@itcase/config": "^1.0.26"
29
- },
30
32
  "devDependencies": {
31
- "@commitlint/cli": "^19.8.0",
32
- "@commitlint/config-conventional": "^19.8.0",
33
- "@itcase/lint": "^1.1.4",
33
+ "@commitlint/cli": "^19.8.1",
34
+ "@commitlint/config-conventional": "^19.8.1",
35
+ "@itcase/config": "^1.0.41",
36
+ "@itcase/lint": "^1.1.9",
34
37
  "@semantic-release/changelog": "^6.0.3",
35
38
  "@semantic-release/git": "^10.0.1",
36
39
  "@semantic-release/release-notes-generator": "14.0.3",
37
40
  "conventional-changelog-conventionalcommits": "^8.0.0",
38
- "eslint": "9.24.0",
41
+ "eslint": "9.26.0",
39
42
  "husky": "^9.1.7",
40
- "lint-staged": "^15.5.1",
43
+ "lint-staged": "^16.0.0",
41
44
  "prettier": "^3.5.3",
42
45
  "semantic-release": "^24.2.3",
43
46
  "typescript": "^5.8.3"
@@ -10,6 +10,6 @@ const alignProps = [
10
10
  'bottomRight',
11
11
  ] as const
12
12
 
13
- export type tAlignProps = (typeof alignProps)[number]
13
+ export type AlignProps = (typeof alignProps)[number]
14
14
 
15
15
  export { alignProps }
@@ -9,6 +9,6 @@ const alignDirectionProps = [
9
9
  'vertical-reverse',
10
10
  ] as const
11
11
 
12
- export type tAlignDirectionProps = (typeof alignDirectionProps)[number]
12
+ export type AlignDirectionProps = (typeof alignDirectionProps)[number]
13
13
 
14
14
  export { alignDirectionProps }
@@ -9,6 +9,6 @@ const alignmentProps = [
9
9
  'bottomLeft',
10
10
  ] as const
11
11
 
12
- export type tAlignmentProps = (typeof alignmentProps)[number]
12
+ export type AlignmentProps = (typeof alignmentProps)[number]
13
13
 
14
14
  export { alignmentProps }
@@ -1,4 +1,4 @@
1
- export type tAppearanceKeysDefault =
1
+ export type AppearanceKeysDefault =
2
2
  | 'accent'
3
3
  | 'accentPrimary'
4
4
  | 'accentQuaternary'
@@ -41,6 +41,6 @@ const borderColorProps = [
41
41
  'none',
42
42
  ] as const
43
43
 
44
- export type tBorderColorProps = (typeof borderColorProps)[number]
44
+ export type BorderColorProps = (typeof borderColorProps)[number]
45
45
 
46
46
  export { borderColorProps }
@@ -13,6 +13,6 @@ const borderColorHoverProps = [
13
13
  'surfaceBorderQuaternary',
14
14
  ] as const
15
15
 
16
- export type tBorderColorHoverProps = (typeof borderColorHoverProps)[number]
16
+ export type BorderColorHoverProps = (typeof borderColorHoverProps)[number]
17
17
 
18
18
  export { borderColorHoverProps }
@@ -1,5 +1,5 @@
1
1
  const borderTypeProps = ['outline', 'solid', 'none'] as const
2
2
 
3
- export type tBorderTypeProps = (typeof borderTypeProps)[number]
3
+ export type BorderTypeProps = (typeof borderTypeProps)[number]
4
4
 
5
5
  export { borderTypeProps }
@@ -11,6 +11,6 @@ const borderWidthProps = [
11
11
  '10',
12
12
  ] as const
13
13
 
14
- export type tBorderWidthProps = (typeof borderWidthProps)[number]
14
+ export type BorderWidthProps = (typeof borderWidthProps)[number]
15
15
 
16
16
  export { borderWidthProps }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Used for objects unique identifier as "id" property. Sometime id may be
3
+ * generated as random string(uuid) or number from the rest-api response.
4
+ * Or in some cases when JS convert number to string, e.g. cookies, search-params, etc.
5
+ */
6
+ type Id = number | string
7
+
8
+ /**
9
+ * Date
10
+ * @format ISO date: "2024-01-31"
11
+ */
12
+ type DateIso = string
13
+
14
+ /**
15
+ * Date and time
16
+ * @format ISO date and time: "2024-01-31T23:00:59.322230+03:00"
17
+ */
18
+ type DateTimeIso = string
19
+
20
+ /**
21
+ * URL to file. E.g.: in django media folder
22
+ * @format relative URL: "/media/uploads/{...}/file_name.png"
23
+ */
24
+ type ImageRelativeUrl = string
25
+
26
+ /**
27
+ * URL to file. E.g.: in django media folder
28
+ * @format absolute URL: "https://itcase.pro/media/uploads/{...}/file_name.png"
29
+ */
30
+ type ImageAbsoluteUrl = string
31
+
32
+ /**
33
+ * Simple callback function that takes no arguments and returns nothing.
34
+ * This type is used for basic event handlers or asynchronous operations.
35
+ */
36
+ type SimpleCallback = () => void
37
+
38
+ export type {
39
+ Id,
40
+ DateIso,
41
+ DateTimeIso,
42
+ ImageRelativeUrl,
43
+ ImageAbsoluteUrl,
44
+ SimpleCallback,
45
+ }
@@ -7,6 +7,6 @@ const directionProps = [
7
7
  'horizontal',
8
8
  ] as const
9
9
 
10
- export type tDirectionProps = (typeof directionProps)[number]
10
+ export type DirectionProps = (typeof directionProps)[number]
11
11
 
12
12
  export { directionProps }
@@ -1,5 +1,5 @@
1
1
  const elevationProps = ['1', '2', '4', '6', '8', '12', '16', '24'] as const
2
2
 
3
- export type tElevationProps = (typeof elevationProps)[number]
3
+ export type ElevationProps = (typeof elevationProps)[number]
4
4
 
5
5
  export { elevationProps }
@@ -34,6 +34,6 @@ const fillProps = [
34
34
  'none',
35
35
  ] as const
36
36
 
37
- export type tFillProps = (typeof fillProps)[number]
37
+ export type FillProps = (typeof fillProps)[number]
38
38
 
39
39
  export { fillProps }
@@ -8,6 +8,6 @@ const fillGradientProps = [
8
8
  'success',
9
9
  ] as const
10
10
 
11
- export type tFillGradientProps = (typeof fillGradientProps)[number]
11
+ export type FillGradientProps = (typeof fillGradientProps)[number]
12
12
 
13
13
  export { fillGradientProps }
@@ -15,6 +15,6 @@ const fillHoverProps = [
15
15
  'surfaceTertiaryHover',
16
16
  ] as const
17
17
 
18
- export type tFillHoverProps = (typeof fillHoverProps)[number]
18
+ export type FillHoverProps = (typeof fillHoverProps)[number]
19
19
 
20
20
  export { fillHoverProps }
@@ -1,5 +1,5 @@
1
1
  const fillTypeProps = ['full', 'solid', 'outlined', 'ghost'] as const
2
2
 
3
- export type tFillTypeProps = (typeof fillTypeProps)[number]
3
+ export type FillTypeProps = (typeof fillTypeProps)[number]
4
4
 
5
5
  export { fillTypeProps }
@@ -7,6 +7,6 @@ const flexAlignProps = [
7
7
  'auto',
8
8
  ] as const
9
9
 
10
- export type tFlexAlignProps = (typeof flexAlignProps)[number]
10
+ export type FlexAlignProps = (typeof flexAlignProps)[number]
11
11
 
12
12
  export { flexAlignProps }
@@ -1,5 +1,5 @@
1
1
  const flexGrowProps = ['0', '1'] as const
2
2
 
3
- export type tFlexGrowProps = (typeof flexGrowProps)[number]
3
+ export type FlexGrowProps = (typeof flexGrowProps)[number]
4
4
 
5
5
  export { flexGrowProps }
@@ -7,6 +7,6 @@ const flexJustifyContentProps = [
7
7
  'space-evenly',
8
8
  ] as const
9
9
 
10
- export type tFlexJustifyContentProps = (typeof flexJustifyContentProps)[number]
10
+ export type FlexJustifyContentProps = (typeof flexJustifyContentProps)[number]
11
11
 
12
12
  export { flexJustifyContentProps }
@@ -1,5 +1,5 @@
1
1
  const flexWrapProps = ['wrap', 'nowrap', 'wrap-reverse'] as const
2
2
 
3
- export type tFlexWrapProps = (typeof flexWrapProps)[number]
3
+ export type FlexWrapProps = (typeof flexWrapProps)[number]
4
4
 
5
5
  export { flexWrapProps }
@@ -18,6 +18,6 @@ const gridAlignProps = [
18
18
  'last baseline',
19
19
  ] as const
20
20
 
21
- export type tGridAlignProps = (typeof gridAlignProps)[number]
21
+ export type GridAlignProps = (typeof gridAlignProps)[number]
22
22
 
23
23
  export { gridAlignProps }
@@ -18,6 +18,6 @@ const gridAlignSelfProps = [
18
18
  'last baseline',
19
19
  ] as const
20
20
 
21
- export type tGridAlignSelfProps = (typeof gridAlignSelfProps)[number]
21
+ export type GridAlignSelfProps = (typeof gridAlignSelfProps)[number]
22
22
 
23
23
  export { gridAlignSelfProps }
@@ -19,6 +19,6 @@ const gridJustifyItemsProps = [
19
19
  'last baseline',
20
20
  ] as const
21
21
 
22
- export type tGridJustifyItemsProps = (typeof gridJustifyItemsProps)[number]
22
+ export type GridJustifyItemsProps = (typeof gridJustifyItemsProps)[number]
23
23
 
24
24
  export { gridJustifyItemsProps }
@@ -23,6 +23,6 @@ const gridJustifySelfProps = [
23
23
  'last baseline',
24
24
  ] as const
25
25
 
26
- export type tGridJustifySelfProps = (typeof gridJustifySelfProps)[number]
26
+ export type GridJustifySelfProps = (typeof gridJustifySelfProps)[number]
27
27
 
28
28
  export { gridJustifySelfProps }
package/types/height.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  const heightProps = ['fixed', 'hug', 'fill'] as const
2
2
 
3
- export type tHeightProps = (typeof heightProps)[number]
3
+ export type HeightProps = (typeof heightProps)[number]
4
4
 
5
5
  export { heightProps }
@@ -1,6 +1,6 @@
1
1
  const horizontalContentAlignProps = ['center'] as const
2
2
 
3
- export type tHorizontalContentAlignProps =
3
+ export type HorizontalContentAlignProps =
4
4
  (typeof horizontalContentAlignProps)[number]
5
5
 
6
6
  export { horizontalContentAlignProps }
@@ -1,6 +1,6 @@
1
1
  const horizontalResizeModeProps = ['fixed', 'hug', 'fill'] as const
2
2
 
3
- export type tHorizontalResizeModeProps =
3
+ export type HorizontalResizeModeProps =
4
4
  (typeof horizontalResizeModeProps)[number]
5
5
 
6
6
  export { horizontalResizeModeProps }
@@ -11,6 +11,6 @@ const iconFillSizeProps = [
11
11
  '144',
12
12
  ] as const
13
13
 
14
- export type tIconFillSizeProps = (typeof iconFillSizeProps)[number]
14
+ export type IconFillSizeProps = (typeof iconFillSizeProps)[number]
15
15
 
16
16
  export { iconFillSizeProps }
@@ -12,6 +12,6 @@ const iconSizeProps = [
12
12
  '144',
13
13
  ] as const
14
14
 
15
- export type tIconSizeProps = (typeof iconSizeProps)[number]
15
+ export type IconSizeProps = (typeof iconSizeProps)[number]
16
16
 
17
17
  export { iconSizeProps }
package/types/index.ts CHANGED
@@ -17,6 +17,7 @@ export * from './vertical'
17
17
  * files
18
18
  */
19
19
  export * from './appearanceKeys'
20
+ export * from './common'
20
21
  export * from './direction'
21
22
  export * from './elevation'
22
23
  export * from './height'
@@ -34,6 +34,6 @@ const itemColorProps = [
34
34
  'successItemSecondary',
35
35
  ] as const
36
36
 
37
- export type tItemColorProps = (typeof itemColorProps)[number]
37
+ export type ItemColorProps = (typeof itemColorProps)[number]
38
38
 
39
39
  export { itemColorProps }
@@ -12,6 +12,6 @@ const justifyContentProps = [
12
12
  'spaceEvenly',
13
13
  ] as const
14
14
 
15
- export type tJustifyContentProps = (typeof justifyContentProps)[number]
15
+ export type JustifyContentProps = (typeof justifyContentProps)[number]
16
16
 
17
17
  export { justifyContentProps }
package/types/overflow.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  const overflowProps = ['hidden', 'scroll', 'visible'] as const
2
2
 
3
- export type tOverflowProps = (typeof overflowProps)[number]
3
+ export type OverflowProps = (typeof overflowProps)[number]
4
4
 
5
5
  export { overflowProps }
package/types/position.ts CHANGED
@@ -6,6 +6,6 @@ const positionProps = [
6
6
  'inherit',
7
7
  ] as const
8
8
 
9
- export type tPositionProps = (typeof positionProps)[number]
9
+ export type PositionProps = (typeof positionProps)[number]
10
10
 
11
11
  export { positionProps }
@@ -6,6 +6,6 @@ const resizeModeProps = [
6
6
  'caption-back',
7
7
  ] as const
8
8
 
9
- export type tResizeModeProps = (typeof resizeModeProps)[number]
9
+ export type ResizeModeProps = (typeof resizeModeProps)[number]
10
10
 
11
11
  export { resizeModeProps }
package/types/shape.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  const shapeProps = ['rectangle', 'geometric', 'rounded', 'circular'] as const
2
2
 
3
- export type tShapeProps = (typeof shapeProps)[number]
3
+ export type ShapeProps = (typeof shapeProps)[number]
4
4
 
5
5
  export { shapeProps }
@@ -1,5 +1,5 @@
1
1
  const sizeProps = ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'] as const
2
2
 
3
- export type tSizeProps = (typeof sizeProps)[number]
3
+ export type SizeProps = (typeof sizeProps)[number]
4
4
 
5
5
  export { sizeProps }
@@ -13,6 +13,6 @@ const sizeOptionProps = [
13
13
  'xxl',
14
14
  ] as const
15
15
 
16
- export type tSizeOptionProps = (typeof sizeOptionProps)[number]
16
+ export type SizeOptionProps = (typeof sizeOptionProps)[number]
17
17
 
18
18
  export { sizeOptionProps }
@@ -17,6 +17,6 @@ const sizePXProps = [
17
17
  '240',
18
18
  ] as const
19
19
 
20
- export type tSizePXProps = (typeof sizePXProps)[number]
20
+ export type SizePXProps = (typeof sizePXProps)[number]
21
21
 
22
22
  export { sizePXProps }
package/types/stacking.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  const stackingProps = ['firstOnTop', 'lastOnTop'] as const
2
2
 
3
- export type tStackingProps = (typeof stackingProps)[number]
3
+ export type StackingProps = (typeof stackingProps)[number]
4
4
 
5
5
  export { stackingProps }
@@ -7,6 +7,6 @@ const stateProps = [
7
7
  'normal',
8
8
  ] as const
9
9
 
10
- export type tStateProps = (typeof stateProps)[number]
10
+ export type StateProps = (typeof stateProps)[number]
11
11
 
12
12
  export { stateProps }
@@ -1,4 +1,4 @@
1
- export type tStateKeysDefault =
1
+ export type StateKeysDefault =
2
2
  | 'active'
3
3
  | 'activeFilled'
4
4
  | 'disabled'
package/types/svgFill.ts CHANGED
@@ -28,6 +28,6 @@ const svgFillProps = [
28
28
  'successItemSecondary',
29
29
  ] as const
30
30
 
31
- export type tSvgFillProps = (typeof svgFillProps)[number]
31
+ export type SvgFillProps = (typeof svgFillProps)[number]
32
32
 
33
33
  export { svgFillProps }
@@ -1,5 +1,5 @@
1
1
  const textAlignProps = ['left', 'center', 'right'] as const
2
2
 
3
- export type tTextAlignProps = (typeof textAlignProps)[number]
3
+ export type TextAlignProps = (typeof textAlignProps)[number]
4
4
 
5
5
  export { textAlignProps }
@@ -35,6 +35,6 @@ const textColorProps = [
35
35
  'dangerTextSecondary',
36
36
  ] as const
37
37
 
38
- export type tTextColorProps = (typeof textColorProps)[number]
38
+ export type TextColorProps = (typeof textColorProps)[number]
39
39
 
40
40
  export { textColorProps }
@@ -35,6 +35,6 @@ const textColorActiveProps = [
35
35
  'dangerTextSecondary',
36
36
  ] as const
37
37
 
38
- export type tTextColorActiveProps = (typeof textColorActiveProps)[number]
38
+ export type TextColorActiveProps = (typeof textColorActiveProps)[number]
39
39
 
40
40
  export { textColorActiveProps }
@@ -35,6 +35,6 @@ const textColorHoverProps = [
35
35
  'dangerTextSecondary',
36
36
  ] as const
37
37
 
38
- export type tTextColorHoverProps = (typeof textColorHoverProps)[number]
38
+ export type TextColorHoverProps = (typeof textColorHoverProps)[number]
39
39
 
40
40
  export { textColorHoverProps }
@@ -8,6 +8,6 @@ const textGradientProps = [
8
8
  'success',
9
9
  ] as const
10
10
 
11
- export type tTextGradientProps = (typeof textGradientProps)[number]
11
+ export type TextGradientProps = (typeof textGradientProps)[number]
12
12
 
13
13
  export { textGradientProps }
@@ -1,5 +1,5 @@
1
1
  const textSizeProps = ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'] as const
2
2
 
3
- export type tTextSizeProps = (typeof textSizeProps)[number]
3
+ export type TextSizeProps = (typeof textSizeProps)[number]
4
4
 
5
5
  export { textSizeProps }
@@ -1,5 +1,5 @@
1
1
  const textStyleProps = ['normal', 'italic'] as const
2
2
 
3
- export type tTextStyleProps = (typeof textStyleProps)[number]
3
+ export type TextStyleProps = (typeof textStyleProps)[number]
4
4
 
5
5
  export { textStyleProps }
@@ -1,5 +1,5 @@
1
1
  const textTagProps = ['p', 'span'] as const
2
2
 
3
- export type tTextTagProps = (typeof textTagProps)[number]
3
+ export type TextTagProps = (typeof textTagProps)[number]
4
4
 
5
5
  export { textTagProps }
@@ -16,6 +16,6 @@ const textWeightProps = [
16
16
  '950',
17
17
  ] as const
18
18
 
19
- export type tTextWeightProps = (typeof textWeightProps)[number]
19
+ export type TextWeightProps = (typeof textWeightProps)[number]
20
20
 
21
21
  export { textWeightProps }
@@ -1,5 +1,5 @@
1
1
  const textWrapProps = ['wrap', 'nowrap'] as const
2
2
 
3
- export type tTextWrapProps = (typeof textWrapProps)[number]
3
+ export type TextWrapProps = (typeof textWrapProps)[number]
4
4
 
5
5
  export { textWrapProps }
@@ -1,7 +1,7 @@
1
1
  const titleSizeHeadingProps = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] as const
2
2
  const titleSizeProps = ['xxl', 'xl', 'l', 'm', 's', 'xs', 'xxs'] as const
3
3
 
4
- export type tTitleSizeProps = (typeof titleSizeProps)[number]
5
- export type tTitleSizeHeadingProps = (typeof titleSizeHeadingProps)[number]
4
+ export type TitleSizeProps = (typeof titleSizeProps)[number]
5
+ export type TitleSizeHeadingProps = (typeof titleSizeHeadingProps)[number]
6
6
 
7
7
  export { titleSizeProps, titleSizeHeadingProps }
package/types/type.ts CHANGED
@@ -8,6 +8,6 @@ const typeProps = [
8
8
  'success',
9
9
  ] as const
10
10
 
11
- export type tTypeProps = (typeof typeProps)[number]
11
+ export type TypeProps = (typeof typeProps)[number]
12
12
 
13
13
  export { typeProps }
@@ -1,5 +1,5 @@
1
1
  const underlineProps = ['none', 'underline'] as const
2
2
 
3
- export type tUnderlineProps = (typeof underlineProps)[number]
3
+ export type UnderlineProps = (typeof underlineProps)[number]
4
4
 
5
5
  export { underlineProps }
@@ -1,6 +1,6 @@
1
1
  const verticalContentAlignProps = ['center'] as const
2
2
 
3
- export type tVerticalContentAlignProps =
3
+ export type VerticalContentAlignProps =
4
4
  (typeof verticalContentAlignProps)[number]
5
5
 
6
6
  export { verticalContentAlignProps }
@@ -1,5 +1,5 @@
1
1
  const verticalResizeModeProps = ['fixed', 'hug', 'fill'] as const
2
2
 
3
- export type tVerticalResizeModeProps = (typeof verticalResizeModeProps)[number]
3
+ export type VerticalResizeModeProps = (typeof verticalResizeModeProps)[number]
4
4
 
5
5
  export { verticalResizeModeProps }
package/types/width.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  const widthProps = ['auto', 'fixed', 'hug', 'fill'] as const
2
2
 
3
- export type tWidthProps = (typeof widthProps)[number]
3
+ export type WidthProps = (typeof widthProps)[number]
4
4
 
5
5
  export { widthProps }
package/types/wrap.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  const wrapProps = ['wrap', 'no-wrap', 'nowrap', 'wrap-reverse'] as const
2
2
 
3
- export type tWrapProps = (typeof wrapProps)[number]
3
+ export type WrapProps = (typeof wrapProps)[number]
4
4
 
5
5
  export { wrapProps }
package/.editorconfig DELETED
@@ -1,35 +0,0 @@
1
- # editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.{css,js,jsx,mjs,ts,tsx}]
13
- indent_style = space
14
- indent_size = 2
15
- tab_size = 2
16
- end_of_line = lf
17
- charset = utf-8
18
- trim_trailing_whitespace = true
19
- insert_final_newline = true
20
-
21
- [*.{html,py}]
22
- indent_style = space
23
- indent_size = 4
24
- end_of_line = lf
25
- charset = utf-8
26
- trim_trailing_whitespace = true
27
- insert_final_newline = true
28
-
29
- [*.md]
30
- trim_trailing_whitespace = false
31
-
32
- [Makefile]
33
- indent_style = tab
34
- indent_size = 4
35
-
@@ -1,33 +0,0 @@
1
- name: "Publish Package to NPM Registry"
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
-
8
-
9
- jobs:
10
- publish-npm:
11
- runs-on: ubuntu-latest
12
- env:
13
- GIT_WORKFLOW: true
14
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
16
-
17
- steps:
18
- - name: "Make Checkout"
19
- uses: actions/checkout@v3
20
- with:
21
- fetch-depth: 0
22
-
23
- - name: "Setup NodeJS"
24
- uses: actions/setup-node@v3
25
- with:
26
- node-version: 20
27
-
28
- - name: "Install dependencies"
29
- run: npm install --force
30
-
31
- - name: "Publish package"
32
- shell: bash
33
- run: npm run semantic-release
@@ -1,5 +0,0 @@
1
- #!/bin/bash
2
-
3
- if [[ $(git log --format=%B -n 1) =~ major:|minor:|patch: ]]; then
4
- exit 0
5
- fi
@@ -1,14 +0,0 @@
1
- #!/bin/bash
2
-
3
- /bin/bash ".husky/check_message"
4
-
5
- branch="$(git rev-parse --abbrev-ref HEAD)"
6
-
7
- if [ "$branch" = "master" ]; then
8
- {
9
- npx commitlint --edit &&
10
- exit 0
11
- } || {
12
- /bin/bash ".husky/set_release_message"
13
- }
14
- fi
package/.husky/post-merge DELETED
@@ -1,14 +0,0 @@
1
- #!/bin/bash
2
-
3
- /bin/bash ".husky/check_message"
4
-
5
- branch="$(git rev-parse --abbrev-ref HEAD)"
6
-
7
- if [ "$branch" = "master" ]; then
8
- {
9
- npx commitlint --edit &&
10
- exit 0
11
- } || {
12
- /bin/bash ".husky/set_release_message"
13
- }
14
- fi
package/.husky/pre-commit DELETED
@@ -1,6 +0,0 @@
1
- #!/bin/bash
2
-
3
- if grep --include=*.{json,css,html,py} --exclude-dir={dist,node_modules,bower_components,.git} -nri --color -B 1 -A 1 '<\{7\} HEAD\|^\=\.{7\}\|>\.{7\}' .; then
4
- echo 'Fix conflicts'
5
- exit 1
6
- else ./node_modules/lint-staged/bin/lint-staged.js; fi
package/.husky/pre-push DELETED
@@ -1,14 +0,0 @@
1
- #!/bin/dash
2
-
3
- if [ $GIT_WORKFLOW ]; then
4
- exit 0
5
- fi
6
-
7
- /bin/bash ".husky/check_message"
8
-
9
- branch="$(git rev-parse --abbrev-ref HEAD)"
10
-
11
- if [ "$branch" = "master" ]; then
12
- npx commitlint --edit &&
13
- exit 0
14
- fi
@@ -1,43 +0,0 @@
1
- #!/bin/bash
2
-
3
- exec < /dev/tty
4
-
5
- function update_message {
6
- commit_message=$(git log --format=%B -n 1)
7
- new_commit_message="${1}: ${commit_message}"
8
- git commit --amend -m "${new_commit_message}"
9
- git log --format=%B -n 1
10
- }
11
-
12
-
13
- PS3='Select release type: '
14
-
15
- MAJOR='MAJOR version when you make incompatible API changes'
16
- MINOR='MINOR version when you add functionality in a backwards compatible manner'
17
- PATCH='PATCH version when you make backwards compatible bug fixes'
18
- CANCEL='Cancel'
19
-
20
- options=("${MAJOR}" "${MINOR}" "${PATCH}" "${CANCEL}")
21
- select opt in "${options[@]}"
22
- do
23
- case $opt in
24
- $MAJOR)
25
- update_message 'major'
26
- exit 0
27
- ;;
28
- $MINOR)
29
- update_message 'minor'
30
- exit 0
31
- ;;
32
- $PATCH)
33
- update_message 'patch'
34
- exit 0
35
- ;;
36
- $CANCEL)
37
- exit 1
38
- ;;
39
- *) echo "invalid option $REPLY";;
40
- esac
41
- done
42
-
43
- < /dev/tty
@@ -1,3 +0,0 @@
1
- import commitlint from '@itcase/config/commitlint/index.js'
2
-
3
- export default commitlint
package/eslint.config.mjs DELETED
@@ -1,3 +0,0 @@
1
- import eslint from '@itcase/lint/eslint/index.js'
2
-
3
- export default eslint
package/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './types/index'
@@ -1,3 +0,0 @@
1
- import lintstaged from '@itcase/config/lint-staged/index.js'
2
-
3
- export default lintstaged
@@ -1,3 +0,0 @@
1
- import prettier from '@itcase/lint/prettier/index.js'
2
-
3
- export default prettier
@@ -1,3 +0,0 @@
1
- import semanticRelease from '@itcase/config/semantic-release/index.js'
2
-
3
- export default semanticRelease
package/tsconfig.json DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- // Enforce consistent file casing
4
- "forceConsistentCasingInFileNames": true,
5
- // Treat each file as a separate module
6
- "isolatedModules": true,
7
- // Resolve modules using Node.js resolution algorithm
8
- "moduleResolution": "node",
9
- // Do not emit output files (for checking only)
10
- "noEmit": true,
11
- // Skip type checking of declaration files
12
- "skipLibCheck": true,
13
- // Enable strict type-checking options
14
- "strict": true
15
- },
16
- // Include files from the 'src' directory for compilation
17
- "include": [
18
- "types"
19
- ],
20
- "exclude": [
21
- "node_modules/**"
22
- ]
23
- }