rift-ds 1.24.0 → 1.26.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.
Files changed (117) hide show
  1. package/README.md +5 -4
  2. package/chat/ChatThreads.d.ts +3 -1
  3. package/chat/ChatThreads.js +3 -1
  4. package/chat/ChatWidget.css +166 -15
  5. package/chat/ChatWidget.d.ts +6 -2
  6. package/chat/ChatWidget.js +17 -3
  7. package/components/ActionCard/ActionCard.d.ts +1 -1
  8. package/components/Attachment/Attachment.css +8 -0
  9. package/components/Attachment/AttachmentViewer.js +26 -5
  10. package/components/Attachment/fileTypes.d.ts +4 -0
  11. package/components/ContextMenu/ContextMenu.css +11 -0
  12. package/components/ContextMenu/ContextMenu.d.ts +1 -1
  13. package/components/ContextMenu/ContextMenu.js +3 -1
  14. package/components/CurrencyInput/CurrencyInput.css +12 -0
  15. package/components/CurrencyInput/CurrencyInput.d.ts +51 -0
  16. package/components/CurrencyInput/CurrencyInput.js +158 -0
  17. package/components/DataTable/columnTypes.js +4 -16
  18. package/components/DatePicker/DatePicker.d.ts +2 -0
  19. package/components/DatePicker/DatePicker.js +44 -131
  20. package/components/DatePicker/MonthGrid.d.ts +56 -0
  21. package/components/DatePicker/MonthGrid.js +65 -0
  22. package/components/DatePicker/calendar.d.ts +42 -0
  23. package/components/DatePicker/calendar.js +108 -0
  24. package/components/DateRangePicker/DateRangePicker.css +92 -0
  25. package/components/DateRangePicker/DateRangePicker.d.ts +86 -0
  26. package/components/DateRangePicker/DateRangePicker.js +294 -0
  27. package/components/Deadline/Deadline.css +82 -0
  28. package/components/Deadline/Deadline.d.ts +44 -0
  29. package/components/Deadline/Deadline.js +94 -0
  30. package/components/Deadline/deadlineStatus.d.ts +15 -0
  31. package/components/Deadline/deadlineStatus.js +13 -0
  32. package/components/DescriptionList/DescriptionList.css +184 -0
  33. package/components/DescriptionList/DescriptionList.d.ts +64 -0
  34. package/components/DescriptionList/DescriptionList.js +100 -0
  35. package/components/DescriptionList/DescriptionListCopy.d.ts +18 -0
  36. package/components/DescriptionList/DescriptionListCopy.js +45 -0
  37. package/components/DocumentViewer/DocumentViewer.css +188 -0
  38. package/components/DocumentViewer/DocumentViewer.d.ts +59 -0
  39. package/components/DocumentViewer/DocumentViewer.js +185 -0
  40. package/components/DropdownMenu/DropdownMenu.css +38 -0
  41. package/components/DropdownMenu/DropdownMenu.d.ts +4 -0
  42. package/components/DropdownMenu/DropdownMenu.js +11 -5
  43. package/components/DropdownMenu/ShortcutHint.d.ts +9 -0
  44. package/components/DropdownMenu/ShortcutHint.js +6 -0
  45. package/components/ErrorSummary/ErrorSummary.css +94 -0
  46. package/components/ErrorSummary/ErrorSummary.d.ts +34 -0
  47. package/components/ErrorSummary/ErrorSummary.js +70 -0
  48. package/components/ErrorSummary/fieldErrors.d.ts +36 -0
  49. package/components/ErrorSummary/fieldErrors.js +19 -0
  50. package/components/Field/Field.css +12 -0
  51. package/components/Field/Field.d.ts +10 -2
  52. package/components/Field/Field.js +12 -5
  53. package/components/Heading/Heading.css +129 -0
  54. package/components/Heading/Heading.d.ts +31 -0
  55. package/components/Heading/Heading.js +39 -0
  56. package/components/Input/Input.css +120 -0
  57. package/components/Input/Input.d.ts +20 -1
  58. package/components/Input/Input.js +70 -5
  59. package/components/InterruptCard/InterruptCard.d.ts +1 -1
  60. package/components/Link/Link.css +84 -0
  61. package/components/Link/Link.d.ts +43 -0
  62. package/components/Link/Link.js +74 -0
  63. package/components/List/List.css +173 -0
  64. package/components/List/List.d.ts +44 -0
  65. package/components/List/List.js +60 -0
  66. package/components/MaskedInput/MaskedInput.css +16 -0
  67. package/components/MaskedInput/MaskedInput.d.ts +57 -0
  68. package/components/MaskedInput/MaskedInput.js +142 -0
  69. package/components/MaskedInput/mask.d.ts +58 -0
  70. package/components/MaskedInput/mask.js +106 -0
  71. package/components/MessageCard/MessageCard.css +17 -6
  72. package/components/MessageCard/MessageCard.d.ts +1 -1
  73. package/components/ShaderScene/ShaderScene.css +19 -0
  74. package/components/ShaderScene/ShaderScene.d.ts +82 -0
  75. package/components/ShaderScene/ShaderScene.js +167 -0
  76. package/components/ShaderScene/assemble.d.ts +5 -0
  77. package/components/ShaderScene/assemble.js +76 -0
  78. package/components/ShaderScene/common.glsl.d.ts +6 -0
  79. package/components/ShaderScene/common.glsl.js +49 -0
  80. package/components/ShaderScene/passes.d.ts +2 -0
  81. package/components/ShaderScene/passes.js +93 -0
  82. package/components/ShaderScene/renderer.d.ts +39 -0
  83. package/components/ShaderScene/renderer.js +170 -0
  84. package/components/ShaderScene/scenes.d.ts +76 -0
  85. package/components/ShaderScene/scenes.js +752 -0
  86. package/components/ShaderScene/types.d.ts +83 -0
  87. package/components/ShaderScene/types.js +8 -0
  88. package/components/SignaturePad/SignaturePad.css +141 -0
  89. package/components/SignaturePad/SignaturePad.d.ts +68 -0
  90. package/components/SignaturePad/SignaturePad.js +287 -0
  91. package/components/SignaturePad/signature.d.ts +32 -0
  92. package/components/SignaturePad/signature.js +46 -0
  93. package/components/Text/Text.css +129 -0
  94. package/components/Text/Text.d.ts +36 -0
  95. package/components/Text/Text.js +36 -0
  96. package/components/ThreadPanel/ThreadPanel.css +29 -0
  97. package/components/ThreadPanel/ThreadPanel.d.ts +2 -0
  98. package/components/ThreadPanel/ThreadPanel.js +13 -2
  99. package/components/Widget/Widget.css +111 -0
  100. package/components/Widget/Widget.d.ts +15 -1
  101. package/components/Widget/Widget.js +63 -11
  102. package/components/Widget/WidgetDisclosure.d.ts +30 -0
  103. package/components/Widget/WidgetDisclosure.js +52 -0
  104. package/components/registry.json +111 -2
  105. package/components/registry.json.d.ts +111 -2
  106. package/components/registry.json.js +2 -2
  107. package/format/index.d.ts +15 -0
  108. package/format/index.js +17 -0
  109. package/format/money.d.ts +89 -0
  110. package/format/money.js +187 -0
  111. package/format/relative.d.ts +49 -0
  112. package/format/relative.js +50 -0
  113. package/index.d.ts +13 -0
  114. package/index.js +48 -1
  115. package/package.json +9 -2
  116. package/tokens/motion.d.ts +4 -0
  117. package/tokens/motion.js +4 -0
