@techsio/ui-kit 0.57.0 → 0.59.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/README.md +128 -133
- package/dist/atoms/action-icon.js +9 -8
- package/dist/atoms/button.js +114 -18
- package/dist/atoms/checkbox.js +77 -17
- package/dist/atoms/hotkeys.js +26 -7
- package/dist/atoms/icon.js +5 -5
- package/dist/atoms/image.js +118 -3
- package/dist/atoms/input.js +57 -9
- package/dist/atoms/label.js +13 -4
- package/dist/atoms/link-button.js +15 -12
- package/dist/atoms/link.js +18 -4
- package/dist/atoms/numeric-input.js +362 -84
- package/dist/atoms/rating.js +306 -73
- package/dist/atoms/skeleton.js +18 -14
- package/dist/atoms/status-text.js +31 -18
- package/dist/atoms/textarea.js +59 -12
- package/dist/atoms/tooltip.js +64 -43
- package/dist/hotkeys.js +1 -0
- package/dist/internal/choice-control.js +173 -0
- package/dist/internal/combobox-query-sync.js +11 -0
- package/dist/internal/date-picker-coordinator.js +56 -40
- package/dist/internal/date-picker-dom.js +44 -0
- package/dist/internal/date-picker-input.js +30 -0
- package/dist/internal/described-by.js +23 -18
- package/dist/internal/form-control-lifecycle.js +122 -0
- package/dist/internal/molecules/command.context.js +1 -0
- package/dist/internal/molecules/drawer.context.js +1 -0
- package/dist/internal/molecules/vertical-navigation.context.js +1 -0
- package/dist/internal/molecules/vertical-navigation.styles.js +9 -2
- package/dist/internal/numeric-input-editing.js +87 -0
- package/dist/internal/organisms/sidebar.context.js +1 -0
- package/dist/internal/organisms/sidebar.focus.js +1 -0
- package/dist/internal/overlay-portal.js +72 -0
- package/dist/internal/reduced-motion.js +1 -0
- package/dist/internal/use-effective-disabled.js +8 -0
- package/dist/molecules/accordion.js +44 -30
- package/dist/molecules/availability-status.js +1 -0
- package/dist/molecules/breadcrumb.js +11 -11
- package/dist/molecules/carousel.js +279 -97
- package/dist/molecules/cascade-select.js +327 -81
- package/dist/molecules/chart.js +427 -78
- package/dist/molecules/color-select.js +181 -62
- package/dist/molecules/combobox.js +537 -182
- package/dist/molecules/command.js +2 -1
- package/dist/molecules/date-picker.js +629 -119
- package/dist/molecules/dialog.js +89 -48
- package/dist/molecules/drawer.js +63 -6
- package/dist/molecules/file-upload.js +373 -37
- package/dist/molecules/form-checkbox.js +65 -22
- package/dist/molecules/form-error-summary.js +29 -5
- package/dist/molecules/form-input.js +26 -30
- package/dist/molecules/form-numeric-input.js +11 -9
- package/dist/molecules/form-textarea.js +26 -23
- package/dist/molecules/menu.js +170 -47
- package/dist/molecules/pagination.js +100 -28
- package/dist/molecules/phone-input.js +172 -37
- package/dist/molecules/popover.js +53 -26
- package/dist/molecules/price-block.js +1 -0
- package/dist/molecules/product-card.js +85 -23
- package/dist/molecules/quantity-field.js +4 -2
- package/dist/molecules/radio-card.js +102 -30
- package/dist/molecules/radio-group.js +108 -31
- package/dist/molecules/search-form.js +116 -13
- package/dist/molecules/select.js +226 -81
- package/dist/molecules/slider.js +141 -30
- package/dist/molecules/steps.js +181 -50
- package/dist/molecules/switch.js +86 -20
- package/dist/molecules/tabs.js +227 -31
- package/dist/molecules/toast.js +155 -53
- package/dist/molecules/totals-summary.js +2 -1
- package/dist/molecules/tour.js +9 -5
- package/dist/molecules/tree-view.js +255 -109
- package/dist/molecules/vertical-navigation.js +8 -4
- package/dist/organisms/data-table.fields.js +26 -5
- package/dist/organisms/data-table.helpers.js +6 -2
- package/dist/organisms/data-table.js +587 -154
- package/dist/organisms/footer.js +18 -11
- package/dist/organisms/gallery.js +61 -24
- package/dist/organisms/header.js +106 -32
- package/dist/organisms/line-item.js +1 -0
- package/dist/organisms/sidebar.js +1 -0
- package/dist/organisms/table.js +22 -7
- package/dist/src/atoms/action-icon.d.ts +10 -10
- package/dist/src/atoms/action-icon.d.ts.map +1 -1
- package/dist/src/atoms/badge.d.ts +3 -3
- package/dist/src/atoms/badge.d.ts.map +1 -1
- package/dist/src/atoms/button.d.ts +47 -24
- package/dist/src/atoms/button.d.ts.map +1 -1
- package/dist/src/atoms/checkbox.d.ts +6 -5
- package/dist/src/atoms/checkbox.d.ts.map +1 -1
- package/dist/src/atoms/hotkeys.d.ts +3 -2
- package/dist/src/atoms/hotkeys.d.ts.map +1 -1
- package/dist/src/atoms/icon.d.ts +18 -17
- package/dist/src/atoms/icon.d.ts.map +1 -1
- package/dist/src/atoms/image.d.ts +38 -7
- package/dist/src/atoms/image.d.ts.map +1 -1
- package/dist/src/atoms/input.d.ts +23 -14
- package/dist/src/atoms/input.d.ts.map +1 -1
- package/dist/src/atoms/label.d.ts +4 -4
- package/dist/src/atoms/label.d.ts.map +1 -1
- package/dist/src/atoms/link-button.d.ts +78 -31
- package/dist/src/atoms/link-button.d.ts.map +1 -1
- package/dist/src/atoms/link.d.ts +30 -9
- package/dist/src/atoms/link.d.ts.map +1 -1
- package/dist/src/atoms/numeric-input.d.ts +24 -19
- package/dist/src/atoms/numeric-input.d.ts.map +1 -1
- package/dist/src/atoms/rating.d.ts +54 -26
- package/dist/src/atoms/rating.d.ts.map +1 -1
- package/dist/src/atoms/skeleton.d.ts +9 -9
- package/dist/src/atoms/skeleton.d.ts.map +1 -1
- package/dist/src/atoms/status-text.d.ts +21 -13
- package/dist/src/atoms/status-text.d.ts.map +1 -1
- package/dist/src/atoms/textarea.d.ts +22 -20
- package/dist/src/atoms/textarea.d.ts.map +1 -1
- package/dist/src/atoms/tooltip.d.ts +5 -5
- package/dist/src/atoms/tooltip.d.ts.map +1 -1
- package/dist/src/hotkeys.d.ts +1 -1
- package/dist/src/hotkeys.d.ts.map +1 -1
- package/dist/src/internal/choice-control.d.ts +18 -0
- package/dist/src/internal/choice-control.d.ts.map +1 -0
- package/dist/src/internal/combobox-query-sync.d.ts +4 -0
- package/dist/src/internal/combobox-query-sync.d.ts.map +1 -0
- package/dist/src/internal/date-picker-coordinator.d.ts +7 -1
- package/dist/src/internal/date-picker-coordinator.d.ts.map +1 -1
- package/dist/src/internal/date-picker-dom.d.ts +10 -0
- package/dist/src/internal/date-picker-dom.d.ts.map +1 -0
- package/dist/src/internal/date-picker-input.d.ts +7 -0
- package/dist/src/internal/date-picker-input.d.ts.map +1 -0
- package/dist/src/internal/described-by.d.ts +7 -1
- package/dist/src/internal/described-by.d.ts.map +1 -1
- package/dist/src/internal/form-control-lifecycle.d.ts +22 -0
- package/dist/src/internal/form-control-lifecycle.d.ts.map +1 -0
- package/dist/src/internal/molecules/vertical-navigation.context.d.ts +1 -1
- package/dist/src/internal/molecules/vertical-navigation.context.d.ts.map +1 -1
- package/dist/src/internal/molecules/vertical-navigation.styles.d.ts +21 -0
- package/dist/src/internal/molecules/vertical-navigation.styles.d.ts.map +1 -1
- package/dist/src/internal/numeric-input-editing.d.ts +13 -0
- package/dist/src/internal/numeric-input-editing.d.ts.map +1 -0
- package/dist/src/internal/overlay-portal.d.ts +18 -0
- package/dist/src/internal/overlay-portal.d.ts.map +1 -0
- package/dist/src/internal/use-effective-disabled.d.ts +4 -0
- package/dist/src/internal/use-effective-disabled.d.ts.map +1 -0
- package/dist/src/molecules/accordion.d.ts +25 -19
- package/dist/src/molecules/accordion.d.ts.map +1 -1
- package/dist/src/molecules/availability-status.d.ts +4 -1
- package/dist/src/molecules/availability-status.d.ts.map +1 -1
- package/dist/src/molecules/breadcrumb.d.ts +2 -2
- package/dist/src/molecules/breadcrumb.d.ts.map +1 -1
- package/dist/src/molecules/carousel.d.ts +51 -52
- package/dist/src/molecules/carousel.d.ts.map +1 -1
- package/dist/src/molecules/cascade-select.d.ts +23 -8
- package/dist/src/molecules/cascade-select.d.ts.map +1 -1
- package/dist/src/molecules/chart.d.ts +18 -1
- package/dist/src/molecules/chart.d.ts.map +1 -1
- package/dist/src/molecules/color-select.d.ts +19 -3
- package/dist/src/molecules/color-select.d.ts.map +1 -1
- package/dist/src/molecules/combobox.d.ts +27 -5
- package/dist/src/molecules/combobox.d.ts.map +1 -1
- package/dist/src/molecules/command.d.ts +1 -1
- package/dist/src/molecules/date-picker.d.ts +30 -4
- package/dist/src/molecules/date-picker.d.ts.map +1 -1
- package/dist/src/molecules/dialog.d.ts +17 -4
- package/dist/src/molecules/dialog.d.ts.map +1 -1
- package/dist/src/molecules/drawer.d.ts +4 -4
- package/dist/src/molecules/drawer.d.ts.map +1 -1
- package/dist/src/molecules/file-upload.d.ts +11 -6
- package/dist/src/molecules/file-upload.d.ts.map +1 -1
- package/dist/src/molecules/form-checkbox.d.ts +7 -2
- package/dist/src/molecules/form-checkbox.d.ts.map +1 -1
- package/dist/src/molecules/form-error-summary.d.ts +4 -3
- package/dist/src/molecules/form-error-summary.d.ts.map +1 -1
- package/dist/src/molecules/form-input.d.ts +5 -6
- package/dist/src/molecules/form-input.d.ts.map +1 -1
- package/dist/src/molecules/form-numeric-input.d.ts +5 -5
- package/dist/src/molecules/form-numeric-input.d.ts.map +1 -1
- package/dist/src/molecules/form-textarea.d.ts +5 -6
- package/dist/src/molecules/form-textarea.d.ts.map +1 -1
- package/dist/src/molecules/menu.d.ts +17 -3
- package/dist/src/molecules/menu.d.ts.map +1 -1
- package/dist/src/molecules/pagination.d.ts +1 -1
- package/dist/src/molecules/pagination.d.ts.map +1 -1
- package/dist/src/molecules/phone-input.d.ts +4 -1
- package/dist/src/molecules/phone-input.d.ts.map +1 -1
- package/dist/src/molecules/popover.d.ts +7 -1
- package/dist/src/molecules/popover.d.ts.map +1 -1
- package/dist/src/molecules/price-block.d.ts +1 -1
- package/dist/src/molecules/price-block.d.ts.map +1 -1
- package/dist/src/molecules/product-card.d.ts +127 -27
- package/dist/src/molecules/product-card.d.ts.map +1 -1
- package/dist/src/molecules/quantity-field.d.ts +1 -1
- package/dist/src/molecules/quantity-field.d.ts.map +1 -1
- package/dist/src/molecules/radio-card.d.ts +10 -3
- package/dist/src/molecules/radio-card.d.ts.map +1 -1
- package/dist/src/molecules/radio-group.d.ts +15 -6
- package/dist/src/molecules/radio-group.d.ts.map +1 -1
- package/dist/src/molecules/search-form.d.ts +37 -12
- package/dist/src/molecules/search-form.d.ts.map +1 -1
- package/dist/src/molecules/select.d.ts +34 -29
- package/dist/src/molecules/select.d.ts.map +1 -1
- package/dist/src/molecules/slider.d.ts +23 -2
- package/dist/src/molecules/slider.d.ts.map +1 -1
- package/dist/src/molecules/steps.d.ts +30 -10
- package/dist/src/molecules/steps.d.ts.map +1 -1
- package/dist/src/molecules/switch.d.ts +54 -33
- package/dist/src/molecules/switch.d.ts.map +1 -1
- package/dist/src/molecules/tabs.d.ts +11 -11
- package/dist/src/molecules/tabs.d.ts.map +1 -1
- package/dist/src/molecules/toast.d.ts +38 -14
- package/dist/src/molecules/toast.d.ts.map +1 -1
- package/dist/src/molecules/totals-summary.d.ts +1 -1
- package/dist/src/molecules/totals-summary.d.ts.map +1 -1
- package/dist/src/molecules/tour.d.ts +1 -1
- package/dist/src/molecules/tour.d.ts.map +1 -1
- package/dist/src/molecules/tree-view.d.ts +16 -20
- package/dist/src/molecules/tree-view.d.ts.map +1 -1
- package/dist/src/molecules/vertical-navigation.d.ts +2 -2
- package/dist/src/molecules/vertical-navigation.d.ts.map +1 -1
- package/dist/src/organisms/data-table.d.ts +28 -3
- package/dist/src/organisms/data-table.d.ts.map +1 -1
- package/dist/src/organisms/data-table.fields.d.ts +4 -1
- package/dist/src/organisms/data-table.fields.d.ts.map +1 -1
- package/dist/src/organisms/data-table.helpers.d.ts +5 -12
- package/dist/src/organisms/data-table.helpers.d.ts.map +1 -1
- package/dist/src/organisms/footer.d.ts +5 -5
- package/dist/src/organisms/footer.d.ts.map +1 -1
- package/dist/src/organisms/gallery.d.ts +11 -9
- package/dist/src/organisms/gallery.d.ts.map +1 -1
- package/dist/src/organisms/header.d.ts +24 -22
- package/dist/src/organisms/header.d.ts.map +1 -1
- package/dist/src/organisms/table.d.ts +14 -14
- package/dist/src/organisms/table.d.ts.map +1 -1
- package/dist/src/templates/accordion.d.ts +8 -6
- package/dist/src/templates/accordion.d.ts.map +1 -1
- package/dist/src/templates/breadcrumb.d.ts +1 -1
- package/dist/src/templates/breadcrumb.d.ts.map +1 -1
- package/dist/src/templates/carousel.d.ts +3 -3
- package/dist/src/templates/carousel.d.ts.map +1 -1
- package/dist/src/templates/facet-filter-panel.d.ts +9 -3
- package/dist/src/templates/facet-filter-panel.d.ts.map +1 -1
- package/dist/src/templates/gallery.d.ts +2 -2
- package/dist/src/templates/gallery.d.ts.map +1 -1
- package/dist/src/templates/numeric-input.d.ts +1 -1
- package/dist/src/templates/numeric-input.d.ts.map +1 -1
- package/dist/src/templates/popover.d.ts +4 -2
- package/dist/src/templates/popover.d.ts.map +1 -1
- package/dist/src/templates/product-card.d.ts +12 -4
- package/dist/src/templates/product-card.d.ts.map +1 -1
- package/dist/src/templates/search-suggestions.d.ts +1 -1
- package/dist/src/templates/select.d.ts +7 -2
- package/dist/src/templates/select.d.ts.map +1 -1
- package/dist/src/templates/tabs.d.ts +8 -7
- package/dist/src/templates/tabs.d.ts.map +1 -1
- package/dist/src/theme/theme-config.d.ts +9 -16
- package/dist/src/theme/theme-config.d.ts.map +1 -1
- package/dist/src/theme/theme-provider.d.ts +16 -21
- package/dist/src/theme/theme-provider.d.ts.map +1 -1
- package/dist/src/theme/theme-toggle.d.ts.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/templates/accordion.js +3 -1
- package/dist/templates/breadcrumb.js +11 -4
- package/dist/templates/carousel.js +3 -6
- package/dist/templates/facet-filter-panel.js +121 -52
- package/dist/templates/gallery.js +6 -2
- package/dist/templates/numeric-input.js +6 -1
- package/dist/templates/popover.js +6 -1
- package/dist/templates/product-card.js +52 -26
- package/dist/templates/select.js +6 -1
- package/dist/templates/tabs.js +4 -2
- package/dist/theme/theme-config.js +8 -16
- package/dist/theme/theme-provider.js +89 -63
- package/dist/theme/theme-toggle.js +17 -9
- package/dist/utils.js +11 -1
- package/package.json +9 -5
- package/src/tokens/_base.css +4 -3
- package/src/tokens/_business-atoms.css +96 -0
- package/src/tokens/_foundation-overrides.css +251 -0
- package/src/tokens/_reset.css +10 -10
- package/src/tokens/_scheme-scopes.css +4194 -0
- package/src/tokens/_semantic.css +1 -23
- package/src/tokens/_tokens-base.css +36 -32
- package/src/tokens/_typography.css +2 -1
- package/src/tokens/components/_form-control.css +149 -6
- package/src/tokens/components/_popup-surface.css +15 -29
- package/src/tokens/components/atoms/_action-icon.css +49 -0
- package/src/tokens/components/atoms/_button.css +77 -0
- package/src/tokens/components/atoms/_checkbox.css +47 -4
- package/src/tokens/components/atoms/_hotkeys.css +2 -0
- package/src/tokens/components/atoms/_icon.css +60 -7
- package/src/tokens/components/atoms/_image.css +18 -0
- package/src/tokens/components/atoms/_input.css +20 -0
- package/src/tokens/components/atoms/_label.css +3 -7
- package/src/tokens/components/atoms/_link.css +47 -5
- package/src/tokens/components/atoms/_numeric-input.css +121 -2
- package/src/tokens/components/atoms/_rating.css +55 -6
- package/src/tokens/components/atoms/_skeleton.css +12 -2
- package/src/tokens/components/atoms/_status-text.css +35 -5
- package/src/tokens/components/atoms/_textarea.css +32 -3
- package/src/tokens/components/atoms/_tooltip.css +25 -0
- package/src/tokens/components/molecules/_accordion.css +46 -5
- package/src/tokens/components/molecules/_breadcrumb.css +15 -4
- package/src/tokens/components/molecules/_carousel.css +67 -0
- package/src/tokens/components/molecules/_cascade-select.css +104 -0
- package/src/tokens/components/molecules/_chart.css +32 -16
- package/src/tokens/components/molecules/_color-select.css +21 -0
- package/src/tokens/components/molecules/_combobox.css +81 -0
- package/src/tokens/components/molecules/_command.css +1 -0
- package/src/tokens/components/molecules/_date-picker.css +66 -10
- package/src/tokens/components/molecules/_dialog.css +36 -4
- package/src/tokens/components/molecules/_drawer.css +39 -3
- package/src/tokens/components/molecules/_file-upload.css +16 -1
- package/src/tokens/components/molecules/_menu.css +17 -0
- package/src/tokens/components/molecules/_pagination.css +19 -0
- package/src/tokens/components/molecules/_phone-input.css +20 -5
- package/src/tokens/components/molecules/_popover.css +34 -0
- package/src/tokens/components/molecules/_product-card.css +70 -0
- package/src/tokens/components/molecules/_radio-card.css +35 -0
- package/src/tokens/components/molecules/_radio-group.css +8 -0
- package/src/tokens/components/molecules/_select.css +33 -0
- package/src/tokens/components/molecules/_slider.css +5 -0
- package/src/tokens/components/molecules/_steps.css +52 -0
- package/src/tokens/components/molecules/_switch.css +59 -10
- package/src/tokens/components/molecules/_tabs.css +61 -3
- package/src/tokens/components/molecules/_toast.css +60 -0
- package/src/tokens/components/molecules/_totals-summary.css +22 -22
- package/src/tokens/components/molecules/_tour.css +16 -1
- package/src/tokens/components/molecules/_tree-view.css +27 -3
- package/src/tokens/components/molecules/_vertical-navigation.css +21 -3
- package/src/tokens/components/organisms/_data-table.css +97 -0
- package/src/tokens/components/organisms/_footer.css +9 -0
- package/src/tokens/components/organisms/_gallery.css +11 -0
- package/src/tokens/components/organisms/_header.css +22 -0
- package/src/tokens/components/organisms/_sidebar.css +1 -1
- package/src/tokens/components/organisms/_table.css +31 -0
- package/src/tokens/components/templates/_facet-filter-panel.css +11 -1
- package/src/tokens/figma/akros/variables.css +15 -6
- package/src/tokens/figma/brand-overrides.css +171 -57
- package/src/tokens/figma/business/variables.css +15 -6
- package/src/tokens/figma/cyber/variables.css +115 -38
- package/src/tokens/figma/cyber-dark/variables.css +115 -38
- package/src/tokens/figma/dark/variables.css +13 -4
- package/src/tokens/figma/light/variables.css +62 -49
- package/src/tokens/figma/{neo → n1}/variables.css +123 -114
- package/src/tokens/figma/variables.css +658 -249
- package/src/tokens/theme.css +24 -4
- package/src/tokens/_colors.css +0 -5
- package/src/tokens/figma/neo-dark/variables.css +0 -457
|
@@ -1,16 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { connect, machine } from "@zag-js/checkbox";
|
|
3
4
|
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
4
5
|
import { useId } from "react";
|
|
5
6
|
import { StatusText } from "../atoms/status-text.js";
|
|
7
|
+
import { getControlledChoiceInputProps, isSilentChoiceReset, mergeChoiceInputProps, runSilentChoiceReset, trackChoiceFormControl, useChoiceInputRef } from "../internal/choice-control.js";
|
|
8
|
+
import { joinDescribedBy } from "../internal/described-by.js";
|
|
6
9
|
import { tv } from "../utils.js";
|
|
10
|
+
const checkboxChoiceMachine = {
|
|
11
|
+
...machine,
|
|
12
|
+
implementations: {
|
|
13
|
+
...machine.implementations,
|
|
14
|
+
effects: {
|
|
15
|
+
...machine.implementations?.effects,
|
|
16
|
+
trackFormControlState ({ scope, context, prop, action }) {
|
|
17
|
+
const root = scope.getById(scope.ids?.root ?? `checkbox:${scope.id}`);
|
|
18
|
+
return trackChoiceFormControl(root, ()=>{
|
|
19
|
+
if (void 0 === prop("checked")) runSilentChoiceReset(context, ()=>context.set("checked", context.initial("checked")));
|
|
20
|
+
else action([
|
|
21
|
+
"syncInputElement"
|
|
22
|
+
]);
|
|
23
|
+
}, (disabled)=>context.set("fieldsetDisabled", disabled));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
7
28
|
const checkboxVariants = tv({
|
|
8
29
|
slots: {
|
|
9
30
|
root: "flex items-center gap-form-checkbox-gap",
|
|
10
31
|
control: [
|
|
11
|
-
"relative shrink-0 cursor-pointer",
|
|
12
|
-
"
|
|
13
|
-
"border-(length:--border-width-checkbox) rounded-checkbox border-checkbox-border-base",
|
|
32
|
+
"form-control-readonly form-control-disabled relative shrink-0 cursor-pointer",
|
|
33
|
+
"border-(length:--border-width-checkbox) rounded-checkbox-control border-checkbox-border-base",
|
|
14
34
|
"bg-checkbox-bg-base",
|
|
15
35
|
"flex items-center justify-center",
|
|
16
36
|
"transition duration-200 motion-reduce:transition-none",
|
|
@@ -30,30 +50,40 @@ const checkboxVariants = tv({
|
|
|
30
50
|
indicator: [
|
|
31
51
|
"text-checkbox-fg-checked",
|
|
32
52
|
"data-[state=checked]:token-icon-checkbox",
|
|
33
|
-
"data-[state=indeterminate]:
|
|
53
|
+
"data-[state=indeterminate]:w-checkbox-indeterminate-icon",
|
|
54
|
+
"data-[state=indeterminate]:h-checkbox-indeterminate-stroke",
|
|
34
55
|
"data-[state=indeterminate]:rounded-full",
|
|
35
56
|
"data-[state=indeterminate]:bg-checkbox-fg-indeterminate",
|
|
36
|
-
"data-disabled:text-checkbox-fg-disabled"
|
|
57
|
+
"data-disabled:text-checkbox-fg-disabled",
|
|
58
|
+
"data-disabled:data-[state=indeterminate]:bg-checkbox-fg-disabled",
|
|
59
|
+
"data-readonly:not-data-disabled:text-checkbox-fg-readonly",
|
|
60
|
+
"data-readonly:not-data-disabled:data-[state=indeterminate]:bg-checkbox-fg-readonly"
|
|
37
61
|
],
|
|
38
62
|
label: [
|
|
39
|
-
"cursor-pointer select-none",
|
|
63
|
+
"wrap-anywhere min-w-0 flex-1 cursor-pointer select-none data-readonly:not-data-disabled:cursor-default data-readonly:select-text",
|
|
40
64
|
"text-label-fg",
|
|
41
65
|
"data-disabled:cursor-not-allowed",
|
|
42
66
|
"data-disabled:text-label-fg-disabled"
|
|
43
67
|
],
|
|
44
68
|
hiddenInput: "sr-only",
|
|
45
|
-
textIndented: "
|
|
69
|
+
textIndented: ""
|
|
46
70
|
},
|
|
47
71
|
variants: {
|
|
48
72
|
size: {
|
|
49
73
|
sm: {
|
|
50
|
-
label: "text-label-sm"
|
|
74
|
+
label: "text-label-sm",
|
|
75
|
+
control: "size-form-checkbox-control-sm",
|
|
76
|
+
textIndented: "data-[icon=false]:ps-form-checkbox-description-sm"
|
|
51
77
|
},
|
|
52
78
|
md: {
|
|
53
|
-
label: "text-label-md"
|
|
79
|
+
label: "text-label-md",
|
|
80
|
+
control: "size-form-checkbox-control-md",
|
|
81
|
+
textIndented: "data-[icon=false]:ps-form-checkbox-description-md"
|
|
54
82
|
},
|
|
55
83
|
lg: {
|
|
56
|
-
label: "text-label-lg"
|
|
84
|
+
label: "text-label-lg",
|
|
85
|
+
control: "size-form-checkbox-control-lg",
|
|
86
|
+
textIndented: "data-[icon=false]:ps-form-checkbox-description-lg"
|
|
57
87
|
}
|
|
58
88
|
}
|
|
59
89
|
},
|
|
@@ -61,21 +91,21 @@ const checkboxVariants = tv({
|
|
|
61
91
|
size: "md"
|
|
62
92
|
}
|
|
63
93
|
});
|
|
64
|
-
function FormCheckbox({ id, name, value, checked, defaultChecked, indeterminate, disabled = false, required = false, readOnly = false, children, label, helpText, "aria-describedby": ariaDescribedBy, validateStatus = "default", showHelpTextIcon = "default" !== validateStatus, size = "md", className, onCheckedChange }) {
|
|
94
|
+
function FormCheckbox({ ref, inputProps: nativeInputProps = {}, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, id, name, value, checked, defaultChecked, indeterminate, disabled = false, required = false, readOnly = false, children, label, helpText, "aria-describedby": ariaDescribedBy, validateStatus = "default", showHelpTextIcon = "default" !== validateStatus, size = "md", className, onCheckedChange }) {
|
|
65
95
|
const generatedId = useId();
|
|
66
96
|
const uniqueId = id || generatedId;
|
|
67
97
|
const helpTextId = useId();
|
|
68
|
-
const describedBy = [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const service = useMachine(machine, {
|
|
98
|
+
const describedBy = joinDescribedBy(ariaDescribedBy, nativeInputProps["aria-describedby"], helpText ? helpTextId : void 0);
|
|
99
|
+
const invalid = "error" === validateStatus;
|
|
100
|
+
const showIcon = "default" !== validateStatus || showHelpTextIcon;
|
|
101
|
+
const service = useMachine(checkboxChoiceMachine, {
|
|
73
102
|
id: uniqueId,
|
|
74
103
|
ids: id ? {
|
|
75
104
|
hiddenInput: id
|
|
76
105
|
} : void 0,
|
|
77
106
|
name,
|
|
78
107
|
value,
|
|
108
|
+
form: nativeInputProps.form,
|
|
79
109
|
checked: indeterminate ? "indeterminate" : checked,
|
|
80
110
|
defaultChecked,
|
|
81
111
|
disabled,
|
|
@@ -83,10 +113,12 @@ function FormCheckbox({ id, name, value, checked, defaultChecked, indeterminate,
|
|
|
83
113
|
readOnly,
|
|
84
114
|
required,
|
|
85
115
|
onCheckedChange: (details)=>{
|
|
86
|
-
onCheckedChange?.(true === details.checked);
|
|
116
|
+
if (!(readOnly || disabled || isSilentChoiceReset(service.context))) onCheckedChange?.(true === details.checked);
|
|
87
117
|
}
|
|
88
118
|
});
|
|
89
119
|
const api = connect(service, normalizeProps);
|
|
120
|
+
const inputProps = getControlledChoiceInputProps(mergeChoiceInputProps(nativeInputProps, api.getHiddenInputProps()), api.checked, api.indeterminate);
|
|
121
|
+
const inputRef = useChoiceInputRef(ref, api.indeterminate);
|
|
90
122
|
const styles = checkboxVariants({
|
|
91
123
|
size
|
|
92
124
|
});
|
|
@@ -107,9 +139,20 @@ function FormCheckbox({ id, name, value, checked, defaultChecked, indeterminate,
|
|
|
107
139
|
})
|
|
108
140
|
}),
|
|
109
141
|
/*#__PURE__*/ jsx("input", {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"aria-describedby": describedBy
|
|
142
|
+
...inputProps,
|
|
143
|
+
"aria-checked": api.indeterminate ? "mixed" : api.checked,
|
|
144
|
+
"aria-describedby": describedBy,
|
|
145
|
+
"aria-errormessage": invalid && helpText ? helpTextId : void 0,
|
|
146
|
+
"aria-invalid": invalid || void 0,
|
|
147
|
+
"aria-label": nativeInputProps["aria-label"] ?? ariaLabel,
|
|
148
|
+
"aria-labelledby": nativeInputProps["aria-labelledby"] ?? ariaLabelledBy ?? ((nativeInputProps["aria-label"] ?? ariaLabel) || !labelContent ? void 0 : inputProps["aria-labelledby"]),
|
|
149
|
+
"aria-readonly": readOnly && !disabled || void 0,
|
|
150
|
+
className: styles.hiddenInput({
|
|
151
|
+
className: nativeInputProps.className
|
|
152
|
+
}),
|
|
153
|
+
readOnly: readOnly,
|
|
154
|
+
ref: inputRef,
|
|
155
|
+
type: "checkbox"
|
|
113
156
|
}),
|
|
114
157
|
labelContent && /*#__PURE__*/ jsxs("span", {
|
|
115
158
|
className: styles.label(),
|
|
@@ -126,10 +169,10 @@ function FormCheckbox({ id, name, value, checked, defaultChecked, indeterminate,
|
|
|
126
169
|
}),
|
|
127
170
|
helpText && /*#__PURE__*/ jsx("div", {
|
|
128
171
|
className: styles.textIndented(),
|
|
129
|
-
"data-icon":
|
|
172
|
+
"data-icon": showIcon,
|
|
130
173
|
children: /*#__PURE__*/ jsx(StatusText, {
|
|
131
174
|
id: helpTextId,
|
|
132
|
-
showIcon:
|
|
175
|
+
showIcon: showIcon,
|
|
133
176
|
size: size,
|
|
134
177
|
status: validateStatus,
|
|
135
178
|
children: helpText
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useId } from "react";
|
|
2
4
|
import { tv } from "../utils.js";
|
|
3
5
|
const formErrorSummaryVariants = tv({
|
|
4
6
|
slots: {
|
|
5
7
|
root: [
|
|
6
|
-
"flex flex-col gap-100",
|
|
8
|
+
"wrap-anywhere flex min-w-0 flex-col gap-100",
|
|
7
9
|
"rounded-form-control",
|
|
8
10
|
"border-(length:--border-width-validation)",
|
|
9
11
|
"border-form-error-summary-border",
|
|
10
12
|
"bg-form-error-summary-bg",
|
|
11
|
-
"p-300"
|
|
13
|
+
"p-300",
|
|
14
|
+
"focus-visible:form-error-summary-focus-ring"
|
|
12
15
|
],
|
|
13
16
|
title: [
|
|
14
17
|
"text-label-md",
|
|
@@ -20,25 +23,29 @@ const formErrorSummaryVariants = tv({
|
|
|
20
23
|
"flex list-none flex-col gap-100 p-0"
|
|
21
24
|
],
|
|
22
25
|
link: [
|
|
23
|
-
"text-form-error-summary-fg",
|
|
26
|
+
"wrap-anywhere text-form-error-summary-fg",
|
|
24
27
|
"underline",
|
|
25
28
|
"underline-offset-4",
|
|
26
29
|
"focus-visible:form-error-summary-focus-ring"
|
|
27
30
|
]
|
|
28
31
|
}
|
|
29
32
|
});
|
|
30
|
-
function FormErrorSummary({ title = "There is a problem", errors, onFieldFocus, className, ref }) {
|
|
33
|
+
function FormErrorSummary({ title = "There is a problem", errors, onFieldFocus, revealField, className, ref }) {
|
|
34
|
+
const titleId = useId();
|
|
31
35
|
if (0 === errors.length) return null;
|
|
32
36
|
const styles = formErrorSummaryVariants();
|
|
33
37
|
return /*#__PURE__*/ jsxs("div", {
|
|
38
|
+
"aria-labelledby": titleId,
|
|
34
39
|
className: styles.root({
|
|
35
40
|
className
|
|
36
41
|
}),
|
|
37
42
|
ref: ref,
|
|
38
43
|
role: "alert",
|
|
44
|
+
tabIndex: -1,
|
|
39
45
|
children: [
|
|
40
46
|
/*#__PURE__*/ jsx("h2", {
|
|
41
47
|
className: styles.title(),
|
|
48
|
+
id: titleId,
|
|
42
49
|
children: title
|
|
43
50
|
}),
|
|
44
51
|
/*#__PURE__*/ jsx("ul", {
|
|
@@ -47,7 +54,24 @@ function FormErrorSummary({ title = "There is a problem", errors, onFieldFocus,
|
|
|
47
54
|
children: /*#__PURE__*/ jsx("a", {
|
|
48
55
|
className: styles.link(),
|
|
49
56
|
href: `#${error.targetId}`,
|
|
50
|
-
onClick: ()=>
|
|
57
|
+
onClick: async (event)=>{
|
|
58
|
+
const document = event.currentTarget.ownerDocument;
|
|
59
|
+
if (!(revealField || document.getElementById(error.targetId))) return;
|
|
60
|
+
event.preventDefault();
|
|
61
|
+
try {
|
|
62
|
+
await revealField?.(error.targetId);
|
|
63
|
+
} catch {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const target = document.getElementById(error.targetId);
|
|
67
|
+
if (!target) return;
|
|
68
|
+
for(let ancestor = target.parentElement; ancestor; ancestor = ancestor.parentElement)if (ancestor instanceof HTMLDetailsElement) ancestor.open = true;
|
|
69
|
+
target.focus();
|
|
70
|
+
target.scrollIntoView({
|
|
71
|
+
block: "nearest"
|
|
72
|
+
});
|
|
73
|
+
if (document.activeElement === target) onFieldFocus?.(error.targetId);
|
|
74
|
+
},
|
|
51
75
|
children: error.label
|
|
52
76
|
})
|
|
53
77
|
}, error.id))
|
|
@@ -1,15 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useId } from "react";
|
|
3
|
+
import { cloneElement, isValidElement, useId } from "react";
|
|
3
4
|
import { Input } from "../atoms/input.js";
|
|
4
5
|
import { Label } from "../atoms/label.js";
|
|
5
6
|
import { StatusText } from "../atoms/status-text.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
base: "p-input-sm md:p-input-md"
|
|
9
|
-
});
|
|
10
|
-
function FormInputRaw({ id, label, validateStatus = "default", helpText, size = "md", required, disabled, className, ...props }) {
|
|
7
|
+
import { joinDescribedBy } from "../internal/described-by.js";
|
|
8
|
+
function FormInputRaw({ id, label, validateStatus = "default", helpText, showHelpTextIcon, size = "md", required, disabled, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, "aria-errormessage": ariaErrorMessage, ...props }) {
|
|
11
9
|
const generatedId = useId();
|
|
10
|
+
const generatedMessageId = useId();
|
|
12
11
|
const controlId = id || generatedId;
|
|
12
|
+
const hasHelpText = null != helpText && false !== helpText && "" !== helpText;
|
|
13
|
+
const suppliedMessage = /*#__PURE__*/ isValidElement(helpText) && helpText.type === StatusText ? helpText : void 0;
|
|
14
|
+
const messageId = suppliedMessage?.props.id || generatedMessageId;
|
|
15
|
+
const status = "default" === validateStatus ? suppliedMessage?.props.status ?? validateStatus : validateStatus;
|
|
16
|
+
const invalid = "error" === status;
|
|
17
|
+
const messageProps = {
|
|
18
|
+
id: messageId,
|
|
19
|
+
status,
|
|
20
|
+
size,
|
|
21
|
+
showIcon: "default" !== status || showHelpTextIcon
|
|
22
|
+
};
|
|
13
23
|
return /*#__PURE__*/ jsxs("div", {
|
|
14
24
|
className: "flex flex-col gap-form-field-gap",
|
|
15
25
|
children: [
|
|
@@ -21,39 +31,25 @@ function FormInputRaw({ id, label, validateStatus = "default", helpText, size =
|
|
|
21
31
|
children: label
|
|
22
32
|
}),
|
|
23
33
|
/*#__PURE__*/ jsx(Input, {
|
|
34
|
+
...props,
|
|
35
|
+
"aria-describedby": joinDescribedBy(ariaDescribedBy, hasHelpText ? messageId : void 0),
|
|
36
|
+
"aria-errormessage": joinDescribedBy(ariaErrorMessage, invalid && hasHelpText ? messageId : void 0),
|
|
37
|
+
"aria-invalid": invalid ? true : ariaInvalid,
|
|
24
38
|
disabled: disabled,
|
|
25
39
|
id: controlId,
|
|
26
40
|
required: required,
|
|
27
41
|
size: size,
|
|
28
|
-
variant:
|
|
29
|
-
...props,
|
|
30
|
-
className: formInputVariants({
|
|
31
|
-
className
|
|
32
|
-
})
|
|
42
|
+
variant: "default" === status ? props.variant : status
|
|
33
43
|
}),
|
|
34
|
-
|
|
44
|
+
hasHelpText && (suppliedMessage ? /*#__PURE__*/ cloneElement(suppliedMessage, messageProps) : /*#__PURE__*/ jsx(StatusText, {
|
|
45
|
+
...messageProps,
|
|
46
|
+
children: helpText
|
|
47
|
+
}))
|
|
35
48
|
]
|
|
36
49
|
});
|
|
37
50
|
}
|
|
38
|
-
function FormInput(
|
|
39
|
-
const helpTextId = useId();
|
|
40
|
-
const describedBy = [
|
|
41
|
-
ariaDescribedBy,
|
|
42
|
-
helpText ? helpTextId : void 0
|
|
43
|
-
].filter(Boolean).join(" ") || void 0;
|
|
51
|
+
function FormInput(props) {
|
|
44
52
|
return /*#__PURE__*/ jsx(FormInputRaw, {
|
|
45
|
-
"aria-describedby": describedBy,
|
|
46
|
-
"aria-invalid": "error" === validateStatus ? true : ariaInvalid,
|
|
47
|
-
helpText: helpText && /*#__PURE__*/ jsx(StatusText, {
|
|
48
|
-
id: helpTextId,
|
|
49
|
-
showIcon: showHelpTextIcon,
|
|
50
|
-
size: size,
|
|
51
|
-
status: validateStatus,
|
|
52
|
-
children: helpText
|
|
53
|
-
}),
|
|
54
|
-
id: id,
|
|
55
|
-
size: size,
|
|
56
|
-
validateStatus: validateStatus,
|
|
57
53
|
...props
|
|
58
54
|
});
|
|
59
55
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { useId } from "react";
|
|
3
4
|
import { Label } from "../atoms/label.js";
|
|
4
5
|
import { NumericInput } from "../atoms/numeric-input.js";
|
|
5
6
|
import { StatusText } from "../atoms/status-text.js";
|
|
6
|
-
|
|
7
|
+
import { joinDescribedBy } from "../internal/described-by.js";
|
|
8
|
+
function FormNumericInput({ id, ids, label, validateStatus = "default", helpText, showHelpTextIcon = "default" !== validateStatus, size = "md", required, disabled, describedBy, "aria-describedby": ariaDescribedBy, "aria-errormessage": ariaErrorMessage, children, ...numericInputProps }) {
|
|
7
9
|
const generatedId = useId();
|
|
8
10
|
const fieldId = id || generatedId;
|
|
9
11
|
const inputId = ids?.input ?? fieldId;
|
|
10
12
|
const helpTextId = useId();
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
helpText ? helpTextId : void 0
|
|
14
|
-
].filter(Boolean).join(" ") || void 0;
|
|
13
|
+
const hasHelpText = null != helpText && false !== helpText && "" !== helpText;
|
|
14
|
+
const mergedDescribedBy = joinDescribedBy(describedBy, ariaDescribedBy, hasHelpText ? helpTextId : void 0);
|
|
15
15
|
return /*#__PURE__*/ jsxs("div", {
|
|
16
16
|
className: "flex flex-col gap-form-field-gap",
|
|
17
17
|
children: [
|
|
@@ -23,19 +23,21 @@ function FormNumericInput({ id, ids, label, validateStatus = "default", helpText
|
|
|
23
23
|
children: label
|
|
24
24
|
}),
|
|
25
25
|
/*#__PURE__*/ jsx(NumericInput, {
|
|
26
|
+
...numericInputProps,
|
|
27
|
+
"aria-errormessage": joinDescribedBy(ariaErrorMessage, "error" === validateStatus && hasHelpText ? helpTextId : void 0),
|
|
26
28
|
describedBy: mergedDescribedBy,
|
|
27
29
|
disabled: disabled,
|
|
28
30
|
id: fieldId,
|
|
29
31
|
ids: ids,
|
|
30
|
-
invalid: "error" === validateStatus,
|
|
32
|
+
invalid: "error" === validateStatus || numericInputProps.invalid,
|
|
31
33
|
required: required,
|
|
32
34
|
size: size,
|
|
33
|
-
|
|
35
|
+
validateStatus: validateStatus,
|
|
34
36
|
children: children
|
|
35
37
|
}),
|
|
36
|
-
|
|
38
|
+
hasHelpText && /*#__PURE__*/ jsx(StatusText, {
|
|
37
39
|
id: helpTextId,
|
|
38
|
-
showIcon: showHelpTextIcon,
|
|
40
|
+
showIcon: "default" !== validateStatus || showHelpTextIcon,
|
|
39
41
|
size: size,
|
|
40
42
|
status: validateStatus,
|
|
41
43
|
children: helpText
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useId } from "react";
|
|
3
|
+
import { cloneElement, isValidElement, useId } from "react";
|
|
3
4
|
import { Label } from "../atoms/label.js";
|
|
4
5
|
import { StatusText } from "../atoms/status-text.js";
|
|
5
6
|
import { Textarea } from "../atoms/textarea.js";
|
|
6
|
-
|
|
7
|
+
import { joinDescribedBy } from "../internal/described-by.js";
|
|
8
|
+
function FormTextareaRaw({ id, label, validateStatus = "default", helpText, showHelpTextIcon, size = "md", required, disabled, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, "aria-errormessage": ariaErrorMessage, ...props }) {
|
|
7
9
|
const generatedId = useId();
|
|
10
|
+
const generatedMessageId = useId();
|
|
8
11
|
const controlId = id || generatedId;
|
|
12
|
+
const hasHelpText = null != helpText && false !== helpText && "" !== helpText;
|
|
13
|
+
const suppliedMessage = /*#__PURE__*/ isValidElement(helpText) && helpText.type === StatusText ? helpText : void 0;
|
|
14
|
+
const messageId = suppliedMessage?.props.id || generatedMessageId;
|
|
15
|
+
const status = "default" === validateStatus ? suppliedMessage?.props.status ?? validateStatus : validateStatus;
|
|
16
|
+
const invalid = "error" === status;
|
|
17
|
+
const messageProps = {
|
|
18
|
+
id: messageId,
|
|
19
|
+
status,
|
|
20
|
+
size,
|
|
21
|
+
showIcon: "default" !== status || showHelpTextIcon
|
|
22
|
+
};
|
|
9
23
|
return /*#__PURE__*/ jsxs("div", {
|
|
10
24
|
className: "flex flex-col gap-form-field-gap",
|
|
11
25
|
children: [
|
|
@@ -17,36 +31,25 @@ function FormTextareaRaw({ id, label, validateStatus = "default", helpText, size
|
|
|
17
31
|
children: label
|
|
18
32
|
}),
|
|
19
33
|
/*#__PURE__*/ jsx(Textarea, {
|
|
34
|
+
...props,
|
|
35
|
+
"aria-describedby": joinDescribedBy(ariaDescribedBy, hasHelpText ? messageId : void 0),
|
|
36
|
+
"aria-errormessage": joinDescribedBy(ariaErrorMessage, invalid && hasHelpText ? messageId : void 0),
|
|
37
|
+
"aria-invalid": invalid ? true : ariaInvalid,
|
|
20
38
|
disabled: disabled,
|
|
21
39
|
id: controlId,
|
|
22
40
|
required: required,
|
|
23
41
|
size: size,
|
|
24
|
-
variant:
|
|
25
|
-
...props
|
|
42
|
+
variant: "default" === status ? props.variant : status
|
|
26
43
|
}),
|
|
27
|
-
|
|
44
|
+
hasHelpText && (suppliedMessage ? /*#__PURE__*/ cloneElement(suppliedMessage, messageProps) : /*#__PURE__*/ jsx(StatusText, {
|
|
45
|
+
...messageProps,
|
|
46
|
+
children: helpText
|
|
47
|
+
}))
|
|
28
48
|
]
|
|
29
49
|
});
|
|
30
50
|
}
|
|
31
|
-
function FormTextarea(
|
|
32
|
-
const helpTextId = useId();
|
|
33
|
-
const describedBy = [
|
|
34
|
-
ariaDescribedBy,
|
|
35
|
-
helpText ? helpTextId : void 0
|
|
36
|
-
].filter(Boolean).join(" ") || void 0;
|
|
51
|
+
function FormTextarea(props) {
|
|
37
52
|
return /*#__PURE__*/ jsx(FormTextareaRaw, {
|
|
38
|
-
"aria-describedby": describedBy,
|
|
39
|
-
"aria-invalid": "error" === validateStatus ? true : ariaInvalid,
|
|
40
|
-
helpText: helpText && /*#__PURE__*/ jsx(StatusText, {
|
|
41
|
-
id: helpTextId,
|
|
42
|
-
showIcon: showHelpTextIcon,
|
|
43
|
-
size: size,
|
|
44
|
-
status: validateStatus,
|
|
45
|
-
children: helpText
|
|
46
|
-
}),
|
|
47
|
-
id: id,
|
|
48
|
-
size: size,
|
|
49
|
-
validateStatus: validateStatus,
|
|
50
53
|
...props
|
|
51
54
|
});
|
|
52
55
|
}
|