tonkean-tcltext 1.0.0 → 1.1.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/README.md CHANGED
@@ -5,7 +5,7 @@ Design system components and tokens for Tonkean app, including the TCLText compo
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install tonkean-design-system
8
+ npm install tonkean-tcltext
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -15,8 +15,8 @@ npm install tonkean-design-system
15
15
  The TCLText component provides text truncation with automatic tooltip display on hover.
16
16
 
17
17
  ```tsx
18
- import { TCLText, TCLFontSize } from 'tonkean-design-system';
19
- import 'tonkean-design-system/tokens.css';
18
+ import { TCLText, TCLFontSize } from 'tonkean-tcltext';
19
+ import 'tonkean-tcltext/tokens.css';
20
20
 
21
21
  function App() {
22
22
  return (
@@ -33,7 +33,7 @@ function App() {
33
33
  ### Using Storybook Typography Tokens Directly
34
34
 
35
35
  ```tsx
36
- import { TCLText } from 'tonkean-design-system';
36
+ import { TCLText } from 'tonkean-tcltext';
37
37
 
38
38
  function App() {
39
39
  return (
@@ -47,16 +47,58 @@ function App() {
47
47
  }
48
48
  ```
49
49
 
50
- ### Importing Tokens
50
+ ### Importing All Design Tokens
51
51
 
52
52
  ```tsx
53
- import { colors, typography, buttons, inputs } from 'tonkean-design-system';
53
+ import { colors, typography, buttons, inputs } from 'tonkean-tcltext';
54
+ import type { Colors, Typography, Buttons, Inputs } from 'tonkean-tcltext';
54
55
 
55
- // Access token values
56
+ // Access color tokens
56
57
  const primaryColor = colors.colors.purple[600];
58
+ const gray200 = colors.colors.gray[200];
59
+
60
+ // Access typography tokens
57
61
  const baseFontSize = typography.typography.fontSizes.base;
62
+ const robotoFont = typography.typography.fontFamilies.roboto;
63
+
64
+ // Access button tokens
65
+ const defaultButton = buttons.buttons.variants.default;
66
+ const buttonSizes = buttons.buttons.sizes;
67
+
68
+ // Access input tokens
69
+ const inputTypes = inputs.inputs.types;
70
+ const inputSizes = inputs.inputs.sizes;
58
71
  ```
59
72
 
73
+ ### Available Token Categories
74
+
75
+ #### Colors
76
+ - Basic: `black`, `white`
77
+ - Gray: `50` through `900`
78
+ - Red: `50` through `900`
79
+ - Yellow: `50` through `900`
80
+ - Green: `50` through `900`
81
+ - Blue: `50` through `900`
82
+ - Purple: `50` through `900`
83
+ - Pink: `50` through `900`
84
+
85
+ #### Typography
86
+ - Font Families: `lato`, `roboto`
87
+ - Font Sizes: `xs`, `sm`, `base`, `lg`, `xl`, `2xl`
88
+ - Font Weights: `regular`, `medium`, `bold`
89
+ - Line Heights: `tight`, `snug`, `normal`, `relaxed`, `loose`
90
+ - Letter Spacing: `tighter`, `tight`, `normal`, `wide`, `wider`, `widest`
91
+
92
+ #### Buttons
93
+ - Variants: `default`, `secondary`, `outline`, `destructive`, `warning`, `link`, `ghost`, `multiaction`
94
+ - Sizes: `small`, `regular`, `large`
95
+ - States: `default`, `hover`, `disabled`
96
+
97
+ #### Inputs
98
+ - Types: `basic`
99
+ - Sizes: `regular`
100
+ - States: `default`, `hover`, `focus`, `disabled`, `disabledPlaceholder`
101
+
60
102
  ### CSS Tokens
61
103
 
62
104
  Import the CSS file to use CSS variables:
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { TCLText, TCLFontSize } from './components/TCLText';
2
2
  export type { TCLTextProps } from './components/TCLText';
3
3
  export { colors, typography, buttons, inputs } from './tokens';
4
+ export type { Colors, Typography, Buttons, Inputs } from './tokens';
4
5
  export { useTooltipOnTruncation } from './components/hooks/useTooltipOnTruncation';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGzD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAG/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGzD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC/D,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Export TCLText component
2
2
  export { TCLText, TCLFontSize } from './components/TCLText';
3
- // Export tokens
3
+ // Export all design tokens
4
4
  export { colors, typography, buttons, inputs } from './tokens';
5
5
  // Export hooks
6
6
  export { useTooltipOnTruncation } from './components/hooks/useTooltipOnTruncation';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG5D,gBAAgB;AAChB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAE/D,eAAe;AACf,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG5D,2BAA2B;AAC3B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAG/D,eAAe;AACf,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tonkean-tcltext",
3
- "version": "1.0.0",
4
- "description": "Design system components and tokens for Tonkean app, including TCLText component",
3
+ "version": "1.1.0",
4
+ "description": "Complete design system package with TCLText component, design tokens (colors, typography, buttons, inputs), and CSS variables for Tonkean app",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",