@knpkv/rly 0.13.0 → 0.15.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 (51) hide show
  1. package/README.md +73 -1
  2. package/dist/{Dialog-B9Ub_gMT.js → Dialog-CU66FqWD.js} +325 -257
  3. package/dist/Dialog-CU66FqWD.js.map +1 -0
  4. package/dist/{PortalProvider-CN_81Fy3.js → PortalProvider-op07u8na.js} +20 -18
  5. package/dist/PortalProvider-op07u8na.js.map +1 -0
  6. package/dist/assets/relay-mark.svg +9 -0
  7. package/dist/components.css +1 -1
  8. package/dist/dts/foundations/Icon.d.ts +1 -1
  9. package/dist/dts/foundations/Icon.d.ts.map +1 -1
  10. package/dist/dts/internal/composedFocus.d.ts +11 -0
  11. package/dist/dts/internal/composedFocus.d.ts.map +1 -0
  12. package/dist/dts/internal/relaySummon.d.ts +50 -0
  13. package/dist/dts/internal/relaySummon.d.ts.map +1 -0
  14. package/dist/dts/patterns/Region.d.ts +2 -2
  15. package/dist/dts/patterns/Region.d.ts.map +1 -1
  16. package/dist/dts/patterns/RelayComposer.d.ts +65 -0
  17. package/dist/dts/patterns/RelayComposer.d.ts.map +1 -0
  18. package/dist/dts/patterns/RelayDock.d.ts.map +1 -1
  19. package/dist/dts/patterns/RelayLauncher.d.ts +67 -0
  20. package/dist/dts/patterns/RelayLauncher.d.ts.map +1 -0
  21. package/dist/dts/patterns/RelayMark.d.ts +35 -0
  22. package/dist/dts/patterns/RelayMark.d.ts.map +1 -0
  23. package/dist/dts/patterns/RelayPanel.d.ts +91 -0
  24. package/dist/dts/patterns/RelayPanel.d.ts.map +1 -0
  25. package/dist/dts/patterns/index.d.ts +8 -0
  26. package/dist/dts/patterns/index.d.ts.map +1 -1
  27. package/dist/dts/tokens/fonts.d.ts +13 -0
  28. package/dist/dts/tokens/fonts.d.ts.map +1 -0
  29. package/dist/dts/tokens/index.d.ts +2 -0
  30. package/dist/dts/tokens/index.d.ts.map +1 -1
  31. package/dist/fonts.css +83 -2
  32. package/dist/foundations/index.js +1 -1
  33. package/dist/generated-tokens.css +2 -2
  34. package/dist/index.js +6 -6
  35. package/dist/patterns/index.js +2 -2
  36. package/dist/{patterns-DPd5YlSW.js → patterns-CDBnXTUD.js} +1258 -756
  37. package/dist/patterns-CDBnXTUD.js.map +1 -0
  38. package/dist/primitives/index.js +3 -3
  39. package/dist/{primitives-Bd6WhE78.js → primitives-DgQybTyq.js} +254 -322
  40. package/dist/primitives-DgQybTyq.js.map +1 -0
  41. package/dist/tokens/index.js +2 -2
  42. package/dist/{tokens-B075JP3Z.js → tokens-Cf0jXIRg.js} +14 -8
  43. package/dist/tokens-Cf0jXIRg.js.map +1 -0
  44. package/package.json +2 -1
  45. package/registry/components.json +373 -0
  46. package/registry/search.json +88 -0
  47. package/dist/Dialog-B9Ub_gMT.js.map +0 -1
  48. package/dist/PortalProvider-CN_81Fy3.js.map +0 -1
  49. package/dist/patterns-DPd5YlSW.js.map +0 -1
  50. package/dist/primitives-Bd6WhE78.js.map +0 -1
  51. package/dist/tokens-B075JP3Z.js.map +0 -1
@@ -3540,6 +3540,95 @@
3540
3540
  "status": "stable",
3541
3541
  "variants": []
3542
3542
  },
