cetec-design-system 3.2.1-0 → 3.3.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/README.md CHANGED
@@ -79,8 +79,8 @@ Repository plan documents now live in `plans/`.
79
79
 
80
80
  This design system is built on **Panda CSS** with a strict tokens-first approach:
81
81
 
82
- - **Tokens** (`src/styles/tokens.ts`) - Design tokens for colors, spacing, typography, shadows, etc.
83
- - **Semantic Tokens** (`src/styles/semanticTokens.ts`) - Theme-specific token aliases for light/dark modes
82
+ - **Tokens** (`src/styles/primitives/`) - Design tokens for colors, spacing, typography, shadows, etc.
83
+ - **Semantic Tokens** (`src/styles/semantics/`) - Theme-specific token aliases for light/dark modes
84
84
  - **Recipes** (`src/recipes/`) - Component style variants (button, input, text, etc.)
85
85
  - **Components** (`src/components/`) - React components using recipes and tokens
86
86
  - **Icons** (`src/utils/svgsSource/`) - SVG icons compiled into a sprite system
@@ -99,8 +99,8 @@ This design system is built on **Panda CSS** with a strict tokens-first approach
99
99
 
100
100
  1. Create component directory: `src/components/[ComponentName]/`
101
101
  2. Create a recipe in `src/recipes/[componentname].ts` defining style variants
102
- 3. Export recipe from `src/recipes/index.ts`
103
- 4. Standard `recipes` are registered automatically, but new `slotRecipes` need to be manually registered in `panda.config.ts` under `theme.extend.recipes`
102
+ 3. Export the recipe from `src/recipes/recipes-regular.ts` or, for a slot recipe, `src/recipes/recipes-slot.ts`
103
+ 4. Both files are registered automatically through the preset (`src/cetec-preset.ts`); no manual registration is needed
104
104
  5. Run `npm run prepare` to regenerate Panda CSS types
105
105
  6. Implement component using the recipe
106
106
  7. Create Storybook story in component directory: `ComponentName.stories.tsx`
@@ -156,7 +156,7 @@ building `styled-system` and `styles.css`.
156
156
  1. **Import the stylesheet** at the root of your project:
157
157
 
158
158
  ```typescript
159
- import '@styled-system/styles.css';
159
+ import 'cetec-design-system/styles.css';
160
160
  ```
161
161
 
162
162
  2. **Wrap your app with ThemeProvider**:
@@ -189,6 +189,20 @@ function MyComponent() {
189
189
  }
190
190
  ```
191
191
 
192
+ ### Fonts
193
+
194
+ The package ships the Ruda and Recursive variable fonts. Import the font
195
+ stylesheet once, next to the main stylesheet:
196
+
197
+ ```typescript
198
+ import 'cetec-design-system/fonts.css';
199
+ ```
200
+
201
+ `fonts.css` points at `./fonts/*.woff2` relative to itself, so any bundler
202
+ (Vite, webpack, esbuild) resolves the files from `node_modules`. Consumers do not
203
+ need to install `@fontsource-variable/*`. The source is
204
+ `src/styles/font-imports.css`; `tools/build-fonts.mjs` builds the published copy.
205
+
192
206
  ## Release Process
193
207
 
194
208
  This project uses [Auto](https://intuit.github.io/auto/) for automated releases and changelog generation.
@@ -0,0 +1,93 @@
1
+ Copyright 2019 The Recursive Project Authors (github.com/arrowtype/recursive)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2019 The Ruda Project Authors (https://github.com/marmonsalve/Ruda-new)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
package/dist/fonts.css ADDED
@@ -0,0 +1,35 @@
1
+ /*
2
+ --------------------
3
+ Font imports
4
+ --------------------
5
+ */
6
+
7
+ @layer base {
8
+ /* ruda-latin-wght-normal */
9
+ @font-face {
10
+ font-family: 'Ruda Variable';
11
+ font-style: normal;
12
+ font-display: swap;
13
+ font-weight: 400 900;
14
+ src: url('./fonts/ruda-latin-wght-normal.woff2')
15
+ format('woff2-variations');
16
+ unicode-range:
17
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
18
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
19
+ U+2212, U+2215, U+FEFF, U+FFFD;
20
+ }
21
+ /* recursive-latin-wght-normal */
22
+ /* https://www.recursive.design/ */
23
+ @font-face {
24
+ font-family: 'Recursive Variable';
25
+ font-style: oblique 0deg 15deg;
26
+ font-display: swap;
27
+ font-weight: 300 1000;
28
+ src: url('./fonts/recursive-latin-full-normal.woff2')
29
+ format('woff2-variations');
30
+ unicode-range:
31
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
32
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
33
+ U+2212, U+2215, U+FEFF, U+FFFD;
34
+ }
35
+ }
package/dist/index.js CHANGED
@@ -757,6 +757,7 @@ const labelVariantMap = {
757
757
  "32",
758
758
  "40",
759
759
  "48",
760
+ "56",
760
761
  "64",
761
762
  "72",
762
763
  "80",
@@ -826,6 +827,7 @@ const linkVariantMap = {
826
827
  "32",
827
828
  "40",
828
829
  "48",
830
+ "56",
829
831
  "64",
830
832
  "72",
831
833
  "80",
@@ -1576,6 +1578,7 @@ const textVariantMap = {
1576
1578
  "32",
1577
1579
  "40",
1578
1580
  "48",
1581
+ "56",
1579
1582
  "64",
1580
1583
  "72",
1581
1584
  "80",
@@ -11078,6 +11081,10 @@ const tokens = {
11078
11081
  "value": "var(--cetec-sizes-48)",
11079
11082
  "variable": "var(--cetec-font-sizes-48)"
11080
11083
  },
11084
+ "fontSizes.56": {
11085
+ "value": "var(--cetec-sizes-56)",
11086
+ "variable": "var(--cetec-font-sizes-56)"
11087
+ },
11081
11088
  "fontSizes.64": {
11082
11089
  "value": "var(--cetec-sizes-64)",
11083
11090
  "variable": "var(--cetec-font-sizes-64)"
@@ -11390,10 +11397,18 @@ const tokens = {
11390
11397
  "value": "var(--cetec-sizes-4)",
11391
11398
  "variable": "var(--cetec-radii-4)"
11392
11399
  },
11400
+ "radii.6": {
11401
+ "value": "var(--cetec-sizes-6)",
11402
+ "variable": "var(--cetec-radii-6)"
11403
+ },
11393
11404
  "radii.8": {
11394
11405
  "value": "var(--cetec-sizes-8)",
11395
11406
  "variable": "var(--cetec-radii-8)"
11396
11407
  },
11408
+ "radii.12": {
11409
+ "value": "var(--cetec-sizes-12)",
11410
+ "variable": "var(--cetec-radii-12)"
11411
+ },
11397
11412
  "radii.16": {
11398
11413
  "value": "var(--cetec-sizes-16)",
11399
11414
  "variable": "var(--cetec-radii-16)"