@declarion/react 0.302.0 → 0.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/primitives/Pill.js +20 -13
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.js +52 -52
- package/package.json +1 -1
|
@@ -22,33 +22,40 @@ function o(e) {
|
|
|
22
22
|
return e.startsWith("#") ? `color-mix(in srgb, ${e} var(--pill-hex-bg-mix), transparent)` : `var(--pill-${e}-bg)`;
|
|
23
23
|
}
|
|
24
24
|
function s(e) {
|
|
25
|
-
|
|
25
|
+
let t = i(e);
|
|
26
|
+
return {
|
|
27
|
+
"--pill-tone": a(t),
|
|
28
|
+
"--pill-tone-bg": o(t)
|
|
29
|
+
};
|
|
26
30
|
}
|
|
27
|
-
function c(
|
|
28
|
-
|
|
31
|
+
function c(e) {
|
|
32
|
+
return e == null || e === !1 || e === "" ? !1 : !Array.isArray(e) || e.some((e) => c(e));
|
|
33
|
+
}
|
|
34
|
+
function l({ tone: n = "slate", children: r, size: s = "sm", dot: l = !1, style: u }) {
|
|
35
|
+
let d = i(n), f = o(d), p = a(d);
|
|
29
36
|
return /* @__PURE__ */ t("span", {
|
|
30
37
|
className: "num",
|
|
31
38
|
style: {
|
|
32
39
|
display: "inline-flex",
|
|
33
40
|
alignItems: "center",
|
|
34
41
|
gap: 6,
|
|
35
|
-
height:
|
|
36
|
-
padding: `0 ${
|
|
42
|
+
height: s === "sm" ? 20 : s === "xs" ? 16 : 24,
|
|
43
|
+
padding: `0 ${s === "xs" ? 6 : 8}px`,
|
|
37
44
|
borderRadius: 999,
|
|
38
|
-
background:
|
|
39
|
-
color:
|
|
40
|
-
fontSize:
|
|
45
|
+
background: f,
|
|
46
|
+
color: p,
|
|
47
|
+
fontSize: s === "xs" ? 10.5 : 11.5,
|
|
41
48
|
fontWeight: 500,
|
|
42
49
|
whiteSpace: "nowrap",
|
|
43
50
|
maxWidth: "100%",
|
|
44
|
-
...
|
|
51
|
+
...u
|
|
45
52
|
},
|
|
46
|
-
children: [
|
|
53
|
+
children: [l && /* @__PURE__ */ e("span", { style: {
|
|
47
54
|
width: 6,
|
|
48
55
|
height: 6,
|
|
49
56
|
borderRadius: 999,
|
|
50
|
-
background:
|
|
51
|
-
} }),
|
|
57
|
+
background: p
|
|
58
|
+
} }), c(r) && /* @__PURE__ */ e("span", {
|
|
52
59
|
style: {
|
|
53
60
|
minWidth: 0,
|
|
54
61
|
overflow: "hidden",
|
|
@@ -59,4 +66,4 @@ function c({ tone: n = "slate", children: r, size: i = "sm", dot: c = !1, style:
|
|
|
59
66
|
})]
|
|
60
67
|
});
|
|
61
68
|
}
|
|
62
|
-
export { n as PILL_TONES,
|
|
69
|
+
export { n as PILL_TONES, l as Pill, i as pillColor, a as pillForeground, s as pillToneStyle };
|
package/dist-lib/index.d.ts
CHANGED
|
@@ -216,6 +216,7 @@ type PillTone = (typeof PILL_TONES)[number];
|
|
|
216
216
|
type PillColor = PillTone | `#${string}`;
|
|
217
217
|
export declare function pillColor(color: string | null | undefined): PillColor;
|
|
218
218
|
export declare function pillForeground(color: PillColor): string;
|
|
219
|
+
export declare function pillToneStyle(color: string | null | undefined): CSSProperties;
|
|
219
220
|
type PillSize = "xs" | "sm" | "md";
|
|
220
221
|
type PillProps = {
|
|
221
222
|
tone?: PillColor;
|
package/dist-lib/index.js
CHANGED
|
@@ -81,55 +81,55 @@ import { ChangePasswordDialog as At } from "./components/shared/ChangePasswordDi
|
|
|
81
81
|
import { Icon as jt } from "./components/primitives/Icons.js";
|
|
82
82
|
import { Btn as Mt } from "./components/primitives/Btn.js";
|
|
83
83
|
import { IconBtn as Nt } from "./components/primitives/IconBtn.js";
|
|
84
|
-
import { PILL_TONES as Pt, Pill as Ft, pillColor as It, pillForeground as Lt } from "./components/primitives/Pill.js";
|
|
85
|
-
import { Kbd as
|
|
86
|
-
import { Avatar as
|
|
87
|
-
import { BrandGlyph as
|
|
88
|
-
import { Dropdown as
|
|
89
|
-
import { HoverCard as
|
|
90
|
-
import { InfoTooltip as
|
|
91
|
-
import { Chip as
|
|
92
|
-
import { SectionCard as
|
|
93
|
-
import { StatTile as
|
|
94
|
-
import { RecordIdBadge as
|
|
95
|
-
import { RowField as
|
|
96
|
-
import { BoolToggle as
|
|
97
|
-
import { MenuItem as
|
|
98
|
-
import { Check as
|
|
99
|
-
import { Spinner as
|
|
100
|
-
import { DateInput as
|
|
101
|
-
import { SquareImage as
|
|
102
|
-
import { CircleImage as
|
|
103
|
-
import { WideBanner as
|
|
104
|
-
import { getFileWidget as
|
|
105
|
-
import { UploadError as
|
|
106
|
-
import { getImageCropper as
|
|
107
|
-
import { FileDraftScope as
|
|
108
|
-
import { fileSelectionReducer as
|
|
109
|
-
import { Rail as
|
|
110
|
-
import { Sidebar as
|
|
111
|
-
import { TopBar as
|
|
112
|
-
import { TenantChip as
|
|
113
|
-
import { TabStrip as
|
|
114
|
-
import { ImpersonationBanner as
|
|
115
|
-
import { ImpersonationFrame as
|
|
116
|
-
import { ImpersonationStartModal as
|
|
117
|
-
import { useImpersonation as
|
|
118
|
-
import { CommandPalette as
|
|
119
|
-
import { AgentChatPanel as
|
|
120
|
-
import { AgentElicitForm as
|
|
121
|
-
import { AgentPicker as
|
|
122
|
-
import { AgentConversationDrawer as
|
|
123
|
-
import { useAgentConversation as
|
|
124
|
-
import { answerQuestion as
|
|
125
|
-
import { Breadcrumbs as
|
|
126
|
-
import { NO_VALUE_OPS as
|
|
127
|
-
import { evaluateFilterTree as
|
|
128
|
-
import { commonVariantActionCodes as
|
|
129
|
-
import { formatCount as
|
|
130
|
-
import { buildMassEditTargets as
|
|
131
|
-
import { MULTIPLE_VALUES as
|
|
132
|
-
import { ClassifiedFieldLocked as
|
|
133
|
-
import { classificationTier as
|
|
134
|
-
import { useLocation as
|
|
135
|
-
export { te as ACTION_DATA_CURSOR_KEY, ne as ACTION_DATA_KEY, E as ActionBatchError, pt as ActionRunnerProvider,
|
|
84
|
+
import { PILL_TONES as Pt, Pill as Ft, pillColor as It, pillForeground as Lt, pillToneStyle as Rt } from "./components/primitives/Pill.js";
|
|
85
|
+
import { Kbd as zt } from "./components/primitives/Kbd.js";
|
|
86
|
+
import { Avatar as Bt } from "./components/primitives/Avatar.js";
|
|
87
|
+
import { BrandGlyph as Vt } from "./components/primitives/BrandGlyph.js";
|
|
88
|
+
import { Dropdown as Ht } from "./components/primitives/Dropdown.js";
|
|
89
|
+
import { HoverCard as Ut } from "./components/primitives/HoverCard.js";
|
|
90
|
+
import { InfoTooltip as Wt, Tooltip as Gt } from "./components/primitives/Tooltip.js";
|
|
91
|
+
import { Chip as Kt } from "./components/primitives/Chip.js";
|
|
92
|
+
import { SectionCard as qt } from "./components/primitives/SectionCard.js";
|
|
93
|
+
import { StatTile as Jt } from "./components/primitives/StatTile.js";
|
|
94
|
+
import { RecordIdBadge as Yt } from "./components/primitives/RecordIdBadge.js";
|
|
95
|
+
import { RowField as Xt } from "./components/primitives/RowField.js";
|
|
96
|
+
import { BoolToggle as Zt } from "./components/primitives/BoolToggle.js";
|
|
97
|
+
import { MenuItem as Qt } from "./components/primitives/MenuItem.js";
|
|
98
|
+
import { Check as $t } from "./components/primitives/Check.js";
|
|
99
|
+
import { Spinner as en } from "./components/primitives/Spinner.js";
|
|
100
|
+
import { DateInput as tn, FieldLabel as nn, JsonField as rn, MultiSelect as an, PasswordInput as on, QuickEditCell as sn, RefField as cn, Select as ln, TagsInput as un, TextArea as dn, TextInput as fn, ViewField as pn } from "./components/primitives/Fields.js";
|
|
101
|
+
import { SquareImage as mn } from "./components/file-widgets/SquareImage.js";
|
|
102
|
+
import { CircleImage as hn } from "./components/file-widgets/CircleImage.js";
|
|
103
|
+
import { WideBanner as gn } from "./components/file-widgets/WideBanner.js";
|
|
104
|
+
import { getFileWidget as _n, hasFileWidget as vn, registerFileWidget as yn } from "./components/file-widgets/registry.js";
|
|
105
|
+
import { UploadError as bn, discardFile as xn, formatBytes as Sn, uploadFile as Cn, validateClientSide as wn } from "./components/file-widgets/upload.js";
|
|
106
|
+
import { getImageCropper as Tn, setImageCropper as En } from "./components/file-widgets/cropper.js";
|
|
107
|
+
import { FileDraftScope as Dn, useDraftRegistration as On, useFileDraftScope as kn } from "./components/file-widgets/draft-scope.js";
|
|
108
|
+
import { fileSelectionReducer as An, summarizeFileSelections as jn, useFileSelection as Mn } from "./components/file-widgets/useFileSelection.js";
|
|
109
|
+
import { Rail as Nn } from "./components/layout/Rail.js";
|
|
110
|
+
import { Sidebar as Pn, buildSections as Fn } from "./components/layout/Sidebar.js";
|
|
111
|
+
import { TopBar as In } from "./components/layout/TopBar.js";
|
|
112
|
+
import { TenantChip as Ln, envTone as Rn } from "./components/layout/TenantChip.js";
|
|
113
|
+
import { TabStrip as zn } from "./components/layout/TabStrip.js";
|
|
114
|
+
import { ImpersonationBanner as Bn } from "./components/layout/ImpersonationBanner.js";
|
|
115
|
+
import { ImpersonationFrame as Vn } from "./components/layout/ImpersonationFrame.js";
|
|
116
|
+
import { ImpersonationStartModal as Hn } from "./components/layout/ImpersonationStartModal.js";
|
|
117
|
+
import { useImpersonation as Un } from "./hooks/useImpersonation.js";
|
|
118
|
+
import { CommandPalette as Wn } from "./components/layout/CommandPalette.js";
|
|
119
|
+
import { AgentChatPanel as Gn } from "./components/agents/AgentChatPanel.js";
|
|
120
|
+
import { AgentElicitForm as Kn } from "./components/agents/AgentElicitForm.js";
|
|
121
|
+
import { AgentPicker as qn } from "./components/agents/AgentPicker.js";
|
|
122
|
+
import { AgentConversationDrawer as Jn } from "./components/agents/AgentConversationDrawer.js";
|
|
123
|
+
import { useAgentConversation as Yn } from "./hooks/useAgentConversation.js";
|
|
124
|
+
import { answerQuestion as Xn, approveInvocation as Zn, cancelConversation as Qn, cancelInvocation as $n, createConversation as er, listAvailableAgents as tr, listConversations as nr, loadConversationInvocations as rr, loadConversationTurns as ir, loadHistory as ar, rejectInvocation as or, sendElicitResponse as sr, sendMessage as cr } from "./api/agents.js";
|
|
125
|
+
import { Breadcrumbs as lr } from "./components/chrome/Breadcrumbs.js";
|
|
126
|
+
import { NO_VALUE_OPS as ur, OP_LABELS as dr, countActiveFilters as fr, hasOrGroups as pr, parseFilterURLState as mr, parseFiltersFromURL as hr, setFiltersInURL as gr } from "./lib/filters.js";
|
|
127
|
+
import { evaluateFilterTree as _r } from "./lib/filter-evaluator.js";
|
|
128
|
+
import { commonVariantActionCodes as vr, effectiveScreenForRecord as yr, resolveEntityVariantCode as br, resolveScreenVariantCode as xr, variantActionCodesForRecord as Sr } from "./lib/variants.js";
|
|
129
|
+
import { formatCount as Cr, formatEstimatedCount as wr, formatExactCount as Tr } from "./lib/format-count.js";
|
|
130
|
+
import { buildMassEditTargets as Er, parseTargetFilter as Dr } from "./lib/mass-edit.js";
|
|
131
|
+
import { MULTIPLE_VALUES as Or, PropertyGridEditor as kr, detectCommonValue as Ar } from "./components/actions/PropertyGridEditor.js";
|
|
132
|
+
import { ClassifiedFieldLocked as jr } from "./components/primitives/ClassifiedFieldLocked.js";
|
|
133
|
+
import { classificationTier as Mr, fieldAccessInfo as Nr, fieldClassification as Pr, fieldRequiredPermission as Fr, isFieldReadable as Ir, isFieldSoDProtected as Lr, isFieldWritable as Rr } from "./lib/field-classification.js";
|
|
134
|
+
import { useLocation as zr, useNavigate as Br, useParams as Vr, useSearchParams as Hr } from "react-router";
|
|
135
|
+
export { te as ACTION_DATA_CURSOR_KEY, ne as ACTION_DATA_KEY, E as ActionBatchError, pt as ActionRunnerProvider, Gn as AgentChatPanel, Jn as AgentConversationDrawer, Kn as AgentElicitForm, qn as AgentPicker, e as App, Dt as AuthShell, Bt as Avatar, j as Batch, Zt as BoolToggle, Vt as BrandGlyph, lr as Breadcrumbs, Mt as Btn, p as CURSOR_LANGUAGE_CHANGED, m as CURSOR_SEMANTICS_MISMATCH, At as ChangePasswordDialog, $t as Check, Kt as Chip, hn as CircleImage, jr as ClassifiedFieldLocked, dt as ColumnPicker, Wn as CommandPalette, ct as ConfirmDialog, R as CurrentScreenProvider, pe as DEFAULT_RESPONSIVE_BREAKPOINTS, tn as DateInput, e as Declarion, Ht as Dropdown, at as DynamicIcon, st as EmptyState, C as EntityClient, nn as FieldLabel, Dn as FileDraftScope, ut as FilterChips, lt as FilterDrawer, wt as Forgot, Ut as HoverCard, jt as Icon, Nt as IconBtn, Bn as ImpersonationBanner, Vn as ImpersonationFrame, Hn as ImpersonationStartModal, Wt as InfoTooltip, xt as InlineEditCell, rn as JsonField, zt as Kbd, Fe as MANDATORY_LANGUAGE, Or as MULTIPLE_VALUES, Qt as MenuItem, an as MultiSelect, ur as NO_VALUE_OPS, dr as OP_LABELS, ht as ObjectActionBar, t as OrderedMap, Je as PAGE_STATE_TTL_PARAM, Pt as PILL_TONES, ot as PageHeader, on as PasswordInput, Ft as Pill, kt as Preferences, Ot as Profile, kr as PropertyGridEditor, yt as QEField, sn as QuickEditCell, bt as QuickPeek, Nn as Rail, Yt as RecordIdBadge, w as RefCache, vt as RefCombobox, cn as RefField, _t as RefreshControl, Tt as Reset, de as ResponsiveModeProvider, Xt as RowField, Qe as SCROLL_STATE_KEY, qt as SectionCard, ln as Select, Pn as Sidebar, St as SignIn, Ct as SignUp, rt as SmartDetailPage, nt as SmartListPage, it as SmartRecordListPage, en as Spinner, mn as SquareImage, Jt as StatTile, $ as StructureField, zn as TabStrip, un as TagsInput, Ln as TenantChip, dn as TextArea, fn as TextInput, Gt as Tooltip, In as TopBar, Et as TwoFA, bn as UploadError, pn as ViewField, ft as ViewSwitcher, gn as WideBanner, re as actionDataQueryKey, Xn as answerQuestion, Zn as approveInvocation, D as buildActionBody, n as buildDetailHrefFromId, r as buildEntityDetailHref, Er as buildMassEditTargets, i as buildRowDetailHref, Fn as buildSections, Qn as cancelConversation, $n as cancelInvocation, Ke as canonicalUrl, Mr as classificationTier, _ as coerceDisplayString, vr as commonVariantActionCodes, fr as countActiveFilters, er as createConversation, ie as cursorActionDataQueryKey, G as cursorEntityDataQueryKey, K as cursorEntityStableKey, O as deleteObject, Ar as detectCommonValue, xn as discardFile, v as editorWallClock, y as editorWireValue, yr as effectiveScreenForRecord, T as entityClient, V as entityDataQueryKey, Rn as envTone, h as errorCodeOf, _r as evaluateFilterTree, k as executeAction, a as extractPkValues, Be as failureTitle, Nr as fieldAccessInfo, Pr as fieldClassification, o as fieldDisplayName, Fr as fieldRequiredPermission, Z as fileReferenceJSONQueryKey, An as fileSelectionReducer, Sn as formatBytes, Cr as formatCount, wr as formatEstimatedCount, Tr as formatExactCount, S as formatMoneyText, b as formatOffsetTimestamp, _n as getFileWidget, Ee as getIcon, Tn as getImageCropper, Oe as getLayoutWidget, s as getPrimaryKeyFields, vn as hasFileWidget, ke as hasLayoutWidget, pr as hasOrGroups, g as isCursorStaleError, Ir as isFieldReadable, Lr as isFieldSoDProtected, Rr as isFieldWritable, tr as listAvailableAgents, nr as listConversations, rr as loadConversationInvocations, ir as loadConversationTurns, ar as loadHistory, Ie as makeTextFn, Y as objectQueryKey, mr as parseFilterURLState, hr as parseFiltersFromURL, Dr as parseTargetFilter, Le as pickLocalized, It as pillColor, Lt as pillForeground, Rt as pillToneStyle, c as pkValuePartsToId, l as pkValuesFromId, u as pkValuesToDetailId, d as pkValuesToId, Re as pluralText, Ve as readDisplayState, yn as registerFileWidget, Ae as registerLayoutWidget, Te as registerScreen, or as rejectInvocation, je as reresolveLanguage, f as resolveDetailRoute, br as resolveEntityVariantCode, xr as resolveScreenVariantCode, me as resolveViewportCategory, A as restoreObject, sr as sendElicitResponse, cr as sendMessage, gr as setFiltersInURL, De as setIconRegistry, En as setImageCropper, jn as summarizeFileSelections, ze as textWithNodes, Cn as uploadFile, ae as useActionData, mt as useActionRunner, Yn as useAgentConversation, W as useAggregate, J as useAllEntityData, B as useAuth, Ce as useColumns, se as useCreateObject, z as useCurrentScreen, oe as useCursorActionData, q as useCursorEntityData, ue as useDebounce, N as useDeclaredEnum, P as useDeclaredField, F as useDeclaredStatuses, ce as useDeleteObject, be as useDeleteProperty, Me as useDeploymentLanguage, On as useDraftRegistration, he as useEffectiveParam, I as useEntity, H as useEntityCount, U as useEntityData, kn as useFileDraftScope, Q as useFileReferenceJSON, Mn as useFileSelection, Se as useFilters, Un as useImpersonation, Ne as useLanguage, ee as useLiveObject, zr as useLocation, Br as useNavigate, X as useObject, gt as useObjectActions, Ge as usePageState, Ye as usePageStateTtl, ge as useParam, Vr as useParams, $e as usePlainScrollRestoration, _e as usePublicParams, qe as useRegisterRetainedQuery, ve as useResolvedParam, fe as useResponsiveMode, et as useSavedScrollOffset, M as useSchema, L as useScreen, We as useScreenBack, Xe as useScreenTab, Hr as useSearchParams, xe as useSetProperty, ye as useSetStatus, Ue as useTabNavigate, Ze as useTabSearchMirror, He as useTabStore, Pe as useText, le as useUpdateObject, we as useViews, tt as useVirtualScrollRestoration, wn as validateClientSide, Sr as variantActionCodesForRecord, x as zoneMark };
|