@@ -325,6 +325,174 @@ exports[`Button > should render icon when icon is provided 1`] = `
325325</div >
326326` ;
327327
328+ exports [` Button > should render loading spinner when icon is provided and loading is true 1` ] = `
329+ <div >
330+ <button
331+ aria-label = " button"
332+ class=" outline-0-2px solid-17005923944751620165-1 box-sizing-0-border-box--1 cursor-0-pointer--1 font-weight-0-700--1 outline-offset-0-2px--1 position-0-relative--1 transition-0-.25s--1 color-0-var(--text,#272727)-15425828959012638752-1 background-0-color-mix(in srgb,var(--primary,#8163E1) 20%,#FFF 80%)-15425828959012638752-1 border-0-1px solid var(--primary,#8163E1)-15425828959012638752-1 color-0-#D6D7DE-14172363753176421546-1 background-color-0-#F0F0F3-14172363753176421546-1 cursor-0-not-allowed-14172363753176421546-1 border-color-0-var(--border,#E4E4E4)-14172363753176421546-1 outline-color-0-var(--primaryFocus,#9385D3)-17005923944751620165-1 border-color-0-var(--primary,#8163E1)-8380715471663921674-1 background-0-color-mix(in srgb,var(--primary,#8163E1) 10%,#FFF 90%)-8380715471663921674-1 color-0-var(--text,#F6F6F6)-2922352740838246662-1 background-0-var(--primary,#8163E1)-2922352740838246662-1 color-0-#373737-878116160589243838-1 background-color-0-#47474A-878116160589243838-1 border-color-0-transparent-878116160589243838-1 border-color-0-var(--primary,#8163E1)-6232724021015440856-1 background-0-color-mix(in srgb,var(--primary,#674DC7) 10%,var(--inputBackground,#2E2E2E) 90%)-6232724021015440856-1 outline-color-0-var(--primaryFocus,#927CE4)-13318702800233181468-1 background-0-var(--inputBackground,#2E2E2E)-6667598448774358329-1 background-0-var(--inputBackground,#FFF)--1 border-0-1px solid var(--border,#E4E4E4)--1 border-radius-0-10px--1 color-0-var(--text,#272727)--1 font-size-0-14px--1 font-size-4-15px--1 letter-spacing-0--.02em--1 letter-spacing-4--.03em--1 padding-right-0-28px--1 padding-left-0-28px--1 padding-bottom-0-10px--1 padding-top-0-10px--1 "
333+ type = " button"
334+ >
335+ <div
336+ class = " max-width-0-100%--255 margin-right-0-auto--255 margin-left-0-auto--255 position-0-relative--255 width-0-fit-content--255"
337+ >
338+ <div
339+ class = " display-0-flex--0 justify-content-0-center--0 align-items-0-center--0 height-0-24px--255 width-0-24px--255 left-0-4px--255 position-0-absolute--255 color-0-inherit-9970740749223281870-255 top-0-50%--255 transform-0-translate(-100%,-50%)--255"
340+ role = " presentation"
341+ >
342+ <svg
343+ aria-label = " Whole loading spinner"
344+ class = " animation-duration-0-1s--255 animation-iteration-count-0-infinite--255 animation-name-0---255 animation-timing-function-0-linear--255"
345+ fill = " none"
346+ height = " 20"
347+ style = " --animation-name-0-: k-420169018174230850;"
348+ viewBox = " 0 0 20 20"
349+ width = " 20"
350+ xmlns = " http://www.w3.org/2000/svg"
351+ >
352+ <g
353+ clip-path = " url(#paint0_angular_1842_200_clip_path)"
354+ >
355+ <g
356+ transform = " matrix(0 0.007 -0.007 0 10 10)"
357+ >
358+ <foreignobject
359+ height = " 2857.14"
360+ width = " 2857.14"
361+ x = " -1428.57"
362+ y = " -1428.57"
363+ >
364+ <div
365+ style = " height: 100%; width: 100%; opacity: 1;"
366+ />
367+ </foreignobject >
368+ </g >
369+ </g >
370+ <path
371+ d = " M17 10H15.5C15.5 13.0376 13.0376 15.5 10 15.5V17V18.5C14.6944 18.5 18.5 14.6944 18.5 10H17ZM10 17V15.5C6.96243 15.5 4.5 13.0376 4.5 10H3H1.5C1.5 14.6944 5.30558 18.5 10 18.5V17ZM3 10H4.5C4.5 6.96243 6.96243 4.5 10 4.5V3V1.5C5.30558 1.5 1.5 5.30558 1.5 10H3ZM10 3V4.5C13.0376 4.5 15.5 6.96243 15.5 10H17H18.5C18.5 5.30558 14.6944 1.5 10 1.5V3Z"
372+ />
373+ <defs >
374+ <clippath
375+ id = " paint0_angular_1842_200_clip_path"
376+ >
377+ <path
378+ d = " M17 10H15.5C15.5 13.0376 13.0376 15.5 10 15.5V17V18.5C14.6944 18.5 18.5 14.6944 18.5 10H17ZM10 17V15.5C6.96243 15.5 4.5 13.0376 4.5 10H3H1.5C1.5 14.6944 5.30558 18.5 10 18.5V17ZM3 10H4.5C4.5 6.96243 6.96243 4.5 10 4.5V3V1.5C5.30558 1.5 1.5 5.30558 1.5 10H3ZM10 3V4.5C13.0376 4.5 15.5 6.96243 15.5 10H17H18.5C18.5 5.30558 14.6944 1.5 10 1.5V3Z"
379+ />
380+ </clippath >
381+ </defs >
382+ </svg >
383+ </div >
384+ <div
385+ class = " line-height-0-1.2--255 min-height-0-1.2em--255 transform-0-translateX(8px)--255"
386+ />
387+ </div >
388+ </button >
389+ </div >
390+ ` ;
391+
392+ exports [` Button > should render loading spinner when loading is true 1` ] = `
393+ <div >
394+ <button
395+ aria-label = " button"
396+ class=" outline-0-2px solid-17005923944751620165-1 box-sizing-0-border-box--1 cursor-0-pointer--1 font-weight-0-700--1 outline-offset-0-2px--1 position-0-relative--1 transition-0-.25s--1 color-0-var(--text,#272727)-15425828959012638752-1 background-0-color-mix(in srgb,var(--primary,#8163E1) 20%,#FFF 80%)-15425828959012638752-1 border-0-1px solid var(--primary,#8163E1)-15425828959012638752-1 color-0-#D6D7DE-14172363753176421546-1 background-color-0-#F0F0F3-14172363753176421546-1 cursor-0-not-allowed-14172363753176421546-1 border-color-0-var(--border,#E4E4E4)-14172363753176421546-1 outline-color-0-var(--primaryFocus,#9385D3)-17005923944751620165-1 border-color-0-var(--primary,#8163E1)-8380715471663921674-1 background-0-color-mix(in srgb,var(--primary,#8163E1) 10%,#FFF 90%)-8380715471663921674-1 color-0-var(--text,#F6F6F6)-2922352740838246662-1 background-0-var(--primary,#8163E1)-2922352740838246662-1 color-0-#373737-878116160589243838-1 background-color-0-#47474A-878116160589243838-1 border-color-0-transparent-878116160589243838-1 border-color-0-var(--primary,#8163E1)-6232724021015440856-1 background-0-color-mix(in srgb,var(--primary,#674DC7) 10%,var(--inputBackground,#2E2E2E) 90%)-6232724021015440856-1 outline-color-0-var(--primaryFocus,#927CE4)-13318702800233181468-1 background-0-var(--inputBackground,#2E2E2E)-6667598448774358329-1 background-0-var(--inputBackground,#FFF)--1 border-0-1px solid var(--border,#E4E4E4)--1 border-radius-0-10px--1 color-0-var(--text,#272727)--1 font-size-0-14px--1 font-size-4-15px--1 letter-spacing-0--.02em--1 letter-spacing-4--.03em--1 padding-right-0-28px--1 padding-left-0-28px--1 padding-bottom-0-10px--1 padding-top-0-10px--1 "
397+ type = " button"
398+ >
399+ <div
400+ class = " max-width-0-100%--255 margin-right-0-auto--255 margin-left-0-auto--255 position-0-relative--255 width-0-fit-content--255"
401+ >
402+ <div
403+ class = " display-0-flex--0 justify-content-0-center--0 align-items-0-center--0 height-0-24px--255 width-0-24px--255 left-0-4px--255 position-0-absolute--255 color-0-inherit-9970740749223281870-255 top-0-50%--255 transform-0-translate(-100%,-50%)--255"
404+ role = " presentation"
405+ >
406+ <svg
407+ aria-label = " Whole loading spinner"
408+ class = " animation-duration-0-1s--255 animation-iteration-count-0-infinite--255 animation-name-0---255 animation-timing-function-0-linear--255"
409+ fill = " none"
410+ height = " 20"
411+ style = " --animation-name-0-: k-420169018174230850;"
412+ viewBox = " 0 0 20 20"
413+ width = " 20"
414+ xmlns = " http://www.w3.org/2000/svg"
415+ >
416+ <g
417+ clip-path = " url(#paint0_angular_1842_200_clip_path)"
418+ >
419+ <g
420+ transform = " matrix(0 0.007 -0.007 0 10 10)"
421+ >
422+ <foreignobject
423+ height = " 2857.14"
424+ width = " 2857.14"
425+ x = " -1428.57"
426+ y = " -1428.57"
427+ >
428+ <div
429+ style = " height: 100%; width: 100%; opacity: 1;"
430+ />
431+ </foreignobject >
432+ </g >
433+ </g >
434+ <path
435+ d = " M17 10H15.5C15.5 13.0376 13.0376 15.5 10 15.5V17V18.5C14.6944 18.5 18.5 14.6944 18.5 10H17ZM10 17V15.5C6.96243 15.5 4.5 13.0376 4.5 10H3H1.5C1.5 14.6944 5.30558 18.5 10 18.5V17ZM3 10H4.5C4.5 6.96243 6.96243 4.5 10 4.5V3V1.5C5.30558 1.5 1.5 5.30558 1.5 10H3ZM10 3V4.5C13.0376 4.5 15.5 6.96243 15.5 10H17H18.5C18.5 5.30558 14.6944 1.5 10 1.5V3Z"
436+ />
437+ <defs >
438+ <clippath
439+ id = " paint0_angular_1842_200_clip_path"
440+ >
441+ <path
442+ d = " M17 10H15.5C15.5 13.0376 13.0376 15.5 10 15.5V17V18.5C14.6944 18.5 18.5 14.6944 18.5 10H17ZM10 17V15.5C6.96243 15.5 4.5 13.0376 4.5 10H3H1.5C1.5 14.6944 5.30558 18.5 10 18.5V17ZM3 10H4.5C4.5 6.96243 6.96243 4.5 10 4.5V3V1.5C5.30558 1.5 1.5 5.30558 1.5 10H3ZM10 3V4.5C13.0376 4.5 15.5 6.96243 15.5 10H17H18.5C18.5 5.30558 14.6944 1.5 10 1.5V3Z"
443+ />
444+ </clippath >
445+ </defs >
446+ </svg >
447+ </div >
448+ <div
449+ class = " line-height-0-1.2--255 min-height-0-1.2em--255 transform-0-translateX(8px)--255"
450+ />
451+ </div >
452+ </button >
453+ </div >
454+ ` ;
455+
456+ exports [` Button > should render loading spinner when loading is true and loadingSpinner is partial 1` ] = `
457+ <div >
458+ <button
459+ aria-label = " button"
460+ class=" outline-0-2px solid-17005923944751620165-1 box-sizing-0-border-box--1 cursor-0-pointer--1 font-weight-0-700--1 outline-offset-0-2px--1 position-0-relative--1 transition-0-.25s--1 color-0-var(--text,#272727)-15425828959012638752-1 background-0-color-mix(in srgb,var(--primary,#8163E1) 20%,#FFF 80%)-15425828959012638752-1 border-0-1px solid var(--primary,#8163E1)-15425828959012638752-1 color-0-#D6D7DE-14172363753176421546-1 background-color-0-#F0F0F3-14172363753176421546-1 cursor-0-not-allowed-14172363753176421546-1 border-color-0-var(--border,#E4E4E4)-14172363753176421546-1 outline-color-0-var(--primaryFocus,#9385D3)-17005923944751620165-1 border-color-0-var(--primary,#8163E1)-8380715471663921674-1 background-0-color-mix(in srgb,var(--primary,#8163E1) 10%,#FFF 90%)-8380715471663921674-1 color-0-var(--text,#F6F6F6)-2922352740838246662-1 background-0-var(--primary,#8163E1)-2922352740838246662-1 color-0-#373737-878116160589243838-1 background-color-0-#47474A-878116160589243838-1 border-color-0-transparent-878116160589243838-1 border-color-0-var(--primary,#8163E1)-6232724021015440856-1 background-0-color-mix(in srgb,var(--primary,#674DC7) 10%,var(--inputBackground,#2E2E2E) 90%)-6232724021015440856-1 outline-color-0-var(--primaryFocus,#927CE4)-13318702800233181468-1 background-0-var(--inputBackground,#2E2E2E)-6667598448774358329-1 background-0-var(--inputBackground,#FFF)--1 border-0-1px solid var(--border,#E4E4E4)--1 border-radius-0-10px--1 color-0-var(--text,#272727)--1 font-size-0-14px--1 font-size-4-15px--1 letter-spacing-0--.02em--1 letter-spacing-4--.03em--1 padding-right-0-28px--1 padding-left-0-28px--1 padding-bottom-0-10px--1 padding-top-0-10px--1 "
461+ type = " button"
462+ >
463+ <div
464+ class = " max-width-0-100%--255 margin-right-0-auto--255 margin-left-0-auto--255 position-0-relative--255 width-0-fit-content--255"
465+ >
466+ <div
467+ class = " display-0-flex--0 justify-content-0-center--0 align-items-0-center--0 height-0-24px--255 width-0-24px--255 left-0-4px--255 position-0-absolute--255 color-0-inherit-9970740749223281870-255 top-0-50%--255 transform-0-translate(-100%,-50%)--255"
468+ role = " presentation"
469+ >
470+ <svg
471+ aria-label = " Partial loading spinner"
472+ class = " animation-duration-0-1s--255 animation-iteration-count-0-infinite--255 animation-name-0---255 animation-timing-function-0-linear--255"
473+ fill = " none"
474+ height = " 20"
475+ style = " --animation-name-0-: k-420169018174230850;"
476+ viewBox = " 0 0 20 20"
477+ width = " 20"
478+ xmlns = " http://www.w3.org/2000/svg"
479+ >
480+ <path
481+ d = " M17 10C17 11.291 16.643 12.5568 15.9685 13.6575C15.294 14.7582 14.3282 15.651 13.1779 16.237C12.0277 16.8231 10.7378 17.0797 9.45078 16.9784C8.1638 16.8771 6.9299 16.4219 5.8855 15.6631"
482+ stroke = " light-dark(var(--primary, #272727), var(--primary, #F6F6F6))"
483+ stroke-linecap = " round"
484+ stroke-width = " 3"
485+ />
486+ </svg >
487+ </div >
488+ <div
489+ class = " line-height-0-1.2--255 min-height-0-1.2em--255 transform-0-translateX(8px)--255"
490+ />
491+ </div >
492+ </button >
493+ </div >
494+ ` ;
495+
328496exports [` Button > should render primary background color when danger is true and variant is primary 1` ] = `
329497<div >
330498 <button
0 commit comments