@adyen/bento-vue2 0.7.0 → 0.7.1

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 (31) hide show
  1. package/dist/@types/components/date-picker/date-picker.vue.d.ts +1 -0
  2. package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +9 -0
  3. package/dist/@types/components/filter-bar/components/base-filter/components/filter-button/filter-button.vue.d.ts +23 -1
  4. package/dist/@types/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -0
  5. package/dist/@types/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +1 -0
  6. package/dist/@types/components/filter-bar/filter-bar.types.d.ts +1 -0
  7. package/dist/@types/components/header/header.vue.d.ts +3 -3
  8. package/dist/@types/components/link/link.vue.d.ts +2 -2
  9. package/dist/@types/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +4 -1
  10. package/dist/@types/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +16 -2
  11. package/dist/@types/components/modal/components/base-modal/base-modal.vue.d.ts +89 -0
  12. package/dist/@types/components/modal/components/index.d.ts +3 -0
  13. package/dist/@types/components/modal/components/modal-default/modal-default.vue.d.ts +110 -0
  14. package/dist/@types/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +81 -0
  15. package/dist/@types/components/modal/index.d.ts +2 -0
  16. package/dist/@types/components/modal/modal.types.d.ts +22 -0
  17. package/dist/@types/components/modal/modal.vue.d.ts +129 -0
  18. package/dist/@types/components/radio-group/components/radio-button/radio-button.vue.d.ts +1 -0
  19. package/dist/@types/components/summary-grid/components/grid-layout/grid-layout.types.d.ts +8 -0
  20. package/dist/@types/components/summary-grid/components/grid-layout/grid-layout.vue.d.ts +16 -0
  21. package/dist/@types/components/toggle/toggle.vue.d.ts +1 -0
  22. package/dist/@types/components.d.ts +2 -0
  23. package/dist/@types/directives/index.d.ts +1 -0
  24. package/dist/@types/directives/keyboard-navigation/index.d.ts +2 -0
  25. package/dist/@types/directives/keyboard-navigation/keyboard-navigation.d.ts +2 -0
  26. package/dist/@types/directives/keyboard-navigation/keyboard-navigation.types.d.ts +7 -0
  27. package/dist/@types/index.d.ts +1 -0
  28. package/dist/index.js +4271 -3549
  29. package/dist/index.js.map +1 -1
  30. package/dist/web-types.json +425 -7
  31. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "@adyen/bento-vue2",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -641,6 +641,90 @@
641
641
  "symbol": "default"
642
642
  }
643
643
  },
644
+ {
645
+ "name": "base-modal",
646
+ "description": "",
647
+ "attributes": [
648
+ {
649
+ "name": "modalRole",
650
+ "description": "Defines whether the modal will be an alert modal",
651
+ "value": {
652
+ "kind": "expression",
653
+ "type": "string"
654
+ },
655
+ "default": "BentoModalRole.DIALOG"
656
+ },
657
+ {
658
+ "name": "isDismissible",
659
+ "required": true,
660
+ "description": "If set to true, it allows the modal to be closed by clicking outside of it",
661
+ "value": {
662
+ "kind": "expression",
663
+ "type": "boolean"
664
+ }
665
+ },
666
+ {
667
+ "name": "hideCloseButton",
668
+ "required": true,
669
+ "description": "Hides a cross icon on the right side of the title",
670
+ "value": {
671
+ "kind": "expression",
672
+ "type": "boolean"
673
+ }
674
+ },
675
+ {
676
+ "name": "customPadding",
677
+ "description": "If provided, manages the padding of the whole modal container",
678
+ "value": {
679
+ "kind": "expression",
680
+ "type": "string"
681
+ },
682
+ "default": "null"
683
+ },
684
+ {
685
+ "name": "isOpen",
686
+ "required": true,
687
+ "description": "Controls the modal's state from the outside. Set it to true to open the modal",
688
+ "value": {
689
+ "kind": "expression",
690
+ "type": "boolean"
691
+ }
692
+ },
693
+ {
694
+ "name": "size",
695
+ "description": "Sets the width of the modal",
696
+ "value": {
697
+ "kind": "expression",
698
+ "type": "BentoModalSize"
699
+ },
700
+ "default": "BentoModalSize.SMALL"
701
+ },
702
+ {
703
+ "name": "initiallyOpen",
704
+ "description": "Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.",
705
+ "value": {
706
+ "kind": "expression",
707
+ "type": "boolean"
708
+ },
709
+ "default": "false"
710
+ }
711
+ ],
712
+ "slots": [
713
+ {
714
+ "name": "default"
715
+ },
716
+ {
717
+ "name": "content"
718
+ },
719
+ {
720
+ "name": "actions"
721
+ }
722
+ ],
723
+ "source": {
724
+ "module": "./src/components/modal/components/base-modal/base-modal.vue",
725
+ "symbol": "default"
726
+ }
727
+ },
644
728
  {
645
729
  "name": "bento-alert",
646
730
  "description": "An Alert component is used to display a persistent\nnotification containing information important to the user",
@@ -744,6 +828,15 @@
744
828
  },