@@ -60,6 +60,11 @@
60
60
  "id": "overlays",
61
61
  "label": "Overlays",
62
62
  "description": "Dialogs, drawers, menus, and tooltips that float above the page."
63
+ },
64
+ {
65
+ "id": "typography",
66
+ "label": "Typography",
67
+ "description": "Headings, running text, links, and lists, each drawn from a tier of the type scale."
63
68
  }
64
69
  ],
65
70
  "components": [
@@ -490,6 +495,14 @@
490
495
  "category": "charts",
491
496
  "client": false
492
497
  },
498
+ {
499
+ "name": "CurrencyInput",
500
+ "label": "Currency input",
501
+ "slug": "currency-input",
502
+ "description": "An amount of money as a decimal string, read in the locale's marks and grouped once the field is left.",
503
+ "category": "forms",
504
+ "client": true
505
+ },
493
506
  {
494
507
  "name": "DataTable",
495
508
  "label": "Data table",
@@ -514,6 +527,30 @@
514
527
  "category": "forms",
515
528
  "client": true
516
529
  },
530
+ {
531
+ "name": "DateRangePicker",
532
+ "label": "Date range picker",
533
+ "slug": "date-range-picker",
534
+ "description": "An inline calendar for choosing a range of days, one or two months wide, with presets.",
535
+ "category": "forms",
536
+ "client": true
537
+ },
538
+ {
539
+ "name": "Deadline",
540
+ "label": "Deadline",
541
+ "slug": "deadline",
542
+ "description": "A due date against now that turns from neutral to warning to error as it nears.",
543
+ "category": "data-display",
544
+ "client": true
545
+ },
546
+ {
547
+ "name": "DescriptionList",
548
+ "label": "Description list",
549
+ "slug": "description-list",
550
+ "description": "Terms and their values for review screens, receipts, and account details, stacked, in two columns, or in a grid.",
551
+ "category": "data-display",
552
+ "client": false
553
+ },
517
554
  {
518
555
  "name": "Dialog",
519
556
  "label": "Dialog",
@@ -538,6 +575,14 @@
538
575
  "category": "ai",
539
576
  "client": false
540
577
  },
