@oxy.so/bloom 19.5.0 → 19.5.2
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/docs/activity-heatmap.mdx +7 -0
- package/docs/adoption-matrix.mdx +19 -19
- package/docs/announcement.mdx +7 -0
- package/docs/avatar.mdx +2 -0
- package/docs/badge.mdx +2 -0
- package/docs/chip.mdx +6 -2
- package/docs/composition-bar.mdx +4 -0
- package/docs/concentric.mdx +5 -0
- package/docs/connection-dots.mdx +5 -0
- package/docs/connection-status.mdx +4 -0
- package/docs/contact-card.mdx +5 -0
- package/docs/divider.mdx +8 -0
- package/docs/empty-state.mdx +8 -0
- package/docs/icon-circle.mdx +2 -0
- package/docs/public-parts.mdx +44 -30
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/docs/typography.mdx +9 -0
- package/lib/commonjs/chip/Chip.js +10 -1
- package/lib/commonjs/chip/Chip.js.map +1 -1
- package/lib/commonjs/chip/shared.js +2 -2
- package/lib/commonjs/motion/use-eased-values.js +13 -3
- package/lib/commonjs/motion/use-eased-values.js.map +1 -1
- package/lib/commonjs/stay-filters/CountFilter.js +1 -1
- package/lib/commonjs/stay-filters/FilterChip.js +1 -1
- package/lib/commonjs/stay-filters/ToggleChipGroup.js +1 -1
- package/lib/module/chip/Chip.js +10 -1
- package/lib/module/chip/Chip.js.map +1 -1
- package/lib/module/chip/shared.js +2 -2
- package/lib/module/motion/use-eased-values.js +13 -3
- package/lib/module/motion/use-eased-values.js.map +1 -1
- package/lib/module/stay-filters/CountFilter.js +1 -1
- package/lib/module/stay-filters/FilterChip.js +1 -1
- package/lib/module/stay-filters/ToggleChipGroup.js +1 -1
- package/lib/typescript/commonjs/chip/Chip.d.ts.map +1 -1
- package/lib/typescript/commonjs/chip/shared.d.ts +1 -1
- package/lib/typescript/commonjs/chip/types.d.ts +1 -1
- package/lib/typescript/commonjs/motion/use-eased-values.d.ts +8 -0
- package/lib/typescript/commonjs/motion/use-eased-values.d.ts.map +1 -1
- package/lib/typescript/commonjs/stay-filters/CountFilter.d.ts +1 -1
- package/lib/typescript/commonjs/stay-filters/ToggleChipGroup.d.ts +1 -1
- package/lib/typescript/module/chip/Chip.d.ts.map +1 -1
- package/lib/typescript/module/chip/shared.d.ts +1 -1
- package/lib/typescript/module/chip/types.d.ts +1 -1
- package/lib/typescript/module/motion/use-eased-values.d.ts +8 -0
- package/lib/typescript/module/motion/use-eased-values.d.ts.map +1 -1
- package/lib/typescript/module/stay-filters/CountFilter.d.ts +1 -1
- package/lib/typescript/module/stay-filters/ToggleChipGroup.d.ts +1 -1
- package/package.json +1 -1
- package/src/__tests__/support/public-part-classifications.json +211 -29
- package/src/chip/Chip.tsx +3 -1
- package/src/chip/shared.ts +2 -2
- package/src/chip/types.ts +1 -1
- package/src/motion/use-eased-values.ts +13 -3
- package/src/stay-filters/CountFilter.tsx +1 -1
- package/src/stay-filters/FilterChip.tsx +1 -1
- package/src/stay-filters/ToggleChipGroup.tsx +1 -1
|
@@ -14,6 +14,33 @@
|
|
|
14
14
|
"src/property-insights/EnergyBadge.tsx#EnergyBadge"
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
|
+
"concentric-geometry": {
|
|
18
|
+
"status": "independent-scale",
|
|
19
|
+
"reason": "ConcentricView owns rounded-corner geometry derived from radius, padding, border and margin; it has no Bloom control-size prop. It renders children inside its geometry context without replacing BloomScope, so child controls keep the nearest scope and explicit size precedence.",
|
|
20
|
+
"evidence": [
|
|
21
|
+
"src/concentric/ConcentricView.tsx",
|
|
22
|
+
"docs/concentric.mdx",
|
|
23
|
+
"src/__tests__/ConcentricViewPublicPartScope.test.tsx",
|
|
24
|
+
"src/__tests__/ConcentricViewPublicPartScope.web.test.tsx"
|
|
25
|
+
],
|
|
26
|
+
"verification": "native renderer and DOM web verify default md, nearest xs/lg, nested lg over xs, explicit md over xs through nested ConcentricView wrappers; fixed radius 32 remains geometry-owned. ConcentricView owns no portal or submenu. Physical-device geometry remains unverified",
|
|
27
|
+
"parts": ["src/concentric/ConcentricView.tsx#ConcentricView"]
|
|
28
|
+
},
|
|
29
|
+
"connection-status-toasts": {
|
|
30
|
+
"status": "delegated",
|
|
31
|
+
"reason": "ConnectionStatusToasts renders null and sends only messages, intent and duration to Bloom's shared Toast engine. ToastHost owns the visible notification and its size contract; this reporter has no UI whose size scope it could consume.",
|
|
32
|
+
"evidence": [
|
|
33
|
+
"src/connection-status/shared.ts",
|
|
34
|
+
"src/toast/Toaster.tsx",
|
|
35
|
+
"src/toast/ToastHost.tsx",
|
|
36
|
+
"src/toast/ToastHost.native.tsx",
|
|
37
|
+
"docs/connection-status.mdx",
|
|
38
|
+
"src/__tests__/connection-status-netinfo.test.tsx",
|
|
39
|
+
"src/__tests__/ConnectionStatusToastsPublicPartScope.web.test.tsx"
|
|
40
|
+
],
|
|
41
|
+
"verification": "native renderer and DOM web prove the reporter emits no view under xs scope and delegates an offline message without a size value; ToastHost owns the rendered surface. Platform-specific network signals remain tested at their respective boundaries",
|
|
42
|
+
"parts": ["src/connection-status/ConnectionStatusToasts.tsx#ConnectionStatusToasts"]
|
|
43
|
+
},
|
|
17
44
|
"code-document": {
|
|
18
45
|
"status": "independent-scale",
|
|
19
46
|
"reason": "CodeLines size selects code typography/line-number metrics (sm 11/18, md 13/23), not chrome or touch targets. CodeBlock passes its content size deliberately; surrounding control scope must not silently rewrite source-code reading density.",
|
|
@@ -744,6 +771,21 @@
|
|
|
744
771
|
"src/text-field/TextField.tsx#TextFieldInput"
|
|
745
772
|
]
|
|
746
773
|
},
|
|
774
|
+
"connection-dots-art": {
|
|
775
|
+
"status": "independent-scale",
|
|
776
|
+
"reason": "ConnectionDots is a relationship illustration, not a control. dotSize and dotCount are explicit artwork dimensions, so the row and dots do not consume BloomScope control size. The left/right endpoints are rendered as supplied and preserve caller and nested child-control scopes.",
|
|
777
|
+
"evidence": [
|
|
778
|
+
"src/connection-dots/ConnectionDots.tsx",
|
|
779
|
+
"src/connection-dots/ConnectionDots.web.tsx",
|
|
780
|
+
"src/connection-dots/ConnectionDotsBase.tsx",
|
|
781
|
+
"src/connection-dots/types.ts",
|
|
782
|
+
"docs/connection-dots.mdx",
|
|
783
|
+
"src/__tests__/ConnectionDotsPublicPartScope.test.tsx",
|
|
784
|
+
"src/__tests__/ConnectionDotsPublicPartScope.web.test.tsx"
|
|
785
|
+
],
|
|
786
|
+
"verification": "Native-renderer and DOM web checks verify default md endpoints, inherited xs, nested lg, explicit child size, and independent dot diameter/count. This family does not own portals or submenus; physical-device geometry remains unverified.",
|
|
787
|
+
"parts": ["src/connection-dots/ConnectionDots.tsx#ConnectionDots"]
|
|
788
|
+
},
|
|
747
789
|
"pending": {
|
|
748
790
|
"status": "pending",
|
|
749
791
|
"reason": "Public React identity and prop vocabulary are enumerated, but per-part applicability/delegation and complete runtime matrix have not yet been audited. Family hook imports and transitive reachability grant no conformance.",
|
|
@@ -751,7 +793,6 @@
|
|
|
751
793
|
"verification": "pending; not a passing adoption verdict",
|
|
752
794
|
"parts": [
|
|
753
795
|
"src/activity-feed/ActivityFeed.tsx#ActivityFeed",
|
|
754
|
-
"src/activity-heatmap/ActivityHeatmap.tsx#ActivityHeatmap",
|
|
755
796
|
"src/agent-avatar/AgentAvatar.tsx#AgentAvatar",
|
|
756
797
|
"src/agent-avatar/AgentAvatarProvider.tsx#AgentAvatarProvider",
|
|
757
798
|
"src/agent-chat/AgentChat.tsx#AgentChat",
|
|
@@ -801,7 +842,6 @@
|
|
|
801
842
|
"src/alert-dialog/index.ts#AlertDialog",
|
|
802
843
|
"src/ambient-photo/AmbientPhoto.tsx#AmbientPhoto",
|
|
803
844
|
"src/animated-check/AnimatedCheck.tsx#AnimatedCheck",
|
|
804
|
-
"src/announcement/Announcement.tsx#Announcement",
|
|
805
845
|
"src/app-shell/AppShellHeader.tsx#AppShellHeader",
|
|
806
846
|
"src/app-shell/AppShellMenuButton.tsx#AppShellMenuButton",
|
|
807
847
|
"src/app-shell/AppShellPanelVisibility.tsx#AppShellPanelVisibility",
|
|
@@ -817,9 +857,7 @@
|
|
|
817
857
|
"src/avatar-flight/AvatarAnchor.tsx#AvatarAnchor",
|
|
818
858
|
"src/avatar-flight/AvatarFlightLayer.tsx#AvatarFlightLayer",
|
|
819
859
|
"src/avatar-group/AvatarGroup.tsx#AvatarGroup",
|
|
820
|
-
"src/avatar/Avatar.tsx#Avatar",
|
|
821
860
|
"src/avatar/context.ts#AvatarPlaceholderProvider",
|
|
822
|
-
"src/badge/Badge.tsx#Badge",
|
|
823
861
|
"src/booking/BookingBar.tsx#BookingBar",
|
|
824
862
|
"src/booking/BookingCard.tsx#BookingCard",
|
|
825
863
|
"src/booking/PriceBreakdown.tsx#PriceBreakdown",
|
|
@@ -958,7 +996,6 @@
|
|
|
958
996
|
"src/checkout-summary/CheckoutSummary.tsx#CheckoutSummary",
|
|
959
997
|
"src/checkout-summary/CheckoutSummaryRow.tsx#CheckoutSummaryRow",
|
|
960
998
|
"src/chip/CappedChipRow.tsx#CappedChipRow",
|
|
961
|
-
"src/chip/Chip.tsx#Chip",
|
|
962
999
|
"src/chip/ChipRow.tsx#ChipRow",
|
|
963
1000
|
"src/choice-list/ChoiceList.tsx#ChoiceList",
|
|
964
1001
|
"src/code/Code.tsx#Code",
|
|
@@ -974,11 +1011,6 @@
|
|
|
974
1011
|
"src/composer-panel/ComposerPill.tsx#ComposerPill",
|
|
975
1012
|
"src/composer-panel/ComposerStatusBar.tsx#ComposerStatusBar",
|
|
976
1013
|
"src/composer-panel/ModelPicker.tsx#ModelPicker",
|
|
977
|
-
"src/composition-bar/CompositionBar.tsx#CompositionBar",
|
|
978
|
-
"src/concentric/ConcentricView.tsx#ConcentricView",
|
|
979
|
-
"src/connection-dots/ConnectionDots.tsx#ConnectionDots",
|
|
980
|
-
"src/connection-status/ConnectionStatusToasts.tsx#ConnectionStatusToasts",
|
|
981
|
-
"src/contact-card/ContactProfileCard.tsx#ContactProfileCard",
|
|
982
1014
|
"src/content-panel/ContentPanel.tsx#ContentPanel",
|
|
983
1015
|
"src/context-menu/ContextMenu.tsx#ContextMenu",
|
|
984
1016
|
"src/context-menu/ContextMenu.tsx#ContextMenuCheckboxItem",
|
|
@@ -1030,7 +1062,6 @@
|
|
|
1030
1062
|
"src/directions/DirectionsSteps.tsx#DirectionsSteps",
|
|
1031
1063
|
"src/directions/DirectionsSummary.tsx#DirectionsSummary",
|
|
1032
1064
|
"src/directions/TransitLineBadge.tsx#TransitLineBadge",
|
|
1033
|
-
"src/divider/Divider.tsx#Divider",
|
|
1034
1065
|
"src/drop-zone/DropZone.tsx#DropZone",
|
|
1035
1066
|
"src/dropdown-menu/DropdownMenu.tsx#DropdownMenu",
|
|
1036
1067
|
"src/dropdown-menu/DropdownMenu.tsx#DropdownMenuCheckboxItem",
|
|
@@ -1050,7 +1081,6 @@
|
|
|
1050
1081
|
"src/earnings/EarningsBreakdown.tsx#EarningsBreakdown",
|
|
1051
1082
|
"src/earnings/EarningsPayoutRow.tsx#EarningsPayoutRow",
|
|
1052
1083
|
"src/earnings/EarningsSummary.tsx#EarningsSummary",
|
|
1053
|
-
"src/empty-state/EmptyState.tsx#EmptyState",
|
|
1054
1084
|
"src/engagement-bar/EngagementAction.tsx#EngagementAction",
|
|
1055
1085
|
"src/engagement-bar/EngagementBar.tsx#EngagementBar",
|
|
1056
1086
|
"src/engagement-bar/EngagementGroup.tsx#EngagementGroup",
|
|
@@ -1088,7 +1118,6 @@
|
|
|
1088
1118
|
"src/hover-card/HoverCard.tsx#HoverCard",
|
|
1089
1119
|
"src/hover-card/HoverCard.tsx#HoverCardContent",
|
|
1090
1120
|
"src/hover-card/HoverCard.tsx#HoverCardTrigger",
|
|
1091
|
-
"src/icon-circle/IconCircle.tsx#IconCircle",
|
|
1092
1121
|
"src/image-resolver/context.ts#ImageResolverProvider",
|
|
1093
1122
|
"src/important-alerts-card/ImportantAlertsCard.tsx#ImportantAlertsCard",
|
|
1094
1123
|
"src/input-group/InputGroup.tsx#InputGroup",
|
|
@@ -1553,22 +1582,6 @@
|
|
|
1553
1582
|
"src/track-list/TrackListHeader.tsx#TrackListHeader",
|
|
1554
1583
|
"src/track-list/TrackRow.tsx#TrackRow",
|
|
1555
1584
|
"src/track-list/TrackRowSkeleton.tsx#TrackRowSkeleton",
|
|
1556
|
-
"src/typography/Typography.tsx#Blockquote",
|
|
1557
|
-
"src/typography/Typography.tsx#H1",
|
|
1558
|
-
"src/typography/Typography.tsx#H2",
|
|
1559
|
-
"src/typography/Typography.tsx#H3",
|
|
1560
|
-
"src/typography/Typography.tsx#H4",
|
|
1561
|
-
"src/typography/Typography.tsx#H5",
|
|
1562
|
-
"src/typography/Typography.tsx#H6",
|
|
1563
|
-
"src/typography/Typography.tsx#Large",
|
|
1564
|
-
"src/typography/Typography.tsx#Lead",
|
|
1565
|
-
"src/typography/Typography.tsx#Muted",
|
|
1566
|
-
"src/typography/Typography.tsx#P",
|
|
1567
|
-
"src/typography/Typography.tsx#Small",
|
|
1568
|
-
"src/typography/Typography.tsx#Subtitle",
|
|
1569
|
-
"src/typography/Typography.tsx#Text",
|
|
1570
|
-
"src/typography/Typography.tsx#Title",
|
|
1571
|
-
"src/typography/TypographyScope.tsx#TypographyScope",
|
|
1572
1585
|
"src/usage-card/UsageCard.tsx#UsageCard",
|
|
1573
1586
|
"src/user-hover-card/UserHoverCard.tsx#UserHoverCard",
|
|
1574
1587
|
"src/vehicle-picker/VehiclePicker.tsx#VehiclePicker",
|
|
@@ -1800,5 +1813,174 @@
|
|
|
1800
1813
|
],
|
|
1801
1814
|
"verification": "Native renderer and DOM web measure the default 36px diameter unchanged under xs, explicit 40px under xs, and explicit 28px under lg. Glyph ratio and explicit glyph size are covered by GlyphButton.test.tsx; device-rendered hit fit and visual balance remain unverified",
|
|
1802
1815
|
"parts": ["src/button/GlyphButton.tsx#GlyphButton"]
|
|
1816
|
+
},
|
|
1817
|
+
"activity-heatmap-hit-target": {
|
|
1818
|
+
"status": "adaptation",
|
|
1819
|
+
"reason": "ActivityHeatmap's cellSize is chart-cell geometry, not Bloom control size. In interactive mode the pressable target equals each cell; the 12px default is a real touch-target gap, and expanding adjacent hit regions would overlap across the dense 3px grid gaps. Preserve the finding until a non-overlapping touch interaction is designed.",
|
|
1820
|
+
"evidence": [
|
|
1821
|
+
"src/activity-heatmap/ActivityHeatmap.tsx",
|
|
1822
|
+
"src/activity-heatmap/types.ts",
|
|
1823
|
+
"docs/activity-heatmap.mdx",
|
|
1824
|
+
"src/__tests__/ActivityHeatmapPublicPartScope.test.tsx",
|
|
1825
|
+
"src/__tests__/ActivityHeatmapPublicPartScope.web.test.tsx"
|
|
1826
|
+
],
|
|
1827
|
+
"verification": "native renderer and DOM web confirm interactive 12px cells and explicit 20px cells stay chart-sized under xs/lg/nested control scopes; activation and date/count payload work. Physical-device hit testing remains unverified; the 12px touch-target gap is unresolved",
|
|
1828
|
+
"parts": ["src/activity-heatmap/ActivityHeatmap.tsx#ActivityHeatmap"]
|
|
1829
|
+
},
|
|
1830
|
+
"composition-chart-target": {
|
|
1831
|
+
"status": "independent-scale",
|
|
1832
|
+
"reason": "CompositionBar has no Bloom control-size prop. Each category is an interactive chart segment with a fixed 44px touch height; shrinking that role-specific target under a compact control scope would reduce touch safety without expressing chart density.",
|
|
1833
|
+
"evidence": [
|
|
1834
|
+
"src/composition-bar/CompositionBar.tsx",
|
|
1835
|
+
"docs/composition-bar.mdx",
|
|
1836
|
+
"src/__tests__/CompositionBarPublicPartScope.test.tsx",
|
|
1837
|
+
"src/__tests__/CompositionBarPublicPartScope.web.test.tsx"
|
|
1838
|
+
],
|
|
1839
|
+
"verification": "native renderer and DOM web verify segment role and 44px hit height at default md, nearest xs/lg, and nested lg over xs. The component owns no explicit size prop, portal or submenu; physical-device hit testing remains unverified",
|
|
1840
|
+
"parts": ["src/composition-bar/CompositionBar.tsx#CompositionBar"]
|
|
1841
|
+
},
|
|
1842
|
+
"contact-card-controls": {
|
|
1843
|
+
"status": "delegated",
|
|
1844
|
+
"reason": "ContactProfileCard has no Bloom control-size prop. Its channel actions are Buttons with explicit sm size, its chips use explicit md, and its separate density prop controls card layout; the caller-owned actions slot is passed through unchanged and keeps the caller's BloomScope.",
|
|
1845
|
+
"evidence": [
|
|
1846
|
+
"src/contact-card/ContactProfileCard.tsx",
|
|
1847
|
+
"src/contact-card/types.ts",
|
|
1848
|
+
"docs/contact-card.mdx",
|
|
1849
|
+
"src/__tests__/ContactProfileCardPublicPartScope.test.tsx",
|
|
1850
|
+
"src/__tests__/ContactProfileCardPublicPartScope.web.test.tsx"
|
|
1851
|
+
],
|
|
1852
|
+
"verification": "native renderer and DOM web verify channel Button size remains sm under xs/lg, the declared 6px hitSlop remains present, and caller action sizes follow default md, nearest xs/lg, nested lg over xs, and explicit md over xs. Physical-device hit testing remains unverified",
|
|
1853
|
+
"parts": ["src/contact-card/ContactProfileCard.tsx#ContactProfileCard"]
|
|
1854
|
+
},
|
|
1855
|
+
"divider-role": {
|
|
1856
|
+
"status": "independent-scale",
|
|
1857
|
+
"reason": "Divider has no Bloom control-size prop. Its thickness and variant determine separator geometry; caller-provided children stay under the caller's BloomScope and controls resolve size normally.",
|
|
1858
|
+
"evidence": [
|
|
1859
|
+
"src/divider/Divider.tsx",
|
|
1860
|
+
"src/divider/types.ts",
|
|
1861
|
+
"docs/divider.mdx",
|
|
1862
|
+
"src/__tests__/DividerPublicPartScope.test.tsx",
|
|
1863
|
+
"src/__tests__/DividerPublicPartScope.web.test.tsx"
|
|
1864
|
+
],
|
|
1865
|
+
"verification": "Native renderer and DOM web verify a 2px explicit separator weight remains stable at default, xs, lg and nested scopes; a child Button resolves default md, inherited xs/lg, nested lg over xs and explicit md over xs. Divider owns no portal or submenu.",
|
|
1866
|
+
"parts": ["src/divider/Divider.tsx#Divider"]
|
|
1867
|
+
},
|
|
1868
|
+
"announcement-controls": {
|
|
1869
|
+
"status": "independent-scale",
|
|
1870
|
+
"reason": "Announcement has no Bloom control-size prop. The CTA uses an explicit sm Button, while the dismiss control uses an explicit xs CloseButton; its own control recipe stays independent of surrounding scope.",
|
|
1871
|
+
"evidence": [
|
|
1872
|
+
"src/announcement/Announcement.tsx",
|
|
1873
|
+
"src/announcement/types.ts",
|
|
1874
|
+
"src/button/CloseButton.tsx",
|
|
1875
|
+
"src/button/shared.ts",
|
|
1876
|
+
"docs/announcement.mdx",
|
|
1877
|
+
"src/__tests__/AnnouncementPublicPartScope.test.tsx",
|
|
1878
|
+
"src/__tests__/AnnouncementPublicPartScope.web.test.tsx"
|
|
1879
|
+
],
|
|
1880
|
+
"verification": "Native renderer and DOM web confirm the CTA remains 32px and the xs close box remains 20px under default, xs, lg and nested scopes. Native additionally verifies the close glyph is 10.8px and its declared 10px hitSlop on each side.",
|
|
1881
|
+
"parts": ["src/announcement/Announcement.tsx#Announcement"]
|
|
1882
|
+
},
|
|
1883
|
+
"empty-state-owned-controls": {
|
|
1884
|
+
"status": "independent-scale",
|
|
1885
|
+
"reason": "EmptyState has no Bloom control-size prop. Its variant selects the fixed sizes of the family-owned action Buttons and suggestion Chips; caller-provided children remain under the caller's BloomScope and resolve their own control size.",
|
|
1886
|
+
"evidence": [
|
|
1887
|
+
"src/empty-state/EmptyState.tsx",
|
|
1888
|
+
"src/empty-state/constants.ts",
|
|
1889
|
+
"src/empty-state/types.ts",
|
|
1890
|
+
"docs/empty-state.mdx",
|
|
1891
|
+
"src/__tests__/EmptyStatePublicPartScope.test.tsx",
|
|
1892
|
+
"src/__tests__/EmptyStatePublicPartScope.web.test.tsx"
|
|
1893
|
+
],
|
|
1894
|
+
"verification": "Native renderer and DOM web verify family-owned action Buttons at comfortable md (36px) and compact sm (32px), and suggestion Chips at 24px, unchanged under default, xs, lg and nested scopes. The caller-owned child Button resolves default md, nearest xs/lg, nested lg over xs, and explicit md over xs.",
|
|
1895
|
+
"parts": ["src/empty-state/EmptyState.tsx#EmptyState"]
|
|
1896
|
+
},
|
|
1897
|
+
"semantic-typography": {
|
|
1898
|
+
"status": "independent-scale",
|
|
1899
|
+
"reason": "Semantic typography owns reading roles and the TypographyScope type ramp, not Bloom control size. Text/Span, headings, prose helpers and Blockquote keep their type recipes under BloomScope; TypographyScope selects its separate default or desktop text scale.",
|
|
1900
|
+
"evidence": [
|
|
1901
|
+
"src/typography/Typography.tsx",
|
|
1902
|
+
"src/typography/TypographyScope.tsx",
|
|
1903
|
+
"src/typography/scale.ts",
|
|
1904
|
+
"src/typography/desktop-scale.ts",
|
|
1905
|
+
"docs/typography.mdx",
|
|
1906
|
+
"src/__tests__/TypographyPublicPartScope.test.tsx",
|
|
1907
|
+
"src/__tests__/TypographyPublicPartScope.web.test.tsx"
|
|
1908
|
+
],
|
|
1909
|
+
"verification": "Native renderer and DOM web verify font size, line height, weight and tracking for Text (including its Span alias), H1–H6, Title, Subtitle, P, Lead, Large, Small and Muted, plus Blockquote spacing, remain stable under default, xs, lg and nested control scopes. An explicit desktop TypographyScope scale remains effective independently of BloomScope.",
|
|
1910
|
+
"parts": [
|
|
1911
|
+
"src/typography/Typography.tsx#Blockquote",
|
|
1912
|
+
"src/typography/Typography.tsx#H1",
|
|
1913
|
+
"src/typography/Typography.tsx#H2",
|
|
1914
|
+
"src/typography/Typography.tsx#H3",
|
|
1915
|
+
"src/typography/Typography.tsx#H4",
|
|
1916
|
+
"src/typography/Typography.tsx#H5",
|
|
1917
|
+
"src/typography/Typography.tsx#H6",
|
|
1918
|
+
"src/typography/Typography.tsx#Large",
|
|
1919
|
+
"src/typography/Typography.tsx#Lead",
|
|
1920
|
+
"src/typography/Typography.tsx#Muted",
|
|
1921
|
+
"src/typography/Typography.tsx#P",
|
|
1922
|
+
"src/typography/Typography.tsx#Small",
|
|
1923
|
+
"src/typography/Typography.tsx#Subtitle",
|
|
1924
|
+
"src/typography/Typography.tsx#Text",
|
|
1925
|
+
"src/typography/Typography.tsx#Title",
|
|
1926
|
+
"src/typography/TypographyScope.tsx#TypographyScope"
|
|
1927
|
+
]
|
|
1928
|
+
},
|
|
1929
|
+
"badge-control-size": {
|
|
1930
|
+
"status": "applicable",
|
|
1931
|
+
"reason": "Badge owns counter-size aliases that follow BloomScope and word-specific label rungs that remain explicit. Explicit size wins; the two families keep their distinct geometry and typography recipes.",
|
|
1932
|
+
"evidence": [
|
|
1933
|
+
"src/badge/Badge.tsx",
|
|
1934
|
+
"src/badge/shared.ts",
|
|
1935
|
+
"src/badge/types.ts",
|
|
1936
|
+
"docs/badge.mdx",
|
|
1937
|
+
"src/__tests__/BadgeChipPublicPartScope.test.tsx",
|
|
1938
|
+
"src/__tests__/BadgeChipPublicPartScope.web.test.tsx"
|
|
1939
|
+
],
|
|
1940
|
+
"verification": "Native renderer and DOM web verify default md, inherited xs/lg, nested lg over xs, explicit md over xs, and the explicit label-medium rung under a surrounding lg scope. Physical-device label fit and hit testing remain unverified.",
|
|
1941
|
+
"parts": ["src/badge/Badge.tsx#Badge"]
|
|
1942
|
+
},
|
|
1943
|
+
"chip-control-size": {
|
|
1944
|
+
"status": "applicable",
|
|
1945
|
+
"reason": "Chip owns control-size aliases xs/sm/md/lg that follow BloomScope, plus explicit xl filter/segment and 2xl touch-target rungs. Explicit size takes precedence; the 2xl rung is 44px tall with 2dp vertical native hit slop reaching 48dp without side overlap.",
|
|
1946
|
+
"evidence": [
|
|
1947
|
+
"src/chip/Chip.tsx",
|
|
1948
|
+
"src/chip/shared.ts",
|
|
1949
|
+
"src/chip/types.ts",
|
|
1950
|
+
"docs/chip.mdx",
|
|
1951
|
+
"src/__tests__/BadgeChipPublicPartScope.test.tsx",
|
|
1952
|
+
"src/__tests__/BadgeChipPublicPartScope.web.test.tsx"
|
|
1953
|
+
],
|
|
1954
|
+
"verification": "Native renderer and DOM web verify default md, inherited xs/lg, nested lg over xs, explicit md over xs, and the explicit 2xl 44px visual target. A native test confirms 2dp vertical hit slop (48dp total) with zero horizontal expansion; the dedicated Pixel 8a fixture probe records live taps just outside both vertical edges. Other sizes and explicit styles remain outside this target claim.",
|
|
1955
|
+
"parts": ["src/chip/Chip.tsx#Chip"]
|
|
1956
|
+
},
|
|
1957
|
+
"avatar-control-size": {
|
|
1958
|
+
"status": "applicable",
|
|
1959
|
+
"reason": "Avatar maps an inherited BloomScope size alias to its visual identity diameter when its own size is omitted; explicit named rungs and numeric diameters override the scope. The default without a size scope remains 40dp.",
|
|
1960
|
+
"evidence": [
|
|
1961
|
+
"src/avatar/Avatar.tsx",
|
|
1962
|
+
"src/avatar/initials.ts",
|
|
1963
|
+
"src/avatar/types.ts",
|
|
1964
|
+
"docs/avatar.mdx",
|
|
1965
|
+
"src/__tests__/AvatarPublicPartScope.test.tsx",
|
|
1966
|
+
"src/__tests__/AvatarPublicPartScope.web.test.tsx"
|
|
1967
|
+
],
|
|
1968
|
+
"verification": "Native renderer and DOM web verify the unscoped 40px default, inherited xs/sm/md/lg rungs, nested lg over xs, explicit md over xs, and explicit 48px diameter over lg. Portal, device proportions, initials legibility and touch fit are outside this direct scope fixture.",
|
|
1969
|
+
"parts": ["src/avatar/Avatar.tsx#Avatar"]
|
|
1970
|
+
},
|
|
1971
|
+
"icon-circle-geometry": {
|
|
1972
|
+
"status": "independent-scale",
|
|
1973
|
+
"reason": "IconCircle uses the icon-token size vocabulary to select a decorative disc and glyph box; it does not consume BloomScope control size. BloomIconComponent is its public glyph contract and receives the resolved width, height and fill.",
|
|
1974
|
+
"evidence": [
|
|
1975
|
+
"src/icon-circle/IconCircle.tsx",
|
|
1976
|
+
"src/icon-circle/types.ts",
|
|
1977
|
+
"src/icons/icon-component.ts",
|
|
1978
|
+
"docs/icon-circle.mdx",
|
|
1979
|
+
"src/__tests__/IconCircleRadioIndicator.test.tsx",
|
|
1980
|
+
"src/__tests__/IconCirclePublicPartScope.test.tsx",
|
|
1981
|
+
"src/__tests__/IconCirclePublicPartScope.web.test.tsx"
|
|
1982
|
+
],
|
|
1983
|
+
"verification": "Native renderer and DOM web verify the default xl disc/glyph (64/28px), explicit lg geometry (52/24px), and stable geometry under xs, lg and nested BloomScope. Native type-level fixtures use BloomIconComponent directly. Physical-device proportions remain unverified.",
|
|
1984
|
+
"parts": ["src/icon-circle/IconCircle.tsx#IconCircle"]
|
|
1803
1985
|
}
|
|
1804
1986
|
}
|
package/src/chip/Chip.tsx
CHANGED
|
@@ -218,6 +218,7 @@ const ChipComponent = forwardRef<ComponentRef<typeof View>, ChipProps>(function
|
|
|
218
218
|
? {}
|
|
219
219
|
: {
|
|
220
220
|
height: geometry.height,
|
|
221
|
+
...(size === '2xl' ? { minHeight: geometry.height } : null),
|
|
221
222
|
borderRadius: borderRadius.full,
|
|
222
223
|
paddingHorizontal: geometry.paddingHorizontal,
|
|
223
224
|
backgroundColor: 'transparent',
|
|
@@ -243,7 +244,7 @@ const ChipComponent = forwardRef<ComponentRef<typeof View>, ChipProps>(function
|
|
|
243
244
|
// cannot know; native has no such style key and ignores it.
|
|
244
245
|
'--bloom-chip-ring': ring,
|
|
245
246
|
}),
|
|
246
|
-
[className, geometry, paint, ring, dimContent],
|
|
247
|
+
[className, geometry, paint, ring, dimContent, size],
|
|
247
248
|
);
|
|
248
249
|
|
|
249
250
|
const labelStyle = useMemo(
|
|
@@ -439,6 +440,7 @@ const ChipComponent = forwardRef<ComponentRef<typeof View>, ChipProps>(function
|
|
|
439
440
|
}
|
|
440
441
|
onPressIn={onPressIn}
|
|
441
442
|
onPressOut={onPressOut}
|
|
443
|
+
hitSlop={size === '2xl' ? { top: 2, bottom: 2, left: 0, right: 0 } : undefined}
|
|
442
444
|
{...hoverHandlers}
|
|
443
445
|
disabled={disabled}
|
|
444
446
|
accessibilityLabel={accessibilityLabel}
|
package/src/chip/shared.ts
CHANGED
|
@@ -15,7 +15,7 @@ import type { ChipHue, ChipSize, ChipVariant } from './types';
|
|
|
15
15
|
* medium 24 6 4 16 body-medium ← default
|
|
16
16
|
* large 28 6 4 16 body-medium
|
|
17
17
|
* xl 32 12 8 16 body-medium
|
|
18
|
-
* 2xl
|
|
18
|
+
* 2xl 44 16 8 18 body-medium
|
|
19
19
|
*
|
|
20
20
|
* The scale used to stop at `large`, which is why FIVE families grew their own
|
|
21
21
|
* pill rather than use this one: 28 tall with 6px sides is a TAG, and a filter
|
|
@@ -52,7 +52,7 @@ export const CHIP_GEOMETRY: Readonly<Record<ChipSize, ChipGeometry>> = {
|
|
|
52
52
|
md: rung(24, 'body-medium', 6, 4),
|
|
53
53
|
lg: rung(28, 'body-medium', 6, 4),
|
|
54
54
|
xl: rung(32, 'body-medium', 12, 8),
|
|
55
|
-
'2xl': rung(
|
|
55
|
+
'2xl': rung(44, 'body-medium', 16, 8, 48, 18),
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
export interface ChipPaint {
|
package/src/chip/types.ts
CHANGED
|
@@ -10,7 +10,7 @@ import type {
|
|
|
10
10
|
import type { AccentFill, AccentTone } from '../theme/accent-colors';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* 24 / 24 / 28 / 32 /
|
|
13
|
+
* 24 / 24 / 28 / 32 / 44 tall. `xl` and `2xl` are the filter rungs: the scale
|
|
14
14
|
* used to stop at 28, which is why five families drew their own pill. The table
|
|
15
15
|
* is in `shared.ts`.
|
|
16
16
|
*/
|
|
@@ -13,6 +13,14 @@ export const TAILWIND_EASE_OUT = Easing.bezier(0, 0, 0.2, 1);
|
|
|
13
13
|
* `transition-[stroke-opacity] duration-200 ease-out`); a change mid-flight
|
|
14
14
|
* restarts from the in-between values, as a CSS transition does. The first
|
|
15
15
|
* render, a change of length and reduced motion all snap.
|
|
16
|
+
*
|
|
17
|
+
* Its clock starts at its first frame (the first animation frame's
|
|
18
|
+
* timestamp), as a web animation's start time resolves at the first frame
|
|
19
|
+
* after it is played and Core Animation's begins as its transaction is shown:
|
|
20
|
+
* never when the change rendered. A loaded machine can run that render long
|
|
21
|
+
* before any frame (JavaScript preempted, the frame clock late), and a clock
|
|
22
|
+
* started then had spent the duration before its first frame was drawn: a
|
|
23
|
+
* menu bar's 150 ms crossfade showed both menus in one frame, or none.
|
|
16
24
|
*/
|
|
17
25
|
export function useEasedValues(
|
|
18
26
|
targets: readonly number[],
|
|
@@ -43,10 +51,12 @@ export function useEasedValues(
|
|
|
43
51
|
if (shownRef.current !== targets) snap();
|
|
44
52
|
return;
|
|
45
53
|
}
|
|
46
|
-
|
|
54
|
+
let start: number | null = null;
|
|
47
55
|
let raf = 0;
|
|
48
|
-
const tick = () => {
|
|
49
|
-
const
|
|
56
|
+
const tick = (frame?: number) => {
|
|
57
|
+
const now = typeof frame === 'number' ? frame : Date.now();
|
|
58
|
+
start ??= now;
|
|
59
|
+
const t = Math.min(1, (now - start) / durationMs);
|
|
50
60
|
const e = easing(t);
|
|
51
61
|
const next = targets.map((to, i) => from[i]! + (to - from[i]!) * e);
|
|
52
62
|
shownRef.current = next;
|
|
@@ -14,7 +14,7 @@ import type { CountFilterProps } from './types';
|
|
|
14
14
|
* `min`..`max`, the last reading `8+`.
|
|
15
15
|
*
|
|
16
16
|
* title body-regular, text-primary, 16 above the pills
|
|
17
|
-
* pills the filter pill (
|
|
17
|
+
* pills the filter pill (44 tall, full pill), 8 apart; the selected one is
|
|
18
18
|
* inverted. One row that scrolls sideways when it does not fit, so the
|
|
19
19
|
* counts stay in reading order on a narrow screen instead of wrapping.
|
|
20
20
|
*
|
|
@@ -16,7 +16,7 @@ import type { FilterIconComponent } from './types';
|
|
|
16
16
|
* selection promoted to the brand tone. Both of those are now `Chip`'s (the
|
|
17
17
|
* rung table and the `inverted` recipe are in `chip/shared.ts`):
|
|
18
18
|
*
|
|
19
|
-
* geometry
|
|
19
|
+
* geometry 44 tall, full pill, 1px border, px 16, 8 between icon (18) and
|
|
20
20
|
* label; minWidth 48 so "1" is not a dot
|
|
21
21
|
* rest transparent fill, border neutral-200 (dark neutral-700), text
|
|
22
22
|
* hover border text (web pointer only)
|
|
@@ -5,7 +5,7 @@ import { FilterChip } from './FilterChip';
|
|
|
5
5
|
import type { ToggleChipGroupProps } from './types';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Multi-select filter pills, wrapped: each option is the filter pill (
|
|
8
|
+
* Multi-select filter pills, wrapped: each option is the filter pill (44 tall,
|
|
9
9
|
* full pill, an optional 18px icon before the label), 8 apart in both
|
|
10
10
|
* directions, the selected ones inverted.
|
|
11
11
|
*
|