@plusui/library 0.1.7 → 0.1.9
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/cdn/components/accordion/accordion.js +3 -3
- package/cdn/components/accordion/index.js +3 -3
- package/cdn/components/accordion-group/accordion-group.js +3 -3
- package/cdn/components/accordion-group/index.js +3 -3
- package/cdn/components/alert/alert.js +4 -4
- package/cdn/components/alert/index.js +4 -4
- package/cdn/components/avatar/avatar.js +5 -5
- package/cdn/components/avatar/index.js +5 -5
- package/cdn/components/badge/badge.host.style.js +1 -1
- package/cdn/components/badge/badge.js +5 -5
- package/cdn/components/badge/index.js +5 -5
- package/cdn/components/base/index.js +2 -2
- package/cdn/components/base/tailwind-base.js +3 -3
- package/cdn/components/breadcrumb/breadcrumb.js +3 -3
- package/cdn/components/breadcrumb/index.js +3 -3
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +4 -4
- package/cdn/components/breadcrumb-item/index.js +4 -4
- package/cdn/components/button/button.js +96 -17
- package/cdn/components/button/index.js +4 -4
- package/cdn/components/button-group/button-group.js +4 -4
- package/cdn/components/button-group/index.js +4 -4
- package/cdn/components/checkbox/checkbox.js +5 -5
- package/cdn/components/checkbox/index.js +5 -5
- package/cdn/components/checkbox-group/checkbox-group.js +3 -3
- package/cdn/components/checkbox-group/index.js +3 -3
- package/cdn/components/chip/chip.js +4 -4
- package/cdn/components/chip/index.js +4 -4
- package/cdn/components/divider/divider.js +4 -4
- package/cdn/components/divider/divider.style.js +1 -1
- package/cdn/components/divider/index.js +4 -4
- package/cdn/components/drawer/drawer.js +4 -4
- package/cdn/components/drawer/index.js +4 -4
- package/cdn/components/dropdown/dropdown.js +5 -5
- package/cdn/components/dropdown/index.js +5 -5
- package/cdn/components/dropdown-item/dropdown-item.js +5 -5
- package/cdn/components/dropdown-item/index.js +5 -5
- package/cdn/components/icon/icon.js +4 -4
- package/cdn/components/icon/index.js +3 -3
- package/cdn/components/index.js +8 -8
- package/cdn/components/input/index.js +6 -6
- package/cdn/components/input/input.js +6 -6
- package/cdn/components/link/index.js +3 -3
- package/cdn/components/link/link.js +9 -32
- package/cdn/components/list-box-item/index.js +4 -4
- package/cdn/components/list-box-item/list-box-item.js +4 -4
- package/cdn/components/modal/index.js +4 -4
- package/cdn/components/modal/modal.js +4 -4
- package/cdn/components/popconfirm/index.js +5 -5
- package/cdn/components/popconfirm/popconfirm.js +5 -5
- package/cdn/components/popover/index.js +5 -5
- package/cdn/components/popover/popover.js +5 -5
- package/cdn/components/radio/index.js +5 -5
- package/cdn/components/radio/radio.js +5 -5
- package/cdn/components/radio-group/index.js +3 -3
- package/cdn/components/radio-group/radio-group.js +3 -3
- package/cdn/components/rating/index.js +6 -6
- package/cdn/components/rating/rating.js +6 -6
- package/cdn/components/segmented-picker/index.js +3 -3
- package/cdn/components/segmented-picker/segmented-picker.component.js +3 -3
- package/cdn/components/segmented-picker-item/index.js +4 -4
- package/cdn/components/segmented-picker-item/segmented-picker-item.component.js +4 -4
- package/cdn/components/select/index.js +5 -5
- package/cdn/components/select/select.js +5 -5
- package/cdn/components/select-item/index.js +5 -5
- package/cdn/components/select-item/select-item.js +5 -5
- package/cdn/components/service/index.js +4 -4
- package/cdn/components/service/service.js +5 -5
- package/cdn/components/tab/index.js +4 -4
- package/cdn/components/tab/tab.js +4 -4
- package/cdn/components/tab-group/index.js +4 -4
- package/cdn/components/tab-group/tab-group.js +4 -4
- package/cdn/components/tab-panel/index.js +3 -3
- package/cdn/components/tab-panel/tab-panel.js +3 -3
- package/cdn/components/tag/index.js +4 -4
- package/cdn/components/tag/tag.js +4 -4
- package/cdn/components/text/index.js +3 -3
- package/cdn/components/text/text.js +3 -3
- package/cdn/components/textarea/index.js +6 -6
- package/cdn/components/textarea/textarea.js +6 -6
- package/cdn/components/toast/index.js +3 -3
- package/cdn/components/toast/toast.js +3 -3
- package/cdn/components/toast-container/index.js +4 -4
- package/cdn/components/toast-container/toast-container.js +4 -4
- package/cdn/components/toggle/index.js +7 -7
- package/cdn/components/toggle/toggle.js +7 -7
- package/cdn/components/tooltip/index.js +5 -5
- package/cdn/components/tooltip/tooltip.js +5 -5
- package/cdn/factory/tailwind-factory.js +7 -7
- package/cdn/floating-ui.dom-BYyWpmHF.js +1 -0
- package/{dist/floating-ui.dom-OBaMlALa.js → cdn/floating-ui.dom-BpzIshEG.js} +26 -14
- package/cdn/global-9t6v8EOl.js +31 -0
- package/cdn/global-CRwUv2yr.js +1 -0
- package/cdn/{if-defined-CQ5F5a3V.js → if-defined-CIB8OTrH.js} +1 -1
- package/cdn/{if-defined-D-m3dgRf.js → if-defined-DpyZ37D-.js} +1 -1
- package/cdn/lit-element-BNK__jO-.js +27 -0
- package/cdn/lit-element-CSuLHuHb.js +22 -0
- package/cdn/{live-BOAtKRUN.js → live-C1eBrEBV.js} +1 -1
- package/cdn/{live-Ba4FL2pG.js → live-CYp4nasd.js} +1 -1
- package/cdn/property-B8EDuyz_.js +7 -0
- package/cdn/{property-DiPQx9S3.js → property-Dz31PgR6.js} +2 -2
- package/{dist/state-D1d5Sfj8.js → cdn/state-BRspp5eU.js} +1 -1
- package/{dist/state-DpLenR_7.js → cdn/state-hFbsBSdV.js} +1 -1
- package/cdn/{style-map-Z-XBeQmS.js → style-map-BYRi_l0u.js} +1 -1
- package/{dist/style-map-DC_vNus2.js → cdn/style-map-Cgr6kXUm.js} +1 -1
- package/custom-elements.json +146 -17
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.js +2 -2
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist/components/accordion-group/accordion-group.js +2 -2
- package/dist/components/accordion-group/index.js +2 -2
- package/dist/components/alert/alert.d.ts +1 -1
- package/dist/components/alert/alert.js +3 -3
- package/dist/components/alert/index.js +3 -3
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/avatar.js +4 -4
- package/dist/components/avatar/index.js +4 -4
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.host.style.js +1 -1
- package/dist/components/badge/badge.js +4 -4
- package/dist/components/badge/index.js +4 -4
- package/dist/components/base/index.js +1 -1
- package/dist/components/base/tailwind-base.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/components/breadcrumb/index.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/breadcrumb-item/index.js +3 -3
- package/dist/components/button/button.d.ts +36 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +95 -16
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button/index.js +3 -3
- package/dist/components/button-group/button-group.d.ts +1 -1
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/button-group/index.js +3 -3
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/checkbox/index.js +4 -4
- package/dist/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.js +2 -2
- package/dist/components/checkbox-group/index.js +2 -2
- package/dist/components/chip/chip.d.ts +1 -1
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/chip/index.js +3 -3
- package/dist/components/divider/divider.d.ts +1 -1
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/divider/divider.style.js +1 -1
- package/dist/components/divider/index.js +3 -3
- package/dist/components/drawer/drawer.d.ts +1 -1
- package/dist/components/drawer/drawer.js +3 -3
- package/dist/components/drawer/index.js +3 -3
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/dropdown/dropdown.js +4 -4
- package/dist/components/dropdown/index.js +4 -4
- package/dist/components/dropdown-item/dropdown-item.d.ts +1 -1
- package/dist/components/dropdown-item/dropdown-item.js +4 -4
- package/dist/components/dropdown-item/index.js +4 -4
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/icon/icon.js +4 -4
- package/dist/components/icon/index.js +3 -3
- package/dist/components/index.js +7 -7
- package/dist/components/input/index.js +5 -5
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +5 -5
- package/dist/components/link/index.js +2 -2
- package/dist/components/link/link.d.ts +5 -5
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/link/link.js +8 -31
- package/dist/components/link/link.js.map +1 -1
- package/dist/components/list-box-item/index.js +3 -3
- package/dist/components/list-box-item/list-box-item.d.ts +1 -1
- package/dist/components/list-box-item/list-box-item.js +3 -3
- package/dist/components/modal/index.js +3 -3
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/modal/modal.js +3 -3
- package/dist/components/popconfirm/index.js +4 -4
- package/dist/components/popconfirm/popconfirm.d.ts +1 -1
- package/dist/components/popconfirm/popconfirm.js +4 -4
- package/dist/components/popover/index.js +4 -4
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.js +4 -4
- package/dist/components/radio/index.js +4 -4
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/radio-group/radio-group.d.ts +1 -1
- package/dist/components/radio-group/radio-group.js +2 -2
- package/dist/components/rating/index.js +5 -5
- package/dist/components/rating/rating.d.ts +1 -1
- package/dist/components/rating/rating.js +5 -5
- package/dist/components/segmented-picker/index.js +2 -2
- package/dist/components/segmented-picker/segmented-picker.component.d.ts +1 -1
- package/dist/components/segmented-picker/segmented-picker.component.js +2 -2
- package/dist/components/segmented-picker-item/index.js +3 -3
- package/dist/components/segmented-picker-item/segmented-picker-item.component.d.ts +1 -1
- package/dist/components/segmented-picker-item/segmented-picker-item.component.js +3 -3
- package/dist/components/select/index.js +4 -4
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.js +4 -4
- package/dist/components/select-item/index.js +4 -4
- package/dist/components/select-item/select-item.d.ts +1 -1
- package/dist/components/select-item/select-item.js +4 -4
- package/dist/components/service/index.js +3 -3
- package/dist/components/service/service.d.ts +1 -1
- package/dist/components/service/service.js +4 -4
- package/dist/components/tab/index.js +3 -3
- package/dist/components/tab/tab.d.ts +1 -1
- package/dist/components/tab/tab.js +3 -3
- package/dist/components/tab-group/index.js +3 -3
- package/dist/components/tab-group/tab-group.d.ts +1 -1
- package/dist/components/tab-group/tab-group.js +3 -3
- package/dist/components/tab-panel/index.js +2 -2
- package/dist/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist/components/tab-panel/tab-panel.js +2 -2
- package/dist/components/tag/index.js +3 -3
- package/dist/components/tag/tag.d.ts +1 -1
- package/dist/components/tag/tag.js +3 -3
- package/dist/components/text/index.js +2 -2
- package/dist/components/text/text.d.ts +1 -1
- package/dist/components/text/text.js +2 -2
- package/dist/components/textarea/index.js +5 -5
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/textarea.js +5 -5
- package/dist/components/toast/index.js +2 -2
- package/dist/components/toast/toast.js +2 -2
- package/dist/components/toast-container/index.js +3 -3
- package/dist/components/toast-container/toast-container.d.ts +1 -1
- package/dist/components/toast-container/toast-container.js +3 -3
- package/dist/components/toggle/index.js +6 -6
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/components/toggle/toggle.js +6 -6
- package/dist/components/tooltip/index.js +4 -4
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/factory/tailwind-factory.d.ts.map +1 -1
- package/dist/factory/tailwind-factory.js +6 -6
- package/{cdn/floating-ui.dom-OBaMlALa.js → dist/floating-ui.dom-BpzIshEG.js} +26 -14
- package/dist/floating-ui.dom-BwkSoRW9.js +1 -0
- package/dist/{if-defined-D-m3dgRf.js → if-defined-DpyZ37D-.js} +1 -1
- package/dist/{if-defined-BqqyuCxY.js → if-defined-DsURCocJ.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/lit-element-BNK__jO-.js +27 -0
- package/dist/lit-element-DWht4T0R.js +22 -0
- package/dist/{live-BOAtKRUN.js → live-C1eBrEBV.js} +1 -1
- package/dist/{live-BNfnKF_Y.js → live-Cv3p2930.js} +1 -1
- package/dist/model/plus.d.ts.map +1 -1
- package/dist/property-D4Afnon0.js +7 -0
- package/dist/{property-DiPQx9S3.js → property-Dz31PgR6.js} +2 -2
- package/dist/{query-CVOEqTwZ.js → query-JZZ8o83g.js} +1 -1
- package/dist/{query-assigned-elements-DJRb4jjx.js → query-assigned-elements-DeL5RNz8.js} +1 -1
- package/{cdn/state-D1d5Sfj8.js → dist/state-BRspp5eU.js} +1 -1
- package/{cdn/state-CoIPL7X5.js → dist/state-CxOUQRG2.js} +1 -1
- package/dist/{style-map-qGL3ZsOU.js → style-map-BSFs8yH4.js} +1 -1
- package/{cdn/style-map-DC_vNus2.js → dist/style-map-Cgr6kXUm.js} +1 -1
- package/dist/styles/global.js +2 -2
- package/dist/utils/boolean-converter.d.ts.map +1 -1
- package/eslint/custom-element-eslint-rules.js +4 -0
- package/package.json +1 -1
- package/public/html/index.js +134 -66
- package/public/react/index.d.ts +104 -46
- package/public/react/index.js +316 -210
- package/react/PlusAccordion.js +9 -9
- package/react/PlusAccordionGroup.js +1 -3
- package/react/PlusAlert.js +9 -9
- package/react/PlusAvatar.js +1 -3
- package/react/PlusBadge.js +1 -3
- package/react/PlusBreadcrumb.js +1 -3
- package/react/PlusBreadcrumbItem.js +1 -3
- package/react/PlusButton.d.ts +23 -0
- package/react/PlusButton.js +22 -5
- package/react/PlusButtonGroup.js +1 -3
- package/react/PlusCheckbox.js +9 -17
- package/react/PlusCheckboxGroup.js +9 -9
- package/react/PlusChip.js +1 -3
- package/react/PlusDivider.js +9 -9
- package/react/PlusDrawer.js +1 -7
- package/react/PlusDropDownItem.js +9 -9
- package/react/PlusDropdown.js +9 -9
- package/react/PlusIcon.js +1 -3
- package/react/PlusInput.js +9 -14
- package/react/PlusLink.js +1 -3
- package/react/PlusListBoxItem.js +9 -9
- package/react/PlusModal.js +1 -7
- package/react/PlusPopconfirm.js +9 -9
- package/react/PlusPopover.js +9 -9
- package/react/PlusRadio.js +9 -12
- package/react/PlusRadioGroup.js +1 -3
- package/react/PlusRating.js +9 -12
- package/react/PlusSegmentedPicker.js +9 -9
- package/react/PlusSegmentedPickerItem.js +1 -3
- package/react/PlusSelect.js +9 -9
- package/react/PlusSelectItem.js +9 -9
- package/react/PlusService.js +1 -3
- package/react/PlusTab.js +1 -3
- package/react/PlusTabGroup.js +9 -9
- package/react/PlusTabPanel.js +1 -3
- package/react/PlusTag.js +1 -3
- package/react/PlusText.js +1 -3
- package/react/PlusTextarea.js +9 -14
- package/react/PlusToast.js +9 -9
- package/react/PlusToastContainer.js +1 -3
- package/react/PlusToggle.js +9 -14
- package/react/PlusTooltip.js +1 -3
- package/react/Tailwind.js +1 -3
- package/types/custom-element-jsx.d.ts +21 -4
- package/types/custom-element-solidjs.d.ts +21 -4
- package/types/custom-element-svelte.d.ts +21 -4
- package/types/custom-element-vuejs.d.ts +21 -4
- package/vscode.html-custom-data.json +35 -1
- package/web-types.json +73 -10
- package/cdn/floating-ui.dom-CXNHR8n2.js +0 -1
- package/cdn/global-CJbRDY6F.js +0 -31
- package/cdn/global-DTtsklIM.js +0 -1
- package/cdn/lit-element-ByzbtpGk.js +0 -27
- package/cdn/lit-element-DNNEDGnu.js +0 -23
- package/cdn/property-DLlzgs39.js +0 -7
- package/dist/floating-ui.dom-CZIJTgi0.js +0 -1
- package/dist/lit-element-ByzbtpGk.js +0 -27
- package/dist/lit-element-DnJ0sDh6.js +0 -23
- package/dist/property-CEzGATrA.js +0 -7
- /package/dist/{base-D0AOfeIR.js → base-2hF1n6hl.js} +0 -0
- /package/dist/{directive-CfWt2y3W.js → directive-DRRu7zbS.js} +0 -0
- /package/dist/{index-Dz2VbYPM.js → index-Up-p3euZ.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.ts"],"names":[],"mappings":"AAGA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.ts"],"names":[],"mappings":"AAGA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAsD7C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,QAAQ;IAC9C,OAAgB,MAAM,4BAkBpB;IACF;;;;;;;OAOG;IAEH,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAY;IAE3D;;;;;;;;;OASG;IAEH,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAC7D;IAEZ;;;;;;OAMG;IAEH,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAEhC;;;OAGG;IAMH,QAAQ,UAAS;IAEjB;;;OAGG;IAMH,OAAO,UAAS;IAQhB,SAAS,UAAS;IAElB;;;OAGG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IAEH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IAEH,QAAQ,UAAS;IAEjB;;;;OAIG;IAEH,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAY;IAE/C,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,UAAU;IAIT,MAAM;CAgIhB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __decorate, n } from '../../property-
|
|
2
|
-
import { i, x } from '../../lit-element-
|
|
1
|
+
import { _ as __decorate, n } from '../../property-Dz31PgR6.js';
|
|
2
|
+
import { a as i, x, E } from '../../lit-element-BNK__jO-.js';
|
|
3
3
|
import { booleanConverter } from '../../utils/boolean-converter.js';
|
|
4
4
|
import Tailwind from '../base/tailwind-base.js';
|
|
5
5
|
import { baseButtonStyle } from './button.style.js';
|
|
6
|
-
import { o } from '../../style-map-
|
|
6
|
+
import { o } from '../../style-map-Cgr6kXUm.js';
|
|
7
7
|
import '../../styles/global.js';
|
|
8
8
|
import '../../style-inject.es-tgCJW-Cu.js';
|
|
9
9
|
import '../../index-B9iart53.js';
|
|
@@ -11,7 +11,7 @@ import '../../directive-DZCF8pFJ.js';
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @tag plus-button
|
|
14
|
-
* @summary
|
|
14
|
+
* @summary Polymorphic button component that can render as either a button or anchor link.
|
|
15
15
|
*
|
|
16
16
|
* @slot - The default slot for button content
|
|
17
17
|
* @slot prefix - Content to be placed before the button content
|
|
@@ -28,9 +28,25 @@ import '../../directive-DZCF8pFJ.js';
|
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* ```html
|
|
31
|
+
* <!-- As a button -->
|
|
31
32
|
* <plus-button kind="filled" status="primary" size="md">
|
|
32
33
|
* Click me
|
|
33
34
|
* </plus-button>
|
|
35
|
+
*
|
|
36
|
+
* <!-- As a link -->
|
|
37
|
+
* <plus-button href="/dashboard" kind="filled" status="primary">
|
|
38
|
+
* Go to Dashboard
|
|
39
|
+
* </plus-button>
|
|
40
|
+
*
|
|
41
|
+
* <!-- External link -->
|
|
42
|
+
* <plus-button href="https://github.com" external kind="outlined">
|
|
43
|
+
* GitHub
|
|
44
|
+
* </plus-button>
|
|
45
|
+
*
|
|
46
|
+
* <!-- Submit button in a form -->
|
|
47
|
+
* <plus-button type="submit" kind="filled" status="primary">
|
|
48
|
+
* Submit Form
|
|
49
|
+
* </plus-button>
|
|
34
50
|
* ```
|
|
35
51
|
*/
|
|
36
52
|
const textColorMap = {
|
|
@@ -84,8 +100,24 @@ class PlusButton extends Tailwind {
|
|
|
84
100
|
*/
|
|
85
101
|
this.loading = false;
|
|
86
102
|
this.fullWidth = false;
|
|
103
|
+
/**
|
|
104
|
+
* When true, link opens in new tab with secure attributes
|
|
105
|
+
* Automatically sets target="_blank" and rel="noopener noreferrer"
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
this.external = false;
|
|
109
|
+
/**
|
|
110
|
+
* Specifies the button type for form interactions
|
|
111
|
+
* Only applies when rendering as a button (no href)
|
|
112
|
+
* @default 'button'
|
|
113
|
+
*/
|
|
114
|
+
this.type = 'button';
|
|
87
115
|
}
|
|
88
|
-
handleClick() {
|
|
116
|
+
handleClick(e) {
|
|
117
|
+
if (this.disabled || this.loading) {
|
|
118
|
+
e.preventDefault();
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
89
121
|
this.emit('plus-click');
|
|
90
122
|
}
|
|
91
123
|
handleFocus() {
|
|
@@ -114,7 +146,7 @@ class PlusButton extends Tailwind {
|
|
|
114
146
|
'--i-text-color': `var(--plus-color-text-${textColorMap[_statusColor]})`,
|
|
115
147
|
'--i-border-color': 'transparent',
|
|
116
148
|
};
|
|
117
|
-
const
|
|
149
|
+
const stylesMap = {
|
|
118
150
|
filled: filledStyles,
|
|
119
151
|
outlined: commonStyles,
|
|
120
152
|
dashed: commonStyles,
|
|
@@ -155,29 +187,58 @@ class PlusButton extends Tailwind {
|
|
|
155
187
|
/>
|
|
156
188
|
</svg>
|
|
157
189
|
</div>`;
|
|
190
|
+
// Link props for anchor element
|
|
191
|
+
const target = this.external ? '_blank' : this.target;
|
|
192
|
+
const rel = this.external ? 'noopener noreferrer' : this.rel;
|
|
193
|
+
const isLink = this.href !== undefined;
|
|
194
|
+
const isDisabled = this.disabled || this.loading;
|
|
195
|
+
const finalStyles = { ...dynamicStyles, ...stylesMap[this.kind] };
|
|
196
|
+
const content = x `
|
|
197
|
+
<slot name="prefix"></slot>
|
|
198
|
+
<slot></slot>
|
|
199
|
+
<slot name="suffix"></slot>
|
|
200
|
+
${this.loading ? LoadingTemplate : ''}
|
|
201
|
+
`;
|
|
202
|
+
if (isLink) {
|
|
203
|
+
return x `
|
|
204
|
+
<a
|
|
205
|
+
class=${base()}
|
|
206
|
+
part="button"
|
|
207
|
+
href=${this.href}
|
|
208
|
+
target=${target || E}
|
|
209
|
+
rel=${rel || E}
|
|
210
|
+
download=${this.download || E}
|
|
211
|
+
aria-disabled=${isDisabled ? 'true' : E}
|
|
212
|
+
tabindex=${isDisabled ? '-1' : E}
|
|
213
|
+
style=${o(finalStyles)}
|
|
214
|
+
@click=${this.handleClick}
|
|
215
|
+
@focus=${this.handleFocus}
|
|
216
|
+
@blur=${this.handleBlur}
|
|
217
|
+
>
|
|
218
|
+
${content}
|
|
219
|
+
</a>
|
|
220
|
+
`;
|
|
221
|
+
}
|
|
158
222
|
return x `
|
|
159
223
|
<button
|
|
160
224
|
class=${base()}
|
|
161
225
|
part="button"
|
|
162
|
-
|
|
163
|
-
|
|
226
|
+
type=${this.type}
|
|
227
|
+
?disabled=${isDisabled}
|
|
228
|
+
style=${o(finalStyles)}
|
|
164
229
|
@click=${this.handleClick}
|
|
165
230
|
@focus=${this.handleFocus}
|
|
166
231
|
@blur=${this.handleBlur}
|
|
167
|
-
aria-label="Button"
|
|
168
|
-
role="button"
|
|
169
|
-
tabindex="0"
|
|
170
232
|
@keydown=${(e) => {
|
|
171
233
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
172
|
-
|
|
234
|
+
if (!isDisabled) {
|
|
235
|
+
this.handleClick(e);
|
|
236
|
+
}
|
|
173
237
|
e.preventDefault();
|
|
174
238
|
}
|
|
175
239
|
}}
|
|
176
240
|
>
|
|
177
|
-
|
|
178
|
-
<slot></slot>
|
|
179
|
-
<slot name="suffix"></slot>
|
|
180
|
-
${this.loading ? LoadingTemplate : ''}
|
|
241
|
+
${content}
|
|
181
242
|
</button>
|
|
182
243
|
`;
|
|
183
244
|
}
|
|
@@ -232,5 +293,23 @@ __decorate([
|
|
|
232
293
|
attribute: 'full-width',
|
|
233
294
|
})
|
|
234
295
|
], PlusButton.prototype, "fullWidth", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
n({ type: String })
|
|
298
|
+
], PlusButton.prototype, "href", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
n({ type: String })
|
|
301
|
+
], PlusButton.prototype, "target", void 0);
|
|
302
|
+
__decorate([
|
|
303
|
+
n({ type: String })
|
|
304
|
+
], PlusButton.prototype, "rel", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
n({ type: String })
|
|
307
|
+
], PlusButton.prototype, "download", void 0);
|
|
308
|
+
__decorate([
|
|
309
|
+
n({ type: Boolean, converter: booleanConverter, reflect: true })
|
|
310
|
+
], PlusButton.prototype, "external", void 0);
|
|
311
|
+
__decorate([
|
|
312
|
+
n({ type: String })
|
|
313
|
+
], PlusButton.prototype, "type", void 0);
|
|
235
314
|
|
|
236
315
|
export { PlusButton, PlusButton as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,SAAS;I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;AAQhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACd;AAQb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACT;AAQlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CACvD;AAQjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACoB;AAoJjD,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import PlusButton from './button.js';
|
|
2
|
-
import '../../property-
|
|
3
|
-
import '../../lit-element-
|
|
2
|
+
import '../../property-Dz31PgR6.js';
|
|
3
|
+
import '../../lit-element-BNK__jO-.js';
|
|
4
4
|
import '../../utils/boolean-converter.js';
|
|
5
5
|
import '../base/tailwind-base.js';
|
|
6
6
|
import '../../styles/global.js';
|
|
7
7
|
import '../../style-inject.es-tgCJW-Cu.js';
|
|
8
8
|
import './button.style.js';
|
|
9
9
|
import '../../index-B9iart53.js';
|
|
10
|
-
import '../../style-map-
|
|
10
|
+
import '../../style-map-Cgr6kXUm.js';
|
|
11
11
|
import '../../directive-DZCF8pFJ.js';
|
|
12
12
|
|
|
13
13
|
customElements.define('plus-button', PlusButton);
|
|
@@ -96,7 +96,7 @@ export default class PlusButtonGroup extends Tailwind {
|
|
|
96
96
|
private handleSlotChange;
|
|
97
97
|
updated(changedProperties: Map<string, unknown>): void;
|
|
98
98
|
connectedCallback(): void;
|
|
99
|
-
render(): import("lit
|
|
99
|
+
render(): import("lit").TemplateResult<1>;
|
|
100
100
|
}
|
|
101
101
|
export { PlusButtonGroup };
|
|
102
102
|
//# sourceMappingURL=button-group.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __decorate, n } from '../../property-
|
|
2
|
-
import { i, x } from '../../lit-element-
|
|
3
|
-
import { r } from '../../state-
|
|
1
|
+
import { _ as __decorate, n } from '../../property-Dz31PgR6.js';
|
|
2
|
+
import { a as i, x } from '../../lit-element-BNK__jO-.js';
|
|
3
|
+
import { r } from '../../state-BRspp5eU.js';
|
|
4
4
|
import { booleanConverter } from '../../utils/boolean-converter.js';
|
|
5
5
|
import { buttonGroupStyle } from './button-group.style.js';
|
|
6
6
|
import Tailwind from '../base/tailwind-base.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PlusButtonGroup from './button-group.js';
|
|
2
|
-
import '../../property-
|
|
3
|
-
import '../../lit-element-
|
|
4
|
-
import '../../state-
|
|
2
|
+
import '../../property-Dz31PgR6.js';
|
|
3
|
+
import '../../lit-element-BNK__jO-.js';
|
|
4
|
+
import '../../state-BRspp5eU.js';
|
|
5
5
|
import '../../utils/boolean-converter.js';
|
|
6
6
|
import './button-group.style.js';
|
|
7
7
|
import '../../index-B9iart53.js';
|
|
@@ -68,6 +68,6 @@ export declare class PlusCheckbox extends Tailwind {
|
|
|
68
68
|
focus(options?: FocusOptions): void;
|
|
69
69
|
/** Blurs the checkbox */
|
|
70
70
|
blur(): void;
|
|
71
|
-
render(): import("lit
|
|
71
|
+
render(): import("lit").TemplateResult<1>;
|
|
72
72
|
}
|
|
73
73
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __decorate, n } from '../../property-
|
|
2
|
-
import { r } from '../../state-
|
|
1
|
+
import { _ as __decorate, n } from '../../property-Dz31PgR6.js';
|
|
2
|
+
import { r } from '../../state-BRspp5eU.js';
|
|
3
3
|
import { e } from '../../query-CHb9Ft_d.js';
|
|
4
|
-
import { x } from '../../lit-element-
|
|
5
|
-
import { l } from '../../live-
|
|
4
|
+
import { x } from '../../lit-element-BNK__jO-.js';
|
|
5
|
+
import { l } from '../../live-C1eBrEBV.js';
|
|
6
6
|
import { booleanConverter } from '../../utils/boolean-converter.js';
|
|
7
7
|
import Tailwind from '../base/tailwind-base.js';
|
|
8
8
|
import { checkboxStyle } from './checkbox.style.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PlusCheckbox } from './checkbox.js';
|
|
2
|
-
import '../../property-
|
|
3
|
-
import '../../lit-element-
|
|
4
|
-
import '../../state-
|
|
2
|
+
import '../../property-Dz31PgR6.js';
|
|
3
|
+
import '../../lit-element-BNK__jO-.js';
|
|
4
|
+
import '../../state-BRspp5eU.js';
|
|
5
5
|
import '../../query-CHb9Ft_d.js';
|
|
6
6
|
import '../../base-Cl6v8-BZ.js';
|
|
7
|
-
import '../../live-
|
|
7
|
+
import '../../live-C1eBrEBV.js';
|
|
8
8
|
import '../../directive-DZCF8pFJ.js';
|
|
9
9
|
import '../../utils/boolean-converter.js';
|
|
10
10
|
import '../base/tailwind-base.js';
|
|
@@ -24,6 +24,6 @@ export declare class PlusCheckboxGroup extends Tailwind {
|
|
|
24
24
|
private handleSlotChange;
|
|
25
25
|
private updateCheckboxes;
|
|
26
26
|
private handleCheckboxChange;
|
|
27
|
-
render(): import("lit
|
|
27
|
+
render(): import("lit").TemplateResult<1>;
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=checkbox-group.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __decorate, n } from '../../property-
|
|
1
|
+
import { _ as __decorate, n } from '../../property-Dz31PgR6.js';
|
|
2
2
|
import { o } from '../../query-assigned-elements-B8Evmg7O.js';
|
|
3
|
-
import { x } from '../../lit-element-
|
|
3
|
+
import { x } from '../../lit-element-BNK__jO-.js';
|
|
4
4
|
import { booleanConverter } from '../../utils/boolean-converter.js';
|
|
5
5
|
import Tailwind from '../base/tailwind-base.js';
|
|
6
6
|
import { checkboxGroupStyle } from './checkbox-group.style.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PlusCheckboxGroup } from './checkbox-group.js';
|
|
2
|
-
import '../../property-
|
|
3
|
-
import '../../lit-element-
|
|
2
|
+
import '../../property-Dz31PgR6.js';
|
|
3
|
+
import '../../lit-element-BNK__jO-.js';
|
|
4
4
|
import '../../query-assigned-elements-B8Evmg7O.js';
|
|
5
5
|
import '../../base-Cl6v8-BZ.js';
|
|
6
6
|
import '../../utils/boolean-converter.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __decorate, n } from '../../property-
|
|
2
|
-
import { E, x } from '../../lit-element-
|
|
1
|
+
import { _ as __decorate, n } from '../../property-Dz31PgR6.js';
|
|
2
|
+
import { E, x } from '../../lit-element-BNK__jO-.js';
|
|
3
3
|
import Tailwind from '../base/tailwind-base.js';
|
|
4
4
|
import { booleanConverter } from '../../utils/boolean-converter.js';
|
|
5
5
|
import { chipStyle } from './chip.style.js';
|
|
6
|
-
import { o } from '../../style-map-
|
|
6
|
+
import { o } from '../../style-map-Cgr6kXUm.js';
|
|
7
7
|
import '../../styles/global.js';
|
|
8
8
|
import '../../style-inject.es-tgCJW-Cu.js';
|
|
9
9
|
import '../../index-B9iart53.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import PlusChip from './chip.js';
|
|
2
|
-
import '../../property-
|
|
3
|
-
import '../../lit-element-
|
|
2
|
+
import '../../property-Dz31PgR6.js';
|
|
3
|
+
import '../../lit-element-BNK__jO-.js';
|
|
4
4
|
import '../base/tailwind-base.js';
|
|
5
5
|
import '../../styles/global.js';
|
|
6
6
|
import '../../style-inject.es-tgCJW-Cu.js';
|
|
7
7
|
import '../../utils/boolean-converter.js';
|
|
8
8
|
import './chip.style.js';
|
|
9
9
|
import '../../index-B9iart53.js';
|
|
10
|
-
import '../../style-map-
|
|
10
|
+
import '../../style-map-Cgr6kXUm.js';
|
|
11
11
|
import '../../directive-DZCF8pFJ.js';
|
|
12
12
|
|
|
13
13
|
customElements.define('plus-chip', PlusChip);
|
|
@@ -43,7 +43,7 @@ export default class PlusDivider extends Tailwind {
|
|
|
43
43
|
hasContent: boolean;
|
|
44
44
|
static styles: import("lit").CSSResult[];
|
|
45
45
|
handleSlotChange(event: Event): void;
|
|
46
|
-
render(): import("lit
|
|
46
|
+
render(): import("lit").TemplateResult<1>;
|
|
47
47
|
}
|
|
48
48
|
export { PlusDivider };
|
|
49
49
|
//# sourceMappingURL=divider.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __decorate, n } from '../../property-
|
|
2
|
-
import { x } from '../../lit-element-
|
|
3
|
-
import { r } from '../../state-
|
|
1
|
+
import { _ as __decorate, n } from '../../property-Dz31PgR6.js';
|
|
2
|
+
import { x } from '../../lit-element-BNK__jO-.js';
|
|
3
|
+
import { r } from '../../state-BRspp5eU.js';
|
|
4
4
|
import { dividerStyle, baseDividerStyle } from './divider.style.js';
|
|
5
5
|
import Tailwind from '../base/tailwind-base.js';
|
|
6
6
|
import '../../index-B9iart53.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PlusDivider from './divider.js';
|
|
2
|
-
import '../../property-
|
|
3
|
-
import '../../lit-element-
|
|
4
|
-
import '../../state-
|
|
2
|
+
import '../../property-Dz31PgR6.js';
|
|
3
|
+
import '../../lit-element-BNK__jO-.js';
|
|
4
|
+
import '../../state-BRspp5eU.js';
|
|
5
5
|
import './divider.style.js';
|
|
6
6
|
import '../../index-B9iart53.js';
|
|
7
7
|
import '../base/tailwind-base.js';
|
|
@@ -73,7 +73,7 @@ export default class PlusDrawer extends Tailwind {
|
|
|
73
73
|
private handleBeforeShow;
|
|
74
74
|
disconnectedCallback(): void;
|
|
75
75
|
private handleKeydown;
|
|
76
|
-
render(): import("lit
|
|
76
|
+
render(): import("lit").TemplateResult<1>;
|
|
77
77
|
}
|
|
78
78
|
export { PlusDrawer };
|
|
79
79
|
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __decorate, n } from '../../property-
|
|
2
|
-
import { x } from '../../lit-element-
|
|
3
|
-
import { r } from '../../state-
|
|
1
|
+
import { _ as __decorate, n } from '../../property-Dz31PgR6.js';
|
|
2
|
+
import { x } from '../../lit-element-BNK__jO-.js';
|
|
3
|
+
import { r } from '../../state-BRspp5eU.js';
|
|
4
4
|
import { booleanConverter } from '../../utils/boolean-converter.js';
|
|
5
5
|
import { drawerStyle } from './drawer.style.js';
|
|
6
6
|
import Tailwind from '../base/tailwind-base.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PlusDrawer from './drawer.js';
|
|
2
|
-
import '../../property-
|
|
3
|
-
import '../../lit-element-
|
|
4
|
-
import '../../state-
|
|
2
|
+
import '../../property-Dz31PgR6.js';
|
|
3
|
+
import '../../lit-element-BNK__jO-.js';
|
|
4
|
+
import '../../state-BRspp5eU.js';
|
|
5
5
|
import '../../utils/boolean-converter.js';
|
|
6
6
|
import './drawer.style.js';
|
|
7
7
|
import '../../index-B9iart53.js';
|
|
@@ -141,7 +141,7 @@ export default class PlusDropdown extends Tailwind {
|
|
|
141
141
|
* Renders the dropdown component
|
|
142
142
|
* @returns The rendered template
|
|
143
143
|
*/
|
|
144
|
-
render(): import("lit
|
|
144
|
+
render(): import("lit").TemplateResult<1>;
|
|
145
145
|
}
|
|
146
146
|
export { PlusDropdown };
|
|
147
147
|
//# sourceMappingURL=dropdown.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as __decorate, n } from '../../property-
|
|
2
|
-
import { r } from '../../state-
|
|
1
|
+
import { _ as __decorate, n } from '../../property-Dz31PgR6.js';
|
|
2
|
+
import { r } from '../../state-BRspp5eU.js';
|
|
3
3
|
import { o } from '../../query-assigned-elements-B8Evmg7O.js';
|
|
4
4
|
import { booleanConverter } from '../../utils/boolean-converter.js';
|
|
5
5
|
import Tailwind from '../base/tailwind-base.js';
|
|
6
|
-
import { x } from '../../lit-element-
|
|
7
|
-
import { c as computePosition, o as offset, s as shift, f as flip, b as autoUpdate } from '../../floating-ui.dom-
|
|
6
|
+
import { x } from '../../lit-element-BNK__jO-.js';
|
|
7
|
+
import { c as computePosition, o as offset, s as shift, f as flip, b as autoUpdate } from '../../floating-ui.dom-BpzIshEG.js';
|
|
8
8
|
import { dropdownStyle } from './dropdown.style.js';
|
|
9
9
|
import '../../base-Cl6v8-BZ.js';
|
|
10
10
|
import '../../styles/global.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import PlusDropdown from './dropdown.js';
|
|
2
|
-
import '../../property-
|
|
3
|
-
import '../../lit-element-
|
|
4
|
-
import '../../state-
|
|
2
|
+
import '../../property-Dz31PgR6.js';
|
|
3
|
+
import '../../lit-element-BNK__jO-.js';
|
|
4
|
+
import '../../state-BRspp5eU.js';
|
|
5
5
|
import '../../query-assigned-elements-B8Evmg7O.js';
|
|
6
6
|
import '../../base-Cl6v8-BZ.js';
|
|
7
7
|
import '../../utils/boolean-converter.js';
|
|
8
8
|
import '../base/tailwind-base.js';
|
|
9
9
|
import '../../styles/global.js';
|
|
10
10
|
import '../../style-inject.es-tgCJW-Cu.js';
|
|
11
|
-
import '../../floating-ui.dom-
|
|
11
|
+
import '../../floating-ui.dom-BpzIshEG.js';
|
|
12
12
|
import './dropdown.style.js';
|
|
13
13
|
import '../../index-B9iart53.js';
|
|
14
14
|
|
|
@@ -57,7 +57,7 @@ export default class PlusDropDownItem extends Tailwind {
|
|
|
57
57
|
* with proper ARIA attributes for accessibility
|
|
58
58
|
* @returns The rendered template
|
|
59
59
|
*/
|
|
60
|
-
render(): import("lit
|
|
60
|
+
render(): import("lit").TemplateResult<1>;
|
|
61
61
|
}
|
|
62
62
|
export { PlusDropDownItem };
|
|
63
63
|
//# sourceMappingURL=dropdown-item.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __decorate, n } from '../../property-
|
|
1
|
+
import { _ as __decorate, n } from '../../property-Dz31PgR6.js';
|
|
2
2
|
import { booleanConverter } from '../../utils/boolean-converter.js';
|
|
3
3
|
import Tailwind from '../base/tailwind-base.js';
|
|
4
|
-
import { x } from '../../lit-element-
|
|
5
|
-
import { o } from '../../if-defined-
|
|
6
|
-
import { l } from '../../live-
|
|
4
|
+
import { x } from '../../lit-element-BNK__jO-.js';
|
|
5
|
+
import { o } from '../../if-defined-DpyZ37D-.js';
|
|
6
|
+
import { l } from '../../live-C1eBrEBV.js';
|
|
7
7
|
import '../../styles/global.js';
|
|
8
8
|
import '../../style-inject.es-tgCJW-Cu.js';
|
|
9
9
|
import '../../directive-DZCF8pFJ.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import PlusDropDownItem from './dropdown-item.js';
|
|
2
|
-
import '../../property-
|
|
3
|
-
import '../../lit-element-
|
|
2
|
+
import '../../property-Dz31PgR6.js';
|
|
3
|
+
import '../../lit-element-BNK__jO-.js';
|
|
4
4
|
import '../../utils/boolean-converter.js';
|
|
5
5
|
import '../base/tailwind-base.js';
|
|
6
6
|
import '../../styles/global.js';
|
|
7
7
|
import '../../style-inject.es-tgCJW-Cu.js';
|
|
8
|
-
import '../../if-defined-
|
|
9
|
-
import '../../live-
|
|
8
|
+
import '../../if-defined-DpyZ37D-.js';
|
|
9
|
+
import '../../live-C1eBrEBV.js';
|
|
10
10
|
import '../../directive-DZCF8pFJ.js';
|
|
11
11
|
|
|
12
12
|
customElements.define('plus-dropdown-item', PlusDropDownItem);
|
|
@@ -54,7 +54,7 @@ export default class PlusIcon extends LitElement {
|
|
|
54
54
|
private hasError;
|
|
55
55
|
protected updated(changedProperties: Map<string, unknown>): void;
|
|
56
56
|
private loadIcon;
|
|
57
|
-
render(): import("lit
|
|
57
|
+
render(): import("lit").TemplateResult<1> | typeof nothing;
|
|
58
58
|
}
|
|
59
59
|
export { PlusIcon };
|
|
60
60
|
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __decorate, n } from '../../property-
|
|
2
|
-
import { E, T,
|
|
3
|
-
import { r } from '../../state-
|
|
1
|
+
import { _ as __decorate, n } from '../../property-Dz31PgR6.js';
|
|
2
|
+
import { E, T, a as i$1, i as i$2, x } from '../../lit-element-BNK__jO-.js';
|
|
3
|
+
import { r } from '../../state-BRspp5eU.js';
|
|
4
4
|
import { i, t, e as e$1 } from '../../directive-DZCF8pFJ.js';
|
|
5
5
|
import { getIcon } from './icon-registry.js';
|
|
6
6
|
import './solid-icons.js';
|
|
@@ -42,7 +42,7 @@ import './light-icons.js';
|
|
|
42
42
|
* <plus-icon icon-name="home" style="--icon-size: 32px;"></plus-icon>
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
class PlusIcon extends
|
|
45
|
+
class PlusIcon extends i$2 {
|
|
46
46
|
constructor() {
|
|
47
47
|
super(...arguments);
|
|
48
48
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PlusIcon from './icon.js';
|
|
2
2
|
export { getAvailableIcons, getCachedIcon, getIcon, hasIcon, registerIcon } from './icon-registry.js';
|
|
3
|
-
import '../../property-
|
|
4
|
-
import '../../lit-element-
|
|
5
|
-
import '../../state-
|
|
3
|
+
import '../../property-Dz31PgR6.js';
|
|
4
|
+
import '../../lit-element-BNK__jO-.js';
|
|
5
|
+
import '../../state-BRspp5eU.js';
|
|
6
6
|
import '../../directive-DZCF8pFJ.js';
|
|
7
7
|
import './solid-icons.js';
|
|
8
8
|
import './regular-icons.js';
|
package/dist/components/index.js
CHANGED
|
@@ -75,17 +75,17 @@ export { PlusToggle } from './toggle/toggle.js';
|
|
|
75
75
|
export { default as PlusTab } from './tab/tab.js';
|
|
76
76
|
export { default as PlusTabPanel } from './tab-panel/tab-panel.js';
|
|
77
77
|
export { default as PlusTabGroup } from './tab-group/tab-group.js';
|
|
78
|
-
import '../lit-element-
|
|
78
|
+
import '../lit-element-BNK__jO-.js';
|
|
79
79
|
import '../styles/global.js';
|
|
80
80
|
import '../style-inject.es-tgCJW-Cu.js';
|
|
81
81
|
import './avatar/avatar.js';
|
|
82
|
-
import '../property-
|
|
83
|
-
import '../state-
|
|
82
|
+
import '../property-Dz31PgR6.js';
|
|
83
|
+
import '../state-BRspp5eU.js';
|
|
84
84
|
import '../utils/boolean-converter.js';
|
|
85
85
|
import '../model/plus.js';
|
|
86
86
|
import './avatar/avatar.style.js';
|
|
87
87
|
import '../index-B9iart53.js';
|
|
88
|
-
import '../style-map-
|
|
88
|
+
import '../style-map-Cgr6kXUm.js';
|
|
89
89
|
import '../directive-DZCF8pFJ.js';
|
|
90
90
|
import './chip/chip.js';
|
|
91
91
|
import './chip/chip.style.js';
|
|
@@ -114,12 +114,12 @@ import './modal/modal.style.js';
|
|
|
114
114
|
import './drawer/drawer.style.js';
|
|
115
115
|
import './accordion/accordion.style.js';
|
|
116
116
|
import './divider/divider.style.js';
|
|
117
|
-
import '../floating-ui.dom-
|
|
117
|
+
import '../floating-ui.dom-BpzIshEG.js';
|
|
118
118
|
import './popover/popover.style.js';
|
|
119
119
|
import './list-box-item/list-box-item.style.js';
|
|
120
120
|
import './dropdown/dropdown.style.js';
|
|
121
|
-
import '../if-defined-
|
|
122
|
-
import '../live-
|
|
121
|
+
import '../if-defined-DpyZ37D-.js';
|
|
122
|
+
import '../live-C1eBrEBV.js';
|
|
123
123
|
import './tooltip/tooltip.style.js';
|
|
124
124
|
import './input/input.style.js';
|
|
125
125
|
import './label/label.style.js';
|