578
+ {
579
+ "name": "DocumentViewer",
580
+ "label": "Document viewer",
581
+ "slug": "document-viewer",
582
+ "description": "A PDF, an image or a text file shown on the page, with download and a fallback where the browser will not embed it.",
583
+ "category": "data-display",
584
+ "client": true
585
+ },
541
586
  {
542
587
  "name": "Drawer",
543
588
  "label": "Drawer",
@@ -586,6 +631,14 @@
586
631
  "category": "navigation",
587
632
  "client": true
588
633
  },
634
+ {
635
+ "name": "ErrorSummary",
636
+ "label": "Error summary",
637
+ "slug": "error-summary",
638
+ "description": "Every error on a form at the top of it, each a link that moves focus to its field.",
639
+ "category": "feedback",
640
+ "client": true
641
+ },
589
642
  {
590
643
  "name": "EventCalendar",
591
644
  "label": "Event calendar",
@@ -659,6 +712,14 @@
659
712
  "category": "maps",
660
713
  "client": true
661
714
  },
715
+ {
716
+ "name": "Heading",
717
+ "label": "Heading",
718
+ "slug": "heading",
719
+ "description": "A heading whose outline level and type tier are chosen apart.",
720
+ "category": "typography",
721
+ "client": false
722
+ },
662
723
  {
663
724
  "name": "HoverCard",
664
725
  "label": "Hover card",
@@ -679,7 +740,7 @@
679
740
  "name": "Input",
680
741
  "label": "Input",
681
742
  "slug": "input",
682
- "description": "Text input with label, placeholder, left and right icons, helper text, and error states.",
743
+ "description": "Text input with label, placeholder, icons, a prefix or suffix, a clear button, helper text, and error states.",
683
744
  "category": "forms",
684
745
  "client": true
685
746
  },
@@ -796,6 +857,14 @@
796
857
  "folder": "Chart",
