@koobiq/react-components 0.7.0 → 0.8.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/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/DateInput/DateInput.js +14 -8
- package/dist/components/DateInput/types.d.ts +19 -3
- package/dist/components/DateInput/types.js +5 -0
- package/dist/components/DatePicker/DatePicker.js +5 -1
- package/dist/components/DatePicker/types.d.ts +13 -1
- package/dist/components/Dialog/components/DialogCloseButton.d.ts +2 -2
- package/dist/components/FieldComponents/Field/Field.d.ts +4 -0
- package/dist/components/FieldComponents/Field/Field.js +10 -0
- package/dist/components/FieldComponents/Field/Field.module.css.js +8 -0
- package/dist/components/FieldComponents/Field/index.d.ts +2 -0
- package/dist/components/FieldComponents/Field/types.d.ts +4 -0
- package/dist/components/FieldComponents/index.d.ts +1 -2
- package/dist/components/FormControl/FormControl.d.ts +4 -0
- package/dist/components/FormControl/FormControl.js +33 -0
- package/dist/components/FormControl/FormControl.module.css.js +17 -0
- package/dist/components/FormControl/index.d.ts +2 -0
- package/dist/components/FormControl/types.d.ts +19 -0
- package/dist/components/FormControl/types.js +6 -0
- package/dist/components/FormControlLabel/FormControlLabel.d.ts +4 -2
- package/dist/components/FormControlLabel/FormControlLabel.js +33 -0
- package/dist/components/FormControlLabel/FormControlLabel.module.css.js +14 -0
- package/dist/components/FormControlLabel/types.d.ts +6 -31
- package/dist/components/Input/Input.d.ts +8 -4
- package/dist/components/Input/Input.js +14 -8
- package/dist/components/Input/types.d.ts +19 -3
- package/dist/components/Input/types.js +5 -0
- package/dist/components/InputNumber/InputNumber.d.ts +8 -4
- package/dist/components/InputNumber/InputNumber.js +14 -8
- package/dist/components/InputNumber/types.d.ts +19 -3
- package/dist/components/InputNumber/types.js +5 -0
- package/dist/components/List/components/ListSection/ListSection.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +71 -18
- package/dist/components/RadioGroup/RadioGroup.module.css.js +8 -0
- package/dist/components/RadioGroup/components/Radio/Radio.d.ts +1 -1
- package/dist/components/RadioGroup/components/index.d.ts +0 -2
- package/dist/components/RadioGroup/types.d.ts +40 -5
- package/dist/components/RadioGroup/types.js +5 -0
- package/dist/components/SearchInput/SearchInput.d.ts +8 -4
- package/dist/components/SearchInput/SearchInput.js +14 -8
- package/dist/components/SearchInput/types.d.ts +19 -3
- package/dist/components/SearchInput/types.js +5 -0
- package/dist/components/Select/Select.js +20 -13
- package/dist/components/Select/Select.module.css.js +0 -6
- package/dist/components/Select/types.d.ts +18 -2
- package/dist/components/Select/types.js +5 -0
- package/dist/components/Textarea/Textarea.d.ts +5 -2
- package/dist/components/Textarea/Textarea.js +7 -4
- package/dist/components/Textarea/components/TextareaContextConsumer/TextareaContextConsumer.d.ts +1 -1
- package/dist/components/Textarea/components/TextareaContextConsumer/TextareaContextConsumer.js +9 -9
- package/dist/components/Textarea/types.d.ts +21 -3
- package/dist/components/Textarea/types.js +5 -0
- package/dist/components/TimePicker/TimePicker.js +21 -15
- package/dist/components/TimePicker/types.d.ts +19 -3
- package/dist/components/TimePicker/types.js +7 -0
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +31 -11
- package/dist/style.css +96 -80
- package/package.json +5 -5
- package/dist/components/FieldComponents/FieldControl/FieldControl.d.ts +0 -8
- package/dist/components/FieldComponents/FieldControl/FieldControl.js +0 -17
- package/dist/components/FieldComponents/FieldControl/FieldControl.module.css.js +0 -11
- package/dist/components/FieldComponents/FieldControl/index.d.ts +0 -1
- package/dist/components/FieldComponents/FieldLabel/FieldLabel.d.ts +0 -9
- package/dist/components/FieldComponents/FieldLabel/FieldLabel.js +0 -24
- package/dist/components/FieldComponents/FieldLabel/FieldLabel.module.css.js +0 -14
- package/dist/components/FieldComponents/FieldLabel/index.d.ts +0 -1
- package/dist/components/RadioGroup/components/RadioGroupDescription/RadioGroupDescription.d.ts +0 -7
- package/dist/components/RadioGroup/components/RadioGroupDescription/RadioGroupDescription.js +0 -21
- package/dist/components/RadioGroup/components/RadioGroupDescription/index.d.ts +0 -1
- package/dist/components/RadioGroup/components/RadioGroupLabel/RadioGroupLabel.d.ts +0 -6
- package/dist/components/RadioGroup/components/RadioGroupLabel/RadioGroupLabel.js +0 -14
- package/dist/components/RadioGroup/components/RadioGroupLabel/index.d.ts +0 -1
package/dist/style.css
CHANGED
|
@@ -238,6 +238,86 @@
|
|
|
238
238
|
margin-inline: var(--container-position);
|
|
239
239
|
padding: 0 var(--container-margins);
|
|
240
240
|
}
|
|
241
|
+
.kbq-formcontrol-dbb0e4 {
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
justify-content: center;
|
|
244
|
+
align-items: flex-start;
|
|
245
|
+
display: inline-flex;
|
|
246
|
+
position: relative;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.kbq-formcontrol-fullWidth-b3e32c {
|
|
250
|
+
inline-size: 100%;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.kbq-formcontrol-top-17ba41 {
|
|
254
|
+
flex-direction: column;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.kbq-formcontrol-side-3e528f {
|
|
258
|
+
flex-direction: row;
|
|
259
|
+
}
|
|
260
|
+
.kbq-formcontrollabel-f90f77 {
|
|
261
|
+
font-size: var(--kbq-typography-text-normal-font-size);
|
|
262
|
+
font-weight: var(--kbq-typography-text-normal-font-weight);
|
|
263
|
+
line-height: var(--kbq-typography-text-normal-line-height);
|
|
264
|
+
font-family: var(--kbq-typography-text-normal-font-family);
|
|
265
|
+
font-style: var(--kbq-typography-text-normal-font-style);
|
|
266
|
+
text-transform: var(--kbq-typography-text-normal-text-transform);
|
|
267
|
+
font-feature-settings: var(--kbq-typography-text-normal-font-feature-settings);
|
|
268
|
+
letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
|
|
269
|
+
text-underline-offset: calc(( var(--kbq-typography-text-normal-line-height) - var(--kbq-typography-text-normal-font-size)) / 2);
|
|
270
|
+
color: var(--kbq-foreground-contrast);
|
|
271
|
+
vertical-align: top;
|
|
272
|
+
box-sizing: border-box;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.kbq-formcontrollabel-hidden-b6c00b {
|
|
276
|
+
clip: rect(0, 0, 0, 0);
|
|
277
|
+
clip-path: inset(50%);
|
|
278
|
+
white-space: nowrap;
|
|
279
|
+
border: 0;
|
|
280
|
+
block-size: 1px;
|
|
281
|
+
inline-size: 1px;
|
|
282
|
+
margin: -1px;
|
|
283
|
+
padding: 0;
|
|
284
|
+
position: absolute;
|
|
285
|
+
overflow: hidden;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.kbq-formcontrollabel-sup-08dbc0 {
|
|
289
|
+
color: var(--kbq-foreground-error);
|
|
290
|
+
vertical-align: baseline;
|
|
291
|
+
line-height: 0;
|
|
292
|
+
font-size: var(--kbq-typography-text-normal-font-size);
|
|
293
|
+
font-weight: var(--kbq-typography-text-normal-font-weight);
|
|
294
|
+
line-height: var(--kbq-typography-text-normal-line-height);
|
|
295
|
+
font-family: var(--kbq-typography-text-normal-font-family);
|
|
296
|
+
font-style: var(--kbq-typography-text-normal-font-style);
|
|
297
|
+
text-transform: var(--kbq-typography-text-normal-text-transform);
|
|
298
|
+
font-feature-settings: var(--kbq-typography-text-normal-font-feature-settings);
|
|
299
|
+
letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
|
|
300
|
+
text-underline-offset: calc(( var(--kbq-typography-text-normal-line-height) - var(--kbq-typography-text-normal-font-size)) / 2);
|
|
301
|
+
position: relative;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
[data-label-placement="top"] .kbq-formcontrollabel-f90f77 {
|
|
305
|
+
padding-block-end: var(--kbq-size-xs);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
[data-label-placement="side"] .kbq-formcontrollabel-f90f77 {
|
|
309
|
+
padding-block-start: var(--kbq-size-xs);
|
|
310
|
+
padding-inline-end: var(--kbq-size-l);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
[data-label-align="start"] .kbq-formcontrollabel-f90f77 {
|
|
314
|
+
text-align: start;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
[data-label-align="end"] .kbq-formcontrollabel-f90f77 {
|
|
318
|
+
text-align: end;
|
|
319
|
+
justify-content: flex-end;
|
|
320
|
+
}
|
|
241
321
|
.kbq-alert-bc5d04 {
|
|
242
322
|
--alert-padding: 0 var(--kbq-size-s) 0 var(--kbq-size-s);
|
|
243
323
|
--alert-content-padding: var(--kbq-size-l) var(--kbq-size-s) var(--kbq-size-l) var(--kbq-size-m);
|
|
@@ -1916,64 +1996,23 @@
|
|
|
1916
1996
|
--badge-bg-color: ;
|
|
1917
1997
|
--badge-color: var(--kbq-foreground-contrast);
|
|
1918
1998
|
}
|
|
1919
|
-
.kbq-
|
|
1920
|
-
--field-
|
|
1999
|
+
.kbq-field-25e8f8 {
|
|
2000
|
+
--field-size-height: 32px;
|
|
1921
2001
|
--field-input-padding-inline-start: var(--kbq-size-m);
|
|
1922
2002
|
--field-input-padding-inline-end: var(--kbq-size-m);
|
|
1923
2003
|
--field-input-padding-block-start: var(--kbq-size-xs);
|
|
1924
2004
|
--field-input-padding-block-end: var(--kbq-size-xs);
|
|
1925
|
-
flex-direction: column;
|
|
1926
|
-
justify-content: center;
|
|
1927
|
-
align-items: flex-start;
|
|
1928
|
-
display: inline-flex;
|
|
1929
|
-
position: relative;
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
.kbq-fieldcontrol-fullWidth-44b574 {
|
|
1933
2005
|
inline-size: 100%;
|
|
1934
2006
|
}
|
|
1935
|
-
.kbq-fieldlabel-141082 {
|
|
1936
|
-
inline-size: 100%;
|
|
1937
|
-
font-size: var(--kbq-typography-text-normal-font-size);
|
|
1938
|
-
font-weight: var(--kbq-typography-text-normal-font-weight);
|
|
1939
|
-
line-height: var(--kbq-typography-text-normal-line-height);
|
|
1940
|
-
font-family: var(--kbq-typography-text-normal-font-family);
|
|
1941
|
-
font-style: var(--kbq-typography-text-normal-font-style);
|
|
1942
|
-
text-transform: var(--kbq-typography-text-normal-text-transform);
|
|
1943
|
-
font-feature-settings: var(--kbq-typography-text-normal-font-feature-settings);
|
|
1944
|
-
letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
|
|
1945
|
-
text-underline-offset: calc(( var(--kbq-typography-text-normal-line-height) - var(--kbq-typography-text-normal-font-size)) / 2);
|
|
1946
|
-
color: var(--kbq-foreground-contrast-secondary);
|
|
1947
|
-
margin-block-end: var(--kbq-size-xs);
|
|
1948
|
-
}
|
|
1949
2007
|
|
|
1950
|
-
.kbq-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
white-space: nowrap;
|
|
1954
|
-
border: 0;
|
|
1955
|
-
block-size: 1px;
|
|
1956
|
-
inline-size: 1px;
|
|
1957
|
-
margin: -1px;
|
|
1958
|
-
padding: 0;
|
|
1959
|
-
position: absolute;
|
|
1960
|
-
overflow: hidden;
|
|
2008
|
+
.kbq-field-25e8f8 > :first-child + * {
|
|
2009
|
+
margin: 0;
|
|
2010
|
+
margin-block-start: var(--kbq-size-xs);
|
|
1961
2011
|
}
|
|
1962
2012
|
|
|
1963
|
-
.kbq-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
line-height: 0;
|
|
1967
|
-
font-size: var(--kbq-typography-text-normal-font-size);
|
|
1968
|
-
font-weight: var(--kbq-typography-text-normal-font-weight);
|
|
1969
|
-
line-height: var(--kbq-typography-text-normal-line-height);
|
|
1970
|
-
font-family: var(--kbq-typography-text-normal-font-family);
|
|
1971
|
-
font-style: var(--kbq-typography-text-normal-font-style);
|
|
1972
|
-
text-transform: var(--kbq-typography-text-normal-text-transform);
|
|
1973
|
-
font-feature-settings: var(--kbq-typography-text-normal-font-feature-settings);
|
|
1974
|
-
letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
|
|
1975
|
-
text-underline-offset: calc(( var(--kbq-typography-text-normal-line-height) - var(--kbq-typography-text-normal-font-size)) / 2);
|
|
1976
|
-
position: relative;
|
|
2013
|
+
.kbq-field-25e8f8 > :first-child + * + * {
|
|
2014
|
+
margin: 0;
|
|
2015
|
+
margin-block-start: var(--kbq-size-xxs);
|
|
1977
2016
|
}
|
|
1978
2017
|
.kbq-fieldcontentgroup-d85be3 {
|
|
1979
2018
|
--field-content-border-color: ;
|
|
@@ -2014,16 +2053,6 @@
|
|
|
2014
2053
|
inset: 0;
|
|
2015
2054
|
}
|
|
2016
2055
|
|
|
2017
|
-
.kbq-fieldcontentgroup-d85be3 + * {
|
|
2018
|
-
margin: 0;
|
|
2019
|
-
margin-block-start: var(--kbq-size-xs);
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
.kbq-fieldcontentgroup-d85be3 + * + * {
|
|
2023
|
-
margin: 0;
|
|
2024
|
-
margin-block-start: var(--kbq-size-xxs);
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
2056
|
.kbq-fieldcontentgroup-hasStartAddon-62fb80 {
|
|
2028
2057
|
--field-control-start-addon-inline-size: 36px;
|
|
2029
2058
|
}
|
|
@@ -2063,7 +2092,7 @@
|
|
|
2063
2092
|
--field-addon-color: var(--kbq-icon-contrast-fade);
|
|
2064
2093
|
z-index: 1;
|
|
2065
2094
|
color: var(--field-addon-color);
|
|
2066
|
-
block-size: var(--field-
|
|
2095
|
+
block-size: var(--field-size-height);
|
|
2067
2096
|
transition: color var(--kbq-transition-default);
|
|
2068
2097
|
justify-content: center;
|
|
2069
2098
|
align-items: center;
|
|
@@ -2122,11 +2151,11 @@
|
|
|
2122
2151
|
}
|
|
2123
2152
|
|
|
2124
2153
|
.kbq-fieldinput-77b90b:where(input) {
|
|
2125
|
-
block-size: var(--field-
|
|
2154
|
+
block-size: var(--field-size-height);
|
|
2126
2155
|
}
|
|
2127
2156
|
|
|
2128
2157
|
.kbq-fieldinput-77b90b:where(textarea) {
|
|
2129
|
-
min-block-size: var(--field-
|
|
2158
|
+
min-block-size: var(--field-size-height);
|
|
2130
2159
|
resize: none;
|
|
2131
2160
|
}
|
|
2132
2161
|
|
|
@@ -2219,6 +2248,9 @@
|
|
|
2219
2248
|
.kbq-inputnumbercountercontrols-decrement-fbd37a > svg {
|
|
2220
2249
|
margin-block-start: calc(-1 * var(--kbq-size-3xs));
|
|
2221
2250
|
}
|
|
2251
|
+
[data-label-placement="side"] .kbq-radiogroup-label-750809 {
|
|
2252
|
+
padding-block-start: 0;
|
|
2253
|
+
}
|
|
2222
2254
|
.kbq-radio-c3ed31 {
|
|
2223
2255
|
--radio-size: ;
|
|
2224
2256
|
--radio-opacity: 0;
|
|
@@ -3148,22 +3180,6 @@
|
|
|
3148
3180
|
[data-slot="select-value"] .kbq-listitemtext-caption-ae96af {
|
|
3149
3181
|
display: none;
|
|
3150
3182
|
}
|
|
3151
|
-
.kbq-select-6d31ad {
|
|
3152
|
-
--field-input-padding-inline-start: var(--kbq-size-m);
|
|
3153
|
-
--field-input-padding-inline-end: var(--kbq-size-m);
|
|
3154
|
-
--field-input-padding-block-start: var(--kbq-size-xs);
|
|
3155
|
-
--field-input-padding-block-end: var(--kbq-size-xs);
|
|
3156
|
-
flex-direction: column;
|
|
3157
|
-
justify-content: center;
|
|
3158
|
-
align-items: flex-start;
|
|
3159
|
-
display: inline-flex;
|
|
3160
|
-
position: relative;
|
|
3161
|
-
}
|
|
3162
|
-
|
|
3163
|
-
.kbq-select-fullWidth-1dfc13 {
|
|
3164
|
-
inline-size: 100%;
|
|
3165
|
-
}
|
|
3166
|
-
|
|
3167
3183
|
.kbq-select-addon-cbc524 {
|
|
3168
3184
|
pointer-events: none;
|
|
3169
3185
|
}
|
|
@@ -3222,7 +3238,7 @@
|
|
|
3222
3238
|
inline-size: 100%;
|
|
3223
3239
|
color: var(--field-input-color);
|
|
3224
3240
|
background: var(--field-input-bg-color);
|
|
3225
|
-
min-block-size: var(--field-
|
|
3241
|
+
min-block-size: var(--field-size-height);
|
|
3226
3242
|
padding-inline: var(--field-input-padding-inline-start) var(--field-input-padding-inline-end);
|
|
3227
3243
|
transition: color var(--kbq-transition-default), background-color var(--kbq-transition-default);
|
|
3228
3244
|
font-size: var(--kbq-typography-text-normal-font-size);
|
|
@@ -4006,7 +4022,7 @@
|
|
|
4006
4022
|
cursor: pointer;
|
|
4007
4023
|
box-sizing: border-box;
|
|
4008
4024
|
inline-size: 100%;
|
|
4009
|
-
block-size: var(--field-
|
|
4025
|
+
block-size: var(--field-size-height);
|
|
4010
4026
|
border-radius: inherit;
|
|
4011
4027
|
color: var(--field-input-color);
|
|
4012
4028
|
background: var(--field-input-bg-color);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koobiq/react-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@koobiq/design-tokens": "^3.14.0",
|
|
29
29
|
"@types/react-transition-group": "^4.4.12",
|
|
30
30
|
"react-transition-group": "^4.4.5",
|
|
31
|
-
"@koobiq/
|
|
32
|
-
"@koobiq/react-
|
|
33
|
-
"@koobiq/
|
|
34
|
-
"@koobiq/react-primitives": "0.
|
|
31
|
+
"@koobiq/logger": "0.8.0",
|
|
32
|
+
"@koobiq/react-core": "0.8.0",
|
|
33
|
+
"@koobiq/react-icons": "0.8.0",
|
|
34
|
+
"@koobiq/react-primitives": "0.8.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@koobiq/design-tokens": "^3.14.0",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef, ElementType } from 'react';
|
|
2
|
-
import { type DataAttributeProps } from '@koobiq/react-core';
|
|
3
|
-
export type FieldControlBaseProps = {
|
|
4
|
-
fullWidth?: boolean;
|
|
5
|
-
className?: string;
|
|
6
|
-
} & DataAttributeProps;
|
|
7
|
-
export declare const FieldControl: import("@koobiq/react-core").PolyForwardComponent<"div", FieldControlBaseProps, ElementType>;
|
|
8
|
-
export type FieldControlProps<As extends ElementType = 'div'> = ComponentPropsWithRef<typeof FieldControl<As>>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { polymorphicForwardRef, clsx } from "@koobiq/react-core";
|
|
3
|
-
import s from "./FieldControl.module.css.js";
|
|
4
|
-
const FieldControl = polymorphicForwardRef(
|
|
5
|
-
({ fullWidth = false, className, as: Tag = "div", ...other }, ref) => /* @__PURE__ */ jsx(
|
|
6
|
-
Tag,
|
|
7
|
-
{
|
|
8
|
-
className: clsx(s.base, fullWidth && s.fullWidth, className),
|
|
9
|
-
...other,
|
|
10
|
-
ref
|
|
11
|
-
}
|
|
12
|
-
)
|
|
13
|
-
);
|
|
14
|
-
FieldControl.displayName = "FieldControl";
|
|
15
|
-
export {
|
|
16
|
-
FieldControl
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FieldControl';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ExtendableComponentPropsWithRef } from '@koobiq/react-core';
|
|
3
|
-
export type FieldLabelProps = ExtendableComponentPropsWithRef<{
|
|
4
|
-
isHidden?: boolean;
|
|
5
|
-
className?: string;
|
|
6
|
-
isRequired?: boolean;
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
}, 'label'>;
|
|
9
|
-
export declare const FieldLabel: import("react").ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { isNotNil, clsx } from "@koobiq/react-core";
|
|
4
|
-
import { Label } from "@koobiq/react-primitives";
|
|
5
|
-
import s from "./FieldLabel.module.css.js";
|
|
6
|
-
const FieldLabel = forwardRef(
|
|
7
|
-
({ children, className, isHidden = false, isRequired = false, ...other }, ref) => isNotNil(children) ? /* @__PURE__ */ jsxs(
|
|
8
|
-
Label,
|
|
9
|
-
{
|
|
10
|
-
className: clsx(s.base, isHidden && s.hidden, className),
|
|
11
|
-
...other,
|
|
12
|
-
ref,
|
|
13
|
-
children: [
|
|
14
|
-
children,
|
|
15
|
-
" ",
|
|
16
|
-
isRequired && /* @__PURE__ */ jsx("sup", { className: s.sup, children: "*" })
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
) : null
|
|
20
|
-
);
|
|
21
|
-
FieldLabel.displayName = "FieldLabel";
|
|
22
|
-
export {
|
|
23
|
-
FieldLabel
|
|
24
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FieldLabel';
|
package/dist/components/RadioGroup/components/RadioGroupDescription/RadioGroupDescription.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type TypographyProps } from '../../../Typography';
|
|
2
|
-
export type RadioGroupDescriptionProps = TypographyProps;
|
|
3
|
-
export declare const RadioGroupDescription: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
4
|
-
ref?: ((instance: HTMLParagraphElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
|
|
5
|
-
}, "as" | keyof import("../../..").TypographyBaseProps> & import("../../..").TypographyBaseProps & {
|
|
6
|
-
as?: "p" | undefined;
|
|
7
|
-
}, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
package/dist/components/RadioGroup/components/RadioGroupDescription/RadioGroupDescription.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { isNotNil } from "@koobiq/react-core";
|
|
4
|
-
import { Typography } from "../../../Typography/Typography.js";
|
|
5
|
-
const RadioGroupDescription = forwardRef(
|
|
6
|
-
({ children, ...other }, ref) => isNotNil(children) ? /* @__PURE__ */ jsx(
|
|
7
|
-
Typography,
|
|
8
|
-
{
|
|
9
|
-
variant: "text-compact",
|
|
10
|
-
slot: "description",
|
|
11
|
-
color: "contrast-secondary",
|
|
12
|
-
...other,
|
|
13
|
-
ref,
|
|
14
|
-
children
|
|
15
|
-
}
|
|
16
|
-
) : null
|
|
17
|
-
);
|
|
18
|
-
RadioGroupDescription.displayName = "RadioGroupDescription";
|
|
19
|
-
export {
|
|
20
|
-
RadioGroupDescription
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './RadioGroupDescription';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import { type TypographyProps } from '../../../Typography';
|
|
3
|
-
export type RadioGroupLabelProps = TypographyProps<'span'> & {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export declare const RadioGroupLabel: import("react").ForwardRefExoticComponent<Omit<RadioGroupLabelProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { isNotNil } from "@koobiq/react-core";
|
|
4
|
-
import { Label } from "@koobiq/react-primitives";
|
|
5
|
-
import { Typography } from "../../../Typography/Typography.js";
|
|
6
|
-
const RadioGroupLabelTypography = forwardRef((props, ref) => /* @__PURE__ */ jsx(Typography, { as: "span", ...props, ref }));
|
|
7
|
-
RadioGroupLabelTypography.displayName = "RadioGroupLabelTypography";
|
|
8
|
-
const RadioGroupLabel = forwardRef(
|
|
9
|
-
({ children, ...other }, ref) => isNotNil(children) ? /* @__PURE__ */ jsx(Label, { as: RadioGroupLabelTypography, ...other, ref, children }) : null
|
|
10
|
-
);
|
|
11
|
-
RadioGroupLabel.displayName = "RadioGroupLabel";
|
|
12
|
-
export {
|
|
13
|
-
RadioGroupLabel
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './RadioGroupLabel';
|