@brightspot/ui 1.4.0 → 1.4.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.
Files changed (59) hide show
  1. package/dist/custom-elements.json +144 -144
  2. package/dist/storybook/assets/{Avatar.stories-DrhezTR1.js → Avatar.stories-QxWs-YfX.js} +1 -1
  3. package/dist/storybook/assets/{AvatarGroup.stories-DrlxT-mF.js → AvatarGroup.stories-Cy_Bvn7E.js} +1 -1
  4. package/dist/storybook/assets/{Badge.stories-DtJcBfOR.js → Badge.stories-BpaApWbR.js} +1 -1
  5. package/dist/storybook/assets/{Button.stories-BKUfLgSY.js → Button.stories-C5h2usmd.js} +1 -1
  6. package/dist/storybook/assets/{CircularProgress.stories-dpmD-XJT.js → CircularProgress.stories-DlPOiGja.js} +1 -1
  7. package/dist/storybook/assets/{ClipboardMixin.stories-C0pnQ7BY.js → ClipboardMixin.stories-Bb45-UOM.js} +1 -1
  8. package/dist/storybook/assets/Color-6BZIO3FS-CcgGYVAo.js +1 -0
  9. package/dist/storybook/assets/{Colors.stories-bKK25qgF.js → Colors.stories-DP2JKWUJ.js} +1 -1
  10. package/dist/storybook/assets/{ComponentStatesMixin-C2HZ9ZFb.js → ComponentStatesMixin-B7ci0thi.js} +1 -1
  11. package/dist/storybook/assets/{ComponentStatesMixin.stories-9mRp2zuB.js → ComponentStatesMixin.stories-CyQ2aSTu.js} +1 -1
  12. package/dist/storybook/assets/{CopyToClipboard.stories-BW3oaT1i.js → CopyToClipboard.stories-DR7pckeV.js} +1 -1
  13. package/dist/storybook/assets/{Debounce.stories-BXx3CKvQ.js → Debounce.stories-hkqyvqmg.js} +3 -3
  14. package/dist/storybook/assets/DocsRenderer-LL677BLK-Dtw9GMer.js +758 -0
  15. package/dist/storybook/assets/{Events.stories-PBeiuWQn.js → Events.stories-BAgDzdyl.js} +1 -1
  16. package/dist/storybook/assets/{Heading.stories-Djkl0MoC.js → Heading.stories-CN_fPsRf.js} +1 -1
  17. package/dist/storybook/assets/{Icon.stories-Cam1fyud.js → Icon.stories-CSx_2K8V.js} +1 -1
  18. package/dist/storybook/assets/{LinearProgress.stories-BDNoYIJu.js → LinearProgress.stories-In48DY2g.js} +1 -1
  19. package/dist/storybook/assets/{Rtc.stories-BrTAIAi1.js → Rtc.stories-19d7WXe4.js} +3 -3
  20. package/dist/storybook/assets/{ScrollShadow.stories-DHcKhkag.js → ScrollShadow.stories-BFjracVd.js} +1 -1
  21. package/dist/storybook/assets/{Throttle.stories-cSYT_BXu.js → Throttle.stories-DD6ydiVq.js} +8 -8
  22. package/dist/storybook/assets/WithTooltip-65CFNBJE-Be1dKqOF.js +9 -0
  23. package/dist/storybook/assets/formatter-EIJCOSYU-anC2P5HS.js +1 -0
  24. package/dist/storybook/assets/{iframe-BMxUFmpF.css → iframe-B4njXYq6.css} +1 -1
  25. package/dist/storybook/assets/iframe-Bl9oHz5c.js +1061 -0
  26. package/dist/storybook/assets/index-Cn5E5A3G.js +1 -0
  27. package/dist/storybook/assets/onFind-DqriYjEB.js +1 -0
  28. package/dist/storybook/assets/onFind.stories-BMDLUk0l.js +1069 -0
  29. package/dist/storybook/assets/{onRemove.stories-C7W9KyRr.js → onRemove.stories-C3FcxtYh.js} +3 -3
  30. package/dist/storybook/assets/{onVisible.stories-CIl6R0q4.js → onVisible.stories-B8Zyu0Th.js} +10 -10
  31. package/dist/storybook/assets/syntaxhighlighter-ED5Y7EFY-BfTKsIVL.js +6 -0
  32. package/dist/storybook/iframe.html +57 -39
  33. package/dist/storybook/index.html +11 -4
  34. package/dist/storybook/index.json +1 -1
  35. package/dist/storybook/project.json +1 -1
  36. package/dist/storybook/sb-addons/docs-1/manager-bundle.js +1 -1
  37. package/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +112 -290
  38. package/dist/storybook/sb-addons/vitest-2/manager-bundle.js +3 -0
  39. package/dist/storybook/sb-manager/globals-runtime.js +60754 -66346
  40. package/dist/storybook/sb-manager/globals.js +2 -3
  41. package/dist/storybook/sb-manager/manager-stores.js +23 -0
  42. package/dist/storybook/sb-manager/runtime.js +12983 -11699
  43. package/dist/storybook/vite-inject-mocker-entry.js +2 -2
  44. package/dist/util/onFind.d.ts +1 -0
  45. package/dist/util/onFind.d.ts.map +1 -1
  46. package/dist/util/onFind.js +73 -48
  47. package/dist/util/onFind.js.map +1 -1
  48. package/dist/util/onVisible.d.ts.map +1 -1
  49. package/dist/util/onVisible.js +13 -2
  50. package/dist/util/onVisible.js.map +1 -1
  51. package/package.json +12 -5
  52. package/dist/storybook/assets/Color-64QXVMR3-Dnd9S2a1.js +0 -1
  53. package/dist/storybook/assets/WithTooltip-SK46ZJ2J-Df0E-KJO.js +0 -825
  54. package/dist/storybook/assets/formatter-OMEEQ6HG-DFa_WTfb.js +0 -1
  55. package/dist/storybook/assets/iframe-lTczLWsL.js +0 -1064
  56. package/dist/storybook/assets/index-yMswRDPh.js +0 -1
  57. package/dist/storybook/assets/onFind-C6olvKHR.js +0 -1
  58. package/dist/storybook/assets/onFind.stories-DfW54CDE.js +0 -284
  59. package/dist/storybook/assets/syntaxhighlighter-CAVLW7PM-DoI0ixeu.js +0 -6
