Skip to content

Commit 2ba6476

Browse files
committed
feat: release 7
1 parent 18fef01 commit 2ba6476

File tree

176 files changed

+7532
-2912
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+7532
-2912
lines changed

.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ UNIFORM_PREVIEW_SECRET=hello-world
99
# defaults to localhost:3000 if not set.
1010
#When set, should resolve to the base url of the app.
1111
# This is used to generate the sitemap and robots.txt
12-
BASE_URL=
12+
BASE_URL=
13+
14+
# Temporarily, you need to provide an NPM token to download the new SDK alpha packages.
15+
NPM_TOKEN=

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Whenever you add new **colors, dimensions, fonts, or borders**, your application
8383

8484
```sh
8585
npm run pull:dex
86+
npm run apply:dex
8687
```
8788

8889
This command is automatically executed when running:
@@ -105,16 +106,10 @@ When modifying an **existing value**, your app will automatically fetch the upda
105106

106107
## 🎨 Working with Styles
107108

108-
If you prefer managing styles manually, you can modify the predefined configuration files located in the `styles/` directory:
109-
110-
- `styles/border.css`
111-
- `styles/colors.css`
112-
- `styles/dimensions.css`
113-
- `styles/fonts.css`
114-
115-
After making changes, push the updated configuration using:
109+
If you prefer managing styles manually, you can modify the predefined configuration files `dex.config.json`. After making changes, apply and push the updated configuration using:
116110

117111
```sh
112+
npm run apply:dex
118113
npm run push:dex
119114
```
120115

@@ -143,16 +138,16 @@ By default, the **Design Extension** includes two predefined groups:
143138
- `button`
144139
- `text`
145140

146-
### **Understanding `allowGroups.json`**
141+
### **Understanding `allowGroups`**
147142

148-
When your project is still using the default configuration, the `allowGroups.json` file will be **empty**. However, if you add a custom group (e.g., `page`), it will be added to this file automatically.
143+
When your project is still using the default configuration, the `allowGroups` field will be **empty**. However, if you add a custom group (e.g., `page`), it will be added to this field automatically.
149144

150145
#### **Example: Adding a Custom Group (Page)**
151146

152-
If you introduce a new group, such as `page`, the `allowGroups.json` file will be updated as follows:
147+
If you introduce a new group, such as `page`, the `dex.config.json` file will be updated as follows:
153148

154149
```json
155-
{ "color": ["button", "page", "text"] }
150+
allowedGroups: { "color": ["button", "page", "text"] }
156151
```
157152

158153
### **Creating and Pushing Custom Groups**
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
asset:
2+
type: image
3+
_id: ca661a4a-fefe-4e01-afab-0892446cc4d2
4+
_name: ''
5+
fields:
6+
title:
7+
type: text
8+
value: icon-uniform-logo_white.svg
9+
file:
10+
type: file
11+
value: 3c8d25a3-25d5-4898-90a9-336d3523fd06
12+
mediaType:
13+
value: image/svg+xml
14+
type: text
15+
url:
16+
value: >-
17+
https://img.uniform.global/p/bKE8PekcQ3Gk9j6C81jcrQ/iAIoC-kBRq-iFuv2j8zTkw-icon-uniform-logo_white.svg
18+
type: text
19+
size:
20+
value: 2398
21+
type: number
22+
width:
23+
value: 159
24+
type: number
25+
height:
26+
value: 41
27+
type: number
28+
custom: {}
29+
created: '2025-07-30T13:07:08.808293+00:00'
30+
modified: '2025-07-30T13:07:08.808293+00:00'

