@trendyol/baklava 3.0.0-beta.7 → 3.0.0-beta.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/dist/baklava-react.d.ts +13 -0
- package/dist/baklava-react.d.ts.map +1 -1
- package/dist/baklava-react.js +1 -1
- package/dist/baklava-react.js.map +3 -3
- package/dist/baklava-vue.d.ts +1 -0
- package/dist/baklava.d.ts +1 -0
- package/dist/baklava.d.ts.map +1 -1
- package/dist/baklava.js +1 -1
- package/dist/chunk-BHKJL7XR.js +63 -0
- package/dist/chunk-BHKJL7XR.js.map +7 -0
- package/dist/{chunk-WWA7KITU.js → chunk-VZDVVGEO.js} +3 -3
- package/dist/{chunk-WWA7KITU.js.map → chunk-VZDVVGEO.js.map} +2 -2
- package/dist/components/dropdown/bl-dropdown.js +1 -1
- package/dist/components/dropdown/item/bl-dropdown-item.d.ts +1 -0
- package/dist/components/dropdown/item/bl-dropdown-item.d.ts.map +1 -1
- package/dist/components/dropdown/item/bl-dropdown-item.js +1 -1
- package/dist/components/pagination/bl-pagination.js +1 -1
- package/dist/components/select/bl-select.d.ts.map +1 -1
- package/dist/components/select/bl-select.js +1 -1
- package/dist/components/split-button/bl-split-button.d.ts +103 -0
- package/dist/components/split-button/bl-split-button.d.ts.map +1 -0
- package/dist/components/split-button/bl-split-button.js +2 -0
- package/dist/components/split-button/bl-split-button.js.map +7 -0
- package/dist/components/split-button/bl-split-button.test.d.ts +2 -0
- package/dist/components/split-button/bl-split-button.test.d.ts.map +1 -0
- package/dist/components/tab-group/bl-tab-group.js +1 -1
- package/dist/custom-elements.json +208 -0
- package/package.json +1 -1
- package/dist/chunk-A4RJP5R7.js +0 -23
- package/dist/chunk-A4RJP5R7.js.map +0 -7
|
@@ -2155,6 +2155,214 @@
|
|
|
2155
2155
|
}
|
|
2156
2156
|
]
|
|
2157
2157
|
},
|
|
2158
|
+
{
|
|
2159
|
+
"kind": "javascript-module",
|
|
2160
|
+
"path": "src/components/split-button/bl-split-button.ts",
|
|
2161
|
+
"declarations": [
|
|
2162
|
+
{
|
|
2163
|
+
"kind": "variable",
|
|
2164
|
+
"name": "blSplitButtonTag",
|
|
2165
|
+
"type": {
|
|
2166
|
+
"text": "string"
|
|
2167
|
+
},
|
|
2168
|
+
"default": "\"bl-split-button\""
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
"kind": "class",
|
|
2172
|
+
"description": "",
|
|
2173
|
+
"name": "BlSplitButton",
|
|
2174
|
+
"events": [
|
|
2175
|
+
{
|
|
2176
|
+
"type": {
|
|
2177
|
+
"text": "CustomEvent<string>"
|
|
2178
|
+
},
|
|
2179
|
+
"description": "Fires when dropdown opened",
|
|
2180
|
+
"name": "bl-dropdown-open"
|
|
2181
|
+
},
|
|
2182
|
+
{
|
|
2183
|
+
"type": {
|
|
2184
|
+
"text": "CustomEvent<string>"
|
|
2185
|
+
},
|
|
2186
|
+
"description": "Fires when dropdown closed",
|
|
2187
|
+
"name": "bl-dropdown-close"
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
"type": {
|
|
2191
|
+
"text": "CustomEvent<string>"
|
|
2192
|
+
},
|
|
2193
|
+
"description": "Fires when main button click",
|
|
2194
|
+
"name": "bl-click"
|
|
2195
|
+
}
|
|
2196
|
+
],
|
|
2197
|
+
"attributes": [
|
|
2198
|
+
{
|
|
2199
|
+
"name": "label",
|
|
2200
|
+
"type": {
|
|
2201
|
+
"text": "string"
|
|
2202
|
+
},
|
|
2203
|
+
"description": "Sets the split button label",
|
|
2204
|
+
"fieldName": "label"
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
"name": "variant",
|
|
2208
|
+
"type": {
|
|
2209
|
+
"text": "Exclude<ButtonVariant, \"tertiary\">"
|
|
2210
|
+
},
|
|
2211
|
+
"default": "\"primary\"",
|
|
2212
|
+
"description": "Sets the split button variant",
|
|
2213
|
+
"fieldName": "variant"
|
|
2214
|
+
},
|
|
2215
|
+
{
|
|
2216
|
+
"name": "kind",
|
|
2217
|
+
"type": {
|
|
2218
|
+
"text": "ButtonKind"
|
|
2219
|
+
},
|
|
2220
|
+
"default": "\"default\"",
|
|
2221
|
+
"description": "Sets the split button kind",
|
|
2222
|
+
"fieldName": "kind"
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
"name": "size",
|
|
2226
|
+
"type": {
|
|
2227
|
+
"text": "ButtonSize"
|
|
2228
|
+
},
|
|
2229
|
+
"default": "\"medium\"",
|
|
2230
|
+
"description": "Sets the split button size",
|
|
2231
|
+
"fieldName": "size"
|
|
2232
|
+
},
|
|
2233
|
+
{
|
|
2234
|
+
"name": "href",
|
|
2235
|
+
"type": {
|
|
2236
|
+
"text": "string"
|
|
2237
|
+
},
|
|
2238
|
+
"description": "Set link url. If set, split main button will be rendered as anchor tag.",
|
|
2239
|
+
"fieldName": "href"
|
|
2240
|
+
},
|
|
2241
|
+
{
|
|
2242
|
+
"name": "disabled",
|
|
2243
|
+
"type": {
|
|
2244
|
+
"text": "boolean"
|
|
2245
|
+
},
|
|
2246
|
+
"default": "false",
|
|
2247
|
+
"description": "Sets main button as disabled",
|
|
2248
|
+
"fieldName": "disabled"
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
"name": "loading",
|
|
2252
|
+
"type": {
|
|
2253
|
+
"text": "boolean"
|
|
2254
|
+
},
|
|
2255
|
+
"default": "false",
|
|
2256
|
+
"description": "Sets loading state of button",
|
|
2257
|
+
"fieldName": "loading"
|
|
2258
|
+
},
|
|
2259
|
+
{
|
|
2260
|
+
"name": "loading-label",
|
|
2261
|
+
"type": {
|
|
2262
|
+
"text": "string"
|
|
2263
|
+
},
|
|
2264
|
+
"description": "Sets the button label for loading status.",
|
|
2265
|
+
"fieldName": "loadingLabel"
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
"name": "dropdown-disabled",
|
|
2269
|
+
"type": {
|
|
2270
|
+
"text": "boolean"
|
|
2271
|
+
},
|
|
2272
|
+
"default": "false",
|
|
2273
|
+
"description": "Sets dropdown button as disabled",
|
|
2274
|
+
"fieldName": "dropdownDisabled"
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
"name": "icon",
|
|
2278
|
+
"type": {
|
|
2279
|
+
"text": "BaklavaIcon | undefined"
|
|
2280
|
+
},
|
|
2281
|
+
"description": "Sets the icon name. Shows icon with bl-icon component",
|
|
2282
|
+
"fieldName": "icon"
|
|
2283
|
+
},
|
|
2284
|
+
{
|
|
2285
|
+
"name": "target",
|
|
2286
|
+
"type": {
|
|
2287
|
+
"text": "TargetType | undefined"
|
|
2288
|
+
},
|
|
2289
|
+
"default": "\"_self\"",
|
|
2290
|
+
"description": "Sets the anchor target. Used when `href` is set.",
|
|
2291
|
+
"fieldName": "target"
|
|
2292
|
+
},
|
|
2293
|
+
{
|
|
2294
|
+
"name": "type",
|
|
2295
|
+
"type": {
|
|
2296
|
+
"text": "\"submit\""
|
|
2297
|
+
},
|
|
2298
|
+
"description": "Sets the type of the button. Set `submit` to use button as the submitter of parent form.",
|
|
2299
|
+
"fieldName": "type"
|
|
2300
|
+
},
|
|
2301
|
+
{
|
|
2302
|
+
"name": "autofocus",
|
|
2303
|
+
"type": {
|
|
2304
|
+
"text": "boolean"
|
|
2305
|
+
},
|
|
2306
|
+
"default": "false",
|
|
2307
|
+
"description": "Sets button to get keyboard focus automatically",
|
|
2308
|
+
"fieldName": "autofocus"
|
|
2309
|
+
},
|
|
2310
|
+
{
|
|
2311
|
+
"name": "form",
|
|
2312
|
+
"type": {
|
|
2313
|
+
"text": "HTMLFormElement | string"
|
|
2314
|
+
},
|
|
2315
|
+
"description": "Sets the associated form of the button. Use when `type` is set to `submit` and button is not inside the target form.",
|
|
2316
|
+
"fieldName": "form"
|
|
2317
|
+
}
|
|
2318
|
+
],
|
|
2319
|
+
"superclass": {
|
|
2320
|
+
"name": "LitElement",
|
|
2321
|
+
"package": "lit"
|
|
2322
|
+
},
|
|
2323
|
+
"tagName": "bl-split-button",
|
|
2324
|
+
"summary": [
|
|
2325
|
+
{
|
|
2326
|
+
"name": "Baklava",
|
|
2327
|
+
"description": "Split Button component"
|
|
2328
|
+
}
|
|
2329
|
+
],
|
|
2330
|
+
"jsDoc": "/**\n * @tag bl-split-button\n * @summary Baklava Split Button component\n */",
|
|
2331
|
+
"tag": [
|
|
2332
|
+
{
|
|
2333
|
+
"name": "bl-split-button",
|
|
2334
|
+
"description": ""
|
|
2335
|
+
}
|
|
2336
|
+
],
|
|
2337
|
+
"customElement": true
|
|
2338
|
+
}
|
|
2339
|
+
],
|
|
2340
|
+
"exports": [
|
|
2341
|
+
{
|
|
2342
|
+
"kind": "js",
|
|
2343
|
+
"name": "blSplitButtonTag",
|
|
2344
|
+
"declaration": {
|
|
2345
|
+
"name": "blSplitButtonTag",
|
|
2346
|
+
"module": "src/components/split-button/bl-split-button.ts"
|
|
2347
|
+
}
|
|
2348
|
+
},
|
|
2349
|
+
{
|
|
2350
|
+
"kind": "js",
|
|
2351
|
+
"name": "default",
|
|
2352
|
+
"declaration": {
|
|
2353
|
+
"name": "BlSplitButton",
|
|
2354
|
+
"module": "src/components/split-button/bl-split-button.ts"
|
|
2355
|
+
}
|
|
2356
|
+
},
|
|
2357
|
+
{
|
|
2358
|
+
"kind": "custom-element-definition",
|
|
2359
|
+
"declaration": {
|
|
2360
|
+
"name": "BlSplitButton",
|
|
2361
|
+
"module": "src/components/split-button/bl-split-button.ts"
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
]
|
|
2365
|
+
},
|
|
2158
2366
|
{
|
|
2159
2367
|
"kind": "javascript-module",
|
|
2160
2368
|
"path": "src/components/switch/bl-switch.ts",
|
package/package.json
CHANGED
package/dist/chunk-A4RJP5R7.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./chunk-QXFCLEZB.js";import{a as b}from"./chunk-DINNT5P2.js";import{a as l}from"./chunk-GRL4DWKG.js";import{a as d,b as o,c as h,e as n}from"./chunk-X2KXJYXQ.js";import{a as s,b as p,f as a}from"./chunk-4OT5AMS5.js";import{d as e}from"./chunk-IZ2LK5GK.js";var g=s`:host{position:relative;display:inline-block}:host([kind="neutral"]) bl-popover{--bl-popover-border-color:var(--bl-color-neutral-darker)}:host([kind="success"]) bl-popover{--bl-popover-border-color:var(--bl-color-success)}:host([kind="danger"]) bl-popover{--bl-popover-border-color:var(--bl-color-danger)}.popover-content{display:flex;flex-direction:column;gap:var(--bl-size-xs)}`,v=g;var c="bl-dropdown",t=class extends a{constructor(){super(...arguments);this._isPopoverOpen=!1;this.variant="primary";this.kind="default";this.size="medium";this.disabled=!1;this.focusedOptionIndex=-1}static get styles(){return[v]}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown)}firstUpdated(){this._popover.target=this._button}get opened(){return this._isPopoverOpen}_handleClick(){!this._isPopoverOpen&&!this.disabled?this.open():this.close()}handleKeyDown(i){if(["ArrowDown","ArrowRight"].includes(i.key))this.focusedOptionIndex++;else if(["ArrowUp","ArrowLeft"].includes(i.key))this.focusedOptionIndex--;else if(i.key==="Escape"){this.focusedOptionIndex=-1,this.close();return}else return;this.focusedOptionIndex=Math.max(0,Math.min(this.focusedOptionIndex,this.options.length-1)),this.options[this.focusedOptionIndex].focus(),i.preventDefault()}get options(){return[...this.querySelectorAll(m)]}open(){this._isPopoverOpen=!0,this._popover.show(),this.onOpen("Dropdown opened!")}close(){this._isPopoverOpen=!1,this._popover.visible&&this._popover.hide(),this.onClose("Dropdown closed!")}render(){return p`<bl-button
|
|
2
|
-
dropdown
|
|
3
|
-
.active=${this.opened}
|
|
4
|
-
?disabled=${this.disabled}
|
|
5
|
-
variant="${this.variant}"
|
|
6
|
-
kind="${this.kind}"
|
|
7
|
-
size="${this.size}"
|
|
8
|
-
@bl-click="${this._handleClick}"
|
|
9
|
-
>
|
|
10
|
-
${this.label}
|
|
11
|
-
</bl-button>
|
|
12
|
-
<bl-popover fit-size placement="bottom-start" @bl-popover-hide="${this.close}"
|
|
13
|
-
><div class="popover-content">
|
|
14
|
-
<slot></slot></div
|
|
15
|
-
></bl-popover> `}};e([n("bl-popover")],t.prototype,"_popover",2),e([n("bl-button")],t.prototype,"_button",2),e([h()],t.prototype,"_isPopoverOpen",2),e([o({type:String,reflect:!0})],t.prototype,"label",2),e([o({type:String,reflect:!0})],t.prototype,"variant",2),e([o({type:String,reflect:!0})],t.prototype,"kind",2),e([o({type:String,reflect:!0})],t.prototype,"size",2),e([o({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([l("bl-dropdown-open")],t.prototype,"onOpen",2),e([l("bl-dropdown-close")],t.prototype,"onClose",2),t=e([d(c)],t);var w=s`:host{width:100%;--bl-button-display:block;--bl-button-justify:start}`,f=w;var m="bl-dropdown-item",r=class extends a{static get styles(){return[f]}_handleClick(){var i;(i=this.BlDropdownField)==null||i.close(),this.onClick("Action clicked!")}focus(){this.menuElement.focus()}connectedCallback(){super.connectedCallback(),this.BlDropdownGroupField=this.closest(u),this.BlDropdownField=this.closest(c),!this.BlDropdownField&&!this.BlDropdownGroupField&&console.warn(`bl-dropdown-item is designed to be used inside a ${u} or ${c}`,this)}disconnectedCallback(){super.disconnectedCallback()}render(){return p`<bl-button
|
|
16
|
-
variant="tertiary"
|
|
17
|
-
kind="neutral"
|
|
18
|
-
icon="${b(this.icon)}"
|
|
19
|
-
role="menuitem"
|
|
20
|
-
@click="${this._handleClick}"
|
|
21
|
-
><slot></slot>
|
|
22
|
-
</bl-button>`}};e([o({type:String})],r.prototype,"icon",2),e([l("bl-dropdown-item-click")],r.prototype,"onClick",2),e([n("[role=menuitem]")],r.prototype,"menuElement",2),r=e([d(m)],r);export{m as a,r as b,c,t as d};
|
|
23
|
-
//# sourceMappingURL=chunk-A4RJP5R7.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/components/dropdown/bl-dropdown.css", "../src/components/dropdown/bl-dropdown.ts", "../src/components/dropdown/item/bl-dropdown-item.css", "../src/components/dropdown/item/bl-dropdown-item.ts"],
|
|
4
|
-
"sourcesContent": ["import {css} from 'lit';\nexport const styles = css`:host{position:relative;display:inline-block}:host([kind=\"neutral\"]) bl-popover{--bl-popover-border-color:var(--bl-color-neutral-darker)}:host([kind=\"success\"]) bl-popover{--bl-popover-border-color:var(--bl-color-success)}:host([kind=\"danger\"]) bl-popover{--bl-popover-border-color:var(--bl-color-danger)}.popover-content{display:flex;flex-direction:column;gap:var(--bl-size-xs)}`;\nexport default styles;\n", "import { LitElement, html, CSSResultGroup, TemplateResult } from \"lit\";\nimport { customElement, property, state, query } from \"lit/decorators.js\";\nimport { event, EventDispatcher } from \"../../utilities/event\";\nimport \"../button/bl-button\";\nimport BlButton, { ButtonSize, ButtonVariant, ButtonKind } from \"../button/bl-button\";\nimport BlPopover from \"../popover/bl-popover\";\nimport style from \"./bl-dropdown.css\";\nimport BlDropdownItem, { blDropdownItemTag } from \"./item/bl-dropdown-item\";\n\nexport const blDropdownTag = \"bl-dropdown\";\n\n/**\n * @tag bl-dropdown\n * @summary Baklava Dropdown component\n */\n@customElement(blDropdownTag)\nexport default class BlDropdown extends LitElement {\n static get styles(): CSSResultGroup {\n return [style];\n }\n\n @query(\"bl-popover\")\n private _popover: BlPopover;\n\n @query(\"bl-button\")\n private _button: BlButton;\n\n @state() private _isPopoverOpen = false;\n\n /**\n * Sets the dropdown button label\n */\n @property({ type: String, reflect: true })\n label: string;\n\n /**\n * Sets the dropdown button variant\n */\n @property({ type: String, reflect: true })\n variant: ButtonVariant = \"primary\";\n\n /**\n * Sets the dropdown button kind\n */\n @property({ type: String, reflect: true })\n kind: ButtonKind = \"default\";\n\n /**\n * Sets the dropdown button size\n */\n @property({ type: String, reflect: true })\n size: ButtonSize = \"medium\";\n\n /**\n * Sets button as disabled\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * Fires when dropdown opened\n */\n @event(\"bl-dropdown-open\") private onOpen: EventDispatcher<string>;\n\n /**\n * Fires when dropdown closed\n */\n @event(\"bl-dropdown-close\") private onClose: EventDispatcher<string>;\n\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener(\"keydown\", this.handleKeyDown);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener(\"keydown\", this.handleKeyDown);\n }\n\n firstUpdated() {\n // `_button` will be undefined during the initial render.\n // To ensure proper rendering, we set `_popover.target` after the template has been created.\n this._popover.target = this._button;\n }\n\n get opened() {\n return this._isPopoverOpen;\n }\n\n private _handleClick() {\n !this._isPopoverOpen && !this.disabled ? this.open() : this.close();\n }\n\n private focusedOptionIndex = -1;\n\n private handleKeyDown(event: KeyboardEvent) {\n // Next action\n if ([\"ArrowDown\", \"ArrowRight\"].includes(event.key)) {\n this.focusedOptionIndex++;\n\n // Previous action\n } else if ([\"ArrowUp\", \"ArrowLeft\"].includes(event.key)) {\n this.focusedOptionIndex--;\n // Select action\n } else if (event.key === \"Escape\") {\n this.focusedOptionIndex = -1;\n this.close();\n return;\n } else {\n // Other keys are not our interest here\n return;\n }\n\n // Don't exceed array indexes\n this.focusedOptionIndex = Math.max(\n 0,\n Math.min(this.focusedOptionIndex, this.options.length - 1)\n );\n\n this.options[this.focusedOptionIndex].focus();\n\n event.preventDefault();\n }\n\n get options(): BlDropdownItem[] {\n return [...this.querySelectorAll(blDropdownItemTag)];\n }\n\n open() {\n this._isPopoverOpen = true;\n this._popover.show();\n this.onOpen(\"Dropdown opened!\");\n }\n\n close() {\n this._isPopoverOpen = false;\n this._popover.visible && this._popover.hide();\n this.onClose(\"Dropdown closed!\");\n }\n\n render(): TemplateResult {\n return html`<bl-button\n dropdown\n .active=${this.opened}\n ?disabled=${this.disabled}\n variant=\"${this.variant}\"\n kind=\"${this.kind}\"\n size=\"${this.size}\"\n @bl-click=\"${this._handleClick}\"\n >\n ${this.label}\n </bl-button>\n <bl-popover fit-size placement=\"bottom-start\" @bl-popover-hide=\"${this.close}\"\n ><div class=\"popover-content\">\n <slot></slot></div\n ></bl-popover> `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n [blDropdownTag]: BlDropdown;\n }\n}\n", "import {css} from 'lit';\nexport const styles = css`:host{width:100%;--bl-button-display:block;--bl-button-justify:start}`;\nexport default styles;\n", "import { LitElement, html, CSSResultGroup, TemplateResult } from \"lit\";\nimport { customElement, property, query } from \"lit/decorators.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { event, EventDispatcher } from \"../../../utilities/event\";\nimport \"../../button/bl-button\";\nimport BlButton from \"../../button/bl-button\";\nimport { BaklavaIcon } from \"../../icon/icon-list\";\nimport type BlDropdown from \"../bl-dropdown\";\nimport { blDropdownTag } from \"../bl-dropdown\";\nimport type BlDropdownGroup from \"../group/bl-dropdown-group\";\nimport { blDropdownGroupTag } from \"../group/bl-dropdown-group\";\nimport style from \"./bl-dropdown-item.css\";\n\nexport const blDropdownItemTag = \"bl-dropdown-item\";\n\n/**\n * @tag bl-dropdown-item\n * @summary Baklava Dropdown Item component\n */\n@customElement(blDropdownItemTag)\nexport default class BlDropdownItem extends LitElement {\n static get styles(): CSSResultGroup {\n return [style];\n }\n\n /**\n * Sets the icon name. Shows icon with bl-icon component\n */\n\n @property({ type: String })\n icon?: BaklavaIcon;\n\n @event(\"bl-dropdown-item-click\") private onClick: EventDispatcher<string>;\n\n private _handleClick() {\n this.BlDropdownField?.close();\n this.onClick(\"Action clicked!\");\n }\n\n @query(\"[role=menuitem]\") private menuElement: BlButton;\n\n /**\n * Focuses this action\n */\n focus() {\n this.menuElement.focus();\n }\n\n private BlDropdownGroupField: BlDropdownGroup | null;\n private BlDropdownField: BlDropdown | null;\n\n connectedCallback(): void {\n super.connectedCallback();\n\n this.BlDropdownGroupField = this.closest<BlDropdownGroup>(blDropdownGroupTag);\n this.BlDropdownField = this.closest<BlDropdown>(blDropdownTag);\n\n if (!this.BlDropdownField && !this.BlDropdownGroupField) {\n console.warn(\n `bl-dropdown-item is designed to be used inside a ${blDropdownGroupTag} or ${blDropdownTag}`,\n this\n );\n }\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n }\n\n render(): TemplateResult {\n return html`<bl-button\n variant=\"tertiary\"\n kind=\"neutral\"\n icon=\"${ifDefined(this.icon)}\"\n role=\"menuitem\"\n @click=\"${this._handleClick}\"\n ><slot></slot>\n </bl-button>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n [blDropdownItemTag]: BlDropdownItem;\n }\n}\n"],
|
|
5
|
-
"mappings": "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",
|
|
6
|
-
"names": ["styles", "i", "bl_dropdown_default", "blDropdownTag", "BlDropdown", "s", "bl_dropdown_default", "event", "blDropdownItemTag", "x", "__decorateClass", "i", "t", "e", "styles", "i", "bl_dropdown_item_default", "blDropdownItemTag", "BlDropdownItem", "s", "bl_dropdown_item_default", "_a", "blDropdownGroupTag", "blDropdownTag", "x", "l", "__decorateClass", "e", "event", "i"]
|
|
7
|
-
}
|