@sybilion/uilib 1.6.1 → 1.7.2
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/README.md +1 -0
- package/dist/esm/src/components/ui/Button/Button.js +2 -2
- package/dist/esm/src/components/ui/Button/Button.styl.js +2 -2
- package/dist/esm/src/components/ui/Input/Input.js +3 -3
- package/dist/esm/src/components/ui/Input/Input.styl.js +2 -2
- package/dist/esm/src/components/ui/Select/Select.js +5 -5
- package/dist/esm/src/components/ui/Select/Select.styl.js +2 -2
- package/dist/esm/types/src/components/ui/Button/Button.d.ts +1 -1
- package/dist/esm/types/src/components/ui/Button/Button.types.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Input/Input.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Input/Input.types.d.ts +4 -0
- package/dist/esm/types/src/components/ui/Select/Select.d.ts +1 -1
- package/dist/esm/types/src/components/ui/Select/Select.types.d.ts +2 -0
- package/package.json +23 -12
- package/src/components/ui/Button/Button.styl +4 -0
- package/src/components/ui/Button/Button.styl.d.ts +1 -0
- package/src/components/ui/Button/Button.tsx +2 -0
- package/src/components/ui/Button/Button.types.ts +2 -0
- package/src/components/ui/Input/Input.styl +4 -0
- package/src/components/ui/Input/Input.styl.d.ts +1 -0
- package/src/components/ui/Input/Input.tsx +34 -20
- package/src/components/ui/Input/Input.types.ts +4 -0
- package/src/components/ui/Select/Select.styl +4 -0
- package/src/components/ui/Select/Select.styl.d.ts +1 -0
- package/src/components/ui/Select/Select.tsx +5 -0
- package/src/components/ui/Select/Select.types.ts +2 -0
- package/src/docs/pages/ButtonPage.tsx +33 -1
- package/src/docs/pages/InputPage.tsx +31 -1
- package/src/docs/pages/SelectPage.tsx +34 -1
- package/src/components/ui/Chart/chart-types.csv +0 -33
package/README.md
CHANGED
|
@@ -115,6 +115,7 @@ Declare these in **your** app (`package.json`):
|
|
|
115
115
|
- `react` and `react-dom` (>= 18) — required so the app and `@homecode/ui` resolve the **same** React (avoid invalid hook call / duplicate trees).
|
|
116
116
|
- `react-router-dom` (>= 6) — layout components that use routing-aware UI.
|
|
117
117
|
- `@auth0/auth0-react` (^2.3, **optional peer**) — install when you import `SybilionAuthProvider` / Sybilion auth hooks (see `peerDependenciesMeta`). Standalone docs include it in the `yarn add` line.
|
|
118
|
+
- `xlsx` (^0.18.5), `mammoth` (^1.9) and `pdfjs-dist` (^4.10) (**optional peers**) — install them when you use Chat file attachments (`@sybilion/uilib/chat`). Chat loads them with `import()` only when a spreadsheet, Word or PDF file is attached, so an app that does not use Chat does not need them.
|
|
118
119
|
|
|
119
120
|
**Included with `@sybilion/uilib`** (normal `dependencies`): `@homecode/ui` (^4.17), Radix, Recharts, `@vimeo/player`, `motion`, etc. You import `Theme` / primitives from `@homecode/ui` without adding it separately unless you want an explicit top-level version pin.
|
|
120
121
|
|
|
@@ -4,9 +4,9 @@ import { Slot } from '@radix-ui/react-slot';
|
|
|
4
4
|
import S from './Button.styl.js';
|
|
5
5
|
|
|
6
6
|
const sizeClass = (s) => s === 'sm' ? S.sizeSm : s === 'md' ? S.sizeMd : S.sizeLg;
|
|
7
|
-
function Button({ className, variant = 'default', size = 'md', icon = false, asChild = false, ...props }) {
|
|
7
|
+
function Button({ className, variant = 'default', size = 'md', icon = false, round = false, asChild = false, ...props }) {
|
|
8
8
|
const Comp = asChild ? Slot : 'button';
|
|
9
|
-
return (jsx(Comp, { "data-slot": "button", className: cn(S.root, S[variant], sizeClass(size), icon && S.sizeIcon, className), ...props }));
|
|
9
|
+
return (jsx(Comp, { "data-slot": "button", className: cn(S.root, S[variant], sizeClass(size), icon && S.sizeIcon, round && S.round, className), ...props }));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export { Button };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styleInject from 'style-inject';
|
|
2
2
|
|
|
3
|
-
var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}@layer base, components;@layer components{.Button_root__NT88y{align-items:center;border:0;border-radius:var(--radius-button);cursor:pointer;display:inline-flex;flex-shrink:0;font-family:Manrope,sans-serif;font-family:var(--font-family-body,\"Manrope\",sans-serif);font-size:15px;font-weight:500;gap:var(--p-2);justify-content:center;line-height:1;outline:none;transition:all var(--dur-base) var(--ease-standard);white-space:nowrap}.Button_root__NT88y:focus-visible:not(:disabled):not([data-disabled]){outline:2px solid var(--focus-outline-color,var(--ring));outline:var(--focus-outline-width,2px) solid var(--focus-outline-color,var(--ring));outline-offset:2px;outline-offset:var(--focus-outline-offset,2px)}.Button_root__NT88y:active:where(:not(:disabled)){opacity:.8}.Button_root__NT88y:disabled{cursor:not-allowed;opacity:.5}.Button_root__NT88y[aria-invalid=true]{border-color:var(--destructive);ring:3px var(--destructive-200)}.Button_root__NT88y svg{flex-shrink:0;pointer-events:none}.Button_default__xZ4lt{background-color:var(--primary);color:var(--primary-foreground)}.Button_default__xZ4lt:hover:where(:not(:disabled)){background-color:var(--sb-gray-800)}.dark .Button_default__xZ4lt:hover:where(:not(:disabled)){background-color:var(--sb-gray-600)}.Button_destructive__g1Ume{background-color:var(--destructive-900);color:#fff}.Button_destructive__g1Ume:hover:where(:not(:disabled)){background-color:var(--destructive-600)}.Button_outline__E4R5l{background-color:var(--background);border:1px solid var(--border)}.Button_outline__E4R5l:hover:where(:not(:disabled)){background-color:var(--sb-gray-50);border-color:var(--border)}.dark .Button_outline__E4R5l{background-color:var(--sb-gray-900);border-color:var(--border)}.dark .Button_outline__E4R5l:hover:where(:not(:disabled)){background-color:var(--sb-gray-800)}.Button_secondary__ptn3U{background-color:var(--secondary);color:var(--secondary-foreground)}.Button_secondary__ptn3U:hover:where(:not(:disabled)){background-color:var(--secondary-800)}.Button_ghost__okHgV:hover:where(:not(:disabled)){background-color:var(--sb-gray-100);color:var(--foreground)}.dark .Button_ghost__okHgV:hover:where(:not(:disabled)){background-color:var(--sb-gray-900)}.Button_link__yHy2o{color:var(--primary);text-decoration:underline;text-underline-offset:4px}.Button_link__yHy2o:hover:where(:not(:disabled)){text-decoration:underline}.Button_sizeSm__skgOG{border-radius:var(--p-5);font-size:var(--text-sm);height:30px;padding:0 14px}.Button_sizeMd__7MeqU{border-radius:var(--p-4);height:44px;padding:0 var(--p-4)}.Button_sizeLg__Xfon-{border-radius:var(--p-4);font-size:var(--text-base);height:48px;padding:0 var(--p-6)}.Button_sizeIcon__9ef49{padding:0}.Button_sizeIcon__9ef49.Button_sizeSm__skgOG{padding:0;width:30px}.Button_sizeIcon__9ef49.Button_sizeMd__7MeqU{padding:0;width:44px}.Button_sizeIcon__9ef49.Button_sizeLg__Xfon-{padding:0;width:48px}}";
|
|
4
|
-
var S = {"root":"Button_root__NT88y","default":"Button_default__xZ4lt","destructive":"Button_destructive__g1Ume","outline":"Button_outline__E4R5l","secondary":"Button_secondary__ptn3U","ghost":"Button_ghost__okHgV","link":"Button_link__yHy2o","sizeSm":"Button_sizeSm__skgOG","sizeMd":"Button_sizeMd__7MeqU","sizeLg":"Button_sizeLg__Xfon-","sizeIcon":"Button_sizeIcon__9ef49"};
|
|
3
|
+
var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}@layer base, components;@layer components{.Button_root__NT88y{align-items:center;border:0;border-radius:var(--radius-button);cursor:pointer;display:inline-flex;flex-shrink:0;font-family:Manrope,sans-serif;font-family:var(--font-family-body,\"Manrope\",sans-serif);font-size:15px;font-weight:500;gap:var(--p-2);justify-content:center;line-height:1;outline:none;transition:all var(--dur-base) var(--ease-standard);white-space:nowrap}.Button_root__NT88y:focus-visible:not(:disabled):not([data-disabled]){outline:2px solid var(--focus-outline-color,var(--ring));outline:var(--focus-outline-width,2px) solid var(--focus-outline-color,var(--ring));outline-offset:2px;outline-offset:var(--focus-outline-offset,2px)}.Button_root__NT88y:active:where(:not(:disabled)){opacity:.8}.Button_root__NT88y:disabled{cursor:not-allowed;opacity:.5}.Button_root__NT88y[aria-invalid=true]{border-color:var(--destructive);ring:3px var(--destructive-200)}.Button_root__NT88y svg{flex-shrink:0;pointer-events:none}.Button_default__xZ4lt{background-color:var(--primary);color:var(--primary-foreground)}.Button_default__xZ4lt:hover:where(:not(:disabled)){background-color:var(--sb-gray-800)}.dark .Button_default__xZ4lt:hover:where(:not(:disabled)){background-color:var(--sb-gray-600)}.Button_destructive__g1Ume{background-color:var(--destructive-900);color:#fff}.Button_destructive__g1Ume:hover:where(:not(:disabled)){background-color:var(--destructive-600)}.Button_outline__E4R5l{background-color:var(--background);border:1px solid var(--border)}.Button_outline__E4R5l:hover:where(:not(:disabled)){background-color:var(--sb-gray-50);border-color:var(--border)}.dark .Button_outline__E4R5l{background-color:var(--sb-gray-900);border-color:var(--border)}.dark .Button_outline__E4R5l:hover:where(:not(:disabled)){background-color:var(--sb-gray-800)}.Button_secondary__ptn3U{background-color:var(--secondary);color:var(--secondary-foreground)}.Button_secondary__ptn3U:hover:where(:not(:disabled)){background-color:var(--secondary-800)}.Button_ghost__okHgV:hover:where(:not(:disabled)){background-color:var(--sb-gray-100);color:var(--foreground)}.dark .Button_ghost__okHgV:hover:where(:not(:disabled)){background-color:var(--sb-gray-900)}.Button_link__yHy2o{color:var(--primary);text-decoration:underline;text-underline-offset:4px}.Button_link__yHy2o:hover:where(:not(:disabled)){text-decoration:underline}.Button_sizeSm__skgOG{border-radius:var(--p-5);font-size:var(--text-sm);height:30px;padding:0 14px}.Button_sizeMd__7MeqU{border-radius:var(--p-4);height:44px;padding:0 var(--p-4)}.Button_sizeLg__Xfon-{border-radius:var(--p-4);font-size:var(--text-base);height:48px;padding:0 var(--p-6)}.Button_sizeIcon__9ef49{padding:0}.Button_sizeIcon__9ef49.Button_sizeSm__skgOG{padding:0;width:30px}.Button_sizeIcon__9ef49.Button_sizeMd__7MeqU{padding:0;width:44px}.Button_sizeIcon__9ef49.Button_sizeLg__Xfon-{padding:0;width:48px}.Button_round__OWj7D{border-radius:100px}}";
|
|
4
|
+
var S = {"root":"Button_root__NT88y","default":"Button_default__xZ4lt","destructive":"Button_destructive__g1Ume","outline":"Button_outline__E4R5l","secondary":"Button_secondary__ptn3U","ghost":"Button_ghost__okHgV","link":"Button_link__yHy2o","sizeSm":"Button_sizeSm__skgOG","sizeMd":"Button_sizeMd__7MeqU","sizeLg":"Button_sizeLg__Xfon-","sizeIcon":"Button_sizeIcon__9ef49","round":"Button_round__OWj7D"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
7
7
|
export { S as default };
|
|
@@ -3,11 +3,11 @@ import cn from 'classnames';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import S from './Input.styl.js';
|
|
5
5
|
|
|
6
|
-
const Input = React.forwardRef(({ className, type, size = 'md', variant = 'default', ...props }, ref) => {
|
|
6
|
+
const Input = React.forwardRef(({ className, type, size = 'md', variant = 'default', round = false, ...props }, ref) => {
|
|
7
7
|
if (type === 'textarea') {
|
|
8
|
-
return (jsx("textarea", { ref: ref, className: cn(S.root, S[`size-${size}`], S[`variant-${variant}`], className), ...props }));
|
|
8
|
+
return (jsx("textarea", { ref: ref, className: cn(S.root, S[`size-${size}`], S[`variant-${variant}`], round && S.round, className), ...props }));
|
|
9
9
|
}
|
|
10
|
-
return (jsx("input", { ref: ref, className: cn(S.root, S[`size-${size}`], S[`variant-${variant}`], className), type: type, ...props }));
|
|
10
|
+
return (jsx("input", { ref: ref, className: cn(S.root, S[`size-${size}`], S[`variant-${variant}`], round && S.round, className), type: type, ...props }));
|
|
11
11
|
});
|
|
12
12
|
Input.displayName = 'Input';
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styleInject from 'style-inject';
|
|
2
2
|
|
|
3
|
-
var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.Input_root__IY-8R{background-color:transparent;display:flex;min-width:0;outline:none;overflow:visible;transition:color,box-shadow,outline-color;transition-duration:.15s;width:100%}.Input_root__IY-8R:focus-visible:not(:disabled):not([data-disabled]){outline:2px solid var(--focus-outline-color,var(--ring));outline:var(--focus-outline-width,2px) solid var(--focus-outline-color,var(--ring));outline-offset:2px;outline-offset:var(--focus-outline-offset,2px)}.Input_root__IY-8R.Input_variant-clean__xr6Bi,.Input_root__IY-8R.Input_variant-default__nISPW{padding-left:14px;padding-right:14px}.Input_root__IY-8R.Input_variant-default__nISPW{border-radius:var(--radius-input);box-shadow:0 0 0 1px var(--border);padding-bottom:11px;padding-top:11px}.Input_root__IY-8R.Input_variant-default__nISPW[aria-invalid=true]{--focus-outline-color:var(--destructive);box-shadow:inset 0 0 0 2px var(--destructive)}.Input_root__IY-8R.Input_variant-default__nISPW:focus,.Input_root__IY-8R.Input_variant-default__nISPW:focus-visible{box-shadow:none}.Input_root__IY-8R.Input_size-sm__mhl1Y{font-size:var(--text-xs);height:32px}.Input_root__IY-8R.Input_size-md__L5iKp{font-size:var(--text-sm);height:40px}.Input_root__IY-8R.Input_size-lg__0l--u{font-size:var(--text-base);height:48px}.Input_root__IY-8R:placeholder{color:var(--muted-foreground)}.Input_root__IY-8R::-moz-selection{background-color:var(--primary);color:var(--primary-foreground)}.Input_root__IY-8R::selection{background-color:var(--primary);color:var(--primary-foreground)}.Input_root__IY-8R:disabled{cursor:not-allowed;opacity:.5;pointer-events:none}.Input_root__IY-8R[type=file]::file-selector-button{background-color:transparent;border:0;color:var(--foreground);display:inline-flex;font-size:14px;font-weight:500;height:28px}.dark .Input_root__IY-8R{background-color:var(--input)/.3}.dark .Input_root__IY-8R.Input_variant-default__nISPW[aria-invalid=true]{box-shadow:inset 0 0 0 2px var(--destructive)}.dark .Input_root__IY-8R.Input_variant-default__nISPW:focus,.dark .Input_root__IY-8R.Input_variant-default__nISPW:focus-visible{box-shadow:none}";
|
|
4
|
-
var S = {"root":"Input_root__IY-8R","variant-default":"Input_variant-default__nISPW","variant-clean":"Input_variant-clean__xr6Bi","size-sm":"Input_size-sm__mhl1Y","size-md":"Input_size-md__L5iKp","size-lg":"Input_size-lg__0l--u"};
|
|
3
|
+
var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.Input_root__IY-8R{background-color:transparent;display:flex;min-width:0;outline:none;overflow:visible;transition:color,box-shadow,outline-color;transition-duration:.15s;width:100%}.Input_root__IY-8R:focus-visible:not(:disabled):not([data-disabled]){outline:2px solid var(--focus-outline-color,var(--ring));outline:var(--focus-outline-width,2px) solid var(--focus-outline-color,var(--ring));outline-offset:2px;outline-offset:var(--focus-outline-offset,2px)}.Input_root__IY-8R.Input_variant-clean__xr6Bi,.Input_root__IY-8R.Input_variant-default__nISPW{padding-left:14px;padding-right:14px}.Input_root__IY-8R.Input_variant-default__nISPW{border-radius:var(--radius-input);box-shadow:0 0 0 1px var(--border);padding-bottom:11px;padding-top:11px}.Input_root__IY-8R.Input_variant-default__nISPW[aria-invalid=true]{--focus-outline-color:var(--destructive);box-shadow:inset 0 0 0 2px var(--destructive)}.Input_root__IY-8R.Input_variant-default__nISPW:focus,.Input_root__IY-8R.Input_variant-default__nISPW:focus-visible{box-shadow:none}.Input_root__IY-8R.Input_round__KOj3k{border-radius:100px}.Input_root__IY-8R.Input_size-sm__mhl1Y{font-size:var(--text-xs);height:32px}.Input_root__IY-8R.Input_size-md__L5iKp{font-size:var(--text-sm);height:40px}.Input_root__IY-8R.Input_size-lg__0l--u{font-size:var(--text-base);height:48px}.Input_root__IY-8R:placeholder{color:var(--muted-foreground)}.Input_root__IY-8R::-moz-selection{background-color:var(--primary);color:var(--primary-foreground)}.Input_root__IY-8R::selection{background-color:var(--primary);color:var(--primary-foreground)}.Input_root__IY-8R:disabled{cursor:not-allowed;opacity:.5;pointer-events:none}.Input_root__IY-8R[type=file]::file-selector-button{background-color:transparent;border:0;color:var(--foreground);display:inline-flex;font-size:14px;font-weight:500;height:28px}.dark .Input_root__IY-8R{background-color:var(--input)/.3}.dark .Input_root__IY-8R.Input_variant-default__nISPW[aria-invalid=true]{box-shadow:inset 0 0 0 2px var(--destructive)}.dark .Input_root__IY-8R.Input_variant-default__nISPW:focus,.dark .Input_root__IY-8R.Input_variant-default__nISPW:focus-visible{box-shadow:none}";
|
|
4
|
+
var S = {"root":"Input_root__IY-8R","variant-default":"Input_variant-default__nISPW","variant-clean":"Input_variant-clean__xr6Bi","round":"Input_round__KOj3k","size-sm":"Input_size-sm__mhl1Y","size-md":"Input_size-md__L5iKp","size-lg":"Input_size-lg__0l--u"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
7
7
|
export { S as default };
|
|
@@ -139,7 +139,7 @@ function SelectValue({ placeholder, ...props }) {
|
|
|
139
139
|
return null;
|
|
140
140
|
return (jsx(SelectPrimitive.Value, { "data-slot": "select-value", placeholder: placeholder, ...props }));
|
|
141
141
|
}
|
|
142
|
-
function SearchableTrigger({ className, size = 'md', variant = 'default', darker = false, hideChevron = false, disabled: disabledProp, style, id, }) {
|
|
142
|
+
function SearchableTrigger({ className, size = 'md', variant = 'default', darker = false, round = false, hideChevron = false, disabled: disabledProp, style, id, }) {
|
|
143
143
|
const ctx = React.useContext(SearchableContext);
|
|
144
144
|
const inputRef = React.useRef(null);
|
|
145
145
|
const selectAllOnFocus = React.useRef(false);
|
|
@@ -168,7 +168,7 @@ function SearchableTrigger({ className, size = 'md', variant = 'default', darker
|
|
|
168
168
|
: Math.max(0, current < 0 ? ctx.visibleValues.length - 1 : current - 1);
|
|
169
169
|
ctx.setHighlighted(ctx.visibleValues[nextIndex] ?? null);
|
|
170
170
|
};
|
|
171
|
-
return (jsxs("div", { ref: ctx.triggerRef, "data-slot": "select-trigger", "data-size": size, "data-variant": variant, "data-placeholder": !displayValue || undefined, className: cn(S.selectTrigger, S.searchable, darker && S.darker, variant === 'clear' && S.clear, className), style: style, children: [jsx("input", { ref: inputRef, id: id, className: S.selectTriggerInput, role: "combobox", "aria-expanded": ctx.open, "aria-controls": ctx.listId, "aria-autocomplete": "list", "aria-activedescendant": ctx.open && ctx.highlighted
|
|
171
|
+
return (jsxs("div", { ref: ctx.triggerRef, "data-slot": "select-trigger", "data-size": size, "data-variant": variant, "data-placeholder": !displayValue || undefined, className: cn(S.selectTrigger, S.searchable, darker && S.darker, round && S.round, variant === 'clear' && S.clear, className), style: style, children: [jsx("input", { ref: inputRef, id: id, className: S.selectTriggerInput, role: "combobox", "aria-expanded": ctx.open, "aria-controls": ctx.listId, "aria-autocomplete": "list", "aria-activedescendant": ctx.open && ctx.highlighted
|
|
172
172
|
? `${ctx.listId}-${ctx.highlighted}`
|
|
173
173
|
: undefined, disabled: disabled, placeholder: ctx.placeholder, value: displayValue, autoComplete: "off", onFocus: event => {
|
|
174
174
|
if (disabled)
|
|
@@ -232,12 +232,12 @@ function SearchableTrigger({ className, size = 'md', variant = 'default', darker
|
|
|
232
232
|
}
|
|
233
233
|
} }), !hideChevron && jsx(ChevronDownIcon, { className: S.selectIcon })] }));
|
|
234
234
|
}
|
|
235
|
-
function SelectTrigger({ className, size = 'md', variant = 'default', darker = false, children, hideChevron = false, asChild = false, ...props }) {
|
|
235
|
+
function SelectTrigger({ className, size = 'md', variant = 'default', darker = false, round = false, children, hideChevron = false, asChild = false, ...props }) {
|
|
236
236
|
const searchable = React.useContext(SearchableContext);
|
|
237
237
|
if (searchable) {
|
|
238
|
-
return (jsxs(Fragment, { children: [children, jsx(SearchableTrigger, { className: className, size: size, variant: variant, darker: darker, hideChevron: hideChevron, ...props })] }));
|
|
238
|
+
return (jsxs(Fragment, { children: [children, jsx(SearchableTrigger, { className: className, size: size, variant: variant, darker: darker, round: round, hideChevron: hideChevron, ...props })] }));
|
|
239
239
|
}
|
|
240
|
-
return (jsx(SelectPrimitive.Trigger, { "data-slot": "select-trigger", "data-size": size, "data-variant": variant, className: cn(!asChild && S.selectTrigger, !asChild && darker && S.darker, !asChild && variant === 'clear' && S.clear, className), asChild: asChild, ...props, children: asChild ? (children) : (jsxs(Fragment, { children: [children, !hideChevron && (jsx(SelectPrimitive.Icon, { asChild: true, children: jsx(ChevronDownIcon, { className: S.selectIcon }) }))] })) }));
|
|
240
|
+
return (jsx(SelectPrimitive.Trigger, { "data-slot": "select-trigger", "data-size": size, "data-variant": variant, className: cn(!asChild && S.selectTrigger, !asChild && darker && S.darker, !asChild && round && S.round, !asChild && variant === 'clear' && S.clear, className), asChild: asChild, ...props, children: asChild ? (children) : (jsxs(Fragment, { children: [children, !hideChevron && (jsx(SelectPrimitive.Icon, { asChild: true, children: jsx(ChevronDownIcon, { className: S.selectIcon }) }))] })) }));
|
|
241
241
|
}
|
|
242
242
|
function SearchableContent({ className, children }) {
|
|
243
243
|
const ctx = React.useContext(SearchableContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styleInject from 'style-inject';
|
|
2
2
|
|
|
3
|
-
var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.Select_selectTrigger__oTOBl{align-items:center;background-color:var(--background);border:none;box-shadow:none;box-sizing:border-box;color:var(--foreground);cursor:pointer;display:flex;font-size:var(--text-sm);font-weight:500;gap:var(--p-1);justify-content:space-between;max-width:calc(90vw - var(--page-x-padding)*2);outline:none;overflow:hidden;padding:var(--p-1) var(--p-3);position:relative;transition:all .2s ease-in-out;white-space:nowrap;width:-moz-fit-content;width:fit-content}.Select_selectTrigger__oTOBl:focus-visible:not(:disabled):not([data-disabled]),.Select_selectTrigger__oTOBl:focus-within:not(:disabled):not([data-disabled]){outline:2px solid var(--focus-outline-color,var(--ring));outline:var(--focus-outline-width,2px) solid var(--focus-outline-color,var(--ring));outline-offset:2px;outline-offset:var(--focus-outline-offset,2px)}.Select_selectTrigger__oTOBl:before{background-image:linear-gradient(to right,transparent,var(--background));content:\"\";display:block;height:100%;left:60vw;min-height:100%;min-width:var(--page-x-padding);position:absolute;width:var(--page-x-padding);width:20%}.Select_selectTrigger__oTOBl[aria-expanded=true]:before{display:none}.Select_selectTrigger__oTOBl.Select_darker__wwisI{background-color:var(--muted)}.Select_selectTrigger__oTOBl:hover{box-shadow:0 0 0 2px var(--background)}.Select_selectTrigger__oTOBl[data-size=xs]{border-radius:var(--p-4);font-size:var(--text-xs);height:28px;min-height:28px;padding:0 10px}.Select_selectTrigger__oTOBl[data-size=sm]{border-radius:var(--p-4);font-size:13px;height:32px;min-height:32px;padding:0 14px}.Select_selectTrigger__oTOBl[data-size=md]{border-radius:var(--p-4);font-size:var(--text-sm);height:40px;min-height:40px;padding:0 14px}.Select_selectTrigger__oTOBl[data-size=lg]{border-radius:var(--p-4);font-size:var(--text-base);height:48px;min-height:48px;padding:0 var(--p-6)}.Select_selectTrigger__oTOBl[data-placeholder]{color:var(--muted-foreground)}.Select_selectTrigger__oTOBl[aria-invalid=true]{border-color:var(--destructive)}.Select_selectTrigger__oTOBl:disabled{cursor:not-allowed;opacity:.5}.Select_selectTrigger__oTOBl [data-slot=select-value]{align-items:center;display:flex;gap:var(--p-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Select_selectTrigger__oTOBl.Select_searchable__QY5Fx{cursor:text}.Select_selectTrigger__oTOBl .Select_selectTriggerInput__5mp0R{background:transparent;border:none;box-shadow:none;color:inherit;cursor:text;flex:1;font:inherit;font-size:inherit;font-weight:inherit;margin:0;min-width:0;outline:none;padding:0;width:100%}.Select_selectTrigger__oTOBl .Select_selectTriggerInput__5mp0R::-moz-placeholder{color:var(--muted-foreground)}.Select_selectTrigger__oTOBl .Select_selectTriggerInput__5mp0R::placeholder{color:var(--muted-foreground)}.Select_selectTrigger__oTOBl .Select_selectTriggerInput__5mp0R:disabled{cursor:not-allowed}.Select_selectTrigger__oTOBl svg{flex-shrink:0;pointer-events:none}.Select_selectTrigger__oTOBl svg:not([class*=text-]){color:var(--foreground)}.Select_selectTrigger__oTOBl svg:not([class*=size-]){height:1rem;width:1rem}.dark .Select_selectTrigger__oTOBl:not(.Select_darker__wwisI){background-color:var(--background)}.dark .Select_selectTrigger__oTOBl:not(.Select_darker__wwisI):hover{background-color:var(--background-alpha-800)}.Select_clear__vxo-N{background-color:transparent;border:none;box-shadow:none}.Select_clear__vxo-N:focus-visible:not(:disabled):not([data-disabled]){outline:2px solid var(--focus-outline-color,var(--ring));outline:var(--focus-outline-width,2px) solid var(--focus-outline-color,var(--ring));outline-offset:2px;outline-offset:var(--focus-outline-offset,2px)}@media (prefers-color-scheme:dark){.Select_clear__vxo-N,.Select_clear__vxo-N:hover{background-color:transparent}}.Select_selectContent__Wbegi{background-color:var(--popover);border:1px solid var(--border);border-radius:var(--radius-input);box-shadow:0 10px 15px -3px rgba(0,0,0,.1);color:var(--popover-foreground);max-height:var(--radix-select-content-available-height);min-width:8rem;overflow-x:hidden;overflow-y:auto;position:relative;transform-origin:var(--radix-select-content-transform-origin);z-index:1100}.Select_selectContent__Wbegi[data-state=open]{animation:Select_fadeIn__hm7v- .25s,Select_zoomIn__ep77v .1s}.Select_selectContent__Wbegi[data-state=closed]{animation:Select_fadeOut__A-ccN .25s,Select_zoomOut__pZ-7e .1s}.Select_selectContent__Wbegi[data-side=bottom]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromTop__O1LeF .1s}.Select_selectContent__Wbegi[data-side=left]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromRight__iJq-J .1s}.Select_selectContent__Wbegi[data-side=right]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromLeft__8tm7S .1s}.Select_selectContent__Wbegi[data-side=top]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromBottom__PsvX6 .1s}.Select_selectContentPopper__TU8Jn[data-side=bottom]{transform:translateY(.25rem)}.Select_selectContentPopper__TU8Jn[data-side=left]{transform:translateX(-.25rem)}.Select_selectContentPopper__TU8Jn[data-side=right]{transform:translateX(.25rem)}.Select_selectContentPopper__TU8Jn[data-side=top]{transform:translateY(-.25rem)}.Select_selectViewport__OtOW7{padding:var(--p-1)}.Select_selectViewportPopper__dUoFi{height:var(--radix-select-trigger-height);min-width:var(--radix-select-trigger-width);scroll-margin:var(--p-1) 0;width:100%}.Select_selectLabel__rX9cj{color:var(--muted-foreground);font-size:var(--text-xs);padding:var(--p-2) var(--p-2);padding-bottom:var(--p-2);padding-top:var(--p-2)}.Select_selectEmpty__6kP5B{color:var(--muted-foreground);font-size:var(--text-sm);padding:var(--p-2)}.Select_selectItem__JLg4D{align-items:center;border-radius:var(--radius-sm);cursor:default;display:flex;flex-grow:1;font-size:var(--text-sm);gap:var(--p-2);outline:none;padding:var(--p-1) var(--p-2);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.Select_selectItem__JLg4D:focus-visible:not(:disabled):not([data-disabled]){outline:2px solid var(--focus-outline-color,var(--ring));outline:var(--focus-outline-width,2px) solid var(--focus-outline-color,var(--ring));outline-offset:2px;outline-offset:var(--focus-outline-offset,2px)}.Select_selectItem__JLg4D.Select_selected__tmqut{background-color:var(--accent);font-weight:600}.Select_selectItem__JLg4D:first-child{border-top-left-radius:var(--radius-md);border-top-right-radius:var(--radius-md)}.Select_selectItem__JLg4D:last-child{border-bottom-left-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.Select_selectItem__JLg4D:focus,.Select_selectItem__JLg4D[data-highlighted=true]{background-color:var(--accent);color:var(--accent-foreground)}.Select_selectItem__JLg4D[data-disabled]{opacity:.5;pointer-events:none}.Select_selectItem__JLg4D svg{flex-shrink:0;pointer-events:none}.Select_selectItem__JLg4D svg:not([class*=text-]){color:var(--muted-foreground)}.Select_selectItem__JLg4D svg:not([class*=size-]){height:1rem;width:1rem}.Select_selectItem__JLg4D span:not([data-slot=analysis-icon]){display:flex;flex-grow:1;width:100%}.Select_selectItem__JLg4D span:last-child{align-items:center;display:flex;gap:var(--p-2)}.Select_selectItemText__9JXv9{align-items:center;display:flex;gap:var(--p-1)}.Select_selectItemIndicatorContainer__Vte2-{align-items:center;display:flex;height:var(--p-8);justify-content:center;position:absolute;right:0;width:var(--p-8)}.Select_selectItemIndicator__9HcxQ{height:1rem;width:1rem}.Select_selectSeparator__OZw53{background-color:var(--border);height:1px;margin:-.25rem var(--p-1) var(--p-1);pointer-events:none}.Select_selectScrollButton__-z-iR{align-items:center;cursor:default;display:flex;justify-content:center;padding:var(--p-1) 0}.Select_selectIcon__-TfP9{height:1rem;margin-right:calc(var(--p-1)*-1);opacity:.5;width:1rem}.Select_selectScrollIcon__ZyTUI{height:1rem;width:1rem}@keyframes Select_fadeIn__hm7v-{0%{opacity:0}to{opacity:1}}@keyframes Select_fadeOut__A-ccN{0%{opacity:1}to{opacity:0}}@keyframes Select_zoomIn__ep77v{0%{transform:scale(.95)}to{transform:scale(1)}}@keyframes Select_zoomOut__pZ-7e{0%{transform:scale(1)}to{transform:scale(.95)}}@keyframes Select_slideInFromTop__O1LeF{0%{transform:translateY(-.5rem)}to{transform:translateY(.2)}}@keyframes Select_slideInFromBottom__PsvX6{0%{transform:translateY(.5rem)}to{transform:translateY(.2)}}@keyframes Select_slideInFromLeft__8tm7S{0%{transform:translateX(-.5rem)}to{transform:translateX(.2)}}@keyframes Select_slideInFromRight__iJq-J{0%{transform:translateX(.5rem)}to{transform:translateY(.2)}}";
|
|
4
|
-
var S = {"selectTrigger":"Select_selectTrigger__oTOBl","darker":"Select_darker__wwisI","searchable":"Select_searchable__QY5Fx","selectTriggerInput":"Select_selectTriggerInput__5mp0R","clear":"Select_clear__vxo-N","selectContent":"Select_selectContent__Wbegi","fadeIn":"Select_fadeIn__hm7v-","zoomIn":"Select_zoomIn__ep77v","fadeOut":"Select_fadeOut__A-ccN","zoomOut":"Select_zoomOut__pZ-7e","slideInFromTop":"Select_slideInFromTop__O1LeF","slideInFromRight":"Select_slideInFromRight__iJq-J","slideInFromLeft":"Select_slideInFromLeft__8tm7S","slideInFromBottom":"Select_slideInFromBottom__PsvX6","selectContentPopper":"Select_selectContentPopper__TU8Jn","selectViewport":"Select_selectViewport__OtOW7","selectViewportPopper":"Select_selectViewportPopper__dUoFi","selectLabel":"Select_selectLabel__rX9cj","selectEmpty":"Select_selectEmpty__6kP5B","selectItem":"Select_selectItem__JLg4D","selected":"Select_selected__tmqut","selectItemText":"Select_selectItemText__9JXv9","selectItemIndicatorContainer":"Select_selectItemIndicatorContainer__Vte2-","selectItemIndicator":"Select_selectItemIndicator__9HcxQ","selectSeparator":"Select_selectSeparator__OZw53","selectScrollButton":"Select_selectScrollButton__-z-iR","selectIcon":"Select_selectIcon__-TfP9","selectScrollIcon":"Select_selectScrollIcon__ZyTUI"};
|
|
3
|
+
var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.Select_selectTrigger__oTOBl{align-items:center;background-color:var(--background);border:none;box-shadow:none;box-sizing:border-box;color:var(--foreground);cursor:pointer;display:flex;font-size:var(--text-sm);font-weight:500;gap:var(--p-1);justify-content:space-between;max-width:calc(90vw - var(--page-x-padding)*2);outline:none;overflow:hidden;padding:var(--p-1) var(--p-3);position:relative;transition:all .2s ease-in-out;white-space:nowrap;width:-moz-fit-content;width:fit-content}.Select_selectTrigger__oTOBl:focus-visible:not(:disabled):not([data-disabled]),.Select_selectTrigger__oTOBl:focus-within:not(:disabled):not([data-disabled]){outline:2px solid var(--focus-outline-color,var(--ring));outline:var(--focus-outline-width,2px) solid var(--focus-outline-color,var(--ring));outline-offset:2px;outline-offset:var(--focus-outline-offset,2px)}.Select_selectTrigger__oTOBl:before{background-image:linear-gradient(to right,transparent,var(--background));content:\"\";display:block;height:100%;left:60vw;min-height:100%;min-width:var(--page-x-padding);position:absolute;width:var(--page-x-padding);width:20%}.Select_selectTrigger__oTOBl[aria-expanded=true]:before{display:none}.Select_selectTrigger__oTOBl.Select_darker__wwisI{background-color:var(--muted)}.Select_selectTrigger__oTOBl:hover{box-shadow:0 0 0 2px var(--background)}.Select_selectTrigger__oTOBl[data-size=xs]{border-radius:var(--p-4);font-size:var(--text-xs);height:28px;min-height:28px;padding:0 10px}.Select_selectTrigger__oTOBl[data-size=sm]{border-radius:var(--p-4);font-size:13px;height:32px;min-height:32px;padding:0 14px}.Select_selectTrigger__oTOBl[data-size=md]{border-radius:var(--p-4);font-size:var(--text-sm);height:40px;min-height:40px;padding:0 14px}.Select_selectTrigger__oTOBl[data-size=lg]{border-radius:var(--p-4);font-size:var(--text-base);height:48px;min-height:48px;padding:0 var(--p-6)}.Select_selectTrigger__oTOBl.Select_round__wgpMi{border-radius:100px}.Select_selectTrigger__oTOBl[data-placeholder]{color:var(--muted-foreground)}.Select_selectTrigger__oTOBl[aria-invalid=true]{border-color:var(--destructive)}.Select_selectTrigger__oTOBl:disabled{cursor:not-allowed;opacity:.5}.Select_selectTrigger__oTOBl [data-slot=select-value]{align-items:center;display:flex;gap:var(--p-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Select_selectTrigger__oTOBl.Select_searchable__QY5Fx{cursor:text}.Select_selectTrigger__oTOBl .Select_selectTriggerInput__5mp0R{background:transparent;border:none;box-shadow:none;color:inherit;cursor:text;flex:1;font:inherit;font-size:inherit;font-weight:inherit;margin:0;min-width:0;outline:none;padding:0;width:100%}.Select_selectTrigger__oTOBl .Select_selectTriggerInput__5mp0R::-moz-placeholder{color:var(--muted-foreground)}.Select_selectTrigger__oTOBl .Select_selectTriggerInput__5mp0R::placeholder{color:var(--muted-foreground)}.Select_selectTrigger__oTOBl .Select_selectTriggerInput__5mp0R:disabled{cursor:not-allowed}.Select_selectTrigger__oTOBl svg{flex-shrink:0;pointer-events:none}.Select_selectTrigger__oTOBl svg:not([class*=text-]){color:var(--foreground)}.Select_selectTrigger__oTOBl svg:not([class*=size-]){height:1rem;width:1rem}.dark .Select_selectTrigger__oTOBl:not(.Select_darker__wwisI){background-color:var(--background)}.dark .Select_selectTrigger__oTOBl:not(.Select_darker__wwisI):hover{background-color:var(--background-alpha-800)}.Select_clear__vxo-N{background-color:transparent;border:none;box-shadow:none}.Select_clear__vxo-N:focus-visible:not(:disabled):not([data-disabled]){outline:2px solid var(--focus-outline-color,var(--ring));outline:var(--focus-outline-width,2px) solid var(--focus-outline-color,var(--ring));outline-offset:2px;outline-offset:var(--focus-outline-offset,2px)}@media (prefers-color-scheme:dark){.Select_clear__vxo-N,.Select_clear__vxo-N:hover{background-color:transparent}}.Select_selectContent__Wbegi{background-color:var(--popover);border:1px solid var(--border);border-radius:var(--radius-input);box-shadow:0 10px 15px -3px rgba(0,0,0,.1);color:var(--popover-foreground);max-height:var(--radix-select-content-available-height);min-width:8rem;overflow-x:hidden;overflow-y:auto;position:relative;transform-origin:var(--radix-select-content-transform-origin);z-index:1100}.Select_selectContent__Wbegi[data-state=open]{animation:Select_fadeIn__hm7v- .25s,Select_zoomIn__ep77v .1s}.Select_selectContent__Wbegi[data-state=closed]{animation:Select_fadeOut__A-ccN .25s,Select_zoomOut__pZ-7e .1s}.Select_selectContent__Wbegi[data-side=bottom]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromTop__O1LeF .1s}.Select_selectContent__Wbegi[data-side=left]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromRight__iJq-J .1s}.Select_selectContent__Wbegi[data-side=right]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromLeft__8tm7S .1s}.Select_selectContent__Wbegi[data-side=top]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromBottom__PsvX6 .1s}.Select_selectContentPopper__TU8Jn[data-side=bottom]{transform:translateY(.25rem)}.Select_selectContentPopper__TU8Jn[data-side=left]{transform:translateX(-.25rem)}.Select_selectContentPopper__TU8Jn[data-side=right]{transform:translateX(.25rem)}.Select_selectContentPopper__TU8Jn[data-side=top]{transform:translateY(-.25rem)}.Select_selectViewport__OtOW7{padding:var(--p-1)}.Select_selectViewportPopper__dUoFi{height:var(--radix-select-trigger-height);min-width:var(--radix-select-trigger-width);scroll-margin:var(--p-1) 0;width:100%}.Select_selectLabel__rX9cj{color:var(--muted-foreground);font-size:var(--text-xs);padding:var(--p-2) var(--p-2);padding-bottom:var(--p-2);padding-top:var(--p-2)}.Select_selectEmpty__6kP5B{color:var(--muted-foreground);font-size:var(--text-sm);padding:var(--p-2)}.Select_selectItem__JLg4D{align-items:center;border-radius:var(--radius-sm);cursor:default;display:flex;flex-grow:1;font-size:var(--text-sm);gap:var(--p-2);outline:none;padding:var(--p-1) var(--p-2);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.Select_selectItem__JLg4D:focus-visible:not(:disabled):not([data-disabled]){outline:2px solid var(--focus-outline-color,var(--ring));outline:var(--focus-outline-width,2px) solid var(--focus-outline-color,var(--ring));outline-offset:2px;outline-offset:var(--focus-outline-offset,2px)}.Select_selectItem__JLg4D.Select_selected__tmqut{background-color:var(--accent);font-weight:600}.Select_selectItem__JLg4D:first-child{border-top-left-radius:var(--radius-md);border-top-right-radius:var(--radius-md)}.Select_selectItem__JLg4D:last-child{border-bottom-left-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.Select_selectItem__JLg4D:focus,.Select_selectItem__JLg4D[data-highlighted=true]{background-color:var(--accent);color:var(--accent-foreground)}.Select_selectItem__JLg4D[data-disabled]{opacity:.5;pointer-events:none}.Select_selectItem__JLg4D svg{flex-shrink:0;pointer-events:none}.Select_selectItem__JLg4D svg:not([class*=text-]){color:var(--muted-foreground)}.Select_selectItem__JLg4D svg:not([class*=size-]){height:1rem;width:1rem}.Select_selectItem__JLg4D span:not([data-slot=analysis-icon]){display:flex;flex-grow:1;width:100%}.Select_selectItem__JLg4D span:last-child{align-items:center;display:flex;gap:var(--p-2)}.Select_selectItemText__9JXv9{align-items:center;display:flex;gap:var(--p-1)}.Select_selectItemIndicatorContainer__Vte2-{align-items:center;display:flex;height:var(--p-8);justify-content:center;position:absolute;right:0;width:var(--p-8)}.Select_selectItemIndicator__9HcxQ{height:1rem;width:1rem}.Select_selectSeparator__OZw53{background-color:var(--border);height:1px;margin:-.25rem var(--p-1) var(--p-1);pointer-events:none}.Select_selectScrollButton__-z-iR{align-items:center;cursor:default;display:flex;justify-content:center;padding:var(--p-1) 0}.Select_selectIcon__-TfP9{height:1rem;margin-right:calc(var(--p-1)*-1);opacity:.5;width:1rem}.Select_selectScrollIcon__ZyTUI{height:1rem;width:1rem}@keyframes Select_fadeIn__hm7v-{0%{opacity:0}to{opacity:1}}@keyframes Select_fadeOut__A-ccN{0%{opacity:1}to{opacity:0}}@keyframes Select_zoomIn__ep77v{0%{transform:scale(.95)}to{transform:scale(1)}}@keyframes Select_zoomOut__pZ-7e{0%{transform:scale(1)}to{transform:scale(.95)}}@keyframes Select_slideInFromTop__O1LeF{0%{transform:translateY(-.5rem)}to{transform:translateY(.2)}}@keyframes Select_slideInFromBottom__PsvX6{0%{transform:translateY(.5rem)}to{transform:translateY(.2)}}@keyframes Select_slideInFromLeft__8tm7S{0%{transform:translateX(-.5rem)}to{transform:translateX(.2)}}@keyframes Select_slideInFromRight__iJq-J{0%{transform:translateX(.5rem)}to{transform:translateY(.2)}}";
|
|
4
|
+
var S = {"selectTrigger":"Select_selectTrigger__oTOBl","darker":"Select_darker__wwisI","round":"Select_round__wgpMi","searchable":"Select_searchable__QY5Fx","selectTriggerInput":"Select_selectTriggerInput__5mp0R","clear":"Select_clear__vxo-N","selectContent":"Select_selectContent__Wbegi","fadeIn":"Select_fadeIn__hm7v-","zoomIn":"Select_zoomIn__ep77v","fadeOut":"Select_fadeOut__A-ccN","zoomOut":"Select_zoomOut__pZ-7e","slideInFromTop":"Select_slideInFromTop__O1LeF","slideInFromRight":"Select_slideInFromRight__iJq-J","slideInFromLeft":"Select_slideInFromLeft__8tm7S","slideInFromBottom":"Select_slideInFromBottom__PsvX6","selectContentPopper":"Select_selectContentPopper__TU8Jn","selectViewport":"Select_selectViewport__OtOW7","selectViewportPopper":"Select_selectViewportPopper__dUoFi","selectLabel":"Select_selectLabel__rX9cj","selectEmpty":"Select_selectEmpty__6kP5B","selectItem":"Select_selectItem__JLg4D","selected":"Select_selected__tmqut","selectItemText":"Select_selectItemText__9JXv9","selectItemIndicatorContainer":"Select_selectItemIndicatorContainer__Vte2-","selectItemIndicator":"Select_selectItemIndicator__9HcxQ","selectSeparator":"Select_selectSeparator__OZw53","selectScrollButton":"Select_selectScrollButton__-z-iR","selectIcon":"Select_selectIcon__-TfP9","selectScrollIcon":"Select_selectScrollIcon__ZyTUI"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
7
7
|
export { S as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ButtonProps } from './Button.types';
|
|
2
|
-
declare function Button({ className, variant, size, icon, asChild, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function Button({ className, variant, size, icon, round, asChild, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { Button };
|
|
@@ -4,5 +4,7 @@ export interface ButtonProps extends React.ComponentProps<'button'> {
|
|
|
4
4
|
size?: 'sm' | 'md' | 'lg';
|
|
5
5
|
/** Square icon-only button (fixed width/height); use with `size` ignored for dimensions. */
|
|
6
6
|
icon?: boolean;
|
|
7
|
+
/** Fully rounded (pill) corners: `border-radius: 100px`. */
|
|
8
|
+
round?: boolean;
|
|
7
9
|
asChild?: boolean;
|
|
8
10
|
}
|
|
@@ -3,9 +3,11 @@ declare const Input: React.ForwardRefExoticComponent<(Omit<Omit<React.DetailedHT
|
|
|
3
3
|
type?: React.ComponentProps<"input">["type"];
|
|
4
4
|
size?: "sm" | "md" | "lg";
|
|
5
5
|
variant?: "default" | "clean";
|
|
6
|
+
round?: boolean;
|
|
6
7
|
}, "ref"> | Omit<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "size" | "type"> & {
|
|
7
8
|
type: "textarea";
|
|
8
9
|
size?: "sm" | "md" | "lg";
|
|
9
10
|
variant?: "default" | "clean";
|
|
11
|
+
round?: boolean;
|
|
10
12
|
}, "ref">) & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
11
13
|
export { Input };
|
|
@@ -2,8 +2,12 @@ export type InputProps = (Omit<React.ComponentProps<'input'>, 'size'> & {
|
|
|
2
2
|
type?: React.ComponentProps<'input'>['type'];
|
|
3
3
|
size?: 'sm' | 'md' | 'lg';
|
|
4
4
|
variant?: 'default' | 'clean';
|
|
5
|
+
/** Fully rounded (pill) corners: `border-radius: 100px`. */
|
|
6
|
+
round?: boolean;
|
|
5
7
|
}) | (Omit<React.ComponentProps<'textarea'>, 'type' | 'size'> & {
|
|
6
8
|
type: 'textarea';
|
|
7
9
|
size?: 'sm' | 'md' | 'lg';
|
|
8
10
|
variant?: 'default' | 'clean';
|
|
11
|
+
/** Fully rounded (pill) corners: `border-radius: 100px`. */
|
|
12
|
+
round?: boolean;
|
|
9
13
|
});
|
|
@@ -4,7 +4,7 @@ declare function Select({ variant, searchable, ...props }: SelectProps & {
|
|
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function SelectGroup({ ...props }: SelectGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function SelectValue({ placeholder, ...props }: SelectValueProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function SelectTrigger({ className, size, variant, darker, children, hideChevron, asChild, ...props }: SelectTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function SelectTrigger({ className, size, variant, darker, round, children, hideChevron, asChild, ...props }: SelectTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare function SelectContent({ className, children, position, ...props }: SelectContentProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare function SelectItem({ className, children, selected, value, disabled, textValue, ...props }: SelectItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare function SelectSeparator({ className, ...props }: SelectSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,6 +3,8 @@ export interface SelectTriggerProps extends React.ComponentProps<typeof SelectPr
|
|
|
3
3
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
4
4
|
variant?: 'default' | 'clear';
|
|
5
5
|
darker?: boolean;
|
|
6
|
+
/** Fully rounded (pill) corners: `border-radius: 100px`. */
|
|
7
|
+
round?: boolean;
|
|
6
8
|
className?: string;
|
|
7
9
|
children?: React.ReactNode;
|
|
8
10
|
hideChevron?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sybilion/uilib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "Sybilion Design System — React UI components (Vite + Stylus)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
},
|
|
91
91
|
"repository": {
|
|
92
92
|
"type": "git",
|
|
93
|
-
"url": "git+
|
|
93
|
+
"url": "git+https://github.com/Sybilion-AI/uilib.git"
|
|
94
94
|
},
|
|
95
95
|
"keywords": [
|
|
96
96
|
"ui",
|
|
@@ -102,11 +102,11 @@
|
|
|
102
102
|
"author": "apostololeg",
|
|
103
103
|
"license": "ISC",
|
|
104
104
|
"bugs": {
|
|
105
|
-
"url": "https://github.com/
|
|
105
|
+
"url": "https://github.com/Sybilion-AI/uilib/issues"
|
|
106
106
|
},
|
|
107
|
-
"homepage": "https://github.com/
|
|
107
|
+
"homepage": "https://github.com/Sybilion-AI/uilib#readme",
|
|
108
108
|
"dependencies": {
|
|
109
|
-
"@homecode/ui": "^5.
|
|
109
|
+
"@homecode/ui": "^5.20.4",
|
|
110
110
|
"@phosphor-icons/react": "^2.1.10",
|
|
111
111
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
112
112
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
@@ -136,27 +136,25 @@
|
|
|
136
136
|
"d3-geo": "^3.1.1",
|
|
137
137
|
"lightweight-charts": "^5.0.9",
|
|
138
138
|
"lucide-react": "^0.546.0",
|
|
139
|
-
"mammoth": "^1.9.0",
|
|
140
139
|
"motion": "^12.23.12",
|
|
141
|
-
"pdfjs-dist": "^4.10.38",
|
|
142
140
|
"recharts": "^3.2.1",
|
|
143
|
-
"standard-version": "^9.5.0",
|
|
144
141
|
"style-inject": "^0.3.0",
|
|
145
142
|
"topojson-client": "^3.1.0",
|
|
146
|
-
"tslib": "^2.8.1",
|
|
147
143
|
"vaul": "^1.1.2",
|
|
148
|
-
"world-atlas": "^2.0.2"
|
|
149
|
-
"xlsx": "^0.18.5"
|
|
144
|
+
"world-atlas": "^2.0.2"
|
|
150
145
|
},
|
|
151
146
|
"peerDependencies": {
|
|
152
147
|
"@auth0/auth0-react": "^2.3.1",
|
|
153
148
|
"@hookform/resolvers": "^5.0.0",
|
|
154
149
|
"@sybilion/platform-sdk": ">=0.0.1",
|
|
150
|
+
"mammoth": "^1.9.0",
|
|
151
|
+
"pdfjs-dist": "^4.10.38",
|
|
155
152
|
"react": ">=18.0.0",
|
|
156
153
|
"react-dom": ">=18.0.0",
|
|
157
154
|
"react-hook-form": "^7.55.0",
|
|
158
155
|
"react-router-dom": ">=6.0.0",
|
|
159
156
|
"vite": "^6.0.0",
|
|
157
|
+
"xlsx": "^0.18.5",
|
|
160
158
|
"zod": "^4.0.0"
|
|
161
159
|
},
|
|
162
160
|
"peerDependenciesMeta": {
|
|
@@ -166,14 +164,22 @@
|
|
|
166
164
|
"@sybilion/platform-sdk": {
|
|
167
165
|
"optional": true
|
|
168
166
|
},
|
|
167
|
+
"mammoth": {
|
|
168
|
+
"optional": true
|
|
169
|
+
},
|
|
170
|
+
"pdfjs-dist": {
|
|
171
|
+
"optional": true
|
|
172
|
+
},
|
|
169
173
|
"vite": {
|
|
170
174
|
"optional": true
|
|
175
|
+
},
|
|
176
|
+
"xlsx": {
|
|
177
|
+
"optional": true
|
|
171
178
|
}
|
|
172
179
|
},
|
|
173
180
|
"devDependencies": {
|
|
174
181
|
"@auth0/auth0-react": "^2.3.1",
|
|
175
182
|
"@babel/core": "^7.20.12",
|
|
176
|
-
"@homecode/ui": "^4.30.6",
|
|
177
183
|
"@hookform/resolvers": "^5.0.0",
|
|
178
184
|
"@rollup/plugin-alias": "^6.0.0",
|
|
179
185
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
@@ -201,6 +207,8 @@
|
|
|
201
207
|
"identity-obj-proxy": "^3.0.0",
|
|
202
208
|
"jest": "^29.7.0",
|
|
203
209
|
"jest-environment-jsdom": "^29.7.0",
|
|
210
|
+
"mammoth": "^1.9.0",
|
|
211
|
+
"pdfjs-dist": "^4.10.38",
|
|
204
212
|
"postcss-preset-env": "^8.0.1",
|
|
205
213
|
"prettier": "^3.6.2",
|
|
206
214
|
"react": "^19.0.0",
|
|
@@ -215,11 +223,14 @@
|
|
|
215
223
|
"rollup-plugin-node-externals": "^5.1.2",
|
|
216
224
|
"rollup-plugin-postcss": "^4.0.2",
|
|
217
225
|
"rollup-plugin-uglify": "^6.0.4",
|
|
226
|
+
"standard-version": "^9.5.0",
|
|
218
227
|
"stylus": "^0.59.0",
|
|
219
228
|
"ts-jest": "^29.2.5",
|
|
229
|
+
"tslib": "^2.8.1",
|
|
220
230
|
"typescript": "^5.3.3",
|
|
221
231
|
"vite": "^6.0.0",
|
|
222
232
|
"vite-plugin-svgr": "^4.5.0",
|
|
233
|
+
"xlsx": "^0.18.5",
|
|
223
234
|
"zod": "^4.0.0"
|
|
224
235
|
},
|
|
225
236
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
@@ -13,6 +13,7 @@ function Button({
|
|
|
13
13
|
variant = 'default',
|
|
14
14
|
size = 'md',
|
|
15
15
|
icon = false,
|
|
16
|
+
round = false,
|
|
16
17
|
asChild = false,
|
|
17
18
|
...props
|
|
18
19
|
}: ButtonProps) {
|
|
@@ -26,6 +27,7 @@ function Button({
|
|
|
26
27
|
S[variant],
|
|
27
28
|
sizeClass(size),
|
|
28
29
|
icon && S.sizeIcon,
|
|
30
|
+
round && S.round,
|
|
29
31
|
className,
|
|
30
32
|
)}
|
|
31
33
|
{...props}
|
|
@@ -11,5 +11,7 @@ export interface ButtonProps extends React.ComponentProps<'button'> {
|
|
|
11
11
|
size?: 'sm' | 'md' | 'lg';
|
|
12
12
|
/** Square icon-only button (fixed width/height); use with `size` ignored for dimensions. */
|
|
13
13
|
icon?: boolean;
|
|
14
|
+
/** Fully rounded (pill) corners: `border-radius: 100px`. */
|
|
15
|
+
round?: boolean;
|
|
14
16
|
asChild?: boolean;
|
|
15
17
|
}
|
|
@@ -7,35 +7,49 @@ import type { InputProps } from './Input.types';
|
|
|
7
7
|
const Input = React.forwardRef<
|
|
8
8
|
HTMLInputElement | HTMLTextAreaElement,
|
|
9
9
|
InputProps
|
|
10
|
-
>(
|
|
11
|
-
|
|
10
|
+
>(
|
|
11
|
+
(
|
|
12
|
+
{
|
|
13
|
+
className,
|
|
14
|
+
type,
|
|
15
|
+
size = 'md',
|
|
16
|
+
variant = 'default',
|
|
17
|
+
round = false,
|
|
18
|
+
...props
|
|
19
|
+
},
|
|
20
|
+
ref,
|
|
21
|
+
) => {
|
|
22
|
+
if (type === 'textarea') {
|
|
23
|
+
return (
|
|
24
|
+
<textarea
|
|
25
|
+
ref={ref as React.ForwardedRef<HTMLTextAreaElement>}
|
|
26
|
+
className={cn(
|
|
27
|
+
S.root,
|
|
28
|
+
S[`size-${size}`],
|
|
29
|
+
S[`variant-${variant}`],
|
|
30
|
+
round && S.round,
|
|
31
|
+
className,
|
|
32
|
+
)}
|
|
33
|
+
{...(props as React.ComponentProps<'textarea'>)}
|
|
34
|
+
/>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
12
37
|
return (
|
|
13
|
-
<
|
|
14
|
-
ref={ref as React.ForwardedRef<
|
|
38
|
+
<input
|
|
39
|
+
ref={ref as React.ForwardedRef<HTMLInputElement>}
|
|
15
40
|
className={cn(
|
|
16
41
|
S.root,
|
|
17
42
|
S[`size-${size}`],
|
|
18
43
|
S[`variant-${variant}`],
|
|
44
|
+
round && S.round,
|
|
19
45
|
className,
|
|
20
46
|
)}
|
|
21
|
-
{
|
|
47
|
+
type={type}
|
|
48
|
+
{...(props as React.ComponentProps<'input'>)}
|
|
22
49
|
/>
|
|
23
50
|
);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
<input
|
|
27
|
-
ref={ref as React.ForwardedRef<HTMLInputElement>}
|
|
28
|
-
className={cn(
|
|
29
|
-
S.root,
|
|
30
|
-
S[`size-${size}`],
|
|
31
|
-
S[`variant-${variant}`],
|
|
32
|
-
className,
|
|
33
|
-
)}
|
|
34
|
-
type={type}
|
|
35
|
-
{...(props as React.ComponentProps<'input'>)}
|
|
36
|
-
/>
|
|
37
|
-
);
|
|
38
|
-
});
|
|
51
|
+
},
|
|
52
|
+
);
|
|
39
53
|
|
|
40
54
|
Input.displayName = 'Input';
|
|
41
55
|
|
|
@@ -3,9 +3,13 @@ export type InputProps =
|
|
|
3
3
|
type?: React.ComponentProps<'input'>['type'];
|
|
4
4
|
size?: 'sm' | 'md' | 'lg';
|
|
5
5
|
variant?: 'default' | 'clean';
|
|
6
|
+
/** Fully rounded (pill) corners: `border-radius: 100px`. */
|
|
7
|
+
round?: boolean;
|
|
6
8
|
})
|
|
7
9
|
| (Omit<React.ComponentProps<'textarea'>, 'type' | 'size'> & {
|
|
8
10
|
type: 'textarea';
|
|
9
11
|
size?: 'sm' | 'md' | 'lg';
|
|
10
12
|
variant?: 'default' | 'clean';
|
|
13
|
+
/** Fully rounded (pill) corners: `border-radius: 100px`. */
|
|
14
|
+
round?: boolean;
|
|
11
15
|
});
|
|
@@ -257,6 +257,7 @@ function SearchableTrigger({
|
|
|
257
257
|
size = 'md',
|
|
258
258
|
variant = 'default',
|
|
259
259
|
darker = false,
|
|
260
|
+
round = false,
|
|
260
261
|
hideChevron = false,
|
|
261
262
|
disabled: disabledProp,
|
|
262
263
|
style,
|
|
@@ -303,6 +304,7 @@ function SearchableTrigger({
|
|
|
303
304
|
S.selectTrigger,
|
|
304
305
|
S.searchable,
|
|
305
306
|
darker && S.darker,
|
|
307
|
+
round && S.round,
|
|
306
308
|
variant === 'clear' && S.clear,
|
|
307
309
|
className,
|
|
308
310
|
)}
|
|
@@ -390,6 +392,7 @@ function SelectTrigger({
|
|
|
390
392
|
size = 'md',
|
|
391
393
|
variant = 'default',
|
|
392
394
|
darker = false,
|
|
395
|
+
round = false,
|
|
393
396
|
children,
|
|
394
397
|
hideChevron = false,
|
|
395
398
|
asChild = false,
|
|
@@ -405,6 +408,7 @@ function SelectTrigger({
|
|
|
405
408
|
size={size}
|
|
406
409
|
variant={variant}
|
|
407
410
|
darker={darker}
|
|
411
|
+
round={round}
|
|
408
412
|
hideChevron={hideChevron}
|
|
409
413
|
{...props}
|
|
410
414
|
/>
|
|
@@ -420,6 +424,7 @@ function SelectTrigger({
|
|
|
420
424
|
className={cn(
|
|
421
425
|
!asChild && S.selectTrigger,
|
|
422
426
|
!asChild && darker && S.darker,
|
|
427
|
+
!asChild && round && S.round,
|
|
423
428
|
!asChild && variant === 'clear' && S.clear,
|
|
424
429
|
className,
|
|
425
430
|
)}
|
|
@@ -6,6 +6,8 @@ export interface SelectTriggerProps extends React.ComponentProps<
|
|
|
6
6
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
7
7
|
variant?: 'default' | 'clear';
|
|
8
8
|
darker?: boolean;
|
|
9
|
+
/** Fully rounded (pill) corners: `border-radius: 100px`. */
|
|
10
|
+
round?: boolean;
|
|
9
11
|
className?: string;
|
|
10
12
|
children?: React.ReactNode;
|
|
11
13
|
hideChevron?: boolean;
|
|
@@ -25,7 +25,7 @@ export default function ButtonPage() {
|
|
|
25
25
|
<AppPageHeader
|
|
26
26
|
breadcrumbs={[{ label: 'Button' }]}
|
|
27
27
|
title="Button"
|
|
28
|
-
subheader="Variants, sizes, icon mode, and disabled state."
|
|
28
|
+
subheader="Variants, sizes, icon mode, round, and disabled state."
|
|
29
29
|
actions={<DocsHeaderActions />}
|
|
30
30
|
/>
|
|
31
31
|
<DocsGuidance source={ButtonGuidance} />
|
|
@@ -119,6 +119,38 @@ export default function ButtonPage() {
|
|
|
119
119
|
))}
|
|
120
120
|
</div>
|
|
121
121
|
</section>
|
|
122
|
+
<section>
|
|
123
|
+
<h3 style={{ marginBottom: '1rem' }}>Round</h3>
|
|
124
|
+
<p
|
|
125
|
+
style={{
|
|
126
|
+
marginBottom: '0.75rem',
|
|
127
|
+
color: 'var(--muted-foreground)',
|
|
128
|
+
}}
|
|
129
|
+
>
|
|
130
|
+
Pass <code>round</code> for pill corners (
|
|
131
|
+
<code>border-radius: 100px</code>).
|
|
132
|
+
</p>
|
|
133
|
+
<div
|
|
134
|
+
style={{
|
|
135
|
+
display: 'flex',
|
|
136
|
+
flexWrap: 'wrap',
|
|
137
|
+
gap: '0.75rem',
|
|
138
|
+
alignItems: 'center',
|
|
139
|
+
}}
|
|
140
|
+
>
|
|
141
|
+
{SIZES.map(s => (
|
|
142
|
+
<Button key={s} type="button" variant="default" size={s} round>
|
|
143
|
+
Round {s}
|
|
144
|
+
</Button>
|
|
145
|
+
))}
|
|
146
|
+
<Button type="button" variant="outline" round>
|
|
147
|
+
Outline
|
|
148
|
+
</Button>
|
|
149
|
+
<Button type="button" variant="outline" icon round aria-label="Add">
|
|
150
|
+
<Plus size={20} />
|
|
151
|
+
</Button>
|
|
152
|
+
</div>
|
|
153
|
+
</section>
|
|
122
154
|
<section>
|
|
123
155
|
<h3 style={{ marginBottom: '1rem' }}>Disabled</h3>
|
|
124
156
|
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '0.75rem' }}>
|
|
@@ -15,7 +15,7 @@ export default function InputPage() {
|
|
|
15
15
|
<AppPageHeader
|
|
16
16
|
breadcrumbs={[{ label: 'Input' }]}
|
|
17
17
|
title="Input"
|
|
18
|
-
subheader="Variants, sizes, textarea, placeholder, and disabled state."
|
|
18
|
+
subheader="Variants, sizes, textarea, round, placeholder, and disabled state."
|
|
19
19
|
actions={<DocsHeaderActions />}
|
|
20
20
|
/>
|
|
21
21
|
<DocsGuidance source={InputGuidance} />
|
|
@@ -114,6 +114,36 @@ export default function InputPage() {
|
|
|
114
114
|
</table>
|
|
115
115
|
</div>
|
|
116
116
|
</section>
|
|
117
|
+
<section>
|
|
118
|
+
<h3 style={{ marginBottom: '1rem' }}>Round</h3>
|
|
119
|
+
<p
|
|
120
|
+
style={{
|
|
121
|
+
marginBottom: '0.75rem',
|
|
122
|
+
color: 'var(--muted-foreground)',
|
|
123
|
+
}}
|
|
124
|
+
>
|
|
125
|
+
Pass <code>round</code> for pill corners (
|
|
126
|
+
<code>border-radius: 100px</code>).
|
|
127
|
+
</p>
|
|
128
|
+
<div
|
|
129
|
+
style={{
|
|
130
|
+
display: 'flex',
|
|
131
|
+
flexWrap: 'wrap',
|
|
132
|
+
gap: '0.75rem',
|
|
133
|
+
alignItems: 'center',
|
|
134
|
+
}}
|
|
135
|
+
>
|
|
136
|
+
{SIZES.map(s => (
|
|
137
|
+
<Input
|
|
138
|
+
key={s}
|
|
139
|
+
size={s}
|
|
140
|
+
round
|
|
141
|
+
placeholder={`Round ${s}`}
|
|
142
|
+
style={{ width: 200 }}
|
|
143
|
+
/>
|
|
144
|
+
))}
|
|
145
|
+
</div>
|
|
146
|
+
</section>
|
|
117
147
|
<section>
|
|
118
148
|
<h3 style={{ marginBottom: '1rem' }}>Disabled</h3>
|
|
119
149
|
<div
|
|
@@ -28,6 +28,7 @@ function DemoSelect({
|
|
|
28
28
|
placeholder,
|
|
29
29
|
defaultValue,
|
|
30
30
|
darker = false,
|
|
31
|
+
round = false,
|
|
31
32
|
}: {
|
|
32
33
|
variant: (typeof VARIANTS)[number];
|
|
33
34
|
size: (typeof SIZES)[number];
|
|
@@ -35,6 +36,7 @@ function DemoSelect({
|
|
|
35
36
|
placeholder?: string;
|
|
36
37
|
defaultValue?: string;
|
|
37
38
|
darker?: boolean;
|
|
39
|
+
round?: boolean;
|
|
38
40
|
}) {
|
|
39
41
|
return (
|
|
40
42
|
<Select defaultValue={defaultValue}>
|
|
@@ -43,6 +45,7 @@ function DemoSelect({
|
|
|
43
45
|
size={size}
|
|
44
46
|
disabled={disabled}
|
|
45
47
|
darker={darker}
|
|
48
|
+
round={round}
|
|
46
49
|
style={{ width: 200 }}
|
|
47
50
|
>
|
|
48
51
|
<SelectValue placeholder={placeholder ?? 'Pick fruit'} />
|
|
@@ -64,7 +67,7 @@ export default function SelectPage() {
|
|
|
64
67
|
<AppPageHeader
|
|
65
68
|
breadcrumbs={[{ label: 'Select' }]}
|
|
66
69
|
title="Select"
|
|
67
|
-
subheader="Variants, sizes, placeholder, darker trigger, disabled, and searchable."
|
|
70
|
+
subheader="Variants, sizes, placeholder, darker trigger, round, disabled, and searchable."
|
|
68
71
|
actions={<DocsHeaderActions />}
|
|
69
72
|
/>
|
|
70
73
|
<DocsGuidance source={selectGuidance} />
|
|
@@ -191,6 +194,36 @@ export default function SelectPage() {
|
|
|
191
194
|
))}
|
|
192
195
|
</div>
|
|
193
196
|
</section>
|
|
197
|
+
<section>
|
|
198
|
+
<h3 style={{ marginBottom: '1rem' }}>Round</h3>
|
|
199
|
+
<p
|
|
200
|
+
style={{
|
|
201
|
+
marginBottom: '0.75rem',
|
|
202
|
+
color: 'var(--muted-foreground)',
|
|
203
|
+
}}
|
|
204
|
+
>
|
|
205
|
+
Pass <code>round</code> on <code>SelectTrigger</code> for pill
|
|
206
|
+
corners (<code>border-radius: 100px</code>).
|
|
207
|
+
</p>
|
|
208
|
+
<div
|
|
209
|
+
style={{
|
|
210
|
+
display: 'flex',
|
|
211
|
+
flexWrap: 'wrap',
|
|
212
|
+
gap: '0.75rem',
|
|
213
|
+
alignItems: 'center',
|
|
214
|
+
}}
|
|
215
|
+
>
|
|
216
|
+
{SIZES.map(s => (
|
|
217
|
+
<DemoSelect
|
|
218
|
+
key={s}
|
|
219
|
+
variant="default"
|
|
220
|
+
size={s}
|
|
221
|
+
defaultValue="apple"
|
|
222
|
+
round
|
|
223
|
+
/>
|
|
224
|
+
))}
|
|
225
|
+
</div>
|
|
226
|
+
</section>
|
|
194
227
|
<section>
|
|
195
228
|
<h3 style={{ marginBottom: '1rem' }}>Searchable</h3>
|
|
196
229
|
<p
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Image,widget (element on frontend),type of analysis,Components,Component version,Example payload,Raw file / Dependencies,Versions Raw files,Example File,description
|
|
2
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/8921e6eb-749d-437c-9e45-4216e64e5883/image.png | https://t9015967896.p.clickup-attachments.com/t9015967896/8e4c1bf4-3d01-48a1-94b5-76ed14ab3e24/image.png,forecast,probabilistic,forecast_probabilistic | ~~historical~~,v1 + v2,{} | {},forecast.json,v1 + v1.1,,only use the forecast_series key on the object
|
|
3
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/5499aaba-c5e5-45f6-86d8-087dd1b7a4b2/image.png | https://t9015967896.p.clickup-attachments.com/t9015967896/38963a67-1a2c-4474-8aa3-644a80de0165/image.png,forecast,deterministic,forecast_deterministic | ~~historical~~,v1,,forecast.json /backtest.json,v1 + v2,,the bondaries need to be generated based in the backtests mape per horizon based in a evaluation period
|
|
4
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/0132ad1d-7352-4d76-a1bf-f73e77c5d39e/image.png | https://t9015967896.p.clickup-attachments.com/t9015967896/d9d3e163-cd37-4609-b75f-296a53f0bd42/image.png,forecast (mean trend detection),trend,forecast_trend_mean | ~~historical~~,v1,,change_points.json,v1,,"full mess, required loock into js code and documentate"
|
|
5
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/d9ff9215-f4a5-4292-bb26-abcbc37319b5/image.png,forecast ???? (multi forecast),????,~~historical~~ | ????,,,,,,
|
|
6
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/c19698ff-0401-476e-939c-9eea6da65162/image.png,backtest,deterministic,backtest_deterministic | ~~historical~~,v1,,backetest.json,v1 + v2,,is only the forecast_series inside of each period
|
|
7
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/a7b79c68-58ae-4ae9-b10c-23bf9649dd68/image.png,backtest,probabilistic,backtest_probabilistic | ~~historical~~,v1,,backtests.json,v1,,backtest chart with the full forecast type
|
|
8
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/40cbd6f9-8c83-4cc5-86c9-bf506233145a/image.png,Backtest Per quantile,probabilistic,backtest_probabilistic | ~~historical~~,v1,,backtests.json,v1,,similar to the rainbow backtest but also have per quantile
|
|
9
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/e27313d6-18c5-483c-b786-6b5409cab444/image.png,Backtest Metrics per evaluation period (former Summary),probabilistic,backtest_probabilistic_metrics_per_evaluation_period,v1,,backtest_summary.json,v1,,basically a table displaying all the backtests_summary data
|
|
10
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/543ee043-f1de-415d-bf1e-2fc19249b2a1/image.png,Backtest Metrics per evaluation period (former Summary),deterministic,backtest_deterministic_metrics_per_evaluation_period,v1,,backtest_summary.json,v1 + v2,,basicly a table displaying all the backtests_summary data
|
|
11
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/00d07e8e-68dc-4ca5-89c5-0108c46b8b59/image.png,model improvement,deterministic,backtest_deterministic_model_improvment,v1,,backtest_summary.json,v1 + v2,,a widget that display a bar with the error of our model compare with a baseline
|
|
12
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/42c54a0d-75b0-4e61-8f1d-08e4b77639e0/image.png,general widths of mape comparison,deterministic,backtest_deterministic_model_comparison,v1,,backtest_summary.json,v1 + v2,,do exactly what is in the title aside of the last one that is the base_lines aside with the mir_model
|
|
13
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/fb83d9f5-4675-4f27-a00f-3d854b2b8070/image.png,Drivers Details,universal,drivers_details,v1,,drivers_report.json,v2,,table with all the drivers data overall/per horizon
|
|
14
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/24ac9bd8-f2df-44d0-a3f5-8579d1c6aa5e/image.png,Drivers (former Related drivers),universal,drivers_report,v1,,drivers_report.json,v1 + v2,,Legacy table displaying all the drivers existing
|
|
15
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/04d3994a-ee04-4a76-bc87-13324704becb/image.png,comparison drivers,universal,drivers_comparison,v1,,drivers_report.json,v1 + v2,,lecay table with a chart displaying all the drivers data normalized
|
|
16
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/8c760054-f0ba-4499-a9ca-7f0cd720a8e4/image.png,forecast vs base line forecasts,deterministic,forecast_deterministic_model_comparison | ~~/historical~~,v1,,forecast.json /bl_forecast.json,v1 + v2 | v1,,plots together with the forecast of mir_model the baselines forecast
|
|
17
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/30d6f286-81fc-4319-943b-8b1de707ca99/image.png,forecast vs base line forecasts,probabilistic,forecast_probabilistic_model_comparison | ~~/historical~~,v1,,forecast.json /bl_forecast.json,v1 + v2 | v1,,plots together with the forecast of mir_model the baselines forecast
|
|
18
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/c97e27da-2d3f-4d4a-9aa9-29bf9bc706f4/image.png,yearly overlap graph ( to spot seasonality agains the historical data),deterministic / probabilistic,forecast_pointwise | ~~/historical~~,v1,,forecast.json,v1 + v2,,this agregates the historical and the forecast in groups of years to overlap in a way to try to catch seasonality
|
|
19
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/2060d209-fc8c-4a68-a8d1-1b9f4bf4e166/image.png,forecast with trend indicators (adjusted),deterministic,forecast_deterministic | ~~historical~~ | liner_regression_historical_and_forecast,v1 | v1 | v1,,forecast.json | backtests.json,v1 + v2 | v1 + v2,,basicly is a forecast chart but have two lines thath follow the f(x)= mx+b trying to indicate what is the trend movement of the historical and the forecast
|
|
20
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/d51771cc-03f6-442f-b1af-71b22449c655/image.png,forecast with trend indicators (not adjusted),deterministic,forecast_deterministic | ~~historical~~ | liner_regression_forecast,v1 | v1,,forecast.json,v1 + v2,,basicly is a forecast chart but have two lines thath follow the f(x)= mx+b trying to indicate what is the trend movement of the historical and the forecast
|
|
21
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/19e68d01-08dd-4472-8475-75c359826c08/image.png,forecast with trend boundaries,trend,forecast_deterministic | ~~historical~~ | forecast_trend_boundaries,v1 | v1,,forecast.json change_points.json,v1 + v2 | v1,,pick the main trend and plot as a universal boundarie
|
|
22
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/a8e73acf-c486-4449-ae8c-af8d89075bb0/image.png | https://t9015967896.p.clickup-attachments.com/t9015967896/07889acb-78a2-48c8-8273-71d0f5720daa/image.png,Backtests Trend Mean signal detection with indicators (mean backtests with and without noise),trend,~~historical~~ | backtest_trend_mean_with_indicators | backtest_trend_mean_with_indicators_noise,v1 | v1,,change_points_backtest.json,v1,,plot all the detect change points without noise detections
|
|
23
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/949e85df-ec6e-4667-9085-5a445d83ceaa/image.png,Trend signal detection,trend,backtest_trend_mean_without_indicators | ~~historical~~,v1,,change_points_backtest.json,v1,,plot all the detect change and color if they are right or wrong
|
|
24
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/21c50771-da61-4a80-a39c-c0173b72047a/image.png,Forecast Trend mean details,trend,forecast_trend_mean_details,v1,,change_points.json,v1,,display a table with all info
|
|
25
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/d9f1a68e-8749-4a00-b3d1-02b445c1920b/image.png,Slope Trend,trend,forecast_trend_slope | ~~historical~~,v1,,change_points.json,v1,,pick the main trend and plot as a universal boundarie
|
|
26
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/5310d4bf-d540-4ac4-8ed8-39e045f61117/image.png | https://t9015967896.p.clickup-attachments.com/t9015967896/fde0d61c-76e7-4beb-92d1-834abe5ece0b/image.png,Backtests Trend Slope signal detection with indicators (slope backtests with and without noise),trend,~~historical~~ | backtest_trend_slope_with_indicators | backtest_trend_slope_with_indicators_noise,v1 | v1,,change_points.json / historical,v1,,"plot all the detect change points without noise detections , plot all the detect change points with noise detections"
|
|
27
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/48f7c2d0-f9e6-48b6-a9ca-49cc437150fb/image.png,Forecast Trend Slope details,trend,forecast_trend_slope_details,v1,,change_points.json,v1,,display a table with all info
|
|
28
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/7d838220-0993-4095-914d-ca7578934ff5/image.png,confidence interval,deterministic,backtest_deterministic_confidence_interval | ~~historical~~,v1,,backtest.json,v1 + v2,,get a external area of backtests and a standard deviation area in the midle
|
|
29
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/48d2107a-9f05-43b6-8f7-bb9030fd3e84/image.png,shame,deterministic,backtest_deterministic_confidence_interval_normalized | ~~historical~~,v1,,backtest.json,v1 + v2,,get a external area of backtests and a standard deviation area in the midle normalized into -100 and 100
|
|
30
|
-
https://t9015967896.p.clickup-attachments.com/t9015967896/4358fd17-8cab-4a9d-af17-5c32a1213526/image.png,model performance,deterministic,backtest_deterministic_model_performance_relative | backtest_deterministic_model_performance_abs,v1,,backtest.json,v1 + v2,,get fadded bars from all the error of the forecast after the seconda horizon and purple opache bars in the front of the first 2 moths
|
|
31
|
-
,,News,Universal,,,,Microservice,,,,
|
|
32
|
-
,,Insights,deterministic / trend / probabilistic,,,,Microservice,,,,
|
|
33
|
-
,,Drivers by category of impact,Universal,,,,Microservice,,,,
|