@brightspot/ui 1.0.0-alpha.2 → 1.0.0-alpha.4

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 (48) hide show
  1. package/dist/LucideDynamicLoader.js +21 -0
  2. package/dist/LucideDynamicLoader.ts +23 -0
  3. package/dist/storybook/342.9186a774.iframe.bundle.js +2 -0
  4. package/dist/storybook/342.9186a774.iframe.bundle.js.LICENSE.txt +6 -0
  5. package/dist/storybook/{648.0f0c2ea1.iframe.bundle.js → 648.0f339b09.iframe.bundle.js} +1 -1
  6. package/dist/storybook/689.bf58321f.iframe.bundle.js +95 -0
  7. package/dist/storybook/689.bf58321f.iframe.bundle.js.map +1 -0
  8. package/dist/storybook/906.0b06b831.iframe.bundle.js +405 -0
  9. package/dist/storybook/{906.c7ad56cf.iframe.bundle.js.map → 906.0b06b831.iframe.bundle.js.map} +1 -1
  10. package/dist/storybook/936.9ad0e832.iframe.bundle.js +1 -0
  11. package/dist/storybook/iframe.html +3 -3
  12. package/dist/storybook/index.json +1 -1
  13. package/dist/storybook/main.60eb2a33.iframe.bundle.js +1 -0
  14. package/dist/storybook/project.json +1 -1
  15. package/dist/storybook/runtime~main.0d0d1d44.iframe.bundle.js +1 -0
  16. package/dist/storybook/sb-addons/essentials-backgrounds-4/manager-bundle.js +1 -1
  17. package/dist/storybook/sb-addons/essentials-controls-1/manager-bundle.js +8 -8
  18. package/dist/storybook/sb-addons/essentials-docs-3/manager-bundle.js +4 -4
  19. package/dist/storybook/sb-addons/essentials-measure-7/manager-bundle.js +1 -1
  20. package/dist/storybook/sb-addons/essentials-outline-8/manager-bundle.js +1 -1
  21. package/dist/storybook/sb-addons/essentials-viewport-5/manager-bundle.js +1 -1
  22. package/dist/storybook/sb-manager/globals-module-info.js +1 -0
  23. package/dist/storybook/sb-manager/globals-runtime.js +10372 -9836
  24. package/dist/storybook/sb-manager/runtime.js +119 -119
  25. package/dist/storybook/stories-Badge-stories.52b61cf3.iframe.bundle.js.map +1 -1
  26. package/dist/storybook/stories-Button-stories.777d0529.iframe.bundle.js.map +1 -1
  27. package/dist/storybook/{stories-Colors-stories.324d20d0.iframe.bundle.js → stories-Colors-stories.927fecc8.iframe.bundle.js} +2 -2
  28. package/dist/storybook/{stories-Colors-stories.324d20d0.iframe.bundle.js.map → stories-Colors-stories.927fecc8.iframe.bundle.js.map} +1 -1
  29. package/dist/storybook/stories-Icon-stories.f2eb249f.iframe.bundle.js +8 -0
  30. package/dist/storybook/stories-Icon-stories.f2eb249f.iframe.bundle.js.map +1 -0
  31. package/dist/storybook/{stories-ScrollShadow-stories.252ec9e7.iframe.bundle.js → stories-ScrollShadow-stories.ddf1e99b.iframe.bundle.js} +4 -4
  32. package/dist/storybook/stories-ScrollShadow-stories.ddf1e99b.iframe.bundle.js.map +1 -0
  33. package/dist/tailwind-plugin-icon.js +4 -133
  34. package/dist/tailwind-plugin-icon.ts +4 -147
  35. package/dist/tailwind.config.js +6 -1
  36. package/dist/tailwind.config.ts +6 -1
  37. package/dist/util/string.js +14 -0
  38. package/dist/util/svg.js +13 -0
  39. package/package.json +1 -1
  40. package/dist/storybook/689.b6901a43.iframe.bundle.js +0 -95
  41. package/dist/storybook/689.b6901a43.iframe.bundle.js.map +0 -1
  42. package/dist/storybook/906.c7ad56cf.iframe.bundle.js +0 -405
  43. package/dist/storybook/936.7e4d4897.iframe.bundle.js +0 -1
  44. package/dist/storybook/main.7b0cb99d.iframe.bundle.js +0 -1
  45. package/dist/storybook/runtime~main.a1926d89.iframe.bundle.js +0 -1
  46. package/dist/storybook/stories-ScrollShadow-stories.252ec9e7.iframe.bundle.js.map +0 -1
  47. /package/dist/storybook/{689.b6901a43.iframe.bundle.js.LICENSE.txt → 689.bf58321f.iframe.bundle.js.LICENSE.txt} +0 -0
  48. /package/dist/storybook/{906.c7ad56cf.iframe.bundle.js.LICENSE.txt → 906.0b06b831.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -27,14 +27,14 @@ var ze = (e, t, o) => (o = e != null ? Nd(Hd(e)) : {}, zd(
27
27
  ));
28
28
 
29
29
  // ../node_modules/prop-types/lib/ReactPropTypesSecret.js
30
- var ya = Ee((gw, ga) => {
30
+ var ya = Ee((yw, ga) => {
31
31
  "use strict";
32
32
  var jd = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
33
33
  ga.exports = jd;
34
34
  });
35
35
 
36
36
  // ../node_modules/prop-types/factoryWithThrowingShims.js
37
- var Sa = Ee((yw, xa) => {
37
+ var Sa = Ee((bw, xa) => {
38
38
  "use strict";
39
39
  var Vd = ya();
40
40
  function ba() {
@@ -87,13 +87,13 @@ Read more at http://fb.me/use-check-prop-types"
87
87
  });
88
88
 
89
89
  // ../node_modules/prop-types/index.js
90
- var pn = Ee((Sw, Ia) => {
90
+ var pn = Ee((Iw, Ia) => {
91
91
  Ia.exports = Sa()();
92
- var vw, xw;
92
+ var xw, Sw;
93
93
  });
94
94
 
95
95
  // ../node_modules/react-fast-compare/index.js
96
- var _a = Ee((Iw, Ea) => {
96
+ var _a = Ee((Ew, Ea) => {
97
97
  var Kd = typeof Element < "u", $d = typeof Map == "function", Ud = typeof Set == "function", Gd = typeof ArrayBuffer == "function" && !!ArrayBuffer.
98
98
  isView;
99
99
  function jo(e, t) {
@@ -157,7 +157,7 @@ var _a = Ee((Iw, Ea) => {
157
157
  });
158
158
 
159
159
  // ../node_modules/invariant/browser.js
160
- var Ta = Ee((_w, wa) => {
160
+ var Ta = Ee((ww, wa) => {
161
161
  "use strict";
162
162
  var Yd = /* @__PURE__ */ a(function(e, t, o, i, n, r, l, u) {
163
163
  if (!e) {
@@ -181,7 +181,7 @@ var Ta = Ee((_w, wa) => {
181
181
  });
182
182
 
183
183
  // ../node_modules/shallowequal/index.js
184
- var ka = Ee((Tw, Ca) => {
184
+ var ka = Ee((Cw, Ca) => {
185
185
  Ca.exports = /* @__PURE__ */ a(function(t, o, i, n) {
186
186
  var r = i ? i.call(n, t, o) : void 0;
187
187
  if (r !== void 0)
@@ -579,7 +579,7 @@ var Kn = Ee((cr) => {
579
579
  });
580
580
 
581
581
  // ../node_modules/fast-decode-uri-component/index.js
582
- var Pl = Ee((ZO, Ol) => {
582
+ var Pl = Ee((JO, Ol) => {
583
583
  "use strict";
584
584
  var Cl = 12, Am = 0, $n = [
585
585
  // The first part of the table maps bytes to character to a transition.
@@ -1121,7 +1121,7 @@ var Rl = Ee((Ze) => {
1121
1121
  });
1122
1122
 
1123
1123
  // ../node_modules/toggle-selection/index.js
1124
- var jl = Ee((IP, Wl) => {
1124
+ var jl = Ee((EP, Wl) => {
1125
1125
  Wl.exports = function() {
1126
1126
  var e = document.getSelection();
1127
1127
  if (!e.rangeCount)
@@ -1148,7 +1148,7 @@ var jl = Ee((IP, Wl) => {
1148
1148
  });
1149
1149
 
1150
1150
  // ../node_modules/copy-to-clipboard/index.js
1151
- var $l = Ee((EP, Kl) => {
1151
+ var $l = Ee((_P, Kl) => {
1152
1152
  "use strict";
1153
1153
  var qm = jl(), Vl = {
1154
1154
  "text/plain": "Text",
@@ -1300,7 +1300,7 @@ context"), Ar = Symbol.for("react.forward_ref"), Dr = Symbol.for("react.suspense
1300
1300
  });
1301
1301
 
1302
1302
  // ../node_modules/downshift/node_modules/react-is/index.js
1303
- var Yc = Ee((tR, Gc) => {
1303
+ var Yc = Ee((oR, Gc) => {
1304
1304
  "use strict";
1305
1305
  Gc.exports = Uc();
1306
1306
  });
@@ -1918,50 +1918,50 @@ PullRequestIcon: KS, QuestionIcon: $S, RSSIcon: US, RedirectIcon: GS, ReduxIcon:
1918
1918
  RewindIcon: JS, RulerIcon: eI, SaveIcon: tI, SearchIcon: No, ShareAltIcon: at, ShareIcon: oI, ShieldIcon: rI, SideBySideIcon: nI, SidebarAltIcon: Ro,
1919
1919
  SidebarAltToggleIcon: iI, SidebarIcon: sI, SidebarToggleIcon: aI, SpeakerIcon: lI, StackedIcon: uI, StarHollowIcon: cI, StarIcon: pI, StatusFailIcon: Ns,
1920
1920
  StatusIcon: dI, StatusPassIcon: Rs, StatusWarnIcon: Fs, StickerIcon: fI, StopAltHollowIcon: mI, StopAltIcon: Hs, StopIcon: hI, StorybookIcon: Bs,
1921
- StructureIcon: gI, SubtractIcon: yI, SunIcon: bI, SupportIcon: vI, SwitchAltIcon: xI, SyncIcon: mt, TabletIcon: SI, ThumbsUpIcon: II, TimeIcon: zs,
1922
- TimerIcon: EI, TransferIcon: _I, TrashIcon: Ws, TwitterIcon: wI, TypeIcon: TI, UbuntuIcon: CI, UndoIcon: kI, UnfoldIcon: OI, UnlockIcon: PI,
1923
- UnpinIcon: AI, UploadIcon: DI, UserAddIcon: MI, UserAltIcon: LI, UserIcon: NI, UsersIcon: RI, VSCodeIcon: FI, VerifiedIcon: HI, VideoIcon: BI,
1924
- WandIcon: js, WatchIcon: zI, WindowsIcon: WI, WrenchIcon: jI, XIcon: VI, YoutubeIcon: KI, ZoomIcon: Vs, ZoomOutIcon: Ks, ZoomResetIcon: $s, iconList: $I } = __STORYBOOK_ICONS__;
1921
+ StructureIcon: gI, SubtractIcon: yI, SunIcon: bI, SupportIcon: vI, SweepIcon: xI, SwitchAltIcon: SI, SyncIcon: mt, TabletIcon: II, ThumbsUpIcon: EI,
1922
+ TimeIcon: zs, TimerIcon: _I, TransferIcon: wI, TrashIcon: Ws, TwitterIcon: TI, TypeIcon: CI, UbuntuIcon: kI, UndoIcon: OI, UnfoldIcon: PI, UnlockIcon: AI,
1923
+ UnpinIcon: DI, UploadIcon: MI, UserAddIcon: LI, UserAltIcon: NI, UserIcon: RI, UsersIcon: FI, VSCodeIcon: HI, VerifiedIcon: BI, VideoIcon: zI,
1924
+ WandIcon: js, WatchIcon: WI, WindowsIcon: jI, WrenchIcon: VI, XIcon: KI, YoutubeIcon: $I, ZoomIcon: Vs, ZoomOutIcon: Ks, ZoomResetIcon: $s, iconList: UI } = __STORYBOOK_ICONS__;
1925
1925
 
1926
1926
  // global-externals:@storybook/theming
1927
- var GI = __STORYBOOK_THEMING__, { CacheProvider: YI, ClassNames: qI, Global: QI, ThemeProvider: XI, background: ZI, color: Us, convert: JI, create: eE,
1928
- createCache: tE, createGlobal: oE, createReset: rE, css: nE, darken: iE, ensure: sE, ignoreSsrWarning: aE, isPropValid: lE, jsx: uE, keyframes: cE,
1929
- lighten: pE, styled: dE, themes: fE, typography: mE, useTheme: hE, withTheme: gE } = __STORYBOOK_THEMING__;
1927
+ var YI = __STORYBOOK_THEMING__, { CacheProvider: qI, ClassNames: QI, Global: XI, ThemeProvider: ZI, background: JI, color: Us, convert: eE, create: tE,
1928
+ createCache: oE, createGlobal: rE, createReset: nE, css: iE, darken: sE, ensure: aE, ignoreSsrWarning: lE, isPropValid: uE, jsx: cE, keyframes: pE,
1929
+ lighten: dE, styled: fE, themes: mE, typography: hE, useTheme: gE, withTheme: yE } = __STORYBOOK_THEMING__;
1930
1930
 
1931
1931
  // global-externals:@storybook/core/core-events
1932
- var bE = __STORYBOOK_CORE_EVENTS__, { ARGTYPES_INFO_REQUEST: Gs, ARGTYPES_INFO_RESPONSE: Ys, CHANNEL_CREATED: qs, CHANNEL_WS_DISCONNECT: Qs,
1933
- CONFIG_ERROR: vE, CREATE_NEW_STORYFILE_REQUEST: Xs, CREATE_NEW_STORYFILE_RESPONSE: Zs, CURRENT_STORY_WAS_SET: xE, DOCS_PREPARED: SE, DOCS_RENDERED: IE,
1934
- FILE_COMPONENT_SEARCH_REQUEST: Js, FILE_COMPONENT_SEARCH_RESPONSE: Fo, FORCE_REMOUNT: sn, FORCE_RE_RENDER: EE, GLOBALS_UPDATED: _E, NAVIGATE_URL: wE,
1935
- PLAY_FUNCTION_THREW_EXCEPTION: TE, PRELOAD_ENTRIES: St, PREVIEW_BUILDER_PROGRESS: ea, PREVIEW_KEYDOWN: CE, REGISTER_SUBSCRIPTION: kE, REQUEST_WHATS_NEW_DATA: OE,
1936
- RESET_STORY_ARGS: PE, RESULT_WHATS_NEW_DATA: AE, SAVE_STORY_REQUEST: ta, SAVE_STORY_RESPONSE: oa, SELECT_STORY: DE, SET_CONFIG: ME, SET_CURRENT_STORY: ra,
1937
- SET_FILTER: LE, SET_GLOBALS: NE, SET_INDEX: RE, SET_STORIES: FE, SET_WHATS_NEW_CACHE: HE, SHARED_STATE_CHANGED: BE, SHARED_STATE_SET: zE, STORIES_COLLAPSE_ALL: io,
1938
- STORIES_EXPAND_ALL: an, STORY_ARGS_UPDATED: WE, STORY_CHANGED: jE, STORY_ERRORED: VE, STORY_FINISHED: KE, STORY_INDEX_INVALIDATED: $E, STORY_MISSING: UE,
1939
- STORY_PREPARED: GE, STORY_RENDERED: YE, STORY_RENDER_PHASE_CHANGED: qE, STORY_SPECIFIED: QE, STORY_THREW_EXCEPTION: XE, STORY_UNCHANGED: ZE,
1940
- TELEMETRY_ERROR: JE, TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: e_, TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE: t_, TESTING_MODULE_CRASH_REPORT: ln,
1941
- TESTING_MODULE_PROGRESS_REPORT: un, TESTING_MODULE_RUN_ALL_REQUEST: o_, TESTING_MODULE_RUN_REQUEST: r_, TOGGLE_WHATS_NEW_NOTIFICATIONS: n_, UNHANDLED_ERRORS_WHILE_PLAYING: i_,
1942
- UPDATE_GLOBALS: s_, UPDATE_QUERY_PARAMS: a_, UPDATE_STORY_ARGS: l_ } = __STORYBOOK_CORE_EVENTS__;
1932
+ var vE = __STORYBOOK_CORE_EVENTS__, { ARGTYPES_INFO_REQUEST: Gs, ARGTYPES_INFO_RESPONSE: Ys, CHANNEL_CREATED: qs, CHANNEL_WS_DISCONNECT: Qs,
1933
+ CONFIG_ERROR: xE, CREATE_NEW_STORYFILE_REQUEST: Xs, CREATE_NEW_STORYFILE_RESPONSE: Zs, CURRENT_STORY_WAS_SET: SE, DOCS_PREPARED: IE, DOCS_RENDERED: EE,
1934
+ FILE_COMPONENT_SEARCH_REQUEST: Js, FILE_COMPONENT_SEARCH_RESPONSE: Fo, FORCE_REMOUNT: sn, FORCE_RE_RENDER: _E, GLOBALS_UPDATED: wE, NAVIGATE_URL: TE,
1935
+ PLAY_FUNCTION_THREW_EXCEPTION: CE, PRELOAD_ENTRIES: St, PREVIEW_BUILDER_PROGRESS: ea, PREVIEW_KEYDOWN: kE, REGISTER_SUBSCRIPTION: OE, REQUEST_WHATS_NEW_DATA: PE,
1936
+ RESET_STORY_ARGS: AE, RESULT_WHATS_NEW_DATA: DE, SAVE_STORY_REQUEST: ta, SAVE_STORY_RESPONSE: oa, SELECT_STORY: ME, SET_CONFIG: LE, SET_CURRENT_STORY: ra,
1937
+ SET_FILTER: NE, SET_GLOBALS: RE, SET_INDEX: FE, SET_STORIES: HE, SET_WHATS_NEW_CACHE: BE, SHARED_STATE_CHANGED: zE, SHARED_STATE_SET: WE, STORIES_COLLAPSE_ALL: io,
1938
+ STORIES_EXPAND_ALL: an, STORY_ARGS_UPDATED: jE, STORY_CHANGED: VE, STORY_ERRORED: KE, STORY_FINISHED: $E, STORY_INDEX_INVALIDATED: UE, STORY_MISSING: GE,
1939
+ STORY_PREPARED: YE, STORY_RENDERED: qE, STORY_RENDER_PHASE_CHANGED: QE, STORY_SPECIFIED: XE, STORY_THREW_EXCEPTION: ZE, STORY_UNCHANGED: JE,
1940
+ TELEMETRY_ERROR: e_, TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: t_, TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE: o_, TESTING_MODULE_CRASH_REPORT: ln,
1941
+ TESTING_MODULE_PROGRESS_REPORT: un, TESTING_MODULE_RUN_ALL_REQUEST: r_, TESTING_MODULE_RUN_REQUEST: n_, TOGGLE_WHATS_NEW_NOTIFICATIONS: i_, UNHANDLED_ERRORS_WHILE_PLAYING: s_,
1942
+ UPDATE_GLOBALS: a_, UPDATE_QUERY_PARAMS: l_, UPDATE_STORY_ARGS: u_ } = __STORYBOOK_CORE_EVENTS__;
1943
1943
 
1944
1944
  // global-externals:@storybook/core/manager-api
1945
- var c_ = __STORYBOOK_API__, { ActiveTabs: p_, Consumer: he, ManagerContext: d_, Provider: na, RequestResponseError: f_, addons: Ye, combineParameters: m_,
1946
- controlOrMetaKey: h_, controlOrMetaSymbol: g_, eventMatchesShortcut: y_, eventToShortcut: ia, experimental_MockUniversalStore: b_, experimental_UniversalStore: v_,
1947
- experimental_requestResponse: Ho, experimental_useUniversalStore: x_, isMacLike: S_, isShortcutTaken: I_, keyToSymbol: E_, merge: Bo, mockChannel: __,
1948
- optionOrAltSymbol: w_, shortcutMatchesShortcut: sa, shortcutToHumanString: qe, types: ve, useAddonState: T_, useArgTypes: C_, useArgs: k_, useChannel: aa,
1949
- useGlobalTypes: O_, useGlobals: P_, useParameter: A_, useSharedState: D_, useStoryPrepared: M_, useStorybookApi: oe, useStorybookState: Pe } = __STORYBOOK_API__;
1945
+ var p_ = __STORYBOOK_API__, { ActiveTabs: d_, Consumer: he, ManagerContext: f_, Provider: na, RequestResponseError: m_, addons: Ye, combineParameters: h_,
1946
+ controlOrMetaKey: g_, controlOrMetaSymbol: y_, eventMatchesShortcut: b_, eventToShortcut: ia, experimental_MockUniversalStore: v_, experimental_UniversalStore: x_,
1947
+ experimental_requestResponse: Ho, experimental_useUniversalStore: S_, isMacLike: I_, isShortcutTaken: E_, keyToSymbol: __, merge: Bo, mockChannel: w_,
1948
+ optionOrAltSymbol: T_, shortcutMatchesShortcut: sa, shortcutToHumanString: qe, types: ve, useAddonState: C_, useArgTypes: k_, useArgs: O_, useChannel: aa,
1949
+ useGlobalTypes: P_, useGlobals: A_, useParameter: D_, useSharedState: M_, useStoryPrepared: L_, useStorybookApi: oe, useStorybookState: Pe } = __STORYBOOK_API__;
1950
1950
 
1951
1951
  // global-externals:react-dom/client
1952
- var N_ = __REACT_DOM_CLIENT__, { createRoot: la, hydrateRoot: R_ } = __REACT_DOM_CLIENT__;
1952
+ var R_ = __REACT_DOM_CLIENT__, { createRoot: la, hydrateRoot: F_ } = __REACT_DOM_CLIENT__;
1953
1953
 
1954
1954
  // global-externals:@storybook/core/router
1955
- var H_ = __STORYBOOK_ROUTER__, { BaseLocationProvider: B_, DEEPLY_EQUAL: z_, Link: zo, Location: Wo, LocationProvider: ua, Match: ca, Route: so,
1956
- buildArgsParam: W_, deepDiff: j_, getMatch: V_, parsePath: K_, queryFromLocation: $_, stringifyQuery: U_, useNavigate: pa } = __STORYBOOK_ROUTER__;
1955
+ var B_ = __STORYBOOK_ROUTER__, { BaseLocationProvider: z_, DEEPLY_EQUAL: W_, Link: zo, Location: Wo, LocationProvider: ua, Match: ca, Route: so,
1956
+ buildArgsParam: j_, deepDiff: V_, getMatch: K_, parsePath: $_, queryFromLocation: U_, stringifyQuery: G_, useNavigate: pa } = __STORYBOOK_ROUTER__;
1957
1957
 
1958
1958
  // global-externals:@storybook/core/theming
1959
- var Y_ = __STORYBOOK_THEMING__, { CacheProvider: q_, ClassNames: Q_, Global: Ut, ThemeProvider: cn, background: X_, color: Z_, convert: J_, create: ew,
1960
- createCache: tw, createGlobal: da, createReset: ow, css: rw, darken: nw, ensure: fa, ignoreSsrWarning: iw, isPropValid: sw, jsx: aw, keyframes: It,
1961
- lighten: lw, styled: x, themes: uw, typography: cw, useTheme: Ae, withTheme: ma } = __STORYBOOK_THEMING__;
1959
+ var q_ = __STORYBOOK_THEMING__, { CacheProvider: Q_, ClassNames: X_, Global: Ut, ThemeProvider: cn, background: Z_, color: J_, convert: ew, create: tw,
1960
+ createCache: ow, createGlobal: da, createReset: rw, css: nw, darken: iw, ensure: fa, ignoreSsrWarning: sw, isPropValid: aw, jsx: lw, keyframes: It,
1961
+ lighten: uw, styled: x, themes: cw, typography: pw, useTheme: Ae, withTheme: ma } = __STORYBOOK_THEMING__;
1962
1962
 
1963
1963
  // global-externals:@storybook/core/manager-errors
1964
- var dw = __STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__, { Category: fw, ProviderDoesNotExtendBaseProviderError: ha, UncaughtManagerError: mw } = __STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__;
1964
+ var fw = __STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__, { Category: mw, ProviderDoesNotExtendBaseProviderError: ha, UncaughtManagerError: hw } = __STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__;
1965
1965
 
1966
1966
  // ../node_modules/react-helmet-async/lib/index.module.js
1967
1967
  var ne = ze(pn()), Na = ze(_a()), gn = ze(Ta()), Ra = ze(ka());
@@ -2401,13 +2401,13 @@ var za = jt({
2401
2401
  }, "LayoutProvider"), ge = /* @__PURE__ */ a(() => ko(za), "useLayout");
2402
2402
 
2403
2403
  // global-externals:@storybook/core/components
2404
- var zw = __STORYBOOK_COMPONENTS__, { A: Ww, ActionBar: jw, AddonPanel: Vw, Badge: Go, Bar: Kw, Blockquote: $w, Button: me, ClipboardCode: Uw,
2405
- Code: Gw, DL: Yw, Div: qw, DocumentWrapper: Qw, EmptyTabContent: ja, ErrorFormatter: Va, FlexBar: Xw, Form: Yo, H1: Zw, H2: Jw, H3: eT, H4: tT,
2406
- H5: oT, H6: rT, HR: nT, IconButton: te, IconButtonSkeleton: iT, Icons: Ka, Img: sT, LI: aT, Link: Me, ListItem: uf, Loader: qo, Modal: Et, OL: lT,
2407
- P: uT, Placeholder: cT, Pre: pT, ProgressSpinner: $a, ResetWrapper: dT, ScrollArea: Qo, Separator: qt, Spaced: lt, Span: fT, StorybookIcon: mT,
2408
- StorybookLogo: Xo, Symbols: hT, SyntaxHighlighter: gT, TT: yT, TabBar: Zo, TabButton: Jo, TabWrapper: bT, Table: vT, Tabs: Ua, TabsState: xT,
2409
- TooltipLinkList: gt, TooltipMessage: ST, TooltipNote: Xe, UL: IT, WithTooltip: be, WithTooltipPure: ET, Zoom: Ga, codeCommon: _T, components: wT,
2410
- createCopyToClipboardFunction: TT, getStoryHref: Qt, icons: CT, interleaveSeparators: kT, nameSpaceClassNames: OT, resetComponents: PT, withReset: AT } = __STORYBOOK_COMPONENTS__;
2404
+ var Ww = __STORYBOOK_COMPONENTS__, { A: jw, ActionBar: Vw, AddonPanel: Kw, Badge: Go, Bar: $w, Blockquote: Uw, Button: me, ClipboardCode: Gw,
2405
+ Code: Yw, DL: qw, Div: Qw, DocumentWrapper: Xw, EmptyTabContent: ja, ErrorFormatter: Va, FlexBar: Zw, Form: Yo, H1: Jw, H2: eT, H3: tT, H4: oT,
2406
+ H5: rT, H6: nT, HR: iT, IconButton: te, IconButtonSkeleton: sT, Icons: Ka, Img: aT, LI: lT, Link: Me, ListItem: uf, Loader: qo, Modal: Et, OL: uT,
2407
+ P: cT, Placeholder: pT, Pre: dT, ProgressSpinner: $a, ResetWrapper: fT, ScrollArea: Qo, Separator: qt, Spaced: lt, Span: mT, StorybookIcon: hT,
2408
+ StorybookLogo: Xo, Symbols: gT, SyntaxHighlighter: yT, TT: bT, TabBar: Zo, TabButton: Jo, TabWrapper: vT, Table: xT, Tabs: Ua, TabsState: ST,
2409
+ TooltipLinkList: gt, TooltipMessage: IT, TooltipNote: Xe, UL: ET, WithTooltip: be, WithTooltipPure: _T, Zoom: Ga, codeCommon: wT, components: TT,
2410
+ createCopyToClipboardFunction: CT, getStoryHref: Qt, icons: kT, interleaveSeparators: OT, nameSpaceClassNames: PT, resetComponents: AT, withReset: DT } = __STORYBOOK_COMPONENTS__;
2411
2411
 
2412
2412
  // ../node_modules/@babel/runtime/helpers/esm/extends.js
2413
2413
  function G() {
@@ -3054,7 +3054,7 @@ var Lf = It({
3054
3054
  }
3055
3055
  },
3056
3056
  /* @__PURE__ */ s.createElement(Ao, { size: 12 })
3057
- ), "DismissNotificationItem"), SC = x.div({
3057
+ ), "DismissNotificationItem"), IC = x.div({
3058
3058
  height: 48
3059
3059
  }), Vf = /* @__PURE__ */ a(({
3060
3060
  notification: { content: e, duration: t, link: o, onClear: i, onClick: n, id: r, icon: l },
@@ -3148,8 +3148,8 @@ function ke(e, t) {
3148
3148
  a(ke, "_objectWithoutPropertiesLoose");
3149
3149
 
3150
3150
  // global-externals:react-dom
3151
- var fo = __REACT_DOM__, { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: WC, createPortal: jC, createRoot: VC, findDOMNode: KC, flushSync: mo,
3152
- hydrate: $C, hydrateRoot: UC, render: GC, unmountComponentAtNode: YC, unstable_batchedUpdates: qC, unstable_renderSubtreeIntoContainer: QC, version: XC } = __REACT_DOM__;
3151
+ var fo = __REACT_DOM__, { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: jC, createPortal: VC, createRoot: KC, findDOMNode: $C, flushSync: mo,
3152
+ hydrate: UC, hydrateRoot: GC, render: YC, unmountComponentAtNode: qC, unstable_batchedUpdates: QC, unstable_renderSubtreeIntoContainer: XC, version: ZC } = __REACT_DOM__;
3153
3153
 
3154
3154
  // ../node_modules/react-transition-group/esm/config.js
3155
3155
  var Dn = {
@@ -3919,7 +3919,7 @@ t.rightPanelWidth && e.panelPosition === t.panelPosition, "layoutStateIsEqual"),
3919
3919
  );
3920
3920
 
3921
3921
  // global-externals:@storybook/core/types
3922
- var ak = __STORYBOOK_TYPES__, { Addon_TypesEnum: Te } = __STORYBOOK_TYPES__;
3922
+ var lk = __STORYBOOK_TYPES__, { Addon_TypesEnum: Te } = __STORYBOOK_TYPES__;
3923
3923
 
3924
3924
  // src/core-events/index.ts
3925
3925
  var xl = /* @__PURE__ */ ((B) => (B.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", B.CHANNEL_CREATED = "channelCreated", B.CONFIG_ERROR = "c\
@@ -3943,68 +3943,68 @@ rashReport", B.TESTING_MODULE_PROGRESS_REPORT = "testingModuleProgressReport", B
3943
3943
  "testingModuleRunAllRequest", B.TESTING_MODULE_CANCEL_TEST_RUN_REQUEST = "testingModuleCancelTestRunRequest", B.TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE =
3944
3944
  "testingModuleCancelTestRunResponse", B))(xl || {});
3945
3945
  var {
3946
- CHANNEL_WS_DISCONNECT: uk,
3947
- CHANNEL_CREATED: ck,
3948
- CONFIG_ERROR: pk,
3949
- CREATE_NEW_STORYFILE_REQUEST: dk,
3950
- CREATE_NEW_STORYFILE_RESPONSE: fk,
3951
- CURRENT_STORY_WAS_SET: mk,
3952
- DOCS_PREPARED: hk,
3953
- DOCS_RENDERED: gk,
3954
- FILE_COMPONENT_SEARCH_REQUEST: yk,
3955
- FILE_COMPONENT_SEARCH_RESPONSE: bk,
3956
- FORCE_RE_RENDER: vk,
3957
- FORCE_REMOUNT: xk,
3958
- GLOBALS_UPDATED: Sk,
3959
- NAVIGATE_URL: Ik,
3960
- PLAY_FUNCTION_THREW_EXCEPTION: Ek,
3961
- UNHANDLED_ERRORS_WHILE_PLAYING: _k,
3962
- PRELOAD_ENTRIES: wk,
3963
- PREVIEW_BUILDER_PROGRESS: Tk,
3964
- PREVIEW_KEYDOWN: Ck,
3965
- REGISTER_SUBSCRIPTION: kk,
3966
- RESET_STORY_ARGS: Ok,
3967
- SELECT_STORY: Pk,
3968
- SET_CONFIG: Ak,
3969
- SET_CURRENT_STORY: Dk,
3970
- SET_FILTER: Mk,
3971
- SET_GLOBALS: Lk,
3972
- SET_INDEX: Nk,
3973
- SET_STORIES: Rk,
3974
- SHARED_STATE_CHANGED: Fk,
3975
- SHARED_STATE_SET: Hk,
3976
- STORIES_COLLAPSE_ALL: Bk,
3977
- STORIES_EXPAND_ALL: zk,
3978
- STORY_ARGS_UPDATED: Wk,
3979
- STORY_CHANGED: jk,
3980
- STORY_ERRORED: Vk,
3981
- STORY_INDEX_INVALIDATED: Kk,
3982
- STORY_MISSING: $k,
3946
+ CHANNEL_WS_DISCONNECT: ck,
3947
+ CHANNEL_CREATED: pk,
3948
+ CONFIG_ERROR: dk,
3949
+ CREATE_NEW_STORYFILE_REQUEST: fk,
3950
+ CREATE_NEW_STORYFILE_RESPONSE: mk,
3951
+ CURRENT_STORY_WAS_SET: hk,
3952
+ DOCS_PREPARED: gk,
3953
+ DOCS_RENDERED: yk,
3954
+ FILE_COMPONENT_SEARCH_REQUEST: bk,
3955
+ FILE_COMPONENT_SEARCH_RESPONSE: vk,
3956
+ FORCE_RE_RENDER: xk,
3957
+ FORCE_REMOUNT: Sk,
3958
+ GLOBALS_UPDATED: Ik,
3959
+ NAVIGATE_URL: Ek,
3960
+ PLAY_FUNCTION_THREW_EXCEPTION: _k,
3961
+ UNHANDLED_ERRORS_WHILE_PLAYING: wk,
3962
+ PRELOAD_ENTRIES: Tk,
3963
+ PREVIEW_BUILDER_PROGRESS: Ck,
3964
+ PREVIEW_KEYDOWN: kk,
3965
+ REGISTER_SUBSCRIPTION: Ok,
3966
+ RESET_STORY_ARGS: Pk,
3967
+ SELECT_STORY: Ak,
3968
+ SET_CONFIG: Dk,
3969
+ SET_CURRENT_STORY: Mk,
3970
+ SET_FILTER: Lk,
3971
+ SET_GLOBALS: Nk,
3972
+ SET_INDEX: Rk,
3973
+ SET_STORIES: Fk,
3974
+ SHARED_STATE_CHANGED: Hk,
3975
+ SHARED_STATE_SET: Bk,
3976
+ STORIES_COLLAPSE_ALL: zk,
3977
+ STORIES_EXPAND_ALL: Wk,
3978
+ STORY_ARGS_UPDATED: jk,
3979
+ STORY_CHANGED: Vk,
3980
+ STORY_ERRORED: Kk,
3981
+ STORY_INDEX_INVALIDATED: $k,
3982
+ STORY_MISSING: Uk,
3983
3983
  STORY_PREPARED: Sl,
3984
- STORY_RENDER_PHASE_CHANGED: Uk,
3985
- STORY_RENDERED: Gk,
3986
- STORY_FINISHED: Yk,
3987
- STORY_SPECIFIED: qk,
3988
- STORY_THREW_EXCEPTION: Qk,
3989
- STORY_UNCHANGED: Xk,
3990
- UPDATE_GLOBALS: Zk,
3991
- UPDATE_QUERY_PARAMS: Jk,
3992
- UPDATE_STORY_ARGS: eO,
3993
- REQUEST_WHATS_NEW_DATA: tO,
3994
- RESULT_WHATS_NEW_DATA: oO,
3995
- SET_WHATS_NEW_CACHE: rO,
3996
- TOGGLE_WHATS_NEW_NOTIFICATIONS: nO,
3997
- TELEMETRY_ERROR: iO,
3998
- SAVE_STORY_REQUEST: sO,
3999
- SAVE_STORY_RESPONSE: aO,
4000
- ARGTYPES_INFO_REQUEST: lO,
4001
- ARGTYPES_INFO_RESPONSE: uO,
4002
- TESTING_MODULE_CRASH_REPORT: cO,
4003
- TESTING_MODULE_PROGRESS_REPORT: pO,
4004
- TESTING_MODULE_RUN_REQUEST: dO,
4005
- TESTING_MODULE_RUN_ALL_REQUEST: fO,
4006
- TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: mO,
4007
- TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE: hO
3984
+ STORY_RENDER_PHASE_CHANGED: Gk,
3985
+ STORY_RENDERED: Yk,
3986
+ STORY_FINISHED: qk,
3987
+ STORY_SPECIFIED: Qk,
3988
+ STORY_THREW_EXCEPTION: Xk,
3989
+ STORY_UNCHANGED: Zk,
3990
+ UPDATE_GLOBALS: Jk,
3991
+ UPDATE_QUERY_PARAMS: eO,
3992
+ UPDATE_STORY_ARGS: tO,
3993
+ REQUEST_WHATS_NEW_DATA: oO,
3994
+ RESULT_WHATS_NEW_DATA: rO,
3995
+ SET_WHATS_NEW_CACHE: nO,
3996
+ TOGGLE_WHATS_NEW_NOTIFICATIONS: iO,
3997
+ TELEMETRY_ERROR: sO,
3998
+ SAVE_STORY_REQUEST: aO,
3999
+ SAVE_STORY_RESPONSE: lO,
4000
+ ARGTYPES_INFO_REQUEST: uO,
4001
+ ARGTYPES_INFO_RESPONSE: cO,
4002
+ TESTING_MODULE_CRASH_REPORT: pO,
4003
+ TESTING_MODULE_PROGRESS_REPORT: dO,
4004
+ TESTING_MODULE_RUN_REQUEST: fO,
4005
+ TESTING_MODULE_RUN_ALL_REQUEST: mO,
4006
+ TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: hO,
4007
+ TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE: gO
4008
4008
  } = xl;
4009
4009
 
4010
4010
  // src/manager/components/panel/Panel.tsx
@@ -4539,11 +4539,11 @@ var ou = x.main({
4539
4539
  height: "100%"
4540
4540
  },
4541
4541
  ({ show: e }) => ({ display: e ? "grid" : "none" })
4542
- ), cA = x(zo)({
4542
+ ), pA = x(zo)({
4543
4543
  color: "inherit",
4544
4544
  textDecoration: "inherit",
4545
4545
  display: "inline-block"
4546
- }), pA = x.span({
4546
+ }), dA = x.span({
4547
4547
  // Hides full screen icon at mobile breakpoint defined in app.js
4548
4548
  "@media (max-width: 599px)": {
4549
4549
  display: "none"
@@ -6159,7 +6159,7 @@ var Dt = /* @__PURE__ */ a((e, t = !1) => {
6159
6159
  (e) => e.replaceAll(/(\s|-|_)/gi, ""), "removeNoiseFromName"), Zu = /* @__PURE__ */ a((e, t) => Uu(e) === Uu(t), "isStoryHoistable");
6160
6160
 
6161
6161
  // global-externals:@storybook/core/client-logger
6162
- var pM = __STORYBOOK_CLIENT_LOGGER__, { deprecate: dM, logger: Ju, once: fM, pretty: mM } = __STORYBOOK_CLIENT_LOGGER__;
6162
+ var dM = __STORYBOOK_CLIENT_LOGGER__, { deprecate: fM, logger: Ju, once: mM, pretty: hM } = __STORYBOOK_CLIENT_LOGGER__;
6163
6163
 
6164
6164
  // src/manager/components/sidebar/Loader.tsx
6165
6165
  var ec = [0, 0, 1, 1, 2, 3, 3, 3, 1, 1, 1, 2, 2, 2, 3], eg = x.div(
@@ -8926,7 +8926,7 @@ function xy(e) {
8926
8926
  return o;
8927
8927
  }
8928
8928
  a(xy, "getItemIndexByCharacterKey");
8929
- var dR = Ft(Ft({}, Dp), { items: q.default.array.isRequired, isItemDisabled: q.default.func }), Sy = Ft(Ft({}, Eo), { isItemDisabled: /* @__PURE__ */ a(
8929
+ var fR = Ft(Ft({}, Dp), { items: q.default.array.isRequired, isItemDisabled: q.default.func }), Sy = Ft(Ft({}, Eo), { isItemDisabled: /* @__PURE__ */ a(
8930
8930
  function() {
8931
8931
  return !1;
8932
8932
  }, "isItemDisabled") }), Iy = Fe, Wr = 0, fi = 1, mi = 2, $r = 3, hi = 4, gi = 5, yi = 6, bi = 7, vi = 8, xi = 9, Si = 10, Ur = 11, Lp = 12,
@@ -9322,7 +9322,7 @@ function ky(e) {
9322
9322
  });
9323
9323
  }
9324
9324
  a(ky, "getInitialState$1");
9325
- var fR = G({}, Dp, {
9325
+ var mR = G({}, Dp, {
9326
9326
  items: q.default.array.isRequired,
9327
9327
  isItemDisabled: q.default.func,
9328
9328
  inputValue: q.default.string,
@@ -9725,7 +9725,7 @@ function Hy(e, t) {
9725
9725
  return e.selectedItems === t.selectedItems && e.activeIndex === t.activeIndex;
9726
9726
  }
9727
9727
  a(Hy, "isStateEqual");
9728
- var mR = {
9728
+ var hR = {
9729
9729
  stateReducer: zr.stateReducer,
9730
9730
  itemToKey: zr.itemToKey,
9731
9731
  environment: zr.environment,
@@ -1 +1 @@
1
- {"version":3,"file":"stories-Badge-stories.52b61cf3.iframe.bundle.js","mappings":";;AA0BA;;AAQA;;AAEA","sources":["webpack://@brightspot/ui/./src/stories/Badge.ts"],"sourcesContent":["import { html } from 'lit'\nimport type { ThemeColors } from '../tailwind-plugin-theme'\n\nexport interface BadgeProps {\n color?: ThemeColors\n affordance?: 'dot' | 'icon'\n size?: 'sm' | 'md' | 'lg'\n label: string\n}\n\nexport const Badge = ({\n color = 'gray',\n affordance,\n size = 'sm',\n label,\n}: BadgeProps) => {\n let dot = false\n let icon = false\n if (affordance === 'dot') {\n dot = true\n } else if (affordance === 'icon') {\n icon = true\n }\n\n return html`\n <div\n class=${[\n 'btu-badge',\n `btu-badge-${size}`,\n `btu-badge-${color}`,\n dot ? 'before:size-2 before:rounded-lg before:bg-[currentColor]' : '',\n icon ? 'before:btu-icon before:btu-icon-xs before:btu-icon-salad' : '',\n ].join(' ')}\n >\n ${label}\n </div>\n `\n}\n"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"stories-Badge-stories.52b61cf3.iframe.bundle.js","mappings":";;AA0BA;;AAQA;;ACNA","sources":["webpack://@brightspot/ui/./src/stories/Badge.ts","webpack://@brightspot/ui/./src/stories/Badge.stories.ts"],"sourcesContent":["import { html } from 'lit'\nimport type { ThemeColors } from '../tailwind-plugin-theme'\n\nexport interface BadgeProps {\n color?: ThemeColors\n affordance?: 'dot' | 'icon'\n size?: 'sm' | 'md' | 'lg'\n label: string\n}\n\nexport const Badge = ({\n color = 'gray',\n affordance,\n size = 'sm',\n label,\n}: BadgeProps) => {\n let dot = false\n let icon = false\n if (affordance === 'dot') {\n dot = true\n } else if (affordance === 'icon') {\n icon = true\n }\n\n return html`\n <div\n class=${[\n 'btu-badge',\n `btu-badge-${size}`,\n `btu-badge-${color}`,\n dot ? 'before:size-2 before:rounded-lg before:bg-[currentColor]' : '',\n icon ? 'before:btu-icon before:btu-icon-xs before:btu-icon-salad' : '',\n ].join(' ')}\n >\n ${label}\n </div>\n `\n}\n","import type { Meta, StoryObj } from '@storybook/web-components'\nimport type { BadgeProps } from './Badge'\nimport { Badge } from './Badge'\nimport { ThemeColors } from '../tailwind-plugin-theme'\n\nconst colorOptions: readonly ThemeColors[] = [\n 'black',\n 'white',\n 'primary',\n 'teal',\n 'gray',\n 'purple',\n 'rose',\n 'error',\n 'warning',\n 'success',\n] as const\n\nconst meta: Meta<BadgeProps> = {\n title: 'Components/Badge',\n component: 'btu-badge',\n tags: ['autodocs'],\n parameters: {\n docs: {\n subtitle: `btu-badge`,\n },\n controls: { expanded: true },\n },\n render: (args) => Badge(args),\n argTypes: {\n color: {\n control: { type: 'select' },\n options: colorOptions,\n },\n affordance: {\n control: { type: 'select' },\n options: ['dot', 'icon'],\n description: 'Display a design affordance next to the label',\n },\n size: {\n control: { type: 'select' },\n options: ['sm', 'md', 'lg'],\n },\n },\n args: {\n color: 'purple',\n affordance: 'dot',\n size: 'sm',\n label: 'Badge',\n },\n}\nexport default meta\n\ntype Story = StoryObj<BadgeProps>\nexport const Default: Story = {\n args: {},\n}\n"],"names":[],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"file":"stories-Button-stories.777d0529.iframe.bundle.js","mappings":";;;AAmCA;;AAUA;;AAEA","sources":["webpack://@brightspot/ui/./src/stories/Button.ts"],"sourcesContent":["import { html } from 'lit'\nimport type { ThemeColors } from '../tailwind-plugin-theme'\n\nexport interface ButtonProps {\n color?: ThemeColors\n /** Is the button depressed or not? */\n pressed?: boolean\n /** Should the button have a background? */\n fill?: boolean\n /** Should the button have a container? */\n contained?: boolean\n /** Should the button be outlined? */\n outlined?: boolean\n /** How large should the button be? */\n size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl'\n label: string\n}\n\nexport const Button = ({\n color = 'primary',\n pressed,\n fill,\n contained,\n outlined,\n size = 'sm',\n label,\n}: ButtonProps) => {\n const depressed = pressed ? 'btu-button-pressed' : ''\n const filled = fill ? 'btu-button-fill' : 'btu-button-fill-none'\n const container = contained ? '' : 'btu-button-container-none'\n const outline = outlined ? 'btu-button-outline' : ''\n\n return html`\n <button\n type=\"button\"\n class=${[\n 'btu-button',\n `btu-button-${color}`,\n `btu-button-${size}`,\n filled,\n container,\n outline,\n depressed,\n ].join(' ')}\n >\n ${label}\n </button>\n `\n}\n"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"stories-Button-stories.777d0529.iframe.bundle.js","mappings":";;;AAmCA;;AAUA;;ACjBA","sources":["webpack://@brightspot/ui/./src/stories/Button.ts","webpack://@brightspot/ui/./src/stories/Button.stories.ts"],"sourcesContent":["import { html } from 'lit'\nimport type { ThemeColors } from '../tailwind-plugin-theme'\n\nexport interface ButtonProps {\n color?: ThemeColors\n /** Is the button depressed or not? */\n pressed?: boolean\n /** Should the button have a background? */\n fill?: boolean\n /** Should the button have a container? */\n contained?: boolean\n /** Should the button be outlined? */\n outlined?: boolean\n /** How large should the button be? */\n size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl'\n label: string\n}\n\nexport const Button = ({\n color = 'primary',\n pressed,\n fill,\n contained,\n outlined,\n size = 'sm',\n label,\n}: ButtonProps) => {\n const depressed = pressed ? 'btu-button-pressed' : ''\n const filled = fill ? 'btu-button-fill' : 'btu-button-fill-none'\n const container = contained ? '' : 'btu-button-container-none'\n const outline = outlined ? 'btu-button-outline' : ''\n\n return html`\n <button\n type=\"button\"\n class=${[\n 'btu-button',\n `btu-button-${color}`,\n `btu-button-${size}`,\n filled,\n container,\n outline,\n depressed,\n ].join(' ')}\n >\n ${label}\n </button>\n `\n}\n","import type { Meta, StoryObj } from '@storybook/web-components'\nimport type { ButtonProps } from './Button'\nimport { Button } from './Button'\nimport { ThemeColors } from '../tailwind-plugin-theme'\n\nconst colorOptions: readonly ThemeColors[] = [\n 'black',\n 'white',\n 'primary',\n 'teal',\n 'gray',\n 'purple',\n 'rose',\n 'error',\n 'warning',\n 'success',\n] as const\n\nconst meta: Meta<ButtonProps> = {\n title: 'Components/Button',\n component: 'btu-button',\n tags: ['autodocs'],\n parameters: {\n docs: {\n subtitle: `btu-button`,\n },\n controls: { expanded: true },\n },\n render: (args) => Button(args),\n argTypes: {\n size: {\n control: { type: 'select' },\n options: ['sm', 'md', 'lg', 'xl', '2xl'],\n },\n color: {\n control: { type: 'select' },\n options: colorOptions,\n },\n pressed: {\n control: { type: 'boolean' },\n description: 'Is the button pressed?',\n },\n fill: {\n control: { type: 'boolean' },\n description: 'Is the button filled?',\n },\n contained: {\n control: { type: 'boolean' },\n description: 'Does the button have a container?',\n },\n outlined: {\n control: { type: 'boolean' },\n description: 'Is the button outlined?',\n },\n },\n args: {\n color: 'primary',\n label: 'Button',\n pressed: false,\n fill: true,\n contained: true,\n outlined: false,\n size: 'md',\n },\n}\n\nexport default meta\n\ntype Story = StoryObj<ButtonProps>\nexport const Default: Story = {\n args: {},\n}\n"],"names":[],"sourceRoot":""}
@@ -23,9 +23,9 @@
23
23
  </div>
24
24
  <div></div>
25
25
  <div class="grid h-10 grid-cols-11 gap-1.5 sm:gap-4">
26
- ${args.palette?.map((color=>lit.qy`<div class="${color} size-full"></div>`))}
26
+ ${args.palette?.map(color=>lit.qy`<div class="${color} size-full"></div>`)}
27
27
  </div>
28
28
  </div>
29
29
  </div>
30
30
  `)(args)},Primary={parameters:{docs:{description:{story:"Used for primary call to actions, visual UI elements, active and clicked states, and focused containers."}}},args:{palette:["bg-primary-25","bg-primary-50","bg-primary-100","bg-primary-200","bg-primary-300","bg-primary-400","bg-primary-500","bg-primary-600","bg-primary-700","bg-primary-800","bg-primary-900"]}},Success={parameters:{docs:{description:{story:"Success colors communicate a positive action, postive trend, or a successful confirmation. If you're using green as your primary color, it can be helpful to introduce a different hue for your success green."}}},args:{palette:["bg-success-25","bg-success-50","bg-success-100","bg-success-200","bg-success-300","bg-success-400","bg-success-500","bg-success-600","bg-success-700","bg-success-800","bg-success-900"]}},Warning={parameters:{docs:{description:{story:'Warning colors can communicate that an action is potentially destructive or "on-hold". These colors are commonly used in confirmations to grab the users\' attention.'}}},args:{palette:["bg-warning-25","bg-warning-50","bg-warning-100","bg-warning-200","bg-warning-300","bg-warning-400","bg-warning-500","bg-warning-600","bg-warning-700","bg-warning-800","bg-warning-900"]}},Error={parameters:{docs:{description:{story:'Error colors are used across error states and in "destructive" actions. They communicate a destructive/negative action, such as deleting or archiving an object.'}}},args:{palette:["bg-error-25","bg-error-50","bg-error-100","bg-error-200","bg-error-300","bg-error-400","bg-error-500","bg-error-600","bg-error-700","bg-error-800","bg-error-900"]}},Gray={parameters:{docs:{description:{story:"Gray is a neutral color and is the foundation of the color system. Almost everything in UI design — text, form fields, backgrounds, dividers — are usually gray."}}},args:{palette:["bg-gray-25","bg-gray-50","bg-gray-100","bg-gray-200","bg-gray-300","bg-gray-400","bg-gray-500","bg-gray-600","bg-gray-700","bg-gray-800","bg-gray-900"]}},__namedExportsOrder=["Primary","Success","Warning","Error","Gray"];Primary.parameters={...Primary.parameters,docs:{...Primary.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n description: {\n story: 'Used for primary call to actions, visual UI elements, active and clicked states, and focused containers.'\n }\n }\n },\n args: {\n palette: ['bg-primary-25', 'bg-primary-50', 'bg-primary-100', 'bg-primary-200', 'bg-primary-300', 'bg-primary-400', 'bg-primary-500', 'bg-primary-600', 'bg-primary-700', 'bg-primary-800', 'bg-primary-900']\n }\n}",...Primary.parameters?.docs?.source}}},Success.parameters={...Success.parameters,docs:{...Success.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n description: {\n story: \"Success colors communicate a positive action, postive trend, or a successful confirmation. If you're using green as your primary color, it can be helpful to introduce a different hue for your success green.\"\n }\n }\n },\n args: {\n palette: ['bg-success-25', 'bg-success-50', 'bg-success-100', 'bg-success-200', 'bg-success-300', 'bg-success-400', 'bg-success-500', 'bg-success-600', 'bg-success-700', 'bg-success-800', 'bg-success-900']\n }\n}",...Success.parameters?.docs?.source}}},Warning.parameters={...Warning.parameters,docs:{...Warning.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n description: {\n story: 'Warning colors can communicate that an action is potentially destructive or \"on-hold\". These colors are commonly used in confirmations to grab the users\\' attention.'\n }\n }\n },\n args: {\n palette: ['bg-warning-25', 'bg-warning-50', 'bg-warning-100', 'bg-warning-200', 'bg-warning-300', 'bg-warning-400', 'bg-warning-500', 'bg-warning-600', 'bg-warning-700', 'bg-warning-800', 'bg-warning-900']\n }\n}",...Warning.parameters?.docs?.source}}},Error.parameters={...Error.parameters,docs:{...Error.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n description: {\n story: 'Error colors are used across error states and in \"destructive\" actions. They communicate a destructive/negative action, such as deleting or archiving an object.'\n }\n }\n },\n args: {\n palette: ['bg-error-25', 'bg-error-50', 'bg-error-100', 'bg-error-200', 'bg-error-300', 'bg-error-400', 'bg-error-500', 'bg-error-600', 'bg-error-700', 'bg-error-800', 'bg-error-900']\n }\n}",...Error.parameters?.docs?.source}}},Gray.parameters={...Gray.parameters,docs:{...Gray.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n description: {\n story: 'Gray is a neutral color and is the foundation of the color system. Almost everything in UI design — text, form fields, backgrounds, dividers — are usually gray.'\n }\n }\n },\n args: {\n palette: ['bg-gray-25', 'bg-gray-50', 'bg-gray-100', 'bg-gray-200', 'bg-gray-300', 'bg-gray-400', 'bg-gray-500', 'bg-gray-600', 'bg-gray-700', 'bg-gray-800', 'bg-gray-900']\n }\n}",...Gray.parameters?.docs?.source}}}}}]);
31
- //# sourceMappingURL=stories-Colors-stories.324d20d0.iframe.bundle.js.map
31
+ //# sourceMappingURL=stories-Colors-stories.927fecc8.iframe.bundle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stories-Colors-stories.324d20d0.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA4BA;;;;ACdA","sources":["webpack://@brightspot/ui/./src/stories/Colors.ts","webpack://@brightspot/ui/./src/stories/Colors.stories.ts"],"sourcesContent":["import { html } from 'lit'\n\nexport const Colors = (args: ColorProps) => {\n return html`\n <div class=\"my-10\">\n <div\n class=\"not-prose grid grid-cols-[auto_minmax(0,_1fr)] items-center gap-4\"\n >\n <div class=\"z-9 sticky top-28 bg-white lg:top-14 dark:bg-gray-950\">\n &nbsp;\n </div>\n <div\n class=\"z-9 top-28 col-start-2 grid grid-cols-11 justify-items-center gap-1.5 bg-white font-medium text-gray-950 *:rotate-180 *:[writing-mode:vertical-lr] max-sm:py-1 sm:gap-4 sm:*:rotate-0 sm:*:[writing-mode:horizontal-tb] lg:top-14 dark:bg-gray-950 dark:text-white\"\n >\n <div>25</div>\n <div>50</div>\n <div>100</div>\n <div>200</div>\n <div>300</div>\n <div>400</div>\n <div>500</div>\n <div>600</div>\n <div>700</div>\n <div>800</div>\n <div>900</div>\n </div>\n <div></div>\n <div class=\"grid h-10 grid-cols-11 gap-1.5 sm:gap-4\">\n ${args.palette?.map(\n (color) => html`<div class=\"${color} size-full\"></div>`,\n )}\n </div>\n </div>\n </div>\n `\n}\n\nexport interface ColorProps {\n palette?: Array<\n | 'bg-primary-25'\n | 'bg-primary-50'\n | 'bg-primary-100'\n | 'bg-primary-200'\n | 'bg-primary-300'\n | 'bg-primary-400'\n | 'bg-primary-500'\n | 'bg-primary-600'\n | 'bg-primary-700'\n | 'bg-primary-800'\n | 'bg-primary-900'\n | 'bg-success-25'\n | 'bg-success-50'\n | 'bg-success-100'\n | 'bg-success-200'\n | 'bg-success-300'\n | 'bg-success-400'\n | 'bg-success-500'\n | 'bg-success-600'\n | 'bg-success-700'\n | 'bg-success-800'\n | 'bg-success-900'\n | 'bg-warning-25'\n | 'bg-warning-50'\n | 'bg-warning-100'\n | 'bg-warning-200'\n | 'bg-warning-300'\n | 'bg-warning-400'\n | 'bg-warning-500'\n | 'bg-warning-600'\n | 'bg-warning-700'\n | 'bg-warning-800'\n | 'bg-warning-900'\n | 'bg-error-25'\n | 'bg-error-50'\n | 'bg-error-100'\n | 'bg-error-200'\n | 'bg-error-300'\n | 'bg-error-400'\n | 'bg-error-500'\n | 'bg-error-600'\n | 'bg-error-700'\n | 'bg-error-800'\n | 'bg-error-900'\n | 'bg-gray-25'\n | 'bg-gray-50'\n | 'bg-gray-100'\n | 'bg-gray-200'\n | 'bg-gray-300'\n | 'bg-gray-400'\n | 'bg-gray-500'\n | 'bg-gray-600'\n | 'bg-gray-700'\n | 'bg-gray-800'\n | 'bg-gray-900'\n >\n}\n","import type { Meta, StoryObj } from '@storybook/web-components'\nimport { Colors } from './Colors'\nimport type { ColorProps } from './Colors'\n\nconst meta: Meta<ColorProps> = {\n title: 'Design System/Colors',\n component: 'btu-theme',\n tags: ['autodocs'],\n parameters: {\n controls: { exclude: ['palette'] },\n docs: {\n subtitle: `We've replaced the default Tailwind colors with our own palette to match the design vocabulary. Specifically replacing 'blue' with 'primary', 'green' with 'success', 'yellow' with 'warning', and 'red' with 'error'. For example, instead of 'bg-blue-400', use 'bg-primary-400'.`,\n },\n },\n render: (args) => Colors(args),\n}\n\nexport default meta\n\ntype Story = StoryObj<ColorProps>\n\nexport const Primary: Story = {\n parameters: {\n docs: {\n description: {\n story:\n 'Used for primary call to actions, visual UI elements, active and clicked states, and focused containers.',\n },\n },\n },\n args: {\n palette: [\n 'bg-primary-25',\n 'bg-primary-50',\n 'bg-primary-100',\n 'bg-primary-200',\n 'bg-primary-300',\n 'bg-primary-400',\n 'bg-primary-500',\n 'bg-primary-600',\n 'bg-primary-700',\n 'bg-primary-800',\n 'bg-primary-900',\n ],\n },\n}\nexport const Success: Story = {\n parameters: {\n docs: {\n description: {\n story:\n \"Success colors communicate a positive action, postive trend, or a successful confirmation. If you're using green as your primary color, it can be helpful to introduce a different hue for your success green.\",\n },\n },\n },\n args: {\n palette: [\n 'bg-success-25',\n 'bg-success-50',\n 'bg-success-100',\n 'bg-success-200',\n 'bg-success-300',\n 'bg-success-400',\n 'bg-success-500',\n 'bg-success-600',\n 'bg-success-700',\n 'bg-success-800',\n 'bg-success-900',\n ],\n },\n}\nexport const Warning: Story = {\n parameters: {\n docs: {\n description: {\n story:\n 'Warning colors can communicate that an action is potentially destructive or \"on-hold\". These colors are commonly used in confirmations to grab the users\\' attention.',\n },\n },\n },\n args: {\n palette: [\n 'bg-warning-25',\n 'bg-warning-50',\n 'bg-warning-100',\n 'bg-warning-200',\n 'bg-warning-300',\n 'bg-warning-400',\n 'bg-warning-500',\n 'bg-warning-600',\n 'bg-warning-700',\n 'bg-warning-800',\n 'bg-warning-900',\n ],\n },\n}\nexport const Error: Story = {\n parameters: {\n docs: {\n description: {\n story:\n 'Error colors are used across error states and in \"destructive\" actions. They communicate a destructive/negative action, such as deleting or archiving an object.',\n },\n },\n },\n args: {\n palette: [\n 'bg-error-25',\n 'bg-error-50',\n 'bg-error-100',\n 'bg-error-200',\n 'bg-error-300',\n 'bg-error-400',\n 'bg-error-500',\n 'bg-error-600',\n 'bg-error-700',\n 'bg-error-800',\n 'bg-error-900',\n ],\n },\n}\nexport const Gray: Story = {\n parameters: {\n docs: {\n description: {\n story:\n 'Gray is a neutral color and is the foundation of the color system. Almost everything in UI design — text, form fields, backgrounds, dividers — are usually gray.',\n },\n },\n },\n args: {\n palette: [\n 'bg-gray-25',\n 'bg-gray-50',\n 'bg-gray-100',\n 'bg-gray-200',\n 'bg-gray-300',\n 'bg-gray-400',\n 'bg-gray-500',\n 'bg-gray-600',\n 'bg-gray-700',\n 'bg-gray-800',\n 'bg-gray-900',\n ],\n },\n}\n"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"stories-Colors-stories.927fecc8.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA4BA;;;;ACdA","sources":["webpack://@brightspot/ui/./src/stories/Colors.ts","webpack://@brightspot/ui/./src/stories/Colors.stories.ts"],"sourcesContent":["import { html } from 'lit'\n\nexport const Colors = (args: ColorProps) => {\n return html`\n <div class=\"my-10\">\n <div\n class=\"not-prose grid grid-cols-[auto_minmax(0,_1fr)] items-center gap-4\"\n >\n <div class=\"z-9 sticky top-28 bg-white lg:top-14 dark:bg-gray-950\">\n &nbsp;\n </div>\n <div\n class=\"z-9 top-28 col-start-2 grid grid-cols-11 justify-items-center gap-1.5 bg-white font-medium text-gray-950 *:rotate-180 *:[writing-mode:vertical-lr] max-sm:py-1 sm:gap-4 sm:*:rotate-0 sm:*:[writing-mode:horizontal-tb] lg:top-14 dark:bg-gray-950 dark:text-white\"\n >\n <div>25</div>\n <div>50</div>\n <div>100</div>\n <div>200</div>\n <div>300</div>\n <div>400</div>\n <div>500</div>\n <div>600</div>\n <div>700</div>\n <div>800</div>\n <div>900</div>\n </div>\n <div></div>\n <div class=\"grid h-10 grid-cols-11 gap-1.5 sm:gap-4\">\n ${args.palette?.map(\n (color) => html`<div class=\"${color} size-full\"></div>`,\n )}\n </div>\n </div>\n </div>\n `\n}\n\nexport interface ColorProps {\n palette?: Array<\n | 'bg-primary-25'\n | 'bg-primary-50'\n | 'bg-primary-100'\n | 'bg-primary-200'\n | 'bg-primary-300'\n | 'bg-primary-400'\n | 'bg-primary-500'\n | 'bg-primary-600'\n | 'bg-primary-700'\n | 'bg-primary-800'\n | 'bg-primary-900'\n | 'bg-success-25'\n | 'bg-success-50'\n | 'bg-success-100'\n | 'bg-success-200'\n | 'bg-success-300'\n | 'bg-success-400'\n | 'bg-success-500'\n | 'bg-success-600'\n | 'bg-success-700'\n | 'bg-success-800'\n | 'bg-success-900'\n | 'bg-warning-25'\n | 'bg-warning-50'\n | 'bg-warning-100'\n | 'bg-warning-200'\n | 'bg-warning-300'\n | 'bg-warning-400'\n | 'bg-warning-500'\n | 'bg-warning-600'\n | 'bg-warning-700'\n | 'bg-warning-800'\n | 'bg-warning-900'\n | 'bg-error-25'\n | 'bg-error-50'\n | 'bg-error-100'\n | 'bg-error-200'\n | 'bg-error-300'\n | 'bg-error-400'\n | 'bg-error-500'\n | 'bg-error-600'\n | 'bg-error-700'\n | 'bg-error-800'\n | 'bg-error-900'\n | 'bg-gray-25'\n | 'bg-gray-50'\n | 'bg-gray-100'\n | 'bg-gray-200'\n | 'bg-gray-300'\n | 'bg-gray-400'\n | 'bg-gray-500'\n | 'bg-gray-600'\n | 'bg-gray-700'\n | 'bg-gray-800'\n | 'bg-gray-900'\n >\n}\n","import type { Meta, StoryObj } from '@storybook/web-components'\nimport { Colors } from './Colors'\nimport type { ColorProps } from './Colors'\n\nconst meta: Meta<ColorProps> = {\n title: 'Design System/Colors',\n component: 'btu-theme',\n tags: ['autodocs'],\n parameters: {\n controls: { exclude: ['palette'] },\n docs: {\n subtitle: `We've replaced the default Tailwind colors with our own palette to match the design vocabulary. Specifically replacing 'blue' with 'primary', 'green' with 'success', 'yellow' with 'warning', and 'red' with 'error'. For example, instead of 'bg-blue-400', use 'bg-primary-400'.`,\n },\n },\n render: (args) => Colors(args),\n}\n\nexport default meta\n\ntype Story = StoryObj<ColorProps>\n\nexport const Primary: Story = {\n parameters: {\n docs: {\n description: {\n story:\n 'Used for primary call to actions, visual UI elements, active and clicked states, and focused containers.',\n },\n },\n },\n args: {\n palette: [\n 'bg-primary-25',\n 'bg-primary-50',\n 'bg-primary-100',\n 'bg-primary-200',\n 'bg-primary-300',\n 'bg-primary-400',\n 'bg-primary-500',\n 'bg-primary-600',\n 'bg-primary-700',\n 'bg-primary-800',\n 'bg-primary-900',\n ],\n },\n}\nexport const Success: Story = {\n parameters: {\n docs: {\n description: {\n story:\n \"Success colors communicate a positive action, postive trend, or a successful confirmation. If you're using green as your primary color, it can be helpful to introduce a different hue for your success green.\",\n },\n },\n },\n args: {\n palette: [\n 'bg-success-25',\n 'bg-success-50',\n 'bg-success-100',\n 'bg-success-200',\n 'bg-success-300',\n 'bg-success-400',\n 'bg-success-500',\n 'bg-success-600',\n 'bg-success-700',\n 'bg-success-800',\n 'bg-success-900',\n ],\n },\n}\nexport const Warning: Story = {\n parameters: {\n docs: {\n description: {\n story:\n 'Warning colors can communicate that an action is potentially destructive or \"on-hold\". These colors are commonly used in confirmations to grab the users\\' attention.',\n },\n },\n },\n args: {\n palette: [\n 'bg-warning-25',\n 'bg-warning-50',\n 'bg-warning-100',\n 'bg-warning-200',\n 'bg-warning-300',\n 'bg-warning-400',\n 'bg-warning-500',\n 'bg-warning-600',\n 'bg-warning-700',\n 'bg-warning-800',\n 'bg-warning-900',\n ],\n },\n}\nexport const Error: Story = {\n parameters: {\n docs: {\n description: {\n story:\n 'Error colors are used across error states and in \"destructive\" actions. They communicate a destructive/negative action, such as deleting or archiving an object.',\n },\n },\n },\n args: {\n palette: [\n 'bg-error-25',\n 'bg-error-50',\n 'bg-error-100',\n 'bg-error-200',\n 'bg-error-300',\n 'bg-error-400',\n 'bg-error-500',\n 'bg-error-600',\n 'bg-error-700',\n 'bg-error-800',\n 'bg-error-900',\n ],\n },\n}\nexport const Gray: Story = {\n parameters: {\n docs: {\n description: {\n story:\n 'Gray is a neutral color and is the foundation of the color system. Almost everything in UI design — text, form fields, backgrounds, dividers — are usually gray.',\n },\n },\n },\n args: {\n palette: [\n 'bg-gray-25',\n 'bg-gray-50',\n 'bg-gray-100',\n 'bg-gray-200',\n 'bg-gray-300',\n 'bg-gray-400',\n 'bg-gray-500',\n 'bg-gray-600',\n 'bg-gray-700',\n 'bg-gray-800',\n 'bg-gray-900',\n ],\n },\n}\n"],"names":[],"sourceRoot":""}
@@ -0,0 +1,8 @@
1
+ "use strict";(self.webpackChunk_brightspot_ui=self.webpackChunk_brightspot_ui||[]).push([[840],{"./src/stories/Icon.stories.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>Icon_stories});var lit=__webpack_require__("./node_modules/lit/index.js"),info=__webpack_require__("./node_modules/lucide-static/font/info.json"),lucide_static=__webpack_require__("./node_modules/lucide-static/dist/esm/lucide-static.js");const symbols=/[\r\n%#()<>?[\\\]^`{|}]/g;function getIcon(iconName){try{const kebabName=iconName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),pascalName=function kebabToPascal(str){return str.split("-").map(word=>word.charAt(0).toUpperCase()+word.slice(1)).join("")}(kebabName);if(lucide_static[pascalName]){const encodedSvg=function encodeSVG(data){return(data=(data=(data=data.replace(/"/g,"'")).replace(/>\s{1,}</g,"><")).replace(/\s{2,}/g," ")).replace(symbols,encodeURIComponent)}(function addNameSpaceXML(data){return data.indexOf("http://www.w3.org/2000/svg")<0&&(data=data.replace(/<svg/g,"<svg xmlns='http://www.w3.org/2000/svg'")),data}(lucide_static[pascalName]));return{compat:info[kebabName]?.encodedCode||"",iconSvg:encodedSvg}}}catch(e){console.error("Error loading Lucide icon ${iconName}:",e)}}const Icon_stories={title:"Components/Icon",component:"btu-icon",tags:["autodocs"],parameters:{docs:{subtitle:"We use Lucide Icons: https://lucide.dev/icons/. All strokes in these icons have been converted to single vectors so color overrides are respected within variants. We recommend attaching icon classes to before/after pseudo-elements, like so: `before:btu-icon before:btu-icon-smile`."},controls:{expanded:!0}},render:args=>(({name,size="md"})=>{let data,kebabName,icon="";return name?(data=getIcon(name),kebabName=name.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()):icon="before:btu-icon-smile",lit.qy`
2
+ <div
3
+ style=${`--compat-icon:'${info[kebabName]?.encodedCode||""}';\n --Icon-svg: url("data:image/svg+xml,${data?.iconSvg||""}");\n --compat-icon-via-mask: url("data:image/svg+xml,${data?.iconSvg}");`}
4
+ data-icon=${name?`${name}`:""}
5
+ class=${["before:btu-icon",`before:btu-icon-${size}`,icon].join(" ")}
6
+ ></div>
7
+ `})(args),argTypes:{size:{control:{type:"select"},description:"Icon size. Works with arbitrary values like: `before:btu-icon-[10.5rem]`",options:["xs","sm","md","lg","xl"]},name:{control:{type:"text"},description:"Name of the icon to display. Try names like `waves`, `salad`, or `star`."}},args:{size:"xl"}},Default={args:{}},__namedExportsOrder=["Default"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: {}\n}",...Default.parameters?.docs?.source}}}}}]);
8
+ //# sourceMappingURL=stories-Icon-stories.f2eb249f.iframe.bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stories-Icon-stories.f2eb249f.iframe.bundle.js","mappings":";;AA6BA;AAGA;AACA;;ACpBA","sources":["webpack://@brightspot/ui/./src/stories/Icon.ts","webpack://@brightspot/ui/./src/stories/Icon.stories.ts"],"sourcesContent":["import { html } from 'lit'\nimport icons from 'lucide-static/font/info.json'\nimport { getIcon } from '../LucideDynamicLoader'\n\nexport interface IconProps {\n name?: string\n /** How large should the icon be?\n before:btu-icon-xs\n before:btu-icon-sm\n before:btu-icon-md\n before:btu-icon-lg\n before:btu-icon-xl\n */\n size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'\n}\n\nexport const Icon = ({ name, size = 'md' }: IconProps) => {\n let data\n let kebabName\n let icon = ''\n if (!name) {\n icon = 'before:btu-icon-smile'\n } else {\n data = getIcon(name)\n kebabName = name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase()\n }\n\n return html`\n <div\n style=${`--compat-icon:'${icons[kebabName as keyof typeof icons]?.encodedCode || ''}';\n --Icon-svg: url(\"data:image/svg+xml,${data?.iconSvg || ''}\");\n --compat-icon-via-mask: url(\"data:image/svg+xml,${data?.iconSvg}\");`}\n data-icon=${name ? `${name}` : ''}\n class=${['before:btu-icon', `before:btu-icon-${size}`, icon].join(' ')}\n ></div>\n `\n}\n","import type { Meta, StoryObj } from '@storybook/web-components'\nimport { Icon, IconProps } from './Icon'\n\nconst meta: Meta<IconProps> = {\n title: 'Components/Icon',\n component: 'btu-icon',\n tags: ['autodocs'],\n parameters: {\n docs: {\n subtitle: `We use Lucide Icons: https://lucide.dev/icons/. All strokes in these icons have been converted to single vectors so color overrides are respected within variants. We recommend attaching icon classes to before/after pseudo-elements, like so: \\`before:btu-icon before:btu-icon-smile\\`.`,\n },\n controls: { expanded: true },\n },\n render: (args) => Icon(args),\n argTypes: {\n size: {\n control: { type: 'select' },\n description:\n 'Icon size. Works with arbitrary values like: `before:btu-icon-[10.5rem]`',\n options: ['xs', 'sm', 'md', 'lg', 'xl'],\n },\n name: {\n control: { type: 'text' },\n description:\n 'Name of the icon to display. Try names like `waves`, `salad`, or `star`.',\n },\n },\n args: {\n size: 'xl',\n },\n}\n\nexport default meta\n\ntype Story = StoryObj<IconProps>\nexport const Default: Story = {\n args: {},\n}\n"],"names":[],"sourceRoot":""}
@@ -1,16 +1,16 @@
1
- "use strict";(self.webpackChunk_brightspot_ui=self.webpackChunk_brightspot_ui||[]).push([[264],{"./src/stories/ScrollShadow.stories.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>ScrollShadow_stories});var lit=__webpack_require__("./node_modules/lit/index.js");const ScrollShadow_stories={title:"Components/ScrollShadow",component:"btu-scrollshadow",tags:["autodocs"],parameters:{docs:{subtitle:"This plugin adds shadows to the edges of a scrollable container once the content overflows. The shadows use our gray color palette. You can choose which shade of gray you want. The scroll container must not already use before & after pseudo elements. But, if you need to use before/after modifiers on the container, make sure you also manually set the content property to the `--whitespace` variable. This is a workaround for TWCSS automatically adding a content property to the before/after pseudo-elements, which overrides the `--whitespace` variable by default. Note: this currently only supports x-axis scrolling."},controls:{expanded:!0}},render:args=>(({theme="btu-scrollshadow-25"})=>{const items=new Array(100).fill(0).map(((_,i)=>`Item ${i+1}`));return lit.qy`
1
+ "use strict";(self.webpackChunk_brightspot_ui=self.webpackChunk_brightspot_ui||[]).push([[264],{"./src/stories/ScrollShadow.stories.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>ScrollShadow_stories});var lit=__webpack_require__("./node_modules/lit/index.js");const ScrollShadow_stories={title:"Components/ScrollShadow",component:"btu-scrollshadow",tags:["autodocs"],parameters:{docs:{subtitle:"This plugin adds shadows to the edges of a scrollable container once the content overflows. The shadows use our gray color palette. You can choose which shade of gray you want. The scroll container must not already use before & after pseudo elements. But, if you need to use before/after modifiers on the container, make sure you also manually set the content property to the `--whitespace` variable. This is a workaround for TWCSS automatically adding a content property to the before/after pseudo-elements, which overrides the `--whitespace` variable by default. Note: this currently only supports x-axis scrolling."},controls:{expanded:!0}},render:args=>(({theme="btu-scrollshadow-25"})=>{const items=new Array(100).fill(0).map((_,i)=>`Item ${i+1}`);return lit.qy`
2
2
  <style>
3
3
  :root {
4
4
  --can-scroll: ;
5
5
  }
6
6
  </style>
7
7
  <div class=${["flex","gap-2","bg-gray-500",theme].join(" ")}>
8
- ${items.map(((i,idx)=>lit.qy`<div
8
+ ${items.map((i,idx)=>lit.qy`<div
9
9
  class="text-md flex aspect-square h-[100px] items-center justify-center"
10
10
  style="background:oklch(80% 50% ${Math.floor(710*Math.random())+10});"
11
11
  >
12
12
  ${i}
13
- </div>`))}
13
+ </div>`)}
14
14
  </div>
15
15
  `})(args),argTypes:{theme:{control:{type:"select"},description:"Choose a shade of gray for the scroll shadow. 25 is almost white, and 900 is almost black.",options:["btu-scrollshadow-25","btu-scrollshadow-50","btu-scrollshadow-100","btu-scrollshadow-200","btu-scrollshadow-300","btu-scrollshadow-400","btu-scrollshadow-500","btu-scrollshadow-600","btu-scrollshadow-700","btu-scrollshadow-800","btu-scrollshadow-900"]}},args:{}},Default={args:{}},__namedExportsOrder=["Default"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: {}\n}",...Default.parameters?.docs?.source}}}}}]);
16
- //# sourceMappingURL=stories-ScrollShadow-stories.252ec9e7.iframe.bundle.js.map
16
+ //# sourceMappingURL=stories-ScrollShadow-stories.ddf1e99b.iframe.bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stories-ScrollShadow-stories.ddf1e99b.iframe.bundle.js","mappings":";;;;;;AA4BA;AACA;;AAIA;;AAIA;;;ACtBA","sources":["webpack://@brightspot/ui/./src/stories/ScrollShadow.ts","webpack://@brightspot/ui/./src/stories/ScrollShadow.stories.ts"],"sourcesContent":["import { html } from 'lit'\n\nexport interface ScrollShadowProps {\n theme?:\n | 'btu-scrollshadow-25'\n | 'btu-scrollshadow-50'\n | 'btu-scrollshadow-100'\n | 'btu-scrollshadow-200'\n | 'btu-scrollshadow-300'\n | 'btu-scrollshadow-400'\n | 'btu-scrollshadow-500'\n | 'btu-scrollshadow-600'\n | 'btu-scrollshadow-700'\n | 'btu-scrollshadow-800'\n | 'btu-scrollshadow-900'\n}\n\nexport const ScrollShadow = ({\n theme = 'btu-scrollshadow-25',\n}: ScrollShadowProps) => {\n const items = new Array(100).fill(0).map((_, i) => `Item ${i + 1}`)\n\n return html`\n <style>\n :root {\n --can-scroll: ;\n }\n </style>\n <div class=${['flex', 'gap-2', 'bg-gray-500', theme].join(' ')}>\n ${items.map(\n (i, idx) =>\n html`<div\n class=\"text-md flex aspect-square h-[100px] items-center justify-center\"\n style=\"background:oklch(80% 50% ${Math.floor(\n Math.random() * (720 - 10),\n ) + 10});\"\n >\n ${i}\n </div>`,\n )}\n </div>\n `\n}\n","import type { Meta, StoryObj } from '@storybook/web-components'\nimport { ScrollShadow } from './ScrollShadow'\nimport type { ScrollShadowProps } from './ScrollShadow'\n\nconst meta: Meta<ScrollShadowProps> = {\n title: 'Components/ScrollShadow',\n component: 'btu-scrollshadow',\n tags: ['autodocs'],\n parameters: {\n docs: {\n subtitle:\n 'This plugin adds shadows to the edges of a scrollable container once the content overflows. The shadows use our gray color palette. You can choose which shade of gray you want. The scroll container must not already use before & after pseudo elements. But, if you need to use before/after modifiers on the container, make sure you also manually set the content property to the `--whitespace` variable. This is a workaround for TWCSS automatically adding a content property to the before/after pseudo-elements, which overrides the `--whitespace` variable by default. Note: this currently only supports x-axis scrolling.',\n },\n controls: { expanded: true },\n },\n render: (args) => ScrollShadow(args),\n argTypes: {\n theme: {\n control: { type: 'select' },\n description:\n 'Choose a shade of gray for the scroll shadow. 25 is almost white, and 900 is almost black.',\n options: [\n 'btu-scrollshadow-25',\n 'btu-scrollshadow-50',\n 'btu-scrollshadow-100',\n 'btu-scrollshadow-200',\n 'btu-scrollshadow-300',\n 'btu-scrollshadow-400',\n 'btu-scrollshadow-500',\n 'btu-scrollshadow-600',\n 'btu-scrollshadow-700',\n 'btu-scrollshadow-800',\n 'btu-scrollshadow-900',\n ],\n },\n },\n args: {},\n}\nexport default meta\n\ntype Story = StoryObj<ScrollShadowProps>\nexport const Default: Story = {\n args: {},\n}\n"],"names":[],"sourceRoot":""}