@invoiceonline/ui-react 0.0.0-stage → 0.1.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 +99 -0
- package/CHANGELOG.md +131 -0
- package/LICENSE +9 -0
- package/README.md +78 -2
- 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-field/DateField.d.ts +52 -0
- package/dist/components/date-field/DateField.js +45 -0
- package/dist/components/date-field/index.d.ts +2 -0
- package/dist/components/date-field/index.js +1 -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 +118 -0
- package/dist/components/field/Field.js +327 -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 +194 -0
- package/dist/components/field-pair/FieldPair.js +321 -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 +65 -0
- package/dist/components/text-field/TextField.js +173 -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 +132 -0
- package/dist/index.js +75 -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.js +183 -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 +37 -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 +379 -0
- package/docs/Contributing.mdx +78 -0
- package/docs/ForAgents.mdx +53 -0
- package/docs/Introduction.mdx +54 -0
- package/llms.txt +556 -0
- package/package.json +357 -4
- 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-field/DateField.mdx +340 -0
- package/src/components/date-field/DateField.stories.tsx +221 -0
- package/src/components/date-field/DateField.tsx +176 -0
- package/src/components/date-field/index.ts +1 -0
- package/src/components/date-picker/DatePicker.mdx +436 -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 +765 -0
- package/src/components/field/index.ts +20 -0
- package/src/components/field-pair/FieldPair.mdx +308 -0
- package/src/components/field-pair/FieldPair.stories.tsx +530 -0
- package/src/components/field-pair/FieldPair.tsx +796 -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 +479 -0
- package/src/components/text-field/TextField.stories.tsx +366 -0
- package/src/components/text-field/TextField.tsx +391 -0
- package/src/components/text-field/index.ts +8 -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 +71 -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 +357 -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 +47 -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 +355 -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,278 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { tv } from "../../internal/tailwind-variants.js";
|
|
3
|
+
import { Icon } from "../icon/Icon.js";
|
|
4
|
+
import { Button } from "../button/Button.js";
|
|
5
|
+
import { Divider } from "../divider/Divider.js";
|
|
6
|
+
import { SummaryDonut } from "../../internal/SummaryDonut.js";
|
|
7
|
+
import { SummaryCard, SummaryCell, SummaryRow, SummaryTotalRow, wholeAmount } from "../../internal/statusSummaryParts.js";
|
|
8
|
+
import { cn } from "../../internal/utils.js";
|
|
9
|
+
import { ROOM_BOTTOM_CLIP, roomVariants, useRoomPresence } from "../../internal/collapseRoom.js";
|
|
10
|
+
import { MotionCaret } from "../../internal/MotionCaret.js";
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { motion } from "motion/react";
|
|
14
|
+
// src/components/status-summary-bar/StatusSummaryBar.tsx
|
|
15
|
+
/**
|
|
16
|
+
* Status Summary Bar — the filter-and-summary strip above a record list
|
|
17
|
+
* (upstream `05-organisms/status-summary-bar.md`, manifest 2.5.1): a bordered total
|
|
18
|
+
* card with a donut, then one filtering cell per document status.
|
|
19
|
+
*
|
|
20
|
+
* - **Filter**: every status ships INCLUDED; pressing a cell EXCLUDES it (never an
|
|
21
|
+
* isolate gesture). The total card and the donut report the included set; a
|
|
22
|
+
* cell's own amount and count always describe its whole status.
|
|
23
|
+
* - **Layout**: one card, no density. Each cell FILLS between its widest child and
|
|
24
|
+
* 186. When the cells no longer fit one line the row wraps (column gap 12, row
|
|
25
|
+
* gap 16). Alignment (manifest 2.5.0 `chrome.container.alignment`): one line
|
|
26
|
+
* spreads edge to edge (space-between), a wrapped row centres every line — the bar
|
|
27
|
+
* detects the wrap itself (`useRowWrapped`).
|
|
28
|
+
* - **Amounts** are rounded to whole units before they reach `formatAmount`, so the
|
|
29
|
+
* formatter always receives an integer (use `maximumFractionDigits: 0`). Celkem
|
|
30
|
+
* is the exact sum rounded once, so it may differ by a few units from the sum of
|
|
31
|
+
* the cells on screen.
|
|
32
|
+
* - **Collapse** hides everything but the toggle row; the filter stays applied. Motion
|
|
33
|
+
* (manifest `motion`, 2.4.3): collapsing fades the card and cells out
|
|
34
|
+
* (`--duration-fast` + `--easing-exit`) first, then their room closes on
|
|
35
|
+
* `springs.gentle`; expanding opens the room while they fade in (`--duration-slow` +
|
|
36
|
+
* `--easing-enter`). The caret turns 180° on `springs.standard`. Reduced motion: at
|
|
37
|
+
* once, no fade, the caret flips.
|
|
38
|
+
* - Below `md` the bar becomes a list of rows (`chrome.mobile`) — Celkem, then one
|
|
39
|
+
* row per status carrying the Chip and the status's amount (no donut, no count,
|
|
40
|
+
* no collapse toggle). Touch has no hover, so the row's ⓘ is its own button, a
|
|
41
|
+
* toggletip named by `getInfoLabel`: a sibling layered over the row's checkbox
|
|
42
|
+
* control (never nested in it), its own tab stop after the row, and a tap on it
|
|
43
|
+
* never toggles the status. The switch is CSS only, so SSR markup is stable.
|
|
44
|
+
*
|
|
45
|
+
* All copy — labels, plural forms, money formatting, the live announcement — comes
|
|
46
|
+
* from the consumer: a design-system component carries no locale of its own.
|
|
47
|
+
*/
|
|
48
|
+
const statusSummaryBarVariants = tv({
|
|
49
|
+
slots: {
|
|
50
|
+
root: "relative flex w-full flex-col bg-background-primary",
|
|
51
|
+
mobileList: "flex flex-col gap-200 md:hidden",
|
|
52
|
+
collapse: "hidden md:block",
|
|
53
|
+
clip: "-m-200 overflow-hidden p-200 pb-600",
|
|
54
|
+
items: "flex flex-wrap items-center gap-x-500 gap-y-600",
|
|
55
|
+
toggleRow: "hidden items-center gap-500 md:flex",
|
|
56
|
+
divider: "flex-1",
|
|
57
|
+
caret: "inline-flex"
|
|
58
|
+
},
|
|
59
|
+
variants: { wrapped: {
|
|
60
|
+
false: { items: "justify-between" },
|
|
61
|
+
true: { items: "justify-center" }
|
|
62
|
+
} },
|
|
63
|
+
defaultVariants: { wrapped: false }
|
|
64
|
+
});
|
|
65
|
+
/**
|
|
66
|
+
* The longest amount the total card is sized for (`99 999 999` in the consumer's
|
|
67
|
+
* locale and currency). Its formatted string sits invisibly under the live total, so
|
|
68
|
+
* the card keeps one width while the filter changes the total and the donut stays put.
|
|
69
|
+
*/
|
|
70
|
+
const MIN_WIDTH_AMOUNT = 99999999;
|
|
71
|
+
function useControllable(controlled, initial, onChange) {
|
|
72
|
+
const [uncontrolled, setUncontrolled] = React.useState(initial);
|
|
73
|
+
return [controlled !== void 0 ? controlled : uncontrolled, React.useCallback((next) => {
|
|
74
|
+
if (controlled === void 0) setUncontrolled(next);
|
|
75
|
+
onChange?.(next);
|
|
76
|
+
}, [controlled, onChange])];
|
|
77
|
+
}
|
|
78
|
+
const EMPTY_IDS = [];
|
|
79
|
+
/**
|
|
80
|
+
* Whether the items row has wrapped (`chrome.container.alignment.wrapped`): the last
|
|
81
|
+
* item's top edge sits below the first item's bottom edge. Never equal offsetTop —
|
|
82
|
+
* the card and the cells differ in height and centre on the cross axis. A wrap or an
|
|
83
|
+
* unwrap changes the row's height, so observing the row alone catches it (a new width,
|
|
84
|
+
* new amounts, web fonts). The switch only moves items along a line, never between
|
|
85
|
+
* lines, so it cannot oscillate. SSR and a hidden row (below md) read as one line.
|
|
86
|
+
*/
|
|
87
|
+
function useRowWrapped(rowRef) {
|
|
88
|
+
const [wrapped, setWrapped] = React.useState(false);
|
|
89
|
+
React.useLayoutEffect(() => {
|
|
90
|
+
const row = rowRef.current;
|
|
91
|
+
if (!row) return void 0;
|
|
92
|
+
const measure = () => {
|
|
93
|
+
const first = row.firstElementChild;
|
|
94
|
+
const last = row.lastElementChild;
|
|
95
|
+
setWrapped(!!first && !!last && last.getBoundingClientRect().top > first.getBoundingClientRect().bottom);
|
|
96
|
+
};
|
|
97
|
+
measure();
|
|
98
|
+
if (typeof ResizeObserver === "undefined") return void 0;
|
|
99
|
+
const observer = new ResizeObserver(measure);
|
|
100
|
+
observer.observe(row);
|
|
101
|
+
return () => observer.disconnect();
|
|
102
|
+
}, [rowRef]);
|
|
103
|
+
return wrapped;
|
|
104
|
+
}
|
|
105
|
+
const StatusSummaryBar = React.forwardRef(({ statuses, formatAmount, formatCount, totalLabel, groupLabel, collapseLabel, expandLabel, getAnnouncement, getInfoLabel, excludedIds: excludedIdsProp, defaultExcludedIds = EMPTY_IDS, onExcludedIdsChange, collapsed: collapsedProp, defaultCollapsed = false, onCollapsedChange, className, ...props }, ref) => {
|
|
106
|
+
const [excludedIds, setExcludedIds] = useControllable(excludedIdsProp, defaultExcludedIds, onExcludedIdsChange);
|
|
107
|
+
const [collapsed, setCollapsed] = useControllable(collapsedProp, defaultCollapsed, onCollapsedChange);
|
|
108
|
+
const [announcement, setAnnouncement] = React.useState("");
|
|
109
|
+
const [hoveredCellId, setHoveredCellId] = React.useState(null);
|
|
110
|
+
const [hoveredSegmentId, setHoveredSegmentId] = React.useState(null);
|
|
111
|
+
const room = useRoomPresence(!collapsed);
|
|
112
|
+
const collapseRef = React.useRef(null);
|
|
113
|
+
const itemsRef = React.useRef(null);
|
|
114
|
+
const wrapped = useRowWrapped(itemsRef);
|
|
115
|
+
const itemsId = React.useId();
|
|
116
|
+
const excluded = React.useMemo(() => new Set(excludedIds), [excludedIds]);
|
|
117
|
+
const total = React.useMemo(() => statuses.reduce((acc, status) => excluded.has(status.id) ? acc : {
|
|
118
|
+
amount: acc.amount + status.amount,
|
|
119
|
+
count: acc.count + status.count
|
|
120
|
+
}, {
|
|
121
|
+
amount: 0,
|
|
122
|
+
count: 0
|
|
123
|
+
}), [statuses, excluded]);
|
|
124
|
+
const segments = React.useMemo(() => statuses.map((status) => ({
|
|
125
|
+
id: status.id,
|
|
126
|
+
family: status.family,
|
|
127
|
+
value: excluded.has(status.id) || wholeAmount(status.amount) === 0 ? 0 : status.amount,
|
|
128
|
+
tooltip: `${status.label}: ${formatAmount(wholeAmount(status.amount))}`
|
|
129
|
+
})), [
|
|
130
|
+
statuses,
|
|
131
|
+
excluded,
|
|
132
|
+
formatAmount
|
|
133
|
+
]);
|
|
134
|
+
const slots = statusSummaryBarVariants({ wrapped });
|
|
135
|
+
const hasDuplicateIds = new Set(statuses.map((status) => status.id)).size !== statuses.length;
|
|
136
|
+
React.useEffect(() => {
|
|
137
|
+
if (process.env.NODE_ENV !== "production" && hasDuplicateIds) console.warn("StatusSummaryBar: `statuses` contains duplicate ids. Cells sharing an id filter and highlight together; give every status a unique `id`.");
|
|
138
|
+
}, [hasDuplicateIds]);
|
|
139
|
+
const pendingAnnouncementRef = React.useRef(null);
|
|
140
|
+
const prevExcludedRef = React.useRef(excluded);
|
|
141
|
+
React.useEffect(() => {
|
|
142
|
+
const prevExcluded = prevExcludedRef.current;
|
|
143
|
+
prevExcludedRef.current = excluded;
|
|
144
|
+
const status = pendingAnnouncementRef.current;
|
|
145
|
+
pendingAnnouncementRef.current = null;
|
|
146
|
+
if (!status || prevExcluded.has(status.id) === excluded.has(status.id)) return;
|
|
147
|
+
setAnnouncement(getAnnouncement({
|
|
148
|
+
status,
|
|
149
|
+
included: !excluded.has(status.id),
|
|
150
|
+
totalAmount: wholeAmount(total.amount),
|
|
151
|
+
totalCount: total.count
|
|
152
|
+
}));
|
|
153
|
+
});
|
|
154
|
+
const toggleStatus = (status) => {
|
|
155
|
+
const nextIds = excluded.has(status.id) ? excludedIds.filter((id) => id !== status.id) : [...excludedIds, status.id];
|
|
156
|
+
pendingAnnouncementRef.current = status;
|
|
157
|
+
setExcludedIds(nextIds);
|
|
158
|
+
};
|
|
159
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
160
|
+
ref,
|
|
161
|
+
"data-fods-component": "status-summary-bar",
|
|
162
|
+
"data-fods-part": "root",
|
|
163
|
+
"data-collapsed": collapsed,
|
|
164
|
+
className: cn(slots.root(), className),
|
|
165
|
+
...props,
|
|
166
|
+
children: [
|
|
167
|
+
/* @__PURE__ */ jsxs("div", {
|
|
168
|
+
role: "group",
|
|
169
|
+
"aria-label": groupLabel,
|
|
170
|
+
"data-fods-part": "mobile-list",
|
|
171
|
+
className: slots.mobileList(),
|
|
172
|
+
children: [/* @__PURE__ */ jsx(SummaryTotalRow, {
|
|
173
|
+
label: totalLabel,
|
|
174
|
+
amount: total.amount,
|
|
175
|
+
formatAmount
|
|
176
|
+
}), statuses.map((status) => /* @__PURE__ */ jsx(SummaryRow, {
|
|
177
|
+
family: status.family,
|
|
178
|
+
label: status.label,
|
|
179
|
+
description: status.description,
|
|
180
|
+
amount: status.amount,
|
|
181
|
+
included: !excluded.has(status.id),
|
|
182
|
+
formatAmount,
|
|
183
|
+
infoLabel: getInfoLabel(status),
|
|
184
|
+
onClick: () => toggleStatus(status)
|
|
185
|
+
}, status.id))]
|
|
186
|
+
}),
|
|
187
|
+
/* @__PURE__ */ jsx(motion.div, {
|
|
188
|
+
ref: collapseRef,
|
|
189
|
+
className: cn(slots.collapse(), room.gone && "invisible"),
|
|
190
|
+
initial: false,
|
|
191
|
+
animate: collapsed ? "closed" : "open",
|
|
192
|
+
variants: roomVariants(room.reduce, "none"),
|
|
193
|
+
onAnimationStart: () => {
|
|
194
|
+
if (collapseRef.current) collapseRef.current.style.clipPath = ROOM_BOTTOM_CLIP;
|
|
195
|
+
},
|
|
196
|
+
onAnimationComplete: (definition) => {
|
|
197
|
+
if (collapseRef.current) collapseRef.current.style.clipPath = "";
|
|
198
|
+
room.onAnimationComplete(definition);
|
|
199
|
+
},
|
|
200
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
201
|
+
className: slots.clip(),
|
|
202
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
203
|
+
ref: itemsRef,
|
|
204
|
+
id: itemsId,
|
|
205
|
+
role: "group",
|
|
206
|
+
"aria-label": groupLabel,
|
|
207
|
+
inert: collapsed,
|
|
208
|
+
"data-fods-part": "cells-group",
|
|
209
|
+
className: slots.items(),
|
|
210
|
+
children: [/* @__PURE__ */ jsx(SummaryCard, {
|
|
211
|
+
label: totalLabel,
|
|
212
|
+
amount: total.amount,
|
|
213
|
+
minWidthAmount: formatAmount(MIN_WIDTH_AMOUNT),
|
|
214
|
+
count: total.count,
|
|
215
|
+
formatAmount,
|
|
216
|
+
formatCount,
|
|
217
|
+
donut: /* @__PURE__ */ jsx(SummaryDonut, {
|
|
218
|
+
segments,
|
|
219
|
+
highlightedId: hoveredCellId,
|
|
220
|
+
onSegmentHover: setHoveredSegmentId,
|
|
221
|
+
reducedMotion: room.reduce
|
|
222
|
+
})
|
|
223
|
+
}), statuses.map((status) => /* @__PURE__ */ jsx(SummaryCell, {
|
|
224
|
+
family: status.family,
|
|
225
|
+
label: status.label,
|
|
226
|
+
description: status.description,
|
|
227
|
+
amount: status.amount,
|
|
228
|
+
count: status.count,
|
|
229
|
+
included: !excluded.has(status.id),
|
|
230
|
+
formatAmount,
|
|
231
|
+
formatCount,
|
|
232
|
+
crossHighlighted: hoveredSegmentId === status.id,
|
|
233
|
+
onClick: () => toggleStatus(status),
|
|
234
|
+
onMouseEnter: () => setHoveredCellId(status.id),
|
|
235
|
+
onMouseLeave: () => setHoveredCellId((current) => current === status.id ? null : current)
|
|
236
|
+
}, status.id))]
|
|
237
|
+
})
|
|
238
|
+
})
|
|
239
|
+
}),
|
|
240
|
+
/* @__PURE__ */ jsxs("div", {
|
|
241
|
+
className: slots.toggleRow(),
|
|
242
|
+
children: [
|
|
243
|
+
/* @__PURE__ */ jsx(Divider, {
|
|
244
|
+
"aria-hidden": "true",
|
|
245
|
+
className: slots.divider()
|
|
246
|
+
}),
|
|
247
|
+
/* @__PURE__ */ jsx(Button, {
|
|
248
|
+
variant: "tertiary",
|
|
249
|
+
size: "xs",
|
|
250
|
+
"aria-expanded": !collapsed,
|
|
251
|
+
"aria-controls": itemsId,
|
|
252
|
+
"data-fods-part": "collapse-toggle",
|
|
253
|
+
leadingIcon: /* @__PURE__ */ jsx(MotionCaret, {
|
|
254
|
+
open: !collapsed,
|
|
255
|
+
turnWhen: "closed",
|
|
256
|
+
className: slots.caret(),
|
|
257
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "caret-up-small" })
|
|
258
|
+
}),
|
|
259
|
+
onClick: () => setCollapsed(!collapsed),
|
|
260
|
+
children: collapsed ? expandLabel : collapseLabel
|
|
261
|
+
}),
|
|
262
|
+
/* @__PURE__ */ jsx(Divider, {
|
|
263
|
+
"aria-hidden": "true",
|
|
264
|
+
className: slots.divider()
|
|
265
|
+
})
|
|
266
|
+
]
|
|
267
|
+
}),
|
|
268
|
+
/* @__PURE__ */ jsx("span", {
|
|
269
|
+
role: "status",
|
|
270
|
+
"aria-live": "polite",
|
|
271
|
+
className: "sr-only",
|
|
272
|
+
children: announcement
|
|
273
|
+
})
|
|
274
|
+
]
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
StatusSummaryBar.displayName = "StatusSummaryBar";
|
|
278
|
+
export { StatusSummaryBar, statusSummaryBarVariants };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { StatusSummaryAnnouncement, StatusSummaryBar, StatusSummaryBarProps, StatusSummaryFamily, StatusSummaryItem, statusSummaryBarVariants } from "./StatusSummaryBar.js";
|
|
2
|
+
export { type StatusSummaryAnnouncement, StatusSummaryBar, type StatusSummaryBarProps, type StatusSummaryFamily, type StatusSummaryItem, statusSummaryBarVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StatusSummaryBar, statusSummaryBarVariants } from "./StatusSummaryBar.js";
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type SubjectLookupFieldState = 'default' | 'focused' | 'searching' | 'found' | 'no-match';
|
|
3
|
+
export type SubjectLookupSource = 'contacts' | 'registry';
|
|
4
|
+
export interface SubjectLookupItem {
|
|
5
|
+
id: string;
|
|
6
|
+
/** Subject name — the row label; the matched substring is bolded. */
|
|
7
|
+
label: string;
|
|
8
|
+
companyNumber?: string | null;
|
|
9
|
+
taxNumber?: string | null;
|
|
10
|
+
/** Second description line — rendered on registry rows only. */
|
|
11
|
+
address?: string | null;
|
|
12
|
+
}
|
|
13
|
+
export interface SubjectLookupGroup<T extends SubjectLookupItem = SubjectLookupItem> {
|
|
14
|
+
source: SubjectLookupSource;
|
|
15
|
+
/** Already capped by the host — the component renders what it gets. */
|
|
16
|
+
items: T[];
|
|
17
|
+
/** Total match count; `total - items.length > 0` draws the „Dalších N" row. */
|
|
18
|
+
total: number;
|
|
19
|
+
}
|
|
20
|
+
export interface SubjectLookupFieldLabels {
|
|
21
|
+
/** Clear × accessible name — „Vymazat hledání". */
|
|
22
|
+
clear: string;
|
|
23
|
+
/** Panel toggle accessible name — „Skrýt výsledky". */
|
|
24
|
+
hidePanel: string;
|
|
25
|
+
/** „Zadám vše o {query} ručně". */
|
|
26
|
+
manualEntry: (query: string) => string;
|
|
27
|
+
/** „Zadám vše o subjektu ručně" — empty query. */
|
|
28
|
+
manualEntryEmpty: string;
|
|
29
|
+
/** „{query} nenalezen, údaje zadám ručně" — the whole No match panel. */
|
|
30
|
+
noMatch: (query: string) => string;
|
|
31
|
+
/** „Nalezeno v kontaktech (N)". */
|
|
32
|
+
contactsGroup: (n: number) => string;
|
|
33
|
+
/** „Nalezeno v rejstříku (N)". */
|
|
34
|
+
registryGroup: (n: number) => string;
|
|
35
|
+
/** „Vyberte ze svých kontaktů (N)" — empty query (browse). */
|
|
36
|
+
browseContacts: (n: number) => string;
|
|
37
|
+
/** „Dalších N". */
|
|
38
|
+
showMore: (n: number) => string;
|
|
39
|
+
/** „IČO". */
|
|
40
|
+
companyNumber: string;
|
|
41
|
+
/** „DIČ". */
|
|
42
|
+
taxNumber: string;
|
|
43
|
+
/** Status node while searching — „Vyhledávám…". */
|
|
44
|
+
statusSearching: string;
|
|
45
|
+
/** Status node on resolve — „Počet výsledků: N". */
|
|
46
|
+
statusFound: (n: number) => string;
|
|
47
|
+
/** Status node on no match — „Žádné výsledky". */
|
|
48
|
+
statusNoMatch: string;
|
|
49
|
+
/** Mobile sheet title; defaults to the field label. */
|
|
50
|
+
sheetTitle?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface SubjectLookupFieldProps<T extends SubjectLookupItem = SubjectLookupItem> {
|
|
53
|
+
/** The text in the input. Controlled — the host debounces off it. */
|
|
54
|
+
query: string;
|
|
55
|
+
onQueryChange: (query: string) => void;
|
|
56
|
+
/** Result groups, already capped. For an empty query: the saved contacts (browse). */
|
|
57
|
+
groups: SubjectLookupGroup<T>[];
|
|
58
|
+
/**
|
|
59
|
+
* The request is in flight (Searching): spinner, `aria-busy`, the start string in
|
|
60
|
+
* the status node. Set it on the first keystroke so it covers the debounce too —
|
|
61
|
+
* one Searching state serves typing and fetching (manifest notes[5]).
|
|
62
|
+
*/
|
|
63
|
+
loading?: boolean;
|
|
64
|
+
/** A result row was picked — the host collapses the field into the summary card. */
|
|
65
|
+
onSelect: (item: T) => void;
|
|
66
|
+
/** The manual-entry row ran. */
|
|
67
|
+
onManualEntry: () => void;
|
|
68
|
+
/** A „Dalších N" row ran; the panel stays open. */
|
|
69
|
+
onShowMore?: (source: SubjectLookupSource) => void;
|
|
70
|
+
placeholder?: string;
|
|
71
|
+
/** Every string the component renders — it has no locale of its own. */
|
|
72
|
+
labels: SubjectLookupFieldLabels;
|
|
73
|
+
/**
|
|
74
|
+
* Floating label (the shell's `Show label`). When set, the component wraps its
|
|
75
|
+
* shell in `Field` itself, which is what lets the Found label take the Success ink
|
|
76
|
+
* (manifest parts.label.found) — a `Field` wrapped around the component from the
|
|
77
|
+
* outside cannot see the runtime flow. Prefer it over an outer `Field`.
|
|
78
|
+
*/
|
|
79
|
+
label?: string;
|
|
80
|
+
/** Helper line under the shell (the shell's `Helper`) — host content, never an outcome. */
|
|
81
|
+
helperText?: string;
|
|
82
|
+
/**
|
|
83
|
+
* A situational hint that pre-empts the search outcome — e.g. „Rejstřík se prohledá od 3 znaků"
|
|
84
|
+
* while the host skips the registry for a short query (spec § Copy → Helper).
|
|
85
|
+
* While it is set and the resolved query has no results, the flow stays `focused`
|
|
86
|
+
* instead of `no-match`: the panel shows only the manual-entry row (never the
|
|
87
|
+
* no-match line) and the status node announces the hint. It replaces `helperText`
|
|
88
|
+
* on the helper line (when `label` is set). Results, when there are any, still win.
|
|
89
|
+
*/
|
|
90
|
+
hint?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Host-owned error message on the helper line (`Field`'s `error`, with `label`) — manifest
|
|
93
|
+
* 2.1.0 `properties[error]`, families `host-error`. Text Field Error recipe: label and helper
|
|
94
|
+
* --status-danger, border --status-danger thickened to --border-width-200 while focused
|
|
95
|
+
* (`focus.errorFocus`); the message replaces any hint; the input gets `aria-invalid` and
|
|
96
|
+
* `aria-describedby` → helper. The trailing keeps the flow glyphs. Not a flow state — use it
|
|
97
|
+
* for the host form's validation (e.g. a required supplier), never for registry validation,
|
|
98
|
+
* which the spec keeps on the manual-entry TextFields. There is no host success: Found is
|
|
99
|
+
* the only success signal.
|
|
100
|
+
*/
|
|
101
|
+
error?: string;
|
|
102
|
+
/** The shell's `Optional` tag. */
|
|
103
|
+
optionalLabel?: string;
|
|
104
|
+
/**
|
|
105
|
+
* STATIC override of the flow state — Storybook and the FODS verifier only
|
|
106
|
+
* Leave it unset in the product.
|
|
107
|
+
*/
|
|
108
|
+
state?: SubjectLookupFieldState;
|
|
109
|
+
/**
|
|
110
|
+
* STATIC override of the Panel axis on the trigger — stories / verifier only. Drives
|
|
111
|
+
* `aria-expanded` and the trailing (caret vs wand / clear ×); it does NOT mount a
|
|
112
|
+
* panel, so several Open cells can sit in one Matrix.
|
|
113
|
+
*/
|
|
114
|
+
panelOpen?: boolean;
|
|
115
|
+
/** Open the real panel on mount (stories). */
|
|
116
|
+
defaultOpen?: boolean;
|
|
117
|
+
id?: string;
|
|
118
|
+
className?: string;
|
|
119
|
+
disabled?: boolean;
|
|
120
|
+
/** md (48) only — the manifest has no other size. */
|
|
121
|
+
size?: 'md';
|
|
122
|
+
/** Id of the visible text naming the panel's listbox. */
|
|
123
|
+
panelLabelledBy?: string;
|
|
124
|
+
/** Fallback listbox name when nothing visible names the field. */
|
|
125
|
+
panelLabel?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Accessible name of the visually hidden close button of the mobile bottom sheet.
|
|
128
|
+
* Defaults to «Zavřít» (Czech); an app with more language versions passes it from
|
|
129
|
+
* its translations.
|
|
130
|
+
*/
|
|
131
|
+
sheetCloseLabel?: string;
|
|
132
|
+
'aria-label'?: string;
|
|
133
|
+
'aria-describedby'?: string;
|
|
134
|
+
'aria-invalid'?: boolean;
|
|
135
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
136
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
137
|
+
'data-testid'?: string;
|
|
138
|
+
}
|
|
139
|
+
declare const subjectLookupGlyphVariants: import("tailwind-variants").TVReturnType<{
|
|
140
|
+
tone: {
|
|
141
|
+
brand: string;
|
|
142
|
+
progress: string;
|
|
143
|
+
success: string;
|
|
144
|
+
};
|
|
145
|
+
}, undefined, "inline-flex size-icon shrink-0 items-center justify-center", undefined, undefined, undefined>;
|
|
146
|
+
declare const subjectLookupButtonVariants: import("tailwind-variants").TVReturnType<{
|
|
147
|
+
control: {
|
|
148
|
+
clear: string;
|
|
149
|
+
toggle: string;
|
|
150
|
+
};
|
|
151
|
+
}, undefined, string[], undefined, undefined, undefined>;
|
|
152
|
+
declare const SubjectLookupField: (<T extends SubjectLookupItem = SubjectLookupItem>(props: SubjectLookupFieldProps<T> & {
|
|
153
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
154
|
+
}) => React.ReactElement) & {
|
|
155
|
+
displayName?: string;
|
|
156
|
+
};
|
|
157
|
+
export { SubjectLookupField, subjectLookupButtonVariants, subjectLookupGlyphVariants };
|