@aramiworks/design-app 1.3.0 → 1.4.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/manifest.json CHANGED
@@ -67,6 +67,7 @@
67
67
  ],
68
68
  "figmaNodeId": "45:178",
69
69
  "storyId": "organisms-amountinput--default",
70
+ "deprecated": "Use TextField with kind amount (same props). Removed in the next major release.",
70
71
  "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=45-178"
71
72
  },
72
73
  {
@@ -105,6 +106,7 @@
105
106
  ],
106
107
  "figmaNodeId": "62:62",
107
108
  "storyId": "organisms-barchartcard--default",
109
+ "deprecated": "No app uses it; removed in the next major release. No replacement: if a chart is needed, propose one under the reuse-before-create rule (D72).",
108
110
  "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=62-62"
109
111
  },
110
112
  {
@@ -187,14 +189,15 @@
187
189
  {
188
190
  "name": "EmptyState",
189
191
  "layer": "organism",
190
- "description": "Empty state. `screen`: centered, with an optional large muted icon, a title, an optional description, SuggestionChips and primary and secondary calls to action. `inline`: a compact dashed card with muted text inside a section. `card`: a tinted card with an icon tile, title, description and small actions. `loading` swaps the icon for a spinner.",
192
+ "description": "Empty state. `screen`: centered, with an optional large muted icon, a title, an optional description, SuggestionChips and primary and secondary calls to action. `inline`: a compact dashed card with muted text inside a section. `card`: a tinted card with an icon tile, title, description and small actions. `loading` swaps the icon for a spinner. `error`: a compact centered alert with a destructive title, muted description, a small code line, an outlined pill primary action and a text secondary action.",
191
193
  "useWhen": [
192
194
  "A chat has no messages yet (ChatTemplate's list slot)",
193
195
  "Any list or screen with nothing to show",
194
196
  "A first-run screen that explains the app and offers the first step (primaryAction, secondaryAction)",
195
197
  "A section inside a screen has no rows yet (variant inline, in ListSection)",
196
198
  "A first-run welcome inside a dashboard with a next step (variant card)",
197
- "Something is being checked before the screen can say more, e.g. a link (loading)"
199
+ "Something is being checked before the screen can say more, e.g. a link (loading)",
200
+ "A feature or screen failed and the user can read why, see an error code, retry or leave (variant error, code)"
198
201
  ],
199
202
  "figmaNodeId": "34:75",
200
203
  "storyId": "organisms-emptystate--default",
@@ -226,6 +229,7 @@
226
229
  ],
227
230
  "figmaNodeId": "37:57",
228
231
  "storyId": "organisms-errorstate--default",
232
+ "deprecated": "Use EmptyState with variant error (message is description, action is primaryAction). Removed in the next major release.",
229
233
  "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=37-57"
230
234
  },
