@primer/primitives 10.0.0-rc.f5f47b7d → 10.0.0-rc.f7aad39e

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.
Files changed (108) hide show
  1. package/README.md +2 -2
  2. package/dist/build/PrimerStyleDictionary.js +27 -26
  3. package/dist/build/filters/isCubicBezier.d.ts +7 -0
  4. package/dist/build/filters/isCubicBezier.js +10 -0
  5. package/dist/build/formats/typescriptExportDefinition.js +2 -2
  6. package/dist/build/parsers/w3cJsonParser.js +2 -2
  7. package/dist/build/platforms/css.js +1 -0
  8. package/dist/build/schemas/borderToken.d.ts +3 -3
  9. package/dist/build/schemas/colorToken.d.ts +3 -3
  10. package/dist/build/schemas/cubicBezierToken.d.ts +18 -0
  11. package/dist/build/schemas/cubicBezierToken.js +8 -0
  12. package/dist/build/schemas/designToken.js +2 -1
  13. package/dist/build/schemas/dimensionToken.d.ts +3 -3
  14. package/dist/build/schemas/durationToken.d.ts +3 -3
  15. package/dist/build/schemas/fontFamilyToken.d.ts +3 -3
  16. package/dist/build/schemas/fontWeightToken.d.ts +3 -3
  17. package/dist/build/schemas/numberToken.d.ts +3 -3
  18. package/dist/build/schemas/shadowToken.d.ts +3 -3
  19. package/dist/build/schemas/stringToken.d.ts +3 -3
  20. package/dist/build/schemas/tokenType.d.ts +1 -1
  21. package/dist/build/schemas/typographyToken.d.ts +3 -3
  22. package/dist/build/schemas/validTokenType.d.ts +1 -1
  23. package/dist/build/schemas/validTokenType.js +1 -0
  24. package/dist/build/schemas/viewportRangeToken.d.ts +3 -3
  25. package/dist/build/transformers/cubicBezierToCss.d.ts +8 -0
  26. package/dist/build/transformers/cubicBezierToCss.js +23 -0
  27. package/dist/build/transformers/durationToCss.js +2 -2
  28. package/dist/build/transformers/index.d.ts +1 -0
  29. package/dist/build/transformers/index.js +1 -0
  30. package/dist/css/base/motion/motion.css +17 -0
  31. package/dist/css/functional/motion/motion.css +4 -3
  32. package/dist/css/functional/themes/dark-colorblind.css +2 -0
  33. package/dist/css/functional/themes/dark-dimmed.css +2 -0
  34. package/dist/css/functional/themes/dark-high-contrast.css +2 -0
  35. package/dist/css/functional/themes/dark-tritanopia.css +2 -0
  36. package/dist/css/functional/themes/dark.css +2 -0
  37. package/dist/css/functional/themes/light-colorblind.css +2 -0
  38. package/dist/css/functional/themes/light-high-contrast.css +2 -0
  39. package/dist/css/functional/themes/light-tritanopia.css +2 -0
  40. package/dist/css/functional/themes/light.css +2 -0
  41. package/dist/css/functional/typography/typography.css +43 -43
  42. package/dist/css/primitives.css +64 -46
  43. package/dist/docs/base/motion/motion.json +205 -0
  44. package/dist/docs/functional/motion/motion.json +18 -3
  45. package/dist/docs/functional/themes/dark-colorblind.json +29 -0
  46. package/dist/docs/functional/themes/dark-dimmed.json +29 -0
  47. package/dist/docs/functional/themes/dark-high-contrast.json +29 -0
  48. package/dist/docs/functional/themes/dark-tritanopia.json +29 -0
  49. package/dist/docs/functional/themes/dark.json +29 -0
  50. package/dist/docs/functional/themes/light-colorblind.json +29 -0
  51. package/dist/docs/functional/themes/light-high-contrast.json +29 -0
  52. package/dist/docs/functional/themes/light-tritanopia.json +29 -0
  53. package/dist/docs/functional/themes/light.json +29 -0
  54. package/dist/fallbacks/base/motion/motion.json +17 -0
  55. package/dist/fallbacks/functional/motion/motion.json +1 -0
  56. package/dist/figma/dimension/dimension.json +518 -518
  57. package/dist/figma/figma.json +26 -26
  58. package/dist/figma/scales/dark-dimmed.json +1787 -1787
  59. package/dist/figma/scales/dark-high-constrast.json +1787 -1787
  60. package/dist/figma/scales/dark.json +1460 -1460
  61. package/dist/figma/scales/light-high-constrast.json +1775 -1775
  62. package/dist/figma/scales/light.json +1447 -1447
  63. package/dist/figma/shadows/dark-colorblind.json +285 -285
  64. package/dist/figma/shadows/dark-dimmed.json +285 -285
  65. package/dist/figma/shadows/dark-high-contrast.json +285 -285
  66. package/dist/figma/shadows/dark-tritanopia.json +285 -285
  67. package/dist/figma/shadows/dark.json +285 -285
  68. package/dist/figma/shadows/light-colorblind.json +254 -254
  69. package/dist/figma/shadows/light-high-contrast.json +254 -254
  70. package/dist/figma/shadows/light-tritanopia.json +254 -254
  71. package/dist/figma/shadows/light.json +254 -254
  72. package/dist/figma/themes/dark-colorblind.json +5146 -5130
  73. package/dist/figma/themes/dark-dimmed.json +5560 -5544
  74. package/dist/figma/themes/dark-high-contrast.json +4323 -4307
  75. package/dist/figma/themes/dark-tritanopia.json +5270 -5254
  76. package/dist/figma/themes/dark.json +5697 -5681
  77. package/dist/figma/themes/light-colorblind.json +5100 -5084
  78. package/dist/figma/themes/light-high-contrast.json +4427 -4411
  79. package/dist/figma/themes/light-tritanopia.json +5171 -5155
  80. package/dist/figma/themes/light.json +5537 -5521
  81. package/dist/figma/typography/typography.json +162 -162
  82. package/dist/internalCss/dark-colorblind.css +2 -0
  83. package/dist/internalCss/dark-dimmed.css +2 -0
  84. package/dist/internalCss/dark-high-contrast.css +2 -0
  85. package/dist/internalCss/dark-tritanopia.css +2 -0
  86. package/dist/internalCss/dark.css +2 -0
  87. package/dist/internalCss/light-colorblind.css +2 -0
  88. package/dist/internalCss/light-high-contrast.css +2 -0
  89. package/dist/internalCss/light-tritanopia.css +2 -0
  90. package/dist/internalCss/light.css +2 -0
  91. package/dist/styleLint/base/motion/motion.json +205 -0
  92. package/dist/styleLint/functional/motion/motion.json +18 -3
  93. package/dist/styleLint/functional/themes/dark-colorblind.json +29 -0
  94. package/dist/styleLint/functional/themes/dark-dimmed.json +29 -0
  95. package/dist/styleLint/functional/themes/dark-high-contrast.json +29 -0
  96. package/dist/styleLint/functional/themes/dark-tritanopia.json +29 -0
  97. package/dist/styleLint/functional/themes/dark.json +29 -0
  98. package/dist/styleLint/functional/themes/light-colorblind.json +29 -0
  99. package/dist/styleLint/functional/themes/light-high-contrast.json +29 -0
  100. package/dist/styleLint/functional/themes/light-tritanopia.json +29 -0
  101. package/dist/styleLint/functional/themes/light.json +29 -0
  102. package/package.json +18 -21
  103. package/src/tokens/base/motion/easing.json5 +26 -0
  104. package/src/tokens/base/motion/timing.json5 +50 -0
  105. package/src/tokens/functional/color/dark/patterns-dark.json5 +12 -0
  106. package/src/tokens/functional/color/light/patterns-light.json5 +13 -1
  107. package/src/tokens/functional/motion/loading.json5 +1 -1
  108. package/src/tokens/functional/motion/patterns.json5 +9 -2
