@htmlbricks/hb-searchbar 0.71.37 → 0.72.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +1 -1
- package/manifest.json +2 -2
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
* Single suggestion row (\`hb-searchbar-row\`). Loaded from parent + \`Item\` (Svelte scope).
|
|
362
362
|
*/.hb-searchbar-row.svelte-wocw98 {appearance:none;box-sizing:border-box;display:flex;align-items:flex-start;justify-content:flex-start;gap:0.5rem;width:100%;margin:0;padding-block:0.5625rem;padding-inline:0.625rem 0.75rem;border:none;border-radius:var(--bulma-radius-small);box-shadow:none;background:transparent;font:inherit;font-size:0.875rem;line-height:1.4;text-align:start;color:var(--bulma-text);cursor:pointer;text-decoration:none;transition:background-color 0.12s ease, color 0.12s ease;}a.hb-searchbar-row.svelte-wocw98 {color:var(--bulma-text);}.hb-searchbar-row.svelte-wocw98:hover {background-color:color-mix(in srgb, var(--bulma-primary, #00d1b2) 9%, var(--bulma-scheme-main) 91%);}.hb-searchbar-row.svelte-wocw98:focus {outline:none;}.hb-searchbar-row.svelte-wocw98:focus-visible {outline:2px solid var(--bulma-primary, #00d1b2);outline-offset:2px;}.hb-searchbar-row.svelte-wocw98:active {background-color:color-mix(in srgb, var(--bulma-primary, #00d1b2) 14%, var(--bulma-scheme-main) 86%);}.hb-searchbar-row.svelte-wocw98 .bi:where(.svelte-wocw98) {flex-shrink:0;margin-block-start:0.15em;font-size:1rem;line-height:1;opacity:0.55;color:var(--bulma-text-weak);}.hb-searchbar-row.svelte-wocw98:hover .bi:where(.svelte-wocw98) {opacity:0.85;color:var(--bulma-primary, #00d1b2);}.hb-searchbar-row.svelte-wocw98 .is-flex-grow-1:where(.svelte-wocw98) {min-width:0;word-break:break-word;}.hb-searchbar-row.svelte-wocw98 .tag:where(.svelte-wocw98) {flex-shrink:0;font-size:0.7rem;height:auto;min-height:1.75em;padding-block:0.15em;font-weight:500;}.hb-searchbar-row.svelte-wocw98 .results_number:where(.svelte-wocw98) {flex-shrink:0;margin-block-start:0.1em;font-size:0.75rem;font-style:normal;font-weight:500;opacity:0.65;white-space:nowrap;}`};function yi(e,t){Ve(t,!0),Vr(e,vi);function n(e){let t=e||`secondary`;return t===`secondary`?`is-light`:`is-${t}`}let r=$(t,`id`,7,``),i=$(t,`is_inpput`,7),a=$(t,`url`,7),o=$(t,`icon`,7),s=$(t,`text`,7),c=$(t,`number_of_results`,7),l=$(t,`badge`,7),u=$(t,`input_search`,7),d=$(t,`clicksearch`,7);var f={get id(){return r()},set id(e=``){r(e),N()},get is_inpput(){return i()},set is_inpput(e){i(e),N()},get url(){return a()},set url(e){a(e),N()},get icon(){return o()},set icon(e){o(e),N()},get text(){return s()},set text(e){s(e),N()},get number_of_results(){return c()},set number_of_results(e){c(e),N()},get badge(){return l()},set badge(e){l(e),N()},get input_search(){return u()},set input_search(e){u(e),N()},get clicksearch(){return d()},set clicksearch(e){d(e),N()}},p=vr(),m=nn(p),h=e=>{var t=fi(),u=L(t),f=e=>{var t=ci();z(()=>Wr(t,1,`bi bi-${o()?o():`dot`}`,`svelte-wocw98`)),Z(e,t)};Q(u,e=>{o()&&e(f)});var p=R(u,2),m=L(p);O(p);var h=R(p,2),g=e=>{var t=li(),n=L(t);O(t),z(()=>xr(n,`${c()??``} Results`)),Z(e,t)};Q(h,e=>{(c()||c()===0)&&e(g)});var _=R(h,2),v=e=>{var t=di(),r=L(t),i=e=>{var t=ui();z(()=>Wr(t,1,`bi bi-${l().icon}`,`svelte-wocw98`)),Z(e,t)};Q(r,e=>{l().icon&&e(i)});var a=R(r);O(t),z(e=>{Wr(t,1,e,`svelte-wocw98`),xr(a,` ${l().text??``}`)},[()=>`tag ${n(l().color)} is-flex is-align-items-center is-gap-1`]),Z(e,t)};Q(_,e=>{l()&&e(v)}),O(t),z(()=>{Yr(t,`href`,a()),xr(m,`${i()?`... `:``}${s()??``}`)}),ur(`click`,t,async()=>{await d()(s(),r())}),Z(e,t)},g=e=>{var t=_i(),a=L(t),u=e=>{var t=pi();z(()=>Wr(t,1,`bi bi-${o()?o():`dot`}`,`svelte-wocw98`)),Z(e,t)};Q(a,e=>{o()&&e(u)});var f=R(a,2),p=L(f);O(f);var m=R(f,2),h=e=>{var t=mi(),n=L(t);O(t),z(()=>xr(n,`${c()??``} Results`)),Z(e,t)};Q(m,e=>{c()&&e(h)});var g=R(m,2),_=e=>{var t=gi(),r=L(t),i=e=>{var t=hi();z(()=>Wr(t,1,`bi bi-${l().icon}`,`svelte-wocw98`)),Z(e,t)};Q(r,e=>{l().icon&&e(i)});var a=R(r);O(t),z(e=>{Wr(t,1,e,`svelte-wocw98`),xr(a,` ${l().text??``}`)},[()=>`tag ${n(l().color)} is-flex is-align-items-center is-gap-1`]),Z(e,t)};Q(g,e=>{l()&&e(_)}),O(t),z(()=>xr(p,`${i()?`... `:``}${s()??``}`)),ur(`click`,t,async()=>{await d()(s(),r())}),Z(e,t)};return Q(m,e=>{a()?e(h):e(g,-1)}),Z(e,p),He(f)}dr([`click`]),si(yi,{id:{},is_inpput:{},url:{},icon:{},text:{},number_of_results:{},badge:{},input_search:{},clicksearch:{}},[],[],{mode:`open`});var bi=X(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1r9sxfz"/>`),xi=X(`<textarea id="custom-search-input" part="search-input" class="input svelte-1r9sxfz" autocomplete="off" aria-label="Search" aria-describedby="search">
|
|
363
363
|
</textarea>`),Si=X(`<input id="custom-search-input" part="search-input" class="input svelte-1r9sxfz" type="search" autocomplete="off" aria-label="Search" aria-describedby="search"/>`),Ci=X(`<button class="button is-ghost is-small hb-searchbar-clear svelte-1r9sxfz" type="button" aria-label="Clear search"><i class="bi bi-x-lg svelte-1r9sxfz" aria-hidden="true"></i></button>`),wi=X(`<button type="button" class="hb-searchbar-row svelte-1r9sxfz"> </button>`),Ti=X(`<p class="hb-searchbar-section-label svelte-1r9sxfz">Suggested results</p> <!>`,1),Ei=X(`<div><div><div><div class="hb-searchbar-input-glass svelte-1r9sxfz" part="search-input-glass" aria-hidden="true"></div> <!> <div class="hb-searchbar-trailing-actions svelte-1r9sxfz"><!> <button type="button" class="hb-searchbar-search-trigger svelte-1r9sxfz" part="search-submit" aria-label="Search"><i class="bi bi-search svelte-1r9sxfz" aria-hidden="true"></i></button></div></div></div> <div><div class="dropdown-menu svelte-1r9sxfz" part="dropdown-menu" id="custom-search-list"><div class="dropdown-content hb-searchbar-dropdown-content svelte-1r9sxfz"><!> <!></div></div></div></div>`),Di={hash:`svelte-1r9sxfz`,code:`@charset "UTF-8";
|
|
364
|
-
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@
|
|
364
|
+
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.min.css");
|
|
365
365
|
/*!
|
|
366
366
|
* Bulma 1.x (Sass) for hb-searchbar — form input/textarea, dropdown, button, badge.
|
|
367
367
|
*/:host {--bulma-hb-def-control-radius: var(--bulma-radius, var(--bulma-hb-def-radius));--bulma-hb-def-control-radius-small: var(--bulma-radius-small, var(--bulma-hb-def-radius-small));--bulma-hb-def-control-border-width: 1px;--bulma-hb-def-control-height: 2.5em;--bulma-hb-def-control-line-height: 1.5;--bulma-hb-def-control-padding-vertical: calc(0.5em - 1px);--bulma-hb-def-control-padding-horizontal: calc(0.75em - 1px);--bulma-hb-def-control-size: var(--bulma-size-normal, var(--bulma-hb-def-size-normal));--bulma-hb-def-control-focus-shadow-l: 50%;}
|
package/manifest.json
CHANGED
|
@@ -962,7 +962,7 @@
|
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
964
|
],
|
|
965
|
-
"iifeIntegrity": "sha384-
|
|
965
|
+
"iifeIntegrity": "sha384-7JpqBR0YDc0CfbKOJ7RzZOt09UMBuWp6OF1z6ynjvZumMY6rwCmwGC5BsNq62jHf",
|
|
966
966
|
"dependencies": [],
|
|
967
967
|
"screenshots": [],
|
|
968
968
|
"licenses": [
|
|
@@ -983,5 +983,5 @@
|
|
|
983
983
|
"size": {},
|
|
984
984
|
"iifePath": "main.iife.js",
|
|
985
985
|
"repoName": "@htmlbricks/hb-searchbar",
|
|
986
|
-
"version": "0.
|
|
986
|
+
"version": "0.72.1"
|
|
987
987
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-searchbar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.1",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Search field with optional dropdown `searchlist` (id, text, icons, badges, tags, URLs). Configure `value`, `searchlabel`, `textarea`, `minlength`, `disable_preview`, `disabled`, and CSS parts for the input and menu. Dispatches `search` (detail may include `item` when a suggestion is chosen) and `clear`.",
|
|
6
6
|
"licenses": [
|