745
829
  "default": "null"
746
830
  },
831
+ {
832
+ "name": "buttonHasChevron",
833
+ "description": "Toggles if a chevron icon should be displayed in the button.\nThe chevron will change depending on the open state of the filter.",
834
+ "value": {
835
+ "kind": "expression",
836
+ "type": "boolean"
837
+ },
838
+ "default": "false"
839
+ },
747
840
  {
748
841
  "name": "disableApplyButton",
749
842
  "description": "Disable the \"apply\" button",
@@ -1854,11 +1947,24 @@
1854
1947
  "type": "boolean"
1855
1948
  },
1856
1949
  "default": "false"
1857
- }
1858
- ],
1859
- "events": [
1950
+ },
1860
1951
  {
1861
- "name": "click"
1952
+ "name": "isFilterOpen",
1953
+ "description": "Signifies if the filter is open or closed.",
1954
+ "value": {
1955
+ "kind": "expression",
1956
+ "type": "boolean"
1957
+ },
1958
+ "default": "false"
1959
+ },
1960
+ {
1961
+ "name": "hasChevron",
1962
+ "description": "Toggles if a chevron icon should be displayed in the button.\nThe chevron will change depending on the open state of the filter.",
1963
+ "value": {
1964
+ "kind": "expression",
1965
+ "type": "boolean"
1966
+ },
1967
+ "default": "false"
1862
1968
  }
1863
1969
  ],
1864
1970
  "slots": [
@@ -1949,7 +2055,7 @@
1949
2055
  "description": "JavaScript \"Date\" object for when the content was last updated",
1950
2056
  "value": {
1951
2057
  "kind": "expression",
1952
- "type": "date"
2058
+ "type": "date|number"
1953
2059
  },
1954
2060
  "default": "null"
1955
2061
  }
@@ -2567,6 +2673,294 @@
2567
2673
  "symbol": "default"
2568
2674
  }
2569
2675
  },
