qt-ui-kit 1.0.98 → 1.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -168,6 +168,7 @@ type FilterButtonKey = "fires" | "unread" | "done" | "more" | IntegrationService
168
168
  type NavButtonConfig = {
169
169
  active?: boolean;
170
170
  onClick?: () => void;
171
+ disabled?: boolean;
171
172
  };
172
173
  type Props$1 = {
173
174
  buttons?: Partial<Record<FilterButtonKey, NavButtonConfig>>;
package/dist/index.d.ts CHANGED
@@ -168,6 +168,7 @@ type FilterButtonKey = "fires" | "unread" | "done" | "more" | IntegrationService
168
168
  type NavButtonConfig = {
169
169
  active?: boolean;
170
170
  onClick?: () => void;
171
+ disabled?: boolean;
171
172
  };
172
173
  type Props$1 = {
173
174
  buttons?: Partial<Record<FilterButtonKey, NavButtonConfig>>;
package/dist/index.js CHANGED
@@ -16147,7 +16147,7 @@ function SingleEvent({
16147
16147
  }
16148
16148
  },
16149
16149
  children: [
16150
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex gap-2 place-items-center", children: [
16150
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex gap-2 place-items-center w-min", children: [
16151
16151
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
16152
16152
  CategoryIcon,
16153
16153
  {
@@ -16469,8 +16469,8 @@ function ChatBubble({
16469
16469
  "div",
16470
16470
  {
16471
16471
  className: (0, import_clsx9.default)(
16472
- "h-[24px] w-[24px] rounded-t-md bg-qtneutral-500 text-qtneutral-200 flex place-items-center place-content-center font-bold text-xs",
16473
- outbound ? "rounded-bl-md" : "rounded-br-md"
16472
+ "h-[24px] w-[24px] rounded-t-md flex place-items-center place-content-center label-1-bold",
16473
+ outbound ? "rounded-bl-md bg-qtgreen-200 text-qtneutral-900" : "rounded-br-md bg-qtpurple-300 text-qtneutral-200"
16474
16474
  ),
16475
16475
  children: name ? name[0].toUpperCase() : ""
16476
16476
  }
@@ -17121,8 +17121,8 @@ function FilterNavButton({ icon, label, active, onClick }) {
17121
17121
  // src/components/organisms/filter_bar/filter_bar.tsx
17122
17122
  var import_jsx_runtime44 = require("react/jsx-runtime");
17123
17123
  function FilterBar({ buttons }) {
17124
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-col w-[54px] place-items-center gap-4", children: [
17125
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17124
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex h-full min-h-0 flex-col w-[54px] items-center gap-4", children: [
17125
+ !buttons?.fires?.disabled && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17126
17126
  FilterNavButton,
17127
17127
  {
17128
17128
  icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
@@ -17135,7 +17135,7 @@ function FilterBar({ buttons }) {
17135
17135
  onClick: buttons?.fires?.onClick
17136
17136
  }
17137
17137
  ),
17138
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17138
+ !buttons?.unread?.disabled && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17139
17139
  FilterNavButton,
17140
17140
  {
17141
17141
  icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
@@ -17149,7 +17149,7 @@ function FilterBar({ buttons }) {
17149
17149
  onClick: buttons?.unread?.onClick
17150
17150
  }
17151
17151
  ),
17152
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17152
+ !buttons?.done?.disabled && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17153
17153
  FilterNavButton,
17154
17154
  {
17155
17155
  icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
@@ -17165,95 +17165,96 @@ function FilterBar({ buttons }) {
17165
17165
  }
17166
17166
  ),
17167
17167
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
17168
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17169
- FilterNavButton,
17170
- {
17171
- icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: buttons?.slack?.active ? "" : "grayscale", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SlackIcon, {}) }),
17172
- onClick: buttons?.slack?.onClick
17173
- }
17174
- ),
17175
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17176
- FilterNavButton,
17177
- {
17178
- icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: buttons?.google_mail?.active ? "" : "grayscale", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(GoogleMailIcon, {}) }),
17179
- onClick: buttons?.google_mail?.onClick
17180
- }
17181
- ),
17182
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17183
- FilterNavButton,
17184
- {
17185
- icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: buttons?.google_calendar?.active ? "" : "grayscale", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(GoogleCalendarIcon, {}) }),
17186
- onClick: buttons?.google_calendar?.onClick
17187
- }
17188
- ),
17189
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17190
- FilterNavButton,
17191
- {
17192
- icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: buttons?.atlassian_jira?.active ? "" : "grayscale", children: [
17193
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AtlassianIcon, {}),
17194
- " "
17195
- ] }),
17196
- onClick: buttons?.atlassian_jira?.onClick
17197
- }
17198
- ),
17199
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17200
- FilterNavButton,
17201
- {
17202
- icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: buttons?.microsoft_teams?.active ? "" : "grayscale", children: [
17203
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MicrosoftTeamsIcon, {}),
17204
- " "
17205
- ] }),
17206
- onClick: buttons?.microsoft_teams?.onClick
17207
- }
17208
- ),
17209
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17210
- FilterNavButton,
17211
- {
17212
- icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
17213
- "div",
17214
- {
17215
- className: buttons?.microsoft_calendar?.active || buttons?.microsoft_mail?.active ? "" : "grayscale",
17216
- children: [
17217
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MicrosoftOutlookMailIcon, {}),
17218
- " "
17219
- ]
17220
- }
17221
- ),
17222
- onClick: buttons?.microsoft_mail?.onClick || buttons?.microsoft_calendar?.onClick
17223
- }
17224
- ),
17225
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17226
- FilterNavButton,
17227
- {
17228
- icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
17229
- "div",
17230
- {
17231
- className: buttons?.clickup?.active || buttons?.clickup?.active ? "" : "grayscale",
17232
- children: [
17233
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ClickupIcon, {}),
17234
- " "
17235
- ]
17236
- }
17237
- ),
17238
- onClick: buttons?.clickup?.onClick
17239
- }
17240
- ),
17241
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17242
- FilterNavButton,
17243
- {
17244
- icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
17245
- "div",
17246
- {
17247
- className: buttons?.asana?.active || buttons?.asana?.active ? "" : "grayscale",
17248
- children: [
17249
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AsanaIcon, {}),
17250
- " "
17251
- ]
17252
- }
17253
- ),
17254
- onClick: buttons?.asana?.onClick
17255
- }
17256
- ),
17168
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex-1 min-h-0 w-full overflow-y-auto flex flex-col gap-4 overscroll-contain [scrollbar-gutter:stable] pl-1", children: [
17169
+ !buttons?.slack?.disabled && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17170
+ FilterNavButton,
17171
+ {
17172
+ icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: buttons?.slack?.active ? "" : "grayscale", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SlackIcon, {}) }),
17173
+ label: "slack",
17174
+ onClick: buttons?.slack?.onClick
17175
+ }
17176
+ ),
17177
+ !buttons?.google_mail?.disabled && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17178
+ FilterNavButton,
17179
+ {
17180
+ icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: buttons?.google_mail?.active ? "" : "grayscale", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(GoogleMailIcon, {}) }),
17181
+ label: "Gmail",
17182
+ onClick: buttons?.google_mail?.onClick
17183
+ }
17184
+ ),
17185
+ !buttons?.google_calendar?.disabled && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17186
+ FilterNavButton,
17187
+ {
17188
+ icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17189
+ "div",
17190
+ {
17191
+ className: buttons?.google_calendar?.active ? "" : "grayscale",
17192
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(GoogleCalendarIcon, {})
17193
+ }
17194
+ ),
17195
+ label: "Gcal",
17196
+ onClick: buttons?.google_calendar?.onClick
17197
+ }
17198
+ ),
17199
+ !buttons?.atlassian_jira?.disabled && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17200
+ FilterNavButton,
17201
+ {
17202
+ icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17203
+ "div",
17204
+ {
17205
+ className: buttons?.atlassian_jira?.active ? "" : "grayscale",
17206
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AtlassianIcon, {})
17207
+ }
17208
+ ),
17209
+ label: "Jira",
17210
+ onClick: buttons?.atlassian_jira?.onClick
17211
+ }
17212
+ ),
17213
+ !buttons?.microsoft_teams?.disabled && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17214
+ FilterNavButton,
17215
+ {
17216
+ icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17217
+ "div",
17218
+ {
17219
+ className: buttons?.microsoft_teams?.active ? "" : "grayscale",
17220
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MicrosoftTeamsIcon, {})
17221
+ }
17222
+ ),
17223
+ label: "Teams",
17224
+ onClick: buttons?.microsoft_teams?.onClick
17225
+ }
17226
+ ),
17227
+ !(buttons?.microsoft_mail?.disabled || buttons?.microsoft_calendar?.disabled) && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17228
+ FilterNavButton,
17229
+ {
17230
+ icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17231
+ "div",
17232
+ {
17233
+ className: buttons?.microsoft_calendar?.active || buttons?.microsoft_mail?.active ? "" : "grayscale",
17234
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MicrosoftOutlookMailIcon, {})
17235
+ }
17236
+ ),
17237
+ label: "Outlook",
17238
+ onClick: buttons?.microsoft_mail?.onClick || buttons?.microsoft_calendar?.onClick
17239
+ }
17240
+ ),
17241
+ !buttons?.clickup?.disabled && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17242
+ FilterNavButton,
17243
+ {
17244
+ icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: buttons?.clickup?.active ? "" : "grayscale", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ClickupIcon, {}) }),
17245
+ label: "ClickUp",
17246
+ onClick: buttons?.clickup?.onClick
17247
+ }
17248
+ ),
17249
+ !buttons?.asana?.disabled && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
17250
+ FilterNavButton,
17251
+ {
17252
+ icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: buttons?.asana?.active ? "" : "grayscale", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AsanaIcon, {}) }),
17253
+ label: "Asana",
17254
+ onClick: buttons?.asana?.onClick
17255
+ }
17256
+ )
17257
+ ] }),
17257
17258
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("hr", { className: "w-full border-0.5 text-qtneutral-700" }),
17258
17259
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { onClick: buttons?.more?.onClick, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(FilterNavButton, { icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PlusLarge, { size: 36 }) }) })
17259
17260
  ] });