react-better-html 1.1.241 → 1.1.242
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.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +25 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1997,7 +1997,11 @@ var ButtonElement = styled6.button.withConfig({
|
|
|
1997
1997
|
}
|
|
1998
1998
|
|
|
1999
1999
|
&.secondary:hover {
|
|
2000
|
-
|
|
2000
|
+
${props.withNoBorder ? css`
|
|
2001
|
+
filter: ${props.colorTheme === "dark" ? "brightness(1.2)" : "brightness(0.9)"};
|
|
2002
|
+
` : css`
|
|
2003
|
+
border-color: ${props.theme.colors.primary};
|
|
2004
|
+
`}
|
|
2001
2005
|
}
|
|
2002
2006
|
` : ""}
|
|
2003
2007
|
|
|
@@ -2095,6 +2099,7 @@ var ButtonComponent = function Button(buttonProps) {
|
|
|
2095
2099
|
isSmall,
|
|
2096
2100
|
withText: text !== void 0,
|
|
2097
2101
|
isLoading: isLoadingElement,
|
|
2102
|
+
withNoBorder: theme2.styles.borderWidth === 0,
|
|
2098
2103
|
disabled,
|
|
2099
2104
|
to: href,
|
|
2100
2105
|
href,
|
|
@@ -3583,6 +3588,7 @@ var DropdownComponent = forwardRef10(function Dropdown(dropdownProps, ref) {
|
|
|
3583
3588
|
const {
|
|
3584
3589
|
label,
|
|
3585
3590
|
labelFontFamily,
|
|
3591
|
+
labelFontSize,
|
|
3586
3592
|
labelLetterSpacing,
|
|
3587
3593
|
labelTextTransform,
|
|
3588
3594
|
labelColor,
|
|
@@ -3826,6 +3832,7 @@ var DropdownComponent = forwardRef10(function Dropdown(dropdownProps, ref) {
|
|
|
3826
3832
|
{
|
|
3827
3833
|
label,
|
|
3828
3834
|
labelFontFamily,
|
|
3835
|
+
labelFontSize,
|
|
3829
3836
|
labelLetterSpacing,
|
|
3830
3837
|
labelTextTransform,
|
|
3831
3838
|
labelColor,
|
|
@@ -4401,6 +4408,7 @@ var InputFieldComponent = forwardRef11(function InputField(inputFieldProps, ref)
|
|
|
4401
4408
|
const {
|
|
4402
4409
|
label,
|
|
4403
4410
|
labelFontFamily,
|
|
4411
|
+
labelFontSize,
|
|
4404
4412
|
labelLetterSpacing,
|
|
4405
4413
|
labelTextTransform,
|
|
4406
4414
|
labelColor,
|
|
@@ -4466,6 +4474,7 @@ var InputFieldComponent = forwardRef11(function InputField(inputFieldProps, ref)
|
|
|
4466
4474
|
{
|
|
4467
4475
|
text: label,
|
|
4468
4476
|
fontFamily: labelFontFamily,
|
|
4477
|
+
fontSize: labelFontSize,
|
|
4469
4478
|
letterSpacing: labelLetterSpacing,
|
|
4470
4479
|
textTransform: labelTextTransform,
|
|
4471
4480
|
color: labelColor,
|
|
@@ -4580,6 +4589,7 @@ InputFieldComponent.multiline = forwardRef11(function Multiline(inputFieldProps,
|
|
|
4580
4589
|
const {
|
|
4581
4590
|
label,
|
|
4582
4591
|
labelFontFamily,
|
|
4592
|
+
labelFontSize,
|
|
4583
4593
|
labelLetterSpacing,
|
|
4584
4594
|
labelTextTransform,
|
|
4585
4595
|
labelColor,
|
|
@@ -4618,6 +4628,7 @@ InputFieldComponent.multiline = forwardRef11(function Multiline(inputFieldProps,
|
|
|
4618
4628
|
{
|
|
4619
4629
|
text: label,
|
|
4620
4630
|
fontFamily: labelFontFamily,
|
|
4631
|
+
fontSize: labelFontSize,
|
|
4621
4632
|
letterSpacing: labelLetterSpacing,
|
|
4622
4633
|
textTransform: labelTextTransform,
|
|
4623
4634
|
color: labelColor,
|
|
@@ -4785,6 +4796,7 @@ InputFieldComponent.phoneNumber = forwardRef11(function PhoneNumber(inputFieldPr
|
|
|
4785
4796
|
const {
|
|
4786
4797
|
label,
|
|
4787
4798
|
labelFontFamily,
|
|
4799
|
+
labelFontSize,
|
|
4788
4800
|
labelLetterSpacing,
|
|
4789
4801
|
labelTextTransform,
|
|
4790
4802
|
labelColor,
|
|
@@ -4857,6 +4869,7 @@ InputFieldComponent.phoneNumber = forwardRef11(function PhoneNumber(inputFieldPr
|
|
|
4857
4869
|
{
|
|
4858
4870
|
text: readyLabel,
|
|
4859
4871
|
fontFamily: betterHtmlContextInternal.components.inputField?.style?.phoneNumber?.labelFontFamily ?? labelFontFamily,
|
|
4872
|
+
fontSize: betterHtmlContextInternal.components.inputField?.style?.phoneNumber?.labelFontSize ?? labelFontSize,
|
|
4860
4873
|
letterSpacing: betterHtmlContextInternal.components.inputField?.style?.phoneNumber?.labelLetterSpacing ?? labelLetterSpacing,
|
|
4861
4874
|
textTransform: betterHtmlContextInternal.components.inputField?.style?.phoneNumber?.labelTextTransform ?? labelTextTransform,
|
|
4862
4875
|
color: betterHtmlContextInternal.components.inputField?.style?.phoneNumber?.labelColor ?? labelColor,
|
|
@@ -5406,12 +5419,12 @@ var componentSize = 26;
|
|
|
5406
5419
|
var switchComponentBallGap = 3;
|
|
5407
5420
|
var switchComponentMouseDownDifference = 4;
|
|
5408
5421
|
var InputElement2 = styled11.input.withConfig({
|
|
5409
|
-
shouldForwardProp: (prop) => !["theme", "style", "hoverStyle"].includes(prop)
|
|
5422
|
+
shouldForwardProp: (prop) => !["theme", "style", "hoverStyle", "size"].includes(prop)
|
|
5410
5423
|
})`
|
|
5411
5424
|
position: relative;
|
|
5412
5425
|
appearance: none;
|
|
5413
|
-
width: ${componentSize}px;
|
|
5414
|
-
height: ${componentSize}px;
|
|
5426
|
+
width: ${(props) => props.size ?? componentSize}px;
|
|
5427
|
+
height: ${(props) => props.size ?? componentSize}px;
|
|
5415
5428
|
background-color: ${(props) => props.theme.colors.backgroundContent};
|
|
5416
5429
|
border: ${(props) => props.theme.styles.borderWidth}px solid ${(props) => props.theme.colors.border};
|
|
5417
5430
|
border-radius: ${(props) => props.theme.styles.borderRadius / 2}px;
|
|
@@ -5497,17 +5510,20 @@ var SwitchElement = styled11.div.withConfig({
|
|
|
5497
5510
|
var ToggleInputComponent = forwardRef12(function ToggleInput({
|
|
5498
5511
|
label,
|
|
5499
5512
|
labelFontFamily,
|
|
5513
|
+
labelFontSize,
|
|
5500
5514
|
labelLetterSpacing,
|
|
5501
5515
|
labelTextTransform,
|
|
5502
5516
|
labelColor,
|
|
5503
5517
|
labelGap,
|
|
5504
5518
|
text,
|
|
5505
5519
|
textFontFamily,
|
|
5520
|
+
textFontSize,
|
|
5506
5521
|
textLetterSpacing,
|
|
5507
5522
|
textTextTransform,
|
|
5508
5523
|
textAdvanced,
|
|
5509
5524
|
errorText,
|
|
5510
5525
|
infoText,
|
|
5526
|
+
size,
|
|
5511
5527
|
value,
|
|
5512
5528
|
onChange,
|
|
5513
5529
|
checked: controlledChecked,
|
|
@@ -5543,6 +5559,7 @@ var ToggleInputComponent = forwardRef12(function ToggleInput({
|
|
|
5543
5559
|
{
|
|
5544
5560
|
text: label,
|
|
5545
5561
|
fontFamily: labelFontFamily,
|
|
5562
|
+
fontSize: labelFontSize,
|
|
5546
5563
|
letterSpacing: labelLetterSpacing,
|
|
5547
5564
|
textTransform: labelTextTransform,
|
|
5548
5565
|
color: labelColor,
|
|
@@ -5557,6 +5574,7 @@ var ToggleInputComponent = forwardRef12(function ToggleInput({
|
|
|
5557
5574
|
InputElement2,
|
|
5558
5575
|
{
|
|
5559
5576
|
theme: theme2,
|
|
5577
|
+
size,
|
|
5560
5578
|
type: props.type ?? "checkbox",
|
|
5561
5579
|
checked,
|
|
5562
5580
|
onChange: onChangeElement,
|
|
@@ -5602,6 +5620,7 @@ var ToggleInputComponent = forwardRef12(function ToggleInput({
|
|
|
5602
5620
|
Text_default,
|
|
5603
5621
|
{
|
|
5604
5622
|
fontFamily: textFontFamily,
|
|
5623
|
+
fontSize: textFontSize,
|
|
5605
5624
|
letterSpacing: textLetterSpacing,
|
|
5606
5625
|
textTransform: textTextTransform,
|
|
5607
5626
|
color,
|
|
@@ -5658,6 +5677,7 @@ var ToggleInput_default = {
|
|
|
5658
5677
|
const {
|
|
5659
5678
|
label,
|
|
5660
5679
|
labelFontFamily,
|
|
5680
|
+
labelFontSize,
|
|
5661
5681
|
labelLetterSpacing,
|
|
5662
5682
|
labelTextTransform,
|
|
5663
5683
|
labelColor,
|
|
@@ -5695,6 +5715,7 @@ var ToggleInput_default = {
|
|
|
5695
5715
|
{
|
|
5696
5716
|
text: label,
|
|
5697
5717
|
fontFamily: labelFontFamily,
|
|
5718
|
+
fontSize: labelFontSize,
|
|
5698
5719
|
letterSpacing: labelLetterSpacing,
|
|
5699
5720
|
textTransform: labelTextTransform,
|
|
5700
5721
|
color: labelColor,
|