smartsell-ui-kit 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +487 -483
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -14
- package/dist/index.d.ts +5 -14
- package/dist/index.js +487 -484
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -62,7 +62,7 @@ function styleInject(css, { insertAt } = {}) {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
// src/styles/ui-kit.css
|
|
65
|
-
styleInject('.ui-kit-sr-only {\n position: absolute;\n height: 1px;\n width: 1px;\n overflow: hidden;\n white-space: nowrap;\n border-width: 0px;\n padding: 0px;\n clip: rect(0, 0, 0, 0);\n margin: -1px;\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.pointer-events-auto {\n pointer-events: auto;\n}\n.visible {\n visibility: visible;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.sticky {\n position: sticky;\n}\n.inset-0 {\n inset: 0px;\n}\n.inset-y-0 {\n top: 0px;\n bottom: 0px;\n}\n.left-0 {\n left: 0px;\n}\n.right-0 {\n right: 0px;\n}\n.top-1\\/2 {\n top: 50%;\n}\n.z-30 {\n z-index: 30;\n}\n.z-\\[70\\] {\n z-index: 70;\n}\n.m-0 {\n margin: 0px;\n}\n.mb-\\[18px\\] {\n margin-bottom: 18px;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.ml-4 {\n margin-left: 1rem;\n}\n.mr-1 {\n margin-right: 0.25rem;\n}\n.mt-0 {\n margin-top: 0px;\n}\n.mt-1 {\n margin-top: 0.25rem;\n}\n.mt-px {\n margin-top: 1px;\n}\n.box-border {\n box-sizing: border-box;\n}\n.block {\n display: block;\n}\n.inline {\n display: inline;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.table {\n display: table;\n}\n.grid {\n display: grid;\n}\n.hidden {\n display: none;\n}\n.h-14 {\n height: 3.5rem;\n}\n.h-2 {\n height: 0.5rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-\\[30px\\] {\n height: 30px;\n}\n.h-\\[34px\\] {\n height: 34px;\n}\n.h-\\[38px\\] {\n height: 38px;\n}\n.h-\\[42px\\] {\n height: 42px;\n}\n.h-\\[52px\\] {\n height: 52px;\n}\n.h-full {\n height: 100%;\n}\n.max-h-\\[280px\\] {\n max-height: 280px;\n}\n.min-h-0 {\n min-height: 0px;\n}\n.min-h-20 {\n min-height: 5rem;\n}\n.w-14 {\n width: 3.5rem;\n}\n.w-2 {\n width: 0.5rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-\\[25px\\] {\n width: 25px;\n}\n.w-\\[30px\\] {\n width: 30px;\n}\n.w-\\[52px\\] {\n width: 52px;\n}\n.w-auto {\n width: auto;\n}\n.w-fit {\n width: -moz-fit-content;\n width: fit-content;\n}\n.w-full {\n width: 100%;\n}\n.min-w-0 {\n min-width: 0px;\n}\n.min-w-full {\n min-width: 100%;\n}\n.max-w-fit {\n max-width: -moz-fit-content;\n max-width: fit-content;\n}\n.max-w-full {\n max-width: 100%;\n}\n.max-w-none {\n max-width: none;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.shrink-0 {\n flex-shrink: 0;\n}\n.border-separate {\n border-collapse: separate;\n}\n.border-spacing-0 {\n --tw-border-spacing-x: 0px;\n --tw-border-spacing-y: 0px;\n border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.cursor-default {\n cursor: default;\n}\n.cursor-not-allowed {\n cursor: not-allowed;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.cursor-text {\n cursor: text;\n}\n.select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.resize-y {\n resize: vertical;\n}\n.resize {\n resize: both;\n}\n.appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.flex-col {\n flex-direction: column;\n}\n.flex-wrap {\n flex-wrap: wrap;\n}\n.items-start {\n align-items: flex-start;\n}\n.items-center {\n align-items: center;\n}\n.justify-start {\n justify-content: flex-start;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-0 {\n gap: 0px;\n}\n.gap-1 {\n gap: 0.25rem;\n}\n.gap-1\\.5 {\n gap: 0.375rem;\n}\n.gap-2 {\n gap: 0.5rem;\n}\n.gap-2\\.5 {\n gap: 0.625rem;\n}\n.gap-3 {\n gap: 0.75rem;\n}\n.gap-3\\.5 {\n gap: 0.875rem;\n}\n.gap-4 {\n gap: 1rem;\n}\n.self-stretch {\n align-self: stretch;\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-x-auto {\n overflow-x: auto;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.overflow-x-hidden {\n overflow-x: hidden;\n}\n.overflow-y-hidden {\n overflow-y: hidden;\n}\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.text-ellipsis {\n text-overflow: ellipsis;\n}\n.whitespace-nowrap {\n white-space: nowrap;\n}\n.rounded-2xl {\n border-radius: 1rem;\n}\n.rounded-\\[0\\.4rem\\] {\n border-radius: 0.4rem;\n}\n.rounded-\\[11px\\] {\n border-radius: 11px;\n}\n.rounded-\\[14px\\] {\n border-radius: 14px;\n}\n.rounded-\\[20px\\] {\n border-radius: 20px;\n}\n.rounded-\\[24px\\] {\n border-radius: 24px;\n}\n.rounded-\\[28px\\] {\n border-radius: 28px;\n}\n.rounded-\\[30px\\] {\n border-radius: 30px;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-none {\n border-radius: 0px;\n}\n.rounded-xl {\n border-radius: 0.75rem;\n}\n.border {\n border-width: 1px;\n}\n.border-0 {\n border-width: 0px;\n}\n.border-2 {\n border-width: 2px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-t {\n border-top-width: 1px;\n}\n.border-solid {\n border-style: solid;\n}\n.border-\\[var\\(--theme-negative\\)\\] {\n border-color: var(--theme-negative);\n}\n.border-\\[var\\(--theme-primary\\)\\] {\n border-color: var(--theme-primary);\n}\n.border-\\[var\\(--theme-textLight\\)\\] {\n border-color: var(--theme-textLight);\n}\n.border-\\[var\\(--ui-kit-accent\\)\\] {\n border-color: var(--ui-kit-accent);\n}\n.border-\\[var\\(--ui-kit-modal-primary\\)\\] {\n border-color: var(--ui-kit-modal-primary);\n}\n.border-transparent {\n border-color: transparent;\n}\n.bg-\\[color-mix\\(in_srgb\\,var\\(--ui-kit-accent\\)_24\\%\\,transparent\\)\\] {\n background-color: color-mix(in srgb, var(--ui-kit-accent) 24%, transparent);\n}\n.bg-\\[var\\(--theme-primary\\)\\] {\n background-color: var(--theme-primary);\n}\n.bg-\\[var\\(--theme-surface\\)\\] {\n background-color: var(--theme-surface);\n}\n.bg-\\[var\\(--theme-text\\)\\] {\n background-color: var(--theme-text);\n}\n.bg-\\[var\\(--ui-kit-accent\\)\\] {\n background-color: var(--ui-kit-accent);\n}\n.bg-\\[var\\(--ui-kit-modal-busy-overlay\\)\\] {\n background-color: var(--ui-kit-modal-busy-overlay);\n}\n.bg-\\[var\\(--ui-kit-modal-primary\\)\\] {\n background-color: var(--ui-kit-modal-primary);\n}\n.bg-\\[var\\(--ui-kit-select-option-hover-bg\\)\\] {\n background-color: var(--ui-kit-select-option-hover-bg);\n}\n.bg-\\[var\\(--ui-kit-select-option-selected-bg\\)\\] {\n background-color: var(--ui-kit-select-option-selected-bg);\n}\n.bg-\\[var\\(--ui-kit-surface-raised\\)\\] {\n background-color: var(--ui-kit-surface-raised);\n}\n.bg-transparent {\n background-color: transparent;\n}\n.bg-\\[linear-gradient\\(180deg\\,var\\(--ui-kit-modal-surface-raised\\)\\,var\\(--ui-kit-modal-surface\\)\\)\\] {\n background-image:\n linear-gradient(\n 180deg,\n var(--ui-kit-modal-surface-raised),\n var(--ui-kit-modal-surface));\n}\n.p-0 {\n padding: 0px;\n}\n.p-0\\.5 {\n padding: 0.125rem;\n}\n.p-2 {\n padding: 0.5rem;\n}\n.p-6 {\n padding: 1.5rem;\n}\n.p-\\[18px\\] {\n padding: 18px;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n.px-\\[1\\.15rem\\] {\n padding-left: 1.15rem;\n padding-right: 1.15rem;\n}\n.px-\\[10px\\] {\n padding-left: 10px;\n padding-right: 10px;\n}\n.px-\\[11px\\] {\n padding-left: 11px;\n padding-right: 11px;\n}\n.px-\\[13px\\] {\n padding-left: 13px;\n padding-right: 13px;\n}\n.px-\\[14px\\] {\n padding-left: 14px;\n padding-right: 14px;\n}\n.px-\\[18px\\] {\n padding-left: 18px;\n padding-right: 18px;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.py-\\[0\\.9rem\\] {\n padding-top: 0.9rem;\n padding-bottom: 0.9rem;\n}\n.py-\\[10px\\] {\n padding-top: 10px;\n padding-bottom: 10px;\n}\n.py-\\[11px\\] {\n padding-top: 11px;\n padding-bottom: 11px;\n}\n.py-\\[14px\\] {\n padding-top: 14px;\n padding-bottom: 14px;\n}\n.py-\\[18px\\] {\n padding-top: 18px;\n padding-bottom: 18px;\n}\n.py-\\[7px\\] {\n padding-top: 7px;\n padding-bottom: 7px;\n}\n.py-\\[9px\\] {\n padding-top: 9px;\n padding-bottom: 9px;\n}\n.pb-0\\.5 {\n padding-bottom: 0.125rem;\n}\n.pb-1 {\n padding-bottom: 0.25rem;\n}\n.pb-3 {\n padding-bottom: 0.75rem;\n}\n.pb-4 {\n padding-bottom: 1rem;\n}\n.pb-\\[10px\\] {\n padding-bottom: 10px;\n}\n.pl-6 {\n padding-left: 1.5rem;\n}\n.pr-6 {\n padding-right: 1.5rem;\n}\n.pt-1 {\n padding-top: 0.25rem;\n}\n.pt-1\\.5 {\n padding-top: 0.375rem;\n}\n.pt-2\\.5 {\n padding-top: 0.625rem;\n}\n.pt-3 {\n padding-top: 0.75rem;\n}\n.pt-\\[18px\\] {\n padding-top: 18px;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n.text-\\[1\\.05rem\\] {\n font-size: 1.05rem;\n}\n.text-\\[10px\\] {\n font-size: 10px;\n}\n.text-\\[11px\\] {\n font-size: 11px;\n}\n.text-\\[13px\\] {\n font-size: 13px;\n}\n.text-\\[15px\\] {\n font-size: 15px;\n}\n.text-\\[18px\\] {\n font-size: 18px;\n}\n.text-\\[20px\\] {\n font-size: 20px;\n}\n.text-\\[24px\\] {\n font-size: 24px;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.font-bold {\n font-weight: 700;\n}\n.font-extrabold {\n font-weight: 800;\n}\n.font-normal {\n font-weight: 400;\n}\n.font-semibold {\n font-weight: 600;\n}\n.uppercase {\n text-transform: uppercase;\n}\n.leading-4 {\n line-height: 1rem;\n}\n.leading-\\[1\\.15\\] {\n line-height: 1.15;\n}\n.leading-\\[1\\.1\\] {\n line-height: 1.1;\n}\n.leading-\\[1\\.25\\] {\n line-height: 1.25;\n}\n.leading-\\[1\\.2\\] {\n line-height: 1.2;\n}\n.leading-\\[1\\.45\\] {\n line-height: 1.45;\n}\n.leading-\\[1\\.4\\] {\n line-height: 1.4;\n}\n.leading-\\[18px\\] {\n line-height: 18px;\n}\n.leading-none {\n line-height: 1;\n}\n.tracking-\\[0\\.01em\\] {\n letter-spacing: 0.01em;\n}\n.tracking-\\[0\\.06em\\] {\n letter-spacing: 0.06em;\n}\n.tracking-\\[0\\.08em\\] {\n letter-spacing: 0.08em;\n}\n.tracking-\\[0\\.16em\\] {\n letter-spacing: 0.16em;\n}\n.text-\\[var\\(--theme-negative\\)\\] {\n color: var(--theme-negative);\n}\n.text-\\[var\\(--theme-onPrimary\\)\\] {\n color: var(--theme-onPrimary);\n}\n.text-\\[var\\(--theme-primary\\)\\] {\n color: var(--theme-primary);\n}\n.text-\\[var\\(--theme-text\\)\\] {\n color: var(--theme-text);\n}\n.text-\\[var\\(--theme-textLight\\)\\] {\n color: var(--theme-textLight);\n}\n.text-\\[var\\(--ui-kit-accent\\)\\] {\n color: var(--ui-kit-accent);\n}\n.text-\\[var\\(--ui-kit-modal-on-primary\\)\\] {\n color: var(--ui-kit-modal-on-primary);\n}\n.text-\\[var\\(--ui-kit-modal-primary\\)\\] {\n color: var(--ui-kit-modal-primary);\n}\n.text-\\[var\\(--ui-kit-modal-text\\)\\] {\n color: var(--ui-kit-modal-text);\n}\n.text-\\[var\\(--ui-kit-muted-text\\)\\] {\n color: var(--ui-kit-muted-text);\n}\n.text-\\[var\\(--ui-kit-placeholder\\)\\] {\n color: var(--ui-kit-placeholder);\n}\n.text-\\[var\\(--ui-kit-select-indicator-disabled\\)\\] {\n color: var(--ui-kit-select-indicator-disabled);\n}\n.text-\\[var\\(--ui-kit-select-muted\\)\\] {\n color: var(--ui-kit-select-muted);\n}\n.text-\\[var\\(--ui-kit-select-option-disabled\\)\\] {\n color: var(--ui-kit-select-option-disabled);\n}\n.text-\\[var\\(--ui-kit-select-placeholder\\)\\] {\n color: var(--ui-kit-select-placeholder);\n}\n.opacity-0 {\n opacity: 0;\n}\n.opacity-100 {\n opacity: 1;\n}\n.opacity-45 {\n opacity: 0.45;\n}\n.opacity-80 {\n opacity: 0.8;\n}\n.opacity-\\[0\\.38\\] {\n opacity: 0.38;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.shadow-\\[0_0_0_3px_var\\(--ui-kit-focus-ring\\)\\] {\n --tw-shadow: 0 0 0 3px var(--ui-kit-focus-ring);\n --tw-shadow-colored: 0 0 0 3px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.shadow-\\[0px_4px_5px_var\\(--theme-shadow\\)\\] {\n --tw-shadow: 0px 4px 5px var(--theme-shadow);\n --tw-shadow-colored: 0px 4px 5px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.shadow-none {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.shadow-\\[var\\(--ui-kit-modal-button-shadow-contained\\)\\] {\n --tw-shadow-color: var(--ui-kit-modal-button-shadow-contained);\n --tw-shadow: var(--tw-shadow-colored);\n}\n.shadow-\\[var\\(--ui-kit-modal-button-shadow-outlined\\)\\] {\n --tw-shadow-color: var(--ui-kit-modal-button-shadow-outlined);\n --tw-shadow: var(--tw-shadow-colored);\n}\n.shadow-\\[var\\(--ui-kit-modal-control-shadow\\)\\] {\n --tw-shadow-color: var(--ui-kit-modal-control-shadow);\n --tw-shadow: var(--tw-shadow-colored);\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.outline {\n outline-style: solid;\n}\n.saturate-0 {\n --tw-saturate: saturate(0);\n 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);\n}\n.saturate-100 {\n --tw-saturate: saturate(1);\n 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);\n}\n.saturate-\\[0\\.8\\] {\n --tw-saturate: saturate(0.8);\n 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);\n}\n.filter {\n 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);\n}\n.backdrop-blur-\\[2px\\] {\n --tw-backdrop-blur: blur(2px);\n backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.backdrop-blur-\\[8px\\] {\n --tw-backdrop-blur: blur(8px);\n backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.transition {\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke,\n opacity,\n box-shadow,\n transform,\n filter,\n backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-\\[background-color\\,color\\] {\n transition-property: background-color, color;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-\\[border-color\\,box-shadow\\,background-color\\] {\n transition-property:\n border-color,\n box-shadow,\n background-color;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-\\[opacity\\,filter\\] {\n transition-property: opacity, filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-\\[transform\\,color\\] {\n transition-property: transform, color;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-shadow {\n transition-property: box-shadow;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.duration-150 {\n transition-duration: 150ms;\n}\n.duration-300 {\n transition-duration: 300ms;\n}\n.\\[background\\:var\\(--ui-kit-card-bg\\)\\] {\n background: var(--ui-kit-card-bg);\n}\n.\\[border-color\\:var\\(--ui-kit-card-border\\)\\] {\n border-color: var(--ui-kit-card-border);\n}\n.\\[grid-template-columns\\:repeat\\(auto-fit\\,minmax\\(120px\\,1fr\\)\\)\\] {\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n}\n:root {\n --ui-kit-font-family:\n "Lato",\n system-ui,\n sans-serif;\n}\n.ui-kit-root {\n font-family: var(--ui-kit-font-family);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.ui-kit-root :is(button, input, textarea, select, option) {\n font-family: var(--ui-kit-font-family);\n}\n.placeholder\\:text-\\[var\\(--ui-kit-placeholder\\)\\]::-moz-placeholder {\n color: var(--ui-kit-placeholder);\n}\n.placeholder\\:text-\\[var\\(--ui-kit-placeholder\\)\\]::placeholder {\n color: var(--ui-kit-placeholder);\n}\n.hover\\:-translate-y-\\[0\\.5px\\]:hover {\n --tw-translate-y: -0.5px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.hover\\:border-\\[var\\(--theme-primaryDark\\)\\]:hover {\n border-color: var(--theme-primaryDark);\n}\n.hover\\:border-\\[var\\(--ui-kit-button-ghost-border\\)\\]:hover {\n border-color: var(--ui-kit-button-ghost-border);\n}\n.hover\\:bg-\\[var\\(--theme-primary\\)\\]:hover {\n background-color: var(--theme-primary);\n}\n.hover\\:bg-\\[var\\(--theme-primaryDark\\)\\]:hover {\n background-color: var(--theme-primaryDark);\n}\n.hover\\:bg-\\[var\\(--ui-kit-button-outline-hover\\)\\]:hover {\n background-color: var(--ui-kit-button-outline-hover);\n}\n.hover\\:text-\\[var\\(--theme-onPrimary\\)\\]:hover {\n color: var(--theme-onPrimary);\n}\n.hover\\:shadow-\\[0px_4px_5px_var\\(--theme-shadow\\)\\]:hover {\n --tw-shadow: 0px 4px 5px var(--theme-shadow);\n --tw-shadow-colored: 0px 4px 5px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.active\\:translate-y-px:active {\n --tw-translate-y: 1px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.active\\:scale-\\[0\\.985\\]:active {\n --tw-scale-x: 0.985;\n --tw-scale-y: 0.985;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.active\\:border-\\[var\\(--ui-kit-button-ghost-border\\)\\]:active {\n border-color: var(--ui-kit-button-ghost-border);\n}\n.active\\:bg-\\[var\\(--theme-primary\\)\\]:active {\n background-color: var(--theme-primary);\n}\n.active\\:bg-\\[var\\(--ui-kit-button-outline-active\\)\\]:active {\n background-color: var(--ui-kit-button-outline-active);\n}\n.active\\:text-\\[var\\(--theme-onPrimary\\)\\]:active {\n color: var(--theme-onPrimary);\n}\n.active\\:shadow-\\[0px_4px_5px_var\\(--theme-shadow\\)\\]:active {\n --tw-shadow: 0px 4px 5px var(--theme-shadow);\n --tw-shadow-colored: 0px 4px 5px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.disabled\\:translate-y-0:disabled {\n --tw-translate-y: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.disabled\\:scale-100:disabled {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n');
|
|
65
|
+
styleInject('.ui-kit-sr-only {\n position: absolute;\n height: 1px;\n width: 1px;\n overflow: hidden;\n white-space: nowrap;\n border-width: 0px;\n padding: 0px;\n clip: rect(0, 0, 0, 0);\n margin: -1px;\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.pointer-events-auto {\n pointer-events: auto;\n}\n.visible {\n visibility: visible;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.sticky {\n position: sticky;\n}\n.inset-0 {\n inset: 0px;\n}\n.inset-y-0 {\n top: 0px;\n bottom: 0px;\n}\n.left-0 {\n left: 0px;\n}\n.right-0 {\n right: 0px;\n}\n.top-1\\/2 {\n top: 50%;\n}\n.z-30 {\n z-index: 30;\n}\n.z-\\[70\\] {\n z-index: 70;\n}\n.m-0 {\n margin: 0px;\n}\n.mb-\\[18px\\] {\n margin-bottom: 18px;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.ml-4 {\n margin-left: 1rem;\n}\n.mr-1 {\n margin-right: 0.25rem;\n}\n.mt-0 {\n margin-top: 0px;\n}\n.mt-1 {\n margin-top: 0.25rem;\n}\n.mt-px {\n margin-top: 1px;\n}\n.box-border {\n box-sizing: border-box;\n}\n.block {\n display: block;\n}\n.inline {\n display: inline;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.table {\n display: table;\n}\n.grid {\n display: grid;\n}\n.hidden {\n display: none;\n}\n.h-14 {\n height: 3.5rem;\n}\n.h-2 {\n height: 0.5rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-\\[30px\\] {\n height: 30px;\n}\n.h-\\[34px\\] {\n height: 34px;\n}\n.h-\\[38px\\] {\n height: 38px;\n}\n.h-\\[42px\\] {\n height: 42px;\n}\n.h-\\[52px\\] {\n height: 52px;\n}\n.h-full {\n height: 100%;\n}\n.max-h-\\[280px\\] {\n max-height: 280px;\n}\n.min-h-0 {\n min-height: 0px;\n}\n.min-h-20 {\n min-height: 5rem;\n}\n.w-14 {\n width: 3.5rem;\n}\n.w-2 {\n width: 0.5rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-\\[25px\\] {\n width: 25px;\n}\n.w-\\[30px\\] {\n width: 30px;\n}\n.w-\\[52px\\] {\n width: 52px;\n}\n.w-auto {\n width: auto;\n}\n.w-fit {\n width: -moz-fit-content;\n width: fit-content;\n}\n.w-full {\n width: 100%;\n}\n.min-w-0 {\n min-width: 0px;\n}\n.min-w-full {\n min-width: 100%;\n}\n.max-w-fit {\n max-width: -moz-fit-content;\n max-width: fit-content;\n}\n.max-w-full {\n max-width: 100%;\n}\n.max-w-none {\n max-width: none;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.shrink-0 {\n flex-shrink: 0;\n}\n.border-separate {\n border-collapse: separate;\n}\n.border-spacing-0 {\n --tw-border-spacing-x: 0px;\n --tw-border-spacing-y: 0px;\n border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.cursor-default {\n cursor: default;\n}\n.cursor-not-allowed {\n cursor: not-allowed;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.cursor-text {\n cursor: text;\n}\n.select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.resize-y {\n resize: vertical;\n}\n.resize {\n resize: both;\n}\n.appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.flex-col {\n flex-direction: column;\n}\n.flex-wrap {\n flex-wrap: wrap;\n}\n.items-start {\n align-items: flex-start;\n}\n.items-center {\n align-items: center;\n}\n.justify-start {\n justify-content: flex-start;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-0 {\n gap: 0px;\n}\n.gap-1 {\n gap: 0.25rem;\n}\n.gap-1\\.5 {\n gap: 0.375rem;\n}\n.gap-2 {\n gap: 0.5rem;\n}\n.gap-2\\.5 {\n gap: 0.625rem;\n}\n.gap-3 {\n gap: 0.75rem;\n}\n.gap-3\\.5 {\n gap: 0.875rem;\n}\n.gap-4 {\n gap: 1rem;\n}\n.self-stretch {\n align-self: stretch;\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-x-auto {\n overflow-x: auto;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.overflow-x-hidden {\n overflow-x: hidden;\n}\n.overflow-y-hidden {\n overflow-y: hidden;\n}\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.text-ellipsis {\n text-overflow: ellipsis;\n}\n.whitespace-nowrap {\n white-space: nowrap;\n}\n.rounded-2xl {\n border-radius: 1rem;\n}\n.rounded-\\[0\\.4rem\\] {\n border-radius: 0.4rem;\n}\n.rounded-\\[11px\\] {\n border-radius: 11px;\n}\n.rounded-\\[14px\\] {\n border-radius: 14px;\n}\n.rounded-\\[20px\\] {\n border-radius: 20px;\n}\n.rounded-\\[24px\\] {\n border-radius: 24px;\n}\n.rounded-\\[28px\\] {\n border-radius: 28px;\n}\n.rounded-\\[30px\\] {\n border-radius: 30px;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-none {\n border-radius: 0px;\n}\n.rounded-xl {\n border-radius: 0.75rem;\n}\n.border {\n border-width: 1px;\n}\n.border-0 {\n border-width: 0px;\n}\n.border-2 {\n border-width: 2px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-t {\n border-top-width: 1px;\n}\n.border-solid {\n border-style: solid;\n}\n.border-\\[var\\(--theme-negative\\)\\] {\n border-color: var(--theme-negative);\n}\n.border-\\[var\\(--theme-primary\\)\\] {\n border-color: var(--theme-primary);\n}\n.border-\\[var\\(--theme-secondary\\)\\] {\n border-color: var(--theme-secondary);\n}\n.border-\\[var\\(--theme-textLight\\)\\] {\n border-color: var(--theme-textLight);\n}\n.border-\\[var\\(--ui-kit-accent\\)\\] {\n border-color: var(--ui-kit-accent);\n}\n.border-transparent {\n border-color: transparent;\n}\n.bg-\\[color-mix\\(in_srgb\\,var\\(--ui-kit-accent\\)_24\\%\\,transparent\\)\\] {\n background-color: color-mix(in srgb, var(--ui-kit-accent) 24%, transparent);\n}\n.bg-\\[var\\(--theme-primary\\)\\] {\n background-color: var(--theme-primary);\n}\n.bg-\\[var\\(--theme-surface\\)\\] {\n background-color: var(--theme-surface);\n}\n.bg-\\[var\\(--theme-text\\)\\] {\n background-color: var(--theme-text);\n}\n.bg-\\[var\\(--ui-kit-accent\\)\\] {\n background-color: var(--ui-kit-accent);\n}\n.bg-transparent {\n background-color: transparent;\n}\n.p-0 {\n padding: 0px;\n}\n.p-0\\.5 {\n padding: 0.125rem;\n}\n.p-2 {\n padding: 0.5rem;\n}\n.p-6 {\n padding: 1.5rem;\n}\n.p-\\[18px\\] {\n padding: 18px;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n.px-\\[1\\.15rem\\] {\n padding-left: 1.15rem;\n padding-right: 1.15rem;\n}\n.px-\\[10px\\] {\n padding-left: 10px;\n padding-right: 10px;\n}\n.px-\\[11px\\] {\n padding-left: 11px;\n padding-right: 11px;\n}\n.px-\\[13px\\] {\n padding-left: 13px;\n padding-right: 13px;\n}\n.px-\\[14px\\] {\n padding-left: 14px;\n padding-right: 14px;\n}\n.px-\\[18px\\] {\n padding-left: 18px;\n padding-right: 18px;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.py-\\[0\\.9rem\\] {\n padding-top: 0.9rem;\n padding-bottom: 0.9rem;\n}\n.py-\\[10px\\] {\n padding-top: 10px;\n padding-bottom: 10px;\n}\n.py-\\[11px\\] {\n padding-top: 11px;\n padding-bottom: 11px;\n}\n.py-\\[14px\\] {\n padding-top: 14px;\n padding-bottom: 14px;\n}\n.py-\\[18px\\] {\n padding-top: 18px;\n padding-bottom: 18px;\n}\n.py-\\[7px\\] {\n padding-top: 7px;\n padding-bottom: 7px;\n}\n.py-\\[9px\\] {\n padding-top: 9px;\n padding-bottom: 9px;\n}\n.pb-0\\.5 {\n padding-bottom: 0.125rem;\n}\n.pb-1 {\n padding-bottom: 0.25rem;\n}\n.pb-3 {\n padding-bottom: 0.75rem;\n}\n.pb-4 {\n padding-bottom: 1rem;\n}\n.pb-\\[10px\\] {\n padding-bottom: 10px;\n}\n.pl-6 {\n padding-left: 1.5rem;\n}\n.pr-6 {\n padding-right: 1.5rem;\n}\n.pt-1 {\n padding-top: 0.25rem;\n}\n.pt-1\\.5 {\n padding-top: 0.375rem;\n}\n.pt-2\\.5 {\n padding-top: 0.625rem;\n}\n.pt-3 {\n padding-top: 0.75rem;\n}\n.pt-\\[18px\\] {\n padding-top: 18px;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n.text-\\[1\\.05rem\\] {\n font-size: 1.05rem;\n}\n.text-\\[10px\\] {\n font-size: 10px;\n}\n.text-\\[11px\\] {\n font-size: 11px;\n}\n.text-\\[13px\\] {\n font-size: 13px;\n}\n.text-\\[15px\\] {\n font-size: 15px;\n}\n.text-\\[18px\\] {\n font-size: 18px;\n}\n.text-\\[20px\\] {\n font-size: 20px;\n}\n.text-\\[24px\\] {\n font-size: 24px;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.font-bold {\n font-weight: 700;\n}\n.font-extrabold {\n font-weight: 800;\n}\n.font-normal {\n font-weight: 400;\n}\n.font-semibold {\n font-weight: 600;\n}\n.uppercase {\n text-transform: uppercase;\n}\n.leading-4 {\n line-height: 1rem;\n}\n.leading-\\[1\\.15\\] {\n line-height: 1.15;\n}\n.leading-\\[1\\.1\\] {\n line-height: 1.1;\n}\n.leading-\\[1\\.25\\] {\n line-height: 1.25;\n}\n.leading-\\[1\\.2\\] {\n line-height: 1.2;\n}\n.leading-\\[1\\.45\\] {\n line-height: 1.45;\n}\n.leading-\\[1\\.4\\] {\n line-height: 1.4;\n}\n.leading-\\[18px\\] {\n line-height: 18px;\n}\n.leading-none {\n line-height: 1;\n}\n.tracking-\\[0\\.01em\\] {\n letter-spacing: 0.01em;\n}\n.tracking-\\[0\\.06em\\] {\n letter-spacing: 0.06em;\n}\n.tracking-\\[0\\.08em\\] {\n letter-spacing: 0.08em;\n}\n.tracking-\\[0\\.16em\\] {\n letter-spacing: 0.16em;\n}\n.text-\\[var\\(--theme-negative\\)\\] {\n color: var(--theme-negative);\n}\n.text-\\[var\\(--theme-onPrimary\\)\\] {\n color: var(--theme-onPrimary);\n}\n.text-\\[var\\(--theme-primary\\)\\] {\n color: var(--theme-primary);\n}\n.text-\\[var\\(--theme-secondary\\)\\] {\n color: var(--theme-secondary);\n}\n.text-\\[var\\(--theme-text\\)\\] {\n color: var(--theme-text);\n}\n.text-\\[var\\(--theme-textLight\\)\\] {\n color: var(--theme-textLight);\n}\n.text-\\[var\\(--ui-kit-accent\\)\\] {\n color: var(--ui-kit-accent);\n}\n.opacity-0 {\n opacity: 0;\n}\n.opacity-100 {\n opacity: 1;\n}\n.opacity-45 {\n opacity: 0.45;\n}\n.opacity-70 {\n opacity: 0.7;\n}\n.opacity-80 {\n opacity: 0.8;\n}\n.opacity-\\[0\\.38\\] {\n opacity: 0.38;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.shadow-\\[0px_4px_5px_var\\(--theme-shadow\\)\\] {\n --tw-shadow: 0px 4px 5px var(--theme-shadow);\n --tw-shadow-colored: 0px 4px 5px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.shadow-none {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.outline {\n outline-style: solid;\n}\n.saturate-0 {\n --tw-saturate: saturate(0);\n 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);\n}\n.saturate-100 {\n --tw-saturate: saturate(1);\n 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);\n}\n.saturate-\\[0\\.8\\] {\n --tw-saturate: saturate(0.8);\n 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);\n}\n.filter {\n 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);\n}\n.backdrop-blur-\\[2px\\] {\n --tw-backdrop-blur: blur(2px);\n backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.backdrop-blur-\\[8px\\] {\n --tw-backdrop-blur: blur(8px);\n backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.transition {\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke,\n opacity,\n box-shadow,\n transform,\n filter,\n backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-\\[background-color\\,color\\] {\n transition-property: background-color, color;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-\\[border-color\\,box-shadow\\,background-color\\] {\n transition-property:\n border-color,\n box-shadow,\n background-color;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-\\[opacity\\,filter\\] {\n transition-property: opacity, filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-\\[transform\\,color\\] {\n transition-property: transform, color;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.duration-150 {\n transition-duration: 150ms;\n}\n.duration-300 {\n transition-duration: 300ms;\n}\n.\\[grid-template-columns\\:repeat\\(auto-fit\\,minmax\\(120px\\,1fr\\)\\)\\] {\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n}\n:root {\n --ui-kit-font-family:\n "Lato",\n system-ui,\n sans-serif;\n}\n.ui-kit-root {\n font-family: var(--ui-kit-font-family);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.ui-kit-root :is(button, input, textarea, select, option) {\n font-family: var(--ui-kit-font-family);\n}\n.placeholder\\:text-\\[var\\(--theme-textLight\\)\\]::-moz-placeholder {\n color: var(--theme-textLight);\n}\n.placeholder\\:text-\\[var\\(--theme-textLight\\)\\]::placeholder {\n color: var(--theme-textLight);\n}\n.placeholder\\:opacity-100::-moz-placeholder {\n opacity: 1;\n}\n.placeholder\\:opacity-100::placeholder {\n opacity: 1;\n}\n.hover\\:-translate-y-\\[0\\.5px\\]:hover {\n --tw-translate-y: -0.5px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.hover\\:border-\\[var\\(--theme-primary\\)\\]:hover {\n border-color: var(--theme-primary);\n}\n.hover\\:border-\\[var\\(--theme-primaryDark\\)\\]:hover {\n border-color: var(--theme-primaryDark);\n}\n.hover\\:bg-\\[var\\(--theme-primary\\)\\]:hover {\n background-color: var(--theme-primary);\n}\n.hover\\:bg-\\[var\\(--theme-primaryDark\\)\\]:hover {\n background-color: var(--theme-primaryDark);\n}\n.hover\\:bg-\\[var\\(--theme-surface\\)\\]:hover {\n background-color: var(--theme-surface);\n}\n.hover\\:text-\\[var\\(--theme-onPrimary\\)\\]:hover {\n color: var(--theme-onPrimary);\n}\n.hover\\:shadow-\\[0px_4px_5px_var\\(--theme-shadow\\)\\]:hover {\n --tw-shadow: 0px 4px 5px var(--theme-shadow);\n --tw-shadow-colored: 0px 4px 5px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.active\\:translate-y-px:active {\n --tw-translate-y: 1px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.active\\:scale-\\[0\\.985\\]:active {\n --tw-scale-x: 0.985;\n --tw-scale-y: 0.985;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.active\\:border-\\[var\\(--theme-primary\\)\\]:active {\n border-color: var(--theme-primary);\n}\n.active\\:bg-\\[var\\(--theme-primary\\)\\]:active {\n background-color: var(--theme-primary);\n}\n.active\\:bg-\\[var\\(--theme-secondary\\)\\]:active {\n background-color: var(--theme-secondary);\n}\n.active\\:text-\\[var\\(--theme-onPrimary\\)\\]:active {\n color: var(--theme-onPrimary);\n}\n.active\\:shadow-\\[0px_4px_5px_var\\(--theme-shadow\\)\\]:active {\n --tw-shadow: 0px 4px 5px var(--theme-shadow);\n --tw-shadow-colored: 0px 4px 5px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.disabled\\:translate-y-0:disabled {\n --tw-translate-y: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.disabled\\:scale-100:disabled {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n');
|
|
66
66
|
|
|
67
67
|
// node_modules/@fontsource/lato/files/lato-latin-400-normal.woff
|
|
68
68
|
var lato_latin_400_normal_default = "data:font/woff;base64,d09GRgABAAAAAEQsAA0AAAAAblAAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHUE9TAAABMAAACMoAABJ6cXSU0UdTVUIAAAn8AAAAVAAAAHCOPI56T1MvMgAAClAAAABaAAAAYHkkYXljbWFwAAAKrAAAAIoAAADErZmxjGdhc3AAAAs4AAAADAAAAAwAEgAYZ2x5ZgAAC0QAADHcAABOwGxr65BoZWFkAAA9IAAAADYAAAA2/JzyI2hoZWEAAD1YAAAAHwAAACQPtgd3aG10eAAAPXgAAAIQAAADdn2DTzdsb2NhAAA/iAAAAb0AAAHCeLxl9G1heHAAAEFIAAAAHAAAACAA7gDmbmFtZQAAQWQAAAEuAAACmDboUwRwb3N0AABClAAAAZUAAAJFV9sNeHjaVI8DbCUBFEXPoBrsIFjEa9u2bdu2bdu2N1i7thmUcYpYDX8HZZ79LgKg0JWRiCNHT5xJs43Ldm6mETJAIIDgUJ0P4oZV2526rwEBvA7R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f3JmUXJpblpOagWYz1mUmZcOUVSSmZMCUQQA7UuEPgAAAA==";
|
|
@@ -149,21 +149,12 @@ var cx = (...values) => {
|
|
|
149
149
|
};
|
|
150
150
|
var UI_KIT_ROOT_CLASSNAME = "ui-kit-root";
|
|
151
151
|
|
|
152
|
-
// src/foundation/color.ts
|
|
153
|
-
function withAlpha(hex, alpha) {
|
|
154
|
-
const normalized = hex.replace("#", "").trim();
|
|
155
|
-
const value = normalized.length === 3 ? normalized.split("").map((char) => char + char).join("") : normalized;
|
|
156
|
-
const red = Number.parseInt(value.slice(0, 2), 16);
|
|
157
|
-
const green = Number.parseInt(value.slice(2, 4), 16);
|
|
158
|
-
const blue = Number.parseInt(value.slice(4, 6), 16);
|
|
159
|
-
return `rgba(${red}, ${green}, ${blue}, ${alpha})`;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
152
|
// src/foundation/componentState.ts
|
|
163
153
|
var DISABLED_COMPONENT_OPACITY = 0.5;
|
|
164
154
|
var DISABLED_FIELD_OPACITY = 0.7;
|
|
165
155
|
|
|
166
156
|
// src/foundation/controlSize.ts
|
|
157
|
+
var CONTROL_LEADING_ICON_SHIFT = 5;
|
|
167
158
|
var CONTROL_METRICS_BY_SIZE = {
|
|
168
159
|
sm: {
|
|
169
160
|
height: 30,
|
|
@@ -197,22 +188,20 @@ var CONTROL_METRICS_BY_SIZE = {
|
|
|
197
188
|
}
|
|
198
189
|
};
|
|
199
190
|
var getControlMetrics = (size) => CONTROL_METRICS_BY_SIZE[size];
|
|
191
|
+
var getControlLeadingIconInset = (size) => {
|
|
192
|
+
const metrics = getControlMetrics(size);
|
|
193
|
+
return Math.round(metrics.paddingX / 2) + CONTROL_LEADING_ICON_SHIFT;
|
|
194
|
+
};
|
|
195
|
+
var getControlLeadingAdornmentWidth = (size, iconSize) => {
|
|
196
|
+
return getControlLeadingIconInset(size) + iconSize;
|
|
197
|
+
};
|
|
200
198
|
var getSelectIndicatorOffset = (size) => getControlMetrics(size).selectIndicatorOffset;
|
|
201
199
|
|
|
202
200
|
// src/foundation/shadow.ts
|
|
203
|
-
var LIGHT_SHADOW = "#B8B8B8";
|
|
204
|
-
var DARK_SHADOW = "#181818";
|
|
205
|
-
function getComponentShadow(theme) {
|
|
206
|
-
var _a;
|
|
207
|
-
const colors = theme.colors;
|
|
208
|
-
const fallbackShadow = `${theme.title}`.toUpperCase() === "DARK" ? DARK_SHADOW : LIGHT_SHADOW;
|
|
209
|
-
const shadowColor = (_a = colors.shadow) != null ? _a : fallbackShadow;
|
|
210
|
-
return `${shadowColor} 0px 4px 5px`;
|
|
211
|
-
}
|
|
212
201
|
function getInsetBorderShadow(borderColor, options = {}) {
|
|
213
202
|
const {
|
|
214
203
|
outerShadow,
|
|
215
|
-
componentShadow = "var(--
|
|
204
|
+
componentShadow = "0px 4px 5px var(--theme-shadow)",
|
|
216
205
|
insetWidth = 1
|
|
217
206
|
} = options;
|
|
218
207
|
return [
|
|
@@ -297,29 +286,14 @@ var ROOT_THEME_VARIABLES = [
|
|
|
297
286
|
["--theme-onPrimary", "onPrimary"],
|
|
298
287
|
["--theme-onSecondary", "onSecondary"]
|
|
299
288
|
];
|
|
300
|
-
var syncUiKitThemeVariables = (
|
|
289
|
+
var syncUiKitThemeVariables = (theme) => {
|
|
301
290
|
if (typeof document === "undefined") {
|
|
302
291
|
return;
|
|
303
292
|
}
|
|
304
293
|
const rootStyle = document.documentElement.style;
|
|
305
294
|
ROOT_THEME_VARIABLES.forEach(([variableName, colorName]) => {
|
|
306
|
-
rootStyle.setProperty(variableName,
|
|
295
|
+
rootStyle.setProperty(variableName, theme.colors[colorName]);
|
|
307
296
|
});
|
|
308
|
-
rootStyle.setProperty("--ui-kit-border-soft", tokens.borderSoft);
|
|
309
|
-
rootStyle.setProperty("--ui-kit-border-strong", tokens.borderStrong);
|
|
310
|
-
rootStyle.setProperty("--ui-kit-surface-muted", tokens.surfaceMuted);
|
|
311
|
-
rootStyle.setProperty("--ui-kit-surface-raised", tokens.surfaceRaised);
|
|
312
|
-
rootStyle.setProperty("--ui-kit-overlay", tokens.overlay);
|
|
313
|
-
rootStyle.setProperty("--ui-kit-focus-ring", tokens.focusRing);
|
|
314
|
-
rootStyle.setProperty("--ui-kit-muted-text", tokens.mutedText);
|
|
315
|
-
rootStyle.setProperty("--ui-kit-component-shadow", getComponentShadow(tokens.theme));
|
|
316
|
-
rootStyle.setProperty("--ui-kit-card-bg", withAlpha(tokens.theme.colors.background, 0.7));
|
|
317
|
-
rootStyle.setProperty("--ui-kit-card-border", withAlpha(tokens.theme.colors.text, 0.5));
|
|
318
|
-
rootStyle.setProperty("--ui-kit-button-outline-hover", withAlpha(tokens.theme.colors.text, 0.08));
|
|
319
|
-
rootStyle.setProperty("--ui-kit-button-outline-active", withAlpha(tokens.theme.colors.text, 0.14));
|
|
320
|
-
rootStyle.setProperty("--ui-kit-button-ghost-border", withAlpha(tokens.theme.colors.primary, 0.5));
|
|
321
|
-
rootStyle.setProperty("--ui-kit-placeholder", withAlpha(tokens.theme.colors.text, 0.5));
|
|
322
|
-
rootStyle.setProperty("--ui-kit-negative-soft", withAlpha(tokens.theme.colors.negative, 0.12));
|
|
323
297
|
};
|
|
324
298
|
function normalizeUiKitTheme(theme) {
|
|
325
299
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
@@ -353,26 +327,13 @@ function normalizeUiKitTheme(theme) {
|
|
|
353
327
|
color: normalizedColors
|
|
354
328
|
};
|
|
355
329
|
}
|
|
356
|
-
function createUiKitThemeTokens(themeSource) {
|
|
357
|
-
const theme = normalizeUiKitTheme(themeSource);
|
|
358
|
-
return {
|
|
359
|
-
theme,
|
|
360
|
-
borderSoft: withAlpha(theme.colors.text, 0.1),
|
|
361
|
-
borderStrong: withAlpha(theme.colors.text, 0.16),
|
|
362
|
-
surfaceMuted: withAlpha(theme.colors.text, 0.04),
|
|
363
|
-
surfaceRaised: withAlpha(theme.colors.surface, 0.94),
|
|
364
|
-
overlay: withAlpha("#030712", 0.62),
|
|
365
|
-
focusRing: withAlpha(theme.colors.primary, 0.22),
|
|
366
|
-
mutedText: withAlpha(theme.colors.text, 0.72)
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
330
|
function useUiKitTheme() {
|
|
370
331
|
const activeTheme = (0, import_smartsell_theme.useThemeValue)();
|
|
371
|
-
const
|
|
332
|
+
const theme = (0, import_react.useMemo)(() => normalizeUiKitTheme(activeTheme), [activeTheme]);
|
|
372
333
|
(0, import_react.useEffect)(() => {
|
|
373
|
-
syncUiKitThemeVariables(
|
|
374
|
-
}, [
|
|
375
|
-
return
|
|
334
|
+
syncUiKitThemeVariables(theme);
|
|
335
|
+
}, [theme]);
|
|
336
|
+
return theme;
|
|
376
337
|
}
|
|
377
338
|
|
|
378
339
|
// src/components/Button.tsx
|
|
@@ -400,10 +361,10 @@ var BUTTON_VARIANT_CLASSNAMES = {
|
|
|
400
361
|
"text-[var(--theme-text)]",
|
|
401
362
|
"shadow-[0px_4px_5px_var(--theme-shadow)]",
|
|
402
363
|
"hover:-translate-y-[0.5px]",
|
|
403
|
-
"hover:bg-[var(--
|
|
364
|
+
"hover:bg-[var(--theme-surface)]",
|
|
404
365
|
"active:translate-y-px",
|
|
405
366
|
"active:scale-[0.985]",
|
|
406
|
-
"active:bg-[var(--
|
|
367
|
+
"active:bg-[var(--theme-secondary)]"
|
|
407
368
|
].join(" "),
|
|
408
369
|
ghost: [
|
|
409
370
|
"border-transparent",
|
|
@@ -411,13 +372,13 @@ var BUTTON_VARIANT_CLASSNAMES = {
|
|
|
411
372
|
"text-[var(--theme-text)]",
|
|
412
373
|
"shadow-none",
|
|
413
374
|
"hover:-translate-y-[0.5px]",
|
|
414
|
-
"hover:border-[var(--
|
|
375
|
+
"hover:border-[var(--theme-primary)]",
|
|
415
376
|
"hover:bg-[var(--theme-primary)]",
|
|
416
377
|
"hover:text-[var(--theme-onPrimary)]",
|
|
417
378
|
"hover:shadow-[0px_4px_5px_var(--theme-shadow)]",
|
|
418
379
|
"active:translate-y-px",
|
|
419
380
|
"active:scale-[0.985]",
|
|
420
|
-
"active:border-[var(--
|
|
381
|
+
"active:border-[var(--theme-primary)]",
|
|
421
382
|
"active:bg-[var(--theme-primary)]",
|
|
422
383
|
"active:text-[var(--theme-onPrimary)]",
|
|
423
384
|
"active:shadow-[0px_4px_5px_var(--theme-shadow)]"
|
|
@@ -480,10 +441,8 @@ function Card({
|
|
|
480
441
|
...rest,
|
|
481
442
|
className: cx(
|
|
482
443
|
UI_KIT_ROOT_CLASSNAME,
|
|
483
|
-
"rounded-[28px] border text-[var(--theme-text)]",
|
|
444
|
+
"rounded-[28px] border border-[var(--theme-secondary)] bg-[var(--theme-surface)] text-[var(--theme-text)]",
|
|
484
445
|
"shadow-[0px_4px_5px_var(--theme-shadow)]",
|
|
485
|
-
"[background:var(--ui-kit-card-bg)]",
|
|
486
|
-
"[border-color:var(--ui-kit-card-border)]",
|
|
487
446
|
padded && "p-6",
|
|
488
447
|
className
|
|
489
448
|
),
|
|
@@ -512,7 +471,7 @@ function CardSmall({
|
|
|
512
471
|
style,
|
|
513
472
|
...rest
|
|
514
473
|
}) {
|
|
515
|
-
const
|
|
474
|
+
const theme = useUiKitTheme();
|
|
516
475
|
const accentColor = color != null ? color : theme.colors.primary;
|
|
517
476
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
518
477
|
"div",
|
|
@@ -522,7 +481,7 @@ function CardSmall({
|
|
|
522
481
|
UI_KIT_ROOT_CLASSNAME,
|
|
523
482
|
"relative flex min-h-20 items-center gap-4 overflow-hidden",
|
|
524
483
|
"rounded-2xl border border-solid border-[var(--ui-kit-accent)]",
|
|
525
|
-
"bg-[var(--
|
|
484
|
+
"bg-[var(--theme-surface)] pl-6 pr-6 text-[var(--theme-text)]",
|
|
526
485
|
"shadow-[0px_4px_5px_var(--theme-shadow)]",
|
|
527
486
|
className
|
|
528
487
|
),
|
|
@@ -608,7 +567,7 @@ function CheckboxIndicator({
|
|
|
608
567
|
uncheckedBackgroundColor,
|
|
609
568
|
style
|
|
610
569
|
}) {
|
|
611
|
-
const
|
|
570
|
+
const theme = useUiKitTheme();
|
|
612
571
|
const isActive = checked || indeterminate;
|
|
613
572
|
const resolvedCheckedColor = checkedColor != null ? checkedColor : theme.colors.textLight;
|
|
614
573
|
const resolvedIconColor = iconColor != null ? iconColor : theme.colors.surface;
|
|
@@ -658,7 +617,8 @@ function Checkbox({
|
|
|
658
617
|
onBlur,
|
|
659
618
|
...rest
|
|
660
619
|
}) {
|
|
661
|
-
const
|
|
620
|
+
const theme = useUiKitTheme();
|
|
621
|
+
const mutedText = theme.colors.textLight;
|
|
662
622
|
const indicatorSize = getCheckboxSize(controlSize);
|
|
663
623
|
const hasLabel = hasNodeContent(label);
|
|
664
624
|
const hasHint = hasNodeContent(hint);
|
|
@@ -666,7 +626,6 @@ function Checkbox({
|
|
|
666
626
|
const hasSecondaryContent = hasLabel && hasHint;
|
|
667
627
|
const resolvedId = id != null ? id : `ss-checkbox-${(0, import_react2.useId)().replace(/:/g, "")}`;
|
|
668
628
|
const inputRef = (0, import_react2.useRef)(null);
|
|
669
|
-
const [isFocused, setIsFocused] = (0, import_react2.useState)(false);
|
|
670
629
|
const [internalChecked, setInternalChecked] = (0, import_react2.useState)(Boolean(defaultChecked));
|
|
671
630
|
const isControlled = checked !== void 0;
|
|
672
631
|
const resolvedChecked = isControlled ? Boolean(checked) : internalChecked;
|
|
@@ -698,9 +657,7 @@ function Checkbox({
|
|
|
698
657
|
{
|
|
699
658
|
className: cx(
|
|
700
659
|
"relative inline-flex shrink-0 items-center justify-center rounded-full p-0.5",
|
|
701
|
-
hasSecondaryContent ? "mt-px" : "mt-0"
|
|
702
|
-
"transition-shadow duration-150",
|
|
703
|
-
isFocused ? "shadow-[0_0_0_3px_var(--ui-kit-focus-ring)]" : "shadow-none"
|
|
660
|
+
hasSecondaryContent ? "mt-px" : "mt-0"
|
|
704
661
|
),
|
|
705
662
|
children: [
|
|
706
663
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
@@ -720,11 +677,9 @@ function Checkbox({
|
|
|
720
677
|
onChange == null ? void 0 : onChange(event);
|
|
721
678
|
},
|
|
722
679
|
onFocus: (event) => {
|
|
723
|
-
setIsFocused(true);
|
|
724
680
|
onFocus == null ? void 0 : onFocus(event);
|
|
725
681
|
},
|
|
726
682
|
onBlur: (event) => {
|
|
727
|
-
setIsFocused(false);
|
|
728
683
|
onBlur == null ? void 0 : onBlur(event);
|
|
729
684
|
},
|
|
730
685
|
className: cx(
|
|
@@ -742,7 +697,7 @@ function Checkbox({
|
|
|
742
697
|
size: indicatorSize,
|
|
743
698
|
checkedColor: theme.colors.primary,
|
|
744
699
|
iconColor: theme.colors.onPrimary,
|
|
745
|
-
uncheckedBorderColor:
|
|
700
|
+
uncheckedBorderColor: theme.colors.text,
|
|
746
701
|
uncheckedBackgroundColor: theme.colors.surface,
|
|
747
702
|
style: disabled ? { opacity: 1 } : void 0
|
|
748
703
|
}
|
|
@@ -762,7 +717,7 @@ function Checkbox({
|
|
|
762
717
|
label,
|
|
763
718
|
required ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "ml-1 text-[var(--theme-negative)]", children: "*" }) : null
|
|
764
719
|
] }) : null,
|
|
765
|
-
hint ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-[13px] leading-[1.45] text-[var(--
|
|
720
|
+
hint ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-[13px] leading-[1.45] text-[var(--theme-textLight)]", children: hint }) : null,
|
|
766
721
|
error ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-[13px] font-semibold leading-[1.45] text-[var(--theme-negative)]", children: error }) : null
|
|
767
722
|
]
|
|
768
723
|
}
|
|
@@ -780,29 +735,25 @@ var import_react4 = require("react");
|
|
|
780
735
|
// src/components/Modal.tsx
|
|
781
736
|
var import_react3 = require("react");
|
|
782
737
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
783
|
-
var
|
|
784
|
-
return Boolean(theme && typeof theme === "object" && "theme" in theme);
|
|
738
|
+
var isUiKitTheme = (theme) => {
|
|
739
|
+
return Boolean(theme && typeof theme === "object" && "title" in theme && "color" in theme);
|
|
785
740
|
};
|
|
786
|
-
var withResolvedModalColors = (theme) => ({
|
|
787
|
-
...theme,
|
|
788
|
-
colors: theme.theme.colors
|
|
789
|
-
});
|
|
790
741
|
var resolveTheme = (baseTheme, themeOverride) => {
|
|
791
|
-
if (
|
|
792
|
-
return
|
|
742
|
+
if (isUiKitTheme(themeOverride)) {
|
|
743
|
+
return themeOverride;
|
|
793
744
|
}
|
|
794
745
|
if (!(themeOverride == null ? void 0 : themeOverride.colors)) {
|
|
795
|
-
return
|
|
746
|
+
return baseTheme;
|
|
796
747
|
}
|
|
797
748
|
const colors = {
|
|
798
|
-
...baseTheme.
|
|
749
|
+
...baseTheme.colors,
|
|
799
750
|
...themeOverride.colors
|
|
800
751
|
};
|
|
801
|
-
return
|
|
802
|
-
...baseTheme
|
|
752
|
+
return normalizeUiKitTheme({
|
|
753
|
+
...baseTheme,
|
|
803
754
|
colors,
|
|
804
755
|
color: colors
|
|
805
|
-
})
|
|
756
|
+
});
|
|
806
757
|
};
|
|
807
758
|
var normalizeWidth = (maxWidth) => {
|
|
808
759
|
if (typeof maxWidth === "number") {
|
|
@@ -826,8 +777,7 @@ var createTitleId = (title) => {
|
|
|
826
777
|
return "smartsell-modal-dialog";
|
|
827
778
|
};
|
|
828
779
|
function ModalActionButton({
|
|
829
|
-
action
|
|
830
|
-
theme
|
|
780
|
+
action
|
|
831
781
|
}) {
|
|
832
782
|
var _a, _b;
|
|
833
783
|
const {
|
|
@@ -842,12 +792,12 @@ function ModalActionButton({
|
|
|
842
792
|
"m-0 text-center font-bold leading-[1.2]",
|
|
843
793
|
appearance === "link" ? "p-0 text-[1.05rem]" : "px-[1.15rem] py-[0.9rem] text-[1.05rem]",
|
|
844
794
|
disabled ? "cursor-not-allowed saturate-0" : "cursor-pointer",
|
|
845
|
-
appearance === "text" && "border border-transparent bg-transparent text-[var(--
|
|
846
|
-
appearance === "link" && "border-0 bg-transparent text-[var(--
|
|
847
|
-
appearance === "outlined" && "border-2 border-[var(--
|
|
848
|
-
appearance === "outlined" && "text-[var(--
|
|
849
|
-
appearance === "contained" && "border border-transparent bg-[var(--
|
|
850
|
-
appearance === "contained" && "text-[var(--
|
|
795
|
+
appearance === "text" && "border border-transparent bg-transparent text-[var(--theme-primary)] shadow-none",
|
|
796
|
+
appearance === "link" && "border-0 bg-transparent text-[var(--theme-primary)] shadow-none",
|
|
797
|
+
appearance === "outlined" && "border-2 border-[var(--theme-primary)] bg-transparent",
|
|
798
|
+
appearance === "outlined" && "text-[var(--theme-primary)]",
|
|
799
|
+
appearance === "contained" && "border border-transparent bg-[var(--theme-primary)]",
|
|
800
|
+
appearance === "contained" && "text-[var(--theme-onPrimary)]"
|
|
851
801
|
);
|
|
852
802
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
853
803
|
"div",
|
|
@@ -865,7 +815,10 @@ function ModalActionButton({
|
|
|
865
815
|
onClick: disabled ? void 0 : onClick,
|
|
866
816
|
disabled,
|
|
867
817
|
className: buttonClassName,
|
|
868
|
-
style: {
|
|
818
|
+
style: {
|
|
819
|
+
opacity: disabled ? DISABLED_COMPONENT_OPACITY : 1,
|
|
820
|
+
boxShadow: appearance === "text" || appearance === "link" ? "none" : "0 14px 28px var(--theme-shadow)"
|
|
821
|
+
},
|
|
869
822
|
children: label
|
|
870
823
|
}
|
|
871
824
|
)
|
|
@@ -882,8 +835,8 @@ function ModalBusyIndicator({
|
|
|
882
835
|
role: "status",
|
|
883
836
|
className: "relative inline-flex h-14 w-14 items-center justify-center rounded-full",
|
|
884
837
|
style: {
|
|
885
|
-
backgroundColor:
|
|
886
|
-
boxShadow: `0 18px 36px ${
|
|
838
|
+
backgroundColor: theme.colors.surface,
|
|
839
|
+
boxShadow: `0 18px 36px ${theme.colors.shadow}`
|
|
887
840
|
},
|
|
888
841
|
children: [
|
|
889
842
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "ui-kit-sr-only", children: "Loading" }),
|
|
@@ -894,7 +847,7 @@ function ModalBusyIndicator({
|
|
|
894
847
|
cx: "20",
|
|
895
848
|
cy: "20",
|
|
896
849
|
r: "16",
|
|
897
|
-
stroke:
|
|
850
|
+
stroke: theme.colors.textLight,
|
|
898
851
|
strokeWidth: "4"
|
|
899
852
|
}
|
|
900
853
|
),
|
|
@@ -977,24 +930,22 @@ function UnifiedModal({
|
|
|
977
930
|
const inheritedTheme = useUiKitTheme();
|
|
978
931
|
const modalTheme = (0, import_react3.useMemo)(() => resolveTheme(inheritedTheme, theme), [inheritedTheme, theme]);
|
|
979
932
|
const modalShadow = (0, import_react3.useMemo)(() => {
|
|
980
|
-
return `0 34px 80px ${
|
|
981
|
-
}, [modalTheme.
|
|
982
|
-
const controlShadow =
|
|
983
|
-
const
|
|
984
|
-
"--
|
|
985
|
-
"--
|
|
986
|
-
"--
|
|
987
|
-
"--
|
|
988
|
-
"--
|
|
989
|
-
"--
|
|
990
|
-
"--
|
|
991
|
-
"--
|
|
992
|
-
"--
|
|
993
|
-
"--
|
|
994
|
-
"--
|
|
995
|
-
|
|
996
|
-
"--ui-kit-modal-button-shadow-contained": `0 14px 28px ${withAlpha(modalTheme.colors.primary, 0.22)}`
|
|
997
|
-
}), [controlShadow, modalShadow, modalTheme]);
|
|
933
|
+
return `0 34px 80px ${modalTheme.colors.shadow}`;
|
|
934
|
+
}, [modalTheme.colors.shadow]);
|
|
935
|
+
const controlShadow = "0px 4px 5px var(--theme-shadow)";
|
|
936
|
+
const modalThemeVariables = (0, import_react3.useMemo)(() => ({
|
|
937
|
+
"--theme-background": modalTheme.colors.background,
|
|
938
|
+
"--theme-surface": modalTheme.colors.surface,
|
|
939
|
+
"--theme-text": modalTheme.colors.text,
|
|
940
|
+
"--theme-textLight": modalTheme.colors.textLight,
|
|
941
|
+
"--theme-primary": modalTheme.colors.primary,
|
|
942
|
+
"--theme-onPrimary": modalTheme.colors.onPrimary,
|
|
943
|
+
"--theme-secondary": modalTheme.colors.secondary,
|
|
944
|
+
"--theme-onSecondary": modalTheme.colors.onSecondary,
|
|
945
|
+
"--theme-negative": modalTheme.colors.negative,
|
|
946
|
+
"--theme-warning": modalTheme.colors.warning,
|
|
947
|
+
"--theme-shadow": modalTheme.colors.shadow
|
|
948
|
+
}), [modalTheme]);
|
|
998
949
|
const [isMaximized, setIsMaximized] = (0, import_react3.useState)(maximized != null ? maximized : false);
|
|
999
950
|
const titleId = (0, import_react3.useMemo)(() => createTitleId(title), [title]);
|
|
1000
951
|
const shouldDisableDismiss = disableDismiss || isBusy;
|
|
@@ -1031,7 +982,7 @@ function UnifiedModal({
|
|
|
1031
982
|
"h2",
|
|
1032
983
|
{
|
|
1033
984
|
id: titleId,
|
|
1034
|
-
className: "m-0 text-2xl font-extrabold leading-[1.1] text-[var(--
|
|
985
|
+
className: "m-0 text-2xl font-extrabold leading-[1.1] text-[var(--theme-text)]",
|
|
1035
986
|
children: title
|
|
1036
987
|
}
|
|
1037
988
|
) : null;
|
|
@@ -1041,8 +992,7 @@ function UnifiedModal({
|
|
|
1041
992
|
footerContent = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1042
993
|
ModalActionButton,
|
|
1043
994
|
{
|
|
1044
|
-
action: { ...closeAction, disabled: closeAction.disabled || isBusy }
|
|
1045
|
-
theme: modalTheme
|
|
995
|
+
action: { ...closeAction, disabled: closeAction.disabled || isBusy }
|
|
1046
996
|
}
|
|
1047
997
|
);
|
|
1048
998
|
} else {
|
|
@@ -1075,8 +1025,7 @@ function UnifiedModal({
|
|
|
1075
1025
|
footerContent = resolvedActions.length > 0 ? resolvedActions.map((action, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1076
1026
|
ModalActionButton,
|
|
1077
1027
|
{
|
|
1078
|
-
action
|
|
1079
|
-
theme: modalTheme
|
|
1028
|
+
action
|
|
1080
1029
|
},
|
|
1081
1030
|
`modal-action-${index}`
|
|
1082
1031
|
)) : void 0;
|
|
@@ -1098,17 +1047,17 @@ function UnifiedModal({
|
|
|
1098
1047
|
},
|
|
1099
1048
|
className: cx(UI_KIT_ROOT_CLASSNAME, "fixed inset-0 z-[70] flex items-center justify-center backdrop-blur-[8px]"),
|
|
1100
1049
|
style: {
|
|
1101
|
-
...
|
|
1050
|
+
...modalThemeVariables,
|
|
1102
1051
|
padding: isMaximized ? 0 : 16,
|
|
1103
|
-
backgroundColor:
|
|
1052
|
+
backgroundColor: modalTheme.colors.shadow
|
|
1104
1053
|
},
|
|
1105
1054
|
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1106
1055
|
"div",
|
|
1107
1056
|
{
|
|
1108
1057
|
className: cx(
|
|
1109
1058
|
"relative flex flex-col overflow-hidden border",
|
|
1110
|
-
"bg-[
|
|
1111
|
-
"text-[var(--
|
|
1059
|
+
"bg-[var(--theme-surface)]",
|
|
1060
|
+
"text-[var(--theme-text)]",
|
|
1112
1061
|
isMaximized ? "rounded-none" : "rounded-[30px]"
|
|
1113
1062
|
),
|
|
1114
1063
|
style: {
|
|
@@ -1117,8 +1066,8 @@ function UnifiedModal({
|
|
|
1117
1066
|
height: isMaximized ? "100vh" : void 0,
|
|
1118
1067
|
maxHeight: isMaximized ? "100vh" : "calc(100vh - 32px)",
|
|
1119
1068
|
minWidth: isMaximized ? "100vw" : 300,
|
|
1120
|
-
borderColor:
|
|
1121
|
-
boxShadow:
|
|
1069
|
+
borderColor: modalTheme.colors.secondary,
|
|
1070
|
+
boxShadow: modalShadow,
|
|
1122
1071
|
...contentStyle
|
|
1123
1072
|
},
|
|
1124
1073
|
children: [
|
|
@@ -1126,7 +1075,7 @@ function UnifiedModal({
|
|
|
1126
1075
|
"div",
|
|
1127
1076
|
{
|
|
1128
1077
|
className: "flex items-start justify-between gap-3 border-b px-5 pb-3 pt-[18px]",
|
|
1129
|
-
style: { borderColor:
|
|
1078
|
+
style: { borderColor: modalTheme.colors.secondary },
|
|
1130
1079
|
children: [
|
|
1131
1080
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1132
1081
|
"div",
|
|
@@ -1146,8 +1095,8 @@ function UnifiedModal({
|
|
|
1146
1095
|
title: isMaximized ? "Minimize" : "Maximize",
|
|
1147
1096
|
type: "button",
|
|
1148
1097
|
onClick: () => setIsMaximized((current) => !current),
|
|
1149
|
-
className: "m-0 inline-flex h-[30px] w-[30px] shrink-0 cursor-pointer appearance-none items-center justify-center rounded-full border bg-transparent p-0 text-[var(--
|
|
1150
|
-
style: { borderColor:
|
|
1098
|
+
className: "m-0 inline-flex h-[30px] w-[30px] shrink-0 cursor-pointer appearance-none items-center justify-center rounded-full border bg-transparent p-0 text-[var(--theme-text)] leading-none",
|
|
1099
|
+
style: { borderColor: modalTheme.colors.secondary, boxShadow: controlShadow },
|
|
1151
1100
|
children: isMaximized ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(MinimizeIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(MaximizeIcon, {})
|
|
1152
1101
|
}
|
|
1153
1102
|
) : null,
|
|
@@ -1159,12 +1108,12 @@ function UnifiedModal({
|
|
|
1159
1108
|
onClick: shouldDisableDismiss ? void 0 : onClose,
|
|
1160
1109
|
className: cx(
|
|
1161
1110
|
"flex h-[30px] w-[30px] items-center justify-center rounded-full border",
|
|
1162
|
-
"bg-transparent text-[20px] font-bold text-[var(--
|
|
1163
|
-
"shadow-[var(--ui-kit-modal-control-shadow)]",
|
|
1111
|
+
"bg-transparent text-[20px] font-bold text-[var(--theme-text)]",
|
|
1164
1112
|
shouldDisableDismiss ? "cursor-not-allowed" : "cursor-pointer"
|
|
1165
1113
|
),
|
|
1166
1114
|
style: {
|
|
1167
|
-
borderColor:
|
|
1115
|
+
borderColor: modalTheme.colors.secondary,
|
|
1116
|
+
boxShadow: controlShadow,
|
|
1168
1117
|
opacity: shouldDisableDismiss ? DISABLED_COMPONENT_OPACITY : 1
|
|
1169
1118
|
},
|
|
1170
1119
|
children: "\xD7"
|
|
@@ -1193,7 +1142,8 @@ function UnifiedModal({
|
|
|
1193
1142
|
isBusy ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1194
1143
|
"div",
|
|
1195
1144
|
{
|
|
1196
|
-
className: "absolute inset-0 flex items-center justify-center
|
|
1145
|
+
className: "absolute inset-0 flex items-center justify-center backdrop-blur-[2px]",
|
|
1146
|
+
style: { backgroundColor: modalTheme.colors.background },
|
|
1197
1147
|
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ModalBusyIndicator, { theme: modalTheme })
|
|
1198
1148
|
}
|
|
1199
1149
|
) : null
|
|
@@ -1204,7 +1154,7 @@ function UnifiedModal({
|
|
|
1204
1154
|
"div",
|
|
1205
1155
|
{
|
|
1206
1156
|
className: "flex justify-end gap-2.5 border-t px-5 pb-4 pt-3",
|
|
1207
|
-
style: { borderColor:
|
|
1157
|
+
style: { borderColor: modalTheme.colors.secondary },
|
|
1208
1158
|
children: footerContent
|
|
1209
1159
|
}
|
|
1210
1160
|
) : null
|
|
@@ -1345,6 +1295,218 @@ var FIELD_PADDING_X_CLASSNAMES = {
|
|
|
1345
1295
|
lg: "px-4"
|
|
1346
1296
|
};
|
|
1347
1297
|
var getPasswordToggleMetrics = (size) => PASSWORD_TOGGLE_METRICS_BY_SIZE[size];
|
|
1298
|
+
var LOGIN_VALIDATION_ERROR = "Spaces are not allowed.";
|
|
1299
|
+
var EMAIL_VALIDATION_ERROR = "Enter a valid email address.";
|
|
1300
|
+
var EMAIL_VALUE_PATTERN = /^[^\s@]+@[^\s@]+$/;
|
|
1301
|
+
var SPACE_PATTERN = /\s/;
|
|
1302
|
+
var isRenderableNode = (node) => node !== null && node !== void 0 && node !== false;
|
|
1303
|
+
var getInputValidationError = (type, value) => {
|
|
1304
|
+
if (!value) {
|
|
1305
|
+
return void 0;
|
|
1306
|
+
}
|
|
1307
|
+
if (type === "login") {
|
|
1308
|
+
return SPACE_PATTERN.test(value) ? LOGIN_VALIDATION_ERROR : void 0;
|
|
1309
|
+
}
|
|
1310
|
+
if (type === "email") {
|
|
1311
|
+
return EMAIL_VALUE_PATTERN.test(value) ? void 0 : EMAIL_VALIDATION_ERROR;
|
|
1312
|
+
}
|
|
1313
|
+
return void 0;
|
|
1314
|
+
};
|
|
1315
|
+
function EmailIcon({ size }) {
|
|
1316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", { width: size, height: size, viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
|
|
1317
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1318
|
+
"path",
|
|
1319
|
+
{
|
|
1320
|
+
d: "M3.75 6.25A1.875 1.875 0 0 1 5.625 4.375h8.75A1.875 1.875 0 0 1 16.25 6.25v7.5a1.875 1.875 0 0 1-1.875 1.875h-8.75A1.875 1.875 0 0 1 3.75 13.75v-7.5Z",
|
|
1321
|
+
stroke: "currentColor",
|
|
1322
|
+
strokeWidth: "1.6",
|
|
1323
|
+
strokeLinecap: "round",
|
|
1324
|
+
strokeLinejoin: "round"
|
|
1325
|
+
}
|
|
1326
|
+
),
|
|
1327
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1328
|
+
"path",
|
|
1329
|
+
{
|
|
1330
|
+
d: "M4.375 6.25 10 10.625l5.625-4.375",
|
|
1331
|
+
stroke: "currentColor",
|
|
1332
|
+
strokeWidth: "1.6",
|
|
1333
|
+
strokeLinecap: "round",
|
|
1334
|
+
strokeLinejoin: "round"
|
|
1335
|
+
}
|
|
1336
|
+
)
|
|
1337
|
+
] });
|
|
1338
|
+
}
|
|
1339
|
+
function LoginIcon({ size }) {
|
|
1340
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", { width: size, height: size, viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
|
|
1341
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "10", cy: "6.25", r: "3", stroke: "currentColor", strokeWidth: "1.6" }),
|
|
1342
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1343
|
+
"path",
|
|
1344
|
+
{
|
|
1345
|
+
d: "M4.75 16a5.25 5.25 0 0 1 10.5 0",
|
|
1346
|
+
stroke: "currentColor",
|
|
1347
|
+
strokeWidth: "1.6",
|
|
1348
|
+
strokeLinecap: "round"
|
|
1349
|
+
}
|
|
1350
|
+
)
|
|
1351
|
+
] });
|
|
1352
|
+
}
|
|
1353
|
+
function FileIcon({ size, selected }) {
|
|
1354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("svg", { width: size, height: size, viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: selected ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
1355
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1356
|
+
"path",
|
|
1357
|
+
{
|
|
1358
|
+
d: "M5.5 6.25h9",
|
|
1359
|
+
stroke: "currentColor",
|
|
1360
|
+
strokeWidth: "1.6",
|
|
1361
|
+
strokeLinecap: "round"
|
|
1362
|
+
}
|
|
1363
|
+
),
|
|
1364
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1365
|
+
"path",
|
|
1366
|
+
{
|
|
1367
|
+
d: "M7.25 6.25V5.25A1.5 1.5 0 0 1 8.75 3.75h2.5a1.5 1.5 0 0 1 1.5 1.5v1",
|
|
1368
|
+
stroke: "currentColor",
|
|
1369
|
+
strokeWidth: "1.6",
|
|
1370
|
+
strokeLinecap: "round",
|
|
1371
|
+
strokeLinejoin: "round"
|
|
1372
|
+
}
|
|
1373
|
+
),
|
|
1374
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1375
|
+
"path",
|
|
1376
|
+
{
|
|
1377
|
+
d: "M7.75 8.25v5.5",
|
|
1378
|
+
stroke: "currentColor",
|
|
1379
|
+
strokeWidth: "1.6",
|
|
1380
|
+
strokeLinecap: "round"
|
|
1381
|
+
}
|
|
1382
|
+
),
|
|
1383
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1384
|
+
"path",
|
|
1385
|
+
{
|
|
1386
|
+
d: "M10 8.25v5.5",
|
|
1387
|
+
stroke: "currentColor",
|
|
1388
|
+
strokeWidth: "1.6",
|
|
1389
|
+
strokeLinecap: "round"
|
|
1390
|
+
}
|
|
1391
|
+
),
|
|
1392
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1393
|
+
"path",
|
|
1394
|
+
{
|
|
1395
|
+
d: "M12.25 8.25v5.5",
|
|
1396
|
+
stroke: "currentColor",
|
|
1397
|
+
strokeWidth: "1.6",
|
|
1398
|
+
strokeLinecap: "round"
|
|
1399
|
+
}
|
|
1400
|
+
),
|
|
1401
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1402
|
+
"path",
|
|
1403
|
+
{
|
|
1404
|
+
d: "M6.75 6.25l.5 8a1.5 1.5 0 0 0 1.497 1.406h2.506A1.5 1.5 0 0 0 12.75 14.25l.5-8",
|
|
1405
|
+
stroke: "currentColor",
|
|
1406
|
+
strokeWidth: "1.6",
|
|
1407
|
+
strokeLinecap: "round",
|
|
1408
|
+
strokeLinejoin: "round"
|
|
1409
|
+
}
|
|
1410
|
+
)
|
|
1411
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
1412
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1413
|
+
"path",
|
|
1414
|
+
{
|
|
1415
|
+
d: "M6.25 2.5h5.652l4.348 4.348V15A2.5 2.5 0 0 1 13.75 17.5h-7.5A2.5 2.5 0 0 1 3.75 15V5A2.5 2.5 0 0 1 6.25 2.5Z",
|
|
1416
|
+
stroke: "currentColor",
|
|
1417
|
+
strokeWidth: "1.6",
|
|
1418
|
+
strokeLinecap: "round",
|
|
1419
|
+
strokeLinejoin: "round"
|
|
1420
|
+
}
|
|
1421
|
+
),
|
|
1422
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1423
|
+
"path",
|
|
1424
|
+
{
|
|
1425
|
+
d: "M11.875 2.75V6.25H15.375",
|
|
1426
|
+
stroke: "currentColor",
|
|
1427
|
+
strokeWidth: "1.6",
|
|
1428
|
+
strokeLinecap: "round",
|
|
1429
|
+
strokeLinejoin: "round"
|
|
1430
|
+
}
|
|
1431
|
+
),
|
|
1432
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1433
|
+
"path",
|
|
1434
|
+
{
|
|
1435
|
+
d: "M7.5 10h5",
|
|
1436
|
+
stroke: "currentColor",
|
|
1437
|
+
strokeWidth: "1.6",
|
|
1438
|
+
strokeLinecap: "round"
|
|
1439
|
+
}
|
|
1440
|
+
),
|
|
1441
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1442
|
+
"path",
|
|
1443
|
+
{
|
|
1444
|
+
d: "M7.5 13h5",
|
|
1445
|
+
stroke: "currentColor",
|
|
1446
|
+
strokeWidth: "1.6",
|
|
1447
|
+
strokeLinecap: "round"
|
|
1448
|
+
}
|
|
1449
|
+
)
|
|
1450
|
+
] }) });
|
|
1451
|
+
}
|
|
1452
|
+
function PasswordVisibleIcon({ size }) {
|
|
1453
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", { width: size, height: size, viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
|
|
1454
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1455
|
+
"path",
|
|
1456
|
+
{
|
|
1457
|
+
d: "M6.75 8V6.75A3.25 3.25 0 0 1 12.262 4.415",
|
|
1458
|
+
stroke: "currentColor",
|
|
1459
|
+
strokeWidth: "1.8",
|
|
1460
|
+
strokeLinecap: "round",
|
|
1461
|
+
strokeLinejoin: "round"
|
|
1462
|
+
}
|
|
1463
|
+
),
|
|
1464
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1465
|
+
"path",
|
|
1466
|
+
{
|
|
1467
|
+
d: "M6 8.25h8a1.75 1.75 0 0 1 1.75 1.75V14A1.75 1.75 0 0 1 14 15.75H6A1.75 1.75 0 0 1 4.25 14V10A1.75 1.75 0 0 1 6 8.25Z",
|
|
1468
|
+
stroke: "currentColor",
|
|
1469
|
+
strokeWidth: "1.8",
|
|
1470
|
+
strokeLinecap: "round",
|
|
1471
|
+
strokeLinejoin: "round"
|
|
1472
|
+
}
|
|
1473
|
+
),
|
|
1474
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1475
|
+
"path",
|
|
1476
|
+
{
|
|
1477
|
+
d: "M10 11.25v1.5",
|
|
1478
|
+
stroke: "currentColor",
|
|
1479
|
+
strokeWidth: "1.8",
|
|
1480
|
+
strokeLinecap: "round"
|
|
1481
|
+
}
|
|
1482
|
+
)
|
|
1483
|
+
] });
|
|
1484
|
+
}
|
|
1485
|
+
function PasswordHiddenIcon({ size }) {
|
|
1486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", { width: size, height: size, viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
|
|
1487
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1488
|
+
"path",
|
|
1489
|
+
{
|
|
1490
|
+
d: "M6.75 8V6.75A3.25 3.25 0 1 1 13.25 6.75V8",
|
|
1491
|
+
stroke: "currentColor",
|
|
1492
|
+
strokeWidth: "1.8",
|
|
1493
|
+
strokeLinecap: "round",
|
|
1494
|
+
strokeLinejoin: "round"
|
|
1495
|
+
}
|
|
1496
|
+
),
|
|
1497
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1498
|
+
"path",
|
|
1499
|
+
{
|
|
1500
|
+
d: "M6 8.25h8a1.75 1.75 0 0 1 1.75 1.75V14A1.75 1.75 0 0 1 14 15.75H6A1.75 1.75 0 0 1 4.25 14V10A1.75 1.75 0 0 1 6 8.25Z",
|
|
1501
|
+
stroke: "currentColor",
|
|
1502
|
+
strokeWidth: "1.8",
|
|
1503
|
+
strokeLinecap: "round",
|
|
1504
|
+
strokeLinejoin: "round"
|
|
1505
|
+
}
|
|
1506
|
+
),
|
|
1507
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M10 11.25v1.5", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round" })
|
|
1508
|
+
] });
|
|
1509
|
+
}
|
|
1348
1510
|
function ControlFrame({
|
|
1349
1511
|
label,
|
|
1350
1512
|
hint,
|
|
@@ -1373,7 +1535,7 @@ function ControlFrame({
|
|
|
1373
1535
|
]
|
|
1374
1536
|
}
|
|
1375
1537
|
) : null,
|
|
1376
|
-
hint ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-[13px] leading-[1.45] text-[var(--
|
|
1538
|
+
hint ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-[13px] leading-[1.45] text-[var(--theme-textLight)]", children: hint }) : null
|
|
1377
1539
|
] }) : null,
|
|
1378
1540
|
children,
|
|
1379
1541
|
error ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-[13px] font-semibold leading-[1.45] text-[var(--theme-negative)]", children: error }) : null
|
|
@@ -1385,7 +1547,7 @@ function ControlFrame({
|
|
|
1385
1547
|
label,
|
|
1386
1548
|
required ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "ml-1 text-[var(--theme-negative)]", children: "*" }) : null
|
|
1387
1549
|
] }) : null,
|
|
1388
|
-
hint ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-[13px] leading-[1.45] text-[var(--
|
|
1550
|
+
hint ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-[13px] leading-[1.45] text-[var(--theme-textLight)]", children: hint }) : null
|
|
1389
1551
|
] }) : null,
|
|
1390
1552
|
children,
|
|
1391
1553
|
error ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-[13px] font-semibold leading-[1.45] text-[var(--theme-negative)]", children: error }) : null
|
|
@@ -1399,6 +1561,7 @@ function Input({
|
|
|
1399
1561
|
className,
|
|
1400
1562
|
showPasswordToggle = true,
|
|
1401
1563
|
fileButtonLabel,
|
|
1564
|
+
icon,
|
|
1402
1565
|
id,
|
|
1403
1566
|
disabled,
|
|
1404
1567
|
placeholder,
|
|
@@ -1415,36 +1578,57 @@ function Input({
|
|
|
1415
1578
|
const fileInputRef = (0, import_react5.useRef)(null);
|
|
1416
1579
|
const [isPasswordVisible, setIsPasswordVisible] = (0, import_react5.useState)(false);
|
|
1417
1580
|
const [selectedFileNames, setSelectedFileNames] = (0, import_react5.useState)([]);
|
|
1581
|
+
const [validationError, setValidationError] = (0, import_react5.useState)();
|
|
1418
1582
|
const isPasswordField = type === "password";
|
|
1419
1583
|
const isEmailField = type === "email";
|
|
1584
|
+
const isLoginField = type === "login";
|
|
1420
1585
|
const isFileField = type === "file";
|
|
1421
1586
|
const canTogglePasswordVisibility = isPasswordField && showPasswordToggle;
|
|
1422
|
-
const resolvedType = canTogglePasswordVisibility ? isPasswordVisible ? "text" : "password" : type;
|
|
1587
|
+
const resolvedType = isLoginField ? "text" : canTogglePasswordVisibility ? isPasswordVisible ? "text" : "password" : type;
|
|
1423
1588
|
(0, import_react5.useEffect)(() => {
|
|
1424
1589
|
if (!isFileField) {
|
|
1425
1590
|
setSelectedFileNames([]);
|
|
1426
1591
|
}
|
|
1427
1592
|
}, [isFileField]);
|
|
1593
|
+
(0, import_react5.useEffect)(() => {
|
|
1594
|
+
if (!isEmailField && !isLoginField) {
|
|
1595
|
+
setValidationError(void 0);
|
|
1596
|
+
}
|
|
1597
|
+
}, [isEmailField, isLoginField]);
|
|
1598
|
+
(0, import_react5.useEffect)(() => {
|
|
1599
|
+
if (typeof rest.value !== "string") {
|
|
1600
|
+
return;
|
|
1601
|
+
}
|
|
1602
|
+
setValidationError(getInputValidationError(type, rest.value));
|
|
1603
|
+
}, [rest.value, type]);
|
|
1428
1604
|
const hasFileButtonLabel = typeof fileButtonLabel === "string" ? fileButtonLabel.trim().length > 0 : fileButtonLabel != null;
|
|
1429
1605
|
const hasSelectedFiles = selectedFileNames.length > 0;
|
|
1430
1606
|
const showUploadLabel = hasFileButtonLabel && !hasSelectedFiles;
|
|
1431
1607
|
const passwordLockIconSize = passwordToggleMetrics.iconSize + 2;
|
|
1432
1608
|
const leadingContentGap = Math.max(0, Math.round(controlMetrics.paddingX / 3));
|
|
1609
|
+
const leadingIconInset = getControlLeadingIconInset(controlSize);
|
|
1610
|
+
const hasExternalError = error !== void 0 && error !== null && error !== "";
|
|
1611
|
+
const resolvedError = hasExternalError ? error : validationError;
|
|
1612
|
+
const hasResolvedError = resolvedError !== void 0 && resolvedError !== null && resolvedError !== "";
|
|
1433
1613
|
const fileSelectionText = selectedFileNames.length === 0 ? placeholder != null ? placeholder : "" : selectedFileNames.length === 1 ? selectedFileNames[0] : `${selectedFileNames.length} files selected`;
|
|
1434
1614
|
const fileIconSize = Math.max(controlMetrics.fontSize + 3, 16);
|
|
1435
|
-
const fileTriggerWidth =
|
|
1436
|
-
const
|
|
1437
|
-
const passwordAdornmentWidth =
|
|
1438
|
-
const
|
|
1615
|
+
const fileTriggerWidth = getControlLeadingAdornmentWidth(controlSize, fileIconSize);
|
|
1616
|
+
const leadingAdornmentWidth = getControlLeadingAdornmentWidth(controlSize, fileIconSize);
|
|
1617
|
+
const passwordAdornmentWidth = getControlLeadingAdornmentWidth(controlSize, passwordLockIconSize);
|
|
1618
|
+
const defaultLeadingIcon = isEmailField ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(EmailIcon, { size: fileIconSize }) : isLoginField ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(LoginIcon, { size: fileIconSize }) : null;
|
|
1619
|
+
const resolvedLeadingIcon = icon != null ? icon : defaultLeadingIcon;
|
|
1620
|
+
const hasLeadingIcon = isRenderableNode(resolvedLeadingIcon);
|
|
1621
|
+
const resolvedFileIcon = icon != null ? icon : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(FileIcon, { size: fileIconSize, selected: hasSelectedFiles });
|
|
1622
|
+
const resolvedPasswordIcon = icon != null ? icon : isPasswordVisible ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PasswordVisibleIcon, { size: passwordLockIconSize }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PasswordHiddenIcon, { size: passwordLockIconSize });
|
|
1439
1623
|
const fieldBaseClassName = cx(
|
|
1440
1624
|
UI_KIT_ROOT_CLASSNAME,
|
|
1441
1625
|
"w-full box-border rounded-2xl border border-solid bg-[var(--theme-surface)]",
|
|
1442
1626
|
"text-[var(--theme-text)] outline-none transition-[border-color,box-shadow,background-color]",
|
|
1443
|
-
"duration-150 placeholder:text-[var(--
|
|
1627
|
+
"duration-150 placeholder:text-[var(--theme-textLight)]",
|
|
1444
1628
|
FIELD_HEIGHT_CLASSNAMES[controlSize],
|
|
1445
1629
|
FIELD_TEXT_CLASSNAMES[controlSize],
|
|
1446
|
-
|
|
1447
|
-
disabled ? "cursor-not-allowed" : "cursor-text"
|
|
1630
|
+
hasResolvedError ? "border-[var(--theme-negative)]" : "border-[var(--theme-textLight)]",
|
|
1631
|
+
disabled ? "cursor-not-allowed opacity-70" : "cursor-text"
|
|
1448
1632
|
);
|
|
1449
1633
|
const adornedFieldClassName = cx(
|
|
1450
1634
|
UI_KIT_ROOT_CLASSNAME,
|
|
@@ -1454,16 +1638,22 @@ function Input({
|
|
|
1454
1638
|
"shadow-[0px_4px_5px_var(--theme-shadow)]",
|
|
1455
1639
|
FIELD_HEIGHT_CLASSNAMES[controlSize],
|
|
1456
1640
|
FIELD_TEXT_CLASSNAMES[controlSize],
|
|
1457
|
-
|
|
1458
|
-
disabled ? "
|
|
1641
|
+
hasResolvedError ? "border-[var(--theme-negative)]" : "border-[var(--theme-textLight)]",
|
|
1642
|
+
disabled ? "opacity-70" : null
|
|
1459
1643
|
);
|
|
1460
1644
|
const adornedInputClassName = cx(
|
|
1461
1645
|
"h-full min-w-0 flex-1 border-0 bg-transparent text-[var(--theme-text)] outline-none",
|
|
1462
|
-
"placeholder:text-[var(--
|
|
1646
|
+
"placeholder:text-[var(--theme-textLight)]",
|
|
1463
1647
|
FIELD_TEXT_CLASSNAMES[controlSize],
|
|
1464
1648
|
disabled ? "cursor-not-allowed" : "cursor-text"
|
|
1465
1649
|
);
|
|
1466
|
-
const adornmentColorClassName =
|
|
1650
|
+
const adornmentColorClassName = hasResolvedError ? "text-[var(--theme-negative)]" : "text-[var(--theme-textLight)]";
|
|
1651
|
+
const handleValidatedInputChange = (event) => {
|
|
1652
|
+
if (isEmailField || isLoginField) {
|
|
1653
|
+
setValidationError(getInputValidationError(type, event.target.value));
|
|
1654
|
+
}
|
|
1655
|
+
onChange == null ? void 0 : onChange(event);
|
|
1656
|
+
};
|
|
1467
1657
|
const openFilePicker = () => {
|
|
1468
1658
|
var _a;
|
|
1469
1659
|
if (disabled) {
|
|
@@ -1505,7 +1695,7 @@ function Input({
|
|
|
1505
1695
|
disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
1506
1696
|
className
|
|
1507
1697
|
),
|
|
1508
|
-
style
|
|
1698
|
+
style,
|
|
1509
1699
|
children: [
|
|
1510
1700
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1511
1701
|
"button",
|
|
@@ -1525,7 +1715,12 @@ function Input({
|
|
|
1525
1715
|
style: {
|
|
1526
1716
|
gap: showUploadLabel ? leadingContentGap : 0,
|
|
1527
1717
|
width: showUploadLabel ? void 0 : fileTriggerWidth,
|
|
1528
|
-
|
|
1718
|
+
boxSizing: "border-box",
|
|
1719
|
+
justifyContent: "flex-start",
|
|
1720
|
+
paddingTop: 0,
|
|
1721
|
+
paddingRight: showUploadLabel ? controlMetrics.buttonPaddingX : 0,
|
|
1722
|
+
paddingBottom: 0,
|
|
1723
|
+
paddingLeft: leadingIconInset
|
|
1529
1724
|
},
|
|
1530
1725
|
children: [
|
|
1531
1726
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
@@ -1536,103 +1731,7 @@ function Input({
|
|
|
1536
1731
|
adornmentColorClassName
|
|
1537
1732
|
),
|
|
1538
1733
|
"aria-hidden": "true",
|
|
1539
|
-
children:
|
|
1540
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1541
|
-
"path",
|
|
1542
|
-
{
|
|
1543
|
-
d: "M5.5 6.25h9",
|
|
1544
|
-
stroke: "currentColor",
|
|
1545
|
-
strokeWidth: "1.6",
|
|
1546
|
-
strokeLinecap: "round"
|
|
1547
|
-
}
|
|
1548
|
-
),
|
|
1549
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1550
|
-
"path",
|
|
1551
|
-
{
|
|
1552
|
-
d: "M7.25 6.25V5.25A1.5 1.5 0 0 1 8.75 3.75h2.5a1.5 1.5 0 0 1 1.5 1.5v1",
|
|
1553
|
-
stroke: "currentColor",
|
|
1554
|
-
strokeWidth: "1.6",
|
|
1555
|
-
strokeLinecap: "round",
|
|
1556
|
-
strokeLinejoin: "round"
|
|
1557
|
-
}
|
|
1558
|
-
),
|
|
1559
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1560
|
-
"path",
|
|
1561
|
-
{
|
|
1562
|
-
d: "M7.75 8.25v5.5",
|
|
1563
|
-
stroke: "currentColor",
|
|
1564
|
-
strokeWidth: "1.6",
|
|
1565
|
-
strokeLinecap: "round"
|
|
1566
|
-
}
|
|
1567
|
-
),
|
|
1568
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1569
|
-
"path",
|
|
1570
|
-
{
|
|
1571
|
-
d: "M10 8.25v5.5",
|
|
1572
|
-
stroke: "currentColor",
|
|
1573
|
-
strokeWidth: "1.6",
|
|
1574
|
-
strokeLinecap: "round"
|
|
1575
|
-
}
|
|
1576
|
-
),
|
|
1577
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1578
|
-
"path",
|
|
1579
|
-
{
|
|
1580
|
-
d: "M12.25 8.25v5.5",
|
|
1581
|
-
stroke: "currentColor",
|
|
1582
|
-
strokeWidth: "1.6",
|
|
1583
|
-
strokeLinecap: "round"
|
|
1584
|
-
}
|
|
1585
|
-
),
|
|
1586
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1587
|
-
"path",
|
|
1588
|
-
{
|
|
1589
|
-
d: "M6.75 6.25l.5 8a1.5 1.5 0 0 0 1.497 1.406h2.506A1.5 1.5 0 0 0 12.75 14.25l.5-8",
|
|
1590
|
-
stroke: "currentColor",
|
|
1591
|
-
strokeWidth: "1.6",
|
|
1592
|
-
strokeLinecap: "round",
|
|
1593
|
-
strokeLinejoin: "round"
|
|
1594
|
-
}
|
|
1595
|
-
)
|
|
1596
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
1597
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1598
|
-
"path",
|
|
1599
|
-
{
|
|
1600
|
-
d: "M6.25 2.5h5.652l4.348 4.348V15A2.5 2.5 0 0 1 13.75 17.5h-7.5A2.5 2.5 0 0 1 3.75 15V5A2.5 2.5 0 0 1 6.25 2.5Z",
|
|
1601
|
-
stroke: "currentColor",
|
|
1602
|
-
strokeWidth: "1.6",
|
|
1603
|
-
strokeLinecap: "round",
|
|
1604
|
-
strokeLinejoin: "round"
|
|
1605
|
-
}
|
|
1606
|
-
),
|
|
1607
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1608
|
-
"path",
|
|
1609
|
-
{
|
|
1610
|
-
d: "M11.875 2.75V6.25H15.375",
|
|
1611
|
-
stroke: "currentColor",
|
|
1612
|
-
strokeWidth: "1.6",
|
|
1613
|
-
strokeLinecap: "round",
|
|
1614
|
-
strokeLinejoin: "round"
|
|
1615
|
-
}
|
|
1616
|
-
),
|
|
1617
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1618
|
-
"path",
|
|
1619
|
-
{
|
|
1620
|
-
d: "M7.5 10h5",
|
|
1621
|
-
stroke: "currentColor",
|
|
1622
|
-
strokeWidth: "1.6",
|
|
1623
|
-
strokeLinecap: "round"
|
|
1624
|
-
}
|
|
1625
|
-
),
|
|
1626
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1627
|
-
"path",
|
|
1628
|
-
{
|
|
1629
|
-
d: "M7.5 13h5",
|
|
1630
|
-
stroke: "currentColor",
|
|
1631
|
-
strokeWidth: "1.6",
|
|
1632
|
-
strokeLinecap: "round"
|
|
1633
|
-
}
|
|
1634
|
-
)
|
|
1635
|
-
] }) })
|
|
1734
|
+
children: resolvedFileIcon
|
|
1636
1735
|
}
|
|
1637
1736
|
),
|
|
1638
1737
|
showUploadLabel ? fileButtonLabel : null
|
|
@@ -1658,7 +1757,7 @@ function Input({
|
|
|
1658
1757
|
className: cx(
|
|
1659
1758
|
"flex h-full min-w-0 flex-1 items-center overflow-hidden text-ellipsis whitespace-nowrap",
|
|
1660
1759
|
FIELD_TEXT_CLASSNAMES[controlSize],
|
|
1661
|
-
hasSelectedFiles ? "text-[var(--theme-text)]" : "text-[var(--
|
|
1760
|
+
hasSelectedFiles ? "text-[var(--theme-text)]" : "text-[var(--theme-textLight)]"
|
|
1662
1761
|
),
|
|
1663
1762
|
style: { padding: `0 ${controlMetrics.paddingX}px 0 ${leadingContentGap}px` },
|
|
1664
1763
|
children: fileSelectionText
|
|
@@ -1669,43 +1768,38 @@ function Input({
|
|
|
1669
1768
|
]
|
|
1670
1769
|
}
|
|
1671
1770
|
)
|
|
1672
|
-
] }) :
|
|
1771
|
+
] }) : canTogglePasswordVisibility ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1673
1772
|
"div",
|
|
1674
1773
|
{
|
|
1675
1774
|
className: cx(adornedFieldClassName, className),
|
|
1676
|
-
style
|
|
1775
|
+
style,
|
|
1677
1776
|
children: [
|
|
1678
1777
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1679
|
-
"
|
|
1778
|
+
"button",
|
|
1680
1779
|
{
|
|
1780
|
+
type: "button",
|
|
1781
|
+
"aria-label": isPasswordVisible ? "Hide password" : "Show password",
|
|
1782
|
+
"aria-pressed": isPasswordVisible,
|
|
1783
|
+
disabled,
|
|
1784
|
+
onMouseDown: (event) => {
|
|
1785
|
+
event.preventDefault();
|
|
1786
|
+
},
|
|
1787
|
+
onClick: () => {
|
|
1788
|
+
setIsPasswordVisible((currentValue) => !currentValue);
|
|
1789
|
+
},
|
|
1681
1790
|
className: cx(
|
|
1682
|
-
"inline-flex shrink-0 self-stretch items-center justify-center
|
|
1683
|
-
|
|
1791
|
+
"inline-flex shrink-0 self-stretch items-center justify-center border-0",
|
|
1792
|
+
"bg-transparent p-0 appearance-none",
|
|
1793
|
+
adornmentColorClassName,
|
|
1794
|
+
disabled ? "cursor-not-allowed" : "cursor-pointer"
|
|
1684
1795
|
),
|
|
1685
|
-
style: {
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
stroke: "currentColor",
|
|
1693
|
-
strokeWidth: "1.6",
|
|
1694
|
-
strokeLinecap: "round",
|
|
1695
|
-
strokeLinejoin: "round"
|
|
1696
|
-
}
|
|
1697
|
-
),
|
|
1698
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1699
|
-
"path",
|
|
1700
|
-
{
|
|
1701
|
-
d: "M4.375 6.25 10 10.625l5.625-4.375",
|
|
1702
|
-
stroke: "currentColor",
|
|
1703
|
-
strokeWidth: "1.6",
|
|
1704
|
-
strokeLinecap: "round",
|
|
1705
|
-
strokeLinejoin: "round"
|
|
1706
|
-
}
|
|
1707
|
-
)
|
|
1708
|
-
] })
|
|
1796
|
+
style: {
|
|
1797
|
+
width: passwordAdornmentWidth,
|
|
1798
|
+
boxSizing: "border-box",
|
|
1799
|
+
justifyContent: "flex-start",
|
|
1800
|
+
paddingLeft: leadingIconInset
|
|
1801
|
+
},
|
|
1802
|
+
children: resolvedPasswordIcon
|
|
1709
1803
|
}
|
|
1710
1804
|
),
|
|
1711
1805
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
@@ -1716,112 +1810,35 @@ function Input({
|
|
|
1716
1810
|
placeholder,
|
|
1717
1811
|
type: resolvedType,
|
|
1718
1812
|
disabled,
|
|
1719
|
-
onChange,
|
|
1813
|
+
onChange: handleValidatedInputChange,
|
|
1720
1814
|
className: cx(adornedInputClassName, className),
|
|
1815
|
+
"aria-invalid": hasResolvedError,
|
|
1721
1816
|
style: { padding: `0 ${controlMetrics.paddingX}px 0 ${leadingContentGap}px` }
|
|
1722
1817
|
}
|
|
1723
1818
|
)
|
|
1724
1819
|
]
|
|
1725
1820
|
}
|
|
1726
|
-
) :
|
|
1821
|
+
) : hasLeadingIcon ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1727
1822
|
"div",
|
|
1728
1823
|
{
|
|
1729
1824
|
className: cx(adornedFieldClassName, className),
|
|
1730
|
-
style
|
|
1825
|
+
style,
|
|
1731
1826
|
children: [
|
|
1732
1827
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1733
|
-
"
|
|
1828
|
+
"span",
|
|
1734
1829
|
{
|
|
1735
|
-
type: "button",
|
|
1736
|
-
"aria-label": isPasswordVisible ? "Hide password" : "Show password",
|
|
1737
|
-
"aria-pressed": isPasswordVisible,
|
|
1738
|
-
disabled,
|
|
1739
|
-
onMouseDown: (event) => {
|
|
1740
|
-
event.preventDefault();
|
|
1741
|
-
},
|
|
1742
|
-
onClick: () => {
|
|
1743
|
-
setIsPasswordVisible((currentValue) => !currentValue);
|
|
1744
|
-
},
|
|
1745
1830
|
className: cx(
|
|
1746
|
-
"inline-flex shrink-0 self-stretch items-center justify-center
|
|
1747
|
-
|
|
1748
|
-
adornmentColorClassName,
|
|
1749
|
-
disabled ? "cursor-not-allowed" : "cursor-pointer"
|
|
1831
|
+
"inline-flex shrink-0 self-stretch items-center justify-center bg-transparent",
|
|
1832
|
+
adornmentColorClassName
|
|
1750
1833
|
),
|
|
1751
|
-
style: {
|
|
1752
|
-
|
|
1753
|
-
"
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
"aria-hidden": "true",
|
|
1760
|
-
children: [
|
|
1761
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1762
|
-
"path",
|
|
1763
|
-
{
|
|
1764
|
-
d: "M6.75 8V6.75A3.25 3.25 0 0 1 12.262 4.415",
|
|
1765
|
-
stroke: "currentColor",
|
|
1766
|
-
strokeWidth: "1.8",
|
|
1767
|
-
strokeLinecap: "round",
|
|
1768
|
-
strokeLinejoin: "round"
|
|
1769
|
-
}
|
|
1770
|
-
),
|
|
1771
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1772
|
-
"path",
|
|
1773
|
-
{
|
|
1774
|
-
d: "M6 8.25h8a1.75 1.75 0 0 1 1.75 1.75V14A1.75 1.75 0 0 1 14 15.75H6A1.75 1.75 0 0 1 4.25 14V10A1.75 1.75 0 0 1 6 8.25Z",
|
|
1775
|
-
stroke: "currentColor",
|
|
1776
|
-
strokeWidth: "1.8",
|
|
1777
|
-
strokeLinecap: "round",
|
|
1778
|
-
strokeLinejoin: "round"
|
|
1779
|
-
}
|
|
1780
|
-
),
|
|
1781
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1782
|
-
"path",
|
|
1783
|
-
{
|
|
1784
|
-
d: "M10 11.25v1.5",
|
|
1785
|
-
stroke: "currentColor",
|
|
1786
|
-
strokeWidth: "1.8",
|
|
1787
|
-
strokeLinecap: "round"
|
|
1788
|
-
}
|
|
1789
|
-
)
|
|
1790
|
-
]
|
|
1791
|
-
}
|
|
1792
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1793
|
-
"svg",
|
|
1794
|
-
{
|
|
1795
|
-
width: passwordLockIconSize,
|
|
1796
|
-
height: passwordLockIconSize,
|
|
1797
|
-
viewBox: "0 0 20 20",
|
|
1798
|
-
fill: "none",
|
|
1799
|
-
"aria-hidden": "true",
|
|
1800
|
-
children: [
|
|
1801
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1802
|
-
"path",
|
|
1803
|
-
{
|
|
1804
|
-
d: "M6.75 8V6.75A3.25 3.25 0 1 1 13.25 6.75V8",
|
|
1805
|
-
stroke: "currentColor",
|
|
1806
|
-
strokeWidth: "1.8",
|
|
1807
|
-
strokeLinecap: "round",
|
|
1808
|
-
strokeLinejoin: "round"
|
|
1809
|
-
}
|
|
1810
|
-
),
|
|
1811
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1812
|
-
"path",
|
|
1813
|
-
{
|
|
1814
|
-
d: "M6 8.25h8a1.75 1.75 0 0 1 1.75 1.75V14A1.75 1.75 0 0 1 14 15.75H6A1.75 1.75 0 0 1 4.25 14V10A1.75 1.75 0 0 1 6 8.25Z",
|
|
1815
|
-
stroke: "currentColor",
|
|
1816
|
-
strokeWidth: "1.8",
|
|
1817
|
-
strokeLinecap: "round",
|
|
1818
|
-
strokeLinejoin: "round"
|
|
1819
|
-
}
|
|
1820
|
-
),
|
|
1821
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M10 11.25v1.5", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round" })
|
|
1822
|
-
]
|
|
1823
|
-
}
|
|
1824
|
-
)
|
|
1834
|
+
style: {
|
|
1835
|
+
width: leadingAdornmentWidth,
|
|
1836
|
+
boxSizing: "border-box",
|
|
1837
|
+
justifyContent: "flex-start",
|
|
1838
|
+
paddingLeft: leadingIconInset
|
|
1839
|
+
},
|
|
1840
|
+
"aria-hidden": "true",
|
|
1841
|
+
children: resolvedLeadingIcon
|
|
1825
1842
|
}
|
|
1826
1843
|
),
|
|
1827
1844
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
@@ -1832,8 +1849,9 @@ function Input({
|
|
|
1832
1849
|
placeholder,
|
|
1833
1850
|
type: resolvedType,
|
|
1834
1851
|
disabled,
|
|
1835
|
-
onChange,
|
|
1852
|
+
onChange: handleValidatedInputChange,
|
|
1836
1853
|
className: cx(adornedInputClassName, className),
|
|
1854
|
+
"aria-invalid": hasResolvedError,
|
|
1837
1855
|
style: { padding: `0 ${controlMetrics.paddingX}px 0 ${leadingContentGap}px` }
|
|
1838
1856
|
}
|
|
1839
1857
|
)
|
|
@@ -1847,9 +1865,10 @@ function Input({
|
|
|
1847
1865
|
placeholder,
|
|
1848
1866
|
type: resolvedType,
|
|
1849
1867
|
disabled,
|
|
1850
|
-
onChange,
|
|
1868
|
+
onChange: handleValidatedInputChange,
|
|
1869
|
+
"aria-invalid": hasResolvedError,
|
|
1851
1870
|
className: cx(fieldBaseClassName, FIELD_PADDING_X_CLASSNAMES[controlSize], className),
|
|
1852
|
-
style: { boxShadow: "var(--
|
|
1871
|
+
style: { boxShadow: "0px 4px 5px var(--theme-shadow)", ...style }
|
|
1853
1872
|
}
|
|
1854
1873
|
);
|
|
1855
1874
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
@@ -1857,7 +1876,7 @@ function Input({
|
|
|
1857
1876
|
{
|
|
1858
1877
|
label,
|
|
1859
1878
|
hint,
|
|
1860
|
-
error,
|
|
1879
|
+
error: resolvedError,
|
|
1861
1880
|
htmlFor: isFileField ? void 0 : inputId,
|
|
1862
1881
|
required: rest.required,
|
|
1863
1882
|
useLabelWrapper: !isFileField,
|
|
@@ -2076,13 +2095,13 @@ function getEarlierDate(leftDate, rightDate) {
|
|
|
2076
2095
|
return leftDate.getTime() <= rightDate.getTime() ? leftDate : rightDate;
|
|
2077
2096
|
}
|
|
2078
2097
|
function CalendarIcon({ size }) {
|
|
2079
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.
|
|
2098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { width: size, height: size, viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("g", { transform: "translate(0.75 0)", children: [
|
|
2080
2099
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("rect", { x: "3", y: "4.5", width: "14", height: "12.5", rx: "3", stroke: "currentColor", strokeWidth: "1.6" }),
|
|
2081
2100
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M6.25 2.75V6", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
2082
2101
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M13.75 2.75V6", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
2083
2102
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M3 7.5H17", stroke: "currentColor", strokeWidth: "1.6" }),
|
|
2084
2103
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("circle", { cx: "10", cy: "11.5", r: "1.2", fill: "currentColor" })
|
|
2085
|
-
] });
|
|
2104
|
+
] }) });
|
|
2086
2105
|
}
|
|
2087
2106
|
function ClearIcon({ size }) {
|
|
2088
2107
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("svg", { width: size, height: size, viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
|
|
@@ -2187,7 +2206,8 @@ function DatePicker({
|
|
|
2187
2206
|
const canOpenPicker = !disabled && !readOnly && !hasConfigurationConflict;
|
|
2188
2207
|
const canClear = clearable && !disabled && !readOnly && !required && hasAnyValue;
|
|
2189
2208
|
const leadingContentGap = Math.max(0, Math.round(controlMetrics.paddingX / 3));
|
|
2190
|
-
const
|
|
2209
|
+
const leadingIconInset = getControlLeadingIconInset(controlSize);
|
|
2210
|
+
const pickerAdornmentWidth = getControlLeadingAdornmentWidth(controlSize, accessoryMetrics.iconSize);
|
|
2191
2211
|
const trailingButtonCount = Number(canClear);
|
|
2192
2212
|
const trailingInset = trailingButtonCount > 0 ? Math.max(
|
|
2193
2213
|
0,
|
|
@@ -2198,7 +2218,7 @@ function DatePicker({
|
|
|
2198
2218
|
const fieldBaseClassName = cx(
|
|
2199
2219
|
"w-full box-border rounded-2xl border border-solid bg-[var(--theme-surface)]",
|
|
2200
2220
|
"text-[var(--theme-text)] outline-none transition-[border-color,box-shadow,background-color]",
|
|
2201
|
-
"duration-150 placeholder:text-[var(--
|
|
2221
|
+
"duration-150 placeholder:text-[var(--theme-textLight)]",
|
|
2202
2222
|
FIELD_HEIGHT_CLASSNAMES2[controlSize],
|
|
2203
2223
|
FIELD_TEXT_CLASSNAMES2[controlSize],
|
|
2204
2224
|
resolvedError ? "border-[var(--theme-negative)]" : "border-[var(--theme-textLight)]",
|
|
@@ -2212,10 +2232,10 @@ function DatePicker({
|
|
|
2212
2232
|
FIELD_TEXT_CLASSNAMES2[controlSize],
|
|
2213
2233
|
disabled ? "cursor-not-allowed" : readOnly ? "cursor-default" : "cursor-text"
|
|
2214
2234
|
);
|
|
2215
|
-
const integratedFieldBoxShadow = getInsetBorderShadow(fieldBorderColor, resolvedError ? { outerShadow: "0 0 0 3px var(--
|
|
2235
|
+
const integratedFieldBoxShadow = getInsetBorderShadow(fieldBorderColor, resolvedError ? { outerShadow: "0 0 0 3px var(--theme-negative)", componentShadow: "0px 4px 5px var(--theme-shadow)" } : { componentShadow: "0px 4px 5px var(--theme-shadow)" });
|
|
2216
2236
|
const integratedInputClassName = cx(
|
|
2217
2237
|
"h-full w-full box-border border-0 bg-transparent text-[var(--theme-text)]",
|
|
2218
|
-
"outline-none placeholder:text-[var(--
|
|
2238
|
+
"outline-none placeholder:text-[var(--theme-textLight)]",
|
|
2219
2239
|
FIELD_TEXT_CLASSNAMES2[controlSize],
|
|
2220
2240
|
disabled ? "cursor-not-allowed" : readOnly ? "cursor-default" : "cursor-text"
|
|
2221
2241
|
);
|
|
@@ -2445,7 +2465,12 @@ function DatePicker({
|
|
|
2445
2465
|
},
|
|
2446
2466
|
onClick: openNativePicker,
|
|
2447
2467
|
className: pickerAdornmentClassName,
|
|
2448
|
-
style: {
|
|
2468
|
+
style: {
|
|
2469
|
+
width: pickerAdornmentWidth,
|
|
2470
|
+
boxSizing: "border-box",
|
|
2471
|
+
justifyContent: "flex-start",
|
|
2472
|
+
paddingLeft: leadingIconInset
|
|
2473
|
+
},
|
|
2449
2474
|
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CalendarIcon, { size: accessoryMetrics.iconSize })
|
|
2450
2475
|
}
|
|
2451
2476
|
),
|
|
@@ -2473,7 +2498,7 @@ function DatePicker({
|
|
|
2473
2498
|
className: cx(fieldBaseClassName, FIELD_PADDING_X_CLASSNAMES2[controlSize], className),
|
|
2474
2499
|
style: {
|
|
2475
2500
|
paddingRight: controlMetrics.paddingX + trailingInset,
|
|
2476
|
-
boxShadow: resolvedError ? "0 0 0 3px var(--
|
|
2501
|
+
boxShadow: resolvedError ? "0 0 0 3px var(--theme-negative), 0px 4px 5px var(--theme-shadow)" : "0px 4px 5px var(--theme-shadow)",
|
|
2477
2502
|
...style,
|
|
2478
2503
|
...disabledFieldStyle
|
|
2479
2504
|
}
|
|
@@ -2635,8 +2660,8 @@ function SelectBase({
|
|
|
2635
2660
|
...rest
|
|
2636
2661
|
}) {
|
|
2637
2662
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
2638
|
-
const
|
|
2639
|
-
const componentShadow =
|
|
2663
|
+
const theme = useUiKitTheme();
|
|
2664
|
+
const componentShadow = "0px 4px 5px var(--theme-shadow)";
|
|
2640
2665
|
const generatedId = (0, import_react8.useId)().replace(/:/g, "");
|
|
2641
2666
|
const resolvedId = id != null ? id : `ss-select-${generatedId}`;
|
|
2642
2667
|
const isMultiSelect = Boolean(isMulti || multiple);
|
|
@@ -2662,7 +2687,7 @@ function SelectBase({
|
|
|
2662
2687
|
const selectedValue = (_e = selectedValues[0]) != null ? _e : "";
|
|
2663
2688
|
const optionLookup = new Map(flatOptions.map((option) => [option.value, option]));
|
|
2664
2689
|
const selectedOption = (_f = optionLookup.get(selectedValue)) != null ? _f : null;
|
|
2665
|
-
const placeholderTextColor =
|
|
2690
|
+
const placeholderTextColor = "var(--theme-textLight)";
|
|
2666
2691
|
const hasSelection = isMultiSelect ? selectedValues.length > 0 : selectedValue !== "";
|
|
2667
2692
|
const displayLabel = hasSelection ? isMultiSelect ? selectedValues.map((currentValue) => {
|
|
2668
2693
|
const option = optionLookup.get(currentValue);
|
|
@@ -2679,42 +2704,17 @@ function SelectBase({
|
|
|
2679
2704
|
const controlMetrics = getControlMetrics(controlSize);
|
|
2680
2705
|
const listboxId = `${resolvedId}-listbox`;
|
|
2681
2706
|
const searchInputId = `${resolvedId}-search`;
|
|
2682
|
-
const scrollbarThumbColor =
|
|
2683
|
-
const scrollbarThumbHoverColor =
|
|
2707
|
+
const scrollbarThumbColor = theme.colors.secondary;
|
|
2708
|
+
const scrollbarThumbHoverColor = theme.colors.textLight;
|
|
2684
2709
|
const highlightedOption = (_i = visibleOptions.find((option) => option.value === highlightedValue)) != null ? _i : null;
|
|
2685
|
-
const optionHoverBackground = theme.colors.primary;
|
|
2686
|
-
const optionSelectedBackground = theme.colors.primary;
|
|
2687
2710
|
const canOpenMenu = allowOpenWithoutOptions || flatOptions.length > 0;
|
|
2688
2711
|
const isTriggerDisabled = disabled || !canOpenMenu;
|
|
2689
2712
|
const buttonPassthroughProps = Object.fromEntries(
|
|
2690
2713
|
Object.entries(rest).filter(([key]) => key.startsWith("aria-") || key.startsWith("data-"))
|
|
2691
2714
|
);
|
|
2692
|
-
const selectVariables = (0, import_react8.useMemo)(() => ({
|
|
2693
|
-
"--ui-kit-select-placeholder": placeholderTextColor,
|
|
2694
|
-
"--ui-kit-select-muted": mutedText,
|
|
2695
|
-
"--ui-kit-select-indicator-disabled": withAlpha(theme.colors.text, 0.42),
|
|
2696
|
-
"--ui-kit-select-surface-raised": theme.colors.surface,
|
|
2697
|
-
"--ui-kit-select-scrollbar-thumb": scrollbarThumbColor,
|
|
2698
|
-
"--ui-kit-select-scrollbar-thumb-hover": scrollbarThumbHoverColor,
|
|
2699
|
-
"--ui-kit-select-divider": withAlpha(theme.colors.text, 0.08),
|
|
2700
|
-
"--ui-kit-select-option-hover-bg": optionHoverBackground,
|
|
2701
|
-
"--ui-kit-select-option-selected-bg": optionSelectedBackground,
|
|
2702
|
-
"--ui-kit-select-option-disabled": withAlpha(theme.colors.text, 0.38),
|
|
2703
|
-
"--ui-kit-select-control-shadow": componentShadow
|
|
2704
|
-
}), [
|
|
2705
|
-
componentShadow,
|
|
2706
|
-
mutedText,
|
|
2707
|
-
optionHoverBackground,
|
|
2708
|
-
optionSelectedBackground,
|
|
2709
|
-
placeholderTextColor,
|
|
2710
|
-
scrollbarThumbColor,
|
|
2711
|
-
scrollbarThumbHoverColor,
|
|
2712
|
-
theme.colors.surface,
|
|
2713
|
-
theme.colors.text
|
|
2714
|
-
]);
|
|
2715
2715
|
const triggerBorderColor = error ? "var(--theme-negative)" : "var(--theme-textLight)";
|
|
2716
2716
|
const triggerBoxShadow = getInsetBorderShadow(triggerBorderColor, {
|
|
2717
|
-
componentShadow
|
|
2717
|
+
componentShadow
|
|
2718
2718
|
});
|
|
2719
2719
|
const triggerClassName = cx(
|
|
2720
2720
|
"m-0 box-border flex w-full min-w-0 items-center justify-between gap-3 rounded-2xl border-0 appearance-none",
|
|
@@ -2722,7 +2722,7 @@ function SelectBase({
|
|
|
2722
2722
|
"duration-150 text-left",
|
|
2723
2723
|
FIELD_HEIGHT_CLASSNAMES3[controlSize],
|
|
2724
2724
|
FIELD_TEXT_CLASSNAMES3[controlSize],
|
|
2725
|
-
hasSelection ? "text-[var(--theme-text)]" : "text-[var(--
|
|
2725
|
+
hasSelection ? "text-[var(--theme-text)]" : "text-[var(--theme-textLight)]",
|
|
2726
2726
|
isTriggerDisabled ? "cursor-not-allowed" : "cursor-pointer"
|
|
2727
2727
|
);
|
|
2728
2728
|
(0, import_react8.useEffect)(() => {
|
|
@@ -3087,7 +3087,7 @@ function SelectBase({
|
|
|
3087
3087
|
htmlFor: resolvedId,
|
|
3088
3088
|
required: rest.required,
|
|
3089
3089
|
useLabelWrapper: false,
|
|
3090
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { ref: shellRef, className: "relative w-full",
|
|
3090
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { ref: shellRef, className: "relative w-full", children: [
|
|
3091
3091
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
3092
3092
|
"button",
|
|
3093
3093
|
{
|
|
@@ -3131,7 +3131,7 @@ function SelectBase({
|
|
|
3131
3131
|
className: cx(
|
|
3132
3132
|
"pointer-events-none absolute top-1/2 flex -translate-y-1/2 items-center justify-center",
|
|
3133
3133
|
"transition-[transform,color] duration-150",
|
|
3134
|
-
isTriggerDisabled ? "text-[var(--
|
|
3134
|
+
isTriggerDisabled ? "text-[var(--theme-secondary)]" : "text-[var(--theme-textLight)]"
|
|
3135
3135
|
),
|
|
3136
3136
|
style: {
|
|
3137
3137
|
right: indicatorOffset,
|
|
@@ -3173,7 +3173,7 @@ function SelectBase({
|
|
|
3173
3173
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("style", { children: `
|
|
3174
3174
|
#${listboxId} {
|
|
3175
3175
|
scrollbar-width: thin;
|
|
3176
|
-
scrollbar-color:
|
|
3176
|
+
scrollbar-color: ${scrollbarThumbColor} transparent;
|
|
3177
3177
|
}
|
|
3178
3178
|
|
|
3179
3179
|
#${listboxId}::-webkit-scrollbar {
|
|
@@ -3185,19 +3185,19 @@ function SelectBase({
|
|
|
3185
3185
|
}
|
|
3186
3186
|
|
|
3187
3187
|
#${listboxId}::-webkit-scrollbar-thumb {
|
|
3188
|
-
background:
|
|
3188
|
+
background: ${scrollbarThumbColor};
|
|
3189
3189
|
border-radius: 999px;
|
|
3190
3190
|
border: 2px solid transparent;
|
|
3191
3191
|
background-clip: padding-box;
|
|
3192
3192
|
}
|
|
3193
3193
|
|
|
3194
3194
|
#${listboxId}::-webkit-scrollbar-thumb:hover {
|
|
3195
|
-
background:
|
|
3195
|
+
background: ${scrollbarThumbHoverColor};
|
|
3196
3196
|
background-clip: padding-box;
|
|
3197
3197
|
}
|
|
3198
3198
|
|
|
3199
3199
|
#${searchInputId}::placeholder {
|
|
3200
|
-
color:
|
|
3200
|
+
color: ${placeholderTextColor};
|
|
3201
3201
|
opacity: 1;
|
|
3202
3202
|
}
|
|
3203
3203
|
` }),
|
|
@@ -3209,9 +3209,9 @@ function SelectBase({
|
|
|
3209
3209
|
style: {
|
|
3210
3210
|
top: menuPlacement === "bottom" ? `calc(100% + ${MENU_OFFSET}px)` : "auto",
|
|
3211
3211
|
bottom: menuPlacement === "top" ? `calc(100% + ${MENU_OFFSET}px)` : "auto",
|
|
3212
|
-
borderColor:
|
|
3213
|
-
backgroundColor:
|
|
3214
|
-
boxShadow:
|
|
3212
|
+
borderColor: theme.colors.secondary,
|
|
3213
|
+
backgroundColor: theme.colors.surface,
|
|
3214
|
+
boxShadow: componentShadow,
|
|
3215
3215
|
visibility: isPlacementResolved ? "visible" : "hidden"
|
|
3216
3216
|
},
|
|
3217
3217
|
children: [
|
|
@@ -3219,7 +3219,7 @@ function SelectBase({
|
|
|
3219
3219
|
"div",
|
|
3220
3220
|
{
|
|
3221
3221
|
className: "flex shrink-0 items-center justify-start gap-2 border-b px-1 pb-[10px] pt-1",
|
|
3222
|
-
style: { borderColor:
|
|
3222
|
+
style: { borderColor: theme.colors.secondary },
|
|
3223
3223
|
children: [
|
|
3224
3224
|
bulkToggleControl,
|
|
3225
3225
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
@@ -3244,8 +3244,8 @@ function SelectBase({
|
|
|
3244
3244
|
"aria-label": searchPlaceholder,
|
|
3245
3245
|
className: "w-full flex-1 rounded-[11px] border bg-[var(--theme-surface)] px-[11px] py-[7px] text-[11px] leading-[1.4] text-[var(--theme-text)] outline-none",
|
|
3246
3246
|
style: {
|
|
3247
|
-
borderColor:
|
|
3248
|
-
boxShadow:
|
|
3247
|
+
borderColor: theme.colors.secondary,
|
|
3248
|
+
boxShadow: componentShadow
|
|
3249
3249
|
}
|
|
3250
3250
|
}
|
|
3251
3251
|
)
|
|
@@ -3255,7 +3255,7 @@ function SelectBase({
|
|
|
3255
3255
|
"div",
|
|
3256
3256
|
{
|
|
3257
3257
|
className: "flex shrink-0 items-center justify-start border-b px-1 pb-[10px] pt-1",
|
|
3258
|
-
style: { borderColor:
|
|
3258
|
+
style: { borderColor: theme.colors.secondary },
|
|
3259
3259
|
children: bulkToggleControl
|
|
3260
3260
|
}
|
|
3261
3261
|
) : null,
|
|
@@ -3271,7 +3271,7 @@ function SelectBase({
|
|
|
3271
3271
|
children: visibleGroups.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
3272
3272
|
"div",
|
|
3273
3273
|
{
|
|
3274
|
-
className: "px-3 py-[14px] text-center text-[13px] text-[var(--
|
|
3274
|
+
className: "px-3 py-[14px] text-center text-[13px] text-[var(--theme-textLight)]",
|
|
3275
3275
|
children: emptyState
|
|
3276
3276
|
}
|
|
3277
3277
|
) : visibleGroups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
@@ -3282,7 +3282,7 @@ function SelectBase({
|
|
|
3282
3282
|
group.label ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
3283
3283
|
"span",
|
|
3284
3284
|
{
|
|
3285
|
-
className: "px-2 pb-0.5 pt-1.5 text-[11px] font-extrabold uppercase tracking-[0.08em] text-[var(--
|
|
3285
|
+
className: "px-2 pb-0.5 pt-1.5 text-[11px] font-extrabold uppercase tracking-[0.08em] text-[var(--theme-textLight)]",
|
|
3286
3286
|
children: group.label
|
|
3287
3287
|
}
|
|
3288
3288
|
) : null,
|
|
@@ -3318,11 +3318,11 @@ function SelectBase({
|
|
|
3318
3318
|
"flex w-full min-w-0 items-center justify-between gap-3 rounded-xl box-border",
|
|
3319
3319
|
"transition-[background-color,color] duration-150",
|
|
3320
3320
|
OPTION_PADDING_CLASSNAMES[controlSize],
|
|
3321
|
-
option.disabled ? "cursor-not-allowed text-[var(--
|
|
3321
|
+
option.disabled ? "cursor-not-allowed text-[var(--theme-secondary)]" : "cursor-pointer",
|
|
3322
3322
|
!option.disabled && isActive ? "text-[var(--theme-onPrimary)]" : null,
|
|
3323
3323
|
!option.disabled && !isActive ? "text-[var(--theme-text)]" : null,
|
|
3324
|
-
isSelected ? "bg-[var(--
|
|
3325
|
-
!isSelected && isHighlighted ? "bg-[var(--
|
|
3324
|
+
isSelected ? "bg-[var(--theme-primary)] font-bold" : null,
|
|
3325
|
+
!isSelected && isHighlighted ? "bg-[var(--theme-primary)]" : null,
|
|
3326
3326
|
!isSelected && !isHighlighted ? "bg-[var(--theme-surface)] font-normal" : null
|
|
3327
3327
|
),
|
|
3328
3328
|
children: [
|
|
@@ -3339,7 +3339,7 @@ function SelectBase({
|
|
|
3339
3339
|
size: 16,
|
|
3340
3340
|
checkedColor: isActive ? "var(--theme-onPrimary)" : "var(--theme-primary)",
|
|
3341
3341
|
iconColor: isActive ? "var(--theme-primary)" : "var(--theme-onPrimary)",
|
|
3342
|
-
uncheckedBorderColor: isActive ? "var(--theme-onPrimary)" :
|
|
3342
|
+
uncheckedBorderColor: isActive ? "var(--theme-onPrimary)" : theme.colors.secondary,
|
|
3343
3343
|
uncheckedBackgroundColor: "transparent"
|
|
3344
3344
|
}
|
|
3345
3345
|
) : null,
|
|
@@ -3385,7 +3385,7 @@ function SelectBase({
|
|
|
3385
3385
|
"div",
|
|
3386
3386
|
{
|
|
3387
3387
|
className: "shrink-0 border-t px-2 pb-1 pt-2.5",
|
|
3388
|
-
style: { borderColor:
|
|
3388
|
+
style: { borderColor: theme.colors.secondary },
|
|
3389
3389
|
children: menuFooter
|
|
3390
3390
|
}
|
|
3391
3391
|
) : null
|
|
@@ -3737,7 +3737,7 @@ function SelectAsync({
|
|
|
3737
3737
|
"div",
|
|
3738
3738
|
{
|
|
3739
3739
|
"aria-live": "polite",
|
|
3740
|
-
className: "flex items-center gap-3 text-xs leading-[1.4] text-[var(--
|
|
3740
|
+
className: "flex items-center gap-3 text-xs leading-[1.4] text-[var(--theme-textLight)]",
|
|
3741
3741
|
style: { justifyContent: hasMore ? "space-between" : "center" },
|
|
3742
3742
|
children: [
|
|
3743
3743
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: isLoadingMore ? loadingMoreMessage : hasMore ? loadMoreHintMessage : null }),
|
|
@@ -4301,9 +4301,12 @@ function TableBase({
|
|
|
4301
4301
|
onInternalPageChange,
|
|
4302
4302
|
onInternalPageSizeChange
|
|
4303
4303
|
}) {
|
|
4304
|
-
const
|
|
4305
|
-
const
|
|
4306
|
-
const
|
|
4304
|
+
const theme = useUiKitTheme();
|
|
4305
|
+
const componentShadow = "0px 4px 5px var(--theme-shadow)";
|
|
4306
|
+
const softBorderColor = theme.colors.secondary;
|
|
4307
|
+
const strongBorderColor = theme.colors.textLight;
|
|
4308
|
+
const mutedTextColor = theme.colors.textLight;
|
|
4309
|
+
const alternateSurfaceColor = theme.colors.background;
|
|
4307
4310
|
const scrollRegionId = (0, import_react12.useId)().replace(/:/g, "");
|
|
4308
4311
|
const containerRef = (0, import_react12.useRef)(null);
|
|
4309
4312
|
const [containerWidth, setContainerWidth] = (0, import_react12.useState)(null);
|
|
@@ -4327,8 +4330,8 @@ function TableBase({
|
|
|
4327
4330
|
const hasRows = items.length > 0;
|
|
4328
4331
|
const hasSearchValue = searchValue.trim().length > 0;
|
|
4329
4332
|
const visibleInlineActions = Math.max(0, Math.floor(maxInlineActions));
|
|
4330
|
-
const scrollbarThumbColor =
|
|
4331
|
-
const scrollbarThumbHoverColor = theme.colors.
|
|
4333
|
+
const scrollbarThumbColor = theme.colors.secondary;
|
|
4334
|
+
const scrollbarThumbHoverColor = theme.colors.textLight;
|
|
4332
4335
|
const shouldShowToolbarStatus = loading || !loading && Boolean(error) && hasRows;
|
|
4333
4336
|
const shouldRenderToolbar = shouldShowSearch || shouldShowToolbarStatus || showSettingsButton;
|
|
4334
4337
|
const shouldRenderToolbarPrimaryGroup = shouldShowSearch || showSettingsButton;
|
|
@@ -4337,7 +4340,7 @@ function TableBase({
|
|
|
4337
4340
|
const currentPageItemCount = items.length;
|
|
4338
4341
|
const downloadMatrix = buildTableDownloadMatrix(visibleDownloadColumns, items);
|
|
4339
4342
|
const downloadFileBaseName = buildTableDownloadFileBaseName(ariaLabel, normalizedPage);
|
|
4340
|
-
const stickyActionsColumnShadow = `-10px 0 16px -14px ${
|
|
4343
|
+
const stickyActionsColumnShadow = `-10px 0 16px -14px ${theme.colors.shadow}`;
|
|
4341
4344
|
const shouldStickActionsColumn = Boolean(actions) && stickyActionsColumn;
|
|
4342
4345
|
const getStickyActionsCellStyle = (backgroundColor, backgroundImage, isHeader = false) => ({
|
|
4343
4346
|
position: "sticky",
|
|
@@ -4347,7 +4350,7 @@ function TableBase({
|
|
|
4347
4350
|
backgroundImage,
|
|
4348
4351
|
backgroundClip: "padding-box",
|
|
4349
4352
|
boxShadow: stickyActionsColumnShadow,
|
|
4350
|
-
borderLeft: `1px solid ${
|
|
4353
|
+
borderLeft: `1px solid ${softBorderColor}`
|
|
4351
4354
|
});
|
|
4352
4355
|
(0, import_react12.useEffect)(() => {
|
|
4353
4356
|
const element = containerRef.current;
|
|
@@ -4387,8 +4390,8 @@ function TableBase({
|
|
|
4387
4390
|
height: 34,
|
|
4388
4391
|
padding: iconOnly ? 0 : "0 12px",
|
|
4389
4392
|
borderRadius: 12,
|
|
4390
|
-
border: `1px solid ${tone === "danger" ?
|
|
4391
|
-
backgroundColor:
|
|
4393
|
+
border: `1px solid ${tone === "danger" ? theme.colors.negative : softBorderColor}`,
|
|
4394
|
+
backgroundColor: theme.colors.surface,
|
|
4392
4395
|
color: tone === "danger" ? theme.colors.negative : theme.colors.text,
|
|
4393
4396
|
cursor: disabled ? "not-allowed" : "pointer",
|
|
4394
4397
|
opacity: disabled ? DISABLED_COMPONENT_OPACITY : 1,
|
|
@@ -4407,14 +4410,14 @@ function TableBase({
|
|
|
4407
4410
|
gap: 6,
|
|
4408
4411
|
padding: 8,
|
|
4409
4412
|
borderRadius: STANDARD_COMPONENT_BORDER_RADIUS,
|
|
4410
|
-
border: `1px solid ${
|
|
4413
|
+
border: `1px solid ${softBorderColor}`,
|
|
4411
4414
|
backgroundColor: theme.colors.surface,
|
|
4412
4415
|
boxShadow: componentShadow
|
|
4413
4416
|
};
|
|
4414
4417
|
const toolbarControlStyle = {
|
|
4415
4418
|
height: 42,
|
|
4416
4419
|
borderRadius: 14,
|
|
4417
|
-
border: `1px solid ${
|
|
4420
|
+
border: `1px solid ${softBorderColor}`,
|
|
4418
4421
|
backgroundColor: theme.colors.surface,
|
|
4419
4422
|
color: theme.colors.text,
|
|
4420
4423
|
padding: "0 10px",
|
|
@@ -4423,7 +4426,7 @@ function TableBase({
|
|
|
4423
4426
|
fontSize: 14,
|
|
4424
4427
|
lineHeight: 1.4,
|
|
4425
4428
|
transition: "border-color 160ms ease, box-shadow 160ms ease",
|
|
4426
|
-
boxShadow:
|
|
4429
|
+
boxShadow: componentShadow
|
|
4427
4430
|
};
|
|
4428
4431
|
const settingsButtonStyle = {
|
|
4429
4432
|
...actionButtonBaseStyle("default", false, true),
|
|
@@ -4435,8 +4438,8 @@ function TableBase({
|
|
|
4435
4438
|
gap: 4,
|
|
4436
4439
|
padding: "10px 12px",
|
|
4437
4440
|
borderRadius: 14,
|
|
4438
|
-
border: `1px solid ${
|
|
4439
|
-
backgroundColor:
|
|
4441
|
+
border: `1px solid ${softBorderColor}`,
|
|
4442
|
+
backgroundColor: theme.colors.surface,
|
|
4440
4443
|
boxShadow: componentShadow
|
|
4441
4444
|
};
|
|
4442
4445
|
const handleDownloadCsv = () => {
|
|
@@ -4518,7 +4521,7 @@ function TableBase({
|
|
|
4518
4521
|
colSpan: column.colSpan,
|
|
4519
4522
|
style: {
|
|
4520
4523
|
padding: "6px 10px",
|
|
4521
|
-
borderBottom: `1px solid ${
|
|
4524
|
+
borderBottom: `1px solid ${softBorderColor}`,
|
|
4522
4525
|
verticalAlign: "middle",
|
|
4523
4526
|
color: theme.colors.text,
|
|
4524
4527
|
fontSize: 14,
|
|
@@ -4528,7 +4531,7 @@ function TableBase({
|
|
|
4528
4531
|
width: column.width,
|
|
4529
4532
|
minWidth: column.minWidth
|
|
4530
4533
|
},
|
|
4531
|
-
children: hasRenderableContent(content) ? content : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { style: { color:
|
|
4534
|
+
children: hasRenderableContent(content) ? content : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { style: { color: mutedTextColor }, children: "-" })
|
|
4532
4535
|
},
|
|
4533
4536
|
`${getColumnKey(column, columnIndex)}-${rowIndex}`
|
|
4534
4537
|
);
|
|
@@ -4546,8 +4549,8 @@ function TableBase({
|
|
|
4546
4549
|
gap: 12,
|
|
4547
4550
|
minHeight: 220,
|
|
4548
4551
|
borderRadius: 20,
|
|
4549
|
-
border: `1px dashed ${
|
|
4550
|
-
backgroundColor:
|
|
4552
|
+
border: `1px dashed ${strongBorderColor}`,
|
|
4553
|
+
backgroundColor: theme.colors.surface,
|
|
4551
4554
|
boxShadow: componentShadow,
|
|
4552
4555
|
color: theme.colors.text,
|
|
4553
4556
|
textAlign: "center",
|
|
@@ -4567,7 +4570,7 @@ function TableBase({
|
|
|
4567
4570
|
className: cx(
|
|
4568
4571
|
UI_KIT_ROOT_CLASSNAME,
|
|
4569
4572
|
"flex w-full max-w-full min-w-0 flex-col gap-4 rounded-[24px]",
|
|
4570
|
-
"box-border bg-[var(--
|
|
4573
|
+
"box-border bg-[var(--theme-surface)] p-[18px] text-[var(--theme-text)]",
|
|
4571
4574
|
className
|
|
4572
4575
|
),
|
|
4573
4576
|
style,
|
|
@@ -4594,8 +4597,8 @@ function TableBase({
|
|
|
4594
4597
|
style: {
|
|
4595
4598
|
flex: "1 1 260px",
|
|
4596
4599
|
maxWidth: 360,
|
|
4597
|
-
borderColor:
|
|
4598
|
-
boxShadow:
|
|
4600
|
+
borderColor: softBorderColor,
|
|
4601
|
+
boxShadow: componentShadow
|
|
4599
4602
|
}
|
|
4600
4603
|
}
|
|
4601
4604
|
) : null,
|
|
@@ -4619,7 +4622,7 @@ function TableBase({
|
|
|
4619
4622
|
className: "flex min-w-0 flex-wrap items-center justify-end gap-2.5",
|
|
4620
4623
|
style: { marginLeft: shouldRenderToolbarPrimaryGroup ? "auto" : void 0 },
|
|
4621
4624
|
children: [
|
|
4622
|
-
loading ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-[13px] font-semibold text-[var(--
|
|
4625
|
+
loading ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-[13px] font-semibold text-[var(--theme-textLight)]", children: resolvedLabels.loadingMessage }) : null,
|
|
4623
4626
|
!loading && error && hasRows ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "inline-flex items-center gap-2.5", children: [
|
|
4624
4627
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-[13px] font-semibold text-[var(--theme-negative)]", children: resolvedLabels.errorMessage }),
|
|
4625
4628
|
onRetry ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Button, { size: "sm", variant: "ghost", onClick: onRetry, children: resolvedLabels.retryLabel }) : null
|
|
@@ -4631,7 +4634,7 @@ function TableBase({
|
|
|
4631
4634
|
!hasRows && (!loading || error) ? renderEmptyState() : null,
|
|
4632
4635
|
hasRows ? isCollapsed ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { role: "list", "aria-label": ariaLabel, className: "flex flex-col gap-3.5", children: items.map((item, rowIndex) => {
|
|
4633
4636
|
const rowActions = renderActions(item, rowIndex);
|
|
4634
|
-
const rowBackgroundColor = rowIndex % 2 === 0 ? theme.colors.surface :
|
|
4637
|
+
const rowBackgroundColor = rowIndex % 2 === 0 ? theme.colors.surface : alternateSurfaceColor;
|
|
4635
4638
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
4636
4639
|
"article",
|
|
4637
4640
|
{
|
|
@@ -4642,7 +4645,7 @@ function TableBase({
|
|
|
4642
4645
|
gap: 14,
|
|
4643
4646
|
padding: "16px 16px 6px 16px",
|
|
4644
4647
|
borderRadius: 20,
|
|
4645
|
-
border: `1px solid ${
|
|
4648
|
+
border: `1px solid ${softBorderColor}`,
|
|
4646
4649
|
backgroundColor: rowBackgroundColor,
|
|
4647
4650
|
boxShadow: componentShadow
|
|
4648
4651
|
},
|
|
@@ -4675,7 +4678,7 @@ function TableBase({
|
|
|
4675
4678
|
"span",
|
|
4676
4679
|
{
|
|
4677
4680
|
style: {
|
|
4678
|
-
color:
|
|
4681
|
+
color: mutedTextColor,
|
|
4679
4682
|
fontSize: 11,
|
|
4680
4683
|
fontWeight: 700,
|
|
4681
4684
|
letterSpacing: "0.08em",
|
|
@@ -4710,7 +4713,7 @@ function TableBase({
|
|
|
4710
4713
|
lineHeight: 1.55,
|
|
4711
4714
|
textAlign: getTextAlign(align)
|
|
4712
4715
|
},
|
|
4713
|
-
children: hasRenderableContent(content) ? content : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { style: { color:
|
|
4716
|
+
children: hasRenderableContent(content) ? content : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { style: { color: mutedTextColor }, children: "-" })
|
|
4714
4717
|
}
|
|
4715
4718
|
)
|
|
4716
4719
|
}
|
|
@@ -4729,7 +4732,7 @@ function TableBase({
|
|
|
4729
4732
|
display: "flex",
|
|
4730
4733
|
justifyContent: "flex-end",
|
|
4731
4734
|
paddingTop: 4,
|
|
4732
|
-
borderTop: `1px solid ${
|
|
4735
|
+
borderTop: `1px solid ${softBorderColor}`
|
|
4733
4736
|
},
|
|
4734
4737
|
children: rowActions
|
|
4735
4738
|
}
|
|
@@ -4777,8 +4780,8 @@ function TableBase({
|
|
|
4777
4780
|
"aria-label": ariaLabel,
|
|
4778
4781
|
className: "w-full max-w-full min-w-0 overflow-x-auto overflow-y-hidden rounded-[20px] border bg-[var(--theme-surface)]",
|
|
4779
4782
|
style: {
|
|
4780
|
-
borderColor:
|
|
4781
|
-
boxShadow:
|
|
4783
|
+
borderColor: softBorderColor,
|
|
4784
|
+
boxShadow: componentShadow
|
|
4782
4785
|
},
|
|
4783
4786
|
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("table", { className: "min-w-full max-w-none border-separate border-spacing-0", style: { width: "max-content" }, children: [
|
|
4784
4787
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("tr", { children: [
|
|
@@ -4792,8 +4795,8 @@ function TableBase({
|
|
|
4792
4795
|
scope: "col",
|
|
4793
4796
|
style: {
|
|
4794
4797
|
padding: "6px 10px",
|
|
4795
|
-
borderBottom: `1px solid ${
|
|
4796
|
-
color:
|
|
4798
|
+
borderBottom: `1px solid ${strongBorderColor}`,
|
|
4799
|
+
color: mutedTextColor,
|
|
4797
4800
|
fontSize: 11,
|
|
4798
4801
|
fontWeight: 700,
|
|
4799
4802
|
letterSpacing: "0.08em",
|
|
@@ -4814,8 +4817,8 @@ function TableBase({
|
|
|
4814
4817
|
scope: "col",
|
|
4815
4818
|
style: {
|
|
4816
4819
|
padding: "6px 10px",
|
|
4817
|
-
borderBottom: `1px solid ${
|
|
4818
|
-
color:
|
|
4820
|
+
borderBottom: `1px solid ${strongBorderColor}`,
|
|
4821
|
+
color: mutedTextColor,
|
|
4819
4822
|
fontSize: 11,
|
|
4820
4823
|
fontWeight: 700,
|
|
4821
4824
|
letterSpacing: "0.08em",
|
|
@@ -4831,8 +4834,8 @@ function TableBase({
|
|
|
4831
4834
|
] }) }),
|
|
4832
4835
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("tbody", { children: items.map((item, rowIndex) => {
|
|
4833
4836
|
const rowActions = renderActions(item, rowIndex);
|
|
4834
|
-
const rowBackgroundColor = rowIndex % 2 === 0 ? theme.colors.surface :
|
|
4835
|
-
const stickyRowBackgroundImage = rowIndex % 2 === 0 ? void 0 : `linear-gradient(${
|
|
4837
|
+
const rowBackgroundColor = rowIndex % 2 === 0 ? theme.colors.surface : alternateSurfaceColor;
|
|
4838
|
+
const stickyRowBackgroundImage = rowIndex % 2 === 0 ? void 0 : `linear-gradient(${alternateSurfaceColor}, ${alternateSurfaceColor})`;
|
|
4836
4839
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
4837
4840
|
"tr",
|
|
4838
4841
|
{
|
|
@@ -4846,7 +4849,7 @@ function TableBase({
|
|
|
4846
4849
|
{
|
|
4847
4850
|
style: {
|
|
4848
4851
|
padding: "6px 10px",
|
|
4849
|
-
borderBottom: `1px solid ${
|
|
4852
|
+
borderBottom: `1px solid ${softBorderColor}`,
|
|
4850
4853
|
textAlign: "right",
|
|
4851
4854
|
verticalAlign: "middle",
|
|
4852
4855
|
...shouldStickActionsColumn ? getStickyActionsCellStyle(theme.colors.surface, stickyRowBackgroundImage) : {}
|
|
@@ -4869,7 +4872,7 @@ function TableBase({
|
|
|
4869
4872
|
className: "flex flex-wrap items-center justify-between gap-3 pt-1",
|
|
4870
4873
|
children: [
|
|
4871
4874
|
shouldShowPaginationControls ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
4872
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "mr-1 text-[13px] text-[var(--
|
|
4875
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "mr-1 text-[13px] text-[var(--theme-textLight)]", children: resolvedLabels.pageLabel(normalizedPage, totalPages) }),
|
|
4873
4876
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
4874
4877
|
"button",
|
|
4875
4878
|
{
|
|
@@ -4918,7 +4921,7 @@ function TableBase({
|
|
|
4918
4921
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
4919
4922
|
"div",
|
|
4920
4923
|
{
|
|
4921
|
-
className: "flex items-center gap-2.5 text-[13px] text-[var(--
|
|
4924
|
+
className: "flex items-center gap-2.5 text-[13px] text-[var(--theme-textLight)]",
|
|
4922
4925
|
style: { marginLeft: shouldShowRowsPerPageControl ? "auto" : void 0 },
|
|
4923
4926
|
children: shouldShowRowsPerPageControl ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
|
|
4924
4927
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: resolvedLabels.rowsPerPageLabel }),
|
|
@@ -4929,8 +4932,8 @@ function TableBase({
|
|
|
4929
4932
|
onChange: (event) => onInternalPageSizeChange(Number(event.currentTarget.value)),
|
|
4930
4933
|
className: "h-[34px] rounded-[14px] border bg-[var(--theme-surface)] px-3 text-sm leading-[1.4] text-[var(--theme-text)] outline-none",
|
|
4931
4934
|
style: {
|
|
4932
|
-
borderColor:
|
|
4933
|
-
boxShadow:
|
|
4935
|
+
borderColor: softBorderColor,
|
|
4936
|
+
boxShadow: componentShadow
|
|
4934
4937
|
},
|
|
4935
4938
|
children: normalizedPageSizeOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: option, children: option }, option))
|
|
4936
4939
|
}
|
|
@@ -4954,24 +4957,24 @@ function TableBase({
|
|
|
4954
4957
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("strong", { className: "text-sm text-[var(--theme-text)]", children: resolvedLabels.tableInfoSectionTitle }),
|
|
4955
4958
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "grid gap-2.5 [grid-template-columns:repeat(auto-fit,minmax(120px,1fr))]", children: [
|
|
4956
4959
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: infoCardStyle, children: [
|
|
4957
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-[0.06em] text-[var(--
|
|
4960
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-[0.06em] text-[var(--theme-textLight)]", children: resolvedLabels.totalPagesInfoLabel }),
|
|
4958
4961
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("strong", { className: "text-[18px] leading-[1.1] text-[var(--theme-text)]", children: totalPages })
|
|
4959
4962
|
] }),
|
|
4960
4963
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: infoCardStyle, children: [
|
|
4961
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-[0.06em] text-[var(--
|
|
4964
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-[0.06em] text-[var(--theme-textLight)]", children: resolvedLabels.totalItemsInfoLabel }),
|
|
4962
4965
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("strong", { className: "text-[18px] leading-[1.1] text-[var(--theme-text)]", children: totalItemCount })
|
|
4963
4966
|
] }),
|
|
4964
4967
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: infoCardStyle, children: [
|
|
4965
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-[0.06em] text-[var(--
|
|
4968
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-[0.06em] text-[var(--theme-textLight)]", children: resolvedLabels.currentPageInfoLabel }),
|
|
4966
4969
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("strong", { className: "text-[18px] leading-[1.1] text-[var(--theme-text)]", children: normalizedPage })
|
|
4967
4970
|
] }),
|
|
4968
4971
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: infoCardStyle, children: [
|
|
4969
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-[0.06em] text-[var(--
|
|
4972
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-[0.06em] text-[var(--theme-textLight)]", children: resolvedLabels.currentPageItemsInfoLabel }),
|
|
4970
4973
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("strong", { className: "text-[18px] leading-[1.1] text-[var(--theme-text)]", children: currentPageItemCount })
|
|
4971
4974
|
] })
|
|
4972
4975
|
] })
|
|
4973
4976
|
] }),
|
|
4974
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "py-[18px]", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Separator, { orientation: "horizontal", color:
|
|
4977
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "py-[18px]", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Separator, { orientation: "horizontal", color: softBorderColor }) }),
|
|
4975
4978
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { className: "grid gap-3", children: [
|
|
4976
4979
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("strong", { className: "text-sm text-[var(--theme-text)]", children: resolvedLabels.downloadSectionTitle }),
|
|
4977
4980
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-wrap gap-2.5", children: [
|
|
@@ -5271,12 +5274,13 @@ function Textarea({
|
|
|
5271
5274
|
className: cx(
|
|
5272
5275
|
"w-full min-w-0 box-border resize-y rounded-2xl border border-solid bg-[var(--theme-surface)]",
|
|
5273
5276
|
"text-[var(--theme-text)] outline-none transition-[border-color,box-shadow,background-color]",
|
|
5274
|
-
"duration-150 disabled:cursor-not-allowed",
|
|
5277
|
+
"duration-150 placeholder:opacity-100 disabled:cursor-not-allowed",
|
|
5278
|
+
"placeholder:text-[var(--theme-textLight)]",
|
|
5275
5279
|
error ? "border-[var(--theme-negative)]" : "border-[var(--theme-textLight)]",
|
|
5276
5280
|
TEXTAREA_SIZE_CLASSNAMES[controlSize]
|
|
5277
5281
|
),
|
|
5278
5282
|
style: {
|
|
5279
|
-
boxShadow: error ? "0 0 0 3px var(--
|
|
5283
|
+
boxShadow: error ? "0 0 0 3px var(--theme-negative), 0px 4px 5px var(--theme-shadow)" : "0px 4px 5px var(--theme-shadow)",
|
|
5280
5284
|
...style,
|
|
5281
5285
|
...disabled ? { opacity: DISABLED_FIELD_OPACITY } : {}
|
|
5282
5286
|
}
|