@warp-ds/elements 2.3.0-next.10 → 2.3.0-next.12
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/custom-elements.json +205 -11
- package/dist/index.d.ts +41 -11
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/select/index.d.ts +25 -5
- package/dist/packages/select/index.js +14 -13
- package/dist/packages/select/index.js.map +2 -2
- package/dist/packages/select/select.react.stories.d.ts +1 -1
- package/dist/packages/select/select.stories.d.ts +1 -1
- package/dist/packages/select/select.stories.js +3 -4
- package/dist/packages/slider/slider-thumb.d.ts +11 -7
- package/dist/packages/slider/slider-thumb.js +57 -33
- package/dist/packages/slider/slider-thumb.js.map +3 -3
- package/dist/packages/slider/slider.d.ts +5 -1
- package/dist/packages/slider/slider.js +37 -13
- package/dist/packages/slider/slider.js.map +3 -3
- package/dist/packages/slider/slider.stories.js +134 -39
- package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
- package/dist/packages/textfield/index.js +1 -1
- package/dist/packages/textfield/index.js.map +2 -2
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/web-types.json +71 -12
- package/package.json +1 -1
|
@@ -1884,17 +1884,38 @@
|
|
|
1884
1884
|
"type": {
|
|
1885
1885
|
"text": "boolean"
|
|
1886
1886
|
},
|
|
1887
|
-
"description": "Whether the element should receive focus on render",
|
|
1887
|
+
"description": "Whether the element should receive focus on render.",
|
|
1888
|
+
"deprecated": "Use the native `autofocus` attribute instead.",
|
|
1888
1889
|
"attribute": "auto-focus",
|
|
1889
1890
|
"reflects": true
|
|
1890
1891
|
},
|
|
1892
|
+
{
|
|
1893
|
+
"kind": "field",
|
|
1894
|
+
"name": "autofocus",
|
|
1895
|
+
"type": {
|
|
1896
|
+
"text": "boolean"
|
|
1897
|
+
},
|
|
1898
|
+
"description": "Whether the element should receive focus on render",
|
|
1899
|
+
"attribute": "autofocus",
|
|
1900
|
+
"reflects": true
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
"kind": "field",
|
|
1904
|
+
"name": "helpText",
|
|
1905
|
+
"type": {
|
|
1906
|
+
"text": "string"
|
|
1907
|
+
},
|
|
1908
|
+
"description": "The content displayed as the help text. Paired with `invalid` to show the text as a validation error.",
|
|
1909
|
+
"attribute": "help-text",
|
|
1910
|
+
"reflects": true
|
|
1911
|
+
},
|
|
1891
1912
|
{
|
|
1892
1913
|
"kind": "field",
|
|
1893
1914
|
"name": "invalid",
|
|
1894
1915
|
"type": {
|
|
1895
1916
|
"text": "boolean"
|
|
1896
1917
|
},
|
|
1897
|
-
"description": "Renders the field in an invalid state.
|
|
1918
|
+
"description": "Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.",
|
|
1898
1919
|
"attribute": "invalid",
|
|
1899
1920
|
"reflects": true
|
|
1900
1921
|
},
|
|
@@ -1904,7 +1925,8 @@
|
|
|
1904
1925
|
"type": {
|
|
1905
1926
|
"text": "boolean"
|
|
1906
1927
|
},
|
|
1907
|
-
"description": "Whether to always show a hint",
|
|
1928
|
+
"description": "Whether to always show a hint.",
|
|
1929
|
+
"deprecated": "Use `help-text` instead and only set it if you want to display the help text.",
|
|
1908
1930
|
"attribute": "always",
|
|
1909
1931
|
"reflects": true
|
|
1910
1932
|
},
|
|
@@ -1914,7 +1936,8 @@
|
|
|
1914
1936
|
"type": {
|
|
1915
1937
|
"text": "string"
|
|
1916
1938
|
},
|
|
1917
|
-
"description": "The content displayed as the help text",
|
|
1939
|
+
"description": "The content displayed as the help text.",
|
|
1940
|
+
"deprecated": "Use `help-text` instead.",
|
|
1918
1941
|
"attribute": "hint",
|
|
1919
1942
|
"reflects": true
|
|
1920
1943
|
},
|
|
@@ -1955,9 +1978,20 @@
|
|
|
1955
1978
|
"text": "boolean"
|
|
1956
1979
|
},
|
|
1957
1980
|
"description": "Renders the field in a readonly state.",
|
|
1981
|
+
"deprecated": "Use the native readonly attribute instead.",
|
|
1958
1982
|
"attribute": "read-only",
|
|
1959
1983
|
"reflects": true
|
|
1960
1984
|
},
|
|
1985
|
+
{
|
|
1986
|
+
"kind": "field",
|
|
1987
|
+
"name": "readonly",
|
|
1988
|
+
"type": {
|
|
1989
|
+
"text": "boolean"
|
|
1990
|
+
},
|
|
1991
|
+
"description": "Renders the field in a readonly state.",
|
|
1992
|
+
"attribute": "readonly",
|
|
1993
|
+
"reflects": true
|
|
1994
|
+
},
|
|
1961
1995
|
{
|
|
1962
1996
|
"kind": "field",
|
|
1963
1997
|
"name": "name",
|
|
@@ -2040,15 +2074,32 @@
|
|
|
2040
2074
|
"type": {
|
|
2041
2075
|
"text": "boolean"
|
|
2042
2076
|
},
|
|
2043
|
-
"description": "Whether the element should receive focus on render",
|
|
2077
|
+
"description": "Whether the element should receive focus on render.",
|
|
2078
|
+
"deprecated": "Use the native `autofocus` attribute instead.",
|
|
2044
2079
|
"fieldName": "autoFocus"
|
|
2045
2080
|
},
|
|
2081
|
+
{
|
|
2082
|
+
"name": "autofocus",
|
|
2083
|
+
"type": {
|
|
2084
|
+
"text": "boolean"
|
|
2085
|
+
},
|
|
2086
|
+
"description": "Whether the element should receive focus on render",
|
|
2087
|
+
"fieldName": "autofocus"
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
"name": "help-text",
|
|
2091
|
+
"type": {
|
|
2092
|
+
"text": "string"
|
|
2093
|
+
},
|
|
2094
|
+
"description": "The content displayed as the help text. Paired with `invalid` to show the text as a validation error.",
|
|
2095
|
+
"fieldName": "helpText"
|
|
2096
|
+
},
|
|
2046
2097
|
{
|
|
2047
2098
|
"name": "invalid",
|
|
2048
2099
|
"type": {
|
|
2049
2100
|
"text": "boolean"
|
|
2050
2101
|
},
|
|
2051
|
-
"description": "Renders the field in an invalid state.
|
|
2102
|
+
"description": "Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.",
|
|
2052
2103
|
"fieldName": "invalid"
|
|
2053
2104
|
},
|
|
2054
2105
|
{
|
|
@@ -2056,7 +2107,8 @@
|
|
|
2056
2107
|
"type": {
|
|
2057
2108
|
"text": "boolean"
|
|
2058
2109
|
},
|
|
2059
|
-
"description": "Whether to always show a hint",
|
|
2110
|
+
"description": "Whether to always show a hint.",
|
|
2111
|
+
"deprecated": "Use `help-text` instead and only set it if you want to display the help text.",
|
|
2060
2112
|
"fieldName": "always"
|
|
2061
2113
|
},
|
|
2062
2114
|
{
|
|
@@ -2064,7 +2116,8 @@
|
|
|
2064
2116
|
"type": {
|
|
2065
2117
|
"text": "string"
|
|
2066
2118
|
},
|
|
2067
|
-
"description": "The content displayed as the help text",
|
|
2119
|
+
"description": "The content displayed as the help text.",
|
|
2120
|
+
"deprecated": "Use `help-text` instead.",
|
|
2068
2121
|
"fieldName": "hint"
|
|
2069
2122
|
},
|
|
2070
2123
|
{
|
|
@@ -2097,8 +2150,17 @@
|
|
|
2097
2150
|
"text": "boolean"
|
|
2098
2151
|
},
|
|
2099
2152
|
"description": "Renders the field in a readonly state.",
|
|
2153
|
+
"deprecated": "Use the native readonly attribute instead.",
|
|
2100
2154
|
"fieldName": "readOnly"
|
|
2101
2155
|
},
|
|
2156
|
+
{
|
|
2157
|
+
"name": "readonly",
|
|
2158
|
+
"type": {
|
|
2159
|
+
"text": "boolean"
|
|
2160
|
+
},
|
|
2161
|
+
"description": "Renders the field in a readonly state.",
|
|
2162
|
+
"fieldName": "readonly"
|
|
2163
|
+
},
|
|
2102
2164
|
{
|
|
2103
2165
|
"name": "name",
|
|
2104
2166
|
"type": {
|
|
@@ -5460,6 +5522,24 @@
|
|
|
5460
5522
|
"attribute": "disabled",
|
|
5461
5523
|
"reflects": true
|
|
5462
5524
|
},
|
|
5525
|
+
{
|
|
5526
|
+
"kind": "field",
|
|
5527
|
+
"name": "invalid",
|
|
5528
|
+
"type": {
|
|
5529
|
+
"text": "boolean"
|
|
5530
|
+
},
|
|
5531
|
+
"attribute": "invalid",
|
|
5532
|
+
"reflects": true
|
|
5533
|
+
},
|
|
5534
|
+
{
|
|
5535
|
+
"kind": "field",
|
|
5536
|
+
"name": "allowValuesOutsideRange",
|
|
5537
|
+
"type": {
|
|
5538
|
+
"text": "boolean"
|
|
5539
|
+
},
|
|
5540
|
+
"default": "false",
|
|
5541
|
+
"description": "Set by `<w-slider>`"
|
|
5542
|
+
},
|
|
5463
5543
|
{
|
|
5464
5544
|
"kind": "field",
|
|
5465
5545
|
"name": "markers",
|
|
@@ -5512,7 +5592,7 @@
|
|
|
5512
5592
|
"kind": "field",
|
|
5513
5593
|
"name": "formatter",
|
|
5514
5594
|
"type": {
|
|
5515
|
-
"text": "(value: string) => string"
|
|
5595
|
+
"text": "(value: string, type: 'from' | 'to') => string"
|
|
5516
5596
|
},
|
|
5517
5597
|
"description": "JS hook to help you format the numeric value how you want."
|
|
5518
5598
|
},
|
|
@@ -5550,13 +5630,23 @@
|
|
|
5550
5630
|
}
|
|
5551
5631
|
}
|
|
5552
5632
|
},
|
|
5633
|
+
{
|
|
5634
|
+
"kind": "method",
|
|
5635
|
+
"name": "#syncRangeValue",
|
|
5636
|
+
"privacy": "private",
|
|
5637
|
+
"return": {
|
|
5638
|
+
"type": {
|
|
5639
|
+
"text": "void"
|
|
5640
|
+
}
|
|
5641
|
+
}
|
|
5642
|
+
},
|
|
5553
5643
|
{
|
|
5554
5644
|
"kind": "method",
|
|
5555
5645
|
"name": "#onInput",
|
|
5556
5646
|
"privacy": "private",
|
|
5557
5647
|
"return": {
|
|
5558
5648
|
"type": {
|
|
5559
|
-
"text": "boolean"
|
|
5649
|
+
"text": "Promise<boolean>"
|
|
5560
5650
|
}
|
|
5561
5651
|
},
|
|
5562
5652
|
"parameters": [
|
|
@@ -5567,6 +5657,29 @@
|
|
|
5567
5657
|
}
|
|
5568
5658
|
}
|
|
5569
5659
|
]
|
|
5660
|
+
},
|
|
5661
|
+
{
|
|
5662
|
+
"kind": "field",
|
|
5663
|
+
"name": "boundaryValue",
|
|
5664
|
+
"type": {
|
|
5665
|
+
"text": "string"
|
|
5666
|
+
},
|
|
5667
|
+
"readonly": true
|
|
5668
|
+
},
|
|
5669
|
+
{
|
|
5670
|
+
"kind": "field",
|
|
5671
|
+
"name": "textFieldDisplayValue",
|
|
5672
|
+
"description": "Value to display in the textfield (shows boundary when focused on empty value)",
|
|
5673
|
+
"readonly": true
|
|
5674
|
+
},
|
|
5675
|
+
{
|
|
5676
|
+
"kind": "field",
|
|
5677
|
+
"name": "tooltipDisplayValue",
|
|
5678
|
+
"type": {
|
|
5679
|
+
"text": "string | number"
|
|
5680
|
+
},
|
|
5681
|
+
"description": "Value to display in the tooltip",
|
|
5682
|
+
"readonly": true
|
|
5570
5683
|
}
|
|
5571
5684
|
],
|
|
5572
5685
|
"events": [
|
|
@@ -5619,6 +5732,13 @@
|
|
|
5619
5732
|
"text": "boolean"
|
|
5620
5733
|
},
|
|
5621
5734
|
"fieldName": "disabled"
|
|
5735
|
+
},
|
|
5736
|
+
{
|
|
5737
|
+
"name": "invalid",
|
|
5738
|
+
"type": {
|
|
5739
|
+
"text": "boolean"
|
|
5740
|
+
},
|
|
5741
|
+
"fieldName": "invalid"
|
|
5622
5742
|
}
|
|
5623
5743
|
],
|
|
5624
5744
|
"mixins": [
|
|
@@ -5716,6 +5836,25 @@
|
|
|
5716
5836
|
"attribute": "disabled",
|
|
5717
5837
|
"reflects": true
|
|
5718
5838
|
},
|
|
5839
|
+
{
|
|
5840
|
+
"kind": "field",
|
|
5841
|
+
"name": "allowValuesOutsideRange",
|
|
5842
|
+
"type": {
|
|
5843
|
+
"text": "boolean"
|
|
5844
|
+
},
|
|
5845
|
+
"default": "false",
|
|
5846
|
+
"attribute": "allow-values-outside-range"
|
|
5847
|
+
},
|
|
5848
|
+
{
|
|
5849
|
+
"kind": "field",
|
|
5850
|
+
"name": "helpText",
|
|
5851
|
+
"type": {
|
|
5852
|
+
"text": "string"
|
|
5853
|
+
},
|
|
5854
|
+
"default": "''",
|
|
5855
|
+
"attribute": "helpText",
|
|
5856
|
+
"reflects": true
|
|
5857
|
+
},
|
|
5719
5858
|
{
|
|
5720
5859
|
"kind": "field",
|
|
5721
5860
|
"name": "invalid",
|
|
@@ -5788,7 +5927,7 @@
|
|
|
5788
5927
|
"kind": "field",
|
|
5789
5928
|
"name": "formatter",
|
|
5790
5929
|
"type": {
|
|
5791
|
-
"text": "(value: string) => string"
|
|
5930
|
+
"text": "(value: string, type: 'to' | 'from') => string"
|
|
5792
5931
|
},
|
|
5793
5932
|
"description": "Function to format the to- and from labels and value in the slider thumb tooltip."
|
|
5794
5933
|
},
|
|
@@ -5802,6 +5941,16 @@
|
|
|
5802
5941
|
}
|
|
5803
5942
|
}
|
|
5804
5943
|
},
|
|
5944
|
+
{
|
|
5945
|
+
"kind": "field",
|
|
5946
|
+
"name": "edgeMin",
|
|
5947
|
+
"readonly": true
|
|
5948
|
+
},
|
|
5949
|
+
{
|
|
5950
|
+
"kind": "field",
|
|
5951
|
+
"name": "edgeMax",
|
|
5952
|
+
"readonly": true
|
|
5953
|
+
},
|
|
5805
5954
|
{
|
|
5806
5955
|
"kind": "method",
|
|
5807
5956
|
"name": "#onInput",
|
|
@@ -5815,6 +5964,11 @@
|
|
|
5815
5964
|
}
|
|
5816
5965
|
]
|
|
5817
5966
|
},
|
|
5967
|
+
{
|
|
5968
|
+
"kind": "method",
|
|
5969
|
+
"name": "#doValidation",
|
|
5970
|
+
"privacy": "private"
|
|
5971
|
+
},
|
|
5818
5972
|
{
|
|
5819
5973
|
"kind": "method",
|
|
5820
5974
|
"name": "#onSliderValidity",
|
|
@@ -5828,6 +5982,30 @@
|
|
|
5828
5982
|
}
|
|
5829
5983
|
]
|
|
5830
5984
|
},
|
|
5985
|
+
{
|
|
5986
|
+
"kind": "method",
|
|
5987
|
+
"name": "#getEdgeValue",
|
|
5988
|
+
"privacy": "private",
|
|
5989
|
+
"return": {
|
|
5990
|
+
"type": {
|
|
5991
|
+
"text": "string"
|
|
5992
|
+
}
|
|
5993
|
+
},
|
|
5994
|
+
"parameters": [
|
|
5995
|
+
{
|
|
5996
|
+
"name": "boundary",
|
|
5997
|
+
"type": {
|
|
5998
|
+
"text": "string"
|
|
5999
|
+
}
|
|
6000
|
+
},
|
|
6001
|
+
{
|
|
6002
|
+
"name": "input",
|
|
6003
|
+
"type": {
|
|
6004
|
+
"text": "WarpSliderThumb"
|
|
6005
|
+
}
|
|
6006
|
+
}
|
|
6007
|
+
]
|
|
6008
|
+
},
|
|
5831
6009
|
{
|
|
5832
6010
|
"kind": "method",
|
|
5833
6011
|
"name": "#updateActiveTrack",
|
|
@@ -5860,6 +6038,22 @@
|
|
|
5860
6038
|
"default": "false",
|
|
5861
6039
|
"fieldName": "disabled"
|
|
5862
6040
|
},
|
|
6041
|
+
{
|
|
6042
|
+
"name": "allow-values-outside-range",
|
|
6043
|
+
"type": {
|
|
6044
|
+
"text": "boolean"
|
|
6045
|
+
},
|
|
6046
|
+
"default": "false",
|
|
6047
|
+
"fieldName": "allowValuesOutsideRange"
|
|
6048
|
+
},
|
|
6049
|
+
{
|
|
6050
|
+
"name": "helpText",
|
|
6051
|
+
"type": {
|
|
6052
|
+
"text": "string"
|
|
6053
|
+
},
|
|
6054
|
+
"default": "''",
|
|
6055
|
+
"fieldName": "helpText"
|
|
6056
|
+
},
|
|
5863
6057
|
{
|
|
5864
6058
|
"name": "invalid",
|
|
5865
6059
|
"type": {
|
package/dist/index.d.ts
CHANGED
|
@@ -379,15 +379,21 @@ export type WarpPillProps = {
|
|
|
379
379
|
|
|
380
380
|
|
|
381
381
|
export type WarpSelectProps = {
|
|
382
|
-
/** Whether the element should receive focus on render */
|
|
382
|
+
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
383
383
|
"auto-focus"?: WarpSelect['autoFocus'];
|
|
384
|
-
/** Whether the element should receive focus on render */
|
|
384
|
+
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
385
385
|
"autoFocus"?: WarpSelect['autoFocus'];
|
|
386
|
-
/**
|
|
386
|
+
/** Whether the element should receive focus on render */
|
|
387
|
+
"autofocus"?: WarpSelect['autofocus'];
|
|
388
|
+
/** The content displayed as the help text. Paired with `invalid` to show the text as a validation error. */
|
|
389
|
+
"help-text"?: WarpSelect['helpText'];
|
|
390
|
+
/** The content displayed as the help text. Paired with `invalid` to show the text as a validation error. */
|
|
391
|
+
"helpText"?: WarpSelect['helpText'];
|
|
392
|
+
/** Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error. */
|
|
387
393
|
"invalid"?: WarpSelect['invalid'];
|
|
388
|
-
/** Whether to always show a hint */
|
|
394
|
+
/** @deprecated Use `help-text` instead and only set it if you want to display the help text. - Whether to always show a hint. */
|
|
389
395
|
"always"?: WarpSelect['always'];
|
|
390
|
-
/** The content displayed as the help text */
|
|
396
|
+
/** @deprecated Use `help-text` instead. - The content displayed as the help text. */
|
|
391
397
|
"hint"?: WarpSelect['hint'];
|
|
392
398
|
/** The content to disply as the label */
|
|
393
399
|
"label"?: WarpSelect['label'];
|
|
@@ -395,10 +401,12 @@ export type WarpSelectProps = {
|
|
|
395
401
|
"optional"?: WarpSelect['optional'];
|
|
396
402
|
/** Renders the field in a disabled state. */
|
|
397
403
|
"disabled"?: WarpSelect['disabled'];
|
|
398
|
-
/** Renders the field in a readonly state. */
|
|
404
|
+
/** @deprecated Use the native readonly attribute instead. - Renders the field in a readonly state. */
|
|
399
405
|
"read-only"?: WarpSelect['readOnly'];
|
|
400
|
-
/** Renders the field in a readonly state. */
|
|
406
|
+
/** @deprecated Use the native readonly attribute instead. - Renders the field in a readonly state. */
|
|
401
407
|
"readOnly"?: WarpSelect['readOnly'];
|
|
408
|
+
/** Renders the field in a readonly state. */
|
|
409
|
+
"readonly"?: WarpSelect['readonly'];
|
|
402
410
|
/** */
|
|
403
411
|
"name"?: WarpSelect['name'];
|
|
404
412
|
/** */
|
|
@@ -705,6 +713,10 @@ export type WarpSliderThumbProps = {
|
|
|
705
713
|
"value"?: WarpSliderThumb['value'];
|
|
706
714
|
/** */
|
|
707
715
|
"disabled"?: WarpSliderThumb['disabled'];
|
|
716
|
+
/** */
|
|
717
|
+
"invalid"?: WarpSliderThumb['invalid'];
|
|
718
|
+
/** Set by `<w-slider>` */
|
|
719
|
+
"allowValuesOutsideRange"?: WarpSliderThumb['allowValuesOutsideRange'];
|
|
708
720
|
/** Set by `<w-slider>` */
|
|
709
721
|
"markers"?: WarpSliderThumb['markers'];
|
|
710
722
|
/** Set by `<w-slider>` */
|
|
@@ -737,6 +749,12 @@ If you need to display HTML, use the `label` slot instead. */
|
|
|
737
749
|
/** */
|
|
738
750
|
"disabled"?: WarpSlider['disabled'];
|
|
739
751
|
/** */
|
|
752
|
+
"allow-values-outside-range"?: WarpSlider['allowValuesOutsideRange'];
|
|
753
|
+
/** */
|
|
754
|
+
"allowValuesOutsideRange"?: WarpSlider['allowValuesOutsideRange'];
|
|
755
|
+
/** */
|
|
756
|
+
"helpText"?: WarpSlider['helpText'];
|
|
757
|
+
/** */
|
|
740
758
|
"invalid"?: WarpSlider['invalid'];
|
|
741
759
|
/** Ensures a child slider thumb has a value before allowing the containing form to submit. */
|
|
742
760
|
"required"?: WarpSlider['required'];
|
|
@@ -1131,14 +1149,17 @@ export type WarpTextareaProps = {
|
|
|
1131
1149
|
*
|
|
1132
1150
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1133
1151
|
*
|
|
1134
|
-
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render
|
|
1135
|
-
* - `
|
|
1136
|
-
* - `
|
|
1137
|
-
* - `
|
|
1152
|
+
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render.
|
|
1153
|
+
* - `autofocus`: Whether the element should receive focus on render
|
|
1154
|
+
* - `help-text`/`helpText`: The content displayed as the help text. Paired with `invalid` to show the text as a validation error.
|
|
1155
|
+
* - `invalid`: Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.
|
|
1156
|
+
* - `always`: Whether to always show a hint.
|
|
1157
|
+
* - `hint`: The content displayed as the help text.
|
|
1138
1158
|
* - `label`: The content to disply as the label
|
|
1139
1159
|
* - `optional`: Whether to show optional text
|
|
1140
1160
|
* - `disabled`: Renders the field in a disabled state.
|
|
1141
1161
|
* - `read-only`/`readOnly`: Renders the field in a readonly state.
|
|
1162
|
+
* - `readonly`: Renders the field in a readonly state.
|
|
1142
1163
|
* - `name`: undefined
|
|
1143
1164
|
* - `value`: undefined
|
|
1144
1165
|
*
|
|
@@ -1452,6 +1473,8 @@ export type WarpTextareaProps = {
|
|
|
1452
1473
|
* - `name`: undefined
|
|
1453
1474
|
* - `value`: undefined
|
|
1454
1475
|
* - `disabled`: undefined
|
|
1476
|
+
* - `invalid`: undefined
|
|
1477
|
+
* - `allowValuesOutsideRange`: Set by `<w-slider>` (property only)
|
|
1455
1478
|
* - `markers`: Set by `<w-slider>` (property only)
|
|
1456
1479
|
* - `required`: Set by `<w-slider>` (property only)
|
|
1457
1480
|
* - `step`: Set by `<w-slider>` (property only)
|
|
@@ -1461,6 +1484,9 @@ export type WarpTextareaProps = {
|
|
|
1461
1484
|
* - `formatter`: JS hook to help you format the numeric value how you want. (property only)
|
|
1462
1485
|
* - `range`: undefined (property only)
|
|
1463
1486
|
* - `textfield`: undefined (property only)
|
|
1487
|
+
* - `boundaryValue`: undefined (property only) (readonly)
|
|
1488
|
+
* - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
|
|
1489
|
+
* - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
|
|
1464
1490
|
*
|
|
1465
1491
|
* ## Events
|
|
1466
1492
|
*
|
|
@@ -1484,6 +1510,8 @@ export type WarpTextareaProps = {
|
|
|
1484
1510
|
*
|
|
1485
1511
|
* If you need to display HTML, use the `label` slot instead.
|
|
1486
1512
|
* - `disabled`: undefined
|
|
1513
|
+
* - `allow-values-outside-range`/`allowValuesOutsideRange`: undefined
|
|
1514
|
+
* - `helpText`: undefined
|
|
1487
1515
|
* - `invalid`: undefined
|
|
1488
1516
|
* - `required`: Ensures a child slider thumb has a value before allowing the containing form to submit.
|
|
1489
1517
|
* - `min`: undefined
|
|
@@ -1492,6 +1520,8 @@ export type WarpTextareaProps = {
|
|
|
1492
1520
|
* - `step`: undefined
|
|
1493
1521
|
* - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
|
|
1494
1522
|
* - `formatter`: Function to format the to- and from labels and value in the slider thumb tooltip. (property only)
|
|
1523
|
+
* - `edgeMin`: undefined (property only) (readonly)
|
|
1524
|
+
* - `edgeMax`: undefined (property only) (readonly)
|
|
1495
1525
|
*
|
|
1496
1526
|
* ## Slots
|
|
1497
1527
|
*
|
|
@@ -9,7 +9,7 @@ declare const _default: {
|
|
|
9
9
|
onChange: string;
|
|
10
10
|
onchange: string;
|
|
11
11
|
}>;
|
|
12
|
-
render(args: Omit<React.HTMLAttributes<import(".").WarpCombobox>, "label" | "onchange" | "onselect" | "onChange" | "onSelect" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "disabled" | "name" | "value" | "invalid" | "
|
|
12
|
+
render(args: Omit<React.HTMLAttributes<import(".").WarpCombobox>, "label" | "onchange" | "onselect" | "onChange" | "onSelect" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "disabled" | "name" | "value" | "invalid" | "helpText" | "optional" | "placeholder" | "required" | "options" | "openOnFocus" | "selectOnBlur" | "matchTextSegments" | "disableStaticFiltering" | "containerClassName" | "listClassName"> & {
|
|
13
13
|
onSelect?: (e: Event) => void;
|
|
14
14
|
onselect?: (e: Event) => void;
|
|
15
15
|
onChange?: (e: Event) => void;
|
|
@@ -8,13 +8,28 @@ declare const WarpSelect_base: import("@open-wc/form-control").Constructor<impor
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class WarpSelect extends WarpSelect_base {
|
|
10
10
|
#private;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Whether the element should receive focus on render.
|
|
13
|
+
* @deprecated Use the native `autofocus` attribute instead.
|
|
14
|
+
*/
|
|
12
15
|
autoFocus: boolean;
|
|
13
|
-
/**
|
|
16
|
+
/** Whether the element should receive focus on render */
|
|
17
|
+
autofocus: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The content displayed as the help text. Paired with `invalid` to show the text as a validation error.
|
|
20
|
+
*/
|
|
21
|
+
helpText: string;
|
|
22
|
+
/** Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error. */
|
|
14
23
|
invalid: boolean;
|
|
15
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Whether to always show a hint.
|
|
26
|
+
* @deprecated Use `help-text` instead and only set it if you want to display the help text.
|
|
27
|
+
*/
|
|
16
28
|
always: boolean;
|
|
17
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* The content displayed as the help text.
|
|
31
|
+
* @deprecated Use `help-text` instead.
|
|
32
|
+
*/
|
|
18
33
|
hint: string;
|
|
19
34
|
/** The content to disply as the label */
|
|
20
35
|
label: string;
|
|
@@ -22,8 +37,13 @@ export declare class WarpSelect extends WarpSelect_base {
|
|
|
22
37
|
optional: boolean;
|
|
23
38
|
/** Renders the field in a disabled state. */
|
|
24
39
|
disabled: boolean;
|
|
25
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* Renders the field in a readonly state.
|
|
42
|
+
* @deprecated Use the native readonly attribute instead.
|
|
43
|
+
*/
|
|
26
44
|
readOnly: boolean;
|
|
45
|
+
/** Renders the field in a readonly state. */
|
|
46
|
+
readonly: boolean;
|
|
27
47
|
/** @internal */
|
|
28
48
|
_options: Array<TemplateResult>;
|
|
29
49
|
name: string;
|