@fewangsit/wangsvue-presets 1.0.81-alpha.1 → 1.0.81-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/fixedasset/accordion/index.d.ts +37 -0
- package/fixedasset/accordion/index.js +70 -75
- package/fixedasset/autocomplete/index.d.ts +188 -0
- package/fixedasset/autocomplete/index.js +247 -280
- package/fixedasset/avatar/index.d.ts +85 -0
- package/fixedasset/avatar/index.js +44 -42
- package/fixedasset/avatargroup/index.d.ts +8 -0
- package/fixedasset/avatargroup/index.js +9 -7
- package/fixedasset/badge/index.d.ts +47 -0
- package/fixedasset/badge/index.js +60 -54
- package/fixedasset/badgedirective/index.d.ts +50 -0
- package/fixedasset/badgedirective/index.js +49 -50
- package/fixedasset/badgegroup/index.d.ts +45 -0
- package/fixedasset/badgegroup/index.js +29 -30
- package/fixedasset/breadcrumb/index.d.ts +25 -0
- package/fixedasset/breadcrumb/index.js +31 -29
- package/fixedasset/button/index.d.ts +46 -0
- package/fixedasset/button/index.js +423 -506
- package/fixedasset/buttonbulkaction/index.d.ts +32 -0
- package/fixedasset/buttonbulkaction/index.js +35 -35
- package/fixedasset/buttondownload/index.d.ts +12 -0
- package/fixedasset/buttondownload/index.js +13 -12
- package/fixedasset/buttonfilter/index.d.ts +12 -0
- package/fixedasset/buttonfilter/index.js +13 -12
- package/fixedasset/buttonradio/index.d.ts +58 -0
- package/fixedasset/buttonradio/index.js +109 -122
- package/fixedasset/buttonsearch/index.d.ts +65 -0
- package/fixedasset/buttonsearch/index.js +62 -53
- package/fixedasset/calendar/index.d.ts +267 -0
- package/fixedasset/calendar/index.js +610 -684
- package/fixedasset/card/index.d.ts +31 -0
- package/fixedasset/card/index.js +32 -32
- package/fixedasset/carousel/index.d.ts +57 -0
- package/fixedasset/carousel/index.js +129 -134
- package/fixedasset/cascadeselect/index.d.ts +82 -0
- package/fixedasset/cascadeselect/index.js +191 -219
- package/fixedasset/changelog/index.d.ts +32 -0
- package/fixedasset/changelog/index.js +31 -29
- package/fixedasset/checkbox/index.d.ts +81 -0
- package/fixedasset/checkbox/index.js +107 -127
- package/fixedasset/chip/index.d.ts +23 -0
- package/fixedasset/chip/index.js +40 -45
- package/fixedasset/chips/index.d.ts +38 -0
- package/fixedasset/chips/index.js +98 -112
- package/fixedasset/colorpicker/index.d.ts +51 -0
- package/fixedasset/colorpicker/index.js +118 -134
- package/fixedasset/confirmpopup/index.d.ts +39 -0
- package/fixedasset/confirmpopup/index.js +104 -122
- package/fixedasset/contextmenu/index.d.ts +63 -0
- package/fixedasset/contextmenu/index.js +113 -122
- package/fixedasset/datatable/index.d.ts +286 -0
- package/fixedasset/datatable/index.js +253 -246
- package/fixedasset/dataview/index.d.ts +15 -0
- package/fixedasset/dataview/index.js +36 -40
- package/fixedasset/dataviewlayoutoptions/index.d.ts +13 -0
- package/fixedasset/dataviewlayoutoptions/index.js +58 -64
- package/fixedasset/dialog/index.d.ts +87 -0
- package/fixedasset/dialog/index.js +220 -249
- package/fixedasset/dialogconfirm/index.d.ts +42 -0
- package/fixedasset/dialogconfirm/index.js +45 -42
- package/fixedasset/dialogform/index.d.ts +71 -0
- package/fixedasset/dialogform/index.js +68 -67
- package/fixedasset/divider/index.d.ts +192 -0
- package/fixedasset/divider/index.js +64 -72
- package/fixedasset/dock/index.d.ts +51 -0
- package/fixedasset/dock/index.js +92 -97
- package/fixedasset/dropdown/index.d.ts +136 -0
- package/fixedasset/dropdown/index.js +207 -230
- package/fixedasset/fieldset/index.d.ts +94 -0
- package/fixedasset/fieldset/index.js +87 -99
- package/fixedasset/fileupload/index.d.ts +29 -0
- package/fixedasset/fileupload/index.js +31 -23
- package/fixedasset/form/index.d.ts +40 -0
- package/fixedasset/form/index.js +44 -42
- package/fixedasset/global.d.ts +8 -0
- package/fixedasset/global.js +14 -87
- package/fixedasset/image/index.d.ts +88 -0
- package/fixedasset/image/index.js +136 -128
- package/fixedasset/index.d.ts +190 -0
- package/fixedasset/index.js +201 -211
- package/fixedasset/index.system.js +76 -0
- package/fixedasset/inlinemessage/index.d.ts +20 -0
- package/fixedasset/inlinemessage/index.js +30 -26
- package/fixedasset/inputbadge/index.d.ts +57 -0
- package/fixedasset/inputbadge/index.js +57 -41
- package/fixedasset/inputcurrency/index.d.ts +27 -0
- package/fixedasset/inputcurrency/index.js +22 -12
- package/fixedasset/inputgroup/index.d.ts +9 -0
- package/fixedasset/inputgroup/index.js +37 -40
- package/fixedasset/inputgroupaddon/index.d.ts +17 -0
- package/fixedasset/inputgroupaddon/index.js +34 -34
- package/fixedasset/inputmask/index.d.ts +11 -0
- package/fixedasset/inputmask/index.js +29 -30
- package/fixedasset/inputnumber/index.d.ts +46 -0
- package/fixedasset/inputnumber/index.js +58 -50
- package/fixedasset/inputotp/index.d.ts +137 -0
- package/fixedasset/inputotp/index.js +63 -70
- package/fixedasset/inputphonenumber/index.d.ts +37 -0
- package/fixedasset/inputphonenumber/index.js +34 -19
- package/fixedasset/inputswitch/index.d.ts +67 -0
- package/fixedasset/inputswitch/index.js +100 -114
- package/fixedasset/inputtext/index.d.ts +18 -0
- package/fixedasset/inputtext/index.js +28 -27
- package/fixedasset/knob/index.d.ts +22 -0
- package/fixedasset/knob/index.js +45 -47
- package/fixedasset/listbox/index.d.ts +79 -0
- package/fixedasset/listbox/index.js +138 -156
- package/fixedasset/megamenu/index.d.ts +105 -0
- package/fixedasset/megamenu/index.js +202 -218
- package/fixedasset/menu/index.d.ts +49 -0
- package/fixedasset/menu/index.js +110 -119
- package/fixedasset/menubar/index.d.ts +85 -0
- package/fixedasset/menubar/index.js +172 -186
- package/fixedasset/message/index.d.ts +41 -0
- package/fixedasset/message/index.js +85 -87
- package/fixedasset/multiselect/index.d.ts +243 -0
- package/fixedasset/multiselect/index.js +328 -360
- package/fixedasset/orderlist/index.d.ts +99 -0
- package/fixedasset/orderlist/index.js +245 -275
- package/fixedasset/organizationchart/index.d.ts +71 -0
- package/fixedasset/organizationchart/index.js +129 -143
- package/fixedasset/overlaypanel/index.d.ts +17 -0
- package/fixedasset/overlaypanel/index.js +34 -36
- package/fixedasset/paginator/index.d.ts +210 -0
- package/fixedasset/paginator/index.js +474 -547
- package/fixedasset/panel/index.d.ts +43 -0
- package/fixedasset/panel/index.js +85 -95
- package/fixedasset/panelmenu/index.d.ts +76 -0
- package/fixedasset/panelmenu/index.js +124 -136
- package/fixedasset/password/index.d.ts +45 -0
- package/fixedasset/password/index.js +96 -98
- package/fixedasset/picklist/index.d.ts +245 -0
- package/fixedasset/picklist/index.js +613 -684
- package/fixedasset/progressbar/index.d.ts +117 -0
- package/fixedasset/progressbar/index.js +102 -112
- package/fixedasset/rating/index.d.ts +47 -0
- package/fixedasset/rating/index.js +88 -86
- package/fixedasset/ripple/index.d.ts +8 -0
- package/fixedasset/ripple/index.js +8 -6
- package/fixedasset/scrollpanel/index.d.ts +19 -0
- package/fixedasset/scrollpanel/index.js +62 -77
- package/fixedasset/scrolltop/index.d.ts +50 -0
- package/fixedasset/scrolltop/index.js +42 -45
- package/fixedasset/selectbutton/index.d.ts +35 -0
- package/fixedasset/selectbutton/index.js +60 -59
- package/fixedasset/sidebar/index.d.ts +66 -0
- package/fixedasset/sidebar/index.js +145 -165
- package/fixedasset/skeleton/index.d.ts +16 -0
- package/fixedasset/skeleton/index.js +22 -19
- package/fixedasset/slider/index.d.ts +55 -0
- package/fixedasset/slider/index.js +126 -135
- package/fixedasset/splitbutton/index.d.ts +6690 -0
- package/fixedasset/splitbutton/index.js +786 -957
- package/fixedasset/steps/index.d.ts +108 -0
- package/fixedasset/steps/index.js +119 -132
- package/{wangsvue/icons.css → fixedasset/style.css} +5887 -849
- package/fixedasset/tabmenu/index.d.ts +57 -0
- package/fixedasset/tabmenu/index.js +75 -84
- package/fixedasset/tabview/index.d.ts +67 -0
- package/fixedasset/tabview/index.js +148 -168
- package/fixedasset/tag/index.d.ts +32 -0
- package/fixedasset/tag/index.js +37 -37
- package/fixedasset/terminal/index.d.ts +27 -0
- package/fixedasset/terminal/index.js +55 -60
- package/fixedasset/textarea/index.d.ts +12 -0
- package/fixedasset/textarea/index.js +51 -44
- package/fixedasset/tieredmenu/index.d.ts +56 -0
- package/fixedasset/tieredmenu/index.js +108 -121
- package/fixedasset/timeline/index.d.ts +53 -0
- package/fixedasset/timeline/index.js +83 -70
- package/fixedasset/toast/index.d.ts +61 -0
- package/fixedasset/toast/index.js +95 -97
- package/fixedasset/togglebutton/index.d.ts +42 -0
- package/fixedasset/togglebutton/index.js +77 -87
- package/fixedasset/toolbar/index.d.ts +19 -0
- package/fixedasset/toolbar/index.js +29 -30
- package/fixedasset/tooltip/index.d.ts +22 -0
- package/fixedasset/tooltip/index.js +42 -44
- package/fixedasset/tree/index.d.ts +117 -0
- package/fixedasset/tree/index.js +256 -298
- package/fixedasset/treeselect/index.d.ts +158 -0
- package/fixedasset/treeselect/index.js +338 -395
- package/fixedasset/tristatecheckbox/index.d.ts +49 -0
- package/fixedasset/tristatecheckbox/index.js +106 -128
- package/fixedasset/validatormessage/index.d.ts +8 -0
- package/fixedasset/validatormessage/index.js +9 -7
- package/fixedasset/workcalendar/index.d.ts +27 -0
- package/fixedasset/workcalendar/index.js +36 -27
- package/index.d.ts +2 -0
- package/index.js +7 -0
- package/package.json +1 -1
- package/wangsvue/accordion/index.d.ts +37 -0
- package/wangsvue/accordion/index.js +70 -75
- package/wangsvue/autocomplete/index.d.ts +188 -0
- package/wangsvue/autocomplete/index.js +247 -280
- package/wangsvue/avatar/index.d.ts +85 -0
- package/wangsvue/avatar/index.js +44 -42
- package/wangsvue/avatargroup/index.d.ts +8 -0
- package/wangsvue/avatargroup/index.js +9 -7
- package/wangsvue/badge/index.d.ts +47 -0
- package/wangsvue/badge/index.js +60 -54
- package/wangsvue/badgedirective/index.d.ts +50 -0
- package/wangsvue/badgedirective/index.js +49 -50
- package/wangsvue/badgegroup/index.d.ts +45 -0
- package/wangsvue/badgegroup/index.js +29 -30
- package/wangsvue/breadcrumb/index.d.ts +25 -0
- package/wangsvue/breadcrumb/index.js +31 -29
- package/wangsvue/button/index.d.ts +46 -0
- package/wangsvue/button/index.js +423 -506
- package/wangsvue/buttonbulkaction/index.d.ts +32 -0
- package/wangsvue/buttonbulkaction/index.js +35 -35
- package/wangsvue/buttondownload/index.d.ts +12 -0
- package/wangsvue/buttondownload/index.js +13 -12
- package/wangsvue/buttonfilter/index.d.ts +12 -0
- package/wangsvue/buttonfilter/index.js +13 -12
- package/wangsvue/buttonradio/index.d.ts +58 -0
- package/wangsvue/buttonradio/index.js +109 -122
- package/wangsvue/buttonsearch/index.d.ts +65 -0
- package/wangsvue/buttonsearch/index.js +62 -53
- package/wangsvue/calendar/index.d.ts +267 -0
- package/wangsvue/calendar/index.js +610 -684
- package/wangsvue/card/index.d.ts +31 -0
- package/wangsvue/card/index.js +32 -32
- package/wangsvue/carousel/index.d.ts +57 -0
- package/wangsvue/carousel/index.js +129 -134
- package/wangsvue/cascadeselect/index.d.ts +82 -0
- package/wangsvue/cascadeselect/index.js +191 -219
- package/wangsvue/changelog/index.d.ts +32 -0
- package/wangsvue/changelog/index.js +31 -29
- package/wangsvue/checkbox/index.d.ts +81 -0
- package/wangsvue/checkbox/index.js +107 -127
- package/wangsvue/chip/index.d.ts +23 -0
- package/wangsvue/chip/index.js +40 -45
- package/wangsvue/chips/index.d.ts +38 -0
- package/wangsvue/chips/index.js +98 -112
- package/wangsvue/colorpicker/index.d.ts +51 -0
- package/wangsvue/colorpicker/index.js +118 -134
- package/wangsvue/confirmpopup/index.d.ts +39 -0
- package/wangsvue/confirmpopup/index.js +104 -122
- package/wangsvue/contextmenu/index.d.ts +63 -0
- package/wangsvue/contextmenu/index.js +113 -122
- package/wangsvue/datatable/index.d.ts +286 -0
- package/wangsvue/datatable/index.js +253 -246
- package/wangsvue/dataview/index.d.ts +15 -0
- package/wangsvue/dataview/index.js +36 -40
- package/wangsvue/dataviewlayoutoptions/index.d.ts +13 -0
- package/wangsvue/dataviewlayoutoptions/index.js +58 -64
- package/wangsvue/dialog/index.d.ts +87 -0
- package/wangsvue/dialog/index.js +220 -249
- package/wangsvue/dialogconfirm/index.d.ts +42 -0
- package/wangsvue/dialogconfirm/index.js +45 -42
- package/wangsvue/dialogform/index.d.ts +71 -0
- package/wangsvue/dialogform/index.js +68 -67
- package/wangsvue/divider/index.d.ts +192 -0
- package/wangsvue/divider/index.js +64 -72
- package/wangsvue/dock/index.d.ts +51 -0
- package/wangsvue/dock/index.js +92 -97
- package/wangsvue/dropdown/index.d.ts +136 -0
- package/wangsvue/dropdown/index.js +207 -230
- package/wangsvue/fieldset/index.d.ts +94 -0
- package/wangsvue/fieldset/index.js +87 -99
- package/wangsvue/fileupload/index.d.ts +29 -0
- package/wangsvue/fileupload/index.js +31 -23
- package/wangsvue/form/index.d.ts +40 -0
- package/wangsvue/form/index.js +44 -42
- package/wangsvue/global.d.ts +8 -0
- package/wangsvue/global.js +14 -87
- package/wangsvue/image/index.d.ts +88 -0
- package/wangsvue/image/index.js +136 -128
- package/wangsvue/index.d.ts +190 -0
- package/wangsvue/index.js +201 -211
- package/wangsvue/index.system.js +76 -0
- package/wangsvue/inlinemessage/index.d.ts +20 -0
- package/wangsvue/inlinemessage/index.js +30 -26
- package/wangsvue/inputbadge/index.d.ts +57 -0
- package/wangsvue/inputbadge/index.js +57 -41
- package/wangsvue/inputcurrency/index.d.ts +27 -0
- package/wangsvue/inputcurrency/index.js +22 -12
- package/wangsvue/inputgroup/index.d.ts +9 -0
- package/wangsvue/inputgroup/index.js +37 -40
- package/wangsvue/inputgroupaddon/index.d.ts +17 -0
- package/wangsvue/inputgroupaddon/index.js +34 -34
- package/wangsvue/inputmask/index.d.ts +11 -0
- package/wangsvue/inputmask/index.js +29 -30
- package/wangsvue/inputnumber/index.d.ts +46 -0
- package/wangsvue/inputnumber/index.js +58 -50
- package/wangsvue/inputotp/index.d.ts +137 -0
- package/wangsvue/inputotp/index.js +63 -70
- package/wangsvue/inputphonenumber/index.d.ts +37 -0
- package/wangsvue/inputphonenumber/index.js +34 -19
- package/wangsvue/inputswitch/index.d.ts +67 -0
- package/wangsvue/inputswitch/index.js +100 -114
- package/wangsvue/inputtext/index.d.ts +18 -0
- package/wangsvue/inputtext/index.js +28 -27
- package/wangsvue/knob/index.d.ts +22 -0
- package/wangsvue/knob/index.js +45 -47
- package/wangsvue/listbox/index.d.ts +79 -0
- package/wangsvue/listbox/index.js +138 -156
- package/wangsvue/megamenu/index.d.ts +105 -0
- package/wangsvue/megamenu/index.js +202 -218
- package/wangsvue/menu/index.d.ts +49 -0
- package/wangsvue/menu/index.js +110 -119
- package/wangsvue/menubar/index.d.ts +85 -0
- package/wangsvue/menubar/index.js +172 -186
- package/wangsvue/message/index.d.ts +41 -0
- package/wangsvue/message/index.js +85 -87
- package/wangsvue/multiselect/index.d.ts +243 -0
- package/wangsvue/multiselect/index.js +328 -360
- package/wangsvue/orderlist/index.d.ts +99 -0
- package/wangsvue/orderlist/index.js +245 -275
- package/wangsvue/organizationchart/index.d.ts +71 -0
- package/wangsvue/organizationchart/index.js +129 -143
- package/wangsvue/overlaypanel/index.d.ts +17 -0
- package/wangsvue/overlaypanel/index.js +34 -36
- package/wangsvue/paginator/index.d.ts +210 -0
- package/wangsvue/paginator/index.js +474 -547
- package/wangsvue/panel/index.d.ts +43 -0
- package/wangsvue/panel/index.js +85 -95
- package/wangsvue/panelmenu/index.d.ts +76 -0
- package/wangsvue/panelmenu/index.js +124 -136
- package/wangsvue/password/index.d.ts +45 -0
- package/wangsvue/password/index.js +96 -98
- package/wangsvue/picklist/index.d.ts +245 -0
- package/wangsvue/picklist/index.js +613 -684
- package/wangsvue/progressbar/index.d.ts +117 -0
- package/wangsvue/progressbar/index.js +102 -112
- package/wangsvue/rating/index.d.ts +47 -0
- package/wangsvue/rating/index.js +88 -86
- package/wangsvue/ripple/index.d.ts +8 -0
- package/wangsvue/ripple/index.js +8 -6
- package/wangsvue/scrollpanel/index.d.ts +19 -0
- package/wangsvue/scrollpanel/index.js +62 -77
- package/wangsvue/scrolltop/index.d.ts +50 -0
- package/wangsvue/scrolltop/index.js +42 -45
- package/wangsvue/selectbutton/index.d.ts +35 -0
- package/wangsvue/selectbutton/index.js +60 -59
- package/wangsvue/sidebar/index.d.ts +66 -0
- package/wangsvue/sidebar/index.js +145 -165
- package/wangsvue/skeleton/index.d.ts +16 -0
- package/wangsvue/skeleton/index.js +22 -19
- package/wangsvue/slider/index.d.ts +55 -0
- package/wangsvue/slider/index.js +126 -135
- package/wangsvue/splitbutton/index.d.ts +6690 -0
- package/wangsvue/splitbutton/index.js +786 -957
- package/wangsvue/steps/index.d.ts +108 -0
- package/wangsvue/steps/index.js +119 -132
- package/{fixedasset/icons.css → wangsvue/style.css} +5822 -849
- package/wangsvue/tabmenu/index.d.ts +57 -0
- package/wangsvue/tabmenu/index.js +75 -84
- package/wangsvue/tabview/index.d.ts +67 -0
- package/wangsvue/tabview/index.js +148 -168
- package/wangsvue/tag/index.d.ts +32 -0
- package/wangsvue/tag/index.js +37 -37
- package/wangsvue/terminal/index.d.ts +27 -0
- package/wangsvue/terminal/index.js +55 -60
- package/wangsvue/textarea/index.d.ts +12 -0
- package/wangsvue/textarea/index.js +51 -44
- package/wangsvue/tieredmenu/index.d.ts +56 -0
- package/wangsvue/tieredmenu/index.js +108 -121
- package/wangsvue/timeline/index.d.ts +53 -0
- package/wangsvue/timeline/index.js +83 -70
- package/wangsvue/toast/index.d.ts +61 -0
- package/wangsvue/toast/index.js +95 -97
- package/wangsvue/togglebutton/index.d.ts +42 -0
- package/wangsvue/togglebutton/index.js +77 -87
- package/wangsvue/toolbar/index.d.ts +19 -0
- package/wangsvue/toolbar/index.js +29 -30
- package/wangsvue/tooltip/index.d.ts +22 -0
- package/wangsvue/tooltip/index.js +42 -44
- package/wangsvue/tree/index.d.ts +117 -0
- package/wangsvue/tree/index.js +256 -298
- package/wangsvue/treeselect/index.d.ts +158 -0
- package/wangsvue/treeselect/index.js +338 -395
- package/wangsvue/tristatecheckbox/index.d.ts +49 -0
- package/wangsvue/tristatecheckbox/index.js +106 -128
- package/wangsvue/validatormessage/index.d.ts +8 -0
- package/wangsvue/validatormessage/index.js +9 -7
- package/wangsvue/workcalendar/index.d.ts +27 -0
- package/wangsvue/workcalendar/index.js +36 -27
- package/build.sh +0 -32
- package/dev.sh +0 -22
- package/dist +0 -13
- package/fixedasset/datepicker/index.js +0 -39
- package/fixedasset/daypicker/index.js +0 -38
- package/fixedasset/index.css +0 -65
- package/fixedasset/tailwind.config.js +0 -20
- package/index.ts +0 -1
- package/release.sh +0 -7
- package/tsconfig.json +0 -14
- package/vite.config.ts +0 -17
- package/wangsvue/datepicker/index.js +0 -39
- package/wangsvue/daypicker/index.js +0 -38
- package/wangsvue/index.css +0 -65
- package/wangsvue/tailwind.config.js +0 -20
@@ -1,957 +1,786 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
// Link
|
789
|
-
{
|
790
|
-
'focus:ring-primary-500':
|
791
|
-
parent.props.link,
|
792
|
-
},
|
793
|
-
|
794
|
-
// Plain
|
795
|
-
{
|
796
|
-
'hover:bg-gray-600 hover:ring-gray-600':
|
797
|
-
parent.props.plain && !parent.props.outlined && !parent.props.text,
|
798
|
-
},
|
799
|
-
// Text & Outlined Button
|
800
|
-
{
|
801
|
-
'hover:bg-surface-300/20':
|
802
|
-
parent.props.plain && (parent.props.text || parent.props.outlined),
|
803
|
-
},
|
804
|
-
|
805
|
-
// Primary
|
806
|
-
{
|
807
|
-
'hover:bg-primary-600 hover:ring-primary-600':
|
808
|
-
!parent.props.link &&
|
809
|
-
parent.props.severity === null &&
|
810
|
-
!parent.props.text &&
|
811
|
-
!parent.props.outlined &&
|
812
|
-
!parent.props.plain,
|
813
|
-
},
|
814
|
-
{
|
815
|
-
'focus:ring-primary-500':
|
816
|
-
parent.props.severity === null,
|
817
|
-
},
|
818
|
-
// Text & Outlined Button
|
819
|
-
{
|
820
|
-
'hover:bg-primary-300/20':
|
821
|
-
(parent.props.text || parent.props.outlined) &&
|
822
|
-
parent.props.severity === null &&
|
823
|
-
!parent.props.plain,
|
824
|
-
},
|
825
|
-
|
826
|
-
// Secondary
|
827
|
-
{
|
828
|
-
'hover:bg-surface-600 hover:ring-surface-600':
|
829
|
-
parent.props.severity === 'secondary' &&
|
830
|
-
!parent.props.text &&
|
831
|
-
!parent.props.outlined &&
|
832
|
-
!parent.props.plain,
|
833
|
-
},
|
834
|
-
{
|
835
|
-
'focus:ring-surface-500':
|
836
|
-
parent.props.severity === 'secondary',
|
837
|
-
},
|
838
|
-
// Text & Outlined Button
|
839
|
-
{
|
840
|
-
'hover:bg-surface-300/20':
|
841
|
-
(parent.props.text || parent.props.outlined) &&
|
842
|
-
parent.props.severity === 'secondary' &&
|
843
|
-
!parent.props.plain,
|
844
|
-
},
|
845
|
-
|
846
|
-
// Success
|
847
|
-
{
|
848
|
-
'hover:bg-green-600 hover:ring-green-600':
|
849
|
-
parent.props.severity === 'success' &&
|
850
|
-
!parent.props.text &&
|
851
|
-
!parent.props.outlined &&
|
852
|
-
!parent.props.plain,
|
853
|
-
},
|
854
|
-
{
|
855
|
-
'focus:ring-green-500':
|
856
|
-
parent.props.severity === 'success',
|
857
|
-
},
|
858
|
-
// Text & Outlined Button
|
859
|
-
{
|
860
|
-
'hover:bg-green-300/20':
|
861
|
-
(parent.props.text || parent.props.outlined) &&
|
862
|
-
parent.props.severity === 'success' &&
|
863
|
-
!parent.props.plain,
|
864
|
-
},
|
865
|
-
|
866
|
-
// Info
|
867
|
-
{
|
868
|
-
'hover:bg-blue-600 hover:ring-blue-600':
|
869
|
-
parent.props.severity === 'info' &&
|
870
|
-
!parent.props.text &&
|
871
|
-
!parent.props.outlined &&
|
872
|
-
!parent.props.plain,
|
873
|
-
},
|
874
|
-
{
|
875
|
-
'focus:ring-blue-500':
|
876
|
-
parent.props.severity === 'info',
|
877
|
-
},
|
878
|
-
// Text & Outlined Button
|
879
|
-
{
|
880
|
-
'hover:bg-blue-300/20':
|
881
|
-
(parent.props.text || parent.props.outlined) &&
|
882
|
-
parent.props.severity === 'info' &&
|
883
|
-
!parent.props.plain,
|
884
|
-
},
|
885
|
-
|
886
|
-
// Warning
|
887
|
-
{
|
888
|
-
'hover:bg-orange-600 hover:ring-orange-600':
|
889
|
-
parent.props.severity === 'warning' &&
|
890
|
-
!parent.props.text &&
|
891
|
-
!parent.props.outlined &&
|
892
|
-
!parent.props.plain,
|
893
|
-
},
|
894
|
-
{
|
895
|
-
'focus:ring-orange-500':
|
896
|
-
parent.props.severity === 'warning',
|
897
|
-
},
|
898
|
-
// Text & Outlined Button
|
899
|
-
{
|
900
|
-
'hover:bg-orange-300/20':
|
901
|
-
(parent.props.text || parent.props.outlined) &&
|
902
|
-
parent.props.severity === 'warning' &&
|
903
|
-
!parent.props.plain,
|
904
|
-
},
|
905
|
-
|
906
|
-
// Help
|
907
|
-
{
|
908
|
-
'hover:bg-purple-600 hover:ring-purple-600':
|
909
|
-
parent.props.severity === 'help' &&
|
910
|
-
!parent.props.text &&
|
911
|
-
!parent.props.outlined &&
|
912
|
-
!parent.props.plain,
|
913
|
-
},
|
914
|
-
{
|
915
|
-
'focus:ring-purple-500':
|
916
|
-
parent.props.severity === 'help',
|
917
|
-
},
|
918
|
-
// Text & Outlined Button
|
919
|
-
{
|
920
|
-
'hover:bg-purple-300/20':
|
921
|
-
(parent.props.text || parent.props.outlined) &&
|
922
|
-
parent.props.severity === 'help' &&
|
923
|
-
!parent.props.plain,
|
924
|
-
},
|
925
|
-
|
926
|
-
// Warning
|
927
|
-
{
|
928
|
-
'hover:bg-red-600 hover:ring-red-600':
|
929
|
-
parent.props.severity === 'danger' &&
|
930
|
-
!parent.props.text &&
|
931
|
-
!parent.props.outlined &&
|
932
|
-
!parent.props.plain,
|
933
|
-
},
|
934
|
-
{
|
935
|
-
'focus:ring-red-500':
|
936
|
-
parent.props.severity === 'danger',
|
937
|
-
},
|
938
|
-
// Text & Outlined Button
|
939
|
-
{
|
940
|
-
'hover:bg-red-300/20':
|
941
|
-
(parent.props.text || parent.props.outlined) &&
|
942
|
-
parent.props.severity === 'danger' &&
|
943
|
-
!parent.props.plain,
|
944
|
-
},
|
945
|
-
|
946
|
-
// Transitions
|
947
|
-
'transition duration-200 ease-in-out',
|
948
|
-
|
949
|
-
// Misc
|
950
|
-
'cursor-pointer overflow-hidden select-none',
|
951
|
-
],
|
952
|
-
}),
|
953
|
-
label: {
|
954
|
-
class: ['hidden'],
|
955
|
-
},
|
956
|
-
},
|
957
|
-
};
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
root: function (_a) {
|
5
|
+
var props = _a.props;
|
6
|
+
return ({
|
7
|
+
class: [
|
8
|
+
// Flexbox and Position
|
9
|
+
'inline-flex',
|
10
|
+
'relative',
|
11
|
+
// Shape
|
12
|
+
'rounded-md',
|
13
|
+
{ 'shadow-lg': props.raised },
|
14
|
+
],
|
15
|
+
});
|
16
|
+
},
|
17
|
+
button: {
|
18
|
+
root: function (_a) {
|
19
|
+
var parent = _a.parent;
|
20
|
+
return ({
|
21
|
+
class: [
|
22
|
+
'relative',
|
23
|
+
// Alignments
|
24
|
+
'items-center inline-flex text-center align-bottom justify-center',
|
25
|
+
// Sizes & Spacing
|
26
|
+
'text-sm',
|
27
|
+
{
|
28
|
+
'px-2.5 py-1.5 min-w-[2rem]': parent.props.size === null && parent.props.label !== null,
|
29
|
+
'px-2 py-1': parent.props.size === 'small',
|
30
|
+
'px-3 py-2': parent.props.size === 'large',
|
31
|
+
},
|
32
|
+
{
|
33
|
+
'h-8 w-8 p-0': parent.props.label == null,
|
34
|
+
},
|
35
|
+
// Shape
|
36
|
+
'rounded-r-none',
|
37
|
+
'border-r-0',
|
38
|
+
{ 'rounded-l-full': parent.props.rounded },
|
39
|
+
{
|
40
|
+
'rounded-md': !parent.props.rounded,
|
41
|
+
'rounded-full': parent.props.rounded,
|
42
|
+
},
|
43
|
+
// Link Button
|
44
|
+
{
|
45
|
+
'text-primary-600 bg-transparent ring-transparent': parent.props.link,
|
46
|
+
},
|
47
|
+
// Plain Button
|
48
|
+
{
|
49
|
+
'text-white bg-gray-500 ring-1 ring-gray-500': parent.props.plain && !parent.props.outlined && !parent.props.text,
|
50
|
+
},
|
51
|
+
// Plain Text Button
|
52
|
+
{ 'text-surface-500': parent.props.plain && parent.props.text },
|
53
|
+
// Plain Outlined Button
|
54
|
+
{
|
55
|
+
'text-surface-500 ring-1 ring-gray-500': parent.props.plain && parent.props.outlined,
|
56
|
+
},
|
57
|
+
// Text Button
|
58
|
+
{
|
59
|
+
'bg-transparent ring-transparent': parent.props.text && !parent.props.plain,
|
60
|
+
},
|
61
|
+
// Outlined Button
|
62
|
+
{ 'bg-transparent': parent.props.outlined && !parent.props.plain },
|
63
|
+
// --- Severity Buttons ---
|
64
|
+
// Primary Button
|
65
|
+
{
|
66
|
+
'text-white': !parent.props.link &&
|
67
|
+
parent.props.severity === null &&
|
68
|
+
!parent.props.text &&
|
69
|
+
!parent.props.outlined &&
|
70
|
+
!parent.props.plain,
|
71
|
+
'bg-primary-500': !parent.props.link &&
|
72
|
+
parent.props.severity === null &&
|
73
|
+
!parent.props.text &&
|
74
|
+
!parent.props.outlined &&
|
75
|
+
!parent.props.plain,
|
76
|
+
'ring-1 ring-primary-500': !parent.props.link &&
|
77
|
+
parent.props.severity === null &&
|
78
|
+
!parent.props.text &&
|
79
|
+
!parent.props.outlined &&
|
80
|
+
!parent.props.plain,
|
81
|
+
},
|
82
|
+
// Primary Text Button
|
83
|
+
{
|
84
|
+
'text-primary-500': parent.props.text &&
|
85
|
+
parent.props.severity === null &&
|
86
|
+
!parent.props.plain,
|
87
|
+
},
|
88
|
+
// Primary Outlined Button
|
89
|
+
{
|
90
|
+
'text-primary-500 ring-1 ring-primary-500 hover:bg-primary-300/20': parent.props.outlined &&
|
91
|
+
parent.props.severity === null &&
|
92
|
+
!parent.props.plain,
|
93
|
+
},
|
94
|
+
// Secondary Button
|
95
|
+
{
|
96
|
+
'text-white': parent.props.severity === 'secondary' &&
|
97
|
+
!parent.props.text &&
|
98
|
+
!parent.props.outlined &&
|
99
|
+
!parent.props.plain,
|
100
|
+
'bg-surface-500': parent.props.severity === 'secondary' &&
|
101
|
+
!parent.props.text &&
|
102
|
+
!parent.props.outlined &&
|
103
|
+
!parent.props.plain,
|
104
|
+
'ring-1 ring-surface-500': parent.props.severity === 'secondary' &&
|
105
|
+
!parent.props.text &&
|
106
|
+
!parent.props.outlined &&
|
107
|
+
!parent.props.plain,
|
108
|
+
},
|
109
|
+
// Secondary Text Button
|
110
|
+
{
|
111
|
+
'text-surface-500': parent.props.text &&
|
112
|
+
parent.props.severity === 'secondary' &&
|
113
|
+
!parent.props.plain,
|
114
|
+
},
|
115
|
+
// Secondary Outlined Button
|
116
|
+
{
|
117
|
+
'text-surface-500 ring-1 ring-surface-500 hover:bg-surface-300/20': parent.props.outlined &&
|
118
|
+
parent.props.severity === 'secondary' &&
|
119
|
+
!parent.props.plain,
|
120
|
+
},
|
121
|
+
// Success Button
|
122
|
+
{
|
123
|
+
'text-white': parent.props.severity === 'success' &&
|
124
|
+
!parent.props.text &&
|
125
|
+
!parent.props.outlined &&
|
126
|
+
!parent.props.plain,
|
127
|
+
'bg-green-500': parent.props.severity === 'success' &&
|
128
|
+
!parent.props.text &&
|
129
|
+
!parent.props.outlined &&
|
130
|
+
!parent.props.plain,
|
131
|
+
'ring-1 ring-green-500': parent.props.severity === 'success' &&
|
132
|
+
!parent.props.text &&
|
133
|
+
!parent.props.outlined &&
|
134
|
+
!parent.props.plain,
|
135
|
+
},
|
136
|
+
// Success Text Button
|
137
|
+
{
|
138
|
+
'text-surface-500': parent.props.text &&
|
139
|
+
parent.props.severity === 'secondary' &&
|
140
|
+
!parent.props.plain,
|
141
|
+
},
|
142
|
+
// Success Outlined Button
|
143
|
+
{
|
144
|
+
'text-green-500 ring-1 ring-green-500 hover:bg-green-300/20': parent.props.outlined &&
|
145
|
+
parent.props.severity === 'success' &&
|
146
|
+
!parent.props.plain,
|
147
|
+
},
|
148
|
+
// Info Button
|
149
|
+
{
|
150
|
+
'text-white': parent.props.severity === 'info' &&
|
151
|
+
!parent.props.text &&
|
152
|
+
!parent.props.outlined &&
|
153
|
+
!parent.props.plain,
|
154
|
+
'bg-blue-500': parent.props.severity === 'info' &&
|
155
|
+
!parent.props.text &&
|
156
|
+
!parent.props.outlined &&
|
157
|
+
!parent.props.plain,
|
158
|
+
'ring-1 ring-blue-500': parent.props.severity === 'info' &&
|
159
|
+
!parent.props.text &&
|
160
|
+
!parent.props.outlined &&
|
161
|
+
!parent.props.plain,
|
162
|
+
},
|
163
|
+
// Info Text Button
|
164
|
+
{
|
165
|
+
'text-blue-500': parent.props.text &&
|
166
|
+
parent.props.severity === 'info' &&
|
167
|
+
!parent.props.plain,
|
168
|
+
},
|
169
|
+
// Info Outlined Button
|
170
|
+
{
|
171
|
+
'text-blue-500 ring-1 ring-blue-500 hover:bg-blue-300/20 ': parent.props.outlined &&
|
172
|
+
parent.props.severity === 'info' &&
|
173
|
+
!parent.props.plain,
|
174
|
+
},
|
175
|
+
// Warning Button
|
176
|
+
{
|
177
|
+
'text-white': parent.props.severity === 'warning' &&
|
178
|
+
!parent.props.text &&
|
179
|
+
!parent.props.outlined &&
|
180
|
+
!parent.props.plain,
|
181
|
+
'bg-orange-500': parent.props.severity === 'warning' &&
|
182
|
+
!parent.props.text &&
|
183
|
+
!parent.props.outlined &&
|
184
|
+
!parent.props.plain,
|
185
|
+
'ring-1 ring-orange-500': parent.props.severity === 'warning' &&
|
186
|
+
!parent.props.text &&
|
187
|
+
!parent.props.outlined &&
|
188
|
+
!parent.props.plain,
|
189
|
+
},
|
190
|
+
// Warning Text Button
|
191
|
+
{
|
192
|
+
'text-orange-500': parent.props.text &&
|
193
|
+
parent.props.severity === 'warning' &&
|
194
|
+
!parent.props.plain,
|
195
|
+
},
|
196
|
+
// Warning Outlined Button
|
197
|
+
{
|
198
|
+
'text-orange-500 ring-1 ring-orange-500 hover:bg-orange-300/20': parent.props.outlined &&
|
199
|
+
parent.props.severity === 'warning' &&
|
200
|
+
!parent.props.plain,
|
201
|
+
},
|
202
|
+
// Help Button
|
203
|
+
{
|
204
|
+
'text-white': parent.props.severity === 'help' &&
|
205
|
+
!parent.props.text &&
|
206
|
+
!parent.props.outlined &&
|
207
|
+
!parent.props.plain,
|
208
|
+
'bg-purple-500': parent.props.severity === 'help' &&
|
209
|
+
!parent.props.text &&
|
210
|
+
!parent.props.outlined &&
|
211
|
+
!parent.props.plain,
|
212
|
+
'ring-1 ring-purple-500': parent.props.severity === 'help' &&
|
213
|
+
!parent.props.text &&
|
214
|
+
!parent.props.outlined &&
|
215
|
+
!parent.props.plain,
|
216
|
+
},
|
217
|
+
// Help Text Button
|
218
|
+
{
|
219
|
+
'text-purple-500': parent.props.text &&
|
220
|
+
parent.props.severity === 'help' &&
|
221
|
+
!parent.props.plain,
|
222
|
+
},
|
223
|
+
// Help Outlined Button
|
224
|
+
{
|
225
|
+
'text-purple-500 ring-1 ring-purple-500 hover:bg-purple-300/20': parent.props.outlined &&
|
226
|
+
parent.props.severity === 'help' &&
|
227
|
+
!parent.props.plain,
|
228
|
+
},
|
229
|
+
// Danger Button
|
230
|
+
{
|
231
|
+
'text-white': parent.props.severity === 'danger' &&
|
232
|
+
!parent.props.text &&
|
233
|
+
!parent.props.outlined &&
|
234
|
+
!parent.props.plain,
|
235
|
+
'bg-red-500': parent.props.severity === 'danger' &&
|
236
|
+
!parent.props.text &&
|
237
|
+
!parent.props.outlined &&
|
238
|
+
!parent.props.plain,
|
239
|
+
'ring-1 ring-red-500': parent.props.severity === 'danger' &&
|
240
|
+
!parent.props.text &&
|
241
|
+
!parent.props.outlined &&
|
242
|
+
!parent.props.plain,
|
243
|
+
},
|
244
|
+
// Danger Text Button
|
245
|
+
{
|
246
|
+
'text-red-500': parent.props.text &&
|
247
|
+
parent.props.severity === 'danger' &&
|
248
|
+
!parent.props.plain,
|
249
|
+
},
|
250
|
+
// Danger Outlined Button
|
251
|
+
{
|
252
|
+
'text-red-500 ring-1 ring-red-500 hover:bg-red-300/20': parent.props.outlined &&
|
253
|
+
parent.props.severity === 'danger' &&
|
254
|
+
!parent.props.plain,
|
255
|
+
},
|
256
|
+
// --- Severity Button States ---
|
257
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-offset-current',
|
258
|
+
{
|
259
|
+
'focus:ring-offset-2': !parent.props.link &&
|
260
|
+
!parent.props.plain &&
|
261
|
+
!parent.props.outlined &&
|
262
|
+
!parent.props.text,
|
263
|
+
},
|
264
|
+
// Link
|
265
|
+
{
|
266
|
+
'focus:ring-primary-500': parent.props.link,
|
267
|
+
},
|
268
|
+
// Plain
|
269
|
+
{
|
270
|
+
'hover:bg-gray-600 hover:ring-gray-600': parent.props.plain && !parent.props.outlined && !parent.props.text,
|
271
|
+
},
|
272
|
+
// Text & Outlined Button
|
273
|
+
{
|
274
|
+
'hover:bg-surface-300/20': parent.props.plain && (parent.props.text || parent.props.outlined),
|
275
|
+
},
|
276
|
+
// Primary
|
277
|
+
{
|
278
|
+
'hover:bg-primary-600 hover:ring-primary-600': !parent.props.link &&
|
279
|
+
parent.props.severity === null &&
|
280
|
+
!parent.props.text &&
|
281
|
+
!parent.props.outlined &&
|
282
|
+
!parent.props.plain,
|
283
|
+
},
|
284
|
+
{
|
285
|
+
'focus:ring-primary-500': parent.props.severity === null,
|
286
|
+
},
|
287
|
+
// Text & Outlined Button
|
288
|
+
{
|
289
|
+
'hover:bg-primary-300/20': (parent.props.text || parent.props.outlined) &&
|
290
|
+
parent.props.severity === null &&
|
291
|
+
!parent.props.plain,
|
292
|
+
},
|
293
|
+
// Secondary
|
294
|
+
{
|
295
|
+
'hover:bg-surface-600 hover:ring-surface-600': parent.props.severity === 'secondary' &&
|
296
|
+
!parent.props.text &&
|
297
|
+
!parent.props.outlined &&
|
298
|
+
!parent.props.plain,
|
299
|
+
},
|
300
|
+
{
|
301
|
+
'focus:ring-surface-500': parent.props.severity === 'secondary',
|
302
|
+
},
|
303
|
+
// Text & Outlined Button
|
304
|
+
{
|
305
|
+
'hover:bg-surface-300/20': (parent.props.text || parent.props.outlined) &&
|
306
|
+
parent.props.severity === 'secondary' &&
|
307
|
+
!parent.props.plain,
|
308
|
+
},
|
309
|
+
// Success
|
310
|
+
{
|
311
|
+
'hover:bg-green-600 hover:ring-green-600': parent.props.severity === 'success' &&
|
312
|
+
!parent.props.text &&
|
313
|
+
!parent.props.outlined &&
|
314
|
+
!parent.props.plain,
|
315
|
+
},
|
316
|
+
{
|
317
|
+
'focus:ring-green-500': parent.props.severity === 'success',
|
318
|
+
},
|
319
|
+
// Text & Outlined Button
|
320
|
+
{
|
321
|
+
'hover:bg-green-300/20': (parent.props.text || parent.props.outlined) &&
|
322
|
+
parent.props.severity === 'success' &&
|
323
|
+
!parent.props.plain,
|
324
|
+
},
|
325
|
+
// Info
|
326
|
+
{
|
327
|
+
'hover:bg-blue-600 hover:ring-blue-600': parent.props.severity === 'info' &&
|
328
|
+
!parent.props.text &&
|
329
|
+
!parent.props.outlined &&
|
330
|
+
!parent.props.plain,
|
331
|
+
},
|
332
|
+
{
|
333
|
+
'focus:ring-blue-500': parent.props.severity === 'info',
|
334
|
+
},
|
335
|
+
// Text & Outlined Button
|
336
|
+
{
|
337
|
+
'hover:bg-blue-300/20': (parent.props.text || parent.props.outlined) &&
|
338
|
+
parent.props.severity === 'info' &&
|
339
|
+
!parent.props.plain,
|
340
|
+
},
|
341
|
+
// Warning
|
342
|
+
{
|
343
|
+
'hover:bg-orange-600 hover:ring-orange-600': parent.props.severity === 'warning' &&
|
344
|
+
!parent.props.text &&
|
345
|
+
!parent.props.outlined &&
|
346
|
+
!parent.props.plain,
|
347
|
+
},
|
348
|
+
{
|
349
|
+
'focus:ring-orange-500': parent.props.severity === 'warning',
|
350
|
+
},
|
351
|
+
// Text & Outlined Button
|
352
|
+
{
|
353
|
+
'hover:bg-orange-300/20': (parent.props.text || parent.props.outlined) &&
|
354
|
+
parent.props.severity === 'warning' &&
|
355
|
+
!parent.props.plain,
|
356
|
+
},
|
357
|
+
// Help
|
358
|
+
{
|
359
|
+
'hover:bg-purple-600 hover:ring-purple-600': parent.props.severity === 'help' &&
|
360
|
+
!parent.props.text &&
|
361
|
+
!parent.props.outlined &&
|
362
|
+
!parent.props.plain,
|
363
|
+
},
|
364
|
+
{
|
365
|
+
'focus:ring-purple-500': parent.props.severity === 'help',
|
366
|
+
},
|
367
|
+
// Text & Outlined Button
|
368
|
+
{
|
369
|
+
'hover:bg-purple-300/20': (parent.props.text || parent.props.outlined) &&
|
370
|
+
parent.props.severity === 'help' &&
|
371
|
+
!parent.props.plain,
|
372
|
+
},
|
373
|
+
// Warning
|
374
|
+
{
|
375
|
+
'hover:bg-red-600 hover:ring-red-600': parent.props.severity === 'danger' &&
|
376
|
+
!parent.props.text &&
|
377
|
+
!parent.props.outlined &&
|
378
|
+
!parent.props.plain,
|
379
|
+
},
|
380
|
+
{
|
381
|
+
'focus:ring-red-500': parent.props.severity === 'danger',
|
382
|
+
},
|
383
|
+
// Text & Outlined Button
|
384
|
+
{
|
385
|
+
'hover:bg-red-300/20': (parent.props.text || parent.props.outlined) &&
|
386
|
+
parent.props.severity === 'danger' &&
|
387
|
+
!parent.props.plain,
|
388
|
+
},
|
389
|
+
// Transitions
|
390
|
+
'transition duration-200 ease-in-out',
|
391
|
+
// Misc
|
392
|
+
'cursor-pointer overflow-hidden select-none',
|
393
|
+
],
|
394
|
+
});
|
395
|
+
},
|
396
|
+
icon: {
|
397
|
+
class: [
|
398
|
+
// Margins
|
399
|
+
'mr-2',
|
400
|
+
],
|
401
|
+
},
|
402
|
+
},
|
403
|
+
menubutton: {
|
404
|
+
root: function (_a) {
|
405
|
+
var parent = _a.parent;
|
406
|
+
return ({
|
407
|
+
class: [
|
408
|
+
'relative',
|
409
|
+
// Alignments
|
410
|
+
'items-center inline-flex text-center align-bottom justify-center',
|
411
|
+
// Sizes & Spacing
|
412
|
+
'text-sm',
|
413
|
+
{
|
414
|
+
'px-2.5 py-1.5 min-w-[2rem]': parent.props.size === null && parent.props.label !== null,
|
415
|
+
'px-2 py-1': parent.props.size === 'small',
|
416
|
+
'px-3 py-2': parent.props.size === 'large',
|
417
|
+
},
|
418
|
+
{
|
419
|
+
'h-8 w-8 p-0': parent.props.label == null,
|
420
|
+
},
|
421
|
+
'ml-[1px]',
|
422
|
+
// Shape
|
423
|
+
'rounded-l-none',
|
424
|
+
{ 'rounded-l-full': parent.props.rounded },
|
425
|
+
{
|
426
|
+
'rounded-md': !parent.props.rounded,
|
427
|
+
'rounded-full': parent.props.rounded,
|
428
|
+
},
|
429
|
+
// Link Button
|
430
|
+
{
|
431
|
+
'text-primary-600 bg-transparent ring-transparent': parent.props.link,
|
432
|
+
},
|
433
|
+
// Plain Button
|
434
|
+
{
|
435
|
+
'text-white bg-gray-500 ring-1 ring-gray-500': parent.props.plain && !parent.props.outlined && !parent.props.text,
|
436
|
+
},
|
437
|
+
// Plain Text Button
|
438
|
+
{ 'text-surface-500': parent.props.plain && parent.props.text },
|
439
|
+
// Plain Outlined Button
|
440
|
+
{
|
441
|
+
'text-surface-500 ring-1 ring-gray-500': parent.props.plain && parent.props.outlined,
|
442
|
+
},
|
443
|
+
// Text Button
|
444
|
+
{
|
445
|
+
'bg-transparent ring-transparent': parent.props.text && !parent.props.plain,
|
446
|
+
},
|
447
|
+
// Outlined Button
|
448
|
+
{ 'bg-transparent': parent.props.outlined && !parent.props.plain },
|
449
|
+
// --- Severity Buttons ---
|
450
|
+
// Primary Button
|
451
|
+
{
|
452
|
+
'text-white': !parent.props.link &&
|
453
|
+
parent.props.severity === null &&
|
454
|
+
!parent.props.text &&
|
455
|
+
!parent.props.outlined &&
|
456
|
+
!parent.props.plain,
|
457
|
+
'bg-primary-500': !parent.props.link &&
|
458
|
+
parent.props.severity === null &&
|
459
|
+
!parent.props.text &&
|
460
|
+
!parent.props.outlined &&
|
461
|
+
!parent.props.plain,
|
462
|
+
'ring-1 ring-primary-500': !parent.props.link &&
|
463
|
+
parent.props.severity === null &&
|
464
|
+
!parent.props.text &&
|
465
|
+
!parent.props.outlined &&
|
466
|
+
!parent.props.plain,
|
467
|
+
},
|
468
|
+
// Primary Text Button
|
469
|
+
{
|
470
|
+
'text-primary-500': parent.props.text &&
|
471
|
+
parent.props.severity === null &&
|
472
|
+
!parent.props.plain,
|
473
|
+
},
|
474
|
+
// Primary Outlined Button
|
475
|
+
{
|
476
|
+
'text-primary-500 ring-1 ring-primary-500 hover:bg-primary-300/20': parent.props.outlined &&
|
477
|
+
parent.props.severity === null &&
|
478
|
+
!parent.props.plain,
|
479
|
+
},
|
480
|
+
// Secondary Button
|
481
|
+
{
|
482
|
+
'text-white': parent.props.severity === 'secondary' &&
|
483
|
+
!parent.props.text &&
|
484
|
+
!parent.props.outlined &&
|
485
|
+
!parent.props.plain,
|
486
|
+
'bg-surface-500': parent.props.severity === 'secondary' &&
|
487
|
+
!parent.props.text &&
|
488
|
+
!parent.props.outlined &&
|
489
|
+
!parent.props.plain,
|
490
|
+
'ring-1 ring-surface-500': parent.props.severity === 'secondary' &&
|
491
|
+
!parent.props.text &&
|
492
|
+
!parent.props.outlined &&
|
493
|
+
!parent.props.plain,
|
494
|
+
},
|
495
|
+
// Secondary Text Button
|
496
|
+
{
|
497
|
+
'text-surface-500': parent.props.text &&
|
498
|
+
parent.props.severity === 'secondary' &&
|
499
|
+
!parent.props.plain,
|
500
|
+
},
|
501
|
+
// Secondary Outlined Button
|
502
|
+
{
|
503
|
+
'text-surface-500 ring-1 ring-surface-500 hover:bg-surface-300/20': parent.props.outlined &&
|
504
|
+
parent.props.severity === 'secondary' &&
|
505
|
+
!parent.props.plain,
|
506
|
+
},
|
507
|
+
// Success Button
|
508
|
+
{
|
509
|
+
'text-white': parent.props.severity === 'success' &&
|
510
|
+
!parent.props.text &&
|
511
|
+
!parent.props.outlined &&
|
512
|
+
!parent.props.plain,
|
513
|
+
'bg-green-500': parent.props.severity === 'success' &&
|
514
|
+
!parent.props.text &&
|
515
|
+
!parent.props.outlined &&
|
516
|
+
!parent.props.plain,
|
517
|
+
'ring-1 ring-green-500': parent.props.severity === 'success' &&
|
518
|
+
!parent.props.text &&
|
519
|
+
!parent.props.outlined &&
|
520
|
+
!parent.props.plain,
|
521
|
+
},
|
522
|
+
// Success Text Button
|
523
|
+
{
|
524
|
+
'text-surface-500': parent.props.text &&
|
525
|
+
parent.props.severity === 'secondary' &&
|
526
|
+
!parent.props.plain,
|
527
|
+
},
|
528
|
+
// Success Outlined Button
|
529
|
+
{
|
530
|
+
'text-green-500 ring-1 ring-green-500 hover:bg-green-300/20': parent.props.outlined &&
|
531
|
+
parent.props.severity === 'success' &&
|
532
|
+
!parent.props.plain,
|
533
|
+
},
|
534
|
+
// Info Button
|
535
|
+
{
|
536
|
+
'text-white': parent.props.severity === 'info' &&
|
537
|
+
!parent.props.text &&
|
538
|
+
!parent.props.outlined &&
|
539
|
+
!parent.props.plain,
|
540
|
+
'bg-blue-500': parent.props.severity === 'info' &&
|
541
|
+
!parent.props.text &&
|
542
|
+
!parent.props.outlined &&
|
543
|
+
!parent.props.plain,
|
544
|
+
'ring-1 ring-blue-500': parent.props.severity === 'info' &&
|
545
|
+
!parent.props.text &&
|
546
|
+
!parent.props.outlined &&
|
547
|
+
!parent.props.plain,
|
548
|
+
},
|
549
|
+
// Info Text Button
|
550
|
+
{
|
551
|
+
'text-blue-500': parent.props.text &&
|
552
|
+
parent.props.severity === 'info' &&
|
553
|
+
!parent.props.plain,
|
554
|
+
},
|
555
|
+
// Info Outlined Button
|
556
|
+
{
|
557
|
+
'text-blue-500 ring-1 ring-blue-500 hover:bg-blue-300/20 ': parent.props.outlined &&
|
558
|
+
parent.props.severity === 'info' &&
|
559
|
+
!parent.props.plain,
|
560
|
+
},
|
561
|
+
// Warning Button
|
562
|
+
{
|
563
|
+
'text-white': parent.props.severity === 'warning' &&
|
564
|
+
!parent.props.text &&
|
565
|
+
!parent.props.outlined &&
|
566
|
+
!parent.props.plain,
|
567
|
+
'bg-orange-500': parent.props.severity === 'warning' &&
|
568
|
+
!parent.props.text &&
|
569
|
+
!parent.props.outlined &&
|
570
|
+
!parent.props.plain,
|
571
|
+
'ring-1 ring-orange-500': parent.props.severity === 'warning' &&
|
572
|
+
!parent.props.text &&
|
573
|
+
!parent.props.outlined &&
|
574
|
+
!parent.props.plain,
|
575
|
+
},
|
576
|
+
// Warning Text Button
|
577
|
+
{
|
578
|
+
'text-orange-500': parent.props.text &&
|
579
|
+
parent.props.severity === 'warning' &&
|
580
|
+
!parent.props.plain,
|
581
|
+
},
|
582
|
+
// Warning Outlined Button
|
583
|
+
{
|
584
|
+
'text-orange-500 ring-1 ring-orange-500 hover:bg-orange-300/20': parent.props.outlined &&
|
585
|
+
parent.props.severity === 'warning' &&
|
586
|
+
!parent.props.plain,
|
587
|
+
},
|
588
|
+
// Help Button
|
589
|
+
{
|
590
|
+
'text-white': parent.props.severity === 'help' &&
|
591
|
+
!parent.props.text &&
|
592
|
+
!parent.props.outlined &&
|
593
|
+
!parent.props.plain,
|
594
|
+
'bg-purple-500': parent.props.severity === 'help' &&
|
595
|
+
!parent.props.text &&
|
596
|
+
!parent.props.outlined &&
|
597
|
+
!parent.props.plain,
|
598
|
+
'ring-1 ring-purple-500': parent.props.severity === 'help' &&
|
599
|
+
!parent.props.text &&
|
600
|
+
!parent.props.outlined &&
|
601
|
+
!parent.props.plain,
|
602
|
+
},
|
603
|
+
// Help Text Button
|
604
|
+
{
|
605
|
+
'text-purple-500': parent.props.text &&
|
606
|
+
parent.props.severity === 'help' &&
|
607
|
+
!parent.props.plain,
|
608
|
+
},
|
609
|
+
// Help Outlined Button
|
610
|
+
{
|
611
|
+
'text-purple-500 ring-1 ring-purple-500 hover:bg-purple-300/20': parent.props.outlined &&
|
612
|
+
parent.props.severity === 'help' &&
|
613
|
+
!parent.props.plain,
|
614
|
+
},
|
615
|
+
// Danger Button
|
616
|
+
{
|
617
|
+
'text-white': parent.props.severity === 'danger' &&
|
618
|
+
!parent.props.text &&
|
619
|
+
!parent.props.outlined &&
|
620
|
+
!parent.props.plain,
|
621
|
+
'bg-red-500': parent.props.severity === 'danger' &&
|
622
|
+
!parent.props.text &&
|
623
|
+
!parent.props.outlined &&
|
624
|
+
!parent.props.plain,
|
625
|
+
'ring-1 ring-red-500': parent.props.severity === 'danger' &&
|
626
|
+
!parent.props.text &&
|
627
|
+
!parent.props.outlined &&
|
628
|
+
!parent.props.plain,
|
629
|
+
},
|
630
|
+
// Danger Text Button
|
631
|
+
{
|
632
|
+
'text-red-500': parent.props.text &&
|
633
|
+
parent.props.severity === 'danger' &&
|
634
|
+
!parent.props.plain,
|
635
|
+
},
|
636
|
+
// Danger Outlined Button
|
637
|
+
{
|
638
|
+
'text-red-500 ring-1 ring-red-500 hover:bg-red-300/20': parent.props.outlined &&
|
639
|
+
parent.props.severity === 'danger' &&
|
640
|
+
!parent.props.plain,
|
641
|
+
},
|
642
|
+
// --- Severity Button States ---
|
643
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-offset-current',
|
644
|
+
{
|
645
|
+
'focus:ring-offset-2': !parent.props.link &&
|
646
|
+
!parent.props.plain &&
|
647
|
+
!parent.props.outlined &&
|
648
|
+
!parent.props.text,
|
649
|
+
},
|
650
|
+
// Link
|
651
|
+
{
|
652
|
+
'focus:ring-primary-500': parent.props.link,
|
653
|
+
},
|
654
|
+
// Plain
|
655
|
+
{
|
656
|
+
'hover:bg-gray-600 hover:ring-gray-600': parent.props.plain && !parent.props.outlined && !parent.props.text,
|
657
|
+
},
|
658
|
+
// Text & Outlined Button
|
659
|
+
{
|
660
|
+
'hover:bg-surface-300/20': parent.props.plain && (parent.props.text || parent.props.outlined),
|
661
|
+
},
|
662
|
+
// Primary
|
663
|
+
{
|
664
|
+
'hover:bg-primary-600 hover:ring-primary-600': !parent.props.link &&
|
665
|
+
parent.props.severity === null &&
|
666
|
+
!parent.props.text &&
|
667
|
+
!parent.props.outlined &&
|
668
|
+
!parent.props.plain,
|
669
|
+
},
|
670
|
+
{
|
671
|
+
'focus:ring-primary-500': parent.props.severity === null,
|
672
|
+
},
|
673
|
+
// Text & Outlined Button
|
674
|
+
{
|
675
|
+
'hover:bg-primary-300/20': (parent.props.text || parent.props.outlined) &&
|
676
|
+
parent.props.severity === null &&
|
677
|
+
!parent.props.plain,
|
678
|
+
},
|
679
|
+
// Secondary
|
680
|
+
{
|
681
|
+
'hover:bg-surface-600 hover:ring-surface-600': parent.props.severity === 'secondary' &&
|
682
|
+
!parent.props.text &&
|
683
|
+
!parent.props.outlined &&
|
684
|
+
!parent.props.plain,
|
685
|
+
},
|
686
|
+
{
|
687
|
+
'focus:ring-surface-500': parent.props.severity === 'secondary',
|
688
|
+
},
|
689
|
+
// Text & Outlined Button
|
690
|
+
{
|
691
|
+
'hover:bg-surface-300/20': (parent.props.text || parent.props.outlined) &&
|
692
|
+
parent.props.severity === 'secondary' &&
|
693
|
+
!parent.props.plain,
|
694
|
+
},
|
695
|
+
// Success
|
696
|
+
{
|
697
|
+
'hover:bg-green-600 hover:ring-green-600': parent.props.severity === 'success' &&
|
698
|
+
!parent.props.text &&
|
699
|
+
!parent.props.outlined &&
|
700
|
+
!parent.props.plain,
|
701
|
+
},
|
702
|
+
{
|
703
|
+
'focus:ring-green-500': parent.props.severity === 'success',
|
704
|
+
},
|
705
|
+
// Text & Outlined Button
|
706
|
+
{
|
707
|
+
'hover:bg-green-300/20': (parent.props.text || parent.props.outlined) &&
|
708
|
+
parent.props.severity === 'success' &&
|
709
|
+
!parent.props.plain,
|
710
|
+
},
|
711
|
+
// Info
|
712
|
+
{
|
713
|
+
'hover:bg-blue-600 hover:ring-blue-600': parent.props.severity === 'info' &&
|
714
|
+
!parent.props.text &&
|
715
|
+
!parent.props.outlined &&
|
716
|
+
!parent.props.plain,
|
717
|
+
},
|
718
|
+
{
|
719
|
+
'focus:ring-blue-500': parent.props.severity === 'info',
|
720
|
+
},
|
721
|
+
// Text & Outlined Button
|
722
|
+
{
|
723
|
+
'hover:bg-blue-300/20': (parent.props.text || parent.props.outlined) &&
|
724
|
+
parent.props.severity === 'info' &&
|
725
|
+
!parent.props.plain,
|
726
|
+
},
|
727
|
+
// Warning
|
728
|
+
{
|
729
|
+
'hover:bg-orange-600 hover:ring-orange-600': parent.props.severity === 'warning' &&
|
730
|
+
!parent.props.text &&
|
731
|
+
!parent.props.outlined &&
|
732
|
+
!parent.props.plain,
|
733
|
+
},
|
734
|
+
{
|
735
|
+
'focus:ring-orange-500': parent.props.severity === 'warning',
|
736
|
+
},
|
737
|
+
// Text & Outlined Button
|
738
|
+
{
|
739
|
+
'hover:bg-orange-300/20': (parent.props.text || parent.props.outlined) &&
|
740
|
+
parent.props.severity === 'warning' &&
|
741
|
+
!parent.props.plain,
|
742
|
+
},
|
743
|
+
// Help
|
744
|
+
{
|
745
|
+
'hover:bg-purple-600 hover:ring-purple-600': parent.props.severity === 'help' &&
|
746
|
+
!parent.props.text &&
|
747
|
+
!parent.props.outlined &&
|
748
|
+
!parent.props.plain,
|
749
|
+
},
|
750
|
+
{
|
751
|
+
'focus:ring-purple-500': parent.props.severity === 'help',
|
752
|
+
},
|
753
|
+
// Text & Outlined Button
|
754
|
+
{
|
755
|
+
'hover:bg-purple-300/20': (parent.props.text || parent.props.outlined) &&
|
756
|
+
parent.props.severity === 'help' &&
|
757
|
+
!parent.props.plain,
|
758
|
+
},
|
759
|
+
// Warning
|
760
|
+
{
|
761
|
+
'hover:bg-red-600 hover:ring-red-600': parent.props.severity === 'danger' &&
|
762
|
+
!parent.props.text &&
|
763
|
+
!parent.props.outlined &&
|
764
|
+
!parent.props.plain,
|
765
|
+
},
|
766
|
+
{
|
767
|
+
'focus:ring-red-500': parent.props.severity === 'danger',
|
768
|
+
},
|
769
|
+
// Text & Outlined Button
|
770
|
+
{
|
771
|
+
'hover:bg-red-300/20': (parent.props.text || parent.props.outlined) &&
|
772
|
+
parent.props.severity === 'danger' &&
|
773
|
+
!parent.props.plain,
|
774
|
+
},
|
775
|
+
// Transitions
|
776
|
+
'transition duration-200 ease-in-out',
|
777
|
+
// Misc
|
778
|
+
'cursor-pointer overflow-hidden select-none',
|
779
|
+
],
|
780
|
+
});
|
781
|
+
},
|
782
|
+
label: {
|
783
|
+
class: ['hidden'],
|
784
|
+
},
|
785
|
+
},
|
786
|
+
};
|