2676
+ {
2677
+ "name": "bento-modal",
2678
+ "description": "Modal is a window that appear over any other page content and focus user attention exclusively on one task or piece of information at the moment.",
2679
+ "attributes": [
2680
+ {
2681
+ "name": "variant",
2682
+ "description": "Choose between default or dialog versions of modal",
2683
+ "value": {
2684
+ "kind": "expression",
2685
+ "type": "BentoModalVariant"
2686
+ },
2687
+ "default": "BentoModalVariant.DEFAULT"
2688
+ },
2689
+ {
2690
+ "name": "isDismissible",
2691
+ "description": "If set to true, it allows the modal to be closed by clicking outside of it",
2692
+ "value": {
2693
+ "kind": "expression",
2694
+ "type": "boolean"
2695
+ },
2696
+ "default": "null"
2697
+ },
2698
+ {
2699
+ "name": "isOpen",
2700
+ "description": "Controls the modal's state from the outside. Set it to true to open the modal",
2701
+ "value": {
2702
+ "kind": "expression",
2703
+ "type": "boolean"
2704
+ },
2705
+ "default": "false"
2706
+ },
2707
+ {
2708
+ "name": "actions",
2709
+ "description": "List of actions that will be used to render the buttons.\nFirst element in the list will be rendered as \"primary\".\nAll elements after the first will be rendered as \"secondary\".\n\nEach object in the list should have a `title`, an `event` and\n(optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n\n`title`: Button's text.\n\n`event`: Event triggered when clicking the Button.\n\n`icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n\n```\n[{\n title: 'Primary',2\n event: () => { ... },\n icon: FourPeopleIcon\n}, {\n title: 'Secondary',\n event: () => { ... }\n}]\n```",
2710
+ "value": {
2711
+ "kind": "expression",
2712
+ "type": "BentoButtonActionsList"
2713
+ },
2714
+ "default": "null"
2715
+ },
2716
+ {
2717
+ "name": "hideCloseButton",
2718
+ "description": "Hides a cross icon on the right side of the title",
2719
+ "value": {
2720
+ "kind": "expression",
2721
+ "type": "boolean"
2722
+ },
2723
+ "default": "false"
2724
+ },
2725
+ {
2726
+ "name": "size",
2727
+ "description": "Sets the width of the modal",
2728
+ "value": {
2729
+ "kind": "expression",
2730
+ "type": "BentoModalSize"
2731
+ },
2732
+ "default": "BentoModalSize.SMALL"
2733
+ },
2734
+ {
2735
+ "name": "customPadding",
2736
+ "description": "If provided, manages the padding of the whole modal container",
2737
+ "value": {
2738
+ "kind": "expression",
2739
+ "type": "string"
2740
+ },
2741
+ "default": "null"
2742
+ },
2743
+ {
2744
+ "name": "actionsLabel",
2745
+ "description": "Text label that is displayed left to the action buttons",
2746
+ "value": {
2747
+ "kind": "expression",
2748
+ "type": "string"
2749
+ },
2750
+ "default": "null"
2751
+ },
2752
+ {
2753
+ "name": "destructiveActions",
2754
+ "description": "If passed - sets first button color to red",
2755
+ "value": {
2756
+ "kind": "expression",
2757
+ "type": "boolean"
2758
+ },
2759
+ "default": "false"
2760
+ },
2761
+ {
2762
+ "name": "dialogType",
2763
+ "description": "Changes the visual styling of action buttons",
2764
+ "value": {
2765
+ "kind": "expression",
2766
+ "type": "BentoModalDialogType"
2767
+ },
2768
+ "default": "BentoModalDialogType.CONFIRMATION"
2769
+ },
2770
+ {
2771
+ "name": "content",
2772
+ "description": "Text that will be displayed in the content section of Modal",
2773
+ "value": {
2774
+ "kind": "expression",
2775
+ "type": "string"
2776
+ },
2777
+ "default": "null"
2778
+ }
2779
+ ],
2780
+ "slots": [
2781
+ {
2782
+ "name": "default"
2783
+ },
2784
+ {
2785
+ "name": "content"
2786
+ }
2787
+ ],
2788
+ "source": {
2789
+ "module": "./src/components/modal/modal.vue",
2790
+ "symbol": "default"
2791
+ }
2792
+ },
2793
+ {
2794
+ "name": "bento-modal-default",
2795
+ "description": "",
2796
+ "attributes": [
2797
+ {
2798
+ "name": "isOpen",
2799
+ "required": true,
2800
+ "description": "Controls the modal's state from the outside. Set it to true to open the modal",
2801
+ "value": {
2802
+ "kind": "expression",
2803
+ "type": "boolean"
2804
+ }
2805
+ },
2806
+ {
2807
+ "name": "isDismissible",
2808
+ "required": true,
2809
+ "description": "If set to true, it allows the modal to be closed by clicking outside of it",
2810
+ "value": {
2811
+ "kind": "expression",
2812
+ "type": "boolean"
2813
+ }
2814
+ },
2815
+ {
2816
+ "name": "hideCloseButton",
2817
+ "description": "Hides a cross icon on the right side of the title",
2818
+ "value": {
2819
+ "kind": "expression",
2820
+ "type": "boolean"
2821
+ },
2822
+ "default": "false"
2823
+ },
2824
+ {
2825
+ "name": "size",
2826
+ "required": true,
2827
+ "description": "Sets the width of the modal",
2828
+ "value": {
2829
+ "kind": "expression",
2830
+ "type": "BentoModalSize"
2831
+ }
2832
+ },
2833
+ {
2834
+ "name": "customPadding",
2835
+ "description": "If provided, manages the padding of the whole modal container",
2836
+ "value": {
2837
+ "kind": "expression",
2838
+ "type": "string"
2839
+ },
2840
+ "default": "null"
2841
+ },
2842
+ {
2843
+ "name": "actions",
2844
+ "description": "List of actions that will be used to render the buttons.\nFirst element in the list will be rendered as \"primary\".\nAll elements after the first will be rendered as \"secondary\".\nBut you may change the color of 1-st action to red with 'critial' key\nNot more than 3 action buttons can be provided\nOr 2 action buttons and 1 Label for them\n\nEach object in the list should have a `title`, an `event` and\n(optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n\n`title`: Button's text.\n\n`event`: Event triggered when clicking the Button.\n\n`icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n\n```\n[{\n title: 'Primary',2\n event: () => { ... },\n icon: FourPeopleIcon\n}, {\n title: 'Secondary',\n event: () => { ... }\n}]\n```",
2845
+ "value": {
2846
+ "kind": "expression",
2847
+ "type": "BentoButtonActionsList"
2848
+ },
2849
+ "default": "null"
2850
+ },
2851
+ {
2852
+ "name": "actionsLabel",
2853
+ "description": "Text label that is displayed left to the action buttons",
2854
+ "value": {
2855
+ "kind": "expression",
2856
+ "type": "string"
2857
+ },
2858
+ "default": "null"
2859
+ },
2860
+ {
2861
+ "name": "destructiveActions",
2862
+ "description": "If passed - sets first button color to red",
2863
+ "value": {
2864
+ "kind": "expression",
2865
+ "type": "boolean"
2866
+ },
2867
+ "default": "false"
2868
+ },
2869
+ {
2870
+ "name": "initiallyOpen",
2871
+ "description": "Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.",
2872
+ "value": {
2873
+ "kind": "expression",
2874
+ "type": "boolean"
2875
+ },
2876
+ "default": "false"
2877
+ }
2878
+ ],
2879
+ "slots": [
2880
+ {
2881
+ "name": "default"
2882
+ },
2883
+ {
2884
+ "name": "content"
2885
+ },
2886
+ {
2887
+ "name": "actions"
2888
+ }
2889
+ ],
2890
+ "source": {
2891
+ "module": "./src/components/modal/components/modal-default/modal-default.vue",
2892
+ "symbol": "default"
2893
+ }
2894
+ },
2895
+ {
2896
+ "name": "bento-modal-dialog",
2897
+ "description": "",
2898
+ "attributes": [
2899
+ {
2900
+ "name": "isOpen",
2901
+ "required": true,
2902
+ "description": "Controls the modal's state from the outside. Set it to true to open the modal",
2903
+ "value": {
2904
+ "kind": "expression",
2905
+ "type": "boolean"
2906
+ }
2907
+ },
2908
+ {
2909
+ "name": "isDismissible",
2910
+ "required": true,
2911
+ "description": "If set to true, it allows the modal to be closed by clicking outside of it",
2912
+ "value": {
2913
+ "kind": "expression",
2914
+ "type": "boolean"
2915
+ }
2916
+ },
2917
+ {
2918
+ "name": "dialogType",
2919
+ "required": true,
2920
+ "description": "Sets different action buttons styling and appearance",
2921
+ "value": {
2922
+ "kind": "expression",
2923
+ "type": "BentoModalDialogType"
2924
+ }
2925
+ },
2926
+ {
2927
+ "name": "content",
2928
+ "required": true,
2929
+ "description": "Text that is displayed in the content section of modal",
2930
+ "value": {
2931
+ "kind": "expression",
2932
+ "type": "string"
2933
+ }
2934
+ },
2935
+ {
2936
+ "name": "actions",
2937
+ "description": "List of actions that will be used to render the buttons.\nOnly 1 action button is allowed for Modal Dialog\n\nEach object in the list should have a `title`, an `event` and\n(optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n\n`title`: Button's text.\n\n`event`: Event triggered when clicking the Button.\n\n`icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n\n```\n[{\n title: 'Primary',2\n event: () => { ... },\n icon: FourPeopleIcon\n}]\n```",
2938
+ "value": {
2939
+ "kind": "expression",
2940
+ "type": "BentoButtonActionsList"
2941
+ },
2942
+ "default": "null"
2943
+ },
2944
+ {
2945
+ "name": "initiallyOpen",
2946
+ "description": "Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.",
2947
+ "value": {
2948
+ "kind": "expression",
2949
+ "type": "boolean"
2950
+ },
2951
+ "default": "false"
2952
+ }
2953
+ ],
2954
+ "slots": [
2955
+ {
2956
+ "name": "default"
2957
+ }
2958
+ ],
2959
+ "source": {
2960
+ "module": "./src/components/modal/components/modal-dialog/modal-dialog.vue",
2961
+ "symbol": "default"
2962
+ }
2963
+ },
2570
2964
  {
2571
2965
  "name": "bento-pagination",
2572
2966
  "description": "Paginiation component to help users page through data sets.\n\nThere are two ways of doing navigation in this component:\n 1. (Basic) You tell the component if there is a next page (hasNext)\n 2. (Enhanced) You tell the component:\n - How many total items exist (totalCount)\n - The max number of items that you show/fetch per page (size)\n - In this case you should not set the hasNext props\n\nIf you have the data available and opt to use the Enhanced way you get extra controls:\n - Page dropdown selector\n - Last page button\n - \"Showing 10 of 200 items\" text",
@@ -2944,7 +3338,7 @@
2944
3338
  },