797
858
  "recharts": true
798
859
  },
860
+ {
861
+ "name": "Link",
862
+ "label": "Link",
863
+ "slug": "link",
864
+ "description": "A text link inside a sentence or on its own, routed through the app's link component.",
865
+ "category": "typography",
866
+ "client": false
867
+ },
799
868
  {
800
869
  "name": "LinkList",
801
870
  "label": "Link list",
@@ -804,6 +873,14 @@
804
873
  "category": "data-display",
805
874
  "client": false
806
875
  },
876
+ {
877
+ "name": "List",
878
+ "label": "List",
879
+ "slug": "list",
880
+ "description": "Ordered and unordered lists marked with a disc, a number, a check, or an icon.",
881
+ "category": "typography",
882
+ "client": false
883
+ },
807
884
  {
808
885
  "name": "MapCallout",
809
886
  "label": "Map callout",
@@ -820,6 +897,14 @@
820
897
  "category": "maps",
821
898
  "client": false
822
899
  },
900
+ {
901
+ "name": "MaskedInput",
902
+ "label": "Masked input",
903
+ "slug": "masked-input",
904
+ "description": "A field that writes its value into a shape as it is typed, with a sensitive mode that hides it.",
905
+ "category": "forms",
906
+ "client": true
907
+ },
823
908
  {
824
909
  "name": "MegaMenu",
825
910
  "label": "Mega menu",
@@ -1092,6 +1177,14 @@
1092
1177
  "category": "effects",
1093
1178
  "client": true
1094
1179
  },
1180
+ {
1181
+ "name": "ShaderScene",
1182
+ "label": "Shader scene",
1183
+ "slug": "shader-scene",
1184
+ "description": "A WebGL2 scene, from a night horizon and a glowing rift to a meteor shower and an aurora, in the theme's field colours, with fades, a vignette and grain.",
1185
+ "category": "effects",
1186
+ "client": true
1187
+ },
1095
1188
  {
1096
1189
  "name": "SidebarPanel",
1097
1190
  "label": "Sidebar panel",
@@ -1100,6 +1193,14 @@
1100
1193
  "category": "layout",
1101
1194
  "client": true
1102
1195
  },
1196
+ {
1197
+ "name": "SignaturePad",
1198
+ "label": "Signature pad",
1199
+ "slug": "signature-pad",
1200
+ "description": "A signature drawn with a pointer or typed, kept as SVG with a PNG on demand.",
1201
+ "category": "forms",
1202
+ "client": true
1203
+ },
1103
1204
  {
1104
1205
  "name": "SiteHeader",
1105
1206
  "label": "Site header",
@@ -1254,6 +1355,14 @@
1254
1355
  "category": "forms",
1255
1356
  "client": true
1256
1357
  },
1358
+ {
1359
+ "name": "Text",
1360
+ "label": "Text",
1361
+ "slug": "text",
1362
+ "description": "Running text in a tier of the type scale, with tones, truncation, and tabular figures.",
1363
+ "category": "typography",
1364
+ "client": false
1365
+ },
1257
1366
  {
1258
1367
  "name": "Textarea",
1259
1368
  "label": "Textarea",
@@ -1404,7 +1513,7 @@
1404
1513
  "name": "Widget",
1405
1514
  "label": "Widget",
1406
1515
  "slug": "widget",
1407
- "description": "A titled tile for a dashboard or home screen, with rows, labelled groups, and a board that packs tiles into columns.",
1516
+ "description": "A titled section for a dashboard, a form, or settings, with rows, groups, a footer, an optional fold, and a board of columns.",
1408
1517
  "category": "data-display",
1409
1518
  "client": false
1410
1519
  },