231
235
  {
@@ -261,9 +265,10 @@
261
265
  {
262
266
  "name": "FloatingIconButton",
263
267
  "layer": "organism",
264
- "description": "Round, bordered icon button with a shadow that floats over a canvas (background tone, 44px) or an image (card tone, 40px); the parent positions it.",
268
+ "description": "Round, bordered icon button with a shadow that floats over a canvas (background tone, 44px) or an image (card tone, 40px), or size sm: 36px on the background with a muted 18px glyph and no shadow. Optional primary count badge (capped at 99+, appended to the accessible name), a 200ms fade-in while visible turns true (nothing renders while false) and placement bottom-center; otherwise the parent positions it.",
265
269
  "useWhen": [
266
270
  "A map or camera canvas needs round controls such as recenter or layers (OverlayTemplate's actions)",
271
+ "A long list, such as a chat thread, is scrolled away from its newest item: icon chevron-down, size sm, placement bottom-center, visible, and count for new items (ChatTemplate's overlay)",
267
272
  "A back or close button floats over a full-bleed photo (DetailTemplate's onBack)"
268
273
  ],
269
274
  "figmaNodeId": "198:2299",
@@ -291,9 +296,10 @@
291
296
  {
292
297
  "name": "FooterBar",
293
298
  "layer": "organism",
294
- "description": "Sticky bottom bar with a top hairline that holds any content in a column capped at 720px and pads the bottom safe-area inset once, or a compact pinned row with 4px padding and no inset.",
299
+ "description": "Sticky bottom bar with a top hairline that holds any content, plus an optional form-level error (announced as an alert) and a full-width submit button with loading and disabled states, in a column capped at 720px (or 640px with column form) and pads the bottom safe-area inset once, or a compact pinned row with 4px padding and no inset.",
295
300
  "useWhen": [
296
301
  "A detail screen's sticky footer (DetailTemplate's footer renders it around an embedded ActionBar)",
302
+ "A form's submit action stays reachable without scrolling, with a form-level error right above it (FormTemplate's footer renders it with submit, error and column form)",
297
303
  "A list screen's pinned row under the list (ListTemplate's footer renders it compact)",
298
304
  "Bottom content that is not just buttons, such as a total next to a button (otherwise use ActionBar)"
299
305
  ],
@@ -433,19 +439,21 @@
433
439
  {
434
440
  "name": "ListSection",
435
441
  "layer": "organism",
436
- "description": "Titled group in a list: a small muted heading with an optional tinted icon and count, an optional text action on the right, an optional muted description, the group's rows (plain, or in a bordered card divided by hairlines), an optional show-more button under the rows and an optional muted footnote.",
442
+ "description": "Titled group in a list: a small muted heading with an optional tinted icon and count, an optional text action on the right, an optional muted description, the group's rows (plain, or in a bordered card divided by hairlines), an optional show-more button under the rows and an optional muted footnote. variant panel puts an 18px heading (optional muted icon and description) and the rows together in one bordered card; tone destructive turns its border, icon and heading destructive.",
437
443
  "useWhen": [
438
444
  "A list groups its rows under headings, such as months or categories (ListTemplate or DetailTemplate content)",
439
445
  "A preview of a longer list ends in a show-more action next to its heading",
440
446
  "A dashboard section shows how many items it holds and a one-line explanation (count, description)",
441
447
  "A dashboard preview with an icon heading and a show-more button under its rows (icon, moreAction)",
442
448
  "A breakdown of values in a card, e.g. a balance with a total row (variant card)",
443
- "Grouping rows, such as a balance card, that need no heading (omit title)"
449
+ "Grouping rows, such as a balance card, that need no heading (omit title)",
450
+ "Grouping related settings under a heading, such as Profile, Appearance or About (variant panel, in SettingsTemplate)",
451
+ "A danger zone with delete or reset rows (variant panel, tone destructive)"
444
452
  ],
445
453
  "slots": [
446
454
  {
447
455
  "name": "children",
448
- "description": "The section's rows: ListRow, EmptyState or SkeletonList."
456
+ "description": "The section's rows: ListRow, EmptyState or SkeletonList; in variant panel also ProfileHeader, SegmentedControl, FilterChipGroup or FormSection."
449
457
  }
450
458
  ],
451
459
  "figmaNodeId": "128:3002",
@@ -515,6 +523,7 @@
515
523
  ],
516
524
  "figmaNodeId": "62:3",
517
525
  "storyId": "organisms-metercard--default",
526
+ "deprecated": "No app uses it; removed in the next major release. Use ListSection (variant card) with ProgressBar rows.",
518
527
  "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=62-3"
519
528
  },
520
529
  {
@@ -593,7 +602,7 @@
593
602
  "useWhen": [
594
603
  "Showing progress toward a goal or through steps inline, e.g. a profile that is 60% complete",
595
604
  "Progress per star tier (pass rating)",
596
- "A single quota or limit outside a card (several meters in a card: use MeterCard)",
605
+ "A single quota or limit outside a card (several meters in a card: ProgressBar rows in a ListSection with variant card)",
597
606
  "A bar that should read as a star tier or reward (tone gold)"
598
607
  ],
599
608
  "figmaNodeId": "68:16",
@@ -610,6 +619,7 @@
610
619
  ],
611
620
  "figmaNodeId": "69:26",
612
621
  "storyId": "organisms-progressring--default",
622
+ "deprecated": "No app uses it; removed in the next major release. Use StatTile with progress for a ring next to a number, or ProgressBar.",
613
623
  "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=69-26"
614
624
  },
615
625
  {
@@ -648,6 +658,7 @@
648
658
  ],
649
659
  "figmaNodeId": "33:51",
650
660
  "storyId": "organisms-scrolltobottomfab--default",
661
+ "deprecated": "Use FloatingIconButton with icon chevron-down, size sm, placement bottom-center, visible and count (accessibilityLabel is label). Removed in the next major release.",
651
662
  "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=33-51"
652
663
  },
653
664
  {
@@ -675,6 +686,7 @@
675
686
  ],
676
687
  "figmaNodeId": "82:56",
677
688
  "storyId": "organisms-searchselect--default",
689
+ "deprecated": "Use Select with searchable (searchPlaceholder is searchable.placeholder; onQueryChange, loading, loadingLabel, emptyMessage and create move into searchable). Removed in the next major release.",
678
690
  "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=82-56"
679
691
  },
680
692
  {
@@ -694,7 +706,7 @@
694
706
  },
695
707
  {
696
708
  "name": "header",
697
- "description": "Scrolls above the first section, e.g. a SummaryCard."
709
+ "description": "Scrolls above the first section, e.g. a StatTile with variant summary."
698
710
  },
