@fluidattacks/design 11.6.1 → 11.7.0

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 (31) hide show
  1. package/dist/_virtual/index.js +2 -3
  2. package/dist/_virtual/index2.js +3 -5
  3. package/dist/_virtual/index3.js +5 -5
  4. package/dist/_virtual/index4.js +5 -5
  5. package/dist/_virtual/index5.js +5 -2
  6. package/dist/assets/styles/global.css +1 -1
  7. package/dist/components/charts/distribution-bar/index.d.ts +4 -0
  8. package/dist/components/charts/distribution-bar/index.js +44 -0
  9. package/dist/components/charts/distribution-bar/index.stories.d.ts +10 -0
  10. package/dist/components/charts/distribution-bar/index.test.d.ts +1 -0
  11. package/dist/components/charts/distribution-bar/styles.d.ts +10 -0
  12. package/dist/components/charts/distribution-bar/styles.js +20 -0
  13. package/dist/components/charts/distribution-bar/types.d.ts +37 -0
  14. package/dist/components/charts/distribution-bar/utils.d.ts +3 -0
  15. package/dist/components/charts/distribution-bar/utils.js +22 -0
  16. package/dist/components/charts/index.d.ts +3 -1
  17. package/dist/components/charts/index.js +8 -6
  18. package/dist/components/code-snippet/constants.js +6 -5
  19. package/dist/components/code-snippet/index.js +51 -66
  20. package/dist/components/form/index.js +51 -54
  21. package/dist/components/form/styles.js +17 -12
  22. package/dist/components/inputs/fields/month/panel.d.ts +11 -0
  23. package/dist/components/inputs/fields/month/panel.test.d.ts +1 -0
  24. package/dist/components/inputs/fields/month/styles.d.ts +4 -0
  25. package/dist/components/inputs/fields/month/utils.d.ts +15 -0
  26. package/dist/components/inputs/fields/month/utils.test.d.ts +1 -0
  27. package/dist/components/modal/styles.js +10 -9
  28. package/dist/index.js +298 -296
  29. package/dist/node_modules/react-joyride/dist/index.js +4 -4
  30. package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
  31. package/package.json +1 -1
@@ -1,5 +1,4 @@
1
- import { __require as r } from "../node_modules/use-sync-external-store/shim/index.js";
2
- var i = r();
1
+ var e = { exports: {} };
3
2
  export {
4
- i as s
3
+ e as __module
5
4
  };
@@ -1,7 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as e } from "../node_modules/react-innertext/index.js";
3
- var t = e();
4
- const n = /* @__PURE__ */ r(t);
1
+ import { __require as r } from "../node_modules/use-sync-external-store/shim/index.js";
2
+ var i = r();
5
3
  export {
6
- n as default
4
+ i as s
7
5
  };