2945
3339
  {
2946
3340
  "name": "bento-radio-group",
2947
- "description": "A radio group component should be used whenever it is necessary to use a set of radio buttons\nThis component conforms to the official WAI-ARIA guidelines for grouping controls: https://www.w3.org/WAI/tutorials/forms/grouping/\n\nimport { BentoRadioGroup, BentoRadioGroupVariant } from '@adyen/bento-vue2/';\n\nexport default {\n components: { BentoRadioGroup },\n template: `\n <bento-radio-group\n label=\"Your group label\"\n :items=\"[\n { value: 1, label: 'Your label' },\n { value: 2, label: 'Another label', description: 'Your sub label' },\n ]\"\n :variant=\"BentoRadioGroupVariant.HORIZONTAL\"\n />\n `\n};",
3341
+ "description": "A radio group component should be used whenever it is necessary to use a set of radio buttons\nThis component conforms to the official WAI-ARIA guidelines for grouping controls: https://www.w3.org/WAI/tutorials/forms/grouping/\n\nimport { BentoRadioGroup, BentoRadioGroupVariant } from '@adyen/bento-vue2/';\n\nexport default {\n components: { BentoRadioGroup },\n template: `\n <bento-radio-group\n label=\"Your group label\"\n :items=\"[\n { value: 1, label: 'Your label' },\n { value: 2, label: 'Another label', description: 'Your descriptive sub label' },\n ]\"\n :variant=\"BentoRadioGroupVariant.HORIZONTAL\"\n />\n `\n};",
2948
3342
  "attributes": [
2949
3343
  {
2950
3344
  "name": "items",
@@ -3397,6 +3791,9 @@
3397
3791
  },
3398
3792
  {
3399
3793
  "name": "subLabel"
3794
+ },
3795
+ {
3796
+ "name": "description"
3400
3797
  }
3401
3798
  ],
3402
3799
  "source": {
@@ -4445,6 +4842,24 @@
4445
4842
  "symbol": "default"
4446
4843
  }
4447
4844
  },