3543
+ {
3544
+ "accessibility": {
3545
+ "automatedChecks": true,
3546
+ "requirements": [
3547
+ "Provide a programmatic name for interactive or informative content",
3548
+ "Preserve keyboard access, focus visibility, and color-independent meaning"
3549
+ ],
3550
+ "standard": "WCAG 2.2 AA"
3551
+ },
3552
+ "capabilities": [
3553
+ "agent",
3554
+ "write"
3555
+ ],
3556
+ "category": "pattern",
3557
+ "compatibleTokens": [
3558
+ "color",
3559
+ "motion",
3560
+ "radius",
3561
+ "space",
3562
+ "type"
3563
+ ],
3564
+ "docs": {
3565
+ "autogenerated": true,
3566
+ "storyId": "patterns-relaycomposer--draft",
3567
+ "storyPath": "?path=/story/patterns-relaycomposer--draft"
3568
+ },
3569
+ "example": "import { RelayComposer } from \"@knpkv/rly/patterns\"",
3570
+ "exports": [
3571
+ {
3572
+ "kind": "value",
3573
+ "name": "RelayComposer"
3574
+ },
3575
+ {
3576
+ "kind": "type",
3577
+ "name": "RelayComposerProps"
3578
+ },
3579
+ {
3580
+ "kind": "type",
3581
+ "name": "RlyRelayContextRef"
3582
+ },
3583
+ {
3584
+ "kind": "type",
3585
+ "name": "RlyRelayDraft"
3586
+ },
3587
+ {
3588
+ "kind": "type",
3589
+ "name": "RlyRelayDraftStorage"
3590
+ },
3591
+ {
3592
+ "kind": "type",
3593
+ "name": "RlyRelaySubmission"
3594
+ },
3595
+ {
3596
+ "kind": "value",
3597
+ "name": "useRelayDraft"
3598
+ },
3599
+ {
3600
+ "kind": "type",
3601
+ "name": "UseRelayDraftOptions"
3602
+ }
3603
+ ],
3604
+ "files": {
3605
+ "source": "src/patterns/RelayComposer.tsx",
3606
+ "story": "stories/patterns/RelayComposer.stories.tsx",
3607
+ "styles": [
3608
+ "src/patterns/RelayComposer.module.css"
3609
+ ],
3610
+ "tests": [
3611
+ "test/patterns/RelayComposer.test.tsx"
3612
+ ]
3613
+ },
3614
+ "importPath": "@knpkv/rly/patterns",
3615
+ "name": "RelayComposer",
3616
+ "props": {
3617
+ "defaults": {},
3618
+ "types": [
3619
+ "RelayComposerProps"
3620
+ ]
3621
+ },
3622
+ "purpose": "Write to Relay: an auto-growing message box with context refs, a run preset, send and stop, and drafts kept per object",
3623
+ "slots": [],
3624
+ "states": [
3625
+ "busy",
3626
+ "default",
3627
+ "draft"
3628
+ ],
3629
+ "status": "experimental",
3630
+ "variants": []
3631
+ },
3543
3632
  {
3544
3633
  "accessibility": {
3545
3634
  "automatedChecks": true,
@@ -3651,6 +3740,290 @@
3651
3740
  }
3652
3741
  ]
3653
3742
  },