@@ -1,4 +1,4 @@
1
- import{x as c}from"./iframe-lTczLWsL.js";import"./preload-helper-PPVm8Dsz.js";function p(n,e){if(n<=0)return e;let t;return function(){clearTimeout(t),t=setTimeout(()=>{t=void 0,e.apply(this,[...arguments])},n)}}const g={title:"Utilities/Debounce",tags:["autodocs"],parameters:{docs:{subtitle:"The `debounce` utility delays function execution until a specified wait period has elapsed since the last invocation. Useful for search inputs, form validation, and window resize handlers."},controls:{expanded:!0}},argTypes:{wait:{control:{type:"number",min:0,max:2e3,step:50},description:"Debounce wait time in milliseconds"}},args:{wait:300}},o={render:n=>{const e=`debounce-${Math.random().toString(36).substring(2,9)}`;let t=0,i=0;const d=()=>{const a=document.getElementById(`${e}-normal-count`),r=document.getElementById(`${e}-debounced-count`);a&&(a.textContent=String(t)),r&&(r.textContent=String(i))},l=p(n.wait,()=>{i++,d()}),u=()=>{t++,d(),l()};return c`
1
+ import{x as c}from"./iframe-Bl9oHz5c.js";import"./preload-helper-PPVm8Dsz.js";function p(n,e){if(n<=0)return e;let t;return function(){clearTimeout(t),t=setTimeout(()=>{t=void 0,e.apply(this,[...arguments])},n)}}const g={title:"Utilities/Debounce",tags:["autodocs"],parameters:{docs:{subtitle:"The `debounce` utility delays function execution until a specified wait period has elapsed since the last invocation. Useful for search inputs, form validation, and window resize handlers."},controls:{expanded:!0}},argTypes:{wait:{control:{type:"number",min:0,max:2e3,step:50},description:"Debounce wait time in milliseconds"}},args:{wait:300}},o={render:n=>{const e=`debounce-${Math.random().toString(36).substring(2,9)}`;let t=0,i=0;const d=()=>{const a=document.getElementById(`${e}-normal-count`),r=document.getElementById(`${e}-debounced-count`);a&&(a.textContent=String(t)),r&&(r.textContent=String(i))},l=p(n.wait,()=>{i++,d()}),u=()=>{t++,d(),l()};return c`
2
2
  <div class="space-y-4">
3
3
  <div class="text-base">
4
4
  <p class="mb-2">
@@ -38,7 +38,7 @@ import{x as c}from"./iframe-lTczLWsL.js";import"./preload-helper-PPVm8Dsz.js";fu
38
38
  <h3 class="mb-2 font-bold">Basic Usage</h3>
39
39
  <pre
40
40
  class="overflow-x-auto rounded bg-gray-900 p-4 text-gray-100"
41
- ><code>import { debounce } from '@brightspot/ui/dist/util/debounce.js'
41
+ ><code>import { debounce } from '@brightspot/ui/util/debounce.js'
42
42
 
43
43
  const handleSearch = debounce(300, () => {
44
44
  console.log('Search triggered after 300ms of inactivity')
@@ -150,7 +150,7 @@ input.addEventListener('input', handleSearch)</code></pre>
150
150
  <h3 class="mb-2 font-bold">Basic Usage</h3>
151
151
  <pre
152
152
  class="overflow-x-auto rounded bg-gray-900 p-4 text-gray-100"
153
- ><code>import { debounce } from '@brightspot/ui/dist/util/debounce.js'
153
+ ><code>import { debounce } from '@brightspot/ui/util/debounce.js'
154
154
 
155
155
  const handleSearch = debounce(300, () => {
156
156
  console.log('Search triggered after 300ms of inactivity')