@infonomic/uikit 5.11.0 → 5.12.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/forms/checkbox.astro +8 -4
- package/dist/components/forms/checkbox.d.ts +1 -1
- package/dist/components/forms/checkbox.d.ts.map +1 -1
- package/dist/components/forms/checkbox.js +1 -1
- package/package.json +1 -1
- package/src/components/forms/checkbox.astro +8 -4
- package/src/components/forms/checkbox.tsx +6 -4
|
@@ -9,7 +9,7 @@ import styles from './checkbox.module.css'
|
|
|
9
9
|
interface Props extends HTMLAttributes<'input'> {
|
|
10
10
|
id: string
|
|
11
11
|
name: string
|
|
12
|
-
label
|
|
12
|
+
label?: string
|
|
13
13
|
variant?: Variant
|
|
14
14
|
size?: Size
|
|
15
15
|
intent?: Intent
|
|
@@ -81,9 +81,13 @@ const {
|
|
|
81
81
|
</span>
|
|
82
82
|
</label>
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
{
|
|
85
|
+
label && (
|
|
86
|
+
<label for={id} class:list={[styles.label, labelClasses]}>
|
|
87
|
+
{label}
|
|
88
|
+
</label>
|
|
89
|
+
)
|
|
90
|
+
}
|
|
87
91
|
</div>
|
|
88
92
|
{
|
|
89
93
|
error ? (
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/forms/checkbox.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAEnC,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAKjE,MAAM,WAAW,KAAM,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/forms/checkbox.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAEnC,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAKjE,MAAM,WAAW,KAAM,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,eAAe,KAAK,IAAI,CAAA;CAC/D;AAED,eAAO,MAAM,QAAQ,GAAqB,6KAkBvC,KAAK,GAAG;IACT,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;CACzC,KAAG,KAAK,CAAC,GAAG,CAAC,OA+Cb,CAAA"}
|
|
@@ -29,7 +29,7 @@ const checkbox_Checkbox = function({ ref, id, name, label, variant = 'outlined',
|
|
|
29
29
|
})
|
|
30
30
|
})
|
|
31
31
|
}),
|
|
32
|
-
/*#__PURE__*/ jsx(Label.Label, {
|
|
32
|
+
null != label && /*#__PURE__*/ jsx(Label.Label, {
|
|
33
33
|
htmlFor: id,
|
|
34
34
|
className: classnames(checkbox_module.label, labelClasses),
|
|
35
35
|
children: label
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import styles from './checkbox.module.css'
|
|
|
9
9
|
interface Props extends HTMLAttributes<'input'> {
|
|
10
10
|
id: string
|
|
11
11
|
name: string
|
|
12
|
-
label
|
|
12
|
+
label?: string
|
|
13
13
|
variant?: Variant
|
|
14
14
|
size?: Size
|
|
15
15
|
intent?: Intent
|
|
@@ -81,9 +81,13 @@ const {
|
|
|
81
81
|
</span>
|
|
82
82
|
</label>
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
{
|
|
85
|
+
label && (
|
|
86
|
+
<label for={id} class:list={[styles.label, labelClasses]}>
|
|
87
|
+
{label}
|
|
88
|
+
</label>
|
|
89
|
+
)
|
|
90
|
+
}
|
|
87
91
|
</div>
|
|
88
92
|
{
|
|
89
93
|
error ? (
|
|
@@ -13,7 +13,7 @@ import { HelpText } from './help-text.js'
|
|
|
13
13
|
export interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
14
14
|
id: string
|
|
15
15
|
name: string
|
|
16
|
-
label
|
|
16
|
+
label?: string
|
|
17
17
|
variant?: Variant
|
|
18
18
|
size?: Size
|
|
19
19
|
intent?: Intent
|
|
@@ -84,9 +84,11 @@ export const Checkbox = function Checkbox({
|
|
|
84
84
|
</CheckboxPrimitive.Indicator>
|
|
85
85
|
</CheckboxPrimitive.Root>
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
{label}
|
|
89
|
-
|
|
87
|
+
{ label != null && (
|
|
88
|
+
<LabelPrimitive.Label htmlFor={id} className={cx(styles.label, labelClasses)}>
|
|
89
|
+
{label}
|
|
90
|
+
</LabelPrimitive.Label>
|
|
91
|
+
)}
|
|
90
92
|
</div>
|
|
91
93
|
{error ? (
|
|
92
94
|
<ErrorText id={`error-for-${id}`} text={errorText ?? helpText} />
|