sodtrack-web-ui 0.56.1 → 0.56.3
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/chunk-QI7PGCJV.mjs +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/list-item-arrow.css +1 -1
- package/dist/list-item-arrow.js +1 -1
- package/dist/list-item-arrow.mjs +1 -1
- package/dist/list-item-checkbox.css +1 -1
- package/dist/list-item-checkbox.js +1 -1
- package/dist/list-item-checkbox.mjs +1 -1
- package/dist/list-item.css +1 -1
- package/dist/list-item.d.mts +2 -0
- package/dist/list-item.d.ts +2 -0
- package/dist/list-item.js +1 -1
- package/dist/list-item.mjs +1 -1
- package/dist/tailwind-preset.js +1 -1
- package/dist/tailwind-preset.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-KMV6E3ND.mjs +0 -1
package/dist/tailwind-preset.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var r={content:[],theme:{spacing:{0:"0",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",16:"3.5rem"},colors:{primary:{50:"rgb(var(--color-primary-50) / <alpha-value>)",100:"rgb(var(--color-primary-100) / <alpha-value>)",200:"rgb(var(--color-primary-200) / <alpha-value>)",300:"rgb(var(--color-primary-300) / <alpha-value>)",400:"rgb(var(--color-primary-400) / <alpha-value>)",500:"rgb(var(--color-primary-500) / <alpha-value>)",600:"rgb(var(--color-primary-600) / <alpha-value>)",700:"rgb(var(--color-primary-700) / <alpha-value>)",800:"rgb(var(--color-primary-800) / <alpha-value>)",900:"rgb(var(--color-primary-900) / <alpha-value>)"},"transparent-primary":{10:"rgb(var(--color-primary-400) / 0.1)",20:"rgb(var(--color-primary-400) / 0.2)",30:"rgb(var(--color-primary-400) / 0.3)",40:"rgb(var(--color-primary-400) / 0.4)"},"transparent-neutral":{10:"rgb(var(--color-neutral-50) / 0.1)",20:"rgb(var(--color-neutral-100) / 0.2)",30:"rgb(var(--color-neutral-200) / 0.3)",40:"rgb(var(--color-neutral-300) / 0.4)",50:"rgb(var(--color-neutral-400) / 0.5)"},neutral:{50:"rgb(var(--color-neutral-50) / <alpha-value>)",70:"rgb(var(--color-neutral-70) / <alpha-value>)",80:"rgb(var(--color-neutral-80) / <alpha-value>)",100:"rgb(var(--color-neutral-100) / <alpha-value>)",200:"rgb(var(--color-neutral-200) / <alpha-value>)",300:"rgb(var(--color-neutral-300) / <alpha-value>)",400:"rgb(var(--color-neutral-400) / <alpha-value>)",500:"rgb(var(--color-neutral-500) / <alpha-value>)",600:"rgb(var(--color-neutral-600) / <alpha-value>)",700:"rgb(var(--color-neutral-700) / <alpha-value>)",800:"rgb(var(--color-neutral-800) / <alpha-value>)",900:"rgb(var(--color-neutral-900) / <alpha-value>)"},error:{100:"rgb(var(--color-error-100) / <alpha-value>)",300:"rgb(var(--color-error-300) / <alpha-value>)",500:"rgb(var(--color-error-500) / <alpha-value>)",700:"rgb(var(--color-error-700) / <alpha-value>)",900:"rgb(var(--color-error-900) / <alpha-value>)"},"transparent-error":{10:"rgb(var(--color-error-300) / 0.1)"},warning:{100:"#FFF9D6",300:"#FFE885",500:"#FFCF35",700:"#D69A00",900:"#5C4B22"},success:{100:"#E3FAD7",300:"#67C45E",500:"#319E31",700:"#187128",900:"#094B20"},info:{100:"#CFEBFE",300:"#71B6FA",500:"#1570EF",700:"#0A40AC",900:"#273767"},zoro:{300:"#E9F0C4",500:"#DBE3AB"},ussop:{300:"#D5E9CE",500:"#BFE4B2"},crocodile:{300:"#CDE0B9",500:"#BED5A4"},silvers:{300:"#DFF7DE",500:"#CFF4CE"},buggy:{300:"#E5F5B3",500:"#DAEF9D"},nami:{300:"#FFDBBB",500:"#FFCEA2"},shanks:{300:"#F6CFBC",500:"#FBC5A9"},piiman:{300:"#FFE3B4",500:"#FFDA9B"},sanji:{300:"#FFECCA",500:"#FFE0A9"},ace:{300:"#FFDAD3",500:"#FFC1B5"},hancock:{300:"#F6CFE6",500:"#F3B9DC"},chopper:{300:"#FFE2F8",500:"#FFCDF3"},bentham:{300:"#EDD8F0",500:"#ECCCF1"},ivankov:{300:"#F0E4FF",500:"#E6D1FF"},brook:{300:"#E2E3FF",500:"#CED0FF"},luffy:{300:"#D8E3FF",500:"#C7D7FF"},frankie:{300:"#CDF1F8",500:"#B8EEF9"},jinbe:{300:"#CDF0FF",500:"#B3E8FF"},robin:{300:"#BAD2F5",500:"#ADCDFB"},law:{300:"#CBD8F3",500:"#B0C3EA"},sunny:{800:"#4B7E12"},polartang:{600:"#C68130",800:"#A75A00"},merry:{600:"#8F3FA2",800:"#581769"},jackson:{800:"#4E6697"}},extend:{translate:{.5:"0.125rem",1.5:"0.375rem",4.5:"1.125rem",5.5:"1.375rem"},ringWidth:{3:"3px",6:"6px",12:"12px"},letterSpacing:{body:"0.32px","body-lg":"0.36px",sm:"0.28px"},margin:{.125:"0.03125rem",.25:"0.0625rem",.5:"0.125rem",1.5:"0.375rem",1.75:"0.4375rem",2.5:"0.625rem",4.5:"1.125rem"},padding:{.25:"0.0625rem",.5:"0.125rem",.75:"0.1875rem",2.5:"0.625rem",3.75:"0.9375rem",4.25:"1.0625rem",4.5:"1.125rem",14:"3.5rem",20:"5rem"},gap:{1.5:"0.375rem",2.75:"0.6875rem",3.25:"0.8125rem",4.5:"1.125rem"},width:{3.5:"0.875rem",4.5:"1.125rem",5.5:"1.375rem",13:"3.25rem",14:"3.5rem",18.5:"4.625rem",29:"7.25rem",55:"13.75rem",112.5:"28.125rem",117.5:"29.375rem",187:"46.75rem",235:"58.75rem",312:"78rem"},minWidth:{4.5:"1.125rem"},minHeight:{4.5:"1.125rem",15.75:"3.9375rem",40:"10rem"},maxHeight:{84:"21rem"},height:{3.5:"0.875rem",4.5:"1.125rem",5.5:"1.375rem",14:"3.5rem",15:"3.75rem",16:"4rem",18:"4.5rem",20:"5rem",22:"5.5rem"},borderWidth:{1:"1px",1.5:"1.5px",3:"3px"},borderColor:{transparent:"transparent"},inset:{1.5:"0.375rem",2.5:"0.625rem",3.875:"0.96875rem",14:"3.5rem",22:"6rem"},keyframes:{hide:{from:{opacity:"1"},to:{opacity:"0"}},"tooltip-enter":{from:{opacity:"0",transform:"scale(0.95)"},to:{opacity:"1",transform:"scale(1)"}},"tooltip-exit":{from:{opacity:"1",transform:"scale(1)"},to:{opacity:"0",transform:"scale(0.95)"}},slideIn:{from:{transform:"translateX(100%)"},to:{transform:"translateX(0)"}},swipeOut:{from:{transform:"translateX(0)"},to:{transform:"translateX(100%)"}},"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"tooltip-enter":"tooltip-enter 0.2s ease-out","tooltip-exit":"tooltip-exit 0.2s ease-in forwards",hide:"hide 100ms ease-in",slideIn:"slideIn 500ms cubic-bezier(0.16, 1, 0.3, 1)",swipeOut:"swipeOut 200ms ease-out","accordion-down":"accordion-down 300ms cubic-bezier(0.87, 0, 0.13, 1)","accordion-up":"accordion-up 300ms cubic-bezier(0.87, 0, 0.13, 1)"}}}},a=r;module.exports=a;
|
|
1
|
+
'use strict';var r={content:[],theme:{spacing:{0:"0",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",16:"3.5rem"},colors:{primary:{50:"rgb(var(--color-primary-50) / <alpha-value>)",100:"rgb(var(--color-primary-100) / <alpha-value>)",200:"rgb(var(--color-primary-200) / <alpha-value>)",300:"rgb(var(--color-primary-300) / <alpha-value>)",400:"rgb(var(--color-primary-400) / <alpha-value>)",500:"rgb(var(--color-primary-500) / <alpha-value>)",600:"rgb(var(--color-primary-600) / <alpha-value>)",700:"rgb(var(--color-primary-700) / <alpha-value>)",800:"rgb(var(--color-primary-800) / <alpha-value>)",900:"rgb(var(--color-primary-900) / <alpha-value>)"},"transparent-primary":{10:"rgb(var(--color-primary-400) / 0.1)",20:"rgb(var(--color-primary-400) / 0.2)",30:"rgb(var(--color-primary-400) / 0.3)",40:"rgb(var(--color-primary-400) / 0.4)"},"transparent-neutral":{10:"rgb(var(--color-neutral-50) / 0.1)",20:"rgb(var(--color-neutral-100) / 0.2)",30:"rgb(var(--color-neutral-200) / 0.3)",40:"rgb(var(--color-neutral-300) / 0.4)",50:"rgb(var(--color-neutral-400) / 0.5)"},neutral:{50:"rgb(var(--color-neutral-50) / <alpha-value>)",70:"rgb(var(--color-neutral-70) / <alpha-value>)",80:"rgb(var(--color-neutral-80) / <alpha-value>)",100:"rgb(var(--color-neutral-100) / <alpha-value>)",200:"rgb(var(--color-neutral-200) / <alpha-value>)",300:"rgb(var(--color-neutral-300) / <alpha-value>)",400:"rgb(var(--color-neutral-400) / <alpha-value>)",500:"rgb(var(--color-neutral-500) / <alpha-value>)",600:"rgb(var(--color-neutral-600) / <alpha-value>)",700:"rgb(var(--color-neutral-700) / <alpha-value>)",800:"rgb(var(--color-neutral-800) / <alpha-value>)",900:"rgb(var(--color-neutral-900) / <alpha-value>)"},error:{100:"rgb(var(--color-error-100) / <alpha-value>)",300:"rgb(var(--color-error-300) / <alpha-value>)",500:"rgb(var(--color-error-500) / <alpha-value>)",700:"rgb(var(--color-error-700) / <alpha-value>)",900:"rgb(var(--color-error-900) / <alpha-value>)"},"transparent-error":{10:"rgb(var(--color-error-300) / 0.1)"},warning:{100:"#FFF9D6",300:"#FFE885",500:"#FFCF35",700:"#D69A00",900:"#5C4B22"},success:{100:"#E3FAD7",300:"#67C45E",500:"#319E31",700:"#187128",900:"#094B20"},info:{100:"#CFEBFE",300:"#71B6FA",500:"#1570EF",700:"#0A40AC",900:"#273767"},zoro:{300:"#E9F0C4",500:"#DBE3AB"},ussop:{300:"#D5E9CE",500:"#BFE4B2"},crocodile:{300:"#CDE0B9",500:"#BED5A4"},silvers:{300:"#DFF7DE",500:"#CFF4CE"},buggy:{300:"#E5F5B3",500:"#DAEF9D"},nami:{300:"#FFDBBB",500:"#FFCEA2"},shanks:{300:"#F6CFBC",500:"#FBC5A9"},piiman:{300:"#FFE3B4",500:"#FFDA9B"},sanji:{300:"#FFECCA",500:"#FFE0A9"},ace:{300:"#FFDAD3",500:"#FFC1B5"},hancock:{300:"#F6CFE6",500:"#F3B9DC"},chopper:{300:"#FFE2F8",500:"#FFCDF3"},bentham:{300:"#EDD8F0",500:"#ECCCF1"},ivankov:{300:"#F0E4FF",500:"#E6D1FF"},brook:{300:"#E2E3FF",500:"#CED0FF"},luffy:{300:"#D8E3FF",500:"#C7D7FF"},frankie:{300:"#CDF1F8",500:"#B8EEF9"},jinbe:{300:"#CDF0FF",500:"#B3E8FF"},robin:{300:"#BAD2F5",500:"#ADCDFB"},law:{300:"#CBD8F3",500:"#B0C3EA"},sunny:{800:"#4B7E12"},polartang:{600:"#C68130",800:"#A75A00"},merry:{600:"#8F3FA2",800:"#581769"},jackson:{800:"#4E6697"}},extend:{translate:{.5:"0.125rem",1.5:"0.375rem",4.5:"1.125rem",5.5:"1.375rem"},ringWidth:{3:"3px",6:"6px",12:"12px"},letterSpacing:{body:"0.32px","body-lg":"0.36px",sm:"0.28px"},margin:{.125:"0.03125rem",.25:"0.0625rem",.5:"0.125rem",1.5:"0.375rem",1.6:"0.4rem",1.75:"0.4375rem",2.5:"0.625rem",4.5:"1.125rem"},padding:{.25:"0.0625rem",.5:"0.125rem",.75:"0.1875rem",2.5:"0.625rem",3.75:"0.9375rem",4.25:"1.0625rem",4.5:"1.125rem",14:"3.5rem",20:"5rem"},gap:{1.5:"0.375rem",2.75:"0.6875rem",3.25:"0.8125rem",4.5:"1.125rem"},width:{3.5:"0.875rem",4.5:"1.125rem",5.5:"1.375rem",13:"3.25rem",14:"3.5rem",18.5:"4.625rem",29:"7.25rem",55:"13.75rem",112.5:"28.125rem",117.5:"29.375rem",187:"46.75rem",235:"58.75rem",312:"78rem"},minWidth:{4.5:"1.125rem"},minHeight:{4.5:"1.125rem",15.75:"3.9375rem",40:"10rem"},maxHeight:{84:"21rem"},height:{3.5:"0.875rem",4.5:"1.125rem",5.5:"1.375rem",14:"3.5rem",15:"3.75rem",16:"4rem",18:"4.5rem",20:"5rem",22:"5.5rem"},borderWidth:{1:"1px",1.5:"1.5px",3:"3px"},borderColor:{transparent:"transparent"},inset:{1.5:"0.375rem",2.5:"0.625rem",3.875:"0.96875rem",14:"3.5rem",22:"6rem"},keyframes:{hide:{from:{opacity:"1"},to:{opacity:"0"}},"tooltip-enter":{from:{opacity:"0",transform:"scale(0.95)"},to:{opacity:"1",transform:"scale(1)"}},"tooltip-exit":{from:{opacity:"1",transform:"scale(1)"},to:{opacity:"0",transform:"scale(0.95)"}},slideIn:{from:{transform:"translateX(100%)"},to:{transform:"translateX(0)"}},swipeOut:{from:{transform:"translateX(0)"},to:{transform:"translateX(100%)"}},"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"tooltip-enter":"tooltip-enter 0.2s ease-out","tooltip-exit":"tooltip-exit 0.2s ease-in forwards",hide:"hide 100ms ease-in",slideIn:"slideIn 500ms cubic-bezier(0.16, 1, 0.3, 1)",swipeOut:"swipeOut 200ms ease-out","accordion-down":"accordion-down 300ms cubic-bezier(0.87, 0, 0.13, 1)","accordion-up":"accordion-up 300ms cubic-bezier(0.87, 0, 0.13, 1)"}}}},a=r;module.exports=a;
|
package/dist/tailwind-preset.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var r={content:[],theme:{spacing:{0:"0",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",16:"3.5rem"},colors:{primary:{50:"rgb(var(--color-primary-50) / <alpha-value>)",100:"rgb(var(--color-primary-100) / <alpha-value>)",200:"rgb(var(--color-primary-200) / <alpha-value>)",300:"rgb(var(--color-primary-300) / <alpha-value>)",400:"rgb(var(--color-primary-400) / <alpha-value>)",500:"rgb(var(--color-primary-500) / <alpha-value>)",600:"rgb(var(--color-primary-600) / <alpha-value>)",700:"rgb(var(--color-primary-700) / <alpha-value>)",800:"rgb(var(--color-primary-800) / <alpha-value>)",900:"rgb(var(--color-primary-900) / <alpha-value>)"},"transparent-primary":{10:"rgb(var(--color-primary-400) / 0.1)",20:"rgb(var(--color-primary-400) / 0.2)",30:"rgb(var(--color-primary-400) / 0.3)",40:"rgb(var(--color-primary-400) / 0.4)"},"transparent-neutral":{10:"rgb(var(--color-neutral-50) / 0.1)",20:"rgb(var(--color-neutral-100) / 0.2)",30:"rgb(var(--color-neutral-200) / 0.3)",40:"rgb(var(--color-neutral-300) / 0.4)",50:"rgb(var(--color-neutral-400) / 0.5)"},neutral:{50:"rgb(var(--color-neutral-50) / <alpha-value>)",70:"rgb(var(--color-neutral-70) / <alpha-value>)",80:"rgb(var(--color-neutral-80) / <alpha-value>)",100:"rgb(var(--color-neutral-100) / <alpha-value>)",200:"rgb(var(--color-neutral-200) / <alpha-value>)",300:"rgb(var(--color-neutral-300) / <alpha-value>)",400:"rgb(var(--color-neutral-400) / <alpha-value>)",500:"rgb(var(--color-neutral-500) / <alpha-value>)",600:"rgb(var(--color-neutral-600) / <alpha-value>)",700:"rgb(var(--color-neutral-700) / <alpha-value>)",800:"rgb(var(--color-neutral-800) / <alpha-value>)",900:"rgb(var(--color-neutral-900) / <alpha-value>)"},error:{100:"rgb(var(--color-error-100) / <alpha-value>)",300:"rgb(var(--color-error-300) / <alpha-value>)",500:"rgb(var(--color-error-500) / <alpha-value>)",700:"rgb(var(--color-error-700) / <alpha-value>)",900:"rgb(var(--color-error-900) / <alpha-value>)"},"transparent-error":{10:"rgb(var(--color-error-300) / 0.1)"},warning:{100:"#FFF9D6",300:"#FFE885",500:"#FFCF35",700:"#D69A00",900:"#5C4B22"},success:{100:"#E3FAD7",300:"#67C45E",500:"#319E31",700:"#187128",900:"#094B20"},info:{100:"#CFEBFE",300:"#71B6FA",500:"#1570EF",700:"#0A40AC",900:"#273767"},zoro:{300:"#E9F0C4",500:"#DBE3AB"},ussop:{300:"#D5E9CE",500:"#BFE4B2"},crocodile:{300:"#CDE0B9",500:"#BED5A4"},silvers:{300:"#DFF7DE",500:"#CFF4CE"},buggy:{300:"#E5F5B3",500:"#DAEF9D"},nami:{300:"#FFDBBB",500:"#FFCEA2"},shanks:{300:"#F6CFBC",500:"#FBC5A9"},piiman:{300:"#FFE3B4",500:"#FFDA9B"},sanji:{300:"#FFECCA",500:"#FFE0A9"},ace:{300:"#FFDAD3",500:"#FFC1B5"},hancock:{300:"#F6CFE6",500:"#F3B9DC"},chopper:{300:"#FFE2F8",500:"#FFCDF3"},bentham:{300:"#EDD8F0",500:"#ECCCF1"},ivankov:{300:"#F0E4FF",500:"#E6D1FF"},brook:{300:"#E2E3FF",500:"#CED0FF"},luffy:{300:"#D8E3FF",500:"#C7D7FF"},frankie:{300:"#CDF1F8",500:"#B8EEF9"},jinbe:{300:"#CDF0FF",500:"#B3E8FF"},robin:{300:"#BAD2F5",500:"#ADCDFB"},law:{300:"#CBD8F3",500:"#B0C3EA"},sunny:{800:"#4B7E12"},polartang:{600:"#C68130",800:"#A75A00"},merry:{600:"#8F3FA2",800:"#581769"},jackson:{800:"#4E6697"}},extend:{translate:{.5:"0.125rem",1.5:"0.375rem",4.5:"1.125rem",5.5:"1.375rem"},ringWidth:{3:"3px",6:"6px",12:"12px"},letterSpacing:{body:"0.32px","body-lg":"0.36px",sm:"0.28px"},margin:{.125:"0.03125rem",.25:"0.0625rem",.5:"0.125rem",1.5:"0.375rem",1.75:"0.4375rem",2.5:"0.625rem",4.5:"1.125rem"},padding:{.25:"0.0625rem",.5:"0.125rem",.75:"0.1875rem",2.5:"0.625rem",3.75:"0.9375rem",4.25:"1.0625rem",4.5:"1.125rem",14:"3.5rem",20:"5rem"},gap:{1.5:"0.375rem",2.75:"0.6875rem",3.25:"0.8125rem",4.5:"1.125rem"},width:{3.5:"0.875rem",4.5:"1.125rem",5.5:"1.375rem",13:"3.25rem",14:"3.5rem",18.5:"4.625rem",29:"7.25rem",55:"13.75rem",112.5:"28.125rem",117.5:"29.375rem",187:"46.75rem",235:"58.75rem",312:"78rem"},minWidth:{4.5:"1.125rem"},minHeight:{4.5:"1.125rem",15.75:"3.9375rem",40:"10rem"},maxHeight:{84:"21rem"},height:{3.5:"0.875rem",4.5:"1.125rem",5.5:"1.375rem",14:"3.5rem",15:"3.75rem",16:"4rem",18:"4.5rem",20:"5rem",22:"5.5rem"},borderWidth:{1:"1px",1.5:"1.5px",3:"3px"},borderColor:{transparent:"transparent"},inset:{1.5:"0.375rem",2.5:"0.625rem",3.875:"0.96875rem",14:"3.5rem",22:"6rem"},keyframes:{hide:{from:{opacity:"1"},to:{opacity:"0"}},"tooltip-enter":{from:{opacity:"0",transform:"scale(0.95)"},to:{opacity:"1",transform:"scale(1)"}},"tooltip-exit":{from:{opacity:"1",transform:"scale(1)"},to:{opacity:"0",transform:"scale(0.95)"}},slideIn:{from:{transform:"translateX(100%)"},to:{transform:"translateX(0)"}},swipeOut:{from:{transform:"translateX(0)"},to:{transform:"translateX(100%)"}},"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"tooltip-enter":"tooltip-enter 0.2s ease-out","tooltip-exit":"tooltip-exit 0.2s ease-in forwards",hide:"hide 100ms ease-in",slideIn:"slideIn 500ms cubic-bezier(0.16, 1, 0.3, 1)",swipeOut:"swipeOut 200ms ease-out","accordion-down":"accordion-down 300ms cubic-bezier(0.87, 0, 0.13, 1)","accordion-up":"accordion-up 300ms cubic-bezier(0.87, 0, 0.13, 1)"}}}},a=r;export{a as default};
|
|
1
|
+
var r={content:[],theme:{spacing:{0:"0",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",16:"3.5rem"},colors:{primary:{50:"rgb(var(--color-primary-50) / <alpha-value>)",100:"rgb(var(--color-primary-100) / <alpha-value>)",200:"rgb(var(--color-primary-200) / <alpha-value>)",300:"rgb(var(--color-primary-300) / <alpha-value>)",400:"rgb(var(--color-primary-400) / <alpha-value>)",500:"rgb(var(--color-primary-500) / <alpha-value>)",600:"rgb(var(--color-primary-600) / <alpha-value>)",700:"rgb(var(--color-primary-700) / <alpha-value>)",800:"rgb(var(--color-primary-800) / <alpha-value>)",900:"rgb(var(--color-primary-900) / <alpha-value>)"},"transparent-primary":{10:"rgb(var(--color-primary-400) / 0.1)",20:"rgb(var(--color-primary-400) / 0.2)",30:"rgb(var(--color-primary-400) / 0.3)",40:"rgb(var(--color-primary-400) / 0.4)"},"transparent-neutral":{10:"rgb(var(--color-neutral-50) / 0.1)",20:"rgb(var(--color-neutral-100) / 0.2)",30:"rgb(var(--color-neutral-200) / 0.3)",40:"rgb(var(--color-neutral-300) / 0.4)",50:"rgb(var(--color-neutral-400) / 0.5)"},neutral:{50:"rgb(var(--color-neutral-50) / <alpha-value>)",70:"rgb(var(--color-neutral-70) / <alpha-value>)",80:"rgb(var(--color-neutral-80) / <alpha-value>)",100:"rgb(var(--color-neutral-100) / <alpha-value>)",200:"rgb(var(--color-neutral-200) / <alpha-value>)",300:"rgb(var(--color-neutral-300) / <alpha-value>)",400:"rgb(var(--color-neutral-400) / <alpha-value>)",500:"rgb(var(--color-neutral-500) / <alpha-value>)",600:"rgb(var(--color-neutral-600) / <alpha-value>)",700:"rgb(var(--color-neutral-700) / <alpha-value>)",800:"rgb(var(--color-neutral-800) / <alpha-value>)",900:"rgb(var(--color-neutral-900) / <alpha-value>)"},error:{100:"rgb(var(--color-error-100) / <alpha-value>)",300:"rgb(var(--color-error-300) / <alpha-value>)",500:"rgb(var(--color-error-500) / <alpha-value>)",700:"rgb(var(--color-error-700) / <alpha-value>)",900:"rgb(var(--color-error-900) / <alpha-value>)"},"transparent-error":{10:"rgb(var(--color-error-300) / 0.1)"},warning:{100:"#FFF9D6",300:"#FFE885",500:"#FFCF35",700:"#D69A00",900:"#5C4B22"},success:{100:"#E3FAD7",300:"#67C45E",500:"#319E31",700:"#187128",900:"#094B20"},info:{100:"#CFEBFE",300:"#71B6FA",500:"#1570EF",700:"#0A40AC",900:"#273767"},zoro:{300:"#E9F0C4",500:"#DBE3AB"},ussop:{300:"#D5E9CE",500:"#BFE4B2"},crocodile:{300:"#CDE0B9",500:"#BED5A4"},silvers:{300:"#DFF7DE",500:"#CFF4CE"},buggy:{300:"#E5F5B3",500:"#DAEF9D"},nami:{300:"#FFDBBB",500:"#FFCEA2"},shanks:{300:"#F6CFBC",500:"#FBC5A9"},piiman:{300:"#FFE3B4",500:"#FFDA9B"},sanji:{300:"#FFECCA",500:"#FFE0A9"},ace:{300:"#FFDAD3",500:"#FFC1B5"},hancock:{300:"#F6CFE6",500:"#F3B9DC"},chopper:{300:"#FFE2F8",500:"#FFCDF3"},bentham:{300:"#EDD8F0",500:"#ECCCF1"},ivankov:{300:"#F0E4FF",500:"#E6D1FF"},brook:{300:"#E2E3FF",500:"#CED0FF"},luffy:{300:"#D8E3FF",500:"#C7D7FF"},frankie:{300:"#CDF1F8",500:"#B8EEF9"},jinbe:{300:"#CDF0FF",500:"#B3E8FF"},robin:{300:"#BAD2F5",500:"#ADCDFB"},law:{300:"#CBD8F3",500:"#B0C3EA"},sunny:{800:"#4B7E12"},polartang:{600:"#C68130",800:"#A75A00"},merry:{600:"#8F3FA2",800:"#581769"},jackson:{800:"#4E6697"}},extend:{translate:{.5:"0.125rem",1.5:"0.375rem",4.5:"1.125rem",5.5:"1.375rem"},ringWidth:{3:"3px",6:"6px",12:"12px"},letterSpacing:{body:"0.32px","body-lg":"0.36px",sm:"0.28px"},margin:{.125:"0.03125rem",.25:"0.0625rem",.5:"0.125rem",1.5:"0.375rem",1.6:"0.4rem",1.75:"0.4375rem",2.5:"0.625rem",4.5:"1.125rem"},padding:{.25:"0.0625rem",.5:"0.125rem",.75:"0.1875rem",2.5:"0.625rem",3.75:"0.9375rem",4.25:"1.0625rem",4.5:"1.125rem",14:"3.5rem",20:"5rem"},gap:{1.5:"0.375rem",2.75:"0.6875rem",3.25:"0.8125rem",4.5:"1.125rem"},width:{3.5:"0.875rem",4.5:"1.125rem",5.5:"1.375rem",13:"3.25rem",14:"3.5rem",18.5:"4.625rem",29:"7.25rem",55:"13.75rem",112.5:"28.125rem",117.5:"29.375rem",187:"46.75rem",235:"58.75rem",312:"78rem"},minWidth:{4.5:"1.125rem"},minHeight:{4.5:"1.125rem",15.75:"3.9375rem",40:"10rem"},maxHeight:{84:"21rem"},height:{3.5:"0.875rem",4.5:"1.125rem",5.5:"1.375rem",14:"3.5rem",15:"3.75rem",16:"4rem",18:"4.5rem",20:"5rem",22:"5.5rem"},borderWidth:{1:"1px",1.5:"1.5px",3:"3px"},borderColor:{transparent:"transparent"},inset:{1.5:"0.375rem",2.5:"0.625rem",3.875:"0.96875rem",14:"3.5rem",22:"6rem"},keyframes:{hide:{from:{opacity:"1"},to:{opacity:"0"}},"tooltip-enter":{from:{opacity:"0",transform:"scale(0.95)"},to:{opacity:"1",transform:"scale(1)"}},"tooltip-exit":{from:{opacity:"1",transform:"scale(1)"},to:{opacity:"0",transform:"scale(0.95)"}},slideIn:{from:{transform:"translateX(100%)"},to:{transform:"translateX(0)"}},swipeOut:{from:{transform:"translateX(0)"},to:{transform:"translateX(100%)"}},"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"tooltip-enter":"tooltip-enter 0.2s ease-out","tooltip-exit":"tooltip-exit 0.2s ease-in forwards",hide:"hide 100ms ease-in",slideIn:"slideIn 500ms cubic-bezier(0.16, 1, 0.3, 1)",swipeOut:"swipeOut 200ms ease-out","accordion-down":"accordion-down 300ms cubic-bezier(0.87, 0, 0.13, 1)","accordion-up":"accordion-up 300ms cubic-bezier(0.87, 0, 0.13, 1)"}}}},a=r;export{a as default};
|
package/package.json
CHANGED
package/dist/chunk-KMV6E3ND.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$5}from'./chunk-KTRSJBA4.mjs';import {a as a$4}from'./chunk-IOSO66TV.mjs';import {a}from'./chunk-QHBCNAWO.mjs';import {c as c$2}from'./chunk-FXWF3IBH.mjs';import {d}from'./chunk-VZKFL2XP.mjs';import {a as a$1}from'./chunk-WGMDH4XX.mjs';import {a as a$3}from'./chunk-BVHU5ZT3.mjs';import {c}from'./chunk-DZLL7IH6.mjs';import {c as c$1,h}from'./chunk-XJSC6PKJ.mjs';import {a as a$2}from'./chunk-2WINTZSS.mjs';import bt,{createContext,useMemo,useCallback,useState,useRef,useEffect,useContext,useId}from'react';import*as Lt from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var Gt=({title:t,titleLines:a=2,description:r,descriptionLines:e=1,Icon:s,iconAsColumn:i=!0,className:o,...n})=>jsxs("div",{className:a$2("flex gap-2 py-4 pl-4 pr-6",i&&"flex-col items-center gap-1",!i&&!r&&"items-center"),...n,children:[s&&jsx(s,{className:a$2("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$2("flex flex-col gap-1",i&&"text-center"),children:[jsx("p",{className:a$2("leading-[130%] text-neutral-500",!!r&&"font-medium"),style:a?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:a}:void 0,children:t}),r&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:e?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:e}:void 0,children:r})]})]}),ot=Gt;var $t=bt.memo(({handleSelect:t,NoResultsIcon:a$3,noResultsLabel:r,noResultsDescription:e,noResultsDescriptionLines:s,noResultsAsColumn:i,noResultsButtonOnClick:o,optionDescriptionLines:n,noResultsButtonLabel:w,filteredOptions:l,inputRect:p,inputRef:f,popoverPosition:x,optionsListRef:k,selectedOption:m,options:z,setFilteredOptions:h})=>jsx(Lt.Root,{asChild:!0,children:jsx("div",{ref:k,className:"pointer-events-auto fixed z-50 hidden w-full",style:p?{width:`${p.width}px`,left:p.left,top:x==="bottom"?`${p.bottom}px`:void 0,bottom:x==="top"?`${window.innerHeight-p.top}px`:void 0}:void 0,children:jsxs(a,{className:"elevation-8 mb-2 flex max-h-[336px] w-full flex-col rounded-lg bg-neutral-50",children:[l.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(ot,{title:r,description:e,Icon:a$3,iconAsColumn:i,descriptionLines:s}),o&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:u=>{k.current.style.display="none",f.current.value="",h(z),o();},children:w})]})]}),l.map(u=>jsx(Mt,{title:u.label,disabled:u.disabled,description:u.description,descriptionLines:n,onClick:()=>t(u),className:a$2(m?.value===u.value&&"bg-primary-200")},u.key??u.value))]})})})),Ct=$t;var qt=336,rr=({options:t,defaultSelectedOption:a,onSelect:r,onClick:e,onInputChange:s,error:i,helperText:o,label:n,placeholder:w,value:l,size:p="md",optionDescriptionLines:f=1,noResultsLabel:x,noResultsIcon:k,noResultsDescription:m,noResultsDescriptionLines:z,noResultsAsColumn:h,noResultsButtonOnClick:u,noResultsButtonLabel:A,className:V,disabled:b})=>{let[d,y]=useState(a??null),L=useRef(null),g=useRef(null),[nt,st]=useState(),[ct,T]=useState([]),[lt,H]=useState("bottom"),[G,K]=useState(),U=qt,X=useCallback(v=>{L.current.style.display="none",g.current.value=v.label,y(v),r?.(v);},[r]),C=useCallback(()=>{if(!g?.current)return;let v=g.current.getBoundingClientRect();st(v);let O=G?G.height:U,M=window.innerHeight-v.bottom>O,Q=v.top>O;H(M?"bottom":Q?"top":"bottom");},[G?.height]),$=useCallback(()=>{let v=t.filter(O=>O.label.toLowerCase().includes(g?.current?.value.toLowerCase()??""));if(T(v),L?.current){let O=L.current.getBoundingClientRect();K(O);}},[t]);return useEffect(()=>{T(t);},[t]),useEffect(()=>{if(!l){y(null),g.current&&(g.current.value="");return}(!g.current?.value||d?.value!==l.value)&&(y(l),g.current.value=l.label);},[l]),a$5(L,()=>{L.current.style.display="none",d&&g.current&&(g.current.value=d.label);}),useEffect(()=>{if(g?.current)return C(),g.current.addEventListener("mousedown",C),g.current.addEventListener("input",$),window.addEventListener("scroll",C,!0),window.addEventListener("resize",C),()=>{g.current?.removeEventListener("mousedown",C),g.current?.removeEventListener("input",$),window.removeEventListener("scroll",C,!0),window.removeEventListener("resize",C);}},[C,$]),jsxs("div",{className:a$2("relative",V),children:[jsx(a$4,{ref:g,autoComplete:"off",list:"",selectMode:!0,onChange:v=>{v.target.value||(y(null),r?.(null)),s?.(v);},onClean:()=>{y(null),T(t),r?.(null);},onClick:v=>{L.current.style.display="flex",e?.(v);},onBlur:()=>{d&&g.current&&(g.current.value=d.label);},label:n,helperText:o,placeholder:w,size:p,error:i,disabled:b}),jsx(Ct,{handleSelect:X,noResultsLabel:x,NoResultsIcon:k,optionDescriptionLines:f,noResultsAsColumn:h,noResultsButtonLabel:A,noResultsButtonOnClick:u,noResultsDescription:m,noResultsDescriptionLines:z,filteredOptions:ct,inputRect:nt,inputRef:g,popoverPosition:lt,optionsListRef:L,selectedOption:d,options:t,setFilteredOptions:T})]})};var Kt=({children:t,title:a,titleLines:r,description:e="",descriptionLines:s,disabled:i=!1,className:o,...n})=>jsxs("div",{className:"flex w-full flex-col",...n,children:[jsx("p",{className:a$2("break-all",!!e&&"font-medium"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:a}),e&&jsx("p",{className:a$2("text-sm",i?"text-neutral-400":"text-neutral-700"),style:s?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s}:void 0,children:e})]}),B=Kt;var mr=({children:t,title:a,titleLines:r,description:e="",descriptionLines:s,startIcon:i,badgeContent:o,hasDivider:n=!1,disabled:w=!1,onSelect:l,className:p,...f})=>jsxs(W,{hasDescription:!!e,disabled:w,onClick:l,hasDivider:n,className:a$2(!w&&"cursor-pointer",p),...f,children:[i&&bt.cloneElement(i,{className:a$2(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(B,{title:a,titleLines:r,description:e,descriptionLines:s,disabled:w}),jsxs("div",{className:"flex gap-2",children:[o&&jsx(a$3,{content:o,size:"lg",variant:"alert",className:a$2("self-center",w&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var St=({children:t,title:a,titleLines:r=1,description:e="",descriptionLines:s,startIcon:i,hasDivider:o=!1,disabled:n=!1,checked:w,onCheckedChange:l,className:p,...f})=>jsxs(W,{hasDescription:!!e,disabled:n,hasDivider:o,...f,className:a$2("pr-6",p),children:[i&&bt.cloneElement(i,{className:a$2(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(B,{title:a,titleLines:r,description:e,descriptionLines:s,disabled:n}),jsx(c$2,{size:"sm",checked:w,onCheckedChange:l,className:"self-center",disabled:n})]});var E=336,Ft=createContext({inputRef:null,optionsListRef:null,scrollAreaRef:null,autocompleteId:"",inputRect:void 0,showChips:!1,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:E,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),I=()=>{let t=useContext(Ft);if(t===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return t},Dt=({children:t})=>{let a=useRef(null),r=useRef(null),e=useRef(null),s=useId(),[i,o]=useState(),[n,w]=useState(!0),[l,p]=useState([]),[f,x]=useState(-1),[k,m]=useState("bottom"),[z,h]=useState(),[u,A]=useState(E);return jsx(Ft.Provider,{value:{optionsListRef:a,inputRef:r,scrollAreaRef:e,autocompleteId:s,inputRect:i,showChips:n,filteredOptions:l,currentFocus:f,popoverPosition:k,setFilteredOptions:p,setCurrentFocus:x,setShowChips:w,setPopoverPosition:m,setInputRect:o,optionsListHeight:u,optionsListRect:z,setOptionsListRect:h,setOptionsListHeight:A},children:t})};var ce=({option:t,onMountWidth:a,size:r})=>{let e=useRef(null);return useEffect(()=>{e.current&&a?.(e.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:e,className:"flex-shrink-0",size:r==="md"?"xs":"sm",hasCloseIcon:!1,children:t.label})},Tt=ce;var ge=150,we=bt.memo(({selectedOptions:t,error:a,onCleanSelectedOptions:r,disabled:e,size:s})=>{let{autocompleteId:i,inputRect:o,inputRef:n,optionsListRef:w}=I(),l=bt.useRef(null),[p,f]=bt.useState(new Map),x=useMemo(()=>{if(!o?.width)return [];let m=0,z=o.width-ge,h=0;for(let u=0;u<t.length&&(h+=p.get(u)??0,!(h>z));u++)m++;return t.slice(0,m)},[o?.width,t,p]),k=useCallback(()=>{e||(n?.current?.focus(),w.current.style.display="flex");},[e]);return jsxs("div",{onClick:k,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",e&&"cursor-not-allowed"),style:{maxWidth:o?.width?o?.width:void 0,height:o?.height?o?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:l,children:x.map((m,z)=>jsx(Tt,{option:m,onMountWidth:h=>f(u=>new Map(u).set(z,h)),size:s},`chip-input-${i}-${m.value}`))}),t.length>x.length&&jsx("span",{className:"text-base",children:"..."}),t.length>0&&!a&&jsx(a$3,{content:String(t.length),size:s}),a&&t.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:m=>{m.stopPropagation(),r();}})]})}),Ht=we;var be=bt.memo(({option:t,index:a,onPressOption:r,isSelected:e,optionDescriptionLines:s})=>{let{currentFocus:i,inputRef:o}=I();return jsx(St,{title:t.label,checked:e,disabled:t.disabled,className:i===a?"bg-primary-200":void 0,onMouseDown:n=>{t.disabled||(o?.current?.value&&n.preventDefault(),r?.(t,n));},description:t.description,descriptionLines:s})}),ht=be;var xe=bt.memo(({selectedOptions:t,handleSelect:a$2,NoResultsIcon:r,noResultsLabel:e,noResultsDescription:s,noResultsDescriptionLines:i,noResultsAsColumn:o,noResultsButtonOnClick:n,optionDescriptionLines:w,noResultsButtonLabel:l})=>{let{popoverPosition:p,scrollAreaRef:f,optionsListRef:x,filteredOptions:k,inputRect:m,autocompleteId:z,inputRef:h,optionsListHeight:u}=I(),A=useCallback(b=>t.some(d=>d.value===b.value),[t]),V=useMemo(()=>t.filter(b=>b.label.toLowerCase().includes(h?.current?.value.toLowerCase()??"")),[t,h?.current?.value]);return jsx(Lt.Root,{asChild:!0,children:jsx("div",{ref:x,className:"pointer-events-auto fixed z-50 hidden w-full",style:m?{width:`${m.width}px`,left:m.left,top:p==="bottom"?`${m.bottom}px`:void 0,bottom:p==="top"?`${window.innerHeight-m.top}px`:void 0}:void 0,children:jsxs(a,{className:"elevation-8 mb-2 flex w-full flex-col rounded-lg bg-neutral-50",style:{maxHeight:u+"px"},ref:f,children:[k.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(ot,{title:e,description:s,Icon:r,iconAsColumn:o,descriptionLines:i}),n&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:b=>{x.current.style.display="none",h.current.value="",n();},children:l})]})]}),V.map((b,d)=>jsx(ht,{option:b,index:d,onPressOption:y=>a$2(y),isSelected:A(b),optionDescriptionLines:w},`autocomplete-option-${z}-${b.key??b.value}`)),k.map((b,d)=>!t.some(y=>y.value===b.value)&&jsx(ht,{option:b,index:d,onPressOption:y=>a$2(y),isSelected:A(b),optionDescriptionLines:w},`autocomplete-option-${z}-${b.key??b.value}`))]})})})}),Nt=xe;var Re=bt.memo(({selectedOptions:t,onSelect:a,error:r,helperText:e,label:s,placeholder:i,options:o,onInputChange:n,size:w,disabled:l})=>{let{setCurrentFocus:p,setFilteredOptions:f,optionsListRef:x,inputRef:k}=I();return jsx(a$4,{ref:k,autoComplete:"off",list:"",disabled:l,selectMode:!0,onChange:m=>{p(-1),n?.(m.target.value);},onClean:()=>{p(-1),f(o),a?.(null,t);},onClick:()=>{l||(x.current.style.display="flex");},error:r,helperText:e,label:s,placeholder:i,fixedTopLabel:t.length>0,size:w})}),Yt=Re;var Bt=({options:t,defaultSelectedOptions:a,onSelect:r,error:e,helperText:s,label:i,placeholder:o,noResultsLabel:n,noResultsIcon:w,noResultsDescription:l,noResultsDescriptionLines:p,noResultsAsColumn:f,noResultsButtonOnClick:x,noResultsButtonLabel:k,className:m,onInputChange:z,value:h,loading:u,size:A="md",optionDescriptionLines:V=1,disabled:b})=>{let{inputRef:d,optionsListRef:y,setFilteredOptions:L,setShowChips:g,setInputRect:nt,setPopoverPosition:st,setCurrentFocus:ct,showChips:T,setOptionsListRect:lt,optionsListRect:H,setOptionsListHeight:G}=I(),K=useRef(!1),[U,X]=useState(a??[]),C=useCallback(R=>{X(P=>{let S,_=P.findIndex(Vt=>Vt.value===R.value);return _===-1?(S=P.concat(R),r?.(R,S),S):(S=P.toSpliced(_,1),r?.(R,S),S)});},[r]),$=useCallback(()=>{X([]),L(t),r?.(null,[]);},[]),v=useCallback(()=>{g(!1);},[]),O=useCallback(()=>{g(!0);},[]),M=useCallback(()=>{if(!d?.current)return;let R=d.current.getBoundingClientRect();nt(R);let P=H?H.height>E?E:H.height:E,S=window.innerHeight-R.bottom>P,_=R.top>P;st(S?"bottom":_?"top":"bottom"),G(_?E:window.innerHeight-R.bottom>E?E:window.innerHeight-R.bottom);},[H?.height]),Q=useCallback(()=>{let R=t.filter(P=>P.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(L(R),y?.current){let P=y.current.getBoundingClientRect();lt(P);}},[t,y?.current]);return useEffect(()=>{L(t);},[t]),a$5(y,()=>{y.current.style.display="none",ct(-1);}),useEffect(()=>{if(d?.current)return M(),d.current.addEventListener("mousedown",M),d.current.addEventListener("input",Q),d.current.addEventListener("focusin",v),d.current.addEventListener("focusout",O),window.addEventListener("scroll",M,!0),window.addEventListener("resize",M),()=>{d.current?.removeEventListener("mousedown",M),d.current?.removeEventListener("input",M),d.current?.removeEventListener("focusout",O),d.current?.removeEventListener("focusin",v),window.removeEventListener("scroll",M,!0),window.removeEventListener("resize",M);}},[M,O,v,Q]),useEffect(()=>{h&&(X(h),g(!0));},[h]),useEffect(()=>{u||a&&a.length&&!K.current&&(X(a),K.current=!0,g(!0));},[a,u]),jsxs("div",{className:a$2("relative",m),children:[jsx(Yt,{selectedOptions:U,onSelect:r,error:e,helperText:s,label:i,placeholder:o,handleSelect:C,options:t,onInputChange:z,size:A,disabled:b}),T&&jsx(Ht,{selectedOptions:U,disabled:b,error:e,onCleanSelectedOptions:$,size:A}),jsx(Nt,{handleSelect:C,selectedOptions:U,noResultsLabel:n,NoResultsIcon:w,optionDescriptionLines:V,noResultsAsColumn:f,noResultsButtonLabel:k,noResultsButtonOnClick:x,noResultsDescription:l,noResultsDescriptionLines:p})]})};var Oa=t=>jsx(Dt,{children:jsx(Bt,{...t})});var Oe=({children:t,hasDescription:a=!1,disabled:r=!1,hasDivider:e=!1,className:s,onClick:i,...o})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("line-height-[120%] flex flex-row gap-4 pl-4 pr-3",a?"py-3":"py-[0.875rem]",r?"text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",s),onClick:n=>{r||i?.(n);},...o,children:t}),e&&jsx(a$1,{})]}),W=Oe;var Mt=({children:t,title:a,titleLines:r,description:e="",descriptionLines:s,startIcon:i,hasDivider:o=!1,disabled:n=!1,className:w,...l})=>jsxs(W,{hasDescription:!!e,disabled:n,hasDivider:o,className:w,...l,children:[i&&bt.cloneElement(i,{className:a$2(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(B,{title:a,titleLines:r,description:e,descriptionLines:s,disabled:n})]});export{rr as a,Mt as b,mr as c,St as d,Oa as e};
|