@brightspot/ui 1.6.0 → 1.8.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/dist/components/dropdown/Dropdown.d.ts +172 -0
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/dropdown/Dropdown.js +407 -0
- package/dist/components/dropdown/Dropdown.js.map +1 -0
- package/dist/components/dropdown/DropdownItem.d.ts +108 -0
- package/dist/components/dropdown/DropdownItem.d.ts.map +1 -0
- package/dist/components/dropdown/DropdownItem.js +210 -0
- package/dist/components/dropdown/DropdownItem.js.map +1 -0
- package/dist/components/dropdown/DropdownMenu.d.ts +117 -0
- package/dist/components/dropdown/DropdownMenu.d.ts.map +1 -0
- package/dist/components/dropdown/DropdownMenu.js +295 -0
- package/dist/components/dropdown/DropdownMenu.js.map +1 -0
- package/dist/components/icon-button/IconButton.d.ts +85 -0
- package/dist/components/icon-button/IconButton.d.ts.map +1 -0
- package/dist/components/icon-button/IconButton.js +171 -0
- package/dist/components/icon-button/IconButton.js.map +1 -0
- package/dist/components/pagination/Pagination.d.ts +0 -1
- package/dist/components/pagination/Pagination.d.ts.map +1 -1
- package/dist/components/pagination/Pagination.js +22 -22
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/custom-elements.json +1212 -1
- package/dist/storybook/assets/Avatar.stories-XfJUoW42.js +213 -0
- package/dist/storybook/assets/{AvatarGroup.stories-BBkQuFKk.js → AvatarGroup.stories-CPkv0mVI.js} +1 -1
- package/dist/storybook/assets/{Badge.stories-mFZsls7i.js → Badge.stories-Z42hQyzK.js} +3 -3
- package/dist/storybook/assets/{Button.stories-CAWX17L1.js → Button.stories-DTcnCrp-.js} +1 -1
- package/dist/storybook/assets/{CircularProgress.stories-DBVt4Cg2.js → CircularProgress.stories-B59nHh_k.js} +6 -6
- package/dist/storybook/assets/{ClipboardMixin.stories-BH9E-OI6.js → ClipboardMixin.stories-C6DraZ93.js} +1 -1
- package/dist/storybook/assets/{Color-6BZIO3FS-CVnTzq2p.js → Color-6BZIO3FS-BuNGIaf5.js} +1 -1
- package/dist/storybook/assets/{Colors.stories-BFYmP0LL.js → Colors.stories-B3Capc8F.js} +1 -1
- package/dist/storybook/assets/{ComponentStatesMixin-Cu7YXkU8.js → ComponentStatesMixin-DRalOmcW.js} +1 -1
- package/dist/storybook/assets/{ComponentStatesMixin.stories-CAvyYt0H.js → ComponentStatesMixin.stories-TKD7YrVe.js} +1 -1
- package/dist/storybook/assets/{CopyToClipboard.stories-DbJZsp_L.js → CopyToClipboard.stories-Bv8jZ7TL.js} +1 -1
- package/dist/storybook/assets/{Debounce.stories-BiFiH1K9.js → Debounce.stories-CLwXI3OZ.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-LL677BLK-Bq6G4eeC.js → DocsRenderer-LL677BLK-DjMDalQg.js} +6 -6
- package/dist/storybook/assets/Dropdown.stories-D7X0Dbnt.js +697 -0
- package/dist/storybook/assets/{Events.stories-BsDBxh8_.js → Events.stories-Dgn1N8jT.js} +1 -1
- package/dist/storybook/assets/{Heading.stories-zGzWgHVO.js → Heading.stories-BcciQ3Ug.js} +1 -1
- package/dist/storybook/assets/{Icon.stories-B4T6sSwf.js → Icon.stories-BWqJoZUM.js} +11 -11
- package/dist/storybook/assets/IconButton.stories-BrMDAi9q.js +748 -0
- package/dist/storybook/assets/{LinearProgress.stories-qzqmUUwY.js → LinearProgress.stories-INijWBr_.js} +7 -7
- package/dist/storybook/assets/LucideDynamicLoader-jmdq8YDM.js +1 -0
- package/dist/storybook/assets/{Pagination.stories-B6Q-7taJ.js → Pagination.stories-CrExaWpC.js} +1 -1
- package/dist/storybook/assets/{Popover.stories-CGkU0SGv.js → Popover.stories-Bh6IUPG_.js} +5 -5
- package/dist/storybook/assets/{ReadyMixin-3YCzoG6W.js → ReadyMixin-C1lZU7vt.js} +1 -1
- package/dist/storybook/assets/{Rtc.stories-Y1MYTWAt.js → Rtc.stories-BHqFwgR7.js} +1 -1
- package/dist/storybook/assets/{ScrollShadow.stories-B9kSpLT1.js → ScrollShadow.stories-DnIj5cZF.js} +1 -1
- package/dist/storybook/assets/{Throttle.stories-BgvLDrS3.js → Throttle.stories-Dilsv90H.js} +1 -1
- package/dist/storybook/assets/Tooltip.stories-Dnb76OXa.js +143 -0
- package/dist/storybook/assets/{Widget.stories--JpqVyJe.js → Widget.stories-Cl-3dv15.js} +13 -13
- package/dist/storybook/assets/{WithTooltip-65CFNBJE-DNbD9hAX.js → WithTooltip-65CFNBJE-Bq21jhKM.js} +1 -1
- package/dist/storybook/assets/{formatter-EIJCOSYU-Cy8KIxab.js → formatter-EIJCOSYU-CwrejIu0.js} +1 -1
- package/dist/storybook/assets/if-defined-D1UQmdjo.js +1 -0
- package/dist/storybook/assets/iframe-CNxIA3cQ.css +1 -0
- package/dist/storybook/assets/{iframe-Dz6CxatW.js → iframe-CsKt54V3.js} +154 -154
- package/dist/storybook/assets/{index-CebChkmF.js → index-DQ0xe06s.js} +1 -1
- package/dist/storybook/assets/{onFind.stories-nHDImx0x.js → onFind.stories-CGeGoVR6.js} +1 -1
- package/dist/storybook/assets/{onRemove.stories-CBxYVPwd.js → onRemove.stories-DXOwfv14.js} +1 -1
- package/dist/storybook/assets/{onVisible.stories-D4Qewc9Y.js → onVisible.stories-DNzXceKW.js} +1 -1
- package/dist/storybook/assets/{style-map-BgW9piaW.js → style-map-kcS06w9f.js} +1 -1
- package/dist/storybook/assets/{syntaxhighlighter-ED5Y7EFY-CROW1475.js → syntaxhighlighter-ED5Y7EFY-BnpaJz4a.js} +1 -1
- package/dist/storybook/iframe.html +2 -2
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/tailwind-plugin-button.js +10 -0
- package/dist/tailwind-plugin-button.js.map +1 -1
- package/dist/tailwind-plugin-button.ts +10 -0
- package/dist/tailwind-plugin-dropdown.d.ts +2 -0
- package/dist/tailwind-plugin-dropdown.d.ts.map +1 -0
- package/dist/tailwind-plugin-dropdown.js +223 -0
- package/dist/tailwind-plugin-dropdown.js.map +1 -0
- package/dist/tailwind-plugin-dropdown.ts +249 -0
- package/dist/tailwind-plugin-pagination.js +9 -21
- package/dist/tailwind-plugin-pagination.js.map +1 -1
- package/dist/tailwind-plugin-pagination.ts +10 -21
- package/dist/util/EventEmitterMixin.d.ts +17 -0
- package/dist/util/EventEmitterMixin.d.ts.map +1 -1
- package/dist/util/EventEmitterMixin.js.map +1 -1
- package/docs/components/Avatar.md +62 -0
- package/docs/components/AvatarGroup.md +52 -0
- package/docs/components/Badge.md +58 -0
- package/docs/components/CircularProgress.md +55 -0
- package/docs/components/CopyToClipboard.md +54 -0
- package/docs/components/Dropdown.md +100 -0
- package/docs/components/DropdownItem.md +64 -0
- package/docs/components/DropdownMenu.md +81 -0
- package/docs/components/Icon.md +61 -0
- package/docs/components/IconButton.md +63 -0
- package/docs/components/LinearProgress.md +40 -0
- package/docs/components/Pagination.md +95 -0
- package/docs/components/Popover.md +71 -0
- package/docs/components/README.md +25 -0
- package/docs/components/Widget.md +79 -0
- package/package.json +3 -2
- package/dist/storybook/assets/Avatar.stories-CafEcy4T.js +0 -214
- package/dist/storybook/assets/Tooltip.stories-POo1M-ew.js +0 -143
- package/dist/storybook/assets/if-defined-CngSGyRu.js +0 -1
- package/dist/storybook/assets/iframe-DiT9Iz2T.css +0 -1
|
@@ -674,6 +674,1002 @@
|
|
|
674
674
|
}
|
|
675
675
|
]
|
|
676
676
|
},
|
|
677
|
+
{
|
|
678
|
+
"kind": "javascript-module",
|
|
679
|
+
"path": "src/components/dropdown/Dropdown.ts",
|
|
680
|
+
"declarations": [
|
|
681
|
+
{
|
|
682
|
+
"kind": "class",
|
|
683
|
+
"description": "A dropdown component that renders a trigger button and manages a floating panel\ncontaining a `btu-dropdown-menu`.\n\nUses the native Popover API and CSS anchor positioning for panel management.\nThe trigger button is built with existing `btu-button-*` classes.\n\n**Trigger button styling:** Set `--button-*` CSS custom properties on `<btu-dropdown>`\nor a parent element to customize the trigger via CSS inheritance (e.g.,\n`--button-border-radius`, `--button-color-background`). See\n`tailwind-plugin-button.ts` for available props.",
|
|
684
|
+
"name": "Dropdown",
|
|
685
|
+
"cssProperties": [
|
|
686
|
+
{
|
|
687
|
+
"description": "Panel background color (default: white)",
|
|
688
|
+
"name": "--dropdown-panel-background"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"description": "Panel border color (default: gray-200)",
|
|
692
|
+
"name": "--dropdown-panel-border-color"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"description": "Panel border radius (default: borderRadius.lg)",
|
|
696
|
+
"name": "--dropdown-panel-border-radius"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"description": "Panel minimum width (default: max(12rem, anchor-size(width)))",
|
|
700
|
+
"name": "--dropdown-panel-min-width"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"description": "Item background color (default: transparent)",
|
|
704
|
+
"name": "--dropdown-item-background"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"description": "Item text color (default: gray-700)",
|
|
708
|
+
"name": "--dropdown-item-color"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"description": "Item hover background (default: gray-100)",
|
|
712
|
+
"name": "--dropdown-item-hover-background"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"description": "Item hover text color (default: gray-900)",
|
|
716
|
+
"name": "--dropdown-item-hover-color"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"description": "Selected item background (default: primary-50)",
|
|
720
|
+
"name": "--dropdown-item-selected-background"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"description": "Selected item text color (default: primary-700)",
|
|
724
|
+
"name": "--dropdown-item-selected-color"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"description": "Item font size (default: fontSize.sm)",
|
|
728
|
+
"name": "--dropdown-item-font-size"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"description": "Divider line color (default: gray-200)",
|
|
732
|
+
"name": "--dropdown-divider-color"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"description": "Empty state text color (default: gray-400)",
|
|
736
|
+
"name": "--dropdown-empty-color"
|
|
737
|
+
}
|
|
738
|
+
],
|
|
739
|
+
"slots": [
|
|
740
|
+
{
|
|
741
|
+
"description": "A `btu-dropdown-menu` element containing `btu-dropdown-item` children",
|
|
742
|
+
"name": ""
|
|
743
|
+
}
|
|
744
|
+
],
|
|
745
|
+
"members": [
|
|
746
|
+
{
|
|
747
|
+
"kind": "field",
|
|
748
|
+
"name": "label",
|
|
749
|
+
"type": {
|
|
750
|
+
"text": "string"
|
|
751
|
+
},
|
|
752
|
+
"default": "''",
|
|
753
|
+
"description": "Trigger button text.",
|
|
754
|
+
"attribute": "label"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"kind": "field",
|
|
758
|
+
"name": "open",
|
|
759
|
+
"type": {
|
|
760
|
+
"text": "boolean"
|
|
761
|
+
},
|
|
762
|
+
"default": "false",
|
|
763
|
+
"description": "Panel visibility state. Can be set programmatically (e.g., for tour UIs)\n— syncs to `showPopover()`/`hidePopover()` in `updated()`.",
|
|
764
|
+
"attribute": "open",
|
|
765
|
+
"reflects": true
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"kind": "field",
|
|
769
|
+
"name": "placement",
|
|
770
|
+
"type": {
|
|
771
|
+
"text": "Placement"
|
|
772
|
+
},
|
|
773
|
+
"default": "'bottom-start'",
|
|
774
|
+
"description": "Panel placement: 'bottom-start', 'bottom-end', 'top-start', 'top-end'.",
|
|
775
|
+
"attribute": "placement"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"kind": "field",
|
|
779
|
+
"name": "size",
|
|
780
|
+
"type": {
|
|
781
|
+
"text": "Size"
|
|
782
|
+
},
|
|
783
|
+
"default": "'medium'",
|
|
784
|
+
"description": "Button size: 'small', 'medium', 'large'.",
|
|
785
|
+
"attribute": "size"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"kind": "field",
|
|
789
|
+
"name": "disabled",
|
|
790
|
+
"type": {
|
|
791
|
+
"text": "boolean"
|
|
792
|
+
},
|
|
793
|
+
"default": "false",
|
|
794
|
+
"description": "Prevents opening.",
|
|
795
|
+
"attribute": "disabled",
|
|
796
|
+
"reflects": true
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"kind": "field",
|
|
800
|
+
"name": "variant",
|
|
801
|
+
"type": {
|
|
802
|
+
"text": "Variant"
|
|
803
|
+
},
|
|
804
|
+
"default": "'secondary'",
|
|
805
|
+
"description": "Button variant: 'primary', 'secondary', 'tertiary', 'primary-clear', 'secondary-clear', 'tertiary-clear'.",
|
|
806
|
+
"attribute": "variant"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"kind": "field",
|
|
810
|
+
"name": "iconSymbol",
|
|
811
|
+
"type": {
|
|
812
|
+
"text": "string"
|
|
813
|
+
},
|
|
814
|
+
"default": "''",
|
|
815
|
+
"description": "Lucide icon symbol for the trigger.",
|
|
816
|
+
"attribute": "icon-symbol"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"kind": "field",
|
|
820
|
+
"name": "iconPosition",
|
|
821
|
+
"type": {
|
|
822
|
+
"text": "'leading' | 'trailing'"
|
|
823
|
+
},
|
|
824
|
+
"default": "'leading'",
|
|
825
|
+
"description": "Icon position: 'leading' or 'trailing'.",
|
|
826
|
+
"attribute": "icon-position"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"kind": "field",
|
|
830
|
+
"name": "iconOnly",
|
|
831
|
+
"type": {
|
|
832
|
+
"text": "boolean"
|
|
833
|
+
},
|
|
834
|
+
"default": "false",
|
|
835
|
+
"description": "Hides label, shows icon only.",
|
|
836
|
+
"attribute": "icon-only"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"kind": "field",
|
|
840
|
+
"name": "stayOpenOnSelect",
|
|
841
|
+
"type": {
|
|
842
|
+
"text": "boolean"
|
|
843
|
+
},
|
|
844
|
+
"default": "false",
|
|
845
|
+
"description": "Keeps panel open on item click.",
|
|
846
|
+
"attribute": "stay-open-on-select"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"kind": "field",
|
|
850
|
+
"name": "noChevron",
|
|
851
|
+
"type": {
|
|
852
|
+
"text": "boolean"
|
|
853
|
+
},
|
|
854
|
+
"default": "false",
|
|
855
|
+
"description": "Hides the chevron icon on the trigger button.",
|
|
856
|
+
"attribute": "no-chevron",
|
|
857
|
+
"reflects": true
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"kind": "method",
|
|
861
|
+
"name": "_getButtonClasses",
|
|
862
|
+
"privacy": "private",
|
|
863
|
+
"return": {
|
|
864
|
+
"type": {
|
|
865
|
+
"text": "string"
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
"description": "Build the button class string based on variant and size"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"kind": "method",
|
|
872
|
+
"name": "_showPanel",
|
|
873
|
+
"privacy": "private",
|
|
874
|
+
"return": {
|
|
875
|
+
"type": {
|
|
876
|
+
"text": "void"
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
"description": "Show the dropdown panel"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"kind": "method",
|
|
883
|
+
"name": "_hidePanel",
|
|
884
|
+
"privacy": "private",
|
|
885
|
+
"return": {
|
|
886
|
+
"type": {
|
|
887
|
+
"text": "void"
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
"description": "Hide the dropdown panel"
|
|
891
|
+
}
|
|
892
|
+
],
|
|
893
|
+
"events": [
|
|
894
|
+
{
|
|
895
|
+
"type": {
|
|
896
|
+
"text": "CustomEvent"
|
|
897
|
+
},
|
|
898
|
+
"description": "Fired after first render and initialization",
|
|
899
|
+
"name": "btu-dropdown-ready"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"type": {
|
|
903
|
+
"text": "CustomEvent"
|
|
904
|
+
},
|
|
905
|
+
"description": "Fired when the dropdown panel opens",
|
|
906
|
+
"name": "btu-dropdown-show"
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"type": {
|
|
910
|
+
"text": "CustomEvent"
|
|
911
|
+
},
|
|
912
|
+
"description": "Fired when the dropdown panel closes",
|
|
913
|
+
"name": "btu-dropdown-hide"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"type": {
|
|
917
|
+
"text": "CustomEvent<{label: string, selected: boolean}>"
|
|
918
|
+
},
|
|
919
|
+
"description": "Fired when a menu item is activated (bubbles from btu-dropdown-item)",
|
|
920
|
+
"name": "btu-dropdown-item-select"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"type": {
|
|
924
|
+
"text": "CustomEvent<{label: string, favorited: boolean}>"
|
|
925
|
+
},
|
|
926
|
+
"description": "Fired when a menu item's favorite is toggled (bubbles from btu-dropdown-item)",
|
|
927
|
+
"name": "btu-dropdown-item-favorite"
|
|
928
|
+
}
|
|
929
|
+
],
|
|
930
|
+
"attributes": [
|
|
931
|
+
{
|
|
932
|
+
"name": "label",
|
|
933
|
+
"type": {
|
|
934
|
+
"text": "string"
|
|
935
|
+
},
|
|
936
|
+
"default": "''",
|
|
937
|
+
"description": "Trigger button text.",
|
|
938
|
+
"fieldName": "label",
|
|
939
|
+
"attribute": "label"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"name": "open",
|
|
943
|
+
"type": {
|
|
944
|
+
"text": "boolean"
|
|
945
|
+
},
|
|
946
|
+
"default": "false",
|
|
947
|
+
"description": "Panel visibility state. Can be set programmatically (e.g., for tour UIs)\n— syncs to `showPopover()`/`hidePopover()` in `updated()`.",
|
|
948
|
+
"fieldName": "open",
|
|
949
|
+
"attribute": "open"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"name": "placement",
|
|
953
|
+
"type": {
|
|
954
|
+
"text": "Placement"
|
|
955
|
+
},
|
|
956
|
+
"default": "'bottom-start'",
|
|
957
|
+
"description": "Panel placement: 'bottom-start', 'bottom-end', 'top-start', 'top-end'.",
|
|
958
|
+
"fieldName": "placement",
|
|
959
|
+
"attribute": "placement"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"name": "size",
|
|
963
|
+
"type": {
|
|
964
|
+
"text": "Size"
|
|
965
|
+
},
|
|
966
|
+
"default": "'medium'",
|
|
967
|
+
"description": "Button size: 'small', 'medium', 'large'.",
|
|
968
|
+
"fieldName": "size",
|
|
969
|
+
"attribute": "size"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"name": "disabled",
|
|
973
|
+
"type": {
|
|
974
|
+
"text": "boolean"
|
|
975
|
+
},
|
|
976
|
+
"default": "false",
|
|
977
|
+
"description": "Prevents opening.",
|
|
978
|
+
"fieldName": "disabled",
|
|
979
|
+
"attribute": "disabled"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"name": "variant",
|
|
983
|
+
"type": {
|
|
984
|
+
"text": "Variant"
|
|
985
|
+
},
|
|
986
|
+
"default": "'secondary'",
|
|
987
|
+
"description": "Button variant: 'primary', 'secondary', 'tertiary', 'primary-clear', 'secondary-clear', 'tertiary-clear'.",
|
|
988
|
+
"fieldName": "variant",
|
|
989
|
+
"attribute": "variant"
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"name": "icon-symbol",
|
|
993
|
+
"type": {
|
|
994
|
+
"text": "string"
|
|
995
|
+
},
|
|
996
|
+
"default": "''",
|
|
997
|
+
"description": "Lucide icon symbol for the trigger.",
|
|
998
|
+
"fieldName": "iconSymbol",
|
|
999
|
+
"attribute": "icon-symbol"
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"name": "icon-position",
|
|
1003
|
+
"type": {
|
|
1004
|
+
"text": "'leading' | 'trailing'"
|
|
1005
|
+
},
|
|
1006
|
+
"default": "'leading'",
|
|
1007
|
+
"description": "Icon position: 'leading' or 'trailing'.",
|
|
1008
|
+
"fieldName": "iconPosition",
|
|
1009
|
+
"attribute": "icon-position"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"name": "icon-only",
|
|
1013
|
+
"type": {
|
|
1014
|
+
"text": "boolean"
|
|
1015
|
+
},
|
|
1016
|
+
"default": "false",
|
|
1017
|
+
"description": "Hides label, shows icon only.",
|
|
1018
|
+
"fieldName": "iconOnly",
|
|
1019
|
+
"attribute": "icon-only"
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"name": "stay-open-on-select",
|
|
1023
|
+
"type": {
|
|
1024
|
+
"text": "boolean"
|
|
1025
|
+
},
|
|
1026
|
+
"default": "false",
|
|
1027
|
+
"description": "Keeps panel open on item click.",
|
|
1028
|
+
"fieldName": "stayOpenOnSelect",
|
|
1029
|
+
"attribute": "stay-open-on-select"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"name": "no-chevron",
|
|
1033
|
+
"type": {
|
|
1034
|
+
"text": "boolean"
|
|
1035
|
+
},
|
|
1036
|
+
"default": "false",
|
|
1037
|
+
"description": "Hides the chevron icon on the trigger button.",
|
|
1038
|
+
"fieldName": "noChevron",
|
|
1039
|
+
"attribute": "no-chevron"
|
|
1040
|
+
}
|
|
1041
|
+
],
|
|
1042
|
+
"mixins": [
|
|
1043
|
+
{
|
|
1044
|
+
"name": "TooltipMixin",
|
|
1045
|
+
"module": "/src/util/TooltipMixin.js"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"name": "EventEmitterMixin",
|
|
1049
|
+
"module": "/src/util/EventEmitterMixin.js"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "ReadyMixin",
|
|
1053
|
+
"module": "/src/util/ReadyMixin.js"
|
|
1054
|
+
}
|
|
1055
|
+
],
|
|
1056
|
+
"superclass": {
|
|
1057
|
+
"name": "LitElement",
|
|
1058
|
+
"package": "lit"
|
|
1059
|
+
},
|
|
1060
|
+
"tagName": "btu-dropdown",
|
|
1061
|
+
"customElement": true
|
|
1062
|
+
}
|
|
1063
|
+
],
|
|
1064
|
+
"exports": [
|
|
1065
|
+
{
|
|
1066
|
+
"kind": "js",
|
|
1067
|
+
"name": "default",
|
|
1068
|
+
"declaration": {
|
|
1069
|
+
"name": "Dropdown",
|
|
1070
|
+
"module": "src/components/dropdown/Dropdown.ts"
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
"kind": "custom-element-definition",
|
|
1075
|
+
"name": "btu-dropdown",
|
|
1076
|
+
"declaration": {
|
|
1077
|
+
"name": "Dropdown",
|
|
1078
|
+
"module": "src/components/dropdown/Dropdown.ts"
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
]
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"kind": "javascript-module",
|
|
1085
|
+
"path": "src/components/dropdown/DropdownItem.ts",
|
|
1086
|
+
"declarations": [
|
|
1087
|
+
{
|
|
1088
|
+
"kind": "class",
|
|
1089
|
+
"description": "A menu item component for use inside `btu-dropdown-menu`.\n\nRenders as a menu item, divider, or subhead depending on the `type` property.\nSupports checkbox mode (inherited from parent menu), icons, keyboard shortcuts,\nand favorite toggles.",
|
|
1090
|
+
"name": "DropdownItem",
|
|
1091
|
+
"members": [
|
|
1092
|
+
{
|
|
1093
|
+
"kind": "field",
|
|
1094
|
+
"name": "label",
|
|
1095
|
+
"type": {
|
|
1096
|
+
"text": "string"
|
|
1097
|
+
},
|
|
1098
|
+
"default": "''",
|
|
1099
|
+
"description": "Display text for the item.",
|
|
1100
|
+
"attribute": "label"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"kind": "field",
|
|
1104
|
+
"name": "type",
|
|
1105
|
+
"type": {
|
|
1106
|
+
"text": "'default' | 'divider' | 'subhead'"
|
|
1107
|
+
},
|
|
1108
|
+
"default": "'default'",
|
|
1109
|
+
"description": "Item type: 'default', 'divider', or 'subhead'.",
|
|
1110
|
+
"attribute": "type"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"kind": "field",
|
|
1114
|
+
"name": "iconSymbol",
|
|
1115
|
+
"type": {
|
|
1116
|
+
"text": "string"
|
|
1117
|
+
},
|
|
1118
|
+
"default": "''",
|
|
1119
|
+
"description": "Lucide icon symbol.",
|
|
1120
|
+
"attribute": "icon-symbol"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"kind": "field",
|
|
1124
|
+
"name": "shortcut",
|
|
1125
|
+
"type": {
|
|
1126
|
+
"text": "string"
|
|
1127
|
+
},
|
|
1128
|
+
"default": "''",
|
|
1129
|
+
"description": "Keyboard shortcut display text.",
|
|
1130
|
+
"attribute": "shortcut"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"kind": "field",
|
|
1134
|
+
"name": "disabled",
|
|
1135
|
+
"type": {
|
|
1136
|
+
"text": "boolean"
|
|
1137
|
+
},
|
|
1138
|
+
"default": "false",
|
|
1139
|
+
"description": "Whether the item is disabled.",
|
|
1140
|
+
"attribute": "disabled"
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"kind": "field",
|
|
1144
|
+
"name": "selected",
|
|
1145
|
+
"type": {
|
|
1146
|
+
"text": "boolean"
|
|
1147
|
+
},
|
|
1148
|
+
"default": "false",
|
|
1149
|
+
"description": "Whether the item is selected/checked.",
|
|
1150
|
+
"attribute": "selected",
|
|
1151
|
+
"reflects": true
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"kind": "field",
|
|
1155
|
+
"name": "favorited",
|
|
1156
|
+
"type": {
|
|
1157
|
+
"text": "boolean"
|
|
1158
|
+
},
|
|
1159
|
+
"default": "false",
|
|
1160
|
+
"description": "Whether the item is favorited.",
|
|
1161
|
+
"attribute": "favorited"
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
"kind": "method",
|
|
1165
|
+
"name": "_toggleFavorite",
|
|
1166
|
+
"privacy": "private",
|
|
1167
|
+
"return": {
|
|
1168
|
+
"type": {
|
|
1169
|
+
"text": "void"
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
"parameters": [
|
|
1173
|
+
{
|
|
1174
|
+
"name": "e",
|
|
1175
|
+
"type": {
|
|
1176
|
+
"text": "Event"
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
],
|
|
1180
|
+
"description": "Toggle favorite state"
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"kind": "method",
|
|
1184
|
+
"name": "_handleClick",
|
|
1185
|
+
"privacy": "private",
|
|
1186
|
+
"return": {
|
|
1187
|
+
"type": {
|
|
1188
|
+
"text": "void"
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
],
|
|
1193
|
+
"events": [
|
|
1194
|
+
{
|
|
1195
|
+
"type": {
|
|
1196
|
+
"text": "CustomEvent"
|
|
1197
|
+
},
|
|
1198
|
+
"description": "Fired after first render",
|
|
1199
|
+
"name": "btu-dropdown-item-ready"
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
"type": {
|
|
1203
|
+
"text": "CustomEvent<{label: string, selected: boolean}>"
|
|
1204
|
+
},
|
|
1205
|
+
"description": "Fired when item is activated",
|
|
1206
|
+
"name": "btu-dropdown-item-select"
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
"type": {
|
|
1210
|
+
"text": "CustomEvent<{label: string, favorited: boolean}>"
|
|
1211
|
+
},
|
|
1212
|
+
"description": "Fired when favorite is toggled",
|
|
1213
|
+
"name": "btu-dropdown-item-favorite"
|
|
1214
|
+
}
|
|
1215
|
+
],
|
|
1216
|
+
"attributes": [
|
|
1217
|
+
{
|
|
1218
|
+
"name": "label",
|
|
1219
|
+
"type": {
|
|
1220
|
+
"text": "string"
|
|
1221
|
+
},
|
|
1222
|
+
"default": "''",
|
|
1223
|
+
"description": "Display text for the item.",
|
|
1224
|
+
"fieldName": "label",
|
|
1225
|
+
"attribute": "label"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"name": "type",
|
|
1229
|
+
"type": {
|
|
1230
|
+
"text": "'default' | 'divider' | 'subhead'"
|
|
1231
|
+
},
|
|
1232
|
+
"default": "'default'",
|
|
1233
|
+
"description": "Item type: 'default', 'divider', or 'subhead'.",
|
|
1234
|
+
"fieldName": "type",
|
|
1235
|
+
"attribute": "type"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"name": "icon-symbol",
|
|
1239
|
+
"type": {
|
|
1240
|
+
"text": "string"
|
|
1241
|
+
},
|
|
1242
|
+
"default": "''",
|
|
1243
|
+
"description": "Lucide icon symbol.",
|
|
1244
|
+
"fieldName": "iconSymbol",
|
|
1245
|
+
"attribute": "icon-symbol"
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"name": "shortcut",
|
|
1249
|
+
"type": {
|
|
1250
|
+
"text": "string"
|
|
1251
|
+
},
|
|
1252
|
+
"default": "''",
|
|
1253
|
+
"description": "Keyboard shortcut display text.",
|
|
1254
|
+
"fieldName": "shortcut",
|
|
1255
|
+
"attribute": "shortcut"
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"name": "disabled",
|
|
1259
|
+
"type": {
|
|
1260
|
+
"text": "boolean"
|
|
1261
|
+
},
|
|
1262
|
+
"default": "false",
|
|
1263
|
+
"description": "Whether the item is disabled.",
|
|
1264
|
+
"fieldName": "disabled",
|
|
1265
|
+
"attribute": "disabled"
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"name": "selected",
|
|
1269
|
+
"type": {
|
|
1270
|
+
"text": "boolean"
|
|
1271
|
+
},
|
|
1272
|
+
"default": "false",
|
|
1273
|
+
"description": "Whether the item is selected/checked.",
|
|
1274
|
+
"fieldName": "selected",
|
|
1275
|
+
"attribute": "selected"
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"name": "favorited",
|
|
1279
|
+
"type": {
|
|
1280
|
+
"text": "boolean"
|
|
1281
|
+
},
|
|
1282
|
+
"default": "false",
|
|
1283
|
+
"description": "Whether the item is favorited.",
|
|
1284
|
+
"fieldName": "favorited",
|
|
1285
|
+
"attribute": "favorited"
|
|
1286
|
+
}
|
|
1287
|
+
],
|
|
1288
|
+
"mixins": [
|
|
1289
|
+
{
|
|
1290
|
+
"name": "EventEmitterMixin",
|
|
1291
|
+
"module": "/src/util/EventEmitterMixin.js"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"name": "ReadyMixin",
|
|
1295
|
+
"module": "/src/util/ReadyMixin.js"
|
|
1296
|
+
}
|
|
1297
|
+
],
|
|
1298
|
+
"superclass": {
|
|
1299
|
+
"name": "LitElement",
|
|
1300
|
+
"package": "lit"
|
|
1301
|
+
},
|
|
1302
|
+
"tagName": "btu-dropdown-item",
|
|
1303
|
+
"customElement": true
|
|
1304
|
+
}
|
|
1305
|
+
],
|
|
1306
|
+
"exports": [
|
|
1307
|
+
{
|
|
1308
|
+
"kind": "js",
|
|
1309
|
+
"name": "default",
|
|
1310
|
+
"declaration": {
|
|
1311
|
+
"name": "DropdownItem",
|
|
1312
|
+
"module": "src/components/dropdown/DropdownItem.ts"
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"kind": "custom-element-definition",
|
|
1317
|
+
"name": "btu-dropdown-item",
|
|
1318
|
+
"declaration": {
|
|
1319
|
+
"name": "DropdownItem",
|
|
1320
|
+
"module": "src/components/dropdown/DropdownItem.ts"
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
]
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"kind": "javascript-module",
|
|
1327
|
+
"path": "src/components/dropdown/DropdownMenu.ts",
|
|
1328
|
+
"declarations": [
|
|
1329
|
+
{
|
|
1330
|
+
"kind": "class",
|
|
1331
|
+
"description": "A menu container component that provides keyboard navigation and ARIA menu semantics.\n\nContains `btu-dropdown-item` children and manages roving tabindex, typeahead search,\nand keyboard navigation following the WAI-ARIA Menu Button Pattern.",
|
|
1332
|
+
"name": "DropdownMenu",
|
|
1333
|
+
"cssProperties": [
|
|
1334
|
+
{
|
|
1335
|
+
"description": "Empty state text color (default: gray-400)",
|
|
1336
|
+
"name": "--dropdown-empty-color"
|
|
1337
|
+
}
|
|
1338
|
+
],
|
|
1339
|
+
"slots": [
|
|
1340
|
+
{
|
|
1341
|
+
"description": "Menu items (`btu-dropdown-item` elements)",
|
|
1342
|
+
"name": ""
|
|
1343
|
+
}
|
|
1344
|
+
],
|
|
1345
|
+
"members": [
|
|
1346
|
+
{
|
|
1347
|
+
"kind": "field",
|
|
1348
|
+
"name": "name",
|
|
1349
|
+
"type": {
|
|
1350
|
+
"text": "string"
|
|
1351
|
+
},
|
|
1352
|
+
"default": "''",
|
|
1353
|
+
"description": "Accessible name for the menu, displayed in header when header is true.",
|
|
1354
|
+
"attribute": "name"
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"kind": "field",
|
|
1358
|
+
"name": "header",
|
|
1359
|
+
"type": {
|
|
1360
|
+
"text": "boolean"
|
|
1361
|
+
},
|
|
1362
|
+
"default": "false",
|
|
1363
|
+
"description": "Show header bar with menu name.",
|
|
1364
|
+
"attribute": "header"
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
"kind": "field",
|
|
1368
|
+
"name": "checkbox",
|
|
1369
|
+
"type": {
|
|
1370
|
+
"text": "boolean"
|
|
1371
|
+
},
|
|
1372
|
+
"default": "false",
|
|
1373
|
+
"description": "Enable checkbox mode for items (menuitemcheckbox role).",
|
|
1374
|
+
"attribute": "checkbox"
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
"kind": "field",
|
|
1378
|
+
"name": "icon",
|
|
1379
|
+
"type": {
|
|
1380
|
+
"text": "boolean"
|
|
1381
|
+
},
|
|
1382
|
+
"default": "false",
|
|
1383
|
+
"description": "Show icons before each item.",
|
|
1384
|
+
"attribute": "icon"
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"kind": "field",
|
|
1388
|
+
"name": "iconSymbol",
|
|
1389
|
+
"type": {
|
|
1390
|
+
"text": "string"
|
|
1391
|
+
},
|
|
1392
|
+
"default": "''",
|
|
1393
|
+
"description": "Fallback Lucide icon symbol for items without their own.",
|
|
1394
|
+
"attribute": "icon-symbol"
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
"kind": "field",
|
|
1398
|
+
"name": "favorites",
|
|
1399
|
+
"type": {
|
|
1400
|
+
"text": "boolean"
|
|
1401
|
+
},
|
|
1402
|
+
"default": "false",
|
|
1403
|
+
"description": "Show favorite toggle on each item.",
|
|
1404
|
+
"attribute": "favorites"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"kind": "field",
|
|
1408
|
+
"name": "shortcuts",
|
|
1409
|
+
"type": {
|
|
1410
|
+
"text": "boolean"
|
|
1411
|
+
},
|
|
1412
|
+
"default": "false",
|
|
1413
|
+
"description": "Show keyboard shortcut text on each item.",
|
|
1414
|
+
"attribute": "shortcuts"
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
"kind": "field",
|
|
1418
|
+
"name": "emptyMessage",
|
|
1419
|
+
"type": {
|
|
1420
|
+
"text": "string"
|
|
1421
|
+
},
|
|
1422
|
+
"default": "'No items available'",
|
|
1423
|
+
"description": "Message displayed when the menu has no focusable items.",
|
|
1424
|
+
"attribute": "empty-message"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"kind": "method",
|
|
1428
|
+
"name": "_configureItems",
|
|
1429
|
+
"privacy": "private",
|
|
1430
|
+
"return": {
|
|
1431
|
+
"type": {
|
|
1432
|
+
"text": "void"
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
"description": "Configure all child items with menu-level settings"
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"kind": "method",
|
|
1439
|
+
"name": "_getAllItems",
|
|
1440
|
+
"privacy": "private",
|
|
1441
|
+
"return": {
|
|
1442
|
+
"type": {
|
|
1443
|
+
"text": "DropdownItem[]"
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
"description": "Get all btu-dropdown-item children"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"kind": "method",
|
|
1450
|
+
"name": "_getFocusableItems",
|
|
1451
|
+
"privacy": "private",
|
|
1452
|
+
"return": {
|
|
1453
|
+
"type": {
|
|
1454
|
+
"text": "DropdownItem[]"
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1457
|
+
"description": "Get only focusable items (default type, skip dividers/subheads)"
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
"kind": "method",
|
|
1461
|
+
"name": "_getCurrentFocusIndex",
|
|
1462
|
+
"privacy": "private",
|
|
1463
|
+
"return": {
|
|
1464
|
+
"type": {
|
|
1465
|
+
"text": "number"
|
|
1466
|
+
}
|
|
1467
|
+
},
|
|
1468
|
+
"parameters": [
|
|
1469
|
+
{
|
|
1470
|
+
"name": "focusable",
|
|
1471
|
+
"type": {
|
|
1472
|
+
"text": "DropdownItem[]"
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
],
|
|
1476
|
+
"description": "Find the current focused item index"
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"kind": "method",
|
|
1480
|
+
"name": "_findNextIndex",
|
|
1481
|
+
"privacy": "private",
|
|
1482
|
+
"return": {
|
|
1483
|
+
"type": {
|
|
1484
|
+
"text": "number"
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
"parameters": [
|
|
1488
|
+
{
|
|
1489
|
+
"name": "focusable",
|
|
1490
|
+
"type": {
|
|
1491
|
+
"text": "DropdownItem[]"
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
"name": "current",
|
|
1496
|
+
"type": {
|
|
1497
|
+
"text": "number"
|
|
1498
|
+
}
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"name": "direction",
|
|
1502
|
+
"type": {
|
|
1503
|
+
"text": "1 | -1"
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
],
|
|
1507
|
+
"description": "Find next index wrapping around, moving in direction (+1 or -1)"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"kind": "method",
|
|
1511
|
+
"name": "_handleTypeahead",
|
|
1512
|
+
"privacy": "private",
|
|
1513
|
+
"return": {
|
|
1514
|
+
"type": {
|
|
1515
|
+
"text": "void"
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
"parameters": [
|
|
1519
|
+
{
|
|
1520
|
+
"name": "char",
|
|
1521
|
+
"type": {
|
|
1522
|
+
"text": "string"
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
"name": "focusable",
|
|
1527
|
+
"type": {
|
|
1528
|
+
"text": "DropdownItem[]"
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
],
|
|
1532
|
+
"description": "Typeahead character matching with 500ms accumulation"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"kind": "field",
|
|
1536
|
+
"name": "_isEmpty",
|
|
1537
|
+
"type": {
|
|
1538
|
+
"text": "boolean"
|
|
1539
|
+
},
|
|
1540
|
+
"privacy": "private",
|
|
1541
|
+
"description": "Check whether the menu has zero focusable items",
|
|
1542
|
+
"readonly": true
|
|
1543
|
+
}
|
|
1544
|
+
],
|
|
1545
|
+
"events": [
|
|
1546
|
+
{
|
|
1547
|
+
"type": {
|
|
1548
|
+
"text": "CustomEvent"
|
|
1549
|
+
},
|
|
1550
|
+
"description": "Fired after first render",
|
|
1551
|
+
"name": "btu-dropdown-menu-ready"
|
|
1552
|
+
}
|
|
1553
|
+
],
|
|
1554
|
+
"attributes": [
|
|
1555
|
+
{
|
|
1556
|
+
"name": "name",
|
|
1557
|
+
"type": {
|
|
1558
|
+
"text": "string"
|
|
1559
|
+
},
|
|
1560
|
+
"default": "''",
|
|
1561
|
+
"description": "Accessible name for the menu, displayed in header when header is true.",
|
|
1562
|
+
"fieldName": "name",
|
|
1563
|
+
"attribute": "name"
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
"name": "header",
|
|
1567
|
+
"type": {
|
|
1568
|
+
"text": "boolean"
|
|
1569
|
+
},
|
|
1570
|
+
"default": "false",
|
|
1571
|
+
"description": "Show header bar with menu name.",
|
|
1572
|
+
"fieldName": "header",
|
|
1573
|
+
"attribute": "header"
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
"name": "checkbox",
|
|
1577
|
+
"type": {
|
|
1578
|
+
"text": "boolean"
|
|
1579
|
+
},
|
|
1580
|
+
"default": "false",
|
|
1581
|
+
"description": "Enable checkbox mode for items (menuitemcheckbox role).",
|
|
1582
|
+
"fieldName": "checkbox",
|
|
1583
|
+
"attribute": "checkbox"
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
"name": "icon",
|
|
1587
|
+
"type": {
|
|
1588
|
+
"text": "boolean"
|
|
1589
|
+
},
|
|
1590
|
+
"default": "false",
|
|
1591
|
+
"description": "Show icons before each item.",
|
|
1592
|
+
"fieldName": "icon",
|
|
1593
|
+
"attribute": "icon"
|
|
1594
|
+
},
|
|
1595
|
+
{
|
|
1596
|
+
"name": "icon-symbol",
|
|
1597
|
+
"type": {
|
|
1598
|
+
"text": "string"
|
|
1599
|
+
},
|
|
1600
|
+
"default": "''",
|
|
1601
|
+
"description": "Fallback Lucide icon symbol for items without their own.",
|
|
1602
|
+
"fieldName": "iconSymbol",
|
|
1603
|
+
"attribute": "icon-symbol"
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
"name": "favorites",
|
|
1607
|
+
"type": {
|
|
1608
|
+
"text": "boolean"
|
|
1609
|
+
},
|
|
1610
|
+
"default": "false",
|
|
1611
|
+
"description": "Show favorite toggle on each item.",
|
|
1612
|
+
"fieldName": "favorites",
|
|
1613
|
+
"attribute": "favorites"
|
|
1614
|
+
},
|
|
1615
|
+
{
|
|
1616
|
+
"name": "shortcuts",
|
|
1617
|
+
"type": {
|
|
1618
|
+
"text": "boolean"
|
|
1619
|
+
},
|
|
1620
|
+
"default": "false",
|
|
1621
|
+
"description": "Show keyboard shortcut text on each item.",
|
|
1622
|
+
"fieldName": "shortcuts",
|
|
1623
|
+
"attribute": "shortcuts"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"name": "empty-message",
|
|
1627
|
+
"type": {
|
|
1628
|
+
"text": "string"
|
|
1629
|
+
},
|
|
1630
|
+
"default": "'No items available'",
|
|
1631
|
+
"description": "Message displayed when the menu has no focusable items.",
|
|
1632
|
+
"fieldName": "emptyMessage",
|
|
1633
|
+
"attribute": "empty-message"
|
|
1634
|
+
}
|
|
1635
|
+
],
|
|
1636
|
+
"mixins": [
|
|
1637
|
+
{
|
|
1638
|
+
"name": "EventEmitterMixin",
|
|
1639
|
+
"module": "/src/util/EventEmitterMixin.js"
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
"name": "ReadyMixin",
|
|
1643
|
+
"module": "/src/util/ReadyMixin.js"
|
|
1644
|
+
}
|
|
1645
|
+
],
|
|
1646
|
+
"superclass": {
|
|
1647
|
+
"name": "LitElement",
|
|
1648
|
+
"package": "lit"
|
|
1649
|
+
},
|
|
1650
|
+
"tagName": "btu-dropdown-menu",
|
|
1651
|
+
"customElement": true
|
|
1652
|
+
}
|
|
1653
|
+
],
|
|
1654
|
+
"exports": [
|
|
1655
|
+
{
|
|
1656
|
+
"kind": "js",
|
|
1657
|
+
"name": "default",
|
|
1658
|
+
"declaration": {
|
|
1659
|
+
"name": "DropdownMenu",
|
|
1660
|
+
"module": "src/components/dropdown/DropdownMenu.ts"
|
|
1661
|
+
}
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
"kind": "custom-element-definition",
|
|
1665
|
+
"name": "btu-dropdown-menu",
|
|
1666
|
+
"declaration": {
|
|
1667
|
+
"name": "DropdownMenu",
|
|
1668
|
+
"module": "src/components/dropdown/DropdownMenu.ts"
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
]
|
|
1672
|
+
},
|
|
677
1673
|
{
|
|
678
1674
|
"kind": "javascript-module",
|
|
679
1675
|
"path": "src/components/icon/Icon.ts",
|
|
@@ -810,6 +1806,221 @@
|
|
|
810
1806
|
}
|
|
811
1807
|
]
|
|
812
1808
|
},
|
|
1809
|
+
{
|
|
1810
|
+
"kind": "javascript-module",
|
|
1811
|
+
"path": "src/components/icon-button/IconButton.ts",
|
|
1812
|
+
"declarations": [
|
|
1813
|
+
{
|
|
1814
|
+
"kind": "class",
|
|
1815
|
+
"description": "Surfaces the different actions someone can perform in an interface where space is limited.\n\nUses an icon to communicate the action and supports multiple visual types and sizes.\nTooltip support is built-in for accessibility in compact layouts.",
|
|
1816
|
+
"name": "IconButton",
|
|
1817
|
+
"members": [
|
|
1818
|
+
{
|
|
1819
|
+
"kind": "field",
|
|
1820
|
+
"name": "name",
|
|
1821
|
+
"type": {
|
|
1822
|
+
"text": "string | undefined"
|
|
1823
|
+
},
|
|
1824
|
+
"description": "Optional name for the button which can be used to identify the button in a callback.",
|
|
1825
|
+
"attribute": "name"
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
"kind": "field",
|
|
1829
|
+
"name": "type",
|
|
1830
|
+
"type": {
|
|
1831
|
+
"text": "IconButtonType"
|
|
1832
|
+
},
|
|
1833
|
+
"default": "'primary'",
|
|
1834
|
+
"description": "Specifies the type of icon-button, controlling the visual style.",
|
|
1835
|
+
"attribute": "type"
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"kind": "field",
|
|
1839
|
+
"name": "iconSymbol",
|
|
1840
|
+
"type": {
|
|
1841
|
+
"text": "string | undefined"
|
|
1842
|
+
},
|
|
1843
|
+
"description": "Lucide icon name.",
|
|
1844
|
+
"attribute": "icon-symbol"
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
"kind": "field",
|
|
1848
|
+
"name": "size",
|
|
1849
|
+
"type": {
|
|
1850
|
+
"text": "IconButtonSize"
|
|
1851
|
+
},
|
|
1852
|
+
"default": "'medium'",
|
|
1853
|
+
"description": "Specifies the size of icon-button.",
|
|
1854
|
+
"attribute": "size"
|
|
1855
|
+
},
|
|
1856
|
+
{
|
|
1857
|
+
"kind": "field",
|
|
1858
|
+
"name": "destructive",
|
|
1859
|
+
"type": {
|
|
1860
|
+
"text": "boolean"
|
|
1861
|
+
},
|
|
1862
|
+
"default": "false",
|
|
1863
|
+
"description": "Specifies an icon-button will be used to take any destructive action overriding the\ndefault color used for the icon-button type with the error color.",
|
|
1864
|
+
"attribute": "destructive"
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
"kind": "field",
|
|
1868
|
+
"name": "disabled",
|
|
1869
|
+
"type": {
|
|
1870
|
+
"text": "boolean"
|
|
1871
|
+
},
|
|
1872
|
+
"default": "false",
|
|
1873
|
+
"description": "Disables the button, preventing interaction and indicating an inactive state.",
|
|
1874
|
+
"attribute": "disabled"
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
"kind": "method",
|
|
1878
|
+
"name": "_relayTooltipAttrs",
|
|
1879
|
+
"privacy": "private",
|
|
1880
|
+
"return": {
|
|
1881
|
+
"type": {
|
|
1882
|
+
"text": "void"
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
"kind": "method",
|
|
1888
|
+
"name": "_handleClick",
|
|
1889
|
+
"privacy": "private",
|
|
1890
|
+
"return": {
|
|
1891
|
+
"type": {
|
|
1892
|
+
"text": "void"
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
"kind": "method",
|
|
1898
|
+
"name": "_buildButtonClasses",
|
|
1899
|
+
"privacy": "private",
|
|
1900
|
+
"return": {
|
|
1901
|
+
"type": {
|
|
1902
|
+
"text": "string"
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
],
|
|
1907
|
+
"events": [
|
|
1908
|
+
{
|
|
1909
|
+
"type": {
|
|
1910
|
+
"text": "CustomEvent"
|
|
1911
|
+
},
|
|
1912
|
+
"description": "Fired after first render and initialization",
|
|
1913
|
+
"name": "btu-icon-button-ready"
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"type": {
|
|
1917
|
+
"text": "CustomEvent<{name: string | undefined}>"
|
|
1918
|
+
},
|
|
1919
|
+
"description": "Fired when the button is clicked",
|
|
1920
|
+
"name": "btu-icon-button-click"
|
|
1921
|
+
}
|
|
1922
|
+
],
|
|
1923
|
+
"attributes": [
|
|
1924
|
+
{
|
|
1925
|
+
"name": "name",
|
|
1926
|
+
"type": {
|
|
1927
|
+
"text": "string | undefined"
|
|
1928
|
+
},
|
|
1929
|
+
"description": "Optional name for the button which can be used to identify the button in a callback.",
|
|
1930
|
+
"fieldName": "name",
|
|
1931
|
+
"attribute": "name"
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
"name": "type",
|
|
1935
|
+
"type": {
|
|
1936
|
+
"text": "IconButtonType"
|
|
1937
|
+
},
|
|
1938
|
+
"default": "'primary'",
|
|
1939
|
+
"description": "Specifies the type of icon-button, controlling the visual style.",
|
|
1940
|
+
"fieldName": "type",
|
|
1941
|
+
"attribute": "type"
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
"name": "icon-symbol",
|
|
1945
|
+
"type": {
|
|
1946
|
+
"text": "string | undefined"
|
|
1947
|
+
},
|
|
1948
|
+
"description": "Lucide icon name.",
|
|
1949
|
+
"fieldName": "iconSymbol",
|
|
1950
|
+
"attribute": "icon-symbol"
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
"name": "size",
|
|
1954
|
+
"type": {
|
|
1955
|
+
"text": "IconButtonSize"
|
|
1956
|
+
},
|
|
1957
|
+
"default": "'medium'",
|
|
1958
|
+
"description": "Specifies the size of icon-button.",
|
|
1959
|
+
"fieldName": "size",
|
|
1960
|
+
"attribute": "size"
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
"name": "destructive",
|
|
1964
|
+
"type": {
|
|
1965
|
+
"text": "boolean"
|
|
1966
|
+
},
|
|
1967
|
+
"default": "false",
|
|
1968
|
+
"description": "Specifies an icon-button will be used to take any destructive action overriding the\ndefault color used for the icon-button type with the error color.",
|
|
1969
|
+
"fieldName": "destructive",
|
|
1970
|
+
"attribute": "destructive"
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
"name": "disabled",
|
|
1974
|
+
"type": {
|
|
1975
|
+
"text": "boolean"
|
|
1976
|
+
},
|
|
1977
|
+
"default": "false",
|
|
1978
|
+
"description": "Disables the button, preventing interaction and indicating an inactive state.",
|
|
1979
|
+
"fieldName": "disabled",
|
|
1980
|
+
"attribute": "disabled"
|
|
1981
|
+
}
|
|
1982
|
+
],
|
|
1983
|
+
"mixins": [
|
|
1984
|
+
{
|
|
1985
|
+
"name": "TooltipMixin",
|
|
1986
|
+
"module": "/src/util/TooltipMixin.js"
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
"name": "EventEmitterMixin",
|
|
1990
|
+
"module": "/src/util/EventEmitterMixin.js"
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
"name": "ReadyMixin",
|
|
1994
|
+
"module": "/src/util/ReadyMixin.js"
|
|
1995
|
+
}
|
|
1996
|
+
],
|
|
1997
|
+
"superclass": {
|
|
1998
|
+
"name": "LitElement",
|
|
1999
|
+
"package": "lit"
|
|
2000
|
+
},
|
|
2001
|
+
"tagName": "btu-icon-button",
|
|
2002
|
+
"customElement": true
|
|
2003
|
+
}
|
|
2004
|
+
],
|
|
2005
|
+
"exports": [
|
|
2006
|
+
{
|
|
2007
|
+
"kind": "js",
|
|
2008
|
+
"name": "default",
|
|
2009
|
+
"declaration": {
|
|
2010
|
+
"name": "IconButton",
|
|
2011
|
+
"module": "src/components/icon-button/IconButton.ts"
|
|
2012
|
+
}
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
"kind": "custom-element-definition",
|
|
2016
|
+
"name": "btu-icon-button",
|
|
2017
|
+
"declaration": {
|
|
2018
|
+
"name": "IconButton",
|
|
2019
|
+
"module": "src/components/icon-button/IconButton.ts"
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
]
|
|
2023
|
+
},
|
|
813
2024
|
{
|
|
814
2025
|
"kind": "javascript-module",
|
|
815
2026
|
"path": "src/components/linear-progress/LinearProgress.ts",
|
|
@@ -1155,7 +2366,7 @@
|
|
|
1155
2366
|
{
|
|
1156
2367
|
"name": "clickedButton",
|
|
1157
2368
|
"type": {
|
|
1158
|
-
"text": "
|
|
2369
|
+
"text": "IconButton"
|
|
1159
2370
|
}
|
|
1160
2371
|
}
|
|
1161
2372
|
]
|