4845
+ {
4846
+ "name": "grid-layout",
4847
+ "description": "Component used to render the grid layout in the bento-summary-grid. For internal use only",
4848
+ "attributes": [
4849
+ {
4850
+ "name": "items",
4851
+ "required": true,
4852
+ "value": {
4853
+ "kind": "expression",
4854
+ "type": "GridLayoutItem[]"
4855
+ }
4856
+ }
4857
+ ],
4858
+ "source": {
4859
+ "module": "./src/components/summary-grid/components/grid-layout/grid-layout.vue",
4860
+ "symbol": "default"
4861
+ }
4862
+ },
4448
4863
  {
4449
4864
  "name": "input-field.test",
4450
4865
  "description": "",
@@ -5049,6 +5464,9 @@
5049
5464
  },
5050
5465
  {
5051
5466
  "name": "subLabel"
5467
+ },
5468
+ {
5469
+ "name": "description"
5052
5470
  }
5053
5471
  ],
5054
5472
  "source": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/bento-vue2",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Adyen Bento Vue2 components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -50,7 +50,7 @@
50
50
  "url": "git@github.com:Adyen/bento.git"
51
51
  },
52
52
  "dependencies": {
53
- "@adyen/bento-design-tokens": "0.4.4",
53
+ "@adyen/bento-design-tokens": "0.4.5",
54
54
  "@adyen/ui-assets-flag-icons": "1.2.0",
55
55
  "@adyen/ui-assets-icons-16": "3.1.0",
56
56
  "@adyen/ui-assets-payment-method-icons": "5.2.0",
@@ -69,7 +69,7 @@
69
69
  "react": "16.14.0"
70
70
  },
71
71
  "devDependencies": {
72
- "@adyen/bento-cli": "0.0.8",
72
+ "@adyen/bento-cli": "0.0.9",
73
73
  "@playwright/experimental-ct-vue2": "1.30.0",
74
74
  "@playwright/test": "^1.21.0",
75
75
  "@storybook/addon-a11y": "7.0.4",