@hashicorp/design-system-tokens 1.4.2 → 1.6.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/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/dist/devdot/css/helpers/color.css +1 -1
- package/dist/devdot/css/helpers/elevation.css +1 -1
- package/dist/devdot/css/helpers/focus-ring.css +1 -1
- package/dist/devdot/css/helpers/typography.css +1 -1
- package/dist/devdot/css/tokens.css +10 -1
- package/dist/docs/devdot/tokens.json +173 -0
- package/dist/docs/products/tokens.json +173 -0
- package/dist/products/css/helpers/color.css +1 -1
- package/dist/products/css/helpers/elevation.css +1 -1
- package/dist/products/css/helpers/focus-ring.css +1 -1
- package/dist/products/css/helpers/typography.css +1 -1
- package/dist/products/css/tokens.css +10 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @hashicorp/design-system-tokens
|
|
2
2
|
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1452](https://github.com/hashicorp/design-system/pull/1452) [`b2ec25b39`](https://github.com/hashicorp/design-system/commit/b2ec25b399ba9aad5f8ae0b1f18a1bef9a6543e0) Thanks [@alex-ju](https://github.com/alex-ju)! - Add design token for loading state icon on search input
|
|
8
|
+
|
|
9
|
+
## 1.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#1283](https://github.com/hashicorp/design-system/pull/1283) [`d0ae66503`](https://github.com/hashicorp/design-system/commit/d0ae665033e6b83a65c2dcde8630985f76872901) Thanks [@KristinLBradley](https://github.com/KristinLBradley)! - - Add new `TooltipButton` component and `hds-tooltip` modifier
|
|
14
|
+
- Add design tokens for `Tooltip`
|
|
15
|
+
|
|
3
16
|
## 1.4.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Then import one of those files in your app's style file (`app.scss` or similar):
|
|
|
32
32
|
|
|
33
33
|
## Usage
|
|
34
34
|
|
|
35
|
-
See the dedicated page on the components website: https://
|
|
35
|
+
See the dedicated page on the components website: https://helios.hashicorp.design/foundations/tokens
|
|
36
36
|
|
|
37
37
|
## Contributing
|
|
38
38
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 28 Jun 2023 07:32:09 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -234,6 +234,7 @@
|
|
|
234
234
|
--token-form-text-input-background-image-data-url-time: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='%233B3D45'%3e%3cpath d='M8.5 3.75a.75.75 0 00-1.5 0V8c0 .284.16.544.415.67l2.5 1.25a.75.75 0 10.67-1.34L8.5 7.535V3.75z'/%3e%3cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zM1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0z' fill-rule='evenodd' clip-rule='evenodd'/%3e%3c/g%3e%3c/svg%3e"); /* notice: the icon color is hardcoded here! */
|
|
235
235
|
--token-form-text-input-background-image-data-url-search: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='%23656A76'%3e%3cpath d='M7.25 2a5.25 5.25 0 103.144 9.455l2.326 2.325a.75.75 0 101.06-1.06l-2.325-2.326A5.25 5.25 0 007.25 2zM3.5 7.25a3.75 3.75 0 117.5 0 3.75 3.75 0 01-7.5 0z' fill-rule='evenodd' clip-rule='evenodd'/%3e%3c/g%3e%3c/svg%3e"); /* notice: the icon color is hardcoded here! */
|
|
236
236
|
--token-form-text-input-background-image-data-url-search-cancel: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.78 4.28a.75.75 0 00-1.06-1.06L8 6.94 4.28 3.22a.75.75 0 00-1.06 1.06L6.94 8l-3.72 3.72a.75.75 0 101.06 1.06L8 9.06l3.72 3.72a.75.75 0 101.06-1.06L9.06 8l3.72-3.72z'/%3e%3c/svg%3e"); /* notice: the icon color is hardcoded here! */
|
|
237
|
+
--token-form-text-input-background-image-data-url-search-loading: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3e%3cg fill='%23656A76' fill-rule='evenodd' clip-rule='evenodd'%3e%3canimateTransform attributeName='transform' type='rotate' dur='0.9s' from='0 8 8' to='360 8 8' repeatCount='indefinite'/%3e%3cpath d='M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8z' opacity='.2'/%3e%3cpath d='M7.25.75A.75.75 0 018 0a8 8 0 018 8 .75.75 0 01-1.5 0A6.5 6.5 0 008 1.5a.75.75 0 01-.75-.75z'/%3e%3c/g%3e%3c/svg%3e"); /* notice: the icon color and animation are hardcoded here! */
|
|
237
238
|
--token-form-toggle-width: 32px;
|
|
238
239
|
--token-form-toggle-height: 16px;
|
|
239
240
|
--token-form-toggle-base-surface-color-default: #f1f2f3; /* the toggle has a different base surface color, compared to the other controls */
|
|
@@ -282,6 +283,14 @@
|
|
|
282
283
|
--token-tabs-indicator-transition-function: cubic-bezier(0.5, 1, 0.89, 1);
|
|
283
284
|
--token-tabs-indicator-transition-duration: 0.6s;
|
|
284
285
|
--token-tabs-divider-height: 1px;
|
|
286
|
+
--token-tooltip-border-radius: 5px;
|
|
287
|
+
--token-tooltip-color-foreground-primary: var(--token-color-foreground-high-contrast);
|
|
288
|
+
--token-tooltip-color-surface-primary: var(--token-color-palette-neutral-700);
|
|
289
|
+
--token-tooltip-focus-offset: -2px;
|
|
290
|
+
--token-tooltip-max-width: 280px;
|
|
291
|
+
--token-tooltip-padding-horizontal: 12px;
|
|
292
|
+
--token-tooltip-padding-vertical: 8px;
|
|
293
|
+
--token-tooltip-transition-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
|
|
285
294
|
--token-typography-font-stack-display: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
|
|
286
295
|
--token-typography-font-stack-text: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
|
|
287
296
|
--token-typography-font-stack-code: ui-monospace, Menlo, Consolas, monospace;
|
|
@@ -4991,6 +4991,27 @@
|
|
|
4991
4991
|
"data-url-search-cancel"
|
|
4992
4992
|
]
|
|
4993
4993
|
},
|
|
4994
|
+
{
|
|
4995
|
+
"value": "url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3e%3cg fill='%23656A76' fill-rule='evenodd' clip-rule='evenodd'%3e%3canimateTransform attributeName='transform' type='rotate' dur='0.9s' from='0 8 8' to='360 8 8' repeatCount='indefinite'/%3e%3cpath d='M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8z' opacity='.2'/%3e%3cpath d='M7.25.75A.75.75 0 018 0a8 8 0 018 8 .75.75 0 01-1.5 0A6.5 6.5 0 008 1.5a.75.75 0 01-.75-.75z'/%3e%3c/g%3e%3c/svg%3e\")",
|
|
4996
|
+
"comment": "notice: the icon color and animation are hardcoded here!",
|
|
4997
|
+
"original": {
|
|
4998
|
+
"value": "url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3e%3cg fill='%23656A76' fill-rule='evenodd' clip-rule='evenodd'%3e%3canimateTransform attributeName='transform' type='rotate' dur='0.9s' from='0 8 8' to='360 8 8' repeatCount='indefinite'/%3e%3cpath d='M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8z' opacity='.2'/%3e%3cpath d='M7.25.75A.75.75 0 018 0a8 8 0 018 8 .75.75 0 01-1.5 0A6.5 6.5 0 008 1.5a.75.75 0 01-.75-.75z'/%3e%3c/g%3e%3c/svg%3e\")",
|
|
4999
|
+
"comment": "notice: the icon color and animation are hardcoded here!"
|
|
5000
|
+
},
|
|
5001
|
+
"name": "token-form-text-input-background-image-data-url-search-loading",
|
|
5002
|
+
"attributes": {
|
|
5003
|
+
"category": "form",
|
|
5004
|
+
"type": "text-input",
|
|
5005
|
+
"item": "background-image",
|
|
5006
|
+
"subitem": "data-url-search-loading"
|
|
5007
|
+
},
|
|
5008
|
+
"path": [
|
|
5009
|
+
"form",
|
|
5010
|
+
"text-input",
|
|
5011
|
+
"background-image",
|
|
5012
|
+
"data-url-search-loading"
|
|
5013
|
+
]
|
|
5014
|
+
},
|
|
4994
5015
|
{
|
|
4995
5016
|
"value": "32px",
|
|
4996
5017
|
"type": "size",
|
|
@@ -6005,6 +6026,158 @@
|
|
|
6005
6026
|
"height"
|
|
6006
6027
|
]
|
|
6007
6028
|
},
|
|
6029
|
+
{
|
|
6030
|
+
"value": "5px",
|
|
6031
|
+
"type": "size",
|
|
6032
|
+
"original": {
|
|
6033
|
+
"value": "5",
|
|
6034
|
+
"type": "size"
|
|
6035
|
+
},
|
|
6036
|
+
"name": "token-tooltip-border-radius",
|
|
6037
|
+
"attributes": {
|
|
6038
|
+
"category": "tooltip",
|
|
6039
|
+
"type": "border-radius"
|
|
6040
|
+
},
|
|
6041
|
+
"path": [
|
|
6042
|
+
"tooltip",
|
|
6043
|
+
"border-radius"
|
|
6044
|
+
]
|
|
6045
|
+
},
|
|
6046
|
+
{
|
|
6047
|
+
"value": "var(--token-color-foreground-high-contrast)",
|
|
6048
|
+
"type": "color",
|
|
6049
|
+
"group": "components",
|
|
6050
|
+
"original": {
|
|
6051
|
+
"value": "var(--token-color-foreground-high-contrast)",
|
|
6052
|
+
"type": "color",
|
|
6053
|
+
"group": "components"
|
|
6054
|
+
},
|
|
6055
|
+
"name": "token-tooltip-color-foreground-primary",
|
|
6056
|
+
"attributes": {
|
|
6057
|
+
"category": "tooltip",
|
|
6058
|
+
"type": "color",
|
|
6059
|
+
"item": "foreground",
|
|
6060
|
+
"subitem": "primary"
|
|
6061
|
+
},
|
|
6062
|
+
"path": [
|
|
6063
|
+
"tooltip",
|
|
6064
|
+
"color",
|
|
6065
|
+
"foreground",
|
|
6066
|
+
"primary"
|
|
6067
|
+
]
|
|
6068
|
+
},
|
|
6069
|
+
{
|
|
6070
|
+
"value": "var(--token-color-palette-neutral-700)",
|
|
6071
|
+
"type": "color",
|
|
6072
|
+
"group": "components",
|
|
6073
|
+
"original": {
|
|
6074
|
+
"value": "var(--token-color-palette-neutral-700)",
|
|
6075
|
+
"type": "color",
|
|
6076
|
+
"group": "components"
|
|
6077
|
+
},
|
|
6078
|
+
"name": "token-tooltip-color-surface-primary",
|
|
6079
|
+
"attributes": {
|
|
6080
|
+
"category": "tooltip",
|
|
6081
|
+
"type": "color",
|
|
6082
|
+
"item": "surface",
|
|
6083
|
+
"subitem": "primary"
|
|
6084
|
+
},
|
|
6085
|
+
"path": [
|
|
6086
|
+
"tooltip",
|
|
6087
|
+
"color",
|
|
6088
|
+
"surface",
|
|
6089
|
+
"primary"
|
|
6090
|
+
]
|
|
6091
|
+
},
|
|
6092
|
+
{
|
|
6093
|
+
"value": "-2px",
|
|
6094
|
+
"type": "size",
|
|
6095
|
+
"original": {
|
|
6096
|
+
"value": "-2",
|
|
6097
|
+
"type": "size"
|
|
6098
|
+
},
|
|
6099
|
+
"name": "token-tooltip-focus-offset",
|
|
6100
|
+
"attributes": {
|
|
6101
|
+
"category": "tooltip",
|
|
6102
|
+
"type": "focus-offset"
|
|
6103
|
+
},
|
|
6104
|
+
"path": [
|
|
6105
|
+
"tooltip",
|
|
6106
|
+
"focus-offset"
|
|
6107
|
+
]
|
|
6108
|
+
},
|
|
6109
|
+
{
|
|
6110
|
+
"value": "280px",
|
|
6111
|
+
"type": "size",
|
|
6112
|
+
"original": {
|
|
6113
|
+
"value": "280",
|
|
6114
|
+
"type": "size"
|
|
6115
|
+
},
|
|
6116
|
+
"name": "token-tooltip-max-width",
|
|
6117
|
+
"attributes": {
|
|
6118
|
+
"category": "tooltip",
|
|
6119
|
+
"type": "max-width"
|
|
6120
|
+
},
|
|
6121
|
+
"path": [
|
|
6122
|
+
"tooltip",
|
|
6123
|
+
"max-width"
|
|
6124
|
+
]
|
|
6125
|
+
},
|
|
6126
|
+
{
|
|
6127
|
+
"value": "12px",
|
|
6128
|
+
"type": "size",
|
|
6129
|
+
"original": {
|
|
6130
|
+
"value": "12",
|
|
6131
|
+
"type": "size"
|
|
6132
|
+
},
|
|
6133
|
+
"name": "token-tooltip-padding-horizontal",
|
|
6134
|
+
"attributes": {
|
|
6135
|
+
"category": "tooltip",
|
|
6136
|
+
"type": "padding",
|
|
6137
|
+
"item": "horizontal"
|
|
6138
|
+
},
|
|
6139
|
+
"path": [
|
|
6140
|
+
"tooltip",
|
|
6141
|
+
"padding",
|
|
6142
|
+
"horizontal"
|
|
6143
|
+
]
|
|
6144
|
+
},
|
|
6145
|
+
{
|
|
6146
|
+
"value": "8px",
|
|
6147
|
+
"type": "size",
|
|
6148
|
+
"original": {
|
|
6149
|
+
"value": "8",
|
|
6150
|
+
"type": "size"
|
|
6151
|
+
},
|
|
6152
|
+
"name": "token-tooltip-padding-vertical",
|
|
6153
|
+
"attributes": {
|
|
6154
|
+
"category": "tooltip",
|
|
6155
|
+
"type": "padding",
|
|
6156
|
+
"item": "vertical"
|
|
6157
|
+
},
|
|
6158
|
+
"path": [
|
|
6159
|
+
"tooltip",
|
|
6160
|
+
"padding",
|
|
6161
|
+
"vertical"
|
|
6162
|
+
]
|
|
6163
|
+
},
|
|
6164
|
+
{
|
|
6165
|
+
"value": "cubic-bezier(0.54, 1.5, 0.38, 1.11)",
|
|
6166
|
+
"original": {
|
|
6167
|
+
"value": "cubic-bezier(0.54, 1.5, 0.38, 1.11)"
|
|
6168
|
+
},
|
|
6169
|
+
"name": "token-tooltip-transition-function",
|
|
6170
|
+
"attributes": {
|
|
6171
|
+
"category": "tooltip",
|
|
6172
|
+
"type": "transition",
|
|
6173
|
+
"item": "function"
|
|
6174
|
+
},
|
|
6175
|
+
"path": [
|
|
6176
|
+
"tooltip",
|
|
6177
|
+
"transition",
|
|
6178
|
+
"function"
|
|
6179
|
+
]
|
|
6180
|
+
},
|
|
6008
6181
|
{
|
|
6009
6182
|
"value": "-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",
|
|
6010
6183
|
"original": {
|
|
@@ -4945,6 +4945,27 @@
|
|
|
4945
4945
|
"data-url-search-cancel"
|
|
4946
4946
|
]
|
|
4947
4947
|
},
|
|
4948
|
+
{
|
|
4949
|
+
"value": "url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3e%3cg fill='%23656A76' fill-rule='evenodd' clip-rule='evenodd'%3e%3canimateTransform attributeName='transform' type='rotate' dur='0.9s' from='0 8 8' to='360 8 8' repeatCount='indefinite'/%3e%3cpath d='M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8z' opacity='.2'/%3e%3cpath d='M7.25.75A.75.75 0 018 0a8 8 0 018 8 .75.75 0 01-1.5 0A6.5 6.5 0 008 1.5a.75.75 0 01-.75-.75z'/%3e%3c/g%3e%3c/svg%3e\")",
|
|
4950
|
+
"comment": "notice: the icon color and animation are hardcoded here!",
|
|
4951
|
+
"original": {
|
|
4952
|
+
"value": "url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3e%3cg fill='%23656A76' fill-rule='evenodd' clip-rule='evenodd'%3e%3canimateTransform attributeName='transform' type='rotate' dur='0.9s' from='0 8 8' to='360 8 8' repeatCount='indefinite'/%3e%3cpath d='M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8z' opacity='.2'/%3e%3cpath d='M7.25.75A.75.75 0 018 0a8 8 0 018 8 .75.75 0 01-1.5 0A6.5 6.5 0 008 1.5a.75.75 0 01-.75-.75z'/%3e%3c/g%3e%3c/svg%3e\")",
|
|
4953
|
+
"comment": "notice: the icon color and animation are hardcoded here!"
|
|
4954
|
+
},
|
|
4955
|
+
"name": "token-form-text-input-background-image-data-url-search-loading",
|
|
4956
|
+
"attributes": {
|
|
4957
|
+
"category": "form",
|
|
4958
|
+
"type": "text-input",
|
|
4959
|
+
"item": "background-image",
|
|
4960
|
+
"subitem": "data-url-search-loading"
|
|
4961
|
+
},
|
|
4962
|
+
"path": [
|
|
4963
|
+
"form",
|
|
4964
|
+
"text-input",
|
|
4965
|
+
"background-image",
|
|
4966
|
+
"data-url-search-loading"
|
|
4967
|
+
]
|
|
4968
|
+
},
|
|
4948
4969
|
{
|
|
4949
4970
|
"value": "32px",
|
|
4950
4971
|
"type": "size",
|
|
@@ -5959,6 +5980,158 @@
|
|
|
5959
5980
|
"height"
|
|
5960
5981
|
]
|
|
5961
5982
|
},
|
|
5983
|
+
{
|
|
5984
|
+
"value": "5px",
|
|
5985
|
+
"type": "size",
|
|
5986
|
+
"original": {
|
|
5987
|
+
"value": "5",
|
|
5988
|
+
"type": "size"
|
|
5989
|
+
},
|
|
5990
|
+
"name": "token-tooltip-border-radius",
|
|
5991
|
+
"attributes": {
|
|
5992
|
+
"category": "tooltip",
|
|
5993
|
+
"type": "border-radius"
|
|
5994
|
+
},
|
|
5995
|
+
"path": [
|
|
5996
|
+
"tooltip",
|
|
5997
|
+
"border-radius"
|
|
5998
|
+
]
|
|
5999
|
+
},
|
|
6000
|
+
{
|
|
6001
|
+
"value": "var(--token-color-foreground-high-contrast)",
|
|
6002
|
+
"type": "color",
|
|
6003
|
+
"group": "components",
|
|
6004
|
+
"original": {
|
|
6005
|
+
"value": "var(--token-color-foreground-high-contrast)",
|
|
6006
|
+
"type": "color",
|
|
6007
|
+
"group": "components"
|
|
6008
|
+
},
|
|
6009
|
+
"name": "token-tooltip-color-foreground-primary",
|
|
6010
|
+
"attributes": {
|
|
6011
|
+
"category": "tooltip",
|
|
6012
|
+
"type": "color",
|
|
6013
|
+
"item": "foreground",
|
|
6014
|
+
"subitem": "primary"
|
|
6015
|
+
},
|
|
6016
|
+
"path": [
|
|
6017
|
+
"tooltip",
|
|
6018
|
+
"color",
|
|
6019
|
+
"foreground",
|
|
6020
|
+
"primary"
|
|
6021
|
+
]
|
|
6022
|
+
},
|
|
6023
|
+
{
|
|
6024
|
+
"value": "var(--token-color-palette-neutral-700)",
|
|
6025
|
+
"type": "color",
|
|
6026
|
+
"group": "components",
|
|
6027
|
+
"original": {
|
|
6028
|
+
"value": "var(--token-color-palette-neutral-700)",
|
|
6029
|
+
"type": "color",
|
|
6030
|
+
"group": "components"
|
|
6031
|
+
},
|
|
6032
|
+
"name": "token-tooltip-color-surface-primary",
|
|
6033
|
+
"attributes": {
|
|
6034
|
+
"category": "tooltip",
|
|
6035
|
+
"type": "color",
|
|
6036
|
+
"item": "surface",
|
|
6037
|
+
"subitem": "primary"
|
|
6038
|
+
},
|
|
6039
|
+
"path": [
|
|
6040
|
+
"tooltip",
|
|
6041
|
+
"color",
|
|
6042
|
+
"surface",
|
|
6043
|
+
"primary"
|
|
6044
|
+
]
|
|
6045
|
+
},
|
|
6046
|
+
{
|
|
6047
|
+
"value": "-2px",
|
|
6048
|
+
"type": "size",
|
|
6049
|
+
"original": {
|
|
6050
|
+
"value": "-2",
|
|
6051
|
+
"type": "size"
|
|
6052
|
+
},
|
|
6053
|
+
"name": "token-tooltip-focus-offset",
|
|
6054
|
+
"attributes": {
|
|
6055
|
+
"category": "tooltip",
|
|
6056
|
+
"type": "focus-offset"
|
|
6057
|
+
},
|
|
6058
|
+
"path": [
|
|
6059
|
+
"tooltip",
|
|
6060
|
+
"focus-offset"
|
|
6061
|
+
]
|
|
6062
|
+
},
|
|
6063
|
+
{
|
|
6064
|
+
"value": "280px",
|
|
6065
|
+
"type": "size",
|
|
6066
|
+
"original": {
|
|
6067
|
+
"value": "280",
|
|
6068
|
+
"type": "size"
|
|
6069
|
+
},
|
|
6070
|
+
"name": "token-tooltip-max-width",
|
|
6071
|
+
"attributes": {
|
|
6072
|
+
"category": "tooltip",
|
|
6073
|
+
"type": "max-width"
|
|
6074
|
+
},
|
|
6075
|
+
"path": [
|
|
6076
|
+
"tooltip",
|
|
6077
|
+
"max-width"
|
|
6078
|
+
]
|
|
6079
|
+
},
|
|
6080
|
+
{
|
|
6081
|
+
"value": "12px",
|
|
6082
|
+
"type": "size",
|
|
6083
|
+
"original": {
|
|
6084
|
+
"value": "12",
|
|
6085
|
+
"type": "size"
|
|
6086
|
+
},
|
|
6087
|
+
"name": "token-tooltip-padding-horizontal",
|
|
6088
|
+
"attributes": {
|
|
6089
|
+
"category": "tooltip",
|
|
6090
|
+
"type": "padding",
|
|
6091
|
+
"item": "horizontal"
|
|
6092
|
+
},
|
|
6093
|
+
"path": [
|
|
6094
|
+
"tooltip",
|
|
6095
|
+
"padding",
|
|
6096
|
+
"horizontal"
|
|
6097
|
+
]
|
|
6098
|
+
},
|
|
6099
|
+
{
|
|
6100
|
+
"value": "8px",
|
|
6101
|
+
"type": "size",
|
|
6102
|
+
"original": {
|
|
6103
|
+
"value": "8",
|
|
6104
|
+
"type": "size"
|
|
6105
|
+
},
|
|
6106
|
+
"name": "token-tooltip-padding-vertical",
|
|
6107
|
+
"attributes": {
|
|
6108
|
+
"category": "tooltip",
|
|
6109
|
+
"type": "padding",
|
|
6110
|
+
"item": "vertical"
|
|
6111
|
+
},
|
|
6112
|
+
"path": [
|
|
6113
|
+
"tooltip",
|
|
6114
|
+
"padding",
|
|
6115
|
+
"vertical"
|
|
6116
|
+
]
|
|
6117
|
+
},
|
|
6118
|
+
{
|
|
6119
|
+
"value": "cubic-bezier(0.54, 1.5, 0.38, 1.11)",
|
|
6120
|
+
"original": {
|
|
6121
|
+
"value": "cubic-bezier(0.54, 1.5, 0.38, 1.11)"
|
|
6122
|
+
},
|
|
6123
|
+
"name": "token-tooltip-transition-function",
|
|
6124
|
+
"attributes": {
|
|
6125
|
+
"category": "tooltip",
|
|
6126
|
+
"type": "transition",
|
|
6127
|
+
"item": "function"
|
|
6128
|
+
},
|
|
6129
|
+
"path": [
|
|
6130
|
+
"tooltip",
|
|
6131
|
+
"transition",
|
|
6132
|
+
"function"
|
|
6133
|
+
]
|
|
6134
|
+
},
|
|
5962
6135
|
{
|
|
5963
6136
|
"value": "-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",
|
|
5964
6137
|
"original": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 28 Jun 2023 07:32:09 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -232,6 +232,7 @@
|
|
|
232
232
|
--token-form-text-input-background-image-data-url-time: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='%233B3D45'%3e%3cpath d='M8.5 3.75a.75.75 0 00-1.5 0V8c0 .284.16.544.415.67l2.5 1.25a.75.75 0 10.67-1.34L8.5 7.535V3.75z'/%3e%3cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zM1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0z' fill-rule='evenodd' clip-rule='evenodd'/%3e%3c/g%3e%3c/svg%3e"); /* notice: the icon color is hardcoded here! */
|
|
233
233
|
--token-form-text-input-background-image-data-url-search: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='%23656A76'%3e%3cpath d='M7.25 2a5.25 5.25 0 103.144 9.455l2.326 2.325a.75.75 0 101.06-1.06l-2.325-2.326A5.25 5.25 0 007.25 2zM3.5 7.25a3.75 3.75 0 117.5 0 3.75 3.75 0 01-7.5 0z' fill-rule='evenodd' clip-rule='evenodd'/%3e%3c/g%3e%3c/svg%3e"); /* notice: the icon color is hardcoded here! */
|
|
234
234
|
--token-form-text-input-background-image-data-url-search-cancel: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.78 4.28a.75.75 0 00-1.06-1.06L8 6.94 4.28 3.22a.75.75 0 00-1.06 1.06L6.94 8l-3.72 3.72a.75.75 0 101.06 1.06L8 9.06l3.72 3.72a.75.75 0 101.06-1.06L9.06 8l3.72-3.72z'/%3e%3c/svg%3e"); /* notice: the icon color is hardcoded here! */
|
|
235
|
+
--token-form-text-input-background-image-data-url-search-loading: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3e%3cg fill='%23656A76' fill-rule='evenodd' clip-rule='evenodd'%3e%3canimateTransform attributeName='transform' type='rotate' dur='0.9s' from='0 8 8' to='360 8 8' repeatCount='indefinite'/%3e%3cpath d='M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8z' opacity='.2'/%3e%3cpath d='M7.25.75A.75.75 0 018 0a8 8 0 018 8 .75.75 0 01-1.5 0A6.5 6.5 0 008 1.5a.75.75 0 01-.75-.75z'/%3e%3c/g%3e%3c/svg%3e"); /* notice: the icon color and animation are hardcoded here! */
|
|
235
236
|
--token-form-toggle-width: 32px;
|
|
236
237
|
--token-form-toggle-height: 16px;
|
|
237
238
|
--token-form-toggle-base-surface-color-default: #f1f2f3; /* the toggle has a different base surface color, compared to the other controls */
|
|
@@ -280,6 +281,14 @@
|
|
|
280
281
|
--token-tabs-indicator-transition-function: cubic-bezier(0.5, 1, 0.89, 1);
|
|
281
282
|
--token-tabs-indicator-transition-duration: 0.6s;
|
|
282
283
|
--token-tabs-divider-height: 1px;
|
|
284
|
+
--token-tooltip-border-radius: 5px;
|
|
285
|
+
--token-tooltip-color-foreground-primary: var(--token-color-foreground-high-contrast);
|
|
286
|
+
--token-tooltip-color-surface-primary: var(--token-color-palette-neutral-700);
|
|
287
|
+
--token-tooltip-focus-offset: -2px;
|
|
288
|
+
--token-tooltip-max-width: 280px;
|
|
289
|
+
--token-tooltip-padding-horizontal: 12px;
|
|
290
|
+
--token-tooltip-padding-vertical: 8px;
|
|
291
|
+
--token-tooltip-transition-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
|
|
283
292
|
--token-typography-font-stack-display: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
|
|
284
293
|
--token-typography-font-stack-text: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
|
|
285
294
|
--token-typography-font-stack-code: ui-monospace, Menlo, Consolas, monospace;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashicorp/design-system-tokens",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Helios Design Tokens",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hashicorp",
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/fs-extra": "^8.1.2",
|
|
26
|
-
"@types/lodash": "^4.14.
|
|
26
|
+
"@types/lodash": "^4.14.195",
|
|
27
27
|
"@types/node": "^13.13.52",
|
|
28
28
|
"@types/tinycolor2": "^1.4.3",
|
|
29
29
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
30
30
|
"@typescript-eslint/parser": "^4.33.0",
|
|
31
31
|
"del": "^5.1.0",
|
|
32
32
|
"eslint": "^7.32.0",
|
|
33
|
-
"fs-extra": "^10.
|
|
33
|
+
"fs-extra": "^10.1.0",
|
|
34
34
|
"lodash": "^4.17.21",
|
|
35
35
|
"path": "^0.12.7",
|
|
36
|
-
"style-dictionary": "^3.0
|
|
37
|
-
"tinycolor2": "^1.
|
|
36
|
+
"style-dictionary": "^3.8.0",
|
|
37
|
+
"tinycolor2": "^1.6.0",
|
|
38
38
|
"ts-node": "^9.1.1",
|
|
39
39
|
"typescript": "^4.9.5"
|
|
40
40
|
}
|