@invoiceonline/ui-react 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +100 -0
- package/CHANGELOG.md +149 -0
- package/LICENSE +9 -0
- package/README.md +77 -1
- package/dist/assets/label-brush-1.svg +6 -0
- package/dist/assets/pattern-dark.svg +113 -0
- package/dist/components/action-row/ActionRow.d.ts +178 -0
- package/dist/components/action-row/ActionRow.js +340 -0
- package/dist/components/action-row/index.d.ts +2 -0
- package/dist/components/action-row/index.js +1 -0
- package/dist/components/alert/Alert.d.ts +314 -0
- package/dist/components/alert/Alert.js +446 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/anchored-panel/AnchoredPanel.d.ts +41 -0
- package/dist/components/anchored-panel/AnchoredPanel.js +72 -0
- package/dist/components/anchored-panel/index.d.ts +3 -0
- package/dist/components/anchored-panel/index.js +3 -0
- package/dist/components/badge/Badge.d.ts +146 -0
- package/dist/components/badge/Badge.js +258 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/banner/Banner.d.ts +209 -0
- package/dist/components/banner/Banner.js +339 -0
- package/dist/components/banner/index.d.ts +2 -0
- package/dist/components/banner/index.js +1 -0
- package/dist/components/button/Button.d.ts +54 -0
- package/dist/components/button/Button.js +312 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button-group/ButtonGroup.d.ts +187 -0
- package/dist/components/button-group/ButtonGroup.js +217 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.js +1 -0
- package/dist/components/card-select/CardSelect.d.ts +274 -0
- package/dist/components/card-select/CardSelect.js +561 -0
- package/dist/components/card-select/CardSelectGroup.d.ts +92 -0
- package/dist/components/card-select/CardSelectGroup.js +72 -0
- package/dist/components/card-select/index.d.ts +3 -0
- package/dist/components/card-select/index.js +3 -0
- package/dist/components/checkbox/Checkbox.d.ts +104 -0
- package/dist/components/checkbox/Checkbox.js +194 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/chip/Chip.d.ts +250 -0
- package/dist/components/chip/Chip.js +441 -0
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/chip/index.js +1 -0
- package/dist/components/column-header/ColumnHeader.d.ts +144 -0
- package/dist/components/column-header/ColumnHeader.js +209 -0
- package/dist/components/column-header/index.d.ts +2 -0
- package/dist/components/column-header/index.js +1 -0
- package/dist/components/combobox-field/Combobox.d.ts +104 -0
- package/dist/components/combobox-field/Combobox.js +355 -0
- package/dist/components/combobox-field/ComboboxField.d.ts +76 -0
- package/dist/components/combobox-field/ComboboxField.js +98 -0
- package/dist/components/combobox-field/index.d.ts +3 -0
- package/dist/components/combobox-field/index.js +3 -0
- package/dist/components/date-picker/DatePicker.d.ts +53 -0
- package/dist/components/date-picker/DatePicker.js +329 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/divider/Divider.d.ts +81 -0
- package/dist/components/divider/Divider.js +93 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.js +1 -0
- package/dist/components/drawer/Drawer.d.ts +128 -0
- package/dist/components/drawer/Drawer.js +367 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/dropdown-button/DropdownButton.d.ts +72 -0
- package/dist/components/dropdown-button/DropdownButton.js +122 -0
- package/dist/components/dropdown-button/index.d.ts +2 -0
- package/dist/components/dropdown-button/index.js +1 -0
- package/dist/components/faq/FAQ.d.ts +135 -0
- package/dist/components/faq/FAQ.js +258 -0
- package/dist/components/faq/index.d.ts +2 -0
- package/dist/components/faq/index.js +1 -0
- package/dist/components/field/Field.d.ts +119 -0
- package/dist/components/field/Field.js +332 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.js +1 -0
- package/dist/components/field-pair/FieldPair.d.ts +210 -0
- package/dist/components/field-pair/FieldPair.js +335 -0
- package/dist/components/field-pair/index.d.ts +2 -0
- package/dist/components/field-pair/index.js +1 -0
- package/dist/components/file-upload/FileUpload.d.ts +137 -0
- package/dist/components/file-upload/FileUpload.js +434 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/file-upload/index.js +1 -0
- package/dist/components/filter-chip/FilterChip.d.ts +373 -0
- package/dist/components/filter-chip/FilterChip.js +517 -0
- package/dist/components/filter-chip/index.d.ts +2 -0
- package/dist/components/filter-chip/index.js +1 -0
- package/dist/components/filter-facet/FilterFacet.d.ts +116 -0
- package/dist/components/filter-facet/FilterFacet.js +632 -0
- package/dist/components/filter-facet/index.d.ts +2 -0
- package/dist/components/filter-facet/index.js +1 -0
- package/dist/components/firm-avatar/FirmAvatar.d.ts +75 -0
- package/dist/components/firm-avatar/FirmAvatar.js +119 -0
- package/dist/components/firm-avatar/index.d.ts +2 -0
- package/dist/components/firm-avatar/index.js +1 -0
- package/dist/components/form-actions/FormActions.d.ts +123 -0
- package/dist/components/form-actions/FormActions.js +195 -0
- package/dist/components/form-actions/index.d.ts +2 -0
- package/dist/components/form-actions/index.js +1 -0
- package/dist/components/form-block/FormBlock.d.ts +252 -0
- package/dist/components/form-block/FormBlock.js +420 -0
- package/dist/components/form-block/index.d.ts +3 -0
- package/dist/components/form-block/index.js +3 -0
- package/dist/components/form-section/FormSection.d.ts +130 -0
- package/dist/components/form-section/FormSection.js +206 -0
- package/dist/components/form-section/index.d.ts +2 -0
- package/dist/components/form-section/index.js +1 -0
- package/dist/components/heading/Heading.d.ts +69 -0
- package/dist/components/heading/Heading.js +79 -0
- package/dist/components/heading/index.d.ts +2 -0
- package/dist/components/heading/index.js +1 -0
- package/dist/components/heading-group/HeadingGroup.d.ts +258 -0
- package/dist/components/heading-group/HeadingGroup.js +255 -0
- package/dist/components/heading-group/index.d.ts +2 -0
- package/dist/components/heading-group/index.js +1 -0
- package/dist/components/hero/Hero.d.ts +268 -0
- package/dist/components/hero/Hero.js +316 -0
- package/dist/components/hero/index.d.ts +2 -0
- package/dist/components/hero/index.js +1 -0
- package/dist/components/icon/Icon.d.ts +27 -0
- package/dist/components/icon/Icon.js +30 -0
- package/dist/components/icon/index.d.ts +3 -0
- package/dist/components/icon/index.js +3 -0
- package/dist/components/icon-button/IconButton.d.ts +75 -0
- package/dist/components/icon-button/IconButton.js +151 -0
- package/dist/components/icon-button/index.d.ts +2 -0
- package/dist/components/icon-button/index.js +1 -0
- package/dist/components/item-row/ItemRow.d.ts +253 -0
- package/dist/components/item-row/ItemRow.js +496 -0
- package/dist/components/item-row/index.d.ts +2 -0
- package/dist/components/item-row/index.js +1 -0
- package/dist/components/list-row/ListRow.d.ts +165 -0
- package/dist/components/list-row/ListRow.js +233 -0
- package/dist/components/list-row/index.d.ts +2 -0
- package/dist/components/list-row/index.js +1 -0
- package/dist/components/menu/Menu.d.ts +64 -0
- package/dist/components/menu/Menu.js +186 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/modal/Modal.d.ts +272 -0
- package/dist/components/modal/Modal.js +788 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.js +1 -0
- package/dist/components/nav-link/NavLink.d.ts +123 -0
- package/dist/components/nav-link/NavLink.js +157 -0
- package/dist/components/nav-link/index.d.ts +2 -0
- package/dist/components/nav-link/index.js +1 -0
- package/dist/components/number-field/NumberField.d.ts +62 -0
- package/dist/components/number-field/NumberField.js +210 -0
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/index.js +1 -0
- package/dist/components/pagination/Pagination.d.ts +133 -0
- package/dist/components/pagination/Pagination.js +217 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/index.js +3 -0
- package/dist/components/popover-surface/index.d.ts +2 -0
- package/dist/components/popover-surface/index.js +1 -0
- package/dist/components/progress-bar/ProgressBar.d.ts +260 -0
- package/dist/components/progress-bar/ProgressBar.js +470 -0
- package/dist/components/progress-bar/index.d.ts +2 -0
- package/dist/components/progress-bar/index.js +1 -0
- package/dist/components/promo-sticker/PromoSticker.d.ts +204 -0
- package/dist/components/promo-sticker/PromoSticker.js +177 -0
- package/dist/components/promo-sticker/index.d.ts +2 -0
- package/dist/components/promo-sticker/index.js +1 -0
- package/dist/components/promo-surface/PromoSurface.d.ts +94 -0
- package/dist/components/promo-surface/PromoSurface.js +119 -0
- package/dist/components/promo-surface/index.d.ts +2 -0
- package/dist/components/promo-surface/index.js +1 -0
- package/dist/components/radio/Radio.d.ts +92 -0
- package/dist/components/radio/Radio.js +171 -0
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/index.js +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +61 -0
- package/dist/components/radio-group/RadioGroup.js +51 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.js +1 -0
- package/dist/components/select/Select.d.ts +65 -0
- package/dist/components/select/Select.js +176 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/select-field/SelectField.d.ts +16 -0
- package/dist/components/select-field/SelectField.js +55 -0
- package/dist/components/select-field/index.d.ts +2 -0
- package/dist/components/select-field/index.js +1 -0
- package/dist/components/skeleton/Skeleton.d.ts +64 -0
- package/dist/components/skeleton/Skeleton.js +65 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.js +1 -0
- package/dist/components/split-button/SplitButton.d.ts +80 -0
- package/dist/components/split-button/SplitButton.js +182 -0
- package/dist/components/split-button/index.d.ts +2 -0
- package/dist/components/split-button/index.js +1 -0
- package/dist/components/status-summary-bar/StatusSummaryBar.d.ts +118 -0
- package/dist/components/status-summary-bar/StatusSummaryBar.js +278 -0
- package/dist/components/status-summary-bar/index.d.ts +2 -0
- package/dist/components/status-summary-bar/index.js +1 -0
- package/dist/components/subject-lookup-field/SubjectLookupField.d.ts +157 -0
- package/dist/components/subject-lookup-field/SubjectLookupField.js +663 -0
- package/dist/components/subject-lookup-field/index.d.ts +2 -0
- package/dist/components/subject-lookup-field/index.js +1 -0
- package/dist/components/switch/Switch.d.ts +152 -0
- package/dist/components/switch/Switch.js +307 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/table/Table.d.ts +5 -0
- package/dist/components/table/Table.js +601 -0
- package/dist/components/table/index.d.ts +6 -0
- package/dist/components/table/index.js +6 -0
- package/dist/components/text-field/TextField.d.ts +160 -0
- package/dist/components/text-field/TextField.js +244 -0
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/index.js +1 -0
- package/dist/components/text-link/TextLink.d.ts +260 -0
- package/dist/components/text-link/TextLink.js +303 -0
- package/dist/components/text-link/index.d.ts +2 -0
- package/dist/components/text-link/index.js +1 -0
- package/dist/components/textarea/Textarea.d.ts +93 -0
- package/dist/components/textarea/Textarea.js +256 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +129 -0
- package/dist/components/tooltip/Tooltip.js +457 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/unit-field/UnitField.d.ts +46 -0
- package/dist/components/unit-field/UnitField.js +133 -0
- package/dist/components/unit-field/index.d.ts +2 -0
- package/dist/components/unit-field/index.js +1 -0
- package/dist/icons/icon-registry.generated.js +500 -0
- package/dist/icons/icon-types.generated.d.ts +2 -0
- package/dist/icons/icon-types.generated.js +126 -0
- package/dist/index.d.ts +130 -0
- package/dist/index.js +74 -0
- package/dist/internal/BottomSheet.js +496 -0
- package/dist/internal/FodsProvider.d.ts +25 -0
- package/dist/internal/FodsProvider.js +32 -0
- package/dist/internal/MotionCaret.js +35 -0
- package/dist/internal/NumberFormatInput.d.ts +21 -0
- package/dist/internal/NumberFormatInput.js +126 -0
- package/dist/internal/SummaryDonut.d.ts +3 -0
- package/dist/internal/SummaryDonut.js +300 -0
- package/dist/internal/buttonSegment.d.ts +44 -0
- package/dist/internal/buttonSegment.js +126 -0
- package/dist/internal/collapseRoom.js +128 -0
- package/dist/internal/comboboxKeys.js +44 -0
- package/dist/internal/contentPresence.js +46 -0
- package/dist/internal/dayCell.js +95 -0
- package/dist/internal/dialogPortal.d.ts +2 -0
- package/dist/internal/dialogPortal.js +21 -0
- package/dist/internal/donutSweeps.js +65 -0
- package/dist/internal/enterOnViewGeometry.js +46 -0
- package/dist/internal/faqItem.js +80 -0
- package/dist/internal/floatingLabelMotion.js +68 -0
- package/dist/internal/formBlockContext.d.ts +22 -0
- package/dist/internal/formBlockContext.js +20 -0
- package/dist/internal/heightRoom.js +87 -0
- package/dist/internal/numberSeparators.js +62 -0
- package/dist/internal/overlayMotion.js +48 -0
- package/dist/internal/paginationItem.d.ts +8 -0
- package/dist/internal/paginationItem.js +22 -0
- package/dist/internal/popoverSurface.d.ts +8 -0
- package/dist/internal/popoverSurface.js +23 -0
- package/dist/internal/portalContainer.d.ts +1 -0
- package/dist/internal/portalContainer.js +6 -0
- package/dist/internal/progressBarItem.d.ts +207 -0
- package/dist/internal/progressBarItem.js +264 -0
- package/dist/internal/selectionControlText.js +12 -0
- package/dist/internal/statusSummaryParts.js +371 -0
- package/dist/internal/summaryMotion.js +75 -0
- package/dist/internal/table/ChildConnector.js +62 -0
- package/dist/internal/table/ChildRowPrefix.d.ts +9 -0
- package/dist/internal/table/ChildRowPrefix.js +27 -0
- package/dist/internal/table/ColumnSettings.js +135 -0
- package/dist/internal/table/ScrollRegion.js +114 -0
- package/dist/internal/table/TableEmpty.js +93 -0
- package/dist/internal/table/TableLayout.d.ts +17 -0
- package/dist/internal/table/TableLayout.js +29 -0
- package/dist/internal/table/TableLoadStatus.js +56 -0
- package/dist/internal/table/TableMobile.js +488 -0
- package/dist/internal/table/TruncatedCell.js +33 -0
- package/dist/internal/table/emptyValue.js +10 -0
- package/dist/internal/table/features.d.ts +41 -0
- package/dist/internal/table/features.js +31 -0
- package/dist/internal/table/recipes.js +227 -0
- package/dist/internal/table/rowClick.js +9 -0
- package/dist/internal/table/types.d.ts +325 -0
- package/dist/internal/table/types.js +13 -0
- package/dist/internal/tailwind-variants.d.ts +3 -0
- package/dist/internal/tailwind-variants.js +37 -0
- package/dist/internal/tooltipContext.js +5 -0
- package/dist/internal/tw-merge-config.generated.js +314 -0
- package/dist/internal/useAnchoredPanel.d.ts +87 -0
- package/dist/internal/useAnchoredPanel.js +108 -0
- package/dist/internal/useCountUp.js +53 -0
- package/dist/internal/useDateFieldTrigger.d.ts +60 -0
- package/dist/internal/useDateFieldTrigger.js +235 -0
- package/dist/internal/useEChart.js +59 -0
- package/dist/internal/useEnterOnView.js +42 -0
- package/dist/internal/useFloatingBar.js +100 -0
- package/dist/internal/useFormReset.js +44 -0
- package/dist/internal/useIsMobile.js +44 -0
- package/dist/internal/useOneRowOverflow.js +88 -0
- package/dist/internal/usePrefersReducedMotion.js +25 -0
- package/dist/internal/useReturnFocus.js +26 -0
- package/dist/internal/utils.d.ts +7 -0
- package/dist/internal/utils.js +58 -0
- package/dist/node_modules/@tanstack/store/dist/store.d.ts +29 -0
- package/dist/node_modules/@tanstack/store/dist/types.d.ts +38 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.types.d.ts +53 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.types.d.ts +90 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/coreFeatures.d.ts +17 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.types.d.ts +114 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.types.d.ts +51 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.types.d.ts +29 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.types.d.ts +129 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.types.d.ts +203 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/cell-selection/cellSelectionFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/cell-selection/cellSelectionFeature.types.d.ts +294 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/cell-spanning/cellSpanningFeature.d.ts +11 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/cell-spanning/cellSpanningFeature.types.d.ts +148 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-faceting/columnFacetingFeature.d.ts +12 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-faceting/columnFacetingFeature.types.d.ts +63 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-filtering/columnFilteringFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-filtering/columnFilteringFeature.types.d.ts +209 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-filtering/filterFns.d.ts +35 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-grouping/columnGroupingFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-grouping/columnGroupingFeature.types.d.ts +128 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-ordering/columnOrderingFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-ordering/columnOrderingFeature.types.d.ts +82 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-pinning/columnPinningFeature.d.ts +11 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-pinning/columnPinningFeature.types.d.ts +195 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-resizing/columnResizingFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-resizing/columnResizingFeature.types.d.ts +73 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-sizing/columnSizingFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-sizing/columnSizingFeature.types.d.ts +134 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.types.d.ts +92 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/global-filtering/globalFilteringFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/global-filtering/globalFilteringFeature.types.d.ts +67 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-aggregation/aggregationFns.d.ts +23 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-aggregation/rowAggregationFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-aggregation/rowAggregationFeature.types.d.ts +183 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-aggregation/rowAggregationFeature.utils.d.ts +18 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-expanding/rowExpandingFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-expanding/rowExpandingFeature.types.d.ts +125 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.types.d.ts +135 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-pinning/rowPinningFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-pinning/rowPinningFeature.types.d.ts +76 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.types.d.ts +187 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.types.d.ts +236 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/row-sorting/sortFns.d.ts +23 -0
- package/dist/node_modules/@tanstack/table-core/dist/features/stockFeatures.d.ts +37 -0
- package/dist/node_modules/@tanstack/table-core/dist/helpers/columnHelper.d.ts +47 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/Cell.d.ts +16 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/Column.d.ts +30 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/ColumnDef.d.ts +123 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/Header.d.ts +12 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/HeaderGroup.d.ts +6 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/Row.d.ts +24 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/RowModel.d.ts +19 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/RowModelFns.d.ts +11 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/Table.d.ts +53 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/TableFeatures.d.ts +416 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/TableOptions.d.ts +78 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/TableState.d.ts +46 -0
- package/dist/node_modules/@tanstack/table-core/dist/types/type-utils.d.ts +25 -0
- package/dist/shared.css +179 -0
- package/dist/styles.css +5467 -0
- package/dist/theme.css +314 -0
- package/dist/theme.map.json +278 -0
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/index.js +1 -0
- package/dist/tokens/tokens.generated.d.ts +2040 -0
- package/dist/tokens/tokens.generated.js +2053 -0
- package/dist/tokens.css +484 -0
- package/dist/tokens.flat.json +429 -0
- package/docs/Consuming.mdx +396 -0
- package/docs/Contributing.mdx +78 -0
- package/docs/ForAgents.mdx +53 -0
- package/docs/Introduction.mdx +54 -0
- package/llms.txt +550 -0
- package/package.json +347 -3
- package/src/components/action-row/ActionRow.mdx +686 -0
- package/src/components/action-row/ActionRow.stories.tsx +669 -0
- package/src/components/action-row/ActionRow.tsx +632 -0
- package/src/components/action-row/index.ts +9 -0
- package/src/components/alert/Alert.mdx +377 -0
- package/src/components/alert/Alert.stories.tsx +674 -0
- package/src/components/alert/Alert.tsx +579 -0
- package/src/components/alert/index.ts +13 -0
- package/src/components/anchored-panel/AnchoredPanel.mdx +381 -0
- package/src/components/anchored-panel/AnchoredPanel.stories.tsx +593 -0
- package/src/components/anchored-panel/AnchoredPanel.tsx +176 -0
- package/src/components/anchored-panel/index.ts +15 -0
- package/src/components/badge/Badge.mdx +487 -0
- package/src/components/badge/Badge.stories.tsx +375 -0
- package/src/components/badge/Badge.tsx +360 -0
- package/src/components/badge/index.ts +10 -0
- package/src/components/banner/Banner.mdx +704 -0
- package/src/components/banner/Banner.stories.tsx +448 -0
- package/src/components/banner/Banner.tsx +602 -0
- package/src/components/banner/index.ts +14 -0
- package/src/components/button/Button.mdx +286 -0
- package/src/components/button/Button.stories.tsx +381 -0
- package/src/components/button/Button.tsx +384 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/button-group/ButtonGroup.mdx +512 -0
- package/src/components/button-group/ButtonGroup.stories.tsx +714 -0
- package/src/components/button-group/ButtonGroup.tsx +491 -0
- package/src/components/button-group/index.ts +10 -0
- package/src/components/card-select/CardSelect.mdx +662 -0
- package/src/components/card-select/CardSelect.stories.tsx +784 -0
- package/src/components/card-select/CardSelect.tsx +783 -0
- package/src/components/card-select/CardSelectGroup.tsx +169 -0
- package/src/components/card-select/index.ts +18 -0
- package/src/components/checkbox/Checkbox.mdx +269 -0
- package/src/components/checkbox/Checkbox.stories.tsx +306 -0
- package/src/components/checkbox/Checkbox.tsx +343 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/chip/Chip.mdx +683 -0
- package/src/components/chip/Chip.stories.tsx +734 -0
- package/src/components/chip/Chip.tsx +732 -0
- package/src/components/chip/index.ts +9 -0
- package/src/components/column-header/ColumnHeader.mdx +301 -0
- package/src/components/column-header/ColumnHeader.stories.tsx +319 -0
- package/src/components/column-header/ColumnHeader.tsx +287 -0
- package/src/components/column-header/index.ts +7 -0
- package/src/components/combobox-field/Combobox.tsx +693 -0
- package/src/components/combobox-field/ComboboxField.mdx +525 -0
- package/src/components/combobox-field/ComboboxField.stories.tsx +502 -0
- package/src/components/combobox-field/ComboboxField.tsx +259 -0
- package/src/components/combobox-field/index.ts +12 -0
- package/src/components/date-picker/DatePicker.mdx +440 -0
- package/src/components/date-picker/DatePicker.stories.tsx +458 -0
- package/src/components/date-picker/DatePicker.tsx +688 -0
- package/src/components/date-picker/index.ts +9 -0
- package/src/components/divider/Divider.mdx +256 -0
- package/src/components/divider/Divider.stories.tsx +177 -0
- package/src/components/divider/Divider.tsx +193 -0
- package/src/components/divider/index.ts +1 -0
- package/src/components/drawer/Drawer.mdx +518 -0
- package/src/components/drawer/Drawer.stories.tsx +392 -0
- package/src/components/drawer/Drawer.tsx +683 -0
- package/src/components/drawer/index.ts +1 -0
- package/src/components/dropdown-button/DropdownButton.mdx +285 -0
- package/src/components/dropdown-button/DropdownButton.stories.tsx +398 -0
- package/src/components/dropdown-button/DropdownButton.tsx +198 -0
- package/src/components/dropdown-button/index.ts +7 -0
- package/src/components/faq/FAQ.mdx +364 -0
- package/src/components/faq/FAQ.stories.tsx +343 -0
- package/src/components/faq/FAQ.tsx +337 -0
- package/src/components/faq/index.ts +1 -0
- package/src/components/field/Field.mdx +129 -0
- package/src/components/field/Field.stories.tsx +461 -0
- package/src/components/field/Field.tsx +787 -0
- package/src/components/field/index.ts +20 -0
- package/src/components/field-pair/FieldPair.mdx +312 -0
- package/src/components/field-pair/FieldPair.stories.tsx +539 -0
- package/src/components/field-pair/FieldPair.tsx +845 -0
- package/src/components/field-pair/index.ts +9 -0
- package/src/components/file-upload/FileUpload.mdx +345 -0
- package/src/components/file-upload/FileUpload.stories.tsx +698 -0
- package/src/components/file-upload/FileUpload.tsx +802 -0
- package/src/components/file-upload/index.ts +6 -0
- package/src/components/filter-chip/FilterChip.mdx +778 -0
- package/src/components/filter-chip/FilterChip.stories.tsx +827 -0
- package/src/components/filter-chip/FilterChip.tsx +881 -0
- package/src/components/filter-chip/index.ts +11 -0
- package/src/components/filter-facet/FilterFacet.mdx +536 -0
- package/src/components/filter-facet/FilterFacet.stories.tsx +506 -0
- package/src/components/filter-facet/FilterFacet.tsx +1160 -0
- package/src/components/filter-facet/index.ts +7 -0
- package/src/components/firm-avatar/FirmAvatar.mdx +280 -0
- package/src/components/firm-avatar/FirmAvatar.stories.tsx +147 -0
- package/src/components/firm-avatar/FirmAvatar.tsx +172 -0
- package/src/components/firm-avatar/index.ts +7 -0
- package/src/components/form-actions/FormActions.mdx +518 -0
- package/src/components/form-actions/FormActions.stories.tsx +621 -0
- package/src/components/form-actions/FormActions.tsx +273 -0
- package/src/components/form-actions/index.ts +6 -0
- package/src/components/form-block/FormBlock.mdx +728 -0
- package/src/components/form-block/FormBlock.stories.tsx +813 -0
- package/src/components/form-block/FormBlock.tsx +679 -0
- package/src/components/form-block/index.ts +13 -0
- package/src/components/form-section/FormSection.mdx +436 -0
- package/src/components/form-section/FormSection.stories.tsx +407 -0
- package/src/components/form-section/FormSection.tsx +290 -0
- package/src/components/form-section/index.ts +17 -0
- package/src/components/heading/Heading.mdx +206 -0
- package/src/components/heading/Heading.stories.tsx +169 -0
- package/src/components/heading/Heading.tsx +124 -0
- package/src/components/heading/index.ts +8 -0
- package/src/components/heading-group/HeadingGroup.mdx +521 -0
- package/src/components/heading-group/HeadingGroup.stories.tsx +353 -0
- package/src/components/heading-group/HeadingGroup.tsx +396 -0
- package/src/components/heading-group/index.ts +7 -0
- package/src/components/hero/Hero.mdx +742 -0
- package/src/components/hero/Hero.stories.tsx +527 -0
- package/src/components/hero/Hero.tsx +807 -0
- package/src/components/hero/index.ts +1 -0
- package/src/components/icon/Icon.mdx +329 -0
- package/src/components/icon/Icon.stories.tsx +398 -0
- package/src/components/icon/Icon.tsx +97 -0
- package/src/components/icon/index.ts +2 -0
- package/src/components/icon-button/IconButton.mdx +206 -0
- package/src/components/icon-button/IconButton.stories.tsx +341 -0
- package/src/components/icon-button/IconButton.tsx +273 -0
- package/src/components/icon-button/index.ts +1 -0
- package/src/components/item-row/ItemRow.mdx +533 -0
- package/src/components/item-row/ItemRow.stories.tsx +434 -0
- package/src/components/item-row/ItemRow.tsx +676 -0
- package/src/components/item-row/index.ts +9 -0
- package/src/components/list-row/ListRow.mdx +404 -0
- package/src/components/list-row/ListRow.stories.tsx +404 -0
- package/src/components/list-row/ListRow.tsx +424 -0
- package/src/components/list-row/index.ts +1 -0
- package/src/components/menu/Menu.mdx +268 -0
- package/src/components/menu/Menu.stories.tsx +455 -0
- package/src/components/menu/Menu.tsx +452 -0
- package/src/components/menu/index.ts +1 -0
- package/src/components/modal/Modal.mdx +854 -0
- package/src/components/modal/Modal.stories.tsx +881 -0
- package/src/components/modal/Modal.tsx +1434 -0
- package/src/components/modal/index.ts +1 -0
- package/src/components/nav-link/NavLink.mdx +196 -0
- package/src/components/nav-link/NavLink.stories.tsx +243 -0
- package/src/components/nav-link/NavLink.tsx +222 -0
- package/src/components/nav-link/index.ts +1 -0
- package/src/components/number-field/NumberField.mdx +223 -0
- package/src/components/number-field/NumberField.stories.tsx +291 -0
- package/src/components/number-field/NumberField.tsx +388 -0
- package/src/components/number-field/index.ts +6 -0
- package/src/components/pagination/Pagination.mdx +305 -0
- package/src/components/pagination/Pagination.stories.tsx +333 -0
- package/src/components/pagination/Pagination.tsx +343 -0
- package/src/components/pagination/index.ts +8 -0
- package/src/components/popover-surface/PopoverSurface.mdx +158 -0
- package/src/components/popover-surface/PopoverSurface.stories.tsx +421 -0
- package/src/components/popover-surface/index.ts +1 -0
- package/src/components/progress-bar/ProgressBar.mdx +802 -0
- package/src/components/progress-bar/ProgressBar.stories.tsx +533 -0
- package/src/components/progress-bar/ProgressBar.tsx +654 -0
- package/src/components/progress-bar/index.ts +9 -0
- package/src/components/promo-sticker/PromoSticker.mdx +436 -0
- package/src/components/promo-sticker/PromoSticker.stories.tsx +363 -0
- package/src/components/promo-sticker/PromoSticker.tsx +313 -0
- package/src/components/promo-sticker/index.ts +7 -0
- package/src/components/promo-surface/PromoSurface.mdx +399 -0
- package/src/components/promo-surface/PromoSurface.stories.tsx +270 -0
- package/src/components/promo-surface/PromoSurface.tsx +305 -0
- package/src/components/promo-surface/index.ts +7 -0
- package/src/components/radio/Radio.mdx +243 -0
- package/src/components/radio/Radio.stories.tsx +307 -0
- package/src/components/radio/Radio.tsx +288 -0
- package/src/components/radio/index.ts +1 -0
- package/src/components/radio-group/RadioGroup.mdx +119 -0
- package/src/components/radio-group/RadioGroup.stories.tsx +225 -0
- package/src/components/radio-group/RadioGroup.tsx +139 -0
- package/src/components/radio-group/index.ts +1 -0
- package/src/components/select/Select.mdx +241 -0
- package/src/components/select/Select.stories.tsx +404 -0
- package/src/components/select/Select.tsx +381 -0
- package/src/components/select/index.ts +1 -0
- package/src/components/select-field/SelectField.mdx +324 -0
- package/src/components/select-field/SelectField.stories.tsx +460 -0
- package/src/components/select-field/SelectField.tsx +138 -0
- package/src/components/select-field/index.ts +1 -0
- package/src/components/skeleton/Skeleton.mdx +194 -0
- package/src/components/skeleton/Skeleton.stories.tsx +260 -0
- package/src/components/skeleton/Skeleton.tsx +107 -0
- package/src/components/skeleton/index.ts +1 -0
- package/src/components/split-button/SplitButton.mdx +445 -0
- package/src/components/split-button/SplitButton.stories.tsx +465 -0
- package/src/components/split-button/SplitButton.tsx +361 -0
- package/src/components/split-button/index.ts +7 -0
- package/src/components/status-summary-bar/StatusSummaryBar.mdx +338 -0
- package/src/components/status-summary-bar/StatusSummaryBar.stories.tsx +408 -0
- package/src/components/status-summary-bar/StatusSummaryBar.tsx +428 -0
- package/src/components/status-summary-bar/index.ts +8 -0
- package/src/components/subject-lookup-field/SubjectLookupField.mdx +378 -0
- package/src/components/subject-lookup-field/SubjectLookupField.stories.tsx +393 -0
- package/src/components/subject-lookup-field/SubjectLookupField.tsx +1079 -0
- package/src/components/subject-lookup-field/index.ts +11 -0
- package/src/components/switch/Switch.mdx +376 -0
- package/src/components/switch/Switch.stories.tsx +296 -0
- package/src/components/switch/Switch.tsx +483 -0
- package/src/components/switch/index.ts +1 -0
- package/src/components/table/Table.mdx +575 -0
- package/src/components/table/Table.stories.tsx +1049 -0
- package/src/components/table/Table.tsx +745 -0
- package/src/components/table/TableConsumers.stories.tsx +195 -0
- package/src/components/table/_tableFixtures.ts +1189 -0
- package/src/components/table/index.ts +22 -0
- package/src/components/text-field/TextField.mdx +699 -0
- package/src/components/text-field/TextField.stories.tsx +674 -0
- package/src/components/text-field/TextField.tsx +645 -0
- package/src/components/text-field/index.ts +11 -0
- package/src/components/text-link/TextLink.mdx +353 -0
- package/src/components/text-link/TextLink.stories.tsx +458 -0
- package/src/components/text-link/TextLink.tsx +504 -0
- package/src/components/text-link/index.ts +10 -0
- package/src/components/textarea/Textarea.mdx +244 -0
- package/src/components/textarea/Textarea.stories.tsx +371 -0
- package/src/components/textarea/Textarea.tsx +489 -0
- package/src/components/textarea/index.ts +9 -0
- package/src/components/tooltip/Tooltip.mdx +462 -0
- package/src/components/tooltip/Tooltip.stories.tsx +500 -0
- package/src/components/tooltip/Tooltip.tsx +756 -0
- package/src/components/tooltip/index.ts +13 -0
- package/src/components/unit-field/UnitField.mdx +215 -0
- package/src/components/unit-field/UnitField.stories.tsx +291 -0
- package/src/components/unit-field/UnitField.tsx +255 -0
- package/src/components/unit-field/index.ts +7 -0
- package/src/icons/icon-registry.generated.ts +510 -0
- package/src/icons/icon-types.generated.ts +256 -0
- package/src/index.ts +70 -0
- package/src/internal/BottomSheet.tsx +714 -0
- package/src/internal/FodsProvider.tsx +36 -0
- package/src/internal/MotionCaret.tsx +53 -0
- package/src/internal/NumberFormatInput.tsx +276 -0
- package/src/internal/SummaryDonut.tsx +359 -0
- package/src/internal/buttonSegment.ts +241 -0
- package/src/internal/collapseRoom.ts +130 -0
- package/src/internal/comboboxKeys.ts +90 -0
- package/src/internal/contentPresence.ts +46 -0
- package/src/internal/dayCell.ts +274 -0
- package/src/internal/dialogPortal.ts +50 -0
- package/src/internal/donutSweeps.ts +77 -0
- package/src/internal/enterOnViewGeometry.ts +53 -0
- package/src/internal/faqItem.ts +104 -0
- package/src/internal/floatingLabelMotion.tsx +109 -0
- package/src/internal/formBlockContext.ts +27 -0
- package/src/internal/heightRoom.ts +135 -0
- package/src/internal/numberSeparators.ts +93 -0
- package/src/internal/overlayMotion.tsx +32 -0
- package/src/internal/paginationItem.ts +106 -0
- package/src/internal/popoverSurface.ts +78 -0
- package/src/internal/portalContainer.ts +11 -0
- package/src/internal/progressBarItem.ts +356 -0
- package/src/internal/selectionControlText.ts +42 -0
- package/src/internal/statusSummaryParts.tsx +475 -0
- package/src/internal/summaryMotion.ts +111 -0
- package/src/internal/table/ChildConnector.tsx +57 -0
- package/src/internal/table/ChildRowPrefix.tsx +21 -0
- package/src/internal/table/ColumnSettings.tsx +194 -0
- package/src/internal/table/ScrollRegion.tsx +176 -0
- package/src/internal/table/TableEmpty.tsx +99 -0
- package/src/internal/table/TableLayout.tsx +29 -0
- package/src/internal/table/TableLoadStatus.tsx +60 -0
- package/src/internal/table/TableMobile.tsx +582 -0
- package/src/internal/table/TruncatedCell.tsx +35 -0
- package/src/internal/table/emptyValue.ts +11 -0
- package/src/internal/table/features.ts +44 -0
- package/src/internal/table/recipes.ts +263 -0
- package/src/internal/table/rowClick.ts +8 -0
- package/src/internal/table/types.ts +342 -0
- package/src/internal/tailwind-variants.ts +65 -0
- package/src/internal/tooltipContext.ts +15 -0
- package/src/internal/tw-merge-config.generated.ts +275 -0
- package/src/internal/useAnchoredPanel.ts +340 -0
- package/src/internal/useCountUp.ts +65 -0
- package/src/internal/useDateFieldTrigger.tsx +497 -0
- package/src/internal/useEChart.ts +88 -0
- package/src/internal/useEnterOnView.ts +80 -0
- package/src/internal/useFloatingBar.ts +125 -0
- package/src/internal/useFormReset.ts +57 -0
- package/src/internal/useIsMobile.ts +64 -0
- package/src/internal/useNoImplicitSubmit.ts +41 -0
- package/src/internal/useOneRowOverflow.ts +103 -0
- package/src/internal/usePrefersReducedMotion.ts +27 -0
- package/src/internal/useReturnFocus.ts +34 -0
- package/src/internal/utils.ts +58 -0
- package/src/recipes/EmptyState.stories.tsx +105 -0
- package/src/recipes/Form.stories.tsx +360 -0
- package/src/recipes/ModalWithForm.stories.tsx +219 -0
- package/src/recipes/Recipes.mdx +61 -0
- package/src/recipes/TableWithFilters.stories.tsx +278 -0
- package/src/storybook/FodsFamily.tsx +39 -0
- package/src/storybook/Section.tsx +36 -0
- package/src/storybook/a11y.ts +24 -0
- package/src/storybook/assets/banner-character-bartender.webp +0 -0
- package/src/storybook/assets/banner-invoice-sheet-left.webp +0 -0
- package/src/storybook/assets/banner-invoice-sheet-right.webp +0 -0
- package/src/storybook/assets/invoice-hero.webp +0 -0
- package/src/storybook/assets/invoice.webp +0 -0
- package/src/storybook/assets/section-document-info.svg +21 -0
- package/src/storybook/assets/section-gear-checklist.svg +11 -0
- package/src/storybook/assets/section-person-arrow-in.svg +15 -0
- package/src/storybook/assets/section-person-arrow-out.svg +22 -0
- package/src/storybook/assets/section-receipt-dollar.svg +23 -0
- package/src/storybook/assets/table-empty-folder-empty.png +0 -0
- package/src/storybook/assets/table-empty-folder-magnifying-glass.png +0 -0
- package/src/storybook/assets/table-empty-funnel.png +0 -0
- package/src/storybook/assets/table-empty-load-failed.png +0 -0
- package/src/storybook/assets/wallet-spot.png +0 -0
- package/src/storybook/assets.d.ts +17 -0
- package/src/storybook/componentDoc.ts +41 -0
- package/src/storybook/fitFrame.tsx +70 -0
- package/src/storybook/forceStates.tsx +647 -0
- package/src/storybook/illustrations.tsx +66 -0
- package/src/storybook/viewportFrame.tsx +58 -0
- package/src/styles/assets/label-brush-1.svg +6 -0
- package/src/styles/assets/pattern-dark.svg +113 -0
- package/src/styles/base.css +106 -0
- package/src/styles/index.css +15 -0
- package/src/styles/motion.css +157 -0
- package/src/styles/promo-sticker.css +27 -0
- package/src/styles/promo-surface.css +49 -0
- package/src/styles/shared.css +11 -0
- package/src/styles/theme.generated.css +314 -0
- package/src/styles/theme.map.json +278 -0
- package/src/styles/tracking.generated.css +12 -0
- package/src/tokens/index.ts +4 -0
- package/src/tokens/tokens.generated.ts +542 -0
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
2
|
+
import * as SplitButtonStories from './SplitButton.stories';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<Meta of={SplitButtonStories} tags={['autodocs']} />
|
|
6
|
+
|
|
7
|
+
# SplitButton
|
|
8
|
+
|
|
9
|
+
## Metadata
|
|
10
|
+
|
|
11
|
+
- **Layer:** molecule
|
|
12
|
+
- **Status:** draft
|
|
13
|
+
- **Tokens used:** `--bg-active`, `--bg-hover`, `--bg-primary`, `--border-width-100`, `--border-width-200`, `--disabled-control`, `--disabled-foreground`, `--font-body`, `--font-size-base`, `--font-size-md`, `--font-size-sm`, `--font-weight-semibold`, `--leading-loose`, `--leading-relaxed`, `--outline-default`, `--outline-focus`, `--primary-active`, `--primary-foreground`, `--primary-hover`, `--primary-solid`, `--radius-200`, `--secondary`, `--secondary-active`, `--secondary-foreground`, `--secondary-hover`, `--secondary-solid`, `--size-icon`, `--size-icon-small`, `--space-1000`, `--space-300`, `--space-400`, `--space-450`, `--space-500`, `--space-600`, `--space-900`, `--status-danger`, `--status-danger-active`, `--status-danger-foreground`, `--status-danger-hover`, `--status-danger-solid`, `--status-success-active`, `--status-success-hover`, `--status-success-tint-foreground`, `--z-index-base`
|
|
14
|
+
- **Manifest version:** `1.4.1`
|
|
15
|
+
- **Cell manifest:** `_button-segment` version `1.9.1` — the shared segment recipe both halves are built from
|
|
16
|
+
|
|
17
|
+
## Overview
|
|
18
|
+
|
|
19
|
+
One primary action joined to a menu trigger — the canonical „Vystavit fakturu ▾“ control. A label half fires the default action directly; a square icon half opens a menu of *meaningfully related alternatives* of that same action (create from template, import, …) without interrupting the primary flow. Three families × three sizes; both halves are the shared Button Segment cell.
|
|
20
|
+
|
|
21
|
+
Use it **only when one action dominates**. It is **not**:
|
|
22
|
+
|
|
23
|
+
- a **DropdownButton** — if there is no distinct primary action and the whole body should open the menu, use that one (here only the trigger half opens anything);
|
|
24
|
+
- a pair of unrelated toolbar actions — that is a **Button Group**;
|
|
25
|
+
- a navigation device — the action half fires a handler, not a route.
|
|
26
|
+
|
|
27
|
+
Copy rule from the spec: **don't restate the default in the menu.** If the main half is „Vystavit fakturu“, the menu lists the alternatives („Vystavit a odeslat“, „Uložit jako koncept“), never the default again. The trigger renders no text, so its copy *is* the required `triggerLabel` („Další možnosti“) — never the main verb repeated.
|
|
28
|
+
|
|
29
|
+
## Rationale
|
|
30
|
+
|
|
31
|
+
The legacy WIP „Button Group System“ folded the split pattern into ad-hoc frames. This molecule formalises it on the shared **Button Segment** cell: colour, geometry and the focus ring live in one place, and the molecule contributes exactly three things the cell cannot know about — the container (divider + outer radius + clip), the open/close affordance, and the whole-component `disabled` / `loading` locks.
|
|
32
|
+
|
|
33
|
+
The other reason it is a named component rather than a usage pattern: **two tab stops, two controls.** The main half is a plain `<button>`; the trigger carries `aria-haspopup="menu"`, `aria-expanded` and a mandatory `aria-label`. Hand-rolling that pairing loses half the ARIA — the same argument that keeps `DropdownButton` a component.
|
|
34
|
+
|
|
35
|
+
### Why a shared recipe and not two composed `<Button>`s
|
|
36
|
+
|
|
37
|
+
> ⚠️ **Source conflict, resolved in favour of the manifest.** `split-button.md` § Rationale states „In code there is **no Segment component** — `<SplitButton>` composes `<Button>`-like halves“. But `_button-segment.manifest.json` (`1.7.0`) describes a cell with its own paddings and an **inset** focus ring that standalone `Button` must *not* have (`focus-ring.md` keeps Button on the offset ring). Composing real `<Button>`s would mean overriding their focus ring, radius and padding from the outside. So the halves share a `tv()` **recipe** — `buttonSegment.ts`, the same „recipe, not a component“ shape as `popoverSurface.ts` / `dayCell.ts` — and the manifest wins per the manifest-first authority order.
|
|
38
|
+
|
|
39
|
+
## Anatomy
|
|
40
|
+
|
|
41
|
+
A horizontal flex container holding two `<button>` halves (`data-fods-component="split-button"`, parts `root` · `segment-main` · `segment-trigger`):
|
|
42
|
+
|
|
43
|
+
- **Container** (`root`) — a layout `<div>`, never an outer `<button>` (that would be invalid HTML and swallow one tab stop). Owns `gap-px` (= `--border-width-100`), `rounded-200` (`--radius-200`) and `overflow-hidden`. **The divider is not an element:** the 1px gap lets the container *fill* show through — `--bg-primary` (white) on the filled families, `--outline-default` (grey) on the outline one, and `--outline-default` on **every** family once the whole control is `disabled`. Any `className` you pass lands here, as do the remaining `<div>` attributes.
|
|
44
|
+
- **Main half** (`segment-main`) — the action, with optical padding built in (the icon side is one spacing step tighter than the text side). Leading slot (optional decorative `leadingIcon`, replaced by the `spinner` glyph while `loading`) + a single-line label with `truncate`. It is the target of the forwarded `ref`, because it is the primary control a caller focuses, measures or points a tooltip at.
|
|
45
|
+
- **Trigger half** (`segment-trigger`) — a **square** icon-only cell (side = height) with the DS `caret-down-small` glyph, swappable via `triggerIcon` (e.g. `dots-three`). The rotation lives on the wrapper `<span>`, so a swapped glyph rotates too; the glyph is `aria-hidden` and the accessible name comes from `triggerLabel`.
|
|
46
|
+
- **Menu panel** — **not part of this component.** Like `DropdownButton`, this trigger owns only the open/close affordance and `aria-expanded`; the `role="menu"` panel is a separate component. `Menu` ships in this package, but it anchors by cloning its trigger with a `ref`, and this component gives its `ref` to the main half and its spread props to the container — so it cannot host this trigger unchanged, and the consumer renders the panel from `open` / `onOpenChange`. The trigger gives the panel what it can: click and <kbd>↓</kbd> request open, <kbd>Esc</kbd> requests close and focus stays on the trigger. What it cannot give: a ref to anchor the panel to, and `aria-controls` on the trigger.
|
|
47
|
+
|
|
48
|
+
> **Glyph tier and naming are two different things.** The **tier** moved: `slots.caret` defaults to
|
|
49
|
+
> `caret-down-small` as of `_button-segment` 1.6.0 — a library-wide change that
|
|
50
|
+
> deprecated the plain `caret-*` glyphs (icon 1.8.0, retired from the active set in 1.9.0). Button
|
|
51
|
+
> Group and Dropdown Button inherit the same move, so the small caret is the one consistent
|
|
52
|
+
> affordance across the trigger family. The name matches too: the slot is `slots.caret` and the
|
|
53
|
+
> glyph is `caret-down-small` (the Figma boolean is `Show caret`), which is what the React `Icon`
|
|
54
|
+
> renders. The legacy `chevron-down-small` is not an `IconName` in React; the alias table in
|
|
55
|
+
> `spec/03-atoms/icon-migration.json`
|
|
56
|
+
> only tells the generator which font glyphs to keep out of the React registry.
|
|
57
|
+
|
|
58
|
+
## Variants
|
|
59
|
+
|
|
60
|
+
<Canvas of={SplitButtonStories.Variants} />
|
|
61
|
+
|
|
62
|
+
Three families, inherited from the cell. **Both halves always share one family** — the trigger is never a different colour than the action. The container fill is what you see as the divider.
|
|
63
|
+
|
|
64
|
+
<table>
|
|
65
|
+
<thead>
|
|
66
|
+
<tr><th>Variant</th><th>When</th><th>Container fill (= divider)</th><th>Halves (cell tokens)</th></tr>
|
|
67
|
+
</thead>
|
|
68
|
+
<tbody>
|
|
69
|
+
<tr>
|
|
70
|
+
<td><code>primary</code> (default)</td>
|
|
71
|
+
<td>Filled blue — the in-product default CTA that has related alternatives</td>
|
|
72
|
+
<td><code>--bg-primary</code> (white 1px line)</td>
|
|
73
|
+
<td>fill <code>--secondary-solid</code>, hover <code>--secondary-hover</code>, active/open <code>--secondary-active</code>, ink <code>--secondary-foreground</code></td>
|
|
74
|
+
</tr>
|
|
75
|
+
<tr>
|
|
76
|
+
<td><code>brand</code></td>
|
|
77
|
+
<td>Filled orange — marketing / brand-tied surfaces</td>
|
|
78
|
+
<td><code>--bg-primary</code></td>
|
|
79
|
+
<td>fill <code>--primary-solid</code>, hover <code>--primary-hover</code>, active/open <code>--primary-active</code>, ink <code>--primary-foreground</code></td>
|
|
80
|
+
</tr>
|
|
81
|
+
<tr>
|
|
82
|
+
<td><code>secondary</code></td>
|
|
83
|
+
<td>Neutral outline — quiet toolbars, next to outline buttons</td>
|
|
84
|
+
<td><code>--outline-default</code> + the container's own <code>--outline-default</code> identity line</td>
|
|
85
|
+
<td>opaque <code>--bg-primary</code> surface, ink <code>--secondary</code> → <code>--secondary-active</code> on hover/active; wash <code>--bg-hover</code> / <code>--bg-active</code> layered <em>over</em> the white base</td>
|
|
86
|
+
</tr>
|
|
87
|
+
</tbody>
|
|
88
|
+
</table>
|
|
89
|
+
|
|
90
|
+
Two consequences worth knowing:
|
|
91
|
+
|
|
92
|
+
- **The outline family's line is an inset outline, not a border.** It ships as `outline-100 outline-outline-default` at an offset of `calc(-1 * var(--border-width-100))`, which is what the manifest asks for: `composition.container.strokeMode: "inset-outline"`, under the system-wide rule `spec/06-patterns/edge-outline.md`. Two of the rule's triggers fire here — the container's height comes from its children, and size L promises a trigger half that is *exactly* 44×44. A `border-100` on this border-box container would make the outline family 34 / 42 / 46 tall and shrink the trigger to 30 / 38 / 42, breaking the manifest `sizes[].height` *and* the promise „use size L on touch (both halves then meet 44px; the square trigger is exactly 44×44)“. Never an inset `box-shadow`: the halves carry an opaque `--bg-primary` fill edge to edge and would hide it. The parts map enforces it with a `forbidClasses` invariant on `border-100` / `border-200`.
|
|
93
|
+
> ⚠️ **And never a positioned half at rest.** A parent's `outline` paints above its **static** children, but a *positioned* child covers it — even at `z-index: auto`. The halves are opaque and reach the container's edge, so an unconditional `relative` on them erased this line completely (measured in Chrome 2026-08-12: a 4px test outline survived only in the divider gap and the corner arcs, while Figma showed the border). The `:focus-visible` lift therefore carries its own `position`, and the cell is static at rest. Raised from here and **adopted upstream 2026-08-12** — `edge-outline.md` now carries the CSS caveat and a Don't of its own („no `position` on a fused container's cells at rest“), so this is the rule, not a local workaround.
|
|
94
|
+
- **The outline family's hover/active wash is a layer, not a replacement** (cell manifest changelog 2026-07-03: „alpha over the base, not a replacement“). The white surface is opaque — it has to be, or the divider colour would flood the whole control — so the wash is emitted as a background **image** layer on top of it.
|
|
95
|
+
|
|
96
|
+
### Matrix
|
|
97
|
+
|
|
98
|
+
<Canvas of={SplitButtonStories.Matrix} />
|
|
99
|
+
|
|
100
|
+
## Sizes
|
|
101
|
+
|
|
102
|
+
<Canvas of={SplitButtonStories.Sizes} />
|
|
103
|
+
|
|
104
|
+
Heights 32 / 40 / 44; the trigger half is a square of exactly that side, with the Icon Button geometry (glyph = box − 2 × padding). On the main half the icon side is optically one spacing step tighter than the text side.
|
|
105
|
+
|
|
106
|
+
<table>
|
|
107
|
+
<thead>
|
|
108
|
+
<tr><th>Size</th><th style={{ textAlign: 'right' }}>Height</th><th>Trigger square</th><th style={{ textAlign: 'right' }}>Glyph</th><th>Main padding (text / icon side)</th><th>Gap</th><th>Font (Semibold)</th></tr>
|
|
109
|
+
</thead>
|
|
110
|
+
<tbody>
|
|
111
|
+
<tr>
|
|
112
|
+
<td><code>sm</code></td>
|
|
113
|
+
<td style={{ textAlign: 'right' }}>32 px (<code>--space-900</code>)</td>
|
|
114
|
+
<td>32 × 32, padding <code>--space-300</code></td>
|
|
115
|
+
<td style={{ textAlign: 'right' }}>20 px (<code>--size-icon-small</code>)</td>
|
|
116
|
+
<td><code>--space-500</code> / <code>--space-400</code></td>
|
|
117
|
+
<td><code>--space-300</code></td>
|
|
118
|
+
<td>14 px (<code>--font-size-sm</code>)</td>
|
|
119
|
+
</tr>
|
|
120
|
+
<tr>
|
|
121
|
+
<td><code>md</code> (default)</td>
|
|
122
|
+
<td style={{ textAlign: 'right' }}>40 px (<code>--space-1000</code>)</td>
|
|
123
|
+
<td>40 × 40, padding <code>--space-400</code></td>
|
|
124
|
+
<td style={{ textAlign: 'right' }}>24 px (<code>--size-icon</code>)</td>
|
|
125
|
+
<td><code>--space-500</code> / <code>--space-400</code></td>
|
|
126
|
+
<td><code>--space-400</code></td>
|
|
127
|
+
<td>16 px (<code>--font-size-base</code>)</td>
|
|
128
|
+
</tr>
|
|
129
|
+
<tr>
|
|
130
|
+
<td><code>lg</code></td>
|
|
131
|
+
<td style={{ textAlign: 'right' }}>44 px (literal)</td>
|
|
132
|
+
<td>44 × 44, padding <code>--space-450</code></td>
|
|
133
|
+
<td style={{ textAlign: 'right' }}>24 px (<code>--size-icon</code>)</td>
|
|
134
|
+
<td><code>--space-600</code> / <code>--space-500</code></td>
|
|
135
|
+
<td><code>--space-400</code></td>
|
|
136
|
+
<td>18 px (<code>--font-size-md</code>)</td>
|
|
137
|
+
</tr>
|
|
138
|
+
</tbody>
|
|
139
|
+
</table>
|
|
140
|
+
|
|
141
|
+
- Without a leading glyph both sides of the main half use the text-side value (`--space-500` on `sm`/`md`, `--space-600` on `lg`) — the tighter icon-side padding only applies when the leading slot is filled.
|
|
142
|
+
- The `lg` height and square side are the one off-grid pair in the recipe: 44 px is the tap-target number from `_button-segment` `1.7.0` (`sizes[].height` / `.box` on size L) and is not on the spacing-token grid, so it ships as a literal with a registered lint suppression.
|
|
143
|
+
- Weight is `font-semibold` (`--font-weight-semibold`), parity with `Button`. The cell manifest's `sizes[]` does **not** declare a font size — the 14 / 16 / 18 ladder comes from `split-button.md` § Sizes.
|
|
144
|
+
- **`lg` is the touch size**; `sm` / `md` are desktop-density.
|
|
145
|
+
|
|
146
|
+
### Truncation and width behaviour
|
|
147
|
+
|
|
148
|
+
<Canvas of={SplitButtonStories.Truncation} />
|
|
149
|
+
|
|
150
|
+
The control hugs its content by default. When it is width-constrained, the action half shrinks (`min-w-0`) and its label ellipsises on a single line, while the square trigger never shrinks (`shrink-0`).
|
|
151
|
+
|
|
152
|
+
> ⚠️ **Not implemented, on purpose.** The manifest's `text.label` note also says the main half **FILLs** in the mobile bottom bar. That responsive behaviour of action bars is still marked *proposed* upstream (`button-group.md` § Responsive behaviour), so there is no specified breakpoint to build against and only the truncation half of the note ships.
|
|
153
|
+
|
|
154
|
+
## States
|
|
155
|
+
|
|
156
|
+
<Canvas of={SplitButtonStories.States} />
|
|
157
|
+
|
|
158
|
+
- **Default** — family base (see Variants).
|
|
159
|
+
- **Hover** — filled families move the fill to the `-hover` step; the outline family adds the `--bg-hover` wash and moves the ink to `--secondary-active`.
|
|
160
|
+
- **Active** — filled families use the `-active` fill; the outline family uses the deeper `--bg-active` wash with the same `--secondary-active` ink.
|
|
161
|
+
- **Focus** — **not a variant**: a grouped-control **inset double ring** on `:focus-visible` — 2 px `--outline-focus` at the cell edge plus a 2 px `--bg-primary` gap inside it, both widths derived from `--border-width-200` and emitted as one `box-shadow`. The focused half also raises itself to `calc(var(--z-index-base) + 1)`. See „Focus“ under Accessibility for why this is not the offset ring standalone `Button` / `IconButton` use.
|
|
162
|
+
- **Disabled** — the native `disabled` attribute on **both** halves plus `--disabled-control` surface / `--disabled-foreground` ink from the cell (never `opacity`, which would dim the divider through the cell as well). The **divider goes neutral** with them: `--outline-default` instead of the family white (manifest 1.1.1) — a white line between two grey halves would be the loudest mark on an inert control.
|
|
163
|
+
- **Loading** — the `spinner` glyph in the leading slot, `aria-busy="true"` on the main half **and no `aria-disabled` there**, `aria-disabled` on the trigger, `pointer-events-none` on both and click/open guards in the handlers — but **no native `disabled`**. The ARIA split is the contract, not an implementation detail: see „Disabled vs Loading“ below. Loading keeps the family ink on **both** halves (1.1.1 `loading.note`: „neither half greys“) and therefore keeps the **family divider** too.
|
|
164
|
+
- **Open** — **a named state since `_button-segment` 1.7.0, with no ink of its own:** every family's `states.open` is an *alias* of `states.active`, so the trigger takes the Active treatment and the rotating chevron (180°) is what tells Open apart from a plain press. Trigger only — `split-button` `composition.segments[1]` scopes it to that cell, and the main half never opens the menu, so it can never be in this state. Rides a real `data-state="open"` attribute.
|
|
165
|
+
- **`disabled` outranks it.** A disabled control paints both halves `--disabled-control` even when `open` is still `true`, because `_button-segment` has one disabled treatment for all six families and nothing loud may survive on a control that cannot be used. The `data-state` and `aria-expanded` attributes keep telling the truth — only the paint is withheld. This is enforced in the TSX rather than left to CSS: `data-[state=open]:bg-*` and `disabled:bg-disabled-control` have the **same specificity**, and Tailwind v4 emits the arbitrary `data-*` variant last, so the cascade alone would hand the win to Open.
|
|
166
|
+
|
|
167
|
+
### Disabled vs Loading — the same lock, different mechanics
|
|
168
|
+
|
|
169
|
+
This reading was **confirmed upstream** (split-button 1.0.2, 2026-08-11) and then **sharpened in
|
|
170
|
+
1.3.0** (2026-09-16), which split the one ARIA sentence into a per-half rule — raised from here,
|
|
171
|
+
because 1.0.2's „both halves via `aria-disabled` + a click guard“ put `aria-disabled` on the very
|
|
172
|
+
node that carries `aria-busy`.
|
|
173
|
+
|
|
174
|
+
1. `disabled` is the **native attribute** on both halves — the control leaves the tab order and the
|
|
175
|
+
accessibility tree, and that is the point of it.
|
|
176
|
+
2. `loading` is **ARIA only**: `aria-busy="true"`, the `spinner` in the main half's leading slot, the
|
|
177
|
+
label kept and the family colour kept — `_button-segment` has no `loading` entry in `families[]`,
|
|
178
|
+
so there is no grey to fall back to. **The two halves carry different ARIA**, because only one of
|
|
179
|
+
them is busy:
|
|
180
|
+
- the **main half** carries `aria-busy="true"` **alone** — no `aria-disabled` on that node, since
|
|
181
|
+
announcing „unavailable“ and „working“ together contradicts and „working“ is the one to
|
|
182
|
+
announce. It is suppressed by a click guard and **stays focusable**;
|
|
183
|
+
- the **trigger**, which is not itself busy, is the half that carries `aria-disabled` plus its own
|
|
184
|
+
click guard.
|
|
185
|
+
|
|
186
|
+
**Never** the native attribute on either half: a natively disabled button leaves the accessibility
|
|
187
|
+
tree, which would silence the very `aria-busy` the state exists to announce. Keeping both halves
|
|
188
|
+
in the tree lets a screen-reader user reach the control and hear that it is busy rather than find
|
|
189
|
+
nothing.
|
|
190
|
+
|
|
191
|
+
The **trigger** is blocked for the duration too: the menu offers
|
|
192
|
+
alternatives to an action already committed, and opening it invites a second submit. Blocked, but
|
|
193
|
+
still in the accessibility tree. Both mechanics are pinned by tests in `SplitButton.test.tsx` — the
|
|
194
|
+
component has shipped this exact split since it landed, so 1.3.0 changed the words, not the code.
|
|
195
|
+
|
|
196
|
+
### States live per half
|
|
197
|
+
|
|
198
|
+
<Canvas of={SplitButtonStories.PerHalfStates} />
|
|
199
|
+
|
|
200
|
+
„Hover the action without hovering the trigger“ (`split-button.md` § States) is the reason the halves are two controls. Each row above forces the state on **one** half only, so it stays visible which half would respond to a click.
|
|
201
|
+
|
|
202
|
+
**How the grids render Hover / Active / Focus.** They are pseudo-classes, so a docs grid cannot reach them by passing anything, and `parameters.pseudo` is not trustworthy here (Tailwind v4 wraps every `hover:` utility in `@media (hover: hover)`, which the addon does not rewrite). Unlike the Button family, the bare-class trick is also unavailable: `className` on `SplitButton` belongs to the **container**, not to the halves, and adding `mainClassName` / `triggerClassName` props to satisfy a docs page would be API pollution. So `src/storybook/forceStates.tsx` re-declares the recipe's own token rules with the pseudo stripped, selecting the halves by `data-fods-part` and the family by `data-fods-family`. The forced values are written as CSS variables taken from the cell manifest, so a token change still reaches the grid. `Disabled` / `Loading` / `Open` need no forcing — they are real props / attributes.
|
|
203
|
+
|
|
204
|
+
### Open per family
|
|
205
|
+
|
|
206
|
+
<Canvas of={SplitButtonStories.Open} />
|
|
207
|
+
|
|
208
|
+
### Icon slots
|
|
209
|
+
|
|
210
|
+
<Canvas of={SplitButtonStories.Icons} />
|
|
211
|
+
|
|
212
|
+
### Motion
|
|
213
|
+
|
|
214
|
+
<Canvas of={SplitButtonStories.Motion} />
|
|
215
|
+
|
|
216
|
+
The split button declares no motion of its own (manifest 1.4.1 `motion.none`); everything that moves is the segment's (`_button-segment` 1.9.1): hover / press washes over `--duration-hover` / `--duration-press`, the caret's 180° turn on `--spring-standard` (interruptible; no turn on first paint or in the server render), and the loading spinner on `--duration-spin` + `--easing-linear`. Under `prefers-reduced-motion: reduce` — when the app mounts `<MotionConfig reducedMotion="user">` (`FodsProvider` mounts it; this Storybook does in `.storybook/preview.tsx`) — the caret shows its end pose at once; the spinner keeps turning regardless.
|
|
217
|
+
|
|
218
|
+
### Compositions
|
|
219
|
+
|
|
220
|
+
<Canvas of={SplitButtonStories.Compositions} />
|
|
221
|
+
|
|
222
|
+
### Answered by design (2026-08-11 / 12, extended 2026-09-16)
|
|
223
|
+
|
|
224
|
+
- **Loading wording** — ✅ resolved (split-button 1.0.2). The three contradictory descriptions were
|
|
225
|
+
reduced to one, and the build's reading is the intended one; see „Disabled vs Loading“ above.
|
|
226
|
+
- **Which half carries `aria-disabled` while loading** — ✅ **resolved (split-button 1.3.0 +
|
|
227
|
+
`_button-segment` 1.7.0, 2026-09-16)**, raised from here. 1.0.2's single sentence („both halves
|
|
228
|
+
inert via `aria-disabled` + a click guard") landed `aria-disabled` on the same node as
|
|
229
|
+
`aria-busy`, which is the contradiction the same manifest uses to rule out the native `disabled`
|
|
230
|
+
attribute. Upstream split it per half: busy node → `aria-busy` only, focusable, click-guarded;
|
|
231
|
+
the non-busy sibling → `aria-disabled` + click guard. **No code change** — the component has
|
|
232
|
+
always done exactly this, and `button.manifest.json` 1.10.0 `loading.aria` now states the same
|
|
233
|
+
boundary for the whole button family.
|
|
234
|
+
- **Open had no contract** — ✅ **resolved (`_button-segment` 1.7.0 + split-button 1.3.0)**, raised
|
|
235
|
+
from here. `axes.state` stopped at Active, so the Open paint was derived from the Dropdown Button
|
|
236
|
+
precedent rather than specified, and `split-button.parts.json` had nothing to bind — the state the
|
|
237
|
+
component really ships went ungraded by both layers. `axes.state` now carries **Open** (after
|
|
238
|
+
Active), every family's `states.open` aliases `states.active`, and `composition.segments[1]` scopes
|
|
239
|
+
the treatment to the trigger cell. The parts map binds it on a new `segment-trigger-open` part;
|
|
240
|
+
again no visual change, only a name for what was already painted.
|
|
241
|
+
- **The `--secondary-solid` contrast exception** — ✅ resolved (`accessibility.md`, 2026-08-11). The
|
|
242
|
+
three mitigations were **dropped**: white on `--secondary-solid` and `--primary-solid` is now
|
|
243
|
+
signed off **unconditionally**, with „no per-control conditions“. The condition never held on the
|
|
244
|
+
component the exception names — `Button`'s filled families carry no border and no shadow either.
|
|
245
|
+
So the halves need no same-colour border, and **an automated contrast check flagging these nodes
|
|
246
|
+
is reporting a known accepted characteristic, not a finding** (the recurring axe result on the
|
|
247
|
+
Matrix — 3 `primary` nodes + 1 `brand` — needs no redesign). The scope that stays: filled chrome
|
|
248
|
+
only, and Brand must not be „fixed“ with a dark foreground.
|
|
249
|
+
- **The container edge** — ✅ resolved as a system-wide rule rather than a per-component exception:
|
|
250
|
+
`spec/06-patterns/edge-outline.md`
|
|
251
|
+
plus the `strokeMode` field; see Variants above.
|
|
252
|
+
- **The divider under `disabled`** — ✅ **specified 2026-08-12** (manifest 1.1.1): `composition.container.divider.disabled` = `--outline-default`, overriding the family key when the WHOLE control is disabled. Raised from here, because the container fill has no state axis and a white seam between two `--disabled-control` halves is the loudest mark on a control that should be the quietest thing on the screen. The Secondary family already drew that hairline, so this makes one law out of two behaviours instead of adding an exception. **Loading is deliberately not this case** — the main half keeps its family fill, so the seam still separates two saturated surfaces and the family divider stays.
|
|
253
|
+
- **What Loading does to the trigger half** — ✅ **said outright** (1.1.1, new composite-level `loading.note`): it keeps its family fill, no grey anywhere. `--disabled-control` is the paint of a control that cannot be used at all, and a loading one is mid-action — the spinner is the busy signal for both halves.
|
|
254
|
+
|
|
255
|
+
## API
|
|
256
|
+
|
|
257
|
+
<Controls />
|
|
258
|
+
|
|
259
|
+
<table>
|
|
260
|
+
<thead>
|
|
261
|
+
<tr><th>Prop</th><th>Type</th><th>Default</th><th>Description</th></tr>
|
|
262
|
+
</thead>
|
|
263
|
+
<tbody>
|
|
264
|
+
<tr><td><code>variant</code></td><td><code>'primary' | 'brand' | 'secondary'</code></td><td><code>'primary'</code></td><td>Colour family — applied to BOTH halves.</td></tr>
|
|
265
|
+
<tr><td><code>size</code></td><td><code>'sm' | 'md' | 'lg'</code></td><td><code>'md'</code></td><td>Heights 32 / 40 / 44; the trigger half is square.</td></tr>
|
|
266
|
+
<tr><td><code>label</code></td><td><code>string</code></td><td>— (required)</td><td>Main-half action label = its accessible name. Verb-first, one action, single line.</td></tr>
|
|
267
|
+
<tr><td><code>leadingIcon</code></td><td><code>ReactNode</code></td><td><code>undefined</code></td><td>Decorative glyph before the label; also drives the optical padding.</td></tr>
|
|
268
|
+
<tr><td><code>triggerIcon</code></td><td><code>ReactNode</code></td><td><code><Icon name="caret-down-small" /></code></td><td>Trigger glyph override (e.g. <code>dots-three</code>).</td></tr>
|
|
269
|
+
<tr><td><code>triggerLabel</code></td><td><code>string</code></td><td>— (required)</td><td><code>aria-label</code> of the icon-only trigger — the only name announced for it.</td></tr>
|
|
270
|
+
<tr><td><code>onAction</code></td><td><code>() => void</code></td><td>—</td><td>Fires on the main half.</td></tr>
|
|
271
|
+
<tr><td><code>open</code></td><td><code>boolean</code></td><td><code>undefined</code></td><td>Controlled open state of the menu the trigger owns.</td></tr>
|
|
272
|
+
<tr><td><code>defaultOpen</code></td><td><code>boolean</code></td><td><code>false</code></td><td>Initial open state when uncontrolled.</td></tr>
|
|
273
|
+
<tr><td><code>onOpenChange</code></td><td><code>(open: boolean) => void</code></td><td>—</td><td>Fires whenever the trigger requests an open/close.</td></tr>
|
|
274
|
+
<tr><td><code>disabled</code></td><td><code>boolean</code></td><td><code>false</code></td><td>Native <code>disabled</code> on both halves.</td></tr>
|
|
275
|
+
<tr><td><code>loading</code></td><td><code>boolean</code></td><td><code>false</code></td><td>Spinner + <code>aria-busy</code> on the main half; also locks the trigger (the menu cannot open).</td></tr>
|
|
276
|
+
</tbody>
|
|
277
|
+
</table>
|
|
278
|
+
|
|
279
|
+
All remaining native `<div>` attributes are forwarded to the **container**; `ref` points at the **main half's** `<button>`.
|
|
280
|
+
|
|
281
|
+
**Two prop names the spec's earlier „Code API (proposed)“ table got wrong — no longer deviations.**
|
|
282
|
+
`COMPONENT-CODE-CONVENTIONS` §2 / §3 outranked that section in the manifest-first authority order, and
|
|
283
|
+
as of manifest **1.2.0** upstream realigned it with the shipped component (and added `delivery.react`),
|
|
284
|
+
so the names below are now the contract on both sides:
|
|
285
|
+
|
|
286
|
+
- spec `icon` → **`leadingIcon`**: §3 fixes the slot names to `leadingIcon` / `trailingIcon` across the whole button family, and `Button` already uses that name.
|
|
287
|
+
- spec `onToggle(open)` → **`open` / `defaultOpen` / `onOpenChange`**: §2 makes the Radix-shaped triplet the norm for disclosure state, and `DropdownButton` already implements it — so the two triggers stay swappable.
|
|
288
|
+
|
|
289
|
+
The same pass also fixed `size` (the table said `'s' | 'm' | 'l'`, the conventions scale is
|
|
290
|
+
`sm | md | lg`) and dropped a § Rationale claim that `<SplitButton>` composes `<Button>`-like halves —
|
|
291
|
+
a half owns its positional radius and its inset focus ring, neither of which a standalone `Button` may
|
|
292
|
+
carry.
|
|
293
|
+
|
|
294
|
+
## Do / Don't
|
|
295
|
+
|
|
296
|
+
- ✅ Use it when **one action dominates** and the menu holds variants of it (create from template, import).
|
|
297
|
+
- ✅ Give the trigger a short, descriptive `triggerLabel` („Další možnosti“) — it is icon-only, so this is its only accessible name.
|
|
298
|
+
- ✅ Keep the trigger a square icon-only cell, and keep the main label visible.
|
|
299
|
+
- ✅ Match family and size to the buttons standing next to it; let both halves share one family and size.
|
|
300
|
+
- ✅ Use `size="lg"` on touch surfaces — both halves then meet 44 px and the trigger is exactly 44 × 44.
|
|
301
|
+
- ❌ Don't use it for unrelated actions — that is a Button Group; and don't use it when no action dominates — that is a `DropdownButton`.
|
|
302
|
+
- ❌ Don't restate the default action in the menu.
|
|
303
|
+
- ❌ Don't mix families between the halves, and don't hide the main label.
|
|
304
|
+
- ❌ Don't put a destructive surprise in the menu of a constructive action.
|
|
305
|
+
- ❌ Don't place a second filled button next to it — the Split Button *is* the one primary action on that row.
|
|
306
|
+
|
|
307
|
+
## Accessibility
|
|
308
|
+
|
|
309
|
+
- **Keyboard** — **two tab stops.** <kbd>Tab</kbd> reaches the main half, then the trigger. <kbd>Enter</kbd> / <kbd>Space</kbd> on the main half fire the action natively and do **not** open the menu; on the trigger they toggle it (native button click). <kbd>↓</kbd> opens the menu from the trigger, <kbd>Esc</kbd> closes it — and focus is deliberately not moved, so it stays on the trigger, which is where the spec requires `Esc` to return it. When `disabled`, both halves are skipped by <kbd>Tab</kbd>.
|
|
310
|
+
- **ARIA** — main = a plain `<button type="button">` whose accessible name is the visible `label`. Trigger = `aria-haspopup="menu"` + `aria-expanded` (rendered in **both** states, never omitted when closed) + the required `aria-label` from `triggerLabel`, plus `data-state="open" | "closed"` for styling. `loading` sets `aria-busy="true"` on the main half — and deliberately **no** `aria-disabled` there — while `aria-disabled` goes on the trigger, the half that is not itself busy (manifest 1.3.0; see „Disabled vs Loading“); `disabled` sets the native `disabled` plus `aria-disabled` on both. Both glyphs (leading icon, trigger chevron) are `aria-hidden`.
|
|
311
|
+
- **Screen reader** — the action is announced by its label; the trigger by `triggerLabel` together with the menu-button role and its collapsed/expanded state (exact wording differs per SR). While loading, the main half stays in the accessibility tree on purpose, so `aria-busy` is announceable and the trigger can report `aria-disabled` rather than pressing into silence. `role="menu"` and item navigation belong to the separate `Menu` component.
|
|
312
|
+
- **Focus** — the grouped-control **inset** double ring, not the offset ring. This is an explicit exception granted to grouped controls by `spec/06-patterns/focus-ring.md` and invoked by `split-button.md` § „Focus — inset double ring (grouped controls)“, not a breach of the a11y floor: nothing overflows the control, and the 2 px `--bg-primary` inner gap keeps the indicator readable on a blue fill — the blue-on-blue case where an offset ring of the same hue disappears. The focused half is raised one z-index step because CSS paints a parent's outline **above** its non-positioned children, so without it the outline family's grey identity line would sit on the outer pixels of the ring. **Do not port this to `Button` / `IconButton`.**
|
|
313
|
+
- **Contrast** — **measured, not assumed.** An axe-core run over the Matrix story (2026-08-11, via `@storybook/addon-a11y`) reports exactly one rule: `color-contrast` (serious, 4 nodes) on the white labels of the two filled families. Both are **accepted, owner-signed exceptions upstream**, not defects here:
|
|
314
|
+
- `primary` — white `--secondary-foreground` on `--secondary-solid` (`#097fb5`) = **4.45:1**, 0.05 below AA-Normal, clears AA-Large and the 3:1 non-text bar. Signed off as a *system-wide token characteristic* covering „every control whose chrome is a `--secondary-solid` fill“ (`spec/01-foundations/accessibility.md`, owner, reaffirmed 2026-07-22, scope widened 2026-08-08, **made unconditional 2026-08-11**).
|
|
315
|
+
- `brand` — white `--primary-foreground` on `--primary-solid` (`#f2912f`) = **2.37:1**, the accepted Brand-CTA exception (owner sign-off, token grill 2026-07-08, reaffirmed 2026-07-17, **made unconditional 2026-08-11**).
|
|
316
|
+
|
|
317
|
+
**Neither exception carries conditions any more.** `accessibility.md` says it in those words for both rows — „**No per-control conditions.** White on this fill is signed off; a reviewer does not re-litigate it component by component, and an automated contrast check flagging it is reporting a known, accepted characteristic, not a finding.“ So the earlier question of whether these halves satisfy a „fill, **and** a border or shadow“ mitigation is **moot** — the mitigation list was dropped, and the halves needing no same-colour border is the settled answer, not an open one. What remains in scope is only the boundary of the exception: **filled chrome only** (a `--secondary-solid` *tint* is not covered), and Brand must never be „fixed“ with a dark foreground, which would break the identity the exception exists to protect.
|
|
318
|
+
|
|
319
|
+
The outline family is not implicated: its ink is `--secondary` / `--secondary-active` on a white surface. The disabled treatment uses the `--disabled-control` / `--disabled-foreground` tokens, never `opacity`.
|
|
320
|
+
- **Motion** — the split button adds none of its own: manifest 1.4.1 `motion.none` („the segments carry all the motion — hover, press, caret rotation and spinner“) with `inherits: [_button-segment]`. From `_button-segment` 1.9.1 `motion.states`: the cell's wash and ink change over `--duration-hover` on hover and `--duration-press` on press, both on `--easing-standard`, over `background-color` / `color` only — the inset focus ring (a box-shadow) is never eased, and colour washes need no reduced-motion override. The caret turns 180° on open and back on close on `--spring-standard` (`springs.standard` from `@invoiceonline/ui-system`, in Motion; shared `internal/MotionCaret.tsx`); a quick re-toggle turns it around mid-turn (`interrupt`), and under `prefers-reduced-motion` it shows its end pose at once, provided the app mounts `<MotionConfig reducedMotion="user">` (`FodsProvider` mounts it; this Storybook does). The loading spinner is `animate-spin` — one turn per `--duration-spin` on `--easing-linear` — and keeps turning under reduced motion — a loader is essential motion (manifest `loop`). See [Motion](#motion).
|
|
321
|
+
- **Touch target** — ≥ 44 × 44 is met by `lg` only; `sm` / `md` are desktop densities and need extra hit area if used as a standalone tap target (pad the hit area, not the visual box).
|
|
322
|
+
|
|
323
|
+
### Verification status
|
|
324
|
+
|
|
325
|
+
*Recorded before this package existed, with a verification tool that is not part of it; not re-run here.*
|
|
326
|
+
|
|
327
|
+
**Static gate:** clean (15 checks). **Runtime pass: run** (2026-08-13, bundled Chromium via Playwright over the built bundle) — 38 computed properties, the five FODS a11y-floor rules with no finding, and an interaction phase that really fired `hover` ×111, `active` ×54 and a real `:focus-visible` ×6, plus the axe run described under Contrast.
|
|
328
|
+
|
|
329
|
+
> The `active` measurement is why the automatic path is the default one. The MCP / Claude-in-Chrome fallback delivers only pointer *movement* into the measured tab — a synthetic click fires no `pointerdown` in the page (verified: zero events on capture listeners) — so under that harness `:active` is unreachable and focus has to be provoked programmatically. Playwright has no such limit.
|
|
330
|
+
|
|
331
|
+
The three items the parts map lists as `runtimeOnly` are **now measured**, and they were worth measuring — the first two are exactly the invariants a layout `border` on the container would have broken:
|
|
332
|
+
|
|
333
|
+
| Claim | Measured |
|
|
334
|
+
|---|---|
|
|
335
|
+
| 1 px divider gap (`--border-width-100`) | `1.00 px` between the halves' rects in **all 9** Matrix cells |
|
|
336
|
+
| Trigger is a square of side = height | `32×32` · `40×40` · `44×44` — in all three families, **including the outline one** |
|
|
337
|
+
| Outline family keeps the pinned height | outer height = half height = `32` / `40` / `44`; the identity line measures as `outline 1px solid #d5e2e8, outline-offset -1px`, which costs no layout box |
|
|
338
|
+
| Inset double ring renders | `box-shadow: rgb(9,127,181) 0 0 0 2px inset, rgb(255,255,255) 0 0 0 4px inset` on a real `:focus-visible`, with `outline-style: none` and the focused half raised to `z-index: 1` |
|
|
339
|
+
| Every States cell differs from Default | **15 of the 18** non-Default cells (3 families × 6 states) differ in paint, token-for-token: `primary` hover `rgb(28,105,155)` / active `rgb(27,89,128)`, `brand` `rgb(215,121,0)` / `rgb(143,72,14)`, `secondary` the wash layer `rgba(3,44,70,0.03)` → `0.06` (= `--bg-hover` `#032c4608` / `--bg-active` `#032c460f`) over an unchanged white base. The remaining 3 are the **Loading** cells, which are paint-identical to Default **on purpose** — manifest 1.1.1 `loading.note` („neither half greys“) keeps the family fill, so that row is differentiated by the spinner glyph and `aria-busy`, not by colour |
|
|
340
|
+
| States live per half | all **12** PerHalfStates cells change exactly ONE half; the other stays at its resting value |
|
|
341
|
+
| `disabled` outranks `open` on the trigger | with `open` **and** `disabled` set, the trigger measured `rgb(240,247,251)` / `rgb(94,124,143)` = `--disabled-control` (claudy/100, `_button-segment` 1.8.0; re-measured 2026-10-01) / `--disabled-foreground` in all three families — identical to plain `disabled`, while `data-state="open"` and `aria-expanded="true"` stay truthful. Not a CSS outcome: the two rules have equal specificity and Tailwind v4 emits `data-[state=open]:*` last, so the Open utilities are withheld in TSX and pinned by a test |
|
|
342
|
+
|
|
343
|
+
**Still not verified, and why:**
|
|
344
|
+
|
|
345
|
+
- **Per-family `hover` / `active`** — **captured but not evaluated.** The interaction pass arms every target and really fires the events on all of them (hence the ×111 / ×54 counts), but the parts map lists these six state keys under `statesNotApplicable` and carries no expected value for them, so nothing compares the measurement against a contract. The token bindings are checked statically instead.
|
|
346
|
+
- **The outline family's composited wash** — `--bg-hover` / `--bg-active` are alpha layers over the white surface, so the runtime pass reads a blended colour, not a flat token. Checked statically out of the arbitrary property; measured by hand for the table above.
|
|
347
|
+
- **The Tab walk count** — the driver reports 18 `Tab` presses against 36 captured `focusin` transitions. Not diagnosed: it is either double capture in the probe or a genuinely doubled focus path, and it does not bear on the two-tab-stops contract, which is pinned by `SplitButton.test.tsx` and by the DOM structure.
|
|
348
|
+
- **The Open paint, at runtime** — newly **bound** as of manifest 1.3.0: the `segment-trigger-open` part grades the three `data-[state=open]:` families against `_button-segment` `families[].states.open` in the static pass. The runtime numbers above predate that part (2026-08-13), so Open is measured there only through the „`disabled` outranks `open`“ row; a re-run is what would add the plain Open cells.
|
|
349
|
+
|
|
350
|
+
Accessibility floor for every FODS component: `spec/01-foundations/accessibility.md`.
|
|
351
|
+
|
|
352
|
+
## Copy
|
|
353
|
+
|
|
354
|
+
Voice: the canonical action-label rules of `Button` — verb-first, one action, sentence case, impersonal in-app voice. The examples are Czech; the rules hold for every market.
|
|
355
|
+
|
|
356
|
+
- **Label** (`label`) — the main half's default action, written exactly like a Button label: verb-first, one action. Single line, max 24 characters; the main half hugs on desktop and fills in a mobile bottom bar, where a long label truncates with an ellipsis.
|
|
357
|
+
- **Trigger** — renders no visible text, so its copy is the required `aria-label`, passed as `triggerLabel`: short and descriptive, not „Tlačítko“ and not the main verb repeated.
|
|
358
|
+
|
|
359
|
+
The menu holds variants of the same action, so its items stay in the same verb family — and they list the alternatives, never the default again.
|
|
360
|
+
|
|
361
|
+
<table>
|
|
362
|
+
<thead>
|
|
363
|
+
<tr><th>Text</th><th>Canonical example</th></tr>
|
|
364
|
+
</thead>
|
|
365
|
+
<tbody>
|
|
366
|
+
<tr><td>Label</td><td>Vystavit fakturu · Vytvořit ze šablony</td></tr>
|
|
367
|
+
<tr><td>Trigger (<code>triggerLabel</code>)</td><td>Další možnosti</td></tr>
|
|
368
|
+
<tr><td>Menu items beside the label „Vystavit fakturu“</td><td>Vystavit a odeslat · Uložit jako koncept</td></tr>
|
|
369
|
+
</tbody>
|
|
370
|
+
</table>
|
|
371
|
+
|
|
372
|
+
## Usage
|
|
373
|
+
|
|
374
|
+
```tsx
|
|
375
|
+
import { SplitButton, Icon } from '@invoiceonline/ui-react';
|
|
376
|
+
|
|
377
|
+
// Good — the in-product CTA with related alternatives (uncontrolled)
|
|
378
|
+
<SplitButton
|
|
379
|
+
label="Vystavit fakturu"
|
|
380
|
+
triggerLabel="Další možnosti"
|
|
381
|
+
leadingIcon={<Icon name="invoice-new" />}
|
|
382
|
+
onAction={issueInvoice}
|
|
383
|
+
onOpenChange={setMenuOpen}
|
|
384
|
+
/>
|
|
385
|
+
|
|
386
|
+
// Good — controlled open state, wired to your own menu panel
|
|
387
|
+
<SplitButton
|
|
388
|
+
label="Vystavit fakturu"
|
|
389
|
+
triggerLabel="Další možnosti"
|
|
390
|
+
open={isOpen}
|
|
391
|
+
onOpenChange={setIsOpen}
|
|
392
|
+
onAction={issueInvoice}
|
|
393
|
+
/>
|
|
394
|
+
|
|
395
|
+
// Good — quiet toolbar next to outline buttons, swapped trigger glyph
|
|
396
|
+
<SplitButton
|
|
397
|
+
variant="secondary"
|
|
398
|
+
size="sm"
|
|
399
|
+
label="Odeslat"
|
|
400
|
+
triggerLabel="Další možnosti odeslání"
|
|
401
|
+
triggerIcon={<Icon name="dots-three" />}
|
|
402
|
+
/>
|
|
403
|
+
|
|
404
|
+
// Good — touch surface: both halves meet 44px, the trigger is 44×44
|
|
405
|
+
<SplitButton size="lg" label="Vystavit fakturu" triggerLabel="Další možnosti" />
|
|
406
|
+
|
|
407
|
+
// Good — loading: spinner on the main half, aria-busy, the menu cannot open
|
|
408
|
+
<SplitButton label="Vystavuji…" triggerLabel="Další možnosti" loading />
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
```tsx
|
|
412
|
+
// Don't — no dominant action, just a menu of peers; that is a DropdownButton
|
|
413
|
+
<SplitButton label="Akce" triggerLabel="Další možnosti" />
|
|
414
|
+
|
|
415
|
+
// Don't — the trigger label repeats the main verb instead of naming the menu
|
|
416
|
+
<SplitButton label="Vystavit fakturu" triggerLabel="Vystavit fakturu" />
|
|
417
|
+
|
|
418
|
+
// Don't — unrelated actions joined into one control; that is a Button Group
|
|
419
|
+
<SplitButton label="Stáhnout PDF" triggerLabel="Smazat fakturu" />
|
|
420
|
+
|
|
421
|
+
// Don't — a second filled button competing with the one primary action
|
|
422
|
+
<>
|
|
423
|
+
<Button variant="primary">Uložit koncept</Button>
|
|
424
|
+
<SplitButton label="Vystavit fakturu" triggerLabel="Další možnosti" />
|
|
425
|
+
</>
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
## Related
|
|
429
|
+
|
|
430
|
+
- [`Button`](?path=/docs/design-system-atoms-button--docs) — the standalone action; keeps the **offset** focus ring and the same `leadingIcon` / `loading` mechanics
|
|
431
|
+
- [`IconButton`](?path=/docs/design-system-atoms-iconbutton--docs) — the square icon-only geometry the trigger half mirrors
|
|
432
|
+
- [`Icon`](?path=/story/design-system-atoms-icon--playground) — the DS glyph set (`caret-down-small`, `dots-three`, `invoice-new`, `spinner`)
|
|
433
|
+
- `buttonSegment.ts` — the shared cell recipe both grouped molecules are built from (colour, geometry, inset focus ring)
|
|
434
|
+
- [`ButtonGroup`](?path=/docs/design-system-molecules-buttongroup--docs) — the sibling for several independent actions
|
|
435
|
+
- `spec/04-molecules/split-button.md` and `spec/04-molecules/button-group.md` § Button Segment — upstream design specs
|
|
436
|
+
|
|
437
|
+
## Migration notes
|
|
438
|
+
|
|
439
|
+
Notes for adopters:
|
|
440
|
+
|
|
441
|
+
- **1.4.1 / `_button-segment` 1.9.1 — motion audit (2026-11-03).** The split button declares no motion of its own (`motion.none`) and inherits the cell's. The cell's raw `transition-colors duration-150` became `transition-[background-color,color] duration-hover ease-standard active:duration-press` (shared `buttonSegment.ts`, so Button Group changed with it). With ui-system 0.17.0 the caret turn moved from that raw `transition-transform duration-150` + `rotate-180` to Motion on `--spring-standard` (shared `internal/MotionCaret.tsx`, so Button Group changed with it): interruptible, end pose at once under reduced motion; the spinner now turns on `--duration-spin` + `--easing-linear`. New `Motion` story.
|
|
442
|
+
- **1.3.1 / `_button-segment` 1.8.0 — disabled paint.** Both halves' disabled fill rebinds `--disabled` → `--disabled-control` (claudy/100, was gray/100) through the shared cell; split-button 1.3.1 only renames the token in its notes. `--disabled` is deprecated in `@invoiceonline/ui-system` 0.13.0.
|
|
443
|
+
- **The panel is not wired here.** Visually complete; `Menu` exists but cannot clone this two-button trigger (Anatomy § Menu panel), so wire the menu — and focus movement into it — yourself.
|
|
444
|
+
- **The spec's proposed Code API is not the shipped one** — `icon` → `leadingIcon`, `onToggle(open)` → `open` / `defaultOpen` / `onOpenChange`. See the API section for why.
|
|
445
|
+
- **A compound API is the open question now.** The spec notes that `<SplitButton.Action>` / `.Trigger` / `.Content` becomes preferable once the Menu component exists. `Menu` exists, and the shipped two-button API cannot be its `trigger` (Anatomy § Menu panel), so a seam — a compound API or a trigger ref — is what closes that gap; not decided yet.
|