@discourser/design-system 0.2.2 → 0.3.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.
@@ -53,6 +53,7 @@ export interface UtilityValues {
53
53
  marginInlineStart: "auto" | Tokens["spacing"];
54
54
  spaceX: "auto" | Tokens["spacing"] | CssProperties["marginInlineStart"];
55
55
  spaceY: "auto" | Tokens["spacing"] | CssProperties["marginBlockStart"];
56
+ outlineWidth: Tokens["borderWidths"];
56
57
  outlineColor: Tokens["colors"];
57
58
  outline: Tokens["borders"];
58
59
  outlineOffset: Tokens["spacing"];
@@ -60,8 +61,10 @@ export interface UtilityValues {
60
61
  focusVisibleRing: "outside" | "inside" | "mixed" | "none";
61
62
  focusRingColor: Tokens["colors"];
62
63
  focusRingOffset: Tokens["spacing"];
63
- focusRingWidth: CssProperties["outlineWidth"];
64
+ focusRingWidth: Tokens["borderWidths"] | CssProperties["outlineWidth"];
64
65
  focusRingStyle: CssProperties["outlineStyle"];
66
+ divideX: Tokens["borderWidths"];
67
+ divideY: Tokens["borderWidths"];
65
68
  divideColor: Tokens["colors"];
66
69
  divideStyle: CssProperties["borderStyle"];
67
70
  width: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
@@ -116,18 +119,29 @@ export interface UtilityValues {
116
119
  borderEndEndRadius: Tokens["radii"];
117
120
  borderEndRadius: Tokens["radii"] | CssProperties["borderRadius"];
118
121
  border: Tokens["borders"];
122
+ borderWidth: Tokens["borderWidths"];
123
+ borderTopWidth: Tokens["borderWidths"];
124
+ borderLeftWidth: Tokens["borderWidths"];
125
+ borderRightWidth: Tokens["borderWidths"];
126
+ borderBottomWidth: Tokens["borderWidths"];
127
+ borderBlockStartWidth: Tokens["borderWidths"];
128
+ borderBlockEndWidth: Tokens["borderWidths"];
119
129
  borderColor: Tokens["colors"];
120
130
  borderInline: Tokens["borders"];
131
+ borderInlineWidth: Tokens["borderWidths"];
121
132
  borderInlineColor: Tokens["colors"];
122
133
  borderBlock: Tokens["borders"];
134
+ borderBlockWidth: Tokens["borderWidths"];
123
135
  borderBlockColor: Tokens["colors"];
124
136
  borderLeft: Tokens["borders"];
125
137
  borderLeftColor: Tokens["colors"];
126
138
  borderInlineStart: Tokens["borders"];
139
+ borderInlineStartWidth: Tokens["borderWidths"];
127
140
  borderInlineStartColor: Tokens["colors"];
128
141
  borderRight: Tokens["borders"];
129
142
  borderRightColor: Tokens["colors"];
130
143
  borderInlineEnd: Tokens["borders"];
144
+ borderInlineEndWidth: Tokens["borderWidths"];
131
145
  borderInlineEndColor: Tokens["colors"];
132
146
  borderTop: Tokens["borders"];
133
147
  borderTopColor: Tokens["colors"];
@@ -201,6 +215,7 @@ export interface UtilityValues {
201
215
  scrollSnapMarginRight: Tokens["spacing"];
202
216
  fill: Tokens["colors"];
203
217
  stroke: Tokens["colors"];
218
+ strokeWidth: Tokens["borderWidths"];
204
219
  srOnly: boolean;
205
220
  debug: boolean;
206
221
  containerName: CssProperties["containerName"];
@@ -854,7 +854,7 @@ borderBlockEndStyle?: ConditionalValue<CssVars | CssProperties["borderBlockEndSt
854
854
  *
855
855
  * @see https://developer.mozilla.org/docs/Web/CSS/border-block-end-width
856
856
  */
857
- borderBlockEndWidth?: ConditionalValue<CssProperties["borderBlockEndWidth"] | AnyString>
857
+ borderBlockEndWidth?: ConditionalValue<UtilityValues["borderBlockEndWidth"] | CssVars | CssProperties["borderBlockEndWidth"] | AnyString>
858
858
  /**
859
859
  * The **`border-block-start`** CSS property is a shorthand property for setting the individual logical block-start border property values in a single place in the style sheet.
860
860
  *
@@ -908,7 +908,7 @@ borderBlockStartStyle?: ConditionalValue<CssVars | CssProperties["borderBlockSta
908
908
  *
909
909
  * @see https://developer.mozilla.org/docs/Web/CSS/border-block-start-width
910
910
  */
911
- borderBlockStartWidth?: ConditionalValue<CssProperties["borderBlockStartWidth"] | AnyString>
911
+ borderBlockStartWidth?: ConditionalValue<UtilityValues["borderBlockStartWidth"] | CssVars | CssProperties["borderBlockStartWidth"] | AnyString>
912
912
  /**
913
913
  * The **`border-block-style`** CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the `border-top-style` and `border-bottom-style`, or `border-left-style` and `border-right-style` properties depending on the values defined for `writing-mode`, `direction`, and `text-orientation`.
914
914
  *
@@ -936,7 +936,7 @@ borderBlockStyle?: ConditionalValue<CssVars | CssProperties["borderBlockStyle"]
936
936
  *
937
937
  * @see https://developer.mozilla.org/docs/Web/CSS/border-block-width
938
938
  */
939
- borderBlockWidth?: ConditionalValue<CssProperties["borderBlockWidth"] | AnyString>
939
+ borderBlockWidth?: ConditionalValue<UtilityValues["borderBlockWidth"] | CssVars | CssProperties["borderBlockWidth"] | AnyString>
940
940
  /**
941
941
  * The **`border-bottom`** shorthand CSS property sets an element's bottom border. It sets the values of `border-bottom-width`, `border-bottom-style` and `border-bottom-color`.
942
942
  *
@@ -1020,7 +1020,7 @@ borderBottomStyle?: ConditionalValue<CssVars | CssProperties["borderBottomStyle"
1020
1020
  *
1021
1021
  * @see https://developer.mozilla.org/docs/Web/CSS/border-bottom-width
1022
1022
  */
1023
- borderBottomWidth?: ConditionalValue<CssProperties["borderBottomWidth"] | AnyString>
1023
+ borderBottomWidth?: ConditionalValue<UtilityValues["borderBottomWidth"] | CssVars | CssProperties["borderBottomWidth"] | AnyString>
1024
1024
  /**
1025
1025
  * The **`border-collapse`** CSS property sets whether cells inside a `<table>` have shared or separate borders.
1026
1026
  *
@@ -1240,7 +1240,7 @@ borderInlineEndStyle?: ConditionalValue<CssVars | CssProperties["borderInlineEnd
1240
1240
  *
1241
1241
  * @see https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width
1242
1242
  */
1243
- borderInlineEndWidth?: ConditionalValue<CssProperties["borderInlineEndWidth"] | AnyString>
1243
+ borderInlineEndWidth?: ConditionalValue<UtilityValues["borderInlineEndWidth"] | CssVars | CssProperties["borderInlineEndWidth"] | AnyString>
1244
1244
  /**
1245
1245
  * The **`border-inline-start`** CSS property is a shorthand property for setting the individual logical inline-start border property values in a single place in the style sheet.
1246
1246
  *
@@ -1296,7 +1296,7 @@ borderInlineStartStyle?: ConditionalValue<CssVars | CssProperties["borderInlineS
1296
1296
  *
1297
1297
  * @see https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width
1298
1298
  */
1299
- borderInlineStartWidth?: ConditionalValue<CssProperties["borderInlineStartWidth"] | AnyString>
1299
+ borderInlineStartWidth?: ConditionalValue<UtilityValues["borderInlineStartWidth"] | CssVars | CssProperties["borderInlineStartWidth"] | AnyString>
1300
1300
  /**
1301
1301
  * The **`border-inline-style`** CSS property defines the style of the logical inline borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the `border-top-style` and `border-bottom-style`, or `border-left-style` and `border-right-style` properties depending on the values defined for `writing-mode`, `direction`, and `text-orientation`.
1302
1302
  *
@@ -1324,7 +1324,7 @@ borderInlineStyle?: ConditionalValue<CssVars | CssProperties["borderInlineStyle"
1324
1324
  *
1325
1325
  * @see https://developer.mozilla.org/docs/Web/CSS/border-inline-width
1326
1326
  */
1327
- borderInlineWidth?: ConditionalValue<CssProperties["borderInlineWidth"] | AnyString>
1327
+ borderInlineWidth?: ConditionalValue<UtilityValues["borderInlineWidth"] | CssVars | CssProperties["borderInlineWidth"] | AnyString>
1328
1328
  /**
1329
1329
  * The **`border-left`** shorthand CSS property sets all the properties of an element's left border.
1330
1330
  *
@@ -1378,7 +1378,7 @@ borderLeftStyle?: ConditionalValue<CssVars | CssProperties["borderLeftStyle"] |
1378
1378
  *
1379
1379
  * @see https://developer.mozilla.org/docs/Web/CSS/border-left-width
1380
1380
  */
1381
- borderLeftWidth?: ConditionalValue<CssProperties["borderLeftWidth"] | AnyString>
1381
+ borderLeftWidth?: ConditionalValue<UtilityValues["borderLeftWidth"] | CssVars | CssProperties["borderLeftWidth"] | AnyString>
1382
1382
  /**
1383
1383
  * The **`border-radius`** CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners.
1384
1384
  *
@@ -1445,7 +1445,7 @@ borderRightStyle?: ConditionalValue<CssVars | CssProperties["borderRightStyle"]
1445
1445
  *
1446
1446
  * @see https://developer.mozilla.org/docs/Web/CSS/border-right-width
1447
1447
  */
1448
- borderRightWidth?: ConditionalValue<CssProperties["borderRightWidth"] | AnyString>
1448
+ borderRightWidth?: ConditionalValue<UtilityValues["borderRightWidth"] | CssVars | CssProperties["borderRightWidth"] | AnyString>
1449
1449
  /**
1450
1450
  * The **`border-spacing`** CSS property sets the distance between the borders of adjacent cells in a `<table>`. This property applies only when `border-collapse` is `separate`.
1451
1451
  *
@@ -1583,7 +1583,7 @@ borderTopStyle?: ConditionalValue<CssVars | CssProperties["borderTopStyle"] | An
1583
1583
  *
1584
1584
  * @see https://developer.mozilla.org/docs/Web/CSS/border-top-width
1585
1585
  */
1586
- borderTopWidth?: ConditionalValue<CssProperties["borderTopWidth"] | AnyString>
1586
+ borderTopWidth?: ConditionalValue<UtilityValues["borderTopWidth"] | CssVars | CssProperties["borderTopWidth"] | AnyString>
1587
1587
  /**
1588
1588
  * The **`border-width`** shorthand CSS property sets the width of an element's border.
1589
1589
  *
@@ -1595,7 +1595,7 @@ borderTopWidth?: ConditionalValue<CssProperties["borderTopWidth"] | AnyString>
1595
1595
  *
1596
1596
  * @see https://developer.mozilla.org/docs/Web/CSS/border-width
1597
1597
  */
1598
- borderWidth?: ConditionalValue<CssProperties["borderWidth"] | AnyString>
1598
+ borderWidth?: ConditionalValue<UtilityValues["borderWidth"] | CssVars | CssProperties["borderWidth"] | AnyString>
1599
1599
  /**
1600
1600
  * The **`bottom`** CSS property participates in setting the vertical position of a positioned element. It has no effect on non-positioned elements.
1601
1601
  *
@@ -4187,7 +4187,7 @@ outlineStyle?: ConditionalValue<CssVars | CssProperties["outlineStyle"] | AnyStr
4187
4187
  *
4188
4188
  * @see https://developer.mozilla.org/docs/Web/CSS/outline-width
4189
4189
  */
4190
- outlineWidth?: ConditionalValue<CssProperties["outlineWidth"] | AnyString>
4190
+ outlineWidth?: ConditionalValue<UtilityValues["outlineWidth"] | CssVars | CssProperties["outlineWidth"] | AnyString>
4191
4191
  /**
4192
4192
  * The **`overflow`** CSS shorthand property sets the desired behavior for an element's overflow — i.e. when an element's content is too big to fit in its block formatting context — in both directions.
4193
4193
  *
@@ -5340,7 +5340,7 @@ shapeOutside?: ConditionalValue<CssProperties["shapeOutside"] | AnyString>
5340
5340
  strokeLinejoin?: ConditionalValue<CssProperties["strokeLinejoin"] | AnyString>
5341
5341
  strokeMiterlimit?: ConditionalValue<CssProperties["strokeMiterlimit"] | AnyString>
5342
5342
  strokeOpacity?: ConditionalValue<CssProperties["strokeOpacity"] | AnyString>
5343
- strokeWidth?: ConditionalValue<CssProperties["strokeWidth"] | AnyString>
5343
+ strokeWidth?: ConditionalValue<UtilityValues["strokeWidth"] | CssVars | CssProperties["strokeWidth"] | AnyString>
5344
5344
  /**
5345
5345
  * The **`tab-size`** CSS property is used to customize the width of tab characters (U+0009).
5346
5346
  *
@@ -6697,7 +6697,7 @@ marginStart?: ConditionalValue<UtilityValues["marginInlineStart"] | CssVars | Cs
6697
6697
  *
6698
6698
  * @see https://developer.mozilla.org/docs/Web/CSS/outline-width
6699
6699
  */
6700
- ringWidth?: ConditionalValue<CssProperties["outlineWidth"] | AnyString>
6700
+ ringWidth?: ConditionalValue<UtilityValues["outlineWidth"] | CssVars | CssProperties["outlineWidth"] | AnyString>
6701
6701
  /**
6702
6702
  * The **`outline-color`** CSS property sets the color of an element's outline.
6703
6703
  *
@@ -7155,7 +7155,7 @@ borderX?: ConditionalValue<UtilityValues["borderInline"] | CssVars | CssProperti
7155
7155
  *
7156
7156
  * @see https://developer.mozilla.org/docs/Web/CSS/border-inline-width
7157
7157
  */
7158
- borderXWidth?: ConditionalValue<CssProperties["borderInlineWidth"] | AnyString>
7158
+ borderXWidth?: ConditionalValue<UtilityValues["borderInlineWidth"] | CssVars | CssProperties["borderInlineWidth"] | AnyString>
7159
7159
  /**
7160
7160
  * The **`border-inline-color`** CSS property defines the color of the logical inline borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the `border-top-color` and `border-bottom-color`, or `border-right-color` and `border-left-color` property depending on the values defined for `writing-mode`, `direction`, and `text-orientation`.
7161
7161
  *
@@ -7195,7 +7195,7 @@ borderY?: ConditionalValue<UtilityValues["borderBlock"] | CssVars | CssPropertie
7195
7195
  *
7196
7196
  * @see https://developer.mozilla.org/docs/Web/CSS/border-block-width
7197
7197
  */
7198
- borderYWidth?: ConditionalValue<CssProperties["borderBlockWidth"] | AnyString>
7198
+ borderYWidth?: ConditionalValue<UtilityValues["borderBlockWidth"] | CssVars | CssProperties["borderBlockWidth"] | AnyString>
7199
7199
  /**
7200
7200
  * The **`border-block-color`** CSS property defines the color of the logical block borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the `border-top-color` and `border-bottom-color`, or `border-right-color` and `border-left-color` property depending on the values defined for `writing-mode`, `direction`, and `text-orientation`.
7201
7201
  *
@@ -7235,7 +7235,7 @@ borderStart?: ConditionalValue<UtilityValues["borderInlineStart"] | CssVars | Cs
7235
7235
  *
7236
7236
  * @see https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width
7237
7237
  */
7238
- borderStartWidth?: ConditionalValue<CssProperties["borderInlineStartWidth"] | AnyString>
7238
+ borderStartWidth?: ConditionalValue<UtilityValues["borderInlineStartWidth"] | CssVars | CssProperties["borderInlineStartWidth"] | AnyString>
7239
7239
  /**
7240
7240
  * The **`border-inline-start-color`** CSS property defines the color of the logical inline start border of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the `border-top-color`, `border-right-color`, `border-bottom-color`, or `border-left-color` property depending on the values defined for `writing-mode`, `direction`, and `text-orientation`.
7241
7241
  *
@@ -7277,7 +7277,7 @@ borderEnd?: ConditionalValue<UtilityValues["borderInlineEnd"] | CssVars | CssPro
7277
7277
  *
7278
7278
  * @see https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width
7279
7279
  */
7280
- borderEndWidth?: ConditionalValue<CssProperties["borderInlineEndWidth"] | AnyString>
7280
+ borderEndWidth?: ConditionalValue<UtilityValues["borderInlineEndWidth"] | CssVars | CssProperties["borderInlineEndWidth"] | AnyString>
7281
7281
  /**
7282
7282
  * The **`border-inline-end-color`** CSS property defines the color of the logical inline-end border of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the `border-top-color`, `border-right-color`, `border-bottom-color`, or `border-left-color` property depending on the values defined for `writing-mode`, `direction`, and `text-orientation`.
7283
7283
  *
@@ -7368,8 +7368,8 @@ scrollPaddingX?: ConditionalValue<UtilityValues["scrollPaddingInline"] | CssVars
7368
7368
  focusRingOffset?: ConditionalValue<UtilityValues["focusRingOffset"] | CssVars | AnyString>
7369
7369
  focusRingWidth?: ConditionalValue<UtilityValues["focusRingWidth"] | CssVars | AnyString>
7370
7370
  focusRingStyle?: ConditionalValue<UtilityValues["focusRingStyle"] | CssVars | AnyString>
7371
- divideX?: ConditionalValue<string | number | AnyString>
7372
- divideY?: ConditionalValue<string | number | AnyString>
7371
+ divideX?: ConditionalValue<UtilityValues["divideX"] | CssVars | AnyString>
7372
+ divideY?: ConditionalValue<UtilityValues["divideY"] | CssVars | AnyString>
7373
7373
  divideColor?: ConditionalValue<UtilityValues["divideColor"] | CssVars | AnyString>
7374
7374
  divideStyle?: ConditionalValue<UtilityValues["divideStyle"] | CssVars | AnyString>
7375
7375
  boxSize?: ConditionalValue<UtilityValues["boxSize"] | CssVars | AnyString>