699
711
  {
700
712
  "name": "empty",
@@ -708,22 +720,26 @@
708
720
  {
709
721
  "name": "SegmentedControl",
710
722
  "layer": "organism",
711
- "description": "2-4 mutually exclusive options in one outlined row; the selected option fills with primary. Radio-group semantics.",
723
+ "description": "2-4 mutually exclusive options in one outlined row; the selected option fills with primary (radio-group semantics). variant tabs draws 2-5 underlined tabs on a hairline border instead: the selected tab has a semibold foreground label and a 2px primary underline, the others are muted, each at least 44px tall and growing from its label's width (tab-list semantics).",
712
724
  "useWhen": [
713
- "Choosing one of a few short options that fit on one line, such as Light / Dark / System"
725
+ "Choosing one of a few short options that fit on one line, such as Light / Dark / System",
726
+ "Splitting one screen into a few sibling views, such as Stats, Saved, Entries and Settings (variant tabs)",
727
+ "Not for app-level navigation (use TabBar)"
714
728
  ],
715
- "figmaNodeId": "36:30",
729
+ "figmaNodeId": "213:35",
716
730
  "storyId": "organisms-segmentedcontrol--default",
717
- "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=36-30"
731
+ "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=213-35"
718
732
  },
719
733
  {
720
734
  "name": "Select",
721
735
  "layer": "organism",
722
- "description": "Labelled field that opens a bottom sheet of options (label, optional description and icon) as radio rows; choosing one calls onChange and closes the sheet. Shows a placeholder, an inline error and a disabled state. variant chip is a compact pill trigger that fills with primary while a value other than defaultValue is chosen.",
736
+ "description": "Labelled field that opens a bottom sheet of options (label, optional description and icon) as radio rows; choosing one calls onChange and closes the sheet. searchable adds a search input to the sheet: options filter by label as the user types, or the app filters them itself (onQueryChange, e.g. an async search) with a loading state, an optional create row for a query with no exact match and an empty message; valueLabel names a chosen option that is no longer in options. Shows a placeholder, an inline error and a disabled state. variant chip is a compact pill trigger that fills with primary while a value other than defaultValue is chosen.",
723
737
  "useWhen": [
724
738
  "A form asks for one value from a short, known list, such as a category or relationship",
725
739
  "The options need a description or an icon, or are too many for a FilterChipGroup",
726
740
  "A row of compact dropdown filters above a list (variant chip, defaultValue for the unfiltered value)",
741
+ "A form picks one item from a long or server-backed list, such as a person or a place (searchable)",
742
+ "The user may need to create the item inline when the search finds nothing (searchable.create)",
727
743
  "A filter whose first option means everything, e.g. \"All\": mark it all so the chip keeps reading its placeholder"
728
744
  ],
729
745
  "figmaNodeId": "81:24",
@@ -746,6 +762,7 @@
746
762
  ],
747
763
  "figmaNodeId": "128:3659",
748
764
  "storyId": "organisms-settingssection--default",
765
+ "deprecated": "Use ListSection with variant panel (same props, tone included). Removed in the next major release.",
749
766
  "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=128-3659"
750
767
  },
751
768
  {
@@ -795,13 +812,14 @@
795
812
  {
796
813
  "name": "StatTile",
797
814
  "layer": "organism",
798
- "description": "Summary stat card: a muted label, a large value colored by tone (default, positive = primary, negative = destructive), an optional caption and icon; pressable when onPress is set. Tiles in a row share the width equally. progress adds an 88px progress ring left of the text and a 30px value, for a hero summary.",
815
+ "description": "Summary stat card: a muted label, a large value colored by tone (default, positive = primary, negative = destructive), an optional caption and icon; pressable when onPress is set. Tiles in a row share the width equally. progress adds an 88px progress ring left of the text and a 30px value, for a hero summary. variant summary is a full-width totals card on the secondary surface: label over a large value, the caption on the right and a divided row of up to three sub-stats (stats).",
799
816
  "useWhen": [
800
817
  "A dashboard or list header shows totals or counts",
801
818
  "Several numbers sit side by side (put tiles in one row)",
802
819
  "A number opens the list behind it (pass onPress)",
803
820
  "The hero of a stats screen: a share completed next to the count (pass progress)",
804
- "An end-to-end check reads the number (valueTestID)"
821
+ "An end-to-end check reads the number (valueTestID)",
822
+ "A total and its parts above a list, e.g. a net amount with incoming and outgoing sub-totals (variant summary, stats)"
805
823
  ],
806
824
  "figmaNodeId": "45:137",
807
825
  "storyId": "organisms-stattile--default",
@@ -817,6 +835,7 @@
817
835
  ],
818
836
  "figmaNodeId": "200:1760",
819
837
  "storyId": "organisms-submitbar--default",
838
+ "deprecated": "Use FooterBar with submit, error, column form and safeAreaBottom false. Removed in the next major release.",
820
839
  "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=200-1760"
821
840
  },
