@times-design-system/components-wordpress 1.11.0 → 1.12.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/dist/STYLE_HANDLES.md +80 -0
- package/dist/blocks/ad-container/block.json +5 -2
- package/dist/blocks/button/block.json +52 -11
- package/dist/blocks/chip/block.json +29 -7
- package/dist/blocks/dialog-box/block.json +1 -1
- package/dist/blocks/divider/block.json +5 -2
- package/dist/blocks/icon/block.json +21 -6
- package/dist/blocks/icon-button/block.json +39 -17
- package/dist/blocks/icon-button/render.php +2 -2
- package/dist/blocks/input/block.json +9 -2
- package/dist/blocks/input-helper-message/block.json +1 -1
- package/dist/blocks/link/block.json +37 -8
- package/dist/blocks/tab/block.json +1 -1
- package/dist/blocks/tab-group/block.json +1 -1
- package/dist/blocks/tag/block.json +26 -6
- package/dist/blocks/text/block.json +10 -2
- package/dist/blocks/toast/block.json +7 -2
- package/dist/icon-data.json +1 -1
- package/dist/index.cjs +26 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +26 -29
- package/dist/index.js.map +1 -1
- package/dist/plugin.php +55 -16
- package/dist/style-handles.json +77 -0
- package/package.json +4 -3
- package/plugin.php +55 -16
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Times Design System Block Style Handles
|
|
2
|
+
|
|
3
|
+
Auto-generated mapping of blocks to WordPress style handles.
|
|
4
|
+
|
|
5
|
+
**Generated:** 2026-08-11T11:13:19.444Z
|
|
6
|
+
|
|
7
|
+
## Style Handle Registration
|
|
8
|
+
|
|
9
|
+
Each block has a unique style handle for conditional CSS loading in WordPress.
|
|
10
|
+
|
|
11
|
+
### Handles by Block
|
|
12
|
+
|
|
13
|
+
| Block | Handle | CSS File |
|
|
14
|
+
|-------|--------|----------|
|
|
15
|
+
| `ad-container` | `tds-ad-container-style` | `blocks/ad-container/style.css` |
|
|
16
|
+
| `button` | `tds-button-style` | `blocks/button/style.css` |
|
|
17
|
+
| `chip` | `tds-chip-style` | `blocks/chip/style.css` |
|
|
18
|
+
| `dialog-box` | `tds-dialog-box-style` | `blocks/dialog-box/style.css` |
|
|
19
|
+
| `divider` | `tds-divider-style` | `blocks/divider/style.css` |
|
|
20
|
+
| `icon` | `tds-icon-style` | `blocks/icon/style.css` |
|
|
21
|
+
| `icon-button` | `tds-icon-button-style` | `blocks/icon-button/style.css` |
|
|
22
|
+
| `input` | `tds-input-style` | `blocks/input/style.css` |
|
|
23
|
+
| `input-helper-message` | `tds-input-helper-message-style` | `blocks/input-helper-message/style.css` |
|
|
24
|
+
| `link` | `tds-link-style` | `blocks/link/style.css` |
|
|
25
|
+
| `tab` | `tds-tab-style` | `blocks/tab/style.css` |
|
|
26
|
+
| `tab-group` | `tds-tab-group-style` | `blocks/tab-group/style.css` |
|
|
27
|
+
| `tag` | `tds-tag-style` | `blocks/tag/style.css` |
|
|
28
|
+
| `text` | `tds-text-style` | `blocks/text/style.css` |
|
|
29
|
+
| `toast` | `tds-toast-style` | `blocks/toast/style.css` |
|
|
30
|
+
|
|
31
|
+
## PHP Registration
|
|
32
|
+
|
|
33
|
+
In `plugin.php`, these handles are registered via `wp_register_style()`:
|
|
34
|
+
|
|
35
|
+
```php
|
|
36
|
+
function tds_register_block_styles() {
|
|
37
|
+
$plugin_dir = plugin_dir_url( __FILE__ );
|
|
38
|
+
$blocks = array(
|
|
39
|
+
'ad-container' => 'tds-ad-container-style',
|
|
40
|
+
'button' => 'tds-button-style',
|
|
41
|
+
'chip' => 'tds-chip-style',
|
|
42
|
+
'dialog-box' => 'tds-dialog-box-style',
|
|
43
|
+
'divider' => 'tds-divider-style',
|
|
44
|
+
'icon' => 'tds-icon-style',
|
|
45
|
+
'icon-button' => 'tds-icon-button-style',
|
|
46
|
+
'input' => 'tds-input-style',
|
|
47
|
+
'input-helper-message' => 'tds-input-helper-message-style',
|
|
48
|
+
'link' => 'tds-link-style',
|
|
49
|
+
'tab' => 'tds-tab-style',
|
|
50
|
+
'tab-group' => 'tds-tab-group-style',
|
|
51
|
+
'tag' => 'tds-tag-style',
|
|
52
|
+
'text' => 'tds-text-style',
|
|
53
|
+
'toast' => 'tds-toast-style',
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
foreach ( $blocks as $block_name => $handle ) {
|
|
57
|
+
wp_register_style(
|
|
58
|
+
$handle,
|
|
59
|
+
$plugin_dir . 'blocks/' . $block_name . '/style.css',
|
|
60
|
+
array(),
|
|
61
|
+
tds_get_asset_version( 'blocks/' . $block_name . '/style.css' )
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
add_action( 'init', 'tds_register_block_styles', 9 );
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## block.json Reference
|
|
69
|
+
|
|
70
|
+
Each block's `block.json` file includes its style handle:
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"name": "tds/button",
|
|
75
|
+
"style": "tds-button-style",
|
|
76
|
+
...
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
This enables WordPress to conditionally load CSS only when the block is used on a page.
|
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
"type": {
|
|
19
19
|
"type": "string",
|
|
20
20
|
"default": "inline",
|
|
21
|
-
"enum": [
|
|
21
|
+
"enum": [
|
|
22
|
+
"header",
|
|
23
|
+
"inline"
|
|
24
|
+
]
|
|
22
25
|
},
|
|
23
26
|
"slotID": {
|
|
24
27
|
"type": "string",
|
|
@@ -36,7 +39,7 @@
|
|
|
36
39
|
}
|
|
37
40
|
},
|
|
38
41
|
"example": {},
|
|
39
|
-
"style": "
|
|
42
|
+
"style": "tds-ad-container-style",
|
|
40
43
|
"script": "times-design-system",
|
|
41
44
|
"editorScript": "times-design-system"
|
|
42
45
|
}
|
|
@@ -25,19 +25,31 @@
|
|
|
25
25
|
},
|
|
26
26
|
"intent": {
|
|
27
27
|
"type": "string",
|
|
28
|
-
"enum": [
|
|
28
|
+
"enum": [
|
|
29
|
+
"primary",
|
|
30
|
+
"secondary",
|
|
31
|
+
"negative"
|
|
32
|
+
],
|
|
29
33
|
"default": "primary",
|
|
30
34
|
"description": "Visual style variant"
|
|
31
35
|
},
|
|
32
36
|
"size": {
|
|
33
37
|
"type": "string",
|
|
34
|
-
"enum": [
|
|
38
|
+
"enum": [
|
|
39
|
+
"small",
|
|
40
|
+
"medium",
|
|
41
|
+
"large",
|
|
42
|
+
"xlarge"
|
|
43
|
+
],
|
|
35
44
|
"default": "large",
|
|
36
45
|
"description": "Controls the overall dimensions of the button"
|
|
37
46
|
},
|
|
38
47
|
"behaviour": {
|
|
39
48
|
"type": "string",
|
|
40
|
-
"enum": [
|
|
49
|
+
"enum": [
|
|
50
|
+
"hug",
|
|
51
|
+
"full"
|
|
52
|
+
],
|
|
41
53
|
"default": "hug",
|
|
42
54
|
"description": "Controls the width behaviour"
|
|
43
55
|
},
|
|
@@ -62,7 +74,12 @@
|
|
|
62
74
|
},
|
|
63
75
|
"target": {
|
|
64
76
|
"type": "string",
|
|
65
|
-
"enum": [
|
|
77
|
+
"enum": [
|
|
78
|
+
"_blank",
|
|
79
|
+
"_self",
|
|
80
|
+
"_parent",
|
|
81
|
+
"_top"
|
|
82
|
+
],
|
|
66
83
|
"description": "Optional target attribute for links"
|
|
67
84
|
},
|
|
68
85
|
"rel": {
|
|
@@ -71,7 +88,11 @@
|
|
|
71
88
|
},
|
|
72
89
|
"type": {
|
|
73
90
|
"type": "string",
|
|
74
|
-
"enum": [
|
|
91
|
+
"enum": [
|
|
92
|
+
"button",
|
|
93
|
+
"submit",
|
|
94
|
+
"reset"
|
|
95
|
+
],
|
|
75
96
|
"default": "button",
|
|
76
97
|
"description": "Button type"
|
|
77
98
|
},
|
|
@@ -105,20 +126,40 @@
|
|
|
105
126
|
},
|
|
106
127
|
"editorScript": "times-design-system",
|
|
107
128
|
"script": "times-design-system",
|
|
108
|
-
"style": "
|
|
129
|
+
"style": "tds-button-style",
|
|
109
130
|
"preview": {
|
|
110
131
|
"combinations": [
|
|
111
|
-
{
|
|
112
|
-
|
|
132
|
+
{
|
|
133
|
+
"label": "Primary",
|
|
134
|
+
"intent": "primary",
|
|
135
|
+
"size": "medium"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"label": "Primary Small",
|
|
139
|
+
"intent": "primary",
|
|
140
|
+
"size": "small"
|
|
141
|
+
},
|
|
113
142
|
{
|
|
114
143
|
"label": "Primary Small",
|
|
115
144
|
"intent": "primary",
|
|
116
145
|
"size": "small",
|
|
117
146
|
"iconRight": "filled_arrow_right"
|
|
118
147
|
},
|
|
119
|
-
{
|
|
120
|
-
|
|
121
|
-
|
|
148
|
+
{
|
|
149
|
+
"label": "Primary Large",
|
|
150
|
+
"intent": "primary",
|
|
151
|
+
"size": "large"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"label": "Secondary",
|
|
155
|
+
"intent": "secondary",
|
|
156
|
+
"size": "medium"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"label": "Negative",
|
|
160
|
+
"intent": "negative",
|
|
161
|
+
"size": "medium"
|
|
162
|
+
},
|
|
122
163
|
{
|
|
123
164
|
"label": "Disabled",
|
|
124
165
|
"disabled": true,
|
|
@@ -21,12 +21,18 @@
|
|
|
21
21
|
"intent": {
|
|
22
22
|
"type": "string",
|
|
23
23
|
"default": "primary",
|
|
24
|
-
"enum": [
|
|
24
|
+
"enum": [
|
|
25
|
+
"primary",
|
|
26
|
+
"secondary"
|
|
27
|
+
]
|
|
25
28
|
},
|
|
26
29
|
"size": {
|
|
27
30
|
"type": "string",
|
|
28
31
|
"default": "small",
|
|
29
|
-
"enum": [
|
|
32
|
+
"enum": [
|
|
33
|
+
"small",
|
|
34
|
+
"large"
|
|
35
|
+
]
|
|
30
36
|
},
|
|
31
37
|
"channel": {
|
|
32
38
|
"type": "boolean",
|
|
@@ -67,15 +73,31 @@
|
|
|
67
73
|
}
|
|
68
74
|
},
|
|
69
75
|
"example": {},
|
|
70
|
-
"style": "
|
|
76
|
+
"style": "tds-chip-style",
|
|
71
77
|
"script": "times-design-system",
|
|
72
78
|
"editorScript": "times-design-system",
|
|
73
79
|
"preview": {
|
|
74
80
|
"combinations": [
|
|
75
|
-
{
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
{
|
|
82
|
+
"content": "Primary Small",
|
|
83
|
+
"intent": "primary",
|
|
84
|
+
"size": "small"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"content": "Primary Large",
|
|
88
|
+
"intent": "primary",
|
|
89
|
+
"size": "large"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"content": "Secondary",
|
|
93
|
+
"intent": "secondary",
|
|
94
|
+
"size": "small"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"content": "Channel",
|
|
98
|
+
"channel": true,
|
|
99
|
+
"size": "small"
|
|
100
|
+
},
|
|
79
101
|
{
|
|
80
102
|
"content": "Toggle",
|
|
81
103
|
"intent": "primary",
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
"spacing": {
|
|
12
12
|
"margin": true
|
|
13
13
|
},
|
|
14
|
-
"align": [
|
|
14
|
+
"align": [
|
|
15
|
+
"wide",
|
|
16
|
+
"full"
|
|
17
|
+
]
|
|
15
18
|
},
|
|
16
19
|
"render": "file:./render.php",
|
|
17
20
|
"attributes": {
|
|
@@ -39,7 +42,7 @@
|
|
|
39
42
|
}
|
|
40
43
|
},
|
|
41
44
|
"example": {},
|
|
42
|
-
"style": "
|
|
45
|
+
"style": "tds-divider-style",
|
|
43
46
|
"script": "times-design-system",
|
|
44
47
|
"editorScript": "times-design-system"
|
|
45
48
|
}
|
|
@@ -47,14 +47,29 @@
|
|
|
47
47
|
"render": "file:./render.php",
|
|
48
48
|
"editorScript": "times-design-system",
|
|
49
49
|
"script": "times-design-system",
|
|
50
|
-
"style": "
|
|
50
|
+
"style": "tds-icon-style",
|
|
51
51
|
"preview": {
|
|
52
52
|
"combinations": [
|
|
53
|
-
{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
{
|
|
53
|
+
{
|
|
54
|
+
"iconName": "filled_circle",
|
|
55
|
+
"size": "small"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"iconName": "filled_circle",
|
|
59
|
+
"size": "medium"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"iconName": "filled_circle",
|
|
63
|
+
"size": "large"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"iconName": "outlined_check",
|
|
67
|
+
"size": "medium"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"iconName": "filled_arrow_right",
|
|
71
|
+
"size": "medium"
|
|
72
|
+
}
|
|
58
73
|
]
|
|
59
74
|
}
|
|
60
75
|
}
|
|
@@ -19,19 +19,16 @@
|
|
|
19
19
|
"default": "",
|
|
20
20
|
"description": "Icon name with variant prefix (e.g., 'filled_accessibility', 'outlined_accessibility')"
|
|
21
21
|
},
|
|
22
|
-
"
|
|
22
|
+
"size": {
|
|
23
23
|
"type": "string",
|
|
24
24
|
"enum": [
|
|
25
|
-
"2xsmall",
|
|
26
|
-
"xsmall",
|
|
27
25
|
"small",
|
|
28
26
|
"medium",
|
|
29
27
|
"large",
|
|
30
|
-
"xlarge"
|
|
31
|
-
"2xlarge"
|
|
28
|
+
"xlarge"
|
|
32
29
|
],
|
|
33
30
|
"default": "medium",
|
|
34
|
-
"description": "
|
|
31
|
+
"description": "Controls the overall dimensions of the icon button"
|
|
35
32
|
},
|
|
36
33
|
"round": {
|
|
37
34
|
"type": "boolean",
|
|
@@ -39,7 +36,11 @@
|
|
|
39
36
|
},
|
|
40
37
|
"intent": {
|
|
41
38
|
"type": "string",
|
|
42
|
-
"enum": [
|
|
39
|
+
"enum": [
|
|
40
|
+
"primary",
|
|
41
|
+
"secondary",
|
|
42
|
+
"negative"
|
|
43
|
+
],
|
|
43
44
|
"default": "primary",
|
|
44
45
|
"description": "Visual style variant matching button intents"
|
|
45
46
|
},
|
|
@@ -55,7 +56,12 @@
|
|
|
55
56
|
"target": {
|
|
56
57
|
"type": "string",
|
|
57
58
|
"default": "_self",
|
|
58
|
-
"enum": [
|
|
59
|
+
"enum": [
|
|
60
|
+
"_self",
|
|
61
|
+
"_blank",
|
|
62
|
+
"_parent",
|
|
63
|
+
"_top"
|
|
64
|
+
]
|
|
59
65
|
},
|
|
60
66
|
"rel": {
|
|
61
67
|
"type": "string",
|
|
@@ -83,36 +89,52 @@
|
|
|
83
89
|
},
|
|
84
90
|
"preview": {
|
|
85
91
|
"combinations": [
|
|
86
|
-
{
|
|
87
|
-
|
|
88
|
-
|
|
92
|
+
{
|
|
93
|
+
"iconName": "filled_add",
|
|
94
|
+
"size": "large",
|
|
95
|
+
"intent": "primary"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"iconName": "filled_add",
|
|
99
|
+
"size": "large",
|
|
100
|
+
"intent": "secondary"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"iconName": "filled_add",
|
|
104
|
+
"size": "large",
|
|
105
|
+
"intent": "negative"
|
|
106
|
+
},
|
|
89
107
|
{
|
|
90
108
|
"iconName": "filled_search",
|
|
91
|
-
"
|
|
109
|
+
"size": "large",
|
|
110
|
+
"intent": "primary"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"iconName": "filled_close",
|
|
114
|
+
"size": "small",
|
|
92
115
|
"intent": "primary"
|
|
93
116
|
},
|
|
94
|
-
{ "iconName": "filled_close", "iconSize": "small", "intent": "primary" },
|
|
95
117
|
{
|
|
96
118
|
"iconName": "filled_settings",
|
|
97
|
-
"
|
|
119
|
+
"size": "xlarge",
|
|
98
120
|
"intent": "primary"
|
|
99
121
|
},
|
|
100
122
|
{
|
|
101
123
|
"iconName": "filled_add",
|
|
102
|
-
"
|
|
124
|
+
"size": "large",
|
|
103
125
|
"intent": "primary",
|
|
104
126
|
"round": true
|
|
105
127
|
},
|
|
106
128
|
{
|
|
107
129
|
"iconName": "filled_add",
|
|
108
|
-
"
|
|
130
|
+
"size": "large",
|
|
109
131
|
"intent": "primary",
|
|
110
132
|
"onClick": "handleIconButtonClick"
|
|
111
133
|
}
|
|
112
134
|
]
|
|
113
135
|
},
|
|
114
136
|
"example": {},
|
|
115
|
-
"style": "
|
|
137
|
+
"style": "tds-icon-button-style",
|
|
116
138
|
"script": "times-design-system",
|
|
117
139
|
"editorScript": "times-design-system"
|
|
118
140
|
}
|
|
@@ -14,7 +14,7 @@ require_once __DIR__ . '/../../utils/sanitize-data-attributes.php';
|
|
|
14
14
|
require_once __DIR__ . '/../../utils/render-icon.php';
|
|
15
15
|
|
|
16
16
|
$icon_name = isset($attributes['iconName']) ? sanitize_text_field($attributes['iconName']) : 'filled_check';
|
|
17
|
-
$
|
|
17
|
+
$size = isset($attributes['size']) ? sanitize_text_field($attributes['size']) : 'medium';
|
|
18
18
|
$intent = isset($attributes['intent']) ? sanitize_text_field($attributes['intent']) : 'primary';
|
|
19
19
|
$round = isset($attributes['round']) ? (bool) $attributes['round'] : false;
|
|
20
20
|
$isLoading = isset($attributes['isLoading']) ? (bool) $attributes['isLoading'] : false;
|
|
@@ -34,7 +34,7 @@ foreach ($sanitized_data_attributes as $attr_name => $attr_value) {
|
|
|
34
34
|
|
|
35
35
|
$classes = ['tds-icon-button'];
|
|
36
36
|
$classes[] = 'tds-button--intent-' . $intent;
|
|
37
|
-
$classes[] = 'tds-icon-button--size-' . $
|
|
37
|
+
$classes[] = 'tds-icon-button--size-' . $size;
|
|
38
38
|
if ($round) {
|
|
39
39
|
$classes[] = 'tds-icon-button--is-rounded';
|
|
40
40
|
}
|
|
@@ -25,7 +25,14 @@
|
|
|
25
25
|
"type": {
|
|
26
26
|
"type": "string",
|
|
27
27
|
"default": "text",
|
|
28
|
-
"enum": [
|
|
28
|
+
"enum": [
|
|
29
|
+
"text",
|
|
30
|
+
"email",
|
|
31
|
+
"password",
|
|
32
|
+
"number",
|
|
33
|
+
"tel",
|
|
34
|
+
"url"
|
|
35
|
+
]
|
|
29
36
|
},
|
|
30
37
|
"disabled": {
|
|
31
38
|
"type": "boolean",
|
|
@@ -55,7 +62,7 @@
|
|
|
55
62
|
}
|
|
56
63
|
},
|
|
57
64
|
"example": {},
|
|
58
|
-
"style": "
|
|
65
|
+
"style": "tds-input-style",
|
|
59
66
|
"script": "times-design-system",
|
|
60
67
|
"editorScript": "times-design-system"
|
|
61
68
|
}
|
|
@@ -25,18 +25,30 @@
|
|
|
25
25
|
"intent": {
|
|
26
26
|
"type": "string",
|
|
27
27
|
"default": "primary",
|
|
28
|
-
"enum": [
|
|
28
|
+
"enum": [
|
|
29
|
+
"primary",
|
|
30
|
+
"secondary",
|
|
31
|
+
"danger"
|
|
32
|
+
],
|
|
29
33
|
"description": "Link color and style variant"
|
|
30
34
|
},
|
|
31
35
|
"sentiment": {
|
|
32
36
|
"type": "string",
|
|
33
37
|
"default": "brand",
|
|
34
|
-
"enum": [
|
|
38
|
+
"enum": [
|
|
39
|
+
"brand",
|
|
40
|
+
"utility"
|
|
41
|
+
]
|
|
35
42
|
},
|
|
36
43
|
"size": {
|
|
37
44
|
"type": "string",
|
|
38
45
|
"default": "medium",
|
|
39
|
-
"enum": [
|
|
46
|
+
"enum": [
|
|
47
|
+
"xsmall",
|
|
48
|
+
"small",
|
|
49
|
+
"medium",
|
|
50
|
+
"large"
|
|
51
|
+
],
|
|
40
52
|
"description": "Link size variant"
|
|
41
53
|
},
|
|
42
54
|
"iconLeft": {
|
|
@@ -60,7 +72,12 @@
|
|
|
60
72
|
"target": {
|
|
61
73
|
"type": "string",
|
|
62
74
|
"default": "_self",
|
|
63
|
-
"enum": [
|
|
75
|
+
"enum": [
|
|
76
|
+
"_self",
|
|
77
|
+
"_blank",
|
|
78
|
+
"_parent",
|
|
79
|
+
"_top"
|
|
80
|
+
]
|
|
64
81
|
},
|
|
65
82
|
"rel": {
|
|
66
83
|
"type": "string",
|
|
@@ -88,7 +105,7 @@
|
|
|
88
105
|
}
|
|
89
106
|
},
|
|
90
107
|
"example": {},
|
|
91
|
-
"style": "
|
|
108
|
+
"style": "tds-link-style",
|
|
92
109
|
"script": "times-design-system",
|
|
93
110
|
"editorScript": "times-design-system",
|
|
94
111
|
"preview": {
|
|
@@ -125,9 +142,21 @@
|
|
|
125
142
|
"intent": "danger",
|
|
126
143
|
"size": "medium"
|
|
127
144
|
},
|
|
128
|
-
{
|
|
129
|
-
|
|
130
|
-
|
|
145
|
+
{
|
|
146
|
+
"content": "XSmall",
|
|
147
|
+
"href": "#",
|
|
148
|
+
"size": "xsmall"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"content": "Small",
|
|
152
|
+
"href": "#",
|
|
153
|
+
"size": "small"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"content": "Large",
|
|
157
|
+
"href": "#",
|
|
158
|
+
"size": "large"
|
|
159
|
+
},
|
|
131
160
|
{
|
|
132
161
|
"content": "Brand",
|
|
133
162
|
"href": "#",
|
|
@@ -21,12 +21,20 @@
|
|
|
21
21
|
"intent": {
|
|
22
22
|
"type": "string",
|
|
23
23
|
"default": "secondary",
|
|
24
|
-
"enum": [
|
|
24
|
+
"enum": [
|
|
25
|
+
"primary",
|
|
26
|
+
"secondary",
|
|
27
|
+
"tertiary"
|
|
28
|
+
]
|
|
25
29
|
},
|
|
26
30
|
"size": {
|
|
27
31
|
"type": "string",
|
|
28
32
|
"default": "medium",
|
|
29
|
-
"enum": [
|
|
33
|
+
"enum": [
|
|
34
|
+
"small",
|
|
35
|
+
"medium",
|
|
36
|
+
"large"
|
|
37
|
+
]
|
|
30
38
|
},
|
|
31
39
|
"callout": {
|
|
32
40
|
"type": "boolean",
|
|
@@ -64,14 +72,26 @@
|
|
|
64
72
|
}
|
|
65
73
|
},
|
|
66
74
|
"example": {},
|
|
67
|
-
"style": "
|
|
75
|
+
"style": "tds-tag-style",
|
|
68
76
|
"script": "times-design-system",
|
|
69
77
|
"editorScript": "times-design-system",
|
|
70
78
|
"preview": {
|
|
71
79
|
"combinations": [
|
|
72
|
-
{
|
|
73
|
-
|
|
74
|
-
|
|
80
|
+
{
|
|
81
|
+
"label": "Primary",
|
|
82
|
+
"intent": "primary",
|
|
83
|
+
"size": "small"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"label": "Secondary",
|
|
87
|
+
"intent": "secondary",
|
|
88
|
+
"size": "medium"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"label": "Tertiary",
|
|
92
|
+
"intent": "tertiary",
|
|
93
|
+
"size": "large"
|
|
94
|
+
},
|
|
75
95
|
{
|
|
76
96
|
"label": "Callout",
|
|
77
97
|
"intent": "primary",
|