@homebound/beam 2.399.1 → 2.401.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/index.cjs +22 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +22 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4151,11 +4151,11 @@ var CssBuilder = class _CssBuilder {
|
|
|
4151
4151
|
);
|
|
4152
4152
|
}
|
|
4153
4153
|
// buttonBase
|
|
4154
|
-
/** Sets `fontWeight: 500; fontSize: "14px"; lineHeight: "20px"; outline: 0; borderRadius: "
|
|
4154
|
+
/** Sets `fontWeight: 500; fontSize: "14px"; lineHeight: "20px"; outline: 0; borderRadius: "8px"; display: "inline-flex"; alignItems: "center"; whiteSpace: "nowrap"; transition: "background-color 200ms, border-color 200ms, box-shadow 200ms, left 200ms, right 200ms, margin 200ms"`. */
|
|
4155
4155
|
get buttonBase() {
|
|
4156
4156
|
return this.add("fontWeight", 500).add("fontSize", "14px").add("lineHeight", "20px").add("outline", 0).add(
|
|
4157
4157
|
"borderRadius",
|
|
4158
|
-
"
|
|
4158
|
+
"8px"
|
|
4159
4159
|
).add("display", "inline-flex").add("alignItems", "center").add("whiteSpace", "nowrap").add(
|
|
4160
4160
|
"transition",
|
|
4161
4161
|
"background-color 200ms, border-color 200ms, box-shadow 200ms, left 200ms, right 200ms, margin 200ms"
|
|
@@ -7201,10 +7201,10 @@ var variantStyles = (contrast) => ({
|
|
|
7201
7201
|
focusStyles: Css.bshFocus.if(contrast).boxShadow(`0 0 0 2px ${"rgba(255,255,255,1)" /* White */}`).$
|
|
7202
7202
|
},
|
|
7203
7203
|
secondary: {
|
|
7204
|
-
baseStyles: Css.bgWhite.bcGray300.bw1.ba.
|
|
7204
|
+
baseStyles: Css.bgWhite.bcGray300.bw1.ba.blue600.$,
|
|
7205
7205
|
hoverStyles: Css.bgGray100.if(contrast).bgGray300.$,
|
|
7206
7206
|
pressedStyles: Css.bgGray200.if(contrast).bgGray100.$,
|
|
7207
|
-
disabledStyles: Css.bgWhite.
|
|
7207
|
+
disabledStyles: Css.bgWhite.blue300.$,
|
|
7208
7208
|
focusStyles: Css.bshFocus.if(contrast).boxShadow(`0 0 0 2px ${"rgba(255,255,255,1)" /* White */}`).$
|
|
7209
7209
|
},
|
|
7210
7210
|
tertiary: {
|
|
@@ -7221,6 +7221,13 @@ var variantStyles = (contrast) => ({
|
|
|
7221
7221
|
disabledStyles: Css.gray400.if(contrast).gray700.$,
|
|
7222
7222
|
focusStyles: Css.boxShadow(`0px 0px 0px 2px ${"rgba(255,255,255,1)" /* White */}, 0px 0px 0px 4px ${"rgba(239, 68, 68, 1)" /* Red500 */}`).if(contrast).boxShadow(`0px 0px 0px 2px ${"rgba(239, 68, 68, 1)" /* Red500 */}`).$
|
|
7223
7223
|
},
|
|
7224
|
+
tertiaryQuaternary: {
|
|
7225
|
+
baseStyles: Css.bgTransparent.gray900.if(contrast).gray400.$,
|
|
7226
|
+
hoverStyles: Css.bgGray100.if(contrast).bgGray700.white.$,
|
|
7227
|
+
pressedStyles: Css.gray900.if(contrast).bgWhite.gray900.$,
|
|
7228
|
+
disabledStyles: Css.gray400.if(contrast).gray700.$,
|
|
7229
|
+
focusStyles: Css.boxShadow(`0px 0px 0px 2px ${"rgba(255,255,255,1)" /* White */}, 0px 0px 0px 4px ${"rgba(36, 36, 36, 1)" /* Gray900 */}`).if(contrast).boxShadow(`0px 0px 0px 2px ${"rgba(175, 175, 175, 1)" /* Gray500 */}`).$
|
|
7230
|
+
},
|
|
7224
7231
|
danger: {
|
|
7225
7232
|
baseStyles: Css.bgRed600.white.$,
|
|
7226
7233
|
hoverStyles: Css.bgRed700.$,
|
|
@@ -7228,6 +7235,13 @@ var variantStyles = (contrast) => ({
|
|
|
7228
7235
|
disabledStyles: Css.bgRed200.if(contrast).bgRed900.gray600.$,
|
|
7229
7236
|
focusStyles: Css.bshDanger.if(contrast).boxShadow(`0 0 0 2px ${"rgba(255,255,255,1)" /* White */}`).$
|
|
7230
7237
|
},
|
|
7238
|
+
quaternary: {
|
|
7239
|
+
baseStyles: Css.bgGray900.white.$,
|
|
7240
|
+
hoverStyles: Css.bgGray700.$,
|
|
7241
|
+
pressedStyles: Css.bgGray800.$,
|
|
7242
|
+
disabledStyles: Css.bgGray200.if(contrast).bgGray900.gray600.$,
|
|
7243
|
+
focusStyles: Css.bshDanger.if(contrast).boxShadow(`0 0 0 2px ${"rgba(255,255,255,1)" /* White */}`).$
|
|
7244
|
+
},
|
|
7231
7245
|
caution: {
|
|
7232
7246
|
baseStyles: Css.bgYellow200.gray900.$,
|
|
7233
7247
|
hoverStyles: Css.bgYellow300.$,
|
|
@@ -7244,11 +7258,11 @@ var variantStyles = (contrast) => ({
|
|
|
7244
7258
|
},
|
|
7245
7259
|
// Todo: handle contrast variant
|
|
7246
7260
|
textSecondary: {
|
|
7247
|
-
baseStyles: Css.
|
|
7261
|
+
baseStyles: Css.blue600.add("fontSize", "inherit").$,
|
|
7248
7262
|
hoverStyles: Css.bgGray100.$,
|
|
7249
|
-
pressedStyles: Css.
|
|
7250
|
-
disabledStyles: Css.bgWhite.
|
|
7251
|
-
focusStyles: Css.
|
|
7263
|
+
pressedStyles: Css.blue600.$,
|
|
7264
|
+
disabledStyles: Css.bgWhite.blue300.$,
|
|
7265
|
+
focusStyles: Css.blue600.$
|
|
7252
7266
|
}
|
|
7253
7267
|
});
|
|
7254
7268
|
var sizeStyles = {
|