@wellingtonhlc/shared-ui 0.24.21 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -1
- package/dist/components/SelectionField.d.ts +39 -0
- package/dist/components/SelectionField.d.ts.map +1 -0
- package/dist/components/SelectionField.js +85 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/styles.css +143 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -186,7 +186,7 @@ Componentes disponiveis na API publica:
|
|
|
186
186
|
| Layout | `AppShell`, `Page`, `Sidebar`, `Card`, `StatCard` |
|
|
187
187
|
| Acoes | `Button`, `ActionPrimitives`, `AppShellActions`, `ConfirmationDialog` |
|
|
188
188
|
| Feedback | `Badge`, `EmptyState`, `PageMessage`, `Tooltip`, `CopyableField` |
|
|
189
|
-
| Formularios | `FieldControl`, `FieldGroup`, `TextField`, `TextareaField`, `SelectField`, `DateField`, `DecimalField`, `MultiSelectField`, `PasswordInput`, `Switch`, `RadioGroup` |
|
|
189
|
+
| Formularios | `FieldControl`, `FieldGroup`, `TextField`, `TextareaField`, `SelectField`, `SelectionField`, `DateField`, `DecimalField`, `MultiSelectField`, `PasswordInput`, `Switch`, `RadioGroup` |
|
|
190
190
|
| Consulta | `Filter`, `Workspace` |
|
|
191
191
|
| Dados | `Table`, `Pagination`, `TabsUnderlined` |
|
|
192
192
|
| Controle de renderizacao | `RenderIf`, `RenderCase` |
|
|
@@ -239,6 +239,42 @@ Pontos de validacao:
|
|
|
239
239
|
- Use `showColorSelector={false}` ou `showAppearanceSelector={false}` quando o consumidor precisar exibir apenas uma parte do controle.
|
|
240
240
|
- A story `AppearanceStates` mostra as tres aparencias ja selecionadas para validacao visual rapida.
|
|
241
241
|
|
|
242
|
+
## SelectionField
|
|
243
|
+
|
|
244
|
+
`SelectionField` padroniza campos de selecao que exibem um registro, abrem uma busca externa e permitem limpar o valor selecionado. O componente nao gerencia modal nem estado interno do registro; o consumidor controla `value`, `onClick` e `onClear`.
|
|
245
|
+
|
|
246
|
+
Contrato minimo:
|
|
247
|
+
|
|
248
|
+
```tsx
|
|
249
|
+
import { SelectionField, type SelectionDisplayValue } from '@wellingtonhlc/shared-ui';
|
|
250
|
+
import { UserCheck } from 'lucide-react';
|
|
251
|
+
|
|
252
|
+
const value: SelectionDisplayValue = {
|
|
253
|
+
title: 'Registro selecionado',
|
|
254
|
+
subtitle: 'Descricao complementar',
|
|
255
|
+
meta: 'COD-1024',
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
<SelectionField
|
|
259
|
+
label="Registro"
|
|
260
|
+
value={value}
|
|
261
|
+
icon={<UserCheck />}
|
|
262
|
+
clearable
|
|
263
|
+
size="sm"
|
|
264
|
+
selectTooltip="Selecionar registro"
|
|
265
|
+
clearTooltip="Limpar registro"
|
|
266
|
+
onClick={openSearch}
|
|
267
|
+
onClear={clearSelection}
|
|
268
|
+
/>;
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
Pontos de validacao:
|
|
272
|
+
|
|
273
|
+
- `size` segue a mesma escala visual dos campos base (`xs`, `sm`, `md`, `lg`).
|
|
274
|
+
- Use `triggerSlot` quando o consumidor precisar injetar um botao proprio para abrir a selecao.
|
|
275
|
+
- `clearable` exibe a acao de limpar somente quando ha `value` e `onClear`.
|
|
276
|
+
- `shortcutHint` pode exibir atalhos de teclado, como `F1`.
|
|
277
|
+
|
|
242
278
|
## Filter
|
|
243
279
|
|
|
244
280
|
`Filter.Root` organiza filtros compactos, ocupando apenas o espaço necessário. Quando houver muitos filtros, somente o corpo do painel rola e as ações continuam visíveis.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FormControlSize, type FormControlVariant } from './form-control-helpers';
|
|
3
|
+
export interface SelectionDisplayValue {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string | null;
|
|
6
|
+
meta?: string | null;
|
|
7
|
+
}
|
|
8
|
+
export type SelectionFieldSize = FormControlSize;
|
|
9
|
+
export type SelectionFieldVariant = FormControlVariant;
|
|
10
|
+
type SelectionTriggerProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
11
|
+
tooltip?: string;
|
|
12
|
+
};
|
|
13
|
+
export interface SelectionFieldProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'className' | 'disabled' | 'required' | 'value'> {
|
|
14
|
+
label?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
value?: SelectionDisplayValue | null;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
emptyIcon?: React.ReactNode;
|
|
20
|
+
triggerSlot?: React.ReactElement<SelectionTriggerProps>;
|
|
21
|
+
clearable?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
required?: boolean;
|
|
25
|
+
errorMessage?: string;
|
|
26
|
+
size?: SelectionFieldSize;
|
|
27
|
+
variant?: SelectionFieldVariant;
|
|
28
|
+
shortcutHint?: string;
|
|
29
|
+
selectTooltip?: string;
|
|
30
|
+
clearTooltip?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
controlClassName?: string;
|
|
33
|
+
labelClassName?: string;
|
|
34
|
+
labelPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
35
|
+
onClear?: () => void;
|
|
36
|
+
}
|
|
37
|
+
export declare function SelectionField({ label, description, value, placeholder, icon, emptyIcon, triggerSlot, clearable, disabled, loading, required, errorMessage, size, variant, shortcutHint, selectTooltip, clearTooltip, className, controlClassName, labelClassName, labelPosition, onClear, onClick, title: triggerTitle, type, ...triggerButtonProps }: SelectionFieldProps): React.JSX.Element;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=SelectionField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectionField.d.ts","sourceRoot":"","sources":["../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AAC,EAAE,qBAAqB,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IACpD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAuDD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,WAAW,EACX,KAAK,EACL,WAAqC,EACrC,IAAI,EACJ,SAAS,EACT,WAAW,EACX,SAAiB,EACjB,QAAgB,EAChB,OAAe,EACf,QAAgB,EAChB,YAAY,EACZ,IAAW,EACX,OAAmB,EACnB,YAAY,EACZ,aAA4B,EAC5B,YAA+B,EAC/B,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,aAAqB,EACrB,OAAO,EACP,OAAO,EACP,KAAK,EAAE,YAAY,EACnB,IAAe,EACf,GAAG,kBAAkB,EACtB,EAAE,mBAAmB,qBAmKrB"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { cn } from '../utils/cn';
|
|
4
|
+
import { controlClasses } from './form-control-helpers';
|
|
5
|
+
import { FieldControl } from './FieldControl';
|
|
6
|
+
import { Search, X } from 'lucide-react';
|
|
7
|
+
const controlSizeClass = {
|
|
8
|
+
xs: '!h-7 !pr-0.5 !py-0 text-xs',
|
|
9
|
+
sm: '!h-9 !pr-1 !py-0 text-sm',
|
|
10
|
+
md: '!h-12 !pr-1.5 !py-0 text-md',
|
|
11
|
+
lg: '!h-14 !pr-2 !py-0 text-base',
|
|
12
|
+
};
|
|
13
|
+
const controlLeadingPaddingClass = {
|
|
14
|
+
xs: '!pl-2',
|
|
15
|
+
sm: '!pl-3',
|
|
16
|
+
md: '!pl-4',
|
|
17
|
+
lg: '!pl-6',
|
|
18
|
+
};
|
|
19
|
+
const controlIconPaddingClass = {
|
|
20
|
+
xs: '!pl-0.5',
|
|
21
|
+
sm: '!pl-1',
|
|
22
|
+
md: '!pl-1.5',
|
|
23
|
+
lg: '!pl-2',
|
|
24
|
+
};
|
|
25
|
+
const controlGapClass = {
|
|
26
|
+
xs: 'gap-0.5',
|
|
27
|
+
sm: 'gap-1',
|
|
28
|
+
md: 'gap-1.5',
|
|
29
|
+
lg: 'gap-2',
|
|
30
|
+
};
|
|
31
|
+
const iconSizeClass = {
|
|
32
|
+
xs: '[&>svg]:size-3.5',
|
|
33
|
+
sm: '[&>svg]:size-4',
|
|
34
|
+
md: '[&>svg]:size-[1.125rem]',
|
|
35
|
+
lg: '[&>svg]:size-5',
|
|
36
|
+
};
|
|
37
|
+
const actionSizeClass = {
|
|
38
|
+
xs: '!size-6 !min-h-6 !min-w-6 !p-0 [&>svg]:size-3.5',
|
|
39
|
+
sm: '!size-7 !min-h-7 !min-w-7 !p-0 [&>svg]:size-4',
|
|
40
|
+
md: '!size-9 !min-h-9 !min-w-9 !p-0 [&>svg]:size-[1.125rem]',
|
|
41
|
+
lg: '!size-10 !min-h-10 !min-w-10 !p-0 [&>svg]:size-5',
|
|
42
|
+
};
|
|
43
|
+
const textGapClass = {
|
|
44
|
+
xs: 'gap-0',
|
|
45
|
+
sm: 'gap-0',
|
|
46
|
+
md: 'gap-1',
|
|
47
|
+
lg: 'gap-1',
|
|
48
|
+
};
|
|
49
|
+
function stopPropagation(event) {
|
|
50
|
+
event.stopPropagation();
|
|
51
|
+
}
|
|
52
|
+
export function SelectionField({ label, description, value, placeholder = 'Selecione um registro', icon, emptyIcon, triggerSlot, clearable = false, disabled = false, loading = false, required = false, errorMessage, size = 'sm', variant = 'default', shortcutHint, selectTooltip = 'Selecionar', clearTooltip = 'Limpar selecao', className, controlClassName, labelClassName, labelPosition = 'top', onClear, onClick, title: triggerTitle, type = 'button', ...triggerButtonProps }) {
|
|
53
|
+
const hasValue = !!value;
|
|
54
|
+
const resolvedIcon = hasValue ? icon : emptyIcon ?? icon;
|
|
55
|
+
const title = value?.title ?? placeholder;
|
|
56
|
+
const subtitle = value?.subtitle;
|
|
57
|
+
const meta = value?.meta;
|
|
58
|
+
const generatedDescriptionId = React.useId().replace(/:/g, '');
|
|
59
|
+
const describedById = description ? `${generatedDescriptionId}-description` : undefined;
|
|
60
|
+
const showClear = clearable && hasValue && !disabled && !loading && !!onClear;
|
|
61
|
+
function handleClear(event) {
|
|
62
|
+
event.stopPropagation();
|
|
63
|
+
onClear?.();
|
|
64
|
+
}
|
|
65
|
+
const triggerClassName = cn('inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-transparent text-foreground-muted transition-colors', 'hover:bg-[color-mix(in_srgb,var(--brand)_10%,transparent)] hover:text-[color-mix(in_srgb,var(--brand)_86%,var(--foreground))]', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/30 disabled:pointer-events-none disabled:opacity-50', actionSizeClass[size]);
|
|
66
|
+
const selectionTrigger = triggerSlot
|
|
67
|
+
? React.cloneElement(triggerSlot, {
|
|
68
|
+
'aria-label': triggerSlot.props['aria-label'] ?? selectTooltip,
|
|
69
|
+
className: cn(triggerClassName, triggerSlot.props.className),
|
|
70
|
+
disabled: disabled || loading || triggerSlot.props.disabled,
|
|
71
|
+
title: triggerSlot.props.title ?? triggerSlot.props.tooltip ?? selectTooltip,
|
|
72
|
+
type: triggerSlot.props.type ?? 'button',
|
|
73
|
+
onClick: triggerSlot.props.onClick,
|
|
74
|
+
})
|
|
75
|
+
: (_jsx("button", { ...triggerButtonProps, type: type, "aria-label": triggerButtonProps['aria-label'] ?? selectTooltip, className: triggerClassName, disabled: disabled || loading, title: triggerTitle ?? selectTooltip, onClick: onClick, children: _jsx(Search, { "aria-hidden": "true" }) }));
|
|
76
|
+
return (_jsx(FieldControl, { label: label, labelClassName: labelClassName, labelPosition: labelPosition, wrapperClassName: className, errorMessage: errorMessage, hasValidation: !!description, size: size, disabled: disabled || loading, children: ({ controlId, describedBy, errorMessage: controlError }) => {
|
|
77
|
+
const ariaDescribedBy = cn(describedBy, describedById);
|
|
78
|
+
return (_jsxs("div", { children: [_jsxs("div", { id: controlId, "aria-describedby": ariaDescribedBy || undefined, "aria-disabled": disabled || loading || undefined, "aria-invalid": !!controlError || undefined, className: controlClasses({
|
|
79
|
+
errorMessage: controlError,
|
|
80
|
+
disabled: disabled || loading,
|
|
81
|
+
variant,
|
|
82
|
+
extra: cn('group flex items-center overflow-hidden', !hasValue && 'border-dashed bg-[color-mix(in_srgb,var(--brand)_5%,var(--surface))]', hasValue && 'bg-surface', disabled || loading ? 'cursor-not-allowed' : 'cursor-default', size === 'lg' ? 'rounded-lg' : 'rounded-md', controlSizeClass[size], controlGapClass[size], resolvedIcon ? controlIconPaddingClass[size] : controlLeadingPaddingClass[size], controlClassName),
|
|
83
|
+
}), "data-empty": !hasValue || undefined, "data-loading": loading || undefined, children: [resolvedIcon ? (_jsx("span", { className: cn('inline-flex shrink-0 items-center justify-center rounded-md text-foreground-muted', !hasValue && 'text-[color-mix(in_srgb,var(--brand)_72%,var(--foreground-muted))]', actionSizeClass[size], iconSizeClass[size]), "aria-hidden": "true", children: resolvedIcon })) : null, _jsxs("div", { className: cn('min-w-0 flex-1 text-left', textGapClass[size]), children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsxs("span", { className: cn('min-w-0 truncate font-semibold', hasValue ? 'text-foreground' : 'text-foreground-muted'), children: [title, required && !hasValue ? _jsx("span", { "aria-hidden": "true", children: " *" }) : null] }), meta ? (_jsx("span", { className: "border-app-border bg-background text-foreground-muted shrink-0 rounded border px-1.5 py-0.5 font-mono text-[0.65rem] leading-none", children: meta })) : null] }), subtitle ? (_jsx("p", { className: cn('text-foreground-muted truncate text-xs font-medium', (size === 'xs' || size === 'sm') && 'sr-only'), children: subtitle })) : null] }), shortcutHint ? (_jsx("kbd", { className: "border-app-border bg-background text-foreground-muted hidden shrink-0 rounded border px-1.5 py-1 font-mono text-[0.65rem] leading-none sm:inline-flex", children: shortcutHint })) : null, showClear ? (_jsx("button", { type: "button", "aria-label": clearTooltip, className: cn('inline-flex cursor-pointer shrink-0 items-center justify-center rounded-md border border-transparent bg-transparent text-foreground-muted transition-colors', 'hover:bg-[color-mix(in_srgb,var(--destructive)_10%,transparent)] hover:text-[var(--destructive)]', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--destructive)]/25', actionSizeClass[size]), title: clearTooltip, onClick: handleClear, children: _jsx(X, { "aria-hidden": "true" }) })) : null, _jsx("span", { onClick: stopPropagation, children: selectionTrigger })] }), description ? (_jsx("p", { id: describedById, className: "mt-1 text-xs font-medium text-foreground-muted", children: description })) : null] }));
|
|
84
|
+
} }));
|
|
85
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export { RenderCase, type RenderCaseChildProps, type RenderCaseRootProps } from
|
|
|
18
18
|
export { RenderIf, type RenderIfProps } from './components/RenderIf';
|
|
19
19
|
export { SelectField, type SelectFieldProps, type ValidValues } from './components/SelectField';
|
|
20
20
|
export { SearchField, type SearchFieldProps } from './components/SearchField';
|
|
21
|
+
export { SelectionField, type SelectionDisplayValue, type SelectionFieldProps, type SelectionFieldSize, type SelectionFieldVariant, } from './components/SelectionField';
|
|
21
22
|
export { Switch, type SwitchProps } from './components/Switch';
|
|
22
23
|
export { TextareaField, type TextareaFieldProps } from './components/TextareaField';
|
|
23
24
|
export { DateField, type DateFieldProps } from './components/DateField';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAChC,OAAO,EACL,QAAQ,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B,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,WAAW,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC9G,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,7 @@ export { RenderCase } from './components/RenderCase';
|
|
|
18
18
|
export { RenderIf } from './components/RenderIf';
|
|
19
19
|
export { SelectField } from './components/SelectField';
|
|
20
20
|
export { SearchField } from './components/SearchField';
|
|
21
|
+
export { SelectionField, } from './components/SelectionField';
|
|
21
22
|
export { Switch } from './components/Switch';
|
|
22
23
|
export { TextareaField } from './components/TextareaField';
|
|
23
24
|
export { DateField } from './components/DateField';
|
package/dist/styles.css
CHANGED
|
@@ -607,6 +607,7 @@ h2.react-datepicker__current-month {
|
|
|
607
607
|
--container-sm: 24rem;
|
|
608
608
|
--container-md: 28rem;
|
|
609
609
|
--container-lg: 32rem;
|
|
610
|
+
--container-xl: 36rem;
|
|
610
611
|
--text-xs: 0.75rem;
|
|
611
612
|
--text-xs--line-height: calc(1 / 0.75);
|
|
612
613
|
--text-sm: 0.875rem;
|
|
@@ -1068,6 +1069,22 @@ h2.react-datepicker__current-month {
|
|
|
1068
1069
|
.table {
|
|
1069
1070
|
display: table;
|
|
1070
1071
|
}
|
|
1072
|
+
.\!size-6 {
|
|
1073
|
+
width: calc(var(--spacing) * 6) !important;
|
|
1074
|
+
height: calc(var(--spacing) * 6) !important;
|
|
1075
|
+
}
|
|
1076
|
+
.\!size-7 {
|
|
1077
|
+
width: calc(var(--spacing) * 7) !important;
|
|
1078
|
+
height: calc(var(--spacing) * 7) !important;
|
|
1079
|
+
}
|
|
1080
|
+
.\!size-9 {
|
|
1081
|
+
width: calc(var(--spacing) * 9) !important;
|
|
1082
|
+
height: calc(var(--spacing) * 9) !important;
|
|
1083
|
+
}
|
|
1084
|
+
.\!size-10 {
|
|
1085
|
+
width: calc(var(--spacing) * 10) !important;
|
|
1086
|
+
height: calc(var(--spacing) * 10) !important;
|
|
1087
|
+
}
|
|
1071
1088
|
.size-3 {
|
|
1072
1089
|
width: calc(var(--spacing) * 3);
|
|
1073
1090
|
height: calc(var(--spacing) * 3);
|
|
@@ -1108,6 +1125,18 @@ h2.react-datepicker__current-month {
|
|
|
1108
1125
|
width: calc(var(--spacing) * 14);
|
|
1109
1126
|
height: calc(var(--spacing) * 14);
|
|
1110
1127
|
}
|
|
1128
|
+
.\!h-7 {
|
|
1129
|
+
height: calc(var(--spacing) * 7) !important;
|
|
1130
|
+
}
|
|
1131
|
+
.\!h-9 {
|
|
1132
|
+
height: calc(var(--spacing) * 9) !important;
|
|
1133
|
+
}
|
|
1134
|
+
.\!h-12 {
|
|
1135
|
+
height: calc(var(--spacing) * 12) !important;
|
|
1136
|
+
}
|
|
1137
|
+
.\!h-14 {
|
|
1138
|
+
height: calc(var(--spacing) * 14) !important;
|
|
1139
|
+
}
|
|
1111
1140
|
.h-1\.5 {
|
|
1112
1141
|
height: calc(var(--spacing) * 1.5);
|
|
1113
1142
|
}
|
|
@@ -1201,6 +1230,18 @@ h2.react-datepicker__current-month {
|
|
|
1201
1230
|
.max-h-\[calc\(100vh-12rem\)\] {
|
|
1202
1231
|
max-height: calc(100vh - 12rem);
|
|
1203
1232
|
}
|
|
1233
|
+
.\!min-h-6 {
|
|
1234
|
+
min-height: calc(var(--spacing) * 6) !important;
|
|
1235
|
+
}
|
|
1236
|
+
.\!min-h-7 {
|
|
1237
|
+
min-height: calc(var(--spacing) * 7) !important;
|
|
1238
|
+
}
|
|
1239
|
+
.\!min-h-9 {
|
|
1240
|
+
min-height: calc(var(--spacing) * 9) !important;
|
|
1241
|
+
}
|
|
1242
|
+
.\!min-h-10 {
|
|
1243
|
+
min-height: calc(var(--spacing) * 10) !important;
|
|
1244
|
+
}
|
|
1204
1245
|
.min-h-0 {
|
|
1205
1246
|
min-height: calc(var(--spacing) * 0);
|
|
1206
1247
|
}
|
|
@@ -1393,9 +1434,24 @@ h2.react-datepicker__current-month {
|
|
|
1393
1434
|
.max-w-sm {
|
|
1394
1435
|
max-width: var(--container-sm);
|
|
1395
1436
|
}
|
|
1437
|
+
.max-w-xl {
|
|
1438
|
+
max-width: var(--container-xl);
|
|
1439
|
+
}
|
|
1396
1440
|
.max-w-xs {
|
|
1397
1441
|
max-width: var(--container-xs);
|
|
1398
1442
|
}
|
|
1443
|
+
.\!min-w-6 {
|
|
1444
|
+
min-width: calc(var(--spacing) * 6) !important;
|
|
1445
|
+
}
|
|
1446
|
+
.\!min-w-7 {
|
|
1447
|
+
min-width: calc(var(--spacing) * 7) !important;
|
|
1448
|
+
}
|
|
1449
|
+
.\!min-w-9 {
|
|
1450
|
+
min-width: calc(var(--spacing) * 9) !important;
|
|
1451
|
+
}
|
|
1452
|
+
.\!min-w-10 {
|
|
1453
|
+
min-width: calc(var(--spacing) * 10) !important;
|
|
1454
|
+
}
|
|
1399
1455
|
.min-w-0 {
|
|
1400
1456
|
min-width: calc(var(--spacing) * 0);
|
|
1401
1457
|
}
|
|
@@ -1496,6 +1552,9 @@ h2.react-datepicker__current-month {
|
|
|
1496
1552
|
.animate-pulse {
|
|
1497
1553
|
animation: var(--animate-pulse);
|
|
1498
1554
|
}
|
|
1555
|
+
.cursor-default {
|
|
1556
|
+
cursor: default;
|
|
1557
|
+
}
|
|
1499
1558
|
.cursor-not-allowed {
|
|
1500
1559
|
cursor: not-allowed;
|
|
1501
1560
|
}
|
|
@@ -1822,6 +1881,12 @@ h2.react-datepicker__current-month {
|
|
|
1822
1881
|
.\!bg-transparent {
|
|
1823
1882
|
background-color: transparent !important;
|
|
1824
1883
|
}
|
|
1884
|
+
.bg-\[color-mix\(in_srgb\,var\(--brand\)_5\%\,var\(--surface\)\)\] {
|
|
1885
|
+
background-color: var(--brand);
|
|
1886
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1887
|
+
background-color: color-mix(in srgb,var(--brand) 5%,var(--surface));
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1825
1890
|
.bg-\[color-mix\(in_srgb\,var\(--brand\)_10\%\,var\(--surface\)\)\] {
|
|
1826
1891
|
background-color: var(--brand);
|
|
1827
1892
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1993,6 +2058,9 @@ h2.react-datepicker__current-month {
|
|
|
1993
2058
|
.fill-surface {
|
|
1994
2059
|
fill: var(--color-surface);
|
|
1995
2060
|
}
|
|
2061
|
+
.\!p-0 {
|
|
2062
|
+
padding: calc(var(--spacing) * 0) !important;
|
|
2063
|
+
}
|
|
1996
2064
|
.p-0 {
|
|
1997
2065
|
padding: calc(var(--spacing) * 0);
|
|
1998
2066
|
}
|
|
@@ -2044,6 +2112,9 @@ h2.react-datepicker__current-month {
|
|
|
2044
2112
|
.px-6 {
|
|
2045
2113
|
padding-inline: calc(var(--spacing) * 6);
|
|
2046
2114
|
}
|
|
2115
|
+
.\!py-0 {
|
|
2116
|
+
padding-block: calc(var(--spacing) * 0) !important;
|
|
2117
|
+
}
|
|
2047
2118
|
.py-0 {
|
|
2048
2119
|
padding-block: calc(var(--spacing) * 0);
|
|
2049
2120
|
}
|
|
@@ -2086,6 +2157,18 @@ h2.react-datepicker__current-month {
|
|
|
2086
2157
|
.pt-5 {
|
|
2087
2158
|
padding-top: calc(var(--spacing) * 5);
|
|
2088
2159
|
}
|
|
2160
|
+
.\!pr-0\.5 {
|
|
2161
|
+
padding-right: calc(var(--spacing) * 0.5) !important;
|
|
2162
|
+
}
|
|
2163
|
+
.\!pr-1 {
|
|
2164
|
+
padding-right: calc(var(--spacing) * 1) !important;
|
|
2165
|
+
}
|
|
2166
|
+
.\!pr-1\.5 {
|
|
2167
|
+
padding-right: calc(var(--spacing) * 1.5) !important;
|
|
2168
|
+
}
|
|
2169
|
+
.\!pr-2 {
|
|
2170
|
+
padding-right: calc(var(--spacing) * 2) !important;
|
|
2171
|
+
}
|
|
2089
2172
|
.pr-1 {
|
|
2090
2173
|
padding-right: calc(var(--spacing) * 1);
|
|
2091
2174
|
}
|
|
@@ -2110,6 +2193,27 @@ h2.react-datepicker__current-month {
|
|
|
2110
2193
|
.pb-4 {
|
|
2111
2194
|
padding-bottom: calc(var(--spacing) * 4);
|
|
2112
2195
|
}
|
|
2196
|
+
.\!pl-0\.5 {
|
|
2197
|
+
padding-left: calc(var(--spacing) * 0.5) !important;
|
|
2198
|
+
}
|
|
2199
|
+
.\!pl-1 {
|
|
2200
|
+
padding-left: calc(var(--spacing) * 1) !important;
|
|
2201
|
+
}
|
|
2202
|
+
.\!pl-1\.5 {
|
|
2203
|
+
padding-left: calc(var(--spacing) * 1.5) !important;
|
|
2204
|
+
}
|
|
2205
|
+
.\!pl-2 {
|
|
2206
|
+
padding-left: calc(var(--spacing) * 2) !important;
|
|
2207
|
+
}
|
|
2208
|
+
.\!pl-3 {
|
|
2209
|
+
padding-left: calc(var(--spacing) * 3) !important;
|
|
2210
|
+
}
|
|
2211
|
+
.\!pl-4 {
|
|
2212
|
+
padding-left: calc(var(--spacing) * 4) !important;
|
|
2213
|
+
}
|
|
2214
|
+
.\!pl-6 {
|
|
2215
|
+
padding-left: calc(var(--spacing) * 6) !important;
|
|
2216
|
+
}
|
|
2113
2217
|
.pl-4 {
|
|
2114
2218
|
padding-left: calc(var(--spacing) * 4);
|
|
2115
2219
|
}
|
|
@@ -2177,6 +2281,9 @@ h2.react-datepicker__current-month {
|
|
|
2177
2281
|
font-size: var(--text-xs);
|
|
2178
2282
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
2179
2283
|
}
|
|
2284
|
+
.text-\[0\.65rem\] {
|
|
2285
|
+
font-size: 0.65rem;
|
|
2286
|
+
}
|
|
2180
2287
|
.text-\[0\.625rem\] {
|
|
2181
2288
|
font-size: 0.625rem;
|
|
2182
2289
|
}
|
|
@@ -2299,6 +2406,12 @@ h2.react-datepicker__current-month {
|
|
|
2299
2406
|
color: color-mix(in srgb,var(--brand) 72%,var(--foreground));
|
|
2300
2407
|
}
|
|
2301
2408
|
}
|
|
2409
|
+
.text-\[color-mix\(in_srgb\,var\(--brand\)_72\%\,var\(--foreground-muted\)\)\] {
|
|
2410
|
+
color: var(--brand);
|
|
2411
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2412
|
+
color: color-mix(in srgb,var(--brand) 72%,var(--foreground-muted));
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2302
2415
|
.text-\[color-mix\(in_srgb\,var\(--brand\)_82\%\,var\(--foreground\)\)\] {
|
|
2303
2416
|
color: var(--brand);
|
|
2304
2417
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -2865,6 +2978,16 @@ h2.react-datepicker__current-month {
|
|
|
2865
2978
|
}
|
|
2866
2979
|
}
|
|
2867
2980
|
}
|
|
2981
|
+
.hover\:bg-\[color-mix\(in_srgb\,var\(--destructive\)_10\%\,transparent\)\] {
|
|
2982
|
+
&:hover {
|
|
2983
|
+
@media (hover: hover) {
|
|
2984
|
+
background-color: var(--destructive);
|
|
2985
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2986
|
+
background-color: color-mix(in srgb,var(--destructive) 10%,transparent);
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2868
2991
|
.hover\:bg-\[color-mix\(in_srgb\,var\(--destructive\)_12\%\,transparent\)\] {
|
|
2869
2992
|
&:hover {
|
|
2870
2993
|
@media (hover: hover) {
|
|
@@ -3022,6 +3145,13 @@ h2.react-datepicker__current-month {
|
|
|
3022
3145
|
}
|
|
3023
3146
|
}
|
|
3024
3147
|
}
|
|
3148
|
+
.hover\:text-\[var\(--destructive\)\] {
|
|
3149
|
+
&:hover {
|
|
3150
|
+
@media (hover: hover) {
|
|
3151
|
+
color: var(--destructive);
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3025
3155
|
.hover\:text-amber-700 {
|
|
3026
3156
|
&:hover {
|
|
3027
3157
|
@media (hover: hover) {
|
|
@@ -3186,6 +3316,14 @@ h2.react-datepicker__current-month {
|
|
|
3186
3316
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
3187
3317
|
}
|
|
3188
3318
|
}
|
|
3319
|
+
.focus-visible\:ring-\[var\(--destructive\)\]\/25 {
|
|
3320
|
+
&:focus-visible {
|
|
3321
|
+
--tw-ring-color: var(--destructive);
|
|
3322
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3323
|
+
--tw-ring-color: color-mix(in oklab, var(--destructive) 25%, transparent);
|
|
3324
|
+
}
|
|
3325
|
+
}
|
|
3326
|
+
}
|
|
3189
3327
|
.focus-visible\:ring-brand\/30 {
|
|
3190
3328
|
&:focus-visible {
|
|
3191
3329
|
--tw-ring-color: var(--color-brand);
|
|
@@ -3496,6 +3634,11 @@ h2.react-datepicker__current-month {
|
|
|
3496
3634
|
min-width: 6.75rem;
|
|
3497
3635
|
}
|
|
3498
3636
|
}
|
|
3637
|
+
.sm\:inline-flex {
|
|
3638
|
+
@media (width >= 40rem) {
|
|
3639
|
+
display: inline-flex;
|
|
3640
|
+
}
|
|
3641
|
+
}
|
|
3499
3642
|
.sm\:flex-row {
|
|
3500
3643
|
@media (width >= 40rem) {
|
|
3501
3644
|
flex-direction: row;
|