3743
+ {
3744
+ "accessibility": {
3745
+ "automatedChecks": true,
3746
+ "requirements": [
3747
+ "A native button whose aria-expanded follows Relay being open",
3748
+ "aria-keyshortcuts names the shortcut; the visible hint is hidden from assistive technology so it is heard once",
3749
+ "32px tall, 44px for a coarse pointer, with the shared focus ring"
3750
+ ],
3751
+ "standard": "WCAG 2.2 AA"
3752
+ },
3753
+ "capabilities": [
3754
+ "agent",
3755
+ "open"
3756
+ ],
3757
+ "category": "pattern",
3758
+ "compatibleTokens": [
3759
+ "color",
3760
+ "motion",
3761
+ "radius",
3762
+ "space",
3763
+ "type"
3764
+ ],
3765
+ "docs": {
3766
+ "autogenerated": true,
3767
+ "storyId": "patterns-relaylauncher--header",
3768
+ "storyPath": "?path=/story/patterns-relaylauncher--header"
3769
+ },
3770
+ "example": "import { RelayLauncher } from \"@knpkv/rly/patterns\"",
3771
+ "exports": [
3772
+ {
3773
+ "kind": "value",
3774
+ "name": "RelayLauncher"
3775
+ },
3776
+ {
3777
+ "kind": "type",
3778
+ "name": "RelayLauncherProps"
3779
+ },
3780
+ {
3781
+ "kind": "value",
3782
+ "name": "relayShortcut"
3783
+ },
3784
+ {
3785
+ "kind": "type",
3786
+ "name": "RlyRelayShortcut"
3787
+ },
3788
+ {
3789
+ "kind": "type",
3790
+ "name": "RlyRelaySummon"
3791
+ },
3792
+ {
3793
+ "kind": "value",
3794
+ "name": "useRelayShortcut"
3795
+ },
3796
+ {
3797
+ "kind": "value",
3798
+ "name": "useRelaySummon"
3799
+ },
3800
+ {
3801
+ "kind": "type",
3802
+ "name": "UseRelaySummonOptions"
3803
+ }
3804
+ ],
3805
+ "files": {
3806
+ "source": "src/patterns/RelayLauncher.tsx",
3807
+ "story": "stories/patterns/RelayLauncher.stories.tsx",
3808
+ "styles": [
3809
+ "src/patterns/RelayLauncher.module.css"
3810
+ ],
3811
+ "tests": [
3812
+ "test/patterns/RelayLauncher.css.test.ts",
3813
+ "test/patterns/RelayLauncher.summon.test.tsx",
3814
+ "test/patterns/RelayLauncher.test.tsx",
3815
+ "test/patterns/relaySummon.test.ts"
3816
+ ]
3817
+ },
3818
+ "importPath": "@knpkv/rly/patterns",
3819
+ "name": "RelayLauncher",
3820
+ "props": {
3821
+ "defaults": {},
3822
+ "types": [
3823
+ "RelayLauncherProps"
3824
+ ]
3825
+ },
3826
+ "purpose": "Open and close Relay from the host's header, with its mark, a label and the Ctrl/⌘+J hint",
3827
+ "slots": [],
3828
+ "states": [
3829
+ "closed",
3830
+ "default",
3831
+ "open"
3832
+ ],
3833
+ "status": "experimental",
3834
+ "variants": []
3835
+ },
3836
+ {
3837
+ "accessibility": {
3838
+ "automatedChecks": true,
3839
+ "requirements": [
3840
+ "Decorative unless given a label; a labelled mark is an image with that name",
3841
+ "Drawn in currentColor, so it follows its host's text in every theme and in forced colours"
3842
+ ],
3843
+ "standard": "WCAG 2.2 AA"
3844
+ },
3845
+ "capabilities": [
3846
+ "brand",
3847
+ "present"
3848
+ ],
3849
+ "category": "pattern",
3850
+ "compatibleTokens": [
3851
+ "color",
3852
+ "motion",
3853
+ "radius",
3854
+ "space",
3855
+ "type"
3856
+ ],
3857
+ "docs": {
3858
+ "autogenerated": true,
3859
+ "storyId": "patterns-relaymark--sizes",
3860
+ "storyPath": "?path=/story/patterns-relaymark--sizes"
3861
+ },
3862
+ "example": "import { RelayMark } from \"@knpkv/rly/patterns\"",
3863
+ "exports": [
3864
+ {
3865
+ "kind": "value",
3866
+ "name": "RelayMark"
3867
+ },
3868
+ {
3869
+ "kind": "type",
3870
+ "name": "RelayMarkProps"
3871
+ },
3872
+ {
3873
+ "kind": "type",
3874
+ "name": "RelayMarkTileProps"
3875
+ },
3876
+ {
3877
+ "kind": "value",
3878
+ "name": "RLY_RELAY_MARK_SIZES"
3879
+ },
3880
+ {
3881
+ "kind": "value",
3882
+ "name": "RLY_RELAY_MARK_TILE_SIZES"
3883
+ },
3884
+ {
3885
+ "kind": "type",
3886
+ "name": "RlyRelayMarkSize"
3887
+ },
3888
+ {
3889
+ "kind": "type",
3890
+ "name": "RlyRelayMarkTileSize"
3891
+ }
3892
+ ],
3893
+ "files": {
3894
+ "source": "src/patterns/RelayMark.tsx",
3895
+ "story": "stories/patterns/RelayMark.stories.tsx",
3896
+ "styles": [
3897
+ "src/patterns/RelayMark.module.css"
3898
+ ],
3899
+ "tests": [
3900
+ "test/patterns/RelayMark.favicon.test.ts",
3901
+ "test/patterns/RelayMark.test.tsx"
3902
+ ]
3903
+ },
3904
+ "importPath": "@knpkv/rly/patterns",
3905
+ "name": "RelayMark",
3906
+ "props": {
3907
+ "defaults": {},
3908
+ "types": [
3909
+ "RelayMarkProps",
3910
+ "RelayMarkTileProps"
3911
+ ]
3912
+ },
3913
+ "purpose": "Show Relay's mark, the baton, bare in the current colour (16, 20 default, 24 or 32px) or on an agent-coloured tile (20, 24 default or 32px)",
3914
+ "slots": [
3915
+ "RelayMarkTile"
3916
+ ],
3917
+ "states": [
3918
+ "bare",
3919
+ "default",
3920
+ "tile"
3921
+ ],
3922
+ "status": "experimental",
3923
+ "variants": []
3924
+ },
3925
+ {
3926
+ "accessibility": {
3927
+ "automatedChecks": true,
3928
+ "requirements": [
3929
+ "Provide a programmatic name for interactive or informative content",
3930
+ "Preserve keyboard access, focus visibility, and color-independent meaning"
3931
+ ],
3932
+ "standard": "WCAG 2.2 AA"
3933
+ },
3934
+ "capabilities": [
3935
+ "agent",
3936
+ "overlay"
3937
+ ],
3938
+ "category": "pattern",
3939
+ "compatibleTokens": [
3940
+ "color",
3941
+ "motion",
3942
+ "radius",
3943
+ "space",
3944
+ "type"
3945
+ ],
3946
+ "docs": {
3947
+ "autogenerated": true,
3948
+ "storyId": "patterns-relaypanel--overlay",
3949
+ "storyPath": "?path=/story/patterns-relaypanel--overlay"
3950
+ },
3951
+ "example": "import { RelayPanel } from \"@knpkv/rly/patterns\"",
3952
+ "exports": [
3953
+ {
3954
+ "kind": "value",
3955
+ "name": "RelayPanel"
3956
+ },
3957
+ {
3958
+ "kind": "type",
3959
+ "name": "RelayPanelProps"
3960
+ },
3961
+ {
3962
+ "kind": "value",
3963
+ "name": "RLY_RELAY_PANEL_PRESENTATIONS"
3964
+ },
3965
+ {
3966
+ "kind": "value",
3967
+ "name": "RLY_RELAY_PANEL_WIDTH"
3968
+ },
3969
+ {
3970
+ "kind": "type",
3971
+ "name": "RlyRelayPanelPin"
3972
+ },
3973
+ {
3974
+ "kind": "type",
3975
+ "name": "RlyRelayPanelPresentation"
3976
+ },
3977
+ {
3978
+ "kind": "type",
3979
+ "name": "RlyRelayPanelTab"
3980
+ },
3981
+ {
3982
+ "kind": "type",
3983
+ "name": "RlyRelayPresentation"
3984
+ },
3985
+ {
3986
+ "kind": "type",
3987
+ "name": "RlyRelayScope"
3988
+ },
3989
+ {
3990
+ "kind": "value",
3991
+ "name": "useRelayPresentation"
3992
+ },
3993
+ {
3994
+ "kind": "type",
3995
+ "name": "UseRelayPresentationOptions"
3996
+ }
3997
+ ],
3998
+ "files": {
3999
+ "source": "src/patterns/RelayPanel.tsx",
4000
+ "story": "stories/patterns/RelayPanel.stories.tsx",
4001
+ "styles": [
4002
+ "src/patterns/RelayPanel.module.css"
4003
+ ],
4004
+ "tests": [
4005
+ "test/patterns/RelayPanel.test.tsx"
4006
+ ]
4007
+ },
4008
+ "importPath": "@knpkv/rly/patterns",
4009
+ "name": "RelayPanel",
4010
+ "props": {
4011
+ "defaults": {},
4012
+ "types": [
4013
+ "RelayPanelProps"
4014
+ ]
4015
+ },
4016
+ "purpose": "Frame Relay as a non-modal overlay, a pinned column or a full-screen dialog, with its header, tabs, freshness line, body and footer",
4017
+ "slots": [],
4018
+ "states": [
4019
+ "default",
4020
+ "fullscreen",
4021
+ "overlay",
4022
+ "pinned"
4023
+ ],
4024
+ "status": "experimental",
4025
+ "variants": []
4026
+ },
3654
4027
  {
3655
4028
  "accessibility": {
3656
4029
  "automatedChecks": true,
@@ -956,6 +956,28 @@
956
956
  "table"
957
957
  ]
958
958
  },