content/component/accordion.yaml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ parameters:
77
- id: displayName
88
name: Display Name
99
type: text
10+
guidance: Used as a display name for the canvas; not rendered in the markup.
1011
typeConfig: null
1112
localizable: true
1213
- id: 9f8178c3-539f-4a1e-8a4e-71bfcedfe223
@@ -23,30 +24,42 @@ parameters:
2324
- id: backgroundColor
2425
name: Background Color
2526
type: dex-color-palette-parameter
27+
guidance: Use the Background Color parameter to control component background color.
2628
typeConfig: null
2729
- id: spacing
2830
name: Spacing
2931
type: dex-space-control-parameter
32+
guidance: Use the Spacing parameter to control component margins and padding.
3033
typeConfig:
3134
type: dimensions
32-
defaultValue:
33-
mobile: {}
34-
tablet: {}
35-
desktop: {}
3635
withViewPort: true
3736
selectedGroup: container
3837
- id: border
3938
name: Border
4039
type: dex-token-selector-parameter
40+
guidance: Use the Border parameter to control the component border.
4141
typeConfig:
4242
selectedTokenType: border
4343
- id: fluidContent
4444
name: Fluid Content
4545
type: checkbox
46+
guidance: >-
47+
Use the Fluid Content parameter to control the component width.
48+
49+
This parameter restricts the component within the standard centered
50+
container by default, or can enable it to render without restrictions
51+
across the full screen width.
4652
typeConfig: null
4753
- id: height
4854
name: Height
4955
type: dex-segmented-control-parameter
56+
guidance: >-
57+
Use the Height parameter to control the component height. For example:
58+
59+
Use the h-screen utility to make an element span the entire height of the
60+
viewport
61+
62+
Use h-full utilities to give an element a 100% height.
5063
helpText: Parameter for setting the height of an element.
5164
typeConfig:
5265
options:
@@ -55,22 +68,6 @@ parameters:
5568
- key: Screen
5669
value: screen
5770
withViewPort: true
58-
- id: 855b7e83-5dfc-448c-b9a6-f59060c1637b
59-
name: Deprecated
60-
type: group
61-
typeConfig:
62-
collapsed: true
63-
childrenParams:
64-
- fitHeight
65-
- fullHeight
66-
- id: fitHeight
67-
name: Fit Height (Deprecated)
68-
type: checkbox
69-
typeConfig: null
70-
- id: fullHeight
71-
name: Full Height (Deprecated)
72-
type: checkbox
73-
typeConfig: null
7471
categoryId: 096fd5ed-5e2a-4bfa-834b-fb805d1d1ce9
7572
previewImageUrl: >-
7673
https://res.cloudinary.com/uniform-demos/image/upload/csk-v-next/baseline/preview-images/accordion.jpg
@@ -93,4 +90,4 @@ slots:
9390
titleParameter: displayName
9491
canBeComposition: false
9592
created: '2025-01-29T10:47:00.832869+00:00'
96-
updated: '2025-06-25T09:40:33.010323+00:00'
93+
updated: '2025-10-06T21:18:47.956661+00:00'

content/component/accordionItem.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# yaml-language-server: $schema=<https://uniform.app/schemas/json-schema/component-definition/v1.json>
1+
# yaml-language-server: $schema=https://uniform.app/schemas/json-schema/component-definition/v1.json
22
$schema: https://uniform.app/schemas/json-schema/component-definition/v1.json
33
id: accordionItem
44
name: Accordion Item
@@ -7,11 +7,15 @@ parameters:
77
- id: text
88
name: Text
99
type: text
10+
guidance: Use the Text parameter to control the text that will be rendered.
1011
typeConfig: null
1112
localizable: true
1213
- id: tag
1314
name: HTML Tag
1415
type: dex-segmented-control-parameter
16+
guidance: >-
17+
Use the HTML Tag parameter to control the tag with which the text will be
18+
rendered.
1519
typeConfig:
1620
options:
1721
- key: H1
@@ -43,6 +47,7 @@ parameters:
4347
- id: size
4448
name: Size
4549
type: dex-segmented-control-parameter
50+
guidance: Use the Size parameter to control the font size.
4651
typeConfig:
4752
options:
4853
- key: XS
@@ -67,13 +72,15 @@ parameters:
6772
- id: color
6873
name: Color
6974
type: dex-color-palette-parameter
75+
guidance: Use the Color parameter to control the text color.
7076
typeConfig:
7177
allowColors: []
7278
selectedGroup: text
7379
allowThemeColors: []
7480
- id: weight
7581
name: Weight
7682
type: dex-segmented-control-parameter
83+
guidance: Use the Weight parameter to control the font weight.
7784
typeConfig:
7885
options:
7986
- key: Normal
@@ -88,11 +95,13 @@ parameters:
8895
- id: font
8996
name: Font
9097
type: dex-token-selector-parameter
98+
guidance: Use the Font parameter to control the font family.
9199
typeConfig:
92100
selectedTokenType: font
93101
- id: transform
94102
name: Transform
95103
type: dex-segmented-control-parameter
104+
guidance: Use the Transform parameter to control the capitalization of text.
96105
typeConfig:
97106
options:
98107
- key: Uppercase
@@ -104,6 +113,7 @@ parameters:
104113
- id: decoration
105114
name: Decoration
106115
type: dex-segmented-control-parameter
116+
guidance: Use the Decoration parameter to change the text decoration thickness.
107117
typeConfig:
108118
options:
109119
- key: Underline
@@ -115,6 +125,7 @@ parameters:
115125
- id: letterSpacing
116126
name: Letter Spacing
117127
type: dex-segmented-control-parameter
128+
guidance: Use the Letter Spacing parameter to set the letter spacing.
118129
typeConfig:
119130
options:
120131
- key: Tighter
@@ -128,6 +139,7 @@ parameters:
128139
- id: alignment
129140
name: Alignment
130141
type: dex-segmented-control-parameter
142+
guidance: Use the Alignment parameter to align the text.
131143
typeConfig:
132144
options:
133145
- key: Left
@@ -139,16 +151,14 @@ parameters:
139151
- id: backgroundColor
140152
name: Background Color
141153
type: dex-color-palette-parameter
154+
guidance: Use the Background Color parameter to control component background color.
142155
typeConfig: null
143156
- id: spacing
144157
name: Spacing
145158
type: dex-space-control-parameter
159+
guidance: Use the Spacing parameter to control component margins and padding.
146160
typeConfig:
147161
type: dimensions
148-
defaultValue:
149-
mobile: {}
150-
tablet: {}
151-
desktop: {}
152162
withViewPort: true
153163
selectedGroup: container
154164
categoryId: 70d03350-bbf9-457d-abc0-cf7d7aa2a3a4
@@ -165,4 +175,4 @@ slots:
165175
titleParameter: text
166176
canBeComposition: false
167177
created: '2025-01-29T10:47:02.414019+00:00'
168-
updated: '2025-02-24T18:39:14.248894+00:00'
178+
updated: '2025-10-06T21:18:50.0874+00:00'

