@invoiceonline/ui-react 0.0.0 → 0.2.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/AGENTS.md +100 -0
- package/CHANGELOG.md +149 -0
- package/LICENSE +9 -0
- package/README.md +77 -1
- package/dist/assets/label-brush-1.svg +6 -0
- package/dist/assets/pattern-dark.svg +113 -0
- package/dist/components/action-row/ActionRow.d.ts +178 -0
- package/dist/components/action-row/ActionRow.js +340 -0
- package/dist/components/action-row/index.d.ts +2 -0
- package/dist/components/action-row/index.js +1 -0
- package/dist/components/alert/Alert.d.ts +314 -0
- package/dist/components/alert/Alert.js +446 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/anchored-panel/AnchoredPanel.d.ts +41 -0
- package/dist/components/anchored-panel/AnchoredPanel.js +72 -0
- package/dist/components/anchored-panel/index.d.ts +3 -0
- package/dist/components/anchored-panel/index.js +3 -0
- package/dist/components/badge/Badge.d.ts +146 -0
- package/dist/components/badge/Badge.js +258 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/banner/Banner.d.ts +209 -0
- package/dist/components/banner/Banner.js +339 -0
- package/dist/components/banner/index.d.ts +2 -0
- package/dist/components/banner/index.js +1 -0
- package/dist/components/button/Button.d.ts +54 -0
- package/dist/components/button/Button.js +312 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button-group/ButtonGroup.d.ts +187 -0
- package/dist/components/button-group/ButtonGroup.js +217 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.js +1 -0
- package/dist/components/card-select/CardSelect.d.ts +274 -0
- package/dist/components/card-select/CardSelect.js +561 -0
- package/dist/components/card-select/CardSelectGroup.d.ts +92 -0
- package/dist/components/card-select/CardSelectGroup.js +72 -0
- package/dist/components/card-select/index.d.ts +3 -0
- package/dist/components/card-select/index.js +3 -0
- package/dist/components/checkbox/Checkbox.d.ts +104 -0
- package/dist/components/checkbox/Checkbox.js +194 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/chip/Chip.d.ts +250 -0
- package/dist/components/chip/Chip.js +441 -0
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/chip/index.js +1 -0
- package/dist/components/column-header/ColumnHeader.d.ts +144 -0
- package/dist/components/column-header/ColumnHeader.js +209 -0
- package/dist/components/column-header/index.d.ts +2 -0
- package/dist/components/column-header/index.js +1 -0
- package/dist/components/combobox-field/Combobox.d.ts +104 -0
- package/dist/components/combobox-field/Combobox.js +355 -0
- package/dist/components/combobox-field/ComboboxField.d.ts +76 -0
- package/dist/components/combobox-field/ComboboxField.js +98 -0
- package/dist/components/combobox-field/index.d.ts +3 -0
- package/dist/components/combobox-field/index.js +3 -0
- package/dist/components/date-picker/DatePicker.d.ts +53 -0
- package/dist/components/date-picker/DatePicker.js +329 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/divider/Divider.d.ts +81 -0
- package/dist/components/divider/Divider.js +93 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.js +1 -0
- package/dist/components/drawer/Drawer.d.ts +128 -0
- package/dist/components/drawer/Drawer.js +367 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/dropdown-button/DropdownButton.d.ts +72 -0
- package/dist/components/dropdown-button/DropdownButton.js +122 -0
- package/dist/components/dropdown-button/index.d.ts +2 -0
- package/dist/components/dropdown-button/index.js +1 -0
- package/dist/components/faq/FAQ.d.ts +135 -0
- package/dist/components/faq/FAQ.js +258 -0
- package/dist/components/faq/index.d.ts +2 -0
- package/dist/components/faq/index.js +1 -0
- package/dist/components/field/Field.d.ts +119 -0
- package/dist/components/field/Field.js +332 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.js +1 -0
- package/dist/components/field-pair/FieldPair.d.ts +210 -0
- package/dist/components/field-pair/FieldPair.js +335 -0
- package/dist/components/field-pair/index.d.ts +2 -0
- package/dist/components/field-pair/index.js +1 -0
- package/dist/components/file-upload/FileUpload.d.ts +137 -0
- package/dist/components/file-upload/FileUpload.js +434 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/file-upload/index.js +1 -0
- package/dist/components/filter-chip/FilterChip.d.ts +373 -0
- package/dist/components/filter-chip/FilterChip.js +517 -0
- package/dist/components/filter-chip/index.d.ts +2 -0
- package/dist/components/filter-chip/index.js +1 -0
- package/dist/components/filter-facet/FilterFacet.d.ts +116 -0
- package/dist/components/filter-facet/FilterFacet.js +632 -0
- package/dist/components/filter-facet/index.d.ts +2 -0
- package/dist/components/filter-facet/index.js +1 -0
- package/dist/components/firm-avatar/FirmAvatar.d.ts +75 -0
- package/dist/components/firm-avatar/FirmAvatar.js +119 -0
- package/dist/components/firm-avatar/index.d.ts +2 -0
- package/dist/components/firm-avatar/index.js +1 -0
- package/dist/components/form-actions/FormActions.d.ts +123 -0
- package/dist/components/form-actions/FormActions.js +195 -0
- package/dist/components/form-actions/index.d.ts +2 -0
- package/dist/components/form-actions/index.js +1 -0
- package/dist/components/form-block/FormBlock.d.ts +252 -0
- package/dist/components/form-block/FormBlock.js +420 -0
- package/dist/components/form-block/index.d.ts +3 -0
- package/dist/components/form-block/index.js +3 -0
- package/dist/components/form-section/FormSection.d.ts +130 -0
- package/dist/components/form-section/FormSection.js +206 -0
- package/dist/components/form-section/index.d.ts +2 -0
- package/dist/components/form-section/index.js +1 -0
- package/dist/components/heading/Heading.d.ts +69 -0
- package/dist/components/heading/Heading.js +79 -0
- package/dist/components/heading/index.d.ts +2 -0
- package/dist/components/heading/index.js +1 -0
- package/dist/components/heading-group/HeadingGroup.d.ts +258 -0
- package/dist/components/heading-group/HeadingGroup.js +255 -0
- package/dist/components/heading-group/index.d.ts +2 -0
- package/dist/components/heading-group/index.js +1 -0
- package/dist/components/hero/Hero.d.ts +268 -0
- package/dist/components/hero/Hero.js +316 -0
- package/dist/components/hero/index.d.ts +2 -0
- package/dist/components/hero/index.js +1 -0
- package/dist/components/icon/Icon.d.ts +27 -0
- package/dist/components/icon/Icon.js +30 -0
- package/dist/components/icon/index.d.ts +3 -0
- package/dist/components/icon/index.js +3 -0
- package/dist/components/icon-button/IconButton.d.ts +75 -0
- package/dist/components/icon-button/IconButton.js +151 -0
- package/dist/components/icon-button/index.d.ts +2 -0
- package/dist/components/icon-button/index.js +1 -0
- package/dist/components/item-row/ItemRow.d.ts +253 -0
- package/dist/components/item-row/ItemRow.js +496 -0
- package/dist/components/item-row/index.d.ts +2 -0
- package/dist/components/item-row/index.js +1 -0
- package/dist/components/list-row/ListRow.d.ts +165 -0
- package/dist/components/list-row/ListRow.js +233 -0
- package/dist/components/list-row/index.d.ts +2 -0
- package/dist/components/list-row/index.js +1 -0
- package/dist/components/menu/Menu.d.ts +64 -0
- package/dist/components/menu/Menu.js +186 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/modal/Modal.d.ts +272 -0
- package/dist/components/modal/Modal.js +788 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.js +1 -0
- package/dist/components/nav-link/NavLink.d.ts +123 -0
- package/dist/components/nav-link/NavLink.js +157 -0
- package/dist/components/nav-link/index.d.ts +2 -0
- package/dist/components/nav-link/index.js +1 -0
- package/dist/components/number-field/NumberField.d.ts +62 -0
- package/dist/components/number-field/NumberField.js +210 -0
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/index.js +1 -0
- package/dist/components/pagination/Pagination.d.ts +133 -0
- package/dist/components/pagination/Pagination.js +217 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/index.js +3 -0
- package/dist/components/popover-surface/index.d.ts +2 -0
- package/dist/components/popover-surface/index.js +1 -0
- package/dist/components/progress-bar/ProgressBar.d.ts +260 -0
- package/dist/components/progress-bar/ProgressBar.js +470 -0
- package/dist/components/progress-bar/index.d.ts +2 -0
- package/dist/components/progress-bar/index.js +1 -0
- package/dist/components/promo-sticker/PromoSticker.d.ts +204 -0
- package/dist/components/promo-sticker/PromoSticker.js +177 -0
- package/dist/components/promo-sticker/index.d.ts +2 -0
- package/dist/components/promo-sticker/index.js +1 -0
- package/dist/components/promo-surface/PromoSurface.d.ts +94 -0
- package/dist/components/promo-surface/PromoSurface.js +119 -0
- package/dist/components/promo-surface/index.d.ts +2 -0
- package/dist/components/promo-surface/index.js +1 -0
- package/dist/components/radio/Radio.d.ts +92 -0
- package/dist/components/radio/Radio.js +171 -0
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/index.js +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +61 -0
- package/dist/components/radio-group/RadioGroup.js +51 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.js +1 -0
- package/dist/components/select/Select.d.ts +65 -0
- package/dist/components/select/Select.js +176 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/select-field/SelectField.d.ts +16 -0
- package/dist/components/select-field/SelectField.js +55 -0
- package/dist/components/select-field/index.d.ts +2 -0
- package/dist/components/select-field/index.js +1 -0
- package/dist/components/skeleton/Skeleton.d.ts +64 -0
- package/dist/components/skeleton/Skeleton.js +65 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.js +1 -0
- package/dist/components/split-button/SplitButton.d.ts +80 -0
- package/dist/components/split-button/SplitButton.js +182 -0
- package/dist/components/split-button/index.d.ts +2 -0
- package/dist/components/split-button/index.js +1 -0
- package/dist/components/status-summary-bar/StatusSummaryBar.d.ts +118 -0
- package/dist/components/status-summary-bar/StatusSummaryBar.js +278 -0
- package/dist/components/status-summary-bar/index.d.ts +2 -0
- package/dist/components/status-summary-bar/index.js +1 -0
- package/dist/components/subject-lookup-field/SubjectLookupField.d.ts +157 -0
- package/dist/components/subject-lookup-field/SubjectLookupField.js +663 -0
- package/dist/components/subject-lookup-field/index.d.ts +2 -0
- package/dist/components/subject-lookup-field/index.js +1 -0
- package/dist/components/switch/Switch.d.ts +152 -0
- package/dist/components/switch/Switch.js +307 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/table/Table.d.ts +5 -0
- package/dist/components/table/Table.js +601 -0
- package/dist/components/table/index.d.ts +6 -0
- package/dist/components/table/index.js +6 -0
- package/dist/components/text-field/TextField.d.ts +160 -0
- package/dist/components/text-field/TextField.js +244 -0
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/index.js +1 -0
- package/dist/components/text-link/TextLink.d.ts +260 -0
- package/dist/components/text-link/TextLink.js +303 -0
- package/dist/components/text-link/index.d.ts +2 -0
- package/dist/components/text-link/index.js +1 -0
- package/dist/components/textarea/Textarea.d.ts +93 -0
- package/dist/components/textarea/Textarea.js +256 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +129 -0
- package/dist/components/tooltip/Tooltip.js +457 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/unit-field/UnitField.d.ts +46 -0
- package/dist/components/unit-field/UnitField.js +133 -0
- package/dist/components/unit-field/index.d.ts +2 -0
- package/dist/components/unit-field/index.js +1 -0
- package/dist/icons/icon-registry.generated.js +500 -0
- package/dist/icons/icon-types.generated.d.ts +2 -0
- package/dist/icons/icon-types.generated.js +126 -0
- package/dist/index.d.ts +130 -0
- package/dist/index.js +74 -0
- package/dist/internal/BottomSheet.js +496 -0
- package/dist/internal/FodsProvider.d.ts +25 -0
- package/dist/internal/FodsProvider.js +32 -0
- package/dist/internal/MotionCaret.js +35 -0
- package/dist/internal/NumberFormatInput.d.ts +21 -0
- package/dist/internal/NumberFormatInput.js +126 -0
- package/dist/internal/SummaryDonut.d.ts +3 -0
- package/dist/internal/SummaryDonut.js +300 -0
- package/dist/internal/buttonSegment.d.ts +44 -0
- package/dist/internal/buttonSegment.js +126 -0
- package/dist/internal/collapseRoom.js +128 -0
- package/dist/internal/comboboxKeys.js +44 -0
- package/dist/internal/contentPresence.js +46 -0
- package/dist/internal/dayCell.js +95 -0
- package/dist/internal/dialogPortal.d.ts +2 -0
- package/dist/internal/dialogPortal.js +21 -0
- package/dist/internal/donutSweeps.js +65 -0
- package/dist/internal/enterOnViewGeometry.js +46 -0
- package/dist/internal/faqItem.js +80 -0
- package/dist/internal/floatingLabelMotion.js +68 -0
- package/dist/internal/formBlockContext.d.ts +22 -0
- package/dist/internal/formBlockContext.js +20 -0
- package/dist/internal/heightRoom.js +87 -0
- package/dist/internal/numberSeparators.js +62 -0
- package/dist/internal/overlayMotion.js +48 -0
- package/dist/internal/paginationItem.d.ts +8 -0
- package/dist/internal/paginationItem.js +22 -0
- package/dist/internal/popoverSurface.d.ts +8 -0
- package/dist/internal/popoverSurface.js +23 -0
- package/dist/internal/portalContainer.d.ts +1 -0
- package/dist/internal/portalContainer.js +6 -0
- package/dist/internal/progressBarItem.d.ts +207 -0
- package/dist/internal/progressBarItem.js +264 -0
- package/dist/internal/selectionControlText.js +12 -0
- package/dist/internal/statusSummaryParts.js +371 -0
- package/dist/internal/summaryMotion.js +75 -0
- package/dist/internal/table/ChildConnector.js +62 -0
- package/dist/internal/table/ChildRowPrefix.d.ts +9 -0
- package/dist/internal/table/ChildRowPrefix.js +27 -0
- package/dist/internal/table/ColumnSettings.js +135 -0
- package/dist/internal/table/ScrollRegion.js +114 -0
- package/dist/internal/table/TableEmpty.js +93 -0
- package/dist/internal/table/TableLayout.d.ts +17 -0
- package/dist/internal/table/TableLayout.js +29 -0
- package/dist/internal/table/TableLoadStatus.js +56 -0
- package/dist/internal/table/TableMobile.js +488 -0
- package/dist/internal/table/TruncatedCell.js +33 -0
- package/dist/internal/table/emptyValue.js +10 -0
- package/dist/internal/table/features.d.ts +41 -0
- package/dist/internal/table/features.js +31 -0
- package/dist/internal/table/recipes.js +227 -0
- package/dist/internal/table/rowClick.js +9 -0
- package/dist/internal/table/types.d.ts +325 -0
- package/dist/internal/table/types.js +13 -0
- package/dist/internal/tailwind-variants.d.ts +3 -0
- package/dist/internal/tailwind-variants.js +37 -0
- package/dist/internal/tooltipContext.js +5 -0
- package/dist/internal/tw-merge-config.generated.js +314 -0
- package/dist/internal/useAnchoredPanel.d.ts +87 -0
- package/dist/internal/useAnchoredPanel.js +108 -0
- package/dist/internal/useCountUp.js +53 -0
- package/dist/internal/useDateFieldTrigger.d.ts +60 -0
- package/dist/internal/useDateFieldTrigger.js +235 -0
- package/dist/internal/useEChart.js +59 -0
- package/dist/internal/useEnterOnView.js +42 -0
- package/dist/internal/useFloatingBar.js +100 -0
- package/dist/internal/useFormReset.js +44 -0
- package/dist/internal/useIsMobile.js +44 -0
- package/dist/internal/useOneRowOverflow.js +88 -0
- package/dist/internal/usePrefersReducedMotion.js +25 -0
- package/dist/internal/useReturnFocus.js +26 -0
- package/dist/internal/utils.d.ts +7 -0
- package/dist/internal/utils.js +58 -0
- package/dist/node_modules/@tanstack/store/dist/store.d.ts +29 -0
- package/dist/node_modules/@tanstack/store/dist/types.d.ts +38 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.types.d.ts +53 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.types.d.ts +90 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/coreFeatures.d.ts +17 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.types.d.ts +114 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.types.d.ts +51 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.types.d.ts +29 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.types.d.ts +129 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.types.d.ts +203 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/cell-selection/cellSelectionFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/cell-selection/cellSelectionFeature.types.d.ts +294 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/cell-spanning/cellSpanningFeature.d.ts +11 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/cell-spanning/cellSpanningFeature.types.d.ts +148 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-faceting/columnFacetingFeature.d.ts +12 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-faceting/columnFacetingFeature.types.d.ts +63 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-filtering/columnFilteringFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-filtering/columnFilteringFeature.types.d.ts +209 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-filtering/filterFns.d.ts +35 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-grouping/columnGroupingFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-grouping/columnGroupingFeature.types.d.ts +128 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-ordering/columnOrderingFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-ordering/columnOrderingFeature.types.d.ts +82 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-pinning/columnPinningFeature.d.ts +11 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-pinning/columnPinningFeature.types.d.ts +195 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-resizing/columnResizingFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-resizing/columnResizingFeature.types.d.ts +73 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-sizing/columnSizingFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-sizing/columnSizingFeature.types.d.ts +134 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.types.d.ts +92 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/global-filtering/globalFilteringFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/global-filtering/globalFilteringFeature.types.d.ts +67 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-aggregation/aggregationFns.d.ts +23 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-aggregation/rowAggregationFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-aggregation/rowAggregationFeature.types.d.ts +183 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-aggregation/rowAggregationFeature.utils.d.ts +18 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-expanding/rowExpandingFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-expanding/rowExpandingFeature.types.d.ts +125 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.types.d.ts +135 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-pinning/rowPinningFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-pinning/rowPinningFeature.types.d.ts +76 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.types.d.ts +187 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.types.d.ts +236 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-sorting/sortFns.d.ts +23 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/stockFeatures.d.ts +37 -0
- package/dist/node_modules/@tanstack/table-core/dist/helpers/columnHelper.d.ts +47 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/Cell.d.ts +16 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/Column.d.ts +30 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/ColumnDef.d.ts +123 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/Header.d.ts +12 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/HeaderGroup.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/Row.d.ts +24 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/RowModel.d.ts +19 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/RowModelFns.d.ts +11 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/Table.d.ts +53 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/TableFeatures.d.ts +416 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/TableOptions.d.ts +78 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/TableState.d.ts +46 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/type-utils.d.ts +25 -0
- package/dist/shared.css +179 -0
- package/dist/styles.css +5467 -0
- package/dist/theme.css +314 -0
- package/dist/theme.map.json +278 -0
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/index.js +1 -0
- package/dist/tokens/tokens.generated.d.ts +2040 -0
- package/dist/tokens/tokens.generated.js +2053 -0
- package/dist/tokens.css +484 -0
- package/dist/tokens.flat.json +429 -0
- package/docs/Consuming.mdx +396 -0
- package/docs/Contributing.mdx +78 -0
- package/docs/ForAgents.mdx +53 -0
- package/docs/Introduction.mdx +54 -0
- package/llms.txt +550 -0
- package/package.json +347 -3
- package/src/components/action-row/ActionRow.mdx +686 -0
- package/src/components/action-row/ActionRow.stories.tsx +669 -0
- package/src/components/action-row/ActionRow.tsx +632 -0
- package/src/components/action-row/index.ts +9 -0
- package/src/components/alert/Alert.mdx +377 -0
- package/src/components/alert/Alert.stories.tsx +674 -0
- package/src/components/alert/Alert.tsx +579 -0
- package/src/components/alert/index.ts +13 -0
- package/src/components/anchored-panel/AnchoredPanel.mdx +381 -0
- package/src/components/anchored-panel/AnchoredPanel.stories.tsx +593 -0
- package/src/components/anchored-panel/AnchoredPanel.tsx +176 -0
- package/src/components/anchored-panel/index.ts +15 -0
- package/src/components/badge/Badge.mdx +487 -0
- package/src/components/badge/Badge.stories.tsx +375 -0
- package/src/components/badge/Badge.tsx +360 -0
- package/src/components/badge/index.ts +10 -0
- package/src/components/banner/Banner.mdx +704 -0
- package/src/components/banner/Banner.stories.tsx +448 -0
- package/src/components/banner/Banner.tsx +602 -0
- package/src/components/banner/index.ts +14 -0
- package/src/components/button/Button.mdx +286 -0
- package/src/components/button/Button.stories.tsx +381 -0
- package/src/components/button/Button.tsx +384 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/button-group/ButtonGroup.mdx +512 -0
- package/src/components/button-group/ButtonGroup.stories.tsx +714 -0
- package/src/components/button-group/ButtonGroup.tsx +491 -0
- package/src/components/button-group/index.ts +10 -0
- package/src/components/card-select/CardSelect.mdx +662 -0
- package/src/components/card-select/CardSelect.stories.tsx +784 -0
- package/src/components/card-select/CardSelect.tsx +783 -0
- package/src/components/card-select/CardSelectGroup.tsx +169 -0
- package/src/components/card-select/index.ts +18 -0
- package/src/components/checkbox/Checkbox.mdx +269 -0
- package/src/components/checkbox/Checkbox.stories.tsx +306 -0
- package/src/components/checkbox/Checkbox.tsx +343 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/chip/Chip.mdx +683 -0
- package/src/components/chip/Chip.stories.tsx +734 -0
- package/src/components/chip/Chip.tsx +732 -0
- package/src/components/chip/index.ts +9 -0
- package/src/components/column-header/ColumnHeader.mdx +301 -0
- package/src/components/column-header/ColumnHeader.stories.tsx +319 -0
- package/src/components/column-header/ColumnHeader.tsx +287 -0
- package/src/components/column-header/index.ts +7 -0
- package/src/components/combobox-field/Combobox.tsx +693 -0
- package/src/components/combobox-field/ComboboxField.mdx +525 -0
- package/src/components/combobox-field/ComboboxField.stories.tsx +502 -0
- package/src/components/combobox-field/ComboboxField.tsx +259 -0
- package/src/components/combobox-field/index.ts +12 -0
- package/src/components/date-picker/DatePicker.mdx +440 -0
- package/src/components/date-picker/DatePicker.stories.tsx +458 -0
- package/src/components/date-picker/DatePicker.tsx +688 -0
- package/src/components/date-picker/index.ts +9 -0
- package/src/components/divider/Divider.mdx +256 -0
- package/src/components/divider/Divider.stories.tsx +177 -0
- package/src/components/divider/Divider.tsx +193 -0
- package/src/components/divider/index.ts +1 -0
- package/src/components/drawer/Drawer.mdx +518 -0
- package/src/components/drawer/Drawer.stories.tsx +392 -0
- package/src/components/drawer/Drawer.tsx +683 -0
- package/src/components/drawer/index.ts +1 -0
- package/src/components/dropdown-button/DropdownButton.mdx +285 -0
- package/src/components/dropdown-button/DropdownButton.stories.tsx +398 -0
- package/src/components/dropdown-button/DropdownButton.tsx +198 -0
- package/src/components/dropdown-button/index.ts +7 -0
- package/src/components/faq/FAQ.mdx +364 -0
- package/src/components/faq/FAQ.stories.tsx +343 -0
- package/src/components/faq/FAQ.tsx +337 -0
- package/src/components/faq/index.ts +1 -0
- package/src/components/field/Field.mdx +129 -0
- package/src/components/field/Field.stories.tsx +461 -0
- package/src/components/field/Field.tsx +787 -0
- package/src/components/field/index.ts +20 -0
- package/src/components/field-pair/FieldPair.mdx +312 -0
- package/src/components/field-pair/FieldPair.stories.tsx +539 -0
- package/src/components/field-pair/FieldPair.tsx +845 -0
- package/src/components/field-pair/index.ts +9 -0
- package/src/components/file-upload/FileUpload.mdx +345 -0
- package/src/components/file-upload/FileUpload.stories.tsx +698 -0
- package/src/components/file-upload/FileUpload.tsx +802 -0
- package/src/components/file-upload/index.ts +6 -0
- package/src/components/filter-chip/FilterChip.mdx +778 -0
- package/src/components/filter-chip/FilterChip.stories.tsx +827 -0
- package/src/components/filter-chip/FilterChip.tsx +881 -0
- package/src/components/filter-chip/index.ts +11 -0
- package/src/components/filter-facet/FilterFacet.mdx +536 -0
- package/src/components/filter-facet/FilterFacet.stories.tsx +506 -0
- package/src/components/filter-facet/FilterFacet.tsx +1160 -0
- package/src/components/filter-facet/index.ts +7 -0
- package/src/components/firm-avatar/FirmAvatar.mdx +280 -0
- package/src/components/firm-avatar/FirmAvatar.stories.tsx +147 -0
- package/src/components/firm-avatar/FirmAvatar.tsx +172 -0
- package/src/components/firm-avatar/index.ts +7 -0
- package/src/components/form-actions/FormActions.mdx +518 -0
- package/src/components/form-actions/FormActions.stories.tsx +621 -0
- package/src/components/form-actions/FormActions.tsx +273 -0
- package/src/components/form-actions/index.ts +6 -0
- package/src/components/form-block/FormBlock.mdx +728 -0
- package/src/components/form-block/FormBlock.stories.tsx +813 -0
- package/src/components/form-block/FormBlock.tsx +679 -0
- package/src/components/form-block/index.ts +13 -0
- package/src/components/form-section/FormSection.mdx +436 -0
- package/src/components/form-section/FormSection.stories.tsx +407 -0
- package/src/components/form-section/FormSection.tsx +290 -0
- package/src/components/form-section/index.ts +17 -0
- package/src/components/heading/Heading.mdx +206 -0
- package/src/components/heading/Heading.stories.tsx +169 -0
- package/src/components/heading/Heading.tsx +124 -0
- package/src/components/heading/index.ts +8 -0
- package/src/components/heading-group/HeadingGroup.mdx +521 -0
- package/src/components/heading-group/HeadingGroup.stories.tsx +353 -0
- package/src/components/heading-group/HeadingGroup.tsx +396 -0
- package/src/components/heading-group/index.ts +7 -0
- package/src/components/hero/Hero.mdx +742 -0
- package/src/components/hero/Hero.stories.tsx +527 -0
- package/src/components/hero/Hero.tsx +807 -0
- package/src/components/hero/index.ts +1 -0
- package/src/components/icon/Icon.mdx +329 -0
- package/src/components/icon/Icon.stories.tsx +398 -0
- package/src/components/icon/Icon.tsx +97 -0
- package/src/components/icon/index.ts +2 -0
- package/src/components/icon-button/IconButton.mdx +206 -0
- package/src/components/icon-button/IconButton.stories.tsx +341 -0
- package/src/components/icon-button/IconButton.tsx +273 -0
- package/src/components/icon-button/index.ts +1 -0
- package/src/components/item-row/ItemRow.mdx +533 -0
- package/src/components/item-row/ItemRow.stories.tsx +434 -0
- package/src/components/item-row/ItemRow.tsx +676 -0
- package/src/components/item-row/index.ts +9 -0
- package/src/components/list-row/ListRow.mdx +404 -0
- package/src/components/list-row/ListRow.stories.tsx +404 -0
- package/src/components/list-row/ListRow.tsx +424 -0
- package/src/components/list-row/index.ts +1 -0
- package/src/components/menu/Menu.mdx +268 -0
- package/src/components/menu/Menu.stories.tsx +455 -0
- package/src/components/menu/Menu.tsx +452 -0
- package/src/components/menu/index.ts +1 -0
- package/src/components/modal/Modal.mdx +854 -0
- package/src/components/modal/Modal.stories.tsx +881 -0
- package/src/components/modal/Modal.tsx +1434 -0
- package/src/components/modal/index.ts +1 -0
- package/src/components/nav-link/NavLink.mdx +196 -0
- package/src/components/nav-link/NavLink.stories.tsx +243 -0
- package/src/components/nav-link/NavLink.tsx +222 -0
- package/src/components/nav-link/index.ts +1 -0
- package/src/components/number-field/NumberField.mdx +223 -0
- package/src/components/number-field/NumberField.stories.tsx +291 -0
- package/src/components/number-field/NumberField.tsx +388 -0
- package/src/components/number-field/index.ts +6 -0
- package/src/components/pagination/Pagination.mdx +305 -0
- package/src/components/pagination/Pagination.stories.tsx +333 -0
- package/src/components/pagination/Pagination.tsx +343 -0
- package/src/components/pagination/index.ts +8 -0
- package/src/components/popover-surface/PopoverSurface.mdx +158 -0
- package/src/components/popover-surface/PopoverSurface.stories.tsx +421 -0
- package/src/components/popover-surface/index.ts +1 -0
- package/src/components/progress-bar/ProgressBar.mdx +802 -0
- package/src/components/progress-bar/ProgressBar.stories.tsx +533 -0
- package/src/components/progress-bar/ProgressBar.tsx +654 -0
- package/src/components/progress-bar/index.ts +9 -0
- package/src/components/promo-sticker/PromoSticker.mdx +436 -0
- package/src/components/promo-sticker/PromoSticker.stories.tsx +363 -0
- package/src/components/promo-sticker/PromoSticker.tsx +313 -0
- package/src/components/promo-sticker/index.ts +7 -0
- package/src/components/promo-surface/PromoSurface.mdx +399 -0
- package/src/components/promo-surface/PromoSurface.stories.tsx +270 -0
- package/src/components/promo-surface/PromoSurface.tsx +305 -0
- package/src/components/promo-surface/index.ts +7 -0
- package/src/components/radio/Radio.mdx +243 -0
- package/src/components/radio/Radio.stories.tsx +307 -0
- package/src/components/radio/Radio.tsx +288 -0
- package/src/components/radio/index.ts +1 -0
- package/src/components/radio-group/RadioGroup.mdx +119 -0
- package/src/components/radio-group/RadioGroup.stories.tsx +225 -0
- package/src/components/radio-group/RadioGroup.tsx +139 -0
- package/src/components/radio-group/index.ts +1 -0
- package/src/components/select/Select.mdx +241 -0
- package/src/components/select/Select.stories.tsx +404 -0
- package/src/components/select/Select.tsx +381 -0
- package/src/components/select/index.ts +1 -0
- package/src/components/select-field/SelectField.mdx +324 -0
- package/src/components/select-field/SelectField.stories.tsx +460 -0
- package/src/components/select-field/SelectField.tsx +138 -0
- package/src/components/select-field/index.ts +1 -0
- package/src/components/skeleton/Skeleton.mdx +194 -0
- package/src/components/skeleton/Skeleton.stories.tsx +260 -0
- package/src/components/skeleton/Skeleton.tsx +107 -0
- package/src/components/skeleton/index.ts +1 -0
- package/src/components/split-button/SplitButton.mdx +445 -0
- package/src/components/split-button/SplitButton.stories.tsx +465 -0
- package/src/components/split-button/SplitButton.tsx +361 -0
- package/src/components/split-button/index.ts +7 -0
- package/src/components/status-summary-bar/StatusSummaryBar.mdx +338 -0
- package/src/components/status-summary-bar/StatusSummaryBar.stories.tsx +408 -0
- package/src/components/status-summary-bar/StatusSummaryBar.tsx +428 -0
- package/src/components/status-summary-bar/index.ts +8 -0
- package/src/components/subject-lookup-field/SubjectLookupField.mdx +378 -0
- package/src/components/subject-lookup-field/SubjectLookupField.stories.tsx +393 -0
- package/src/components/subject-lookup-field/SubjectLookupField.tsx +1079 -0
- package/src/components/subject-lookup-field/index.ts +11 -0
- package/src/components/switch/Switch.mdx +376 -0
- package/src/components/switch/Switch.stories.tsx +296 -0
- package/src/components/switch/Switch.tsx +483 -0
- package/src/components/switch/index.ts +1 -0
- package/src/components/table/Table.mdx +575 -0
- package/src/components/table/Table.stories.tsx +1049 -0
- package/src/components/table/Table.tsx +745 -0
- package/src/components/table/TableConsumers.stories.tsx +195 -0
- package/src/components/table/_tableFixtures.ts +1189 -0
- package/src/components/table/index.ts +22 -0
- package/src/components/text-field/TextField.mdx +699 -0
- package/src/components/text-field/TextField.stories.tsx +674 -0
- package/src/components/text-field/TextField.tsx +645 -0
- package/src/components/text-field/index.ts +11 -0
- package/src/components/text-link/TextLink.mdx +353 -0
- package/src/components/text-link/TextLink.stories.tsx +458 -0
- package/src/components/text-link/TextLink.tsx +504 -0
- package/src/components/text-link/index.ts +10 -0
- package/src/components/textarea/Textarea.mdx +244 -0
- package/src/components/textarea/Textarea.stories.tsx +371 -0
- package/src/components/textarea/Textarea.tsx +489 -0
- package/src/components/textarea/index.ts +9 -0
- package/src/components/tooltip/Tooltip.mdx +462 -0
- package/src/components/tooltip/Tooltip.stories.tsx +500 -0
- package/src/components/tooltip/Tooltip.tsx +756 -0
- package/src/components/tooltip/index.ts +13 -0
- package/src/components/unit-field/UnitField.mdx +215 -0
- package/src/components/unit-field/UnitField.stories.tsx +291 -0
- package/src/components/unit-field/UnitField.tsx +255 -0
- package/src/components/unit-field/index.ts +7 -0
- package/src/icons/icon-registry.generated.ts +510 -0
- package/src/icons/icon-types.generated.ts +256 -0
- package/src/index.ts +70 -0
- package/src/internal/BottomSheet.tsx +714 -0
- package/src/internal/FodsProvider.tsx +36 -0
- package/src/internal/MotionCaret.tsx +53 -0
- package/src/internal/NumberFormatInput.tsx +276 -0
- package/src/internal/SummaryDonut.tsx +359 -0
- package/src/internal/buttonSegment.ts +241 -0
- package/src/internal/collapseRoom.ts +130 -0
- package/src/internal/comboboxKeys.ts +90 -0
- package/src/internal/contentPresence.ts +46 -0
- package/src/internal/dayCell.ts +274 -0
- package/src/internal/dialogPortal.ts +50 -0
- package/src/internal/donutSweeps.ts +77 -0
- package/src/internal/enterOnViewGeometry.ts +53 -0
- package/src/internal/faqItem.ts +104 -0
- package/src/internal/floatingLabelMotion.tsx +109 -0
- package/src/internal/formBlockContext.ts +27 -0
- package/src/internal/heightRoom.ts +135 -0
- package/src/internal/numberSeparators.ts +93 -0
- package/src/internal/overlayMotion.tsx +32 -0
- package/src/internal/paginationItem.ts +106 -0
- package/src/internal/popoverSurface.ts +78 -0
- package/src/internal/portalContainer.ts +11 -0
- package/src/internal/progressBarItem.ts +356 -0
- package/src/internal/selectionControlText.ts +42 -0
- package/src/internal/statusSummaryParts.tsx +475 -0
- package/src/internal/summaryMotion.ts +111 -0
- package/src/internal/table/ChildConnector.tsx +57 -0
- package/src/internal/table/ChildRowPrefix.tsx +21 -0
- package/src/internal/table/ColumnSettings.tsx +194 -0
- package/src/internal/table/ScrollRegion.tsx +176 -0
- package/src/internal/table/TableEmpty.tsx +99 -0
- package/src/internal/table/TableLayout.tsx +29 -0
- package/src/internal/table/TableLoadStatus.tsx +60 -0
- package/src/internal/table/TableMobile.tsx +582 -0
- package/src/internal/table/TruncatedCell.tsx +35 -0
- package/src/internal/table/emptyValue.ts +11 -0
- package/src/internal/table/features.ts +44 -0
- package/src/internal/table/recipes.ts +263 -0
- package/src/internal/table/rowClick.ts +8 -0
- package/src/internal/table/types.ts +342 -0
- package/src/internal/tailwind-variants.ts +65 -0
- package/src/internal/tooltipContext.ts +15 -0
- package/src/internal/tw-merge-config.generated.ts +275 -0
- package/src/internal/useAnchoredPanel.ts +340 -0
- package/src/internal/useCountUp.ts +65 -0
- package/src/internal/useDateFieldTrigger.tsx +497 -0
- package/src/internal/useEChart.ts +88 -0
- package/src/internal/useEnterOnView.ts +80 -0
- package/src/internal/useFloatingBar.ts +125 -0
- package/src/internal/useFormReset.ts +57 -0
- package/src/internal/useIsMobile.ts +64 -0
- package/src/internal/useNoImplicitSubmit.ts +41 -0
- package/src/internal/useOneRowOverflow.ts +103 -0
- package/src/internal/usePrefersReducedMotion.ts +27 -0
- package/src/internal/useReturnFocus.ts +34 -0
- package/src/internal/utils.ts +58 -0
- package/src/recipes/EmptyState.stories.tsx +105 -0
- package/src/recipes/Form.stories.tsx +360 -0
- package/src/recipes/ModalWithForm.stories.tsx +219 -0
- package/src/recipes/Recipes.mdx +61 -0
- package/src/recipes/TableWithFilters.stories.tsx +278 -0
- package/src/storybook/FodsFamily.tsx +39 -0
- package/src/storybook/Section.tsx +36 -0
- package/src/storybook/a11y.ts +24 -0
- package/src/storybook/assets/banner-character-bartender.webp +0 -0
- package/src/storybook/assets/banner-invoice-sheet-left.webp +0 -0
- package/src/storybook/assets/banner-invoice-sheet-right.webp +0 -0
- package/src/storybook/assets/invoice-hero.webp +0 -0
- package/src/storybook/assets/invoice.webp +0 -0
- package/src/storybook/assets/section-document-info.svg +21 -0
- package/src/storybook/assets/section-gear-checklist.svg +11 -0
- package/src/storybook/assets/section-person-arrow-in.svg +15 -0
- package/src/storybook/assets/section-person-arrow-out.svg +22 -0
- package/src/storybook/assets/section-receipt-dollar.svg +23 -0
- package/src/storybook/assets/table-empty-folder-empty.png +0 -0
- package/src/storybook/assets/table-empty-folder-magnifying-glass.png +0 -0
- package/src/storybook/assets/table-empty-funnel.png +0 -0
- package/src/storybook/assets/table-empty-load-failed.png +0 -0
- package/src/storybook/assets/wallet-spot.png +0 -0
- package/src/storybook/assets.d.ts +17 -0
- package/src/storybook/componentDoc.ts +41 -0
- package/src/storybook/fitFrame.tsx +70 -0
- package/src/storybook/forceStates.tsx +647 -0
- package/src/storybook/illustrations.tsx +66 -0
- package/src/storybook/viewportFrame.tsx +58 -0
- package/src/styles/assets/label-brush-1.svg +6 -0
- package/src/styles/assets/pattern-dark.svg +113 -0
- package/src/styles/base.css +106 -0
- package/src/styles/index.css +15 -0
- package/src/styles/motion.css +157 -0
- package/src/styles/promo-sticker.css +27 -0
- package/src/styles/promo-surface.css +49 -0
- package/src/styles/shared.css +11 -0
- package/src/styles/theme.generated.css +314 -0
- package/src/styles/theme.map.json +278 -0
- package/src/styles/tracking.generated.css +12 -0
- package/src/tokens/index.ts +4 -0
- package/src/tokens/tokens.generated.ts +542 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
2
|
+
import * as TextareaStories from './Textarea.stories';
|
|
3
|
+
|
|
4
|
+
<Meta of={TextareaStories} tags={['autodocs']} />
|
|
5
|
+
|
|
6
|
+
# Textarea
|
|
7
|
+
|
|
8
|
+
## Metadata
|
|
9
|
+
|
|
10
|
+
- **Layer:** atom
|
|
11
|
+
- **Status:** stable
|
|
12
|
+
- **Tokens used:** `--bg-primary`, `--border-width-100`, `--border-width-200`, `--disabled-background`, `--disabled-foreground`, `--font-body`, `--font-size-base`, `--font-size-heading-h5`, `--font-size-sm`, `--font-size-xs`, `--font-size-xxs`, `--font-weight-bold`, `--font-weight-normal`, `--icon-muted`, `--leading-loose`, `--leading-relaxed`, `--outline-default`, `--outline-focus`, `--outline-strong`, `--radius-400`, `--space-1000`, `--space-200`, `--space-300`, `--space-400`, `--space-500`, `--space-700`, `--space-800`, `--space-900`, `--status-danger`, `--status-success-solid`, `--status-success-tint-foreground`, `--text-placeholder`, `--text-primary`, `--text-secondary`, `--text-wrap-body`
|
|
13
|
+
- **Manifest version:** `1.11.2`
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`Textarea` is the redesigned multi-line text field — the same outlined *shell* as the new Text Field, made multi-line: the value wraps, the field auto-grows from its resting single-line height, and a corner grip lets the user drag to resize. Wrap it in `Field` for the floating label, helper and error/success messaging.
|
|
18
|
+
|
|
19
|
+
Use it for longer, free-form text: invoice remarks (*poznámky*), descriptions, messages, long addresses — anything a single line won't comfortably hold. Do **not** use it for short single-line values (use `Input`/`TextField`), a choice from a fixed set (`Select`), or dates (`DatePicker`). If the value is one line and stays one line, it's a TextField.
|
|
20
|
+
|
|
21
|
+
<Canvas of={TextareaStories.Playground} />
|
|
22
|
+
|
|
23
|
+
## Rationale
|
|
24
|
+
|
|
25
|
+
`Textarea` shares the Text Field shell (border, fill, radius, floating label, helper line) and promotes the parts multi-line entry actually needs:
|
|
26
|
+
|
|
27
|
+
1. **Multi-line is a first-class field, not a stretched input.** The value wraps and the field grows from its resting height, top-aligned — the box only ever gets taller, never clipped to one line.
|
|
28
|
+
2. **The user can resize.** A native affordance — the corner grip (`resize: vertical`) — for when auto-grow isn't enough. Editable states only.
|
|
29
|
+
3. **An optional character counter.** Length-limited fields get a live count; off by default so a plain notes field stays clean.
|
|
30
|
+
4. **One shell, many fields.** Border, fill, slots and the floating-label notch are the single shape reused by Text Field and the Select trigger.
|
|
31
|
+
|
|
32
|
+
> **`minRows` is in the spec now.** It used to be a FE-only knob layered on a conceptual floor. `textarea` 1.7.0 (2026-09-02) removed the 3-row min-height floor entirely: the field rests at the shared single-line input-shell height (Medium 48 / Small 40, pixel-identical to Text Field) and `minRows` became a consumer opt-in with **default `1`** — a form that wants a visibly multi-line box on first paint sets it, the component no longer assumes it.
|
|
33
|
+
|
|
34
|
+
## Anatomy
|
|
35
|
+
|
|
36
|
+
- **Shell** — outlined `<div>` that owns the border/fill/radius/padding: `--bg-primary` fill, `--outline-default` 1px border, `--radius-400`. Height rests at the shared single-line input height (`minRows` default 1, no floor since 2026-09-02) — the inner textarea **auto-grows** with content, then scrolls at `maxRows`.
|
|
37
|
+
- **Value** — a borderless, transparent native `<textarea>`, `Body/M/Regular` (line-height 24) in **both** sizes — parity with Text Field; full width, top-aligned, wraps. `--text-primary` when filled; the placeholder is `--text-placeholder` (claudy/400 — one tier quieter than the label, so an empty field reads value > label > placeholder). An empty **disabled** field shows no placeholder: it shows an en dash `–` in `--disabled-foreground` (visual only, `aria-hidden`); the placeholder stays in the DOM, transparent, as the accessible-name fallback.
|
|
38
|
+
- **Status icon** — pinned **top-right** so it holds position as the field grows. Intrinsic (no leading/trailing user slots): appears only on Error / Success. **Error → `warning-circle`**, **Success → `check-circle`** (exactly like UnitField); size 24 (medium) / 20 (small).
|
|
39
|
+
- **Resize grip** — a painted `--icon-muted` diagonal glyph (10×10, 1.5px strokes, round caps) pinned to the shell's bottom-right corner; the browser's own `::-webkit-resizer` is hidden so only this one shows. It marks native `resize: vertical` and stays pointer-transparent — the drag zone is the textarea's own corner (which is why padding lives on the `<textarea>`, not the shell). Shown on the **editable states only** (default/focused/error/success); dropped on disabled.
|
|
40
|
+
- **Floating label / helper / optional marker** — not owned by `Textarea`; provided by the wrapping [`Field`](?path=/docs/design-system-atoms-field--docs).
|
|
41
|
+
- **Counter** — a live `used/limit` count rendered by the component **below the shell** (`--text-secondary`, reddens over the limit). Toggled by `counter`, requires a `limit`.
|
|
42
|
+
- **Gap** — the space between the shell and the helper / counter below it is `sizes[].helperGap` = `--space-200` (4), and the same step separates the counter from the helper when both are on (one stack spacing, manifest 1.11.0); `Field` applies it to the helper, `Textarea` to the counter.
|
|
43
|
+
|
|
44
|
+
## Variants
|
|
45
|
+
|
|
46
|
+
<Canvas of={TextareaStories.Matrix} />
|
|
47
|
+
|
|
48
|
+
<table>
|
|
49
|
+
<thead>
|
|
50
|
+
<tr><th>Axis</th><th>Values</th><th>Notes</th></tr>
|
|
51
|
+
</thead>
|
|
52
|
+
<tbody>
|
|
53
|
+
<tr><td><code>state</code></td><td><code>default</code> · <code>focused</code> · <code>error</code> · <code>success</code> · <code>disabled</code></td><td>the colour-matrix axis; read-only is deferred (not a variant)</td></tr>
|
|
54
|
+
<tr><td><code>size</code></td><td><code>md</code> · <code>sm</code></td><td>resting single-line height + vertical padding + status-icon size</td></tr>
|
|
55
|
+
<tr><td><code>content</code></td><td><code>empty</code> · <code>filled</code></td><td>Figma <strong>Has value</strong>; not a prop — it is the presence of a <code>value</code> / <code>defaultValue</code>. Placeholder ink vs value ink, and label floats vs sits inside. See <a href="#content">Content</a></td></tr>
|
|
56
|
+
<tr><td><code>counter</code></td><td>bool (default off)</td><td>live <code>used/limit</code> below-right; over-limit reddens; requires <code>limit</code></td></tr>
|
|
57
|
+
<tr><td><code>limit</code></td><td>number</td><td>soft cap — never truncates; over it the counter reddens and the consumer blocks submit</td></tr>
|
|
58
|
+
<tr><td><code>overLimitLabel</code></td><td>string (required with <code>counter</code>)</td><td>screen-reader wording for the over-limit note; consumer-supplied, so it can be translated</td></tr>
|
|
59
|
+
<tr><td><code>autoResize</code></td><td>bool (default on)</td><td>auto-grow to fit content; a manual grip drag latches it off</td></tr>
|
|
60
|
+
</tbody>
|
|
61
|
+
</table>
|
|
62
|
+
|
|
63
|
+
There are **no** leading/trailing user icon slots and **no** hover state (the border does not change on hover).
|
|
64
|
+
|
|
65
|
+
### Content
|
|
66
|
+
|
|
67
|
+
<Canvas of={TextareaStories.ContentMatrix} />
|
|
68
|
+
|
|
69
|
+
The manifest's third axis — Figma's **Has value** (True/False) — is not a prop: it is simply whether the field carries a value. It changes two things. **Inside the shell:** an empty field shows the placeholder in `--text-placeholder`, one tier quieter than the label (an en dash `–` in `--disabled-foreground` on a disabled field); a filled field shows the value in `--text-primary`. **On the `Field` label:** the float rule keys off it (see the rule box under [States](#states)). The matrix above renders the bare field; the label side of the axis is under [Label](#label).
|
|
70
|
+
|
|
71
|
+
## Sizes
|
|
72
|
+
|
|
73
|
+
<Canvas of={TextareaStories.Sizes} />
|
|
74
|
+
|
|
75
|
+
<table>
|
|
76
|
+
<thead>
|
|
77
|
+
<tr><th>Size</th><th>Padding</th><th>Font</th><th>Status icon</th><th>Helper gap</th><th>When</th></tr>
|
|
78
|
+
</thead>
|
|
79
|
+
<tbody>
|
|
80
|
+
<tr><td><code>md</code></td><td><code>--space-500</code> all sides</td><td><code>Body/M</code></td><td>24px</td><td><code>--space-200</code></td><td>standard forms (default)</td></tr>
|
|
81
|
+
<tr><td><code>sm</code></td><td><code>--space-500</code> x · <code>--space-400</code> y</td><td><code>Body/M</code></td><td>20px</td><td><code>--space-200</code></td><td>dense contexts — side panels, compact forms, table detail rows</td></tr>
|
|
82
|
+
</tbody>
|
|
83
|
+
</table>
|
|
84
|
+
|
|
85
|
+
Both open at the single-line resting height — Medium 48, Small 40, the same shell as Text Field — and auto-grow. Width is layout-driven (the field fills its form column); keep one size consistent within a form.
|
|
86
|
+
|
|
87
|
+
## States
|
|
88
|
+
|
|
89
|
+
<Canvas of={TextareaStories.States} />
|
|
90
|
+
|
|
91
|
+
> **Floating-label rule (single rule).** The label sits **inside** (resting position) only when the field is calm: **empty AND unfocused AND valid AND enabled**. In any "something is happening" state — focused, filled, in error, or disabled — the label **floats** to the notch. So focused-empty, errored-empty and disabled-empty all show the label floated (disabled-empty pairs it with the `–` dash, manifest 1.8.0); only default-empty and success-empty keep it inside.
|
|
92
|
+
|
|
93
|
+
- **Default** — `--outline-default` border; grip present. `focus-within` swaps the border to `--outline-focus` (Default and Success; Error keeps its colour — see Error + focus).
|
|
94
|
+
- **Focused** — border `--outline-focus`, **no ring**. Label floats even when empty (focus is the editing state). Grip present. Success + focus is this same plain swap.
|
|
95
|
+
- **Error** — `--status-danger` border + top-right `warning-circle` icon; the field sets `aria-invalid`, and the wrapping `Field` renders the message in `--status-danger`. Label floats even when empty. Grip present.
|
|
96
|
+
- **Error + focus** — a composition, not a seventh state value. The border **keeps** `--status-danger` and goes from `--border-width-100` to `--border-width-200` while the field has focus — colour carries the state, weight carries the focus; `--outline-focus` never shows on an invalid field (a blue border would say "fine" while label, icon and message say "wrong", and tabbing through an invalid form would blink red → blue → red). The added weight sits **inside** the shell — an inset `box-shadow` of `calc(var(--border-width-200) - var(--border-width-100))` on top of the 1px border — so the shell does not grow and the content does not shift. Label, top-right `warning-circle` icon and message stay exactly as in Error; the floating-label notch widens from `--border-width-100` to `--border-width-200`, so no red line shows under the label.
|
|
97
|
+
- **Success** — `--status-success-solid` border + top-right `check-circle` icon, but the floating **label and the confirmation message** are `--status-success-tint-foreground` (5.09:1 on white): `-solid` is 3.35:1, which clears only the 3:1 non-text bar, so it never carries text (manifest changelog 2026-07-31, upstream PR #148). Empty stays inside (a field isn't validated-valid while blank). Grip present.
|
|
98
|
+
- **Disabled** — `--outline-default` border at `--border-width-100`, `--disabled-background` fill, content in `--disabled-foreground` (empty → `–`), `resize` forced to `none` (**no grip**). Drops out of the tab order.
|
|
99
|
+
- **Read-only** — **deferred**, not built as a variant. When a locked multi-line value is needed, apply the shared `field-readonly` recipe (`readonly`, not `disabled`) — do not fake it with disabled.
|
|
100
|
+
|
|
101
|
+
**Motion.** No motion of its own — manifest 1.11.1 `motion.none`: focus swaps the border colour at once, there is no hover state, and height growth while typing or dragging the grip follows the input directly (direct manipulation, an explicit exception to the content-reflow rule), so the content below moves with it at once — the auto-grow sets the height with no transition. It `inherits: [text-field]`: the floating label cross-fades between its resting and floated pose through the shared `Field` label, and swaps at once under `prefers-reduced-motion` ([Text Field → States → Motion](?path=/docs/design-system-atoms-textfield--docs)). **Shell swaps at once (2026-11-10).** The raw `transition-colors duration-200` the shell recipe inherited from the Text Field shell is gone (on the whole field family at once), so the focus, error and success border colours swap at once, as `motion.none` says.
|
|
102
|
+
|
|
103
|
+
**Uncontrolled emptiness and form reset.** Without `value`, the field tracks whether it is empty from its own change events rather than from the stale `defaultValue` (this drives the Disabled `–` dash). A native form reset fires no change event, so the field re-syncs from the restored value: emptiness, the counter of an uncontrolled field, and the auto-grow height (skipped while a manual grip drag holds the latch).
|
|
104
|
+
|
|
105
|
+
### Label
|
|
106
|
+
|
|
107
|
+
The floating label across value × state. Empty + calm keeps the label **resting inside**; a value, focus or Disabled floats it to the top border. The notch is a `--border-width-100` strip in the colour of the surface under the field (default `--bg-primary`) lying on the border line — not a full-height backplate — so in Disabled the shell fill shows behind the label glyphs. Textarea has no Read-only state (deferred).
|
|
108
|
+
|
|
109
|
+
**Hiding the label.** Figma's `Show label` property maps to [`Field`](?path=/docs/design-system-atoms-field--docs)'s **`hideLabel`** boolean, with inverted polarity (`Show label = false` ⇔ `hideLabel = true`) — manifest 1.7.2 names the prop. The `<label>` stays in the DOM and is hidden with `sr-only`, so the accessible name survives without a separate `aria-label`. Never drop the `label` prop to hide it, and never reach for a CSS override: hiding is visual-only, and it belongs to the shared wrapper, not to `Textarea`.
|
|
110
|
+
|
|
111
|
+
<Canvas of={TextareaStories.WithLabel} />
|
|
112
|
+
|
|
113
|
+
## Auto-grow & min rows
|
|
114
|
+
|
|
115
|
+
The field auto-grows from its `minRows` opening height (default `1`) and scrolls once it reaches `maxRows`. Raise `minRows` when the form should show a multi-line box before anything is typed; a manual grip drag latches auto-grow off so the user keeps their chosen height. Auto-grow measures on mount, so a textarea mounted inside hidden content (e.g. a closed `FormBlock`) sizes itself once it is first shown.
|
|
116
|
+
|
|
117
|
+
<Canvas of={TextareaStories.MinRows} />
|
|
118
|
+
|
|
119
|
+
## Counter
|
|
120
|
+
|
|
121
|
+
A live `used/limit` count below-right, enabled with `counter` + a `limit`. It reddens once the count *exceeds* the limit. The counter is announced with the field: it carries an `id` (`{fieldId}-counter`) that is merged into the textarea's `aria-describedby` — alongside whatever `Field` already points at, never replacing it — and it is an `aria-live="polite"` region. Over-limit is not colour-only: a screen-reader-only note is appended, worded by the **required** `overLimitLabel`. The component carries no locale — like the rest of the design system it leaves user-facing text to the consumer, so `overLimitLabel` is enforced at the type level alongside `counter` and `limit`. Pass a translated string (`t(…)`); a built-in default would let a missing translation ship unnoticed, since the note never shows up in sighted review.
|
|
122
|
+
|
|
123
|
+
The `limit` is **soft** (manifest 1.2.0). The component sets **no native `maxLength`** and never truncates the value, so the over-limit state is reachable by typing and by pasting, not just by a programmatically supplied `value` / `defaultValue`. Going over the limit does **not** flip the field into `state="error"` — **the consumer must block submission** while the count is over. A hard cap was the earlier contract and was dropped deliberately: it silently swallowed typed and pasted text, leaving the user unsure where it went and a screen reader with nothing to announce.
|
|
124
|
+
|
|
125
|
+
<Canvas of={TextareaStories.Counter} />
|
|
126
|
+
|
|
127
|
+
## API
|
|
128
|
+
|
|
129
|
+
<Controls />
|
|
130
|
+
|
|
131
|
+
## Do / Don't
|
|
132
|
+
|
|
133
|
+
- ✅ Wrap in `Field` for the floating label, helper and error/success message (and set `id` so `htmlFor` resolves).
|
|
134
|
+
- ✅ Let the field auto-grow (default) — the grip is for the user's extra reach.
|
|
135
|
+
- ✅ Show the `counter` only with a `limit`; pair the two.
|
|
136
|
+
- ✅ Block submission yourself while the count is over the `limit` — the field will not do it for you.
|
|
137
|
+
- ✅ Keep the field on a `--bg-primary` surface.
|
|
138
|
+
- ✅ Leave `minRows` alone for a field that starts Text-Field-tall and grows; raise it to `3` for remarks/notes that should look multi-line from the start.
|
|
139
|
+
- ✅ Pass `overLimitLabel` from your translation layer — the component has no locale of its own.
|
|
140
|
+
- ❌ Don't use `Textarea` for a value that's always one line (use `TextField`).
|
|
141
|
+
- ❌ Don't use the placeholder as the only label — it disappears on input and fails a11y.
|
|
142
|
+
- ❌ Don't show a counter with no `limit` — the count has nothing to count against.
|
|
143
|
+
- ❌ Don't hardcode `overLimitLabel` in a locale-aware screen; an untranslated note is invisible until a screen reader hits it.
|
|
144
|
+
- ❌ Don't truncate the value at the `limit` (no native `maxLength`, no slicing in `onChange`) — silently eaten text is worse than an over-limit warning.
|
|
145
|
+
- ❌ Don't use `disabled` to fake a read-only look — it drops the value from the tab order and breaks copy/select.
|
|
146
|
+
|
|
147
|
+
## Accessibility
|
|
148
|
+
|
|
149
|
+
- **Semantics** — a native `<textarea>` with a real `<label for>` ↔ `id`, supplied by the wrapping `Field`. The placeholder is NOT a label (WCAG 1.3.1 / 3.3.2); a label-less field needs an `aria-label`.
|
|
150
|
+
- **Keyboard** — standard multi-line entry. `disabled` fields drop from the tab order — for a non-editable but readable value use the deferred read-only treatment (`readonly`), not `disabled`.
|
|
151
|
+
- **ARIA** — Error sets `aria-invalid="true"` (intrinsic to `state="error"`, or pass `aria-invalid`); the helper/error message is associated via `aria-describedby` by `Field`. Error is signalled by colour **and** the top-right status icon (WCAG 1.4.1).
|
|
152
|
+
- **Screen reader** — the label, helper and error text are announced through the `Field` wiring; the status is not conveyed by colour alone.
|
|
153
|
+
- **Focus & motion** — focus is a border-colour swap to `--outline-focus`, **no ring** and **no hover**. ⚠️ A 1px swap is weaker than an offset ring and borderline for WCAG 2.4.11 — the mitigation (thicken the focus border, never re-add a ring) is applied on invalid fields: Error + focus keeps `--status-danger` and goes to `--border-width-200`, so focus stays visible without trading the error colour for blue. Auto-grow means content is never hidden behind a fixed height; it follows the input with no transition (manifest `motion.none`), and the only animation is the floating label's cross-fade, which honours `prefers-reduced-motion` (see States → Motion).
|
|
154
|
+
- **Counter** — the count is exposed via `aria-describedby` (merged with `Field`'s helper id) inside an `aria-live="polite"` region, and the over-limit state is announced by a screen-reader-only note as well as colour (WCAG 1.4.1) — see [Counter](#counter). Because the `limit` is soft, that announcement is reachable by typing and pasting, not only by an over-long initial value.
|
|
155
|
+
|
|
156
|
+
Accessibility floor for every FODS component: `spec/01-foundations/accessibility.md`.
|
|
157
|
+
|
|
158
|
+
## Copy
|
|
159
|
+
|
|
160
|
+
Voice: the same as every field, [`TextField`](?path=/docs/design-system-atoms-textfield--docs) included — impersonal and neutral, clear over clever, concise, specific and helpful, with consistent terminology. Examples are Czech; the rules hold for every language. Helper, error and value wrap, so their character limits are guidance, not hard caps.
|
|
161
|
+
|
|
162
|
+
- **Label** (`Field` `label`) — a noun phrase in sentence case, 1–3 words. Single line, max 24 characters; it truncates with an ellipsis at the field's inner width. Instructions go in the helper, not the label.
|
|
163
|
+
- **Value** — the writer's own text. It wraps and auto-grows the field up to `maxRows`, then scrolls; it is never truncated to one line. The component has no `maxLength`: a soft `limit` gives the counter something to count against.
|
|
164
|
+
- **Placeholder** (`placeholder`) — a short prompt or a format example, never a label substitute. Shown only while the field is empty and never on a Disabled field. It may wrap to about 2 lines, max 60 characters.
|
|
165
|
+
- **Helper** (`Field` `helperText`) — a persistent hint: what belongs here or where it appears. Wraps, never truncated; keep it to about one line, max 120 characters.
|
|
166
|
+
- **Error** (`Field` `error`) — impersonal and specific: the problem and the fix. It replaces the helper and wraps so it stays fully visible, max 140 characters.
|
|
167
|
+
- **Counter** (`counter` + `limit`) — a bare `used/limit`, no words. Single line, max 9 characters. The over-limit note a screen reader hears is your `overLimitLabel`.
|
|
168
|
+
|
|
169
|
+
Because the value is longer prose, keep the placeholder and the helper genuinely short: the writer's own text fills the box, and framing copy should not compete with it.
|
|
170
|
+
|
|
171
|
+
<table>
|
|
172
|
+
<thead>
|
|
173
|
+
<tr><th>Run</th><th>✅ Write</th><th>❌ Not</th></tr>
|
|
174
|
+
</thead>
|
|
175
|
+
<tbody>
|
|
176
|
+
<tr><td>Label</td><td><code>Poznámka</code> · <code>Popis</code></td><td><code>Sem napište poznámku:</code></td></tr>
|
|
177
|
+
<tr><td>Placeholder</td><td><code>Např. dodací podmínky nebo interní poznámka</code></td><td><code>Poznámka</code> (repeats the label)</td></tr>
|
|
178
|
+
<tr><td>Helper</td><td><code>Zobrazí se na faktuře pod položkami</code></td><td><code>Toto pole je pro poznámku</code></td></tr>
|
|
179
|
+
<tr><td>Error</td><td><code>Poznámka může mít nejvýše 500 znaků</code></td><td><code>Chyba</code> · <code>Neplatná hodnota</code></td></tr>
|
|
180
|
+
<tr><td>Counter</td><td><code>240/500</code></td><td><code>Zbývá 260 znaků</code></td></tr>
|
|
181
|
+
</tbody>
|
|
182
|
+
</table>
|
|
183
|
+
|
|
184
|
+
## Usage
|
|
185
|
+
|
|
186
|
+
<Canvas of={TextareaStories.WithField} />
|
|
187
|
+
|
|
188
|
+
```tsx
|
|
189
|
+
import { Field, Textarea } from '@invoiceonline/ui-react';
|
|
190
|
+
|
|
191
|
+
// Good — invoice remark with a floating label and helper
|
|
192
|
+
<Field label="Poznámka" helperText="Zobrazí se na faktuře pod položkami">
|
|
193
|
+
<Textarea id="note" minRows={3} placeholder="Např. dodací podmínky" />
|
|
194
|
+
</Field>
|
|
195
|
+
|
|
196
|
+
// Good — length-guided remark with a live counter; the limit is soft, so the
|
|
197
|
+
// form (not the field) refuses to submit while the count is over
|
|
198
|
+
<Field label="Poznámka">
|
|
199
|
+
<Textarea id="note" counter limit={500} value={note} onChange={e => setNote(e.target.value)} />
|
|
200
|
+
</Field>
|
|
201
|
+
<Button type="submit" disabled={note.length > 500}>Uložit</Button>
|
|
202
|
+
|
|
203
|
+
// Good — compact one-row field that still grows
|
|
204
|
+
<Field label="Krátká poznámka" size="sm">
|
|
205
|
+
<Textarea id="short" size="sm" minRows={1} maxRows={4} />
|
|
206
|
+
</Field>
|
|
207
|
+
|
|
208
|
+
// Good — error state, message comes from Field
|
|
209
|
+
<Field label="Poznámka" error="Poznámka může mít nejvýše 500 znaků">
|
|
210
|
+
<Textarea id="note" state="error" />
|
|
211
|
+
</Field>
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
```tsx
|
|
215
|
+
// Don't — no Field, so no accessible label
|
|
216
|
+
<Textarea placeholder="Napište zprávu…" />
|
|
217
|
+
|
|
218
|
+
// Don't — counter without a limit
|
|
219
|
+
<Textarea counter />
|
|
220
|
+
|
|
221
|
+
// Don't — truncating the value yourself; the limit is soft on purpose
|
|
222
|
+
<Textarea counter limit={500} onChange={e => setNote(e.target.value.slice(0, 500))} />
|
|
223
|
+
|
|
224
|
+
// Don't — TextArea where a single line is enough
|
|
225
|
+
<Field label="IČO">
|
|
226
|
+
<Textarea minRows={1} /> {/* use Input/TextField, e.g. 12345678 */}
|
|
227
|
+
</Field>
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
## Related
|
|
231
|
+
|
|
232
|
+
- [`Field`](?path=/docs/design-system-atoms-field--docs) — required wrapper (floating label, helper, error/success, optional marker).
|
|
233
|
+
- [`TextField`](?path=/docs/design-system-atoms-textfield--docs) — single-line counterpart.
|
|
234
|
+
- Sibling fields sharing the new shell: `UnitField`, `NumberField`.
|
|
235
|
+
- Spec: `spec/03-atoms/textarea.md`.
|
|
236
|
+
|
|
237
|
+
## Migration notes
|
|
238
|
+
|
|
239
|
+
- **Motion (manifest 1.11.1, 2026-11-03) — documentation only.** Declared static (`motion.none`) with the Text Field floating-label motion inherited, which the shared `Field` label already plays. No code change; the shell's raw colour transition is an open discrepancy against it (see States).
|
|
240
|
+
- **Helper gap 8 → 4 (manifest 1.11.0, 2026-10-30).** The step from the shell to the helper / counter, and between counter and helper, dropped from `--space-400` to `--space-200` — same ruling as Text Field 2.13.0. No consumer API change.
|
|
241
|
+
- **Soft limit (manifest 1.2.0, 2026-08).** The `maxLength` prop is gone — pass `limit` instead. The component no longer sets a native `maxLength` on the `<textarea>` and never truncates the value; over the limit the counter turns `--status-danger` and adds a screen-reader-only note. **Consumers that relied on the hard cap must now block submission themselves** while `value.length > limit`. The hard cap was dropped because it silently swallowed typed and pasted text and left the over-limit state — which the Accessibility section requires to be announced — physically unreachable.
|
|
242
|
+
- **Built from the Text Field shell.** The Text Field shell made multi-line: value wraps + auto-grows, vertical padding added, status icon moved top-right, resize grip added on editable states, an optional counter added; the leading/trailing user icon slots were dropped.
|
|
243
|
+
- **Read-only deferred** — dropped as a variant (no multi-line locked-value consumer yet); it re-enters via the `field-readonly` pattern "on build".
|
|
244
|
+
- **Counter placement (FE deviation from spec).** The spec places the counter after the `Field` helper (helper → counter). In the current React implementation the counter is rendered **inside `Textarea`, directly under the shell** — so when wrapped in `Field` it appears **before** the Field helper. Flagged for alignment; behaviour is otherwise correct.
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
3
|
+
import { Textarea } from './Textarea';
|
|
4
|
+
import { Field } from '../field/Field';
|
|
5
|
+
import type { TextareaBaseProps } from './Textarea';
|
|
6
|
+
import { Section, Showcase } from '../../storybook/Section';
|
|
7
|
+
import { componentDoc } from '../../storybook/componentDoc';
|
|
8
|
+
import { FORCE_ERROR_FOCUS, FieldErrorFocusStyles } from '../../storybook/forceStates';
|
|
9
|
+
|
|
10
|
+
const SIZES = ['md', 'sm'] as const;
|
|
11
|
+
const STATES = ['default', 'focused', 'error', 'success', 'disabled'] as const;
|
|
12
|
+
// Manifest `axes.content` — Figma calls it "Has value" (True/False). It is not a
|
|
13
|
+
// prop: content IS the presence of a value, so each cell is described by the
|
|
14
|
+
// props it renders with (`placeholder` for Empty, `defaultValue` for Filled).
|
|
15
|
+
// Covered by the ContentMatrix story below.
|
|
16
|
+
const CONTENTS = ['empty', 'filled'] as const;
|
|
17
|
+
|
|
18
|
+
const SAMPLE =
|
|
19
|
+
'Poznámka pro odběratele: fakturu prosím uhraďte do data splatnosti. Děkujeme za spolupráci.';
|
|
20
|
+
|
|
21
|
+
// The counter's over-limit note is a consumer-supplied string (the component
|
|
22
|
+
// carries no locale) — in a consuming app it comes from its translations, here from the showcase.
|
|
23
|
+
const OVER_LIMIT = 'Překročen limit znaků';
|
|
24
|
+
|
|
25
|
+
// The bare atoms below stand outside a `Field`, so nothing labels them: each takes an
|
|
26
|
+
// `aria-label` instead (a label is always present — text-field.md § Copy).
|
|
27
|
+
const LABEL = 'Poznámka';
|
|
28
|
+
|
|
29
|
+
// Textarea is w-full — pin a realistic field width for showcase stories.
|
|
30
|
+
const Frame = ({ children }: { children: ReactNode }) => (
|
|
31
|
+
<div className="w-[calc(var(--space-1000)*8)]">{children}</div>
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
// TextareaProps enforces the over-limit wording through a `counter` / `limit` /
|
|
35
|
+
// `overLimitLabel` union — great for consumers, but CSF's `Args` machinery
|
|
36
|
+
// cannot resolve a union prop type. Type the stories against the base plus flat
|
|
37
|
+
// counter controls; the Playground render reassembles the real contract, where
|
|
38
|
+
// the required-label rule still bites.
|
|
39
|
+
type TextareaStoryArgs = TextareaBaseProps & { counter?: boolean; limit?: number };
|
|
40
|
+
|
|
41
|
+
const meta = {
|
|
42
|
+
title: 'Design System/Atoms/Textarea',
|
|
43
|
+
// Storybook 10 types `component` against the story args; the counter union
|
|
44
|
+
// of TextareaProps does not overlap TextareaStoryArgs, so cast through unknown.
|
|
45
|
+
component: Textarea as unknown as ComponentType<TextareaStoryArgs>,
|
|
46
|
+
parameters: {
|
|
47
|
+
layout: 'centered',
|
|
48
|
+
containerWidth: 360,
|
|
49
|
+
docs: {
|
|
50
|
+
description: {
|
|
51
|
+
component: componentDoc({
|
|
52
|
+
summary:
|
|
53
|
+
'Redesigned multi-line text field (Figma 6454-62230). An outlined shell with a borderless textarea that auto-grows from its `minRows` opening height; the corner grip lets the user resize. For a floating label, helper or error text, wrap it in `Field`.',
|
|
54
|
+
useCases: [
|
|
55
|
+
'`minRows={3}` — invoice remarks, notes, longer messages that want a visibly multi-line box on first paint',
|
|
56
|
+
'`minRows={1}` (default) — rests at the single-line input-shell height and grows with content',
|
|
57
|
+
'`counter limit={500}` — length-guided remarks with a live count',
|
|
58
|
+
'`size="sm"` — dense contexts (side panels, compact forms, table detail rows)',
|
|
59
|
+
'`state="error"` / `"success"` — a top-right status icon plus a matching `Field` message',
|
|
60
|
+
],
|
|
61
|
+
bestPractices: [
|
|
62
|
+
'For a floating label always wrap in `Field`',
|
|
63
|
+
'Let the field auto-grow (default) — the grip is for the user’s extra reach',
|
|
64
|
+
'Show the `counter` only with a `limit`; the two belong together',
|
|
65
|
+
'The `limit` is soft — the value is never truncated, so block submission yourself while the count is over',
|
|
66
|
+
'Use a TextArea for genuinely multi-line content — for single-line values reach for TextField',
|
|
67
|
+
],
|
|
68
|
+
knownIssues: [
|
|
69
|
+
'Error uses `warning-circle`, Success uses `check` (not the spec `check-circle`)',
|
|
70
|
+
],
|
|
71
|
+
docsLink: { label: 'spec/03-atoms/textarea.md' },
|
|
72
|
+
}),
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
// No autodocs tag — Textarea.mdx provides the dedicated Docs page.
|
|
77
|
+
} satisfies Meta<TextareaStoryArgs>;
|
|
78
|
+
|
|
79
|
+
export default meta;
|
|
80
|
+
type Story = StoryObj<TextareaStoryArgs>;
|
|
81
|
+
|
|
82
|
+
export const Playground: Story = {
|
|
83
|
+
args: {
|
|
84
|
+
placeholder: 'Např. dodací podmínky nebo interní poznámka',
|
|
85
|
+
size: 'md',
|
|
86
|
+
state: 'default',
|
|
87
|
+
minRows: 1,
|
|
88
|
+
autoResize: true,
|
|
89
|
+
// The counter is a measured part; off by default it is never in the DOM for the
|
|
90
|
+
// runtime pass to grade. The control still lets a reader switch it back off.
|
|
91
|
+
counter: true,
|
|
92
|
+
limit: 500,
|
|
93
|
+
disabled: false,
|
|
94
|
+
},
|
|
95
|
+
argTypes: {
|
|
96
|
+
size: { control: 'radio', options: SIZES },
|
|
97
|
+
state: { control: 'select', options: STATES },
|
|
98
|
+
minRows: { control: 'number' },
|
|
99
|
+
maxRows: { control: 'number' },
|
|
100
|
+
autoResize: { control: 'boolean' },
|
|
101
|
+
counter: { control: 'boolean' },
|
|
102
|
+
limit: { control: 'number' },
|
|
103
|
+
disabled: { control: 'boolean' },
|
|
104
|
+
placeholder: { control: 'text' },
|
|
105
|
+
},
|
|
106
|
+
/*
|
|
107
|
+
* Wrapped in `Field`, which is how the component actually ships: the floating
|
|
108
|
+
* label is the real <label> and is what gives the textarea its accessible name
|
|
109
|
+
* (WCAG 4.1.2), and the helper line is what `aria-describedby` resolves to, so
|
|
110
|
+
* the Error state announces its message (WCAG 3.3.1). The error message is tied
|
|
111
|
+
* to the `state` arg so the wiring appears exactly when `aria-invalid` does.
|
|
112
|
+
*/
|
|
113
|
+
render: ({ counter, limit, ...rest }) => (
|
|
114
|
+
<Frame>
|
|
115
|
+
<Field
|
|
116
|
+
label="Poznámka"
|
|
117
|
+
// `optional-tag` is a measured part — see the TextField playground for why.
|
|
118
|
+
optionalLabel="Volitelný"
|
|
119
|
+
error={rest.state === 'error' ? 'Poznámka může mít nejvýše 500\u00a0znaků' : undefined}
|
|
120
|
+
success={rest.state === 'success' ? 'Poznámka je uložená' : undefined}
|
|
121
|
+
helperText={
|
|
122
|
+
rest.state === 'error' || rest.state === 'success' ? undefined : 'Zobrazí se na faktuře pod položkami'
|
|
123
|
+
}
|
|
124
|
+
>
|
|
125
|
+
{counter && limit != null ? (
|
|
126
|
+
<Textarea id="playground-textarea" {...rest} counter limit={limit} overLimitLabel={OVER_LIMIT} />
|
|
127
|
+
) : (
|
|
128
|
+
<Textarea id="playground-textarea" {...rest} />
|
|
129
|
+
)}
|
|
130
|
+
</Field>
|
|
131
|
+
</Frame>
|
|
132
|
+
),
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export const Matrix: Story = {
|
|
136
|
+
parameters: {
|
|
137
|
+
docs: {
|
|
138
|
+
description: {
|
|
139
|
+
story:
|
|
140
|
+
'Full state × size matrix — mirrors the Figma labelled grid. Rows = states, columns = sizes. Error/Success carry the top-right status icon; Disabled drops the border and the resize grip.',
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
render: () => (
|
|
145
|
+
<Showcase>
|
|
146
|
+
{STATES.map(state => (
|
|
147
|
+
<Section key={state} title={state} layout="row">
|
|
148
|
+
{SIZES.map(size => (
|
|
149
|
+
<div key={size} className="w-[calc(var(--space-1100)*6)]">
|
|
150
|
+
<Textarea aria-label={LABEL} state={state} size={size} defaultValue={SAMPLE} />
|
|
151
|
+
</div>
|
|
152
|
+
))}
|
|
153
|
+
</Section>
|
|
154
|
+
))}
|
|
155
|
+
</Showcase>
|
|
156
|
+
),
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export const ContentMatrix: Story = {
|
|
160
|
+
name: 'Matrix (state × content)',
|
|
161
|
+
parameters: {
|
|
162
|
+
docs: {
|
|
163
|
+
description: {
|
|
164
|
+
story:
|
|
165
|
+
'Manifest `axes.content` (Figma **Has value**) × state, both at Medium — the size axis is covered by `Matrix`. Rows = states, columns = content: **Empty** on the left (the placeholder run, `--text-placeholder`) and **Filled** on the right (the value, `--text-primary`). On Disabled the placeholder is replaced by an en dash in `--disabled-foreground`, the shell takes the `--disabled-background` fill (border kept) and loses its resize grip. The label-float side of this axis needs the `Field` wrapper — see `WithLabel`.',
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
render: () => (
|
|
170
|
+
<Showcase>
|
|
171
|
+
{STATES.map(state => (
|
|
172
|
+
<Section key={state} title={state} layout="row">
|
|
173
|
+
{CONTENTS.map(content => (
|
|
174
|
+
<div key={content} className="w-[calc(var(--space-1100)*6)]">
|
|
175
|
+
<Textarea aria-label={LABEL}
|
|
176
|
+
state={state}
|
|
177
|
+
size="md"
|
|
178
|
+
minRows={2}
|
|
179
|
+
{...(content === 'filled'
|
|
180
|
+
? { defaultValue: SAMPLE }
|
|
181
|
+
: { placeholder: 'Placeholder' })}
|
|
182
|
+
/>
|
|
183
|
+
</div>
|
|
184
|
+
))}
|
|
185
|
+
</Section>
|
|
186
|
+
))}
|
|
187
|
+
</Showcase>
|
|
188
|
+
),
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
export const Sizes: Story = {
|
|
192
|
+
parameters: {
|
|
193
|
+
docs: { description: { story: 'Medium — standard forms · Small — dense rows. Both open at the single-line resting height (48 / 40) and grow with content.' } },
|
|
194
|
+
},
|
|
195
|
+
render: () => (
|
|
196
|
+
<Showcase>
|
|
197
|
+
<Section title="Medium (default)" layout="column">
|
|
198
|
+
<Frame><Textarea aria-label={LABEL} size="md" placeholder="Empty" /></Frame>
|
|
199
|
+
<Frame><Textarea aria-label={LABEL} size="md" defaultValue={SAMPLE} /></Frame>
|
|
200
|
+
</Section>
|
|
201
|
+
<Section title="Small" layout="column">
|
|
202
|
+
<Frame><Textarea aria-label={LABEL} size="sm" placeholder="Empty" /></Frame>
|
|
203
|
+
<Frame><Textarea aria-label={LABEL} size="sm" defaultValue={SAMPLE} /></Frame>
|
|
204
|
+
</Section>
|
|
205
|
+
</Showcase>
|
|
206
|
+
),
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
export const States: Story = {
|
|
210
|
+
parameters: {
|
|
211
|
+
docs: { description: { story: 'Visual states — default, focused, error, success, disabled. Read-only is deferred (see the field-readonly pattern). Error + focus keeps the `--status-danger` border and thickens it to `--border-width-200` inside the shell; `--outline-focus` never shows on an invalid field (forced statically below — focus is runtime-only).' } },
|
|
212
|
+
},
|
|
213
|
+
render: () => (
|
|
214
|
+
<Showcase>
|
|
215
|
+
<FieldErrorFocusStyles />
|
|
216
|
+
<Section title="Empty" layout="column">
|
|
217
|
+
<Frame><Textarea aria-label={LABEL} state="default" placeholder="Default" /></Frame>
|
|
218
|
+
<Frame><Textarea aria-label={LABEL} state="focused" placeholder="Focused" /></Frame>
|
|
219
|
+
<Frame><Textarea aria-label={LABEL} state="error" placeholder="Error" /></Frame>
|
|
220
|
+
<Frame><Textarea aria-label={LABEL} state="success" placeholder="Success" /></Frame>
|
|
221
|
+
<Frame><Textarea aria-label={LABEL} disabled placeholder="Disabled" /></Frame>
|
|
222
|
+
</Section>
|
|
223
|
+
<Section title="Filled" layout="column">
|
|
224
|
+
<Frame><Textarea aria-label={LABEL} state="default" defaultValue={SAMPLE} /></Frame>
|
|
225
|
+
<Frame><Textarea aria-label={LABEL} state="error" defaultValue={SAMPLE} /></Frame>
|
|
226
|
+
<Frame><Textarea aria-label={LABEL} state="success" defaultValue={SAMPLE} /></Frame>
|
|
227
|
+
<Frame><Textarea aria-label={LABEL} disabled defaultValue={SAMPLE} /></Frame>
|
|
228
|
+
</Section>
|
|
229
|
+
<Section title="Error + focus" layout="column">
|
|
230
|
+
<Frame>
|
|
231
|
+
<div className={FORCE_ERROR_FOCUS}>
|
|
232
|
+
<Textarea aria-label={LABEL} state="error" defaultValue={SAMPLE} />
|
|
233
|
+
</div>
|
|
234
|
+
</Frame>
|
|
235
|
+
</Section>
|
|
236
|
+
</Showcase>
|
|
237
|
+
),
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
export const MinRows: Story = {
|
|
241
|
+
parameters: {
|
|
242
|
+
docs: {
|
|
243
|
+
description: {
|
|
244
|
+
story:
|
|
245
|
+
'The `minRows` prop sets how many rows the field opens at. Default is 1, so an empty field rests at the shared single-line input-shell height and lines up with a Text Field in the same form column; raise it when a form wants a visibly multi-line box on first paint. `maxRows` caps the growth, after which the field scrolls.',
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
render: () => (
|
|
250
|
+
<Showcase>
|
|
251
|
+
<Section title="Opening height" layout="column">
|
|
252
|
+
<Frame><Textarea aria-label={LABEL} minRows={1} placeholder="minRows=1 (default)" /></Frame>
|
|
253
|
+
<Frame><Textarea aria-label={LABEL} minRows={3} placeholder="minRows=3" /></Frame>
|
|
254
|
+
<Frame><Textarea aria-label={LABEL} minRows={5} placeholder="minRows=5" /></Frame>
|
|
255
|
+
</Section>
|
|
256
|
+
<Section title="Capped growth" layout="column">
|
|
257
|
+
<Frame><Textarea aria-label={LABEL} minRows={2} maxRows={4} defaultValue={SAMPLE} placeholder="minRows=2, maxRows=4" /></Frame>
|
|
258
|
+
</Section>
|
|
259
|
+
</Showcase>
|
|
260
|
+
),
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
export const Counter: Story = {
|
|
264
|
+
parameters: {
|
|
265
|
+
docs: {
|
|
266
|
+
description: {
|
|
267
|
+
story:
|
|
268
|
+
'A live `used/limit` counter below-right, enabled with `counter` and a `limit`. The limit is **soft**: the value is never truncated, and once the count *exceeds* the limit the counter turns `--status-danger` and adds a screen-reader-only over-limit note. The field itself stays out of the Error state — blocking submission is the consumer’s job.',
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
render: () => (
|
|
273
|
+
<Showcase>
|
|
274
|
+
<Section title="Counter" layout="column">
|
|
275
|
+
<Frame><Textarea aria-label={LABEL} counter limit={500} overLimitLabel={OVER_LIMIT} placeholder={'Max 500\u00a0znaků'} /></Frame>
|
|
276
|
+
<Frame><Textarea aria-label={LABEL} counter limit={120} overLimitLabel={OVER_LIMIT} defaultValue={SAMPLE} /></Frame>
|
|
277
|
+
{/* Over limit — reachable by typing too, now that nothing truncates. */}
|
|
278
|
+
<Frame><Textarea aria-label={LABEL} counter limit={60} overLimitLabel={OVER_LIMIT} defaultValue={SAMPLE} /></Frame>
|
|
279
|
+
</Section>
|
|
280
|
+
</Showcase>
|
|
281
|
+
),
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export const WithField: Story = {
|
|
285
|
+
parameters: {
|
|
286
|
+
docs: {
|
|
287
|
+
description: {
|
|
288
|
+
story:
|
|
289
|
+
'Real usage — wrapped in `Field` for the floating label, helper and error/success messaging.',
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
render: () => (
|
|
294
|
+
<Showcase>
|
|
295
|
+
<Section title="Label + helper" layout="column">
|
|
296
|
+
<Frame>
|
|
297
|
+
<Field label="Poznámka" helperText="Zobrazí se na faktuře pod položkami">
|
|
298
|
+
<Textarea id="tn-note" placeholder="Např. dodací podmínky" />
|
|
299
|
+
</Field>
|
|
300
|
+
</Frame>
|
|
301
|
+
<Frame>
|
|
302
|
+
<Field label="Popis">
|
|
303
|
+
<Textarea id="tn-desc" defaultValue={SAMPLE} />
|
|
304
|
+
</Field>
|
|
305
|
+
</Frame>
|
|
306
|
+
</Section>
|
|
307
|
+
<Section title="Messaging" layout="column">
|
|
308
|
+
<Frame>
|
|
309
|
+
<Field label="Poznámka" error={'Poznámka může mít nejvýše 500\u00a0znaků'}>
|
|
310
|
+
<Textarea id="tn-error" state="error" defaultValue={SAMPLE} />
|
|
311
|
+
</Field>
|
|
312
|
+
</Frame>
|
|
313
|
+
<Frame>
|
|
314
|
+
<Field label="Komentář" success="Text byl uložen">
|
|
315
|
+
<Textarea id="tn-success" state="success" defaultValue="Uložený komentář" />
|
|
316
|
+
</Field>
|
|
317
|
+
</Frame>
|
|
318
|
+
</Section>
|
|
319
|
+
<Section title="Small" layout="column">
|
|
320
|
+
<Frame>
|
|
321
|
+
<Field label="Krátká poznámka" size="sm">
|
|
322
|
+
<Textarea id="tn-small" size="sm" minRows={2} />
|
|
323
|
+
</Field>
|
|
324
|
+
</Frame>
|
|
325
|
+
</Section>
|
|
326
|
+
</Showcase>
|
|
327
|
+
),
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
export const WithLabel: Story = {
|
|
331
|
+
parameters: {
|
|
332
|
+
docs: {
|
|
333
|
+
description: {
|
|
334
|
+
story:
|
|
335
|
+
'The floating label across value × state. Empty + calm keeps the label **resting inside**; a value, focus or Disabled floats it to the top border. The notch is a 1px strip in the surface colour on the border line, not a backplate. Textarea has no Read-only state (deferred — see the field-readonly pattern).',
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
render: () => (
|
|
340
|
+
<Showcase>
|
|
341
|
+
<Section title="Bez hodnoty (label dole)" layout="column">
|
|
342
|
+
<Frame>
|
|
343
|
+
<Field label="Poznámka"><Textarea id="wl-empty" minRows={2} /></Field>
|
|
344
|
+
</Frame>
|
|
345
|
+
<Frame>
|
|
346
|
+
<Field label="Poznámka"><Textarea id="wl-empty-dis" minRows={2} disabled /></Field>
|
|
347
|
+
</Frame>
|
|
348
|
+
</Section>
|
|
349
|
+
<Section title="S hodnotou (label nahoře)" layout="column">
|
|
350
|
+
<Frame>
|
|
351
|
+
<Field label="Poznámka"><Textarea id="wl-val" minRows={2} defaultValue={SAMPLE} /></Field>
|
|
352
|
+
</Frame>
|
|
353
|
+
<Frame>
|
|
354
|
+
<Field label="Poznámka"><Textarea id="wl-val-dis" minRows={2} disabled value={SAMPLE} onChange={() => {}} /></Field>
|
|
355
|
+
</Frame>
|
|
356
|
+
</Section>
|
|
357
|
+
<Section title="Stavy (error / success)" layout="column">
|
|
358
|
+
<Frame>
|
|
359
|
+
<Field label="Poznámka" error={'Poznámka může mít nejvýše 500\u00a0znaků'}>
|
|
360
|
+
<Textarea id="wl-err" minRows={2} state="error" defaultValue={SAMPLE} />
|
|
361
|
+
</Field>
|
|
362
|
+
</Frame>
|
|
363
|
+
<Frame>
|
|
364
|
+
<Field label="Komentář" success="Text byl uložen">
|
|
365
|
+
<Textarea id="wl-ok" minRows={2} state="success" defaultValue="Uložený komentář" />
|
|
366
|
+
</Field>
|
|
367
|
+
</Frame>
|
|
368
|
+
</Section>
|
|
369
|
+
</Showcase>
|
|
370
|
+
),
|
|
371
|
+
};
|