@@ -1,7 +1,7 @@
1
- import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
2
- import { __require as r } from "../node_modules/@fastify/deepmerge/index.js";
3
- var o = r();
4
- const p = /* @__PURE__ */ e(o);
1
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
+ import { __require as e } from "../node_modules/react-innertext/index.js";
3
+ var t = e();
4
+ const n = /* @__PURE__ */ r(t);
5
5
  export {
6
- p as default
6
+ n as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../node_modules/scroll/index.js";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
1
+ import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
2
+ import { __require as r } from "../node_modules/@fastify/deepmerge/index.js";
3
+ var o = r();
4
+ const p = /* @__PURE__ */ e(o);
5
5
  export {
6
- s as default
6
+ p as default
7
7
  };
@@ -1,4 +1,7 @@
1
- var e = { exports: {} };
1
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
+ import { __require as o } from "../node_modules/scroll/index.js";
3
+ var t = o();
4
+ const s = /* @__PURE__ */ r(t);
2
5
  export {
3
- e as __module
6
+ s as default
4
7
  };
@@ -1 +1 @@
1
- /*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-ease:initial;--btn-padding-x:16px;--btn-padding-y:10px;--btn-spacing:8px;--grid-columns:12;--grid-width:1440px;--angle-grad:45deg;--opacity-grad:0;--tag-padding-x:4px;--tag-padding-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-gray-200:oklch(92.8% .006 264.531);--color-black:#000;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--radius-xl:.75rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentColor)}::file-selector-button{border-color:var(--color-gray-200,currentColor)}}@layer components;@layer utilities{.\@container{container-type:inline-size}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.col-1{grid-column:1}.col-2{grid-column:2}.row-0{grid-row:0}.row-1{grid-row:1}.row-2{grid-row:2}.row-3{grid-row:3}.row-5{grid-row:5}.row-8{grid-row:8}.row-9{grid-row:9}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-90{height:calc(var(--spacing) * 90)}.h-150{height:calc(var(--spacing) * 150)}.h-\[500px\]{height:500px}.h-\[600px\]{height:600px}.w-100{width:calc(var(--spacing) * 100)}.w-\[400px\]{width:400px}.w-full{width:100%}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.grow-2{flex-grow:2}.grow-4{flex-grow:4}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.rounded{border-radius:.25rem}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.bg-black{background-color:var(--color-black)}.p-8{padding:calc(var(--spacing) * 8)}.font-mono{font-family:var(--font-mono)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.tab-1{tab-size:1}.tab-2{tab-size:2}.tab-3{tab-size:3}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-all{-webkit-user-select:all;user-select:all}}@property --btn-padding-x{syntax:"<length>";inherits:false;initial-value:16px}@property --btn-padding-y{syntax:"<length>";inherits:false;initial-value:10px}@property --btn-spacing{syntax:"<length>";inherits:false;initial-value:8px}@property --grid-columns{syntax:"<number>";inherits:false;initial-value:12}@property --grid-width{syntax:"<length>";inherits:false;initial-value:1440px}@property --angle-grad{syntax:"<angle>";inherits:false;initial-value:45deg}@property --opacity-grad{syntax:"<number>";inherits:false;initial-value:0}@property --tag-padding-x{syntax:"<length>";inherits:false;initial-value:4px}@property --tag-padding-y{syntax:"<length>";inherits:false;initial-value:0}@keyframes spinAnimation{to{--border-angle:360deg}}@keyframes gradientAnimation{0%{--animate-position:45deg}33%{--animate-position:-50deg}66%{--animate-position:-100deg}to{--animate-position:45deg}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
1
+ /*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-ease:initial;--btn-padding-x:16px;--btn-padding-y:10px;--btn-spacing:8px;--grid-columns:12;--grid-width:1440px;--angle-grad:45deg;--opacity-grad:0;--tag-padding-x:4px;--tag-padding-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-gray-200:oklch(92.8% .006 264.531);--color-black:#000;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--radius-xl:.75rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentColor)}::file-selector-button{border-color:var(--color-gray-200,currentColor)}}@layer components;@layer utilities{.\@container{container-type:inline-size}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.col-1{grid-column:1}.col-2{grid-column:2}.row-0{grid-row:0}.row-1{grid-row:1}.row-2{grid-row:2}.row-3{grid-row:3}.row-5{grid-row:5}.row-8{grid-row:8}.row-9{grid-row:9}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-90{height:calc(var(--spacing) * 90)}.h-150{height:calc(var(--spacing) * 150)}.h-\[500px\]{height:500px}.h-\[600px\]{height:600px}.w-100{width:calc(var(--spacing) * 100)}.w-\[400px\]{width:400px}.w-full{width:100%}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.grow-2{flex-grow:2}.grow-4{flex-grow:4}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.rounded{border-radius:.25rem}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.bg-black{background-color:var(--color-black)}.p-8{padding:calc(var(--spacing) * 8)}.font-mono{font-family:var(--font-mono)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.tab-1{tab-size:1}.tab-2{tab-size:2}.tab-3{tab-size:3}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-all{-webkit-user-select:all;user-select:all}}@property --btn-padding-x{syntax:"<length>";inherits:false;initial-value:16px}@property --btn-padding-y{syntax:"<length>";inherits:false;initial-value:10px}@property --btn-spacing{syntax:"<length>";inherits:false;initial-value:8px}@property --grid-columns{syntax:"<number>";inherits:false;initial-value:12}@property --grid-width{syntax:"<length>";inherits:false;initial-value:1440px}@property --angle-grad{syntax:"<angle>";inherits:false;initial-value:45deg}@property --opacity-grad{syntax:"<number>";inherits:false;initial-value:0}@property --tag-padding-x{syntax:"<length>";inherits:false;initial-value:4px}@property --tag-padding-y{syntax:"<length>";inherits:false;initial-value:0}@keyframes spinAnimation{to{--border-angle:360deg}}@keyframes gradientAnimation{0%{--animate-position:45deg}33%{--animate-position:-50deg}66%{--animate-position:-100deg}to{--animate-position:45deg}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
@@ -0,0 +1,4 @@
1
+ import { IDistributionBarCategoryProps, IDistributionBarProps, TDistributionBarMode } from './types';
2
+ declare const DistributionBar: ({ categories, header, mode, showLabels, showZeroSegments, }: Readonly<IDistributionBarProps>) => JSX.Element;
3
+ export type { IDistributionBarCategoryProps, IDistributionBarProps, TDistributionBarMode, };
4
+ export { DistributionBar };
@@ -0,0 +1,44 @@
1
+ import { jsxs as D, jsx as r } from "react/jsx-runtime";
2
+ import { useNumberFormatter as c } from "../../../node_modules/react-aria/dist/private/i18n/useNumberFormatter.js";
3
+ import { StyledBar as F, StyledSegment as g } from "./styles.js";
4
+ import { modeColors as N } from "./utils.js";
5
+ import { DataLegend as S } from "../data-legend/index.js";
6
+ import { DataNumber as h } from "../data-number/index.js";
7
+ import { isSingleCssColor as j } from "../utils.js";
8
+ import { Container as y } from "../../container/index.js";
9
+ const A = ({
10
+ categories: p,
11
+ header: l,
12
+ mode: d = "color",
13
+ showLabels: f = !0,
14
+ showZeroSegments: u = !1
15
+ }) => {
16
+ const $ = c(), b = c({
17
+ maximumFractionDigits: 0,
18
+ style: "percent"
19
+ }), s = N[d], e = p.map((o, t) => ({
20
+ ...o,
21
+ color: o.color !== void 0 && j(o.color) ? o.color : s[t % s.length],
22
+ value: Number.isFinite(o.value) && o.value > 0 ? o.value : 0
23
+ })), m = e.reduce(
24
+ (o, { value: t }) => o + t,
25
+ 0
26
+ ), i = m === 0, n = e.filter(({ value: o }) => o > 0), a = u ? e : n, v = i ? "No data" : a.map(
27
+ ({ label: o, value: t }) => `${o}: ${$.format(t)} (${b.format(t / m)})`
28
+ ).join(", ");
29
+ return /* @__PURE__ */ D(y, { display: "flex", flexDirection: "column", gap: 0.75, children: [
30
+ l === void 0 ? void 0 : /* @__PURE__ */ r(h, { ...l, layout: "inline" }),
31
+ /* @__PURE__ */ r(F, { $isEmpty: i, "aria-label": v, role: "img", children: n.map(({ color: o, label: t, value: x }, C) => /* @__PURE__ */ r(
32
+ g,
33
+ {
34
+ $color: o,
35
+ $width: x / m * 100
36
+ },
37
+ `${t}-${C}`
38
+ )) }),
39
+ f && !i ? /* @__PURE__ */ r(S, { items: a }) : void 0
40
+ ] });
41
+ };
42
+ export {
43
+ A as DistributionBar
44
+ };
@@ -0,0 +1,10 @@
1
+ import { Meta } from '@storybook/react-vite';
2
+ import { IDistributionBarProps } from './types';
3
+ declare const config: Meta<IDistributionBarProps>;
4
+ declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IDistributionBarProps>;
5
+ declare const WithZeroSegments: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IDistributionBarProps>;
6
+ declare const WithoutLabels: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IDistributionBarProps>;
7
+ declare const Grayscale: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IDistributionBarProps>;
8
+ declare const Empty: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IDistributionBarProps>;
9
+ export { Default, Empty, Grayscale, WithZeroSegments, WithoutLabels };
10
+ export default config;
@@ -0,0 +1,10 @@
1
+ interface IStyledBarProps {
2
+ $isEmpty: boolean;
3
+ }
4
+ interface IStyledSegmentProps {
5
+ $color: string;
6
+ $width: number;
7
+ }
8
+ declare const StyledBar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isEmpty"> & IStyledBarProps, never> & Partial<Pick<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isEmpty"> & IStyledBarProps, never>>> & string;
9
+ declare const StyledSegment: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof IStyledSegmentProps> & IStyledSegmentProps, never> & Partial<Pick<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof IStyledSegmentProps> & IStyledSegmentProps, never>>> & string;
10
+ export { StyledBar, StyledSegment };
@@ -0,0 +1,20 @@
1
+ import { styled as e } from "styled-components";
2
+ const o = e.div`
3
+ background-color: ${({ $isEmpty: t, theme: r }) => t ? r.palette.gray[50] : "transparent"};
4
+ border-radius: 50px;
5
+ display: flex;
6
+ gap: 1px;
7
+ height: 10px;
8
+ overflow: hidden;
9
+ width: 100%;
10
+ `, i = e.div`
11
+ background-color: ${({ $color: t }) => t};
12
+ flex-shrink: 1;
13
+ height: 100%;
14
+ min-width: 1px;
15
+ width: ${({ $width: t }) => `${t}%`};
16
+ `;
17
+ export {
18
+ o as StyledBar,
19
+ i as StyledSegment
20
+ };
@@ -0,0 +1,37 @@
1
+ import { IDataLegendItemProps } from '../data-legend/types';
2
+ import { IDataNumberProps } from '../data-number/types';
3
+ type TDistributionBarMode = "color" | "grayscale";
4
+ /**
5
+ * Distribution bar category props.
6
+ * @interface IDistributionBarCategoryProps
7
+ * @extends Omit<IDataLegendItemProps, "color">
8
+ * @property { string } [color] - Color of the segment and its legend marker:
9
+ * a hex code, a color name, or an rgb()/hsl() value. Without it, or with
10
+ * anything else, the category takes the mode color of its position.
11
+ */
12
+ interface IDistributionBarCategoryProps extends Omit<IDataLegendItemProps, "color"> {
13
+ color?: string;
14
+ }
15
+ /**
16
+ * Distribution bar component props.
17
+ * @interface IDistributionBarProps
18
+ * @property { IDistributionBarCategoryProps[] } categories - One to eight
19
+ * categories in the order to show; the component does not sort them. A
20
+ * negative or non-finite value counts as 0.
21
+ * @property { Omit<IDataNumberProps, "layout"> } [header] - Data number shown
22
+ * inline above the bar.
23
+ * @property { TDistributionBarMode } [mode] - "color" uses the semantic
24
+ * palette; "grayscale" uses grays with no semantic meaning. Grayscale has
25
+ * four grays, so use it for two to four categories.
26
+ * @property { boolean } [showLabels] - Show the legend below the bar.
27
+ * @property { boolean } [showZeroSegments] - Keep 0-value categories in the
28
+ * legend. A 0 value never takes space in the bar.
29
+ */
30
+ interface IDistributionBarProps {
31
+ categories: readonly IDistributionBarCategoryProps[];
32
+ header?: Omit<IDataNumberProps, "layout">;
33
+ mode?: TDistributionBarMode;
34
+ showLabels?: boolean;
35
+ showZeroSegments?: boolean;
36
+ }
37
+ export type { IDistributionBarCategoryProps, IDistributionBarProps, TDistributionBarMode, };
@@ -0,0 +1,3 @@
1
+ import { TDistributionBarMode } from './types';
2
+ declare const modeColors: Record<TDistributionBarMode, readonly string[]>;
3
+ export { modeColors };
@@ -0,0 +1,22 @@
1
+ import { theme as e } from "../../colors/index.js";
2
+ const a = {
3
+ color: [
4
+ e.palette.complementary[300],
5
+ e.palette.complementary[100],
6
+ e.palette.info[500],
7
+ e.palette.info[200],
8
+ e.palette.success[500],
9
+ e.palette.success[200],
10
+ e.palette.warning[600],
11
+ e.palette.warning[400]
12
+ ],
13
+ grayscale: [
14
+ e.palette.gray[700],
15
+ e.palette.gray[500],
16
+ e.palette.gray[400],
17
+ e.palette.gray[300]
18
+ ]
19
+ };
20
+ export {
21
+ a as modeColors
22
+ };
@@ -2,6 +2,8 @@ import { DataLegend } from './data-legend';
2
2
  import { IDataLegendItemProps, IDataLegendProps } from './data-legend/types';