content/component/badge.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# yaml-language-server: $schema=<https://uniform.app/schemas/json-schema/component-definition/v1.json>
1+
# yaml-language-server: $schema=https://uniform.app/schemas/json-schema/component-definition/v1.json
22
$schema: https://uniform.app/schemas/json-schema/component-definition/v1.json
33
id: badge
44
name: Badge
@@ -7,18 +7,23 @@ parameters:
77
- id: text
88
name: Text
99
type: text
10+
guidance: Use the Text parameter to control the text that will be rendered.
1011
typeConfig: null
1112
localizable: true
1213
- id: size
1314
name: Size
1415
type: dex-token-selector-parameter
16+
guidance: Use the Size parameter to control the size of component.
1517
typeConfig:
1618
selectedGroup: badge
1719
allowDimensions: []
1820
selectedTokenType: dimension
1921
- id: pill
2022
name: Pill
2123
type: checkbox
24+
guidance: >-
25+
Use the Pill parameter to give the badge fully rounded corners, creating a
26+
smooth pill-like appearance.
2227
helpText: >-
2328
When checked, the badge will have fully rounded corners, giving it a
2429
pill-like appearance
@@ -36,21 +41,25 @@ parameters:
3641
- id: backgroundColor
3742
name: Background Color
3843
type: dex-color-palette-parameter
44+
guidance: Use the Background Color parameter to control component background color.
3945
typeConfig:
4046
allowColors: []
4147
- id: textColor
4248
name: Text Color
4349
type: dex-color-palette-parameter
50+
guidance: Use the Text Color parameter to control the text color.
4451
typeConfig:
4552
allowColors: []
4653
selectedGroup: text
4754
- id: borderColor
4855
name: Border Color
4956
type: dex-color-palette-parameter
57+
guidance: Use the Border Color parameter to control the border color.
5058
typeConfig: null
5159
- id: dotColor
5260
name: Dot Color
5361
type: dex-color-palette-parameter
62+
guidance: Use the Dot Color parameter to control the dot color.
5463
typeConfig: null
5564
categoryId: 70d03350-bbf9-457d-abc0-cf7d7aa2a3a4
5665
previewImageUrl: >-
@@ -59,5 +68,5 @@ useTeamPermissions: true
5968
slots: []
6069
titleParameter: text
6170
canBeComposition: false
62-
created: '2025-02-17T15:34:15.474116+00:00'
63-
updated: '2025-02-17T15:34:15.474116+00:00'
71+
created: '2025-01-29T10:47:01.265179+00:00'
72+
updated: '2025-10-06T21:18:50.04475+00:00'

0 commit comments

Comments
 (0)