822
841
  {
@@ -842,6 +861,7 @@
842
861
  ],
843
862
  "figmaNodeId": "128:5066",
844
863
  "storyId": "organisms-summarycard--default",
864
+ "deprecated": "Use StatTile with variant summary (same props). Removed in the next major release.",
845
865
  "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=128-5066"
846
866
  },
847
867
  {
@@ -867,15 +887,18 @@
867
887
  ],
868
888
  "figmaNodeId": "128:1603",
869
889
  "storyId": "organisms-tabstrip--default",
890
+ "deprecated": "Use SegmentedControl with variant tabs (same props). Removed in the next major release.",
870
891
  "figmaUrl": "https://www.figma.com/design/k0qh1vW73xp2JmZpaIYY6A?node-id=128-1603"
871
892
  },
872
893
  {
873
894
  "name": "TextField",
874
895
  "layer": "organism",
875
- "description": "One labelled text field outside a FormSection: a single 44px line or a multiline box that grows with its text, an inline error, an optional character limit and an optional small button after the input.",
896
+ "description": "One labelled text field outside a FormSection: a single 44px line or a multiline box that grows with its text, an inline error, an optional character limit and an optional small button after the input. kind amount makes it a numeric field with a digits (or decimal) keyboard, a currency or unit before or after the number, an optional muted read-back hint and optional preset chips that replace the amount; parsing and digit grouping stay in the app.",
876
897
  "useWhen": [
877
898
  "A text field on a FormTemplate screen whose save button sits in the template footer, such as a name or a note",
878
899
  "A longer note or description (multiline, maxLength)",
900
+ "A form asks for a money amount or another number with a unit (kind amount, unit, unitPosition, allowDecimal)",
901
+ "Common amounts are one tap away and the typed amount is read back in words (kind amount, presets, hint)",
879
902
  "An inline add field next to a chip row, such as a new category name with an Add button (action)"
880
903
  ],
881
904
  "figmaNodeId": "128:4963",
@@ -958,7 +981,7 @@
958
981
  },
959
982
  {
960
983
  "name": "overlay",
961
- "description": "Floats over the list, e.g. a ScrollToBottomFab."
984
+ "description": "Floats over the list, e.g. a FloatingIconButton (size sm, placement bottom-center) that jumps to the latest message."
962
985
  },
963
986
  {
964
987
  "name": "banner",
@@ -1009,7 +1032,7 @@
1009
1032
  {
1010
1033
  "name": "FormTemplate",
1011
1034
  "layer": "template",
1012
- "description": "Form screen, often shown as a modal: safe-area aware and keyboard-avoiding, a fixed header, a scrolling column of fields capped at 640px with 24px gaps, and an optional pinned SubmitBar footer (form error + full-width submit button with a loading state).",
1035
+ "description": "Form screen, often shown as a modal: safe-area aware and keyboard-avoiding, a fixed header, a scrolling column of fields capped at 640px with 24px gaps, and an optional pinned FooterBar footer (column form: form error + full-width submit button with a loading state).",
1013
1036
  "useWhen": [
1014
1037
  "Create or edit screens with several fields and one save action",
1015
1038
  "A modal form whose save button must stay reachable while scrolling (pass footer)"
@@ -1021,7 +1044,7 @@
1021
1044
  },
1022
1045
  {
1023
1046
  "name": "children",
1024
- "description": "Field organisms such as AmountInput, DateField, FilterChipGroup or FormSection, in display order."
1047
+ "description": "Field organisms such as TextField (kind amount for numbers), DateField, FilterChipGroup or FormSection, in display order."
1025
1048
  }
1026
1049
  ],
1027
1050
  "figmaNodeId": "45:179",
@@ -1128,7 +1151,7 @@
1128
1151
  },
1129
1152
  {
1130
1153
  "name": "children",
1131
- "description": "SettingsSection cards, in display order."
1154
+ "description": "ListSection panels (variant panel), in display order."
1132
1155
  }
1133
1156
  ],
1134
1157
  "figmaNodeId": "36:94",
@@ -1188,7 +1211,7 @@
1188
1211
  },
1189
1212
  {
1190
1213
  "name": "error",
1191
- "description": "Under the orb, usually an ErrorState."
1214
+ "description": "Under the orb, usually an EmptyState with variant error."
1192
1215
  },
1193
1216
  {
1194
1217
  "name": "caption",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aramiworks/design-app",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "homepage": "https://app.design.arami.so",
5
5
  "description": "Design system for arami and starlog: organisms and templates on NativeWind",
6
6
  "repository": {