3
3
  import { DataNumber } from './data-number';
4
4
  import { IDataNumberProps, TDataNumberLayout } from './data-number/types';
5
+ import { DistributionBar } from './distribution-bar';
6
+ import { IDistributionBarCategoryProps, IDistributionBarProps, TDistributionBarMode } from './distribution-bar/types';
5
7
  import { GroupedDataNumber } from './grouped-data-number';
6
8
  import { IGroupedDataNumberProps, TGroupedDataNumberItem } from './grouped-data-number/types';
7
- export { DataLegend, DataNumber, GroupedDataNumber, type IDataLegendItemProps, type IDataLegendProps, type IDataNumberProps, type IGroupedDataNumberProps, type TDataNumberLayout, type TGroupedDataNumberItem, };
9
+ export { DataLegend, DataNumber, DistributionBar, GroupedDataNumber, type IDataLegendItemProps, type IDataLegendProps, type IDataNumberProps, type IDistributionBarCategoryProps, type IDistributionBarProps, type IGroupedDataNumberProps, type TDataNumberLayout, type TDistributionBarMode, type TGroupedDataNumberItem, };
@@ -1,8 +1,10 @@
1
- import { DataLegend as o } from "./data-legend/index.js";
2
- import { DataNumber as t } from "./data-number/index.js";
3
- import { GroupedDataNumber as p } from "./grouped-data-number/index.js";
1
+ import { DataLegend as e } from "./data-legend/index.js";
2
+ import { DataNumber as a } from "./data-number/index.js";
3
+ import { DistributionBar as p } from "./distribution-bar/index.js";
4
+ import { GroupedDataNumber as u } from "./grouped-data-number/index.js";
4
5
  export {
5
- o as DataLegend,
6
- t as DataNumber,
7
- p as GroupedDataNumber
6
+ e as DataLegend,
7
+ a as DataNumber,
8
+ p as DistributionBar,
9
+ u as GroupedDataNumber
8
10
  };