959
+ {
960
+ "capabilities": [
961
+ "agent",
962
+ "write"
963
+ ],
964
+ "category": "pattern",
965
+ "importPath": "@knpkv/rly/patterns",
966
+ "name": "RelayComposer",
967
+ "states": [
968
+ "busy",
969
+ "default",
970
+ "draft"
971
+ ],
972
+ "terms": [
973
+ "agent",
974
+ "busy",
975
+ "draft",
976
+ "pattern",
977
+ "relaycomposer",
978
+ "write"
979
+ ]
980
+ },
959
981
  {
960
982
  "capabilities": [
961
983
  "agent",
@@ -992,6 +1014,72 @@
992
1014
  "unavailable"
993
1015
  ]
994
1016
  },
1017
+ {
1018
+ "capabilities": [
1019
+ "agent",
1020
+ "open"
1021
+ ],
1022
+ "category": "pattern",
1023
+ "importPath": "@knpkv/rly/patterns",
1024
+ "name": "RelayLauncher",
1025
+ "states": [
1026
+ "closed",
1027
+ "default",
1028
+ "open"
1029
+ ],
1030
+ "terms": [
1031
+ "agent",
1032
+ "closed",
1033
+ "open",
1034
+ "pattern",
1035
+ "relaylauncher"
1036
+ ]
1037
+ },
1038
+ {
1039
+ "capabilities": [
1040
+ "brand",
1041
+ "present"
1042
+ ],
1043
+ "category": "pattern",
1044
+ "importPath": "@knpkv/rly/patterns",
1045
+ "name": "RelayMark",
1046
+ "states": [
1047
+ "bare",
1048
+ "default",
1049
+ "tile"
1050
+ ],
1051
+ "terms": [
1052
+ "bare",
1053
+ "brand",
1054
+ "pattern",
1055
+ "present",
1056
+ "relaymark",
1057
+ "tile"
1058
+ ]
1059
+ },
1060
+ {
1061
+ "capabilities": [
1062
+ "agent",
1063
+ "overlay"
1064
+ ],
1065
+ "category": "pattern",
1066
+ "importPath": "@knpkv/rly/patterns",
1067
+ "name": "RelayPanel",
1068
+ "states": [
1069
+ "default",
1070
+ "fullscreen",
1071
+ "overlay",
1072
+ "pinned"
1073
+ ],
1074
+ "terms": [
1075
+ "agent",
1076
+ "fullscreen",
1077
+ "overlay",
1078
+ "pattern",
1079
+ "pinned",
1080
+ "relaypanel"
1081
+ ]
1082
+ },
995
1083
  {
996
1084
  "capabilities": [
997
1085
  "inspect",