@invoiceonline/ui-react 0.0.0 → 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 +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-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 +351 -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-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
package/AGENTS.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# AGENTS.md: @invoiceonline/ui-react
|
|
2
|
+
|
|
3
|
+
For an AI agent working in an app that installs this package. The package is in
|
|
4
|
+
`node_modules/@invoiceonline/ui-react/`; everything below is relative to that folder.
|
|
5
|
+
|
|
6
|
+
## Where the docs are
|
|
7
|
+
|
|
8
|
+
1. `llms.txt`: every component with its import, exports, a one-line summary and its
|
|
9
|
+
Storybook docs ID. Start here.
|
|
10
|
+
2. `docs/Consuming.mdx`: styles in both modes, cascade layers, providers, portals, assets,
|
|
11
|
+
server components, texts and locale, known gaps. Read it before touching the app's
|
|
12
|
+
global CSS or root layout.
|
|
13
|
+
3. `src/components/<folder>/<Name>.mdx`: the docs page of one component (when to use it,
|
|
14
|
+
props, accessibility); `<Name>.stories.tsx` has working examples; `<Name>.tsx` has
|
|
15
|
+
the props with their JSDoc. Types: `dist/**/*.d.ts`.
|
|
16
|
+
4. `docs/ForAgents.mdx`: the MCP addon of the Storybook, how a docs ID is derived, what on a
|
|
17
|
+
docs page is evidence-bound; `docs/Introduction.mdx`: how the Storybook reads.
|
|
18
|
+
|
|
19
|
+
## Rules
|
|
20
|
+
|
|
21
|
+
The single source of the rules; `llms.txt` copies this section verbatim when the package is
|
|
22
|
+
generated.
|
|
23
|
+
|
|
24
|
+
- **Imports:** only `@invoiceonline/ui-react`, `@invoiceonline/ui-react/<folder>`,
|
|
25
|
+
`@invoiceonline/ui-react/tokens` (the tokens as JS: `primitives`, `semantic`, `springs`,
|
|
26
|
+
`curves`) and the CSS entries `tokens.css`, `styles.css`, `theme.css`, `shared.css`. Never
|
|
27
|
+
import a `dist/…` or `src/…` path, or anything else not in the `exports` of
|
|
28
|
+
`package.json`: it is private and may move in any release.
|
|
29
|
+
- **Tokens come from this package only.** Do not add `@invoiceonline/ui-system` to the app:
|
|
30
|
+
its `tokens.css` can be from another commit than the components and their theme.
|
|
31
|
+
- **Styles:** one mode only, as in `docs/Consuming.mdx`. Without Tailwind: `tokens.css`
|
|
32
|
+
then `styles.css`. With Tailwind 4: `theme.css`, `shared.css` and `@source` on the
|
|
33
|
+
package `dist/`, never `styles.css` as well. The `@layer` declaration goes first; without
|
|
34
|
+
Tailwind it sits in a stylesheet of its own, imported before the package imports (in the
|
|
35
|
+
same file a bundler can emit the imports ahead of it and the app's reset then wins).
|
|
36
|
+
`theme.css` replaces the app's Tailwind theme (`--*: initial`): after it `gap-4` or
|
|
37
|
+
`text-sm` produce no CSS anywhere in the app, so do not add it to an app that uses
|
|
38
|
+
Tailwind's default scale.
|
|
39
|
+
- **Do not restyle components from global CSS.** The package's rules are in
|
|
40
|
+
`@layer fods.base` and `@layer fods.utilities`; any unlayered rule of the app beats them
|
|
41
|
+
whatever its specificity. Put a global reset (`* { padding: 0 }`, `input { … }`,
|
|
42
|
+
`a { … }`) in a layer declared before `fods`, or scope it with
|
|
43
|
+
`:not([data-fods-part], [data-fods-part] *)`. Change a component through its props
|
|
44
|
+
(`variant`, `size`…), not by overriding its classes.
|
|
45
|
+
- **No preflight is shipped.** A component sets its font family and the regular weight on
|
|
46
|
+
its outermost element; line height, letter spacing, text transform and font style come
|
|
47
|
+
from the page. TextLink keeps the weight and font smoothing of its sentence.
|
|
48
|
+
- **Fonts are not shipped:** the app loads Inter (`--font-body`), Poppins (`--font-heading`)
|
|
49
|
+
and Caveat (`--font-decorative`, the pointer label of ProgressBar and the `kicker` of
|
|
50
|
+
HeadingGroup and Hero).
|
|
51
|
+
- **Button colours:** `variant="primary"` of Button and IconButton is the blue in-app
|
|
52
|
+
default; the orange fill is `variant="brand"`. A hand-made button on `--primary-solid`
|
|
53
|
+
maps to `brand`, not `primary`. When to use which: the Button docs page.
|
|
54
|
+
- **Providers:** `FodsProvider` once per React root, in every app, around everything that
|
|
55
|
+
renders a FODS component. Without it every component that renders a Tooltip throws (Table
|
|
56
|
+
mounts its own provider) and the open / closed carets turn even under reduced motion; both
|
|
57
|
+
lists are in `docs/Consuming.mdx` → Providers. The app needs no `motion` dependency for it.
|
|
58
|
+
Mount `TooltipProvider` (exported here) or `MotionConfig` (from `motion/react`) yourself only
|
|
59
|
+
for other settings, below `FodsProvider`; the nearest provider wins. A `MotionConfig` of the
|
|
60
|
+
app's own needs `motion` in the app's dependencies and reaches the components only when it
|
|
61
|
+
resolves the same copy of `motion` as the package.
|
|
62
|
+
- **Portals:** Modal, Drawer, the mobile bottom sheets and the Tooltip bubble portal to
|
|
63
|
+
`document.body`; the desktop floating panels (AnchoredPanel, Menu, Select, Combobox,
|
|
64
|
+
DateField…) and the toggletip bubble go into the enclosing Modal or Drawer, else
|
|
65
|
+
`document.body`. To portal elsewhere, provide the element through `PortalContainerContext`.
|
|
66
|
+
- **Assets:** `dist/assets/` travels with `styles.css` / `shared.css` (`url()` relative to
|
|
67
|
+
the stylesheet); only PromoSurface (a background image) and PromoSticker (a CSS mask, CORS
|
|
68
|
+
header needed from another origin) draw from it. The components ship no pictures: the app
|
|
69
|
+
passes its own as React elements (`<img src={…} alt="" />` or an inline SVG) to
|
|
70
|
+
`illustration` of FormSection (`header="h3"`) and FormBlock, `character` and
|
|
71
|
+
`invoiceIllustration` `{ left, right }` of Banner, and `emptyState.illustration` of Table.
|
|
72
|
+
The component owns the box and hides it from assistive technology.
|
|
73
|
+
- **Server components:** every component file starts with `"use client"`; import components
|
|
74
|
+
into Next.js server components as leaf client components. Props must be serialisable
|
|
75
|
+
there: handlers and the `columns` of Table belong in a client component. Non-component
|
|
76
|
+
exports of component files (`buttonVariants`…) cannot be called in a server component.
|
|
77
|
+
- **Texts:** the package has no translations. Texts come through props; some have a Czech
|
|
78
|
+
default (Modal `closeLabel`, Pagination `labels`, Table `loadedLabel` and
|
|
79
|
+
`mobile.moreLabel`, FilterFacet `doneLabel`, FileUpload `triggerLabel`, `dropHintText`,
|
|
80
|
+
`viewLabel`, `removeLabel` and `uploadingLabel`), and number and date formatting defaults
|
|
81
|
+
to Czech (`locale` of NumberField, UnitField, FieldPair, ItemRow, FilterChip, DatePicker,
|
|
82
|
+
DateField; `dateLocale` of a date FieldPair). The hidden close button of the mobile bottom
|
|
83
|
+
sheets defaults to «Zavřít»; Menu, Select, Combobox, FilterFacet and SubjectLookupField
|
|
84
|
+
take its name in `sheetCloseLabel`. An app with more than one language version passes
|
|
85
|
+
every one of these from its translations on every use, including the screen-reader-only
|
|
86
|
+
`loadedLabel`, `sheetCloseLabel` and the FileUpload action and progress names. Full table:
|
|
87
|
+
`docs/Consuming.mdx` → Texts and locale.
|
|
88
|
+
- **Table:** `SortingState`, `RowSelectionState` and `ColumnVisibilityState` come from
|
|
89
|
+
`@tanstack/react-table`, a peer dependency the package does not re-export: keep it in
|
|
90
|
+
the app's dependencies in the package's range and import the types from there.
|
|
91
|
+
- **Missing components:** `llms.txt` lists every component of the package; a FODS
|
|
92
|
+
component that is not there (Breadcrumbs, Toast…) is missing. Do not build a look-alike
|
|
93
|
+
from FODS parts and do not copy one from another library: tell the user the component is
|
|
94
|
+
missing. Menu wires a ButtonGroupItem with `caret` or an icon-only one, a DropdownButton
|
|
95
|
+
or an IconButton as its `trigger`; it cannot take a SplitButton, whose menu panel the app
|
|
96
|
+
renders from `open` / `onOpenChange`.
|
|
97
|
+
- **No hardcoded values** for colour, spacing, radius or type next to the components: use
|
|
98
|
+
the CSS variables of `@invoiceonline/ui-react/tokens.css` (in JS:
|
|
99
|
+
`@invoiceonline/ui-react/tokens`).
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# @invoiceonline/ui-react
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3a96e2c: Adds six components, each with its stories and docs page: ActionRow, ColumnHeader, DropdownButton, HeadingGroup, Textarea and UnitField. Each has its own subpath export (`@invoiceonline/ui-react/textarea`).
|
|
8
|
+
|
|
9
|
+
UnitField formats its number with `react-number-format`, a new dependency of the package.
|
|
10
|
+
|
|
11
|
+
The theme gains the text class `text-heading-xxl` for the Decorative/Caveat/32 style. It sets the font size and the letter spacing; the style has no line height token, so a component adds the line height itself. HeadingGroup's kicker uses it.
|
|
12
|
+
- c89be4c: Adds four components, each with its stories and docs page: Alert, CardSelect (with CardSelectGroup), DatePicker and FilterChip.
|
|
13
|
+
|
|
14
|
+
DatePicker is built on `react-day-picker` and `date-fns`, two new dependencies of the package. Its `locale` prop takes a date-fns locale and defaults to Czech, imported from `date-fns/locale/cs`.
|
|
15
|
+
|
|
16
|
+
FilterChip formats its count with the new `locale` prop, a BCP 47 tag that defaults to `cs`.
|
|
17
|
+
- 21d07b3: Adds the overlay family, each with its stories and docs page: AnchoredPanel (with `useAnchoredPanel`), Menu, Select and SelectField, and the Popover Surface recipe (`popoverSurfaceVariants`, `popoverBodyClass`, `popoverGroupClass`) under `@invoiceonline/ui-react/popover-surface`.
|
|
18
|
+
|
|
19
|
+
Below the `sm` breakpoint Menu and Select open a bottom sheet instead of the anchored panel. The sheet is built on `@radix-ui/react-dialog`, a new dependency of the package. Its close button reads «Zavřít» unless `sheetCloseLabel` says otherwise.
|
|
20
|
+
- e7b6970: `buttonVariants` is typed as `(options?) => string` with written-out options (`variant`, `size`, `showSurface`, `hasLeading`, `hasTrailing`) instead of the `TVReturnType` of tailwind-variants, so the public types of Button no longer depend on tailwind-variants. Calling it works as before. `ButtonProps` no longer lists `hasLeading` and `hasTrailing`: Button derives them from `leadingIcon` and `trailingIcon`, and a passed value only ended up as an unknown attribute on the `<button>`. Button's JSDoc no longer carries internal review notes.
|
|
21
|
+
|
|
22
|
+
### Migration
|
|
23
|
+
|
|
24
|
+
- Remove `hasLeading` and `hasTrailing` from `<Button>` calls; TypeScript now rejects them. Pass `leadingIcon` or `trailingIcon` instead, which set the same spacing.
|
|
25
|
+
- e7b6970: Chip gets the `href` prop (manifest `chip` 1.8.1). With `href` a `type="basic"` chip renders as a link, `<a href>`, for a chip that leads to a listing such as the category chips under an article; without it a Basic chip stays the `<button>` filter tag. A link chip has no trailing ⓘ: `info` is dropped with a dev warning, and so is `href` on `selectable` and `deleteable`. A disabled link chip drops its href, keeps `role="link"` with `aria-disabled="true"`, leaves the tab order and cancels a click before any `onClick` or `onClickCapture` of yours runs, as TextLink does. The chip's ink now carries `!` so that an app's global anchor colour and underline cannot repaint the link form.
|
|
26
|
+
- 78e6068: Adds five components, each with its stories and docs page: ComboboxField (with Combobox, exported from the same subpath), SubjectLookupField, FilterFacet, Pagination and Drawer. Each has its own subpath export (`@invoiceonline/ui-react/pagination`).
|
|
27
|
+
|
|
28
|
+
Pagination takes its texts through the `labels` prop; the defaults are Czech («Stránkování», «Předchozí», «Další», «Stránka», «Další stránky»), so another market passes its own strings. The cell recipe `paginationItemVariants` is exported next to it.
|
|
29
|
+
|
|
30
|
+
Below `sm`, Combobox, SubjectLookupField and FilterFacet open their list as a bottom sheet, like Select and Menu.
|
|
31
|
+
|
|
32
|
+
The theme gains four animation classes for the check SubjectLookupField draws when a subject is found: `animate-lookup-check-ring`, `-tick`, `-burst` and `-spark`.
|
|
33
|
+
- e7b6970: Drawer follows its manifest 1.0.5: on `placement="right"` the header is the open state of the Nav Bar's Menu button. Root shows one close IconButton (secondary, md, `x`) at the right end and renders `title` visually hidden as the dialog's name; Nested shows back (tertiary, md, `arrow-left`) · the centred title · the same close. The header is 60 px tall with the page's side padding per breakpoint (16 · 24 · 32 · 40 px at mobile · `sm` · `md` · `lg`). Focus lands on the close button on open, on the back button after a drill-in, and on the opening row after stepping back. `placement="left"` (the parked model) keeps its header unchanged.
|
|
34
|
+
|
|
35
|
+
### Migration
|
|
36
|
+
|
|
37
|
+
- `nested` now requires `placement="right"`: Placement=Left has no Nested level, and the types reject `nested` without it. Add `placement="right"` wherever you pass `nested`.
|
|
38
|
+
- On Placement=Right, Root, the title is no longer shown. Pass the panel's name (cs «Menu») as `title`; it stays the dialog's accessible name.
|
|
39
|
+
- On Placement=Right the single arrow control (`data-fods-part="dismiss-or-back"`, IconButton tertiary lg) and the end-cap spacer are gone. `closeLabel` now names the close button, `backLabel` the back button. Selectors and tests that targeted `dismiss-or-back` on Placement=Right target `close` or `back`.
|
|
40
|
+
- On Placement=Left the arrow only closes the panel.
|
|
41
|
+
- 19841d9: The tokens export carries the new `--duration-draw` (800 ms, a glyph that draws itself once) with its primitive `--ds-duration-extra-long`, and the theme gains the `duration-draw` utility; and the Found check of `SubjectLookupField` runs its draw on it: the four `animate-lookup-check-*` theme utilities use `var(--duration-draw)` instead of `calc(var(--duration-normal) * 4)` (manifest 2.3.0). Same 800 ms, no visual change.
|
|
42
|
+
- dca7281: Adds five components, each with its stories and docs page: FAQ, Hero, Banner, StatusSummaryBar and FormActions. Each has its own subpath export (`@invoiceonline/ui-react/faq`).
|
|
43
|
+
|
|
44
|
+
StatusSummaryBar draws its ring with ECharts, so `echarts` is a new dependency of the package. Only the pie chart and the SVG renderer are registered.
|
|
45
|
+
|
|
46
|
+
The theme gains the Hero entrance animations `animate-hero-enter-rise` and `animate-hero-enter-fade`, and the page-container widths `max-w-container-sm`, `-md`, `-lg` and `-xl`.
|
|
47
|
+
- 84bcc10: Adds FileUpload, the drop-zone field for attaching a file or image inside a form, with its stories. It is built against the File Upload manifest 1.11.0: the thumbnail placeholder is the new `image` icon.
|
|
48
|
+
|
|
49
|
+
All six manifest states come from content (`loading` and `progress`, `files` with `kind`, `multiple`, `error`); there is no `state` prop. The floating label is the `<label>` of a visually hidden file input, so `label` is required. The copy props `triggerLabel`, `dropHintText`, `viewLabel`, `removeLabel` and `uploadingLabel` are optional and default to Czech; an app with more language versions passes them from its translations. `files` is controlled only. The component reports `onFilesSelect`, `onRemove` and `onView` and uploads nothing itself. A click on the drop-zone opens the picker too; filenames truncate keeping their extension; when a remove or a finished upload takes away the focused control, focus moves to the trigger, the next row's remove action or the first action of the uploaded file.
|
|
50
|
+
- bc329f7: FilterFacet (`multiple`): the mobile bottom sheet follows `overlay-behavior.md` § Mobile.
|
|
51
|
+
The sheet always shows the «Hotovo» footer, a full-width Primary Button `lg` padded
|
|
52
|
+
`--space-600` on the top and sides and `--space-600` plus the bottom safe-area inset below;
|
|
53
|
+
`doneLabel` now defaults to `'Hotovo'` (an app with more than one language version passes
|
|
54
|
+
its translation). The opt-in desktop footer is gone: from `sm` up the panel has no footer
|
|
55
|
+
and ignores `doneLabel`. On the sheet the group divider that repeated the title is dropped,
|
|
56
|
+
the checked count `(N)` moves into the sheet title as visual-only text (the dialog and the
|
|
57
|
+
group keep the bare facet name), and a polite live region announces the total («Vybráno N»
|
|
58
|
+
through `selectedCountLabel`), debounced while boxes are ticked.
|
|
59
|
+
|
|
60
|
+
Every bottom sheet (Select, Combobox, Menu, FilterFacet, SubjectLookupField): the body keeps
|
|
61
|
+
`--space-800` plus the bottom safe-area inset below its last row and drops it when the sheet
|
|
62
|
+
has a footer, and row groups are inset `max(--space-400, safe-area inset)` from the side edges.
|
|
63
|
+
- 75b9bc9: First release of the FODS React components. It ships 24 components, each with its stories and docs page: Badge, Button, ButtonGroup, Checkbox, Chip, Divider, Field, FirmAvatar, Heading, Icon, IconButton, ListRow, NumberField, ProgressBar, PromoSticker, PromoSurface, Radio, RadioGroup, Skeleton, SplitButton, Switch, TextField, TextLink and Tooltip.
|
|
64
|
+
|
|
65
|
+
The package is ESM with one file per source file, `"use client"` on every component and a subpath export per component (`@invoiceonline/ui-react/button`). The root entry also exports `hasOpenFloatingPanel`, `PortalContainerContext`, `buttonSegmentVariants` and `progressBarItemVariants` with their types.
|
|
66
|
+
|
|
67
|
+
`FodsProvider` is the root provider: it mounts `TooltipProvider` and `<MotionConfig reducedMotion="user">`, so an app mounts one provider once per React root and needs no `motion` dependency of its own.
|
|
68
|
+
|
|
69
|
+
The icon registry is generated from the FODS icon manifest (122 icons) and renders inline SVG.
|
|
70
|
+
|
|
71
|
+
The outermost element of every component sets the body font family and the regular weight, so a component does not take the font of the page it sits in. Class merging runs on tailwind-merge 3 with a config generated from the theme, shared by `cn` and `tv`. PromoSurface and PromoSticker take their artwork from the stylesheet: `styles.css` and `shared.css` point at `./assets/pattern-dark.svg` and `./assets/label-brush-1.svg`, published in `dist/assets/`, so a bundler has to resolve `url()` in the imported stylesheet.
|
|
72
|
+
|
|
73
|
+
The design tokens ship in the package, from the same commit as the components and their theme: `@invoiceonline/ui-react/tokens.css` (the CSS variables), `@invoiceonline/ui-react/tokens` (the same tokens as JS: `primitives`, `semantic`, `springs`, `curves`) and `@invoiceonline/ui-react/tokens.flat.json`. There is no peer dependency on `@invoiceonline/ui-system`: an app installs this one package and imports `tokens.css` from it. A token change is released as a version of this package.
|
|
74
|
+
|
|
75
|
+
The tarball carries the consumer documentation: `README.md`, `docs/Consuming.mdx` (styles with and without Tailwind, cascade layers, the providers an app has to mount, assets, server components), `AGENTS.md` and a generated `llms.txt` listing every component.
|
|
76
|
+
- 571c0fd: Exports `useFormBlock` and the type `FormBlockContextValue` from the `form-block` entry. Inside a FormBlock the hook returns `{ titleId }`, the id of the block's title; outside one it returns `null`. An app names its own group of item rows by it, `aria-labelledby={block?.titleId}`, so a screen reader announces the rows under the block's title.
|
|
77
|
+
- 99d50ae: Adds the `image` icon (Content & business) from the icon manifest 1.19.0, so `IconName` now has 122 names. The icon registry follows the icon manifest 1.20.0.
|
|
78
|
+
- 3af6bae: `Icon` is sized by a token step instead of a pixel number. `size` takes `'2xsmall' | 'xsmall' | 'small' | 'default' | 'large' | 'display'` (the `--size-icon*` scale; the new `IconSize` type is exported) and sets the glyph's width and height through the `size-icon-*` utilities. Without `size` the glyph is `--size-icon`. The `<svg>` no longer carries `width="1em" height="1em"` or an inline `font-size`, so a host's `font-size` no longer sizes an icon. Replace `size={16}` with `size="xsmall"`, `size={20}` with `size="small"`, `size={24}` with `size="default"` (or no `size`) and `size={32}` with `size="large"`.
|
|
79
|
+
|
|
80
|
+
Components size their icons the same way, from their manifest `sizes[].icon`: Button, IconButton, ButtonGroup and SplitButton through `[&_.icon]:size-icon-*` on the control (the spinner and the caret included), TextLink per tier (`size="inherit"` keeps the icon at `1em` of the running text), ListRow on the direct children of its slots (a Checkbox in a slot keeps its own glyph), and TextField, Badge, Chip, Switch, NumberField and Checkbox through the `size` prop. The Checkbox glyph is `2xsmall` at both sizes, and so is the check of a selectable Chip; at Checkbox `sm` that is 14 px where it was 12 px.
|
|
81
|
+
- 571c0fd: Illustrations are props: the package ships no pictures for FormSection, FormBlock, Banner and the Table empty state. The app passes its own copy as a React element (`<img src={…} alt="" />` or an inline SVG); the component keeps the box (size, position, clipping) and hides it from assistive technology. The pictures the stories use travel in the tarball under `src/storybook/assets/`; `dist/assets/` carries none of them.
|
|
82
|
+
|
|
83
|
+
What each component takes:
|
|
84
|
+
|
|
85
|
+
- FormSection (`header="h3"`) and FormBlock: `illustration={<img src={documentInfo} alt="" />}`.
|
|
86
|
+
- Banner: Person requires `character` and `invoiceIllustration={{ left, right }}`, Invoice requires `invoiceIllustration`; Mini takes neither. `BannerPitchProps` is the union `BannerPersonProps | BannerInvoiceProps` (both exported, with `BannerInvoiceIllustration`), so a type built on it is an intersection (`type X = BannerPitchProps & { … }`), not an `interface … extends`.
|
|
87
|
+
- Table: `emptyState.illustration` is required — the picture for the kind (folder-empty, folder-magnifying-glass, funnel, load-failed).
|
|
88
|
+
- d838f21: Adds six components, each with its stories and docs page: Modal, DateField, FieldPair, ItemRow, FormSection and FormBlock. Each has its own subpath export (`@invoiceonline/ui-react/modal`).
|
|
89
|
+
|
|
90
|
+
Modal names its close button through the `closeLabel` prop; the default is Czech («Zavřít»), so another market passes its own string.
|
|
91
|
+
|
|
92
|
+
The theme gains the width classes `max-w-content-narrow`, `max-w-content-medium` and `max-w-content-wide` for the three content widths of the token package. FormBlock caps its tile with the widest.
|
|
93
|
+
- e7b6970: Adds NavLink, the item of the top navigation, with its stories and docs page. It is always an `<a href>`; the current item is the one that carries `aria-current`. It has its own subpath export (`@invoiceonline/ui-react/nav-link`).
|
|
94
|
+
|
|
95
|
+
Storybook gains a Recipes section: four screen-sized examples built from the components of the package (a form page, a table with filters, a modal with a form, an empty list). A recipe is a story to read and copy from; it exports nothing.
|
|
96
|
+
|
|
97
|
+
Every docs page of a component that renders text has a Copy section: the voice, the limits of each text and the canonical wording. The Metadata section no longer lists a Figma node or a spec path.
|
|
98
|
+
|
|
99
|
+
`llms.txt` has a "When to use" line for each component.
|
|
100
|
+
- 571c0fd: Adds the `sheetCloseLabel` prop to Menu, Select, Combobox, FilterFacet and SubjectLookupField: the accessible name of the visually hidden close button of the mobile bottom sheet. It defaults to «Zavřít»; an app with more language versions passes it from its translations. The docs of Modal `closeLabel`, Table `loadedLabel` and `mobile.moreLabel` and Pagination `labels` now say the same about their Czech defaults.
|
|
101
|
+
- 3c287a2: Table follow-ups from the spec queue (`table` 1.42.0):
|
|
102
|
+
|
|
103
|
+
- `useTableLayout()` (exported with its `TableLayout` type) tells a cell renderer whether it is drawn in the desktop grid or the mobile layout, so one `columnDef.cell` can render the mobile identity link Strong + underlined. Outside a Table it returns `'desktop'`.
|
|
104
|
+
- The mobile layout renders the em dash for an empty identity or status value, as the desktop grid does.
|
|
105
|
+
- `meta.mobilePanel: 'auto' | 'always' | 'never'` replaces `meta.hideInMobilePanel`: `'always'` lists a column in the mobile detail panel even while it is hidden on desktop, `'never'` is the old `hideInMobilePanel: true`.
|
|
106
|
+
- `onRowClick(row, event)`: the whole desktop row opens the record as a pointer convenience; clicks on links, buttons, form controls, the selection cell and the row-actions cell are ignored, and the identity link stays the keyboard path.
|
|
107
|
+
- `mobile.primaryAction` may return `disabled`.
|
|
108
|
+
- While `loading`, sorting (desktop and mobile headers) does nothing and the column-settings trigger is disabled; `mobile.loadMore.loading` keeps the load-more button in its loading state.
|
|
109
|
+
- ColumnHeader gets `disabled`: the sort button keeps its look and tab stop, carries `aria-disabled` and does not call `onSort`.
|
|
110
|
+
- The empty-state title wraps instead of being clamped to two lines.
|
|
111
|
+
- c94e3a0: Adds Table with its stories and docs page: sorting, selection, column settings, pagination, child rows, loading, empty states and the mobile expandable-row layout. Column definitions come from `createTableColumnHelper`. The text announced at the end of a load is the `loadedLabel` prop. Adds `@tanstack/react-table` (`^9.3.1`) as a peer dependency: the props of `Table` use its types, so the app and the package share one copy.
|
|
112
|
+
|
|
113
|
+
### Patch Changes
|
|
114
|
+
|
|
115
|
+
- e7b6970: Accessibility fixes found by running axe on every story:
|
|
116
|
+
|
|
117
|
+
- AnchoredPanel hides the dividers around its header and footer from assistive technology. They are visual chrome, and a `listbox` panel may only contain groups and options.
|
|
118
|
+
- SubjectLookupField on mobile renders its read-only trigger with `role="combobox"`, matching ComboboxField and DateField. Before, it announced `aria-expanded` on a plain text box, which does not support it.
|
|
119
|
+
- Modal makes its scroll region a keyboard tab stop, with an inset focus ring, while the body overflows and holds no focusable child, so keyboard users can scroll it. A body with a field or a button gets no extra stop: Tab scrolls it as focus moves. The region never takes the initial focus: that goes to the first visible interactive element, or to the dialog when there is none.
|
|
120
|
+
- e2cedff: Completes the stories and docs pages that waited for other components: ButtonGroup shows its caret cell opening a Menu, Field shows Textarea and Select, and the docs pages link to every sibling that ships in the package. The `llms.txt` entry of PopoverSurface names an export that exists.
|
|
121
|
+
- c9eb39a: Body text now tracks per weight as the text styles specify: Regular at +0.35 % and Semibold at −0.88 % of the font size (`spec/02-tokens/text-styles.json`). The rules are generated into `src/styles/tracking.generated.css` (part of `shared.css` and `styles.css`) with zero specificity, so a heading utility inside body text and any rule of the consumer still win. The theme generator now fails on a text style whose `letterSpacing` has an unknown shape instead of skipping it silently.
|
|
122
|
+
- 1d07f37: The consumer guide, README, AGENTS.md and llms.txt cover the whole package: `FodsProvider` in every app with the full list of components that need it, portals and `PortalContainerContext`, every stylesheet asset, the TanStack types `Table` needs, the Czech default texts and locales, and the known gaps (the `SplitButton` menu, the components not in the package). The rules for an agent in a consuming app are written once, in `AGENTS.md`, and `llms.txt` copies them when the package is generated; the README keeps one style snippet and points to `docs/Consuming.mdx` for the rest.
|
|
123
|
+
- e7b6970: FormBlock follows form-block 2.0.0. Below SM the header stacks: the heading fills the width and the trailing control (the toggle, «Upravit údaje», the price-mode group) sits under it at the row start, full width, `--space-600` apart. There the disclosure toggle keeps its full label and does not step down. The gap between the header and the content is `--space-900` at every breakpoint; it was `--space-800` below MD. A focused toggle keeps the focus when crossing SM switches it between its icon-only and full forms.
|
|
124
|
+
- c17a0d4: docs: generic sample data and wording in stories, MDX and JSDoc. Stories are named by what they show, sample links are `#` or `example.cz`, the Metadata block of a docs page names the spec as `Spec:`, and the Migration notes keep only manifest version → version changes. Two new pages in the tarball: `docs/Introduction.mdx` (how to read the Storybook) and `docs/ForAgents.mdx` (the package for an AI agent).
|
|
125
|
+
- 94d5a5d: fix: Hero plays its entrance inside an iframe. The once-only entrance compared the hero with the viewport of the top page in the coordinates of the frame, so a hero in an iframe either played before it was on screen or never appeared.
|
|
126
|
+
- 4059f17: Item Row's root carries `data-fods-component="item-row"`, the id of its manifest since 3.0.0.
|
|
127
|
+
- d65df9f: Button and ButtonSegment (ButtonGroup, SplitButton) labels now bind the body text-wrap token (`--text-wrap-body`) through the `text-wrap-style` longhand, so the one-line label stays truncated. FieldPair treats a blank `label` as absent (no empty legend chip, no `aria-labelledby` pointing at it) and warns in development when the group ends up with no accessible name.
|
|
128
|
+
- 9c71e17: docs: Status Summary Bar sample status explanations follow the manifest 2.5.1 copy (one sentence, no em dash). No component changed.
|
|
129
|
+
- 62897de: docs: stories no longer scroll sideways. The wrappers a story writes around a component are border-box in Storybook, so the page containers of Hero, Banner, Form Section, Form Block and Form Actions keep their gutters instead of running past the viewport; the Item Row matrix stacks its five frame widths and scales each to the page. No component changed.
|
|
130
|
+
- 571c0fd: Brings back the stories that need a picture: HeadingGroup `Illustration` (and the `wallet` illustration in its Playground and Mobile story), Modal `Marketing`, `Compact with banner` and `Marketing — mobile`, and the real image in the Hero stories. The pictures live in `src/storybook/assets/` and are used only by stories; no component changes.
|
|
131
|
+
- 6c251c8: docs: Tooltip stories show every state without a live cursor. The "Shown — pointer hover" row paints its trigger in the hover state, and the Toggletip story opens with a frozen open toggletip carrying its inline link. No component changed.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
UNLICENSED
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 FakturaOnline s.r.o.
|
|
4
|
+
|
|
5
|
+
All rights reserved.
|
|
6
|
+
|
|
7
|
+
This software and its source code are the proprietary information of FakturaOnline s.r.o.
|
|
8
|
+
No part of this repository may be reproduced, distributed, or transmitted in any form
|
|
9
|
+
or by any means without the prior written permission of FakturaOnline s.r.o.
|
package/README.md
CHANGED
|
@@ -1,3 +1,79 @@
|
|
|
1
1
|
# @invoiceonline/ui-react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
React components of FODS, the FakturaOnline design system, with the design tokens they are
|
|
4
|
+
built on: from Button, TextField and Checkbox to Modal, Menu and Table (the full list is in
|
|
5
|
+
[`llms.txt`](llms.txt)). ESM only, React 19.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @invoiceonline/ui-react
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Peer dependencies: `react` and `react-dom` `^19.0.0`, `@tanstack/react-table` `^9.3.1`.
|
|
14
|
+
The design tokens ship in the package, from the same commit as the components:
|
|
15
|
+
`@invoiceonline/ui-react/tokens.css`, `@invoiceonline/ui-react/tokens` (JS) and
|
|
16
|
+
`@invoiceonline/ui-react/tokens.flat.json`. Do not install `@invoiceonline/ui-system` next to it.
|
|
17
|
+
The package ships no fonts: load Inter, Poppins and Caveat in the app. The package has no
|
|
18
|
+
translations: texts come through props, and some of those props have a Czech default
|
|
19
|
+
(`closeLabel` of Modal, `labels` of Pagination…). An app with more than one language version
|
|
20
|
+
passes all of them from its translations: the full list is in `docs/Consuming.mdx`
|
|
21
|
+
(Texts and locale).
|
|
22
|
+
|
|
23
|
+
## Styles
|
|
24
|
+
|
|
25
|
+
Without Tailwind, load the tokens and the compiled stylesheet after a stylesheet of your own
|
|
26
|
+
that holds only the layer order and is imported first:
|
|
27
|
+
|
|
28
|
+
```css
|
|
29
|
+
@layer properties, reset, fods; /* layers.css, imported before the two below */
|
|
30
|
+
@import "@invoiceonline/ui-react/tokens.css";
|
|
31
|
+
@import "@invoiceonline/ui-react/styles.css";
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
An app with Tailwind 4 loads `theme.css` and `shared.css` instead and never `styles.css` as
|
|
35
|
+
well. Both recipes, the layer rules and what `theme.css` does to your Tailwind theme:
|
|
36
|
+
`docs/Consuming.mdx` → Styles.
|
|
37
|
+
|
|
38
|
+
## Use
|
|
39
|
+
|
|
40
|
+
```tsx
|
|
41
|
+
import { Button, FodsProvider } from '@invoiceonline/ui-react';
|
|
42
|
+
|
|
43
|
+
export function App() {
|
|
44
|
+
return (
|
|
45
|
+
<FodsProvider>
|
|
46
|
+
<Button>Uložit</Button>
|
|
47
|
+
</FodsProvider>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
`FodsProvider` goes once per React root, in every app. It mounts `TooltipProvider` (every
|
|
53
|
+
component that renders a Tooltip throws without it: Tooltip outside its `toggletip` mode, Chip with `info`, Switch with
|
|
54
|
+
`infoIcon`, ColumnHeader, StatusSummaryBar and others; Table brings its own) and
|
|
55
|
+
`<MotionConfig reducedMotion="user">` (without it the open / closed carets of SplitButton,
|
|
56
|
+
DropdownButton, SelectField, FAQ and others turn even under reduced motion); the app needs
|
|
57
|
+
no `motion` dependency for it. Each component also has its own entry
|
|
58
|
+
(`@invoiceonline/ui-react/button`).
|
|
59
|
+
|
|
60
|
+
`variant="primary"` of Button and IconButton is the blue in-app default. The orange fill is
|
|
61
|
+
`variant="brand"`: a hand-made button on `--primary-solid` maps to `brand`, not `primary`.
|
|
62
|
+
|
|
63
|
+
## Docs
|
|
64
|
+
|
|
65
|
+
- [`docs/Introduction.mdx`](docs/Introduction.mdx): how to read the Storybook of the package
|
|
66
|
+
(sidebar, story conventions, the Metadata block of a docs page).
|
|
67
|
+
- [`docs/Consuming.mdx`](docs/Consuming.mdx): the consumer guide. Cascade layers and global
|
|
68
|
+
resets, what the components inherit, providers (`FodsProvider` and what it contains),
|
|
69
|
+
portals, assets and the illustrations the app passes in, Next.js server components, texts and locale, known gaps. Read it
|
|
70
|
+
before wiring the package into an app.
|
|
71
|
+
- [`docs/Contributing.mdx`](docs/Contributing.mdx): what one component is made of, the
|
|
72
|
+
Definition of Done and the gates, for a person who changes the package.
|
|
73
|
+
- `src/components/<folder>/<Name>.mdx`: the docs page of each component, with its stories
|
|
74
|
+
next to it.
|
|
75
|
+
- [`llms.txt`](llms.txt) and [`AGENTS.md`](AGENTS.md): the component index and the rules
|
|
76
|
+
for an AI agent working in an app that uses the package;
|
|
77
|
+
[`docs/ForAgents.mdx`](docs/ForAgents.mdx): where an agent finds the docs, the MCP addon
|
|
78
|
+
of the Storybook, how a docs ID is derived.
|
|
79
|
+
- `CHANGELOG.md`: the release notes, written by Changesets with each release.
|