@@ -5,8 +5,8 @@ import i from "../../node_modules/refractor/lang/docker.js";
5
5
  import a from "../../node_modules/refractor/lang/elixir.js";
6
6
  import f from "../../node_modules/refractor/lang/go.js";
7
7
  import n from "../../node_modules/refractor/lang/hcl.js";
8
- import s from "../../node_modules/refractor/lang/java.js";
9
- import e from "../../node_modules/refractor/lang/javascript.js";
8
+ import e from "../../node_modules/refractor/lang/java.js";
9
+ import s from "../../node_modules/refractor/lang/javascript.js";
10
10
  import l from "../../node_modules/refractor/lang/json.js";
11
11
  import c from "../../node_modules/refractor/lang/kotlin.js";
12
12
  import y from "../../node_modules/refractor/lang/markup.js";
@@ -29,8 +29,8 @@ import S from "../../node_modules/react-syntax-highlighter/dist/esm/prism-light.
29
29
  ["elixir", a],
30
30
  ["go", f],
31
31
  ["hcl", n],
32
- ["java", s],
33
- ["javascript", e],
32
+ ["java", e],
33
+ ["javascript", s],
34
34
  ["json", l],
35
35
  ["kotlin", c],
36
36
  ["markup", y],
@@ -52,7 +52,8 @@ const V = Object.fromEntries(
52
52
  {
53
53
  ...o,
54
54
  background: "transparent",
55
- fontFamily: "inherit"
55
+ fontFamily: "inherit",
56
+ textShadow: "none"
56
57
  }
57
58
  ])
