sellmate-design-system-react 9.0.0-beta.67 → 9.0.0-beta.69
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/AGENTS.md +37 -6
- package/dist/components/SCalendarBoard/CalendarDayCard.d.ts +7 -0
- package/dist/components/SCalendarBoard/CalendarEventButton.d.ts +3 -1
- package/dist/components/SCalendarBoard/CalendarMoreButton.d.ts +5 -0
- package/dist/components/SCalendarBoard/README.md +1 -0
- package/dist/components/SCalendarBoard/SCalendarBoard.d.ts +13 -1
- package/dist/components/SCalendarBoard/calendar-board-layout.d.ts +11 -1
- package/dist/components/SCalendarBoard/calendarBoard.config.d.ts +5 -0
- package/dist/components/SCard/README.md +1 -0
- package/dist/components/SCard/SCard.d.ts +10 -1
- package/dist/components/SContextAlert/README.md +3 -2
- package/dist/components/SContextAlert/SContextAlert.d.ts +15 -2
- package/dist/components/SContextAlert/contextAlert.config.d.ts +0 -7
- package/dist/components/SContextAlert/index.d.ts +1 -1
- package/dist/components/SFooter/README.md +16 -2
- package/dist/components/SFooter/SFooter.d.ts +13 -3
- package/dist/components/SFooter/index.d.ts +1 -1
- package/dist/components/SSectionHeaderCard/README.md +1 -0
- package/dist/components/SSectionHeaderCard/SSectionHeaderCard.d.ts +10 -1
- package/dist/index.cjs +64 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +65 -26
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +59 -10
- package/dist/llms.txt +37 -6
- package/dist/styles.css +3 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4310,6 +4310,7 @@ var SButton = /* @__PURE__ */ react.forwardRef(function SButton2({
|
|
|
4310
4310
|
});
|
|
4311
4311
|
function SFooter({
|
|
4312
4312
|
bg = "white",
|
|
4313
|
+
size = "md",
|
|
4313
4314
|
left,
|
|
4314
4315
|
button,
|
|
4315
4316
|
children,
|
|
@@ -4346,7 +4347,7 @@ function SFooter({
|
|
|
4346
4347
|
SButton,
|
|
4347
4348
|
{
|
|
4348
4349
|
...button,
|
|
4349
|
-
size
|
|
4350
|
+
size,
|
|
4350
4351
|
color: button.color ?? "primary",
|
|
4351
4352
|
label: button.label ?? "\uD655\uC778"
|
|
4352
4353
|
}
|
|
@@ -4355,7 +4356,16 @@ function SFooter({
|
|
|
4355
4356
|
}
|
|
4356
4357
|
);
|
|
4357
4358
|
}
|
|
4358
|
-
var SCard = /* @__PURE__ */ react.forwardRef(function SCard2({
|
|
4359
|
+
var SCard = /* @__PURE__ */ react.forwardRef(function SCard2({
|
|
4360
|
+
bordered = false,
|
|
4361
|
+
footerLeft,
|
|
4362
|
+
button,
|
|
4363
|
+
footerSize = "md",
|
|
4364
|
+
footerClassName,
|
|
4365
|
+
className,
|
|
4366
|
+
children,
|
|
4367
|
+
...rest
|
|
4368
|
+
}, ref) {
|
|
4359
4369
|
const hasFooter = footerLeft != null || button != null;
|
|
4360
4370
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4361
4371
|
"div",
|
|
@@ -4373,6 +4383,7 @@ var SCard = /* @__PURE__ */ react.forwardRef(function SCard2({ bordered = false,
|
|
|
4373
4383
|
SFooter,
|
|
4374
4384
|
{
|
|
4375
4385
|
bg: "grey",
|
|
4386
|
+
size: footerSize,
|
|
4376
4387
|
left: footerLeft,
|
|
4377
4388
|
button,
|
|
4378
4389
|
className: cn("px-(--sys-space-panel-padding-default)", footerClassName)
|
|
@@ -7660,6 +7671,7 @@ var SSectionHeaderCardRootImpl = /* @__PURE__ */ react.forwardRef(
|
|
|
7660
7671
|
background,
|
|
7661
7672
|
footerLeft,
|
|
7662
7673
|
button,
|
|
7674
|
+
footerSize = "md",
|
|
7663
7675
|
footerClassName,
|
|
7664
7676
|
className,
|
|
7665
7677
|
children,
|
|
@@ -7696,6 +7708,7 @@ var SSectionHeaderCardRootImpl = /* @__PURE__ */ react.forwardRef(
|
|
|
7696
7708
|
SFooter,
|
|
7697
7709
|
{
|
|
7698
7710
|
bg: "grey",
|
|
7711
|
+
size: footerSize,
|
|
7699
7712
|
left: footerLeft,
|
|
7700
7713
|
button,
|
|
7701
7714
|
className: cn("px-(--cmp-sectionHeaderCard-header-paddingX)", footerClassName)
|
|
@@ -8275,16 +8288,8 @@ var CONTEXT_ALERT_SURFACE = {
|
|
|
8275
8288
|
border: "var(--cmp-contextAlert-discovery-border)"
|
|
8276
8289
|
}
|
|
8277
8290
|
};
|
|
8278
|
-
var CONTEXT_ALERT_DEFAULT_ICON = "notificationOutline";
|
|
8279
8291
|
var CONTEXT_ALERT_ICON_COLOR = "var(--sys-color-fg-tertiary)";
|
|
8280
|
-
var SContextAlert = /* @__PURE__ */ react.forwardRef(function SContextAlert2({
|
|
8281
|
-
intent = "default",
|
|
8282
|
-
messages = [],
|
|
8283
|
-
icon = CONTEXT_ALERT_DEFAULT_ICON,
|
|
8284
|
-
action: action2,
|
|
8285
|
-
className,
|
|
8286
|
-
style
|
|
8287
|
-
}, ref) {
|
|
8292
|
+
var SContextAlert = /* @__PURE__ */ react.forwardRef(function SContextAlert2({ intent = "default", messages = [], icon, iconColor, action: action2, className, style }, ref) {
|
|
8288
8293
|
const surface = CONTEXT_ALERT_SURFACE[intent];
|
|
8289
8294
|
const vars = {
|
|
8290
8295
|
"--ca-bg": surface.bg,
|
|
@@ -8304,12 +8309,12 @@ var SContextAlert = /* @__PURE__ */ react.forwardRef(function SContextAlert2({
|
|
|
8304
8309
|
),
|
|
8305
8310
|
style: { ...vars, ...style },
|
|
8306
8311
|
children: [
|
|
8307
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8312
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8308
8313
|
SIcon,
|
|
8309
8314
|
{
|
|
8310
8315
|
name: icon,
|
|
8311
8316
|
size: "var(--cmp-contextAlert-icon)",
|
|
8312
|
-
color: CONTEXT_ALERT_ICON_COLOR,
|
|
8317
|
+
color: iconColor || CONTEXT_ALERT_ICON_COLOR,
|
|
8313
8318
|
className: "shrink-0"
|
|
8314
8319
|
}
|
|
8315
8320
|
),
|
|
@@ -14004,7 +14009,8 @@ function layoutCalendarBoard({
|
|
|
14004
14009
|
cells,
|
|
14005
14010
|
events,
|
|
14006
14011
|
rowCapacity,
|
|
14007
|
-
blockedDates
|
|
14012
|
+
blockedDates,
|
|
14013
|
+
focusedEventId
|
|
14008
14014
|
}) {
|
|
14009
14015
|
const count = cells.length;
|
|
14010
14016
|
const weekCount = Math.ceil(count / 7);
|
|
@@ -14012,6 +14018,7 @@ function layoutCalendarBoard({
|
|
|
14012
14018
|
const eventsByCell = Array.from({ length: count }, () => []);
|
|
14013
14019
|
const hiddenCountByCell = new Array(count).fill(0);
|
|
14014
14020
|
const moreLaneByWeek = new Array(weekCount).fill(-1);
|
|
14021
|
+
const moreReplacedByCell = new Array(count).fill(false);
|
|
14015
14022
|
const runs = [];
|
|
14016
14023
|
events.forEach((event, order) => {
|
|
14017
14024
|
const start = event.date;
|
|
@@ -14069,9 +14076,15 @@ function layoutCalendarBoard({
|
|
|
14069
14076
|
const week = Math.floor(run.startIndex / 7);
|
|
14070
14077
|
const moreLane = moreLaneByWeek[week];
|
|
14071
14078
|
const limit = moreLane < 0 ? rowCapacity : moreLane;
|
|
14072
|
-
|
|
14073
|
-
|
|
14074
|
-
|
|
14079
|
+
let lane = run.lane;
|
|
14080
|
+
if (lane >= limit) {
|
|
14081
|
+
const focused = focusedEventId != null && run.event.id === focusedEventId && moreLane >= 0;
|
|
14082
|
+
if (!focused) {
|
|
14083
|
+
for (let i = run.startIndex; i <= run.endIndex; i++) hiddenCountByCell[i] += 1;
|
|
14084
|
+
continue;
|
|
14085
|
+
}
|
|
14086
|
+
lane = moreLane;
|
|
14087
|
+
for (let i = run.startIndex; i <= run.endIndex; i++) moreReplacedByCell[i] = true;
|
|
14075
14088
|
}
|
|
14076
14089
|
const { event } = run;
|
|
14077
14090
|
segmentsByCell[run.startIndex].push({
|
|
@@ -14079,12 +14092,18 @@ function layoutCalendarBoard({
|
|
|
14079
14092
|
key: `${event.id ?? `${event.date}-${run.order}`}-${run.startIndex}`,
|
|
14080
14093
|
startIndex: run.startIndex,
|
|
14081
14094
|
span: run.endIndex - run.startIndex + 1,
|
|
14082
|
-
lane
|
|
14095
|
+
lane,
|
|
14083
14096
|
startsHere: cells[run.startIndex].date === event.date,
|
|
14084
14097
|
endsHere: cells[run.endIndex].date === eventEndDate(event)
|
|
14085
14098
|
});
|
|
14086
14099
|
}
|
|
14087
|
-
return {
|
|
14100
|
+
return {
|
|
14101
|
+
segmentsByCell,
|
|
14102
|
+
eventsByCell,
|
|
14103
|
+
hiddenCountByCell,
|
|
14104
|
+
moreLaneByWeek,
|
|
14105
|
+
moreReplacedByCell
|
|
14106
|
+
};
|
|
14088
14107
|
}
|
|
14089
14108
|
|
|
14090
14109
|
// src/components/SCalendarBoard/calendarBoard.config.ts
|
|
@@ -14114,6 +14133,7 @@ var CALENDAR_BOARD_EVENT_PRESETS = {
|
|
|
14114
14133
|
white: { bg: BG("white"), dot: "grey" }
|
|
14115
14134
|
};
|
|
14116
14135
|
var CALENDAR_BOARD_MAX_VISIBLE_EVENTS = 4;
|
|
14136
|
+
var CALENDAR_BOARD_DIM_OPACITY = 0.4;
|
|
14117
14137
|
var CALENDAR_BOARD_DAY_COLORS = [
|
|
14118
14138
|
"default",
|
|
14119
14139
|
"danger",
|
|
@@ -14133,6 +14153,7 @@ function CalendarEventButton({
|
|
|
14133
14153
|
onSelect,
|
|
14134
14154
|
flatStart = false,
|
|
14135
14155
|
flatEnd = false,
|
|
14156
|
+
dimmed = false,
|
|
14136
14157
|
className,
|
|
14137
14158
|
style
|
|
14138
14159
|
}) {
|
|
@@ -14160,7 +14181,11 @@ function CalendarEventButton({
|
|
|
14160
14181
|
disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
14161
14182
|
className
|
|
14162
14183
|
),
|
|
14163
|
-
style: {
|
|
14184
|
+
style: {
|
|
14185
|
+
...style,
|
|
14186
|
+
"--ceb-bg": preset.bg,
|
|
14187
|
+
...dimmed && { opacity: CALENDAR_BOARD_DIM_OPACITY }
|
|
14188
|
+
},
|
|
14164
14189
|
onClick: (e) => {
|
|
14165
14190
|
if (disabled) return;
|
|
14166
14191
|
onSelect?.(event, e);
|
|
@@ -14204,7 +14229,7 @@ function CalendarEventButton({
|
|
|
14204
14229
|
}
|
|
14205
14230
|
);
|
|
14206
14231
|
}
|
|
14207
|
-
var CalendarMoreButton = /* @__PURE__ */ react.forwardRef(function CalendarMoreButton2({ count, label = "\uB354\uBCF4\uAE30", onClick, className, style }, ref) {
|
|
14232
|
+
var CalendarMoreButton = /* @__PURE__ */ react.forwardRef(function CalendarMoreButton2({ count, label = "\uB354\uBCF4\uAE30", dimmed = false, onClick, className, style }, ref) {
|
|
14208
14233
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14209
14234
|
"button",
|
|
14210
14235
|
{
|
|
@@ -14217,7 +14242,7 @@ var CalendarMoreButton = /* @__PURE__ */ react.forwardRef(function CalendarMoreB
|
|
|
14217
14242
|
"bg-(--cmp-calendarBoard-moreButton-bg)",
|
|
14218
14243
|
className
|
|
14219
14244
|
),
|
|
14220
|
-
style,
|
|
14245
|
+
style: dimmed ? { ...style, opacity: CALENDAR_BOARD_DIM_OPACITY } : style,
|
|
14221
14246
|
onClick,
|
|
14222
14247
|
children: [
|
|
14223
14248
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14252,6 +14277,8 @@ var CalendarDayCard = /* @__PURE__ */ react.forwardRef(function CalendarDayCard2
|
|
|
14252
14277
|
body,
|
|
14253
14278
|
hiddenCount,
|
|
14254
14279
|
moreLane,
|
|
14280
|
+
moreReplaced,
|
|
14281
|
+
focusedEventId,
|
|
14255
14282
|
isOpen,
|
|
14256
14283
|
moreLabel,
|
|
14257
14284
|
onDaySelect,
|
|
@@ -14259,6 +14286,7 @@ var CalendarDayCard = /* @__PURE__ */ react.forwardRef(function CalendarDayCard2
|
|
|
14259
14286
|
onOpenEvents,
|
|
14260
14287
|
...rest
|
|
14261
14288
|
}, ref) {
|
|
14289
|
+
const focusing = focusedEventId != null;
|
|
14262
14290
|
const hasEvents = dayEventCount > 0;
|
|
14263
14291
|
const interactive = selectable || hasEvents;
|
|
14264
14292
|
const activate = () => {
|
|
@@ -14320,6 +14348,7 @@ var CalendarDayCard = /* @__PURE__ */ react.forwardRef(function CalendarDayCard2
|
|
|
14320
14348
|
event: segment.event,
|
|
14321
14349
|
flatStart: !segment.startsHere,
|
|
14322
14350
|
flatEnd: !segment.endsHere,
|
|
14351
|
+
dimmed: focusing && segment.event.id !== focusedEventId,
|
|
14323
14352
|
className: "absolute z-10",
|
|
14324
14353
|
style: {
|
|
14325
14354
|
top: laneTop(segment.lane),
|
|
@@ -14333,11 +14362,12 @@ var CalendarDayCard = /* @__PURE__ */ react.forwardRef(function CalendarDayCard2
|
|
|
14333
14362
|
},
|
|
14334
14363
|
segment.key
|
|
14335
14364
|
)),
|
|
14336
|
-
body == null && hiddenCount > 0 && moreLane >= 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14365
|
+
body == null && hiddenCount > 0 && moreLane >= 0 && !moreReplaced && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14337
14366
|
CalendarMoreButton,
|
|
14338
14367
|
{
|
|
14339
14368
|
count: hiddenCount,
|
|
14340
14369
|
label: moreLabel,
|
|
14370
|
+
dimmed: focusing,
|
|
14341
14371
|
className: "absolute z-10",
|
|
14342
14372
|
style: {
|
|
14343
14373
|
top: laneTop(moreLane),
|
|
@@ -14435,6 +14465,7 @@ function SCalendarBoard({
|
|
|
14435
14465
|
events,
|
|
14436
14466
|
dayColors,
|
|
14437
14467
|
dayContent,
|
|
14468
|
+
focusedEventId,
|
|
14438
14469
|
onEventClick,
|
|
14439
14470
|
onMoreClick,
|
|
14440
14471
|
todayLabel = "\uC624\uB298",
|
|
@@ -14485,8 +14516,14 @@ function SCalendarBoard({
|
|
|
14485
14516
|
const blockedDates = new Set(
|
|
14486
14517
|
cells.filter((cell) => dayContent?.[cell.date] != null).map((cell) => cell.date)
|
|
14487
14518
|
);
|
|
14488
|
-
return layoutCalendarBoard({
|
|
14489
|
-
|
|
14519
|
+
return layoutCalendarBoard({
|
|
14520
|
+
cells,
|
|
14521
|
+
events: events ?? [],
|
|
14522
|
+
rowCapacity,
|
|
14523
|
+
blockedDates,
|
|
14524
|
+
focusedEventId
|
|
14525
|
+
});
|
|
14526
|
+
}, [cells, events, rowCapacity, dayContent, focusedEventId]);
|
|
14490
14527
|
const openIndex = openDate == null ? -1 : cells.findIndex((cell) => cell.date === openDate);
|
|
14491
14528
|
const openEvents = openIndex < 0 ? [] : layout.eventsByCell[openIndex];
|
|
14492
14529
|
react.useLayoutEffect(() => {
|
|
@@ -14647,6 +14684,8 @@ function SCalendarBoard({
|
|
|
14647
14684
|
body: content,
|
|
14648
14685
|
hiddenCount: layout.hiddenCountByCell[index],
|
|
14649
14686
|
moreLane: layout.moreLaneByWeek[Math.floor(index / 7)],
|
|
14687
|
+
moreReplaced: layout.moreReplacedByCell[index],
|
|
14688
|
+
focusedEventId,
|
|
14650
14689
|
isOpen: openDate === cell.date,
|
|
14651
14690
|
moreLabel,
|
|
14652
14691
|
onDaySelect: (date) => onValueChange?.(date, list),
|
|
@@ -27530,7 +27569,6 @@ exports.CHAT_MESSAGE_READ_STATUSES = CHAT_MESSAGE_READ_STATUSES;
|
|
|
27530
27569
|
exports.CHAT_MESSAGE_VARIANTS = CHAT_MESSAGE_VARIANTS;
|
|
27531
27570
|
exports.CHIP_COLORS = CHIP_COLORS;
|
|
27532
27571
|
exports.COLOR_KEYS = COLOR_KEYS;
|
|
27533
|
-
exports.CONTEXT_ALERT_DEFAULT_ICON = CONTEXT_ALERT_DEFAULT_ICON;
|
|
27534
27572
|
exports.CONTEXT_ALERT_ICON_COLOR = CONTEXT_ALERT_ICON_COLOR;
|
|
27535
27573
|
exports.CONTEXT_ALERT_INTENTS = CONTEXT_ALERT_INTENTS;
|
|
27536
27574
|
exports.CONTEXT_ALERT_SURFACE = CONTEXT_ALERT_SURFACE;
|