@@ -7113,6 +7113,35 @@
7113
7113
  "value": "#f0f6fc",
7114
7114
  "type": "color"
7115
7115
  },
7116
+ "button-invisible-fgColor-active": {
7117
+ "$extensions": {
7118
+ "org.primer.figma": {
7119
+ "collection": "mode",
7120
+ "mode": "dark",
7121
+ "group": "component (internal)",
7122
+ "scopes": ["fgColor"]
7123
+ }
7124
+ },
7125
+ "filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
7126
+ "isSource": true,
7127
+ "original": {
7128
+ "$value": "{control.fgColor.rest}",
7129
+ "$type": "color",
7130
+ "$extensions": {
7131
+ "org.primer.figma": {
7132
+ "collection": "mode",
7133
+ "mode": "dark",
7134
+ "group": "component (internal)",
7135
+ "scopes": ["fgColor"]
7136
+ }
7137
+ }
7138
+ },
7139
+ "name": "button-invisible-fgColor-active",
7140
+ "attributes": {},
7141
+ "path": ["button", "invisible", "fgColor", "active"],
7142
+ "value": "#f0f6fc",
7143
+ "type": "color"
7144
+ },
7116
7145
  "button-invisible-fgColor-disabled": {
7117
7146
  "$extensions": {
7118
7147
  "org.primer.figma": {
@@ -7109,6 +7109,35 @@
7109
7109
  "value": "#d1d7e0",
7110
7110
  "type": "color"
7111
7111
  },
7112
+ "button-invisible-fgColor-active": {
7113
+ "$extensions": {
7114
+ "org.primer.figma": {
7115
+ "collection": "mode",
7116
+ "mode": "dark",
7117
+ "group": "component (internal)",
7118
+ "scopes": ["fgColor"]
7119
+ }
7120
+ },
7121
+ "filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
7122
+ "isSource": true,
7123
+ "original": {
7124
+ "$value": "{control.fgColor.rest}",
7125
+ "$type": "color",
7126
+ "$extensions": {
7127
+ "org.primer.figma": {
7128
+ "collection": "mode",
7129
+ "mode": "dark",
7130
+ "group": "component (internal)",
7131
+ "scopes": ["fgColor"]
7132
+ }
7133
+ }
7134
+ },
7135
+ "name": "button-invisible-fgColor-active",
7136
+ "attributes": {},
7137
+ "path": ["button", "invisible", "fgColor", "active"],
7138
+ "value": "#d1d7e0",
7139
+ "type": "color"
7140
+ },
7112
7141
  "button-invisible-fgColor-disabled": {
7113
7142
  "$extensions": {
7114
7143
  "org.primer.figma": {
@@ -5837,6 +5837,35 @@
5837
5837
  "value": "#ffffff",
5838
5838
  "type": "color"
5839
5839
  },
5840
+ "button-invisible-fgColor-active": {
5841
+ "$extensions": {
5842
+ "org.primer.figma": {
5843
+ "collection": "mode",
5844
+ "mode": "dark",
5845
+ "group": "component (internal)",
5846
+ "scopes": ["fgColor"]
5847
+ }
5848
+ },
5849
+ "filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
5850
+ "isSource": true,
5851
+ "original": {
5852
+ "$value": "{control.fgColor.rest}",
5853
+ "$type": "color",
5854
+ "$extensions": {
5855
+ "org.primer.figma": {
5856
+ "collection": "mode",
5857
+ "mode": "dark",
5858
+ "group": "component (internal)",
5859
+ "scopes": ["fgColor"]
5860
+ }
5861
+ }
5862
+ },
5863
+ "name": "button-invisible-fgColor-active",
5864
+ "attributes": {},
5865
+ "path": ["button", "invisible", "fgColor", "active"],
5866
+ "value": "#ffffff",
5867
+ "type": "color"
5868
+ },
5840
5869
  "button-invisible-fgColor-disabled": {
5841
5870
  "$extensions": {
5842
5871
  "org.primer.figma": {
@@ -7205,6 +7205,35 @@
7205
7205
  "value": "#f0f6fc",
7206
7206
  "type": "color"
7207
7207
  },
7208
+ "button-invisible-fgColor-active": {
7209
+ "$extensions": {
7210
+ "org.primer.figma": {
7211
+ "collection": "mode",
7212
+ "mode": "dark",
7213
+ "group": "component (internal)",
7214
+ "scopes": ["fgColor"]
7215
+ }
7216
+ },
7217
+ "filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
7218
+ "isSource": true,
7219
+ "original": {
7220
+ "$value": "{control.fgColor.rest}",
7221
+ "$type": "color",
7222
+ "$extensions": {
7223
+ "org.primer.figma": {
7224
+ "collection": "mode",
7225
+ "mode": "dark",
7226
+ "group": "component (internal)",
7227
+ "scopes": ["fgColor"]
7228
+ }
7229
+ }
7230
+ },
7231
+ "name": "button-invisible-fgColor-active",
7232
+ "attributes": {},
7233
+ "path": ["button", "invisible", "fgColor", "active"],
7234
+ "value": "#f0f6fc",
7235
+ "type": "color"
7236
+ },
7208
7237
  "button-invisible-fgColor-disabled": {
7209
7238
  "$extensions": {
7210
7239
  "org.primer.figma": {
@@ -7317,6 +7317,35 @@
7317
7317
  "value": "#f0f6fc",
7318
7318
  "type": "color"
7319
7319
  },
7320
+ "button-invisible-fgColor-active": {
7321
+ "$extensions": {
7322
+ "org.primer.figma": {
7323
+ "collection": "mode",
7324
+ "mode": "dark",
7325
+ "group": "component (internal)",
7326
+ "scopes": ["fgColor"]
7327
+ }
7328
+ },
7329
+ "filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
7330
+ "isSource": true,
7331
+ "original": {
7332
+ "$value": "{control.fgColor.rest}",
7333
+ "$type": "color",
7334
+ "$extensions": {
7335
+ "org.primer.figma": {
7336
+ "collection": "mode",
7337
+ "mode": "dark",
7338
+ "group": "component (internal)",
7339
+ "scopes": ["fgColor"]
7340
+ }
7341
+ }
7342
+ },
7343
+ "name": "button-invisible-fgColor-active",
7344
+ "attributes": {},
7345
+ "path": ["button", "invisible", "fgColor", "active"],
7346
+ "value": "#f0f6fc",
7347
+ "type": "color"
7348
+ },
7320
7349
  "button-invisible-fgColor-disabled": {
7321
7350
  "$extensions": {
7322
7351
  "org.primer.figma": {
@@ -7123,6 +7123,35 @@
7123
7123
  "value": "#25292e",
7124
7124
  "type": "color"
7125
7125
  },
7126
+ "button-invisible-fgColor-active": {
7127
+ "$extensions": {
7128
+ "org.primer.figma": {
7129
+ "collection": "mode",
7130
+ "mode": "light",
7131
+ "group": "component (internal)",
7132
+ "scopes": ["fgColor"]
7133
+ }
7134
+ },
7135
+ "filePath": "src/tokens/functional/color/light/patterns-light.json5",
7136
+ "isSource": true,
7137
+ "original": {
7138
+ "$value": "{control.fgColor.rest}",
7139
+ "$type": "color",
7140
+ "$extensions": {
7141
+ "org.primer.figma": {
7142
+ "collection": "mode",
7143
+ "mode": "light",
7144
+ "group": "component (internal)",
7145
+ "scopes": ["fgColor"]
7146
+ }
7147
+ }
7148
+ },
7149
+ "name": "button-invisible-fgColor-active",
7150
+ "attributes": {},
7151
+ "path": ["button", "invisible", "fgColor", "active"],
7152
+ "value": "#25292e",
7153
+ "type": "color"
7154
+ },
7126
7155
  "button-invisible-fgColor-disabled": {
7127
7156
  "$extensions": {
7128
7157
  "org.primer.figma": {
@@ -5873,6 +5873,35 @@
5873
5873
  "value": "#393f46",
5874
5874
  "type": "color"
5875
5875
  },
5876
+ "button-invisible-fgColor-active": {
5877
+ "$extensions": {
5878
+ "org.primer.figma": {
5879
+ "collection": "mode",
5880
+ "mode": "light",
5881
+ "group": "component (internal)",
5882
+ "scopes": ["fgColor"]
5883
+ }
5884
+ },
5885
+ "filePath": "src/tokens/functional/color/light/patterns-light.json5",
5886
+ "isSource": true,
5887
+ "original": {
5888
+ "$value": "{control.fgColor.rest}",
5889
+ "$type": "color",
5890
+ "$extensions": {
5891
+ "org.primer.figma": {
5892
+ "collection": "mode",
5893
+ "mode": "light",
5894
+ "group": "component (internal)",
5895
+ "scopes": ["fgColor"]
5896
+ }
5897
+ }
5898
+ },
5899
+ "name": "button-invisible-fgColor-active",
5900
+ "attributes": {},
5901
+ "path": ["button", "invisible", "fgColor", "active"],
5902
+ "value": "#25292e",
5903
+ "type": "color"
5904
+ },
5876
5905
  "button-invisible-fgColor-disabled": {
5877
5906
  "$extensions": {
5878
5907
  "org.primer.figma": {
@@ -7139,6 +7139,35 @@
7139
7139
  "value": "#25292e",
7140
7140
  "type": "color"
7141
7141
  },
7142
+ "button-invisible-fgColor-active": {
7143
+ "$extensions": {
7144
+ "org.primer.figma": {
7145
+ "collection": "mode",
7146
+ "mode": "light",
7147
+ "group": "component (internal)",
7148
+ "scopes": ["fgColor"]
7149
+ }
7150
+ },
7151
+ "filePath": "src/tokens/functional/color/light/patterns-light.json5",
7152
+ "isSource": true,
7153
+ "original": {
7154
+ "$value": "{control.fgColor.rest}",
7155
+ "$type": "color",
7156
+ "$extensions": {
7157
+ "org.primer.figma": {
7158
+ "collection": "mode",
7159
+ "mode": "light",
7160
+ "group": "component (internal)",
7161
+ "scopes": ["fgColor"]
7162
+ }
7163
+ }
7164
+ },
7165
+ "name": "button-invisible-fgColor-active",
7166
+ "attributes": {},
7167
+ "path": ["button", "invisible", "fgColor", "active"],
7168
+ "value": "#25292e",
7169
+ "type": "color"
7170
+ },
7142
7171
  "button-invisible-fgColor-disabled": {
7143
7172
  "$extensions": {
7144
7173
  "org.primer.figma": {
@@ -7283,6 +7283,35 @@
7283
7283
  "value": "#25292e",
7284
7284
  "type": "color"
7285
7285
  },
7286
+ "button-invisible-fgColor-active": {
7287
+ "$extensions": {
7288
+ "org.primer.figma": {
7289
+ "collection": "mode",
7290
+ "mode": "light",
7291
+ "group": "component (internal)",
7292
+ "scopes": ["fgColor"]
7293
+ }
7294
+ },
7295
+ "filePath": "src/tokens/functional/color/light/patterns-light.json5",
7296
+ "isSource": true,
7297
+ "original": {
7298
+ "$value": "{control.fgColor.rest}",
7299
+ "$type": "color",
7300
+ "$extensions": {
7301
+ "org.primer.figma": {
7302
+ "collection": "mode",
7303
+ "mode": "light",
7304
+ "group": "component (internal)",
7305
+ "scopes": ["fgColor"]
7306
+ }
7307
+ }
7308
+ },
7309
+ "name": "button-invisible-fgColor-active",
7310
+ "attributes": {},
7311
+ "path": ["button", "invisible", "fgColor", "active"],
7312
+ "value": "#25292e",
7313
+ "type": "color"
7314
+ },
7286
7315
  "button-invisible-fgColor-disabled": {
7287
7316
  "$extensions": {
7288
7317
  "org.primer.figma": {
@@ -0,0 +1,17 @@
1
+ {
2
+ "--base-easing-linear": [0, 0, 1, 1],
3
+ "--base-easing-easeIn": [0.7, 0.1, 0.75, 0.9],
4
+ "--base-easing-easeOut": [0.16, 1, 0.3, 1],
5
+ "--base-easing-easeInOut": [0.6, 0, 0.2, 1],
6
+ "--base-duration-0": "0ms",
7
+ "--base-duration-75": "75ms",
8
+ "--base-duration-200": "200ms",
9
+ "--base-duration-300": "300ms",
10
+ "--base-duration-400": "400ms",
11
+ "--base-duration-500": "500ms",
12
+ "--base-duration-600": "600ms",
13
+ "--base-duration-700": "700ms",
14
+ "--base-duration-800": "800ms",
15
+ "--base-duration-900": "900ms",
16
+ "--base-duration-1000": "1000ms"
17
+ }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "--motion-loading-delay-default": "1000ms",
3
3
  "--motion-spinner-duration-rotation": "1000ms",
4
+ "--motion-spinner-easing-rotation": [0, 0, 1, 1],
4
5
  "--motion-skeletonLoader-shimmer-duration-scale": "1000ms"
5
6
  }