@@ -60,6 +60,11 @@ declare const _default: {
60
60
  "id": "overlays",
61
61
  "label": "Overlays",
62
62
  "description": "Dialogs, drawers, menus, and tooltips that float above the page."
63
+ },
64
+ {
65
+ "id": "typography",
66
+ "label": "Typography",
67
+ "description": "Headings, running text, links, and lists, each drawn from a tier of the type scale."
63
68
  }
64
69
  ],
65
70
  "components": [
@@ -490,6 +495,14 @@ declare const _default: {
490
495
  "category": "charts",
491
496
  "client": false
492
497
  },
498
+ {
499
+ "name": "CurrencyInput",
500
+ "label": "Currency input",
501
+ "slug": "currency-input",
502
+ "description": "An amount of money as a decimal string, read in the locale's marks and grouped once the field is left.",
503
+ "category": "forms",
504
+ "client": true
505
+ },
493
506
  {
494
507
  "name": "DataTable",
495
508
  "label": "Data table",
@@ -514,6 +527,30 @@ declare const _default: {
514
527
  "category": "forms",
515
528
  "client": true
516
529
  },
530
+ {
531
+ "name": "DateRangePicker",
532
+ "label": "Date range picker",
533
+ "slug": "date-range-picker",
534
+ "description": "An inline calendar for choosing a range of days, one or two months wide, with presets.",
535
+ "category": "forms",
536
+ "client": true
537
+ },
538
+ {
539
+ "name": "Deadline",
540
+ "label": "Deadline",
541
+ "slug": "deadline",
542
+ "description": "A due date against now that turns from neutral to warning to error as it nears.",
543
+ "category": "data-display",
544
+ "client": true
545
+ },
546
+ {
547
+ "name": "DescriptionList",
548
+ "label": "Description list",
549
+ "slug": "description-list",
550
+ "description": "Terms and their values for review screens, receipts, and account details, stacked, in two columns, or in a grid.",
551
+ "category": "data-display",
552
+ "client": false
553
+ },
517
554
  {
518
555
  "name": "Dialog",
519
556
  "label": "Dialog",
@@ -538,6 +575,14 @@ declare const _default: {
538
575
  "category": "ai",
539
576
  "client": false
540
577
  },
578
+ {
579
+ "name": "DocumentViewer",
580
+ "label": "Document viewer",
581
+ "slug": "document-viewer",
582
+ "description": "A PDF, an image or a text file shown on the page, with download and a fallback where the browser will not embed it.",
583
+ "category": "data-display",
584
+ "client": true
585
+ },
541
586
  {
542
587
  "name": "Drawer",
543
588
  "label": "Drawer",
@@ -586,6 +631,14 @@ declare const _default: {
586
631
  "category": "navigation",
587
632
  "client": true
588
633
  },
634
+ {
635
+ "name": "ErrorSummary",
636
+ "label": "Error summary",
637
+ "slug": "error-summary",
638
+ "description": "Every error on a form at the top of it, each a link that moves focus to its field.",
639
+ "category": "feedback",
640
+ "client": true
641
+ },
589
642
  {
590
643
  "name": "EventCalendar",
591
644
  "label": "Event calendar",
@@ -659,6 +712,14 @@ declare const _default: {
659
712
  "category": "maps",
660
713
  "client": true
661
714
  },
715
+ {
716
+ "name": "Heading",
717
+ "label": "Heading",
718
+ "slug": "heading",
719
+ "description": "A heading whose outline level and type tier are chosen apart.",
720
+ "category": "typography",
721
+ "client": false
722
+ },
662
723
  {
663
724
  "name": "HoverCard",
664
725
  "label": "Hover card",
@@ -679,7 +740,7 @@ declare const _default: {
679
740
  "name": "Input",
680
741
  "label": "Input",
681
742
  "slug": "input",
682
- "description": "Text input with label, placeholder, left and right icons, helper text, and error states.",
743
+ "description": "Text input with label, placeholder, icons, a prefix or suffix, a clear button, helper text, and error states.",
683
744
  "category": "forms",
684
745
  "client": true
685
746
  },
@@ -796,6 +857,14 @@ declare const _default: {
796
857
  "folder": "Chart",
797
858
  "recharts": true
798
859
  },
860
+ {
861
+ "name": "Link",
862
+ "label": "Link",
863
+ "slug": "link",
864
+ "description": "A text link inside a sentence or on its own, routed through the app's link component.",
865
+ "category": "typography",
866
+ "client": false
867
+ },
799
868
  {
800
869
  "name": "LinkList",
801
870
  "label": "Link list",
@@ -804,6 +873,14 @@ declare const _default: {
804
873
  "category": "data-display",
805
874
  "client": false
806
875
  },
876
+ {
877
+ "name": "List",
878
+ "label": "List",
879
+ "slug": "list",
880
+ "description": "Ordered and unordered lists marked with a disc, a number, a check, or an icon.",
881
+ "category": "typography",
882
+ "client": false
883
+ },
807
884
  {
808
885
  "name": "MapCallout",
809
886
  "label": "Map callout",
@@ -820,6 +897,14 @@ declare const _default: {
820
897
  "category": "maps",
821
898
  "client": false
822
899
  },
900
+ {
901
+ "name": "MaskedInput",
902
+ "label": "Masked input",
903
+ "slug": "masked-input",
904
+ "description": "A field that writes its value into a shape as it is typed, with a sensitive mode that hides it.",
905
+ "category": "forms",
906
+ "client": true
907
+ },
823
908
  {
824
909
  "name": "MegaMenu",
825
910
  "label": "Mega menu",
@@ -1092,6 +1177,14 @@ declare const _default: {
1092
1177
  "category": "effects",
1093
1178
  "client": true
1094
1179
  },
1180
+ {
1181
+ "name": "ShaderScene",
1182
+ "label": "Shader scene",
1183
+ "slug": "shader-scene",
1184
+ "description": "A WebGL2 scene, from a night horizon and a glowing rift to a meteor shower and an aurora, in the theme's field colours, with fades, a vignette and grain.",
1185
+ "category": "effects",
1186
+ "client": true
1187
+ },
1095
1188
  {
1096
1189
  "name": "SidebarPanel",
1097
1190
  "label": "Sidebar panel",
@@ -1100,6 +1193,14 @@ declare const _default: {
1100
1193
  "category": "layout",
1101
1194
  "client": true
1102
1195
  },
1196
+ {
1197
+ "name": "SignaturePad",
1198
+ "label": "Signature pad",
1199
+ "slug": "signature-pad",
1200
+ "description": "A signature drawn with a pointer or typed, kept as SVG with a PNG on demand.",
1201
+ "category": "forms",
1202
+ "client": true
1203
+ },
1103
1204
  {
1104
1205
  "name": "SiteHeader",
1105
1206
  "label": "Site header",
@@ -1254,6 +1355,14 @@ declare const _default: {
1254
1355
  "category": "forms",
1255
1356
  "client": true
1256
1357
  },
1358
+ {
1359
+ "name": "Text",
1360
+ "label": "Text",
1361
+ "slug": "text",
1362
+ "description": "Running text in a tier of the type scale, with tones, truncation, and tabular figures.",
1363
+ "category": "typography",
1364
+ "client": false
1365
+ },
1257
1366
  {
1258
1367
  "name": "Textarea",
1259
1368
  "label": "Textarea",
@@ -1404,7 +1513,7 @@ declare const _default: {
1404
1513
  "name": "Widget",
1405
1514
  "label": "Widget",
1406
1515
  "slug": "widget",
1407
- "description": "A titled tile for a dashboard or home screen, with rows, labelled groups, and a board that packs tiles into columns.",
1516
+ "description": "A titled section for a dashboard, a form, or settings, with rows, groups, a footer, an optional fold, and a board of columns.",
1408
1517
  "category": "data-display",
1409
1518
  "client": false
1410
1519
  },