@box/blueprint-web 12.19.0 → 12.20.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/lib-esm/index.css
CHANGED
|
@@ -6906,12 +6906,50 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
6906
6906
|
opacity:60%;
|
|
6907
6907
|
}
|
|
6908
6908
|
|
|
6909
|
-
.bp_text_button_module_textButton--
|
|
6909
|
+
.bp_text_button_module_textButton--e9554[data-modern=false]{
|
|
6910
|
+
--text-button-text-color:var(--text-cta-link);
|
|
6911
|
+
--text-button-radius:calc(var(--radius-1)/2);
|
|
6912
|
+
--text-button-padding:0;
|
|
6913
|
+
--text-button-scale-loader-width:var(--size-05);
|
|
6914
|
+
--text-button-scale-loader-height:.625em;
|
|
6915
|
+
--text-button-scale-loader-border-radius:var(--radius-2);
|
|
6916
|
+
--text-button-text-color-hover:var(--text-cta-link-hover);
|
|
6917
|
+
--text-button-focus-box-shadow:0 0 0 var(--border-2) var(--outline-focus-on-light);
|
|
6918
|
+
--text-button-text-color-active:var(--text-cta-link-pressed);
|
|
6919
|
+
}
|
|
6920
|
+
.bp_text_button_module_textButton--e9554[data-modern=false].bp_text_button_module_isFontInherited--e9554{
|
|
6921
|
+
--text-button-radius-font-inherited:0.125em;
|
|
6922
|
+
--text-button-outline:var(--outline-focus-on-light);
|
|
6923
|
+
}
|
|
6924
|
+
.bp_text_button_module_textButton--e9554[data-modern=false].bp_text_button_module_isIconButton--e9554{
|
|
6925
|
+
--text-button-gap:var(--space-1);
|
|
6926
|
+
}
|
|
6927
|
+
|
|
6928
|
+
.bp_text_button_module_textButton--e9554[data-modern=true]{
|
|
6929
|
+
--text-button-text-color:var(--bp-text-cta-link);
|
|
6930
|
+
--text-button-radius:var(--bp-radius-04);
|
|
6931
|
+
--text-button-padding:0 var(--bp-space-010);
|
|
6932
|
+
--text-button-scale-loader-width:var(--bp-size-005);
|
|
6933
|
+
--text-button-scale-loader-height:.625em;
|
|
6934
|
+
--text-button-scale-loader-border-radius:var(--bp-radius-03);
|
|
6935
|
+
--text-button-text-color-hover:var(--bp-text-cta-link-hover);
|
|
6936
|
+
--text-button-focus-box-shadow:0 0 0 var(--bp-border-02) var(--bp-outline-focus-on-light);
|
|
6937
|
+
--text-button-text-color-active:var(--bp-text-cta-link-pressed);
|
|
6938
|
+
}
|
|
6939
|
+
.bp_text_button_module_textButton--e9554[data-modern=true].bp_text_button_module_isFontInherited--e9554{
|
|
6940
|
+
--text-button-radius-font-inherited:0.375em;
|
|
6941
|
+
--text-button-outline:var(--bp-outline-focus-on-light);
|
|
6942
|
+
}
|
|
6943
|
+
.bp_text_button_module_textButton--e9554[data-modern=true].bp_text_button_module_isIconButton--e9554{
|
|
6944
|
+
--text-button-gap:var(--bp-space-010);
|
|
6945
|
+
}
|
|
6946
|
+
|
|
6947
|
+
.bp_text_button_module_textButton--e9554{
|
|
6910
6948
|
align-items:center;
|
|
6911
6949
|
background:#0000;
|
|
6912
6950
|
border:none;
|
|
6913
|
-
border-radius:
|
|
6914
|
-
color:var(--text-
|
|
6951
|
+
border-radius:var(--text-button-radius);
|
|
6952
|
+
color:var(--text-button-text-color);
|
|
6915
6953
|
cursor:pointer;
|
|
6916
6954
|
display:inline-flex;
|
|
6917
6955
|
font-family:var(--body-default-bold-font-family);
|
|
@@ -6920,54 +6958,54 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
6920
6958
|
letter-spacing:var(--body-default-bold-letter-spacing);
|
|
6921
6959
|
line-height:var(--body-default-bold-line-height);
|
|
6922
6960
|
outline:0;
|
|
6923
|
-
padding:
|
|
6961
|
+
padding:var(--text-button-padding);
|
|
6924
6962
|
-webkit-text-decoration:var(--body-default-bold-text-decoration);
|
|
6925
6963
|
text-decoration:var(--body-default-bold-text-decoration);
|
|
6926
6964
|
text-transform:var(--body-default-bold-text-case);
|
|
6927
6965
|
-webkit-user-select:text;
|
|
6928
6966
|
user-select:text;
|
|
6929
6967
|
}
|
|
6930
|
-
.bp_text_button_module_textButton--
|
|
6931
|
-
border-radius
|
|
6968
|
+
.bp_text_button_module_textButton--e9554.bp_text_button_module_isFontInherited--e9554{
|
|
6969
|
+
border-radius:var(--text-button-radius-font-inherited);
|
|
6932
6970
|
font:inherit;
|
|
6933
6971
|
}
|
|
6934
|
-
.bp_text_button_module_textButton--
|
|
6972
|
+
.bp_text_button_module_textButton--e9554.bp_text_button_module_isFontInherited--e9554.bp_text_button_module_isIconButton--e9554{
|
|
6935
6973
|
gap:.25em;
|
|
6936
6974
|
}
|
|
6937
|
-
.bp_text_button_module_textButton--
|
|
6938
|
-
box-shadow:0 0 0 .125em var(--
|
|
6975
|
+
.bp_text_button_module_textButton--e9554.bp_text_button_module_isFontInherited--e9554:not(:disabled)[data-focus-visible]{
|
|
6976
|
+
box-shadow:0 0 0 .125em var(--text-button-outline);
|
|
6939
6977
|
}
|
|
6940
|
-
.bp_text_button_module_textButton--
|
|
6941
|
-
border-radius
|
|
6942
|
-
height
|
|
6943
|
-
width
|
|
6978
|
+
.bp_text_button_module_textButton--e9554 .bp_text_button_module_scaleLoader--e9554 div{
|
|
6979
|
+
border-radius:var(--text-button-scale-loader-border-radius);
|
|
6980
|
+
height:var(--text-button-scale-loader-height);
|
|
6981
|
+
width:var(--text-button-scale-loader-width);
|
|
6944
6982
|
}
|
|
6945
|
-
.bp_text_button_module_textButton--
|
|
6983
|
+
.bp_text_button_module_textButton--e9554 .bp_text_button_module_icon--e9554{
|
|
6946
6984
|
align-items:center;
|
|
6947
6985
|
display:flex;
|
|
6948
6986
|
}
|
|
6949
|
-
.bp_text_button_module_textButton--
|
|
6987
|
+
.bp_text_button_module_textButton--e9554 .bp_text_button_module_hideTextContent--e9554{
|
|
6950
6988
|
visibility:hidden;
|
|
6951
6989
|
}
|
|
6952
|
-
.bp_text_button_module_textButton--
|
|
6953
|
-
gap:var(--
|
|
6990
|
+
.bp_text_button_module_textButton--e9554.bp_text_button_module_isIconButton--e9554{
|
|
6991
|
+
gap:var(--text-button-gap);
|
|
6954
6992
|
}
|
|
6955
|
-
.bp_text_button_module_textButton--
|
|
6993
|
+
.bp_text_button_module_textButton--e9554.bp_text_button_module_visuallyHidden--e9554{
|
|
6956
6994
|
color:#0000;
|
|
6957
6995
|
pointer-events:none;
|
|
6958
6996
|
position:relative;
|
|
6959
6997
|
}
|
|
6960
|
-
.bp_text_button_module_textButton--
|
|
6998
|
+
.bp_text_button_module_textButton--e9554:disabled{
|
|
6961
6999
|
opacity:.3;
|
|
6962
7000
|
}
|
|
6963
|
-
.bp_text_button_module_textButton--
|
|
6964
|
-
color:var(--text-
|
|
7001
|
+
.bp_text_button_module_textButton--e9554:not(:disabled):hover,.bp_text_button_module_textButton--e9554:not(:disabled)[data-focus-visible]{
|
|
7002
|
+
color:var(--text-button-text-color-hover);
|
|
6965
7003
|
}
|
|
6966
|
-
.bp_text_button_module_textButton--
|
|
6967
|
-
box-shadow:
|
|
7004
|
+
.bp_text_button_module_textButton--e9554:not(:disabled)[data-focus-visible]{
|
|
7005
|
+
box-shadow:var(--text-button-focus-box-shadow);
|
|
6968
7006
|
}
|
|
6969
|
-
.bp_text_button_module_textButton--
|
|
6970
|
-
color:var(--text-
|
|
7007
|
+
.bp_text_button_module_textButton--e9554:not(:disabled):active{
|
|
7008
|
+
color:var(--text-button-text-color-active);
|
|
6971
7009
|
}
|
|
6972
7010
|
|
|
6973
7011
|
.bp_text_input_module_textInput--ea95d.bp_text_input_module_textInput--ea95d.bp_text_input_module_textInput--ea95d input:has(+ .bp_text_input_module_iconEnd--ea95d){
|
|
@@ -2,6 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Button } from '@ariakit/react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { forwardRef, createElement } from 'react';
|
|
5
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
5
6
|
import { LoadingIndicator } from '../loading-indicator/loading-indicator.js';
|
|
6
7
|
import { getButtonOptions } from '../utils/getButtonOptions.js';
|
|
7
8
|
import styles from './text-button.module.js';
|
|
@@ -16,6 +17,9 @@ const TextButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
16
17
|
className,
|
|
17
18
|
...rest
|
|
18
19
|
} = getButtonOptions(props);
|
|
20
|
+
const {
|
|
21
|
+
enableModernizedComponents
|
|
22
|
+
} = useBlueprintModernization();
|
|
19
23
|
const iconsSize = `0.875${inheritFont ? 'em' : 'rem'}`;
|
|
20
24
|
return jsxs(Button, {
|
|
21
25
|
...rest,
|
|
@@ -25,6 +29,7 @@ const TextButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
25
29
|
[styles.isIconButton]: Boolean(icon),
|
|
26
30
|
[styles.isFontInherited]: inheritFont
|
|
27
31
|
}, className),
|
|
32
|
+
"data-modern": enableModernizedComponents,
|
|
28
33
|
children: [jsx("span", {
|
|
29
34
|
className: clsx({
|
|
30
35
|
[styles.hideTextContent]: loading
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"textButton":"bp_text_button_module_textButton--
|
|
2
|
+
var styles = {"textButton":"bp_text_button_module_textButton--e9554","isFontInherited":"bp_text_button_module_isFontInherited--e9554","isIconButton":"bp_text_button_module_isIconButton--e9554","scaleLoader":"bp_text_button_module_scaleLoader--e9554","icon":"bp_text_button_module_icon--e9554","hideTextContent":"bp_text_button_module_hideTextContent--e9554","visuallyHidden":"bp_text_button_module_visuallyHidden--e9554"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|