@fluidattacks/design 9.5.3 → 9.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.
- package/dist/assets/styles/global.css +1 -1
- package/dist/components/filters/options-menu/include-exclude/multi-select.js +39 -38
- package/dist/components/filters/options-menu/single-select/index.js +50 -51
- package/dist/components/filters/types.d.ts +2 -0
- package/dist/components/filters/utils.d.ts +4 -2
- package/dist/components/filters/utils.js +29 -26
- package/dist/components/truncated-values/index.d.ts +4 -0
- package/dist/components/truncated-values/index.js +36 -0
- package/dist/components/truncated-values/index.stories.d.ts +7 -0
- package/dist/components/truncated-values/index.test.d.ts +1 -0
- package/dist/components/truncated-values/styles.d.ts +2 -0
- package/dist/components/truncated-values/styles.js +19 -0
- package/dist/components/truncated-values/types.d.ts +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +92 -90
- package/package.json +2 -2
|
@@ -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}.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,)}.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,14 +1,15 @@
|
|
|
1
1
|
import { jsxs as y, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useVirtualizer as
|
|
2
|
+
import { useVirtualizer as K } from "../../../../node_modules/@tanstack/react-virtual/dist/esm/index.js";
|
|
3
3
|
import { useState as u, useRef as k, useMemo as d, useCallback as n } from "react";
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { StyledCombobox as
|
|
4
|
+
import { useTheme as L } from "styled-components";
|
|
5
|
+
import { StyledCombobox as Q, StyledBar as V, StyledChips as W, StyledInput as q, StyledToggle as G, StyledDropdown as _, StyledList as A, StyledCode as J } from "./styles.js";
|
|
6
6
|
import { NoMatches as U } from "../../search/no-matches/index.js";
|
|
7
7
|
import { StyledItem as X } from "../../styles.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
8
|
+
import { matchesQuery as Y } from "../../utils.js";
|
|
9
|
+
import { Checkbox as Z } from "../../../checkbox/index.js";
|
|
10
|
+
import { Icon as ee } from "../../../icon/index.js";
|
|
11
|
+
import { useClickOutside as te } from "../../../../hooks/use-click-outside.js";
|
|
12
|
+
const oe = 36, me = ({
|
|
12
13
|
name: l,
|
|
13
14
|
items: g,
|
|
14
15
|
selected: o,
|
|
@@ -16,58 +17,58 @@ const te = 36, pe = ({
|
|
|
16
17
|
onToggle: v,
|
|
17
18
|
autoOpen: I = !1
|
|
18
19
|
}) => {
|
|
19
|
-
const z =
|
|
20
|
+
const z = L(), [a, w] = u(I), [p, C] = u(""), [h, b] = u(
|
|
20
21
|
() => new Set(o)
|
|
21
|
-
), [T, D] = u(null), x = k(null), c = k(null), $ = d(() => new Set(o), [o]),
|
|
22
|
+
), [T, D] = u(null), x = k(null), c = k(null), $ = d(() => new Set(o), [o]), m = d(
|
|
22
23
|
() => [...g].sort(
|
|
23
24
|
(e, t) => Number(h.has(t.value)) - Number(h.has(e.value))
|
|
24
25
|
),
|
|
25
26
|
[g, h]
|
|
26
|
-
),
|
|
27
|
+
), f = d(() => {
|
|
27
28
|
const e = p.trim().toLowerCase();
|
|
28
|
-
return e === "" ?
|
|
29
|
-
(t) =>
|
|
29
|
+
return e === "" ? m : m.filter(
|
|
30
|
+
(t) => Y(t, e)
|
|
30
31
|
);
|
|
31
|
-
}, [p,
|
|
32
|
+
}, [p, m]), O = n(
|
|
32
33
|
() => x.current,
|
|
33
34
|
[]
|
|
34
|
-
), j = n(() =>
|
|
35
|
-
count:
|
|
35
|
+
), j = n(() => oe, []), S = K({
|
|
36
|
+
count: f.length,
|
|
36
37
|
estimateSize: j,
|
|
37
38
|
getScrollElement: O,
|
|
38
39
|
overscan: 6,
|
|
39
40
|
useFlushSync: !1
|
|
40
|
-
}),
|
|
41
|
+
}), R = S.getVirtualItems(), i = n(() => {
|
|
41
42
|
b(new Set(o)), C(""), w(!1);
|
|
42
43
|
}, [o]), s = n(() => {
|
|
43
44
|
b(new Set(o)), w(!0);
|
|
44
|
-
}, [o]),
|
|
45
|
+
}, [o]), M = n(
|
|
45
46
|
(e) => {
|
|
46
47
|
e.preventDefault(), e.stopPropagation(), a ? i() : (c.current?.focus(), s());
|
|
47
48
|
},
|
|
48
49
|
[a, i, s]
|
|
49
|
-
),
|
|
50
|
+
), N = n(() => {
|
|
50
51
|
c.current?.focus(), s();
|
|
51
|
-
}, [s]),
|
|
52
|
+
}, [s]), P = n(
|
|
52
53
|
(e) => (t) => {
|
|
53
54
|
t.stopPropagation(), v(e);
|
|
54
55
|
},
|
|
55
56
|
[v]
|
|
56
|
-
),
|
|
57
|
+
), B = n(
|
|
57
58
|
(e) => {
|
|
58
59
|
C(e.target.value);
|
|
59
60
|
},
|
|
60
61
|
[]
|
|
61
|
-
),
|
|
62
|
+
), F = n(
|
|
62
63
|
(e) => {
|
|
63
64
|
e.key === "Enter" ? e.preventDefault() : e.key === "Escape" && (i(), c.current?.blur());
|
|
64
65
|
},
|
|
65
66
|
[i]
|
|
66
|
-
),
|
|
67
|
-
return
|
|
68
|
-
/* @__PURE__ */ y(
|
|
69
|
-
/* @__PURE__ */ r(
|
|
70
|
-
|
|
67
|
+
), H = d(() => o.length === 0 ? "" : o.length <= 2 ? o.join(", ") : `${o.slice(0, 2).join(", ")}, +${o.length - 2} more`, [o]);
|
|
68
|
+
return te(a ? T : null, i), /* @__PURE__ */ y(Q, { ref: D, children: [
|
|
69
|
+
/* @__PURE__ */ y(V, { onClick: N, children: [
|
|
70
|
+
/* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(
|
|
71
|
+
q,
|
|
71
72
|
{
|
|
72
73
|
"aria-controls": `${l}-dropdown`,
|
|
73
74
|
"aria-expanded": a,
|
|
@@ -75,25 +76,25 @@ const te = 36, pe = ({
|
|
|
75
76
|
autoComplete: "off",
|
|
76
77
|
id: `${l}-search`,
|
|
77
78
|
name: `${l}-search`,
|
|
78
|
-
onChange:
|
|
79
|
+
onChange: B,
|
|
79
80
|
onFocus: s,
|
|
80
|
-
onKeyDown:
|
|
81
|
+
onKeyDown: F,
|
|
81
82
|
placeholder: E,
|
|
82
83
|
ref: c,
|
|
83
84
|
type: "search",
|
|
84
|
-
value: a ? p :
|
|
85
|
+
value: a ? p : H
|
|
85
86
|
}
|
|
86
87
|
) }),
|
|
87
88
|
/* @__PURE__ */ r(
|
|
88
|
-
|
|
89
|
+
G,
|
|
89
90
|
{
|
|
90
91
|
"aria-controls": `${l}-dropdown`,
|
|
91
92
|
"aria-expanded": a,
|
|
92
93
|
"aria-label": `${l}-toggle`,
|
|
93
|
-
onClick:
|
|
94
|
+
onClick: M,
|
|
94
95
|
type: "button",
|
|
95
96
|
children: /* @__PURE__ */ r(
|
|
96
|
-
|
|
97
|
+
ee,
|
|
97
98
|
{
|
|
98
99
|
icon: a ? "chevron-up" : "chevron-down",
|
|
99
100
|
iconColor: z.palette.gray[700],
|
|
@@ -104,7 +105,7 @@ const te = 36, pe = ({
|
|
|
104
105
|
}
|
|
105
106
|
)
|
|
106
107
|
] }),
|
|
107
|
-
a ? /* @__PURE__ */ r(_, { "data-testid": `${l}-dropdown`, children: /* @__PURE__ */ r(A, { ref: x, role: "listbox", children:
|
|
108
|
+
a ? /* @__PURE__ */ r(_, { "data-testid": `${l}-dropdown`, children: /* @__PURE__ */ r(A, { ref: x, role: "listbox", children: f.length > 0 ? /* @__PURE__ */ r(
|
|
108
109
|
"div",
|
|
109
110
|
{
|
|
110
111
|
style: {
|
|
@@ -112,8 +113,8 @@ const te = 36, pe = ({
|
|
|
112
113
|
position: "relative",
|
|
113
114
|
width: "100%"
|
|
114
115
|
},
|
|
115
|
-
children:
|
|
116
|
-
const t =
|
|
116
|
+
children: R.map((e) => {
|
|
117
|
+
const t = f[e.index];
|
|
117
118
|
return /* @__PURE__ */ r(
|
|
118
119
|
"div",
|
|
119
120
|
{
|
|
@@ -126,7 +127,7 @@ const te = 36, pe = ({
|
|
|
126
127
|
width: "100%"
|
|
127
128
|
},
|
|
128
129
|
children: /* @__PURE__ */ r(X, { "aria-selected": $.has(t.value), children: /* @__PURE__ */ r(
|
|
129
|
-
|
|
130
|
+
Z,
|
|
130
131
|
{
|
|
131
132
|
checked: $.has(t.value),
|
|
132
133
|
label: /* @__PURE__ */ y("span", { children: [
|
|
@@ -134,7 +135,7 @@ const te = 36, pe = ({
|
|
|
134
135
|
t.label
|
|
135
136
|
] }),
|
|
136
137
|
name: t.value,
|
|
137
|
-
onChange:
|
|
138
|
+
onChange: P(t.value),
|
|
138
139
|
value: t.value
|
|
139
140
|
}
|
|
140
141
|
) })
|
|
@@ -147,5 +148,5 @@ const te = 36, pe = ({
|
|
|
147
148
|
] });
|
|
148
149
|
};
|
|
149
150
|
export {
|
|
150
|
-
|
|
151
|
+
me as MultiSelectSearch
|
|
151
152
|
};
|
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
import { jsxs as w, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useFloating as
|
|
3
|
-
import { useVirtualizer as
|
|
2
|
+
import { useFloating as Q, FloatingPortal as U } from "../../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
|
|
3
|
+
import { useVirtualizer as q } from "../../../../node_modules/@tanstack/react-virtual/dist/esm/index.js";
|
|
4
4
|
import { useState as m, useRef as k, useMemo as A, useCallback as i } from "react";
|
|
5
5
|
import { useTheme as Y } from "styled-components";
|
|
6
6
|
import { StyledFloatingDropdown as J, StyledOption as X } from "./styles.js";
|
|
7
7
|
import { NoMatches as Z } from "../../search/no-matches/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import { matchesQuery as ee } from "../../utils.js";
|
|
9
|
+
import { StyledCombobox as te, StyledBar as oe, StyledChips as ne, StyledInput as re, StyledToggle as ie, StyledList as le } from "../include-exclude/styles.js";
|
|
9
10
|
import { Icon as N } from "../../../icon/index.js";
|
|
10
11
|
import "../../../typography/heading/index.js";
|
|
11
|
-
import { Span as
|
|
12
|
+
import { Span as ae } from "../../../typography/span/index.js";
|
|
12
13
|
import "../../../typography/text/index.js";
|
|
13
|
-
import { useClickOutside as
|
|
14
|
-
import { autoUpdate as
|
|
15
|
-
import { offset as
|
|
16
|
-
const
|
|
14
|
+
import { useClickOutside as se } from "../../../../hooks/use-click-outside.js";
|
|
15
|
+
import { autoUpdate as ce } from "../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
16
|
+
import { offset as de, flip as pe, shift as fe, size as ue } from "../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
17
|
+
const he = 36, me = 4, S = 8, g = -1, ge = [
|
|
17
18
|
"ArrowDown",
|
|
18
19
|
"ArrowUp",
|
|
19
20
|
"Home",
|
|
20
21
|
"End"
|
|
21
|
-
],
|
|
22
|
+
], ve = (o, l, a) => o === "Home" ? 0 : o === "End" ? a : o === "ArrowDown" ? l >= a ? 0 : l + 1 : l <= 0 ? a : l - 1, Pe = ({
|
|
22
23
|
name: o,
|
|
23
24
|
items: l,
|
|
24
25
|
selected: a,
|
|
25
26
|
placeholder: z,
|
|
26
27
|
onSelect: b
|
|
27
28
|
}) => {
|
|
28
|
-
const
|
|
29
|
+
const I = Y(), [r, O] = m(!1), [v, C] = m(""), [d, y] = m(g), [P, R] = m(null), $ = k(null), u = k(null), { floatingStyles: F, refs: x } = Q({
|
|
29
30
|
middleware: [
|
|
30
|
-
|
|
31
|
-
de({ padding: S }),
|
|
31
|
+
de(me),
|
|
32
32
|
pe({ padding: S }),
|
|
33
|
+
fe({ padding: S }),
|
|
33
34
|
ue({
|
|
34
35
|
apply: ({ elements: e, rects: t }) => {
|
|
35
36
|
e.floating.style.width = `${t.reference.width}px`;
|
|
@@ -38,45 +39,43 @@ const fe = 36, he = 4, S = 8, g = -1, me = [
|
|
|
38
39
|
})
|
|
39
40
|
],
|
|
40
41
|
placement: "bottom-start",
|
|
41
|
-
whileElementsMounted:
|
|
42
|
+
whileElementsMounted: ce
|
|
42
43
|
}), s = A(() => {
|
|
43
44
|
const e = v.trim().toLowerCase();
|
|
44
|
-
return e === "" ? [...l] : l.filter(
|
|
45
|
-
(t) => t.value.toLowerCase().includes(e) || (t.label ?? "").toLowerCase().includes(e)
|
|
46
|
-
);
|
|
45
|
+
return e === "" ? [...l] : l.filter((t) => ee(t, e));
|
|
47
46
|
}, [v, l]), _ = i(
|
|
48
47
|
() => $.current,
|
|
49
48
|
[]
|
|
50
|
-
),
|
|
49
|
+
), V = i(() => he, []), f = q({
|
|
51
50
|
count: s.length,
|
|
52
|
-
estimateSize:
|
|
51
|
+
estimateSize: V,
|
|
53
52
|
getScrollElement: _,
|
|
54
53
|
overscan: 6,
|
|
55
54
|
useFlushSync: !1
|
|
56
|
-
}),
|
|
57
|
-
|
|
55
|
+
}), G = f.getVirtualItems(), c = i(() => {
|
|
56
|
+
C(""), y(g), O(!1);
|
|
58
57
|
}, []), p = i(() => {
|
|
59
|
-
|
|
60
|
-
}, []),
|
|
58
|
+
O(!0);
|
|
59
|
+
}, []), H = i(
|
|
61
60
|
(e) => {
|
|
62
|
-
e.preventDefault(), e.stopPropagation(), r ? c() : (
|
|
61
|
+
e.preventDefault(), e.stopPropagation(), r ? c() : (u.current?.focus(), p());
|
|
63
62
|
},
|
|
64
63
|
[r, c, p]
|
|
65
|
-
),
|
|
66
|
-
|
|
64
|
+
), W = i(() => {
|
|
65
|
+
u.current?.focus(), p();
|
|
67
66
|
}, [p]), h = i(
|
|
68
67
|
(e) => {
|
|
69
68
|
b(e)(), c();
|
|
70
69
|
},
|
|
71
70
|
[b, c]
|
|
72
|
-
),
|
|
71
|
+
), K = i(
|
|
73
72
|
(e) => (t) => {
|
|
74
73
|
t.stopPropagation(), h(e);
|
|
75
74
|
},
|
|
76
75
|
[h]
|
|
77
|
-
),
|
|
76
|
+
), L = i(
|
|
78
77
|
(e) => {
|
|
79
|
-
|
|
78
|
+
C(e.target.value), y(g);
|
|
80
79
|
},
|
|
81
80
|
[]
|
|
82
81
|
), E = i(
|
|
@@ -86,22 +85,22 @@ const fe = 36, he = 4, S = 8, g = -1, me = [
|
|
|
86
85
|
return;
|
|
87
86
|
}
|
|
88
87
|
if (s.length === 0) return;
|
|
89
|
-
const t =
|
|
90
|
-
y(t),
|
|
88
|
+
const t = ve(e, d, s.length - 1);
|
|
89
|
+
y(t), f.scrollToIndex(t);
|
|
91
90
|
},
|
|
92
|
-
[d, s.length, p, r,
|
|
91
|
+
[d, s.length, p, r, f]
|
|
93
92
|
), M = i(
|
|
94
93
|
(e) => {
|
|
95
94
|
const { key: t } = e;
|
|
96
95
|
if (t === "Escape")
|
|
97
|
-
c(),
|
|
96
|
+
c(), u.current?.blur();
|
|
98
97
|
else if (t === "Tab")
|
|
99
98
|
r && c();
|
|
100
99
|
else if (t === "Enter") {
|
|
101
100
|
e.preventDefault();
|
|
102
101
|
const D = r ? s[d] : void 0;
|
|
103
102
|
D !== void 0 && h(D.value);
|
|
104
|
-
} else
|
|
103
|
+
} else ge.includes(t) && (e.preventDefault(), E(t));
|
|
105
104
|
},
|
|
106
105
|
[d, s, c, E, r, h]
|
|
107
106
|
), j = A(() => {
|
|
@@ -112,10 +111,10 @@ const fe = 36, he = 4, S = 8, g = -1, me = [
|
|
|
112
111
|
(e) => `${o}-option-${e}`,
|
|
113
112
|
[o]
|
|
114
113
|
), B = d === g ? void 0 : T(d);
|
|
115
|
-
return
|
|
116
|
-
/* @__PURE__ */ w(
|
|
117
|
-
/* @__PURE__ */ n(
|
|
118
|
-
|
|
114
|
+
return se(r ? P : null, c, [x.floating]), /* @__PURE__ */ w(te, { ref: R, children: [
|
|
115
|
+
/* @__PURE__ */ w(oe, { onClick: W, ref: x.setReference, children: [
|
|
116
|
+
/* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(
|
|
117
|
+
re,
|
|
119
118
|
{
|
|
120
119
|
"aria-activedescendant": B,
|
|
121
120
|
"aria-autocomplete": "list",
|
|
@@ -125,29 +124,29 @@ const fe = 36, he = 4, S = 8, g = -1, me = [
|
|
|
125
124
|
autoComplete: "off",
|
|
126
125
|
id: `${o}-search`,
|
|
127
126
|
name: `${o}-search`,
|
|
128
|
-
onChange:
|
|
127
|
+
onChange: L,
|
|
129
128
|
onFocus: p,
|
|
130
129
|
onKeyDown: M,
|
|
131
130
|
placeholder: z,
|
|
132
|
-
ref:
|
|
131
|
+
ref: u,
|
|
133
132
|
role: "combobox",
|
|
134
133
|
type: "search",
|
|
135
134
|
value: r ? v : j
|
|
136
135
|
}
|
|
137
136
|
) }),
|
|
138
137
|
/* @__PURE__ */ n(
|
|
139
|
-
|
|
138
|
+
ie,
|
|
140
139
|
{
|
|
141
140
|
"aria-controls": `popover-${o}`,
|
|
142
141
|
"aria-expanded": r,
|
|
143
142
|
"aria-label": `${o}-toggle`,
|
|
144
|
-
onClick:
|
|
143
|
+
onClick: H,
|
|
145
144
|
type: "button",
|
|
146
145
|
children: /* @__PURE__ */ n(
|
|
147
146
|
N,
|
|
148
147
|
{
|
|
149
148
|
icon: r ? "chevron-up" : "chevron-down",
|
|
150
|
-
iconColor:
|
|
149
|
+
iconColor: I.palette.gray[700],
|
|
151
150
|
iconSize: "sm",
|
|
152
151
|
iconType: "fa-light"
|
|
153
152
|
}
|
|
@@ -155,29 +154,29 @@ const fe = 36, he = 4, S = 8, g = -1, me = [
|
|
|
155
154
|
}
|
|
156
155
|
)
|
|
157
156
|
] }),
|
|
158
|
-
r ? /* @__PURE__ */ n(
|
|
157
|
+
r ? /* @__PURE__ */ n(U, { children: /* @__PURE__ */ n(
|
|
159
158
|
J,
|
|
160
159
|
{
|
|
161
160
|
"data-testid": `${o}-dropdown`,
|
|
162
161
|
id: `popover-${o}`,
|
|
163
162
|
ref: x.setFloating,
|
|
164
163
|
style: F,
|
|
165
|
-
children: /* @__PURE__ */ n(
|
|
164
|
+
children: /* @__PURE__ */ n(le, { ref: $, role: "listbox", children: s.length > 0 ? /* @__PURE__ */ n(
|
|
166
165
|
"div",
|
|
167
166
|
{
|
|
168
167
|
role: "presentation",
|
|
169
168
|
style: {
|
|
170
|
-
height: `${
|
|
169
|
+
height: `${f.getTotalSize()}px`,
|
|
171
170
|
position: "relative",
|
|
172
171
|
width: "100%"
|
|
173
172
|
},
|
|
174
|
-
children:
|
|
173
|
+
children: G.map((e) => {
|
|
175
174
|
const t = s[e.index];
|
|
176
175
|
return /* @__PURE__ */ n(
|
|
177
176
|
"div",
|
|
178
177
|
{
|
|
179
178
|
"data-index": e.index,
|
|
180
|
-
ref:
|
|
179
|
+
ref: f.measureElement,
|
|
181
180
|
role: "presentation",
|
|
182
181
|
style: {
|
|
183
182
|
left: 0,
|
|
@@ -192,15 +191,15 @@ const fe = 36, he = 4, S = 8, g = -1, me = [
|
|
|
192
191
|
as: "button",
|
|
193
192
|
"data-active": e.index === d,
|
|
194
193
|
id: T(e.index),
|
|
195
|
-
onClick:
|
|
194
|
+
onClick: K(t.value),
|
|
196
195
|
role: "option",
|
|
197
196
|
tabIndex: -1,
|
|
198
197
|
type: "button",
|
|
199
198
|
children: [
|
|
200
199
|
/* @__PURE__ */ n(
|
|
201
|
-
|
|
200
|
+
ae,
|
|
202
201
|
{
|
|
203
|
-
color:
|
|
202
|
+
color: I.palette.gray[800],
|
|
204
203
|
display: "block",
|
|
205
204
|
overflow: "hidden",
|
|
206
205
|
size: "md",
|
|
@@ -234,5 +233,5 @@ const fe = 36, he = 4, S = 8, g = -1, me = [
|
|
|
234
233
|
] });
|
|
235
234
|
};
|
|
236
235
|
export {
|
|
237
|
-
|
|
236
|
+
Pe as SingleSelectSearch
|
|
238
237
|
};
|
|
@@ -52,6 +52,8 @@ interface IFilterItem {
|
|
|
52
52
|
label?: string;
|
|
53
53
|
/** How many records match this option. Rendered right-aligned when set. */
|
|
54
54
|
count?: number;
|
|
55
|
+
/** Extra terms the combobox and includeExclude searches match without rendering them. */
|
|
56
|
+
searchTerms?: readonly string[];
|
|
55
57
|
}
|
|
56
58
|
/** Filter option properties. */
|
|
57
59
|
interface IFilterOptionProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IFilterOptionProps, IFiltersOptions } from './types';
|
|
1
|
+
import { IFilterItem, IFilterOptionProps, IFiltersOptions } from './types';
|
|
2
2
|
declare const MAX_FILTERS_LENGTH = 7;
|
|
3
3
|
interface IPartitionedFilters {
|
|
4
4
|
menu: IFiltersOptions[];
|
|
@@ -16,4 +16,6 @@ declare const filterMenu: (groupedFilters: Readonly<Record<string, IFiltersOptio
|
|
|
16
16
|
group: string;
|
|
17
17
|
filters: IFiltersOptions[];
|
|
18
18
|
}[];
|
|
19
|
-
|
|
19
|
+
/** Whether the item's value, label or search terms hold the lowercase query. */
|
|
20
|
+
declare const matchesQuery: (item: Readonly<IFilterItem>, normalized: string) => boolean;
|
|
21
|
+
export { filterMenu, getGroupedFilters, getSelectedFilter, matchesQuery, MAX_FILTERS_LENGTH, partitionFilters, };
|
|
@@ -1,36 +1,39 @@
|
|
|
1
|
-
const
|
|
2
|
-
(
|
|
1
|
+
const g = 7, m = (n) => n.reduce(
|
|
2
|
+
(e, t) => t.type === "toggle" ? { ...e, inline: [...e.inline, t] } : t.type === "select" ? { ...e, pinned: [...e.pinned, t] } : { ...e, menu: [...e.menu, t] },
|
|
3
3
|
{ menu: [], inline: [], pinned: [] }
|
|
4
|
-
),
|
|
5
|
-
(
|
|
4
|
+
), b = (n) => n.reduce(
|
|
5
|
+
(e, t) => (t.group ? (e[t.group] || (e[t.group] = []), e[t.group].push(t)) : e.default = [...e.default || [], t], e),
|
|
6
6
|
{}
|
|
7
|
-
), h = (
|
|
8
|
-
const
|
|
9
|
-
if (!
|
|
7
|
+
), h = (n, e, t) => {
|
|
8
|
+
const s = n.find((r) => r.id === e), u = s?.hideMenuTitle ?? !1;
|
|
9
|
+
if (!s || !t)
|
|
10
10
|
return {
|
|
11
|
-
hideMenuTitle:
|
|
12
|
-
label:
|
|
13
|
-
options:
|
|
11
|
+
hideMenuTitle: u,
|
|
12
|
+
label: s?.label ?? "",
|
|
13
|
+
options: s?.options ?? []
|
|
14
14
|
};
|
|
15
|
-
const
|
|
16
|
-
if (!
|
|
17
|
-
const d = [...
|
|
18
|
-
const
|
|
19
|
-
return
|
|
15
|
+
const o = t.split(","), l = s.options?.map((r) => {
|
|
16
|
+
if (!r.items) return r;
|
|
17
|
+
const d = [...r.items].sort((p, a) => {
|
|
18
|
+
const i = o.includes(p.value), c = o.includes(a.value);
|
|
19
|
+
return i === c ? 0 : i ? -1 : 1;
|
|
20
20
|
});
|
|
21
|
-
return { ...
|
|
21
|
+
return { ...r, items: d };
|
|
22
22
|
});
|
|
23
|
-
return { hideMenuTitle:
|
|
24
|
-
},
|
|
25
|
-
const
|
|
26
|
-
(
|
|
23
|
+
return { hideMenuTitle: u, label: s.label, options: l };
|
|
24
|
+
}, L = (n, e) => Object.entries(n).map(([t, s]) => {
|
|
25
|
+
const u = s.filter(
|
|
26
|
+
(o) => !o.hide && o.label.toLowerCase().includes(e.toLowerCase())
|
|
27
27
|
);
|
|
28
|
-
return
|
|
29
|
-
}).filter((
|
|
28
|
+
return u.length > 0 ? { group: t, filters: u } : void 0;
|
|
29
|
+
}).filter((t) => t !== void 0), f = (n, e) => n.value.toLowerCase().includes(e) || (n.label ?? "").toLowerCase().includes(e) || (n.searchTerms ?? []).some(
|
|
30
|
+
(t) => t.toLowerCase().includes(e)
|
|
31
|
+
);
|
|
30
32
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
g as MAX_FILTERS_LENGTH,
|
|
34
|
+
L as filterMenu,
|
|
35
|
+
b as getGroupedFilters,
|
|
34
36
|
h as getSelectedFilter,
|
|
35
|
-
f as
|
|
37
|
+
f as matchesQuery,
|
|
38
|
+
m as partitionFilters
|
|
36
39
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as i, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g, useCallback as k } from "react";
|
|
3
|
+
import { useTheme as x } from "styled-components";
|
|
4
|
+
import { StyledToggle as u } from "./styles.js";
|
|
5
|
+
import "../typography/heading/index.js";
|
|
6
|
+
import "../typography/span/index.js";
|
|
7
|
+
import { Text as c } from "../typography/text/index.js";
|
|
8
|
+
const C = ({
|
|
9
|
+
maxVisible: r = 5,
|
|
10
|
+
separator: t = ", ",
|
|
11
|
+
showLessLabel: m,
|
|
12
|
+
showMoreLabel: s,
|
|
13
|
+
values: e
|
|
14
|
+
}) => {
|
|
15
|
+
const n = x(), [o, a] = g(!1), d = e.length - r, l = k(() => {
|
|
16
|
+
a((h) => !h);
|
|
17
|
+
}, []);
|
|
18
|
+
if (d <= 0)
|
|
19
|
+
return /* @__PURE__ */ i(
|
|
20
|
+
c,
|
|
21
|
+
{
|
|
22
|
+
color: n.palette.gray[800],
|
|
23
|
+
size: "md",
|
|
24
|
+
wordBreak: "break-word",
|
|
25
|
+
children: e.join(t)
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
const p = o ? e : e.slice(0, r);
|
|
29
|
+
return /* @__PURE__ */ f(c, { color: n.palette.gray[800], size: "md", wordBreak: "break-word", children: [
|
|
30
|
+
`${p.join(t)} `,
|
|
31
|
+
/* @__PURE__ */ i(u, { "aria-expanded": o, onClick: l, type: "button", children: o ? m : s(d) })
|
|
32
|
+
] });
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
C as TruncatedValues
|
|
36
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react-vite';
|
|
2
|
+
import { ITruncatedValuesProps } from './types';
|
|
3
|
+
declare const config: Meta;
|
|
4
|
+
declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, Readonly<ITruncatedValuesProps>>;
|
|
5
|
+
declare const FitsTheLimit: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, Readonly<ITruncatedValuesProps>>;
|
|
6
|
+
export { Default, FitsTheLimit };
|
|
7
|
+
export default config;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const StyledToggle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>> & string;
|
|
2
|
+
export { StyledToggle };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { styled as r } from "styled-components";
|
|
2
|
+
const t = r.button`
|
|
3
|
+
${({ theme: o }) => `
|
|
4
|
+
background: none;
|
|
5
|
+
border: none;
|
|
6
|
+
color: ${o.palette.gray[400]};
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
font: inherit;
|
|
9
|
+
padding: 0;
|
|
10
|
+
text-decoration: underline;
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
color: ${o.palette.gray[600]};
|
|
14
|
+
}
|
|
15
|
+
`}
|
|
16
|
+
`;
|
|
17
|
+
export {
|
|
18
|
+
t as StyledToggle
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Truncated values component props.
|
|
3
|
+
* @interface ITruncatedValuesProps
|
|
4
|
+
* @property { number } [maxVisible] - How many values to show before
|
|
5
|
+
* truncating.
|
|
6
|
+
* @property { string } [separator] - The text placed between values.
|
|
7
|
+
* @property { string } showLessLabel - The text for the control that hides the
|
|
8
|
+
* values beyond the limit again.
|
|
9
|
+
* @property { Function } showMoreLabel - Receives how many values remain hidden
|
|
10
|
+
* and returns the text for the control that reveals them.
|
|
11
|
+
* @property { string[] } values - The values to list on one line of text.
|
|
12
|
+
*/
|
|
13
|
+
interface ITruncatedValuesProps {
|
|
14
|
+
maxVisible?: number;
|
|
15
|
+
separator?: string;
|
|
16
|
+
showLessLabel: string;
|
|
17
|
+
showMoreLabel: (remaining: number) => string;
|
|
18
|
+
values: string[];
|
|
19
|
+
}
|
|
20
|
+
export type { ITruncatedValuesProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export * from './components/tooltip';
|
|
|
87
87
|
export * from './components/tour';
|
|
88
88
|
export * from './components/tree';
|
|
89
89
|
export * from './components/truncated-list';
|
|
90
|
+
export * from './components/truncated-values';
|
|
90
91
|
export * from './components/typography';
|
|
91
92
|
export * from './components/weaknesses-card';
|
|
92
93
|
export * from './context';
|
package/dist/index.js
CHANGED
|
@@ -115,45 +115,46 @@ import { Tooltip as Pt } from "./components/tooltip/index.js";
|
|
|
115
115
|
import { Tour as yt, baseStep as Lt, defaultOptions as At } from "./components/tour/index.js";
|
|
116
116
|
import { Tree as kt } from "./components/tree/index.js";
|
|
117
117
|
import { TruncatedList as Ot } from "./components/truncated-list/index.js";
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
118
|
+
import { TruncatedValues as Et } from "./components/truncated-values/index.js";
|
|
119
|
+
import { Heading as Wt } from "./components/typography/heading/index.js";
|
|
120
|
+
import { Span as Ut } from "./components/typography/span/index.js";
|
|
121
|
+
import { Text as Gt } from "./components/typography/text/index.js";
|
|
122
|
+
import { WeaknessesCard as Kt } from "./components/weaknesses-card/index.js";
|
|
123
|
+
import { DesignsContext as _t } from "./context/react/index.js";
|
|
124
|
+
import { DesignsProvider as qt } from "./globals/designs-provider/index.js";
|
|
125
|
+
import { GlobalTypography as Qt } from "./globals/global-typography/index.js";
|
|
126
|
+
import { DesignTokensCss as Zt } from "./globals/design-tokens-css/index.js";
|
|
127
|
+
import { useActiveSection as rp } from "./hooks/use-active-section.js";
|
|
128
|
+
import { useCarousel as ep } from "./hooks/use-carousel.js";
|
|
129
|
+
import { useClickOutside as pp } from "./hooks/use-click-outside.js";
|
|
130
|
+
import { useCloudinaryImage as fp } from "./hooks/use-cloudinary-image.js";
|
|
131
|
+
import { useColumnsModal as ap } from "./hooks/use-columns-modal.js";
|
|
132
|
+
import { useDebouncedCallback as ip } from "./hooks/use-debounced-callback.js";
|
|
133
|
+
import { useFiltersValues as lp } from "./hooks/use-filters.js";
|
|
134
|
+
import { useModal as dp } from "./hooks/use-modal.js";
|
|
135
|
+
import { useMountEffect as cp } from "./hooks/use-mount-effect.js";
|
|
136
|
+
import { useSearch as Sp } from "./hooks/use-search.js";
|
|
137
|
+
import { formatDate as Ip, formatDateTime as bp, formatDateTimeInInput as Bp } from "./utils/date.js";
|
|
138
|
+
import { EXCLUDE_TOKEN as Fp, analyzeFilterValue as Dp, formatCheckboxesFilterValue as Pp, formatIncludeExcludeFilterValue as vp, formatTextFilterValue as yp, getPreservedValues as Lp, normalizeCheckboxesFilterValue as Ap, parseCheckboxesFilterValue as Mp, parseIncludeExcludeFilterValue as kp, parseTextFilterValue as wp } from "./utils/filters.js";
|
|
139
|
+
import { normalizeDate as Vp, normalizeNumber as Ep } from "./utils/normalizers.js";
|
|
140
|
+
import { openUrl as Wp } from "./utils/open-url.js";
|
|
141
|
+
import { clearStorage as Up, getPathname as zp, getStorageItem as Gp } from "./utils/storage.js";
|
|
142
|
+
import { safeUrl as Kp } from "./utils/url.js";
|
|
143
|
+
import { ActiveFilters as _p } from "./components/filters/active-filters/index.js";
|
|
144
|
+
import { ColumnsModal as qp } from "./components/modal/columns-modal/index.js";
|
|
145
|
+
import { Controller as Qp, useController as Yp, useFieldArray as Zp, useFormContext as $p, useWatch as rm } from "./node_modules/react-hook-form/dist/index.esm.js";
|
|
146
|
+
import { InnerForm as em } from "./components/form/inner-form/index.js";
|
|
147
|
+
import { ItemContent as pm } from "./components/table-content/item-content/index.js";
|
|
148
|
+
import { ListItemsWrapper as fm } from "./components/list-item/styles.js";
|
|
149
|
+
import { ModalConfirm as am } from "./components/modal/modal-confirm/index.js";
|
|
150
|
+
import { ModalFooter as im } from "./components/modal/footer/index.js";
|
|
151
|
+
import { ProgressStep as lm } from "./components/progress-indicator/step/index.js";
|
|
152
|
+
import { TimeLineCard as dm } from "./components/timeline/card/index.js";
|
|
153
|
+
import { partitionFilters as cm } from "./components/filters/utils.js";
|
|
154
|
+
import { useNumberFormatter as Sm } from "./node_modules/react-aria/dist/private/i18n/useNumberFormatter.js";
|
|
154
155
|
export {
|
|
155
156
|
b as Accordion,
|
|
156
|
-
|
|
157
|
+
_p as ActiveFilters,
|
|
157
158
|
h as AdvancedBadge,
|
|
158
159
|
D as AdvisoriesCard,
|
|
159
160
|
v as Alert,
|
|
@@ -180,20 +181,20 @@ export {
|
|
|
180
181
|
tr as CodeSnippet,
|
|
181
182
|
Oo as Col,
|
|
182
183
|
mr as CollapsibleCard,
|
|
183
|
-
|
|
184
|
+
qp as ColumnsModal,
|
|
184
185
|
jr as ComboBox,
|
|
185
186
|
sr as ComparisonTable,
|
|
186
187
|
gr as Container,
|
|
187
|
-
|
|
188
|
+
Qp as Controller,
|
|
188
189
|
Tr as CopyButton,
|
|
189
190
|
xr as CustomThemeProvider,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
Zt as DesignTokensCss,
|
|
192
|
+
_t as DesignsContext,
|
|
193
|
+
qt as DesignsProvider,
|
|
193
194
|
br as Divider,
|
|
194
195
|
hr as Drawer,
|
|
195
196
|
Dr as Dropdown,
|
|
196
|
-
|
|
197
|
+
Fp as EXCLUDE_TOKEN,
|
|
197
198
|
oo as Editable,
|
|
198
199
|
vr as EmptyState,
|
|
199
200
|
Fo as ErrorMessage,
|
|
@@ -202,15 +203,15 @@ export {
|
|
|
202
203
|
wr as Filters,
|
|
203
204
|
Vr as Form,
|
|
204
205
|
Eo as Gap,
|
|
205
|
-
|
|
206
|
+
Qt as GlobalTypography,
|
|
206
207
|
Rr as GridContainer,
|
|
207
208
|
Nr as GroupSelector,
|
|
208
|
-
|
|
209
|
+
Wt as Heading,
|
|
209
210
|
zr as Icon,
|
|
210
211
|
Hr as IconButton,
|
|
211
212
|
X as IndicatorCard,
|
|
212
213
|
Xr as IndicatorCardDB,
|
|
213
|
-
|
|
214
|
+
em as InnerForm,
|
|
214
215
|
to as InputArray,
|
|
215
216
|
Jr as InputDate,
|
|
216
217
|
Yr as InputDateRange,
|
|
@@ -221,11 +222,11 @@ export {
|
|
|
221
222
|
xo as InputSection,
|
|
222
223
|
no as InputTags,
|
|
223
224
|
Po as ItemCardDB,
|
|
224
|
-
|
|
225
|
+
pm as ItemContent,
|
|
225
226
|
yo as LanguageSwitcher,
|
|
226
227
|
Uo as Link,
|
|
227
228
|
Go as ListItem,
|
|
228
|
-
|
|
229
|
+
fm as ListItemsWrapper,
|
|
229
230
|
Ko as LittleFlag,
|
|
230
231
|
_o as Loading,
|
|
231
232
|
qo as Logo,
|
|
@@ -233,8 +234,8 @@ export {
|
|
|
233
234
|
Zo as Menu,
|
|
234
235
|
re as MessageBanner,
|
|
235
236
|
ee as Modal,
|
|
236
|
-
|
|
237
|
-
|
|
237
|
+
am as ModalConfirm,
|
|
238
|
+
im as ModalFooter,
|
|
238
239
|
pe as Notification,
|
|
239
240
|
fe as NotificationSign,
|
|
240
241
|
ae as OAuthSelector,
|
|
@@ -249,7 +250,7 @@ export {
|
|
|
249
250
|
Ie as PriorityScore,
|
|
250
251
|
Be as ProgressBar,
|
|
251
252
|
Fe as ProgressIndicator,
|
|
252
|
-
|
|
253
|
+
lm as ProgressStep,
|
|
253
254
|
ye as RadioButton,
|
|
254
255
|
Ae as RankPosition,
|
|
255
256
|
Wo as Row,
|
|
@@ -266,7 +267,7 @@ export {
|
|
|
266
267
|
Ze as ShowOnHover,
|
|
267
268
|
rt as SlideOutMenu,
|
|
268
269
|
et as Slider,
|
|
269
|
-
|
|
270
|
+
Ut as Span,
|
|
270
271
|
pt as StepLapse,
|
|
271
272
|
ft as Stepper,
|
|
272
273
|
at as SummaryCard,
|
|
@@ -276,42 +277,43 @@ export {
|
|
|
276
277
|
ct as TableOfContents,
|
|
277
278
|
St as Tabs,
|
|
278
279
|
It as Tag,
|
|
279
|
-
|
|
280
|
+
Gt as Text,
|
|
280
281
|
So as TextArea,
|
|
281
282
|
Io as TextInput,
|
|
282
283
|
Bt as TimeLine,
|
|
283
|
-
|
|
284
|
+
dm as TimeLineCard,
|
|
284
285
|
Ft as Toggle,
|
|
285
286
|
Pt as Tooltip,
|
|
286
287
|
yt as Tour,
|
|
287
288
|
kt as Tree,
|
|
288
289
|
Ot as TruncatedList,
|
|
289
|
-
|
|
290
|
-
|
|
290
|
+
Et as TruncatedValues,
|
|
291
|
+
Kt as WeaknessesCard,
|
|
292
|
+
Dp as analyzeFilterValue,
|
|
291
293
|
Lt as baseStep,
|
|
292
|
-
|
|
294
|
+
Up as clearStorage,
|
|
293
295
|
At as defaultOptions,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
296
|
+
Pp as formatCheckboxesFilterValue,
|
|
297
|
+
Ip as formatDate,
|
|
298
|
+
bp as formatDateTime,
|
|
299
|
+
Bp as formatDateTimeInInput,
|
|
300
|
+
vp as formatIncludeExcludeFilterValue,
|
|
301
|
+
yp as formatTextFilterValue,
|
|
302
|
+
zp as getPathname,
|
|
303
|
+
Lp as getPreservedValues,
|
|
304
|
+
Gp as getStorageItem,
|
|
303
305
|
l as getStyledConfig,
|
|
304
306
|
m as hiddenProps,
|
|
305
307
|
ar as icons,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
308
|
+
Ap as normalizeCheckboxesFilterValue,
|
|
309
|
+
Vp as normalizeDate,
|
|
310
|
+
Ep as normalizeNumber,
|
|
311
|
+
Wp as openUrl,
|
|
312
|
+
Mp as parseCheckboxesFilterValue,
|
|
313
|
+
kp as parseIncludeExcludeFilterValue,
|
|
314
|
+
wp as parseTextFilterValue,
|
|
315
|
+
cm as partitionFilters,
|
|
316
|
+
Kp as safeUrl,
|
|
315
317
|
u as setBorder,
|
|
316
318
|
d as setDisplay,
|
|
317
319
|
C as setInteraction,
|
|
@@ -320,22 +322,22 @@ export {
|
|
|
320
322
|
S as setPosition,
|
|
321
323
|
T as setText,
|
|
322
324
|
nr as theme,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
325
|
+
rp as useActiveSection,
|
|
326
|
+
ep as useCarousel,
|
|
327
|
+
pp as useClickOutside,
|
|
328
|
+
fp as useCloudinaryImage,
|
|
329
|
+
ap as useColumnsModal,
|
|
328
330
|
ur as useConditionsDialog,
|
|
329
331
|
Cr as useConfirmDialog,
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
332
|
+
Yp as useController,
|
|
333
|
+
ip as useDebouncedCallback,
|
|
334
|
+
Zp as useFieldArray,
|
|
335
|
+
lp as useFiltersValues,
|
|
336
|
+
$p as useFormContext,
|
|
337
|
+
dp as useModal,
|
|
338
|
+
cp as useMountEffect,
|
|
339
|
+
Sm as useNumberFormatter,
|
|
340
|
+
Sp as useSearch,
|
|
341
|
+
rm as useWatch,
|
|
340
342
|
t as variantBuilder
|
|
341
343
|
};
|
package/package.json
CHANGED
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
58
58
|
"eslint-plugin-storybook": "10.6.2",
|
|
59
59
|
"jsdom": "27.4.0",
|
|
60
|
-
"next": "16.
|
|
60
|
+
"next": "16.4.1",
|
|
61
61
|
"playwright": "1.60.0",
|
|
62
62
|
"postcss-styled-syntax": "0.7.1",
|
|
63
63
|
"prettier": "3.9.6",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"./dist/index.js"
|
|
136
136
|
],
|
|
137
137
|
"typings": "./dist/index.d.ts",
|
|
138
|
-
"version": "9.
|
|
138
|
+
"version": "9.7.0"
|
|
139
139
|
}
|