58
59
  ), W = (r) => ({
@@ -1,29 +1,29 @@
1
- import { jsx as e, jsxs as h } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
2
  import l from "../../_virtual/lodash.js";
3
- import { useState as B, useMemo as S, useCallback as s } from "react";
3
+ import { useState as B, useMemo as S, useCallback as h } from "react";
4
4
  import { useTheme as H } from "styled-components";
5
- import { syntaxStyle as v, getCustomStyle as w } from "./constants.js";
6
- import { Button as P } from "../button/index.js";
7
- import { Container as c } from "../container/index.js";
5
+ import { syntaxStyle as v, getCustomStyle as C } from "./constants.js";
6
+ import { Button as I } from "../button/index.js";
7
+ import { Container as s } from "../container/index.js";
8
+ import { CopyButton as P } from "../copy-button/index.js";
8
9
  import { Icon as D } from "../icon/index.js";
9
- import { IconButton as F } from "../icon-button/index.js";
10
- import C from "../../node_modules/react-syntax-highlighter/dist/esm/prism-light.js";
11
- const Y = ({
12
- expanded: u = !1,
10
+ import w from "../../node_modules/react-syntax-highlighter/dist/esm/prism-light.js";
11
+ const X = ({
12
+ expanded: g = !1,
13
13
  language: y = "none",
14
14
  minWidth: L = "min(565px, 100%)",
15
- noCodeMessage: d = "Code snippet not available",
16
- showLineNumbers: k = !1,
17
- snippet: o,
15
+ noCodeMessage: c = "Code snippet not available",
16
+ showLineNumbers: N = !1,
17
+ snippet: e,
18
18
  specific: f,
19
- variant: N = "normal"
19
+ variant: R = "normal"
20
20
  }) => {
21
- const t = H(), [R, j] = B(null), n = R === o, T = N === "location", x = !l.isNil(o) && !l.isString(o) && !l.isEmpty(o.content), b = x ? o.content : null, W = x ? o.offset : 0, r = f !== void 0 ? Number(f) : null, i = l.isString(o) && !l.isEmpty(o), m = S(
22
- () => i ? o.split(`
21
+ const t = H(), [j, k] = B(null), i = j === e, W = R === "location", x = !l.isNil(e) && !l.isString(e) && !l.isEmpty(e.content), b = x ? e.content : null, A = x ? e.offset : 0, r = f !== void 0 ? Number(f) : null, n = l.isString(e) && !l.isEmpty(e), d = S(
22
+ () => n ? e.split(`
23
23
  `) : [],
24
- [i, o]
25
- ), g = m.length > 8, z = S(() => i ? g && !n ? `${m.slice(0, 8).join(`
26
- `)}...` : o : d, [i, g, n, m, o, d]), A = s(
24
+ [n, e]
25
+ ), m = d.length > 8, E = S(() => n ? m && !i ? `${d.slice(0, 8).join(`
26
+ `)}...` : e : c, [n, m, i, d, e, c]), T = h(
27
27
  (a) => ({
28
28
  style: {
29
29
  display: "block",
@@ -34,7 +34,7 @@ const Y = ({
34
34
  }
35
35
  }),
36
36
  [r, t.spacing]
37
- ), E = s(
37
+ ), V = h(
38
38
  (a) => {
39
39
  const p = r === a;
40
40
  return {
@@ -49,15 +49,12 @@ const Y = ({
49
49
  };
50
50
  },
51
51
  [r, t.palette.primary, t.spacing]
52
- ), I = s(
53
- () => navigator.clipboard.writeText(i ? o : ""),
54
- [i, o]
55
- ), V = s(
56
- () => j(n ? null : o),
57
- [n, o]
52
+ ), z = h(
53
+ () => k(i ? null : e),
54
+ [i, e]
58
55
  );
59
- return T ? b ? /* @__PURE__ */ e(
60
- c,
56
+ return W ? b ? /* @__PURE__ */ o(
57
+ s,
61
58
  {
62
59
  bgColor: t.palette.gray[100],
63
60
  borderRadius: "4px",
@@ -67,23 +64,23 @@ const Y = ({
67
64
  position: "relative",
68
65
  scroll: "x",
69
66
  width: "100%",
70
- children: /* @__PURE__ */ e(
71
- C,
67
+ children: /* @__PURE__ */ o(
68
+ w,
72
69
  {
73
- customStyle: w(t),
70
+ customStyle: C(t),
74
71
  language: y,
75
- lineNumberStyle: E,
76
- lineProps: A,
72
+ lineNumberStyle: V,
73
+ lineProps: T,
77
74
  showLineNumbers: !0,
78
- startingLineNumber: W + 1,
75
+ startingLineNumber: A + 1,
79
76
  style: v,
80
77
  wrapLines: !0,
81
78
  children: b
82
79
  }
83
80
  )
84
81
  }
85
- ) : /* @__PURE__ */ e(
86
- c,
82
+ ) : /* @__PURE__ */ o(
83
+ s,
87
84
  {
88
85
  bgColor: t.palette.gray[100],
89
86
  borderRadius: "4px",
@@ -92,7 +89,7 @@ const Y = ({
92
89
  position: "relative",
93
90
  scroll: "x",
94
91
  width: "fit-content",
95
- children: /* @__PURE__ */ e(
92
+ children: /* @__PURE__ */ o(
96
93
  "p",
97
94
  {
98
95
  style: {
@@ -100,36 +97,36 @@ const Y = ({
100
97
  fontSize: t.typography.text.md,
101
98
  padding: t.spacing[0.5]
102
99
  },
103
- children: d
100
+ children: c
104
101
  }
105
102
  )
106
103
  }
107
- ) : /* @__PURE__ */ h(
108
- c,
104
+ ) : /* @__PURE__ */ u(
105
+ s,
109
106
  {
110
107
  bgColor: t.palette.gray[100],
111
108
  borderRadius: "4px",
112
109
  "data-private": !0,
113
110
  display: "inline-flex",
114
- justify: u ? "space-between" : "center",
111
+ justify: g ? "space-between" : "center",
115
112
  minWidth: L,
116
113
  position: "relative",
117
114
  px: 1,
118
115
  py: 1,
119
- width: u ? "100%" : "fit-content",
116
+ width: g ? "100%" : "fit-content",
120
117
  children: [
121
- /* @__PURE__ */ e(
122
- C,
118
+ /* @__PURE__ */ o(
119
+ w,
123
120
  {
124
- customStyle: w(t),
121
+ customStyle: C(t),
125
122
  language: y,
126
- showLineNumbers: k,
123
+ showLineNumbers: N,
127
124
  style: v,
128
- children: z
125
+ children: E
129
126
  }
130
127
  ),
131
- /* @__PURE__ */ h(
132
- c,
128
+ /* @__PURE__ */ u(
129
+ s,
133
130
  {
134
131
  alignItems: "end",
135
132
  bgColor: t.palette.gray[100],
@@ -140,25 +137,13 @@ const Y = ({
140
137
  mr: 1,
141
138
  position: "relative",
142
139
  children: [
143
- /* @__PURE__ */ e(
144
- F,
145
- {
146
- height: t.spacing[2.5],
147
- icon: "copy",
148
- iconColor: t.palette.gray[700],
149
- iconSize: "lg",
150
- iconType: "fa-light",
151
- onClick: I,
152
- variant: "ghost",
153
- width: t.spacing[2.5]
154
- }
155
- ),
156
- i && g ? /* @__PURE__ */ h(P, { onClick: V, variant: "ghost", children: [
157
- n ? "Show Less" : "Show more",
158
- /* @__PURE__ */ e(
140
+ /* @__PURE__ */ o(P, { content: n ? e : "" }),
141
+ n && m ? /* @__PURE__ */ u(I, { onClick: z, variant: "ghost", children: [
142
+ i ? "Show Less" : "Show more",
143
+ /* @__PURE__ */ o(
159
144
  D,
160
145
  {
161
- icon: n ? "chevron-up" : "chevron-down",
146
+ icon: i ? "chevron-up" : "chevron-down",
162
147
  iconColor: t.palette.gray[700],
163
148
  iconSize: "sm",
164
149
  iconType: "fa-light",
@@ -174,5 +159,5 @@ const Y = ({
174
159
  );
175
160
  };
176
161
  export {
177
- Y as CodeSnippet
162
+ X as CodeSnippet
178
163
  };